@everymatrix/prize-engine-suite 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +138 -0
- package/components/PrizeEngineChest-BVPAgurG.js +309 -0
- package/components/PrizeEngineChest-C0N7lnkh.js +331 -0
- package/components/PrizeEngineChest-IjXQ3Npg.cjs +1 -0
- package/components/PrizeEngineCoin-BSbJruG-.js +293 -0
- package/components/PrizeEngineCoin-CfvghnNb.js +271 -0
- package/components/PrizeEngineCoin-DSfNslVg.cjs +1 -0
- package/components/PrizeEngineDetails-3-kB4O56.js +2000 -0
- package/components/PrizeEngineDetails-BB_QSozG.cjs +1 -0
- package/components/PrizeEngineDetails-CjKeFIuU.js +1960 -0
- package/components/PrizeEngineHistory-60ER0uV1.js +1786 -0
- package/components/PrizeEngineHistory-BpILiR5F.cjs +1 -0
- package/components/PrizeEngineHistory-DN5bFRQB.js +1816 -0
- package/components/PrizeEngineList-DQ8Mn6nB.js +471 -0
- package/components/PrizeEngineList-QzCyrAut.cjs +1 -0
- package/components/PrizeEngineList-mINVnC_b.js +437 -0
- package/components/PrizeEngineLuckywheel-BgWt7wEl.cjs +1 -0
- package/components/PrizeEngineLuckywheel-BncCaQEg.js +272 -0
- package/components/PrizeEngineLuckywheel-CTlHcFBH.js +272 -0
- package/components/PrizeEngineSuite-BhF-GlCv.js +5378 -0
- package/components/PrizeEngineSuite-DNby9KuV.cjs +23 -0
- package/components/PrizeEngineSuite-DWvvEtv_.js +5337 -0
- package/components/WheelSVG-BxjEfPQo.js +1475 -0
- package/components/WheelSVG-DYz6PQPq.cjs +34 -0
- package/components/WheelSVG-MY7KdRdd.js +1441 -0
- package/es2015/prize-engine-suite.cjs +1 -0
- package/es2015/prize-engine-suite.js +16 -0
- package/esnext/prize-engine-suite.js +14 -0
- package/package.json +25 -0
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +5 -0
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
- package/stencil/index-b2193545-9K-aI7zC.cjs +1 -0
- package/stencil/index-b2193545-DsMHU6jb.js +519 -0
- package/stencil/index-b2193545-R7ZoV-kY.js +503 -0
- package/stencil/ui-skeleton-BreIU6e5.cjs +1 -0
- package/stencil/ui-skeleton-W50o8tfg.js +11 -0
- package/stencil/ui-skeleton-ed169f8f-CVY4B-CP.js +155 -0
- package/stencil/ui-skeleton-ed169f8f-CpiCXJrP.cjs +55 -0
- package/stencil/ui-skeleton-ed169f8f-D3TjbVKy.js +155 -0
- package/stencil/ui-skeleton-xXZA3rYO.js +29 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";var Sn=Object.defineProperty,Tn=Object.defineProperties;var Hn=Object.getOwnPropertyDescriptors;var Mt=Object.getOwnPropertySymbols;var Pn=Object.prototype.hasOwnProperty,Bn=Object.prototype.propertyIsEnumerable;var qe=(e,t,r)=>t in e?Sn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Nt=(e,t)=>{for(var r in t||(t={}))Pn.call(t,r)&&qe(e,r,t[r]);if(Mt)for(var r of Mt(t))Bn.call(t,r)&&qe(e,r,t[r]);return e},Rt=(e,t)=>Tn(e,Hn(t));var N=(e,t,r)=>(qe(e,typeof t!="symbol"?t+"":t,r),r);var $t=(e,t,r)=>new Promise((n,i)=>{var s=u=>{try{a(r.next(u))}catch(l){i(l)}},o=u=>{try{a(r.throw(u))}catch(l){i(l)}},a=u=>u.done?n(u.value):Promise.resolve(u.value).then(s,o);a((r=r.apply(e,t)).next())});function P(){}const ke=e=>e;function Ge(e,t){for(const r in t)e[r]=t[r];return e}function dr(e){return e()}function Dt(){return Object.create(null)}function D(e){e.forEach(dr)}function le(e){return typeof e=="function"}function xt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let Te;function An(e,t){return e===t?!0:(Te||(Te=document.createElement("a")),Te.href=t,e===Te.href)}function On(e){return Object.keys(e).length===0}function mr(e,...t){if(e==null){for(const n of t)n(void 0);return P}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function br(e,t,r){e.$$.on_destroy.push(mr(t,r))}function Ut(e){const t=typeof e=="string"&&e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return t?[parseFloat(t[1]),t[2]||"px"]:[e,"px"]}const yr=typeof window!="undefined";let wt=yr?()=>window.performance.now():()=>Date.now(),St=yr?e=>requestAnimationFrame(e):P;const re=new Set;function gr(e){re.forEach(t=>{t.c(e)||(re.delete(t),t.f())}),re.size!==0&&St(gr)}function Tt(e){let t;return re.size===0&&St(gr),{promise:new Promise(r=>{re.add(t={c:e,f:r})}),abort(){re.delete(t)}}}function E(e,t){e.appendChild(t)}function vr(e,t,r){const n=Ht(e);if(!n.getElementById(t)){const i=x("style");i.id=t,i.textContent=r,_r(n,i)}}function Ht(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function In(e){const t=x("style");return t.textContent="/* empty */",_r(Ht(e),t),t.sheet}function _r(e,t){return E(e.head||e,t),t.sheet}function L(e,t,r){e.insertBefore(t,r||null)}function C(e){e.parentNode&&e.parentNode.removeChild(e)}function Cn(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function x(e){return document.createElement(e)}function Ln(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function W(e){return document.createTextNode(e)}function k(){return W(" ")}function Pt(){return W("")}function Z(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function _(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}const Mn=["width","height"];function ie(e,t){const r=Object.getOwnPropertyDescriptors(e.__proto__);for(const n in t)t[n]==null?e.removeAttribute(n):n==="style"?e.style.cssText=t[n]:n==="__value"?e.value=e[n]=t[n]:r[n]&&r[n].set&&Mn.indexOf(n)===-1?e[n]=t[n]:_(e,n,t[n])}function Nn(e,t){for(const r in t)_(e,r,t[r])}function Rn(e,t,r){const n=t.toLowerCase();n in e?e[n]=typeof e[n]=="boolean"&&r===""?!0:r:t in e?e[t]=typeof e[t]=="boolean"&&r===""?!0:r:_(e,t,r)}function $n(e){return Array.from(e.childNodes)}function be(e,t){t=""+t,e.data!==t&&(e.data=t)}function Dn(e,t,r,n){r==null?e.style.removeProperty(t):e.style.setProperty(t,r,"")}function B(e,t,r){e.classList.toggle(t,!!r)}function Er(e,t,{bubbles:r=!1,cancelable:n=!1}={}){return new CustomEvent(e,{detail:t,bubbles:r,cancelable:n})}function Un(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}const Le=new Map;let Me=0;function kn(e){let t=5381,r=e.length;for(;r--;)t=(t<<5)-t^e.charCodeAt(r);return t>>>0}function Gn(e,t){const r={stylesheet:In(t),rules:{}};return Le.set(e,r),r}function xr(e,t,r,n,i,s,o,a=0){const u=16.666/n;let l=`{
|
|
2
|
+
`;for(let b=0;b<=1;b+=u){const H=t+(r-t)*s(b);l+=b*100+`%{${o(H,1-H)}}
|
|
3
|
+
`}const f=l+`100% {${o(r,1-r)}}
|
|
4
|
+
}`,c=`__svelte_${kn(f)}_${a}`,h=Ht(e),{stylesheet:d,rules:m}=Le.get(h)||Gn(h,e);m[c]||(m[c]=!0,d.insertRule(`@keyframes ${c} ${f}`,d.cssRules.length));const p=e.style.animation||"";return e.style.animation=`${p?`${p}, `:""}${c} ${n}ms linear ${i}ms 1 both`,Me+=1,c}function st(e,t){const r=(e.style.animation||"").split(", "),n=r.filter(t?s=>s.indexOf(t)<0:s=>s.indexOf("__svelte")===-1),i=r.length-n.length;i&&(e.style.animation=n.join(", "),Me-=i,Me||Fn())}function Fn(){St(()=>{Me||(Le.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&C(t)}),Le.clear())})}let ye;function me(e){ye=e}function wr(){if(!ye)throw new Error("Function called outside component initialization");return ye}function Sr(e){wr().$$.on_mount.push(e)}function jn(){const e=wr();return(t,r,{cancelable:n=!1}={})=>{const i=e.$$.callbacks[t];if(i){const s=Er(t,r,{cancelable:n});return i.slice().forEach(o=>{o.call(e,s)}),!s.defaultPrevented}return!0}}const ee=[],Ne=[];let ne=[];const kt=[],Tr=Promise.resolve();let ot=!1;function Hr(){ot||(ot=!0,Tr.then(O))}function zn(){return Hr(),Tr}function F(e){ne.push(e)}const Qe=new Set;let J=0;function O(){if(J!==0)return;const e=ye;do{try{for(;J<ee.length;){const t=ee[J];J++,me(t),Vn(t.$$)}}catch(t){throw ee.length=0,J=0,t}for(me(null),ee.length=0,J=0;Ne.length;)Ne.pop()();for(let t=0;t<ne.length;t+=1){const r=ne[t];Qe.has(r)||(Qe.add(r),r())}ne.length=0}while(ee.length);for(;kt.length;)kt.pop()();ot=!1,Qe.clear(),me(e)}function Vn(e){if(e.fragment!==null){e.update(),D(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(F)}}function Xn(e){const t=[],r=[];ne.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),ne=t}let pe;function Pr(){return pe||(pe=Promise.resolve(),pe.then(()=>{pe=null})),pe}function Re(e,t,r){e.dispatchEvent(Er(`${t?"intro":"outro"}${r}`))}const Be=new Set;let z;function Wn(){z={r:0,c:[],p:z}}function Zn(){z.r||D(z.c),z=z.p}function ge(e,t){e&&e.i&&(Be.delete(e),e.i(t))}function Yn(e,t,r,n){if(e&&e.o){if(Be.has(e))return;Be.add(e),z.c.push(()=>{Be.delete(e),n&&(r&&e.d(1),n())}),e.o(t)}else n&&n()}const Br={duration:0};function Fe(e,t,r){const n={direction:"in"};let i=t(e,r,n),s=!1,o,a,u=0;function l(){o&&st(e,o)}function f(){const{delay:h=0,duration:d=300,easing:m=ke,tick:p=P,css:b}=i||Br;b&&(o=xr(e,0,1,d,h,m,b,u++)),p(0,1);const H=wt()+h,A=H+d;a&&a.abort(),s=!0,F(()=>Re(e,!0,"start")),a=Tt(w=>{if(s){if(w>=A)return p(1,0),Re(e,!0,"end"),l(),s=!1;if(w>=H){const R=m((w-H)/d);p(R,1-R)}}return s})}let c=!1;return{start(){c||(c=!0,st(e),le(i)?(i=i(n),Pr().then(f)):f())},invalidate(){c=!1},end(){s&&(l(),s=!1)}}}function qn(e,t,r){const n={direction:"out"};let i=t(e,r,n),s=!0,o;const a=z;a.r+=1;let u;function l(){const{delay:f=0,duration:c=300,easing:h=ke,tick:d=P,css:m}=i||Br;m&&(o=xr(e,1,0,c,f,h,m));const p=wt()+f,b=p+c;F(()=>Re(e,!1,"start")),"inert"in e&&(u=e.inert,e.inert=!0),Tt(H=>{if(s){if(H>=b)return d(0,1),Re(e,!1,"end"),--a.r||D(a.c),!1;if(H>=p){const A=h((H-p)/c);d(1-A,A)}}return s})}return le(i)?Pr().then(()=>{i=i(n),l()}):l(),{end(f){f&&"inert"in e&&(e.inert=u),f&&i.tick&&i.tick(1,0),s&&(o&&st(e,o),s=!1)}}}function Qn(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Bt(e,t){const r={},n={},i={$$scope:1};let s=e.length;for(;s--;){const o=e[s],a=t[s];if(a){for(const u in o)u in a||(n[u]=1);for(const u in a)i[u]||(r[u]=a[u],i[u]=1);e[s]=a}else for(const u in o)i[u]=1}for(const o in n)o in r||(r[o]=void 0);return r}function Jn(e){e&&e.c()}function Ar(e,t,r){const{fragment:n,after_update:i}=e.$$;n&&n.m(t,r),F(()=>{const s=e.$$.on_mount.map(dr).filter(le);e.$$.on_destroy?e.$$.on_destroy.push(...s):D(s),e.$$.on_mount=[]}),i.forEach(F)}function Or(e,t){const r=e.$$;r.fragment!==null&&(Xn(r.after_update),D(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function Kn(e,t){e.$$.dirty[0]===-1&&(ee.push(e),Hr(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Ir(e,t,r,n,i,s,o=null,a=[-1]){const u=ye;me(e);const l=e.$$={fragment:null,ctx:[],props:s,update:P,not_equal:i,bound:Dt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:Dt(),dirty:a,skip_bound:!1,root:t.target||u.$$.root};o&&o(l.root);let f=!1;if(l.ctx=r?r(e,t.props||{},(c,h,...d)=>{const m=d.length?d[0]:h;return l.ctx&&i(l.ctx[c],l.ctx[c]=m)&&(!l.skip_bound&&l.bound[c]&&l.bound[c](m),f&&Kn(e,c)),h}):[],l.update(),f=!0,D(l.before_update),l.fragment=n?n(l.ctx):!1,t.target){if(t.hydrate){const c=$n(t.target);l.fragment&&l.fragment.l(c),c.forEach(C)}else l.fragment&&l.fragment.c();t.intro&&ge(e.$$.fragment),Ar(e,t.target,t.anchor),O()}me(u)}let Cr;typeof HTMLElement=="function"&&(Cr=class extends HTMLElement{constructor(t,r,n){super();N(this,"$$ctor");N(this,"$$s");N(this,"$$c");N(this,"$$cn",!1);N(this,"$$d",{});N(this,"$$r",!1);N(this,"$$p_d",{});N(this,"$$l",{});N(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}connectedCallback(){return $t(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let o;return{c:function(){o=x("slot"),s!=="default"&&_(o,"name",s)},m:function(l,f){L(l,o,f)},d:function(l){l&&C(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=Un(this);for(const s of this.$$s)s in n&&(r[s]=[t(s)]);for(const s of this.attributes){const o=this.$$g_p(s.name);o in this.$$d||(this.$$d[o]=Ae(o,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Rt(Nt({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const o=Ae(s,this.$$d[s],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,o)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const s in this.$$l)for(const o of this.$$l[s]){const a=this.$$c.$on(s,o);this.$$l_u.set(o,a)}this.$$l={}}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Ae(t,n,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(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Ae(e,t,r,n){var s;const i=(s=r[e])==null?void 0:s.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="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 Lr(e,t,r,n,i,s){let o=class extends Cr{constructor(){super(e,r,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(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(u){var l;u=Ae(a,u,t),this.$$d[a]=u,(l=this.$$c)==null||l.$set({[a]:u})}})}),n.forEach(a=>{Object.defineProperty(o.prototype,a,{get(){var u;return(u=this.$$c)==null?void 0:u[a]}})}),e.element=o,o}class Mr{constructor(){N(this,"$$");N(this,"$$set")}$destroy(){Or(this,1),this.$destroy=P}$on(t,r){if(!le(r))return P;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const i=n.indexOf(r);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!On(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ei="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ei);function Nr(e){const t=e-1;return t*t*t+1}function je(e,{delay:t=0,duration:r=400,easing:n=ke}={}){const i=+getComputedStyle(e).opacity;return{delay:t,duration:r,easing:n,css:s=>`opacity: ${s*i}`}}function ti(e,{delay:t=0,duration:r=400,easing:n=Nr,x:i=0,y:s=0,opacity:o=0}={}){const a=getComputedStyle(e),u=+a.opacity,l=a.transform==="none"?"":a.transform,f=u*(1-o),[c,h]=Ut(i),[d,m]=Ut(s);return{delay:t,duration:r,easing:n,css:(p,b)=>`
|
|
5
|
+
transform: ${l} translate(${(1-p)*c}${h}, ${(1-p)*d}${m});
|
|
6
|
+
opacity: ${u-f*b}`}}const te="__WIDGET_GLOBAL_STYLE_CACHE__";function Rr(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function $r(e,t){if(!e||!t)return;const r=new URL(t);fetch(r.href).then(n=>n.text()).then(n=>{const i=document.createElement("style");i.innerHTML=n,e&&e.appendChild(i)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function Dr(e,t,r,n=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!n)return r=ri(e,t),r;window[te]||(window[te]={}),r=ni(e,t);const s=r.unsubscribe.bind(r),o=()=>{if(window[te][t]){const a=window[te][t];a.refCount>1?a.refCount=a.refCount-1:delete window[te][t]}s()};return r.unsubscribe=o,r}function ri(e,t){const r=document.createElement("style");return window.emMessageBus.subscribe(t,n=>{e&&(r.innerHTML=n,e.appendChild(r))})}function ni(e,t){return window.emMessageBus.subscribe(t,r=>{if(!e)return;const n=e.getRootNode(),i=window[te];let s=i[t]&&i[t].sheet;s?i[t].refCount=i[t].refCount+1:(s=new CSSStyleSheet,s.replaceSync(r),i[t]={sheet:s,refCount:1});const o=n.adoptedStyleSheets||[];o.includes(s)||(n.adoptedStyleSheets=[...o,s])})}/*! *****************************************************************************
|
|
7
|
+
Copyright (c) Microsoft Corporation.
|
|
8
|
+
|
|
9
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
10
|
+
purpose with or without fee is hereby granted.
|
|
11
|
+
|
|
12
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
13
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
14
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
15
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
16
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
17
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
18
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
19
|
+
***************************************************************************** */var at=function(e,t){return at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},at(e,t)};function Ee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");at(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function ut(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function lt(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s}function ft(e,t,r){if(arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||t)}function G(e){return typeof e=="function"}function Ur(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Je=Ur(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
20
|
+
`+r.map(function(n,i){return i+1+") "+n.toString()}).join(`
|
|
21
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function ct(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var ze=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,i,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=ut(o),u=a.next();!u.done;u=a.next()){var l=u.value;l.remove(this)}}catch(p){t={error:p}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else o.remove(this);var f=this.initialTeardown;if(G(f))try{f()}catch(p){s=p instanceof Je?p.errors:[p]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var h=ut(c),d=h.next();!d.done;d=h.next()){var m=d.value;try{Gt(m)}catch(p){s=s!=null?s:[],p instanceof Je?s=ft(ft([],lt(s)),lt(p.errors)):s.push(p)}}}catch(p){n={error:p}}finally{try{d&&!d.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}}if(s)throw new Je(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Gt(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&ct(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&ct(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),kr=ze.EMPTY;function Gr(e){return e instanceof ze||e&&"closed"in e&&G(e.remove)&&G(e.add)&&G(e.unsubscribe)}function Gt(e){G(e)?e():e.unsubscribe()}var ii={Promise:void 0},si={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,ft([e,t],lt(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function oi(e){si.setTimeout(function(){throw e})}function Ft(){}function Oe(e){e()}var Fr=function(e){Ee(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Gr(r)&&r.add(n)):n.destination=li,n}return t.create=function(r,n,i){return new ht(r,n,i)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(ze),ai=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){He(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){He(n)}else He(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){He(r)}},e}(),ht=function(e){Ee(t,e);function t(r,n,i){var s=e.call(this)||this,o;return G(r)||!r?o={next:r!=null?r:void 0,error:n!=null?n:void 0,complete:i!=null?i:void 0}:o=r,s.destination=new ai(o),s}return t}(Fr);function He(e){oi(e)}function ui(e){throw e}var li={closed:!0,next:Ft,error:ui,complete:Ft},fi=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ci(e){return e}function hi(e){return e.length===0?ci:e.length===1?e[0]:function(r){return e.reduce(function(n,i){return i(n)},r)}}var jt=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var i=this,s=di(t)?t:new ht(t,r,n);return Oe(function(){var o=i,a=o.operator,u=o.source;s.add(a?a.call(s,u):u?i._subscribe(s):i._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=zt(r),new r(function(i,s){var o=new ht({next:function(a){try{t(a)}catch(u){s(u),o.unsubscribe()}},error:s,complete:i});n.subscribe(o)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[fi]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return hi(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=zt(t),new t(function(n,i){var s;r.subscribe(function(o){return s=o},function(o){return i(o)},function(){return n(s)})})},e.create=function(t){return new e(t)},e}();function zt(e){var t;return(t=e!=null?e:ii.Promise)!==null&&t!==void 0?t:Promise}function pi(e){return e&&G(e.next)&&G(e.error)&&G(e.complete)}function di(e){return e&&e instanceof Fr||pi(e)&&Gr(e)}var mi=Ur(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),jr=function(e){Ee(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new Vt(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new mi},t.prototype.next=function(r){var n=this;Oe(function(){var i,s;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var o=ut(n.currentObservers),a=o.next();!a.done;a=o.next()){var u=a.value;u.next(r)}}catch(l){i={error:l}}finally{try{a&&!a.done&&(s=o.return)&&s.call(o)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;Oe(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;Oe(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,i=this,s=i.hasError,o=i.isStopped,a=i.observers;return s||o?kr:(this.currentObservers=null,a.push(r),new ze(function(){n.currentObservers=null,ct(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,s=n.thrownError,o=n.isStopped;i?r.error(s):o&&r.complete()},t.prototype.asObservable=function(){var r=new jt;return r.source=this,r},t.create=function(r,n){return new Vt(r,n)},t}(jt),Vt=function(e){Ee(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},t.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:kr},t}(jr),zr={now:function(){return(zr.delegate||Date).now()},delegate:void 0},bi=function(e){Ee(t,e);function t(r,n,i){r===void 0&&(r=1/0),n===void 0&&(n=1/0),i===void 0&&(i=zr);var s=e.call(this)||this;return s._bufferSize=r,s._windowTime=n,s._timestampProvider=i,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=n===1/0,s._bufferSize=Math.max(1,r),s._windowTime=Math.max(1,n),s}return t.prototype.next=function(r){var n=this,i=n.isStopped,s=n._buffer,o=n._infiniteTimeWindow,a=n._timestampProvider,u=n._windowTime;i||(s.push(r),!o&&s.push(a.now()+u)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),i=this,s=i._infiniteTimeWindow,o=i._buffer,a=o.slice(),u=0;u<a.length&&!r.closed;u+=s?1:2)r.next(a[u]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,i=r._timestampProvider,s=r._buffer,o=r._infiniteTimeWindow,a=(o?1:2)*n;if(n<1/0&&a<s.length&&s.splice(0,s.length-a),!o){for(var u=i.now(),l=0,f=1;f<s.length&&s[f]<=u;f+=2)l=f;l&&s.splice(0,l+1)}},t}(jr);const Xt=[],Wt={},yi=(e,t=0)=>{if(Xt.indexOf(e)==-1){const r=new bi(t);Wt[e]=r,Xt.push(e)}return Wt[e]},K=[];function gi(e,t){return{subscribe:xe(e,t).subscribe}}function xe(e,t=P){let r;const n=new Set;function i(a){if(xt(e,a)&&(e=a,r)){const u=!K.length;for(const l of n)l[1](),K.push(l,e);if(u){for(let l=0;l<K.length;l+=2)K[l][0](K[l+1]);K.length=0}}}function s(a){i(a(e))}function o(a,u=P){const l=[a,u];return n.add(l),n.size===1&&(r=t(i,s)||P),a(e),()=>{n.delete(l),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:o}}function fe(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=t.length<2;return gi(r,(o,a)=>{let u=!1;const l=[];let f=0,c=P;const h=()=>{if(f)return;c();const m=t(n?l[0]:l,o,a);s?o(m):c=le(m)?m:P},d=i.map((m,p)=>mr(m,b=>{l[p]=b,f&=~(1<<p),u&&h()},()=>{f|=1<<p}));return u=!0,h(),function(){D(d),c(),u=!1}})}function vi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _i=function(t){return Ei(t)&&!xi(t)};function Ei(e){return!!e&&typeof e=="object"}function xi(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Ti(e)}var wi=typeof Symbol=="function"&&Symbol.for,Si=wi?Symbol.for("react.element"):60103;function Ti(e){return e.$$typeof===Si}function Hi(e){return Array.isArray(e)?[]:{}}function ve(e,t){return t.clone!==!1&&t.isMergeableObject(e)?se(Hi(e),e,t):e}function Pi(e,t,r){return e.concat(t).map(function(n){return ve(n,r)})}function Bi(e,t){if(!t.customMerge)return se;var r=t.customMerge(e);return typeof r=="function"?r:se}function Ai(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Zt(e){return Object.keys(e).concat(Ai(e))}function Vr(e,t){try{return t in e}catch(r){return!1}}function Oi(e,t){return Vr(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Ii(e,t,r){var n={};return r.isMergeableObject(e)&&Zt(e).forEach(function(i){n[i]=ve(e[i],r)}),Zt(t).forEach(function(i){Oi(e,i)||(Vr(e,i)&&r.isMergeableObject(t[i])?n[i]=Bi(i,r)(e[i],t[i],r):n[i]=ve(t[i],r))}),n}function se(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Pi,r.isMergeableObject=r.isMergeableObject||_i,r.cloneUnlessOtherwiseSpecified=ve;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):Ii(e,t,r):ve(t,r)}se.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return se(n,i,r)},{})};var Ci=se,Li=Ci;const Mi=vi(Li);var pt=function(e,t){return pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},pt(e,t)};function Ve(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");pt(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var $=function(){return $=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},$.apply(this,arguments)};function Ni(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Ke(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}function et(e,t){var r=t&&t.cache?t.cache:Fi,n=t&&t.serializer?t.serializer:ki,i=t&&t.strategy?t.strategy:Di;return i(e,{cache:r,serializer:n})}function Ri(e){return e==null||typeof e=="number"||typeof e=="boolean"}function $i(e,t,r,n){var i=Ri(n)?n:r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.call(this,n),t.set(i,s)),s}function Xr(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.apply(this,n),t.set(i,s)),s}function Wr(e,t,r,n,i){return r.bind(t,e,n,i)}function Di(e,t){var r=e.length===1?$i:Xr;return Wr(e,this,r,t.cache.create(),t.serializer)}function Ui(e,t){return Wr(e,this,Xr,t.cache.create(),t.serializer)}var ki=function(){return JSON.stringify(arguments)},Gi=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e}(),Fi={create:function(){return new Gi}},tt={variadic:Ui},$e=function(){return $e=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},$e.apply(this,arguments)};var y;(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"})(y||(y={}));var S;(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"})(S||(S={}));var oe;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(oe||(oe={}));function Yt(e){return e.type===S.literal}function ji(e){return e.type===S.argument}function Zr(e){return e.type===S.number}function Yr(e){return e.type===S.date}function qr(e){return e.type===S.time}function Qr(e){return e.type===S.select}function Jr(e){return e.type===S.plural}function zi(e){return e.type===S.pound}function Kr(e){return e.type===S.tag}function en(e){return!!(e&&typeof e=="object"&&e.type===oe.number)}function dt(e){return!!(e&&typeof e=="object"&&e.type===oe.dateTime)}var tn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Vi=/(?:[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 Xi(e){var t={};return e.replace(Vi,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===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"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-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=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-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"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-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"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<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 T=function(){return T=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},T.apply(this,arguments)};var Wi=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Zi(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Wi).filter(function(h){return h.length>0}),r=[],n=0,i=t;n<i.length;n++){var s=i[n],o=s.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var a=o[0],u=o.slice(1),l=0,f=u;l<f.length;l++){var c=f[l];if(c.length===0)throw new Error("Invalid number skeleton")}r.push({stem:a,options:u})}return r}function Yi(e){return e.replace(/^(.*?)-/,"")}var qt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,rn=/^(@+)?(\+|#+)?[rs]?$/g,qi=/(\*)(0+)|(#+)(0+)|(0+)/g,nn=/^(0+)$/;function Qt(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(rn,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function sn(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 Qi(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 r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!nn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Jt(e){var t={},r=sn(e);return r||t}function Ji(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];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=Yi(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=T(T(T({},t),{notation:"scientific"}),i.options.reduce(function(u,l){return T(T({},u),Jt(l))},{}));continue;case"engineering":t=T(T(T({},t),{notation:"engineering"}),i.options.reduce(function(u,l){return T(T({},u),Jt(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(qi,function(u,l,f,c,h,d){if(l)t.minimumIntegerDigits=f.length;else{if(c&&h)throw new Error("We currently do not support maximum integer digits");if(d)throw new Error("We currently do not support exact integer digits")}return""});continue}if(nn.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(qt.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(qt,function(u,l,f,c,h,d){return f==="*"?t.minimumFractionDigits=l.length:c&&c[0]==="#"?t.maximumFractionDigits=c.length:h&&d?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+d.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var s=i.options[0];s==="w"?t=T(T({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=T(T({},t),Qt(s)));continue}if(rn.test(i.stem)){t=T(T({},t),Qt(i.stem));continue}var o=sn(i.stem);o&&(t=T(T({},t),o));var a=Qi(i.stem);a&&(t=T(T({},t),a))}return t}var Pe={"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 Ki(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var s=0;n+1<e.length&&e.charAt(n+1)===i;)s++,n++;var o=1+(s&1),a=s<2?1:3+(s>>1),u="a",l=es(t);for((l=="H"||l=="k")&&(a=0);a-- >0;)r+=u;for(;o-- >0;)r=l+r}else i==="J"?r+="H":r+=i}return r}function es(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 r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=Pe[n||""]||Pe[r||""]||Pe["".concat(r,"-001")]||Pe["001"];return i[0]}var rt,ts=new RegExp("^".concat(tn.source,"*")),rs=new RegExp("".concat(tn.source,"*$"));function g(e,t){return{start:e,end:t}}var ns=!!String.prototype.startsWith&&"_a".startsWith("a",1),is=!!String.fromCodePoint,ss=!!Object.fromEntries,os=!!String.prototype.codePointAt,as=!!String.prototype.trimStart,us=!!String.prototype.trimEnd,ls=!!Number.isSafeInteger,fs=ls?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},mt=!0;try{var cs=an("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");mt=((rt=cs.exec("a"))===null||rt===void 0?void 0:rt[0])==="a"}catch(e){mt=!1}var Kt=ns?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},bt=is?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,s=0,o;i>s;){if(o=t[s++],o>1114111)throw RangeError(o+" is not a valid code point");n+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return n},er=ss?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var s=i[n],o=s[0],a=s[1];r[o]=a}return r},on=os?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),s;return i<55296||i>56319||r+1===n||(s=t.charCodeAt(r+1))<56320||s>57343?i:(i-55296<<10)+(s-56320)+65536}},hs=as?function(t){return t.trimStart()}:function(t){return t.replace(ts,"")},ps=us?function(t){return t.trimEnd()}:function(t){return t.replace(rs,"")};function an(e,t){return new RegExp(e,t)}var yt;if(mt){var tr=an("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");yt=function(t,r){var n;tr.lastIndex=r;var i=tr.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else yt=function(t,r){for(var n=[];;){var i=on(t,r);if(i===void 0||un(i)||ys(i))break;n.push(i),r+=i>=65536?2:1}return bt.apply(void 0,n)};var ds=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.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,r,n){for(var i=[];!this.isEOF();){var s=this.char();if(s===123){var o=this.parseArgument(t,n);if(o.err)return o;i.push(o.val)}else{if(s===125&&t>0)break;if(s===35&&(r==="plural"||r==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:S.pound,location:g(a,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(y.UNMATCHED_CLOSING_TAG,g(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&>(this.peek()||0)){var o=this.parseTag(t,r);if(o.err)return o;i.push(o.val)}else{var o=this.parseLiteral(t,r);if(o.err)return o;i.push(o.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:S.literal,value:"<".concat(i,"/>"),location:g(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,r,!0);if(s.err)return s;var o=s.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!gt(this.char()))return this.error(y.INVALID_TAG,g(a,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(y.UNMATCHED_CLOSING_TAG,g(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:S.tag,value:i,children:o,location:g(n,this.clonePosition())},err:null}:this.error(y.INVALID_TAG,g(a,this.clonePosition())))}else return this.error(y.UNCLOSED_TAG,g(n,this.clonePosition()))}else return this.error(y.INVALID_TAG,g(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&bs(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var s=this.tryParseQuote(r);if(s){i+=s;continue}var o=this.tryParseUnquoted(t,r);if(o){i+=o;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var u=g(n,this.clonePosition());return{val:{type:S.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!ms(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return bt.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),bt(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,g(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(y.EMPTY_ARGUMENT,g(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(y.MALFORMED_ARGUMENT,g(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,g(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:S.argument,value:i,location:g(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,g(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(y.MALFORMED_ARGUMENT,g(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=yt(this.message,r),i=r+n.length;this.bumpTo(i);var s=this.clonePosition(),o=g(t,s);return{value:n,location:o}},e.prototype.parseArgumentOptions=function(t,r,n,i){var s,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(a){case"":return this.error(y.EXPECT_ARGUMENT_TYPE,g(o,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var h=ps(c.val);if(h.length===0)return this.error(y.EXPECT_ARGUMENT_STYLE,g(this.clonePosition(),this.clonePosition()));var d=g(f,this.clonePosition());l={style:h,styleLocation:d}}var m=this.tryParseArgumentClose(i);if(m.err)return m;var p=g(i,this.clonePosition());if(l&&Kt(l==null?void 0:l.style,"::",0)){var b=hs(l.style.slice(2));if(a==="number"){var c=this.parseNumberSkeletonFromString(b,l.styleLocation);return c.err?c:{val:{type:S.number,value:n,location:p,style:c.val},err:null}}else{if(b.length===0)return this.error(y.EXPECT_DATE_TIME_SKELETON,p);var H=b;this.locale&&(H=Ki(b,this.locale));var h={type:oe.dateTime,pattern:H,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Xi(H):{}},A=a==="date"?S.date:S.time;return{val:{type:A,value:n,location:p,style:h},err:null}}}return{val:{type:a==="number"?S.number:a==="date"?S.date:S.time,value:n,location:p,style:(s=l==null?void 0:l.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var w=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS,g(w,$e({},w)));this.bumpSpace();var R=this.parseIdentifierIfPossible(),M=0;if(a!=="select"&&R.value==="offset"){if(!this.bumpIf(":"))return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,g(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),R=this.parseIdentifierIfPossible(),M=c.val}var Q=this.tryParsePluralOrSelectOptions(t,a,r,R);if(Q.err)return Q;var m=this.tryParseArgumentClose(i);if(m.err)return m;var X=g(i,this.clonePosition());return a==="select"?{val:{type:S.select,value:n,options:er(Q.val),location:X},err:null}:{val:{type:S.plural,value:n,options:er(Q.val),offset:M,pluralType:a==="plural"?"cardinal":"ordinal",location:X},err:null}}default:return this.error(y.INVALID_ARGUMENT_TYPE,g(o,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,g(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,g(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=Zi(t)}catch(i){return this.error(y.INVALID_NUMBER_SKELETON,r)}return{val:{type:oe.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Ji(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var s,o=!1,a=[],u=new Set,l=i.value,f=i.location;;){if(l.length===0){var c=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR,y.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;f=g(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}else break}if(u.has(l))return this.error(r==="select"?y.DUPLICATE_SELECT_ARGUMENT_SELECTOR:y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);l==="other"&&(o=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,g(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,r,n);if(m.err)return m;var p=this.tryParseArgumentClose(d);if(p.err)return p;a.push([l,{value:m.val,location:g(d,this.clonePosition())}]),u.add(l),this.bumpSpace(),s=this.parseIdentifierIfPossible(),l=s.value,f=s.location}return a.length===0?this.error(r==="select"?y.EXPECT_SELECT_ARGUMENT_SELECTOR:y.EXPECT_PLURAL_ARGUMENT_SELECTOR,g(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(y.MISSING_OTHER_CLAUSE,g(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var s=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)s=!0,o=o*10+(a-48),this.bump();else break}var u=g(i,this.clonePosition());return s?(o*=n,fs(o)?{val:o,err:null}:this.error(r,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 r=on(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},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(Kt(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!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 r=this.offset();if(r===t)break;if(r>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()&&un(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function gt(e){return e>=97&&e<=122||e>=65&&e<=90}function ms(e){return gt(e)||e===47}function bs(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 un(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function ys(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 vt(e){e.forEach(function(t){if(delete t.location,Qr(t)||Jr(t))for(var r in t.options)delete t.options[r].location,vt(t.options[r].value);else Zr(t)&&en(t.style)||(Yr(t)||qr(t))&&dt(t.style)?delete t.style.location:Kr(t)&&vt(t.children)})}function gs(e,t){t===void 0&&(t={}),t=$e({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new ds(e,t).parse();if(r.err){var n=SyntaxError(y[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||vt(r.val),r.val}var ae;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(ae||(ae={}));var Xe=function(e){Ve(t,e);function t(r,n,i){var s=e.call(this,r)||this;return s.code=n,s.originalMessage=i,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),rr=function(e){Ve(t,e);function t(r,n,i,s){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),ae.INVALID_VALUE,s)||this}return t}(Xe),vs=function(e){Ve(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),ae.INVALID_VALUE,i)||this}return t}(Xe),_s=function(e){Ve(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),ae.MISSING_VALUE,n)||this}return t}(Xe),I;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(I||(I={}));function Es(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==I.literal||r.type!==I.literal?t.push(r):n.value+=r.value,t},[])}function xs(e){return typeof e=="function"}function Ie(e,t,r,n,i,s,o){if(e.length===1&&Yt(e[0]))return[{type:I.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var f=l[u];if(Yt(f)){a.push({type:I.literal,value:f.value});continue}if(zi(f)){typeof s=="number"&&a.push({type:I.literal,value:r.getNumberFormat(t).format(s)});continue}var c=f.value;if(!(i&&c in i))throw new _s(c,o);var h=i[c];if(ji(f)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),a.push({type:typeof h=="string"?I.literal:I.object,value:h});continue}if(Yr(f)){var d=typeof f.style=="string"?n.date[f.style]:dt(f.style)?f.style.parsedOptions:void 0;a.push({type:I.literal,value:r.getDateTimeFormat(t,d).format(h)});continue}if(qr(f)){var d=typeof f.style=="string"?n.time[f.style]:dt(f.style)?f.style.parsedOptions:n.time.medium;a.push({type:I.literal,value:r.getDateTimeFormat(t,d).format(h)});continue}if(Zr(f)){var d=typeof f.style=="string"?n.number[f.style]:en(f.style)?f.style.parsedOptions:void 0;d&&d.scale&&(h=h*(d.scale||1)),a.push({type:I.literal,value:r.getNumberFormat(t,d).format(h)});continue}if(Kr(f)){var m=f.children,p=f.value,b=i[p];if(!xs(b))throw new vs(p,"function",o);var H=Ie(m,t,r,n,i,s),A=b(H.map(function(M){return M.value}));Array.isArray(A)||(A=[A]),a.push.apply(a,A.map(function(M){return{type:typeof M=="string"?I.literal:I.object,value:M}}))}if(Qr(f)){var w=f.options[h]||f.options.other;if(!w)throw new rr(f.value,h,Object.keys(f.options),o);a.push.apply(a,Ie(w.value,t,r,n,i));continue}if(Jr(f)){var w=f.options["=".concat(h)];if(!w){if(!Intl.PluralRules)throw new Xe(`Intl.PluralRules is not available in this environment.
|
|
22
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
23
|
+
`,ae.MISSING_INTL_API,o);var R=r.getPluralRules(t,{type:f.pluralType}).select(h-(f.offset||0));w=f.options[R]||f.options.other}if(!w)throw new rr(f.value,h,Object.keys(f.options),o);a.push.apply(a,Ie(w.value,t,r,n,i,h-(f.offset||0)));continue}}return Es(a)}function ws(e,t){return t?$($($({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=$($({},e[n]),t[n]||{}),r},{})):e}function Ss(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=ws(e[n],t[n]),r},$({},e)):e}function nt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Ts(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:et(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Ke([void 0],r,!1)))},{cache:nt(e.number),strategy:tt.variadic}),getDateTimeFormat:et(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Ke([void 0],r,!1)))},{cache:nt(e.dateTime),strategy:tt.variadic}),getPluralRules:et(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Ke([void 0],r,!1)))},{cache:nt(e.pluralRules),strategy:tt.variadic})}}var Hs=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=s.formatToParts(u);if(l.length===1)return l[0].value;var f=l.reduce(function(c,h){return!c.length||h.type!==I.literal||typeof c[c.length-1]!="string"?c.push(h.value):c[c.length-1]+=h.value,c},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(u){return Ie(s.ast,s.locales,s.formatters,s.formats,u,void 0,s.message)},this.resolvedOptions=function(){var u;return{locale:((u=s.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=i||{};o.formatters;var a=Ni(o,["formatters"]);this.ast=e.__parse(t,$($({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Ss(e.formats,n),this.formatters=i&&i.formatters||Ts(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=gs,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function Ps(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const s=r.slice(i,r.length).join(".");if(s in n){n=n[s];break}}n=n[r[i]]}else n=void 0;return n}const V={},Bs=(e,t,r)=>r&&(t in V||(V[t]={}),e in V[t]||(V[t][e]=r),r),ln=(e,t)=>{if(t==null)return;if(t in V&&e in V[t])return V[t][e];const r=We(t);for(let n=0;n<r.length;n++){const i=r[n],s=Os(i,e);if(s)return Bs(e,t,s)}};let At;const Y=xe({});function As(e){return At[e]||null}function fn(e){return e in At}function Os(e,t){if(!fn(e))return null;const r=As(e);return Ps(r,t)}function Is(e){if(e==null)return;const t=We(e);for(let r=0;r<t.length;r++){const n=t[r];if(fn(n))return n}}function Ot(e,...t){delete V[e],Y.update(r=>(r[e]=Mi.all([r[e]||{},...t]),r))}fe([Y],([e])=>Object.keys(e));Y.subscribe(e=>At=e);const Ce={};function Cs(e,t){Ce[e].delete(t),Ce[e].size===0&&delete Ce[e]}function cn(e){return Ce[e]}function Ls(e){return We(e).map(t=>{const r=cn(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function _t(e){return e==null?!1:We(e).some(t=>{var r;return(r=cn(t))==null?void 0:r.size})}function Ms(e,t){return Promise.all(t.map(n=>(Cs(e,n),n().then(i=>i.default||i)))).then(n=>Ot(e,...n))}const de={};function hn(e){if(!_t(e))return e in de?de[e]:Promise.resolve();const t=Ls(e);return de[e]=Promise.all(t.map(([r,n])=>Ms(r,n))).then(()=>{if(_t(e))return hn(e);delete de[e]}),de[e]}const Ns={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},Rs={fallbackLocale:null,loadingDelay:200,formats:Ns,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},$s=Rs;function ue(){return $s}const it=xe(!1);var Ds=Object.defineProperty,Us=Object.defineProperties,ks=Object.getOwnPropertyDescriptors,nr=Object.getOwnPropertySymbols,Gs=Object.prototype.hasOwnProperty,Fs=Object.prototype.propertyIsEnumerable,ir=(e,t,r)=>t in e?Ds(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,js=(e,t)=>{for(var r in t||(t={}))Gs.call(t,r)&&ir(e,r,t[r]);if(nr)for(var r of nr(t))Fs.call(t,r)&&ir(e,r,t[r]);return e},zs=(e,t)=>Us(e,ks(t));let Et;const De=xe(null);function sr(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function We(e,t=ue().fallbackLocale){const r=sr(e);return t?[...new Set([...r,...sr(t)])]:r}function q(){return Et!=null?Et:void 0}De.subscribe(e=>{Et=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Vs=e=>{if(e&&Is(e)&&_t(e)){const{loadingDelay:t}=ue();let r;return typeof window!="undefined"&&q()!=null&&t?r=window.setTimeout(()=>it.set(!0),t):it.set(!0),hn(e).then(()=>{De.set(e)}).finally(()=>{clearTimeout(r),it.set(!1)})}return De.set(e)},j=zs(js({},De),{set:Vs}),Ze=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var Xs=Object.defineProperty,Ue=Object.getOwnPropertySymbols,pn=Object.prototype.hasOwnProperty,dn=Object.prototype.propertyIsEnumerable,or=(e,t,r)=>t in e?Xs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,It=(e,t)=>{for(var r in t||(t={}))pn.call(t,r)&&or(e,r,t[r]);if(Ue)for(var r of Ue(t))dn.call(t,r)&&or(e,r,t[r]);return e},ce=(e,t)=>{var r={};for(var n in e)pn.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ue)for(var n of Ue(e))t.indexOf(n)<0&&dn.call(e,n)&&(r[n]=e[n]);return r};const _e=(e,t)=>{const{formats:r}=ue();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Ws=Ze(e=>{var t=e,{locale:r,format:n}=t,i=ce(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=_e("number",n)),new Intl.NumberFormat(r,i)}),Zs=Ze(e=>{var t=e,{locale:r,format:n}=t,i=ce(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=_e("date",n):Object.keys(i).length===0&&(i=_e("date","short")),new Intl.DateTimeFormat(r,i)}),Ys=Ze(e=>{var t=e,{locale:r,format:n}=t,i=ce(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=_e("time",n):Object.keys(i).length===0&&(i=_e("time","short")),new Intl.DateTimeFormat(r,i)}),qs=(e={})=>{var t=e,{locale:r=q()}=t,n=ce(t,["locale"]);return Ws(It({locale:r},n))},Qs=(e={})=>{var t=e,{locale:r=q()}=t,n=ce(t,["locale"]);return Zs(It({locale:r},n))},Js=(e={})=>{var t=e,{locale:r=q()}=t,n=ce(t,["locale"]);return Ys(It({locale:r},n))},Ks=Ze((e,t=q())=>new Hs(e,t,ue().formats,{ignoreTag:ue().ignoreTag})),eo=(e,t={})=>{var r,n,i,s;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:a,locale:u=q(),default:l}=o;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=ln(e,u);if(!f)f=(s=(i=(n=(r=ue()).handleMissingMessage)==null?void 0:n.call(r,{locale:u,id:e,defaultValue:l}))!=null?i:l)!=null?s:e;else if(typeof f!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),f;if(!a)return f;let c=f;try{c=Ks(f,u).format(a)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,h.message)}return c},to=(e,t)=>Js(t).format(e),ro=(e,t)=>Qs(t).format(e),no=(e,t)=>qs(t).format(e),io=(e,t=q())=>ln(e,t),mn=fe([j,Y],()=>eo);fe([j],()=>to);fe([j],()=>ro);fe([j],()=>no);fe([j,Y],()=>io);window.emWidgets={topic:yi};const bn=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));String(Number.MAX_SAFE_INTEGER).length;const ar={en:{History:"History",Play:"Play",CoinRoyale:"CoinRoyale",MysteryChest:"MysteryChest",LuckyWheels:"LuckyWheels",InfoTooltipCoin:"Flip a virtual coin and take a chance to win!",InfoTooltipChest:"Open Mystery Chest and find your reward!",InfoTooltipLuckywheel:"Spin a lucky wheel and take a chance to win!"}};function so({withLocale:e,translations:t}){j.subscribe(r=>{r==null&&(Y.set(t),j.set(e))})}function yn(e,t){Ot(e,t)}function oo(e){j.set(e)}const ao=()=>{so({withLocale:"en",translations:{}}),Object.keys(ar).forEach(e=>{yn(e,ar[e])})};if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./PrizeEngineHistory-BpILiR5F.cjs")).then(({default:t})=>{!customElements.get("prize-engine-history")&&customElements.define("prize-engine-history",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./PrizeEngineDetails-BB_QSozG.cjs")).then(({default:t})=>{!customElements.get("prize-engine-details")&&customElements.define("prize-engine-details",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./PrizeEngineList-QzCyrAut.cjs")).then(({default:t})=>{!customElements.get("prize-engine-list")&&customElements.define("prize-engine-list",t.element)})}function uo(e){vr(e,"svelte-iscrfi",`.PrizeSuiteContainer.svelte-iscrfi.svelte-iscrfi{width:100%;height:100%;position:relative;font-family:var(--emw--font-family-primary, "Ubuntu", sans-serif)}.PrizeSuiteContainer.Mobile.svelte-iscrfi .MainDrawer.Drawer.svelte-iscrfi{width:100%;height:100%;border-top-left-radius:28px;border-top-right-radius:28px;padding:20px 28px}.PrizeSuiteContainer.Mobile.svelte-iscrfi .MainDrawer.Drawer.full-width.svelte-iscrfi{padding:0}.PrizeSuiteContainer.Mobile.svelte-iscrfi .MainDrawer.Drawer .HeaderTitle.svelte-iscrfi{font-size:var(--emw--font-size-medium, 16px);font-weight:500}.PrizeSuiteContainer.Mobile.svelte-iscrfi .IconButton.svelte-iscrfi{width:24px;height:24px}.PrizeSuiteContainer.Mobile.svelte-iscrfi .TooltipBackdrop.svelte-iscrfi{padding:60px 20px 0;border-top-left-radius:28px;border-top-right-radius:28px}.PrizeSuiteContainer.Mobile.svelte-iscrfi .TooltipBackdrop .Tooltip.svelte-iscrfi{padding:20px;font-size:var(--emw--font-size-x-small, 12px)}.PrizeSuiteContainer.Mobile.svelte-iscrfi .TabItem.svelte-iscrfi{font-size:var(--emw--font-size-xs, 10px);font-weight:700}.Overlay.svelte-iscrfi.svelte-iscrfi{border:none;position:fixed;top:0;left:0;width:100%;height:100%;z-index:99;background-color:var(--emw--color-gray-transparency-20, rgba(21, 43, 48, 0.5));padding:0;cursor:default}.MainDrawer.svelte-iscrfi.svelte-iscrfi{width:100%;height:100%;display:flex;flex-direction:column;box-sizing:border-box;position:relative;overflow:hidden}.MainDrawer.Drawer.svelte-iscrfi.svelte-iscrfi{position:fixed;left:50%;transform:translateX(-50%);bottom:0px;z-index:100;width:60%;height:90%;border-top-left-radius:72px;border-top-right-radius:72px;padding:40px 80px;background:linear-gradient(180deg, var(--emw--color-background, #213841) 0%, var(--emw--color-background-secondary, #0c1a1c) 100%)}.MainDrawer.Drawer.full-width.svelte-iscrfi.svelte-iscrfi{padding:0}.Header.svelte-iscrfi.svelte-iscrfi{display:flex;justify-content:space-between;align-items:center;padding:12px 8px 24px;flex-shrink:0}.Header.svelte-iscrfi .HeaderTitle.svelte-iscrfi{color:var(--emw--color-primary, #d3ffed);font-size:var(--emw--font-size-large, 22px);font-weight:700;text-align:center;flex-grow:1}.IconButton.svelte-iscrfi.svelte-iscrfi{width:30px;height:30px;border:0;cursor:pointer;background-color:transparent;background-size:100%;background-repeat:no-repeat;padding:0}.IconButton.Close.svelte-iscrfi.svelte-iscrfi{background-image:url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18 6 6 18M6 6l12 12" stroke="%23729787" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>')}.IconButton.Help.svelte-iscrfi.svelte-iscrfi{background-image:url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M11.708 4.583a7.125 7.125 0 1 0 0 14.25 7.125 7.125 0 0 0 0-14.25ZM3 11.708a8.708 8.708 0 1 1 17.417 0 8.708 8.708 0 0 1-17.417 0Zm8.913-3.147a1.583 1.583 0 0 0-1.762 1.035.792.792 0 0 1-1.493-.525 3.167 3.167 0 0 1 6.154 1.055c0 1.211-.899 2.011-1.54 2.439a6.37 6.37 0 0 1-1.335.672l-.028.01-.008.002-.003.001h-.002l-.251-.75.25.751a.792.792 0 0 1-.5-1.502l.011-.004.06-.022a4.778 4.778 0 0 0 .928-.476c.545-.363.834-.75.834-1.122v-.001a1.583 1.583 0 0 0-1.315-1.563Zm-.996 7.106c0-.438.354-.792.791-.792h.008a.792.792 0 1 1 0 1.583h-.008a.792.792 0 0 1-.791-.791Z" fill="%23729787"/></svg>')}.TooltipBackdrop.svelte-iscrfi.svelte-iscrfi{box-sizing:border-box;z-index:200;position:absolute;width:100%;height:100%;inset:0;background-color:rgba(0, 0, 0, 0.5);padding:90px 30px 0;border-top-left-radius:72px;border-top-right-radius:72px}.TooltipBackdrop.svelte-iscrfi .Tooltip.svelte-iscrfi{border:1px solid var(--emw--button-border-color, #75ffe9);background:var(--emw--color-background, #213841);border-radius:8px;line-height:24px;color:var(--emw--color-secondary, #bbb9c3);position:relative;padding:32px;font-size:var(--emw--font-size-medium, 16px)}.TooltipBackdrop.svelte-iscrfi .Tooltip .IconButton.Close.svelte-iscrfi{top:12px;right:12px;position:absolute}.TabBar.svelte-iscrfi.svelte-iscrfi{display:flex;border-bottom:2px solid var(--emw--color-secondary, #729787);margin:0 0 20px;flex-shrink:0}.TabBar.svelte-iscrfi .TabItem.svelte-iscrfi{flex:1;padding:12px;background:transparent;border:none;color:var(--emw--color-gray-300, #729787);font-weight:700;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);transition:all 0.2s}.TabBar.svelte-iscrfi .TabItem.active.svelte-iscrfi{color:var(--emw--color-white, #ffffff);border-bottom:2px solid var(--emw--button-border-color, #75ffe9);margin-bottom:-2px}.ViewContent.svelte-iscrfi.svelte-iscrfi{flex-grow:1;overflow:hidden;display:flex;flex-direction:column}.TransitionWrapper.svelte-iscrfi.svelte-iscrfi{height:100%;width:100%;display:flex;flex-direction:column;flex-grow:1}`)}function ur(e){let t,r,n,i,s,o,a,u=e[0]==="true"&&lr(e),l=e[8]&&fr(e),f=e[0]==="true"&&e[4]==="LIST"&&cr(e),c=e[4]==="LIST"&&hr(e);function h(p,b){if(p[5]==="PLAY")return fo;if(p[4]==="LIST")return lo}let d=h(e),m=d&&d(e);return{c(){t=x("div"),u&&u.c(),r=k(),n=x("div"),l&&l.c(),i=k(),f&&f.c(),s=k(),c&&c.c(),o=k(),a=x("div"),m&&m.c(),_(a,"class","ViewContent svelte-iscrfi"),_(n,"class","MainDrawer svelte-iscrfi"),B(n,"Drawer",e[0]==="true"),B(n,"full-width",e[4]==="DETAILS"),_(t,"class","PrizeSuiteContainer svelte-iscrfi"),B(t,"is-drawer",e[0]==="true"),B(t,"Mobile",e[12])},m(p,b){L(p,t,b),u&&u.m(t,null),E(t,r),E(t,n),l&&l.m(n,null),E(n,i),f&&f.m(n,null),E(n,s),c&&c.m(n,null),E(n,o),E(n,a),m&&m.m(a,null),e[28](t)},p(p,b){p[0]==="true"?u?u.p(p,b):(u=lr(p),u.c(),u.m(t,r)):u&&(u.d(1),u=null),p[8]?l?l.p(p,b):(l=fr(p),l.c(),l.m(n,i)):l&&(l.d(1),l=null),p[0]==="true"&&p[4]==="LIST"?f?f.p(p,b):(f=cr(p),f.c(),f.m(n,s)):f&&(f.d(1),f=null),p[4]==="LIST"?c?c.p(p,b):(c=hr(p),c.c(),c.m(n,o)):c&&(c.d(1),c=null),d===(d=h(p))&&m?m.p(p,b):(m&&m.d(1),m=d&&d(p),m&&(m.c(),ge(m,1),m.m(a,null))),b&1&&B(n,"Drawer",p[0]==="true"),b&16&&B(n,"full-width",p[4]==="DETAILS"),b&1&&B(t,"is-drawer",p[0]==="true")},d(p){p&&C(t),u&&u.d(),l&&l.d(),f&&f.d(),c&&c.d(),m&&m.d(),e[28](null)}}}function lr(e){let t,r,n;return{c(){t=x("button"),_(t,"type","button"),_(t,"class","Overlay svelte-iscrfi")},m(i,s){L(i,t,s),r||(n=Z(t,"click",e[13]),r=!0)},p:P,d(i){i&&C(t),r=!1,n()}}}function fr(e){let t,r,n,i,s,o=e[2](e[10])+"",a,u,l;return{c(){t=x("div"),r=x("div"),n=x("button"),i=k(),s=x("span"),a=W(o),_(n,"type","button"),_(n,"class","IconButton Close svelte-iscrfi"),_(r,"class","Tooltip svelte-iscrfi"),_(t,"class","TooltipBackdrop svelte-iscrfi")},m(f,c){L(f,t,c),E(t,r),E(r,n),E(r,i),E(r,s),E(s,a),u||(l=Z(n,"click",e[14]),u=!0)},p(f,c){c&1028&&o!==(o=f[2](f[10])+"")&&be(a,o)},d(f){f&&C(t),u=!1,l()}}}function cr(e){let t,r,n,i,s,o,a,u,l;return{c(){t=x("div"),r=x("button"),n=k(),i=x("div"),s=W(e[11]),o=k(),a=x("button"),_(r,"type","button"),_(r,"class","IconButton Help svelte-iscrfi"),_(i,"class","HeaderTitle svelte-iscrfi"),_(a,"type","button"),_(a,"class","IconButton Close svelte-iscrfi"),_(t,"class","Header svelte-iscrfi")},m(f,c){L(f,t,c),E(t,r),E(t,n),E(t,i),E(i,s),E(t,o),E(t,a),u||(l=[Z(r,"click",e[14]),Z(a,"click",e[13])],u=!0)},p(f,c){c&2048&&be(s,f[11])},d(f){f&&C(t),u=!1,D(l)}}}function hr(e){let t,r,n=e[2]("Play")+"",i,s,o,a=e[2]("History")+"",u,l,f;return{c(){t=x("div"),r=x("button"),i=W(n),s=k(),o=x("button"),u=W(a),_(r,"type","button"),_(r,"class","TabItem svelte-iscrfi"),B(r,"active",e[5]==="PLAY"),_(o,"type","button"),_(o,"class","TabItem svelte-iscrfi"),B(o,"active",e[5]==="HISTORY"),_(t,"class","TabBar svelte-iscrfi")},m(c,h){L(c,t,h),E(t,r),E(r,i),E(t,s),E(t,o),E(o,u),l||(f=[Z(r,"click",e[26]),Z(o,"click",e[27])],l=!0)},p(c,h){h&4&&n!==(n=c[2]("Play")+"")&&be(i,n),h&32&&B(r,"active",c[5]==="PLAY"),h&4&&a!==(a=c[2]("History")+"")&&be(u,a),h&32&&B(o,"active",c[5]==="HISTORY")},d(c){c&&C(t),l=!1,D(f)}}}function lo(e){let t,r,n,i=[e[9]],s={};for(let o=0;o<i.length;o+=1)s=Ge(s,i[o]);return{c(){t=x("div"),r=x("prize-engine-history"),ie(r,s),B(r,"svelte-iscrfi",!0),_(t,"class","TransitionWrapper svelte-iscrfi")},m(o,a){L(o,t,a),E(t,r)},p(o,a){ie(r,s=Bt(i,[a&512&&o[9]])),B(r,"svelte-iscrfi",!0)},i(o){o&&(n||F(()=>{n=Fe(t,je,{duration:250}),n.start()}))},o:P,d(o){o&&C(t)}}}function fo(e){let t;function r(s,o){if(s[4]==="LIST")return ho;if(s[4]==="DETAILS")return co}let n=r(e),i=n&&n(e);return{c(){i&&i.c(),t=Pt()},m(s,o){i&&i.m(s,o),L(s,t,o)},p(s,o){n===(n=r(s))&&i?i.p(s,o):(i&&i.d(1),i=n&&n(s),i&&(i.c(),ge(i,1),i.m(t.parentNode,t)))},i(s){ge(i)},o:P,d(s){s&&C(t),i&&i.d(s)}}}function co(e){let t,r,n=e[6]&&pr(e);return{c(){t=x("div"),n&&n.c(),_(t,"class","TransitionWrapper svelte-iscrfi")},m(i,s){L(i,t,s),n&&n.m(t,null)},p(i,s){i[6]?n?n.p(i,s):(n=pr(i),n.c(),n.m(t,null)):n&&(n.d(1),n=null)},i(i){i&&(r||F(()=>{r=Fe(t,je,{duration:250}),r.start()}))},o:P,d(i){i&&C(t),n&&n.d()}}}function ho(e){let t,r,n,i=[e[9]],s={};for(let o=0;o<i.length;o+=1)s=Ge(s,i[o]);return{c(){t=x("div"),r=x("prize-engine-list"),ie(r,s),B(r,"svelte-iscrfi",!0),_(t,"class","TransitionWrapper svelte-iscrfi")},m(o,a){L(o,t,a),E(t,r)},p(o,a){ie(r,s=Bt(i,[a&512&&o[9]])),B(r,"svelte-iscrfi",!0)},i(o){o&&(n||F(()=>{n=Fe(t,je,{duration:250}),n.start()}))},o:P,d(o){o&&C(t)}}}function pr(e){let t,r,n=[e[9],{data:e[6]},{programs:e[7]},{twostepdraw:r=e[6].program.type==="wheelOfFortune"?"true":"false"}],i={};for(let s=0;s<n.length;s+=1)i=Ge(i,n[s]);return{c(){t=x("prize-engine-details"),ie(t,i),B(t,"svelte-iscrfi",!0)},m(s,o){L(s,t,o)},p(s,o){ie(t,i=Bt(n,[o&512&&s[9],o&64&&{data:s[6]},o&128&&{programs:s[7]},o&64&&r!==(r=s[6].program.type==="wheelOfFortune"?"true":"false")&&{twostepdraw:r}])),B(t,"svelte-iscrfi",!0)},d(s){s&&C(t)}}}function po(e){let t,r=(e[3]||e[0]==="false")&&ur(e);return{c(){r&&r.c(),t=Pt()},m(n,i){r&&r.m(n,i),L(n,t,i)},p(n,[i]){n[3]||n[0]==="false"?r?r.p(n,i):(r=ur(n),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},i:P,o:P,d(n){n&&C(t),r&&r.d(n)}}}let mo=null;function bo(e,t,r){let n,i,s,o;br(e,mn,v=>r(2,o=v));let{endpoint:a=""}=t,{session:u=""}=t,{lang:l="en"}=t,{clientstyling:f=""}=t,{clientstylingurl:c=""}=t,{translationurl:h=""}=t,{mbsource:d=""}=t,{isdrawer:m="true"}=t,{type:p="wheelOfFortune"}=t,{luckywheelsize:b=324}=t,{luckywheelmobilesize:H=240}=t,{opened:A="false"}=t,w;const R=bn(window.navigator.userAgent);let M=A==="true";ao();const Q=()=>{fetch(h).then(U=>U.json()).then(U=>{Object.keys(U).forEach(he=>{yn(he,U[he])})})};let X="LIST",we="PLAY",Se=null,Ct=[],Ye=!1;const Lt=v=>{const{type:U,data:he}=v.data;U==="OpenPrizeGame"?(r(6,Se=he),r(4,X="DETAILS")):U==="BackToList"?(r(4,X="LIST"),r(6,Se=null)):U==="ClosePrizeEngineDrawer"?r(3,M=!1):U==="PrizeProgramsLoaded"&&r(7,Ct=he)},vn=()=>{r(3,M=!1),window.postMessage({type:"ClosePrizeEngineDrawer"},"*")},_n=()=>{r(8,Ye=!Ye)};Sr(()=>(window.addEventListener("message",Lt),()=>{window.removeEventListener("message",Lt)}));const En=()=>r(5,we="PLAY"),xn=()=>r(5,we="HISTORY");function wn(v){Ne[v?"unshift":"push"](()=>{w=v,r(1,w)})}return e.$$set=v=>{"endpoint"in v&&r(15,a=v.endpoint),"session"in v&&r(16,u=v.session),"lang"in v&&r(17,l=v.lang),"clientstyling"in v&&r(18,f=v.clientstyling),"clientstylingurl"in v&&r(19,c=v.clientstylingurl),"translationurl"in v&&r(20,h=v.translationurl),"mbsource"in v&&r(21,d=v.mbsource),"isdrawer"in v&&r(0,m=v.isdrawer),"type"in v&&r(22,p=v.type),"luckywheelsize"in v&&r(23,b=v.luckywheelsize),"luckywheelmobilesize"in v&&r(24,H=v.luckywheelmobilesize),"opened"in v&&r(25,A=v.opened)},e.$$.update=()=>{e.$$.dirty&33554432&&r(3,M=A==="true"),e.$$.dirty&131072&&l&&oo(l),e.$$.dirty&1048576&&h&&Q(),e.$$.dirty&4194304&&p&&(r(4,X="LIST"),r(6,Se=null),r(5,we="PLAY")),e.$$.dirty&4194308&&r(11,n=o(p==="flipCoin"?"CoinRoyale":p==="mysteryChest"?"MysteryChest":"LuckyWheels")),e.$$.dirty&4194304&&r(10,i=p==="flipCoin"?"InfoTooltipCoin":p==="mysteryChest"?"InfoTooltipChest":"InfoTooltipLuckywheel"),e.$$.dirty&262146&&f&&w&&Rr(w,f),e.$$.dirty&524290&&c&&w&&$r(w,c),e.$$.dirty&2097154&&d&&w&&Dr(w,`${d}.Style`,mo),e.$$.dirty&33521664&&r(9,s={endpoint:a,session:u,lang:l,clientstyling:f,clientstylingurl:c,translationurl:h,mbsource:d,isdrawer:"false",type:p,luckywheelsize:b,luckywheelmobilesize:H})},[m,w,o,M,X,we,Se,Ct,Ye,s,i,n,R,vn,_n,a,u,l,f,c,h,d,p,b,H,A,En,xn,wn]}class gn extends Mr{constructor(t){super(),Ir(this,t,bo,po,xt,{endpoint:15,session:16,lang:17,clientstyling:18,clientstylingurl:19,translationurl:20,mbsource:21,isdrawer:0,type:22,luckywheelsize:23,luckywheelmobilesize:24,opened:25},uo)}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),O()}get session(){return this.$$.ctx[16]}set session(t){this.$$set({session:t}),O()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),O()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(t){this.$$set({clientstyling:t}),O()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),O()}get translationurl(){return this.$$.ctx[20]}set translationurl(t){this.$$set({translationurl:t}),O()}get mbsource(){return this.$$.ctx[21]}set mbsource(t){this.$$set({mbsource:t}),O()}get isdrawer(){return this.$$.ctx[0]}set isdrawer(t){this.$$set({isdrawer:t}),O()}get type(){return this.$$.ctx[22]}set type(t){this.$$set({type:t}),O()}get luckywheelsize(){return this.$$.ctx[23]}set luckywheelsize(t){this.$$set({luckywheelsize:t}),O()}get luckywheelmobilesize(){return this.$$.ctx[24]}set luckywheelmobilesize(t){this.$$set({luckywheelmobilesize:t}),O()}get opened(){return this.$$.ctx[25]}set opened(t){this.$$set({opened:t}),O()}}customElements.define("prize-engine-suite",Lr(gn,{endpoint:{},session:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},isdrawer:{},type:{},luckywheelsize:{},luckywheelmobilesize:{},opened:{}},[],[],!0));const yo=Object.freeze(Object.defineProperty({__proto__:null,default:gn},Symbol.toStringTag,{value:"Module"}));exports.$dictionary=Y;exports.$format=mn;exports.$locale=j;exports.PrizeEngineSuite_ce=yo;exports.SvelteComponent=Mr;exports.addMessages=Ot;exports.add_render_callback=F;exports.append=E;exports.append_styles=vr;exports.assign=Ge;exports.attr=_;exports.binding_callbacks=Ne;exports.check_outros=Zn;exports.component_subscribe=br;exports.createEventDispatcher=jn;exports.create_component=Jn;exports.create_custom_element=Lr;exports.create_in_transition=Fe;exports.create_out_transition=qn;exports.cubicOut=Nr;exports.destroy_component=Or;exports.destroy_each=Cn;exports.detach=C;exports.element=x;exports.empty=Pt;exports.ensure_array_like=Qn;exports.fade=je;exports.flush=O;exports.fly=ti;exports.group_outros=Wn;exports.identity=ke;exports.init=Ir;exports.insert=L;exports.isMobile=bn;exports.is_function=le;exports.listen=Z;exports.loop=Tt;exports.mount_component=Ar;exports.noop=P;exports.now=wt;exports.onMount=Sr;exports.run_all=D;exports.safe_not_equal=xt;exports.setClientStyling=Rr;exports.setClientStylingURL=$r;exports.setStreamStyling=Dr;exports.set_custom_element_data=Rn;exports.set_data=be;exports.set_style=Dn;exports.set_svg_attributes=Nn;exports.space=k;exports.src_url_equal=An;exports.svg_element=Ln;exports.text=W;exports.tick=zn;exports.toggle_class=B;exports.transition_in=ge;exports.transition_out=Yn;exports.writable=xe;
|