@everymatrix/cashier-session-expiration-modal 1.85.20 → 1.85.22

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.
@@ -0,0 +1,9 @@
1
+ "use strict";var qi=Object.defineProperty,Ji=Object.defineProperties;var Qi=Object.getOwnPropertyDescriptors;var sr=Object.getOwnPropertySymbols;var Ki=Object.prototype.hasOwnProperty,eo=Object.prototype.propertyIsEnumerable;var un=(e,t,n)=>t in e?qi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ar=(e,t)=>{for(var n in t||(t={}))Ki.call(t,n)&&un(e,n,t[n]);if(sr)for(var n of sr(t))eo.call(t,n)&&un(e,n,t[n]);return e},lr=(e,t)=>Ji(e,Qi(t));var ve=(e,t,n)=>(un(e,typeof t!="symbol"?t+"":t,n),n);var ur=(e,t,n)=>new Promise((r,i)=>{var o=c=>{try{a(n.next(c))}catch(u){i(u)}},l=c=>{try{a(n.throw(c))}catch(u){i(u)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,l);a((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function ye(){}const qr=e=>e;function to(e,t){for(const n in t)e[n]=t[n];return e}function Jr(e){return e()}function cr(){return Object.create(null)}function Ue(e){e.forEach(Jr)}function Kt(e){return typeof e=="function"}function Qr(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let Nt;function fr(e,t){return e===t?!0:(Nt||(Nt=document.createElement("a")),Nt.href=t,e===Nt.href)}function no(e){return Object.keys(e).length===0}function Kr(e,...t){if(e==null){for(const r of t)r(void 0);return ye}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function hr(e,t,n){e.$$.on_destroy.push(Kr(t,n))}function Bt(e,t,n,r){if(e){const i=ei(e,t,n,r);return e[0](i)}}function ei(e,t,n,r){return e[1]&&r?to(n.ctx.slice(),e[1](r(t))):n.ctx}function $t(e,t,n,r){if(e[2]&&r){const i=e[2](r(n));if(t.dirty===void 0)return i;if(typeof i=="object"){const o=[],l=Math.max(t.dirty.length,i.length);for(let a=0;a<l;a+=1)o[a]=t.dirty[a]|i[a];return o}return t.dirty|i}return t.dirty}function Ut(e,t,n,r,i,o){if(i){const l=ei(t,n,r,o);e.p(l,i)}}function kt(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let r=0;r<n;r++)t[r]=-1;return t}return-1}const ti=typeof window!="undefined";let ro=ti?()=>window.performance.now():()=>Date.now(),Pn=ti?e=>requestAnimationFrame(e):ye;const Ke=new Set;function ni(e){Ke.forEach(t=>{t.c(e)||(Ke.delete(t),t.f())}),Ke.size!==0&&Pn(ni)}function io(e){let t;return Ke.size===0&&Pn(ni),{promise:new Promise(n=>{Ke.add(t={c:e,f:n})}),abort(){Ke.delete(t)}}}function B(e,t){e.appendChild(t)}function oo(e,t,n){const r=Rn(e);if(!r.getElementById(t)){const i=te("style");i.id=t,i.textContent=n,ri(r,i)}}function Rn(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function so(e){const t=te("style");return t.textContent="/* empty */",ri(Rn(e),t),t.sheet}function ri(e,t){return B(e.head||e,t),t.sheet}function ke(e,t,n){e.insertBefore(t,n||null)}function Ae(e){e.parentNode&&e.parentNode.removeChild(e)}function te(e){return document.createElement(e)}function Se(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function je(e){return document.createTextNode(e)}function Re(){return je(" ")}function ao(){return je("")}function Qe(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function w(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function lo(e){return Array.from(e.childNodes)}function yt(e,t){t=""+t,e.data!==t&&(e.data=t)}let It;function uo(){if(It===void 0){It=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(e){It=!0}}return It}function co(e,t){getComputedStyle(e).position==="static"&&(e.style.position="relative");const r=te("iframe");r.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),r.setAttribute("aria-hidden","true"),r.tabIndex=-1;const i=uo();let o;return i?(r.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",o=Qe(window,"message",l=>{l.source===r.contentWindow&&t()})):(r.src="about:blank",r.onload=()=>{o=Qe(r.contentWindow,"resize",t),t()}),B(e,r),()=>{(i||o&&r.contentWindow)&&o(),Ae(r)}}function fo(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function ho(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}const Vt=new Map;let Xt=0;function mo(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function po(e,t){const n={stylesheet:so(t),rules:{}};return Vt.set(e,n),n}function mr(e,t,n,r,i,o,l,a=0){const c=16.666/r;let u=`{
2
+ `;for(let N=0;N<=1;N+=c){const U=t+(n-t)*o(N);u+=N*100+`%{${l(U,1-U)}}
3
+ `}const f=u+`100% {${l(n,1-n)}}
4
+ }`,m=`__svelte_${mo(f)}_${a}`,y=Rn(e),{stylesheet:A,rules:x}=Vt.get(y)||po(y,e);x[m]||(x[m]=!0,A.insertRule(`@keyframes ${m} ${f}`,A.cssRules.length));const g=e.style.animation||"";return e.style.animation=`${g?`${g}, `:""}${m} ${r}ms linear ${i}ms 1 both`,Xt+=1,m}function go(e,t){const n=(e.style.animation||"").split(", "),r=n.filter(t?o=>o.indexOf(t)<0:o=>o.indexOf("__svelte")===-1),i=n.length-r.length;i&&(e.style.animation=r.join(", "),Xt-=i,Xt||_o())}function _o(){Pn(()=>{Xt||(Vt.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&Ae(t)}),Vt.clear())})}let xt;function Et(e){xt=e}function ii(){if(!xt)throw new Error("Function called outside component initialization");return xt}function bo(e){ii().$$.on_mount.push(e)}function Eo(e){ii().$$.on_destroy.push(e)}const Je=[],Yt=[];let et=[];const pr=[],yo=Promise.resolve();let Tn=!1;function xo(){Tn||(Tn=!0,yo.then(de))}function tt(e){et.push(e)}const cn=new Set;let Ze=0;function de(){if(Ze!==0)return;const e=xt;do{try{for(;Ze<Je.length;){const t=Je[Ze];Ze++,Et(t),vo(t.$$)}}catch(t){throw Je.length=0,Ze=0,t}for(Et(null),Je.length=0,Ze=0;Yt.length;)Yt.pop()();for(let t=0;t<et.length;t+=1){const n=et[t];cn.has(n)||(cn.add(n),n())}et.length=0}while(Je.length);for(;pr.length;)pr.pop()();Tn=!1,cn.clear(),Et(e)}function vo(e){if(e.fragment!==null){e.update(),Ue(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(tt)}}function To(e){const t=[],n=[];et.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),et=t}let ft;function So(){return ft||(ft=Promise.resolve(),ft.then(()=>{ft=null})),ft}function fn(e,t,n){e.dispatchEvent(fo(`${t?"intro":"outro"}${n}`))}const Ft=new Set;let De;function oi(){De={r:0,c:[],p:De}}function si(){De.r||Ue(De.c),De=De.p}function He(e,t){e&&e.i&&(Ft.delete(e),e.i(t))}function Be(e,t,n,r){if(e&&e.o){if(Ft.has(e))return;Ft.add(e),De.c.push(()=>{Ft.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}const wo={duration:0};function dr(e,t,n,r){let o=t(e,n,{direction:"both"}),l=r?0:1,a=null,c=null,u=null,f;function m(){u&&go(e,u)}function y(x,g){const N=x.b-l;return g*=Math.abs(N),{a:l,b:x.b,d:N,duration:g,start:x.start,end:x.start+g,group:x.group}}function A(x){const{delay:g=0,duration:N=300,easing:U=qr,tick:V=ye,css:R}=o||wo,H={start:ro()+g,b:x};x||(H.group=De,De.r+=1),"inert"in e&&(x?f!==void 0&&(e.inert=f):(f=e.inert,e.inert=!0)),a||c?c=H:(R&&(m(),u=mr(e,l,x,N,g,U,R)),x&&V(0,1),a=y(H,N),tt(()=>fn(e,x,"start")),io(I=>{if(c&&I>c.start&&(a=y(c,N),c=null,fn(e,a.b,"start"),R&&(m(),u=mr(e,l,a.b,a.duration,0,U,o.css))),a){if(I>=a.end)V(l=a.b,1-l),fn(e,a.b,"end"),c||(a.b?m():--a.group.r||Ue(a.group.c)),a=null;else if(I>=a.start){const W=I-a.start;l=a.a+a.d*U(W/a.duration),V(l,1-l)}}return!!(a||c)}))}return{run(x){Kt(o)?So().then(()=>{o=o({direction:x?"in":"out"}),A(x)}):A(x)},end(){m(),a=c=null}}}function Ao(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),tt(()=>{const o=e.$$.on_mount.map(Jr).filter(Kt);e.$$.on_destroy?e.$$.on_destroy.push(...o):Ue(o),e.$$.on_mount=[]}),i.forEach(tt)}function Oo(e,t){const n=e.$$;n.fragment!==null&&(To(n.after_update),Ue(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Mo(e,t){e.$$.dirty[0]===-1&&(Je.push(e),xo(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Co(e,t,n,r,i,o,l=null,a=[-1]){const c=xt;Et(e);const u=e.$$={fragment:null,ctx:[],props:o,update:ye,not_equal:i,bound:cr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:cr(),dirty:a,skip_bound:!1,root:t.target||c.$$.root};l&&l(u.root);let f=!1;if(u.ctx=n?n(e,t.props||{},(m,y,...A)=>{const x=A.length?A[0]:y;return u.ctx&&i(u.ctx[m],u.ctx[m]=x)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](x),f&&Mo(e,m)),y}):[],u.update(),f=!0,Ue(u.before_update),u.fragment=r?r(u.ctx):!1,t.target){if(t.hydrate){const m=lo(t.target);u.fragment&&u.fragment.l(m),m.forEach(Ae)}else u.fragment&&u.fragment.c();t.intro&&He(e.$$.fragment),Ao(e,t.target,t.anchor),de()}Et(c)}let ai;typeof HTMLElement=="function"&&(ai=class extends HTMLElement{constructor(t,n,r){super();ve(this,"$$ctor");ve(this,"$$s");ve(this,"$$c");ve(this,"$$cn",!1);ve(this,"$$d",{});ve(this,"$$r",!1);ve(this,"$$p_d",{});ve(this,"$$l",{});ve(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(t,n,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const i=this.$$c.$on(t,n);this.$$l_u.set(n,i)}super.addEventListener(t,n,r)}removeEventListener(t,n,r){if(super.removeEventListener(t,n,r),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}connectedCallback(){return ur(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let l;return{c:function(){l=te("slot"),o!=="default"&&w(l,"name",o)},m:function(u,f){ke(u,l,f)},d:function(u){u&&Ae(l)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=ho(this);for(const o of this.$$s)o in r&&(n[o]=[t(o)]);for(const o of this.attributes){const l=this.$$g_p(o.name);l in this.$$d||(this.$$d[l]=Gt(l,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:lr(ar({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const l=Gt(o,this.$$d[o],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,l)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const l of this.$$l[o]){const a=this.$$c.$on(o,l);this.$$l_u.set(l,a)}this.$$l={}}})}attributeChangedCallback(t,n,r){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Gt(t,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function Gt(e,t,n,r){var o;const i=(o=n[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Lo(e,t,n,r,i,o){let l=class extends ai{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(l.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(c){var u;c=Gt(a,c,t),this.$$d[a]=c,(u=this.$$c)==null||u.$set({[a]:c})}})}),r.forEach(a=>{Object.defineProperty(l.prototype,a,{get(){var c;return(c=this.$$c)==null?void 0:c[a]}})}),e.element=l,l}class Ho{constructor(){ve(this,"$$");ve(this,"$$set")}$destroy(){Oo(this,1),this.$destroy=ye}$on(t,n){if(!Kt(n))return ye;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!no(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const No="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(No);function gr(e,{delay:t=0,duration:n=400,easing:r=qr}={}){const i=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:r,css:o=>`opacity: ${o*i}`}}const qe=[];function Io(e,t){return{subscribe:St(e,t).subscribe}}function St(e,t=ye){let n;const r=new Set;function i(a){if(Qr(e,a)&&(e=a,n)){const c=!qe.length;for(const u of r)u[1](),qe.push(u,e);if(c){for(let u=0;u<qe.length;u+=2)qe[u][0](qe[u+1]);qe.length=0}}}function o(a){i(a(e))}function l(a,c=ye){const u=[a,c];return r.add(u),r.size===1&&(n=t(i,o)||ye),a(e),()=>{r.delete(u),r.size===0&&n&&(n(),n=null)}}return{set:i,update:o,subscribe:l}}function st(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Io(n,(l,a)=>{let c=!1;const u=[];let f=0,m=ye;const y=()=>{if(f)return;m();const x=t(r?u[0]:u,l,a);o?l(x):m=Kt(x)?x:ye},A=i.map((x,g)=>Kr(x,N=>{u[g]=N,f&=~(1<<g),c&&y()},()=>{f|=1<<g}));return c=!0,y(),function(){Ue(A),m(),c=!1}})}var li=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Dn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Po=function(t){return Ro(t)&&!Do(t)};function Ro(e){return!!e&&typeof e=="object"}function Do(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Uo(e)}var Bo=typeof Symbol=="function"&&Symbol.for,$o=Bo?Symbol.for("react.element"):60103;function Uo(e){return e.$$typeof===$o}function ko(e){return Array.isArray(e)?[]:{}}function vt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?nt(ko(e),e,t):e}function Fo(e,t,n){return e.concat(t).map(function(r){return vt(r,n)})}function Go(e,t){if(!t.customMerge)return nt;var n=t.customMerge(e);return typeof n=="function"?n:nt}function jo(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function _r(e){return Object.keys(e).concat(jo(e))}function ui(e,t){try{return t in e}catch(n){return!1}}function zo(e,t){return ui(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Wo(e,t,n){var r={};return n.isMergeableObject(e)&&_r(e).forEach(function(i){r[i]=vt(e[i],n)}),_r(t).forEach(function(i){zo(e,i)||(ui(e,i)&&n.isMergeableObject(t[i])?r[i]=Go(i,n)(e[i],t[i],n):r[i]=vt(t[i],n))}),r}function nt(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Fo,n.isMergeableObject=n.isMergeableObject||Po,n.cloneUnlessOtherwiseSpecified=vt;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):Wo(e,t,n):vt(t,n)}nt.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return nt(r,i,n)},{})};var Vo=nt,Xo=Vo;const Yo=Dn(Xo);var Sn=function(e,t){return Sn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Sn(e,t)};function en(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Sn(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ne=function(){return Ne=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Ne.apply(this,arguments)};function Zo(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function hn(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function mn(e,t){var n=t&&t.cache?t.cache:ns,r=t&&t.serializer?t.serializer:es,i=t&&t.strategy?t.strategy:Qo;return i(e,{cache:n,serializer:r})}function qo(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Jo(e,t,n,r){var i=qo(r)?r:n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,r),t.set(i,o)),o}function ci(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.apply(this,r),t.set(i,o)),o}function fi(e,t,n,r,i){return n.bind(t,e,r,i)}function Qo(e,t){var n=e.length===1?Jo:ci;return fi(e,this,n,t.cache.create(),t.serializer)}function Ko(e,t){return fi(e,this,ci,t.cache.create(),t.serializer)}var es=function(){return JSON.stringify(arguments)},ts=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e}(),ns={create:function(){return new ts}},pn={variadic:Ko},Zt=function(){return Zt=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Zt.apply(this,arguments)};var F;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(F||(F={}));var Q;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Q||(Q={}));var rt;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(rt||(rt={}));function br(e){return e.type===Q.literal}function rs(e){return e.type===Q.argument}function hi(e){return e.type===Q.number}function mi(e){return e.type===Q.date}function pi(e){return e.type===Q.time}function di(e){return e.type===Q.select}function gi(e){return e.type===Q.plural}function is(e){return e.type===Q.pound}function _i(e){return e.type===Q.tag}function bi(e){return!!(e&&typeof e=="object"&&e.type===rt.number)}function wn(e){return!!(e&&typeof e=="object"&&e.type===rt.dateTime)}var Ei=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,os=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function ss(e){var t={};return e.replace(os,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var ie=function(){return ie=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},ie.apply(this,arguments)};var as=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ls(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(as).filter(function(y){return y.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[r],l=o.split("/");if(l.length===0)throw new Error("Invalid number skeleton");for(var a=l[0],c=l.slice(1),u=0,f=c;u<f.length;u++){var m=f[u];if(m.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:c})}return n}function us(e){return e.replace(/^(.*?)-/,"")}var Er=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,yi=/^(@+)?(\+|#+)?[rs]?$/g,cs=/(\*)(0+)|(#+)(0+)|(0+)/g,xi=/^(0+)$/;function yr(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(yi,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function vi(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function fs(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!xi.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function xr(e){var t={},n=vi(e);return n||t}function hs(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=us(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=ie(ie(ie({},t),{notation:"scientific"}),i.options.reduce(function(c,u){return ie(ie({},c),xr(u))},{}));continue;case"engineering":t=ie(ie(ie({},t),{notation:"engineering"}),i.options.reduce(function(c,u){return ie(ie({},c),xr(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(cs,function(c,u,f,m,y,A){if(u)t.minimumIntegerDigits=f.length;else{if(m&&y)throw new Error("We currently do not support maximum integer digits");if(A)throw new Error("We currently do not support exact integer digits")}return""});continue}if(xi.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Er.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Er,function(c,u,f,m,y,A){return f==="*"?t.minimumFractionDigits=u.length:m&&m[0]==="#"?t.maximumFractionDigits=m.length:y&&A?(t.minimumFractionDigits=y.length,t.maximumFractionDigits=y.length+A.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?t=ie(ie({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=ie(ie({},t),yr(o)));continue}if(yi.test(i.stem)){t=ie(ie({},t),yr(i.stem));continue}var l=vi(i.stem);l&&(t=ie(ie({},t),l));var a=fs(i.stem);a&&(t=ie(ie({},t),a))}return t}var Pt={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function ms(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var l=1+(o&1),a=o<2?1:3+(o>>1),c="a",u=ps(t);for((u=="H"||u=="k")&&(a=0);a-- >0;)n+=c;for(;l-- >0;)n=u+n}else i==="J"?n+="H":n+=i}return n}function ps(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=Pt[r||""]||Pt[n||""]||Pt["".concat(n,"-001")]||Pt["001"];return i[0]}var dn,ds=new RegExp("^".concat(Ei.source,"*")),gs=new RegExp("".concat(Ei.source,"*$"));function G(e,t){return{start:e,end:t}}var _s=!!String.prototype.startsWith&&"_a".startsWith("a",1),bs=!!String.fromCodePoint,Es=!!Object.fromEntries,ys=!!String.prototype.codePointAt,xs=!!String.prototype.trimStart,vs=!!String.prototype.trimEnd,Ts=!!Number.isSafeInteger,Ss=Ts?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},An=!0;try{var ws=Si("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");An=((dn=ws.exec("a"))===null||dn===void 0?void 0:dn[0])==="a"}catch(e){An=!1}var vr=_s?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},On=bs?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,l;i>o;){if(l=t[o++],l>1114111)throw RangeError(l+" is not a valid code point");r+=l<65536?String.fromCharCode(l):String.fromCharCode(((l-=65536)>>10)+55296,l%1024+56320)}return r},Tr=Es?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],l=o[0],a=o[1];n[l]=a}return n},Ti=ys?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},As=xs?function(t){return t.trimStart()}:function(t){return t.replace(ds,"")},Os=vs?function(t){return t.trimEnd()}:function(t){return t.replace(gs,"")};function Si(e,t){return new RegExp(e,t)}var Mn;if(An){var Sr=Si("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Mn=function(t,n){var r;Sr.lastIndex=n;var i=Sr.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else Mn=function(t,n){for(var r=[];;){var i=Ti(t,n);if(i===void 0||wi(i)||Hs(i))break;r.push(i),n+=i>=65536?2:1}return On.apply(void 0,r)};var Ms=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var l=this.parseArgument(t,r);if(l.err)return l;i.push(l.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:Q.pound,location:G(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(F.UNMATCHED_CLOSING_TAG,G(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Cn(this.peek()||0)){var l=this.parseTag(t,n);if(l.err)return l;i.push(l.val)}else{var l=this.parseLiteral(t,n);if(l.err)return l;i.push(l.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Q.literal,value:"<".concat(i,"/>"),location:G(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var l=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Cn(this.char()))return this.error(F.INVALID_TAG,G(a,this.clonePosition()));var c=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(F.UNMATCHED_CLOSING_TAG,G(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Q.tag,value:i,children:l,location:G(r,this.clonePosition())},err:null}:this.error(F.INVALID_TAG,G(a,this.clonePosition())))}else return this.error(F.UNCLOSED_TAG,G(r,this.clonePosition()))}else return this.error(F.INVALID_TAG,G(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Ls(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var l=this.tryParseUnquoted(t,n);if(l){i+=l;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var c=G(r,this.clonePosition());return{val:{type:Q.literal,value:i,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Cs(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return On.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),On(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,G(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(F.EMPTY_ARGUMENT,G(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(F.MALFORMED_ARGUMENT,G(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,G(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Q.argument,value:i,location:G(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,G(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(F.MALFORMED_ARGUMENT,G(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=Mn(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),l=G(t,o);return{value:r,location:l}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,l=this.clonePosition(),a=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(a){case"":return this.error(F.EXPECT_ARGUMENT_TYPE,G(l,c));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),m=this.parseSimpleArgStyleIfPossible();if(m.err)return m;var y=Os(m.val);if(y.length===0)return this.error(F.EXPECT_ARGUMENT_STYLE,G(this.clonePosition(),this.clonePosition()));var A=G(f,this.clonePosition());u={style:y,styleLocation:A}}var x=this.tryParseArgumentClose(i);if(x.err)return x;var g=G(i,this.clonePosition());if(u&&vr(u==null?void 0:u.style,"::",0)){var N=As(u.style.slice(2));if(a==="number"){var m=this.parseNumberSkeletonFromString(N,u.styleLocation);return m.err?m:{val:{type:Q.number,value:r,location:g,style:m.val},err:null}}else{if(N.length===0)return this.error(F.EXPECT_DATE_TIME_SKELETON,g);var U=N;this.locale&&(U=ms(N,this.locale));var y={type:rt.dateTime,pattern:U,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?ss(U):{}},V=a==="date"?Q.date:Q.time;return{val:{type:V,value:r,location:g,style:y},err:null}}}return{val:{type:a==="number"?Q.number:a==="date"?Q.date:Q.time,value:r,location:g,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var R=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(F.EXPECT_SELECT_ARGUMENT_OPTIONS,G(R,Zt({},R)));this.bumpSpace();var H=this.parseIdentifierIfPossible(),I=0;if(a!=="select"&&H.value==="offset"){if(!this.bumpIf(":"))return this.error(F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,G(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m=this.tryParseDecimalInteger(F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,F.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(m.err)return m;this.bumpSpace(),H=this.parseIdentifierIfPossible(),I=m.val}var W=this.tryParsePluralOrSelectOptions(t,a,n,H);if(W.err)return W;var x=this.tryParseArgumentClose(i);if(x.err)return x;var oe=G(i,this.clonePosition());return a==="select"?{val:{type:Q.select,value:r,options:Tr(W.val),location:oe},err:null}:{val:{type:Q.plural,value:r,options:Tr(W.val),offset:I,pluralType:a==="plural"?"cardinal":"ordinal",location:oe},err:null}}default:return this.error(F.INVALID_ARGUMENT_TYPE,G(l,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,G(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(F.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,G(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=ls(t)}catch(i){return this.error(F.INVALID_NUMBER_SKELETON,n)}return{val:{type:rt.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?hs(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,l=!1,a=[],c=new Set,u=i.value,f=i.location;;){if(u.length===0){var m=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var y=this.tryParseDecimalInteger(F.EXPECT_PLURAL_ARGUMENT_SELECTOR,F.INVALID_PLURAL_ARGUMENT_SELECTOR);if(y.err)return y;f=G(m,this.clonePosition()),u=this.message.slice(m.offset,this.offset())}else break}if(c.has(u))return this.error(n==="select"?F.DUPLICATE_SELECT_ARGUMENT_SELECTOR:F.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);u==="other"&&(l=!0),this.bumpSpace();var A=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?F.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:F.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,G(this.clonePosition(),this.clonePosition()));var x=this.parseMessage(t+1,n,r);if(x.err)return x;var g=this.tryParseArgumentClose(A);if(g.err)return g;a.push([u,{value:x.val,location:G(A,this.clonePosition())}]),c.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,f=o.location}return a.length===0?this.error(n==="select"?F.EXPECT_SELECT_ARGUMENT_SELECTOR:F.EXPECT_PLURAL_ARGUMENT_SELECTOR,G(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!l?this.error(F.MISSING_OTHER_CLAUSE,G(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,l=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,l=l*10+(a-48),this.bump();else break}var c=G(i,this.clonePosition());return o?(l*=r,Ss(l)?{val:l,err:null}:this.error(n,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Ti(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(vr(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&wi(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r!=null?r:null},e}();function Cn(e){return e>=97&&e<=122||e>=65&&e<=90}function Cs(e){return Cn(e)||e===47}function Ls(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function wi(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Hs(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Ln(e){e.forEach(function(t){if(delete t.location,di(t)||gi(t))for(var n in t.options)delete t.options[n].location,Ln(t.options[n].value);else hi(t)&&bi(t.style)||(mi(t)||pi(t))&&wn(t.style)?delete t.style.location:_i(t)&&Ln(t.children)})}function Ns(e,t){t===void 0&&(t={}),t=Zt({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Ms(e,t).parse();if(n.err){var r=SyntaxError(F[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||Ln(n.val),n.val}var it;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(it||(it={}));var tn=function(e){en(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),wr=function(e){en(t,e);function t(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),it.INVALID_VALUE,o)||this}return t}(tn),Is=function(e){en(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),it.INVALID_VALUE,i)||this}return t}(tn),Ps=function(e){en(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),it.MISSING_VALUE,r)||this}return t}(tn),ge;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ge||(ge={}));function Rs(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==ge.literal||n.type!==ge.literal?t.push(n):r.value+=n.value,t},[])}function Ds(e){return typeof e=="function"}function jt(e,t,n,r,i,o,l){if(e.length===1&&br(e[0]))return[{type:ge.literal,value:e[0].value}];for(var a=[],c=0,u=e;c<u.length;c++){var f=u[c];if(br(f)){a.push({type:ge.literal,value:f.value});continue}if(is(f)){typeof o=="number"&&a.push({type:ge.literal,value:n.getNumberFormat(t).format(o)});continue}var m=f.value;if(!(i&&m in i))throw new Ps(m,l);var y=i[m];if(rs(f)){(!y||typeof y=="string"||typeof y=="number")&&(y=typeof y=="string"||typeof y=="number"?String(y):""),a.push({type:typeof y=="string"?ge.literal:ge.object,value:y});continue}if(mi(f)){var A=typeof f.style=="string"?r.date[f.style]:wn(f.style)?f.style.parsedOptions:void 0;a.push({type:ge.literal,value:n.getDateTimeFormat(t,A).format(y)});continue}if(pi(f)){var A=typeof f.style=="string"?r.time[f.style]:wn(f.style)?f.style.parsedOptions:r.time.medium;a.push({type:ge.literal,value:n.getDateTimeFormat(t,A).format(y)});continue}if(hi(f)){var A=typeof f.style=="string"?r.number[f.style]:bi(f.style)?f.style.parsedOptions:void 0;A&&A.scale&&(y=y*(A.scale||1)),a.push({type:ge.literal,value:n.getNumberFormat(t,A).format(y)});continue}if(_i(f)){var x=f.children,g=f.value,N=i[g];if(!Ds(N))throw new Is(g,"function",l);var U=jt(x,t,n,r,i,o),V=N(U.map(function(I){return I.value}));Array.isArray(V)||(V=[V]),a.push.apply(a,V.map(function(I){return{type:typeof I=="string"?ge.literal:ge.object,value:I}}))}if(di(f)){var R=f.options[y]||f.options.other;if(!R)throw new wr(f.value,y,Object.keys(f.options),l);a.push.apply(a,jt(R.value,t,n,r,i));continue}if(gi(f)){var R=f.options["=".concat(y)];if(!R){if(!Intl.PluralRules)throw new tn(`Intl.PluralRules is not available in this environment.
5
+ Try polyfilling it using "@formatjs/intl-pluralrules"
6
+ `,it.MISSING_INTL_API,l);var H=n.getPluralRules(t,{type:f.pluralType}).select(y-(f.offset||0));R=f.options[H]||f.options.other}if(!R)throw new wr(f.value,y,Object.keys(f.options),l);a.push.apply(a,jt(R.value,t,n,r,i,y-(f.offset||0)));continue}}return Rs(a)}function Bs(e,t){return t?Ne(Ne(Ne({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=Ne(Ne({},e[r]),t[r]||{}),n},{})):e}function $s(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=Bs(e[r],t[r]),n},Ne({},e)):e}function gn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Us(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:mn(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,hn([void 0],n,!1)))},{cache:gn(e.number),strategy:pn.variadic}),getDateTimeFormat:mn(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,hn([void 0],n,!1)))},{cache:gn(e.dateTime),strategy:pn.variadic}),getPluralRules:mn(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,hn([void 0],n,!1)))},{cache:gn(e.pluralRules),strategy:pn.variadic})}}var Ai=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var u=o.formatToParts(c);if(u.length===1)return u[0].value;var f=u.reduce(function(m,y){return!m.length||y.type!==ge.literal||typeof m[m.length-1]!="string"?m.push(y.value):m[m.length-1]+=y.value,m},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(c){return jt(o.ast,o.locales,o.formatters,o.formats,c,void 0,o.message)},this.resolvedOptions=function(){var c;return{locale:((c=o.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.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 l=i||{};l.formatters;var a=Zo(l,["formatters"]);this.ast=e.__parse(t,Ne(Ne({},a),{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=$s(e.formats,r),this.formatters=i&&i.formatters||Us(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=Ns,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 ks(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 o=n.slice(i,n.length).join(".");if(o in r){r=r[o];break}}r=r[n[i]]}else r=void 0;return r}const $e={},Fs=(e,t,n)=>n&&(t in $e||($e[t]={}),e in $e[t]||($e[t][e]=n),n),Oi=(e,t)=>{if(t==null)return;if(t in $e&&e in $e[t])return $e[t][e];const n=At(t);for(let r=0;r<n.length;r++){const i=n[r],o=js(i,e);if(o)return Fs(e,t,o)}};let Bn;const wt=St({});function Gs(e){return Bn[e]||null}function Mi(e){return e in Bn}function js(e,t){if(!Mi(e))return null;const n=Gs(e);return ks(n,t)}function zs(e){if(e==null)return;const t=At(e);for(let n=0;n<t.length;n++){const r=t[n];if(Mi(r))return r}}function Ci(e,...t){delete $e[e],wt.update(n=>(n[e]=Yo.all([n[e]||{},...t]),n))}st([wt],([e])=>Object.keys(e));wt.subscribe(e=>Bn=e);const zt={};function Ws(e,t){zt[e].delete(t),zt[e].size===0&&delete zt[e]}function Li(e){return zt[e]}function Vs(e){return At(e).map(t=>{const n=Li(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function qt(e){return e==null?!1:At(e).some(t=>{var n;return(n=Li(t))==null?void 0:n.size})}function Xs(e,t){return Promise.all(t.map(r=>(Ws(e,r),r().then(i=>i.default||i)))).then(r=>Ci(e,...r))}const ht={};function Hi(e){if(!qt(e))return e in ht?ht[e]:Promise.resolve();const t=Vs(e);return ht[e]=Promise.all(t.map(([n,r])=>Xs(n,r))).then(()=>{if(qt(e))return Hi(e);delete ht[e]}),ht[e]}var Ar=Object.getOwnPropertySymbols,Ys=Object.prototype.hasOwnProperty,Zs=Object.prototype.propertyIsEnumerable,qs=(e,t)=>{var n={};for(var r in e)Ys.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ar)for(var r of Ar(e))t.indexOf(r)<0&&Zs.call(e,r)&&(n[r]=e[r]);return n};const Js={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 Qs({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${At(e).join('", "')}".${qt(Fe())?`
7
+
8
+ Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const Ks={fallbackLocale:null,loadingDelay:200,formats:Js,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},bt=Ks;function ot(){return bt}function ea(e){const t=e,{formats:n}=t,r=qs(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{Ai.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch(o){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=Qs:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(bt,r,{initialLocale:i}),n&&("number"in n&&Object.assign(bt.formats.number,n.number),"date"in n&&Object.assign(bt.formats.date,n.date),"time"in n&&Object.assign(bt.formats.time,n.time)),ze.set(i)}const _n=St(!1);var ta=Object.defineProperty,na=Object.defineProperties,ra=Object.getOwnPropertyDescriptors,Or=Object.getOwnPropertySymbols,ia=Object.prototype.hasOwnProperty,oa=Object.prototype.propertyIsEnumerable,Mr=(e,t,n)=>t in e?ta(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sa=(e,t)=>{for(var n in t||(t={}))ia.call(t,n)&&Mr(e,n,t[n]);if(Or)for(var n of Or(t))oa.call(t,n)&&Mr(e,n,t[n]);return e},aa=(e,t)=>na(e,ra(t));let Hn;const Jt=St(null);function Cr(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function At(e,t=ot().fallbackLocale){const n=Cr(e);return t?[...new Set([...n,...Cr(t)])]:n}function Fe(){return Hn!=null?Hn:void 0}Jt.subscribe(e=>{Hn=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const la=e=>{if(e&&zs(e)&&qt(e)){const{loadingDelay:t}=ot();let n;return typeof window!="undefined"&&Fe()!=null&&t?n=window.setTimeout(()=>_n.set(!0),t):_n.set(!0),Hi(e).then(()=>{Jt.set(e)}).finally(()=>{clearTimeout(n),_n.set(!1)})}return Jt.set(e)},ze=aa(sa({},Jt),{set:la}),nn=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,Qt=Object.getOwnPropertySymbols,Ni=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,$n=(e,t)=>{for(var n in t||(t={}))Ni.call(t,n)&&Lr(e,n,t[n]);if(Qt)for(var n of Qt(t))Ii.call(t,n)&&Lr(e,n,t[n]);return e},at=(e,t)=>{var n={};for(var r in e)Ni.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Qt)for(var r of Qt(e))t.indexOf(r)<0&&Ii.call(e,r)&&(n[r]=e[r]);return n};const Tt=(e,t)=>{const{formats:n}=ot();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},ca=nn(e=>{var t=e,{locale:n,format:r}=t,i=at(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=Tt("number",r)),new Intl.NumberFormat(n,i)}),fa=nn(e=>{var t=e,{locale:n,format:r}=t,i=at(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=Tt("date",r):Object.keys(i).length===0&&(i=Tt("date","short")),new Intl.DateTimeFormat(n,i)}),ha=nn(e=>{var t=e,{locale:n,format:r}=t,i=at(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=Tt("time",r):Object.keys(i).length===0&&(i=Tt("time","short")),new Intl.DateTimeFormat(n,i)}),ma=(e={})=>{var t=e,{locale:n=Fe()}=t,r=at(t,["locale"]);return ca($n({locale:n},r))},pa=(e={})=>{var t=e,{locale:n=Fe()}=t,r=at(t,["locale"]);return fa($n({locale:n},r))},da=(e={})=>{var t=e,{locale:n=Fe()}=t,r=at(t,["locale"]);return ha($n({locale:n},r))},ga=nn((e,t=Fe())=>new Ai(e,t,ot().formats,{ignoreTag:ot().ignoreTag})),_a=(e,t={})=>{var n,r,i,o;let l=t;typeof e=="object"&&(l=e,e=l.id);const{values:a,locale:c=Fe(),default:u}=l;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=(o=(i=(r=(n=ot()).handleMissingMessage)==null?void 0:r.call(n,{locale:c,id:e,defaultValue:u}))!=null?i:u)!=null?o: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(!a)return f;let m=f;try{m=ga(f,c).format(a)}catch(y){y instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,y.message)}return m},ba=(e,t)=>da(t).format(e),Ea=(e,t)=>pa(t).format(e),ya=(e,t)=>ma(t).format(e),xa=(e,t=Fe())=>Oi(e,t),va=st([ze,wt],()=>_a);st([ze],()=>ba);st([ze],()=>Ea);st([ze],()=>ya);st([ze,wt],()=>xa);function Hr(e,t){Ci(e,t)}function Ta(e){ea({fallbackLocale:"en"}),ze.set(e)}const Nr={en:{sessionExpirationHeader:"Session Warning",sessionExpirationTitle:"Your session is about to expire!",sessionExpirationGeneralText:"Your session will automatically terminate in <b>{second} seconds</b>.",sessionExpirationGeneralButton:"Continue session",sessionExpirationLoadingButton:"Processing...",sessionExpirationEnd:"End session"},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...",sessionExpirationEnd:"Oturumu sonlandır"}};/*! @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:Sa,getPrototypeOf:wa,getOwnPropertyDescriptor:Aa}=Object;let{freeze:_e,seal:Te,create:Ri}=Object,{apply:Nn,construct:In}=typeof Reflect!="undefined"&&Reflect;_e||(_e=function(t){return t});Te||(Te=function(t){return t});Nn||(Nn=function(t,n,r){return t.apply(n,r)});In||(In=function(t,n){return new t(...n)});const Rt=xe(Array.prototype.forEach),Pr=xe(Array.prototype.pop),mt=xe(Array.prototype.push),Wt=xe(String.prototype.toLowerCase),bn=xe(String.prototype.toString),Rr=xe(String.prototype.match),pt=xe(String.prototype.replace),Oa=xe(String.prototype.indexOf),Ma=xe(String.prototype.trim),we=xe(Object.prototype.hasOwnProperty),pe=xe(RegExp.prototype.test),dt=Ca(TypeError);function xe(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 Ca(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return In(e,n)}}function $(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Wt;Ir&&Ir(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const o=n(i);o!==i&&(Sa(t)||(t[r]=o),i=o)}e[i]=!0}return e}function La(e){for(let t=0;t<e.length;t++)we(e,t)||(e[t]=null);return e}function Ge(e){const t=Ri(null);for(const[n,r]of Pi(e))we(e,n)&&(Array.isArray(r)?t[n]=La(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=Ge(r):t[n]=r);return t}function gt(e,t){for(;e!==null;){const r=Aa(e,t);if(r){if(r.get)return xe(r.get);if(typeof r.value=="function")return xe(r.value)}e=wa(e)}function n(){return null}return n}const Dr=_e(["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"]),En=_e(["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"]),yn=_e(["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"]),Ha=_e(["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"]),xn=_e(["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=_e(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Br=_e(["#text"]),$r=_e(["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"]),vn=_e(["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=_e(["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"]),Dt=_e(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ia=Te(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Pa=Te(/<%[\w\W]*|[\w\W]*%>/gm),Ra=Te(/\${[\w\W]*}/gm),Da=Te(/^data-[\-\w.\u00B7-\uFFFF]/),Ba=Te(/^aria-[\-\w]+$/),Di=Te(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$a=Te(/^(?:\w+script|data):/i),Ua=Te(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Bi=Te(/^html$/i),ka=Te(/^[a-z][.\w]*(-[.\w]+)+$/i);var kr=Object.freeze({__proto__:null,MUSTACHE_EXPR:Ia,ERB_EXPR:Pa,TMPLIT_EXPR:Ra,DATA_ATTR:Da,ARIA_ATTR:Ba,IS_ALLOWED_URI:Di,IS_SCRIPT_OR_DATA:$a,ATTR_WHITESPACE:Ua,DOCTYPE_NAME:Bi,CUSTOM_ELEMENT:ka});const _t={element:1,text:3,progressingInstruction:7,comment:8,document:9},Fa=function(){return typeof window=="undefined"?null:window},Ga=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 o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML(l){return l},createScriptURL(l){return l}})}catch(l){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function $i(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Fa();const t=S=>$i(S);if(t.version="3.1.6",t.removed=[],!e||!e.document||e.document.nodeType!==_t.document)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:l,Node:a,Element:c,NodeFilter:u,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:m,DOMParser:y,trustedTypes:A}=e,x=c.prototype,g=gt(x,"cloneNode"),N=gt(x,"remove"),U=gt(x,"nextSibling"),V=gt(x,"childNodes"),R=gt(x,"parentNode");if(typeof l=="function"){const S=n.createElement("template");S.content&&S.content.ownerDocument&&(n=S.content.ownerDocument)}let H,I="";const{implementation:W,createNodeIterator:oe,createDocumentFragment:fe,getElementsByTagName:K}=n,{importNode:j}=r;let C={};t.isSupported=typeof Pi=="function"&&typeof R=="function"&&W&&W.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:se,ERB_EXPR:Ee,TMPLIT_EXPR:M,DATA_ATTR:_,ARIA_ATTR:h,IS_SCRIPT_OR_DATA:E,ATTR_WHITESPACE:b,CUSTOM_ELEMENT:L}=kr;let{IS_ALLOWED_URI:O}=kr,v=null;const z=$({},[...Dr,...En,...yn,...xn,...Br]);let P=null;const q=$({},[...$r,...vn,...Ur,...Dt]);let D=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}})),d=null,k=null,X=!0,Y=!0,ne=!1,ee=!0,he=!1,le=!0,Oe=!1,J=!1,re=!1,Me=!1,Ot=!1,Mt=!1,Un=!0,kn=!1;const Gi="user-content-";let rn=!0,lt=!1,We={},Ve=null;const Fn=$({},["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 Gn=null;const jn=$({},["audio","video","img","source","image","track"]);let on=null;const zn=$({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ct="http://www.w3.org/1998/Math/MathML",Lt="http://www.w3.org/2000/svg",Ie="http://www.w3.org/1999/xhtml";let Xe=Ie,sn=!1,an=null;const ji=$({},[Ct,Lt,Ie],bn);let ut=null;const zi=["application/xhtml+xml","text/html"],Wi="text/html";let ae=null,Ye=null;const Vi=n.createElement("form"),Wn=function(s){return s instanceof RegExp||s instanceof Function},ln=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ye&&Ye===s)){if((!s||typeof s!="object")&&(s={}),s=Ge(s),ut=zi.indexOf(s.PARSER_MEDIA_TYPE)===-1?Wi:s.PARSER_MEDIA_TYPE,ae=ut==="application/xhtml+xml"?bn:Wt,v=we(s,"ALLOWED_TAGS")?$({},s.ALLOWED_TAGS,ae):z,P=we(s,"ALLOWED_ATTR")?$({},s.ALLOWED_ATTR,ae):q,an=we(s,"ALLOWED_NAMESPACES")?$({},s.ALLOWED_NAMESPACES,bn):ji,on=we(s,"ADD_URI_SAFE_ATTR")?$(Ge(zn),s.ADD_URI_SAFE_ATTR,ae):zn,Gn=we(s,"ADD_DATA_URI_TAGS")?$(Ge(jn),s.ADD_DATA_URI_TAGS,ae):jn,Ve=we(s,"FORBID_CONTENTS")?$({},s.FORBID_CONTENTS,ae):Fn,d=we(s,"FORBID_TAGS")?$({},s.FORBID_TAGS,ae):{},k=we(s,"FORBID_ATTR")?$({},s.FORBID_ATTR,ae):{},We=we(s,"USE_PROFILES")?s.USE_PROFILES:!1,X=s.ALLOW_ARIA_ATTR!==!1,Y=s.ALLOW_DATA_ATTR!==!1,ne=s.ALLOW_UNKNOWN_PROTOCOLS||!1,ee=s.ALLOW_SELF_CLOSE_IN_ATTR!==!1,he=s.SAFE_FOR_TEMPLATES||!1,le=s.SAFE_FOR_XML!==!1,Oe=s.WHOLE_DOCUMENT||!1,Me=s.RETURN_DOM||!1,Ot=s.RETURN_DOM_FRAGMENT||!1,Mt=s.RETURN_TRUSTED_TYPE||!1,re=s.FORCE_BODY||!1,Un=s.SANITIZE_DOM!==!1,kn=s.SANITIZE_NAMED_PROPS||!1,rn=s.KEEP_CONTENT!==!1,lt=s.IN_PLACE||!1,O=s.ALLOWED_URI_REGEXP||Di,Xe=s.NAMESPACE||Ie,D=s.CUSTOM_ELEMENT_HANDLING||{},s.CUSTOM_ELEMENT_HANDLING&&Wn(s.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(D.tagNameCheck=s.CUSTOM_ELEMENT_HANDLING.tagNameCheck),s.CUSTOM_ELEMENT_HANDLING&&Wn(s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(D.attributeNameCheck=s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),s.CUSTOM_ELEMENT_HANDLING&&typeof s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(D.allowCustomizedBuiltInElements=s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),he&&(Y=!1),Ot&&(Me=!0),We&&(v=$({},Br),P=[],We.html===!0&&($(v,Dr),$(P,$r)),We.svg===!0&&($(v,En),$(P,vn),$(P,Dt)),We.svgFilters===!0&&($(v,yn),$(P,vn),$(P,Dt)),We.mathMl===!0&&($(v,xn),$(P,Ur),$(P,Dt))),s.ADD_TAGS&&(v===z&&(v=Ge(v)),$(v,s.ADD_TAGS,ae)),s.ADD_ATTR&&(P===q&&(P=Ge(P)),$(P,s.ADD_ATTR,ae)),s.ADD_URI_SAFE_ATTR&&$(on,s.ADD_URI_SAFE_ATTR,ae),s.FORBID_CONTENTS&&(Ve===Fn&&(Ve=Ge(Ve)),$(Ve,s.FORBID_CONTENTS,ae)),rn&&(v["#text"]=!0),Oe&&$(v,["html","head","body"]),v.table&&($(v,["tbody"]),delete d.tbody),s.TRUSTED_TYPES_POLICY){if(typeof s.TRUSTED_TYPES_POLICY.createHTML!="function")throw dt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof s.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw dt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');H=s.TRUSTED_TYPES_POLICY,I=H.createHTML("")}else H===void 0&&(H=Ga(A,i)),H!==null&&typeof I=="string"&&(I=H.createHTML(""));_e&&_e(s),Ye=s}},Vn=$({},["mi","mo","mn","ms","mtext"]),Xn=$({},["foreignobject","annotation-xml"]),Xi=$({},["title","style","font","a","script"]),Yn=$({},[...En,...yn,...Ha]),Zn=$({},[...xn,...Na]),Yi=function(s){let p=R(s);(!p||!p.tagName)&&(p={namespaceURI:Xe,tagName:"template"});const T=Wt(s.tagName),Z=Wt(p.tagName);return an[s.namespaceURI]?s.namespaceURI===Lt?p.namespaceURI===Ie?T==="svg":p.namespaceURI===Ct?T==="svg"&&(Z==="annotation-xml"||Vn[Z]):!!Yn[T]:s.namespaceURI===Ct?p.namespaceURI===Ie?T==="math":p.namespaceURI===Lt?T==="math"&&Xn[Z]:!!Zn[T]:s.namespaceURI===Ie?p.namespaceURI===Lt&&!Xn[Z]||p.namespaceURI===Ct&&!Vn[Z]?!1:!Zn[T]&&(Xi[T]||!Yn[T]):!!(ut==="application/xhtml+xml"&&an[s.namespaceURI]):!1},Ce=function(s){mt(t.removed,{element:s});try{R(s).removeChild(s)}catch(p){N(s)}},Ht=function(s,p){try{mt(t.removed,{attribute:p.getAttributeNode(s),from:p})}catch(T){mt(t.removed,{attribute:null,from:p})}if(p.removeAttribute(s),s==="is"&&!P[s])if(Me||Ot)try{Ce(p)}catch(T){}else try{p.setAttribute(s,"")}catch(T){}},qn=function(s){let p=null,T=null;if(re)s="<remove></remove>"+s;else{const ue=Rr(s,/^[\r\n\t ]+/);T=ue&&ue[0]}ut==="application/xhtml+xml"&&Xe===Ie&&(s='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+s+"</body></html>");const Z=H?H.createHTML(s):s;if(Xe===Ie)try{p=new y().parseFromString(Z,ut)}catch(ue){}if(!p||!p.documentElement){p=W.createDocument(Xe,"template",null);try{p.documentElement.innerHTML=sn?I:Z}catch(ue){}}const ce=p.body||p.documentElement;return s&&T&&ce.insertBefore(n.createTextNode(T),ce.childNodes[0]||null),Xe===Ie?K.call(p,Oe?"html":"body")[0]:Oe?p.documentElement:ce},Jn=function(s){return oe.call(s.ownerDocument||s,s,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Qn=function(s){return s instanceof m&&(typeof s.nodeName!="string"||typeof s.textContent!="string"||typeof s.removeChild!="function"||!(s.attributes instanceof f)||typeof s.removeAttribute!="function"||typeof s.setAttribute!="function"||typeof s.namespaceURI!="string"||typeof s.insertBefore!="function"||typeof s.hasChildNodes!="function")},Kn=function(s){return typeof a=="function"&&s instanceof a},Pe=function(s,p,T){C[s]&&Rt(C[s],Z=>{Z.call(t,p,T,Ye)})},er=function(s){let p=null;if(Pe("beforeSanitizeElements",s,null),Qn(s))return Ce(s),!0;const T=ae(s.nodeName);if(Pe("uponSanitizeElement",s,{tagName:T,allowedTags:v}),s.hasChildNodes()&&!Kn(s.firstElementChild)&&pe(/<[/\w]/g,s.innerHTML)&&pe(/<[/\w]/g,s.textContent)||s.nodeType===_t.progressingInstruction||le&&s.nodeType===_t.comment&&pe(/<[/\w]/g,s.data))return Ce(s),!0;if(!v[T]||d[T]){if(!d[T]&&nr(T)&&(D.tagNameCheck instanceof RegExp&&pe(D.tagNameCheck,T)||D.tagNameCheck instanceof Function&&D.tagNameCheck(T)))return!1;if(rn&&!Ve[T]){const Z=R(s)||s.parentNode,ce=V(s)||s.childNodes;if(ce&&Z){const ue=ce.length;for(let be=ue-1;be>=0;--be){const Le=g(ce[be],!0);Le.__removalCount=(s.__removalCount||0)+1,Z.insertBefore(Le,U(s))}}}return Ce(s),!0}return s instanceof c&&!Yi(s)||(T==="noscript"||T==="noembed"||T==="noframes")&&pe(/<\/no(script|embed|frames)/i,s.innerHTML)?(Ce(s),!0):(he&&s.nodeType===_t.text&&(p=s.textContent,Rt([se,Ee,M],Z=>{p=pt(p,Z," ")}),s.textContent!==p&&(mt(t.removed,{element:s.cloneNode()}),s.textContent=p)),Pe("afterSanitizeElements",s,null),!1)},tr=function(s,p,T){if(Un&&(p==="id"||p==="name")&&(T in n||T in Vi))return!1;if(!(Y&&!k[p]&&pe(_,p))){if(!(X&&pe(h,p))){if(!P[p]||k[p]){if(!(nr(s)&&(D.tagNameCheck instanceof RegExp&&pe(D.tagNameCheck,s)||D.tagNameCheck instanceof Function&&D.tagNameCheck(s))&&(D.attributeNameCheck instanceof RegExp&&pe(D.attributeNameCheck,p)||D.attributeNameCheck instanceof Function&&D.attributeNameCheck(p))||p==="is"&&D.allowCustomizedBuiltInElements&&(D.tagNameCheck instanceof RegExp&&pe(D.tagNameCheck,T)||D.tagNameCheck instanceof Function&&D.tagNameCheck(T))))return!1}else if(!on[p]){if(!pe(O,pt(T,b,""))){if(!((p==="src"||p==="xlink:href"||p==="href")&&s!=="script"&&Oa(T,"data:")===0&&Gn[s])){if(!(ne&&!pe(E,pt(T,b,"")))){if(T)return!1}}}}}}return!0},nr=function(s){return s!=="annotation-xml"&&Rr(s,L)},rr=function(s){Pe("beforeSanitizeAttributes",s,null);const{attributes:p}=s;if(!p)return;const T={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:P};let Z=p.length;for(;Z--;){const ce=p[Z],{name:ue,namespaceURI:be,value:Le}=ce,ct=ae(ue);let me=ue==="value"?Le:Ma(Le);if(T.attrName=ct,T.attrValue=me,T.keepAttr=!0,T.forceKeepAttr=void 0,Pe("uponSanitizeAttribute",s,T),me=T.attrValue,le&&pe(/((--!?|])>)|<\/(style|title)/i,me)){Ht(ue,s);continue}if(T.forceKeepAttr||(Ht(ue,s),!T.keepAttr))continue;if(!ee&&pe(/\/>/i,me)){Ht(ue,s);continue}he&&Rt([se,Ee,M],or=>{me=pt(me,or," ")});const ir=ae(s.nodeName);if(tr(ir,ct,me)){if(kn&&(ct==="id"||ct==="name")&&(Ht(ue,s),me=Gi+me),H&&typeof A=="object"&&typeof A.getAttributeType=="function"&&!be)switch(A.getAttributeType(ir,ct)){case"TrustedHTML":{me=H.createHTML(me);break}case"TrustedScriptURL":{me=H.createScriptURL(me);break}}try{be?s.setAttributeNS(be,ue,me):s.setAttribute(ue,me),Qn(s)?Ce(s):Pr(t.removed)}catch(or){}}}Pe("afterSanitizeAttributes",s,null)},Zi=function S(s){let p=null;const T=Jn(s);for(Pe("beforeSanitizeShadowDOM",s,null);p=T.nextNode();)Pe("uponSanitizeShadowNode",p,null),!er(p)&&(p.content instanceof o&&S(p.content),rr(p));Pe("afterSanitizeShadowDOM",s,null)};return t.sanitize=function(S){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=null,T=null,Z=null,ce=null;if(sn=!S,sn&&(S="<!-->"),typeof S!="string"&&!Kn(S))if(typeof S.toString=="function"){if(S=S.toString(),typeof S!="string")throw dt("dirty is not a string, aborting")}else throw dt("toString is not a function");if(!t.isSupported)return S;if(J||ln(s),t.removed=[],typeof S=="string"&&(lt=!1),lt){if(S.nodeName){const Le=ae(S.nodeName);if(!v[Le]||d[Le])throw dt("root node is forbidden and cannot be sanitized in-place")}}else if(S instanceof a)p=qn("<!---->"),T=p.ownerDocument.importNode(S,!0),T.nodeType===_t.element&&T.nodeName==="BODY"||T.nodeName==="HTML"?p=T:p.appendChild(T);else{if(!Me&&!he&&!Oe&&S.indexOf("<")===-1)return H&&Mt?H.createHTML(S):S;if(p=qn(S),!p)return Me?null:Mt?I:""}p&&re&&Ce(p.firstChild);const ue=Jn(lt?S:p);for(;Z=ue.nextNode();)er(Z)||(Z.content instanceof o&&Zi(Z.content),rr(Z));if(lt)return S;if(Me){if(Ot)for(ce=fe.call(p.ownerDocument);p.firstChild;)ce.appendChild(p.firstChild);else ce=p;return(P.shadowroot||P.shadowrootmode)&&(ce=j.call(r,ce,!0)),ce}let be=Oe?p.outerHTML:p.innerHTML;return Oe&&v["!doctype"]&&p.ownerDocument&&p.ownerDocument.doctype&&p.ownerDocument.doctype.name&&pe(Bi,p.ownerDocument.doctype.name)&&(be="<!DOCTYPE "+p.ownerDocument.doctype.name+`>
9
+ `+be),he&&Rt([se,Ee,M],Le=>{be=pt(be,Le," ")}),H&&Mt?H.createHTML(be):be},t.setConfig=function(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ln(S),J=!0},t.clearConfig=function(){Ye=null,J=!1},t.isValidAttribute=function(S,s,p){Ye||ln({});const T=ae(S),Z=ae(s);return tr(T,Z,p)},t.addHook=function(S,s){typeof s=="function"&&(C[S]=C[S]||[],mt(C[S],s))},t.removeHook=function(S){if(C[S])return Pr(C[S])},t.removeHooks=function(S){C[S]&&(C[S]=[])},t.removeAllHooks=function(){C={}},t}var Fr=$i(),Ui={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(li,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",l="second",a="minute",c="hour",u="day",f="week",m="month",y="quarter",A="year",x="date",g="Invalid Date",N=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,U=/\[([^\]]+)]|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,V={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(M){var _=["th","st","nd","rd"],h=M%100;return"["+M+(_[(h-20)%10]||_[h]||_[0])+"]"}},R=function(M,_,h){var E=String(M);return!E||E.length>=_?M:""+Array(_+1-E.length).join(h)+M},H={s:R,z:function(M){var _=-M.utcOffset(),h=Math.abs(_),E=Math.floor(h/60),b=h%60;return(_<=0?"+":"-")+R(E,2,"0")+":"+R(b,2,"0")},m:function M(_,h){if(_.date()<h.date())return-M(h,_);var E=12*(h.year()-_.year())+(h.month()-_.month()),b=_.clone().add(E,m),L=h-b<0,O=_.clone().add(E+(L?-1:1),m);return+(-(E+(h-b)/(L?b-O:O-b))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:m,y:A,w:f,d:u,D:x,h:c,m:a,s:l,ms:o,Q:y}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},I="en",W={};W[I]=V;var oe="$isDayjsObject",fe=function(M){return M instanceof se||!(!M||!M[oe])},K=function M(_,h,E){var b;if(!_)return I;if(typeof _=="string"){var L=_.toLowerCase();W[L]&&(b=L),h&&(W[L]=h,b=L);var O=_.split("-");if(!b&&O.length>1)return M(O[0])}else{var v=_.name;W[v]=_,b=v}return!E&&b&&(I=b),b||!E&&I},j=function(M,_){if(fe(M))return M.clone();var h=typeof _=="object"?_:{};return h.date=M,h.args=arguments,new se(h)},C=H;C.l=K,C.i=fe,C.w=function(M,_){return j(M,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var se=function(){function M(h){this.$L=K(h.locale,null,!0),this.parse(h),this.$x=this.$x||h.x||{},this[oe]=!0}var _=M.prototype;return _.parse=function(h){this.$d=function(E){var b=E.date,L=E.utc;if(b===null)return new Date(NaN);if(C.u(b))return new Date;if(b instanceof Date)return new Date(b);if(typeof b=="string"&&!/Z$/i.test(b)){var O=b.match(N);if(O){var v=O[2]-1||0,z=(O[7]||"0").substring(0,3);return L?new Date(Date.UTC(O[1],v,O[3]||1,O[4]||0,O[5]||0,O[6]||0,z)):new Date(O[1],v,O[3]||1,O[4]||0,O[5]||0,O[6]||0,z)}}return new Date(b)}(h),this.init()},_.init=function(){var h=this.$d;this.$y=h.getFullYear(),this.$M=h.getMonth(),this.$D=h.getDate(),this.$W=h.getDay(),this.$H=h.getHours(),this.$m=h.getMinutes(),this.$s=h.getSeconds(),this.$ms=h.getMilliseconds()},_.$utils=function(){return C},_.isValid=function(){return this.$d.toString()!==g},_.isSame=function(h,E){var b=j(h);return this.startOf(E)<=b&&b<=this.endOf(E)},_.isAfter=function(h,E){return j(h)<this.startOf(E)},_.isBefore=function(h,E){return this.endOf(E)<j(h)},_.$g=function(h,E,b){return C.u(h)?this[E]:this.set(b,h)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(h,E){var b=this,L=!!C.u(E)||E,O=C.p(h),v=function(Y,ne){var ee=C.w(b.$u?Date.UTC(b.$y,ne,Y):new Date(b.$y,ne,Y),b);return L?ee:ee.endOf(u)},z=function(Y,ne){return C.w(b.toDate()[Y].apply(b.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(ne)),b)},P=this.$W,q=this.$M,D=this.$D,d="set"+(this.$u?"UTC":"");switch(O){case A:return L?v(1,0):v(31,11);case m:return L?v(1,q):v(0,q+1);case f:var k=this.$locale().weekStart||0,X=(P<k?P+7:P)-k;return v(L?D-X:D+(6-X),q);case u:case x:return z(d+"Hours",0);case c:return z(d+"Minutes",1);case a:return z(d+"Seconds",2);case l:return z(d+"Milliseconds",3);default:return this.clone()}},_.endOf=function(h){return this.startOf(h,!1)},_.$set=function(h,E){var b,L=C.p(h),O="set"+(this.$u?"UTC":""),v=(b={},b[u]=O+"Date",b[x]=O+"Date",b[m]=O+"Month",b[A]=O+"FullYear",b[c]=O+"Hours",b[a]=O+"Minutes",b[l]=O+"Seconds",b[o]=O+"Milliseconds",b)[L],z=L===u?this.$D+(E-this.$W):E;if(L===m||L===A){var P=this.clone().set(x,1);P.$d[v](z),P.init(),this.$d=P.set(x,Math.min(this.$D,P.daysInMonth())).$d}else v&&this.$d[v](z);return this.init(),this},_.set=function(h,E){return this.clone().$set(h,E)},_.get=function(h){return this[C.p(h)]()},_.add=function(h,E){var b,L=this;h=Number(h);var O=C.p(E),v=function(q){var D=j(L);return C.w(D.date(D.date()+Math.round(q*h)),L)};if(O===m)return this.set(m,this.$M+h);if(O===A)return this.set(A,this.$y+h);if(O===u)return v(1);if(O===f)return v(7);var z=(b={},b[a]=r,b[c]=i,b[l]=n,b)[O]||1,P=this.$d.getTime()+h*z;return C.w(P,this)},_.subtract=function(h,E){return this.add(-1*h,E)},_.format=function(h){var E=this,b=this.$locale();if(!this.isValid())return b.invalidDate||g;var L=h||"YYYY-MM-DDTHH:mm:ssZ",O=C.z(this),v=this.$H,z=this.$m,P=this.$M,q=b.weekdays,D=b.months,d=b.meridiem,k=function(ne,ee,he,le){return ne&&(ne[ee]||ne(E,L))||he[ee].slice(0,le)},X=function(ne){return C.s(v%12||12,ne,"0")},Y=d||function(ne,ee,he){var le=ne<12?"AM":"PM";return he?le.toLowerCase():le};return L.replace(U,function(ne,ee){return ee||function(he){switch(he){case"YY":return String(E.$y).slice(-2);case"YYYY":return C.s(E.$y,4,"0");case"M":return P+1;case"MM":return C.s(P+1,2,"0");case"MMM":return k(b.monthsShort,P,D,3);case"MMMM":return k(D,P);case"D":return E.$D;case"DD":return C.s(E.$D,2,"0");case"d":return String(E.$W);case"dd":return k(b.weekdaysMin,E.$W,q,2);case"ddd":return k(b.weekdaysShort,E.$W,q,3);case"dddd":return q[E.$W];case"H":return String(v);case"HH":return C.s(v,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return Y(v,z,!0);case"A":return Y(v,z,!1);case"m":return String(z);case"mm":return C.s(z,2,"0");case"s":return String(E.$s);case"ss":return C.s(E.$s,2,"0");case"SSS":return C.s(E.$ms,3,"0");case"Z":return O}return null}(ne)||O.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(h,E,b){var L,O=this,v=C.p(E),z=j(h),P=(z.utcOffset()-this.utcOffset())*r,q=this-z,D=function(){return C.m(O,z)};switch(v){case A:L=D()/12;break;case m:L=D();break;case y:L=D()/3;break;case f:L=(q-P)/6048e5;break;case u:L=(q-P)/864e5;break;case c:L=q/i;break;case a:L=q/r;break;case l:L=q/n;break;default:L=q}return b?L:C.a(L)},_.daysInMonth=function(){return this.endOf(m).$D},_.$locale=function(){return W[this.$L]},_.locale=function(h,E){if(!h)return this.$L;var b=this.clone(),L=K(h,E,!0);return L&&(b.$L=L),b},_.clone=function(){return C.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},M}(),Ee=se.prototype;return j.prototype=Ee,[["$ms",o],["$s",l],["$m",a],["$H",c],["$W",u],["$M",m],["$y",A],["$D",x]].forEach(function(M){Ee[M[1]]=function(_){return this.$g(_,M[0],M[1])}}),j.extend=function(M,_){return M.$i||(M(_,se,j),M.$i=!0),j},j.locale=K,j.isDayjs=fe,j.unix=function(M){return j(1e3*M)},j.en=W[I],j.Ls=W,j.p={},j})})(Ui);var ja=Ui.exports;const Gr=Dn(ja);var ki={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(li,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(o,l,a){var c=l.prototype;a.utc=function(g){var N={date:g,utc:!0,args:arguments};return new l(N)},c.utc=function(g){var N=a(this.toDate(),{locale:this.$L,utc:!0});return g?N.add(this.utcOffset(),n):N},c.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var u=c.parse;c.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),u.call(this,g)};var f=c.init;c.init=function(){if(this.$u){var g=this.$d;this.$y=g.getUTCFullYear(),this.$M=g.getUTCMonth(),this.$D=g.getUTCDate(),this.$W=g.getUTCDay(),this.$H=g.getUTCHours(),this.$m=g.getUTCMinutes(),this.$s=g.getUTCSeconds(),this.$ms=g.getUTCMilliseconds()}else f.call(this)};var m=c.utcOffset;c.utcOffset=function(g,N){var U=this.$utils().u;if(U(g))return this.$u?0:U(this.$offset)?m.call(this):this.$offset;if(typeof g=="string"&&(g=function(I){I===void 0&&(I="");var W=I.match(r);if(!W)return null;var oe=(""+W[0]).match(i)||["-",0,0],fe=oe[0],K=60*+oe[1]+ +oe[2];return K===0?0:fe==="+"?K:-K}(g),g===null))return this;var V=Math.abs(g)<=16?60*g:g,R=this;if(N)return R.$offset=V,R.$u=g===0,R;if(g!==0){var H=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(R=this.local().add(V+H,n)).$offset=V,R.$x.$localOffset=H}else R=this.utc();return R};var y=c.format;c.format=function(g){var N=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return y.call(this,N)},c.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var A=c.toDate;c.toDate=function(g){return g==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():A.call(this)};var x=c.diff;c.diff=function(g,N,U){if(g&&this.$u===g.$u)return x.call(this,g,N,U);var V=this.local(),R=a(g).local();return x.call(V,R,N,U)}}})})(ki);var za=ki.exports;const Wa=Dn(za);let jr=St(null);function Va(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function Xa(e,t){if(!e||!t)return;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 Ya(e,t,n){if(window.emMessageBus){const r=document.createElement("style");window.emMessageBus.subscribe(t,i=>{r.innerHTML=i,e&&e.appendChild(r)})}}function Za(e){oo(e,"svelte-1kjup2o",'*,*::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:115;top:0;left:0;background-color:var(--emw--color-black-transparency-20, rgba(0, 0, 0, 0.3));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));border-radius:var(--emw--border-radius-medium, 10px);display:flex;flex-direction:column;min-width:400px;position:relative;z-index:1;box-shadow:inset 0px 0px 0px 2px rgba(255, 255, 255, 0.3);padding:20px}.CashierSessionExpirationModalWrapper::before{content:"";position:absolute;inset:0;opacity:0.15;z-index:-1;pointer-events:none;border-radius:16px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%)}.ButtonsContainer{display:flex;flex-direction:row;gap:10px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;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;justify-content:space-between}.CashierSessionExpirationModalHeaderTitle{display:flex;align-items:center;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);gap:8px}.CashierSessionExpirationModalHeaderTitle svg{width:24px;height:24px;fill:var(--emw--color-typography, #fff)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;justify-content:center;top:10px;right:10px;border-radius:50%;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));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;margin-top:20px;gap:25px}.CashierSessionExpiration .CashierSessionExpirationButton{width:100%;height:36px;color:var(--emw-color-font-typography, #fff);text-align:center;cursor:pointer;font-size:var(--emw--font-size-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:125%;border:none;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #f9c405)}.CashierSessionExpirationTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);line-height:120%}.CashierSessionExpirationText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 12px);opacity:0.6}.CashierSessionExpirationText p{padding:3px}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-small, 12px);font-family:inherit}.CashierSessionExpirationButtonSpinner{animation:loading-spinner 1s linear infinite}@container session-expiration-modal-window (max-width:750px){.CashierSessionExpirationModalWindow .CashierSessionExpirationModalWrapper{width:90%;max-width:400px}}.ModalCloseIcon{z-index:20;transition:all 0.2s ease}.ModalCloseIcon svg{fill:var(--emw--color-typography, #fff);width:11px;height:11px}.ModalCloseIcon:hover{transform:rotate(90deg)}.ModalButton{color:var(--emw--color-secondary, #000);text-align:center;font-size:var(--emw--font-size-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 600);font-family:inherit;height:46px;line-height:normal;border:none;background:var(--emw--color-primary, #f9c408);border-radius:10px;width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-2x-small-plus, 5px);transition:all 0.2s linear;box-shadow:inset 0px 0px 0px 1px var(--emw--color-primary)}.ModalButton:hover{background-color:var(--emw--color-hover, #dbac03)}.ModalButton.Secondary{background:transparent;color:var(--emw-color-white, #fff)}.ModalButton.Secondary:hover{background-color:var(--emw--color-hover, #dbac03);color:var(--emw-color-black, #000)}.ModalButton.Primary.Disabled{cursor:default;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);opacity:0.5}.ModalButton.Primary.Disabled:hover{background:var(--emw--color-primary, #f9c408);cursor:not-allowed}')}const qa=e=>({}),zr=e=>({}),Ja=e=>({}),Wr=e=>({}),Qa=e=>({}),Vr=e=>({}),Ka=e=>({}),Xr=e=>({class:"CashierSessionExpirationIcon"});function Yr(e){let t,n,r,i,o,l,a,c,u,f,m,y,A=e[8]("sessionExpirationHeader")+"",x,g,N,U,V,R,H,I,W,oe,fe,K,j,C,se=e[8]("sessionExpirationEnd")+"",Ee,M,_,h,E,b,L,O,v,z,P;const q=e[23].icon,D=Bt(q,e,e[22],Xr),d=D||el(e),k=e[23].title,X=Bt(k,e,e[22],Vr),Y=e[23].text,ne=Bt(Y,e,e[22],Wr),ee=ne||tl(e),he=[rl,nl],le=[];function Oe(J,re){return J[6]?0:1}return h=Oe(e),E=le[h]=he[h](e),{c(){t=te("div"),n=te("div"),r=te("div"),i=te("div"),o=Se("svg"),l=Se("defs"),a=Se("mask"),c=Se("circle"),u=Se("rect"),f=Se("circle"),m=Se("circle"),y=Re(),x=je(A),g=Re(),N=te("div"),U=Se("svg"),V=Se("path"),R=Re(),H=te("div"),I=te("div"),d&&d.c(),W=Re(),X&&X.c(),oe=Re(),ee&&ee.c(),fe=Re(),K=te("div"),j=te("button"),C=te("span"),Ee=je(se),M=Re(),_=te("button"),E.c(),w(c,"cx","100"),w(c,"cy","100"),w(c,"r","90"),w(u,"x","88"),w(u,"y","40"),w(u,"width","24"),w(u,"height","80"),w(u,"rx","12"),w(u,"fill","black"),w(f,"cx","100"),w(f,"cy","150"),w(f,"r","14"),w(f,"fill","black"),w(a,"id","exclamation-mask"),w(m,"cx","100"),w(m,"cy","100"),w(m,"r","90"),w(m,"mask","url(#exclamation-mask)"),w(o,"viewBox","0 0 200 200"),w(o,"xmlns","http://www.w3.org/2000/svg"),w(i,"class","CashierSessionExpirationModalHeaderTitle"),w(V,"d","M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"),w(U,"xmlns","http://www.w3.org/2000/svg"),w(U,"viewBox","0 0 13 13"),w(U,"fill","none"),w(U,"class","CloseButton"),w(N,"class","ModalCloseIcon"),w(r,"class","CashierSessionExpirationModalHeader"),w(C,"class","CashierSessionExpirationButtonText"),w(j,"type","button"),w(j,"class","ModalButton Secondary"),w(_,"type","button"),w(_,"class",b="ModalButton Primary "+(e[6]?"Disabled":"")),w(K,"class","ButtonsContainer"),w(I,"class","CashierSessionExpiration"),w(H,"class","CashierSessionExpirationModalContainer"),w(n,"class","CashierSessionExpirationModalWrapper"),w(t,"class","CashierSessionExpirationModalWindow"),w(t,"id","CashierSessionExpirationModal"),tt(()=>e[25].call(t))},m(J,re){ke(J,t,re),B(t,n),B(n,r),B(r,i),B(i,o),B(o,l),B(l,a),B(a,c),B(a,u),B(a,f),B(o,m),B(i,y),B(i,x),B(r,g),B(r,N),B(N,U),B(U,V),B(n,R),B(n,H),B(H,I),d&&d.m(I,null),B(I,W),X&&X.m(I,null),B(I,oe),ee&&ee.m(I,null),B(I,fe),B(I,K),B(K,j),B(j,C),B(C,Ee),B(K,M),B(K,_),le[h].m(_,null),e[24](I),L=co(t,e[25].bind(t)),v=!0,z||(P=[Qe(U,"click",e[11]),Qe(j,"click",e[11]),Qe(_,"click",e[9]),Qe(t,"click",e[10])],z=!0)},p(J,re){e=J,(!v||re[0]&256)&&A!==(A=e[8]("sessionExpirationHeader")+"")&&yt(x,A),D?D.p&&(!v||re[0]&4194304)&&Ut(D,q,e,e[22],v?$t(q,e[22],re,Ka):kt(e[22]),Xr):d&&d.p&&(!v||re[0]&8)&&d.p(e,v?re:[-1,-1]),X&&X.p&&(!v||re[0]&4194304)&&Ut(X,k,e,e[22],v?$t(k,e[22],re,Qa):kt(e[22]),Vr),ne?ne.p&&(!v||re[0]&4194304)&&Ut(ne,Y,e,e[22],v?$t(Y,e[22],re,Ja):kt(e[22]),Wr):ee&&ee.p&&(!v||re[0]&384)&&ee.p(e,v?re:[-1,-1]),(!v||re[0]&256)&&se!==(se=e[8]("sessionExpirationEnd")+"")&&yt(Ee,se);let Me=h;h=Oe(e),h===Me?le[h].p(e,re):(oi(),Be(le[Me],1,1,()=>{le[Me]=null}),si(),E=le[h],E?E.p(e,re):(E=le[h]=he[h](e),E.c()),He(E,1),E.m(_,null)),(!v||re[0]&64&&b!==(b="ModalButton Primary "+(e[6]?"Disabled":"")))&&w(_,"class",b)},i(J){v||(He(d,J),He(X,J),He(ee,J),He(E),J&&tt(()=>{v&&(O||(O=dr(t,gr,{duration:e[2]},!0)),O.run(1))}),v=!0)},o(J){Be(d,J),Be(X,J),Be(ee,J),Be(E),J&&(O||(O=dr(t,gr,{duration:e[2]},!1)),O.run(0)),v=!1},d(J){J&&Ae(t),d&&d.d(J),X&&X.d(J),ee&&ee.d(J),le[h].d(),e[24](null),L(),J&&O&&O.end(),z=!1,Ue(P)}}}function Zr(e){let t,n;return{c(){t=te("img"),fr(t.src,n=`${e[3]}/set-timeout-icon.png`)||w(t,"src",n),w(t,"width","300px"),w(t,"alt","error")},m(r,i){ke(r,t,i)},p(r,i){i[0]&8&&!fr(t.src,n=`${r[3]}/set-timeout-icon.png`)&&w(t,"src",n)},d(r){r&&Ae(t)}}}function el(e){let t,n=e[3]&&Zr(e);return{c(){n&&n.c(),t=ao()},m(r,i){n&&n.m(r,i),ke(r,t,i)},p(r,i){r[3]?n?n.p(r,i):(n=Zr(r),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(r){r&&Ae(t),n&&n.d(r)}}}function tl(e){let t,n,r=e[8]("sessionExpirationTitle")+"",i,o,l,a=Fr.sanitize(e[8]("sessionExpirationGeneralText",{values:{second:e[7]}}))+"";return{c(){t=te("span"),n=te("p"),i=je(r),o=Re(),l=te("p"),w(t,"class","CashierSessionExpirationText")},m(c,u){ke(c,t,u),B(t,n),B(n,i),B(t,o),B(t,l),l.innerHTML=a},p(c,u){u[0]&256&&r!==(r=c[8]("sessionExpirationTitle")+"")&&yt(i,r),u[0]&384&&a!==(a=Fr.sanitize(c[8]("sessionExpirationGeneralText",{values:{second:c[7]}}))+"")&&(l.innerHTML=a)},d(c){c&&Ae(t)}}}function nl(e){let t;const n=e[23].button,r=Bt(n,e,e[22],zr),i=r||il(e);return{c(){i&&i.c()},m(o,l){i&&i.m(o,l),t=!0},p(o,l){r?r.p&&(!t||l[0]&4194304)&&Ut(r,n,o,o[22],t?$t(n,o[22],l,qa):kt(o[22]),zr):i&&i.p&&(!t||l[0]&256)&&i.p(o,t?l:[-1,-1])},i(o){t||(He(i,o),t=!0)},o(o){Be(i,o),t=!1},d(o){i&&i.d(o)}}}function rl(e){let t,n,r,i,o,l=e[8]("sessionExpirationLoadingButton")+"",a;return{c(){t=te("div"),n=Se("svg"),r=Se("path"),i=Re(),o=te("span"),a=je(l),w(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"),w(r,"fill","white"),w(n,"class","CashierSessionExpirationButtonSpinner"),w(n,"xmlns","http://www.w3.org/2000/svg"),w(n,"width","15"),w(n,"height","14"),w(n,"viewBox","0 0 15 14"),w(n,"fill","none"),w(o,"class","CashierSessionExpirationButtonText")},m(c,u){ke(c,t,u),B(t,n),B(n,r),B(t,i),B(t,o),B(o,a)},p(c,u){u[0]&256&&l!==(l=c[8]("sessionExpirationLoadingButton")+"")&&yt(a,l)},i:ye,o:ye,d(c){c&&Ae(t)}}}function il(e){let t,n=e[8]("sessionExpirationGeneralButton")+"",r;return{c(){t=te("span"),r=je(n),w(t,"class","CashierSessionExpirationButtonText")},m(i,o){ke(i,t,o),B(t,r)},p(i,o){o[0]&256&&n!==(n=i[8]("sessionExpirationGeneralButton")+"")&&yt(r,n)},d(i){i&&Ae(t)}}}function ol(e){let t,n,r=e[5]&&Yr(e);return{c(){t=te("div"),r&&r.c()},m(i,o){ke(i,t,o),r&&r.m(t,null),e[26](t),n=!0},p(i,o){i[5]?r?(r.p(i,o),o[0]&32&&He(r,1)):(r=Yr(i),r.c(),He(r,1),r.m(t,null)):r&&(oi(),Be(r,1,1,()=>{r=null}),si())},i(i){n||(He(r),n=!0)},o(i){Be(r),n=!1},d(i){i&&Ae(t),r&&r.d(),e[26](null)}}}const sl=90;function al(e,t,n){let r,i;hr(e,jr,d=>n(21,r=d)),hr(e,va,d=>n(8,i=d));let{$$slots:o={},$$scope:l}=t;Gr.extend(Wa);let{clientstyling:a=""}=t,{clientstylingurl:c=""}=t,{width:u}=t,{height:f}=t,{duration:m=200}=t,{assetsurl:y=""}=t,{lang:A="en"}=t,{translationurl:x=""}=t,{endpoint:g}=t,{currency:N}=t,{customerid:U}=t,{selectedpaymentmethodname:V}=t,{mbsource:R=""}=t,H,I=!1,W=!1,oe,fe,K,j,C;var se;(function(d){d.PlayerSessionIsNotValid="PlayerSessionIsNotValid",d.Success="Success",d.JwtTokenError="JwtTokenError"})(se||(se={}));const Ee=d=>{d.data.type==="StartSessionCountdown"&&(j=d.data.paymentMethodName)},M=d=>{try{return JSON.parse(atob(d.split(".")[1]))}catch(k){return null}},_=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:C},window.location.href)},h=d=>{n(5,I=!1);const k=M(d);k&&(fe=k==null?void 0:k.exp,n(7,oe=fe),K&&clearInterval(K),K=setInterval(()=>{const X=Math.floor(new Date().getTime()/1e3);n(7,oe=fe-X),oe<=sl&&n(5,I=!0),X>=fe&&(E(),window.postMessage({type:"SessionExpired"},window.location.href))},1e3))},E=()=>{n(7,oe=0),n(5,I=!1),clearInterval(K)},b=()=>{if(W)return;const d=new URL(`${g}/v1/player/${U}/payment/GetPaymentMethod`),k=new Headers;n(6,W=!0),k.append("accept","application/json"),k.append("Content-Type","application/json"),k.append("X-Client-Request-Timestamp",Gr.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const X={method:"POST",mode:"cors",headers:k,body:JSON.stringify({PaymentMethodName:j||V,Currency:N,XPaymentSessionToken:r})};fetch(d,X).then(Y=>Y.json()).then(Y=>{if(Y.error){window.postMessage({type:"ShowSessionError",error:Y.error},window.location.href),E();return}if(Y.ResponseCode===se.PlayerSessionIsNotValid||Y.ResponseCode===se.JwtTokenError){C=Y.ResponseCode,E(),_();return}if(Y.ResponseCode!==se.Success){C=Y.ResponseCode,E();return}Y.XPaymentSessionToken&&jr.set(Y.XPaymentSessionToken)}).finally(()=>n(6,W=!1))},L=d=>{const k=d.currentTarget;d.target===k&&b()},O=()=>{fetch(x).then(k=>k.json()).then(k=>{Object.keys(k).forEach(X=>{Hr(X,k[X])})}).catch(k=>{console.log(k)})},v=()=>{window.postMessage({type:"Cashier:goToHome"},window.location.href),n(5,I=!1)};Object.keys(Nr).forEach(d=>{Hr(d,Nr[d])});const z=()=>{Ta(A)};bo(()=>(window.addEventListener("message",Ee,!1),()=>{window.removeEventListener("message",Ee)})),Eo(()=>{clearInterval(K)});function P(d){Yt[d?"unshift":"push"](()=>{H=d,n(4,H)})}function q(){u=this.clientWidth,f=this.clientHeight,n(0,u),n(1,f)}function D(d){Yt[d?"unshift":"push"](()=>{H=d,n(4,H)})}return e.$$set=d=>{"clientstyling"in d&&n(12,a=d.clientstyling),"clientstylingurl"in d&&n(13,c=d.clientstylingurl),"width"in d&&n(0,u=d.width),"height"in d&&n(1,f=d.height),"duration"in d&&n(2,m=d.duration),"assetsurl"in d&&n(3,y=d.assetsurl),"lang"in d&&n(14,A=d.lang),"translationurl"in d&&n(15,x=d.translationurl),"endpoint"in d&&n(16,g=d.endpoint),"currency"in d&&n(17,N=d.currency),"customerid"in d&&n(18,U=d.customerid),"selectedpaymentmethodname"in d&&n(19,V=d.selectedpaymentmethodname),"mbsource"in d&&n(20,R=d.mbsource),"$$scope"in d&&n(22,l=d.$$scope)},e.$$.update=()=>{e.$$.dirty[0]&2097152&&h(r),e.$$.dirty[0]&16384&&A&&z(),e.$$.dirty[0]&4112&&a&&H&&Va(H,a),e.$$.dirty[0]&8208&&c&&H&&Xa(H,c),e.$$.dirty[0]&1048592&&R&&H&&Ya(H,`${R}.Style`),e.$$.dirty[0]&32768&&x&&O()},[u,f,m,y,H,I,W,oe,i,b,L,v,a,c,A,x,g,N,U,V,R,r,l,o,P,q,D]}class Fi extends Ho{constructor(t){super(),Co(this,t,al,ol,Qr,{clientstyling:12,clientstylingurl:13,width:0,height:1,duration:2,assetsurl:3,lang:14,translationurl:15,endpoint:16,currency:17,customerid:18,selectedpaymentmethodname:19,mbsource:20},Za,[-1,-1])}get clientstyling(){return this.$$.ctx[12]}set clientstyling(t){this.$$set({clientstyling:t}),de()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),de()}get width(){return this.$$.ctx[0]}set width(t){this.$$set({width:t}),de()}get height(){return this.$$.ctx[1]}set height(t){this.$$set({height:t}),de()}get duration(){return this.$$.ctx[2]}set duration(t){this.$$set({duration:t}),de()}get assetsurl(){return this.$$.ctx[3]}set assetsurl(t){this.$$set({assetsurl:t}),de()}get lang(){return this.$$.ctx[14]}set lang(t){this.$$set({lang:t}),de()}get translationurl(){return this.$$.ctx[15]}set translationurl(t){this.$$set({translationurl:t}),de()}get endpoint(){return this.$$.ctx[16]}set endpoint(t){this.$$set({endpoint:t}),de()}get currency(){return this.$$.ctx[17]}set currency(t){this.$$set({currency:t}),de()}get customerid(){return this.$$.ctx[18]}set customerid(t){this.$$set({customerid:t}),de()}get selectedpaymentmethodname(){return this.$$.ctx[19]}set selectedpaymentmethodname(t){this.$$set({selectedpaymentmethodname:t}),de()}get mbsource(){return this.$$.ctx[20]}set mbsource(t){this.$$set({mbsource:t}),de()}}Lo(Fi,{clientstyling:{},clientstylingurl:{},width:{},height:{},duration:{},assetsurl:{},lang:{},translationurl:{},endpoint:{},currency:{},customerid:{},selectedpaymentmethodname:{},mbsource:{}},["icon","title","text","button"],[],!0);exports.default=Fi;
@@ -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-73rpPbl7.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-Vubylti9.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-DswSIlPK.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CashierSessionExpirationModal-CK3ySuQl.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-CL_Iqi13.js";
1
+ import { C as n } from "../components/CashierSessionExpirationModal-Cc1S2bE-.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.85.20",
3
+ "version": "1.85.22",
4
4
  "type": "module",
5
5
  "main": "es2015/cashier-session-expiration-modal.cjs",
6
6
  "module": "esnext/cashier-session-expiration-modal.js",