@everymatrix/cashier-session-expiration-modal 1.85.20 → 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
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/CashierSessionExpirationModal-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/CashierSessionExpirationModal-5KLrMZ18.cjs")).then(({default:t})=>{!customElements.get("cashier-session-expiration-modal")&&customElements.define("cashier-session-expiration-modal",t.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CashierSessionExpirationModal-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CashierSessionExpirationModal-BLSkwqeD.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("cashier-session-expiration-modal") && customElements.define("cashier-session-expiration-modal", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";var Ji=Object.defineProperty,Qi=Object.defineProperties;var Ki=Object.getOwnPropertyDescriptors;var or=Object.getOwnPropertySymbols;var eo=Object.prototype.hasOwnProperty,to=Object.prototype.propertyIsEnumerable;var un=(e,t,n)=>t in e?Ji(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sr=(e,t)=>{for(var n in t||(t={}))eo.call(t,n)&&un(e,n,t[n]);if(or)for(var n of or(t))to.call(t,n)&&un(e,n,t[n]);return e},ar=(e,t)=>Qi(e,Ki(t));var _e=(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{u(n.next(c))}catch(l){i(l)}},a=c=>{try{u(n.throw(c))}catch(l){i(l)}},u=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,a);u((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function pe(){}const qr=e=>e;function no(e,t){for(const n in t)e[n]=t[n];return e}function Jr(e){return e()}function lr(){return Object.create(null)}function Pe(e){e.forEach(Jr)}function Zt(e){return typeof e=="function"}function Qr(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let Ot;function cr(e,t){return e===t?!0:(Ot||(Ot=document.createElement("a")),Ot.href=t,e===Ot.href)}function ro(e){return Object.keys(e).length===0}function Kr(e,...t){if(e==null){for(const r of t)r(void 0);return pe}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function fr(e,t,n){e.$$.on_destroy.push(Kr(t,n))}function Ht(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?no(n.ctx.slice(),e[1](r(t))):n.ctx}function It(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=[],a=Math.max(t.dirty.length,i.length);for(let u=0;u<a;u+=1)o[u]=t.dirty[u]|i[u];return o}return t.dirty|i}return t.dirty}function Pt(e,t,n,r,i,o){if(i){const a=ei(t,n,r,o);e.p(a,i)}}function Rt(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 io=ti?()=>window.performance.now():()=>Date.now(),In=ti?e=>requestAnimationFrame(e):pe;const Xe=new Set;function ni(e){Xe.forEach(t=>{t.c(e)||(Xe.delete(t),t.f())}),Xe.size!==0&&In(ni)}function oo(e){let t;return Xe.size===0&&In(ni),{promise:new Promise(n=>{Xe.add(t={c:e,f:n})}),abort(){Xe.delete(t)}}}function J(e,t){e.appendChild(t)}function so(e,t,n){const r=Pn(e);if(!r.getElementById(t)){const i=re("style");i.id=t,i.textContent=n,ri(r,i)}}function Pn(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function ao(e){const t=re("style");return t.textContent="/* empty */",ri(Pn(e),t),t.sheet}function ri(e,t){return J(e.head||e,t),t.sheet}function Le(e,t,n){e.insertBefore(t,n||null)}function Ee(e){e.parentNode&&e.parentNode.removeChild(e)}function re(e){return document.createElement(e)}function hr(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function et(e){return document.createTextNode(e)}function mt(){return et(" ")}function ii(){return et("")}function Gt(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function W(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function uo(e){return Array.from(e.childNodes)}function qt(e,t){t=""+t,e.data!==t&&(e.data=t)}let Mt;function lo(){if(Mt===void 0){Mt=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(e){Mt=!0}}return Mt}function co(e,t){getComputedStyle(e).position==="static"&&(e.style.position="relative");const r=re("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=lo();let o;return i?(r.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",o=Gt(window,"message",a=>{a.source===r.contentWindow&&t()})):(r.src="about:blank",r.onload=()=>{o=Gt(r.contentWindow,"resize",t),t()}),J(e,r),()=>{(i||o&&r.contentWindow)&&o(),Ee(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 Ft=new Map;let jt=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:ao(t),rules:{}};return Ft.set(e,n),n}function mr(e,t,n,r,i,o,a,u=0){const c=16.666/r;let l=`{
|
|
2
|
-
`;for(let C=0;C<=1;C+=c){const G=t+(n-t)*o(C);l+=C*100+`%{${a(G,1-G)}}
|
|
3
|
-
`}const f=l+`100% {${a(n,1-n)}}
|
|
4
|
-
}`,_=`__svelte_${mo(f)}_${u}`,y=Pn(e),{stylesheet:M,rules:b}=Ft.get(y)||po(y,e);b[_]||(b[_]=!0,M.insertRule(`@keyframes ${_} ${f}`,M.cssRules.length));const p=e.style.animation||"";return e.style.animation=`${p?`${p}, `:""}${_} ${r}ms linear ${i}ms 1 both`,jt+=1,_}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(", "),jt-=i,jt||_o())}function _o(){In(()=>{jt||(Ft.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&Ee(t)}),Ft.clear())})}let gt;function dt(e){gt=e}function oi(){if(!gt)throw new Error("Function called outside component initialization");return gt}function bo(e){oi().$$.on_mount.push(e)}function Eo(e){oi().$$.on_destroy.push(e)}const Ve=[],zt=[];let Ye=[];const pr=[],yo=Promise.resolve();let vn=!1;function xo(){vn||(vn=!0,yo.then(le))}function Ze(e){Ye.push(e)}const ln=new Set;let ze=0;function le(){if(ze!==0)return;const e=gt;do{try{for(;ze<Ve.length;){const t=Ve[ze];ze++,dt(t),vo(t.$$)}}catch(t){throw Ve.length=0,ze=0,t}for(dt(null),Ve.length=0,ze=0;zt.length;)zt.pop()();for(let t=0;t<Ye.length;t+=1){const n=Ye[t];ln.has(n)||(ln.add(n),n())}Ye.length=0}while(Ve.length);for(;pr.length;)pr.pop()();vn=!1,ln.clear(),dt(e)}function vo(e){if(e.fragment!==null){e.update(),Pe(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Ze)}}function To(e){const t=[],n=[];Ye.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),Ye=t}let st;function So(){return st||(st=Promise.resolve(),st.then(()=>{st=null})),st}function cn(e,t,n){e.dispatchEvent(fo(`${t?"intro":"outro"}${n}`))}const Dt=new Set;let Ce;function si(){Ce={r:0,c:[],p:Ce}}function ai(){Ce.r||Pe(Ce.c),Ce=Ce.p}function we(e,t){e&&e.i&&(Dt.delete(e),e.i(t))}function He(e,t,n,r){if(e&&e.o){if(Dt.has(e))return;Dt.add(e),Ce.c.push(()=>{Dt.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"}),a=r?0:1,u=null,c=null,l=null,f;function _(){l&&go(e,l)}function y(b,p){const C=b.b-a;return p*=Math.abs(C),{a,b:b.b,d:C,duration:p,start:b.start,end:b.start+p,group:b.group}}function M(b){const{delay:p=0,duration:C=300,easing:G=qr,tick:$=pe,css:w}=o||wo,H={start:io()+p,b};b||(H.group=Ce,Ce.r+=1),"inert"in e&&(b?f!==void 0&&(e.inert=f):(f=e.inert,e.inert=!0)),u||c?c=H:(w&&(_(),l=mr(e,a,b,C,p,G,w)),b&&$(0,1),u=y(H,C),Ze(()=>cn(e,b,"start")),oo(R=>{if(c&&R>c.start&&(u=y(c,C),c=null,cn(e,u.b,"start"),w&&(_(),l=mr(e,a,u.b,u.duration,0,G,o.css))),u){if(R>=u.end)$(a=u.b,1-a),cn(e,u.b,"end"),c||(u.b?_():--u.group.r||Pe(u.group.c)),u=null;else if(R>=u.start){const k=R-u.start;a=u.a+u.d*G(k/u.duration),$(a,1-a)}}return!!(u||c)}))}return{run(b){Zt(o)?So().then(()=>{o=o({direction:b?"in":"out"}),M(b)}):M(b)},end(){_(),u=c=null}}}function Ao(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),Ze(()=>{const o=e.$$.on_mount.map(Jr).filter(Zt);e.$$.on_destroy?e.$$.on_destroy.push(...o):Pe(o),e.$$.on_mount=[]}),i.forEach(Ze)}function Oo(e,t){const n=e.$$;n.fragment!==null&&(To(n.after_update),Pe(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Mo(e,t){e.$$.dirty[0]===-1&&(Ve.push(e),xo(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Co(e,t,n,r,i,o,a=null,u=[-1]){const c=gt;dt(e);const l=e.$$={fragment:null,ctx:[],props:o,update:pe,not_equal:i,bound:lr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:lr(),dirty:u,skip_bound:!1,root:t.target||c.$$.root};a&&a(l.root);let f=!1;if(l.ctx=n?n(e,t.props||{},(_,y,...M)=>{const b=M.length?M[0]:y;return l.ctx&&i(l.ctx[_],l.ctx[_]=b)&&(!l.skip_bound&&l.bound[_]&&l.bound[_](b),f&&Mo(e,_)),y}):[],l.update(),f=!0,Pe(l.before_update),l.fragment=r?r(l.ctx):!1,t.target){if(t.hydrate){const _=uo(t.target);l.fragment&&l.fragment.l(_),_.forEach(Ee)}else l.fragment&&l.fragment.c();t.intro&&we(e.$$.fragment),Ao(e,t.target,t.anchor),le()}dt(c)}let ui;typeof HTMLElement=="function"&&(ui=class extends HTMLElement{constructor(t,n,r){super();_e(this,"$$ctor");_e(this,"$$s");_e(this,"$$c");_e(this,"$$cn",!1);_e(this,"$$d",{});_e(this,"$$r",!1);_e(this,"$$p_d",{});_e(this,"$$l",{});_e(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 a;return{c:function(){a=re("slot"),o!=="default"&&W(a,"name",o)},m:function(l,f){Le(l,a,f)},d:function(l){l&&Ee(a)}}}};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 a=this.$$g_p(o.name);a in this.$$d||(this.$$d[a]=Bt(a,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:ar(sr({},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 a=Bt(o,this.$$d[o],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,a)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const a of this.$$l[o]){const u=this.$$c.$on(o,a);this.$$l_u.set(a,u)}this.$$l={}}})}attributeChangedCallback(t,n,r){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Bt(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 Bt(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 a=class extends ui{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Object.keys(t).forEach(u=>{Object.defineProperty(a.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(c){var l;c=Bt(u,c,t),this.$$d[u]=c,(l=this.$$c)==null||l.$set({[u]:c})}})}),r.forEach(u=>{Object.defineProperty(a.prototype,u,{get(){var c;return(c=this.$$c)==null?void 0:c[u]}})}),e.element=a,a}class No{constructor(){_e(this,"$$");_e(this,"$$set")}$destroy(){Oo(this,1),this.$destroy=pe}$on(t,n){if(!Zt(n))return pe;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&&!ro(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ho="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ho);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 We=[];function Io(e,t){return{subscribe:Et(e,t).subscribe}}function Et(e,t=pe){let n;const r=new Set;function i(u){if(Qr(e,u)&&(e=u,n)){const c=!We.length;for(const l of r)l[1](),We.push(l,e);if(c){for(let l=0;l<We.length;l+=2)We[l][0](We[l+1]);We.length=0}}}function o(u){i(u(e))}function a(u,c=pe){const l=[u,c];return r.add(l),r.size===1&&(n=t(i,o)||pe),u(e),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:i,update:o,subscribe:a}}function tt(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,(a,u)=>{let c=!1;const l=[];let f=0,_=pe;const y=()=>{if(f)return;_();const b=t(r?l[0]:l,a,u);o?a(b):_=Zt(b)?b:pe},M=i.map((b,p)=>Kr(b,C=>{l[p]=C,f&=~(1<<p),c&&y()},()=>{f|=1<<p}));return c=!0,y(),function(){Pe(M),_(),c=!1}})}var li=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Rn(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 _t(e,t){return t.clone!==!1&&t.isMergeableObject(e)?qe(ko(e),e,t):e}function Go(e,t,n){return e.concat(t).map(function(r){return _t(r,n)})}function Fo(e,t){if(!t.customMerge)return qe;var n=t.customMerge(e);return typeof n=="function"?n:qe}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 ci(e,t){try{return t in e}catch(n){return!1}}function zo(e,t){return ci(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]=_t(e[i],n)}),_r(t).forEach(function(i){zo(e,i)||(ci(e,i)&&n.isMergeableObject(t[i])?r[i]=Fo(i,n)(e[i],t[i],n):r[i]=_t(t[i],n))}),r}function qe(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Go,n.isMergeableObject=n.isMergeableObject||Po,n.cloneUnlessOtherwiseSpecified=_t;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):Wo(e,t,n):_t(t,n)}qe.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return qe(r,i,n)},{})};var Vo=qe,Xo=Vo;const Yo=Rn(Xo);var Tn=function(e,t){return Tn=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])},Tn(e,t)};function Jt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Tn(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ae=function(){return Ae=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},Ae.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 fn(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 hn(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 fi(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 hi(e,t,n,r,i){return n.bind(t,e,r,i)}function Qo(e,t){var n=e.length===1?Jo:fi;return hi(e,this,n,t.cache.create(),t.serializer)}function Ko(e,t){return hi(e,this,fi,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}},mn={variadic:Ko},Wt=function(){return Wt=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},Wt.apply(this,arguments)};var D;(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"})(D||(D={}));var X;(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"})(X||(X={}));var Je;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Je||(Je={}));function br(e){return e.type===X.literal}function rs(e){return e.type===X.argument}function mi(e){return e.type===X.number}function pi(e){return e.type===X.date}function di(e){return e.type===X.time}function gi(e){return e.type===X.select}function _i(e){return e.type===X.plural}function is(e){return e.type===X.pound}function bi(e){return e.type===X.tag}function Ei(e){return!!(e&&typeof e=="object"&&e.type===Je.number)}function Sn(e){return!!(e&&typeof e=="object"&&e.type===Je.dateTime)}var yi=/[ \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 Z=function(){return Z=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},Z.apply(this,arguments)};var as=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function us(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],a=o.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var u=a[0],c=a.slice(1),l=0,f=c;l<f.length;l++){var _=f[l];if(_.length===0)throw new Error("Invalid number skeleton")}n.push({stem:u,options:c})}return n}function ls(e){return e.replace(/^(.*?)-/,"")}var Er=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,xi=/^(@+)?(\+|#+)?[rs]?$/g,cs=/(\*)(0+)|(#+)(0+)|(0+)/g,vi=/^(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(xi,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 Ti(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)),!vi.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function xr(e){var t={},n=Ti(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=ls(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=Z(Z(Z({},t),{notation:"scientific"}),i.options.reduce(function(c,l){return Z(Z({},c),xr(l))},{}));continue;case"engineering":t=Z(Z(Z({},t),{notation:"engineering"}),i.options.reduce(function(c,l){return Z(Z({},c),xr(l))},{}));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,l,f,_,y,M){if(l)t.minimumIntegerDigits=f.length;else{if(_&&y)throw new Error("We currently do not support maximum integer digits");if(M)throw new Error("We currently do not support exact integer digits")}return""});continue}if(vi.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,l,f,_,y,M){return f==="*"?t.minimumFractionDigits=l.length:_&&_[0]==="#"?t.maximumFractionDigits=_.length:y&&M?(t.minimumFractionDigits=y.length,t.maximumFractionDigits=y.length+M.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var o=i.options[0];o==="w"?t=Z(Z({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=Z(Z({},t),yr(o)));continue}if(xi.test(i.stem)){t=Z(Z({},t),yr(i.stem));continue}var a=Ti(i.stem);a&&(t=Z(Z({},t),a));var u=fs(i.stem);u&&(t=Z(Z({},t),u))}return t}var Ct={"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 a=1+(o&1),u=o<2?1:3+(o>>1),c="a",l=ps(t);for((l=="H"||l=="k")&&(u=0);u-- >0;)n+=c;for(;a-- >0;)n=l+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=Ct[r||""]||Ct[n||""]||Ct["".concat(n,"-001")]||Ct["001"];return i[0]}var pn,ds=new RegExp("^".concat(yi.source,"*")),gs=new RegExp("".concat(yi.source,"*$"));function B(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},wn=!0;try{var ws=wi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");wn=((pn=ws.exec("a"))===null||pn===void 0?void 0:pn[0])==="a"}catch(e){wn=!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},An=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,a;i>o;){if(a=t[o++],a>1114111)throw RangeError(a+" is not a valid code point");r+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%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],a=o[0],u=o[1];n[a]=u}return n},Si=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 wi(e,t){return new RegExp(e,t)}var On;if(wn){var Sr=wi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");On=function(t,n){var r;Sr.lastIndex=n;var i=Sr.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else On=function(t,n){for(var r=[];;){var i=Si(t,n);if(i===void 0||Ai(i)||Ns(i))break;r.push(i),n+=i>=65536?2:1}return An.apply(void 0,r)};var Ms=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var a=this.parseArgument(t,r);if(a.err)return a;i.push(a.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var u=this.clonePosition();this.bump(),i.push({type:X.pound,location:B(u,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(D.UNMATCHED_CLOSING_TAG,B(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Mn(this.peek()||0)){var a=this.parseTag(t,n);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(t,n);if(a.err)return a;i.push(a.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:X.literal,value:"<".concat(i,"/>"),location:B(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var a=o.val,u=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Mn(this.char()))return this.error(D.INVALID_TAG,B(u,this.clonePosition()));var c=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(D.UNMATCHED_CLOSING_TAG,B(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:X.tag,value:i,children:a,location:B(r,this.clonePosition())},err:null}:this.error(D.INVALID_TAG,B(u,this.clonePosition())))}else return this.error(D.UNCLOSED_TAG,B(r,this.clonePosition()))}else return this.error(D.INVALID_TAG,B(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 a=this.tryParseUnquoted(t,n);if(a){i+=a;continue}var u=this.tryParseLeftAngleBracket();if(u){i+=u;continue}break}var c=B(r,this.clonePosition());return{val:{type:X.literal,value:i,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Cs(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return An.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(),An(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,B(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(D.EMPTY_ARGUMENT,B(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(D.MALFORMED_ARGUMENT,B(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,B(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:X.argument,value:i,location:B(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,B(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(D.MALFORMED_ARGUMENT,B(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=On(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),a=B(t,o);return{value:r,location:a}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,a=this.clonePosition(),u=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(u){case"":return this.error(D.EXPECT_ARGUMENT_TYPE,B(a,c));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),_=this.parseSimpleArgStyleIfPossible();if(_.err)return _;var y=Os(_.val);if(y.length===0)return this.error(D.EXPECT_ARGUMENT_STYLE,B(this.clonePosition(),this.clonePosition()));var M=B(f,this.clonePosition());l={style:y,styleLocation:M}}var b=this.tryParseArgumentClose(i);if(b.err)return b;var p=B(i,this.clonePosition());if(l&&vr(l==null?void 0:l.style,"::",0)){var C=As(l.style.slice(2));if(u==="number"){var _=this.parseNumberSkeletonFromString(C,l.styleLocation);return _.err?_:{val:{type:X.number,value:r,location:p,style:_.val},err:null}}else{if(C.length===0)return this.error(D.EXPECT_DATE_TIME_SKELETON,p);var G=C;this.locale&&(G=ms(C,this.locale));var y={type:Je.dateTime,pattern:G,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?ss(G):{}},$=u==="date"?X.date:X.time;return{val:{type:$,value:r,location:p,style:y},err:null}}}return{val:{type:u==="number"?X.number:u==="date"?X.date:X.time,value:r,location:p,style:(o=l==null?void 0:l.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var w=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(D.EXPECT_SELECT_ARGUMENT_OPTIONS,B(w,Wt({},w)));this.bumpSpace();var H=this.parseIdentifierIfPossible(),R=0;if(u!=="select"&&H.value==="offset"){if(!this.bumpIf(":"))return this.error(D.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,B(this.clonePosition(),this.clonePosition()));this.bumpSpace();var _=this.tryParseDecimalInteger(D.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,D.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(_.err)return _;this.bumpSpace(),H=this.parseIdentifierIfPossible(),R=_.val}var k=this.tryParsePluralOrSelectOptions(t,u,n,H);if(k.err)return k;var b=this.tryParseArgumentClose(i);if(b.err)return b;var Y=B(i,this.clonePosition());return u==="select"?{val:{type:X.select,value:r,options:Tr(k.val),location:Y},err:null}:{val:{type:X.plural,value:r,options:Tr(k.val),offset:R,pluralType:u==="plural"?"cardinal":"ordinal",location:Y},err:null}}default:return this.error(D.INVALID_ARGUMENT_TYPE,B(a,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,B(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(D.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,B(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=us(t)}catch(i){return this.error(D.INVALID_NUMBER_SKELETON,n)}return{val:{type:Je.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?hs(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,a=!1,u=[],c=new Set,l=i.value,f=i.location;;){if(l.length===0){var _=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var y=this.tryParseDecimalInteger(D.EXPECT_PLURAL_ARGUMENT_SELECTOR,D.INVALID_PLURAL_ARGUMENT_SELECTOR);if(y.err)return y;f=B(_,this.clonePosition()),l=this.message.slice(_.offset,this.offset())}else break}if(c.has(l))return this.error(n==="select"?D.DUPLICATE_SELECT_ARGUMENT_SELECTOR:D.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);l==="other"&&(a=!0),this.bumpSpace();var M=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?D.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:D.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,B(this.clonePosition(),this.clonePosition()));var b=this.parseMessage(t+1,n,r);if(b.err)return b;var p=this.tryParseArgumentClose(M);if(p.err)return p;u.push([l,{value:b.val,location:B(M,this.clonePosition())}]),c.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,f=o.location}return u.length===0?this.error(n==="select"?D.EXPECT_SELECT_ARGUMENT_SELECTOR:D.EXPECT_PLURAL_ARGUMENT_SELECTOR,B(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(D.MISSING_OTHER_CLAUSE,B(this.clonePosition(),this.clonePosition())):{val:u,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,a=0;!this.isEOF();){var u=this.char();if(u>=48&&u<=57)o=!0,a=a*10+(u-48),this.bump();else break}var c=B(i,this.clonePosition());return o?(a*=r,Ss(a)?{val:a,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=Si(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()&&Ai(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 Cs(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 Ai(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Ns(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 Cn(e){e.forEach(function(t){if(delete t.location,gi(t)||_i(t))for(var n in t.options)delete t.options[n].location,Cn(t.options[n].value);else mi(t)&&Ei(t.style)||(pi(t)||di(t))&&Sn(t.style)?delete t.style.location:bi(t)&&Cn(t.children)})}function Hs(e,t){t===void 0&&(t={}),t=Wt({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Ms(e,t).parse();if(n.err){var r=SyntaxError(D[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||Cn(n.val),n.val}var Qe;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Qe||(Qe={}));var Qt=function(e){Jt(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){Jt(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('", "'),'"'),Qe.INVALID_VALUE,o)||this}return t}(Qt),Is=function(e){Jt(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Qe.INVALID_VALUE,i)||this}return t}(Qt),Ps=function(e){Jt(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,'"'),Qe.MISSING_VALUE,r)||this}return t}(Qt),ce;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ce||(ce={}));function Rs(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==ce.literal||n.type!==ce.literal?t.push(n):r.value+=n.value,t},[])}function Ds(e){return typeof e=="function"}function $t(e,t,n,r,i,o,a){if(e.length===1&&br(e[0]))return[{type:ce.literal,value:e[0].value}];for(var u=[],c=0,l=e;c<l.length;c++){var f=l[c];if(br(f)){u.push({type:ce.literal,value:f.value});continue}if(is(f)){typeof o=="number"&&u.push({type:ce.literal,value:n.getNumberFormat(t).format(o)});continue}var _=f.value;if(!(i&&_ in i))throw new Ps(_,a);var y=i[_];if(rs(f)){(!y||typeof y=="string"||typeof y=="number")&&(y=typeof y=="string"||typeof y=="number"?String(y):""),u.push({type:typeof y=="string"?ce.literal:ce.object,value:y});continue}if(pi(f)){var M=typeof f.style=="string"?r.date[f.style]:Sn(f.style)?f.style.parsedOptions:void 0;u.push({type:ce.literal,value:n.getDateTimeFormat(t,M).format(y)});continue}if(di(f)){var M=typeof f.style=="string"?r.time[f.style]:Sn(f.style)?f.style.parsedOptions:r.time.medium;u.push({type:ce.literal,value:n.getDateTimeFormat(t,M).format(y)});continue}if(mi(f)){var M=typeof f.style=="string"?r.number[f.style]:Ei(f.style)?f.style.parsedOptions:void 0;M&&M.scale&&(y=y*(M.scale||1)),u.push({type:ce.literal,value:n.getNumberFormat(t,M).format(y)});continue}if(bi(f)){var b=f.children,p=f.value,C=i[p];if(!Ds(C))throw new Is(p,"function",a);var G=$t(b,t,n,r,i,o),$=C(G.map(function(R){return R.value}));Array.isArray($)||($=[$]),u.push.apply(u,$.map(function(R){return{type:typeof R=="string"?ce.literal:ce.object,value:R}}))}if(gi(f)){var w=f.options[y]||f.options.other;if(!w)throw new wr(f.value,y,Object.keys(f.options),a);u.push.apply(u,$t(w.value,t,n,r,i));continue}if(_i(f)){var w=f.options["=".concat(y)];if(!w){if(!Intl.PluralRules)throw new Qt(`Intl.PluralRules is not available in this environment.
|
|
5
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
6
|
-
`,Qe.MISSING_INTL_API,a);var H=n.getPluralRules(t,{type:f.pluralType}).select(y-(f.offset||0));w=f.options[H]||f.options.other}if(!w)throw new wr(f.value,y,Object.keys(f.options),a);u.push.apply(u,$t(w.value,t,n,r,i,y-(f.offset||0)));continue}}return Rs(u)}function Bs(e,t){return t?Ae(Ae(Ae({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=Ae(Ae({},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},Ae({},e)):e}function dn(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:hn(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,fn([void 0],n,!1)))},{cache:dn(e.number),strategy:mn.variadic}),getDateTimeFormat:hn(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,fn([void 0],n,!1)))},{cache:dn(e.dateTime),strategy:mn.variadic}),getPluralRules:hn(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,fn([void 0],n,!1)))},{cache:dn(e.pluralRules),strategy:mn.variadic})}}var Oi=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 l=o.formatToParts(c);if(l.length===1)return l[0].value;var f=l.reduce(function(_,y){return!_.length||y.type!==ce.literal||typeof _[_.length-1]!="string"?_.push(y.value):_[_.length-1]+=y.value,_},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(c){return $t(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 a=i||{};a.formatters;var u=Zo(a,["formatters"]);this.ast=e.__parse(t,Ae(Ae({},u),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=$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=Hs,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 Ie={},Gs=(e,t,n)=>n&&(t in Ie||(Ie[t]={}),e in Ie[t]||(Ie[t][e]=n),n),Mi=(e,t)=>{if(t==null)return;if(t in Ie&&e in Ie[t])return Ie[t][e];const n=xt(t);for(let r=0;r<n.length;r++){const i=n[r],o=js(i,e);if(o)return Gs(e,t,o)}};let Dn;const yt=Et({});function Fs(e){return Dn[e]||null}function Ci(e){return e in Dn}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=xt(e);for(let n=0;n<t.length;n++){const r=t[n];if(Ci(r))return r}}function Li(e,...t){delete Ie[e],yt.update(n=>(n[e]=Yo.all([n[e]||{},...t]),n))}tt([yt],([e])=>Object.keys(e));yt.subscribe(e=>Dn=e);const Ut={};function Ws(e,t){Ut[e].delete(t),Ut[e].size===0&&delete Ut[e]}function Ni(e){return Ut[e]}function Vs(e){return xt(e).map(t=>{const n=Ni(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function Vt(e){return e==null?!1:xt(e).some(t=>{var n;return(n=Ni(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=>Li(e,...r))}const at={};function Hi(e){if(!Vt(e))return e in at?at[e]:Promise.resolve();const t=Vs(e);return at[e]=Promise.all(t.map(([n,r])=>Xs(n,r))).then(()=>{if(Vt(e))return Hi(e);delete at[e]}),at[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 "${xt(e).join('", "')}".${Vt(Re())?`
|
|
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},pt=Ks;function Ke(){return pt}function ea(e){const t=e,{formats:n}=t,r=qs(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{Oi.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(pt,r,{initialLocale:i}),n&&("number"in n&&Object.assign(pt.formats.number,n.number),"date"in n&&Object.assign(pt.formats.date,n.date),"time"in n&&Object.assign(pt.formats.time,n.time)),$e.set(i)}const gn=Et(!1);var ta=Object.defineProperty,na=Object.defineProperties,ra=Object.getOwnPropertyDescriptors,Or=Object.getOwnPropertySymbols,ia=Object.prototype.hasOwnProperty,oa=Object.prototype.propertyIsEnumerable,Mr=(e,t,n)=>t in e?ta(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sa=(e,t)=>{for(var n in t||(t={}))ia.call(t,n)&&Mr(e,n,t[n]);if(Or)for(var n of Or(t))oa.call(t,n)&&Mr(e,n,t[n]);return e},aa=(e,t)=>na(e,ra(t));let Ln;const Xt=Et(null);function Cr(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function xt(e,t=Ke().fallbackLocale){const n=Cr(e);return t?[...new Set([...n,...Cr(t)])]:n}function Re(){return Ln!=null?Ln:void 0}Xt.subscribe(e=>{Ln=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const ua=e=>{if(e&&zs(e)&&Vt(e)){const{loadingDelay:t}=Ke();let n;return typeof window!="undefined"&&Re()!=null&&t?n=window.setTimeout(()=>gn.set(!0),t):gn.set(!0),Hi(e).then(()=>{Xt.set(e)}).finally(()=>{clearTimeout(n),gn.set(!1)})}return Xt.set(e)},$e=aa(sa({},Xt),{set:ua}),Kt=e=>{const t=Object.create(null);return r=>{const i=JSON.stringify(r);return i in t?t[i]:t[i]=e(r)}};var la=Object.defineProperty,Yt=Object.getOwnPropertySymbols,Ii=Object.prototype.hasOwnProperty,Pi=Object.prototype.propertyIsEnumerable,Lr=(e,t,n)=>t in e?la(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bn=(e,t)=>{for(var n in t||(t={}))Ii.call(t,n)&&Lr(e,n,t[n]);if(Yt)for(var n of Yt(t))Pi.call(t,n)&&Lr(e,n,t[n]);return e},nt=(e,t)=>{var n={};for(var r in e)Ii.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Yt)for(var r of Yt(e))t.indexOf(r)<0&&Pi.call(e,r)&&(n[r]=e[r]);return n};const bt=(e,t)=>{const{formats:n}=Ke();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},ca=Kt(e=>{var t=e,{locale:n,format:r}=t,i=nt(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=bt("number",r)),new Intl.NumberFormat(n,i)}),fa=Kt(e=>{var t=e,{locale:n,format:r}=t,i=nt(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=bt("date",r):Object.keys(i).length===0&&(i=bt("date","short")),new Intl.DateTimeFormat(n,i)}),ha=Kt(e=>{var t=e,{locale:n,format:r}=t,i=nt(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=bt("time",r):Object.keys(i).length===0&&(i=bt("time","short")),new Intl.DateTimeFormat(n,i)}),ma=(e={})=>{var t=e,{locale:n=Re()}=t,r=nt(t,["locale"]);return ca(Bn({locale:n},r))},pa=(e={})=>{var t=e,{locale:n=Re()}=t,r=nt(t,["locale"]);return fa(Bn({locale:n},r))},da=(e={})=>{var t=e,{locale:n=Re()}=t,r=nt(t,["locale"]);return ha(Bn({locale:n},r))},ga=Kt((e,t=Re())=>new Oi(e,t,Ke().formats,{ignoreTag:Ke().ignoreTag})),_a=(e,t={})=>{var n,r,i,o;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:u,locale:c=Re(),default:l}=a;if(c==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=Mi(e,c);if(!f)f=(o=(i=(r=(n=Ke()).handleMissingMessage)==null?void 0:r.call(n,{locale:c,id:e,defaultValue:l}))!=null?i:l)!=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(!u)return f;let _=f;try{_=ga(f,c).format(u)}catch(y){y instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,y.message)}return _},ba=(e,t)=>da(t).format(e),Ea=(e,t)=>pa(t).format(e),ya=(e,t)=>ma(t).format(e),xa=(e,t=Re())=>Mi(e,t),va=tt([$e,yt],()=>_a);tt([$e],()=>ba);tt([$e],()=>Ea);tt([$e],()=>ya);tt([$e,yt],()=>xa);function Nr(e,t){Li(e,t)}function Ta(e){ea({fallbackLocale:"en"}),$e.set(e)}const Hr={en:{sessionExpirationHeader:"Session Warning",sessionExpirationTitle:"Your session is about to expire!",sessionExpirationGeneralText:"Your session will automatically terminate in <b>{second} seconds</b>.",sessionExpirationGeneralButton:"CONTINUE",sessionExpirationLoadingButton:"PROCESSING..."},tr:{sessionExpirationHeader:"Oturum Uyarısı",sessionExpirationTitle:"Oturumunuzun süresi dolmak üzere!",sessionExpirationGeneralText:"Oyun seansınız <b>{second} saniye</b> içinde otomatik olarak sonuçlandırılacaktır",sessionExpirationGeneralButton:"DEVAM ET",sessionExpirationLoadingButton:"İŞLEME..."},"en-us":{sessionExpirationHeader:"Session Warning",sessionExpirationTitle:"Your session is about to expire!",sessionExpirationGeneralText:"Your session will automatically terminate in <b>{second} seconds</b>.",sessionExpirationGeneralButton:"CONTINUE",sessionExpirationLoadingButton:"PROCESSING..."}};/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:Ri,setPrototypeOf:Ir,isFrozen:Sa,getPrototypeOf:wa,getOwnPropertyDescriptor:Aa}=Object;let{freeze:fe,seal:be,create:Di}=Object,{apply:Nn,construct:Hn}=typeof Reflect!="undefined"&&Reflect;fe||(fe=function(t){return t});be||(be=function(t){return t});Nn||(Nn=function(t,n,r){return t.apply(n,r)});Hn||(Hn=function(t,n){return new t(...n)});const Lt=de(Array.prototype.forEach),Pr=de(Array.prototype.pop),ut=de(Array.prototype.push),kt=de(String.prototype.toLowerCase),_n=de(String.prototype.toString),Rr=de(String.prototype.match),lt=de(String.prototype.replace),Oa=de(String.prototype.indexOf),Ma=de(String.prototype.trim),ve=de(Object.prototype.hasOwnProperty),ue=de(RegExp.prototype.test),ct=Ca(TypeError);function de(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Nn(e,t,r)}}function Ca(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Hn(e,n)}}function P(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:kt;Ir&&Ir(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const 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++)ve(e,t)||(e[t]=null);return e}function Be(e){const t=Di(null);for(const[n,r]of Ri(e))ve(e,n)&&(Array.isArray(r)?t[n]=La(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=Be(r):t[n]=r);return t}function ft(e,t){for(;e!==null;){const r=Aa(e,t);if(r){if(r.get)return de(r.get);if(typeof r.value=="function")return de(r.value)}e=wa(e)}function n(){return null}return n}const Dr=fe(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),bn=fe(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),En=fe(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Na=fe(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),yn=fe(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Ha=fe(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Br=fe(["#text"]),$r=fe(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),xn=fe(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ur=fe(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Nt=fe(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ia=be(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Pa=be(/<%[\w\W]*|[\w\W]*%>/gm),Ra=be(/\${[\w\W]*}/gm),Da=be(/^data-[\-\w.\u00B7-\uFFFF]/),Ba=be(/^aria-[\-\w]+$/),Bi=be(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$a=be(/^(?:\w+script|data):/i),Ua=be(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$i=be(/^html$/i),ka=be(/^[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:Bi,IS_SCRIPT_OR_DATA:$a,ATTR_WHITESPACE:Ua,DOCTYPE_NAME:$i,CUSTOM_ELEMENT:ka});const ht={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(a){return a},createScriptURL(a){return a}})}catch(a){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function Ui(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ga();const t=A=>Ui(A);if(t.version="3.1.6",t.removed=[],!e||!e.document||e.document.nodeType!==ht.document)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:a,Node:u,Element:c,NodeFilter:l,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:_,DOMParser:y,trustedTypes:M}=e,b=c.prototype,p=ft(b,"cloneNode"),C=ft(b,"remove"),G=ft(b,"nextSibling"),$=ft(b,"childNodes"),w=ft(b,"parentNode");if(typeof a=="function"){const A=n.createElement("template");A.content&&A.content.ownerDocument&&(n=A.content.ownerDocument)}let H,R="";const{implementation:k,createNodeIterator:Y,createDocumentFragment:V,getElementsByTagName:Q}=n,{importNode:F}=r;let O={};t.isSupported=typeof Ri=="function"&&typeof w=="function"&&k&&k.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:te,ERB_EXPR:he,TMPLIT_EXPR:T,DATA_ATTR:E,ARIA_ATTR:g,IS_SCRIPT_OR_DATA:v,ATTR_WHITESPACE:h,CUSTOM_ELEMENT:x}=kr;let{IS_ALLOWED_URI:L}=kr,N=null;const j=P({},[...Dr,...bn,...En,...yn,...Br]);let I=null;const q=P({},[...$r,...xn,...Ur,...Nt]);let m=Object.seal(Di(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),U=null,ee=null,K=!0,ye=!0,ie=!1,xe=!0,ge=!1,Ne=!0,De=!1,en=!1,tn=!1,Ue=!1,vt=!1,Tt=!1,$n=!0,Un=!1;const ji="user-content-";let nn=!0,rt=!1,ke={},Ge=null;const kn=P({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Gn=null;const Fn=P({},["audio","video","img","source","image","track"]);let rn=null;const jn=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),St="http://www.w3.org/1998/Math/MathML",wt="http://www.w3.org/2000/svg",Oe="http://www.w3.org/1999/xhtml";let Fe=Oe,on=!1,sn=null;const zi=P({},[St,wt,Oe],_n);let it=null;const Wi=["application/xhtml+xml","text/html"],Vi="text/html";let ne=null,je=null;const Xi=n.createElement("form"),zn=function(s){return s instanceof RegExp||s instanceof Function},an=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(je&&je===s)){if((!s||typeof s!="object")&&(s={}),s=Be(s),it=Wi.indexOf(s.PARSER_MEDIA_TYPE)===-1?Vi:s.PARSER_MEDIA_TYPE,ne=it==="application/xhtml+xml"?_n:kt,N=ve(s,"ALLOWED_TAGS")?P({},s.ALLOWED_TAGS,ne):j,I=ve(s,"ALLOWED_ATTR")?P({},s.ALLOWED_ATTR,ne):q,sn=ve(s,"ALLOWED_NAMESPACES")?P({},s.ALLOWED_NAMESPACES,_n):zi,rn=ve(s,"ADD_URI_SAFE_ATTR")?P(Be(jn),s.ADD_URI_SAFE_ATTR,ne):jn,Gn=ve(s,"ADD_DATA_URI_TAGS")?P(Be(Fn),s.ADD_DATA_URI_TAGS,ne):Fn,Ge=ve(s,"FORBID_CONTENTS")?P({},s.FORBID_CONTENTS,ne):kn,U=ve(s,"FORBID_TAGS")?P({},s.FORBID_TAGS,ne):{},ee=ve(s,"FORBID_ATTR")?P({},s.FORBID_ATTR,ne):{},ke=ve(s,"USE_PROFILES")?s.USE_PROFILES:!1,K=s.ALLOW_ARIA_ATTR!==!1,ye=s.ALLOW_DATA_ATTR!==!1,ie=s.ALLOW_UNKNOWN_PROTOCOLS||!1,xe=s.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ge=s.SAFE_FOR_TEMPLATES||!1,Ne=s.SAFE_FOR_XML!==!1,De=s.WHOLE_DOCUMENT||!1,Ue=s.RETURN_DOM||!1,vt=s.RETURN_DOM_FRAGMENT||!1,Tt=s.RETURN_TRUSTED_TYPE||!1,tn=s.FORCE_BODY||!1,$n=s.SANITIZE_DOM!==!1,Un=s.SANITIZE_NAMED_PROPS||!1,nn=s.KEEP_CONTENT!==!1,rt=s.IN_PLACE||!1,L=s.ALLOWED_URI_REGEXP||Bi,Fe=s.NAMESPACE||Oe,m=s.CUSTOM_ELEMENT_HANDLING||{},s.CUSTOM_ELEMENT_HANDLING&&zn(s.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(m.tagNameCheck=s.CUSTOM_ELEMENT_HANDLING.tagNameCheck),s.CUSTOM_ELEMENT_HANDLING&&zn(s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(m.attributeNameCheck=s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),s.CUSTOM_ELEMENT_HANDLING&&typeof s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(m.allowCustomizedBuiltInElements=s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ge&&(ye=!1),vt&&(Ue=!0),ke&&(N=P({},Br),I=[],ke.html===!0&&(P(N,Dr),P(I,$r)),ke.svg===!0&&(P(N,bn),P(I,xn),P(I,Nt)),ke.svgFilters===!0&&(P(N,En),P(I,xn),P(I,Nt)),ke.mathMl===!0&&(P(N,yn),P(I,Ur),P(I,Nt))),s.ADD_TAGS&&(N===j&&(N=Be(N)),P(N,s.ADD_TAGS,ne)),s.ADD_ATTR&&(I===q&&(I=Be(I)),P(I,s.ADD_ATTR,ne)),s.ADD_URI_SAFE_ATTR&&P(rn,s.ADD_URI_SAFE_ATTR,ne),s.FORBID_CONTENTS&&(Ge===kn&&(Ge=Be(Ge)),P(Ge,s.FORBID_CONTENTS,ne)),nn&&(N["#text"]=!0),De&&P(N,["html","head","body"]),N.table&&(P(N,["tbody"]),delete U.tbody),s.TRUSTED_TYPES_POLICY){if(typeof s.TRUSTED_TYPES_POLICY.createHTML!="function")throw ct('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof s.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ct('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');H=s.TRUSTED_TYPES_POLICY,R=H.createHTML("")}else H===void 0&&(H=Fa(M,i)),H!==null&&typeof R=="string"&&(R=H.createHTML(""));fe&&fe(s),je=s}},Wn=P({},["mi","mo","mn","ms","mtext"]),Vn=P({},["foreignobject","annotation-xml"]),Yi=P({},["title","style","font","a","script"]),Xn=P({},[...bn,...En,...Na]),Yn=P({},[...yn,...Ha]),Zi=function(s){let d=w(s);(!d||!d.tagName)&&(d={namespaceURI:Fe,tagName:"template"});const S=kt(s.tagName),z=kt(d.tagName);return sn[s.namespaceURI]?s.namespaceURI===wt?d.namespaceURI===Oe?S==="svg":d.namespaceURI===St?S==="svg"&&(z==="annotation-xml"||Wn[z]):!!Xn[S]:s.namespaceURI===St?d.namespaceURI===Oe?S==="math":d.namespaceURI===wt?S==="math"&&Vn[z]:!!Yn[S]:s.namespaceURI===Oe?d.namespaceURI===wt&&!Vn[z]||d.namespaceURI===St&&!Wn[z]?!1:!Yn[S]&&(Yi[S]||!Xn[S]):!!(it==="application/xhtml+xml"&&sn[s.namespaceURI]):!1},Te=function(s){ut(t.removed,{element:s});try{w(s).removeChild(s)}catch(d){C(s)}},At=function(s,d){try{ut(t.removed,{attribute:d.getAttributeNode(s),from:d})}catch(S){ut(t.removed,{attribute:null,from:d})}if(d.removeAttribute(s),s==="is"&&!I[s])if(Ue||vt)try{Te(d)}catch(S){}else try{d.setAttribute(s,"")}catch(S){}},Zn=function(s){let d=null,S=null;if(tn)s="<remove></remove>"+s;else{const oe=Rr(s,/^[\r\n\t ]+/);S=oe&&oe[0]}it==="application/xhtml+xml"&&Fe===Oe&&(s='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+s+"</body></html>");const z=H?H.createHTML(s):s;if(Fe===Oe)try{d=new y().parseFromString(z,it)}catch(oe){}if(!d||!d.documentElement){d=k.createDocument(Fe,"template",null);try{d.documentElement.innerHTML=on?R:z}catch(oe){}}const se=d.body||d.documentElement;return s&&S&&se.insertBefore(n.createTextNode(S),se.childNodes[0]||null),Fe===Oe?Q.call(d,De?"html":"body")[0]:De?d.documentElement:se},qn=function(s){return Y.call(s.ownerDocument||s,s,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Jn=function(s){return s instanceof _&&(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")},Qn=function(s){return typeof u=="function"&&s instanceof u},Me=function(s,d,S){O[s]&&Lt(O[s],z=>{z.call(t,d,S,je)})},Kn=function(s){let d=null;if(Me("beforeSanitizeElements",s,null),Jn(s))return Te(s),!0;const S=ne(s.nodeName);if(Me("uponSanitizeElement",s,{tagName:S,allowedTags:N}),s.hasChildNodes()&&!Qn(s.firstElementChild)&&ue(/<[/\w]/g,s.innerHTML)&&ue(/<[/\w]/g,s.textContent)||s.nodeType===ht.progressingInstruction||Ne&&s.nodeType===ht.comment&&ue(/<[/\w]/g,s.data))return Te(s),!0;if(!N[S]||U[S]){if(!U[S]&&tr(S)&&(m.tagNameCheck instanceof RegExp&&ue(m.tagNameCheck,S)||m.tagNameCheck instanceof Function&&m.tagNameCheck(S)))return!1;if(nn&&!Ge[S]){const z=w(s)||s.parentNode,se=$(s)||s.childNodes;if(se&&z){const oe=se.length;for(let me=oe-1;me>=0;--me){const Se=p(se[me],!0);Se.__removalCount=(s.__removalCount||0)+1,z.insertBefore(Se,G(s))}}}return Te(s),!0}return s instanceof c&&!Zi(s)||(S==="noscript"||S==="noembed"||S==="noframes")&&ue(/<\/no(script|embed|frames)/i,s.innerHTML)?(Te(s),!0):(ge&&s.nodeType===ht.text&&(d=s.textContent,Lt([te,he,T],z=>{d=lt(d,z," ")}),s.textContent!==d&&(ut(t.removed,{element:s.cloneNode()}),s.textContent=d)),Me("afterSanitizeElements",s,null),!1)},er=function(s,d,S){if($n&&(d==="id"||d==="name")&&(S in n||S in Xi))return!1;if(!(ye&&!ee[d]&&ue(E,d))){if(!(K&&ue(g,d))){if(!I[d]||ee[d]){if(!(tr(s)&&(m.tagNameCheck instanceof RegExp&&ue(m.tagNameCheck,s)||m.tagNameCheck instanceof Function&&m.tagNameCheck(s))&&(m.attributeNameCheck instanceof RegExp&&ue(m.attributeNameCheck,d)||m.attributeNameCheck instanceof Function&&m.attributeNameCheck(d))||d==="is"&&m.allowCustomizedBuiltInElements&&(m.tagNameCheck instanceof RegExp&&ue(m.tagNameCheck,S)||m.tagNameCheck instanceof Function&&m.tagNameCheck(S))))return!1}else if(!rn[d]){if(!ue(L,lt(S,h,""))){if(!((d==="src"||d==="xlink:href"||d==="href")&&s!=="script"&&Oa(S,"data:")===0&&Gn[s])){if(!(ie&&!ue(v,lt(S,h,"")))){if(S)return!1}}}}}}return!0},tr=function(s){return s!=="annotation-xml"&&Rr(s,x)},nr=function(s){Me("beforeSanitizeAttributes",s,null);const{attributes:d}=s;if(!d)return;const S={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:I};let z=d.length;for(;z--;){const se=d[z],{name:oe,namespaceURI:me,value:Se}=se,ot=ne(oe);let ae=oe==="value"?Se:Ma(Se);if(S.attrName=ot,S.attrValue=ae,S.keepAttr=!0,S.forceKeepAttr=void 0,Me("uponSanitizeAttribute",s,S),ae=S.attrValue,Ne&&ue(/((--!?|])>)|<\/(style|title)/i,ae)){At(oe,s);continue}if(S.forceKeepAttr||(At(oe,s),!S.keepAttr))continue;if(!xe&&ue(/\/>/i,ae)){At(oe,s);continue}ge&&Lt([te,he,T],ir=>{ae=lt(ae,ir," ")});const rr=ne(s.nodeName);if(er(rr,ot,ae)){if(Un&&(ot==="id"||ot==="name")&&(At(oe,s),ae=ji+ae),H&&typeof M=="object"&&typeof M.getAttributeType=="function"&&!me)switch(M.getAttributeType(rr,ot)){case"TrustedHTML":{ae=H.createHTML(ae);break}case"TrustedScriptURL":{ae=H.createScriptURL(ae);break}}try{me?s.setAttributeNS(me,oe,ae):s.setAttribute(oe,ae),Jn(s)?Te(s):Pr(t.removed)}catch(ir){}}}Me("afterSanitizeAttributes",s,null)},qi=function A(s){let d=null;const S=qn(s);for(Me("beforeSanitizeShadowDOM",s,null);d=S.nextNode();)Me("uponSanitizeShadowNode",d,null),!Kn(d)&&(d.content instanceof o&&A(d.content),nr(d));Me("afterSanitizeShadowDOM",s,null)};return t.sanitize=function(A){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=null,S=null,z=null,se=null;if(on=!A,on&&(A="<!-->"),typeof A!="string"&&!Qn(A))if(typeof A.toString=="function"){if(A=A.toString(),typeof A!="string")throw ct("dirty is not a string, aborting")}else throw ct("toString is not a function");if(!t.isSupported)return A;if(en||an(s),t.removed=[],typeof A=="string"&&(rt=!1),rt){if(A.nodeName){const Se=ne(A.nodeName);if(!N[Se]||U[Se])throw ct("root node is forbidden and cannot be sanitized in-place")}}else if(A instanceof u)d=Zn("<!---->"),S=d.ownerDocument.importNode(A,!0),S.nodeType===ht.element&&S.nodeName==="BODY"||S.nodeName==="HTML"?d=S:d.appendChild(S);else{if(!Ue&&!ge&&!De&&A.indexOf("<")===-1)return H&&Tt?H.createHTML(A):A;if(d=Zn(A),!d)return Ue?null:Tt?R:""}d&&tn&&Te(d.firstChild);const oe=qn(rt?A:d);for(;z=oe.nextNode();)Kn(z)||(z.content instanceof o&&qi(z.content),nr(z));if(rt)return A;if(Ue){if(vt)for(se=V.call(d.ownerDocument);d.firstChild;)se.appendChild(d.firstChild);else se=d;return(I.shadowroot||I.shadowrootmode)&&(se=F.call(r,se,!0)),se}let me=De?d.outerHTML:d.innerHTML;return De&&N["!doctype"]&&d.ownerDocument&&d.ownerDocument.doctype&&d.ownerDocument.doctype.name&&ue($i,d.ownerDocument.doctype.name)&&(me="<!DOCTYPE "+d.ownerDocument.doctype.name+`>
|
|
9
|
-
`+me),ge&&Lt([te,he,T],Se=>{me=lt(me,Se," ")}),H&&Tt?H.createHTML(me):me},t.setConfig=function(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};an(A),en=!0},t.clearConfig=function(){je=null,en=!1},t.isValidAttribute=function(A,s,d){je||an({});const S=ne(A),z=ne(s);return er(S,z,d)},t.addHook=function(A,s){typeof s=="function"&&(O[A]=O[A]||[],ut(O[A],s))},t.removeHook=function(A){if(O[A])return Pr(O[A])},t.removeHooks=function(A){O[A]&&(O[A]=[])},t.removeAllHooks=function(){O={}},t}var Gr=Ui(),ki={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(li,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",u="minute",c="hour",l="day",f="week",_="month",y="quarter",M="year",b="date",p="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,G=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(T){var E=["th","st","nd","rd"],g=T%100;return"["+T+(E[(g-20)%10]||E[g]||E[0])+"]"}},w=function(T,E,g){var v=String(T);return!v||v.length>=E?T:""+Array(E+1-v.length).join(g)+T},H={s:w,z:function(T){var E=-T.utcOffset(),g=Math.abs(E),v=Math.floor(g/60),h=g%60;return(E<=0?"+":"-")+w(v,2,"0")+":"+w(h,2,"0")},m:function T(E,g){if(E.date()<g.date())return-T(g,E);var v=12*(g.year()-E.year())+(g.month()-E.month()),h=E.clone().add(v,_),x=g-h<0,L=E.clone().add(v+(x?-1:1),_);return+(-(v+(g-h)/(x?h-L:L-h))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:_,y:M,w:f,d:l,D:b,h:c,m:u,s:a,ms:o,Q:y}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},R="en",k={};k[R]=$;var Y="$isDayjsObject",V=function(T){return T instanceof te||!(!T||!T[Y])},Q=function T(E,g,v){var h;if(!E)return R;if(typeof E=="string"){var x=E.toLowerCase();k[x]&&(h=x),g&&(k[x]=g,h=x);var L=E.split("-");if(!h&&L.length>1)return T(L[0])}else{var N=E.name;k[N]=E,h=N}return!v&&h&&(R=h),h||!v&&R},F=function(T,E){if(V(T))return T.clone();var g=typeof E=="object"?E:{};return g.date=T,g.args=arguments,new te(g)},O=H;O.l=Q,O.i=V,O.w=function(T,E){return F(T,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var te=function(){function T(g){this.$L=Q(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[Y]=!0}var E=T.prototype;return E.parse=function(g){this.$d=function(v){var h=v.date,x=v.utc;if(h===null)return new Date(NaN);if(O.u(h))return new Date;if(h instanceof Date)return new Date(h);if(typeof h=="string"&&!/Z$/i.test(h)){var L=h.match(C);if(L){var N=L[2]-1||0,j=(L[7]||"0").substring(0,3);return x?new Date(Date.UTC(L[1],N,L[3]||1,L[4]||0,L[5]||0,L[6]||0,j)):new Date(L[1],N,L[3]||1,L[4]||0,L[5]||0,L[6]||0,j)}}return new Date(h)}(g),this.init()},E.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},E.$utils=function(){return O},E.isValid=function(){return this.$d.toString()!==p},E.isSame=function(g,v){var h=F(g);return this.startOf(v)<=h&&h<=this.endOf(v)},E.isAfter=function(g,v){return F(g)<this.startOf(v)},E.isBefore=function(g,v){return this.endOf(v)<F(g)},E.$g=function(g,v,h){return O.u(g)?this[v]:this.set(h,g)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(g,v){var h=this,x=!!O.u(v)||v,L=O.p(g),N=function(ye,ie){var xe=O.w(h.$u?Date.UTC(h.$y,ie,ye):new Date(h.$y,ie,ye),h);return x?xe:xe.endOf(l)},j=function(ye,ie){return O.w(h.toDate()[ye].apply(h.toDate("s"),(x?[0,0,0,0]:[23,59,59,999]).slice(ie)),h)},I=this.$W,q=this.$M,m=this.$D,U="set"+(this.$u?"UTC":"");switch(L){case M:return x?N(1,0):N(31,11);case _:return x?N(1,q):N(0,q+1);case f:var ee=this.$locale().weekStart||0,K=(I<ee?I+7:I)-ee;return N(x?m-K:m+(6-K),q);case l:case b:return j(U+"Hours",0);case c:return j(U+"Minutes",1);case u:return j(U+"Seconds",2);case a:return j(U+"Milliseconds",3);default:return this.clone()}},E.endOf=function(g){return this.startOf(g,!1)},E.$set=function(g,v){var h,x=O.p(g),L="set"+(this.$u?"UTC":""),N=(h={},h[l]=L+"Date",h[b]=L+"Date",h[_]=L+"Month",h[M]=L+"FullYear",h[c]=L+"Hours",h[u]=L+"Minutes",h[a]=L+"Seconds",h[o]=L+"Milliseconds",h)[x],j=x===l?this.$D+(v-this.$W):v;if(x===_||x===M){var I=this.clone().set(b,1);I.$d[N](j),I.init(),this.$d=I.set(b,Math.min(this.$D,I.daysInMonth())).$d}else N&&this.$d[N](j);return this.init(),this},E.set=function(g,v){return this.clone().$set(g,v)},E.get=function(g){return this[O.p(g)]()},E.add=function(g,v){var h,x=this;g=Number(g);var L=O.p(v),N=function(q){var m=F(x);return O.w(m.date(m.date()+Math.round(q*g)),x)};if(L===_)return this.set(_,this.$M+g);if(L===M)return this.set(M,this.$y+g);if(L===l)return N(1);if(L===f)return N(7);var j=(h={},h[u]=r,h[c]=i,h[a]=n,h)[L]||1,I=this.$d.getTime()+g*j;return O.w(I,this)},E.subtract=function(g,v){return this.add(-1*g,v)},E.format=function(g){var v=this,h=this.$locale();if(!this.isValid())return h.invalidDate||p;var x=g||"YYYY-MM-DDTHH:mm:ssZ",L=O.z(this),N=this.$H,j=this.$m,I=this.$M,q=h.weekdays,m=h.months,U=h.meridiem,ee=function(ie,xe,ge,Ne){return ie&&(ie[xe]||ie(v,x))||ge[xe].slice(0,Ne)},K=function(ie){return O.s(N%12||12,ie,"0")},ye=U||function(ie,xe,ge){var Ne=ie<12?"AM":"PM";return ge?Ne.toLowerCase():Ne};return x.replace(G,function(ie,xe){return xe||function(ge){switch(ge){case"YY":return String(v.$y).slice(-2);case"YYYY":return O.s(v.$y,4,"0");case"M":return I+1;case"MM":return O.s(I+1,2,"0");case"MMM":return ee(h.monthsShort,I,m,3);case"MMMM":return ee(m,I);case"D":return v.$D;case"DD":return O.s(v.$D,2,"0");case"d":return String(v.$W);case"dd":return ee(h.weekdaysMin,v.$W,q,2);case"ddd":return ee(h.weekdaysShort,v.$W,q,3);case"dddd":return q[v.$W];case"H":return String(N);case"HH":return O.s(N,2,"0");case"h":return K(1);case"hh":return K(2);case"a":return ye(N,j,!0);case"A":return ye(N,j,!1);case"m":return String(j);case"mm":return O.s(j,2,"0");case"s":return String(v.$s);case"ss":return O.s(v.$s,2,"0");case"SSS":return O.s(v.$ms,3,"0");case"Z":return L}return null}(ie)||L.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(g,v,h){var x,L=this,N=O.p(v),j=F(g),I=(j.utcOffset()-this.utcOffset())*r,q=this-j,m=function(){return O.m(L,j)};switch(N){case M:x=m()/12;break;case _:x=m();break;case y:x=m()/3;break;case f:x=(q-I)/6048e5;break;case l:x=(q-I)/864e5;break;case c:x=q/i;break;case u:x=q/r;break;case a:x=q/n;break;default:x=q}return h?x:O.a(x)},E.daysInMonth=function(){return this.endOf(_).$D},E.$locale=function(){return k[this.$L]},E.locale=function(g,v){if(!g)return this.$L;var h=this.clone(),x=Q(g,v,!0);return x&&(h.$L=x),h},E.clone=function(){return O.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},T}(),he=te.prototype;return F.prototype=he,[["$ms",o],["$s",a],["$m",u],["$H",c],["$W",l],["$M",_],["$y",M],["$D",b]].forEach(function(T){he[T[1]]=function(E){return this.$g(E,T[0],T[1])}}),F.extend=function(T,E){return T.$i||(T(E,te,F),T.$i=!0),F},F.locale=Q,F.isDayjs=V,F.unix=function(T){return F(1e3*T)},F.en=k[R],F.Ls=k,F.p={},F})})(ki);var ja=ki.exports;const Fr=Rn(ja);var Gi={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,a,u){var c=a.prototype;u.utc=function(p){var C={date:p,utc:!0,args:arguments};return new a(C)},c.utc=function(p){var C=u(this.toDate(),{locale:this.$L,utc:!0});return p?C.add(this.utcOffset(),n):C},c.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var l=c.parse;c.parse=function(p){p.utc&&(this.$u=!0),this.$utils().u(p.$offset)||(this.$offset=p.$offset),l.call(this,p)};var f=c.init;c.init=function(){if(this.$u){var p=this.$d;this.$y=p.getUTCFullYear(),this.$M=p.getUTCMonth(),this.$D=p.getUTCDate(),this.$W=p.getUTCDay(),this.$H=p.getUTCHours(),this.$m=p.getUTCMinutes(),this.$s=p.getUTCSeconds(),this.$ms=p.getUTCMilliseconds()}else f.call(this)};var _=c.utcOffset;c.utcOffset=function(p,C){var G=this.$utils().u;if(G(p))return this.$u?0:G(this.$offset)?_.call(this):this.$offset;if(typeof p=="string"&&(p=function(R){R===void 0&&(R="");var k=R.match(r);if(!k)return null;var Y=(""+k[0]).match(i)||["-",0,0],V=Y[0],Q=60*+Y[1]+ +Y[2];return Q===0?0:V==="+"?Q:-Q}(p),p===null))return this;var $=Math.abs(p)<=16?60*p:p,w=this;if(C)return w.$offset=$,w.$u=p===0,w;if(p!==0){var H=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(w=this.local().add($+H,n)).$offset=$,w.$x.$localOffset=H}else w=this.utc();return w};var y=c.format;c.format=function(p){var C=p||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return y.call(this,C)},c.valueOf=function(){var p=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*p},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var M=c.toDate;c.toDate=function(p){return p==="s"&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():M.call(this)};var b=c.diff;c.diff=function(p,C,G){if(p&&this.$u===p.$u)return b.call(this,p,C,G);var $=this.local(),w=u(p).local();return b.call($,w,C,G)}}})})(Gi);var za=Gi.exports;const Wa=Rn(za);let jr=Et(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){so(e,"svelte-1kolxtb",'*,*::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);width:400px;position:relative;z-index:1;box-shadow:inset 0px 0px 0px 2px rgba(255, 255, 255, 0.3)}.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%)}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;height:var(--emw--header-height, 40px);background-color:var(--emw--color-gray-10, rgba(17, 17, 17, 0.0666666667));width:100%;border-radius:var(--emw--border-radius-medium, 4px) var(--emw--border-radius-medium, 4px) 0 0}.CashierSessionExpirationModalHeaderTitle{display:flex;text-align:center;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis;line-height:calc(var(--emw--font-size-medium, 16px) + 2px);padding:20px}.CashierSessionExpirationModalContainer{padding:var(--emw--spacing-large, 20px)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-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;align-items:center;gap:var(--emw--spacing-large, 20px)}.CashierSessionExpiration button{width:100%;height:36px;color:var(--emw--color-typography-button, var(--emw--color-black, #000000));text-align:center;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);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%;text-align:center}.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);line-height:120%;text-align:center}.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-medium, 16px);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}}')}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,a=e[8]("sessionExpirationHeader")+"",u,c,l,f,_,y,M,b,p,C,G,$,w,H,R;const k=e[22].icon,Y=Ht(k,e,e[21],Xr),V=Y||eu(e),Q=e[22].title,F=Ht(Q,e,e[21],Vr),O=F||tu(e),te=e[22].text,he=Ht(te,e,e[21],Wr),T=he||nu(e),E=[iu,ru],g=[];function v(h,x){return h[6]?0:1}return p=v(e),C=g[p]=E[p](e),{c(){t=re("div"),n=re("div"),r=re("div"),i=re("div"),o=re("div"),u=et(a),c=mt(),l=re("div"),f=re("div"),V&&V.c(),_=mt(),O&&O.c(),y=mt(),T&&T.c(),M=mt(),b=re("button"),C.c(),W(o,"class","CashierSessionExpirationModalHeaderTitle"),W(i,"class","CashierSessionExpirationModalHeader"),W(b,"type","button"),b.disabled=e[6],W(b,"class","CashierSessionExpirationButton"),W(f,"class","CashierSessionExpiration"),W(l,"class","CashierSessionExpirationModalContainer"),W(r,"class","CashierSessionExpirationModalWrapper"),W(n,"class","CashierSessionExpirationModalWindow"),W(n,"id","CashierSessionExpirationModal"),Ze(()=>e[24].call(n))},m(h,x){Le(h,t,x),J(t,n),J(n,r),J(r,i),J(i,o),J(o,u),J(r,c),J(r,l),J(l,f),V&&V.m(f,null),J(f,_),O&&O.m(f,null),J(f,y),T&&T.m(f,null),J(f,M),J(f,b),g[p].m(b,null),e[23](f),G=co(n,e[24].bind(n)),e[25](t),w=!0,H||(R=[Gt(b,"click",e[9]),Gt(n,"click",e[10])],H=!0)},p(h,x){e=h,(!w||x[0]&256)&&a!==(a=e[8]("sessionExpirationHeader")+"")&&qt(u,a),Y?Y.p&&(!w||x[0]&2097152)&&Pt(Y,k,e,e[21],w?It(k,e[21],x,Ka):Rt(e[21]),Xr):V&&V.p&&(!w||x[0]&8)&&V.p(e,w?x:[-1,-1]),F?F.p&&(!w||x[0]&2097152)&&Pt(F,Q,e,e[21],w?It(Q,e[21],x,Qa):Rt(e[21]),Vr):O&&O.p&&(!w||x[0]&256)&&O.p(e,w?x:[-1,-1]),he?he.p&&(!w||x[0]&2097152)&&Pt(he,te,e,e[21],w?It(te,e[21],x,Ja):Rt(e[21]),Wr):T&&T.p&&(!w||x[0]&384)&&T.p(e,w?x:[-1,-1]);let L=p;p=v(e),p===L?g[p].p(e,x):(si(),He(g[L],1,1,()=>{g[L]=null}),ai(),C=g[p],C?C.p(e,x):(C=g[p]=E[p](e),C.c()),we(C,1),C.m(b,null)),(!w||x[0]&64)&&(b.disabled=e[6])},i(h){w||(we(V,h),we(O,h),we(T,h),we(C),h&&Ze(()=>{w&&($||($=dr(n,gr,{duration:e[2]},!0)),$.run(1))}),w=!0)},o(h){He(V,h),He(O,h),He(T,h),He(C),h&&($||($=dr(n,gr,{duration:e[2]},!1)),$.run(0)),w=!1},d(h){h&&Ee(t),V&&V.d(h),O&&O.d(h),T&&T.d(h),g[p].d(),e[23](null),G(),h&&$&&$.end(),e[25](null),H=!1,Pe(R)}}}function Zr(e){let t,n;return{c(){t=re("img"),cr(t.src,n=`${e[3]}/set-timeout-icon.png`)||W(t,"src",n),W(t,"width","300px"),W(t,"alt","error")},m(r,i){Le(r,t,i)},p(r,i){i[0]&8&&!cr(t.src,n=`${r[3]}/set-timeout-icon.png`)&&W(t,"src",n)},d(r){r&&Ee(t)}}}function eu(e){let t,n=e[3]&&Zr(e);return{c(){n&&n.c(),t=ii()},m(r,i){n&&n.m(r,i),Le(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&&Ee(t),n&&n.d(r)}}}function tu(e){let t,n=e[8]("sessionExpirationTitle")+"",r;return{c(){t=re("span"),r=et(n),W(t,"class","CashierSessionExpirationTitle")},m(i,o){Le(i,t,o),J(t,r)},p(i,o){o[0]&256&&n!==(n=i[8]("sessionExpirationTitle")+"")&&qt(r,n)},d(i){i&&Ee(t)}}}function nu(e){let t,n=Gr.sanitize(e[8]("sessionExpirationGeneralText",{values:{second:e[7]}}))+"";return{c(){t=re("span"),W(t,"class","CashierSessionExpirationText")},m(r,i){Le(r,t,i),t.innerHTML=n},p(r,i){i[0]&384&&n!==(n=Gr.sanitize(r[8]("sessionExpirationGeneralText",{values:{second:r[7]}}))+"")&&(t.innerHTML=n)},d(r){r&&Ee(t)}}}function ru(e){let t;const n=e[22].button,r=Ht(n,e,e[21],zr),i=r||ou(e);return{c(){i&&i.c()},m(o,a){i&&i.m(o,a),t=!0},p(o,a){r?r.p&&(!t||a[0]&2097152)&&Pt(r,n,o,o[21],t?It(n,o[21],a,qa):Rt(o[21]),zr):i&&i.p&&(!t||a[0]&256)&&i.p(o,t?a:[-1,-1])},i(o){t||(we(i,o),t=!0)},o(o){He(i,o),t=!1},d(o){i&&i.d(o)}}}function iu(e){let t,n,r,i,o,a=e[8]("sessionExpirationLoadingButton")+"",u;return{c(){t=re("div"),n=hr("svg"),r=hr("path"),i=mt(),o=re("span"),u=et(a),W(r,"d","M14.0282 6.58425C13.9037 4.05374 12.3688 1.68916 10.0872 0.61058C7.59818 -0.509483 4.56986 -0.0531603 2.49567 1.68916C0.504443 3.34851 -0.408201 6.04496 0.172573 8.57547C0.711862 11.0645 2.6616 13.0972 5.10915 13.7609C8.0545 14.5906 10.7509 13.1802 12.4103 10.7741C10.9169 12.7653 8.63527 14.0928 6.10476 13.6365C3.57424 13.1802 1.50005 11.2719 0.919281 8.78289C0.297024 6.12793 1.54154 3.34851 3.90612 1.97955C6.35366 0.569097 9.79682 1.10839 11.4147 3.51445C11.8295 4.09522 12.1199 4.80045 12.2444 5.50567C12.3688 6.08644 12.3273 6.7087 12.4103 7.28947C12.4933 7.82876 12.9496 8.53399 13.5718 8.16063C14.1111 7.82876 14.0696 7.12354 14.0282 6.58425C14.0696 6.87464 14.0282 6.41831 14.0282 6.58425Z"),W(r,"fill","white"),W(n,"class","CashierSessionExpirationButtonSpinner"),W(n,"xmlns","http://www.w3.org/2000/svg"),W(n,"width","15"),W(n,"height","14"),W(n,"viewBox","0 0 15 14"),W(n,"fill","none"),W(o,"class","CashierSessionExpirationButtonText")},m(c,l){Le(c,t,l),J(t,n),J(n,r),J(t,i),J(t,o),J(o,u)},p(c,l){l[0]&256&&a!==(a=c[8]("sessionExpirationLoadingButton")+"")&&qt(u,a)},i:pe,o:pe,d(c){c&&Ee(t)}}}function ou(e){let t,n=e[8]("sessionExpirationGeneralButton")+"",r;return{c(){t=re("span"),r=et(n),W(t,"class","CashierSessionExpirationButtonText")},m(i,o){Le(i,t,o),J(t,r)},p(i,o){o[0]&256&&n!==(n=i[8]("sessionExpirationGeneralButton")+"")&&qt(r,n)},d(i){i&&Ee(t)}}}function su(e){let t,n,r=e[5]&&Yr(e);return{c(){r&&r.c(),t=ii()},m(i,o){r&&r.m(i,o),Le(i,t,o),n=!0},p(i,o){i[5]?r?(r.p(i,o),o[0]&32&&we(r,1)):(r=Yr(i),r.c(),we(r,1),r.m(t.parentNode,t)):r&&(si(),He(r,1,1,()=>{r=null}),ai())},i(i){n||(we(r),n=!0)},o(i){He(r),n=!1},d(i){i&&Ee(t),r&&r.d(i)}}}const au=90;function uu(e,t,n){let r,i;fr(e,jr,m=>n(20,r=m)),fr(e,va,m=>n(8,i=m));let{$$slots:o={},$$scope:a}=t;Fr.extend(Wa);let{clientstyling:u=""}=t,{clientstylingurl:c=""}=t,{width:l}=t,{height:f}=t,{duration:_=200}=t,{assetsurl:y=""}=t,{lang:M="en"}=t,{translationurl:b=""}=t,{endpoint:p}=t,{currency:C}=t,{customerid:G}=t,{selectedpaymentmethodname:$}=t,{mbsource:w=""}=t,H,R=!1,k=!1,Y,V,Q,F,O;var te;(function(m){m.PlayerSessionIsNotValid="PlayerSessionIsNotValid",m.Success="Success",m.JwtTokenError="JwtTokenError"})(te||(te={}));const he=m=>{m.data.type==="StartSessionCountdown"&&(F=m.data.paymentMethodName)},T=m=>{try{return JSON.parse(atob(m.split(".")[1]))}catch(U){return null}},E=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:O},window.location.href)},g=m=>{n(5,R=!1);const U=T(m);U&&(V=U==null?void 0:U.exp,n(7,Y=V),Q&&clearInterval(Q),Q=setInterval(()=>{const ee=Math.floor(new Date().getTime()/1e3);n(7,Y=V-ee),Y<=au&&n(5,R=!0),ee>=V&&(v(),window.postMessage({type:"SessionExpired"},window.location.href))},1e3))},v=()=>{n(7,Y=0),n(5,R=!1),clearInterval(Q)},h=()=>{if(k)return;const m=new URL(`${p}/v1/player/${G}/payment/GetPaymentMethod`),U=new Headers;n(6,k=!0),U.append("accept","application/json"),U.append("Content-Type","application/json"),U.append("X-Client-Request-Timestamp",Fr.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const ee={method:"POST",mode:"cors",headers:U,body:JSON.stringify({PaymentMethodName:F||$,Currency:C,XPaymentSessionToken:r})};fetch(m,ee).then(K=>K.json()).then(K=>{if(K.error){window.postMessage({type:"ShowSessionError",error:K.error},window.location.href),v();return}if(K.ResponseCode===te.PlayerSessionIsNotValid||K.ResponseCode===te.JwtTokenError){O=K.ResponseCode,v(),E();return}if(K.ResponseCode!==te.Success){O=K.ResponseCode,v();return}K.XPaymentSessionToken&&jr.set(K.XPaymentSessionToken)}).finally(()=>n(6,k=!1))},x=m=>{const U=m.currentTarget;m.target===U&&h()},L=()=>{fetch(b).then(U=>U.json()).then(U=>{Object.keys(U).forEach(ee=>{Nr(ee,U[ee])})}).catch(U=>{console.log(U)})};Object.keys(Hr).forEach(m=>{Nr(m,Hr[m])});const N=()=>{Ta(M)};bo(()=>(window.addEventListener("message",he,!1),()=>{window.removeEventListener("message",he)})),Eo(()=>{clearInterval(Q)});function j(m){zt[m?"unshift":"push"](()=>{H=m,n(4,H)})}function I(){l=this.clientWidth,f=this.clientHeight,n(0,l),n(1,f)}function q(m){zt[m?"unshift":"push"](()=>{H=m,n(4,H)})}return e.$$set=m=>{"clientstyling"in m&&n(11,u=m.clientstyling),"clientstylingurl"in m&&n(12,c=m.clientstylingurl),"width"in m&&n(0,l=m.width),"height"in m&&n(1,f=m.height),"duration"in m&&n(2,_=m.duration),"assetsurl"in m&&n(3,y=m.assetsurl),"lang"in m&&n(13,M=m.lang),"translationurl"in m&&n(14,b=m.translationurl),"endpoint"in m&&n(15,p=m.endpoint),"currency"in m&&n(16,C=m.currency),"customerid"in m&&n(17,G=m.customerid),"selectedpaymentmethodname"in m&&n(18,$=m.selectedpaymentmethodname),"mbsource"in m&&n(19,w=m.mbsource),"$$scope"in m&&n(21,a=m.$$scope)},e.$$.update=()=>{e.$$.dirty[0]&1048576&&g(r),e.$$.dirty[0]&8192&&M&&N(),e.$$.dirty[0]&2064&&u&&H&&Va(H,u),e.$$.dirty[0]&4112&&c&&H&&Xa(H,c),e.$$.dirty[0]&524304&&w&&H&&Ya(H,`${w}.Style`),e.$$.dirty[0]&16384&&b&&L()},[l,f,_,y,H,R,k,Y,i,h,x,u,c,M,b,p,C,G,$,w,r,a,o,j,I,q]}class Fi extends No{constructor(t){super(),Co(this,t,uu,su,Qr,{clientstyling:11,clientstylingurl:12,width:0,height:1,duration:2,assetsurl:3,lang:13,translationurl:14,endpoint:15,currency:16,customerid:17,selectedpaymentmethodname:18,mbsource:19},Za,[-1,-1])}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),le()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),le()}get width(){return this.$$.ctx[0]}set width(t){this.$$set({width:t}),le()}get height(){return this.$$.ctx[1]}set height(t){this.$$set({height:t}),le()}get duration(){return this.$$.ctx[2]}set duration(t){this.$$set({duration:t}),le()}get assetsurl(){return this.$$.ctx[3]}set assetsurl(t){this.$$set({assetsurl:t}),le()}get lang(){return this.$$.ctx[13]}set lang(t){this.$$set({lang:t}),le()}get translationurl(){return this.$$.ctx[14]}set translationurl(t){this.$$set({translationurl:t}),le()}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),le()}get currency(){return this.$$.ctx[16]}set currency(t){this.$$set({currency:t}),le()}get customerid(){return this.$$.ctx[17]}set customerid(t){this.$$set({customerid:t}),le()}get selectedpaymentmethodname(){return this.$$.ctx[18]}set selectedpaymentmethodname(t){this.$$set({selectedpaymentmethodname:t}),le()}get mbsource(){return this.$$.ctx[19]}set mbsource(t){this.$$set({mbsource:t}),le()}}Lo(Fi,{clientstyling:{},clientstylingurl:{},width:{},height:{},duration:{},assetsurl:{},lang:{},translationurl:{},endpoint:{},currency:{},customerid:{},selectedpaymentmethodname:{},mbsource:{}},["icon","title","text","button"],[],!0);exports.default=Fi;
|