@everymatrix/player-challenges 0.1.15 → 0.1.19

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.
Files changed (96) hide show
  1. package/components/{ArrowLeftIcon-D0LpsufV.cjs → ArrowLeftIcon-BEURnjpJ.cjs} +1 -1
  2. package/components/{ArrowLeftIcon-De_oE6VJ.js → ArrowLeftIcon-DN6e9luu.js} +1 -1
  3. package/components/Badge-BEjEww7C.cjs +9 -0
  4. package/components/Badge-DSBvI-B9.js +138 -0
  5. package/components/{Button-CU8n8iLn.cjs → Button-Bvh3WQSZ.cjs} +2 -2
  6. package/components/{Button-CqWi35Id.js → Button-ewgCN0Ji.js} +17 -17
  7. package/components/ChallengeBanner-E82laAQ0.js +103 -0
  8. package/components/ChallengeBanner-WwVvI1Uu.cjs +30 -0
  9. package/components/{ChallengeBreadcrumbs-0C1qzQmn.js → ChallengeBreadcrumbs-BtOwj4Jl.js} +7 -7
  10. package/components/ChallengeBreadcrumbs-SeC9192i.cjs +1 -0
  11. package/components/{ChallengeCard-yUSt6Ocz.js → ChallengeCard-BZ8CZvgE.js} +6 -6
  12. package/components/{ChallengeCard-3915Vdd8.cjs → ChallengeCard-Zj92mrKO.cjs} +1 -1
  13. package/components/{ChallengeClaimCode-BUD6Bszw.cjs → ChallengeClaimCode-BXn91GDr.cjs} +1 -1
  14. package/components/{ChallengeClaimCode-D-skzCq6.js → ChallengeClaimCode-CeM2Z6p6.js} +2 -2
  15. package/components/{ChallengeDetails-C5WUrhPo.js → ChallengeDetails-B5AHPIQM.js} +2 -2
  16. package/components/{ChallengeDetails-D74Ki1Uz.cjs → ChallengeDetails-BVoZJVVL.cjs} +1 -1
  17. package/components/ChallengeDetailsSkeleton-CdG_rSGQ.js +138 -0
  18. package/components/ChallengeDetailsSkeleton-u24ioQh6.cjs +20 -0
  19. package/components/{ChallengeEvents-U5YbNMZ6.cjs → ChallengeEvents-7BMohfz-.cjs} +1 -1
  20. package/components/{ChallengeEvents-CXxvU73L.js → ChallengeEvents-DkdwGm5z.js} +16 -16
  21. package/components/ChallengeGames-BvHQAgRm.js +135 -0
  22. package/components/ChallengeGames-hnPYCbOH.cjs +14 -0
  23. package/components/{ChallengeHistory-BveIKX6m.js → ChallengeHistory-C0lhKrpA.js} +12 -12
  24. package/components/ChallengeHistory-DoXcpVtR.cjs +1 -0
  25. package/components/ChallengeLevels-BpGMpkdK.cjs +8 -0
  26. package/components/ChallengeLevels-CmLntQ0a.js +314 -0
  27. package/components/ChallengeList-DWrRtGZ6.cjs +47 -0
  28. package/components/{ChallengeList-P4I4Dp10.js → ChallengeList-Dztxku3t.js} +608 -547
  29. package/components/{ChallengeProgress-BxkeK6qN.js → ChallengeProgress-BPSQNZFN.js} +10 -10
  30. package/components/{ChallengeProgress-BpkQJwJK.cjs → ChallengeProgress-vtUcMyKL.cjs} +1 -1
  31. package/components/{ChallengeProgressItem-DHghH0Re.js → ChallengeProgressItem-3A5VPooB.js} +239 -223
  32. package/components/ChallengeProgressItem-bSzmG8l2.cjs +69 -0
  33. package/components/ChallengeRules-VFOXD1ge.cjs +1 -0
  34. package/components/ChallengeRules-YzymE0DQ.js +161 -0
  35. package/components/ChallengeSummary-D6OJ_aBt.cjs +1 -0
  36. package/components/ChallengeSummary-rhsO5YE0.js +205 -0
  37. package/components/ChallengeTabContent-2kOyabcA.js +779 -0
  38. package/components/ChallengeTabContent-BmBcztk_.cjs +16 -0
  39. package/components/{ChallengeTabPanel-Rci3HLu2.js → ChallengeTabPanel-CqwPtmvo.js} +47 -44
  40. package/components/ChallengeTabPanel-D_brgA-W.cjs +1 -0
  41. package/components/ChallengeTabs-Bkx7hDSs.cjs +14 -0
  42. package/components/ChallengeTabs-DrR1HXiu.js +8749 -0
  43. package/components/{CheckIcon-CxbYr1xp.cjs → CheckIcon-DeZrzQxv.cjs} +1 -1
  44. package/components/{CheckIcon-D4lHKEA2.js → CheckIcon-DlNpzYWO.js} +1 -1
  45. package/components/{ChevronIcon-CRAlhZkw.js → ChevronIcon-BLforcQh.js} +1 -1
  46. package/components/{ChevronIcon-BAMpEJGd.cjs → ChevronIcon-Bx8g9KW1.cjs} +1 -1
  47. package/components/ChipIcon-BIaydmmL.js +26 -0
  48. package/components/ChipIcon-kKYQ4DVa.cjs +1 -0
  49. package/components/ChipShineIcon-BhJxc-7o.cjs +1 -0
  50. package/components/ChipShineIcon-x_PFBpiC.js +28 -0
  51. package/components/{ExistIcon-Dto-bbDy.cjs → ExistIcon--rtolulO.cjs} +1 -1
  52. package/components/{ExistIcon-MA116zUI.js → ExistIcon-eNMDxHqT.js} +1 -1
  53. package/components/{GiftIcon-Co84y9Go.js → GiftIcon-B0dDFiN1.js} +14 -14
  54. package/components/{GiftIcon-Cd5b3K-t.cjs → GiftIcon-BEczx5al.cjs} +1 -1
  55. package/components/{LinkIcon-pV2v0CrL.js → LinkIcon-B1a0ukPT.js} +1 -1
  56. package/components/{LinkIcon-Bwgy8Luj.cjs → LinkIcon-D8SAcoU1.cjs} +1 -1
  57. package/components/{LockIcon-CzobKbeF.js → LockIcon-B96T_uuy.js} +1 -1
  58. package/components/{LockIcon-BYYuZI1_.cjs → LockIcon-C0YL_dFy.cjs} +1 -1
  59. package/components/Pagination-BACM981T.js +113 -0
  60. package/components/Pagination-Xk727E7v.cjs +4 -0
  61. package/components/PlayerChallenges-T3zWVcYA.cjs +1 -0
  62. package/components/PlayerChallenges-r9ozrIGW.js +437 -0
  63. package/components/{StarIcon-D_ixyTtO.js → StarIcon-BcWj-wRN.js} +1 -1
  64. package/components/{StarIcon-tdfCGCXl.cjs → StarIcon-D891Qux1.cjs} +1 -1
  65. package/components/{TargetIcon-Cw-ZoTaW.js → TargetIcon-Bv2zPej6.js} +14 -14
  66. package/components/{TargetIcon-BGcVQbCs.cjs → TargetIcon-CCXuJUbZ.cjs} +1 -1
  67. package/esnext/player-challenges.cjs +1 -1
  68. package/esnext/player-challenges.js +2 -2
  69. package/package.json +1 -1
  70. package/components/Badge-C2_vCRtE.js +0 -130
  71. package/components/Badge-r78wWqnE.cjs +0 -7
  72. package/components/ChallengeBanner-CBWAGiMi.cjs +0 -4
  73. package/components/ChallengeBanner-oDSEjGGf.js +0 -57
  74. package/components/ChallengeBreadcrumbs-B1QPZ9Ub.cjs +0 -1
  75. package/components/ChallengeGames-BVIMhW8b.cjs +0 -11
  76. package/components/ChallengeGames-CLISWWUl.js +0 -133
  77. package/components/ChallengeHistory-DDWHc60D.cjs +0 -1
  78. package/components/ChallengeLevels-Dqz1Jroz.cjs +0 -8
  79. package/components/ChallengeLevels-EESudJez.js +0 -292
  80. package/components/ChallengeList-Bby_g4Z8.cjs +0 -20
  81. package/components/ChallengeProgressItem-YsHk5ITp.cjs +0 -68
  82. package/components/ChallengeRules-CoGa-G4a.cjs +0 -1
  83. package/components/ChallengeRules-D7Q6JUd5.js +0 -173
  84. package/components/ChallengeSummary-Bu4cCk0T.js +0 -222
  85. package/components/ChallengeSummary-CcneZ-_H.cjs +0 -1
  86. package/components/ChallengeTabContent--jk6IZ9p.js +0 -794
  87. package/components/ChallengeTabContent-D3ghO0QX.cjs +0 -12
  88. package/components/ChallengeTabPanel-wgd02Iii.cjs +0 -1
  89. package/components/ChallengeTabSkeleton-B-MQHvwC.js +0 -91
  90. package/components/ChallengeTabSkeleton-CuGIFm8O.cjs +0 -15
  91. package/components/ChallengeTabs-BtbgPMyA.cjs +0 -14
  92. package/components/ChallengeTabs-nR_tQGbd.js +0 -8607
  93. package/components/Pagination-BgeAkkYm.js +0 -130
  94. package/components/Pagination-vup1vCrG.cjs +0 -12
  95. package/components/PlayerChallenges-C703Qu2L.cjs +0 -1
  96. package/components/PlayerChallenges-htqi9P1E.js +0 -395
@@ -0,0 +1,14 @@
1
+ typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const Oo="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Oo);const Do=1,$o=2,Ds=4,No=8,Mo=16,Ho=1,Bo=4,Ro=8,Lo=16,ko=1,Fo=2,$s="[",vi="[!",is="[?",gi="]",tn={},ge=Symbol("uninitialized"),Go="http://www.w3.org/1999/xhtml",Ns=!1;var Ms=Array.isArray,Uo=Array.prototype.indexOf,tr=Array.prototype.includes,mr=Array.from,nr=Object.keys,nn=Object.defineProperty,Lt=Object.getOwnPropertyDescriptor,jo=Object.getOwnPropertyDescriptors,zo=Object.prototype,Vo=Array.prototype,Hs=Object.getPrototypeOf,ss=Object.isExtensible;const wt=()=>{};function Bs(e){for(var t=0;t<e.length;t++)e[t]()}function Rs(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const ye=2,rn=4,Rn=8,Ls=1<<24,Ze=16,Ye=32,lt=64,zr=128,mi=256,ze=512,me=1024,pe=2048,Qe=4096,Ie=8192,Me=16384,Vt=32768,rr=1<<25,sn=65536,ir=1<<17,Yo=1<<18,Yt=1<<19,ks=1<<20,it=1<<25,jt=65536,sr=1<<21,en=1<<22,It=1<<23,Pn=Symbol("$state"),Fs=Symbol("component"),Gs=Symbol("legacy props"),Xo=Symbol(""),Us=Symbol("attributes"),Vr=Symbol("class"),Yr=Symbol("style"),Xr=Symbol("text"),js=Symbol("form reset"),Ln=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},zs=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),_r=3,pn=8;function Wo(){console.warn("https://svelte.dev/e/derived_inert")}function br(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function qo(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let W=!1;function yt(e){W=e}let Y;function He(e){if(e===null)throw br(),tn;return Y=e}function kn(){return He(ht(Y))}function Dn(e){if(W){if(ht(Y)!==null)throw br(),tn;Y=e}}function Vs(e=1){if(W){for(var t=e,n=Y;t--;)n=ht(n);Y=n}}function ar(e=!0){for(var t=0,n=Y;;){if(n.nodeType===pn){var r=n.data;if(r===gi){if(t===0)return n;t-=1}else(r===$s||r===vi||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=ht(n);e&&n.remove(),n=i}}function Ys(e){if(!e||e.nodeType!==pn)throw br(),tn;return e.data}function Xs(e){return e===this.v}function Ws(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function qs(e){return!Ws(e,this.v)}function Zs(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Zo(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Jo(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Ko(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Qo(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function eu(e){throw new Error("https://svelte.dev/e/effect_orphan")}function tu(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function nu(){throw new Error("https://svelte.dev/e/hydration_failed")}function ru(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function iu(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function su(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function au(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ou(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}let uu=!1,xe=null;function an(e){xe=e}function yr(e,t=!1,n){xe={p:xe,i:!1,c:null,e:null,s:e,x:null,r:z,l:null}}function Er(e){var t=xe,n=t.e;if(n!==null){t.e=null;for(var r of n)ba(r)}return e!==void 0&&(t.x=e),t.i=!0,xe=t.p,_i(e)}function _i(e={}){return nn(e,Fs,{value:!0}),e}function Js(){return!0}let Bt=[];function Ks(){var e=Bt;Bt=[],Bs(e)}function st(e){if(Bt.length===0&&!In){var t=Bt;queueMicrotask(()=>{t===Bt&&Ks()})}Bt.push(e)}function lu(){for(;Bt.length>0;)Ks()}const fu=-7169;function fe(e,t){e.f=e.f&fu|t}function bi(e){e.f&ze||e.deps===null?fe(e,me):fe(e,Qe)}function Qs(e){if(e!==null)for(const t of e)!(t.f&ye)||!(t.f&jt)||(t.f^=jt,Qs(t.deps))}function ea(e,t,n){e.f&pe?t.add(e):e.f&Qe&&n.add(e),Qs(e.deps),fe(e,me)}function yi(e,t,n){if(e==null)return t(void 0),n&&n(void 0),wt;const r=$t(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const Jt=[];function cu(e,t){return{subscribe:wr(e,t).subscribe}}function wr(e,t=wt){let n=null;const r=new Set;function i(o){if(Ws(e,o)&&(e=o,n)){const u=!Jt.length;for(const l of r)l[1](),Jt.push(l,e);if(u){for(let l=0;l<Jt.length;l+=2)Jt[l][0](Jt[l+1]);Jt.length=0}}}function s(o){i(o(e))}function a(o,u=wt){const l=[o,u];return r.add(l),r.size===1&&(n=t(i,s)||wt),o(e),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:i,update:s,subscribe:a}}function vn(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=t.length<2;return cu(n,(a,o)=>{let u=!1;const l=[];let f=0,c=wt;const d=()=>{if(f)return;c();const v=t(r?l[0]:l,a,o);s?a(v):c=typeof v=="function"?v:wt},h=i.map((v,C)=>yi(v,m=>{l[C]=m,f&=~(1<<C),u&&d()},()=>{f|=1<<C}));return u=!0,d(),function(){Bs(h),c(),u=!1}})}function hu(e){let t;return yi(e,n=>t=n)(),t}let Vn=!1,Wr=Symbol("unmounted");function Ei(e,t,n){const r=n[t]??={store:null,source:Ci(void 0),unsubscribe:wt};if(r.store!==e&&!(Wr in n))if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=wt;else{var i=!0;r.unsubscribe=yi(e,s=>{i?r.source.v=s:ie(r.source,s)}),i=!1}return e&&Wr in n?hu(e):H(r.source)}function wi(){const e={};function t(){Di(()=>{for(var n in e)e[n].unsubscribe();nn(e,Wr,{enumerable:!1,value:!0})})}return[e,t]}function du(e){var t=Vn;try{return Vn=!1,[e(),Vn]}finally{Vn=t}}let as=!1;function pu(){as||(as=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t[js]?.()})},{capture:!0}))}function Fn(e){var t=K,n=z;Xe(null),ct(null);try{return e()}finally{Xe(t),ct(n)}}function vu(e,t,n,r){const i=$n;var s=e.filter(h=>!h.settled),a=t.map(i);if(n.length===0&&s.length===0){r(a);return}var o=z,u=gu(),l=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(h=>h.promise)):null;function f(h){if(!(o.f&Me)){u();try{r([...a,...h])}catch(v){nt(v,o)}or()}}var c=ta();if(n.length===0){l.then(()=>f([])).finally(c);return}function d(){Promise.all(n.map(h=>mu(h))).then(f).catch(h=>nt(h,o)).finally(c)}l?l.then(()=>{u(),d(),or()}):d()}function gu(){var e=z,t=K,n=xe,r=te;return function(s=!0){ct(e),Xe(t),an(n),s&&!(e.f&Me)&&(r?.activate(),r?.apply())}}function or(e=!0){ct(null),Xe(null),an(null),e&&te?.deactivate()}function ta(){var e=z,t=e.b,n=te,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}function $n(e){var t=ye|pe;return z!==null&&(z.f|=Yt),{ctx:xe,deps:null,effects:null,equals:Xs,f:t,fn:e,reactions:null,rv:0,v:ge,wv:0,parent:z,ac:null}}const xn=Symbol("obsolete");function mu(e,t,n){let r=z;r===null&&Zo();var i=void 0,s=zt(ge),a=!K,o=new Set;return Iu(()=>{var u=z,l=Rs();i=l.promise;try{Promise.resolve(e()).then(l.resolve,h=>{h!==Ln&&l.reject(h)}).finally(or)}catch(h){l.reject(h),or()}var f=te;if(a){if(u.f&Vt)var c=ta();if(r.b?.is_rendered())f.async_deriveds.get(u)?.reject(xn);else for(const h of o.values())h.reject(xn);o.add(l),f.async_deriveds.set(u,l)}const d=(h,v=void 0)=>{c?.(),o.delete(l),v!==xn&&(f.activate(),v?(s.f|=It,on(s,v)):(s.f&It&&(s.f^=It),on(s,h)),f.deactivate())};l.promise.then(d,h=>d(null,h||"unknown"))}),Di(()=>{for(const u of o)u.reject(xn)}),new Promise(u=>{function l(f){function c(){f===i?u(s):l(i)}f.then(c,c)}l(i)})}function Nn(e){const t=$n(e);return Sa(t),t}function na(e){const t=$n(e);return t.equals=qs,t}function _u(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Oe(t[n])}}function xi(e){var t,n=z,r=e.parent;if(!St&&r!==null&&e.v!==ge&&r.f&(Me|Ie))return Wo(),e.v;ct(r);try{e.f&=~jt,_u(e),t=Pa(e)}finally{ct(n)}return t}function ra(e){var t=xi(e);if(!e.equals(t)&&(e.wv=Ca(),(!te?.is_fork||e.deps===null)&&(te!==null?(te.capture(e,t,!0),qr?.capture(e,t,!0)):e.v=t,e.deps===null))){fe(e,me);return}St||(Je!==null?(Oi()||te?.is_fork)&&Je.set(e,t):bi(e))}function bu(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac!==null&&Fn(()=>{t.ac.abort(Ln),t.ac=null}),t.fn!==null&&(t.teardown=wt),Mn(t,0),Bi(t))}function ia(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&t.fn!==null&&un(t)}let Dr=null,Kt=null,te=null,qr=null,Je=null,Zr=null,In=!1,$r=!1,Qt=null,qn=null;var os=0;let yu=1;class xt{id=yu++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;#o=new Set;#i=new Set;#a=0;#r=new Map;#u=null;#s=[];#v=[];#l=new Set;#f=new Set;#h=new Map;#g=new Set;is_fork=!1;#c=!1;constructor(){Kt===null?Dr=Kt=this:(Kt.#n=this,this.#t=Kt),Kt=this}#b(){if(this.is_fork)return!0;for(const r of this.#r.keys()){for(var t=r,n=!1;t.parent!==null;){if(this.#h.has(t)){n=!0;break}t=t.parent}if(!n)return!0}return!1}skip_effect(t){this.#h.has(t)||this.#h.set(t,{d:[],m:[]}),this.#g.delete(t)}unskip_effect(t,n=r=>this.schedule(r)){var r=this.#h.get(t);if(r){this.#h.delete(t);for(var i of r.d)fe(i,pe),n(i);for(i of r.m)fe(i,Qe),n(i)}this.#g.add(t)}#m(){this.#e=!0,os++>1e3&&(this.#p(),Eu());for(const u of this.#l)this.#f.delete(u),fe(u,pe),this.schedule(u);for(const u of this.#f)fe(u,Qe),this.schedule(u);const t=this.#s;this.#s=[],this.apply();var n=Qt=[],r=[],i=qn=[];for(const u of t)try{this.#y(u,n,r)}catch(l){throw oa(u),this.#b()||this.discard(),l}if(te=null,i.length>0){var s=xt.ensure();for(const u of i)s.schedule(u)}if(Qt=null,qn=null,this.#b()){this.#d(r),this.#d(n);for(const[u,l]of this.#h)aa(u,l);i.length>0&&te.#m();return}const a=this.#E();if(a){this.#d(r),this.#d(n),a.#w(this);return}this.#l.clear(),this.#f.clear();for(const u of this.#o)u(this);this.#o.clear(),qr=this,us(r),us(n),qr=null,this.#u?.resolve();var o=te;if(this.#a===0&&(this.#s.length===0||o!==null)&&this.#p(),this.#s.length>0)if(o!==null){const u=o;u.#s.push(...this.#s.filter(l=>!u.#s.includes(l)))}else o=this;o!==null&&(at.clear(),o.#m())}#y(t,n,r){t.f^=me;for(var i=t.first;i!==null;){var s=i.f,a=(s&(Ye|lt))!==0,o=a&&(s&me)!==0,u=o||(s&Ie)!==0||this.#h.has(i);if(!u&&i.fn!==null){a?i.f^=me:s&rn?n.push(i):Gn(i)&&(s&Ze&&this.#f.add(i),un(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}}}#E(){for(var t=this.#t;t!==null;){if(!t.is_fork){for(const[n,[,r]]of this.current)if(t.current.has(n)&&!r)return t}t=t.#t}return null}#w(t){for(const[r,i]of t.current)!this.previous.has(r)&&t.previous.has(r)&&this.previous.set(r,t.previous.get(r)),this.current.set(r,i);for(const[r,i]of t.async_deriveds){const s=this.async_deriveds.get(r);s&&i.promise.then(s.resolve).catch(s.reject)}t.async_deriveds.clear(),this.transfer_effects(t.#l,t.#f);const n=r=>{var i=r.reactions;if(i!==null&&!(r.f&ye&&!(r.f&(pe|Qe))))for(const o of i){var s=o.f;if(s&ye)n(o);else{var a=o;s&(en|Ze)&&!this.async_deriveds.has(a)&&(this.#f.delete(a),fe(a,pe),this.schedule(a))}}};for(const r of this.current.keys())n(r);this.oncommit(()=>t.discard()),t.#p(),te=this,this.#m()}#d(t){for(var n=0;n<t.length;n+=1)ea(t[n],this.#l,this.#f)}capture(t,n,r=!1){t.v!==ge&&!this.previous.has(t)&&this.previous.set(t,t.v),t.f&It||(this.current.set(t,[n,r]),Je?.set(t,n)),this.is_fork||(t.v=n)}activate(){te=this}deactivate(){te=null,Je=null}flush(){try{$r=!0,te=this,this.#m()}finally{os=0,Zr=null,Qt=null,qn=null,$r=!1,te=null,Je=null,at.clear()}}discard(){for(const t of this.#i)t(this);this.#i.clear();for(const t of this.async_deriveds.values())t.reject(xn);this.#p(),this.#u?.resolve()}register_created_effect(t){this.#v.push(t)}#_(){for(let c=Dr;c!==null;c=c.#n){var t=c.id<this.id,n=[];for(const[d,[h,v]]of this.current){if(c.current.has(d)){var r=c.current.get(d)[0];if(t&&h!==r)c.current.set(d,[h,v]);else continue}n.push(d)}if(t)for(const[d,h]of this.async_deriveds){const v=c.async_deriveds.get(d);v&&h.promise.then(v.resolve).catch(v.reject)}var i=[...c.current.keys()].filter(d=>!c.current.get(d)[1]);if(!(!c.#e||i.length===0)){var s=i.filter(d=>!this.current.has(d));if(s.length===0)t&&c.discard();else if(n.length>0){if(t)for(const d of this.#g)c.unskip_effect(d,h=>{h.f&(Ze|en)?c.schedule(h):c.#d([h])});c.activate();var a=new Set,o=new Map;for(var u of n)sa(u,s,a,o);o=new Map;var l=[...c.current].filter(([d,h])=>{const v=this.current.get(d);return v?v[0]!==h[0]||v[1]!==h[1]:!0}).map(([d])=>d);if(l.length>0)for(const d of this.#v)!(d.f&(Me|Ie|ir))&&Si(d,l,o)&&(d.f&(en|Ze)?(fe(d,pe),c.schedule(d)):c.#l.add(d));if(c.#s.length>0&&!c.#c){c.apply();for(var f of c.#s)c.#y(f,[],[]);c.#s=[]}c.deactivate()}}}}increment(t,n){if(this.#a+=1,t){let r=this.#r.get(n)??0;this.#r.set(n,r+1)}}decrement(t,n){if(this.#a-=1,t){let r=this.#r.get(n)??0;r===1?this.#r.delete(n):this.#r.set(n,r-1)}this.#c||(this.#c=!0,st(()=>{this.#c=!1,this.linked&&this.flush()}))}transfer_effects(t,n){for(const r of t)this.#l.add(r);for(const r of n)this.#f.add(r);t.clear(),n.clear()}oncommit(t){this.#o.add(t)}ondiscard(t){this.#i.add(t)}settled(){return(this.#u??=Rs()).promise}static ensure(){if(te===null){const t=te=new xt;!$r&&!In&&st(()=>{t.#e||t.flush()})}return te}apply(){{Je=null;return}}schedule(t){if(Zr=t,t.b?.is_pending&&t.f&(rn|Rn|Ls)&&!(t.f&Vt)){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(Qt!==null&&n===z&&(K===null||!(K.f&ye)))return;if(r&(lt|Ye)){if(!(r&me))return;n.f^=me}}this.#s.push(n)}#p(){if(this.linked){var t=this.#t,n=this.#n;t===null?Dr=n:t.#n=n,n===null?Kt=t:n.#t=t,this.linked=!1}}}function Et(e){var t=In;In=!0;try{for(var n;;){if(lu(),te===null)return n;te.flush()}}finally{In=t}}function Eu(){try{tu()}catch(e){nt(e,Zr)}}let bt=null;function us(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&(Me|Ie))&&Gn(r)&&(bt=new Set,un(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Ea(r),bt?.size>0)){at.clear();for(const i of bt){if(i.f&(Me|Ie))continue;const s=[i];let a=i.parent;for(;a!==null;)bt.has(a)&&(bt.delete(a),s.push(a)),a=a.parent;for(let o=s.length-1;o>=0;o--){const u=s[o];u.f&(Me|Ie)||un(u)}}bt.clear()}}bt=null}}function sa(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;s&ye?sa(i,t,n,r):s&(en|Ze)&&!(s&pe)&&Si(i,t,r)&&(fe(i,pe),Ti(i))}}function Si(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(tr.call(t,i))return!0;if(i.f&ye&&Si(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Ti(e){te.schedule(e)}function aa(e,t){if(!(e.f&Ye&&e.f&me)){e.f&pe?t.d.push(e):e.f&Qe&&t.m.push(e),fe(e,me);for(var n=e.first;n!==null;)aa(n,t),n=n.next}}function oa(e){fe(e,me);for(var t=e.first;t!==null;)oa(t),t=t.next}let ur=new Set;const at=new Map;let ua=!1;function zt(e,t){var n={f:0,v:e,reactions:null,equals:Xs,rv:0,wv:0};return n}function Pe(e,t){const n=zt(e);return Sa(n),n}function Ci(e,t=!1,n=!0){const r=zt(e);return t||(r.equals=qs),r}function ie(e,t,n=!1){K!==null&&(!Ke||K.f&ir)&&Js()&&K.f&(ye|Ze|en|ir)&&(ot===null||!ot.has(e))&&au();let r=n?Ge(t):t;return on(e,r,qn)}function on(e,t,n=null){if(!e.equals(t)){St?at.set(e,t):at.has(e)||at.set(e,e.v);var r=xt.ensure();if(r.capture(e,t),e.f&ye){const i=e;e.f&pe&&xi(i),Je===null&&bi(i)}e.wv=Ca(),la(e,pe,n),z!==null&&z.f&me&&!(z.f&(Ye|lt))&&(Ue===null?$u([e]):Ue.push(e)),!r.is_fork&&ur.size>0&&!ua&&wu()}return t}function wu(){ua=!1;for(const e of ur){e.f&me&&fe(e,Qe);let t;try{t=Gn(e)}catch{t=!0}t&&un(e)}ur.clear()}function On(e){ie(e,e.v+1)}function la(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var a=r[s],o=a.f,u=(o&pe)===0;if(u&&fe(a,t),o&ir)ur.add(a);else if(o&ye){var l=a;Je?.delete(l),o&jt||(o&ze&&(z===null||!(z.f&sr))&&(a.f|=jt),la(l,Qe,n))}else if(u){var f=a;o&Ze&&bt!==null&&bt.add(f),n!==null?n.push(f):Ti(f)}}}function Ge(e){if(typeof e!="object"||e===null||Pn in e||Fs in e)return e;const t=Hs(e);if(t!==zo&&t!==Vo)return e;var n=new Map,r=Ms(e),i=Pe(0),s=Ft,a=o=>{if(Ft===s)return o();var u=K,l=Ft;Xe(null),cs(s);var f=o();return Xe(u),cs(l),f};return r&&n.set("length",Pe(e.length)),new Proxy(e,{defineProperty(o,u,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&iu();var f=n.get(u);return f===void 0?a(()=>{var c=Pe(l.value);return n.set(u,c),c}):ie(f,l.value,!0),!0},deleteProperty(o,u){var l=n.get(u);if(l===void 0){if(u in o){const f=a(()=>Pe(ge));n.set(u,f),On(i)}}else ie(l,ge),On(i);return!0},get(o,u,l){if(u===Pn)return e;var f=n.get(u),c=u in o;if(f===void 0&&(!c||Lt(o,u)?.writable)&&(f=a(()=>{var h=Ge(c?o[u]:ge),v=Pe(h);return v}),n.set(u,f)),f!==void 0){var d=H(f);return d===ge?void 0:d}return Reflect.get(o,u,l)},getOwnPropertyDescriptor(o,u){var l=Reflect.getOwnPropertyDescriptor(o,u);if(l&&"value"in l){var f=n.get(u);f&&(l.value=H(f))}else if(l===void 0){var c=n.get(u),d=c?.v;if(c!==void 0&&d!==ge)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return l},has(o,u){if(u===Pn)return!0;var l=n.get(u),f=l!==void 0&&l.v!==ge||Reflect.has(o,u);if(l!==void 0||z!==null&&(!f||Lt(o,u)?.writable)){l===void 0&&(l=a(()=>{var d=f?Ge(o[u]):ge,h=Pe(d);return h}),n.set(u,l));var c=H(l);if(c===ge)return!1}return f},set(o,u,l,f){var c=n.get(u),d=u in o;if(r&&u==="length")for(var h=l;h<c.v;h+=1){var v=n.get(h+"");v!==void 0?ie(v,ge):h in o&&(v=a(()=>Pe(ge)),n.set(h+"",v))}if(c===void 0)(!d||Lt(o,u)?.writable)&&(c=a(()=>Pe(void 0)),ie(c,Ge(l)),n.set(u,c));else{d=c.v!==ge;var C=a(()=>Ge(l));ie(c,C)}var m=Reflect.getOwnPropertyDescriptor(o,u);if(m?.set&&m.set.call(f,l),!d){if(r&&typeof u=="string"){var $=n.get("length"),V=Number(u);Number.isInteger(V)&&V>=$.v&&ie($,V+1)}On(i)}return!0},ownKeys(o){H(i);var u=Reflect.ownKeys(o).filter(c=>{var d=n.get(c);return d===void 0||d.v!==ge});for(var[l,f]of n)f.v!==ge&&!(l in o)&&u.push(l);return u},setPrototypeOf(){su()}})}var ls,fa,ca,ha;function Jr(){if(ls===void 0){ls=window,fa=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;ca=Lt(t,"firstChild").get,ha=Lt(t,"nextSibling").get,ss(e)&&(e[Vr]=void 0,e[Us]=null,e[Yr]=void 0,e.__e=void 0),ss(n)&&(n[Xr]=void 0)}}function Ve(e=""){return document.createTextNode(e)}function ft(e){return ca.call(e)}function ht(e){return ha.call(e)}function Ai(e,t){if(!W)return ft(e);var n=ft(Y);if(n===null)n=Y.appendChild(Ve());else if(t&&n.nodeType!==_r){var r=Ve();return n?.before(r),He(r),r}return t&&Ii(n),He(n),n}function xu(e,t=!1){if(!W){var n=ft(e);return n instanceof Comment&&n.data===""?ht(n):n}if(t){if(Y?.nodeType!==_r){var r=Ve();return Y?.before(r),He(r),r}Ii(Y)}return Y}function da(e,t=!1){if(!W)return ft(e);var n=Ai(e,t);return Dn(e),n}function pa(e,t=1,n=!1){let r=W?Y:e;for(var i;t--;)i=r,r=ht(r);if(!W)return r;if(n){if(r?.nodeType!==_r){var s=Ve();return r===null?i?.after(s):r.before(s),He(s),s}Ii(r)}return He(r),r}function va(e){e.textContent=""}function ga(){return!1}function Pi(e,t,n){return document.createElement(e)}function Ii(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===_r;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Su(e){var t=z;if(t===null)return K.f|=It,e;if(!(t.f&Vt)&&!(t.f&rn))throw e;nt(e,t)}function nt(e,t){if(!(t!==null&&t.f&Me)){for(;t!==null;){if(t.f&zr&&!(t.f&(Me|rr))){if(!(t.f&Vt))throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}}function ma(e){z===null&&(K===null&&eu(),Qo()),St&&Ko()}function Tu(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function et(e,t){var n=z;n!==null&&n.f&Ie&&(e|=Ie);var r={ctx:xe,deps:null,nodes:null,f:e|pe|ze,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};te?.register_created_effect(r);var i=r;if(e&rn)Qt!==null?Qt.push(r):xt.ensure().schedule(r);else if(t!==null){try{un(r)}catch(a){throw Oe(r),a}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&Yt)&&(i=i.first,e&Ze&&e&sn&&i!==null&&(i.f|=sn))}if(i!==null&&(i.parent=n,n!==null&&Tu(i,n),K!==null&&K.f&ye&&!(e&lt))){var s=K;(s.effects??=[]).push(i)}return r}function Oi(){return K!==null&&!Ke}function Di(e){const t=et(Rn,null);return fe(t,me),t.teardown=e,t}function _a(e){ma();var t=z.f,n=!K&&(t&Ye)!==0&&xe!==null&&!xe.i;if(n){var r=xe;(r.e??=[]).push(e)}else return ba(e)}function ba(e){return et(rn|ks,e)}function Cu(e){return ma(),et(Rn|ks,e)}function Au(e){xt.ensure();const t=et(lt|Yt,e);return()=>{Oe(t)}}function Pu(e){xt.ensure();const t=et(lt|Yt,e);return(n={})=>new Promise(r=>{n.outro?kt(t,()=>{Oe(t),r(void 0)}):(Oe(t),r(void 0))})}function $i(e){return et(rn,e)}function Iu(e){return et(en|Yt,e)}function Ni(e,t=0){return et(Rn|t,e)}function Mi(e,t=[],n=[],r=[]){vu(r,t,n,i=>{et(Rn,()=>{e(...i.map(H))})})}function Hi(e,t=0){var n=et(Ze|t,e);return n}function je(e){return et(Ye|Yt,e)}function ya(e){var t=e.teardown;if(t!==null){const n=St,r=K;fs(!0),Xe(null);try{t.call(null)}catch(i){nt(i,e.parent)}finally{fs(n),Xe(r)}}}function Bi(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Fn(()=>{i.abort(Ln)});var r=n.next;n.f&lt?n.parent=null:Oe(n,t),n=r}}function Ou(e){for(var t=e.first;t!==null;){var n=t.next;t.f&Ye||Oe(t),t=n}}function Oe(e,t=!0){var n=!1;(t||e.f&Yo)&&e.nodes!==null&&e.nodes.end!==null&&(Du(e.nodes.start,e.nodes.end),n=!0),e.f|=rr,Bi(e,t&&!n),Mn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();ya(e),e.f^=rr,e.f|=Me;var i=e.parent;i!==null&&i.first!==null&&Ea(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Du(e,t){for(;e!==null;){var n=e===t?null:ht(e);e.remove(),e=n}}function Ea(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function kt(e,t,n=!0){var r=[];e.f|=mi,wa(e,r,!0);var i=()=>{n&&Oe(e),t&&t()},s=r.length;if(s>0){var a=()=>--s||i();for(var o of r)o.out(a)}else i()}function wa(e,t,n){if(!(e.f&Ie)){e.f^=Ie;var r=e.nodes&&e.nodes.t;if(r!==null)for(const o of r)(o.is_global||n)&&t.push(o);for(var i=e.first;i!==null;){var s=i.next;if(!(i.f&lt)){var a=(i.f&sn)!==0||(i.f&Ye)!==0&&(e.f&Ze)!==0;wa(i,t,a?n:!1)}i=s}}}function lr(e){e.f&=~mi,xa(e,!0)}function xa(e,t){if(!(e.f&mi)&&e.f&Ie){e.f^=Ie,e.f&me||(fe(e,pe),xt.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&sn)!==0||(n.f&Ye)!==0;xa(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const a of s)(a.is_global||t)&&a.in()}}function Ri(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:ht(n);t.append(n),n=i}}let Zn=!1,St=!1;function fs(e){St=e}let K=null,Ke=!1;function Xe(e){K=e}let z=null;function ct(e){z=e}let ot=null;function Sa(e){K!==null&&(ot??=new Set).add(e)}let Ne=null,Fe=0,Ue=null;function $u(e){Ue=e}let Ta=1,Rt=0,Ft=Rt;function cs(e){Ft=e}function Ca(){return++Ta}function Gn(e){var t=e.f;if(t&pe)return!0;if(t&ye&&(e.f&=~jt),t&Qe){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(Gn(s)&&ra(s),s.wv>e.wv)return!0}t&ze&&Je===null&&fe(e,me)}return!1}function Aa(e,t,n=!0){var r=e.reactions;if(r!==null&&!(ot!==null&&ot.has(e)))for(var i=0;i<r.length;i++){var s=r[i];s.f&ye?Aa(s,t,!1):t===s&&(n?fe(s,pe):s.f&me&&fe(s,Qe),Ti(s))}}function Pa(e){var t=Ne,n=Fe,r=Ue,i=K,s=ot,a=xe,o=Ke,u=Ft,l=e.f;Ne=null,Fe=0,Ue=null,K=l&(Ye|lt)?null:e,ot=null,an(e.ctx),Ke=!1,Ft=++Rt,e.ac!==null&&(Fn(()=>{e.ac.abort(Ln)}),e.ac=null);try{e.f|=sr;var f=e.fn,c=f();e.f|=Vt;var d=hs(e);if(Js()&&Ue!==null&&!Ke&&d!==null&&!(e.f&(ye|Qe|pe)))for(var h=0;h<Ue.length;h++)Aa(Ue[h],e);if(i!==null&&i!==e){if(Rt++,i.deps!==null)for(let v=0;v<n;v+=1)i.deps[v].rv=Rt;if(t!==null)for(const v of t)v.rv=Rt;Ue!==null&&(r===null?r=Ue:r.push(...Ue))}return e.f&It&&(e.f^=It),c}catch(v){return hs(e),Su(v)}finally{e.f^=sr,Ne=t,Fe=n,Ue=r,K=i,ot=s,an(a),Ke=o,Ft=u}}function hs(e){var t=e.deps,n=te?.is_fork;if(Ne!==null){var r;if(n||Mn(e,Fe),t!==null&&Fe>0)for(t.length=Fe+Ne.length,r=0;r<Ne.length;r++)t[Fe+r]=Ne[r];else e.deps=t=Ne;if(Oi()&&e.f&ze)for(r=Fe;r<t.length;r++)(t[r].reactions??=[]).push(e)}else!n&&t!==null&&Fe<t.length&&(Mn(e,Fe),t.length=Fe);return t}function Nu(e,t){let n=t.reactions;if(n!==null){var r=Uo.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&ye&&(Ne===null||!tr.call(Ne,t))){var s=t;s.f&ze&&(s.f^=ze,s.f&=~jt),s.v!==ge&&bi(s),s.ac!==null&&Fn(()=>{s.ac.abort(Ln),s.ac=null,fe(s,pe)}),bu(s),Mn(s,0)}}function Mn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Nu(e,n[r])}function un(e){var t=e.f;if(!(t&Me)){fe(e,me);var n=z,r=Zn;z=e,Zn=(t&(Ye|lt))===0;try{t&(Ze|Ls)?Ou(e):Bi(e),ya(e);var i=Pa(e);e.teardown=typeof i=="function"?i:null,e.wv=Ta;var s;Ns&&uu&&e.f&pe&&e.deps}finally{Zn=r,z=n}}}function H(e){var t=e.f,n=(t&ye)!==0;if(K!==null&&!Ke){var r=z!==null&&(z.f&Me)!==0;if(!r&&(ot===null||!ot.has(e))){var i=K.deps;if(K.f&sr)e.rv<Rt&&(e.rv=Rt,Ne===null&&i!==null&&i[Fe]===e?Fe++:Ne===null?Ne=[e]:Ne.push(e));else{K.deps??=[],tr.call(K.deps,e)||K.deps.push(e);var s=e.reactions;s===null?e.reactions=[K]:tr.call(s,K)||s.push(K)}}}if(St&&at.has(e))return at.get(e);if(n){var a=e;if(St){var o=a.v;return(!(a.f&me)&&a.reactions!==null||Oa(a))&&(o=xi(a)),at.set(a,o),o}var u=(a.f&ze)===0&&!Ke&&K!==null&&(Zn||(K.f&ze)!==0),l=(a.f&Vt)===0;Gn(a)&&(u&&(a.f|=ze),ra(a)),u&&!l&&(ia(a),Ia(a))}if(Je?.has(e))return Je.get(e);if(e.f&It)throw e.v;return e.v}function Ia(e){if(e.f|=ze,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),t.f&ye&&!(t.f&ze)&&(ia(t),Ia(t))}function Oa(e){if(e.v===ge)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(at.has(t)||t.f&ye&&Oa(t))return!0;return!1}function $t(e){var t=Ke;try{return Ke=!0,e()}finally{Ke=t}}const Sn=Symbol("events"),Da=new Set,Kr=new Set;function Mu(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 Hu(e,t,n,r={}){function i(s){if(r.capture||Qr.call(t,s),!s.cancelBubble)return Fn(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?st(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Bu(e,t,n,r,i){var s={capture:r,passive:i},a=Hu(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Di(()=>{t.removeEventListener(e,a,s)})}function Li(e,t,n){(t[Sn]??={})[e]=n}function ki(e){for(var t=0;t<e.length;t++)Da.add(e[t]);for(var n of Kr)n(e)}let Nr=null,Mr=!1;function Qr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Nr=e,Mr||(Mr=!0,setTimeout(()=>{Mr=!1,Nr=null}));var a=0,o=Nr===e&&e[Sn];if(o){var u=i.indexOf(o);if(u!==-1&&(t===document||t===window)){e[Sn]=t;return}var l=i.indexOf(t);if(l===-1)return;u<=l&&(a=u)}if(s=i[a]||e.target,s!==t){nn(e,"currentTarget",{configurable:!0,get(){return s||n}});var f=K,c=z;Xe(null),ct(null);try{for(var d,h=[];s!==null&&s!==t;){try{var v=s[Sn]?.[r];v!=null&&(!s.disabled||e.target===s)&&v.call(s,e)}catch(C){d?h.push(C):d=C}if(e.cancelBubble)break;a++,s=a<i.length?i[a]:null}if(d){for(let C of h)queueMicrotask(()=>{throw C});throw d}}finally{e[Sn]=t,delete e.currentTarget,Xe(f),ct(c)}}}const Ru=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Lu(e){return Ru?.createHTML(e)??e}function $a(e){var t=Pi("template");return t.innerHTML=Lu(e.replaceAll("<!>","<!---->")),t.content}function Ot(e,t){var n=z;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function gn(e,t){var n=(t&ko)!==0,r=(t&Fo)!==0,i,s=!e.startsWith("<!>");return()=>{if(W)return Ot(Y,null),Y;i===void 0&&(i=$a(s?e:"<!>"+e),n||(i=ft(i)));var a=r||fa?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=ft(a),u=a.lastChild;Ot(o,u)}else Ot(a,a);return a}}function ku(e,t,n="svg"){var r=!e.startsWith("<!>"),i=`<${n}>${r?e:"<!>"+e}</${n}>`,s;return()=>{if(W)return Ot(Y,null),Y;if(!s){var a=$a(i),o=ft(a);s=ft(o)}var u=s.cloneNode(!0);return Ot(u,u),u}}function Fu(e,t){return ku(e,t,"svg")}function Gu(){if(W)return Ot(Y,null),Y;var e=document.createDocumentFragment(),t=document.createComment(""),n=Ve();return e.append(t,n),Ot(t,n),e}function Gt(e,t){if(W){var n=z;(!(n.f&Vt)||n.nodes.end===null)&&(n.nodes.end=Y),kn();return}e!==null&&e.before(t)}function Uu(){if(W&&Y&&Y.nodeType===pn&&Y.textContent?.startsWith("$")){const e=Y.textContent.substring(1);return kn(),e}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}const ju=["touchstart","touchmove"];function zu(e){return ju.includes(e)}function Vu(e){let t=0,n=zt(0),r;return()=>{Oi()&&(H(n),Ni(()=>(t===0&&(r=$t(()=>e(()=>On(n)))),t+=1,()=>{st(()=>{t-=1,t===0&&(r?.(),r=void 0,On(n))})})))}}var Yu=sn|Yt;function Xu(e,t,n,r){new Wu(e,t,n,r)}class Wu{parent;is_pending=!1;transform_error;#e;#t=W?Y:null;#n;#o;#i;#a=null;#r=null;#u=null;#s=null;#v=0;#l=0;#f=!1;#h=new Set;#g=new Set;#c=null;#b=Vu(()=>(this.#c=zt(this.#v),()=>{this.#c=null}));constructor(t,n,r,i){this.#e=t,this.#n=n,this.#o=s=>{var a=z;a.b=this,a.f|=zr,r(s)},this.parent=z.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#i=Hi(()=>{if(W){const s=this.#t;kn();const a=s.data===vi;if(s.data.startsWith(is)){const u=JSON.parse(s.data.slice(is.length));this.#y(u)}else a?this.#w():this.#m()}else this.#d()},Yu),W&&(this.#e=Y)}#m(){try{this.#a=je(()=>this.#o(this.#e))}catch(t){this.error(t)}}#y(t){const n=this.#n.failed,{reset:r,invoke_onerror:i}=this.#E(t);st(i),n&&(this.#u=je(()=>{n(this.#e,()=>t,()=>r)}))}#E(t){var n=!1,r=!1;const i=()=>{if(n){qo();return}n=!0,r&&ou(),this.#u!==null&&kt(this.#u,()=>{this.#u=null}),this.#p(()=>{this.#d()})};return{reset:i,invoke_onerror:()=>{try{r=!0,this.#n.onerror?.(t,i),r=!1}catch(a){nt(a,this.#i&&this.#i.parent)}}}}#w(){const t=this.#n.pending;t&&(this.is_pending=!0,this.#r=je(()=>t(this.#e)),st(()=>{var n=this.#s=document.createDocumentFragment(),r=Ve(),i=!1;if(n.append(r),this.#a=this.#p(()=>{try{return je(()=>this.#o(r))}catch(s){try{this.error(s),i=!0}catch(a){nt(a,this.#i.parent)}return null}}),this.#a===null){this.#s=null,i&&this.#_(te);return}this.#l===0&&(this.#e.before(n),this.#s=null,kt(this.#r,()=>{this.#r=null}),this.#_(te))}))}#d(){try{if(this.is_pending=this.has_pending_snippet(),this.#l=0,this.#v=0,this.#a=je(()=>{this.#o(this.#e)}),this.#l>0){var t=this.#s=document.createDocumentFragment();Ri(this.#a,t);const n=this.#n.pending;this.#r=je(()=>n(this.#e))}else this.#_(te)}catch(n){this.error(n)}}#_(t){this.is_pending=!1,t.transfer_effects(this.#h,this.#g)}defer_effect(t){ea(t,this.#h,this.#g)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#p(t){var n=z,r=K,i=xe;ct(this.#i),Xe(this.#i),an(this.#i.ctx);try{return xt.ensure(),t()}finally{ct(n),Xe(r),an(i)}}#x(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#x(t,n);return}this.#l+=t,this.#l===0&&(this.#_(n),this.#r&&kt(this.#r,()=>{this.#r=null}),this.#s&&(this.#e.before(this.#s),this.#s=null))}update_pending_count(t,n){this.#x(t,n),this.#v+=t,!(!this.#c||this.#f)&&(this.#f=!0,st(()=>{this.#f=!1,this.#c&&on(this.#c,this.#v)}))}get_effect_pending(){return this.#b(),H(this.#c)}error(t){if(!this.#n.onerror&&!this.#n.failed)throw t;te?.is_fork?(this.#a&&te.skip_effect(this.#a),this.#r&&te.skip_effect(this.#r),this.#u&&te.skip_effect(this.#u),te.oncommit(()=>{this.#S(t)})):this.#S(t)}#S(t){this.#a&&(Oe(this.#a),this.#a=null),this.#r&&(Oe(this.#r),this.#r=null),this.#u&&(Oe(this.#u),this.#u=null),W&&(He(this.#t),Vs(),He(ar()));let n=this.#n.failed;const r=i=>{const{reset:s,invoke_onerror:a}=this.#E(i);a(),n&&(this.#u=this.#p(()=>{try{return je(()=>{var o=z;o.b=this,o.f|=zr,n(this.#e,()=>i,()=>s)})}catch(o){return nt(o,this.#i.parent),null}}))};st(()=>{var i;try{i=this.transform_error(t)}catch(s){nt(s,this.#i&&this.#i.parent);return}i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(r,s=>nt(s,this.#i&&this.#i.parent)):r(i)})}}function Fi(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e[Xr]??=e.nodeValue)&&(e[Xr]=n,e.nodeValue=`${n}`)}function Na(e,t){return Ma(e,t)}function qu(e,t){Jr(),t.intro=t.intro??!1;const n=t.target,r=W,i=Y;try{for(var s=ft(n);s&&(s.nodeType!==pn||s.data!==$s);)s=ht(s);if(!s)throw tn;yt(!0),He(s);const a=Ma(e,{...t,anchor:s});return yt(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
+ `).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==tn&&console.warn("Failed to hydrate: ",a),t.recover===!1&&nu(),Jr(),va(n),yt(!1),Na(e,t)}finally{yt(r),He(i)}}const Yn=new Map;function Ma(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:a=!0,transformError:o}){Jr();var u=void 0,l=Pu(()=>{var f=n??t.appendChild(Ve());Xu(f,{pending:()=>{}},h=>{yr({});var v=xe;if(s&&(v.c=s),i&&(r.$$events=i),W&&Ot(h,null),u=e(h,r)||_i(),W&&(z.nodes.end=Y,Y===null||Y.nodeType!==pn||Y.data!==gi))throw br(),tn;Er()},o);var c=new Set,d=h=>{for(var v=0;v<h.length;v++){var C=h[v];if(!c.has(C)){c.add(C);var m=zu(C);for(const O of[t,document]){var $=Yn.get(O);$===void 0&&($=new Map,Yn.set(O,$));var V=$.get(C);V===void 0?(O.addEventListener(C,Qr,{passive:m}),$.set(C,1)):$.set(C,V+1)}}}};return d(mr(Da)),Kr.add(d),()=>{for(var h of c)for(const m of[t,document]){var v=Yn.get(m),C=v.get(h);--C==0?(m.removeEventListener(h,Qr),v.delete(h),v.size===0&&Yn.delete(m)):v.set(h,C)}Kr.delete(d),f!==n&&f.parentNode?.removeChild(f)}});return ei.set(u,l),u}let ei=new WeakMap;function Zu(e,t){const n=ei.get(e);return n?(ei.delete(e),n(t)):Promise.resolve()}class Ju{anchor;#e=new Map;#t=new Map;#n=new Map;#o=new Set;#i=!0;constructor(t,n=!0){this.anchor=t,this.#i=n}#a=t=>{if(this.#e.has(t)){var n=this.#e.get(t),r=this.#t.get(n);if(r)lr(r),this.#o.delete(n);else{var i=this.#n.get(n);i&&(lr(i.effect),this.#t.set(n,i.effect),this.#n.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,a]of this.#e){if(this.#e.delete(s),s===t)break;const o=this.#n.get(a);o&&(Oe(o.effect),this.#n.delete(a))}for(const[s,a]of this.#t){if(s===n||this.#o.has(s))continue;const o=()=>{if(Array.from(this.#e.values()).includes(s)){var l=document.createDocumentFragment();Ri(a,l),l.append(Ve()),this.#n.set(s,{effect:a,fragment:l})}else Oe(a);this.#o.delete(s),this.#t.delete(s)};this.#i||!r?(this.#o.add(s),kt(a,o,!1)):o()}}};#r=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#n)n.includes(r)||(Oe(i.effect),this.#n.delete(r))};ensure(t,n){var r=te,i=ga();if(n&&!this.#t.has(t)&&!this.#n.has(t))if(i){var s=document.createDocumentFragment(),a=Ve();s.append(a),this.#n.set(t,{effect:je(()=>n(a)),fragment:s})}else this.#t.set(t,je(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[o,u]of this.#t)o===t?r.unskip_effect(u):r.skip_effect(u);for(const[o,u]of this.#n)o===t?r.unskip_effect(u.effect):r.skip_effect(u.effect);r.oncommit(this.#a),r.ondiscard(this.#r)}else W&&(this.anchor=Y),this.#a(r)}}function Ku(e){xe===null&&Zs(),_a(()=>{const t=$t(e);if(typeof t=="function")return t})}function Qu(e){xe===null&&Zs(),Ku(()=>()=>$t(e))}function Ha(e,t,n=!1){var r;W&&(r=Y,kn());var i=new Ju(e),s=n?sn:0;function a(o,u){if(W){var l=Ys(r);if(o!==parseInt(l.substring(1))){var f=ar();He(f),i.anchor=f,yt(!1),i.ensure(o,u),yt(!0);return}}i.ensure(o,u)}Hi(()=>{var o=!1;t((u,l=0)=>{o=!0,a(l,u)}),o||a(-1,null)},s)}function Ba(e,t){return t}function el(e,t,n){for(var r=[],i=t.length,s,a=t.length,o=0;o<i;o++){let c=t[o];kt(c,()=>{if(s){if(s.pending.delete(c),s.done.add(c),s.pending.size===0){var d=e.outrogroups;ti(e,mr(s.done)),d.delete(s),d.size===0&&(e.outrogroups=null)}}else a-=1},!1)}if(a===0){var u=r.length===0&&n!==null&&e.pending.size===0;if(u){var l=n,f=l.parentNode;va(f),f.append(l),e.items.clear()}ti(e,t,!u)}else s={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(s)}function ti(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(const a of e.pending.values())for(const o of a)r.add(e.items.get(o).e)}for(var i=0;i<t.length;i++){var s=t[i];if(r?.has(s)){s.f|=it;const a=document.createDocumentFragment();Ri(s,a)}else Oe(t[i],n)}}var ds;function Gi(e,t,n,r,i,s=null){var a=e,o=new Map,u=(t&Ds)!==0;if(u){var l=e;a=W?He(ft(l)):l.appendChild(Ve())}W&&kn();var f=null,c=na(()=>{var O=n();return Ms(O)?O:O==null?[]:mr(O)}),d,h=new Map,v=!0;function C(O){V.effect.f&Me||(V.pending.delete(O),V.fallback=f,tl(V,d,a,t,r),f!==null&&(d.length===0?f.f&it?(f.f^=it,Tn(f,null,a)):lr(f):kt(f,()=>{f=null})))}function m(O){V.pending.delete(O)}var $=Hi(()=>{d=H(c);var O=d.length;let R=!1;if(W){var q=Ys(a)===vi;q!==(O===0)&&(a=ar(),He(a),yt(!1),R=!0)}for(var M=new Set,A=te,x=ga(),_=0;_<O;_+=1){W&&Y.nodeType===pn&&Y.data===gi&&(a=Y,R=!0,yt(!1));var g=d[_],b=r(g,_),D=v?null:o.get(b);D?(D.v&&on(D.v,g),D.i&&on(D.i,_),x&&A.unskip_effect(D.e)):(D=nl(o,v?a:ds??=Ve(),g,b,_,i,t,n),v||(D.e.f|=it),o.set(b,D)),M.add(b)}if(O===0&&s&&!f&&(v?f=je(()=>s(a)):(f=je(()=>s(ds??=Ve())),f.f|=it)),O>M.size&&Jo(),W&&O>0&&He(ar()),!v)if(h.set(A,M),x){for(const[k,S]of o)M.has(k)||A.skip_effect(S.e);A.oncommit(C),A.ondiscard(m)}else C(A);R&&yt(!0),H(c)}),V={effect:$,items:o,pending:h,outrogroups:null,fallback:f};v=!1,W&&(a=Y)}function En(e){for(;e!==null&&!(e.f&Ye);)e=e.next;return e}function tl(e,t,n,r,i){var s=(r&No)!==0,a=t.length,o=e.items,u=En(e.effect.first),l,f=null,c,d=[],h=[],v,C,m,$;if(s)for($=0;$<a;$+=1)v=t[$],C=i(v,$),m=o.get(C).e,m.f&it||(m.nodes?.a?.measure(),(c??=new Set).add(m));for($=0;$<a;$+=1){if(v=t[$],C=i(v,$),m=o.get(C).e,e.outrogroups!==null)for(const g of e.outrogroups)g.pending.delete(m),g.done.delete(m);if(m.f&Ie&&(lr(m),s&&(m.nodes?.a?.unfix(),(c??=new Set).delete(m))),m.f&it)if(m.f^=it,m===u)Tn(m,null,n);else{var V=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),Ct(e,f,m),Ct(e,m,V),Tn(m,V,n),f=m,d=[],h=[],u=En(f.next);continue}if(m!==u){if(l!==void 0&&l.has(m)){if(d.length<h.length){var O=h[0],R;f=O.prev;var q=d[0],M=d[d.length-1];for(R=0;R<d.length;R+=1)Tn(d[R],O,n);for(R=0;R<h.length;R+=1)l.delete(h[R]);Ct(e,q.prev,M.next),Ct(e,f,q),Ct(e,M,O),u=O,f=M,$-=1,d=[],h=[]}else l.delete(m),Tn(m,u,n),Ct(e,m.prev,m.next),Ct(e,m,f===null?e.effect.first:f.next),Ct(e,f,m),f=m;continue}for(d=[],h=[];u!==null&&u!==m;)(l??=new Set).add(u),h.push(u),u=En(u.next);if(u===null)continue}m.f&it||d.push(m),f=m,u=En(m.next)}if(e.outrogroups!==null){for(const g of e.outrogroups)g.pending.size===0&&(ti(e,mr(g.done)),e.outrogroups?.delete(g));e.outrogroups.size===0&&(e.outrogroups=null)}if(u!==null||l!==void 0){var A=[];if(l!==void 0)for(m of l)m.f&Ie||A.push(m);for(;u!==null;)!(u.f&Ie)&&u!==e.fallback&&A.push(u),u=En(u.next);var x=A.length;if(x>0){var _=r&Ds&&a===0?n:null;if(s){for($=0;$<x;$+=1)A[$].nodes?.a?.measure();for($=0;$<x;$+=1)A[$].nodes?.a?.fix()}el(e,A,_)}}s&&st(()=>{if(c!==void 0)for(m of c)m.nodes?.a?.apply()})}function nl(e,t,n,r,i,s,a,o){var u=a&Do?a&Mo?zt(n):Ci(n,!1,!1):null,l=a&$o?zt(i):null;return{v:u,i:l,e:je(()=>(s(t,u??n,l??i,o),()=>{e.delete(r)}))}}function Tn(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,s=t&&!(t.f&it)?t.nodes.start:n;r!==null;){var a=ht(r);if(s.before(r),r===i)return;r=a}}function Ct(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Ui(e,t){$i(()=>{e=z?.parent?.nodes?.start??e;var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=Pi("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function Ra(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Ra(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function rl(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ra(e))&&(r&&(r+=" "),r+=t);return r}function il(e){return typeof e=="object"?rl(e):e??""}const ps=[...`
3
+ \r\f \v\uFEFF`];function sl(e,t,n){var r=e==null?"":""+e;if(t&&(r=r?r+" "+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+" "+i:i;else if(r.length)for(var s=i.length,a=0;(a=r.indexOf(i,a))>=0;){var o=a+s;(a===0||ps.includes(r[a-1]))&&(o===r.length||ps.includes(r[o]))?r=(a===0?"":r.substring(0,a))+r.substring(o+1):a=o}}return r===""?null:r}function al(e,t){return e==null?null:String(e)}function ji(e,t,n,r,i,s){var a=e[Vr];if(W||a!==n||a===void 0){var o=sl(n,r,s);(!W||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e[Vr]=n}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 ol(e,t,n,r){var i=e[Yr];if(W||i!==t){var s=al(t);(!W||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e[Yr]=t}return r}const ul=Symbol("is custom element"),ll=Symbol("is html"),fl=zs?"link":"LINK",cl=zs?"progress":"PROGRESS";function hl(e){if(W){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var r=e.value;fr(e,"value",null),e.value=r}if(e.hasAttribute("checked")){var i=e.checked;fr(e,"checked",null),e.checked=i}}};e[js]=n,st(n),pu()}}function dl(e,t){var n=La(e);n.value===(n.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!==cl)||(e.value=t??"")}function fr(e,t,n,r){var i=La(e);W&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===fl)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[Xo]=n),n==null?e.removeAttribute(t):typeof n!="string"&&pl(e).has(t)?e[t]=n:e.setAttribute(t,n))}function La(e){return e[Us]??={[ul]:e.nodeName.includes("-"),[ll]:e.namespaceURI===Go}}var vs=new Map;function pl(e){var t=e.getAttribute("is")||e.nodeName,n=vs.get(t);if(n)return n;vs.set(t,n=new Set);for(var r,i=e,s=Element.prototype;s!==i;){r=jo(i);for(var a in r)r[a].set&&a!=="innerHTML"&&a!=="textContent"&&a!=="innerText"&&n.add(a);i=Hs(i)}return n}class zi{#e=new WeakMap;#t;#n;static entries=new WeakMap;constructor(t){this.#n=t}observe(t,n){var r=this.#e.get(t)||new Set;return r.add(n),this.#e.set(t,r),this.#o().observe(t,this.#n),()=>{var i=this.#e.get(t);i.delete(n),i.size===0&&(this.#e.delete(t),this.#t.unobserve(t))}}#o(){return this.#t??(this.#t=new ResizeObserver(t=>{for(var n of t){zi.entries.set(n.target,n);for(var r of this.#e.get(n.target)||[])r(n)}}))}}var vl=new zi({box:"border-box"});function gl(e,t,n){var r=vl.observe(e,()=>n(e[t]));$i(()=>($t(()=>n(e[t])),r))}function Hr(e,t){return e===t||e?.[Pn]===t}function ml(e=_i(),t,n,r){var i=xe.r,s=z;return $i(()=>{var a,o;return Ni(()=>{a=o,o=r?.()||[],$t(()=>{Hr(n(...o),e)||(t(e,...o),a&&Hr(n(...a),e)&&t(null,...a))})}),()=>{let u=s;for(;u!==i&&u.parent!==null&&u.parent.f&rr;)u=u.parent;const l=()=>{o&&Hr(n(...o),e)&&t(null,...o)},f=u.teardown;u.teardown=()=>{l(),f?.()}}}),e}function At(e,t,n,r){var i=!0,s=(n&Ro)!==0,a=(n&Lo)!==0,o=r,u=!0,l=void 0,f=()=>a&&i?(l??=$n(r),H(l)):(u&&(u=!1,o=a?$t(r):r),o);let c;if(s){var d=Pn in e||Gs in e;c=Lt(e,t)?.set??(d&&t in e?R=>e[t]=R:void 0)}var h,v=!1;s?[h,v]=du(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=f(),c&&(ru(),c(h)));var C;if(C=()=>{var R=e[t];return R===void 0?f():(u=!0,R)},!(n&Bo))return C;if(c){var m=e.$$legacy;return function(R,q){return arguments.length>0?((!q||m||v)&&c(q?C():R),R):C()}}var $=!1,V=(n&Ho?$n:na)(()=>($=!1,C()));s&&H(V);var O=z;return function(R,q){if(arguments.length>0){const M=q?H(V):s?Ge(R):R;return ie(V,M),$=!0,o!==void 0&&(o=M),R}return St&&$||O.f&Me?V.v:H(V)}}function _l(e){return new bl(e)}class bl{#e;#t;constructor(t){var n=new Map,r=(s,a)=>{var o=Ci(a,!1,!1);return n.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return H(n.get(a)??r(a,Reflect.get(s,a)))},has(s,a){return a===Gs?!0:(H(n.get(a)??r(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,o){return ie(n.get(a)??r(a,o),o),Reflect.set(s,a,o)}});this.#t=(t.hydrate?qu:Na)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&Et(),this.#e=i.$$events;for(const s of Object.keys(this.#t))s==="$set"||s==="$destroy"||s==="$on"||nn(this,s,{get(){return this.#t[s]},set(a){this.#t[s]=a},enumerable:!0});this.#t.$set=s=>{Object.assign(i,s)},this.#t.$destroy=()=>{Zu(this.#t)}}$set(t){this.#t.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...i)=>n.call(this,...i);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(i=>i!==r)}}$destroy(){this.#t.$destroy()}}let ka;typeof HTMLElement=="function"&&(ka=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(i){return s=>{const a=Pi("slot");i!=="default"&&(a.name=i),Gt(s,a)}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=yl(this);for(const i of this.$$s)i in r&&(i==="default"&&!this.$$d.children?(this.$$d.children=t(i),n.default=!0):n[i]=t(i));for(const i of this.attributes){const s=this.$$g_p(i.name);s in this.$$d||(this.$$d[s]=Jn(s,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=_l({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:n,$$host:this}}),this.$$me=Au(()=>{Ni(()=>{this.$$r=!0;for(const i of nr(this.$$c)){if(!this.$$p_d[i]?.reflect)continue;this.$$d[i]=this.$$c[i];const s=Jn(i,this.$$d[i],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,s)}this.$$r=!1})});for(const i in this.$$l)for(const s of this.$$l[i]){const a=this.$$c.$on(i,s);this.$$l_u.set(s,a)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Jn(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return nr(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Jn(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;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 yl(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Vi(e,t,n,r,i,s){let a=class extends ka{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return nr(t).map(o=>(t[o].attribute||o).toLowerCase())}};return nr(t).forEach(o=>{nn(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){u=Jn(o,u,t),this.$$d[o]=u;var l=this.$$c;if(l){var f=Lt(l,o)?.get;f?l[o]=u:l.$set({[o]:u})}}})}),r.forEach(o=>{nn(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}const Be=(e,t)=>{window.postMessage({...t,type:`Challenges:${e}`},window.location.href)},El=e=>{Be("TabClicked",{tabName:e})},wl=(e,t,n)=>{Be("OptInClicked",{id:e,name:t,status:n})},xl=(e,t,n)=>{Be("OptOutClicked",{id:e,name:t,status:n})},Sl=(e,t,n)=>{Be("ViewDetailClicked",{id:e,name:t,status:n})},Tl=(e,t,n,r)=>{Be("DetailTabClicked",{id:e,name:t,status:n,tabName:r})},Cl=(e,t)=>{Be("DetailPageOpen",{isOpen:e,challengeId:t})},Al=(e,t,n)=>{Be("PauseClicked",{id:e,name:t,status:n})},Pl=(e,t,n)=>{Be("ResumeClicked",{id:e,name:t,status:n})},ni=e=>{Be("ActionSuccess",{action:e})},ri=(e,t,n)=>{Be("ActionFail",{action:e,errorMessage:t,errorCode:n})},Il=(e,t,n,r)=>{Be("GameLaunch",{gameId:e.CasinoGameId,ClientCompatibility:e.ClientCompatibility,GameId:e.GameId,GameName:e.GameName,GameLaunchUrl:e.GameLaunchUrl,RestrictedCountries:e.RestrictedCountries,Vendor:e.Vendor,challengeId:t,challengeName:n,challengeStatus:r})},Ol=(e,t,n)=>{Be("GoToDeposit",{id:e,name:t,status:n})},Fa=()=>{Be("LoginClicked")},Dl=e=>{Be("PromoClicked",{promoType:e})},$l="Challenges:OptoutConfirmed";var Cn=(e=>(e[e.Accumulative=0]="Accumulative",e[e.SingleBet=1]="SingleBet",e[e.MultipleOneBetSize=2]="MultipleOneBetSize",e[e.BetMultiplier=3]="BetMultiplier",e))(Cn||{}),An=(e=>(e[e.Single=0]="Single",e[e.Daily=1]="Daily",e[e.Weekly=2]="Weekly",e[e.Monthly=3]="Monthly",e))(An||{}),cr=(e=>(e[e.Draft=0]="Draft",e[e.Enabled=1]="Enabled",e[e.Paused=2]="Paused",e[e.Closed=3]="Closed",e[e.Deleted=4]="Deleted",e))(cr||{}),j=(e=>(e[e.Started=0]="Started",e[e.InProgress=1]="InProgress",e[e.PendingLevelReward=2]="PendingLevelReward",e[e.Completed=3]="Completed",e[e.Expired=4]="Expired",e[e.Forfeited=5]="Forfeited",e[e.Awaiting=6]="Awaiting",e[e.Paused=7]="Paused",e))(j||{}),Ga=(e=>(e[e.Completed=0]="Completed",e[e.Expired=1]="Expired",e[e.Forfeited=2]="Forfeited",e))(Ga||{}),ut=(e=>(e[e.Closed=0]="Closed",e[e.InProgress=1]="InProgress",e[e.Fillup=2]="Fillup",e[e.Completed=3]="Completed",e))(ut||{}),Kn=(e=>(e[e.RealCash=0]="RealCash",e[e.BonusMoney=1]="BonusMoney",e[e.Mixed=2]="Mixed",e))(Kn||{}),xr=(e=>(e[e.GameLaunch=0]="GameLaunch",e[e.Reward=1]="Reward",e[e.Manual=2]="Manual",e[e.Claim=3]="Claim",e[e.Event=4]="Event",e[e.Deposit=5]="Deposit",e[e.ClaimByButton=6]="ClaimByButton",e))(xr||{}),hr=(e=>(e[e.Casino=0]="Casino",e[e.Any=1]="Any",e[e.Sportsbook=2]="Sportsbook",e))(hr||{}),Ht=(e=>(e.OptIn="optIn",e.OptOut="optOut",e.Pause="pause",e.Resume="resume",e.Claim="claim",e))(Ht||{});const ln=0,Un=20,Nl=10,Ml=e=>e?Nl:Un,Hl=7,Bl=37;class Ua extends Error{constructor(t,n){super(n??"Challenge API Error"),this.errorCode=t,this.name="ChallengeApiError"}}const Rl=(e,t)=>new URL(`${e}/challenge/${t}`),tt=async(e,t,n,r=i=>i?.ErrorMessage??null)=>{const s=await(await fetch(Rl(e,t).href,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})).json();if(!s?.Success)throw new Ua(s?.ErrorCode??null,r(s));return s},Yi=({domainId:e,locale:t="en",pageNumber:n=ln,pageSize:r=Un,sessionId:i,isFutureAvailable:s=!1})=>({DomainId:String(e),PlayerLanguage:t,PageNumber:n,PageSize:r,...i&&{PlayerSession:i,IsFutureAvailable:s}}),ja=({domainId:e,locale:t="en",pageNumber:n=ln,pageSize:r=Un,challengeId:i,sessionId:s})=>({DomainId:String(e),PlayerLanguage:t,PageNumber:n,PageSize:r,ChallengeId:i,...s&&{PlayerSession:s}}),Br=e=>tt(e.endpoint,"GetChallengesInfo",Yi(e)),Ll=async({challengeId:e,...t})=>{const n={...ja({...t,challengeId:e})};return(await tt(t.endpoint,"GetChallengesInfo",n)).Data?.[0]},kl=e=>tt(e.endpoint,"DisplayableWidgetChallenges",Yi({...e,isFutureAvailable:e.isFutureAvailable??!0})),Fl=async({challengeId:e,...t})=>{const n={...ja({...t,challengeId:e})};return(await tt(t.endpoint,"DisplayableWidgetChallenges",n)).Data?.[0]},za=({userId:e,...t})=>{const n={...Yi(t),...e&&{UserId:String(e)}};return tt(t.endpoint,"PlayerHistory",n)},Gl=({domainId:e,code:t,sessionId:n,endpoint:r})=>{const i={DomainId:String(e),ActivationCode:t,PlayerSession:n};return tt(r,"GrantChallengeByCode",i)},Ul=async({challengeId:e,sessionId:t,endpoint:n})=>{const r={ChallengeId:e,...t&&{PlayerSession:t}};return(await tt(n,"GetChallengeGames",r)).ChallengeGames},jl=({endpoint:e,domainId:t,sessionId:n,userId:r,progressTo:i,isPause:s=!1})=>{const a={DomainId:String(t),...n&&{PlayerSession:n},...r&&{InternalUserId:String(r)},...s?{ProgressToDeactivate:i}:{ProgressToActivate:i}};return tt(e,"ChangeProgressStatus",a)},zl=({endpoint:e,domainId:t,challengeProgressId:n})=>{const r={DomainId:String(t),ChallengeProgressId:n};return tt(e,"ChangeProgressIsNewStatus",r)},Vl=({endpoint:e,domainId:t,sessionId:n,userId:r,challengeId:i})=>{const s={DomainId:String(t),...n&&{PlayerSession:n},ChallengeId:i,OperatorUserId:String(r)};return tt(e,"ChallengeForfeit",s,a=>a?.Message??a?.ErrorMessage??null)},Yl=({endpoint:e,domainId:t,sessionId:n,challengeId:r})=>{const i={DomainId:String(t),...n&&{PlayerSession:n},ChallengeId:r};return tt(e,"ChallengePlayerClaimByButtonGrant",i)};var Xi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ii={exports:{}};/** @license
4
+ * eventsource.js
5
+ * Available under MIT License (MIT)
6
+ * https://github.com/Yaffle/EventSource/
7
+ */(function(e,t){(function(n){var r=n.setTimeout,i=n.clearTimeout,s=n.XMLHttpRequest,a=n.XDomainRequest,o=n.ActiveXObject,u=n.EventSource,l=n.document,f=n.Promise,c=n.fetch,d=n.Response,h=n.TextDecoder,v=n.TextEncoder,C=n.AbortController;if(typeof window<"u"&&typeof l<"u"&&!("readyState"in l)&&l.body==null&&(l.readyState="loading",window.addEventListener("load",function(p){l.readyState="complete"},!1)),s==null&&o!=null&&(s=function(){return new o("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(p){function P(){}return P.prototype=p,new P}),Date.now||(Date.now=function(){return new Date().getTime()}),C==null){var m=c;c=function(p,P){var N=P.signal;return m(p,{headers:P.headers,credentials:P.credentials,cache:P.cache}).then(function(T){var G=T.body.getReader();return N._reader=G,N._aborted&&N._reader.cancel(),{status:T.status,statusText:T.statusText,headers:T.headers,body:{getReader:function(){return G}}}})},C=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function $(){this.bitsNeeded=0,this.codePoint=0}$.prototype.decode=function(p){function P(ne,re,U){if(U===1)return ne>=128>>re&&ne<<re<=2047;if(U===2)return ne>=2048>>re&&ne<<re<=55295||ne>=57344>>re&&ne<<re<=65535;if(U===3)return ne>=65536>>re&&ne<<re<=1114111;throw new Error}function N(ne,re){if(ne===6*1)return re>>6>15?3:re>31?2:1;if(ne===6*2)return re>15?3:2;if(ne===6*3)return 3;throw new Error}for(var T=65533,G="",B=this.bitsNeeded,X=this.codePoint,oe=0;oe<p.length;oe+=1){var Q=p[oe];B!==0&&(Q<128||Q>191||!P(X<<6|Q&63,B-6,N(B,X)))&&(B=0,X=T,G+=String.fromCharCode(X)),B===0?(Q>=0&&Q<=127?(B=0,X=Q):Q>=192&&Q<=223?(B=6*1,X=Q&31):Q>=224&&Q<=239?(B=6*2,X=Q&15):Q>=240&&Q<=247?(B=6*3,X=Q&7):(B=0,X=T),B!==0&&!P(X,B,N(B,X))&&(B=0,X=T)):(B-=6,X=X<<6|Q&63),B===0&&(X<=65535?G+=String.fromCharCode(X):(G+=String.fromCharCode(55296+(X-65535-1>>10)),G+=String.fromCharCode(56320+(X-65535-1&1023))))}return this.bitsNeeded=B,this.codePoint=X,G};var V=function(){try{return new h().decode(new v().encode("test"),{stream:!0})==="test"}catch(p){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+p)}return!1};(h==null||v==null||!V())&&(h=$);var O=function(){};function R(p){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=O,this.onload=O,this.onerror=O,this.onreadystatechange=O,this._contentType="",this._xhr=p,this._sendTimeout=0,this._abort=O}R.prototype.open=function(p,P){this._abort(!0);var N=this,T=this._xhr,G=1,B=0;this._abort=function(U){N._sendTimeout!==0&&(i(N._sendTimeout),N._sendTimeout=0),(G===1||G===2||G===3)&&(G=4,T.onload=O,T.onerror=O,T.onabort=O,T.onprogress=O,T.onreadystatechange=O,T.abort(),B!==0&&(i(B),B=0),U||(N.readyState=4,N.onabort(null),N.onreadystatechange())),G=0};var X=function(){if(G===1){var U=0,ue="",vt=void 0;if("contentType"in T)U=200,ue="OK",vt=T.contentType;else try{U=T.status,ue=T.statusText,vt=T.getResponseHeader("Content-Type")}catch{U=0,ue="",vt=void 0}U!==0&&(G=2,N.readyState=2,N.status=U,N.statusText=ue,N._contentType=vt,N.onreadystatechange())}},oe=function(){if(X(),G===2||G===3){G=3;var U="";try{U=T.responseText}catch{}N.readyState=3,N.responseText=U,N.onprogress()}},Q=function(U,ue){if((ue==null||ue.preventDefault==null)&&(ue={preventDefault:O}),oe(),G===1||G===2||G===3){if(G=4,B!==0&&(i(B),B=0),N.readyState=4,U==="load")N.onload(ue);else if(U==="error")N.onerror(ue);else if(U==="abort")N.onabort(ue);else throw new TypeError;N.onreadystatechange()}},ne=function(U){T!=null&&(T.readyState===4?(!("onload"in T)||!("onerror"in T)||!("onabort"in T))&&Q(T.responseText===""?"error":"load",U):T.readyState===3?"onprogress"in T||oe():T.readyState===2&&X())},re=function(){B=r(function(){re()},500),T.readyState===3&&oe()};"onload"in T&&(T.onload=function(U){Q("load",U)}),"onerror"in T&&(T.onerror=function(U){Q("error",U)}),"onabort"in T&&(T.onabort=function(U){Q("abort",U)}),"onprogress"in T&&(T.onprogress=oe),"onreadystatechange"in T&&(T.onreadystatechange=function(U){ne(U)}),("contentType"in T||!("ontimeout"in s.prototype))&&(P+=(P.indexOf("?")===-1?"?":"&")+"padding=true"),T.open(p,P,!0),"readyState"in T&&(B=r(function(){re()},0))},R.prototype.abort=function(){this._abort(!1)},R.prototype.getResponseHeader=function(p){return this._contentType},R.prototype.setRequestHeader=function(p,P){var N=this._xhr;"setRequestHeader"in N&&N.setRequestHeader(p,P)},R.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},R.prototype.send=function(){if((!("ontimeout"in s.prototype)||!("sendAsBinary"in s.prototype)&&!("mozAnon"in s.prototype))&&l!=null&&l.readyState!=null&&l.readyState!=="complete"){var p=this;p._sendTimeout=r(function(){p._sendTimeout=0,p.send()},4);return}var P=this._xhr;"withCredentials"in P&&(P.withCredentials=this.withCredentials);try{P.send(void 0)}catch(N){throw N}};function q(p){return p.replace(/[A-Z]/g,function(P){return String.fromCharCode(P.charCodeAt(0)+32)})}function M(p){for(var P=Object.create(null),N=p.split(`\r
8
+ `),T=0;T<N.length;T+=1){var G=N[T],B=G.split(": "),X=B.shift(),oe=B.join(": ");P[q(X)]=oe}this._map=P}M.prototype.get=function(p){return this._map[q(p)]},s!=null&&s.HEADERS_RECEIVED==null&&(s.HEADERS_RECEIVED=2);function A(){}A.prototype.open=function(p,P,N,T,G,B,X){p.open("GET",G);var oe=0;p.onprogress=function(){var ne=p.responseText,re=ne.slice(oe);oe+=re.length,N(re)},p.onerror=function(ne){ne.preventDefault(),T(new Error("NetworkError"))},p.onload=function(){T(null)},p.onabort=function(){T(null)},p.onreadystatechange=function(){if(p.readyState===s.HEADERS_RECEIVED){var ne=p.status,re=p.statusText,U=p.getResponseHeader("Content-Type"),ue=p.getAllResponseHeaders();P(ne,re,U,new M(ue))}},p.withCredentials=B;for(var Q in X)Object.prototype.hasOwnProperty.call(X,Q)&&p.setRequestHeader(Q,X[Q]);return p.send(),p};function x(p){this._headers=p}x.prototype.get=function(p){return this._headers.get(p)};function _(){}_.prototype.open=function(p,P,N,T,G,B,X){var oe=null,Q=new C,ne=Q.signal,re=new h;return c(G,{headers:X,credentials:B?"include":"same-origin",signal:ne,cache:"no-store"}).then(function(U){return oe=U.body.getReader(),P(U.status,U.statusText,U.headers.get("Content-Type"),new x(U.headers)),new f(function(ue,vt){var bn=function(){oe.read().then(function(Re){if(Re.done)ue(void 0);else{var Se=re.decode(Re.value,{stream:!0});N(Se),bn()}}).catch(function(Re){vt(Re)})};bn()})}).catch(function(U){if(U.name!=="AbortError")return U}).then(function(U){T(U)}),{abort:function(){oe?.cancel(),Q.abort()}}};function g(){this._listeners=Object.create(null)}function b(p){r(function(){throw p},0)}g.prototype.dispatchEvent=function(p){p.target=this;var P=this._listeners[p.type];if(P!=null)for(var N=P.length,T=0;T<N;T+=1){var G=P[T];try{typeof G.handleEvent=="function"?G.handleEvent(p):G.call(this,p)}catch(B){b(B)}}},g.prototype.addEventListener=function(p,P){p=String(p);var N=this._listeners,T=N[p];T==null&&(T=[],N[p]=T);for(var G=!1,B=0;B<T.length;B+=1)T[B]===P&&(G=!0);G||T.push(P)},g.prototype.removeEventListener=function(p,P){p=String(p);var N=this._listeners,T=N[p];if(T!=null){for(var G=[],B=0;B<T.length;B+=1)T[B]!==P&&G.push(T[B]);G.length===0?delete N[p]:N[p]=G}};function D(p){this.type=p,this.target=void 0}function k(p,P){D.call(this,p),this.data=P.data,this.lastEventId=P.lastEventId}k.prototype=Object.create(D.prototype);function S(p,P){D.call(this,p),this.status=P.status,this.statusText=P.statusText,this.headers=P.headers}S.prototype=Object.create(D.prototype);function w(p,P){D.call(this,p),this.error=P.error}w.prototype=Object.create(D.prototype);var E=-1,I=0,y=1,L=2,F=-1,Z=0,se=1,ce=2,_e=3,De=/^text\/event\-stream(;.*)?$/i,Tt=1e3,dt=18e6,pt=function(p,P){var N=p==null?P:parseInt(p,10);return N!==N&&(N=P),We(N)},We=function(p){return Math.min(Math.max(p,Tt),dt)},he=function(p,P,N){try{typeof P=="function"&&P.call(p,N)}catch(T){b(T)}};function de(p,P){g.call(this),P=P||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,Ao(this,p,P)}function Nt(){return s!=null&&"withCredentials"in s.prototype||a==null?new s:new a}var Wt=c!=null&&d!=null&&"body"in d.prototype;function Ao(p,P,N){P=String(P);var T=!!N.withCredentials,G=N.lastEventIdQueryParameterName||"lastEventId",B=We(1e3),X=pt(N.heartbeatTimeout,45e3),oe="",Q=B,ne=!1,re=0,U=N.headers||{},ue=N.Transport,vt=Wt&&ue==null?void 0:new R(ue!=null?new ue:Nt()),bn=ue!=null&&typeof ue!="string"?new ue:vt==null?new _:new A,Re=void 0,Se=0,qe=E,qt="",jn="",gt="",zn="",Te=Z,Ir=0,Mt=0,Po=function(be,ve,Le,ke){if(qe===I)if(be===200&&Le!=null&&De.test(Le)){qe=y,ne=Date.now(),Q=B,p.readyState=y;var Ce=new S("open",{status:be,statusText:ve,headers:ke});p.dispatchEvent(Ce),he(p,p.onopen,Ce)}else{var Ee="";be!==200?(ve&&(ve=ve.replace(/\s+/g," ")),Ee="EventSource's response has a status "+be+" "+ve+" that is not 200. Aborting the connection."):Ee="EventSource's response has a Content-Type specifying an unsupported type: "+(Le==null?"-":Le.replace(/\s+/g," "))+". Aborting the connection.",Or();var Ce=new S("error",{status:be,statusText:ve,headers:ke});p.dispatchEvent(Ce),he(p,p.onerror,Ce),console.error(Ee)}},Io=function(be){if(qe===y){for(var ve=-1,Le=0;Le<be.length;Le+=1){var ke=be.charCodeAt(Le);(ke===10||ke===13)&&(ve=Le)}var Ce=(ve!==-1?zn:"")+be.slice(0,ve+1);zn=(ve===-1?zn:"")+be.slice(ve+1),be!==""&&(ne=Date.now(),re+=be.length);for(var Ee=0;Ee<Ce.length;Ee+=1){var ke=Ce.charCodeAt(Ee);if(Te===F&&ke===10)Te=Z;else if(Te===F&&(Te=Z),ke===13||ke===10){if(Te!==Z){Te===se&&(Mt=Ee+1);var mt=Ce.slice(Ir,Mt-1),_t=Ce.slice(Mt+(Mt<Ee&&Ce.charCodeAt(Mt)===32?1:0),Ee);mt==="data"?(qt+=`
9
+ `,qt+=_t):mt==="id"?jn=_t:mt==="event"?gt=_t:mt==="retry"?(B=pt(_t,B),Q=B):mt==="heartbeatTimeout"&&(X=pt(_t,X),Se!==0&&(i(Se),Se=r(function(){yn()},X)))}if(Te===Z){if(qt!==""){oe=jn,gt===""&&(gt="message");var Zt=new k(gt,{data:qt.slice(1),lastEventId:jn});if(p.dispatchEvent(Zt),gt==="open"?he(p,p.onopen,Zt):gt==="message"?he(p,p.onmessage,Zt):gt==="error"&&he(p,p.onerror,Zt),qe===L)return}qt="",gt=""}Te=ke===13?F:Z}else Te===Z&&(Ir=Ee,Te=se),Te===se?ke===58&&(Mt=Ee+1,Te=ce):Te===ce&&(Te=_e)}}},rs=function(be){if(qe===y||qe===I){qe=E,Se!==0&&(i(Se),Se=0),Se=r(function(){yn()},Q),Q=We(Math.min(B*16,Q*2)),p.readyState=I;var ve=new w("error",{error:be});p.dispatchEvent(ve),he(p,p.onerror,ve),be!=null&&console.error(be)}},Or=function(){qe=L,Re!=null&&(Re.abort(),Re=void 0),Se!==0&&(i(Se),Se=0),p.readyState=L},yn=function(){if(Se=0,qe!==E){if(!ne&&Re!=null)rs(new Error("No activity within "+X+" milliseconds. "+(qe===I?"No response received.":re+" chars received.")+" Reconnecting.")),Re!=null&&(Re.abort(),Re=void 0);else{var be=Math.max((ne||Date.now())+X-Date.now(),1);ne=!1,Se=r(function(){yn()},be)}return}ne=!1,re=0,Se=r(function(){yn()},X),qe=I,qt="",gt="",jn=oe,zn="",Ir=0,Mt=0,Te=Z;var ve=P;if(P.slice(0,5)!=="data:"&&P.slice(0,5)!=="blob:"&&oe!==""){var Le=P.indexOf("?");ve=Le===-1?P:P.slice(0,Le+1)+P.slice(Le+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(_t,Zt){return Zt===G?"":_t}),ve+=(P.indexOf("?")===-1?"?":"&")+G+"="+encodeURIComponent(oe)}var ke=p.withCredentials,Ce={};Ce.Accept="text/event-stream";var Ee=p.headers;if(Ee!=null)for(var mt in Ee)Object.prototype.hasOwnProperty.call(Ee,mt)&&(Ce[mt]=Ee[mt]);try{Re=bn.open(vt,Po,Io,rs,ve,ke,Ce)}catch(_t){throw Or(),_t}};p.url=P,p.readyState=I,p.withCredentials=T,p.headers=U,p._close=Or,yn()}de.prototype=Object.create(g.prototype),de.prototype.CONNECTING=I,de.prototype.OPEN=y,de.prototype.CLOSED=L,de.prototype.close=function(){this._close()},de.CONNECTING=I,de.OPEN=y,de.CLOSED=L,de.prototype.withCredentials=void 0;var ns=u;s!=null&&(u==null||!("withCredentials"in u.prototype))&&(ns=de),function(p){{var P=p(t);P!==void 0&&(e.exports=P)}}(function(p){p.EventSourcePolyfill=de,p.NativeEventSource=u,p.EventSource=ns})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:Xi:globalThis)})(ii,ii.exports);var gs=ii.exports;const ms=(e,t)=>{try{return JSON.parse(e?.data)}catch(n){console.error(`Exception when parsing challenges ${t} live update`,n);return}},Xl=e=>{const{endpoint:t,userId:n,sessionId:r,onNewProgress:i,onSessionExpired:s,onChallengeEnabledChange:a,onProgressForfeited:o}=e;let u,l;const f=()=>{u?.close(),l?.close(),u=void 0,l=void 0};return typeof EventSource>"u"||!t?{close:f}:(n&&r&&(u=new gs.EventSourcePolyfill(`${t}/v2/player/${n}/information/updates`,{headers:{"X-SessionId":r}}),u.addEventListener("message",c=>{const d=ms(c,"player");if(!d)return;if(d.type==="SESSION_EXPIRATION"){f(),s?.();return}const h=d.body;if(h?.messageType==="newProgressNotification"){const v=h.challengeProgress;v&&String(v.InternalUserId)===String(n)&&i?.(v)}})),l=new gs.EventSourcePolyfill(`${t}/v1/encoder/challenges/*/update`),l.addEventListener("message",c=>{const h=ms(c,"status")?.data;if(h)switch(h.messageType){case"disabledChallengeNotification":a?.(String(h.challengeId),!1);break;case"enabledChallengeNotification":a?.(String(h.challengeId),!0);break;case"forfeitedChallengeProgressNotification":o?.(String(h.challengeProgressId));break}}),{close:f})},Wl=(e,t=!1)=>{if(typeof e=="boolean")return e;if(e==null)return t;if(typeof e=="number")return e!==0;const n=String(e).trim().toLowerCase();return n===""?!0:n!=="false"&&n!=="0"},ql=(e,t)=>{if(e==null||e==="")return t;const n=Number(e);return Number.isFinite(n)?n:t};var Va={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Xi,function(){var n=1e3,r=6e4,i=36e5,s="millisecond",a="second",o="minute",u="hour",l="day",f="week",c="month",d="quarter",h="year",v="date",C="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,V={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(S){var w=["th","st","nd","rd"],E=S%100;return"["+S+(w[(E-20)%10]||w[E]||w[0])+"]"}},O=function(S,w,E){var I=String(S);return!I||I.length>=w?S:""+Array(w+1-I.length).join(E)+S},R={s:O,z:function(S){var w=-S.utcOffset(),E=Math.abs(w),I=Math.floor(E/60),y=E%60;return(w<=0?"+":"-")+O(I,2,"0")+":"+O(y,2,"0")},m:function S(w,E){if(w.date()<E.date())return-S(E,w);var I=12*(E.year()-w.year())+(E.month()-w.month()),y=w.clone().add(I,c),L=E-y<0,F=w.clone().add(I+(L?-1:1),c);return+(-(I+(E-y)/(L?y-F:F-y))||0)},a:function(S){return S<0?Math.ceil(S)||0:Math.floor(S)},p:function(S){return{M:c,y:h,w:f,d:l,D:v,h:u,m:o,s:a,ms:s,Q:d}[S]||String(S||"").toLowerCase().replace(/s$/,"")},u:function(S){return S===void 0}},q="en",M={};M[q]=V;var A="$isDayjsObject",x=function(S){return S instanceof D||!(!S||!S[A])},_=function S(w,E,I){var y;if(!w)return q;if(typeof w=="string"){var L=w.toLowerCase();M[L]&&(y=L),E&&(M[L]=E,y=L);var F=w.split("-");if(!y&&F.length>1)return S(F[0])}else{var Z=w.name;M[Z]=w,y=Z}return!I&&y&&(q=y),y||!I&&q},g=function(S,w){if(x(S))return S.clone();var E=typeof w=="object"?w:{};return E.date=S,E.args=arguments,new D(E)},b=R;b.l=_,b.i=x,b.w=function(S,w){return g(S,{locale:w.$L,utc:w.$u,x:w.$x,$offset:w.$offset})};var D=function(){function S(E){this.$L=_(E.locale,null,!0),this.parse(E),this.$x=this.$x||E.x||{},this[A]=!0}var w=S.prototype;return w.parse=function(E){this.$d=function(I){var y=I.date,L=I.utc;if(y===null)return new Date(NaN);if(b.u(y))return new Date;if(y instanceof Date)return new Date(y);if(typeof y=="string"&&!/Z$/i.test(y)){var F=y.match(m);if(F){var Z=F[2]-1||0,se=(F[7]||"0").substring(0,3);return L?new Date(Date.UTC(F[1],Z,F[3]||1,F[4]||0,F[5]||0,F[6]||0,se)):new Date(F[1],Z,F[3]||1,F[4]||0,F[5]||0,F[6]||0,se)}}return new Date(y)}(E),this.init()},w.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},w.$utils=function(){return b},w.isValid=function(){return this.$d.toString()!==C},w.isSame=function(E,I){var y=g(E);return this.startOf(I)<=y&&y<=this.endOf(I)},w.isAfter=function(E,I){return g(E)<this.startOf(I)},w.isBefore=function(E,I){return this.endOf(I)<g(E)},w.$g=function(E,I,y){return b.u(E)?this[I]:this.set(y,E)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(E,I){var y=this,L=!!b.u(I)||I,F=b.p(E),Z=function(We,he){var de=b.w(y.$u?Date.UTC(y.$y,he,We):new Date(y.$y,he,We),y);return L?de:de.endOf(l)},se=function(We,he){return b.w(y.toDate()[We].apply(y.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(he)),y)},ce=this.$W,_e=this.$M,De=this.$D,Tt="set"+(this.$u?"UTC":"");switch(F){case h:return L?Z(1,0):Z(31,11);case c:return L?Z(1,_e):Z(0,_e+1);case f:var dt=this.$locale().weekStart||0,pt=(ce<dt?ce+7:ce)-dt;return Z(L?De-pt:De+(6-pt),_e);case l:case v:return se(Tt+"Hours",0);case u:return se(Tt+"Minutes",1);case o:return se(Tt+"Seconds",2);case a:return se(Tt+"Milliseconds",3);default:return this.clone()}},w.endOf=function(E){return this.startOf(E,!1)},w.$set=function(E,I){var y,L=b.p(E),F="set"+(this.$u?"UTC":""),Z=(y={},y[l]=F+"Date",y[v]=F+"Date",y[c]=F+"Month",y[h]=F+"FullYear",y[u]=F+"Hours",y[o]=F+"Minutes",y[a]=F+"Seconds",y[s]=F+"Milliseconds",y)[L],se=L===l?this.$D+(I-this.$W):I;if(L===c||L===h){var ce=this.clone().set(v,1);ce.$d[Z](se),ce.init(),this.$d=ce.set(v,Math.min(this.$D,ce.daysInMonth())).$d}else Z&&this.$d[Z](se);return this.init(),this},w.set=function(E,I){return this.clone().$set(E,I)},w.get=function(E){return this[b.p(E)]()},w.add=function(E,I){var y,L=this;E=Number(E);var F=b.p(I),Z=function(_e){var De=g(L);return b.w(De.date(De.date()+Math.round(_e*E)),L)};if(F===c)return this.set(c,this.$M+E);if(F===h)return this.set(h,this.$y+E);if(F===l)return Z(1);if(F===f)return Z(7);var se=(y={},y[o]=r,y[u]=i,y[a]=n,y)[F]||1,ce=this.$d.getTime()+E*se;return b.w(ce,this)},w.subtract=function(E,I){return this.add(-1*E,I)},w.format=function(E){var I=this,y=this.$locale();if(!this.isValid())return y.invalidDate||C;var L=E||"YYYY-MM-DDTHH:mm:ssZ",F=b.z(this),Z=this.$H,se=this.$m,ce=this.$M,_e=y.weekdays,De=y.months,Tt=y.meridiem,dt=function(he,de,Nt,Wt){return he&&(he[de]||he(I,L))||Nt[de].slice(0,Wt)},pt=function(he){return b.s(Z%12||12,he,"0")},We=Tt||function(he,de,Nt){var Wt=he<12?"AM":"PM";return Nt?Wt.toLowerCase():Wt};return L.replace($,function(he,de){return de||function(Nt){switch(Nt){case"YY":return String(I.$y).slice(-2);case"YYYY":return b.s(I.$y,4,"0");case"M":return ce+1;case"MM":return b.s(ce+1,2,"0");case"MMM":return dt(y.monthsShort,ce,De,3);case"MMMM":return dt(De,ce);case"D":return I.$D;case"DD":return b.s(I.$D,2,"0");case"d":return String(I.$W);case"dd":return dt(y.weekdaysMin,I.$W,_e,2);case"ddd":return dt(y.weekdaysShort,I.$W,_e,3);case"dddd":return _e[I.$W];case"H":return String(Z);case"HH":return b.s(Z,2,"0");case"h":return pt(1);case"hh":return pt(2);case"a":return We(Z,se,!0);case"A":return We(Z,se,!1);case"m":return String(se);case"mm":return b.s(se,2,"0");case"s":return String(I.$s);case"ss":return b.s(I.$s,2,"0");case"SSS":return b.s(I.$ms,3,"0");case"Z":return F}return null}(he)||F.replace(":","")})},w.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},w.diff=function(E,I,y){var L,F=this,Z=b.p(I),se=g(E),ce=(se.utcOffset()-this.utcOffset())*r,_e=this-se,De=function(){return b.m(F,se)};switch(Z){case h:L=De()/12;break;case c:L=De();break;case d:L=De()/3;break;case f:L=(_e-ce)/6048e5;break;case l:L=(_e-ce)/864e5;break;case u:L=_e/i;break;case o:L=_e/r;break;case a:L=_e/n;break;default:L=_e}return y?L:b.a(L)},w.daysInMonth=function(){return this.endOf(c).$D},w.$locale=function(){return M[this.$L]},w.locale=function(E,I){if(!E)return this.$L;var y=this.clone(),L=_(E,I,!0);return L&&(y.$L=L),y},w.clone=function(){return b.w(this.$d,this)},w.toDate=function(){return new Date(this.valueOf())},w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toISOString=function(){return this.$d.toISOString()},w.toString=function(){return this.$d.toUTCString()},S}(),k=D.prototype;return g.prototype=k,[["$ms",s],["$s",a],["$m",o],["$H",u],["$W",l],["$M",c],["$y",h],["$D",v]].forEach(function(S){k[S[1]]=function(w){return this.$g(w,S[0],S[1])}}),g.extend=function(S,w){return S.$i||(S(w,D,g),S.$i=!0),g},g.locale=_,g.isDayjs=x,g.unix=function(S){return g(1e3*S)},g.en=M[q],g.Ls=M,g.p={},g})})(Va);var Zl=Va.exports;const Ut=Wi(Zl);var Ya={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Xi,function(){var n,r,i=1e3,s=6e4,a=36e5,o=864e5,u=31536e6,l=2628e6,f=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,c=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,d={years:u,months:l,days:o,hours:a,minutes:s,seconds:i,milliseconds:1,weeks:6048e5},h=function(M){return M instanceof R},v=function(M,A,x){return new R(M,x,A.$l)},C=function(M){return r.p(M)+"s"},m=function(M){return M<0},$=function(M){return m(M)?Math.ceil(M):Math.floor(M)},V=function(M){return Math.abs(M)},O=function(M,A){return M?m(M)?{negative:!0,format:""+V(M)+A}:{negative:!1,format:""+M+A}:{negative:!1,format:""}},R=function(){function M(x,_,g){var b=this;if(this.$d={},this.$l=g,x===void 0&&(this.$ms=0,this.parseFromMilliseconds()),_)return v(x*d[C(_)],this);if(typeof x=="number")return this.$ms=x,this.parseFromMilliseconds(),this;if(typeof x=="object")return Object.keys(x).forEach(function(S){b.$d[C(S)]=x[S]}),this.calMilliseconds(),this;if(typeof x=="string"){var D=x.match(f);if(D){var k=D.slice(2).map(function(S){return S!=null?Number(S):0});return this.$d.years=k[0],this.$d.months=k[1],this.$d.weeks=k[2],this.$d.days=k[3],this.$d.hours=k[4],this.$d.minutes=k[5],this.$d.seconds=k[6],this.calMilliseconds(),this}}return this}var A=M.prototype;return A.calMilliseconds=function(){var x=this;this.$ms=Object.keys(this.$d).reduce(function(_,g){return _+(x.$d[g]||0)*d[g]},0)},A.parseFromMilliseconds=function(){var x=this.$ms;this.$d.years=$(x/u),x%=u,this.$d.months=$(x/l),x%=l,this.$d.days=$(x/o),x%=o,this.$d.hours=$(x/a),x%=a,this.$d.minutes=$(x/s),x%=s,this.$d.seconds=$(x/i),x%=i,this.$d.milliseconds=x},A.toISOString=function(){var x=O(this.$d.years,"Y"),_=O(this.$d.months,"M"),g=+this.$d.days||0;this.$d.weeks&&(g+=7*this.$d.weeks);var b=O(g,"D"),D=O(this.$d.hours,"H"),k=O(this.$d.minutes,"M"),S=this.$d.seconds||0;this.$d.milliseconds&&(S+=this.$d.milliseconds/1e3,S=Math.round(1e3*S)/1e3);var w=O(S,"S"),E=x.negative||_.negative||b.negative||D.negative||k.negative||w.negative,I=D.format||k.format||w.format?"T":"",y=(E?"-":"")+"P"+x.format+_.format+b.format+I+D.format+k.format+w.format;return y==="P"||y==="-P"?"P0D":y},A.toJSON=function(){return this.toISOString()},A.format=function(x){var _=x||"YYYY-MM-DDTHH:mm:ss",g={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return _.replace(c,function(b,D){return D||String(g[b])})},A.as=function(x){return this.$ms/d[C(x)]},A.get=function(x){var _=this.$ms,g=C(x);return g==="milliseconds"?_%=1e3:_=g==="weeks"?$(_/d[g]):this.$d[g],_||0},A.add=function(x,_,g){var b;return b=_?x*d[C(_)]:h(x)?x.$ms:v(x,this).$ms,v(this.$ms+b*(g?-1:1),this)},A.subtract=function(x,_){return this.add(x,_,!0)},A.locale=function(x){var _=this.clone();return _.$l=x,_},A.clone=function(){return v(this.$ms,this)},A.humanize=function(x){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!x)},A.valueOf=function(){return this.asMilliseconds()},A.milliseconds=function(){return this.get("milliseconds")},A.asMilliseconds=function(){return this.as("milliseconds")},A.seconds=function(){return this.get("seconds")},A.asSeconds=function(){return this.as("seconds")},A.minutes=function(){return this.get("minutes")},A.asMinutes=function(){return this.as("minutes")},A.hours=function(){return this.get("hours")},A.asHours=function(){return this.as("hours")},A.days=function(){return this.get("days")},A.asDays=function(){return this.as("days")},A.weeks=function(){return this.get("weeks")},A.asWeeks=function(){return this.as("weeks")},A.months=function(){return this.get("months")},A.asMonths=function(){return this.as("months")},A.years=function(){return this.get("years")},A.asYears=function(){return this.as("years")},M}(),q=function(M,A,x){return M.add(A.years()*x,"y").add(A.months()*x,"M").add(A.days()*x,"d").add(A.hours()*x,"h").add(A.minutes()*x,"m").add(A.seconds()*x,"s").add(A.milliseconds()*x,"ms")};return function(M,A,x){n=x,r=x().$utils(),x.duration=function(b,D){var k=x.locale();return v(b,{$l:k},D)},x.isDuration=h;var _=A.prototype.add,g=A.prototype.subtract;A.prototype.add=function(b,D){return h(b)?q(this,b,1):_.bind(this)(b,D)},A.prototype.subtract=function(b,D){return h(b)?q(this,b,-1):g.bind(this)(b,D)}}})})(Ya);var Jl=Ya.exports;const Kl=Wi(Jl);Ut.extend(Kl);const Ql=e=>e.toString().padStart(2,"0"),ef=(e,t=Ut().valueOf())=>{const n=Ut(e).valueOf()-t;if(n<=0)return null;const r=Ut.duration(n);return[Math.floor(r.asDays()),r.hours(),r.minutes(),r.seconds()].map(Ql).join(" : ")},Xa=(e,t="DD/MM/YYYY")=>Ut(e).format(t),tf=(e,t=2)=>{const n=Number(e),r=n.toFixed(t);return r.endsWith(`.${"0".repeat(t)}`)?String(Math.trunc(n)):r},nf=(e,t,n=Ut().valueOf())=>{if(!t)return null;switch(e){case j.Expired:case j.Forfeited:case j.Completed:return{date:Xa(t)};default:return{label:"endsIn",countdownTime:ef(t,n)}}},rf=e=>{switch(e){case j.Started:case j.Awaiting:return"scheduled";case j.InProgress:case j.PendingLevelReward:return"ongoing";case j.Paused:return"paused";case j.Completed:return"completed";case j.Expired:return"expired";case j.Forfeited:return"rejected";default:return e}},sf=(e,t=!1,n=!1)=>{if(n)return"suspended";const r=rf(e);return t&&r==="scheduled"?"new":r},Wa=-1,qa=(e,t=[])=>e.Status===j.Started&&(e.LevelProgresses?.[0]?.ProgressPercentage??0)>0||t.includes(e.ChallengeId),af=e=>e.Status===j.Awaiting,of=(e,t=[])=>{if(e.Status===j.Completed)return 100;if(!(qa(e,t)||e.Status===j.PendingLevelReward||e.Status===j.InProgress||e.Status===j.Paused))return Wa;const r=e.LevelProgresses??[],i=r.find(a=>a.ProgressStatus===ut.InProgress);return i?i.ProgressPercentage:r.filter(a=>a.ProgressStatus===ut.Fillup||a.ProgressStatus===ut.Completed).at(-1)?.ProgressPercentage??0},Za=e=>j[e.Status]??"",qi=(e,t)=>!!e.Triggers?.includes(t),Sr=e=>qi(e,xr.Deposit),Zi=e=>!Sr(e)&&qi(e,xr.ClaimByButton),uf=e=>!Sr(e)&&!Zi(e)&&qi(e,xr.GameLaunch),Rr={kind:"viewDetails",labelKey:"viewDetails",variant:"secondary"},lf={kind:"login",labelKey:"login",variant:"primary"},ff=(e,t={})=>{const{isPromo:n=!1,isPaused:r=!1,isAuthorized:i=!1}=t;if(!i)return lf;if(r||qa(e,[])||e.Status===j.Expired)return Rr;if(n)return Sr(e)?{kind:"deposit",labelKey:"deposit",variant:"primary"}:Zi(e)?{kind:"claim",labelKey:"claim",variant:"primary"}:uf(e)?{kind:"launchGame",labelKey:"launchGame",variant:"primary"}:Rr;switch(e.Status){case j.Started:return{kind:"optIn",labelKey:"optIn",variant:"primary"};case j.Paused:return{kind:"resume",labelKey:"resume",variant:"accent"};case j.InProgress:case j.PendingLevelReward:return{kind:"pause",labelKey:"pause",variant:"secondary"};default:return Rr}},cf="0",hf=(e,t)=>{if(Sr(e)){const n=tf(e.AmountToTriggerDeposit??0);return n===cf?t("noDepositAmountDescription"):`${t("deposit")} ${e.CurrencySymbol??""}${n} ${t("depositAmountDescription")}`}return Zi(e)?t("claimDescription"):t("launchDescription")};var df=function(t){return pf(t)&&!vf(t)};function pf(e){return!!e&&typeof e=="object"}function vf(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||_f(e)}var gf=typeof Symbol=="function"&&Symbol.for,mf=gf?Symbol.for("react.element"):60103;function _f(e){return e.$$typeof===mf}function bf(e){return Array.isArray(e)?[]:{}}function Hn(e,t){return t.clone!==!1&&t.isMergeableObject(e)?fn(bf(e),e,t):e}function yf(e,t,n){return e.concat(t).map(function(r){return Hn(r,n)})}function Ef(e,t){if(!t.customMerge)return fn;var n=t.customMerge(e);return typeof n=="function"?n:fn}function wf(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function _s(e){return Object.keys(e).concat(wf(e))}function Ja(e,t){try{return t in e}catch{return!1}}function xf(e,t){return Ja(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Sf(e,t,n){var r={};return n.isMergeableObject(e)&&_s(e).forEach(function(i){r[i]=Hn(e[i],n)}),_s(t).forEach(function(i){xf(e,i)||(Ja(e,i)&&n.isMergeableObject(t[i])?r[i]=Ef(i,n)(e[i],t[i],n):r[i]=Hn(t[i],n))}),r}function fn(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||yf,n.isMergeableObject=n.isMergeableObject||df,n.cloneUnlessOtherwiseSpecified=Hn;var r=Array.isArray(t),i=Array.isArray(e),s=r===i;return s?r?n.arrayMerge(e,t,n):Sf(e,t,n):Hn(t,n)}fn.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return fn(r,i,n)},{})};var Tf=fn,Cf=Tf;const Af=Wi(Cf);var si=function(e,t){return si=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},si(e,t)};function Tr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");si(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var rt=function(){return rt=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},rt.apply(this,arguments)};function Pf(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Lr(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}function kr(e,t){var n=t&&t.cache?t.cache:Hf,r=t&&t.serializer?t.serializer:Nf,i=t&&t.strategy?t.strategy:Df;return i(e,{cache:n,serializer:r})}function If(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Of(e,t,n,r){var i=If(r)?r:n(r),s=t.get(i);return typeof s>"u"&&(s=e.call(this,r),t.set(i,s)),s}function Ka(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),s=t.get(i);return typeof s>"u"&&(s=e.apply(this,r),t.set(i,s)),s}function Qa(e,t,n,r,i){return n.bind(t,e,r,i)}function Df(e,t){var n=e.length===1?Of:Ka;return Qa(e,this,n,t.cache.create(),t.serializer)}function $f(e,t){return Qa(e,this,Ka,t.cache.create(),t.serializer)}var Nf=function(){return JSON.stringify(arguments)},Mf=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e}(),Hf={create:function(){return new Mf}},Fr={variadic:$f},dr=function(){return dr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},dr.apply(this,arguments)};var J;(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"})(J||(J={}));var ae;(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"})(ae||(ae={}));var cn;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(cn||(cn={}));function bs(e){return e.type===ae.literal}function Bf(e){return e.type===ae.argument}function eo(e){return e.type===ae.number}function to(e){return e.type===ae.date}function no(e){return e.type===ae.time}function ro(e){return e.type===ae.select}function io(e){return e.type===ae.plural}function Rf(e){return e.type===ae.pound}function so(e){return e.type===ae.tag}function ao(e){return!!(e&&typeof e=="object"&&e.type===cn.number)}function ai(e){return!!(e&&typeof e=="object"&&e.type===cn.dateTime)}var oo=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Lf=/(?:[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 kf(e){var t={};return e.replace(Lf,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var le=function(){return le=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},le.apply(this,arguments)};var Ff=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Gf(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Ff).filter(function(d){return d.length>0}),n=[],r=0,i=t;r<i.length;r++){var s=i[r],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")}n.push({stem:o,options:u})}return n}function Uf(e){return e.replace(/^(.*?)-/,"")}var ys=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,uo=/^(@+)?(\+|#+)?[rs]?$/g,jf=/(\*)(0+)|(#+)(0+)|(0+)/g,lo=/^(0+)$/;function Es(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(uo,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function fo(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 zf(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!lo.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function ws(e){var t={},n=fo(e);return n||t}function Vf(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Uf(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=le(le(le({},t),{notation:"scientific"}),i.options.reduce(function(u,l){return le(le({},u),ws(l))},{}));continue;case"engineering":t=le(le(le({},t),{notation:"engineering"}),i.options.reduce(function(u,l){return le(le({},u),ws(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(jf,function(u,l,f,c,d,h){if(l)t.minimumIntegerDigits=f.length;else{if(c&&d)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(lo.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(ys.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ys,function(u,l,f,c,d,h){return f==="*"?t.minimumFractionDigits=l.length:c&&c[0]==="#"?t.maximumFractionDigits=c.length:d&&h?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+h.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var s=i.options[0];s==="w"?t=le(le({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=le(le({},t),Es(s)));continue}if(uo.test(i.stem)){t=le(le({},t),Es(i.stem));continue}var a=fo(i.stem);a&&(t=le(le({},t),a));var o=zf(i.stem);o&&(t=le(le({},t),o))}return t}var Xn={"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 Yf(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var s=0;r+1<e.length&&e.charAt(r+1)===i;)s++,r++;var a=1+(s&1),o=s<2?1:3+(s>>1),u="a",l=Xf(t);for((l=="H"||l=="k")&&(o=0);o-- >0;)n+=u;for(;a-- >0;)n=l+n}else i==="J"?n+="H":n+=i}return n}function Xf(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=Xn[r||""]||Xn[n||""]||Xn["".concat(n,"-001")]||Xn["001"];return i[0]}var Gr,Wf=new RegExp("^".concat(oo.source,"*")),qf=new RegExp("".concat(oo.source,"*$"));function ee(e,t){return{start:e,end:t}}var Zf=!!String.prototype.startsWith&&"_a".startsWith("a",1),Jf=!!String.fromCodePoint,Kf=!!Object.fromEntries,Qf=!!String.prototype.codePointAt,ec=!!String.prototype.trimStart,tc=!!String.prototype.trimEnd,nc=!!Number.isSafeInteger,rc=nc?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},oi=!0;try{var ic=ho("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");oi=((Gr=ic.exec("a"))===null||Gr===void 0?void 0:Gr[0])==="a"}catch{oi=!1}var xs=Zf?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},ui=Jf?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,s=0,a;i>s;){if(a=t[s++],a>1114111)throw RangeError(a+" is not a valid code point");r+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return r},Ss=Kf?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var s=i[r],a=s[0],o=s[1];n[a]=o}return n},co=Qf?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),s;return i<55296||i>56319||n+1===r||(s=t.charCodeAt(n+1))<56320||s>57343?i:(i-55296<<10)+(s-56320)+65536}},sc=ec?function(t){return t.trimStart()}:function(t){return t.replace(Wf,"")},ac=tc?function(t){return t.trimEnd()}:function(t){return t.replace(qf,"")};function ho(e,t){return new RegExp(e,t)}var li;if(oi){var Ts=ho("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");li=function(t,n){var r;Ts.lastIndex=n;var i=Ts.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else li=function(t,n){for(var r=[];;){var i=co(t,n);if(i===void 0||po(i)||fc(i))break;r.push(i),n+=i>=65536?2:1}return ui.apply(void 0,r)};var oc=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var s=this.char();if(s===123){var a=this.parseArgument(t,r);if(a.err)return a;i.push(a.val)}else{if(s===125&&t>0)break;if(s===35&&(n==="plural"||n==="selectordinal")){var o=this.clonePosition();this.bump(),i.push({type:ae.pound,location:ee(o,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(J.UNMATCHED_CLOSING_TAG,ee(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&fi(this.peek()||0)){var a=this.parseTag(t,n);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(t,n);if(a.err)return a;i.push(a.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ae.literal,value:"<".concat(i,"/>"),location:ee(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,n,!0);if(s.err)return s;var a=s.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!fi(this.char()))return this.error(J.INVALID_TAG,ee(o,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(J.UNMATCHED_CLOSING_TAG,ee(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ae.tag,value:i,children:a,location:ee(r,this.clonePosition())},err:null}:this.error(J.INVALID_TAG,ee(o,this.clonePosition())))}else return this.error(J.UNCLOSED_TAG,ee(r,this.clonePosition()))}else return this.error(J.INVALID_TAG,ee(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&lc(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var s=this.tryParseQuote(n);if(s){i+=s;continue}var a=this.tryParseUnquoted(t,n);if(a){i+=a;continue}var o=this.tryParseLeftAngleBracket();if(o){i+=o;continue}break}var u=ee(r,this.clonePosition());return{val:{type:ae.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!uc(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return ui.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),ui(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(J.EXPECT_ARGUMENT_CLOSING_BRACE,ee(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(J.EMPTY_ARGUMENT,ee(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(J.MALFORMED_ARGUMENT,ee(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(J.EXPECT_ARGUMENT_CLOSING_BRACE,ee(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ae.argument,value:i,location:ee(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(J.EXPECT_ARGUMENT_CLOSING_BRACE,ee(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(J.MALFORMED_ARGUMENT,ee(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=li(this.message,n),i=n+r.length;this.bumpTo(i);var s=this.clonePosition(),a=ee(t,s);return{value:r,location:a}},e.prototype.parseArgumentOptions=function(t,n,r,i){var s,a=this.clonePosition(),o=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(o){case"":return this.error(J.EXPECT_ARGUMENT_TYPE,ee(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 d=ac(c.val);if(d.length===0)return this.error(J.EXPECT_ARGUMENT_STYLE,ee(this.clonePosition(),this.clonePosition()));var h=ee(f,this.clonePosition());l={style:d,styleLocation:h}}var v=this.tryParseArgumentClose(i);if(v.err)return v;var C=ee(i,this.clonePosition());if(l&&xs(l?.style,"::",0)){var m=sc(l.style.slice(2));if(o==="number"){var c=this.parseNumberSkeletonFromString(m,l.styleLocation);return c.err?c:{val:{type:ae.number,value:r,location:C,style:c.val},err:null}}else{if(m.length===0)return this.error(J.EXPECT_DATE_TIME_SKELETON,C);var $=m;this.locale&&($=Yf(m,this.locale));var d={type:cn.dateTime,pattern:$,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?kf($):{}},V=o==="date"?ae.date:ae.time;return{val:{type:V,value:r,location:C,style:d},err:null}}}return{val:{type:o==="number"?ae.number:o==="date"?ae.date:ae.time,value:r,location:C,style:(s=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(J.EXPECT_SELECT_ARGUMENT_OPTIONS,ee(O,dr({},O)));this.bumpSpace();var R=this.parseIdentifierIfPossible(),q=0;if(o!=="select"&&R.value==="offset"){if(!this.bumpIf(":"))return this.error(J.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ee(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(J.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,J.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),R=this.parseIdentifierIfPossible(),q=c.val}var M=this.tryParsePluralOrSelectOptions(t,o,n,R);if(M.err)return M;var v=this.tryParseArgumentClose(i);if(v.err)return v;var A=ee(i,this.clonePosition());return o==="select"?{val:{type:ae.select,value:r,options:Ss(M.val),location:A},err:null}:{val:{type:ae.plural,value:r,options:Ss(M.val),offset:q,pluralType:o==="plural"?"cardinal":"ordinal",location:A},err:null}}default:return this.error(J.INVALID_ARGUMENT_TYPE,ee(a,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(J.EXPECT_ARGUMENT_CLOSING_BRACE,ee(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(J.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ee(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=Gf(t)}catch{return this.error(J.INVALID_NUMBER_SKELETON,n)}return{val:{type:cn.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?Vf(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,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(n!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(J.EXPECT_PLURAL_ARGUMENT_SELECTOR,J.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;f=ee(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}else break}if(u.has(l))return this.error(n==="select"?J.DUPLICATE_SELECT_ARGUMENT_SELECTOR:J.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);l==="other"&&(a=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?J.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:J.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ee(this.clonePosition(),this.clonePosition()));var v=this.parseMessage(t+1,n,r);if(v.err)return v;var C=this.tryParseArgumentClose(h);if(C.err)return C;o.push([l,{value:v.val,location:ee(h,this.clonePosition())}]),u.add(l),this.bumpSpace(),s=this.parseIdentifierIfPossible(),l=s.value,f=s.location}return o.length===0?this.error(n==="select"?J.EXPECT_SELECT_ARGUMENT_SELECTOR:J.EXPECT_PLURAL_ARGUMENT_SELECTOR,ee(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(J.MISSING_OTHER_CLAUSE,ee(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-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=ee(i,this.clonePosition());return s?(a*=r,rc(a)?{val:a,err:null}:this.error(n,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=co(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(xs(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&po(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function fi(e){return e>=97&&e<=122||e>=65&&e<=90}function uc(e){return fi(e)||e===47}function lc(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 po(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function fc(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 ci(e){e.forEach(function(t){if(delete t.location,ro(t)||io(t))for(var n in t.options)delete t.options[n].location,ci(t.options[n].value);else eo(t)&&ao(t.style)||(to(t)||no(t))&&ai(t.style)?delete t.style.location:so(t)&&ci(t.children)})}function cc(e,t){t===void 0&&(t={}),t=dr({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new oc(e,t).parse();if(n.err){var r=SyntaxError(J[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t?.captureLocation||ci(n.val),n.val}var hn;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(hn||(hn={}));var Cr=function(e){Tr(t,e);function t(n,r,i){var s=e.call(this,n)||this;return s.code=r,s.originalMessage=i,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Cs=function(e){Tr(t,e);function t(n,r,i,s){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),hn.INVALID_VALUE,s)||this}return t}(Cr),hc=function(e){Tr(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),hn.INVALID_VALUE,i)||this}return t}(Cr),dc=function(e){Tr(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),hn.MISSING_VALUE,r)||this}return t}(Cr),Ae;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Ae||(Ae={}));function pc(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==Ae.literal||n.type!==Ae.literal?t.push(n):r.value+=n.value,t},[])}function vc(e){return typeof e=="function"}function Qn(e,t,n,r,i,s,a){if(e.length===1&&bs(e[0]))return[{type:Ae.literal,value:e[0].value}];for(var o=[],u=0,l=e;u<l.length;u++){var f=l[u];if(bs(f)){o.push({type:Ae.literal,value:f.value});continue}if(Rf(f)){typeof s=="number"&&o.push({type:Ae.literal,value:n.getNumberFormat(t).format(s)});continue}var c=f.value;if(!(i&&c in i))throw new dc(c,a);var d=i[c];if(Bf(f)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),o.push({type:typeof d=="string"?Ae.literal:Ae.object,value:d});continue}if(to(f)){var h=typeof f.style=="string"?r.date[f.style]:ai(f.style)?f.style.parsedOptions:void 0;o.push({type:Ae.literal,value:n.getDateTimeFormat(t,h).format(d)});continue}if(no(f)){var h=typeof f.style=="string"?r.time[f.style]:ai(f.style)?f.style.parsedOptions:r.time.medium;o.push({type:Ae.literal,value:n.getDateTimeFormat(t,h).format(d)});continue}if(eo(f)){var h=typeof f.style=="string"?r.number[f.style]:ao(f.style)?f.style.parsedOptions:void 0;h&&h.scale&&(d=d*(h.scale||1)),o.push({type:Ae.literal,value:n.getNumberFormat(t,h).format(d)});continue}if(so(f)){var v=f.children,C=f.value,m=i[C];if(!vc(m))throw new hc(C,"function",a);var $=Qn(v,t,n,r,i,s),V=m($.map(function(q){return q.value}));Array.isArray(V)||(V=[V]),o.push.apply(o,V.map(function(q){return{type:typeof q=="string"?Ae.literal:Ae.object,value:q}}))}if(ro(f)){var O=f.options[d]||f.options.other;if(!O)throw new Cs(f.value,d,Object.keys(f.options),a);o.push.apply(o,Qn(O.value,t,n,r,i));continue}if(io(f)){var O=f.options["=".concat(d)];if(!O){if(!Intl.PluralRules)throw new Cr(`Intl.PluralRules is not available in this environment.
10
+ Try polyfilling it using "@formatjs/intl-pluralrules"
11
+ `,hn.MISSING_INTL_API,a);var R=n.getPluralRules(t,{type:f.pluralType}).select(d-(f.offset||0));O=f.options[R]||f.options.other}if(!O)throw new Cs(f.value,d,Object.keys(f.options),a);o.push.apply(o,Qn(O.value,t,n,r,i,d-(f.offset||0)));continue}}return pc(o)}function gc(e,t){return t?rt(rt(rt({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=rt(rt({},e[r]),t[r]||{}),n},{})):e}function mc(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=gc(e[r],t[r]),n},rt({},e)):e}function Ur(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function _c(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:kr(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,Lr([void 0],n,!1)))},{cache:Ur(e.number),strategy:Fr.variadic}),getDateTimeFormat:kr(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,Lr([void 0],n,!1)))},{cache:Ur(e.dateTime),strategy:Fr.variadic}),getPluralRules:kr(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,Lr([void 0],n,!1)))},{cache:Ur(e.pluralRules),strategy:Fr.variadic})}}var bc=function(){function e(t,n,r,i){n===void 0&&(n=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,d){return!c.length||d.type!==Ae.literal||typeof c[c.length-1]!="string"?c.push(d.value):c[c.length-1]+=d.value,c},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(u){return Qn(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=n,this.resolvedLocale=e.resolveLocale(n),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=Pf(a,["formatters"]);this.ast=e.__parse(t,rt(rt({},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=mc(e.formats,r),this.formatters=i&&i.formatters||_c(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=cc,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 yc(e,t){if(t==null)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let i=0;i<n.length;i++)if(typeof r=="object"){if(i>0){const s=n.slice(i,n.length).join(".");if(s in r){r=r[s];break}}r=r[n[i]]}else r=void 0;return r}const Pt={},Ec=(e,t,n)=>n&&(t in Pt||(Pt[t]={}),e in Pt[t]||(Pt[t][e]=n),n),vo=(e,t)=>{if(t==null)return;if(t in Pt&&e in Pt[t])return Pt[t][e];const n=Ar(t);for(let r=0;r<n.length;r++){const i=n[r],s=xc(i,e);if(s)return Ec(e,t,s)}};let Ji;const mn=wr({});function wc(e){return Ji[e]||null}function go(e){return e in Ji}function xc(e,t){if(!go(e))return null;const n=wc(e);return yc(n,t)}function Sc(e){if(e==null)return;const t=Ar(e);for(let n=0;n<t.length;n++){const r=t[n];if(go(r))return r}}function mo(e,...t){delete Pt[e],mn.update(n=>(n[e]=Af.all([n[e]||{},...t]),n))}vn([mn],([e])=>Object.keys(e));mn.subscribe(e=>Ji=e);const er={};function Tc(e,t){er[e].delete(t),er[e].size===0&&delete er[e]}function _o(e){return er[e]}function Cc(e){return Ar(e).map(t=>{const n=_o(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function hi(e){return e==null?!1:Ar(e).some(t=>{var n;return(n=_o(t))==null?void 0:n.size})}function Ac(e,t){return Promise.all(t.map(r=>(Tc(e,r),r().then(i=>i.default||i)))).then(r=>mo(e,...r))}const wn={};function bo(e){if(!hi(e))return e in wn?wn[e]:Promise.resolve();const t=Cc(e);return wn[e]=Promise.all(t.map(([n,r])=>Ac(n,r))).then(()=>{if(hi(e))return bo(e);delete wn[e]}),wn[e]}const Pc={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"}}},Ic={fallbackLocale:null,loadingDelay:200,formats:Pc,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Oc=Ic;function dn(){return Oc}const jr=wr(!1);var Dc=Object.defineProperty,$c=Object.defineProperties,Nc=Object.getOwnPropertyDescriptors,As=Object.getOwnPropertySymbols,Mc=Object.prototype.hasOwnProperty,Hc=Object.prototype.propertyIsEnumerable,Ps=(e,t,n)=>t in e?Dc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bc=(e,t)=>{for(var n in t||(t={}))Mc.call(t,n)&&Ps(e,n,t[n]);if(As)for(var n of As(t))Hc.call(t,n)&&Ps(e,n,t[n]);return e},Rc=(e,t)=>$c(e,Nc(t));let di;const pr=wr(null);function Is(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function Ar(e,t=dn().fallbackLocale){const n=Is(e);return t?[...new Set([...n,...Is(t)])]:n}function Xt(){return di??void 0}pr.subscribe(e=>{di=e??void 0,typeof window<"u"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Lc=e=>{if(e&&Sc(e)&&hi(e)){const{loadingDelay:t}=dn();let n;return typeof window<"u"&&Xt()!=null&&t?n=window.setTimeout(()=>jr.set(!0),t):jr.set(!0),bo(e).then(()=>{pr.set(e)}).finally(()=>{clearTimeout(n),jr.set(!1)})}return pr.set(e)},Dt=Rc(Bc({},pr),{set:Lc}),Pr=e=>{const t=Object.create(null);return r=>{const i=JSON.stringify(r);return i in t?t[i]:t[i]=e(r)}};var kc=Object.defineProperty,vr=Object.getOwnPropertySymbols,yo=Object.prototype.hasOwnProperty,Eo=Object.prototype.propertyIsEnumerable,Os=(e,t,n)=>t in e?kc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ki=(e,t)=>{for(var n in t||(t={}))yo.call(t,n)&&Os(e,n,t[n]);if(vr)for(var n of vr(t))Eo.call(t,n)&&Os(e,n,t[n]);return e},_n=(e,t)=>{var n={};for(var r in e)yo.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&vr)for(var r of vr(e))t.indexOf(r)<0&&Eo.call(e,r)&&(n[r]=e[r]);return n};const Bn=(e,t)=>{const{formats:n}=dn();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Fc=Pr(e=>{var t=e,{locale:n,format:r}=t,i=_n(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=Bn("number",r)),new Intl.NumberFormat(n,i)}),Gc=Pr(e=>{var t=e,{locale:n,format:r}=t,i=_n(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=Bn("date",r):Object.keys(i).length===0&&(i=Bn("date","short")),new Intl.DateTimeFormat(n,i)}),Uc=Pr(e=>{var t=e,{locale:n,format:r}=t,i=_n(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=Bn("time",r):Object.keys(i).length===0&&(i=Bn("time","short")),new Intl.DateTimeFormat(n,i)}),jc=(e={})=>{var t=e,{locale:n=Xt()}=t,r=_n(t,["locale"]);return Fc(Ki({locale:n},r))},zc=(e={})=>{var t=e,{locale:n=Xt()}=t,r=_n(t,["locale"]);return Gc(Ki({locale:n},r))},Vc=(e={})=>{var t=e,{locale:n=Xt()}=t,r=_n(t,["locale"]);return Uc(Ki({locale:n},r))},Yc=Pr((e,t=Xt())=>new bc(e,t,dn().formats,{ignoreTag:dn().ignoreTag})),Xc=(e,t={})=>{var n,r,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:o,locale:u=Xt(),default:l}=a;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=vo(e,u);if(!f)f=(s=(i=(r=(n=dn()).handleMissingMessage)==null?void 0:r.call(n,{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=Yc(f,u).format(o)}catch(d){d instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,d.message)}return c},Wc=(e,t)=>Vc(t).format(e),qc=(e,t)=>zc(t).format(e),Zc=(e,t)=>jc(t).format(e),Jc=(e,t=Xt())=>vo(e,t),Qi=vn([Dt,mn],()=>Xc);vn([Dt],()=>Wc);vn([Dt],()=>qc);vn([Dt],()=>Zc);vn([Dt,mn],()=>Jc);const Kc={en:{new:"New",scheduled:"Scheduled",onGoing:"Ongoing",paused:"Paused",suspended:"Suspended",completed:"Completed",expired:"Expired",rejected:"Rejected",failed:"Failed",forfeited:"Forfeited",endsIn:"Ends in",promo:"Promo",active:"Active",claim:"Claim",deposit:"Deposit",launchGame:"Launch game",claimDescription:"Click Claim button to unlock the Challenge",launchDescription:"Launch any game from the Games tab to unlock the Challenge",depositAmountDescription:"to unlock the Challenge",noDepositAmountDescription:"Deposit any amount to unlock the Challenge",pending:"Pending",finished:"Finished",optIn:"Opt In",login:"Login",resume:"Resume",pause:"Pause",levels:"Levels",level:"Level",events:"Events",rules:"Rules",games:"Games",status:"Status",time:"Time",viewDetails:"View Details",details:"Details",get:"Get",Condition:"Condition",termsAndConditions:"Terms & Conditions",allChallenges:"All Challenges",all:"All",placeBetsOf:"Place bets of",place:"Place",bet:"bet",bets:"bets",betTime:"time",betTimes:"times",minBet:"min bet",winStakeRatio:"Win/stake ratio",prev:"Previous",next:"Next"},tr:{new:"Yeni",scheduled:"Planlandı",onGoing:"Devam Ediyor",paused:"Duraklatıldı",suspended:"Askıya Alındı",completed:"Tamamlandı",expired:"Süresi Doldu",rejected:"Reddedildi",failed:"Başarısız",forfeited:"Vazgeçildi",endsIn:"Bitiş",promo:"Promosyon",active:"Aktif",claim:"Al",deposit:"Para Yatır",launchGame:"Oyunu Başlat",claimDescription:"Meydan okumanın kilidini açmak için Al düğmesine tıklayın",launchDescription:"Meydan okumanın kilidini açmak için Oyunlar sekmesinden herhangi bir oyunu başlatın",depositAmountDescription:"meydan okumanın kilidini açmak için",noDepositAmountDescription:"Meydan okumanın kilidini açmak için herhangi bir tutar yatırın",pending:"Beklemede",finished:"Bitti",optIn:"Katıl",login:"Giriş Yap",resume:"Devam Et",pause:"Duraklat",levels:"Seviyeler",level:"Seviye",events:"Etkinlikler",rules:"Kurallar",games:"Oyunlar",viewDetails:"Detayları Gör",details:"Detayları",get:"Al",Condition:"Koşul",termsAndConditions:"Şartlar ve Koşullar",allChallenges:"Tüm Meydan Okumalar",all:"Tümü",prev:"Önceki",next:"Sonraki"},da:{new:"Ny",scheduled:"Planlagt",onGoing:"I gang",paused:"Sat på pause",suspended:"Suspenderet",completed:"Gennemført",expired:"Udløbet",rejected:"Afvist",failed:"Mislykket",forfeited:"Opgivet",endsIn:"Slutter om",promo:"Promo",active:"Aktiv",claim:"Hent",deposit:"Indbetal",launchGame:"Start spil",claimDescription:"Klik på Hent-knappen for at låse udfordringen op",launchDescription:"Start et hvilket som helst spil fra fanen Spil for at låse udfordringen op",depositAmountDescription:"for at låse udfordringen op",noDepositAmountDescription:"Indbetal et hvilket som helst beløb for at låse udfordringen op",pending:"Afventer",finished:"Færdig",optIn:"Tilmeld",login:"Log ind",resume:"Fortsæt",pause:"Pause",levels:"Niveauer",level:"Niveau",events:"Begivenheder",rules:"Regler",games:"Spil",viewDetails:"Se detaljer",details:"Detaljer",get:"Få",Condition:"Betingelse",termsAndConditions:"Vilkår og betingelser",allChallenges:"Alle udfordringer",all:"Alle",prev:"Forrige",next:"Næste"},de:{new:"Neu",scheduled:"Geplant",onGoing:"Läuft",paused:"Pausiert",suspended:"Ausgesetzt",completed:"Abgeschlossen",expired:"Abgelaufen",rejected:"Abgelehnt",failed:"Fehlgeschlagen",forfeited:"Aufgegeben",endsIn:"Endet in",promo:"Promo",active:"Aktiv",claim:"Abholen",deposit:"Einzahlen",launchGame:"Spiel starten",claimDescription:"Klicke auf die Schaltfläche Abholen, um die Challenge freizuschalten",launchDescription:"Starte ein beliebiges Spiel im Tab Spiele, um die Challenge freizuschalten",depositAmountDescription:"um die Challenge freizuschalten",noDepositAmountDescription:"Zahle einen beliebigen Betrag ein, um die Challenge freizuschalten",pending:"Ausstehend",finished:"Beendet",optIn:"Teilnehmen",login:"Anmelden",resume:"Fortsetzen",pause:"Pausieren",levels:"Stufen",level:"Stufe",events:"Events",rules:"Regeln",games:"Spiele",viewDetails:"Details anzeigen",details:"Details",get:"Erhalten",Condition:"Bedingung",termsAndConditions:"Allgemeine Geschäftsbedingungen",allChallenges:"Alle Challenges",all:"Alle",prev:"Zurück",next:"Weiter"},nl:{new:"Nieuw",scheduled:"Gepland",onGoing:"Bezig",paused:"Gepauzeerd",suspended:"Opgeschort",completed:"Voltooid",expired:"Verlopen",rejected:"Afgewezen",failed:"Mislukt",forfeited:"Opgegeven",endsIn:"Eindigt over",promo:"Promo",active:"Actief",claim:"Ophalen",deposit:"Storten",launchGame:"Spel starten",claimDescription:"Klik op de knop Ophalen om de uitdaging te ontgrendelen",launchDescription:"Start een willekeurig spel via het tabblad Spellen om de uitdaging te ontgrendelen",depositAmountDescription:"om de uitdaging te ontgrendelen",noDepositAmountDescription:"Stort een willekeurig bedrag om de uitdaging te ontgrendelen",pending:"In afwachting",finished:"Voltooid",optIn:"Deelnemen",login:"Inloggen",resume:"Hervatten",pause:"Pauzeren",levels:"Niveaus",level:"Niveau",events:"Evenementen",rules:"Regels",games:"Spellen",viewDetails:"Details bekijken",details:"Details",get:"Ontvang",Condition:"Voorwaarde",termsAndConditions:"Algemene voorwaarden",allChallenges:"Alle Challenges",all:"Alle",prev:"Vorige",next:"Volgende"},fr:{new:"Nouveau",scheduled:"Planifié",onGoing:"En cours",paused:"En pause",suspended:"Suspendu",completed:"Terminé",expired:"Expiré",rejected:"Rejeté",failed:"Échoué",forfeited:"Abandonné",endsIn:"Se termine dans",promo:"Promo",active:"Actif",claim:"Réclamer",deposit:"Déposer",launchGame:"Lancer le jeu",claimDescription:"Cliquez sur le bouton Réclamer pour débloquer le défi",launchDescription:"Lancez n'importe quel jeu depuis l'onglet Jeux pour débloquer le défi",depositAmountDescription:"pour débloquer le défi",noDepositAmountDescription:"Déposez n'importe quel montant pour débloquer le défi",pending:"En attente",finished:"Terminé",optIn:"Participer",login:"Connexion",resume:"Reprendre",pause:"Pause",levels:"Niveaux",level:"Niveau",events:"Événements",rules:"Règles",games:"Jeux",viewDetails:"Voir les détails",details:"Détails",get:"Obtenir",Condition:"Condition",termsAndConditions:"Conditions générales",allChallenges:"Tous les challenges",all:"Tous",prev:"Précédent",next:"Suivant"},hu:{new:"Új",scheduled:"Ütemezett",onGoing:"Folyamatban",paused:"Szüneteltetve",suspended:"Felfüggesztve",completed:"Befejezve",expired:"Lejárt",rejected:"Elutasítva",failed:"Sikertelen",forfeited:"Feladva",endsIn:"Vége:",promo:"Promóció",active:"Aktív",claim:"Átvétel",deposit:"Befizetés",launchGame:"Játék indítása",claimDescription:"Kattintson az Átvétel gombra a kihívás feloldásához",launchDescription:"Indítson el egy játékot a Játékok fülön a kihívás feloldásához",depositAmountDescription:"a kihívás feloldásához",noDepositAmountDescription:"Fizessen be bármekkora összeget a kihívás feloldásához",pending:"Függőben",finished:"Befejezve",optIn:"Csatlakozás",login:"Bejelentkezés",resume:"Folytatás",pause:"Szünet",levels:"Szintek",level:"Szint",events:"Események",rules:"Szabályok",games:"Játékok",viewDetails:"Részletek megtekintése",details:"Részletek",get:"Megszerez",Condition:"Feltétel",termsAndConditions:"Felhasználási feltételek",allChallenges:"Összes kihívás",all:"Összes",prev:"Előző",next:"Következő"}},Qc=({withLocale:e,translations:t})=>{Dt.subscribe(n=>{n==null&&(mn.set(t),Dt.set(e))})},eh=(e,t)=>{mo(e,t)},th=e=>{Dt.set(e)},pi=e=>{Object.entries(e).forEach(([t,n])=>{eh(t,n)})},nh=(e,...t)=>{Qc({withLocale:e,translations:{}}),pi(Kc),t.forEach(pi)},rh=(e,t)=>{const n=new URL(e,window.location.href);fetch(n.href).then(r=>r.json()).then(r=>pi(r)).catch(r=>{console.log(`${t} translation url err:`,r)})},ih=[j.Started,j.InProgress,j.PendingLevelReward,j.Paused,j.Completed],gr=e=>ih.includes(e),sh=[j.InProgress,j.PendingLevelReward,j.Paused,j.Completed,j.Expired,j.Forfeited],wo=e=>sh.includes(e),xo=e=>wo(e.Status),es=e=>e.ProgressStatus===ut.Completed,ah=(e,t)=>es(e)?!1:e.ProgressStatus===ut.InProgress&&gr(t),oh=(e,t)=>wo(t)?es(e)&&gr(t)?"completed":ah(e,t)?"current":e.ProgressStatus===ut.InProgress&&!gr(t)?"locked-in-progress":"locked":"locked",uh=e=>e?e.CustomRewardMessage?e.CustomRewardMessage:(e.Rewards??[]).map(t=>t?.RewardDescription).filter(t=>!!t).join(" + "):"",lh=(e,t,n)=>{if(!e)return"";const r=s=>`${t}${s}`,i=s=>s?`, ${n("minBet")} ${r(s)}`:"";switch(e.LevelTargetType){case Cn.Accumulative:return`${n("placeBetsOf")} ${r(e.DisplayCurrencyTargetTurnover)}${i(e.BetRange?.MinBet)}`;case Cn.SingleBet:return`${n("place")} ${r(e.DisplayCurrencyTargetTurnover)} ${n("bet")}`;case Cn.MultipleOneBetSize:return`${n("place")} ${e.TargetBetCount} ${n("bets")}${i(e.DisplayCurrencyTargetTurnover)}`;case Cn.BetMultiplier:{const s=`${e.TargetBetCount} ${n(e.TargetBetCount===1?"betTime":"betTimes")}`;return`${n("winStakeRatio")} x${e.Multiplier} ${s}${i(e.BetRange?.MinBet)}`}default:return""}},fh=e=>e.ProgressStatus===ut.Fillup||e.ProgressStatus===ut.Completed,So=e=>{if(!e.length)return 0;const t=e.findIndex(n=>n.ProgressStatus===ut.InProgress);return t>=0?t+1:Math.min(e.filter(fh).length+1,e.length)},ch=e=>{const t=e.LevelProgresses??[];if(t.length)return xo(e)?t[So(t)-1]:t[0]},hh=e=>e!=="history",Wn=()=>({loading:!1,error:void 0,pageNumber:ln,hasMore:!1,totalCount:0}),dh=e=>{let t=Pe(Ge([])),n=Pe(Ge([])),r=Pe(Ge([])),i=Pe(Ge([])),s=Pe(Ge([]));const a=Nn(()=>H(r).filter(af)),o=Ge({promo:Wn(),active:Wn(),pending:Wn(),history:Wn()}),u=_=>o[_];let l;const f=_=>{switch(_){case"promo":return H(t);case"pending":return H(r);default:return H(n)}},c=(_,g)=>{ie(_==="promo"?t:_==="pending"?r:n,g,!0)},d=_=>{ie(t,_(H(t)),!0),ie(n,_(H(n)),!0),ie(r,_(H(r)),!0)},h=(_,g)=>{d(b=>b.map(D=>D.Id===_?{...D,...g}:D))},v=(_,g)=>{d(b=>b.map(D=>D.ChallengeId===_?{...D,...g}:D))},C=_=>{if(_)return[...H(n),...H(r),...H(t)].find(g=>g.ChallengeId===_)},m=_=>{d(g=>g.filter(b=>b.Id!==_))},$=async(_,g,b)=>{const{endpoint:D,domainId:k,userSession:S,userId:w,locale:E,pageSize:I=Un}=e();if(!D)throw new Error("challenges: endpoint is missing. Please provide a valid endpoint URL.");const y={endpoint:D,domainId:k,sessionId:S,locale:E,pageNumber:b,pageSize:I};if(g)return Br({endpoint:D,domainId:k,locale:E,pageNumber:b,pageSize:I});switch(_){case"promo":return kl(y);case"pending":return Br({...y,isFutureAvailable:!0});case"history":return za({...y,userId:w??"",isFutureAvailable:!0});default:return Br({...y,isFutureAvailable:!1})}},V=(_,g,b)=>{const D=o[_];if(D.pageNumber=g.PageNumber??ln,!hh(_)){const w=g.Data??[];ie(i,b?[...H(i),...w]:w,!0),D.totalCount=g.TotalItem??H(i).length,D.hasMore=!(b&&!w.length)&&H(i).length<D.totalCount;return}const k=g.Data??[],S=b?[...f(_),...k]:k;c(_,S),D.totalCount=g.TotalCount??S.length,D.hasMore=!(b&&!k.length)&&S.length<D.totalCount},O=async(_,g,{append:b=!1,page:D}={})=>{const k=o[_];k.loading=!0,k.error=void 0;try{const S=D??(b?k.pageNumber+1:ln),w=await $(_,g,S);V(_,w,b)}catch(S){k.error=S,b&&(k.hasMore=!1),e().onError?.(S)}finally{k.loading=!1}},R=(_,g)=>{const b=o[_];return b.hasMore&&!b.loading?O(_,g,{append:!0}):Promise.resolve()},q=(_,g,b)=>o[_].loading?Promise.resolve():O(_,g,{page:b}),M=(_,g)=>{const b=H(s).includes(_);g&&!b?ie(s,[...H(s),_],!0):!g&&b&&ie(s,H(s).filter(D=>D!==_),!0)},A=()=>{const{endpoint:_,userId:g,userSession:b,liveUpdates:D=!0}=e();!D||l||(l=Xl({endpoint:_,userId:g,sessionId:b,onNewProgress:k=>{k.Status===j.Started?ie(n,[k,...H(n)],!0):k.Status===j.Awaiting&&ie(r,[k,...H(r)],!0)},onSessionExpired:()=>x(),onChallengeEnabledChange:(k,S)=>{M(k,!S),v(k,{ChallengeStatus:S?cr.Enabled:cr.Paused})},onProgressForfeited:k=>{h(k,{Status:j.Forfeited})}}))},x=()=>{l?.close(),l=void 0};return{get promoChallenges(){return H(t)},get activeChallenges(){return H(n)},get awaitingChallenges(){return H(a)},get pendingChallenges(){return H(r)},get playerHistory(){return H(i)},get pausedChallengeIds(){return H(s)},getState:u,getList:f,findChallenge:C,load:O,loadMore:R,loadPage:q,setPaused:M,patchProgress:h,patchChallenge:v,removeProgress:m,connect:A,disconnect:x}},ph=e=>{let t=Pe(!1);const n=async(s,a,o)=>{const{endpoint:u,domainId:l,userSession:f,userId:c,onStatusChange:d}=e();ie(t,!0);try{await jl({endpoint:u,domainId:l,sessionId:f,userId:c??"",progressTo:s.Id,isPause:a}),d?.(s.Id,a?j.Paused:j.InProgress),ni(o)}catch(h){ri(o,h instanceof Error?h.message:String(h))}finally{ie(t,!1)}},r=async s=>{const{endpoint:a,domainId:o,userSession:u,onClaimed:l}=e();ie(t,!0);try{await Yl({endpoint:a,domainId:o,sessionId:u,challengeId:s.Id}),l?.(s.ChallengeId),ni(Ht.Claim)}catch(f){ri(Ht.Claim,f instanceof Error?f.message:String(f))}finally{ie(t,!1)}};return{get loading(){return H(t)},run:(s,a)=>{const o=a.ChallengeId,u=a.ChallengePresentation?.PresentationName??"",l=Za(a);switch(s){case"login":Fa();break;case"deposit":Ol(o,u,l);break;case"claim":r(a);break;case"optIn":wl(o,u,l),n(a,!1,Ht.OptIn);break;case"resume":Pl(o,u,l),n(a,!1,Ht.Resume);break;case"pause":Al(o,u,l),n(a,!0,Ht.Pause);break}}}},we={Promo:0,Active:1,Pending:2,Finished:3,Code:4},vh=e=>{const t=Number(e);return Object.values(we).includes(t)?t:void 0},gh={[we.Promo]:"promo",[we.Active]:"active",[we.Pending]:"pending",[we.Finished]:"finished",[we.Code]:"claim"},mh={[we.Promo]:"promo",[we.Active]:"active",[we.Pending]:"pending",[we.Finished]:"history",[we.Code]:void 0};var _h=gn('<span class="player-challenges__tab-dot svelte-1jf237k" aria-hidden="true"></span>'),bh=gn('<button type="button" role="tab"> <!></button>'),yh=gn('<div class="player-challenges__tabs svelte-1jf237k" role="tablist"></div>');const Eh={hash:"svelte-1jf237k",code:`.player-challenges__tabs.svelte-1jf237k {box-sizing:border-box;display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:6px 8px;gap:4px;background:var(--bg-overlay-neutral-level-2, rgba(251, 251, 251, 0.1));border:1px solid var(--border-subtle, rgba(251, 251, 251, 0.05));border-radius:100px;width:fit-content;max-width:100%;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;&::-webkit-scrollbar {display:none;}}.player-challenges__tab.svelte-1jf237k {box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;padding:6px 47px;border:0;border-radius:36px;background:transparent;color:var(--text-subtle, rgba(223, 227, 232, 1));font-size:10px;font-weight:500;white-space:nowrap;cursor:pointer;line-height:145%;appearance:none;-webkit-appearance:none;-webkit-tap-highlight-color:transparent;&:focus-visible {outline:none;}&.active {background:var(--tabs-bg-selected, rgba(251, 251, 251, 0.2));color:var(--text-default, rgba(223, 227, 232, 1));}&:hover:not(.active) {background:var(--bg-tabs-hover, rgba(251, 251, 251, 0.1));}}.player-challenges__tab-dot.svelte-1jf237k {width:6px;height:6px;border-radius:50%;flex-shrink:0;background:var(--semantic-success-400, rgba(45, 223, 0, 1));}
12
+
13
+ @media (max-width: 767px) {.player-challenges__tabs.svelte-1jf237k {width:100%;justify-content:flex-start;gap:2px;padding:6px 8px;}.player-challenges__tab.svelte-1jf237k {flex:1 0 auto;justify-content:center;padding:6px 12px;}
14
+ }`};function To(e,t){yr(t,!0),Ui(e,Eh);const n=()=>Ei(Qi,"$_",r),[r,i]=wi(),s=At(t,"activeTab",7),a=At(t,"onTabChange",7),o=At(t,"notifyTabs",23,()=>[]),u=At(t,"showTabDot",7,!1),l=Nn(()=>[{id:we.Promo,label:n()("promo")},{id:we.Active,label:n()("active")},{id:we.Code,label:n()("claim")},{id:we.Pending,label:n()("pending")},{id:we.Finished,label:n()("finished")}]);var f={get activeTab(){return s()},set activeTab(h){s(h),Et()},get onTabChange(){return a()},set onTabChange(h){a(h),Et()},get notifyTabs(){return o()},set notifyTabs(h=[]){o(h),Et()},get showTabDot(){return u()},set showTabDot(h=!1){u(h),Et()}},c=yh();Gi(c,21,()=>H(l),h=>h.id,(h,v)=>{var C=bh();let m;var $=Ai(C),V=pa($);{var O=q=>{var M=_h();Gt(q,M)},R=Nn(()=>u()&&o().includes(H(v).id));Ha(V,q=>{H(R)&&q(O)})}Dn(C),Mi(()=>{m=ji(C,1,"player-challenges__tab svelte-1jf237k",null,m,{active:s()===H(v).id}),fr(C,"aria-selected",s()===H(v).id),Fi($,`${H(v).label??""} `)}),Li("click",C,()=>a()?.(H(v).id)),Gt(h,C)}),Dn(c),Gt(e,c);var d=Er(f);return i(),d}ki(["click"]);Vi(To,{activeTab:{},onTabChange:{},notifyTabs:{},showTabDot:{}},[],[],{mode:"open"});const $e={Levels:"levels",Games:"games",Events:"events",Rules:"rules"},wh=e=>{const t=String(e??"").toLowerCase();return Object.values($e).includes(t)?t:void 0},ts=e=>{switch(e){case hr.Casino:return[$e.Levels,$e.Games,$e.Rules];case hr.Sportsbook:return[$e.Levels,$e.Events,$e.Rules];default:return[]}},xh=e=>ts(e).find(t=>t===$e.Games||t===$e.Events),Sh=e=>[e.Discipline?.Name,e.Location?.Name,e.Template?.Name,e.Tournament?.Name,e.Event?.Name].filter(Boolean).join(", "),Th=e=>[...e??[]].sort((t,n)=>t.OrderNumber-n.OrderNumber),Ch=e=>{switch(e){case Kn.RealCash:return"contributionTypeRealMoney";case Kn.BonusMoney:return"contributionTypeBonusMoney";case Kn.Mixed:return"contributionTypeMixed";default:return}},Ah=e=>e?"contributeToOne":"contributeToAll",Ph=e=>{switch(e){case An.Single:return"recurrenceSingle";case An.Daily:return"recurrenceDaily";case An.Weekly:return"recurrenceWeekly";case An.Monthly:return"recurrenceMonthly";default:return}};var Ih=gn('<button type="button"> </button>'),Oh=gn('<div class="challenge-details__tabs svelte-lloeg4"></div>');const Dh={hash:"svelte-lloeg4",code:".challenge-details__tabs.svelte-lloeg4 {border:none;border-bottom:1px solid var(--border-default, rgba(251, 251, 251, 0.15));display:flex;flex-direction:row;justify-content:center;align-items:center;background-color:transparent;}.challenge-details__tab.svelte-lloeg4 {border:none;padding:12px 10px;gap:10px;height:36px;position:relative;flex:none;order:1;flex-grow:1;color:var(--text-super-subtle, rgba(251, 251, 251, 0.5));font-size:12px;font-weight:700;background-color:transparent;text-transform:uppercase;&.active {color:var(--text-brand, rgba(255, 204, 0, 1));&::after {content:'';position:absolute;left:0;right:0;bottom:-3px;height:2px;background:var(--pagination-bg-selected, rgba(255, 204, 0, 1));}}}"};function Co(e,t){yr(t,!0),Ui(e,Dh);const n=()=>Ei(Qi,"$_",r),[r,i]=wi(),s=At(t,"challengeItem",7),a=At(t,"activeTab",15),o=At(t,"onTabChange",7),u={[$e.Levels]:"levels",[$e.Games]:"games",[$e.Events]:"events",[$e.Rules]:"rules"},l=Nn(()=>ts(s().ContributedFrom).map(h=>({id:h,label:n()(u[h])})));var f={get challengeItem(){return s()},set challengeItem(h){s(h),Et()},get activeTab(){return a()},set activeTab(h){a(h),Et()},get onTabChange(){return o()},set onTabChange(h){o(h),Et()}},c=Oh();Gi(c,21,()=>H(l),Ba,(h,v)=>{var C=Ih();let m;var $=da(C,!0);Mi(()=>{m=ji(C,1,"challenge-details__tab svelte-lloeg4",null,m,{active:a()===H(v).id}),Fi($,H(v).label)}),Li("click",C,()=>o()?.(H(v).id)),Gt(h,C)}),Dn(c),Gt(e,c);var d=Er(f);return i(),d}ki(["click"]);Vi(Co,{challengeItem:{},activeTab:{},onTabChange:{}},[],[],{mode:"open"});exports.$format=Qi;exports.CHALLENGES_TAB_LIST_KIND=mh;exports.CHALLENGES_TAB_NAMES=gh;exports.ChallengeAction=Ht;exports.ChallengeApiError=Ua;exports.ChallengeDetailsTab=$e;exports.ChallengeHistoryLevelStatus=Ga;exports.ChallengeProgressStatus=j;exports.ChallengeStatus=cr;exports.ChallengeTabs=Co;exports.ChallengeTabs$1=To;exports.ChallengesTab=we;exports.ContributedFrom=hr;exports.NO_PROGRESS=Wa;exports.OPT_OUT_CONFIRMED_MESSAGE=$l;exports.PAGE_NUMBER_DEFAULT=ln;exports.PAGE_SIZE_DEFAULT=Un;exports.PAGINATION_VISIBLE_PAGE=Hl;exports.START_STACK_HEIGHT=Bl;exports.append=Gt;exports.append_styles=Ui;exports.bind_element_size=gl;exports.bind_this=ml;exports.child=Ai;exports.clsx=il;exports.comment=Gu;exports.createChallengeActions=ph;exports.createChallengesData=dh;exports.create_custom_element=Vi;exports.dayjs=Ut;exports.delegate=ki;exports.delegated=Li;exports.each=Gi;exports.event=Bu;exports.first_child=xu;exports.flushSync=Et;exports.formatDisplayDate=Xa;exports.from_html=gn;exports.from_svg=Fu;exports.get=H;exports.getActivationCondition=hf;exports.getAvailableTabs=ts;exports.getBadgeContent=nf;exports.getChallengeAction=ff;exports.getChallengeById=Ll;exports.getChallengeGames=Ul;exports.getChallengeHistory=za;exports.getChallengeProgress=of;exports.getChallengeStatusName=Za;exports.getContributeToKey=Ah;exports.getContributionTypeKey=Ch;exports.getCurrentLevelNumber=So;exports.getDisplayLevel=ch;exports.getEventRuleName=Sh;exports.getGamesTab=xh;exports.getLevelCondition=lh;exports.getLevelDisplayStatus=oh;exports.getLevelRewardText=uh;exports.getPageSize=Ml;exports.getPromoChallengeById=Fl;exports.getRecurrenceKey=Ph;exports.grantChallengeByCode=Gl;exports.if_block=Ha;exports.index=Ba;exports.initI18n=nh;exports.isChallengeActive=gr;exports.isLevelCompleted=es;exports.isOptedIn=xo;exports.loadTranslationUrl=rh;exports.mapChallengeStatus=sf;exports.next=Vs;exports.onDestroy=Qu;exports.only_child=da;exports.optOutChallenge=Vl;exports.pop=Er;exports.prop=At;exports.props_id=Uu;exports.proxy=Ge;exports.push=yr;exports.remove_input_defaults=hl;exports.replay_events=Mu;exports.reset=Dn;exports.sendChallengeActionFail=ri;exports.sendChallengeActionSuccess=ni;exports.sendChallengeDetailPageOpen=Cl;exports.sendChallengeDetailTabClicked=Tl;exports.sendChallengeLoginClicked=Fa;exports.sendChallengeTabClicked=El;exports.sendChallengeViewDetailClicked=Sl;exports.sendGameClicked=Il;exports.sendOptOutClicked=xl;exports.sendPromoChallengeClicked=Dl;exports.set=ie;exports.setLocale=th;exports.set_attribute=fr;exports.set_class=ji;exports.set_style=ol;exports.set_text=Fi;exports.set_value=dl;exports.setup_stores=wi;exports.sibling=pa;exports.sortEventRules=Th;exports.state=Pe;exports.store_get=Ei;exports.template_effect=Mi;exports.toBoolean=Wl;exports.toChallengeDetailsTab=wh;exports.toChallengesTab=vh;exports.toNumber=ql;exports.untrack=$t;exports.updateChallengeIsNewStatus=zl;exports.user_derived=Nn;exports.user_effect=_a;exports.user_pre_effect=Cu;