/*! For license information please see sdk.bundle.js.LICENSE.txt */ !function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=(new Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="d6f3af4a-5450-4b50-8149-370b2294e2f2",t._sentryDebugIdIdentifier="sentry-dbid-d6f3af4a-5450-4b50-8149-370b2294e2f2")}catch(t){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"5ef4a19"},function(){var t,e,n={341:function(t,e,n){"use strict";function i(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}n.d(e,{Z:function(){return i}})},284:function(t,e,n){"use strict";n.d(e,{fj:function(){return o},wD:function(){return r}});var i=n(341);function r(){return!(0,i.Z)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function o(t,e){return t.require(e)}t=n.hmd(t)},297:function(t,e,n){"use strict";n.d(e,{lu:function(){return c},zf:function(){return u}});var i=n(284),r=n(722);t=n.hmd(t);const o=(0,r.VZ)(),s={nowSeconds:()=>Date.now()/1e3},a=(0,i.wD)()?function(){try{return(0,i.fj)(t,"perf_hooks").performance}catch(t){return}}():function(){const{performance:t}=o;if(t&&t.now)return{now:()=>t.now(),timeOrigin:Date.now()-t.now()}}(),l=void 0===a?s:{nowSeconds:()=>(a.timeOrigin+a.now())/1e3},c=s.nowSeconds.bind(s),u=l.nowSeconds.bind(l);let d;(()=>{const{performance:t}=o;if(!t||!t.now)return void(d="none");const e=36e5,n=t.now(),i=Date.now(),r=t.timeOrigin?Math.abs(t.timeOrigin+n-i):e,s=r-1};function d(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function p(t){return"string"!=typeof t&&(t=String(t)),t}function h(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o&&(e[Symbol.iterator]=function(){return e}),e}function f(t){this.map={},t instanceof f?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){if(2!=t.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function g(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function m(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function b(t){var e=new FileReader,n=m(e);return e.readAsArrayBuffer(t),n}function _(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:s&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:a&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:r&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():l&&s&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=_(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l&&(ArrayBuffer.prototype.isPrototypeOf(t)||u(t))?this._bodyArrayBuffer=_(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){var t=g(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return g(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(s)return this.blob().then(b);throw new Error("could not read as ArrayBuffer")},this.text=function(){var t,e,n,i,r,o=g(this);if(o)return o;if(this._bodyBlob)return t=this._bodyBlob,n=m(e=new FileReader),r=(i=/charset=([A-Za-z0-9_-]+)/.exec(t.type))?i[1]:"utf-8",e.readAsText(t,r),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),i=0;i-1?r:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in i)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var s=/([?&])_=[^&]*/;s.test(this.url)?this.url=this.url.replace(s,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function O(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}})),e}function T(t,e){if(!(this instanceof T))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new f(e.headers),this.url=e.url||"",this._initBody(t)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},v.call(w.prototype),v.call(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},T.error=function(){var t=new T(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var E=[301,302,303,307,308];T.redirect=function(t,e){if(-1===E.indexOf(e))throw new RangeError("Invalid status code");return new T(null,{status:e,headers:{location:t}})};var I=i.DOMException;try{new I}catch(t){(I=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack}).prototype=Object.create(Error.prototype),I.prototype.constructor=I}function S(t,e){return new Promise((function(n,r){var o=new w(t,e);if(o.signal&&o.signal.aborted)return r(new I("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}if(a.onload=function(){var t,e,i={statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new f,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var n=t.split(":"),i=n.shift().trim();if(i){var r=n.join(":").trim();try{e.append(i,r)}catch(t){console.warn("Response "+t.message)}}})),e)};0===o.url.indexOf("file://")&&(a.status<200||a.status>599)?i.status=200:i.status=a.status,i.url="responseURL"in a?a.responseURL:i.headers.get("X-Request-URL");var r="response"in a?a.response:a.responseText;setTimeout((function(){n(new T(r,i))}),0)},a.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},a.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request timed out"))}),0)},a.onabort=function(){setTimeout((function(){r(new I("Aborted","AbortError"))}),0)},a.open(o.method,function(t){try{return""===t&&i.location.href?i.location.href:t}catch(e){return t}}(o.url),!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&(s?a.responseType="blob":l&&(a.responseType="arraybuffer")),e&&"object"==typeof e.headers&&!(e.headers instanceof f||i.Headers&&e.headers instanceof i.Headers)){var u=[];Object.getOwnPropertyNames(e.headers).forEach((function(t){u.push(d(t)),a.setRequestHeader(t,p(e.headers[t]))})),o.headers.forEach((function(t,e){-1===u.indexOf(e)&&a.setRequestHeader(e,t)}))}else o.headers.forEach((function(t,e){a.setRequestHeader(e,t)}));o.signal&&(o.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",c)}),a.send(void 0===o._bodyInit?null:o._bodyInit)}))}S.polyfill=!0,i.fetch||(i.fetch=S,i.Headers=f,i.Request=w,i.Response=T)},679:function(t){var e;e=()=>(()=>{var t=Object.defineProperty,e=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,r={};((e,n)=>{for(var i in n)t(e,i,{get:n[i],enumerable:!0})})(r,{Iti:()=>_,default:()=>y});var o=[["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 t=0;tt.replace(/\D/g,""),h=(t="")=>t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase(),f=t=>{const e=p(t);if("1"===e.charAt(0)){const t=e.substr(1,3);return-1!==d.indexOf(t)}return!1},g=(t,e)=>t.namee.name?1:0,m=(t,e,n)=>{const i=document.createElement(t);return e&&Object.entries(e).forEach((([t,e])=>i.setAttribute(t,e))),n&&n.appendChild(i),i},b=t=>{const{instances:e}=window.intlTelInputGlobals;Object.values(e).forEach((e=>e[t]()))},_=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(t,e={}){this.id=c++,this.telInput=t,this.activeItem=null,this.highlightedItem=null,this.options=Object.assign({},u,e),this.hadInitialPlaceholder=Boolean(t.getAttribute("placeholder"))}_init(){this.options.useFullscreenPopup&&(this.options.fixDropdownWidth=!1),this.options.countrySearch&&!this.options.useFullscreenPopup&&(this.options.fixDropdownWidth=!0);const t=this.options.allowDropdown&&!this.options.showSelectedDialCode;!this.options.showFlags&&t&&(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 e=new Promise(((t,e)=>{this.resolveAutoCountryPromise=t,this.rejectAutoCountryPromise=e})),n=new Promise(((t,e)=>{this.resolveUtilsScriptPromise=t,this.rejectUtilsScriptPromise=e}));this.promise=Promise.all([e,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(t,e,n){e.length>this.dialCodeMaxLen&&(this.dialCodeMaxLen=e.length),this.dialCodeToIso2Map.hasOwnProperty(e)||(this.dialCodeToIso2Map[e]=[]);for(let n=0;nt.toLowerCase()));this.countries=a.filter((t=>e.indexOf(t.iso2)>-1))}else if(e.length){const t=e.map((t=>t.toLowerCase()));this.countries=a.filter((e=>-1===t.indexOf(e.iso2)))}else this.countries=a}_translateCountryNames(){for(let t=0;t
`),a+=`${r.name}`,a+=`+${r.dialCode}`,s.insertAdjacentHTML("beforeend",a)}}_setInitialState(t=!1){const e=this.telInput.getAttribute("value"),n=this.telInput.value,i=!e||"+"!==e.charAt(0)||n&&"+"===n.charAt(0)?n:e,r=this._getDialCode(i),o=f(i),{initialCountry:s}=this.options;if(r&&!o)this._updateCountryFromNumber(i);else if("auto"!==s||t){const t=s?s.toLowerCase():"";t&&this._getCountryData(t,!0)?this._setCountry(t):r&&o?this._setCountry("us"):this._setCountry()}i&&this._updateValFromNumber(i)}_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=t=>{this.dropdownContent.classList.contains("iti__hide")?this.telInput.focus():t.preventDefault()};const t=this.telInput.closest("label");t&&t.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=t=>{this.dropdownContent.classList.contains("iti__hide")&&["ArrowUp","ArrowDown"," ","Enter"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this._openDropdown()),"Tab"===t.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(((t="")=>{const e=t.toLowerCase();e&&this._getCountryData(e,!0)?(window.intlTelInputGlobals.autoCountry=e,setTimeout((()=>b("handleAutoCountry")))):(this._setInitialState(!0),b("rejectAutoCountryPromise"))}),(()=>{this._setInitialState(!0),b("rejectAutoCountryPromise")})))}_initTelInputListeners(){const{strictMode:t,formatAsYouType:e}=this.options;let n=!1;this._handleInputEvent=i=>{this._updateCountryFromNumber(this.telInput.value)&&this._triggerCountryChange();const r=i&&i.data&&/[^+0-9]/.test(i.data),o=i&&"insertFromPaste"===i.inputType&&this.telInput.value;if(r||o&&!t?n=!0:/[^+0-9]/.test(this.telInput.value)||(n=!1),e&&!n){const t=this.telInput.selectionStart||0,e=this.telInput.value.substring(0,t).replace(/[^+0-9]/g,"").length,n=i&&"deleteContentForward"===i.inputType,r=this._formatNumberAsYouType(),o=((t,e,n,i)=>{if(0===n&&!i)return 0;let r=0;for(let n=0;n{if(t.key&&1===t.key.length&&!t.altKey&&!t.ctrlKey&&!t.metaKey){const e=0===this.telInput.selectionStart&&"+"===t.key,n=/^[0-9]$/.test(t.key),i=e||n,r=this._getFullNumber(),o=window.intlTelInputUtils.getCoreNumber(r,this.selectedCountryData.iso2),s=this.maxCoreNumberLength&&o.length>=this.maxCoreNumberLength;i&&!s||t.preventDefault()}},this.telInput.addEventListener("keydown",this._handleKeydownEvent))}_cap(t){const e=parseInt(this.telInput.getAttribute("maxlength")||"",10);return e&&t.length>e?t.substr(0,e):t}_trigger(t){const e=new Event(t,{bubbles:!0,cancelable:!0});this.telInput.dispatchEvent(e)}_openDropdown(){const{fixDropdownWidth:t,countrySearch:e}=this.options;if(t&&(this.dropdownContent.style.width=`${this.telInput.offsetWidth}px`),this.dropdownContent.classList.remove("iti__hide"),this.selectedCountry.setAttribute("aria-expanded","true"),this._setDropdownPosition(),this.activeItem&&!e)this._highlightListItem(this.activeItem,!1),this._scrollTo(this.activeItem,!0);else{const t=this.countryList.firstElementChild;t&&(this._highlightListItem(t,!1),this.countryList.scrollTop=0),e&&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 i=this.telInput.getBoundingClientRect(),r=document.documentElement.scrollTop,o=i.top+r,s=this.telInput.offsetHeight,a=this.dropdownContent.offsetHeight,l=o+s+ar,u=!this.options.countrySearch&&!l&&c;if(t=this.dropdownContent,e="iti__dropdown-content--dropup",(n=u)&&!t.classList.contains(e)?t.classList.add(e):!n&&t.classList.contains(e)&&t.classList.remove(e),this.options.dropdownContainer){const t=u?0:s;this.dropdown.style.top=`${i.top+t}px`,this.dropdown.style.left=`${i.left}px`,this._handleWindowScroll=()=>this._closeDropdown(),window.addEventListener("scroll",this._handleWindowScroll)}}var t,e,n}_bindDropdownListeners(){this._handleMouseoverCountryList=t=>{const e=t.target?.closest(".iti__country");e&&this._highlightListItem(e,!1)},this.countryList.addEventListener("mouseover",this._handleMouseoverCountryList),this._handleClickCountryList=t=>{const e=t.target?.closest(".iti__country");e&&this._selectListItem(e)},this.countryList.addEventListener("click",this._handleClickCountryList);let t=!0;this._handleClickOffToClose=()=>{t||this._closeDropdown(),t=!1},document.documentElement.addEventListener("click",this._handleClickOffToClose);let e="",n=null;if(this._handleKeydownOnDropdown=t=>{["ArrowUp","ArrowDown","Enter","Escape"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),"ArrowUp"===t.key||"ArrowDown"===t.key?this._handleUpDownKey(t.key):"Enter"===t.key?this._handleEnterKey():"Escape"===t.key&&this._closeDropdown()),!this.options.countrySearch&&/^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(t.key)&&(t.stopPropagation(),n&&clearTimeout(n),e+=t.key.toLowerCase(),this._searchForCountry(e),n=setTimeout((()=>{e=""}),1e3))},document.addEventListener("keydown",this._handleKeydownOnDropdown),this.options.countrySearch){const t=()=>{const t=this.searchInput.value.trim();t?this._filterCountries(t):this._filterCountries("",!0)};let e=null;this._handleSearchChange=()=>{e&&clearTimeout(e),e=setTimeout((()=>{t(),e=null}),100)},this.searchInput.addEventListener("input",this._handleSearchChange),this.searchInput.addEventListener("click",(t=>t.stopPropagation()))}}_filterCountries(t,e=!1){let n=!0;this.countryList.innerHTML="";const i=h(t);for(let t=0;t1&&(e="ArrowUp"===t?this.countryList.lastElementChild:this.countryList.firstElementChild),e){this._scrollTo(e,!1);const t=!this.options.countrySearch;this._highlightListItem(e,t)}}_handleEnterKey(){this.highlightedItem&&this._selectListItem(this.highlightedItem)}_searchForCountry(t){for(let e=0;es){e&&(u+=d);const t=r-a;n.scrollTop=u-t}}_updateDialCode(t){const e=this.telInput.value,n=`+${t}`;let i;if("+"===e.charAt(0)){const t=this._getDialCode(e);i=t?e.replace(t,n):n,this.telInput.value=i}}_getDialCode(t,e){let n="";if("+"===t.charAt(0)){let i="";for(let r=0;r"complete"===document.readyState,getCountryData:()=>a,getInstance:e=>{const n=e.getAttribute("data-intl-tel-input-id");return n?t.instances[n]:null},instances:{},loadUtils:t=>window.intlTelInputUtils||window.intlTelInputGlobals.startedLoadingUtilsScript?null:(window.intlTelInputGlobals.startedLoadingUtilsScript=!0,new Promise(((e,n)=>((t,e,n)=>{const i=document.createElement("script");i.onload=()=>{b("handleUtils"),e&&e()},i.onerror=()=>{b("rejectUtilsScriptPromise"),n&&n()},i.className="iti-load-utils",i.async=!0,i.src=t,document.body.appendChild(i)})(t,e,n)))),version:"21.2.8"};window.intlTelInputGlobals=t}var v,y=(t,e)=>{const n=new _(t,e);return n._init(),t.setAttribute("data-intl-tel-input-id",n.id.toString()),window.intlTelInputGlobals.instances[n.id]=n,n};return v=r,((r,o,s,a)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let s of n(o))i.call(r,s)||undefined===s||t(r,s,{get:()=>o[s],enumerable:!(a=e(o,s))||a.enumerable});return r})(t({},"__esModule",{value:!0}),v)})().default,t.exports?t.exports=e():window.intlTelInput=e()},694:function(t,e){var n,i;void 0===(i="function"==typeof(n=function(){"use strict";var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString,n="boolean"==typeof(new RegExp).sticky;function i(t){return t&&"[object RegExp]"===e.call(t)}function r(t){return t&&"object"==typeof t&&!i(t)&&!Array.isArray(t)}function o(t){return"("+t+")"}function s(t){return t.length?"(?:"+t.map((function(t){return"(?:"+t+")"})).join("|")+")":"(?!)"}function a(t){if("string"==typeof t)return"(?:"+(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+")");if(i(t)){if(t.ignoreCase)throw new Error("RegExp /i flag not allowed");if(t.global)throw new Error("RegExp /g flag is implied");if(t.sticky)throw new Error("RegExp /y flag is implied");if(t.multiline)throw new Error("RegExp /m flag is implied");return t.source}throw new Error("Not a pattern: "+t)}function l(t,e){return t.length>e?t:Array(e-t.length+1).join(" ")+t}function c(e,n){if(r(n)||(n={match:n}),n.include)throw new Error("Matching rules cannot also include states");var o={defaultType:e,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)t.call(n,s)&&(o[s]=n[s]);if("string"==typeof o.type&&e!==o.type)throw new Error("Type transform cannot be a string (type '"+o.type+"' for token '"+e+"')");var a=o.match;return o.match=Array.isArray(a)?a:a?[a]:[],o.match.sort((function(t,e){return i(t)&&i(e)?0:i(e)?-1:i(t)?1:e.length-t.length})),o}function u(t){return Array.isArray(t)?function(t){for(var e=[],n=0;n0)throw new Error("RegExp has capture groups: "+y+"\nUse (?: … ) instead");if(!g.lineBreaks&&y.test("\n"))throw new Error("Rule should declare lineBreaks: "+y);h.push(o(v))}}var w=r&&r.fallback,O=n&&!w?"ym":"gm",T=n||w?"":"|";return!0===u&&(O+="u"),{regexp:new RegExp(s(h)+T,O),groups:p,fast:l,error:r||d}}function h(t,e,n){var i=t&&(t.push||t.next);if(i&&!n[i])throw new Error("Missing state '"+i+"' (in token '"+t.defaultType+"' of state '"+e+"')");if(t&&t.pop&&1!=+t.pop)throw new Error("pop must be 1 (in token '"+t.defaultType+"' of state '"+e+"')")}var f=function(t,e){this.startState=e,this.states=t,this.buffer="",this.stack=[],this.reset()};f.prototype.reset=function(t,e){return this.buffer=t||"",this.index=0,this.line=e?e.line:1,this.col=e?e.col:1,this.queuedToken=e?e.queuedToken:null,this.queuedText=e?e.queuedText:"",this.queuedThrow=e?e.queuedThrow:null,this.setState(e?e.state:this.startState),this.stack=e&&e.stack?e.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(t){if(t&&this.state!==t){this.state=t;var e=this.states[t];this.groups=e.groups,this.error=e.error,this.re=e.regexp,this.fast=e.fast}},f.prototype.popState=function(){this.setState(this.stack.pop())},f.prototype.pushState=function(t){this.stack.push(this.state),this.setState(t)};var g=n?function(t,e){return t.exec(e)}:function(t,e){var n=t.exec(e);return 0===n[0].length?null:n};function m(){return this.value}if(f.prototype._getGroup=function(t){for(var e=this.groups.length,n=0;n=e.f?r():t.fonts.load(function(t){return I(t)+" "+t.f+"00 300px "+T(t.c)}(e.a),e.h).then((function(t){1<=t.length?i():setTimeout(o,25)}),(function(){r()}))}()})),r=null,o=new Promise((function(t,n){r=setTimeout(n,e.f)}));Promise.race([o,i]).then((function(){r&&(clearTimeout(r),r=null),e.g(e.a)}),(function(){e.j(e.a)}))};var j={D:"serif",C:"sans-serif"},B=null;function M(){if(null===B){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);B=!!t&&(536>parseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))}return B}function F(t,e,n){for(var i in j)if(j.hasOwnProperty(i)&&e===t.f[j[i]]&&n===t.f[j[i]])return!0;return!1}function $(t){var e,n=t.g.a.offsetWidth,i=t.h.a.offsetWidth;(e=n===t.f.serif&&i===t.f["sans-serif"])||(e=M()&&F(t,n,i)),e?a()-t.A>=t.w?M()&&F(t,n,i)&&(null===t.u||t.u.hasOwnProperty(t.a.c))?G(t,t.v):G(t,t.B):function(t){setTimeout(s((function(){$(this)}),t),50)}(t):G(t,t.v)}function G(t,e){setTimeout(s((function(){p(this.g.a),p(this.h.a),p(this.j.a),p(this.m.a),e(this.a)}),t),0)}function U(t,e,n){this.c=t,this.a=e,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(),$(this)};var H=null;function W(t){0==--t.f&&t.j&&(t.m?((t=t.a).g&&h(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),C(t,"active")):k(t.a))}function z(t){this.j=t,this.a=new A,this.h=0,this.f=this.g=!0}function Y(t,e,n,i,r){var o=0==--t.h;(t.f||t.g)&&setTimeout((function(){var t=r||null,a=i||{};if(0===n.length&&o)k(e.a);else{e.f+=n.length,o&&(e.j=o);var l,c=[];for(l=0;l=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var l=s.call(o,"catchLoc"),c=s.call(o,"finallyLoc");if(l&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&s.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),N(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;N(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:D(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),v}},n}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},319:function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},799:function(t,e,n){var i=n(48)();t.exports=i;try{regeneratorRuntime=i}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}}},i={};function r(t){var e=i[t];if(void 0!==e)return e.exports;var o=i[t]={id:t,loaded:!1,exports:{}};return n[t].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.m=n,r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.f={},r.e=function(t){return Promise.all(Object.keys(r.f).reduce((function(e,n){return r.f[n](t,e),e}),[]))},r.u=function(t){return"psl-tld-check.js"},r.miniCssF=function(t){},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.hmd=function(t){return(t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t={},e="postscript-client:",r.l=function(n,i,o,s){if(t[n])t[n].push(i);else{var a,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u-1&&(!t||!/^http(s?):/.test(t));)t=n[i--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=t}(),function(){var t={249:0,461:0,809:0,837:0};r.f.j=function(e,n){var i=r.o(t,e)?t[e]:void 0;if(0!==i)if(i)n.push(i[2]);else{var o=new Promise((function(n,r){i=t[e]=[n,r]}));n.push(i[2]=o);var s=r.p+r.u(e),a=new Error;r.l(s,(function(n){if(r.o(t,e)&&(0!==(i=t[e])&&(t[e]=void 0),i)){var o=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;a.message="Loading chunk "+e+" failed.\n("+o+": "+s+")",a.name="ChunkLoadError",a.type=o,a.request=s,i[1](a)}}),"chunk-"+e,e)}};var e=function(e,n){var i,o,s=n[0],a=n[1],l=n[2],c=0;if(s.some((function(e){return 0!==t[e]}))){for(i in a)r.o(a,i)&&(r.m[i]=a[i]);l&&l(r)}for(e&&e(n);c{if(t!==d&&t!==p)return e;if(!(null==e?void 0:e.resource))return e;const n=Object.assign({},e);return n.resource.product_title||(n.resource.product_title=n.resource.name),n.resource.variant_title||(n.resource.variant_title=n.resource.name),n};var m=class{constructor(t,e){this.isUserOptedIntoTracking=t,this.environment=e}event(t,e,n){return function(t,e,n,i){return new(n||(n=Promise))((function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}l((i=i.apply(t,e||[])).next())}))}(this,void 0,void 0,(function*(){const{subscriberId:i,anonymousSubscriberToken:r,twoTapSessionId:o,thirdPartyIdentifiers:s}=n;var a;if(!(i||r||o||(a=s,Object.values(null!=a?a:{}).some((t=>!!t)))))return;if(!f.includes(t)&&!(yield this.isUserOptedIntoTracking()))return;const l=u[this.environment];l?fetch(`${l}/v1/subscribers`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Object.assign(Object.assign({subscriber_id:i||null,token:r||null,server_id:o||null},s),{event:t,data:g(t,e)||null})),keepalive:!0}).catch((e=>{console.error(`Failed to send event: ${t}`,{error:e})})):console.error(`Invalid environment provided to OnsiteEvents: ${this.environment}`)}))}};function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);ne.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&n())>>t/4).toString(16)))}var O=r(297);const T=["debug","info","warn","error","log","assert","trace"];function E(t){if(!("console"in y.OW))return t();const e=y.OW.console,n={};T.forEach((t=>{const i=e[t]&&e[t].__sentry_original__;t in e&&i&&(n[t]=e[t],e[t]=i)}));try{return t()}finally{Object.keys(n).forEach((t=>{e[t]=n[t]}))}}function I(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?T.forEach((n=>{e[n]=(...e)=>{t&&E((()=>{y.OW.console[n](`Sentry Logger [${n}]:`,...e)}))}})):T.forEach((t=>{e[t]=()=>{}})),e}let S;S="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,y.BY)("logger",I):I();const x="production",k=Object.prototype.toString;function C(t){return function(t,e){return k.call(t)===`[object ${e}]`}(t,"Object")}function A(t){return Boolean(t&&t.then&&"function"==typeof t.then)}var R;!function(t){t[t.PENDING=0]="PENDING",t[t.RESOLVED=1]="RESOLVED",t[t.REJECTED=2]="REJECTED"}(R||(R={}));class N{__init(){this._state=R.PENDING}__init2(){this._handlers=[]}constructor(t){N.prototype.__init.call(this),N.prototype.__init2.call(this),N.prototype.__init3.call(this),N.prototype.__init4.call(this),N.prototype.__init5.call(this),N.prototype.__init6.call(this);try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}then(t,e){return new N(((n,i)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){i(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){i(t)}else i(t)}]),this._executeHandlers()}))}catch(t){return this.then((t=>t),t)}finally(t){return new N(((e,n)=>{let i,r;return this.then((e=>{r=!1,i=e,t&&t()}),(e=>{r=!0,i=e,t&&t()})).then((()=>{r?n(i):e(i)}))}))}__init3(){this._resolve=t=>{this._setResult(R.RESOLVED,t)}}__init4(){this._reject=t=>{this._setResult(R.REJECTED,t)}}__init5(){this._setResult=(t,e)=>{this._state===R.PENDING&&(A(e)?e.then(this._resolve,this._reject):(this._state=t,this._value=e,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state===R.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach((t=>{t[0]||(this._state===R.RESOLVED&&t[1](this._value),this._state===R.REJECTED&&t[2](this._value),t[0]=!0)}))}}}function L(t){return D(t,new Map)}function D(t,e){if(C(t)){const n=e.get(t);if(void 0!==n)return n;const i={};e.set(t,i);for(const n of Object.keys(t))void 0!==t[n]&&(i[n]=D(t[n],e));return i}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const i=[];return e.set(t,i),t.forEach((t=>{i.push(D(t,e))})),i}return t}function P(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||(0,O.zf)(),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:w()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}class j{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=B()}static clone(t){const e=new j;return t&&(e._breadcrumbs=[...t._breadcrumbs],e._tags={...t._tags},e._extra={...t._extra},e._contexts={...t._contexts},e._user=t._user,e._level=t._level,e._span=t._span,e._session=t._session,e._transactionName=t._transactionName,e._fingerprint=t._fingerprint,e._eventProcessors=[...t._eventProcessors],e._requestSession=t._requestSession,e._attachments=[...t._attachments],e._sdkProcessingMetadata={...t._sdkProcessingMetadata},e._propagationContext={...t._propagationContext}),e}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{},this._session&&P(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this.getSpan();return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if("function"==typeof t){const e=t(this);return e instanceof j?e:this}return t instanceof j?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession),t._propagationContext&&(this._propagationContext=t._propagationContext)):C(t)&&(this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.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=B(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const i={timestamp:(0,O.lu)(),...t};return this._breadcrumbs=[...this._breadcrumbs,i].slice(-n),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(t,e={}){if(this._extra&&Object.keys(this._extra).length&&(t.extra={...this._extra,...t.extra}),this._tags&&Object.keys(this._tags).length&&(t.tags={...this._tags,...t.tags}),this._user&&Object.keys(this._user).length&&(t.user={...this._user,...t.user}),this._contexts&&Object.keys(this._contexts).length&&(t.contexts={...this._contexts,...t.contexts}),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts={trace:this._span.getTraceContext(),...t.contexts};const e=this._span.transaction;if(e){t.sdkProcessingMetadata={dynamicSamplingContext:e.getDynamicSamplingContext(),...t.sdkProcessingMetadata};const n=e.name;n&&(t.tags={transaction:n,...t.tags})}}return this._applyFingerprint(t),t.breadcrumbs=[...t.breadcrumbs||[],...this._breadcrumbs],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this._sdkProcessingMetadata,propagationContext:this._propagationContext},this._notifyEventProcessors([...(0,y.BY)("globalEventProcessors",(()=>[])),...this._eventProcessors],t,e)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}_notifyEventProcessors(t,e,n,i=0){return new N(((r,o)=>{const s=t[i];if(null===e||"function"!=typeof s)r(e);else{const a=s({...e},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.id&&null===a&&S.log(`Event processor "${s.id}" dropped event`),A(a)?a.then((e=>this._notifyEventProcessors(t,e,n,i+1).then(r))).then(null,o):this._notifyEventProcessors(t,a,n,i+1).then(r).then(null,o)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((t=>{t(this)})),this._notifyingListeners=!1)}_applyFingerprint(t){var e;t.fingerprint=t.fingerprint?(e=t.fingerprint,Array.isArray(e)?e:[e]):[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function B(){return{traceId:w(),spanId:w().substring(16),sampled:!1}}const M=100;class F{constructor(t,e=new j,n=4){this._version=n,this._stack=[{scope:e}],t&&this.bindClient(t)}isOlderThan(t){return this._version{r.captureException(t,{originalException:t,syntheticException:i,...e,event_id:n},o)})),n}captureMessage(t,e,n){const i=this._lastEventId=n&&n.event_id?n.event_id:w(),r=new Error(t);return this._withClient(((o,s)=>{o.captureMessage(t,e,{originalException:t,syntheticException:r,...n,event_id:i},s)})),i}captureEvent(t,e){const n=e&&e.event_id?e.event_id:w();return t.type||(this._lastEventId=n),this._withClient(((i,r)=>{i.captureEvent(t,{...e,event_id:n},r)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,e){const{scope:n,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:r=null,maxBreadcrumbs:o=M}=i.getOptions&&i.getOptions()||{};if(o<=0)return;const s={timestamp:(0,O.lu)(),...t},a=r?E((()=>r(s,e))):s;null!==a&&(i.emit&&i.emit("beforeAddBreadcrumb",a,e),n.addBreadcrumb(a,o))}setUser(t){this.getScope().setUser(t)}setTags(t){this.getScope().setTags(t)}setExtras(t){this.getScope().setExtras(t)}setTag(t,e){this.getScope().setTag(t,e)}setExtra(t,e){this.getScope().setExtra(t,e)}setContext(t,e){this.getScope().setContext(t,e)}configureScope(t){const{scope:e,client:n}=this.getStackTop();n&&t(e)}run(t){const e=G(this);try{t(this)}finally{G(e)}}getIntegration(t){const e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&S.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,e){const n=this._callExtensionMethod("startTransaction",t,e);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(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const t=this.getStackTop().scope,e=t.getSession();e&&function(t){let e={};"ok"===t.status&&(e={status:"exited"}),P(t,e)}(e),this._sendSessionUpdate(),t.setSession()}startSession(t){const{scope:e,client:n}=this.getStackTop(),{release:i,environment:r=x}=n&&n.getOptions()||{},{userAgent:o}=y.OW.navigator||{},s=function(t){const e=(0,O.zf)(),n={sid:w(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return L({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(n)};return t&&P(n,t),n}({release:i,environment:r,user:e.getUser(),...o&&{userAgent:o},...t}),a=e.getSession&&e.getSession();return a&&"ok"===a.status&&P(a,{status:"exited"}),this.endSession(),e.setSession(s),s}shouldSendDefaultPii(){const t=this.getClient(),e=t&&t.getOptions();return Boolean(e&&e.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:e}=this.getStackTop(),n=t.getSession();n&&e&&e.captureSession&&e.captureSession(n)}_withClient(t){const{scope:e,client:n}=this.getStackTop();n&&t(n,e)}_callExtensionMethod(t,...e){const n=$().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[t])return n.extensions[t].apply(this,e);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&S.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function $(){return y.OW.__SENTRY__=y.OW.__SENTRY__||{extensions:{},hub:void 0},y.OW}function G(t){const e=$(),n=U(e);return H(e,t),n}function U(t){return(0,y.BY)("hub",(()=>new F),t)}function H(t,e){return!!t&&((t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0)}function W(t,e){return function(){const t=$();if(t.__SENTRY__&&t.__SENTRY__.acs){const e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return function(t=$()){return!!((e=t)&&e.__SENTRY__&&e.__SENTRY__.hub)&&!U(t).isOlderThan(4)||H(t,new F),U(t);var e}(t)}().captureException(t,{captureContext:e})}function z(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}const Y=window,V=Y.ShadowRoot&&(void 0===Y.ShadyCSS||Y.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Z=Symbol(),X=new WeakMap;class q{constructor(t,e,n){if(this._$cssResult$=!0,n!==Z)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(V&&void 0===t){const n=void 0!==e&&1===e.length;n&&(t=X.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&X.set(e,t))}return t}toString(){return this.cssText}}const K=t=>new q("string"==typeof t?t:t+"",void 0,Z),J=(t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,n,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[i+1]),t[0]);return new q(n,t,Z)},Q=V?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return K(e)})(t):t;var tt;const et=window,nt=et.trustedTypes,it=nt?nt.emptyScript:"",rt=et.reactiveElementPolyfillSupport,ot={toAttribute(t,e){switch(e){case Boolean:t=t?it:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},st=(t,e)=>e!==t&&(e==e||t==t),at={attribute:!0,type:String,converter:ot,reflect:!1,hasChanged:st},lt="finalized";class ct extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,n)=>{const i=this._$Ep(n,e);void 0!==i&&(this._$Ev.set(i,n),t.push(i))})),t}static createProperty(t,e=at){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const n="symbol"==typeof t?Symbol():"__"+t,i=this.getPropertyDescriptor(t,n,e);void 0!==i&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,e,n){return{get(){return this[e]},set(i){const r=this[t];this[e]=i,this.requestUpdate(t,r,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||at}static finalize(){if(this.hasOwnProperty(lt))return!1;this[lt]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const n of e)this.createProperty(n,t[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const t of n)e.unshift(Q(t))}else void 0!==t&&e.push(Q(t));return e}static _$Ep(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,n;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(n=t.hostConnected)||void 0===n||n.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{V?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const n=document.createElement("style"),i=Y.litNonce;void 0!==i&&n.setAttribute("nonce",i),n.textContent=e.cssText,t.appendChild(n)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$EO(t,e,n=at){var i;const r=this.constructor._$Ep(t,n);if(void 0!==r&&!0===n.reflect){const o=(void 0!==(null===(i=n.converter)||void 0===i?void 0:i.toAttribute)?n.converter:ot).toAttribute(e,n.type);this._$El=t,null==o?this.removeAttribute(r):this.setAttribute(r,o),this._$El=null}}_$AK(t,e){var n;const i=this.constructor,r=i._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=i.getPropertyOptions(r),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(n=t.converter)||void 0===n?void 0:n.fromAttribute)?t.converter:ot;this._$El=r,this[r]=o.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,n){let i=!0;void 0!==t&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||st)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===n.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,n))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const n=this._$AL;try{e=this.shouldUpdate(n),e?(this.willUpdate(n),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(n)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(n)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}var ut;ct[lt]=!0,ct.elementProperties=new Map,ct.elementStyles=[],ct.shadowRootOptions={mode:"open"},null==rt||rt({ReactiveElement:ct}),(null!==(tt=et.reactiveElementVersions)&&void 0!==tt?tt:et.reactiveElementVersions=[]).push("1.6.3");const dt=window,pt=dt.trustedTypes,ht=pt?pt.createPolicy("lit-html",{createHTML:t=>t}):void 0,ft="$lit$",gt=`lit$${(Math.random()+"").slice(9)}$`,mt="?"+gt,bt=`<${mt}>`,_t=document,vt=()=>_t.createComment(""),yt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,wt=Array.isArray,Ot=t=>wt(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),Tt="[ \t\n\f\r]",Et=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,It=/-->/g,St=/>/g,xt=RegExp(`>|${Tt}(?:([^\\s"'>=/]+)(${Tt}*=${Tt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),kt=/'/g,Ct=/"/g,At=/^(?:script|style|textarea|title)$/i,Rt=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),Nt=Rt(1),Lt=(Rt(2),Symbol.for("lit-noChange")),Dt=Symbol.for("lit-nothing"),Pt=new WeakMap,jt=_t.createTreeWalker(_t,129,null,!1);function Bt(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==ht?ht.createHTML(e):e}const Mt=(t,e)=>{const n=t.length-1,i=[];let r,o=2===e?"":"",s=Et;for(let e=0;e"===l[0]?(s=null!=r?r:Et,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?xt:'"'===l[3]?Ct:kt):s===Ct||s===kt?s=xt:s===It||s===St?s=Et:(s=xt,r=void 0);const d=s===xt&&t[e+1].startsWith("/>")?" ":"";o+=s===Et?n+bt:c>=0?(i.push(a),n.slice(0,c)+ft+n.slice(c)+gt+d):n+gt+(-2===c?(i.push(void 0),e):d)}return[Bt(t,o+(t[n]||"")+(2===e?"":"")),i]};class Ft{constructor({strings:t,_$litType$:e},n){let i;this.parts=[];let r=0,o=0;const s=t.length-1,a=this.parts,[l,c]=Mt(t,e);if(this.el=Ft.createElement(l,n),jt.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(i=jt.nextNode())&&a.length0){i.textContent=pt?pt.emptyScript:"";for(let n=0;n2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Dt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,n,i){const r=this.strings;let o=!1;if(void 0===r)t=$t(this,t,e,0),o=!yt(t)||t!==this._$AH&&t!==Lt,o&&(this._$AH=t);else{const i=t;let s,a;for(t=r[0],s=0;s{var i,r;const o=null!==(i=null==n?void 0:n.renderBefore)&&void 0!==i?i:e;let s=o._$litPart$;if(void 0===s){const t=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:null;o._$litPart$=s=new Ut(e.insertBefore(vt(),t),t,void 0,null!=n?n:{})}return s._$AI(t),s};var Jt,Qt;class te extends ct{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const n=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=n.firstChild),n}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Kt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return Lt}}te.finalized=!0,te._$litElement$=!0,null===(Jt=globalThis.litElementHydrateSupport)||void 0===Jt||Jt.call(globalThis,{LitElement:te});const ee=globalThis.litElementPolyfillSupport;function ne(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ie(t,e){for(var n=0;n\n ',"\n \n ',"\n \n ","\n \n '," ","\n \n "])),o[0],"".concat(e," (view in new window)"),i,e,o[1],"".concat(n," (view in new window)"),r,n,o[2])}():function(t){var e,n=ue.getState(),i="https://".concat(t,"/policies/terms-of-service.html"),r="https://".concat(t,"/policies/privacy-policy.html");return n.shopShop&&null!==(e=n.flags)&&void 0!==e&&e.split(",").includes("dynamic_terms")&&(i="https://terms.pscr.pt/legal/shop/".concat(n.shopShop,"/terms_of_service"),r="https://terms.pscr.pt/legal/shop/".concat(n.shopShop,"/privacy_policy")),Nt(le||(le=z(['*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 '])),i,r)}(t)},Me="_ps_preview",Fe="Open Sans Condensed",$e={font:{desktop:"Roboto",mobile:"".concat(Fe,":300")},background_style:"Color",button_radius:10,two_touch_enabled:!0};function Ge(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Ue(t){for(var e=1;e3&&void 0!==arguments[3]?arguments[3]:0,a="".concat(t,"=").concat(e);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((r=(i=window.location.hostname).split("."),o=i,r.length>2&&(o=["com","co","org","net","myshopify"].includes(r[r.length-2])?r.slice(r.length-3).join("."):r.slice(r.length-2).join(".")),o),"; path=/"),document.cookie=a},qe=function(t){for(var e="".concat(t,"="),n=window.parent.document.cookie.split(";"),i=0;icrypto.getRandomValues(new Uint8Array(t)).reduce(((t,e)=>t+((e&=63)<36?e.toString(36):e<62?(e-26).toString(36).toUpperCase():e>62?"-":"_")),"");const rn=t=>null!=t?t:Dt,on=t=>(...e)=>({_$litDirective$:t,values:e});class sn{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const an=on(class extends sn{constructor(t){var e;if(super(t),1!==t.type||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var n,i;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(n=this.nt)||void 0===n?void 0:n.has(t))&&this.it.add(t);return this.render(e)}const r=t.element.classList;this.it.forEach((t=>{t in e||(r.remove(t),this.it.delete(t))}));for(const t in e){const n=!!e[t];n===this.it.has(t)||(null===(i=this.nt)||void 0===i?void 0:i.has(t))||(n?(r.add(t),this.it.add(t)):(r.remove(t),this.it.delete(t)))}return Lt}}),ln="mobile",cn={BUTTON:"button"},un={HEADING:"heading"},dn={LABEL:"label"},pn={PARAGRAPH:"paragraph"},hn={PLACEHOLDER:"placeholder"},fn=(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cn),un),dn),pn),hn),{BLOCK:"block"}),gn={MAIN_POPUP_CONTAINER:"mainPopupContainer"},mn={BUTTON:"button"},bn={CLOSE_TEASER_BUTTON:"closeTeaserButton"},_n={GROUP:"group"},vn={HEADING:"heading"},yn={IMAGE:"image"},wn={INPUT:"input"},On={LABEL:"label"},Tn={LINK:"link"},En={LOGO:"logo"},In={PATH:"path"},Sn={ROOT_BACKGROUND_IMAGE_DIV:"rootBackgroundImageDiv"},xn={SMALL:"small"},kn={SPIN_TO_WIN_CENTER:"spinToWinCenter"},Cn={SPIN_TO_WIN_MAIN_WHEEL:"spinToWinMainWheel"},An={SPIN_TO_WIN_SECTION_BORDER:"spinToWinSectionBorder"},Rn={SVG:"svg"},Nn={TEXT:"text"},Ln=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({},fn),mn),bn),_n),vn),yn),wn),On),Tn),En),gn),In),Sn),xn),kn),Cn),An),Rn),Nn),Dn=Object.assign(Object.assign({},{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"}),{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"}),Pn={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"},jn="'Arial', sans-serif",Bn=(Object.assign({EMAIL:"email",PHONE:"phone",OTP:"otp"},{AGE_GATE:"ageGate"}),Math.PI,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"}),["January","February","March","April","May","June","July","August","September","October","November","December"]),Mn=(t=1,e=1904)=>new Date(e,t,0,0,0,0,0).getDate(),Fn=(t,e,n)=>{if(void 0!==t&&void 0!==e&&void 0!==n)return new Date(Date.UTC(n,t-1,e,0,0,0,0)).toISOString()};class $n extends sn{constructor(t){if(super(t),this.et=Dt,2!==t.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Dt||null==t)return this.ft=void 0,this.et=t;if(t===Lt)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}$n.directiveName="unsafeHTML",$n.resultType=1;const Gn=on($n),Un={chevron:'\n \n ',caret:'\n \n ',caretFilled:'\n \n \n '};const Hn="ps-select-input";customElements.get(Hn)||customElements.define(Hn,class extends te{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 t,e;return Nt`
${Gn(Un[null!==(e=this.arrow)&&void 0!==e?e:"chevron"])}
`}});const Wn="ps-date-input";customElements.get(Wn)||customElements.define(Wn,class extends te{constructor(){super(...arguments),this.updateDayForMonthYearChange=()=>{const t=Mn(this.month,this.year);void 0!==this.day&&this.day>t&&(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(t){super.update(t)}dispatchChangeEvent(){const t=new CustomEvent("change",{detail:Fn(this.month,this.day,this.year),bubbles:!0,composed:!0,cancelable:!0});this.dispatchEvent(t)}handleMonthChange(t){var e;t.stopPropagation();const n=t.target,i=parseInt(null!==(e=n.value)&&void 0!==e?e:"",10);this.month=Number.isNaN(i)?void 0:i,this.updateDayForMonthYearChange(),this.dispatchChangeEvent()}handleDayChange(t){var e;t.stopPropagation();const n=t.target,i=parseInt(null!==(e=n.value)&&void 0!==e?e:"",10);this.day=Number.isNaN(i)?void 0:i,this.dispatchChangeEvent()}handleYearChange(t){var e;t.stopPropagation();const n=t.target,i=parseInt(null!==(e=n.value)&&void 0!==e?e:"",10);this.year=Number.isNaN(i)?void 0:i,this.updateDayForMonthYearChange(),this.dispatchChangeEvent()}createRenderRoot(){return this}render(){var t,e,n;return Nt` ({label:t,value:(e+1).toString()})))]} data-popup-engagement="true" ?required=${this.required} @change=${this.handleMonthChange} .value=${rn(null===(t=this.month)||void 0===t?void 0:t.toString())} > {const n=Mn(t,e),i=[{label:"Day",value:""}];for(let t=0;t {const t=(new Date).getFullYear(),e=t-150,n=[{label:"Year",value:""}];for(let i=t;i>=e;i-=1){const t=i.toString();n.push({value:t,label:t})}return n})()} data-popup-engagement="true" ?required=${this.required} @change=${this.handleYearChange} .value=${rn(null===(n=this.year)||void 0===n?void 0:n.toString())} > `}});const zn=(Object.assign({},dn),Object.assign(Object.assign(Object.assign({},fn),wn),On));zn.BLOCK,Dn.BACKGROUND_COLOR,Dn.BORDER_RADIUS,Dn.MARGIN,Dn.OPACITY,Dn.PADDING,Dn.LAYOUT_DIRECTION,Dn.FLEX_WRAP,Dn.GAP,Dn.DISPLAY,Dn.HEIGHT,Dn.LAYOUT_SPACING,Dn.POSITION,zn.INPUT,Dn.BACKGROUND_COLOR,Pn.INPUT_BG,Dn.BORDER_COLOR,Pn.BORDER,Dn.BORDER_RADIUS,Dn.BORDER_STYLE,Dn.BORDER_WIDTH,Dn.COLOR,Pn.TEXT,Dn.FONT_FAMILY,Dn.FONT_SIZE,Dn.FONT_STYLE,Dn.FONT_WEIGHT,Dn.LETTER_SPACING,Dn.LINE_HEIGHT,Dn.MARGIN,Dn.PADDING,Dn.TEXT_ALIGN,Dn.TEXT_DECORATION,Dn.WIDTH;let Yn={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function Vn(t){Yn=t}const Zn={exec:()=>null};function Xn(t,e=""){let n="string"==typeof t?t:t.source;const i={replace:(t,e)=>{let r="string"==typeof e?e:e.source;return r=r.replace(qn.caret,"$1"),n=n.replace(t,r),i},getRegex:()=>new RegExp(n,e)};return i}const qn={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:/^$/,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:t=>new RegExp(`^( {0,3}${t})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},Kn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Jn=/(?:[*+-]|\d{1,9}[.)])/,Qn=Xn(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Jn).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(),ti=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ei=/(?!\s*\])(?:\\.|[^\[\]\\])+/,ni=Xn(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ei).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ii=Xn(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Jn).getRegex(),ri="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",oi=/|$))/,si=Xn("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",oi).replace("tag",ri).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ai=Xn(ti).replace("hr",Kn).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",")|<(?:script|pre|style|textarea|!--)").replace("tag",ri).getRegex(),li={blockquote:Xn(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ai).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:ni,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:Kn,html:si,lheading:Qn,list:ii,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:ai,table:Zn,text:/^[^\n]+/},ci=Xn("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Kn).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",")|<(?:script|pre|style|textarea|!--)").replace("tag",ri).getRegex(),ui={...li,table:ci,paragraph:Xn(ti).replace("hr",Kn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ci).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ri).getRegex()},di={...li,html:Xn("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",oi).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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Zn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Xn(ti).replace("hr",Kn).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Qn).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},pi=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,hi=/^( {2,}|\\)\n(?!\s*$)/,fi=/[\p{P}\p{S}]/u,gi=/[\s\p{P}\p{S}]/u,mi=/[^\s\p{P}\p{S}]/u,bi=Xn(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,gi).getRegex(),_i=Xn(/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,"u").replace(/punct/g,fi).getRegex(),vi=Xn("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,mi).replace(/punctSpace/g,gi).replace(/punct/g,fi).getRegex(),yi=Xn("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,mi).replace(/punctSpace/g,gi).replace(/punct/g,fi).getRegex(),wi=Xn(/\\(punct)/,"gu").replace(/punct/g,fi).getRegex(),Oi=Xn(/^<(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(),Ti=Xn(oi).replace("(?:--\x3e|$)","--\x3e").getRegex(),Ei=Xn("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",Ti).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ii=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Si=Xn(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Ii).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),xi=Xn(/^!?\[(label)\]\[(ref)\]/).replace("label",Ii).replace("ref",ei).getRegex(),ki=Xn(/^!?\[(ref)\](?:\[\])?/).replace("ref",ei).getRegex(),Ci={_backpedal:Zn,anyPunctuation:wi,autolink:Oi,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,br:hi,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:Zn,emStrongLDelim:_i,emStrongRDelimAst:vi,emStrongRDelimUnd:yi,escape:pi,link:Si,nolink:ki,punctuation:bi,reflink:xi,reflinkSearch:Xn("reflink|nolink(?!\\()","g").replace("reflink",xi).replace("nolink",ki).getRegex(),tag:Ei,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},ji=t=>Pi[t];function Bi(t,e){if(e){if(qn.escapeTest.test(t))return t.replace(qn.escapeReplace,ji)}else if(qn.escapeTestNoEncode.test(t))return t.replace(qn.escapeReplaceNoEncode,ji);return t}function Mi(t){try{t=encodeURI(t).replace(qn.percentDecode,"%")}catch{return null}return t}function Fi(t,e){const n=t.replace(qn.findPipe,((t,e,n)=>{let i=!1,r=e;for(;--r>=0&&"\\"===n[r];)i=!i;return i?"|":" |"})).split(qn.splitPipe);let i=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length0)return{type:"space",raw:e[0]}}code(t){const e=this.rules.block.code.exec(t);if(e){const t=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:$i(t,"\n")}}}fences(t){const e=this.rules.block.fences.exec(t);if(e){const t=e[0],n=function(t,e,n){const i=t.match(n.other.indentCodeCompensation);if(null===i)return e;const r=i[1];return e.split("\n").map((t=>{const e=t.match(n.other.beginningSpace);if(null===e)return t;const[i]=e;return i.length>=r.length?t.slice(r.length):t})).join("\n")}(t,e[3]||"",this.rules);return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:n}}}heading(t){const e=this.rules.block.heading.exec(t);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){const e=$i(t,"#");this.options.pedantic?t=e.trim():e&&!this.rules.other.endingSpaceChar.test(e)||(t=e.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(t){const e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:$i(e[0],"\n")}}blockquote(t){const e=this.rules.block.blockquote.exec(t);if(e){let t=$i(e[0],"\n").split("\n"),n="",i="";const r=[];for(;t.length>0;){let e=!1;const o=[];let s;for(s=0;s1,r={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=i?n:"[*+-]");const o=this.rules.other.listItemRegex(n);let s=!1;for(;t;){let n=!1,i="",a="";if(!(e=o.exec(t)))break;if(this.rules.block.hr.test(t))break;i=e[0],t=t.substring(i.length);let l=e[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,(t=>" ".repeat(3*t.length))),c=t.split("\n",1)[0],u=!l.trim(),d=0;if(this.options.pedantic?(d=2,a=l.trimStart()):u?d=e[1].length+1:(d=e[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,a=l.slice(d),d+=e[1].length),u&&this.rules.other.blankLine.test(c)&&(i+=c+"\n",t=t.substring(c.length+1),n=!0),!n){const e=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),r=this.rules.other.fencesBeginRegex(d),o=this.rules.other.headingBeginRegex(d),s=this.rules.other.htmlBeginRegex(d);for(;t;){const p=t.split("\n",1)[0];let h;if(c=p,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),h=c):h=c.replace(this.rules.other.tabCharGlobal," "),r.test(c))break;if(o.test(c))break;if(s.test(c))break;if(e.test(c))break;if(n.test(c))break;if(h.search(this.rules.other.nonSpaceChar)>=d||!c.trim())a+="\n"+h.slice(d);else{if(u)break;if(l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4)break;if(r.test(l))break;if(o.test(l))break;if(n.test(l))break;a+="\n"+c}u||c.trim()||(u=!0),i+=p+"\n",t=t.substring(p.length+1),l=h.slice(d)}}r.loose||(s?r.loose=!0:this.rules.other.doubleBlankLine.test(i)&&(s=!0));let p,h=null;this.options.gfm&&(h=this.rules.other.listIsTask.exec(a),h&&(p="[ ] "!==h[0],a=a.replace(this.rules.other.listReplaceTask,""))),r.items.push({type:"list_item",raw:i,task:!!h,checked:p,loose:!1,text:a,tokens:[]}),r.raw+=i}const a=r.items.at(-1);a&&(a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd()),r.raw=r.raw.trimEnd();for(let t=0;t"space"===t.type)),n=e.length>0&&e.some((t=>this.rules.other.anyLine.test(t.raw)));r.loose=n}if(r.loose)for(let t=0;t({text:t,tokens:this.lexer.inline(t),header:!1,align:o.align[e]}))));return o}}lheading(t){const e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){const e=this.rules.block.paragraph.exec(t);if(e){const t="\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(t){const e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){const e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){const e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){const e=this.rules.inline.link.exec(t);if(e){const t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;const e=$i(t.slice(0,-1),"\\");if((t.length-e.length)%2==0)return}else{const t=function(t,e){if(-1===t.indexOf(e[1]))return-1;let n=0;for(let i=0;i-1){const n=(0===e[0].indexOf("!")?5:4)+e[1].length+t;e[2]=e[2].substring(0,t),e[0]=e[0].substring(0,n).trim(),e[3]=""}}let n=e[2],i="";if(this.options.pedantic){const t=this.rules.other.pedanticHrefTitle.exec(n);t&&(n=t[1],i=t[3])}else i=e[3]?e[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(t)?n.slice(1):n.slice(1,-1)),Gi(e,{href:n?n.replace(this.rules.inline.anyPunctuation,"$1"):n,title:i?i.replace(this.rules.inline.anyPunctuation,"$1"):i},e[0],this.lexer,this.rules)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){const t=e[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!t){const t=n[0].charAt(0);return{type:"text",raw:t,text:t}}return Gi(n,t,n[0],this.lexer,this.rules)}}emStrong(t,e,n=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(i&&(!i[3]||!n.match(this.rules.other.unicodeAlphaNumeric))&&(!i[1]&&!i[2]||!n||this.rules.inline.punctuation.exec(n))){const n=[...i[0]].length-1;let r,o,s=n,a=0;const l="*"===i[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,e=e.slice(-1*t.length+n);null!=(i=l.exec(e));){if(r=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!r)continue;if(o=[...r].length,i[3]||i[4]){s+=o;continue}if((i[5]||i[6])&&n%3&&!((n+o)%3)){a+=o;continue}if(s-=o,s>0)continue;o=Math.min(o,o+s+a);const e=[...i[0]][0].length,l=t.slice(0,n+i.index+e+o);if(Math.min(n,o)%2){const t=l.slice(1,-1);return{type:"em",raw:l,text:t,tokens:this.lexer.inlineTokens(t)}}const c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(t){const e=this.rules.inline.code.exec(t);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," ");const n=this.rules.other.nonSpaceChar.test(t),i=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return n&&i&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(t){const e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){const e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){const e=this.rules.inline.autolink.exec(t);if(e){let t,n;return"@"===e[2]?(t=e[1],n="mailto:"+t):(t=e[1],n=t),{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let t,n;if("@"===e[2])t=e[0],n="mailto:"+t;else{let i;do{i=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??""}while(i!==e[0]);t=e[0],n="www."===e[1]?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(t){const e=this.rules.inline.text.exec(t);if(e){const t=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:t}}}}class Hi{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Yn,this.options.tokenizer=this.options.tokenizer||new Ui,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 e={other:qn,block:Li.normal,inline:Di.normal};this.options.pedantic?(e.block=Li.pedantic,e.inline=Di.pedantic):this.options.gfm&&(e.block=Li.gfm,this.options.breaks?e.inline=Di.breaks:e.inline=Di.gfm),this.tokenizer.rules=e}static get rules(){return{block:Li,inline:Di}}static lex(t,e){return new Hi(e).lex(t)}static lexInline(t,e){return new Hi(e).inlineTokens(t)}lex(t){t=t.replace(qn.carriageReturn,"\n"),this.blockTokens(t,this.tokens);for(let t=0;t!!(i=n.call({lexer:this},t,e))&&(t=t.substring(i.raw.length),e.push(i),!0))))continue;if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length);const n=e.at(-1);1===i.raw.length&&void 0!==n?n.raw+="\n":e.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length);const n=e.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.at(-1).src=n.text):e.push(i);continue}if(i=this.tokenizer.fences(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.heading(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.hr(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.blockquote(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.list(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.html(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.def(t)){t=t.substring(i.raw.length);const n=e.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title});continue}if(i=this.tokenizer.table(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.lheading(t)){t=t.substring(i.raw.length),e.push(i);continue}let r=t;if(this.options.extensions?.startBlock){let e=1/0;const n=t.slice(1);let i;this.options.extensions.startBlock.forEach((t=>{i=t.call({lexer:this},n),"number"==typeof i&&i>=0&&(e=Math.min(e,i))})),e<1/0&&e>=0&&(r=t.substring(0,e+1))}if(this.state.top&&(i=this.tokenizer.paragraph(r))){const o=e.at(-1);n&&"paragraph"===o?.type?(o.raw+="\n"+i.raw,o.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):e.push(i),n=r.length!==t.length,t=t.substring(i.raw.length)}else if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length);const n=e.at(-1);"text"===n?.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):e.push(i)}else if(t){const e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw new Error(e)}}return this.state.top=!0,e}inline(t,e=[]){return this.inlineQueue.push({src:t,tokens:e}),e}inlineTokens(t,e=[]){let n=t,i=null;if(this.tokens.links){const t=Object.keys(this.tokens.links);if(t.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(n));)t.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(n));)n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.anyPunctuation.exec(n));)n=n.slice(0,i.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let r=!1,o="";for(;t;){let i;if(r||(o=""),r=!1,this.options.extensions?.inline?.some((n=>!!(i=n.call({lexer:this},t,e))&&(t=t.substring(i.raw.length),e.push(i),!0))))continue;if(i=this.tokenizer.escape(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.tag(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.link(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(i.raw.length);const n=e.at(-1);"text"===i.type&&"text"===n?.type?(n.raw+=i.raw,n.text+=i.text):e.push(i);continue}if(i=this.tokenizer.emStrong(t,n,o)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.codespan(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.br(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.del(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.autolink(t)){t=t.substring(i.raw.length),e.push(i);continue}if(!this.state.inLink&&(i=this.tokenizer.url(t))){t=t.substring(i.raw.length),e.push(i);continue}let s=t;if(this.options.extensions?.startInline){let e=1/0;const n=t.slice(1);let i;this.options.extensions.startInline.forEach((t=>{i=t.call({lexer:this},n),"number"==typeof i&&i>=0&&(e=Math.min(e,i))})),e<1/0&&e>=0&&(s=t.substring(0,e+1))}if(i=this.tokenizer.inlineText(s)){t=t.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(o=i.raw.slice(-1)),r=!0;const n=e.at(-1);"text"===n?.type?(n.raw+=i.raw,n.text+=i.text):e.push(i)}else if(t){const e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw new Error(e)}}return e}}class Wi{options;parser;constructor(t){this.options=t||Yn}space(t){return""}code({text:t,lang:e,escaped:n}){const i=(e||"").match(qn.notSpaceStart)?.[0],r=t.replace(qn.endingNewline,"")+"\n";return i?'
'+(n?r:Bi(r,!0))+"
\n":"
"+(n?r:Bi(r,!0))+"
\n"}blockquote({tokens:t}){return`
\n${this.parser.parse(t)}
\n`}html({text:t}){return t}heading({tokens:t,depth:e}){return`${this.parser.parseInline(t)}\n`}hr(t){return"
\n"}list(t){const e=t.ordered,n=t.start;let i="";for(let e=0;e\n"+i+"\n"}listitem(t){let e="";if(t.task){const n=this.checkbox({checked:!!t.checked});t.loose?"paragraph"===t.tokens[0]?.type?(t.tokens[0].text=n+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&"text"===t.tokens[0].tokens[0].type&&(t.tokens[0].tokens[0].text=n+" "+Bi(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):e+=n+" "}return e+=this.parser.parse(t.tokens,!!t.loose),`
  • ${e}
  • \n`}checkbox({checked:t}){return"'}paragraph({tokens:t}){return`

    ${this.parser.parseInline(t)}

    \n`}table(t){let e="",n="";for(let e=0;e${i}`),"\n\n"+e+"\n"+i+"
    \n"}tablerow({text:t}){return`\n${t}\n`}tablecell(t){const e=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`\n`}strong({tokens:t}){return`${this.parser.parseInline(t)}`}em({tokens:t}){return`${this.parser.parseInline(t)}`}codespan({text:t}){return`${Bi(t,!0)}`}br(t){return"
    "}del({tokens:t}){return`${this.parser.parseInline(t)}`}link({href:t,title:e,tokens:n}){const i=this.parser.parseInline(n),r=Mi(t);if(null===r)return i;let o='
    ",o}image({href:t,title:e,text:n}){const i=Mi(t);if(null===i)return Bi(n);let r=`${n}{const r=t[i].flat(1/0);n=n.concat(this.walkTokens(r,e))})):t.tokens&&(n=n.concat(this.walkTokens(t.tokens,e)))}}return n}use(...t){const e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach((t=>{const n={...t};if(n.async=this.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach((t=>{if(!t.name)throw new Error("extension name required");if("renderer"in t){const n=e.renderers[t.name];e.renderers[t.name]=n?function(...e){let i=t.renderer.apply(this,e);return!1===i&&(i=n.apply(this,e)),i}:t.renderer}if("tokenizer"in t){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw new Error("extension level must be 'block' or 'inline'");const n=e[t.level];n?n.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)})),n.extensions=e),t.renderer){const e=this.defaults.renderer||new Wi(this.defaults);for(const n in t.renderer){if(!(n in e))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;const i=n,r=t.renderer[i],o=e[i];e[i]=(...t)=>{let n=r.apply(e,t);return!1===n&&(n=o.apply(e,t)),n||""}}n.renderer=e}if(t.tokenizer){const e=this.defaults.tokenizer||new Ui(this.defaults);for(const n in t.tokenizer){if(!(n in e))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;const i=n,r=t.tokenizer[i],o=e[i];e[i]=(...t)=>{let n=r.apply(e,t);return!1===n&&(n=o.apply(e,t)),n}}n.tokenizer=e}if(t.hooks){const e=this.defaults.hooks||new Vi;for(const n in t.hooks){if(!(n in e))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;const i=n,r=t.hooks[i],o=e[i];Vi.passThroughHooks.has(n)?e[i]=t=>{if(this.defaults.async)return Promise.resolve(r.call(e,t)).then((t=>o.call(e,t)));const n=r.call(e,t);return o.call(e,n)}:e[i]=(...t)=>{let n=r.apply(e,t);return!1===n&&(n=o.apply(e,t)),n}}n.hooks=e}if(t.walkTokens){const e=this.defaults.walkTokens,i=t.walkTokens;n.walkTokens=function(t){let n=[];return n.push(i.call(this,t)),e&&(n=n.concat(e.call(this,t))),n}}this.defaults={...this.defaults,...n}})),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return Hi.lex(t,e??this.defaults)}parser(t,e){return Yi.parse(t,e??this.defaults)}parseMarkdown(t){return(e,n)=>{const i={...n},r={...this.defaults,...i},o=this.onError(!!r.silent,!!r.async);if(!0===this.defaults.async&&!1===i.async)return o(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==e)return o(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));r.hooks&&(r.hooks.options=r,r.hooks.block=t);const s=r.hooks?r.hooks.provideLexer():t?Hi.lex:Hi.lexInline,a=r.hooks?r.hooks.provideParser():t?Yi.parse:Yi.parseInline;if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(e):e).then((t=>s(t,r))).then((t=>r.hooks?r.hooks.processAllTokens(t):t)).then((t=>r.walkTokens?Promise.all(this.walkTokens(t,r.walkTokens)).then((()=>t)):t)).then((t=>a(t,r))).then((t=>r.hooks?r.hooks.postprocess(t):t)).catch(o);try{r.hooks&&(e=r.hooks.preprocess(e));let t=s(e,r);r.hooks&&(t=r.hooks.processAllTokens(t)),r.walkTokens&&this.walkTokens(t,r.walkTokens);let n=a(t,r);return r.hooks&&(n=r.hooks.postprocess(n)),n}catch(t){return o(t)}}}onError(t,e){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",t){const t="

    An error occurred:

    "+Bi(n.message+"",!0)+"
    ";return e?Promise.resolve(t):t}if(e)return Promise.reject(n);throw n}}}const Xi=new Zi;function qi(t,e){return Xi.parse(t,e)}qi.options=qi.setOptions=function(t){return Xi.setOptions(t),qi.defaults=Xi.defaults,Vn(qi.defaults),qi},qi.getDefaults=function(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},qi.defaults=Yn,qi.use=function(...t){return Xi.use(...t),qi.defaults=Xi.defaults,Vn(qi.defaults),qi},qi.walkTokens=function(t,e){return Xi.walkTokens(t,e)},qi.parseInline=Xi.parseInline,qi.Parser=Yi,qi.parser=Yi.parse,qi.Renderer=Wi,qi.TextRenderer=zi,qi.Lexer=Hi,qi.lexer=Hi.lex,qi.Tokenizer=Ui,qi.Hooks=Vi,qi.parse=qi,qi.options,qi.setOptions,qi.use,qi.walkTokens,qi.parseInline,Yi.parse,Hi.lex;const{entries:Ki,setPrototypeOf:Ji,isFrozen:Qi,getPrototypeOf:tr,getOwnPropertyDescriptor:er}=Object;let{freeze:nr,seal:ir,create:rr}=Object,{apply:or,construct:sr}="undefined"!=typeof Reflect&&Reflect;nr||(nr=function(t){return t}),ir||(ir=function(t){return t}),or||(or=function(t,e,n){return t.apply(e,n)}),sr||(sr=function(t,e){return new t(...e)});const ar=yr(Array.prototype.forEach),lr=yr(Array.prototype.pop),cr=yr(Array.prototype.push),ur=yr(String.prototype.toLowerCase),dr=yr(String.prototype.toString),pr=yr(String.prototype.match),hr=yr(String.prototype.replace),fr=yr(String.prototype.indexOf),gr=yr(String.prototype.trim),mr=yr(Object.prototype.hasOwnProperty),br=yr(RegExp.prototype.test),_r=(vr=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n1?n-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:ur;Ji&&Ji(t,null);let i=e.length;for(;i--;){let r=e[i];if("string"==typeof r){const t=n(r);t!==r&&(Qi(e)||(e[i]=t),r=t)}t[r]=!0}return t}function Or(t){for(let e=0;e/gm),Mr=ir(/\${[\w\W]*}/gm),Fr=ir(/^data-[\-\w.\u00B7-\uFFFF]/),$r=ir(/^aria-[\-\w]+$/),Gr=ir(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ur=ir(/^(?:\w+script|data):/i),Hr=ir(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Wr=ir(/^html$/i),zr=ir(/^[a-z][.\w]*(-[.\w]+)+$/i);var Yr=Object.freeze({__proto__:null,ARIA_ATTR:$r,ATTR_WHITESPACE:Hr,CUSTOM_ELEMENT:zr,DATA_ATTR:Fr,DOCTYPE_NAME:Wr,ERB_EXPR:Br,IS_ALLOWED_URI:Gr,IS_SCRIPT_OR_DATA:Ur,MUSTACHE_EXPR:jr,TMPLIT_EXPR:Mr});const Vr=function(){return"undefined"==typeof window?null:window};(function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vr();const n=e=>t(e);if(n.version="3.2.2",n.removed=[],!e||!e.document||9!==e.document.nodeType)return n.isSupported=!1,n;let{document:i}=e;const r=i,o=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:p,DOMParser:h,trustedTypes:f}=e,g=c.prototype,m=Er(g,"cloneNode"),b=Er(g,"remove"),_=Er(g,"nextSibling"),v=Er(g,"childNodes"),y=Er(g,"parentNode");if("function"==typeof a){const t=i.createElement("template");t.content&&t.content.ownerDocument&&(i=t.content.ownerDocument)}let w,O="";const{implementation:T,createNodeIterator:E,createDocumentFragment:I,getElementsByTagName:S}=i,{importNode:x}=r;let k={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof Ki&&"function"==typeof y&&T&&void 0!==T.createHTMLDocument;const{MUSTACHE_EXPR:C,ERB_EXPR:A,TMPLIT_EXPR:R,DATA_ATTR:N,ARIA_ATTR:L,IS_SCRIPT_OR_DATA:D,ATTR_WHITESPACE:P,CUSTOM_ELEMENT:j}=Yr;let{IS_ALLOWED_URI:B}=Yr,M=null;const F=wr({},[...Ir,...Sr,...xr,...Cr,...Rr]);let $=null;const G=wr({},[...Nr,...Lr,...Dr,...Pr]);let U=Object.seal(rr(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,z=!0,Y=!0,V=!1,Z=!0,X=!1,q=!0,K=!1,J=!1,Q=!1,tt=!1,et=!1,nt=!1,it=!0,rt=!1,ot=!0,st=!1,at={},lt=null;const ct=wr({},["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 ut=null;const dt=wr({},["audio","video","img","source","image","track"]);let pt=null;const ht=wr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ft="http://www.w3.org/1998/Math/MathML",gt="http://www.w3.org/2000/svg",mt="http://www.w3.org/1999/xhtml";let bt=mt,_t=!1,vt=null;const yt=wr({},[ft,gt,mt],dr);let wt=wr({},["mi","mo","mn","ms","mtext"]),Ot=wr({},["annotation-xml"]);const Tt=wr({},["title","style","font","a","script"]);let Et=null;const It=["application/xhtml+xml","text/html"];let St=null,xt=null;const kt=i.createElement("form"),Ct=function(t){return t instanceof RegExp||t instanceof Function},At=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!xt||xt!==t){if(t&&"object"==typeof t||(t={}),t=Tr(t),Et=-1===It.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,St="application/xhtml+xml"===Et?dr:ur,M=mr(t,"ALLOWED_TAGS")?wr({},t.ALLOWED_TAGS,St):F,$=mr(t,"ALLOWED_ATTR")?wr({},t.ALLOWED_ATTR,St):G,vt=mr(t,"ALLOWED_NAMESPACES")?wr({},t.ALLOWED_NAMESPACES,dr):yt,pt=mr(t,"ADD_URI_SAFE_ATTR")?wr(Tr(ht),t.ADD_URI_SAFE_ATTR,St):ht,ut=mr(t,"ADD_DATA_URI_TAGS")?wr(Tr(dt),t.ADD_DATA_URI_TAGS,St):dt,lt=mr(t,"FORBID_CONTENTS")?wr({},t.FORBID_CONTENTS,St):ct,H=mr(t,"FORBID_TAGS")?wr({},t.FORBID_TAGS,St):{},W=mr(t,"FORBID_ATTR")?wr({},t.FORBID_ATTR,St):{},at=!!mr(t,"USE_PROFILES")&&t.USE_PROFILES,z=!1!==t.ALLOW_ARIA_ATTR,Y=!1!==t.ALLOW_DATA_ATTR,V=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Z=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,X=t.SAFE_FOR_TEMPLATES||!1,q=!1!==t.SAFE_FOR_XML,K=t.WHOLE_DOCUMENT||!1,tt=t.RETURN_DOM||!1,et=t.RETURN_DOM_FRAGMENT||!1,nt=t.RETURN_TRUSTED_TYPE||!1,Q=t.FORCE_BODY||!1,it=!1!==t.SANITIZE_DOM,rt=t.SANITIZE_NAMED_PROPS||!1,ot=!1!==t.KEEP_CONTENT,st=t.IN_PLACE||!1,B=t.ALLOWED_URI_REGEXP||Gr,bt=t.NAMESPACE||mt,wt=t.MATHML_TEXT_INTEGRATION_POINTS||wt,Ot=t.HTML_INTEGRATION_POINTS||Ot,U=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&Ct(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(U.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&Ct(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(U.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(U.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),X&&(Y=!1),et&&(tt=!0),at&&(M=wr({},Rr),$=[],!0===at.html&&(wr(M,Ir),wr($,Nr)),!0===at.svg&&(wr(M,Sr),wr($,Lr),wr($,Pr)),!0===at.svgFilters&&(wr(M,xr),wr($,Lr),wr($,Pr)),!0===at.mathMl&&(wr(M,Cr),wr($,Dr),wr($,Pr))),t.ADD_TAGS&&(M===F&&(M=Tr(M)),wr(M,t.ADD_TAGS,St)),t.ADD_ATTR&&($===G&&($=Tr($)),wr($,t.ADD_ATTR,St)),t.ADD_URI_SAFE_ATTR&&wr(pt,t.ADD_URI_SAFE_ATTR,St),t.FORBID_CONTENTS&&(lt===ct&&(lt=Tr(lt)),wr(lt,t.FORBID_CONTENTS,St)),ot&&(M["#text"]=!0),K&&wr(M,["html","head","body"]),M.table&&(wr(M,["tbody"]),delete H.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw _r('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw _r('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=t.TRUSTED_TYPES_POLICY,O=w.createHTML("")}else void 0===w&&(w=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";e&&e.hasAttribute(i)&&(n=e.getAttribute(i));const r="dompurify"+(n?"#"+n:"");try{return t.createPolicy(r,{createHTML(t){return t},createScriptURL(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(f,o)),null!==w&&"string"==typeof O&&(O=w.createHTML(""));nr&&nr(t),xt=t}},Rt=wr({},[...Sr,...xr,...kr]),Nt=wr({},[...Cr,...Ar]),Lt=function(t){cr(n.removed,{element:t});try{y(t).removeChild(t)}catch(e){b(t)}},Dt=function(t,e){try{cr(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){cr(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(tt||et)try{Lt(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},Pt=function(t){let e=null,n=null;if(Q)t=""+t;else{const e=pr(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===Et&&bt===mt&&(t=''+t+"");const r=w?w.createHTML(t):t;if(bt===mt)try{e=(new h).parseFromString(r,Et)}catch(t){}if(!e||!e.documentElement){e=T.createDocument(bt,"template",null);try{e.documentElement.innerHTML=_t?O:r}catch(t){}}const o=e.body||e.documentElement;return t&&n&&o.insertBefore(i.createTextNode(n),o.childNodes[0]||null),bt===mt?S.call(e,K?"html":"body")[0]:K?e.documentElement:o},jt=function(t){return E.call(t.ownerDocument||t,t,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Bt=function(t){return t instanceof p&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof d)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},Mt=function(t){return"function"==typeof l&&t instanceof l};function Ft(t,e,i){ar(t,(t=>{t.call(n,e,i,xt)}))}const $t=function(t){let e=null;if(Ft(k.beforeSanitizeElements,t,null),Bt(t))return Lt(t),!0;const i=St(t.nodeName);if(Ft(k.uponSanitizeElement,t,{tagName:i,allowedTags:M}),t.hasChildNodes()&&!Mt(t.firstElementChild)&&br(/<[/\w]/g,t.innerHTML)&&br(/<[/\w]/g,t.textContent))return Lt(t),!0;if(7===t.nodeType)return Lt(t),!0;if(q&&8===t.nodeType&&br(/<[/\w]/g,t.data))return Lt(t),!0;if(!M[i]||H[i]){if(!H[i]&&Ut(i)){if(U.tagNameCheck instanceof RegExp&&br(U.tagNameCheck,i))return!1;if(U.tagNameCheck instanceof Function&&U.tagNameCheck(i))return!1}if(ot&&!lt[i]){const e=y(t)||t.parentNode,n=v(t)||t.childNodes;if(n&&e)for(let i=n.length-1;i>=0;--i){const r=m(n[i],!0);r.__removalCount=(t.__removalCount||0)+1,e.insertBefore(r,_(t))}}return Lt(t),!0}return t instanceof c&&!function(t){let e=y(t);e&&e.tagName||(e={namespaceURI:bt,tagName:"template"});const n=ur(t.tagName),i=ur(e.tagName);return!!vt[t.namespaceURI]&&(t.namespaceURI===gt?e.namespaceURI===mt?"svg"===n:e.namespaceURI===ft?"svg"===n&&("annotation-xml"===i||wt[i]):Boolean(Rt[n]):t.namespaceURI===ft?e.namespaceURI===mt?"math"===n:e.namespaceURI===gt?"math"===n&&Ot[i]:Boolean(Nt[n]):t.namespaceURI===mt?!(e.namespaceURI===gt&&!Ot[i])&&!(e.namespaceURI===ft&&!wt[i])&&!Nt[n]&&(Tt[n]||!Rt[n]):!("application/xhtml+xml"!==Et||!vt[t.namespaceURI]))}(t)?(Lt(t),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!br(/<\/no(script|embed|frames)/i,t.innerHTML)?(X&&3===t.nodeType&&(e=t.textContent,ar([C,A,R],(t=>{e=hr(e,t," ")})),t.textContent!==e&&(cr(n.removed,{element:t.cloneNode()}),t.textContent=e)),Ft(k.afterSanitizeElements,t,null),!1):(Lt(t),!0)},Gt=function(t,e,n){if(it&&("id"===e||"name"===e)&&(n in i||n in kt))return!1;if(Y&&!W[e]&&br(N,e));else if(z&&br(L,e));else if(!$[e]||W[e]){if(!(Ut(t)&&(U.tagNameCheck instanceof RegExp&&br(U.tagNameCheck,t)||U.tagNameCheck instanceof Function&&U.tagNameCheck(t))&&(U.attributeNameCheck instanceof RegExp&&br(U.attributeNameCheck,e)||U.attributeNameCheck instanceof Function&&U.attributeNameCheck(e))||"is"===e&&U.allowCustomizedBuiltInElements&&(U.tagNameCheck instanceof RegExp&&br(U.tagNameCheck,n)||U.tagNameCheck instanceof Function&&U.tagNameCheck(n))))return!1}else if(pt[e]);else if(br(B,hr(n,P,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==fr(n,"data:")||!ut[t])if(V&&!br(D,hr(n,P,"")));else if(n)return!1;return!0},Ut=function(t){return"annotation-xml"!==t&&pr(t,j)},Ht=function(t){Ft(k.beforeSanitizeAttributes,t,null);const{attributes:e}=t;if(!e)return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$,forceKeepAttr:void 0};let r=e.length;for(;r--;){const o=e[r],{name:s,namespaceURI:a,value:l}=o,c=St(s);let u="value"===s?l:gr(l);if(i.attrName=c,i.attrValue=u,i.keepAttr=!0,i.forceKeepAttr=void 0,Ft(k.uponSanitizeAttribute,t,i),u=i.attrValue,!rt||"id"!==c&&"name"!==c||(Dt(s,t),u="user-content-"+u),q&&br(/((--!?|])>)|<\/(style|title)/i,u)){Dt(s,t);continue}if(i.forceKeepAttr)continue;if(Dt(s,t),!i.keepAttr)continue;if(!Z&&br(/\/>/i,u)){Dt(s,t);continue}X&&ar([C,A,R],(t=>{u=hr(u,t," ")}));const d=St(t.nodeName);if(Gt(d,c,u)){if(w&&"object"==typeof f&&"function"==typeof f.getAttributeType)if(a);else switch(f.getAttributeType(d,c)){case"TrustedHTML":u=w.createHTML(u);break;case"TrustedScriptURL":u=w.createScriptURL(u)}try{a?t.setAttributeNS(a,s,u):t.setAttribute(s,u),Bt(t)?Lt(t):lr(n.removed)}catch(t){}}}Ft(k.afterSanitizeAttributes,t,null)},Wt=function t(e){let n=null;const i=jt(e);for(Ft(k.beforeSanitizeShadowDOM,e,null);n=i.nextNode();)Ft(k.uponSanitizeShadowNode,n,null),$t(n)||(n.content instanceof s&&t(n.content),Ht(n));Ft(k.afterSanitizeShadowDOM,e,null)};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,o=null,a=null,c=null;if(_t=!t,_t&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Mt(t)){if("function"!=typeof t.toString)throw _r("toString is not a function");if("string"!=typeof(t=t.toString()))throw _r("dirty is not a string, aborting")}if(!n.isSupported)return t;if(J||At(e),n.removed=[],"string"==typeof t&&(st=!1),st){if(t.nodeName){const e=St(t.nodeName);if(!M[e]||H[e])throw _r("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof l)i=Pt("\x3c!----\x3e"),o=i.ownerDocument.importNode(t,!0),1===o.nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?i=o:i.appendChild(o);else{if(!tt&&!X&&!K&&-1===t.indexOf("<"))return w&&nt?w.createHTML(t):t;if(i=Pt(t),!i)return tt?null:nt?O:""}i&&Q&&Lt(i.firstChild);const u=jt(st?t:i);for(;a=u.nextNode();)$t(a)||(a.content instanceof s&&Wt(a.content),Ht(a));if(st)return t;if(tt){if(et)for(c=I.call(i.ownerDocument);i.firstChild;)c.appendChild(i.firstChild);else c=i;return($.shadowroot||$.shadowrootmode)&&(c=x.call(r,c,!0)),c}let d=K?i.outerHTML:i.innerHTML;return K&&M["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&br(Wr,i.ownerDocument.doctype.name)&&(d="\n"+d),X&&ar([C,A,R],(t=>{d=hr(d,t," ")})),w&&nt?w.createHTML(d):d},n.setConfig=function(){At(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),J=!0},n.clearConfig=function(){xt=null,J=!1},n.isValidAttribute=function(t,e,n){xt||At({});const i=St(t),r=St(e);return Gt(i,r,n)},n.addHook=function(t,e){"function"==typeof e&&cr(k[t],e)},n.removeHook=function(t){return lr(k[t])},n.removeHooks=function(t){k[t]=[]},n.removeAllHooks=function(){k={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n})();var Zr=r(694);typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"&&self;var Xr={exports:{}};!function(t){!function(t,e){function n(t){var e=this,n=function(){var t=4022871197;return function(e){e=String(e);for(var n=0;n>>0,t=(i*=t)>>>0,t+=4294967296*(i-=t)}return 2.3283064365386963e-10*(t>>>0)}}();e.next=function(){var t=2091639*e.s0+2.3283064365386963e-10*e.c;return e.s0=e.s1,e.s1=e.s2,e.s2=t-(e.c=0|t)},e.c=1,e.s0=n(" "),e.s1=n(" "),e.s2=n(" "),e.s0-=n(t),e.s0<0&&(e.s0+=1),e.s1-=n(t),e.s1<0&&(e.s1+=1),e.s2-=n(t),e.s2<0&&(e.s2+=1),n=null}function i(t,e){return e.c=t.c,e.s0=t.s0,e.s1=t.s1,e.s2=t.s2,e}function r(t,e){var r=new n(t),o=e&&e.state,s=r.next;return s.int32=function(){return 4294967296*r.next()|0},s.double=function(){return s()+11102230246251565e-32*(2097152*s()|0)},s.quick=s,o&&("object"==typeof o&&i(o,r),s.state=function(){return i(r,{})}),s}e&&e.exports?e.exports=r:this.alea=r}(0,t)}(Xr);const qr=Zr.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:t=>`"${t.slice(1,-1)}"`},Identifier:/(?:\x23)?(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/u}),Kr=new RegExp("(?<==)(?:true|false)"),Jr=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]+)"),Qr=new RegExp("(?<==)'(?!.*&[0-9a-zA-Z]+;)[^'\\\\]*(?:\\\\.|\\\\n[^\"\\\\]*|&[^0-9a-zA-Z;]*)*'"),to=new RegExp('(?<==)"(?!.*&[0-9a-zA-Z]+;)[^"\\\\]*(?:\\\\.|\\\\n[^"\\\\]*|&[^0-9a-zA-Z;]*)*"'),eo=new RegExp("(?<==)[^\"\\s'`=<>\\x00]+");function no(t){const e="string"==typeof t&&/^(['"]).*?\1$/.test(t)?t.slice(1,-1):t;return e.startsWith("[")&&e.endsWith("]")||e.startsWith("{")&&e.endsWith("}")?JSON.parse(function(t,e={}){const n=t.trim().replace(/[,]+$/,"");if(""===n)return"{}";if(!function(t){return t.startsWith("{")&&t.endsWith("}")||t.startsWith("[")&&t.endsWith("]")}(n))throw new TypeError("Unexpected input format");let i="";qr.reset(n);for(const t of qr)if("WhiteSpace"!==t.type&&"Lines"!==t.type){switch(t.type){case"Identifier":t.value=`"${e[t.value]||t.value}"`;break;case"ObjectKey":"["===t.value.slice(0,1)&&"]"===t.value.slice(-1)?t.value=`"${e[t.value.slice(1,-1)]||t.value.slice(1,-1)}"`:t.value=`"${t.value}"`}i+=t.value}return i.replace(/,([}\]])/g,"$1")}(e)):e}const io=Zr.states({main:{WhiteSpace:/[ \t\v\f\ufeff]+/,AttributeShorthand:/[.#](?:(?!-?\d)(?:[a-zA-Z0-9\xA0-\uFFFF_-])+)/,BooleanLiteral:{match:Kr,value(t){return"true"===t}},NumericLiteral:{match:Jr,value(t){const e=Number(t);return Number.isNaN(e)?Number(t.replace(/_|n$/g,"")):Number(t)}},SingleQuotedValue:{match:Qr,value:no,type:()=>"StringLiteral"},DoubleQuotedLiteral:{match:to,value:no,type:()=>"StringLiteral"},UnquotedLiteral:{match:eo,value:no,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:"="}});Zr.compile({spaces:/[\t\v\f\ufeff ]+/,name:/[a-zA-Z][\w-]*/,attrs:{match:/\{.*\}/,value:t=>function(t){let e=null;const n=io.reset(t),i={};Object.defineProperties(i,{toString:{writable:!1,enumerable:!1,configurable:!1,value:()=>function(t){let e="";for(const n in t){const i=t[n];switch(typeof i){case"object":e+=` ${n}='${JSON.stringify(i)}'`;break;case"string":e+=` ${n}="${i}"`;break;case"number":case"boolean":e+=` ${n}=${i}`}}return e.slice(1)}(i)},getTokens:{writable:!1,enumerable:!1,configurable:!1,value:()=>Array.from(io.reset(t))}});const r=[];for(const{type:t,value:o}of n)switch(t){case"AttributeName":e=o,i[e]=e;break;case"AttributeShorthand":"."===o[0]?r.push(o.slice(1)):"#"===o[0]&&(i.id=o.slice(1));break;case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":e&&("class"===e&&r.push(o),i[e]=o,e=null)}return r.length&&(i.class=r.join(" ")),i}(t.slice(1,-1))},text:{match:/\[.*\]/,value:t=>t.slice(1,-1)},blockText:{match:/[\s\S]+/,lineBreaks:!0}});const ro=(Object.assign({},cn),Object.assign(Object.assign({},mn),fn)),oo={[ro.BLOCK]:{mobile:{[Dn.ALIGN_SELF]:"center",[Dn.MARGIN]:"0px 0px 0px 0px",[Dn.OPACITY]:"1",[Dn.WIDTH]:"100%",[Dn.POSITION]:"relative"}},[ro.BUTTON]:{mobile:{[Dn.BACKGROUND_COLOR]:Pn.PRIMARY_BUTTON_BG,[Dn.BORDER_COLOR]:Pn.BORDER,[Dn.BORDER_RADIUS]:"0px 0px 0px 0px",[Dn.BORDER_STYLE]:"none",[Dn.BORDER_WIDTH]:"1px",[Dn.COLOR]:Pn.PRIMARY_BUTTON_TEXT,[Dn.FONT_FAMILY]:jn,[Dn.FONT_SIZE]:"16px",[Dn.FONT_STYLE]:"normal",[Dn.FONT_WEIGHT]:"bold",[Dn.LETTER_SPACING]:"0px",[Dn.LINE_HEIGHT]:"1.2",[Dn.PADDING]:"8px 8px 8px 8px",[Dn.TEXT_ALIGN]:"center",[Dn.TEXT_DECORATION]:"none",[Dn.WIDTH]:"100%"}}},so=(Object.assign({},pn),Object.assign(Object.assign(Object.assign(Object.assign({},fn),mn),_n),Nn));so.BLOCK,Dn.ALIGN_SELF,Dn.MARGIN,Dn.OPACITY,Dn.WIDTH,Dn.POSITION,so.GROUP,Dn.GAP,Dn.ALIGN_ITEMS,Dn.DISPLAY,Dn.LAYOUT_DIRECTION,so.BUTTON,Object.assign({},oo[so.BUTTON]),so.TEXT,Dn.COLOR,Pn.TEXT,Dn.FONT_FAMILY,Dn.FONT_SIZE,Dn.FONT_STYLE,Dn.FONT_WEIGHT,Dn.LETTER_SPACING,Dn.LINE_HEIGHT,Dn.MARGIN,Dn.TEXT_ALIGN,Dn.TEXT_DECORATION,Dn.DISPLAY;const ao=Object.assign(Object.assign(Object.assign({},mn),fn),Rn);ao.BLOCK,Dn.OPACITY,Dn.INSET,Dn.POSITION,Dn.Z_INDEX,ao.BUTTON,Dn.BACKGROUND_COLOR,Dn.BORDER_COLOR,Pn.BORDER,Dn.BORDER_RADIUS,Dn.BORDER_STYLE,Dn.BORDER_WIDTH,Dn.COLOR,Pn.TEXT,Dn.PADDING,Dn.DISPLAY,Dn.JUSTIFY_CONTENT,ao.SVG,Dn.COLOR,Dn.HEIGHT,Dn.WIDTH;Object.assign({},fn).BLOCK,Dn.BACKGROUND_COLOR,Dn.BORDER_RADIUS,Dn.LAYOUT_DIRECTION,Dn.LAYOUT_SPACING,Dn.MARGIN,Dn.MAX_WIDTH,Dn.PADDING,Dn.DISPLAY,Dn.FLEX,Dn.POSITION;Object.assign(Object.assign({},dn),hn);const lo=Object.assign(Object.assign(Object.assign({},On),wn),fn);customElements.get("ps-floating-label")||customElements.define("ps-floating-label",class extends te{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 t,e,n,i,r,o,s,a,l,c,u,d,p,h,f,g,m,b,_,v,y,w,O,T,E,I,S,x,k;if(!this.input)return J``;const C=getComputedStyle(this.input),A=K(this.id);return J` ps-floating-label#${A} > .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: ${K(null!==(t=C.color)&&void 0!==t?t:"unset")}; font-size: ${K(null!==(n=null===(e=this.inputStyleRules)||void 0===e?void 0:e[Dn.FLOATING_LABEL_FONT_SIZE])&&void 0!==n?n:"unset")}; font-style: ${K(null!==(i=C.fontStyle)&&void 0!==i?i:"unset")}; font-weight: ${K(null!==(r=C.fontWeight)&&void 0!==r?r:"unset")}; font-family: ${K(null!==(o=C.fontFamily)&&void 0!==o?o:"unset")}; letter-spacing: ${K(null!==(s=C.letterSpacing)&&void 0!==s?s:"unset")}; line-height: ${K(null!==(a=C.lineHeight)&&void 0!==a?a:"unset")}; top: ${K(null!==(c=null===(l=this.inputStyleRules)||void 0===l?void 0:l[Dn.FLOATING_LABEL_TOP])&&void 0!==c?c:0)}; left: ${K(null!==(d=null===(u=this.inputStyleRules)||void 0===u?void 0:u[Dn.FLOATING_LABEL_LEFT])&&void 0!==d?d:0)}; border-color: transparent; border-style: solid; } ps-floating-label#${A}: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(${K(null!==(p=C.paddingLeft)&&void 0!==p?p:"0")} - 1px); right: ${K(null!==(h=C.paddingRight)&&void 0!==h?h:"unset")}; font-size: ${K(null!==(f=C.fontSize)&&void 0!==f?f:"unset")}; height: calc( ${K(null!==(g=C.height)&&void 0!==g?g:"0")} - ${K(null!==(m=C.borderTopWidth)&&void 0!==m?m:"0")} - ${K(null!==(b=C.borderBottomWidth)&&void 0!==b?b:"0")} - ${K("2px")} ); border-width: ${K(null!==(_=C.borderWidth)&&void 0!==_?_:"unset")}; border-radius: ${K(null!==(v=C.borderRadius)&&void 0!==v?v:"unset")}; text-align: ${K(null!==(y=C.textAlign)&&void 0!==y?y:"unset")}; background-color: ${K(null!==(w=C.backgroundColor)&&void 0!==w?w:"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(${K(null!==(O=C.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: ${K(null!==(T=C.paddingTop)&&void 0!==T?T:"unset")}; left: var( --iti-spacer-horizontal, calc(${K(null!==(E=C.paddingLeft)&&void 0!==E?E:"0")} - 1px) ); right: ${K(null!==(I=C.paddingRight)&&void 0!==I?I:"unset")}; font-size: ${K(null!==(S=C.fontSize)&&void 0!==S?S:"unset")}; text-align: ${K(null!==(x=C.textAlign)&&void 0!==x?x:"unset")}; background-color: ${K(null!==(k=C.backgroundColor)&&void 0!==k?k:"unset")}; } } `}connectedCallback(){var t,e,n,i;super.connectedCallback(),this.id||(this.id="floating-label"),this.input=null!==(i=null!==(e=null===(t=this.renderRoot.parentElement)||void 0===t?void 0:t.querySelector("input"))&&void 0!==e?e:null===(n=this.renderRoot.parentElement)||void 0===n?void 0:n.querySelector("textarea"))&&void 0!==i?i:null,this.input&&(this.input.placeholder||this.input.setAttribute("placeholder"," "))}disconnectedCallback(){super.disconnectedCallback()}createRenderRoot(){return this}render(){return Nt` ${this.content}`}});lo.BLOCK,Dn.BACKGROUND_COLOR,Dn.BORDER_RADIUS,Dn.MARGIN,Dn.OPACITY,Dn.PADDING,Dn.DISPLAY,Dn.HEIGHT,Dn.LAYOUT_DIRECTION,Dn.LAYOUT_SPACING,Dn.POSITION,Dn.Z_INDEX,lo.INPUT,Dn.BACKGROUND_COLOR,Pn.INPUT_BG,Dn.BORDER_COLOR,Pn.BORDER,Dn.BORDER_RADIUS,Dn.BORDER_STYLE,Dn.BORDER_WIDTH,Dn.COLOR,Pn.TEXT,Dn.FLOATING_LABEL_FONT_SIZE,Dn.FLOATING_LABEL_TOP,Dn.FLOATING_LABEL_LEFT,Dn.FONT_FAMILY,Dn.FONT_SIZE,Dn.FONT_STYLE,Dn.FONT_WEIGHT,Dn.LETTER_SPACING,Dn.LINE_HEIGHT,Dn.MARGIN,Dn.PADDING,Dn.TEXT_ALIGN,Dn.TEXT_DECORATION,lo.LABEL,Dn.COLOR,Pn.TEXT,Dn.FONT_FAMILY,Dn.FONT_SIZE,Dn.FONT_STYLE,Dn.FONT_WEIGHT,Dn.LETTER_SPACING,Dn.LINE_HEIGHT,Dn.MARGIN,Dn.TEXT_ALIGN,Dn.TEXT_DECORATION;Object.assign({},un);const co=Object.assign(Object.assign({},vn),fn);co.BLOCK,Dn.BACKGROUND_COLOR,Dn.BORDER_RADIUS,Dn.MARGIN,Dn.OPACITY,Dn.PADDING,Dn.POSITION,co.HEADING,Dn.COLOR,Pn.TEXT,Dn.FONT_FAMILY,Dn.FONT_SIZE,Dn.FONT_STYLE,Dn.FONT_WEIGHT,Dn.LETTER_SPACING,Dn.LINE_HEIGHT,Dn.TEXT_ALIGN,Dn.TEXT_DECORATION,Dn.MARGIN;const uo=["January","February","March","April","May","June","July","August","September","October","November","December"],po=(t=1)=>new Date(1904,t,0).getDate(),ho=(t,e)=>{if(void 0!==t&&void 0!==e)return`${t.toString().padStart(2,"0")}-${e.toString().padStart(2,"0")}`};customElements.get("ps-month-day-input")||customElements.define("ps-month-day-input",class extends te{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(t){super.update(t)}dispatchChangeEvent(){const t=new CustomEvent("change",{detail:ho(this.month,this.day),bubbles:!0,composed:!0,cancelable:!0});this.dispatchEvent(t)}handleMonthChange(t){var e;t.stopPropagation();const n=t.target,i=parseInt(null!==(e=n.value)&&void 0!==e?e:"",10);this.month=Number.isNaN(i)?void 0:i;const r=po(this.month);(void 0===this.month||void 0!==this.day&&this.day>r)&&(this.day=void 0),this.dispatchChangeEvent()}handleDayChange(t){var e;t.stopPropagation();const n=t.target,i=parseInt(null!==(e=n.value)&&void 0!==e?e:"",10);this.day=Number.isNaN(i)?void 0:i,this.dispatchChangeEvent()}createRenderRoot(){return this}render(){var t,e;return Nt` ({label:t,value:(e+1).toString()})))]}" data-popup-engagement="true" ?required=${rn(!!this.required||void 0)} @change=${this.handleMonthChange} .value=${rn(null===(t=this.month)||void 0===t?void 0:t.toString())} > `}}),Object.assign({},dn);const fo=Object.assign(Object.assign(Object.assign({},fn),wn),On);fo.BLOCK,Dn.BACKGROUND_COLOR,Dn.BORDER_RADIUS,Dn.MARGIN,Dn.OPACITY,Dn.PADDING,Dn.GAP,Dn.DISPLAY,Dn.HEIGHT,Dn.LAYOUT_DIRECTION,Dn.LAYOUT_SPACING,Dn.POSITION,fo.INPUT,Dn.BACKGROUND_COLOR,Pn.INPUT_BG,Dn.BORDER_COLOR,Pn.BORDER,Dn.BORDER_RADIUS,Dn.BORDER_STYLE,Dn.BORDER_WIDTH,Dn.COLOR,Pn.TEXT,Dn.DROPDOWN_ARROW,Dn.FONT_FAMILY,Dn.FONT_SIZE,Dn.FONT_STYLE,Dn.FONT_WEIGHT,Dn.LETTER_SPACING,Dn.LINE_HEIGHT,Dn.MARGIN,Dn.PADDING,Dn.TEXT_ALIGN,Dn.TEXT_DECORATION,Dn.WIDTH;Array.from({length:4},(()=>"–")).join(" "),Object.assign(Object.assign({},pn),cn);const go=Object.assign(Object.assign(Object.assign(Object.assign({},fn),mn),wn),Nn);go.BLOCK,Dn.BACKGROUND_COLOR,Dn.BORDER_RADIUS,Dn.MARGIN,Dn.OPACITY,Dn.PADDING,Dn.POSITION,go.BUTTON,Dn.BACKGROUND_COLOR,Dn.BORDER_COLOR,Pn.BORDER,Dn.BORDER_RADIUS,Dn.BORDER_STYLE,Dn.BORDER_WIDTH,Dn.COLOR,Pn.TEXT,Dn.FONT_FAMILY,Dn.FONT_SIZE,Dn.FONT_STYLE,Dn.FONT_WEIGHT,Dn.LETTER_SPACING,Dn.LINE_HEIGHT,Dn.MARGIN,Dn.PADDING,Dn.TEXT_DECORATION,Dn.TEXT_ALIGN,go.INPUT,Dn.BACKGROUND_COLOR,Pn.INPUT_BG,Dn.BORDER_COLOR,Pn.BORDER,Dn.BORDER_RADIUS,Dn.BORDER_STYLE,Dn.BORDER_WIDTH,Dn.COLOR,Pn.TEXT,Dn.FONT_FAMILY,Dn.FONT_SIZE,Dn.FONT_STYLE,Dn.FONT_WEIGHT,Dn.LETTER_SPACING,Dn.LINE_HEIGHT,Dn.MARGIN,Dn.PADDING,Dn.TEXT_ALIGN,Dn.TEXT_DECORATION,Dn.WIDTH,go.TEXT,Dn.COLOR,Pn.TEXT,Dn.FONT_FAMILY,Dn.FONT_SIZE,Dn.FONT_STYLE,Dn.FONT_WEIGHT,Dn.TEXT_ALIGN,Dn.TEXT_DECORATION,Dn.LINE_HEIGHT,Dn.MARGIN;var mo=r(679),bo=r.n(mo);class _o extends te{constructor(){super(...arguments),this.phoneInputBindingTimeout=null,this.setPhoneInputInstance=()=>{var t;this.phoneInputBindingTimeout&&(this.input&&this.input.offsetWidth>0?(this.phoneInputInstance=bo()(this.input,{autoPlaceholder:"off",countrySearch:!1,dropdownContainer:null,fixDropdownWidth:!1,formatAsYouType:!1,formatOnDisplay:!1,initialCountry:null!==(t=this.countryCode)&&void 0!==t?t:"US",preferredCountries:["us","ca"],showSelectedDialCode:!0,useFullscreenPopup:this.viewport===ln,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 t,e,n;const{name:i,dialCode:r}=null!==(e=null===(t=this.phoneInputInstance)||void 0===t?void 0:t.getSelectedCountryData())&&void 0!==e?e:{};null===(n=this.selectedCountryButton)||void 0===n||n.setAttribute("aria-label",`Selected country ${i} +${r}`)},this.handleCountryChange=()=>{var t;null===(t=this.selectedCountryButton)||void 0===t||t.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 t;return null===(t=this.phoneInputInstance)||void 0===t?void 0:t.getNumber()}startPhoneInputBindingTimeout(){this.phoneInputBindingTimeout=window.setTimeout((()=>{this.phoneInputBindingTimeout=null}),5e3)}updatePhoneInput(){requestAnimationFrame(this.setPhoneInputInstance)}getValidationError(){var t,e,n,i,r,o;if(null===(t=this.phoneInputInstance)||void 0===t?void 0:t.isValidNumber())return null;switch(null===(e=this.phoneInputInstance)||void 0===e?void 0:e.getValidationError()){case null===(i=null===(n=window.intlTelInputUtils)||void 0===n?void 0:n.validationError)||void 0===i?void 0:i.TOO_SHORT:return"Phone number is too short";case null===(o=null===(r=window.intlTelInputUtils)||void 0===r?void 0:r.validationError)||void 0===o?void 0:o.TOO_LONG:return"Phone number is too long";default:return"Invalid phone number"}}firstUpdated(t){super.firstUpdated(t),this.updatePhoneInput()}static closeDropdownOnScroll(){window.dispatchEvent(new Event("scroll",{cancelable:!0,bubbles:!0}))}copyInputBlockFinalStyleRules(){const t=this.renderRoot,{margin:e}=this.finalInputStyleRules;e&&(t.style.margin=e)}copyInputComputedStyle(){if(!this.input)return null;this.renderRoot.style.margin=getComputedStyle(this.input).margin}updated(t){super.updated(t),this.copyInputBlockFinalStyleRules()}connectedCallback(){var t,e;super.connectedCallback(),this.startPhoneInputBindingTimeout(),this.input=this.renderRoot.querySelector(`.${this.inputId}`),null===(t=this.input)||void 0===t||t.addEventListener("countrychange",this.handleCountryChange),this.copyInputComputedStyle(),null===(e=document.querySelector("form"))||void 0===e||e.addEventListener("scroll",_o.closeDropdownOnScroll)}disconnectedCallback(){var t,e,n;super.disconnectedCallback(),null===(t=this.input)||void 0===t||t.removeEventListener("countrychange",this.handleCountryChange),null===(e=this.phoneInputInstance)||void 0===e||e.destroy(),null===(n=document.querySelector("form"))||void 0===n||n.removeEventListener("scroll",_o.closeDropdownOnScroll),this.phoneInputBindingTimeout&&clearTimeout(this.phoneInputBindingTimeout)}}customElements.get("ps-phone-input-block-iti-wrapper")||customElements.define("ps-phone-input-block-iti-wrapper",_o);Object.assign(Object.assign({},dn),hn);const vo=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fn),wn),On),Tn),xn);vo.BLOCK,Dn.BACKGROUND_COLOR,Dn.BORDER_RADIUS,Dn.MARGIN,Dn.OPACITY,Dn.PADDING,Dn.POSITION,Dn.Z_INDEX,Dn.DISPLAY,Dn.LAYOUT_DIRECTION,vo.LABEL,Dn.COLOR,Pn.TEXT,Dn.FONT_FAMILY,Dn.FONT_SIZE,Dn.FONT_STYLE,Dn.FONT_WEIGHT,Dn.LETTER_SPACING,Dn.LINE_HEIGHT,Dn.MARGIN,Dn.TEXT_ALIGN,Dn.TEXT_DECORATION,Dn.DISPLAY,vo.INPUT,Dn.BACKGROUND_COLOR,Pn.INPUT_BG,Dn.BORDER_COLOR,Pn.BORDER,Dn.BORDER_RADIUS,Dn.BORDER_STYLE,Dn.BORDER_WIDTH,Dn.COLOR,Pn.TEXT,Dn.FLOATING_LABEL_FONT_SIZE,Dn.FLOATING_LABEL_TOP,Dn.FLOATING_LABEL_LEFT,Dn.FONT_FAMILY,Dn.FONT_SIZE,Dn.FONT_STYLE,Dn.FONT_WEIGHT,Dn.LETTER_SPACING,Dn.LINE_HEIGHT,Dn.MARGIN,Dn.PADDING,Dn.TEXT_ALIGN,Dn.TEXT_DECORATION,Dn.WIDTH,vo.SMALL,Dn.BACKGROUND_COLOR,Dn.COLOR,Pn.TEXT,Dn.FONT_FAMILY,Dn.FONT_SIZE,Dn.FONT_STYLE,Dn.FONT_WEIGHT,Dn.LETTER_SPACING,Dn.LINE_HEIGHT,Dn.MARGIN,Dn.PADDING,Dn.TEXT_ALIGN,Dn.ORDER,Dn.DISPLAY,vo.LINK,Dn.COLOR,Pn.TEXT,Dn.TEXT_DECORATION,Dn.FONT_WEIGHT,Dn.TEXT_TRANSFORM;Object.assign({},fn).BLOCK,Dn.BACKGROUND_COLOR,Pn.POPUP_BG,Dn.BORDER_RADIUS,Dn.LAYOUT_DIRECTION,Dn.LAYOUT_SPACING,Dn.MARGIN,Dn.MAX_WIDTH,Dn.MIN_HEIGHT,Dn.OPACITY,Dn.PADDING,Dn.DISPLAY,Dn.POSITION,Dn.WIDTH,Dn.MAX_WIDTH;const yo="important",wo=" !"+yo,Oo=(on(class extends sn{constructor(t){var e;if(super(t),1!==t.type||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,n)=>{const i=t[n];return null==i?e:e+`${n=n.includes("-")?n:n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`}),"")}update(t,[e]){const{style:n}=t.element;if(void 0===this.ht){this.ht=new Set;for(const t in e)this.ht.add(t);return this.render(e)}this.ht.forEach((t=>{null==e[t]&&(this.ht.delete(t),t.includes("-")?n.removeProperty(t):n[t]="")}));for(const t in e){const i=e[t];if(null!=i){this.ht.add(t);const e="string"==typeof i&&i.endsWith(wo);t.includes("-")||e?n.setProperty(t,e?i.slice(0,-11):i,e?yo:""):n[t]=i}}return Lt}}),Object.assign(Object.assign(Object.assign({},Sn),fn),gn));Oo.BLOCK,Dn.BORDER_RADIUS,Dn.BACKGROUND_COLOR,Pn.POPUP_BG,Dn.PADDING,Dn.BORDER_STYLE,Dn.BORDER_WIDTH,Dn.BORDER_COLOR,Pn.BORDER,Dn.ROOT_BACKGROUND_IMAGE_GRID_COLUMN_WIDTH,Dn.DISPLAY,Dn.OVERFLOW,Dn.POSITION,Dn.ROOT_LAYOUT,Dn.MAX_WIDTH,Dn.MIN_HEIGHT,Dn.WIDTH,Oo.MAIN_POPUP_CONTAINER,Dn.LAYOUT_DIRECTION,Dn.LAYOUT_SPACING,Dn.OPACITY,Dn.PADDING,Dn.DISPLAY,Dn.GRID_AREA,Dn.WIDTH,Oo.ROOT_BACKGROUND_IMAGE_DIV,Dn.HEIGHT,Dn.BACKGROUND_SIZE,Dn.PADDING,Dn.BACKGROUND_POSITION,Dn.BORDER_STYLE,Dn.BORDER_WIDTH,Dn.BORDER_COLOR,Pn.BORDER,Dn.BORDER_RADIUS,Dn.DISPLAY,Dn.GRID_AREA,Dn.WIDTH,Dn.POSITION,Dn.OVERFLOW,Dn.POSITION,Dn.OVERFLOW,Dn.BORDER_RADIUS,Dn.WIDTH,Dn.HEIGHT;const To={[Ln.SPIN_TO_WIN_SECTION_BORDER]:{mobile:{[Dn.BORDER_TOP_COLOR]:Pn.BORDER,[Dn.BORDER_TOP_STYLE]:"solid",[Dn.BORDER_TOP_WIDTH]:"2px",[Dn.INSET]:"50% auto auto 50%",[Dn.POSITION]:"absolute",[Dn.TRANSFORM_ORIGIN]:"0 0",[Dn.WIDTH]:"50%"}}};const Eo={[Ln.PATH]:{mobile:{[Dn.FILL]:Pn.STOPPER,[Dn.STROKE]:Pn.BORDER,[Dn.STROKE_WIDTH]:"2px"}},[Ln.SVG]:{mobile:{[Dn.DISPLAY]:"block",[Dn.POSITION]:"absolute",[Dn.TRANSFORM]:"translate(-50%, 0) rotate(180deg)"}}};const Io={[Ln.TEXT]:{mobile:{[Dn.FONT_FAMILY]:jn,[Dn.FONT_STYLE]:"normal",[Dn.FONT_WEIGHT]:"normal",[Dn.TEXT_DECORATION]:"none",[Dn.INSET]:"50% auto auto 50%",[Dn.MARGIN]:"unset",[Dn.POSITION]:"absolute",[Dn.TEXT_ALIGN]:"center",[Dn.TRANSFORM_ORIGIN]:"left center",[Dn.WIDTH]:"50%"}}};const So=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fn),In),kn),Cn),An),Rn),Nn);Object.assign(Object.assign(Object.assign({[So.BLOCK]:{mobile:{[Dn.ALIGN_SELF]:"center",[Dn.MARGIN]:"0px 0px 0px 0px",[Dn.SPIN_TO_WIN_DURATION]:"8000ms",[Dn.WIDTH]:"100%",[Dn.POSITION]:"relative"}},[So.SPIN_TO_WIN_CENTER]:{mobile:{[Dn.BACKGROUND_COLOR]:Pn.SPIN_TO_WIN_CENTER_BG,[Dn.BORDER_COLOR]:Pn.BORDER,[Dn.BORDER_STYLE]:"none",[Dn.BORDER_WIDTH]:"1px",[Dn.HEIGHT]:"20px",[Dn.WIDTH]:"20px",[Dn.BACKGROUND_POSITION]:"center",[Dn.BACKGROUND_REPEAT]:"no-repeat",[Dn.BACKGROUND_SIZE]:"contain",[Dn.BACKGROUND_OPACITY]:"1",[Dn.BORDER_RADIUS]:"50%",[Dn.INSET]:"50% auto auto 50%",[Dn.POSITION]:"absolute",[Dn.TRANSFORM]:"translate(-50%, -50%)",[Dn.OVERFLOW]:"hidden"}},[So.SPIN_TO_WIN_MAIN_WHEEL]:{mobile:{[Dn.BORDER_COLOR]:Pn.BORDER,[Dn.BORDER_STYLE]:"solid",[Dn.BORDER_WIDTH]:"2px",[Dn.BORDER_RADIUS]:"50%",[Dn.INSET]:"0px 0px 0px 0px",[Dn.POSITION]:"absolute"}}},To),Eo),Io),Object.assign({},cn);const xo=Object.assign(Object.assign(Object.assign(Object.assign({},fn),mn),bn),Rn);xo.BLOCK,Dn.POSITION,xo.BUTTON,Dn.BACKGROUND_COLOR,Pn.PRIMARY_BUTTON_BG,Dn.BORDER_COLOR,Pn.BORDER,Dn.BORDER_RADIUS,Dn.BORDER_STYLE,Dn.BORDER_WIDTH,Dn.COLOR,Pn.PRIMARY_BUTTON_TEXT,Dn.FONT_FAMILY,Dn.FONT_SIZE,Dn.FONT_STYLE,Dn.FONT_WEIGHT,Dn.PADDING,Dn.TEXT_DECORATION,Dn.WIDTH,xo.CLOSE_TEASER_BUTTON,Dn.ALIGN_ITEMS,Dn.BACKGROUND_COLOR,Pn.TEASER_CLOSE_BUTTON_BG,Dn.BORDER_COLOR,Dn.BORDER_RADIUS,Dn.BORDER_STYLE,Dn.BORDER_WIDTH,Dn.COLOR,Pn.TEXT,Dn.DISPLAY,Dn.HEIGHT,Dn.JUSTIFY_CONTENT,Dn.LAYOUT_SPACING,Dn.PADDING,Dn.POSITION,Dn.WIDTH,Dn.TEASER_CLOSE_BUTTON_POSITION,xo.SVG,Dn.HEIGHT,Dn.WIDTH;Object.assign({},fn).BLOCK,Dn.POSITION,Dn.TEASER_IFRAME_INSET,Dn.TEASER_ROTATION;Object.assign({},pn);const ko=Object.assign(Object.assign(Object.assign({},Nn),fn),Tn);ko.BLOCK,Dn.BACKGROUND_COLOR,Dn.BORDER_RADIUS,Dn.MARGIN,Dn.OPACITY,Dn.PADDING,Dn.POSITION,ko.TEXT,Dn.COLOR,Pn.TEXT,Dn.FONT_FAMILY,Dn.FONT_SIZE,Dn.FONT_STYLE,Dn.FONT_WEIGHT,Dn.LETTER_SPACING,Dn.LINE_HEIGHT,Dn.TEXT_ALIGN,Dn.TEXT_DECORATION,Dn.MARGIN,ko.LINK,Dn.COLOR;Object.assign(Object.assign({},dn),hn);const Co=Object.assign(Object.assign(Object.assign({},On),wn),fn);Co.BLOCK,Dn.BACKGROUND_COLOR,Dn.BORDER_RADIUS,Dn.MARGIN,Dn.OPACITY,Dn.PADDING,Dn.POSITION,Dn.Z_INDEX,Co.INPUT,Dn.BACKGROUND_COLOR,Pn.INPUT_BG,Dn.BORDER_COLOR,Pn.BORDER,Dn.BORDER_RADIUS,Dn.BORDER_STYLE,Dn.BORDER_WIDTH,Dn.COLOR,Pn.TEXT,Dn.FLOATING_LABEL_FONT_SIZE,Dn.FLOATING_LABEL_TOP,Dn.FLOATING_LABEL_LEFT,Dn.FONT_FAMILY,Dn.FONT_SIZE,Dn.FONT_STYLE,Dn.FONT_WEIGHT,Dn.LETTER_SPACING,Dn.LINE_HEIGHT,Dn.MARGIN,Dn.PADDING,Dn.TEXT_ALIGN,Dn.TEXT_DECORATION,Dn.WIDTH,Co.LABEL,Dn.COLOR,Pn.TEXT,Dn.FONT_FAMILY,Dn.FONT_SIZE,Dn.FONT_STYLE,Dn.FONT_WEIGHT,Dn.LETTER_SPACING,Dn.LINE_HEIGHT,Dn.MARGIN,Dn.TEXT_ALIGN,Dn.TEXT_DECORATION;const{I:Ao}=Xt,Ro={},No=(on(class extends sn{constructor(){super(...arguments),this.key=Dt}render(t,e){return this.key=t,e}update(t,[e,n]){return e!==this.key&&(((t,e=Ro)=>{t._$AH=e})(t),this.key=e),n}}),Object.assign(Object.assign({},fn),yn));No.BLOCK,Dn.ALIGN_SELF,Dn.MARGIN,Dn.OPACITY,Dn.PADDING,Dn.WIDTH,Dn.POSITION,No.IMAGE,Dn.BORDER_COLOR,Pn.BORDER,Dn.BORDER_RADIUS,Dn.BORDER_STYLE,Dn.BORDER_WIDTH,Dn.HEIGHT,Dn.MAX_WIDTH,Dn.DISPLAY,Dn.WIDTH;const Lo=Object.assign(Object.assign({},fn),En);function Do(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Po(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var e=t.height,n=t.width,i=t.positionObj,r=t.shouldStopScroll,o=void 0!==r&&r,s=t.iframeHandlerData;window.parent.postMessage(Po({FrameHeight:e,FrameWidth:n,FramePosition:i,shouldStopScroll:o},(null==s?void 0:s.psDataset)&&{psDataset:s.psDataset}),"*")}({height:"100%",width:"100%",positionObj:{top:0,left:0,bottom:"auto",right:"auto",rotation:"0deg"},shouldStopScroll:t.shouldStopScroll,iframeHandlerData:t.iframeHandlerData})}),Bo=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.parent.postMessage(Po({FrameDisplay:"none",FrameOpacity:0},(null===(t=e.iframeHandlerData)||void 0===t?void 0:t.psDataset)&&{psDataset:e.iframeHandlerData.psDataset}),"*")},Mo=function(t,e,n,i){window.parent.postMessage({SetCookie:{name:t,status:e,expirationDays:n,expirationHours:i}},"*")},Fo=function(){return Fo=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0&&r[r.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]=r+n?(r=s,[4,Wo(0)]):[3,3]):[3,4];case 2:a.sent(),a.label=3;case 3:return++o,[3,1];case 4:return[2,i]}}))}))}function Zo(t){t.then(void 0,(function(){}))}function Xo(t,e){t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]],e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]];var n=[0,0,0,0];return n[3]+=t[3]+e[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=t[2]+e[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=t[1]+e[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=t[0]+e[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function qo(t,e){t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]],e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]];var n=[0,0,0,0];return n[3]+=t[3]*e[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=t[2]*e[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=t[3]*e[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=t[1]*e[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=t[2]*e[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=t[3]*e[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=t[0]*e[3]+t[1]*e[2]+t[2]*e[1]+t[3]*e[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function Ko(t,e){return 32==(e%=64)?[t[1],t[0]]:e<32?[t[0]<>>32-e,t[1]<>>32-e]:(e-=32,[t[1]<>>32-e,t[0]<>>32-e])}function Jo(t,e){return 0==(e%=64)?t:e<32?[t[0]<>>32-e,t[1]<>>1]),t=Qo(t=qo(t,[4283543511,3981806797]),[0,t[0]>>>1]),Qo(t=qo(t,[3301882366,444984403]),[0,t[0]>>>1])}function es(t){return parseInt(t)}function ns(t){return parseFloat(t)}function is(t,e){return"number"==typeof t&&isNaN(t)?e:t}function rs(t){return t.reduce((function(t,e){return t+(e?1:0)}),0)}function os(t,e){if(void 0===e&&(e=1),Math.abs(e)>=1)return Math.round(t/e)*e;var n=1/e;return Math.round(t*n)/n}function ss(t){return t&&"object"==typeof t&&"message"in t?t:{message:t}}function as(){var t=window,e=navigator;return rs(["MSCSSMatrix"in t,"msSetImmediate"in t,"msIndexedDB"in t,"msMaxTouchPoints"in e,"msPointerEnabled"in e])>=4}function ls(){var t=window,e=navigator;return rs(["webkitPersistentStorage"in e,"webkitTemporaryStorage"in e,0===e.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in t,"BatteryManager"in t,"webkitMediaStream"in t,"webkitSpeechGrammar"in t])>=5}function cs(){var t=window,e=navigator;return rs(["ApplePayError"in t,"CSSPrimitiveValue"in t,"Counter"in t,0===e.vendor.indexOf("Apple"),"getStorageUpdates"in e,"WebKitMediaKeys"in t])>=4}function us(){var t=window;return rs(["safari"in t,!("DeviceMotionEvent"in t),!("ongestureend"in t),!("standalone"in navigator)])>=3}function ds(){var t=document;return(t.exitFullscreen||t.msExitFullscreen||t.mozCancelFullScreen||t.webkitExitFullscreen).call(t)}function ps(){var t=ls(),e=function(){var t,e,n=window;return rs(["buildID"in navigator,"MozAppearance"in(null!==(e=null===(t=document.documentElement)||void 0===t?void 0:t.style)&&void 0!==e?e:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}();if(!t&&!e)return!1;var n=window;return rs(["onorientationchange"in n,"orientation"in n,t&&!("SharedWorker"in n),e&&/android/i.test(navigator.appVersion)])>=2}function hs(t){var e=new Error(t);return e.name=t,e}function fs(t,e,n){var i,r,o;return void 0===n&&(n=50),$o(this,void 0,void 0,(function(){var s,a;return Go(this,(function(l){switch(l.label){case 0:s=document,l.label=1;case 1:return s.body?[3,3]:[4,Wo(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(t,n){var i=!1,r=function(){i=!0,t()};a.onload=r,a.onerror=function(t){i=!0,n(t)};var o=a.style;o.setProperty("display","block","important"),o.position="absolute",o.top="0",o.left="0",o.visibility="hidden",e&&"srcdoc"in a?a.srcdoc=e:a.src="about:blank",s.body.appendChild(a);var l=function(){var t,e;i||("complete"===(null===(e=null===(t=a.contentWindow)||void 0===t?void 0:t.document)||void 0===e?void 0:e.readyState)?r():setTimeout(l,10))};l()}))];case 5:l.sent(),l.label=6;case 6:return(null===(r=null===(i=a.contentWindow)||void 0===i?void 0:i.document)||void 0===r?void 0:r.body)?[3,8]:[4,Wo(n)];case 7:return l.sent(),[3,6];case 8:return[4,t(a,a.contentWindow)];case 9:return[2,l.sent()];case 10:return null===(o=a.parentNode)||void 0===o||o.removeChild(a),[7];case 11:return[2]}}))}))}function gs(t){for(var e=function(t){for(var e,n,i="Unexpected syntax '".concat(t,"'"),r=/^\s*([a-z-]*)(.*)$/i.exec(t),o=r[1]||void 0,s={},a=/([.:#][\w-]+|\[.+?\])/gi,l=function(t,e){s[t]=s[t]||[],s[t].push(e)};;){var c=a.exec(r[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 d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(u);if(!d)throw new Error(i);l(d[1],null!==(n=null!==(e=d[4])&&void 0!==e?e:d[5])&&void 0!==n?n:"");break;default:throw new Error(i)}}return[o,s]}(t),n=e[0],i=e[1],r=document.createElement(null!=n?n:"div"),o=0,s=Object.keys(i);o.6*n.length}))).sort(),[2,r]}var a}))}))},fontPreferences:function(){return void 0===t&&(t=4e3),fs((function(e,n){var i=n.document,r=i.body,o=r.style;o.width="".concat(t,"px"),o.webkitTextSizeAdjust=o.textSizeAdjust="none",ls()?r.style.zoom="".concat(1/n.devicePixelRatio):cs()&&(r.style.zoom="reset");var s=i.createElement("div");return s.textContent=Uo([],Array(t/20|0),!0).map((function(){return"word"})).join(" "),r.appendChild(s),function(t,e){for(var n={},i={},r=0,o=Object.keys(Ls);r');var t},audio:function(){var t=window,e=t.OfflineAudioContext||t.webkitOfflineAudioContext;if(!e)return-2;if(cs()&&!us()&&!function(){var t=window;return rs(["DOMRectList"in t,"RTCPeerConnectionIceEvent"in t,"SVGGeometryElement"in t,"ontransitioncancel"in t])>=3}())return-1;var n=new e(1,5e3,44100),i=n.createOscillator();i.type="triangle",i.frequency.value=1e4;var r=n.createDynamicsCompressor();r.threshold.value=-50,r.knee.value=40,r.ratio.value=12,r.attack.value=0,r.release.value=.25,i.connect(r),r.connect(n.destination),i.start(0);var o=function(t){var e=function(){};return[new Promise((function(n,i){var r=!1,o=0,s=0;t.oncomplete=function(t){return n(t.renderedBuffer)};var a=function(){setTimeout((function(){return i(hs("timeout"))}),Math.min(500,s+5e3-Date.now()))},l=function(){try{var e=t.startRendering();switch(zo(e)&&Zo(e),t.state){case"running":s=Date.now(),r&&a();break;case"suspended":document.hidden||o++,r&&o>=3?i(hs("suspended")):setTimeout(l,500)}}catch(t){i(t)}};l(),e=function(){r||(r=!0,s>0&&a())}})),e]}(n),s=o[0],a=o[1],l=s.then((function(t){return function(t){for(var e=0,n=0;n=3}()||e.push(t.languages);else if("string"==typeof t.languages){var i=t.languages;i&&e.push(i.split(","))}return e},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return is(ns(navigator.deviceMemory),void 0)},screenResolution:function(){var t=screen,e=function(t){return is(es(t),null)},n=[e(t.width),e(t.height)];return n.sort().reverse(),n},hardwareConcurrency:function(){return is(es(navigator.hardwareConcurrency),void 0)},timezone:function(){var t,e=null===(t=window.Intl)||void 0===t?void 0:t.DateTimeFormat;if(e){var n=(new e).resolvedOptions().timeZone;if(n)return n}var i,r=(i=(new Date).getFullYear(),-Math.max(ns(new Date(i,0,1).getTimezoneOffset()),ns(new Date(i,6,1).getTimezoneOffset())));return"UTC".concat(r>=0?"+":"").concat(Math.abs(r))},sessionStorage:function(){try{return!!window.sessionStorage}catch(t){return!0}},localStorage:function(){try{return!!window.localStorage}catch(t){return!0}},indexedDB:function(){if(!as()&&!function(){var t=window,e=navigator;return rs(["msWriteProfilerMark"in t,"MSStream"in t,"msLaunchUri"in e,"msSaveBlob"in e])>=3&&!as()}())try{return!!window.indexedDB}catch(t){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var t=navigator.platform;return"MacIntel"===t&&cs()&&!us()?function(){if("iPad"===navigator.platform)return!0;var t=screen,e=t.width/t.height;return rs(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,e>.65&&e<1.53])>=2}()?"iPad":"iPhone":t},plugins:function(){var t=navigator.plugins;if(t){for(var e=[],n=0;n>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}(function(t){for(var e="",n=0,i=Object.keys(t).sort();n=.001))try{var t=new XMLHttpRequest;t.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(Ho,"/npm-monitoring"),!0),t.send()}catch(t){console.error(t)}}(),[4,Bs(n)];case 1:return e.sent(),t=function(t,e,n){var i=Object.keys(t).filter((function(t){return!function(t,e){for(var n=0,i=t.length;n1&&void 0!==arguments[1]?arguments[1]:{};s.postMessage({type:"triggerPopup",id:t,options:Qs(Qs({},ta),{},{activePopupBehavior:(n=i.activePopupBehavior,n&&(Object.values(qs).includes(n)||(console.error("Invalid activePopupBehavior ".concat(n,". Valid values are ").concat(Object.values(qs).join(", "),". Default behavior will be used instead.")),0))?i.activePopupBehavior:ta.activePopupBehavior),respectPopupStatus:(e=i.respectPopupStatus,"boolean"==typeof e?i.respectPopupStatus:ta.respectPopupStatus)})})},find:(o=e(i().mark((function t(){var e,n=arguments;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},t.abrupt("return",new Promise((function(t){var n,i=s.postMessage({type:"findPopup",options:e}),r=function e(i){"foundPopup"===i.data.type&&(clearTimeout(n),window.removeEventListener("message",e),t(i.data.popupId))};window.addEventListener("message",r),n=setTimeout((function(){s.dequeueMessage(i),window.removeEventListener("message",r),console.error("Postscript Popup find request timed out."),t(void 0)}),1e3)})));case 2:case"end":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)}),meta:{setCustomerData:function(t){var e,n,i,r={orderCount:null!==(e=t.orderCount)&&void 0!==e?e:null,phone:null!==(n=t.phone)&&void 0!==n?n:null,email:null!==(i=t.email)&&void 0!==i?i:null};sessionStorage.setItem(ve,JSON.stringify(r))}}},function(t,n){var r,o,s;t.acquisition={optIn:(s=e(i().mark((function t(e){var r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Gs({phoneNumber:e,shopId:n,optInMethod:"ONE_TIME_PASSCODE",source:"3rd Party Onsite Opt-in"});case 2:if((r=t.sent).success){t.next=5;break}throw new Error("Opt-in operation failed");case 5:if(null==r||!r.subscriberId){t.next=7;break}return t.abrupt("return",{subscriberStatus:"subscribed",subscriberId:r.subscriberId});case 7:return t.abrupt("return",{subscriberStatus:"pending",subscriberId:r.token});case 8:case"end":return t.stop()}}),t)}))),function(t){return s.apply(this,arguments)}),verify:(o=e(i().mark((function t(e){var r,o,s,a;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=e.code,s=e.phoneNumber,t.next=3,Us(n,s,o);case 3:if(null!=(a=t.sent)&&null!==(r=a.data)&&void 0!==r&&r.success){t.next=6;break}throw new Error("Verification operation failed");case 6:return Xe(ge,a.data.subscriber_id),t.abrupt("return",{success:a.data.success,subscriberId:a.data.subscriber_id});case 8:case"end":return t.stop()}}),t)}))),function(t){return o.apply(this,arguments)}),resendOtp:(r=e(i().mark((function t(e){var r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Hs(n,e);case 2:if(null!=(r=t.sent)&&r.success){t.next=5;break}throw new Error("Resend operation failed");case 5:null!=r&&r.subscriber_id&&Xe(ge,null==r?void 0:r.subscriber_id);case 6:case"end":return t.stop()}}),t)}))),function(t){return r.apply(this,arguments)})}}(window.Postscript,t),window.postscript=window.Postscript,function t(){if(!document.readyState||/loaded|complete/.test(document.readyState)){if(!d)return d=!0,void setTimeout(t,50);l=u(),a=function(){try{var t=new URL(window.location.href).searchParams.get("myshopify_domain");return!t&&window.Shopify&&window.Shopify.shop&&(t=window.Shopify.shop),!t&&window.Shopify&&window.Shopify.Checkout&&window.Shopify.Checkout.apiHost&&(t=window.Shopify.Checkout.apiHost),t}catch(t){}}(),l||(e=en("ps_token"))&&Xe(Oe,e,3650),function(){try{var t,e;window.Postscript&&null!==(t=window.Shopify)&&void 0!==t&&null!==(e=t.checkout)&&void 0!==e&&e.order_id&&window.Postscript.event(h,{order_id:window.Shopify.checkout.order_id,page_type:"shopify_purchase",source:"Shopify Checkout"})}catch(t){}}(),function(){try{document.querySelectorAll('#ps__subscribe-form form[action$="/subscribe/form"]').forEach((function(t){t.hasAttribute("target")||t.setAttribute("target","dummyframe"),t.hasAttribute("onsubmit")||t.setAttribute("onsubmit","document.getElementById('ps__sent-message').style.display='block';document.getElementById('ps__subscribe-form').style.display='none';");var e=t.querySelector("#ps__phone-subscribe");e&&!e.hasAttribute("autofocus")&&e.setAttribute("autofocus","")}));var t=document.getElementById("ps__dummyframe");if(t){var e=t.closest("p");null!=e&&e.parentNode&&(e.parentNode.insertBefore(t,e),e.parentNode.removeChild(e)),t.setAttribute("name","dummyframe"),t.setAttribute("width","0"),t.setAttribute("height","0"),t.setAttribute("border","0")}}catch(t){}}(),window.dispatchEvent(new Event(ea)),window.dispatchEvent(new CustomEvent("postscriptReady",{detail:{},bubbles:!0,cancelable:!0})),Qe()}else setTimeout(t,10);var e}()},sa="a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]",aa=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ps-desktop-widget__container",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bo,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"fade-in",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"fade-out",r=document.getElementById(t);return r&&(r.classList.remove(n),r.classList.add(i)),setTimeout((function(){r&&r.classList&&(r.classList.remove(i),r.classList.add(n)),e()}),500)},la=function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.target.click())},ca=function(t,e){return function(n){if("Escape"===n.key&&t(),"Tab"===n.key){var i=e?document.getElementById(e).querySelectorAll(sa):document.querySelectorAll(sa),r=i[0],o=i[i.length-1];n.shiftKey&&document.activeElement===r?(o.focus(),n.preventDefault()):n.shiftKey||document.activeElement!==o||(r.focus(),n.preventDefault())}}},ua=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:de;document.querySelectorAll("body > *:not(#".concat(t,")")).forEach((function(t){t.getAttribute("aria-hidden")&&t.setAttribute("data-keep-hidden",t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true")}))},da=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:de;document.querySelectorAll("body > *:not(#".concat(t,")")).forEach((function(t){t.getAttribute("data-keep-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-keep-hidden")),t.removeAttribute("data-keep-hidden")):t.removeAttribute("aria-hidden")}))},pa=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Se,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ie;null===(t=document.getElementById(e))||void 0===t||t.removeAttribute("aria-hidden"),ua(n)},ha=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Se,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ie;null===(t=document.getElementById(e))||void 0===t||t.setAttribute("aria-hidden","true"),da(n)},fa="ps_customer_data_ctx",ga={orderCount:null,phone:null,email:null},ma=function(){try{var t=sessionStorage.getItem(ve);if(t)return JSON.parse(t)}catch(t){}return ga},ba=function(t,e){return e.get("ps_widget_config")?[]:Object.keys(t).reduce((function(e,n){return"".concat(e).concat(n,":").concat(t[n],";")}),"")},_a=function(t,e,n){var i,r,o,s=document.createElement("div");s.id="ps__widget_container",s.style="position: fixed; left: 0; bottom: 0; width: 100vw; z-index: 2147483647;";var a=new URLSearchParams(window.location.search),l=qe(he),c=Ke(be),u=Ke(_e),d=Ke("ps_ab_test_"),p=ba(u,a),h=ba(d,a),f=ba(c,a),g=ue.getState().disclaimer,m=document.createElement("iframe"),b=new URLSearchParams;b.set("shopId",t),b.set("shopShop",n),b.set("sessionId",l),b.set("status",p),b.set("splitTests",h),b.set("flags",e),b.set("disclaimer",JSON.stringify(g)),b.set("subscriberId",null!==(i=null===(r=window.postscript)||void 0===r?void 0:r.getSubscriberId())&&void 0!==i?i:""),b.set("uniqueImpressionCookies",f),b.set("customerOrderCount",ma().orderCount),a.get(Me)&&b.set(Me,a.get(Me));var _=new URL(window.location.href);_.searchParams.delete("ps_widget_config"),b.set("origin",_.toString()),a.get("ps_widget_config")&&b.set("config",a.get("ps_widget_config")),function(t,e){var n=qe(ge);if(n&&!qe(me)){var i="".concat(Ye,"/v2/opt_in/fingerprint");$s().then((function(t){var r={shop_id:e,subscriber_id:n,fingerprint:[{version:2,data:t}]};return fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)})})).then((function(){Xe(me,"true",0,4)})).catch((function(){return null}))}}(0,t);var y=tn()?"desktop.html?".concat(b.toString()):"mobile.html?".concat(b.toString());m.setAttribute("src","".concat("https://sdk.postscript.io","/").concat(y)),m.setAttribute("data-cy",je),m.setAttribute("title","Marketing Popup"),m.style="\n border: none;\n position: fixed;\n visibility: visible;\n z-index: 2147483647;\n max-height: 100vh;\n max-width: 100vw;\n transition: none 0s ease 0s;\n background: none transparent;\n opacity: 0;\n ",m.style.height=0,m.style.width=0,m.style.top=0,m.style.left=0,m.style.bottom="auto",m.style.right="auto",m.style.display="none",m.id=je,document.getElementById(je)||s.appendChild(m);var w=document.getElementById("ps__widget_container");null!=document.body&&w&&w.remove(),document.body.appendChild(s);var O,T,E,I,S,x,k,C,A,R,N=document.body.style.overflow,L=document.documentElement.style.overflow,D=function(t,e){document.body.style.overflow=t,["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].some((function(t){return navigator.userAgent.includes(t)}))&&(document.documentElement.style.overflow=e)};window.addEventListener("message",(function(t){var e,n,i,r,a,l,c,u,d;(function(t){var e=t.data,n=e.FrameHeight,i=e.FrameWidth,r=e.FrameDisplay,o=e.shouldStopScroll,s=void 0!==o&&o;if("none"===r)return D(N,L);if(n||i){if("100%"===n&&"100%"===i&&s)return D("hidden","hidden");D(N,L)}})(t),t.data.hasOwnProperty("FrameHeight")&&(document.getElementById(je).style.height=t.data.FrameHeight),t.data.hasOwnProperty("FrameWidth")&&(document.getElementById(je).style.width=t.data.FrameWidth),t.data.hasOwnProperty("FrameDisplay")&&(document.getElementById(je).style.display=t.data.FrameDisplay),t.data.hasOwnProperty("FrameOpacity")&&(document.getElementById(je).style.opacity=t.data.FrameOpacity),t.data.hasOwnProperty("FramePosition")&&(document.getElementById(je).style.top=t.data.FramePosition.top,document.getElementById(je).style.left=t.data.FramePosition.left,document.getElementById(je).style.bottom=t.data.FramePosition.bottom,document.getElementById(je).style.right=t.data.FramePosition.right,document.getElementById(je).style.rotate=t.data.FramePosition.rotation||"0deg"),"GetFocusedElement"===t.data&&(o=document.activeElement,document.getElementById(je).contentWindow.postMessage("FocusedElementStored","*")),"RestoreFocusedElement"===t.data&&(o&&"BODY"!==o.tagName?o.focus():(document.querySelector(sa).focus({preventScroll:!0}),setTimeout((function(){return document.activeElement.blur()}),0))),"HideElementsBehindPopupFromScreenReader"===t.data&&ua(),"UnhideElementsBehindPopupFromScreenReader"===t.data&&da(),"Exit"===t.data.trigger&&document.body.addEventListener("mouseleave",(function(){window.postscript.popups.open(t.data.id)}),{once:!0}),t.data&&"CASHBACK_CODE"===t.data.type&&(null===(e=window)||void 0===e||null===(n=e.Fondue)||void 0===n||null===(i=n.Promotion)||void 0===i||i.init({code:t.data.code,disableToast:!0})),t.data&&"POPUP_IMPRESSION"===t.data.type&&(r=t.data,window.dispatchEvent(new CustomEvent(Xs,{detail:{type:"impression",popupId:r.popupId,popupName:r.popupName,isReopen:r.isReopen},bubbles:!0,cancelable:!0}))),t.data&&"POPUP_FORM_SUBMIT"===t.data.type&&(function(t){window.dispatchEvent(new CustomEvent(Xs,{detail:{type:"formSubmit",popupId:t.popupId,popupName:t.popupName,values:t.values},bubbles:!0,cancelable:!0}))}(t.data),function(t){var e,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t){var r=i.email,o=i.phone,s=r||o;null!==(e=window.Shopify)&&void 0!==e&&null!==(n=e.analytics)&&void 0!==n&&n.visitor&&s&&window.Shopify.analytics.visitor({email:r,phone:o},{appId:t})}else console.error("SHOPIFY_APP_ID is not set")}("2328352",null===(a=t.data)||void 0===a?void 0:a.values)),t.data&&"POPUP_CLOSE"===t.data.type&&function(t){window.dispatchEvent(new CustomEvent(Xs,{detail:{type:"close",popupId:t.popupId,popupName:t.popupName,hard:t.hard},bubbles:!0,cancelable:!0}))}(t.data),t.data&&"SUBSCRIBER_CREATED"===t.data.type&&function(t){window.dispatchEvent(new CustomEvent(Xs,{detail:{type:"subscriberCreated",popupId:t.popupId,popupName:t.popupName,subscriberId:t.subscriberId,discountCode:t.discountCode,cashbackCode:t.cashbackCode,autoApplyOfferEnabled:t.autoApplyOfferEnabled},bubbles:!0,cancelable:!0}))}(t.data),c=(l={dataset:t.data.psDataset,target:s}).dataset,u=l.target,d=Object.entries(null!=c?c:{}),u&&d.length&&d.forEach((function(t){var e=v(t,2),n=e[0],i=e[1],r="ps".concat(n.charAt(0).toUpperCase()).concat(n.slice(1));null===i?delete u.dataset[r]:u.dataset[r]=i}))})),k=!1,C=new Ks,A=function(t,e){null==t||t.postMessage({type:"PS_SDK_LIVE_PREVIEW_ACKNOWLEDGE"},e)},R=function(t){!function(t){C.postMessage({type:"previewPopup",popup:t.data.popup,screenSize:t.data.screenSize})}(t),jo(),A(t.source,t.origin),document.title="Popup Preview - ".concat(t.data.popup.name)},window.addEventListener("message",(function(t){t.data.type===Zs&&(k=!0,S&&(R(S),S=void 0))})),window.addEventListener("message",(function(t){"PS_SDK_LIVE_PREVIEW_REQUEST"===t.data.type&&(k?R(t):S=t)})),window.addEventListener("message",(function(t){"PS_SDK_LIVE_PREVIEW_RENDERED"===t.data.type&&(document.title="Popup Preview - ".concat(t.data.popupName),x&&(A(x.source,x.origin),x=void 0))})),T=(O=ma()).phone,E=O.email,(I=T&&E?"both":T?"phone":E?"email":void 0)&&!sessionStorage.getItem(fa)&&fetch("".concat(Ye,"/v2/public/block_popups/customer_info?identifier=").concat(I),{method:"POST",headers:{"Content-Type":"application/json"},keepalive:!0}).finally((function(){sessionStorage.setItem(fa,"true")})),document.addEventListener("fondue:promotion.applied",(function(){!function(t){var e;null==t||null===(e=t.contentWindow)||void 0===e||e.postMessage("CASHBACK_CODE_APPLIED","*")}(m)}),{once:!0})},va=["https://static.postscript.io","https://static-dev.postscript.io","https://sdk.postscript.io","https://sdk-dev.postscript.io","http://sdk-local.postscript.io:8080","http://localhost:8080","http://local.postscript.io:8080"],ya=function(t,n,r,o){try{if(!tn()&&r)return;var s=qe(he);s||(s=function(){var t=nn();return Mo(he,t,3650),t}()),Xe(he,s,1),window.addEventListener("message",function(){var t=e(i().mark((function t(e){var n,r,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!va.includes(e.origin)){t.next=14;break}if(!e.data.hasOwnProperty("SetCookie")){t.next=13;break}if(!(n=e.data.SetCookie.name).startsWith(be)){t.next=10;break}return t.next=6,zs(window.Shopify);case 6:t.sent&&Xe(n,e.data.SetCookie.status,e.data.SetCookie.expirationDays,e.data.SetCookie.expirationHours),t.next=11;break;case 10:Xe(n,e.data.SetCookie.status,e.data.SetCookie.expirationDays,e.data.SetCookie.expirationHours);case 11:t.next=14;break;case 13:e.data.hasOwnProperty("CollectedEmailEvent")&&Array.from(document.getElementsByTagName("script")).some((function(t){return t.src.includes("https://static.klaviyo.com")&&"undefined"!==window._learnq}))?(r=e.data.CollectedEmailEvent.email,window._learnq.push(["identify",{$email:r}])):e.data.hasOwnProperty("NavigateToUri")&&(o=e.data.NavigateToUri.href,window.location.href=o);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());var a=new URL(window.location.href).searchParams.get("s-id"),l=ue.getState().flags,c=null==l?void 0:l.includes("popup_subscriber_targeting");a||(a=qe(ge)),a&&!c||_a(t,n,o)}catch(t){}},wa="Klaviyo Form Validation",Oa=["submit","stepSubmit"],Ta=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wa,e=!1;window.addEventListener("klaviyoForms",(function(n){if(window.postscript&&Oa.includes(n.detail.type)&&n.detail.metaData&&n.detail.metaData.$phone_number&&!e){var i={accepts_sms:!0,source:t,phone_number:n.detail.metaData.$phone_number,email:n.detail.metaData.$email,consent_method:n.detail.metaData.$consent_method,consent_form_id:n.detail.metaData.$consent_form_id||n.detail.formId,consent_form_version:n.detail.metaData.$consent_form_version||n.detail.formVersionId,klaviyo_source:n.detail.metaData.$source,sms_consent:n.detail.metaData.$sms_consent};window.postscript.event("Klaviyo Form Submission",i),e=!0}}))},Ea=function(){var t=e(i().mark((function t(e){var n,r,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch("".concat(Ye,"/public/klaviyo_form_status/").concat(e));case 2:return n=t.sent,t.next=5,n.json();case 5:return r=t.sent,o=r.uses_forms,t.abrupt("return",o);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ia=function(){var t=e(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Ea(e);case 3:if(t.sent){t.next=6;break}return t.abrupt("return");case 6:Ta(wa),t.next=11;break;case 9:t.prev=9,t.t0=t.catch(0);case 11:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(e){return t.apply(this,arguments)}}(),Sa=Ia,xa=function(t,e){try{var n=e.replace(/[\\[]/,"\\[").replace(/[\]]/,"\\]"),i=v(new RegExp("[\\?&]".concat(n,"=([^&#]*)")).exec("".concat(t)),2)[1];return null===i||"null"===i||"undefined"===i?"":decodeURIComponent(i.replace(/\+/g," "))}catch(t){return null}};function ka(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Ca(t){for(var e=1;e=1?e?e(n[0]):n[0].parentNode:null},Ga=function(t){var e=t.textContent.trim().toLowerCase();return["sold out","out of stock","unavailable"].includes(e)?t.parentNode:null},Ua=function(t,e){return{bannerDesktopColor:t.bannerDesktopColor||e.buttonBackgroundColor,bannerFontSize:t.bannerFontSize?"".concat(t.bannerFontSize,"px"):"inherit",bannerFontWeight:t.fontWeight||"bold",bannerMobileColor:t.bannerMobileColor||e.buttonBackgroundColor,bannerTextColor:t.bannerTextColor||e.buttonTextColor,callToActionBannerText:t.callToActionBannerText||"Text me if back in stock",callToActionLinkText:t.callToActionLinkText||"Notify me when this item is back in stock!",linkColor:t.linkColor||"inherit",linkDecoration:null==t.linkDecoration||t.linkDecoration?"underline":"inherit",linkDecorationColor:t.linkDecorationColor||"inherit",linkDecorationStyle:t.linkDecorationStyle||"inherit",linkFontSize:t.linkFontSize?"".concat(t.linkFontSize,"px"):"inherit",linkFontWeight:t.linkFontWeight||"inherit",linkHoverColor:t.linkHoverColor||"inherit",forceBanner:t.forceBanner||!1}};function Ha(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Wa(t){for(var e=1;e1){var o=bl(t,e);r=t.variants.find((function(t){return t.id.toString()===o}))}var s=(null!==(n=r.name)&&void 0!==n?n:"").slice(0,r.public_title?-r.public_title.length:void 0),a=r.public_title?s.split("-"):[s],l=(a.length>1?a.slice(0,-1):a).join("-").trim(),c=null!==(i=r.public_title)&&void 0!==i?i:"Default Title";return{category:t.type,name:r.name,product_title:l,variant_title:c,price_in_cents:Number.isNaN(+r.price)?null:+r.price,resource_id:t.id||t.productId,resource_type:"product",sku:r.sku,variant_id:r.id,vendor:t.vendor}},yl=function(t){return{shop_id:t,url:window.location.href,search_params:_l(window.location.search),page_type:"product",referrer:document.referrer,resource:vl(ml(),window.location.search)}},wl=function(){var t=e(i().mark((function t(e){var n,r,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=ml(),r=vl(n,window.location.search).variant_id,t.next=4,Ra(e,r);case 4:return o=t.sent,t.abrupt("return",!(null==o||!o.stock));case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ol=function(){var t=e(i().mark((function t(){var e,n,r,o,s,a,l,c=arguments;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=c.length>0&&void 0!==c[0]&&c[0],t.next=3,zs(window.Shopify);case 3:if(o=t.sent,s=!(null===(e=ml())||void 0===e||!e.id)||!(null===(n=ml())||void 0===n||!n.productId),a=r&&(i=Vs(),Object.values(i).some((function(t){return!!t}))),l=!!window.Postscript.getSubscriberId()||!!qe(Oe)||a,s&&o&&l){t.next=9;break}return t.abrupt("return",!1);case 9:return t.abrupt("return",!0);case 10:case"end":return t.stop()}var i}),t)})));return function(){return t.apply(this,arguments)}}(),Tl=function(t){var e=t.text,n=t.onOpen,i=t.onExit;return Nt(za||(za=z(['\n \n \n \n \n \n \n \n \n \n \n'])),Le,n,la,e,i,la)},El=function(t){var e=t.onExit,n=t.onSubmit,i=t.subscriberId,r=t.showSuccess,o=t.headline,s=t.logoUrl,a=t.buttonText;return Ma(Ee),Nt(Qa||(Qa=z(['\n \n \n \n \n
    \n '," ","\n ","\n
    \n ","\n ","\n ","\n
    \n
    \n \n \n \n "])),ca(e,Ie),e,function(t){var e=t.onClick;return Nt(Ka||(Ka=z(['\n \n \n \n \n \n'])),e,la)}({onClick:e}),function(t){var e=t.logoUrl;return e?Nt(Xa||(Xa=z(['\n
    \n \n
    \n '])),e):null}({logoUrl:s}),r?Nt(Ya||(Ya=z(['\n
    \n

    \n Check YOUR 📱 AND\n

    \n

    \n REPLY "Y"\n

    \n

    \n TO FINISH SIGNING UP\n

    \n
    \n']))):function(t){var e=t.screen,n=void 0===e?"phone":e,i=t.preHeadline,r=t.headline,o=t.postHeadline,s=t.emailPreHeadline,a=t.emailPostHeadline,l=t.emailHeadline;return Nt(Za||(Za=z(['\n
    \n

    \n ','\n

    \n

    \n ','\n

    \n

    \n ',"","\n

    \n
    \n"])),"phone"===n?i:s,"phone"===n?r:l,"phone"===n?o:a,"phone"===n&&(o||a)?"*":"")}({headline:o,screen:"phone"}),n,function(t){var e=t.isVisible,n=void 0===e||e,i=t.inputId,r=void 0===i?"ps-desktop-widget__phone-input":i;return Nt(Ja||(Ja=z(['\n \n \n \n'])),n?"":"display: none;",r)}({isVisible:!r&&!i,inputId:"ps-bis-widget-modal__phone-input"}),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.terms,n=void 0===e?Be(window.parentHostname):e,i=t.isVisible,r=void 0===i||i;return Nt(qa||(qa=z(['\n
    \n
    ',"
    \n
    \n"])),r?"":"display: none;",n)}({isVisible:!r&&!i}),function(t){var e=t.text,n=t.isVisible,i=void 0===n||n;return Nt(Va||(Va=z(['\n \n ',"\n \n"])),e,i?"visible":"hidden",e)}({text:a,isVisible:!r}))},Il=function(t){var e=t.id,n=t.onClick;return Nt(tl||(tl=z(['\n \n ×\n \n'])),e,n,la)},Sl=function(t){var e=t.subscribeText,n=t.handleExit,i=t.subscriberId,r=t.closeText;return Nt(il||(il=z(['\n
    \n"])),e,(function(t){t.preventDefault(),n()}),i?"ps-subscribed":"",r)},xl=function(t){var e=t.handleExit,n=t.closeText,i=t.onSubmitOptIn,r=t.logoUrl,o=t.preHeadline,s=t.postHeadline,a=t.headline,l=t.subscribeText,c=t.showSuccess,u=t.terms,d=void 0===u?Be(window.parentHostname):u,p=t.subscriberId;return c?function(t){var e=t.handleExit,n=t.logoUrl,i=t.terms,r=void 0===i?Be(window.parentHostname):i;return Nt(el||(el=z(['\n \n
    \n ','\n
    \n
    \n ','\n
    \n
    \n
    \n

    Check YOUR 📱 AND

    \n

    \n REPLY "Y"\n

    \n

    TO FINISH SIGNING UP

    \n
    \n
    \n \n
    \n
    \n
    \n \n Thanks!\n
    \n \n \n \n'])),Il({id:"ps-mobile-widget-overlay__close-button",onClick:e}),n?Nt(nl||(nl=z(['\n \n '])),n):null,r,(function(){return e(!0,!0)}),la)}({handleExit:e,logoUrl:r}):Nt(rl||(rl=z(['\n \n
    \n ','\n
    \n
    \n ','\n
    \n
    \n
    \n

    \n ','\n

    \n

    \n ','\n

    \n

    \n ',"",'\n

    \n
    \n
    \n \n
    ',"
    \n \n \n \n \n \n ',"\n \n \n "])),Il({id:"ps-mobile-widget-overlay__close-button",onClick:e}),r?Nt(ol||(ol=z(['\n \n '])),r):null,o,a,s,s&&"*",p?"ps-hide-visibility":"",d,i,p?"ps-hide-visibility":"",Sl({closeText:n,subscribeText:l,subscriberId:p,handleExit:e}))},kl=function(t){var e=t.onSubmitOptIn,n=t.handleExit,i=t.headline,r=t.subHeadline,o=t.showSuccess,s=t.isLastCollectionScreen,a=t.terms,l=void 0===a?Be(window.parentHostname):a,c=t.logoUrl,u=t.subscriberId,d=t.subscribeText,p=t.closeText;return o?function(t){var e=t.handleExit,n=t.terms,i=void 0===n?Be(window.parentHostname):n,r=t.logoUrl;return Nt(al||(al=z(['\n \n ','\n
    \n ','\n
    \n
    \n
    \n

    \n Check YOUR 📱 AND\n

    \n

    \n REPLY "Y"\n

    \n

    \n TO FINISH SIGNING UP\n

    \n
    \n
    \n \n
    \n '])),r):null,i,(function(){return e(!0,!0)}),la)}({logoUrl:c,handleExit:n}):Nt(ul||(ul=z(['\n \n ','\n
    \n ','\n
    \n
    \n
    \n

    \n ','\n

    \n

    \n ',"\n

    \n
    \n
    \n ","\n \n ',"\n \n \n "])),Il({id:"ps-mobile-widget-partial__close-button",onClick:n}),c?Nt(dl||(dl=z([''])),c):null,i,r,u?null:Nt(pl||(pl=z(['
    ',"
    "])),l),e,u?"ps-subscribed":"",u?Sl({closeText:p,subscribeText:d,subscriberId:u,handleExit:n}):Nt(hl||(hl=z(['\n \n \n \n \n ',"\n \n "])),u?"hidden":"visible",Nt(s?sl||(sl=z(['\n