@everymatrix/tournament-details-page 0.2.9 → 0.2.11
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/{ChartIcon-DuKiw7u5.js → ChartIcon-Blzn9spT.js} +1 -1
- package/components/{ChartIcon-uPX4pn_8.cjs → ChartIcon-CUZqwurw.cjs} +1 -1
- package/components/{ChartIcon-1VNK59HN.cjs → ChartIcon-Cw-ps_bp.cjs} +1 -1
- package/components/{ChartIcon-BCD2T3pr.js → ChartIcon-DTycW2Vl.js} +1 -1
- package/components/{CoinStackIcon-DM9NcHQ5.js → CoinStackIcon-BD5tT_tT.js} +1 -1
- package/components/{CoinStackIcon-eqomsX-S.cjs → CoinStackIcon-Bnki4Mhy.cjs} +1 -1
- package/components/{CoinStackIcon-KPPIHJNs.cjs → CoinStackIcon-C1RJWO7K.cjs} +1 -1
- package/components/{CoinStackIcon-BAmgBB85.js → CoinStackIcon-DqsuE1F0.js} +1 -1
- package/components/{DocumentsIcon-BCxtjV4b.js → DocumentsIcon-BHpILBlx.js} +1 -1
- package/components/{DocumentsIcon-ybQ34JvX.cjs → DocumentsIcon-C3IlZ6WJ.cjs} +1 -1
- package/components/{DocumentsIcon-C3uX-QgI.js → DocumentsIcon-Cm14nY4z.js} +1 -1
- package/components/{DocumentsIcon-CuoHtezG.cjs → DocumentsIcon-D5PG1nXk.cjs} +1 -1
- package/components/{FootballIcon-CRNec7hA.js → FootballIcon-BCg6M4ct.js} +1 -1
- package/components/{FootballIcon-BFvdlXO8.js → FootballIcon-Br4Pg_o9.js} +1 -1
- package/components/{FootballIcon-BvMeDAc-.cjs → FootballIcon-D9UFEeGx.cjs} +1 -1
- package/components/{FootballIcon--xyr5pSV.cjs → FootballIcon-DIJ72roh.cjs} +1 -1
- package/components/{PeopleIcon-CTynDgRc.js → PeopleIcon-BjvGwqnC.js} +1 -1
- package/components/{PeopleIcon-BJVZWHbw.cjs → PeopleIcon-BmSO8yTl.cjs} +1 -1
- package/components/{PeopleIcon-DMwpUYVZ.js → PeopleIcon-Bx81zHiT.js} +1 -1
- package/components/{PeopleIcon-C0YZ6Byl.cjs → PeopleIcon-Ccm9dG4u.cjs} +1 -1
- package/components/{RankArrowIcon-B91KawRb.js → RankArrowIcon-B7grti5j.js} +1 -1
- package/components/{RankArrowIcon-7zr8voOs.js → RankArrowIcon-CT9c2W4q.js} +1 -1
- package/components/{RankArrowIcon-B6OTua9f.cjs → RankArrowIcon-WosSBK6M.cjs} +1 -1
- package/components/{RankArrowIcon-BsJ3uMM9.cjs → RankArrowIcon-jMbfVZRN.cjs} +1 -1
- package/components/{SlotMachineIcon-DwU5WLpS.cjs → SlotMachineIcon--h4e8Eo7.cjs} +1 -1
- package/components/{SlotMachineIcon-CtyJP6bu.js → SlotMachineIcon-BFFKtGUs.js} +1 -1
- package/components/{SlotMachineIcon-C4kcsdcN.js → SlotMachineIcon-BYpTbiRT.js} +1 -1
- package/components/{SlotMachineIcon-K8BLDYcw.cjs → SlotMachineIcon-C2_AnFhk.cjs} +1 -1
- package/components/{StatusBadge-BAE3_ETq.js → StatusBadge-BSXTxxcz.js} +1834 -1841
- package/components/StatusBadge-CLgXaeUr.cjs +11 -0
- package/components/{StatusBadge-CIl0p91w.js → StatusBadge-DCptA39M.js} +569 -574
- package/components/StatusBadge-DPVVNwvB.cjs +11 -0
- package/components/{TournamentActions-CgG6Jz4v.js → TournamentActions-CSlVeM6D.js} +2 -2
- package/components/{TournamentActions-DtYg77xG.cjs → TournamentActions-Ck_hQS7u.cjs} +1 -1
- package/components/{TournamentActions-BcDCX2gB.cjs → TournamentActions-Cwtjzkq3.cjs} +1 -1
- package/components/{TournamentActions-Ba94CC_5.js → TournamentActions-DZHe7Gpj.js} +2 -2
- package/components/{TournamentDetailsPage-CeLbd00R.js → TournamentDetailsPage-Bd1xfeIz.js} +9 -9
- package/components/{TournamentDetailsPage-Do6sKgz3.cjs → TournamentDetailsPage-CC2uzNc9.cjs} +1 -1
- package/components/{TournamentDetailsPage-CqZlANVl.js → TournamentDetailsPage-CrVWh3XC.js} +9 -9
- package/components/{TournamentDetailsPage--Yr72F8w.cjs → TournamentDetailsPage-vxtHfTNg.cjs} +1 -1
- package/components/{TournamentDetailsSkeleton-CUo4iRP_.js → TournamentDetailsSkeleton-D5Ewcqd_.js} +2 -2
- package/components/{TournamentDetailsSkeleton-B2byX8IM.cjs → TournamentDetailsSkeleton-DEy1z8og.cjs} +1 -1
- package/components/{TournamentDetailsSkeleton-DRW4FvQ9.js → TournamentDetailsSkeleton-DbOfNIhi.js} +2 -2
- package/components/{TournamentDetailsSkeleton-C9BvT2Rk.cjs → TournamentDetailsSkeleton-i1T3j7Qq.cjs} +1 -1
- package/components/{TournamentGames-BsUkryYF.js → TournamentGames-BF7OeXui.js} +2 -2
- package/components/{TournamentGames-Cem62SpM.js → TournamentGames-DAjzIgPs.js} +2 -2
- package/components/{TournamentGames-C1r676ga.cjs → TournamentGames-DJjfni63.cjs} +1 -1
- package/components/{TournamentGames-CLQDDtNH.cjs → TournamentGames-DVa28wi4.cjs} +1 -1
- package/components/{TournamentImage-BRBTjpgk.js → TournamentImage-BFdrBdGO.js} +1 -1
- package/components/{TournamentImage-C-jz7jkY.cjs → TournamentImage-BiNRe7dv.cjs} +1 -1
- package/components/{TournamentImage-BB7apy_G.cjs → TournamentImage-Cd1Q-NUY.cjs} +1 -1
- package/components/{TournamentImage-IEZVeOsk.js → TournamentImage-R-XD_M4F.js} +1 -1
- package/components/{TournamentLeaderboard-BB-GdMbp.js → TournamentLeaderboard-BDGFWDLo.js} +1 -1
- package/components/{TournamentLeaderboard-gmN3m4vF.cjs → TournamentLeaderboard-BdILz34a.cjs} +1 -1
- package/components/{TournamentLeaderboard-Bi6acFkr.cjs → TournamentLeaderboard-DIobabGN.cjs} +1 -1
- package/components/{TournamentLeaderboard-kAWDrQWs.js → TournamentLeaderboard-WaAjyMOL.js} +1 -1
- package/components/{TournamentRules-EhfL6W2n.cjs → TournamentRules-Bk6j_-Pc.cjs} +1 -1
- package/components/{TournamentRules-CWop086v.js → TournamentRules-Btf8PwHL.js} +8 -8
- package/components/{TournamentRules-D2R0IrAb.cjs → TournamentRules-UIHBqJg_.cjs} +1 -1
- package/components/{TournamentRules-BcYOkeoA.js → TournamentRules-ZWCVyT0d.js} +8 -8
- package/components/{TournamentSummary-WRV0hIFk.cjs → TournamentSummary-B21DioQa.cjs} +1 -1
- package/components/{TournamentSummary-CpIFuP0K.js → TournamentSummary-BU1VaGeN.js} +6 -6
- package/components/{TournamentSummary-By_d1pcv.js → TournamentSummary-C8zrUjm-.js} +6 -6
- package/components/{TournamentSummary-CxDmOw7q.cjs → TournamentSummary-Culm_VmG.cjs} +1 -1
- package/components/{TournamentTabs-BQfmKwE3.js → TournamentTabs-Bfe7mMQv.js} +2 -2
- package/components/{TournamentTabs-BtJktsF6.cjs → TournamentTabs-CJg68zB4.cjs} +1 -1
- package/components/{TournamentTabs-DiRenUJ3.cjs → TournamentTabs-DIZkooA2.cjs} +1 -1
- package/components/{TournamentTabs-D7NvgwSf.js → TournamentTabs-LsLUozgb.js} +2 -2
- package/components/{TrophyIcon-ELMsvX95.js → TrophyIcon-Bqno7aoE.js} +1 -1
- package/components/{TrophyIcon-CUSwVmg1.cjs → TrophyIcon-DuAfQSZa.cjs} +1 -1
- package/components/{TrophyIcon-t9hOLzWD.cjs → TrophyIcon-gG04OTK9.cjs} +1 -1
- package/components/{TrophyIcon-MdlbB9Nh.js → TrophyIcon-qzOxAsqk.js} +1 -1
- 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/StatusBadge-BAx3jnro.cjs +0 -11
- package/components/StatusBadge-LVE00UFO.cjs +0 -11
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var fa=Object.defineProperty,ha=Object.defineProperties;var ca=Object.getOwnPropertyDescriptors;var Fi=Object.getOwnPropertySymbols;var da=Object.prototype.hasOwnProperty,pa=Object.prototype.propertyIsEnumerable;var Gi=e=>{throw TypeError(e)};var Sn=(e,t,r)=>t in e?fa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jr=(e,t)=>{for(var r in t||(t={}))da.call(t,r)&&Sn(e,r,t[r]);if(Fi)for(var r of Fi(t))pa.call(t,r)&&Sn(e,r,t[r]);return e},kr=(e,t)=>ha(e,ca(t));var L=(e,t,r)=>Sn(e,typeof t!="symbol"?t+"":t,r),An=(e,t,r)=>t.has(e)||Gi("Cannot "+r);var h=(e,t,r)=>(An(e,t,"read from private field"),r?r.call(e):t.get(e)),S=(e,t,r)=>t.has(e)?Gi("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),y=(e,t,r,n)=>(An(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),b=(e,t,r)=>(An(e,t,"access private method"),r);var Hn=(e,t,r)=>new Promise((n,i)=>{var s=u=>{try{o(r.next(u))}catch(l){i(l)}},a=u=>{try{o(r.throw(u))}catch(l){i(l)}},o=u=>u.done?n(u.value):Promise.resolve(u.value).then(s,a);o((r=r.apply(e,t)).next())});typeof globalThis.HTMLElement=="undefined"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const va=require("./translations-rhjw1_mg.cjs"),ma="5";var ds,ps,vs;typeof window!="undefined"&&((vs=(ps=(ds=window.__svelte)!=null?ds:window.__svelte={}).v)!=null?vs:ps.v=new Set).add(ma);const ga=1,_a=2,_s=4,ba=8,Ea=16,ya=1,xa=4,wa=8,Ta=16,Sa=1,Aa=2,bs="[",_i="[!",ji="[?",bi="]",Qe={},k=Symbol("uninitialized"),Es="http://www.w3.org/1999/xhtml",Ha="http://www.w3.org/2000/svg",Na="http://www.w3.org/1998/Math/MathML",ys=!1;var xs=Array.isArray,Oa=Array.prototype.indexOf,yr=Array.prototype.includes,vn=Array.from,en=Object.keys,qt=Object.defineProperty,Et=Object.getOwnPropertyDescriptor,ws=Object.getOwnPropertyDescriptors,Pa=Object.prototype,Ba=Array.prototype,Ei=Object.getPrototypeOf,ki=Object.isExtensible;const Fe=()=>{};function Ts(e){for(var t=0;t<e.length;t++)e[t]()}function Ss(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const Z=2,Xt=4,Ir=8,As=1<<24,Te=16,He=32,Je=64,Gn=128,yi=256,Ae=512,V=1024,$=2048,he=4096,ee=8192,z=16384,Ht=32768,xr=1<<25,Tt=65536,tn=1<<17,Ia=1<<18,Nt=1<<19,Hs=1<<20,Ue=1<<25,rn=1<<21,Dt=1<<22,st=1<<23,yt=Symbol("$state"),Ns=Symbol("component"),Os=Symbol("legacy props"),Ma=Symbol(""),zr=Symbol("attributes"),jn=Symbol("class"),kn=Symbol("style"),ar=Symbol("text"),Mr=new class extends Error{constructor(){super(...arguments);L(this,"name","StaleReactionError");L(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};var ms;const Ca=!!((ms=globalThis.document)!=null&&ms.contentType)&&globalThis.document.contentType.includes("xml"),Cr=3,er=8;function La(){console.warn("https://svelte.dev/e/derived_inert")}function Lr(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Ra(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let w=!1;function Ye(e){w=e}let x;function W(e){if(e===null)throw Lr(),Qe;return x=e}function St(){return W(Ne(x))}function vr(e){if(w){if(Ne(x)!==null)throw Lr(),Qe;x=e}}function $a(e=1){if(w){for(var t=e,r=x;t--;)r=Ne(r);x=r}}function nn(e=!0){for(var t=0,r=x;;){if(r.nodeType===er){var n=r.data;if(n===bi){if(t===0)return r;t-=1}else(n===bs||n===_i||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var i=Ne(r);e&&r.remove(),r=i}}function xi(e){if(!e||e.nodeType!==er)throw Lr(),Qe;return e.data}function Ps(e){return e===this.v}function wi(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Bs(e){return!wi(e,this.v)}function Da(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Ua(e,t,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Fa(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ga(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ja(e){throw new Error("https://svelte.dev/e/effect_orphan")}function ka(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Va(){throw new Error("https://svelte.dev/e/hydration_failed")}function qa(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Xa(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function za(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Wa(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ya(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}let Za=!1,te=null;function zt(e){te=e}function Ti(e,t=!1,r){te={p:te,i:!1,c:null,e:null,s:e,x:null,r:T,l:null}}function Si(e){var t=te,r=t.e;if(r!==null){t.e=null;for(var n of r)to(n)}return e!==void 0&&(t.x=e),t.i=!0,te=t.p,Ai(e)}function Ai(e={}){return qt(e,Ns,{value:!0}),e}function Is(){return!0}let ct=[];function Ms(){var e=ct;ct=[],Ts(e)}function Ze(e){if(ct.length===0&&!mr){var t=ct;queueMicrotask(()=>{t===ct&&Ms()})}ct.push(e)}function Qa(){for(;ct.length>0;)Ms()}const Ja=-7169;function j(e,t){e.f=e.f&Ja|t}function Hi(e){e.f&Ae||e.deps===null?j(e,V):j(e,he)}function Cs(e,t){e.f&$?t.set(e,$):e.f&he&&t.get(e)!==$&&t.set(e,he),j(e,V)}function Rr(e){var t=A,r=T;be(null),je(null);try{return e()}finally{be(t),je(r)}}function Ka(e,t,r,n){const i=wr;var s=e.filter(d=>!d.settled),a=t.map(i);if(r.length===0&&s.length===0){n(a);return}var o=T,u=eu(),l=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(d=>d.promise)):null;function f(d){if(!(o.f&z)){u();try{n([...a,...d])}catch(v){$e(v,o)}sn()}}var c=Ls();if(r.length===0){l.then(()=>f([])).finally(c);return}function p(){Promise.all(r.map(d=>tu(d))).then(f).catch(d=>$e(d,o)).finally(c)}l?l.then(()=>{if(o.f&z){c();return}u(),p(),sn()}):p()}function eu(){var e=T,t=A,r=te,n=E;return function(s=!0){je(e),be(t),zt(r),s&&!(e.f&z)&&(n==null||n.activate(),n==null||n.apply())}}function sn(e=!0){je(null),be(null),zt(null),e&&(E==null||E.deactivate())}function Ls(){var e=T,t=e.b,r=E,n=!!(t!=null&&t.is_rendered());return t==null||t.update_pending_count(1,r),r.increment(n,e),()=>{t==null||t.update_pending_count(-1,r),r.decrement(n,e)}}function wr(e){var t=Z|$;return T!==null&&(T.f|=Nt),{ctx:te,deps:null,effects:null,equals:Ps,f:t,fn:e,reactions:null,rv:0,v:k,wv:0,parent:T,ac:null}}const ur=Symbol("obsolete");function tu(e,t,r){let n=T;n===null&&Da();var i=void 0,s=At(k),a=!A,o=new Set;return pu(()=>{var d,v;var u=T,l=Ss();i=l.promise;try{Promise.resolve(e()).then(l.resolve,g=>{g!==Mr&&l.reject(g)}).finally(sn)}catch(g){l.reject(g),sn()}var f=E;if(a){if(u.f&Ht)var c=Ls();if((d=n.b)!=null&&d.is_rendered())(v=f.async_deriveds.get(u))==null||v.reject(ur);else for(const g of o.values())g.reject(ur);o.add(l),f.async_deriveds.set(u,l)}const p=(g,m=void 0)=>{c==null||c(),o.delete(l),m!==ur&&(f.activate(),m?(s.f|=st,Wt(s,m)):(s.f&st&&(s.f^=st),Wt(s,g)),f.deactivate())};l.promise.then(p,g=>p(null,g||"unknown"))}),Ii(()=>{for(const u of o)u.reject(ur)}),new Promise(u=>{function l(f){function c(){f===i?u(s):l(i)}f.then(c,c)}l(i)})}function Vn(e){const t=wr(e);return ao(t),t}function Rs(e){const t=wr(e);return t.equals=Bs,t}function ru(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)re(t[r])}}function Ni(e){var t,r=T,n=e.parent;if(!Ke&&n!==null&&e.v!==k&&n.f&(z|ee))return La(),e.v;je(n);try{ru(e),t=ho(e)}finally{je(r)}return t}function $s(e){var t=Ni(e);if(!e.equals(t)&&(e.wv=lo(),(!(E!=null&&E.is_fork)||e.deps===null)&&(E!==null?(E.capture(e,t,!0),ot==null||ot.capture(e,t,!0)):e.v=t,e.deps===null))){j(e,V);return}Ke||(X!==null?(_n()||E!=null&&E.is_fork)&&X.set(e,t):Hi(e))}function nu(e){var t;if(e.effects!==null)for(const r of e.effects)(r.teardown||r.ac)&&((t=r.teardown)==null||t.call(r),r.ac!==null&&Rr(()=>{r.ac.abort(Mr),r.ac=null}),r.fn!==null&&(r.teardown=Fe),Tr(r,0),Ci(r))}function Ds(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&t.fn!==null&&Yt(t)}let Nn=null,It=null,E=null,ot=null,X=null,qn=null,mr=!1,On=!1,gr=null,Wr=null;var Vi=0;let iu=1;var Ut,Ft,Gt,qe,jt,Xe,Hr,Me,Ce,kt,mt,P,Xn,Us,zn,lr,Wn,Fs,Gs,js,Lt,su,fr;const cn=class cn{constructor(){S(this,P);L(this,"id",iu++);L(this,"started",!1);L(this,"linked",!0);L(this,"prev",null);L(this,"next",null);L(this,"async_deriveds",new Map);L(this,"current",new Map);L(this,"previous",new Map);S(this,Ut,new Set);S(this,Ft,new Set);S(this,Gt,0);S(this,qe,new Map);S(this,jt,null);S(this,Xe,[]);S(this,Hr,[]);S(this,Me,new Map);S(this,Ce,new Map);S(this,kt,new Set);L(this,"is_fork",!1);S(this,mt,!1);It===null?Nn=It=this:(It.next=this,this.prev=It),It=this}skip_effect(t){h(this,Ce).has(t)||h(this,Ce).set(t,{d:[],m:[]}),h(this,kt).delete(t)}unskip_effect(t,r=n=>this.schedule(n)){var n=h(this,Ce).get(t);if(n){h(this,Ce).delete(t);for(var i of n.d)j(i,$),r(i);for(i of n.m)j(i,he),r(i)}h(this,kt).add(t)}capture(t,r,n=!1){t.v!==k&&!this.previous.has(t)&&this.previous.set(t,t.v),t.f&st||(this.current.set(t,[r,n]),X==null||X.set(t,r)),this.is_fork||(t.v=r)}activate(){E=this}deactivate(){E=null,X=null}flush(){try{On=!0,E=this,b(this,P,lr).call(this)}finally{Vi=0,qn=null,gr=null,Wr=null,On=!1,E=null,X=null,Ge.clear()}}discard(){var t;for(const r of h(this,Ft))r(this);h(this,Ft).clear();for(const r of this.async_deriveds.values())r.reject(ur);b(this,P,fr).call(this),(t=h(this,jt))==null||t.resolve()}register_created_effect(t){h(this,Hr).push(t)}increment(t,r){var n;if(y(this,Gt,h(this,Gt)+1),t){let i=(n=h(this,qe).get(r))!=null?n:0;h(this,qe).set(r,i+1)}}decrement(t,r){var n;if(y(this,Gt,h(this,Gt)-1),t){let i=(n=h(this,qe).get(r))!=null?n:0;i===1?h(this,qe).delete(r):h(this,qe).set(r,i-1)}h(this,mt)||(y(this,mt,!0),Ze(()=>{y(this,mt,!1),this.linked&&this.flush()}))}transfer_reactions(t){for(const[r,n]of t)this.add_dirty_reaction(r,n);t.clear()}add_dirty_reaction(t,r){(r===$||h(this,Me).get(t)!==$)&&h(this,Me).set(t,r)}oncommit(t){h(this,Ut).add(t)}ondiscard(t){h(this,Ft).add(t)}settled(){var t;return((t=h(this,jt))!=null?t:y(this,jt,Ss())).promise}static ensure(){if(E===null){const t=E=new cn;!On&&!mr&&Ze(()=>{t.started||t.flush()})}return E}apply(){{X=null;return}}schedule(t){var r;if(qn=t,(r=t.b)!=null&&r.is_pending&&t.f&(Xt|Ir|As)&&!(t.f&Ht)){t.b.defer_effect(t);return}h(this,Xe).push(t)}};Ut=new WeakMap,Ft=new WeakMap,Gt=new WeakMap,qe=new WeakMap,jt=new WeakMap,Xe=new WeakMap,Hr=new WeakMap,Me=new WeakMap,Ce=new WeakMap,kt=new WeakMap,mt=new WeakMap,P=new WeakSet,Xn=function(){if(this.is_fork)return!0;for(const t of h(this,qe).keys())if(!b(this,P,Us).call(this,t))return!0;return!1},Us=function(t){for(var r=t;r!==null;r=r.parent)if(h(this,Ce).has(r))return!0;return!1},zn=function(){var t=[];for(const s of h(this,Xe))if(!(s.f&z||!(s.f&($|he)))){for(var r=s,n=!1;r.parent!==null;){r=r.parent;var i=r.f;if(i&(Je|He)){if(!(i&V)){n=!0;break}r.f^=V}}n||t.push(r)}return y(this,Xe,[]),t},lr=function(){var o,u,l,f;this.started=!0;for(const[c,p]of h(this,Me))j(c,p),this.schedule(c);this.apply();for(var t=gr=[],r=[],n=Wr=[];h(this,Xe).length>0;){Vi++>1e3&&(b(this,P,fr).call(this),ou());for(const c of b(this,P,zn).call(this))try{b(this,P,Wn).call(this,c,t,r)}catch(p){throw qs(c),b(this,P,Xn).call(this)||this.discard(),p}}if(E=null,n.length>0){var i=cn.ensure();for(const c of n)i.schedule(c)}if(gr=null,Wr=null,b(this,P,Xn).call(this)){b(this,P,Lt).call(this,r),b(this,P,Lt).call(this,t);for(const[c,p]of h(this,Ce))Vs(c,p);n.length>0&&b(o=E,P,lr).call(o);return}const s=b(this,P,Fs).call(this);if(s){b(this,P,Lt).call(this,r),b(this,P,Lt).call(this,t),b(u=s,P,js).call(u,this);return}h(this,Me).clear();for(const c of h(this,Ut))c(this);h(this,Ut).clear(),ot=this,qi(r),qi(t),ot=null,(l=h(this,jt))==null||l.resolve();var a=E;h(this,Gt)===0&&(h(this,Xe).length===0||a!==null)&&b(this,P,fr).call(this),a!==null&&(Ge.clear(),b(f=a,P,lr).call(f))},Wn=function(t,r,n){t.f^=V;for(var i=t.first;i!==null;){var s=i.f,a=(s&(He|Je))!==0,o=a&&(s&V)!==0,u=o||(s&ee)!==0||h(this,Ce).has(i);if(!u&&i.fn!==null){a?i.f^=V:s&Xt?r.push(i):Dr(i)&&(s&Te&&this.add_dirty_reaction(i,he),Yt(i));var l=i.first;if(l!==null){i=l;continue}}for(;i!==null;){var f=i.next;if(f!==null){i=f;break}i=i.parent}}},Fs=function(){for(var t=this.prev;t!==null;t=t.prev)if(!t.is_fork&&b(this,P,Gs).call(this,t))return t;return null},Gs=function(t){for(const[r,[,n]]of this.current)if(!n&&t.current.has(r))return!0;return!1},js=function(t){var n;for(const[i,s]of t.current)!this.previous.has(i)&&t.previous.has(i)&&this.previous.set(i,t.previous.get(i)),this.current.set(i,s);for(const[i,s]of t.async_deriveds){const a=this.async_deriveds.get(i);a&&s.promise.then(a.resolve).catch(a.reject)}t.async_deriveds.clear(),this.transfer_reactions(h(t,Me));const r=i=>{var s=i.reactions;if(s!==null&&!(i.f&Z&&!(i.f&($|he))))for(const u of s){var a=u.f;if(a&Z)r(u);else{var o=u;a&(Dt|Te)&&!this.async_deriveds.has(o)&&(h(this,Me).delete(o),j(o,$),this.schedule(o))}}};for(const i of this.current.keys())r(i);this.oncommit(()=>t.discard()),b(n=t,P,fr).call(n),E=this,b(this,P,lr).call(this)},Lt=function(t){for(var r=0;r<t.length;r+=1)Cs(t[r],h(this,Me))},su=function(){var c,p;for(let d=Nn;d!==null;d=d.next){var t=d.id<this.id,r=[];for(const[v,[g,m]]of this.current){if(d.current.has(v)){var n=d.current.get(v)[0];if(t&&g!==n)d.current.set(v,[g,m]);else continue}r.push(v)}if(t)for(const[v,g]of this.async_deriveds){const m=d.async_deriveds.get(v);m&&g.promise.then(m.resolve).catch(m.reject)}var i=[...d.current.keys()].filter(v=>!d.current.get(v)[1]);if(!(!d.started||i.length===0)){var s=i.filter(v=>!this.current.has(v));if(s.length===0)t&&d.discard();else if(r.length>0){if(t)for(const v of h(this,kt))d.unskip_effect(v,g=>{var m;g.f&(Te|Dt)?d.schedule(g):b(m=d,P,Lt).call(m,[g])});d.activate();var a=new Set,o=new Map;for(var u of r)ks(u,s,a,o);o=new Map;var l=[...d.current].filter(([v,g])=>{const m=this.current.get(v);return m?m[0]!==g[0]||m[1]!==g[1]:!0}).map(([v])=>v);if(l.length>0)for(const v of h(this,Hr))!(v.f&(z|ee|tn))&&Oi(v,l,o)&&(v.f&(Dt|Te)?(j(v,$),d.schedule(v)):d.add_dirty_reaction(v,$));if(h(d,Xe).length>0&&!h(d,mt)){d.apply();for(var f of b(c=d,P,zn).call(c))b(p=d,P,Wn).call(p,f,[],[])}d.deactivate()}}}},fr=function(){if(this.linked){var t=this.prev,r=this.next;t===null?Nn=r:t.next=r,r===null?It=t:r.prev=t,this.linked=!1}};let at=cn;function Ve(e){var t=mr,r=ot;ot=null,mr=!0;try{for(var n;;){if(Qa(),E===null)return n;E.flush()}}finally{mr=t,ot=r}}function ou(){try{ka()}catch(e){$e(e,qn)}}let ye=null;function qi(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if(!(n.f&(z|ee))&&Dr(n)&&(ye=new Set,Yt(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&io(n),(ye==null?void 0:ye.size)>0)){Ge.clear();for(const i of ye){if(i.f&(z|ee))continue;const s=[i];let a=i.parent;for(;a!==null;)ye.has(a)&&(ye.delete(a),s.push(a)),a=a.parent;for(let o=s.length-1;o>=0;o--){const u=s[o];u.f&(z|ee)||Yt(u)}}ye.clear()}}ye=null}}function ks(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&Z?ks(i,t,r,n):s&(Dt|Te)&&!(s&$)&&Oi(i,t,n)&&(j(i,$),Pi(i))}}function Oi(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(yr.call(t,i))return!0;if(i.f&Z&&Oi(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function Pi(e){E.schedule(e)}function Vs(e,t){if(!(e.f&He&&e.f&V)){e.f&$?t.d.push(e):e.f&he&&t.m.push(e),j(e,V);for(var r=e.first;r!==null;)Vs(r,t),r=r.next}}function qs(e){j(e,V);for(var t=e.first;t!==null;)qs(t),t=t.next}let on=new Set;const Ge=new Map;let Xs=!1;function At(e,t){var r={f:0,v:e,reactions:null,equals:Ps,rv:0,wv:0};return r}function ke(e,t){const r=At(e);return ao(r),r}function Bi(e,t=!1,r=!0){const n=At(e);return t||(n.equals=Bs),n}function we(e,t,r=!1){A!==null&&(!Se||A.f&tn)&&Is()&&A.f&(Z|Te|Dt|tn)&&(_e===null||!_e.has(e))&&Wa();let n=r?dt(t):t;return Wt(e,n,Wr)}var ht=null,Yn=0;function Wt(e,t,r=null){if(!e.equals(t)){Ke?Ge.set(e,t):Ge.has(e)||Ge.set(e,e.v);var n=at.ensure();if(n.capture(e,t),e.f&Z){const i=e;e.f&$&&Ni(i),X===null&&Hi(i)}e.wv=lo(),ht=null,Yn=0,zs(e,$,r),ht=null,T!==null&&T.f&V&&!(T.f&(He|Je))&&(pe===null?mu([e]):pe.push(e)),!n.is_fork&&on.size>0&&!Xs&&au()}return t}function au(){Xs=!1;for(const e of on){e.f&V&&j(e,he);let t;try{t=Dr(e)}catch(r){t=!0}t&&Yt(e)}on.clear()}function _r(e){we(e,e.v+1)}function zs(e,t,r){var n=e.reactions;if(n!==null){var i=n.length;if(Yn+=i,Yn>1e5&&ht===null&&(ht=new Set),ht!==null){if(ht.has(e))return;ht.add(e)}for(var s=0;s<i;s++){var a=n[s],o=a.f,u=(o&$)===0;if(u&&j(a,t),o&tn)on.add(a);else if(o&Z){var l=a;X==null||X.delete(l),zs(l,he,r)}else if(u){var f=a;o&Te&&ye!==null&&ye.add(f),r!==null?r.push(f):Pi(f)}}}}function dt(e){if(typeof e!="object"||e===null||yt in e||Ns in e)return e;const t=Ei(e);if(t!==Pa&&t!==Ba)return e;var r=new Map,n=xs(e),i=ke(0),s=wt,a=o=>{if(wt===s)return o();var u=A,l=wt;be(null),Wi(s);var f=o();return be(u),Wi(l),f};return n&&r.set("length",ke(e.length)),new Proxy(e,{defineProperty(o,u,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&Xa();var f=r.get(u);return f===void 0?a(()=>{var c=ke(l.value);return r.set(u,c),c}):we(f,l.value,!0),!0},deleteProperty(o,u){var l=r.get(u);if(l===void 0){if(u in o){const f=a(()=>ke(k));r.set(u,f),_r(i)}}else we(l,k),_r(i);return!0},get(o,u,l){var d;if(u===yt)return e;var f=r.get(u),c=u in o;if(f===void 0&&(!c||(d=Et(o,u))!=null&&d.writable)&&(f=a(()=>{var v=dt(c?o[u]:k),g=ke(v);return g}),r.set(u,f)),f!==void 0){var p=M(f);return p===k?void 0:p}return Reflect.get(o,u,l)},getOwnPropertyDescriptor(o,u){var p;(p=this.has)==null||p.call(this,o,u);var l=Reflect.getOwnPropertyDescriptor(o,u),f=r.get(u);if(f!==void 0){var c=M(f);if(c===k)return;if(l&&"value"in l)l.value=c;else return{enumerable:!0,configurable:!0,value:c,writable:!0}}return l},has(o,u){var p;if(u===yt)return!0;var l=r.get(u),f=l!==void 0&&l.v!==k||Reflect.has(o,u);if(l!==void 0||(T!==null||A!==null)&&(!f||(p=Et(o,u))!=null&&p.writable)){l===void 0&&(l=a(()=>{var d=f?dt(o[u]):k,v=ke(d);return v}),r.set(u,l));var c=M(l);if(c===k)return!1}return f},set(o,u,l,f){var O;var c=r.get(u),p=u in o;if(n&&u==="length")for(var d=l;d<c.v;d+=1){var v=r.get(d+"");v!==void 0?we(v,k):d in o&&(v=a(()=>ke(k)),r.set(d+"",v))}if(c===void 0)(!p||(O=Et(o,u))!=null&&O.writable)&&(c=a(()=>ke(void 0)),we(c,dt(l)),r.set(u,c));else{p=c.v!==k;var g=a(()=>dt(l));we(c,g)}var m=Reflect.getOwnPropertyDescriptor(o,u);if(m!=null&&m.set&&m.set.call(f,l),!p){if(n&&typeof u=="string"){var _=r.get("length"),H=Number(u);Number.isInteger(H)&&H>=_.v&&we(_,H+1)}_r(i)}return!0},ownKeys(o){M(i);var u=Reflect.ownKeys(o).filter(c=>{var p=r.get(c);return p===void 0||p.v!==k});for(var[l,f]of r)f.v!==k&&!(l in o)&&u.push(l);return u},setPrototypeOf(){za()}})}var Xi,Ws,Ys,Zs;function Zn(){if(Xi===void 0){Xi=window,Ws=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Ys=Et(t,"firstChild").get,Zs=Et(t,"nextSibling").get,ki(e)&&(e[jn]=void 0,e[zr]=null,e[kn]=void 0,e.__e=void 0),ki(r)&&(r[ar]=void 0)}}function se(e=""){return document.createTextNode(e)}function K(e){return Ys.call(e)}function Ne(e){return Zs.call(e)}function br(e,t){if(!w)return K(e);var r=K(x);if(r===null)r=x.appendChild(se());else if(t&&r.nodeType!==Cr){var n=se();return r==null||r.before(n),W(n),n}return t&&gn(r),W(r),r}function Qs(e,t=!1){if(!w){var r=K(e);return r instanceof Comment&&r.data===""?Ne(r):r}if(t){if((x==null?void 0:x.nodeType)!==Cr){var n=se();return x==null||x.before(n),W(n),n}gn(x)}return x}function hr(e,t=!1){if(!w)return K(e);var r=br(e,t);return vr(e),r}function Rt(e,t=1,r=!1){let n=w?x:e;for(var i;t--;)i=n,n=Ne(n);if(!w)return n;if(r){if((n==null?void 0:n.nodeType)!==Cr){var s=se();return n===null?i==null||i.after(s):n.before(s),W(s),s}gn(n)}return W(n),n}function Js(e){e.textContent=""}function Ks(){return!1}function mn(e,t,r){return t==null||t===Es?r?document.createElement(e,{is:r}):document.createElement(e):r?document.createElementNS(t,e,{is:r}):document.createElementNS(t,e)}function gn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Cr;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function uu(e){var t=T;if(t===null)return A.f|=st,e;if(!(t.f&Ht)&&!(t.f&Xt))throw e;$e(e,t)}function $e(e,t){if(e===Qe)throw e;if(!(t!==null&&t.f&z)){for(;t!==null;){if(t.f&Gn&&!(t.f&(z|xr))){if(!(t.f&Ht))throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}}function eo(e){T===null&&(A===null&&ja(),Ga()),Ke&&Fa()}function lu(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Oe(e,t){var a;var r=T;r!==null&&r.f&ee&&(e|=ee);var n={ctx:te,deps:null,nodes:null,f:e|$|Ae,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};E==null||E.register_created_effect(n);var i=n;if(e&Xt)gr!==null?gr.push(n):at.ensure().schedule(n);else if(t!==null){try{Yt(n)}catch(o){throw re(n),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&Nt)&&(i=i.first,e&Te&&e&Tt&&i!==null&&(i.f|=Tt))}if(i!==null&&(i.parent=r,r!==null&&lu(i,r),A!==null&&A.f&Z&&!(e&Je))){var s=A;((a=s.effects)!=null?a:s.effects=[]).push(i)}return n}function _n(){return A!==null&&!Se}function Ii(e){const t=Oe(Ir,null);return j(t,V),t.teardown=e,t}function fu(e){var i;eo();var t=T.f,r=!A&&(t&He)!==0&&te!==null&&!te.i;if(r){var n=te;((i=n.e)!=null?i:n.e=[]).push(e)}else return to(e)}function to(e){return Oe(Xt|Hs,e)}function hu(e){return eo(),Oe(Ir|Hs,e)}function cu(e){at.ensure();const t=Oe(Je|Nt,e);return()=>{re(t)}}function du(e){at.ensure();const t=Oe(Je|Nt,e);return(r={})=>new Promise(n=>{r.outro?xt(t,()=>{re(t),n(void 0)}):(re(t),n(void 0))})}function Mi(e){return Oe(Xt,e)}function pu(e){return Oe(Dt|Nt,e)}function bn(e,t=0){return Oe(Ir|t,e)}function Er(e,t=[],r=[],n=[]){Ka(n,t,r,i=>{Oe(Ir,()=>{e(...i.map(M))})})}function $r(e,t=0){var r=Oe(Te|t,e);return r}function ge(e){return Oe(He|Nt,e)}function ro(e){var t=e.teardown;if(t!==null){const r=Ke,n=A;zi(!0),be(null);try{t.call(null)}catch(i){$e(i,e.parent)}finally{zi(r),be(n)}}}function Ci(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Rr(()=>{i.abort(Mr)});var n=r.next;r.f&Je?r.parent=null:re(r,t),r=n}}function vu(e){for(var t=e.first;t!==null;){var r=t.next;t.f&He||re(t),t=r}}function re(e,t=!0){var r=!1;(t||e.f&Ia)&&e.nodes!==null&&e.nodes.end!==null&&(no(e.nodes.start,e.nodes.end),r=!0),e.f|=xr,Ci(e,t&&!r),Tr(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();ro(e),e.f^=xr,e.f|=z;var i=e.parent;i!==null&&i.first!==null&&io(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function no(e,t){for(;e!==null;){var r=e===t?null:Ne(e);e.remove(),e=r}}function io(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 xt(e,t,r=!0){var n=[];e.f|=yi,so(e,n,!0);var i=()=>{r&&re(e),t&&t()},s=n.length;if(s>0){var a=()=>--s||i();for(var o of n)o.out(a)}else i()}function so(e,t,r){if(!(e.f&ee)){e.f^=ee;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;if(!(i.f&Je)){var a=(i.f&Tt)!==0||(i.f&He)!==0&&(e.f&Te)!==0;so(i,t,a?r:!1)}i=s}}}function an(e){e.f&=~yi,oo(e,!0)}function oo(e,t){if(!(e.f&yi)&&e.f&ee){e.f^=ee,e.f&V||(j(e,$),at.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&Tt)!==0||(r.f&He)!==0;oo(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 Li(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:Ne(r);t.append(r),r=i}}let Ke=!1;function zi(e){Ke=e}let A=null,Se=!1;function be(e){A=e}let T=null;function je(e){T=e}let _e=null;function ao(e){A!==null&&(A.f&rn||A.f&Z)&&(_e!=null?_e:_e=new Set).add(e)}let ie=null,fe=0,pe=null;function mu(e){pe=e}let uo=1,pt=0,wt=pt;function Wi(e){wt=e}function lo(){return++uo}function Dr(e){var t=e.f;if(t&$)return!0;if(t&he){for(var r=e.deps,n=r.length,i=0;i<n;i++){var s=r[i];if(Dr(s)&&$s(s),s.wv>e.wv)return!0}t&Ae&&X===null&&j(e,V)}return!1}function fo(e,t,r=!0){var n=e.reactions;if(n!==null&&!(_e!==null&&_e.has(e)))for(var i=0;i<n.length;i++){var s=n[i];s.f&Z?fo(s,t,!1):t===s&&(r?j(s,$):s.f&V&&j(s,he),Pi(s))}}function ho(e){var t=ie,r=fe,n=pe,i=A,s=_e,a=te,o=Se,u=wt,l=e.f;ie=null,fe=0,pe=null,A=l&(He|Je)?null:e,_e=null,zt(e.ctx),Se=!1,wt=++pt,e.ac!==null&&(Rr(()=>{e.ac.abort(Mr)}),e.ac=null);try{e.f|=rn;var f=e.fn,c=f();e.f|=Ht;var p=Yi(e);if(Is()&&pe!==null&&!Se&&p!==null&&!(e.f&(Z|he|$)))for(var d=0;d<pe.length;d++)fo(pe[d],e);if(i!==null&&i!==e){if(pt++,i.deps!==null)for(let v=0;v<r;v+=1)i.deps[v].rv=pt;if(t!==null)for(const v of t)v.rv=pt;pe!==null&&(n===null?n=pe:n.push(...pe))}return e.f&st&&(e.f^=st),c}catch(v){return Yi(e),uu(v)}finally{e.f^=rn,ie=t,fe=r,pe=n,A=i,_e=s,zt(a),Se=o,wt=u}}function Yi(e){var i,s;var t=e.deps,r=E==null?void 0:E.is_fork;if(ie!==null){var n;if(r||Tr(e,fe),t!==null&&fe>0)for(t.length=fe+ie.length,n=0;n<ie.length;n++)t[fe+n]=ie[n];else e.deps=t=ie;if(_n()&&e.f&Ae)for(n=fe;n<t.length;n++)((s=(i=t[n]).reactions)!=null?s:i.reactions=[]).push(e)}else!r&&t!==null&&fe<t.length&&(Tr(e,fe),t.length=fe);return t}function gu(e,t){let r=t.reactions;if(r!==null){var n=Oa.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&Z&&(ie===null||!yr.call(ie,t))){var s=t;s.f&Ae&&(s.f^=Ae),s.v!==k&&Hi(s),s.ac!==null&&Rr(()=>{s.ac.abort(Mr),s.ac=null,j(s,$)}),nu(s),Tr(s,0)}}function Tr(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)gu(e,r[n])}function Yt(e){var t=e.f;if(!(t&z)){j(e,V);var r=T;T=e;try{t&(Te|As)?vu(e):Ci(e),ro(e);var n=ho(e);e.teardown=typeof n=="function"?n:null,e.wv=uo;var i;ys&&Za&&e.f&$&&e.deps}finally{T=r}}}function _u(){return Hn(this,null,function*(){yield Promise.resolve(),Ve()})}function M(e){var f;var t=e.f,r=(t&Z)!==0;if(A!==null&&!Se){var n=T!==null&&(T.f&z)!==0;if(!n&&(_e===null||!_e.has(e))){var i=A.deps;if(A.f&rn)e.rv<pt&&(e.rv=pt,ie===null&&i!==null&&i[fe]===e?fe++:ie===null?ie=[e]:ie.push(e));else{(f=A.deps)!=null||(A.deps=[]),yr.call(A.deps,e)||A.deps.push(e);var s=e.reactions;s===null?e.reactions=[A]:yr.call(s,A)||s.push(A)}}}if(Ke&&Ge.has(e))return Ge.get(e);if(r){var a=e;if(Ke){var o=a.v;return(!(a.f&V)&&a.reactions!==null||po(a))&&(o=Ni(a)),Ge.set(a,o),o}var u=(a.f&Ae)===0&&!Se&&A!==null&&(A.f&Ae)!==0,l=(a.f&Ht)===0;Dr(a)&&(u&&(a.f|=Ae),$s(a)),u&&!l&&(Ds(a),co(a))}if(X!=null&&X.has(e))return X.get(e);if(e.f&st)throw e.v;return e.v}function co(e){if(e.f|=Ae,e.deps!==null)for(const r of e.deps){var t=r.reactions;t===null?r.reactions=[e]:yr.call(t,e)||t.push(e),r.f&Z&&!(r.f&Ae)&&(Ds(r),co(r))}}function po(e){if(e.v===k)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Ge.has(t)||t.f&Z&&po(t))return!0;return!1}function tr(e){var t=Se;try{return Se=!0,e()}finally{Se=t}}function bu(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(yt in e)Qn(e);else if(!Array.isArray(e))for(let t in e){const r=e[t];typeof r=="object"&&r&&yt in r&&Qn(r)}}}function Qn(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Qn(e[n],t)}catch(i){}const r=Ei(e);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const n=ws(r);for(let i in n){const s=n[i].get;if(s)try{s.call(e)}catch(a){}}}}}const vt=Symbol("events"),vo=new Set,Jn=new Set;function Eu(e){if(!w)return;e.removeAttribute("onload"),e.removeAttribute("onerror");const t=e.__e;t!==void 0&&(e.__e=void 0,queueMicrotask(()=>{e.isConnected&&e.dispatchEvent(t)}))}function yu(e,t,r,n={}){function i(s){if(n.capture||Kn.call(t,s),!s.cancelBubble)return Rr(()=>r==null?void 0:r.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?(i.__removed=!1,Ze(()=>{i.__removed||t.addEventListener(e,i,n)})):t.addEventListener(e,i,n),i}function xu(e,t,r,n,i){var s={capture:n,passive:i},a=yu(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Ii(()=>{a.__removed=!0,t.removeEventListener(e,a,s)})}function wu(e,t,r){var n;((n=t[vt])!=null?n:t[vt]={})[e]=r}function Tu(e){for(var t=0;t<e.length;t++)vo.add(e[t]);for(var r of Jn)r(e)}let Pn=null,Bn=!1;function Kn(e){var g,m;var t=this,r=t.ownerDocument,n=e.type,i=((g=e.composedPath)==null?void 0:g.call(e))||[],s=i[0]||e.target;Pn=e,Bn||(Bn=!0,setTimeout(()=>{Bn=!1,Pn=null}));var a=0,o=Pn===e&&e[vt];if(o){var u=i.indexOf(o);if(u!==-1&&(t===document||t===window)){e[vt]=t;return}var l=i.indexOf(t);if(l===-1)return;u<=l&&(a=u)}if(s=i[a]||e.target,s!==t){qt(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=A,c=T;be(null),je(null);try{for(var p,d=[];s!==null&&s!==t;){try{var v=(m=s[vt])==null?void 0:m[n];v!=null&&(!s.disabled||e.target===s)&&v.call(s,e)}catch(_){p?d.push(_):p=_}if(e.cancelBubble)break;a++,s=a<i.length?i[a]:null}if(p){for(let _ of d)queueMicrotask(()=>{throw _});throw p}}finally{e[vt]=t,delete e.currentTarget,be(f),je(c)}}}var gs;const In=((gs=globalThis==null?void 0:globalThis.window)==null?void 0:gs.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Su(e){var t;return(t=In==null?void 0:In.createHTML(e))!=null?t:e}function mo(e){var t=mn("template");return t.innerHTML=Su(e.replaceAll("<!>","<!---->")),t.content}function ce(e,t){var r=T;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Ur(e,t){var r=(t&Sa)!==0,n=(t&Aa)!==0,i,s=!e.startsWith("<!>");return()=>{if(w)return ce(x,null),x;i===void 0&&(i=mo(s?e:"<!>"+e),r||(i=K(i)));var a=n||Ws?document.importNode(i,!0):i.cloneNode(!0);if(r){var o=K(a),u=a.lastChild;ce(o,u)}else ce(a,a);return a}}function Au(e,t,r="svg"){var n=!e.startsWith("<!>"),i=`<${r}>${n?e:"<!>"+e}</${r}>`,s;return()=>{if(w)return ce(x,null),x;if(!s){var a=mo(i),o=K(a);s=K(o)}var u=s.cloneNode(!0);return ce(u,u),u}}function Hu(e,t){return Au(e,t,"svg")}function Nu(e=""){if(!w){var t=se(e+"");return ce(t,t),t}var r=x;return r.nodeType!==Cr?(r.before(r=se()),W(r)):gn(r),ce(r,r),r}function Ou(){if(w)return ce(x,null),x;var e=document.createDocumentFragment(),t=document.createComment(""),r=se();return e.append(t,r),ce(t,r),e}function $t(e,t){if(w){var r=T;(!(r.f&Ht)||r.nodes.end===null)&&(r.nodes.end=x),St();return}e!==null&&e.before(t)}const Pu=["touchstart","touchmove"];function Bu(e){return Pu.includes(e)}function go(e){let t=0,r=At(0),n;return()=>{_n()&&(M(r),bn(()=>(t===0&&(n=tr(()=>e(()=>_r(r)))),t+=1,()=>{Ze(()=>{t-=1,t===0&&(n==null||n(),n=void 0,_r(r))})})))}}var Iu=Tt|Nt;function Mu(e,t,r,n){new Cu(e,t,r,n)}var oe,Nr,ve,gt,Y,ae,Q,ue,Le,_t,nt,Vt,Or,ze,dn,N,_o,bo,ei,rt,Eo,ti,cr,Yr,ri,ni;class Cu{constructor(t,r,n,i){S(this,N);L(this,"parent");L(this,"is_pending",!1);L(this,"transform_error");S(this,oe);S(this,Nr,w?x:null);S(this,ve);S(this,gt);S(this,Y);S(this,ae,null);S(this,Q,null);S(this,ue,null);S(this,Le,null);S(this,_t,0);S(this,nt,0);S(this,Vt,!1);S(this,Or,new Map);S(this,ze,null);S(this,dn,go(()=>(y(this,ze,At(h(this,_t))),()=>{y(this,ze,null)})));var s,a;y(this,oe,t),y(this,ve,r),y(this,gt,o=>{var u=T;u.b=this,u.f|=Gn,n(o)}),this.parent=T.b,this.transform_error=(a=i!=null?i:(s=this.parent)==null?void 0:s.transform_error)!=null?a:o=>o,y(this,Y,$r(()=>{if(w){const o=xi(h(this,Nr));St();const u=o===_i;if(o.startsWith(ji)){const f=JSON.parse(o.slice(ji.length));b(this,N,bo).call(this,f)}else u?b(this,N,Eo).call(this):b(this,N,_o).call(this)}else b(this,N,ti).call(this)},Iu)),w&&y(this,oe,x)}defer_effect(t){Cs(t,h(this,Or))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!h(this,ve).pending}update_pending_count(t,r){b(this,N,ri).call(this,t,r),y(this,_t,h(this,_t)+t),!(!h(this,ze)||h(this,Vt))&&(y(this,Vt,!0),Ze(()=>{y(this,Vt,!1),h(this,ze)&&Wt(h(this,ze),h(this,_t))}))}get_effect_pending(){return h(this,dn).call(this),M(h(this,ze))}error(t){if(t===Qe||!h(this,ve).onerror&&!h(this,ve).failed)throw t;E!=null&&E.is_fork?(h(this,ae)&&E.skip_effect(h(this,ae)),h(this,Q)&&E.skip_effect(h(this,Q)),h(this,ue)&&E.skip_effect(h(this,ue)),E.oncommit(()=>{b(this,N,rt).call(this)||b(this,N,ni).call(this,t)})):b(this,N,ni).call(this,t)}}oe=new WeakMap,Nr=new WeakMap,ve=new WeakMap,gt=new WeakMap,Y=new WeakMap,ae=new WeakMap,Q=new WeakMap,ue=new WeakMap,Le=new WeakMap,_t=new WeakMap,nt=new WeakMap,Vt=new WeakMap,Or=new WeakMap,ze=new WeakMap,dn=new WeakMap,N=new WeakSet,_o=function(){try{y(this,ae,ge(()=>h(this,gt).call(this,h(this,oe))))}catch(t){this.error(t)}},bo=function(t){const r=h(this,ve).failed,{reset:n,invoke_onerror:i}=b(this,N,ei).call(this,t);Ze(i),r&&y(this,ue,ge(()=>{r(h(this,oe),()=>t,()=>n)}))},ei=function(t){var r=!1,n=!1;const i=()=>{if(!b(this,N,rt).call(this)){if(r){Ra();return}r=!0,n&&Ya(),h(this,ue)!==null&&xt(h(this,ue),()=>{y(this,ue,null)}),b(this,N,Yr).call(this,()=>{b(this,N,ti).call(this)})}};return{reset:i,invoke_onerror:()=>{var a,o;if(!b(this,N,rt).call(this))try{n=!0,(o=(a=h(this,ve)).onerror)==null||o.call(a,t,i),n=!1}catch(u){$e(u,h(this,Y)&&h(this,Y).parent)}}}},rt=function(){return(h(this,Y).f&(z|xr))!==0},Eo=function(){const t=h(this,ve).pending;t&&(this.is_pending=!0,y(this,Q,ge(()=>t(h(this,oe)))),Ze(()=>{if(!b(this,N,rt).call(this)){var r=y(this,Le,document.createDocumentFragment()),n=se(),i=!1;if(r.append(n),y(this,ae,b(this,N,Yr).call(this,()=>{try{return ge(()=>h(this,gt).call(this,n))}catch(s){try{this.error(s),i=!0}catch(a){$e(a,h(this,Y).parent)}return null}})),h(this,ae)===null){y(this,Le,null),i&&b(this,N,cr).call(this,E);return}h(this,nt)===0&&(h(this,oe).before(r),y(this,Le,null),xt(h(this,Q),()=>{y(this,Q,null)}),b(this,N,cr).call(this,E))}}))},ti=function(){try{if(this.is_pending=this.has_pending_snippet(),y(this,nt,0),y(this,_t,0),y(this,ae,ge(()=>{h(this,gt).call(this,h(this,oe))})),h(this,nt)>0){var t=y(this,Le,document.createDocumentFragment());Li(h(this,ae),t);const r=h(this,ve).pending;y(this,Q,ge(()=>r(h(this,oe))))}else b(this,N,cr).call(this,E)}catch(r){this.error(r)}},cr=function(t){this.is_pending=!1,t.transfer_reactions(h(this,Or))},Yr=function(t){var r=T,n=A,i=te;je(h(this,Y)),be(h(this,Y)),zt(h(this,Y).ctx);try{return at.ensure(),t()}finally{je(r),be(n),zt(i)}},ri=function(t,r){var n;if(!this.has_pending_snippet()){this.parent&&b(n=this.parent,N,ri).call(n,t,r);return}y(this,nt,h(this,nt)+t),h(this,nt)===0&&(b(this,N,cr).call(this,r),h(this,Q)&&xt(h(this,Q),()=>{y(this,Q,null)}),h(this,Le)&&(h(this,oe).before(h(this,Le)),y(this,Le,null)))},ni=function(t){h(this,ae)&&(re(h(this,ae)),y(this,ae,null)),h(this,Q)&&(re(h(this,Q)),y(this,Q,null)),h(this,ue)&&(re(h(this,ue)),y(this,ue,null)),w&&(W(h(this,Nr)),$a(),W(nn()));let r=h(this,ve).failed;const n=i=>{if(b(this,N,rt).call(this))return;const{reset:s,invoke_onerror:a}=b(this,N,ei).call(this,i);a(),r&&!b(this,N,rt).call(this)&&y(this,ue,b(this,N,Yr).call(this,()=>{try{return ge(()=>{var o=T;o.b=this,o.f|=Gn,r(h(this,oe),()=>i,()=>s)})}catch(o){return $e(o,h(this,Y).parent),null}}))};Ze(()=>{if(!b(this,N,rt).call(this)){var i;try{i=this.transform_error(t)}catch(s){$e(s,h(this,Y)&&h(this,Y).parent);return}i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(n,s=>$e(s,h(this,Y)&&h(this,Y).parent)):n(i)}})};function dr(e,t){var n;var r=t==null?"":typeof t=="object"?`${t}`:t;r!==((n=e[ar])!=null?n:e[ar]=e.nodeValue)&&(e[ar]=r,e.nodeValue=`${r}`)}function yo(e,t){return xo(e,t)}function Lu(e,t){var a;Zn(),t.intro=(a=t.intro)!=null?a:!1;const r=t.target,n=w,i=x;try{for(var s=K(r);s&&(s.nodeType!==er||s.data!==bs);)s=Ne(s);if(!s)throw Qe;Ye(!0),W(s);const o=xo(e,kr(jr({},t),{anchor:s}));return Ye(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
+
`).some(u=>u.startsWith("https://svelte.dev/e/")))throw o;return o!==Qe&&console.warn("Failed to hydrate: ",o),t.recover===!1&&Va(),Zn(),Js(r),Ye(!1),yo(e,t)}finally{Ye(n),W(i)}}const Vr=new Map;function xo(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0,transformError:o}){Zn();var u=void 0,l=du(()=>{var f=r!=null?r:t.appendChild(se());Mu(f,{pending:()=>{}},d=>{Ti({});var v=te;if(s&&(v.c=s),i&&(n.$$events=i),w&&ce(d,null),u=e(d,n)||Ai(),w&&(T.nodes.end=x,x===null||x.nodeType!==er||x.data!==bi))throw Lr(),Qe;Si()},o);var c=new Set,p=d=>{for(var v=0;v<d.length;v++){var g=d[v];if(!c.has(g)){c.add(g);var m=Bu(g);for(const O of[t,document]){var _=Vr.get(O);_===void 0&&(_=new Map,Vr.set(O,_));var H=_.get(g);H===void 0?(O.addEventListener(g,Kn,{passive:m}),_.set(g,1)):_.set(g,H+1)}}}};return p(vn(vo)),Jn.add(p),()=>{var m;for(var d of c)for(const _ of[t,document]){var v=Vr.get(_),g=v.get(d);--g==0?(_.removeEventListener(d,Kn),v.delete(d),v.size===0&&Vr.delete(_)):v.set(d,g)}Jn.delete(p),f!==r&&((m=f.parentNode)==null||m.removeChild(f))}});return ii.set(u,l),u}let ii=new WeakMap;function Ru(e,t){const r=ii.get(e);return r?(ii.delete(e),r(t)):Promise.resolve()}var xe,Re,le,bt,Pr,Br,pn;class Ri{constructor(t,r=!0){L(this,"anchor");S(this,xe,new Map);S(this,Re,new Map);S(this,le,new Map);S(this,bt,new Set);S(this,Pr,!0);S(this,Br,t=>{if(h(this,xe).has(t)){var r=h(this,xe).get(t),n=h(this,Re).get(r);if(n)an(n),h(this,bt).delete(r);else{var i=h(this,le).get(r);i&&(an(i.effect),h(this,Re).set(r,i.effect),h(this,le).delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,a]of h(this,xe)){if(h(this,xe).delete(s),s===t)break;const o=h(this,le).get(a);o&&(re(o.effect),h(this,le).delete(a))}for(const[s,a]of h(this,Re)){if(s===r||h(this,bt).has(s))continue;const o=()=>{if(Array.from(h(this,xe).values()).includes(s)){var l=document.createDocumentFragment();Li(a,l),l.append(se()),h(this,le).set(s,{effect:a,fragment:l})}else re(a);h(this,bt).delete(s),h(this,Re).delete(s)};h(this,Pr)||!n?(h(this,bt).add(s),xt(a,o,!1)):o()}}});S(this,pn,t=>{h(this,xe).delete(t);const r=Array.from(h(this,xe).values());for(const[n,i]of h(this,le))r.includes(n)||(re(i.effect),h(this,le).delete(n))});this.anchor=t,y(this,Pr,r)}ensure(t,r){var n=E,i=Ks();if(r&&!h(this,Re).has(t)&&!h(this,le).has(t))if(i){var s=document.createDocumentFragment(),a=se();s.append(a),h(this,le).set(t,{effect:ge(()=>r(a)),fragment:s})}else h(this,Re).set(t,ge(()=>r(this.anchor)));if(h(this,xe).set(n,t),i){for(const[o,u]of h(this,Re))o===t?n.unskip_effect(u):n.skip_effect(u);for(const[o,u]of h(this,le))o===t?n.unskip_effect(u.effect):n.skip_effect(u.effect);n.oncommit(h(this,Br)),n.ondiscard(h(this,pn))}else w&&(this.anchor=x),h(this,Br).call(this,n)}}xe=new WeakMap,Re=new WeakMap,le=new WeakMap,bt=new WeakMap,Pr=new WeakMap,Br=new WeakMap,pn=new WeakMap;function $u(e,t,...r){var n=new Ri(e);$r(()=>{var s;const i=(s=t())!=null?s:null;n.ensure(i,i&&(a=>i(a,...r)))},Tt)}function Zr(e,t,r=!1){var n;w&&(n=x,St());var i=new Ri(e),s=r?Tt:0;function a(o,u){if(w){var l=xi(n);if(o!==parseInt(l.substring(1))){var f=nn();W(f),i.anchor=f,Ye(!1),i.ensure(o,u),Ye(!0);return}}i.ensure(o,u)}$r(()=>{var o=!1;t((u,l=0)=>{o=!0,a(l,u)}),o||a(-1,null)},s)}const Du=Symbol("NaN");function Uu(e,t,r){w&&St();var n=new Ri(e);$r(()=>{var i=t();i!==i&&(i=Du),n.ensure(i,r)})}function Fu(e,t){return t}function Gu(e,t,r){var c;for(var n=[],i=t.length,s,a=t.length,o=0;o<i;o++){let p=t[o];xt(p,()=>{if(s){if(s.pending.delete(p),s.done.add(p),s.pending.size===0){var d=e.outrogroups;si(e,vn(s.done)),d.delete(s),d.size===0&&(e.outrogroups=null)}}else a-=1},!1)}if(a===0){var u=n.length===0&&r!==null&&e.pending.size===0;if(u){var l=r,f=l.parentNode;Js(f),f.append(l),e.items.clear()}si(e,t,!u)}else s={pending:new Set(t),done:new Set},((c=e.outrogroups)!=null?c:e.outrogroups=new Set).add(s)}function si(e,t,r=!0){var n;if(e.pending.size>0){n=new Set;for(const a of e.pending.values())for(const o of a)n.add(e.items.get(o).e)}for(var i=0;i<t.length;i++){var s=t[i];if(n!=null&&n.has(s)){s.f|=Ue;const a=document.createDocumentFragment();Li(s,a)}else re(t[i],r)}}var Mt;function ju(e,t,r,n,i,s=null){var a=e,o=new Map,u=(t&_s)!==0;if(u){var l=e;a=w?W(K(l)):l.appendChild(se())}w&&St();var f=null,c=Rs(()=>{var H=r();return xs(H)?H:H==null?[]:vn(H)}),p=new Map,d=!0;function v(H){if(!(_.effect.f&z)){_.pending.delete(H);var O=M(c);_.fallback=f,ku(_,O,a,t,n),f!==null&&(O.length===0?f.f&Ue?(f.f^=Ue,pr(f,null,a)):an(f):xt(f,()=>{f=null}))}}function g(H){_.pending.delete(H)}var m=$r(()=>{var H=M(c),O=H.length;let U=!1;if(w){var q=xi(a)===_i;q!==(O===0)&&(a=nn(),W(a),Ye(!1),U=!0)}for(var C=new Set,F=E,Ee=Ks(),R=0;R<O;R+=1){w&&x.nodeType===er&&x.data===bi&&(a=x,U=!0,Ye(!1));var Pe=H[R],Be=n(Pe,R),ne=d?null:o.get(Be);ne?(ne.v&&Wt(ne.v,Pe),ne.i&&Wt(ne.i,R),Ee&&F.unskip_effect(ne.e)):(ne=Vu(o,d?a:Mt!=null?Mt:Mt=se(),Pe,Be,R,i,t,r),d||(ne.e.f|=Ue),o.set(Be,ne)),C.add(Be)}if(O===0&&s&&!f&&(d?f=ge(()=>s(a)):(f=ge(()=>s(Mt!=null?Mt:Mt=se())),f.f|=Ue)),O>C.size&&Ua(),w&&O>0&&W(nn()),!d)if(p.set(F,C),Ee){for(const[Pt,Bt]of o)C.has(Pt)||F.skip_effect(Bt.e);F.oncommit(v),F.ondiscard(g)}else v(F);U&&Ye(!0),M(c)}),_={effect:m,items:o,pending:p,outrogroups:null,fallback:f};d=!1,w&&(a=x)}function sr(e){for(;e!==null&&!(e.f&He);)e=e.next;return e}function ku(e,t,r,n,i){var Pe,Be,ne,Pt,Bt,Ie,et,lt,Fr;var s=(n&ba)!==0,a=t.length,o=e.items,u=sr(e.effect.first),l,f=null,c,p=[],d=[],v,g,m,_;if(s)for(_=0;_<a;_+=1)v=t[_],g=i(v,_),m=o.get(g).e,m.f&Ue||((Be=(Pe=m.nodes)==null?void 0:Pe.a)==null||Be.measure(),(c!=null?c:c=new Set).add(m));for(_=0;_<a;_+=1){if(v=t[_],g=i(v,_),m=o.get(g).e,e.outrogroups!==null)for(const de of e.outrogroups)de.pending.delete(m),de.done.delete(m);if(m.f&ee&&(an(m),s&&((Pt=(ne=m.nodes)==null?void 0:ne.a)==null||Pt.unfix(),(c!=null?c:c=new Set).delete(m))),m.f&Ue)if(m.f^=Ue,m===u)pr(m,null,r);else{var H=f?f.next:u;m===e.effect.last&&(e.effect.last=m.prev),m.prev&&(m.prev.next=m.next),m.next&&(m.next.prev=m.prev),tt(e,f,m),tt(e,m,H),pr(m,H,r),f=m,p=[],d=[],u=sr(f.next);continue}if(m!==u){if(l!==void 0&&l.has(m)){if(p.length<d.length){var O=d[0],U;f=O.prev;var q=p[0],C=p[p.length-1];for(U=0;U<p.length;U+=1)pr(p[U],O,r);for(U=0;U<d.length;U+=1)l.delete(d[U]);tt(e,q.prev,C.next),tt(e,f,q),tt(e,C,O),u=O,f=C,_-=1,p=[],d=[]}else l.delete(m),pr(m,u,r),tt(e,m.prev,m.next),tt(e,m,f===null?e.effect.first:f.next),tt(e,f,m),f=m;continue}for(p=[],d=[];u!==null&&u!==m;)(l!=null?l:l=new Set).add(u),d.push(u),u=sr(u.next);if(u===null)continue}m.f&Ue||p.push(m),f=m,u=sr(m.next)}if(e.outrogroups!==null){for(const de of e.outrogroups)de.pending.size===0&&(si(e,vn(de.done)),(Bt=e.outrogroups)==null||Bt.delete(de));e.outrogroups.size===0&&(e.outrogroups=null)}if(u!==null||l!==void 0){var F=[];if(l!==void 0)for(m of l)m.f&ee||F.push(m);for(;u!==null;)!(u.f&ee)&&u!==e.fallback&&F.push(u),u=sr(u.next);var Ee=F.length;if(Ee>0){var R=n&_s&&a===0?r:null;if(s){for(_=0;_<Ee;_+=1)(et=(Ie=F[_].nodes)==null?void 0:Ie.a)==null||et.measure();for(_=0;_<Ee;_+=1)(Fr=(lt=F[_].nodes)==null?void 0:lt.a)==null||Fr.fix()}Gu(e,F,R)}}s&&Ze(()=>{var de,Gr;if(c!==void 0)for(m of c)(Gr=(de=m.nodes)==null?void 0:de.a)==null||Gr.apply()})}function Vu(e,t,r,n,i,s,a,o){var u=a&ga?a&Ea?At(r):Bi(r,!1,!1):null,l=a&_a?At(i):null;return{v:u,i:l,e:ge(()=>(s(t,u!=null?u:r,l!=null?l:i,o),()=>{e.delete(n)}))}}function pr(e,t,r){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end,s=t&&!(t.f&Ue)?t.nodes.start:r;n!==null;){var a=Ne(n);if(s.before(n),n===i)return;n=a}}function tt(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function qu(e,t,r=!1,n=!1,i=!1,s=!1){var a=e,o="";if(r){var u=e;w&&(a=W(K(u)))}Er(()=>{var g;var l=T;if(o===(o=(g=t())!=null?g:"")){w&&St();return}if(r&&!w){l.nodes=null,u.innerHTML=o,o!==""&&ce(K(u),u.lastChild);return}if(l.nodes!==null&&(no(l.nodes.start,l.nodes.end),l.nodes=null),o!==""){if(w){x.data;for(var f=St(),c=f;f!==null&&(f.nodeType!==er||f.data!=="");)c=f,f=Ne(f);if(f===null)throw Lr(),Qe;ce(x,c),a=W(f);return}var p=n?Ha:i?Na:void 0,d=mn(n?"svg":i?"math":"template",p);d.innerHTML=o;var v=n||i?d:d.content;if(ce(K(v),v.lastChild),n||i)for(;K(v);)a.before(K(v));else a.before(v)}})}function wo(e,t){Mi(()=>{var i,s,a,o;e=(a=(s=(i=T==null?void 0:T.parent)==null?void 0:i.nodes)==null?void 0:s.start)!=null?a:e;var r=e.getRootNode(),n=r.host?r:(o=r.head)!=null?o:r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const u=mn("style");u.id=t.hash,u.textContent=t.code,n.appendChild(u)}})}function Xu(e,t,r){Mi(()=>{var n=tr(()=>t(e,r==null?void 0:r())||{});if(r&&(n!=null&&n.update)){var i=!1,s={};bn(()=>{var a=r();bu(a),i&&wi(s,a)&&(s=a,n.update(a))}),i=!0}if(n!=null&&n.destroy)return()=>n.destroy()})}const Zi=[...`
|
|
3
|
+
\r\f \v\uFEFF`];function zu(e,t,r){var n=e==null?"":""+e;if(t&&(n=n?n+" "+t:t),r){for(var i of Object.keys(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||Zi.includes(n[a-1]))&&(o===n.length||Zi.includes(n[o]))?n=(a===0?"":n.substring(0,a))+n.substring(o+1):a=o}}return n===""?null:n}function Qi(e,t=!1){var r=t?" !important;":";",n="";for(var i of Object.keys(e)){var s=e[i];s!=null&&s!==""&&(n+=" "+i+": "+s+r)}return n}function Wu(e,t){if(t){var r="",n,i;return Array.isArray(t)?(n=t[0],i=t[1]):n=t,n&&(r+=Qi(n)),i&&(r+=Qi(i,!0)),r=r.trim(),r===""?null:r}return String(e)}function oi(e,t,r,n,i,s){var a=e[jn];if(w||a!==r||a===void 0){var o=zu(r,n,s);(!w||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e[jn]=r}else if(s&&i!==s)for(var u in s){var l=!!s[u];(i==null||l!==!!i[u])&&e.classList.toggle(u,l)}return s}function Mn(e,t={},r,n){for(var i in r){var s=r[i];t[i]!==s&&(r[i]==null?e.style.removeProperty(i):e.style.setProperty(i,s,n))}}function Yu(e,t,r,n){var i=e[kn];if(w||i!==t){var s=Wu(t,n);(!w||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e[kn]=t}else n&&(Array.isArray(n)?(Mn(e,r==null?void 0:r[0],n[0]),Mn(e,r==null?void 0:r[1],n[1],"important")):Mn(e,r,n));return n}const Zu=Symbol("is custom element"),Qu=Symbol("is html"),Ju=Ca?"link":"LINK";function ai(e,t,r,n){var i=Ku(e);if(!(w&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Ju))){var s=i[t];s!==(i[t]=r)&&(t==="loading"&&(e[Ma]=r),r==null?e.removeAttribute(t):typeof r!="string"&&el(e).has(t)?e[t]=r:w&&(typeof r=="number"||typeof r=="boolean")&&s===String(r)||e.setAttribute(t,r))}}function Ku(e){var t;return(t=e[zr])!=null?t:e[zr]={[Zu]:e.nodeName.includes("-"),[Qu]:e.namespaceURI===Es}}var Ji=new Map;function el(e){var t=e.getAttribute("is")||e.nodeName,r=Ji.get(t);if(r)return r;Ji.set(t,r=new Set);for(var n,i=e,s=Element.prototype;s!==i;){n=ws(i);for(var a in n)n[a].set&&a!=="innerHTML"&&a!=="textContent"&&a!=="innerText"&&r.add(a);i=Ei(i)}return r}function Cn(e,t){return e===t||(e==null?void 0:e[yt])===t}function tl(e=Ai(),t,r,n){var i=te.r,s=T;return Mi(()=>{var a,o;return bn(()=>{a=o,o=[],tr(()=>{Cn(r(...o),e)||(t(e,...o),a&&Cn(r(...a),e)&&t(null,...a))})}),()=>{let u=s;for(;u!==i&&u.parent!==null&&u.parent.f&xr;)u=u.parent;const l=()=>{o&&Cn(r(...o),e)&&t(null,...o)},f=u.teardown;u.teardown=()=>{l(),f==null||f()}}}),e}function $i(e,t,r){if(e==null)return t(void 0),r&&r(void 0),Fe;const n=tr(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const Ct=[];function To(e,t){return{subscribe:En(e,t).subscribe}}function En(e,t=Fe){let r=null;const n=new Set;function i(o){if(wi(e,o)&&(e=o,r)){const u=!Ct.length;for(const l of n)l[1](),Ct.push(l,e);if(u){for(let l=0;l<Ct.length;l+=2)Ct[l][0](Ct[l+1]);Ct.length=0}}}function s(o){i(o(e))}function a(o,u=Fe){const l=[o,u];return n.add(l),n.size===1&&(r=t(i,s)||Fe),o(e),()=>{n.delete(l),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:a}}function rr(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 To(r,(a,o)=>{let u=!1;const l=[];let f=0,c=Fe;const p=()=>{if(f)return;c();const v=t(n?l[0]:l,a,o);s?a(v):c=typeof v=="function"?v:Fe},d=i.map((v,g)=>$i(v,m=>{l[g]=m,f&=~(1<<g),u&&p()},()=>{f|=1<<g}));return u=!0,p(),function(){Ts(d),c(),u=!1}})}function So(e){let t;return $i(e,r=>t=r)(),t}let qr=!1,ui=Symbol("unmounted");function Ao(e,t,r){var s;const n=(s=r[t])!=null?s:r[t]={store:null,source:Bi(void 0),unsubscribe:Fe};if(n.store!==e&&!(ui in r))if(n.unsubscribe(),n.store=e!=null?e:null,e==null)n.source.v=void 0,n.unsubscribe=Fe;else{var i=!0;n.unsubscribe=$i(e,a=>{i?n.source.v=a:we(n.source,a)}),i=!1}return e&&ui in r?So(e):M(n.source)}function Ho(){const e={};function t(){Ii(()=>{for(var r in e)e[r].unsubscribe();qt(e,ui,{enumerable:!1,value:!0})})}return[e,t]}function rl(e){var t=qr;try{return qr=!1,[e(),qr]}finally{qr=t}}function ft(e,t,r,n){var U,q;var i=!0,s=(r&wa)!==0,a=(r&Ta)!==0,o=n,u=!0,l=void 0,f=()=>a&&i?(l!=null||(l=wr(n)),M(l)):(u&&(u=!1,o=a?tr(n):n),o);let c;if(s){var p=yt in e||Os in e;c=(q=(U=Et(e,t))==null?void 0:U.set)!=null?q:p&&t in e?C=>e[t]=C:void 0}var d,v=!1;s?[d,v]=rl(()=>e[t]):d=e[t],d===void 0&&n!==void 0&&(d=f(),c&&(qa(),c(d)));var g;if(g=()=>{var C=e[t];return C===void 0?f():(u=!0,C)},!(r&xa))return g;if(c){var m=e.$$legacy;return function(C,F){return arguments.length>0?((!F||m||v)&&c(F?g():C),C):g()}}var _=!1,H=(r&ya?wr:Rs)(()=>(_=!1,g()));s&&M(H);var O=T;return function(C,F){if(arguments.length>0){const Ee=F?M(H):s?dt(C):C;return we(H,Ee),_=!0,o!==void 0&&(o=Ee),C}return Ke&&_||O.f&z?H.v:M(H)}}function nl(e){return new il(e)}var We,me;class il{constructor(t){S(this,We);S(this,me);var s,a;var r=new Map,n=(o,u)=>{var l=Bi(u,!1,!1);return r.set(o,l),l};const i=new Proxy(kr(jr({},t.props||{}),{$$events:{}}),{get(o,u){var l;return M((l=r.get(u))!=null?l:n(u,Reflect.get(o,u)))},has(o,u){var l;return u===Os?!0:(M((l=r.get(u))!=null?l:n(u,Reflect.get(o,u))),Reflect.has(o,u))},set(o,u,l){var f;return we((f=r.get(u))!=null?f:n(u,l),l),Reflect.set(o,u,l)}});y(this,me,(t.hydrate?Lu:yo)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:(s=t.intro)!=null?s:!1,recover:t.recover,transformError:t.transformError})),(!((a=t==null?void 0:t.props)!=null&&a.$$host)||t.sync===!1)&&Ve(),y(this,We,i.$$events);for(const o of Object.keys(h(this,me)))o==="$set"||o==="$destroy"||o==="$on"||qt(this,o,{get(){return h(this,me)[o]},set(u){h(this,me)[o]=u},enumerable:!0});h(this,me).$set=o=>{Object.assign(i,o)},h(this,me).$destroy=()=>{Ru(h(this,me))}}$set(t){h(this,me).$set(t)}$on(t,r){h(this,We)[t]=h(this,We)[t]||[];const n=(...i)=>r.call(this,...i);return h(this,We)[t].push(n),()=>{h(this,We)[t]=h(this,We)[t].filter(i=>i!==n)}}$destroy(){h(this,me).$destroy()}}We=new WeakMap,me=new WeakMap;let No;typeof HTMLElement=="function"&&(No=class extends HTMLElement{constructor(t,r,n){super();L(this,"$$ctor");L(this,"$$s");L(this,"$$c");L(this,"$$cn",!1);L(this,"$$d",{});L(this,"$$r",!1);L(this,"$$p_d",{});L(this,"$$l",{});L(this,"$$l_u",new Map);L(this,"$$me");L(this,"$$shadowRoot",null);this.$$ctor=t,this.$$s=r,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}connectedCallback(){return Hn(this,null,function*(){if(this.$$cn=!0,!this.$$c){let r=function(s){return a=>{const o=mn("slot");s!=="default"&&(o.name=s),$t(a,o)}};var t=r;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=sl(this);for(const s of this.$$s)s in i&&(s==="default"&&!this.$$d.children?(this.$$d.children=r(s),n.default=!0):n[s]=r(s));for(const s of this.attributes){const a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=Qr(a,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=nl({component:this.$$ctor,target:this.$$shadowRoot||this,props:kr(jr({},this.$$d),{$$slots:n,$$host:this})}),this.$$me=cu(()=>{bn(()=>{var s;this.$$r=!0;for(const a of en(this.$$c)){if(!((s=this.$$p_d[a])!=null&&s.reflect))continue;this.$$d[a]=this.$$c[a];const o=Qr(a,this.$$d[a],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[a].attribute||a):this.setAttribute(this.$$p_d[a].attribute||a,o)}this.$$r=!1})});for(const s in this.$$l)for(const a of this.$$l[s]){const o=this.$$c.$on(s,a);this.$$l_u.set(a,o)}this.$$l={}}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Qr(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return en(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Qr(e,t,r,n){var s;const i=(s=r[e])==null?void 0:s.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function sl(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Oo(e,t,r,n,i,s){let a=class extends No{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return en(t).map(o=>(t[o].attribute||o).toLowerCase())}};return en(t).forEach(o=>{qt(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){var c;u=Qr(o,u,t),this.$$d[o]=u;var l=this.$$c;if(l){var f=(c=Et(l,o))==null?void 0:c.get;f?l[o]=u:l.$set({[o]:u})}}})}),n.forEach(o=>{qt(a.prototype,o,{get(){var u;return(u=this.$$c)==null?void 0:u[o]}})}),e.element=a,a}var ol=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Po(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Bo(e){let t;const r=go(i=>{let s=!1;const a=e.subscribe(o=>{t=o,s&&i()});return s=!0,a});function n(){return _n()?(r(),t):So(e)}return"set"in e?{get current(){return n()},set current(i){e.set(i)}}:{get current(){return n()}}}var al=function(t){return ul(t)&&!ll(t)};function ul(e){return!!e&&typeof e=="object"}function ll(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||cl(e)}var fl=typeof Symbol=="function"&&Symbol.for,hl=fl?Symbol.for("react.element"):60103;function cl(e){return e.$$typeof===hl}function dl(e){return Array.isArray(e)?[]:{}}function Sr(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Zt(dl(e),e,t):e}function pl(e,t,r){return e.concat(t).map(function(n){return Sr(n,r)})}function vl(e,t){if(!t.customMerge)return Zt;var r=t.customMerge(e);return typeof r=="function"?r:Zt}function ml(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Ki(e){return Object.keys(e).concat(ml(e))}function Io(e,t){try{return t in e}catch(r){return!1}}function gl(e,t){return Io(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function _l(e,t,r){var n={};return r.isMergeableObject(e)&&Ki(e).forEach(function(i){n[i]=Sr(e[i],r)}),Ki(t).forEach(function(i){gl(e,i)||(Io(e,i)&&r.isMergeableObject(t[i])?n[i]=vl(i,r)(e[i],t[i],r):n[i]=Sr(t[i],r))}),n}function Zt(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||pl,r.isMergeableObject=r.isMergeableObject||al,r.cloneUnlessOtherwiseSpecified=Sr;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):_l(e,t,r):Sr(t,r)}Zt.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return Zt(n,i,r)},{})};var bl=Zt,El=bl;const yl=Po(El);var li=function(e,t){return li=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])},li(e,t)};function yn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");li(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var De=function(){return De=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},De.apply(this,arguments)};function xl(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 Ln(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 Rn(e,t){var r=t&&t.cache?t.cache:Ol,n=t&&t.serializer?t.serializer:Hl,i=t&&t.strategy?t.strategy:Sl;return i(e,{cache:r,serializer:n})}function wl(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Tl(e,t,r,n){var i=wl(n)?n:r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.call(this,n),t.set(i,s)),s}function Mo(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.apply(this,n),t.set(i,s)),s}function Co(e,t,r,n,i){return r.bind(t,e,n,i)}function Sl(e,t){var r=e.length===1?Tl:Mo;return Co(e,this,r,t.cache.create(),t.serializer)}function Al(e,t){return Co(e,this,Mo,t.cache.create(),t.serializer)}var Hl=function(){return JSON.stringify(arguments)},Nl=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}(),Ol={create:function(){return new Nl}},$n={variadic:Al},un=function(){return un=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},un.apply(this,arguments)};var B;(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"})(B||(B={}));var D;(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"})(D||(D={}));var Qt;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Qt||(Qt={}));function es(e){return e.type===D.literal}function Pl(e){return e.type===D.argument}function Lo(e){return e.type===D.number}function Ro(e){return e.type===D.date}function $o(e){return e.type===D.time}function Do(e){return e.type===D.select}function Uo(e){return e.type===D.plural}function Bl(e){return e.type===D.pound}function Fo(e){return e.type===D.tag}function Go(e){return!!(e&&typeof e=="object"&&e.type===Qt.number)}function fi(e){return!!(e&&typeof e=="object"&&e.type===Qt.dateTime)}var jo=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Il=/(?:[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 Ml(e){var t={};return e.replace(Il,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 G=function(){return G=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},G.apply(this,arguments)};var Cl=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Ll(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Cl).filter(function(p){return p.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),l=0,f=u;l<f.length;l++){var c=f[l];if(c.length===0)throw new Error("Invalid number skeleton")}r.push({stem:o,options:u})}return r}function Rl(e){return e.replace(/^(.*?)-/,"")}var ts=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ko=/^(@+)?(\+|#+)?[rs]?$/g,$l=/(\*)(0+)|(#+)(0+)|(0+)/g,Vo=/^(0+)$/;function rs(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(ko,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 qo(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 Dl(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)),!Vo.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function ns(e){var t={},r=qo(e);return r||t}function Ul(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=Rl(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=G(G(G({},t),{notation:"scientific"}),i.options.reduce(function(u,l){return G(G({},u),ns(l))},{}));continue;case"engineering":t=G(G(G({},t),{notation:"engineering"}),i.options.reduce(function(u,l){return G(G({},u),ns(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace($l,function(u,l,f,c,p,d){if(l)t.minimumIntegerDigits=f.length;else{if(c&&p)throw new Error("We currently do not support maximum integer digits");if(d)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Vo.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(ts.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ts,function(u,l,f,c,p,d){return f==="*"?t.minimumFractionDigits=l.length:c&&c[0]==="#"?t.maximumFractionDigits=c.length:p&&d?(t.minimumFractionDigits=p.length,t.maximumFractionDigits=p.length+d.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var s=i.options[0];s==="w"?t=G(G({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=G(G({},t),rs(s)));continue}if(ko.test(i.stem)){t=G(G({},t),rs(i.stem));continue}var a=qo(i.stem);a&&(t=G(G({},t),a));var o=Dl(i.stem);o&&(t=G(G({},t),o))}return t}var Xr={"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 Fl(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",l=Gl(t);for((l=="H"||l=="k")&&(o=0);o-- >0;)r+=u;for(;a-- >0;)r=l+r}else i==="J"?r+="H":r+=i}return r}function Gl(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=Xr[n||""]||Xr[r||""]||Xr["".concat(r,"-001")]||Xr["001"];return i[0]}var Dn,jl=new RegExp("^".concat(jo.source,"*")),kl=new RegExp("".concat(jo.source,"*$"));function I(e,t){return{start:e,end:t}}var Vl=!!String.prototype.startsWith&&"_a".startsWith("a",1),ql=!!String.fromCodePoint,Xl=!!Object.fromEntries,zl=!!String.prototype.codePointAt,Wl=!!String.prototype.trimStart,Yl=!!String.prototype.trimEnd,Zl=!!Number.isSafeInteger,Ql=Zl?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},hi=!0;try{var Jl=zo("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");hi=((Dn=Jl.exec("a"))===null||Dn===void 0?void 0:Dn[0])==="a"}catch(e){hi=!1}var is=Vl?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},ci=ql?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},ss=Xl?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},Xo=zl?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}},Kl=Wl?function(t){return t.trimStart()}:function(t){return t.replace(jl,"")},ef=Yl?function(t){return t.trimEnd()}:function(t){return t.replace(kl,"")};function zo(e,t){return new RegExp(e,t)}var di;if(hi){var os=zo("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");di=function(t,r){var n;os.lastIndex=r;var i=os.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else di=function(t,r){for(var n=[];;){var i=Xo(t,r);if(i===void 0||Wo(i)||sf(i))break;n.push(i),r+=i>=65536?2:1}return ci.apply(void 0,n)};var tf=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:D.pound,location:I(o,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(B.UNMATCHED_CLOSING_TAG,I(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&pi(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:D.literal,value:"<".concat(i,"/>"),location:I(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()||!pi(this.char()))return this.error(B.INVALID_TAG,I(o,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(B.UNMATCHED_CLOSING_TAG,I(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:D.tag,value:i,children:a,location:I(n,this.clonePosition())},err:null}:this.error(B.INVALID_TAG,I(o,this.clonePosition())))}else return this.error(B.UNCLOSED_TAG,I(n,this.clonePosition()))}else return this.error(B.INVALID_TAG,I(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&nf(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=I(n,this.clonePosition());return{val:{type:D.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!rf(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 ci.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(),ci(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,I(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(B.EMPTY_ARGUMENT,I(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(B.MALFORMED_ARGUMENT,I(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,I(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:D.argument,value:i,location:I(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,I(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(B.MALFORMED_ARGUMENT,I(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=di(this.message,r),i=r+n.length;this.bumpTo(i);var s=this.clonePosition(),a=I(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(B.EXPECT_ARGUMENT_TYPE,I(a,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var p=ef(c.val);if(p.length===0)return this.error(B.EXPECT_ARGUMENT_STYLE,I(this.clonePosition(),this.clonePosition()));var d=I(f,this.clonePosition());l={style:p,styleLocation:d}}var v=this.tryParseArgumentClose(i);if(v.err)return v;var g=I(i,this.clonePosition());if(l&&is(l==null?void 0:l.style,"::",0)){var m=Kl(l.style.slice(2));if(o==="number"){var c=this.parseNumberSkeletonFromString(m,l.styleLocation);return c.err?c:{val:{type:D.number,value:n,location:g,style:c.val},err:null}}else{if(m.length===0)return this.error(B.EXPECT_DATE_TIME_SKELETON,g);var _=m;this.locale&&(_=Fl(m,this.locale));var p={type:Qt.dateTime,pattern:_,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Ml(_):{}},H=o==="date"?D.date:D.time;return{val:{type:H,value:n,location:g,style:p},err:null}}}return{val:{type:o==="number"?D.number:o==="date"?D.date:D.time,value:n,location:g,style:(s=l==null?void 0:l.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var O=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(B.EXPECT_SELECT_ARGUMENT_OPTIONS,I(O,un({},O)));this.bumpSpace();var U=this.parseIdentifierIfPossible(),q=0;if(o!=="select"&&U.value==="offset"){if(!this.bumpIf(":"))return this.error(B.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,I(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(B.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,B.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),U=this.parseIdentifierIfPossible(),q=c.val}var C=this.tryParsePluralOrSelectOptions(t,o,r,U);if(C.err)return C;var v=this.tryParseArgumentClose(i);if(v.err)return v;var F=I(i,this.clonePosition());return o==="select"?{val:{type:D.select,value:n,options:ss(C.val),location:F},err:null}:{val:{type:D.plural,value:n,options:ss(C.val),offset:q,pluralType:o==="plural"?"cardinal":"ordinal",location:F},err:null}}default:return this.error(B.INVALID_ARGUMENT_TYPE,I(a,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,I(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(B.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,I(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=Ll(t)}catch(i){return this.error(B.INVALID_NUMBER_SKELETON,r)}return{val:{type:Qt.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Ul(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var s,a=!1,o=[],u=new Set,l=i.value,f=i.location;;){if(l.length===0){var c=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(B.EXPECT_PLURAL_ARGUMENT_SELECTOR,B.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;f=I(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}else break}if(u.has(l))return this.error(r==="select"?B.DUPLICATE_SELECT_ARGUMENT_SELECTOR:B.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);l==="other"&&(a=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?B.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:B.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,I(this.clonePosition(),this.clonePosition()));var v=this.parseMessage(t+1,r,n);if(v.err)return v;var g=this.tryParseArgumentClose(d);if(g.err)return g;o.push([l,{value:v.val,location:I(d,this.clonePosition())}]),u.add(l),this.bumpSpace(),s=this.parseIdentifierIfPossible(),l=s.value,f=s.location}return o.length===0?this.error(r==="select"?B.EXPECT_SELECT_ARGUMENT_SELECTOR:B.EXPECT_PLURAL_ARGUMENT_SELECTOR,I(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(B.MISSING_OTHER_CLAUSE,I(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=I(i,this.clonePosition());return s?(a*=n,Ql(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=Xo(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(is(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()&&Wo(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function pi(e){return e>=97&&e<=122||e>=65&&e<=90}function rf(e){return pi(e)||e===47}function nf(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 Wo(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function sf(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 vi(e){e.forEach(function(t){if(delete t.location,Do(t)||Uo(t))for(var r in t.options)delete t.options[r].location,vi(t.options[r].value);else Lo(t)&&Go(t.style)||(Ro(t)||$o(t))&&fi(t.style)?delete t.style.location:Fo(t)&&vi(t.children)})}function of(e,t){t===void 0&&(t={}),t=un({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new tf(e,t).parse();if(r.err){var n=SyntaxError(B[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||vi(r.val),r.val}var Jt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Jt||(Jt={}));var xn=function(e){yn(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),as=function(e){yn(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('", "'),'"'),Jt.INVALID_VALUE,s)||this}return t}(xn),af=function(e){yn(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Jt.INVALID_VALUE,i)||this}return t}(xn),uf=function(e){yn(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,'"'),Jt.MISSING_VALUE,n)||this}return t}(xn),J;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(J||(J={}));function lf(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==J.literal||r.type!==J.literal?t.push(r):n.value+=r.value,t},[])}function ff(e){return typeof e=="function"}function Jr(e,t,r,n,i,s,a){if(e.length===1&&es(e[0]))return[{type:J.literal,value:e[0].value}];for(var o=[],u=0,l=e;u<l.length;u++){var f=l[u];if(es(f)){o.push({type:J.literal,value:f.value});continue}if(Bl(f)){typeof s=="number"&&o.push({type:J.literal,value:r.getNumberFormat(t).format(s)});continue}var c=f.value;if(!(i&&c in i))throw new uf(c,a);var p=i[c];if(Pl(f)){(!p||typeof p=="string"||typeof p=="number")&&(p=typeof p=="string"||typeof p=="number"?String(p):""),o.push({type:typeof p=="string"?J.literal:J.object,value:p});continue}if(Ro(f)){var d=typeof f.style=="string"?n.date[f.style]:fi(f.style)?f.style.parsedOptions:void 0;o.push({type:J.literal,value:r.getDateTimeFormat(t,d).format(p)});continue}if($o(f)){var d=typeof f.style=="string"?n.time[f.style]:fi(f.style)?f.style.parsedOptions:n.time.medium;o.push({type:J.literal,value:r.getDateTimeFormat(t,d).format(p)});continue}if(Lo(f)){var d=typeof f.style=="string"?n.number[f.style]:Go(f.style)?f.style.parsedOptions:void 0;d&&d.scale&&(p=p*(d.scale||1)),o.push({type:J.literal,value:r.getNumberFormat(t,d).format(p)});continue}if(Fo(f)){var v=f.children,g=f.value,m=i[g];if(!ff(m))throw new af(g,"function",a);var _=Jr(v,t,r,n,i,s),H=m(_.map(function(q){return q.value}));Array.isArray(H)||(H=[H]),o.push.apply(o,H.map(function(q){return{type:typeof q=="string"?J.literal:J.object,value:q}}))}if(Do(f)){var O=f.options[p]||f.options.other;if(!O)throw new as(f.value,p,Object.keys(f.options),a);o.push.apply(o,Jr(O.value,t,r,n,i));continue}if(Uo(f)){var O=f.options["=".concat(p)];if(!O){if(!Intl.PluralRules)throw new xn(`Intl.PluralRules is not available in this environment.
|
|
4
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
5
|
+
`,Jt.MISSING_INTL_API,a);var U=r.getPluralRules(t,{type:f.pluralType}).select(p-(f.offset||0));O=f.options[U]||f.options.other}if(!O)throw new as(f.value,p,Object.keys(f.options),a);o.push.apply(o,Jr(O.value,t,r,n,i,p-(f.offset||0)));continue}}return lf(o)}function hf(e,t){return t?De(De(De({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=De(De({},e[n]),t[n]||{}),r},{})):e}function cf(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=hf(e[n],t[n]),r},De({},e)):e}function Un(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function df(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Rn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Ln([void 0],r,!1)))},{cache:Un(e.number),strategy:$n.variadic}),getDateTimeFormat:Rn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Ln([void 0],r,!1)))},{cache:Un(e.dateTime),strategy:$n.variadic}),getPluralRules:Rn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Ln([void 0],r,!1)))},{cache:Un(e.pluralRules),strategy:$n.variadic})}}var pf=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=s.formatToParts(u);if(l.length===1)return l[0].value;var f=l.reduce(function(c,p){return!c.length||p.type!==J.literal||typeof c[c.length-1]!="string"?c.push(p.value):c[c.length-1]+=p.value,c},[]);return f.length<=1?f[0]||"":f},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=xl(a,["formatters"]);this.ast=e.__parse(t,De(De({},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=cf(e.formats,n),this.formatters=i&&i.formatters||df(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=of,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 vf(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 it={},mf=(e,t,r)=>r&&(t in it||(it[t]={}),e in it[t]||(it[t][e]=r),r),Yo=(e,t)=>{if(t==null)return;if(t in it&&e in it[t])return it[t][e];const r=wn(t);for(let n=0;n<r.length;n++){const i=r[n],s=_f(i,e);if(s)return mf(e,t,s)}};let Di;const nr=En({});function gf(e){return Di[e]||null}function Zo(e){return e in Di}function _f(e,t){if(!Zo(e))return null;const r=gf(e);return vf(r,t)}function bf(e){if(e==null)return;const t=wn(e);for(let r=0;r<t.length;r++){const n=t[r];if(Zo(n))return n}}function Qo(e,...t){delete it[e],nr.update(r=>(r[e]=yl.all([r[e]||{},...t]),r))}rr([nr],([e])=>Object.keys(e));nr.subscribe(e=>Di=e);const Kr={};function Ef(e,t){Kr[e].delete(t),Kr[e].size===0&&delete Kr[e]}function Jo(e){return Kr[e]}function yf(e){return wn(e).map(t=>{const r=Jo(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function mi(e){return e==null?!1:wn(e).some(t=>{var r;return(r=Jo(t))==null?void 0:r.size})}function xf(e,t){return Promise.all(t.map(n=>(Ef(e,n),n().then(i=>i.default||i)))).then(n=>Qo(e,...n))}const or={};function Ko(e){if(!mi(e))return e in or?or[e]:Promise.resolve();const t=yf(e);return or[e]=Promise.all(t.map(([r,n])=>xf(r,n))).then(()=>{if(mi(e))return Ko(e);delete or[e]}),or[e]}const wf={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"}}},Tf={fallbackLocale:null,loadingDelay:200,formats:wf,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Sf=Tf;function Kt(){return Sf}const Fn=En(!1);var Af=Object.defineProperty,Hf=Object.defineProperties,Nf=Object.getOwnPropertyDescriptors,us=Object.getOwnPropertySymbols,Of=Object.prototype.hasOwnProperty,Pf=Object.prototype.propertyIsEnumerable,ls=(e,t,r)=>t in e?Af(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Bf=(e,t)=>{for(var r in t||(t={}))Of.call(t,r)&&ls(e,r,t[r]);if(us)for(var r of us(t))Pf.call(t,r)&&ls(e,r,t[r]);return e},If=(e,t)=>Hf(e,Nf(t));let gi;const ln=En(null);function fs(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function wn(e,t=Kt().fallbackLocale){const r=fs(e);return t?[...new Set([...r,...fs(t)])]:r}function Ot(){return gi!=null?gi:void 0}ln.subscribe(e=>{gi=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Mf=e=>{if(e&&bf(e)&&mi(e)){const{loadingDelay:t}=Kt();let r;return typeof window!="undefined"&&Ot()!=null&&t?r=window.setTimeout(()=>Fn.set(!0),t):Fn.set(!0),Ko(e).then(()=>{ln.set(e)}).finally(()=>{clearTimeout(r),Fn.set(!1)})}return ln.set(e)},ut=If(Bf({},ln),{set:Mf}),Tn=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var Cf=Object.defineProperty,fn=Object.getOwnPropertySymbols,ea=Object.prototype.hasOwnProperty,ta=Object.prototype.propertyIsEnumerable,hs=(e,t,r)=>t in e?Cf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ui=(e,t)=>{for(var r in t||(t={}))ea.call(t,r)&&hs(e,r,t[r]);if(fn)for(var r of fn(t))ta.call(t,r)&&hs(e,r,t[r]);return e},ir=(e,t)=>{var r={};for(var n in e)ea.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&fn)for(var n of fn(e))t.indexOf(n)<0&&ta.call(e,n)&&(r[n]=e[n]);return r};const Ar=(e,t)=>{const{formats:r}=Kt();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Lf=Tn(e=>{var t=e,{locale:r,format:n}=t,i=ir(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Ar("number",n)),new Intl.NumberFormat(r,i)}),Rf=Tn(e=>{var t=e,{locale:r,format:n}=t,i=ir(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Ar("date",n):Object.keys(i).length===0&&(i=Ar("date","short")),new Intl.DateTimeFormat(r,i)}),$f=Tn(e=>{var t=e,{locale:r,format:n}=t,i=ir(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Ar("time",n):Object.keys(i).length===0&&(i=Ar("time","short")),new Intl.DateTimeFormat(r,i)}),Df=(e={})=>{var t=e,{locale:r=Ot()}=t,n=ir(t,["locale"]);return Lf(Ui({locale:r},n))},Uf=(e={})=>{var t=e,{locale:r=Ot()}=t,n=ir(t,["locale"]);return Rf(Ui({locale:r},n))},Ff=(e={})=>{var t=e,{locale:r=Ot()}=t,n=ir(t,["locale"]);return $f(Ui({locale:r},n))},Gf=Tn((e,t=Ot())=>new pf(e,t,Kt().formats,{ignoreTag:Kt().ignoreTag})),jf=(e,t={})=>{var r,n,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:o,locale:u=Ot(),default:l}=a;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=Yo(e,u);if(!f)f=(s=(i=(n=(r=Kt()).handleMissingMessage)==null?void 0:n.call(r,{locale:u,id:e,defaultValue:l}))!=null?i:l)!=null?s:e;else if(typeof f!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),f;if(!o)return f;let c=f;try{c=Gf(f,u).format(o)}catch(p){p instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,p.message)}return c},kf=(e,t)=>Ff(t).format(e),Vf=(e,t)=>Uf(t).format(e),qf=(e,t)=>Df(t).format(e),Xf=(e,t=Ot())=>Yo(e,t),ra=rr([ut,nr],()=>jf);rr([ut],()=>kf);rr([ut],()=>Vf);rr([ut],()=>qf);rr([ut,nr],()=>Xf);function zf({withLocale:e,translations:t}){ut.subscribe(r=>{r==null&&(nr.set(t),ut.set(e))})}function na(e,t){Qo(e,t)}function Wf(e){ut.set(e)}function ia(e){Object.keys(e).forEach(t=>{na(t,e[t])})}function Yf(e){const t=new URL(e);fetch(t.href).then(r=>r.json()).then(r=>{Object.keys(r).forEach(n=>{na(n,r[n])})}).catch(r=>{console.log(r)})}const Zf=1e3,Qf={Unstarted:"scheduled",Running:"ongoing",Closing:"ended",Closed:"ended"},hn=e=>e==null||e===""?NaN:typeof e=="number"?e:Date.parse(e),sa=({state:e,startTime:t,endTime:r,isNew:n=!1,now:i=Date.now()})=>{const s=hn(t),a=hn(r);let o=Qf[e];return o||(o=i<s?"scheduled":i<a?"ongoing":"ended"),o==="scheduled"&&i>=s&&(o="ongoing"),o==="ongoing"&&i>=a&&(o="ended"),o==="ongoing"&&n?"new":o},Jf=e=>String(e).padStart(2,"0"),Kf=(e,t=Date.now())=>{const r=Math.floor((e-t)/1e3);if(Number.isNaN(r)||r<=0)return null;const n=Math.floor(r/86400),i=Math.floor(r%86400/3600),s=Math.floor(r%3600/60),a=r%60;return[n,i,s,a].map(Jf).join(" : ")},cs=(e,t)=>{const r={month:"short",day:"numeric"};try{return new Intl.DateTimeFormat(t||"en",r).format(e)}catch(n){return new Intl.DateTimeFormat("en",r).format(e)}},eh=(e,t,r)=>Number.isNaN(e)||Number.isNaN(t)?"":`${cs(e,r)} - ${cs(t,r)}`,th=(e,t,r,n=Date.now(),i)=>{const s=hn(t),a=hn(r);if(e==="ended"){const f=eh(s,a,i);return f?{date:f}:{}}const o=e==="scheduled",u=o?s:a,l=Kf(u,n);return l?{label:o?"tournamentStatus.startsIn":"tournamentStatus.endsIn",countdown:l,target:new Date(u).toISOString()}:{}},oa=To(Date.now(),e=>{if(typeof document=="undefined")return;let t;const r=()=>e(Date.now()),n=()=>{t===void 0&&(r(),t=setInterval(r,Zf))},i=()=>{clearInterval(t),t=void 0},s=()=>{document.hidden?i():n()};return document.addEventListener("visibilitychange",s),document.hidden||n(),()=>{i(),document.removeEventListener("visibilitychange",s)}});var rh=Ur('<span class="timer-date svelte-1gqjw6m"> </span>'),nh=Ur('<span class="timer-label svelte-1gqjw6m"> </span> <span class="timer-dash svelte-1gqjw6m"></span> <span class="timer-countdown"> </span>',1),ih=Ur('<div class="timer svelte-1gqjw6m"><!> <!></div>'),sh=Ur('<div><div class="status-pill svelte-1gqjw6m"><span></span> <span class="status-label svelte-1gqjw6m"> </span></div> <!></div>');const oh={hash:"svelte-1gqjw6m",code:`.tournament-badge.svelte-1gqjw6m {box-sizing:border-box;display:flex;flex-direction:row;align-items:center;padding:2px 8px 2px 2px;gap:6px;position:relative;background-color:var(--alpha-white-10, rgba(0, 0, 0, 0.3));border:1px solid var(--alpha-white-25, rgba(251, 251, 251, 0.2));backdrop-filter:blur(10px);border-radius:100px;width:fit-content;height:25px;&[data-status='scheduled'],
|
|
6
|
+
&[data-status='ongoing'] {background-color:var(--alpha-white-10, rgba(251, 251, 251, 0.1));}.status-pill:where(.svelte-1gqjw6m) {box-sizing:border-box;display:flex;align-items:center;gap:4px;padding:2px 8px 2px 6px;border-radius:20px;border:0.8px solid var(--alpha-white-25, rgba(251, 251, 251, 0.2));box-shadow:0px 0.83px 1.66px 0px rgba(16, 24, 40, 0.05);background-color:var(--alpha-black-20, rgba(0, 0, 0, 0.2));height:21px;flex-shrink:0;white-space:nowrap;.dot-status:where(.svelte-1gqjw6m) {width:8px;height:8px;border-radius:50%;flex-shrink:0;transition:background 0.2s ease,
|
|
7
|
+
box-shadow 0.2s ease;&.new {background:var(--semantic-success-400, rgba(45, 223, 0, 1));}&.scheduled {background:var(--semantic-info-400, rgba(0, 156, 245, 1));}&.ended {background:var(--secondary-300, rgba(78, 103, 134, 1));}&.ongoing {background:var(--border-alert, rgba(255, 205, 5, 1));}}.status-label:where(.svelte-1gqjw6m) {font-weight:500;font-size:11px;line-height:13px;color:var(--secondary-50, rgba(223, 227, 232, 1));}}.timer:where(.svelte-1gqjw6m) {display:flex;align-items:center;gap:6px;color:var(--secondary-50, rgba(223, 227, 232, 1));font-size:10px;line-height:1;white-space:nowrap;flex-shrink:0;.timer-label:where(.svelte-1gqjw6m),
|
|
8
|
+
.timer-date:where(.svelte-1gqjw6m) {font-weight:400;}.timer-dash:where(.svelte-1gqjw6m) {font-weight:500;opacity:0.7;}}}.tournament-badge.tournament-badge--large.svelte-1gqjw6m {height:41px;.status-pill:where(.svelte-1gqjw6m) {height:34px;}.status-pill:where(.svelte-1gqjw6m) .status-label:where(.svelte-1gqjw6m) {font-size:18px;}.timer:where(.svelte-1gqjw6m) {font-size:16px;}.dot-status:where(.svelte-1gqjw6m) {width:8px;height:8px;}}
|
|
9
|
+
|
|
10
|
+
@media (max-width: 767px) {.tournament-badge.tournament-badge--large.svelte-1gqjw6m {height:25px;.status-pill:where(.svelte-1gqjw6m) {height:21px;}.status-pill:where(.svelte-1gqjw6m) .status-label:where(.svelte-1gqjw6m) {font-size:11px;}.timer:where(.svelte-1gqjw6m) {font-size:10px;}.dot-status:where(.svelte-1gqjw6m) {width:5px;height:5px;}}
|
|
11
|
+
}`};function aa(e,t){Ti(t,!0),wo(e,oh);const r=()=>Ao(ra,"$_",n),[n,i]=Ho(),s=ft(t,"state",7),a=ft(t,"startTime",7),o=ft(t,"endTime",7),u=ft(t,"isNew",7,!1),l=ft(t,"language",7,"en"),f=ft(t,"size",7,"default");ia(va.STATUS_BADGE_TRANSLATIONS);const c=Bo(oa),p=Vn(()=>sa({state:s(),startTime:a(),endTime:o(),isNew:u(),now:c.current})),d=Vn(()=>th(M(p),a(),o(),c.current,l()));var v={get state(){return s()},set state(R){s(R),Ve()},get startTime(){return a()},set startTime(R){a(R),Ve()},get endTime(){return o()},set endTime(R){o(R),Ve()},get isNew(){return u()},set isNew(R=!1){u(R),Ve()},get language(){return l()},set language(R="en"){l(R),Ve()},get size(){return f()},set size(R="default"){f(R),Ve()}},g=sh();let m;var _=br(g),H=br(_);let O;var U=Rt(H,2),q=hr(U,!0);vr(_);var C=Rt(_,2);{var F=R=>{var Pe=ih(),Be=br(Pe);{var ne=Ie=>{var et=rh(),lt=hr(et,!0);Er(()=>dr(lt,M(d).date)),$t(Ie,et)};Zr(Be,Ie=>{M(d).date&&Ie(ne)})}var Pt=Rt(Be,2);{var Bt=Ie=>{var et=nh(),lt=Qs(et),Fr=hr(lt,!0),de=Rt(lt,2);de.textContent="-";var Gr=Rt(de,2),ua=hr(Gr,!0);Er(la=>{dr(Fr,la),dr(ua,M(d).countdown)},[()=>r()(M(d).label)]),$t(Ie,et)};Zr(Pt,Ie=>{M(d).countdown&&Ie(Bt)})}vr(Pe),$t(R,Pe)};Zr(C,R=>{(M(d).date||M(d).countdown)&&R(F)})}vr(g),Er(R=>{m=oi(g,1,"tournament-badge svelte-1gqjw6m",null,m,{"tournament-badge--large":f()==="large"}),ai(g,"data-status",M(p)),ai(_,"data-status",M(p)),O=oi(H,1,"dot dot-status svelte-1gqjw6m",null,O,{new:M(p)==="new",scheduled:M(p)==="scheduled",ongoing:M(p)==="ongoing",ended:M(p)==="ended"}),dr(q,R)},[()=>r()(`tournamentStatus.${M(p)}`)]),$t(e,g);var Ee=Si(v);return i(),Ee}Oo(aa,{state:{},startTime:{},endTime:{},isNew:{},language:{},size:{}},[],[],{mode:"open"});exports.$format=ra;exports.StatusBadge=aa;exports.action=Xu;exports.append=$t;exports.append_styles=wo;exports.bind_this=tl;exports.child=br;exports.comment=Ou;exports.commonjsGlobal=ol;exports.create_custom_element=Oo;exports.delegate=Tu;exports.delegated=wu;exports.each=ju;exports.event=xu;exports.first_child=Qs;exports.flushSync=Ve;exports.fromStore=Bo;exports.from_html=Ur;exports.from_svg=Hu;exports.get=M;exports.getDefaultExportFromCjs=Po;exports.html=qu;exports.if_block=Zr;exports.index=Fu;exports.key=Uu;exports.loadTranslations=Yf;exports.noop=Fe;exports.only_child=hr;exports.pop=Si;exports.prop=ft;exports.proxy=dt;exports.push=Ti;exports.registerTranslations=ia;exports.replay_events=Eu;exports.reset=vr;exports.resolveTournamentStatus=sa;exports.set=we;exports.setLocale=Wf;exports.set_attribute=ai;exports.set_class=oi;exports.set_style=Yu;exports.set_text=dr;exports.setupI18n=zf;exports.setup_stores=Ho;exports.sibling=Rt;exports.snippet=$u;exports.state=ke;exports.store_get=Ao;exports.template_effect=Er;exports.text=Nu;exports.tick=_u;exports.tournamentClock=oa;exports.untrack=tr;exports.user_derived=Vn;exports.user_effect=fu;exports.user_pre_effect=hu;
|