(()=>{let e,t,r,i,a,o,s,l,c,u,d,f,p,h,g,m;function v(e,t){return Object.keys(t).forEach(function(r){!("default"===r||"__esModule"===r||Object.prototype.hasOwnProperty.call(e,r))&&Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[r]}})}),e}function y(e,t,r,i){Object.defineProperty(e,t,{get:r,set:i,enumerable:!0,configurable:!0})}var b,_,w,x,E,S,$,C=globalThis,L={};y(L,"setupAll",()=>K),y(L,"clicks",()=>A),y(L,"share",()=>z);var A={};y(A,"setup",()=>W),y(A,"setupAll",()=>G);var I={};y(I,"trackFacebookEvent",()=>D),y(I,"trackGoogleEvent",()=>P),y(I,"trackFacebookSubmission",()=>R),y(I,"trackGoogleSubmission",()=>T),y(I,"trackSubmission",()=>O),y(I,"trackFacebookConversion",()=>M),y(I,"trackGoogleAdsConversion",()=>N),y(I,"trackConversion",()=>F),y(I,"clickEvent",()=>V),y(I,"trackClick",()=>U),y(I,"trackMenuClick",()=>q),y(I,"trackShare",()=>B),y(I,"trackSearch",()=>H);let D=(e,t="Event",r)=>{if(window.fbq){let i=t&&t.length>0?`[${t}]`:"";e?window.fbq("trackCustom",`${i} ${e}`,r):window.fbq("trackCustom",`${t}`,r)}},P=(e,t="Event",r)=>{if(window.gtag){let i=t&&t.length>0?`[${t}]`:"";e?window.gtag("event",`${i} ${e}`,r):window.gtag("event",`${t}`,r)}},R=(e,t,r,i="Submit")=>{if(window.fbq){let a=i&&i.length>0?`[${i}]`:"";t?(window.fbq("track","Lead",{content_name:t}),window.fbq("trackCustom",`${a} ${t}`)):(window.fbq("track","Lead",{content_name:e}),window.fbq("trackCustom",`${a} ${e}`)),window.fbq("trackCustom",`[${i}Page] "${r}"`)}},T=(e,t,r,i="Submit")=>{if(window.gtag){let a=i&&i.length>0?`[${i}]`:"";t?window.gtag("event",`${a} ${t}`):window.gtag("event",`${a} ${e.replaceAll("-","_")}`),window.gtag("event",`[${i}Page] "${r}"`)}},O=(e,t,r,i)=>{R(e,t,i),T(e,r,i)},M=(e,t,r,i="Lead")=>{if(window.fbq){let a=i&&i.length>0?`[${i}]`:"";window.fbq("track","CompleteRegistration",{content_name:e}),window.fbq("trackCustom",`${a} ${e}`),t||(window.fbq("track","CompleteRegistration",{content_name:t}),window.fbq("trackCustom",`${a} ${t}`)),window.fbq("trackCustom",`[${i}Page] "${r}"`)}},N=(e,t)=>{let r=e.startsWith("AW-")?e:`AW-${e}`;if(window.gtag){let e={send_to:`${r}/${t}`};window.gtag("event","conversion",e)}},j=(e,t,r,i="Lead")=>{if(window.gtag){let a=i&&i.length>0?`[${i}]`:"";t?window.gtag("event",`${a} ${t}`):window.gtag("event",`${a} ${e.replaceAll("-","_")}`),window.gtag("event","generate_lead",{currency:"BRL",value:1}),window.gtag("event",`[${i}Page] "${r}"`)}},F=(e,t,r,i,a)=>{M(e,t,i),j(e,r,i),a&&N(a.id,a.label)},V="Click",U=e=>{D(e,V),P(e,V)},q=e=>{let t="Menu";D(e,t),P(e,t)},B=(e,t,r)=>{let i=`${e} Share`;D(null,i,{url:t}),P(null,i,{pageLocation:t,pageTitle:r})},H=e=>{let t="Search";D(e,t),P(e,t)};function W(e){e.addEventListener("click",t=>{e.dataset.gAdsId&&e.dataset.gAdsLabel&&N(e.dataset.gAdsId,e.dataset.gAdsLabel),e.dataset.analyticsEvent&&U(e.dataset.analyticsEvent)})}function G(){document.querySelectorAll("a[data-analytics-event],button[data-analytics-event],a[data-gads-label],button[data-gads-label]").forEach(e=>{W(e)})}var z={};function Z(e){let t=e.charAt(0).toUpperCase()+e.slice(1);return"Whatsapp"===t?"WhatsApp":"Linkedin"===t?"LinkedIn":t}function Y(e){let t=e.dataset.socialNetwork;t&&(t=Z(t),e.addEventListener("click",()=>{B(t,e.dataset.url,e.dataset.title)}))}function J(){document.querySelectorAll('[data-evag="share"]').forEach(e=>{Y(e)})}function K(){G(),J()}y(z,"fixSocialNetworkName",()=>Z),y(z,"setup",()=>Y),y(z,"setupAll",()=>J),v(L,I);var X={};y(X,"setup",()=>Q),y(X,"setupAll",()=>ee);let Q=(e,t="Imagem: ")=>{let r=e.dataset.copyright,i=document.createElement("figcaption");i.classList.add("copyright","text-caption","font-caption"),i.innerHTML=`${t} ${r}`,e.appendChild(i)};function ee(){document.querySelectorAll("figure[data-copyright]").forEach(e=>{Q(e)})}var et={};y(et,"setupAll",()=>oO);var en={};y(en,"setup",()=>oA),y(en,"setupAll",()=>oI);var er="undefined"!=typeof window?window:void 0!==C?C:"undefined"!=typeof self?self:{},ei=function(e,t,r,i,a,o,s,l,c,u){this.numeralDecimalMark=e||".",this.numeralIntegerScale=t>0?t:0,this.numeralDecimalScale=r>=0?r:2,this.numeralThousandsGroupStyle=i||ei.groupStyle.thousand,this.numeralPositiveOnly=!!a,this.stripLeadingZeroes=!1!==o,this.prefix=s||""===s?s:"",this.signBeforePrefix=!!l,this.tailPrefix=!!c,this.delimiter=u||""===u?u:",",this.delimiterRE=u?RegExp("\\"+u,"g"):""};ei.groupStyle={thousand:"thousand",lakh:"lakh",wan:"wan",none:"none"},ei.prototype={getRawValue:function(e){return e.replace(this.delimiterRE,"").replace(this.numeralDecimalMark,".")},format:function(e){var t,r,i,a,o="";switch(e=e.replace(/[A-Za-z]/g,"").replace(this.numeralDecimalMark,"M").replace(/[^\dM-]/g,"").replace(/^\-/,"N").replace(/\-/g,"").replace("N",this.numeralPositiveOnly?"":"-").replace("M",this.numeralDecimalMark),this.stripLeadingZeroes&&(e=e.replace(/^(-)?0+(?=\d)/,"$1")),r="-"===e.slice(0,1)?"-":"",i=void 0!==this.prefix?this.signBeforePrefix?r+this.prefix:this.prefix+r:r,a=e,e.indexOf(this.numeralDecimalMark)>=0&&(a=(t=e.split(this.numeralDecimalMark))[0],o=this.numeralDecimalMark+t[1].slice(0,this.numeralDecimalScale)),"-"===r&&(a=a.slice(1)),this.numeralIntegerScale>0&&(a=a.slice(0,this.numeralIntegerScale)),this.numeralThousandsGroupStyle){case ei.groupStyle.lakh:a=a.replace(/(\d)(?=(\d\d)+\d$)/g,"$1"+this.delimiter);break;case ei.groupStyle.wan:a=a.replace(/(\d)(?=(\d{4})+$)/g,"$1"+this.delimiter);break;case ei.groupStyle.thousand:a=a.replace(/(\d)(?=(\d{3})+$)/g,"$1"+this.delimiter)}return this.tailPrefix?r+a.toString()+(this.numeralDecimalScale>0?o.toString():"")+this.prefix:i+a.toString()+(this.numeralDecimalScale>0?o.toString():"")}};var ea=function(e,t,r){this.date=[],this.blocks=[],this.datePattern=e,this.dateMin=t.split("-").reverse().map(function(e){return parseInt(e,10)}),2===this.dateMin.length&&this.dateMin.unshift(0),this.dateMax=r.split("-").reverse().map(function(e){return parseInt(e,10)}),2===this.dateMax.length&&this.dateMax.unshift(0),this.initBlocks()};ea.prototype={initBlocks:function(){var e=this;e.datePattern.forEach(function(t){"Y"===t?e.blocks.push(4):e.blocks.push(2)})},getISOFormatDate:function(){var e=this.date;return e[2]?e[2]+"-"+this.addLeadingZero(e[1])+"-"+this.addLeadingZero(e[0]):""},getBlocks:function(){return this.blocks},getValidatedDate:function(e){var t=this,r="";return e=e.replace(/[^\d]/g,""),t.blocks.forEach(function(i,a){if(e.length>0){var o=e.slice(0,i),s=o.slice(0,1),l=e.slice(i);switch(t.datePattern[a]){case"d":"00"===o?o="01":parseInt(s,10)>3?o="0"+s:parseInt(o,10)>31&&(o="31");break;case"m":"00"===o?o="01":parseInt(s,10)>1?o="0"+s:parseInt(o,10)>12&&(o="12")}r+=o,e=l}}),this.getFixedDateString(r)},getFixedDateString:function(e){var t,r,i,a=this,o=a.datePattern,s=[],l=0,c=0,u=0,d=0,f=0,p=0,h=!1;return 4===e.length&&"y"!==o[0].toLowerCase()&&"y"!==o[1].toLowerCase()&&(f=2-(d=2*("d"!==o[0])),t=parseInt(e.slice(d,d+2),10),r=parseInt(e.slice(f,f+2),10),s=this.getFixedDate(t,r,0)),8===e.length&&(o.forEach(function(e,t){switch(e){case"d":l=t;break;case"m":c=t;break;default:u=t}}),p=2*u,d=l<=u?2*l:2*l+2,f=c<=u?2*c:2*c+2,t=parseInt(e.slice(d,d+2),10),r=parseInt(e.slice(f,f+2),10),i=parseInt(e.slice(p,p+4),10),h=4===e.slice(p,p+4).length,s=this.getFixedDate(t,r,i)),4===e.length&&("y"===o[0]||"y"===o[1])&&(p=2-(f=2*("m"!==o[0])),r=parseInt(e.slice(f,f+2),10),i=parseInt(e.slice(p,p+2),10),h=2===e.slice(p,p+2).length,s=[0,r,i]),6===e.length&&("Y"===o[0]||"Y"===o[1])&&(p=2-.5*(f=4*("m"!==o[0])),r=parseInt(e.slice(f,f+2),10),i=parseInt(e.slice(p,p+4),10),h=4===e.slice(p,p+4).length,s=[0,r,i]),s=a.getRangeFixedDate(s),a.date=s,0===s.length?e:o.reduce(function(e,t){switch(t){case"d":return e+(0===s[0]?"":a.addLeadingZero(s[0]));case"m":return e+(0===s[1]?"":a.addLeadingZero(s[1]));case"y":return e+(h?a.addLeadingZeroForYear(s[2],!1):"");case"Y":return e+(h?a.addLeadingZeroForYear(s[2],!0):"")}},"")},getRangeFixedDate:function(e){var t=this.datePattern,r=this.dateMin||[],i=this.dateMax||[];return!e.length||r.length<3&&i.length<3||t.find(function(e){return"y"===e.toLowerCase()})&&0===e[2]?e:i.length&&(i[2]<e[2]||i[2]===e[2]&&(i[1]<e[1]||i[1]===e[1]&&i[0]<e[0]))?i:r.length&&(r[2]>e[2]||r[2]===e[2]&&(r[1]>e[1]||r[1]===e[1]&&r[0]>e[0]))?r:e},getFixedDate:function(e,t,r){return e=Math.min(e,31),t=Math.min(t,12),r=parseInt(r||0,10),(t<7&&t%2==0||t>8&&t%2==1)&&(e=Math.min(e,2===t?this.isLeapYear(r)?29:28:30)),[e,t,r]},isLeapYear:function(e){return e%4==0&&e%100!=0||e%400==0},addLeadingZero:function(e){return(e<10?"0":"")+e},addLeadingZeroForYear:function(e,t){return t?(e<10?"000":e<100?"00":e<1e3?"0":"")+e:(e<10?"0":"")+e}};var eo=function(e,t){this.time=[],this.blocks=[],this.timePattern=e,this.timeFormat=t,this.initBlocks()};eo.prototype={initBlocks:function(){var e=this;e.timePattern.forEach(function(){e.blocks.push(2)})},getISOFormatTime:function(){var e=this.time;return e[2]?this.addLeadingZero(e[0])+":"+this.addLeadingZero(e[1])+":"+this.addLeadingZero(e[2]):""},getBlocks:function(){return this.blocks},getTimeFormatOptions:function(){return"12"===String(this.timeFormat)?{maxHourFirstDigit:1,maxHours:12,maxMinutesFirstDigit:5,maxMinutes:60}:{maxHourFirstDigit:2,maxHours:23,maxMinutesFirstDigit:5,maxMinutes:60}},getValidatedTime:function(e){var t=this,r="";e=e.replace(/[^\d]/g,"");var i=t.getTimeFormatOptions();return t.blocks.forEach(function(a,o){if(e.length>0){var s=e.slice(0,a),l=s.slice(0,1),c=e.slice(a);switch(t.timePattern[o]){case"h":parseInt(l,10)>i.maxHourFirstDigit?s="0"+l:parseInt(s,10)>i.maxHours&&(s=i.maxHours+"");break;case"m":case"s":parseInt(l,10)>i.maxMinutesFirstDigit?s="0"+l:parseInt(s,10)>i.maxMinutes&&(s=i.maxMinutes+"")}r+=s,e=c}}),this.getFixedTimeString(r)},getFixedTimeString:function(e){var t,r,i,a=this,o=a.timePattern,s=[],l=0,c=0,u=0,d=0,f=0,p=0;return 6===e.length&&(o.forEach(function(e,t){switch(e){case"s":l=2*t;break;case"m":c=2*t;break;case"h":u=2*t}}),p=u,f=c,d=l,t=parseInt(e.slice(d,d+2),10),r=parseInt(e.slice(f,f+2),10),i=parseInt(e.slice(p,p+2),10),s=this.getFixedTime(i,r,t)),4===e.length&&0>a.timePattern.indexOf("s")&&(o.forEach(function(e,t){switch(e){case"m":c=2*t;break;case"h":u=2*t}}),p=u,f=c,t=0,r=parseInt(e.slice(f,f+2),10),i=parseInt(e.slice(p,p+2),10),s=this.getFixedTime(i,r,t)),a.time=s,0===s.length?e:o.reduce(function(e,t){switch(t){case"s":return e+a.addLeadingZero(s[2]);case"m":return e+a.addLeadingZero(s[1]);case"h":return e+a.addLeadingZero(s[0])}},"")},getFixedTime:function(e,t,r){return r=Math.min(parseInt(r||0,10),60),t=Math.min(t,60),[e=Math.min(e,60),t,r]},addLeadingZero:function(e){return(e<10?"0":"")+e}};var es=function(e,t){this.delimiter=t||""===t?t:" ",this.delimiterRE=t?RegExp("\\"+t,"g"):"",this.formatter=e};es.prototype={setFormatter:function(e){this.formatter=e},format:function(e){this.formatter.clear(),e=(e=(e=e.replace(/[^\d+]/g,"")).replace(/^\+/,"B").replace(/\+/g,"").replace("B","+")).replace(this.delimiterRE,"");for(var t,r="",i=!1,a=0,o=e.length;a<o;a++)t=this.formatter.inputDigit(e.charAt(a)),/[\s()-]/g.test(t)?(r=t,i=!0):i||(r=t);return(r=r.replace(/[()]/g,"")).replace(/[\s-]/g,this.delimiter)}};var el={blocks:{uatp:[4,5,6],amex:[4,6,5],diners:[4,6,4],discover:[4,4,4,4],mastercard:[4,4,4,4],dankort:[4,4,4,4],instapayment:[4,4,4,4],jcb15:[4,6,5],jcb:[4,4,4,4],maestro:[4,4,4,4],visa:[4,4,4,4],mir:[4,4,4,4],unionPay:[4,4,4,4],general:[4,4,4,4]},re:{uatp:/^(?!1800)1\d{0,14}/,amex:/^3[47]\d{0,13}/,discover:/^(?:6011|65\d{0,2}|64[4-9]\d?)\d{0,12}/,diners:/^3(?:0([0-5]|9)|[689]\d?)\d{0,11}/,mastercard:/^(5[1-5]\d{0,2}|22[2-9]\d{0,1}|2[3-7]\d{0,2})\d{0,12}/,dankort:/^(5019|4175|4571)\d{0,12}/,instapayment:/^63[7-9]\d{0,13}/,jcb15:/^(?:2131|1800)\d{0,11}/,jcb:/^(?:35\d{0,2})\d{0,12}/,maestro:/^(?:5[0678]\d{0,2}|6304|67\d{0,2})\d{0,12}/,mir:/^220[0-4]\d{0,12}/,visa:/^4\d{0,15}/,unionPay:/^(62|81)\d{0,14}/},getStrictBlocks:function(e){var t=e.reduce(function(e,t){return e+t},0);return e.concat(19-t)},getInfo:function(e,t){var r=el.blocks,i=el.re;for(var a in t=!!t,i)if(i[a].test(e)){var o=r[a];return{type:a,blocks:t?this.getStrictBlocks(o):o}}return{type:"unknown",blocks:t?this.getStrictBlocks(r.general):r.general}}},ec=function(e,t){var r=!1;if("string"==typeof e?(this.element=document.querySelector(e),r=document.querySelectorAll(e).length>1):void 0!==e.length&&e.length>0?(this.element=e[0],r=e.length>1):this.element=e,!this.element)throw Error("[cleave.js] Please check the element");if(r)try{console.warn("[cleave.js] Multiple input fields matched, cleave.js will only take the first one.")}catch(e){}t.initValue=this.element.value,this.properties=ec.DefaultProperties.assign({},t),this.init()};function eu(e){let t=window.evagConfig;for(key of e.split(".")){if(void 0===t)return;t=t[key]}return t}ec.prototype={init:function(){var e=this.properties;if(!e.numeral&&!e.phone&&!e.creditCard&&!e.time&&!e.date&&0===e.blocksLength&&!e.prefix){this.onInput(e.initValue);return}e.maxLength=ec.Util.getMaxLength(e.blocks),this.isAndroid=ec.Util.isAndroid(),this.lastInputValue="",this.isBackward="",this.onChangeListener=this.onChange.bind(this),this.onKeyDownListener=this.onKeyDown.bind(this),this.onFocusListener=this.onFocus.bind(this),this.onCutListener=this.onCut.bind(this),this.onCopyListener=this.onCopy.bind(this),this.initSwapHiddenInput(),this.element.addEventListener("input",this.onChangeListener),this.element.addEventListener("keydown",this.onKeyDownListener),this.element.addEventListener("focus",this.onFocusListener),this.element.addEventListener("cut",this.onCutListener),this.element.addEventListener("copy",this.onCopyListener),this.initPhoneFormatter(),this.initDateFormatter(),this.initTimeFormatter(),this.initNumeralFormatter(),(e.initValue||e.prefix&&!e.noImmediatePrefix)&&this.onInput(e.initValue)},initSwapHiddenInput:function(){if(this.properties.swapHiddenInput){var e=this.element.cloneNode(!0);this.element.parentNode.insertBefore(e,this.element),this.elementSwapHidden=this.element,this.elementSwapHidden.type="hidden",this.element=e,this.element.id=""}},initNumeralFormatter:function(){var e=this.properties;e.numeral&&(e.numeralFormatter=new ec.NumeralFormatter(e.numeralDecimalMark,e.numeralIntegerScale,e.numeralDecimalScale,e.numeralThousandsGroupStyle,e.numeralPositiveOnly,e.stripLeadingZeroes,e.prefix,e.signBeforePrefix,e.tailPrefix,e.delimiter))},initTimeFormatter:function(){var e=this.properties;e.time&&(e.timeFormatter=new ec.TimeFormatter(e.timePattern,e.timeFormat),e.blocks=e.timeFormatter.getBlocks(),e.blocksLength=e.blocks.length,e.maxLength=ec.Util.getMaxLength(e.blocks))},initDateFormatter:function(){var e=this.properties;e.date&&(e.dateFormatter=new ec.DateFormatter(e.datePattern,e.dateMin,e.dateMax),e.blocks=e.dateFormatter.getBlocks(),e.blocksLength=e.blocks.length,e.maxLength=ec.Util.getMaxLength(e.blocks))},initPhoneFormatter:function(){var e=this.properties;if(e.phone)try{e.phoneFormatter=new ec.PhoneFormatter(new e.root.Cleave.AsYouTypeFormatter(e.phoneRegionCode),e.delimiter)}catch(e){throw Error("[cleave.js] Please include phone-type-formatter.{country}.js lib")}},onKeyDown:function(e){var t=e.which||e.keyCode;this.lastInputValue=this.element.value,this.isBackward=8===t},onChange:function(e){var t=this.properties,r=ec.Util;this.isBackward=this.isBackward||"deleteContentBackward"===e.inputType;var i=r.getPostDelimiter(this.lastInputValue,t.delimiter,t.delimiters);this.isBackward&&i?t.postDelimiterBackspace=i:t.postDelimiterBackspace=!1,this.onInput(this.element.value)},onFocus:function(){var e=this.properties;this.lastInputValue=this.element.value,e.prefix&&e.noImmediatePrefix&&!this.element.value&&this.onInput(e.prefix),ec.Util.fixPrefixCursor(this.element,e.prefix,e.delimiter,e.delimiters)},onCut:function(e){ec.Util.checkFullSelection(this.element.value)&&(this.copyClipboardData(e),this.onInput(""))},onCopy:function(e){ec.Util.checkFullSelection(this.element.value)&&this.copyClipboardData(e)},copyClipboardData:function(e){var t=this.properties,r=ec.Util,i=this.element.value,a="";a=t.copyDelimiter?i:r.stripDelimiters(i,t.delimiter,t.delimiters);try{e.clipboardData?e.clipboardData.setData("Text",a):window.clipboardData.setData("Text",a),e.preventDefault()}catch(e){}},onInput:function(e){var t=this.properties,r=ec.Util,i=r.getPostDelimiter(e,t.delimiter,t.delimiters);if(t.numeral||!t.postDelimiterBackspace||i||(e=r.headStr(e,e.length-t.postDelimiterBackspace.length)),t.phone){t.prefix&&(!t.noImmediatePrefix||e.length)?t.result=t.prefix+t.phoneFormatter.format(e).slice(t.prefix.length):t.result=t.phoneFormatter.format(e),this.updateValueState();return}if(t.numeral){t.prefix&&t.noImmediatePrefix&&0===e.length?t.result="":t.result=t.numeralFormatter.format(e),this.updateValueState();return}if(t.date&&(e=t.dateFormatter.getValidatedDate(e)),t.time&&(e=t.timeFormatter.getValidatedTime(e)),e=r.stripDelimiters(e,t.delimiter,t.delimiters),e=r.getPrefixStrippedValue(e,t.prefix,t.prefixLength,t.result,t.delimiter,t.delimiters,t.noImmediatePrefix,t.tailPrefix,t.signBeforePrefix),e=t.numericOnly?r.strip(e,/[^\d]/g):e,e=t.uppercase?e.toUpperCase():e,e=t.lowercase?e.toLowerCase():e,t.prefix&&(t.tailPrefix?e+=t.prefix:e=t.prefix+e,0===t.blocksLength)){t.result=e,this.updateValueState();return}t.creditCard&&this.updateCreditCardPropsByValue(e),e=r.headStr(e,t.maxLength),t.result=r.getFormattedValue(e,t.blocks,t.blocksLength,t.delimiter,t.delimiters,t.delimiterLazyShow),this.updateValueState()},updateCreditCardPropsByValue:function(e){var t,r=this.properties,i=ec.Util;i.headStr(r.result,4)!==i.headStr(e,4)&&(t=ec.CreditCardDetector.getInfo(e,r.creditCardStrictMode),r.blocks=t.blocks,r.blocksLength=r.blocks.length,r.maxLength=i.getMaxLength(r.blocks),r.creditCardType!==t.type&&(r.creditCardType=t.type,r.onCreditCardTypeChanged.call(this,r.creditCardType)))},updateValueState:function(){var e=this,t=ec.Util,r=e.properties;if(e.element){var i=e.element.selectionEnd,a=e.element.value,o=r.result;if(i=t.getNextCursorPosition(i,a,o,r.delimiter,r.delimiters),e.isAndroid){window.setTimeout(function(){e.element.value=o,t.setSelection(e.element,i,r.document,!1),e.callOnValueChanged()},1);return}e.element.value=o,r.swapHiddenInput&&(e.elementSwapHidden.value=e.getRawValue()),t.setSelection(e.element,i,r.document,!1),e.callOnValueChanged()}},callOnValueChanged:function(){var e=this.properties;e.onValueChanged.call(this,{target:{name:this.element.name,value:e.result,rawValue:this.getRawValue()}})},setPhoneRegionCode:function(e){this.properties.phoneRegionCode=e,this.initPhoneFormatter(),this.onChange()},setRawValue:function(e){var t=this.properties;e=null!=e?e.toString():"",t.numeral&&(e=e.replace(".",t.numeralDecimalMark)),t.postDelimiterBackspace=!1,this.element.value=e,this.onInput(e)},getRawValue:function(){var e=this.properties,t=ec.Util,r=this.element.value;return e.rawValueTrimPrefix&&(r=t.getPrefixStrippedValue(r,e.prefix,e.prefixLength,e.result,e.delimiter,e.delimiters,e.noImmediatePrefix,e.tailPrefix,e.signBeforePrefix)),r=e.numeral?e.numeralFormatter.getRawValue(r):t.stripDelimiters(r,e.delimiter,e.delimiters)},getISOFormatDate:function(){var e=this.properties;return e.date?e.dateFormatter.getISOFormatDate():""},getISOFormatTime:function(){var e=this.properties;return e.time?e.timeFormatter.getISOFormatTime():""},getFormattedValue:function(){return this.element.value},destroy:function(){this.element.removeEventListener("input",this.onChangeListener),this.element.removeEventListener("keydown",this.onKeyDownListener),this.element.removeEventListener("focus",this.onFocusListener),this.element.removeEventListener("cut",this.onCutListener),this.element.removeEventListener("copy",this.onCopyListener)},toString:function(){return"[Cleave Object]"}},ec.NumeralFormatter=ei,ec.DateFormatter=ea,ec.TimeFormatter=eo,ec.PhoneFormatter=es,ec.CreditCardDetector=el,ec.Util={noop:function(){},strip:function(e,t){return e.replace(t,"")},getPostDelimiter:function(e,t,r){if(0===r.length)return e.slice(-t.length)===t?t:"";var i="";return r.forEach(function(t){e.slice(-t.length)===t&&(i=t)}),i},getDelimiterREByDelimiter:function(e){return RegExp(e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),"g")},getNextCursorPosition:function(e,t,r,i,a){return t.length===e?r.length:e+this.getPositionOffset(e,t,r,i,a)},getPositionOffset:function(e,t,r,i,a){var o,s,l;return o=this.stripDelimiters(t.slice(0,e),i,a),s=this.stripDelimiters(r.slice(0,e),i,a),0!=(l=o.length-s.length)?l/Math.abs(l):0},stripDelimiters:function(e,t,r){var i=this;if(0===r.length){var a=t?i.getDelimiterREByDelimiter(t):"";return e.replace(a,"")}return r.forEach(function(t){t.split("").forEach(function(t){e=e.replace(i.getDelimiterREByDelimiter(t),"")})}),e},headStr:function(e,t){return e.slice(0,t)},getMaxLength:function(e){return e.reduce(function(e,t){return e+t},0)},getPrefixStrippedValue:function(e,t,r,i,a,o,s,l,c){if(0===r)return e;if(e===t&&""!==e)return"";if(c&&"-"==e.slice(0,1)){var u="-"==i.slice(0,1)?i.slice(1):i;return"-"+this.getPrefixStrippedValue(e.slice(1),t,r,u,a,o,s,l,c)}if(i.slice(0,r)!==t&&!l)return s&&!i&&e?e:"";if(i.slice(-r)!==t&&l)return s&&!i&&e?e:"";var d=this.stripDelimiters(i,a,o);return e.slice(0,r)===t||l?e.slice(-r)!==t&&l?d.slice(0,-r-1):l?e.slice(0,-r):e.slice(r):d.slice(r)},getFirstDiffIndex:function(e,t){for(var r=0;e.charAt(r)===t.charAt(r);)if(""===e.charAt(r++))return -1;return r},getFormattedValue:function(e,t,r,i,a,o){var s="",l=a.length>0,c="";return 0===r?e:(t.forEach(function(t,u){if(e.length>0){var d=e.slice(0,t),f=e.slice(t);c=l?a[o?u-1:u]||c:i,o?(u>0&&(s+=c),s+=d):(s+=d,d.length===t&&u<r-1&&(s+=c)),e=f}}),s)},fixPrefixCursor:function(e,t,r,i){if(e){var a=e.value,o=r||i[0]||" ";if(e.setSelectionRange&&t&&!(t.length+o.length<=a.length)){var s=2*a.length;setTimeout(function(){e.setSelectionRange(s,s)},1)}}},checkFullSelection:function(e){try{return(window.getSelection()||document.getSelection()||{}).toString().length===e.length}catch(e){}return!1},setSelection:function(e,t,r){if(e===this.getActiveElement(r)&&(!e||!(e.value.length<=t))){if(e.createTextRange){var i=e.createTextRange();i.move("character",t),i.select()}else try{e.setSelectionRange(t,t)}catch(e){console.warn("The input element type does not support selection")}}},getActiveElement:function(e){var t=e.activeElement;return t&&t.shadowRoot?this.getActiveElement(t.shadowRoot):t},isAndroid:function(){return navigator&&/android/i.test(navigator.userAgent)},isAndroidBackspaceKeydown:function(e,t){return!!this.isAndroid()&&!!e&&!!t&&t===e.slice(0,-1)}},ec.DefaultProperties={assign:function(e,t){return t=t||{},(e=e||{}).creditCard=!!t.creditCard,e.creditCardStrictMode=!!t.creditCardStrictMode,e.creditCardType="",e.onCreditCardTypeChanged=t.onCreditCardTypeChanged||function(){},e.phone=!!t.phone,e.phoneRegionCode=t.phoneRegionCode||"AU",e.phoneFormatter={},e.time=!!t.time,e.timePattern=t.timePattern||["h","m","s"],e.timeFormat=t.timeFormat||"24",e.timeFormatter={},e.date=!!t.date,e.datePattern=t.datePattern||["d","m","Y"],e.dateMin=t.dateMin||"",e.dateMax=t.dateMax||"",e.dateFormatter={},e.numeral=!!t.numeral,e.numeralIntegerScale=t.numeralIntegerScale>0?t.numeralIntegerScale:0,e.numeralDecimalScale=t.numeralDecimalScale>=0?t.numeralDecimalScale:2,e.numeralDecimalMark=t.numeralDecimalMark||".",e.numeralThousandsGroupStyle=t.numeralThousandsGroupStyle||"thousand",e.numeralPositiveOnly=!!t.numeralPositiveOnly,e.stripLeadingZeroes=!1!==t.stripLeadingZeroes,e.signBeforePrefix=!!t.signBeforePrefix,e.tailPrefix=!!t.tailPrefix,e.swapHiddenInput=!!t.swapHiddenInput,e.numericOnly=e.creditCard||e.date||!!t.numericOnly,e.uppercase=!!t.uppercase,e.lowercase=!!t.lowercase,e.prefix=e.creditCard||e.date?"":t.prefix||"",e.noImmediatePrefix=!!t.noImmediatePrefix,e.prefixLength=e.prefix.length,e.rawValueTrimPrefix=!!t.rawValueTrimPrefix,e.copyDelimiter=!!t.copyDelimiter,e.initValue=void 0!==t.initValue&&null!==t.initValue?t.initValue.toString():"",e.delimiter=t.delimiter||""===t.delimiter?t.delimiter:t.date?"/":t.time?":":t.numeral?",":(t.phone," "),e.delimiterLength=e.delimiter.length,e.delimiterLazyShow=!!t.delimiterLazyShow,e.delimiters=t.delimiters||[],e.blocks=t.blocks||[],e.blocksLength=e.blocks.length,e.root="object"==typeof er&&er?er:window,e.document=t.document||e.root.document,e.maxLength=0,e.backspace=!1,e.result="",e.onValueChanged=t.onValueChanged||function(){},e}},("object"==typeof er&&er?er:window).Cleave=ec;var ed={};y(ed,"ufs",()=>rR),y(ed,"getCepData",()=>rO),y(ed,"getLocations",()=>rM),y(ed,"updateDefault",()=>rN),y(ed,"updateOptions",()=>rj),y(ed,"fixMissingUfCity",()=>rF);let ef="10.27.0",ep=globalThis;function eh(){return eg(ep),ep}function eg(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||ef,t[ef]=t[ef]||{}}function em(e,t,r=ep){let i=r.__SENTRY__=r.__SENTRY__||{},a=i[ef]=i[ef]||{};return a[e]||(a[e]=t())}let ev="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,ey=Object.prototype.toString;function eb(e){switch(ey.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return eA(e,Error)}}function e_(e,t){return ey.call(e)===`[object ${t}]`}function ew(e){return e_(e,"ErrorEvent")}function ex(e){return e_(e,"DOMError")}function eE(e){return e_(e,"String")}function eS(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function ek(e){return null===e||eS(e)||"object"!=typeof e&&"function"!=typeof e}function e$(e){return e_(e,"Object")}function eC(e){return"undefined"!=typeof Event&&eA(e,Event)}function eL(e){return!!(e?.then&&"function"==typeof e.then)}function eA(e,t){try{return e instanceof t}catch{return!1}}function eI(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue||e.__v_isVNode))}function eD(e,t={}){if(!e)return"<unknown>";try{let r,i=e,a=[],o=0,s=0,l=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||80;for(;i&&o++<5&&(r=function(e,t){let r=[];if(!e?.tagName)return"";if(ep.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}r.push(e.tagName.toLowerCase());let i=t?.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(i?.length)i.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{e.id&&r.push(`#${e.id}`);let t=e.className;if(t&&eE(t))for(let e of t.split(/\s+/))r.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let i=e.getAttribute(t);i&&r.push(`[${t}="${i}"]`)}return r.join("")}(i,l),"html"!==r&&(!(o>1)||!(s+3*a.length+r.length>=c)));)a.push(r),s+=r.length,i=i.parentNode;return a.reverse().join(" > ")}catch{return"<unknown>"}}function eP(){try{return ep.document.location.href}catch{return""}}let eR=["debug","info","warn","error","log","assert","trace"],eT={};function eO(e){if(!("console"in ep))return e();let t=ep.console,r={},i=Object.keys(eT);i.forEach(e=>{let i=eT[e];r[e]=t[e],t[e]=i});try{return e()}finally{i.forEach(e=>{t[e]=r[e]})}}function eM(){return ej().enabled}function eN(e,...t){ev&&eM()&&eO(()=>{ep.console[e](`Sentry Logger [${e}]:`,...t)})}function ej(){return ev?em("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let eF={enable:function(){ej().enabled=!0},log:function(...e){eN("log",...e)},warn:function(...e){eN("warn",...e)},error:function(...e){eN("error",...e)}};function eV(e,t,r){if(!(t in e))return;let i=e[t];if("function"!=typeof i)return;let a=r(i);"function"==typeof a&&eq(a,i);try{e[t]=a}catch{ev&&eF.log(`Failed to replace method "${t}" in object`,e)}}function eU(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch{ev&&eF.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function eq(e,t){try{let r=t.prototype||{};e.prototype=t.prototype=r,eU(e,"__sentry_original__",t)}catch{}}function eB(e){return e.__sentry_original__}function eH(e){if(eb(e))return{message:e.message,name:e.name,stack:e.stack,...eG(e)};if(!eC(e))return e;{let t={type:e.type,target:eW(e.target),currentTarget:eW(e.currentTarget),...eG(e)};return"undefined"!=typeof CustomEvent&&eA(e,CustomEvent)&&(t.detail=e.detail),t}}function eW(e){try{return"undefined"!=typeof Element&&eA(e,Element)?eD(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function eG(e){if("object"!=typeof e||null===e)return{};{let t={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}}let ez=/\(error: (.*)\)/,eZ=/captureMessage|captureException/;function eY(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,r=0,i=0)=>{let a=[],o=e.split("\n");for(let e=r;e<o.length;e++){let r=o[e];r.length>1024&&(r=r.slice(0,1024));let s=ez.test(r)?r.replace(ez,"$1"):r;if(!s.match(/\S*Error: /)){for(let e of t){let t=e(s);if(t){a.push(t);break}}if(a.length>=50+i)break}}return function(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(eJ(t).function||"")&&t.pop(),t.reverse(),eZ.test(eJ(t).function||"")&&(t.pop(),eZ.test(eJ(t).function||"")&&t.pop()),t.slice(0,50).map(e=>({...e,filename:e.filename||eJ(t).filename,function:e.function||"?"}))}(a.slice(i))}}function eJ(e){return e[e.length-1]||{}}let eK="<anonymous>";function eX(e){try{if(!e||"function"!=typeof e)return eK;return e.name||eK}catch{return eK}}function eQ(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{}}}function e0(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}function e1(e,t=0){return"string"!=typeof e||0===t?e:e.length<=t?e:`${e.slice(0,t)}...`}function e2(e,t){if(!Array.isArray(e))return"";let r=[];for(let t=0;t<e.length;t++){let i=e[t];try{eI(i)?r.push(e0(i)):r.push(String(i))}catch{r.push("[value cannot be serialized]")}}return r.join(t)}function e4(e,t,r=!1){return!!eE(e)&&(e_(t,"RegExp")?t.test(e):!!eE(t)&&(r?e===t:e.includes(t)))}function e5(e,t=[],r=!1){return t.some(t=>e4(e,t,r))}function e3(t=ep.crypto||ep.msCrypto){try{if(t?.randomUUID)return t.randomUUID().replace(/-/g,"")}catch{}return e||(e="10000000100040008000100000000000"),e.replace(/[018]/g,e=>(e^(15&16*Math.random())>>e/4).toString(16))}function e7(e){return e.exception?.values?.[0]}function e6(e){let{message:t,event_id:r}=e;if(t)return t;let i=e7(e);return i?i.type&&i.value?`${i.type}: ${i.value}`:i.type||i.value||r||"<unknown>":r||"<unknown>"}function e8(e,t,r){let i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{};o.value||(o.value=t||""),o.type||(o.type=r||"Error")}function e9(e,t){let r=e7(e);if(!r)return;let i=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...i,...t},t&&"data"in t){let e={...i?.data,...t.data};r.mechanism.data=e}}function te(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{eU(e,"__sentry_captured__",!0)}catch{}return!1}function tt(){return Date.now()/1e3}function tn(){return(t??(t=function(){let{performance:e}=ep;if(!e?.now||!e.timeOrigin)return tt;let t=e.timeOrigin;return()=>(t+e.now())/1e3}()))()}function tr(e,t={}){if(!t.user||(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||tn(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:e3()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function ti(e,t,r=2){if(!t||"object"!=typeof t||r<=0)return t;if(e&&0===Object.keys(t).length)return e;let i={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(i[e]=ti(i[e],t[e],r-1));return i}function ta(){return e3().substring(16)}let to="_sentrySpan";function ts(e,t){t?eU(e,to,t):delete e[to]}class tl{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:e3(),sampleRand:Math.random()}}clone(){let e=new tl;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,ts(e,this[to]),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&tr(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,{tags:r,attributes:i,extra:a,user:o,contexts:s,level:l,fingerprint:c=[],propagationContext:u}=(t instanceof tl?t.getScopeData():e$(t)?e:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),l&&(this._level=l),c.length&&(this._fingerprint=c),u&&(this._propagationContext=u),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,ts(this,void 0),this._attachments=[],this.setPropagationContext({traceId:e3(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let r="number"==typeof t?t:100;if(r<=0)return this;let i={timestamp:tt(),...e,message:e.message?e1(e.message,2048):e.message};return this._breadcrumbs.push(i),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:this[to]}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=ti(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let r=t?.event_id||e3();if(!this._client)return ev&&eF.warn("No client configured on scope - will not capture exception!"),r;let i=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:r},this),r}captureMessage(e,t,r){let i=r?.event_id||e3();if(!this._client)return ev&&eF.warn("No client configured on scope - will not capture message!"),i;let a=r?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:a,...r,event_id:i},this),i}captureEvent(e,t){let r=t?.event_id||e3();return this._client?this._client.captureEvent(e,{...t,event_id:r},this):ev&&eF.warn("No client configured on scope - will not capture event!"),r}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}class tc{constructor(e,t){let r,i;r=e||new tl,i=t||new tl,this._stack=[{scope:r}],this._isolationScope=i}withScope(e){let t;let r=this._pushScope();try{t=e(r)}catch(e){throw this._popScope(),e}return eL(t)?t.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function tu(){let e=eg(eh());return e.stack=e.stack||new tc(em("defaultCurrentScope",()=>new tl),em("defaultIsolationScope",()=>new tl))}function td(e){return tu().withScope(e)}function tf(e,t){let r=tu();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function tp(e){return tu().withScope(()=>e(tu().getIsolationScope()))}function th(e){let t=eg(e);return t.acs?t.acs:{withIsolationScope:tp,withScope:td,withSetScope:tf,withSetIsolationScope:(e,t)=>tp(t),getCurrentScope:()=>tu().getScope(),getIsolationScope:()=>tu().getIsolationScope()}}function tg(){return th(eh()).getCurrentScope()}function tm(){return th(eh()).getIsolationScope()}function tv(...e){let t=th(eh());if(2===e.length){let[r,i]=e;return r?t.withSetScope(r,i):t.withScope(i)}return t.withScope(e[0])}function ty(){return tg().getClient()}let tb="production";function t_(e){return new tx(t=>{t(e)})}function tw(e){return new tx((t,r)=>{r(e)})}class tx{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new tx((r,i)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){i(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){i(e)}else i(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new tx((t,r)=>{let i,a;return this.then(t=>{a=!1,i=t,e&&e()},t=>{a=!0,i=t,e&&e()}).then(()=>{if(a){r(i);return}t(i)})})}_executeHandlers(){if(0===this._state)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(e){let t=(e,t)=>{if(0===this._state){if(eL(t)){t.then(r,i);return}this._state=e,this._value=t,this._executeHandlers()}},r=e=>{t(1,e)},i=e=>{t(2,e)};try{e(r,i)}catch(e){i(e)}}}let tE="sentry.profile_id",tS="sentry.exclusive_time",tk=/^sentry-/;function t$(e){return e.split(",").map(e=>{let t=e.indexOf("=");return -1===t?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,r])=>(t&&r&&(e[t]=r),e),{})}let tC=/^o(\d+)\./,tL=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function tA(e,t=!1){let{host:r,path:i,pass:a,port:o,projectId:s,protocol:l,publicKey:c}=e;return`${l}://${c}${t&&a?`:${a}`:""}@${r}${o?`:${o}`:""}/${i?`${i}/`:i}${s}`}function tI(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function tD(e){return{scope:e._sentryScope,isolationScope:function(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}(e._sentryIsolationScope)}}RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");let tP=!1;function tR(e){return"number"==typeof e?tT(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?tT(e.getTime()):tn()}function tT(e){return e>0x2540be3ff?e/1e3:e}function tO(e){var t;if("function"==typeof e.getSpanJSON)return e.getSpanJSON();let{spanId:r,traceId:i}=e.spanContext();if((t=e).attributes&&t.startTime&&t.name&&t.endTime&&t.status){let{attributes:t,startTime:a,name:o,endTime:s,status:l,links:c}=e;return{span_id:r,trace_id:i,data:t,description:o,parent_span_id:"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0,start_timestamp:tR(a),timestamp:tR(s)||void 0,status:function(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"internal_error"}(l),op:t["sentry.op"],origin:t["sentry.origin"],links:c&&c.length>0?c.map(({context:{spanId:e,traceId:t,traceFlags:r,...i},attributes:a})=>({span_id:e,trace_id:t,sampled:1===r,attributes:a,...i})):void 0}}return{span_id:r,trace_id:i,start_timestamp:0,data:{}}}function tM(e){return e._sentryRootSpan||e}function tN(){tP||(eO(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),tP=!0)}function tj(e,t){let r=t.getOptions(),{publicKey:i}=t.getDsn()||{},a={environment:r.environment||tb,release:r.release,public_key:i,trace_id:e,org_id:function(e){let t;let r=e.getOptions(),{host:i}=e.getDsn()||{};return r.orgId?t=String(r.orgId):i&&(t=function(e){let t=e.match(tC);return t?.[1]}(i)),t}(t)};return t.emit("createDsc",a),a}function tF(e,t){let{extra:r,tags:i,user:a,contexts:o,level:s,sdkProcessingMetadata:l,breadcrumbs:c,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:p,transactionName:h,span:g}=t;tV(e,"extra",r),tV(e,"tags",i),tV(e,"user",a),tV(e,"contexts",o),e.sdkProcessingMetadata=ti(e.sdkProcessingMetadata,l,2),s&&(e.level=s),h&&(e.transactionName=h),g&&(e.span=g),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function tV(e,t,r){e[t]=ti(e[t],r,1)}function tU(e,t=100,r=1/0){try{return function e(t,r,i=1/0,a=1/0,o=function(){let e=new WeakSet;return[function(t){return!!e.has(t)||(e.add(t),!1)},function(t){e.delete(t)}]}()){let[s,l]=o;if(null==r||["boolean","string"].includes(typeof r)||"number"==typeof r&&Number.isFinite(r))return r;let c=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==C&&t===C)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(eI(t))return e0(t);if(e$(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t)return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${eX(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let r=function(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(t);if(/^HTML(\w*)Element$/.test(r))return`[HTMLElement: ${r}]`;return`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}}(t,r);if(!c.startsWith("[object "))return c;if(r.__sentry_skip_normalization__)return r;let u="number"==typeof r.__sentry_override_normalization_depth__?r.__sentry_override_normalization_depth__:i;if(0===u)return c.replace("object ","");if(s(r))return"[Circular ~]";if(r&&"function"==typeof r.toJSON)try{let t=r.toJSON();return e("",t,u-1,a,o)}catch{}let d=Array.isArray(r)?[]:{},f=0,p=eH(r);for(let t in p){if(!Object.prototype.hasOwnProperty.call(p,t))continue;if(f>=a){d[t]="[MaxProperties ~]";break}let r=p[t];d[t]=e(t,r,u-1,a,o),f++}return l(r),d}("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}let tq=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function tB(e,t){return tg().captureException(e,function(e){if(e){var t;return(t=e)instanceof tl||"function"==typeof t||Object.keys(e).some(e=>tq.includes(e))?{captureContext:e}:e}}(t))}function tH(e,t){return tg().captureEvent(e,t)}function tW(e){let t=tm(),r=tg(),{userAgent:i}=ep.navigator||{},a=function(e){let t=tn(),r={sid:e3(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>{var e;return e=r,{sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}};return e&&tr(r,e),r}({user:r.getUser()||t.getUser(),...i&&{userAgent:i},...e}),o=t.getSession();return o?.status==="ok"&&tr(o,{status:"exited"}),tG(),t.setSession(a),a}function tG(){let e=tm(),t=tg().getSession()||e.getSession();if(t){let e;e={},"ok"===t.status&&(e={status:"exited"}),tr(t,e)}tz(),e.setSession()}function tz(){let e=tm(),t=ty(),r=e.getSession();r&&t&&t.captureSession(r)}function tZ(e=!1){if(e){tG();return}tz()}let tY=[];function tJ(e,t){for(let r of t)r?.afterAllSetup&&r.afterAllSetup(e)}function tK(e,t,r){if(r[t.name]){ev&&eF.log(`Integration skipped because it was already installed: ${t.name}`);return}if(r[t.name]=t,tY.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),tY.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,i)=>r(t,i,e))}if("function"==typeof t.processEvent){let r=t.processEvent.bind(t),i=Object.assign((t,i)=>r(t,i,e),{id:t.name});e.addEventProcessor(i)}ev&&eF.log(`Integration installed: ${t.name}`)}let tX=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{var r,i;if(r=t,(i=e)&&(function(e,t){let r=e.message,i=t.message;return!!((r||i)&&(!r||i)&&(r||!i)&&r===i&&t0(e,t)&&tQ(e,t))}(r,i)||function(e,t){let r=t1(t),i=t1(e);return!!(r&&i&&r.type===i.type&&r.value===i.value&&t0(e,t)&&tQ(e,t))}(r,i)))return ev&&eF.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function tQ(e,t){let r=eQ(e),i=eQ(t);if(!r&&!i)return!0;if(r&&!i||!r&&i||i.length!==r.length)return!1;for(let e=0;e<i.length;e++){let t=i[e],a=r[e];if(t.filename!==a.filename||t.lineno!==a.lineno||t.colno!==a.colno||t.function!==a.function)return!1}return!0}function t0(e,t){let r=e.fingerprint,i=t.fingerprint;if(!r&&!i)return!0;if(r&&!i||!r&&i)return!1;try{return r.join("")===i.join("")}catch{return!1}}function t1(e){return e.exception?.values?.[0]}let t2=new WeakMap,t4=()=>({name:"FunctionToString",setupOnce(){s=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=eB(this),r=t2.has(ty())&&void 0!==t?t:this;return s.apply(r,e)}}catch{}},setup(e){t2.set(e,!0)}});function t5(e){let t=[];e.message&&t.push(e.message);try{let r=e.exception.values[e.exception.values.length-1];r?.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`))}catch{}return t}let t3=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],t7=(e={})=>{let t;return{name:"EventFilters",setup(r){t=t8(e,r.getOptions())},processEvent:(r,i,a)=>(t||(t=t8(e,a.getOptions())),!function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;let r=e.transaction;return!!r&&e5(r,t)}(e,t.ignoreTransactions))return ev&&eF.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${e6(e)}`),!0}else{var r,i,a;if(r=e,i=t.ignoreErrors,i?.length&&t5(r).some(e=>e5(e,i)))return ev&&eF.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${e6(e)}`),!0;if(a=e,a.exception?.values?.length&&!a.message&&!a.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))return ev&&eF.warn(`Event dropped due to not having an error message, error type or stacktrace.
Event: ${e6(e)}`),!0;if(function(e,t){if(!t?.length)return!1;let r=t9(e);return!!r&&e5(r,t)}(e,t.denyUrls))return ev&&eF.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${e6(e)}.
Url: ${t9(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;let r=t9(e);return!r||e5(r,t)}(e,t.allowUrls))return ev&&eF.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${e6(e)}.
Url: ${t9(e)}`),!0}return!1}(r,t)?r:null)}},t6=(e={})=>({...t7(e),name:"InboundFilters"});function t8(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:t3],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function t9(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length),r=t?.stacktrace?.frames;return r?function(e=[]){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(r):null}catch{return ev&&eF.error(`Cannot extract url for event ${e6(e)}`),null}}function ne(e,t=[]){return[e,t]}function nt(e,t){for(let r of e[1]){let e=r[0].type;if(t(r,e))return!0}return!1}function nn(e){let t=eg(ep);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}let nr={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function ni(e){if(!e?.sdk)return;let{name:t,version:r}=e.sdk;return{name:t,version:r}}function na(e,t){var r;let i=t??(r=e,no().get(r))??[];if(0===i.length)return;let a=e.getOptions(),o=function(e,t,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),r&&i&&(a.dsn=tA(i)),ne(a,[[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]])}(i,a._metadata,a.tunnel,e.getDsn());no().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(o)}function no(){return em("clientToLogBufferMap",()=>new WeakMap)}function ns(e,t){var r;let i=t??(r=e,nl().get(r))??[];if(0===i.length)return;let a=e.getOptions(),o=function(e,t,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),r&&i&&(a.dsn=tA(i)),ne(a,[[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]])}(i,a._metadata,a.tunnel,e.getDsn());nl().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(o)}function nl(){return em("clientToMetricBufferMap",()=>new WeakMap)}function nc(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}function nu(e){eF.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function nd(e,t){if(!t?.length||!e.description)return!1;for(let i of t){var r;if("string"==typeof(r=i)||r instanceof RegExp){if(e4(e.description,i))return ev&&nu(e),!0;continue}if(!i.name&&!i.op)continue;let t=!i.name||e4(e.description,i.name),a=!i.op||e.op&&e4(e.op,i.op);if(t&&a)return ev&&nu(e),!0}return!1}let nf=Symbol.for("SentryBufferFullError");function np(e=100){let t=new Set;return{get $(){return Array.from(t)},add:function(r){if(!(t.size<e))return tw(nf);let i=r();return t.add(i),i.then(()=>{t.delete(i)},()=>{t.delete(i)}),i},drain:function(e){if(!t.size)return t_(!0);let r=Promise.allSettled(Array.from(t)).then(()=>!0);return e?Promise.race([r,new Promise(t=>setTimeout(()=>t(!1),e))]):r}}}let nh="Not capturing exception because it's already been captured.",ng="Discarded session because of missing or non-string release",nm=Symbol.for("SentryInternalError"),nv=Symbol.for("SentryDoNotSendEventError");function ny(e){return{message:e,[nm]:!0}}function nb(e){return{message:e,[nv]:!0}}function n_(e){return!!e&&"object"==typeof e&&nm in e}function nw(e){return!!e&&"object"==typeof e&&nv in e}function nx(e,t,r,i,a){let o,s=0,l=!1;e.on(r,()=>{s=0,clearTimeout(o),l=!1}),e.on(t,t=>{(s+=i(t))>=8e5?a(e):l||(l=!0,o=setTimeout(()=>{a(e)},5e3))}),e.on("flush",()=>{a(e)})}class nE{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=np(e.transportOptions?.bufferSize??64),e.dsn?this._dsn=function(e){let t="string"==typeof e?function(e){let t=tL.exec(e);if(!t){eO(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[r,i,a="",o="",s="",l=""]=t.slice(1),c="",u=l,d=u.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),u=d.pop()),u){let e=u.match(/^\d+/);e&&(u=e[0])}return tI({host:o,pass:a,path:c,projectId:u,port:s,protocol:r,publicKey:i})}(e):tI(e);if(t&&function(e){if(!ev)return!0;let{port:t,projectId:r,protocol:i}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(eF.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(r.match(/^\d+$/)?"http"!==i&&"https"!==i?(eF.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),!1):!(t&&isNaN(parseInt(t,10)))||(eF.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(eF.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1))}(t))return t}(e.dsn):ev&&eF.warn("No DSN provided, client will not send events."),this._dsn){var t,r,i;let a=(t=this._dsn,r=e.tunnel,i=e._metadata?e._metadata.sdk:void 0,r||`${function(e){let t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}(t)}${t.projectId}/envelope/?${function(e,t){let r={sentry_version:"7"};return e.publicKey&&(r.sentry_key=e.publicKey),t&&(r.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(r).toString()}(t,i)}`);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:a})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&nx(this,"afterCaptureLog","flushLogs",nL,na),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&nx(this,"afterCaptureMetric","flushMetrics",nC,ns)}captureException(e,t,r){let i=e3();if(te(e))return ev&&eF.log(nh),i;let a={event_id:i,...t};return this._process(()=>this.eventFromException(e,a).then(e=>this._captureEvent(e,a,r)).then(e=>e),"error"),a.event_id}captureMessage(e,t,r,i){let a={event_id:e3(),...r},o=eS(e)?e:String(e),s=ek(e),l=s?this.eventFromMessage(o,t,a):this.eventFromException(e,a);return this._process(()=>l.then(e=>this._captureEvent(e,a,i)),s?"unknown":"error"),a.event_id}captureEvent(e,t,r){let i=e3();if(t?.originalException&&te(t.originalException))return ev&&eF.log(nh),i;let a={event_id:i,...t},o=e.sdkProcessingMetadata||{},s=o.capturedSpanScope,l=o.capturedSpanIsolationScope,c=nS(e.type);return this._process(()=>this._captureEvent(e,a,s||r,l),c),a.event_id}captureSession(e){this.sendSession(e),tr(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(!t)return!0;this.emit("flush");let r=await this._isClientDoneProcessing(e),i=await t.flush(e);return r&&i}async close(e){let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];tK(this,e,this._integrations),t||tJ(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=function(e,t,r,i){let a=ni(r),o=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){if(!t)return;let r=e.sdk||{};e.sdk={...r,name:r.name||t.name,version:r.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0}}(e,r?.sdk);let s=function(e,t,r,i){let a=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!r&&i&&{dsn:tA(i)},...a&&{trace:a}}}(e,a,i,t);return delete e.sdkProcessingMetadata,ne(s,[[{type:o},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=function(e,t){let[r,i]=e;return[r,[...i,t]]}(r,function(e){let t="string"==typeof e.data?nn(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}(e));this.sendEnvelope(r).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){let{release:t,environment:r=tb}=this._options;if("aggregates"in e){let i=e.attrs||{};if(!i.release&&!t){ev&&eF.warn(ng);return}i.release=i.release||t,i.environment=i.environment||r,e.attrs=i}else{if(!e.release&&!t){ev&&eF.warn(ng);return}e.release=e.release||t,e.environment=e.environment||r}this.emit("beforeSendSession",e);let i=function(e,t,r,i){let a=ni(r);return ne({sent_at:new Date().toISOString(),...a&&{sdk:a},...!!i&&t&&{dsn:tA(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(e,t,r=1){if(this._options.sendClientReports){let i=`${e}:${t}`;ev&&eF.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}on(e,t){let r=this._hooks[e]=this._hooks[e]||new Set,i=(...e)=>t(...e);return r.add(i),()=>{r.delete(i)}}emit(e,...t){let r=this._hooks[e];r&&r.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return ev&&eF.error("Error while sending envelope:",e),{}}return ev&&eF.error("Transport disabled"),{}}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=function(e,t){let r={};return t.forEach(t=>{t&&tK(e,t,r)}),r}(this,e),tJ(this,e)}_updateSessionFromEvent(e,t){let r="fatal"===t.level,i=!1,a=t.exception?.values;if(a){for(let e of(i=!0,r=!1,a))if(e.mechanism?.handled===!1){r=!0;break}}let o="ok"===e.status;(o&&0===e.errors||o&&r)&&(tr(e,{...r&&{status:"crashed"},errors:e.errors||Number(i||r)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,s,l){let c=this.getOptions(),u=Object.keys(this._integrations);return!t.integrations&&u?.length&&(t.integrations=u),this.emit("preprocessEvent",e,t),e.type||l.setLastEventId(e.event_id||t.event_id),(function(e,t,s,l,c,u){var d,f;let{normalizeDepth:p=3,normalizeMaxBreadth:h=1e3}=e,g={...t,event_id:t.event_id||s.event_id||e3(),timestamp:t.timestamp||tt()},m=s.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:r,release:i,dist:a,maxValueLength:o}=t;e.environment=e.environment||r||tb,!e.release&&i&&(e.release=i),!e.dist&&a&&(e.dist=a);let s=e.request;s?.url&&o&&(s.url=e1(s.url,o)),o&&e.exception?.values?.forEach(e=>{e.value&&(e.value=e1(e.value,o))})})(g,e),d=g,(f=m).length>0&&(d.sdk=d.sdk||{},d.sdk.integrations=[...d.sdk.integrations||[],...f]),c&&c.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){let s=function(e){let t=ep._sentryDebugIds,s=ep._debugIds;if(!t&&!s)return{};let l=t?Object.keys(t):[],c=s?Object.keys(s):[];if(o&&l.length===i&&c.length===a)return o;i=l.length,a=c.length,o={},r||(r={});let u=(t,i)=>{for(let a of t){let t=i[a],s=r?.[a];if(s&&o&&t)o[s[0]]=t,r&&(r[a]=[s[0],t]);else if(t){let i=e(a);for(let e=i.length-1;e>=0;e--){let s=i[e],l=s?.filename;if(l&&o&&r){o[l]=t,r[a]=[l,t];break}}}}};return t&&u(l,t),s&&u(c,s),o}(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=s[e.filename])})})}(g,e.stackParser);let v=function(e,t){if(!t)return e;let r=e?e.clone():new tl;return r.update(t),r}(l,s.captureContext);s.mechanism&&e9(g,s.mechanism);let y=c?c.getEventProcessors():[],b=em("globalScope",()=>new tl).getScopeData();u&&tF(b,u.getScopeData()),v&&tF(b,v.getScopeData());let _=[...s.attachments||[],...b.attachments];return _.length&&(s.attachments=_),function(e,t){var r,i,a,o;let{fingerprint:s,span:l,breadcrumbs:c,sdkProcessingMetadata:u}=t;(function(e,t){let{extra:r,tags:i,user:a,contexts:o,level:s,transactionName:l}=t;Object.keys(r).length&&(e.extra={...r,...e.extra}),Object.keys(i).length&&(e.tags={...i,...e.tags}),Object.keys(a).length&&(e.user={...a,...e.user}),Object.keys(o).length&&(e.contexts={...o,...e.contexts}),s&&(e.level=s),l&&"transaction"!==e.type&&(e.transaction=l)})(e,t),l&&function(e,t){e.contexts={trace:function(e){let{spanId:t,traceId:r,isRemote:i}=e.spanContext(),a=i?t:tO(e).parent_span_id,o=tD(e).scope;return{parent_span_id:a,span_id:i?o?.getPropagationContext().propagationSpanId||ta():t,trace_id:r}}(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:function(e){let t=ty();if(!t)return{};let r=tM(e),i=tO(r),a=i.data,o=r.spanContext().traceState,s=o?.get("sentry.sample_rate")??a["sentry.sample_rate"]??a["sentry.previous_trace_sample_rate"];function l(e){return("number"==typeof s||"string"==typeof s)&&(e.sample_rate=`${s}`),e}let c=r._frozenDsc;if(c)return l(c);let u=o?.get("sentry.dsc"),d=u&&function(e){let t=function(e){if(e&&(eE(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>(Object.entries(t$(t)).forEach(([t,r])=>{e[t]=r}),e),{}):t$(e)}(e);if(!t)return;let r=Object.entries(t).reduce((e,[t,r])=>(t.match(tk)&&(e[t.slice("sentry-".length)]=r),e),{});return Object.keys(r).length>0?r:void 0}(u);if(d)return l(d);let f=tj(e.spanContext().traceId,t),p=a["sentry.source"],h=i.description;return"url"!==p&&h&&(f.transaction=h),function(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=ty()?.getOptions();return!!t&&(null!=t.tracesSampleRate||!!t.tracesSampler)}()&&(f.sampled=String(function(e){let{traceFlags:t}=e.spanContext();return 1===t}(r)),f.sample_rand=o?.get("sentry.sample_rand")??tD(r).scope?.getPropagationContext().sampleRand.toString()),l(f),t.emit("createDsc",f,r),f}(t),...e.sdkProcessingMetadata};let r=tO(tM(t)).description;r&&!e.transaction&&"transaction"===e.type&&(e.transaction=r)}(e,l),r=e,i=s,r.fingerprint=r.fingerprint?Array.isArray(r.fingerprint)?r.fingerprint:[r.fingerprint]:[],i&&(r.fingerprint=r.fingerprint.concat(i)),r.fingerprint.length||delete r.fingerprint,function(e,t){let r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}(e,c),a=e,o=u,a.sdkProcessingMetadata={...a.sdkProcessingMetadata,...o}}(g,b),(function(e,t,r,i=0){try{let a=function e(t,r,i,a){let o=i[a];if(!t||!o)return t;let s=o({...t},r);return(ev&&null===s&&eF.log(`Event processor "${o.id||"?"}" dropped event`),eL(s))?s.then(t=>e(t,r,i,a+1)):e(s,r,i,a+1)}(t,r,e,i);return eL(a)?a:t_(a)}catch(e){return tw(e)}})([...y,...b.eventProcessors],g,s).then(e=>(e&&function(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let r=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{r.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof p&&p>0)?function(e,t,r){if(!e)return null;let i={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:tU(e.data,t,r)}}))},...e.user&&{user:tU(e.user,t,r)},...e.contexts&&{contexts:tU(e.contexts,t,r)},...e.extra&&{extra:tU(e.extra,t,r)}};return e.contexts?.trace&&i.contexts&&(i.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(i.contexts.trace.data=tU(e.contexts.trace.data,t,r))),e.spans&&(i.spans=e.spans.map(e=>({...e,...e.data&&{data:tU(e.data,t,r)}}))),e.contexts?.flags&&i.contexts&&(i.contexts.flags=tU(e.contexts.flags,3,r)),i}(e,p,h):e)})(c,e,t,s,this,l).then(e=>(null===e||(this.emit("postprocessEvent",e,t),e.contexts={trace:function(e){let{traceId:t,parentSpanId:r,propagationSpanId:i}=e.getPropagationContext(),a={trace_id:t,span_id:i||ta()};return r&&(a.parent_span_id=r),a}(s),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:function(e,t){let r=t.getPropagationContext();return r.dsc||tj(r.traceId,e)}(this,s),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},r=tg(),i=tm()){return ev&&nk(e)&&eF.log(`Captured error event \`${t5(e)[0]||"<unknown>"}\``),this._processEvent(e,t,r,i).then(e=>e.event_id,e=>{ev&&(nw(e)?eF.log(e.message):n_(e)?eF.warn(e.message):eF.warn(e))})}_processEvent(e,t,r,i){let a=this.getOptions(),{sampleRate:o}=a,s=n$(e),l=nk(e),c=e.type||"error",u=`before send for type \`${c}\``,d=void 0===o?void 0:function(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t))&&!(t<0)&&!(t>1))return t}(o);if(l&&"number"==typeof d&&Math.random()>d)return this.recordDroppedEvent("sample_rate","error"),tw(nb(`Discarding event because it's not included in the random sample (sampling rate = ${o})`));let f=nS(e.type);return this._prepareEvent(e,t,r,i).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",f),nb("An event processor returned `null`, will not send event.");return t.data&&!0===t.data.__sentry__?e:function(e,t){let r=`${t} must return \`null\` or a valid event.`;if(eL(e))return e.then(e=>{if(!e$(e)&&null!==e)throw ny(r);return e},e=>{throw ny(`${t} rejected with ${e}`)});if(!e$(e)&&null!==e)throw ny(r);return e}(function(e,t,r,i){let{beforeSend:a,beforeSendTransaction:o,beforeSendSpan:s,ignoreSpans:l}=t,c=r;if(nk(c)&&a)return a(c,i);if(n$(c)){if(s||l){let t=function(e){let{trace_id:t,parent_span_id:r,span_id:i,status:a,origin:o,data:s,op:l}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:l,parent_span_id:r,span_id:i??"",start_timestamp:e.start_timestamp??0,status:a,timestamp:e.timestamp,trace_id:t??"",origin:o,profile_id:s?.[tE],exclusive_time:s?.[tS],measurements:e.measurements,is_segment:!0}}(c);if(l?.length&&nd(t,l))return null;if(s){let e=s(t);if(e)c=ti(r,{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[tE]:e.profile_id},...e.exclusive_time&&{[tS]:e.exclusive_time}}}},measurements:e.measurements});else tN()}if(c.spans){let t=[],r=c.spans;for(let e of r){if(l?.length&&nd(e,l)){!function(e,t){let r=t.parent_span_id,i=t.span_id;if(r)for(let t of e)t.parent_span_id===i&&(t.parent_span_id=r)}(r,e);continue}if(s){let r=s(e);r?t.push(r):(tN(),t.push(e))}else t.push(e)}let i=c.spans.length-t.length;i&&e.recordDroppedEvent("before_send","span",i),c.spans=t}}if(o){if(c.spans){let e=c.spans.length;c.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return o(c,i)}}return c}(this,a,e,t),u)}).then(a=>{if(null===a){if(this.recordDroppedEvent("before_send",f),s){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw nb(`${u} returned \`null\`, will not send event.`)}let o=r.getSession()||i.getSession();if(l&&o&&this._updateSessionFromEvent(o,a),s){let e=(a.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(a.spans?a.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let c=a.transaction_info;return s&&c&&a.transaction!==e.transaction&&(a.transaction_info={...c,source:"custom"}),this.sendEvent(a,t),a}).then(null,e=>{if(nw(e)||n_(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),ny(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===nf&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[r,i]=e.split(":");return{reason:r,category:i,quantity:t}})}_flushOutcomes(){var e;ev&&eF.log("Flushing outcomes...");let t=this._clearOutcomes();if(0===t.length){ev&&eF.log("No outcomes to send");return}if(!this._dsn){ev&&eF.log("No dsn provided, will not send outcomes");return}ev&&eF.log("Sending outcomes:",t);let r=ne((e=this._options.tunnel&&tA(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:tt(),discarded_events:t}]]);this.sendEnvelope(r)}}function nS(e){return"replay_event"===e?"replay":e||"error"}function nk(e){return void 0===e.type}function n$(e){return"transaction"===e.type}function nC(e){let t=0;return e.name&&(t+=2*e.name.length),(t+=8)+nA(e.attributes)}function nL(e){let t=0;return e.message&&(t+=2*e.message.length),t+nA(e.attributes)}function nA(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*nI(e[0]):ek(e)?t+=nI(e):t+=100}),t}function nI(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:4*("boolean"==typeof e)}function nD(e,t){let r=nR(e,t),i={type:function(e){let t=e?.name;return!t&&nO(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}(t),value:function(e){let t=e?.message;return nO(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}(t)};return r.length&&(i.stacktrace={frames:r}),void 0===i.type&&""===i.value&&(i.value="Unrecoverable error caught"),i}function nP(e,t){return{exception:{values:[nD(e,t)]}}}function nR(e,t){var r,i;let a=t.stacktrace||t.stack||"",o=(r=t)&&nT.test(r.message)?1:0,s="number"==typeof(i=t).framesToPop?i.framesToPop:0;try{return e(a,o,s)}catch{}return[]}let nT=/Minified React error #\d+;/i;function nO(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function nM(e,t,r,i,a){let o;if(ew(t)&&t.error)return nP(e,t.error);if(ex(t)||e_(t,"DOMException")){if("stack"in t)o=nP(e,t);else{let a=t.name||(ex(t)?"DOMError":"DOMException"),s=t.message?`${a}: ${t.message}`:a;e8(o=nN(e,s,r,i),s)}return"code"in t&&(o.tags={...o.tags,"DOMException.code":`${t.code}`}),o}return eb(t)?nP(e,t):(e$(t)||eC(t)?e9(o=function(e,t,r,i){let a=ty(),o=a?.getOptions().normalizeDepth,s=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let r=e[t];if(r instanceof Error)return r}}(t),l={__serialized__:function e(t,r=3,i=102400){let a=tU(t,r);return~-encodeURI(JSON.stringify(a)).split(/%..|./).length>i?e(t,r-1,i):a}(t,o)};if(s)return{exception:{values:[nD(e,s)]},extra:l};let c={exception:{values:[{type:eC(t)?t.constructor.name:i?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let r=function(e){let t=Object.keys(eH(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}(e),i=t?"promise rejection":"exception";if(ew(e))return`Event \`ErrorEvent\` captured as ${i} with message \`${e.message}\``;if(eC(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${i}`}return`Object captured as ${i} with keys: ${r}`}(t,{isUnhandledRejection:i})}]},extra:l};if(r){let t=nR(e,r);t.length&&(c.exception.values[0].stacktrace={frames:t})}return c}(e,t,r,a),{synthetic:!0}):(e8(o=nN(e,t,r,i),`${t}`,void 0),e9(o,{synthetic:!0})),o)}function nN(e,t,r,i){let a={};if(i&&r){let i=nR(e,r);i.length&&(a.exception={values:[{value:t,stacktrace:{frames:i}}]}),e9(a,{synthetic:!0})}if(eS(t)){let{__sentry_template_string__:e,__sentry_template_values__:r}=t;return a.logentry={message:e,params:r},a}return a.message=t,a}let nj=0;function nF(e,t={}){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t){if("function"==typeof t)return t;return e}if(eB(e))return e}catch{return e}let r=function(...r){try{let i=r.map(e=>nF(e,t));return e.apply(this,i)}catch(e){throw nj++,setTimeout(()=>{nj--}),tv(i=>{i.addEventProcessor(e=>(t.mechanism&&(e8(e,void 0,void 0),e9(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),tB(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}eq(r,e),eU(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch{}return r}class nV extends nE{constructor(e){var t;let r=(t=e,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:ep.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t});!function(e,t,r=[t],i="npm"){let a=e._metadata||{};a.sdk||(a.sdk={name:`sentry.javascript.${t}`,packages:r.map(e=>({name:`${i}:@sentry/${e}`,version:ef})),version:ef}),e._metadata=a}(r,"browser",["browser"],ep.SENTRY_SDK_SOURCE||"npm"),r._metadata?.sdk&&(r._metadata.sdk.settings={infer_ip:r.sendDefaultPii?"auto":"never",...r._metadata.sdk.settings}),super(r);let{sendDefaultPii:i,sendClientReports:a,enableLogs:o,_experiments:s,enableMetrics:l}=this._options,c=l??s?.enableMetrics??!0;ep.document&&(a||o||c)&&ep.document.addEventListener("visibilitychange",()=>{"hidden"===ep.document.visibilityState&&(a&&this._flushOutcomes(),o&&na(this),c&&ns(this))}),i&&this.on("beforeSendSession",nc)}eventFromException(e,t){return function(e,t,r,i){let a=nM(e,t,r?.syntheticException||void 0,i);return e9(a),a.level="error",r?.event_id&&(a.event_id=r.event_id),t_(a)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return function(e,t,r="info",i,a){let o=nN(e,t,i?.syntheticException||void 0,a);return o.level=r,i?.event_id&&(o.event_id=i.event_id),t_(o)}(this._options.stackParser,e,t,r,this._options.attachStacktrace)}_prepareEvent(e,t,r,i){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r,i)}}function nU(e,t){let r=ty(),i=tm();if(!r)return;let{beforeBreadcrumb:a=null,maxBreadcrumbs:o=100}=r.getOptions();if(o<=0)return;let s={timestamp:tt(),...e},l=a?eO(()=>a(s,t)):s;null!==l&&(r.emit&&r.emit("beforeAddBreadcrumb",l,t),i.addBreadcrumb(l,o))}let nq={},nB={};function nH(e,t){nq[e]=nq[e]||[],nq[e].push(t)}function nW(e,t){if(!nB[e]){nB[e]=!0;try{t()}catch(t){ev&&eF.error(`Error while instrumenting ${e}`,t)}}}function nG(e,t){let r=e&&nq[e];if(r)for(let i of r)try{i(t)}catch(t){ev&&eF.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${eX(i)}
Error:`,t)}}function nz(){"console"in ep&&eR.forEach(function(e){e in ep.console&&eV(ep.console,e,function(t){return eT[e]=t,function(...t){nG("console",{args:t,level:e});let r=eT[e];r?.apply(ep.console,t)}})})}function nZ(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function nY(e,t){return!!e&&"object"==typeof e&&!!e[t]}function nJ(e){return"string"==typeof e?e:e?nY(e,"url")?e.url:e.toString?e.toString():"":""}function nK(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}function nX(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let r=t[6]||"",i=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:i,relative:t[5]+r+i}}function nQ(){if(!ep.document)return;let e=nG.bind(null,"dom"),t=n0(e,!0);ep.document.addEventListener("click",t,!1),ep.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let r=ep[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(eV(r,"addEventListener",function(t){return function(r,i,a){if("click"===r||"keypress"==r)try{let i=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=i[r]=i[r]||{refCount:0};if(!o.handler){let i=n0(e);o.handler=i,t.call(this,r,i,a)}o.refCount++}catch{}return t.call(this,r,i,a)}}),eV(r,"removeEventListener",function(e){return function(t,r,i){if("click"===t||"keypress"==t)try{let r=this.__sentry_instrumentation_handlers__||{},a=r[t];a&&(a.refCount--,a.refCount<=0&&(e.call(this,t,a.handler,i),a.handler=void 0,delete r[t]),0===Object.keys(r).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,r,i)}}))})}function n0(e,t=!1){return r=>{if(!r||r._sentryCaptured)return;let i=function(e){try{return e.target}catch{return null}}(r);if("keypress"===r.type&&(!i?.tagName||"INPUT"!==i.tagName&&"TEXTAREA"!==i.tagName&&!i.isContentEditable))return;eU(r,"_sentryCaptured",!0),i&&!i._sentryId&&eU(i,"_sentryId",e3());let a="keypress"===r.type?"input":r.type;!function(e){if(e.type!==c)return!1;try{if(!e.target||e.target._sentryId!==u)return!1}catch{}return!0}(r)&&(e({event:r,name:a,global:t}),c=r.type,u=i?i._sentryId:void 0),clearTimeout(l),l=ep.setTimeout(()=>{u=void 0,c=void 0},1e3)}}function n1(e){let t="history";nH(t,e),nW(t,n2)}function n2(){function e(e){return function(...t){let r=t.length>2?t[2]:void 0;if(r){let i=d,a=function(e){try{return new URL(e,ep.location.origin).toString()}catch{return e}}(String(r));if(d=a,i===a)return e.apply(this,t);nG("history",{from:i,to:a})}return e.apply(this,t)}}ep.addEventListener("popstate",()=>{let e=ep.location.href,t=d;d=e,t!==e&&nG("history",{from:t,to:e})}),"history"in ep&&ep.history&&(eV(ep.history,"pushState",e),eV(ep.history,"replaceState",e))}let n4="__sentry_xhr_v3__";function n5(){if(!ep.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,r){let i=Error(),a=1e3*tn(),o=eE(r[0])?r[0].toUpperCase():void 0,s=function(e){if(eE(e))return e;try{return e.toString()}catch{}}(r[1]);if(!o||!s)return e.apply(t,r);t[n4]={method:o,url:s,request_headers:{}},"POST"===o&&s.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let l=()=>{let e=t[n4];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}nG("xhr",{endTimestamp:1e3*tn(),startTimestamp:a,xhr:t,virtualError:i})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,r)=>(l(),e.apply(t,r))}):t.addEventListener("readystatechange",l),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,r){let[i,a]=r,o=t[n4];return o&&eE(i)&&eE(a)&&(o.request_headers[i.toLowerCase()]=a),e.apply(t,r)}}),e.apply(t,r)}}),e.send=new Proxy(e.send,{apply(e,t,r){let i=t[n4];return i&&(void 0!==r[0]&&(i.body=r[0]),nG("xhr",{startTimestamp:1e3*tn(),xhr:t})),e.apply(t,r)}})}let n3="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,n7=(e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var r,i,a,o,s,l,c;if(t.console&&function(e){let t="console";nH(t,e),nW(t,nz)}((r=e,function(e){var t;if(ty()!==r)return;let i={category:"console",data:{arguments:e.args,logger:"console"},level:"warn"===(t=e.level)?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log",message:e2(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;i.message=`Assertion failed: ${e2(e.args.slice(1)," ")||"console.assert"}`,i.data.arguments=e.args.slice(1)}nU(i,{input:e.args,level:e.level})})),t.dom){nH("dom",(i=e,a=t.dom,function(e){let t,r;if(ty()!==i)return;let o="object"==typeof a?a.serializeAttribute:void 0,s="object"==typeof a&&"number"==typeof a.maxStringLength?a.maxStringLength:void 0;s&&s>1024&&(n3&&eF.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=1024),"string"==typeof o&&(o=[o]);try{var l;let i=e.event,a=(l=i)&&l.target?i.target:i;t=eD(a,{keyAttrs:o,maxStringLength:s}),r=function(e){if(!ep.HTMLElement)return null;let t=e;for(let e=0;e<5&&t;e++){if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}(a)}catch{t="<unknown>"}if(0===t.length)return;let c={category:`ui.${e.name}`,message:t};r&&(c.data={"ui.component_name":r}),nU(c,{event:e.event,name:e.name,global:e.global})})),nW("dom",nQ)}if(t.xhr){nH("xhr",(o=e,function(e){if(ty()!==o)return;let{startTimestamp:t,endTimestamp:r}=e,i=e.xhr[n4];if(!t||!r||!i)return;let{method:a,url:s,status_code:l,body:c}=i,u={xhr:e.xhr,input:c,startTimestamp:t,endTimestamp:r},d={category:"xhr",data:{method:a,url:s,status_code:l},type:"http",level:nK(l)};o.emit("beforeOutgoingRequestBreadcrumb",d,u),nU(d,u)})),nW("xhr",n5)}t.fetch&&function(e,t){let r="fetch";nH(r,e),nW(r,()=>(function(e,t=!1){(!t||function(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in ep))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(nZ(ep.fetch))return!0;let e=!1,t=ep.document;if(t&&"function"==typeof t.createElement)try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow?.fetch&&(e=nZ(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){ev&&eF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}())&&eV(ep,"fetch",function(t){return function(...r){let i=Error(),{method:a,url:o}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,r]=e;return{url:nJ(t),method:nY(r,"method")?String(r.method).toUpperCase():"GET"}}let t=e[0];return{url:nJ(t),method:nY(t,"method")?String(t.method).toUpperCase():"GET"}}(r),s={args:r,fetchData:{method:a,url:o},startTimestamp:1e3*tn(),virtualError:i,headers:function(e){let[t,r]=e;try{if("object"==typeof r&&null!==r&&"headers"in r&&r.headers)return new Headers(r.headers);if("undefined"!=typeof Request&&eA(t,Request))return new Headers(t.headers)}catch{}}(r)};return e||nG("fetch",{...s}),t.apply(ep,r).then(async t=>(e?e(t):nG("fetch",{...s,endTimestamp:1e3*tn(),response:t}),t),e=>{if(nG("fetch",{...s,endTimestamp:1e3*tn(),error:e}),eb(e)&&void 0===e.stack&&(e.stack=i.stack,eU(e,"framesToPop",1)),e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{let t=new URL(s.fetchData.url);e.message=`${e.message} (${t.host})`}catch{}throw e})}})})(void 0,void 0))}((s=e,function(e){if(ty()!==s)return;let{startTimestamp:t,endTimestamp:r}=e;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method)){if(e.fetchData.method,e.fetchData.url,e.error){let i=e.fetchData,a={data:e.error,input:e.args,startTimestamp:t,endTimestamp:r},o={category:"fetch",data:i,level:"error",type:"http"};s.emit("beforeOutgoingRequestBreadcrumb",o,a),nU(o,a)}else{let i=e.response,a={...e.fetchData,status_code:i?.status};e.fetchData.request_body_size,e.fetchData.response_body_size,i?.status;let o={input:e.args,response:i,startTimestamp:t,endTimestamp:r},l={category:"fetch",data:a,type:"http",level:nK(a.status_code)};s.emit("beforeOutgoingRequestBreadcrumb",l,o),nU(l,o)}}})),t.history&&n1((l=e,function(e){if(ty()!==l)return;let t=e.from,r=e.to,i=nX(ep.location.href),a=t?nX(t):void 0,o=nX(r);a?.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(t=a.relative),nU({category:"navigation",data:{from:t,to:r}})})),t.sentry&&e.on("beforeSendEvent",(c=e,function(e){ty()===c&&nU({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:e6(e)},{event:e})}))}}},n6=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],n8=(e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&eV(ep,"setTimeout",n9),t.setInterval&&eV(ep,"setInterval",n9),t.requestAnimationFrame&&eV(ep,"requestAnimationFrame",re),t.XMLHttpRequest&&"XMLHttpRequest"in ep&&eV(XMLHttpRequest.prototype,"send",rt);let e=t.eventTarget;e&&(Array.isArray(e)?e:n6).forEach(e=>(function(e,t){let r=ep[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(eV(r,"addEventListener",function(r){return function(i,a,o){var s,l,c,u;try{s=a,"function"==typeof s.handleEvent&&(a.handleEvent=nF(a.handleEvent,{mechanism:{data:{handler:eX(a),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&(l=this,c=i,u=a,l&&"object"==typeof l&&"removeEventListener"in l&&"function"==typeof l.removeEventListener&&l.removeEventListener(c,u)),r.apply(this,[i,nF(a,{mechanism:{data:{handler:eX(a),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),o])}}),eV(r,"removeEventListener",function(e){return function(t,r,i){try{let a=r.__sentry_wrapped__;a&&e.call(this,t,a,i)}catch{}return e.call(this,t,r,i)}}))})(e,t))}}};function n9(e){return function(...t){let r=t[0];return t[0]=nF(r,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${eX(e)}`}}),e.apply(this,t)}}function re(e){return function(t){return e.apply(this,[nF(t,{mechanism:{data:{handler:eX(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function rt(e){return function(...t){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in r&&"function"==typeof r[e]&&eV(r,e,function(t){let r={mechanism:{data:{handler:eX(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},i=eB(t);return i&&(r.mechanism.data.handler=eX(i)),nF(t,r)})}),e.apply(this,t)}}let rn=()=>({name:"BrowserSession",setupOnce(){if(void 0===ep.document){n3&&eF.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}tW({ignoreDuration:!0}),tZ(),n1(({from:e,to:t})=>{void 0!==e&&e!==t&&(tW({ignoreDuration:!0}),tZ())})}}),rr=null;function ri(){rr=ep.onerror,ep.onerror=function(e,t,r,i,a){return nG("error",{column:i,error:a,line:r,msg:e,url:t}),!!rr&&rr.apply(this,arguments)},ep.onerror.__SENTRY_INSTRUMENTED__=!0}let ra=null;function ro(){ra=ep.onunhandledrejection,ep.onunhandledrejection=function(e){return nG("unhandledrejection",e),!ra||ra.apply(this,arguments)},ep.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let rs=(e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){var r,i;t.onerror&&(r=e,function(e){let t="error";nH(t,e),nW(t,ri)}(e=>{let{stackParser:t,attachStacktrace:i}=rc();if(ty()!==r||nj>0)return;let{msg:a,url:o,line:s,column:l,error:c}=e,u=function(e,t,r,i){let a=e.exception=e.exception||{},o=a.values=a.values||[],s=o[0]=o[0]||{},l=s.stacktrace=s.stacktrace||{},c=l.frames=l.frames||[],u=function(e){if(eE(e)&&0!==e.length){if(e.startsWith("data:")){let t=e.match(/^data:([^;]+)/),r=t?t[1]:"text/javascript",i=e.includes("base64,");return`<data:${r}${i?",base64":""}>`}return e}}(t)??eP();return 0===c.length&&c.push({colno:i,filename:u,function:"?",in_app:!0,lineno:r}),e}(nM(t,c||a,void 0,i,!1),o,s,l);u.level="error",tH(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})}),rl("onerror")),t.onunhandledrejection&&(i=e,function(e){let t="unhandledrejection";nH(t,e),nW(t,ro)}(e=>{var t;let{stackParser:r,attachStacktrace:a}=rc();if(ty()!==i||nj>0)return;let o=function(e){if(ek(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}(e),s=ek(o)?(t=o,{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}):nM(r,o,void 0,a,!0);s.level="error",tH(s,{originalException:o,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}),rl("onunhandledrejection"))}}};function rl(e){n3&&eF.log(`Global Handler attached: ${e}`)}function rc(){let e=ty();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}let ru=()=>({name:"HttpContext",preprocessEvent(e){if(!ep.navigator&&!ep.location&&!ep.document)return;let t=function(){let e=eP(),{referrer:t}=ep.document||{},{userAgent:r}=ep.navigator||{};return{url:e,headers:{...t&&{Referer:t},...r&&{"User-Agent":r}}}}(),r={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:r}}});function rd(e,t){e.mechanism={handled:!0,type:"auto.core.linked_errors",...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function rf(e,t,r,i){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:i}}let rp=(e={})=>{let t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,i,a){!function(e,t,r,i,a,o){if(!a.exception?.values||!o||!eA(o.originalException,Error))return;let s=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;s&&(a.exception.values=function e(t,r,i,a,o,s,l,c){if(s.length>=i+1)return s;let u=[...s];if(eA(a[o],Error)){rd(l,c);let s=t(r,a[o]),d=u.length;rf(s,o,d,c),u=e(t,r,i,a[o],o,[s,...u],s,d)}return Array.isArray(a.errors)&&a.errors.forEach((a,s)=>{if(eA(a,Error)){rd(l,c);let d=t(r,a),f=u.length;rf(d,`errors[${s}]`,f,c),u=e(t,r,i,a,o,[d,...u],d,f)}}),u}(e,t,i,o.originalException,r,a.exception.values,s,0))}(nD,a.getOptions().stackParser,r,t,e,i)}}};function rh(e,t,r,i){let a={filename:e,function:"<anonymous>"===t?"?":t,in_app:!0};return void 0!==r&&(a.lineno=r),void 0!==i&&(a.colno=i),a}let rg=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,rm=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,rv=/\((\S*)(?::(\d+))(?::(\d+))\)/,ry=/at (.+?) ?\(data:(.+?),/,rb=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,r_=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,rw=eY([30,e=>{let t=e.match(ry);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let r=rg.exec(e);if(r){let[,e,t,i]=r;return rh(e,"?",+t,+i)}let i=rm.exec(e);if(i){if(i[2]&&0===i[2].indexOf("eval")){let e=rv.exec(i[2]);e&&(i[2]=e[1],i[3]=e[2],i[4]=e[3])}let[e,t]=rx(i[1]||"?",i[2]);return rh(t,e,i[3]?+i[3]:void 0,i[4]?+i[4]:void 0)}}],[50,e=>{let t=rb.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=r_.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],r=t[1]||"?";return[r,e]=rx(r,e),rh(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),rx=(e,t)=>{let r=-1!==e.indexOf("safari-extension"),i=-1!==e.indexOf("safari-web-extension");return r||i?[-1!==e.indexOf("@")?e.split("@")[0]:"?",r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},rE="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,rS={};function rk(e,t=function(e){let t=rS[e];if(t)return t;let r=ep[e];if(nZ(r))return rS[e]=r.bind(ep);let i=ep.document;if(i&&"function"==typeof i.createElement)try{let t=i.createElement("iframe");t.hidden=!0,i.head.appendChild(t);let a=t.contentWindow;a?.[e]&&(r=a[e]),i.head.removeChild(t)}catch(t){rE&&eF.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return r?rS[e]=r.bind(ep):r}("fetch")){let r=0,i=0;async function a(a){let o=a.body.length;r+=o,i++;let s={body:a.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:r<=6e4&&i<15,...e.fetchOptions};try{let r=await t(e.url,s);return{statusCode:r.status,headers:{"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")}}}catch(e){throw rS.fetch=void 0,e}finally{r-=o,i--}}return function(e,t,r=np(e.bufferSize||64)){let i={};return{send:function(a){let o=[];if(nt(a,(t,r)=>{let a=nr[r];(function(e,t,r=Date.now()){return(e[t]||e.all||0)>r})(i,a)?e.recordDroppedEvent("ratelimit_backoff",a):o.push(t)}),0===o.length)return Promise.resolve({});let s=ne(a[0],o),l=t=>{nt(s,(r,i)=>{e.recordDroppedEvent(t,nr[i])})};return r.add(()=>t({body:function(e){let[t,r]=e,i=JSON.stringify(t);function a(e){"string"==typeof i?i="string"==typeof e?i+e:[nn(i),e]:i.push("string"==typeof e?nn(e):e)}for(let e of r){let[t,r]=e;if(a(`
${JSON.stringify(t)}
`),"string"==typeof r||r instanceof Uint8Array)a(r);else{let e;try{e=JSON.stringify(r)}catch{e=JSON.stringify(tU(r))}a(e)}}return"string"==typeof i?i:function(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;for(let i of e)t.set(i,r),r+=i.length;return t}(i)}(s)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&ev&&eF.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),i=function(e,{statusCode:t,headers:r},i=Date.now()){let a={...e},o=r?.["x-sentry-rate-limits"],s=r?.["retry-after"];if(o)for(let e of o.trim().split(",")){let[t,r,,,o]=e.split(":",5),s=parseInt(t,10),l=(isNaN(s)?60:s)*1e3;if(r)for(let e of r.split(";"))"metric_bucket"===e?(!o||o.split(";").includes("custom"))&&(a[e]=i+l):a[e]=i+l;else a.all=i+l}else s?a.all=i+function(e,t=Date.now()){let r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;let i=Date.parse(`${e}`);return isNaN(i)?6e4:i-t}(s,i):429===t&&(a.all=i+6e4);return a}(i,e),e),e=>{throw l("network_error"),ev&&eF.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===nf)return ev&&eF.error("Skipped sending event because buffer is full."),l("queue_overflow"),Promise.resolve({});throw e})},flush:e=>r.drain(e)}}(e,a,np(e.bufferSize||40))}var r$={};r$=JSON.parse('{"name":"evagio","version":"2.0.4","license":"GPL-3.0","scripts":{"watch":"parcel watch --dist-dir build/dev --no-hmr","build":"rm -rf build/prod && parcel build --dist-dir build/prod --no-source-maps"},"devDependencies":{"@parcel/transformer-sass":"2.13.3","@parcel/transformer-vue":"2.13.3","buffer":"^6.0.3","eslint":"8.56.0","eslint-plugin-vue":"9.19.2","parcel":"2.13.3","process":"^0.11.10"},"dependencies":{"@fontsource-variable/montserrat":"^5.0.17","@fontsource/montserrat":"^5.0.16","@sentry/browser":"^10.27.0","a11y-dialog":"^8.0.4","altcha":"^2.2.4","cleave.js":"^1.6.0","echarts":"^6.0.0","grapesjs":"0.21.8","grapesjs-mjml":"^1.0.5","gridjs":"^6.2.0","modern-normalize":"^2.0.0","sortablejs":"^1.15.2","vue":"3.3.13"},"targets":{"base-css":{"source":"style/main.scss"},"base-js":{"source":"js/components/main.js"},"fields-selector":{"source":"js/fields-selector.js"},"template-editor":{"source":"js/template-editor.js"},"charts":{"source":"js/charts.js"},"client":{"source":"js/client/main.js"}},"packageManager":"pnpm@8.14.1+sha1.d039b38e0b20ad012ed548e44267b8d4c88b447a"}'),"undefined"!=typeof window&&function(e={}){var t;let r=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===ep.window||ep.nw)return!1;let e=ep.chrome||ep.browser;if(!e?.runtime?.id)return!1;let t=eP();return!(ep===ep.top&&["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"].some(e=>t.startsWith(`${e}://`)))}()&&(n3&&eO(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0),i=null==e.defaultIntegrations?[t6(),t4(),n8(),n7(),rs(),rp(),tX(),ru(),rn()]:e.defaultIntegrations;(function(e,t){var r;!0===t.debug&&(ev?eF.enable():eO(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),tg().update(t.initialScope);let i=new e(t);r=i,tg().setClient(r),i.init()})(nV,{...e,enabled:!r&&e.enabled,stackParser:Array.isArray(t=e.stackParser||rw)?eY(...t):t,integrations:function(e){let t;let r=e.defaultIntegrations||[],i=e.integrations;if(r.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(i))t=[...r,...i];else if("function"==typeof i){let e=i(r);t=Array.isArray(e)?e:[e]}else t=r;return function(e){let t={};return e.forEach(e=>{let{name:r}=e,i=t[r];i&&!i.isDefaultInstance&&e.isDefaultInstance||(t[r]=e)}),Object.values(t)}(t)}({integrations:e.integrations,defaultIntegrations:i}),transport:e.transport||rk})}({dsn:"https://2ea2ee8a35874f929269a535098ab6ea@app.glitchtip.com/13916",environment:window.location.port?"dev":"prod",release:`evagjs:${r$.version}`,beforeSend(e){if(e.exception.values[0].mechanism.handled)return e}});let rC=async(e,t,r,i=!0)=>{e||(e=Error("logErr received null error"));let a=e.name;e.name=t||e.name,tv(t=>{t.setExtra("errorName",a),r&&t.setExtra("extra",r);let i=e.config;i&&(i.method&&t.setExtra("method",e.config.method),i.baseURL&&t.setExtra("requestBaseUrl",e.config.baseURL),i.url&&t.setExtra("requestUrl",e.config.url)),t.setFingerprint([e.name]),tB(e)}),e.name=a,i&&(t?console.error(t,e):console.error(e))};async function rL(e,{sendJson:t=!1,parseJson:r=!1,errorMsg:i="",errorIgnore:a=e=>!1,...o}){o.headers||(o.headers={}),t&&(o.body=JSON.stringify(t),o.method||(o.method="POST"),o.headers["Content-Type"]="application/json"),r&&(o.headers.Accept="application/json");let s=await fetch(e,o);if(!s.ok){let e=Error(`Falha na requisi\xe7\xe3o, status ${s.status}.`);if(e.response=s,i){a(e)||rC(e,i);return}throw e}if(r)try{return await s.clone().json()}catch(r){r.response=s;let t="???";try{t=await s.text()}catch(e){t=`Falha ao tentar ler response.text(): ${e.toString()}`}if(i){if(t.contains("AbortError"))return;a(r)||rC(r,`Erro ao decodificar JSON: ${i}`,{status:s.status,text:t,url:e});return}throw r}return s}let rA="https://api.evag.io";async function rI(e,t){return await rL(`${rA}${e}`,t)}async function rD(e){let t=await rI(`/api/v2/forms/${e}/count`,{parseJson:!0,errorMsg:"Erro ao tentar pegar contagem de preenchimentos do formulário.",errorIgnore:e=>e.response?.status===403});if(t)return t.count}async function rP(e,t){let r={};"evag"in window&&("getEvlt"in window.evag&&(r.evlt=window.evag.getEvlt()),"getProjectID"in window.evag&&(r.projectID=window.evag.getProjectID()));let i=Object.assign({},r,t);return delete i.redirect,await rI(`/api/v2/forms/${e}/submit`,{sendJson:i,parseJson:!0})}let rR=["AC","AL","AP","AM","BA","CE","DF","ES","GO","MA","MT","MS","MG","PA","PB","PR","PE","PI","RJ","RN","RS","RO","RR","SC","SP","SE","TO"],rT={};async function rO(e){let t=await rL(`https://viacep.com.br/ws/${e}/json/`,{parseJson:!0,errorMsg:"Cant get CEP data"});return t?{uf:t.uf,city:t.localidade,district:t.bairro,endBairro:t.bairro,endLogradouro:t.logradouro,endComplemento:t.complemento}:{}}async function rM(e=null,t=null,r=null){let i="/locations";if(e&&(i+=`/${e}`,t&&!t.includes("UF")&&(i+=`/${t}`,r&&(i+=`/${r}`))),!rT[i]){let e=await rI(i,{parseJson:!0,errorMsg:"Falha ao tentar listar locais.",errorIgnore:e=>r&&e.response?.status===404});e&&(rT[i]=e)}return rT[i]||[]}let rN=(e,t)=>{if(!e||!t)return;let r=0;for(let i=1;i<e.children.length;i++)if(e.children[i].innerHTML.trim()===t){r=i;break}if(r>1){let t=e.removeChild(e.children[r]);e.insertBefore(t,e.children[1])}r>=0?(e.value=t,e.dispatchEvent(new Event("change"))):console.info(`O elemento "${t}" n\xe3o se encontra na lista.`)},rj=(e,t)=>{e.children.length>1?rN(e,t):setTimeout(()=>{rj(e,t)},1e3)};function rF(e){let t=eu("form.defaultLocation.uf"),r=eu("form.defaultLocation.city");if(!t||!r)return!0;let i=e.querySelector('[name="uf"]:not([type="hidden"])'),a=e.querySelector('[name="city"]:not([type="hidden"])');return!!i||!!a||!new FormData(e).get("district")||((i=document.createElement("input")).setAttribute("name","uf"),i.setAttribute("type","hidden"),i.setAttribute("value",t),e.appendChild(i),(a=document.createElement("input")).setAttribute("name","city"),a.setAttribute("type","hidden"),a.setAttribute("value",r),e.appendChild(a),!0)}function rV(e,t){t?e.classList.remove("hidden"):e.classList.add("hidden")}async function rU(e){let t=e.target.value.replace(/[^0-9]/,"");if(8!==t.length)return;let r=e.target.form,i=r.querySelector('[name="endLogradouro"]'),a=r.querySelector('[name="endNumero"]');if(!i||!a)return;i.disabled=!0;let o=await rO(t);for(k of Object.keys(o)){if(!o[k])continue;let e=r.querySelector(`[name="${k}"]`);if(e){if(e.value=o[k],"uf"===k)await rq({target:e});else if("city"===k)await rB({target:e});else if("district"===k){let e=!Array.from(r.querySelector('[name="district"]').options).map(e=>e.text).includes(o[k]);rV(r.querySelector('[name="endBairro"]'),e)}}}i.disabled=!1,i.value?a.focus():i.focus()}async function rq(e,t,r){let i=e.target.form.querySelector('[name="uf"]'),a=e.target.form.querySelector('[name="city"]');if(!a)return;for(;a.children.length>1;)a.removeChild(a.lastChild);if(!e.target.value)return;let o=i.dataset.placeholder??"UF";if(e.target.value.includes(o))return;let s=(await rM("BR",e.target.value)).map(e=>e.name);for(let e=0;e<s.length;e++){let t=document.createElement("option");t.setAttribute("value",s[e]),t.innerHTML=s[e],a.appendChild(t)}t===e.target.value&&a.dataset.defaultValue?rN(a,a.dataset.defaultValue):t===e.target.value&&r?rN(a,r):rB({target:a})}async function rB(e){let t=e.target.form.querySelector('[name="uf"]'),r=e.target.form.querySelector('[name="city"]'),i=e.target.form.querySelector('[name="district"]');if(!t||!i)return;for(;i.children.length>1;)i.removeChild(i.lastChild);if(!e.target.value)return;let a=r.dataset.placeholder??"Selecione um município";if(e.target.value.includes(a))return;let o=(await rM("BR",t.value,e.target.value)).map(e=>e.name);for(let e=0;e<o.length;e++){let t=document.createElement("option");t.setAttribute("value",o[e]),t.innerHTML=o[e],i.appendChild(t)}o&&0!==o.length?rV(i,!0):rV(i,!1)}var rH={};y(rH,"MessageTypes",()=>rG),y(rH,"displayMessage",()=>rz);let rW="evag-snackbar",rG={INFO:"info",DANGER:"danger",SUCCESS:"success",WARNING:"warning",DARK:"dark"};function rz(e,t=rG.INFO,r=5e3){let i=document.getElementsByTagName("body")[0],a=document.createElement("div");a.role="alert",a.className=`${rW} ${t}`,a.style.maxWidth=`${Math.min(i.offsetWidth-30,400)}px`,a.innerHTML=e,i.appendChild(a),window.setTimeout(()=>{a.classList.add(`${rW}-shown`)},0),window.setTimeout(()=>{a.classList.remove(`${rW}-shown`)},r),window.setTimeout(()=>{i.removeChild(a)},r+1e3)}let rZ=`
  <svg
      width="20"
      height="20"
      viewBox="0 0 24 24"
      xmlns="http://www.w3.org/2000/svg"
      class="altcha-spinner"
      ><path
        d="M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z"
        fill="currentColor"
        opacity=".25"
      /><path
        d="M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z"
        fill="currentColor"
      /></svg
    >
`;async function rY(e,{transformFormValues:t,channel:r,event:i,getFacebookEventName:a,getGoogleEventName:o,getGoogleAdsEvent:s,afterSubmit:l,jumpCallback:c}={}){if(i&&i.preventDefault(),e.style.display="block",!r){let t=e.getAttribute("action").match(/forms\/([^/]*)\/submit/);if(t||(t=e.getAttribute("action").match(/channels\/([^/]*)\/submit/)),!t)return;r=t[1]}let u=new FormData(e),d={};e.captchaVal&&(d.captchaVal=e.captchaVal),u.forEach((e,t)=>{d[t]?d[t]+=` | ${e}`:d[t]=e}),t&&(d=t(d));let f=e.querySelector('button[type="submit"]');if(f.disabled||(f.insertAdjacentHTML("beforeend",rZ),f.disabled=!0),"verifying"===e.captchaWidget.getState()){e.submitPending=!0;return}e.submitPending=!1;let p=a?a(e):e.dataset.analyticsEvent,h=o?o(e):e.dataset.analyticsEvent,{gAdsId:g,gAdsLabel:m}=s?s(e):{gAdsId:e.dataset.gadsId,gAdsLabel:e.dataset.gadsLabel},v=null;g&&m&&(v={id:g,label:m}),O(r,p,h,document.title);try{if(await rP(r,d,p,h),l&&l(e),F(r,p,h,document.title,v),e.closest('[data-evag="multiforms"]')){let t=1;c&&(t=c(e)),function(e,t){let r=e.closest('[data-evag="multiforms"]');if(!r)throw Error("could not jump with no multiforms parent");let i=r.querySelectorAll('[data-evag="form"]'),a=-1;for(let t=0;t<i.length;t++)e===i[t]&&(a=t);if(-1===a)throw Error("current form not found in multiforms");let o=a+t;o>=i.length&&(o=i.length-1);let s=i[o];s?.dataset?.redirect&&(location.href=s.dataset.redirect),new FormData(e).forEach((e,t)=>{let r=s.querySelector(`[name="${t}"]`);if(r){r.value=e;return}let i=document.createElement("input");i.setAttribute("name",t),i.setAttribute("type","hidden"),i.setAttribute("value",e),s.appendChild(i)});let l=e.scrollHeight;e.style.display="none",s.style.display="block",s.scrollHeight<l&&(s.style.height=`${l}px`),r.scrollIntoView({behavior:"smooth"})}(e,t);return}e.querySelectorAll(`input[type="text"], input[type="email"],
      input[type="tel"], select, textarea`).forEach(e=>{e.value=""}),e.querySelectorAll(`input[type="radio"],
      input[type="checkbox"]`).forEach(e=>{e.checked=!1}),rz("Formulário enviado com sucesso!")}catch(a){let t=null,r=a.response;if(r?.status===400)try{t=await r.json(),function(e,t){let[r,i]=Object.entries(t)[0],a=e.querySelector(`[name="${r}"]`);a?(a.focus(),a.setCustomValidity(i),a.reportValidity(),e.fieldsWithError||(e.fieldsWithError=new Set),e.fieldsWithError.add(a)):rz(`Erro ao enviar formul\xe1rio.<br>${r}: ${i}`,rG.DANGER)}(e,t),Object.values(t).includes("Campo inesperado.")&&rC(a,"Formulário com campo inesperado.",{sentValues:d,fieldErrors:t});return}catch{}let i="Erro ao enviar formulário.";rz(i),r?.response&&rC(a,i,{sentValues:d,fieldErrors:t})}finally{f.disabled=!1,Array.from(f.getElementsByClassName("altcha-spinner")).forEach(e=>{e.remove()})}}let rJ=`(function(){"use strict";const d=new TextEncoder;function p(e){return[...new Uint8Array(e)].map(t=>t.toString(16).padStart(2,"0")).join("")}async function b(e,t,r){if(typeof crypto>"u"||!("subtle"in crypto)||!("digest"in crypto.subtle))throw new Error("Web Crypto is not available. Secure context is required (https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts).");return p(await crypto.subtle.digest(r.toUpperCase(),d.encode(e+t)))}function w(e,t,r="SHA-256",n=1e6,l=0){const o=new AbortController,a=Date.now();return{promise:(async()=>{for(let c=l;c<=n;c+=1){if(o.signal.aborted)return null;if(await b(t,c,r)===e)return{number:c,took:Date.now()-a}}return null})(),controller:o}}function h(e){const t=atob(e),r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r}function g(e,t=12){const r=new Uint8Array(t);for(let n=0;n<t;n++)r[n]=e%256,e=Math.floor(e/256);return r}async function m(e,t="",r=1e6,n=0){const l="AES-GCM",o=new AbortController,a=Date.now(),s=async()=>{for(let i=n;i<=r;i+=1){if(o.signal.aborted||!c||!u)return null;try{const f=await crypto.subtle.decrypt({name:l,iv:g(i)},c,u);if(f)return{clearText:new TextDecoder().decode(f),took:Date.now()-a}}catch{}}return null};let c=null,u=null;try{u=h(e);const i=await crypto.subtle.digest("SHA-256",d.encode(t));c=await crypto.subtle.importKey("raw",i,l,!1,["decrypt"])}catch{return{promise:Promise.reject(),controller:o}}return{promise:s(),controller:o}}let y;onmessage=async e=>{const{type:t,payload:r,start:n,max:l}=e.data;let o=null;if(t==="abort")y?.abort(),y=void 0;else if(t==="work"){if("obfuscated"in r){const{key:a,obfuscated:s}=r||{};o=await m(s,a,l,n)}else{const{algorithm:a,challenge:s,salt:c}=r||{};o=w(s,c,a,l,n)}y=o.controller,o.promise.then(a=>{self.postMessage(a&&{...a,worker:!0})})}}})();
`,rK="u">typeof self&&self.Blob&&new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);",rJ],{type:"text/javascript;charset=utf-8"});function rX(e){let t;try{if(!(t=rK&&(self.URL||self.webkitURL).createObjectURL(rK)))throw"";let r=new Worker(t,{name:e?.name});return r.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),r}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(rJ),{name:e?.name})}}"u">typeof window&&((window.__svelte??={}).v??=new Set).add("5");let rQ={},r0=Symbol();function r1(e){throw Error("https://svelte.dev/e/lifecycle_outside_component")}var r2=Array.isArray,r4=Array.prototype.indexOf,r5=Array.from,r3=Object.keys,r7=Object.defineProperty,r6=Object.getOwnPropertyDescriptor,r8=Object.getOwnPropertyDescriptors,r9=Object.prototype,ie=Array.prototype,it=Object.getPrototypeOf,ir=Object.isExtensible;let ii=()=>{};function ia(e){for(var t=0;t<e.length;t++)e[t]()}let io=Symbol("$state"),is=Symbol("legacy props"),il=Symbol("");function ic(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let iu=!1;function id(e){if(null===e)throw ic(),rQ;return f=e}function ip(){return id(i_(f))}function ih(e){if(iu){if(null!==i_(f))throw ic(),rQ;f=e}}function ig(e){if("object"!=typeof e||null===e||io in e)return e;let t=it(e);if(t!==r9&&t!==ie)return e;var r=new Map,i=r2(e),a=aw(0),o=i3,s=e=>{var t=i3;i3=o;var r=e();return i3=t,r};return i&&r.set("length",aw(e.length)),new Proxy(e,{defineProperty(e,t,i){"value"in i&&!1!==i.configurable&&!1!==i.enumerable&&!1!==i.writable||function(){throw Error("https://svelte.dev/e/state_descriptors_fixed")}();var a=r.get(t);return void 0===a?(a=s(()=>aw(i.value)),r.set(t,a)):aE(a,s(()=>ig(i.value))),!0},deleteProperty(e,t){var o=r.get(t);if(void 0===o)t in e&&(r.set(t,s(()=>aw(r0))),im(a));else{if(i&&"string"==typeof t){var l=r.get("length"),c=Number(t);Number.isInteger(c)&&c<l.v&&aE(l,c)}aE(o,r0),im(a)}return!0},get(t,i,a){if(i===io)return e;var o=r.get(i),l=i in t;if(void 0===o&&(!l||r6(t,i)?.writable)&&(o=s(()=>aw(ig(l?t[i]:r0))),r.set(i,o)),void 0!==o){var c=am(o);return c===r0?void 0:c}return Reflect.get(t,i,a)},getOwnPropertyDescriptor(e,t){var i=Reflect.getOwnPropertyDescriptor(e,t);if(i&&"value"in i){var a=r.get(t);a&&(i.value=am(a))}else if(void 0===i){var o=r.get(t),s=o?.v;if(void 0!==o&&s!==r0)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return i},has(e,t){if(t===io)return!0;var i=r.get(t),a=void 0!==i&&i.v!==r0||Reflect.has(e,t);return(!(void 0!==i||null!==i6&&(!a||r6(e,t)?.writable))||(void 0===i&&(i=s(()=>aw(a?ig(e[t]):r0)),r.set(t,i)),am(i)!==r0))&&a},set(e,t,o,l){var c=r.get(t),u=t in e;if(i&&"length"===t)for(var d=o;d<c.v;d+=1){var f=r.get(d+"");void 0!==f?aE(f,r0):d in e&&(f=s(()=>aw(r0)),r.set(d+"",f))}void 0===c?(!u||r6(e,t)?.writable)&&(aE(c=s(()=>aw(void 0)),s(()=>ig(o))),r.set(t,c)):(u=c.v!==r0,aE(c,s(()=>ig(o))));var p=Reflect.getOwnPropertyDescriptor(e,t);if(p?.set&&p.set.call(l,o),!u){if(i&&"string"==typeof t){var h=r.get("length"),g=Number(t);Number.isInteger(g)&&g>=h.v&&aE(h,g+1)}im(a)}return!0},ownKeys(e){am(a);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return void 0===t||t.v!==r0});for(var[i,o]of r)o.v===r0||i in e||t.push(i);return t},setPrototypeOf(){(function(){throw Error("https://svelte.dev/e/state_prototype_fixed")})()}})}function im(e,t=1){aE(e,e.v+t)}function iv(){if(void 0===x){x=window,E=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;S=r6(t,"firstChild").get,$=r6(t,"nextSibling").get,ir(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),ir(r)&&(r.__t=void 0)}}function iy(e=""){return document.createTextNode(e)}function ib(e){return S.call(e)}function i_(e){return $.call(e)}function iw(e,t){if(!iu)return ib(e);var r=ib(f);return null===r&&(r=f.appendChild(iy())),id(r),r}function ix(e,t){if(!iu){var r=ib(e);return r instanceof Comment&&""===r.data?i_(r):r}return f}function iE(e,t=1,r=!1){let i=iu?f:e;for(var a;t--;)a=i,i=i_(i);if(!iu)return i;var o=i?.nodeType;if(r&&3!==o){var s=iy();return null===i?a?.after(s):i.before(s),id(s),s}return id(i),i}function iS(e){return e===this.v}function ik(e,t){return e!=e?t==t:e!==t||null!==e&&"object"==typeof e||"function"==typeof e}function i$(e){return!ik(e,this.v)}function iC(e){var t=2050,r=null!==i3&&(2&i3.f)!=0?i3:null;return null===i6||null!==r&&(256&r.f)!=0?t|=256:i6.f|=1048576,{ctx:aS,deps:null,effects:null,equals:iS,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??i6}}function iL(e){let t=iC(e);return i9(t),t}function iA(e){var t=e.effects;if(null!==t){e.effects=null;for(var r=0;r<t.length;r+=1)iq(t[r])}}function iI(e){var t,r=i6;i6=function(e){for(var t=e.parent;null!==t;){if((2&t.f)==0)return t;t=t.parent}return null}(e);try{iA(e),t=ac(e)}finally{i6=r}return t}function iD(e){var t=iI(e),r=(aa||(256&e.f)!=0)&&null!==e.deps?4096:1024;ay(e,r),e.equals(t)||(e.v=t,e.wv=++ar)}function iP(e,t,r,i=!0){var a,o=i6,s={ctx:aS,deps:null,nodes_start:null,nodes_end:null,f:2048|e,first:null,fn:t,last:null,next:null,parent:o,prev:null,teardown:null,transitions:null,wv:0};if(r)try{ad(s),s.f|=32768}catch(e){throw iq(s),e}else null!==t&&ap(s);if(!(r&&null===s.deps&&null===s.first&&null===s.nodes_start&&null===s.teardown&&(1048704&s.f)==0)&&i&&(null!==o&&(null===(a=o.last)?o.last=o.first=s:(a.next=s,s.prev=a,o.last=s)),null!==i3&&(2&i3.f)!=0)){var l=i3;(l.effects??=[]).push(s)}return s}function iR(e){let t=iP(8,null,!1);return ay(t,1024),t.teardown=e,t}function iT(e){if(null===i6&&null===i3&&function(){throw Error("https://svelte.dev/e/effect_orphan")}(),null!==i3&&(256&i3.f)!=0&&null===i6&&function(){throw Error("https://svelte.dev/e/effect_in_unowned_derived")}(),i4&&function(){throw Error("https://svelte.dev/e/effect_in_teardown")}(),!(null!==i6&&(32&i6.f)!=0&&null!==aS&&!aS.m))return iO(e);var t=aS;(t.e??=[]).push({fn:e,effect:i6,reaction:i3})}function iO(e){return iP(4,e,!1)}function iM(e){return iP(8,e,!0)}function iN(e,t=[],r=iC){let i=t.map(r);return ij(()=>e(...i.map(am)))}function ij(e,t=0){return iP(24|t,e,!0)}function iF(e,t=!0){return iP(40,e,!0,t)}function iV(e){var t,r=e.teardown;if(null!==r){let e=i4,i=i3;i4=!0,t=null,i3=null;try{r.call(null)}finally{i4=e,i3=i}}}function iU(e,t=!1){var r=e.first;for(e.first=e.last=null;null!==r;){var i=r.next;(64&r.f)!=0?r.parent=null:iq(r,t),r=i}}function iq(e,t=!0){var r=!1;(t||(524288&e.f)!=0)&&null!==e.nodes_start&&(iB(e.nodes_start,e.nodes_end),r=!0),iU(e,t&&!r),au(e,0),ay(e,16384);var i=e.transitions;if(null!==i)for(let e of i)e.stop();iV(e);var a=e.parent;null!==a&&null!==a.first&&iH(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function iB(e,t){for(;null!==e;){var r=e===t?null:i_(e);e.remove(),e=r}}function iH(e){var t=e.parent,r=e.prev,i=e.next;null!==r&&(r.next=i),null!==i&&(i.prev=r),null!==t&&(t.first===e&&(t.first=i),t.last===e&&(t.last=r))}function iW(e,t){var r=[];(function e(t,r,i){if((8192&t.f)==0){if(t.f^=8192,null!==t.transitions)for(let e of t.transitions)(e.is_global||i)&&r.push(e);for(var a=t.first;null!==a;){var o=a.next,s=(65536&a.f)!=0||(32&a.f)!=0;e(a,r,!!s&&i),a=o}}})(e,r,!0),function(e,t){var r=e.length;if(r>0){var i=()=>--r||t();for(var a of e)a.out(i)}else t()}(r,()=>{iq(e),t&&t()})}function iG(e,t){if((8192&e.f)!=0){e.f^=8192,(1024&e.f)==0&&(e.f^=1024),ao(e)&&(ay(e,2048),ap(e));for(var r=e.first;null!==r;){var i=r.next,a=(65536&r.f)!=0||(32&r.f)!=0;iG(r,!!a&&t),r=i}if(null!==e.transitions)for(let r of e.transitions)(r.is_global||t)&&r.in()}}let iz=typeof requestIdleCallback>"u"?e=>setTimeout(e,1):requestIdleCallback,iZ=[],iY=[];function iJ(){var e=iZ;iZ=[],ia(e)}function iK(){var e=iY;iY=[],ia(e)}function iX(e){0===iZ.length&&queueMicrotask(iJ),iZ.push(e)}let iQ=!1,i0=!1,i1=null,i2=!1,i4=!1,i5=[],i3=null,i7=!1,i6=null,i8=null;function i9(e){null!==i3&&2097152&i3.f&&(null===i8?i8=[e]:i8.push(e))}let ae=null,at=0,an=null,ar=1,ai=0,aa=!1;function ao(e){var t=e.f;if((2048&t)!=0)return!0;if((4096&t)!=0){var r=e.deps,i=(256&t)!=0;if(null!==r){var a,o,s=(512&t)!=0,l=i&&null!==i6&&!aa,c=r.length;if(s||l){var u=e.parent;for(a=0;a<c;a++)o=r[a],(s||!o?.reactions?.includes(e))&&(o.reactions??=[]).push(e);s&&(e.f^=512),l&&null!==u&&(256&u.f)==0&&(e.f^=256)}for(a=0;a<c;a++)if(ao(o=r[a])&&iD(o),o.wv>e.wv)return!0}i&&(null===i6||aa)||ay(e,1024)}return!1}function as(e){return(16384&e.f)==0&&(null===e.parent||(128&e.parent.f)==0)}function al(e,t,r,i){if(iQ){if(null===r&&(iQ=!1),as(t))throw e;return}if(null!==r&&(iQ=!0),function(e,t){for(var r=t;null!==r;){if((128&r.f)!=0)try{r.fn(e);return}catch{r.f^=128}r=r.parent}throw iQ=!1,e}(e,t),as(t))throw e}function ac(e){var t=ae,r=at,i=an,a=i3,o=aa,s=i8,l=aS,c=i7,u=e.f;ae=null,at=0,an=null,aa=(256&u)!=0&&(i7||!i2||null===i3),i3=(96&u)==0?e:null,i8=null,aS=e.ctx,i7=!1,ai++,e.f|=2097152;try{var d,f=(0,e.fn)(),p=e.deps;if(null!==ae){if(au(e,at),null!==p&&at>0)for(p.length=at+ae.length,d=0;d<ae.length;d++)p[at+d]=ae[d];else e.deps=p=ae;if(!aa)for(d=at;d<p.length;d++)(p[d].reactions??=[]).push(e)}else null!==p&&at<p.length&&(au(e,at),p.length=at);if(null!==an&&!i7&&null!==p&&(6146&e.f)==0)for(d=0;d<an.length;d++)!function e(t,r,i=!0){var a=t.reactions;if(null!==a)for(var o=0;o<a.length;o++){var s=a[o];i8?.includes(t)||((2&s.f)!=0?e(s,r,!1):r===s&&(i?ay(s,2048):(1024&s.f)!=0&&ay(s,4096),ap(s)))}}(an[d],e);return null!==a&&a!==e&&(ai++,null!==an&&(null===i?i=an:i.push(...an))),f}finally{ae=t,at=r,an=i,i3=a,aa=o,i8=s,aS=l,i7=c,e.f^=2097152}}function au(e,t){var r=e.deps;if(null!==r)for(var i=t;i<r.length;i++)!function(e,t){let r=t.reactions;if(null!==r){var i=r4.call(r,e);if(-1!==i){var a=r.length-1;0===a?r=t.reactions=null:(r[i]=r[a],r.pop())}}null!==r||(2&t.f)==0||null!==ae&&ae.includes(t)||(ay(t,4096),(768&t.f)==0&&(t.f^=512),iA(t),au(t,0))}(e,r[i])}function ad(e){var t=e.f;if((16384&t)==0){ay(e,1024);var r=i6,i=aS,a=i2;i6=e,i2=!0;try{(16&t)!=0?function(e){for(var t=e.first;null!==t;){var r=t.next;(32&t.f)==0&&iq(t),t=r}}(e):iU(e),iV(e);var o=ac(e);e.teardown="function"==typeof o?o:null,e.wv=ar,e.deps}catch(t){al(t,e,r,i||e.ctx)}finally{i2=a,i6=r}}}function af(){var e=i2;try{var t=0;for(i2=!0;i5.length>0;){t++>1e3&&function(){try{!function(){throw Error("https://svelte.dev/e/effect_update_depth_exceeded")}()}catch(e){if(null!==i1)al(e,i1,null);else throw e}}();var r=i5,i=r.length;i5=[];for(var a=0;a<i;a++){var o=function(e){for(var t=[],r=e;null!==r;){var i=r.f,a=(96&i)!=0;if(!(a&&(1024&i)!=0)&&(8192&i)==0){if((4&i)!=0)t.push(r);else if(a)r.f^=1024;else try{ao(r)&&ad(r)}catch(e){al(e,r,null,r.ctx)}var o=r.first;if(null!==o){r=o;continue}}var s=r.parent;for(r=r.next;null===r&&null!==s;)r=s.next,s=s.parent}return t}(r[a]);!function(e){var t=e.length;if(0!==t)for(var r=0;r<t;r++){var i=e[r];if((24576&i.f)==0)try{ao(i)&&(ad(i),null===i.deps&&null===i.first&&null===i.nodes_start&&(null===i.teardown?iH(i):i.fn=null))}catch(e){al(e,i,null,i.ctx)}}}(o)}ab.clear()}}finally{i0=!1,i2=e,i1=null}}function ap(e){i0||(i0=!0,queueMicrotask(af));for(var t=i1=e;null!==t.parent;){var r=(t=t.parent).f;if((96&r)!=0){if((1024&r)==0)return;t.f^=1024}}i5.push(t)}function ah(e){for(var t;;){if(iZ.length>0&&iJ(),iY.length>0&&iK(),0===i5.length)return t;i0=!0,af()}}async function ag(){await Promise.resolve(),ah()}function am(e){var t=(2&e.f)!=0;if(null===i3||i7){if(t&&null===e.deps&&null===e.effects){var r=e,i=r.parent;null!==i&&(256&i.f)==0&&(r.f^=256)}}else if(!i8?.includes(e)){var a=i3.deps;e.rv<ai&&(e.rv=ai,null===ae&&null!==a&&a[at]===e?at++:null===ae?ae=[e]:aa&&ae.includes(e)||ae.push(e))}return t&&ao(r=e)&&iD(r),i4&&ab.has(e)?ab.get(e):e.v}function av(e){var t=i7;try{return i7=!0,e()}finally{i7=t}}function ay(e,t){e.f=-7169&e.f|t}let ab=new Map;function a_(e,t){return{f:0,v:e,reactions:null,equals:iS,rv:0,wv:0}}function aw(e,t){let r=a_(e);return i9(r),r}function ax(e,t=!1){let r=a_(e);return t||(r.equals=i$),r}function aE(e,t,r=!1){return null===i3||i7||(18&i3.f)==0||i8?.includes(e)||function(){throw Error("https://svelte.dev/e/state_unsafe_mutation")}(),function(e,t){if(!e.equals(t)){var r=e.v;i4?ab.set(e,t):ab.set(e,r),e.v=t,(2&e.f)!=0&&((2048&e.f)!=0&&iI(e),ay(e,(256&e.f)==0?1024:4096)),e.wv=++ar,function e(t,r){var i=t.reactions;if(null!==i)for(var a=i.length,o=0;o<a;o++){var s=i[o],l=s.f;(2048&l)==0&&(ay(s,r),(1280&l)!=0&&((2&l)!=0?e(s,4096):ap(s)))}}(e,2048),null!==i6&&(1024&i6.f)!=0&&(96&i6.f)==0&&(null===an?an=[e]:an.push(e))}return t}(e,r?ig(t):t)}let aS=null;function ak(e,t=!1,r){var i=aS={p:aS,c:null,d:!1,e:null,m:!1,s:e,x:null,l:null};iR(()=>{i.d=!0})}function a$(e){let t=aS;if(null!==t){void 0!==e&&(t.x=e);let s=t.e;if(null!==s){var r=i6,i=i3;t.e=null;try{for(var a=0;a<s.length;a++){var o=s[a];i6=o.effect,i3=o.reaction,iO(o.fn)}}finally{i6=r,i3=i}}aS=t.p,t.m=!0}return e||{}}let aC=["touchstart","touchmove"],aL=!1;function aA(){aL||(aL=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function aI(e){var t=i3,r=i6;i3=null,i6=null;try{return e()}finally{i3=t,i6=r}}let aD=new Set,aP=new Set;function aR(e,t,r,i,a){var o={capture:i,passive:a},s=function(e,t,r,i={}){function a(e){if(i.capture||aT.call(t,e),!e.cancelBubble)return aI(()=>r?.call(this,e))}return e.startsWith("pointer")||e.startsWith("touch")||"wheel"===e?iX(()=>{t.addEventListener(e,a,i)}):t.addEventListener(e,a,i),a}(e,t,r,o);(t===document.body||t===window||t===document)&&iR(()=>{t.removeEventListener(e,s,o)})}function aT(e){var t=this.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target,o=0,s=e.__root;if(s){var l=i.indexOf(s);if(-1!==l&&(this===document||this===window)){e.__root=this;return}var c=i.indexOf(this);if(-1===c)return;l<=c&&(o=l)}if((a=i[o]||e.target)!==this){r7(e,"currentTarget",{configurable:!0,get:()=>a||t});var u=i3,d=i6;i3=null,i6=null;try{for(var f,p=[];null!==a;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var g=a["__"+r];if(null!=g&&(!a.disabled||e.target===a)){if(r2(g)){var[m,...v]=g;m.apply(a,[e,...v])}else g.call(a,e)}}catch(e){f?p.push(e):f=e}if(e.cancelBubble||h===this||null===h)break;a=h}if(f){for(let e of p)queueMicrotask(()=>{throw e});throw f}}finally{e.__root=this,delete e.currentTarget,i3=u,i6=d}}}function aO(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function aM(e,t){var r=i6;null===r.nodes_start&&(r.nodes_start=e,r.nodes_end=t)}function aN(e,t){var r,i=(1&t)!=0,a=(2&t)!=0,o=!e.startsWith("<!>");return()=>{if(iu)return aM(f,null),f;void 0===r&&(r=aO(o?e:"<!>"+e),i||(r=ib(r)));var t=a||E?document.importNode(r,!0):r.cloneNode(!0);return i?aM(ib(t),t.lastChild):aM(t,t),t}}function aj(e,t,r="svg"){var i,a=!e.startsWith("<!>"),o=`<${r}>${a?e:"<!>"+e}</${r}>`;return()=>{if(iu)return aM(f,null),f;if(!i){var e=ib(aO(o));i=ib(e)}var t=i.cloneNode(!0);return aM(t,t),t}}function aF(){if(iu)return aM(f,null),f;var e=document.createDocumentFragment(),t=document.createComment(""),r=iy();return e.append(t,r),aM(t,r),e}function aV(e,t){if(iu){i6.nodes_end=f,ip();return}null!==e&&e.before(t)}let aU=new Map;function aq(e,{target:t,anchor:r,props:i={},events:a,context:o,intro:s=!0}){iv();var l=new Set,c=e=>{for(var r=0;r<e.length;r++){var i=e[r];if(!l.has(i)){l.add(i);var a=aC.includes(i);t.addEventListener(i,aT,{passive:a});var o=aU.get(i);void 0===o?(document.addEventListener(i,aT,{passive:a}),aU.set(i,1)):aU.set(i,o+1)}}};c(r5(aD)),aP.add(c);var u=void 0,d=function(e){let t=iP(64,e,!0);return (e={})=>new Promise(r=>{e.outro?iW(t,()=>{iq(t),r(void 0)}):(iq(t),r(void 0))})}(()=>{var s=r??t.appendChild(iy());return iF(()=>{o&&(ak({}),aS.c=o),a&&(i.$$events=a),iu&&aM(s,null),u=e(s,i)||{},iu&&(i6.nodes_end=f),o&&a$()}),()=>{for(var e of l){t.removeEventListener(e,aT);var i=aU.get(e);0==--i?(document.removeEventListener(e,aT),aU.delete(e)):aU.set(e,i)}aP.delete(c),s!==r&&s.parentNode?.removeChild(s)}});return aB.set(u,d),u}let aB=new WeakMap;function aH(e,t,[r,i]=[0,0]){iu&&0===r&&ip();var a=e,o=null,s=null,l=r0,c=!1;let u=(e,t=!0)=>{c=!0,d(t,e)},d=(e,t)=>{if(l===(l=e))return;let c=!1;if(iu&&-1!==i){if(0===r){let e=a.data;"["===e?i=0:"[!"===e?i=1/0:(i=parseInt(e.substring(1)))!=i&&(i=l?1/0:-1)}!!l==i>r&&(id(a=function(){for(var e=0,t=f;;){if(8===t.nodeType){var r=t.data;if("]"===r){if(0===e)return t;e-=1}else("["===r||"[!"===r)&&(e+=1)}var i=i_(t);t.remove(),t=i}}()),iu=!1,c=!0,i=-1)}l?(o?iG(o,!0):t&&(o=iF(()=>t(a))),s&&iW(s,()=>{s=null})):(s?iG(s,!0):t&&(s=iF(()=>t(a,[r+1,i]))),o&&iW(o,()=>{o=null})),c&&(iu=!0)};ij(()=>{c=!1,t(u),c||d(null,null)},65536*(r>0)),iu&&(a=f)}function aW(e,t,r=!1,i=!1,a=!1){var o=e,s="";iN(()=>{var e=i6;if(s===(s=t()??"")){iu&&ip();return}if(null!==e.nodes_start&&(iB(e.nodes_start,e.nodes_end),e.nodes_start=e.nodes_end=null),""!==s){if(iu){f.data;for(var a=ip(),l=a;null!==a&&(8!==a.nodeType||""!==a.data);)l=a,a=i_(a);if(null===a)throw ic(),rQ;aM(f,l),o=id(a);return}var c=s+"";r?c=`<svg>${c}</svg>`:i&&(c=`<math>${c}</math>`);var u=aO(c);if((r||i)&&(u=ib(u)),aM(ib(u),u.lastChild),r||i)for(;ib(u);)o.before(ib(u));else o.before(u)}})}let aG=[...` 	
\r\f\xa0\v\uFEFF`],az=Symbol("is custom element"),aZ=Symbol("is html");function aY(e){if(iu){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var r=e.value;aJ(e,"value",null),e.value=r}if(e.hasAttribute("checked")){var i=e.checked;aJ(e,"checked",null),e.checked=i}}};e.__on_r=r,0===iY.length&&iz(iK),iY.push(r),aA()}}function aJ(e,t,r,i){var a=aK(e);iu&&(a[t]=e.getAttribute(t),"src"===t||"srcset"===t||"href"===t&&"LINK"===e.nodeName)||a[t]!==(a[t]=r)&&("loading"===t&&(e[il]=r),null==r?e.removeAttribute(t):"string"!=typeof r&&(function(e){var t=aX.get(e.nodeName);if(t)return t;aX.set(e.nodeName,t=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=r8(i))r[o].set&&t.push(o);i=it(i)}return t})(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function aK(e){return e.__attributes??={[az]:e.nodeName.includes("-"),[aZ]:"http://www.w3.org/1999/xhtml"===e.namespaceURI}}var aX=new Map;function aQ(e,t){return e===t||e?.[io]===t}function a0(e={},t,r,i){return iO(()=>{var i,a;return iM(()=>{i=a,a=[],av(()=>{e!==r(...a)&&(t(e,...a),i&&aQ(r(...i),e)&&t(null,...i))})}),()=>{iX(()=>{a&&aQ(r(...a),e)&&t(null,...a)})}}),e}function a1(e){null===aS&&r1(),iT(()=>{let t=av(e);if("function"==typeof t)return t})}function a2(e,t,r){if(null==e)return t(void 0),ii;let i=av(()=>e.subscribe(t,r));return i.unsubscribe?()=>i.unsubscribe():i}let a4=[];function a5(e){let t;return a2(e,e=>t=e)(),t}let a3=!1,a7=Symbol();function a6(e){return e.ctx?.d??!1}function a8(e,t,r,i){var a,o,s=(8&r)!=0,l=(16&r)!=0,c=!1;s?[o,c]=function(e){var t=a3;try{return a3=!1,[e(),a3]}finally{a3=t}}(()=>e[t]):o=e[t];var u=io in e||is in e,d=s&&(r6(e,t)?.set??(u&&t in e&&(r=>e[t]=r)))||void 0,f=i,p=!0,h=!1,g=()=>(h=!0,p&&(p=!1,f=l?av(i):i),f);if(void 0===o&&void 0!==i&&(d&&function(){throw Error("https://svelte.dev/e/props_invalid_value")}(),o=g(),d&&d(o)),a=()=>{var r=e[t];return void 0===r?g():(p=!0,h=!1,r)},(4&r)==0)return a;if(d){var m=e.$$legacy;return function(e,t){return arguments.length>0?((!t||m||c)&&d(t?a():e),e):a()}}var v=!1,y=ax(o),b=iC(()=>{var e=a(),t=am(y);return v?(v=!1,t):y.v=e});return s&&am(b),(1&r)!=0||(b.equals=i$),function(e,t){if(arguments.length>0){let r=t?am(b):s?ig(e):e;if(!b.equals(r)){if(v=!0,aE(y,r),h&&void 0!==f&&(f=r),a6(b))return e;av(()=>am(b))}return e}return a6(b)?b.v:am(b)}}class a9{#e;#t;constructor(e){var t=new Map,r=(e,r)=>{var i=ax(r);return t.set(e,i),i};let i=new Proxy({...e.props||{},$$events:{}},{get:(e,i)=>am(t.get(i)??r(i,Reflect.get(e,i))),has:(e,i)=>i===is||(am(t.get(i)??r(i,Reflect.get(e,i))),Reflect.has(e,i)),set:(e,i,a)=>(aE(t.get(i)??r(i,a),a),Reflect.set(e,i,a))});for(let t of(this.#t=(e.hydrate?function(e,t){iv(),t.intro=t.intro??!1;let r=t.target,i=iu,a=f;try{for(var o=ib(r);o&&(8!==o.nodeType||"["!==o.data);)o=i_(o);if(!o)throw rQ;iu=!0,id(o),ip();let i=aq(e,{...t,anchor:o});if(null===f||8!==f.nodeType||"]"!==f.data)throw ic(),rQ;return iu=!1,i}catch(i){if(i===rQ)return!1===t.recover&&function(){throw Error("https://svelte.dev/e/hydration_failed")}(),iv(),r.textContent="",iu=!1,aq(e,t);throw i}finally{iu=i,id(a)}}:function(e,t){return aq(e,t)})(e.component,{target:e.target,anchor:e.anchor,props:i,context:e.context,intro:e.intro??!1,recover:e.recover}),e?.props?.$$host&&!1!==e.sync||ah(),this.#e=i.$$events,Object.keys(this.#t)))"$set"===t||"$destroy"===t||"$on"===t||r7(this,t,{get(){return this.#t[t]},set(e){this.#t[t]=e},enumerable:!0});this.#t.$set=e=>{Object.assign(i,e)},this.#t.$destroy=()=>{(function(e,t){let r=aB.get(e);r?(aB.delete(e),r(void 0)):Promise.resolve()})(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let r=(...e)=>t.call(this,...e);return this.#e[e].push(r),()=>{this.#e[e]=this.#e[e].filter(e=>e!==r)}}$destroy(){this.#t.$destroy()}}function oe(e,t,r,i){let a=r[e]?.type;if(t="Boolean"===a&&"boolean"!=typeof t?null!=t:t,!i||!r[e])return t;if("toAttribute"===i)switch(a){case"Object":case"Array":return null==t?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(a){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":default:return t;case"Number":return null!=t?+t:t}}"function"==typeof HTMLElement&&(p=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(e){return t=>{let r=document.createElement("slot");"default"!==e&&(r.name=e),aV(t,r)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},r=function(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||"default"]=!0}),t}(this);for(let i of this.$$s)i in r&&("default"!==i||this.$$d.children?t[i]=e(i):(this.$$d.children=e(i),t.default=!0));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=oe(t,e.value,this.$$p_d,"toProp"))}for(let e in this.$$p_d)e in this.$$d||void 0===this[e]||(this.$$d[e]=this[e],delete this[e]);for(let e in this.$$c=new a9({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=function(e){let t=iP(64,e,!0);return()=>{iq(t)}}(()=>{iM(()=>{for(let e of(this.$$r=!0,r3(this.$$c))){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=oe(e,this.$$d[e],this.$$p_d,"toAttribute");null==t?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})}),this.$$l)for(let t of this.$$l[e]){let r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=oe(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return r3(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});let ot=new TextEncoder;async function on(e,t="SHA-256",r=1e5){let i=Date.now().toString(16);e||(e=Math.round(Math.random()*r));let a=await or(i,e,t);return{algorithm:t,challenge:a,salt:i,signature:""}}async function or(e,t,r){if(typeof crypto>"u"||!("subtle"in crypto)||!("digest"in crypto.subtle))throw Error("Web Crypto is not available. Secure context is required (https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts).");return[...new Uint8Array(await crypto.subtle.digest(r.toUpperCase(),ot.encode(e+t)))].map(e=>e.toString(16).padStart(2,"0")).join("")}function oi(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}}async function oa(e,t="",r=1e6,i=0){let a="AES-GCM",o=new AbortController,s=Date.now(),l=async()=>{for(let e=i;e<=r&&!o.signal.aborted&&c&&u;e+=1)try{let t=await crypto.subtle.decrypt({name:a,iv:function(e,t=12){let r=new Uint8Array(t);for(let i=0;i<t;i++)r[i]=e%256,e=Math.floor(e/256);return r}(e)},c,u);if(t)return{clearText:new TextDecoder().decode(t),took:Date.now()-s}}catch{}return null},c=null,u=null;try{u=function(e){let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r}(e);let r=await crypto.subtle.digest("SHA-256",ot.encode(t));c=await crypto.subtle.importKey("raw",r,a,!1,["decrypt"])}catch{return{promise:Promise.reject(),controller:o}}return{promise:l(),controller:o}}var oo=((h=oo||{}).CODE="code",h.ERROR="error",h.VERIFIED="verified",h.VERIFYING="verifying",h.UNVERIFIED="unverified",h.EXPIRED="expired",h),os=((g=os||{}).ERROR="error",g.LOADING="loading",g.PLAYING="playing",g.PAUSED="paused",g.READY="ready",g);globalThis.altchaPlugins=globalThis.altchaPlugins||[],globalThis.altchaI18n=globalThis.altchaI18n||{get:e=>a5(globalThis.altchaI18n.store)[e],set:(e,t)=>{Object.assign(a5(globalThis.altchaI18n.store),{[e]:t}),globalThis.altchaI18n.store.set(a5(globalThis.altchaI18n.store))},store:function(e,t=ii){let r=null,i=new Set;function a(t){if(ik(e,t)&&(e=t,r)){let t=!a4.length;for(let t of i)t[1](),a4.push(t,e);if(t){for(let e=0;e<a4.length;e+=2)a4[e][0](a4[e+1]);a4.length=0}}}function o(t){a(t(e))}return{set:a,update:o,subscribe:function(s,l=ii){let c=[s,l];return i.add(c),1===i.size&&(r=t(a,o)||ii),s(e),()=>{i.delete(c),0===i.size&&r&&(r(),r=null)}}}}({})},globalThis.altchaI18n.set("en",{ariaLinkLabel:"Visit Altcha.org",enterCode:"Enter code",enterCodeAria:"Enter code you hear. Press Space to play audio.",error:"Verification failed. Try again later.",expired:"Verification expired. Try again.",footer:'Protected by <a href="https://altcha.org/" target="_blank" aria-label="Visit Altcha.org">ALTCHA</a>',getAudioChallenge:"Get an audio challenge",label:"I'm not a robot",loading:"Loading...",reload:"Reload",verify:"Verify",verificationRequired:"Verification required!",verified:"Verified",verifying:"Verifying...",waitAlert:"Verifying... please wait."});let ol=(e,t)=>{let r=function(e){let t=iC(e);return t.equals=i$,t}(()=>(function(e,t,r=!1){return void 0===e?r?24():24:e})(t?.(),24));var i=of();iN(()=>{aJ(i,"width",am(r)),aJ(i,"height",am(r))}),aV(e,i)};function oc(e,t){"Space"===e.code&&(e.preventDefault(),e.stopImmediatePropagation(),t())}function ou(e,t){e.preventDefault(),t()}function od(e,t,r,i,a,o,s,l){[oo.UNVERIFIED,oo.ERROR,oo.EXPIRED,oo.CODE].includes(am(t))?!1!==r()&&am(i)?.reportValidity()===!1?aE(a,!1):o()?s():l():aE(a,!0)}var of=aj('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="altcha-spinner"><path d="M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z" fill="currentColor" opacity=".25"></path><path d="M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z" fill="currentColor"></path></svg>'),op=aN('<input type="hidden">'),oh=aN('<div><a target="_blank" class="altcha-logo" aria-hidden="true"><svg width="22" height="22" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.33955 16.4279C5.88954 20.6586 12.1971 21.2105 16.4279 17.6604C18.4699 15.947 19.6548 13.5911 19.9352 11.1365L17.9886 10.4279C17.8738 12.5624 16.909 14.6459 15.1423 16.1284C11.7577 18.9684 6.71167 18.5269 3.87164 15.1423C1.03163 11.7577 1.4731 6.71166 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577C16.9767 5.86872 17.5322 7.02798 17.804 8.2324L19.9522 9.01429C19.7622 7.07737 19.0059 5.17558 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956C-0.658625 5.88958 -1.21046 12.1971 2.33955 16.4279Z" fill="currentColor"></path><path d="M3.57212 2.33956C1.65755 3.94607 0.496389 6.11731 0.12782 8.40523L2.04639 9.13961C2.26047 7.15832 3.21057 5.25375 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577L13.8302 6.78606L19.9633 9.13364C19.7929 7.15555 19.0335 5.20847 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956Z" fill="currentColor"></path><path d="M7 10H5C5 12.7614 7.23858 15 10 15C12.7614 15 15 12.7614 15 10H13C13 11.6569 11.6569 13 10 13C8.3431 13 7 11.6569 7 10Z" fill="currentColor"></path></svg></a></div>'),og=aj('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12.8659 3.00017L22.3922 19.5002C22.6684 19.9785 22.5045 20.5901 22.0262 20.8662C21.8742 20.954 21.7017 21.0002 21.5262 21.0002H2.47363C1.92135 21.0002 1.47363 20.5525 1.47363 20.0002C1.47363 19.8246 1.51984 19.6522 1.60761 19.5002L11.1339 3.00017C11.41 2.52187 12.0216 2.358 12.4999 2.63414C12.6519 2.72191 12.7782 2.84815 12.8659 3.00017ZM10.9999 16.0002V18.0002H12.9999V16.0002H10.9999ZM10.9999 9.00017V14.0002H12.9999V9.00017H10.9999Z"></path></svg>'),om=aj('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M15 7C15 6.44772 15.4477 6 16 6C16.5523 6 17 6.44772 17 7V17C17 17.5523 16.5523 18 16 18C15.4477 18 15 17.5523 15 17V7ZM7 7C7 6.44772 7.44772 6 8 6C8.55228 6 9 6.44772 9 7V17C9 17.5523 8.55228 18 8 18C7.44772 18 7 17.5523 7 17V7Z"></path></svg>'),ov=aj('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4 12H7C8.10457 12 9 12.8954 9 14V19C9 20.1046 8.10457 21 7 21H4C2.89543 21 2 20.1046 2 19V12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12V19C22 20.1046 21.1046 21 20 21H17C15.8954 21 15 20.1046 15 19V14C15 12.8954 15.8954 12 17 12H20C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12Z"></path></svg>'),oy=aN('<button type="button" class="altcha-code-challenge-audio"><!></button>'),ob=aN("<audio hidden autoplay><source></audio>"),o_=aN('<div class="altcha-code-challenge" role="dialog"><div class="altcha-code-challenge-arrow"></div> <form data-code-challenge-form="1"><img class="altcha-code-challenge-image" alt=""> <input type="text" autocomplete="off" name="code" class="altcha-code-challenge-input" required> <div class="altcha-code-challenge-buttons"><div class="altcha-code-challenge-buttons-left"><!> <button type="button" class="altcha-code-challenge-reload"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2V4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 9.25022 5.38734 6.82447 7.50024 5.38451L7.5 8H9.5V2L3.5 2V4L5.99918 3.99989C3.57075 5.82434 2 8.72873 2 12Z"></path></svg></button></div> <button type="submit" class="altcha-code-challenge-verify"><!> </button></div> <!></form></div>'),ow=aN("<div><!></div>"),ox=aN("<div><!></div>"),oE=aN('<div class="altcha-error"><svg width="14" height="14" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"></path></svg> <!></div>'),oS=aN('<div class="altcha-footer"><div><!></div></div>'),ok=aN('<div class="altcha-anchor-arrow"></div>'),o$=aN('<!> <div class="altcha"><div class="altcha-main"><div><!> <input type="checkbox"></div> <label class="altcha-label"><!></label> <!> <!> <!></div> <!> <!> <!></div>',1);!function(e){for(var t=0;t<e.length;t++)aD.add(e[t]);for(var r of aP)r(e)}(["change","keydown","click"]),customElements.define("altcha-widget",(b=function(e,t){let r;ak(t,!0);let[i,a]=function(){let e={};return[e,function(){iR(()=>{for(var t in e)e[t].unsubscribe();r7(e,a7,{enumerable:!1,value:!0})})}]}(),o=()=>(function(e,t,r){let i=r[t]??={store:null,source:ax(void 0),unsubscribe:ii};if(i.store!==e&&!(a7 in r)){if(i.unsubscribe(),i.store=e??null,null==e)i.source.v=void 0,i.unsubscribe=ii;else{var a=!0;i.unsubscribe=a2(e,e=>{a?i.source.v=e:aE(i.source,e)}),a=!1}}return e&&a7 in r?a5(e):am(i.source)})(B,"$altchaI18nStore",i),s=a8(t,"auto",7,void 0),l=a8(t,"blockspam",7,void 0),c=a8(t,"challengeurl",7,void 0),u=a8(t,"challengejson",7,void 0),d=a8(t,"credentials",7,void 0),f=a8(t,"customfetch",7,void 0),p=a8(t,"debug",7,!1),h=a8(t,"delay",7,0),g=a8(t,"disableautofocus",7,!1),m=a8(t,"refetchonexpire",7,!0),v=a8(t,"disablerefetchonexpire",23,()=>!m()),y=a8(t,"expire",7,void 0),b=a8(t,"floating",7,void 0),_=a8(t,"floatinganchor",7,void 0),w=a8(t,"floatingoffset",7,void 0),x=a8(t,"floatingpersist",7,!1),E=a8(t,"hidefooter",7,!1),S=a8(t,"hidelogo",7,!1),$=a8(t,"id",7,void 0),C=a8(t,"language",7,void 0),L=a8(t,"name",7,"altcha"),A=a8(t,"maxnumber",7,1e6),I=a8(t,"mockerror",7,!1),D=a8(t,"obfuscated",7,void 0),P=a8(t,"overlay",7,void 0),R=a8(t,"overlaycontent",7,void 0),T=a8(t,"plugins",7,void 0),O=a8(t,"sentinel",7,void 0),M=a8(t,"spamfilter",7,!1),N=a8(t,"strings",7,void 0),j=a8(t,"test",7,!1),F=a8(t,"verifyurl",7,void 0),V=a8(t,"workers",23,()=>Math.min(16,navigator.hardwareConcurrency||8)),U=a8(t,"workerurl",7,void 0),{altchaI18n:q}=globalThis,B=q.store,H=["SHA-256","SHA-384","SHA-512"],W=(e,r)=>{t.$$host.dispatchEvent(new CustomEvent(e,{detail:r}))},G=document.documentElement.lang?.split("-")?.[0],z=iL(()=>c()&&new URL(c(),location.origin).host.endsWith(".altcha.org")&&!!c()?.includes("apiKey=ckey_")),Z=iL(()=>u()?eV(u()):void 0),Y=iL(()=>N()?eV(N()):{}),J=iL(()=>({...ew(o()),...am(Y)})),K=iL(()=>`${$()||L()}_checkbox_${Math.round(1e8*Math.random())}`),X=aw(null),Q=aw(!1),ee=aw(null),et=aw(ig(oo.UNVERIFIED)),en=aw(void 0),er=aw(null),ei=aw(null),ea=aw(null),eo=aw(null),es=aw(null),el=aw(null),ec=aw(null),eu=aw(null),ed=null,ef=aw(null),ep=aw(!1),eh=[],eg=aw(!1),em=aw(null);function ev(e,t){return btoa(JSON.stringify({algorithm:e.algorithm,challenge:e.challenge,number:t.number,salt:e.salt,signature:e.signature,test:!!j()||void 0,took:t.took}))}function ey(){c()&&!v()&&am(et)===oo.VERIFIED?e6():e4(oo.EXPIRED,am(J).expired)}async function eb(){if(I())throw eS("mocking error"),Error("Mocked error.");if(am(Z))return eS("using provided json data"),eU(am(Z).salt),am(Z);if(j())return eS("generating test challenge",{test:j()}),on("boolean"!=typeof j()?+j():void 0);{if(!c()&&am(el)){let e=am(el).getAttribute("action");e?.includes("/form/")&&c(e+"/altcha")}if(!c())throw Error("Attribute challengeurl not set.");eS("fetching challenge from",c());let e={credentials:"boolean"==typeof d()?"include":d(),headers:!1!==M()?{"x-altcha-spam-filter":"1"}:{}},t=await e_()(c(),e);if(!t||!(t instanceof Response))throw Error("Custom fetch function did not return a response.");if(200!==t.status)throw Error(`Server responded with ${t.status}.`);let r=t.headers.get("X-Altcha-Config"),i=await t.json();if(eU(i.salt),r)try{let e=JSON.parse(r);e&&"object"==typeof e&&(e.verifyurl&&!e.verifyurl.startsWith("fn:")&&(e.verifyurl=eE(e.verifyurl)),eK(e))}catch(e){eS("unable to configure from X-Altcha-Config",e)}return i}}function e_(){let e=fetch;if(f()){if(eS("using customfetch"),"string"==typeof f()){if(!(e=globalThis[f()]||null))throw Error(`Custom fetch function not found: ${f()}`)}else e=f()}return e}function ew(e,t=[C()||"",document.documentElement.lang||"",...navigator.languages]){let r=Object.keys(e).map(e=>e.toLowerCase());return e[t.reduce((t,i)=>(i=i.toLowerCase(),t||(e[i]?i:null)||r.find(e=>i.split("-")[0]===e.split("-")[0])||null),null)||"en"]}function ex(e){return[...am(el)?.querySelectorAll(e?.length?e.map(e=>`input[name="${e}"]`).join(", "):'input[type="text"]:not([data-no-spamfilter]), textarea:not([data-no-spamfilter])')||[]].reduce((e,t)=>{let r=t.name,i=t.value;return r&&i&&(e[r]=/\n/.test(i)?i.replace(RegExp("(?<!\\r)\\n","g"),`\r
`):i),e},{})}function eE(e,t){let r=new URL(c()||location.origin),i=new URL(e,r);if(i.search||(i.search=r.search),t)for(let e in t)void 0!==t[e]&&null!==t[e]&&i.searchParams.set(e,t[e]);return i.toString()}function eS(...e){(p()||e.some(e=>e instanceof Error))&&console[e[0]instanceof Error?"error":"log"]("ALTCHA",`[name=${L()}]`,...e)}function ek(){aE(ef,os.PAUSED,!0)}function e$(e){aE(ef,os.ERROR,!0)}function eC(){aE(ef,os.READY,!0)}function eL(){aE(ef,os.LOADING,!0)}function eA(){aE(ef,os.PLAYING,!0)}function eI(){aE(ef,os.PAUSED,!0)}function eD(e){if(e.preventDefault(),e.stopPropagation(),am(ee)){let t=String(new FormData(e.target).get("code"));if(F()?.startsWith("fn:")){let e=F().replace(/^fn:/,"");if(eS(`calling ${e} function instead of verifyurl`),!(e in globalThis))throw Error(`Global function "${e}" is undefined.`);return globalThis[e]({challenge:am(ee).challenge,code:t,solution:am(ee).solution})}aE(ep,!0),eB(ev(am(ee).challenge,am(ee).solution),t).then(({reason:e,verified:t})=>{t?(aE(ee,null),e3(oo.VERIFIED),eS("verified"),ag().then(()=>{am(eo)?.focus(),W("verified",{payload:am(em)}),"onsubmit"===s()?eH(am(ec)):P()&&e1()})):(e4(),aE(eu,e||"Verification failed",!0))}).catch(e=>{aE(ee,null),e3(oo.ERROR,e),eS("sentinel verification failed:",e)}).finally(()=>{aE(ep,!1)})}}function eP(e){let t=e.target;b()&&t&&!am(en).contains(t)&&(am(et)===oo.VERIFIED&&!1===x()||am(et)===oo.VERIFIED&&"focus"===x()&&!am(el)?.matches(":focus-within")||"off"===s()&&am(et)===oo.UNVERIFIED)&&e1()}function eR(){b()&&am(et)!==oo.UNVERIFIED&&e2()}function eT(e){am(et)===oo.UNVERIFIED?e6():b()&&"focus"===x()&&am(et)===oo.VERIFIED&&e7()}function eO(e){e.target?.hasAttribute("data-code-challenge-form")||(aE(ec,e.submitter,!0),am(el)&&"onsubmit"===s()?(am(ec)?.blur(),am(et)===oo.UNVERIFIED?(e.preventDefault(),e.stopPropagation(),e6().then(()=>{eH(am(ec))})):am(et)!==oo.VERIFIED&&(e.preventDefault(),e.stopPropagation(),am(et)===oo.VERIFYING&&eN())):am(el)&&b()&&"off"===s()&&am(et)===oo.UNVERIFIED&&(e.preventDefault(),e.stopPropagation(),e7()))}function eM(){e4()}function eN(){am(et)===oo.VERIFYING&&am(J).waitAlert&&alert(am(J).waitAlert)}function ej(){am(ei)?am(ei).paused?(am(ei).currentTime=0,am(ei).play()):am(ei).pause():(aE(eg,!0),requestAnimationFrame(()=>{am(ei)?.play()}))}function eF(){b()&&e2()}function eV(e){return JSON.parse(e)}function eU(e){let t=new URLSearchParams(e.split("?")?.[1]),r=t.get("expires")||t.get("expire");if(r){let e=new Date(1e3*+r),t=isNaN(e.getTime())?0:e.getTime()-Date.now();t>0&&eW(t)}else ed&&(clearTimeout(ed),ed=null)}async function eq(e){if(!F())throw Error("Attribute verifyurl not set.");eS("requesting server verification from",F());let t={payload:e};if(!1!==M()){let{blockedCountries:e,classifier:r,disableRules:i,email:a,expectedLanguages:o,expectedCountries:s,fields:l,ipAddress:c,text:u,timeZone:d}="ipAddress"===M()?{blockedCountries:void 0,classifier:void 0,disableRules:void 0,email:!1,expectedCountries:void 0,expectedLanguages:void 0,fields:!1,ipAddress:void 0,text:void 0,timeZone:void 0}:"object"==typeof M()?M():{blockedCountries:void 0,classifier:void 0,disableRules:void 0,email:void 0,expectedCountries:void 0,expectedLanguages:void 0,fields:void 0,ipAddress:void 0,text:void 0,timeZone:void 0};t.blockedCountries=e,t.classifier=r,t.disableRules=i,t.email=!1===a?void 0:function(e){let t=am(el)?.querySelector("string"==typeof e?`input[name="${e}"]`:'input[type="email"]:not([data-no-spamfilter])');return t?.value?.slice(t.value.indexOf("@"))||void 0}(a),t.expectedCountries=s,t.expectedLanguages=o||(G?[G]:void 0),t.fields=!1===l?void 0:ex(l),t.ipAddress=!1===c?void 0:c||"auto",t.text=u,t.timeZone=!1===d?void 0:d||oi()}let r=await e_()(F(),{body:JSON.stringify(t),headers:{"content-type":"application/json"},method:"POST"});if(!r||!(r instanceof Response))throw Error("Custom fetch function did not return a response.");if(200!==r.status)throw Error(`Server responded with ${r.status}.`);let i=await r.json();if(i?.payload&&aE(em,i.payload,!0),W("serververification",i),l()&&"BAD"===i.classification)throw Error("SpamFilter returned negative classification.")}async function eB(e,t){if(!F())throw Error("Attribute verifyurl not set.");eS("requesting sentinel verification from",F());let r={code:t,payload:e};O()&&(r.fields=O().fields?ex():void 0,r.timeZone=O().timeZone?oi():void 0);let i=await e_()(F(),{body:JSON.stringify(r),headers:{"content-type":"application/json"},method:"POST"});if(!i||!(i instanceof Response))throw Error("Fetch function did not return a response.");if(200!==i.status)throw Error(`Server responded with ${i.status}.`);let a=await i.json();return a?.payload&&aE(em,a.payload,!0),W("sentinelverification",a),a}function eH(e){am(el)&&"requestSubmit"in am(el)?am(el).requestSubmit(e):am(el)?.reportValidity()&&(e?e.click():am(el).submit())}function eW(e){eS("expire",e),ed&&(clearTimeout(ed),ed=null),e<1?ey():ed=setTimeout(ey,e)}function eG(e){eS("floating",e),b()!==e&&(am(en).style.left="",am(en).style.top=""),b(!0===e||""===e?"auto":!1===e||"false"===e?void 0:b()),b()?(s()||s("onsubmit"),document.addEventListener("scroll",eR),document.addEventListener("click",eP),window.addEventListener("resize",eF)):"onsubmit"===s()&&s(void 0)}function ez(e){if(eS("overlay",e),P(e),e){if(s()||s("onsubmit"),am(ea)&&am(en).parentElement&&am(ea).replaceWith(am(en).parentElement),am(en)?.parentElement?.parentElement){aE(ea,document.createElement("div"),!0),am(en).parentElement.parentElement.appendChild(am(ea));let e=document.createElement("div"),t=document.createElement("button");t.type="button",t.innerHTML="&times;",t.addEventListener("click",e=>{e.preventDefault(),e4()}),am(ea).classList.add("altcha-overlay-backdrop"),t.classList.add("altcha-overlay-close-button"),e.classList.add("altcha-overlay"),am(ea).append(e),e.append(t),R()&&e.append(...document.querySelectorAll(R())),e.append(am(en).parentElement)}}else am(ea)&&am(en).parentElement&&(am(ea).replaceWith(am(en).parentElement),am(en).style.display="block")}function eZ(e){if(!e.algorithm)throw Error("Invalid challenge. Property algorithm is missing.");if(void 0===e.signature)throw Error("Invalid challenge. Property signature is missing.");if(!H.includes(e.algorithm.toUpperCase()))throw Error(`Unknown algorithm value. Allowed values: ${H.join(", ")}`);if(!e.challenge||e.challenge.length<40)throw Error("Challenge is too short. Min. 40 chars.");if(!e.salt||e.salt.length<10)throw Error("Salt is too short. Min. 10 chars.")}async function eY(e){let t=null,r=null;if("Worker"in window){try{t=function(e,t="number"==typeof j()?j():e.maxNumber||e.maxnumber||A(),r=Math.ceil(V())){let i=new AbortController,a=[];r=Math.min(16,t,Math.max(1,r));for(let e=0;e<r;e++)a.push(altchaCreateWorker(U()));let o=Math.ceil(t/r);return{promise:(async()=>{let t=await Promise.all(a.map((t,r)=>{let s=r*o;return i.signal.addEventListener("abort",()=>{t.postMessage({type:"abort"})}),new Promise(r=>{t.addEventListener("message",e=>{if(e.data)for(let e of a)e!==t&&e.postMessage({type:"abort"});r(e.data)}),t.postMessage({payload:e,max:s+o,start:s,type:"work"})})}));for(let e of a)e.terminate();return t.find(e=>!!e)||null})(),controller:i}}(e,e.maxNumber||e.maxnumber||A()),aE(X,t.controller,!0),r=await t.promise}catch(e){eS(e)}finally{aE(X,null)}if(null===r||r?.number!==void 0||"obfuscated"in e)return{data:e,solution:r}}if("obfuscated"in e){let t=await oa(e.obfuscated,e.key,e.maxNumber||e.maxnumber);return{data:e,solution:await t.promise}}aE(X,(t=function(e,t,r="SHA-256",i=1e6,a=0){let o=new AbortController,s=Date.now();return{promise:(async()=>{for(let l=a;l<=i&&!o.signal.aborted;l+=1)if(await or(t,l,r)===e)return{number:l,took:Date.now()-s};return null})(),controller:o}}(e.challenge,e.salt,e.algorithm,e.maxNumber||e.maxnumber||A())).controller,!0);try{r=await t.promise}catch(e){eS(e)}finally{aE(X,null)}return{data:e,solution:r}}async function eJ(){if(!D()){e3(oo.ERROR);return}let e=eh.find(e=>"obfuscation"===e.constructor.pluginName);if(!e||!("clarify"in e)){e3(oo.ERROR),eS("Plugin `obfuscation` not found. Import `altcha/plugins/obfuscation` to load it.");return}if("clarify"in e&&"function"==typeof e.clarify)return e.clarify()}function eK(e){void 0!==e.obfuscated&&D(e.obfuscated),void 0!==e.auto&&(s(e.auto),"onload"===s()&&(D()?eJ():e6())),void 0!==e.blockspam&&l(!!e.blockspam),void 0!==e.customfetch&&f(e.customfetch),void 0!==e.floatinganchor&&_(e.floatinganchor),void 0!==e.delay&&h(e.delay),void 0!==e.floatingoffset&&w(e.floatingoffset),void 0!==e.floating&&eG(e.floating),void 0!==e.expire&&(eW(e.expire),y(e.expire)),e.challenge&&(u("string"==typeof e.challenge?e.challenge:JSON.stringify(e.challenge)),eZ(am(Z))),void 0!==e.challengeurl&&c(e.challengeurl),void 0!==e.debug&&p(!!e.debug),void 0!==e.hidefooter&&E(!!e.hidefooter),void 0!==e.hidelogo&&S(!!e.hidelogo),void 0!==e.language&&N(ew(o(),[e.language])),void 0!==e.maxnumber&&A(+e.maxnumber),void 0!==e.mockerror&&I(!!e.mockerror),void 0!==e.name&&L(e.name),void 0!==e.overlaycontent&&R(e.overlaycontent),void 0!==e.overlay&&ez(e.overlay),void 0!==e.refetchonexpire&&v(!e.refetchonexpire),void 0!==e.disablerefetchonexpire&&v(!e.disablerefetchonexpire),void 0!==e.sentinel&&"object"==typeof e.sentinel&&O(e.sentinel),void 0!==e.spamfilter&&M("object"==typeof e.spamfilter?e.spamfilter:!!e.spamfilter),e.strings&&N("string"==typeof e.strings?e.strings:JSON.stringify(e.strings)),void 0!==e.test&&j("number"==typeof e.test?e.test:!!e.test),void 0!==e.verifyurl&&F(e.verifyurl),void 0!==e.workers&&V(+e.workers),void 0!==e.workerurl&&U(e.workerurl)}function eX(){return{auto:s(),blockspam:l(),challengeurl:c(),debug:p(),delay:h(),disableautofocus:g(),disablerefetchonexpire:v(),expire:y(),floating:b(),floatinganchor:_(),floatingoffset:w(),hidefooter:E(),hidelogo:S(),name:L(),maxnumber:A(),mockerror:I(),obfuscated:D(),overlay:P(),refetchonexpire:!v(),spamfilter:M(),strings:am(J),test:j(),verifyurl:F(),workers:V(),workerurl:U()}}function eQ(){return am(es)}function e0(){return am(et)}function e1(){am(en).style.display="none",P()&&am(ea)&&(am(ea).style.display="none")}function e2(e=20){if(am(en)){if(am(es)||aE(es,(_()?document.querySelector(_()):am(el)?.querySelector('input[type="submit"], button[type="submit"], button:not([type="button"]):not([type="reset"])'))||am(el),!0),am(es)){let t=parseInt(w(),10)||12,r=am(es).getBoundingClientRect(),i=am(en).getBoundingClientRect(),a=document.documentElement.clientHeight,o=document.documentElement.clientWidth,s="auto"===b()?r.bottom+i.height+t+e>a:"top"===b(),l=Math.max(e,Math.min(o-e-i.width,r.left+r.width/2-i.width/2));if(s?am(en).style.top=`${r.top-(i.height+t)}px`:am(en).style.top=`${r.bottom+t}px`,am(en).style.left=`${l}px`,am(en).setAttribute("data-floating",s?"top":"bottom"),am(er)){let e=am(er).getBoundingClientRect();am(er).style.left=r.left-l+r.width/2-e.width/2+"px"}}else eS("unable to find floating anchor element")}}function e4(e=oo.UNVERIFIED,t=null){am(X)&&(am(X).abort(),aE(X,null)),aE(Q,!1),aE(em,null),aE(ee,null),aE(eg,!1),aE(ef,null),e3(e,t)}function e5(e){aE(es,e,!0)}function e3(e,t=null){aE(et,e,!0),aE(eu,t,!0),W("statechange",{payload:am(em),state:am(et)})}function e7(){am(en).style.display="block",b()&&e2(),P()&&am(ea)&&(am(ea).style.display="flex")}async function e6(){return e4(oo.VERIFYING),await new Promise(e=>setTimeout(e,h()||0)),eb().then(e=>(eZ(e),eS("challenge",e),eY(e))).then(({data:e,solution:t})=>{if(eS("solution",t),!t||e&&"challenge"in e&&!("clearText"in t)){if(t?.number!==void 0&&"challenge"in e){if(F()&&"codeChallenge"in e)["INPUT","BUTTON","SELECT","TEXTAREA"].includes(document.activeElement?.tagName||"")&&!1===g()&&document.activeElement.blur(),aE(ee,{challenge:e,solution:t},!0);else{if(F()&&void 0!==O())return eB(ev(e,t));if(F())return eq(ev(e,t));aE(em,ev(e,t),!0),eS("payload",am(em))}}else if(am(et)!==oo.EXPIRED)throw eS("Unable to find a solution. Ensure that the 'maxnumber' attribute is greater than the randomly generated number."),Error("Unexpected result returned.")}}).then(()=>{am(ee)?(e3(oo.CODE),ag().then(()=>{W("code",{codeChallenge:am(ee)})})):am(em)&&(e3(oo.VERIFIED),eS("verified"),ag().then(()=>{W("verified",{payload:am(em)}),P()&&e1()}))}).catch(e=>{eS(e),e3(oo.ERROR,e.message)})}iT(()=>{(function(e){for(let e of eh)"function"==typeof e.onErrorChange&&e.onErrorChange(am(eu))})(am(eu))}),iT(()=>{(function(e){for(let e of eh)"function"==typeof e.onStateChange&&e.onStateChange(am(et));b()&&am(et)!==oo.UNVERIFIED&&requestAnimationFrame(()=>{e2()}),aE(Q,am(et)===oo.VERIFIED),P()&&am(ea)&&(am(et)!==oo.UNVERIFIED?e7():e1())})(am(et))}),e8=()=>{(function(){for(let e of eh)e.destroy()})(),aE(ec,null),am(el)&&(am(el).removeEventListener("submit",eO),am(el).removeEventListener("reset",eM),am(el).removeEventListener("focusin",eT),aE(el,null)),ed&&(clearTimeout(ed),ed=null),document.removeEventListener("click",eP),document.removeEventListener("scroll",eR),window.removeEventListener("resize",eF)},null===aS&&r1(),a1(()=>()=>av(e8)),a1(()=>{eS("mounted","2.2.4"),eS("workers",V()),function(){let e=void 0!==T()?T().split(","):void 0;for(let t of globalThis.altchaPlugins)(!e||e.includes(t.pluginName))&&eh.push(new t({el:am(en),clarify:eJ,dispatch:W,getConfiguration:eX,getFloatingAnchor:eQ,getState:e0,log:eS,reset:e4,solve:eY,setState:e3,setFloatingAnchor:e5,verify:e6}))}(),eS("plugins",eh.length?eh.map(e=>e.constructor.pluginName).join(", "):"none"),j()&&eS("using test mode"),y()&&eW(y()),void 0!==s()&&eS("auto",s()),void 0!==b()&&eG(b()),aE(el,am(en)?.closest("form"),!0),am(el)&&(am(el).addEventListener("submit",eO,{capture:!0}),am(el).addEventListener("reset",eM),("onfocus"===s()||"focus"===x())&&am(el).addEventListener("focusin",eT)),P()&&ez(!0),"onload"===s()&&(D()?eJ():e6()),am(z)&&(E()||S())&&eS("Attributes hidefooter and hidelogo ignored because usage with free API Keys requires attribution."),requestAnimationFrame(()=>{W("load")})});var e8,e9,te,tt,tn=o$(),tr=ix(tn);e9={},iu&&ip(),te=t.$$slots?.default,tt=!1,!0===te&&(te=t.children,tt=!0),void 0===te||te(tr,tt?()=>e9:e9);var ti=iE(tr,2),ta=iw(ti),to=iw(ta),ts=iw(to),tl=e=>{ol(e)};aH(ts,e=>{am(et)===oo.VERIFYING&&e(tl)});var tc=iE(ts,2);aY(tc),tc.__change=[od,et,M,el,Q,D,eJ,e6],a0(tc,e=>aE(eo,e),()=>am(eo)),ih(to);var tu=iE(to,2),td=iw(tu),tf=e=>{var t=aF();aW(ix(t),()=>am(J).verified),aV(e,t)},tp=(e,t)=>{var r=e=>{var t=aF();aW(ix(t),()=>am(J).verifying),aV(e,t)},i=(e,t)=>{var r=e=>{var t=aF();aW(ix(t),()=>am(J).verificationRequired),aV(e,t)},i=e=>{var t=aF();aW(ix(t),()=>am(J).label),aV(e,t)};aH(e,e=>{am(et)===oo.CODE?e(r):e(i,!1)},t)};aH(e,e=>{am(et)===oo.VERIFYING?e(r):e(i,!1)},t)};aH(td,e=>{am(et)===oo.VERIFIED?e(tf):e(tp,!1)}),ih(tu);var th=iE(tu,2),tg=e=>{var t=op();aY(t),iN(()=>{var e,r;aJ(t,"name",L()),e=am(em),(r=aK(t)).value===(r.value=e??void 0)||t.value===e&&(0!==e||"PROGRESS"!==t.nodeName)||(t.value=e??"")}),aV(e,t)};aH(th,e=>{am(et)===oo.VERIFIED&&e(tg)});var tm=iE(th,2),tv=e=>{var t=oh(),r=iw(t);aJ(r,"href","https://altcha.org/"),ih(t),iN(()=>aJ(r,"aria-label",am(J).ariaLinkLabel)),aV(e,t)};aH(tm,e=>{(!0!==S()||am(z))&&e(tv)});var ty=iE(tm,2),tb=e=>{var t=o_(),r=iE(iw(t),2),i=iw(r),a=iE(i,2);(function(e,t){if(t){let t=document.body;e.autofocus=!0,iX(()=>{document.activeElement===t&&e.focus()})}})(a,!g()),a.__keydown=[oc,ej];var o=iE(a,2),s=iw(o),l=iw(s),c=e=>{var t=oy();t.__click=ej;var r=iw(t),i=e=>{ol(e,()=>20)},a=(e,t)=>{var r=e=>{aV(e,og())},i=(e,t)=>{var r=e=>{aV(e,om())},i=e=>{aV(e,ov())};aH(e,e=>{am(ef)===os.PLAYING?e(r):e(i,!1)},t)};aH(e,e=>{am(ef)===os.ERROR?e(r):e(i,!1)},t)};aH(r,e=>{am(ef)===os.LOADING?e(i):e(a,!1)}),ih(t),iN(()=>{aJ(t,"title",am(J).getAudioChallenge),t.disabled=am(ef)===os.LOADING||am(ef)===os.ERROR||am(ep),aJ(t,"aria-label",am(ef)===os.LOADING?am(J).loading:am(J).getAudioChallenge)}),aV(e,t)};aH(l,e=>{am(ee).challenge.codeChallenge.audio&&e(c)});var u=iE(l,2);u.__click=[ou,e6],ih(s);var d=iE(s,2),f=iw(d),p=e=>{ol(e,()=>16)};aH(f,e=>{am(ep)&&e(p)});var h=iE(f);ih(d),ih(o);var m=iE(o,2),v=e=>{var t=ob(),r=iw(t);ih(t),a0(t,e=>aE(ei,e),()=>am(ei)),iN(e=>aJ(r,"src",e),[()=>eE(am(ee).challenge.codeChallenge.audio,{language:C()})]),aR("loadstart",t,eL),aR("canplay",t,eC),aR("pause",t,eI),aR("playing",t,eA),aR("ended",t,ek),aR("error",r,e$),aV(e,t)};aH(m,e=>{am(ee).challenge.codeChallenge.audio&&am(eg)&&e(v)}),ih(r),ih(t),iN(()=>{var e,r;aJ(t,"aria-label",am(J).verificationRequired),aJ(i,"src",am(ee).challenge.codeChallenge.image),aJ(a,"minlength",am(ee).challenge.codeChallenge.length||1),aJ(a,"maxlength",am(ee).challenge.codeChallenge.length),aJ(a,"placeholder",am(J).enterCode),aJ(a,"aria-label",am(ef)===os.LOADING?am(J).loading:am(ef)===os.PLAYING?"":am(J).enterCodeAria),aJ(a,"aria-live",am(ef)?"assertive":"polite"),aJ(a,"aria-busy",am(ef)===os.LOADING),a.disabled=am(ep),aJ(u,"aria-label",am(J).reload),aJ(u,"title",am(J).reload),u.disabled=am(ep),d.disabled=am(ep),aJ(d,"aria-label",am(J).verify),(r="object"==typeof(e=` ${am(J).verify??""}`)?e+"":e)!==(h.__t??=h.nodeValue)&&(h.__t=r,h.nodeValue=r+"")}),aR("submit",r,eD,!0),aV(e,t)};aH(ty,e=>{am(ee)?.challenge.codeChallenge&&e(tb)}),ih(ta);var t_=iE(ta,2),tw=e=>{var t=oE(),r=iE(iw(t),2),i=e=>{var t=ow();aW(iw(t),()=>am(J).expired),ih(t),iN(()=>aJ(t,"title",am(eu))),aV(e,t)},a=e=>{var t=ox();aW(iw(t),()=>am(J).error),ih(t),iN(()=>aJ(t,"title",am(eu))),aV(e,t)};aH(r,e=>{am(et)===oo.EXPIRED?e(i):e(a,!1)}),ih(t),aV(e,t)};aH(t_,e=>{(am(eu)||am(et)===oo.EXPIRED)&&e(tw)});var tx=iE(t_,2),tE=e=>{var t=oS(),r=iw(t);aW(iw(r),()=>am(J).footer),ih(r),ih(t),aV(e,t)};aH(tx,e=>{am(J).footer&&(!0!==E()||am(z))&&e(tE)});var tS=iE(tx,2),tk=e=>{var t=ok();a0(t,e=>aE(er,e),()=>am(er)),aV(e,t)};aH(tS,e=>{b()&&e(tk)}),ih(ti),a0(ti,e=>aE(en,e),()=>am(en)),iN(e=>{aJ(ti,"data-state",am(et)),aJ(ti,"data-floating",b()),aJ(ti,"data-overlay",P()),r=function(e,t,r,i,a,o){var s=e.__className;if(iu||s!==r||void 0===s){var l=function(e,t,r){var i=""+e;if(r){for(var a in r)if(r[a])i=i?i+" "+a:a;else if(i.length)for(var o=a.length,s=0;(s=i.indexOf(a,s))>=0;){var l=s+o;(0===s||aG.includes(i[s-1]))&&(l===i.length||aG.includes(i[l]))?i=(0===s?"":i.substring(0,s))+i.substring(l+1):s=l}}return""===i?null:i}(r,0,o);iu&&l===e.getAttribute("class")||(null==l?e.removeAttribute("class"):e.className=l),e.__className=r}else if(o&&a!==o)for(var c in o){var u=!!o[c];(null==a||!!a[c]!==u)&&e.classList.toggle(c,u)}return o}(to,0,"altcha-checkbox",0,r,e),aJ(tc,"id",am(K)),tc.required="onsubmit"!==s()&&(!b()||"off"!==s()),aJ(tu,"for",am(K))},[()=>({"altcha-checkbox-verifying":am(et)===oo.VERIFYING})]),aR("invalid",tc,eN),function(e,t,r=t){(function(e,t,r,i=r){e.addEventListener(t,()=>aI(r));let a=e.__on_r;a?e.__on_r=()=>{a(),i(!0)}:e.__on_r=()=>i(!0),aA()})(e,"change",t=>{r(t?e.defaultChecked:e.checked)}),(iu&&e.defaultChecked!==e.checked||null==av(t))&&r(e.checked),iM(()=>{e.checked=!!t()})}(tc,()=>am(Q),e=>aE(Q,e)),aV(e,tn);var t$=a$({clarify:eJ,configure:eK,getConfiguration:eX,getFloatingAnchor:eQ,getPlugin:function(e){return eh.find(t=>t.constructor.pluginName===e)},getState:e0,hide:e1,repositionFloating:e2,reset:e4,setFloatingAnchor:e5,setState:e3,show:e7,verify:e6,get auto(){return s()},set auto(n){s(n),ah()},get blockspam(){return l()},set blockspam(n){l(n),ah()},get challengeurl(){return c()},set challengeurl(n){c(n),ah()},get challengejson(){return u()},set challengejson(n){u(n),ah()},get credentials(){return d()},set credentials(n){d(n),ah()},get customfetch(){return f()},set customfetch(n){f(n),ah()},get debug(){return p()},set debug(n=!1){p(n),ah()},get delay(){return h()},set delay(n=0){h(n),ah()},get disableautofocus(){return g()},set disableautofocus(n=!1){g(n),ah()},get refetchonexpire(){return m()},set refetchonexpire(n=!0){m(n),ah()},get disablerefetchonexpire(){return v()},set disablerefetchonexpire(n=!m){v(n),ah()},get expire(){return y()},set expire(n){y(n),ah()},get floating(){return b()},set floating(n){b(n),ah()},get floatinganchor(){return _()},set floatinganchor(n){_(n),ah()},get floatingoffset(){return w()},set floatingoffset(n){w(n),ah()},get floatingpersist(){return x()},set floatingpersist(n=!1){x(n),ah()},get hidefooter(){return E()},set hidefooter(n=!1){E(n),ah()},get hidelogo(){return S()},set hidelogo(n=!1){S(n),ah()},get id(){return $()},set id(n){$(n),ah()},get language(){return C()},set language(n){C(n),ah()},get name(){return L()},set name(n="altcha"){L(n),ah()},get maxnumber(){return A()},set maxnumber(n=1e6){A(n),ah()},get mockerror(){return I()},set mockerror(n=!1){I(n),ah()},get obfuscated(){return D()},set obfuscated(n){D(n),ah()},get overlay(){return P()},set overlay(n){P(n),ah()},get overlaycontent(){return R()},set overlaycontent(n){R(n),ah()},get plugins(){return T()},set plugins(n){T(n),ah()},get sentinel(){return O()},set sentinel(n){O(n),ah()},get spamfilter(){return M()},set spamfilter(n=!1){M(n),ah()},get strings(){return N()},set strings(n){N(n),ah()},get test(){return j()},set test(n=!1){j(n),ah()},get verifyurl(){return F()},set verifyurl(n){F(n),ah()},get workers(){return V()},set workers(n=Math.min(16,navigator.hardwareConcurrency||8)){V(n),ah()},get workerurl(){return U()},set workerurl(n){U(n),ah()}});return a(),t$},_={blockspam:{type:"Boolean"},debug:{type:"Boolean"},delay:{type:"Number"},disableautofocus:{type:"Boolean"},disablerefetchonexpire:{type:"Boolean"},expire:{type:"Number"},floatingoffset:{type:"Number"},hidefooter:{type:"Boolean"},hidelogo:{type:"Boolean"},maxnumber:{type:"Number"},mockerror:{type:"Boolean"},refetchonexpire:{type:"Boolean"},test:{type:"Boolean"},workers:{type:"Number"},auto:{},challengeurl:{},challengejson:{},credentials:{},customfetch:{},floating:{},floatinganchor:{},floatingpersist:{},id:{},language:{},name:{},obfuscated:{},overlay:{},overlaycontent:{},plugins:{},sentinel:{},spamfilter:{},strings:{},verifyurl:{},workerurl:{}},w=["default"],m=class extends p{constructor(){super(b,w,!1),this.$$p_d=_}static get observedAttributes(){return r3(_).map(e=>(_[e].attribute||e).toLowerCase())}},r3(_).forEach(e=>{r7(m.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(t){t=oe(e,t,_),this.$$d[e]=t;var r=this.$$c;r&&(r6(r,e)?.get?r[e]=t:r.$set({[e]:t}))}})}),["clarify","configure","getConfiguration","getFloatingAnchor","getPlugin","getState","hide","repositionFloating","reset","setFloatingAnchor","setState","show","verify"].forEach(e=>{r7(m.prototype,e,{get(){return this.$$c?.[e]}})}),b.element=m,m));let oC='@keyframes overlay-slidein{to{opacity:1;top:50%}}@keyframes altcha-spinner{to{transform:rotate(360deg)}}.altcha{background:var(--altcha-color-base, transparent);border:var(--altcha-border-width, 1px) solid var(--altcha-color-border, #a0a0a0);border-radius:var(--altcha-border-radius, 3px);color:var(--altcha-color-text, currentColor);display:flex;flex-direction:column;max-width:var(--altcha-max-width, 260px);position:relative}.altcha:focus-within{border-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating]{background:var(--altcha-color-base, white);display:none;filter:drop-shadow(3px 3px 6px rgba(0,0,0,.2));left:-100%;position:fixed;top:-100%;width:var(--altcha-max-width, 260px);z-index:999999}.altcha[data-floating=top] .altcha-anchor-arrow{border-bottom-color:transparent;border-top-color:var(--altcha-color-border, #a0a0a0);bottom:-12px;top:auto}.altcha[data-floating=bottom]:focus-within::after{border-bottom-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating=top]:focus-within::after{border-top-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating]:not([data-state=unverified]){display:block}.altcha-anchor-arrow{border:6px solid transparent;border-bottom-color:var(--altcha-color-border, #a0a0a0);content:"";height:0;left:12px;position:absolute;top:-12px;width:0}.altcha-main{align-items:center;display:flex;gap:.4rem;padding:.7rem;position:relative}.altcha-code-challenge{background:var(--altcha-color-base, white);border:1px solid var(--altcha-color-border-focus, currentColor);border-radius:var(--altcha-border-radius, 3px);filter:drop-shadow(3px 3px 6px rgba(0,0,0,.2));padding:.5rem;position:absolute;top:2.5rem;z-index:9999999}.altcha-code-challenge>form{display:flex;flex-direction:column;gap:.5rem}.altcha-code-challenge-input{border:1px solid currentColor;border-radius:3px;box-sizing:border-box;outline:0;font-size:16px;padding:.35rem;width:220px}.altcha-code-challenge-input:focus{outline:2px solid color-mix(in srgb,var(--altcha-color-active, #1D1DC9) 20%,transparent)}.altcha-code-challenge-input:disabled{opacity:.7}.altcha-code-challenge-image{background-color:#fff;border:1px solid currentColor;border-radius:3px;box-sizing:border-box;object-fit:contain;height:50px;width:220px}.altcha-code-challenge-audio,.altcha-code-challenge-reload{background:color-mix(in srgb,var(--altcha-color-text, currentColor) 10%,transparent);border:0;border-radius:3px;color:var(--altcha-color-text, currentColor);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:.35rem}.altcha-code-challenge-audio:disabled,.altcha-code-challenge-reload:disabled,.altcha-code-challenge-verify:disabled{opacity:.7;pointer-events:none}.altcha-code-challenge-audio>*,.altcha-code-challenge-reload>*{height:20px;width:20px}.altcha-code-challenge-buttons{display:flex;justify-content:space-between}.altcha-code-challenge-buttons-left{display:flex;gap:.25rem}.altcha-code-challenge-verify{align-items:center;background:var(--altcha-color-active, #1D1DC9);border:0;border-radius:3px;color:#fff;cursor:pointer;display:flex;gap:.5rem;font-size:100%;padding:.35rem 1rem}.altcha-code-challenge-arrow{border:6px solid transparent;border-bottom-color:var(--altcha-color-border, currentColor);content:"";height:0;left:.15rem;position:absolute;top:-12px;width:0}.altcha[data-floating=top] .altcha-code-challenge{top:-150px}.altcha[data-floating=top] .altcha-code-challenge-arrow{border-bottom-color:transparent;border-top-color:var(--altcha-color-border, currentColor);bottom:-12px;top:auto}.altcha-label{cursor:pointer;flex-grow:1}.altcha-logo{color:currentColor!important;opacity:.7}.altcha-footer:hover,.altcha-logo:hover{opacity:1}.altcha-error{color:var(--altcha-color-error-text, #f23939);display:flex;font-size:.85rem;gap:.3rem;padding:0 .7rem .7rem}.altcha-footer{align-items:center;background-color:var(--altcha-color-footer-bg, transparent);display:flex;font-size:.75rem;opacity:.7;justify-content:end;padding:.2rem .7rem}.altcha-footer a{color:currentColor}.altcha-checkbox{display:flex;align-items:center;justify-content:center;height:24px;position:relative;width:24px}.altcha-checkbox .altcha-spinner{bottom:0;left:0;position:absolute;right:0;top:0}.altcha-checkbox input{width:18px;height:18px;margin:0}.altcha-checkbox-verifying input{appearance:none;opacity:0;pointer-events:none}.altcha-spinner{animation:altcha-spinner .75s infinite linear;transform-origin:center}.altcha-overlay{--altcha-color-base:#fff;--altcha-color-text:#000;animation:overlay-slidein .5s forwards;display:flex;flex-direction:column;gap:.5rem;left:50%;width:260px;opacity:0;position:fixed;top:45%;transform:translate(-50%,-50%)}.altcha-overlay-backdrop{background:rgba(0,0,0,.5);bottom:0;display:none;left:0;position:fixed;right:0;top:0;z-index:99999999}.altcha-overlay-close-button{align-self:flex-end;background:0 0;border:0;padding:.25rem;cursor:pointer;color:currentColor;font-size:130%;line-height:1;opacity:.7}@media (max-height:450px){.altcha-overlay{top:10%!important;transform:translate(-50%,0)}}';function oL(e,t="__altcha-css"){if(!document.getElementById(t)){let r=document.createElement("style");r.id=t,r.textContent=e,document.head.appendChild(r)}}function oA(e,{jumpCallback:t,transformFormValues:r,onUFChange:i,onCityChange:a,onDistrictChange:o,beforeSubmit:s,afterSubmit:l,getDefaultUF:c,getDefaultCity:u,getGoogleEventName:d,getFacebookEventName:f,getGoogleAdsEvent:p}={}){!function(e){let t=document.createElement("altcha-widget");for(let[r,i]of(e.captchaWidget=t,Object.entries({auto:"off",challengeurl:`${rA}/api/v2/forms/challenge`,name:"captchaVal"})))t.setAttribute(r,i);t.style.display="none",e.after(t),e.addEventListener("focusin",()=>{"unverified"===t.getState()&&t.verify()}),t.addEventListener("statechange",t=>{"verified"===t.detail.state&&(e.captchaVal=t.detail.payload,e.submitPending&&e.requestSubmit())})}(e),function(e,{getDefaultUF:t,getDefaultCity:r,onUFChange:i,onCityChange:a,onDistrictChange:o}={}){e.querySelectorAll('[data-evag="phone"]').forEach(e=>{new ec(e,{blocks:[0,2,9],delimiters:["(",") "],numericOnly:!0})}),e.querySelectorAll('[data-evag="date"]').forEach(e=>{new ec(e,{blocks:[2,2,4],delimiter:"/",numericOnly:!0})}),e.querySelectorAll('[data-evag="cpf"]').forEach(e=>{new ec(e,{blocks:[3,3,3,2],delimiters:[".",".","-"],numericOnly:!0})}),e.querySelectorAll('[data-evag="cnpj"]').forEach(e=>{new ec(e,{blocks:[2,3,3,4,2],delimiters:[".",".","/","-"],numericOnly:!0})}),e.querySelectorAll('[data-evag="tituloEleitor"]').forEach(e=>{new ec(e,{blocks:[4,4,4],delimiter:" ",numericOnly:!0})}),e.querySelectorAll('[data-evag="valor"]').forEach(e=>{new ec(e,{numeral:!0,numeralDecimalMark:",",delimiter:".",prefix:"R$ "})}),e.querySelectorAll('[data-evag="cep"], [name="endCEP"]').forEach(e=>{new ec(e,{blocks:[5,3],delimiter:"-",numericOnly:!0}),"endCEP"===e.getAttribute("name")&&e.addEventListener("input",rU)}),e.querySelectorAll('[name="uf"]').forEach(a=>{if(!a.options.length){let e=new Option("UF");for(let t of(e.disabled=!0,e.selected=!0,a.add(e),rR))a.add(new Option(t))}let o=a.dataset.defaultValue??(t?t():eu("form.defaultLocation.uf")),s=r?r():eu("form.defaultLocation.city"),l=t=>{i&&i(t,e),rq(t,o,s)};a.addEventListener("change",l),setTimeout(()=>{o?rj(a,o):l({target:a})},500)}),e.querySelectorAll('[name="city"]').forEach(t=>{t.addEventListener("change",t=>{a&&a(t,e),rB(t)})}),o&&e.querySelectorAll('[name="district"]').forEach(t=>{o({target:t},e),t.addEventListener("change",t=>{o(t,e)})})}(e,{getDefaultUF:c,getDefaultCity:u,onUFChange:i,onCityChange:a,onDistrictChange:o}),e.addEventListener("submit",i=>{rF(e),s&&s(e),rY(e,{transformFormValues:r,event:i,getFacebookEventName:f,getGoogleEventName:d,getGoogleAdsEvent:p,afterSubmit:l,jumpCallback:t})}),function(e){let t=e.querySelector('button[type="submit"]');t&&t.addEventListener("click",t=>{if(e.fieldsWithError)for(let t of e.fieldsWithError)t.setCustomValidity("");e.fieldsWithError=null},!0)}(e)}function oI(e={}){document.querySelectorAll('[data-evag="form"]').forEach(t=>{oA(t,e)})}globalThis.altchaCreateWorker=e=>e?new Worker(new URL(e)):new rX,oL(oC),oL(oC);var oD={};function oP(e){return Intl?new Intl.NumberFormat("pt-BR").format(e):e}function oR(e){let t=e.dataset.channel;if(!t)throw Error("no data-channel in signatures container");let r=e.dataset.message?e.dataset.message:"$atual pessoas já assinaram. Ajude-nos a chegar em $meta!",i=e.dataset.color?e.dataset.color:"#000";rD(t).then(t=>{void 0!==t&&function(e,t,r,i){let a=0,o=function(e){if(e<100)return 100;for(let t=2;;t++)if(e<10**t){let r=10**(t-1);return Math.floor((e+r)/r)*r}}(t),s=document.createElement("div");s.classList.add("evag-signatures-bar"),s.style.borderColor=i;let l=document.createElement("div");l.classList.add("evag-signatures-current"),l.style.background=i;let c=document.createElement("div");c.classList.add("evag-signatures-text"),c.style.color=i,s.appendChild(l),e.appendChild(s),e.appendChild(c),window.setTimeout(function e(){let i=Math.floor(a*t/30),s=i/o;l.style.width=`${100*s}%`,c.innerHTML=r.replaceAll("$atual",oP(i)).replaceAll("$meta",oP(o)),30!==a&&(a++,window.setTimeout(e,30))},0)}(e,t,r,i)})}function oT(){document.querySelectorAll('[data-evag="signatures"]').forEach(oR)}function oO(e={}){oI(e),oT()}y(oD,"setup",()=>oR),y(oD,"setupAll",()=>oT),v(et,en);var oM={};y(oM,"search",()=>oj),y(oM,"setupMenuItem",()=>oF),y(oM,"setupSearchButton",()=>oV),y(oM,"setupInputSearch",()=>oU);let oN=e=>e.trim(),oj=(e,t)=>{if(e&&e.length>0){let r=oN(e);H(r),t(encodeURI(r))}},oF=e=>{e.addEventListener("click",()=>{let t=e;for(;t.hasChildNodes()&&t.firstChild.tagName;)t=t.firstChild;q(t.innerHTML.trim())})},oV=(e,t,r)=>{e.addEventListener("click",e=>{let i=t.value.trim();i.length>0&&oj(i,r)})},oU=(e,t)=>{e.addEventListener("keydown",e=>{if(!e.isComposing&&229!==e.keyCode&&13===e.keyCode){let r=e.target.value.trim();r.length>0&&oj(r,t)}})};window.ec={forms:et,signatures:oD,snackbar:rH,menu:oM,location:ed,tracking:L,copyright:X}})();