@everymatrix/tournament-details-page 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,63 +0,0 @@
1
- "use strict";var bu=Object.defineProperty,yu=Object.defineProperties;var _u=Object.getOwnPropertyDescriptors;var gs=Object.getOwnPropertySymbols;var xu=Object.prototype.hasOwnProperty,wu=Object.prototype.propertyIsEnumerable;var bs=e=>{throw TypeError(e)};var ri=(e,t,r)=>t in e?bu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,on=(e,t)=>{for(var r in t||(t={}))xu.call(t,r)&&ri(e,r,t[r]);if(gs)for(var r of gs(t))wu.call(t,r)&&ri(e,r,t[r]);return e},an=(e,t)=>yu(e,_u(t));var he=(e,t,r)=>ri(e,typeof t!="symbol"?t+"":t,r),ni=(e,t,r)=>t.has(e)||bs("Cannot "+r);var p=(e,t,r)=>(ni(e,t,"read from private field"),r?r.call(e):t.get(e)),D=(e,t,r)=>t.has(e)?bs("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),R=(e,t,r,n)=>(ni(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ge=(e,t,r)=>(ni(e,t,"access private method"),r);var ii=(e,t,r)=>new Promise((n,i)=>{var s=a=>{try{u(r.next(a))}catch(l){i(l)}},o=a=>{try{u(r.throw(a))}catch(l){i(l)}},u=a=>a.done?n(a.value):Promise.resolve(a.value).then(s,o);u((r=r.apply(e,t)).next())});const Eu="5";var Qs,Ks,eo;typeof window!="undefined"&&((eo=(Ks=(Qs=window.__svelte)!=null?Qs:window.__svelte={}).v)!=null?eo:Ks.v=new Set).add(Eu);const Su=1,Cu=2,to=4,Tu=8,Mu=16,Ou=1,Au=2,ro="[",Bn="[!",Gi="]",or={},_e=Symbol(),Bu="http://www.w3.org/1999/xhtml",di=!1;var no=Array.isArray,Hu=Array.prototype.indexOf,Hn=Array.from,bn=Object.keys,Zr=Object.defineProperty,mr=Object.getOwnPropertyDescriptor,Pu=Object.getOwnPropertyDescriptors,$u=Object.prototype,Ru=Array.prototype,io=Object.getPrototypeOf,ys=Object.isExtensible;const Gt=()=>{};function so(e){for(var t=0;t<e.length;t++)e[t]()}function oo(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const we=2,yn=4,tn=8,ao=1<<24,Rt=16,Lt=32,zt=64,ji=128,qe=512,Te=1024,He=2048,It=4096,Fe=8192,Bt=16384,Pn=32768,Er=65536,_s=1<<17,uo=1<<18,lr=1<<19,lo=1<<20,Ot=1<<25,ar=32768,pi=1<<21,Vi=1<<22,jt=1<<23,si=Symbol("$state"),Lu=Symbol("legacy props"),Iu=Symbol(""),vr=new class extends Error{constructor(){super(...arguments);he(this,"name","StaleReactionError");he(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},$n=3,fr=8;function fo(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Nu(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function ku(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Du(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Uu(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Fu(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Gu(){throw new Error("https://svelte.dev/e/hydration_failed")}function ju(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Vu(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Yu(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function zu(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function rn(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Zu(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let U=!1;function it(e){U=e}let N;function Me(e){if(e===null)throw rn(),or;return N=e}function Sr(){return Me(at(N))}function X(e){if(U){if(at(N)!==null)throw rn(),or;N=e}}function co(e=1){if(U){for(var t=e,r=N;t--;)r=at(r);N=r}}function _n(e=!0){for(var t=0,r=N;;){if(r.nodeType===fr){var n=r.data;if(n===Gi){if(t===0)return r;t-=1}else(n===ro||n===Bn)&&(t+=1)}var i=at(r);e&&r.remove(),r=i}}function ho(e){if(!e||e.nodeType!==fr)throw rn(),or;return e.data}function po(e){return e===this.v}function vo(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function mo(e){return!vo(e,this.v)}let Xu=!1,Ie=null;function Cr(e){Ie=e}function Yi(e,t=!1,r){Ie={p:Ie,i:!1,c:null,e:null,s:e,x:null,l:null}}function zi(e){var t=Ie,r=t.e;if(r!==null){t.e=null;for(var n of r)Fo(n)}return e!==void 0&&(t.x=e),t.i=!0,Ie=t.p,e!=null?e:{}}function go(){return!0}let Wt=[];function bo(){var e=Wt;Wt=[],so(e)}function Rn(e){if(Wt.length===0&&!Yr){var t=Wt;queueMicrotask(()=>{t===Wt&&bo()})}Wt.push(e)}function Wu(){for(;Wt.length>0;)bo()}function yo(e){var t=Y;if(t===null)return L.f|=jt,e;if(t.f&Pn)Tr(e,t);else{if(!(t.f&ji))throw e;t.b.error(e)}}function Tr(e,t){for(;t!==null;){if(t.f&ji)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const qu=-7169;function ye(e,t){e.f=e.f&qu|t}function Zi(e){e.f&qe||e.deps===null?ye(e,Te):ye(e,It)}function _o(e){if(e!==null)for(const t of e)!(t.f&we)||!(t.f&ar)||(t.f^=ar,_o(t.deps))}function xo(e,t,r){e.f&He?t.add(e):e.f&It&&r.add(e),_o(e.deps),ye(e,Te)}const un=new Set;let ee=null,xe=null,Xe=[],Ln=null,vi=!1,Yr=!1;var gr,br,Jt,Qt,Jr,yr,_r,Qe,mi,gi,wo,Eo;const Mn=class Mn{constructor(){D(this,Qe);he(this,"committed",!1);he(this,"current",new Map);he(this,"previous",new Map);D(this,gr,new Set);D(this,br,new Set);D(this,Jt,0);D(this,Qt,0);D(this,Jr,null);D(this,yr,new Set);D(this,_r,new Set);he(this,"skipped_effects",new Set);he(this,"is_fork",!1)}is_deferred(){return this.is_fork||p(this,Qt)>0}process(t){var i;Xe=[],this.apply();var r=[],n=[];for(const s of t)ge(this,Qe,mi).call(this,s,r,n);this.is_fork||ge(this,Qe,wo).call(this),this.is_deferred()?(ge(this,Qe,gi).call(this,n),ge(this,Qe,gi).call(this,r)):(ee=null,xs(n),xs(r),(i=p(this,Jr))==null||i.resolve()),xe=null}capture(t,r){r!==_e&&!this.previous.has(t)&&this.previous.set(t,r),t.f&jt||(this.current.set(t,t.v),xe==null||xe.set(t,t.v))}activate(){ee=this,this.apply()}deactivate(){ee===this&&(ee=null,xe=null)}flush(){if(this.activate(),Xe.length>0){if(So(),ee!==null&&ee!==this)return}else p(this,Jt)===0&&this.process([]);this.deactivate()}discard(){for(const t of p(this,br))t(this);p(this,br).clear()}increment(t){R(this,Jt,p(this,Jt)+1),t&&R(this,Qt,p(this,Qt)+1)}decrement(t){R(this,Jt,p(this,Jt)-1),t&&R(this,Qt,p(this,Qt)-1),this.revive()}revive(){for(const t of p(this,yr))p(this,_r).delete(t),ye(t,He),Pt(t);for(const t of p(this,_r))ye(t,It),Pt(t);this.flush()}oncommit(t){p(this,gr).add(t)}ondiscard(t){p(this,br).add(t)}settled(){var t;return((t=p(this,Jr))!=null?t:R(this,Jr,oo())).promise}static ensure(){if(ee===null){const t=ee=new Mn;un.add(ee),Yr||Mn.enqueue(()=>{ee===t&&t.flush()})}return ee}static enqueue(t){Rn(t)}apply(){}};gr=new WeakMap,br=new WeakMap,Jt=new WeakMap,Qt=new WeakMap,Jr=new WeakMap,yr=new WeakMap,_r=new WeakMap,Qe=new WeakSet,mi=function(t,r,n){t.f^=Te;for(var i=t.first,s=null;i!==null;){var o=i.f,u=(o&(Lt|zt))!==0,a=u&&(o&Te)!==0,l=a||(o&Fe)!==0||this.skipped_effects.has(i);if(!l&&i.fn!==null){u?i.f^=Te:s!==null&&o&(yn|tn|ao)?s.b.defer_effect(i):o&yn?r.push(i):nn(i)&&(o&Rt&&p(this,yr).add(i),Xr(i));var f=i.first;if(f!==null){i=f;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)d===s&&(s=null),i=d.next,d=d.parent}},gi=function(t){for(var r=0;r<t.length;r+=1)xo(t[r],p(this,yr),p(this,_r))},wo=function(){if(p(this,Qt)===0){for(const t of p(this,gr))t();p(this,gr).clear()}p(this,Jt)===0&&ge(this,Qe,Eo).call(this)},Eo=function(){var i;if(un.size>1){this.previous.clear();var t=xe,r=!0;for(const s of un){if(s===this){r=!1;continue}const o=[];for(const[a,l]of this.current){if(s.current.has(a))if(r&&l!==s.current.get(a))s.current.set(a,l);else continue;o.push(a)}if(o.length===0)continue;const u=[...s.current.keys()].filter(a=>!this.current.has(a));if(u.length>0){var n=Xe;Xe=[];const a=new Set,l=new Map;for(const f of o)Co(f,u,a,l);if(Xe.length>0){ee=s,s.apply();for(const f of Xe)ge(i=s,Qe,mi).call(i,f,[],[]);s.deactivate()}Xe=n}}ee=null,xe=t}this.committed=!0,un.delete(this)};let _t=Mn;function dt(e){var t=Yr;Yr=!0;try{for(var r;;){if(Wu(),Xe.length===0&&(ee==null||ee.flush(),Xe.length===0))return Ln=null,r;So()}}finally{Yr=t}}function So(){var e=ir;vi=!0;var t=null;try{var r=0;for(wn(!0);Xe.length>0;){var n=_t.ensure();if(r++>1e3){var i,s;Ju()}n.process(Xe),Vt.clear()}}finally{vi=!1,wn(e),Ln=null}}function Ju(){try{Fu()}catch(e){Tr(e,Ln)}}let rt=null;function xs(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if(!(n.f&(Bt|Fe))&&nn(n)&&(rt=new Set,Xr(n),n.deps===null&&n.first===null&&n.nodes===null&&(n.teardown===null&&n.ac===null?Zo(n):n.fn=null),(rt==null?void 0:rt.size)>0)){Vt.clear();for(const i of rt){if(i.f&(Bt|Fe))continue;const s=[i];let o=i.parent;for(;o!==null;)rt.has(o)&&(rt.delete(o),s.push(o)),o=o.parent;for(let u=s.length-1;u>=0;u--){const a=s[u];a.f&(Bt|Fe)||Xr(a)}}rt.clear()}}rt=null}}function Co(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;s&we?Co(i,t,r,n):s&(Vi|Rt)&&!(s&He)&&To(i,t,n)&&(ye(i,He),Pt(i))}}function To(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if(i.f&we&&To(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function Pt(e){for(var t=Ln=e;t.parent!==null;){t=t.parent;var r=t.f;if(vi&&t===Y&&r&Rt&&!(r&uo))return;if(r&(zt|Lt)){if(!(r&Te))return;t.f^=Te}}Xe.push(t)}function Qu(e){let t=0,r=ur(0),n;return()=>{qi()&&(E(r),jo(()=>(t===0&&(n=Nn(()=>e(()=>zr(r)))),t+=1,()=>{Rn(()=>{t-=1,t===0&&(n==null||n(),n=void 0,zr(r))})})))}}var Ku=Er|lr|ji;function el(e,t,r){new tl(e,t,r)}var De,Qr,vt,Kt,mt,ze,$e,gt,Ct,Dt,er,Tt,tr,xr,wr,Ut,On,ve,Mo,Oo,bi,hn,dn,yi;class tl{constructor(t,r,n){D(this,ve);he(this,"parent");he(this,"is_pending",!1);D(this,De);D(this,Qr,U?N:null);D(this,vt);D(this,Kt);D(this,mt);D(this,ze,null);D(this,$e,null);D(this,gt,null);D(this,Ct,null);D(this,Dt,null);D(this,er,0);D(this,Tt,0);D(this,tr,!1);D(this,xr,new Set);D(this,wr,new Set);D(this,Ut,null);D(this,On,Qu(()=>(R(this,Ut,ur(p(this,er))),()=>{R(this,Ut,null)})));R(this,De,t),R(this,vt,r),R(this,Kt,n),this.parent=Y.b,this.is_pending=!!p(this,vt).pending,R(this,mt,Qi(()=>{if(Y.b=this,U){const s=p(this,Qr);Sr(),s.nodeType===fr&&s.data===Bn?ge(this,ve,Oo).call(this):(ge(this,ve,Mo).call(this),p(this,Tt)===0&&(this.is_pending=!1))}else{var i=ge(this,ve,bi).call(this);try{R(this,ze,We(()=>n(i)))}catch(s){this.error(s)}p(this,Tt)>0?ge(this,ve,dn).call(this):this.is_pending=!1}return()=>{var s;(s=p(this,Dt))==null||s.remove()}},Ku)),U&&R(this,De,N)}defer_effect(t){xo(t,p(this,xr),p(this,wr))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!p(this,vt).pending}update_pending_count(t){ge(this,ve,yi).call(this,t),R(this,er,p(this,er)+t),p(this,Ut)&&Mr(p(this,Ut),p(this,er))}get_effect_pending(){return p(this,On).call(this),E(p(this,Ut))}error(t){var r=p(this,vt).onerror;let n=p(this,vt).failed;if(p(this,tr)||!r&&!n)throw t;p(this,ze)&&(Ae(p(this,ze)),R(this,ze,null)),p(this,$e)&&(Ae(p(this,$e)),R(this,$e,null)),p(this,gt)&&(Ae(p(this,gt)),R(this,gt,null)),U&&(Me(p(this,Qr)),co(),Me(_n()));var i=!1,s=!1;const o=()=>{if(i){Zu();return}i=!0,s&&zu(),_t.ensure(),R(this,er,0),p(this,gt)!==null&&nr(p(this,gt),()=>{R(this,gt,null)}),this.is_pending=this.has_pending_snippet(),R(this,ze,ge(this,ve,hn).call(this,()=>(R(this,tr,!1),We(()=>p(this,Kt).call(this,p(this,De)))))),p(this,Tt)>0?ge(this,ve,dn).call(this):this.is_pending=!1};var u=L;try{Ce(null),s=!0,r==null||r(t,o),s=!1}catch(a){Tr(a,p(this,mt)&&p(this,mt).parent)}finally{Ce(u)}n&&Rn(()=>{R(this,gt,ge(this,ve,hn).call(this,()=>{_t.ensure(),R(this,tr,!0);try{return We(()=>{n(p(this,De),()=>t,()=>o)})}catch(a){return Tr(a,p(this,mt).parent),null}finally{R(this,tr,!1)}}))})}}De=new WeakMap,Qr=new WeakMap,vt=new WeakMap,Kt=new WeakMap,mt=new WeakMap,ze=new WeakMap,$e=new WeakMap,gt=new WeakMap,Ct=new WeakMap,Dt=new WeakMap,er=new WeakMap,Tt=new WeakMap,tr=new WeakMap,xr=new WeakMap,wr=new WeakMap,Ut=new WeakMap,On=new WeakMap,ve=new WeakSet,Mo=function(){try{R(this,ze,We(()=>p(this,Kt).call(this,p(this,De))))}catch(t){this.error(t)}},Oo=function(){const t=p(this,vt).pending;t&&(R(this,$e,We(()=>t(p(this,De)))),_t.enqueue(()=>{var r=ge(this,ve,bi).call(this);R(this,ze,ge(this,ve,hn).call(this,()=>(_t.ensure(),We(()=>p(this,Kt).call(this,r))))),p(this,Tt)>0?ge(this,ve,dn).call(this):(nr(p(this,$e),()=>{R(this,$e,null)}),this.is_pending=!1)}))},bi=function(){var t=p(this,De);return this.is_pending&&(R(this,Dt,Le()),p(this,De).before(p(this,Dt)),t=p(this,Dt)),t},hn=function(t){var r=Y,n=L,i=Ie;Je(p(this,mt)),Ce(p(this,mt)),Cr(p(this,mt).ctx);try{return t()}catch(s){return yo(s),null}finally{Je(r),Ce(n),Cr(i)}},dn=function(){const t=p(this,vt).pending;p(this,ze)!==null&&(R(this,Ct,document.createDocumentFragment()),p(this,Ct).append(p(this,Dt)),qo(p(this,ze),p(this,Ct))),p(this,$e)===null&&R(this,$e,We(()=>t(p(this,De))))},yi=function(t){var r;if(!this.has_pending_snippet()){this.parent&&ge(r=this.parent,ve,yi).call(r,t);return}if(R(this,Tt,p(this,Tt)+t),p(this,Tt)===0){this.is_pending=!1;for(const n of p(this,xr))ye(n,He),Pt(n);for(const n of p(this,wr))ye(n,It),Pt(n);p(this,xr).clear(),p(this,wr).clear(),p(this,$e)&&nr(p(this,$e),()=>{R(this,$e,null)}),p(this,Ct)&&(p(this,De).before(p(this,Ct)),R(this,Ct,null))}};function rl(e,t,r,n){const i=In;if(r.length===0&&e.length===0){n(t.map(i));return}var s=ee,o=Y,u=nl();function a(){Promise.all(r.map(l=>il(l))).then(l=>{u();try{n([...t.map(i),...l])}catch(f){o.f&Bt||Tr(f,o)}s==null||s.deactivate(),xn()}).catch(l=>{Tr(l,o)})}e.length>0?Promise.all(e).then(()=>{u();try{return a()}finally{s==null||s.deactivate(),xn()}}):a()}function nl(){var e=Y,t=L,r=Ie,n=ee;return function(s=!0){Je(e),Ce(t),Cr(r),s&&(n==null||n.activate())}}function xn(){Je(null),Ce(null),Cr(null)}function In(e){var t=we|He,r=L!==null&&L.f&we?L:null;return Y!==null&&(Y.f|=lr),{ctx:Ie,deps:null,effects:null,equals:po,f:t,fn:e,reactions:null,rv:0,v:_e,wv:0,parent:r!=null?r:Y,ac:null}}function il(e,t,r){let n=Y;n===null&&Nu();var i=n.b,s=void 0,o=ur(_e),u=!L,a=new Map;return dl(()=>{var v;var l=oo();s=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{f===ee&&f.committed&&f.deactivate(),xn()})}catch(_){l.reject(_),xn()}var f=ee;if(u){var d=i.is_rendered();i.update_pending_count(1),f.increment(d),(v=a.get(f))==null||v.reject(vr),a.delete(f),a.set(f,l)}const h=(_,x=void 0)=>{if(f.activate(),x)x!==vr&&(o.f|=jt,Mr(o,x));else{o.f&jt&&(o.f^=jt),Mr(o,_);for(const[c,g]of a){if(a.delete(c),c===f)break;g.reject(vr)}}u&&(i.update_pending_count(-1),f.decrement(d))};l.promise.then(h,_=>h(null,_||"unknown"))}),Uo(()=>{for(const l of a.values())l.reject(vr)}),new Promise(l=>{function f(d){function h(){d===s?l(o):f(s)}d.then(h,h)}f(s)})}function sl(e){const t=In(e);return Jo(t),t}function ol(e){const t=In(e);return t.equals=mo,t}function Ao(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Ae(t[r])}}function al(e){for(var t=e.parent;t!==null;){if(!(t.f&we))return t.f&Bt?null:t;t=t.parent}return null}function Xi(e){var t,r=Y;Je(al(e));try{e.f&=~ar,Ao(e),t=ta(e)}finally{Je(r)}return t}function Bo(e){var t=Xi(e);if(!e.equals(t)&&(e.wv=Ko(),(!(ee!=null&&ee.is_fork)||e.deps===null)&&(e.v=t,e.deps===null))){ye(e,Te);return}Yt||(xe!==null?(qi()||ee!=null&&ee.is_fork)&&xe.set(e,t):Zi(e))}let _i=new Set;const Vt=new Map;let Ho=!1;function ur(e,t){var r={f:0,v:e,reactions:null,equals:po,rv:0,wv:0};return r}function fe(e,t){const r=ur(e);return Jo(r),r}function Wi(e,t=!1,r=!0){const n=ur(e);return t||(n.equals=mo),n}function J(e,t,r=!1){L!==null&&(!ot||L.f&_s)&&go()&&L.f&(we|Rt|Vi|_s)&&!(Be!=null&&Be.includes(e))&&Yu();let n=r?At(t):t;return Mr(e,n)}function Mr(e,t){if(!e.equals(t)){var r=e.v;Yt?Vt.set(e,t):Vt.set(e,r),e.v=t;var n=_t.ensure();if(n.capture(e,r),e.f&we){const i=e;e.f&He&&Xi(i),Zi(i)}e.wv=Ko(),Po(e,He),Y!==null&&Y.f&Te&&!(Y.f&(Lt|zt))&&(Ye===null?vl([e]):Ye.push(e)),!n.is_fork&&_i.size>0&&!Ho&&ul()}return t}function ul(){Ho=!1;var e=ir;wn(!0);const t=Array.from(_i);try{for(const r of t)r.f&Te&&ye(r,It),nn(r)&&Xr(r)}finally{wn(e)}_i.clear()}function zr(e){J(e,e.v+1)}function Po(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],o=s.f,u=(o&He)===0;if(u&&ye(s,t),o&we){var a=s;xe==null||xe.delete(a),o&ar||(o&qe&&(s.f|=ar),Po(a,It))}else u&&(o&Rt&&rt!==null&&rt.add(s),Pt(s))}}function At(e){if(typeof e!="object"||e===null||si in e)return e;const t=io(e);if(t!==$u&&t!==Ru)return e;var r=new Map,n=no(e),i=fe(0),s=sr,o=u=>{if(sr===s)return u();var a=L,l=sr;Ce(null),Ss(s);var f=u();return Ce(a),Ss(l),f};return n&&r.set("length",fe(e.length)),new Proxy(e,{defineProperty(u,a,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&ju();var f=r.get(a);return f===void 0?f=o(()=>{var d=fe(l.value);return r.set(a,d),d}):J(f,l.value,!0),!0},deleteProperty(u,a){var l=r.get(a);if(l===void 0){if(a in u){const f=o(()=>fe(_e));r.set(a,f),zr(i)}}else J(l,_e),zr(i);return!0},get(u,a,l){var v;if(a===si)return e;var f=r.get(a),d=a in u;if(f===void 0&&(!d||(v=mr(u,a))!=null&&v.writable)&&(f=o(()=>{var _=At(d?u[a]:_e),x=fe(_);return x}),r.set(a,f)),f!==void 0){var h=E(f);return h===_e?void 0:h}return Reflect.get(u,a,l)},getOwnPropertyDescriptor(u,a){var l=Reflect.getOwnPropertyDescriptor(u,a);if(l&&"value"in l){var f=r.get(a);f&&(l.value=E(f))}else if(l===void 0){var d=r.get(a),h=d==null?void 0:d.v;if(d!==void 0&&h!==_e)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return l},has(u,a){var h;if(a===si)return!0;var l=r.get(a),f=l!==void 0&&l.v!==_e||Reflect.has(u,a);if(l!==void 0||Y!==null&&(!f||(h=mr(u,a))!=null&&h.writable)){l===void 0&&(l=o(()=>{var v=f?At(u[a]):_e,_=fe(v);return _}),r.set(a,l));var d=E(l);if(d===_e)return!1}return f},set(u,a,l,f){var M;var d=r.get(a),h=a in u;if(n&&a==="length")for(var v=l;v<d.v;v+=1){var _=r.get(v+"");_!==void 0?J(_,_e):v in u&&(_=o(()=>fe(_e)),r.set(v+"",_))}if(d===void 0)(!h||(M=mr(u,a))!=null&&M.writable)&&(d=o(()=>fe(void 0)),J(d,At(l)),r.set(a,d));else{h=d.v!==_e;var x=o(()=>At(l));J(d,x)}var c=Reflect.getOwnPropertyDescriptor(u,a);if(c!=null&&c.set&&c.set.call(f,l),!h){if(n&&typeof a=="string"){var g=r.get("length"),A=Number(a);Number.isInteger(A)&&A>=g.v&&J(g,A+1)}zr(i)}return!0},ownKeys(u){E(i);var a=Reflect.ownKeys(u).filter(d=>{var h=r.get(d);return h===void 0||h.v!==_e});for(var[l,f]of r)f.v!==_e&&!(l in u)&&a.push(l);return a},setPrototypeOf(){Vu()}})}var ws,$o,Ro,Lo;function xi(){if(ws===void 0){ws=window,$o=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Ro=mr(t,"firstChild").get,Lo=mr(t,"nextSibling").get,ys(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),ys(r)&&(r.__t=void 0)}}function Le(e=""){return document.createTextNode(e)}function st(e){return Ro.call(e)}function at(e){return Lo.call(e)}function q(e,t){if(!U)return st(e);var r=st(N);if(r===null)r=N.appendChild(Le());else if(t&&r.nodeType!==$n){var n=Le();return r==null||r.before(n),Me(n),n}return Me(r),r}function kt(e,t=!1){if(!U){var r=st(e);return r instanceof Comment&&r.data===""?at(r):r}if(t&&(N==null?void 0:N.nodeType)!==$n){var n=Le();return N==null||N.before(n),Me(n),n}return N}function se(e,t=1,r=!1){let n=U?N:e;for(var i;t--;)i=n,n=at(n);if(!U)return n;if(r&&(n==null?void 0:n.nodeType)!==$n){var s=Le();return n===null?i==null||i.after(s):n.before(s),Me(s),s}return Me(n),n}function Io(e){e.textContent=""}function No(){return!1}function ko(e){var t=L,r=Y;Ce(null),Je(null);try{return e()}finally{Ce(t),Je(r)}}function Do(e){Y===null&&(L===null&&Uu(),Du()),Yt&&ku()}function ll(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function ut(e,t,r){var u;var n=Y;n!==null&&n.f&Fe&&(e|=Fe);var i={ctx:Ie,deps:null,nodes:null,f:e|He|qe,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};if(r)try{Xr(i),i.f|=Pn}catch(a){throw Ae(i),a}else t!==null&&Pt(i);var s=i;if(r&&s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&!(s.f&lr)&&(s=s.first,e&Rt&&e&Er&&s!==null&&(s.f|=Er)),s!==null&&(s.parent=n,n!==null&&ll(s,n),L!==null&&L.f&we&&!(e&zt))){var o=L;((u=o.effects)!=null?u:o.effects=[]).push(s)}return i}function qi(){return L!==null&&!ot}function Uo(e){const t=ut(tn,null,!1);return ye(t,Te),t.teardown=e,t}function Ji(e){var i;Do();var t=Y.f,r=!L&&(t&Lt)!==0&&(t&Pn)===0;if(r){var n=Ie;((i=n.e)!=null?i:n.e=[]).push(e)}else return Fo(e)}function Fo(e){return ut(yn|lo,e,!1)}function Go(e){return Do(),ut(tn|lo,e,!0)}function fl(e){_t.ensure();const t=ut(zt|lr,e,!0);return()=>{Ae(t)}}function cl(e){_t.ensure();const t=ut(zt|lr,e,!0);return(r={})=>new Promise(n=>{r.outro?nr(t,()=>{Ae(t),n(void 0)}):(Ae(t),n(void 0))})}function hl(e){return ut(yn,e,!1)}function dl(e){return ut(Vi|lr,e,!0)}function jo(e,t=0){return ut(tn|t,e,!0)}function K(e,t=[],r=[],n=[]){rl(n,t,r,i=>{ut(tn,()=>e(...i.map(E)),!0)})}function Qi(e,t=0){var r=ut(Rt|t,e,!0);return r}function We(e){return ut(Lt|lr,e,!0)}function Vo(e){var t=e.teardown;if(t!==null){const r=Yt,n=L;Es(!0),Ce(null);try{t.call(null)}finally{Es(r),Ce(n)}}}function Yo(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&ko(()=>{i.abort(vr)});var n=r.next;r.f&zt?r.parent=null:Ae(r,t),r=n}}function pl(e){for(var t=e.first;t!==null;){var r=t.next;t.f&Lt||Ae(t),t=r}}function Ae(e,t=!0){var r=!1;(t||e.f&uo)&&e.nodes!==null&&e.nodes.end!==null&&(zo(e.nodes.start,e.nodes.end),r=!0),Yo(e,t&&!r),En(e,0),ye(e,Bt);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();Vo(e);var i=e.parent;i!==null&&i.first!==null&&Zo(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function zo(e,t){for(;e!==null;){var r=e===t?null:at(e);e.remove(),e=r}}function Zo(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function nr(e,t,r=!0){var n=[];Xo(e,n,!0);var i=()=>{r&&Ae(e),t&&t()},s=n.length;if(s>0){var o=()=>--s||i();for(var u of n)u.out(o)}else i()}function Xo(e,t,r){if(!(e.f&Fe)){e.f^=Fe;var n=e.nodes&&e.nodes.t;if(n!==null)for(const u of n)(u.is_global||r)&&t.push(u);for(var i=e.first;i!==null;){var s=i.next,o=(i.f&Er)!==0||(i.f&Lt)!==0&&(e.f&Rt)!==0;Xo(i,t,o?r:!1),i=s}}}function Ki(e){Wo(e,!0)}function Wo(e,t){if(e.f&Fe){e.f^=Fe,e.f&Te||(ye(e,He),Pt(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&Er)!==0||(r.f&Lt)!==0;Wo(r,i?t:!1),r=n}var s=e.nodes&&e.nodes.t;if(s!==null)for(const o of s)(o.is_global||t)&&o.in()}}function qo(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:at(r);t.append(r),r=i}}let ir=!1;function wn(e){ir=e}let Yt=!1;function Es(e){Yt=e}let L=null,ot=!1;function Ce(e){L=e}let Y=null;function Je(e){Y=e}let Be=null;function Jo(e){L!==null&&(Be===null?Be=[e]:Be.push(e))}let Re=null,ke=0,Ye=null;function vl(e){Ye=e}let Qo=1,qt=0,sr=qt;function Ss(e){sr=e}function Ko(){return++Qo}function nn(e){var t=e.f;if(t&He)return!0;if(t&we&&(e.f&=~ar),t&It){for(var r=e.deps,n=r.length,i=0;i<n;i++){var s=r[i];if(nn(s)&&Bo(s),s.wv>e.wv)return!0}t&qe&&xe===null&&ye(e,Te)}return!1}function ea(e,t,r=!0){var n=e.reactions;if(n!==null&&!(Be!=null&&Be.includes(e)))for(var i=0;i<n.length;i++){var s=n[i];s.f&we?ea(s,t,!1):t===s&&(r?ye(s,He):s.f&Te&&ye(s,It),Pt(s))}}function ta(e){var _,x;var t=Re,r=ke,n=Ye,i=L,s=Be,o=Ie,u=ot,a=sr,l=e.f;Re=null,ke=0,Ye=null,L=l&(Lt|zt)?null:e,Be=null,Cr(e.ctx),ot=!1,sr=++qt,e.ac!==null&&(ko(()=>{e.ac.abort(vr)}),e.ac=null);try{e.f|=pi;var f=e.fn,d=f(),h=e.deps;if(Re!==null){var v;if(En(e,ke),h!==null&&ke>0)for(h.length=ke+Re.length,v=0;v<Re.length;v++)h[ke+v]=Re[v];else e.deps=h=Re;if(qi()&&e.f&qe)for(v=ke;v<h.length;v++)((x=(_=h[v]).reactions)!=null?x:_.reactions=[]).push(e)}else h!==null&&ke<h.length&&(En(e,ke),h.length=ke);if(go()&&Ye!==null&&!ot&&h!==null&&!(e.f&(we|It|He)))for(v=0;v<Ye.length;v++)ea(Ye[v],e);if(i!==null&&i!==e){if(qt++,i.deps!==null)for(let c=0;c<r;c+=1)i.deps[c].rv=qt;if(t!==null)for(const c of t)c.rv=qt;Ye!==null&&(n===null?n=Ye:n.push(...Ye))}return e.f&jt&&(e.f^=jt),d}catch(c){return yo(c)}finally{e.f^=pi,Re=t,ke=r,Ye=n,L=i,Be=s,Cr(o),ot=u,sr=a}}function ml(e,t){let r=t.reactions;if(r!==null){var n=Hu.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}if(r===null&&t.f&we&&(Re===null||!Re.includes(t))){var s=t;s.f&qe&&(s.f^=qe,s.f&=~ar),Zi(s),Ao(s),En(s,0)}}function En(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)ml(e,r[n])}function Xr(e){var t=e.f;if(!(t&Bt)){ye(e,Te);var r=Y,n=ir;Y=e,ir=!0;try{t&(Rt|ao)?pl(e):Yo(e),Vo(e);var i=ta(e);e.teardown=typeof i=="function"?i:null,e.wv=Qo;var s;di&&Xu&&e.f&He&&e.deps}finally{ir=n,Y=r}}}function E(e){var f;var t=e.f,r=(t&we)!==0;if(L!==null&&!ot){var n=Y!==null&&(Y.f&Bt)!==0;if(!n&&!(Be!=null&&Be.includes(e))){var i=L.deps;if(L.f&pi)e.rv<qt&&(e.rv=qt,Re===null&&i!==null&&i[ke]===e?ke++:Re===null?Re=[e]:Re.push(e));else{((f=L.deps)!=null?f:L.deps=[]).push(e);var s=e.reactions;s===null?e.reactions=[L]:s.includes(L)||s.push(L)}}}if(Yt&&Vt.has(e))return Vt.get(e);if(r){var o=e;if(Yt){var u=o.v;return(!(o.f&Te)&&o.reactions!==null||na(o))&&(u=Xi(o)),Vt.set(o,u),u}var a=(o.f&qe)===0&&!ot&&L!==null&&(ir||(L.f&qe)!==0),l=o.deps===null;nn(o)&&(a&&(o.f|=qe),Bo(o)),a&&!l&&ra(o)}if(xe!=null&&xe.has(e))return xe.get(e);if(e.f&jt)throw e.v;return e.v}function ra(e){var t;if(e.deps!==null){e.f|=qe;for(const r of e.deps)((t=r.reactions)!=null?t:r.reactions=[]).push(e),r.f&we&&!(r.f&qe)&&ra(r)}}function na(e){if(e.v===_e)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Vt.has(t)||t.f&we&&na(t))return!0;return!1}function Nn(e){var t=ot;try{return ot=!0,e()}finally{ot=t}}const ia=new Set,wi=new Set;function sa(e){for(var t=0;t<e.length;t++)ia.add(e[t]);for(var r of wi)r(e)}let Cs=null;function ln(e){var c;var t=this,r=t.ownerDocument,n=e.type,i=((c=e.composedPath)==null?void 0:c.call(e))||[],s=i[0]||e.target;Cs=e;var o=0,u=Cs===e&&e.__root;if(u){var a=i.indexOf(u);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var l=i.indexOf(t);if(l===-1)return;a<=l&&(o=a)}if(s=i[o]||e.target,s!==t){Zr(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=L,d=Y;Ce(null),Je(null);try{for(var h,v=[];s!==null;){var _=s.assignedSlot||s.parentNode||s.host||null;try{var x=s["__"+n];x!=null&&(!s.disabled||e.target===s)&&x.call(s,e)}catch(g){h?v.push(g):h=g}if(e.cancelBubble||_===t||_===null)break;s=_}if(h){for(let g of v)queueMicrotask(()=>{throw g});throw h}}finally{e.__root=t,delete e.currentTarget,Ce(f),Je(d)}}}function oa(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function xt(e,t){var r=Y;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function wt(e,t){var r=(t&Ou)!==0,n=(t&Au)!==0,i,s=!e.startsWith("<!>");return()=>{if(U)return xt(N,null),N;i===void 0&&(i=oa(s?e:"<!>"+e),r||(i=st(i)));var o=n||$o?document.importNode(i,!0):i.cloneNode(!0);if(r){var u=st(o),a=o.lastChild;xt(u,a)}else xt(o,o);return o}}function gl(e=""){if(!U){var t=Le(e+"");return xt(t,t),t}var r=N;return r.nodeType!==$n&&(r.before(r=Le()),Me(r)),xt(r,r),r}function Xt(){if(U)return xt(N,null),N;var e=document.createDocumentFragment(),t=document.createComment(""),r=Le();return e.append(t,r),xt(t,r),e}function be(e,t){if(U){var r=Y;(!(r.f&Pn)||r.nodes.end===null)&&(r.nodes.end=N),Sr();return}e!==null&&e.before(t)}const bl=["touchstart","touchmove"];function yl(e){return bl.includes(e)}function Gr(e,t){var n;var r=t==null?"":typeof t=="object"?t+"":t;r!==((n=e.__t)!=null?n:e.__t=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function aa(e,t){return ua(e,t)}function _l(e,t){var o;xi(),t.intro=(o=t.intro)!=null?o:!1;const r=t.target,n=U,i=N;try{for(var s=st(r);s&&(s.nodeType!==fr||s.data!==ro);)s=at(s);if(!s)throw or;it(!0),Me(s);const u=ua(e,an(on({},t),{anchor:s}));return it(!1),u}catch(u){if(u instanceof Error&&u.message.split(`
2
- `).some(a=>a.startsWith("https://svelte.dev/e/")))throw u;return u!==or&&console.warn("Failed to hydrate: ",u),t.recover===!1&&Gu(),xi(),Io(r),it(!1),aa(e,t)}finally{it(n),Me(i)}}const hr=new Map;function ua(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:o=!0}){xi();var u=new Set,a=d=>{for(var h=0;h<d.length;h++){var v=d[h];if(!u.has(v)){u.add(v);var _=yl(v);t.addEventListener(v,ln,{passive:_});var x=hr.get(v);x===void 0?(document.addEventListener(v,ln,{passive:_}),hr.set(v,1)):hr.set(v,x+1)}}};a(Hn(ia)),wi.add(a);var l=void 0,f=cl(()=>{var d=r!=null?r:t.appendChild(Le());return el(d,{pending:()=>{}},h=>{if(s){Yi({});var v=Ie;v.c=s}if(i&&(n.$$events=i),U&&xt(h,null),l=e(h,n)||{},U&&(Y.nodes.end=N,N===null||N.nodeType!==fr||N.data!==Gi))throw rn(),or;s&&zi()}),()=>{var _;for(var h of u){t.removeEventListener(h,ln);var v=hr.get(h);--v===0?(document.removeEventListener(h,ln),hr.delete(h)):hr.set(h,v)}wi.delete(a),d!==r&&((_=d.parentNode)==null||_.removeChild(d))}});return Ei.set(l,f),l}let Ei=new WeakMap;function xl(e,t){const r=Ei.get(e);return r?(Ei.delete(e),r(t)):Promise.resolve()}var nt,bt,Ue,rr,Kr,en,An;class wl{constructor(t,r=!0){he(this,"anchor");D(this,nt,new Map);D(this,bt,new Map);D(this,Ue,new Map);D(this,rr,new Set);D(this,Kr,!0);D(this,en,()=>{var t=ee;if(p(this,nt).has(t)){var r=p(this,nt).get(t),n=p(this,bt).get(r);if(n)Ki(n),p(this,rr).delete(r);else{var i=p(this,Ue).get(r);i&&(p(this,bt).set(r,i.effect),p(this,Ue).delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,o]of p(this,nt)){if(p(this,nt).delete(s),s===t)break;const u=p(this,Ue).get(o);u&&(Ae(u.effect),p(this,Ue).delete(o))}for(const[s,o]of p(this,bt)){if(s===r||p(this,rr).has(s))continue;const u=()=>{if(Array.from(p(this,nt).values()).includes(s)){var l=document.createDocumentFragment();qo(o,l),l.append(Le()),p(this,Ue).set(s,{effect:o,fragment:l})}else Ae(o);p(this,rr).delete(s),p(this,bt).delete(s)};p(this,Kr)||!n?(p(this,rr).add(s),nr(o,u,!1)):u()}}});D(this,An,t=>{p(this,nt).delete(t);const r=Array.from(p(this,nt).values());for(const[n,i]of p(this,Ue))r.includes(n)||(Ae(i.effect),p(this,Ue).delete(n))});this.anchor=t,R(this,Kr,r)}ensure(t,r){var n=ee,i=No();if(r&&!p(this,bt).has(t)&&!p(this,Ue).has(t))if(i){var s=document.createDocumentFragment(),o=Le();s.append(o),p(this,Ue).set(t,{effect:We(()=>r(o)),fragment:s})}else p(this,bt).set(t,We(()=>r(this.anchor)));if(p(this,nt).set(n,t),i){for(const[u,a]of p(this,bt))u===t?n.skipped_effects.delete(a):n.skipped_effects.add(a);for(const[u,a]of p(this,Ue))u===t?n.skipped_effects.delete(a.effect):n.skipped_effects.add(a.effect);n.oncommit(p(this,en)),n.ondiscard(p(this,An))}else U&&(this.anchor=N),p(this,en).call(this)}}nt=new WeakMap,bt=new WeakMap,Ue=new WeakMap,rr=new WeakMap,Kr=new WeakMap,en=new WeakMap,An=new WeakMap;function es(e){Ie===null&&fo(),Ji(()=>{const t=Nn(e);if(typeof t=="function")return t})}function El(e){Ie===null&&fo(),es(()=>()=>Nn(e))}function Pe(e,t,r=!1){U&&Sr();var n=new wl(e),i=r?Er:0;function s(o,u){if(U){const l=ho(e)===Bn;if(o===l){var a=_n();Me(a),n.anchor=a,it(!1),n.ensure(o,u),it(!0);return}}n.ensure(o,u)}Qi(()=>{var o=!1;t((u,a=!0)=>{o=!0,s(a,u)}),o||s(!1,null)},i)}function la(e,t){return t}function Sl(e,t,r){var d;for(var n=[],i=t.length,s,o=t.length,u=0;u<i;u++){let h=t[u];nr(h,()=>{if(s){if(s.pending.delete(h),s.done.add(h),s.pending.size===0){var v=e.outrogroups;Si(Hn(s.done)),v.delete(s),v.size===0&&(e.outrogroups=null)}}else o-=1},!1)}if(o===0){var a=n.length===0&&r!==null;if(a){var l=r,f=l.parentNode;Io(f),f.append(l),e.items.clear()}Si(t,!a)}else s={pending:new Set(t),done:new Set},((d=e.outrogroups)!=null?d:e.outrogroups=new Set).add(s)}function Si(e,t=!0){for(var r=0;r<e.length;r++)Ae(e[r],t)}var dr;function fa(e,t,r,n,i,s=null){var o=e,u=new Map,a=(t&to)!==0;if(a){var l=e;o=U?Me(st(l)):l.appendChild(Le())}U&&Sr();var f=null,d=ol(()=>{var g=r();return no(g)?g:g==null?[]:Hn(g)}),h,v=!0;function _(){c.fallback=f,Cl(c,h,o,t,n),f!==null&&(h.length===0?f.f&Ot?(f.f^=Ot,jr(f,null,o)):Ki(f):nr(f,()=>{f=null}))}var x=Qi(()=>{h=E(d);var g=h.length;let A=!1;if(U){var M=ho(o)===Bn;M!==(g===0)&&(o=_n(),Me(o),it(!1),A=!0)}for(var G=new Set,I=ee,k=No(),V=0;V<g;V+=1){U&&N.nodeType===fr&&N.data===Gi&&(o=N,A=!0,it(!1));var te=h[V],W=n(te,V),H=v?null:u.get(W);H?(H.v&&Mr(H.v,te),H.i&&Mr(H.i,V),k&&I.skipped_effects.delete(H.e)):(H=Tl(u,v?o:dr!=null?dr:dr=Le(),te,W,V,i,t,r),v||(H.e.f|=Ot),u.set(W,H)),G.add(W)}if(g===0&&s&&!f&&(v?f=We(()=>s(o)):(f=We(()=>s(dr!=null?dr:dr=Le())),f.f|=Ot)),U&&g>0&&Me(_n()),!v)if(k){for(const[B,ne]of u)G.has(B)||I.skipped_effects.add(ne.e);I.oncommit(_),I.ondiscard(()=>{})}else _();A&&it(!0),E(d)}),c={effect:x,items:u,outrogroups:null,fallback:f};v=!1,U&&(o=N)}function Cl(e,t,r,n,i){var H,B,ne,ie,S,b,m,w,y;var s=(n&Tu)!==0,o=t.length,u=e.items,a=e.effect.first,l,f=null,d,h=[],v=[],_,x,c,g;if(s)for(g=0;g<o;g+=1)_=t[g],x=i(_,g),c=u.get(x).e,c.f&Ot||((B=(H=c.nodes)==null?void 0:H.a)==null||B.measure(),(d!=null?d:d=new Set).add(c));for(g=0;g<o;g+=1){if(_=t[g],x=i(_,g),c=u.get(x).e,e.outrogroups!==null)for(const C of e.outrogroups)C.pending.delete(c),C.done.delete(c);if(c.f&Ot)if(c.f^=Ot,c===a)jr(c,null,r);else{var A=f?f.next:a;c===e.effect.last&&(e.effect.last=c.prev),c.prev&&(c.prev.next=c.next),c.next&&(c.next.prev=c.prev),Nt(e,f,c),Nt(e,c,A),jr(c,A,r),f=c,h=[],v=[],a=f.next;continue}if(c.f&Fe&&(Ki(c),s&&((ie=(ne=c.nodes)==null?void 0:ne.a)==null||ie.unfix(),(d!=null?d:d=new Set).delete(c))),c!==a){if(l!==void 0&&l.has(c)){if(h.length<v.length){var M=v[0],G;f=M.prev;var I=h[0],k=h[h.length-1];for(G=0;G<h.length;G+=1)jr(h[G],M,r);for(G=0;G<v.length;G+=1)l.delete(v[G]);Nt(e,I.prev,k.next),Nt(e,f,I),Nt(e,k,M),a=M,f=k,g-=1,h=[],v=[]}else l.delete(c),jr(c,a,r),Nt(e,c.prev,c.next),Nt(e,c,f===null?e.effect.first:f.next),Nt(e,f,c),f=c;continue}for(h=[],v=[];a!==null&&a!==c;)(l!=null?l:l=new Set).add(a),v.push(a),a=a.next;if(a===null)continue}c.f&Ot||h.push(c),f=c,a=c.next}if(e.outrogroups!==null){for(const C of e.outrogroups)C.pending.size===0&&(Si(Hn(C.done)),(S=e.outrogroups)==null||S.delete(C));e.outrogroups.size===0&&(e.outrogroups=null)}if(a!==null||l!==void 0){var V=[];if(l!==void 0)for(c of l)c.f&Fe||V.push(c);for(;a!==null;)!(a.f&Fe)&&a!==e.fallback&&V.push(a),a=a.next;var te=V.length;if(te>0){var W=n&to&&o===0?r:null;if(s){for(g=0;g<te;g+=1)(m=(b=V[g].nodes)==null?void 0:b.a)==null||m.measure();for(g=0;g<te;g+=1)(y=(w=V[g].nodes)==null?void 0:w.a)==null||y.fix()}Sl(e,V,W)}}s&&Rn(()=>{var C,O;if(d!==void 0)for(c of d)(O=(C=c.nodes)==null?void 0:C.a)==null||O.apply()})}function Tl(e,t,r,n,i,s,o,u){var a=o&Su?o&Mu?ur(r):Wi(r,!1,!1):null,l=o&Cu?ur(i):null;return{v:a,i:l,e:We(()=>(s(t,a!=null?a:r,l!=null?l:i,u),()=>{e.delete(n)}))}}function jr(e,t,r){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end,s=t&&!(t.f&Ot)?t.nodes.start:r;n!==null;){var o=at(n);if(s.before(n),n===i)return;n=o}}function Nt(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function tt(e,t,r=!1,n=!1,i=!1){var s=e,o="";K(()=>{var h;var u=Y;if(o===(o=(h=t())!=null?h:"")){U&&Sr();return}if(u.nodes!==null&&(zo(u.nodes.start,u.nodes.end),u.nodes=null),o!==""){if(U){N.data;for(var a=Sr(),l=a;a!==null&&(a.nodeType!==fr||a.data!=="");)l=a,a=at(a);if(a===null)throw rn(),or;xt(N,l),s=Me(a);return}var f=o+"";r?f=`<svg>${f}</svg>`:n&&(f=`<math>${f}</math>`);var d=oa(f);if((r||n)&&(d=st(d)),xt(st(d),d.lastChild),r||n)for(;st(d);)s.before(st(d));else s.before(d)}})}function ca(e,t){hl(()=>{var i;var r=e.getRootNode(),n=r.host?r:(i=r.head)!=null?i:r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}function ha(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=ha(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ml(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=ha(e))&&(n&&(n+=" "),n+=t);return n}function Ol(e){return typeof e=="object"?Ml(e):e!=null?e:""}const Ts=[...`
3
- \r\f \v\uFEFF`];function Al(e,t,r){var n=e==null?"":""+e;if(t&&(n=n?n+" "+t:t),r){for(var i in r)if(r[i])n=n?n+" "+i:i;else if(n.length)for(var s=i.length,o=0;(o=n.indexOf(i,o))>=0;){var u=o+s;(o===0||Ts.includes(n[o-1]))&&(u===n.length||Ts.includes(n[u]))?n=(o===0?"":n.substring(0,o))+n.substring(u+1):o=u}}return n===""?null:n}function Bl(e,t){return e==null?null:String(e)}function Vr(e,t,r,n,i,s){var o=e.__className;if(U||o!==r||o===void 0){var u=Al(r,n,s);(!U||u!==e.getAttribute("class"))&&(u==null?e.removeAttribute("class"):e.className=u),e.__className=r}else if(s&&i!==s)for(var a in s){var l=!!s[a];(i==null||l!==!!i[a])&&e.classList.toggle(a,l)}return s}function Hl(e,t,r,n){var i=e.__style;if(U||i!==t){var s=Bl(t);(!U||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const Pl=Symbol("is custom element"),$l=Symbol("is html");function pt(e,t,r,n){var i=Rl(e);U&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Iu]=r),r==null?e.removeAttribute(t):typeof r!="string"&&da(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function pe(e,t,r){var n=L,i=Y;let s=U;U&&it(!1),Ce(null),Je(null);try{t!=="style"&&(Ci.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?da(e).includes(t):r&&typeof r=="object")?e[t]=r:pt(e,t,r==null?r:String(r))}finally{Ce(n),Je(i),s&&it(!0)}}function Rl(e){var t;return(t=e.__attributes)!=null?t:e.__attributes={[Pl]:e.nodeName.includes("-"),[$l]:e.namespaceURI===Bu}}var Ci=new Map;function da(e){var t=e.getAttribute("is")||e.nodeName,r=Ci.get(t);if(r)return r;Ci.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=Pu(i);for(var o in n)n[o].set&&r.push(o);i=io(i)}return r}function ts(e,t,r){if(e==null)return t(void 0),r&&r(void 0),Gt;const n=Nn(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const pr=[];function Ll(e,t){return{subscribe:kn(e,t).subscribe}}function kn(e,t=Gt){let r=null;const n=new Set;function i(u){if(vo(e,u)&&(e=u,r)){const a=!pr.length;for(const l of n)l[1](),pr.push(l,e);if(a){for(let l=0;l<pr.length;l+=2)pr[l][0](pr[l+1]);pr.length=0}}}function s(u){i(u(e))}function o(u,a=Gt){const l=[u,a];return n.add(l),n.size===1&&(r=t(i,s)||Gt),u(e),()=>{n.delete(l),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:o}}function Pr(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 Ll(r,(o,u)=>{let a=!1;const l=[];let f=0,d=Gt;const h=()=>{if(f)return;d();const _=t(n?l[0]:l,o,u);s?o(_):d=typeof _=="function"?_:Gt},v=i.map((_,x)=>ts(_,c=>{l[x]=c,f&=~(1<<x),a&&h()},()=>{f|=1<<x}));return a=!0,h(),function(){so(v),d(),a=!1}})}function Il(e){let t;return ts(e,r=>t=r)(),t}let Ti=Symbol();function pa(e,t,r){var s;const n=(s=r[t])!=null?s:r[t]={store:null,source:Wi(void 0),unsubscribe:Gt};if(n.store!==e&&!(Ti in r))if(n.unsubscribe(),n.store=e!=null?e:null,e==null)n.source.v=void 0,n.unsubscribe=Gt;else{var i=!0;n.unsubscribe=ts(e,o=>{i?n.source.v=o:J(n.source,o)}),i=!1}return e&&Ti in r?Il(e):E(n.source)}function va(){const e={};function t(){Uo(()=>{for(var r in e)e[r].unsubscribe();Zr(e,Ti,{enumerable:!1,value:!0})})}return[e,t]}function St(e,t,r,n){var i=n,s=!0,o=()=>(s&&(s=!1,i=n),i),u;u=e[t],u===void 0&&n!==void 0&&(u=o());var a;a=()=>{var h=e[t];return h===void 0?o():(s=!0,h)};var l=!1,f=In(()=>(l=!1,a())),d=Y;return function(h,v){if(arguments.length>0){const _=v?E(f):h;return J(f,_),l=!0,i!==void 0&&(i=_),h}return Yt&&l||d.f&Bt?f.v:E(f)}}function Nl(e){return new kl(e)}var Mt,Ze;class kl{constructor(t){D(this,Mt);D(this,Ze);var s,o;var r=new Map,n=(u,a)=>{var l=Wi(a,!1,!1);return r.set(u,l),l};const i=new Proxy(an(on({},t.props||{}),{$$events:{}}),{get(u,a){var l;return E((l=r.get(a))!=null?l:n(a,Reflect.get(u,a)))},has(u,a){var l;return a===Lu?!0:(E((l=r.get(a))!=null?l:n(a,Reflect.get(u,a))),Reflect.has(u,a))},set(u,a,l){var f;return J((f=r.get(a))!=null?f:n(a,l),l),Reflect.set(u,a,l)}});R(this,Ze,(t.hydrate?_l:aa)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:(s=t.intro)!=null?s:!1,recover:t.recover})),(!((o=t==null?void 0:t.props)!=null&&o.$$host)||t.sync===!1)&&dt(),R(this,Mt,i.$$events);for(const u of Object.keys(p(this,Ze)))u==="$set"||u==="$destroy"||u==="$on"||Zr(this,u,{get(){return p(this,Ze)[u]},set(a){p(this,Ze)[u]=a},enumerable:!0});p(this,Ze).$set=u=>{Object.assign(i,u)},p(this,Ze).$destroy=()=>{xl(p(this,Ze))}}$set(t){p(this,Ze).$set(t)}$on(t,r){p(this,Mt)[t]=p(this,Mt)[t]||[];const n=(...i)=>r.call(this,...i);return p(this,Mt)[t].push(n),()=>{p(this,Mt)[t]=p(this,Mt)[t].filter(i=>i!==n)}}$destroy(){p(this,Ze).$destroy()}}Mt=new WeakMap,Ze=new WeakMap;let ma;typeof HTMLElement=="function"&&(ma=class extends HTMLElement{constructor(t,r,n){super();he(this,"$$ctor");he(this,"$$s");he(this,"$$c");he(this,"$$cn",!1);he(this,"$$d",{});he(this,"$$r",!1);he(this,"$$p_d",{});he(this,"$$l",{});he(this,"$$l_u",new Map);he(this,"$$me");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 ii(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return s=>{const o=document.createElement("slot");i!=="default"&&(o.name=i),be(s,o)}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=Dl(this);for(const i of this.$$s)i in n&&(i==="default"&&!this.$$d.children?(this.$$d.children=t(i),r.default=!0):r[i]=t(i));for(const i of this.attributes){const s=this.$$g_p(i.name);s in this.$$d||(this.$$d[s]=pn(s,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=Nl({component:this.$$ctor,target:this.shadowRoot||this,props:an(on({},this.$$d),{$$slots:r,$$host:this})}),this.$$me=fl(()=>{jo(()=>{var i;this.$$r=!0;for(const s of bn(this.$$c)){if(!((i=this.$$p_d[s])!=null&&i.reflect))continue;this.$$d[s]=this.$$c[s];const o=pn(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})});for(const i in this.$$l)for(const s of this.$$l[i]){const o=this.$$c.$on(i,s);this.$$l_u.set(s,o)}this.$$l={}}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=pn(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.$$me(),this.$$c=void 0)})}$$g_p(t){return bn(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function pn(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 Dl(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function ga(e,t,r,n,i,s){let o=class extends ma{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return bn(t).map(u=>(t[u].attribute||u).toLowerCase())}};return bn(t).forEach(u=>{Zr(o.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(a){var d;a=pn(u,a,t),this.$$d[u]=a;var l=this.$$c;if(l){var f=(d=mr(l,u))==null?void 0:d.get;f?l[u]=a:l.$set({[u]:a})}}})}),n.forEach(u=>{Zr(o.prototype,u,{get(){var a;return(a=this.$$c)==null?void 0:a[u]}})}),e.element=o,o}var rs=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Dn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ul=function(t){return Fl(t)&&!Gl(t)};function Fl(e){return!!e&&typeof e=="object"}function Gl(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Yl(e)}var jl=typeof Symbol=="function"&&Symbol.for,Vl=jl?Symbol.for("react.element"):60103;function Yl(e){return e.$$typeof===Vl}function zl(e){return Array.isArray(e)?[]:{}}function Wr(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Or(zl(e),e,t):e}function Zl(e,t,r){return e.concat(t).map(function(n){return Wr(n,r)})}function Xl(e,t){if(!t.customMerge)return Or;var r=t.customMerge(e);return typeof r=="function"?r:Or}function Wl(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Ms(e){return Object.keys(e).concat(Wl(e))}function ba(e,t){try{return t in e}catch(r){return!1}}function ql(e,t){return ba(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Jl(e,t,r){var n={};return r.isMergeableObject(e)&&Ms(e).forEach(function(i){n[i]=Wr(e[i],r)}),Ms(t).forEach(function(i){ql(e,i)||(ba(e,i)&&r.isMergeableObject(t[i])?n[i]=Xl(i,r)(e[i],t[i],r):n[i]=Wr(t[i],r))}),n}function Or(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Zl,r.isMergeableObject=r.isMergeableObject||Ul,r.cloneUnlessOtherwiseSpecified=Wr;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):Jl(e,t,r):Wr(t,r)}Or.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return Or(n,i,r)},{})};var Ql=Or,Kl=Ql;const e0=Dn(Kl);var Mi=function(e,t){return Mi=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])},Mi(e,t)};function Un(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Mi(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var yt=function(){return yt=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},yt.apply(this,arguments)};function t0(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 oi(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 ai(e,t){var r=t&&t.cache?t.cache:u0,n=t&&t.serializer?t.serializer:o0,i=t&&t.strategy?t.strategy:i0;return i(e,{cache:r,serializer:n})}function r0(e){return e==null||typeof e=="number"||typeof e=="boolean"}function n0(e,t,r,n){var i=r0(n)?n:r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.call(this,n),t.set(i,s)),s}function ya(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 _a(e,t,r,n,i){return r.bind(t,e,n,i)}function i0(e,t){var r=e.length===1?n0:ya;return _a(e,this,r,t.cache.create(),t.serializer)}function s0(e,t){return _a(e,this,ya,t.cache.create(),t.serializer)}var o0=function(){return JSON.stringify(arguments)},a0=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}(),u0={create:function(){return new a0}},ui={variadic:s0},Sn=function(){return Sn=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},Sn.apply(this,arguments)};var F;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(F||(F={}));var ue;(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"})(ue||(ue={}));var Ar;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Ar||(Ar={}));function Os(e){return e.type===ue.literal}function l0(e){return e.type===ue.argument}function xa(e){return e.type===ue.number}function wa(e){return e.type===ue.date}function Ea(e){return e.type===ue.time}function Sa(e){return e.type===ue.select}function Ca(e){return e.type===ue.plural}function f0(e){return e.type===ue.pound}function Ta(e){return e.type===ue.tag}function Ma(e){return!!(e&&typeof e=="object"&&e.type===Ar.number)}function Oi(e){return!!(e&&typeof e=="object"&&e.type===Ar.dateTime)}var Oa=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,c0=/(?:[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 h0(e){var t={};return e.replace(c0,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 ce=function(){return ce=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},ce.apply(this,arguments)};var d0=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function p0(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(d0).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 u=o[0],a=o.slice(1),l=0,f=a;l<f.length;l++){var d=f[l];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:u,options:a})}return r}function v0(e){return e.replace(/^(.*?)-/,"")}var As=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Aa=/^(@+)?(\+|#+)?[rs]?$/g,m0=/(\*)(0+)|(#+)(0+)|(0+)/g,Ba=/^(0+)$/;function Bs(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Aa,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 Ha(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 g0(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)),!Ba.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Hs(e){var t={},r=Ha(e);return r||t}function b0(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=v0(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=ce(ce(ce({},t),{notation:"scientific"}),i.options.reduce(function(a,l){return ce(ce({},a),Hs(l))},{}));continue;case"engineering":t=ce(ce(ce({},t),{notation:"engineering"}),i.options.reduce(function(a,l){return ce(ce({},a),Hs(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(m0,function(a,l,f,d,h,v){if(l)t.minimumIntegerDigits=f.length;else{if(d&&h)throw new Error("We currently do not support maximum integer digits");if(v)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ba.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(As.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(As,function(a,l,f,d,h,v){return f==="*"?t.minimumFractionDigits=l.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:h&&v?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+v.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var s=i.options[0];s==="w"?t=ce(ce({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=ce(ce({},t),Bs(s)));continue}if(Aa.test(i.stem)){t=ce(ce({},t),Bs(i.stem));continue}var o=Ha(i.stem);o&&(t=ce(ce({},t),o));var u=g0(i.stem);u&&(t=ce(ce({},t),u))}return t}var fn={"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 y0(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),u=s<2?1:3+(s>>1),a="a",l=_0(t);for((l=="H"||l=="k")&&(u=0);u-- >0;)r+=a;for(;o-- >0;)r=l+r}else i==="J"?r+="H":r+=i}return r}function _0(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=fn[n||""]||fn[r||""]||fn["".concat(r,"-001")]||fn["001"];return i[0]}var li,x0=new RegExp("^".concat(Oa.source,"*")),w0=new RegExp("".concat(Oa.source,"*$"));function j(e,t){return{start:e,end:t}}var E0=!!String.prototype.startsWith&&"_a".startsWith("a",1),S0=!!String.fromCodePoint,C0=!!Object.fromEntries,T0=!!String.prototype.codePointAt,M0=!!String.prototype.trimStart,O0=!!String.prototype.trimEnd,A0=!!Number.isSafeInteger,B0=A0?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ai=!0;try{var H0=$a("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ai=((li=H0.exec("a"))===null||li===void 0?void 0:li[0])==="a"}catch(e){Ai=!1}var Ps=E0?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Bi=S0?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},$s=C0?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var s=i[n],o=s[0],u=s[1];r[o]=u}return r},Pa=T0?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}},P0=M0?function(t){return t.trimStart()}:function(t){return t.replace(x0,"")},$0=O0?function(t){return t.trimEnd()}:function(t){return t.replace(w0,"")};function $a(e,t){return new RegExp(e,t)}var Hi;if(Ai){var Rs=$a("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Hi=function(t,r){var n;Rs.lastIndex=r;var i=Rs.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else Hi=function(t,r){for(var n=[];;){var i=Pa(t,r);if(i===void 0||Ra(i)||N0(i))break;n.push(i),r+=i>=65536?2:1}return Bi.apply(void 0,n)};var R0=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 u=this.clonePosition();this.bump(),i.push({type:ue.pound,location:j(u,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(F.UNMATCHED_CLOSING_TAG,j(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&Pi(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:ue.literal,value:"<".concat(i,"/>"),location:j(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,u=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Pi(this.char()))return this.error(F.INVALID_TAG,j(u,this.clonePosition()));var a=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(F.UNMATCHED_CLOSING_TAG,j(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ue.tag,value:i,children:o,location:j(n,this.clonePosition())},err:null}:this.error(F.INVALID_TAG,j(u,this.clonePosition())))}else return this.error(F.UNCLOSED_TAG,j(n,this.clonePosition()))}else return this.error(F.INVALID_TAG,j(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&I0(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 u=this.tryParseLeftAngleBracket();if(u){i+=u;continue}break}var a=j(n,this.clonePosition());return{val:{type:ue.literal,value:i,location:a},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!L0(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 Bi.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(),Bi(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,j(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(F.EMPTY_ARGUMENT,j(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(F.MALFORMED_ARGUMENT,j(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,j(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ue.argument,value:i,location:j(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,j(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(F.MALFORMED_ARGUMENT,j(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Hi(this.message,r),i=r+n.length;this.bumpTo(i);var s=this.clonePosition(),o=j(t,s);return{value:n,location:o}},e.prototype.parseArgumentOptions=function(t,r,n,i){var s,o=this.clonePosition(),u=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(u){case"":return this.error(F.EXPECT_ARGUMENT_TYPE,j(o,a));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var h=$0(d.val);if(h.length===0)return this.error(F.EXPECT_ARGUMENT_STYLE,j(this.clonePosition(),this.clonePosition()));var v=j(f,this.clonePosition());l={style:h,styleLocation:v}}var _=this.tryParseArgumentClose(i);if(_.err)return _;var x=j(i,this.clonePosition());if(l&&Ps(l==null?void 0:l.style,"::",0)){var c=P0(l.style.slice(2));if(u==="number"){var d=this.parseNumberSkeletonFromString(c,l.styleLocation);return d.err?d:{val:{type:ue.number,value:n,location:x,style:d.val},err:null}}else{if(c.length===0)return this.error(F.EXPECT_DATE_TIME_SKELETON,x);var g=c;this.locale&&(g=y0(c,this.locale));var h={type:Ar.dateTime,pattern:g,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?h0(g):{}},A=u==="date"?ue.date:ue.time;return{val:{type:A,value:n,location:x,style:h},err:null}}}return{val:{type:u==="number"?ue.number:u==="date"?ue.date:ue.time,value:n,location:x,style:(s=l==null?void 0:l.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var M=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(F.EXPECT_SELECT_ARGUMENT_OPTIONS,j(M,Sn({},M)));this.bumpSpace();var G=this.parseIdentifierIfPossible(),I=0;if(u!=="select"&&G.value==="offset"){if(!this.bumpIf(":"))return this.error(F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,j(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,F.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),G=this.parseIdentifierIfPossible(),I=d.val}var k=this.tryParsePluralOrSelectOptions(t,u,r,G);if(k.err)return k;var _=this.tryParseArgumentClose(i);if(_.err)return _;var V=j(i,this.clonePosition());return u==="select"?{val:{type:ue.select,value:n,options:$s(k.val),location:V},err:null}:{val:{type:ue.plural,value:n,options:$s(k.val),offset:I,pluralType:u==="plural"?"cardinal":"ordinal",location:V},err:null}}default:return this.error(F.INVALID_ARGUMENT_TYPE,j(o,a))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,j(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(F.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,j(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=p0(t)}catch(i){return this.error(F.INVALID_NUMBER_SKELETON,r)}return{val:{type:Ar.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?b0(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var s,o=!1,u=[],a=new Set,l=i.value,f=i.location;;){if(l.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(F.EXPECT_PLURAL_ARGUMENT_SELECTOR,F.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;f=j(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(a.has(l))return this.error(r==="select"?F.DUPLICATE_SELECT_ARGUMENT_SELECTOR:F.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);l==="other"&&(o=!0),this.bumpSpace();var v=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?F.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:F.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,j(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(t+1,r,n);if(_.err)return _;var x=this.tryParseArgumentClose(v);if(x.err)return x;u.push([l,{value:_.val,location:j(v,this.clonePosition())}]),a.add(l),this.bumpSpace(),s=this.parseIdentifierIfPossible(),l=s.value,f=s.location}return u.length===0?this.error(r==="select"?F.EXPECT_SELECT_ARGUMENT_SELECTOR:F.EXPECT_PLURAL_ARGUMENT_SELECTOR,j(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(F.MISSING_OTHER_CLAUSE,j(this.clonePosition(),this.clonePosition())):{val:u,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 u=this.char();if(u>=48&&u<=57)s=!0,o=o*10+(u-48),this.bump();else break}var a=j(i,this.clonePosition());return s?(o*=n,B0(o)?{val:o,err:null}:this.error(r,a)):this.error(t,a)},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=Pa(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(Ps(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()&&Ra(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 Pi(e){return e>=97&&e<=122||e>=65&&e<=90}function L0(e){return Pi(e)||e===47}function I0(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 Ra(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function N0(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 $i(e){e.forEach(function(t){if(delete t.location,Sa(t)||Ca(t))for(var r in t.options)delete t.options[r].location,$i(t.options[r].value);else xa(t)&&Ma(t.style)||(wa(t)||Ea(t))&&Oi(t.style)?delete t.style.location:Ta(t)&&$i(t.children)})}function k0(e,t){t===void 0&&(t={}),t=Sn({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new R0(e,t).parse();if(r.err){var n=SyntaxError(F[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||$i(r.val),r.val}var Br;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Br||(Br={}));var Fn=function(e){Un(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),Ls=function(e){Un(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('", "'),'"'),Br.INVALID_VALUE,s)||this}return t}(Fn),D0=function(e){Un(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Br.INVALID_VALUE,i)||this}return t}(Fn),U0=function(e){Un(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,'"'),Br.MISSING_VALUE,n)||this}return t}(Fn),Oe;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Oe||(Oe={}));function F0(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==Oe.literal||r.type!==Oe.literal?t.push(r):n.value+=r.value,t},[])}function G0(e){return typeof e=="function"}function vn(e,t,r,n,i,s,o){if(e.length===1&&Os(e[0]))return[{type:Oe.literal,value:e[0].value}];for(var u=[],a=0,l=e;a<l.length;a++){var f=l[a];if(Os(f)){u.push({type:Oe.literal,value:f.value});continue}if(f0(f)){typeof s=="number"&&u.push({type:Oe.literal,value:r.getNumberFormat(t).format(s)});continue}var d=f.value;if(!(i&&d in i))throw new U0(d,o);var h=i[d];if(l0(f)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),u.push({type:typeof h=="string"?Oe.literal:Oe.object,value:h});continue}if(wa(f)){var v=typeof f.style=="string"?n.date[f.style]:Oi(f.style)?f.style.parsedOptions:void 0;u.push({type:Oe.literal,value:r.getDateTimeFormat(t,v).format(h)});continue}if(Ea(f)){var v=typeof f.style=="string"?n.time[f.style]:Oi(f.style)?f.style.parsedOptions:n.time.medium;u.push({type:Oe.literal,value:r.getDateTimeFormat(t,v).format(h)});continue}if(xa(f)){var v=typeof f.style=="string"?n.number[f.style]:Ma(f.style)?f.style.parsedOptions:void 0;v&&v.scale&&(h=h*(v.scale||1)),u.push({type:Oe.literal,value:r.getNumberFormat(t,v).format(h)});continue}if(Ta(f)){var _=f.children,x=f.value,c=i[x];if(!G0(c))throw new D0(x,"function",o);var g=vn(_,t,r,n,i,s),A=c(g.map(function(I){return I.value}));Array.isArray(A)||(A=[A]),u.push.apply(u,A.map(function(I){return{type:typeof I=="string"?Oe.literal:Oe.object,value:I}}))}if(Sa(f)){var M=f.options[h]||f.options.other;if(!M)throw new Ls(f.value,h,Object.keys(f.options),o);u.push.apply(u,vn(M.value,t,r,n,i));continue}if(Ca(f)){var M=f.options["=".concat(h)];if(!M){if(!Intl.PluralRules)throw new Fn(`Intl.PluralRules is not available in this environment.
4
- Try polyfilling it using "@formatjs/intl-pluralrules"
5
- `,Br.MISSING_INTL_API,o);var G=r.getPluralRules(t,{type:f.pluralType}).select(h-(f.offset||0));M=f.options[G]||f.options.other}if(!M)throw new Ls(f.value,h,Object.keys(f.options),o);u.push.apply(u,vn(M.value,t,r,n,i,h-(f.offset||0)));continue}}return F0(u)}function j0(e,t){return t?yt(yt(yt({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=yt(yt({},e[n]),t[n]||{}),r},{})):e}function V0(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=j0(e[n],t[n]),r},yt({},e)):e}function fi(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Y0(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ai(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,oi([void 0],r,!1)))},{cache:fi(e.number),strategy:ui.variadic}),getDateTimeFormat:ai(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,oi([void 0],r,!1)))},{cache:fi(e.dateTime),strategy:ui.variadic}),getPluralRules:ai(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,oi([void 0],r,!1)))},{cache:fi(e.pluralRules),strategy:ui.variadic})}}var z0=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(a){var l=s.formatToParts(a);if(l.length===1)return l[0].value;var f=l.reduce(function(d,h){return!d.length||h.type!==Oe.literal||typeof d[d.length-1]!="string"?d.push(h.value):d[d.length-1]+=h.value,d},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(a){return vn(s.ast,s.locales,s.formatters,s.formats,a,void 0,s.message)},this.resolvedOptions=function(){var a;return{locale:((a=s.resolvedLocale)===null||a===void 0?void 0:a.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 u=t0(o,["formatters"]);this.ast=e.__parse(t,yt(yt({},u),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=V0(e.formats,n),this.formatters=i&&i.formatters||Y0(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=k0,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 Z0(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 Ft={},X0=(e,t,r)=>r&&(t in Ft||(Ft[t]={}),e in Ft[t]||(Ft[t][e]=r),r),La=(e,t)=>{if(t==null)return;if(t in Ft&&e in Ft[t])return Ft[t][e];const r=Gn(t);for(let n=0;n<r.length;n++){const i=r[n],s=q0(i,e);if(s)return X0(e,t,s)}};let ns;const $r=kn({});function W0(e){return ns[e]||null}function Ia(e){return e in ns}function q0(e,t){if(!Ia(e))return null;const r=W0(e);return Z0(r,t)}function J0(e){if(e==null)return;const t=Gn(e);for(let r=0;r<t.length;r++){const n=t[r];if(Ia(n))return n}}function is(e,...t){delete Ft[e],$r.update(r=>(r[e]=e0.all([r[e]||{},...t]),r))}Pr([$r],([e])=>Object.keys(e));$r.subscribe(e=>ns=e);const mn={};function Q0(e,t){mn[e].delete(t),mn[e].size===0&&delete mn[e]}function Na(e){return mn[e]}function K0(e){return Gn(e).map(t=>{const r=Na(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Ri(e){return e==null?!1:Gn(e).some(t=>{var r;return(r=Na(t))==null?void 0:r.size})}function ef(e,t){return Promise.all(t.map(n=>(Q0(e,n),n().then(i=>i.default||i)))).then(n=>is(e,...n))}const Fr={};function ka(e){if(!Ri(e))return e in Fr?Fr[e]:Promise.resolve();const t=K0(e);return Fr[e]=Promise.all(t.map(([r,n])=>ef(r,n))).then(()=>{if(Ri(e))return ka(e);delete Fr[e]}),Fr[e]}const tf={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"}}},rf={fallbackLocale:null,loadingDelay:200,formats:tf,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},nf=rf;function Hr(){return nf}const ci=kn(!1);var sf=Object.defineProperty,of=Object.defineProperties,af=Object.getOwnPropertyDescriptors,Is=Object.getOwnPropertySymbols,uf=Object.prototype.hasOwnProperty,lf=Object.prototype.propertyIsEnumerable,Ns=(e,t,r)=>t in e?sf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ff=(e,t)=>{for(var r in t||(t={}))uf.call(t,r)&&Ns(e,r,t[r]);if(Is)for(var r of Is(t))lf.call(t,r)&&Ns(e,r,t[r]);return e},cf=(e,t)=>of(e,af(t));let Li;const Cn=kn(null);function ks(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function Gn(e,t=Hr().fallbackLocale){const r=ks(e);return t?[...new Set([...r,...ks(t)])]:r}function cr(){return Li!=null?Li:void 0}Cn.subscribe(e=>{Li=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const hf=e=>{if(e&&J0(e)&&Ri(e)){const{loadingDelay:t}=Hr();let r;return typeof window!="undefined"&&cr()!=null&&t?r=window.setTimeout(()=>ci.set(!0),t):ci.set(!0),ka(e).then(()=>{Cn.set(e)}).finally(()=>{clearTimeout(r),ci.set(!1)})}return Cn.set(e)},$t=cf(ff({},Cn),{set:hf}),jn=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var df=Object.defineProperty,Tn=Object.getOwnPropertySymbols,Da=Object.prototype.hasOwnProperty,Ua=Object.prototype.propertyIsEnumerable,Ds=(e,t,r)=>t in e?df(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ss=(e,t)=>{for(var r in t||(t={}))Da.call(t,r)&&Ds(e,r,t[r]);if(Tn)for(var r of Tn(t))Ua.call(t,r)&&Ds(e,r,t[r]);return e},Rr=(e,t)=>{var r={};for(var n in e)Da.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Tn)for(var n of Tn(e))t.indexOf(n)<0&&Ua.call(e,n)&&(r[n]=e[n]);return r};const qr=(e,t)=>{const{formats:r}=Hr();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},pf=jn(e=>{var t=e,{locale:r,format:n}=t,i=Rr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=qr("number",n)),new Intl.NumberFormat(r,i)}),vf=jn(e=>{var t=e,{locale:r,format:n}=t,i=Rr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=qr("date",n):Object.keys(i).length===0&&(i=qr("date","short")),new Intl.DateTimeFormat(r,i)}),mf=jn(e=>{var t=e,{locale:r,format:n}=t,i=Rr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=qr("time",n):Object.keys(i).length===0&&(i=qr("time","short")),new Intl.DateTimeFormat(r,i)}),gf=(e={})=>{var t=e,{locale:r=cr()}=t,n=Rr(t,["locale"]);return pf(ss({locale:r},n))},bf=(e={})=>{var t=e,{locale:r=cr()}=t,n=Rr(t,["locale"]);return vf(ss({locale:r},n))},yf=(e={})=>{var t=e,{locale:r=cr()}=t,n=Rr(t,["locale"]);return mf(ss({locale:r},n))},_f=jn((e,t=cr())=>new z0(e,t,Hr().formats,{ignoreTag:Hr().ignoreTag})),xf=(e,t={})=>{var r,n,i,s;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:u,locale:a=cr(),default:l}=o;if(a==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=La(e,a);if(!f)f=(s=(i=(n=(r=Hr()).handleMissingMessage)==null?void 0:n.call(r,{locale:a,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(!u)return f;let d=f;try{d=_f(f,a).format(u)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,h.message)}return d},wf=(e,t)=>yf(t).format(e),Ef=(e,t)=>bf(t).format(e),Sf=(e,t)=>gf(t).format(e),Cf=(e,t=cr())=>La(e,t),Fa=Pr([$t,$r],()=>xf);Pr([$t],()=>wf);Pr([$t],()=>Ef);Pr([$t],()=>Sf);Pr([$t,$r],()=>Cf);function Tf({withLocale:e,translations:t}){$t.subscribe(r=>{r==null&&($r.set(t),$t.set(e))})}function Us(e,t){is(e,t)}function Fs(e){$t.set(e)}const Gs={en:{totalPrizes:"Total prizes",viewPrizes:"View Prizes",moreGames:"More Games",play:"Play",joinButton:"Join",rules:"Rules",scoreCriteriaType:{stake:"The score criteria for this tournament is <b>Turnover</b>. For each X generated (X= amount wagered in player currency or equivalent in base currency) player will get 1 point. The player who will have the largest turnover will have the highest score and rank.",mostRounds:"The score criteria for this tournament is <b>Most Rounds</b>. For every played round player will get 1 point. The player who will have the biggest number of played rounds / placed bets will have the highest score and rank.",winStakeRatio:`The score criteria for this tournament is <b>Win/Stake Ratio</b>. The score will be calculated
6
- as a sum of win/stake ratios for qualified rounds and bets.
7
- The player who got the highest score will win the tournament.`,winStakeRatioWinMinScore:`<ul class="ScoreTypeUL"><li class="ScoreTypeLI">Minimum Score: {minScore} <br/>
8
- <span class="Desc">Player will not get score if Win/Stake Ratio in each rounds are lower than defined
9
- minimum score value.</span>
10
- </li></ul>`,maxWinStakeRatio:"The score criteria for this tournament is <b>Max Win/Stake Ratio</b>. The player who got the biggest win by placing the smallest bet will win the tournament (bet = 10 EUR, win = 5000 EUR, the score will be 500). Only higher ratio will update the player's score.",win:`The score criteria for this tournament is <b>Winnings</b>. The score will be calculated based on the sum of all bet winnings with the qualifying rounds/bets.
11
- For example, a player has two qualifying rounds. he won €1 in one round and €3 in another. In this case.
12
- the score will be calculated as 1+3=4.`,winBetCount:`The score criteria for this tournament is <b>Winnings and Number of Rounds</b>. The score will be calculated based on the sum of all bet winnings and rounds number with the qualifying
13
- rounds/bets. For example, a player has two qualifying rounds. he won €1 in one round and €3 in another.
14
- In this case. the score will be calculated as 1+3+2=6.`},miniBetCount:"Minimum bet count: <b>{betCount}</b>. To be qualified for prizes, the player has to play at least <b>{betCount} rounds</b>, otherwise the prize won’t be granted.",timePeriod:"The tournament starts at <b>{startTime}</b> and ends at <b>{endTime}</b>",terms:'See <a href="{tcUrl}" target="_blank" style="color: var(--emw-color-primary, #FF1D4E); font-weight: 500;">Terms & Conditions.</a>',productNoLimitsBet:"For {productName}, there are no minimum and maximum bet limits set.",casinoRuleMinMaxBet:"Min bet{minBet}, Max bet{maxBet}",unlimited:"Unlimited",forCasino:"For Casino Games",forSportsbook:"For Sportsbook",sportsRuleMinMaxBet:"Min bet{sportMinBet}, Max bet{sportMaxBet}",sportsRuleMinMaxOdds:"Min Odds{sportMinOdds}, Max Odds{sportMaxOdds}",matchTyppePre:"Prelive Sports bets",matchTypeLive:"Live Sports bets",matchTypePreAndLive:"Prelive and Live Sport bets",betTypeSingle:"Single bet",betTypeMultiple:"Multiple bet",betTypeSystem:"System bet",typeOfSelection:"Type of selection",numberOfSelection:"Number of selections",oddsPerSelection:"Odds per selections",betBuilderOnly:"Bet Builder Only",bankerOnly:"Banker Only",typeOfSelectionAny:"Any",notBuilderOnly:"Not Bet Builder Only",nonBankerOnly:"Non Banker Only"},tr:{totalPrizes:"Toplam Ödüller",viewPrizes:"Ödülleri Görüntüle",moreGames:"Daha Fazla Oyun",play:"Oyna",joinButton:"Katıl",scoreCriteriaType:{stake:"Bu turnuvanın puan kriteri <b>Ciro</b>'dur. Oluşturulan her X için (X= oyuncunun para biriminde veya temel para birimindeki eşdeğerinde oynanan bahis miktarı) oyuncu 1 puan alacaktır. En fazla ciroya sahip olan oyuncu en yüksek puana ve sıralamaya sahip olacaktır.",mostRounds:"Bu turnuvanın puan kriteri <b>En Çok Tur</b>'dur. Oynanan her tur için oyuncu 1 puan alacaktır. En fazla oynanan tur/bahis sayısına sahip olan oyuncu, en yüksek puana ve sıralamaya sahip olacaktır.",winStakeRatio:"Bu turnuvanın puan kriteri <b>Galibiyet/Durum Oranı</b>'dır. Puan, nitelikli turlar ve bahisler için kazanma/bahis oranlarının toplamı olarak hesaplanacaktır. En yüksek puanı alan oyuncu turnuvayı kazanacak.",winStakeRatioWinMinScore:`<ul class="ScoreTypeUL"><li class="ScoreTypeLI">Minimum Score: {minScore} <br/>
15
- <span class="Desc">Player will not get score if Win/Stake Ratio in each rounds are lower than defined
16
- minimum score value.</span>
17
- </li></ul>`,maxWinStakeRatio:"Bu turnuvanın puan kriteri <b>Maksimum Galibiyet/Durum Oranı</b>'dır. En küçük bahsi koyarak en büyük kazancı elde eden oyuncu turnuvayı kazanacaktır (bahis = 10 EUR, galibiyet = 5000 EUR, skor 500 olacaktır). Yalnızca daha yüksek oran oyuncunun puanını güncelleyecektir."},miniBetCount:"Minimum bahis sayısı: <b>{betCount}</b>. Ödüllere hak kazanmak için oyuncunun en az <b>{betCount} tur</b> oynaması gerekir, aksi takdirde ödül verilmeyecektir.",timePeriod:"Turnuva <b>{startTime}</b> tarihinde başlar ve <b>{endTime}</b> tarihinde sona erer",terms:'Bkz. <a href="{tcUrl}" target="_blank" style="color: var(--emw-color-primary, #FF1D4E); font-weight: 500;">Şartlar ve Koşullar.</a>',productNoLimitsBet:"{productName} için minimum ve maksimum bahis limiti belirlenmemiştir.",casinoRuleMinMaxBet:"Min bahis{minBet}, Maks bahis{maxBet}",unlimited:"Sınırsız",forCasino:"Casino Oyunları İçin",forSportsbook:"Spor Bahisleri İçin",sportsRuleMinMaxBet:"Min bahis{sportMinBet}, Maks bahis{sportMaxBet}",sportsRuleMinMaxOdds:"Min Oran{sportMinOdds}, Maks Oran{sportMaxOdds}",matchTyppePre:"Maç Öncesi Spor bahisleri",matchTypeLive:"Canlı Spor bahisleri",matchTypePreAndLive:"Maç Öncesi ve Canlı Spor bahisleri",betTypeSingle:"Tekli bahis",betTypeMultiple:"Kombine bahis",betTypeSystem:"Sistem bahis",typeOfSelection:"Seçim türü",numberOfSelection:"Seçim sayısı",oddsPerSelection:"Seçim başına oranlar",betBuilderOnly:"Yalnızca Bahis Oluşturucu",bankerOnly:"Yalnızca Banker",typeOfSelectionAny:"Herhangi",notBuilderOnly:"Bahis Oluşturucu Hariç",nonBankerOnly:"Banker Hariç"},da:{totalPrizes:"Samlede præmier",moreGames:"Flere spil",play:"Spil",rules:"Regler",scoreCriteriaType:{stake:"Scoringskriteriet for denne turnering er <b>Omsætning</b>. For hver X genereret (X= beløb satset i spillerens valuta eller tilsvarende i basisvaluta) får spilleren 1 point. Spilleren med den største omsætning får den højeste score og rang.",mostRounds:"Scoringskriteriet for denne turnering er <b>Flest runder</b>. For hver spillet runde får spilleren 1 point. Spilleren med det største antal spillede runder / placerede væddemål får den højeste score og rang.",winStakeRatio:"Scoringskriteriet for denne turnering er <b>Gevinst/Indsats-forhold</b>. Scoren beregnes som summen af gevinst/indsats-forhold for kvalificerede runder og væddemål. Spilleren med den højeste score vinder turneringen.",winStakeRatioWinMinScore:'<ul class="ScoreTypeUL"><li class="ScoreTypeLI">Minimum score: {minScore} <span class="Desc">Spilleren får ikke point, hvis gevinst/indsats-forholdet i hver runde er lavere end den definerede minimumsscoreværdi.</span></li></ul>',maxWinStakeRatio:"Scoringskriteriet for denne turnering er <b>Maks. gevinst/indsats-forhold</b>. Spilleren, der får den største gevinst ved at placere den mindste indsats, vinder turneringen (indsats = 10 EUR, gevinst = 5000 EUR, scoren bliver 500). Kun et højere forhold vil opdatere spillerens score.",win:"Scoringskriteriet for denne turnering er <b>Gevinster</b>. Scoren beregnes ud fra summen af alle væddemålsgevinster i de kvalificerende runder/væddemål. For eksempel har en spiller to kvalificerende runder. Han vandt €1 i den ene runde og €3 i den anden. I dette tilfælde beregnes scoren som 1+3=4.",winBetCount:"Scoringskriteriet for denne turnering er <b>Gevinster og antal runder</b>. Scoren beregnes ud fra summen af alle væddemålsgevinster og antallet af runder i de kvalificerende runder/væddemål. For eksempel har en spiller to kvalificerende runder. Han vandt €1 i den ene runde og €3 i den anden. I dette tilfælde beregnes scoren som 1+3+2=6."},miniBetCount:"Minimum antal væddemål: <b>{betCount}</b>. For at være kvalificeret til præmier skal spilleren spille mindst <b>{betCount} runder</b>, ellers gives præmien ikke.",timePeriod:"Turneringen starter kl. <b>{startTime}</b> og slutter kl. <b>{endTime}</b>",terms:'Se <a href="{tcUrl}" target="_blank" style="color: var(--emw-color-primary, #FF1D4E); font-weight: 500;">Vilkår og betingelser.</a>',productNoLimitsBet:"For {productName} er der ingen minimums- og maksimumsindsatsgrænser fastsat.",casinoRuleMinMaxBet:"Min. indsats{minBet}, Maks. indsats{maxBet}",unlimited:"Ubegrænset",forCasino:"For casinospil",forSportsbook:"For sportsbook",sportsRuleMinMaxBet:"Min. indsats{sportMinBet}, Maks. indsats{sportMaxBet}",sportsRuleMinMaxOdds:"Min. odds{sportMinOdds}, Maks. odds{sportMaxOdds}",matchTyppePre:"Prelive sportsvæddemål",matchTypeLive:"Live sportsvæddemål",matchTypePreAndLive:"Prelive- og Live-sportsvæddemål",betTypeSingle:"Enkelt væddemål",betTypeMultiple:"Kombinationsvæddemål",betTypeSystem:"Systemvæddemål",typeOfSelection:"Type af valg",numberOfSelection:"Antal valg",oddsPerSelection:"Odds pr. valg",betBuilderOnly:"Kun Bet Builder",bankerOnly:"Kun banker",typeOfSelectionAny:"Alle",notBuilderOnly:"Ikke kun Bet Builder",nonBankerOnly:"Ikke kun banker"}};/*! *****************************************************************************
18
- Copyright (c) Microsoft Corporation.
19
-
20
- Permission to use, copy, modify, and/or distribute this software for any
21
- purpose with or without fee is hereby granted.
22
-
23
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
24
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
25
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
26
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
27
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
28
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
29
- PERFORMANCE OF THIS SOFTWARE.
30
- ***************************************************************************** */var Ii=function(e,t){return Ii=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])},Ii(e,t)};function sn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ii(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function Ni(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 ki(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(u){o={error:u}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s}function Di(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 Ht(e){return typeof e=="function"}function Ga(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 hi=Ga(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
31
- `+r.map(function(n,i){return i+1+") "+n.toString()}).join(`
32
- `):"",this.name="UnsubscriptionError",this.errors=r}});function Ui(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Vn=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 u=Ni(o),a=u.next();!a.done;a=u.next()){var l=a.value;l.remove(this)}}catch(x){t={error:x}}finally{try{a&&!a.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}else o.remove(this);var f=this.initialTeardown;if(Ht(f))try{f()}catch(x){s=x instanceof hi?x.errors:[x]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var h=Ni(d),v=h.next();!v.done;v=h.next()){var _=v.value;try{js(_)}catch(x){s=s!=null?s:[],x instanceof hi?s=Di(Di([],ki(s)),ki(x.errors)):s.push(x)}}}catch(x){n={error:x}}finally{try{v&&!v.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}}if(s)throw new hi(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)js(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)&&Ui(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Ui(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),ja=Vn.EMPTY;function Va(e){return e instanceof Vn||e&&"closed"in e&&Ht(e.remove)&&Ht(e.add)&&Ht(e.unsubscribe)}function js(e){Ht(e)?e():e.unsubscribe()}var Mf={Promise:void 0},Of={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Di([e,t],ki(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Af(e){Of.setTimeout(function(){throw e})}function Vs(){}function gn(e){e()}var Ya=function(e){sn(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Va(r)&&r.add(n)):n.destination=Pf,n}return t.create=function(r,n,i){return new Fi(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}(Vn),Bf=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){cn(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){cn(n)}else cn(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){cn(r)}},e}(),Fi=function(e){sn(t,e);function t(r,n,i){var s=e.call(this)||this,o;return Ht(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 Bf(o),s}return t}(Ya);function cn(e){Af(e)}function Hf(e){throw e}var Pf={closed:!0,next:Vs,error:Hf,complete:Vs},$f=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Rf(e){return e}function Lf(e){return e.length===0?Rf:e.length===1?e[0]:function(r){return e.reduce(function(n,i){return i(n)},r)}}var Ys=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=Nf(t)?t:new Fi(t,r,n);return gn(function(){var o=i,u=o.operator,a=o.source;s.add(u?u.call(s,a):a?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=zs(r),new r(function(i,s){var o=new Fi({next:function(u){try{t(u)}catch(a){s(a),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[$f]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Lf(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=zs(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 zs(e){var t;return(t=e!=null?e:Mf.Promise)!==null&&t!==void 0?t:Promise}function If(e){return e&&Ht(e.next)&&Ht(e.error)&&Ht(e.complete)}function Nf(e){return e&&e instanceof Ya||If(e)&&Va(e)}var kf=Ga(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),za=function(e){sn(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 Zs(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new kf},t.prototype.next=function(r){var n=this;gn(function(){var i,s;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var o=Ni(n.currentObservers),u=o.next();!u.done;u=o.next()){var a=u.value;a.next(r)}}catch(l){i={error:l}}finally{try{u&&!u.done&&(s=o.return)&&s.call(o)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;gn(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;gn(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,u=i.observers;return s||o?ja:(this.currentObservers=null,u.push(r),new Vn(function(){n.currentObservers=null,Ui(u,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 Ys;return r.source=this,r},t.create=function(r,n){return new Zs(r,n)},t}(Ys),Zs=function(e){sn(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:ja},t}(za),Za={now:function(){return(Za.delegate||Date).now()},delegate:void 0},Df=function(e){sn(t,e);function t(r,n,i){r===void 0&&(r=1/0),n===void 0&&(n=1/0),i===void 0&&(i=Za);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,u=n._timestampProvider,a=n._windowTime;i||(s.push(r),!o&&s.push(u.now()+a)),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,u=o.slice(),a=0;a<u.length&&!r.closed;a+=s?1:2)r.next(u[a]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,i=r._timestampProvider,s=r._buffer,o=r._infiniteTimeWindow,u=(o?1:2)*n;if(n<1/0&&u<s.length&&s.splice(0,s.length-u),!o){for(var a=i.now(),l=0,f=1;f<s.length&&s[f]<=a;f+=2)l=f;l&&s.splice(0,l+1)}},t}(za);const Xs=[],Ws={},Uf=(e,t=0)=>{if(Xs.indexOf(e)==-1){const r=new Df(t);Ws[e]=r,Xs.push(e)}return Ws[e]};window.emWidgets={topic:Uf};const Xa=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";String(Number.MAX_SAFE_INTEGER).length;var Wa={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(rs,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",o="second",u="minute",a="hour",l="day",f="week",d="month",h="quarter",v="year",_="date",x="Invalid Date",c=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,A={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(S){var b=["th","st","nd","rd"],m=S%100;return"["+S+(b[(m-20)%10]||b[m]||b[0])+"]"}},M=function(S,b,m){var w=String(S);return!w||w.length>=b?S:""+Array(b+1-w.length).join(m)+S},G={s:M,z:function(S){var b=-S.utcOffset(),m=Math.abs(b),w=Math.floor(m/60),y=m%60;return(b<=0?"+":"-")+M(w,2,"0")+":"+M(y,2,"0")},m:function S(b,m){if(b.date()<m.date())return-S(m,b);var w=12*(m.year()-b.year())+(m.month()-b.month()),y=b.clone().add(w,d),C=m-y<0,O=b.clone().add(w+(C?-1:1),d);return+(-(w+(m-y)/(C?y-O:O-y))||0)},a:function(S){return S<0?Math.ceil(S)||0:Math.floor(S)},p:function(S){return{M:d,y:v,w:f,d:l,D:_,h:a,m:u,s:o,ms:s,Q:h}[S]||String(S||"").toLowerCase().replace(/s$/,"")},u:function(S){return S===void 0}},I="en",k={};k[I]=A;var V="$isDayjsObject",te=function(S){return S instanceof ne||!(!S||!S[V])},W=function S(b,m,w){var y;if(!b)return I;if(typeof b=="string"){var C=b.toLowerCase();k[C]&&(y=C),m&&(k[C]=m,y=C);var O=b.split("-");if(!y&&O.length>1)return S(O[0])}else{var $=b.name;k[$]=b,y=$}return!w&&y&&(I=y),y||!w&&I},H=function(S,b){if(te(S))return S.clone();var m=typeof b=="object"?b:{};return m.date=S,m.args=arguments,new ne(m)},B=G;B.l=W,B.i=te,B.w=function(S,b){return H(S,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var ne=function(){function S(m){this.$L=W(m.locale,null,!0),this.parse(m),this.$x=this.$x||m.x||{},this[V]=!0}var b=S.prototype;return b.parse=function(m){this.$d=function(w){var y=w.date,C=w.utc;if(y===null)return new Date(NaN);if(B.u(y))return new Date;if(y instanceof Date)return new Date(y);if(typeof y=="string"&&!/Z$/i.test(y)){var O=y.match(c);if(O){var $=O[2]-1||0,re=(O[7]||"0").substring(0,3);return C?new Date(Date.UTC(O[1],$,O[3]||1,O[4]||0,O[5]||0,O[6]||0,re)):new Date(O[1],$,O[3]||1,O[4]||0,O[5]||0,O[6]||0,re)}}return new Date(y)}(m),this.init()},b.init=function(){var m=this.$d;this.$y=m.getFullYear(),this.$M=m.getMonth(),this.$D=m.getDate(),this.$W=m.getDay(),this.$H=m.getHours(),this.$m=m.getMinutes(),this.$s=m.getSeconds(),this.$ms=m.getMilliseconds()},b.$utils=function(){return B},b.isValid=function(){return this.$d.toString()!==x},b.isSame=function(m,w){var y=H(m);return this.startOf(w)<=y&&y<=this.endOf(w)},b.isAfter=function(m,w){return H(m)<this.startOf(w)},b.isBefore=function(m,w){return this.endOf(w)<H(m)},b.$g=function(m,w,y){return B.u(m)?this[w]:this.set(y,m)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(m,w){var y=this,C=!!B.u(w)||w,O=B.p(m),$=function(z,Q){var P=B.w(y.$u?Date.UTC(y.$y,Q,z):new Date(y.$y,Q,z),y);return C?P:P.endOf(l)},re=function(z,Q){return B.w(y.toDate()[z].apply(y.toDate("s"),(C?[0,0,0,0]:[23,59,59,999]).slice(Q)),y)},oe=this.$W,de=this.$M,Ee=this.$D,Ke="set"+(this.$u?"UTC":"");switch(O){case v:return C?$(1,0):$(31,11);case d:return C?$(1,de):$(0,de+1);case f:var Ge=this.$locale().weekStart||0,T=(oe<Ge?oe+7:oe)-Ge;return $(C?Ee-T:Ee+(6-T),de);case l:case _:return re(Ke+"Hours",0);case a:return re(Ke+"Minutes",1);case u:return re(Ke+"Seconds",2);case o:return re(Ke+"Milliseconds",3);default:return this.clone()}},b.endOf=function(m){return this.startOf(m,!1)},b.$set=function(m,w){var y,C=B.p(m),O="set"+(this.$u?"UTC":""),$=(y={},y[l]=O+"Date",y[_]=O+"Date",y[d]=O+"Month",y[v]=O+"FullYear",y[a]=O+"Hours",y[u]=O+"Minutes",y[o]=O+"Seconds",y[s]=O+"Milliseconds",y)[C],re=C===l?this.$D+(w-this.$W):w;if(C===d||C===v){var oe=this.clone().set(_,1);oe.$d[$](re),oe.init(),this.$d=oe.set(_,Math.min(this.$D,oe.daysInMonth())).$d}else $&&this.$d[$](re);return this.init(),this},b.set=function(m,w){return this.clone().$set(m,w)},b.get=function(m){return this[B.p(m)]()},b.add=function(m,w){var y,C=this;m=Number(m);var O=B.p(w),$=function(de){var Ee=H(C);return B.w(Ee.date(Ee.date()+Math.round(de*m)),C)};if(O===d)return this.set(d,this.$M+m);if(O===v)return this.set(v,this.$y+m);if(O===l)return $(1);if(O===f)return $(7);var re=(y={},y[u]=n,y[a]=i,y[o]=r,y)[O]||1,oe=this.$d.getTime()+m*re;return B.w(oe,this)},b.subtract=function(m,w){return this.add(-1*m,w)},b.format=function(m){var w=this,y=this.$locale();if(!this.isValid())return y.invalidDate||x;var C=m||"YYYY-MM-DDTHH:mm:ssZ",O=B.z(this),$=this.$H,re=this.$m,oe=this.$M,de=y.weekdays,Ee=y.months,Ke=y.meridiem,Ge=function(Q,P,le,Ne){return Q&&(Q[P]||Q(w,C))||le[P].slice(0,Ne)},T=function(Q){return B.s($%12||12,Q,"0")},z=Ke||function(Q,P,le){var Ne=Q<12?"AM":"PM";return le?Ne.toLowerCase():Ne};return C.replace(g,function(Q,P){return P||function(le){switch(le){case"YY":return String(w.$y).slice(-2);case"YYYY":return B.s(w.$y,4,"0");case"M":return oe+1;case"MM":return B.s(oe+1,2,"0");case"MMM":return Ge(y.monthsShort,oe,Ee,3);case"MMMM":return Ge(Ee,oe);case"D":return w.$D;case"DD":return B.s(w.$D,2,"0");case"d":return String(w.$W);case"dd":return Ge(y.weekdaysMin,w.$W,de,2);case"ddd":return Ge(y.weekdaysShort,w.$W,de,3);case"dddd":return de[w.$W];case"H":return String($);case"HH":return B.s($,2,"0");case"h":return T(1);case"hh":return T(2);case"a":return z($,re,!0);case"A":return z($,re,!1);case"m":return String(re);case"mm":return B.s(re,2,"0");case"s":return String(w.$s);case"ss":return B.s(w.$s,2,"0");case"SSS":return B.s(w.$ms,3,"0");case"Z":return O}return null}(Q)||O.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(m,w,y){var C,O=this,$=B.p(w),re=H(m),oe=(re.utcOffset()-this.utcOffset())*n,de=this-re,Ee=function(){return B.m(O,re)};switch($){case v:C=Ee()/12;break;case d:C=Ee();break;case h:C=Ee()/3;break;case f:C=(de-oe)/6048e5;break;case l:C=(de-oe)/864e5;break;case a:C=de/i;break;case u:C=de/n;break;case o:C=de/r;break;default:C=de}return y?C:B.a(C)},b.daysInMonth=function(){return this.endOf(d).$D},b.$locale=function(){return k[this.$L]},b.locale=function(m,w){if(!m)return this.$L;var y=this.clone(),C=W(m,w,!0);return C&&(y.$L=C),y},b.clone=function(){return B.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},S}(),ie=ne.prototype;return H.prototype=ie,[["$ms",s],["$s",o],["$m",u],["$H",a],["$W",l],["$M",d],["$y",v],["$D",_]].forEach(function(S){ie[S[1]]=function(b){return this.$g(b,S[0],S[1])}}),H.extend=function(S,b){return S.$i||(S(b,ne,H),S.$i=!0),H},H.locale=W,H.isDayjs=te,H.unix=function(S){return H(1e3*S)},H.en=k[I],H.Ls=k,H.p={},H})})(Wa);var Ff=Wa.exports;const os=Dn(Ff);var qa={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(rs,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,s=/\d\d/,o=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,a={},l=function(c){return(c=+c)+(c>68?1900:2e3)},f=function(c){return function(g){this[c]=+g}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(c){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var A=g.match(/([+-]|\d\d)/g),M=60*A[1]+(+A[2]||0);return M===0?0:A[0]==="+"?-M:M}(c)}],h=function(c){var g=a[c];return g&&(g.indexOf?g:g.s.concat(g.f))},v=function(c,g){var A,M=a.meridiem;if(M){for(var G=1;G<=24;G+=1)if(c.indexOf(M(G,0,g))>-1){A=G>12;break}}else A=c===(g?"pm":"PM");return A},_={A:[u,function(c){this.afternoon=v(c,!1)}],a:[u,function(c){this.afternoon=v(c,!0)}],Q:[i,function(c){this.month=3*(c-1)+1}],S:[i,function(c){this.milliseconds=100*+c}],SS:[s,function(c){this.milliseconds=10*+c}],SSS:[/\d{3}/,function(c){this.milliseconds=+c}],s:[o,f("seconds")],ss:[o,f("seconds")],m:[o,f("minutes")],mm:[o,f("minutes")],H:[o,f("hours")],h:[o,f("hours")],HH:[o,f("hours")],hh:[o,f("hours")],D:[o,f("day")],DD:[s,f("day")],Do:[u,function(c){var g=a.ordinal,A=c.match(/\d+/);if(this.day=A[0],g)for(var M=1;M<=31;M+=1)g(M).replace(/\[|\]/g,"")===c&&(this.day=M)}],w:[o,f("week")],ww:[s,f("week")],M:[o,f("month")],MM:[s,f("month")],MMM:[u,function(c){var g=h("months"),A=(h("monthsShort")||g.map(function(M){return M.slice(0,3)})).indexOf(c)+1;if(A<1)throw new Error;this.month=A%12||A}],MMMM:[u,function(c){var g=h("months").indexOf(c)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,f("year")],YY:[s,function(c){this.year=l(c)}],YYYY:[/\d{4}/,f("year")],Z:d,ZZ:d};function x(c){var g,A;g=c,A=a&&a.formats;for(var M=(c=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(H,B,ne){var ie=ne&&ne.toUpperCase();return B||A[ne]||r[ne]||A[ie].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,b,m){return b||m.slice(1)})})).match(n),G=M.length,I=0;I<G;I+=1){var k=M[I],V=_[k],te=V&&V[0],W=V&&V[1];M[I]=W?{regex:te,parser:W}:k.replace(/^\[|\]$/g,"")}return function(H){for(var B={},ne=0,ie=0;ne<G;ne+=1){var S=M[ne];if(typeof S=="string")ie+=S.length;else{var b=S.regex,m=S.parser,w=H.slice(ie),y=b.exec(w)[0];m.call(B,y),H=H.replace(y,"")}}return function(C){var O=C.afternoon;if(O!==void 0){var $=C.hours;O?$<12&&(C.hours+=12):$===12&&(C.hours=0),delete C.afternoon}}(B),B}}return function(c,g,A){A.p.customParseFormat=!0,c&&c.parseTwoDigitYear&&(l=c.parseTwoDigitYear);var M=g.prototype,G=M.parse;M.parse=function(I){var k=I.date,V=I.utc,te=I.args;this.$u=V;var W=te[1];if(typeof W=="string"){var H=te[2]===!0,B=te[3]===!0,ne=H||B,ie=te[2];B&&(ie=te[2]),a=this.$locale(),!H&&ie&&(a=A.Ls[ie]),this.$d=function(w,y,C,O){try{if(["x","X"].indexOf(y)>-1)return new Date((y==="X"?1e3:1)*w);var $=x(y)(w),re=$.year,oe=$.month,de=$.day,Ee=$.hours,Ke=$.minutes,Ge=$.seconds,T=$.milliseconds,z=$.zone,Q=$.week,P=new Date,le=de||(re||oe?1:P.getDate()),Ne=re||P.getFullYear(),et=0;re&&!oe||(et=oe>0?oe-1:P.getMonth());var Se,lt=Ee||0,je=Ke||0,ft=Ge||0,Lr=T||0;return z?new Date(Date.UTC(Ne,et,le,lt,je,ft,Lr+60*z.offset*1e3)):C?new Date(Date.UTC(Ne,et,le,lt,je,ft,Lr)):(Se=new Date(Ne,et,le,lt,je,ft,Lr),Q&&(Se=O(Se).week(Q).toDate()),Se)}catch(as){return new Date("")}}(k,W,V,A),this.init(),ie&&ie!==!0&&(this.$L=this.locale(ie).$L),ne&&k!=this.format(W)&&(this.$d=new Date("")),a={}}else if(W instanceof Array)for(var S=W.length,b=1;b<=S;b+=1){te[1]=W[b-1];var m=A.apply(this,te);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}b===S&&(this.$d=new Date(""))}else G.call(this,I)}}})})(qa);var Gf=qa.exports;const Ja=Dn(Gf);os.extend(Ja);const qs=e=>os(e).format("MMMM D, HH:mm"),jf=()=>typeof window=="undefined";class Js{constructor(){}static processMinMax(t,r){return{minValue:t?`: ${t}`:null,maxValue:r?`: ${r}`:null}}static generateCasinoRule(t,r){var u,a;const n=` ~ ${t("unlimited")}`,i=r.currency||"EUR",s=(u=r.minStake)!=null&&u.amount[i]?`: ${r.minStake.amount[i]} ${i}`:n,o=(a=r.maxStake)!=null&&a.amount[i]?`: ${r.maxStake.amount[i]} ${i}`:n;return t("casinoRuleMinMaxBet",{values:{minBet:s,maxBet:o}})}static generateSportsRule(t,r){var k,V,te,W,H,B,ne,ie,S,b;const n=[],i=` ~ ${t("unlimited")}`,s=r.currency||"EUR",o=(k=r.minStake)!=null&&k.amount[s]?`: ${r.minStake.amount[s]} ${s}`:i,u=(V=r.maxStake)!=null&&V.amount[s]?`: ${r.maxStake.amount[s]} ${s}`:i;n.push(t("sportsRuleMinMaxBet",{values:{sportMinBet:o,sportMaxBet:u}}));const a=r.config.liveMatch==="true",l=r.config.preLiveMatch==="true";a&&l?n.push(t("matchTypePreAndLive")):a?n.push(`${t("matchTypeLive")}`):l&&n.push(`${t("matchTyppePre")}`);const f=r.combination,d=[];f.single.isEligible&&d.push(t("betTypeSingle"));const v={null:t("typeOfSelectionAny"),true:t("bankerOnly"),false:t("nonBankerOnly")},_={unspecific:t("typeOfSelectionAny"),all:t("betBuilderOnly"),none:t("notBuilderOnly")};let x="",c="";const g=`${t("oddsPerSelection")}: ${r.config.minOdds||t("unlimited")} - ${r.config.maxOdds||t("unlimited")}`,A=f.system.isEligible,M=f.multiple.isEligible;A&&(x=` ${t("betTypeSystem")}
33
- ( ${t("typeOfSelection")}: ${v[((W=(te=r.combination.system.banker)==null?void 0:te.include)==null?void 0:W.toString())||"null"]},
34
- ${t("numberOfSelection")}:
35
- ${((H=f.system.minSelection)==null?void 0:H.number)||t("unlimited")} - ${((B=f.system.maxSelection)==null?void 0:B.number)||t("unlimited")},
36
- ${g} ) `),M&&(c=` ${t("betTypeMultiple")}
37
- ( ${t("typeOfSelection")}: ${_[((ie=(ne=r.combination.multiple.betBuilder)==null?void 0:ne.mode)==null?void 0:ie.toString())||"unspecific"]},
38
- ${t("numberOfSelection")}:
39
- ${((S=f.multiple.minSelection)==null?void 0:S.number)||t("unlimited")} - ${((b=f.multiple.maxSelection)==null?void 0:b.number)||t("unlimited")},
40
- ${g} ) `),A&&M?d.push(c+t("and")+x):A?d.push(x):M&&d.push(c),n.push(d.join(", "));const G=r.config.minTotalOdds?`: ${r.config.minTotalOdds}`:i,I=r.config.maxTotalOdds?`: ${r.config.maxTotalOdds}`:i;return n.push(`${t("sportsRuleMinMaxOdds",{values:{sportMinOdds:G,sportMaxOdds:I}})}`),n}}const Vf="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.1142%2013.4315C10.4965%2013.4315%2010.8065%2013.7415%2010.8065%2014.1238C10.8065%2014.353%2011.001%2014.7342%2011.708%2015.0993C12.3797%2015.4461%2013.3557%2015.6812%2014.4718%2015.6812C15.5879%2015.6812%2016.5642%2015.4461%2017.2361%2015.0993C17.9435%2014.7342%2018.138%2014.3528%2018.138%2014.1238C18.138%2013.7415%2018.448%2013.4315%2018.8303%2013.4315C19.2126%2013.4315%2019.5226%2013.7415%2019.5226%2014.1238C19.5226%2015.1368%2018.7414%2015.8804%2017.8712%2016.3296C16.9656%2016.7971%2015.7626%2017.0658%2014.4718%2017.0658C13.181%2017.0658%2011.9782%2016.7971%2011.0728%2016.3296C10.2027%2015.8803%209.42185%2015.1367%209.42185%2014.1238C9.42185%2013.7415%209.73182%2013.4315%2010.1142%2013.4315Z'%20fill='%23999999'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.78606%209.1839C4.16841%209.1839%204.47836%209.49386%204.47836%209.8762C4.47836%2010.1058%204.67303%2010.487%205.38022%2010.852C6.05207%2011.1988%207.02836%2011.4337%208.14459%2011.4337C8.52693%2011.4337%208.83689%2011.7436%208.83689%2012.126C8.83689%2012.5083%208.52693%2012.8183%208.14459%2012.8183C6.85387%2012.8183%205.65089%2012.5498%204.74522%2012.0824C3.87488%2011.6333%203.09375%2010.8896%203.09375%209.8762C3.09375%209.49386%203.40371%209.1839%203.78606%209.1839Z'%20fill='%23999999'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.78606%205.25C4.16841%205.25%204.47836%205.55996%204.47836%205.94231V13.8114C4.47836%2014.041%204.67303%2014.4222%205.38022%2014.7872C6.05207%2015.1339%207.02836%2015.3689%208.14459%2015.3689C8.52693%2015.3689%208.83689%2015.6788%208.83689%2016.0612C8.83689%2016.4436%208.52693%2016.7535%208.14459%2016.7535C6.85387%2016.7535%205.65089%2016.485%204.74522%2016.0177C3.87488%2015.5685%203.09375%2014.8249%203.09375%2013.8114V5.94231C3.09375%205.55996%203.40371%205.25%203.78606%205.25Z'%20fill='%23999999'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5.38029%204.96658C4.67291%205.33175%204.47836%205.71303%204.47836%205.94207C4.47836%206.17164%204.67303%206.5529%205.38022%206.91786C6.05207%207.2646%207.02836%207.49953%208.14459%207.49953C8.52693%207.49953%208.83689%207.80949%208.83689%208.19184C8.83689%208.57418%208.52693%208.88414%208.14459%208.88414C6.85387%208.88414%205.65089%208.61569%204.74522%208.14829C3.87488%207.69912%203.09375%206.95549%203.09375%205.94207C3.09375%204.92903%203.87499%204.18542%204.74515%203.73624C5.65079%203.26872%206.85377%203%208.14459%203C9.43542%203%2010.6384%203.26872%2011.544%203.73624C12.4142%204.18542%2013.1954%204.92903%2013.1954%205.94207C13.1954%206.32442%2012.8854%206.63438%2012.5031%206.63438C12.1207%206.63438%2011.8108%206.32442%2011.8108%205.94207C11.8108%205.71303%2011.6163%205.33175%2010.9089%204.96658C10.237%204.61973%209.26068%204.38462%208.14459%204.38462C7.02847%204.38462%206.05218%204.61973%205.38029%204.96658Z'%20fill='%23999999'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.1142%209.49759C10.4965%209.49759%2010.8065%209.80755%2010.8065%2010.1899V18.0591C10.8065%2018.2887%2011.0011%2018.67%2011.7079%2019.0349C12.3796%2019.3816%2013.3556%2019.6165%2014.4718%2019.6165C15.588%2019.6165%2016.5643%2019.3816%2017.2362%2019.0349C17.9433%2018.6699%2018.138%2018.2886%2018.138%2018.0591V10.1899C18.138%209.80755%2018.448%209.49759%2018.8303%209.49759C19.2126%209.49759%2019.5226%209.80755%2019.5226%2010.1899V18.0591C19.5226%2019.0724%2018.7415%2019.8161%2017.8711%2020.2652C16.9655%2020.7327%2015.7626%2021.0011%2014.4718%2021.0011C13.1811%2021.0011%2011.9783%2020.7327%2011.0729%2020.2652C10.2026%2019.816%209.42185%2019.0723%209.42185%2018.0591V10.1899C9.42185%209.80755%209.73182%209.49759%2010.1142%209.49759Z'%20fill='%23999999'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.708%209.21414C11.001%209.57923%2010.8065%209.96048%2010.8065%2010.1897C10.8065%2010.4189%2011.001%2010.8001%2011.708%2011.1652C12.3797%2011.512%2013.3557%2011.7472%2014.4718%2011.7472C15.5879%2011.7472%2016.5642%2011.512%2017.2361%2011.1652C17.9435%2010.8%2018.138%2010.4187%2018.138%2010.1897C18.138%209.96063%2017.9435%209.57934%2017.2361%209.21418C16.5642%208.86733%2015.5879%208.63221%2014.4718%208.63221C13.3557%208.63221%2012.3797%208.86733%2011.708%209.21414ZM11.0728%207.98387C11.9782%207.51632%2013.181%207.24759%2014.4718%207.24759C15.7626%207.24759%2016.9656%207.51632%2017.8712%207.98383C18.7414%208.43303%2019.5226%209.17662%2019.5226%2010.1897C19.5226%2011.2027%2018.7414%2011.9463%2017.8712%2012.3955C16.9656%2012.863%2015.7626%2013.1318%2014.4718%2013.1318C13.181%2013.1318%2011.9782%2012.863%2011.0728%2012.3954C10.2027%2011.9462%209.42185%2011.2026%209.42185%2010.1897C9.42185%209.17677%2010.2027%208.43314%2011.0728%207.98387Z'%20fill='%23999999'/%3e%3c/svg%3e",Yf="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%202C17.5228%202%2022%206.47715%2022%2012C22%2017.5228%2017.5228%2022%2012%2022C6.47715%2022%202%2017.5228%202%2012C2%206.47715%206.47715%202%2012%202ZM15.5361%2013.9111C14.7377%2014.2225%2013.47%2014.4267%2012.042%2014.4268C10.6135%2014.4268%209.34534%2014.2226%208.54688%2013.9111C7.99508%2014.1264%207.66726%2014.3932%207.66699%2014.6836C7.66713%2015.3942%209.62583%2015.9707%2012.042%2015.9707C14.4579%2015.9706%2016.4169%2015.3942%2016.417%2014.6836C16.4167%2014.3932%2016.0882%2014.1264%2015.5361%2013.9111ZM15.5361%2011.3389C14.7377%2011.6501%2013.4698%2011.8535%2012.042%2011.8535C10.6137%2011.8535%209.34537%2011.6503%208.54688%2011.3389C7.99513%2011.5542%207.66699%2011.8199%207.66699%2012.1104C7.66784%2012.8208%209.62627%2013.3975%2012.042%2013.3975C14.4575%2013.3974%2016.4161%2012.8208%2016.417%2012.1104C16.417%2011.8199%2016.0881%2011.5542%2015.5361%2011.3389ZM12.042%208.25C9.62575%208.25%207.66699%208.82645%207.66699%209.53711C7.66763%2010.2476%209.62614%2010.8232%2012.042%2010.8232C14.4576%2010.8232%2016.4164%2010.2476%2016.417%209.53711C16.417%208.8265%2014.458%208.25008%2012.042%208.25Z'%20fill='%23999999'/%3e%3c/svg%3e",zf="data:image/svg+xml,%3csvg%20width='12'%20height='8'%20viewBox='0%200%2012%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.3098%207.23828L5.84025%202.76374L1.3727%207.23828L0%205.8605L5.84025%200.000186443L11.6825%205.8605L10.3098%207.23828Z'%20fill='white'/%3e%3c/svg%3e",Zf="data:image/svg+xml,%3csvg%20width='12'%20height='8'%20viewBox='0%200%2012%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.37278%200L5.84236%204.47454L10.3099%200L11.6826%201.37778L5.84236%207.23809L7.72476e-05%201.37778L1.37278%200Z'%20fill='white'/%3e%3c/svg%3e",Xf="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.55556%204C6.32986%204%205.33333%204.96094%205.33333%206.14286V13.6429C5.33333%2014.8248%206.32986%2015.7857%207.55556%2015.7857H19.7778C21.0035%2015.7857%2022%2014.8248%2022%2013.6429V6.14286C22%204.96094%2021.0035%204%2019.7778%204H7.55556ZM13.6667%207.21429C15.2014%207.21429%2016.4444%208.41295%2016.4444%209.89286C16.4444%2011.3728%2015.2014%2012.5714%2013.6667%2012.5714C12.1319%2012.5714%2010.8889%2011.3728%2010.8889%209.89286C10.8889%208.41295%2012.1319%207.21429%2013.6667%207.21429ZM7.55556%208.01786V6.41071C7.55556%206.26339%207.68056%206.14286%207.83333%206.14286H9.5C9.65278%206.14286%209.78125%206.26339%209.76042%206.41071C9.63542%207.3817%208.83681%208.14844%207.83333%208.26897C7.68056%208.28571%207.55556%208.16518%207.55556%208.01786ZM7.55556%2011.7679C7.55556%2011.6205%207.68056%2011.4967%207.83333%2011.5167C8.84028%2011.6373%209.63542%2012.4074%209.76042%2013.375C9.77778%2013.5223%209.65278%2013.6429%209.5%2013.6429H7.83333C7.68056%2013.6429%207.55556%2013.5223%207.55556%2013.375V11.7679ZM19.5%208.26897C18.4931%208.14844%2017.6979%207.37835%2017.5729%206.41071C17.5556%206.26339%2017.6806%206.14286%2017.8333%206.14286H19.5C19.6528%206.14286%2019.7778%206.26339%2019.7778%206.41071V8.01786C19.7778%208.16518%2019.6528%208.28906%2019.5%208.26897ZM19.7778%2011.7679V13.375C19.7778%2013.5223%2019.6528%2013.6429%2019.5%2013.6429H17.8333C17.6806%2013.6429%2017.5521%2013.5223%2017.5729%2013.375C17.6979%2012.404%2018.4965%2011.6373%2019.5%2011.5167C19.6528%2011.5%2019.7778%2011.6205%2019.7778%2011.7679ZM3.66667%208.01786C3.66667%207.57254%203.29514%207.21429%202.83333%207.21429C2.37153%207.21429%202%207.57254%202%208.01786V16.8571C2%2018.0391%202.99653%2019%204.22222%2019H17.8333C18.2951%2019%2018.6667%2018.6417%2018.6667%2018.1964C18.6667%2017.7511%2018.2951%2017.3929%2017.8333%2017.3929H4.22222C3.91667%2017.3929%203.66667%2017.1518%203.66667%2016.8571V8.01786Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/svg%3e",Wf="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22%208.16216V8.23516C22%209.09516%2022%209.52616%2021.793%209.87816C21.586%2010.2302%2021.209%2010.4392%2020.457%2010.8582L19.664%2011.2982C20.21%209.45016%2020.393%207.46416%2020.46%205.76616L20.47%205.54516L20.472%205.49316C21.123%205.71916%2021.489%205.88816%2021.717%206.20416C22%206.59716%2022%207.11916%2022%208.16216ZM2%208.16216V8.23516C2%209.09516%202%209.52616%202.207%209.87816C2.414%2010.2302%202.791%2010.4392%203.543%2010.8582L4.337%2011.2982C3.79%209.45016%203.607%207.46416%203.54%205.76616L3.53%205.54516L3.529%205.49316C2.877%205.71916%202.511%205.88816%202.283%206.20416C2%206.59716%202%207.12016%202%208.16216Z'%20fill='white'%20fill-opacity='0.5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16.3774%202.34723C14.9305%202.11022%2013.4665%201.99415%2012.0004%202.00023C10.2174%202.00023%208.74737%202.15723%207.62337%202.34723C6.48437%202.53923%205.91537%202.63523%205.43937%203.22123C4.96437%203.80723%204.98937%204.44023%205.03937%205.70623C5.21237%2010.0542%206.15037%2015.4862%2011.2504%2015.9662V19.5002H9.82037C9.58928%2019.5004%209.36537%2019.5805%209.18671%2019.7271C9.00805%2019.8737%208.88567%2020.0776%208.84037%2020.3042L8.65037%2021.2502H6.00037C5.80146%2021.2502%205.61069%2021.3292%205.47004%2021.4699C5.32939%2021.6105%205.25037%2021.8013%205.25037%2022.0002C5.25037%2022.1991%205.32939%2022.3899%205.47004%2022.5306C5.61069%2022.6712%205.80146%2022.7502%206.00037%2022.7502H18.0004C18.1993%2022.7502%2018.3901%2022.6712%2018.5307%2022.5306C18.6714%2022.3899%2018.7504%2022.1991%2018.7504%2022.0002C18.7504%2021.8013%2018.6714%2021.6105%2018.5307%2021.4699C18.3901%2021.3292%2018.1993%2021.2502%2018.0004%2021.2502H15.3504L15.1604%2020.3042C15.1151%2020.0776%2014.9927%2019.8737%2014.814%2019.7271C14.6354%2019.5805%2014.4115%2019.5004%2014.1804%2019.5002H12.7504V15.9662C17.8504%2015.4862%2018.7894%2010.0552%2018.9614%205.70623C19.0114%204.44023%2019.0374%203.80623%2018.5614%203.22123C18.0854%202.63523%2017.5164%202.53923%2016.3774%202.34723ZM12.7874%205.80723C12.9244%205.864%2013.0416%205.96014%2013.124%206.08349C13.2064%206.20685%2013.2504%206.35187%2013.2504%206.50023V10.5002C13.2504%2010.6991%2013.1714%2010.8899%2013.0307%2011.0306C12.89%2011.1712%2012.6993%2011.2502%2012.5004%2011.2502C12.3015%2011.2502%2012.1107%2011.1712%2011.97%2011.0306C11.8294%2010.8899%2011.7504%2010.6991%2011.7504%2010.5002V8.31023L11.5304%208.53023C11.4617%208.60391%2011.3789%208.66302%2011.2869%208.70401C11.1949%208.745%2011.0956%208.76704%2010.9949%208.76882C10.8942%208.7706%2010.7942%208.75207%2010.7008%208.71435C10.6074%208.67663%2010.5226%208.62048%2010.4513%208.54926C10.3801%208.47805%2010.324%208.39321%2010.2862%208.29982C10.2485%208.20644%2010.23%208.10641%2010.2318%208.0057C10.2336%207.905%2010.2556%207.80569%2010.2966%207.71369C10.3376%207.62169%2010.3967%207.53889%2010.4704%207.47023L11.9704%205.97023C12.0752%205.86533%2012.2087%205.79387%2012.3542%205.76485C12.4996%205.73584%2012.6503%205.75059%2012.7874%205.80723Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/svg%3e",qf="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14.3226%202.25641C14.3226%202.18841%2014.2954%202.12319%2014.247%202.0751C14.1986%202.02701%2014.133%202%2014.0645%202H6.83871C6.08584%202%205.3638%202.29716%204.83144%202.82611C4.29908%203.35506%204%204.07247%204%204.82051V19.1795C4%2019.9275%204.29908%2020.6449%204.83144%2021.1739C5.3638%2021.7028%206.08584%2022%206.83871%2022H17.1613C17.9142%2022%2018.6362%2021.7028%2019.1686%2021.1739C19.7009%2020.6449%2020%2019.9275%2020%2019.1795V9.07385C20%209.00584%2019.9728%208.94062%2019.9244%208.89254C19.876%208.84445%2019.8104%208.81744%2019.7419%208.81744H15.0968C14.8914%208.81744%2014.6945%208.73639%2014.5493%208.59213C14.4041%208.44787%2014.3226%208.25222%2014.3226%208.04821V2.25641ZM15.0968%2012.2564C15.3021%2012.2564%2015.499%2012.3375%2015.6442%2012.4817C15.7894%2012.626%2015.871%2012.8216%2015.871%2013.0256C15.871%2013.2297%2015.7894%2013.4253%2015.6442%2013.5696C15.499%2013.7138%2015.3021%2013.7949%2015.0968%2013.7949H8.90323C8.6979%2013.7949%208.50098%2013.7138%208.35579%2013.5696C8.2106%2013.4253%208.12903%2013.2297%208.12903%2013.0256C8.12903%2012.8216%208.2106%2012.626%208.35579%2012.4817C8.50098%2012.3375%208.6979%2012.2564%208.90323%2012.2564H15.0968ZM15.0968%2016.359C15.3021%2016.359%2015.499%2016.44%2015.6442%2016.5843C15.7894%2016.7285%2015.871%2016.9242%2015.871%2017.1282C15.871%2017.3322%2015.7894%2017.5279%2015.6442%2017.6721C15.499%2017.8164%2015.3021%2017.8974%2015.0968%2017.8974H8.90323C8.6979%2017.8974%208.50098%2017.8164%208.35579%2017.6721C8.2106%2017.5279%208.12903%2017.3322%208.12903%2017.1282C8.12903%2016.9242%208.2106%2016.7285%208.35579%2016.5843C8.50098%2016.44%208.6979%2016.359%208.90323%2016.359H15.0968Z'%20fill='white'%20fill-opacity='0.5'/%3e%3cpath%20d='M15.75%202.82396C15.75%202.63996%2015.943%202.52296%2016.086%202.63796C16.2073%202.73596%2016.315%202.84996%2016.409%202.97996L19.422%207.17696C19.49%207.27296%2019.416%207.39696%2019.298%207.39696H16C15.9337%207.39696%2015.8701%207.37062%2015.8232%207.32373C15.7763%207.27685%2015.75%207.21326%2015.75%207.14696V2.82396Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/svg%3e",Jf="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.8421%2015.8636L17.5516%2017.4L16.8411%2018.5091L13.4211%2016.5455V12H14.8421V15.8636ZM21%2015.6364C21%2019.1545%2018.0347%2022%2014.3684%2022C12.5589%2022%2010.9295%2021.3091%209.73579%2020.1818H4.89474C3.84316%2020.1818%203%2019.3727%203%2018.3636V3.81818C3%203.33597%203.19962%202.87351%203.55496%202.53253C3.91029%202.19156%204.39222%202%204.89474%202H5.84211V8.36364L8.21053%207L10.5789%208.36364V2H16.2632C16.7657%202%2017.2476%202.19156%2017.6029%202.53253C17.9583%202.87351%2018.1579%203.33597%2018.1579%203.81818V10.4182C19.8726%2011.5727%2021%2013.4727%2021%2015.6364ZM19.1053%2015.6364C19.1053%2013.1273%2016.9832%2011.0909%2014.3684%2011.0909C11.7537%2011.0909%209.63158%2013.1273%209.63158%2015.6364C9.63158%2018.1455%2011.7537%2020.1818%2014.3684%2020.1818C16.9832%2020.1818%2019.1053%2018.1455%2019.1053%2015.6364Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/svg%3e";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("./TournamentLeaderboard-DsankBPB.cjs")).then(({default:t})=>{!customElements.get("tournament-leaderboard")&&customElements.define("tournament-leaderboard",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("./TournamentDetails-BM-igEZ4.cjs")).then(({default:t})=>{!customElements.get("tournament-details")&&customElements.define("tournament-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("./TournamentGames-DO4SvwhG.cjs")).then(({default:t})=>{!customElements.get("tournament-games")&&customElements.define("tournament-games",t.element)})}var Qf=wt('<span class="Spinner svelte-gxy8gu"></span>'),Kf=wt("<button><!></button>"),e2=wt('<div class="TournamentRuleRow svelte-gxy8gu"><div class="RuleIcon svelte-gxy8gu"><img alt="Icon" class="svelte-gxy8gu"/></div> <div class="RuleText svelte-gxy8gu"><!>: <span class="RuleContent svelte-gxy8gu"> </span></div></div>'),t2=wt('<li class="RuleTxt svelte-gxy8gu"> </li>'),r2=wt('<div class="TournamentRuleRow svelte-gxy8gu"><div class="RuleIcon svelte-gxy8gu"><img alt="Icon" class="svelte-gxy8gu"/></div> <div class="RuleText svelte-gxy8gu"><!>: <ul class="SportsRules svelte-gxy8gu"></ul></div></div>'),n2=wt('<div class="TournamemntRulesContent svelte-gxy8gu"><div class="TournamentRuleRow svelte-gxy8gu"><div class="RuleIcon svelte-gxy8gu"><img alt="Icon" class="svelte-gxy8gu"/></div> <div class="svelte-gxy8gu"><!> <!> <!> <!> <!> <!></div></div> <div class="TournamentRuleRow svelte-gxy8gu"><div class="RuleIcon svelte-gxy8gu"><img alt="Icon" class="svelte-gxy8gu"/></div> <div class="RuleText svelte-gxy8gu"><!></div></div> <div class="TournamentRuleRow svelte-gxy8gu"><div class="RuleIcon svelte-gxy8gu"><img alt="Icon" class="svelte-gxy8gu"/></div> <div class="RuleText svelte-gxy8gu"><!></div></div> <div class="TournamentRuleRow svelte-gxy8gu"><div class="RuleIcon svelte-gxy8gu"><img alt="Icon" class="svelte-gxy8gu"/></div> <div class="RuleText svelte-gxy8gu"><!></div></div> <!> <!></div>'),i2=wt('<div class="DetailsWrapper svelte-gxy8gu"><tournament-details></tournament-details> <!></div> <div class="LeaderboardWrapper svelte-gxy8gu"><tournament-leaderboard></tournament-leaderboard></div> <div class="TournamentRulesWrapper svelte-gxy8gu"><button class="TournamentRulesHeader svelte-gxy8gu"><span class="TournamemntRulesTitle svelte-gxy8gu"> </span> <img alt="Icon" class="Icon svelte-gxy8gu"/></button> <!></div> <div class="GamesWrapper svelte-gxy8gu"><tournament-games></tournament-games></div>',3),s2=wt('<div class="SkeletonWrapper svelte-gxy8gu"><div class="Skeleton Details svelte-gxy8gu"><div class="SkeletonShimmer svelte-gxy8gu"></div></div> <div class="Skeleton Leaderboard svelte-gxy8gu"><div class="SkeletonShimmer svelte-gxy8gu"></div></div> <div class="Skeleton Rules svelte-gxy8gu"><div class="SkeletonShimmer svelte-gxy8gu"></div></div> <div class="Skeleton Games svelte-gxy8gu"><div class="SkeletonShimmer svelte-gxy8gu"></div></div></div>'),o2=wt('<div class="TournamentDetailsPageWrapper svelte-gxy8gu"><!> <!></div>');const a2={hash:"svelte-gxy8gu",code:`.svelte-gxy8gu,
41
- .svelte-gxy8gu::before,
42
- .svelte-gxy8gu::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.SkeletonWrapper.svelte-gxy8gu {display:flex;flex-direction:column;justify-content:space-between;gap:10px;}.Skeleton.svelte-gxy8gu {width:100%;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
43
- animation: svelte-gxy8gu-pulse 1.5s infinite;&.Details {height:400px;}&.Leaderboard {height:500px;}&.Rules {height:150px;}&.Games {height:300px;}}
44
-
45
- @keyframes svelte-gxy8gu-pulse {
46
- 0% {
47
- opacity: 0;
48
- }
49
- 50% {
50
- opacity: 1;
51
- }
52
- 100% {
53
- opacity: 0;
54
- }
55
- }.TournamentDetailsPageWrapper.svelte-gxy8gu {max-width:1300px;margin:auto;background-color:#2C2B2B;padding:10px;border-radius:6px;display:flex;flex-direction:column;gap:10px;.LeaderboardWrapper:where(.svelte-gxy8gu) {min-height:500px;}.GamesWrapper:where(.svelte-gxy8gu) {min-height:200px;}}.DetailsWrapper.svelte-gxy8gu {background-color:var(--emw-color-bg-secondary, #333232);border-radius:6px;padding-bottom:16px;min-height:400px;.ViewPrizesContainer:where(.svelte-gxy8gu) {display:flex;justify-content:space-between;align-items:center;background-color:var(--emw-color-bg-elements, #4A4A4A);color:var(--emw-color-typography, #ffffff);border-radius:6px;width:calc(100% - 32px);margin:auto;padding:10px;}}.ButtonPrimary.svelte-gxy8gu {display:block;width:calc(100% - 32px);margin:auto;background-color:var(--emw-color-primary, #FF1D4E);color:var(--emw-color-typography, #ffffff);border-radius:6px;padding:8px 0;border:none;outline:none;text-align:center;text-decoration:none;cursor:pointer;transition:background-color 0.2s ease, transform 0.15s ease;&:hover {background-color:var(--emw-color-primary-hover, #ff3a65);cursor:pointer;}&:active {transform:scale(0.9);}&.Enrolled {pointer-events:none;filter:saturate(50%);}}.Spinner.svelte-gxy8gu {display:inline-block;width:16px;height:16px;border:2px solid rgba(255, 255, 255, 0.3);border-top-color:var(--emw-color-typography, #ffffff);border-radius:50%;
56
- animation: svelte-gxy8gu-spin 0.6s linear infinite;}
57
-
58
- @keyframes svelte-gxy8gu-spin {
59
- to { transform: rotate(360deg); }
60
- }
61
-
62
- @media (min-width: 1000px) {.ButtonPrimary.svelte-gxy8gu {display:block;width:300px;margin:auto;}
63
- }.TournamentRulesWrapper.svelte-gxy8gu {border:1px solid var(--emw-color-bg-secondary, #333232);border-radius:4px;overflow:hidden;min-height:40px;.TournamentRulesHeader:where(.svelte-gxy8gu) {width:100%;padding:10px;background-color:var(--emw-color-bg-secondary, #333232);color:var(--emw-color-typography, #ffffff);font-weight:500;font-size:14px;border:none;text-align:left;cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-size:1rem;transition:background 0.2s;}.TournamentRulesHeader:where(.svelte-gxy8gu):hover {background:var(--emw-color-bg-elements, #4A4A4A);}.TournamentRulesHeader:where(.svelte-gxy8gu):active {background-color:var(--emw-color-bg-secondary, #333232);}.Icon:where(.svelte-gxy8gu) {width:15px;height:15px;}.TournamemntRulesContent:where(.svelte-gxy8gu) {background-color:var(--emw-color-bg-secondary, #333232);color:var(--emw-color-typography, #ffffff);font-size:12px;font-weight:200;padding:10px;.TournamentRuleRow:where(.svelte-gxy8gu) {display:flex;gap:10px;margin:6px;.RuleText:where(.svelte-gxy8gu) {align-self:center;}.RuleIcon:where(.svelte-gxy8gu) {min-width:24px;min-height:24px;}}}}`};function Qa(e,t){var Ke,Ge;Yi(t,!0),ca(e,a2);const r=()=>pa(Fa,"$_",n),[n,i]=va(),s=St(t,"initialState"),o=St(t,"endpoint"),u=St(t,"language",7,"en"),a=St(t,"session"),l=St(t,"tournamentid"),f=St(t,"gamesLimit",7,6),d=St(t,"platformProp",7,null),h=St(t,"translationurl");Tf({withLocale:"en",translations:{}});const v=()=>{let T=new URL(h());fetch(T.href).then(z=>z.json()).then(z=>{Object.keys(z).forEach(Q=>{Us(Q,z[Q])})}).catch(z=>{console.log(z)})};Object.keys(Gs).forEach(T=>{Us(T,Gs[T])}),Fs(u());const _=()=>{Fs(u())};Ji(()=>{_()}),Go(()=>{h()&&v()});const x=jf()?(Ke=d())!=null?Ke:"dk":Xa(window.navigator.userAgent);let c=fe(At(((Ge=s())==null?void 0:Ge.tournament)||null)),g=fe(!1),A=fe(At([])),M=fe(void 0),G=fe(void 0),I=fe(!1),k=fe(!1),V=fe(!1),te=fe(""),W=fe(void 0),H=fe(void 0),B=fe(At([])),ne=fe(""),ie=fe(!1);const S=()=>{J(ne,E(H)?Js.generateCasinoRule(r(),E(H)):"",!0),J(B,E(W)?Js.generateSportsRule(r(),E(W)):[],!0)},b=()=>ii(this,null,function*(){J(g,!0);const T=new URL(`${o()}/v1/tournaments/${l()}`),z=new Headers;a()&&z.append("X-SessionId",a());const Q={method:"GET",headers:z};T.searchParams.append("language",u()),T.searchParams.append("expand","games"),T.searchParams.append("pagination",`games(limit=${f()},offset=0)`),T.searchParams.append("platform",x),fetch(T,Q).then(P=>P.json()).then(P=>{var le,Ne,et,Se,lt,je,ft;J(c,P==null?void 0:P.item,!0),J(A,(Ne=(le=P==null?void 0:P.item)==null?void 0:le.games)==null?void 0:Ne.items,!0),J(M,(Se=(et=P==null?void 0:P.item)==null?void 0:et.games)==null?void 0:Se.total,!0),J(G,(lt=P==null?void 0:P.item)==null?void 0:lt.metadata,!0),J(H,(je=P==null?void 0:P.item)==null?void 0:je.wallet.casino,!0),J(W,(ft=P==null?void 0:P.item)==null?void 0:ft.wallet.sports,!0),(E(W)||E(H))&&S()}).catch(P=>console.log(P)).finally(()=>{J(g,!1)})}),m=()=>{fetch(`${o()}/tournaments/${E(c).id}`,{headers:{"X-SessionID":a()}}).then(T=>T.json()).then(T=>{var z;(z=T==null?void 0:T.item)!=null&&z.playerEnrolled?J(k,!0):(J(V,!0),J(te,T.errorMessage,!0))}).catch(T=>console.log(T))},w=()=>{J(I,!0);const T=new URL(`${o()}/v1/bonus/claim`);T.searchParams.append("language",u()),T.searchParams.append("platform",x);const z=new Headers;z.append("Content-Type","application/json"),z.append("X-SessionID",a());let Q={};E(c).wallets&&E(c).wallets.length>0&&(Q={language:u(),bonusCode:E(c).wallets[0].code,currency:E(c).baseCurrency,type:"tournament"});const P={method:"PUT",headers:z,body:JSON.stringify(Q)};fetch(T,P).then(le=>le.json()).then(le=>{le&&(le.success==!0?J(k,!0):le.errorMessage.match("VersionMismatchException")&&m())}).catch(le=>{console.log(le),J(V,!0),J(te,le.errorMessage,!0)}).finally(()=>J(I,!1))},y=()=>{J(ie,!E(ie))};es(()=>{s()||a()&&l()&&o()&&b()});var C={get initialState(){return s()},set initialState(T){s(T),dt()},get endpoint(){return o()},set endpoint(T){o(T),dt()},get language(){return u()},set language(T="en"){u(T),dt()},get session(){return a()},set session(T){a(T),dt()},get tournamentid(){return l()},set tournamentid(T){l(T),dt()},get gamesLimit(){return f()},set gamesLimit(T=6){f(T),dt()},get platformProp(){return d()},set platformProp(T=null){d(T),dt()},get translationurl(){return h()},set translationurl(T){h(T),dt()}},O=o2(),$=q(O);{var re=T=>{var z=i2(),Q=kt(z),P=q(Q);K(()=>pe(P,"tournament",E(c))),K(()=>pe(P,"language",u())),K(()=>{var Ve;return pe(P,"enrolled",((Ve=E(c))==null?void 0:Ve.playerEnrolled)||E(k))}),K(()=>pe(P,"translationurl",h())),Vr(P,1,"svelte-gxy8gu");var le=se(P,2);{var Ne=Ve=>{var ht=Kf();ht.__click=w;var Ir=q(ht);{var Nr=Et=>{var Zt=Qf();be(Et,Zt)},Yn=Et=>{var Zt=gl();K(zn=>Gr(Zt,zn),[()=>r()("joinButton")]),be(Et,Zt)};Pe(Ir,Et=>{E(I)?Et(Nr):Et(Yn,!1)})}X(ht),K(()=>{Vr(ht,1,`ButtonPrimary ${E(c).playerEnrolled||E(k)?"Enrolled":""}`,"svelte-gxy8gu"),ht.disabled=E(c).playerEnrolled||E(k)}),be(Ve,ht)};Pe(le,Ve=>{!E(c).playerEnrolled&&E(c).state!=="Closed"&&!E(k)&&Ve(Ne)})}X(Q);var et=se(Q,2),Se=q(et);K(()=>pe(Se,"endpoint",o())),K(()=>pe(Se,"language",u())),K(()=>pe(Se,"session",a())),K(()=>pe(Se,"tournamentid",l())),K(()=>pe(Se,"newlyEnrolled",E(k))),K(()=>pe(Se,"platform",x)),K(()=>pe(Se,"translationurl",h())),Vr(Se,1,"svelte-gxy8gu"),X(et);var lt=se(et,2),je=q(lt);je.__click=y;var ft=q(je),Lr=q(ft,!0);X(ft);var as=se(ft,2);X(je);var Ka=se(je,2);{var eu=Ve=>{var ht=n2(),Ir=q(ht),Nr=q(Ir),Yn=q(Nr);X(Nr);var Et=se(Nr,2),Zt=q(Et);{var zn=Z=>{var ae=Xt(),me=kt(ae);tt(me,()=>r()("scoreCriteriaType.mostRounds")),be(Z,ae)};Pe(Zt,Z=>{E(c).scoreCriteria=="BetCount"&&Z(zn)})}var ls=se(Zt,2);{var tu=Z=>{var ae=Xt(),me=kt(ae);tt(me,()=>r()("scoreCriteriaType.winStakeRatio")),be(Z,ae)};Pe(ls,Z=>{E(c).scoreCriteria=="WinStakeRatio"&&Z(tu)})}var fs=se(ls,2);{var ru=Z=>{var ae=Xt(),me=kt(ae);tt(me,()=>r()("scoreCriteriaType.maxWinStakeRatio")),be(Z,ae)};Pe(fs,Z=>{E(c).scoreCriteria=="MaxWinStakeRatio"&&Z(ru)})}var cs=se(fs,2);{var nu=Z=>{var ae=Xt(),me=kt(ae);tt(me,()=>r()("scoreCriteriaType.stake")),be(Z,ae)};Pe(cs,Z=>{E(c).scoreCriteria=="Stake"&&Z(nu)})}var hs=se(cs,2);{var iu=Z=>{var ae=Xt(),me=kt(ae);tt(me,()=>r()("scoreCriteriaType.win")),be(Z,ae)};Pe(hs,Z=>{E(c).scoreCriteria=="Win"&&Z(iu)})}var su=se(hs,2);{var ou=Z=>{var ae=Xt(),me=kt(ae);tt(me,()=>r()("scoreCriteriaType.winBetCount")),be(Z,ae)};Pe(su,Z=>{E(c).scoreCriteria=="WinBetCount"&&Z(ou)})}X(Et),X(Ir);var Zn=se(Ir,2),Xn=q(Zn),au=q(Xn);X(Xn);var ds=se(Xn,2),uu=q(ds);tt(uu,()=>r()("miniBetCount",{values:{betCount:E(c).minBetCount}})),X(ds),X(Zn);var Wn=se(Zn,2),qn=q(Wn),lu=q(qn);X(qn);var ps=se(qn,2),fu=q(ps);tt(fu,()=>r()("timePeriod",{values:{startTime:qs(E(c).startTime),endTime:qs(E(c).endTime)}})),X(ps),X(Wn);var Jn=se(Wn,2),Qn=q(Jn),cu=q(Qn);X(Qn);var vs=se(Qn,2),hu=q(vs);tt(hu,()=>r()("terms",{values:{tcUrl:E(c).termsUrl||"#"}})),X(vs),X(Jn);var ms=se(Jn,2);{var du=Z=>{var ae=e2(),me=q(ae),Kn=q(me);X(me);var kr=se(me,2),Dr=q(kr);tt(Dr,()=>r()("forCasino"));var Ur=se(Dr,2),ei=q(Ur,!0);X(Ur),X(kr),X(ae),K(()=>{pt(Kn,"src",Vf),Gr(ei,E(ne))}),be(Z,ae)};Pe(ms,Z=>{E(H)&&Z(du)})}var pu=se(ms,2);{var vu=Z=>{var ae=r2(),me=q(ae),Kn=q(me);X(me);var kr=se(me,2),Dr=q(kr);tt(Dr,()=>r()("forSportsbook"));var Ur=se(Dr,2);fa(Ur,21,()=>E(B),la,(ei,mu)=>{var ti=t2(),gu=q(ti,!0);X(ti),K(()=>Gr(gu,E(mu))),be(ei,ti)}),X(Ur),X(kr),X(ae),K(()=>pt(Kn,"src",Yf)),be(Z,ae)};Pe(pu,Z=>{E(W)&&E(B).length&&Z(vu)})}X(ht),K(()=>{pt(Yn,"src",Wf),pt(au,"src",Xf),pt(lu,"src",Jf),pt(cu,"src",qf)}),be(Ve,ht)};Pe(Ka,Ve=>{E(ie)&&Ve(eu)})}X(lt);var us=se(lt,2),ct=q(us);K(()=>pe(ct,"endpoint",o())),K(()=>pe(ct,"language",u())),K(()=>pe(ct,"session",a())),K(()=>pe(ct,"tournamentid",l())),K(()=>pe(ct,"platform",x)),K(()=>pe(ct,"initialGames",E(A))),K(()=>pe(ct,"totalGames",E(M))),K(()=>pe(ct,"tournamentMetadata",E(G)||{})),K(()=>pe(ct,"translationurl",h())),Vr(ct,1,"svelte-gxy8gu"),X(us),K(Ve=>{pt(je,"aria-expanded",E(ie)),Gr(Lr,Ve),pt(as,"src",E(ie)?zf:Zf)},[()=>r()("rules")]),be(T,z)};Pe($,T=>{E(c)&&T(re)})}var oe=se($,2);{var de=T=>{var z=s2();be(T,z)};Pe(oe,T=>{E(g)&&T(de)})}X(O),be(e,O);var Ee=zi(C);return i(),Ee}sa(["click"]);customElements.define("tournament-details-page",ga(Qa,{initialState:{},endpoint:{},language:{},session:{},tournamentid:{},gamesLimit:{},platformProp:{},translationurl:{}},[],[],!1));const u2=Object.freeze(Object.defineProperty({__proto__:null,default:Qa},Symbol.toStringTag,{value:"Module"}));exports.$format=Fa;exports.$locale=$t;exports.TournamentDetailsPage_ce=u2;exports.addMessages=is;exports.append=be;exports.append_styles=ca;exports.child=q;exports.clsx=Ol;exports.comment=Xt;exports.commonjsGlobal=rs;exports.create_custom_element=ga;exports.customParseFormat=Ja;exports.dayjs=os;exports.delegate=sa;exports.each=fa;exports.first_child=kt;exports.flushSync=dt;exports.from_html=wt;exports.get=E;exports.getDefaultExportFromCjs=Dn;exports.getDevice=Xa;exports.if_block=Pe;exports.index=la;exports.next=co;exports.onDestroy=El;exports.onMount=es;exports.pop=zi;exports.prop=St;exports.proxy=At;exports.push=Yi;exports.reset=X;exports.set=J;exports.set_attribute=pt;exports.set_class=Vr;exports.set_style=Hl;exports.set_text=Gr;exports.setup_stores=va;exports.sibling=se;exports.state=fe;exports.store_get=pa;exports.template_effect=K;exports.user_derived=sl;exports.user_effect=Ji;exports.user_pre_effect=Go;