@everymatrix/cashier-session-expiration-modal 1.85.19 → 1.85.21
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.
- package/components/CashierSessionExpirationModal-5KLrMZ18.cjs +9 -0
- package/components/{CashierSessionExpirationModal-DswSIlPK.js → CashierSessionExpirationModal-BLSkwqeD.js} +1658 -1655
- package/components/{CashierSessionExpirationModal-CL_Iqi13.js → CashierSessionExpirationModal-D6e6g0Ll.js} +1575 -1572
- package/es2015/cashier-session-expiration-modal.cjs +1 -1
- package/es2015/cashier-session-expiration-modal.js +1 -1
- package/esnext/cashier-session-expiration-modal.js +1 -1
- package/package.json +1 -1
- package/components/CashierSessionExpirationModal-73rpPbl7.cjs +0 -9
|
@@ -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 xe=(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 Ee(){}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 Be(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 Ee}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):Ee;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 $(e,t){e.appendChild(t)}function oo(e,t,n){const r=Rn(e);if(!r.getElementById(t)){const i=ee("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=ee("style");return t.textContent="/* empty */",ri(Rn(e),t),t.sheet}function ri(e,t){return $(e.head||e,t),t.sheet}function $e(e,t,n){e.insertBefore(t,n||null)}function Ae(e){e.parentNode&&e.parentNode.removeChild(e)}function ee(e){return document.createElement(e)}function Se(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Fe(e){return document.createTextNode(e)}function Ie(){return Fe(" ")}function ao(){return Fe("")}function Qe(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function A(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=ee("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()}),$(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 I=0;I<=1;I+=c){const k=t+(n-t)*o(I);u+=I*100+`%{${l(k,1-k)}}
|
|
3
|
+
`}const f=u+`100% {${l(n,1-n)}}
|
|
4
|
+
}`,m=`__svelte_${mo(f)}_${a}`,y=Rn(e),{stylesheet:w,rules:x}=Vt.get(y)||po(y,e);x[m]||(x[m]=!0,w.insertRule(`@keyframes ${m} ${f}`,w.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(me))}function tt(e){et.push(e)}const cn=new Set;let Ze=0;function me(){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(),Be(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 Gt=new Set;let Pe;function oi(){Pe={r:0,c:[],p:Pe}}function si(){Pe.r||Be(Pe.c),Pe=Pe.p}function Me(e,t){e&&e.i&&(Gt.delete(e),e.i(t))}function Re(e,t,n,r){if(e&&e.o){if(Gt.has(e))return;Gt.add(e),Pe.c.push(()=>{Gt.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 I=x.b-l;return g*=Math.abs(I),{a:l,b:x.b,d:I,duration:g,start:x.start,end:x.start+g,group:x.group}}function w(x){const{delay:g=0,duration:I=300,easing:k=qr,tick:Y=Ee,css:B}=o||wo,N={start:ro()+g,b:x};x||(N.group=Pe,Pe.r+=1),"inert"in e&&(x?f!==void 0&&(e.inert=f):(f=e.inert,e.inert=!0)),a||c?c=N:(B&&(m(),u=mr(e,l,x,I,g,k,B)),x&&Y(0,1),a=y(N,I),tt(()=>fn(e,x,"start")),io(P=>{if(c&&P>c.start&&(a=y(c,I),c=null,fn(e,a.b,"start"),B&&(m(),u=mr(e,l,a.b,a.duration,0,k,o.css))),a){if(P>=a.end)Y(l=a.b,1-l),fn(e,a.b,"end"),c||(a.b?m():--a.group.r||Be(a.group.c)),a=null;else if(P>=a.start){const z=P-a.start;l=a.a+a.d*k(z/a.duration),Y(l,1-l)}}return!!(a||c)}))}return{run(x){Kt(o)?So().then(()=>{o=o({direction:x?"in":"out"}),w(x)}):w(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):Be(o),e.$$.on_mount=[]}),i.forEach(tt)}function Oo(e,t){const n=e.$$;n.fragment!==null&&(To(n.after_update),Be(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Co(e,t){e.$$.dirty[0]===-1&&(Je.push(e),xo(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Mo(e,t,n,r,i,o,l=null,a=[-1]){const c=xt;Et(e);const u=e.$$={fragment:null,ctx:[],props:o,update:Ee,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,...w)=>{const x=w.length?w[0]:y;return u.ctx&&i(u.ctx[m],u.ctx[m]=x)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](x),f&&Co(e,m)),y}):[],u.update(),f=!0,Be(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&&Me(e.$$.fragment),Ao(e,t.target,t.anchor),me()}Et(c)}let ai;typeof HTMLElement=="function"&&(ai=class extends HTMLElement{constructor(t,n,r){super();xe(this,"$$ctor");xe(this,"$$s");xe(this,"$$c");xe(this,"$$cn",!1);xe(this,"$$d",{});xe(this,"$$r",!1);xe(this,"$$p_d",{});xe(this,"$$l",{});xe(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=ee("slot"),o!=="default"&&A(l,"name",o)},m:function(u,f){$e(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]=Ft(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=Ft(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]=Ft(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 Ft(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=Ft(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(){xe(this,"$$");xe(this,"$$set")}$destroy(){Oo(this,1),this.$destroy=Ee}$on(t,n){if(!Kt(n))return Ee;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=Ee){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=Ee){const u=[a,c];return r.add(u),r.size===1&&(n=t(i,o)||Ee),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=Ee;const y=()=>{if(f)return;m();const x=t(r?u[0]:u,l,a);o?l(x):m=Kt(x)?x:Ee},w=i.map((x,g)=>Kr(x,I=>{u[g]=I,f&=~(1<<g),c&&y()},()=>{f|=1<<g}));return c=!0,y(),function(){Be(w),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 Go(e,t,n){return e.concat(t).map(function(r){return vt(r,n)})}function Fo(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]=Fo(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||Go,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 Le=function(){return Le=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},Le.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 G;(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"})(G||(G={}));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 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)};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=ne(ne(ne({},t),{notation:"scientific"}),i.options.reduce(function(c,u){return ne(ne({},c),xr(u))},{}));continue;case"engineering":t=ne(ne(ne({},t),{notation:"engineering"}),i.options.reduce(function(c,u){return ne(ne({},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,w){if(u)t.minimumIntegerDigits=f.length;else{if(m&&y)throw new Error("We currently do not support maximum integer digits");if(w)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,w){return f==="*"?t.minimumFractionDigits=u.length:m&&m[0]==="#"?t.maximumFractionDigits=m.length:y&&w?(t.minimumFractionDigits=y.length,t.maximumFractionDigits=y.length+w.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?t=ne(ne({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=ne(ne({},t),yr(o)));continue}if(yi.test(i.stem)){t=ne(ne({},t),yr(i.stem));continue}var l=vi(i.stem);l&&(t=ne(ne({},t),l));var a=fs(i.stem);a&&(t=ne(ne({},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 F(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 Cn;if(An){var Sr=Si("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Cn=function(t,n){var r;Sr.lastIndex=n;var i=Sr.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else Cn=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 Cs=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:F(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(G.UNMATCHED_CLOSING_TAG,F(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Mn(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:F(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()||!Mn(this.char()))return this.error(G.INVALID_TAG,F(a,this.clonePosition()));var c=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(G.UNMATCHED_CLOSING_TAG,F(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Q.tag,value:i,children:l,location:F(r,this.clonePosition())},err:null}:this.error(G.INVALID_TAG,F(a,this.clonePosition())))}else return this.error(G.UNCLOSED_TAG,F(r,this.clonePosition()))}else return this.error(G.INVALID_TAG,F(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=F(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||!Ms(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(G.EXPECT_ARGUMENT_CLOSING_BRACE,F(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(G.EMPTY_ARGUMENT,F(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(G.MALFORMED_ARGUMENT,F(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(G.EXPECT_ARGUMENT_CLOSING_BRACE,F(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Q.argument,value:i,location:F(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(G.EXPECT_ARGUMENT_CLOSING_BRACE,F(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(G.MALFORMED_ARGUMENT,F(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=Cn(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),l=F(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(G.EXPECT_ARGUMENT_TYPE,F(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(G.EXPECT_ARGUMENT_STYLE,F(this.clonePosition(),this.clonePosition()));var w=F(f,this.clonePosition());u={style:y,styleLocation:w}}var x=this.tryParseArgumentClose(i);if(x.err)return x;var g=F(i,this.clonePosition());if(u&&vr(u==null?void 0:u.style,"::",0)){var I=As(u.style.slice(2));if(a==="number"){var m=this.parseNumberSkeletonFromString(I,u.styleLocation);return m.err?m:{val:{type:Q.number,value:r,location:g,style:m.val},err:null}}else{if(I.length===0)return this.error(G.EXPECT_DATE_TIME_SKELETON,g);var k=I;this.locale&&(k=ms(I,this.locale));var y={type:rt.dateTime,pattern:k,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?ss(k):{}},Y=a==="date"?Q.date:Q.time;return{val:{type:Y,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 B=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(G.EXPECT_SELECT_ARGUMENT_OPTIONS,F(B,Zt({},B)));this.bumpSpace();var N=this.parseIdentifierIfPossible(),P=0;if(a!=="select"&&N.value==="offset"){if(!this.bumpIf(":"))return this.error(G.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,F(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m=this.tryParseDecimalInteger(G.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,G.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(m.err)return m;this.bumpSpace(),N=this.parseIdentifierIfPossible(),P=m.val}var z=this.tryParsePluralOrSelectOptions(t,a,n,N);if(z.err)return z;var x=this.tryParseArgumentClose(i);if(x.err)return x;var ie=F(i,this.clonePosition());return a==="select"?{val:{type:Q.select,value:r,options:Tr(z.val),location:ie},err:null}:{val:{type:Q.plural,value:r,options:Tr(z.val),offset:P,pluralType:a==="plural"?"cardinal":"ordinal",location:ie},err:null}}default:return this.error(G.INVALID_ARGUMENT_TYPE,F(l,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(G.EXPECT_ARGUMENT_CLOSING_BRACE,F(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(G.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,F(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(G.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(G.EXPECT_PLURAL_ARGUMENT_SELECTOR,G.INVALID_PLURAL_ARGUMENT_SELECTOR);if(y.err)return y;f=F(m,this.clonePosition()),u=this.message.slice(m.offset,this.offset())}else break}if(c.has(u))return this.error(n==="select"?G.DUPLICATE_SELECT_ARGUMENT_SELECTOR:G.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);u==="other"&&(l=!0),this.bumpSpace();var w=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?G.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:G.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,F(this.clonePosition(),this.clonePosition()));var x=this.parseMessage(t+1,n,r);if(x.err)return x;var g=this.tryParseArgumentClose(w);if(g.err)return g;a.push([u,{value:x.val,location:F(w,this.clonePosition())}]),c.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,f=o.location}return a.length===0?this.error(n==="select"?G.EXPECT_SELECT_ARGUMENT_SELECTOR:G.EXPECT_PLURAL_ARGUMENT_SELECTOR,F(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!l?this.error(G.MISSING_OTHER_CLAUSE,F(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=F(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 Mn(e){return e>=97&&e<=122||e>=65&&e<=90}function Ms(e){return Mn(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 Cs(e,t).parse();if(n.err){var r=SyntaxError(G[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),pe;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(pe||(pe={}));function Rs(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==pe.literal||n.type!==pe.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:pe.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:pe.literal,value:f.value});continue}if(is(f)){typeof o=="number"&&a.push({type:pe.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"?pe.literal:pe.object,value:y});continue}if(mi(f)){var w=typeof f.style=="string"?r.date[f.style]:wn(f.style)?f.style.parsedOptions:void 0;a.push({type:pe.literal,value:n.getDateTimeFormat(t,w).format(y)});continue}if(pi(f)){var w=typeof f.style=="string"?r.time[f.style]:wn(f.style)?f.style.parsedOptions:r.time.medium;a.push({type:pe.literal,value:n.getDateTimeFormat(t,w).format(y)});continue}if(hi(f)){var w=typeof f.style=="string"?r.number[f.style]:bi(f.style)?f.style.parsedOptions:void 0;w&&w.scale&&(y=y*(w.scale||1)),a.push({type:pe.literal,value:n.getNumberFormat(t,w).format(y)});continue}if(_i(f)){var x=f.children,g=f.value,I=i[g];if(!Ds(I))throw new Is(g,"function",l);var k=jt(x,t,n,r,i,o),Y=I(k.map(function(P){return P.value}));Array.isArray(Y)||(Y=[Y]),a.push.apply(a,Y.map(function(P){return{type:typeof P=="string"?pe.literal:pe.object,value:P}}))}if(di(f)){var B=f.options[y]||f.options.other;if(!B)throw new wr(f.value,y,Object.keys(f.options),l);a.push.apply(a,jt(B.value,t,n,r,i));continue}if(gi(f)){var B=f.options["=".concat(y)];if(!B){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 N=n.getPluralRules(t,{type:f.pluralType}).select(y-(f.offset||0));B=f.options[N]||f.options.other}if(!B)throw new wr(f.value,y,Object.keys(f.options),l);a.push.apply(a,jt(B.value,t,n,r,i,y-(f.offset||0)));continue}}return Rs(a)}function Bs(e,t){return t?Le(Le(Le({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=Le(Le({},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},Le({},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!==pe.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,Le(Le({},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 De={},Gs=(e,t,n)=>n&&(t in De||(De[t]={}),e in De[t]||(De[t][e]=n),n),Oi=(e,t)=>{if(t==null)return;if(t in De&&e in De[t])return De[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 Gs(e,t,o)}};let Bn;const wt=St({});function Fs(e){return Bn[e]||null}function Ci(e){return e in Bn}function js(e,t){if(!Ci(e))return null;const n=Fs(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(Ci(r))return r}}function Mi(e,...t){delete De[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=>Mi(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(Ue())?`
|
|
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)),je.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,Cr=(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)&&Cr(e,n,t[n]);if(Or)for(var n of Or(t))oa.call(t,n)&&Cr(e,n,t[n]);return e},aa=(e,t)=>na(e,ra(t));let Hn;const Jt=St(null);function Mr(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function At(e,t=ot().fallbackLocale){const n=Mr(e);return t?[...new Set([...n,...Mr(t)])]:n}function Ue(){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"&&Ue()!=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)},je=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=Ue()}=t,r=at(t,["locale"]);return ca($n({locale:n},r))},pa=(e={})=>{var t=e,{locale:n=Ue()}=t,r=at(t,["locale"]);return fa($n({locale:n},r))},da=(e={})=>{var t=e,{locale:n=Ue()}=t,r=at(t,["locale"]);return ha($n({locale:n},r))},ga=nn((e,t=Ue())=>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=Ue(),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=Ue())=>Oi(e,t),va=st([je,wt],()=>_a);st([je],()=>ba);st([je],()=>Ea);st([je],()=>ya);st([je,wt],()=>xa);function Hr(e,t){Mi(e,t)}function Ta(e){ea({fallbackLocale:"en"}),je.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..."},"en-us":{sessionExpirationHeader:"Session Warning",sessionExpirationTitle:"Your session is about to expire!",sessionExpirationGeneralText:"Your session will automatically terminate in <b>{second} seconds</b>.",sessionExpirationGeneralButton:"CONTINUE",sessionExpirationLoadingButton:"PROCESSING..."}};/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:Pi,setPrototypeOf:Ir,isFrozen:Sa,getPrototypeOf:wa,getOwnPropertyDescriptor:Aa}=Object;let{freeze:de,seal:ve,create:Ri}=Object,{apply:Nn,construct:In}=typeof Reflect!="undefined"&&Reflect;de||(de=function(t){return t});ve||(ve=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=ye(Array.prototype.forEach),Pr=ye(Array.prototype.pop),mt=ye(Array.prototype.push),Wt=ye(String.prototype.toLowerCase),bn=ye(String.prototype.toString),Rr=ye(String.prototype.match),pt=ye(String.prototype.replace),Oa=ye(String.prototype.indexOf),Ca=ye(String.prototype.trim),we=ye(Object.prototype.hasOwnProperty),he=ye(RegExp.prototype.test),dt=Ma(TypeError);function ye(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Nn(e,t,r)}}function Ma(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return In(e,n)}}function U(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 ye(r.get);if(typeof r.value=="function")return ye(r.value)}e=wa(e)}function n(){return null}return n}const Dr=de(["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=de(["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=de(["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=de(["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=de(["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=de(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Br=de(["#text"]),$r=de(["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=de(["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=de(["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=de(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ia=ve(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Pa=ve(/<%[\w\W]*|[\w\W]*%>/gm),Ra=ve(/\${[\w\W]*}/gm),Da=ve(/^data-[\-\w.\u00B7-\uFFFF]/),Ba=ve(/^aria-[\-\w]+$/),Di=ve(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$a=ve(/^(?:\w+script|data):/i),Ua=ve(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Bi=ve(/^html$/i),ka=ve(/^[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},Ga=function(){return typeof window=="undefined"?null:window},Fa=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const 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]:Ga();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:w}=e,x=c.prototype,g=gt(x,"cloneNode"),I=gt(x,"remove"),k=gt(x,"nextSibling"),Y=gt(x,"childNodes"),B=gt(x,"parentNode");if(typeof l=="function"){const S=n.createElement("template");S.content&&S.content.ownerDocument&&(n=S.content.ownerDocument)}let N,P="";const{implementation:z,createNodeIterator:ie,createDocumentFragment:ce,getElementsByTagName:K}=n,{importNode:j}=r;let L={};t.isSupported=typeof Pi=="function"&&typeof B=="function"&&z&&z.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:se,ERB_EXPR:be,TMPLIT_EXPR:C,DATA_ATTR:d,ARIA_ATTR:h,IS_SCRIPT_OR_DATA:E,ATTR_WHITESPACE:_,CUSTOM_ELEMENT:O}=kr;let{IS_ALLOWED_URI:v}=kr,M=null;const W=U({},[...Dr,...En,...yn,...xn,...Br]);let R=null;const q=U({},[...$r,...vn,...Ur,...Dt]);let H=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}})),b=null,D=null,oe=!0,Z=!0,V=!1,ge=!0,re=!1,Te=!0,X=!1,te=!1,ke=!1,ze=!1,Ot=!1,Ct=!1,Un=!0,kn=!1;const Fi="user-content-";let rn=!0,lt=!1,We={},Ve=null;const Gn=U({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Fn=null;const jn=U({},["audio","video","img","source","image","track"]);let on=null;const zn=U({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Mt="http://www.w3.org/1998/Math/MathML",Lt="http://www.w3.org/2000/svg",He="http://www.w3.org/1999/xhtml";let Xe=He,sn=!1,an=null;const ji=U({},[Mt,Lt,He],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,M=we(s,"ALLOWED_TAGS")?U({},s.ALLOWED_TAGS,ae):W,R=we(s,"ALLOWED_ATTR")?U({},s.ALLOWED_ATTR,ae):q,an=we(s,"ALLOWED_NAMESPACES")?U({},s.ALLOWED_NAMESPACES,bn):ji,on=we(s,"ADD_URI_SAFE_ATTR")?U(Ge(zn),s.ADD_URI_SAFE_ATTR,ae):zn,Fn=we(s,"ADD_DATA_URI_TAGS")?U(Ge(jn),s.ADD_DATA_URI_TAGS,ae):jn,Ve=we(s,"FORBID_CONTENTS")?U({},s.FORBID_CONTENTS,ae):Gn,b=we(s,"FORBID_TAGS")?U({},s.FORBID_TAGS,ae):{},D=we(s,"FORBID_ATTR")?U({},s.FORBID_ATTR,ae):{},We=we(s,"USE_PROFILES")?s.USE_PROFILES:!1,oe=s.ALLOW_ARIA_ATTR!==!1,Z=s.ALLOW_DATA_ATTR!==!1,V=s.ALLOW_UNKNOWN_PROTOCOLS||!1,ge=s.ALLOW_SELF_CLOSE_IN_ATTR!==!1,re=s.SAFE_FOR_TEMPLATES||!1,Te=s.SAFE_FOR_XML!==!1,X=s.WHOLE_DOCUMENT||!1,ze=s.RETURN_DOM||!1,Ot=s.RETURN_DOM_FRAGMENT||!1,Ct=s.RETURN_TRUSTED_TYPE||!1,ke=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,v=s.ALLOWED_URI_REGEXP||Di,Xe=s.NAMESPACE||He,H=s.CUSTOM_ELEMENT_HANDLING||{},s.CUSTOM_ELEMENT_HANDLING&&Wn(s.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=s.CUSTOM_ELEMENT_HANDLING.tagNameCheck),s.CUSTOM_ELEMENT_HANDLING&&Wn(s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),s.CUSTOM_ELEMENT_HANDLING&&typeof s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(H.allowCustomizedBuiltInElements=s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),re&&(Z=!1),Ot&&(ze=!0),We&&(M=U({},Br),R=[],We.html===!0&&(U(M,Dr),U(R,$r)),We.svg===!0&&(U(M,En),U(R,vn),U(R,Dt)),We.svgFilters===!0&&(U(M,yn),U(R,vn),U(R,Dt)),We.mathMl===!0&&(U(M,xn),U(R,Ur),U(R,Dt))),s.ADD_TAGS&&(M===W&&(M=Ge(M)),U(M,s.ADD_TAGS,ae)),s.ADD_ATTR&&(R===q&&(R=Ge(R)),U(R,s.ADD_ATTR,ae)),s.ADD_URI_SAFE_ATTR&&U(on,s.ADD_URI_SAFE_ATTR,ae),s.FORBID_CONTENTS&&(Ve===Gn&&(Ve=Ge(Ve)),U(Ve,s.FORBID_CONTENTS,ae)),rn&&(M["#text"]=!0),X&&U(M,["html","head","body"]),M.table&&(U(M,["tbody"]),delete b.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.');N=s.TRUSTED_TYPES_POLICY,P=N.createHTML("")}else N===void 0&&(N=Fa(w,i)),N!==null&&typeof P=="string"&&(P=N.createHTML(""));de&&de(s),Ye=s}},Vn=U({},["mi","mo","mn","ms","mtext"]),Xn=U({},["foreignobject","annotation-xml"]),Xi=U({},["title","style","font","a","script"]),Yn=U({},[...En,...yn,...Ha]),Zn=U({},[...xn,...Na]),Yi=function(s){let p=B(s);(!p||!p.tagName)&&(p={namespaceURI:Xe,tagName:"template"});const T=Wt(s.tagName),J=Wt(p.tagName);return an[s.namespaceURI]?s.namespaceURI===Lt?p.namespaceURI===He?T==="svg":p.namespaceURI===Mt?T==="svg"&&(J==="annotation-xml"||Vn[J]):!!Yn[T]:s.namespaceURI===Mt?p.namespaceURI===He?T==="math":p.namespaceURI===Lt?T==="math"&&Xn[J]:!!Zn[T]:s.namespaceURI===He?p.namespaceURI===Lt&&!Xn[J]||p.namespaceURI===Mt&&!Vn[J]?!1:!Zn[T]&&(Xi[T]||!Yn[T]):!!(ut==="application/xhtml+xml"&&an[s.namespaceURI]):!1},Oe=function(s){mt(t.removed,{element:s});try{B(s).removeChild(s)}catch(p){I(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"&&!R[s])if(ze||Ot)try{Oe(p)}catch(T){}else try{p.setAttribute(s,"")}catch(T){}},qn=function(s){let p=null,T=null;if(ke)s="<remove></remove>"+s;else{const le=Rr(s,/^[\r\n\t ]+/);T=le&&le[0]}ut==="application/xhtml+xml"&&Xe===He&&(s='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+s+"</body></html>");const J=N?N.createHTML(s):s;if(Xe===He)try{p=new y().parseFromString(J,ut)}catch(le){}if(!p||!p.documentElement){p=z.createDocument(Xe,"template",null);try{p.documentElement.innerHTML=sn?P:J}catch(le){}}const ue=p.body||p.documentElement;return s&&T&&ue.insertBefore(n.createTextNode(T),ue.childNodes[0]||null),Xe===He?K.call(p,X?"html":"body")[0]:X?p.documentElement:ue},Jn=function(s){return ie.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},Ne=function(s,p,T){L[s]&&Rt(L[s],J=>{J.call(t,p,T,Ye)})},er=function(s){let p=null;if(Ne("beforeSanitizeElements",s,null),Qn(s))return Oe(s),!0;const T=ae(s.nodeName);if(Ne("uponSanitizeElement",s,{tagName:T,allowedTags:M}),s.hasChildNodes()&&!Kn(s.firstElementChild)&&he(/<[/\w]/g,s.innerHTML)&&he(/<[/\w]/g,s.textContent)||s.nodeType===_t.progressingInstruction||Te&&s.nodeType===_t.comment&&he(/<[/\w]/g,s.data))return Oe(s),!0;if(!M[T]||b[T]){if(!b[T]&&nr(T)&&(H.tagNameCheck instanceof RegExp&&he(H.tagNameCheck,T)||H.tagNameCheck instanceof Function&&H.tagNameCheck(T)))return!1;if(rn&&!Ve[T]){const J=B(s)||s.parentNode,ue=Y(s)||s.childNodes;if(ue&&J){const le=ue.length;for(let _e=le-1;_e>=0;--_e){const Ce=g(ue[_e],!0);Ce.__removalCount=(s.__removalCount||0)+1,J.insertBefore(Ce,k(s))}}}return Oe(s),!0}return s instanceof c&&!Yi(s)||(T==="noscript"||T==="noembed"||T==="noframes")&&he(/<\/no(script|embed|frames)/i,s.innerHTML)?(Oe(s),!0):(re&&s.nodeType===_t.text&&(p=s.textContent,Rt([se,be,C],J=>{p=pt(p,J," ")}),s.textContent!==p&&(mt(t.removed,{element:s.cloneNode()}),s.textContent=p)),Ne("afterSanitizeElements",s,null),!1)},tr=function(s,p,T){if(Un&&(p==="id"||p==="name")&&(T in n||T in Vi))return!1;if(!(Z&&!D[p]&&he(d,p))){if(!(oe&&he(h,p))){if(!R[p]||D[p]){if(!(nr(s)&&(H.tagNameCheck instanceof RegExp&&he(H.tagNameCheck,s)||H.tagNameCheck instanceof Function&&H.tagNameCheck(s))&&(H.attributeNameCheck instanceof RegExp&&he(H.attributeNameCheck,p)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(p))||p==="is"&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&he(H.tagNameCheck,T)||H.tagNameCheck instanceof Function&&H.tagNameCheck(T))))return!1}else if(!on[p]){if(!he(v,pt(T,_,""))){if(!((p==="src"||p==="xlink:href"||p==="href")&&s!=="script"&&Oa(T,"data:")===0&&Fn[s])){if(!(V&&!he(E,pt(T,_,"")))){if(T)return!1}}}}}}return!0},nr=function(s){return s!=="annotation-xml"&&Rr(s,O)},rr=function(s){Ne("beforeSanitizeAttributes",s,null);const{attributes:p}=s;if(!p)return;const T={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:R};let J=p.length;for(;J--;){const ue=p[J],{name:le,namespaceURI:_e,value:Ce}=ue,ct=ae(le);let fe=le==="value"?Ce:Ca(Ce);if(T.attrName=ct,T.attrValue=fe,T.keepAttr=!0,T.forceKeepAttr=void 0,Ne("uponSanitizeAttribute",s,T),fe=T.attrValue,Te&&he(/((--!?|])>)|<\/(style|title)/i,fe)){Ht(le,s);continue}if(T.forceKeepAttr||(Ht(le,s),!T.keepAttr))continue;if(!ge&&he(/\/>/i,fe)){Ht(le,s);continue}re&&Rt([se,be,C],or=>{fe=pt(fe,or," ")});const ir=ae(s.nodeName);if(tr(ir,ct,fe)){if(kn&&(ct==="id"||ct==="name")&&(Ht(le,s),fe=Fi+fe),N&&typeof w=="object"&&typeof w.getAttributeType=="function"&&!_e)switch(w.getAttributeType(ir,ct)){case"TrustedHTML":{fe=N.createHTML(fe);break}case"TrustedScriptURL":{fe=N.createScriptURL(fe);break}}try{_e?s.setAttributeNS(_e,le,fe):s.setAttribute(le,fe),Qn(s)?Oe(s):Pr(t.removed)}catch(or){}}}Ne("afterSanitizeAttributes",s,null)},Zi=function S(s){let p=null;const T=Jn(s);for(Ne("beforeSanitizeShadowDOM",s,null);p=T.nextNode();)Ne("uponSanitizeShadowNode",p,null),!er(p)&&(p.content instanceof o&&S(p.content),rr(p));Ne("afterSanitizeShadowDOM",s,null)};return t.sanitize=function(S){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=null,T=null,J=null,ue=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(te||ln(s),t.removed=[],typeof S=="string"&&(lt=!1),lt){if(S.nodeName){const Ce=ae(S.nodeName);if(!M[Ce]||b[Ce])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(!ze&&!re&&!X&&S.indexOf("<")===-1)return N&&Ct?N.createHTML(S):S;if(p=qn(S),!p)return ze?null:Ct?P:""}p&&ke&&Oe(p.firstChild);const le=Jn(lt?S:p);for(;J=le.nextNode();)er(J)||(J.content instanceof o&&Zi(J.content),rr(J));if(lt)return S;if(ze){if(Ot)for(ue=ce.call(p.ownerDocument);p.firstChild;)ue.appendChild(p.firstChild);else ue=p;return(R.shadowroot||R.shadowrootmode)&&(ue=j.call(r,ue,!0)),ue}let _e=X?p.outerHTML:p.innerHTML;return X&&M["!doctype"]&&p.ownerDocument&&p.ownerDocument.doctype&&p.ownerDocument.doctype.name&&he(Bi,p.ownerDocument.doctype.name)&&(_e="<!DOCTYPE "+p.ownerDocument.doctype.name+`>
|
|
9
|
+
`+_e),re&&Rt([se,be,C],Ce=>{_e=pt(_e,Ce," ")}),N&&Ct?N.createHTML(_e):_e},t.setConfig=function(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ln(S),te=!0},t.clearConfig=function(){Ye=null,te=!1},t.isValidAttribute=function(S,s,p){Ye||ln({});const T=ae(S),J=ae(s);return tr(T,J,p)},t.addHook=function(S,s){typeof s=="function"&&(L[S]=L[S]||[],mt(L[S],s))},t.removeHook=function(S){if(L[S])return Pr(L[S])},t.removeHooks=function(S){L[S]&&(L[S]=[])},t.removeAllHooks=function(){L={}},t}var Gr=$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",w="year",x="date",g="Invalid Date",I=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,k=/\[([^\]]+)]|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,Y={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(C){var d=["th","st","nd","rd"],h=C%100;return"["+C+(d[(h-20)%10]||d[h]||d[0])+"]"}},B=function(C,d,h){var E=String(C);return!E||E.length>=d?C:""+Array(d+1-E.length).join(h)+C},N={s:B,z:function(C){var d=-C.utcOffset(),h=Math.abs(d),E=Math.floor(h/60),_=h%60;return(d<=0?"+":"-")+B(E,2,"0")+":"+B(_,2,"0")},m:function C(d,h){if(d.date()<h.date())return-C(h,d);var E=12*(h.year()-d.year())+(h.month()-d.month()),_=d.clone().add(E,m),O=h-_<0,v=d.clone().add(E+(O?-1:1),m);return+(-(E+(h-_)/(O?_-v:v-_))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:m,y:w,w:f,d:u,D:x,h:c,m:a,s:l,ms:o,Q:y}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},P="en",z={};z[P]=Y;var ie="$isDayjsObject",ce=function(C){return C instanceof se||!(!C||!C[ie])},K=function C(d,h,E){var _;if(!d)return P;if(typeof d=="string"){var O=d.toLowerCase();z[O]&&(_=O),h&&(z[O]=h,_=O);var v=d.split("-");if(!_&&v.length>1)return C(v[0])}else{var M=d.name;z[M]=d,_=M}return!E&&_&&(P=_),_||!E&&P},j=function(C,d){if(ce(C))return C.clone();var h=typeof d=="object"?d:{};return h.date=C,h.args=arguments,new se(h)},L=N;L.l=K,L.i=ce,L.w=function(C,d){return j(C,{locale:d.$L,utc:d.$u,x:d.$x,$offset:d.$offset})};var se=function(){function C(h){this.$L=K(h.locale,null,!0),this.parse(h),this.$x=this.$x||h.x||{},this[ie]=!0}var d=C.prototype;return d.parse=function(h){this.$d=function(E){var _=E.date,O=E.utc;if(_===null)return new Date(NaN);if(L.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var v=_.match(I);if(v){var M=v[2]-1||0,W=(v[7]||"0").substring(0,3);return O?new Date(Date.UTC(v[1],M,v[3]||1,v[4]||0,v[5]||0,v[6]||0,W)):new Date(v[1],M,v[3]||1,v[4]||0,v[5]||0,v[6]||0,W)}}return new Date(_)}(h),this.init()},d.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()},d.$utils=function(){return L},d.isValid=function(){return this.$d.toString()!==g},d.isSame=function(h,E){var _=j(h);return this.startOf(E)<=_&&_<=this.endOf(E)},d.isAfter=function(h,E){return j(h)<this.startOf(E)},d.isBefore=function(h,E){return this.endOf(E)<j(h)},d.$g=function(h,E,_){return L.u(h)?this[E]:this.set(_,h)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(h,E){var _=this,O=!!L.u(E)||E,v=L.p(h),M=function(Z,V){var ge=L.w(_.$u?Date.UTC(_.$y,V,Z):new Date(_.$y,V,Z),_);return O?ge:ge.endOf(u)},W=function(Z,V){return L.w(_.toDate()[Z].apply(_.toDate("s"),(O?[0,0,0,0]:[23,59,59,999]).slice(V)),_)},R=this.$W,q=this.$M,H=this.$D,b="set"+(this.$u?"UTC":"");switch(v){case w:return O?M(1,0):M(31,11);case m:return O?M(1,q):M(0,q+1);case f:var D=this.$locale().weekStart||0,oe=(R<D?R+7:R)-D;return M(O?H-oe:H+(6-oe),q);case u:case x:return W(b+"Hours",0);case c:return W(b+"Minutes",1);case a:return W(b+"Seconds",2);case l:return W(b+"Milliseconds",3);default:return this.clone()}},d.endOf=function(h){return this.startOf(h,!1)},d.$set=function(h,E){var _,O=L.p(h),v="set"+(this.$u?"UTC":""),M=(_={},_[u]=v+"Date",_[x]=v+"Date",_[m]=v+"Month",_[w]=v+"FullYear",_[c]=v+"Hours",_[a]=v+"Minutes",_[l]=v+"Seconds",_[o]=v+"Milliseconds",_)[O],W=O===u?this.$D+(E-this.$W):E;if(O===m||O===w){var R=this.clone().set(x,1);R.$d[M](W),R.init(),this.$d=R.set(x,Math.min(this.$D,R.daysInMonth())).$d}else M&&this.$d[M](W);return this.init(),this},d.set=function(h,E){return this.clone().$set(h,E)},d.get=function(h){return this[L.p(h)]()},d.add=function(h,E){var _,O=this;h=Number(h);var v=L.p(E),M=function(q){var H=j(O);return L.w(H.date(H.date()+Math.round(q*h)),O)};if(v===m)return this.set(m,this.$M+h);if(v===w)return this.set(w,this.$y+h);if(v===u)return M(1);if(v===f)return M(7);var W=(_={},_[a]=r,_[c]=i,_[l]=n,_)[v]||1,R=this.$d.getTime()+h*W;return L.w(R,this)},d.subtract=function(h,E){return this.add(-1*h,E)},d.format=function(h){var E=this,_=this.$locale();if(!this.isValid())return _.invalidDate||g;var O=h||"YYYY-MM-DDTHH:mm:ssZ",v=L.z(this),M=this.$H,W=this.$m,R=this.$M,q=_.weekdays,H=_.months,b=_.meridiem,D=function(V,ge,re,Te){return V&&(V[ge]||V(E,O))||re[ge].slice(0,Te)},oe=function(V){return L.s(M%12||12,V,"0")},Z=b||function(V,ge,re){var Te=V<12?"AM":"PM";return re?Te.toLowerCase():Te};return O.replace(k,function(V,ge){return ge||function(re){switch(re){case"YY":return String(E.$y).slice(-2);case"YYYY":return L.s(E.$y,4,"0");case"M":return R+1;case"MM":return L.s(R+1,2,"0");case"MMM":return D(_.monthsShort,R,H,3);case"MMMM":return D(H,R);case"D":return E.$D;case"DD":return L.s(E.$D,2,"0");case"d":return String(E.$W);case"dd":return D(_.weekdaysMin,E.$W,q,2);case"ddd":return D(_.weekdaysShort,E.$W,q,3);case"dddd":return q[E.$W];case"H":return String(M);case"HH":return L.s(M,2,"0");case"h":return oe(1);case"hh":return oe(2);case"a":return Z(M,W,!0);case"A":return Z(M,W,!1);case"m":return String(W);case"mm":return L.s(W,2,"0");case"s":return String(E.$s);case"ss":return L.s(E.$s,2,"0");case"SSS":return L.s(E.$ms,3,"0");case"Z":return v}return null}(V)||v.replace(":","")})},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(h,E,_){var O,v=this,M=L.p(E),W=j(h),R=(W.utcOffset()-this.utcOffset())*r,q=this-W,H=function(){return L.m(v,W)};switch(M){case w:O=H()/12;break;case m:O=H();break;case y:O=H()/3;break;case f:O=(q-R)/6048e5;break;case u:O=(q-R)/864e5;break;case c:O=q/i;break;case a:O=q/r;break;case l:O=q/n;break;default:O=q}return _?O:L.a(O)},d.daysInMonth=function(){return this.endOf(m).$D},d.$locale=function(){return z[this.$L]},d.locale=function(h,E){if(!h)return this.$L;var _=this.clone(),O=K(h,E,!0);return O&&(_.$L=O),_},d.clone=function(){return L.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},C}(),be=se.prototype;return j.prototype=be,[["$ms",o],["$s",l],["$m",a],["$H",c],["$W",u],["$M",m],["$y",w],["$D",x]].forEach(function(C){be[C[1]]=function(d){return this.$g(d,C[0],C[1])}}),j.extend=function(C,d){return C.$i||(C(d,se,j),C.$i=!0),j},j.locale=K,j.isDayjs=ce,j.unix=function(C){return j(1e3*C)},j.en=z[P],j.Ls=z,j.p={},j})})(Ui);var ja=Ui.exports;const Fr=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 I={date:g,utc:!0,args:arguments};return new l(I)},c.utc=function(g){var I=a(this.toDate(),{locale:this.$L,utc:!0});return g?I.add(this.utcOffset(),n):I},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,I){var k=this.$utils().u;if(k(g))return this.$u?0:k(this.$offset)?m.call(this):this.$offset;if(typeof g=="string"&&(g=function(P){P===void 0&&(P="");var z=P.match(r);if(!z)return null;var ie=(""+z[0]).match(i)||["-",0,0],ce=ie[0],K=60*+ie[1]+ +ie[2];return K===0?0:ce==="+"?K:-K}(g),g===null))return this;var Y=Math.abs(g)<=16?60*g:g,B=this;if(I)return B.$offset=Y,B.$u=g===0,B;if(g!==0){var N=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(B=this.local().add(Y+N,n)).$offset=Y,B.$x.$localOffset=N}else B=this.utc();return B};var y=c.format;c.format=function(g){var I=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return y.call(this,I)},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 w=c.toDate;c.toDate=function(g){return g==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():w.call(this)};var x=c.diff;c.diff=function(g,I,k){if(g&&this.$u===g.$u)return x.call(this,g,I,k);var Y=this.local(),B=a(g).local();return x.call(Y,B,I,k)}}})})(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-1ct078u",'*,*::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%)}.CashierSessionHomeButton{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%;background-color:transparent;border-radius:var(--emw--border-radius-medium, 4px);border:1px solid var(---emw-color-primary, #fff)}.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}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-white, #fff);text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #f9c405)}.CashierErrorButton:hover{background:var(--emw--color-active, #fecd1c)}.CashierErrorButton:active{background:var(--emw--color-active, #fecd1c)}.CashierErrorButton:disabled{filter:saturate(50%);opacity:0.5;cursor:auto;pointer-events:none}.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}.ModalCloseIcon svg{fill:var(--emw--color-typography, #fff);width:11px;height:11px}')}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,w=e[8]("sessionExpirationHeader")+"",x,g,I,k,Y,B,N,P,z,ie,ce,K,j,L,se=e[8]("sessionExpirationEnd")+"",be,C,d,h,E,_,O,v,M,W;const R=e[23].icon,q=Bt(R,e,e[22],Xr),H=q||el(e),b=e[23].title,D=Bt(b,e,e[22],Vr),oe=e[23].text,Z=Bt(oe,e,e[22],Wr),V=Z||tl(e),ge=[rl,nl],re=[];function Te(X,te){return X[6]?0:1}return h=Te(e),E=re[h]=ge[h](e),{c(){t=ee("div"),n=ee("div"),r=ee("div"),i=ee("div"),o=Se("svg"),l=Se("defs"),a=Se("mask"),c=Se("circle"),u=Se("rect"),f=Se("circle"),m=Se("circle"),y=Ie(),x=Fe(w),g=Ie(),I=ee("div"),k=Se("svg"),Y=Se("path"),B=Ie(),N=ee("div"),P=ee("div"),H&&H.c(),z=Ie(),D&&D.c(),ie=Ie(),V&&V.c(),ce=Ie(),K=ee("div"),j=ee("button"),L=ee("span"),be=Fe(se),C=Ie(),d=ee("button"),E.c(),A(c,"cx","100"),A(c,"cy","100"),A(c,"r","90"),A(u,"x","88"),A(u,"y","40"),A(u,"width","24"),A(u,"height","80"),A(u,"rx","12"),A(u,"fill","black"),A(f,"cx","100"),A(f,"cy","150"),A(f,"r","14"),A(f,"fill","black"),A(a,"id","exclamation-mask"),A(m,"cx","100"),A(m,"cy","100"),A(m,"r","90"),A(m,"mask","url(#exclamation-mask)"),A(o,"viewBox","0 0 200 200"),A(o,"xmlns","http://www.w3.org/2000/svg"),A(i,"class","CashierSessionExpirationModalHeaderTitle"),A(Y,"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"),A(k,"xmlns","http://www.w3.org/2000/svg"),A(k,"viewBox","0 0 13 13"),A(k,"fill","none"),A(k,"class","CloseButton"),A(I,"class","ModalCloseIcon"),A(r,"class","CashierSessionExpirationModalHeader"),A(L,"class","CashierSessionExpirationButtonText"),A(j,"type","button"),A(j,"class","CashierSessionHomeButton"),A(d,"type","button"),d.disabled=e[6],A(d,"class","CashierSessionExpirationButton"),A(K,"class","ButtonsContainer"),A(P,"class","CashierSessionExpiration"),A(N,"class","CashierSessionExpirationModalContainer"),A(n,"class","CashierSessionExpirationModalWrapper"),A(t,"class","CashierSessionExpirationModalWindow"),A(t,"id","CashierSessionExpirationModal"),tt(()=>e[25].call(t))},m(X,te){$e(X,t,te),$(t,n),$(n,r),$(r,i),$(i,o),$(o,l),$(l,a),$(a,c),$(a,u),$(a,f),$(o,m),$(i,y),$(i,x),$(r,g),$(r,I),$(I,k),$(k,Y),$(n,B),$(n,N),$(N,P),H&&H.m(P,null),$(P,z),D&&D.m(P,null),$(P,ie),V&&V.m(P,null),$(P,ce),$(P,K),$(K,j),$(j,L),$(L,be),$(K,C),$(K,d),re[h].m(d,null),e[24](P),_=co(t,e[25].bind(t)),v=!0,M||(W=[Qe(k,"click",e[11]),Qe(j,"click",e[11]),Qe(d,"click",e[9]),Qe(t,"click",e[10])],M=!0)},p(X,te){e=X,(!v||te[0]&256)&&w!==(w=e[8]("sessionExpirationHeader")+"")&&yt(x,w),q?q.p&&(!v||te[0]&4194304)&&Ut(q,R,e,e[22],v?$t(R,e[22],te,Ka):kt(e[22]),Xr):H&&H.p&&(!v||te[0]&8)&&H.p(e,v?te:[-1,-1]),D&&D.p&&(!v||te[0]&4194304)&&Ut(D,b,e,e[22],v?$t(b,e[22],te,Qa):kt(e[22]),Vr),Z?Z.p&&(!v||te[0]&4194304)&&Ut(Z,oe,e,e[22],v?$t(oe,e[22],te,Ja):kt(e[22]),Wr):V&&V.p&&(!v||te[0]&384)&&V.p(e,v?te:[-1,-1]),(!v||te[0]&256)&&se!==(se=e[8]("sessionExpirationEnd")+"")&&yt(be,se);let ke=h;h=Te(e),h===ke?re[h].p(e,te):(oi(),Re(re[ke],1,1,()=>{re[ke]=null}),si(),E=re[h],E?E.p(e,te):(E=re[h]=ge[h](e),E.c()),Me(E,1),E.m(d,null)),(!v||te[0]&64)&&(d.disabled=e[6])},i(X){v||(Me(H,X),Me(D,X),Me(V,X),Me(E),X&&tt(()=>{v&&(O||(O=dr(t,gr,{duration:e[2]},!0)),O.run(1))}),v=!0)},o(X){Re(H,X),Re(D,X),Re(V,X),Re(E),X&&(O||(O=dr(t,gr,{duration:e[2]},!1)),O.run(0)),v=!1},d(X){X&&Ae(t),H&&H.d(X),D&&D.d(X),V&&V.d(X),re[h].d(),e[24](null),_(),X&&O&&O.end(),M=!1,Be(W)}}}function Zr(e){let t,n;return{c(){t=ee("img"),fr(t.src,n=`${e[3]}/set-timeout-icon.png`)||A(t,"src",n),A(t,"width","300px"),A(t,"alt","error")},m(r,i){$e(r,t,i)},p(r,i){i[0]&8&&!fr(t.src,n=`${r[3]}/set-timeout-icon.png`)&&A(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),$e(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=Gr.sanitize(e[8]("sessionExpirationGeneralText",{values:{second:e[7]}}))+"";return{c(){t=ee("span"),n=ee("p"),i=Fe(r),o=Ie(),l=ee("p"),A(t,"class","CashierSessionExpirationText")},m(c,u){$e(c,t,u),$(t,n),$(n,i),$(t,o),$(t,l),l.innerHTML=a},p(c,u){u[0]&256&&r!==(r=c[8]("sessionExpirationTitle")+"")&&yt(i,r),u[0]&384&&a!==(a=Gr.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||(Me(i,o),t=!0)},o(o){Re(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=ee("div"),n=Se("svg"),r=Se("path"),i=Ie(),o=ee("span"),a=Fe(l),A(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"),A(r,"fill","white"),A(n,"class","CashierSessionExpirationButtonSpinner"),A(n,"xmlns","http://www.w3.org/2000/svg"),A(n,"width","15"),A(n,"height","14"),A(n,"viewBox","0 0 15 14"),A(n,"fill","none"),A(o,"class","CashierSessionExpirationButtonText")},m(c,u){$e(c,t,u),$(t,n),$(n,r),$(t,i),$(t,o),$(o,a)},p(c,u){u[0]&256&&l!==(l=c[8]("sessionExpirationLoadingButton")+"")&&yt(a,l)},i:Ee,o:Ee,d(c){c&&Ae(t)}}}function il(e){let t,n=e[8]("sessionExpirationGeneralButton")+"",r;return{c(){t=ee("span"),r=Fe(n),A(t,"class","CashierSessionExpirationButtonText")},m(i,o){$e(i,t,o),$(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=ee("div"),r&&r.c()},m(i,o){$e(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&&Me(r,1)):(r=Yr(i),r.c(),Me(r,1),r.m(t,null)):r&&(oi(),Re(r,1,1,()=>{r=null}),si())},i(i){n||(Me(r),n=!0)},o(i){Re(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,b=>n(21,r=b)),hr(e,va,b=>n(8,i=b));let{$$slots:o={},$$scope:l}=t;Fr.extend(Wa);let{clientstyling:a=""}=t,{clientstylingurl:c=""}=t,{width:u}=t,{height:f}=t,{duration:m=200}=t,{assetsurl:y=""}=t,{lang:w="en"}=t,{translationurl:x=""}=t,{endpoint:g}=t,{currency:I}=t,{customerid:k}=t,{selectedpaymentmethodname:Y}=t,{mbsource:B=""}=t,N,P=!1,z=!1,ie,ce,K,j,L;var se;(function(b){b.PlayerSessionIsNotValid="PlayerSessionIsNotValid",b.Success="Success",b.JwtTokenError="JwtTokenError"})(se||(se={}));const be=b=>{b.data.type==="StartSessionCountdown"&&(j=b.data.paymentMethodName)},C=b=>{try{return JSON.parse(atob(b.split(".")[1]))}catch(D){return null}},d=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:L},window.location.href)},h=b=>{n(5,P=!1);const D=C(b);D&&(ce=D==null?void 0:D.exp,n(7,ie=ce),K&&clearInterval(K),K=setInterval(()=>{const oe=Math.floor(new Date().getTime()/1e3);n(7,ie=ce-oe),ie<=sl&&n(5,P=!0),oe>=ce&&(E(),window.postMessage({type:"SessionExpired"},window.location.href))},1e3))},E=()=>{n(7,ie=0),n(5,P=!1),clearInterval(K)},_=()=>{if(z)return;const b=new URL(`${g}/v1/player/${k}/payment/GetPaymentMethod`),D=new Headers;n(6,z=!0),D.append("accept","application/json"),D.append("Content-Type","application/json"),D.append("X-Client-Request-Timestamp",Fr.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const oe={method:"POST",mode:"cors",headers:D,body:JSON.stringify({PaymentMethodName:j||Y,Currency:I,XPaymentSessionToken:r})};fetch(b,oe).then(Z=>Z.json()).then(Z=>{if(Z.error){window.postMessage({type:"ShowSessionError",error:Z.error},window.location.href),E();return}if(Z.ResponseCode===se.PlayerSessionIsNotValid||Z.ResponseCode===se.JwtTokenError){L=Z.ResponseCode,E(),d();return}if(Z.ResponseCode!==se.Success){L=Z.ResponseCode,E();return}Z.XPaymentSessionToken&&jr.set(Z.XPaymentSessionToken)}).finally(()=>n(6,z=!1))},O=b=>{const D=b.currentTarget;b.target===D&&_()},v=()=>{fetch(x).then(D=>D.json()).then(D=>{Object.keys(D).forEach(oe=>{Hr(oe,D[oe])})}).catch(D=>{console.log(D)})},M=()=>{window.postMessage({type:"Cashier:goToHome"},window.location.href),n(5,P=!1)};Object.keys(Nr).forEach(b=>{Hr(b,Nr[b])});const W=()=>{Ta(w)};bo(()=>(window.addEventListener("message",be,!1),()=>{window.removeEventListener("message",be)})),Eo(()=>{clearInterval(K)});function R(b){Yt[b?"unshift":"push"](()=>{N=b,n(4,N)})}function q(){u=this.clientWidth,f=this.clientHeight,n(0,u),n(1,f)}function H(b){Yt[b?"unshift":"push"](()=>{N=b,n(4,N)})}return e.$$set=b=>{"clientstyling"in b&&n(12,a=b.clientstyling),"clientstylingurl"in b&&n(13,c=b.clientstylingurl),"width"in b&&n(0,u=b.width),"height"in b&&n(1,f=b.height),"duration"in b&&n(2,m=b.duration),"assetsurl"in b&&n(3,y=b.assetsurl),"lang"in b&&n(14,w=b.lang),"translationurl"in b&&n(15,x=b.translationurl),"endpoint"in b&&n(16,g=b.endpoint),"currency"in b&&n(17,I=b.currency),"customerid"in b&&n(18,k=b.customerid),"selectedpaymentmethodname"in b&&n(19,Y=b.selectedpaymentmethodname),"mbsource"in b&&n(20,B=b.mbsource),"$$scope"in b&&n(22,l=b.$$scope)},e.$$.update=()=>{e.$$.dirty[0]&2097152&&h(r),e.$$.dirty[0]&16384&&w&&W(),e.$$.dirty[0]&4112&&a&&N&&Va(N,a),e.$$.dirty[0]&8208&&c&&N&&Xa(N,c),e.$$.dirty[0]&1048592&&B&&N&&Ya(N,`${B}.Style`),e.$$.dirty[0]&32768&&x&&v()},[u,f,m,y,N,P,z,ie,i,_,O,M,a,c,w,x,g,I,k,Y,B,r,l,o,R,q,H]}class Gi extends Ho{constructor(t){super(),Mo(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}),me()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),me()}get width(){return this.$$.ctx[0]}set width(t){this.$$set({width:t}),me()}get height(){return this.$$.ctx[1]}set height(t){this.$$set({height:t}),me()}get duration(){return this.$$.ctx[2]}set duration(t){this.$$set({duration:t}),me()}get assetsurl(){return this.$$.ctx[3]}set assetsurl(t){this.$$set({assetsurl:t}),me()}get lang(){return this.$$.ctx[14]}set lang(t){this.$$set({lang:t}),me()}get translationurl(){return this.$$.ctx[15]}set translationurl(t){this.$$set({translationurl:t}),me()}get endpoint(){return this.$$.ctx[16]}set endpoint(t){this.$$set({endpoint:t}),me()}get currency(){return this.$$.ctx[17]}set currency(t){this.$$set({currency:t}),me()}get customerid(){return this.$$.ctx[18]}set customerid(t){this.$$set({customerid:t}),me()}get selectedpaymentmethodname(){return this.$$.ctx[19]}set selectedpaymentmethodname(t){this.$$set({selectedpaymentmethodname:t}),me()}get mbsource(){return this.$$.ctx[20]}set mbsource(t){this.$$set({mbsource:t}),me()}}Lo(Gi,{clientstyling:{},clientstylingurl:{},width:{},height:{},duration:{},assetsurl:{},lang:{},translationurl:{},endpoint:{},currency:{},customerid:{},selectedpaymentmethodname:{},mbsource:{}},["icon","title","text","button"],[],!0);exports.default=Gi;
|