@everymatrix/tournament-details-page 0.1.13 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{TournamentDetails-hOUvqDF2.js → TournamentDetails-CTrigRlQ.js} +85 -88
- package/components/{TournamentDetails-CYrQWwZn.cjs → TournamentDetails-CamF-OAP.cjs} +2 -2
- package/components/{TournamentDetails-BVnS_IYF.js → TournamentDetails-DxnqovRH.js} +88 -91
- package/components/{TournamentDetails-BoaqYHo1.cjs → TournamentDetails-qI01TVz6.cjs} +2 -2
- package/components/{TournamentDetailsPage-DcS7Pa0U.js → TournamentDetailsPage-BhOKeY6o.js} +139 -140
- package/components/{TournamentDetailsPage-LxAzPvhv.js → TournamentDetailsPage-CAgzJoGS.js} +147 -148
- package/components/{TournamentDetailsPage-BgoG6goQ.cjs → TournamentDetailsPage-Ch2aanZt.cjs} +3 -3
- package/components/{TournamentDetailsPage-WnIR1yO-.cjs → TournamentDetailsPage-clnwYJj-.cjs} +3 -3
- package/components/TournamentGames-05Z4kMcw.cjs +51 -0
- package/components/TournamentGames-Ba_dX246.cjs +51 -0
- package/components/{TournamentGames-B5Vr9KT7.js → TournamentGames-QGboBJGp.js} +395 -418
- package/components/{TournamentGames-Bgha2ST9.js → TournamentGames-dkEGBAmh.js} +337 -360
- package/components/TournamentLeaderboard-BZPNaquR.cjs +46 -0
- package/components/TournamentLeaderboard-CE2y2ivq.js +8127 -0
- package/components/TournamentLeaderboard-D4iLH5gS.cjs +46 -0
- package/components/{TournamentLeaderboard-cxKLflDm.js → TournamentLeaderboard-DIOfuPoN.js} +3445 -3042
- package/es2015/tournament-details-page.cjs +1 -1
- package/es2015/tournament-details-page.js +2 -2
- package/esnext/tournament-details-page.cjs +1 -1
- package/esnext/tournament-details-page.js +2 -2
- package/package.json +1 -1
- package/components/TournamentGames-DXcN8tkz.cjs +0 -51
- package/components/TournamentGames-DpOh7T_F.cjs +0 -51
- package/components/TournamentLeaderboard-8MMMRNQy.cjs +0 -46
- package/components/TournamentLeaderboard-C_Ne8wC4.js +0 -7718
- package/components/TournamentLeaderboard-DpfSasWx.cjs +0 -46
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const ba="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(ba);const ya=1,Ea=2,Bi=4,xa=8,wa=16,Sa=1,Ta=2,Li="[",tn="[!",zn="]",tr={},Ie=Symbol(),Aa="http://www.w3.org/1999/xhtml",An=!1;var Ri=Array.isArray,Pa=Array.prototype.indexOf,rn=Array.from,Xr=Object.keys,Hr=Object.defineProperty,cr=Object.getOwnPropertyDescriptor,Ma=Object.getOwnPropertyDescriptors,Ha=Object.prototype,Oa=Array.prototype,Ci=Object.getPrototypeOf,fi=Object.isExtensible;const jt=()=>{};function Di(e){for(var t=0;t<e.length;t++)e[t]()}function Ii(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const ke=2,Yr=4,Br=8,ki=1<<24,It=16,kt=32,qt=64,qn=128,mt=512,je=1024,Qe=2048,Ft=4096,ut=8192,Rt=16384,nn=32768,dr=65536,hi=1<<17,Fi=1<<18,ir=1<<19,Ui=1<<20,Bt=1<<25,rr=32768,Pn=1<<21,Wn=1<<22,Vt=1<<23,bn=Symbol("$state"),$a=Symbol("legacy props"),Na=Symbol(""),fr=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},sn=3,sr=8;function Gi(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Ba(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function La(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ra(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ca(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Da(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ia(){throw new Error("https://svelte.dev/e/hydration_failed")}function ka(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Fa(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ua(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ga(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Lr(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function ja(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let Z=!1;function Lt(e){Z=e}let K;function Ve(e){if(e===null)throw Lr(),tr;return K=e}function vr(){return Ve(Et(K))}function j(e){if(Z){if(Et(K)!==null)throw Lr(),tr;K=e}}function Zn(e=1){if(Z){for(var t=e,r=K;t--;)r=Et(r);K=r}}function zr(e=!0){for(var t=0,r=K;;){if(r.nodeType===sr){var n=r.data;if(n===zn){if(t===0)return r;t-=1}else(n===Li||n===tn)&&(t+=1)}var i=Et(r);e&&r.remove(),r=i}}function ji(e){if(!e||e.nodeType!==sr)throw Lr(),tr;return e.data}function Vi(e){return e===this.v}function Xi(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Yi(e){return!Xi(e,this.v)}let Va=!1,it=null;function pr(e){it=e}function an(e,t=!1,r){it={p:it,i:!1,c:null,e:null,s:e,x:null,l:null}}function on(e){var t=it,r=t.e;if(r!==null){t.e=null;for(var n of r)ds(n)}return e!==void 0&&(t.x=e),t.i=!0,it=t.p,e??{}}function zi(){return!0}let Zt=[];function qi(){var e=Zt;Zt=[],Di(e)}function un(e){if(Zt.length===0&&!Pr){var t=Zt;queueMicrotask(()=>{t===Zt&&qi()})}Zt.push(e)}function Xa(){for(;Zt.length>0;)qi()}function Wi(e){var t=te;if(t===null)return z.f|=Vt,e;if(t.f&nn)mr(e,t);else{if(!(t.f&qn))throw e;t.b.error(e)}}function mr(e,t){for(;t!==null;){if(t.f&qn)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Ya=-7169;function Re(e,t){e.f=e.f&Ya|t}function Jn(e){e.f&mt||e.deps===null?Re(e,je):Re(e,Ft)}function Zi(e){if(e!==null)for(const t of e)!(t.f&ke)||!(t.f&rr)||(t.f^=rr,Zi(t.deps))}function Ji(e,t,r){e.f&Qe?t.add(e):e.f&Ft&&r.add(e),Zi(e.deps),Re(e,je)}const Cr=new Set;let xe=null,gt=null,vt=[],ln=null,Mn=!1,Pr=!1;class _t{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#r=0;#s=0;#a=null;#i=new Set;#n=new Set;skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#s>0}process(t){vt=[],this.apply();var r=[],n=[];for(const i of t)this.#o(i,r,n);this.is_fork||this.#l(),this.is_deferred()?(this.#u(n),this.#u(r)):(xe=null,ci(n),ci(r),this.#a?.resolve()),gt=null}#o(t,r,n){t.f^=je;for(var i=t.first,s=null;i!==null;){var a=i.f,o=(a&(kt|qt))!==0,u=o&&(a&je)!==0,f=u||(a&ut)!==0||this.skipped_effects.has(i);if(!f&&i.fn!==null){o?i.f^=je:s!==null&&a&(Yr|Br|ki)?s.b.defer_effect(i):a&Yr?r.push(i):Rr(i)&&(a&It&&this.#i.add(i),Or(i));var l=i.first;if(l!==null){i=l;continue}}var h=i.parent;for(i=i.next;i===null&&h!==null;)h===s&&(s=null),i=h.next,h=h.parent}}#u(t){for(var r=0;r<t.length;r+=1)Ji(t[r],this.#i,this.#n)}capture(t,r){r!==Ie&&!this.previous.has(t)&&this.previous.set(t,r),t.f&Vt||(this.current.set(t,t.v),gt?.set(t,t.v))}activate(){xe=this,this.apply()}deactivate(){xe===this&&(xe=null,gt=null)}flush(){if(this.activate(),vt.length>0){if(Qi(),xe!==null&&xe!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#t)t(this);this.#t.clear()}#l(){if(this.#s===0){for(const t of this.#e)t();this.#e.clear()}this.#r===0&&this.#f()}#f(){if(Cr.size>1){this.previous.clear();var t=gt,r=!0;for(const i of Cr){if(i===this){r=!1;continue}const s=[];for(const[o,u]of this.current){if(i.current.has(o))if(r&&u!==i.current.get(o))i.current.set(o,u);else continue;s.push(o)}if(s.length===0)continue;const a=[...i.current.keys()].filter(o=>!this.current.has(o));if(a.length>0){var n=vt;vt=[];const o=new Set,u=new Map;for(const f of s)Ki(f,a,o,u);if(vt.length>0){xe=i,i.apply();for(const f of vt)i.#o(f,[],[]);i.deactivate()}vt=n}}xe=null,gt=t}this.committed=!0,Cr.delete(this)}increment(t){this.#r+=1,t&&(this.#s+=1)}decrement(t){this.#r-=1,t&&(this.#s-=1),this.revive()}revive(){for(const t of this.#i)this.#n.delete(t),Re(t,Qe),Dt(t);for(const t of this.#n)Re(t,Ft),Dt(t);this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#t.add(t)}settled(){return(this.#a??=Ii()).promise}static ensure(){if(xe===null){const t=xe=new _t;Cr.add(xe),Pr||_t.enqueue(()=>{xe===t&&t.flush()})}return xe}static enqueue(t){un(t)}apply(){}}function Ge(e){var t=Pr;Pr=!0;try{for(var r;;){if(Xa(),vt.length===0&&(xe?.flush(),vt.length===0))return ln=null,r;Qi()}}finally{Pr=t}}function Qi(){var e=Kt;Mn=!0;var t=null;try{var r=0;for(Zr(!0);vt.length>0;){var n=_t.ensure();if(r++>1e3){var i,s;za()}n.process(vt),Xt.clear()}}finally{Mn=!1,Zr(e),ln=null}}function za(){try{Da()}catch(e){mr(e,ln)}}let Nt=null;function ci(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if(!(n.f&(Rt|ut))&&Rr(n)&&(Nt=new Set,Or(n),n.deps===null&&n.first===null&&n.nodes===null&&(n.teardown===null&&n.ac===null?bs(n):n.fn=null),Nt?.size>0)){Xt.clear();for(const i of Nt){if(i.f&(Rt|ut))continue;const s=[i];let a=i.parent;for(;a!==null;)Nt.has(a)&&(Nt.delete(a),s.push(a)),a=a.parent;for(let o=s.length-1;o>=0;o--){const u=s[o];u.f&(Rt|ut)||Or(u)}}Nt.clear()}}Nt=null}}function Ki(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&ke?Ki(i,t,r,n):s&(Wn|It)&&!(s&Qe)&&es(i,t,n)&&(Re(i,Qe),Dt(i))}}function es(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&ke&&es(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function Dt(e){for(var t=ln=e;t.parent!==null;){t=t.parent;var r=t.f;if(Mn&&t===te&&r&It&&!(r&Fi))return;if(r&(qt|kt)){if(!(r&je))return;t.f^=je}}vt.push(t)}function qa(e){let t=0,r=nr(0),n;return()=>{ei()&&(A(r),ps(()=>(t===0&&(n=hn(()=>e(()=>Mr(r)))),t+=1,()=>{un(()=>{t-=1,t===0&&(n?.(),n=void 0,Mr(r))})})))}}var Wa=dr|ir|qn;function Za(e,t,r){new Ja(e,t,r)}class Ja{parent;is_pending=!1;#e;#t=Z?K:null;#r;#s;#a;#i=null;#n=null;#o=null;#u=null;#l=null;#f=0;#h=0;#d=!1;#v=new Set;#p=new Set;#c=null;#y=qa(()=>(this.#c=nr(this.#f),()=>{this.#c=null}));constructor(t,r,n){this.#e=t,this.#r=r,this.#s=n,this.parent=te.b,this.is_pending=!!this.#r.pending,this.#a=ti(()=>{if(te.b=this,Z){const s=this.#t;vr(),s.nodeType===sr&&s.data===tn?this.#x():(this.#E(),this.#h===0&&(this.is_pending=!1))}else{var i=this.#_();try{this.#i=pt(()=>n(i))}catch(s){this.error(s)}this.#h>0?this.#g():this.is_pending=!1}return()=>{this.#l?.remove()}},Wa),Z&&(this.#e=K)}#E(){try{this.#i=pt(()=>this.#s(this.#e))}catch(t){this.error(t)}}#x(){const t=this.#r.pending;t&&(this.#n=pt(()=>t(this.#e)),_t.enqueue(()=>{var r=this.#_();this.#i=this.#m(()=>(_t.ensure(),pt(()=>this.#s(r)))),this.#h>0?this.#g():(Qt(this.#n,()=>{this.#n=null}),this.is_pending=!1)}))}#_(){var t=this.#e;return this.is_pending&&(this.#l=nt(),this.#e.before(this.#l),t=this.#l),t}defer_effect(t){Ji(t,this.#v,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#r.pending}#m(t){var r=te,n=z,i=it;Mt(this.#a),rt(this.#a),pr(this.#a.ctx);try{return t()}catch(s){return Wi(s),null}finally{Mt(r),rt(n),pr(i)}}#g(){const t=this.#r.pending;this.#i!==null&&(this.#u=document.createDocumentFragment(),this.#u.append(this.#l),xs(this.#i,this.#u)),this.#n===null&&(this.#n=pt(()=>t(this.#e)))}#b(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#b(t);return}if(this.#h+=t,this.#h===0){this.is_pending=!1;for(const r of this.#v)Re(r,Qe),Dt(r);for(const r of this.#p)Re(r,Ft),Dt(r);this.#v.clear(),this.#p.clear(),this.#n&&Qt(this.#n,()=>{this.#n=null}),this.#u&&(this.#e.before(this.#u),this.#u=null)}}update_pending_count(t){this.#b(t),this.#f+=t,this.#c&&gr(this.#c,this.#f)}get_effect_pending(){return this.#y(),A(this.#c)}error(t){var r=this.#r.onerror;let n=this.#r.failed;if(this.#d||!r&&!n)throw t;this.#i&&(Je(this.#i),this.#i=null),this.#n&&(Je(this.#n),this.#n=null),this.#o&&(Je(this.#o),this.#o=null),Z&&(Ve(this.#t),Zn(),Ve(zr()));var i=!1,s=!1;const a=()=>{if(i){ja();return}i=!0,s&&Ga(),_t.ensure(),this.#f=0,this.#o!==null&&Qt(this.#o,()=>{this.#o=null}),this.is_pending=this.has_pending_snippet(),this.#i=this.#m(()=>(this.#d=!1,pt(()=>this.#s(this.#e)))),this.#h>0?this.#g():this.is_pending=!1};var o=z;try{rt(null),s=!0,r?.(t,a),s=!1}catch(u){mr(u,this.#a&&this.#a.parent)}finally{rt(o)}n&&un(()=>{this.#o=this.#m(()=>{_t.ensure(),this.#d=!0;try{return pt(()=>{n(this.#e,()=>t,()=>a)})}catch(u){return mr(u,this.#a.parent),null}finally{this.#d=!1}})})}}function Qa(e,t,r,n){const i=fn;if(r.length===0&&e.length===0){n(t.map(i));return}var s=xe,a=te,o=Ka();function u(){Promise.all(r.map(f=>eo(f))).then(f=>{o();try{n([...t.map(i),...f])}catch(l){a.f&Rt||mr(l,a)}s?.deactivate(),qr()}).catch(f=>{mr(f,a)})}e.length>0?Promise.all(e).then(()=>{o();try{return u()}finally{s?.deactivate(),qr()}}):u()}function Ka(){var e=te,t=z,r=it,n=xe;return function(s=!0){Mt(e),rt(t),pr(r),s&&n?.activate()}}function qr(){Mt(null),rt(null),pr(null)}function fn(e){var t=ke|Qe,r=z!==null&&z.f&ke?z:null;return te!==null&&(te.f|=ir),{ctx:it,deps:null,effects:null,equals:Vi,f:t,fn:e,reactions:null,rv:0,v:Ie,wv:0,parent:r??te,ac:null}}function eo(e,t,r){let n=te;n===null&&Ba();var i=n.b,s=void 0,a=nr(Ie),o=!z,u=new Map;return uo(()=>{var f=Ii();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).then(()=>{l===xe&&l.committed&&l.deactivate(),qr()})}catch(m){f.reject(m),qr()}var l=xe;if(o){var h=i.is_rendered();i.update_pending_count(1),l.increment(h),u.get(l)?.reject(fr),u.delete(l),u.set(l,f)}const c=(m,w=void 0)=>{if(l.activate(),w)w!==fr&&(a.f|=Vt,gr(a,w));else{a.f&Vt&&(a.f^=Vt),gr(a,m);for(const[D,v]of u){if(u.delete(D),D===l)break;v.reject(fr)}}o&&(i.update_pending_count(-1),l.decrement(h))};f.promise.then(c,m=>c(null,m||"unknown"))}),cs(()=>{for(const f of u.values())f.reject(fr)}),new Promise(f=>{function l(h){function c(){h===s?f(a):l(s)}h.then(c,c)}l(s)})}function kr(e){const t=fn(e);return ws(t),t}function to(e){const t=fn(e);return t.equals=Yi,t}function ts(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Je(t[r])}}function ro(e){for(var t=e.parent;t!==null;){if(!(t.f&ke))return t.f&Rt?null:t;t=t.parent}return null}function Qn(e){var t,r=te;Mt(ro(e));try{e.f&=~rr,ts(e),t=Ps(e)}finally{Mt(r)}return t}function rs(e){var t=Qn(e);if(!e.equals(t)&&(e.wv=Ts(),(!xe?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){Re(e,je);return}Yt||(gt!==null?(ei()||xe?.is_fork)&>.set(e,t):Jn(e))}let Hn=new Set;const Xt=new Map;let ns=!1;function nr(e,t){var r={f:0,v:e,reactions:null,equals:Vi,rv:0,wv:0};return r}function Oe(e,t){const r=nr(e);return ws(r),r}function Kn(e,t=!1,r=!0){const n=nr(e);return t||(n.equals=Yi),n}function ge(e,t,r=!1){z!==null&&(!yt||z.f&hi)&&zi()&&z.f&(ke|It|Wn|hi)&&!Ct?.includes(e)&&Ua();let n=r?hr(t):t;return gr(e,n)}function gr(e,t){if(!e.equals(t)){var r=e.v;Yt?Xt.set(e,t):Xt.set(e,r),e.v=t;var n=_t.ensure();if(n.capture(e,r),e.f&ke){const i=e;e.f&Qe&&Qn(i),Jn(i)}e.wv=Ts(),is(e,Qe),te!==null&&te.f&je&&!(te.f&(kt|qt))&&(dt===null?fo([e]):dt.push(e)),!n.is_fork&&Hn.size>0&&!ns&&no()}return t}function no(){ns=!1;var e=Kt;Zr(!0);const t=Array.from(Hn);try{for(const r of t)r.f&je&&Re(r,Ft),Rr(r)&&Or(r)}finally{Zr(e)}Hn.clear()}function Mr(e){ge(e,e.v+1)}function is(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],a=s.f,o=(a&Qe)===0;if(o&&Re(s,t),a&ke){var u=s;gt?.delete(u),a&rr||(a&mt&&(s.f|=rr),is(u,Ft))}else o&&(a&It&&Nt!==null&&Nt.add(s),Dt(s))}}function hr(e){if(typeof e!="object"||e===null||bn in e)return e;const t=Ci(e);if(t!==Ha&&t!==Oa)return e;var r=new Map,n=Ri(e),i=Oe(0),s=er,a=o=>{if(er===s)return o();var u=z,f=er;rt(null),pi(s);var l=o();return rt(u),pi(f),l};return n&&r.set("length",Oe(e.length)),new Proxy(e,{defineProperty(o,u,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&ka();var l=r.get(u);return l===void 0?l=a(()=>{var h=Oe(f.value);return r.set(u,h),h}):ge(l,f.value,!0),!0},deleteProperty(o,u){var f=r.get(u);if(f===void 0){if(u in o){const l=a(()=>Oe(Ie));r.set(u,l),Mr(i)}}else ge(f,Ie),Mr(i);return!0},get(o,u,f){if(u===bn)return e;var l=r.get(u),h=u in o;if(l===void 0&&(!h||cr(o,u)?.writable)&&(l=a(()=>{var m=hr(h?o[u]:Ie),w=Oe(m);return w}),r.set(u,l)),l!==void 0){var c=A(l);return c===Ie?void 0:c}return Reflect.get(o,u,f)},getOwnPropertyDescriptor(o,u){var f=Reflect.getOwnPropertyDescriptor(o,u);if(f&&"value"in f){var l=r.get(u);l&&(f.value=A(l))}else if(f===void 0){var h=r.get(u),c=h?.v;if(h!==void 0&&c!==Ie)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(o,u){if(u===bn)return!0;var f=r.get(u),l=f!==void 0&&f.v!==Ie||Reflect.has(o,u);if(f!==void 0||te!==null&&(!l||cr(o,u)?.writable)){f===void 0&&(f=a(()=>{var c=l?hr(o[u]):Ie,m=Oe(c);return m}),r.set(u,f));var h=A(f);if(h===Ie)return!1}return l},set(o,u,f,l){var h=r.get(u),c=u in o;if(n&&u==="length")for(var m=f;m<h.v;m+=1){var w=r.get(m+"");w!==void 0?ge(w,Ie):m in o&&(w=a(()=>Oe(Ie)),r.set(m+"",w))}if(h===void 0)(!c||cr(o,u)?.writable)&&(h=a(()=>Oe(void 0)),ge(h,hr(f)),r.set(u,h));else{c=h.v!==Ie;var D=a(()=>hr(f));ge(h,D)}var v=Reflect.getOwnPropertyDescriptor(o,u);if(v?.set&&v.set.call(l,f),!c){if(n&&typeof u=="string"){var _=r.get("length"),$=Number(u);Number.isInteger($)&&$>=_.v&&ge(_,$+1)}Mr(i)}return!0},ownKeys(o){A(i);var u=Reflect.ownKeys(o).filter(h=>{var c=r.get(h);return c===void 0||c.v!==Ie});for(var[f,l]of r)l.v!==Ie&&!(f in o)&&u.push(f);return u},setPrototypeOf(){Fa()}})}var di,ss,as,os;function On(){if(di===void 0){di=window,ss=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;as=cr(t,"firstChild").get,os=cr(t,"nextSibling").get,fi(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),fi(r)&&(r.__t=void 0)}}function nt(e=""){return document.createTextNode(e)}function bt(e){return as.call(e)}function Et(e){return os.call(e)}function X(e,t){if(!Z)return bt(e);var r=bt(K);if(r===null)r=K.appendChild(nt());else if(t&&r.nodeType!==sn){var n=nt();return r?.before(n),Ve(n),n}return Ve(r),r}function $t(e,t=!1){if(!Z){var r=bt(e);return r instanceof Comment&&r.data===""?Et(r):r}if(t&&K?.nodeType!==sn){var n=nt();return K?.before(n),Ve(n),n}return K}function Le(e,t=1,r=!1){let n=Z?K:e;for(var i;t--;)i=n,n=Et(n);if(!Z)return n;if(r&&n?.nodeType!==sn){var s=nt();return n===null?i?.after(s):n.before(s),Ve(s),s}return Ve(n),n}function us(e){e.textContent=""}function ls(){return!1}function fs(e){var t=z,r=te;rt(null),Mt(null);try{return e()}finally{rt(t),Mt(r)}}function hs(e){te===null&&(z===null&&Ca(),Ra()),Yt&&La()}function io(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function xt(e,t,r){var n=te;n!==null&&n.f&ut&&(e|=ut);var i={ctx:it,deps:null,nodes:null,f:e|Qe|mt,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{Or(i),i.f|=nn}catch(o){throw Je(i),o}else t!==null&&Dt(i);var s=i;if(r&&s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&!(s.f&ir)&&(s=s.first,e&It&&e&dr&&s!==null&&(s.f|=dr)),s!==null&&(s.parent=n,n!==null&&io(s,n),z!==null&&z.f&ke&&!(e&qt))){var a=z;(a.effects??=[]).push(s)}return i}function ei(){return z!==null&&!yt}function cs(e){const t=xt(Br,null,!1);return Re(t,je),t.teardown=e,t}function Wr(e){hs();var t=te.f,r=!z&&(t&kt)!==0&&(t&nn)===0;if(r){var n=it;(n.e??=[]).push(e)}else return ds(e)}function ds(e){return xt(Yr|Ui,e,!1)}function vs(e){return hs(),xt(Br|Ui,e,!0)}function so(e){_t.ensure();const t=xt(qt|ir,e,!0);return()=>{Je(t)}}function ao(e){_t.ensure();const t=xt(qt|ir,e,!0);return(r={})=>new Promise(n=>{r.outro?Qt(t,()=>{Je(t),n(void 0)}):(Je(t),n(void 0))})}function oo(e){return xt(Yr,e,!1)}function uo(e){return xt(Wn|ir,e,!0)}function ps(e,t=0){return xt(Br|t,e,!0)}function ct(e,t=[],r=[],n=[]){Qa(n,t,r,i=>{xt(Br,()=>e(...i.map(A)),!0)})}function ti(e,t=0){var r=xt(It|t,e,!0);return r}function pt(e){return xt(kt|ir,e,!0)}function ms(e){var t=e.teardown;if(t!==null){const r=Yt,n=z;vi(!0),rt(null);try{t.call(null)}finally{vi(r),rt(n)}}}function gs(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&fs(()=>{i.abort(fr)});var n=r.next;r.f&qt?r.parent=null:Je(r,t),r=n}}function lo(e){for(var t=e.first;t!==null;){var r=t.next;t.f&kt||Je(t),t=r}}function Je(e,t=!0){var r=!1;(t||e.f&Fi)&&e.nodes!==null&&e.nodes.end!==null&&(_s(e.nodes.start,e.nodes.end),r=!0),gs(e,t&&!r),Jr(e,0),Re(e,Rt);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();ms(e);var i=e.parent;i!==null&&i.first!==null&&bs(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function _s(e,t){for(;e!==null;){var r=e===t?null:Et(e);e.remove(),e=r}}function bs(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 Qt(e,t,r=!0){var n=[];ys(e,n,!0);var i=()=>{r&&Je(e),t&&t()},s=n.length;if(s>0){var a=()=>--s||i();for(var o of n)o.out(a)}else i()}function ys(e,t,r){if(!(e.f&ut)){e.f^=ut;var n=e.nodes&&e.nodes.t;if(n!==null)for(const o of n)(o.is_global||r)&&t.push(o);for(var i=e.first;i!==null;){var s=i.next,a=(i.f&dr)!==0||(i.f&kt)!==0&&(e.f&It)!==0;ys(i,t,a?r:!1),i=s}}}function ri(e){Es(e,!0)}function Es(e,t){if(e.f&ut){e.f^=ut,e.f&je||(Re(e,Qe),Dt(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&dr)!==0||(r.f&kt)!==0;Es(r,i?t:!1),r=n}var s=e.nodes&&e.nodes.t;if(s!==null)for(const a of s)(a.is_global||t)&&a.in()}}function xs(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:Et(r);t.append(r),r=i}}let Kt=!1;function Zr(e){Kt=e}let Yt=!1;function vi(e){Yt=e}let z=null,yt=!1;function rt(e){z=e}let te=null;function Mt(e){te=e}let Ct=null;function ws(e){z!==null&&(Ct===null?Ct=[e]:Ct.push(e))}let tt=null,ot=0,dt=null;function fo(e){dt=e}let Ss=1,Jt=0,er=Jt;function pi(e){er=e}function Ts(){return++Ss}function Rr(e){var t=e.f;if(t&Qe)return!0;if(t&ke&&(e.f&=~rr),t&Ft){for(var r=e.deps,n=r.length,i=0;i<n;i++){var s=r[i];if(Rr(s)&&rs(s),s.wv>e.wv)return!0}t&mt&>===null&&Re(e,je)}return!1}function As(e,t,r=!0){var n=e.reactions;if(n!==null&&!Ct?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];s.f&ke?As(s,t,!1):t===s&&(r?Re(s,Qe):s.f&je&&Re(s,Ft),Dt(s))}}function Ps(e){var t=tt,r=ot,n=dt,i=z,s=Ct,a=it,o=yt,u=er,f=e.f;tt=null,ot=0,dt=null,z=f&(kt|qt)?null:e,Ct=null,pr(e.ctx),yt=!1,er=++Jt,e.ac!==null&&(fs(()=>{e.ac.abort(fr)}),e.ac=null);try{e.f|=Pn;var l=e.fn,h=l(),c=e.deps;if(tt!==null){var m;if(Jr(e,ot),c!==null&&ot>0)for(c.length=ot+tt.length,m=0;m<tt.length;m++)c[ot+m]=tt[m];else e.deps=c=tt;if(ei()&&e.f&mt)for(m=ot;m<c.length;m++)(c[m].reactions??=[]).push(e)}else c!==null&&ot<c.length&&(Jr(e,ot),c.length=ot);if(zi()&&dt!==null&&!yt&&c!==null&&!(e.f&(ke|Ft|Qe)))for(m=0;m<dt.length;m++)As(dt[m],e);if(i!==null&&i!==e){if(Jt++,i.deps!==null)for(let w=0;w<r;w+=1)i.deps[w].rv=Jt;if(t!==null)for(const w of t)w.rv=Jt;dt!==null&&(n===null?n=dt:n.push(...dt))}return e.f&Vt&&(e.f^=Vt),h}catch(w){return Wi(w)}finally{e.f^=Pn,tt=t,ot=r,dt=n,z=i,Ct=s,pr(a),yt=o,er=u}}function ho(e,t){let r=t.reactions;if(r!==null){var n=Pa.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&ke&&(tt===null||!tt.includes(t))){var s=t;s.f&mt&&(s.f^=mt,s.f&=~rr),Jn(s),ts(s),Jr(s,0)}}function Jr(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)ho(e,r[n])}function Or(e){var t=e.f;if(!(t&Rt)){Re(e,je);var r=te,n=Kt;te=e,Kt=!0;try{t&(It|ki)?lo(e):gs(e),ms(e);var i=Ps(e);e.teardown=typeof i=="function"?i:null,e.wv=Ss;var s;An&&Va&&e.f&Qe&&e.deps}finally{Kt=n,te=r}}}function A(e){var t=e.f,r=(t&ke)!==0;if(z!==null&&!yt){var n=te!==null&&(te.f&Rt)!==0;if(!n&&!Ct?.includes(e)){var i=z.deps;if(z.f&Pn)e.rv<Jt&&(e.rv=Jt,tt===null&&i!==null&&i[ot]===e?ot++:tt===null?tt=[e]:tt.push(e));else{(z.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[z]:s.includes(z)||s.push(z)}}}if(Yt&&Xt.has(e))return Xt.get(e);if(r){var a=e;if(Yt){var o=a.v;return(!(a.f&je)&&a.reactions!==null||Hs(a))&&(o=Qn(a)),Xt.set(a,o),o}var u=(a.f&mt)===0&&!yt&&z!==null&&(Kt||(z.f&mt)!==0),f=a.deps===null;Rr(a)&&(u&&(a.f|=mt),rs(a)),u&&!f&&Ms(a)}if(gt?.has(e))return gt.get(e);if(e.f&Vt)throw e.v;return e.v}function Ms(e){if(e.deps!==null){e.f|=mt;for(const t of e.deps)(t.reactions??=[]).push(e),t.f&ke&&!(t.f&mt)&&Ms(t)}}function Hs(e){if(e.v===Ie)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Xt.has(t)||t.f&ke&&Hs(t))return!0;return!1}function hn(e){var t=yt;try{return yt=!0,e()}finally{yt=t}}const Os=new Set,$n=new Set;function $s(e){for(var t=0;t<e.length;t++)Os.add(e[t]);for(var r of $n)r(e)}let mi=null;function Dr(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;mi=e;var a=0,o=mi===e&&e.__root;if(o){var u=i.indexOf(o);if(u!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;u<=f&&(a=u)}if(s=i[a]||e.target,s!==t){Hr(e,"currentTarget",{configurable:!0,get(){return s||r}});var l=z,h=te;rt(null),Mt(null);try{for(var c,m=[];s!==null;){var w=s.assignedSlot||s.parentNode||s.host||null;try{var D=s["__"+n];D!=null&&(!s.disabled||e.target===s)&&D.call(s,e)}catch(v){c?m.push(v):c=v}if(e.cancelBubble||w===t||w===null)break;s=w}if(c){for(let v of m)queueMicrotask(()=>{throw v});throw c}}finally{e.__root=t,delete e.currentTarget,rt(l),Mt(h)}}}function Ns(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Pt(e,t){var r=te;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Ke(e,t){var r=(t&Sa)!==0,n=(t&Ta)!==0,i,s=!e.startsWith("<!>");return()=>{if(Z)return Pt(K,null),K;i===void 0&&(i=Ns(s?e:"<!>"+e),r||(i=bt(i)));var a=n||ss?document.importNode(i,!0):i.cloneNode(!0);if(r){var o=bt(a),u=a.lastChild;Pt(o,u)}else Pt(a,a);return a}}function co(e=""){if(!Z){var t=nt(e+"");return Pt(t,t),t}var r=K;return r.nodeType!==sn&&(r.before(r=nt()),Ve(r)),Pt(r,r),r}function Wt(){if(Z)return Pt(K,null),K;var e=document.createDocumentFragment(),t=document.createComment(""),r=nt();return e.append(t,r),Pt(t,r),e}function Te(e,t){if(Z){var r=te;(!(r.f&nn)||r.nodes.end===null)&&(r.nodes.end=K),vr();return}e!==null&&e.before(t)}const vo=["touchstart","touchmove"];function po(e){return vo.includes(e)}function Se(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Bs(e,t){return Ls(e,t)}function mo(e,t){On(),t.intro=t.intro??!1;const r=t.target,n=Z,i=K;try{for(var s=bt(r);s&&(s.nodeType!==sr||s.data!==Li);)s=Et(s);if(!s)throw tr;Lt(!0),Ve(s);const a=Ls(e,{...t,anchor:s});return Lt(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
-
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==tr&&console.warn("Failed to hydrate: ",a),t.recover===!1&&Ia(),On(),us(r),Lt(!1),Bs(e,t)}finally{Lt(n),Ve(i)}}const ur=new Map;function Ls(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){On();var o=new Set,u=h=>{for(var c=0;c<h.length;c++){var m=h[c];if(!o.has(m)){o.add(m);var w=po(m);t.addEventListener(m,Dr,{passive:w});var D=ur.get(m);D===void 0?(document.addEventListener(m,Dr,{passive:w}),ur.set(m,1)):ur.set(m,D+1)}}};u(rn(Os)),$n.add(u);var f=void 0,l=ao(()=>{var h=r??t.appendChild(nt());return Za(h,{pending:()=>{}},c=>{if(s){an({});var m=it;m.c=s}if(i&&(n.$$events=i),Z&&Pt(c,null),f=e(c,n)||{},Z&&(te.nodes.end=K,K===null||K.nodeType!==sr||K.data!==zn))throw Lr(),tr;s&&on()}),()=>{for(var c of o){t.removeEventListener(c,Dr);var m=ur.get(c);--m===0?(document.removeEventListener(c,Dr),ur.delete(c)):ur.set(c,m)}$n.delete(u),h!==r&&h.parentNode?.removeChild(h)}});return Nn.set(f,l),f}let Nn=new WeakMap;function go(e,t){const r=Nn.get(e);return r?(Nn.delete(e),r(t)):Promise.resolve()}class _o{anchor;#e=new Map;#t=new Map;#r=new Map;#s=new Set;#a=!0;constructor(t,r=!0){this.anchor=t,this.#a=r}#i=()=>{var t=xe;if(this.#e.has(t)){var r=this.#e.get(t),n=this.#t.get(r);if(n)ri(n),this.#s.delete(r);else{var i=this.#r.get(r);i&&(this.#t.set(r,i.effect),this.#r.delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,a]of this.#e){if(this.#e.delete(s),s===t)break;const o=this.#r.get(a);o&&(Je(o.effect),this.#r.delete(a))}for(const[s,a]of this.#t){if(s===r||this.#s.has(s))continue;const o=()=>{if(Array.from(this.#e.values()).includes(s)){var f=document.createDocumentFragment();xs(a,f),f.append(nt()),this.#r.set(s,{effect:a,fragment:f})}else Je(a);this.#s.delete(s),this.#t.delete(s)};this.#a||!n?(this.#s.add(s),Qt(a,o,!1)):o()}}};#n=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[n,i]of this.#r)r.includes(n)||(Je(i.effect),this.#r.delete(n))};ensure(t,r){var n=xe,i=ls();if(r&&!this.#t.has(t)&&!this.#r.has(t))if(i){var s=document.createDocumentFragment(),a=nt();s.append(a),this.#r.set(t,{effect:pt(()=>r(a)),fragment:s})}else this.#t.set(t,pt(()=>r(this.anchor)));if(this.#e.set(n,t),i){for(const[o,u]of this.#t)o===t?n.skipped_effects.delete(u):n.skipped_effects.add(u);for(const[o,u]of this.#r)o===t?n.skipped_effects.delete(u.effect):n.skipped_effects.add(u.effect);n.oncommit(this.#i),n.ondiscard(this.#n)}else Z&&(this.anchor=K),this.#i()}}function ni(e){it===null&&Gi(),Wr(()=>{const t=hn(e);if(typeof t=="function")return t})}function bo(e){it===null&&Gi(),ni(()=>()=>hn(e))}function Tt(e,t,r=!1){Z&&vr();var n=new _o(e),i=r?dr:0;function s(a,o){if(Z){const f=ji(e)===tn;if(a===f){var u=zr();Ve(u),n.anchor=u,Lt(!1),n.ensure(a,o),Lt(!0);return}}n.ensure(a,o)}ti(()=>{var a=!1;t((o,u=!0)=>{a=!0,s(u,o)}),a||s(!1,null)},i)}function Fr(e,t){return t}function yo(e,t,r){for(var n=[],i=t.length,s,a=t.length,o=0;o<i;o++){let h=t[o];Qt(h,()=>{if(s){if(s.pending.delete(h),s.done.add(h),s.pending.size===0){var c=e.outrogroups;Bn(rn(s.done)),c.delete(s),c.size===0&&(e.outrogroups=null)}}else a-=1},!1)}if(a===0){var u=n.length===0&&r!==null;if(u){var f=r,l=f.parentNode;us(l),l.append(f),e.items.clear()}Bn(t,!u)}else s={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(s)}function Bn(e,t=!0){for(var r=0;r<e.length;r++)Je(e[r],t)}var gi;function Ur(e,t,r,n,i,s=null){var a=e,o=new Map,u=(t&Bi)!==0;if(u){var f=e;a=Z?Ve(bt(f)):f.appendChild(nt())}Z&&vr();var l=null,h=to(()=>{var _=r();return Ri(_)?_:_==null?[]:rn(_)}),c,m=!0;function w(){v.fallback=l,Eo(v,c,a,t,n),l!==null&&(c.length===0?l.f&Bt?(l.f^=Bt,Ar(l,null,a)):ri(l):Qt(l,()=>{l=null}))}var D=ti(()=>{c=A(h);var _=c.length;let $=!1;if(Z){var S=ji(a)===tn;S!==(_===0)&&(a=zr(),Ve(a),Lt(!1),$=!0)}for(var L=new Set,U=xe,q=ls(),J=0;J<_;J+=1){Z&&K.nodeType===sr&&K.data===zn&&(a=K,$=!0,Lt(!1));var ie=c[J],se=n(ie,J),N=m?null:o.get(se);N?(N.v&&gr(N.v,ie),N.i&&gr(N.i,J),q&&U.skipped_effects.delete(N.e)):(N=xo(o,m?a:gi??=nt(),ie,se,J,i,t,r),m||(N.e.f|=Bt),o.set(se,N)),L.add(se)}if(_===0&&s&&!l&&(m?l=pt(()=>s(a)):(l=pt(()=>s(gi??=nt())),l.f|=Bt)),Z&&_>0&&Ve(zr()),!m)if(q){for(const[k,he]of o)L.has(k)||U.skipped_effects.add(he.e);U.oncommit(w),U.ondiscard(()=>{})}else w();$&&Lt(!0),A(h)}),v={effect:D,items:o,outrogroups:null,fallback:l};m=!1,Z&&(a=K)}function Eo(e,t,r,n,i){var s=(n&xa)!==0,a=t.length,o=e.items,u=e.effect.first,f,l=null,h,c=[],m=[],w,D,v,_;if(s)for(_=0;_<a;_+=1)w=t[_],D=i(w,_),v=o.get(D).e,v.f&Bt||(v.nodes?.a?.measure(),(h??=new Set).add(v));for(_=0;_<a;_+=1){if(w=t[_],D=i(w,_),v=o.get(D).e,e.outrogroups!==null)for(const N of e.outrogroups)N.pending.delete(v),N.done.delete(v);if(v.f&Bt)if(v.f^=Bt,v===u)Ar(v,null,r);else{var $=l?l.next:u;v===e.effect.last&&(e.effect.last=v.prev),v.prev&&(v.prev.next=v.next),v.next&&(v.next.prev=v.prev),Ut(e,l,v),Ut(e,v,$),Ar(v,$,r),l=v,c=[],m=[],u=l.next;continue}if(v.f&ut&&(ri(v),s&&(v.nodes?.a?.unfix(),(h??=new Set).delete(v))),v!==u){if(f!==void 0&&f.has(v)){if(c.length<m.length){var S=m[0],L;l=S.prev;var U=c[0],q=c[c.length-1];for(L=0;L<c.length;L+=1)Ar(c[L],S,r);for(L=0;L<m.length;L+=1)f.delete(m[L]);Ut(e,U.prev,q.next),Ut(e,l,U),Ut(e,q,S),u=S,l=q,_-=1,c=[],m=[]}else f.delete(v),Ar(v,u,r),Ut(e,v.prev,v.next),Ut(e,v,l===null?e.effect.first:l.next),Ut(e,l,v),l=v;continue}for(c=[],m=[];u!==null&&u!==v;)(f??=new Set).add(u),m.push(u),u=u.next;if(u===null)continue}v.f&Bt||c.push(v),l=v,u=v.next}if(e.outrogroups!==null){for(const N of e.outrogroups)N.pending.size===0&&(Bn(rn(N.done)),e.outrogroups?.delete(N));e.outrogroups.size===0&&(e.outrogroups=null)}if(u!==null||f!==void 0){var J=[];if(f!==void 0)for(v of f)v.f&ut||J.push(v);for(;u!==null;)!(u.f&ut)&&u!==e.fallback&&J.push(u),u=u.next;var ie=J.length;if(ie>0){var se=n&Bi&&a===0?r:null;if(s){for(_=0;_<ie;_+=1)J[_].nodes?.a?.measure();for(_=0;_<ie;_+=1)J[_].nodes?.a?.fix()}yo(e,J,se)}}s&&un(()=>{if(h!==void 0)for(v of h)v.nodes?.a?.apply()})}function xo(e,t,r,n,i,s,a,o){var u=a&ya?a&wa?nr(r):Kn(r,!1,!1):null,f=a&Ea?nr(i):null;return{v:u,i:f,e:pt(()=>(s(t,u??r,f??i,o),()=>{e.delete(n)}))}}function Ar(e,t,r){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end,s=t&&!(t.f&Bt)?t.nodes.start:r;n!==null;){var a=Et(n);if(s.before(n),n===i)return;n=a}}function Ut(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function wo(e,t,r=!1,n=!1,i=!1){var s=e,a="";ct(()=>{var o=te;if(a===(a=t()??"")){Z&&vr();return}if(o.nodes!==null&&(_s(o.nodes.start,o.nodes.end),o.nodes=null),a!==""){if(Z){K.data;for(var u=vr(),f=u;u!==null&&(u.nodeType!==sr||u.data!=="");)f=u,u=Et(u);if(u===null)throw Lr(),tr;Pt(K,f),s=Ve(u);return}var l=a+"";r?l=`<svg>${l}</svg>`:n&&(l=`<math>${l}</math>`);var h=Ns(l);if((r||n)&&(h=bt(h)),Pt(bt(h),h.lastChild),r||n)for(;bt(h);)s.before(bt(h));else s.before(h)}})}function Rs(e,t){oo(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function Cs(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=Cs(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function So(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Cs(e))&&(n&&(n+=" "),n+=t);return n}function Ds(e){return typeof e=="object"?So(e):e??""}const _i=[...`
|
|
3
|
-
\r\f \v\uFEFF`];function To(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,a=0;(a=n.indexOf(i,a))>=0;){var o=a+s;(a===0||_i.includes(n[a-1]))&&(o===n.length||_i.includes(n[o]))?n=(a===0?"":n.substring(0,a))+n.substring(o+1):a=o}}return n===""?null:n}function Ao(e,t){return e==null?null:String(e)}function Ln(e,t,r,n,i,s){var a=e.__className;if(Z||a!==r||a===void 0){var o=To(r,n,s);(!Z||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=r}else if(s&&i!==s)for(var u in s){var f=!!s[u];(i==null||f!==!!i[u])&&e.classList.toggle(u,f)}return s}function Po(e,t,r,n){var i=e.__style;if(Z||i!==t){var s=Ao(t);(!Z||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const Mo=Symbol("is custom element"),Ho=Symbol("is html");function Oo(e,t,r,n){var i=$o(e);Z&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Na]=r),r==null?e.removeAttribute(t):typeof r!="string"&&No(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function $o(e){return e.__attributes??={[Mo]:e.nodeName.includes("-"),[Ho]:e.namespaceURI===Aa}}var bi=new Map;function No(e){var t=e.getAttribute("is")||e.nodeName,r=bi.get(t);if(r)return r;bi.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=Ma(i);for(var a in n)n[a].set&&r.push(a);i=Ci(i)}return r}function ii(e,t,r){if(e==null)return t(void 0),r&&r(void 0),jt;const n=hn(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const lr=[];function Bo(e,t){return{subscribe:cn(e,t).subscribe}}function cn(e,t=jt){let r=null;const n=new Set;function i(o){if(Xi(e,o)&&(e=o,r)){const u=!lr.length;for(const f of n)f[1](),lr.push(f,e);if(u){for(let f=0;f<lr.length;f+=2)lr[f][0](lr[f+1]);lr.length=0}}}function s(o){i(o(e))}function a(o,u=jt){const f=[o,u];return n.add(f),n.size===1&&(r=t(i,s)||jt),o(e),()=>{n.delete(f),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:a}}function xr(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 Bo(r,(a,o)=>{let u=!1;const f=[];let l=0,h=jt;const c=()=>{if(l)return;h();const w=t(n?f[0]:f,a,o);s?a(w):h=typeof w=="function"?w:jt},m=i.map((w,D)=>ii(w,v=>{f[D]=v,l&=~(1<<D),u&&c()},()=>{l|=1<<D}));return u=!0,c(),function(){Di(m),h(),u=!1}})}function Lo(e){let t;return ii(e,r=>t=r)(),t}let Rn=Symbol();function Is(e,t,r){const n=r[t]??={store:null,source:Kn(void 0),unsubscribe:jt};if(n.store!==e&&!(Rn in r))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=jt;else{var i=!0;n.unsubscribe=ii(e,s=>{i?n.source.v=s:ge(n.source,s)}),i=!1}return e&&Rn in r?Lo(e):A(n.source)}function ks(){const e={};function t(){cs(()=>{for(var r in e)e[r].unsubscribe();Hr(e,Rn,{enumerable:!1,value:!0})})}return[e,t]}function Ze(e,t,r,n){var i=n,s=!0,a=()=>(s&&(s=!1,i=n),i),o;o=e[t],o===void 0&&n!==void 0&&(o=a());var u;u=()=>{var c=e[t];return c===void 0?a():(s=!0,c)};var f=!1,l=fn(()=>(f=!1,u())),h=te;return function(c,m){if(arguments.length>0){const w=m?A(l):c;return ge(l,w),f=!0,i!==void 0&&(i=w),c}return Yt&&f||h.f&Rt?l.v:A(l)}}function Ro(e){return new Co(e)}class Co{#e;#t;constructor(t){var r=new Map,n=(s,a)=>{var o=Kn(a,!1,!1);return r.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return A(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===$a?!0:(A(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,o){return ge(r.get(a)??n(a,o),o),Reflect.set(s,a,o)}});this.#t=(t.hydrate?mo:Bs)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&Ge(),this.#e=i.$$events;for(const s of Object.keys(this.#t))s==="$set"||s==="$destroy"||s==="$on"||Hr(this,s,{get(){return this.#t[s]},set(a){this.#t[s]=a},enumerable:!0});this.#t.$set=s=>{Object.assign(i,s)},this.#t.$destroy=()=>{go(this.#t)}}$set(t){this.#t.$set(t)}$on(t,r){this.#e[t]=this.#e[t]||[];const n=(...i)=>r.call(this,...i);return this.#e[t].push(n),()=>{this.#e[t]=this.#e[t].filter(i=>i!==n)}}$destroy(){this.#t.$destroy()}}let Fs;typeof HTMLElement=="function"&&(Fs=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(i){return s=>{const a=document.createElement("slot");i!=="default"&&(a.name=i),Te(s,a)}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=Do(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]=Gr(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=Ro({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=so(()=>{ps(()=>{this.$$r=!0;for(const i of Xr(this.$$c)){if(!this.$$p_d[i]?.reflect)continue;this.$$d[i]=this.$$c[i];const s=Gr(i,this.$$d[i],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,s)}this.$$r=!1})});for(const i in this.$$l)for(const s of this.$$l[i]){const a=this.$$c.$on(i,s);this.$$l_u.set(s,a)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Gr(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Xr(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Gr(e,t,r,n){const i=r[e]?.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;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 Do(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function si(e,t,r,n,i,s){let a=class extends Fs{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Xr(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Xr(t).forEach(o=>{Hr(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){u=Gr(o,u,t),this.$$d[o]=u;var f=this.$$c;if(f){var l=cr(f,o)?.get;l?f[o]=u:f.$set({[o]:u})}}})}),n.forEach(o=>{Hr(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}const Us=e=>{const t=new Headers;return e&&t.append("X-SessionId",e),t},Io=async e=>{const t=new URL(`${e.endpoint}/v1/tournaments/${e.tournamentid}`);return e.filterById&&t.searchParams.append("filter",`id=${e.tournamentid}`),t.searchParams.append("language",e.language),t.searchParams.append("expand","games"),e.gamesLimit!==void 0&&t.searchParams.append("pagination",`games(limit=${e.gamesLimit},offset=${e.gamesOffset??0})`),t.searchParams.append("platform",e.platform),(await(await fetch(t,{method:"GET",headers:Us(e.session)})).json())?.item};var dn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cn={exports:{}};/** @license
|
|
4
|
-
* eventsource.js
|
|
5
|
-
* Available under MIT License (MIT)
|
|
6
|
-
* https://github.com/Yaffle/EventSource/
|
|
7
|
-
*/(function(e,t){(function(r){var n=r.setTimeout,i=r.clearTimeout,s=r.XMLHttpRequest,a=r.XDomainRequest,o=r.ActiveXObject,u=r.EventSource,f=r.document,l=r.Promise,h=r.fetch,c=r.Response,m=r.TextDecoder,w=r.TextEncoder,D=r.AbortController;if(typeof window<"u"&&typeof f<"u"&&!("readyState"in f)&&f.body==null&&(f.readyState="loading",window.addEventListener("load",function(d){f.readyState="complete"},!1)),s==null&&o!=null&&(s=function(){return new o("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(d){function x(){}return x.prototype=d,new x}),Date.now||(Date.now=function(){return new Date().getTime()}),D==null){var v=h;h=function(d,x){var P=x.signal;return v(d,{headers:x.headers,credentials:x.credentials,cache:x.cache}).then(function(y){var I=y.body.getReader();return P._reader=I,P._aborted&&P._reader.cancel(),{status:y.status,statusText:y.statusText,headers:y.headers,body:{getReader:function(){return I}}}})},D=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function _(){this.bitsNeeded=0,this.codePoint=0}_.prototype.decode=function(d){function x(re,ue,p){if(p===1)return re>=128>>ue&&re<<ue<=2047;if(p===2)return re>=2048>>ue&&re<<ue<=55295||re>=57344>>ue&&re<<ue<=65535;if(p===3)return re>=65536>>ue&&re<<ue<=1114111;throw new Error}function P(re,ue){if(re===6*1)return ue>>6>15?3:ue>31?2:1;if(re===6*2)return ue>15?3:2;if(re===6*3)return 3;throw new Error}for(var y=65533,I="",O=this.bitsNeeded,G=this.codePoint,de=0;de<d.length;de+=1){var V=d[de];O!==0&&(V<128||V>191||!x(G<<6|V&63,O-6,P(O,G)))&&(O=0,G=y,I+=String.fromCharCode(G)),O===0?(V>=0&&V<=127?(O=0,G=V):V>=192&&V<=223?(O=6*1,G=V&31):V>=224&&V<=239?(O=6*2,G=V&15):V>=240&&V<=247?(O=6*3,G=V&7):(O=0,G=y),O!==0&&!x(G,O,P(O,G))&&(O=0,G=y)):(O-=6,G=G<<6|V&63),O===0&&(G<=65535?I+=String.fromCharCode(G):(I+=String.fromCharCode(55296+(G-65535-1>>10)),I+=String.fromCharCode(56320+(G-65535-1&1023))))}return this.bitsNeeded=O,this.codePoint=G,I};var $=function(){try{return new m().decode(new w().encode("test"),{stream:!0})==="test"}catch(d){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+d)}return!1};(m==null||w==null||!$())&&(m=_);var S=function(){};function L(d){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=S,this.onload=S,this.onerror=S,this.onreadystatechange=S,this._contentType="",this._xhr=d,this._sendTimeout=0,this._abort=S}L.prototype.open=function(d,x){this._abort(!0);var P=this,y=this._xhr,I=1,O=0;this._abort=function(p){P._sendTimeout!==0&&(i(P._sendTimeout),P._sendTimeout=0),(I===1||I===2||I===3)&&(I=4,y.onload=S,y.onerror=S,y.onabort=S,y.onprogress=S,y.onreadystatechange=S,y.abort(),O!==0&&(i(O),O=0),p||(P.readyState=4,P.onabort(null),P.onreadystatechange())),I=0};var G=function(){if(I===1){var p=0,R="",F=void 0;if("contentType"in y)p=200,R="OK",F=y.contentType;else try{p=y.status,R=y.statusText,F=y.getResponseHeader("Content-Type")}catch{p=0,R="",F=void 0}p!==0&&(I=2,P.readyState=2,P.status=p,P.statusText=R,P._contentType=F,P.onreadystatechange())}},de=function(){if(G(),I===2||I===3){I=3;var p="";try{p=y.responseText}catch{}P.readyState=3,P.responseText=p,P.onprogress()}},V=function(p,R){if((R==null||R.preventDefault==null)&&(R={preventDefault:S}),de(),I===1||I===2||I===3){if(I=4,O!==0&&(i(O),O=0),P.readyState=4,p==="load")P.onload(R);else if(p==="error")P.onerror(R);else if(p==="abort")P.onabort(R);else throw new TypeError;P.onreadystatechange()}},re=function(p){y!=null&&(y.readyState===4?(!("onload"in y)||!("onerror"in y)||!("onabort"in y))&&V(y.responseText===""?"error":"load",p):y.readyState===3?"onprogress"in y||de():y.readyState===2&&G())},ue=function(){O=n(function(){ue()},500),y.readyState===3&&de()};"onload"in y&&(y.onload=function(p){V("load",p)}),"onerror"in y&&(y.onerror=function(p){V("error",p)}),"onabort"in y&&(y.onabort=function(p){V("abort",p)}),"onprogress"in y&&(y.onprogress=de),"onreadystatechange"in y&&(y.onreadystatechange=function(p){re(p)}),("contentType"in y||!("ontimeout"in s.prototype))&&(x+=(x.indexOf("?")===-1?"?":"&")+"padding=true"),y.open(d,x,!0),"readyState"in y&&(O=n(function(){ue()},0))},L.prototype.abort=function(){this._abort(!1)},L.prototype.getResponseHeader=function(d){return this._contentType},L.prototype.setRequestHeader=function(d,x){var P=this._xhr;"setRequestHeader"in P&&P.setRequestHeader(d,x)},L.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},L.prototype.send=function(){if((!("ontimeout"in s.prototype)||!("sendAsBinary"in s.prototype)&&!("mozAnon"in s.prototype))&&f!=null&&f.readyState!=null&&f.readyState!=="complete"){var d=this;d._sendTimeout=n(function(){d._sendTimeout=0,d.send()},4);return}var x=this._xhr;"withCredentials"in x&&(x.withCredentials=this.withCredentials);try{x.send(void 0)}catch(P){throw P}};function U(d){return d.replace(/[A-Z]/g,function(x){return String.fromCharCode(x.charCodeAt(0)+32)})}function q(d){for(var x=Object.create(null),P=d.split(`\r
|
|
8
|
-
`),y=0;y<P.length;y+=1){var I=P[y],O=I.split(": "),G=O.shift(),de=O.join(": ");x[U(G)]=de}this._map=x}q.prototype.get=function(d){return this._map[U(d)]},s!=null&&s.HEADERS_RECEIVED==null&&(s.HEADERS_RECEIVED=2);function J(){}J.prototype.open=function(d,x,P,y,I,O,G){d.open("GET",I);var de=0;d.onprogress=function(){var re=d.responseText,ue=re.slice(de);de+=ue.length,P(ue)},d.onerror=function(re){re.preventDefault(),y(new Error("NetworkError"))},d.onload=function(){y(null)},d.onabort=function(){y(null)},d.onreadystatechange=function(){if(d.readyState===s.HEADERS_RECEIVED){var re=d.status,ue=d.statusText,p=d.getResponseHeader("Content-Type"),R=d.getAllResponseHeaders();x(re,ue,p,new q(R))}},d.withCredentials=O;for(var V in G)Object.prototype.hasOwnProperty.call(G,V)&&d.setRequestHeader(V,G[V]);return d.send(),d};function ie(d){this._headers=d}ie.prototype.get=function(d){return this._headers.get(d)};function se(){}se.prototype.open=function(d,x,P,y,I,O,G){var de=null,V=new D,re=V.signal,ue=new m;return h(I,{headers:G,credentials:O?"include":"same-origin",signal:re,cache:"no-store"}).then(function(p){return de=p.body.getReader(),x(p.status,p.statusText,p.headers.get("Content-Type"),new ie(p.headers)),new l(function(R,F){var Ne=function(){de.read().then(function(_e){if(_e.done)R(void 0);else{var ee=ue.decode(_e.value,{stream:!0});P(ee),Ne()}}).catch(function(_e){F(_e)})};Ne()})}).catch(function(p){if(p.name!=="AbortError")return p}).then(function(p){y(p)}),{abort:function(){de?.cancel(),V.abort()}}};function N(){this._listeners=Object.create(null)}function k(d){n(function(){throw d},0)}N.prototype.dispatchEvent=function(d){d.target=this;var x=this._listeners[d.type];if(x!=null)for(var P=x.length,y=0;y<P;y+=1){var I=x[y];try{typeof I.handleEvent=="function"?I.handleEvent(d):I.call(this,d)}catch(O){k(O)}}},N.prototype.addEventListener=function(d,x){d=String(d);var P=this._listeners,y=P[d];y==null&&(y=[],P[d]=y);for(var I=!1,O=0;O<y.length;O+=1)y[O]===x&&(I=!0);I||y.push(x)},N.prototype.removeEventListener=function(d,x){d=String(d);var P=this._listeners,y=P[d];if(y!=null){for(var I=[],O=0;O<y.length;O+=1)y[O]!==x&&I.push(y[O]);I.length===0?delete P[d]:P[d]=I}};function he(d){this.type=d,this.target=void 0}function Me(d,x){he.call(this,d),this.data=x.data,this.lastEventId=x.lastEventId}Me.prototype=Object.create(he.prototype);function M(d,x){he.call(this,d),this.status=x.status,this.statusText=x.statusText,this.headers=x.headers}M.prototype=Object.create(he.prototype);function E(d,x){he.call(this,d),this.error=x.error}E.prototype=Object.create(he.prototype);var g=-1,T=0,b=1,H=2,B=-1,C=0,Q=1,ne=2,ye=3,$e=/^text\/event\-stream(;.*)?$/i,lt=1e3,et=18e6,Xe=function(d,x){var P=d==null?x:parseInt(d,10);return P!==P&&(P=x),Ce(P)},Ce=function(d){return Math.min(Math.max(d,lt),et)},oe=function(d,x,P){try{typeof x=="function"&&x.call(d,P)}catch(y){k(y)}};function ce(d,x){N.call(this),x=x||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,wt(this,d,x)}function Ye(){return s!=null&&"withCredentials"in s.prototype||a==null?new s:new a}var ft=h!=null&&c!=null&&"body"in c.prototype;function wt(d,x,P){x=String(x);var y=!!P.withCredentials,I=P.lastEventIdQueryParameterName||"lastEventId",O=Ce(1e3),G=Xe(P.heartbeatTimeout,45e3),de="",V=O,re=!1,ue=0,p=P.headers||{},R=P.Transport,F=ft&&R==null?void 0:new L(R!=null?new R:Ye()),Ne=R!=null&&typeof R!="string"?new R:F==null?new se:new J,_e=void 0,ee=0,Ee=g,Pe="",Be="",ve="",ze="",pe=C,Ot=0,fe=0,He=function(ae,le,De,qe){if(Ee===T)if(ae===200&&De!=null&&$e.test(De)){Ee=b,re=Date.now(),V=O,d.readyState=b;var we=new M("open",{status:ae,statusText:le,headers:qe});d.dispatchEvent(we),oe(d,d.onopen,we)}else{var me="";ae!==200?(le&&(le=le.replace(/\s+/g," ")),me="EventSource's response has a status "+ae+" "+le+" that is not 200. Aborting the connection."):me="EventSource's response has a Content-Type specifying an unsupported type: "+(De==null?"-":De.replace(/\s+/g," "))+". Aborting the connection.",ht();var we=new M("error",{status:ae,statusText:le,headers:qe});d.dispatchEvent(we),oe(d,d.onerror,we),console.error(me)}},Fe=function(ae){if(Ee===b){for(var le=-1,De=0;De<ae.length;De+=1){var qe=ae.charCodeAt(De);(qe===10||qe===13)&&(le=De)}var we=(le!==-1?ze:"")+ae.slice(0,le+1);ze=(le===-1?ze:"")+ae.slice(le+1),ae!==""&&(re=Date.now(),ue+=ae.length);for(var me=0;me<we.length;me+=1){var qe=we.charCodeAt(me);if(pe===B&&qe===10)pe=C;else if(pe===B&&(pe=C),qe===13||qe===10){if(pe!==C){pe===Q&&(fe=me+1);var st=we.slice(Ot,fe-1),at=we.slice(fe+(fe<me&&we.charCodeAt(fe)===32?1:0),me);st==="data"?(Pe+=`
|
|
9
|
-
`,Pe+=at):st==="id"?Be=at:st==="event"?ve=at:st==="retry"?(O=Xe(at,O),V=O):st==="heartbeatTimeout"&&(G=Xe(at,G),ee!==0&&(i(ee),ee=n(function(){Ue()},G)))}if(pe===C){if(Pe!==""){de=Be,ve===""&&(ve="message");var or=new Me(ve,{data:Pe.slice(1),lastEventId:Be});if(d.dispatchEvent(or),ve==="open"?oe(d,d.onopen,or):ve==="message"?oe(d,d.onmessage,or):ve==="error"&&oe(d,d.onerror,or),Ee===H)return}Pe="",ve=""}pe=qe===13?B:C}else pe===C&&(Ot=me,pe=Q),pe===Q?qe===58&&(fe=me+1,pe=ne):pe===ne&&(pe=ye)}}},St=function(ae){if(Ee===b||Ee===T){Ee=g,ee!==0&&(i(ee),ee=0),ee=n(function(){Ue()},V),V=Ce(Math.min(O*16,V*2)),d.readyState=T;var le=new E("error",{error:ae});d.dispatchEvent(le),oe(d,d.onerror,le),ae!=null&&console.error(ae)}},ht=function(){Ee=H,_e!=null&&(_e.abort(),_e=void 0),ee!==0&&(i(ee),ee=0),d.readyState=H},Ue=function(){if(ee=0,Ee!==g){if(!re&&_e!=null)St(new Error("No activity within "+G+" milliseconds. "+(Ee===T?"No response received.":ue+" chars received.")+" Reconnecting.")),_e!=null&&(_e.abort(),_e=void 0);else{var ae=Math.max((re||Date.now())+G-Date.now(),1);re=!1,ee=n(function(){Ue()},ae)}return}re=!1,ue=0,ee=n(function(){Ue()},G),Ee=T,Pe="",ve="",Be=de,ze="",Ot=0,fe=0,pe=C;var le=x;if(x.slice(0,5)!=="data:"&&x.slice(0,5)!=="blob:"&&de!==""){var De=x.indexOf("?");le=De===-1?x:x.slice(0,De+1)+x.slice(De+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(at,or){return or===I?"":at}),le+=(x.indexOf("?")===-1?"?":"&")+I+"="+encodeURIComponent(de)}var qe=d.withCredentials,we={};we.Accept="text/event-stream";var me=d.headers;if(me!=null)for(var st in me)Object.prototype.hasOwnProperty.call(me,st)&&(we[st]=me[st]);try{_e=Ne.open(F,He,Fe,St,le,qe,we)}catch(at){throw ht(),at}};d.url=x,d.readyState=T,d.withCredentials=y,d.headers=p,d._close=ht,Ue()}ce.prototype=Object.create(N.prototype),ce.prototype.CONNECTING=T,ce.prototype.OPEN=b,ce.prototype.CLOSED=H,ce.prototype.close=function(){this._close()},ce.CONNECTING=T,ce.OPEN=b,ce.CLOSED=H,ce.prototype.withCredentials=void 0;var Ht=u;s!=null&&(u==null||!("withCredentials"in u.prototype))&&(Ht=ce),function(d){{var x=d(t);x!==void 0&&(e.exports=x)}}(function(d){d.EventSourcePolyfill=ce,d.NativeEventSource=u,d.EventSource=Ht})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:dn:globalThis)})(Cn,Cn.exports);var ko=Cn.exports;const Fo=async e=>{const t=new URL(`${e.endpoint}/v1/tournaments/${e.tournamentid}/leaderboard`);t.searchParams.append("language",e.language),t.searchParams.append("platform",e.platform),t.searchParams.append("pagination",`offset=${e.offset},limit=${e.limit}`);const n=await(await fetch(t)).json();return{items:n?.items,total:n?.total}},Uo=async e=>{const t=new URL(`${e.endpoint}/v1/tournaments/leaderboard/player`);t.searchParams.append("language",e.language),t.searchParams.append("platform",e.platform),t.searchParams.append("filter","includeUnqualifiedPlayer=false");const i=(await(await fetch(t,{method:"GET",headers:Us(e.session)})).json())?.items?.find(s=>s?.tournament?.id===e.tournamentid);return{playerData:i?.tournament?.leaderBoard,endRank:i?.endRank,playerEnrolled:i?.tournament?.playerEnrolled}},Go=(e,t)=>{const r=new URL(`${e.endpoint}/v1/tournaments/${e.tournamentid}/leaderboard/updates`);r.searchParams.append("HeartBeat","false"),r.searchParams.append("language",e.language),r.searchParams.append("filter","includeUnqualifiedPlayer=true"),r.searchParams.append("pagination",`offset=${e.offset},limit=${e.limit}`),r.searchParams.append("platform",e.platform);const n=new ko.EventSourcePolyfill(r,{headers:{accept:"text/event-stream","X-SessionId":e.session}});return n.onmessage=i=>{const s=JSON.parse(i.data);s&&s.messageType==="LeaderBoardUpdate"&&t(s?.items)},n},jo=async e=>{const t=new URL(`${e.endpoint}/v1/bonus/claim`);t.searchParams.append("language",e.language),t.searchParams.append("platform",e.platform);const r=new Headers;r.append("Content-Type","application/json"),r.append("X-SessionID",e.session);let n={};return e.tournament.wallets&&e.tournament.wallets.length>0&&(n={language:e.language,bonusCode:e.tournament.wallets[0].code,currency:e.tournament.baseCurrency,type:"tournament"}),await(await fetch(t,{method:"PUT",headers:r,body:JSON.stringify(n)})).json()},Vo=async e=>await(await fetch(`${e.endpoint}/tournaments/${e.tournamentid}`,{headers:{"X-SessionID":e.session}})).json(),Xo=async e=>{const t=await jo(e);if(!t)return{enrolled:!1};if(t.success==!0)return{enrolled:!0};if(t.errorMessage&&t.errorMessage.match("VersionMismatchException")){const r=await Vo({endpoint:e.endpoint,tournamentid:e.tournament.id,session:e.session});return r?.item?.playerEnrolled?{enrolled:!0}:{enrolled:!1,errorMessage:r?.errorMessage}}return{enrolled:!1}};var Gs={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(dn,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",a="second",o="minute",u="hour",f="day",l="week",h="month",c="quarter",m="year",w="date",D="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(M){var E=["th","st","nd","rd"],g=M%100;return"["+M+(E[(g-20)%10]||E[g]||E[0])+"]"}},S=function(M,E,g){var T=String(M);return!T||T.length>=E?M:""+Array(E+1-T.length).join(g)+M},L={s:S,z:function(M){var E=-M.utcOffset(),g=Math.abs(E),T=Math.floor(g/60),b=g%60;return(E<=0?"+":"-")+S(T,2,"0")+":"+S(b,2,"0")},m:function M(E,g){if(E.date()<g.date())return-M(g,E);var T=12*(g.year()-E.year())+(g.month()-E.month()),b=E.clone().add(T,h),H=g-b<0,B=E.clone().add(T+(H?-1:1),h);return+(-(T+(g-b)/(H?b-B:B-b))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:h,y:m,w:l,d:f,D:w,h:u,m:o,s:a,ms:s,Q:c}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},U="en",q={};q[U]=$;var J="$isDayjsObject",ie=function(M){return M instanceof he||!(!M||!M[J])},se=function M(E,g,T){var b;if(!E)return U;if(typeof E=="string"){var H=E.toLowerCase();q[H]&&(b=H),g&&(q[H]=g,b=H);var B=E.split("-");if(!b&&B.length>1)return M(B[0])}else{var C=E.name;q[C]=E,b=C}return!T&&b&&(U=b),b||!T&&U},N=function(M,E){if(ie(M))return M.clone();var g=typeof E=="object"?E:{};return g.date=M,g.args=arguments,new he(g)},k=L;k.l=se,k.i=ie,k.w=function(M,E){return N(M,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var he=function(){function M(g){this.$L=se(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[J]=!0}var E=M.prototype;return E.parse=function(g){this.$d=function(T){var b=T.date,H=T.utc;if(b===null)return new Date(NaN);if(k.u(b))return new Date;if(b instanceof Date)return new Date(b);if(typeof b=="string"&&!/Z$/i.test(b)){var B=b.match(v);if(B){var C=B[2]-1||0,Q=(B[7]||"0").substring(0,3);return H?new Date(Date.UTC(B[1],C,B[3]||1,B[4]||0,B[5]||0,B[6]||0,Q)):new Date(B[1],C,B[3]||1,B[4]||0,B[5]||0,B[6]||0,Q)}}return new Date(b)}(g),this.init()},E.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},E.$utils=function(){return k},E.isValid=function(){return this.$d.toString()!==D},E.isSame=function(g,T){var b=N(g);return this.startOf(T)<=b&&b<=this.endOf(T)},E.isAfter=function(g,T){return N(g)<this.startOf(T)},E.isBefore=function(g,T){return this.endOf(T)<N(g)},E.$g=function(g,T,b){return k.u(g)?this[T]:this.set(b,g)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(g,T){var b=this,H=!!k.u(T)||T,B=k.p(g),C=function(Ce,oe){var ce=k.w(b.$u?Date.UTC(b.$y,oe,Ce):new Date(b.$y,oe,Ce),b);return H?ce:ce.endOf(f)},Q=function(Ce,oe){return k.w(b.toDate()[Ce].apply(b.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(oe)),b)},ne=this.$W,ye=this.$M,$e=this.$D,lt="set"+(this.$u?"UTC":"");switch(B){case m:return H?C(1,0):C(31,11);case h:return H?C(1,ye):C(0,ye+1);case l:var et=this.$locale().weekStart||0,Xe=(ne<et?ne+7:ne)-et;return C(H?$e-Xe:$e+(6-Xe),ye);case f:case w:return Q(lt+"Hours",0);case u:return Q(lt+"Minutes",1);case o:return Q(lt+"Seconds",2);case a:return Q(lt+"Milliseconds",3);default:return this.clone()}},E.endOf=function(g){return this.startOf(g,!1)},E.$set=function(g,T){var b,H=k.p(g),B="set"+(this.$u?"UTC":""),C=(b={},b[f]=B+"Date",b[w]=B+"Date",b[h]=B+"Month",b[m]=B+"FullYear",b[u]=B+"Hours",b[o]=B+"Minutes",b[a]=B+"Seconds",b[s]=B+"Milliseconds",b)[H],Q=H===f?this.$D+(T-this.$W):T;if(H===h||H===m){var ne=this.clone().set(w,1);ne.$d[C](Q),ne.init(),this.$d=ne.set(w,Math.min(this.$D,ne.daysInMonth())).$d}else C&&this.$d[C](Q);return this.init(),this},E.set=function(g,T){return this.clone().$set(g,T)},E.get=function(g){return this[k.p(g)]()},E.add=function(g,T){var b,H=this;g=Number(g);var B=k.p(T),C=function(ye){var $e=N(H);return k.w($e.date($e.date()+Math.round(ye*g)),H)};if(B===h)return this.set(h,this.$M+g);if(B===m)return this.set(m,this.$y+g);if(B===f)return C(1);if(B===l)return C(7);var Q=(b={},b[o]=n,b[u]=i,b[a]=r,b)[B]||1,ne=this.$d.getTime()+g*Q;return k.w(ne,this)},E.subtract=function(g,T){return this.add(-1*g,T)},E.format=function(g){var T=this,b=this.$locale();if(!this.isValid())return b.invalidDate||D;var H=g||"YYYY-MM-DDTHH:mm:ssZ",B=k.z(this),C=this.$H,Q=this.$m,ne=this.$M,ye=b.weekdays,$e=b.months,lt=b.meridiem,et=function(oe,ce,Ye,ft){return oe&&(oe[ce]||oe(T,H))||Ye[ce].slice(0,ft)},Xe=function(oe){return k.s(C%12||12,oe,"0")},Ce=lt||function(oe,ce,Ye){var ft=oe<12?"AM":"PM";return Ye?ft.toLowerCase():ft};return H.replace(_,function(oe,ce){return ce||function(Ye){switch(Ye){case"YY":return String(T.$y).slice(-2);case"YYYY":return k.s(T.$y,4,"0");case"M":return ne+1;case"MM":return k.s(ne+1,2,"0");case"MMM":return et(b.monthsShort,ne,$e,3);case"MMMM":return et($e,ne);case"D":return T.$D;case"DD":return k.s(T.$D,2,"0");case"d":return String(T.$W);case"dd":return et(b.weekdaysMin,T.$W,ye,2);case"ddd":return et(b.weekdaysShort,T.$W,ye,3);case"dddd":return ye[T.$W];case"H":return String(C);case"HH":return k.s(C,2,"0");case"h":return Xe(1);case"hh":return Xe(2);case"a":return Ce(C,Q,!0);case"A":return Ce(C,Q,!1);case"m":return String(Q);case"mm":return k.s(Q,2,"0");case"s":return String(T.$s);case"ss":return k.s(T.$s,2,"0");case"SSS":return k.s(T.$ms,3,"0");case"Z":return B}return null}(oe)||B.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(g,T,b){var H,B=this,C=k.p(T),Q=N(g),ne=(Q.utcOffset()-this.utcOffset())*n,ye=this-Q,$e=function(){return k.m(B,Q)};switch(C){case m:H=$e()/12;break;case h:H=$e();break;case c:H=$e()/3;break;case l:H=(ye-ne)/6048e5;break;case f:H=(ye-ne)/864e5;break;case u:H=ye/i;break;case o:H=ye/n;break;case a:H=ye/r;break;default:H=ye}return b?H:k.a(H)},E.daysInMonth=function(){return this.endOf(h).$D},E.$locale=function(){return q[this.$L]},E.locale=function(g,T){if(!g)return this.$L;var b=this.clone(),H=se(g,T,!0);return H&&(b.$L=H),b},E.clone=function(){return k.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},M}(),Me=he.prototype;return N.prototype=Me,[["$ms",s],["$s",a],["$m",o],["$H",u],["$W",f],["$M",h],["$y",m],["$D",w]].forEach(function(M){Me[M[1]]=function(E){return this.$g(E,M[0],M[1])}}),N.extend=function(M,E){return M.$i||(M(E,he,N),M.$i=!0),N},N.locale=se,N.isDayjs=ie,N.unix=function(M){return N(1e3*M)},N.en=q[U],N.Ls=q,N.p={},N})})(Gs);var Yo=Gs.exports;const ai=vn(Yo);var js={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(dn,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/,a=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,u={},f=function(v){return(v=+v)+(v>68?1900:2e3)},l=function(v){return function(_){this[v]=+_}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(_){if(!_||_==="Z")return 0;var $=_.match(/([+-]|\d\d)/g),S=60*$[1]+(+$[2]||0);return S===0?0:$[0]==="+"?-S:S}(v)}],c=function(v){var _=u[v];return _&&(_.indexOf?_:_.s.concat(_.f))},m=function(v,_){var $,S=u.meridiem;if(S){for(var L=1;L<=24;L+=1)if(v.indexOf(S(L,0,_))>-1){$=L>12;break}}else $=v===(_?"pm":"PM");return $},w={A:[o,function(v){this.afternoon=m(v,!1)}],a:[o,function(v){this.afternoon=m(v,!0)}],Q:[i,function(v){this.month=3*(v-1)+1}],S:[i,function(v){this.milliseconds=100*+v}],SS:[s,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,l("seconds")],ss:[a,l("seconds")],m:[a,l("minutes")],mm:[a,l("minutes")],H:[a,l("hours")],h:[a,l("hours")],HH:[a,l("hours")],hh:[a,l("hours")],D:[a,l("day")],DD:[s,l("day")],Do:[o,function(v){var _=u.ordinal,$=v.match(/\d+/);if(this.day=$[0],_)for(var S=1;S<=31;S+=1)_(S).replace(/\[|\]/g,"")===v&&(this.day=S)}],w:[a,l("week")],ww:[s,l("week")],M:[a,l("month")],MM:[s,l("month")],MMM:[o,function(v){var _=c("months"),$=(c("monthsShort")||_.map(function(S){return S.slice(0,3)})).indexOf(v)+1;if($<1)throw new Error;this.month=$%12||$}],MMMM:[o,function(v){var _=c("months").indexOf(v)+1;if(_<1)throw new Error;this.month=_%12||_}],Y:[/[+-]?\d+/,l("year")],YY:[s,function(v){this.year=f(v)}],YYYY:[/\d{4}/,l("year")],Z:h,ZZ:h};function D(v){var _,$;_=v,$=u&&u.formats;for(var S=(v=_.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(N,k,he){var Me=he&&he.toUpperCase();return k||$[he]||r[he]||$[Me].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(M,E,g){return E||g.slice(1)})})).match(n),L=S.length,U=0;U<L;U+=1){var q=S[U],J=w[q],ie=J&&J[0],se=J&&J[1];S[U]=se?{regex:ie,parser:se}:q.replace(/^\[|\]$/g,"")}return function(N){for(var k={},he=0,Me=0;he<L;he+=1){var M=S[he];if(typeof M=="string")Me+=M.length;else{var E=M.regex,g=M.parser,T=N.slice(Me),b=E.exec(T)[0];g.call(k,b),N=N.replace(b,"")}}return function(H){var B=H.afternoon;if(B!==void 0){var C=H.hours;B?C<12&&(H.hours+=12):C===12&&(H.hours=0),delete H.afternoon}}(k),k}}return function(v,_,$){$.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(f=v.parseTwoDigitYear);var S=_.prototype,L=S.parse;S.parse=function(U){var q=U.date,J=U.utc,ie=U.args;this.$u=J;var se=ie[1];if(typeof se=="string"){var N=ie[2]===!0,k=ie[3]===!0,he=N||k,Me=ie[2];k&&(Me=ie[2]),u=this.$locale(),!N&&Me&&(u=$.Ls[Me]),this.$d=function(T,b,H,B){try{if(["x","X"].indexOf(b)>-1)return new Date((b==="X"?1e3:1)*T);var C=D(b)(T),Q=C.year,ne=C.month,ye=C.day,$e=C.hours,lt=C.minutes,et=C.seconds,Xe=C.milliseconds,Ce=C.zone,oe=C.week,ce=new Date,Ye=ye||(Q||ne?1:ce.getDate()),ft=Q||ce.getFullYear(),wt=0;Q&&!ne||(wt=ne>0?ne-1:ce.getMonth());var Ht,d=$e||0,x=lt||0,P=et||0,y=Xe||0;return Ce?new Date(Date.UTC(ft,wt,Ye,d,x,P,y+60*Ce.offset*1e3)):H?new Date(Date.UTC(ft,wt,Ye,d,x,P,y)):(Ht=new Date(ft,wt,Ye,d,x,P,y),oe&&(Ht=B(Ht).week(oe).toDate()),Ht)}catch{return new Date("")}}(q,se,J,$),this.init(),Me&&Me!==!0&&(this.$L=this.locale(Me).$L),he&&q!=this.format(se)&&(this.$d=new Date("")),u={}}else if(se instanceof Array)for(var M=se.length,E=1;E<=M;E+=1){ie[1]=se[E-1];var g=$.apply(this,ie);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}E===M&&(this.$d=new Date(""))}else L.call(this,U)}}})})(js);var zo=js.exports;const qo=vn(zo);ai.extend(qo);const Wo=e=>ai(e).format("MMMM D, HH:mm"),Zo=()=>typeof window>"u";class Jo{constructor(){}static processMinMax(t,r){return{minValue:t?`: ${t}`:null,maxValue:r?`: ${r}`:null}}static generateCasinoRule(t,r){const n=` ~ ${t("unlimited")}`,i=r.currency||"EUR",s=r.minStake?.amount[i]?`: ${r.minStake.amount[i]} ${i}`:n,a=r.maxStake?.amount[i]?`: ${r.maxStake.amount[i]} ${i}`:n;return t("casinoRuleMinMaxBet",{values:{minBet:s,maxBet:a}})}static generateSportsRule(t,r){const n=[],i=` ~ ${t("unlimited")}`,s=r.currency||"EUR",a=r.minStake?.amount[s]?`: ${r.minStake.amount[s]} ${s}`:i,o=r.maxStake?.amount[s]?`: ${r.maxStake.amount[s]} ${s}`:i;n.push(t("sportsRuleMinMaxBet",{values:{sportMinBet:a,sportMaxBet:o}}));const u=r.config.liveMatch==="true",f=r.config.preLiveMatch==="true";u&&f?n.push(t("matchTypePreAndLive")):u?n.push(`${t("matchTypeLive")}`):f&&n.push(`${t("matchTyppePre")}`);const l=r.combination,h=[];l.single.isEligible&&h.push(t("betTypeSingle"));const m={null:t("typeOfSelectionAny"),true:t("bankerOnly"),false:t("nonBankerOnly")},w={unspecific:t("typeOfSelectionAny"),all:t("betBuilderOnly"),none:t("notBuilderOnly")};let D="",v="";const _=`${t("oddsPerSelection")}: ${r.config.minOdds||t("unlimited")} - ${r.config.maxOdds||t("unlimited")}`,$=l.system.isEligible,S=l.multiple.isEligible;$&&(D=` ${t("betTypeSystem")}
|
|
10
|
-
( ${t("typeOfSelection")}: ${m[r.combination.system.banker?.include?.toString()||"null"]},
|
|
11
|
-
${t("numberOfSelection")}:
|
|
12
|
-
${l.system.minSelection?.number||t("unlimited")} - ${l.system.maxSelection?.number||t("unlimited")},
|
|
13
|
-
${_} ) `),S&&(v=` ${t("betTypeMultiple")}
|
|
14
|
-
( ${t("typeOfSelection")}: ${w[r.combination.multiple.betBuilder?.mode?.toString()||"unspecific"]},
|
|
15
|
-
${t("numberOfSelection")}:
|
|
16
|
-
${l.multiple.minSelection?.number||t("unlimited")} - ${l.multiple.maxSelection?.number||t("unlimited")},
|
|
17
|
-
${_} ) `),$&&S?h.push(v+t("and")+D):$?h.push(D):S&&h.push(v),n.push(h.join(", "));const L=r.config.minTotalOdds?`: ${r.config.minTotalOdds}`:i,U=r.config.maxTotalOdds?`: ${r.config.maxTotalOdds}`:i;return n.push(`${t("sportsRuleMinMaxOdds",{values:{sportMinOdds:L,sportMaxOdds:U}})}`),n}}var Qo=function(t){return Ko(t)&&!eu(t)};function Ko(e){return!!e&&typeof e=="object"}function eu(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||nu(e)}var tu=typeof Symbol=="function"&&Symbol.for,ru=tu?Symbol.for("react.element"):60103;function nu(e){return e.$$typeof===ru}function iu(e){return Array.isArray(e)?[]:{}}function $r(e,t){return t.clone!==!1&&t.isMergeableObject(e)?_r(iu(e),e,t):e}function su(e,t,r){return e.concat(t).map(function(n){return $r(n,r)})}function au(e,t){if(!t.customMerge)return _r;var r=t.customMerge(e);return typeof r=="function"?r:_r}function ou(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function yi(e){return Object.keys(e).concat(ou(e))}function Vs(e,t){try{return t in e}catch{return!1}}function uu(e,t){return Vs(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function lu(e,t,r){var n={};return r.isMergeableObject(e)&&yi(e).forEach(function(i){n[i]=$r(e[i],r)}),yi(t).forEach(function(i){uu(e,i)||(Vs(e,i)&&r.isMergeableObject(t[i])?n[i]=au(i,r)(e[i],t[i],r):n[i]=$r(t[i],r))}),n}function _r(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||su,r.isMergeableObject=r.isMergeableObject||Qo,r.cloneUnlessOtherwiseSpecified=$r;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):lu(e,t,r):$r(t,r)}_r.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return _r(n,i,r)},{})};var fu=_r,hu=fu;const cu=vn(hu);var Dn=function(e,t){return Dn=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])},Dn(e,t)};function pn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Dn(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var At=function(){return At=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},At.apply(this,arguments)};function du(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 yn(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 En(e,t){var r=t&&t.cache?t.cache:yu,n=t&&t.serializer?t.serializer:_u,i=t&&t.strategy?t.strategy:mu;return i(e,{cache:r,serializer:n})}function vu(e){return e==null||typeof e=="number"||typeof e=="boolean"}function pu(e,t,r,n){var i=vu(n)?n:r(n),s=t.get(i);return typeof s>"u"&&(s=e.call(this,n),t.set(i,s)),s}function Xs(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),s=t.get(i);return typeof s>"u"&&(s=e.apply(this,n),t.set(i,s)),s}function Ys(e,t,r,n,i){return r.bind(t,e,n,i)}function mu(e,t){var r=e.length===1?pu:Xs;return Ys(e,this,r,t.cache.create(),t.serializer)}function gu(e,t){return Ys(e,this,Xs,t.cache.create(),t.serializer)}var _u=function(){return JSON.stringify(arguments)},bu=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}(),yu={create:function(){return new bu}},xn={variadic:gu},Qr=function(){return Qr=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},Qr.apply(this,arguments)};var Y;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(Y||(Y={}));var be;(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"})(be||(be={}));var br;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(br||(br={}));function Ei(e){return e.type===be.literal}function Eu(e){return e.type===be.argument}function zs(e){return e.type===be.number}function qs(e){return e.type===be.date}function Ws(e){return e.type===be.time}function Zs(e){return e.type===be.select}function Js(e){return e.type===be.plural}function xu(e){return e.type===be.pound}function Qs(e){return e.type===be.tag}function Ks(e){return!!(e&&typeof e=="object"&&e.type===br.number)}function In(e){return!!(e&&typeof e=="object"&&e.type===br.dateTime)}var ea=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,wu=/(?:[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 Su(e){var t={};return e.replace(wu,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 Ae=function(){return Ae=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},Ae.apply(this,arguments)};var Tu=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Au(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Tu).filter(function(c){return c.length>0}),r=[],n=0,i=t;n<i.length;n++){var s=i[n],a=s.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var o=a[0],u=a.slice(1),f=0,l=u;f<l.length;f++){var h=l[f];if(h.length===0)throw new Error("Invalid number skeleton")}r.push({stem:o,options:u})}return r}function Pu(e){return e.replace(/^(.*?)-/,"")}var xi=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ta=/^(@+)?(\+|#+)?[rs]?$/g,Mu=/(\*)(0+)|(#+)(0+)|(0+)/g,ra=/^(0+)$/;function wi(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(ta,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 na(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 Hu(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)),!ra.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Si(e){var t={},r=na(e);return r||t}function Ou(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=Pu(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=Ae(Ae(Ae({},t),{notation:"scientific"}),i.options.reduce(function(u,f){return Ae(Ae({},u),Si(f))},{}));continue;case"engineering":t=Ae(Ae(Ae({},t),{notation:"engineering"}),i.options.reduce(function(u,f){return Ae(Ae({},u),Si(f))},{}));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(Mu,function(u,f,l,h,c,m){if(f)t.minimumIntegerDigits=l.length;else{if(h&&c)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(ra.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(xi.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(xi,function(u,f,l,h,c,m){return l==="*"?t.minimumFractionDigits=f.length:h&&h[0]==="#"?t.maximumFractionDigits=h.length:c&&m?(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length+m.length):(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length),""});var s=i.options[0];s==="w"?t=Ae(Ae({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=Ae(Ae({},t),wi(s)));continue}if(ta.test(i.stem)){t=Ae(Ae({},t),wi(i.stem));continue}var a=na(i.stem);a&&(t=Ae(Ae({},t),a));var o=Hu(i.stem);o&&(t=Ae(Ae({},t),o))}return t}var Ir={"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 $u(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 a=1+(s&1),o=s<2?1:3+(s>>1),u="a",f=Nu(t);for((f=="H"||f=="k")&&(o=0);o-- >0;)r+=u;for(;a-- >0;)r=f+r}else i==="J"?r+="H":r+=i}return r}function Nu(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=Ir[n||""]||Ir[r||""]||Ir["".concat(r,"-001")]||Ir["001"];return i[0]}var wn,Bu=new RegExp("^".concat(ea.source,"*")),Lu=new RegExp("".concat(ea.source,"*$"));function W(e,t){return{start:e,end:t}}var Ru=!!String.prototype.startsWith&&"_a".startsWith("a",1),Cu=!!String.fromCodePoint,Du=!!Object.fromEntries,Iu=!!String.prototype.codePointAt,ku=!!String.prototype.trimStart,Fu=!!String.prototype.trimEnd,Uu=!!Number.isSafeInteger,Gu=Uu?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},kn=!0;try{var ju=sa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");kn=((wn=ju.exec("a"))===null||wn===void 0?void 0:wn[0])==="a"}catch{kn=!1}var Ti=Ru?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Fn=Cu?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,s=0,a;i>s;){if(a=t[s++],a>1114111)throw RangeError(a+" is not a valid code point");n+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return n},Ai=Du?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var s=i[n],a=s[0],o=s[1];r[a]=o}return r},ia=Iu?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}},Vu=ku?function(t){return t.trimStart()}:function(t){return t.replace(Bu,"")},Xu=Fu?function(t){return t.trimEnd()}:function(t){return t.replace(Lu,"")};function sa(e,t){return new RegExp(e,t)}var Un;if(kn){var Pi=sa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Un=function(t,r){var n;Pi.lastIndex=r;var i=Pi.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else Un=function(t,r){for(var n=[];;){var i=ia(t,r);if(i===void 0||aa(i)||Wu(i))break;n.push(i),r+=i>=65536?2:1}return Fn.apply(void 0,n)};var Yu=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 a=this.parseArgument(t,n);if(a.err)return a;i.push(a.val)}else{if(s===125&&t>0)break;if(s===35&&(r==="plural"||r==="selectordinal")){var o=this.clonePosition();this.bump(),i.push({type:be.pound,location:W(o,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(Y.UNMATCHED_CLOSING_TAG,W(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&Gn(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;i.push(a.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:be.literal,value:"<".concat(i,"/>"),location:W(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,r,!0);if(s.err)return s;var a=s.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Gn(this.char()))return this.error(Y.INVALID_TAG,W(o,this.clonePosition()));var u=this.clonePosition(),f=this.parseTagName();return i!==f?this.error(Y.UNMATCHED_CLOSING_TAG,W(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:be.tag,value:i,children:a,location:W(n,this.clonePosition())},err:null}:this.error(Y.INVALID_TAG,W(o,this.clonePosition())))}else return this.error(Y.UNCLOSED_TAG,W(n,this.clonePosition()))}else return this.error(Y.INVALID_TAG,W(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&qu(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 a=this.tryParseUnquoted(t,r);if(a){i+=a;continue}var o=this.tryParseLeftAngleBracket();if(o){i+=o;continue}break}var u=W(n,this.clonePosition());return{val:{type:be.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!zu(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 Fn.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(),Fn(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,W(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Y.EMPTY_ARGUMENT,W(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(Y.MALFORMED_ARGUMENT,W(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,W(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:be.argument,value:i,location:W(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,W(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(Y.MALFORMED_ARGUMENT,W(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Un(this.message,r),i=r+n.length;this.bumpTo(i);var s=this.clonePosition(),a=W(t,s);return{value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,i){var s,a=this.clonePosition(),o=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(o){case"":return this.error(Y.EXPECT_ARGUMENT_TYPE,W(a,u));case"number":case"date":case"time":{this.bumpSpace();var f=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var c=Xu(h.val);if(c.length===0)return this.error(Y.EXPECT_ARGUMENT_STYLE,W(this.clonePosition(),this.clonePosition()));var m=W(l,this.clonePosition());f={style:c,styleLocation:m}}var w=this.tryParseArgumentClose(i);if(w.err)return w;var D=W(i,this.clonePosition());if(f&&Ti(f?.style,"::",0)){var v=Vu(f.style.slice(2));if(o==="number"){var h=this.parseNumberSkeletonFromString(v,f.styleLocation);return h.err?h:{val:{type:be.number,value:n,location:D,style:h.val},err:null}}else{if(v.length===0)return this.error(Y.EXPECT_DATE_TIME_SKELETON,D);var _=v;this.locale&&(_=$u(v,this.locale));var c={type:br.dateTime,pattern:_,location:f.styleLocation,parsedOptions:this.shouldParseSkeletons?Su(_):{}},$=o==="date"?be.date:be.time;return{val:{type:$,value:n,location:D,style:c},err:null}}}return{val:{type:o==="number"?be.number:o==="date"?be.date:be.time,value:n,location:D,style:(s=f?.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var S=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Y.EXPECT_SELECT_ARGUMENT_OPTIONS,W(S,Qr({},S)));this.bumpSpace();var L=this.parseIdentifierIfPossible(),U=0;if(o!=="select"&&L.value==="offset"){if(!this.bumpIf(":"))return this.error(Y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,W(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(Y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),L=this.parseIdentifierIfPossible(),U=h.val}var q=this.tryParsePluralOrSelectOptions(t,o,r,L);if(q.err)return q;var w=this.tryParseArgumentClose(i);if(w.err)return w;var J=W(i,this.clonePosition());return o==="select"?{val:{type:be.select,value:n,options:Ai(q.val),location:J},err:null}:{val:{type:be.plural,value:n,options:Ai(q.val),offset:U,pluralType:o==="plural"?"cardinal":"ordinal",location:J},err:null}}default:return this.error(Y.INVALID_ARGUMENT_TYPE,W(a,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,W(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,W(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=Au(t)}catch{return this.error(Y.INVALID_NUMBER_SKELETON,r)}return{val:{type:br.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Ou(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var s,a=!1,o=[],u=new Set,f=i.value,l=i.location;;){if(f.length===0){var h=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var c=this.tryParseDecimalInteger(Y.EXPECT_PLURAL_ARGUMENT_SELECTOR,Y.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=W(h,this.clonePosition()),f=this.message.slice(h.offset,this.offset())}else break}if(u.has(f))return this.error(r==="select"?Y.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);f==="other"&&(a=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?Y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,W(this.clonePosition(),this.clonePosition()));var w=this.parseMessage(t+1,r,n);if(w.err)return w;var D=this.tryParseArgumentClose(m);if(D.err)return D;o.push([f,{value:w.val,location:W(m,this.clonePosition())}]),u.add(f),this.bumpSpace(),s=this.parseIdentifierIfPossible(),f=s.value,l=s.location}return o.length===0?this.error(r==="select"?Y.EXPECT_SELECT_ARGUMENT_SELECTOR:Y.EXPECT_PLURAL_ARGUMENT_SELECTOR,W(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(Y.MISSING_OTHER_CLAUSE,W(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var s=!1,a=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)s=!0,a=a*10+(o-48),this.bump();else break}var u=W(i,this.clonePosition());return s?(a*=n,Gu(a)?{val:a,err:null}:this.error(r,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=ia(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(Ti(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()&&aa(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},e}();function Gn(e){return e>=97&&e<=122||e>=65&&e<=90}function zu(e){return Gn(e)||e===47}function qu(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 aa(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Wu(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 jn(e){e.forEach(function(t){if(delete t.location,Zs(t)||Js(t))for(var r in t.options)delete t.options[r].location,jn(t.options[r].value);else zs(t)&&Ks(t.style)||(qs(t)||Ws(t))&&In(t.style)?delete t.style.location:Qs(t)&&jn(t.children)})}function Zu(e,t){t===void 0&&(t={}),t=Qr({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Yu(e,t).parse();if(r.err){var n=SyntaxError(Y[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t?.captureLocation||jn(r.val),r.val}var yr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(yr||(yr={}));var mn=function(e){pn(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),Mi=function(e){pn(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('", "'),'"'),yr.INVALID_VALUE,s)||this}return t}(mn),Ju=function(e){pn(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),yr.INVALID_VALUE,i)||this}return t}(mn),Qu=function(e){pn(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,'"'),yr.MISSING_VALUE,n)||this}return t}(mn),We;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(We||(We={}));function Ku(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==We.literal||r.type!==We.literal?t.push(r):n.value+=r.value,t},[])}function el(e){return typeof e=="function"}function jr(e,t,r,n,i,s,a){if(e.length===1&&Ei(e[0]))return[{type:We.literal,value:e[0].value}];for(var o=[],u=0,f=e;u<f.length;u++){var l=f[u];if(Ei(l)){o.push({type:We.literal,value:l.value});continue}if(xu(l)){typeof s=="number"&&o.push({type:We.literal,value:r.getNumberFormat(t).format(s)});continue}var h=l.value;if(!(i&&h in i))throw new Qu(h,a);var c=i[h];if(Eu(l)){(!c||typeof c=="string"||typeof c=="number")&&(c=typeof c=="string"||typeof c=="number"?String(c):""),o.push({type:typeof c=="string"?We.literal:We.object,value:c});continue}if(qs(l)){var m=typeof l.style=="string"?n.date[l.style]:In(l.style)?l.style.parsedOptions:void 0;o.push({type:We.literal,value:r.getDateTimeFormat(t,m).format(c)});continue}if(Ws(l)){var m=typeof l.style=="string"?n.time[l.style]:In(l.style)?l.style.parsedOptions:n.time.medium;o.push({type:We.literal,value:r.getDateTimeFormat(t,m).format(c)});continue}if(zs(l)){var m=typeof l.style=="string"?n.number[l.style]:Ks(l.style)?l.style.parsedOptions:void 0;m&&m.scale&&(c=c*(m.scale||1)),o.push({type:We.literal,value:r.getNumberFormat(t,m).format(c)});continue}if(Qs(l)){var w=l.children,D=l.value,v=i[D];if(!el(v))throw new Ju(D,"function",a);var _=jr(w,t,r,n,i,s),$=v(_.map(function(U){return U.value}));Array.isArray($)||($=[$]),o.push.apply(o,$.map(function(U){return{type:typeof U=="string"?We.literal:We.object,value:U}}))}if(Zs(l)){var S=l.options[c]||l.options.other;if(!S)throw new Mi(l.value,c,Object.keys(l.options),a);o.push.apply(o,jr(S.value,t,r,n,i));continue}if(Js(l)){var S=l.options["=".concat(c)];if(!S){if(!Intl.PluralRules)throw new mn(`Intl.PluralRules is not available in this environment.
|
|
18
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
19
|
-
`,yr.MISSING_INTL_API,a);var L=r.getPluralRules(t,{type:l.pluralType}).select(c-(l.offset||0));S=l.options[L]||l.options.other}if(!S)throw new Mi(l.value,c,Object.keys(l.options),a);o.push.apply(o,jr(S.value,t,r,n,i,c-(l.offset||0)));continue}}return Ku(o)}function tl(e,t){return t?At(At(At({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=At(At({},e[n]),t[n]||{}),r},{})):e}function rl(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=tl(e[n],t[n]),r},At({},e)):e}function Sn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function nl(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:En(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,yn([void 0],r,!1)))},{cache:Sn(e.number),strategy:xn.variadic}),getDateTimeFormat:En(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,yn([void 0],r,!1)))},{cache:Sn(e.dateTime),strategy:xn.variadic}),getPluralRules:En(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,yn([void 0],r,!1)))},{cache:Sn(e.pluralRules),strategy:xn.variadic})}}var il=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var f=s.formatToParts(u);if(f.length===1)return f[0].value;var l=f.reduce(function(h,c){return!h.length||c.type!==We.literal||typeof h[h.length-1]!="string"?h.push(c.value):h[h.length-1]+=c.value,h},[]);return l.length<=1?l[0]||"":l},this.formatToParts=function(u){return jr(s.ast,s.locales,s.formatters,s.formats,u,void 0,s.message)},this.resolvedOptions=function(){var u;return{locale:((u=s.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};a.formatters;var o=du(a,["formatters"]);this.ast=e.__parse(t,At(At({},o),{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=rl(e.formats,n),this.formatters=i&&i.formatters||nl(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>"u")){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=Zu,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 sl(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 Gt={},al=(e,t,r)=>r&&(t in Gt||(Gt[t]={}),e in Gt[t]||(Gt[t][e]=r),r),oa=(e,t)=>{if(t==null)return;if(t in Gt&&e in Gt[t])return Gt[t][e];const r=gn(t);for(let n=0;n<r.length;n++){const i=r[n],s=ul(i,e);if(s)return al(e,t,s)}};let oi;const wr=cn({});function ol(e){return oi[e]||null}function ua(e){return e in oi}function ul(e,t){if(!ua(e))return null;const r=ol(e);return sl(r,t)}function ll(e){if(e==null)return;const t=gn(e);for(let r=0;r<t.length;r++){const n=t[r];if(ua(n))return n}}function la(e,...t){delete Gt[e],wr.update(r=>(r[e]=cu.all([r[e]||{},...t]),r))}xr([wr],([e])=>Object.keys(e));wr.subscribe(e=>oi=e);const Vr={};function fl(e,t){Vr[e].delete(t),Vr[e].size===0&&delete Vr[e]}function fa(e){return Vr[e]}function hl(e){return gn(e).map(t=>{const r=fa(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Vn(e){return e==null?!1:gn(e).some(t=>{var r;return(r=fa(t))==null?void 0:r.size})}function cl(e,t){return Promise.all(t.map(n=>(fl(e,n),n().then(i=>i.default||i)))).then(n=>la(e,...n))}const Tr={};function ha(e){if(!Vn(e))return e in Tr?Tr[e]:Promise.resolve();const t=hl(e);return Tr[e]=Promise.all(t.map(([r,n])=>cl(r,n))).then(()=>{if(Vn(e))return ha(e);delete Tr[e]}),Tr[e]}const dl={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"}}},vl={fallbackLocale:null,loadingDelay:200,formats:dl,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},pl=vl;function Er(){return pl}const Tn=cn(!1);var ml=Object.defineProperty,gl=Object.defineProperties,_l=Object.getOwnPropertyDescriptors,Hi=Object.getOwnPropertySymbols,bl=Object.prototype.hasOwnProperty,yl=Object.prototype.propertyIsEnumerable,Oi=(e,t,r)=>t in e?ml(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,El=(e,t)=>{for(var r in t||(t={}))bl.call(t,r)&&Oi(e,r,t[r]);if(Hi)for(var r of Hi(t))yl.call(t,r)&&Oi(e,r,t[r]);return e},xl=(e,t)=>gl(e,_l(t));let Xn;const Kr=cn(null);function $i(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function gn(e,t=Er().fallbackLocale){const r=$i(e);return t?[...new Set([...r,...$i(t)])]:r}function ar(){return Xn??void 0}Kr.subscribe(e=>{Xn=e??void 0,typeof window<"u"&&e!=null&&document.documentElement.setAttribute("lang",e)});const wl=e=>{if(e&&ll(e)&&Vn(e)){const{loadingDelay:t}=Er();let r;return typeof window<"u"&&ar()!=null&&t?r=window.setTimeout(()=>Tn.set(!0),t):Tn.set(!0),ha(e).then(()=>{Kr.set(e)}).finally(()=>{clearTimeout(r),Tn.set(!1)})}return Kr.set(e)},zt=xl(El({},Kr),{set:wl}),_n=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var Sl=Object.defineProperty,en=Object.getOwnPropertySymbols,ca=Object.prototype.hasOwnProperty,da=Object.prototype.propertyIsEnumerable,Ni=(e,t,r)=>t in e?Sl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ui=(e,t)=>{for(var r in t||(t={}))ca.call(t,r)&&Ni(e,r,t[r]);if(en)for(var r of en(t))da.call(t,r)&&Ni(e,r,t[r]);return e},Sr=(e,t)=>{var r={};for(var n in e)ca.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&en)for(var n of en(e))t.indexOf(n)<0&&da.call(e,n)&&(r[n]=e[n]);return r};const Nr=(e,t)=>{const{formats:r}=Er();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Tl=_n(e=>{var t=e,{locale:r,format:n}=t,i=Sr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Nr("number",n)),new Intl.NumberFormat(r,i)}),Al=_n(e=>{var t=e,{locale:r,format:n}=t,i=Sr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Nr("date",n):Object.keys(i).length===0&&(i=Nr("date","short")),new Intl.DateTimeFormat(r,i)}),Pl=_n(e=>{var t=e,{locale:r,format:n}=t,i=Sr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Nr("time",n):Object.keys(i).length===0&&(i=Nr("time","short")),new Intl.DateTimeFormat(r,i)}),Ml=(e={})=>{var t=e,{locale:r=ar()}=t,n=Sr(t,["locale"]);return Tl(ui({locale:r},n))},Hl=(e={})=>{var t=e,{locale:r=ar()}=t,n=Sr(t,["locale"]);return Al(ui({locale:r},n))},Ol=(e={})=>{var t=e,{locale:r=ar()}=t,n=Sr(t,["locale"]);return Pl(ui({locale:r},n))},$l=_n((e,t=ar())=>new il(e,t,Er().formats,{ignoreTag:Er().ignoreTag})),Nl=(e,t={})=>{var r,n,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:o,locale:u=ar(),default:f}=a;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=oa(e,u);if(!l)l=(s=(i=(n=(r=Er()).handleMissingMessage)==null?void 0:n.call(r,{locale:u,id:e,defaultValue:f}))!=null?i:f)!=null?s:e;else if(typeof l!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l;if(!o)return l;let h=l;try{h=$l(l,u).format(o)}catch(c){c instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,c.message)}return h},Bl=(e,t)=>Ol(t).format(e),Ll=(e,t)=>Hl(t).format(e),Rl=(e,t)=>Ml(t).format(e),Cl=(e,t=ar())=>oa(e,t),va=xr([zt,wr],()=>Nl);xr([zt],()=>Bl);xr([zt],()=>Ll);xr([zt],()=>Rl);xr([zt,wr],()=>Cl);function Dl({withLocale:e,translations:t}){zt.subscribe(r=>{r==null&&(wr.set(t),zt.set(e))})}function pa(e,t){la(e,t)}function Yn(e){zt.set(e)}function ma(e){Object.keys(e).forEach(t=>{pa(t,e[t])})}function ga(e){const t=new URL(e);fetch(t.href).then(r=>r.json()).then(r=>{Object.keys(r).forEach(n=>{pa(n,r[n])})}).catch(r=>{console.log(r)})}const Il={en:{rank:"Rank",user:"User",points:"Points",prize:"Prize",notEnrolledRank:"You are currently not enrolled in this tournament.",leaderboardNotAvailable:"Leaderboard will be available soon.",myRanking:"My Ranking",showMore:"Show More",showLess:"Show Less",emptyLeaderboard:"Currently there are no players enrolled in this tournament",joinButton:"Join",previousButton:"Previous",nextButton:"Next"},tr:{rank:"Sıralama",user:"Kullanıcı",points:"Puan",prize:"Ödül",notEnrolledRank:"Şu anda bu turnuvaya kayıtlı değilsiniz.",leaderboardNotAvailable:"Liderlik tablosu yakında kullanıma sunulacak.",myRanking:"Sıralamam",showMore:"Daha Fazla Göster",showLess:"Daha Az Göster",emptyLeaderboard:"Şu anda bu turnuvaya kayıtlı oyuncu bulunmuyor.",joinButton:"Katıl",previousButton:"Önceki",nextButton:"Sonraki"},da:{rank:"Rang",user:"Bruger",points:"Point",prize:"Præmie",notEnrolledRank:"Du er i øjeblikket ikke tilmeldt denne turnering.",leaderboardNotAvailable:"Leaderboard vil være tilgængelig snart.",myRanking:"Min placering",showMore:"Vis mere",showLess:"Vis mindre",emptyLeaderboard:"Der er i øjeblikket ingen spillere tilmeldt denne turnering",previousButton:"Forrige",nextButton:"Næste",joinButton:"Deltag"}};var kl=Ke('<span class="svelte-1vfou2r"> </span> <span class="svelte-1vfou2r"> </span> <span class="svelte-1vfou2r"> </span>',1),Fl=Ke('<span class="svelte-1vfou2r"> </span> <span class="svelte-1vfou2r">—</span> <span class="svelte-1vfou2r">—</span>',1),Ul=Ke('<p class="NoPlayerData svelte-1vfou2r"> </p>'),Gl=Ke('<p class="NoPlayerData svelte-1vfou2r"> </p>'),jl=Ke('<div class="PlayerRankWrapper svelte-1vfou2r"><div class="PlayerRankLabels svelte-1vfou2r"><span class="svelte-1vfou2r"> </span> <span class="svelte-1vfou2r"> </span> <span class="svelte-1vfou2r"> </span></div> <div class="PlayerRankData svelte-1vfou2r"><!></div></div>'),Vl=Ke('<div class="PlayerRankSkeletonWrapper svelte-1vfou2r"><div class="PlayerRankSkeleton svelte-1vfou2r"></div> <div class="PlayerRankSkeleton svelte-1vfou2r"></div></div>'),Xl=Ke('<tr class="SkeletonRow svelte-1vfou2r"><td colspan="4" class="svelte-1vfou2r"></td></tr>'),Yl=Ke('<tr><td class="svelte-1vfou2r"> </td><td class="svelte-1vfou2r"> </td><td class="svelte-1vfou2r"> </td><td class="svelte-1vfou2r"> </td></tr>'),zl=Ke('<tr class="svelte-1vfou2r"><td colspan="4" class="svelte-1vfou2r"><div class="EmptyLeaderboard svelte-1vfou2r"><p class="svelte-1vfou2r"> </p></div></td></tr>'),ql=Ke('<div class="PaginationSkeleton svelte-1vfou2r"><div class="PaginationSkeletonButton svelte-1vfou2r"></div> <div class="PaginationNumberSkeleton svelte-1vfou2r"></div> <div class="PaginationNumberSkeleton svelte-1vfou2r"></div> <div class="PaginationNumberSkeleton svelte-1vfou2r"></div> <div class="PaginationNumberSkeleton svelte-1vfou2r"></div> <div class="PaginationNumberSkeleton svelte-1vfou2r"></div> <div class="PaginationSkeletonButton svelte-1vfou2r"></div></div>'),Wl=Ke('<span class="PaginationButton Elipsis svelte-1vfou2r">...</span>'),Zl=Ke("<button> </button>"),Jl=Ke('<div class="PaginationWrapper svelte-1vfou2r"><button class="PaginationButton svelte-1vfou2r"> </button> <div class="PageNumberWrapper svelte-1vfou2r"></div> <button class="PaginationButton svelte-1vfou2r"> </button></div>'),Ql=Ke('<div class="LeaderboardWrapper svelte-1vfou2r"><div class="RankingWrapper svelte-1vfou2r"><!> <table class="LeaderboardTable svelte-1vfou2r"><thead class="LeaderboardTableHeader svelte-1vfou2r"><tr class="svelte-1vfou2r"><th class="svelte-1vfou2r"> </th><th class="svelte-1vfou2r"> </th><th class="svelte-1vfou2r"> </th><th class="svelte-1vfou2r"> </th></tr></thead><tbody class="LeaderboardTableBody svelte-1vfou2r"><!></tbody></table></div> <!> <!></div>');const Kl={hash:"svelte-1vfou2r",code:`.svelte-1vfou2r,
|
|
20
|
-
.svelte-1vfou2r::before,
|
|
21
|
-
.svelte-1vfou2r::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.LeaderboardWrapper.svelte-1vfou2r {background-color:var(--emw-color-bg-secondary, #333232);border-radius:6px;padding:16px;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;}.PlayerRankWrapper.svelte-1vfou2r {display:flex;flex-direction:column;gap:5px;min-height:60px;.PlayerRankLabels:where(.svelte-1vfou2r), .PlayerRankData:where(.svelte-1vfou2r) {display:grid;grid-template-columns:1fr 1fr 2fr;padding:6px;color:var(--emw-color-typography-secondary, #bdbdbd);opacity:70%;font-size:14px;font-weight:400;& > span:where(.svelte-1vfou2r):last-child{justify-self:end;}p:where(.svelte-1vfou2r) {width:max-content;}.NoPlayerData:where(.svelte-1vfou2r) {grid-column:1 / -1;text-wrap:auto;width:auto;}}.PlayerRankData:where(.svelte-1vfou2r) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography, #ffffff);border-radius:6px;padding:12px;}}.PaginationWrapper.svelte-1vfou2r {display:flex;justify-content:space-between;.PageNumberWrapper:where(.svelte-1vfou2r) {display:flex;gap:6px;}.PaginationButton:where(.svelte-1vfou2r) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography, #ffffff);border-radius:6px;border:none;outline:none;padding:10px;width:auto;cursor:pointer;&.Number {background-color:transparent;min-width:0;padding:0 10px;}&:hover {background-color:var(--emw-color-bg-elements, #4A4A4A);cursor:pointer;}&:active {transform:scale(0.9);}&:disabled {opacity:60%;pointer-events:none;}&.Active {background-color:var(--emw-color-bg-elements, #4A4A4A);}&.Elipsis {pointer-events:none;background-color:transparent;min-width:0;padding:0;align-self:center;}}}.LeaderboardTable.svelte-1vfou2r {border-collapse:separate;border-spacing:0 12px;width:100%;table-layout:fixed;overflow:hidden;.PlayerRow:where(.svelte-1vfou2r) {color:#F9C408;}thead:where(.svelte-1vfou2r) th:where(.svelte-1vfou2r) {background:transparent;padding:6px 16px;text-align:center;font-weight:400;color:var(--emw-color-typography-secondary, #bdbdbd);font-size:14px;}tbody:where(.svelte-1vfou2r) tr:where(.svelte-1vfou2r) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography-secondary, #bdbdbd);font-size:14px;font-weight:500;&:last-child{justify-self:end;}}tbody:where(.svelte-1vfou2r) td:where(.svelte-1vfou2r) {padding:12px;background-color:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}tbody:where(.svelte-1vfou2r) td:where(.svelte-1vfou2r):first-child {border-top-left-radius:8px;border-bottom-left-radius:8px;width:15%;}tbody:where(.svelte-1vfou2r) td:where(.svelte-1vfou2r):nth-child(2) {width:35%;}tbody:where(.svelte-1vfou2r) td:where(.svelte-1vfou2r):nth-child(3) {width:20%;}tbody:where(.svelte-1vfou2r) td:where(.svelte-1vfou2r):last-child {border-top-right-radius:8px;border-bottom-right-radius:8px;width:30%;}th:where(.svelte-1vfou2r), td:where(.svelte-1vfou2r) {text-align:center;vertical-align:middle;}tbody:where(.svelte-1vfou2r) tr.Gold:where(.svelte-1vfou2r){background:linear-gradient(to right, #a2851a, color-mix(in srgb, #a2851a 50%, var(--emw-color-bg-secondary, #434343) 50%), var(--emw-color-bg-secondary, #434343));}tbody:where(.svelte-1vfou2r) tr.Silver:where(.svelte-1vfou2r) {background:linear-gradient(to right, #b0aeae, color-mix(in srgb, #b0aeae, var(--emw-color-bg-secondary, #434343)), var(--emw-color-bg-secondary, #434343));}tbody:where(.svelte-1vfou2r) tr.Bronze:where(.svelte-1vfou2r) {background:linear-gradient(to right, #ac763c, color-mix(in srgb, #ac763c, var(--emw-color-bg-secondary, #434343)), var(--emw-color-bg-secondary, #434343));}}.EmptyLeaderboard.svelte-1vfou2r {background-color:var(--emw-color-bg-secondary, #333232);color:var(--emw-color-typography-secondary, #bdbdbd);width:100%;border-radius:8px;margin:10px 0;text-align:center;padding:10px 0;p:where(.svelte-1vfou2r) {text-wrap:auto;padding:0 15px;text-align:left;}}.SkeletonRow.svelte-1vfou2r {height:41px;overflow:hidden;background-color:var(--emw-color-skeleton, #535353);
|
|
22
|
-
animation: svelte-1vfou2r-pulse 1.5s infinite;}.PlayerRankSkeletonWrapper.svelte-1vfou2r {display:flex;justify-content:space-between;width:100%;gap:6px;flex-direction:column;.PlayerRankSkeleton:where(.svelte-1vfou2r) {width:100%;height:40px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);border-radius:6px;
|
|
23
|
-
animation: svelte-1vfou2r-pulse 1s infinite;}}.PaginationSkeleton.svelte-1vfou2r {display:flex;justify-content:space-between;gap:6px;.PaginationSkeletonButton:where(.svelte-1vfou2r) {width:60px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
|
|
24
|
-
animation: svelte-1vfou2r-pulse 1s infinite;}.PaginationNumberSkeleton:where(.svelte-1vfou2r) {width:40px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
|
|
25
|
-
animation: svelte-1vfou2r-pulse 1s infinite;}}
|
|
26
|
-
|
|
27
|
-
@keyframes svelte-1vfou2r-pulse {
|
|
28
|
-
0% {
|
|
29
|
-
opacity: 0;
|
|
30
|
-
}
|
|
31
|
-
50% {
|
|
32
|
-
opacity: 1;
|
|
33
|
-
}
|
|
34
|
-
100% {
|
|
35
|
-
opacity: 0;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
@media (min-width: 1000px) {.ShowPlayersButton.svelte-1vfou2r {display:block;width:300px;margin:auto;background-color:var(--emw-color-bg-primary, #212121);}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
@media (min-width: 750px) {.PaginationWrapper.svelte-1vfou2r, .PaginationSkeleton.svelte-1vfou2r {justify-content:end;gap:10px;}.PaginationButton.svelte-1vfou2r {min-width:75px;}.PaginationSkeleton.svelte-1vfou2r {justify-content:end;gap:10px;.PaginationSkeletonButton:where(.svelte-1vfou2r) {width:auto;min-width:55px;}.PaginationNumberSkeleton:where(.svelte-1vfou2r) {width:25px;}}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@media (max-width: 475px) {.PaginationWrapper.svelte-1vfou2r {& .PaginationButton:where(.svelte-1vfou2r) {font-size:11px;&.Number {font-size:11px;}}}
|
|
46
|
-
}`};function li(e,t){an(t,!0),Rs(e,Kl);const r=()=>Is(va,"$_",n),[n,i]=ks(),s=Ze(t,"endpoint"),a=Ze(t,"language",7,"en"),o=Ze(t,"session"),u=Ze(t,"tournamentid"),f=Ze(t,"platform"),l=Ze(t,"translationurl"),h=Ze(t,"newlyEnrolled");ma(Il),Yn(a());const c=()=>{Yn(a())};vs(()=>{l()&&ga(l())}),Wr(()=>{c()});let m=null,w=Oe(void 0),D=Oe(!1),v=Oe(!1),_=Oe(void 0),$=Oe(void 0),S=Oe(0),L=Oe(10),U=Oe(!0),q=Oe(void 0),J=Oe(!1);const ie=async()=>{if(!T.has(A(g))){ge(D,!0);try{const p=await Fo({endpoint:s(),language:a(),platform:f(),session:o(),tournamentid:u(),offset:A(S),limit:A(L)});ge(w,p.items,!0),ge(q,p.total,!0),T.set(A(g),A(w)),A(U)||ge(U,!0)}catch(p){console.log(p)}finally{ge(D,!1)}}},se=()=>{m&&(m.close(),m=null),m=Go({endpoint:s(),language:a(),platform:f(),session:o(),tournamentid:u(),offset:A(S),limit:A(L)},p=>{ge(w,p,!0)})},N=async()=>{ge(v,!0);try{const p=await Uo({endpoint:s(),language:a(),platform:f(),session:o(),tournamentid:u()});ge(_,p.playerData,!0),ge($,p.endRank,!0),ge(J,p.playerEnrolled,!0)}catch(p){console.log(p)}finally{ge(v,!1)}},k=()=>{A(S)<A(q)&&(ge(S,A(S)+A(L)),ie(),se())},he=()=>{A(S)!==0&&(ge(S,A(S)-A(L)),ie(),se())},Me=p=>{ge(S,(p-1)*A(L)),ie(),se()},E=kr(()=>{const p=Math.ceil(A(q)/A(L)),R=Math.floor(A(S)/A(L))+1;if(p<=5)return Array.from({length:p},(Ne,_e)=>_e+1);const F=[];return F.push(1),R<=3?(F.push(2,3),F.push("..."),F.push(p)):R>=p-2?(F.push("..."),F.push(p-2,p-1,p)):(F.push("..."),F.push(R-1,R,R+1),F.push("..."),F.push(p)),F}),g=kr(()=>Math.floor(A(S)/A(L))+1);let T=new Map,b=kr(()=>T.get(A(g))??[]);const H=(p,R)=>{const F=[];return R&&F.push("PlayerRow"),p===1&&F.push("Gold"),p===2&&F.push("Silver"),p===3&&F.push("Bronze"),F.join(" ")},B=p=>p?Math.floor(p):"-";Wr(()=>{h()&&N()}),ni(()=>(ie(),N(),se(),()=>{m?.close(),m=null}));var C={get endpoint(){return s()},set endpoint(p){s(p),Ge()},get language(){return a()},set language(p="en"){a(p),Ge()},get session(){return o()},set session(p){o(p),Ge()},get tournamentid(){return u()},set tournamentid(p){u(p),Ge()},get platform(){return f()},set platform(p){f(p),Ge()},get translationurl(){return l()},set translationurl(p){l(p),Ge()},get newlyEnrolled(){return h()},set newlyEnrolled(p){h(p),Ge()}},Q=Ql(),ne=X(Q),ye=X(ne);{var $e=p=>{var R=jl(),F=X(R),Ne=X(F),_e=X(Ne,!0);j(Ne);var ee=Le(Ne,2),Ee=X(ee,!0);j(ee);var Pe=Le(ee,2),Be=X(Pe,!0);j(Pe),j(F);var ve=Le(F,2),ze=X(ve);{var pe=fe=>{var He=kl(),Fe=$t(He),St=X(Fe);j(Fe);var ht=Le(Fe,2),Ue=X(ht,!0);j(ht);var ae=Le(ht,2),le=X(ae,!0);j(ae),ct(()=>{Se(St,`${A(_).rank??""}.`),Se(Ue,A(_).score),Se(le,A(_).prizeName||"—")}),Te(fe,He)},Ot=fe=>{var He=Wt(),Fe=$t(He);{var St=Ue=>{var ae=Fl(),le=$t(ae),De=X(le);j(le),Zn(4),ct(()=>Se(De,`${A($)??""}.`)),Te(Ue,ae)},ht=Ue=>{var ae=Wt(),le=$t(ae);{var De=we=>{var me=Ul(),st=X(me,!0);j(me),ct(at=>Se(st,at),[()=>r()("leaderboardNotAvailable")]),Te(we,me)},qe=we=>{var me=Gl(),st=X(me,!0);j(me),ct(at=>Se(st,at),[()=>r()("notEnrolledRank")]),Te(we,me)};Tt(le,we=>{A(J)?we(De):we(qe,!1)},!0)}Te(Ue,ae)};Tt(Fe,Ue=>{A($)?Ue(St):Ue(ht,!1)},!0)}Te(fe,He)};Tt(ze,fe=>{A(_)?fe(pe):fe(Ot,!1)})}j(ve),j(R),ct((fe,He,Fe)=>{Se(_e,fe),Se(Ee,He),Se(Be,Fe)},[()=>r()("myRanking"),()=>r()("points"),()=>r()("prize")]),Te(p,R)},lt=p=>{var R=Vl();Te(p,R)};Tt(ye,p=>{A(v)?p(lt,!1):p($e)})}var et=Le(ye,2),Xe=X(et),Ce=X(Xe),oe=X(Ce),ce=X(oe,!0);j(oe);var Ye=Le(oe),ft=X(Ye,!0);j(Ye);var wt=Le(Ye),Ht=X(wt,!0);j(wt);var d=Le(wt),x=X(d,!0);j(d),j(Ce),j(Xe);var P=Le(Xe),y=X(P);{var I=p=>{var R=Wt(),F=$t(R);Ur(F,17,()=>Array(A(L)),Fr,(Ne,_e,ee,Ee)=>{var Pe=Xl();Te(Ne,Pe)}),Te(p,R)},O=p=>{var R=Wt(),F=$t(R);{var Ne=ee=>{var Ee=Wt(),Pe=$t(Ee);Ur(Pe,17,()=>A(b),Fr,(Be,ve)=>{var ze=Yl(),pe=X(ze),Ot=X(pe);j(pe);var fe=Le(pe),He=X(fe,!0);j(fe);var Fe=Le(fe),St=X(Fe,!0);j(Fe);var ht=Le(Fe),Ue=X(ht,!0);j(ht),j(ze),ct((ae,le)=>{Ln(ze,1,ae,"svelte-1vfou2r"),Se(Ot,`${A(ve).rank??""}.`),Se(He,A(ve).shortName||"J.D"),Se(St,le),Se(Ue,A(ve).prizeName||"—")},[()=>Ds(H(A(ve).rank,A(ve).rank===A(_)?.rank)),()=>B(A(ve).score)]),Te(Be,ze)}),Te(ee,Ee)},_e=ee=>{var Ee=zl(),Pe=X(Ee),Be=X(Pe),ve=X(Be),ze=X(ve,!0);j(ve),j(Be),j(Pe),j(Ee),ct(pe=>Se(ze,pe),[()=>r()("leaderboardNotAvailable")]),Te(ee,Ee)};Tt(F,ee=>{A(w)?.length>0?ee(Ne):ee(_e,!1)},!0)}Te(p,R)};Tt(y,p=>{A(D)?p(I):p(O,!1)})}j(P),j(et),j(ne);var G=Le(ne,2);{var de=p=>{var R=ql();Te(p,R)};Tt(G,p=>{A(U)||p(de)})}var V=Le(G,2);{var re=p=>{var R=Jl(),F=X(R);F.__click=he;var Ne=X(F,!0);j(F);var _e=Le(F,2);Ur(_e,21,()=>A(E),Fr,(Pe,Be)=>{var ve=Wt(),ze=$t(ve);{var pe=fe=>{var He=Wl();Te(fe,He)},Ot=fe=>{var He=Zl();let Fe;He.__click=()=>Me(A(Be));var St=X(He,!0);j(He),ct(()=>{Fe=Ln(He,1,"PaginationButton Number svelte-1vfou2r",null,Fe,{Active:A(Be)===A(g)}),Se(St,A(Be))}),Te(fe,He)};Tt(ze,fe=>{typeof A(Be)!="number"?fe(pe):fe(Ot,!1)})}Te(Pe,ve)}),j(_e);var ee=Le(_e,2);ee.__click=k;var Ee=X(ee,!0);j(ee),j(R),ct((Pe,Be)=>{F.disabled=A(S)===0,Se(Ne,Pe),ee.disabled=A(S)>=A(q)-A(L),Se(Ee,Be)},[()=>r()("previousButton"),()=>r()("nextButton")]),Te(p,R)};Tt(V,p=>{A(U)&&A(q)>A(L)&&p(re)})}j(Q),ct((p,R,F,Ne)=>{Se(ce,p),Se(ft,R),Se(Ht,F),Se(x,Ne)},[()=>r()("rank"),()=>r()("user"),()=>r()("points"),()=>r()("prize")]),Te(e,Q);var ue=on(C);return i(),ue}$s(["click"]);si(li,{endpoint:{},language:{},session:{},tournamentid:{},platform:{},translationurl:{},newlyEnrolled:{}},[],[],!0);function _a(e,t){an(t,!0);let r=Ze(t,"endpoint"),n=Ze(t,"language",7,"en"),i=Ze(t,"session"),s=Ze(t,"tournamentid"),a=Ze(t,"platform"),o=Ze(t,"translationurl"),u=Ze(t,"newlyEnrolled");var f={get endpoint(){return r()},set endpoint(l){r(l),Ge()},get language(){return n()},set language(l="en"){n(l),Ge()},get session(){return i()},set session(l){i(l),Ge()},get tournamentid(){return s()},set tournamentid(l){s(l),Ge()},get platform(){return a()},set platform(l){a(l),Ge()},get translationurl(){return o()},set translationurl(l){o(l),Ge()},get newlyEnrolled(){return u()},set newlyEnrolled(l){u(l),Ge()}};return li(e,{get endpoint(){return r()},get language(){return n()},get session(){return i()},get tournamentid(){return s()},get platform(){return a()},get translationurl(){return o()},get newlyEnrolled(){return u()}}),on(f)}customElements.define("tournament-leaderboard",si(_a,{endpoint:{},language:{},session:{},tournamentid:{},platform:{},translationurl:{},newlyEnrolled:{}},[],[],!1));const ef=Object.freeze(Object.defineProperty({__proto__:null,default:_a},Symbol.toStringTag,{value:"Module"}));exports.$format=va;exports.TournamentLeaderboard=li;exports.TournamentLeaderboard_ce=ef;exports.TournamentWalletUtils=Jo;exports.append=Te;exports.append_styles=Rs;exports.child=X;exports.clsx=Ds;exports.comment=Wt;exports.commonjsGlobal=dn;exports.create_custom_element=si;exports.dayjs=ai;exports.delegate=$s;exports.each=Ur;exports.fetchTournament=Io;exports.first_child=$t;exports.flushSync=Ge;exports.from_html=Ke;exports.get=A;exports.getDefaultExportFromCjs=vn;exports.getFormattedDate=Wo;exports.html=wo;exports.if_block=Tt;exports.index=Fr;exports.isServer=Zo;exports.joinTournament=Xo;exports.loadTranslations=ga;exports.next=Zn;exports.onDestroy=bo;exports.onMount=ni;exports.pop=on;exports.prop=Ze;exports.proxy=hr;exports.push=an;exports.registerTranslations=ma;exports.reset=j;exports.set=ge;exports.setLocale=Yn;exports.set_attribute=Oo;exports.set_class=Ln;exports.set_style=Po;exports.set_text=Se;exports.setupI18n=Dl;exports.setup_stores=ks;exports.sibling=Le;exports.state=Oe;exports.store_get=Is;exports.template_effect=ct;exports.text=co;exports.user_derived=kr;exports.user_effect=Wr;exports.user_pre_effect=vs;
|