/*! For license information please see desktop.bundle.js.LICENSE.txt */
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3ca34148-ed00-4a67-9408-b1b5774b1b65",e._sentryDebugIdIdentifier="sentry-dbid-3ca34148-ed00-4a67-9408-b1b5774b1b65")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"5ef4a19"},function(){var e,t,n={341:function(e,t,n){"use strict";function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function o(){return"npm"}n.d(t,{Z:function(){return r},e:function(){return o}})},284:function(e,t,n){"use strict";n.d(t,{fj:function(){return i},wD:function(){return o}});var r=n(341);function o(){return!(0,r.Z)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function i(e,t){return e.require(t)}e=n.hmd(e)},297:function(e,t,n){"use strict";n.d(t,{lu:function(){return c},zf:function(){return u}});var r=n(284),o=n(722);e=n.hmd(e);const i=(0,o.VZ)(),s={nowSeconds:()=>Date.now()/1e3},a=(0,r.wD)()?function(){try{return(0,r.fj)(e,"perf_hooks").performance}catch(e){return}}():function(){const{performance:e}=i;if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),l=void 0===a?s:{nowSeconds:()=>(a.timeOrigin+a.now())/1e3},c=s.nowSeconds.bind(s),u=l.nowSeconds.bind(l);let p;(()=>{const{performance:e}=i;if(!e||!e.now)return void(p="none");const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=o(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,o={};((t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})})(o,{Iti:()=>b,default:()=>_});var i=[["af","93"],["al","355"],["dz","213"],["as","1",5,["684"]],["ad","376"],["ao","244"],["ai","1",6,["264"]],["ag","1",7,["268"]],["ar","54"],["am","374"],["aw","297"],["ac","247"],["au","61",0],["at","43"],["az","994"],["bs","1",8,["242"]],["bh","973"],["bd","880"],["bb","1",9,["246"]],["by","375"],["be","32"],["bz","501"],["bj","229"],["bm","1",10,["441"]],["bt","975"],["bo","591"],["ba","387"],["bw","267"],["br","55"],["io","246"],["vg","1",11,["284"]],["bn","673"],["bg","359"],["bf","226"],["bi","257"],["kh","855"],["cm","237"],["ca","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","879","902","905"]],["cv","238"],["bq","599",1,["3","4","7"]],["ky","1",12,["345"]],["cf","236"],["td","235"],["cl","56"],["cn","86"],["cx","61",2,["89164"]],["cc","61",1,["89162"]],["co","57"],["km","269"],["cg","242"],["cd","243"],["ck","682"],["cr","506"],["ci","225"],["hr","385"],["cu","53"],["cw","599",0],["cy","357"],["cz","420"],["dk","45"],["dj","253"],["dm","1",13,["767"]],["do","1",2,["809","829","849"]],["ec","593"],["eg","20"],["sv","503"],["gq","240"],["er","291"],["ee","372"],["sz","268"],["et","251"],["fk","500"],["fo","298"],["fj","679"],["fi","358",0],["fr","33"],["gf","594"],["pf","689"],["ga","241"],["gm","220"],["ge","995"],["de","49"],["gh","233"],["gi","350"],["gr","30"],["gl","299"],["gd","1",14,["473"]],["gp","590",0],["gu","1",15,["671"]],["gt","502"],["gg","44",1,["1481","7781","7839","7911"]],["gn","224"],["gw","245"],["gy","592"],["ht","509"],["hn","504"],["hk","852"],["hu","36"],["is","354"],["in","91"],["id","62"],["ir","98"],["iq","964"],["ie","353"],["im","44",2,["1624","74576","7524","7924","7624"]],["il","972"],["it","39",0],["jm","1",4,["876","658"]],["jp","81"],["je","44",3,["1534","7509","7700","7797","7829","7937"]],["jo","962"],["kz","7",1,["33","7"]],["ke","254"],["ki","686"],["xk","383"],["kw","965"],["kg","996"],["la","856"],["lv","371"],["lb","961"],["ls","266"],["lr","231"],["ly","218"],["li","423"],["lt","370"],["lu","352"],["mo","853"],["mg","261"],["mw","265"],["my","60"],["mv","960"],["ml","223"],["mt","356"],["mh","692"],["mq","596"],["mr","222"],["mu","230"],["yt","262",1,["269","639"]],["mx","52"],["fm","691"],["md","373"],["mc","377"],["mn","976"],["me","382"],["ms","1",16,["664"]],["ma","212",0],["mz","258"],["mm","95"],["na","264"],["nr","674"],["np","977"],["nl","31"],["nc","687"],["nz","64"],["ni","505"],["ne","227"],["ng","234"],["nu","683"],["nf","672"],["kp","850"],["mk","389"],["mp","1",17,["670"]],["no","47",0],["om","968"],["pk","92"],["pw","680"],["ps","970"],["pa","507"],["pg","675"],["py","595"],["pe","51"],["ph","63"],["pl","48"],["pt","351"],["pr","1",3,["787","939"]],["qa","974"],["re","262",0],["ro","40"],["ru","7",0],["rw","250"],["ws","685"],["sm","378"],["st","239"],["sa","966"],["sn","221"],["rs","381"],["sc","248"],["sl","232"],["sg","65"],["sx","1",21,["721"]],["sk","421"],["si","386"],["sb","677"],["so","252"],["za","27"],["kr","82"],["ss","211"],["es","34"],["lk","94"],["bl","590",1],["sh","290"],["kn","1",18,["869"]],["lc","1",19,["758"]],["mf","590",2],["pm","508"],["vc","1",20,["784"]],["sd","249"],["sr","597"],["sj","47",1,["79"]],["se","46"],["ch","41"],["sy","963"],["tw","886"],["tj","992"],["tz","255"],["th","66"],["tl","670"],["tg","228"],["tk","690"],["to","676"],["tt","1",22,["868"]],["tn","216"],["tr","90"],["tm","993"],["tc","1",23,["649"]],["tv","688"],["ug","256"],["ua","380"],["ae","971"],["gb","44",0],["us","1",0],["uy","598"],["vi","1",24,["340"]],["uz","998"],["vu","678"],["va","39",1,["06698"]],["ve","58"],["vn","84"],["wf","681"],["eh","212",1,["5288","5289"]],["ye","967"],["zm","260"],["zw","263"],["ax","358",1,["18"]]],s=[];for(let e=0;ee.replace(/\D/g,""),h=(e="")=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase(),f=e=>{const t=d(e);if("1"===t.charAt(0)){const e=t.substr(1,3);return-1!==p.indexOf(e)}return!1},g=(e,t)=>e.namet.name?1:0,m=(e,t,n)=>{const r=document.createElement(e);return t&&Object.entries(t).forEach((([e,t])=>r.setAttribute(e,t))),n&&n.appendChild(r),r},v=e=>{const{instances:t}=window.intlTelInputGlobals;Object.values(t).forEach((t=>t[e]()))},b=class{id;promise;telInput;activeItem;highlightedItem;options;hadInitialPlaceholder;isRTL;selectedCountryData;countries;dialCodeMaxLen;dialCodeToIso2Map;dialCodes;preferredCountries;countryContainer;selectedCountry;selectedCountryInner;selectedCountryA11yText;selectedDialCode;dropdownArrow;dropdownContent;searchInput;searchResultsA11yText;countryList;dropdown;hiddenInput;hiddenInputCountry;maxCoreNumberLength;defaultCountry;_handleHiddenInputSubmit;_handleLabelClick;_handleClickSelectedCountry;_handleCountryContainerKeydown;_handleInputEvent;_handleKeydownEvent;_handleWindowScroll;_handleMouseoverCountryList;_handleClickCountryList;_handleClickOffToClose;_handleKeydownOnDropdown;_handleSearchChange;resolveAutoCountryPromise;rejectAutoCountryPromise;resolveUtilsScriptPromise;rejectUtilsScriptPromise;constructor(e,t={}){this.id=c++,this.telInput=e,this.activeItem=null,this.highlightedItem=null,this.options=Object.assign({},u,t),this.hadInitialPlaceholder=Boolean(e.getAttribute("placeholder"))}_init(){this.options.useFullscreenPopup&&(this.options.fixDropdownWidth=!1),this.options.countrySearch&&!this.options.useFullscreenPopup&&(this.options.fixDropdownWidth=!0);const e=this.options.allowDropdown&&!this.options.showSelectedDialCode;!this.options.showFlags&&e&&(this.options.showFlags=!0),this.options.useFullscreenPopup&&!this.options.dropdownContainer&&(this.options.dropdownContainer=document.body),this.isRTL=!!this.telInput.closest("[dir=rtl]"),this.options.i18n={...l,...this.options.i18n};const t=new Promise(((e,t)=>{this.resolveAutoCountryPromise=e,this.rejectAutoCountryPromise=t})),n=new Promise(((e,t)=>{this.resolveUtilsScriptPromise=e,this.rejectUtilsScriptPromise=t}));this.promise=Promise.all([t,n]),this.selectedCountryData={},this._processCountryData(),this._generateMarkup(),this._setInitialState(),this._initListeners(),this._initRequests()}_processCountryData(){this._processAllCountries(),this._processDialCodes(),this._processPreferredCountries(),this._translateCountryNames(),(this.options.onlyCountries.length||this.options.i18n)&&this.countries.sort(g)}_addToDialCodeMap(e,t,n){t.length>this.dialCodeMaxLen&&(this.dialCodeMaxLen=t.length),this.dialCodeToIso2Map.hasOwnProperty(t)||(this.dialCodeToIso2Map[t]=[]);for(let n=0;ne.toLowerCase()));this.countries=a.filter((e=>t.indexOf(e.iso2)>-1))}else if(t.length){const e=t.map((e=>e.toLowerCase()));this.countries=a.filter((t=>-1===e.indexOf(t.iso2)))}else this.countries=a}_translateCountryNames(){for(let e=0;e
`),a+=`${o.name} `,a+=`+${o.dialCode} `,s.insertAdjacentHTML("beforeend",a)}}_setInitialState(e=!1){const t=this.telInput.getAttribute("value"),n=this.telInput.value,r=!t||"+"!==t.charAt(0)||n&&"+"===n.charAt(0)?n:t,o=this._getDialCode(r),i=f(r),{initialCountry:s}=this.options;if(o&&!i)this._updateCountryFromNumber(r);else if("auto"!==s||e){const e=s?s.toLowerCase():"";e&&this._getCountryData(e,!0)?this._setCountry(e):o&&i?this._setCountry("us"):this._setCountry()}r&&this._updateValFromNumber(r)}_initListeners(){this._initTelInputListeners(),this.options.allowDropdown&&this._initDropdownListeners(),(this.hiddenInput||this.hiddenInputCountry)&&this.telInput.form&&this._initHiddenInputListener()}_initHiddenInputListener(){this._handleHiddenInputSubmit=()=>{this.hiddenInput&&(this.hiddenInput.value=this.getNumber()),this.hiddenInputCountry&&(this.hiddenInputCountry.value=this.getSelectedCountryData().iso2||"")},this.telInput.form?.addEventListener("submit",this._handleHiddenInputSubmit)}_initDropdownListeners(){this._handleLabelClick=e=>{this.dropdownContent.classList.contains("iti__hide")?this.telInput.focus():e.preventDefault()};const e=this.telInput.closest("label");e&&e.addEventListener("click",this._handleLabelClick),this._handleClickSelectedCountry=()=>{!this.dropdownContent.classList.contains("iti__hide")||this.telInput.disabled||this.telInput.readOnly||this._openDropdown()},this.selectedCountry.addEventListener("click",this._handleClickSelectedCountry),this._handleCountryContainerKeydown=e=>{this.dropdownContent.classList.contains("iti__hide")&&["ArrowUp","ArrowDown"," ","Enter"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),this._openDropdown()),"Tab"===e.key&&this._closeDropdown()},this.countryContainer.addEventListener("keydown",this._handleCountryContainerKeydown)}_initRequests(){this.options.utilsScript&&!window.intlTelInputUtils?window.intlTelInputGlobals.documentReady()?window.intlTelInputGlobals.loadUtils(this.options.utilsScript):window.addEventListener("load",(()=>{window.intlTelInputGlobals.loadUtils(this.options.utilsScript)})):this.resolveUtilsScriptPromise(),"auto"!==this.options.initialCountry||this.selectedCountryData.iso2?this.resolveAutoCountryPromise():this._loadAutoCountry()}_loadAutoCountry(){window.intlTelInputGlobals.autoCountry?this.handleAutoCountry():window.intlTelInputGlobals.startedLoadingAutoCountry||(window.intlTelInputGlobals.startedLoadingAutoCountry=!0,"function"==typeof this.options.geoIpLookup&&this.options.geoIpLookup(((e="")=>{const t=e.toLowerCase();t&&this._getCountryData(t,!0)?(window.intlTelInputGlobals.autoCountry=t,setTimeout((()=>v("handleAutoCountry")))):(this._setInitialState(!0),v("rejectAutoCountryPromise"))}),(()=>{this._setInitialState(!0),v("rejectAutoCountryPromise")})))}_initTelInputListeners(){const{strictMode:e,formatAsYouType:t}=this.options;let n=!1;this._handleInputEvent=r=>{this._updateCountryFromNumber(this.telInput.value)&&this._triggerCountryChange();const o=r&&r.data&&/[^+0-9]/.test(r.data),i=r&&"insertFromPaste"===r.inputType&&this.telInput.value;if(o||i&&!e?n=!0:/[^+0-9]/.test(this.telInput.value)||(n=!1),t&&!n){const e=this.telInput.selectionStart||0,t=this.telInput.value.substring(0,e).replace(/[^+0-9]/g,"").length,n=r&&"deleteContentForward"===r.inputType,o=this._formatNumberAsYouType(),i=((e,t,n,r)=>{if(0===n&&!r)return 0;let o=0;for(let n=0;n{if(e.key&&1===e.key.length&&!e.altKey&&!e.ctrlKey&&!e.metaKey){const t=0===this.telInput.selectionStart&&"+"===e.key,n=/^[0-9]$/.test(e.key),r=t||n,o=this._getFullNumber(),i=window.intlTelInputUtils.getCoreNumber(o,this.selectedCountryData.iso2),s=this.maxCoreNumberLength&&i.length>=this.maxCoreNumberLength;r&&!s||e.preventDefault()}},this.telInput.addEventListener("keydown",this._handleKeydownEvent))}_cap(e){const t=parseInt(this.telInput.getAttribute("maxlength")||"",10);return t&&e.length>t?e.substr(0,t):e}_trigger(e){const t=new Event(e,{bubbles:!0,cancelable:!0});this.telInput.dispatchEvent(t)}_openDropdown(){const{fixDropdownWidth:e,countrySearch:t}=this.options;if(e&&(this.dropdownContent.style.width=`${this.telInput.offsetWidth}px`),this.dropdownContent.classList.remove("iti__hide"),this.selectedCountry.setAttribute("aria-expanded","true"),this._setDropdownPosition(),this.activeItem&&!t)this._highlightListItem(this.activeItem,!1),this._scrollTo(this.activeItem,!0);else{const e=this.countryList.firstElementChild;e&&(this._highlightListItem(e,!1),this.countryList.scrollTop=0),t&&this.searchInput.focus()}this._bindDropdownListeners(),this.dropdownArrow.classList.add("iti__arrow--up"),this._trigger("open:countrydropdown")}_setDropdownPosition(){if(this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.dropdown),!this.options.useFullscreenPopup){const r=this.telInput.getBoundingClientRect(),o=document.documentElement.scrollTop,i=r.top+o,s=this.telInput.offsetHeight,a=this.dropdownContent.offsetHeight,l=i+s+ao,u=!this.options.countrySearch&&!l&&c;if(e=this.dropdownContent,t="iti__dropdown-content--dropup",(n=u)&&!e.classList.contains(t)?e.classList.add(t):!n&&e.classList.contains(t)&&e.classList.remove(t),this.options.dropdownContainer){const e=u?0:s;this.dropdown.style.top=`${r.top+e}px`,this.dropdown.style.left=`${r.left}px`,this._handleWindowScroll=()=>this._closeDropdown(),window.addEventListener("scroll",this._handleWindowScroll)}}var e,t,n}_bindDropdownListeners(){this._handleMouseoverCountryList=e=>{const t=e.target?.closest(".iti__country");t&&this._highlightListItem(t,!1)},this.countryList.addEventListener("mouseover",this._handleMouseoverCountryList),this._handleClickCountryList=e=>{const t=e.target?.closest(".iti__country");t&&this._selectListItem(t)},this.countryList.addEventListener("click",this._handleClickCountryList);let e=!0;this._handleClickOffToClose=()=>{e||this._closeDropdown(),e=!1},document.documentElement.addEventListener("click",this._handleClickOffToClose);let t="",n=null;if(this._handleKeydownOnDropdown=e=>{["ArrowUp","ArrowDown","Enter","Escape"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),"ArrowUp"===e.key||"ArrowDown"===e.key?this._handleUpDownKey(e.key):"Enter"===e.key?this._handleEnterKey():"Escape"===e.key&&this._closeDropdown()),!this.options.countrySearch&&/^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(e.key)&&(e.stopPropagation(),n&&clearTimeout(n),t+=e.key.toLowerCase(),this._searchForCountry(t),n=setTimeout((()=>{t=""}),1e3))},document.addEventListener("keydown",this._handleKeydownOnDropdown),this.options.countrySearch){const e=()=>{const e=this.searchInput.value.trim();e?this._filterCountries(e):this._filterCountries("",!0)};let t=null;this._handleSearchChange=()=>{t&&clearTimeout(t),t=setTimeout((()=>{e(),t=null}),100)},this.searchInput.addEventListener("input",this._handleSearchChange),this.searchInput.addEventListener("click",(e=>e.stopPropagation()))}}_filterCountries(e,t=!1){let n=!0;this.countryList.innerHTML="";const r=h(e);for(let e=0;e1&&(t="ArrowUp"===e?this.countryList.lastElementChild:this.countryList.firstElementChild),t){this._scrollTo(t,!1);const e=!this.options.countrySearch;this._highlightListItem(t,e)}}_handleEnterKey(){this.highlightedItem&&this._selectListItem(this.highlightedItem)}_searchForCountry(e){for(let t=0;ts){t&&(u+=p);const e=o-a;n.scrollTop=u-e}}_updateDialCode(e){const t=this.telInput.value,n=`+${e}`;let r;if("+"===t.charAt(0)){const e=this._getDialCode(t);r=e?t.replace(e,n):n,this.telInput.value=r}}_getDialCode(e,t){let n="";if("+"===e.charAt(0)){let r="";for(let o=0;o"complete"===document.readyState,getCountryData:()=>a,getInstance:t=>{const n=t.getAttribute("data-intl-tel-input-id");return n?e.instances[n]:null},instances:{},loadUtils:e=>window.intlTelInputUtils||window.intlTelInputGlobals.startedLoadingUtilsScript?null:(window.intlTelInputGlobals.startedLoadingUtilsScript=!0,new Promise(((t,n)=>((e,t,n)=>{const r=document.createElement("script");r.onload=()=>{v("handleUtils"),t&&t()},r.onerror=()=>{v("rejectUtilsScriptPromise"),n&&n()},r.className="iti-load-utils",r.async=!0,r.src=e,document.body.appendChild(r)})(e,t,n)))),version:"21.2.8"};window.intlTelInputGlobals=e}var y,_=(e,t)=>{const n=new b(e,t);return n._init(),e.setAttribute("data-intl-tel-input-id",n.id.toString()),window.intlTelInputGlobals.instances[n.id]=n,n};return y=o,((o,i,s,a)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let s of n(i))r.call(o,s)||undefined===s||e(o,s,{get:()=>i[s],enumerable:!(a=t(i,s))||a.enumerable});return o})(e({},"__esModule",{value:!0}),y)})().default,e.exports?e.exports=t():window.intlTelInput=t()},694:function(e,t){var n,r;void 0===(r="function"==typeof(n=function(){"use strict";var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n="boolean"==typeof(new RegExp).sticky;function r(e){return e&&"[object RegExp]"===t.call(e)}function o(e){return e&&"object"==typeof e&&!r(e)&&!Array.isArray(e)}function i(e){return"("+e+")"}function s(e){return e.length?"(?:"+e.map((function(e){return"(?:"+e+")"})).join("|")+")":"(?!)"}function a(e){if("string"==typeof e)return"(?:"+(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+")");if(r(e)){if(e.ignoreCase)throw new Error("RegExp /i flag not allowed");if(e.global)throw new Error("RegExp /g flag is implied");if(e.sticky)throw new Error("RegExp /y flag is implied");if(e.multiline)throw new Error("RegExp /m flag is implied");return e.source}throw new Error("Not a pattern: "+e)}function l(e,t){return e.length>t?e:Array(t-e.length+1).join(" ")+e}function c(t,n){if(o(n)||(n={match:n}),n.include)throw new Error("Matching rules cannot also include states");var i={defaultType:t,lineBreaks:!!n.error||!!n.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var s in n)e.call(n,s)&&(i[s]=n[s]);if("string"==typeof i.type&&t!==i.type)throw new Error("Type transform cannot be a string (type '"+i.type+"' for token '"+t+"')");var a=i.match;return i.match=Array.isArray(a)?a:a?[a]:[],i.match.sort((function(e,t){return r(e)&&r(t)?0:r(t)?-1:r(e)?1:t.length-e.length})),i}function u(e){return Array.isArray(e)?function(e){for(var t=[],n=0;n0)throw new Error("RegExp has capture groups: "+_+"\nUse (?: … ) instead");if(!g.lineBreaks&&_.test("\n"))throw new Error("Rule should declare lineBreaks: "+_);h.push(i(y))}}var w=o&&o.fallback,k=n&&!w?"ym":"gm",E=n||w?"":"|";return!0===u&&(k+="u"),{regexp:new RegExp(s(h)+E,k),groups:d,fast:l,error:o||p}}function h(e,t,n){var r=e&&(e.push||e.next);if(r&&!n[r])throw new Error("Missing state '"+r+"' (in token '"+e.defaultType+"' of state '"+t+"')");if(e&&e.pop&&1!=+e.pop)throw new Error("pop must be 1 (in token '"+e.defaultType+"' of state '"+t+"')")}var f=function(e,t){this.startState=t,this.states=e,this.buffer="",this.stack=[],this.reset()};f.prototype.reset=function(e,t){return this.buffer=e||"",this.index=0,this.line=t?t.line:1,this.col=t?t.col:1,this.queuedToken=t?t.queuedToken:null,this.queuedText=t?t.queuedText:"",this.queuedThrow=t?t.queuedThrow:null,this.setState(t?t.state:this.startState),this.stack=t&&t.stack?t.stack.slice():[],this},f.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedText:this.queuedText,queuedThrow:this.queuedThrow}},f.prototype.setState=function(e){if(e&&this.state!==e){this.state=e;var t=this.states[e];this.groups=t.groups,this.error=t.error,this.re=t.regexp,this.fast=t.fast}},f.prototype.popState=function(){this.setState(this.stack.pop())},f.prototype.pushState=function(e){this.stack.push(this.state),this.setState(e)};var g=n?function(e,t){return e.exec(t)}:function(e,t){var n=e.exec(t);return 0===n[0].length?null:n};function m(){return this.value}if(f.prototype._getGroup=function(e){for(var t=this.groups.length,n=0;n=t.f?o():e.fonts.load(function(e){return S(e)+" "+e.f+"00 300px "+E(e.c)}(t.a),t.h).then((function(e){1<=e.length?r():setTimeout(i,25)}),(function(){o()}))}()})),o=null,i=new Promise((function(e,n){o=setTimeout(n,t.f)}));Promise.race([i,r]).then((function(){o&&(clearTimeout(o),o=null),t.g(t.a)}),(function(){t.j(t.a)}))};var $={D:"serif",C:"sans-serif"},B=null;function j(){if(null===B){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);B=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return B}function M(e,t,n){for(var r in $)if($.hasOwnProperty(r)&&t===e.f[$[r]]&&n===e.f[$[r]])return!0;return!1}function U(e){var t,n=e.g.a.offsetWidth,r=e.h.a.offsetWidth;(t=n===e.f.serif&&r===e.f["sans-serif"])||(t=j()&&M(e,n,r)),t?a()-e.A>=e.w?j()&&M(e,n,r)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?F(e,e.v):F(e,e.B):function(e){setTimeout(s((function(){U(this)}),e),50)}(e):F(e,e.v)}function F(e,t){setTimeout(s((function(){d(this.g.a),d(this.h.a),d(this.j.a),d(this.m.a),t(this.a)}),e),0)}function G(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}P.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=a(),U(this)};var H=null;function W(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&h(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),C(e,"active")):I(e.a))}function Y(e){this.j=e,this.a=new R,this.h=0,this.f=this.g=!0}function z(e,t,n,r,o){var i=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=o||null,a=r||{};if(0===n.length&&i)I(t.a);else{t.f+=n.length,i&&(t.j=i);var l,c=[];for(l=0;l=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=s.call(i,"catchLoc"),c=s.call(i,"finallyLoc");if(l&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&s.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),D(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;D(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},n}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},319:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},799:function(e,t,n){var r=n(48)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.m=n,o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=function(e){return Promise.all(Object.keys(o.f).reduce((function(t,n){return o.f[n](e,t),t}),[]))},o.u=function(e){return"psl-tld-check.js"},o.miniCssF=function(e){},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e={},t="postscript-client:",o.l=function(n,r,i,s){if(e[n])e[n].push(r);else{var a,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),u=0;u-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e}(),function(){var e={97:0,429:0};o.f.j=function(t,n){var r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise((function(n,o){r=e[t]=[n,o]}));n.push(r[2]=i);var s=o.p+o.u(t),a=new Error;o.l(s,(function(n){if(o.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+s+")",a.name="ChunkLoadError",a.type=i,a.request=s,r[1](a)}}),"chunk-"+t,t)}};var t=function(t,n){var r,i,s=n[0],a=n[1],l=n[2],c=0;if(s.some((function(t){return 0!==e[t]}))){for(r in a)o.o(a,r)&&(o.m[r]=a[r]);l&&l(o)}for(t&&t(n);ce.length)&&(t=e.length);for(var n=0,r=Array(t);nnew d("string"==typeof e?e:e+"",void 0,u),f=(e,...t)=>{const n=1===e.length?e[0]:t.reduce(((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+e[r+1]),e[0]);return new d(n,e,u)},g=c?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return h(t)})(e):e;var m;const v=window,b=v.trustedTypes,y=b?b.emptyScript:"",_=v.reactiveElementPolyfillSupport,w={toAttribute(e,t){switch(t){case Boolean:e=e?y:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},k=(e,t)=>t!==e&&(t==t||e==e),E={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:k},O="finalized";class S extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,n)=>{const r=this._$Ep(n,t);void 0!==r&&(this._$Ev.set(r,n),e.push(r))})),e}static createProperty(e,t=E){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const n="symbol"==typeof e?Symbol():"__"+e,r=this.getPropertyDescriptor(e,n,t);void 0!==r&&Object.defineProperty(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(r){const o=this[e];this[t]=r,this.requestUpdate(e,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||E}static finalize(){if(this.hasOwnProperty(O))return!1;this[O]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const n of t)this.createProperty(n,e[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const e of n)t.unshift(g(e))}else void 0!==e&&t.push(g(e));return t}static _$Ep(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,n;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(n=e.hostConnected)||void 0===n||n.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{c?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const n=document.createElement("style"),r=l.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=t.cssText,e.appendChild(n)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(e,t,n=E){var r;const o=this.constructor._$Ep(e,n);if(void 0!==o&&!0===n.reflect){const i=(void 0!==(null===(r=n.converter)||void 0===r?void 0:r.toAttribute)?n.converter:w).toAttribute(t,n.type);this._$El=e,null==i?this.removeAttribute(o):this.setAttribute(o,i),this._$El=null}}_$AK(e,t){var n;const r=this.constructor,o=r._$Ev.get(e);if(void 0!==o&&this._$El!==o){const e=r.getPropertyOptions(o),i="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(n=e.converter)||void 0===n?void 0:n.fromAttribute)?e.converter:w;this._$El=o,this[o]=i.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,n){let r=!0;void 0!==e&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||k)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(n)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}}var x;S[O]=!0,S.elementProperties=new Map,S.elementStyles=[],S.shadowRootOptions={mode:"open"},null==_||_({ReactiveElement:S}),(null!==(m=v.reactiveElementVersions)&&void 0!==m?m:v.reactiveElementVersions=[]).push("1.6.3");const T=window,I=T.trustedTypes,C=I?I.createPolicy("lit-html",{createHTML:e=>e}):void 0,R="$lit$",A=`lit$${(Math.random()+"").slice(9)}$`,D="?"+A,N=`<${D}>`,L=document,P=()=>L.createComment(""),$=e=>null===e||"object"!=typeof e&&"function"!=typeof e,B=Array.isArray,j=e=>B(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]),M="[ \t\n\f\r]",U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,F=/-->/g,G=/>/g,H=RegExp(`>|${M}(?:([^\\s"'>=/]+)(${M}*=${M}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),W=/'/g,Y=/"/g,z=/^(?:script|style|textarea|title)$/i,q=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),V=q(1),Z=q(2),X=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),J=new WeakMap,Q=L.createTreeWalker(L,129,null,!1);function ee(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==C?C.createHTML(t):t}const te=(e,t)=>{const n=e.length-1,r=[];let o,i=2===t?"":"",s=U;for(let t=0;t"===l[0]?(s=null!=o?o:U,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?H:'"'===l[3]?Y:W):s===Y||s===W?s=H:s===F||s===G?s=U:(s=H,o=void 0);const p=s===H&&e[t+1].startsWith("/>")?" ":"";i+=s===U?n+N:c>=0?(r.push(a),n.slice(0,c)+R+n.slice(c)+A+p):n+A+(-2===c?(r.push(void 0),t):p)}return[ee(e,i+(e[n]||">")+(2===t?" ":"")),r]};class ne{constructor({strings:e,_$litType$:t},n){let r;this.parts=[];let o=0,i=0;const s=e.length-1,a=this.parts,[l,c]=te(e,t);if(this.el=ne.createElement(l,n),Q.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(r=Q.nextNode())&&a.length0){r.textContent=I?I.emptyScript:"";for(let n=0;n2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=K}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,n,r){const o=this.strings;let i=!1;if(void 0===o)e=re(this,e,t,0),i=!$(e)||e!==this._$AH&&e!==X,i&&(this._$AH=e);else{const r=e;let s,a;for(e=o[0],s=0;s{var r,o;const i=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:t;let s=i._$litPart$;if(void 0===s){const e=null!==(o=null==n?void 0:n.renderBefore)&&void 0!==o?o:null;i._$litPart$=s=new ie(t.insertBefore(P(),e),e,void 0,null!=n?n:{})}return s._$AI(e),s};var ge,me;class ve extends S{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const n=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=n.firstChild),n}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=fe(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return X}}ve.finalized=!0,ve._$litElement$=!0,null===(ge=globalThis.litElementHydrateSupport)||void 0===ge||ge.call(globalThis,{LitElement:ve});const be=globalThis.litElementPolyfillSupport;null==be||be({LitElement:ve}),(null!==(me=globalThis.litElementVersions)&&void 0!==me?me:globalThis.litElementVersions=[]).push("3.3.3");const ye=e=>null!=e?e:K,_e=e=>(...t)=>({_$litDirective$:e,values:t});class we{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}const ke=_e(class extends we{constructor(e){var t;if(super(e),1!==e.type||"class"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){var n,r;if(void 0===this.it){this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!(null===(n=this.nt)||void 0===n?void 0:n.has(e))&&this.it.add(e);return this.render(t)}const o=e.element.classList;this.it.forEach((e=>{e in t||(o.remove(e),this.it.delete(e))}));for(const e in t){const n=!!t[e];n===this.it.has(e)||(null===(r=this.nt)||void 0===r?void 0:r.has(e))||(n?(o.add(e),this.it.add(e)):(o.remove(e),this.it.delete(e)))}return X}}),Ee="AGE_GATE_INPUT",Oe="BUTTON",Se="BUTTON_GROUP",xe="CLOSE_BUTTON",Te="CONTAINER",Ie="EMAIL_INPUT",Ce="HEADING",Re="IMAGE",Ae="LOGO",De="MONTH_AND_DAY_INPUT",Ne="OTP_INPUT",Le="PHONE_INPUT",Pe="ROOT",$e="ROOT_TEMP",Be="SPIN_TO_WIN",je="TEASER",Me="TEASER_ROOT",Ue="TEXT",Fe="TEXT_INPUT",Ge="OPT_IN_NETWORK_FLOW_A",He="OPT_IN_NETWORK_FLOW_C",We="mobile",Ye="desktop",ze=[We,Ye],qe="ONSITE_PHONE",Ve="PSN_ONSITE_PHONE",Ze={BUTTON:"button"},Xe={HEADING:"heading"},Ke={LABEL:"label"},Je={PARAGRAPH:"paragraph"},Qe={PLACEHOLDER:"placeholder"},et=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ze),Xe),Ke),Je),Qe),tt={BLOCK:"block"},nt={MAIN_POPUP_CONTAINER:"mainPopupContainer"},rt={BUTTON:"button"},ot={CLOSE_TEASER_BUTTON:"closeTeaserButton"},it={GROUP:"group"},st={HEADING:"heading"},at={IMAGE:"image"},lt={INPUT:"input"},ct={LABEL:"label"},ut={LINK:"link"},pt={LOGO:"logo"},dt={PATH:"path"},ht={ROOT_BACKGROUND_IMAGE_DIV:"rootBackgroundImageDiv"},ft={SMALL:"small"},gt={SPIN_TO_WIN_CENTER:"spinToWinCenter"},mt={SPIN_TO_WIN_MAIN_WHEEL:"spinToWinMainWheel"},vt={SPIN_TO_WIN_SECTION_BORDER:"spinToWinSectionBorder"},bt={SVG:"svg"},yt={TEXT:"text"},_t=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},tt),rt),ot),it),st),at),lt),ct),ut),pt),nt),dt),ht),ft),gt),mt),vt),bt),yt),wt={ANIMATE_CSS_DURATION:"animateCssDuration",ANIMATE_CSS_NAME:"animateCssName",BACKGROUND_IMAGE:"backgroundImage",BACKGROUND_OPACITY:"backgroundOpacity",BACKGROUND_POSITION:"backgroundPosition",BACKGROUND_REPEAT:"backgroundRepeat",BACKGROUND_SIZE:"backgroundSize",DROPDOWN_ARROW:"dropdownArrow",FLOATING_LABEL_FONT_SIZE:"floatingLabelFontSize",FLOATING_LABEL_TOP:"floatingLabelTop",FLOATING_LABEL_LEFT:"floatingLabelLeft",JUSTIFY_CONTENT:"justify-content",LAYOUT_DIRECTION:"layoutDirection",LAYOUT_SPACING:"layoutSpacing",PLATFORM_SYNC:"platformSync",ROOT_LAYOUT:"rootLayout",ROOT_BACKGROUND_IMAGE_GRID_COLUMN_WIDTH:"rootBackgroundImageGridColumnWidth",SPIN_TO_WIN_DURATION:"spinToWinDuration",TEASER_CLOSE_BUTTON_POSITION:"teaserCloseButtonPosition",TEASER_IFRAME_INSET:"teaserIframeInset",TEASER_ROTATION:"teaserRotation",TEXT_VARIANT:"textVariant"},kt=Object.assign(Object.assign({},wt),{ALIGN_ITEMS:"alignItems",ALIGN_SELF:"alignSelf",ANIMATION_DELAY:"animationDelay",ANIMATION_ITERATION_COUNT:"animationIterationCount",BACKGROUND_COLOR:"backgroundColor",BLOCK_SIZE:"blockSize",BORDER_COLOR:"borderColor",BORDER_RADIUS:"borderRadius",BORDER_STYLE:"borderStyle",BORDER_WIDTH:"borderWidth",BORDER_TOP_COLOR:"borderTopColor",BORDER_TOP_STYLE:"borderTopStyle",BORDER_TOP_WIDTH:"borderTopWidth",COLOR:"color",DISPLAY:"display",FILL:"fill",FLEX:"flex",FLEX_GROW:"flexGrow",FLEX_WRAP:"flexWrap",FONT_FAMILY:"fontFamily",FONT_SIZE:"fontSize",FONT_STYLE:"fontStyle",FONT_WEIGHT:"fontWeight",GAP:"gap",GRID_AREA:"gridArea",GRID_COLUMN:"gridColumn",HEIGHT:"height",INSET:"inset",LEFT:"left",LETTER_SPACING:"letterSpacing",LINE_HEIGHT:"lineHeight",MARGIN:"margin",MAX_HEIGHT:"maxHeight",MAX_WIDTH:"maxWidth",MIN_HEIGHT:"minHeight",MIN_WIDTH:"minWidth",ORDER:"order",OBJECT_FIT:"objectFit",OVERFLOW:"overflow",OPACITY:"opacity",PADDING:"padding",POSITION:"position",STROKE:"stroke",STROKE_WIDTH:"strokeWidth",TEXT_ALIGN:"textAlign",TEXT_DECORATION:"textDecoration",TEXT_TRANSFORM:"textTransform",TEXT_WRAP:"textWrap",TOP:"top",TRANSFORM:"transform",TRANSFORM_ORIGIN:"transformOrigin",WIDTH:"width",Z_INDEX:"zIndex"}),Et="auto auto 16px 16px",Ot={BORDER:"#000000",INPUT_BG:"#ECECEC",SPIN_TO_WIN_CENTER_BG:"#000000",POPUP_BG:"#FFFFFF",PRIMARY_BUTTON_BG:"#656565",PRIMARY_BUTTON_TEXT:"#FFFFFF",SECONDARY_BUTTON_BG:"#00000000",SECONDARY_BUTTON_TEXT:"#656565",STOPPER:"#8D69F8",TEASER_CLOSE_BUTTON_BG:"rgba(255,255,255, 0.8)",TEXT:"#000000"},St="'Arial', sans-serif",xt={AGE_GATE:"ageGate"},Tt=Object.assign({EMAIL:"email",PHONE:"phone",OTP:"otp"},xt),It="changeLocation",Ct="close",Rt="submitAndRouteToStep",At="Custom",Dt="{terms_of_service}",Nt="{privacy_policy}",Lt="DECORATIVE",Pt="MAIN_POPUP_CONTAINER",$t="LEFT_DECORATIVE",Bt="NONE",jt=2*Math.PI*25,Mt="12.5%",Ut={BOTTOM:"BOTTOM",LEFT:"LEFT",RIGHT:"RIGHT",TOP:"TOP"},Ft="******",Gt=Object.assign(Object.assign({BOUNCE_IN:"bounceIn",BOUNCE_IN_DOWN:"bounceInDown",BOUNCE_IN_LEFT:"bounceInLeft",BOUNCE_IN_RIGHT:"bounceInRight",BOUNCE_IN_UP:"bounceInUp",FADE_IN:"fadeIn",FADE_IN_BOTTOM_LEFT:"fadeInBottomLeft",FADE_IN_BOTTOM_RIGHT:"fadeInBottomRight",FADE_IN_DOWN:"fadeInDown",FADE_IN_DOWN_BIG:"fadeInDownBig",FADE_IN_LEFT:"fadeInLeft",FADE_IN_LEFT_BIG:"fadeInLeftBig",FADE_IN_RIGHT:"fadeInRight",FADE_IN_RIGHT_BIG:"fadeInRightBig",FADE_IN_TOP_LEFT:"fadeInTopLeft",FADE_IN_TOP_RIGHT:"fadeInTopRight",FADE_IN_UP:"fadeInUp",FADE_IN_UP_BIG:"fadeInUpBig",FLIP_IN_X:"flipInX",FLIP_IN_Y:"flipInY",LIGHT_SPEED_IN_LEFT:"lightSpeedInLeft",LIGHT_SPEED_IN_RIGHT:"lightSpeedInRight",ROTATE_IN:"rotateIn",ROTATE_IN_DOWN_LEFT:"rotateInDownLeft",ROTATE_IN_DOWN_RIGHT:"rotateInDownRight",ROTATE_IN_UP_LEFT:"rotateInUpLeft",ROTATE_IN_UP_RIGHT:"rotateInUpRight",SLIDE_IN_DOWN:"slideInDown",SLIDE_IN_LEFT:"slideInLeft",SLIDE_IN_RIGHT:"slideInRight",SLIDE_IN_UP:"slideInUp",ZOOM_IN:"zoomIn",ZOOM_IN_DOWN:"zoomInDown",ZOOM_IN_LEFT:"zoomInLeft",ZOOM_IN_RIGHT:"zoomInRight",ZOOM_IN_UP:"zoomInUp"},{FADE_IN_DOWN_SUBTLE:"fadeInDownSubtle",FADE_IN_LEFT_SUBTLE:"fadeInLeftSubtle",FADE_IN_RIGHT_SUBTLE:"fadeInRightSubtle",FADE_IN_UP_SUBTLE:"fadeInUpSubtle",NONE:"none"}),{SWING:"swing"}),Ht="INSIDE_BEFORE_TEXT",Wt="INSIDE_AFTER_TEXT",Yt=(e,t)=>{if(((e,t)=>!!e.isDevelopment&&!!(t.handleReorderDragEnd||t.handleReorderDragStart||t.handleReorderDrop))(e,t))return"true"},zt=(e,t)=>{const{error:n}=null!=e?e:{},r=(e=>!!e&&"object"==typeof e)(n),o=r?n.content:n,i=r?n.type:"error";return V`
${o||K}
`},qt=(e,t)=>{const{isResendOtpSuccessVisible:n}=null!=e?e:{};return V`${n?"Code sent!":K} `},Vt=["January","February","March","April","May","June","July","August","September","October","November","December"],Zt=(e=1,t=1904)=>new Date(t,e,0,0,0,0,0).getDate(),Xt=(e,t,n)=>{if(void 0!==e&&void 0!==t&&void 0!==n)return new Date(Date.UTC(n,e-1,t,0,0,0,0)).toISOString()};class Kt extends we{constructor(e){if(super(e),this.et=K,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===K||null==e)return this.ft=void 0,this.et=e;if(e===X)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;const t=[e];return t.raw=t,this.ft={_$litType$:this.constructor.resultType,strings:t,values:[]}}}Kt.directiveName="unsafeHTML",Kt.resultType=1;const Jt=_e(Kt),Qt={chevron:'\n \n ',caret:'\n \n ',caretFilled:'\n \n \n '};const en="ps-select-input";customElements.get(en)||customElements.define(en,class extends ve{static get properties(){return{id:{type:String},inputClasses:{type:Object},label:{type:String},arrow:{type:String},options:{type:Array},value:{type:String},required:{type:Boolean},disabled:{type:Boolean}}}createRenderRoot(){return this}render(){var e,t;return V`
${this.options.map((({value:e,label:t})=>V`${t} `))}
${Jt(Qt[null!==(t=this.arrow)&&void 0!==t?t:"chevron"])}
`}});const tn="ps-date-input";customElements.get(tn)||customElements.define(tn,class extends ve{constructor(){super(...arguments),this.updateDayForMonthYearChange=()=>{const e=Zt(this.month,this.year);void 0!==this.day&&this.day>e&&(this.day=void 0)}}static get properties(){return{id:{type:String},inputClasses:{type:Object},ariaDescribedBy:{type:String,attribute:"aria-describedby"},label:{type:String},value:{type:String},required:{type:Boolean},error:{type:Boolean},arrow:{type:String},readonly:{type:Boolean},month:{type:Number,state:!0},day:{type:Number,state:!0},year:{type:Number,state:!0}}}update(e){super.update(e)}dispatchChangeEvent(){const e=new CustomEvent("change",{detail:Xt(this.month,this.day,this.year),bubbles:!0,composed:!0,cancelable:!0});this.dispatchEvent(e)}handleMonthChange(e){var t;e.stopPropagation();const n=e.target,r=parseInt(null!==(t=n.value)&&void 0!==t?t:"",10);this.month=Number.isNaN(r)?void 0:r,this.updateDayForMonthYearChange(),this.dispatchChangeEvent()}handleDayChange(e){var t;e.stopPropagation();const n=e.target,r=parseInt(null!==(t=n.value)&&void 0!==t?t:"",10);this.day=Number.isNaN(r)?void 0:r,this.dispatchChangeEvent()}handleYearChange(e){var t;e.stopPropagation();const n=e.target,r=parseInt(null!==(t=n.value)&&void 0!==t?t:"",10);this.year=Number.isNaN(r)?void 0:r,this.updateDayForMonthYearChange(),this.dispatchChangeEvent()}createRenderRoot(){return this}render(){var e,t,n;return V`
({label:e,value:(t+1).toString()})))]}
data-popup-engagement="true"
?required=${this.required}
@change=${this.handleMonthChange}
.value=${ye(null===(e=this.month)||void 0===e?void 0:e.toString())}
>
{const n=Zt(e,t),r=[{label:"Day",value:""}];for(let e=0;e
{const e=(new Date).getFullYear(),t=e-150,n=[{label:"Year",value:""}];for(let r=e;r>=t;r-=1){const e=r.toString();n.push({value:e,label:e})}return n})()}
data-popup-engagement="true"
?required=${this.required}
@change=${this.handleYearChange}
.value=${ye(null===(n=this.year)||void 0===n?void 0:n.toString())}
>
`}});const nn=(e,t,n="This field is required")=>{var r,o,i;const s=!!(null===(r=e.config)||void 0===r?void 0:r.required),a=!!t,l=null!==(i=null===(o=e.config)||void 0===o?void 0:o.requiredMessage)&&void 0!==i?i:n;return s&&!a?l:null},rn={con:"com",cmo:"com",copm:"com",comm:"com",ocm:"com",om:"com",cm:"com",coom:"com",net:"net",nett:"net",nte:"net",ent:"net",et:"net",orgg:"org",ogr:"org",or:"org",rg:"org",gro:"org",co:"co",coo:"co",oi:"io"},on={gmial:"gmail",gmsil:"gmail",gmaill:"gmail",gnail:"gmail",gmaik:"gmail",gmil:"gmail",gmal:"gmail",gmai:"gmail",gamil:"gmail",gmaol:"gmail",gmali:"gmail",gmaio:"gmail",yaho:"yahoo",yahho:"yahoo",yhoo:"yahoo",yhaoo:"yahoo",yahooo:"yahoo",yaaho:"yahoo",yaboo:"yahoo",hotnail:"hotmail",hotmai:"hotmail",hotmal:"hotmail",hotmil:"hotmail",htmail:"hotmail",hitmail:"hotmail",hotmaik:"hotmail",hotmial:"hotmail",gotmail:"hotmail",hotmaill:"hotmail",outlok:"outlook",outllok:"outlook",outook:"outlook",outluk:"outlook",oultook:"outlook",aoll:"aol",aoi:"aol",alo:"aol",ail:"aol",msm:"msn",msnn:"msn",concast:"comcast",comast:"comcast",comcat:"comcast",comcsat:"comcast",verizonn:"verizon",verizn:"verizon",verzon:"verizon",verison:"verizon",verizan:"verizon",iclod:"icloud",icload:"icloud",icloude:"icloud",iclould:"icloud",icoud:"icloud",icluod:"icloud"},sn=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$/,an=/\.(?:\d+|fakeextension)$/i,ln=/\.[a-z]{2,}[0-9]+$/i,cn=/\.[a-z]{2,}\/$/i,un=[/^test\./i,/^example\./i],pn=[/^devnull\./i],dn=(e,t="Please enter a valid email address.")=>function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function*(){if(!sn.test(e))return{errorMessage:t};const[n,r]=e.split("@");if(!n||!r)return{errorMessage:t};if((e=>pn.some((t=>t.test(e))))(r))return{errorMessage:t};if(un.some((e=>e.test(r))))return{errorMessage:t};const i=(e=>e.toLowerCase().split("."))(r);if(i.length<2)return{errorMessage:t};const s=i[0],a=i.slice(1).join("."),l=on[c=s]||c;var c;const u=rn[p=a]||p;var p;if(l!==s)return{errorMessage:"",suggestedEmail:`${n}@${l}.${a}`,correctionType:"SLD"};if(u!==a)return{errorMessage:t,suggestedEmail:`${n}@${s}.${u}`,correctionType:"TLD"};if(an.test(r)||ln.test(r)||cn.test(r))return{errorMessage:t};const{isValid:d}=yield o.e(268).then(o.bind(o,399));return d(r)?null:{errorMessage:t}})),hn=(e,t)=>!!t&&!!(null==e?void 0:e.isPreviewingBlockAnimation),fn=({isDevelopment:e=!1,resolvedStyleRules:t,state:n})=>{var r;const{animateCssName:o}=null!==(r=t[_t.BLOCK])&&void 0!==r?r:{},i=((e,t,n)=>!(!e||e===Gt.NONE)&&(!n||Boolean((null==t?void 0:t.isPreviewingBlockAnimation)||(null==t?void 0:t.isPreviewingAllBlockAnimations))))(o,n,e);return{[`animate__${o}`]:i,animate__animated:i,"previewing-block-animation":hn(n,e)}},gn=Object.assign({},Ke),mn=Object.assign(Object.assign(Object.assign({},tt),lt),ct),vn={[mn.BLOCK]:{mobile:{[kt.BACKGROUND_COLOR]:"#00000000",[kt.BORDER_RADIUS]:"0px 0px 0px 0px",[kt.MARGIN]:"0px 0px 0px 0px",[kt.OPACITY]:"1",[kt.PADDING]:"0px 0px 0px 0px",[kt.LAYOUT_DIRECTION]:"row",[kt.FLEX_WRAP]:"nowrap",[kt.GAP]:"6px 6px",[kt.DISPLAY]:"flex",[kt.HEIGHT]:"fit-content",[kt.LAYOUT_SPACING]:"stretch",[kt.POSITION]:"relative"}},[mn.INPUT]:{mobile:{[kt.BACKGROUND_COLOR]:Ot.INPUT_BG,[kt.BORDER_COLOR]:Ot.BORDER,[kt.BORDER_RADIUS]:"0px 0px 0px 0px",[kt.BORDER_STYLE]:"none",[kt.BORDER_WIDTH]:"1px",[kt.COLOR]:Ot.TEXT,[kt.FONT_FAMILY]:St,[kt.FONT_SIZE]:"16px",[kt.FONT_STYLE]:"normal",[kt.FONT_WEIGHT]:"normal",[kt.LETTER_SPACING]:"0px",[kt.LINE_HEIGHT]:"1.2",[kt.MARGIN]:"0px 0px 0px 0px",[kt.PADDING]:"8px 8px 8px 8px",[kt.TEXT_ALIGN]:"left",[kt.TEXT_DECORATION]:"none",[kt.WIDTH]:"100%"}}},bn="Birthdate field",yn={addBlockActions:({block:e,blockActions:t,popupActions:n})=>{t.updateStepData=t=>{n.updateStepData(e.id,t)}},defaultStyles:vn,render:function(e){var t,n;const{block:r,blockActions:o,blockData:i,classes:s,content:a,environment:l,finalStyleRules:c,state:u}=e,{block:p,input:d}=s,h=fn({resolvedStyleRules:c,state:u,isDevelopment:l.isDevelopment}),f=null!==(t=a[gn.LABEL])&&void 0!==t?t:bn,g=null===(n=c[_t.INPUT])||void 0===n?void 0:n[kt.DROPDOWN_ARROW],m=`input-${r.id}`;return V`
{o.updateStepData(e.detail)}}
>
${zt(u,m)}
`},styleElements:mn,textElements:gn,validateBlockData:(e,t)=>{var n,r,o;return nn(e,null==t?void 0:t.trim(),`${null!==(o=null===(r=null===(n=e.content)||void 0===n?void 0:n[gn.LABEL])||void 0===r?void 0:r.default)&&void 0!==o?o:bn} is required`)}};var _n=yn;let wn={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function kn(e){wn=e}const En={exec:()=>null};function On(e,t=""){let n="string"==typeof e?e:e.source;const r={replace:(e,t)=>{let o="string"==typeof t?t:t.source;return o=o.replace(Sn.caret,"$1"),n=n.replace(e,o),r},getRegex:()=>new RegExp(n,t)};return r}const Sn={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},xn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Tn=/(?:[*+-]|\d{1,9}[.)])/,In=On(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Tn).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),Cn=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Rn=/(?!\s*\])(?:\\.|[^\[\]\\])+/,An=On(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Rn).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Dn=On(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Tn).getRegex(),Nn="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ln=/|$))/,Pn=On("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",Ln).replace("tag",Nn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),$n=On(Cn).replace("hr",xn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Nn).getRegex(),Bn={blockquote:On(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",$n).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:An,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:xn,html:Pn,lheading:In,list:Dn,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:$n,table:En,text:/^[^\n]+/},jn=On("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",xn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Nn).getRegex(),Mn={...Bn,table:jn,paragraph:On(Cn).replace("hr",xn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",jn).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Nn).getRegex()},Un={...Bn,html:On("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)| \\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Ln).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:En,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:On(Cn).replace("hr",xn).replace("heading"," *#{1,6} *[^\n]").replace("lheading",In).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Fn=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Gn=/^( {2,}|\\)\n(?!\s*$)/,Hn=/[\p{P}\p{S}]/u,Wn=/[\s\p{P}\p{S}]/u,Yn=/[^\s\p{P}\p{S}]/u,zn=On(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Wn).getRegex(),qn=On(/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,"u").replace(/punct/g,Hn).getRegex(),Vn=On("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,Yn).replace(/punctSpace/g,Wn).replace(/punct/g,Hn).getRegex(),Zn=On("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Yn).replace(/punctSpace/g,Wn).replace(/punct/g,Hn).getRegex(),Xn=On(/\\(punct)/,"gu").replace(/punct/g,Hn).getRegex(),Kn=On(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Jn=On(Ln).replace("(?:--\x3e|$)","--\x3e").getRegex(),Qn=On("^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",Jn).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),er=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,tr=On(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",er).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),nr=On(/^!?\[(label)\]\[(ref)\]/).replace("label",er).replace("ref",Rn).getRegex(),rr=On(/^!?\[(ref)\](?:\[\])?/).replace("ref",Rn).getRegex(),or={_backpedal:En,anyPunctuation:Xn,autolink:Kn,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,br:Gn,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:En,emStrongLDelim:qn,emStrongRDelimAst:Vn,emStrongRDelimUnd:Zn,escape:Fn,link:tr,nolink:rr,punctuation:zn,reflink:nr,reflinkSearch:On("reflink|nolink(?!\\()","g").replace("reflink",nr).replace("nolink",rr).getRegex(),tag:Qn,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},pr=e=>ur[e];function dr(e,t){if(t){if(Sn.escapeTest.test(e))return e.replace(Sn.escapeReplace,pr)}else if(Sn.escapeTestNoEncode.test(e))return e.replace(Sn.escapeReplaceNoEncode,pr);return e}function hr(e){try{e=encodeURI(e).replace(Sn.percentDecode,"%")}catch{return null}return e}function fr(e,t){const n=e.replace(Sn.findPipe,((e,t,n)=>{let r=!1,o=t;for(;--o>=0&&"\\"===n[o];)r=!r;return r?"|":" |"})).split(Sn.splitPipe);let r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:gr(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t,n){const r=e.match(n.other.indentCodeCompensation);if(null===r)return t;const o=r[1];return t.split("\n").map((e=>{const t=e.match(n.other.beginningSpace);if(null===t)return e;const[r]=t;return r.length>=o.length?e.slice(o.length):e})).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){const t=gr(e,"#");this.options.pedantic?e=t.trim():t&&!this.rules.other.endingSpaceChar.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:gr(t[0],"\n")}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let e=gr(t[0],"\n").split("\n"),n="",r="";const o=[];for(;e.length>0;){let t=!1;const i=[];let s;for(s=0;s1,o={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");const i=this.rules.other.listItemRegex(n);let s=!1;for(;e;){let n=!1,r="",a="";if(!(t=i.exec(e)))break;if(this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let l=t[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,(e=>" ".repeat(3*e.length))),c=e.split("\n",1)[0],u=!l.trim(),p=0;if(this.options.pedantic?(p=2,a=l.trimStart()):u?p=t[1].length+1:(p=t[2].search(this.rules.other.nonSpaceChar),p=p>4?1:p,a=l.slice(p),p+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(r+=c+"\n",e=e.substring(c.length+1),n=!0),!n){const t=this.rules.other.nextBulletRegex(p),n=this.rules.other.hrRegex(p),o=this.rules.other.fencesBeginRegex(p),i=this.rules.other.headingBeginRegex(p),s=this.rules.other.htmlBeginRegex(p);for(;e;){const d=e.split("\n",1)[0];let h;if(c=d,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),h=c):h=c.replace(this.rules.other.tabCharGlobal," "),o.test(c))break;if(i.test(c))break;if(s.test(c))break;if(t.test(c))break;if(n.test(c))break;if(h.search(this.rules.other.nonSpaceChar)>=p||!c.trim())a+="\n"+h.slice(p);else{if(u)break;if(l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4)break;if(o.test(l))break;if(i.test(l))break;if(n.test(l))break;a+="\n"+c}u||c.trim()||(u=!0),r+=d+"\n",e=e.substring(d.length+1),l=h.slice(p)}}o.loose||(s?o.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(s=!0));let d,h=null;this.options.gfm&&(h=this.rules.other.listIsTask.exec(a),h&&(d="[ ] "!==h[0],a=a.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:r,task:!!h,checked:d,loose:!1,text:a,tokens:[]}),o.raw+=r}const a=o.items.at(-1);a&&(a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd()),o.raw=o.raw.trimEnd();for(let e=0;e"space"===e.type)),n=t.length>0&&t.some((e=>this.rules.other.anyLine.test(e.raw)));o.loose=n}if(o.loose)for(let e=0;e({text:e,tokens:this.lexer.inline(e),header:!1,align:i.align[t]}))));return i}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;const t=gr(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let r=0;r-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){const e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),mr(t,{href:n?n.replace(this.rules.inline.anyPunctuation,"$1"):n,title:r?r.replace(this.rules.inline.anyPunctuation,"$1"):r},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return mr(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(r&&(!r[3]||!n.match(this.rules.other.unicodeAlphaNumeric))&&(!r[1]&&!r[2]||!n||this.rules.inline.punctuation.exec(n))){const n=[...r[0]].length-1;let o,i,s=n,a=0;const l="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=l.exec(t));){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o)continue;if(i=[...o].length,r[3]||r[4]){s+=i;continue}if((r[5]||r[6])&&n%3&&!((n+i)%3)){a+=i;continue}if(s-=i,s>0)continue;i=Math.min(i,i+s+a);const t=[...r[0]][0].length,l=e.slice(0,n+r.index+t+i);if(Math.min(n,i)%2){const e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}const c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," ");const n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=t[1],n="mailto:"+e):(e=t[1],n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])e=t[0],n="mailto:"+e;else{let r;do{r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(r!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){const e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}}class br{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||wn,this.options.tokenizer=this.options.tokenizer||new vr,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={other:Sn,block:lr.normal,inline:cr.normal};this.options.pedantic?(t.block=lr.pedantic,t.inline=cr.pedantic):this.options.gfm&&(t.block=lr.gfm,this.options.breaks?t.inline=cr.breaks:t.inline=cr.gfm),this.tokenizer.rules=t}static get rules(){return{block:lr,inline:cr}}static lex(e,t){return new br(t).lex(e)}static lexInline(e,t){return new br(t).inlineTokens(e)}lex(e){e=e.replace(Sn.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0))))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);const n=t.at(-1);1===r.raw.length&&void 0!==n?n.raw+="\n":t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);const n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);const n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let o=e;if(this.options.extensions?.startBlock){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startBlock.forEach((e=>{r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(o))){const i=t.at(-1);n&&"paragraph"===i?.type?(i.raw+="\n"+r.raw,i.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):t.push(r),n=o.length!==e.length,e=e.substring(r.raw.length)}else if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);const n=t.at(-1);"text"===n?.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r)}else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,r=null;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(n));)e.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(n));)n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.anyPunctuation.exec(n));)n=n.slice(0,r.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let o=!1,i="";for(;e;){let r;if(o||(i=""),o=!1,this.options.extensions?.inline?.some((n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0))))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);const n=t.at(-1);"text"===r.type&&"text"===n?.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,i)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let s=e;if(this.options.extensions?.startInline){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startInline.forEach((e=>{r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(s)){e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(i=r.raw.slice(-1)),o=!0;const n=t.at(-1);"text"===n?.type?(n.raw+=r.raw,n.text+=r.text):t.push(r)}else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return t}}class yr{options;parser;constructor(e){this.options=e||wn}space(e){return""}code({text:e,lang:t,escaped:n}){const r=(t||"").match(Sn.notSpaceStart)?.[0],o=e.replace(Sn.endingNewline,"")+"\n";return r?''+(n?o:dr(o,!0))+"
\n":""+(n?o:dr(o,!0))+"
\n"}blockquote({tokens:e}){return`\n${this.parser.parse(e)} \n`}html({text:e}){return e}heading({tokens:e,depth:t}){return`${this.parser.parseInline(e)} \n`}hr(e){return" \n"}list(e){const t=e.ordered,n=e.start;let r="";for(let t=0;t\n"+r+""+o+">\n"}listitem(e){let t="";if(e.task){const n=this.checkbox({checked:!!e.checked});e.loose?"paragraph"===e.tokens[0]?.type?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+dr(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`${t} \n`}checkbox({checked:e}){return" '}paragraph({tokens:e}){return`${this.parser.parseInline(e)}
\n`}table(e){let t="",n="";for(let t=0;t${r}`),"\n"}tablerow({text:e}){return`\n${e} \n`}tablecell(e){const t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`${n}>\n`}strong({tokens:e}){return`${this.parser.parseInline(e)} `}em({tokens:e}){return`${this.parser.parseInline(e)} `}codespan({text:e}){return`${dr(e,!0)}
`}br(e){return" "}del({tokens:e}){return`${this.parser.parseInline(e)}`}link({href:e,title:t,tokens:n}){const r=this.parser.parseInline(n),o=hr(e);if(null===o)return r;let i='"+r+" ",i}image({href:e,title:t,text:n}){const r=hr(e);if(null===r)return dr(n);let o=` ",o}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:dr(e.text)}}class _r{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}}class wr{options;renderer;textRenderer;constructor(e){this.options=e||wn,this.options.renderer=this.options.renderer||new yr,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new _r}static parse(e,t){return new wr(t).parse(e)}static parseInline(e,t){return new wr(t).parseInline(e)}parse(e,t=!0){let n="";for(let r=0;r{const o=e[r].flat(1/0);n=n.concat(this.walkTokens(o,t))})):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach((e=>{const n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){const n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");const n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),n.extensions=t),e.renderer){const t=this.defaults.renderer||new yr(this.defaults);for(const n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;const r=n,o=e.renderer[r],i=t[r];t[r]=(...e)=>{let n=o.apply(t,e);return!1===n&&(n=i.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){const t=this.defaults.tokenizer||new vr(this.defaults);for(const n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;const r=n,o=e.tokenizer[r],i=t[r];t[r]=(...e)=>{let n=o.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){const t=this.defaults.hooks||new kr;for(const n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;const r=n,o=e.hooks[r],i=t[r];kr.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async)return Promise.resolve(o.call(t,e)).then((e=>i.call(t,e)));const n=o.call(t,e);return i.call(t,n)}:t[r]=(...e)=>{let n=o.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){const t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}})),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return br.lex(e,t??this.defaults)}parser(e,t){return wr.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{const r={...n},o={...this.defaults,...r},i=this.onError(!!o.silent,!!o.async);if(!0===this.defaults.async&&!1===r.async)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(null==t)return i(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));o.hooks&&(o.hooks.options=o,o.hooks.block=e);const s=o.hooks?o.hooks.provideLexer():e?br.lex:br.lexInline,a=o.hooks?o.hooks.provideParser():e?wr.parse:wr.parseInline;if(o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(t):t).then((e=>s(e,o))).then((e=>o.hooks?o.hooks.processAllTokens(e):e)).then((e=>o.walkTokens?Promise.all(this.walkTokens(e,o.walkTokens)).then((()=>e)):e)).then((e=>a(e,o))).then((e=>o.hooks?o.hooks.postprocess(e):e)).catch(i);try{o.hooks&&(t=o.hooks.preprocess(t));let e=s(t,o);o.hooks&&(e=o.hooks.processAllTokens(e)),o.walkTokens&&this.walkTokens(e,o.walkTokens);let n=a(e,o);return o.hooks&&(n=o.hooks.postprocess(n)),n}catch(e){return i(e)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="An error occurred:
"+dr(n.message+"",!0)+" ";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}}const Or=new Er;function Sr(e,t){return Or.parse(e,t)}Sr.options=Sr.setOptions=function(e){return Or.setOptions(e),Sr.defaults=Or.defaults,kn(Sr.defaults),Sr},Sr.getDefaults=function(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},Sr.defaults=wn,Sr.use=function(...e){return Or.use(...e),Sr.defaults=Or.defaults,kn(Sr.defaults),Sr},Sr.walkTokens=function(e,t){return Or.walkTokens(e,t)},Sr.parseInline=Or.parseInline,Sr.Parser=wr,Sr.parser=wr.parse,Sr.Renderer=yr,Sr.TextRenderer=_r,Sr.Lexer=br,Sr.lexer=br.lex,Sr.Tokenizer=vr,Sr.Hooks=kr,Sr.parse=Sr,Sr.options,Sr.setOptions,Sr.use,Sr.walkTokens,Sr.parseInline,wr.parse,br.lex;const{entries:xr,setPrototypeOf:Tr,isFrozen:Ir,getPrototypeOf:Cr,getOwnPropertyDescriptor:Rr}=Object;let{freeze:Ar,seal:Dr,create:Nr}=Object,{apply:Lr,construct:Pr}="undefined"!=typeof Reflect&&Reflect;Ar||(Ar=function(e){return e}),Dr||(Dr=function(e){return e}),Lr||(Lr=function(e,t,n){return e.apply(t,n)}),Pr||(Pr=function(e,t){return new e(...t)});const $r=Zr(Array.prototype.forEach),Br=Zr(Array.prototype.pop),jr=Zr(Array.prototype.push),Mr=Zr(String.prototype.toLowerCase),Ur=Zr(String.prototype.toString),Fr=Zr(String.prototype.match),Gr=Zr(String.prototype.replace),Hr=Zr(String.prototype.indexOf),Wr=Zr(String.prototype.trim),Yr=Zr(Object.prototype.hasOwnProperty),zr=Zr(RegExp.prototype.test),qr=(Vr=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),o=1;o2&&void 0!==arguments[2]?arguments[2]:Mr;Tr&&Tr(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(Ir(t)||(t[r]=e),o=e)}e[o]=!0}return e}function Kr(e){for(let t=0;t/gm),fo=Dr(/\${[\w\W]*}/gm),go=Dr(/^data-[\-\w.\u00B7-\uFFFF]/),mo=Dr(/^aria-[\-\w]+$/),vo=Dr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),bo=Dr(/^(?:\w+script|data):/i),yo=Dr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),_o=Dr(/^html$/i),wo=Dr(/^[a-z][.\w]*(-[.\w]+)+$/i);var ko=Object.freeze({__proto__:null,ARIA_ATTR:mo,ATTR_WHITESPACE:yo,CUSTOM_ELEMENT:wo,DATA_ATTR:go,DOCTYPE_NAME:_o,ERB_EXPR:ho,IS_ALLOWED_URI:vo,IS_SCRIPT_OR_DATA:bo,MUSTACHE_EXPR:po,TMPLIT_EXPR:fo});const Eo=function(){return"undefined"==typeof window?null:window};var Oo=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Eo();const n=t=>e(t);if(n.version="3.2.2",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;let{document:r}=t;const o=r,i=o.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:l,Element:c,NodeFilter:u,NamedNodeMap:p=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:h,trustedTypes:f}=t,g=c.prototype,m=Qr(g,"cloneNode"),v=Qr(g,"remove"),b=Qr(g,"nextSibling"),y=Qr(g,"childNodes"),_=Qr(g,"parentNode");if("function"==typeof a){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let w,k="";const{implementation:E,createNodeIterator:O,createDocumentFragment:S,getElementsByTagName:x}=r,{importNode:T}=o;let I={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof xr&&"function"==typeof _&&E&&void 0!==E.createHTMLDocument;const{MUSTACHE_EXPR:C,ERB_EXPR:R,TMPLIT_EXPR:A,DATA_ATTR:D,ARIA_ATTR:N,IS_SCRIPT_OR_DATA:L,ATTR_WHITESPACE:P,CUSTOM_ELEMENT:$}=ko;let{IS_ALLOWED_URI:B}=ko,j=null;const M=Xr({},[...eo,...to,...no,...oo,...so]);let U=null;const F=Xr({},[...ao,...lo,...co,...uo]);let G=Object.seal(Nr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),H=null,W=null,Y=!0,z=!0,q=!1,V=!0,Z=!1,X=!0,K=!1,J=!1,Q=!1,ee=!1,te=!1,ne=!1,re=!0,oe=!1,ie=!0,se=!1,ae={},le=null;const ce=Xr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ue=null;const pe=Xr({},["audio","video","img","source","image","track"]);let de=null;const he=Xr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",ge="http://www.w3.org/2000/svg",me="http://www.w3.org/1999/xhtml";let ve=me,be=!1,ye=null;const _e=Xr({},[fe,ge,me],Ur);let we=Xr({},["mi","mo","mn","ms","mtext"]),ke=Xr({},["annotation-xml"]);const Ee=Xr({},["title","style","font","a","script"]);let Oe=null;const Se=["application/xhtml+xml","text/html"];let xe=null,Te=null;const Ie=r.createElement("form"),Ce=function(e){return e instanceof RegExp||e instanceof Function},Re=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Te||Te!==e){if(e&&"object"==typeof e||(e={}),e=Jr(e),Oe=-1===Se.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,xe="application/xhtml+xml"===Oe?Ur:Mr,j=Yr(e,"ALLOWED_TAGS")?Xr({},e.ALLOWED_TAGS,xe):M,U=Yr(e,"ALLOWED_ATTR")?Xr({},e.ALLOWED_ATTR,xe):F,ye=Yr(e,"ALLOWED_NAMESPACES")?Xr({},e.ALLOWED_NAMESPACES,Ur):_e,de=Yr(e,"ADD_URI_SAFE_ATTR")?Xr(Jr(he),e.ADD_URI_SAFE_ATTR,xe):he,ue=Yr(e,"ADD_DATA_URI_TAGS")?Xr(Jr(pe),e.ADD_DATA_URI_TAGS,xe):pe,le=Yr(e,"FORBID_CONTENTS")?Xr({},e.FORBID_CONTENTS,xe):ce,H=Yr(e,"FORBID_TAGS")?Xr({},e.FORBID_TAGS,xe):{},W=Yr(e,"FORBID_ATTR")?Xr({},e.FORBID_ATTR,xe):{},ae=!!Yr(e,"USE_PROFILES")&&e.USE_PROFILES,Y=!1!==e.ALLOW_ARIA_ATTR,z=!1!==e.ALLOW_DATA_ATTR,q=e.ALLOW_UNKNOWN_PROTOCOLS||!1,V=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Z=e.SAFE_FOR_TEMPLATES||!1,X=!1!==e.SAFE_FOR_XML,K=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,Q=e.FORCE_BODY||!1,re=!1!==e.SANITIZE_DOM,oe=e.SANITIZE_NAMED_PROPS||!1,ie=!1!==e.KEEP_CONTENT,se=e.IN_PLACE||!1,B=e.ALLOWED_URI_REGEXP||vo,ve=e.NAMESPACE||me,we=e.MATHML_TEXT_INTEGRATION_POINTS||we,ke=e.HTML_INTEGRATION_POINTS||ke,G=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ce(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(G.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ce(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(G.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(G.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Z&&(z=!1),te&&(ee=!0),ae&&(j=Xr({},so),U=[],!0===ae.html&&(Xr(j,eo),Xr(U,ao)),!0===ae.svg&&(Xr(j,to),Xr(U,lo),Xr(U,uo)),!0===ae.svgFilters&&(Xr(j,no),Xr(U,lo),Xr(U,uo)),!0===ae.mathMl&&(Xr(j,oo),Xr(U,co),Xr(U,uo))),e.ADD_TAGS&&(j===M&&(j=Jr(j)),Xr(j,e.ADD_TAGS,xe)),e.ADD_ATTR&&(U===F&&(U=Jr(U)),Xr(U,e.ADD_ATTR,xe)),e.ADD_URI_SAFE_ATTR&&Xr(de,e.ADD_URI_SAFE_ATTR,xe),e.FORBID_CONTENTS&&(le===ce&&(le=Jr(le)),Xr(le,e.FORBID_CONTENTS,xe)),ie&&(j["#text"]=!0),K&&Xr(j,["html","head","body"]),j.table&&(Xr(j,["tbody"]),delete H.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw qr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw qr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=e.TRUSTED_TYPES_POLICY,k=w.createHTML("")}else void 0===w&&(w=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML(e){return e},createScriptURL(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(f,i)),null!==w&&"string"==typeof k&&(k=w.createHTML(""));Ar&&Ar(e),Te=e}},Ae=Xr({},[...to,...no,...ro]),De=Xr({},[...oo,...io]),Ne=function(e){jr(n.removed,{element:e});try{_(e).removeChild(e)}catch(t){v(e)}},Le=function(e,t){try{jr(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){jr(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ee||te)try{Ne(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Pe=function(e){let t=null,n=null;if(Q)e=" "+e;else{const t=Fr(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Oe&&ve===me&&(e=''+e+"");const o=w?w.createHTML(e):e;if(ve===me)try{t=(new h).parseFromString(o,Oe)}catch(e){}if(!t||!t.documentElement){t=E.createDocument(ve,"template",null);try{t.documentElement.innerHTML=be?k:o}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),ve===me?x.call(t,K?"html":"body")[0]:K?t.documentElement:i},$e=function(e){return O.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Be=function(e){return e instanceof d&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof p)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},je=function(e){return"function"==typeof l&&e instanceof l};function Me(e,t,r){$r(e,(e=>{e.call(n,t,r,Te)}))}const Ue=function(e){let t=null;if(Me(I.beforeSanitizeElements,e,null),Be(e))return Ne(e),!0;const r=xe(e.nodeName);if(Me(I.uponSanitizeElement,e,{tagName:r,allowedTags:j}),e.hasChildNodes()&&!je(e.firstElementChild)&&zr(/<[/\w]/g,e.innerHTML)&&zr(/<[/\w]/g,e.textContent))return Ne(e),!0;if(7===e.nodeType)return Ne(e),!0;if(X&&8===e.nodeType&&zr(/<[/\w]/g,e.data))return Ne(e),!0;if(!j[r]||H[r]){if(!H[r]&&Ge(r)){if(G.tagNameCheck instanceof RegExp&&zr(G.tagNameCheck,r))return!1;if(G.tagNameCheck instanceof Function&&G.tagNameCheck(r))return!1}if(ie&&!le[r]){const t=_(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=m(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,b(e))}}return Ne(e),!0}return e instanceof c&&!function(e){let t=_(e);t&&t.tagName||(t={namespaceURI:ve,tagName:"template"});const n=Mr(e.tagName),r=Mr(t.tagName);return!!ye[e.namespaceURI]&&(e.namespaceURI===ge?t.namespaceURI===me?"svg"===n:t.namespaceURI===fe?"svg"===n&&("annotation-xml"===r||we[r]):Boolean(Ae[n]):e.namespaceURI===fe?t.namespaceURI===me?"math"===n:t.namespaceURI===ge?"math"===n&&ke[r]:Boolean(De[n]):e.namespaceURI===me?!(t.namespaceURI===ge&&!ke[r])&&!(t.namespaceURI===fe&&!we[r])&&!De[n]&&(Ee[n]||!Ae[n]):!("application/xhtml+xml"!==Oe||!ye[e.namespaceURI]))}(e)?(Ne(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!zr(/<\/no(script|embed|frames)/i,e.innerHTML)?(Z&&3===e.nodeType&&(t=e.textContent,$r([C,R,A],(e=>{t=Gr(t,e," ")})),e.textContent!==t&&(jr(n.removed,{element:e.cloneNode()}),e.textContent=t)),Me(I.afterSanitizeElements,e,null),!1):(Ne(e),!0)},Fe=function(e,t,n){if(re&&("id"===t||"name"===t)&&(n in r||n in Ie))return!1;if(z&&!W[t]&&zr(D,t));else if(Y&&zr(N,t));else if(!U[t]||W[t]){if(!(Ge(e)&&(G.tagNameCheck instanceof RegExp&&zr(G.tagNameCheck,e)||G.tagNameCheck instanceof Function&&G.tagNameCheck(e))&&(G.attributeNameCheck instanceof RegExp&&zr(G.attributeNameCheck,t)||G.attributeNameCheck instanceof Function&&G.attributeNameCheck(t))||"is"===t&&G.allowCustomizedBuiltInElements&&(G.tagNameCheck instanceof RegExp&&zr(G.tagNameCheck,n)||G.tagNameCheck instanceof Function&&G.tagNameCheck(n))))return!1}else if(de[t]);else if(zr(B,Gr(n,P,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Hr(n,"data:")||!ue[e])if(q&&!zr(L,Gr(n,P,"")));else if(n)return!1;return!0},Ge=function(e){return"annotation-xml"!==e&&Fr(e,$)},He=function(e){Me(I.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:U,forceKeepAttr:void 0};let o=t.length;for(;o--;){const i=t[o],{name:s,namespaceURI:a,value:l}=i,c=xe(s);let u="value"===s?l:Wr(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,Me(I.uponSanitizeAttribute,e,r),u=r.attrValue,!oe||"id"!==c&&"name"!==c||(Le(s,e),u="user-content-"+u),X&&zr(/((--!?|])>)|<\/(style|title)/i,u)){Le(s,e);continue}if(r.forceKeepAttr)continue;if(Le(s,e),!r.keepAttr)continue;if(!V&&zr(/\/>/i,u)){Le(s,e);continue}Z&&$r([C,R,A],(e=>{u=Gr(u,e," ")}));const p=xe(e.nodeName);if(Fe(p,c,u)){if(w&&"object"==typeof f&&"function"==typeof f.getAttributeType)if(a);else switch(f.getAttributeType(p,c)){case"TrustedHTML":u=w.createHTML(u);break;case"TrustedScriptURL":u=w.createScriptURL(u)}try{a?e.setAttributeNS(a,s,u):e.setAttribute(s,u),Be(e)?Ne(e):Br(n.removed)}catch(e){}}}Me(I.afterSanitizeAttributes,e,null)},We=function e(t){let n=null;const r=$e(t);for(Me(I.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Me(I.uponSanitizeShadowNode,n,null),Ue(n)||(n.content instanceof s&&e(n.content),He(n));Me(I.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,a=null,c=null;if(be=!e,be&&(e="\x3c!--\x3e"),"string"!=typeof e&&!je(e)){if("function"!=typeof e.toString)throw qr("toString is not a function");if("string"!=typeof(e=e.toString()))throw qr("dirty is not a string, aborting")}if(!n.isSupported)return e;if(J||Re(t),n.removed=[],"string"==typeof e&&(se=!1),se){if(e.nodeName){const t=xe(e.nodeName);if(!j[t]||H[t])throw qr("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)r=Pe("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!ee&&!Z&&!K&&-1===e.indexOf("<"))return w&&ne?w.createHTML(e):e;if(r=Pe(e),!r)return ee?null:ne?k:""}r&&Q&&Ne(r.firstChild);const u=$e(se?e:r);for(;a=u.nextNode();)Ue(a)||(a.content instanceof s&&We(a.content),He(a));if(se)return e;if(ee){if(te)for(c=S.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(U.shadowroot||U.shadowrootmode)&&(c=T.call(o,c,!0)),c}let p=K?r.outerHTML:r.innerHTML;return K&&j["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&zr(_o,r.ownerDocument.doctype.name)&&(p="\n"+p),Z&&$r([C,R,A],(e=>{p=Gr(p,e," ")})),w&&ne?w.createHTML(p):p},n.setConfig=function(){Re(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),J=!0},n.clearConfig=function(){Te=null,J=!1},n.isValidAttribute=function(e,t,n){Te||Re({});const r=xe(e),o=xe(t);return Fe(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&jr(I[e],t)},n.removeHook=function(e){return Br(I[e])},n.removeHooks=function(e){I[e]=[]},n.removeAllHooks=function(){I={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),So=o(694);function xo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"&&self;var To={exports:{}};!function(e){!function(e,t){function n(e){var t=this,n=function(){var e=4022871197;return function(t){t=String(t);for(var n=0;n>>0,e=(r*=e)>>>0,e+=4294967296*(r-=e)}return 2.3283064365386963e-10*(e>>>0)}}();t.next=function(){var e=2091639*t.s0+2.3283064365386963e-10*t.c;return t.s0=t.s1,t.s1=t.s2,t.s2=e-(t.c=0|e)},t.c=1,t.s0=n(" "),t.s1=n(" "),t.s2=n(" "),t.s0-=n(e),t.s0<0&&(t.s0+=1),t.s1-=n(e),t.s1<0&&(t.s1+=1),t.s2-=n(e),t.s2<0&&(t.s2+=1),n=null}function r(e,t){return t.c=e.c,t.s0=e.s0,t.s1=e.s1,t.s2=e.s2,t}function o(e,t){var o=new n(e),i=t&&t.state,s=o.next;return s.int32=function(){return 4294967296*o.next()|0},s.double=function(){return s()+11102230246251565e-32*(2097152*s()|0)},s.quick=s,i&&("object"==typeof i&&r(i,o),s.state=function(){return r(o,{})}),s}t&&t.exports?t.exports=o:this.alea=o}(0,e)}(To);const Io=xo(To.exports),Co=So.compile({WhiteSpace:{match:/[\t\v\f\ufeff\p{Zs}]+/u,lineBreaks:!0},Lines:{match:/\r?\n|[\r\u2028\u2029]/u,lineBreaks:!0},ObjectKey:/\[?(?:\x23)?(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+\]?(?=:)/u,Punctuator:/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![/*]))=?|[?~,:;[\](){}]/u,BooleanLiteral:/true|false/u,NumericLiteral:/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/u,StringLiteral:{match:/(?:'(?:(?!')[^\\\n\r]|\\(?:\r\n|[^]))*')|(?:"(?:(?!")[^\\\n\r]|\\(?:\r\n|[^]))*")/u,value:e=>`"${e.slice(1,-1)}"`},Identifier:/(?:\x23)?(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/u}),Ro=new RegExp("(?<==)(?:true|false)"),Ao=new RegExp("(?<==)-?(?:(?:0[xX][\\da-fA-F](?:_?[\\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|-?0n|-?[1-9](?:_?\\d)*n|(?:(?:0(?!\\d)|0\\d*[89]\\d*|[1-9](?:_?\\d)*)(?:\\.(?:\\d(?:_?\\d)*)?)?|\\.\\d(?:_?\\d)*)(?:[eE][+-]?\\d(?:_?\\d)*)?|-?0[0-7]+)"),Do=new RegExp("(?<==)'(?!.*&[0-9a-zA-Z]+;)[^'\\\\]*(?:\\\\.|\\\\n[^\"\\\\]*|&[^0-9a-zA-Z;]*)*'"),No=new RegExp('(?<==)"(?!.*&[0-9a-zA-Z]+;)[^"\\\\]*(?:\\\\.|\\\\n[^"\\\\]*|&[^0-9a-zA-Z;]*)*"'),Lo=new RegExp("(?<==)[^\"\\s'`=<>\\x00]+");function Po(e){const t="string"==typeof e&&/^(['"]).*?\1$/.test(e)?e.slice(1,-1):e;return t.startsWith("[")&&t.endsWith("]")||t.startsWith("{")&&t.endsWith("}")?JSON.parse(function(e,t={}){const n=e.trim().replace(/[,]+$/,"");if(""===n)return"{}";if(!function(e){return e.startsWith("{")&&e.endsWith("}")||e.startsWith("[")&&e.endsWith("]")}(n))throw new TypeError("Unexpected input format");let r="";Co.reset(n);for(const e of Co)if("WhiteSpace"!==e.type&&"Lines"!==e.type){switch(e.type){case"Identifier":e.value=`"${t[e.value]||e.value}"`;break;case"ObjectKey":"["===e.value.slice(0,1)&&"]"===e.value.slice(-1)?e.value=`"${t[e.value.slice(1,-1)]||e.value.slice(1,-1)}"`:e.value=`"${e.value}"`}r+=e.value}return r.replace(/,([}\]])/g,"$1")}(t)):t}const $o=So.states({main:{WhiteSpace:/[ \t\v\f\ufeff]+/,AttributeShorthand:/[.#](?:(?!-?\d)(?:[a-zA-Z0-9\xA0-\uFFFF_-])+)/,BooleanLiteral:{match:Ro,value(e){return"true"===e}},NumericLiteral:{match:Ao,value(e){const t=Number(e);return Number.isNaN(t)?Number(e.replace(/_|n$/g,"")):Number(e)}},SingleQuotedValue:{match:Do,value:Po,type:()=>"StringLiteral"},DoubleQuotedLiteral:{match:No,value:Po,type:()=>"StringLiteral"},UnquotedLiteral:{match:Lo,value:Po,type:()=>"StringLiteral"},AttributeName:/(?:(?![\s\x00\x22\x27\x3E\x2F\x3D\x00-\x1F\x7F-\x9F])[^\s\x00-\x1F\x7F-\x9F\x22\x27\x3E\x2F\x3D])+/,Separator:"="}});const Bo=So.compile({spaces:/[\t\v\f\ufeff ]+/,name:/[a-zA-Z][\w-]*/,attrs:{match:/\{.*\}/,value:e=>function(e){let t=null;const n=$o.reset(e),r={};Object.defineProperties(r,{toString:{writable:!1,enumerable:!1,configurable:!1,value:()=>function(e){let t="";for(const n in e){const r=e[n];switch(typeof r){case"object":t+=` ${n}='${JSON.stringify(r)}'`;break;case"string":t+=` ${n}="${r}"`;break;case"number":case"boolean":t+=` ${n}=${r}`}}return t.slice(1)}(r)},getTokens:{writable:!1,enumerable:!1,configurable:!1,value:()=>Array.from($o.reset(e))}});const o=[];for(const{type:e,value:i}of n)switch(e){case"AttributeName":t=i,r[t]=t;break;case"AttributeShorthand":"."===i[0]?o.push(i.slice(1)):"#"===i[0]&&(r.id=i.slice(1));break;case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":t&&("class"===t&&o.push(i),r[t]=i,t=null)}return o.length&&(r.class=o.join(" ")),r}(e.slice(1,-1))},text:{match:/\[.*\]/,value:e=>e.slice(1,-1)},blockText:{match:/[\s\S]+/,lineBreaks:!0}});function jo(e){const{type:t,level:n,raw:r,content:o,marker:i,tag:s}=e,a=Bo.reset(o);let l,c,u="",p=[];for(const{type:e,value:t}of a)switch(e){case"name":l=t;break;case"attrs":c=t;break;case"text":case"blockText":u=t,p="container"===n?this.lexer.blockTokens(t):this.lexer.inlineTokens(t)}return{type:t,raw:r,meta:{level:n,marker:i,tag:s,name:l},attrs:c,text:u,tokens:p}}function Mo(e){return["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"].includes(e)}function Uo(e){const{meta:t,attrs:n,tokens:r=[]}=e,o=t.name||t.tag;let i=`<${o}`;return i+=n?" "+n.toString():"",i+=Mo(o)?" />":">",i+="container"===t.level?"\n":"",Mo(o)||(i+="container"===t.level?this.parser.parse(r):this.parser.parseInline(r),i+=`${o}>`),i+="inline"===t.level?"":"\n",i}const Fo=[{level:"container",marker:":::"},{level:"block",marker:"::"},{level:"inline",marker:":"}];function Go(e=Fo){return{extensions:e.map((({level:e,marker:t,tag:n,renderer:r})=>{const o=Io(t).int32(),i=`directive${function(e){return e[0].toUpperCase()+e.slice(1).toLowerCase()}(e)}${o}`;return{name:i,level:"inline"===e?"inline":"block",start:e=>{var n;return null==(n=e.match(new RegExp(t)))?void 0:n.index},tokenizer(r){const o=function(e,t){switch(e){case"container":return`^${t}([\\s\\S]*?)\\n${t}`;case"block":return`^${t}((?:[a-zA-Z][\\w-]*|[\\{\\[].*?[\\}\\]])+)`;case"inline":return`^${t}((?:[a-zA-Z][\\w-]*|[\\{].*?[\\}]+|[\\[].*?[\\]])+)`}}(e,t),s=r.match(new RegExp(o));if(s){const[r,o=""]=s;return jo.call(this,{type:i,level:e,raw:r,content:o,marker:t,tag:n||("inline"===e?"span":"div")})}},renderer:r||Uo}}))}}const Ho={level:"inline",marker:":",renderer(e){var t,n,r,o,i,s,a;const{meta:l,attrs:c,text:u,tokens:p=[]}=e,d={};"text-style"===(null!==(t=l.name)&&void 0!==t?t:"")&&((null==c?void 0:c.color)&&(d.color=null!==(n=null==c?void 0:c.color)&&void 0!==n?n:""),(null==c?void 0:c.backgroundColor)&&(d["background-color"]=null!==(r=null==c?void 0:c.backgroundColor)&&void 0!==r?r:""),(null==c?void 0:c.fontSize)&&(d["font-size"]=`${null!==(o=null==c?void 0:c.fontSize)&&void 0!==o?o:""}px`),(null==c?void 0:c.fontFamily)&&(d["font-family"]=null!==(i=null==c?void 0:c.fontFamily)&&void 0!==i?i:""),(null==c?void 0:c.letterSpacing)&&(d["letter-spacing"]=`${null!==(s=null==c?void 0:c.letterSpacing)&&void 0!==s?s:""}px`),(null==c?void 0:c.lineHeight)&&(d["line-height"]=null!==(a=null==c?void 0:c.lineHeight)&&void 0!==a?a:""));const h=Object.entries(d).reduce(((e,[t,n])=>[...e,`${t}: ${n}`]),[]).join("; "),f=p.length?this.parser.parseInline(p):u;return!!h.length&&`${f} `}},Wo={level:"container",marker:":::",renderer(e){var t;const{meta:n,attrs:r,text:o,tokens:i=[]}=e,s={display:"block"};"paragraph-style"===(null!==(t=n.name)&&void 0!==t?t:"")&&(null==r?void 0:r.textAlign)&&(s["text-align"]=r.textAlign);const a=Object.entries(s).reduce(((e,[t,n])=>[...e,`${t}: ${n}`]),[]).join("; "),l=i.length?this.parser.parse(i):o;return!!a.length&&`${l} `}},Yo={tokenizer:{blockquote(){},heading(){},hr(){},list(){}}},zo=e=>(new Er).use(Go([...Fo,Ho,Wo])).use(Object.assign({renderer:{link({href:t,text:n,tokens:r}){return`${r.length?this.parser.parseInline(r):n} `},paragraph({tokens:e}){return`${this.parser.parseInline(e)} \n`}}},Yo)),qo=(e,t,n)=>{var r;const o=!!(null===(r=n.enabledFeatureFlags)||void 0===r?void 0:r.includes("popup_rich_text_content"));return Jt(o?((e,t)=>{const n=zo(t).parse(e,{async:!1,breaks:!0});return Oo.sanitize(n,{ALLOWED_TAGS:["a","br","code","del","em","span","strong","p","div"],ADD_ATTR:["target"]})})(e,t.id):e)},Vo=Object.assign({},Ze),Zo=Object.assign(Object.assign({},rt),tt),Xo={[Zo.BLOCK]:{mobile:{[kt.ALIGN_SELF]:"center",[kt.MARGIN]:"0px 0px 0px 0px",[kt.OPACITY]:"1",[kt.WIDTH]:"100%",[kt.POSITION]:"relative"}},[Zo.BUTTON]:{mobile:{[kt.BACKGROUND_COLOR]:Ot.PRIMARY_BUTTON_BG,[kt.BORDER_COLOR]:Ot.BORDER,[kt.BORDER_RADIUS]:"0px 0px 0px 0px",[kt.BORDER_STYLE]:"none",[kt.BORDER_WIDTH]:"1px",[kt.COLOR]:Ot.PRIMARY_BUTTON_TEXT,[kt.FONT_FAMILY]:St,[kt.FONT_SIZE]:"16px",[kt.FONT_STYLE]:"normal",[kt.FONT_WEIGHT]:"bold",[kt.LETTER_SPACING]:"0px",[kt.LINE_HEIGHT]:"1.2",[kt.PADDING]:"8px 8px 8px 8px",[kt.TEXT_ALIGN]:"center",[kt.TEXT_DECORATION]:"none",[kt.WIDTH]:"100%"}}},Ko={addBlockActions:({block:e,blockActions:t,popupActions:n})=>{t.onClick=()=>{var t,r,o;(null===(t=e.config)||void 0===t?void 0:t.dataName)&&(null===(r=e.config)||void 0===r?void 0:r.dataValue)&&n.updateStepData(e.id,null===(o=e.config)||void 0===o?void 0:o.dataValue),n.handleButtonClick(e)}},defaultStyles:Xo,render:function(e){var t,n,r;const{block:o,blockActions:i,classes:{block:s,button:a},content:l,environment:c,finalStyleRules:u,state:p}=e,d=fn({resolvedStyleRules:u,state:p,isDevelopment:c.isDevelopment}),{handleReorderDragEnd:h,handleReorderDragStart:f,handleReorderDrop:g,onClick:m,selectBlock:v}=i,{action:b}=null!==(n=null===(t=o.config)||void 0===t?void 0:t.onClick)&&void 0!==n?n:{},y=null!==(r=l[Vo.BUTTON])&&void 0!==r?r:"Button",_=b===Rt,w=b===Ct,k=b===It;return V`
${qo(y,o,c)}
`},styleElements:Zo,textElements:Vo};var Jo=Ko;const Qo=Object.assign({},Je),ei=Object.assign(Object.assign(Object.assign(Object.assign({},tt),rt),it),yt),ti={addBlockActions:({block:e,blockActions:t,popupActions:n})=>{t.onClick=t=>{var r;(null===(r=e.config)||void 0===r?void 0:r.dataName)&&t&&n.updateStepData(e.id,t),n.handleButtonClick(e)}},defaultStyles:{[ei.BLOCK]:{mobile:{[kt.ALIGN_SELF]:"center",[kt.MARGIN]:"0px 0px 0px 0px",[kt.OPACITY]:"1",[kt.WIDTH]:"100%",[kt.POSITION]:"relative"}},[ei.GROUP]:{mobile:{[kt.GAP]:"10px 10px",[kt.ALIGN_ITEMS]:"center",[kt.DISPLAY]:"flex",[kt.LAYOUT_DIRECTION]:"column"}},[ei.BUTTON]:Object.assign({},Xo[ei.BUTTON]),[ei.TEXT]:{mobile:{[kt.COLOR]:Ot.TEXT,[kt.FONT_FAMILY]:St,[kt.FONT_SIZE]:"14px",[kt.FONT_STYLE]:"normal",[kt.FONT_WEIGHT]:"normal",[kt.LETTER_SPACING]:"0px",[kt.LINE_HEIGHT]:"1.2",[kt.MARGIN]:"0px 0px 10px 0px",[kt.TEXT_ALIGN]:"left",[kt.TEXT_DECORATION]:"none",[kt.DISPLAY]:"block"}}},render:e=>{var t,n;const{block:r,blockActions:o,classes:{block:i,button:s,group:a,text:l},content:c,environment:u,finalStyleRules:p,state:d}=e,h=fn({resolvedStyleRules:p,state:d,isDevelopment:u.isDevelopment}),{buttonGroup:f,onClick:g}=null!==(t=r.config)&&void 0!==t?t:{},{handleReorderDragEnd:m,handleReorderDragStart:v,handleReorderDrop:b,onClick:y,selectBlock:_}=o,w=(null==g?void 0:g.action)===Ct,k="none"===(null===(n=p[_t.TEXT])||void 0===n?void 0:n.display),E=c[Qo.PARAGRAPH],O=`paragraph-${r.id}`,S=`invisible-description-${r.id}`;return f&&y?V`
${E}
This is a single-choice option group. Use Enter or Spacebar to make your
selection and continue.
${[...f].sort(((e,t)=>e.order-t.order)).map((({dataValue:e,content:t})=>V`y(e)}
?data-popup-engagement=${!w}
>
${t}
`))}
`:K},styleElements:ei,textElements:Qo};var ni=ti;const ri=Object.assign(Object.assign(Object.assign({},rt),tt),bt),oi={addBlockActions:({block:e,blockActions:t,popupActions:n})=>{t.onClick=()=>n.handleButtonClick(e)},defaultStyles:{[ri.BLOCK]:{mobile:{[kt.OPACITY]:"1",[kt.INSET]:"10px 10px auto auto",[kt.POSITION]:"absolute",[kt.Z_INDEX]:"10"}},[ri.BUTTON]:{mobile:{[kt.BACKGROUND_COLOR]:"#00000000",[kt.BORDER_COLOR]:Ot.BORDER,[kt.BORDER_RADIUS]:"0px 0px 0px 0px",[kt.BORDER_STYLE]:"none",[kt.BORDER_WIDTH]:"1px",[kt.COLOR]:Ot.TEXT,[kt.PADDING]:"3px 3px 3px 3px",[kt.DISPLAY]:"flex",[kt.JUSTIFY_CONTENT]:"center"}},[ri.SVG]:{mobile:{[kt.COLOR]:"currentColor",[kt.HEIGHT]:"18px",[kt.WIDTH]:"18px"}}},render:function(e){const{block:{type:t},blockActions:n,classes:r,environment:o,finalStyleRules:i,state:s}=e,{block:a,button:l,svg:c}=r,u=fn({resolvedStyleRules:i,state:s,isDevelopment:o.isDevelopment});return V`
`},styleElements:ri};var ii=oi;const si=Object.assign({},tt);var ai={defaultStyles:{[si.BLOCK]:{mobile:{[kt.BACKGROUND_COLOR]:"#00000000",[kt.BORDER_RADIUS]:"0px 0px 0px 0px",[kt.LAYOUT_DIRECTION]:"column",[kt.LAYOUT_SPACING]:"flex-start",[kt.MARGIN]:"0px 0px 0px 0px",[kt.MAX_WIDTH]:"100%",[kt.PADDING]:"12px 12px 12px 12px",[kt.DISPLAY]:"flex",[kt.FLEX]:"1",[kt.POSITION]:"relative"}}},isEmpty:function({children:e=[]}){return 0===e.length},render:function(e){const{children:t,blockActions:n,classes:r,environment:o,finalStyleRules:i,state:s}=e,{block:a}=r,l=fn({resolvedStyleRules:i,state:s,isDevelopment:o.isDevelopment});return V`
${t}
`},styleElements:si};const li=(e,t,n)=>{for(const n of t)if(n[0]===e)return(0,n[1])();return null==n?void 0:n()},ci=Object.assign(Object.assign({},Ke),Qe),ui=Object.assign(Object.assign(Object.assign({},ct),lt),tt),pi=e=>{var t,n;const{blockActions:r,block:o,blockData:i,classes:s,content:a,environment:l,state:c}=e,{input:u,label:p}=s,d=null!==(t=a[ci.LABEL])&&void 0!==t?t:"Email",h=`input-${o.id}`;return V`
${d}
`};customElements.get("ps-floating-label")||customElements.define("ps-floating-label",class extends ve{constructor(){super(...arguments),this.id=""}static get properties(){return{inputStyleRules:{type:Object},content:{type:String},id:{type:String,reflect:!0,useDefault:!0},active:{type:Boolean},input:{type:Object,state:!0}}}getDynamicStyle(){var e,t,n,r,o,i,s,a,l,c,u,p,d,g,m,v,b,y,_,w,k,E,O,S,x,T,I,C,R;if(!this.input)return f``;const A=getComputedStyle(this.input),D=h(this.id);return f`
ps-floating-label#${D} > .floating-label {
transition: all 0.2s ease-out;
display: flex;
align-items: center;
z-index: 2; /* Country code is z-index of 1 for phone inputs */
position: absolute;
color: ${h(null!==(e=A.color)&&void 0!==e?e:"unset")};
font-size: ${h(null!==(n=null===(t=this.inputStyleRules)||void 0===t?void 0:t[kt.FLOATING_LABEL_FONT_SIZE])&&void 0!==n?n:"unset")};
font-style: ${h(null!==(r=A.fontStyle)&&void 0!==r?r:"unset")};
font-weight: ${h(null!==(o=A.fontWeight)&&void 0!==o?o:"unset")};
font-family: ${h(null!==(i=A.fontFamily)&&void 0!==i?i:"unset")};
letter-spacing: ${h(null!==(s=A.letterSpacing)&&void 0!==s?s:"unset")};
line-height: ${h(null!==(a=A.lineHeight)&&void 0!==a?a:"unset")};
top: ${h(null!==(c=null===(l=this.inputStyleRules)||void 0===l?void 0:l[kt.FLOATING_LABEL_TOP])&&void 0!==c?c:0)};
left: ${h(null!==(p=null===(u=this.inputStyleRules)||void 0===u?void 0:u[kt.FLOATING_LABEL_LEFT])&&void 0!==p?p:0)};
border-color: transparent;
border-style: solid;
}
ps-floating-label#${D}:not([active]) {
&:has(+ input:placeholder-shown:not(:focus), + *:not(:focus-within)
input:placeholder-shown) {
&:not(:has(+ * button[aria-expanded='true'])) > .floating-label {
pointer-events: none;
top: 50%;
transform: translateY(-50%);
left: calc(${h(null!==(d=A.paddingLeft)&&void 0!==d?d:"0")} - 1px);
right: ${h(null!==(g=A.paddingRight)&&void 0!==g?g:"unset")};
font-size: ${h(null!==(m=A.fontSize)&&void 0!==m?m:"unset")};
height: calc(
${h(null!==(v=A.height)&&void 0!==v?v:"0")} -
${h(null!==(b=A.borderTopWidth)&&void 0!==b?b:"0")} -
${h(null!==(y=A.borderBottomWidth)&&void 0!==y?y:"0")} -
${h("2px")}
);
border-width: ${h(null!==(_=A.borderWidth)&&void 0!==_?_:"unset")};
border-radius: ${h(null!==(w=A.borderRadius)&&void 0!==w?w:"unset")};
text-align: ${h(null!==(k=A.textAlign)&&void 0!==k?k:"unset")};
background-color: ${h(null!==(E=A.backgroundColor)&&void 0!==E?E:"unset")};
}
+ * .iti__country-container:has(button:not([aria-expanded='true'])) {
visibility: hidden;
}
}
&:has(+ input.iti__tel-input:placeholder-shown:not(:focus), + *:not(:focus-within)
input.iti__tel-input:placeholder-shown) {
&:not(:has(+ * button[aria-expanded='true'])) > .floating-label {
left: var(
--iti-spacer-horizontal,
calc(${h(null!==(O=A.paddingLeft)&&void 0!==O?O:"0")} - 1px)
);
}
}
&:has(+ textarea:placeholder-shown:not(:focus)) > .floating-label,
&:has(+ * textarea:placeholder-shown:not(:focus)) > .floating-label {
pointer-events: none;
top: ${h(null!==(S=A.paddingTop)&&void 0!==S?S:"unset")};
left: var(
--iti-spacer-horizontal,
calc(${h(null!==(x=A.paddingLeft)&&void 0!==x?x:"0")} - 1px)
);
right: ${h(null!==(T=A.paddingRight)&&void 0!==T?T:"unset")};
font-size: ${h(null!==(I=A.fontSize)&&void 0!==I?I:"unset")};
text-align: ${h(null!==(C=A.textAlign)&&void 0!==C?C:"unset")};
background-color: ${h(null!==(R=A.backgroundColor)&&void 0!==R?R:"unset")};
}
}
`}connectedCallback(){var e,t,n,r;super.connectedCallback(),this.id||(this.id="floating-label"),this.input=null!==(r=null!==(t=null===(e=this.renderRoot.parentElement)||void 0===e?void 0:e.querySelector("input"))&&void 0!==t?t:null===(n=this.renderRoot.parentElement)||void 0===n?void 0:n.querySelector("textarea"))&&void 0!==r?r:null,this.input&&(this.input.placeholder||this.input.setAttribute("placeholder"," "))}disconnectedCallback(){super.disconnectedCallback()}createRenderRoot(){return this}render(){return V`
${this.content} `}});const di="data-proceed-anyway",hi="\n border: none;\n background: transparent;\n padding: 0;\n font-size: inherit;\n text-decoration: underline;\n font-family: inherit;\n color: inherit;\n cursor: pointer;\n",fi=(e,t)=>V`
{n.preventDefault();const r=document.getElementById(e);r&&(r.value=t,r.removeAttribute(di),r.dispatchEvent(new Event("change",{bubbles:!0})))}}
>
Update email
`;const gi={addBlockActions:({block:e,blockActions:t,popupActions:n})=>{t.updateStepData=t=>{const{value:r}=t.target;n.updateStepData(e.id,r)}},defaultStyles:{[ui.BLOCK]:{mobile:{[kt.BACKGROUND_COLOR]:"#00000000",[kt.BORDER_RADIUS]:"0px 0px 0px 0px",[kt.MARGIN]:"0px 0px 0px 0px",[kt.OPACITY]:"1",[kt.PADDING]:"0px 0px 0px 0px",[kt.DISPLAY]:"flex",[kt.HEIGHT]:"fit-content",[kt.LAYOUT_DIRECTION]:"column",[kt.LAYOUT_SPACING]:"flex-start",[kt.POSITION]:"relative",[kt.Z_INDEX]:"0"}},[ui.INPUT]:{mobile:{[kt.BACKGROUND_COLOR]:Ot.INPUT_BG,[kt.BORDER_COLOR]:Ot.BORDER,[kt.BORDER_RADIUS]:"0px 0px 0px 0px",[kt.BORDER_STYLE]:"none",[kt.BORDER_WIDTH]:"1px",[kt.COLOR]:Ot.TEXT,[kt.FLOATING_LABEL_FONT_SIZE]:"10px",[kt.FLOATING_LABEL_TOP]:"0px",[kt.FLOATING_LABEL_LEFT]:"8px",[kt.FONT_FAMILY]:St,[kt.FONT_SIZE]:"16px",[kt.FONT_STYLE]:"normal",[kt.FONT_WEIGHT]:"normal",[kt.LETTER_SPACING]:"0px",[kt.LINE_HEIGHT]:"1.2",[kt.MARGIN]:"0px 0px 0px 0px",[kt.PADDING]:"8px 8px 8px 8px",[kt.TEXT_ALIGN]:"left",[kt.TEXT_DECORATION]:"none"}},[ui.LABEL]:{mobile:{[kt.COLOR]:Ot.TEXT,[kt.FONT_FAMILY]:St,[kt.FONT_SIZE]:"14px",[kt.FONT_STYLE]:"normal",[kt.FONT_WEIGHT]:"normal",[kt.LETTER_SPACING]:"0px",[kt.LINE_HEIGHT]:"1.2",[kt.MARGIN]:"0px 0px 4px 0px",[kt.TEXT_ALIGN]:"left",[kt.TEXT_DECORATION]:"none"}}},render:function(e){const{blockActions:t,block:n,classes:r,environment:o,finalStyleRules:i,state:s}=e,{block:a}=r,l=fn({resolvedStyleRules:i,state:s,isDevelopment:o.isDevelopment}),c=`input-${n.id}`;return V`
${li(n.version,[[1,()=>pi(e)],[2,()=>(e=>{var t,n,r;const{blockActions:o,block:i,blockData:s,classes:a,content:l,environment:c,state:u,finalStyleRules:p}=e,{input:d}=a,{isEditorForceFloatingLabelActive:h}=null!=u?u:{},f=null!==(t=l[ci.LABEL])&&void 0!==t?t:"Email",g=null!==(n=l[ci.PLACEHOLDER])&&void 0!==n?n:"",m=`input-${i.id}`,v=p[ui.INPUT];return V`
`})(e)]],(()=>pi(e)))}
${((e,t)=>{const n=null==e?void 0:e.error,r=document.getElementById(t),o="true"===(null==r?void 0:r.getAttribute(di)),i=Boolean(n)&&!o;let s=K;if(i)if("string"==typeof n)s=V`
${n}
`;else{const{errorMessage:e,suggestedEmail:r,correctionType:o}=n;s=r&&"SLD"===o?V`
Did you mean ${r}?
${fi(t,r)} or
${(e=>V`
{t.preventDefault();const n=document.getElementById(e);n&&(n.setAttribute(di,"true"),n.setCustomValidity(""),n.dispatchEvent(new Event("change",{bubbles:!0})));const r=n.closest("form");if(r){const e=r.querySelector('button[type="submit"]');e&&setTimeout((()=>e.click()),0)}}}
>
Proceed anyway
`)(t)}
`:r&&"TLD"===o?V`
${e}
Did you mean ${r}?
${fi(t,r)}
`:V`
${e}
`}return V`
${s}
`})(s,c)}
`},styleElements:ui,textElements:ci,validateBlockData:(e,t="")=>function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function*(){const n=`input-${e.id}`,r=document.getElementById(n);if("true"===(null==r?void 0:r.getAttribute(di)))return null;return nn(e,t.trim())||(t?dn(t):null)}))};var mi=gi;const vi=Object.assign({},Xe),bi=Object.assign(Object.assign({},st),tt),yi={defaultStyles:{[bi.BLOCK]:{mobile:{[kt.BACKGROUND_COLOR]:"#00000000",[kt.BORDER_RADIUS]:"0px 0px 0px 0px",[kt.MARGIN]:"0px 0px 0px 0px",[kt.OPACITY]:"1",[kt.PADDING]:"0px 0px 0px 0px",[kt.POSITION]:"relative"}},[bi.HEADING]:{mobile:{[kt.COLOR]:Ot.TEXT,[kt.FONT_FAMILY]:St,[kt.FONT_SIZE]:"30px",[kt.FONT_STYLE]:"normal",[kt.FONT_WEIGHT]:"bold",[kt.LETTER_SPACING]:"0px",[kt.LINE_HEIGHT]:"1.1",[kt.TEXT_ALIGN]:"center",[kt.TEXT_DECORATION]:"none",[kt.MARGIN]:"0px 0px 0px 0px"}}},render:function(e){var t;const{block:n,blockActions:r,classes:o,content:i,environment:s,finalStyleRules:a,state:l}=e,{block:c,heading:u}=o,p=fn({resolvedStyleRules:a,state:l,isDevelopment:s.isDevelopment}),d=null!==(t=i[vi.HEADING])&&void 0!==t?t:"";return V`
${qo(d,n,s)}
`},styleElements:bi,textElements:vi};var _i=yi;const wi=["January","February","March","April","May","June","July","August","September","October","November","December"],ki=(e=1)=>new Date(1904,e,0).getDate(),Ei=(e,t)=>{if(void 0!==e&&void 0!==t)return`${e.toString().padStart(2,"0")}-${t.toString().padStart(2,"0")}`};customElements.get("ps-month-day-input")||customElements.define("ps-month-day-input",class extends ve{static get properties(){return{id:{type:String},inputClasses:{type:Object},ariaDescribedBy:{type:String,attribute:"aria-describedby"},label:{type:String},value:{type:String},required:{type:Boolean},error:{type:Boolean},arrow:{type:String},readonly:{type:Boolean},month:{type:Number,state:!0},day:{type:Number,state:!0}}}update(e){super.update(e)}dispatchChangeEvent(){const e=new CustomEvent("change",{detail:Ei(this.month,this.day),bubbles:!0,composed:!0,cancelable:!0});this.dispatchEvent(e)}handleMonthChange(e){var t;e.stopPropagation();const n=e.target,r=parseInt(null!==(t=n.value)&&void 0!==t?t:"",10);this.month=Number.isNaN(r)?void 0:r;const o=ki(this.month);(void 0===this.month||void 0!==this.day&&this.day>o)&&(this.day=void 0),this.dispatchChangeEvent()}handleDayChange(e){var t;e.stopPropagation();const n=e.target,r=parseInt(null!==(t=n.value)&&void 0!==t?t:"",10);this.day=Number.isNaN(r)?void 0:r,this.dispatchChangeEvent()}createRenderRoot(){return this}render(){var e,t;return V`
({label:e,value:(t+1).toString()})))]}"
data-popup-engagement="true"
?required=${ye(!!this.required||void 0)}
@change=${this.handleMonthChange}
.value=${ye(null===(e=this.month)||void 0===e?void 0:e.toString())}
>
`}});const Oi=Object.assign({},Ke),Si=Object.assign(Object.assign(Object.assign({},tt),lt),ct),xi={addBlockActions:({block:e,blockActions:t,popupActions:n})=>{t.updateStepData=t=>{n.updateStepData(e.id,t)}},defaultStyles:{[Si.BLOCK]:{mobile:{[kt.BACKGROUND_COLOR]:"#00000000",[kt.BORDER_RADIUS]:"0px 0px 0px 0px",[kt.MARGIN]:"0px 0px 0px 0px",[kt.OPACITY]:"1",[kt.PADDING]:"0px 0px 0px 0px",[kt.GAP]:"6px 6px",[kt.DISPLAY]:"flex",[kt.HEIGHT]:"fit-content",[kt.LAYOUT_DIRECTION]:"column",[kt.LAYOUT_SPACING]:"stretch",[kt.POSITION]:"relative"}},[Si.INPUT]:{mobile:{[kt.BACKGROUND_COLOR]:Ot.INPUT_BG,[kt.BORDER_COLOR]:Ot.BORDER,[kt.BORDER_RADIUS]:"0px 0px 0px 0px",[kt.BORDER_STYLE]:"none",[kt.BORDER_WIDTH]:"1px",[kt.COLOR]:Ot.TEXT,[kt.DROPDOWN_ARROW]:"chevron",[kt.FONT_FAMILY]:St,[kt.FONT_SIZE]:"16px",[kt.FONT_STYLE]:"normal",[kt.FONT_WEIGHT]:"normal",[kt.LETTER_SPACING]:"0px",[kt.LINE_HEIGHT]:"1.2",[kt.MARGIN]:"0px 0px 0px 0px",[kt.PADDING]:"8px 8px 8px 8px",[kt.TEXT_ALIGN]:"left",[kt.TEXT_DECORATION]:"none",[kt.WIDTH]:"100%"}}},render:function(e){var t,n,r;const{block:o,blockActions:i,blockData:s,classes:a,content:l,environment:c,finalStyleRules:u,state:p}=e,{block:d,input:h}=a,f=fn({resolvedStyleRules:u,state:p,isDevelopment:c.isDevelopment}),g=null!==(t=l[Oi.LABEL])&&void 0!==t?t:"Date field",m=null===(n=u[_t.INPUT])||void 0===n?void 0:n[kt.DROPDOWN_ARROW],v=`input-${o.id}`;return V`
{i.updateStepData(e.detail)}}
>
${zt(p,v)}
`},styleElements:Si,textElements:Oi,validateBlockData:(e,t="")=>nn(e,t.trim())};var Ti=xi;const Ii=Array.from({length:4},(()=>"–")).join(" "),Ci=Object.assign(Object.assign({},Je),Ze),Ri=Object.assign(Object.assign(Object.assign(Object.assign({},tt),rt),lt),yt),Ai={addBlockActions:({block:e,blockActions:t,popupActions:n})=>{t.updateStepData=t=>{n.updateStepData(e.id,t)},t.getNode=n.getNode,t.resendOtp=()=>{var t;return null===(t=n.resendOtp)||void 0===t?void 0:t.call(n,e)},t.goBackToPhoneNumberStep=()=>{var e;return null===(e=n.goBackToPhoneNumberStep)||void 0===e?void 0:e.call(n)}},defaultStyles:{[Ri.BLOCK]:{mobile:{[kt.BACKGROUND_COLOR]:"#00000000",[kt.BORDER_RADIUS]:"0px 0px 0px 0px",[kt.MARGIN]:"0px 0px 8px 0px",[kt.OPACITY]:"1",[kt.PADDING]:"0px 0px 0px 0px",[kt.POSITION]:"relative"}},[Ri.BUTTON]:{mobile:{[kt.BACKGROUND_COLOR]:"#00000000",[kt.BORDER_COLOR]:Ot.BORDER,[kt.BORDER_RADIUS]:"0px 0px 0px 0px",[kt.BORDER_STYLE]:"none",[kt.BORDER_WIDTH]:"1px",[kt.COLOR]:Ot.TEXT,[kt.FONT_FAMILY]:St,[kt.FONT_SIZE]:"16px",[kt.FONT_STYLE]:"normal",[kt.FONT_WEIGHT]:"normal",[kt.LETTER_SPACING]:"0px",[kt.LINE_HEIGHT]:"1.2",[kt.MARGIN]:"8px 0px 8px 0px",[kt.PADDING]:"8px 8px 8px 8px",[kt.TEXT_DECORATION]:"underline",[kt.TEXT_ALIGN]:"center"}},[Ri.INPUT]:{mobile:{[kt.BACKGROUND_COLOR]:Ot.INPUT_BG,[kt.BORDER_COLOR]:Ot.BORDER,[kt.BORDER_RADIUS]:"0px 0px 0px 0px",[kt.BORDER_STYLE]:"none",[kt.BORDER_WIDTH]:"1px",[kt.COLOR]:Ot.TEXT,[kt.FONT_FAMILY]:St,[kt.FONT_SIZE]:"16px",[kt.FONT_STYLE]:"normal",[kt.FONT_WEIGHT]:"normal",[kt.LETTER_SPACING]:"0px",[kt.LINE_HEIGHT]:"1.2",[kt.MARGIN]:"0px 0px 0px 0px",[kt.PADDING]:"0px 0px 0px 0px",[kt.TEXT_ALIGN]:"center",[kt.TEXT_DECORATION]:"none",[kt.WIDTH]:"100%"}},[Ri.TEXT]:{mobile:{[kt.COLOR]:Ot.TEXT,[kt.FONT_FAMILY]:St,[kt.FONT_SIZE]:"16px",[kt.FONT_STYLE]:"normal",[kt.FONT_WEIGHT]:"normal",[kt.TEXT_ALIGN]:"center",[kt.TEXT_DECORATION]:"none",[kt.LINE_HEIGHT]:"1.2",[kt.MARGIN]:"0px 0px 0px 0px"}}},render:function(e){var t,n,r,o,i,s;const{block:a,blockActions:l,classes:c,content:u,currentStep:p,environment:d,finalStyleRules:h,popupData:f,state:g}=e,m=`input-${a.id}`,v=null!==(r=null===(n=null!==(t=null==f?void 0:f.phone)&&void 0!==t?t:null==f?void 0:f.phoneNumberLastFour)||void 0===n?void 0:n.slice(-4))&&void 0!==r?r:d.isDevelopment?"7890":"",{block:b,button:y,input:_,text:w}=c,k=null!==(o=u[Ci.PARAGRAPH])&&void 0!==o?o:"",E=null!==(i=u[Ci.BUTTON])&&void 0!==i?i:"";return V`
${"Opt-in Network Verify"!==(null==p?void 0:p.name)?V`
${k}
${E}
${qt(g,m)}
`:V`
We've sent you a confirmation code to verify your phone
number${v?` ending in ${v}.`:"."}
Not your phone number?
Enter it now
${qt(g,m)}
${k}
${E}
${qt(g,m)}
`}
{var t,n;if(e.preventDefault(),!e.target)return;const r=e.target,o=r.value.replace(/\D/g,"").slice(0,4),i=4===o.length;l.updateStepData(o),r.value=o,i&&(null===(n=null===(t=r.closest("form"))||void 0===t?void 0:t.querySelector('[type="submit"]'))||void 0===n||n.click())}}
required=${ye(!!(null===(s=a.config)||void 0===s?void 0:s.required)||void 0)}
/>
${zt(g,m)}
`},styleElements:Ri,textElements:Ci,validateBlockData:(e,t="")=>{const n=((e,t,n=`This field must be ${t} characters long`)=>e.length===t?null:n)((e=>e.replace(/\D/g,""))(t),4,"Please enter the complete code");return null!=n?n:null}};var Di=Ai;function Ni(e,t,n){return e?t():null==n?void 0:n()}var Li=o(679),Pi=o.n(Li);class $i extends ve{constructor(){super(...arguments),this.phoneInputBindingTimeout=null,this.setPhoneInputInstance=()=>{var e;this.phoneInputBindingTimeout&&(this.input&&this.input.offsetWidth>0?(this.phoneInputInstance=Pi()(this.input,{autoPlaceholder:"off",countrySearch:!1,dropdownContainer:null,fixDropdownWidth:!1,formatAsYouType:!1,formatOnDisplay:!1,initialCountry:null!==(e=this.countryCode)&&void 0!==e?e:"US",preferredCountries:["us","ca"],showSelectedDialCode:!0,useFullscreenPopup:this.viewport===We,utilsScript:"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/21.2.8/js/utils.js"}),this.phoneInputBindingTimeout=null,this.selectedCountryButton=this.renderRoot.querySelector(".iti__selected-country"),this.setSelectedCountryButtonAriaLabel()):requestAnimationFrame(this.setPhoneInputInstance))},this.setSelectedCountryButtonAriaLabel=()=>{var e,t,n;const{name:r,dialCode:o}=null!==(t=null===(e=this.phoneInputInstance)||void 0===e?void 0:e.getSelectedCountryData())&&void 0!==t?t:{};null===(n=this.selectedCountryButton)||void 0===n||n.setAttribute("aria-label",`Selected country ${r} +${o}`)},this.handleCountryChange=()=>{var e;null===(e=this.selectedCountryButton)||void 0===e||e.focus(),this.setSelectedCountryButtonAriaLabel()}}static get properties(){return{inputId:{type:String},countryCode:{type:String},phoneInputInstance:{type:Object,state:!0},finalInputStyleRules:{type:Object},viewport:{type:String}}}createRenderRoot(){return this}getFormattedInputValue(){var e;return null===(e=this.phoneInputInstance)||void 0===e?void 0:e.getNumber()}startPhoneInputBindingTimeout(){this.phoneInputBindingTimeout=window.setTimeout((()=>{this.phoneInputBindingTimeout=null}),5e3)}updatePhoneInput(){requestAnimationFrame(this.setPhoneInputInstance)}getValidationError(){var e,t,n,r,o,i;if(null===(e=this.phoneInputInstance)||void 0===e?void 0:e.isValidNumber())return null;switch(null===(t=this.phoneInputInstance)||void 0===t?void 0:t.getValidationError()){case null===(r=null===(n=window.intlTelInputUtils)||void 0===n?void 0:n.validationError)||void 0===r?void 0:r.TOO_SHORT:return"Phone number is too short";case null===(i=null===(o=window.intlTelInputUtils)||void 0===o?void 0:o.validationError)||void 0===i?void 0:i.TOO_LONG:return"Phone number is too long";default:return"Invalid phone number"}}firstUpdated(e){super.firstUpdated(e),this.updatePhoneInput()}static closeDropdownOnScroll(){window.dispatchEvent(new Event("scroll",{cancelable:!0,bubbles:!0}))}copyInputBlockFinalStyleRules(){const e=this.renderRoot,{margin:t}=this.finalInputStyleRules;t&&(e.style.margin=t)}copyInputComputedStyle(){if(!this.input)return null;this.renderRoot.style.margin=getComputedStyle(this.input).margin}updated(e){super.updated(e),this.copyInputBlockFinalStyleRules()}connectedCallback(){var e,t;super.connectedCallback(),this.startPhoneInputBindingTimeout(),this.input=this.renderRoot.querySelector(`.${this.inputId}`),null===(e=this.input)||void 0===e||e.addEventListener("countrychange",this.handleCountryChange),this.copyInputComputedStyle(),null===(t=document.querySelector("form"))||void 0===t||t.addEventListener("scroll",$i.closeDropdownOnScroll)}disconnectedCallback(){var e,t,n;super.disconnectedCallback(),null===(e=this.input)||void 0===e||e.removeEventListener("countrychange",this.handleCountryChange),null===(t=this.phoneInputInstance)||void 0===t||t.destroy(),null===(n=document.querySelector("form"))||void 0===n||n.removeEventListener("scroll",$i.closeDropdownOnScroll),this.phoneInputBindingTimeout&&clearTimeout(this.phoneInputBindingTimeout)}}customElements.get("ps-phone-input-block-iti-wrapper")||customElements.define("ps-phone-input-block-iti-wrapper",$i);const Bi=Object.assign(Object.assign({},Ke),Qe),ji=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},tt),lt),ct),ut),ft),Mi={color:"",fontFamily:"",fontSize:"",margin:"",padding:"",floatingLabelFontSize:""},Ui=e=>{var t,n,r;const{block:o,blockActions:i,blockData:s,classes:a,content:l,environment:c,finalStyleRules:u,state:p}=e,{input:d,label:h}=a,f=null!==(t=l[Bi.LABEL])&&void 0!==t?t:"Phone",g=null!==(n=u[ji.INPUT])&&void 0!==n?n:Mi,m=`input-${o.id}`;return V`
${f}
`},Fi=e=>e.replace(/\n\s+/g,""),Gi=(e,t={})=>{var n;let r={};for(let o=0;o(null==e?void 0:e.startsWith(Ft))&&10===(null==e?void 0:e.length),Wi=e=>{const{block:t,classes:n,disclaimer:r}=e,o=`input-${t.id}`,{disclaimerText:i,disclaimerUrls:s}=(e=>{const{privacy_policy:t,terms_of_service:n,text:r}=e;return{disclaimerText:{preTerms:r.split(Dt)[0],terms:n.text,betweenTermsAndPrivacy:r.split(Dt)[1].split(Nt)[0],privacy:t.text,postPrivacy:r.split(Nt)[1]},disclaimerUrls:{terms:n.url,privacy:t.url}}})(r),{link:a,small:l}=n;return V`
${i.preTerms}
${i.terms}
${i.betweenTermsAndPrivacy}
${i.privacy} ${i.postPrivacy}
`},Yi={addBlockActions:({block:e,blockActions:t,popupActions:n})=>{t.updateStepData=t=>{var r,o;const{value:i}=t.target,s=null===(o=null===(r=t.target)||void 0===r?void 0:r.closest("ps-phone-input-block-iti-wrapper"))||void 0===o?void 0:o.getFormattedInputValue();Hi(i)||n.updateStepData(e.id,null!=s?s:i)},t.handleInput=t=>{var r;const{value:o}=t.target;o.startsWith(Ft)&&!Hi(o)&&(n.updateStepData(e.id,""),t.target.value=""),null===(r=n.updatePopupData)||void 0===r||r.call(n,{matchToken:void 0})}},defaultStyles:{[ji.BLOCK]:{mobile:{[kt.BACKGROUND_COLOR]:"#00000000",[kt.BORDER_RADIUS]:"0px 0px 0px 0px",[kt.MARGIN]:"0px 0px 8px 0px",[kt.OPACITY]:"1",[kt.PADDING]:"0px 0px 0px 0px",[kt.POSITION]:"relative",[kt.Z_INDEX]:"1",[kt.DISPLAY]:"flex",[kt.LAYOUT_DIRECTION]:"column"}},[ji.LABEL]:{mobile:{[kt.COLOR]:Ot.TEXT,[kt.FONT_FAMILY]:St,[kt.FONT_SIZE]:"14px",[kt.FONT_STYLE]:"normal",[kt.FONT_WEIGHT]:"normal",[kt.LETTER_SPACING]:"0px",[kt.LINE_HEIGHT]:"1.2",[kt.MARGIN]:"0px 0px 4px 0px",[kt.TEXT_ALIGN]:"left",[kt.TEXT_DECORATION]:"none",[kt.DISPLAY]:"block"}},[ji.INPUT]:{mobile:{[kt.BACKGROUND_COLOR]:Ot.INPUT_BG,[kt.BORDER_COLOR]:Ot.BORDER,[kt.BORDER_RADIUS]:"0px 0px 0px 0px",[kt.BORDER_STYLE]:"none",[kt.BORDER_WIDTH]:"1px",[kt.COLOR]:Ot.TEXT,[kt.FLOATING_LABEL_FONT_SIZE]:"10px",[kt.FLOATING_LABEL_TOP]:"0px",[kt.FLOATING_LABEL_LEFT]:"8px",[kt.FONT_FAMILY]:St,[kt.FONT_SIZE]:"16px",[kt.FONT_STYLE]:"normal",[kt.FONT_WEIGHT]:"normal",[kt.LETTER_SPACING]:"0px",[kt.LINE_HEIGHT]:"1.2",[kt.MARGIN]:"0px 0px 0px 0px",[kt.PADDING]:"0px 0px 0px 0px",[kt.TEXT_ALIGN]:"left",[kt.TEXT_DECORATION]:"none",[kt.WIDTH]:"100%"}},[ji.SMALL]:{mobile:{[kt.BACKGROUND_COLOR]:"#00000000",[kt.COLOR]:Ot.TEXT,[kt.FONT_FAMILY]:St,[kt.FONT_SIZE]:"10px",[kt.FONT_STYLE]:"normal",[kt.FONT_WEIGHT]:"normal",[kt.LETTER_SPACING]:"0px",[kt.LINE_HEIGHT]:"1.2",[kt.MARGIN]:"8px 0px 0px 0px",[kt.PADDING]:"0px 0px 0px 0px",[kt.TEXT_ALIGN]:"center",[kt.ORDER]:"0",[kt.DISPLAY]:"block"}},[ji.LINK]:{mobile:{[kt.COLOR]:Ot.TEXT,[kt.TEXT_DECORATION]:"underline",[kt.FONT_WEIGHT]:"bold",[kt.TEXT_TRANSFORM]:"uppercase"}}},render:function(e){var t;const{block:n,blockActions:r,classes:o,environment:i,finalStyleRules:s,state:a}=e,{block:l}=o,c=fn({resolvedStyleRules:s,state:a,isDevelopment:i.isDevelopment}),u=`input-${n.id}`,p="-1"===(null!==(t=s[ji.SMALL])&&void 0!==t?t:{order:"0"}).order;return V`
${Ni(p,(()=>Wi(e)),(()=>K))}
${li(n.version,[[1,()=>Ui(e)],[2,()=>(e=>{var t,n,r,o;const{block:i,blockActions:s,blockData:a,classes:l,content:c,environment:u,finalStyleRules:p,state:d}=e,{input:h}=l,{isEditorForceFloatingLabelActive:f}=null!=d?d:{},g=null!==(t=c[Bi.LABEL])&&void 0!==t?t:"Phone",m=null!==(n=c[Bi.PLACEHOLDER])&&void 0!==n?n:"",v=null!==(r=p[ji.INPUT])&&void 0!==r?r:Mi,b=`input-${i.id}`;return V`
`})(e)]],(()=>Ui(e)))}
${zt(a,u)}
${Ni(!p,(()=>Wi(e)),(()=>K))}
`},styleElements:ji,textElements:Bi,validateBlockData:(e,t)=>{var n,r;if(Hi(t))return null;return nn(e,t,"Please enter a valid phone number")||(t&&null!==(r=null===(n=document.querySelector("ps-phone-input-block-iti-wrapper"))||void 0===n?void 0:n.getValidationError())&&void 0!==r?r:null)}};var zi=Yi;const qi=Object.assign({},tt);var Vi={defaultStyles:{[qi.BLOCK]:{mobile:{[kt.BACKGROUND_COLOR]:Ot.POPUP_BG,[kt.BORDER_RADIUS]:"0px 0px 0px 0px",[kt.LAYOUT_DIRECTION]:"column",[kt.LAYOUT_SPACING]:"center",[kt.MARGIN]:"0px 0px 0px 0px",[kt.MAX_WIDTH]:"340px",[kt.MIN_HEIGHT]:"240px",[kt.OPACITY]:"1",[kt.PADDING]:"30px 30px 30px 30px",[kt.DISPLAY]:"flex",[kt.POSITION]:"relative",[kt.WIDTH]:"100%"},desktop:{[kt.MAX_WIDTH]:"450px"}}},isEmpty:function({children:e=[]}){return 0===e.length},render:function(e){const{blockActions:t,classes:n}=e,{block:r}=n;return V`
`},styleElements:qi};const Zi="important",Xi=" !"+Zi,Ki=_e(class extends we{constructor(e){var t;if(super(e),1!==e.type||"style"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce(((t,n)=>{const r=e[n];return null==r?t:t+`${n=n.includes("-")?n:n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`}),"")}update(e,[t]){const{style:n}=e.element;if(void 0===this.ht){this.ht=new Set;for(const e in t)this.ht.add(e);return this.render(t)}this.ht.forEach((e=>{null==t[e]&&(this.ht.delete(e),e.includes("-")?n.removeProperty(e):n[e]="")}));for(const e in t){const r=t[e];if(null!=r){this.ht.add(e);const t="string"==typeof r&&r.endsWith(Xi);e.includes("-")||t?n.setProperty(e,t?r.slice(0,-11):r,t?Zi:""):n[e]=r}}return X}}),Ji=(e,t)=>{var n;return(null===(n=e[t])||void 0===n?void 0:n.backgroundImage)?V`
`:K},Qi=Object.assign(Object.assign(Object.assign({},ht),tt),nt),es={[Qi.BLOCK]:{mobile:{[kt.BORDER_RADIUS]:"0px 0px 0px 0px",[kt.BACKGROUND_COLOR]:Ot.POPUP_BG,[kt.PADDING]:"0px 0px 0px 0px",[kt.BORDER_STYLE]:"none",[kt.BORDER_WIDTH]:"0px",[kt.BORDER_COLOR]:Ot.BORDER,[kt.ROOT_BACKGROUND_IMAGE_GRID_COLUMN_WIDTH]:"50%",[kt.DISPLAY]:"grid",[kt.OVERFLOW]:"hidden",[kt.POSITION]:"relative",[kt.ROOT_LAYOUT]:Bt,[kt.MAX_WIDTH]:"100%",[kt.MIN_HEIGHT]:"100%",[kt.WIDTH]:"100%"}},[Qi.MAIN_POPUP_CONTAINER]:{mobile:{[kt.LAYOUT_DIRECTION]:"column",[kt.LAYOUT_SPACING]:"center",[kt.OPACITY]:"1",[kt.PADDING]:"30px 30px 30px 30px",[kt.DISPLAY]:"flex",[kt.GRID_AREA]:Pt,[kt.WIDTH]:"100%"}},[Qi.ROOT_BACKGROUND_IMAGE_DIV]:{mobile:{[kt.HEIGHT]:"200px",[kt.BACKGROUND_SIZE]:"cover",[kt.PADDING]:"0px 0px 0px 0px",[kt.BACKGROUND_POSITION]:"50% 50%",[kt.BORDER_STYLE]:"none",[kt.BORDER_WIDTH]:"0px",[kt.BORDER_COLOR]:Ot.BORDER,[kt.BORDER_RADIUS]:"0px 0px 0px 0px",[kt.DISPLAY]:"block",[kt.GRID_AREA]:Lt,[kt.WIDTH]:"100%",[kt.POSITION]:"relative",[kt.OVERFLOW]:"hidden"}}},ts={[kt.POSITION]:"relative",[kt.OVERFLOW]:"hidden",[kt.BORDER_RADIUS]:"inherit",[kt.WIDTH]:"100%",[kt.HEIGHT]:"100%"};var ns={defaultStyles:es,isEmpty:function({children:e=[]}){return 0===e.length},render:function(e){var t;const{blockActions:n,classes:r,environment:o,finalStyleRules:i,state:s}=e,a=null===(t=i[_t.BLOCK])||void 0===t?void 0:t[kt.ROOT_LAYOUT],{block:l,rootBackgroundImageDiv:c,mainPopupContainer:u}=r,p=fn({resolvedStyleRules:i,state:s,isDevelopment:o.isDevelopment});return V`
${Ji(i,_t.BLOCK)}
${a!==Bt?V`
${Ji(i,_t.ROOT_BACKGROUND_IMAGE_DIV)}
`:K}
`},styleElements:Qi};const rs=e=>360/e.length,os=e=>rs(e)/2,is=(e,t)=>rs(t)*e,ss={[_t.SPIN_TO_WIN_SECTION_BORDER]:{mobile:{[kt.BORDER_TOP_COLOR]:Ot.BORDER,[kt.BORDER_TOP_STYLE]:"solid",[kt.BORDER_TOP_WIDTH]:"2px",[kt.INSET]:"50% auto auto 50%",[kt.POSITION]:"absolute",[kt.TRANSFORM_ORIGIN]:"0 0",[kt.WIDTH]:"50%"}}};const as={TEAR:"M35.5 0L54.9478 41.4677C61.6153 55.6846 51.2231 72 35.5 72C19.7769 72 9.38466 55.6846 16.0522 41.4678L35.5 0Z",TEAR_ROUNDED:"M30.674 3.602c1.867-4.803 8.785-4.803 10.652 0l15.206 39.102C62.03 56.839 51.404 72 36 72S9.97 56.839 15.468 42.704L30.674 3.602Z",TRIANGLE:"M35.5 0 64 72H7L35.5 0Z",TRIANGLE_ROUNDED:"M31.35 2.697c1.461-3.705 6.815-3.549 8.169.197 8.864 24.522 15.116 33.443 23.982 57.98C65.47 66.321 61.367 72 55.568 72H16.526C10.519 72 6.4 65.959 8.6 60.378l22.75-57.68Z"},ls={[_t.PATH]:{mobile:{[kt.FILL]:Ot.STOPPER,[kt.STROKE]:Ot.BORDER,[kt.STROKE_WIDTH]:"2px"}},[_t.SVG]:{mobile:{[kt.DISPLAY]:"block",[kt.POSITION]:"absolute",[kt.TRANSFORM]:"translate(-50%, 0) rotate(180deg)"}}};const cs={[_t.TEXT]:{mobile:{[kt.FONT_FAMILY]:St,[kt.FONT_STYLE]:"normal",[kt.FONT_WEIGHT]:"normal",[kt.TEXT_DECORATION]:"none",[kt.INSET]:"50% auto auto 50%",[kt.MARGIN]:"unset",[kt.POSITION]:"absolute",[kt.TEXT_ALIGN]:"center",[kt.TRANSFORM_ORIGIN]:"left center",[kt.WIDTH]:"50%"}}};const us={[Ut.TOP]:0,[Ut.RIGHT]:90,[Ut.BOTTOM]:180,[Ut.LEFT]:270},ps=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},tt),dt),gt),mt),vt),bt),yt),ds={defaultStyles:Object.assign(Object.assign(Object.assign({[ps.BLOCK]:{mobile:{[kt.ALIGN_SELF]:"center",[kt.MARGIN]:"0px 0px 0px 0px",[kt.SPIN_TO_WIN_DURATION]:"8000ms",[kt.WIDTH]:"100%",[kt.POSITION]:"relative"}},[ps.SPIN_TO_WIN_CENTER]:{mobile:{[kt.BACKGROUND_COLOR]:Ot.SPIN_TO_WIN_CENTER_BG,[kt.BORDER_COLOR]:Ot.BORDER,[kt.BORDER_STYLE]:"none",[kt.BORDER_WIDTH]:"1px",[kt.HEIGHT]:"20px",[kt.WIDTH]:"20px",[kt.BACKGROUND_POSITION]:"center",[kt.BACKGROUND_REPEAT]:"no-repeat",[kt.BACKGROUND_SIZE]:"contain",[kt.BACKGROUND_OPACITY]:"1",[kt.BORDER_RADIUS]:"50%",[kt.INSET]:"50% auto auto 50%",[kt.POSITION]:"absolute",[kt.TRANSFORM]:"translate(-50%, -50%)",[kt.OVERFLOW]:"hidden"}},[ps.SPIN_TO_WIN_MAIN_WHEEL]:{mobile:{[kt.BORDER_COLOR]:Ot.BORDER,[kt.BORDER_STYLE]:"solid",[kt.BORDER_WIDTH]:"2px",[kt.BORDER_RADIUS]:"50%",[kt.INSET]:"0px 0px 0px 0px",[kt.POSITION]:"absolute"}}},ss),ls),cs),render:function({block:e,blockActions:t,classes:n,environment:r,finalStyleRules:o,state:i}){var s,a,l,c;if(!(null===(s=e.config)||void 0===s?void 0:s.spinToWin))return K;const{isDevelopment:u,viewport:p}=r,{handleReorderDragEnd:d,handleReorderDragStart:h,handleReorderDrop:f,selectBlock:g}=t,{animation:m,sections:v,stopper:b,startingSection:y}=e.config.spinToWin,{isSpinning:_=!1}=null!=i?i:{},{block:w,path:k,spinToWinSectionBorder:E,spinToWinCenter:O,spinToWinMainWheel:S,svg:x,text:T}=n,I=fn({resolvedStyleRules:o,state:i,isDevelopment:r.isDevelopment}),C=null!==(a=[...v].sort(((e,t)=>e.order-t.order)))&&void 0!==a?a:v,R=`The wheel is spinning. You've won ${C[0].text}. You'll be taken to the next step shortly.`,A=[...C.slice(y),...C.slice(0,y)],{stopperPosition:D=Ut.BOTTOM}=null!==(l=Gi(p,b.position))&&void 0!==l?l:{},N=us[D],L=N-os(A)-90-os(A)/3,P=(({rotations:e,sections:t,startingSection:n})=>360*e+(rs(t)*n-os(t)/3))({rotations:null!==(c=null==m?void 0:m.rotations)&&void 0!==c?c:7,startingSection:y,sections:A});return V`
${((e,t)=>{const n=`${jt/e.length} ${jt}`;return Z`
${e.map((({styles:r},o)=>{var i;const{sectionColor:s="#FFFFFF"}=null!==(i=Gi(t,r))&&void 0!==i?i:{};return Z`
`}))}
`})(A,p)}
${((e,t)=>V`
${t.map(((n,r)=>V`
`))}
`)(ke(E),A)}
${(({finalStyleRules:e,psCssClasses:t,sections:n,viewport:r})=>{var o,i,s,a,l,c,u,p;const d="none"!==(null!==(i=null===(o=e[_t.SPIN_TO_WIN_MAIN_WHEEL])||void 0===o?void 0:o.borderStyle)&&void 0!==i?i:"none")&&null!==(a=null===(s=e[_t.SPIN_TO_WIN_MAIN_WHEEL])||void 0===s?void 0:s.borderWidth)&&void 0!==a?a:"0px",h=rs(n)*Math.PI/180,f=parseFloat((null!==(c=null===(l=e[_t.SPIN_TO_WIN_CENTER])||void 0===l?void 0:l.width)&&void 0!==c?c:"0px").replace("px",""))/2,g=parseFloat(d.replace("px","")),m=parseFloat((null!==(p=null===(u=e[_t.BLOCK])||void 0===u?void 0:u.width)&&void 0!==p?p:"0px").replace("px",""))/2-g,v=(4*Math.sin(h/2)/(3*h)*((Math.pow(m,3)-Math.pow(f,3))/(Math.pow(m,2)-Math.pow(f,2)))-m/2)/2;return V`
${n.map((({styles:e,text:o},i)=>{var s;const{color:a=Ot.TEXT,fontSize:l="16px"}=null!==(s=Gi(r,e))&&void 0!==s?s:{};return V`
rs(t)*e+os(t))(i,n)}deg);\n `)}
>
${o}
`}))}
`})({finalStyleRules:o,psCssClasses:T,sections:A,viewport:p})}
${(({finalStyleRules:e,position:t,psCssClasses:n,stopperRotationOffset:r,type:o})=>{var i,s;const a=`calc(${null!==(s=null===(i=e[_t.PATH])||void 0===i?void 0:i.strokeWidth)&&void 0!==s?s:"0"} * 2)`,l=(e=>e===Ut.LEFT||e===Ut.RIGHT?(parseFloat(Mt)/100+1)*parseFloat(Mt)+"%":Mt)(t),c=`calc(${l} / -2) auto auto 50%`;return V`
`})({finalStyleRules:o,position:D,psCssClasses:{stopperPathClasses:k,stopperSvgClasses:x},stopperRotationOffset:N,type:b.type})}
${(null==i?void 0:i.isSpinning)?R:K}
`},styleElements:ps};var hs=ds;const fs=Object.assign({},Ze),gs=Object.assign(Object.assign(Object.assign(Object.assign({},tt),rt),ot),bt),ms={[gs.BLOCK]:{mobile:{[kt.POSITION]:"relative"}},[gs.BUTTON]:{mobile:{[kt.BACKGROUND_COLOR]:Ot.PRIMARY_BUTTON_BG,[kt.BORDER_COLOR]:Ot.BORDER,[kt.BORDER_RADIUS]:"0px 0px 0px 0px",[kt.BORDER_STYLE]:"none",[kt.BORDER_WIDTH]:"1px",[kt.COLOR]:Ot.PRIMARY_BUTTON_TEXT,[kt.FONT_FAMILY]:St,[kt.FONT_SIZE]:"16px",[kt.FONT_STYLE]:"normal",[kt.FONT_WEIGHT]:"400",[kt.PADDING]:"8px 8px 8px 8px",[kt.TEXT_DECORATION]:"none",[kt.WIDTH]:"100%"}},[gs.CLOSE_TEASER_BUTTON]:{mobile:{[kt.ALIGN_ITEMS]:"center",[kt.BACKGROUND_COLOR]:Ot.TEASER_CLOSE_BUTTON_BG,[kt.BORDER_COLOR]:"unset",[kt.BORDER_RADIUS]:"99em",[kt.BORDER_STYLE]:"unset",[kt.BORDER_WIDTH]:"unset",[kt.COLOR]:Ot.TEXT,[kt.DISPLAY]:"flex",[kt.HEIGHT]:"24px",[kt.JUSTIFY_CONTENT]:"center",[kt.LAYOUT_SPACING]:"center",[kt.PADDING]:"0px 0px 0px 0px",[kt.POSITION]:"absolute",[kt.WIDTH]:"24px",[kt.TEASER_CLOSE_BUTTON_POSITION]:"TOP_LEFT_CORNER"}},[gs.SVG]:{mobile:{[kt.HEIGHT]:"16px",[kt.WIDTH]:"16px"}}},vs={addBlockActions:({block:e,blockActions:t,environment:n,popupActions:r})=>{t.onClick=()=>{var t;(null==n?void 0:n.isDevelopment)?null===(t=r.selectBlock)||void 0===t||t.call(r,e.id):r.handleTeaserClick()},t.onCloseButtonClick=()=>{r.hardClose()}},defaultStyles:ms,render:function(e){var t,n,r,o,i,s,a;const{block:l,blockActions:c,classes:u,content:p,environment:d,finalStyleRules:h}=e,f=`teaser-${l.id}`,g=`close-teaser-${l.id}`,{block:m,button:v,closeTeaserButton:b,svg:y}=u,_=null!==(n=null===(t=h[gs.BUTTON])||void 0===t?void 0:t[kt.PADDING])&&void 0!==n?n:ms[gs.BUTTON].mobile[kt.PADDING],w=null!==(o=null===(r=h[gs.CLOSE_TEASER_BUTTON])||void 0===r?void 0:r[kt.WIDTH])&&void 0!==o?o:ms[gs.CLOSE_TEASER_BUTTON].mobile[kt.WIDTH],k=null!==(s=null===(i=h[gs.CLOSE_TEASER_BUTTON])||void 0===i?void 0:i[kt.TEASER_CLOSE_BUTTON_POSITION])&&void 0!==s?s:ms[gs.CLOSE_TEASER_BUTTON].mobile[kt.TEASER_CLOSE_BUTTON_POSITION],E=null!==(a=p[fs.BUTTON])&&void 0!==a?a:"Button";return V`
{const[,r,,o]=e.split(" "),i="10px";switch(n){case Wt:return`padding-right: calc(${r} + ${i} + ${t})`;case Ht:return`padding-left: calc(${o} + ${i} + ${t})`;default:return K}})(_,w,k)}
>
${qo(E,l,d)}
{const[,r,,o]=e.split(" "),i=`calc(${n} / 2 * -1)`;switch(t){case Wt:return`inset: 50% ${r} auto auto; transform: translateY(-50%);`;case Ht:return`inset: 50% auto auto ${o}; transform: translateY(-50%);`;case"TOP_RIGHT_CORNER":return`inset: ${i} ${i} auto auto;`;default:return`inset: ${i} auto auto ${i};`}})(_,k,w)}
>
`},styleElements:gs,textElements:fs};var bs=vs;const ys=({elementWidth:e,elementHeight:t,rotationInDegrees:n})=>{const r=90===n?"bottom-right":"top-left",{anchorX:o,anchorY:i}=((e,t,n)=>{let r=0,o=0;return e.includes("left")?r=-t/2:e.includes("right")&&(r=t/2),e.includes("top")?o=n/2:e.includes("bottom")&&(o=-n/2),{anchorX:r,anchorY:o}})(r,e,t),{rotatedX:s,rotatedY:a}=((e,t,n)=>{let r=0,o=0;switch(n){case 90:r=t,o=-e;break;case 180:r=-e,o=-t;break;case 270:r=-t,o=e;break;default:r=e,o=t}return{rotatedX:r,rotatedY:o}})(o,i,n),l=-s-e/2;return{verticalGap:`${(-a-t/2).toFixed(2)}px`,horizontalGap:`${l.toFixed(2)}px`}},_s=(e,t,n="0px")=>"auto"===e?"auto":`calc(${t} + ${e} + ${n})`,ws=Object.assign({},tt),ks={[ws.BLOCK]:{mobile:{[kt.POSITION]:"relative",[kt.TEASER_IFRAME_INSET]:Et,[kt.TEASER_ROTATION]:"0"}}};var Es={addBlockActions:({blockActions:e,popupActions:t})=>{e.onClick=()=>t.hardClose()},defaultStyles:ks,render:function(e){const{classes:t,environment:n,finalStyleRules:r}=e,{block:o}=t;return V`
{const[n,r,o,i]=e.split(" "),{verticalGap:s,horizontalGap:a}=(e=>{var t,n;const r=document.querySelector("postscript-popup"),o=null==r?void 0:r.shadowRoot,i=null==o?void 0:o.querySelector(".teaser-root-block"),s=null!==(t=null==i?void 0:i.offsetWidth)&&void 0!==t?t:0,a=null!==(n=null==i?void 0:i.offsetHeight)&&void 0!==n?n:0;return ys({elementWidth:s,elementHeight:a,rotationInDegrees:parseInt(e,10)})})(t),l="50%"===n?"transform: translateX(-50%);":"";return`position: absolute; rotate: ${t}; inset: ${_s(n,s)} ${_s(r,a)} ${_s(o,s)} ${_s(i,a)};${l}`})(i,s):(e=>{const[,,,t]=e.split(" ");return`position: absolute; inset: ${e};${"50%"===t?" transform: translateX(-50%);":""}`})(i)})(r):K}"
>
${e.children}
`},styleElements:ws};const Os=Object.assign({},Je),Ss=Object.assign(Object.assign(Object.assign({},yt),tt),ut),xs={addBlockActions:({block:e,blockActions:t,popupActions:n})=>{t.onClick=()=>n.handleButtonClick(e)},defaultStyles:{[Ss.BLOCK]:{mobile:{[kt.BACKGROUND_COLOR]:"#00000000",[kt.BORDER_RADIUS]:"0px 0px 0px 0px",[kt.MARGIN]:"0px 0px 0px 0px",[kt.OPACITY]:"1",[kt.PADDING]:"0px 0px 0px 0px",[kt.POSITION]:"relative"}},[Ss.TEXT]:{mobile:{[kt.COLOR]:Ot.TEXT,[kt.FONT_FAMILY]:St,[kt.FONT_SIZE]:"16px",[kt.FONT_STYLE]:"normal",[kt.FONT_WEIGHT]:"normal",[kt.LETTER_SPACING]:"0px",[kt.LINE_HEIGHT]:"1.2",[kt.TEXT_ALIGN]:"center",[kt.TEXT_DECORATION]:"none",[kt.MARGIN]:"0px 0px 0px 0px"}},[Ss.LINK]:{mobile:{[kt.COLOR]:"inherit"}}},render:function(e){var t;const{block:n,blockActions:r,classes:o,content:i,environment:s,finalStyleRules:a,state:l}=e,{block:c,text:u}=o,p=fn({resolvedStyleRules:a,state:l,isDevelopment:s.isDevelopment}),d=null!==(t=i[et.PARAGRAPH])&&void 0!==t?t:"";return V`
`},styleElements:Ss,textElements:Os};var Ts=xs;const Is=Object.assign(Object.assign({},Ke),Qe),Cs=Object.assign(Object.assign(Object.assign({},ct),lt),tt),Rs={addBlockActions:({block:e,blockActions:t,popupActions:n})=>{t.updateStepData=t=>{const{value:r}=t.target;n.updateStepData(e.id,r)}},defaultStyles:{[Cs.BLOCK]:{mobile:{[kt.BACKGROUND_COLOR]:"#00000000",[kt.BORDER_RADIUS]:"0px 0px 0px 0px",[kt.MARGIN]:"0px 0px 0px 0px",[kt.OPACITY]:"1",[kt.PADDING]:"0px 0px 0px 0px",[kt.POSITION]:"relative",[kt.Z_INDEX]:"0"}},[Cs.INPUT]:{mobile:{[kt.BACKGROUND_COLOR]:Ot.INPUT_BG,[kt.BORDER_COLOR]:Ot.BORDER,[kt.BORDER_RADIUS]:"0px 0px 0px 0px",[kt.BORDER_STYLE]:"none",[kt.BORDER_WIDTH]:"1px",[kt.COLOR]:Ot.TEXT,[kt.FLOATING_LABEL_FONT_SIZE]:"10px",[kt.FLOATING_LABEL_TOP]:"0px",[kt.FLOATING_LABEL_LEFT]:"8px",[kt.FONT_FAMILY]:St,[kt.FONT_SIZE]:"16px",[kt.FONT_STYLE]:"normal",[kt.FONT_WEIGHT]:"normal",[kt.LETTER_SPACING]:"0px",[kt.LINE_HEIGHT]:"1.2",[kt.MARGIN]:"0px 0px 0px 0px",[kt.PADDING]:"8px 8px 8px 8px",[kt.TEXT_ALIGN]:"left",[kt.TEXT_DECORATION]:"none",[wt.TEXT_VARIANT]:"single line",[kt.WIDTH]:"100%"}},[Cs.LABEL]:{mobile:{[kt.COLOR]:Ot.TEXT,[kt.FONT_FAMILY]:St,[kt.FONT_SIZE]:"14px",[kt.FONT_STYLE]:"normal",[kt.FONT_WEIGHT]:"normal",[kt.LETTER_SPACING]:"0px",[kt.LINE_HEIGHT]:"1.2",[kt.MARGIN]:"0px 0px 4px 0px",[kt.TEXT_ALIGN]:"left",[kt.TEXT_DECORATION]:"none"}}},render:function(e){var t,n,r,o,i;const{blockActions:s,blockData:a,block:l,classes:c,content:u,environment:p,finalStyleRules:d,state:h}=e,{block:f,input:g}=c,m=fn({resolvedStyleRules:d,state:h,isDevelopment:p.isDevelopment}),{isEditorForceFloatingLabelActive:v}=null!=h?h:{},b=null!==(t=u[Is.LABEL])&&void 0!==t?t:"New input",y=null!==(n=u[Is.PLACEHOLDER])&&void 0!==n?n:"",_=`input-${l.id}`,w=null!==(r=d[Cs.INPUT])&&void 0!==r?r:{},k="multi line"===(w[wt.TEXT_VARIANT]||""),E=l.version>=2,O=E?void 0:y;return V`
${E?V`
`:K}
${k?V`
`:V`
`}
${zt(h,_)}
`},styleElements:Cs,textElements:Is,validateBlockData:(e,t="")=>nn(e,t.trim())};var As=Rs;const{I:Ds}=de,Ns=()=>document.createComment(""),Ls=(e,t,n)=>{var r;const o=e._$AA.parentNode,i=void 0===t?e._$AB:t._$AA;if(void 0===n){const t=o.insertBefore(Ns(),i),r=o.insertBefore(Ns(),i);n=new Ds(t,r,e,e.options)}else{const t=n._$AB.nextSibling,s=n._$AM,a=s!==e;if(a){let t;null===(r=n._$AQ)||void 0===r||r.call(n,e),n._$AM=e,void 0!==n._$AP&&(t=e._$AU)!==s._$AU&&n._$AP(t)}if(t!==i||a){let e=n._$AA;for(;e!==t;){const t=e.nextSibling;o.insertBefore(e,i),e=t}}}return n},Ps=(e,t,n=e)=>(e._$AI(t,n),e),$s={},Bs=(e,t=$s)=>e._$AH=t,js=e=>{var t;null===(t=e._$AP)||void 0===t||t.call(e,!1,!0);let n=e._$AA;const r=e._$AB.nextSibling;for(;n!==r;){const e=n.nextSibling;n.remove(),n=e}},Ms=_e(class extends we{constructor(){super(...arguments),this.key=K}render(e,t){return this.key=e,t}update(e,[t,n]){return t!==this.key&&(Bs(e),this.key=t),n}}),Us=Object.assign(Object.assign({},tt),at);var Fs={defaultStyles:{[Us.BLOCK]:{mobile:{[kt.ALIGN_SELF]:"center",[kt.MARGIN]:"0px 0px 0px 0px",[kt.OPACITY]:"1",[kt.PADDING]:"0px 0px 0px 0px",[kt.WIDTH]:"100px",[kt.POSITION]:"relative"}},[Us.IMAGE]:{mobile:{[kt.BORDER_COLOR]:Ot.BORDER,[kt.BORDER_RADIUS]:"0px 0px 0px 0px",[kt.BORDER_STYLE]:"none",[kt.BORDER_WIDTH]:"1px",[kt.HEIGHT]:"auto",[kt.MAX_WIDTH]:"100%",[kt.DISPLAY]:"block",[kt.WIDTH]:"100%"}}},render:function(e){var t,n,r;const{blockActions:o,classes:i,environment:s,finalStyleRules:a,state:l}=e,{block:c,image:u}=i,p=fn({resolvedStyleRules:a,state:l,isDevelopment:s.isDevelopment});return V`
`},styleElements:Us};const Gs=Object.assign(Object.assign({},tt),pt),Hs={defaultStyles:{[Gs.BLOCK]:{mobile:{[kt.ALIGN_SELF]:"center",[kt.MARGIN]:"0px 0px 0px 0px",[kt.OPACITY]:"1",[kt.PADDING]:"0px 0px 0px 0px",[kt.WIDTH]:"100px",[kt.POSITION]:"relative"}},[Gs.LOGO]:{mobile:{[kt.BORDER_COLOR]:Ot.BORDER,[kt.BORDER_RADIUS]:"0px 0px 0px 0px",[kt.BORDER_STYLE]:"none",[kt.BORDER_WIDTH]:"1px",[kt.HEIGHT]:"auto",[kt.MAX_WIDTH]:"100%",[kt.DISPLAY]:"block",[kt.PLATFORM_SYNC]:"enabled",[kt.WIDTH]:"100%"}}},render:function(e){var t,n,r,o;const{block:i,blockActions:s,classes:a,environment:l,finalStyleRules:c,sharedBlockConfig:u,state:p}=e,{block:d,logo:h}=a,f=fn({resolvedStyleRules:c,state:p,isDevelopment:l.isDevelopment}),g=Gi(l.viewport,u.find((e=>e.type===Ae))),m=null!==(n=null===(t=i.config)||void 0===t?void 0:t.src)&&void 0!==n?n:null==g?void 0:g.src,v=null!==(o=null===(r=i.config)||void 0===r?void 0:r.altText)&&void 0!==o?o:null==g?void 0:g.altText;return V`
`},styleElements:Gs};var Ws=Hs;const Ys={[Ee]:_n,[Oe]:Jo,[Se]:ni,[xe]:ii,[Te]:ai,[Ie]:mi,[Ce]:_i,[Re]:Fs,[Ae]:Ws,[De]:Ti,[Ne]:Di,[Le]:zi,[Pe]:Vi,[$e]:ns,[Be]:hs,[je]:bs,[Me]:Es,[Ue]:Ts,[Fe]:As},zs={render(e,t){var n;const{block:r}=e,{render:o}=Ys[r.type],i=o(e);return V`${Ms(null!==(n=null==t?void 0:t(e))&&void 0!==n?n:r.id,i)}`},getTextElements(e){var t;return null!==(t=Ys[e].textElements)&&void 0!==t?t:{}},getStyleElements(e){var t;return null!==(t=Ys[e].styleElements)&&void 0!==t?t:{}},getDefaultStyles(e){return Ys[e].defaultStyles},isEmpty(e){var t;const{type:n}=e,r=Ys[n];return!!(null===(t=r.isEmpty)||void 0===t?void 0:t.call(r,e))},addBlockActions({block:e,blockActions:t,environment:n,popupActions:r,stepBlocks:o}){var i;const{type:s}=e,a=Ys[s];null===(i=a.addBlockActions)||void 0===i||i.call(a,{block:e,blockActions:t,environment:n,popupActions:r,stepBlocks:o})},validateBlockData(e,t){var n;const{type:r}=e,o=Ys[r];return(null===(n=o.validateBlockData)||void 0===n?void 0:n.call(o,e,t))||null}};var qs=zs;const Vs=e=>e===Lt?`"${`${Lt} `.repeat(2)}"`:`"${`${Pt} `.repeat(2)}"`,Zs=e=>e===$t?`"${`${Lt} `.repeat(1)} ${`${Pt} `.repeat(1)}"`.trim():`"${`${Pt} `.repeat(1)} ${`${Lt} `.repeat(1)}"`.trim(),Xs=()=>"",Ks={animateCssDuration:e=>`--animate-duration: ${e};`,animateCssName:Xs,backgroundImage:e=>e.startsWith("linear-gradient(")||e.startsWith("radial-gradient(")?`--background-image: ${e};`:`--background-image: url(${(e=>{var t;if(!e)return;const n=e.match(/url\((.*?)\)/);return null!==(t=null==n?void 0:n[1])&&void 0!==t?t:e})(e)});`,backgroundOpacity:e=>`--background-opacity: ${e};`,backgroundPosition:e=>`--background-position: ${e};`,backgroundRepeat:e=>`--background-repeat: ${e};`,backgroundSize:e=>`--background-size: ${e};`,dropdownArrow:Xs,floatingLabelFontSize:Xs,floatingLabelLeft:Xs,floatingLabelTop:Xs,layoutDirection:e=>`flex-direction: ${e};`,layoutSpacing:e=>`justify-content: ${e};`,rootLayout:e=>e===Bt?`\n grid-template-areas: ${Vs(Pt)};\n grid-template-rows: auto;\n grid-template-columns: 1fr 1fr;\n `.trim():"TOP_DECORATIVE"===e?`\n grid-template-areas: ${Vs(Lt)} ${Vs(Pt)};\n grid-template-rows: auto 1fr;\n grid-template-columns: 1fr 1fr;\n `.trim():"BOTTOM_DECORATIVE"===e?`\n grid-template-areas: ${Vs(Pt)} ${Vs(Lt)};\n grid-template-rows: 1fr auto;\n grid-template-columns: 1fr 1fr;\n `.trim():e===$t?`\n grid-template-areas: ${Zs($t)};\n grid-template-rows: auto;\n grid-template-columns: var(--root-background-image-grid-column-width) 1fr;\n `.trim():`\n grid-template-areas: ${Zs("RIGHT_DECORATIVE")};\n grid-template-rows: auto;\n grid-template-columns: 1fr var(--root-background-image-grid-column-width);\n `.trim(),rootBackgroundImageGridColumnWidth:e=>`--root-background-image-grid-column-width: ${e};`,spinToWinDuration:e=>`--spin-to-win-duration: ${e};`,teaserIframeInset:Xs,teaserRotation:Xs,teaserCloseButtonPosition:Xs},Js=(e,t)=>`${t}-${e.id}`,Qs=(e,t,n)=>{const r=Object.values(qs.getStyleElements(e.type)),o=((e,t,n)=>{const r={},o=qs.getStyleElements(e.type),i=qs.getDefaultStyles(e.type),s=e.styles;return Object.values(o).forEach((e=>{var o,a,l,c;const u=i[e],p=null==s?void 0:s[e],d=n[e],h=null==d?void 0:d.find((t=>{var n;return t.id===(null===(n=null==s?void 0:s[e])||void 0===n?void 0:n.variant)})),f=null!==(o=Gi(t,u))&&void 0!==o?o:{},g=null!==(a=Gi(t,p))&&void 0!==a?a:{},m=null!==(c=Gi(t,null!==(l=null==h?void 0:h.styles)&&void 0!==l?l:{}))&&void 0!==c?c:{};r[e]={default:f,variant:m,instance:g}})),r})(e,n,t),i={};return r.forEach((e=>{const t=o[e];if(t){const n=(e=>Object.assign(Object.assign(Object.assign({},e.default),e.variant),e.instance))(t);i[e]=n}})),i},ea=({stepBlocks:e,teaserBlocks:t,theme:n,viewport:r})=>{const o=!r||r===We,i=!r||r===Ye;return{[We]:o?[...e,...t].map((e=>Qs(e,n,We))):void 0,[Ye]:i?[...e,...t].map((e=>Qs(e,n,Ye))):void 0}};var ta=o(490),na=o.n(ta);const ra=Object.values({ROBOTO:"Roboto",OPEN_SANS:"Open Sans",LATO:"Lato",MONTSERRAT:"Montserrat",OSWALD:"Oswald",POPPINS:"Poppins",RUBIK:"Rubik",QUICKSAND:"Quicksand",PLAYFAIR_DISPLAY:"Playfair Display",FRAUNCES:"Fraunces",MERRIWEATHER:"Merriweather",ROBOTO_MONO:"Roboto Mono",ROBOTO_SLAB:"Roboto Slab",NUNITO_SANS:"Nunito Sans",DANCING_SCRIPT:"Dancing Script",EB_GARAMOND:"EB Garamond",IBM_PLEX_SANS:"IBM Plex Sans",KAMERON:"Kameron",CINZEL:"Cinzel",PT_SANS:"PT Sans",INTER:"Inter"}),oa=e=>ra.includes(e);const ia=({stepBlocks:e,teaserBlocks:t,theme:n},r,o)=>function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function*(){const i=(({stepBlocks:e,teaserBlocks:t,theme:n,viewport:r})=>{const o=(({stepBlocks:e,styleRuleName:t,teaserBlocks:n,theme:r,viewport:o})=>{const{mobile:i=[],desktop:s=[]}=ea({stepBlocks:e,teaserBlocks:n,theme:r,viewport:o}),a=new Set;return[...i,...s].forEach((e=>{Object.values(e).forEach((e=>{const n=e[t];n&&a.add(n)}))})),[...a]})({stepBlocks:e,teaserBlocks:t,styleRuleName:kt.FONT_FAMILY,theme:n,viewport:r});return o.map((e=>(e=>{const t=e.match(/'([^']*)'/);return t?t[1]:""})(e)))})({stepBlocks:e,teaserBlocks:t,theme:n,viewport:r});yield((e,t)=>function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function*(){const n=t.filter((t=>e.includes(t.name))),r=n.map((e=>`\n @font-face {\n font-family: '${e.name}';\n src: url('${e.src}');\n }\n `)),o=document.createElement("style");o.innerText=r.join("\n"),document.head.appendChild(o)})))(i,o),(e=>{const t=e.filter(oa);t.length&&na().load({classes:!1,events:!1,google:{families:t}})})(i)})),sa="dragging-over";var aa=(e,t,n)=>{const{popupActions:{handleAddDrop:r,handleReorderDrop:o},environment:{isDraggingAddBlock:i,isDraggingReorderBlock:s}}=e;return V`
e.preventDefault()}
@dragenter=${e=>{e.currentTarget.classList.add(sa)}}
@dragleave=${e=>{e.currentTarget.classList.remove(sa)}}
@drop=${e=>{e.currentTarget.classList.remove(sa),i&&(null==r||r(t,n)),s&&(null==o||o(t,n))}}
class=${ke({dragging:!(!i&&!s),"drop-zone":!0})}
>
`};function la(e,t){const n=function(e,t){var n,r;const{blockState:o,environment:{isDevelopment:i}}=t,s=qs.getStyleElements(e.type),a=e.type===Te,l=e.type===Pe||e.type===$e,c=e.type===Me,u=qs.isEmpty(e),p=((e,{environment:{viewport:t},theme:n})=>{var r;return null===(r=Qs(e,n,t)[e.type===$e?_t.MAIN_POPUP_CONTAINER:_t.BLOCK])||void 0===r?void 0:r.layoutDirection})(e,t),d="row"===p,h="column"===p,f=e.type===$e,g={[_t.BLOCK]:Object.assign({"root-block":l,"teaser-root-block":c,container:a},f?{}:{"empty-layout":u,"horizontal-layout":d,"vertical-layout":h}),[_t.MAIN_POPUP_CONTAINER]:Object.assign({"main-popup-container":f},f?{"empty-layout":u,"horizontal-layout":d,"vertical-layout":h}:{})},m={editorNode:{"editor-node":!0,error:!!(null===(n=o[e.id])||void 0===n?void 0:n.error),selected:!!(null===(r=o[e.id])||void 0===r?void 0:r.selected)}};return Object.values(s).reduce(((t,n)=>{const r=n===_t.BLOCK||n===_t.MAIN_POPUP_CONTAINER,o=Js(e,n);return Object.assign(Object.assign({},t),{[n]:Object.assign(Object.assign({},i&&r?g[n]:{}),{[o]:!0})})}),m)}(e,t),r=(e=>{const t=qs.getTextElements(e.type);return e.content&&t?Object.values(t).reduce(((t,n)=>{var r,o;return t[n]=(null===(o=null===(r=e.content)||void 0===r?void 0:r[n])||void 0===o?void 0:o.default)||"",t}),{}):{}})(e),o=function(e,t){if(!e.children)return null;const{blocks:n,reorderingIds:r}=t,o=e.children.map((e=>{const r=n.find((t=>t.id===e));if(!r)throw new Error(`Block with id ${e} not found`);return la(r,t)}),[]);return(null==r?void 0:r.includes(e.id))?o:((e,t,n)=>{const{environment:{isDevelopment:r}}=n,o=e.type===Pe||e.type===$e,i=e.type===Te;return r&&(i||o)?t.reduce(((t,r,o)=>{const i=aa(n,e.id,o+1);return t.push(r,i),t}),o?[]:[aa(n,e.id,0)]):t})(e,o,t)}(e,t),i=function(e,t){const{popupActions:n,environment:r}=t,o=r.isDevelopment?((e,t)=>{const{selectBlock:n,handleReorderDragStart:r,handleReorderDragEnd:o,setEmailIntegration:i}=t.popupActions,s={};return n&&(s.selectBlock=t=>{t.stopPropagation(),n(e.id)}),r&&(s.handleReorderDragStart=t=>{r(t,e.id)}),o&&(s.handleReorderDragEnd=o),i&&(s.setEmailIntegration=i),s})(e,t):{};return qs.addBlockActions({block:e,blockActions:o,environment:r,popupActions:n,stepBlocks:t.stepBlocks}),o}(e,t),s=t.blockState[e.id],{disclaimer:a,environment:l,theme:c,sharedBlockConfig:u,stepData:p}=t,d={blockActions:i,blockData:null==p?void 0:p[e.id],block:e,children:o,classes:n,content:r,currentStep:t.currentStep,disclaimer:a,environment:l,finalStyleRules:Qs(e,c,l.viewport),popupData:t.popupData,state:s,sharedBlockConfig:u};return qs.render(d)}const ca=e=>{const t=e.blocks.find((e=>e.type===Pe||e.type===Me||e.type===$e));if(!t)throw new Error("No root block found");const n=((e,t,n)=>e.reduce(((e,r)=>{const o=((e,t,n)=>{let r="";const o=Qs(e,n,t);return Object.entries(o).forEach((([t,n])=>{const o=`.${Js(e,t)}`,i=(e=>Object.entries(e).reduce(((e,[t,n])=>{var r,o,i;return`${e}${null!==(o=null===(r=Ks[t])||void 0===r?void 0:r.call(Ks,n))&&void 0!==o?o:`${i=t,i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}: ${n};`}`}),""))(n);r+=`${o} { ${i} }\n`})),r})(r,t,n);return o?`${e} ${o}`:e}),""))(e.blocks,e.environment.viewport,e.theme);return V`
${la(t,e)}
`},ua=(e,t)=>{var n,r,o;return(null===(r=null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.onClick)||void 0===r?void 0:r.action)===t||(null===(o=null==e?void 0:e.onClick)||void 0===o?void 0:o.action)===t||(null==e?void 0:e.action)===t||e===t},pa=(e,t)=>(null==e?void 0:e.role)===t;var da=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{if("Root block"!==e.name)return e;const t=Object.assign({},e);t.styles[Ye]||(t.styles[Ye]={});const n=t.styles[Ye];return n[kt.BACKGROUND_IMAGE]||(n[kt.BACKGROUND_IMAGE]=""),n[kt.BACKGROUND_COLOR]||(n[kt.BACKGROUND_COLOR]=Ot.POPUP_BG),t},fa=(e,t)=>e.map((e=>Object.assign(Object.assign({},e),{styles:Object.entries(e.styles).reduce(((e,[n,r])=>{var o;const i=r.mobile||{},{variant:s}=i,a=da(i,["variant"]),l=r.desktop||{},{variant:c}=l,u={mobile:a,desktop:da(l,["variant"])};return s&&(u.variant=null!==(o=t[s])&&void 0!==o?o:s),Object.assign(Object.assign({},e),{[n]:u})}),{})}))),ga=(e,t,n,r)=>{const{theme:o,idMap:i}=(e=>{const t={},n=Object.entries(e).reduce(((e,[n,r])=>{const o=r.filter((e=>e.name.endsWith(" mobile"))),i=[];if(o.forEach((e=>{const t=`${e.name.replace(" mobile","")} desktop`,n=r.find((e=>e.name===t));n&&i.push({mobileName:e.name,desktopName:t})})),i.length>0){const{variants:o,idMap:s}=((e,t,n)=>{const r=[],o=new Set;let i=Object.assign({},n);t.forEach((({mobileName:t,desktopName:n})=>{const s=e.find((e=>e.name===t)),a=e.find((e=>e.name===n));if(s&&a){const{variant:e,idMap:l}=((e,t)=>{const[n,r]=e,o={id:n.id,name:n.name.replace(" mobile",""),defaultVariant:n.defaultVariant||r.defaultVariant,styles:{[We]:n.styles,[Ye]:r.styles}};return{variant:ha(o),idMap:Object.assign(Object.assign({},t),{[r.id]:n.id})}})([s,a],i);r.push(e),i=l,o.add(t),o.add(n)}}));const s=e.filter((e=>!o.has(e.name))).map((e=>Object.assign(Object.assign({},e),{styles:{[We]:e.styles}})));return{variants:[...r,...s],idMap:i}})(r,i,t);return Object.assign(t,s),Object.assign(Object.assign({},e),{[n]:o})}return Object.assign(Object.assign({},e),{[n]:r.map((e=>Object.assign(Object.assign({},e),{styles:{[We]:e.styles}})))})}),{});return{theme:n,idMap:t}})(e);return{theme:o,stepBlocks:fa(t,i),teaserBlocks:fa(r,i),sharedBlockConfig:n.map((e=>{if(e.type===Ae&&e.desktop&&e.mobile){const t=Object.assign({},e.desktop),n=e.mobile;return Object.keys(n).forEach((e=>{e in t&&t[e]===n[e]&&delete t[e]})),Object.assign(Object.assign({},e),{desktop:Object.keys(t).length>0?t:void 0})}return e}))}},ma=e=>{const{theme:t,stepBlocks:n,sharedBlockConfig:r,teaserBlocks:o}=ga(e.theme,e.stepBlocks,e.sharedBlockConfig,e.teaserBlocks);return Object.assign(Object.assign({},e),{theme:t,stepBlocks:n,teaserBlocks:o,sharedBlockConfig:r,version:2})},va=e=>1===(null==e?void 0:e.version);function ba(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ya(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _a(e){return _a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_a(e)}function wa(e){var t=function(e){if("object"!=_a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_a(t)?t:t+""}function ka(e,t){for(var n=0;n\n ',"\n \n ',"\n \n ","\n \n '," ","\n \n "])),i[0],"".concat(t," (view in new window)"),r,t,i[1],"".concat(n," (view in new window)"),o,n,i[2])}():function(e){var t,n=Ua.getState(),r="https://".concat(e,"/policies/terms-of-service.html"),o="https://".concat(e,"/policies/privacy-policy.html");return n.shopShop&&null!==(t=n.flags)&&void 0!==t&&t.split(",").includes("dynamic_terms")&&(r="https://terms.pscr.pt/legal/shop/".concat(n.shopShop,"/terms_of_service"),o="https://terms.pscr.pt/legal/shop/".concat(n.shopShop,"/privacy_policy")),V(Aa||(Aa=ba(['*I agree to receive recurring automated marketing text messages\n (e.g. cart reminders) at the phone number provided. Consent is not a\n condition to purchase. Msg & data rates may apply. Msg frequency varies.\n Reply HELP for help and STOP to cancel. View our\n \n Terms of Service\n \n and\n \n Privacy Policy.\n '])),r,o)}(e)},pl="engagement",dl="MOBILE",hl="Delay",fl="sms:",gl="&body=",ml="NEW_SMS_USERS";function vl(n){return function(t){if(Array.isArray(t))return e(t)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||t(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const bl=Object.prototype.toString;function yl(e){switch(bl.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Il(e,Error)}}function _l(e,t){return bl.call(e)===`[object ${t}]`}function wl(e){return _l(e,"ErrorEvent")}function kl(e){return _l(e,"DOMError")}function El(e){return _l(e,"String")}function Ol(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function Sl(e){return _l(e,"Object")}function xl(e){return"undefined"!=typeof Event&&Il(e,Event)}function Tl(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function Il(e,t){try{return e instanceof t}catch(e){return!1}}var Cl=o(722);const Rl=(0,Cl.VZ)();function Al(e,t={}){try{let n=e;const r=5,o=[];let i=0,s=0;const a=" > ",l=a.length;let c;const u=Array.isArray(t)?t:t.keyAttrs,p=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&i++1&&s+o.length*l+c.length>=p));)o.push(c),s+=c.length,n=n.parentNode;return o.reverse().join(a)}catch(e){return""}}function Dl(e,t){const n=e,r=[];let o,i,s,a,l;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());const c=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(c&&c.length)c.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),o=n.className,o&&El(o))for(i=o.split(/\s+/),l=0;lfunction(e,t,n=!1){return!!El(e)&&(_l(t,"RegExp")?t.test(e):!!El(t)&&(n?e===t:e.includes(t)))}(e,t,n)))}function $l(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);if("function"==typeof o)try{jl(o,r)}catch(e){}e[t]=o}function Bl(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function jl(e,t){const n=t.prototype||{};e.prototype=t.prototype=n,Bl(e,"__sentry_original__",t)}function Ml(e){return e.__sentry_original__}function Ul(e){if(yl(e))return{message:e.message,name:e.name,stack:e.stack,...Gl(e)};if(xl(e)){const t={type:e.type,target:Fl(e.target),currentTarget:Fl(e.currentTarget),...Gl(e)};return"undefined"!=typeof CustomEvent&&Il(e,CustomEvent)&&(t.detail=e.detail),t}return e}function Fl(e){try{return"undefined"!=typeof Element&&Il(e,Element)?Al(e):Object.prototype.toString.call(e)}catch(e){return""}}function Gl(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function Hl(e){return Wl(e,new Map)}function Wl(e,t){if(Sl(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.keys(e))void 0!==e[n]&&(r[n]=Wl(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(Wl(e,t))})),r}return e}function Yl(){const e=Cl.OW,t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");const n=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function zl(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function ql(e){const{message:t,event_id:n}=e;if(t)return t;const r=zl(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function Vl(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function Zl(e,t){const n=zl(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function Xl(e){if(e&&e.__sentry_captured__)return!0;try{Bl(e,"__sentry_captured__",!0)}catch(e){}return!1}function Kl(e){return Array.isArray(e)?e:[e]}var Jl=o(297);const Ql=["debug","info","warn","error","log","assert","trace"];function ec(e){if(!("console"in Cl.OW))return e();const t=Cl.OW.console,n={};Ql.forEach((e=>{const r=t[e]&&t[e].__sentry_original__;e in t&&r&&(n[e]=t[e],t[e]=r)}));try{return e()}finally{Object.keys(n).forEach((e=>{t[e]=n[e]}))}}function tc(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?Ql.forEach((n=>{t[n]=(...t)=>{e&&ec((()=>{Cl.OW.console[n](`Sentry Logger [${n}]:`,...t)}))}})):Ql.forEach((e=>{t[e]=()=>{}})),t}let nc;nc="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,Cl.BY)("logger",tc):tc();const rc="production";var oc;function ic(e){return new ac((t=>{t(e)}))}function sc(e){return new ac(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(oc||(oc={}));class ac{__init(){this._state=oc.PENDING}__init2(){this._handlers=[]}constructor(e){ac.prototype.__init.call(this),ac.prototype.__init2.call(this),ac.prototype.__init3.call(this),ac.prototype.__init4.call(this),ac.prototype.__init5.call(this),ac.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new ac(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new ac(((t,n)=>{let r,o;return this.then((t=>{o=!1,r=t,e&&e()}),(t=>{o=!0,r=t,e&&e()})).then((()=>{o?n(r):t(r)}))}))}__init3(){this._resolve=e=>{this._setResult(oc.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(oc.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{this._state===oc.PENDING&&(Tl(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state===oc.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===oc.RESOLVED&&e[1](this._value),this._state===oc.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function lc(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||(0,Jl.zf)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:Yl()),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{const 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)}class cc{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=dc()}static clone(e){const t=new cc;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments],t._sdkProcessingMetadata={...e._sdkProcessingMetadata},t._propagationContext={...e._propagationContext}),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&lc(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},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}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){const t=e(this);return t instanceof cc?t:this}return e instanceof cc?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession),e._propagationContext&&(this._propagationContext=e._propagationContext)):Sl(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=dc(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:(0,Jl.lu)(),...e};return this._breadcrumbs=[...this._breadcrumbs,r].slice(-n),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}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};const t=this._span.transaction;if(t){e.sdkProcessingMetadata={dynamicSamplingContext:t.getDynamicSamplingContext(),...e.sdkProcessingMetadata};const n=t.name;n&&(e.tags={transaction:n,...e.tags})}}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata,propagationContext:this._propagationContext},this._notifyEventProcessors([...uc(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}_notifyEventProcessors(e,t,n,r=0){return new ac(((o,i)=>{const s=e[r];if(null===t||"function"!=typeof s)o(t);else{const a=s({...t},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.id&&null===a&&nc.log(`Event processor "${s.id}" dropped event`),Tl(a)?a.then((t=>this._notifyEventProcessors(e,t,n,r+1).then(o))).then(null,i):this._notifyEventProcessors(e,a,n,r+1).then(o).then(null,i)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?Kl(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function uc(){return(0,Cl.BY)("globalEventProcessors",(()=>[]))}function pc(e){uc().push(e)}function dc(){return{traceId:Yl(),spanId:Yl().substring(16),sampled:!1}}const hc=100;class fc{constructor(e,t=new cc,n=4){this._version=n,this._stack=[{scope:t}],e&&this.bindClient(e)}isOlderThan(e){return this._version{o.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},i)})),n}captureMessage(e,t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:Yl(),o=new Error(e);return this._withClient(((i,s)=>{i.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},s)})),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:Yl();return e.type||(this._lastEventId=n),this._withClient(((r,o)=>{r.captureEvent(e,{...t,event_id:n},o)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=hc}=r.getOptions&&r.getOptions()||{};if(i<=0)return;const s={timestamp:(0,Jl.lu)(),...e},a=o?ec((()=>o(s,t))):s;null!==a&&(r.emit&&r.emit("beforeAddBreadcrumb",a,t),n.addBreadcrumb(a,i))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=mc(this);try{e(this)}finally{mc(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);return"undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||n||console.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&function(e){let t={};"ok"===e.status&&(t={status:"exited"}),lc(e,t)}(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:o=rc}=n&&n.getOptions()||{},{userAgent:i}=Cl.OW.navigator||{},s=function(e){const t=(0,Jl.zf)(),n={sid:Yl(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return Hl({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,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&lc(n,e),n}({release:r,environment:o,user:t.getUser(),...i&&{userAgent:i},...e}),a=t.getSession&&t.getSession();return a&&"ok"===a.status&&lc(a,{status:"exited"}),this.endSession(),t.setSession(s),s}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_withClient(e){const{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){const n=gc().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function gc(){return Cl.OW.__SENTRY__=Cl.OW.__SENTRY__||{extensions:{},hub:void 0},Cl.OW}function mc(e){const t=gc(),n=bc(t);return yc(t,e),n}function vc(){const e=gc();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=gc()){return t=e,!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)&&!bc(e).isOlderThan(4)||yc(e,new fc),bc(e);var t}(e)}function bc(e){return(0,Cl.BY)("hub",(()=>new fc),e)}function yc(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}function _c(e,t){return vc().captureException(e,{captureContext:t})}function wc(e,t){vc().setTag(e,t)}var kc="DOUBLE_OPT_IN",Ec="TWO_TOUCH",Oc="PHONE",Sc="psValidateForm",xc="ps-one-time-passcode-hidden-text",Tc="ps-one-time-passcode-input",Ic="ps-widget-custom-form__",Cc=function(e,t,n){customElements.get(e)||customElements.define(e,t,n)},Rc=function(e){var t=e.key,n=e.value,r=e.questions;return(void 0===r?[]:r).find((function(e){return t in e&&e[t]===n}))},Ac=function(e){var t,n,r=e.twoTouchEnabled&&e.popupType===dl?Ec:kc,o=null==e||null===(t=e.pages)||void 0===t?void 0:t.flatMap((function(e){return null==e?void 0:e.questions})),i=Rc({questions:o,key:"type",value:Oc});return null!==(n=null==i?void 0:i.optInMethod)&&void 0!==n?n:r},Dc=function(e){return Ac(e)===Ec},Nc=function(e){var t=Ac(e);return t===Ec||"LINK_CLICK"===t},Lc="Open Sans Condensed",Pc={font:{desktop:"Roboto",mobile:"".concat(Lc,":300")},background_style:"Color",button_radius:10,two_touch_enabled:!0};function $c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bc(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{};return{US:t,AU:n.au_long_code,CA:n.ca_long_code}[e]||n.us_long_code}(e,t,n);return!1!==r&&r},Qc=function(e,t,n){var r,o,i,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a="".concat(e,"=").concat(t);if(n||s){var l=new Date;l.setTime(l.getTime()+24*n*60*60*1e3+60*s*60*1e3),a+="; expires=".concat(l.toUTCString())}a+="; domain=".concat((o=(r=window.location.hostname).split("."),i=r,o.length>2&&(i=["com","co","org","net","myshopify"].includes(o[o.length-2])?o.slice(o.length-3).join("."):o.slice(o.length-2).join(".")),i),"; path=/"),document.cookie=a},eu=function(e){for(var t="".concat(e,"="),n=window.parent.document.cookie.split(";"),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e4,r=new AbortController,o=r.signal,i=setTimeout((function(){r.abort()}),n);return fetch(e,Bc(Bc({},t),{},{signal:o})).then((function(e){return clearTimeout(i),e}))};function nu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ru(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.shouldStopScroll,n=e.iframeHandlerData;return ou({height:"100%",width:"100%",positionObj:{top:0,left:0,bottom:"auto",right:"auto",rotation:"0deg"},shouldStopScroll:t,iframeHandlerData:n})},lu=function(){window.parent.postMessage({FrameDisplay:"block"},"*")},cu=function(){window.parent.postMessage({FrameOpacity:"1"},"*")},uu=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.parent.postMessage(ru({FrameDisplay:"none",FrameOpacity:0},(null===(e=t.iframeHandlerData)||void 0===e?void 0:e.psDataset)&&{psDataset:t.iframeHandlerData.psDataset}),"*")},pu=function(e){var t;if(!Ua.getState().isPreview)if("BODY"===(null===(t=document.activeElement)||void 0===t?void 0:t.tagName))window.addEventListener("message",(function t(n){var r;"FocusedElementStored"===n.data&&(e(null),null===(r=n.target)||void 0===r||r.removeEventListener("message",t))})),window.parent.postMessage("GetFocusedElement","*");else{var n,r;e(null!==(n=null===(r=document.activeElement)||void 0===r?void 0:r.id)&&void 0!==n?n:null)}},du=function(e){var t=document.getElementById(e);t?t.focus():window.parent.postMessage("RestoreFocusedElement","*")},hu=function(){var e;Ua.getState().isPreview||(null===(e=document.getElementById(Ha))||void 0===e||e.removeAttribute("aria-hidden"),window.parent.postMessage("HideElementsBehindPopupFromScreenReader","*"))},fu=function(){var e;null===(e=document.getElementById(Ha))||void 0===e||e.setAttribute("aria-hidden","true"),window.parent.postMessage("UnhideElementsBehindPopupFromScreenReader","*")},gu=function(e,t,n,r){window.parent.postMessage({SetCookie:{name:e,status:t,expirationDays:n,expirationHours:r}},"*")},mu=function(e,t,n){window.parent.postMessage({type:Ya,popupId:e,popupName:t,hard:n},"*")};function vu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bu(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return e.map((function(e){var r=document.createElement("link");return Object.entries(bu(bu({},t),{},{href:e})).forEach((function(e){var t=n(e,2),o=t[0],i=t[1];r[o]=i})),r}))}((arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter((function(e){return!!e})),{as:"image",rel:"preload"});e.forEach((function(e){!document.head.querySelector('link[href="'.concat(null==e?void 0:e.href,'"]'))&&e&&document.head.appendChild(e)}))},Eu=function(e){var t=parseInt(e,10);return Number.isNaN(t)?null:t};function Ou(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Su(e){for(var t=1;t0}));return null!=s?s:i[0]},Pu=function(e,t,n){var r=Au(e,n.splitTestCookies),o=Nu({},n),i=r.filter((function(e){return t.every((function(t){return t(e,o)}))})),s=i.find((function(e){return e.includedPages}));return null!=s?s:i[0]},$u=function(e){return"object"===_a(e)&&null!==e&&"id"in e&&"steps"in e&&"stepBlocks"in e},Bu={ALL:"All",ALL_OUTSIDE_US:"All outside US",US:"US",CANADA:"Canada",US_AND_CANADA:"US & Canada",ALL_OUTSIDE_US_AND_CANADA:"All outside US and Canada",AUSTRALIA_AND_NEW_ZEALAND:"Australia and New Zealand"},ju=function(e,t){var r=n($u(e)?[e.includedPages.join(","),e.excludedPages.join(",")]:[e.includedPages,e.excludedPages],2),o=r[0],i=r[1];return function(e,t,n){if(!e||0===e.length)return!0;var r=e.toLowerCase(),o=!0,i=Hc(t),s=Hc(n);return i&&i.length>0&&(o=!1,o=i.split(",").some((function(e){return r.includes(e.toLowerCase())}))),s&&s.length>0&&(o=!s.split(",").some((function(e){return r.includes(e.toLowerCase())}))&&o),o}(t.origin,o,i)},Mu=function(e,t){var n=t.currentCountry;if($u(e)){var r=e.countriesFilter;if(0===r.items.length)return!0;var o=r.items.includes(n);return"INCLUDED"===r.criteria?o:!o}return function(e,t){return function(e){return[Bu.ALL,null,void 0].includes(e)}(t)||function(e,t){return t===Bu.US_AND_CANADA&&[Bu.US,"CA"].includes(e)}(e,t)||function(e,t){return t===e}(e,t)||function(e,t){return t===Bu.CANADA&&"CA"===e}(e,t)||function(e,t){return t===Bu.ALL_OUTSIDE_US&&e!==Bu.US}(e,t)||function(e,t){return t===Bu.ALL_OUTSIDE_US_AND_CANADA&&!["US","CA"].includes(e)}(e,t)||function(e,t){return t===Bu.AUSTRALIA_AND_NEW_ZEALAND&&["AU","NZ"].includes(e)}(e,t)}(n,e.countriesAllowed)},Uu=function(e,t){return _u(Qa,e.id,t.statuses)!==nl},Fu=function(e,t){var n=t.subscriberId,r=e.subscriberCohort;return null===r||!(n&&r===ml||!n&&"EXISTING_SMS_SUBSCRIBERS"===r)},Gu=function(e,t){if(!$u(e))return!0;var n=t.customerOrderCount,r=e.customerStatus;return null===r||!(n&&n>0&&"NEW_CUSTOMERS"===r||!n&&"RETURNING_CUSTOMERS"===r)},Hu=function(e,t){return!$u(e)||"ALL"===e.platform||"DESKTOP"===e.platform&&t.viewport===Ye||"MOBILE"===e.platform&&t.viewport===We},Wu=function(e){return function(t){return $u(t)?t.trigger.type===e:!t.trigger||t.trigger===e}},Yu=function(){var e;null===(e=Ma.getState().engagementTracker)||void 0===e||e.endSession(),window.ps__email=void 0,window.ps__token=void 0,window.ps__subscriber_id=void 0,window.ps__server_id=void 0,Ma.reset()},zu=function(){var e=i(a().mark((function e(t,n,r,o,i,s,l){var c,u,p,d,h;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c=[ju,Mu,Uu,Fu,Wu(hl)],(u=Pu(t,c,{splitTestCookies:s,currentCountry:o,origin:r,statuses:n,subscriberId:i,viewport:Ye,customerOrderCount:null}))&&(p=u.logoUrl,d=u.sideImgUrl,h=u.backgroundImage,ku([p,d,h]),ja.updateState({id:u.id,pendingTimeout:setTimeout((function(){Ma.getState().status===La&&_u(Qa,u.id,n)===tl||l(u)}),u.delay)}));case 4:case"end":return e.stop()}}),e)})));return function(t,n,r,o,i,s,a){return e.apply(this,arguments)}}(),qu=function(e,t,n,r,o,i,s){var a=[ju,Mu,Uu,Fu,Wu("Exit")],l=Pu(e,a,{splitTestCookies:i,currentCountry:r,origin:n,statuses:t,subscriberId:o,viewport:Ye,customerOrderCount:null});if(l){var c=l.logoUrl,u=l.sideImgUrl,p=l.backgroundImage;ku([c,u,p]);var d=_u(Qa,l.id,t);d?d===tl&&s(l):window.parent.postMessage({trigger:l.trigger,id:l.id},"*")}},Vu=function(){return document.currentScript||(e=document.getElementsByTagName("script"))[e.length-1];var e},Zu=function(e,t){try{var r=t.replace(/[\\[]/,"\\[").replace(/[\]]/,"\\]"),o=n(new RegExp("[\\?&]".concat(r,"=([^]*)")).exec("".concat(e)),2)[1];return null===o||"null"===o||"undefined"===o?"":decodeURIComponent(o.replace(/\+/g," "))}catch(e){return null}};const Xu=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Ku=[/^.*healthcheck.*$/,/^.*healthy.*$/,/^.*live.*$/,/^.*ready.*$/,/^.*heartbeat.*$/,/^.*\/health$/,/^.*\/healthz$/];class Ju{static __initStatic(){this.id="InboundFilters"}__init(){this.name=Ju.id}constructor(e={}){this._options=e,Ju.prototype.__init.call(this)}setupOnce(e,t){const n=e=>{const n=t();if(n){const t=n.getIntegration(Ju);if(t){const r=n.getClient(),o=r?r.getOptions():{},i=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Xu],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:Ku],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(t._options,o);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${ql(e)}`),!0):function(e,t){return!(e.type||!t||!t.length)&&function(e){if(e.message)return[e.message];if(e.exception){const{values:t}=e.exception;try{const{type:e="",value:n=""}=t&&t[t.length-1]||{};return[`${n}`,`${e}: ${n}`]}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.error(`Cannot extract message for event ${ql(e)}`),[]}}return[]}(e).some((e=>Pl(e,t)))}(e,t.ignoreErrors)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${ql(e)}`),!0):function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&Pl(n,t)}(e,t.ignoreTransactions)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${ql(e)}`),!0):function(e,t){if(!t||!t.length)return!1;const n=Qu(e);return!!n&&Pl(n,t)}(e,t.denyUrls)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${ql(e)}.\nUrl: ${Qu(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;const n=Qu(e);return!n||Pl(n,t)}(e,t.allowUrls)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${ql(e)}.\nUrl: ${Qu(e)}`),!0)}(e,i)?null:e}}return e};n.id=this.name,e(n)}}function Qu(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.error(`Cannot extract url for event ${ql(e)}`),null}}let ep;Ju.__initStatic();class tp{constructor(){tp.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=tp.id}setupOnce(){ep=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Ml(this)||this;return ep.apply(t,e)}}catch(e){}}}tp.__initStatic();const np=[];function rp(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;t.forEach((e=>{e.isDefaultInstance=!0})),r=Array.isArray(n)?[...t,...n]:"function"==typeof n?Kl(n(t)):t;const o=function(e){const t={};return e.forEach((e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.keys(t).map((e=>t[e]))}(r),i=function(e){for(let t=0;te[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{const r=[],o=e.split("\n");for(let e=n;e1024)continue;const i=ip.test(n)?n.replace(ip,"$1"):n;if(!i.match(/\S*Error: /)){for(const e of t){const t=e(i);if(t){r.push(t);break}}if(r.length>=50)break}}return function(e){if(!e.length)return[];const t=e.slice(0,50),n=t[t.length-1].function;n&&/sentryWrapped/.test(n)&&t.pop(),t.reverse();const r=t[t.length-1].function;return r&&/captureMessage|captureException/.test(r)&&t.pop(),t.map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(r)}}const ap="";function lp(e){try{return e&&"function"==typeof e&&e.name||ap}catch(e){return ap}}const cp=(0,Cl.VZ)();function up(){if(!("fetch"in cp))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function pp(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function dp(){if(!up())return!1;if(pp(cp.fetch))return!0;let e=!1;const t=cp.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=pp(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}const hp=(0,Cl.VZ)(),fp=(0,Cl.VZ)(),gp="__sentry_xhr_v2__",mp={},vp={};function bp(e,t){mp[e]=mp[e]||[],mp[e].push(t),function(e){if(!vp[e])switch(vp[e]=!0,e){case"console":"console"in fp&&Ql.forEach((function(e){e in fp.console&&$l(fp.console,e,(function(t){return function(...n){yp("console",{args:n,level:e}),t&&t.apply(fp.console,n)}}))}));break;case"dom":!function(){if(!("document"in fp))return;const e=yp.bind(null,"dom"),t=xp(e,!0);fp.document.addEventListener("click",t,!1),fp.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=fp[t]&&fp[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&($l(n,"addEventListener",(function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this,i=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},s=i[n]=i[n]||{refCount:0};if(!s.handler){const r=xp(e);s.handler=r,t.call(this,n,r,o)}s.refCount++}catch(e){}return t.call(this,n,r,o)}})),$l(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this,o=n.__sentry_instrumentation_handlers__||{},i=o[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete o[t]),0===Object.keys(o).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in fp))return;const e=XMLHttpRequest.prototype;$l(e,"open",(function(e){return function(...t){const n=t[1],r=this[gp]={method:El(t[0])?t[0].toUpperCase():t[0],url:t[1],request_headers:{}};El(n)&&"POST"===r.method&&n.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const o=()=>{const e=this[gp];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}yp("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?$l(this,"onreadystatechange",(function(e){return function(...t){return o(),e.apply(this,t)}})):this.addEventListener("readystatechange",o),$l(this,"setRequestHeader",(function(e){return function(...t){const[n,r]=t,o=this[gp];return o&&(o.request_headers[n.toLowerCase()]=r),e.apply(this,t)}})),e.apply(this,t)}})),$l(e,"send",(function(e){return function(...t){const n=this[gp];return n&&void 0!==t[0]&&(n.body=t[0]),yp("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}();break;case"fetch":dp()&&$l(fp,"fetch",(function(e){return function(...t){const{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:wp(t),method:_p(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:wp(t),method:_p(t,"method")?String(t.method).toUpperCase():"GET"}}(t),o={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return yp("fetch",{...o}),e.apply(fp,t).then((e=>(yp("fetch",{...o,endTimestamp:Date.now(),response:e}),e)),(e=>{throw yp("fetch",{...o,endTimestamp:Date.now(),error:e}),e}))}}));break;case"history":!function(){if(!function(){const e=hp.chrome,t=e&&e.app&&e.app.runtime,n="history"in hp&&!!hp.history.pushState&&!!hp.history.replaceState;return!t&&n}())return;const e=fp.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=kp,t=String(n);kp=t,yp("history",{from:e,to:t})}return e.apply(this,t)}}fp.onpopstate=function(...t){const n=fp.location.href,r=kp;if(kp=n,yp("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},$l(fp.history,"pushState",t),$l(fp.history,"replaceState",t)}();break;case"error":Tp=fp.onerror,fp.onerror=function(e,t,n,r,o){return yp("error",{column:r,error:o,line:n,msg:e,url:t}),!(!Tp||Tp.__SENTRY_LOADER__)&&Tp.apply(this,arguments)},fp.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":Ip=fp.onunhandledrejection,fp.onunhandledrejection=function(e){return yp("unhandledrejection",e),!(Ip&&!Ip.__SENTRY_LOADER__)||Ip.apply(this,arguments)},fp.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.warn("unknown instrumentation type:",e)}}(e)}function yp(e,t){if(e&&mp[e])for(const n of mp[e]||[])try{n(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${lp(n)}\nError:`,t)}}function _p(e,t){return!!e&&"object"==typeof e&&!!e[t]}function wp(e){return"string"==typeof e?e:e?_p(e,"url")?e.url:e.toString?e.toString():"":""}let kp;const Ep=1e3;let Op,Sp;function xp(e,t=!1){return n=>{if(!n||Sp===n)return;if(function(e){if("keypress"!==e.type)return!1;try{const t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n))return;const r="keypress"===n.type?"input":n.type;(void 0===Op||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(Sp,n))&&(e({event:n,name:r,global:t}),Sp=n),clearTimeout(Op),Op=fp.setTimeout((()=>{Op=void 0}),Ep)}}let Tp=null,Ip=null;const Cp=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Rp(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:l}=e;return`${a}://${l}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${s}`}function Ap(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Dp(e,t=100,n=1/0){try{return Lp("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Np(e,t=3,n=102400){const r=Dp(e,t);return o=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>n?Np(e,t-1,n):r;var o}function Lp(e,t,n=1/0,r=1/0,i=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e=r){d[e]="[MaxProperties ~]";break}const t=f[e];d[e]=Lp(e,t,u-1,r,i),h++}return a(t),d}function Pp(e,t=[]){return[e,t]}function $p(e,t){const[n,r]=e;return[n,[...r,t]]}function Bp(e,t){const n=e[1];for(const e of n)if(t(e,e[0].type))return!0;return!1}function jp(e,t){return(t||new TextEncoder).encode(e)}function Mp(e,t){const[n,r]=e;let o=JSON.stringify(n);function i(e){"string"==typeof o?o="string"==typeof e?o+e:[jp(o,t),e]:o.push("string"==typeof e?jp(e,t):e)}for(const e of r){const[t,n]=e;if(i(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(Dp(n))}i(e)}}return"string"==typeof o?o:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(o)}function Up(e,t){const n="string"==typeof e.data?jp(e.data,t):e.data;return[Hl({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const Fp={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor"};function Gp(e){return Fp[e]}function Hp(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}class Wp extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}function Yp(e,t={}){const n="string"==typeof t?t:t.tunnel,r="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${function(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return n={sentry_key:e.publicKey,sentry_version:"7",...t&&{sentry_client:`${t.name}/${t.version}`}},Object.keys(n).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`)).join("&");var n}(e,r)}`}const zp=new WeakMap,qp="Not capturing exception because it's already been captured.";class Vp{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}__init5(){this._hooks={}}constructor(e){if(Vp.prototype.__init.call(this),Vp.prototype.__init2.call(this),Vp.prototype.__init3.call(this),Vp.prototype.__init4.call(this),Vp.prototype.__init5.call(this),this._options=e,e.dsn?this._dsn=function(e){const t="string"==typeof e?function(e){const t=Cp.exec(e);if(!t)return void console.error(`Invalid Sentry Dsn: ${e}`);const[n,r,o="",i,s="",a]=t.slice(1);let l="",c=a;const u=c.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),c=u.pop()),c){const e=c.match(/^\d+/);e&&(c=e[0])}return Ap({host:i,pass:o,path:l,projectId:c,port:s,protocol:n,publicKey:r})}(e):Ap(e);if(t&&function(e){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return!0;const{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(nc.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(nc.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(nc.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(nc.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}(e.dsn):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.warn("No DSN provided, client will not do anything."),this._dsn){const t=Yp(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if(Xl(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.log(qp));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{r=e}))),r}captureMessage(e,t,n,r){let o=n&&n.event_id;const i=Ol(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(i.then((e=>this._captureEvent(e,n,r))).then((e=>{o=e}))),o}captureEvent(e,t,n){if(t&&t.originalException&&Xl(t.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.log(qp));let r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((e=>{r=e}))),r}captureSession(e){this._isEnabled()?"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),lc(e,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.warn("SDK not enabled, will not capture session.")}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e)))):ic(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,e)))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(e){const t={};return e.forEach((e=>{e&&op(e,t)})),t}(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){op(e,this._integrations)}sendEvent(e,t={}){if(this._dsn){let n=function(e,t,n,r){const o=Hp(n),i=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const s=function(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&{dsn:Rp(r)},...o&&{trace:Hl({...o})}}}(e,o,r,t);return delete e.sdkProcessingMetadata,Pp(s,[[{type:i},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=$p(n,Up(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));const r=this._sendEnvelope(n);r&&r.then((t=>this.emit("afterSendEvent",e,t)),null)}}sendSession(e){if(this._dsn){const t=function(e,t,n,r){const o=Hp(n);return Pp({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&{dsn:Rp(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const n=`${e}:${t}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}_updateSessionFromEvent(e,t){let n=!1,r=!1;const o=t.exception&&t.exception.values;if(o){r=!0;for(const e of o){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const i="ok"===e.status;(i&&0===e.errors||i&&n)&&(lc(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new ac((t=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(e,t,n){const r=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o.length>0&&(t.integrations=o),function(e,t,n,r){const{normalizeDepth:o=3,normalizeMaxBreadth:i=1e3}=e,s={...t,event_id:t.event_id||n.event_id||Yl(),timestamp:t.timestamp||(0,Jl.lu)()},a=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:r,dist:o,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:rc),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==o&&(e.dist=o),e.message&&(e.message=Nl(e.message,i));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=Nl(s.value,i));const a=e.request;a&&a.url&&(a.url=Nl(a.url,i))}(s,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(s,a),void 0===t.type&&function(e,t){const n=Cl.OW._sentryDebugIds;if(!n)return;let r;const o=zp.get(t);o?r=o:(r=new Map,zp.set(t,r));const i=Object.keys(n).reduce(((e,o)=>{let i;const s=r.get(o);s?i=s:(i=t(o),r.set(o,i));for(let t=i.length-1;t>=0;t--){const r=i[t];if(r.filename){e[r.filename]=n[o];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=i[e.filename])}))}))}catch(e){}}(s,e.stackParser);let l=r;n.captureContext&&(l=cc.clone(l).update(n.captureContext));let c=ic(s);if(l){if(l.getAttachments){const e=[...n.attachments||[],...l.getAttachments()];e.length&&(n.attachments=e)}c=l.applyToEvent(s,n)}return c.then((e=>(e&&function(e){const t={};try{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)}))}))}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach((e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"==typeof o&&o>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:Dp(e.data,t,n)}})))},...e.user&&{user:Dp(e.user,t,n)},...e.contexts&&{contexts:Dp(e.contexts,t,n)},...e.extra&&{extra:Dp(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Dp(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>(e.data&&(e.data=Dp(e.data,t,n)),e)))),r}(e,o,i):e)))}(r,e,t,n).then((e=>{if(null===e)return e;const{propagationContext:t}=e.sdkProcessingMetadata||{};if((!e.contexts||!e.contexts.trace)&&t){const{traceId:r,spanId:o,parentSpanId:i,dsc:s}=t;e.contexts={trace:{trace_id:r,span_id:o,parent_span_id:i},...e.contexts};const a=s||function(e,t,n){const r=t.getOptions(),{publicKey:o}=t.getDsn()||{},{segment:i}=n&&n.getUser()||{},s=Hl({environment:r.environment||rc,release:r.release,user_segment:i,public_key:o,trace_id:e});return t.emit&&t.emit("createDsc",s),s}(r,this,n);e.sdkProcessingMetadata={dynamicSamplingContext:a,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const t=e;"log"===t.logLevel?nc.log(t.message):nc.warn(t)}}))}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:o}=r;if(!this._isEnabled())return sc(new Wp("SDK not enabled, will not capture event.","log"));const i=Xp(e),s=Zp(e),a=e.type||"error",l=`before send for type \`${a}\``;if(s&&"number"==typeof o&&Math.random()>o)return this.recordDroppedEvent("sample_rate","error",e),sc(new Wp(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const c="replay_event"===a?"replay":a;return this._prepareEvent(e,t,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",c,e),new Wp("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const o=function(e,t,n){const{beforeSend:r,beforeSendTransaction:o}=e;return Zp(t)&&r?r(t,n):Xp(t)&&o?o(t,n):t}(r,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Tl(e))return e.then((e=>{if(!Sl(e)&&null!==e)throw new Wp(n);return e}),(e=>{throw new Wp(`${t} rejected with ${e}`)}));if(!Sl(e)&&null!==e)throw new Wp(n);return e}(o,l)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",c,e),new Wp(`${l} returned \`null\`, will not send event.`,"log");const o=n&&n.getSession();!i&&o&&this._updateSessionFromEvent(o,r);const s=r.transaction_info;if(i&&s&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...s,source:e}}return this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof Wp)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Wp(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){if(this._transport&&this._dsn)return this.emit("beforeEnvelope",e),this._transport.send(e).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.error("Error while sending event:",e)}));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}}function Zp(e){return void 0===e.type}function Xp(e){return"transaction"===e.type}const Kp="7.59.2";var Jp=o(341);function Qp(e,t){const n=td(e,t),r={type:t&&t.name,value:rd(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function ed(e,t){return{exception:{values:[Qp(e,t)]}}}function td(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(nd.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}const nd=/Minified React error #\d+;/i;function rd(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function od(e,t,n,r,o){let i;if(wl(t)&&t.error)return ed(e,t.error);if(kl(t)||_l(t,"DOMException")){const o=t;if("stack"in t)i=ed(e,t);else{const t=o.name||(kl(o)?"DOMError":"DOMException"),s=o.message?`${t}: ${o.message}`:t;i=id(e,s,n,r),Vl(i,s)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return yl(t)?ed(e,t):Sl(t)||xl(t)?(i=function(e,t,n,r){const o=vc().getClient(),i=o&&o.getOptions().normalizeDepth,s={exception:{values:[{type:xl(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:sd(t,{isUnhandledRejection:r})}]},extra:{__serialized__:Np(t,i)}};if(n){const t=td(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}(e,t,n,o),Zl(i,{synthetic:!0}),i):(i=id(e,t,n,r),Vl(i,`${t}`,void 0),Zl(i,{synthetic:!0}),i)}function id(e,t,n,r){const o={message:t};if(r&&n){const r=td(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]})}return o}function sd(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(Ul(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Nl(n[0],t);for(let e=n.length;e>0;e--){const r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:Nl(r,t)}return""}(e),r=t?"promise rejection":"exception";return wl(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:xl(e)?`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}const ad=Cl.OW;let ld=0;function cd(){return ld>0}function ud(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if(Ml(e))return e}catch(t){return e}const r=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const o=r.map((e=>ud(e,t)));return e.apply(this,o)}catch(e){throw ld++,setTimeout((()=>{ld--})),o=n=>{n.addEventProcessor((e=>(t.mechanism&&(Vl(e,void 0,void 0),Zl(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),_c(e)},vc().withScope(o),e}var o};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}jl(r,e),Bl(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch(e){}return r}const pd=["fatal","error","warning","log","info","debug"];function dd(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const hd="Breadcrumbs";class fd{static __initStatic(){this.id=hd}__init(){this.name=fd.id}constructor(e){fd.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){var e;this.options.console&&bp("console",gd),this.options.dom&&bp("dom",(e=this.options.dom,function(t){let n,r="object"==typeof e?e.serializeAttribute:void 0,o="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;o&&o>1024&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${o} was configured. Sentry will use 1024 instead.`),o=1024),"string"==typeof r&&(r=[r]);try{const e=t.event;n=function(e){return!!e&&!!e.target}(e)?Al(e.target,{keyAttrs:r,maxStringLength:o}):Al(e,{keyAttrs:r,maxStringLength:o})}catch(e){n=""}0!==n.length&&vc().addBreadcrumb({category:`ui.${t.name}`,message:n},{event:t.event,name:t.name,global:t.global})})),this.options.xhr&&bp("xhr",md),this.options.fetch&&bp("fetch",vd),this.options.history&&bp("history",bd)}addSentryBreadcrumb(e){this.options.sentry&&vc().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:ql(e)},{event:e})}}function gd(e){for(let t=0;t{"hidden"===ad.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){const o=od(e,t,n&&n.syntheticException||void 0,r);return Zl(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),ic(o)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,o){const i=id(e,t,r&&r.syntheticException||void 0,o);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),ic(i)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}sendEvent(e,t){const n=this.getIntegrationById(hd);n&&n.addSentryBreadcrumb&&n.addSentryBreadcrumb(e),super.sendEvent(e,t)}captureUserFeedback(e){if(!this._isEnabled())return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:r}){const o={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Rp(r)}},i=function(e){return[{type:"user_report"},e]}(e);return Pp(o,[i])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.log("No outcomes to send"));if(!this._dsn)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.log("No dsn provided, will not send outcomes"));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.log("Sending outcomes:",e);const t=(n=e,Pp((r=this._options.tunnel&&Rp(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:(0,Jl.lu)(),discarded_events:n}]]));var n,r;this._sendEnvelope(t)}}class _d{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=_d.id}__init2(){this._installFunc={onerror:wd,onunhandledrejection:kd}}constructor(e){_d.prototype.__init.call(this),_d.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...e}}setupOnce(){Error.stackTraceLimit=50;const e=this._options;for(const n in e){const r=this._installFunc[n];r&&e[n]&&(t=n,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.log(`Global Handler attached: ${t}`),r(),this._installFunc[n]=void 0)}var t}}function wd(){bp("error",(e=>{const[t,n,r]=Sd();if(!t.getIntegration(_d))return;const{msg:o,url:i,line:s,column:a,error:l}=e;if(cd()||l&&l.__sentry_own_request__)return;const c=void 0===l&&El(o)?function(e,t,n,r){let o=wl(e)?e.message:e,i="Error";const s=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);s&&(i=s[1],o=s[2]);return Ed({exception:{values:[{type:i,value:o}]}},t,n,r)}(o,i,s,a):Ed(od(n,l||o,void 0,r,!1),i,s,a);c.level="error",Od(t,l,c,"onerror")}))}function kd(){bp("unhandledrejection",(e=>{const[t,n,r]=Sd();if(!t.getIntegration(_d))return;let o=e;try{"reason"in e?o=e.reason:"detail"in e&&"reason"in e.detail&&(o=e.detail.reason)}catch(e){}if(cd()||o&&o.__sentry_own_request__)return!0;const i=Ol(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:od(n,o,void 0,r,!0);i.level="error",Od(t,o,i,"onunhandledrejection")}))}function Ed(e,t,n,r){const o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},a=s.stacktrace=s.stacktrace||{},l=a.frames=a.frames||[],c=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,p=El(t)&&t.length>0?t:function(){try{return Rl.document.location.href}catch(e){return""}}();return 0===l.length&&l.push({colno:c,filename:p,function:"?",in_app:!0,lineno:u}),e}function Od(e,t,n,r){Zl(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function Sd(){const e=vc(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}_d.__initStatic();const xd=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class Td{static __initStatic(){this.id="TryCatch"}__init(){this.name=Td.id}constructor(e){Td.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){this._options.setTimeout&&$l(ad,"setTimeout",Id),this._options.setInterval&&$l(ad,"setInterval",Id),this._options.requestAnimationFrame&&$l(ad,"requestAnimationFrame",Cd),this._options.XMLHttpRequest&&"XMLHttpRequest"in ad&&$l(XMLHttpRequest.prototype,"send",Rd);const e=this._options.eventTarget;e&&(Array.isArray(e)?e:xd).forEach(Ad)}}function Id(e){return function(...t){const n=t[0];return t[0]=ud(n,{mechanism:{data:{function:lp(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function Cd(e){return function(t){return e.apply(this,[ud(t,{mechanism:{data:{function:"requestAnimationFrame",handler:lp(e)},handled:!0,type:"instrument"}})])}}function Rd(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&$l(n,e,(function(t){const n={mechanism:{data:{function:e,handler:lp(t)},handled:!0,type:"instrument"}},r=Ml(t);return r&&(n.mechanism.data.handler=lp(r)),ud(t,n)}))})),e.apply(this,t)}}function Ad(e){const t=ad,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&($l(n,"addEventListener",(function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=ud(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:lp(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.apply(this,[n,ud(r,{mechanism:{data:{function:"addEventListener",handler:lp(r),target:e},handled:!0,type:"instrument"}}),o])}})),$l(n,"removeEventListener",(function(e){return function(t,n,r){const o=n;try{const n=o&&o.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch(e){}return e.call(this,t,o,r)}})))}function Dd(e,t,n,r,o,i){if(!(o.exception&&o.exception.values&&i&&Il(i.originalException,Error)))return;const s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=Nd(e,t,r,i.originalException,n,o.exception.values,s,0))}function Nd(e,t,n,r,o,i,s,a){if(i.length>=n+1)return i;let l=[...i];if(Il(r[o],Error)){Ld(s,a);const i=e(t,r[o]),c=l.length;Pd(i,o,c,a),l=Nd(e,t,n,r[o],o,[i,...l],i,c)}return Array.isArray(r.errors)&&r.errors.forEach(((r,i)=>{if(Il(r,Error)){Ld(s,a);const c=e(t,r),u=l.length;Pd(c,`errors[${i}]`,u,a),l=Nd(e,t,n,r,o,[c,...l],c,u)}})),l}function Ld(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,is_exception_group:!0,exception_id:t}}function Pd(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}Td.__initStatic();class $d{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=$d.id}constructor(e={}){$d.prototype.__init.call(this),this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(e,t){e(((e,n)=>{const r=t(),o=r.getClient(),i=r.getIntegration($d);return o&&i?(Dd(Qp,o.getOptions().stackParser,i._key,i._limit,e,n),e):e}))}}$d.__initStatic();class Bd{constructor(){Bd.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=Bd.id}setupOnce(){pc((e=>{if(vc().getIntegration(Bd)){if(!ad.navigator&&!ad.location&&!ad.document)return e;const t=e.request&&e.request.url||ad.location&&ad.location.href,{referrer:n}=ad.document||{},{userAgent:r}=ad.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},i={...e.request,...t&&{url:t},headers:o};return{...e,request:i}}return e}))}}Bd.__initStatic();class jd{constructor(){jd.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=jd.id}setupOnce(e,t){const n=e=>{if(e.type)return e;const n=t().getIntegration(jd);if(n){try{if(function(e,t){return!!t&&(!!function(e,t){const n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!Ud(e,t)&&!!Md(e,t))))}(e,t)||!!function(e,t){const n=Fd(t),r=Fd(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!Ud(e,t)&&!!Md(e,t)))}(e,t))}(e,n._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return n._previousEvent=e}return n._previousEvent=e}return e};n.id=this.name,e(n)}}function Md(e,t){let n=Gd(e),r=Gd(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,zd=/\((\S*)(?::(\d+))(?::(\d+))\)/,qd=[30,e=>{const t=Yd.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=zd.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=Qd(t[1]||Hd,t[2]);return Wd(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],Vd=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Zd=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Xd=[50,e=>{const t=Vd.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=Zd.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||Hd;return[n,e]=Qd(n,e),Wd(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],Kd=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Jd=sp(qd,Xd,[40,e=>{const t=Kd.exec(e);return t?Wd(t[2],t[1]||Hd,+t[3],t[4]?+t[4]:void 0):void 0}]),Qd=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:Hd,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function eh(e,t,n=function(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.lengthn(o))).then(null,(()=>n(o).then(null,(()=>{})))),o},drain:function(e){return new ac(((n,r)=>{let o=t.length;if(!o)return n(!0);const i=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{ic(e).then((()=>{--o||(clearTimeout(i),n(!0))}),r)}))}))}}}(e.bufferSize||30)){let r={};function o(o){const i=[];if(Bp(o,((t,n)=>{const o=Gp(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,o)){const r=th(t,n);e.recordDroppedEvent("ratelimit_backoff",o,r)}else i.push(t)})),0===i.length)return ic();const s=Pp(o[0],i),a=t=>{Bp(s,((n,r)=>{const o=th(n,r);e.recordDroppedEvent(t,Gp(r),o)}))};return n.add((()=>t({body:Mp(s,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},i=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(i)for(const e of i.trim().split(",")){const[t,n]=e.split(":",2),i=parseInt(t,10),s=1e3*(isNaN(i)?60:i);if(n)for(const e of n.split(";"))o[e]=r+s;else o.all=r+s}else s?o.all=r+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(s,r):429===t&&(o.all=r+6e4);return o}(r,e),e)),(e=>{throw a("network_error"),e})))).then((e=>e),(e=>{if(e instanceof Wp)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.error("Skipped sending event because buffer is full."),a("queue_overflow"),ic();throw e}))}return o.__sentry__baseTransport__=!0,{send:o,flush:e=>n.drain(e)}}function th(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}let nh;function rh(e,t=function(){if(nh)return nh;if(pp(ad.fetch))return nh=ad.fetch.bind(ad);const e=ad.document;let t=ad.fetch;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return nh=t.bind(ad)}()){let n=0,r=0;return eh(e,(function(o){const i=o.body.length;n+=i,r++;const s={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,s).then((e=>(n-=i,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return nh=void 0,n-=i,r--,sc(e)}}))}function oh(e){return eh(e,(function(t){return new ac(((n,r)=>{const o=new XMLHttpRequest;o.onerror=r,o.onreadystatechange=()=>{4===o.readyState&&n({statusCode:o.status,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")}})},o.open("POST",e.url);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&o.setRequestHeader(t,e.headers[t]);o.send(t.body)}))}))}const ih=[new Ju,new tp,new Td,new fd,new _d,new $d,new jd,new Bd];function sh(e){e.startSession({ignoreDuration:!0}),e.captureSession()}class ah{static __initStatic(){this.id="HttpClient"}__init(){this.name=ah.id}constructor(e){ah.prototype.__init.call(this),this._options={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e}}setupOnce(e,t){this._getCurrentHub=t,this._wrapFetch(),this._wrapXHR()}_fetchResponseHandler(e,t,n){if(this._getCurrentHub&&this._shouldCaptureResponse(t.status,t.url)){const r=function(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}(e,n),o=this._getCurrentHub();let i,s,a,l;o.shouldSendDefaultPii()&&([{headers:i,cookies:a},{headers:s,cookies:l}]=[{cookieHeader:"Cookie",obj:r},{cookieHeader:"Set-Cookie",obj:t}].map((({cookieHeader:e,obj:t})=>{const n=this._extractFetchHeaders(t.headers);let r;try{const t=n[e]||n[e.toLowerCase()]||void 0;t&&(r=this._parseCookieString(t))}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.log(`Could not extract cookies from header ${e}`)}return{headers:n,cookies:r}})));const c=this._createEvent({url:r.url,method:r.method,status:t.status,requestHeaders:i,responseHeaders:s,requestCookies:a,responseCookies:l});o.captureEvent(c)}}_xhrResponseHandler(e,t,n){if(this._getCurrentHub&&this._shouldCaptureResponse(e.status,e.responseURL)){let r,o,i;const s=this._getCurrentHub();if(s.shouldSendDefaultPii()){try{const t=e.getResponseHeader("Set-Cookie")||e.getResponseHeader("set-cookie")||void 0;t&&(o=this._parseCookieString(t))}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.log("Could not extract cookies from response headers")}try{i=this._getXHRResponseHeaders(e)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.log("Could not extract headers from response")}r=n}const a=this._createEvent({url:e.responseURL,method:t,status:e.status,requestHeaders:r,responseHeaders:i,responseCookies:o});s.captureEvent(a)}}_getResponseSizeFromHeaders(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}_parseCookieString(e){return e.split("; ").reduce(((e,t)=>{const[n,r]=t.split("=");return e[n]=r,e}),{})}_extractFetchHeaders(e){const t={};return e.forEach(((e,n)=>{t[n]=e})),t}_getXHRResponseHeaders(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return e[n]=r,e}),{}):{}}_isInGivenRequestTargets(e){return!!this._options.failedRequestTargets&&this._options.failedRequestTargets.some((t=>"string"==typeof t?e.includes(t):t.test(e)))}_isInGivenStatusRanges(e){return!!this._options.failedRequestStatusCodes&&this._options.failedRequestStatusCodes.some((t=>"number"==typeof t?t===e:e>=t[0]&&e<=t[1]))}_wrapFetch(){dp()&&bp("fetch",(e=>{const{response:t,args:n}=e,[r,o]=n;t&&this._fetchResponseHandler(r,t,o)}))}_wrapXHR(){"XMLHttpRequest"in Cl.OW&&bp("xhr",(e=>{const{xhr:t}=e,n=t[gp];if(!n)return;const{method:r,request_headers:o}=n;if(r)try{this._xhrResponseHandler(t,r,o)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.warn("Error while extracting response event form XHR response",e)}}))}_isSentryRequest(e){const t=this._getCurrentHub&&this._getCurrentHub().getClient();if(!t)return!1;const n=t.getDsn();return!!n&&e.includes(n.host)}_shouldCaptureResponse(e,t){return this._isInGivenStatusRanges(e)&&this._isInGivenRequestTargets(t)&&!this._isSentryRequest(t)}_createEvent(e){const t=`HTTP Client Error with status code: ${e.status}`,n={message:t,exception:{values:[{type:"Error",value:t}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:this._getResponseSizeFromHeaders(e.responseHeaders)}}};return Zl(n,{type:"http.client"}),n}}ah.__initStatic();var lh=function(e){var t=["Load failed","Failed to fetch","cancelled","annulé","已取消","Abgebrochen","キャンセルしました","cancelado","avbruten","geannuleerd"];!function(e={}){void 0===e.defaultIntegrations&&(e.defaultIntegrations=ih),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),ad.SENTRY_RELEASE&&ad.SENTRY_RELEASE.id&&(e.release=ad.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);const t={...e,stackParser:(n=e.stackParser||Jd,Array.isArray(n)?sp(...n):n),integrations:rp(e),transport:e.transport||(up()?rh:oh)};var n;!function(e,t){!0===t.debug&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?nc.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));const n=vc();n.getScope().update(t.initialScope);const r=new e(t);n.bindClient(r)}(yd,t),e.autoSessionTracking&&function(){if(void 0===ad.document)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&nc.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));const e=vc();e.captureSession&&(sh(e),bp("history",(({from:e,to:t})=>{void 0!==e&&e!==t&&sh(vc())})))}()}({dsn:"https://1f67009d53b34b6e9118ddf500f45208@o142330.ingest.sentry.io/4504340660355072",integrations:[new ah({failedRequestStatusCodes:[[400,599]]})],environment:"production",release:"5ef4a19",sampleRate:e?1:.1,beforeSend:function(e){var n,r;return(null===(n=e.exception)||void 0===n||null===(r=n.values)||void 0===r?void 0:r.some((function(e){return"TypeError"===e.type&&e.value&&t.includes(e.value)})))?null:e}})},ch=function(){var e=i(a().mark((function e(t){var n,r,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,yu(t);case 2:return o=e.sent,e.abrupt("return",null!==(n=null==o||null===(r=o.data)||void 0===r?void 0:r.disclaimer)&&void 0!==n?n:null);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),uh=function(){var e=i(a().mark((function e(){var t,n,r,o,i,s,l,c,u,p,d,h,f,g,m,v,b,y;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t="?".concat(Vu().src.split("?").slice(1).join("")),n=Zu(t,"shopId"),r=Zu(t,"shopShop"),o=Zu(t,"status")||null,i=Zu(t,"splitTests")||null,s=Zu(t,"uniqueImpressionCookies")||null,l=Zu(t,"customerOrderCount"),c=l&&!Number.isNaN(parseInt(l,10))?parseInt(l,10):null,u=Zu(t,"sessionId")||null,p=Zu(t,"subscriberId"),d=Zu(t,"origin"),h=Zu(t,"flags"),f=Zu(t,"config"),!(g=Zu(t,"disclaimer"))){e.next=18;break}e.t0=JSON.parse(g),e.next=21;break;case 18:return e.next=20,ch(n);case 20:e.t0=e.sent;case 21:if(m=e.t0){e.next=24;break}throw new Error("Disclaimer data could not be loaded from config");case 24:if(v=Zu(t,"_ps_preview"),e.t1=Zu(t,"country"),e.t1){e.next=30;break}return e.next=29,Yc(n);case 29:e.t1=e.sent;case 30:return b=e.t1,y=f?JSON.parse(f):null,e.abrupt("return",{shopId:null!=n?n:"",status:o,origin:d,sessionId:u,editorPreviewPopup:y,flags:h,shopShop:r,splitTestCookies:i,disclaimer:m,currentCountry:b,subscriberId:p,uniqueImpressionCookies:s,customerOrderCount:c,livePreviewPopupId:v});case 33:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ph=function(){var e=i(a().mark((function e(){var t,n,r,o,i,s,l,c,u;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="?".concat(Vu().src.split("?").slice(1).join("")),lh(!!Zu(t,"config")),e.next=4,uh();case 4:return n=e.sent,r=n.flags,o=n.shopId,i=n.editorPreviewPopup,s=n.shopShop,l=n.origin,c=n.disclaimer,u=n.livePreviewPopupId,wc("shop_id",o),wc("editor_preview",!!i||!!u),Ua.updateState({flags:null!=r?r:void 0,shopId:Number(o),shopShop:null!=s?s:void 0,disclaimer:null!=c?c:void 0,isPreview:Boolean(i)}),window.parentHostname=((a=l).indexOf("//")>-1?a.split("/")[2]:a.split("/")[0]).split(":")[0].split("?")[0],e.abrupt("return",n);case 11:case"end":return e.stop()}var a}),e)})));return function(){return e.apply(this,arguments)}}(),dh="fade-in",hh="fade-out",fh="a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]",gh=function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.target.click())},mh=function(e){for(var t=0;t0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=o+n?(o=s,[4,Sh(0)]):[3,3]):[3,4];case 2:a.sent(),a.label=3;case 3:return++i,[3,1];case 4:return[2,r]}}))}))}function Ch(e){e.then(void 0,(function(){}))}function Rh(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function Ah(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function Dh(e,t){return 32==(t%=64)?[e[1],e[0]]:t<32?[e[0]<>>32-t,e[1]<>>32-t]:(t-=32,[e[1]<>>32-t,e[0]<>>32-t])}function Nh(e,t){return 0==(t%=64)?e:t<32?[e[0]<>>32-t,e[1]<>>1]),e=Lh(e=Ah(e,[4283543511,3981806797]),[0,e[0]>>>1]),Lh(e=Ah(e,[3301882366,444984403]),[0,e[0]>>>1])}function $h(e){return parseInt(e)}function Bh(e){return parseFloat(e)}function jh(e,t){return"number"==typeof e&&isNaN(e)?t:e}function Mh(e){return e.reduce((function(e,t){return e+(t?1:0)}),0)}function Uh(e,t){if(void 0===t&&(t=1),Math.abs(t)>=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function Fh(e){return e&&"object"==typeof e&&"message"in e?e:{message:e}}function Gh(){var e=window,t=navigator;return Mh(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function Hh(){var e=window,t=navigator;return Mh(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,0===t.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function Wh(){var e=window,t=navigator;return Mh(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,0===t.vendor.indexOf("Apple"),"getStorageUpdates"in t,"WebKitMediaKeys"in e])>=4}function Yh(){var e=window;return Mh(["safari"in e,!("DeviceMotionEvent"in e),!("ongestureend"in e),!("standalone"in navigator)])>=3}function zh(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function qh(){var e=Hh(),t=function(){var e,t,n=window;return Mh(["buildID"in navigator,"MozAppearance"in(null!==(t=null===(e=document.documentElement)||void 0===e?void 0:e.style)&&void 0!==t?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}();if(!e&&!t)return!1;var n=window;return Mh(["onorientationchange"in n,"orientation"in n,e&&!("SharedWorker"in n),t&&/android/i.test(navigator.appVersion)])>=2}function Vh(e){var t=new Error(e);return t.name=e,t}function Zh(e,t,n){var r,o,i;return void 0===n&&(n=50),wh(this,void 0,void 0,(function(){var s,a;return kh(this,(function(l){switch(l.label){case 0:s=document,l.label=1;case 1:return s.body?[3,3]:[4,Sh(n)];case 2:return l.sent(),[3,1];case 3:a=s.createElement("iframe"),l.label=4;case 4:return l.trys.push([4,,10,11]),[4,new Promise((function(e,n){var r=!1,o=function(){r=!0,e()};a.onload=o,a.onerror=function(e){r=!0,n(e)};var i=a.style;i.setProperty("display","block","important"),i.position="absolute",i.top="0",i.left="0",i.visibility="hidden",t&&"srcdoc"in a?a.srcdoc=t:a.src="about:blank",s.body.appendChild(a);var l=function(){var e,t;r||("complete"===(null===(t=null===(e=a.contentWindow)||void 0===e?void 0:e.document)||void 0===t?void 0:t.readyState)?o():setTimeout(l,10))};l()}))];case 5:l.sent(),l.label=6;case 6:return(null===(o=null===(r=a.contentWindow)||void 0===r?void 0:r.document)||void 0===o?void 0:o.body)?[3,8]:[4,Sh(n)];case 7:return l.sent(),[3,6];case 8:return[4,e(a,a.contentWindow)];case 9:return[2,l.sent()];case 10:return null===(i=a.parentNode)||void 0===i||i.removeChild(a),[7];case 11:return[2]}}))}))}function Xh(e){for(var t=function(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),o=/^\s*([a-z-]*)(.*)$/i.exec(e),i=o[1]||void 0,s={},a=/([.:#][\w-]+|\[.+?\])/gi,l=function(e,t){s[e]=s[e]||[],s[e].push(t)};;){var c=a.exec(o[2]);if(!c)break;var u=c[0];switch(u[0]){case".":l("class",u.slice(1));break;case"#":l("id",u.slice(1));break;case"[":var p=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(u);if(!p)throw new Error(r);l(p[1],null!==(n=null!==(t=p[4])&&void 0!==t?t:p[5])&&void 0!==n?n:"");break;default:throw new Error(r)}}return[i,s]}(e),n=t[0],r=t[1],o=document.createElement(null!=n?n:"div"),i=0,s=Object.keys(r);i.6*n.length}))).sort(),[2,o]}var a}))}))},fontPreferences:function(){return void 0===e&&(e=4e3),Zh((function(t,n){var r=n.document,o=r.body,i=o.style;i.width="".concat(e,"px"),i.webkitTextSizeAdjust=i.textSizeAdjust="none",Hh()?o.style.zoom="".concat(1/n.devicePixelRatio):Wh()&&(o.style.zoom="reset");var s=r.createElement("div");return s.textContent=Eh([],Array(e/20|0),!0).map((function(){return"word"})).join(" "),o.appendChild(s),function(e,t){for(var n={},r={},o=0,i=Object.keys(gf);o ');var e},audio:function(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(Wh()&&!Yh()&&!function(){var e=window;return Mh(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}())return-1;var n=new t(1,5e3,44100),r=n.createOscillator();r.type="triangle",r.frequency.value=1e4;var o=n.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,r.connect(o),o.connect(n.destination),r.start(0);var i=function(e){var t=function(){};return[new Promise((function(n,r){var o=!1,i=0,s=0;e.oncomplete=function(e){return n(e.renderedBuffer)};var a=function(){setTimeout((function(){return r(Vh("timeout"))}),Math.min(500,s+5e3-Date.now()))},l=function(){try{var t=e.startRendering();switch(xh(t)&&Ch(t),e.state){case"running":s=Date.now(),o&&a();break;case"suspended":document.hidden||i++,o&&i>=3?r(Vh("suspended")):setTimeout(l,500)}}catch(e){r(e)}};l(),t=function(){o||(o=!0,s>0&&a())}})),t]}(n),s=i[0],a=i[1],l=s.then((function(e){return function(e){for(var t=0,n=0;n=3}()||t.push(e.languages);else if("string"==typeof e.languages){var r=e.languages;r&&t.push(r.split(","))}return t},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return jh(Bh(navigator.deviceMemory),void 0)},screenResolution:function(){var e=screen,t=function(e){return jh($h(e),null)},n=[t(e.width),t(e.height)];return n.sort().reverse(),n},hardwareConcurrency:function(){return jh($h(navigator.hardwareConcurrency),void 0)},timezone:function(){var e,t=null===(e=window.Intl)||void 0===e?void 0:e.DateTimeFormat;if(t){var n=(new t).resolvedOptions().timeZone;if(n)return n}var r,o=(r=(new Date).getFullYear(),-Math.max(Bh(new Date(r,0,1).getTimezoneOffset()),Bh(new Date(r,6,1).getTimezoneOffset())));return"UTC".concat(o>=0?"+":"").concat(Math.abs(o))},sessionStorage:function(){try{return!!window.sessionStorage}catch(e){return!0}},localStorage:function(){try{return!!window.localStorage}catch(e){return!0}},indexedDB:function(){if(!Gh()&&!function(){var e=window,t=navigator;return Mh(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Gh()}())try{return!!window.indexedDB}catch(e){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var e=navigator.platform;return"MacIntel"===e&&Wh()&&!Yh()?function(){if("iPad"===navigator.platform)return!0;var e=screen,t=e.width/e.height;return Mh(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}()?"iPad":"iPhone":e},plugins:function(){var e=navigator.plugins;if(e){for(var t=[],n=0;n>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}(function(e){for(var t="",n=0,r=Object.keys(e).sort();n=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(Oh,"/npm-monitoring"),!0),e.send()}catch(e){console.error(e)}}(),[4,yf(n)];case 1:return t.sent(),e=function(e,t,n){var r=Object.keys(e).filter((function(e){return!function(e,t){for(var n=0,r=e.length;n4&&void 0!==arguments[4]&&arguments[4];Df("impression",e,n,t),o&&Df(pl,e,n,t),function(e,t,n){window.parent.postMessage({type:Wa,popupId:e,popupName:t,isReopen:n},"*")}(n,r,o)},Lf=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"sid";if(!t)return e;var o=/(ref:\s\S+)(\s?)/,i=o.exec(e);if(!i||3!==i.length)return"".concat(e," ").concat(r,": ").concat(t);var s=n(i,2)[1];return e.replace(o,"".concat(s," ").concat(r,": ").concat(t," "))},Pf=function(e,t,n){var r=navigator.userAgent.toLowerCase(),o=e;return"US"!==n&&"CA"!==n||11===(o=String(o).replace(/^\+/,"")).length&&"1"===o.charAt(0)&&(o=o.slice(1)),r.includes("pixel")?"".concat(fl,"//").concat(o,"/?").concat(gl).concat(encodeURIComponent(t)):r.includes("chrome")||r.includes("android")?"".concat(fl).concat(o,"?").concat(gl).concat(encodeURIComponent(t)):"".concat(fl).concat(o).concat(gl).concat(encodeURIComponent(t))},$f=function(){var e=i(a().mark((function e(t,n,r){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return window.setParentLocation(Pf(n,r,t)),e.next=3,Gc(500);case 3:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),Bf=function(){var e=i(a().mark((function e(t,n){var r,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r={popup_id:t,session_id:n},e.next=4,tu("".concat(Fc,"/sdk/session/server_id"),{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)},2e3);case 4:return o=e.sent,e.abrupt("return",o.ok?o.text():null);case 8:return e.prev=8,e.t0=e.catch(0),e.abrupt("return",null);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t,n){return e.apply(this,arguments)}}(),jf=function(e){return document.getElementById(e)},Mf=function(e){return document.querySelector(e)},Uf=function(e,t,n,r){var o=t.findIndex((function(t){return t===e})),i=t[o+1];if(i&&i!==ol||If(nl,n),i)return i===ol&&setTimeout((function(){return r()}),4500),i;r()},Ff=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e?"".concat(e,"vw"):t},Gf={"--ps-popup-close-button-text-color":"var(--ps-popup-primary-color)","--ps-popup-container-height":"100%","--ps-popup-container-margin-top":"0rem","--ps-popup-container-margin-right":"0rem","--ps-popup-container-margin-bottom":"0rem","--ps-popup-container-margin-left":"0rem","--ps-popup-container-width":"calc(100vw - var(--ps-popup-container-margin-left) - var(--ps-popup-container-margin-right))","--ps-popup-container-padding-top":"0rem","--ps-popup-container-padding-right":"10%","--ps-popup-container-padding-bottom":"15vh","--ps-popup-container-padding-left":"10%","--ps-popup-form-max-height":"100%"},Hf={"--ps-popup-close-button-text-color":"var(--ps-popup-primary-color)","--ps-popup-container-height":"auto","--ps-popup-container-margin-top":"0rem","--ps-popup-container-margin-right":"1.25rem","--ps-popup-container-margin-bottom":"0rem","--ps-popup-container-margin-left":"1.25rem","--ps-popup-container-width":"calc(27.5625rem - var(--ps-popup-container-margin-left) - var(--ps-popup-container-margin-right))","--ps-popup-container-padding-top":"2.625rem","--ps-popup-container-padding-right":"3.375rem","--ps-popup-container-padding-bottom":"3.375rem","--ps-popup-container-padding-left":"3.375rem","--ps-popup-form-max-height":"calc(100vh - var(--ps-popup-container-padding-top) - var(--ps-popup-container-padding-bottom))"},Wf={"--ps-popup-close-button-text-color":"var(--ps-popup-text-color)","--ps-popup-container-height":"100vh","--ps-popup-container-margin-top":"0rem","--ps-popup-container-margin-right":"0rem","--ps-popup-container-margin-bottom":"0rem","--ps-popup-container-margin-left":"0rem","--ps-popup-container-width":"100%","--ps-popup-container-padding-top":"3rem","--ps-popup-container-padding-right":"2.25rem","--ps-popup-container-padding-bottom":"3rem","--ps-popup-container-padding-left":"2.25rem","--ps-popup-form-max-height":"calc(100vh - var(--ps-popup-container-padding-top) - var(--ps-popup-container-padding-bottom))"},Yf={"--ps-popup-close-button-text-color":"var(--ps-popup-text-color)","--ps-popup-container-height":"100vh","--ps-popup-container-margin-top":"0rem","--ps-popup-container-margin-right":"1rem","--ps-popup-container-margin-bottom":"1rem","--ps-popup-container-margin-left":"1rem","--ps-popup-container-width":"calc(100% - var(--ps-popup-container-margin-left) - var(--ps-popup-container-margin-right))","--ps-popup-container-padding-top":"3rem","--ps-popup-container-padding-right":"2.25rem","--ps-popup-container-padding-bottom":"3rem","--ps-popup-container-padding-left":"2.25rem","--ps-popup-form-max-height":"calc(100vh - var(--ps-popup-container-padding-top) - var(--ps-popup-container-padding-bottom) - var(--ps-popup-container-margin-top) - var(--ps-popup-container-margin-bottom))"};function zf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var qf={"--ps-popup-close-button-text-color":"var(--ps-popup-primary-color)","--ps-popup-container-height":"auto","--ps-popup-container-margin-top":"0rem","--ps-popup-container-margin-right":"0rem","--ps-popup-container-margin-bottom":"0rem","--ps-popup-container-margin-left":"0rem","--ps-popup-container-width":"calc(100% - var(--ps-popup-container-margin-left) - var(--ps-popup-container-margin-right))","--ps-popup-container-padding-top":"2.625rem","--ps-popup-container-padding-right":"3.375rem","--ps-popup-container-padding-bottom":"3.375rem","--ps-popup-container-padding-left":"3.375rem","--ps-popup-form-max-height":"calc(100vh - var(--ps-popup-container-padding-top) - var(--ps-popup-container-padding-bottom))"};function Vf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xf(e){for(var t=1;t0?"".concat(parseFloat(t.replace("[^0-9.]",""))/16,"rem"):"":"".concat(t/16,"rem")),"--ps-popup-button-text-color":null!=i?i:"","--ps-popup-headline-font-size":Ff(s,"3rem"),"--ps-popup-postheadline-font-size":Ff(l,"1.5rem"),"--ps-popup-font":"".concat(null==a?void 0:a.split(":")[0],", sans-serif"),"--ps-popup-primary-color":null!=r?r:"","--ps-popup-text-color":null!=c?c:""}}({backgroundColor:t,buttonBackgroundColor:n,buttonRadius:r,buttonTextColor:o,headlineFontSize:s,font:i,postHeadlineFontSize:l,textColor:d}));try{if("DESKTOP"===c&&"Banner"===a)return Qf(Xf(Xf({},qf),h));if("DESKTOP"===c&&"Fullscreen"===a)return Qf(Xf(Xf({},Gf),h));if("DESKTOP"===c&&u)return Qf(Xf(Xf({},function(e){return function(e){for(var t=1;t{const r=new Map;for(let o=t;o<=n;o++)r.set(e[o],o);return r},lg=_e(class extends we{constructor(e){if(super(e),2!==e.type)throw Error("repeat() can only be used in text expressions")}ct(e,t,n){let r;void 0===n?n=t:void 0!==t&&(r=t);const o=[],i=[];let s=0;for(const t of e)o[s]=r?r(t,s):s,i[s]=n(t,s),s++;return{values:i,keys:o}}render(e,t,n){return this.ct(e,t,n).values}update(e,[t,n,r]){var o;const i=(e=>e._$AH)(e),{values:s,keys:a}=this.ct(t,n,r);if(!Array.isArray(i))return this.ut=a,s;const l=null!==(o=this.ut)&&void 0!==o?o:this.ut=[],c=[];let u,p,d=0,h=i.length-1,f=0,g=s.length-1;for(;d<=h&&f<=g;)if(null===i[d])d++;else if(null===i[h])h--;else if(l[d]===a[f])c[f]=Ps(i[d],s[f]),d++,f++;else if(l[h]===a[g])c[g]=Ps(i[h],s[g]),h--,g--;else if(l[d]===a[g])c[g]=Ps(i[d],s[g]),Ls(e,c[g+1],i[d]),d++,g--;else if(l[h]===a[f])c[f]=Ps(i[h],s[f]),Ls(e,i[d],i[h]),h--,f++;else if(void 0===u&&(u=ag(a,f,g),p=ag(l,d,h)),u.has(l[d]))if(u.has(l[h])){const t=p.get(a[f]),n=void 0!==t?i[t]:null;if(null===n){const t=Ls(e,i[d]);Ps(t,s[f]),c[f]=t}else c[f]=Ps(n,s[f]),Ls(e,i[d],n),i[t]=null;f++}else js(i[h]),h--;else js(i[d]),d++;for(;f<=g;){const t=Ls(e,c[g+1]);Ps(t,s[f]),c[f++]=t}for(;d<=h;){const e=i[d++];null!==e&&js(e)}return this.ut=a,Bs(e,c),X}});var cg=function(){var e=i(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){var n,r=function(t){"CASHBACK_CODE_APPLIED"===t.data&&(clearTimeout(n),e())};n=setTimeout((function(){_c("Did not receive auto apply success event from Fondue within 2000ms."),window.removeEventListener("message",r),e()}),2e3),window.addEventListener("message",r,{once:!0}),window.parent.postMessage({type:"CASHBACK_CODE",code:t},"*")})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ug=function(e){var t,n=null===e||200!==e.status,r=!(null!=e&&null!==(t=e.data)&&void 0!==t&&t.success);return n?{general:n}:r?{verification:r}:{}};function pg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var dg,hg=function(e){var t=e.formData,n=e.hostComponent,r={};t.forEach((function(e,t){"phone"!==t&&t!==Tc&&(r[t]=e)})),0!==Object.keys(r).length&&Af(function(e){for(var t=1;t\n \n ','\n \n \n \n '])),Ic,this.question.text,Ic,this.question,this.question.attributeKey,wg,this.handleMonthChange,!!this.day,this.question,this.question.attributeKey,(e=this.month)?vl(Array(kg[e]).keys()).map((function(e){return{label:(e+1).toString(),value:(e+1).toString().padStart(2,"0")}})):[],this.handleDayChange,!!this.month,!this.month,this.question.attributeKey,this.month&&this.day?"".concat(this.month,"-").concat(this.day):"");var e}}],[{key:"properties",get:function(){return{question:{type:Object},month:{state:!0},day:{state:!0}}}}]),n}(ve);function Og(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}Cc("ps-month-and-day-input",Eg);var Sg;function xg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xg=function(){return!!e})()}var Tg,Ig,Cg="".concat(Ic,"phone-field-input"),Rg=function(e){og(n,e);var t=function(e){var t=xg();return function(){var n,r=tg(e);if(t){var o=tg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return sg(this,n)}}(n);function n(){var e;return ya(this,n),(e=t.call(this)).hasValue=!1,e.isDropdownOpen=!1,e.onFirstUpdate=e.onFirstUpdate.bind(ig(e)),e}return Ea(n,[{key:"createRenderRoot",value:function(){return this}},{key:"getFormattedInputValue",value:function(){var e,t,n,r=(null!==(e=null===(t=this.phoneInputInstance)||void 0===t?void 0:t.getSelectedCountryData())&&void 0!==e?e:{}).iso2;return{phone:null===(n=this.phoneInputInstance)||void 0===n?void 0:n.getNumber(),country:r}}},{key:"onFirstUpdate",value:function(){var e=this,t="#".concat(Cg," input");this.phoneInputInstance=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#ps-desktop-widget__phone-input",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=document.querySelector(t);return r?Pi()(r,function(e){for(var t=1;t\n '])),this.question,Cg,this.onFirstUpdate,null!==(e=this.ariaDescribedBy)&&void 0!==e?e:K,this.hasValue||this.isDropdownOpen)}}],[{key:"properties",get:function(){return{ariaDescribedBy:{type:String},question:{type:Object},countryCode:{type:String},phoneInputInstance:{state:!0},hasValue:{state:!0},isDropdownOpen:{state:!0},popupType:{type:String}}}},{key:"closeDropdownOnScroll",value:function(){window.dispatchEvent(new Event("scroll",{cancelable:!0,bubbles:!0}))}}]),n}(ve);function Ag(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ag=function(){return!!e})()}Cc("ps-phone-input",Rg);var Dg=function(e){og(n,e);var t=function(e){var t=Ag();return function(){var n,r=tg(e);if(t){var o=tg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return sg(this,n)}}(n);function n(){return ya(this,n),t.apply(this,arguments)}return Ea(n,[{key:"createRenderRoot",value:function(){return this}},{key:"render",value:function(){var e,t=this,n=null!==(e=this.question.options)&&void 0!==e?e:[];return V(Tg||(Tg=ba(['\n \n \n ',"\n \n ","\n \n "])),Ic,this.question.text,n.map((function(e){return V(Ig||(Ig=ba(['\n \n \n ',"\n \n "])),Ic,Ic,e,t.question.attributeKey,e)})))}}],[{key:"properties",get:function(){return{question:{type:Object}}}}]),n}(ve);Cc("ps-radio-group",Dg);var Ng,Lg,Pg,$g="Something went wrong. Please try again later.",Bg="The code was not valid. Make sure the code is correct and try again.";function jg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jg=function(){return!!e})()}var Mg=function(e){og(n,e);var t=function(e){var t=jg();return function(){var n,r=tg(e);if(t){var o=tg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return sg(this,n)}}(n);function n(){return ya(this,n),t.apply(this,arguments)}return Ea(n,[{key:"connectedCallback",value:function(){ng(tg(n.prototype),"connectedCallback",this).call(this),this.classList.add("".concat(Ic,"onsite-error-wrapper"))}},{key:"createRenderRoot",value:function(){return this}},{key:"render",value:function(){return V(Ng||(Ng=ba(["\n ","\n ","\n "])),this.hasValidationError?V(Lg||(Lg=ba(['',"
"])),Bg):K,this.hasGeneralError?V(Pg||(Pg=ba(['',"
"])),$g):K)}}],[{key:"properties",get:function(){return{hasValidationError:{type:Boolean},hasGeneralError:{type:Boolean}}}}]),n}(ve);function Ug(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}Cc("ps-one-time-passcode-input-error",Mg);var Fg,Gg,Hg,Wg,Yg={bubbles:!0,cancelable:!0,composed:!0},zg=function(e){e.dispatchEvent(new CustomEvent(Sc,function(e){for(var t=1;t=0?e:0}},{key:"svgDashes",get:function(){for(var e=[],t=0;t "])),this.characterWidth*t+this.dashGap*t,this.characterWidth*(t+1)+this.dashGap*t,this.svgHeight/2,this.svgHeight/2,this.visibleDashes[t]?"var(--ps-popup-field-text-color)":"transparent");e.push(n)}return e}},{key:"hasInputErrorStyle",get:function(){return this.hasValidationError&&!this.value||this.hasGeneralError}},{key:"handleInput",value:function(e){var t,n,r=null!==(t=null===(n=e.target)||void 0===n?void 0:n.value.replace(/\D/g,"").slice(0,this.requiredCharacterCount))&&void 0!==t?t:"";this.hasRequiredCharacterCount&&r.length>=this.requiredCharacterCount?this.input.value=this.value:(this.input.value=r,this.value=r,this.setDashVisibility(),zg(this),this._customFormSubmitButton&&this.hasRequiredCharacterCount&&this._customFormSubmitButton.focus())}},{key:"setDashVisibility",value:function(){var e=this;this.visibleDashes=Array.from({length:this.requiredCharacterCount},(function(t,n){return n>=e.valueLength}))}},{key:"createRenderRoot",value:function(){return this}},{key:"connectedCallback",value:function(){ng(tg(s.prototype),"connectedCallback",this).call(this),this.id="".concat(Ic,"onsite-wrapper"),this.style.setProperty("--_gap-width","".concat(this.dashGap,"px")),this.style.setProperty("--_padding-left","".concat(this.paddingLeft,"px")),this.style.setProperty("--_padding-right","".concat(this.paddingRight,"px")),this.style.setProperty("--_input-width","".concat(this.dynamicInputWidth,"px"))}},{key:"firstUpdated",value:(r=i(a().mark((function e(){var t,n=this;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.updateComplete;case 2:null===(t=jf(Tc))||void 0===t||t.focus(),setTimeout((function(){var e;zg(n),null!==(e=n.hiddenText)&&void 0!==e&&e.getBoundingClientRect().width&&(n.characterWidth=n.hiddenText.getBoundingClientRect().width,n.svgViewBox="0 0 ".concat(n.dynamicSvgWidth," ").concat(n.svgHeight),n.style.setProperty("--_input-width","".concat(n.dynamicInputWidth,"px")))}),250);case 4:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"updated",value:(n=i(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.has("hasValidationError")||!this.hasValidationError){e.next=7;break}return this.input.value="",this.value="",this.setDashVisibility(),e.next=6,this.updateComplete;case 6:zg(this);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"handleClick",value:(t=i(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Tf(this.shopId,this.phoneNumber);case 2:e.sent.success&&(this.isResendCodeSuccessVisible=!0);case 5:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"disconnectedCallback",value:function(){ng(tg(s.prototype),"disconnectedCallback",this).call(this),this._customForm&&(this._customForm.hasInvalidField=!1)}},{key:"render",value:function(){return V(Gg||(Gg=ba(["\n \n ",'\n
\n \n Didn\'t get a code? \n \n Resend code \n \n ','\n
\n \n \n ',"\n \n \n ","\n "])),"".concat(Ic,"onsite-label"),"We sent you a one-time confirmation code. To validate your phone number enter the 4 digit code below.","".concat(Ic,"onsite-resend-wrapper"),"".concat(Ic,"onsite-resend-button"),this.handleClick,this.isResendCodeSuccessVisible?V(Hg||(Hg=ba(['Code sent! ']))):K,xc,this.hasInputErrorStyle,"".concat(Ic,"onsite-label"),Tc,Tc,"[0-9]{".concat(this.requiredCharacterCount,"}"),this.handleInput,this.svgHeight,this.svgViewBox,this.dynamicSvgWidth,this.svgDashes,V(Wg||(Wg=ba([" "])),this.hasValidationError,this.hasGeneralError))}}],[{key:"properties",get:function(){return{characterWidth:{state:!0,type:Number},svgViewBox:{state:!0,type:String},visibleDashes:{state:!0,type:Array},hasValidationError:{type:Boolean},hasGeneralError:{type:Boolean},phoneNumber:{type:String},isResendCodeSuccessVisible:{type:Boolean}}}}]),s}(ve);function Kg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Kg=function(){return!!e})()}Cc("ps-one-time-passcode-input",Xg);var Jg,Qg=function(e){og(n,e);var t=function(e){var t=Kg();return function(){var n,r=tg(e);if(t){var o=tg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return sg(this,n)}}(n);function n(){return ya(this,n),t.apply(this,arguments)}return Ea(n,[{key:"connectedCallback",value:function(){ng(tg(n.prototype),"connectedCallback",this).call(this),this.classList.add("".concat(Ic,"select-wrapper"))}},{key:"createRenderRoot",value:function(){return this}},{key:"onChange",value:function(e){var t,n=e.target;n.dataset.value=n.value,null===(t=this.handleChange)||void 0===t||t.call(this,e)}},{key:"render",value:function(){return V(Vg||(Vg=ba(['\n \n --- Select a '," --- \n ",'\n \n ',' \n \n \n \n '])),Ic,this.id,this.onChange,this.required,this.disabled,this.label.toLowerCase(),this.options.map((function(e){return V(Zg||(Zg=ba([''," "])),e.value,e.label)})),Ic,this.id,this.label,Ic)}}],[{key:"properties",get:function(){return{question:{type:Object},id:{type:String},label:{type:String},options:{type:Array},handleChange:{type:Function},required:{type:Boolean},disabled:{type:Boolean}}}}]),n}(ve);function em(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(em=function(){return!!e})()}Cc("ps-select",Qg);var tm,nm,rm,om=function(e){og(n,e);var t=function(e){var t=em();return function(){var n,r=tg(e);if(t){var o=tg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return sg(this,n)}}(n);function n(){var e;return ya(this,n),(e=t.call(this)).color="currentColor",e.screenReaderMessage="Submitting, please wait",e}return Ea(n,[{key:"connectedCallback",value:function(){ng(tg(n.prototype),"connectedCallback",this).call(this),this.classList.add("".concat(Ic,"loader-wrapper"))}},{key:"createRenderRoot",value:function(){return this}},{key:"render",value:function(){return V(Jg||(Jg=ba(["\n \n \n \n \n \n \n \n \n \n \n \n \n '])),this.screenReaderMessage,"".concat(Ic,"loader"),this.color,this.color,this.color,this.color,this.color,this.color,this.color,this.color,this.color,this.color)}}],[{key:"properties",get:function(){return{color:{type:String},screenReaderMessage:{type:String}}}}]),n}(ve);function im(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(im=function(){return!!e})()}Cc("ps-loader",om);var sm,am=function(e){og(n,e);var t=function(e){var t=im();return function(){var n,r=tg(e);if(t){var o=tg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return sg(this,n)}}(n);function n(){var e;return ya(this,n),(e=t.call(this)).isEngagement=!0,e.isLoading=!1,e}return Ea(n,[{key:"connectedCallback",value:function(){ng(tg(n.prototype),"connectedCallback",this).call(this),this.classList.add("".concat(Ic,"button-wrapper"))}},{key:"createRenderRoot",value:function(){return this}},{key:"render",value:function(){var e;return V(tm||(tm=ba(["\n \n ","\n ","\n \n \n ","\n "])),this.isLoading,this.isEngagement?"true":K,this.isDisabled,this.onClick,"".concat(Ic,"button"),this.id,null!==(e=this.type)&&void 0!==e?e:"button",this.primaryText,this.secondaryText?V(nm||(nm=ba([""," "])),this.secondaryText):K,this.isLoading?V(rm||(rm=ba([" "])),"submit"===this.type?"var(--ps-popup-button-text-color)":"var(--ps-popup-close-button-text-color)"):K)}}],[{key:"properties",get:function(){return{id:{type:String},isDisabled:{type:Boolean},isEngagement:{type:Boolean},isLoading:{type:Boolean},onClick:{type:Function},primaryText:{type:String},secondaryText:{type:String},type:{type:String}}}}]),n}(ve);function lm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(lm=function(){return!!e})()}Cc("ps-button",am);var cm,um=function(e){og(n,e);var t=function(e){var t=lm();return function(){var n,r=tg(e);if(t){var o=tg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return sg(this,n)}}(n);function n(){return ya(this,n),t.apply(this,arguments)}return Ea(n,[{key:"createRenderRoot",value:function(){return this}},{key:"firstUpdated",value:function(e){var t;ng(tg(n.prototype),"firstUpdated",this).call(this,e),null===(t=this.onFirstUpdate)||void 0===t||t.call(this)}},{key:"render",value:function(){var e;return V(sm||(sm=ba(['\n \n \n '," \n
\n "])),Ic,this.type,this.question.attributeKey,this.question.attributeKey,null!==(e=this.ariaDescribedBy)&&void 0!==e?e:K," ","tel"===this.type?"tel-national":"email"===this.type?"email":"on",Ic,this.question.attributeKey,this.question.text)}}],[{key:"properties",get:function(){return{ariaDescribedBy:{type:String},question:{type:Object},type:{type:String},onFirstUpdate:{type:Function}}}}]),n}(ve);function pm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(pm=function(){return!!e})()}Cc("ps-input",um);var dm=function(e){og(n,e);var t=function(e){var t=pm();return function(){var n,r=tg(e);if(t){var o=tg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return sg(this,n)}}(n);function n(){var e;ya(this,n);for(var r=arguments.length,o=new Array(r),i=0;i'," "])),this.message)}}],[{key:"properties",get:function(){return{message:{type:String},nextScreen:{type:Function},timeoutDuration:{type:Number}}}}]),n}(ve);function hm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fm(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{};window.parent.postMessage(fm({type:e,popupId:t,popupName:n},r),"*")},Rm=function(e,t,n){try{var r=e();Object.keys(r).length>0&&function(e,t,n){Cm("POPUP_FORM_SUBMIT",e,t,{values:n})}(t,n,r)}catch(e){_c(e)}},Am=function(e,t,n,r,o,i){Cm(za,e,t,{subscriberId:n,discountCode:r,cashbackCode:o,autoApplyOfferEnabled:i})},Dm=function(e){var t=e.popupId,n=e.popupName,r=e.data,o=r.phone,i=r.subscriberProperties;Rm((function(){return fm(fm({},o&&{phone:o}),i)}),t,n)};function Nm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Nm=function(){return!!e})()}var Lm,Pm=function(e){og(r,e);var t,n=function(e){var t=Nm();return function(){var n,r=tg(e);if(t){var o=tg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return sg(this,n)}}(r);function r(){var e;return ya(this,r),(e=n.call(this)).hasInvalidField=!1,e}return Ea(r,[{key:"createRenderRoot",value:function(){return this}},{key:"fields",get:function(){return this.renderRoot.querySelectorAll("[name]")}},{key:"isSubmittable",get:function(){return!this.hasInvalidField&&!this.customFormSubmitController.isSubmitting}},{key:"submitButtonPrimaryText",get:function(){return this.customFormSubmitController.isOneTimePasscodeVisible?"Submit code":this.page.submitButtonText}},{key:"submitButtonSecondaryText",get:function(){return this.customFormSubmitController.isOneTimePasscodeVisible?void 0:this.page.secondarySubmitButtonText}},{key:"closeButtonPrimaryText",get:function(){return this.customFormSubmitController.isOneTimePasscodeVisible?"Exit":this.page.closeButtonText}},{key:"getComponentForQuestionType",value:function(e){switch(e.type){case"EMAIL":return V(gm||(gm=ba([' '])),Ic,e);case Oc:return Nc(this.popupTemplateProps)?K:V(mm||(mm=ba([' '])),Ic,e,this.popupTemplateProps.currentCountry,Ic,this.popupTemplateProps.popupType);case"RADIO":return V(vm||(vm=ba([' '])),Ic,e);case"MONTH_AND_DAY":return V(bm||(bm=ba([' '])),Ic,e);case"TEXT":return V(ym||(ym=ba([' '])),Ic,e)}}},{key:"getSortedQuestions",value:function(){return this.page.questions.sort((function(e,t){return e.type===Oc?1:t.type===Oc?-1:0}))}},{key:"handleValidateFormEvent",value:(t=i(a().mark((function e(t){var n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),n=Array.from(this.fields).some((function(e){return!e.checkValidity()})),this.hasInvalidField=n;case 3:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"handleSubmit",value:function(e){(function(e,t,n,r){Rm((function(){return function(e,t){var n=new FormData(e.target),r={},o=t.map((function(e){return e.attributeKey}));return n.forEach((function(t,i){o.includes(i)&&n.get(i)&&(r[i]="phone"===i?e.target.querySelector("ps-phone-input").getFormattedInputValue().phone:t)})),r}(e,t)}),n,r)})(e,this.page.questions,this.popupTemplateProps.id,this.popupTemplateProps.name),this.customFormSubmitController.handleSubmit(e,this)}},{key:"connectedCallback",value:function(){ng(tg(r.prototype),"connectedCallback",this).call(this),this.id="".concat(Ic,"form-wrapper"),this.customFormSubmitController=new yg(this,{page:this.page,popupTemplateProps:this.popupTemplateProps}),this.addEventListener(Sc,this.handleValidateFormEvent)}},{key:"updated",value:function(e){var t;(e.has("page")||e.has("popupTemplateProps"))&&(this.customFormSubmitController=new yg(this,{page:this.page,popupTemplateProps:this.popupTemplateProps}),this.requestUpdate()),this.showDisclaimerText=(null===(t=this.page)||void 0===t?void 0:t.questions.some((function(e){return e.type===Oc})))&&!this.customFormSubmitController.isOneTimePasscodeVisible}},{key:"render",value:function(){var e,t=this;return V(_m||(_m=ba(['\n \n\n