@everymatrix/cashier-session-expiration-modal 1.76.4 → 1.76.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4936,7 +4936,7 @@ function Ra(e, t, n) {
4936
4936
  }
4937
4937
  }
4938
4938
  function Da(e) {
4939
- Xi(e, "svelte-iiiimw", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes loading-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.CashierSessionExpirationModalWindow{display:flex;position:absolute;align-items:center;justify-content:center;width:100%;height:100%;z-index:15;top:0;left:0;background-color:var(--emw--color-black-transparency-20, rgba(0, 0, 0, 0.2));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);width:400px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;height:var(--emw--header-height, 40px);background-color:var(--emw--color-gray-10, rgba(17, 17, 17, 0.0666666667));width:100%;border-radius:var(--emw--border-radius-medium, 4px) var(--emw--border-radius-medium, 4px) 0 0}.CashierSessionExpirationModalHeaderTitle{display:flex;text-align:center;color:var(--emw--color-gray-10, #111);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis;line-height:calc(var(--emw--font-size-medium, 16px) + 2px)}.CashierSessionExpirationModalContainer{padding:var(--emw--spacing-large, 20px)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-white, #fff);background:var(--emw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.CashierSessionExpirationModalCloseBtn svg{width:32px;height:32px}.CashierSessionExpirationModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}.CashierSessionExpiration{width:100%;display:flex;flex-direction:column;align-items:center;gap:var(--emw--spacing-large, 20px)}.CashierSessionExpirationTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierSessionExpirationText{color:var(--emw--color-gray-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierSessionExpirationButton{display:flex;width:100%;height:36px;flex-direction:column;justify-content:center;align-items:center;flex-shrink:0;color:var(--emw--color-white, #FFF);cursor:pointer;text-align:center;font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);line-height:36px;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #7EC51E);border:none}.CashierSessionExpirationButton:hover{background:var(--emw--color-main-button-hover, #71B11B)}.CashierSessionExpirationButton:active{background:var(--emw--color-main-button-active, #5C950F)}.CashierSessionExpirationButton:disabled{background:var(--emw--color-main-button-disabled, #5C950F)}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-medium, 16px);font-family:inherit}.CashierSessionExpirationButtonSpinner{animation:loading-spinner 1s linear infinite}.ImagePlaceholder{height:250px;width:100%;background:#E6E6E6}@container session-expiration-modal-window (max-width:750px){.CashierSessionExpirationModalWindow .CashierSessionExpirationModalWrapper{width:90%;max-width:400px}}");
4939
+ Xi(e, "svelte-122ajk5", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes loading-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.CashierSessionExpirationModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:15;top:0;left:0;background-color:var(--emw--color-black-transparency-20, rgba(0, 0, 0, 0.2));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);width:400px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;height:var(--emw--header-height, 40px);background-color:var(--emw--color-gray-10, rgba(17, 17, 17, 0.0666666667));width:100%;border-radius:var(--emw--border-radius-medium, 4px) var(--emw--border-radius-medium, 4px) 0 0}.CashierSessionExpirationModalHeaderTitle{display:flex;text-align:center;color:var(--emw--color-gray-10, #111);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis;line-height:calc(var(--emw--font-size-medium, 16px) + 2px)}.CashierSessionExpirationModalContainer{padding:var(--emw--spacing-large, 20px)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-white, #fff);background:var(--emw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.CashierSessionExpirationModalCloseBtn svg{width:32px;height:32px}.CashierSessionExpirationModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}.CashierSessionExpiration{width:100%;display:flex;flex-direction:column;align-items:center;gap:var(--emw--spacing-large, 20px)}.CashierSessionExpirationTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierSessionExpirationText{color:var(--emw--color-gray-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierSessionExpirationButton{display:flex;width:100%;height:36px;flex-direction:column;justify-content:center;align-items:center;flex-shrink:0;color:var(--emw--color-white, #FFF);cursor:pointer;text-align:center;font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);line-height:36px;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #7EC51E);border:none}.CashierSessionExpirationButton:hover{background:var(--emw--color-main-button-hover, #71B11B)}.CashierSessionExpirationButton:active{background:var(--emw--color-main-button-active, #5C950F)}.CashierSessionExpirationButton:disabled{background:var(--emw--color-main-button-disabled, #5C950F)}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-medium, 16px);font-family:inherit}.CashierSessionExpirationButtonSpinner{animation:loading-spinner 1s linear infinite}.ImagePlaceholder{height:250px;width:100%;background:#E6E6E6}@container session-expiration-modal-window (max-width:750px){.CashierSessionExpirationModalWindow .CashierSessionExpirationModalWrapper{width:90%;max-width:400px}}");
4940
4940
  }
4941
4941
  const Ba = (e) => ({}), $r = (e) => ({}), $a = (e) => ({}), Ur = (e) => ({}), Ua = (e) => ({}), kr = (e) => ({}), ka = (e) => ({}), Fr = (e) => ({ class: "CashierSessionExpirationIcon" });
4942
4942
  function Gr(e) {
@@ -6,4 +6,4 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
6
6
  `,Qe.MISSING_INTL_API,a);var H=n.getPluralRules(t,{type:f.pluralType}).select(y-(f.offset||0));A=f.options[H]||f.options.other}if(!A)throw new Ar(f.value,y,Object.keys(f.options),a);u.push.apply(u,$t(A.value,t,n,r,i,y-(f.offset||0)));continue}}return Po(u)}function Do(e,t){return t?we(we(we({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=we(we({},e[r]),t[r]||{}),n},{})):e}function Bo(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=Do(e[r],t[r]),n},we({},e)):e}function pn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function $o(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:hn(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,fn([void 0],n,!1)))},{cache:pn(e.number),strategy:mn.variadic}),getDateTimeFormat:hn(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,fn([void 0],n,!1)))},{cache:pn(e.dateTime),strategy:mn.variadic}),getPluralRules:hn(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,fn([void 0],n,!1)))},{cache:pn(e.pluralRules),strategy:mn.variadic})}}var wi=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var l=s.formatToParts(c);if(l.length===1)return l[0].value;var f=l.reduce(function(_,y){return!_.length||y.type!==ce.literal||typeof _[_.length-1]!="string"?_.push(y.value):_[_.length-1]+=y.value,_},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(c){return $t(s.ast,s.locales,s.formatters,s.formats,c,void 0,s.message)},this.resolvedOptions=function(){var c;return{locale:((c=s.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};a.formatters;var u=Xs(a,["formatters"]);this.ast=e.__parse(t,we(we({},u),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Bo(e.formats,r),this.formatters=i&&i.formatters||$o(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=No,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function Uo(e,t){if(t==null)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let i=0;i<n.length;i++)if(typeof r=="object"){if(i>0){const s=n.slice(i,n.length).join(".");if(s in r){r=r[s];break}}r=r[n[i]]}else r=void 0;return r}const Ie={},ko=(e,t,n)=>n&&(t in Ie||(Ie[t]={}),e in Ie[t]||(Ie[t][e]=n),n),Oi=(e,t)=>{if(t==null)return;if(t in Ie&&e in Ie[t])return Ie[t][e];const n=xt(t);for(let r=0;r<n.length;r++){const i=n[r],s=Go(i,e);if(s)return ko(e,t,s)}};let Dn;const yt=Et({});function Fo(e){return Dn[e]||null}function Mi(e){return e in Dn}function Go(e,t){if(!Mi(e))return null;const n=Fo(e);return Uo(n,t)}function jo(e){if(e==null)return;const t=xt(e);for(let n=0;n<t.length;n++){const r=t[n];if(Mi(r))return r}}function Ci(e,...t){delete Ie[e],yt.update(n=>(n[e]=Vs.all([n[e]||{},...t]),n))}tt([yt],([e])=>Object.keys(e));yt.subscribe(e=>Dn=e);const Ut={};function zo(e,t){Ut[e].delete(t),Ut[e].size===0&&delete Ut[e]}function Li(e){return Ut[e]}function Wo(e){return xt(e).map(t=>{const n=Li(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function Vt(e){return e==null?!1:xt(e).some(t=>{var n;return(n=Li(t))==null?void 0:n.size})}function Vo(e,t){return Promise.all(t.map(r=>(zo(e,r),r().then(i=>i.default||i)))).then(r=>Ci(e,...r))}const at={};function Ni(e){if(!Vt(e))return e in at?at[e]:Promise.resolve();const t=Wo(e);return at[e]=Promise.all(t.map(([n,r])=>Vo(n,r))).then(()=>{if(Vt(e))return Ni(e);delete at[e]}),at[e]}var wr=Object.getOwnPropertySymbols,Xo=Object.prototype.hasOwnProperty,Yo=Object.prototype.propertyIsEnumerable,Zo=(e,t)=>{var n={};for(var r in e)Xo.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&wr)for(var r of wr(e))t.indexOf(r)<0&&Yo.call(e,r)&&(n[r]=e[r]);return n};const qo={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};function Jo({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${xt(e).join('", "')}".${Vt(Re())?`
7
7
 
8
8
  Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const Qo={fallbackLocale:null,loadingDelay:200,formats:qo,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},dt=Qo;function Ke(){return dt}function Ko(e){const t=e,{formats:n}=t,r=Zo(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{wi.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch(s){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return r.warnOnMissingMessages&&(delete r.warnOnMissingMessages,r.handleMissingMessage==null?r.handleMissingMessage=Jo:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(dt,r,{initialLocale:i}),n&&("number"in n&&Object.assign(dt.formats.number,n.number),"date"in n&&Object.assign(dt.formats.date,n.date),"time"in n&&Object.assign(dt.formats.time,n.time)),$e.set(i)}const gn=Et(!1);var ea=Object.defineProperty,ta=Object.defineProperties,na=Object.getOwnPropertyDescriptors,Or=Object.getOwnPropertySymbols,ra=Object.prototype.hasOwnProperty,ia=Object.prototype.propertyIsEnumerable,Mr=(e,t,n)=>t in e?ea(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sa=(e,t)=>{for(var n in t||(t={}))ra.call(t,n)&&Mr(e,n,t[n]);if(Or)for(var n of Or(t))ia.call(t,n)&&Mr(e,n,t[n]);return e},oa=(e,t)=>ta(e,na(t));let Ln;const Xt=Et(null);function Cr(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function xt(e,t=Ke().fallbackLocale){const n=Cr(e);return t?[...new Set([...n,...Cr(t)])]:n}function Re(){return Ln!=null?Ln:void 0}Xt.subscribe(e=>{Ln=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const aa=e=>{if(e&&jo(e)&&Vt(e)){const{loadingDelay:t}=Ke();let n;return typeof window!="undefined"&&Re()!=null&&t?n=window.setTimeout(()=>gn.set(!0),t):gn.set(!0),Ni(e).then(()=>{Xt.set(e)}).finally(()=>{clearTimeout(n),gn.set(!1)})}return Xt.set(e)},$e=oa(sa({},Xt),{set:aa}),Kt=e=>{const t=Object.create(null);return r=>{const i=JSON.stringify(r);return i in t?t[i]:t[i]=e(r)}};var ua=Object.defineProperty,Yt=Object.getOwnPropertySymbols,Hi=Object.prototype.hasOwnProperty,Ii=Object.prototype.propertyIsEnumerable,Lr=(e,t,n)=>t in e?ua(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bn=(e,t)=>{for(var n in t||(t={}))Hi.call(t,n)&&Lr(e,n,t[n]);if(Yt)for(var n of Yt(t))Ii.call(t,n)&&Lr(e,n,t[n]);return e},nt=(e,t)=>{var n={};for(var r in e)Hi.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Yt)for(var r of Yt(e))t.indexOf(r)<0&&Ii.call(e,r)&&(n[r]=e[r]);return n};const bt=(e,t)=>{const{formats:n}=Ke();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},la=Kt(e=>{var t=e,{locale:n,format:r}=t,i=nt(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=bt("number",r)),new Intl.NumberFormat(n,i)}),ca=Kt(e=>{var t=e,{locale:n,format:r}=t,i=nt(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=bt("date",r):Object.keys(i).length===0&&(i=bt("date","short")),new Intl.DateTimeFormat(n,i)}),fa=Kt(e=>{var t=e,{locale:n,format:r}=t,i=nt(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=bt("time",r):Object.keys(i).length===0&&(i=bt("time","short")),new Intl.DateTimeFormat(n,i)}),ha=(e={})=>{var t=e,{locale:n=Re()}=t,r=nt(t,["locale"]);return la(Bn({locale:n},r))},ma=(e={})=>{var t=e,{locale:n=Re()}=t,r=nt(t,["locale"]);return ca(Bn({locale:n},r))},da=(e={})=>{var t=e,{locale:n=Re()}=t,r=nt(t,["locale"]);return fa(Bn({locale:n},r))},pa=Kt((e,t=Re())=>new wi(e,t,Ke().formats,{ignoreTag:Ke().ignoreTag})),ga=(e,t={})=>{var n,r,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:u,locale:c=Re(),default:l}=a;if(c==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=Oi(e,c);if(!f)f=(s=(i=(r=(n=Ke()).handleMissingMessage)==null?void 0:r.call(n,{locale:c,id:e,defaultValue:l}))!=null?i:l)!=null?s:e;else if(typeof f!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),f;if(!u)return f;let _=f;try{_=pa(f,c).format(u)}catch(y){y instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,y.message)}return _},_a=(e,t)=>da(t).format(e),ba=(e,t)=>ma(t).format(e),Ea=(e,t)=>ha(t).format(e),ya=(e,t=Re())=>Oi(e,t),xa=tt([$e,yt],()=>ga);tt([$e],()=>_a);tt([$e],()=>ba);tt([$e],()=>Ea);tt([$e,yt],()=>ya);function Nr(e,t){Ci(e,t)}function va(e){Ko({fallbackLocale:"en"}),$e.set(e)}const Hr={en:{sessionExpirationHeader:"Session Warning",sessionExpirationTitle:"Your session is about to expire!",sessionExpirationGeneralText:"Your session will automatically terminate in <b>{second} seconds</b>.",sessionExpirationGeneralButton:"CONTINUE",sessionExpirationLoadingButton:"PROCESSING..."},tr:{sessionExpirationHeader:"Oturum Uyarısı",sessionExpirationTitle:"Oturumunuzun süresi dolmak üzere!",sessionExpirationGeneralText:"Oyun seansınız <b>{second} saniye</b> içinde otomatik olarak sonuçlandırılacaktır",sessionExpirationGeneralButton:"DEVAM ET",sessionExpirationLoadingButton:"İŞLEME..."},"en-us":{sessionExpirationHeader:"Session Warning",sessionExpirationTitle:"Your session is about to expire!",sessionExpirationGeneralText:"Your session will automatically terminate in <b>{second} seconds</b>.",sessionExpirationGeneralButton:"CONTINUE",sessionExpirationLoadingButton:"PROCESSING..."}};/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:Pi,setPrototypeOf:Ir,isFrozen:Ta,getPrototypeOf:Sa,getOwnPropertyDescriptor:Aa}=Object;let{freeze:fe,seal:Ee,create:Ri}=Object,{apply:Nn,construct:Hn}=typeof Reflect!="undefined"&&Reflect;fe||(fe=function(t){return t});Ee||(Ee=function(t){return t});Nn||(Nn=function(t,n,r){return t.apply(n,r)});Hn||(Hn=function(t,n){return new t(...n)});const Lt=pe(Array.prototype.forEach),Pr=pe(Array.prototype.pop),ut=pe(Array.prototype.push),kt=pe(String.prototype.toLowerCase),_n=pe(String.prototype.toString),Rr=pe(String.prototype.match),lt=pe(String.prototype.replace),wa=pe(String.prototype.indexOf),Oa=pe(String.prototype.trim),ve=pe(Object.prototype.hasOwnProperty),ue=pe(RegExp.prototype.test),ct=Ma(TypeError);function pe(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Nn(e,t,r)}}function Ma(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Hn(e,n)}}function P(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:kt;Ir&&Ir(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const s=n(i);s!==i&&(Ta(t)||(t[r]=s),i=s)}e[i]=!0}return e}function Ca(e){for(let t=0;t<e.length;t++)ve(e,t)||(e[t]=null);return e}function Be(e){const t=Ri(null);for(const[n,r]of Pi(e))ve(e,n)&&(Array.isArray(r)?t[n]=Ca(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=Be(r):t[n]=r);return t}function ft(e,t){for(;e!==null;){const r=Aa(e,t);if(r){if(r.get)return pe(r.get);if(typeof r.value=="function")return pe(r.value)}e=Sa(e)}function n(){return null}return n}const Dr=fe(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),bn=fe(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),En=fe(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),La=fe(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),yn=fe(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Na=fe(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Br=fe(["#text"]),$r=fe(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),xn=fe(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ur=fe(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Nt=fe(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ha=Ee(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ia=Ee(/<%[\w\W]*|[\w\W]*%>/gm),Pa=Ee(/\${[\w\W]*}/gm),Ra=Ee(/^data-[\-\w.\u00B7-\uFFFF]/),Da=Ee(/^aria-[\-\w]+$/),Di=Ee(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ba=Ee(/^(?:\w+script|data):/i),$a=Ee(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Bi=Ee(/^html$/i),Ua=Ee(/^[a-z][.\w]*(-[.\w]+)+$/i);var kr=Object.freeze({__proto__:null,MUSTACHE_EXPR:Ha,ERB_EXPR:Ia,TMPLIT_EXPR:Pa,DATA_ATTR:Ra,ARIA_ATTR:Da,IS_ALLOWED_URI:Di,IS_SCRIPT_OR_DATA:Ba,ATTR_WHITESPACE:$a,DOCTYPE_NAME:Bi,CUSTOM_ELEMENT:Ua});const ht={element:1,text:3,progressingInstruction:7,comment:8,document:9},ka=function(){return typeof window=="undefined"?null:window},Fa=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const s="dompurify"+(r?"#"+r:"");try{return t.createPolicy(s,{createHTML(a){return a},createScriptURL(a){return a}})}catch(a){return console.warn("TrustedTypes policy "+s+" could not be created."),null}};function $i(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ka();const t=w=>$i(w);if(t.version="3.1.6",t.removed=[],!e||!e.document||e.document.nodeType!==ht.document)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:u,Element:c,NodeFilter:l,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:_,DOMParser:y,trustedTypes:M}=e,b=c.prototype,d=ft(b,"cloneNode"),C=ft(b,"remove"),F=ft(b,"nextSibling"),$=ft(b,"childNodes"),A=ft(b,"parentNode");if(typeof a=="function"){const w=n.createElement("template");w.content&&w.content.ownerDocument&&(n=w.content.ownerDocument)}let H,R="";const{implementation:k,createNodeIterator:Y,createDocumentFragment:V,getElementsByTagName:Q}=n,{importNode:G}=r;let O={};t.isSupported=typeof Pi=="function"&&typeof A=="function"&&k&&k.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ne,ERB_EXPR:he,TMPLIT_EXPR:T,DATA_ATTR:E,ARIA_ATTR:g,IS_SCRIPT_OR_DATA:v,ATTR_WHITESPACE:h,CUSTOM_ELEMENT:x}=kr;let{IS_ALLOWED_URI:L}=kr,N=null;const z=P({},[...Dr,...bn,...En,...yn,...Br]);let I=null;const q=P({},[...$r,...xn,...Ur,...Nt]);let m=Object.seal(Ri(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}})),U=null,ee=null,K=!0,ye=!0,ie=!1,xe=!0,_e=!1,Ne=!0,De=!1,en=!1,tn=!1,Ue=!1,vt=!1,Tt=!1,$n=!0,Un=!1;const Gi="user-content-";let nn=!0,rt=!1,ke={},Fe=null;const kn=P({},["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 Fn=null;const Gn=P({},["audio","video","img","source","image","track"]);let rn=null;const jn=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),St="http://www.w3.org/1998/Math/MathML",At="http://www.w3.org/2000/svg",Me="http://www.w3.org/1999/xhtml";let Ge=Me,sn=!1,on=null;const ji=P({},[St,At,Me],_n);let it=null;const zi=["application/xhtml+xml","text/html"],Wi="text/html";let re=null,je=null;const Vi=n.createElement("form"),zn=function(o){return o instanceof RegExp||o instanceof Function},an=function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(je&&je===o)){if((!o||typeof o!="object")&&(o={}),o=Be(o),it=zi.indexOf(o.PARSER_MEDIA_TYPE)===-1?Wi:o.PARSER_MEDIA_TYPE,re=it==="application/xhtml+xml"?_n:kt,N=ve(o,"ALLOWED_TAGS")?P({},o.ALLOWED_TAGS,re):z,I=ve(o,"ALLOWED_ATTR")?P({},o.ALLOWED_ATTR,re):q,on=ve(o,"ALLOWED_NAMESPACES")?P({},o.ALLOWED_NAMESPACES,_n):ji,rn=ve(o,"ADD_URI_SAFE_ATTR")?P(Be(jn),o.ADD_URI_SAFE_ATTR,re):jn,Fn=ve(o,"ADD_DATA_URI_TAGS")?P(Be(Gn),o.ADD_DATA_URI_TAGS,re):Gn,Fe=ve(o,"FORBID_CONTENTS")?P({},o.FORBID_CONTENTS,re):kn,U=ve(o,"FORBID_TAGS")?P({},o.FORBID_TAGS,re):{},ee=ve(o,"FORBID_ATTR")?P({},o.FORBID_ATTR,re):{},ke=ve(o,"USE_PROFILES")?o.USE_PROFILES:!1,K=o.ALLOW_ARIA_ATTR!==!1,ye=o.ALLOW_DATA_ATTR!==!1,ie=o.ALLOW_UNKNOWN_PROTOCOLS||!1,xe=o.ALLOW_SELF_CLOSE_IN_ATTR!==!1,_e=o.SAFE_FOR_TEMPLATES||!1,Ne=o.SAFE_FOR_XML!==!1,De=o.WHOLE_DOCUMENT||!1,Ue=o.RETURN_DOM||!1,vt=o.RETURN_DOM_FRAGMENT||!1,Tt=o.RETURN_TRUSTED_TYPE||!1,tn=o.FORCE_BODY||!1,$n=o.SANITIZE_DOM!==!1,Un=o.SANITIZE_NAMED_PROPS||!1,nn=o.KEEP_CONTENT!==!1,rt=o.IN_PLACE||!1,L=o.ALLOWED_URI_REGEXP||Di,Ge=o.NAMESPACE||Me,m=o.CUSTOM_ELEMENT_HANDLING||{},o.CUSTOM_ELEMENT_HANDLING&&zn(o.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(m.tagNameCheck=o.CUSTOM_ELEMENT_HANDLING.tagNameCheck),o.CUSTOM_ELEMENT_HANDLING&&zn(o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(m.attributeNameCheck=o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),o.CUSTOM_ELEMENT_HANDLING&&typeof o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(m.allowCustomizedBuiltInElements=o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),_e&&(ye=!1),vt&&(Ue=!0),ke&&(N=P({},Br),I=[],ke.html===!0&&(P(N,Dr),P(I,$r)),ke.svg===!0&&(P(N,bn),P(I,xn),P(I,Nt)),ke.svgFilters===!0&&(P(N,En),P(I,xn),P(I,Nt)),ke.mathMl===!0&&(P(N,yn),P(I,Ur),P(I,Nt))),o.ADD_TAGS&&(N===z&&(N=Be(N)),P(N,o.ADD_TAGS,re)),o.ADD_ATTR&&(I===q&&(I=Be(I)),P(I,o.ADD_ATTR,re)),o.ADD_URI_SAFE_ATTR&&P(rn,o.ADD_URI_SAFE_ATTR,re),o.FORBID_CONTENTS&&(Fe===kn&&(Fe=Be(Fe)),P(Fe,o.FORBID_CONTENTS,re)),nn&&(N["#text"]=!0),De&&P(N,["html","head","body"]),N.table&&(P(N,["tbody"]),delete U.tbody),o.TRUSTED_TYPES_POLICY){if(typeof o.TRUSTED_TYPES_POLICY.createHTML!="function")throw ct('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof o.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ct('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');H=o.TRUSTED_TYPES_POLICY,R=H.createHTML("")}else H===void 0&&(H=Fa(M,i)),H!==null&&typeof R=="string"&&(R=H.createHTML(""));fe&&fe(o),je=o}},Wn=P({},["mi","mo","mn","ms","mtext"]),Vn=P({},["foreignobject","annotation-xml"]),Xi=P({},["title","style","font","a","script"]),Xn=P({},[...bn,...En,...La]),Yn=P({},[...yn,...Na]),Yi=function(o){let p=A(o);(!p||!p.tagName)&&(p={namespaceURI:Ge,tagName:"template"});const S=kt(o.tagName),W=kt(p.tagName);return on[o.namespaceURI]?o.namespaceURI===At?p.namespaceURI===Me?S==="svg":p.namespaceURI===St?S==="svg"&&(W==="annotation-xml"||Wn[W]):!!Xn[S]:o.namespaceURI===St?p.namespaceURI===Me?S==="math":p.namespaceURI===At?S==="math"&&Vn[W]:!!Yn[S]:o.namespaceURI===Me?p.namespaceURI===At&&!Vn[W]||p.namespaceURI===St&&!Wn[W]?!1:!Yn[S]&&(Xi[S]||!Xn[S]):!!(it==="application/xhtml+xml"&&on[o.namespaceURI]):!1},Te=function(o){ut(t.removed,{element:o});try{A(o).removeChild(o)}catch(p){C(o)}},wt=function(o,p){try{ut(t.removed,{attribute:p.getAttributeNode(o),from:p})}catch(S){ut(t.removed,{attribute:null,from:p})}if(p.removeAttribute(o),o==="is"&&!I[o])if(Ue||vt)try{Te(p)}catch(S){}else try{p.setAttribute(o,"")}catch(S){}},Zn=function(o){let p=null,S=null;if(tn)o="<remove></remove>"+o;else{const se=Rr(o,/^[\r\n\t ]+/);S=se&&se[0]}it==="application/xhtml+xml"&&Ge===Me&&(o='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+o+"</body></html>");const W=H?H.createHTML(o):o;if(Ge===Me)try{p=new y().parseFromString(W,it)}catch(se){}if(!p||!p.documentElement){p=k.createDocument(Ge,"template",null);try{p.documentElement.innerHTML=sn?R:W}catch(se){}}const oe=p.body||p.documentElement;return o&&S&&oe.insertBefore(n.createTextNode(S),oe.childNodes[0]||null),Ge===Me?Q.call(p,De?"html":"body")[0]:De?p.documentElement:oe},qn=function(o){return Y.call(o.ownerDocument||o,o,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Jn=function(o){return o instanceof _&&(typeof o.nodeName!="string"||typeof o.textContent!="string"||typeof o.removeChild!="function"||!(o.attributes instanceof f)||typeof o.removeAttribute!="function"||typeof o.setAttribute!="function"||typeof o.namespaceURI!="string"||typeof o.insertBefore!="function"||typeof o.hasChildNodes!="function")},Qn=function(o){return typeof u=="function"&&o instanceof u},Ce=function(o,p,S){O[o]&&Lt(O[o],W=>{W.call(t,p,S,je)})},Kn=function(o){let p=null;if(Ce("beforeSanitizeElements",o,null),Jn(o))return Te(o),!0;const S=re(o.nodeName);if(Ce("uponSanitizeElement",o,{tagName:S,allowedTags:N}),o.hasChildNodes()&&!Qn(o.firstElementChild)&&ue(/<[/\w]/g,o.innerHTML)&&ue(/<[/\w]/g,o.textContent)||o.nodeType===ht.progressingInstruction||Ne&&o.nodeType===ht.comment&&ue(/<[/\w]/g,o.data))return Te(o),!0;if(!N[S]||U[S]){if(!U[S]&&tr(S)&&(m.tagNameCheck instanceof RegExp&&ue(m.tagNameCheck,S)||m.tagNameCheck instanceof Function&&m.tagNameCheck(S)))return!1;if(nn&&!Fe[S]){const W=A(o)||o.parentNode,oe=$(o)||o.childNodes;if(oe&&W){const se=oe.length;for(let me=se-1;me>=0;--me){const Se=d(oe[me],!0);Se.__removalCount=(o.__removalCount||0)+1,W.insertBefore(Se,F(o))}}}return Te(o),!0}return o instanceof c&&!Yi(o)||(S==="noscript"||S==="noembed"||S==="noframes")&&ue(/<\/no(script|embed|frames)/i,o.innerHTML)?(Te(o),!0):(_e&&o.nodeType===ht.text&&(p=o.textContent,Lt([ne,he,T],W=>{p=lt(p,W," ")}),o.textContent!==p&&(ut(t.removed,{element:o.cloneNode()}),o.textContent=p)),Ce("afterSanitizeElements",o,null),!1)},er=function(o,p,S){if($n&&(p==="id"||p==="name")&&(S in n||S in Vi))return!1;if(!(ye&&!ee[p]&&ue(E,p))){if(!(K&&ue(g,p))){if(!I[p]||ee[p]){if(!(tr(o)&&(m.tagNameCheck instanceof RegExp&&ue(m.tagNameCheck,o)||m.tagNameCheck instanceof Function&&m.tagNameCheck(o))&&(m.attributeNameCheck instanceof RegExp&&ue(m.attributeNameCheck,p)||m.attributeNameCheck instanceof Function&&m.attributeNameCheck(p))||p==="is"&&m.allowCustomizedBuiltInElements&&(m.tagNameCheck instanceof RegExp&&ue(m.tagNameCheck,S)||m.tagNameCheck instanceof Function&&m.tagNameCheck(S))))return!1}else if(!rn[p]){if(!ue(L,lt(S,h,""))){if(!((p==="src"||p==="xlink:href"||p==="href")&&o!=="script"&&wa(S,"data:")===0&&Fn[o])){if(!(ie&&!ue(v,lt(S,h,"")))){if(S)return!1}}}}}}return!0},tr=function(o){return o!=="annotation-xml"&&Rr(o,x)},nr=function(o){Ce("beforeSanitizeAttributes",o,null);const{attributes:p}=o;if(!p)return;const S={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:I};let W=p.length;for(;W--;){const oe=p[W],{name:se,namespaceURI:me,value:Se}=oe,st=re(se);let ae=se==="value"?Se:Oa(Se);if(S.attrName=st,S.attrValue=ae,S.keepAttr=!0,S.forceKeepAttr=void 0,Ce("uponSanitizeAttribute",o,S),ae=S.attrValue,Ne&&ue(/((--!?|])>)|<\/(style|title)/i,ae)){wt(se,o);continue}if(S.forceKeepAttr||(wt(se,o),!S.keepAttr))continue;if(!xe&&ue(/\/>/i,ae)){wt(se,o);continue}_e&&Lt([ne,he,T],ir=>{ae=lt(ae,ir," ")});const rr=re(o.nodeName);if(er(rr,st,ae)){if(Un&&(st==="id"||st==="name")&&(wt(se,o),ae=Gi+ae),H&&typeof M=="object"&&typeof M.getAttributeType=="function"&&!me)switch(M.getAttributeType(rr,st)){case"TrustedHTML":{ae=H.createHTML(ae);break}case"TrustedScriptURL":{ae=H.createScriptURL(ae);break}}try{me?o.setAttributeNS(me,se,ae):o.setAttribute(se,ae),Jn(o)?Te(o):Pr(t.removed)}catch(ir){}}}Ce("afterSanitizeAttributes",o,null)},Zi=function w(o){let p=null;const S=qn(o);for(Ce("beforeSanitizeShadowDOM",o,null);p=S.nextNode();)Ce("uponSanitizeShadowNode",p,null),!Kn(p)&&(p.content instanceof s&&w(p.content),nr(p));Ce("afterSanitizeShadowDOM",o,null)};return t.sanitize=function(w){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=null,S=null,W=null,oe=null;if(sn=!w,sn&&(w="<!-->"),typeof w!="string"&&!Qn(w))if(typeof w.toString=="function"){if(w=w.toString(),typeof w!="string")throw ct("dirty is not a string, aborting")}else throw ct("toString is not a function");if(!t.isSupported)return w;if(en||an(o),t.removed=[],typeof w=="string"&&(rt=!1),rt){if(w.nodeName){const Se=re(w.nodeName);if(!N[Se]||U[Se])throw ct("root node is forbidden and cannot be sanitized in-place")}}else if(w instanceof u)p=Zn("<!---->"),S=p.ownerDocument.importNode(w,!0),S.nodeType===ht.element&&S.nodeName==="BODY"||S.nodeName==="HTML"?p=S:p.appendChild(S);else{if(!Ue&&!_e&&!De&&w.indexOf("<")===-1)return H&&Tt?H.createHTML(w):w;if(p=Zn(w),!p)return Ue?null:Tt?R:""}p&&tn&&Te(p.firstChild);const se=qn(rt?w:p);for(;W=se.nextNode();)Kn(W)||(W.content instanceof s&&Zi(W.content),nr(W));if(rt)return w;if(Ue){if(vt)for(oe=V.call(p.ownerDocument);p.firstChild;)oe.appendChild(p.firstChild);else oe=p;return(I.shadowroot||I.shadowrootmode)&&(oe=G.call(r,oe,!0)),oe}let me=De?p.outerHTML:p.innerHTML;return De&&N["!doctype"]&&p.ownerDocument&&p.ownerDocument.doctype&&p.ownerDocument.doctype.name&&ue(Bi,p.ownerDocument.doctype.name)&&(me="<!DOCTYPE "+p.ownerDocument.doctype.name+`>
9
- `+me),_e&&Lt([ne,he,T],Se=>{me=lt(me,Se," ")}),H&&Tt?H.createHTML(me):me},t.setConfig=function(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};an(w),en=!0},t.clearConfig=function(){je=null,en=!1},t.isValidAttribute=function(w,o,p){je||an({});const S=re(w),W=re(o);return er(S,W,p)},t.addHook=function(w,o){typeof o=="function"&&(O[w]=O[w]||[],ut(O[w],o))},t.removeHook=function(w){if(O[w])return Pr(O[w])},t.removeHooks=function(w){O[w]&&(O[w]=[])},t.removeAllHooks=function(){O={}},t}var Fr=$i(),Ui={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ui,function(){var n=1e3,r=6e4,i=36e5,s="millisecond",a="second",u="minute",c="hour",l="day",f="week",_="month",y="quarter",M="year",b="date",d="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,F=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(T){var E=["th","st","nd","rd"],g=T%100;return"["+T+(E[(g-20)%10]||E[g]||E[0])+"]"}},A=function(T,E,g){var v=String(T);return!v||v.length>=E?T:""+Array(E+1-v.length).join(g)+T},H={s:A,z:function(T){var E=-T.utcOffset(),g=Math.abs(E),v=Math.floor(g/60),h=g%60;return(E<=0?"+":"-")+A(v,2,"0")+":"+A(h,2,"0")},m:function T(E,g){if(E.date()<g.date())return-T(g,E);var v=12*(g.year()-E.year())+(g.month()-E.month()),h=E.clone().add(v,_),x=g-h<0,L=E.clone().add(v+(x?-1:1),_);return+(-(v+(g-h)/(x?h-L:L-h))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:_,y:M,w:f,d:l,D:b,h:c,m:u,s:a,ms:s,Q:y}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},R="en",k={};k[R]=$;var Y="$isDayjsObject",V=function(T){return T instanceof ne||!(!T||!T[Y])},Q=function T(E,g,v){var h;if(!E)return R;if(typeof E=="string"){var x=E.toLowerCase();k[x]&&(h=x),g&&(k[x]=g,h=x);var L=E.split("-");if(!h&&L.length>1)return T(L[0])}else{var N=E.name;k[N]=E,h=N}return!v&&h&&(R=h),h||!v&&R},G=function(T,E){if(V(T))return T.clone();var g=typeof E=="object"?E:{};return g.date=T,g.args=arguments,new ne(g)},O=H;O.l=Q,O.i=V,O.w=function(T,E){return G(T,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var ne=function(){function T(g){this.$L=Q(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[Y]=!0}var E=T.prototype;return E.parse=function(g){this.$d=function(v){var h=v.date,x=v.utc;if(h===null)return new Date(NaN);if(O.u(h))return new Date;if(h instanceof Date)return new Date(h);if(typeof h=="string"&&!/Z$/i.test(h)){var L=h.match(C);if(L){var N=L[2]-1||0,z=(L[7]||"0").substring(0,3);return x?new Date(Date.UTC(L[1],N,L[3]||1,L[4]||0,L[5]||0,L[6]||0,z)):new Date(L[1],N,L[3]||1,L[4]||0,L[5]||0,L[6]||0,z)}}return new Date(h)}(g),this.init()},E.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},E.$utils=function(){return O},E.isValid=function(){return this.$d.toString()!==d},E.isSame=function(g,v){var h=G(g);return this.startOf(v)<=h&&h<=this.endOf(v)},E.isAfter=function(g,v){return G(g)<this.startOf(v)},E.isBefore=function(g,v){return this.endOf(v)<G(g)},E.$g=function(g,v,h){return O.u(g)?this[v]:this.set(h,g)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(g,v){var h=this,x=!!O.u(v)||v,L=O.p(g),N=function(ye,ie){var xe=O.w(h.$u?Date.UTC(h.$y,ie,ye):new Date(h.$y,ie,ye),h);return x?xe:xe.endOf(l)},z=function(ye,ie){return O.w(h.toDate()[ye].apply(h.toDate("s"),(x?[0,0,0,0]:[23,59,59,999]).slice(ie)),h)},I=this.$W,q=this.$M,m=this.$D,U="set"+(this.$u?"UTC":"");switch(L){case M:return x?N(1,0):N(31,11);case _:return x?N(1,q):N(0,q+1);case f:var ee=this.$locale().weekStart||0,K=(I<ee?I+7:I)-ee;return N(x?m-K:m+(6-K),q);case l:case b:return z(U+"Hours",0);case c:return z(U+"Minutes",1);case u:return z(U+"Seconds",2);case a:return z(U+"Milliseconds",3);default:return this.clone()}},E.endOf=function(g){return this.startOf(g,!1)},E.$set=function(g,v){var h,x=O.p(g),L="set"+(this.$u?"UTC":""),N=(h={},h[l]=L+"Date",h[b]=L+"Date",h[_]=L+"Month",h[M]=L+"FullYear",h[c]=L+"Hours",h[u]=L+"Minutes",h[a]=L+"Seconds",h[s]=L+"Milliseconds",h)[x],z=x===l?this.$D+(v-this.$W):v;if(x===_||x===M){var I=this.clone().set(b,1);I.$d[N](z),I.init(),this.$d=I.set(b,Math.min(this.$D,I.daysInMonth())).$d}else N&&this.$d[N](z);return this.init(),this},E.set=function(g,v){return this.clone().$set(g,v)},E.get=function(g){return this[O.p(g)]()},E.add=function(g,v){var h,x=this;g=Number(g);var L=O.p(v),N=function(q){var m=G(x);return O.w(m.date(m.date()+Math.round(q*g)),x)};if(L===_)return this.set(_,this.$M+g);if(L===M)return this.set(M,this.$y+g);if(L===l)return N(1);if(L===f)return N(7);var z=(h={},h[u]=r,h[c]=i,h[a]=n,h)[L]||1,I=this.$d.getTime()+g*z;return O.w(I,this)},E.subtract=function(g,v){return this.add(-1*g,v)},E.format=function(g){var v=this,h=this.$locale();if(!this.isValid())return h.invalidDate||d;var x=g||"YYYY-MM-DDTHH:mm:ssZ",L=O.z(this),N=this.$H,z=this.$m,I=this.$M,q=h.weekdays,m=h.months,U=h.meridiem,ee=function(ie,xe,_e,Ne){return ie&&(ie[xe]||ie(v,x))||_e[xe].slice(0,Ne)},K=function(ie){return O.s(N%12||12,ie,"0")},ye=U||function(ie,xe,_e){var Ne=ie<12?"AM":"PM";return _e?Ne.toLowerCase():Ne};return x.replace(F,function(ie,xe){return xe||function(_e){switch(_e){case"YY":return String(v.$y).slice(-2);case"YYYY":return O.s(v.$y,4,"0");case"M":return I+1;case"MM":return O.s(I+1,2,"0");case"MMM":return ee(h.monthsShort,I,m,3);case"MMMM":return ee(m,I);case"D":return v.$D;case"DD":return O.s(v.$D,2,"0");case"d":return String(v.$W);case"dd":return ee(h.weekdaysMin,v.$W,q,2);case"ddd":return ee(h.weekdaysShort,v.$W,q,3);case"dddd":return q[v.$W];case"H":return String(N);case"HH":return O.s(N,2,"0");case"h":return K(1);case"hh":return K(2);case"a":return ye(N,z,!0);case"A":return ye(N,z,!1);case"m":return String(z);case"mm":return O.s(z,2,"0");case"s":return String(v.$s);case"ss":return O.s(v.$s,2,"0");case"SSS":return O.s(v.$ms,3,"0");case"Z":return L}return null}(ie)||L.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(g,v,h){var x,L=this,N=O.p(v),z=G(g),I=(z.utcOffset()-this.utcOffset())*r,q=this-z,m=function(){return O.m(L,z)};switch(N){case M:x=m()/12;break;case _:x=m();break;case y:x=m()/3;break;case f:x=(q-I)/6048e5;break;case l:x=(q-I)/864e5;break;case c:x=q/i;break;case u:x=q/r;break;case a:x=q/n;break;default:x=q}return h?x:O.a(x)},E.daysInMonth=function(){return this.endOf(_).$D},E.$locale=function(){return k[this.$L]},E.locale=function(g,v){if(!g)return this.$L;var h=this.clone(),x=Q(g,v,!0);return x&&(h.$L=x),h},E.clone=function(){return O.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},T}(),he=ne.prototype;return G.prototype=he,[["$ms",s],["$s",a],["$m",u],["$H",c],["$W",l],["$M",_],["$y",M],["$D",b]].forEach(function(T){he[T[1]]=function(E){return this.$g(E,T[0],T[1])}}),G.extend=function(T,E){return T.$i||(T(E,ne,G),T.$i=!0),G},G.locale=Q,G.isDayjs=V,G.unix=function(T){return G(1e3*T)},G.en=k[R],G.Ls=k,G.p={},G})})(Ui);var Ga=Ui.exports;const Gr=Rn(Ga);var ki={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ui,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(s,a,u){var c=a.prototype;u.utc=function(d){var C={date:d,utc:!0,args:arguments};return new a(C)},c.utc=function(d){var C=u(this.toDate(),{locale:this.$L,utc:!0});return d?C.add(this.utcOffset(),n):C},c.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var l=c.parse;c.parse=function(d){d.utc&&(this.$u=!0),this.$utils().u(d.$offset)||(this.$offset=d.$offset),l.call(this,d)};var f=c.init;c.init=function(){if(this.$u){var d=this.$d;this.$y=d.getUTCFullYear(),this.$M=d.getUTCMonth(),this.$D=d.getUTCDate(),this.$W=d.getUTCDay(),this.$H=d.getUTCHours(),this.$m=d.getUTCMinutes(),this.$s=d.getUTCSeconds(),this.$ms=d.getUTCMilliseconds()}else f.call(this)};var _=c.utcOffset;c.utcOffset=function(d,C){var F=this.$utils().u;if(F(d))return this.$u?0:F(this.$offset)?_.call(this):this.$offset;if(typeof d=="string"&&(d=function(R){R===void 0&&(R="");var k=R.match(r);if(!k)return null;var Y=(""+k[0]).match(i)||["-",0,0],V=Y[0],Q=60*+Y[1]+ +Y[2];return Q===0?0:V==="+"?Q:-Q}(d),d===null))return this;var $=Math.abs(d)<=16?60*d:d,A=this;if(C)return A.$offset=$,A.$u=d===0,A;if(d!==0){var H=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(A=this.local().add($+H,n)).$offset=$,A.$x.$localOffset=H}else A=this.utc();return A};var y=c.format;c.format=function(d){var C=d||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return y.call(this,C)},c.valueOf=function(){var d=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*d},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var M=c.toDate;c.toDate=function(d){return d==="s"&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():M.call(this)};var b=c.diff;c.diff=function(d,C,F){if(d&&this.$u===d.$u)return b.call(this,d,C,F);var $=this.local(),A=u(d).local();return b.call($,A,C,F)}}})})(ki);var ja=ki.exports;const za=Rn(ja);let jr=Et(null);function Wa(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function Va(e,t){const n=new URL(t);fetch(n.href).then(r=>r.text()).then(r=>{const i=document.createElement("style");i.innerHTML=r,e&&e.appendChild(i)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Xa(e,t,n){if(window.emMessageBus){const r=document.createElement("style");window.emMessageBus.subscribe(t,i=>{r.innerHTML=i,e&&e.appendChild(r)})}}function Ya(e){ss(e,"svelte-iiiimw","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes loading-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.CashierSessionExpirationModalWindow{display:flex;position:absolute;align-items:center;justify-content:center;width:100%;height:100%;z-index:15;top:0;left:0;background-color:var(--emw--color-black-transparency-20, rgba(0, 0, 0, 0.2));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);width:400px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;height:var(--emw--header-height, 40px);background-color:var(--emw--color-gray-10, rgba(17, 17, 17, 0.0666666667));width:100%;border-radius:var(--emw--border-radius-medium, 4px) var(--emw--border-radius-medium, 4px) 0 0}.CashierSessionExpirationModalHeaderTitle{display:flex;text-align:center;color:var(--emw--color-gray-10, #111);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis;line-height:calc(var(--emw--font-size-medium, 16px) + 2px)}.CashierSessionExpirationModalContainer{padding:var(--emw--spacing-large, 20px)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-white, #fff);background:var(--emw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.CashierSessionExpirationModalCloseBtn svg{width:32px;height:32px}.CashierSessionExpirationModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}.CashierSessionExpiration{width:100%;display:flex;flex-direction:column;align-items:center;gap:var(--emw--spacing-large, 20px)}.CashierSessionExpirationTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierSessionExpirationText{color:var(--emw--color-gray-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierSessionExpirationButton{display:flex;width:100%;height:36px;flex-direction:column;justify-content:center;align-items:center;flex-shrink:0;color:var(--emw--color-white, #FFF);cursor:pointer;text-align:center;font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);line-height:36px;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #7EC51E);border:none}.CashierSessionExpirationButton:hover{background:var(--emw--color-main-button-hover, #71B11B)}.CashierSessionExpirationButton:active{background:var(--emw--color-main-button-active, #5C950F)}.CashierSessionExpirationButton:disabled{background:var(--emw--color-main-button-disabled, #5C950F)}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-medium, 16px);font-family:inherit}.CashierSessionExpirationButtonSpinner{animation:loading-spinner 1s linear infinite}.ImagePlaceholder{height:250px;width:100%;background:#E6E6E6}@container session-expiration-modal-window (max-width:750px){.CashierSessionExpirationModalWindow .CashierSessionExpirationModalWrapper{width:90%;max-width:400px}}")}const Za=e=>({}),zr=e=>({}),qa=e=>({}),Wr=e=>({}),Ja=e=>({}),Vr=e=>({}),Qa=e=>({}),Xr=e=>({class:"CashierSessionExpirationIcon"});function Yr(e){let t,n,r,i,s,a=e[8]("sessionExpirationHeader")+"",u,c,l,f,_,y,M,b,d,C,F,$,A,H,R;const k=e[22].icon,Y=Ht(k,e,e[21],Xr),V=Y||tu(e),Q=e[22].title,G=Ht(Q,e,e[21],Vr),O=G||nu(e),ne=e[22].text,he=Ht(ne,e,e[21],Wr),T=he||ru(e),E=[su,iu],g=[];function v(h,x){return h[6]?0:1}return d=v(e),C=g[d]=E[d](e),{c(){t=te("div"),n=te("div"),r=te("div"),i=te("div"),s=te("div"),u=et(a),c=mt(),l=te("div"),f=te("div"),V&&V.c(),_=mt(),O&&O.c(),y=mt(),T&&T.c(),M=mt(),b=te("button"),C.c(),j(s,"class","CashierSessionExpirationModalHeaderTitle"),j(i,"class","CashierSessionExpirationModalHeader"),j(b,"type","button"),b.disabled=e[6],j(b,"class","CashierSessionExpirationButton"),j(f,"class","CashierSessionExpiration"),j(l,"class","CashierSessionExpirationModalContainer"),j(r,"class","CashierSessionExpirationModalWrapper"),j(n,"class","CashierSessionExpirationModalWindow"),j(n,"id","CashierSessionExpirationModal"),Ze(()=>e[24].call(n))},m(h,x){Oe(h,t,x),J(t,n),J(n,r),J(r,i),J(i,s),J(s,u),J(r,c),J(r,l),J(l,f),V&&V.m(f,null),J(f,_),O&&O.m(f,null),J(f,y),T&&T.m(f,null),J(f,M),J(f,b),g[d].m(b,null),e[23](f),F=ls(n,e[24].bind(n)),e[25](t),A=!0,H||(R=[Ft(b,"click",e[9]),Ft(n,"click",e[10])],H=!0)},p(h,x){e=h,(!A||x[0]&256)&&a!==(a=e[8]("sessionExpirationHeader")+"")&&qt(u,a),Y?Y.p&&(!A||x[0]&2097152)&&Pt(Y,k,e,e[21],A?It(k,e[21],x,Qa):Rt(e[21]),Xr):V&&V.p&&(!A||x[0]&8)&&V.p(e,A?x:[-1,-1]),G?G.p&&(!A||x[0]&2097152)&&Pt(G,Q,e,e[21],A?It(Q,e[21],x,Ja):Rt(e[21]),Vr):O&&O.p&&(!A||x[0]&256)&&O.p(e,A?x:[-1,-1]),he?he.p&&(!A||x[0]&2097152)&&Pt(he,ne,e,e[21],A?It(ne,e[21],x,qa):Rt(e[21]),Wr):T&&T.p&&(!A||x[0]&384)&&T.p(e,A?x:[-1,-1]);let L=d;d=v(e),d===L?g[d].p(e,x):(si(),He(g[L],1,1,()=>{g[L]=null}),oi(),C=g[d],C?C.p(e,x):(C=g[d]=E[d](e),C.c()),Ae(C,1),C.m(b,null)),(!A||x[0]&64)&&(b.disabled=e[6])},i(h){A||(Ae(V,h),Ae(O,h),Ae(T,h),Ae(C),h&&Ze(()=>{A&&($||($=pr(n,gr,{duration:e[2]},!0)),$.run(1))}),A=!0)},o(h){He(V,h),He(O,h),He(T,h),He(C),h&&($||($=pr(n,gr,{duration:e[2]},!1)),$.run(0)),A=!1},d(h){h&&ge(t),V&&V.d(h),O&&O.d(h),T&&T.d(h),g[d].d(),e[23](null),F(),h&&$&&$.end(),e[25](null),H=!1,Pe(R)}}}function Ka(e){let t;return{c(){t=te("div"),j(t,"class","ImagePlaceholder")},m(n,r){Oe(n,t,r)},p:de,d(n){n&&ge(t)}}}function eu(e){let t,n;return{c(){t=te("img"),cr(t.src,n=`${e[3]}/set-timeout-icon.png`)||j(t,"src",n),j(t,"width","300px"),j(t,"alt","error")},m(r,i){Oe(r,t,i)},p(r,i){i[0]&8&&!cr(t.src,n=`${r[3]}/set-timeout-icon.png`)&&j(t,"src",n)},d(r){r&&ge(t)}}}function tu(e){let t;function n(s,a){return s[3]?eu:Ka}let r=n(e),i=r(e);return{c(){i.c(),t=ri()},m(s,a){i.m(s,a),Oe(s,t,a)},p(s,a){r===(r=n(s))&&i?i.p(s,a):(i.d(1),i=r(s),i&&(i.c(),i.m(t.parentNode,t)))},d(s){s&&ge(t),i.d(s)}}}function nu(e){let t,n=e[8]("sessionExpirationTitle")+"",r;return{c(){t=te("span"),r=et(n),j(t,"class","CashierSessionExpirationTitle")},m(i,s){Oe(i,t,s),J(t,r)},p(i,s){s[0]&256&&n!==(n=i[8]("sessionExpirationTitle")+"")&&qt(r,n)},d(i){i&&ge(t)}}}function ru(e){let t,n=Fr.sanitize(e[8]("sessionExpirationGeneralText",{values:{second:e[7]}}))+"";return{c(){t=te("span"),j(t,"class","CashierSessionExpirationText")},m(r,i){Oe(r,t,i),t.innerHTML=n},p(r,i){i[0]&384&&n!==(n=Fr.sanitize(r[8]("sessionExpirationGeneralText",{values:{second:r[7]}}))+"")&&(t.innerHTML=n)},d(r){r&&ge(t)}}}function iu(e){let t;const n=e[22].button,r=Ht(n,e,e[21],zr),i=r||ou(e);return{c(){i&&i.c()},m(s,a){i&&i.m(s,a),t=!0},p(s,a){r?r.p&&(!t||a[0]&2097152)&&Pt(r,n,s,s[21],t?It(n,s[21],a,Za):Rt(s[21]),zr):i&&i.p&&(!t||a[0]&256)&&i.p(s,t?a:[-1,-1])},i(s){t||(Ae(i,s),t=!0)},o(s){He(i,s),t=!1},d(s){i&&i.d(s)}}}function su(e){let t,n,r,i,s,a=e[8]("sessionExpirationLoadingButton")+"",u;return{c(){t=te("div"),n=hr("svg"),r=hr("path"),i=mt(),s=te("span"),u=et(a),j(r,"d","M14.0282 6.58425C13.9037 4.05374 12.3688 1.68916 10.0872 0.61058C7.59818 -0.509483 4.56986 -0.0531603 2.49567 1.68916C0.504443 3.34851 -0.408201 6.04496 0.172573 8.57547C0.711862 11.0645 2.6616 13.0972 5.10915 13.7609C8.0545 14.5906 10.7509 13.1802 12.4103 10.7741C10.9169 12.7653 8.63527 14.0928 6.10476 13.6365C3.57424 13.1802 1.50005 11.2719 0.919281 8.78289C0.297024 6.12793 1.54154 3.34851 3.90612 1.97955C6.35366 0.569097 9.79682 1.10839 11.4147 3.51445C11.8295 4.09522 12.1199 4.80045 12.2444 5.50567C12.3688 6.08644 12.3273 6.7087 12.4103 7.28947C12.4933 7.82876 12.9496 8.53399 13.5718 8.16063C14.1111 7.82876 14.0696 7.12354 14.0282 6.58425C14.0696 6.87464 14.0282 6.41831 14.0282 6.58425Z"),j(r,"fill","white"),j(n,"class","CashierSessionExpirationButtonSpinner"),j(n,"xmlns","http://www.w3.org/2000/svg"),j(n,"width","15"),j(n,"height","14"),j(n,"viewBox","0 0 15 14"),j(n,"fill","none"),j(s,"class","CashierSessionExpirationButtonText")},m(c,l){Oe(c,t,l),J(t,n),J(n,r),J(t,i),J(t,s),J(s,u)},p(c,l){l[0]&256&&a!==(a=c[8]("sessionExpirationLoadingButton")+"")&&qt(u,a)},i:de,o:de,d(c){c&&ge(t)}}}function ou(e){let t,n=e[8]("sessionExpirationGeneralButton")+"",r;return{c(){t=te("span"),r=et(n),j(t,"class","CashierSessionExpirationButtonText")},m(i,s){Oe(i,t,s),J(t,r)},p(i,s){s[0]&256&&n!==(n=i[8]("sessionExpirationGeneralButton")+"")&&qt(r,n)},d(i){i&&ge(t)}}}function au(e){let t,n,r=e[5]&&Yr(e);return{c(){r&&r.c(),t=ri()},m(i,s){r&&r.m(i,s),Oe(i,t,s),n=!0},p(i,s){i[5]?r?(r.p(i,s),s[0]&32&&Ae(r,1)):(r=Yr(i),r.c(),Ae(r,1),r.m(t.parentNode,t)):r&&(si(),He(r,1,1,()=>{r=null}),oi())},i(i){n||(Ae(r),n=!0)},o(i){He(r),n=!1},d(i){i&&ge(t),r&&r.d(i)}}}const uu=90;function lu(e,t,n){let r,i;fr(e,jr,m=>n(20,r=m)),fr(e,xa,m=>n(8,i=m));let{$$slots:s={},$$scope:a}=t;Gr.extend(za);let{clientstyling:u=""}=t,{clientstylingurl:c=""}=t,{width:l}=t,{height:f}=t,{duration:_=200}=t,{assetsurl:y=""}=t,{lang:M="en"}=t,{translationurl:b=""}=t,{endpoint:d}=t,{currency:C}=t,{customerid:F}=t,{selectedpaymentmethodname:$}=t,{mbsource:A=""}=t,H,R=!1,k=!1,Y,V,Q,G,O;var ne;(function(m){m.PlayerSessionIsNotValid="PlayerSessionIsNotValid",m.Success="Success",m.JwtTokenError="JwtTokenError"})(ne||(ne={}));const he=m=>{m.data.type==="StartSessionCountdown"&&(G=m.data.paymentMethodName)},T=m=>{try{return JSON.parse(atob(m.split(".")[1]))}catch(U){return null}},E=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:O},window.location.href)},g=m=>{n(5,R=!1);const U=T(m);U&&(V=U==null?void 0:U.exp,n(7,Y=V),Q&&clearInterval(Q),Q=setInterval(()=>{const ee=Math.floor(new Date().getTime()/1e3);n(7,Y=V-ee),Y<=uu&&n(5,R=!0),ee>=V&&(v(),window.postMessage({type:"SessionExpired"},window.location.href))},1e3))},v=()=>{n(7,Y=0),n(5,R=!1),clearInterval(Q)},h=()=>{if(k)return;const m=new URL(`${d}/v1/player/${F}/payment/GetPaymentMethod`),U=new Headers;n(6,k=!0),U.append("accept","application/json"),U.append("Content-Type","application/json"),U.append("X-Client-Request-Timestamp",Gr.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const ee={method:"POST",mode:"cors",headers:U,body:JSON.stringify({PaymentMethodName:G||$,Currency:C,XPaymentSessionToken:r})};fetch(m,ee).then(K=>K.json()).then(K=>{if(K.error){window.postMessage({type:"ShowSessionError",error:K.error},window.location.href),v();return}if(K.ResponseCode===ne.PlayerSessionIsNotValid||K.ResponseCode===ne.JwtTokenError){O=K.ResponseCode,v(),E();return}if(K.ResponseCode!==ne.Success){O=K.ResponseCode,v();return}K.XPaymentSessionToken&&jr.set(K.XPaymentSessionToken)}).finally(()=>n(6,k=!1))},x=m=>{const U=m.currentTarget;m.target===U&&h()},L=()=>{fetch(b).then(U=>U.json()).then(U=>{Object.keys(U).forEach(ee=>{Nr(ee,U[ee])})}).catch(U=>{console.log(U)})};Object.keys(Hr).forEach(m=>{Nr(m,Hr[m])});const N=()=>{va(M)};gs(()=>(window.addEventListener("message",he,!1),()=>{window.removeEventListener("message",he)})),_s(()=>{clearInterval(Q)});function z(m){zt[m?"unshift":"push"](()=>{H=m,n(4,H)})}function I(){l=this.clientWidth,f=this.clientHeight,n(0,l),n(1,f)}function q(m){zt[m?"unshift":"push"](()=>{H=m,n(4,H)})}return e.$$set=m=>{"clientstyling"in m&&n(11,u=m.clientstyling),"clientstylingurl"in m&&n(12,c=m.clientstylingurl),"width"in m&&n(0,l=m.width),"height"in m&&n(1,f=m.height),"duration"in m&&n(2,_=m.duration),"assetsurl"in m&&n(3,y=m.assetsurl),"lang"in m&&n(13,M=m.lang),"translationurl"in m&&n(14,b=m.translationurl),"endpoint"in m&&n(15,d=m.endpoint),"currency"in m&&n(16,C=m.currency),"customerid"in m&&n(17,F=m.customerid),"selectedpaymentmethodname"in m&&n(18,$=m.selectedpaymentmethodname),"mbsource"in m&&n(19,A=m.mbsource),"$$scope"in m&&n(21,a=m.$$scope)},e.$$.update=()=>{e.$$.dirty[0]&1048576&&g(r),e.$$.dirty[0]&8192&&M&&N(),e.$$.dirty[0]&2064&&u&&H&&Wa(H,u),e.$$.dirty[0]&4112&&c&&H&&Va(H,c),e.$$.dirty[0]&524304&&A&&H&&Xa(H,`${A}.Style`),e.$$.dirty[0]&16384&&b&&L()},[l,f,_,y,H,R,k,Y,i,h,x,u,c,M,b,d,C,F,$,A,r,a,s,z,I,q]}class Fi extends Cs{constructor(t){super(),Os(this,t,lu,au,Jr,{clientstyling:11,clientstylingurl:12,width:0,height:1,duration:2,assetsurl:3,lang:13,translationurl:14,endpoint:15,currency:16,customerid:17,selectedpaymentmethodname:18,mbsource:19},Ya,[-1,-1])}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),le()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),le()}get width(){return this.$$.ctx[0]}set width(t){this.$$set({width:t}),le()}get height(){return this.$$.ctx[1]}set height(t){this.$$set({height:t}),le()}get duration(){return this.$$.ctx[2]}set duration(t){this.$$set({duration:t}),le()}get assetsurl(){return this.$$.ctx[3]}set assetsurl(t){this.$$set({assetsurl:t}),le()}get lang(){return this.$$.ctx[13]}set lang(t){this.$$set({lang:t}),le()}get translationurl(){return this.$$.ctx[14]}set translationurl(t){this.$$set({translationurl:t}),le()}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),le()}get currency(){return this.$$.ctx[16]}set currency(t){this.$$set({currency:t}),le()}get customerid(){return this.$$.ctx[17]}set customerid(t){this.$$set({customerid:t}),le()}get selectedpaymentmethodname(){return this.$$.ctx[18]}set selectedpaymentmethodname(t){this.$$set({selectedpaymentmethodname:t}),le()}get mbsource(){return this.$$.ctx[19]}set mbsource(t){this.$$set({mbsource:t}),le()}}Ms(Fi,{clientstyling:{},clientstylingurl:{},width:{},height:{},duration:{},assetsurl:{},lang:{},translationurl:{},endpoint:{},currency:{},customerid:{},selectedpaymentmethodname:{},mbsource:{}},["icon","title","text","button"],[],!0);exports.default=Fi;
9
+ `+me),_e&&Lt([ne,he,T],Se=>{me=lt(me,Se," ")}),H&&Tt?H.createHTML(me):me},t.setConfig=function(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};an(w),en=!0},t.clearConfig=function(){je=null,en=!1},t.isValidAttribute=function(w,o,p){je||an({});const S=re(w),W=re(o);return er(S,W,p)},t.addHook=function(w,o){typeof o=="function"&&(O[w]=O[w]||[],ut(O[w],o))},t.removeHook=function(w){if(O[w])return Pr(O[w])},t.removeHooks=function(w){O[w]&&(O[w]=[])},t.removeAllHooks=function(){O={}},t}var Fr=$i(),Ui={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ui,function(){var n=1e3,r=6e4,i=36e5,s="millisecond",a="second",u="minute",c="hour",l="day",f="week",_="month",y="quarter",M="year",b="date",d="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,F=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(T){var E=["th","st","nd","rd"],g=T%100;return"["+T+(E[(g-20)%10]||E[g]||E[0])+"]"}},A=function(T,E,g){var v=String(T);return!v||v.length>=E?T:""+Array(E+1-v.length).join(g)+T},H={s:A,z:function(T){var E=-T.utcOffset(),g=Math.abs(E),v=Math.floor(g/60),h=g%60;return(E<=0?"+":"-")+A(v,2,"0")+":"+A(h,2,"0")},m:function T(E,g){if(E.date()<g.date())return-T(g,E);var v=12*(g.year()-E.year())+(g.month()-E.month()),h=E.clone().add(v,_),x=g-h<0,L=E.clone().add(v+(x?-1:1),_);return+(-(v+(g-h)/(x?h-L:L-h))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:_,y:M,w:f,d:l,D:b,h:c,m:u,s:a,ms:s,Q:y}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},R="en",k={};k[R]=$;var Y="$isDayjsObject",V=function(T){return T instanceof ne||!(!T||!T[Y])},Q=function T(E,g,v){var h;if(!E)return R;if(typeof E=="string"){var x=E.toLowerCase();k[x]&&(h=x),g&&(k[x]=g,h=x);var L=E.split("-");if(!h&&L.length>1)return T(L[0])}else{var N=E.name;k[N]=E,h=N}return!v&&h&&(R=h),h||!v&&R},G=function(T,E){if(V(T))return T.clone();var g=typeof E=="object"?E:{};return g.date=T,g.args=arguments,new ne(g)},O=H;O.l=Q,O.i=V,O.w=function(T,E){return G(T,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var ne=function(){function T(g){this.$L=Q(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[Y]=!0}var E=T.prototype;return E.parse=function(g){this.$d=function(v){var h=v.date,x=v.utc;if(h===null)return new Date(NaN);if(O.u(h))return new Date;if(h instanceof Date)return new Date(h);if(typeof h=="string"&&!/Z$/i.test(h)){var L=h.match(C);if(L){var N=L[2]-1||0,z=(L[7]||"0").substring(0,3);return x?new Date(Date.UTC(L[1],N,L[3]||1,L[4]||0,L[5]||0,L[6]||0,z)):new Date(L[1],N,L[3]||1,L[4]||0,L[5]||0,L[6]||0,z)}}return new Date(h)}(g),this.init()},E.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},E.$utils=function(){return O},E.isValid=function(){return this.$d.toString()!==d},E.isSame=function(g,v){var h=G(g);return this.startOf(v)<=h&&h<=this.endOf(v)},E.isAfter=function(g,v){return G(g)<this.startOf(v)},E.isBefore=function(g,v){return this.endOf(v)<G(g)},E.$g=function(g,v,h){return O.u(g)?this[v]:this.set(h,g)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(g,v){var h=this,x=!!O.u(v)||v,L=O.p(g),N=function(ye,ie){var xe=O.w(h.$u?Date.UTC(h.$y,ie,ye):new Date(h.$y,ie,ye),h);return x?xe:xe.endOf(l)},z=function(ye,ie){return O.w(h.toDate()[ye].apply(h.toDate("s"),(x?[0,0,0,0]:[23,59,59,999]).slice(ie)),h)},I=this.$W,q=this.$M,m=this.$D,U="set"+(this.$u?"UTC":"");switch(L){case M:return x?N(1,0):N(31,11);case _:return x?N(1,q):N(0,q+1);case f:var ee=this.$locale().weekStart||0,K=(I<ee?I+7:I)-ee;return N(x?m-K:m+(6-K),q);case l:case b:return z(U+"Hours",0);case c:return z(U+"Minutes",1);case u:return z(U+"Seconds",2);case a:return z(U+"Milliseconds",3);default:return this.clone()}},E.endOf=function(g){return this.startOf(g,!1)},E.$set=function(g,v){var h,x=O.p(g),L="set"+(this.$u?"UTC":""),N=(h={},h[l]=L+"Date",h[b]=L+"Date",h[_]=L+"Month",h[M]=L+"FullYear",h[c]=L+"Hours",h[u]=L+"Minutes",h[a]=L+"Seconds",h[s]=L+"Milliseconds",h)[x],z=x===l?this.$D+(v-this.$W):v;if(x===_||x===M){var I=this.clone().set(b,1);I.$d[N](z),I.init(),this.$d=I.set(b,Math.min(this.$D,I.daysInMonth())).$d}else N&&this.$d[N](z);return this.init(),this},E.set=function(g,v){return this.clone().$set(g,v)},E.get=function(g){return this[O.p(g)]()},E.add=function(g,v){var h,x=this;g=Number(g);var L=O.p(v),N=function(q){var m=G(x);return O.w(m.date(m.date()+Math.round(q*g)),x)};if(L===_)return this.set(_,this.$M+g);if(L===M)return this.set(M,this.$y+g);if(L===l)return N(1);if(L===f)return N(7);var z=(h={},h[u]=r,h[c]=i,h[a]=n,h)[L]||1,I=this.$d.getTime()+g*z;return O.w(I,this)},E.subtract=function(g,v){return this.add(-1*g,v)},E.format=function(g){var v=this,h=this.$locale();if(!this.isValid())return h.invalidDate||d;var x=g||"YYYY-MM-DDTHH:mm:ssZ",L=O.z(this),N=this.$H,z=this.$m,I=this.$M,q=h.weekdays,m=h.months,U=h.meridiem,ee=function(ie,xe,_e,Ne){return ie&&(ie[xe]||ie(v,x))||_e[xe].slice(0,Ne)},K=function(ie){return O.s(N%12||12,ie,"0")},ye=U||function(ie,xe,_e){var Ne=ie<12?"AM":"PM";return _e?Ne.toLowerCase():Ne};return x.replace(F,function(ie,xe){return xe||function(_e){switch(_e){case"YY":return String(v.$y).slice(-2);case"YYYY":return O.s(v.$y,4,"0");case"M":return I+1;case"MM":return O.s(I+1,2,"0");case"MMM":return ee(h.monthsShort,I,m,3);case"MMMM":return ee(m,I);case"D":return v.$D;case"DD":return O.s(v.$D,2,"0");case"d":return String(v.$W);case"dd":return ee(h.weekdaysMin,v.$W,q,2);case"ddd":return ee(h.weekdaysShort,v.$W,q,3);case"dddd":return q[v.$W];case"H":return String(N);case"HH":return O.s(N,2,"0");case"h":return K(1);case"hh":return K(2);case"a":return ye(N,z,!0);case"A":return ye(N,z,!1);case"m":return String(z);case"mm":return O.s(z,2,"0");case"s":return String(v.$s);case"ss":return O.s(v.$s,2,"0");case"SSS":return O.s(v.$ms,3,"0");case"Z":return L}return null}(ie)||L.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(g,v,h){var x,L=this,N=O.p(v),z=G(g),I=(z.utcOffset()-this.utcOffset())*r,q=this-z,m=function(){return O.m(L,z)};switch(N){case M:x=m()/12;break;case _:x=m();break;case y:x=m()/3;break;case f:x=(q-I)/6048e5;break;case l:x=(q-I)/864e5;break;case c:x=q/i;break;case u:x=q/r;break;case a:x=q/n;break;default:x=q}return h?x:O.a(x)},E.daysInMonth=function(){return this.endOf(_).$D},E.$locale=function(){return k[this.$L]},E.locale=function(g,v){if(!g)return this.$L;var h=this.clone(),x=Q(g,v,!0);return x&&(h.$L=x),h},E.clone=function(){return O.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},T}(),he=ne.prototype;return G.prototype=he,[["$ms",s],["$s",a],["$m",u],["$H",c],["$W",l],["$M",_],["$y",M],["$D",b]].forEach(function(T){he[T[1]]=function(E){return this.$g(E,T[0],T[1])}}),G.extend=function(T,E){return T.$i||(T(E,ne,G),T.$i=!0),G},G.locale=Q,G.isDayjs=V,G.unix=function(T){return G(1e3*T)},G.en=k[R],G.Ls=k,G.p={},G})})(Ui);var Ga=Ui.exports;const Gr=Rn(Ga);var ki={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ui,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(s,a,u){var c=a.prototype;u.utc=function(d){var C={date:d,utc:!0,args:arguments};return new a(C)},c.utc=function(d){var C=u(this.toDate(),{locale:this.$L,utc:!0});return d?C.add(this.utcOffset(),n):C},c.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var l=c.parse;c.parse=function(d){d.utc&&(this.$u=!0),this.$utils().u(d.$offset)||(this.$offset=d.$offset),l.call(this,d)};var f=c.init;c.init=function(){if(this.$u){var d=this.$d;this.$y=d.getUTCFullYear(),this.$M=d.getUTCMonth(),this.$D=d.getUTCDate(),this.$W=d.getUTCDay(),this.$H=d.getUTCHours(),this.$m=d.getUTCMinutes(),this.$s=d.getUTCSeconds(),this.$ms=d.getUTCMilliseconds()}else f.call(this)};var _=c.utcOffset;c.utcOffset=function(d,C){var F=this.$utils().u;if(F(d))return this.$u?0:F(this.$offset)?_.call(this):this.$offset;if(typeof d=="string"&&(d=function(R){R===void 0&&(R="");var k=R.match(r);if(!k)return null;var Y=(""+k[0]).match(i)||["-",0,0],V=Y[0],Q=60*+Y[1]+ +Y[2];return Q===0?0:V==="+"?Q:-Q}(d),d===null))return this;var $=Math.abs(d)<=16?60*d:d,A=this;if(C)return A.$offset=$,A.$u=d===0,A;if(d!==0){var H=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(A=this.local().add($+H,n)).$offset=$,A.$x.$localOffset=H}else A=this.utc();return A};var y=c.format;c.format=function(d){var C=d||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return y.call(this,C)},c.valueOf=function(){var d=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*d},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var M=c.toDate;c.toDate=function(d){return d==="s"&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():M.call(this)};var b=c.diff;c.diff=function(d,C,F){if(d&&this.$u===d.$u)return b.call(this,d,C,F);var $=this.local(),A=u(d).local();return b.call($,A,C,F)}}})})(ki);var ja=ki.exports;const za=Rn(ja);let jr=Et(null);function Wa(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function Va(e,t){const n=new URL(t);fetch(n.href).then(r=>r.text()).then(r=>{const i=document.createElement("style");i.innerHTML=r,e&&e.appendChild(i)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Xa(e,t,n){if(window.emMessageBus){const r=document.createElement("style");window.emMessageBus.subscribe(t,i=>{r.innerHTML=i,e&&e.appendChild(r)})}}function Ya(e){ss(e,"svelte-122ajk5","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes loading-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.CashierSessionExpirationModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:15;top:0;left:0;background-color:var(--emw--color-black-transparency-20, rgba(0, 0, 0, 0.2));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);width:400px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;height:var(--emw--header-height, 40px);background-color:var(--emw--color-gray-10, rgba(17, 17, 17, 0.0666666667));width:100%;border-radius:var(--emw--border-radius-medium, 4px) var(--emw--border-radius-medium, 4px) 0 0}.CashierSessionExpirationModalHeaderTitle{display:flex;text-align:center;color:var(--emw--color-gray-10, #111);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis;line-height:calc(var(--emw--font-size-medium, 16px) + 2px)}.CashierSessionExpirationModalContainer{padding:var(--emw--spacing-large, 20px)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-white, #fff);background:var(--emw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.CashierSessionExpirationModalCloseBtn svg{width:32px;height:32px}.CashierSessionExpirationModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}.CashierSessionExpiration{width:100%;display:flex;flex-direction:column;align-items:center;gap:var(--emw--spacing-large, 20px)}.CashierSessionExpirationTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierSessionExpirationText{color:var(--emw--color-gray-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierSessionExpirationButton{display:flex;width:100%;height:36px;flex-direction:column;justify-content:center;align-items:center;flex-shrink:0;color:var(--emw--color-white, #FFF);cursor:pointer;text-align:center;font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);line-height:36px;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #7EC51E);border:none}.CashierSessionExpirationButton:hover{background:var(--emw--color-main-button-hover, #71B11B)}.CashierSessionExpirationButton:active{background:var(--emw--color-main-button-active, #5C950F)}.CashierSessionExpirationButton:disabled{background:var(--emw--color-main-button-disabled, #5C950F)}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-medium, 16px);font-family:inherit}.CashierSessionExpirationButtonSpinner{animation:loading-spinner 1s linear infinite}.ImagePlaceholder{height:250px;width:100%;background:#E6E6E6}@container session-expiration-modal-window (max-width:750px){.CashierSessionExpirationModalWindow .CashierSessionExpirationModalWrapper{width:90%;max-width:400px}}")}const Za=e=>({}),zr=e=>({}),qa=e=>({}),Wr=e=>({}),Ja=e=>({}),Vr=e=>({}),Qa=e=>({}),Xr=e=>({class:"CashierSessionExpirationIcon"});function Yr(e){let t,n,r,i,s,a=e[8]("sessionExpirationHeader")+"",u,c,l,f,_,y,M,b,d,C,F,$,A,H,R;const k=e[22].icon,Y=Ht(k,e,e[21],Xr),V=Y||tu(e),Q=e[22].title,G=Ht(Q,e,e[21],Vr),O=G||nu(e),ne=e[22].text,he=Ht(ne,e,e[21],Wr),T=he||ru(e),E=[su,iu],g=[];function v(h,x){return h[6]?0:1}return d=v(e),C=g[d]=E[d](e),{c(){t=te("div"),n=te("div"),r=te("div"),i=te("div"),s=te("div"),u=et(a),c=mt(),l=te("div"),f=te("div"),V&&V.c(),_=mt(),O&&O.c(),y=mt(),T&&T.c(),M=mt(),b=te("button"),C.c(),j(s,"class","CashierSessionExpirationModalHeaderTitle"),j(i,"class","CashierSessionExpirationModalHeader"),j(b,"type","button"),b.disabled=e[6],j(b,"class","CashierSessionExpirationButton"),j(f,"class","CashierSessionExpiration"),j(l,"class","CashierSessionExpirationModalContainer"),j(r,"class","CashierSessionExpirationModalWrapper"),j(n,"class","CashierSessionExpirationModalWindow"),j(n,"id","CashierSessionExpirationModal"),Ze(()=>e[24].call(n))},m(h,x){Oe(h,t,x),J(t,n),J(n,r),J(r,i),J(i,s),J(s,u),J(r,c),J(r,l),J(l,f),V&&V.m(f,null),J(f,_),O&&O.m(f,null),J(f,y),T&&T.m(f,null),J(f,M),J(f,b),g[d].m(b,null),e[23](f),F=ls(n,e[24].bind(n)),e[25](t),A=!0,H||(R=[Ft(b,"click",e[9]),Ft(n,"click",e[10])],H=!0)},p(h,x){e=h,(!A||x[0]&256)&&a!==(a=e[8]("sessionExpirationHeader")+"")&&qt(u,a),Y?Y.p&&(!A||x[0]&2097152)&&Pt(Y,k,e,e[21],A?It(k,e[21],x,Qa):Rt(e[21]),Xr):V&&V.p&&(!A||x[0]&8)&&V.p(e,A?x:[-1,-1]),G?G.p&&(!A||x[0]&2097152)&&Pt(G,Q,e,e[21],A?It(Q,e[21],x,Ja):Rt(e[21]),Vr):O&&O.p&&(!A||x[0]&256)&&O.p(e,A?x:[-1,-1]),he?he.p&&(!A||x[0]&2097152)&&Pt(he,ne,e,e[21],A?It(ne,e[21],x,qa):Rt(e[21]),Wr):T&&T.p&&(!A||x[0]&384)&&T.p(e,A?x:[-1,-1]);let L=d;d=v(e),d===L?g[d].p(e,x):(si(),He(g[L],1,1,()=>{g[L]=null}),oi(),C=g[d],C?C.p(e,x):(C=g[d]=E[d](e),C.c()),Ae(C,1),C.m(b,null)),(!A||x[0]&64)&&(b.disabled=e[6])},i(h){A||(Ae(V,h),Ae(O,h),Ae(T,h),Ae(C),h&&Ze(()=>{A&&($||($=pr(n,gr,{duration:e[2]},!0)),$.run(1))}),A=!0)},o(h){He(V,h),He(O,h),He(T,h),He(C),h&&($||($=pr(n,gr,{duration:e[2]},!1)),$.run(0)),A=!1},d(h){h&&ge(t),V&&V.d(h),O&&O.d(h),T&&T.d(h),g[d].d(),e[23](null),F(),h&&$&&$.end(),e[25](null),H=!1,Pe(R)}}}function Ka(e){let t;return{c(){t=te("div"),j(t,"class","ImagePlaceholder")},m(n,r){Oe(n,t,r)},p:de,d(n){n&&ge(t)}}}function eu(e){let t,n;return{c(){t=te("img"),cr(t.src,n=`${e[3]}/set-timeout-icon.png`)||j(t,"src",n),j(t,"width","300px"),j(t,"alt","error")},m(r,i){Oe(r,t,i)},p(r,i){i[0]&8&&!cr(t.src,n=`${r[3]}/set-timeout-icon.png`)&&j(t,"src",n)},d(r){r&&ge(t)}}}function tu(e){let t;function n(s,a){return s[3]?eu:Ka}let r=n(e),i=r(e);return{c(){i.c(),t=ri()},m(s,a){i.m(s,a),Oe(s,t,a)},p(s,a){r===(r=n(s))&&i?i.p(s,a):(i.d(1),i=r(s),i&&(i.c(),i.m(t.parentNode,t)))},d(s){s&&ge(t),i.d(s)}}}function nu(e){let t,n=e[8]("sessionExpirationTitle")+"",r;return{c(){t=te("span"),r=et(n),j(t,"class","CashierSessionExpirationTitle")},m(i,s){Oe(i,t,s),J(t,r)},p(i,s){s[0]&256&&n!==(n=i[8]("sessionExpirationTitle")+"")&&qt(r,n)},d(i){i&&ge(t)}}}function ru(e){let t,n=Fr.sanitize(e[8]("sessionExpirationGeneralText",{values:{second:e[7]}}))+"";return{c(){t=te("span"),j(t,"class","CashierSessionExpirationText")},m(r,i){Oe(r,t,i),t.innerHTML=n},p(r,i){i[0]&384&&n!==(n=Fr.sanitize(r[8]("sessionExpirationGeneralText",{values:{second:r[7]}}))+"")&&(t.innerHTML=n)},d(r){r&&ge(t)}}}function iu(e){let t;const n=e[22].button,r=Ht(n,e,e[21],zr),i=r||ou(e);return{c(){i&&i.c()},m(s,a){i&&i.m(s,a),t=!0},p(s,a){r?r.p&&(!t||a[0]&2097152)&&Pt(r,n,s,s[21],t?It(n,s[21],a,Za):Rt(s[21]),zr):i&&i.p&&(!t||a[0]&256)&&i.p(s,t?a:[-1,-1])},i(s){t||(Ae(i,s),t=!0)},o(s){He(i,s),t=!1},d(s){i&&i.d(s)}}}function su(e){let t,n,r,i,s,a=e[8]("sessionExpirationLoadingButton")+"",u;return{c(){t=te("div"),n=hr("svg"),r=hr("path"),i=mt(),s=te("span"),u=et(a),j(r,"d","M14.0282 6.58425C13.9037 4.05374 12.3688 1.68916 10.0872 0.61058C7.59818 -0.509483 4.56986 -0.0531603 2.49567 1.68916C0.504443 3.34851 -0.408201 6.04496 0.172573 8.57547C0.711862 11.0645 2.6616 13.0972 5.10915 13.7609C8.0545 14.5906 10.7509 13.1802 12.4103 10.7741C10.9169 12.7653 8.63527 14.0928 6.10476 13.6365C3.57424 13.1802 1.50005 11.2719 0.919281 8.78289C0.297024 6.12793 1.54154 3.34851 3.90612 1.97955C6.35366 0.569097 9.79682 1.10839 11.4147 3.51445C11.8295 4.09522 12.1199 4.80045 12.2444 5.50567C12.3688 6.08644 12.3273 6.7087 12.4103 7.28947C12.4933 7.82876 12.9496 8.53399 13.5718 8.16063C14.1111 7.82876 14.0696 7.12354 14.0282 6.58425C14.0696 6.87464 14.0282 6.41831 14.0282 6.58425Z"),j(r,"fill","white"),j(n,"class","CashierSessionExpirationButtonSpinner"),j(n,"xmlns","http://www.w3.org/2000/svg"),j(n,"width","15"),j(n,"height","14"),j(n,"viewBox","0 0 15 14"),j(n,"fill","none"),j(s,"class","CashierSessionExpirationButtonText")},m(c,l){Oe(c,t,l),J(t,n),J(n,r),J(t,i),J(t,s),J(s,u)},p(c,l){l[0]&256&&a!==(a=c[8]("sessionExpirationLoadingButton")+"")&&qt(u,a)},i:de,o:de,d(c){c&&ge(t)}}}function ou(e){let t,n=e[8]("sessionExpirationGeneralButton")+"",r;return{c(){t=te("span"),r=et(n),j(t,"class","CashierSessionExpirationButtonText")},m(i,s){Oe(i,t,s),J(t,r)},p(i,s){s[0]&256&&n!==(n=i[8]("sessionExpirationGeneralButton")+"")&&qt(r,n)},d(i){i&&ge(t)}}}function au(e){let t,n,r=e[5]&&Yr(e);return{c(){r&&r.c(),t=ri()},m(i,s){r&&r.m(i,s),Oe(i,t,s),n=!0},p(i,s){i[5]?r?(r.p(i,s),s[0]&32&&Ae(r,1)):(r=Yr(i),r.c(),Ae(r,1),r.m(t.parentNode,t)):r&&(si(),He(r,1,1,()=>{r=null}),oi())},i(i){n||(Ae(r),n=!0)},o(i){He(r),n=!1},d(i){i&&ge(t),r&&r.d(i)}}}const uu=90;function lu(e,t,n){let r,i;fr(e,jr,m=>n(20,r=m)),fr(e,xa,m=>n(8,i=m));let{$$slots:s={},$$scope:a}=t;Gr.extend(za);let{clientstyling:u=""}=t,{clientstylingurl:c=""}=t,{width:l}=t,{height:f}=t,{duration:_=200}=t,{assetsurl:y=""}=t,{lang:M="en"}=t,{translationurl:b=""}=t,{endpoint:d}=t,{currency:C}=t,{customerid:F}=t,{selectedpaymentmethodname:$}=t,{mbsource:A=""}=t,H,R=!1,k=!1,Y,V,Q,G,O;var ne;(function(m){m.PlayerSessionIsNotValid="PlayerSessionIsNotValid",m.Success="Success",m.JwtTokenError="JwtTokenError"})(ne||(ne={}));const he=m=>{m.data.type==="StartSessionCountdown"&&(G=m.data.paymentMethodName)},T=m=>{try{return JSON.parse(atob(m.split(".")[1]))}catch(U){return null}},E=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:O},window.location.href)},g=m=>{n(5,R=!1);const U=T(m);U&&(V=U==null?void 0:U.exp,n(7,Y=V),Q&&clearInterval(Q),Q=setInterval(()=>{const ee=Math.floor(new Date().getTime()/1e3);n(7,Y=V-ee),Y<=uu&&n(5,R=!0),ee>=V&&(v(),window.postMessage({type:"SessionExpired"},window.location.href))},1e3))},v=()=>{n(7,Y=0),n(5,R=!1),clearInterval(Q)},h=()=>{if(k)return;const m=new URL(`${d}/v1/player/${F}/payment/GetPaymentMethod`),U=new Headers;n(6,k=!0),U.append("accept","application/json"),U.append("Content-Type","application/json"),U.append("X-Client-Request-Timestamp",Gr.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const ee={method:"POST",mode:"cors",headers:U,body:JSON.stringify({PaymentMethodName:G||$,Currency:C,XPaymentSessionToken:r})};fetch(m,ee).then(K=>K.json()).then(K=>{if(K.error){window.postMessage({type:"ShowSessionError",error:K.error},window.location.href),v();return}if(K.ResponseCode===ne.PlayerSessionIsNotValid||K.ResponseCode===ne.JwtTokenError){O=K.ResponseCode,v(),E();return}if(K.ResponseCode!==ne.Success){O=K.ResponseCode,v();return}K.XPaymentSessionToken&&jr.set(K.XPaymentSessionToken)}).finally(()=>n(6,k=!1))},x=m=>{const U=m.currentTarget;m.target===U&&h()},L=()=>{fetch(b).then(U=>U.json()).then(U=>{Object.keys(U).forEach(ee=>{Nr(ee,U[ee])})}).catch(U=>{console.log(U)})};Object.keys(Hr).forEach(m=>{Nr(m,Hr[m])});const N=()=>{va(M)};gs(()=>(window.addEventListener("message",he,!1),()=>{window.removeEventListener("message",he)})),_s(()=>{clearInterval(Q)});function z(m){zt[m?"unshift":"push"](()=>{H=m,n(4,H)})}function I(){l=this.clientWidth,f=this.clientHeight,n(0,l),n(1,f)}function q(m){zt[m?"unshift":"push"](()=>{H=m,n(4,H)})}return e.$$set=m=>{"clientstyling"in m&&n(11,u=m.clientstyling),"clientstylingurl"in m&&n(12,c=m.clientstylingurl),"width"in m&&n(0,l=m.width),"height"in m&&n(1,f=m.height),"duration"in m&&n(2,_=m.duration),"assetsurl"in m&&n(3,y=m.assetsurl),"lang"in m&&n(13,M=m.lang),"translationurl"in m&&n(14,b=m.translationurl),"endpoint"in m&&n(15,d=m.endpoint),"currency"in m&&n(16,C=m.currency),"customerid"in m&&n(17,F=m.customerid),"selectedpaymentmethodname"in m&&n(18,$=m.selectedpaymentmethodname),"mbsource"in m&&n(19,A=m.mbsource),"$$scope"in m&&n(21,a=m.$$scope)},e.$$.update=()=>{e.$$.dirty[0]&1048576&&g(r),e.$$.dirty[0]&8192&&M&&N(),e.$$.dirty[0]&2064&&u&&H&&Wa(H,u),e.$$.dirty[0]&4112&&c&&H&&Va(H,c),e.$$.dirty[0]&524304&&A&&H&&Xa(H,`${A}.Style`),e.$$.dirty[0]&16384&&b&&L()},[l,f,_,y,H,R,k,Y,i,h,x,u,c,M,b,d,C,F,$,A,r,a,s,z,I,q]}class Fi extends Cs{constructor(t){super(),Os(this,t,lu,au,Jr,{clientstyling:11,clientstylingurl:12,width:0,height:1,duration:2,assetsurl:3,lang:13,translationurl:14,endpoint:15,currency:16,customerid:17,selectedpaymentmethodname:18,mbsource:19},Ya,[-1,-1])}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),le()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),le()}get width(){return this.$$.ctx[0]}set width(t){this.$$set({width:t}),le()}get height(){return this.$$.ctx[1]}set height(t){this.$$set({height:t}),le()}get duration(){return this.$$.ctx[2]}set duration(t){this.$$set({duration:t}),le()}get assetsurl(){return this.$$.ctx[3]}set assetsurl(t){this.$$set({assetsurl:t}),le()}get lang(){return this.$$.ctx[13]}set lang(t){this.$$set({lang:t}),le()}get translationurl(){return this.$$.ctx[14]}set translationurl(t){this.$$set({translationurl:t}),le()}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),le()}get currency(){return this.$$.ctx[16]}set currency(t){this.$$set({currency:t}),le()}get customerid(){return this.$$.ctx[17]}set customerid(t){this.$$set({customerid:t}),le()}get selectedpaymentmethodname(){return this.$$.ctx[18]}set selectedpaymentmethodname(t){this.$$set({selectedpaymentmethodname:t}),le()}get mbsource(){return this.$$.ctx[19]}set mbsource(t){this.$$set({mbsource:t}),le()}}Ms(Fi,{clientstyling:{},clientstylingurl:{},width:{},height:{},duration:{},assetsurl:{},lang:{},translationurl:{},endpoint:{},currency:{},customerid:{},selectedpaymentmethodname:{},mbsource:{}},["icon","title","text","button"],[],!0);exports.default=Fi;
@@ -4973,7 +4973,7 @@ function Va(e, t, n) {
4973
4973
  }
4974
4974
  }
4975
4975
  function Xa(e) {
4976
- is(e, "svelte-iiiimw", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes loading-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.CashierSessionExpirationModalWindow{display:flex;position:absolute;align-items:center;justify-content:center;width:100%;height:100%;z-index:15;top:0;left:0;background-color:var(--emw--color-black-transparency-20, rgba(0, 0, 0, 0.2));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);width:400px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;height:var(--emw--header-height, 40px);background-color:var(--emw--color-gray-10, rgba(17, 17, 17, 0.0666666667));width:100%;border-radius:var(--emw--border-radius-medium, 4px) var(--emw--border-radius-medium, 4px) 0 0}.CashierSessionExpirationModalHeaderTitle{display:flex;text-align:center;color:var(--emw--color-gray-10, #111);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis;line-height:calc(var(--emw--font-size-medium, 16px) + 2px)}.CashierSessionExpirationModalContainer{padding:var(--emw--spacing-large, 20px)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-white, #fff);background:var(--emw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.CashierSessionExpirationModalCloseBtn svg{width:32px;height:32px}.CashierSessionExpirationModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}.CashierSessionExpiration{width:100%;display:flex;flex-direction:column;align-items:center;gap:var(--emw--spacing-large, 20px)}.CashierSessionExpirationTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierSessionExpirationText{color:var(--emw--color-gray-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierSessionExpirationButton{display:flex;width:100%;height:36px;flex-direction:column;justify-content:center;align-items:center;flex-shrink:0;color:var(--emw--color-white, #FFF);cursor:pointer;text-align:center;font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);line-height:36px;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #7EC51E);border:none}.CashierSessionExpirationButton:hover{background:var(--emw--color-main-button-hover, #71B11B)}.CashierSessionExpirationButton:active{background:var(--emw--color-main-button-active, #5C950F)}.CashierSessionExpirationButton:disabled{background:var(--emw--color-main-button-disabled, #5C950F)}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-medium, 16px);font-family:inherit}.CashierSessionExpirationButtonSpinner{animation:loading-spinner 1s linear infinite}.ImagePlaceholder{height:250px;width:100%;background:#E6E6E6}@container session-expiration-modal-window (max-width:750px){.CashierSessionExpirationModalWindow .CashierSessionExpirationModalWrapper{width:90%;max-width:400px}}");
4976
+ is(e, "svelte-122ajk5", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes loading-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.CashierSessionExpirationModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:15;top:0;left:0;background-color:var(--emw--color-black-transparency-20, rgba(0, 0, 0, 0.2));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);width:400px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;height:var(--emw--header-height, 40px);background-color:var(--emw--color-gray-10, rgba(17, 17, 17, 0.0666666667));width:100%;border-radius:var(--emw--border-radius-medium, 4px) var(--emw--border-radius-medium, 4px) 0 0}.CashierSessionExpirationModalHeaderTitle{display:flex;text-align:center;color:var(--emw--color-gray-10, #111);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis;line-height:calc(var(--emw--font-size-medium, 16px) + 2px)}.CashierSessionExpirationModalContainer{padding:var(--emw--spacing-large, 20px)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-white, #fff);background:var(--emw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.CashierSessionExpirationModalCloseBtn svg{width:32px;height:32px}.CashierSessionExpirationModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}.CashierSessionExpiration{width:100%;display:flex;flex-direction:column;align-items:center;gap:var(--emw--spacing-large, 20px)}.CashierSessionExpirationTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierSessionExpirationText{color:var(--emw--color-gray-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierSessionExpirationButton{display:flex;width:100%;height:36px;flex-direction:column;justify-content:center;align-items:center;flex-shrink:0;color:var(--emw--color-white, #FFF);cursor:pointer;text-align:center;font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);line-height:36px;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #7EC51E);border:none}.CashierSessionExpirationButton:hover{background:var(--emw--color-main-button-hover, #71B11B)}.CashierSessionExpirationButton:active{background:var(--emw--color-main-button-active, #5C950F)}.CashierSessionExpirationButton:disabled{background:var(--emw--color-main-button-disabled, #5C950F)}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-medium, 16px);font-family:inherit}.CashierSessionExpirationButtonSpinner{animation:loading-spinner 1s linear infinite}.ImagePlaceholder{height:250px;width:100%;background:#E6E6E6}@container session-expiration-modal-window (max-width:750px){.CashierSessionExpirationModalWindow .CashierSessionExpirationModalWrapper{width:90%;max-width:400px}}");
4977
4977
  }
4978
4978
  const Ya = (e) => ({}), zr = (e) => ({}), Za = (e) => ({}), Wr = (e) => ({}), qa = (e) => ({}), Vr = (e) => ({}), Ja = (e) => ({}), Xr = (e) => ({ class: "CashierSessionExpirationIcon" });
4979
4979
  function Yr(e) {
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/CashierSessionExpirationModal-Dh31Mpxn.cjs")).then(({default:t})=>{!customElements.get("cashier-session-expiration-modal")&&customElements.define("cashier-session-expiration-modal",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/CashierSessionExpirationModal-DyPySpmH.cjs")).then(({default:t})=>{!customElements.get("cashier-session-expiration-modal")&&customElements.define("cashier-session-expiration-modal",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CashierSessionExpirationModal-BSYrUsYK.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CashierSessionExpirationModal-Wl8GAMRI.js").then(({ default: t }) => {
14
14
  !customElements.get("cashier-session-expiration-modal") && customElements.define("cashier-session-expiration-modal", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as n } from "../components/CashierSessionExpirationModal-BbrJrSTH.js";
1
+ import { C as n } from "../components/CashierSessionExpirationModal-Cfjtll5A.js";
2
2
  function i(s) {
3
3
  return function(...t) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/cashier-session-expiration-modal",
3
- "version": "1.76.4",
3
+ "version": "1.76.6",
4
4
  "type": "module",
5
5
  "main": "es2015/cashier-session-expiration-modal.cjs",
6
6
  "module": "esnext/cashier-session-expiration-modal.js",