@everymatrix/cashier-receipt-page 1.99.56 → 1.99.59

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.
@@ -1,4 +1,4 @@
1
- "use strict";var Li=Object.defineProperty,Oi=Object.defineProperties;var Di=Object.getOwnPropertyDescriptors;var Dn=Object.getOwnPropertySymbols;var Ri=Object.prototype.hasOwnProperty,$i=Object.prototype.propertyIsEnumerable;var zt=(e,t,n)=>t in e?Li(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bt=(e,t)=>{for(var n in t||(t={}))Ri.call(t,n)&&zt(e,n,t[n]);if(Dn)for(var n of Dn(t))$i.call(t,n)&&zt(e,n,t[n]);return e},Rn=(e,t)=>Oi(e,Di(t));var ue=(e,t,n)=>(zt(e,typeof t!="symbol"?t+"":t,n),n);var Wt=(e,t,n)=>new Promise((r,i)=>{var o=u=>{try{a(n.next(u))}catch(l){i(l)}},s=u=>{try{a(n.throw(u))}catch(l){i(l)}},a=u=>u.done?r(u.value):Promise.resolve(u.value).then(o,s);a((n=n.apply(e,t)).next())});function ie(){}const yn=e=>e;function Ni(e,t){for(const n in t)e[n]=t[n];return e}function _r(e){return e()}function $n(){return Object.create(null)}function Ae(e){e.forEach(_r)}function ht(e){return typeof e=="function"}function vn(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let yt;function en(e,t){return e===t?!0:(yt||(yt=document.createElement("a")),yt.href=t,e===yt.href)}function Ui(e){return Object.keys(e).length===0}function wr(e,...t){if(e==null){for(const r of t)r(void 0);return ie}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function xr(e,t,n){e.$$.on_destroy.push(wr(t,n))}function ji(e,t,n,r){if(e){const i=Tr(e,t,n,r);return e[0](i)}}function Tr(e,t,n,r){return e[1]&&r?Ni(n.ctx.slice(),e[1](r(t))):n.ctx}function Gi(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=[],s=Math.max(t.dirty.length,i.length);for(let a=0;a<s;a+=1)o[a]=t.dirty[a]|i[a];return o}return t.dirty|i}return t.dirty}function Fi(e,t,n,r,i,o){if(i){const s=Tr(t,n,r,o);e.p(s,i)}}function zi(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 Sr=typeof window!="undefined";let Er=Sr?()=>window.performance.now():()=>Date.now(),Cn=Sr?e=>requestAnimationFrame(e):ie;const je=new Set;function Hr(e){je.forEach(t=>{t.c(e)||(je.delete(t),t.f())}),je.size!==0&&Cn(Hr)}function Mr(e){let t;return je.size===0&&Cn(Hr),{promise:new Promise(n=>{je.add(t={c:e,f:n})}),abort(){je.delete(t)}}}function C(e,t){e.appendChild(t)}function Pr(e,t,n){const r=_n(e);if(!r.getElementById(t)){const i=T("style");i.id=t,i.textContent=n,Br(r,i)}}function _n(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Wi(e){const t=T("style");return t.textContent="/* empty */",Br(_n(e),t),t.sheet}function Br(e,t){return C(e.head||e,t),t.sheet}function P(e,t,n){e.insertBefore(t,n||null)}function H(e){e.parentNode&&e.parentNode.removeChild(e)}function Ar(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function T(e){return document.createElement(e)}function be(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function j(e){return document.createTextNode(e)}function G(){return j(" ")}function $t(){return j("")}function Fe(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function f(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Z(e,t,n){const r=t.toLowerCase();r in e?e[r]=typeof e[r]=="boolean"&&n===""?!0:n:t in e?e[t]=typeof e[t]=="boolean"&&n===""?!0:n:f(e,t,n)}function Vi(e){return Array.from(e.childNodes)}function F(e,t){t=""+t,e.data!==t&&(e.data=t)}function Zi(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}class Yi{constructor(t=!1){ue(this,"is_svg",!1);ue(this,"e");ue(this,"n");ue(this,"t");ue(this,"a");this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,n,r=null){this.e||(this.is_svg?this.e=be(n.nodeName):this.e=T(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(t)),this.i(r)}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(t){for(let n=0;n<this.n.length;n+=1)P(this.t,this.n[n],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(H)}}function Xi(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}const Mt=new Map;let Pt=0;function qi(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function Ki(e,t){const n={stylesheet:Wi(t),rules:{}};return Mt.set(e,n),n}function kr(e,t,n,r,i,o,s,a=0){const u=16.666/r;let l=`{
1
+ "use strict";var Li=Object.defineProperty,Oi=Object.defineProperties;var Di=Object.getOwnPropertyDescriptors;var Dn=Object.getOwnPropertySymbols;var Ri=Object.prototype.hasOwnProperty,$i=Object.prototype.propertyIsEnumerable;var zt=(e,t,n)=>t in e?Li(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bt=(e,t)=>{for(var n in t||(t={}))Ri.call(t,n)&&zt(e,n,t[n]);if(Dn)for(var n of Dn(t))$i.call(t,n)&&zt(e,n,t[n]);return e},Rn=(e,t)=>Oi(e,Di(t));var ue=(e,t,n)=>zt(e,typeof t!="symbol"?t+"":t,n);var Wt=(e,t,n)=>new Promise((r,i)=>{var o=u=>{try{a(n.next(u))}catch(l){i(l)}},s=u=>{try{a(n.throw(u))}catch(l){i(l)}},a=u=>u.done?r(u.value):Promise.resolve(u.value).then(o,s);a((n=n.apply(e,t)).next())});function ie(){}const yn=e=>e;function Ni(e,t){for(const n in t)e[n]=t[n];return e}function _r(e){return e()}function $n(){return Object.create(null)}function Ae(e){e.forEach(_r)}function ht(e){return typeof e=="function"}function vn(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let yt;function en(e,t){return e===t?!0:(yt||(yt=document.createElement("a")),yt.href=t,e===yt.href)}function Ui(e){return Object.keys(e).length===0}function wr(e,...t){if(e==null){for(const r of t)r(void 0);return ie}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function xr(e,t,n){e.$$.on_destroy.push(wr(t,n))}function ji(e,t,n,r){if(e){const i=Tr(e,t,n,r);return e[0](i)}}function Tr(e,t,n,r){return e[1]&&r?Ni(n.ctx.slice(),e[1](r(t))):n.ctx}function Gi(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=[],s=Math.max(t.dirty.length,i.length);for(let a=0;a<s;a+=1)o[a]=t.dirty[a]|i[a];return o}return t.dirty|i}return t.dirty}function Fi(e,t,n,r,i,o){if(i){const s=Tr(t,n,r,o);e.p(s,i)}}function zi(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 Sr=typeof window!="undefined";let Er=Sr?()=>window.performance.now():()=>Date.now(),Cn=Sr?e=>requestAnimationFrame(e):ie;const je=new Set;function Hr(e){je.forEach(t=>{t.c(e)||(je.delete(t),t.f())}),je.size!==0&&Cn(Hr)}function Mr(e){let t;return je.size===0&&Cn(Hr),{promise:new Promise(n=>{je.add(t={c:e,f:n})}),abort(){je.delete(t)}}}function C(e,t){e.appendChild(t)}function Pr(e,t,n){const r=_n(e);if(!r.getElementById(t)){const i=T("style");i.id=t,i.textContent=n,Br(r,i)}}function _n(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Wi(e){const t=T("style");return t.textContent="/* empty */",Br(_n(e),t),t.sheet}function Br(e,t){return C(e.head||e,t),t.sheet}function P(e,t,n){e.insertBefore(t,n||null)}function H(e){e.parentNode&&e.parentNode.removeChild(e)}function Ar(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function T(e){return document.createElement(e)}function be(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function j(e){return document.createTextNode(e)}function G(){return j(" ")}function $t(){return j("")}function Fe(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function f(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Z(e,t,n){const r=t.toLowerCase();r in e?e[r]=typeof e[r]=="boolean"&&n===""?!0:n:t in e?e[t]=typeof e[t]=="boolean"&&n===""?!0:n:f(e,t,n)}function Vi(e){return Array.from(e.childNodes)}function F(e,t){t=""+t,e.data!==t&&(e.data=t)}function Zi(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}class Yi{constructor(t=!1){ue(this,"is_svg",!1);ue(this,"e");ue(this,"n");ue(this,"t");ue(this,"a");this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,n,r=null){this.e||(this.is_svg?this.e=be(n.nodeName):this.e=T(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(t)),this.i(r)}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(t){for(let n=0;n<this.n.length;n+=1)P(this.t,this.n[n],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(H)}}function Xi(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}const Mt=new Map;let Pt=0;function qi(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function Ki(e,t){const n={stylesheet:Wi(t),rules:{}};return Mt.set(e,n),n}function kr(e,t,n,r,i,o,s,a=0){const u=16.666/r;let l=`{
2
2
  `;for(let B=0;B<=1;B+=u){const k=t+(n-t)*o(B);l+=B*100+`%{${s(k,1-k)}}
3
3
  `}const c=l+`100% {${s(n,1-n)}}
4
4
  }`,h=`__svelte_${qi(c)}_${a}`,m=_n(e),{stylesheet:g,rules:v}=Mt.get(m)||Ki(m,e);v[h]||(v[h]=!0,g.insertRule(`@keyframes ${h} ${c}`,g.cssRules.length));const d=e.style.animation||"";return e.style.animation=`${d?`${d}, `:""}${h} ${r}ms linear ${i}ms 1 both`,Pt+=1,h}function tn(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(", "),Pt-=i,Pt||Qi())}function Qi(){Cn(()=>{Pt||(Mt.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&H(t)}),Mt.clear())})}let at;function st(e){at=e}function Ji(){if(!at)throw new Error("Function called outside component initialization");return at}function Ir(e){Ji().$$.on_mount.push(e)}const Ne=[],ut=[];let Ge=[];const Nn=[],eo=Promise.resolve();let nn=!1;function to(){nn||(nn=!0,eo.then(V))}function ze(e){Ge.push(e)}const Vt=new Set;let Re=0;function V(){if(Re!==0)return;const e=at;do{try{for(;Re<Ne.length;){const t=Ne[Re];Re++,st(t),no(t.$$)}}catch(t){throw Ne.length=0,Re=0,t}for(st(null),Ne.length=0,Re=0;ut.length;)ut.pop()();for(let t=0;t<Ge.length;t+=1){const n=Ge[t];Vt.has(n)||(Vt.add(n),n())}Ge.length=0}while(Ne.length);for(;Nn.length;)Nn.pop()();nn=!1,Vt.clear(),st(e)}function no(e){if(e.fragment!==null){e.update(),Ae(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ze)}}function ro(e){const t=[],n=[];Ge.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),Ge=t}let tt;function Lr(){return tt||(tt=Promise.resolve(),tt.then(()=>{tt=null})),tt}function Bt(e,t,n){e.dispatchEvent(Zi(`${t?"intro":"outro"}${n}`))}const wt=new Set;let Pe;function Or(){Pe={r:0,c:[],p:Pe}}function Dr(){Pe.r||Ae(Pe.c),Pe=Pe.p}function At(e,t){e&&e.i&&(wt.delete(e),e.i(t))}function Rr(e,t,n,r){if(e&&e.o){if(wt.has(e))return;wt.add(e),Pe.c.push(()=>{wt.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}const $r={duration:0};function io(e,t,n){const r={direction:"in"};let i=t(e,n,r),o=!1,s,a,u=0;function l(){s&&tn(e,s)}function c(){const{delay:m=0,duration:g=300,easing:v=yn,tick:d=ie,css:B}=i||$r;B&&(s=kr(e,0,1,g,m,v,B,u++)),d(0,1);const k=Er()+m,N=k+g;a&&a.abort(),o=!0,ze(()=>Bt(e,!0,"start")),a=Mr(A=>{if(o){if(A>=N)return d(1,0),Bt(e,!0,"end"),l(),o=!1;if(A>=k){const Y=v((A-k)/g);d(Y,1-Y)}}return o})}let h=!1;return{start(){h||(h=!0,tn(e),ht(i)?(i=i(r),Lr().then(c)):c())},invalidate(){h=!1},end(){o&&(l(),o=!1)}}}function oo(e,t,n){const r={direction:"out"};let i=t(e,n,r),o=!0,s;const a=Pe;a.r+=1;let u;function l(){const{delay:c=0,duration:h=300,easing:m=yn,tick:g=ie,css:v}=i||$r;v&&(s=kr(e,1,0,h,c,m,v));const d=Er()+c,B=d+h;ze(()=>Bt(e,!1,"start")),"inert"in e&&(u=e.inert,e.inert=!0),Mr(k=>{if(o){if(k>=B)return g(0,1),Bt(e,!1,"end"),--a.r||Ae(a.c),!1;if(k>=d){const N=m((k-d)/h);g(1-N,N)}}return o})}return ht(i)?Lr().then(()=>{i=i(r),l()}):l(),{end(c){c&&"inert"in e&&(e.inert=u),c&&i.tick&&i.tick(1,0),o&&(s&&tn(e,s),o=!1)}}}function kt(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function so(e){e&&e.c()}function Nr(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),ze(()=>{const o=e.$$.on_mount.map(_r).filter(ht);e.$$.on_destroy?e.$$.on_destroy.push(...o):Ae(o),e.$$.on_mount=[]}),i.forEach(ze)}function Ur(e,t){const n=e.$$;n.fragment!==null&&(ro(n.after_update),Ae(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ao(e,t){e.$$.dirty[0]===-1&&(Ne.push(e),to(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function jr(e,t,n,r,i,o,s=null,a=[-1]){const u=at;st(e);const l=e.$$={fragment:null,ctx:[],props:o,update:ie,not_equal:i,bound:$n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:$n(),dirty:a,skip_bound:!1,root:t.target||u.$$.root};s&&s(l.root);let c=!1;if(l.ctx=n?n(e,t.props||{},(h,m,...g)=>{const v=g.length?g[0]:m;return l.ctx&&i(l.ctx[h],l.ctx[h]=v)&&(!l.skip_bound&&l.bound[h]&&l.bound[h](v),c&&ao(e,h)),m}):[],l.update(),c=!0,Ae(l.before_update),l.fragment=r?r(l.ctx):!1,t.target){if(t.hydrate){const h=Vi(t.target);l.fragment&&l.fragment.l(h),h.forEach(H)}else l.fragment&&l.fragment.c();t.intro&&At(e.$$.fragment),Nr(e,t.target,t.anchor),V()}st(u)}let Gr;typeof HTMLElement=="function"&&(Gr=class extends HTMLElement{constructor(t,n,r){super();ue(this,"$$ctor");ue(this,"$$s");ue(this,"$$c");ue(this,"$$cn",!1);ue(this,"$$d",{});ue(this,"$$r",!1);ue(this,"$$p_d",{});ue(this,"$$l",{});ue(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 Wt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let s;return{c:function(){s=T("slot"),o!=="default"&&f(s,"name",o)},m:function(l,c){P(l,s,c)},d:function(l){l&&H(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=Xi(this);for(const o of this.$$s)o in r&&(n[o]=[t(o)]);for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=xt(s,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:Rn(bt({},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 s=xt(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const s of this.$$l[o]){const a=this.$$c.$on(o,s);this.$$l_u.set(s,a)}this.$$l={}}})}attributeChangedCallback(t,n,r){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=xt(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 xt(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 Fr(e,t,n,r,i,o){let s=class extends Gr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(u){var l;u=xt(a,u,t),this.$$d[a]=u,(l=this.$$c)==null||l.$set({[a]:u})}})}),r.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var u;return(u=this.$$c)==null?void 0:u[a]}})}),e.element=s,s}class zr{constructor(){ue(this,"$$");ue(this,"$$set")}$destroy(){Ur(this,1),this.$destroy=ie}$on(t,n){if(!ht(n))return ie;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&&!Ui(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const uo="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(uo);function Un(e,{delay:t=0,duration:n=400,easing:r=yn}={}){const i=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:r,css:o=>`opacity: ${o*i}`}}const $e=[];function lo(e,t){return{subscribe:Nt(e,t).subscribe}}function Nt(e,t=ie){let n;const r=new Set;function i(a){if(vn(e,a)&&(e=a,n)){const u=!$e.length;for(const l of r)l[1](),$e.push(l,e);if(u){for(let l=0;l<$e.length;l+=2)$e[l][0]($e[l+1]);$e.length=0}}}function o(a){i(a(e))}function s(a,u=ie){const l=[a,u];return r.add(l),r.size===1&&(n=t(i,o)||ie),a(e),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:i,update:o,subscribe:s}}function Xe(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 lo(n,(s,a)=>{let u=!1;const l=[];let c=0,h=ie;const m=()=>{if(c)return;h();const v=t(r?l[0]:l,s,a);o?s(v):h=ht(v)?v:ie},g=i.map((v,d)=>wr(v,B=>{l[d]=B,c&=~(1<<d),u&&m()},()=>{c|=1<<d}));return u=!0,m(),function(){Ae(g),h(),u=!1}})}var Wr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function wn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var co=function(t){return ho(t)&&!fo(t)};function ho(e){return!!e&&typeof e=="object"}function fo(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||go(e)}var po=typeof Symbol=="function"&&Symbol.for,mo=po?Symbol.for("react.element"):60103;function go(e){return e.$$typeof===mo}function bo(e){return Array.isArray(e)?[]:{}}function lt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?We(bo(e),e,t):e}function yo(e,t,n){return e.concat(t).map(function(r){return lt(r,n)})}function vo(e,t){if(!t.customMerge)return We;var n=t.customMerge(e);return typeof n=="function"?n:We}function Co(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function jn(e){return Object.keys(e).concat(Co(e))}function Vr(e,t){try{return t in e}catch(n){return!1}}function _o(e,t){return Vr(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function wo(e,t,n){var r={};return n.isMergeableObject(e)&&jn(e).forEach(function(i){r[i]=lt(e[i],n)}),jn(t).forEach(function(i){_o(e,i)||(Vr(e,i)&&n.isMergeableObject(t[i])?r[i]=vo(i,n)(e[i],t[i],n):r[i]=lt(t[i],n))}),r}function We(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||yo,n.isMergeableObject=n.isMergeableObject||co,n.cloneUnlessOtherwiseSpecified=lt;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):wo(e,t,n):lt(t,n)}We.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return We(r,i,n)},{})};var xo=We,To=xo;const So=wn(To);var rn=function(e,t){return rn=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])},rn(e,t)};function Ut(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");rn(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Te=function(){return Te=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},Te.apply(this,arguments)};function Eo(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 Zt(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 Yt(e,t){var n=t&&t.cache?t.cache:Io,r=t&&t.serializer?t.serializer:Ao,i=t&&t.strategy?t.strategy:Po;return i(e,{cache:n,serializer:r})}function Ho(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Mo(e,t,n,r){var i=Ho(r)?r:n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,r),t.set(i,o)),o}function Zr(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 Yr(e,t,n,r,i){return n.bind(t,e,r,i)}function Po(e,t){var n=e.length===1?Mo:Zr;return Yr(e,this,n,t.cache.create(),t.serializer)}function Bo(e,t){return Yr(e,this,Zr,t.cache.create(),t.serializer)}var Ao=function(){return JSON.stringify(arguments)},ko=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}(),Io={create:function(){return new ko}},Xt={variadic:Bo},It=function(){return It=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},It.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 J;(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"})(J||(J={}));var Ve;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Ve||(Ve={}));function Gn(e){return e.type===J.literal}function Lo(e){return e.type===J.argument}function Xr(e){return e.type===J.number}function qr(e){return e.type===J.date}function Kr(e){return e.type===J.time}function Qr(e){return e.type===J.select}function Jr(e){return e.type===J.plural}function Oo(e){return e.type===J.pound}function ei(e){return e.type===J.tag}function ti(e){return!!(e&&typeof e=="object"&&e.type===Ve.number)}function on(e){return!!(e&&typeof e=="object"&&e.type===Ve.dateTime)}var ni=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Do=/(?:[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 Ro(e){var t={};return e.replace(Do,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 ee=function(){return ee=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},ee.apply(this,arguments)};var $o=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function No(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split($o).filter(function(m){return m.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[r],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],u=s.slice(1),l=0,c=u;l<c.length;l++){var h=c[l];if(h.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:u})}return n}function Uo(e){return e.replace(/^(.*?)-/,"")}var Fn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ri=/^(@+)?(\+|#+)?[rs]?$/g,jo=/(\*)(0+)|(#+)(0+)|(0+)/g,ii=/^(0+)$/;function zn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(ri,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 oi(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 Go(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)),!ii.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Wn(e){var t={},n=oi(e);return n||t}function Fo(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=Uo(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=ee(ee(ee({},t),{notation:"scientific"}),i.options.reduce(function(u,l){return ee(ee({},u),Wn(l))},{}));continue;case"engineering":t=ee(ee(ee({},t),{notation:"engineering"}),i.options.reduce(function(u,l){return ee(ee({},u),Wn(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(jo,function(u,l,c,h,m,g){if(l)t.minimumIntegerDigits=c.length;else{if(h&&m)throw new Error("We currently do not support maximum integer digits");if(g)throw new Error("We currently do not support exact integer digits")}return""});continue}if(ii.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Fn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Fn,function(u,l,c,h,m,g){return c==="*"?t.minimumFractionDigits=l.length:h&&h[0]==="#"?t.maximumFractionDigits=h.length:m&&g?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+g.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var o=i.options[0];o==="w"?t=ee(ee({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=ee(ee({},t),zn(o)));continue}if(ri.test(i.stem)){t=ee(ee({},t),zn(i.stem));continue}var s=oi(i.stem);s&&(t=ee(ee({},t),s));var a=Go(i.stem);a&&(t=ee(ee({},t),a))}return t}var vt={"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 zo(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 s=1+(o&1),a=o<2?1:3+(o>>1),u="a",l=Wo(t);for((l=="H"||l=="k")&&(a=0);a-- >0;)n+=u;for(;s-- >0;)n=l+n}else i==="J"?n+="H":n+=i}return n}function Wo(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=vt[r||""]||vt[n||""]||vt["".concat(n,"-001")]||vt["001"];return i[0]}var qt,Vo=new RegExp("^".concat(ni.source,"*")),Zo=new RegExp("".concat(ni.source,"*$"));function $(e,t){return{start:e,end:t}}var Yo=!!String.prototype.startsWith&&"_a".startsWith("a",1),Xo=!!String.fromCodePoint,qo=!!Object.fromEntries,Ko=!!String.prototype.codePointAt,Qo=!!String.prototype.trimStart,Jo=!!String.prototype.trimEnd,es=!!Number.isSafeInteger,ts=es?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},sn=!0;try{var ns=ai("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");sn=((qt=ns.exec("a"))===null||qt===void 0?void 0:qt[0])==="a"}catch(e){sn=!1}var Vn=Yo?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},an=Xo?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,s;i>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},Zn=qo?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],s=o[0],a=o[1];n[s]=a}return n},si=Ko?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}},rs=Qo?function(t){return t.trimStart()}:function(t){return t.replace(Vo,"")},is=Jo?function(t){return t.trimEnd()}:function(t){return t.replace(Zo,"")};function ai(e,t){return new RegExp(e,t)}var un;if(sn){var Yn=ai("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");un=function(t,n){var r;Yn.lastIndex=n;var i=Yn.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else un=function(t,n){for(var r=[];;){var i=si(t,n);if(i===void 0||ui(i)||us(i))break;r.push(i),n+=i>=65536?2:1}return an.apply(void 0,r)};var os=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 s=this.parseArgument(t,r);if(s.err)return s;i.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:J.pound,location:$(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(D.UNMATCHED_CLOSING_TAG,$(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&ln(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;i.push(s.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:J.literal,value:"<".concat(i,"/>"),location:$(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ln(this.char()))return this.error(D.INVALID_TAG,$(a,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(D.UNMATCHED_CLOSING_TAG,$(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:J.tag,value:i,children:s,location:$(r,this.clonePosition())},err:null}:this.error(D.INVALID_TAG,$(a,this.clonePosition())))}else return this.error(D.UNCLOSED_TAG,$(r,this.clonePosition()))}else return this.error(D.INVALID_TAG,$(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&as(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 s=this.tryParseUnquoted(t,n);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var u=$(r,this.clonePosition());return{val:{type:J.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!ss(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,$(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(D.EMPTY_ARGUMENT,$(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(D.MALFORMED_ARGUMENT,$(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,$(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:J.argument,value:i,location:$(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,$(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(D.MALFORMED_ARGUMENT,$(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=un(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),s=$(t,o);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(a){case"":return this.error(D.EXPECT_ARGUMENT_TYPE,$(s,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var m=is(h.val);if(m.length===0)return this.error(D.EXPECT_ARGUMENT_STYLE,$(this.clonePosition(),this.clonePosition()));var g=$(c,this.clonePosition());l={style:m,styleLocation:g}}var v=this.tryParseArgumentClose(i);if(v.err)return v;var d=$(i,this.clonePosition());if(l&&Vn(l==null?void 0:l.style,"::",0)){var B=rs(l.style.slice(2));if(a==="number"){var h=this.parseNumberSkeletonFromString(B,l.styleLocation);return h.err?h:{val:{type:J.number,value:r,location:d,style:h.val},err:null}}else{if(B.length===0)return this.error(D.EXPECT_DATE_TIME_SKELETON,d);var k=B;this.locale&&(k=zo(B,this.locale));var m={type:Ve.dateTime,pattern:k,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Ro(k):{}},N=a==="date"?J.date:J.time;return{val:{type:N,value:r,location:d,style:m},err:null}}}return{val:{type:a==="number"?J.number:a==="date"?J.date:J.time,value:r,location:d,style:(o=l==null?void 0:l.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var A=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(D.EXPECT_SELECT_ARGUMENT_OPTIONS,$(A,It({},A)));this.bumpSpace();var Y=this.parseIdentifierIfPossible(),q=0;if(a!=="select"&&Y.value==="offset"){if(!this.bumpIf(":"))return this.error(D.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,$(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(D.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,D.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),Y=this.parseIdentifierIfPossible(),q=h.val}var I=this.tryParsePluralOrSelectOptions(t,a,n,Y);if(I.err)return I;var v=this.tryParseArgumentClose(i);if(v.err)return v;var z=$(i,this.clonePosition());return a==="select"?{val:{type:J.select,value:r,options:Zn(I.val),location:z},err:null}:{val:{type:J.plural,value:r,options:Zn(I.val),offset:q,pluralType:a==="plural"?"cardinal":"ordinal",location:z},err:null}}default:return this.error(D.INVALID_ARGUMENT_TYPE,$(s,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,$(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,$(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=No(t)}catch(i){return this.error(D.INVALID_NUMBER_SKELETON,n)}return{val:{type:Ve.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?Fo(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,s=!1,a=[],u=new Set,l=i.value,c=i.location;;){if(l.length===0){var h=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(D.EXPECT_PLURAL_ARGUMENT_SELECTOR,D.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;c=$(h,this.clonePosition()),l=this.message.slice(h.offset,this.offset())}else break}if(u.has(l))return this.error(n==="select"?D.DUPLICATE_SELECT_ARGUMENT_SELECTOR:D.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);l==="other"&&(s=!0),this.bumpSpace();var g=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?D.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:D.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,$(this.clonePosition(),this.clonePosition()));var v=this.parseMessage(t+1,n,r);if(v.err)return v;var d=this.tryParseArgumentClose(g);if(d.err)return d;a.push([l,{value:v.val,location:$(g,this.clonePosition())}]),u.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,c=o.location}return a.length===0?this.error(n==="select"?D.EXPECT_SELECT_ARGUMENT_SELECTOR:D.EXPECT_PLURAL_ARGUMENT_SELECTOR,$(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(D.MISSING_OTHER_CLAUSE,$(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var u=$(i,this.clonePosition());return o?(s*=r,ts(s)?{val:s,err:null}:this.error(n,u)):this.error(t,u)},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(Vn(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()&&ui(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 ln(e){return e>=97&&e<=122||e>=65&&e<=90}function ss(e){return ln(e)||e===47}function as(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 ui(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function us(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,Qr(t)||Jr(t))for(var n in t.options)delete t.options[n].location,cn(t.options[n].value);else Xr(t)&&ti(t.style)||(qr(t)||Kr(t))&&on(t.style)?delete t.style.location:ei(t)&&cn(t.children)})}function ls(e,t){t===void 0&&(t={}),t=It({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new os(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 Ze;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Ze||(Ze={}));var jt=function(e){Ut(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),Xn=function(e){Ut(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('", "'),'"'),Ze.INVALID_VALUE,o)||this}return t}(jt),cs=function(e){Ut(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Ze.INVALID_VALUE,i)||this}return t}(jt),hs=function(e){Ut(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,'"'),Ze.MISSING_VALUE,r)||this}return t}(jt),de;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(de||(de={}));function fs(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==de.literal||n.type!==de.literal?t.push(n):r.value+=n.value,t},[])}function ps(e){return typeof e=="function"}function Tt(e,t,n,r,i,o,s){if(e.length===1&&Gn(e[0]))return[{type:de.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var c=l[u];if(Gn(c)){a.push({type:de.literal,value:c.value});continue}if(Oo(c)){typeof o=="number"&&a.push({type:de.literal,value:n.getNumberFormat(t).format(o)});continue}var h=c.value;if(!(i&&h in i))throw new hs(h,s);var m=i[h];if(Lo(c)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),a.push({type:typeof m=="string"?de.literal:de.object,value:m});continue}if(qr(c)){var g=typeof c.style=="string"?r.date[c.style]:on(c.style)?c.style.parsedOptions:void 0;a.push({type:de.literal,value:n.getDateTimeFormat(t,g).format(m)});continue}if(Kr(c)){var g=typeof c.style=="string"?r.time[c.style]:on(c.style)?c.style.parsedOptions:r.time.medium;a.push({type:de.literal,value:n.getDateTimeFormat(t,g).format(m)});continue}if(Xr(c)){var g=typeof c.style=="string"?r.number[c.style]:ti(c.style)?c.style.parsedOptions:void 0;g&&g.scale&&(m=m*(g.scale||1)),a.push({type:de.literal,value:n.getNumberFormat(t,g).format(m)});continue}if(ei(c)){var v=c.children,d=c.value,B=i[d];if(!ps(B))throw new cs(d,"function",s);var k=Tt(v,t,n,r,i,o),N=B(k.map(function(q){return q.value}));Array.isArray(N)||(N=[N]),a.push.apply(a,N.map(function(q){return{type:typeof q=="string"?de.literal:de.object,value:q}}))}if(Qr(c)){var A=c.options[m]||c.options.other;if(!A)throw new Xn(c.value,m,Object.keys(c.options),s);a.push.apply(a,Tt(A.value,t,n,r,i));continue}if(Jr(c)){var A=c.options["=".concat(m)];if(!A){if(!Intl.PluralRules)throw new jt(`Intl.PluralRules is not available in this environment.
@@ -48,4 +48,4 @@ PERFORMANCE OF THIS SOFTWARE.
48
48
  `,SportsButton:`<svg xmlns="http://www.w3.org/2000/svg" id="Layer_1" version="1.1" viewBox="0 0 500 500">
49
49
  <path class="st0" d="M250,0C111.9,0,0,111.9,0,250s111.9,250,250,250,250-111.9,250-250S388.1,0,250,0ZM449.1,137.9c16.4,28.1,26.3,59.3,29.4,91.8.2,2.4-1.1,4.4-3.6,5.8l-21.5-21.7-23.3-24c-1.2-1.2-.5-4,0-5.5l13.4-48.2c.7-2.5,4.7,0,5.7,1.7ZM342.9,41.2c32.1,14.2,60.4,35.1,82.9,62,3.1,3.7,6,8.1,4.7,13.1l-17.8,65.6c-.6,2.3-2.5,3.9-4.7,4.7l-58.8,22.3c-3.5,1.3-5.3.8-7.9-1.2l-81.7-61.2c-2.9-2.2-3.9-4.5-3.9-8v-44.7c0-2.2.8-5,2.9-6.3l74.3-45.4c3.2-2.3,6.4-2.5,10-.9ZM196.6,28c33.2-8.1,67.6-8.4,101.1-1.4,5.2,1.1,11.5,4.1,11.9,8.9l-59,36.3c-1.2.7-3.4,1.4-4.5.7l-58-36.8c1.5-3.8,4.5-6.7,8.5-7.7ZM71,107.4c22.1-28.5,51.1-50.3,83.8-65.2,3-1.3,6.4-2.4,9.4-.5l69.7,44.2c2.6,1.6,4.9,3.5,4.9,6.8v47.6c0,2.5-1.2,4.4-3.2,6l-82.3,62.8c-2.3,1.8-4.2,1.5-6.4.8l-53-16.7c-3.7-1.2-5.4-3.2-6.3-6.9l-16.2-67.2c-.8-3.4-2.5-8.6-.1-11.6ZM21.1,233.7c2.6-29.2,10.1-57.5,23.1-83.7,2.6-5.3,6.7-13.2,10.5-14.1.7-.2,2.7,0,3,1.3l13.2,53.9c.4,1.5.5,3.7-.6,4.9l-44,44.7c-.6.6-1.6.8-2.2.8-2.1,0-3.4-4.2-3-7.9ZM62.1,375.6c-2.8-.1-5-.1-7.4-1.7-19.4-30.7-31.9-66.4-34.2-102.8l59.9-60.3c1.4-1.4,3.6-2.2,5.6-1.6l59.8,19c3,.9,3.9,3.2,4.8,5.8l29.6,84.3c.6,1.7,1.9,4.3.7,5.9l-37.5,51.3c-1.9,2.6-3.9,3.5-6.9,3.4l-74.4-3.5ZM174.5,464.9c-.1.6-1.4.8-2.4.4-31.8-11.4-60.8-29.3-84.9-53-6-5.9-18.6-18.6-10.8-18.2l58.8,2.6c3.3.1,5.9,1.1,7.5,4.1l8.1,15.9,23.4,46.1c.5,1,.4,1.7.3,2.1ZM200.9,473.6c-1.6-.3-2.8-1.1-3.6-2.5l-39.1-77.3c-.9-1.8-2.4-4.1-2-6.2l37.2-50.8c1.2-1.7,3.2-3.3,5.5-3.3h97.7c3.2,0,5.1,1.6,6.8,4l36.3,50.1-5.8,12.1-37.9,74.5c-31.6,6.6-63.8,6.3-95-.6ZM322.1,467.4c-.7.2-1.6,0-1.8-.1-.4-.2-.9-1.1-.3-2.4l32.5-64.1c1.6-2.1,3.7-3.2,6.4-3.3l69.3-2c-27.9,33.8-65,58.3-106.1,71.9ZM446.2,372.3c-1.7,2.7-3.2,4.2-6.6,4.8l-80.3,2.6c-3.5.1-5-1.5-6.6-3.7l-36.1-50c-1.2-1.6-1.9-3.3-1.2-5.5l29.7-86.1c1.1-3,2.2-5.9,5.4-7.1l63.2-24c1.7-.6,4.2-.8,5.5.6l57.5,58.9c2.1,2.1,2.9,3.6,2.7,6.8-2.4,36.6-14,71.7-33.4,102.7Z"></path>
50
50
  </svg>
51
- `};if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CashierError-CHqMY0he.cjs")).then(({default:t})=>{!customElements.get("cashier-error")&&customElements.define("cashier-error",t.element)})}function Sa(e){Pr(e,"svelte-nkabfs",'.LoadingOverlay{width:100%;height:100%;display:flex;position:relative;top:0;left:0;justify-content:center;align-items:center;z-index:100;background:transparent}.CopyTooltip{transform:translateX(-50%);color:var(--emw--color-typography, #fff);opacity:1;container-name:copy-tooltip;font-size:var(--emw--font-size-medium, 16px);line-height:calc(var(--emw--font-size-medium, 16px) + 2px);padding:15px;position:fixed;left:50%;top:40%;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:#12191f;max-width:600px;z-index:3;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3)}.CopyTooltip::before{content:"";position:absolute;inset:0;opacity:0.2;z-index:-1;pointer-events:none;border-radius:10px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-black, #12191f) 65%)}.Spinner{width:40px;height:40px;border:4px solid #e0e0e0;border-top:4px solid var(--emw--color-primary, #f9c405);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.CashierReceiptPageWidget{position:relative}.CashierReceiptPage{border-radius:var(--emw--border-radius-medium-plus, 6px);background-color:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));padding:0 0 var(--emw--spacing-small-minus, 10px) 0;margin:0 auto;position:relative;word-wrap:break-word;display:flex;flex-direction:column;justify-content:space-between;height:100%}.ReceiptWrapper{width:100%;height:200px;border-bottom:1px solid var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.1));display:flex;align-items:flex-end;flex-direction:row-reverse;position:relative}.ReceiptWrapper .ImagePlaceholder{height:100%;width:100%;background:#e6e6e6}.ReceiptWrapper .ImagePlaceholder.success{background:#e6e6e6}.ReceiptWrapper .ImagePlaceholder.fail{background:#e6e6e6}.ReceiptWrapper .ImagePlaceholder.pending{background:#e6e6e6}.ReceiptWrapper .ImagePlaceholder.cancel{background:#e6e6e6}.ReceiptWrapper .ImagePlaceholder.rejected{background:#e6e6e6}.ReceiptStatusWrapper{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:30px 30px 0;gap:10px}.ReceiptStatusWrapper .ReceiptStatusIcon.success svg,.ReceiptStatusWrapper .ReceiptStatusIcon.success circle,.ReceiptStatusWrapper .ReceiptStatusIcon.success path{fill:var(--emw--color-valid, #41d195)}.ReceiptStatusWrapper .ReceiptStatusIcon.pending svg,.ReceiptStatusWrapper .ReceiptStatusIcon.pending circle,.ReceiptStatusWrapper .ReceiptStatusIcon.pending path{fill:var(--emw--color-pending, #ff6836)}.ReceiptStatusWrapper .ReceiptStatusIcon.failed svg,.ReceiptStatusWrapper .ReceiptStatusIcon.failed circle,.ReceiptStatusWrapper .ReceiptStatusIcon.failed path{fill:var(--emw--color-error, #ff3636)}.ReceiptStatusWrapper .ReceiptStatusText{text-align:center}.ReceiptStatusWrapper .ReceiptStatusText h3,.ReceiptStatusWrapper .ReceiptStatusText p{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));padding:0;margin:10px}.ReceiptStatusWrapper .ReceiptStatusText p{font-size:14px;font-weight:200}.ReceiptStatusWrapper .TryAgainBtn,.ReceiptStatusWrapper .RefreshButton{border-radius:20px;padding:7px 20px;border:none;box-shadow:inset 0px 0px 0px 2px rgba(255, 226, 123, 0.3);color:var(--emw--color-white, #ffffff);background-color:rgba(249, 196, 8, 0.3019607843)}.ReceiptDetailsWrapper{position:relative;display:flex;flex-direction:column;border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);padding:20px;margin:10px;z-index:1}.ReceiptDetailsWrapper::before{content:"";position:absolute;inset:0;opacity:0.3;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%)}.ReceiptDetailsWrapper .TxnId{cursor:pointer}.ReceiptDetailsWrapper .TxnId .TxnIdText{overflow:hidden;text-overflow:ellipsis;display:inline-block;white-space:nowrap}.ReceiptDetailsWrapper .Amount,.ReceiptDetailsWrapper .Status,.ReceiptDetailsWrapper .TxnId,.ReceiptDetailsWrapper .PaymentMethod,.ReceiptDetailsWrapper .PaymentTime{display:flex;justify-content:space-between;align-items:center;color:var(--emw--color-typography, var(--emw--color-white, #ffffff))}.ReceiptDetailsWrapper .Amount p,.ReceiptDetailsWrapper .Status p,.ReceiptDetailsWrapper .TxnId p,.ReceiptDetailsWrapper .PaymentMethod p,.ReceiptDetailsWrapper .PaymentTime p{font-weight:200;font-size:12px;margin-right:5px;width:auto}.ReceiptDetailsWrapper .Amount span,.ReceiptDetailsWrapper .Status span,.ReceiptDetailsWrapper .TxnId span,.ReceiptDetailsWrapper .PaymentMethod span,.ReceiptDetailsWrapper .PaymentTime span{font-size:12px;word-break:break-all;font-weight:500;max-width:70%;text-align:right}.ReceiptDetailsWrapper .Status{border-bottom:1px solid rgba(255, 255, 255, 0.276);padding-bottom:10px}.ReceiptDetailsWrapper .Status span{padding:10px;font-size:var(--emw--font-size-small, 12px);border-radius:16px}.ReceiptDetailsWrapper .Status.success span{background-color:rgba(65, 209, 149, 0.1215686275);color:var(--emw--color-valid, #41d195)}.ReceiptDetailsWrapper .Status.pending span{background-color:rgba(255, 104, 54, 0.1215686275);color:var(--emw--color-pending, #ff6836)}.ReceiptDetailsWrapper .Status.failed span{background-color:rgba(209, 65, 65, 0.1215686275);color:var(--emw--color-error, #ff3636)}.ReceiptDetailsWrapper .Status.rejected span{background-color:rgba(209, 65, 65, 0.1215686275);color:var(--emw--color-error, #ff3636)}.ReceiptDetailsWrapper .TxnId{margin-top:15px}.TitleWrapper{display:flex;position:absolute;left:0;bottom:11px;flex-direction:column;justify-content:flex-end;flex-shrink:0}.Title{color:var(--emw--color-gray-10, #111);font-size:var(--emw--font-size-x-large-plus, 26px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;line-height:var(--emw--font-size-x-large-plus, 26px)}.SubTitle{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-medium, 16px);color:var(--emw--color-gray-290, #666);margin-top:var(--emw--spacing-small, 12px)}.Text{padding:var(--emw--spacing-small, 12px) 0;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--color-gray-10, #111)}.CashierErrorText{color:var(--emw--color-gray-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:130%;text-align:center}.CashierErrorTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);line-height:125%;text-align:center}.Reference{color:var(--emw--color-gray-290, #666);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-normal, 400);margin:0}.ReceiptButtonsWrapper{display:grid;grid-template-columns:1fr 1fr 1fr;height:75px;gap:8px;margin:0 10px}.ReceiptButtonsWrapper .GoToButton{cursor:pointer;border-radius:8px;border:none;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-gey-600, rgba(237, 237, 237, 0.0784313725));color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:12px;transition:all 0.3s ease}.ReceiptButtonsWrapper .GoToButton:hover,.ReceiptButtonsWrapper .GoToButton:active{transform:scale(1.05)}.DefaultButton{text-transform:uppercase;font-weight:var(--emw--font-weight-semibold, 600);color:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));border:none;background:var(--emw--color-primary, #f9c408);cursor:pointer;display:flex;align-items:center;justify-content:center;gap:5px;border-radius:var(--emw--border-radius-medium, 12px);min-height:44px;font-size:var(--emw--font-size-medium, 16px);font-family:inherit;margin:20px 10px;width:calc(100% - 20px);transition:background 0.3s ease}.DefaultButton:hover{box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background:var(--emw--color-hover, #dbac03)}.DefaultButton:active{box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background:var(--emw--color-active, #fecd1c)}.HeaderButtonContainer{position:absolute;z-index:1;right:0;top:0;display:flex;align-items:baseline;gap:var(--emw--spacing-small, 12px);padding:var(--emw--spacing-small, 12px) 0}.HeaderButtonContainer>span{cursor:pointer}.ReceiptField{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-medium, 16px);line-height:var(--emw--font-size-medium, 16px);color:var(--emw--color-gray-150, #666);margin:var(--emw--spacing-small, 12px)}@media(min-width: 750px){.CashierReceiptPage{background-color:transparent}.CashierReceiptPageWidget{position:absolute;width:calc(100% - 20px)}}.CustomButtonSvg svg{width:32px;height:32px;fill:var(--emw--color-primary)}')}function fr(e,t,n){const r=e.slice();return r[72]=t[n],r[74]=n,r}function pr(e,t,n){const r=e.slice();return r[75]=t[n],r}function Ea(e){let t,n,r=cr(e[25])&&e[9]&&e[22],i,o=e[23]&&dr(e),s=r&&mr(e);function a(c,h){if(c[15])return Pa;if(c[19]&&!c[20])return Ma}let u=a(e),l=u&&u(e);return{c(){o&&o.c(),t=G(),n=T("div"),s&&s.c(),i=G(),l&&l.c(),f(n,"class","CashierReceiptPage")},m(c,h){o&&o.m(c,h),P(c,t,h),P(c,n,h),s&&s.m(n,null),C(n,i),l&&l.m(n,null)},p(c,h){c[23]?o?(o.p(c,h),h[0]&8388608&&At(o,1)):(o=dr(c),o.c(),At(o,1),o.m(t.parentNode,t)):o&&(Or(),Rr(o,1,1,()=>{o=null}),Dr()),h[0]&4194816&&(r=cr(c[25])&&c[9]&&c[22]),r?s?s.p(c,h):(s=mr(c),s.c(),s.m(n,i)):s&&(s.d(1),s=null),u===(u=a(c))&&l?l.p(c,h):(l&&l.d(1),l=u&&u(c),l&&(l.c(),l.m(n,null)))},d(c){c&&(H(t),H(n)),o&&o.d(c),s&&s.d(),l&&l.d()}}}function Ha(e){let t;return{c(){t=T("div"),t.innerHTML='<div class="Spinner"></div>',f(t,"class","LoadingOverlay")},m(n,r){P(n,t,r)},p:ie,d(n){n&&H(t)}}}function dr(e){let t,n=e[24]("copyTransactionId")+"",r,i,o,s;return{c(){t=T("div"),r=j(n),f(t,"class","CopyTooltip")},m(a,u){P(a,t,u),C(t,r),s=!0},p(a,u){(!s||u[0]&16777216)&&n!==(n=a[24]("copyTransactionId")+"")&&F(r,n)},i(a){s||(a&&ze(()=>{s&&(o&&o.end(1),i=io(t,Un,{duration:100}),i.start())}),s=!0)},o(a){i&&i.invalidate(),a&&(o=oo(t,Un,{duration:1e3})),s=!1},d(a){a&&H(t),a&&o&&o.end()}}}function mr(e){let t;return{c(){t=T("cashier-verifications"),Z(t,"lang",e[3]),Z(t,"translationurl",e[4]),Z(t,"endpoint",e[1]),Z(t,"clientstylingurl",e[8]),Z(t,"clientstyling",e[7]),Z(t,"customerid",e[6]),Z(t,"playersession",e[2])},m(n,r){P(n,t,r)},p(n,r){r[0]&8&&Z(t,"lang",n[3]),r[0]&16&&Z(t,"translationurl",n[4]),r[0]&2&&Z(t,"endpoint",n[1]),r[0]&256&&Z(t,"clientstylingurl",n[8]),r[0]&128&&Z(t,"clientstyling",n[7]),r[0]&64&&Z(t,"customerid",n[6]),r[0]&4&&Z(t,"playersession",n[2])},d(n){n&&H(t)}}}function Ma(e){let t,n=e[19]===e[13].Maintenance&&gr(e);return{c(){t=T("cashier-error"),n&&n.c(),Z(t,"assetsurl",e[5]),Z(t,"translationurl",e[4]),Z(t,"clientstylingurl",e[8]),Z(t,"clientstyling",e[7]),Z(t,"lang",e[3]),Z(t,"hidebuttons","true"),Z(t,"errorcode",e[19])},m(r,i){P(r,t,i),n&&n.m(t,null)},p(r,i){r[19]===r[13].Maintenance?n?n.p(r,i):(n=gr(r),n.c(),n.m(t,null)):n&&(n.d(1),n=null),i[0]&32&&Z(t,"assetsurl",r[5]),i[0]&16&&Z(t,"translationurl",r[4]),i[0]&256&&Z(t,"clientstylingurl",r[8]),i[0]&128&&Z(t,"clientstyling",r[7]),i[0]&8&&Z(t,"lang",r[3]),i[0]&524288&&Z(t,"errorcode",r[19])},d(r){r&&H(t),n&&n.d()}}}function Pa(e){let t,n,r,i,o,s=e[24]("amount")+"",a,u,l,c,h,m,g,v=e[24]("status")+"",d,B,k,N=e[24](`${e[21]}`)+"",A,Y,q,I,z,me=e[24]("transactionId")+"",le,K,L,ye=e[15].referenceId+"",Se,S,_,b,y=e[24]("payemntMethod")+"",w,M,x,R,W,O,Q,te=e[24]("paymentTime")+"",ge,he,Ce,fe=Rt(e[15].time).format("MMM DD, YYYY, HH:mm:ss")+"",ne,pe,se,we,xe,Ke,Le,Qe,mt;function Je(E,U){if(E[21]==="success")return ka;if(E[21]==="pending")return Aa;if(E[21]==="failed"||E[21]==="rejected"||E[21]==="canceled")return Ba}let Ee=Je(e),ae=Ee&&Ee(e),oe=e[12].length>0&&br(e);function et(E,U){return E[15].type?La:Ia}let Oe=et(e),ve=Oe(e),ce=e[16].length&&vr(e);return{c(){t=T("div"),ae&&ae.c(),n=G(),r=T("div"),i=T("div"),o=T("p"),a=j(s),u=G(),l=T("span"),c=j(e[17]),h=G(),m=T("div"),g=T("p"),d=j(v),B=G(),k=T("span"),A=j(N),q=G(),I=T("div"),z=T("p"),le=j(me),K=G(),L=T("span"),Se=j(ye),S=G(),_=T("div"),b=T("p"),w=j(y),M=G(),x=T("span"),R=j(e[0]),W=G(),O=T("div"),Q=T("p"),ge=j(te),he=G(),Ce=T("span"),ne=j(fe),pe=G(),se=T("div"),oe&&oe.c(),we=G(),xe=T("button"),ve.c(),Ke=G(),ce&&ce.c(),Le=$t(),f(t,"class","ReceiptStatusWrapper"),f(i,"class","Amount"),f(m,"class",Y=`Status ${e[21]}`),f(L,"class","TxnIdText"),f(I,"class","TxnId"),f(_,"class","PaymentMethod"),f(O,"class","PaymentTime"),f(r,"class","ReceiptDetailsWrapper"),f(se,"class","ReceiptButtonsWrapper"),f(xe,"class","DefaultButton")},m(E,U){P(E,t,U),ae&&ae.m(t,null),P(E,n,U),P(E,r,U),C(r,i),C(i,o),C(o,a),C(i,u),C(i,l),C(l,c),C(r,h),C(r,m),C(m,g),C(g,d),C(m,B),C(m,k),C(k,A),C(r,q),C(r,I),C(I,z),C(z,le),C(I,K),C(I,L),C(L,Se),C(r,S),C(r,_),C(_,b),C(b,w),C(_,M),C(_,x),C(x,R),C(r,W),C(r,O),C(O,Q),C(Q,ge),C(O,he),C(O,Ce),C(Ce,ne),P(E,pe,U),P(E,se,U),oe&&oe.m(se,null),P(E,we,U),P(E,xe,U),ve.m(xe,null),P(E,Ke,U),ce&&ce.m(E,U),P(E,Le,U),Qe||(mt=[Fe(L,"click",e[45]),Fe(xe,"click",e[26])],Qe=!0)},p(E,U){Ee===(Ee=Je(E))&&ae?ae.p(E,U):(ae&&ae.d(1),ae=Ee&&Ee(E),ae&&(ae.c(),ae.m(t,null))),U[0]&16777216&&s!==(s=E[24]("amount")+"")&&F(a,s),U[0]&131072&&F(c,E[17]),U[0]&16777216&&v!==(v=E[24]("status")+"")&&F(d,v),U[0]&18874368&&N!==(N=E[24](`${E[21]}`)+"")&&F(A,N),U[0]&2097152&&Y!==(Y=`Status ${E[21]}`)&&f(m,"class",Y),U[0]&16777216&&me!==(me=E[24]("transactionId")+"")&&F(le,me),U[0]&32768&&ye!==(ye=E[15].referenceId+"")&&F(Se,ye),U[0]&16777216&&y!==(y=E[24]("payemntMethod")+"")&&F(w,y),U[0]&1&&F(R,E[0]),U[0]&16777216&&te!==(te=E[24]("paymentTime")+"")&&F(ge,te),U[0]&32768&&fe!==(fe=Rt(E[15].time).format("MMM DD, YYYY, HH:mm:ss")+"")&&F(ne,fe),E[12].length>0?oe?oe.p(E,U):(oe=br(E),oe.c(),oe.m(se,null)):oe&&(oe.d(1),oe=null),Oe===(Oe=et(E))&&ve?ve.p(E,U):(ve.d(1),ve=Oe(E),ve&&(ve.c(),ve.m(xe,null))),E[16].length?ce?ce.p(E,U):(ce=vr(E),ce.c(),ce.m(Le.parentNode,Le)):ce&&(ce.d(1),ce=null)},d(E){E&&(H(t),H(n),H(r),H(pe),H(se),H(we),H(xe),H(Ke),H(Le)),ae&&ae.d(),oe&&oe.d(),ve.d(),ce&&ce.d(E),Qe=!1,Ae(mt)}}}function gr(e){let t,n,r,i=e[24]("receipt.maintenance.title")+"",o,s,a,u=e[24]("receipt.maintenance.text")+"",l;return{c(){t=T("div"),t.innerHTML='<div class="ImagePlaceholder Maintenance"></div>',n=G(),r=T("span"),o=j(i),s=G(),a=T("span"),l=j(u),f(t,"slot","icon"),f(r,"slot","title"),f(r,"class","CashierErrorTitle"),f(a,"slot","text"),f(a,"class","CashierErrorText")},m(c,h){P(c,t,h),P(c,n,h),P(c,r,h),C(r,o),P(c,s,h),P(c,a,h),C(a,l)},p(c,h){h[0]&16777216&&i!==(i=c[24]("receipt.maintenance.title")+"")&&F(o,i),h[0]&16777216&&u!==(u=c[24]("receipt.maintenance.text")+"")&&F(l,u)},d(c){c&&(H(t),H(n),H(r),H(s),H(a))}}}function Ba(e){let t,n,r,i,o,s,a,u=e[24](`${e[15].type.toLowerCase()}.fail.title`)+"",l,c,h,m=e[24](`${e[15].type.toLowerCase()}.fail.text`)+"",g;return{c(){t=be("svg"),n=be("circle"),r=be("rect"),i=be("path"),o=G(),s=T("div"),a=T("h3"),l=j(u),c=G(),h=T("p"),g=j(m),f(n,"cx","36"),f(n,"cy","36"),f(n,"r","36"),f(n,"fill","#D14141"),f(n,"fill-opacity","0.12"),f(r,"x","19.335"),f(r,"y","19"),f(r,"width","33.33"),f(r,"height","33.33"),f(r,"rx","16.665"),f(r,"fill","#FF3636"),f(i,"d","M29.085 41.915L41.585 29.415M41.585 41.915L29.085 29.415"),f(i,"stroke","black"),f(i,"stroke-width","2.09016"),f(i,"stroke-linecap","round"),f(i,"stroke-linejoin","round"),f(t,"class","ReceiptStatusIcon failed"),f(t,"width","72"),f(t,"height","72"),f(t,"viewBox","0 0 72 72"),f(t,"fill","none"),f(t,"xmlns","http://www.w3.org/2000/svg"),f(s,"class","ReceiptStatusText")},m(v,d){P(v,t,d),C(t,n),C(t,r),C(t,i),P(v,o,d),P(v,s,d),C(s,a),C(a,l),C(s,c),C(s,h),C(h,g)},p(v,d){d[0]&16809984&&u!==(u=v[24](`${v[15].type.toLowerCase()}.fail.title`)+"")&&F(l,u),d[0]&16809984&&m!==(m=v[24](`${v[15].type.toLowerCase()}.fail.text`)+"")&&F(g,m)},d(v){v&&(H(t),H(o),H(s))}}}function Aa(e){let t,n,r,i,o,s,a,u,l,c=e[24](`${e[15].type.toLowerCase()}.pending.title`)+"",h,m,g,v=e[24](`${e[15].type.toLowerCase()}.pending.text`)+"",d,B,k,N=e[24]("refreshButton")+"",A,Y,q;return{c(){t=be("svg"),n=be("circle"),r=be("rect"),i=be("path"),o=be("path"),s=be("path"),a=G(),u=T("div"),l=T("h3"),h=j(c),m=G(),g=T("p"),d=j(v),B=G(),k=T("button"),A=j(N),f(n,"cx","36"),f(n,"cy","36"),f(n,"r","36"),f(n,"fill","#D19A41"),f(n,"fill-opacity","0.12"),f(r,"x","19"),f(r,"y","19"),f(r,"width","34"),f(r,"height","34"),f(r,"rx","17"),f(r,"fill","#FF6836"),f(i,"d","M36 46C30.4771 46 26 41.5228 26 36C26 30.4772 30.4772 26 36 26C40.4776 26 44.2257 28.9429 45.5 33H43"),f(i,"stroke","black"),f(i,"stroke-width","1.5"),f(i,"stroke-linecap","round"),f(i,"stroke-linejoin","round"),f(o,"d","M36 32V36L38 38"),f(o,"stroke","black"),f(o,"stroke-width","1.5"),f(o,"stroke-linecap","round"),f(o,"stroke-linejoin","round"),f(s,"d","M45.9551 37C45.9848 36.6709 46 36.3373 46 36M39 46C39.3416 45.8876 39.6753 45.7564 40 45.6078M44.7906 41C44.9835 40.6284 45.1555 40.2433 45.305 39.8462M42.1925 44.2292C42.5369 43.9441 42.8631 43.6358 43.1688 43.3065"),f(s,"stroke","black"),f(s,"stroke-width","1.5"),f(s,"stroke-linecap","round"),f(s,"stroke-linejoin","round"),f(t,"class","ReceiptStatusIcon pending"),f(t,"width","72"),f(t,"height","72"),f(t,"viewBox","0 0 72 72"),f(t,"fill","none"),f(t,"xmlns","http://www.w3.org/2000/svg"),f(u,"class","ReceiptStatusText"),f(k,"class","RefreshButton")},m(I,z){P(I,t,z),C(t,n),C(t,r),C(t,i),C(t,o),C(t,s),P(I,a,z),P(I,u,z),C(u,l),C(l,h),C(u,m),C(u,g),C(g,d),P(I,B,z),P(I,k,z),C(k,A),Y||(q=Fe(k,"click",e[27]),Y=!0)},p(I,z){z[0]&16809984&&c!==(c=I[24](`${I[15].type.toLowerCase()}.pending.title`)+"")&&F(h,c),z[0]&16809984&&v!==(v=I[24](`${I[15].type.toLowerCase()}.pending.text`)+"")&&F(d,v),z[0]&16777216&&N!==(N=I[24]("refreshButton")+"")&&F(A,N)},d(I){I&&(H(t),H(a),H(u),H(B),H(k)),Y=!1,q()}}}function ka(e){let t,n,r,i,o,s,a=e[24](`${e[15].type.toLowerCase()}.success.title`)+"",u,l,c,h=e[24](`${e[15].type.toLowerCase()}.success.text`)+"",m;return{c(){t=be("svg"),n=be("circle"),r=be("path"),i=G(),o=T("div"),s=T("h3"),u=j(a),l=G(),c=T("p"),m=j(h),f(n,"cx","36"),f(n,"cy","36"),f(n,"r","36"),f(n,"fill","#F9C408"),f(n,"fill-opacity","0.12"),f(r,"d","M36.5 19.3333C27.3167 19.3333 19.8333 26.8166 19.8333 36C19.8333 45.1833 27.3167 52.6666 36.5 52.6666C45.6833 52.6666 53.1667 45.1833 53.1667 36C53.1667 26.8166 45.6833 19.3333 36.5 19.3333ZM44.4667 32.1666L35.0167 41.6166C34.7833 41.85 34.4667 41.9833 34.1333 41.9833C33.8 41.9833 33.4833 41.85 33.25 41.6166L28.5333 36.9C28.05 36.4166 28.05 35.6166 28.5333 35.1333C29.0167 34.65 29.8167 34.65 30.3 35.1333L34.1333 38.9666L42.7 30.4C43.1833 29.9166 43.9833 29.9166 44.4667 30.4C44.95 30.8833 44.95 31.6666 44.4667 32.1666Z"),f(r,"fill","#F9C408"),f(t,"class","ReceiptStatusIcon success"),f(t,"width","72"),f(t,"height","72"),f(t,"viewBox","0 0 72 72"),f(t,"fill","none"),f(t,"xmlns","http://www.w3.org/2000/svg"),f(o,"class","ReceiptStatusText")},m(g,v){P(g,t,v),C(t,n),C(t,r),P(g,i,v),P(g,o,v),C(o,s),C(s,u),C(o,l),C(o,c),C(c,m)},p(g,v){v[0]&16809984&&a!==(a=g[24](`${g[15].type.toLowerCase()}.success.title`)+"")&&F(u,a),v[0]&16809984&&h!==(h=g[24](`${g[15].type.toLowerCase()}.success.text`)+"")&&F(m,h)},d(g){g&&(H(t),H(i),H(o))}}}function br(e){let t,n=kt(e[12]),r=[];for(let i=0;i<n.length;i+=1)r[i]=yr(pr(e,n,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();t=$t()},m(i,o){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(i,o);P(i,t,o)},p(i,o){if(o[0]&285216768){n=kt(i[12]);let s;for(s=0;s<n.length;s+=1){const a=pr(i,n,s);r[s]?r[s].p(a,o):(r[s]=yr(a),r[s].c(),r[s].m(t.parentNode,t))}for(;s<r.length;s+=1)r[s].d(1);r.length=n.length}},d(i){i&&H(t),Ar(r,i)}}}function yr(e){var m;let t,n,r=((m=hr[`${e[75].type}`])!=null?m:"")+"",i,o=e[24](`${e[75].translationKey}`)+"",s,a,u,l,c;function h(){return e[46](e[75])}return{c(){t=T("button"),n=T("div"),i=G(),s=j(o),a=G(),f(n,"class","CustomButtonSvg"),f(t,"class",u=`${e[75].type} GoToButton`)},m(g,v){P(g,t,v),C(t,n),n.innerHTML=r,C(t,i),C(t,s),C(t,a),l||(c=Fe(t,"click",h),l=!0)},p(g,v){var d;e=g,v[0]&4096&&r!==(r=((d=hr[`${e[75].type}`])!=null?d:"")+"")&&(n.innerHTML=r),v[0]&16781312&&o!==(o=e[24](`${e[75].translationKey}`)+"")&&F(s,o),v[0]&4096&&u!==(u=`${e[75].type} GoToButton`)&&f(t,"class",u)},d(g){g&&H(t),l=!1,c()}}}function Ia(e){let t=e[24]("backHome")+"",n;return{c(){n=j(t)},m(r,i){P(r,n,i)},p(r,i){i[0]&16777216&&t!==(t=r[24]("backHome")+"")&&F(n,t)},d(r){r&&H(n)}}}function La(e){let t=e[24](`back${e[15].type}`)+"",n;return{c(){n=j(t)},m(r,i){P(r,n,i)},p(r,i){i[0]&16809984&&t!==(t=r[24](`back${r[15].type}`)+"")&&F(n,t)},d(r){r&&H(n)}}}function vr(e){let t,n=kt(e[16]),r=[];for(let i=0;i<n.length;i+=1)r[i]=Cr(fr(e,n,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();t=$t()},m(i,o){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(i,o);P(i,t,o)},p(i,o){if(o[0]&537214976){n=kt(i[16]);let s;for(s=0;s<n.length;s+=1){const a=fr(i,n,s);r[s]?r[s].p(a,o):(r[s]=Cr(a),r[s].c(),r[s].m(t.parentNode,t))}for(;s<r.length;s+=1)r[s].d(1);r.length=n.length}},d(i){i&&H(t),Ar(r,i)}}}function Oa(e){let t,n=e[72].defaultValue+"",r;return{c(){t=T("span"),r=j(n),f(t,"class","Label")},m(i,o){P(i,t,o),C(t,r)},p(i,o){o[0]&65536&&n!==(n=i[72].defaultValue+"")&&F(r,n)},d(i){i&&H(t)}}}function Da(e){return{c:ie,m:ie,p:ie,d:ie}}function Ra(e){let t,n=e[72].description+"",r,i,o,s=e[72].name+"",a,u;return{c(){t=T("span"),r=j(n),i=G(),o=T("a"),a=j(s),f(o,"href",u=e[72].defaultValue),f(o,"target","_blank"),f(o,"rel","noopener noreferrer")},m(l,c){P(l,t,c),C(t,r),C(t,i),C(t,o),C(o,a)},p(l,c){c[0]&65536&&n!==(n=l[72].description+"")&&F(r,n),c[0]&65536&&s!==(s=l[72].name+"")&&F(a,s),c[0]&65536&&u!==(u=l[72].defaultValue)&&f(o,"href",u)},d(l){l&&H(t)}}}function $a(e){let t,n,r;return{c(){t=T("img"),en(t.src,n=e[72].defaultValue)||f(t,"src",n),f(t,"title",r=e[72].description),f(t,"alt","")},m(i,o){P(i,t,o)},p(i,o){o[0]&65536&&!en(t.src,n=i[72].defaultValue)&&f(t,"src",n),o[0]&65536&&r!==(r=i[72].description)&&f(t,"title",r)},d(i){i&&H(t)}}}function Na(e){let t,n=e[72].defaultValue+"";return{c(){t=T("span")},m(r,i){P(r,t,i),t.innerHTML=n},p(r,i){i[0]&65536&&n!==(n=r[72].defaultValue+"")&&(t.innerHTML=n)},d(r){r&&H(t)}}}function Ua(e){let t,n,r=e[72].defaultValue+"",i,o,s;function a(){return e[48](e[72])}return{c(){t=T("div"),n=T("div"),i=j(r),f(t,"class","QRCode")},m(u,l){P(u,t,l),C(t,n),C(n,i),e[47](n),o||(s=Fe(t,"click",a),o=!0)},p(u,l){e=u,l[0]&65536&&r!==(r=e[72].defaultValue+"")&&F(i,r)},d(u){u&&H(t),e[47](null),o=!1,s()}}}function Cr(e){let t,n;function r(s,a){return s[72].type===s[14].QRCode?Ua:s[72].type===s[14].Html?Na:s[72].type===s[14].Image?$a:s[72].type===s[14].Link?Ra:s[72].type===s[14].Hidden?Da:Oa}let i=r(e),o=i(e);return{c(){t=T("div"),o.c(),n=G(),f(t,"class","ReceiptField")},m(s,a){P(s,t,a),o.m(t,null),C(t,n)},p(s,a){i===(i=r(s))&&o?o.p(s,a):(o.d(1),o=i(s),o&&(o.c(),o.m(t,n)))},d(s){s&&H(t),o.d()}}}function ja(e){let t;function n(o,s){return o[11]?Ha:Ea}let r=n(e),i=r(e);return{c(){t=T("div"),i.c(),f(t,"class","CashierReceiptPageWidget")},m(o,s){P(o,t,s),i.m(t,null),e[49](t)},p(o,s){r===(r=n(o))&&i?i.p(o,s):(i.d(1),i=r(o),i&&(i.c(),i.m(t,null)))},i:ie,o:ie,d(o){o&&H(t),i.d(),e[49](null)}}}let Ga="_blank";function Fa(e,t,n){let r;xr(e,bi,p=>n(24,r=p)),Rt.extend(sa);let{endpoint:i}=t,{session:o}=t,{lang:s="en"}=t,{local:a="en-US"}=t,{showerrors:u="true"}=t,{translationurl:l}=t,{assetsurl:c=""}=t,{customerid:h}=t,{transactionid:m}=t,{currencydecimals:g="0"}=t,{type:v}=t,{clientstyling:d=""}=t,{clientstylingurl:B=""}=t,{mbsource:k=""}=t,{showverifications:N="true"}=t,{paymentmethod:A=""}=t,Y=!1,q,{customsucceessbuttons:I=""}=t,{custompendingbuttons:z=""}=t,{customfailedbuttons:me=""}=t,{currencysymbol:le=""}=t,{currencyposition:K=""}=t,{userroles:L=""}=t,{windowsize:ye}=t,{p2p:Se="false"}=t,S=[],_=[];var b;(function(p){p.Success="Success",p.Maintenance="Maintenance"})(b||(b={}));var y;(function(p){p.Unknown="Unknown",p.Text="Text",p.Boolean="Boolean",p.Number="Number",p.Money="Money",p.DateTime="DateTime",p.Lookup="Lookup",p.IpAddress="IpAddress",p.Date="Date",p.Time="Time",p.LookupCollection="LookupCollection",p.Hidden="Hidden",p.Label="Label",p.Password="Password",p.Link="Link",p.Image="Image",p.Html="Html",p.QRCode="QR"})(y||(y={}));const w=(p,[re,_e])=>[...p,...Array.isArray(re)?[...re.map(X=>[X,_e])]:[[re,_e]]],M=new Map([[["Unknown",0],y.Unknown],[["Text",1],y.Text],[["Boolean",2],y.Boolean],[["Number",3],y.Number],[["Money",4],y.Money],[["DateTime",5],y.DateTime],[["Lookup",6],y.Lookup],[["IpAddress",7],y.IpAddress],[["Date",8],y.Date],[["Time",9],y.Time],[["LookupCollection",10],y.LookupCollection],[["Hidden",11],y.Hidden],[["Label",12],y.Label],[["Password",13],y.Password],[["Link",14],y.Link],[["Image",15],y.Image],[["Html",19],y.Html],[["QR",20],y.QRCode]].reduce(w,[]));let x,R=[],W,O,Q=[],te,ge,he="",Ce=window.navigator.userAgent,fe=!1,ne=!1;const pe={promotions:{event:"Cashier:goToPromotions",translationKey:"goToPromotions",type:"PromotionsButton"},tournaments:{event:"Cashier:goToTournaments",translationKey:"goToTournaments",type:"TournamentsButton"},support:{event:"Cashier:goToContact",translationKey:"goToSupport",type:"SupportButton"},merchanthomepage:{event:"Cashier:goToVendorWebsite",translationKey:"goToMerchantHomePage",type:"MerchantHomePageButton"},sports:{event:"Cashier:goToSports",translationKey:"goToSports",type:"SportsButton"},casino:{event:"Cashier:goToCasino",translationKey:"goToCasino",type:"CasinoButton"},livecasino:{event:"Cashier:goToLiveCasino",translationKey:"goToLiveCasino",type:"LiveCasinoButton"},externallink:{event:"Cashier:externalRedirect",translationKey:"externalLink",type:"ExternalLinkButton"},documentupload:{event:"Cashier:uploadDocuments",translationKey:"uploadDocuments",type:"UploadDocumentButton"},home:{event:"Cashier:goToHome",translationKey:"goToHomepage",type:"HomeButton"},close:{event:"CloseCashierReceiptPage",translationKey:"close",type:"CloseButton"}},se=p=>{n(12,S=[]),p.split(",").forEach(_e=>{pe[_e.trim()]&&S.push(pe[_e.trim()])})},we=()=>{Qs(s)};Ir(()=>(window.addEventListener("message",xe,!1),_a(a,le,K,g),()=>{window.removeEventListener("message",xe)}));const xe=p=>{var re;switch(p.data.type){case"CloseReceiptInSecondTab":(re=window.opener)==null||re.postMessage(p.data);break}},Ke=()=>{let p=l;if(p)return fetch(p).then(re=>re.json()).then(re=>{Object.keys(re).forEach(_e=>{tr(_e,re[_e])})}).catch(()=>{})};Object.keys(nr).forEach(p=>{tr(p,nr[p])});const Le=()=>{window.postMessage({type:"CloseCashierReceiptPage"},window.location.href)},Qe=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:te,showErrorOutsideReceiptPage:ge},window.location.href)},mt=()=>{ne||(ne=!0,_t("cashier_receipt_refresh",{transactionType:x.type})),Je()},Je=()=>{const p=new URL(`${i}/v1/player/${h}/payment/GetPaymentInfo`),re=new Headers;re.append("accept","application/json"),re.append("Content-Type","application/json"),re.append("X-SessionId",`${o}`),re.append("X-Client-Request-Timestamp",Rt.utc().format("YYYY-MM-DD HH:mm:ss.SSS")),_.indexOf("MM_CHANNEL_BETA")!=-1&&re.append("MM_CHANNEL","BETA");const _e={method:"POST",headers:re,body:JSON.stringify({TransactionCode:m})};n(11,Y=!0),fetch(p,_e).then(X=>X.json()).then(X=>{var gt,En,Hn,Mn,Pn,Bn,An,kn,In,Ln,On;if(X.ResponseCode!==b.Success){n(19,te=X.ResponseCode),n(20,ge=u.toLowerCase()==="false"||!u),Qe();return}switch(n(15,x={type:X.Transaction.Type,referenceId:X.Transaction.Code,status:(gt=X.Transaction.Status)==null?void 0:gt.Status,message:(En=X.Transaction.Status)==null?void 0:En.Message,amount:(Hn=X.Transaction.Amounts[0])==null?void 0:Hn.Amount,currency:(Mn=X.Transaction.Amounts[0])==null?void 0:Mn.Currency,time:X.Transaction.Status.Created}),n(16,R=X.ReceiptInfo&&X.ReceiptInfo.ReceiptFields?X.ReceiptInfo.ReceiptFields.map(Me=>({type:M.get(Me.Type),name:Me.Name,description:Me.Description,defaultValue:Me.DefaultValue,useCopyButton:Me.UseCopyButton,usePrintButton:Me.UsePrintButton})):[]),X.ReceiptInfo&&X.ReceiptInfo.ReceiptFields&&!A&&n(0,A=R[0].defaultValue),r(ea(x.status,x.type),{values:{errorText:x.message}}),n(17,W=wa(Number(x.amount),x.currency)),_t("cashier_submit",{transactionType:x.type,method:A,transactionStatus:x.status}),x.status){case"Voided":case"Success":if(se(I||"casino, livecasino, tournaments"),n(21,he="success"),x.type==="Deposit"){const Me=(Bn=(Pn=X.Transaction)==null?void 0:Pn.Flags)==null?void 0:Bn.NewDepositCustomer,De=(An=X==null?void 0:X.Transaction)==null?void 0:An.Payloads;window.postMessage({type:Me==="True"?"FirstDeposit":"ConfirmedDeposit",method:A,amount:x.amount,currency:x.currency,depositType:(kn=De==null?void 0:De.TagManagerDepositType)!=null?kn:"",publicPaymentId:(In=De==null?void 0:De.TagManagerCode)!=null?In:""},window.location.href)}_t(x.type==="Deposit"?"deposit_success":"withdrawal_success",{userID:h,amount:x.amount,currency:x.currency,transactionId:x.referenceId,method:A,isFirstDeposit:((On=(Ln=X.Transaction)==null?void 0:Ln.Flags)==null?void 0:On.NewDepositCustomer)==="True"});break;case"PendingNotification":case"PendingConfirmation":case"PendingApprovalStage1":case"PendingApprovalStage2":case"PendingApprovalStage3":case"PendingOfflineNotification":se(z||"casino, livecasino, tournaments"),n(21,he="pending");break;case"Rejected":case"Cancelled":case"Failed":se(me||"casino, livecasino, tournaments"),n(21,he=x.status.toLowerCase()),_t(x.type==="Deposit"?"deposit_failed":"withdrawal_failed",{userID:h,amount:x.amount,currency:x.currency,failureReason:x.message}),N==="true"&&n(22,fe=!0);break;default:se("close")}c?Js(c,x.status):ta(x.status)}).finally(()=>n(11,Y=!1))},Ee=p=>{window.postMessage({type:p},window.location.href)},ae=p=>{p&&window.postMessage({type:"NavigateTo",path:p,target:Ga,externalLink:!1},window.location.href)};let oe,et;const Oe=(p,re=!0)=>Wt(this,null,function*(){const X=p.currentTarget.innerHTML;if(X&&navigator.clipboard&&navigator.clipboard.writeText)try{yield navigator.clipboard.writeText(X),re&&(n(23,oe=!0),clearTimeout(et),et=setTimeout(()=>{n(23,oe=!1)},2e3))}catch(gt){console.error("Clipboard API failed:",gt)}}),ve=()=>{L.length>0&&(_=L.split(","))},ce=p=>Oe(p),E=p=>Ee(p.event);function U(p){ut[p?"unshift":"push"](()=>{Q[Q.length]=p,n(18,Q)})}const ki=p=>{ae(p.description)};function Ii(p){ut[p?"unshift":"push"](()=>{O=p,n(10,O)})}return e.$$set=p=>{"endpoint"in p&&n(1,i=p.endpoint),"session"in p&&n(2,o=p.session),"lang"in p&&n(3,s=p.lang),"local"in p&&n(31,a=p.local),"showerrors"in p&&n(32,u=p.showerrors),"translationurl"in p&&n(4,l=p.translationurl),"assetsurl"in p&&n(5,c=p.assetsurl),"customerid"in p&&n(6,h=p.customerid),"transactionid"in p&&n(33,m=p.transactionid),"currencydecimals"in p&&n(34,g=p.currencydecimals),"type"in p&&n(35,v=p.type),"clientstyling"in p&&n(7,d=p.clientstyling),"clientstylingurl"in p&&n(8,B=p.clientstylingurl),"mbsource"in p&&n(36,k=p.mbsource),"showverifications"in p&&n(9,N=p.showverifications),"paymentmethod"in p&&n(0,A=p.paymentmethod),"customsucceessbuttons"in p&&n(37,I=p.customsucceessbuttons),"custompendingbuttons"in p&&n(38,z=p.custompendingbuttons),"customfailedbuttons"in p&&n(39,me=p.customfailedbuttons),"currencysymbol"in p&&n(40,le=p.currencysymbol),"currencyposition"in p&&n(41,K=p.currencyposition),"userroles"in p&&n(42,L=p.userroles),"windowsize"in p&&n(43,ye=p.windowsize),"p2p"in p&&n(44,Se=p.p2p)},e.$$.update=()=>{e.$$.dirty[1]&2048&&L&&ve(),e.$$.dirty[0]&70|e.$$.dirty[1]&6&&i&&o&&h&&m&&u&&Je(),e.$$.dirty[0]&8&&s&&we(),e.$$.dirty[0]&24&&s&&l&&Ke(),e.$$.dirty[0]&1152&&d&&O&&Mi(O,d),e.$$.dirty[0]&1280&&B&&O&&Pi(O,B),e.$$.dirty[0]&1024|e.$$.dirty[1]&32&&k&&O&&Bi(O,`${k}.Style`,q)},[A,i,o,s,l,c,h,d,B,N,O,Y,S,b,y,x,R,W,Q,te,ge,he,fe,oe,r,Ce,Le,mt,Ee,ae,Oe,a,u,m,g,v,k,I,z,me,le,K,L,ye,Se,ce,E,U,ki,Ii]}class Ai extends zr{constructor(t){super(),jr(this,t,Fa,ja,vn,{endpoint:1,session:2,lang:3,local:31,showerrors:32,translationurl:4,assetsurl:5,customerid:6,transactionid:33,currencydecimals:34,type:35,clientstyling:7,clientstylingurl:8,mbsource:36,showverifications:9,paymentmethod:0,customsucceessbuttons:37,custompendingbuttons:38,customfailedbuttons:39,currencysymbol:40,currencyposition:41,userroles:42,windowsize:43,p2p:44},Sa,[-1,-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$$set({endpoint:t}),V()}get session(){return this.$$.ctx[2]}set session(t){this.$$set({session:t}),V()}get lang(){return this.$$.ctx[3]}set lang(t){this.$$set({lang:t}),V()}get local(){return this.$$.ctx[31]}set local(t){this.$$set({local:t}),V()}get showerrors(){return this.$$.ctx[32]}set showerrors(t){this.$$set({showerrors:t}),V()}get translationurl(){return this.$$.ctx[4]}set translationurl(t){this.$$set({translationurl:t}),V()}get assetsurl(){return this.$$.ctx[5]}set assetsurl(t){this.$$set({assetsurl:t}),V()}get customerid(){return this.$$.ctx[6]}set customerid(t){this.$$set({customerid:t}),V()}get transactionid(){return this.$$.ctx[33]}set transactionid(t){this.$$set({transactionid:t}),V()}get currencydecimals(){return this.$$.ctx[34]}set currencydecimals(t){this.$$set({currencydecimals:t}),V()}get type(){return this.$$.ctx[35]}set type(t){this.$$set({type:t}),V()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(t){this.$$set({clientstyling:t}),V()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),V()}get mbsource(){return this.$$.ctx[36]}set mbsource(t){this.$$set({mbsource:t}),V()}get showverifications(){return this.$$.ctx[9]}set showverifications(t){this.$$set({showverifications:t}),V()}get paymentmethod(){return this.$$.ctx[0]}set paymentmethod(t){this.$$set({paymentmethod:t}),V()}get customsucceessbuttons(){return this.$$.ctx[37]}set customsucceessbuttons(t){this.$$set({customsucceessbuttons:t}),V()}get custompendingbuttons(){return this.$$.ctx[38]}set custompendingbuttons(t){this.$$set({custompendingbuttons:t}),V()}get customfailedbuttons(){return this.$$.ctx[39]}set customfailedbuttons(t){this.$$set({customfailedbuttons:t}),V()}get currencysymbol(){return this.$$.ctx[40]}set currencysymbol(t){this.$$set({currencysymbol:t}),V()}get currencyposition(){return this.$$.ctx[41]}set currencyposition(t){this.$$set({currencyposition:t}),V()}get userroles(){return this.$$.ctx[42]}set userroles(t){this.$$set({userroles:t}),V()}get windowsize(){return this.$$.ctx[43]}set windowsize(t){this.$$set({windowsize:t}),V()}get p2p(){return this.$$.ctx[44]}set p2p(t){this.$$set({p2p:t}),V()}}Fr(Ai,{endpoint:{},session:{},lang:{},local:{},showerrors:{},translationurl:{},assetsurl:{},customerid:{},transactionid:{},currencydecimals:{},type:{},clientstyling:{},clientstylingurl:{},mbsource:{},showverifications:{},paymentmethod:{},customsucceessbuttons:{},custompendingbuttons:{},customfailedbuttons:{},currencysymbol:{},currencyposition:{},userroles:{},windowsize:{},p2p:{}},[],[],!0);const za=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"}));exports.$format=bi;exports.$locale=Ie;exports.CashierReceiptPage_ce=za;exports.HtmlTag=Yi;exports.SvelteComponent=zr;exports.addMessages=Tn;exports.append=C;exports.append_styles=Pr;exports.attr=f;exports.binding_callbacks=ut;exports.check_outros=Dr;exports.component_subscribe=xr;exports.create_component=so;exports.create_custom_element=Fr;exports.create_slot=ji;exports.destroy_component=Ur;exports.detach=H;exports.element=T;exports.empty=$t;exports.flush=V;exports.get_all_dirty_from_scope=zi;exports.get_slot_changes=Gi;exports.group_outros=Or;exports.init=jr;exports.init$1=di;exports.insert=P;exports.listen=Fe;exports.mount_component=Nr;exports.noop=ie;exports.onMount=Ir;exports.safe_not_equal=vn;exports.setClientStyling=Mi;exports.setClientStylingURL=Pi;exports.setStreamStyling=Bi;exports.set_data=F;exports.space=G;exports.src_url_equal=en;exports.text=j;exports.transition_in=At;exports.transition_out=Rr;exports.update_slot_base=Fi;
51
+ `};if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CashierError-5V9R4BfK.cjs")).then(({default:t})=>{!customElements.get("cashier-error")&&customElements.define("cashier-error",t.element)})}function Sa(e){Pr(e,"svelte-nkabfs",'.LoadingOverlay{width:100%;height:100%;display:flex;position:relative;top:0;left:0;justify-content:center;align-items:center;z-index:100;background:transparent}.CopyTooltip{transform:translateX(-50%);color:var(--emw--color-typography, #fff);opacity:1;container-name:copy-tooltip;font-size:var(--emw--font-size-medium, 16px);line-height:calc(var(--emw--font-size-medium, 16px) + 2px);padding:15px;position:fixed;left:50%;top:40%;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:#12191f;max-width:600px;z-index:3;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3)}.CopyTooltip::before{content:"";position:absolute;inset:0;opacity:0.2;z-index:-1;pointer-events:none;border-radius:10px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-black, #12191f) 65%)}.Spinner{width:40px;height:40px;border:4px solid #e0e0e0;border-top:4px solid var(--emw--color-primary, #f9c405);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.CashierReceiptPageWidget{position:relative}.CashierReceiptPage{border-radius:var(--emw--border-radius-medium-plus, 6px);background-color:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));padding:0 0 var(--emw--spacing-small-minus, 10px) 0;margin:0 auto;position:relative;word-wrap:break-word;display:flex;flex-direction:column;justify-content:space-between;height:100%}.ReceiptWrapper{width:100%;height:200px;border-bottom:1px solid var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.1));display:flex;align-items:flex-end;flex-direction:row-reverse;position:relative}.ReceiptWrapper .ImagePlaceholder{height:100%;width:100%;background:#e6e6e6}.ReceiptWrapper .ImagePlaceholder.success{background:#e6e6e6}.ReceiptWrapper .ImagePlaceholder.fail{background:#e6e6e6}.ReceiptWrapper .ImagePlaceholder.pending{background:#e6e6e6}.ReceiptWrapper .ImagePlaceholder.cancel{background:#e6e6e6}.ReceiptWrapper .ImagePlaceholder.rejected{background:#e6e6e6}.ReceiptStatusWrapper{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:30px 30px 0;gap:10px}.ReceiptStatusWrapper .ReceiptStatusIcon.success svg,.ReceiptStatusWrapper .ReceiptStatusIcon.success circle,.ReceiptStatusWrapper .ReceiptStatusIcon.success path{fill:var(--emw--color-valid, #41d195)}.ReceiptStatusWrapper .ReceiptStatusIcon.pending svg,.ReceiptStatusWrapper .ReceiptStatusIcon.pending circle,.ReceiptStatusWrapper .ReceiptStatusIcon.pending path{fill:var(--emw--color-pending, #ff6836)}.ReceiptStatusWrapper .ReceiptStatusIcon.failed svg,.ReceiptStatusWrapper .ReceiptStatusIcon.failed circle,.ReceiptStatusWrapper .ReceiptStatusIcon.failed path{fill:var(--emw--color-error, #ff3636)}.ReceiptStatusWrapper .ReceiptStatusText{text-align:center}.ReceiptStatusWrapper .ReceiptStatusText h3,.ReceiptStatusWrapper .ReceiptStatusText p{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));padding:0;margin:10px}.ReceiptStatusWrapper .ReceiptStatusText p{font-size:14px;font-weight:200}.ReceiptStatusWrapper .TryAgainBtn,.ReceiptStatusWrapper .RefreshButton{border-radius:20px;padding:7px 20px;border:none;box-shadow:inset 0px 0px 0px 2px rgba(255, 226, 123, 0.3);color:var(--emw--color-white, #ffffff);background-color:rgba(249, 196, 8, 0.3019607843)}.ReceiptDetailsWrapper{position:relative;display:flex;flex-direction:column;border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);padding:20px;margin:10px;z-index:1}.ReceiptDetailsWrapper::before{content:"";position:absolute;inset:0;opacity:0.3;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%)}.ReceiptDetailsWrapper .TxnId{cursor:pointer}.ReceiptDetailsWrapper .TxnId .TxnIdText{overflow:hidden;text-overflow:ellipsis;display:inline-block;white-space:nowrap}.ReceiptDetailsWrapper .Amount,.ReceiptDetailsWrapper .Status,.ReceiptDetailsWrapper .TxnId,.ReceiptDetailsWrapper .PaymentMethod,.ReceiptDetailsWrapper .PaymentTime{display:flex;justify-content:space-between;align-items:center;color:var(--emw--color-typography, var(--emw--color-white, #ffffff))}.ReceiptDetailsWrapper .Amount p,.ReceiptDetailsWrapper .Status p,.ReceiptDetailsWrapper .TxnId p,.ReceiptDetailsWrapper .PaymentMethod p,.ReceiptDetailsWrapper .PaymentTime p{font-weight:200;font-size:12px;margin-right:5px;width:auto}.ReceiptDetailsWrapper .Amount span,.ReceiptDetailsWrapper .Status span,.ReceiptDetailsWrapper .TxnId span,.ReceiptDetailsWrapper .PaymentMethod span,.ReceiptDetailsWrapper .PaymentTime span{font-size:12px;word-break:break-all;font-weight:500;max-width:70%;text-align:right}.ReceiptDetailsWrapper .Status{border-bottom:1px solid rgba(255, 255, 255, 0.276);padding-bottom:10px}.ReceiptDetailsWrapper .Status span{padding:10px;font-size:var(--emw--font-size-small, 12px);border-radius:16px}.ReceiptDetailsWrapper .Status.success span{background-color:rgba(65, 209, 149, 0.1215686275);color:var(--emw--color-valid, #41d195)}.ReceiptDetailsWrapper .Status.pending span{background-color:rgba(255, 104, 54, 0.1215686275);color:var(--emw--color-pending, #ff6836)}.ReceiptDetailsWrapper .Status.failed span{background-color:rgba(209, 65, 65, 0.1215686275);color:var(--emw--color-error, #ff3636)}.ReceiptDetailsWrapper .Status.rejected span{background-color:rgba(209, 65, 65, 0.1215686275);color:var(--emw--color-error, #ff3636)}.ReceiptDetailsWrapper .TxnId{margin-top:15px}.TitleWrapper{display:flex;position:absolute;left:0;bottom:11px;flex-direction:column;justify-content:flex-end;flex-shrink:0}.Title{color:var(--emw--color-gray-10, #111);font-size:var(--emw--font-size-x-large-plus, 26px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;line-height:var(--emw--font-size-x-large-plus, 26px)}.SubTitle{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-medium, 16px);color:var(--emw--color-gray-290, #666);margin-top:var(--emw--spacing-small, 12px)}.Text{padding:var(--emw--spacing-small, 12px) 0;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--color-gray-10, #111)}.CashierErrorText{color:var(--emw--color-gray-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:130%;text-align:center}.CashierErrorTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);line-height:125%;text-align:center}.Reference{color:var(--emw--color-gray-290, #666);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-normal, 400);margin:0}.ReceiptButtonsWrapper{display:grid;grid-template-columns:1fr 1fr 1fr;height:75px;gap:8px;margin:0 10px}.ReceiptButtonsWrapper .GoToButton{cursor:pointer;border-radius:8px;border:none;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-gey-600, rgba(237, 237, 237, 0.0784313725));color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:12px;transition:all 0.3s ease}.ReceiptButtonsWrapper .GoToButton:hover,.ReceiptButtonsWrapper .GoToButton:active{transform:scale(1.05)}.DefaultButton{text-transform:uppercase;font-weight:var(--emw--font-weight-semibold, 600);color:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));border:none;background:var(--emw--color-primary, #f9c408);cursor:pointer;display:flex;align-items:center;justify-content:center;gap:5px;border-radius:var(--emw--border-radius-medium, 12px);min-height:44px;font-size:var(--emw--font-size-medium, 16px);font-family:inherit;margin:20px 10px;width:calc(100% - 20px);transition:background 0.3s ease}.DefaultButton:hover{box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background:var(--emw--color-hover, #dbac03)}.DefaultButton:active{box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background:var(--emw--color-active, #fecd1c)}.HeaderButtonContainer{position:absolute;z-index:1;right:0;top:0;display:flex;align-items:baseline;gap:var(--emw--spacing-small, 12px);padding:var(--emw--spacing-small, 12px) 0}.HeaderButtonContainer>span{cursor:pointer}.ReceiptField{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-medium, 16px);line-height:var(--emw--font-size-medium, 16px);color:var(--emw--color-gray-150, #666);margin:var(--emw--spacing-small, 12px)}@media(min-width: 750px){.CashierReceiptPage{background-color:transparent}.CashierReceiptPageWidget{position:absolute;width:calc(100% - 20px)}}.CustomButtonSvg svg{width:32px;height:32px;fill:var(--emw--color-primary)}')}function fr(e,t,n){const r=e.slice();return r[72]=t[n],r[74]=n,r}function pr(e,t,n){const r=e.slice();return r[75]=t[n],r}function Ea(e){let t,n,r=cr(e[25])&&e[9]&&e[22],i,o=e[23]&&dr(e),s=r&&mr(e);function a(c,h){if(c[15])return Pa;if(c[19]&&!c[20])return Ma}let u=a(e),l=u&&u(e);return{c(){o&&o.c(),t=G(),n=T("div"),s&&s.c(),i=G(),l&&l.c(),f(n,"class","CashierReceiptPage")},m(c,h){o&&o.m(c,h),P(c,t,h),P(c,n,h),s&&s.m(n,null),C(n,i),l&&l.m(n,null)},p(c,h){c[23]?o?(o.p(c,h),h[0]&8388608&&At(o,1)):(o=dr(c),o.c(),At(o,1),o.m(t.parentNode,t)):o&&(Or(),Rr(o,1,1,()=>{o=null}),Dr()),h[0]&4194816&&(r=cr(c[25])&&c[9]&&c[22]),r?s?s.p(c,h):(s=mr(c),s.c(),s.m(n,i)):s&&(s.d(1),s=null),u===(u=a(c))&&l?l.p(c,h):(l&&l.d(1),l=u&&u(c),l&&(l.c(),l.m(n,null)))},d(c){c&&(H(t),H(n)),o&&o.d(c),s&&s.d(),l&&l.d()}}}function Ha(e){let t;return{c(){t=T("div"),t.innerHTML='<div class="Spinner"></div>',f(t,"class","LoadingOverlay")},m(n,r){P(n,t,r)},p:ie,d(n){n&&H(t)}}}function dr(e){let t,n=e[24]("copyTransactionId")+"",r,i,o,s;return{c(){t=T("div"),r=j(n),f(t,"class","CopyTooltip")},m(a,u){P(a,t,u),C(t,r),s=!0},p(a,u){(!s||u[0]&16777216)&&n!==(n=a[24]("copyTransactionId")+"")&&F(r,n)},i(a){s||(a&&ze(()=>{s&&(o&&o.end(1),i=io(t,Un,{duration:100}),i.start())}),s=!0)},o(a){i&&i.invalidate(),a&&(o=oo(t,Un,{duration:1e3})),s=!1},d(a){a&&H(t),a&&o&&o.end()}}}function mr(e){let t;return{c(){t=T("cashier-verifications"),Z(t,"lang",e[3]),Z(t,"translationurl",e[4]),Z(t,"endpoint",e[1]),Z(t,"clientstylingurl",e[8]),Z(t,"clientstyling",e[7]),Z(t,"customerid",e[6]),Z(t,"playersession",e[2])},m(n,r){P(n,t,r)},p(n,r){r[0]&8&&Z(t,"lang",n[3]),r[0]&16&&Z(t,"translationurl",n[4]),r[0]&2&&Z(t,"endpoint",n[1]),r[0]&256&&Z(t,"clientstylingurl",n[8]),r[0]&128&&Z(t,"clientstyling",n[7]),r[0]&64&&Z(t,"customerid",n[6]),r[0]&4&&Z(t,"playersession",n[2])},d(n){n&&H(t)}}}function Ma(e){let t,n=e[19]===e[13].Maintenance&&gr(e);return{c(){t=T("cashier-error"),n&&n.c(),Z(t,"assetsurl",e[5]),Z(t,"translationurl",e[4]),Z(t,"clientstylingurl",e[8]),Z(t,"clientstyling",e[7]),Z(t,"lang",e[3]),Z(t,"hidebuttons","true"),Z(t,"errorcode",e[19])},m(r,i){P(r,t,i),n&&n.m(t,null)},p(r,i){r[19]===r[13].Maintenance?n?n.p(r,i):(n=gr(r),n.c(),n.m(t,null)):n&&(n.d(1),n=null),i[0]&32&&Z(t,"assetsurl",r[5]),i[0]&16&&Z(t,"translationurl",r[4]),i[0]&256&&Z(t,"clientstylingurl",r[8]),i[0]&128&&Z(t,"clientstyling",r[7]),i[0]&8&&Z(t,"lang",r[3]),i[0]&524288&&Z(t,"errorcode",r[19])},d(r){r&&H(t),n&&n.d()}}}function Pa(e){let t,n,r,i,o,s=e[24]("amount")+"",a,u,l,c,h,m,g,v=e[24]("status")+"",d,B,k,N=e[24](`${e[21]}`)+"",A,Y,q,I,z,me=e[24]("transactionId")+"",le,K,L,ye=e[15].referenceId+"",Se,S,_,b,y=e[24]("payemntMethod")+"",w,M,x,R,W,O,Q,te=e[24]("paymentTime")+"",ge,he,Ce,fe=Rt(e[15].time).format("MMM DD, YYYY, HH:mm:ss")+"",ne,pe,se,we,xe,Ke,Le,Qe,mt;function Je(E,U){if(E[21]==="success")return ka;if(E[21]==="pending")return Aa;if(E[21]==="failed"||E[21]==="rejected"||E[21]==="canceled")return Ba}let Ee=Je(e),ae=Ee&&Ee(e),oe=e[12].length>0&&br(e);function et(E,U){return E[15].type?La:Ia}let Oe=et(e),ve=Oe(e),ce=e[16].length&&vr(e);return{c(){t=T("div"),ae&&ae.c(),n=G(),r=T("div"),i=T("div"),o=T("p"),a=j(s),u=G(),l=T("span"),c=j(e[17]),h=G(),m=T("div"),g=T("p"),d=j(v),B=G(),k=T("span"),A=j(N),q=G(),I=T("div"),z=T("p"),le=j(me),K=G(),L=T("span"),Se=j(ye),S=G(),_=T("div"),b=T("p"),w=j(y),M=G(),x=T("span"),R=j(e[0]),W=G(),O=T("div"),Q=T("p"),ge=j(te),he=G(),Ce=T("span"),ne=j(fe),pe=G(),se=T("div"),oe&&oe.c(),we=G(),xe=T("button"),ve.c(),Ke=G(),ce&&ce.c(),Le=$t(),f(t,"class","ReceiptStatusWrapper"),f(i,"class","Amount"),f(m,"class",Y=`Status ${e[21]}`),f(L,"class","TxnIdText"),f(I,"class","TxnId"),f(_,"class","PaymentMethod"),f(O,"class","PaymentTime"),f(r,"class","ReceiptDetailsWrapper"),f(se,"class","ReceiptButtonsWrapper"),f(xe,"class","DefaultButton")},m(E,U){P(E,t,U),ae&&ae.m(t,null),P(E,n,U),P(E,r,U),C(r,i),C(i,o),C(o,a),C(i,u),C(i,l),C(l,c),C(r,h),C(r,m),C(m,g),C(g,d),C(m,B),C(m,k),C(k,A),C(r,q),C(r,I),C(I,z),C(z,le),C(I,K),C(I,L),C(L,Se),C(r,S),C(r,_),C(_,b),C(b,w),C(_,M),C(_,x),C(x,R),C(r,W),C(r,O),C(O,Q),C(Q,ge),C(O,he),C(O,Ce),C(Ce,ne),P(E,pe,U),P(E,se,U),oe&&oe.m(se,null),P(E,we,U),P(E,xe,U),ve.m(xe,null),P(E,Ke,U),ce&&ce.m(E,U),P(E,Le,U),Qe||(mt=[Fe(L,"click",e[45]),Fe(xe,"click",e[26])],Qe=!0)},p(E,U){Ee===(Ee=Je(E))&&ae?ae.p(E,U):(ae&&ae.d(1),ae=Ee&&Ee(E),ae&&(ae.c(),ae.m(t,null))),U[0]&16777216&&s!==(s=E[24]("amount")+"")&&F(a,s),U[0]&131072&&F(c,E[17]),U[0]&16777216&&v!==(v=E[24]("status")+"")&&F(d,v),U[0]&18874368&&N!==(N=E[24](`${E[21]}`)+"")&&F(A,N),U[0]&2097152&&Y!==(Y=`Status ${E[21]}`)&&f(m,"class",Y),U[0]&16777216&&me!==(me=E[24]("transactionId")+"")&&F(le,me),U[0]&32768&&ye!==(ye=E[15].referenceId+"")&&F(Se,ye),U[0]&16777216&&y!==(y=E[24]("payemntMethod")+"")&&F(w,y),U[0]&1&&F(R,E[0]),U[0]&16777216&&te!==(te=E[24]("paymentTime")+"")&&F(ge,te),U[0]&32768&&fe!==(fe=Rt(E[15].time).format("MMM DD, YYYY, HH:mm:ss")+"")&&F(ne,fe),E[12].length>0?oe?oe.p(E,U):(oe=br(E),oe.c(),oe.m(se,null)):oe&&(oe.d(1),oe=null),Oe===(Oe=et(E))&&ve?ve.p(E,U):(ve.d(1),ve=Oe(E),ve&&(ve.c(),ve.m(xe,null))),E[16].length?ce?ce.p(E,U):(ce=vr(E),ce.c(),ce.m(Le.parentNode,Le)):ce&&(ce.d(1),ce=null)},d(E){E&&(H(t),H(n),H(r),H(pe),H(se),H(we),H(xe),H(Ke),H(Le)),ae&&ae.d(),oe&&oe.d(),ve.d(),ce&&ce.d(E),Qe=!1,Ae(mt)}}}function gr(e){let t,n,r,i=e[24]("receipt.maintenance.title")+"",o,s,a,u=e[24]("receipt.maintenance.text")+"",l;return{c(){t=T("div"),t.innerHTML='<div class="ImagePlaceholder Maintenance"></div>',n=G(),r=T("span"),o=j(i),s=G(),a=T("span"),l=j(u),f(t,"slot","icon"),f(r,"slot","title"),f(r,"class","CashierErrorTitle"),f(a,"slot","text"),f(a,"class","CashierErrorText")},m(c,h){P(c,t,h),P(c,n,h),P(c,r,h),C(r,o),P(c,s,h),P(c,a,h),C(a,l)},p(c,h){h[0]&16777216&&i!==(i=c[24]("receipt.maintenance.title")+"")&&F(o,i),h[0]&16777216&&u!==(u=c[24]("receipt.maintenance.text")+"")&&F(l,u)},d(c){c&&(H(t),H(n),H(r),H(s),H(a))}}}function Ba(e){let t,n,r,i,o,s,a,u=e[24](`${e[15].type.toLowerCase()}.fail.title`)+"",l,c,h,m=e[24](`${e[15].type.toLowerCase()}.fail.text`)+"",g;return{c(){t=be("svg"),n=be("circle"),r=be("rect"),i=be("path"),o=G(),s=T("div"),a=T("h3"),l=j(u),c=G(),h=T("p"),g=j(m),f(n,"cx","36"),f(n,"cy","36"),f(n,"r","36"),f(n,"fill","#D14141"),f(n,"fill-opacity","0.12"),f(r,"x","19.335"),f(r,"y","19"),f(r,"width","33.33"),f(r,"height","33.33"),f(r,"rx","16.665"),f(r,"fill","#FF3636"),f(i,"d","M29.085 41.915L41.585 29.415M41.585 41.915L29.085 29.415"),f(i,"stroke","black"),f(i,"stroke-width","2.09016"),f(i,"stroke-linecap","round"),f(i,"stroke-linejoin","round"),f(t,"class","ReceiptStatusIcon failed"),f(t,"width","72"),f(t,"height","72"),f(t,"viewBox","0 0 72 72"),f(t,"fill","none"),f(t,"xmlns","http://www.w3.org/2000/svg"),f(s,"class","ReceiptStatusText")},m(v,d){P(v,t,d),C(t,n),C(t,r),C(t,i),P(v,o,d),P(v,s,d),C(s,a),C(a,l),C(s,c),C(s,h),C(h,g)},p(v,d){d[0]&16809984&&u!==(u=v[24](`${v[15].type.toLowerCase()}.fail.title`)+"")&&F(l,u),d[0]&16809984&&m!==(m=v[24](`${v[15].type.toLowerCase()}.fail.text`)+"")&&F(g,m)},d(v){v&&(H(t),H(o),H(s))}}}function Aa(e){let t,n,r,i,o,s,a,u,l,c=e[24](`${e[15].type.toLowerCase()}.pending.title`)+"",h,m,g,v=e[24](`${e[15].type.toLowerCase()}.pending.text`)+"",d,B,k,N=e[24]("refreshButton")+"",A,Y,q;return{c(){t=be("svg"),n=be("circle"),r=be("rect"),i=be("path"),o=be("path"),s=be("path"),a=G(),u=T("div"),l=T("h3"),h=j(c),m=G(),g=T("p"),d=j(v),B=G(),k=T("button"),A=j(N),f(n,"cx","36"),f(n,"cy","36"),f(n,"r","36"),f(n,"fill","#D19A41"),f(n,"fill-opacity","0.12"),f(r,"x","19"),f(r,"y","19"),f(r,"width","34"),f(r,"height","34"),f(r,"rx","17"),f(r,"fill","#FF6836"),f(i,"d","M36 46C30.4771 46 26 41.5228 26 36C26 30.4772 30.4772 26 36 26C40.4776 26 44.2257 28.9429 45.5 33H43"),f(i,"stroke","black"),f(i,"stroke-width","1.5"),f(i,"stroke-linecap","round"),f(i,"stroke-linejoin","round"),f(o,"d","M36 32V36L38 38"),f(o,"stroke","black"),f(o,"stroke-width","1.5"),f(o,"stroke-linecap","round"),f(o,"stroke-linejoin","round"),f(s,"d","M45.9551 37C45.9848 36.6709 46 36.3373 46 36M39 46C39.3416 45.8876 39.6753 45.7564 40 45.6078M44.7906 41C44.9835 40.6284 45.1555 40.2433 45.305 39.8462M42.1925 44.2292C42.5369 43.9441 42.8631 43.6358 43.1688 43.3065"),f(s,"stroke","black"),f(s,"stroke-width","1.5"),f(s,"stroke-linecap","round"),f(s,"stroke-linejoin","round"),f(t,"class","ReceiptStatusIcon pending"),f(t,"width","72"),f(t,"height","72"),f(t,"viewBox","0 0 72 72"),f(t,"fill","none"),f(t,"xmlns","http://www.w3.org/2000/svg"),f(u,"class","ReceiptStatusText"),f(k,"class","RefreshButton")},m(I,z){P(I,t,z),C(t,n),C(t,r),C(t,i),C(t,o),C(t,s),P(I,a,z),P(I,u,z),C(u,l),C(l,h),C(u,m),C(u,g),C(g,d),P(I,B,z),P(I,k,z),C(k,A),Y||(q=Fe(k,"click",e[27]),Y=!0)},p(I,z){z[0]&16809984&&c!==(c=I[24](`${I[15].type.toLowerCase()}.pending.title`)+"")&&F(h,c),z[0]&16809984&&v!==(v=I[24](`${I[15].type.toLowerCase()}.pending.text`)+"")&&F(d,v),z[0]&16777216&&N!==(N=I[24]("refreshButton")+"")&&F(A,N)},d(I){I&&(H(t),H(a),H(u),H(B),H(k)),Y=!1,q()}}}function ka(e){let t,n,r,i,o,s,a=e[24](`${e[15].type.toLowerCase()}.success.title`)+"",u,l,c,h=e[24](`${e[15].type.toLowerCase()}.success.text`)+"",m;return{c(){t=be("svg"),n=be("circle"),r=be("path"),i=G(),o=T("div"),s=T("h3"),u=j(a),l=G(),c=T("p"),m=j(h),f(n,"cx","36"),f(n,"cy","36"),f(n,"r","36"),f(n,"fill","#F9C408"),f(n,"fill-opacity","0.12"),f(r,"d","M36.5 19.3333C27.3167 19.3333 19.8333 26.8166 19.8333 36C19.8333 45.1833 27.3167 52.6666 36.5 52.6666C45.6833 52.6666 53.1667 45.1833 53.1667 36C53.1667 26.8166 45.6833 19.3333 36.5 19.3333ZM44.4667 32.1666L35.0167 41.6166C34.7833 41.85 34.4667 41.9833 34.1333 41.9833C33.8 41.9833 33.4833 41.85 33.25 41.6166L28.5333 36.9C28.05 36.4166 28.05 35.6166 28.5333 35.1333C29.0167 34.65 29.8167 34.65 30.3 35.1333L34.1333 38.9666L42.7 30.4C43.1833 29.9166 43.9833 29.9166 44.4667 30.4C44.95 30.8833 44.95 31.6666 44.4667 32.1666Z"),f(r,"fill","#F9C408"),f(t,"class","ReceiptStatusIcon success"),f(t,"width","72"),f(t,"height","72"),f(t,"viewBox","0 0 72 72"),f(t,"fill","none"),f(t,"xmlns","http://www.w3.org/2000/svg"),f(o,"class","ReceiptStatusText")},m(g,v){P(g,t,v),C(t,n),C(t,r),P(g,i,v),P(g,o,v),C(o,s),C(s,u),C(o,l),C(o,c),C(c,m)},p(g,v){v[0]&16809984&&a!==(a=g[24](`${g[15].type.toLowerCase()}.success.title`)+"")&&F(u,a),v[0]&16809984&&h!==(h=g[24](`${g[15].type.toLowerCase()}.success.text`)+"")&&F(m,h)},d(g){g&&(H(t),H(i),H(o))}}}function br(e){let t,n=kt(e[12]),r=[];for(let i=0;i<n.length;i+=1)r[i]=yr(pr(e,n,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();t=$t()},m(i,o){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(i,o);P(i,t,o)},p(i,o){if(o[0]&285216768){n=kt(i[12]);let s;for(s=0;s<n.length;s+=1){const a=pr(i,n,s);r[s]?r[s].p(a,o):(r[s]=yr(a),r[s].c(),r[s].m(t.parentNode,t))}for(;s<r.length;s+=1)r[s].d(1);r.length=n.length}},d(i){i&&H(t),Ar(r,i)}}}function yr(e){var m;let t,n,r=((m=hr[`${e[75].type}`])!=null?m:"")+"",i,o=e[24](`${e[75].translationKey}`)+"",s,a,u,l,c;function h(){return e[46](e[75])}return{c(){t=T("button"),n=T("div"),i=G(),s=j(o),a=G(),f(n,"class","CustomButtonSvg"),f(t,"class",u=`${e[75].type} GoToButton`)},m(g,v){P(g,t,v),C(t,n),n.innerHTML=r,C(t,i),C(t,s),C(t,a),l||(c=Fe(t,"click",h),l=!0)},p(g,v){var d;e=g,v[0]&4096&&r!==(r=((d=hr[`${e[75].type}`])!=null?d:"")+"")&&(n.innerHTML=r),v[0]&16781312&&o!==(o=e[24](`${e[75].translationKey}`)+"")&&F(s,o),v[0]&4096&&u!==(u=`${e[75].type} GoToButton`)&&f(t,"class",u)},d(g){g&&H(t),l=!1,c()}}}function Ia(e){let t=e[24]("backHome")+"",n;return{c(){n=j(t)},m(r,i){P(r,n,i)},p(r,i){i[0]&16777216&&t!==(t=r[24]("backHome")+"")&&F(n,t)},d(r){r&&H(n)}}}function La(e){let t=e[24](`back${e[15].type}`)+"",n;return{c(){n=j(t)},m(r,i){P(r,n,i)},p(r,i){i[0]&16809984&&t!==(t=r[24](`back${r[15].type}`)+"")&&F(n,t)},d(r){r&&H(n)}}}function vr(e){let t,n=kt(e[16]),r=[];for(let i=0;i<n.length;i+=1)r[i]=Cr(fr(e,n,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();t=$t()},m(i,o){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(i,o);P(i,t,o)},p(i,o){if(o[0]&537214976){n=kt(i[16]);let s;for(s=0;s<n.length;s+=1){const a=fr(i,n,s);r[s]?r[s].p(a,o):(r[s]=Cr(a),r[s].c(),r[s].m(t.parentNode,t))}for(;s<r.length;s+=1)r[s].d(1);r.length=n.length}},d(i){i&&H(t),Ar(r,i)}}}function Oa(e){let t,n=e[72].defaultValue+"",r;return{c(){t=T("span"),r=j(n),f(t,"class","Label")},m(i,o){P(i,t,o),C(t,r)},p(i,o){o[0]&65536&&n!==(n=i[72].defaultValue+"")&&F(r,n)},d(i){i&&H(t)}}}function Da(e){return{c:ie,m:ie,p:ie,d:ie}}function Ra(e){let t,n=e[72].description+"",r,i,o,s=e[72].name+"",a,u;return{c(){t=T("span"),r=j(n),i=G(),o=T("a"),a=j(s),f(o,"href",u=e[72].defaultValue),f(o,"target","_blank"),f(o,"rel","noopener noreferrer")},m(l,c){P(l,t,c),C(t,r),C(t,i),C(t,o),C(o,a)},p(l,c){c[0]&65536&&n!==(n=l[72].description+"")&&F(r,n),c[0]&65536&&s!==(s=l[72].name+"")&&F(a,s),c[0]&65536&&u!==(u=l[72].defaultValue)&&f(o,"href",u)},d(l){l&&H(t)}}}function $a(e){let t,n,r;return{c(){t=T("img"),en(t.src,n=e[72].defaultValue)||f(t,"src",n),f(t,"title",r=e[72].description),f(t,"alt","")},m(i,o){P(i,t,o)},p(i,o){o[0]&65536&&!en(t.src,n=i[72].defaultValue)&&f(t,"src",n),o[0]&65536&&r!==(r=i[72].description)&&f(t,"title",r)},d(i){i&&H(t)}}}function Na(e){let t,n=e[72].defaultValue+"";return{c(){t=T("span")},m(r,i){P(r,t,i),t.innerHTML=n},p(r,i){i[0]&65536&&n!==(n=r[72].defaultValue+"")&&(t.innerHTML=n)},d(r){r&&H(t)}}}function Ua(e){let t,n,r=e[72].defaultValue+"",i,o,s;function a(){return e[48](e[72])}return{c(){t=T("div"),n=T("div"),i=j(r),f(t,"class","QRCode")},m(u,l){P(u,t,l),C(t,n),C(n,i),e[47](n),o||(s=Fe(t,"click",a),o=!0)},p(u,l){e=u,l[0]&65536&&r!==(r=e[72].defaultValue+"")&&F(i,r)},d(u){u&&H(t),e[47](null),o=!1,s()}}}function Cr(e){let t,n;function r(s,a){return s[72].type===s[14].QRCode?Ua:s[72].type===s[14].Html?Na:s[72].type===s[14].Image?$a:s[72].type===s[14].Link?Ra:s[72].type===s[14].Hidden?Da:Oa}let i=r(e),o=i(e);return{c(){t=T("div"),o.c(),n=G(),f(t,"class","ReceiptField")},m(s,a){P(s,t,a),o.m(t,null),C(t,n)},p(s,a){i===(i=r(s))&&o?o.p(s,a):(o.d(1),o=i(s),o&&(o.c(),o.m(t,n)))},d(s){s&&H(t),o.d()}}}function ja(e){let t;function n(o,s){return o[11]?Ha:Ea}let r=n(e),i=r(e);return{c(){t=T("div"),i.c(),f(t,"class","CashierReceiptPageWidget")},m(o,s){P(o,t,s),i.m(t,null),e[49](t)},p(o,s){r===(r=n(o))&&i?i.p(o,s):(i.d(1),i=r(o),i&&(i.c(),i.m(t,null)))},i:ie,o:ie,d(o){o&&H(t),i.d(),e[49](null)}}}let Ga="_blank";function Fa(e,t,n){let r;xr(e,bi,p=>n(24,r=p)),Rt.extend(sa);let{endpoint:i}=t,{session:o}=t,{lang:s="en"}=t,{local:a="en-US"}=t,{showerrors:u="true"}=t,{translationurl:l}=t,{assetsurl:c=""}=t,{customerid:h}=t,{transactionid:m}=t,{currencydecimals:g="0"}=t,{type:v}=t,{clientstyling:d=""}=t,{clientstylingurl:B=""}=t,{mbsource:k=""}=t,{showverifications:N="true"}=t,{paymentmethod:A=""}=t,Y=!1,q,{customsucceessbuttons:I=""}=t,{custompendingbuttons:z=""}=t,{customfailedbuttons:me=""}=t,{currencysymbol:le=""}=t,{currencyposition:K=""}=t,{userroles:L=""}=t,{windowsize:ye}=t,{p2p:Se="false"}=t,S=[],_=[];var b;(function(p){p.Success="Success",p.Maintenance="Maintenance"})(b||(b={}));var y;(function(p){p.Unknown="Unknown",p.Text="Text",p.Boolean="Boolean",p.Number="Number",p.Money="Money",p.DateTime="DateTime",p.Lookup="Lookup",p.IpAddress="IpAddress",p.Date="Date",p.Time="Time",p.LookupCollection="LookupCollection",p.Hidden="Hidden",p.Label="Label",p.Password="Password",p.Link="Link",p.Image="Image",p.Html="Html",p.QRCode="QR"})(y||(y={}));const w=(p,[re,_e])=>[...p,...Array.isArray(re)?[...re.map(X=>[X,_e])]:[[re,_e]]],M=new Map([[["Unknown",0],y.Unknown],[["Text",1],y.Text],[["Boolean",2],y.Boolean],[["Number",3],y.Number],[["Money",4],y.Money],[["DateTime",5],y.DateTime],[["Lookup",6],y.Lookup],[["IpAddress",7],y.IpAddress],[["Date",8],y.Date],[["Time",9],y.Time],[["LookupCollection",10],y.LookupCollection],[["Hidden",11],y.Hidden],[["Label",12],y.Label],[["Password",13],y.Password],[["Link",14],y.Link],[["Image",15],y.Image],[["Html",19],y.Html],[["QR",20],y.QRCode]].reduce(w,[]));let x,R=[],W,O,Q=[],te,ge,he="",Ce=window.navigator.userAgent,fe=!1,ne=!1;const pe={promotions:{event:"Cashier:goToPromotions",translationKey:"goToPromotions",type:"PromotionsButton"},tournaments:{event:"Cashier:goToTournaments",translationKey:"goToTournaments",type:"TournamentsButton"},support:{event:"Cashier:goToContact",translationKey:"goToSupport",type:"SupportButton"},merchanthomepage:{event:"Cashier:goToVendorWebsite",translationKey:"goToMerchantHomePage",type:"MerchantHomePageButton"},sports:{event:"Cashier:goToSports",translationKey:"goToSports",type:"SportsButton"},casino:{event:"Cashier:goToCasino",translationKey:"goToCasino",type:"CasinoButton"},livecasino:{event:"Cashier:goToLiveCasino",translationKey:"goToLiveCasino",type:"LiveCasinoButton"},externallink:{event:"Cashier:externalRedirect",translationKey:"externalLink",type:"ExternalLinkButton"},documentupload:{event:"Cashier:uploadDocuments",translationKey:"uploadDocuments",type:"UploadDocumentButton"},home:{event:"Cashier:goToHome",translationKey:"goToHomepage",type:"HomeButton"},close:{event:"CloseCashierReceiptPage",translationKey:"close",type:"CloseButton"}},se=p=>{n(12,S=[]),p.split(",").forEach(_e=>{pe[_e.trim()]&&S.push(pe[_e.trim()])})},we=()=>{Qs(s)};Ir(()=>(window.addEventListener("message",xe,!1),_a(a,le,K,g),()=>{window.removeEventListener("message",xe)}));const xe=p=>{var re;switch(p.data.type){case"CloseReceiptInSecondTab":(re=window.opener)==null||re.postMessage(p.data);break}},Ke=()=>{let p=l;if(p)return fetch(p).then(re=>re.json()).then(re=>{Object.keys(re).forEach(_e=>{tr(_e,re[_e])})}).catch(()=>{})};Object.keys(nr).forEach(p=>{tr(p,nr[p])});const Le=()=>{window.postMessage({type:"CloseCashierReceiptPage"},window.location.href)},Qe=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:te,showErrorOutsideReceiptPage:ge},window.location.href)},mt=()=>{ne||(ne=!0,_t("cashier_receipt_refresh",{transactionType:x.type})),Je()},Je=()=>{const p=new URL(`${i}/v1/player/${h}/payment/GetPaymentInfo`),re=new Headers;re.append("accept","application/json"),re.append("Content-Type","application/json"),re.append("X-SessionId",`${o}`),re.append("X-Client-Request-Timestamp",Rt.utc().format("YYYY-MM-DD HH:mm:ss.SSS")),_.indexOf("MM_CHANNEL_BETA")!=-1&&re.append("MM_CHANNEL","BETA");const _e={method:"POST",headers:re,body:JSON.stringify({TransactionCode:m})};n(11,Y=!0),fetch(p,_e).then(X=>X.json()).then(X=>{var gt,En,Hn,Mn,Pn,Bn,An,kn,In,Ln,On;if(X.ResponseCode!==b.Success){n(19,te=X.ResponseCode),n(20,ge=u.toLowerCase()==="false"||!u),Qe();return}switch(n(15,x={type:X.Transaction.Type,referenceId:X.Transaction.Code,status:(gt=X.Transaction.Status)==null?void 0:gt.Status,message:(En=X.Transaction.Status)==null?void 0:En.Message,amount:(Hn=X.Transaction.Amounts[0])==null?void 0:Hn.Amount,currency:(Mn=X.Transaction.Amounts[0])==null?void 0:Mn.Currency,time:X.Transaction.Status.Created}),n(16,R=X.ReceiptInfo&&X.ReceiptInfo.ReceiptFields?X.ReceiptInfo.ReceiptFields.map(Me=>({type:M.get(Me.Type),name:Me.Name,description:Me.Description,defaultValue:Me.DefaultValue,useCopyButton:Me.UseCopyButton,usePrintButton:Me.UsePrintButton})):[]),X.ReceiptInfo&&X.ReceiptInfo.ReceiptFields&&!A&&n(0,A=R[0].defaultValue),r(ea(x.status,x.type),{values:{errorText:x.message}}),n(17,W=wa(Number(x.amount),x.currency)),_t("cashier_submit",{transactionType:x.type,method:A,transactionStatus:x.status}),x.status){case"Voided":case"Success":if(se(I||"casino, livecasino, tournaments"),n(21,he="success"),x.type==="Deposit"){const Me=(Bn=(Pn=X.Transaction)==null?void 0:Pn.Flags)==null?void 0:Bn.NewDepositCustomer,De=(An=X==null?void 0:X.Transaction)==null?void 0:An.Payloads;window.postMessage({type:Me==="True"?"FirstDeposit":"ConfirmedDeposit",method:A,amount:x.amount,currency:x.currency,depositType:(kn=De==null?void 0:De.TagManagerDepositType)!=null?kn:"",publicPaymentId:(In=De==null?void 0:De.TagManagerCode)!=null?In:""},window.location.href)}_t(x.type==="Deposit"?"deposit_success":"withdrawal_success",{userID:h,amount:x.amount,currency:x.currency,transactionId:x.referenceId,method:A,isFirstDeposit:((On=(Ln=X.Transaction)==null?void 0:Ln.Flags)==null?void 0:On.NewDepositCustomer)==="True"});break;case"PendingNotification":case"PendingConfirmation":case"PendingApprovalStage1":case"PendingApprovalStage2":case"PendingApprovalStage3":case"PendingOfflineNotification":se(z||"casino, livecasino, tournaments"),n(21,he="pending");break;case"Rejected":case"Cancelled":case"Failed":se(me||"casino, livecasino, tournaments"),n(21,he=x.status.toLowerCase()),_t(x.type==="Deposit"?"deposit_failed":"withdrawal_failed",{userID:h,amount:x.amount,currency:x.currency,failureReason:x.message}),N==="true"&&n(22,fe=!0);break;default:se("close")}c?Js(c,x.status):ta(x.status)}).finally(()=>n(11,Y=!1))},Ee=p=>{window.postMessage({type:p},window.location.href)},ae=p=>{p&&window.postMessage({type:"NavigateTo",path:p,target:Ga,externalLink:!1},window.location.href)};let oe,et;const Oe=(p,re=!0)=>Wt(this,null,function*(){const X=p.currentTarget.innerHTML;if(X&&navigator.clipboard&&navigator.clipboard.writeText)try{yield navigator.clipboard.writeText(X),re&&(n(23,oe=!0),clearTimeout(et),et=setTimeout(()=>{n(23,oe=!1)},2e3))}catch(gt){console.error("Clipboard API failed:",gt)}}),ve=()=>{L.length>0&&(_=L.split(","))},ce=p=>Oe(p),E=p=>Ee(p.event);function U(p){ut[p?"unshift":"push"](()=>{Q[Q.length]=p,n(18,Q)})}const ki=p=>{ae(p.description)};function Ii(p){ut[p?"unshift":"push"](()=>{O=p,n(10,O)})}return e.$$set=p=>{"endpoint"in p&&n(1,i=p.endpoint),"session"in p&&n(2,o=p.session),"lang"in p&&n(3,s=p.lang),"local"in p&&n(31,a=p.local),"showerrors"in p&&n(32,u=p.showerrors),"translationurl"in p&&n(4,l=p.translationurl),"assetsurl"in p&&n(5,c=p.assetsurl),"customerid"in p&&n(6,h=p.customerid),"transactionid"in p&&n(33,m=p.transactionid),"currencydecimals"in p&&n(34,g=p.currencydecimals),"type"in p&&n(35,v=p.type),"clientstyling"in p&&n(7,d=p.clientstyling),"clientstylingurl"in p&&n(8,B=p.clientstylingurl),"mbsource"in p&&n(36,k=p.mbsource),"showverifications"in p&&n(9,N=p.showverifications),"paymentmethod"in p&&n(0,A=p.paymentmethod),"customsucceessbuttons"in p&&n(37,I=p.customsucceessbuttons),"custompendingbuttons"in p&&n(38,z=p.custompendingbuttons),"customfailedbuttons"in p&&n(39,me=p.customfailedbuttons),"currencysymbol"in p&&n(40,le=p.currencysymbol),"currencyposition"in p&&n(41,K=p.currencyposition),"userroles"in p&&n(42,L=p.userroles),"windowsize"in p&&n(43,ye=p.windowsize),"p2p"in p&&n(44,Se=p.p2p)},e.$$.update=()=>{e.$$.dirty[1]&2048&&L&&ve(),e.$$.dirty[0]&70|e.$$.dirty[1]&6&&i&&o&&h&&m&&u&&Je(),e.$$.dirty[0]&8&&s&&we(),e.$$.dirty[0]&24&&s&&l&&Ke(),e.$$.dirty[0]&1152&&d&&O&&Mi(O,d),e.$$.dirty[0]&1280&&B&&O&&Pi(O,B),e.$$.dirty[0]&1024|e.$$.dirty[1]&32&&k&&O&&Bi(O,`${k}.Style`,q)},[A,i,o,s,l,c,h,d,B,N,O,Y,S,b,y,x,R,W,Q,te,ge,he,fe,oe,r,Ce,Le,mt,Ee,ae,Oe,a,u,m,g,v,k,I,z,me,le,K,L,ye,Se,ce,E,U,ki,Ii]}class Ai extends zr{constructor(t){super(),jr(this,t,Fa,ja,vn,{endpoint:1,session:2,lang:3,local:31,showerrors:32,translationurl:4,assetsurl:5,customerid:6,transactionid:33,currencydecimals:34,type:35,clientstyling:7,clientstylingurl:8,mbsource:36,showverifications:9,paymentmethod:0,customsucceessbuttons:37,custompendingbuttons:38,customfailedbuttons:39,currencysymbol:40,currencyposition:41,userroles:42,windowsize:43,p2p:44},Sa,[-1,-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$$set({endpoint:t}),V()}get session(){return this.$$.ctx[2]}set session(t){this.$$set({session:t}),V()}get lang(){return this.$$.ctx[3]}set lang(t){this.$$set({lang:t}),V()}get local(){return this.$$.ctx[31]}set local(t){this.$$set({local:t}),V()}get showerrors(){return this.$$.ctx[32]}set showerrors(t){this.$$set({showerrors:t}),V()}get translationurl(){return this.$$.ctx[4]}set translationurl(t){this.$$set({translationurl:t}),V()}get assetsurl(){return this.$$.ctx[5]}set assetsurl(t){this.$$set({assetsurl:t}),V()}get customerid(){return this.$$.ctx[6]}set customerid(t){this.$$set({customerid:t}),V()}get transactionid(){return this.$$.ctx[33]}set transactionid(t){this.$$set({transactionid:t}),V()}get currencydecimals(){return this.$$.ctx[34]}set currencydecimals(t){this.$$set({currencydecimals:t}),V()}get type(){return this.$$.ctx[35]}set type(t){this.$$set({type:t}),V()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(t){this.$$set({clientstyling:t}),V()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),V()}get mbsource(){return this.$$.ctx[36]}set mbsource(t){this.$$set({mbsource:t}),V()}get showverifications(){return this.$$.ctx[9]}set showverifications(t){this.$$set({showverifications:t}),V()}get paymentmethod(){return this.$$.ctx[0]}set paymentmethod(t){this.$$set({paymentmethod:t}),V()}get customsucceessbuttons(){return this.$$.ctx[37]}set customsucceessbuttons(t){this.$$set({customsucceessbuttons:t}),V()}get custompendingbuttons(){return this.$$.ctx[38]}set custompendingbuttons(t){this.$$set({custompendingbuttons:t}),V()}get customfailedbuttons(){return this.$$.ctx[39]}set customfailedbuttons(t){this.$$set({customfailedbuttons:t}),V()}get currencysymbol(){return this.$$.ctx[40]}set currencysymbol(t){this.$$set({currencysymbol:t}),V()}get currencyposition(){return this.$$.ctx[41]}set currencyposition(t){this.$$set({currencyposition:t}),V()}get userroles(){return this.$$.ctx[42]}set userroles(t){this.$$set({userroles:t}),V()}get windowsize(){return this.$$.ctx[43]}set windowsize(t){this.$$set({windowsize:t}),V()}get p2p(){return this.$$.ctx[44]}set p2p(t){this.$$set({p2p:t}),V()}}Fr(Ai,{endpoint:{},session:{},lang:{},local:{},showerrors:{},translationurl:{},assetsurl:{},customerid:{},transactionid:{},currencydecimals:{},type:{},clientstyling:{},clientstylingurl:{},mbsource:{},showverifications:{},paymentmethod:{},customsucceessbuttons:{},custompendingbuttons:{},customfailedbuttons:{},currencysymbol:{},currencyposition:{},userroles:{},windowsize:{},p2p:{}},[],[],!0);const za=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"}));exports.$format=bi;exports.$locale=Ie;exports.CashierReceiptPage_ce=za;exports.HtmlTag=Yi;exports.SvelteComponent=zr;exports.addMessages=Tn;exports.append=C;exports.append_styles=Pr;exports.attr=f;exports.binding_callbacks=ut;exports.check_outros=Dr;exports.component_subscribe=xr;exports.create_component=so;exports.create_custom_element=Fr;exports.create_slot=ji;exports.destroy_component=Ur;exports.detach=H;exports.element=T;exports.empty=$t;exports.flush=V;exports.get_all_dirty_from_scope=zi;exports.get_slot_changes=Gi;exports.group_outros=Or;exports.init=jr;exports.init$1=di;exports.insert=P;exports.listen=Fe;exports.mount_component=Nr;exports.noop=ie;exports.onMount=Ir;exports.safe_not_equal=vn;exports.setClientStyling=Mi;exports.setClientStylingURL=Pi;exports.setStreamStyling=Bi;exports.set_data=F;exports.space=G;exports.src_url_equal=en;exports.text=j;exports.transition_in=At;exports.transition_out=Rr;exports.update_slot_base=Fi;