@qwik.dev/core 2.0.0-beta.2 → 2.0.0-beta.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bindings/qwik.darwin-arm64.node +0 -0
- package/bindings/qwik.linux-x64-gnu.node +0 -0
- package/bindings/qwik.win32-x64-msvc.node +0 -0
- package/bindings/qwik_wasm_bg.wasm +0 -0
- package/dist/backpatch/index.d.ts +2 -0
- package/dist/backpatch/index.mjs +5 -0
- package/dist/backpatch/package.json +8 -0
- package/dist/backpatch-executor.debug.js +39 -0
- package/dist/backpatch-executor.js +1 -0
- package/dist/build/package.json +1 -1
- package/dist/cli.mjs +12953 -0
- package/dist/core-internal.d.ts +894 -511
- package/dist/core.min.mjs +1 -1
- package/dist/core.mjs +10207 -8327
- package/dist/core.mjs.map +1 -1
- package/dist/core.prod.mjs +5848 -4637
- package/dist/insights/vite/index.mjs +10 -10
- package/dist/loader/index.mjs +2 -2
- package/dist/loader/package.json +1 -1
- package/dist/optimizer.d.ts +16 -38
- package/dist/optimizer.mjs +2607 -3719
- package/dist/preloader.mjs +8 -11
- package/dist/qwikloader.debug.js +152 -132
- package/dist/qwikloader.js +1 -1
- package/dist/server.d.ts +38 -15
- package/dist/server.mjs +1224 -927
- package/dist/starters/adapters/aws-lambda/adapters/aws-lambda/{vite.config.mts → vite.config.ts} +2 -2
- package/dist/starters/adapters/aws-lambda/package.json +3 -2
- package/dist/starters/adapters/aws-lambda/src/entry_aws-lambda.tsx +2 -6
- package/dist/starters/adapters/azure-swa/adapters/azure-swa/{vite.config.mts → vite.config.ts} +2 -2
- package/dist/starters/adapters/azure-swa/package.json +3 -2
- package/dist/starters/adapters/azure-swa/src/entry.azure-swa.tsx +2 -3
- package/dist/starters/adapters/bun/adapters/bun/{vite.config.mts → vite.config.ts} +3 -3
- package/dist/starters/adapters/bun/package.json +3 -2
- package/dist/starters/adapters/bun/src/entry.bun.ts +0 -2
- package/dist/starters/adapters/cloud-run/adapters/cloud-run/{vite.config.mts → vite.config.ts} +2 -2
- package/dist/starters/adapters/cloud-run/package.json +3 -2
- package/dist/starters/adapters/cloud-run/src/entry.cloud-run.tsx +1 -3
- package/dist/starters/adapters/cloudflare-pages/adapters/cloudflare-pages/{vite.config.mts → vite.config.ts} +2 -2
- package/dist/starters/adapters/cloudflare-pages/package.json +3 -2
- package/dist/starters/adapters/cloudflare-pages/src/entry.cloudflare-pages.tsx +2 -3
- package/dist/starters/adapters/cloudflare-workers/README.md +52 -0
- package/dist/starters/adapters/cloudflare-workers/adapters/cloudflare-workers/vite.config.ts +15 -0
- package/dist/starters/adapters/cloudflare-workers/gitignore +3 -0
- package/dist/starters/adapters/cloudflare-workers/package.json +31 -0
- package/dist/starters/adapters/cloudflare-workers/public/.assetsignore +4 -0
- package/dist/starters/adapters/cloudflare-workers/public/_headers +11 -0
- package/dist/starters/adapters/cloudflare-workers/public/_redirects +1 -0
- package/dist/starters/adapters/cloudflare-workers/src/entry.cloudflare-pages.tsx +23 -0
- package/dist/starters/adapters/cloudflare-workers/worker-configuration.d.ts +5 -0
- package/dist/starters/adapters/cloudflare-workers/wrangler.jsonc +41 -0
- package/dist/starters/adapters/deno/adapters/deno/{vite.config.mts → vite.config.ts} +2 -2
- package/dist/starters/adapters/deno/package.json +3 -2
- package/dist/starters/adapters/deno/src/entry.deno.ts +0 -2
- package/dist/starters/adapters/express/adapters/express/{vite.config.mts → vite.config.ts} +2 -2
- package/dist/starters/adapters/express/package.json +4 -3
- package/dist/starters/adapters/express/src/entry.express.tsx +1 -3
- package/dist/starters/adapters/fastify/adapters/fastify/{vite.config.mts → vite.config.ts} +2 -2
- package/dist/starters/adapters/fastify/package.json +3 -2
- package/dist/starters/adapters/fastify/src/entry.fastify.tsx +1 -1
- package/dist/starters/adapters/fastify/src/plugins/fastify-qwik.ts +1 -2
- package/dist/starters/adapters/firebase/adapters/firebase/{vite.config.mts → vite.config.ts} +2 -2
- package/dist/starters/adapters/firebase/package.json +3 -2
- package/dist/starters/adapters/firebase/src/entry-firebase.tsx +2 -3
- package/dist/starters/adapters/netlify-edge/adapters/netlify-edge/{vite.config.mts → vite.config.ts} +2 -2
- package/dist/starters/adapters/netlify-edge/package.json +3 -2
- package/dist/starters/adapters/netlify-edge/src/entry.netlify-edge.tsx +2 -3
- package/dist/starters/adapters/node-server/adapters/node-server/{vite.config.mts → vite.config.ts} +2 -2
- package/dist/starters/adapters/node-server/package.json +3 -2
- package/dist/starters/adapters/node-server/src/entry.node-server.tsx +0 -2
- package/dist/starters/adapters/{static/adapters/static/vite.config.mts → ssg/adapters/ssg/vite.config.ts} +3 -3
- package/dist/starters/adapters/ssg/package.json +20 -0
- package/dist/starters/adapters/vercel-edge/README.md +2 -2
- package/dist/starters/adapters/vercel-edge/adapters/vercel-edge/{vite.config.mts → vite.config.ts} +2 -2
- package/dist/starters/adapters/vercel-edge/package.json +3 -2
- package/dist/starters/adapters/vercel-edge/src/entry.vercel-edge.tsx +2 -3
- package/dist/starters/adapters/vercel-edge/vercel.json +1 -1
- package/dist/starters/features/auth/package.json +1 -1
- package/dist/starters/features/compiled-i18n/package.json +37 -0
- package/dist/starters/features/compiled-i18n/src/components/locale-selector/locale-selector.tsx +30 -0
- package/dist/starters/features/compiled-i18n/src/entry.ssr.tsx +31 -0
- package/dist/starters/features/compiled-i18n/src/routes/plugin@compiled-i18n.ts +28 -0
- package/dist/starters/features/csr/index.html +23 -0
- package/dist/starters/features/csr/package.json +29 -0
- package/dist/starters/features/csr/src/root.tsx +15 -0
- package/dist/starters/features/csr/vite.config.ts +13 -0
- package/dist/starters/features/cypress/src/actions/example.action.ts +5 -0
- package/dist/starters/features/cypress/src/components/example/example.cy.tsx +50 -8
- package/dist/starters/features/cypress/src/components/example/example.tsx +13 -3
- package/dist/starters/features/cypress/src/loaders/example.loader.ts +5 -0
- package/dist/starters/features/pandacss/package.json +1 -1
- package/dist/starters/features/playwright/playwright-report/index.html +953 -930
- package/dist/starters/features/postcss/postcss.config.js +1 -1
- package/dist/starters/features/storybook/.storybook/tsconfig.json +0 -1
- package/dist/starters/features/styled-vanilla-extract/package.json +2 -1
- package/dist/starters/features/tailwind/package.json +2 -2
- package/dist/starters/features/tailwind/prettier.config.js +10 -0
- package/dist/starters/features/tailwind-v3/package.json +1 -1
- package/dist/starters/features/tailwind-v3/prettier.config.js +10 -0
- package/dist/testing/index.d.ts +809 -6
- package/dist/testing/index.mjs +14880 -11342
- package/dist/testing/package.json +1 -1
- package/handlers.mjs +1 -1
- package/package.json +30 -55
- package/public.d.ts +3 -1
- package/{qwik-cli.cjs → qwik-cli.mjs} +1 -1
- package/server.d.ts +2 -0
- package/bindings/qwik.darwin-x64.node +0 -0
- package/bindings/qwik.wasm.cjs +0 -471
- package/dist/build/index.cjs +0 -35
- package/dist/build/index.cjs.map +0 -7
- package/dist/build/index.dev.cjs +0 -37
- package/dist/build/index.dev.cjs.map +0 -7
- package/dist/build/index.prod.cjs +0 -37
- package/dist/build/index.prod.cjs.map +0 -7
- package/dist/cli.cjs +0 -5545
- package/dist/core.cjs +0 -11754
- package/dist/core.cjs.map +0 -1
- package/dist/core.prod.cjs +0 -5647
- package/dist/insights/index.qwik.cjs +0 -1
- package/dist/insights/vite/index.cjs +0 -1
- package/dist/loader/index.cjs +0 -4
- package/dist/optimizer.cjs +0 -4020
- package/dist/preloader.cjs +0 -269
- package/dist/server.cjs +0 -3027
- package/dist/starters/adapters/static/package.json +0 -19
- package/dist/starters/features/localize/package.json +0 -37
- package/dist/starters/features/localize/src/entry.ssr.tsx +0 -30
- package/dist/starters/features/localize/src/locales/message.en.json +0 -8
- package/dist/starters/features/localize/src/locales/message.it.json +0 -8
- package/dist/starters/features/localize/src/routes/[locale]/i18n-utils.ts +0 -94
- package/dist/starters/features/localize/src/routes/[locale]/index.tsx +0 -52
- package/dist/starters/features/localize/src/routes/[locale]/layout.tsx +0 -12
- package/dist/starters/features/tailwind/.prettierrc.js +0 -3
- package/dist/testing/index.cjs +0 -33287
- /package/dist/starters/adapters/{static → ssg}/README.md +0 -0
package/dist/core.min.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t}from"@qwik.dev/core/preloader";const n=!1,e=!0,r=!1,o=(t,n,...e)=>{const r=n instanceof Error?n:new Error(n);return console.error("%cQWIK ERROR","",r.message,...e,r.stack),t&&setTimeout((()=>{throw r}),0),r},s=(t,n=[])=>{const e=(t=>`Code(Q${t}) https://github.com/QwikDev/qwik/blob/main/packages/qwik/src/core/error/error.ts#L${8+t}`)(t,...n);return((t,...n)=>o(false,t,...n))(e,...n)},l="<sync>",i=t=>"function"==typeof t&&"function"==typeof t.getSymbol,u="q:renderFn",c="⚡️",f="q:slot",a="q:sparent",h="q:s",d="q:style",$="style[q\\:style]",p=$+",style[q\\:sstyle]",y="q:sstyle",w="q:ctx",b="q:brefs",m=(t,n)=>t["qFuncs_"+n]||[],g="q:base",v="q:instance",S="q:container-island",k="/"+S,x="q:ignore",j="/"+x,R="q:container",q="/"+R,A="http://www.w3.org/1999/xhtml",P="http://www.w3.org/2000/svg",O="http://www.w3.org/1998/Math/MathML",N="qRender",I="q:key",C="q:props",E="q:seq",M="q:seqIdx",_=":on",F=":onIdx",L=":onFlags",T="qkssr-f",W=":",D="dangerouslySetInnerHTML",U=()=>({isServer:n,importSymbol(t,n,e){if(!n)throw s(14,[e]);if(!t)throw s(13,[n,e]);const r=z(t.ownerDocument,t,n).toString(),o=new URL(r);return o.hash="",import(o.href).then((t=>t[e]))},raf:t=>new Promise((n=>{requestAnimationFrame((()=>{n(t())}))})),nextTick:t=>new Promise((n=>{setTimeout((()=>{n(t())}))})),chunkForSymbol:(t,n)=>[t,n??"_"]}),z=(t,n,e)=>{const r=t.baseURI,o=new URL(n.getAttribute(g)??r,r);return new URL(e,o)};let V=/*#__PURE__ */U();const Q=t=>V=t,B=()=>V,H=t=>t&&"number"==typeof t.nodeType,J=t=>1===t.nodeType,G=t=>!!t&&"object"==typeof t&&"function"==typeof t.then,Y=(t,n,e)=>{try{const r=t();return G(r)?r.then(n,e):n(r)}catch(t){return e(t)}},X=(t,n)=>G(t)?t.then(n,K):n(t),K=t=>{(t=>{throw o(!1,t,...[])})(t)},Z=t=>new Promise((n=>{setTimeout(n,t)}));function tt(t,n=0){const e=e=>{if(G(e)&&n<100)return e.then(tt.bind(null,t,n++));throw e};try{const n=t();return G(n)?n.catch((t=>e(t))):n}catch(t){return e(t)}}const nt=t=>{const n=Object.getPrototypeOf(t);return n===Object.prototype||n===Array.prototype||null===n},et=t=>!!t&&"object"==typeof t,rt=t=>Array.isArray(t),ot=t=>"string"==typeof t,st=t=>"function"==typeof t;let lt;function it(t){if(void 0===lt){const n=mt();if(n&&n.t)return n.t;if(void 0!==t)return t;throw new Error("Reading `locale` outside of context.")}return lt}function ut(t,n){const e=lt;try{return lt=t,n()}finally{lt=e}}const ct=Symbol("invalid"),ft=Symbol("backRef"),at=Symbol("store.target"),ht=Symbol("store.handler"),dt=Symbol("store.all");class $t{o;l=null;u=null;constructor(t,n){this.u=t,this.o=n}get untrackedValue(){return this.o}set untrackedValue(t){this.o=t}get value(){return pt(this,(()=>this.l||=new Set),(()=>this.untrackedValue))}set value(t){t!==this.o&&(this.o=t,Wr(this.u,this,this.l))}valueOf(){}toString(){return this.constructor.name}toJSON(){return{value:this.o}}}const pt=(t,n,e)=>{const r=mt();if(r){if(null===t.u){if(!r.u)return e();t.u=r.u}const o=r.h;o&&((t,n,e)=>{Fr(e,n),Lr(n,t),Tr(n,t.u)})(t,o,n())}return e()};class yt extends $t{$;p;m;v;k=null;j=!1;[ft]=null;constructor(t,n,e,r,o=3){super(t,ct),this.$=e,this.p=n,this.m=r,this.v=o}R(){this.v|=1,this.j=!1,this.u?.q(7,this.k,this,this.l)}force(){this.v|=1,this.j=!1,Wr(this.u,this,this.l)}get untrackedValue(){const t=this.O();return t&&(this.j=t),this.o}O(){if(!(1&this.v))return!1;const t=Pt((()=>this.p(...this.$)),this,".",this.u),n=t!==this.o;return n&&(this.o=t),n}set value(t){throw s(31)}get value(){return super.value}}function wt(t,n,e){t[ft]||(t[ft]=new Map);const r=t[ft];let o=r.get(n);return o||(o=[t,n],r.set(n,o)),e&&(o[3]=e),o}let bt;const mt=()=>{if(!bt){const t="undefined"!=typeof document&&document&&document.__q_context__;if(!t)return;return rt(t)?document.__q_context__=jt(t):t}return bt},gt=()=>{const t=mt();if(!t)throw s(9);return t},vt=()=>{const t=mt();if(!t||t.N!==N)throw s(10);return t};function St(t){if(null==t)return t;const n=gt();return function(...e){return xt.call(this,n,t,e)}}function kt(t,n,...e){return xt.call(this,t,n,e)}function xt(t,n,e){const r=bt;let o;try{bt=t,o=n.apply(this,e)}finally{bt=r}return o}const jt=([t,n,e])=>{const r=Or(t),o=uo(r.rootVNode,t),s=r.t;return s&&function(t){lt=t}(s),Rt(s,o,t,n,e)},Rt=(t,n,e,r,o)=>({M:o,_:0,k:n,L:e,N:r,T:void 0,h:void 0,t:t||("object"==typeof r&&r&&"locale"in r?r.locale:void 0),u:void 0}),qt=t=>kt(void 0,t),At=/*#__PURE__*/Rt(void 0,void 0,void 0,N),Pt=(t,n,e,r,o)=>{const s=At.h,l=At.u;try{return At.h=wt(n,e,o),At.u=r,kt(At,t)}finally{At.h=s,At.u=l}},Ot=(t,n,e,r,o)=>(t instanceof yt&&t.k!==n&&n&&(t.k=n),Pt((()=>t.value),n,e,r,o)),Nt=()=>{const t=mt();if(t){const n=t.k;let e=null;return null!=n&&(Jr(n)?Gr(n)&&(e=rs(n)):e=n),e??t.T?.W(void 0)}},It=()=>{const t=mt();if(t)return t.N},Ct=t=>t,Et=t=>{const n=Ir(t);if(!n)return Promise.resolve();const e=n.qContainer;return e?.renderDone??Promise.resolve()},Mt=()=>{const t=vt(),n=t.k;let e=t.u.getHostProp(n,E);null===e&&(e=[],t.u.setHostProp(n,E,e));let r=t.u.getHostProp(n,M);for(null===r&&(r=0),t.u.setHostProp(n,M,r+1);e.length<=r;)e.push(void 0);return{val:e[r],set:t=>e[r]=t,i:r,iCtx:t}},_t="$",Ft="DOMContentLoaded",Lt=t=>(t.startsWith("on")||t.startsWith("window:on")||t.startsWith("document:on"))&&t.endsWith(_t),Tt=t=>t.startsWith("on:")||t.startsWith("on-window:")||t.startsWith("on-document:");function Wt(t){if(t.endsWith(_t)){const[n,e]=Ut(t);if(-1!==e){const e=Dt(t);return n+Bt(e)}}return null}function Dt(t){if(t.endsWith(_t)){const[,n]=Ut(t);if(-1!=n)return function(t,n=0){let e=n;const r=zt(t.charCodeAt(n));r&&e++;let o="";const s=t.substring(e,t.length-1);return s===Ft?Ft:(o+=r?s:s.toLowerCase(),o)}(t,n)}return null}function Ut(t){let n=null,e=-1;return t.startsWith("on")?(n="on:",e=2):t.startsWith("window:on")?(n="on-window:",e=9):t.startsWith("document:on")&&(n="on-document:",e=11),[n,e]}const zt=t=>45===t,Vt=t=>{const n=t.indexOf(":");return-1!==n?t.substring(0,n):""};function Qt(t){return t.startsWith("preventdefault:")}const Bt=t=>t.replace(/([A-Z-])/g,"-$1").toLowerCase(),Ht=t=>(/^[\w/.-]+$/.test(t),/*#__PURE__*/Object.freeze({id:Bt(t)})),Jt=(t,n)=>{const{val:e,set:r,iCtx:o}=Mt();void 0===e&&(o.u.setContext(o.k,t,n),r(1))},Gt=(t,n)=>{const{val:e,set:r,iCtx:o}=Mt();if(void 0!==e)return e;const l=o.u.resolveContext(o.k,t);if("function"==typeof n)return r(kt(void 0,n,l));if(void 0!==l)return r(l);if(void 0!==n)return r(n);throw s(8,[t.id])},Yt=/*#__PURE__*/Ht("qk-error"),Xt="2.0.0-beta.2-dev+3ddc6c7",Kt=[],Zt={};Object.freeze(Kt),Object.freeze(Zt);const tn=(t,n,e=Kt)=>{let r=null,o=null;if(st(t))o=t;else{if(!ot(t))throw s(7,[t]);r=t}return rl(r,n,null,o,null,e)},nn=(t,n,e=Kt)=>rl(null,n,t,null,null,e),en=(t,n=Kt)=>rl(null,t,null,null,null,n),rn=(t,n,e=Kt)=>{const r=en(t,e);return r.dev=n,r},on=(t,n,e,r=Kt)=>{const o=tn(t,n,r);return o.dev=e,o},sn=(t,n,e,r=Kt)=>{const o=nn(t,n,r);return o.dev=e,o},ln=(t,n)=>(void 0===globalThis.__qwik_reg_symbols&&(globalThis.__qwik_reg_symbols=new Map),globalThis.__qwik_reg_symbols.set(n,t),t),un=()=>{const t=gt();let n=t.T;return n||(n=Or(Ir(t.L)).parseQRL(decodeURIComponent(String(t.M)))),n.D},cn=(...t)=>{const[n]=un(),e=gt(),r=e.k;if(!r)return;const o=Or(e.L).q;if(!o)throw s(1);return o(2,r,n,t)},fn=Symbol("CONST"),an=Symbol("VAR"),hn=Symbol("IMMUTABLE"),dn=t=>function(n,...e){return t.call(null,fl(n),...e)};class $n extends $t{U;v;j=!1;[ft]=null;constructor(t,n,e=1){super(t,ct),this.U=n,this.v=e}R(){this.v|=1,this.j=!1,this.u?.q(7,null,this,this.l)}force(){this.j=!0,this.u?.q(7,null,this,this.l)}get untrackedValue(){const t=this.O();return t&&(this.j=t),this.o}O(){if(!(1&this.v))return!1;const t=this.U;Mr(t);const n=mt(),e=n?.h;n&&(n.h=wt(this,"."));try{const e=t.getFn(n)();if(G(e))throw s(29,[t.dev?t.dev.file:"",t.B]);this.v&=-2;const r=e!==this.o;return r&&(this.o=e),r}finally{n&&(n.h=e)}}set value(t){throw s(30)}get value(){return super.value}}class pn extends $n{constructor(t,n){super(t,n)}H=!1;O(){if(!(1&this.v))return!1;Mr(this.U);let t=this.U.resolved;"function"==typeof t&&(t=t());const{deserialize:n,initial:e}=t,r=t.update,o=this.o===ct?e:this.o,s=Pt((()=>this.H?r?.(o):n(o)),this,".",this.u),l=this.H&&"undefined"!==s||s!==this.o;return this.v&=-2,this.H=!0,l&&(this.o=s),l}}const yn=t=>t[ht],wn=t=>t?.[at]||null,bn=t=>wn(t)||t,mn=t=>at in t;function gn(t,n,e){return new Proxy(n,new Sn(e,t||null))}const vn=(t,n,e)=>{if(nt(t)&&e){let r=e.J.get(t);return r||(r=gn(e,t,n),e.J.set(t,r)),r}return t};class Sn{v;u;l=null;constructor(t,n){this.v=t,this.u=n}toString(){return"[Store]"}get(t,n){if("symbol"==typeof n)return n===at?t:n===ht?this:t[n];const e=mt(),r=t[n];if(e){if(null===this.u){if(!e.u)return r;this.u=e.u}const o=e.h;o&&kn(t,Array.isArray(t)?dt:n,this,o)}return"toString"===n&&r===Object.prototype.toString?this.toString:1&this.v&&"object"==typeof r&&null!==r&&!Object.isFrozen(r)&&!mn(r)&&!Object.isFrozen(t)?vn(r,this.v,this.u):r}set(t,n,e){if("symbol"==typeof n)return t[n]=e,!0;const r=1&this.v?bn(e):e;return n in t?r!==t[n]&&xn(n,r,t,this):xn(n,r,t,this),!0}deleteProperty(t,n){return"string"==typeof n&&delete t[n]&&(Wr(this.u,this,jn(t,n,this.l)),!0)}has(t,n){if(n===at)return!0;if("string"==typeof n){const e=mt();if(e){const r=e.h;r&&kn(t,Array.isArray(t)?dt:n,this,r)}}return Object.prototype.hasOwnProperty.call(t,n)}ownKeys(t){const n=mt(),e=n?.h;return e&&kn(t,dt,this,e),Reflect.ownKeys(t)}getOwnPropertyDescriptor(t,n){const e=Reflect.getOwnPropertyDescriptor(t,n);return Array.isArray(t)||"symbol"==typeof n||e&&!e.configurable?e:{enumerable:!0,configurable:!0}}}function kn(t,n,e,r){const o=e.l||=new Map;let s=o.get(n);s||(s=new Set,o.set(n,s)),Fr(s,r),Lr(r,t),Tr(r,e.u)}function xn(t,n,e,r){e[t]=n,Wr(r.u,r,jn(e,t,r.l))}function jn(t,n,e){let r;if(e)if(Array.isArray(t))for(const t of e.values()){r||=new Set;for(const n of t)r.add(n)}else r=e.get(n);const o=e?.get(dt);if(o){r||=new Set;for(const t of o)r.add(t)}return r||null}const Rn=(t,n)=>(e,r)=>{const o=Rt();return o.h=wt(t,":"),o.u=n||void 0,kt(o,(()=>{if(st(e))return e();if(r)return e[r];if(_r(e))return e.value;if(et(e)&&mn(e))return kn(wn(e),dt,yn(e),o.h),e;throw s(2)}))},qn=(t,n)=>{let e=null;return[r=>{"function"==typeof r&&(e||(e=[],t.G=Zs((()=>{t.G=null,e.forEach((t=>{try{t()}catch(t){n(t)}}))}))),e.push(r))},e??[]]};class An extends $n{Y=!1;X=null;K=null;Z=null;G;tt=null;[ft]=null;constructor(t,n,e=1){super(t,n,e)}get loading(){return pt(this,(()=>this.K||=new Set),(()=>this.untrackedLoading))}set untrackedLoading(t){t!==this.Y&&(this.Y=t,this.u?.q(7,null,this,this.K))}get untrackedLoading(){return this.Y}get error(){return pt(this,(()=>this.Z||=new Set),(()=>this.untrackedError))}set untrackedError(t){t!==this.X&&(this.X=t,this.u?.q(7,null,this,this.Z))}get untrackedError(){return this.X}O(){if(!(1&this.v))return!1;const t=this.U;Mr(t);const[n]=qn(this,(t=>this.u?.handleError(t,null))),e=this.tt??t.getFn()({track:Rn(this,this.u),cleanup:n});if(G(e))throw this.untrackedLoading=!0,this.untrackedError=null,e.then((t=>{this.tt=t,this.untrackedLoading=!1,this.untrackedError=null})).catch((t=>{this.untrackedLoading=!1,this.untrackedError=t}));this.tt=null,this.v&=-2;const r=e!==this.o;return r&&(this.o=e),r}}const Pn=t=>(Mr(t),new $n(null,t)),On=t=>(Mr(t),new pn(null,t)),Nn=t=>new $t(null,t),In=/*#__PURE__*/dn(Pn),Cn=dn(On),En=t=>t.value,Mn=(t,n)=>t[n],_n=t=>new yt(null,1===t.length?En:Mn,t,null),Fn=(...t)=>{const n=t[0],e=t.length<2?"value":t[1];if(!et(n))return n[e];if(_r(n))return n instanceof yt&&2&n.flags?n:_n(t);if(Ue(n)){const t=n[fn];if(t&&e in t)return t[e]}else{const r=wn(n);if(r){const n=r[e];return _r(n)?n:_n(t)}}return n[e]},Ln=(t,n)=>{const e=wn(t)[n];return _r(e)?e:new yt(null,Mn,[t,n],null,1)},Tn=(t,n)=>{const e=Fn(t,n);return e===hn?t[n]:e};class Wn{data;constructor(t){this.data=t}}function Dn(t){return null===t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t}const Un=(t,n,e)=>new yt(null,t,n,e||null);function zn(t){return!t.startsWith("q:")&&!t.startsWith(":")}const Vn=(t,n,e={})=>{let r=null;const o=t[fn];if(o)for(const t in o)n.includes(t)||(r||={},r[t]=o[t]);const s=e,l=t[an];for(const t in l)n.includes(t)||(s[t]=l[t]);return Ge(s,r)},Qn=t=>Ee(Ve,null,{[h]:""},t.children,0,t.name??""),Bn=Symbol("skip render"),Hn=()=>null,Jn=()=>null,Gn=t=>[Te(Jn,{data:"qkssr-pu"}),t.children,Te(Jn,{data:"qkssr-po"})],Yn=(t,n)=>Te(Qe,{children:Te(Xn,t)},n),Xn=()=>null,Kn="q:type",Zn={V:"Virtual",F:"Fragment",S:"Signal",A:"Awaited",C:"Component",I:"InlineComponent",P:"Projection"},te=t=>c+t;function ne(t){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&ee(n))return!0;return!1}function ee(t){return"class"===t||"className"===t}const re=t=>{if(t){let n=0;do{t=t.substring(0,n)+te(t.substring(n))}while(0!==(n=t.indexOf(" ",n)+1))}return t||null},oe=new Set(["animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexShrink","gridArea","gridRow","gridRowEnd","gridRowStart","gridColumn","gridColumnEnd","gridColumnStart","fontWeight","lineClamp","lineHeight","opacity","order","orphans","scale","tabSize","widows","zIndex","zoom","MozAnimationIterationCount","MozBoxFlex","msFlex","msFlexPositive","WebkitAnimationIterationCount","WebkitBoxFlex","WebkitBoxOrdinalGroup","WebkitColumnCount","WebkitColumns","WebkitFlex","WebkitFlexGrow","WebkitFlexShrink","WebkitLineClamp"]),se=(t,n=0)=>{for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return Number(Math.abs(n)).toString(36)},le=t=>{if(!t)return"";if(ot(t))return t.trim();const n=[];if(rt(t))for(const e of t){const t=le(e);t&&n.push(t)}else for(const[e,r]of Object.entries(t))r&&n.push(e.trim());return n.join(" ")};function ie(t,n,e){if(ee(t)){const t=le(n);n=e?e+(t.length?" "+t:t):t}else"style"===t?n=(t=>{if(null==t)return"";if("object"==typeof t){if(rt(t))throw s(0,[t,"style"]);{const n=[];for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const r=t[e];null!=r&&"function"!=typeof r&&(e.startsWith("--")?n.push(e+":"+r):n.push(e.replace(/([A-Z])/g,"-$1").toLowerCase()+":"+ue(e,r)))}return n.join(";")}}return String(t)})(n):function(t){return t.startsWith("aria-")||["spellcheck","draggable","contenteditable"].includes(t)}(t)||"number"==typeof n?n=(t=>null!=t?String(t):null)(n):!1===n||null==n?n=null:!0===n&&Qt(t)&&(n="");return n}const ue=(t,n)=>"number"!=typeof n||0===n||oe.has(t)?n:n+"px";class ce{[ft]=null}function fe(t,n){Jr(n)&&Gr(n)&&Ro(n);const e=n[ft];if(e)for(const[,n]of e){const e=n[2];if(!e)return;for(const r of e)if(r instanceof $t)ae(t,r,n);else if(r instanceof An)he(r,n);else if(t.J.has(r)){const e=t.J.get(r);de(yn(e),n)}}}function ae(t,n,e){const r=n.l;r&&r.delete(e),n instanceof yt&&(n.k=null,fe(t,n))}function he(t,n){const e=t.l;e&&e.delete(n);const r=t.K;r&&r.delete(n)}function de(t,n){const e=t?.l;if(e)for(const t of e.values())t.delete(n)}const $e=(t,n,e,r,o)=>{const s=Rt(t.t,e||void 0,void 0,N);let l;e&&(s.h=wt(e,":"),s.u=t),t.ensureProjectionResolved(n);let c=!1;if(null===r&&(r=t.getHostProp(n,u)),i(r))(o=o||t.getHostProp(n,C)||Zt).children&&delete o.children,l=r.getFn(s);else if(yl(r)){const t=r;l=()=>xt(s,t,[o||Zt,null,0])}else{c=!0;const t=r;l=()=>xt(s,t,[o||Zt])}const f=(e=0)=>Y((()=>(c||(t.setHostProp(n,M,null),t.setHostProp(n,F,null),t.setHostProp(n,C,o)),Jr(n)&&fe(t,n),l(o))),(e=>{const r=t.getHostProp(n,_);return r?function(t,n){const e=ye(t);let r=t;return X(e,(t=>{let e=!1;t||(e=!0);for(const o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(e){if("onQvisible$"===o){const[t,e]=we(r);r=e,t&&pe(t,"document:onQinit$",n[o])}else if(o.startsWith("document:")||o.startsWith("window:")){const[t,e]=we(r);r=e,t&&pe(t,o,n[o])}}else t&&pe(t,o,n[o]);return r}))}(e,r):e}),(t=>{if(G(t)&&e<100)return t.then((()=>f(e++)));throw t}));return f()};function pe(t,n,e){let r=t.props;r===Zt&&(r=t.props={});let o=r[n];void 0===o?o=[]:Array.isArray(o)||(o=[o]),o.push(...e),r[n]=o}function ye(t){const n=[t];for(;n.length;){const t=n.shift();if(Be(t)){if("string"==typeof t.type)return t;n.push(t.children)}else if(Array.isArray(t))n.push(...t);else{if(G(t))return X(t,(t=>ye(t)));if(_r(t))return ye(qt((()=>t.value)))}}return null}function we(t){if(Be(t)){const n=new ze("script",{},{type:"placeholder",hidden:""},null,3);return t.type===Qn?[n,Ee(He,null,null,[t,n],0,null)]:(null==t.children?t.children=n:Array.isArray(t.children)?t.children.push(n):t.children=[t.children,n],[n,t])}if(Array.isArray(t)&&t.length){const[n,e]=we(t[0]);return[n,t]}return[null,null]}class be{nt;et;constructor(t,n){this.nt=t,this.et=n}}class me{}async function ge(t,n,e){const r=[n],o=t=>r.push(t);await(async()=>{for(;r.length;){const n=r.pop();if(n instanceof be)e.currentStyleScoped=n.nt,e.parentComponentFrame=n.et;else if(n!==me)if("function"!=typeof n)ve(t,o,n,{styleScoped:e.currentStyleScoped,parentComponentFrame:e.parentComponentFrame});else{if(n===Promise){r.push(await r.pop());continue}await n.apply(t)}else{const t=r.pop();await tt((()=>r.push(t())))}}})()}function ve(t,n,e,r){if(null==e)t.textNode("");else if("boolean"==typeof e)t.textNode("");else if("number"==typeof e)t.textNode(String(e));else if("string"==typeof e)t.textNode(e);else if("object"==typeof e)if(Array.isArray(e))for(let t=e.length-1;t>=0;t--)n(e[t]);else if(_r(e)){t.openFragment(Kt);const r=t.getOrCreateLastNode();n(t.closeFragment),n((()=>Ot(e,r,".",t))),n(me)}else if(G(e))t.openFragment(Kt),n(t.closeFragment),n(e),n(Promise),n((()=>t.commentNode(T)));else if(function(t){return!!t[Symbol.asyncIterator]}(e))n((async()=>{for await(const n of e)await ge(t,n,{currentStyleScoped:r.styleScoped,parentComponentFrame:r.parentComponentFrame}),t.commentNode(T)}));else{const o=e,s=o.type;if("string"==typeof s){!function(t,n){null==Xe(t,"class")&&n&&(t.constProps||(t.constProps={}),t.constProps.class="")}(o,r.styleScoped);let e=null;const l=t.openElement(s,Se(o.varProps,o.constProps,t.serializationCtx,!0,r.styleScoped,o.key),Se(o.constProps,o.varProps,t.serializationCtx,!1,r.styleScoped),e);l&&t.htmlNode(l),n(t.closeElement),"head"===s?(t.emitQwikLoaderAtTopIfNeeded(),t.emitPreloaderPre(),n(t.additionalHeadNodes)):"body"===s?n(t.additionalBodyNodes):t.isHtml||t._didAddQwikLoader||(t.emitQwikLoaderAtTopIfNeeded(),t.emitPreloaderPre(),t._didAddQwikLoader=!0);const i=o.children;null!=i&&n(i)}else if(st(s))if(s===He){t.openFragment(null!=o.key?[I,o.key]:Kt),n(t.closeFragment);const e=o.children;null!=e&&n(e)}else if(s===Qn){const e=r.parentComponentFrame||t.unclaimedProjectionComponentFrameQueue.shift();if(e){const s=[];s.push(a,e.componentNode.id||""),t.openProjection(s);const l=e.componentNode,i=t.getOrCreateLastNode(),u=function(t,n,e){const r=n.constProps;if(r&&"object"==typeof r&&"name"in r){const n=r.name;if(n instanceof yt)return Ot(n,t,":",e)}return Xe(n,"name")||""}(l,o,t);s.push(f,u),n(new be(r.styleScoped,r.parentComponentFrame)),n(t.closeProjection);const c=o.children||null,h=e.consumeChildrenForSlot(i,u)||c;c&&h!==c&&t.addUnclaimedProjection(e,"",c),n(h),n(new be(e.projectionScopedStyle,e.projectionComponentFrame))}else t.openFragment(Kt),t.closeFragment()}else if(s===Jn)t.commentNode(Xe(o,"data")||"");else if(s===Yn){t.commentNode(T);const e=o.children;let s;s=st(e)?e({async write(n){await ge(t,n,{currentStyleScoped:r.styleScoped,parentComponentFrame:r.parentComponentFrame}),t.commentNode(T)}}):e,n(s),G(s)&&n(Promise)}else if(s===Hn)t.htmlNode(Xe(o,"data"));else if(yl(s)){t.openComponent([]);const e=t.getOrCreateLastNode(),l=t.getParentComponentFrame();l.distributeChildrenIntoSlots(o.children,r.styleScoped,r.parentComponentFrame);const i=((t,n,e)=>{const r=t.getOrCreateLastNode(),[o]=e[pl],s=n.props;s&&s.children&&delete s.children;const l=t.q;return r.setProp(u,o),r.setProp(C,s),null!==n.key&&r.setProp(I,n.key),l(6,r,o,s)})(t,o,s),c=re(e.getProp(y));n(new be(r.styleScoped,r.parentComponentFrame)),n(t.closeComponent),n(i),G(i)&&n(Promise),n(new be(c,l))}else{t.openFragment([I,o.key]),n(t.closeFragment);const e=t.getComponentFrame(0),r=((t,n,e,r)=>{const o=t.getOrCreateLastNode();return $e(t,o,n,e,r.props)})(t,e&&e.componentNode,s,o);n(r),G(r)&&n(Promise)}}}function Se(t,n,e,r,o,s){if(null==t)return null;const l=[];for(const s in t){let i=t[s];if(Lt(s)){if(n){const t=xe(n,s);if(t){if(!r)continue;i=ke(i,t)}}const t=je(e,s,i);t&&l.push(Wt(s),t)}else _r(i)?ee(s)?l.push(s,[i,o]):l.push(s,i):(Qt(s)&&qe(e,s),i=ie(s,i,o),l.push(s,i))}return null!=s&&l.push(I,s),l}function ke(t,n){let e=t;return Array.isArray(t)&&Array.isArray(n)?e=t.concat(n):Array.isArray(e)?e.push(n):Array.isArray(n)?(e=n,e.push(t)):e=[t,n],e}function xe(t,n){const e=n.toLowerCase();for(const n in t)if(n.toLowerCase()===e)return t[n];return null}function je(t,n,e){let r=null;const o=e,s=t=>{r=(null==r?"":r+"\n")+t},l=n=>(n.rt.startsWith("_")||!n.D&&!n.ot||(n=rl(null,"_run",cn,null,null,[n])),Ns(t,n));if(Array.isArray(o))for(let e=0;e<=o.length;e++){const r=o[e];if(i(r))s(l(r)),Re(t,n,r);else if(null!=r){const e=je(t,n,r);e&&s(e)}}else i(o)&&(r=l(o),Re(t,n,o));return r}function Re(t,n,e){const r=Dt(n);r&&(t.st.add(r),t.lt.add(e))}function qe(t,n){const e=n.substring(15);e&&t.st.add(e)}const Ae=t=>{const{val:n,set:e,iCtx:r,i:o}=Mt();if(n)return;e(1);const s=new Ne(10,o,r.k,t,void 0,null);e(s);const l=r.u.q(3,s);G(l)&&l.catch((()=>{}))},Pe=(t,n,e)=>{t.v&=-9,Oe(t);const r=Rt(n.t,e,void 0,"qTask");r.u=n;const o=t.T.getFn(r,(()=>fe(n,t))),s=Rn(t,n),[l]=qn(t,(t=>n.handleError(t,e))),i={track:s,cleanup:l};return Y((()=>o(i)),l,(r=>{if(G(r))return r.then((()=>Pe(t,n,e)));throw r}))},Oe=t=>{const n=t.G;if(n){t.G=null;try{n()}catch(t){o(!1,t)}}};class Ne extends ce{v;it;ut;T;ct;G;constructor(t,n,e,r,o,s){super(),this.v=t,this.it=n,this.ut=e,this.T=r,this.ct=o,this.G=s}}const Ie=t=>t instanceof Ne,Ce=(t,n)=>{const[e]=un(),r=1&e.v?32:3;Or(n).q(r,e)},Ee=(t,n,e,r,o,s)=>{const l=null==s?null:String(s);return new ze(t,n||{},e||null,r,o,l)},Me=(t,n,e,r,o,s,l)=>{let i;return i=n?Object.fromEntries(qt((()=>Object.entries(n))).filter((t=>{const n=t[0];return"children"===n?(r??=t[1],!1):"key"===n?(s=t[1],!1):!e||!(n in e)||/^on[A-Z].*\$$/.test(n)})).sort((([t],[n])=>t<n?-1:1))):"string"==typeof t?Zt:{},e&&"children"in e&&(r=e.children,e.children=void 0),Ee(t,i,e,r,o,s,l)},_e=(t,n,e,r)=>Te(t,n,r),Fe=(t,n,e,r,o)=>Te(t,{...e,...n},o),Le=(t,n,e,r,o,s)=>Te(t,{...e,...n,children:r},s),Te=(t,n,e)=>Me(t,n,null,null,0,e||null),We=(t,n)=>{n||(n=[]);for(const e of t)rt(e)?We(e,n):n.push(e);return n};function De(t,n,...e){const r={children:arguments.length>2?We(e):null};let o=null;for(const t in n)"key"==t?o=n[t]:r[t]=n[t];return"string"==typeof t&&!o&&"dangerouslySetInnerHTML"in r&&(o="innerhtml"),Me(t,n,null,r.children,0,o)}const Ue=t=>t&&void 0!==t[an];class ze{type;varProps;constProps;children;flags;key;dev;constructor(t,n,e,r,o,s=null){this.type=t,this.varProps=n,this.constProps=e,this.children=r,this.flags=o,this.key=s}_proxy=null;get props(){return this._proxy||(this._proxy=Ge(this.varProps,this.constProps,this.children)),this._proxy}}const Ve=t=>t.children,Qe=(t,n)=>new ze(Ve,Zt,null,t.children,2,n),Be=t=>t instanceof ze,He=t=>t.children,Je=(t,n,e,r,o)=>{const s=null==e?null:String(e),l=qt((()=>{const e=n.children;return"string"==typeof t&&delete n.children,e}));ot(t)&&"className"in n&&(n.class=n.className,delete n.className);const i=new ze(t,n,null,l,0,s);return i.dev={stack:(new Error).stack,...o},i};function Ge(t,n,e){return new Proxy({},new Ye(t,n,e))}class Ye{ft;ht;dt;constructor(t,n,e){this.ft=t,this.ht=n,this.dt=e}get(t,n){if(n===fn)return this.ht;if(n===an)return this.ft;if(null!=this.dt&&"children"===n)return this.dt;const e=this.ht&&n in this.ht?this.ht[n]:this.ft[n];return e instanceof yt&&2&e.v?e.value:e}set(t,n,e){return n===fn?(this.ht=e,!0):n===an?(this.ft=e,!0):(this.ht&&n in this.ht?this.ht[n]=e:this.ft[n]=e,!0)}deleteProperty(t,n){if("string"!=typeof n)return!1;let e=delete this.ft[n];return this.ht&&(e=delete this.ht[n]||e),null!=this.dt&&"children"===n&&(this.dt=null),e}has(t,n){return"children"===n&&null!=this.dt||n===fn||n===an||n in this.ft||!!this.ht&&n in this.ht}getOwnPropertyDescriptor(t,n){return{configurable:!0,enumerable:!0,value:"children"===n&&null!=this.dt?this.dt:this.ht&&n in this.ht?this.ht[n]:this.ft[n]}}ownKeys(){const t=Object.keys(this.ft);if(null!=this.dt&&-1===t.indexOf("children")&&t.push("children"),this.ht)for(const n in this.ht)-1===t.indexOf(n)&&t.push(n);return t}}const Xe=(t,n)=>t.constProps&&n in t.constProps?t.constProps[n]:t.varProps[n],Ke=(t,n,e)=>{let r=e>>1,o=t.length-2>>1;for(;r<=o;){const e=r+(o-r>>1),s=t[e<<1];if(s===n)return e<<1;s<n?r=e+1:o=e-1}return~(r<<1)},Ze=(t,n,e,r)=>{const o=Ke(t,n,r);o>=0?null==e?t.splice(o,2):t[o+1]=e:null!=e&&t.splice(~o,0,n,e)},tr=(t,n,e)=>{const r=Ke(t,n,e);return r>=0?t[r+1]:null},nr=t=>"foreignObject"===t;function er(t,n,e){const r=t.ownerDocument.createElementNS(e,n),o=t.attributes;for(const t of o){const n=t.name;n&&n!==W&&r.setAttribute(n,t.value)}return r}function rr(t,n,e,r){no(t);let o=t,s=null,l=null,i=null;for(;o;){let u=null,c=null;if(Gr(o)){u=o[6];const t=So(o),s=es(o),f=null==l?n:s&&mo(s);if(f){const t=or(f,So(o));e=t.elementNamespace,r=t.elementNamespaceFlag}c=er(u,t,e),u.remove(),null==l&&(l=c),i&&i.appendChild(c);const a=jo(o);if(o[6]=c,o[0]&=-193,o[0]|=r,a){o=a,i=c;continue}if(Ao(u)){const t=Nr(u);if(t){const n=jo(t.rootVNode);if(n){o=n,i=c;continue}}}}if(o===t)return l;const f=Jo(o);if(f)o=f;else{for(s=es(o);s;){if(s===t)return l;const n=Jo(s);if(n)return o=n,l;s=es(s)}if(null==s)return l}}return l}function or(t,n){const e=!t||!(!So(t)||(r=t,192&r[0]));var r;const o=!e&&nr(So(t));let s=A,l=0;const i="string"==typeof n||Gr(n);return i&&function(t){return"string"==typeof t?"svg"===(n=t)||nr(n):!!(64&t[0]);var n}(n)?(s=P,l=64):i&&function(t){return"string"==typeof t?"math"===t:!!(128&t[0])}(n)?(s=O,l=128):!t||o||e||(s=64&t[0]?P:128&t[0]?O:A,l=192&t[0]),{elementNamespace:s,elementNamespaceFlag:l}}function sr(t){let n="";const e=t.length;let r=0,o=r;for(;r<e;r++){const e=t.charCodeAt(r);if(60===e)n+=t.substring(o,r)+"<";else if(62===e)n+=t.substring(o,r)+">";else if(38===e)n+=t.substring(o,r)+"&";else if(34===e)n+=t.substring(o,r)+""";else{if(39!==e)continue;n+=t.substring(o,r)+"'"}o=r+1}return 0===o?t:n+t.substring(o)}const lr=(t,n,e,r)=>{let o=t.$t;const l=[],i=[];let c=null,h=null,d=null,$=null,p=null,y=null,w=null,m=0,g=0,v=!0;return S(n,e),function t(){for(;i.length;){const n=i.shift(),e=i.shift();if(G(n))return n.then((n=>(S(n,e),t())));S(n,e)}}();function S(n,e){for(Jr(n),Jr(e),c=e,d=null,h=jo(e),P(n,!0);l.length;){for(;m<g;){if("string"==typeof w)Q(w);else if("number"==typeof w)Q(String(w));else if(w&&"object"==typeof w){if(Array.isArray(w))q(w,!1);else if(_r(w))h&&fe(t,h),W("S",null),q(Ot(w,d||h,".",t),!0);else if(G(w))W("A",null),i.push(w,d||h);else if(Be(w)){const t=w.type;"string"==typeof t?(_(),F(w,t),q(w.children,!0)):"function"==typeof t&&(t===He?(_(),W("F",w.key),q(w.children,!0)):t===Qn?(_(),E()||q(w.children,!0)):t===cr?(N(),q(w.children,!0)):t===Jn||t===Hn?M():(_(),U(t)))}}else w===Bn?o=[]:Q("");k()}M(),A()}}function k(){if(v){if(m++,m<g)w=y[m];else if(!1===l[l.length-1])return A();null!==d?d=null:j()}else v=!0}function x(){return h?Jo(h):null}function j(){h=x()}function q(n,e){null!=n?(P(n,e),e&&($=null,p=null,c=d||h,h=jo(c),d=null),v=!1):function(){const n=h&&jo(h);if(null!==n){let e=n;for(;e;)hr(t,e),e=Jo(e);vo(o,h,n)}}()}function A(){l.pop()&&($=l.pop(),p=l.pop(),d=l.pop(),h=l.pop(),c=l.pop()),w=l.pop(),g=l.pop(),m=l.pop(),y=l.pop(),k()}function P(t,n){l.push(y,m,g,w),n&&l.push(c,h,d,p,$),l.push(n),Array.isArray(t)?(m=0,g=t.length,y=t,w=g>0?t[0]:null):void 0===t?(m=0,w=null,y=null,g=0):(m=0,w=t,y=null,g=1)}function O(){return d?h:x()}function N(){const n=w.key;h=Zo(c,n,(n=>uo(t.rootVNode,n))),h=h&&32&h[0]?null:h,null==h&&(d=Hr(),ts(d,f,n),ts(d,a,c),ts(c,n,d))}function E(){const n=fs(c,t.rootVNode),e=function(n){const e=w,r=e.constProps;if(r&&"object"==typeof r&&"name"in r){const e=r.name;if(n&&e instanceof yt)return Ot(e,n,":",t)}return Xe(e,"name")||""}(n),r=n?Zo(n,e,null):null;return null==r?(wo(o,c,d=Hr(),h&&O()),ts(d,f,e),n&&ts(n,e,d),!1):(r===h||(wo(o,c,d=r,h&&O()),ts(d,f,e),n&&ts(n,e,d)),!0)}function M(){if(null!==h)for(;h;){const n=h;j(),c===es(n)&&(hr(t,n),go(o,c,n,!0))}}function _(){for(;null!==h&&Yr(h);){hr(t,h);const n=h;j(),go(o,c,n,!0)}}function F(n,e){const l=h&&Gr(h)&&e===So(h),i=n.key;let u=!1;const f=function(t){if(!t)return null;const n=t.fileName?.replace(/\\/g,"/");return n?`${n}:${t.lineNumber}:${t.columnNumber}`:null}(n.dev);l&&i===ir(h)||(d=T(e,i),null===d?u=function(n,e){const l=function(n){const e=mo(c),{elementNamespace:r,elementNamespaceFlag:o}=or(e,n),s=t.document.createElementNS(r,n);return d=Vr(s,n),d[0]|=o,s}(e),{constProps:i}=n;let u=!1;if(i)for(const n in i){let c=i[n];if(Lt(n)){const t=Dt(n),e=Vt(n);if(t&&(ts(d,pr+":"+e+":"+t,c),L(t)),e){const t=Wt(n);t&&Xo(o,d,t,"")}u=!0}else{if("ref"===n){if(_r(c)){c.value=l;continue}if("function"==typeof c){c(l);continue}if(null==c)continue;throw s(15,[undefined])}if(_r(c)){const e=new Wn({yt:r,wt:!0});c=Ot(c,d,n,t,e)}if(n!==D)if("textarea"!==e||"value"!==n)c=ie(n,c,r),null!=c&&l.setAttribute(n,String(c));else{if(c&&"string"!=typeof c)continue;l.value=sr(c||"")}else l.innerHTML=c,l.setAttribute(R,"html")}}const f=n.key;return f&&(l.setAttribute(I,f),ts(d,I,f)),!(ne(n.varProps)||n.constProps&&ne(n.constProps))&&r&&l.setAttribute("class",r),wo(o,c,d,h),u}(n,e):(wo(o,c,d,h),h=d,d=null));const a=[],$=n.varProps;for(const t in $){const n=$[t];null!=n&&Ze(a,t,n,0)}null!==i&&Ze(a,I,i,0);const p=d||h,y=p[6];y.vNode=new WeakRef(p),u=function(n,e,l){ro(n);const i=ns(n);let u=0;const c=e.length;let f=0,a=i.length,h=u<c?e[u++]:null,d=f<a?i[f++]:null,$=!1;const p=(e,u)=>{if(e.startsWith(":"))ts(n,e,u);else{if("ref"===e){const t=rs(n);if(_r(u))return void(u.value=t);if("function"==typeof u)return void u(t);throw s(15,[l])}if(_r(u)){const o=new Wn({yt:r,wt:!1});u=Ot(u,n,e,t,o)}Xo(o,n,e,null!==u?ie(e,u,r):null),null===u&&(a=i.length)}},y=(t,n)=>{const e=Dt(t),r=Vt(t);if(e&&(p(":"+r+":"+e,n),L(e)),r){const n=Wt(t);n&&p(n,"")}};for(;null!==h||null!==d;)if(d?.startsWith(pr)||d?.startsWith("q:"))f++,d=f<a?i[f++]:null;else if(null==h)d&&Tt(d)?f++:(p(d,null),f--),d=f<a?i[f++]:null;else if(null==d)Lt(h)?($=!0,y(h,e[u])):p(h,e[u]),u++,h=u<c?e[u++]:null,f++,d=f<a?i[f++]:null;else if(h==d){const t=e[u++];t!==i[f++]&&p(d,t),h=u<c?e[u++]:null,d=f<a?i[f++]:null}else h<d?(Lt(h)?($=!0,y(h,e[u])):p(h,e[u]),u++,h=u<c?e[u++]:null,f++,a=i.length,d=f<a?i[f++]:null):(Tt(d)?($=!0,f++):(p(d,null),f--),d=f<a?i[f++]:null);return $}(p,a,f)||u,u&&(y.qDispatchEvent||(y.qDispatchEvent=(n,e)=>{const r=n.type,o=":"+e.substring(1)+":"+r,s=[Zo(p,o,null),Zo(p,pr+o,null)];let l=!1;return s.flat(2).forEach((e=>{if(e){const r=t.q(2,p,e,[n,y]);l=l||!0===r}})),l}))}function L(n){const e=t.document.defaultView;e&&(e.qwikevents||=[]).push(n)}function T(n,e){let r=null;if(null===$){$=new Map,p=[];let o=h;for(;o;){const s=Gr(o)?So(o):null,l=ir(o)||ur(o,t.bt);null===r&&l==e&&s==n?r=o:null===l?p.push(s,o):$.set(s+":"+l,o),o=Jo(o)}}else if(null===e){for(let t=0;t<p.length;t+=2)if(p[t]===n){r=p[t+1],p.splice(t,2);break}}else{const t=$.get(n+":"+e);t&&(r=t,$.delete(n+":"+e))}return r}function W(t,n){const e="F"===t;h&&Xr(h)&&ir(h)===n&&(!e||n)||(null===n||(d=T(null,n),null==d)?(wo(o,c,d=Hr(),h&&O()),ts(d,I,n)):wo(o,c,d,h&&O()))}function U(n){const e=n[pl];let r=d||h;const s=w;if(e){const n=s.props;let l=!1;const[i]=e,u=i.B,a=ur(r,t.bt),$=s.key||u;if($===(ir(r)||a)?u===a&&s.key||(z(r,i,n),r=d,l=!0):(d=T(null,$),d?wo(o,c,d,h):(z(r,i,n),l=!0),r=d),r){const e=Zo(r,C,t.bt);l=l||function(t,n){const e=fr(t),r=fr(n);if(e&&r)return!1;if(e||r)return!0;let o=ar(Object.keys(t),["children",b]),s=ar(Object.keys(n),["children",b]);if(o.length!==s.length)return!0;o=o.sort(),s=s.sort();for(let e=0;e<o.length;e++){const r=o[e],l=s[e];if(r!==l||t[r]!==n[l])return!0}return!1}(n,e),l&&(r[0]&=-33,t.q(6,r,i,n))}!function(t,n){const e=Array.isArray(t)?t:[t],r=t=>new ze(cr,Zt,null,[],0,t),o=[];if(n){const t=ns(n);for(let n=0;n<t.length;n+=2){const e=t[n];if(zn(e)){const t=e;o.push(t),o.push(r(t))}}}if(0!==o.length||null!=t){for(let t=0;t<e.length;t++){const n=e[t],s=String(Be(n)&&Xe(n,f)||""),l=Ke(o,s,0);let i;l>=0?i=o[l+1]:o.splice(~l,0,s,i=r(s)),!1===n||i.children.push(n)}for(let t=o.length-2;t>=0;t-=2)o.splice(t,1);q(o,!0)}}(s.children,r)}else{const e=s.key,l=e===ir(r),f=ur(r,t.bt);if(l?null!=f&&(V(),r=d):(d=T(null,e),d?wo(o,c,d,h):V(),r=d),r){let e=r;for(;e&&(!Xr(e)||null===Zo(e,u,null));)e=es(e);const o=$e(t,r,e||t.rootVNode,n,s.props);i.push(o,r)}}}function z(n,e,r){n&&fe(t,n),wo(o,c,d=Hr(),h&&O());const s=w;t.setHostProp(d,u,e),t.setHostProp(d,C,r),t.setHostProp(d,I,s.key)}function V(){wo(o,c,d=Hr(),h&&O());const t=w;ts(d,C,t.props),t.key&&ts(d,I,t.key)}function Q(n){if(null!==h&&3===us(h))return n!==ko(h)?void xo(o,h,n):void 0;wo(o,c,d=Br(t.document.createTextNode(n),n),h)}};function ir(t){return null==t?null:Zo(t,I,null)}function ur(t,n){if(null==t)return null;const e=Zo(t,u,n);return e?e.B:null}function cr(){}function fr(t){return!t||0===Object.keys(t).length}function ar(t,n){for(let e=n.length-1;e>=0;e--){const r=t.indexOf(n[e]);-1!==r&&t.splice(r,1)}return t}function hr(t,n){let e=n;if(Yr(n))return void $r(e);let r=null;for(;;){const o=e[0];if(3&o){if(fe(t,e),$r(e),2&o){const n=t.getHostProp(e,E);if(n)for(let e=0;e<n.length;e++){const r=n[e];if(Ie(r)){const n=r;fe(t,n),1&n.v?t.q(48,n):Oe(n)}}}if(2&o&&null!==Zo(e,u,null)){const n=ns(e);for(let e=0;e<n.length;e+=2)if(zn(n[e])){const r=n[e+1];if(r){n[e+1]=null;const o="string"==typeof r?uo(t.rootVNode,r):r;let s=jo(o);for(;s;)hr(t,s),s=Jo(s);dr(t.$t,o)}}}if(Kr(e)){if(e===n){const t=jo(e);if(t)return void oo(t)}}else{const t=jo(e);if(t){e=t;continue}}}else 4&o&&$r(e);if(e===n)return;const s=Jo(e);if(s)e=s;else{for(r=es(e);r;){if(r===n)return;const t=Jo(r);if(t){e=t;break}r=es(r)}if(null==r)return}}}function dr(t,n){const e=es(n);e&&1&e[0]&&"q:template"===So(e)&&go(t,e,n,!0)}function $r(t){t[0]|=32}const pr=":",yr=(t,n)=>{const{val:e,set:r,i:o,iCtx:s}=Mt();if(null!=e)return e;const l=s.u,i=br(l,n),u=new Ne(12,o,s.k,t,i,null);return l.q(3,u),r(i),i},wr=t=>Ee(He,null,null,function(t){const n=t.value;if(mr(n)){{const e=n._state;if("pending"===e&&t.onPending)return Promise.resolve().then(St(t.onPending));if("rejected"===e&&t.onRejected)return Promise.resolve(n._error).then(St(t.onRejected));{const e=qt((()=>n._resolved));if(void 0!==e)return Promise.resolve(e).then(St(t.onResolved))}}const e=n.value;return e?e.then(St(t.onResolved),St(t.onRejected)):Promise.resolve(void 0)}return G(n)?n.then(St(t.onResolved),St(t.onRejected)):_r(n)?Promise.resolve(n.value).then(St(t.onResolved),St(t.onRejected)):Promise.resolve(n).then(St(t.onResolved),St(t.onRejected))}(t),0,null),br=(t,n,e)=>{const r=(t=>({__brand:"resource",value:void 0,loading:!0,_resolved:void 0,_error:void 0,_state:"pending",_timeout:t?.timeout??-1,_cache:0}))(n);return r.value=e,gn(t,r,1)},mr=t=>et(t)&&"resource"===(wn(t)||t).__brand,gr=(t,n,e)=>{t.v&=-9,Oe(t);const r=Rt(n.t,e,void 0,"qResource");r.u=n;const o=t.T.getFn(r,(()=>fe(n,t))),s=t.ct,l=Rn(t,n),[i,u]=qn(t,(t=>n.handleError(t,e))),c=bn(s),f={track:l,cleanup:i,cache(t){let n=0;n="immutable"===t?1/0:t,s._cache=n},previous:c._resolved};let a,h,d=!1;const $=(t,n)=>!d&&(d=!0,t?(d=!0,s.loading=!1,s._state="resolved",s._resolved=n,s._error=void 0,a(n)):(d=!0,s.loading=!1,s._state="rejected",s._error=n,h(n)),!0);u.push((()=>{if(!0===qt((()=>s.loading))){const t=qt((()=>s._resolved));$(!0,t)}})),kt(r,(()=>{s._state="pending",s.loading=!0,(s.value=new Promise(((t,n)=>{a=t,h=n}))).catch(vr)}));const p=Y((()=>Promise.resolve(o(f))),(t=>{$(!0,t)}),(r=>{if(G(r))return r.then((()=>gr(t,n,e)));$(!1,r)})),y=c._timeout;return y>0?Promise.race([p,Z(y).then((()=>{$(!1,new Error("timeout"))&&Oe(t)}))]):p},vr=()=>{},Sr=[],kr=[],xr=[],jr=[],Rr=t=>t.gt||=new Promise((n=>{t.vt=n})),qr=(t,n,e)=>{const r=[],o=[];let s=null,l=!1;return function e(o,s=null,u=null,f=null){const a=!Cr(t),h=255!==o&&!(a&&6===o)&&2!==o,d=3===o||32===o||48===o;if(a&&(16===o||4===o||5===o||1===o||7===o))return;d&&(s.v|=8);let $={St:o,kt:d?s.it:"string"==typeof u?u:0,xt:d?s.ut:s,jt:u,Rt:d?s:f,vt:null,gt:null,qt:null,At:!1};return $=function(t,n,e){const r=function(t,n,e){let r=0,o=t.length;for(;r<o;){const s=r+(o-r>>1),l=c(n,t[s],e);if(l<0)o=s;else{if(!(l>0))return s;r=s+1}}return~r}(t,n,e);if(r<0)return t.splice(~r,0,n),n;const o=t[r];return 4===o.St&&(o.Rt=n.Rt),o.At&&(o.At=!1),o}(r,$,t.rootVNode||null),!l&&h&&(l=!0,e(16),n()?.catch?.((()=>{}))),h?Rr($):i($,a)};function i(n,e){let o=5e3;for(;r.length;){if(o--<0)throw new Error("drainUpTo: max retries reached");if(s)return Rr(s).then((()=>i(n,e))).catch((n=>{t.handleError(n,s?.xt)}));const c=r[0];if(c.At){if(r.shift(),c===n)break}else(l=c).xt&&Jr(l.xt)&&32&l.xt[0]&&48!==c.St?r.shift():u(c,e)}var l;return n.qt}function u(n,r){const i=n.xt;s=n;let u=null;try{switch(n.St){case 255:r&&(l=!1);break;case 16:u=e(),l=!1;break;case 6:u=Y((()=>$e(t,i,i,n.jt,n.Rt)),(n=>{if(r)return n;{const e=t.getHostProp(i,y);return tt((()=>lr(t,n,i,re(e))))}}),(n=>t.handleError(n,i)));break;case 2:{const e=n.jt.getFn(),r=tt((()=>e(...n.Rt)));if(G(r)){const e=r.finally((()=>{o.splice(o.indexOf(e),1)})).catch((e=>{t.handleError(e,n.xt)}));return o.push(e),n.qt=e,n.vt?.(e),s=null,void(n.At=!0)}u=null}break;case 3:case 32:{const e=n.Rt;if(4&e.v){const n=gr(e,t,i);u=r?n:null}else u=Pe(e,t,i)}break;case 48:Oe(n.Rt);break;case 4:{const e=n.jt;let r=n.Rt;_r(r)&&(r=r.value),u=tt((()=>lr(t,r,e,null)))}break;case 5:{const e=n.xt,r=n.Rt;let o=r.Pt;_r(o)&&(o=o.value);const s=r.wt,l=t.$t,i=n.kt,u=ie(i,o,r.yt);s?l.push(2,e[6],i,u):Xo(l,e,i,u)}break;case 1:{const t=n.jt;u=t.resolved?null:t.resolve()}break;case 7:{const e=n.jt,r=n.Rt;if(e instanceof $n||e instanceof yt){const n=e.j;if(e.j=!1,!e.l?.size)break;u=tt((()=>{(e.O()||n)&&Wr(t,e,r)}))}else u=tt((()=>{Wr(t,e,r)}))}}}catch(t){u=Promise.reject(t)}const c=(e,r)=>{s=null,n.At=!0,r?t.handleError(r,i):(n.qt=e,n.vt?.(e))};G(u)?(n.gt=u.then(c,(t=>c(void 0,t))),n.vt?.(n.gt),n.vt=void 0):c(u)}function c(t,n,e){const r=(240&t.St)-(240&n.St);if(0!==r)return r;const o=t.xt,l=n.xt;if(o!==l&&null!==o&&null!==l)if(Jr(o)&&Jr(l)){const t=((t,n,e)=>{if(t===n)return 0;let r=-1,o=-1;for(;t;)t=(Sr[++r]=t)[1]||e&&Zo(t,a,(t=>uo(e,t)));for(;n;)n=(kr[++o]=n)[1]||e&&Zo(n,a,(t=>uo(e,t)));for(;r>=0&&o>=0;){if((t=Sr[r])!==(n=kr[o])){let r=n;do{if(r=Jo(r),r===t)return 1}while(r);r=n;do{if(r=Go(r),r===t)return-1}while(r);return e&&Zo(n,a,(t=>uo(e,t)))?-1:1}r--,o--}return r<o?-1:1})(o,l,e);if(0!==t)return t}else{Jr(o),Jr(l),o.toString();const t=((t,n)=>{if(t===n)return 0;let e=-1,r=-1;for(;t;)t=(xr[++e]=t).parentSsrNode;for(;n;)n=(jr[++r]=n).parentSsrNode;for(;e>=0&&r>=0;){if((t=xr[e])!==(n=jr[r]))return 1;e--,r--}return e<r?-1:1})(o,l);if(0!==t)return t}const i=(15&t.St)-(15&n.St);if(0!==i)return i;const u=Ar(t.kt)-Ar(n.kt);return 0!==u?u:t.jt!==n.jt||t.Rt!==n.Rt||n===s?1:0}},Ar=t=>"number"==typeof t?t:-1;class Pr{Ot;q;J;t;bt;Nt;It=0;Ct=null;Et=null;constructor(t,n,e,r){this.Nt=e,this.t=r,this.Ot=Xt,this.J=new WeakMap,this.bt=()=>{throw Error("Not implemented")},this.q=qr(this,t,n)}trackSignalValue(t,n,e,r){return Ot(t,n,e,this,r)}serializationCtxFactory(t,n,e,r){return js(t,n,e,this.getHostProp.bind(this),this.setHostProp.bind(this),this.J,r)}}function Or(t){const n=Ir(t);if(!n)throw s(24);return Nr(n)}function Nr(t){let n=t.qContainer;return n||(n=new Er(t)),n}function Ir(t){return(Array.isArray(t)?bo(t):t).closest("[q\\:container]:not([q\\:container=html]):not([q\\:container=text])")}const Cr=t=>t instanceof Er;class Er extends Pr{element;qContainer;qManifestHash;rootVNode;document;$t;renderDone=null;Mt;J=new WeakMap;_t;Ct;Ft=null;Lt=null;vNodeLocate=t=>uo(this.rootVNode,t);Tt;Wt=null;Dt=0;constructor(t){if(super((()=>this.scheduleRender()),(()=>yo(this.$t)),{},t.getAttribute("q:locale")),this.qContainer=t.getAttribute(R),!this.qContainer)throw s(25);this.$t=[3,t.ownerDocument],this.document=t.ownerDocument,this.element=t,this.Et=t.getAttribute(g),this.Ct=t.getAttribute(v),this.qManifestHash=t.getAttribute("q:manifest-hash"),this.rootVNode=Qr(this.element),this.Mt=[],this.Tt=[];const n=this.element.ownerDocument;n.qVNodeData||function(t){const n="q:container",e="/"+n,r="q:ignore",o="/"+r,s="q:container-island",l="/"+s,i=t.qVNodeData||(t.qVNodeData=new WeakMap),u=t.body,c=u.getAttribute,f=u.hasAttribute,a=((t,n)=>{let e;for(;t&&!(e=Object.getOwnPropertyDescriptor(t,n)?.get);)t=Object.getPrototypeOf(t);return e||function(){return this[n]}})(u,"nodeType"),h=t=>{Array.from(t.querySelectorAll('script[type="qwik/vnode"]')).forEach((t=>{t.setAttribute("type","x-qwik/vnode");const n=t.closest("[q\\:container]");n.qVnodeData=t.textContent,n.qVNodeRefs=new Map})),t.querySelectorAll("[q\\:shadowroot]").forEach((t=>{const n=t.shadowRoot;n&&h(n)}))};h(t);const d=t=>{const i=a.call(t);if(1===i)return null===c.call(t,n)?f.call(t,"q:shadowroot")?6:f.call(t,":")?2:0:3;if(8===i){const i=t.nodeValue||"";if(i.startsWith(s))return 65;if(i.startsWith(r))return 16;if(i.startsWith(n))return 5;if(i.startsWith(l))return 128;if(i.startsWith(o))return 32;if(i.startsWith(e))return 8}return 0},$=t=>33<=t&&t<=46,p=(t,n,e)=>{let r=0;for(;n<e;){const e=t.charCodeAt(n);if(0===r&&$(e))break;123===e?r++:125===e&&r--,n++}return n},y=t=>{for(;t&&(t=t.nextSibling)&&0===d(t););return t},w=t=>{for(;t&&(t=t.firstChild)&&0===d(t););return t},b=(n,e,r,o,s,l)=>{const u=s.length;let c=0,f=-1,a=0,h=0,m=0,g=-1,v=null;const S=()=>{let t=0;for(;$(m=s.charCodeAt(a))&&(t+=1<<m-33,a++,!(a>=u)););return t};do{if(r===o)return;v=null;const $=r==e?2:d(r);if(3===$){const t=r;let e=r;for(;e&&!(v=y(e));)e=e.parentNode;b(n,t,r,v,t.qVnodeData||"",t.qVNodeRefs)}else if(16===$){let t=r;do{if(t=n.nextNode(),!t)throw new Error(`Island inside \x3c!--${r?.nodeValue}--\x3e not found!`)}while(65!==d(t));v=null}else if(128===$){v=r;do{if(v=n.nextNode(),!v)throw new Error("Ignore block not closed!")}while(32!==d(v));v=null}else if(5===$){v=r;do{if(v=y(v),!v)throw new Error(`\x3c!--${r?.nodeValue}--\x3e not closed!`)}while(8!==d(v));b(n,r,r,v,"",null)}else if(6===$){v=y(r);const n=r,e=n?.shadowRoot;e&&b(t.createTreeWalker(e,129),null,w(e),null,"",null)}if(!(2&~$)){if(f<c&&(-1===f&&(f=0),a=h,a<u?(f+=S(),126===m&&(g=f,a++,m=a<u?s.charCodeAt(h):33),h=p(s,a,u)):f=Number.MAX_SAFE_INTEGER),c===f){g===c&&l.set(c,r);const t=s.substring(a,h);i.set(r,t)}c++}}while(r=v||n.nextNode())},m=t.createTreeWalker(t,129);b(m,null,m.firstChild(),null,"",null)}(n),this._t=m(n,this.Ct)||Kt,this.Ut(),t.setAttribute(R,"resumed"),t.qContainer=this;const e=t.querySelectorAll('script[type="qwik/state"]');0!==e.length&&(this.Mt=JSON.parse(e[e.length-1].textContent),Fs(this.Mt,this),this.Tt=$s(this,this.Mt),this.zt())}Vt(t,n){this.Tt[t]=n}parseQRL(t){return ks(this,Ss(t))}handleError(t,n){const e=n&&this.resolveContext(n,Yt);if(!e)throw t;e.error=t}setContext(t,n,e){let r=this.getHostProp(t,w);r||this.setHostProp(t,w,r=[]),Ze(r,n.id,e,0)}resolveContext(t,n){for(;t;){const e=this.getHostProp(t,w);if(e){const t=tr(e,n.id,0);if(t)return t}t=this.getParentHost(t)}}getParentHost(t){let n=es(t);for(;n;)if(Xr(n)){if(null!==Zo(n,u,null))return n;n=es(n)||Zo(n,a,this.vNodeLocate)}else n=es(n);return null}setHostProp(t,n,e){ts(t,n,e)}getHostProp(t,n){const e=t;let r=null;switch(n){case E:case C:case u:case w:case b:r=this.bt;break;case M:case F:r=parseInt}return Zo(e,n,r)}scheduleRender(){return this.Dt++,this.renderDone||=B().nextTick((()=>this.processChores())),this.renderDone.finally((()=>ll("qrender",{instanceHash:this.Ct,renderCount:this.Dt})))}processChores(){let t=this.Dt;const n=this.q(255);if(G(n))return n.then((async()=>{for(;t!==this.Dt;)t=this.Dt,await this.q(255);this.renderDone=null}));t===this.Dt?this.renderDone=null:this.processChores()}ensureProjectionResolved(t){if(!(16&t[0])){t[0]|=16;const n=ns(t);for(let t=0;t<n.length;t+=2)if(zn(n[t])){const e=n[t+1];"string"==typeof e&&(n[t+1]=this.vNodeLocate(e))}}}bt=t=>Ms(t,this.Tt);getSyncFn(t){return this._t[t]}Qt(t,n,e,r){if(r){const t=this.getHostProp(e,y),r=new Set(function(t){return t?.split(" ")??null}(t));r.add(n),this.setHostProp(e,y,function(t){return Array.from(t).join(" ")}(r))}if(null==this.Wt&&(this.Wt=new Set,this.element.querySelectorAll($).forEach((t=>{this.Wt.add(t.getAttribute(d))}))),!this.Wt.has(n)){this.Wt.add(n);const e=this.document.createElement("style");e.setAttribute(d,n),e.textContent=t,this.$t.push(5,this.document.head,null,e)}}Ut(){const t={},n=this.element.attributes;if(n)for(let e=0;e<n.length;e++){const r=n[e];r.name!==W&&(t[r.name]=r.value)}this.Nt={containerAttributes:t}}zt(){if(this.Lt){for(const t of this.Lt)this.q(1,null,this.bt(t));this.Lt=null}}}const Mr=t=>{if(!t.resolved)throw t.resolve()},_r=t=>t instanceof $t,Fr=(t,n)=>{t.add(n)},Lr=(t,n)=>{t[2]||=new Set,t[2].add(n)},Tr=(t,n)=>{if(n&&!Cr(n)){const e=t[0],r=t[1];let o=null;Ie(e)?o=e.T:e instanceof $n?o=e.U:":"===r&&(o=n.getHostProp(e,u)),o&&n.serializationCtx.lt.add(o)}},Wr=(t,n,e)=>{const r=Cr(t);if(e){const o=e=>{const o=e[0],s=e[1];if(Ie(o)){o.v|=8;let n=3;1&o.v&&(n=32),t.q(n,o)}else if(o instanceof $t)o instanceof $n&&(o.U.resolved||t.q(1,null,o.U)),o.R();else if(":"===s){const n=o,e=t.getHostProp(n,u),r=t.getHostProp(n,C);t.q(6,n,e,r)}else if(r)if("."===s)t.q(4,o,o,n);else{const r=e[3];if(r instanceof Wn){const e={...r.data,Pt:n};t.q(5,o,s,e)}}};for(const t of e)o(t)}},Dr=[];function Ur(t){if(null===t)return"null";if(void 0===t)return"undefined";if("string"==typeof t)return'"'+t+'"';if("number"==typeof t||"boolean"==typeof t)return String(t);if(Ie(t))return`Task(${Ur(t.T)})`;if(i(t))return`Qrl(${t.rt})`;if("object"==typeof t||"function"==typeof t){if(Dr.includes(t))return"*";try{if(Dr.push(t),Array.isArray(t))return Jr(t)?"("+Zo(t,Kn,null)+")":t.map(Ur);if(_r(t))return t instanceof yt?"WrappedSignal":t instanceof $n?"ComputedSignal":"Signal";if(mn(t))return"Store";if(Be(t))return zr(t)}finally{Dr.pop()}}return t}const zr=t=>{if(Be(t)){let n="<"+t.type;if(t.props){for(const[e,r]of Object.entries(t.props))n+=" "+e+"="+Ur(r);const e=t.children;null!=e?(n+=">",Array.isArray(e)?e.forEach((t=>{n+=zr(t)})):n+=zr(e),n+="</"+t.type+">"):n+="/>"}return n}return String(t)},Vr=(t,n)=>{Oo(t);const e=as.createElement(-247,null,null,null,null,null,t,n);return Gr(e),Yr(e),Xr(e),t.vNode=new WeakRef(e),e},Qr=t=>{Oo(t);const n=as.createElement(-255,null,null,null,void 0,void 0,t,void 0);return Gr(n),Yr(n),Xr(n),t.vNode=new WeakRef(n),n},Br=(t,n)=>{const e=as.createText(-244,null,null,null,t,n);return Oo(t),Gr(e),Yr(e),Xr(e),e},Hr=()=>{const t=as.createVirtual(-254,null,null,null,null,null);return Gr(t),Yr(t),Xr(t),t},Jr=t=>t instanceof as,Gr=t=>!(1&~t[0]),Yr=t=>!(4&~t[0]),Xr=t=>!(2&~t[0]),Kr=t=>!(2&~t[0])&&null!==Zo(t,f,null),Zr=t=>(Yr(t),eo(t),t),to=t=>{eo(t)},no=t=>(Gr(t),eo(t),t),eo=t=>{if(t)switch(7&t[0]){case 1:return"Element";case 2:return"Virtual";case 4:return"Text"}return"<unknown>"},ro=t=>{if(1==(15&t[0])){const n=t;n[0]^=8;const e=n[6],r=e.attributes,o=ns(n);for(let t=0;t<r.length;t++){const n=r[t],s=n.name;if(s===W||!s)break;s.startsWith(R)?"html"===n.value?Ze(o,D,e.innerHTML,0):"text"===n.value&&"value"in e&&Ze(o,"value",e.value,0):s.startsWith("on:")||Ze(o,s,n.value,0)}}};function oo(t){let n=t;if(Yr(t))return;let e=null;for(;;){const r=jo(n);if(r){n=r;continue}if(n===t)return;const o=Jo(n);if(o)n=o;else{for(e=es(n);e;){if(e===t)return;const r=Jo(e);if(r){n=r;break}e=es(e)}if(null==e)return}}}function so(t,n,e=!1,r=[]){if((t=>!!(5&t[0]))(n))return Yr(n)&&io(t,n),r.push(e?n:rs(n)),r;let o=jo(n);for(;o;)Gr(o)?r.push(e?o:rs(o)):Yr(o)?(io(t,o),r.push(e?o:rs(o))):so(t,o,!!e,r),o=Jo(o);return r}const lo=(t,n,e)=>{const r=n?4:5,o=n?3:2;let s=t;for(;e&&s&&Xr(s);){const t=s[r];if(!t)break;if(5&t[0])return t;s=t}for(;s;){let t=s[o];if(t&&5&t[0])return t;if(!t){let n=s[1];if(n&&!Xr(n))return null;for(;n&&!(t=n[o]);)if(n=n[1],n&&!Xr(n))return null;if(!t)return null;if(Yr(t)&&n&&Gr(n))return null}for(;t;){if(s=t,5&s[0]&&rs(s))return s;t=s[r]}}return null},io=(t,n)=>{const e=Zr(n);if(!(8&e[0])){const r=bo(n),o=e[4],s=r.ownerDocument;let l=lo(n,!1,!0);const i=o||lo(n,!0,!0)?.[6]||null;let u=i;for(;l&&Yr(l);){if(!(8&l[0])){const n=s.createTextNode(l[5]);t.push(5,r,u,n),u=n,l[4]=n,l[0]|=8}l=lo(l,!1,!0)}for(l=n;l&&Yr(l);){const n=lo(l,!0,!0),e=!n||!Yr(n);if(!(8&l[0])){if(e&&o)t.push(1,o,l[5]);else{const n=s.createTextNode(l[5]);t.push(5,r,i,n),l[4]=n}l[0]|=8}l=n}}},uo=(t,n)=>{no(t);let e=t;const r=t[6],{qVNodeRefs:o}=r;let s,l=-1;if("string"==typeof n)l=parseInt(n),s=o.get(l);else{s=n;const t=s.vNode?.deref();if(t)return t}if(Jr(s))e=s;else{r.contains(s);let t=s;const n=[s];for(;t&&t!==r;)t=t.parentElement,n.push(t);for(let t=n.length-2;t>=0;t--)e=ao(e,n[t]);-1!=l&&o.set(l,e)}if("string"==typeof n){const t=n.length;let r=ho(n,t),o=0;for(;r<t;){const t=n.charCodeAt(r);o*=26,t>=97?o+=t-97:(o+=t-65,e=co(e,o),o=0),r++}}return e},co=(t,n)=>{let e=jo(t);for(;e[0]>>>8!==n;)e=Jo(e);return e},fo=[],ao=(t,n)=>{no(t);let e=jo(t);for(;e&&e[6]!==n;)if(Xr(e)){const t=Jo(e),n=jo(e);n?(t&&fo.push(t),e=n):e=t||(fo.length?fo.pop():null)}else{const t=Jo(e);e=t||t||fo.pop()}for(;fo.length;)fo.pop();return no(e),e},ho=(t,n)=>{let e=0;for(;e<n;){if(!(t.charCodeAt(e)<=57))return e;e++}return n},$o=t=>"false"!==t&&Boolean(t),po=(t,n)=>("allowfullscreen"==n||"async"==n||"autofocus"==n||"autoplay"==n||"checked"==n||"controls"==n||"default"==n||"defer"==n||"disabled"==n||"formnovalidate"==n||"inert"==n||"ismap"==n||"itemscope"==n||"loop"==n||"multiple"==n||"muted"==n||"nomodule"==n||"novalidate"==n||"open"==n||"playsinline"==n||"readonly"==n||"required"==n||"reversed"==n||"selected"==n)&&n in t,yo=t=>{let n=0;const e=t.length;for(;n<e;)switch(t[n++]){case 1:t[n++].nodeValue=t[n++];break;case 2:const r=t[n++];let o=t[n++];"className"===o&&(o="class");const s=t[n++];po(r,o)?r[o]=$o(s):"value"===o&&o in r?r.value=String(s):o===D?(r.innerHTML=s,r.setAttribute(R,"html")):null==s||!1===s?r.removeAttribute(o):r.setAttribute(o,String(s));break;case 3:const l=t[n++],i=l.head,u=l.querySelectorAll(p);for(let t=0;t<u.length;t++)i.appendChild(u[t]);break;case 4:const c=t[n++];let f;for(;n<e&&"number"!=typeof(f=t[n]);)c.removeChild(f),n++;break;case 5:const a=t[n++],h=t[n++];let d;for(;n<e&&"number"!=typeof(d=t[n]);)a.insertBefore(d,h),n++}t.length=0},wo=(t,n,e,r)=>{to(n),Gr(n)&&Ro(n);const o=e[1];if(e===r){if(o)return;r=null}const s=mo(n),l=s&&s[6];let i=null;s&&(i=function(t,n,e){const{elementNamespace:r,elementNamespaceFlag:o}=or(n,e);let s=[];if(r===A)s=so(t,e);else{const l=so(t,e,!0);for(let t=0;t<l.length;t++){const e=l[t];if(Yr(e)){s.push(e[4]);continue}if((192&e[0])==(192&n[0])){s.push(e[6]);continue}const i=rr(e,n,r,o);i&&s.push(i)}}return s}(t,s,e)),o&&(e[2]||e[3]||o!==n)&&go(t,o,e,!1);let u=null;null==r?Xr(n)&&(u=lo(n,!0,!1)):u=Xr(r)?lo(r,!0,!0):r,u&&((t,n)=>{Yr(n)&&io(t,n)})(t,u),i&&i.length&&t.push(5,l,rs(u),...i);const c=r,f=c?c[2]:n[5];c?c[2]=e:n[5]=e,f?f[3]=e:n[4]=e,e[2]=f,e[3]=c,e[1]=n},bo=t=>(t=mo(t))&&t[6],mo=t=>{for(;t&&!Gr(t);)t=t[1];return t},go=(t,n,e,r)=>{if(es(e),Yr(e)&&io(t,e),r){const r=bo(n);if(Ko(n,D))return;const o=so(t,e);r&&o.length&&t.push(4,r,...o)}const o=e[2],s=e[3];o?o[3]=s:n[4]=s,s?s[2]=o:n[5]=o,e[2]=null,e[3]=null},vo=(t,n,e)=>{const r=bo(n),o=so(t,e);r&&o.length&&t.push(4,r,...o);const s=e[2];s?s[3]=null:n[4]=null,n[5]=s},So=t=>{const n=no(t);let e=n[7];if(void 0===e){const t=n[6],r=Uo(t).toLowerCase();e=n[7]=r,n[0]|=(t=>{switch(Wo(t)){case P:return 64;case O:return 128;default:return 0}})(t)}return e},ko=t=>{const n=Zr(t);let e=n[5];return void 0===e&&(e=n[5]=n[4].nodeValue),e},xo=(t,n,e)=>{io(t,n),t.push(1,n[4],n[5]=e)},jo=t=>{if(Yr(t))return null;let n=t[4];return void 0===n&&(n=Ro(t)),n},Ro=t=>{const n=no(t);let e=n[4];return void 0===e&&(e=n[1]&&Ao(n[6])?n[4]=n[5]=null:(t=>{const n=t[6],e=Lo(n),r=n.ownerDocument?.qVNodeData?.get(n);return((t,n,e,r)=>{if(r){if(124===r.charCodeAt(0)){const n=1;let o=1;for(;124!==r.charCodeAt(o);)o++;const s=r.substring(n,o);r=r.substring(o+1);const l=Qo(t,e,s);if(!r)return l}return function(t,n,e,r){let o=0,l=null,i=null,c=null;const h=n=>{n[0]=255&n[0]|o<<8,o++,i&&(i[3]=n),n[2]=i,n[1]=t,l||(t[4]=l=n),i=n};let d=0,$=null,p=null;return Ho(n,((b,m,g,v)=>{if(ss(b())){for(;!cs(r);)if(!(r=Co(r)))throw s(27,[n,b(),v]);for(;Vo(r);)r=Co(r);$=null,c=null;let t=0;for(;ss(b());)t*=10,t+=g()-48;for(;t--;)h(Qr(r)),r=Co(r)}else if(59===b())Xo(null,t,y,m());else if(60===b())Xo(null,t,u,m());else if(61===b()){p||(p=Or(e));const n=m();p.Vt(parseInt(n),t)}else if(62===b())Xo(null,t,C,m());else if(64===b())Xo(null,t,I,m());else if(91===b())Xo(null,t,E,m());else if(94===b())Xo(null,t,M,m());else if(96===b())p||(p=Or(e)),Bo(t,m(),p);else if(63===b())ts(t,a,m());else if(93===b())Xo(null,t,w,m());else if(123===b())g(),h(Hr()),is.push(t,l,i,c,o),o=0,t=i,l=i=null;else if(124===b()){const n=m(),e=m();Xo(null,t,n,e)}else if(125===b())g(),t[5]=i,o=is.pop(),c=is.pop(),i=is.pop(),l=is.pop(),t=is.pop();else if(126===b())Xo(null,t,f,m());else{const t=r&&3===Oo(r)?r:null;null===$&&($=t?t.nodeValue:null,d=0);let n=0;for(;ls(b());)n+=g()-97,n*=26;n+=g()-65;const e=null===$?"":$.substring(d,d+n);h(c=((t,n,e)=>{n&&Oo(n);const r=as.createText(-252,null,t,null,n,e);return Gr(r),Yr(r),Xr(r),r})(c,t,e)),d+=n}})),t[5]=i,l}(t,r,n,e)}return Qo(t,e)})(t,n,e,r)})(n)),e};let qo=null;const Ao=t=>(qo||(qo=t.hasAttribute),qo.call(t,R));let Po=null;const Oo=t=>(Po||(Po=zo(t,"nodeType")),Po.call(t)),No=t=>{const n=Oo(t);return 3===n||1===n};let Io=null;const Co=t=>{for(Io||(Io=zo(t,"nextSibling")),Fo||(Fo=zo(t,"firstChild"));t;)if(null!==(t=Io.call(t))){const n=Oo(t);if(3===n||1===n)break;if(8===n){const n=t.nodeValue;if(n?.startsWith(x))return Eo(t,S,Io,Fo);if(t.nodeValue?.startsWith(k))return Eo(t,j,Io,Fo);if(n?.startsWith(R))for(;t&&(t=Io.call(t))&&(8!==Oo(t)||!t.nodeValue?.startsWith(q)););}}return t};function Eo(t,n,e,r){for(;t;){if(t.nodeValue?.startsWith(n))return e.call(t)||null;let o=r.call(t);o||(o=e.call(t)),o||(o=_o(t),o&&(o=e.call(o))),t=o}return null}let Mo=null;const _o=t=>(Mo||(Mo=zo(t,"parentNode")),Mo.call(t));let Fo=null;const Lo=t=>{for(Fo||(Fo=zo(t,"firstChild")),t=t&&Fo.call(t);t&&!No(t);)t=Co(t);return t};let To=null;const Wo=t=>(To||(To=zo(t,"namespaceURI")),To.call(t));let Do=null;const Uo=t=>(Do||(Do=zo(t,"nodeName")),Do.call(t)),zo=(t,n)=>{let e;for(;t&&!(e=Object.getOwnPropertyDescriptor(t,n)?.get);)t=Object.getPrototypeOf(t);return e||function(){return this[n]}},Vo=t=>cs(t)&&"STYLE"===t.nodeName&&(t.hasAttribute(y)||t.hasAttribute(d)),Qo=(t,n,e)=>{let r=null;const o=()=>{for(;Vo(s);)s=Co(s)};let s=n;o();let l=null;for(;s;){const n=Oo(s);let e=null;3===n?e=Br(s,s.textContent??void 0):1===n&&(e=Qr(s)),e&&(e[1]=t,l&&(l[3]=e),e[2]=l,l=e),r||(t[4]=r=l),s=Co(s),o()}if(t[5]=l||null,t[4]=r,e){let n=null;Ho(e,((e,r)=>{if(61===e()){n||(n=Or(t[6]));const e=r();n.Vt(parseInt(e),t)}else 96===e()?(n||(n=Or(t[6])),Bo(t,r(),n)):r()}))}return r};function Bo(t,n,e){const r=e.bt(n);t[ft]?((t,n)=>{for(const[e,r]of n)t.set(e,r)})(t[ft],r):Object.defineProperty(t,ft,{value:r})}const Ho=(t,n)=>{let e=0,r=0,o=0;const s=()=>0!==o?o:o=e<t.length?t.charCodeAt(e):0,l=()=>(r=s(),o=0,e++,r),i=()=>{l();const n=e;for(;s()<=58&&0!==o||95===o||o>=65&&o<=90||o>=97&&o<=122;)l();return t.substring(n,e)};for(;0!==s();)n(s,i,l,e)},Jo=t=>t[3],Go=t=>t[2],Yo=t=>{if(3&t[0]){ro(t);const n=[],e=ns(t);for(let t=0;t<e.length;t+=2){const r=e[t];r.startsWith(W)||n.push(r)}return n}return[]},Xo=(t,n,e,r)=>{const o=n[0];if(3&o){ro(n);const s=ns(n),l=Ke(s,e,0);l>=0?(s[l+1]!=r&&1&o&&t&&t.push(2,n[6],e,r),null==r?s.splice(l,2):s[l+1]=r):null!=r&&(s.splice(~l,0,e,r),1&o)&&t&&t.push(2,n[6],e,r)}},Ko=(t,n)=>{if(3&t[0]){ro(t);const e=ns(t);return tr(e,n,0)}return null},Zo=(t,n,e)=>{const r=t[0];if(3&r){1&r&&ro(t);const o=ns(t),s=Ke(o,n,0);if(s>=0){let t=o[s+1];return"string"==typeof t&&e&&(o[s+1]=t=e(t)),t}}return null},ts=(t,n,e)=>{to(t);const r=ns(t),o=Ke(r,n,0);o>=0?r[o+1]=e:null!=e&&r.splice(~o,0,n,e)},ns=t=>t[(t=>{const n=7&t[0];if(1===n)return 8;if(2===n)return 6;throw s(26,[n])})(t)],es=t=>t[1]||null,rs=t=>null===t||Xr(t)?null:Gr(t)?t[6]:(Yr(t),t[4]);function os(t=20,n="",e=!1,r=!1,o=!0){let s=this;if(0===t)return"...";if(null===s)return"null";if(void 0===s)return"undefined";const l=[];do{if(Yr(s))l.push(Ur(ko(s)));else if(Xr(s)){const e=["["+String(s[0]>>>8)+"]"];Yo(s).forEach((t=>{if(t!==Kn){const n=Ko(s,t);e.push(" "+t+"="+Ur(n))}}));const r=(o?"[34m":"")+(Zn[Ko(s,Kn)||"V"]||Zn.V)+(o?"[0m":"");l.push("<"+r+e.join("")+">");const i=jo(s);i&&l.push(" "+os.call(i,t-1,n+" ",!0,!0,o)),l.push("</"+r+">")}else if(Gr(s)){const r=So(s),u=[],c=Yo(s);c.forEach((t=>{const n=Ko(s,t);u.push(" "+t+"="+Ur(n))}));const f=rs(s);if(f){const t=f.ownerDocument.qVNodeData?.get(f);t&&u.push(" q:vnodeData="+Ur(t))}const a=f.attributes;for(let t=0;t<a.length;t++){const n=a[t];-1===c.indexOf(n.name)&&u.push(" "+n.name+(n.value?"="+Ur(n.value):""))}if(l.push("<"+r+u.join("")+">"),!(1&~(i=s)[0])&&void 0!==i[4]&&void 0!==i[5]||e){const e=jo(s);e&&l.push(" "+os.call(e,t-1,n+" ",!0,!0,o))}else l.push(" \x3c!-- not materialized --!>");l.push("</"+r+">")}s=r&&Jo(s)||null}while(s);var i;return l.join("\n"+n)}const ss=t=>48<=t&&t<=57,ls=t=>97<=t&&t<=122,is=[],us=t=>{const n=t[0];if(1&n)return 1;if(2&n)return 11;if(4&n)return 3;throw s(26,[n])},cs=t=>t&&"object"==typeof t&&1===Oo(t),fs=(t,n)=>{let e=1;for(;e--;){for(;t&&(!Xr(t)||null===Zo(t,u,null));){const r=Zo(t,a,(t=>uo(n,t))),o=Xr(t)&&r;o&&e++,t=o||es(t)}e>0&&(t=es(t))}return t},as=class t extends Array{static createElement(n,e,r,o,s,l,i,u){return new t(n,e,r,o,s,l,i,u,[])}static createText(n,e,r,o,s,l){return new t(n,e,r,o,s,l)}static createVirtual(n,e,r,o,s,l){return new t(n,e,r,o,s,l,[])}constructor(t,n,e,r,...o){super(t,n,e,r,...o)}},hs=new WeakMap,ds=Symbol("UNWRAP"),$s=(t,n)=>{if(!Array.isArray(n)||Jr(n)||"object"==typeof(e=n)&&null!==e&&ds in e)return n;var e;let r=hs.get(n);if(!r){const e=Array(n.length/2).fill(void 0);r=new Proxy(e,new ps(t,n)),hs.set(n,r)}return r};class ps{u;Bt;Ht;constructor(t,n){this.u=t,this.Bt=n,this.Ht=this.Bt.length/2}get(t,n,e){if(n===ds)return t;const r="number"==typeof n?n:"string"==typeof n?parseInt(n,10):NaN;if(Number.isNaN(r)||r<0||r>=this.Ht)return Reflect.get(t,n,e);const o=2*r,s=this.Bt[o],l=this.Bt[o+1];if(void 0===s)return l;const i=this.u;let u=gs(i,s,l);return s>=14&&(u=ws(i,u,s,l)),Reflect.set(t,n,u),this.Bt[o]=void 0,this.Bt[o+1]=u,u}has(t,n){return n===ds||Object.prototype.hasOwnProperty.call(t,n)}set(t,n,e,r){if(n===ds)return!1;const o=Reflect.set(t,n,e,r),s="number"==typeof n?n:parseInt(n,10);if(Number.isNaN(s)||s<0||s>=this.Bt.length/2)return o;const l=2*s;return this.Bt[l]=void 0,this.Bt[l+1]=e,!0}}const ys=new WeakMap,ws=(t,n,e,r)=>{if(void 0===e)return n;switch(15!==e&&Array.isArray(r)&&(r=((t,n)=>{const e=Array(n.length/2);for(let r=0;r<n.length;r+=2)e[r/2]=Es(t,n[r],n[r+1]);return e})(t,r)),e){case 15:for(let e=0;e<r.length;e+=4){const o=Es(t,r[e],r[e+1]),s=r[e+2],l=r[e+3];0===s||s>=14?Object.defineProperty(n,o,{get(){const e=Es(t,s,l);return n[o]=e,e},set(t){Object.defineProperty(n,o,{value:t,writable:!0,enumerable:!0,configurable:!0})},enumerable:!0,configurable:!0}):n[o]=Es(t,s,l)}break;case 20:case 21:ks(t,n);break;case 22:const o=n,l=r;o.T=ks(t,l[0]),o.v=l[1],o.it=l[2],o.ut=l[3],o[ft]=l[4],o.ct=l[5];break;case 23:const[i,u,c]=r,f=n;i?(f.value=Promise.resolve(u),f._resolved=u,f._state="resolved"):(f.value=Promise.reject(u),f._error=u,f._state="rejected"),yn(n).l=c;break;case 24:n[pl][0]=r[0];break;case 30:case 31:{const[e,o,s]=r,l=vn(e,o,t);yn(l).l=s,n=l;break}case 25:{const t=n,e=r;t.o=e[0],t.l=new Set(e.slice(1));break}case 26:{const e=n,o=r;e.p=t.getSyncFn(o[0]),e.$=o[1],e[ft]=o[2],e.o=ct,e.v=o[3],e.v|=1,e.k=o[4],e.l=new Set(o.slice(5));break}case 28:{const t=n,e=r;t.U=e[0],t.l=new Set(e[1]),t.K=new Set(e[2]),t.Z=new Set(e[3]),t.Y=e[4],t.X=e[5],e.length>6?t.o=e[6]:t.v|=1;break}case 29:case 27:{const o=n,s=r;o.U=s[0],o.l=new Set(s[1]),s.length>2?(o.o=s[2],29===e&&(o.v|=1)):(o.v|=1,o.U.resolve(),t.q?.(1,null,o.U));break}case 14:{const t=r;n.message=t[0];for(let e=1;e<t.length;e+=2)n[t[e]]=t[e+1];break}case 32:{const t=n,e=r;for(let n=0;n<e.length;n++)t.append(e[n++],e[n]);break}case 33:{const t=n,[e,o,s,l,i,u]=r;t.type=e,t.varProps=o,t.constProps=s,t.children=l,t.flags=i,t.key=u;break}case 17:{const t=n,e=r;for(let n=0;n<e.length;n++)t.add(e[n]);break}case 18:{const t=n,e=r;for(let n=0;n<e.length;n++)t.set(e[n++],e[n]);break}case 16:{const t=n,[e,o]=r,[s,l]=ys.get(t);e?s(o):l(o);break}case 19:const a=n,h=atob(r);let d=0;for(const t of h)a[d++]=t.charCodeAt(0);break;case 34:const $=n;$[an]=0===r?{}:r[0],$[fn]=r[1];break;case 35:{const t=n;t.data.yt=r[0],t.data.wt=r[1];break}default:throw s(16,[e])}return n},bs=[void 0,null,!0,!1,"",Kt,Zt,ct,dt,Qn,He,NaN,1/0,-1/0,Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER-1,Number.MIN_SAFE_INTEGER],ms=["undefined","null","true","false","''","EMPTY_ARRAY","EMPTY_OBJ","NEEDS_COMPUTATION","STORE_ALL_PROPS","Slot","Fragment","NaN","Infinity","-Infinity","MAX_SAFE_INTEGER","MAX_SAFE_INTEGER-1","MIN_SAFE_INTEGER"],gs=(t,n,e)=>{if(void 0===e)return n;switch(n){case 0:return t.bt(e);case 1:if(!t.Ft)throw s(18,["forward ref"]);return t.bt(t.Ft[e]);case 2:case 4:case 5:return e;case 3:return bs[e];case 6:return $s(t,e);case 15:return{};case 20:case 21:return Ss("number"==typeof e?t.bt(e):e);case 22:return new Ne(-1,-1,null,null,null,null);case 23:{const n=br(t,void 0,void 0);return n.loading=!1,n}case 7:return new URL(e);case 8:return new Date(e);case 9:const r=e.lastIndexOf("/");return new RegExp(e.slice(1,r),e.slice(r+1));case 14:return new Error;case 24:return $l(null);case 25:return new $t(t,0);case 26:return new yt(t,null,null,null);case 27:return new $n(t,null);case 28:return new An(t,null);case 29:return new pn(t,null);case 30:case 31:return null;case 13:return new URLSearchParams(e);case 32:return new FormData;case 33:return new ze(null,null,null,null,-1,null);case 12:return BigInt(e);case 17:return new Set;case 18:return new Map;case 16:let o,l;const i=new Promise(((t,n)=>{o=t,l=n}));return ys.set(i,[o,l]),i.catch((()=>{})),i;case 19:const u=e.length,c=3&u;return new Uint8Array(3*(u>>>2)+(c?c-1:0));case 34:return Ge(null,null);case 10:return vs(t,e);case 11:const f=vs(t,e);if(Jr(f))return rs(f);throw s(17,[typeof f]);case 35:return new Wn({});default:throw s(18,[n])}};function vs(t,n){return n?t.rootVNode?uo(t.rootVNode,n):void 0:t.element?.ownerDocument}function Ss(t){const n=t.indexOf("#"),e=t.indexOf("[",n),r=t.indexOf("]",e),o=t.slice(0,n>-1?n:e),s=e>-1?t.slice(n+1,e):t.slice(n+1),l=e>-1&&r>-1?t.slice(e+1,r).split(" ").filter((t=>t.length)).map((t=>parseInt(t,10))):null;let i=null;return o===Ws&&(i=globalThis.__qrl_back_channel__.get(s)),rl(o,s,i,null,l,null)}function ks(t,n){const e=n.ot;return n.D=e?e.map((n=>t.bt(n))):null,t.element&&n.W(t.element),n}let xs=()=>!1;const js=(t,n,e,r,o,l,u)=>{if(!u){const t=[];u={write:n=>t.push(n),toString:()=>t.join("")}}const c=new Map,f=new Map,a=new Map,h=[],d=[],$=t=>{const n=f.get(t);if(n)return n;const e=c.get(t);if(!e)throw s(19,[t]);const r=[];let o=e;for(;o&&o.it>=0&&(r.unshift(o.it),"object"==typeof o.Jt&&null!==o.Jt);)o=c.get(o.Jt);const l=r.length>1?r.join(" "):r.length?r[0]:e.it;return f.set(t,l),l},p=t?n=>n instanceof t:()=>!1;return xs=n?t=>t instanceof n:()=>!1,{async Gt(){return await async function(t){const{Yt:n,Xt:e,Kt:r,J:o,Zt:l,tn:u,nn:c}=t;let f=0;const a=[];let h=0;const d=new Set,$=new Set;let p=null;const y=(t,e)=>{n.write("[");let r=!1;for(let o=0;o<t.length;o++)r?n.write(","):r=!0,e(t[o],o);n.write("]")},w=(e,r)=>{if(n.write(`${e},`),"number"==typeof r)n.write(r.toString());else if("string"==typeof r){const t=JSON.stringify(r);let e=-1,o=0;for(;-1!==(e=t.indexOf("</",o));)n.write(t.slice(o,e)),n.write("<\\/"),o=e+2;n.write(0===o?t:t.slice(o))}else f++,y(r,((n,e)=>{!function(t,n,e,r){const{nn:o,en:s,Zt:l}=t;(function(t){return"object"==typeof t&&null!==t||"string"==typeof t&&t.length>1}(n)||Ls(n))&&(void 0===o(n)?s(n,e,r):l(n,e))}(t,n,p,e),v(n)})),f--},m=n=>{$.add(n),t.Zt(n,null)},g=(t,n=0)=>{const e=c(t),r=u.get(t);return n===f&&e&&null!==e.Jt&&r?(w(0,r),!0):!!(f>n&&e&&-1!==e.rn)&&(w(0,e.rn),!0)},v=n=>{if(Ks(n))w(3,0);else if("bigint"==typeof n)w(12,n.toString());else if("boolean"==typeof n)w(3,n?2:3);else if("function"==typeof n)if(n===Qn)w(3,9);else if(n===He)w(3,10);else if(i(n)){if(!g(n)){const e=Ns(t,n),r=$.has(n)?21:20;if(0===f)w(r,e);else{const n=t.Zt(e);w(r,n)}}}else{if(!yl(n))throw s(34,[n.toString()]);{const[e]=n[pl];t.sn.add(e.rt),w(24,[e])}}else if("number"==typeof n)Number.isNaN(n)?w(3,11):Number.isFinite(n)?n===Number.MAX_SAFE_INTEGER?w(3,14):n===Number.MAX_SAFE_INTEGER-1?w(3,15):n===Number.MIN_SAFE_INTEGER?w(3,16):w(4,n):w(3,n<0?13:12);else if("object"==typeof n)if(n===Kt)w(3,5);else if(n===Zt)w(3,6);else if(null===n)w(3,1);else{f++;const t=p;p=n,S(n),p=t,f--}else if("string"==typeof n)0===n.length?w(3,4):g(n)||w(5,n);else if(void 0===n)w(3,0);else if(n===ct)w(3,7);else{if(n!==dt)throw s(20,[typeof n]);w(3,8)}},S=n=>{var i;if(!g(n,1))if(Ue(n)){const t=n[an],e=n[fn],r=e?[t,e]:Object.keys(t).length?[t]:0;w(34,r)}else if(n instanceof Wn)w(35,[n.data.yt,n.data.wt]);else if(mn(n))if(function(t){return"__brand"in t&&"resource"===t.__brand}(n)){t.ln.add(n);const e=k(n.value,l,((t,e)=>new As(23,t,e,yn(n).l)));w(1,e)}else{const e=yn(n),r=wn(n),s=e.v,l=e.l,i=[];for(const n in r){const e=r[n];if(o.has(e)){const n=o.get(e);i.push(n),t.Zt(n)}}const u=[r,s,l,...i];for(;null==u[u.length-1];)u.pop();w(Array.isArray(r)?31:30,u)}else if("object"==typeof(i=n)&&null!==i&&"function"==typeof i[el]){const t=n[el](n);if(G(t)){const n=k(t,l,((t,n)=>new As(29,t,n,null,null)));w(1,n)}else f--,v(t),f++}else if(function(t){const n=Object.getPrototypeOf(t);return null==n||n===Object.prototype||n===Array.prototype}(n))if(Array.isArray(n))w(6,n);else{const t=[];for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&!Ks(n[e])&&t.push(e,n[e]);w(15,t)}else if(r(n))n.un.vnodeData[0]|=16,w(11,n.un.id);else if(n instanceof $t){if(n instanceof pn){m(n.U);const t=k(function(t,n){return new Promise((e=>{t.U.resolve().then((t=>{let r;t.serialize?r=t.serialize(n):el in n&&(r=n[el](n)),void 0===r&&(r=ct),e(r)}))}))}(n,n.o),l,((t,e)=>new As(29,t,e,n.l,n.U)));return void w(1,t)}const e=n instanceof $n&&(1&n.v||Ks(n.o))?ct:n.o;if(n instanceof yt)w(26,[...Os(t,n),Ps(n[ft]),n.v,n.k,...n.l||[]]);else if(n instanceof An){m(n.U);const t=[n.U,n.l,n.K,n.Z,n.Y,n.X];e!==ct&&t.push(e),w(28,t)}else if(n instanceof $n){m(n.U);const t=[n.U,n.l];e!==ct&&t.push(e),w(27,t)}else w(25,[e,...n.l||[]])}else if(n instanceof URL)w(7,n.href);else if(n instanceof Date)w(8,Number.isNaN(n.valueOf())?"":n.valueOf());else if(n instanceof RegExp)w(9,n.toString());else if(n instanceof Error){const t=[n.message];t.push(...Object.entries(n).flat()),t.push("stack",n.stack),w(14,t)}else if(e(n)){const e=l(n);t.cn(n,"q:id",String(e)),w(10,n.id);const r=n.vnodeData;if(r&&(qs(r,(t=>l(t))),r[0]|=16),n.children)for(const t of n.children){const n=t.vnodeData;if(n){for(const t of n)if(Rs(t)){const n=t.findIndex((t=>t===b));-1!==n&&l(t[n+1])}n[0]|=16}}}else if("undefined"!=typeof FormData&&n instanceof FormData){const t=[];n.forEach(((n,e)=>{t.push(e,"string"==typeof n?n:n.name)})),w(32,t)}else if(n instanceof URLSearchParams)w(13,n.toString());else if(n instanceof Set)w(17,[...n.values()]);else if(n instanceof Map){const t=[];for(const[e,r]of n.entries())t.push(e,r);w(18,t)}else if(Be(n))w(33,[n.type,n.varProps,n.constProps,n.children,n.flags,n.key]);else if(n instanceof Ne){const t=[n.T,n.v,n.it,n.ut,n[ft],n.ct];for(;null==t[t.length-1];)t.pop();w(22,t)}else if(G(n)){const t=k(n,l,((t,n)=>new As(16,t,n)));w(1,t)}else if(n instanceof As)if(23===n.St)w(23,[n.fn,n.Pt,n.l]);else if(29===n.St)if(n.T)w(29,[n.T,n.l,n.Pt]);else{if(!n.fn)throw console.error(n.Pt),s(33);v(n.Pt)}else w(16,[n.fn,n.Pt]);else if(n instanceof Uint8Array){let t="";for(const e of n)t+=String.fromCharCode(e);const e=btoa(t).replace(/=+$/,"");w(19,e)}else{if(!Jr(n))throw s(20,[typeof n]);w(3,0)}};function k(t,n,e){const r=h++;return t.then((o=>{d.delete(t),a[r]=n(e(!0,o))})).catch((o=>{d.delete(t),a[r]=n(e(!1,o))})),d.add(t),r}await(async()=>{n.write("[");let e=0,r=t.an.length;for(;e<r||d.size;){0!==e&&n.write(",");let o=!1;for(let s=e;s<r;s++)o?n.write(","):o=!0,v(t.an[s]);if(d.size)try{await Promise.race(d)}catch{}e=r,r=t.an.length}a.length&&(n.write(","),n.write("2,"),y(a,(t=>{n.write(String(t))}))),n.write("]")})()}(this)},Xt:p,Kt:xs,hn:e,nn:t=>c.get(t),an:d,en:(t,n,e)=>c.set(t,{Jt:n,it:e,rn:-1}),dn:t=>{const n=c.get(t);return null===n?.Jt?n.it:void 0},Zt:(t,n=null)=>{let e=c.get(t);if(e)-1===e.rn&&(e.rn=d.length,d.push(t));else{const r=d.length;e={Jt:n,it:r,rn:r},c.set(t,e),d.push(t)}return $(t),e.rn},$n:$,pn:h,yn:(t,n,e)=>{const r=null==t;r&&(t=e.serialized||e.toString());let o=a.get(t);if(void 0===o)if(o=h.length,a.set(t,o),r)h.push(t);else{let e="(";for(let t=0;t<n;t++)e+=(0==t?"p":",p")+t;h.push(e+=")=>"+t)}return o},Yt:u,lt:new Set,st:new Set,ln:new Set,sn:new Set,J:l,wn:r,cn:o,tn:f}},Rs=t=>Array.isArray(t)&&t.length>0,qs=(t,n)=>{for(const e of t)if(Rs(e))for(let t=1;t<e.length;t+=2){const r=e[t];"string"==typeof r||e[t-1]===C&&0===Object.keys(r).length||n(r)}};class As{St;fn;Pt;l;T;constructor(t,n,e,r=null,o=null){this.St=t,this.fn=n,this.Pt=e,this.l=r,this.T=o}}function Ps(t){let n=null;if(t)for(const[e,r]of t)r[2]&&(n||=new Map,n.set(e,r));return n}function Os(t,n){return n.m&&"{"===n.m[0]&&(n.m=`(${n.m})`),[t.yn(n.m,n.$.length,n.p),n.$]}function Ns(t,n){let e=n.rt,r=n.bn;const o=B();if(o){const t=o.chunkForSymbol(e,r,n.dev?.file);t&&(r=t[1],e=t[0])}const u=(t=>i(t)&&t.rt==l)(n);if(u)r="",e=String(t.yn(null,0,n.resolved));else{r||(r=t.hn(n.B));{let t=globalThis.__qrl_back_channel__;t||(t=globalThis.__qrl_back_channel__=new Map),t.set(n.rt,n._devOnlySymbolRef),r||(r=Ws)}if(!r)throw s(14,[n.rt]);r.startsWith("./")&&(r=r.slice(2))}let c=`${r}#${e}`;if(Array.isArray(n.D)&&n.D.length>0){let e="";for(let r=0;r<n.D.length;r++)r>0&&(e+=" "),e+=t.Zt(n.D[r]);c+=`[${e}]`}else n.ot&&n.ot.length>0&&(c+=`[${n.ot.join(" ")}]`);return c}async function Is(t){const n=js(null,null,(()=>""),(()=>""),(()=>{}),new WeakMap);for(const e of t)n.Zt(e);return await n.Gt(),n.Yt.toString()}function Cs(t,n){if(null==t)return[];const e=JSON.parse(t);if(!Array.isArray(e))return[];let r;r=H(n)&&J(n)?_s(e,n):_s(e);const o=[];for(let t=0;t<e.length;t+=2)o[t/2]=Es(r,e[t],e[t+1]);return o}function Es(t,n,e){if(void 0===n)return e;let r=gs(t,n,e);return n>=14&&(r=ws(t,r,n,e)),r}function Ms(t,n){return"string"==typeof t&&(t=parseInt(t,10)),n[t]}function _s(t,n){let e;const r={bt:t=>Ms(t,e),getSyncFn:()=>()=>{},J:new WeakMap,element:null,Ft:null,Lt:null,q:null};return Fs(t,r),e=$s(r,t),r.ct=e,n&&(r.element=n),r}function Fs(t,n){const e=n=>{const e=t[n+1].split(" ");let r=t,o=0,s=0,l=0,i=null;for(let n=0;n<e.length;n++)if(i=r,s=2*parseInt(e[n],10),l=s+1,o=r[s],r=r[l],0===o){const n=2*r;o=t[n],r=t[n+1]}i&&(i[s]=0,i[l]=n/2),t[n]=o,t[n+1]=r};for(let r=0;r<t.length;r+=2)0===t[r]&&"string"==typeof t[r+1]?e(r):2===t[r]?n.Ft=t[r+1]:21===t[r]&&(n.Lt||=[],n.Lt.push(r/2))}const Ls=t=>"object"==typeof t&&null!==t&&(t instanceof $t||t instanceof Ne||Be(t))||i(t),Ts=(t,n=new WeakSet)=>{if(null==t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t||"bigint"==typeof t)return!0;if("object"==typeof t){if(n.has(t))return!0;n.add(t);const e=Object.getPrototypeOf(t);if(mn(t)&&(t=wn(t)),e==Object.prototype){for(const e in t)if(!Ts(qt((()=>t[e])),n))return!1;return!0}if(e==Array.prototype){for(let e=0;e<t.length;e++)if(!Ts(t[e],n))return!1;return!0}if(Ie(t))return!0;if(Ue(t))return!0;if(G(t))return!0;if(Be(t))return!0;if(t instanceof Error)return!0;if(t instanceof URL)return!0;if(t instanceof Date)return!0;if(t instanceof RegExp)return!0;if(t instanceof URLSearchParams)return!0;if(t instanceof FormData)return!0;if(t instanceof Set)return!0;if(t instanceof Map)return!0;if(t instanceof Uint8Array)return!0;if(xs?.(t))return!0}else if("function"==typeof t&&(i(t)||yl(t)))return!0;return!1},Ws="mock-chunk",Ds=["RootRef","ForwardRef","ForwardRefs","Constant","Number","String","Array","URL","Date","Regex","VNode","RefVNode","BigInt","URLSearchParams","Error","Object","Promise","Set","Map","Uint8Array","QRL","PreloadQRL","Task","Resource","Component","Signal","WrappedSignal","ComputedSignal","AsyncComputedSignal","SerializerSignal","Store","StoreArray","FormData","JSXNode","PropsProxy","EffectData"],Us=(t,n)=>{let e=Jr(t)?os.call(t,1,"",!0).replaceAll(/\n.*/gm,""):"function"==typeof t?String(t):(t=>{const n=new WeakSet;return JSON.stringify(t,((t,e)=>{if("object"==typeof e&&null!==e){if(n.has(e))return`[Circular ${e.constructor.name}]`;n.add(e)}return e}),2)})(t);return e.length>500&&(e=e.slice(0,500)+'"...'),e=e.replace(/\n/g,"\n"+n),e.includes("\n")?e=`\n${n}${e}`:e};let zs=!1;const Vs=(t,n=!1,e="",r=20)=>{const o=n?"[31m":"",s=n?"[0m":"",l=""===e,i=[];for(let l=0;l<t.length;l++){if(r&&l>2*r){i.push("...");break}const u=t[l];let c=t[++l];void 0===u?(zs=!0,i.push(`${o}[raw${"object"==typeof c&&c?` ${c.constructor.name}`:""}]${s} ${Us(c,`${e} `)}`)):(3===u?c=Bs(c):"string"==typeof c?(c=JSON.stringify(c),c.length>120&&(c=c.slice(0,120)+'"...')):2===u?c=`[\n${e} ${c.join(`\n${e} `)}\n${e}]`:Array.isArray(c)&&(c=c.length?`[\n${Vs(c,n,`${e} `)}\n${e}]`:"[]"),i.push(`${o}${Qs(u)}${s} ${c}`))}const u=i.map(((t,n)=>`${e}${l?`${n} `:""}${t}`)).join("\n");if(l){const n=zs?"":`(${JSON.stringify(t).length} chars)`;return zs=!1,`\n${u}\n${n}`}return u},Qs=t=>Ds[t]||`Unknown(${t})`,Bs=t=>ms[t]||`Unknown(${t})`,Hs=(t,n)=>{const e=new WeakSet;return Js(t,e,"_",n)},Js=(t,n,e,r)=>{const o=bn(t);if(null==o)return t;if(Xs(o)){if("object"==typeof o){if(n.has(o))return t;n.add(o)}if(_r(o))return t;if(Ts(o))return t;const l=typeof o;switch(l){case"object":if(G(o))return t;if(H(o))return t;if(rt(o)){let r=0;return o.forEach(((t,l)=>{if(l!==r)throw s(3,[o]);Js(t,n,e+"["+l+"]"),r=l+1})),t}if(nt(o)){for(const[t,r]of Object.entries(o))Js(r,n,e+"."+t);return t}break;case"boolean":case"string":case"number":return t}let i;if(i=r||"Value cannot be serialized","_"!==e&&(i+=` in ${e},`),"object"===l)i+=` because it's an instance of "${t?.constructor.name}". You might need to use 'noSerialize()' or use an object literal instead. Check out https://qwik.dev/docs/advanced/dollar/`;else if("function"===l){const n=t.name;i+=` because it's a function named "${n}". You might need to convert it to a QRL using $(fn):\n\nconst ${n} = $(${String(t)});\n\nPlease check out https://qwik.dev/docs/advanced/qrl/ for more information.`}throw s(3,[i])}return t},Gs=/*#__PURE__*/new WeakSet,Ys=/*#__PURE__*/new WeakSet,Xs=t=>!et(t)&&!st(t)||!Gs.has(t),Ks=t=>t&&("object"==typeof t||"function"==typeof t)&&(nl in t||Gs.has(t)),Zs=t=>(("object"==typeof t&&null!==t||"function"==typeof t)&&Gs.add(t),t),tl=t=>(Ys.add(t),t),nl=Symbol("noSerialize"),el=Symbol("serialize"),rl=(n,e,r,o,l,i)=>{let u;const c=async function(...t){const n=a.call(this,mt());return await n(...t)},f=t=>(u||(u=t),u);function a(t,n){const e=(...o)=>{if(!c.resolved)return tt((()=>c.resolve())).then((t=>{if(!st(t))throw s(5);return e(...o)}));if(n&&!1===n())return;const l=$(t),i=l.T,u=l.N;l.T=c,l.N||=this;try{return kt.call(this,l,r,...o)}finally{l.T=i,l.N=u}};return e}const h=t=>"function"!=typeof t||!l?.length&&!i?.length?t:function(...n){let e=mt();if(e){if(e.T?.rt===c.rt)return t.apply(this,n);const r=e.T;e.T=c;try{return t.apply(this,n)}finally{e.T=r}}return e=Rt(),e.T=c,e.N=this,kt.call(this,e,t,...n)},d=async s=>{if(null!==r)return r;if(s&&f(s),""===n){const t=u.getAttribute(v),n=m(u.ownerDocument,t);return c.resolved=r=n[Number(e)]}n&&t(n,1);const l=il(),i=mt();if(null!==o)r=o().then((t=>c.resolved=h(r=t[e])));else{const t=B().importSymbol(u,n,e);r=X(t,(t=>c.resolved=h(r=t)))}return"object"==typeof r&&G(r)&&r.then((()=>sl(e,i?.L,l)),(t=>{console.error(`qrl ${e} failed to load`,t),r=null})),r},$=t=>null==t?Rt():rt(t)?jt(t):t,p=(t=>{const n=t.lastIndexOf("_");return n>-1?t.slice(n+1):t})(e);return Object.assign(c,{getSymbol:()=>e,getHash:()=>p,getCaptured:()=>i,resolve:d,mn:t=>null!==r?r:d(t),W:f,bn:n,rt:e,B:p,getFn:a,ot:l,D:i,dev:null,resolved:void 0}),r&&(r=X(r,(t=>c.resolved=h(r=t)))),e&&t(e,.8),c},ol=/*#__PURE__*/new Set,sl=(t,n,e)=>{ol.has(t)||(ol.add(t),ll("qsymbol",{symbol:t,element:n,reqTime:e}))},ll=(t,n)=>{"object"==typeof document&&document.dispatchEvent(new CustomEvent(t,{bubbles:!1,detail:n}))},il=()=>"object"==typeof performance?performance.now():0;let ul=0;const cl=t=>rl(null,"s"+ul++,t,null,null,null),fl=cl,al=t=>t,hl=t=>rl("",l,t,null,null,null),dl=function(t,n){return void 0===n&&(n=t.toString()),t.serialized=n,rl("",l,t,null,null,null)},$l=t=>{function n(n,e,r=0){const o=t.B.slice(0,4)+":"+(e||""),s=()=>{};return s[pl]=[t],Me(s,n,null,n.children,r,o)}return n[pl]=[t],n},pl=Symbol("serializable-data"),yl=t=>"function"==typeof t&&void 0!==t[pl],wl=t=>$l(fl(t)),bl=dn(al),ml=async(t,n,e={})=>{if(9===t.nodeType){let n=t.firstChild;for(;n&&!J(n);)n=n.nextSibling;t=n}t.setAttribute(R,"resumed");const r=Or(t);r.Nt=e.serverData||{};const o=r.rootVNode;return r.q(4,o,o,n),await r.q(255),{cleanup:()=>{hr(r,r.rootVNode)}}},gl=(t,n)=>{const{val:e,set:r,iCtx:o}=Mt();if(null!=e)return e;const s=st(t)?kt(void 0,t):t;if(!1===n?.reactive)return r(s),s;{const t=o.u,e=vn(s,n?.deep??1?1:0,t);return r(e),e}},vl=()=>{const{val:t,set:n,iCtx:e}=Mt();if(null!=t)return t;const r=e.u.Et||"",o=r?se(r).substring(0,3):"",s=e.u.getHostProp(e.k,u);let l=`${o}${s?.getHash().substring(0,3)||""}${(e.u.It++).toString(36)||""}`,i=l.charCodeAt(0);return i>=48&&i<=57&&(i+=17,l=String.fromCharCode(i)+l.substring(1)),n(l)};function Sl(t,n){const e=mt();return e?.u?.Nt[t]??n}const kl=/*#__PURE__*/new Map,xl=(t,n)=>{let e=kl.get(n);return e||kl.set(n,e=jl(t,n)),e},jl=(t,n)=>{const e=t.length,r=[],o=[];let s=0,l=s,i=Ol,u=0;for(;s<e;){const n=s;let e=t.charCodeAt(s++);e===ri&&(s++,e=ti);const r=ai[i];for(let c=0;c<r.length;c++){const $=r[c],[p,y,w]=$;if((p===u||p===Tl||p===Wl&&Rl(u)||p===Ul&&Pl(u))&&(y===e||y===Tl||y===Wl&&Rl(e)||y===Dl&&!Rl(e)&&e!==Yl||y===Ul&&Pl(e))&&(3==$.length||h($))){if($.length>3&&(e=t.charCodeAt(s-1)),w===Fl||w==Ll){w===Ll&&(i!==Nl||d()?ql(e)||a(s-(y==Dl?1:y==Jl?2:0)):(ql(e)?f(s-2):a(s-2),l++)),y===Dl&&(s--,e=u);do{i=o.pop()||Ol,i===Il&&(f(s-1),l++)}while(Al(i))}else o.push(i),i===Il&&w===Ol?(f(s-8),l=s):w===Cl&&a(n),i=w;break}}u=e}return f(s),r.join("");function f(n){r.push(t.substring(l,n)),l=n}function a(t){i===Il||d()||(f(t),r.push(".",c,n))}function h(n){let e=0;if(t.charCodeAt(s)===Gl)for(let n=1;n<10;n++)if(t.charCodeAt(s+n)===Gl){e=n+1;break}t:for(let r=3;r<n.length;r++){const o=n[r];for(let n=0;n<o.length;n++)if((t.charCodeAt(s+n+e)|si)!==o.charCodeAt(n))continue t;return s+=o.length+e,!0}return!1}function d(){return-1!==o.indexOf(Il)||-1!==o.indexOf(El)}},Rl=t=>t>=Xl&&t<=Kl||t>=ti&&t<=ni||t>=li&&t<=ii||t>=128||t===oi||t===Gl,ql=t=>t===Zl||t===Yl||t===ei||t===Hl||Rl(t),Al=t=>t===Ml||t===El||t===_l||t===Il,Pl=t=>t===Bl||t===zl||t===Vl||t===Ql,Ol=0,Nl=2,Il=5,Cl=6,El=10,Ml=11,_l=12,Fl=17,Ll=18,Tl=0,Wl=1,Dl=2,Ul=3,zl=9,Vl=10,Ql=13,Bl=32,Hl=35,Jl=41,Gl=45,Yl=46,Xl=48,Kl=57,Zl=58,ti=65,ni=90,ei=91,ri=92,oi=95,si=32,li=97,ii=122,ui=123,ci=125,fi=[[Tl,39,14],[Tl,34,15],[Tl,47,16,"*"]],ai=[[[Tl,42,Nl],[Tl,ei,7],[Tl,Zl,Cl,":","before","after","first-letter","first-line"],[Tl,Zl,Il,"global"],[Tl,Zl,3,"has","host-context","not","where","is","matches","any"],[Tl,Zl,4],[Tl,Wl,1],[Tl,Yl,1],[Tl,Hl,1],[Tl,64,El,"keyframe"],[Tl,64,Ml,"media","supports","container"],[Tl,64,_l],[Tl,ui,13],[47,42,16],[Tl,59,Fl],[Tl,ci,Fl],[Tl,Jl,Fl],...fi],[[Tl,Dl,Ll]],[[Tl,Dl,Ll]],[[Tl,40,Ol],[Tl,Dl,Ll]],[[Tl,40,8],[Tl,Dl,Ll]],[[Tl,40,Ol],[Tl,Dl,Fl]],[[Tl,Dl,Fl]],[[Tl,93,Ll],[Tl,39,14],[Tl,34,15]],[[Tl,Jl,Fl],...fi],[[Tl,ci,Fl],...fi],[[Tl,ci,Fl],[Ul,Wl,1],[Tl,Zl,Il,"global"],[Tl,ui,13],...fi],[[Tl,ui,Ol],[Tl,59,Fl],...fi],[[Tl,59,Fl],[Tl,ui,9],...fi],[[Tl,ci,Fl],[Tl,ui,13],[Tl,40,8],...fi],[[Tl,39,Fl]],[[Tl,34,Fl]],[[42,47,Fl]]],hi=t=>({styleId:yi(t,(t=>t),!1)}),di=/*#__PURE__*/dn(hi),$i=t=>({scopeId:c+yi(t,xl,!0)}),pi=/*#__PURE__*/dn($i),yi=(t,n,e)=>{const{val:r,set:o,iCtx:s,i:l}=Mt();if(r)return r;const i=(u=l,`${se(t.B)}-${u}`);var u;const c=s.k;o(i);const f=t.mn(s.L);if(G(f))throw f.then((t=>s.u.Qt(n(t,i),i,c,e))),f;return s.u.Qt(n(f,i),i,c,e),i},wi=(t,n)=>{vi(gi(t,"on"),n)},bi=(t,n)=>{vi(gi(t,"document:on"),n)},mi=(t,n)=>{vi(gi(t,"window:on"),n)},gi=(t,n)=>{const e=t=>{let e=n;return t===Ft&&(e+="-"),function(t,n){return n+(t=t.charAt(0).toUpperCase()+t.substring(1))+_t}(t,e)};return Array.isArray(t)?t.map(e):e(t)},vi=(t,n)=>{const{isAdded:e,addEvent:r}=Si();e||n&&(Array.isArray(t)?t.forEach((t=>r(t,n))):r(t,n))},Si=()=>{const t=vt(),n=t.k;let e=t.u.getHostProp(n,_);null===e&&(e={},t.u.setHostProp(n,_,e));let r=t.u.getHostProp(n,F);null===r&&(r=0),t.u.setHostProp(n,F,r+1);let o=t.u.getHostProp(n,L);for(null===o&&(o=[],t.u.setHostProp(n,L,o));o.length<=r;)o.push(!1);return{isAdded:o[r],addEvent:(t,n)=>{o[r]=!0;let s=e[t];s||(e[t]=s=[]),s.push(n)}}},ki=t=>xi((()=>{const n=st(t)&&!yl(t)?kt(void 0,t):t;return Nn(n)})),xi=t=>{const{val:n,set:e}=Mt();return null!=n?n:e(t=st(t)&&!yl(t)?t():t)},ji=(t,n)=>{const{val:e,set:r}=Mt();if(e)return e;const o=new n(null,t);return r(o),Mr(t),o},Ri=t=>ji(t,$n),qi=dn(Ri),Ai=t=>ji(t,pn),Pi=dn(Ai),Oi=(t,n)=>{const{val:e,set:r,i:o,iCtx:s}=Mt(),l=n?.strategy??"intersection-observer";if(e)return;const i=new Ne(1,o,s.k,t,void 0,null);r(i),Ni(i,l),t.mn(s.L),s.u.q(32,i)},Ni=(t,n)=>{"intersection-observer"===n?wi("qvisible",Ii(t)):"document-ready"===n?bi("qinit",Ii(t)):"document-idle"===n&&bi("qidle",Ii(t))},Ii=t=>rl(null,"_task",Ce,null,null,[t]),Ci=(t,n)=>yr(fl(t),n),Ei=/*#__PURE__*/dn(Ae),Mi=/*#__PURE__*/dn(Oi),_i=t=>ji(t,An),Fi=dn(_i),Li=()=>{const t=gl({error:void 0});return Jt(Yt,t),t},Ti=t=>{import.meta;const n=import.meta.env.BASE_URL||"/",e={path:"qwik-prefetch-service-worker.js",...t};e.path=t?.path?.startsWith?.("/")?t.path:n+e.path;let r=Wi.replace("'_URL_'",JSON.stringify(e.path));r=r.replaceAll(/\s\s+/gm,"");const o={dangerouslySetInnerHTML:["("+r+")(",["navigator.serviceWorker"].join(","),");"].join(""),nonce:e.nonce};return Ee("script",null,o,null,0,"prefetch-service-worker")},Wi=/*#__PURE__*/(t=>{"getRegistrations"in t&&t.getRegistrations().then((t=>{t.forEach((t=>{t.active&&t.active.scriptURL.endsWith("_URL_")&&t.unregister().catch(console.error)}))}))}).toString(),Di=()=>null;export{cl as $,He as Fragment,nl as NoSerializeSymbol,Di as PrefetchGraph,Ti as PrefetchServiceWorker,Qe as RenderOnce,wr as Resource,Jn as SSRComment,Hn as SSRRaw,Yn as SSRStream,Gn as SSRStreamBlock,el as SerializerSymbol,Bn as SkipRender,Qn as Slot,fn as _CONST_PROPS,Er as _DomContainer,ft as _EFFECT_BACK_REF,Kt as _EMPTY_ARRAY,hn as _IMMUTABLE,Pr as _SharedContainer,Wn as _SubscriptionData,an as _VAR_PROPS,Cs as _deserialize,Vs as _dumpState,Un as _fnSignal,Nt as _getContextElement,It as _getContextEvent,Or as _getDomContainer,Ir as _getQContainerElement,Be as _isJSXNode,Dn as _isStringifiable,Ct as _jsxBranch,_e as _jsxC,Le as _jsxQ,Fe as _jsxS,Ee as _jsxSorted,Me as _jsxSplit,en as _noopQrl,rn as _noopQrlDEV,Fs as _preprocessState,dl as _qrlSync,ln as _regSymbol,Vn as _restProps,cn as _run,Is as _serialize,Ce as _task,Hs as _verifySerializable,os as _vnode_toString,Et as _waitUntilRendered,ge as _walkJSX,tl as _weakSerialize,Fn as _wrapProp,Tn as _wrapSignal,Ln as _wrapStore,wl as component$,$l as componentQrl,In as createComputed$,Pn as createComputedQrl,Ht as createContextId,De as createElement,Cn as createSerializer$,On as createSerializerQrl,Nn as createSignal,bl as event$,al as eventQrl,Or as getDomContainer,it as getLocale,B as getPlatform,De as h,dn as implicit$FirstArg,nn as inlinedQrl,sn as inlinedQrlDEV,e as isBrowser,r as isDev,n as isServer,_r as isSignal,Te as jsx,Je as jsxDEV,Te as jsxs,Zs as noSerialize,tn as qrl,on as qrlDEV,ml as render,Q as setPlatform,hl as sync$,qt as untrack,bn as unwrapStore,Fi as useAsyncComputed$,_i as useAsyncComputedQrl,qi as useComputed$,Ri as useComputedQrl,xi as useConstant,Gt as useContext,Jt as useContextProvider,Li as useErrorBoundary,vl as useId,un as useLexicalScope,wi as useOn,bi as useOnDocument,mi as useOnWindow,Ci as useResource$,yr as useResourceQrl,Pi as useSerializer$,Ai as useSerializerQrl,Sl as useServerData,ki as useSignal,gl as useStore,di as useStyles$,hi as useStylesQrl,pi as useStylesScoped$,$i as useStylesScopedQrl,Ei as useTask$,Ae as useTaskQrl,Mi as useVisibleTask$,Oi as useVisibleTaskQrl,Xt as version,ut as withLocale};
|
|
1
|
+
import{p as t}from"@qwik.dev/core/preloader";const n=!1,e=!0,r=!1,o="2.0.0-beta.23-dev+03de42d",i=(t,n,...e)=>{const r=n instanceof Error?n:new Error(n);return console.error("%cQWIK ERROR","",r.message,...e,r.stack),t&&setTimeout(()=>{throw r},0),r},s=t=>{const n=Object.getPrototypeOf(t);return n===Object.prototype||n===Array.prototype||null===n},l=t=>"object"==typeof t&&null!==t,c=t=>Array.isArray(t),u=t=>"string"==typeof t,f=t=>"function"==typeof t,a=(t,n=[])=>{const e=(t=>`Code(Q${t}) https://github.com/QwikDev/qwik/blob/main/packages/qwik/src/core/error/error.ts#L${8+t}`)(t,...n);return((t,...n)=>i(false,t,...n))(e,...n)},h="<sync>",d=t=>"function"==typeof t&&"function"==typeof t.getSymbol,p="q:renderFn",$="⚡️",y="q:slot",m="q:s",w="q:style",b="style[q\\:style]",v=b+",style[q\\:sstyle]",g="q:sstyle",S="q:ctx",k="q:brefs",x=(t,n)=>t["qFuncs_"+n]||[],q="q:base",R="q:container-island",A="/"+R,j="q:ignore",N="/"+j,C="q:container",P="/"+C,I="q:template",O="http://www.w3.org/1999/xhtml",_="http://www.w3.org/2000/svg",E="http://www.w3.org/1998/Math/MathML",M="qRender",T="q:key",F="q:props",L="q:seq",D="q:seqIdx",W="q:p",U="q:ps",V=":on",z=":onIdx",Q=":onFlags",B="qkssr-f",H=":",J="dangerouslySetInnerHTML",G="__scopedStyleIdPrefix__",Y=()=>({isServer:n,importSymbol(t,n,e){if(!n)throw a(14,[e]);if(!t)throw a(13,[n,e]);const r=X(t.ownerDocument,t,n).toString(),o=new URL(r);return o.hash="",import(o.href).then(t=>t[e])},raf:t=>new Promise(n=>{requestAnimationFrame(()=>{n(t())})}),chunkForSymbol:(t,n)=>[t,n??"_"]}),X=(t,n,e)=>{const r=t.baseURI,o=new URL(n.getAttribute(q)??r,r);return new URL(e,o)};let K=/*#__PURE__ */Y();const Z=t=>K=t,tt=()=>K,nt=t=>1===t.nodeType,et=100,rt=t=>!!t&&"object"==typeof t&&"function"==typeof t.then,ot=(t,n,e)=>{try{const r=t();return rt(r)?r.then(n,e):n(r)}catch(t){return e(t)}},it=(t,n)=>rt(t)?t.then(n):n(t),st=t=>{throw t};function lt(t,n=st){let e,r=!1;try{e=t(),r=!0}catch(t){e=t}if(!rt(e))return r?e:n(e);let o=et;const i=async e=>{for(;rt(e);)try{return await e,await t()}catch(t){if(!rt(t)){e=t;break}if(! --o){e=new Error("Exceeded max retry count in retryOnPromise");break}e=t}return n(e)};return r?e.catch(i):i(e)}const ct="q:type",ut={V:"Virtual",F:"Fragment",S:"Signal",A:"Awaited",C:"Component",I:"InlineComponent",P:"Projection"},ft=124,at=t=>"foreignObject"===t,ht=t=>"svg"===t||at(t),dt=t=>"math"===t;function pt(t,n,e,r=!1){const o=t.ownerDocument.createElementNS(e,n);for(const n of t.attributes)n.name!==H&&o.setAttribute(n.name,n.value);if(r)for(const n of t.childNodes){const t=n.nodeType;3===t?o.appendChild(n.cloneNode()):1===t&&o.appendChild(pt(n,n.localName,e,r))}return o}const $t={elementNamespace:O,elementNamespaceFlag:0};function yt(t,n){const e=!t||!(!Xo(t)||(r=t,1536&r.flags));var r;const o=!e&&at(Xo(t));let i=O,s=0;const l="string"==typeof n||vo(n);return l&&function(t){return"string"==typeof t?ht(t):!!vo(t)&&(ht(Xo(t))||!!(512&t.flags))}(n)?(i=_,s=512):l&&function(t){return"string"==typeof t?dt(t):!!vo(t)&&(dt(Xo(t))||!!(1024&t.flags))}(n)?(i=E,s=1024):!t||o||e||(i=512&t.flags?_:1024&t.flags?E:O,s=1536&t.flags),$t.elementNamespace=i,$t.elementNamespaceFlag=s,$t}const mt=t=>113===t.charCodeAt(0)&&45===t.charCodeAt(1)&&58===t.charCodeAt(3);function wt(t){if(t.endsWith("$")){const[n,e]=function(t){let n,e=-1;return t.startsWith("on")?(n="q-e:",e=2):t.startsWith("window:on")?(n="q-w:",e=9):t.startsWith("document:on")&&(n="q-d:",e=11),[n,e]}(t);if(-1!==e){const r=t.slice(e,-1);return"DOMContentLoaded"===r?n+"-d-o-m-content-loaded":function(t,n){return n+vt(t)}("-"===r.charAt(0)?r.slice(1):r.toLowerCase(),n)}}return null}function bt(t){return t.startsWith("preventdefault:")}const vt=t=>t.replace(/([A-Z-])/g,t=>"-"+t.toLowerCase()),gt=Symbol("backRef");class St{[gt]=void 0}class kt{flags;parent;previousSibling;nextSibling;props;[gt]=void 0;slotParent=null;dirty=0;dirtyChildren=null;nextDirtyChildIndex=0;constructor(t,n,e,r,o){this.flags=t,this.parent=n,this.previousSibling=e,this.nextSibling=r,this.props=o}toString(){return Object.prototype.toString.call(this)}}class xt extends kt{key;firstChild;lastChild;constructor(t,n,e,r,o,i,s,l){super(n,e,r,o,i),this.key=t,this.firstChild=s,this.lastChild=l}}class qt extends xt{node;elementName;constructor(t,n,e,r,o,i,s,l,c,u){super(t,n,e,r,o,i,s,l),this.node=c,this.elementName=u}}class Rt extends kt{node;text;constructor(t,n,e,r,o,i,s){super(t,n,e,r,o),this.node=i,this.text=s}}const At=[],jt=[];function Nt(t,n){const e=Lt(n).priority;let r=At.length;for(let t=0;t<At.length;t++)if(e<Lt(At[t]).priority){r=t;break}At.splice(r,0,n),t.o++,t.l||=new Promise(n=>t.u=n)}function Ct(){for(let t=0;t<At.length;t++){const n=At[t];let e=!1;for(let t=0;t<jt.length;t++)if(ji(n,jt[t])){e=!0;break}if(!e)return n}return null}function Pt(t,n){jt.push(t),Ot(t,n,!0),n.o++}function It(t,n){const e=jt.indexOf(t);if(-1!==e){const t=jt.length-1;e!==t&&(jt[e]=jt[t]),jt.pop(),n.o--}Nt(n,t)}function Ot(t,n,e){e||(t.flags&=-257);const r=At.indexOf(t);-1!==r&&(At.splice(r,1),n.o--)}const _t=new WeakMap,Et=":nodeProps",Mt=":nodeDiff",Tt=":signal";function Ft(t,n,e){n.position=e,e&&lo(e)&&function(t,n,e){Ot(e,t);const r=Lt(e);if(r===n)return;const o=r.afterFlushTasks;if(o&&o.length>0){const t=n.afterFlushTasks;t?t.push(...o):n.afterFlushTasks=o}const i=r.extraPromises;if(i&&i.length>0){const t=n.extraPromises;t?t.push(...i):n.extraPromises=i}const s=r.journal;if(s&&s.length>0){const t=n.journal;t?t.push(...s):n.journal=s}}(t,n,e)}function Lt(t){return _t.get(t)??null}class Dt{h;p=void 0;$=null;m=null;constructor(t,n){this.$=t||Vi()?.$||null,this.h=n}force(){xl(this.$,this,this.p)}get untrackedValue(){return this.h}set untrackedValue(t){this.h=t}get value(){const t=this.untrackedValue,e=Vi();if(!e)return t;null===this.$&&(this.$=e.$);const r=e.k;return r&&(gl(this.p||=new Set,r),Sl(r,this),(import.meta.env.TEST?!hl(this.$):n)&&kl(r,this.$)),t}set value(t){t!==this.h&&(this.h=t,xl(this.$,this,this.p))}valueOf(){}toString(){return this.constructor.name}toJSON(){return{value:this.h}}}const Wt=(t,n,e)=>{const r=Vi();if(r&&(t.$||=r.$||null)){const e=r.k;e&&(gl(t[n]||=new Set,e),Sl(e,t),kl(e,t.$))}return t[e]},Ut=Symbol("CONST"),Vt=Symbol("VAR"),zt=Symbol("OWNER"),Qt=Symbol("PROPS_HANDLER"),Bt=Symbol("IMMUTABLE"),Ht=Symbol("UNINITIALIZED"),Jt=[],Gt={};function Yt(t){return new Proxy({},new Xt(t))}Object.freeze(Jt),Object.freeze(Gt);class Xt{owner;p=void 0;$=null;constructor(t){this.owner=t}get(t,n){if(n===Ut)return this.owner.constProps;if(n===Vt)return this.owner.varProps;if(n===zt)return this.owner;if(n===Qt)return this;let e;if("children"===n)e=this.owner.children;else{if("string"==typeof n&&"string"==typeof this.owner.type){const t=wt(n);t&&(n=t)}e=tn(this.owner,n),n in this.owner.varProps&&Kt(this,n)}return e instanceof Cn&&4&e.q?e.value:e}set(t,n,e){if(n===zt)this.owner=e;else if("children"===n)this.owner.children=e;else if(n===Ut)this.owner.constProps=e;else if(n===Vt)this.owner.varProps=e;else{if("string"==typeof n&&"string"==typeof this.owner.type){const t=wt(n);t&&(n=t)}this.owner.constProps&&n in this.owner.constProps&&delete this.owner.constProps[n],this.owner.varProps===Gt?this.owner.varProps={}:n in this.owner.varProps||(this.owner.toSort=!0),this.owner.varProps[n]!==e&&(this.owner.varProps[n]=e,Zt(this,n))}return!0}deleteProperty(t,n){let e=delete this.owner.varProps[n];return e&&Zt(this,n),this.owner.constProps&&(e=delete this.owner.constProps[n]||e),null!=this.owner.children&&"children"===n&&(this.owner.children=null,e=!0),e}has(t,n){if("children"===n)return null!=this.owner.children;if(n===Ut||n===Vt)return!0;const e=n in this.owner.varProps;if("string"==typeof n&&(e&&Kt(this,n),"string"==typeof this.owner.type)){const t=wt(n);t&&(n=t)}return e||!!this.owner.constProps&&n in this.owner.constProps}getOwnPropertyDescriptor(t,n){return{configurable:!0,enumerable:!0,value:"children"===n?this.owner.children:this.owner.constProps&&n in this.owner.constProps?this.owner.constProps[n]:this.owner.varProps[n]}}ownKeys(){const t=Object.keys(this.owner.varProps);if(null!=this.owner.children&&t.push("children"),this.owner.constProps)for(const n in this.owner.constProps)-1===t.indexOf(n)&&t.push(n);return t}}const Kt=(t,n)=>{const e=Vi();e&&null===t.$&&e.$&&(t.$=e.$);const r=e?.k;r&&Ll(t.owner._proxy,n,t,r)},Zt=(t,n)=>{const e=function(t,n){return t?.get(n)}(t.p,n);return e&&xl(t.$,t,e),!!e},tn=(t,n)=>t.constProps&&n in t.constProps?t.constProps[n]:t.varProps[n],nn=t=>t?Vt in t?"children"in t?{...t[Vt],children:t.children}:t[Vt]:t:null,en=t=>t&&Ut in t?t[Ut]:null,rn=t=>t&&Vt in t,on=Symbol("invalid");class sn{consumer;property;backRef;data;constructor(t,n,e=null,r=null){this.consumer=t,this.property=n,this.backRef=e,this.data=r}}const ln=Symbol("store.target"),cn=Symbol("store.handler"),un=Symbol("store.all");function fn(t,n,e){t[gt]||(t[gt]=new Map);const r=t[gt];let o=r.get(n);return o||(o=new sn(t,n),r.set(n,o)),e&&(o.data=e),o}const an=(t,n)=>(e,r)=>{const o=Gi();return o.k=fn(t,":"),o.$=n||void 0,Qi(o,()=>{if(f(e))return e();if(r)return e[r];if(vl(e))return e.value;if(l(e)&&El(e))return Ll(Pl(e),un,Cl(e),o.k),e;throw a(2)})};class hn extends Dt{R;q;[gt]=void 0;constructor(t,n,e=17){super(t||n.$,on),this.R=n,this.q=e}invalidate(){this.q|=1;const t=Gi();t.$=this.$||void 0;const n=lt(Bi.bind(this,t,this.j));n&&n.catch(t=>{this.$?this.$.handleError(t,null):console.error("Error during computation",t)})}get untrackedValue(){return this.j(),this.h}j(){if(!(1&this.q))return;const t=this.R;bl(t);const n=Vi(),e=n?.k;if(n){const t=fn(this,".");In(this.$,t),n.k=t}try{const e=t.getFn(n)();if(rt(e))throw a(29,[t.dev?t.dev.file:"",t.N]);this.q&=-2,super.value=e}finally{n&&(n.k=e)}}}class dn{O;_=null;M=!1;T=!0;L;D;W;constructor(t){this.O=t}get track(){return this.L||=an(this.O,this.O.$)}get abortSignal(){return(this.W||=new AbortController).signal}cache(){console.error("useResource cache() method does not do anything. Use `useAsync$` instead of `useResource$`, use the `interval` option for polling behavior.")}get previous(){const t=this.O.h;if(t!==on)return t}cleanup(t){"function"==typeof t&&(this.D||=[]).push(t)}}class pn extends hn{U=!1;B=void 0;H=void 0;J=void 0;G=null;Y=[];X=1;K=0;Z=void 0;tt;nt;[gt]=void 0;constructor(t,n,e=17,r){super(t,n,e);const o=r?.interval||0,i=r?.concurrency??1,s=r?.initial,l=r?.timeout,c=r?.eagerCleanup;if(void 0!==s){const t="function"==typeof s?s():s;this.h=t}this.X=i,this.tt=l,c&&(this.q|=32),this.interval=o}get loading(){return Wt(this,"$loadingEffects$","untrackedLoading")}set untrackedLoading(t){t!==this.U&&(this.U=t,xl(this.$,this,this.H))}get untrackedLoading(){return this.j(),import.meta,this.U}get error(){return Wt(this,"$errorEffects$","untrackedError")}set untrackedError(t){t!==this.B&&(this.B=t,xl(this.$,this,this.J))}get untrackedError(){return this.B}get interval(){return this.K}set interval(t){this.et(),this.K=t,this.K>0&&this.p?.size&&this.rt()}async invalidate(){this.q|=1,this.et(),(this.p?.size||this.H?.size||this.J?.size)&&(await!0,this.j())}abort(t){this.G&&this.ot(this.G,t)}it(){32&this.q&&!this.st()&&(import.meta,setTimeout(()=>{this.st()||this.abort()}))}async promise(){for(this.j();this.G?._;)await(this.G?._)}j(){if(!(1&this.q))return;if(this.et(),this.G&&this.ot(this.G),this.Y.length>=(0===this.X?Number.POSITIVE_INFINITY:this.X))return;this.q&=-2;const t=new dn(this);this.G=t,this.Y.push(t),t._=this.lt(t)}async lt(t){const n=()=>t===this.G;this.untrackedLoading=!0;const e=this.R.resolved||await this.R.resolve();try{this.tt&&(this.nt=setTimeout(()=>{t.W?.abort();const e=new Error("timeout");n()&&(this.untrackedError=e,t.T=!1)},this.tt));const r=await lt(e.bind(null,t));if(t._=null,t.T){const n=this.Y.indexOf(t);if(-1!==n)for(let t=0;t<n;t++)this.Y[t].T=!1;this.untrackedError=void 0,this.value=r}}catch(e){t._=null,n()&&(this.untrackedError=e)}n()&&(clearTimeout(this.nt),1&this.q?this.j():(this.untrackedLoading=!1,this.rt()))}async ct(){this.et(),clearTimeout(this.nt),this.G&&await this.ot(this.G),await Promise.all(this.Y.map(t=>t._))}get untrackedValue(){if(this.j(),this.G?._){if(import.meta,this.h===on)throw this.G?._;return this.h}if(this.B)throw this.B;return this.h}et(){void 0!==this.Z&&(clearTimeout(this.Z),this.Z=void 0)}rt(){import.meta,this.K>0&&(this.et(),this.Z=setTimeout(this.invalidate.bind(this),this.K),this.Z?.unref?.())}st(){return!!(this.p?.size||this.H?.size||this.J?.size)}async ot(t,n){if(t.M)return t._;t.M=!0,t.W?.abort(n),t._=Promise.resolve(t._).then(()=>t._=this.ut(t))}async ut(t){const n=t.D;if(n?.length){const t=t=>{const n=this.$?.handleError;n?n(t,null):console.error("Error in async signal cleanup",t)};await Promise.all(n.map(n=>{try{const e=n();if(rt(e))return e.catch(t)}catch(n){t(n)}})),n.length=0}const e=this.Y,r=e.indexOf(t);-1!==r&&e.splice(r,1),this.j()}}const $n=t=>function(n,...e){return t.call(null,kc(n),...e)};class yn extends hn{constructor(t,n){super(t,n,17)}ft=!1;j(){if(!(1&this.q))return;bl(this.R),this.q&=-2;let t=this.R.resolved;"function"==typeof t&&(t=t());const{deserialize:n,initial:e}=t,r=t.update,o=this.h===on?e:this.h,i=Ki(()=>this.ft?r?.(o)||o:n(o),this,".",this.$);this.ft=!0,(this.ft&&"undefined"!==i||i!==this.h)&&(this.h=i,xl(this.$,this,this.p))}}const mn=(t,n)=>new hn(n?.container||null,t,Rl(n?.serializationStrategy||"always")),wn=(t,n)=>new pn(n?.container||null,t,Rl(n?.serializationStrategy||"always"),n),bn=t=>new yn(null,t),vn=t=>new Dt(null,t),gn=/*#__PURE__*/$n(mn),Sn=/*#__PURE__*/$n(wn),kn=$n(bn),xn=t=>t.value,qn=(t,n)=>t[n],Rn=t=>1===t.length?vl(t[0])?t[0].m||=new Cn(null,xn,t,null):El(t[0])?new Cn(null,xn,t,null):t[0].value:new Cn(null,qn,t,null),An=(...t)=>{const n=t[0],e=t.length<2?"value":t[1];if(!l(n))return n[e];if(vl(n))return n instanceof Cn&&4&n.q?n:Rn(t);if(rn(n)){const r=n[Ut],o=n[Vt];if(r&&Object.prototype.hasOwnProperty.call(r,e))return r[e];if(Object.prototype.hasOwnProperty.call(o,e))return jn(o[e],t)}else{const r=Pl(n);if(r)return jn(r[e],t)}return n[e]},jn=(t,n)=>vl(t)?t:Rn(n),Nn=(t,n)=>{const e=An(t,n);return e===Bt?t[n]:e};class Cn extends Dt{ht;dt;$t;q;yt=void 0;[gt]=void 0;constructor(t,n,e,r,o=5){super(t,on),this.ht=e,this.dt=n,this.$t=r,this.q=o}invalidate(){this.q|=1;try{this.j()}catch(t){this.$&&this.yt&&(this.$.setHostProp(this.yt,Tt,this),ao(this.$,this.yt,16))}2&this.q&&(this.q&=-3,xl(this.$,this,this.p))}get untrackedValue(){return this.j(),this.h}j(){if(!(1&this.q))return;const t=Ki(()=>this.dt(...this.ht),this,".",this.$);this.q&=-3,t!==this.h&&(this.q|=2,this.h=t)}wt(){return this.dt===xn&&vl(this.ht[0])?this.ht[0]:this}set value(t){throw a(31)}get value(){return super.value}}function Pn(t,n){bo(n)&&vo(n)&&ni(n);const e=n[gt];if(e){for(const[,n]of e)In(t,n);e.clear()}}function In(t,n){const e=n.backRef;if(e){for(const r of e)if(r instanceof pn)_n(r,n);else if(r instanceof Dt)On(t,r,n);else if(rn(r))En(r[Qt],n);else if(t.bt.has(r)){const e=t.bt.get(r);En(Cl(e),n)}e.clear()}}function On(t,n,e){const r=n.p;r&&r.has(e)&&r.delete(e),n instanceof Cn&&!r?.size&&(n.yt=void 0,Pn(t,n))}function _n(t,n){const e=t.p;e&&e.has(n)&&e.delete(n);const r=t.H;r&&r.has(n)&&r.delete(n);const o=t.J;o&&o.has(n)&&o.delete(n),t.it()}function En(t,n){const e=t?.p;if(e)for(const[t,r]of e.entries())r.has(n)&&(r.delete(n),0===r.size&&e.delete(t))}class Mn{data;constructor(t){this.data=t}}const Tn=(t,n)=>{if("string"==typeof t){const e=ul(n);cc(uc(e,t))}return null};function Fn(t,n){Tn(this,n),lc[0].value="number"===n.type?n.valueAsNumber:n.value}function Ln(t,n){Tn(this,n),lc[0].value=n.checked}function Dn(t,n){Tn(this,n)}const Wn=t=>{for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n))return!1;return!0};class Un{type;children;toSort;key;varProps;constProps;dev;_proxy=null;constructor(t,n,e,r,o,i,s){this.type=t,this.children=r,this.toSort=!!i,this.key=null==o?null:"string"==typeof o?o:""+o,this.varProps=!n||Wn(n)?Gt:n,this.constProps=!e||Wn(e)?null:e}get props(){return this._proxy||=Yt(this)}}const Vn=(t,n,e)=>{let r=t[n];if(!r)return t[n]=e,!0;Array.isArray(r)?r.push(e):r=t[n]=[r,e]},zn=t=>t instanceof Un,Qn="bind:value",Bn="bind:checked",Hn=Object.prototype.hasOwnProperty,Jn=(t,n,e,r,o,i,s)=>new Un(t,n,e,r,i,!1,s),Gn=(t,n,e,r,o,i,s)=>{let l=!1,c=!1,u=!1,f=null,a=null;if("string"==typeof t){if(e){const t=new Set;for(const n in e){const r=wt(n);r&&(c||(e={...e},c=!0),Hn.call(e,r)&&!t.has(r)||(e[r]=e[n]),delete e[n]),t.add(n)}}if(n){const t=new Set;for(const e in n){const r=wt(e);r?(u||(n={...n},u=!0),Hn.call(n,r)&&!t.has(r)||(n[r]=n[e]),delete n[e],l=!0):e===Bn?a=n[e]:e===Qn&&(f=n[e]),t.add(e)}if(a||f)if(u||(n={...n},u=!0),a){delete n[Bn],n.checked=a;const t=yc(null,"_chk",Ln,null,[a]);if(e&&Hn.call(e,"q-e:input")){c||(e={...e},c=!0);const t=e["q-e:input"];delete e["q-e:input"],l=Vn(n,"q-e:input",t)||l}l=Vn(n,"q-e:input",t)||l}else if(f){delete n[Qn],n.value=f;const t=yc(null,"_val",Fn,null,[f]);if(e&&Hn.call(e,"q-e:input")){c||(e={...e},c=!0);const t=e["q-e:input"];delete e["q-e:input"],l=Vn(n,"q-e:input",t)||l}l=Vn(n,"q-e:input",t)||l}}n&&Hn.call(n,"className")&&(u||(n={...n},u=!0),n.class=n.className,n.className=void 0,l=!0),e&&Hn.call(e,"className")&&(c||(e={...e},c=!0),e.class=e.className,e.className=void 0)}if(n)for(const t in n)"children"===t?(u||(n={...n},u=!0),r||=n.children,delete n.children):"key"===t?(u||(n={...n},u=!0),i||=n.key,delete n.key):(e&&t in e||null===n[t])&&(u||(n={...n},u=!0),delete n[t]);return new Un(t,n,e,r,i,l||!0,s)},Yn=(t,n,e,r)=>te(t,n,r),Xn=(t,n,e,r,o)=>te(t,{...e,...n},o),Kn=(t,n,e,r,o,i)=>te(t,{...e,...n,children:r},i),Zn=t=>t.children,te=(t,n,e,r,o)=>Gn(t,n,null,null,0,e,o),ne=te,ee=te;function re(t,n,...e){const r={children:arguments.length>2?e.flat(100):null};let o=null;for(const t in n)"key"==t?o=n[t]:r[t]=n[t];return Gn(t,n,null,r.children,0,o)}const oe=t=>t.children,ie=(t,n)=>new Un(Zn,null,null,t.children,n),se=(t,e,r,o,i)=>{const s=Ji(t.vt,r||e,t);let l;r&&(s.k=fn(r,":"),s.$=t),t.ensureProjectionResolved(e);let c=!1;if(null===o&&(o=t.getHostProp(e,p)),d(o))"children"in(i=i||t.getHostProp(e,F)||Gt)&&delete i.children,l=o.getFn(s);else if(Nc(o)){const t=o;l=()=>Bi(s,t,[i||Gt,null,0])}else{c=!0;const t=o;l=()=>Bi(s,t,[i||Gt])}const u=!import.meta.env.TEST&&n,f=(n=0)=>ot(()=>(c||(t.setHostProp(e,D,null),t.setHostProp(e,z,null)),n>0&&bo(e)&&Pn(t,e),it(l(i),t=>it(s.gt,()=>t))),r=>{if(u&&!c&&4&e.dirty&&(e.dirty&=-5,n<et))return f(n+1);const o=t.getHostProp(e,V);return o?function(t,n){const e=ue(t);let r=t;const o="q-e:qvisible";return it(e,t=>{const e=!t;let i=null;for(const s in n)if(Object.prototype.hasOwnProperty.call(n,s)){let l=t,c=s;if(e){if(s!==o&&!s.startsWith("q-d:")&&!s.startsWith("q-w:"))continue;if(!i){const[t,n]=fe(r);r=n,i=t}l=i}l&&("script"===l.type&&s===o&&(c="q-d:qinit"),le(l,c,n[s]))}return r})}(r,o):r},t=>{if(rt(t)&&n<et)return t.then(()=>f(++n));if(n>=et)throw new Error("Max retry count of component execution reached");throw t});return f()};function le(t,n,e){const r=t.constProps||={},o=r[n];null==o?r[n]=e:Array.isArray(o)?o.push(...e):r[n]=[o,...e],t.varProps[n]&&(Array.isArray(o)?o.push(...r[n]):t.varProps[n]=[o,...e],r[n]=void 0)}const ce=t=>t.value;function ue(t){const n=[t];for(;n.length;){const t=n.shift();if(zn(t)){if("string"==typeof t.type)return t;n.push(t.children)}else if(c(t))n.push(...t);else{if(rt(t))return it(t,t=>ue(t));if(vl(t))return ue(Yi(ce,t))}}return null}function fe(t){if(zn(t)){const n=ae();return t.type===oe||Nc(t.type)?(null==t.children?t.children=n:c(t.children)?t.children.push(n):t.children=[t.children,n],[n,t]):[n,Jn(oe,null,null,[t,n],0,null)]}if("object"!=typeof(n=t)&&"function"!=typeof n||null==n){const n=ae();return[n,Jn(oe,null,null,[t,n],0,null)]}var n;if(c(t)&&t.length>0){const[n,e]=fe(t[0]);return[n,t]}return[null,t]}function ae(){return new Un("script",null,{hidden:""},null,null)}const he=t=>Jn(Zn,null,{[m]:""},t.children,0,t.name??""),de=Symbol("skip render"),pe=()=>null,$e=()=>null,ye=t=>[te($e,{data:"qkssr-pu"}),t.children,te($e,{data:"qkssr-po"})],me=(t,n)=>te(ie,{children:te(we,t)},n),we=()=>null;let be=null,ve=null;function ge(t,n,e,r){if(null!=e){if(r){const r=function(t){switch(t){case"xlink:href":case"xlink:actuate":case"xlink:arcrole":case"xlink:role":case"xlink:show":case"xlink:title":case"xlink:type":return"http://www.w3.org/1999/xlink";case"xml:base":case"xml:lang":case"xml:space":return"http://www.w3.org/XML/1998/namespace";default:return null}}(n);if(r)return void((t,n,e,r)=>{ve||(ve=t.setAttributeNS),ve.call(t,n,e,r)})(t,r,n,e)}o=t,be||(be=o.setAttribute),be.call(o,n,e)}var o}function Se(t){let n="";const e=t.length;let r=0,o=r;for(;r<e;r++){const e=t.charCodeAt(r);if(60===e)n+=t.substring(o,r)+"<";else if(62===e)n+=t.substring(o,r)+">";else if(38===e)n+=t.substring(o,r)+"&";else if(34===e)n+=t.substring(o,r)+""";else{if(39!==e)continue;n+=t.substring(o,r)+"'"}o=r+1}return 0===o?t:n+t.substring(o)}function ke(t){let n="";for(let e=0;e<t.length;e++)"\\"===t.charAt(e)&&e+1<t.length?(n+=t.charAt(e+1),e++):n+=t.charAt(e);return n}function xe(t){return!t.startsWith("q:")&&!t.startsWith(":")}const qe=(t,n=[],e={})=>{let r=null;const o=t[Ut];if(o)for(const t in o)n.includes(t)||(r||={},r[t]=o[t]);const i=e,s=t[Vt];for(const t in s)n.includes(t)||(i[t]=s[t]);return Yt(new Un(null,i,r,null,null))},Re=t=>$+t;function Ae(t){return"class"===t}const je=t=>{if(t){let n=0;do{t=t.substring(0,n)+Re(t.substring(n))}while(0!==(n=t.indexOf(" ",n)+1))}return t||null},Ne=new Set(["animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexShrink","gridArea","gridRow","gridRowEnd","gridRowStart","gridColumn","gridColumnEnd","gridColumnStart","fontWeight","lineClamp","lineHeight","opacity","order","orphans","scale","tabSize","widows","zIndex","zoom","MozAnimationIterationCount","MozBoxFlex","msFlex","msFlexPositive","WebkitAnimationIterationCount","WebkitBoxFlex","WebkitBoxOrdinalGroup","WebkitColumnCount","WebkitColumns","WebkitFlex","WebkitFlexGrow","WebkitFlexShrink","WebkitLineClamp"]),Ce=(t,n=0)=>{for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return Number(Math.abs(n)).toString(36)},Pe=t=>{if(!t)return"";if(u(t))return t.trim();const n=[];if(c(t))for(const e of t){const t=Pe(e);t&&n.push(t)}else for(const[e,r]of Object.entries(t))r&&n.push(e.trim());return n.join(" ")},Ie=t=>t.replace(/([A-Z])/g,"-$1").toLowerCase();function Oe(t,n,e){if(Ae(t)){const t=Pe(n);n=e?e+(t.length?" "+t:t):t}else"style"===t?n=(t=>{if(null==t)return"";if("object"==typeof t){if(c(t))throw a(0,[t,"style"]);{const n=[];for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const r=t[e];null!=r&&"function"!=typeof r&&(e.startsWith("--")?n.push(e+":"+r):n.push(Ie(e)+":"+_e(e,r)))}return n.join(";")}}return String(t)})(n):function(t){return t.startsWith("aria-")||["spellcheck","draggable","contenteditable"].includes(t)}(t)||"number"==typeof n?n=(t=>null!=t?String(t):null)(n):!1===n||null==n?n=null:!0===n&&bt(t)&&(n="");return n}const _e=(t,n)=>"number"!=typeof n||0===n||Ne.has(t)?n:n+"px";class Ee{target;constructor(t){this.target=t}}class Me{target;constructor(t){this.target=t}}class Te{target;text;operationType=16;constructor(t,n){this.target=t,this.text=n}}class Fe{target;parent;beforeTarget;constructor(t,n,e){this.target=t,this.parent=n,this.beforeTarget=e}}class Le{target;attrName;attrValue;scopedStyleIdPrefix;isSvg;constructor(t,n,e,r,o){this.target=t,this.attrName=n,this.attrValue=e,this.scopedStyleIdPrefix=r,this.isSvg=o}}const De=t=>new Ee(t),We=(t,n)=>new Te(t,n),Ue=(t,n,e)=>new Fe(t,n,e),Ve=(t,n,e,r=null,o=!1)=>new Le(t,n,e,r,o),ze=t=>{if(t.ct){try{t.ct()}catch(t){i(!1,t)}t.ct=null}};function Qe(t,n,e,r=Hi(n,e)){const o=r.$,i=r.yt;Co(o,i);let s=t;if(64&i.flags){let r;128&i.flags||(r=!0,i.flags|=128);const l=r?o.St:null,c=Ro(i,W,l);if(null!==c)s=()=>t(n,e,c);else{const r=Ro(i,U,l);null!==r&&(s=()=>t(n,e,...r))}}return lt(()=>{if(!(32&i.flags))return Bi(r,s,[n,e])},t=>o.handleError(t,i))}function Be(t,n){const e=Hi(t,n);return"string"==typeof this&&cc(uc(e.$,this)),Qe(lc[0],t,n,e)}const He=(t,n,e)=>{let r=e>>1,o=t.length-2>>1;for(;r<=o;){const e=r+(o-r>>1),i=t[e<<1];if(i===n)return e<<1;i<n?r=e+1:o=e-1}return~(r<<1)},Je=(t,n,e,r,o=!1)=>{const i=He(t,n,r);i>=0?null!=e||o?t[i+1]=e:t.splice(i,2):(null!=e||o)&&t.splice(-1^i,0,n,e)},Ge=(t,n,e)=>{const r=He(t,n,e);return r>=0?t[r+1]:null},Ye=(t,n,e)=>He(t,n,e)>=0;function Xe(t){return t?t.nextSibling:null}const Ke=Object.prototype.hasOwnProperty;function Ze(t,n,e,r,o,i){import.meta.env.TEST&&o&&Ao(n,G,o),Ao(n,e,i),ho(t,Ve(n.node,e,r,o,!!(512&n.flags)))}const tr=(t,n,e,r,o,i)=>{const s={container:t,journal:n,cursor:o,scopedStyleIdPrefix:i,stack:[],asyncQueue:[],asyncAttributePromises:[],vParent:null,vCurrent:null,vNewNode:null,vSiblings:null,vSiblingsArray:null,vSideBuffer:null,jsxChildren:null,jsxValue:null,jsxIdx:0,jsxCount:0,shouldAdvance:!0,isCreationMode:!1,subscriptionData:{const:new Mn({kt:i,xt:!0}),var:new Mn({kt:i,xt:!1})}};nr(s,e,r);const l=ar(s);if(rt(l))return l.finally(()=>{hr(s)});hr(s)};function nr(t,n,e){if(t.vParent=e,t.vNewNode=null,t.vCurrent=ti(e),sr(t,n,!0),!(32&t.vParent.flags))for(;t.stack.length;){for(;t.jsxIdx<t.jsxCount;){if("string"==typeof t.jsxValue)Ar(t,t.jsxValue);else if("number"==typeof t.jsxValue)Ar(t,String(t.jsxValue));else if(t.jsxValue&&"object"==typeof t.jsxValue)if(zn(t.jsxValue)){const n=t.jsxValue.type;"string"==typeof n?($r(t),wr(t,t.jsxValue,n),t.jsxValue.constProps&&Ke.call(t.jsxValue.constProps,J)||Ke.call(t.jsxValue.varProps,J)?dr(t,!1):or(t,t.jsxValue.children,!0)):"function"==typeof n&&(n===oe?($r(t),kr(t,"F",t.jsxValue.key),or(t,t.jsxValue.children,!0)):n===he?($r(t),ur(t)||or(t,t.jsxValue.children,!0)):n===Cr?(cr(t),or(t,t.jsxValue.children,!0,!1)):n===$e||n===pe?pr(t):($r(t),xr(t,n)))}else if(Array.isArray(t.jsxValue))or(t,t.jsxValue,!1);else if(vl(t.jsxValue)){kr(t,"S",null);const n=t.jsxValue instanceof Cn?t.jsxValue.wt():t.jsxValue,e=t.vCurrent?.[gt]?.get(".")?.backRef;let r=e?.has(n);if(e&&n instanceof Cn&&(r=Tr(e,n)),!r){const e=t.vNewNode||t.vCurrent;or(t,er(t,()=>Zi(n,e,".",t.container)),!0)}}else rt(t.jsxValue)&&(kr(t,"A",null),t.asyncQueue.push(t.jsxValue,t.vNewNode||t.vCurrent));else t.jsxValue===de||Ar(t,"");rr(t)}pr(t),fr(t),ir(t)}}function er(t,n){try{return n()}catch(e){if(rt(e)){const r=e.then(()=>lt(n));return t.asyncQueue.push(r,t.vNewNode||t.vCurrent),null}throw e}}function rr(t){if(t.shouldAdvance){if(t.jsxIdx++,t.jsxIdx<t.jsxCount)t.jsxValue=t.jsxChildren[t.jsxIdx];else if(t.stack.length>0&&!1===t.stack[t.stack.length-1])return ir(t);null!==t.vNewNode?t.vNewNode=null:t.vCurrent=Xe(t.vCurrent)}else t.shouldAdvance=!0}function or(t,n,e,r=!0){if(r&&(null==n||e&&c(n)&&0===n.length))dr(t);else{if(sr(t,n,e),e){const n=t.isCreationMode||!!t.vNewNode||!ti(t.vCurrent);t.isCreationMode=n,t.vSideBuffer=null,t.vSiblings=null,t.vSiblingsArray=null,t.vParent=t.vNewNode||t.vCurrent,t.vCurrent=ti(t.vParent),t.vNewNode=null}t.shouldAdvance=!1}}function ir(t){t.stack.pop()&&(t.isCreationMode=t.stack.pop(),t.vSideBuffer=t.stack.pop(),t.vSiblings=t.stack.pop(),t.vSiblingsArray=t.stack.pop(),t.vNewNode=t.stack.pop(),t.vCurrent=t.stack.pop(),t.vParent=t.stack.pop()),t.jsxValue=t.stack.pop(),t.jsxCount=t.stack.pop(),t.jsxIdx=t.stack.pop(),t.jsxChildren=t.stack.pop(),rr(t)}function sr(t,n,e){t.stack.push(t.jsxChildren,t.jsxIdx,t.jsxCount,t.jsxValue),e&&t.stack.push(t.vParent,t.vCurrent,t.vNewNode,t.vSiblingsArray,t.vSiblings,t.vSideBuffer,t.isCreationMode),t.stack.push(e),Array.isArray(n)?(t.jsxIdx=0,t.jsxCount=n.length,t.jsxChildren=n,t.jsxValue=t.jsxCount>0?n[0]:null):void 0===n?(t.jsxIdx=0,t.jsxValue=null,t.jsxChildren=null,t.jsxCount=0):(t.jsxIdx=0,t.jsxValue=n,t.jsxChildren=null,t.jsxCount=1)}function lr(t){return t.vNewNode?t.vCurrent:Xe(t.vCurrent)}function cr(t){const n=t.jsxValue.key;t.vCurrent=Ro(t.vParent,n,n=>Mo(t.container.rootVNode,n)),t.vCurrent=t.vCurrent&&32&t.vCurrent.flags?null:t.vCurrent,null==t.vCurrent&&(t.vNewNode=wo(),Ao(t.vNewNode,y,n),t.vNewNode.slotParent=t.vParent,Ao(t.vParent,n,t.vNewNode))}function ur(t){const n=Fi(t.vParent),e=function(t,n){const e=t.jsxValue,r=e.constProps;if(r&&"object"==typeof r&&Ke.call(r,"name")){const e=r.name;if(n&&e instanceof Cn)return Zi(e,n,":",t.container)}return tn(e,"name")||""}(t,n),r=n?Ro(n,e,null):null;if(null==r)return t.vNewNode=wo(),Ao(t.vNewNode,y,e),n&&Ao(n,e,t.vNewNode),Bo(t.journal,t.vParent,t.vNewNode,t.vCurrent&&lr(t)),!1;if(r===t.vCurrent);else{const o=r.parent;t.vNewNode=r,Ao(t.vNewNode,y,e),n&&Ao(n,e,t.vNewNode),Bo(t.journal,t.vParent,t.vNewNode,t.vCurrent&&lr(t)),o&&vo(o)&&!o.firstChild&&Xo(o)===I&&Go(t.journal,o.parent,o,!0)}return!0}function fr(t){if(t.vSideBuffer){for(const n of t.vSideBuffer.values())32&n.flags||(Or(t.container,t.journal,n,t.cursor),Go(t.journal,t.vParent,n,!0));t.vSideBuffer.clear(),t.vSideBuffer=null}t.vCurrent=null}function ar(t){for(;t.asyncQueue.length;){const n=t.asyncQueue.shift(),e=t.asyncQueue.shift();if(rt(n))return n.then(n=>(nr(t,n,e),ar(t))).catch(n=>(t.container.handleError(n,e),ar(t)));nr(t,n,e)}if(t.asyncAttributePromises.length){const n=t.asyncAttributePromises.splice(0);return Promise.all(n).then(()=>ar(t))}}function hr(t){t.journal=null,t.cursor=null}function dr(t,n=!0){const e=t.vCurrent&&ti(t.vCurrent);if(null!==e){let r=e;for(;r;)Or(t.container,t.journal,r,t.cursor),r=r.nextSibling;Yo(t.journal,t.vCurrent,e,n)}}function pr(t){if(null!==t.vCurrent)for(;t.vCurrent;){const n=t.vCurrent;t.vCurrent=Xe(t.vCurrent),t.vParent===n.parent&&(Or(t.container,t.journal,n,t.cursor),Go(t.journal,t.vParent,n,!0))}}function $r(t){for(;null!==t.vCurrent&&ko(t.vCurrent);){Or(t.container,t.journal,t.vCurrent,t.cursor);const n=t.vCurrent;t.vCurrent=Xe(t.vCurrent),Go(t.journal,t.vParent,n,!0)}}function yr(t,n,e,r){const o=function(t,n){const e=yt(Jo(t.vParent,!0),n),r=import.meta.env.TEST?t.container.document:document,o=0===e.elementNamespaceFlag?r.createElement(n):r.createElementNS(e.elementNamespace,n);return t.vNewNode=$o(o,n),t.vNewNode.flags|=e.elementNamespaceFlag,o}(t,e),{constProps:i}=n;if(i)for(const n in i){let s=i[n];if(mt(n))mr(n,s,o,t.vNewNode,t);else{if("ref"===n){if(vl(s)){s.value=o;continue}if("function"==typeof s){s(o);continue}if(null==s)continue;throw a(15,[r])}if(vl(s)){const e=t.vNewNode,r=s;s=lt(()=>Zi(r,e,n,t.container,t.subscriptionData.const))}if(rt(s)){const e=t.vNewNode,r=s.then(r=>ge(o,n,Oe(n,r,t.scopedStyleIdPrefix),!!(512&e.flags)));t.asyncAttributePromises.push(r);continue}if(n!==J)if("textarea"!==e||"value"!==n)ge(o,n,Oe(n,s,t.scopedStyleIdPrefix),!!(512&t.vNewNode.flags));else{if(s&&"string"!=typeof s)continue;o.value=Se(s||"")}else s&&(o.innerHTML=String(s),o.setAttribute(C,"html"))}}const s=n.key;s&&(t.vNewNode.key=s),t.scopedStyleIdPrefix&&(Ke.call(n.varProps,"class")||n.constProps&&Ke.call(n.constProps,"class")||o.setAttribute("class",t.scopedStyleIdPrefix)),Wo(t.journal,t.vParent,t.vNewNode,t.vCurrent)}function mr(t,n,e,r,o){const i=t.slice(2);if(Array.isArray(n)){const t=n,r=[];for(let n=0;n<t.length;n++){const e=t[n];if(Array.isArray(e))for(let t=0;t<e.length;t++){const n=e[t];n&&r.push(Qe.bind(null,n))}else e&&r.push(Qe.bind(null,e))}(e._qDispatch||={})[i]=r}else n&&((e._qDispatch||={})[i]=[Qe.bind(null,n)]);"e"!==t.charAt(2)&&jo(o.journal,r,t,""),function(t,n){const e=import.meta.env.TEST?t.container.document.defaultView:window;e&&(e._qwikEv||=[]).push(n)}(o,i)}function wr(t,n,e){if(t.isCreationMode)yr(t,n,e,null);else{const r=t.vCurrent&&vo(t.vCurrent),o=r&&e===Xo(t.vCurrent),i=n.key;o&&i===(r&&t.vCurrent.key)?gr(t,e,i):Sr(t,e,i,vr(e,i),t.vParent)&&yr(t,n,e,null)}const r=n.varProps;r&&function(t,n,e,r){t.isCreationMode||Co(t.container,n);const o=n.props;for(const i in e){const s=e[i];if(o&&Ke.call(o,i)){const e=o[i];if(s!==e){if(s instanceof Cn&&e instanceof Cn&&Mr(s,e))continue;br(t,n,i,s,r)}}else null!=s&&br(t,n,i,s,r)}if(o)for(const i in o)Ke.call(e,i)||":"===i.charAt(0)||mt(i)||br(t,n,i,null,r)}(t,t.vNewNode||t.vCurrent,r,null)}const br=(t,n,e,r,o)=>{if(mt(e))return void mr(e,r,n.node,n,t);if(e===W||e===U)return Ao(n,e,r),void(n.flags|=192);const i=r;if("ref"===e){const t=n.node;if(vl(r))return void(r.value=t);if("function"==typeof r)return void r(t);throw a(15,[o])}const s=n[gt]?.get(e);if(vl(r)){const o=r instanceof Cn?r.wt():r;if(s?.backRef?.has(o))return;s&&In(t.container,s);const i=n;r=lt(()=>Zi(o,i,e,t.container,t.subscriptionData.var))}else s&&In(t.container,s);if(rt(r)){const o=n,s=r.then(n=>{Ze(t.journal,o,e,n,t.scopedStyleIdPrefix,i)});return void t.asyncAttributePromises.push(s)}Ze(t.journal,n,e,r,t.scopedStyleIdPrefix,i)};function vr(t,n){return null==n?null:t?t+":"+n:n}function gr(t,n,e){const r=vr(n,e);return!(!r||!t.vSideBuffer?.has(r)||(t.vSideBuffer.delete(r),0))}function Sr(t,n,e,r,o,i){if(t.vNewNode=function(t,n,e){let r=null;if(null===t.vSiblings){const o=t.vCurrent;if(o){const r=vo(o)?Xo(o):null;if((jr(o)||Nr(o,t.container.St))===e&&r===n)return o}t.vSiblings=new Map,t.vSiblingsArray=[];let i=t.vCurrent;for(;i;){const o=vo(i)?Xo(i):null,s=jr(i)||Nr(i,t.container.St);null===r&&s==e&&o==n?r=i:null===s?t.vSiblingsArray.push(o,i):t.vSiblings.set(vr(o,s),i),i=i.nextSibling}}else if(null===e){for(let e=0;e<t.vSiblingsArray.length;e+=2)if(t.vSiblingsArray[e]===n){r=t.vSiblingsArray[e+1],t.vSiblingsArray.splice(e,2);break}}else{const o=vr(n,e),i=t.vSiblings.get(o);i&&(r=i,t.vSiblings.delete(o))}return function(t,n){if(!n){if(t.vCurrent){const n=vo(t.vCurrent)?Xo(t.vCurrent):null,e=jr(t.vCurrent)||Nr(t.vCurrent,t.container.St);if(null!=e){const r=vr(n,e);t.vSideBuffer||=new Map,t.vSideBuffer.set(r,t.vCurrent),t.vSiblings?.delete(r)}}return}let e=t.vCurrent;for(;e&&e!==n;){const n=vo(e)?Xo(e):null,r=jr(e)||Nr(e,t.container.St);if(null!=r){const o=vr(n,r);t.vSideBuffer||=new Map,t.vSideBuffer.set(o,e),t.vSiblings?.delete(o)}e=e.nextSibling}}(t,r),r}(t,n,e),t.vNewNode)return r||Bo(t.journal,o,t.vNewNode,t.vCurrent),t.vCurrent=t.vNewNode,t.vNewNode=null,!1;if(null!=r){const n=t.vSideBuffer?.get(r)||null;if(n){if(t.vSideBuffer.delete(r),i&&t.vCurrent){const n=jr(t.vCurrent)||Nr(t.vCurrent,t.container.St);if(null!=n){const e=vr(vo(t.vCurrent)?Xo(t.vCurrent):null,n);null!=e&&(t.vSideBuffer||=new Map,t.vSideBuffer.set(e,t.vCurrent))}}return n!==t.vCurrent&&Bo(t.journal,o,n,t.vCurrent),t.vCurrent=n,t.vNewNode=null,!1}}return!0}function kr(t,n,e){const r="F"===n,o=jr(t.vCurrent);if(!t.vCurrent||!xo(t.vCurrent)||o!==e||r&&!e)return null===e||t.isCreationMode?(Uo(t.journal,t.vParent,t.vNewNode=wo(),t.vCurrent&&lr(t)),void(t.vNewNode.key=e)):void(Sr(t,null,e,vr(null,e),t.vParent,!0)&&(Uo(t.journal,t.vParent,t.vNewNode=wo(),t.vCurrent&&lr(t)),t.vNewNode.key=e));gr(t,null,o)}function xr(t,n){const e=n[jc];let r=t.vNewNode||t.vCurrent;const o=t.jsxValue;if(e){const n=o.props;let i=!1;const[s]=e,l=s.N,c=Nr(r,t.container.St),u=o.key||l;if(u===(jr(r)||c)?l===c&&o.key?gr(t,null,u):(qr(t,r,s,n),r=t.vNewNode,i=!0):(Sr(t,null,u,u,t.vParent)&&(qr(t,r,s,n),i=!0),r=t.vNewNode||t.vCurrent),r){const e=Ro(r,F,t.container.St);i||(i||=function(t,n,e,r){let o=!1;if(e){const t=Pr(n[Ut],e[Ut],e[Qt],r,!1);o||=t;const i=Pr(n[Vt],e[Vt],e[Qt],r,!0);o||=i,e[zt]=n[zt]}else n&&(Ao(t,F,n),e=n);return o}(r,n,e,t.container)),i&&(Ao(r,p,s),r.flags&=-33,ao(t.container,r,4,t.cursor))}!function(t,n,e){const r=Array.isArray(n)?n:[n],o=t=>new Un(Cr,null,null,[],t),i=[];if(e){const t=e.props;if(t)for(const n of Object.keys(t))if(xe(n)){const t=n;i.push(t),i.push(o(t))}}if(0!==i.length||null!=n){for(let t=0;t<r.length;t++){const n=r[t],e=String(zn(n)&&tn(n,y)||""),s=He(i,e,0);let l;s>=0?l=i[s+1]:i.splice(~s,0,e,l=o(e)),!1===n||l.children.push(n)}for(let t=i.length-2;t>=0;t-=2)i.splice(t,1);or(t,i,!0)}}(t,o.children,r)}else{const e=o.key,i=e===jr(r),s=Nr(r,t.container.St);if(r&&null!=s||null==e?(Rr(t),r=t.vNewNode):i?gr(t,null,e):(Sr(t,null,e,e,t.vParent)&&Rr(t),r=t.vNewNode||t.vCurrent),r){let e=r;for(;e&&(!xo(e)||null===Ro(e,p,null));)e=e.parent;const i=se(t.container,r,e||t.container.rootVNode,n,o.props);t.asyncQueue.push(i,r)}}}function qr(t,n,e,r){n&&Pn(t.container,n),Uo(t.journal,t.vParent,t.vNewNode=wo(),t.vCurrent&&lr(t));const o=t.jsxValue;Ao(t.vNewNode,p,e),Ao(t.vNewNode,F,r),t.vNewNode.key=o.key}function Rr(t){Uo(t.journal,t.vParent,t.vNewNode=wo(),t.vCurrent&&lr(t));const n=t.jsxValue;Ao(t.vNewNode,F,n.props),n.key&&(t.vNewNode.key=n.key)}function Ar(t,n){if(null!==t.vCurrent&&3===Mi(t.vCurrent))return n!==Ko(t.vCurrent)?void Zo(t.journal,t.vCurrent,n):void 0;Wo(t.journal,t.vParent,t.vNewNode=mo((import.meta.env.TEST?t.container.document:document).createTextNode(n),n),t.vCurrent)}function jr(t){return null==t||ko(t)?null:t.key}function Nr(t,n){if(null==t||ko(t))return null;const e=Ro(t,p,n);return e?e.N:null}function Cr(){}function Pr(t,n,e,r,o=!0){if(Ir(t)&&Ir(n))return!1;e.$=r;let i=!1;if(t)for(const r in t)if("children"!==r&&r!==k&&(!n||t[r]!==n[r])){if(!o)return!0;n&&(n[r]=t[r]),Zt(e,r)||(i=!0)}if(n)for(const r in n)"children"===r||r===k||t&&Ke.call(t,r)||!o||(delete n[r],Zt(e,r)||(i=!0));return i}function Ir(t){return!t||Wn(t)}function Or(t,n,e,r=null){let o=e;if(ko(e))return void Er(o);let i=null;for(;;){const s=o.flags;if(3&s){if(Pn(t,o),Er(o),2&s&&null!==Ro(o,p,null)){const e=t.getHostProp(o,L);if(e)for(let n=0;n<e.length;n++){const i=e[n];if(l(i)){const n=ml(i);if(n&&1&i.q){i.q|=16,ao(t,o,64,r);continue}(i instanceof Dt||El(i))&&Pn(t,i),(n||i instanceof pn)&&ze(i)}}const i=o.props;if(i)for(const e of Object.keys(i))if(xe(e)){const o=i[e];if(o){i[e]=null;const s="string"==typeof o?Mo(t.rootVNode,o):o;let l=ti(s);for(;l;)Or(t,n,l,r),l=l.nextSibling;_r(n,s)}}}if(qo(o)){if(o===e){const t=ti(o);if(t)return void Oo(t,()=>{})}}else{const t=ti(o);if(t){o=t;continue}}}else 4&s&&Er(o);if(o===e)return;const c=o.nextSibling;if(c)o=c;else{for(i=o.parent;i;){if(i===e)return;const t=i.nextSibling;if(t){o=t;break}i=i.parent}if(null==i)return}}}function _r(t,n){const e=n.parent;e&&1&e.flags&&Xo(e)===I&&Go(t,e,n,!0)}function Er(t){t.flags|=32}function Mr(t,n){return t===n||n.dt===t.dt&&function(t,n){if(t===n)return!0;if(!t||!n||t.length!==n.length)return!1;for(let e=0;e<t.length;e++)if(t[e]!==n[e])return!1;return!0}(n.ht,t.ht)}function Tr(t,n){if(!(n instanceof Cn))return!1;for(const e of t)if(e instanceof Cn&&Mr(e,n))return!0;return!1}function Fr(t,n,e){t.dirty&=-2;const r=n.getHostProp(t,L);if(!r||0===r.length)return;let o;for(const i of r)if(i instanceof yl){const r=i;if(!(4&r.q))continue;if(1&r.q)(e.afterFlushTasks||=[]).push(r);else{const i=!!(8&r.q),s=$l(r,n,t);rt(s)&&(i?o=o?o.then(()=>s):s:(e.extraPromises||=[]).push(s))}}return o}function Lr(t,n,e,r){t.dirty&=-3;const o=t;let i=function(t){const n=t.props;return n?.[Mt]}(t);if(i)return vl(i)&&(i=i.value),tr(n,e,i,o,r,null)}function Dr(t,n,e,r){t.dirty&=-5;const o=t,i=n.getHostProp(o,p);if(!i)return;const s=n.getHostProp(o,F)||null,l=ot(()=>se(n,o,o,i,s),t=>{const i=n.getHostProp(o,g);return lt(()=>tr(n,e,t,o,r,je(i)))},t=>{n.handleError(t,o)});return rt(l)?l:void 0}function Wr(t,n,e,r,o,i=null){n.push(Ve(t.node,e,r,i,!!(512&t.flags))),o||(t.props&&null==r?delete t.props[e]:(t.props||={})[e]=r)}function Ur(t,n){if(t.dirty&=-9,!(1&t.flags))return;const e=function(t){return(t.props||={})[Et]??null}(t);if(!e||0===e.size)return;const r=t;for(const[t,o]of e.entries()){let e=o.value;vl(e)&&(e=e.value),Wr(r,n,t,e,o.isConst,o.scopedStyleIdPrefix)}!function(t){delete(t.props||={})[Et]}(t)}function Vr(t,n){t.dirty&=-65;const e=n.getHostProp(t,L);if(e&&0!==e.length)for(const t of e)t instanceof yl&&16&t.q&&(t.q&=-17,ze(t))}function zr(t,n){t.dirty&=-17;const e=n.getHostProp(t,Tt);if(!e)return;const r=e.p,o=Gi();return o.$=n,it(lt(()=>Qi.call(e,o,e.j)),()=>{if(2&e.q)return e.q&=-3,xl(n,e,r)})}let Qr=null;const Br=(t,n,e)=>{Qr||(Qr=t.insertBefore),Qr.call(t,n,e)},Hr=(t,n)=>("allowfullscreen"==n||"async"==n||"autofocus"==n||"autoplay"==n||"checked"==n||"controls"==n||"default"==n||"defer"==n||"disabled"==n||"formnovalidate"==n||"inert"==n||"ismap"==n||"itemscope"==n||"loop"==n||"multiple"==n||"muted"==n||"nomodule"==n||"novalidate"==n||"open"==n||"playsinline"==n||"readonly"==n||"required"==n||"reversed"==n||"selected"==n)&&n in t,Jr=t=>"false"!==t&&Boolean(t),Gr=(Yr=no,()=>queueMicrotask(Yr));var Yr;const Xr=(t=>{let n;if("undefined"!=typeof MessageChannel){const e=new MessageChannel;e.port1.onmessage=()=>t(),n=()=>e.port2.postMessage(null)}else n=()=>setTimeout(t);return n})(no);let Kr=!1;function Zr(){Kr||(Kr=!0,Gr())}function to(){Kr||(Kr=!0,Xr())}function no(t={timeBudget:1e3/60}){Kr=!1;let n=null;for(;n=Ct();)eo(n,t)}function eo(t,e){const{timeBudget:r}=e,o=!import.meta.env.TEST&&n,i=performance.now(),s=Lt(t);if(s.promise)return;const l=s.container;if(!t.dirty)return void ro(l,t,s,o);const c=s.journal||=[];let u=null;for(;u=s.position;){if(s.promise)return;if(!(127&u.dirty)){Ft(l,s,so(u,t));continue}if(32&u.flags){64&u.dirty&&Vr(u,l),u.dirty&=-128,Ft(l,s,so(u,t));continue}let n;try{if(1&u.dirty)n=Fr(u,l,s);else if(2&u.dirty)n=Lr(u,l,c,t);else if(4&u.dirty)n=Dr(u,l,c,t);else if(8&u.dirty)Ur(u,c);else if(16&u.dirty)n=zr(u,l);else if(32&u.dirty){const n=u.dirtyChildren;if(n&&0!==n.length){io(n,u),u.nextDirtyChildIndex=0,u=so(n[0],t),Ft(l,s,u);continue}u.dirty&=-33}}catch(t){l.handleError(t,u)}if(n&&rt(n)){s.promise=n,Pt(t,l);const e=u;return void n.catch(t=>{l.handleError(t,e)}).finally(()=>{s.promise=null,It(t,l),Zr()})}if(!o&&!import.meta.env.TEST&&performance.now()-i>=r)return void to()}ro(l,t,s,o)}function ro(t,n,e,r){if(!(127&n.dirty)){if(Ot(n,t),r||function(t,n){const e=Lt(t),r=e.journal;r&&r.length>0&&(function(t){let n=null,e=null,r=null;const o=new Set,i=()=>{if(r){if(1===r.length)Br(n,r[0],e);else{const t=(n.ownerDocument||n).createDocumentFragment();for(let n=0;n<r.length;n++)t.appendChild(r[n]);Br(n,t,e)}r=null,n=null,e=null,o.clear()}};for(let s=0;s<t.length;s++){const l=t[s];if(l instanceof Fe){if(n===l.parent&&e===l.beforeTarget){r||(r=[]),r.push(l.target),o.add(l.target);continue}if(!r){n=l.parent,e=l.beforeTarget,r=[l.target],o.add(l.target);continue}if(n===l.parent){i(),n=l.parent,e=l.beforeTarget,r=[l.target],o.add(l.target);continue}if(o.has(l.target)||e&&l.target===e||n&&l.target===n){i(),n=l.parent,e=l.beforeTarget,r=[l.target],o.add(l.target);continue}Br(l.parent,l.target,l.beforeTarget)}else if(l instanceof Ee)(o.has(l.target)||e&&l.target===e||n&&l.target===n)&&i(),l.target.remove();else{if(l instanceof Me){(o.has(l.target)||e&&l.target===e||n&&l.target===n)&&i(),l.target.textContent="";continue}if(l instanceof Te)l.target.nodeValue=l.text;else if(l instanceof Le){const t=l.target,e=l.attrName,r=l.attrValue,o=null!=r?Oe(e,r,l.scopedStyleIdPrefix):null,s=null==o||!1===o;Hr(t,e)?t[e]=Jr(o):e===J?(n===t&&i(),t.innerHTML=o,t.setAttribute(C,"html")):s?t.removeAttribute(e):"value"===e&&e in t?t.value=o:ge(t,e,o,l.isSvg)}}}i()}(r),e.journal=null),function(t,n){const e=n.afterFlushTasks;if(!e||0===e.length)return void(n.afterFlushTasks=null);let r;for(const n of e){const e=$l(n,t,n.qt);rt(e)&&(r=r?r.then(()=>e):e)}r&&(n.extraPromises||=[]).push(r),n.afterFlushTasks=null}(n,e)}(n,t),e.extraPromises)return void Promise.all(e.extraPromises).then(()=>{oo(t)});oo(t)}}function oo(t){t.Rt()}function io(t,n){let e=0;for(let r=0;r<t.length;r++){const o=t[r];if(o.parent===n){if(e!==r){const n=t[e];t[e]=o,t[r]=n}e++}}}function so(t,n){if(t===n)return 127&n.dirty?n:null;let e=null;if(t.parent&&32&t.parent.dirty?e=t.parent:t.slotParent&&32&t.slotParent.dirty&&(e=t.slotParent),!e)return 127&n.dirty?n:null;const r=e.dirtyChildren;let o=e.nextDirtyChildIndex;const i=r.length;let s=i;for(;s-- >0;){const t=r[o];if(127&t.dirty)return e.nextDirtyChildIndex=(o+1)%i,t;o++,o===i&&(o=0)}return e.dirty&=-33,e.dirtyChildren=null,e.nextDirtyChildIndex=0,so(e,n)}function lo(t){return!!(256&t.flags)}function co(t,n){if(!(1&n.flags))return 8&n.dirty&&function(t,n){n.dirty&=-9;const e=n.getProp(Et);if(e&&0!==e.size)for(const[r,o]of e.entries()){let e=o.value;vl(e)&&(e=e.value);const i=Oe(r,e,o.scopedStyleIdPrefix);t.addBackpatchEntry(n.id,r,i)}}(t,n),16&n.dirty&&zr(n,t),127&n.dirty&&n.toString(),void(n.dirty&=-128);let e=null;if(1&n.dirty){const r=function(t,n){n.dirty&=-2;const e=n.getProp(L);if(!e||0===e.length)return null;let r=null;for(const o of e)if(o instanceof yl){const e=o;if(!(4&e.q))continue;const i=$l(e,t,n);r=r?r.then(()=>i):i}return r}(t,n);rt(r)&&(e=r)}return n.dirty&=-124,e||void 0}const uo=[];function fo(t){for(let n=0;n<uo.length;n++){const e=uo[n],r=uo[n+1]||t;r.dirty|=32,r.dirtyChildren||=[],r.dirtyChildren.push(e)}}function ao(t,n,e,r=null){const o=n.dirty;n.dirty|=e,import.meta;const s=127&e;if((s?127&o:o)||n===r)return;const l=n.parent||n.slotParent;if(r&&s&&l&&!l.dirty)!function(t,n){uo.push(t);let e=t.parent||t.slotParent;for(;e;){const r=127&e.dirty,o=lo(e);if(e===n||r){if(fo(e),o){const n=Lt(e);n.position!==e&&(n.position=t)}return void(uo.length=0)}if(o){const n=Lt(e);n.position!==e&&(n.position=t)}uo.push(e),e=e.parent||e.slotParent}uo.length=0,(()=>{throw i(!1,"Cursor root not found in current path!")})()}(n,r);else if(l&&127&l.dirty){if(s&&(l.dirty|=32),l.dirtyChildren||=[],l.dirtyChildren.push(n),s&&n.dirtyChildren){const t=function(t){for(;t;){if(lo(t))return t;t=t.parent||t.slotParent}return null}(n);if(t){const e=Lt(t);let r=e.position;if(r)for(;r!==t;)if(r=r.parent||r.slotParent,r===n){e.position=n;break}}}}else lo(n)||function(t){uo.push(t);let n=t.parent||t.slotParent;for(;n;){if(lo(n))return fo(n),uo.length=0,!0;uo.push(n),n=n.parent||n.slotParent}return uo.length=0,!1}(n)||function(t,n){_t.set(n,{afterFlushTasks:null,extraPromises:null,journal:null,container:t,position:n,priority:0,promise:null});const e=n;e.flags|=256,Nt(t,e),Zr()}(t,n)}function ho(t,n){t.push(n)}const po=(t,n)=>{let e;for(;t&&!(e=Object.getOwnPropertyDescriptor(t,n)?.get);)t=Object.getPrototypeOf(t);return e||function(){return this[n]}},$o=(t,n,e=null)=>{const r=new qt(e,-2039,null,null,null,null,null,null,t,n);return t.vNode=r,r},yo=t=>{const n=new qt(null,-2047,null,null,null,null,void 0,void 0,t,void 0);return t.vNode=n,n},mo=(t,n)=>new Rt(-2036,null,null,null,null,t,n),wo=()=>new xt(null,-2046,null,null,null,null,null,null),bo=t=>t instanceof kt,vo=t=>!(1&~t.flags),go=t=>!!(5&t.flags),So=t=>!(1&~t.flags)&&void 0!==t.firstChild&&void 0!==t.lastChild,ko=t=>!(4&~t.flags),xo=t=>!(2&~t.flags),qo=t=>!(2&~t.flags)&&null!==Ro(t,y,null),Ro=(t,n,e)=>{if(vo(t)||xo(t)){const r=t.props?.[n]??null;if("string"==typeof r&&e){const o=e(r);return t.props[n]=o,o}return r}return null},Ao=(t,n,e)=>{null==e&&t.props?delete t.props[n]:(t.props||={},t.props[n]=e)},jo=(t,n,e,r,o=null)=>{vo(n)&&(import.meta.env.TEST&&o&&Ao(n,G,o),Ao(n,e,r),ho(t,Ve(n.node,e,r,o,!!(512&n.flags))))},No=t=>{if(t.key)return;const n=ii(t.node,H);n&&(t.key=n)},Co=(t,n)=>{if(1==(15&n.flags)){const e=n;e.flags^=8;const r=e.node,o=r.attributes;let i=!1;for(let n=0;n<o.length;n++){const s=o[n],l=s.name;if(mt(l))Po(s,l,t,r);else if(i);else if(l!==H&&l)if(l.startsWith(C)){const t=s.value;"html"===t?Ao(e,"dangerouslySetInnerHTML",r.innerHTML):"text"===t&&"value"in r&&Ao(e,"value",r.value)}else Ao(e,l,s.value);else{const t=s.value;t&&(e.key=t),i=!0}}null===Ro(e,W,null)&&null===Ro(e,U,null)||(n.flags|=64)}};function Po(t,n,e,r){const o=t.value,i=n.slice(2),s=o.split("|").map(t=>{const n=ys(t);return n.$=e,n});(r._qDispatch||={})[i]=s}function Io(t,n,e){let r=ti(n);for(;r;)ko(r)?(Eo(t,r),e(r,n)):vo(r)?e(r,n):Io(t,r,e),r=r.nextSibling}function Oo(t,n){let e=t;if(ko(t))return;let r=null;for(;;){if(n?.(e,r))return;const o=ti(e);if(o){e=o;continue}if(e===t)return;const i=e.nextSibling;if(i)e=i;else{for(r=e.parent;r;){if(r===t)return;const n=r.nextSibling;if(n){e=n;break}r=r.parent}if(null==r)return}}}const _o=(t,n,e)=>{let r=t;for(;e&&r&&xo(r);){const t=n?r.firstChild:r.lastChild;if(!t)break;if(5&t.flags)return t;r=t}for(;r;){let t=n?r.nextSibling:r.previousSibling;if(t&&5&t.flags)return t;if(!t){let e=r.parent;if(e&&!xo(e))return null;for(;e&&!(t=n?e.nextSibling:e.previousSibling);)if(e=e.parent,e&&!xo(e))return null;if(!t)return null;if(ko(t)&&e&&vo(e))return null}for(;t;){if(r=t,5&r.flags&&Ci(r))return r;t=n?r.firstChild:r.lastChild}}return null},Eo=(t,n)=>{const e=n;if(!(8&e.flags)){const r=Ho(n,!0),o=e.node,i=gi(r);let s=_o(n,!1,!0);const l=_o(n,!0,!0),c=o||(l&&vo(l)?l.node:l?.node)||null;let u=c;for(;s&&ko(s);){if(!(8&s.flags)){const n=i.createTextNode(s.text);ho(t,Ue(n,r,u)),u=n,s.node=n,s.flags|=8}s=_o(s,!1,!0)}for(s=n;s&&ko(s);){const n=_o(s,!0,!0),e=!n||!ko(n);if(!(8&s.flags)){if(e&&o)ho(t,We(o,s.text));else{const n=i.createTextNode(s.text);ho(t,Ue(n,r,c)),s.node=n}s.flags|=8}s=n}}},Mo=(t,n)=>{let e=t;const r=t.node,{qVNodeRefs:o}=r;let i,s=-1;if("string"==typeof n)s=parseInt(n),i=o.get(s);else{i=n;const t=i.vNode;if(t)return t}if(bo(i))e=i;else{let t=i;const n=[i];for(;t&&t!==r&&!t.vNode;)t=t.parentElement,n.push(t);t.vNode&&(e=t.vNode);for(let t=n.length-2;t>=0;t--)e=Lo(e,n[t]);-1!=s&&(i.vNode=e,o.set(s,e))}if("string"==typeof n){const t=n.length;let r=Do(n,t),o=0;for(;r<t;){const t=n.charCodeAt(r);o*=26,t>=97?o+=t-97:(o+=t-65,e=To(e,o),o=0),r++}}return e},To=(t,n)=>{let e=ti(t);for(;e.flags>>>11!==n;)e=e.nextSibling;return e},Fo=[],Lo=(t,n)=>{let e=ti(t);for(;e&&(!(e instanceof qt)||e.node!==n);)if(xo(e)){const t=e.nextSibling,n=ti(e);n?(t&&Fo.push(t),e=n):e=t||(Fo.length?Fo.pop():null)}else{const t=e.nextSibling;e=t||t||Fo.pop()}for(;Fo.length;)Fo.pop();return e},Do=(t,n)=>{let e=0;for(;e<n;){if(!(t.charCodeAt(e)<=57))return e;e++}return n},Wo=(t,n,e,r)=>{const o=vo(n);o&&ni(n);const i=e.parent;if(e===r){if(i)return;r=null}Qo(t,i,n,e);const s=e.node,l=32&n.flags,c=o?n.node:Ho(n,!1);c&&!l&&ho(t,Ue(s,c,Vo(t,n,r)?.node??null)),zo(n,e,r),l&&(e.flags|=32)},Uo=(t,n,e,r)=>{const o=vo(n);o&&ni(n);const i=e.parent;if(e===r){if(i)return;r=null}Qo(t,i,n,e);const s=32&n.flags,l=o?n:Jo(n,!1),c=l?.node,u=Vo(t,n,r),f=u?.node??null;if(qo(e)&&l&&1536&l.flags){const o=Jo(n,!1),i=Vo(t,n,r)?.node??null,{elementNamespace:s,elementNamespaceFlag:l}=yt(o,e);Io(t,e,n=>{if(ko(n))ho(t,Ue(n.node,c,i));else{if((1536&n.flags)!==l){const t=function(t,n,e,r){let o=t,i=null,s=null,l=null;for(;o;){let c=null,u=null;if(vo(o)){c=o.node;const t=Xo(o),i=o.parent,f=null==s?n:i&&Jo(i,!0);if(f){const t=yt(f,Xo(o));e=t.elementNamespace,r=t.elementNamespaceFlag}const a=ti(o);if(u=pt(c,t,e,!a),c.remove(),null==s&&(s=u),l&&l.appendChild(u),o.node=u,o.flags&=-1537,o.flags|=r,a){o=a,l=u;continue}if(ri(c)){const t=fl(c);if(t){const n=ti(t.rootVNode);if(n){o=n,l=u;continue}}}}if(o===t)return s;const f=o.nextSibling;if(f)o=f;else{for(i=o.parent;i;){if(i===t)return s;const n=i.nextSibling;if(n)return o=n,s;i=i.parent}if(null==i)return s}}return s}(n,o,s,l);t&&(n.node=t)}ho(t,Ue(n.node,c,i))}})}else c&&!s&&Io(t,e,n=>{ho(t,Ue(n.node,c,f))});zo(n,e,r),s&&(e.flags|=32)},Vo=(t,n,e)=>{let r=null;return null==e?xo(n)&&(r=_o(n,!0,!1)):r=xo(e)?_o(e,!0,!0):e,r&&((t,n)=>{ko(n)&&Eo(t,n)})(t,r),r},zo=(t,n,e)=>{const r=e?e.previousSibling:t.lastChild;e?e.previousSibling=n:t.lastChild=n,r?r.nextSibling=n:t.firstChild=n,n.previousSibling=r,n.nextSibling=e,n.parent=t},Qo=(t,n,e,r)=>{n&&(r.previousSibling||r.nextSibling||n!==e)&&Go(t,n,r,!1)},Bo=(t,n,e,r)=>{go(e)?Wo(t,n,e,r):Uo(t,n,e,r)},Ho=(t,n)=>(t=Jo(t,n))&&t.node,Jo=(t,n)=>{for(;t&&!vo(t);)t=t.parent||(n?t.slotParent:null);return t},Go=(t,n,e,r)=>{if(ko(e)&&Eo(t,e),r){if(null!==Ro(n,J,null))return;go(e)?ho(t,De(e.node)):Io(t,e,n=>{ho(t,De(n.node))})}const o=e.previousSibling,i=e.nextSibling;o?o.nextSibling=i:n.firstChild=i,i?i.previousSibling=o:n.lastChild=o,e.previousSibling=null,e.nextSibling=null},Yo=(t,n,e,r=!0)=>{Ho(n,!0)&&r&&(go(n)?ho(t,new Me(n.node)):Io(t,n,n=>{ho(t,De(n.node))}));const o=e.previousSibling;o?o.nextSibling=null:n.firstChild=null,n.lastChild=o},Xo=t=>{const n=t;let e=n.elementName;if(void 0===e){const t=n.node,r=bi(t).toLowerCase();e=n.elementName=r,n.flags|=(t=>{switch(mi(t)){case _:return 512;case E:return 1024;default:return 0}})(t)}return e},Ko=t=>{let n=t.text;return void 0===n&&(n=t.text=t.node.nodeValue),n},Zo=(t,n,e)=>{Eo(t,n),n.text=e,ho(t,We(n.node,e))},ti=t=>{if(ko(t))return null;let n=t.firstChild;return void 0===n&&(n=ni(t)),n},ni=t=>{const n=t;let e=n.firstChild;return void 0===e&&(e=n.parent&&ri(n.node)?n.firstChild=n.lastChild=null:(t=>{const n=t.node,e=$i(n),r=gi(n)?.qVNodeData?.get(n);return((t,n,e,r)=>{if(No(t),r){if(r.charCodeAt(0)===ft&&r.charCodeAt(1)===ft){const n=(t=>{const n=t.indexOf("||",2);return{elementVNodeData:t.substring(2,n),virtualVNodeData:t.substring(n+2)}})(r);r=n.virtualVNodeData;const o=xi(t,e,n.elementVNodeData);if(!r)return o}return function(t,n,e,r){let o=0,i=null,s=null,l=null;const c=n=>{n.flags=2047&n.flags|o<<11,o++,s&&(s.nextSibling=n),n.previousSibling=s,n.parent=t,i||(t.firstChild=i=n),s=n};let u=0,f=null,h=null;const d=t=>{const n=Ti(t);return!n||n&&_i(t)};let $=null;if(Ri(n,(m,w,b,v,k)=>{if(Ii(m())){for(;d(r);)if(!(r=fi(r)))throw a(27,[n,m(),k]);f=null,l=null;let t=0;for(;Ii(m());)t*=10,t+=b()-48;for(;t--;){const t=yo(r);No(t),c(t),r=fi(r)}}else if(59===m())Ao(t,g,w());else if(60===m())($||=[]).push(t),Ao(t,p,w());else if(61===m()){h||(h=ul(e));const n=w();h.At(parseInt(n),t)}else if(62===m())Ao(t,F,w());else if(64===m()){let n;v(k+1)===ft?(b(),n=decodeURI(ke(w())),b()):n=w(),t.key=n}else if(91===m())Ao(t,L,w());else if(94===m())Ao(t,D,w());else if(96===m())h||(h=ul(e)),qi(t,w(),h);else if(63===m())h||(h=ul(e)),t.slotParent=Mo(h.rootVNode,w());else if(93===m())Ao(t,S,w());else if(123===m())b(),c(wo()),Ei.push(t,i,s,l,o),o=0,t=s,i=s=null;else if(m()===ft){const n=ke(w()),e=ke(w());Ao(t,n,e)}else if(125===m())b(),t.lastChild=s,o=Ei.pop(),l=Ei.pop(),s=Ei.pop(),i=Ei.pop(),t=Ei.pop();else if(126===m()){const n=ke(w());Ao(t,y,n)}else{for(;Ti(r)&&_i(r);)r=fi(r);const t=r&&3===li(r)?r:null;null===f&&(f=t?t.nodeValue:null,u=0);let n=0;for(;Oi(m());)n+=b()-97,n*=26;n+=b()-65;const e=null===f?"":f.substring(u,u+n);c(l=((t,n,e)=>new Rt(-2044,null,t,null,null,n,e))(l,t,e)),u+=n}}),$){h||(h=ul(e));for(let t=0;t<$.length;t++)h.ensureProjectionResolved($[t]);$=null}return t.lastChild=s,i}(t,r,n,e)}return xi(t,e)})(t,n,e,r)})(n)),e};let ei=null;const ri=t=>(ei||(ei=t.hasAttribute),ei.call(t,C));let oi=null;const ii=(t,n)=>(oi||(oi=t.getAttribute),oi.call(t,n));let si=null;const li=t=>(si||(si=po(t,"nodeType")),si.call(t)),ci=t=>{const n=li(t);return 3===n||1===n};let ui=null;const fi=t=>{for(ui||(ui=po(t,"nextSibling")),pi||(pi=po(t,"firstChild"));t;)if(null!==(t=ui.call(t))){const n=li(t);if(3===n||1===n)break;if(8===n){const n=t.nodeValue;if(n?.startsWith(j))return ai(t,R,ui,pi);if(t.nodeValue?.startsWith(A))return ai(t,N,ui,pi);if(n?.startsWith(C))for(;t&&(t=ui.call(t))&&(8!==li(t)||!t.nodeValue?.startsWith(P)););}}return t};function ai(t,n,e,r){for(;t;){if(t.nodeValue?.startsWith(n))return e.call(t)||null;let o=r.call(t);o||(o=e.call(t)),o||(o=di(t),o&&(o=e.call(o))),t=o}return null}let hi=null;const di=t=>(hi||(hi=po(t,"parentNode")),hi.call(t));let pi=null;const $i=t=>{for(pi||(pi=po(t,"firstChild")),t=t&&pi.call(t);t&&!ci(t);)t=fi(t);return t};let yi=null;const mi=t=>(yi||(yi=po(t,"namespaceURI")),yi.call(t));let wi=null;const bi=t=>(wi||(wi=po(t,"nodeName")),wi.call(t));let vi=null;const gi=t=>(vi||(vi=po(t,"ownerDocument")),vi.call(t)),Si=t=>"STYLE"===t.nodeName&&(t.hasAttribute(g)||t.hasAttribute(w)),ki=t=>t.hasAttribute(H),xi=(t,n,e)=>{let r=null;const o=()=>{for(;Ti(i)&&_i(i);)i=fi(i)};let i=n;o();let s=null;for(;i;){const n=li(i);let e=null;3===n?e=mo(i,i.textContent??void 0):1===n&&(e=yo(i),No(e)),e&&(e.parent=t,s&&(s.nextSibling=e),e.previousSibling=s,s=e),r||(t.firstChild=r=s),i=fi(i),o()}if(t.lastChild=s||null,t.firstChild=r,e){let n=null;Ri(e,(e,r)=>{if(61===e()){n||(n=ul(t.node));const e=r();n.At(parseInt(e),t)}else 96===e()?(n||(n=ul(t.node)),qi(t,r(),n)):r()})}return r};function qi(t,n,e){t[gt]?((t,n)=>{for(const[e,r]of n)t.set(e,r)})(t[gt],e.St(n)):Object.defineProperty(t,gt,{get(){const r=e.St(n);return t[gt]=r,r},set(n){Object.defineProperty(t,gt,{value:n,writable:!0,enumerable:!0,configurable:!0})},enumerable:!0,configurable:!0})}const Ri=(t,n)=>{let e=0,r=0,o=0;const i=n=>n<t.length?t.charCodeAt(n):0,s=()=>0!==o?o:o=i(e),l=()=>(r=s(),o=0,e++,r),c=()=>{l();const n=e;for(;s()<=58&&0!==o||92===o||95===o||o>=65&&o<=90||o>=97&&o<=122;)l();return t.substring(n,e)};for(;0!==s();)n(s,c,l,i,e)},Ai=(t,n)=>{if(3&n.flags){Co(t,n);const e=[],r=n.props;if(r)for(const t in r)t.startsWith(H)||e.push(t);return e}return[]},ji=(t,n)=>{let e=Ni(t);for(;e;){if(e===n)return!0;e=Ni(e)}return!1},Ni=t=>t.parent||t.slotParent,Ci=t=>null===t||xo(t)?null:t.node;function Pi(t=20,n="",e=!1,r=!1,o=!0,i=null){if(this&&!i)try{i=function(t){let n=t;for(;n;){if(vo(n)){const t=al(n.node);return t?fl(t):null}n=n.parent}return null}(this)}catch{}let s=this;if(0===t)return"...";if(null===s)return"null";if(void 0===s)return"undefined";const l=[];do{if(ko(s))l.push(jl(Ko(s)));else if(xo(s)){const e=["["+String(s.flags>>>11)+"]"];s.dirty&&e.push(` dirty:${s.dirty}`),i&&Ai(i,s).forEach(t=>{if(t!==ct&&t!==G){const n=Ro(s,t,null);e.push(" "+t+"="+jl(n))}});const r=(o?"[34m":"")+(ut[Ro(s,ct,null)||"V"]||ut.V)+(o?"[0m":"");l.push("<"+r+e.join("")+">");const c=ti(s);c&&l.push(" "+Pi.call(c,t-1,n+" ",!0,!0,o)),l.push("</"+r+">")}else if(vo(s)){const r=Xo(s),c=[];lo(s)&&c.push(" cursor"),s.dirty&&c.push(` dirty:${s.dirty}`),s.dirtyChildren&&c.push(` dirtyChildren[${s.dirtyChildren.length}]`);const u=i?Ai(i,s):[];for(const t of u){const n=Ro(s,t,null);c.push(" "+t+"="+jl(n))}const f=Ci(s);if(f){const t=gi(f).qVNodeData?.get(f);t&&c.push(" q:vnodeData="+jl(t))}const a=f.attributes;for(let t=0;t<a.length;t++){const n=a[t];-1===u.indexOf(n.name)&&c.push(" "+n.name+(n.value?"="+jl(n.value):""))}if(l.push("<"+r+c.join("")+">"),So(s)||e){const e=ti(s);e&&l.push(" "+Pi.call(e,t-1,n+" ",!0,!0,o))}else l.push(" \x3c!-- not materialized --!>");l.push("</"+r+">")}s=r&&s.nextSibling||null}while(s);return l.join("\n"+n)}const Ii=t=>48<=t&&t<=57,Oi=t=>97<=t&&t<=122;function _i(t){return!ki(t)||Si(t)}const Ei=[],Mi=t=>{const n=t.flags;if(1&n)return 1;if(2&n)return 11;if(4&n)return 3;throw a(26,[n])},Ti=t=>t&&"object"==typeof t&&1===li(t),Fi=t=>{let n=1;for(;n--;){for(;t&&(!xo(t)||null===Ro(t,p,null));){const e=t.slotParent,r=xo(t)&&e;r&&n++,t=r||t.parent}n>0&&(t=t.parent)}return t};let Li,Di;function Wi(t){if(void 0===Li){const n=Vi();if(n&&n.vt)return n.vt;if(void 0!==t)return t;throw new Error("Reading `locale` outside of context.")}return Li}function Ui(t,n){const e=Li;try{return Li=t,n()}finally{Li=e}}const Vi=()=>Di,zi=()=>{const t=Vi();if(!t||t.jt!==M)throw a(10);return t};function Qi(t,n,...e){return Bi.call(this,t,n,e)}function Bi(t,n,e){const r=Di;try{return Di=t,n.apply(this,e)}finally{Di=r}}const Hi=(t,n)=>{const e=ul(n),r=Mo(e.rootVNode,n),o=e.vt;o&&function(t){Li=t}(o);const i=Gi(o,r,t);return i.$=e,i};function Ji(t,n,e){return{yt:n,jt:M,k:void 0,vt:t,$:e,gt:void 0}}function Gi(t,n,e){return{yt:n,jt:e,k:void 0,vt:t||(e&&l(e)&&"locale"in e?e.locale:void 0),$:void 0}}const Yi=(t,...n)=>{if("function"==typeof t){if(!Di)return t(...n);{const e=Di.k;try{return Di.k=void 0,t(...n)}finally{Di.k=e}}}return vl(t)?t.untrackedValue:_l(t)},Xi=/*#__PURE__*/Ji(void 0,void 0,void 0),Ki=(t,n,e,r,o)=>{const i=Xi.k,s=Xi.$;try{return Xi.k=fn(n,e,o),Xi.$=r,Bi(Xi,t)}finally{Xi.k=i,Xi.$=s}},Zi=(t,n,e,r,o)=>(t instanceof Cn&&t.yt!==n&&n&&(t.yt=n),Ki(()=>t.value,n,e,r,o)),ts=()=>Vi()?.yt,ns=()=>{const t=Vi();if(t)return t.jt},es=()=>{const t=Vi();if(t)return t.$},rs=t=>t,os=t=>t.l||Promise.resolve(),is=()=>{const t=zi(),n=t.yt;let e=t.$.getHostProp(n,L);null===e&&(e=[],t.$.setHostProp(n,L,e));let r=t.$.getHostProp(n,D);for(null===r&&(r=0),t.$.setHostProp(n,D,r+1);e.length<=r;)e.push(void 0);return{val:e[r],set:t=>e[r]=t,i:r,iCtx:t}},ss=t=>/*#__PURE__*/Object.freeze({id:vt(t)}),ls=(t,n)=>{const{val:e,set:r,iCtx:o}=is();void 0===e&&(o.$.setContext(o.yt,t,n),r(1))},cs=(t,n)=>{const{val:e,set:r,iCtx:o}=is();if(void 0!==e)return e;const i=o.$.resolveContext(o.yt,t);if("function"==typeof n)return r(Qi(void 0,n,i));if(void 0!==i)return r(i);if(void 0!==n)return r(n);throw a(8,[t.id])},us=t=>{const n=(()=>{const t=Vi();if(!t)throw a(9);return t})(),e=n.yt;if(e)return n.$?.resolveContext(e,t)},fs=/*#__PURE__*/ss("qk-error"),as=[void 0,null,!0,!1,"",Jt,Gt,on,un,Ht,he,oe,NaN,1/0,-1/0,Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER-1,Number.MIN_SAFE_INTEGER],hs=["undefined","null","true","false","''","EMPTY_ARRAY","EMPTY_OBJ","NEEDS_COMPUTATION","STORE_ALL_PROPS","_UNINITIALIZED","Slot","Fragment","NaN","Infinity","-Infinity","MAX_SAFE_INTEGER","MAX_SAFE_INTEGER-1","MIN_SAFE_INTEGER"],ds=["Plain","RootRef","ForwardRef","Constant","Array","Object","URL","Date","Regex","QRL","VNode","RefVNode","BigInt","URLSearchParams","ForwardRefs","Error","Promise","Set","Map","Uint8Array","Task","Component","Signal","WrappedSignal","ComputedSignal","AsyncSignal","SerializerSignal","Store","FormData","JSXNode","PropsProxy","SubscriptionData","EffectSubscription"];function ps(t,n,e){let r=n.Nt,o=n.Ct;const i=tt();if(i){const t=i.chunkForSymbol(r,o);t&&(o=t[1],r=t[0])}var s;if(d(s=n)&&s.Nt==h)o="",r=String(t.Pt(null,0,n.resolved));else{if(o||(o=t.It(n.N)),!o)throw a(14,[n.Nt]);o.startsWith("./")&&(o=o.slice(2))}const l=n.getCaptured();let c=null;if(l&&l.length>0&&(c=l.map(n=>`${t.Ot(n)}`).join(" ")),e)return[o,r,c];let u=`${o}#${r}`;return c&&(u+=`#${c}`),u}function $s(t,n,e){return yc(t,n,null,null,e)}function ys(t){const[n,e,r]=t.split("#");return $s(n,e,r||null)}const ms=new WeakMap,ws=new Map,bs=(t,n,e)=>{switch(n){case 0:case 14:return e;case 1:return t.St(e);case 2:if(!t._t)return Ht;const r=t._t[e];return-1===r||void 0===r?Ht:t.St(r);case 3:return as[e];case 4:return Array(e.length/2);case 5:return{};case 9:{let n;if("string"==typeof e){const[r,o,i]=e.split("#");n=$s(t.St(r),t.St(o),i||null)}else n=$s("",String(e),null);return n.$=t,n}case 20:return new yl(-1,-1,null,null,null,null);case 6:return new URL(e);case 7:return new Date(e);case 8:const o=e.lastIndexOf("/");return new RegExp(e.slice(1,o),e.slice(o+1));case 15:return new Error;case 21:return Ac(null);case 22:return new Dt(t,0);case 23:return new Cn(t,null,null,null);case 24:return new hn(t,null);case 25:return new pn(t,null,void 0,{interval:0});case 26:return new yn(t,null);case 27:{const n=e,r=n[0],o=n[1],i=bs(t,r,o),s=Tl(i,0,t);return el(r)&&ws.set(i,{t:r,v:o}),n[0]=0,n[1]=i,s}case 13:return new URLSearchParams(e);case 28:return new FormData;case 29:return new Un(null,null,null,null,null);case 12:return BigInt(e);case 17:return new Set;case 18:return new Map;case 16:let i,s;const l=new Promise((t,n)=>{i=t,s=n});return ms.set(l,[i,s]),l.catch(()=>{}),l;case 19:const c=e.length,u=3&c;return new Uint8Array(3*(c>>>2)+(u?u-1:0));case 30:return Yt(null);case 10:return vs(t,e);case 11:const f=vs(t,e);if(bo(f))return ni(f),Ci(f);throw a(17,[typeof f]);case 31:return new Mn({});case 32:return new sn(null,null,null,null);default:throw a(18,[n])}};function vs(t,n){return n?t.rootVNode?Mo(t.rootVNode,n):void 0:t.element?.ownerDocument}const gs=(t,n,e)=>{let r=null,o=null;if(f(t))o=t;else{if(!u(t))throw a(7,[t]);r=t}return yc(r,n,null,o,e)},Ss=(t,n,e)=>yc(null,n,t,null,e),ks=(t,n)=>yc(null,t,null,null,n),xs=(t,n,e)=>{const r=ks(t,e);return r.dev=n,r},qs=(t,n,e,r)=>{const o=gs(t,n,r);return o.dev=e,o},Rs=(t,n,e,r)=>{const o=Ss(t,n,r);return o.dev=e,o},As=(t,n)=>(void 0===globalThis.__qwik_reg_symbols&&(globalThis.__qwik_reg_symbols=new Map),globalThis.__qwik_reg_symbols.set(n,t),t);function js(t){return null===t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t}const Ns=(t,n,e)=>new Cn(null,t,n,e||null);class Cs{Et;Mt;Tt;p;Ft;constructor(t,n,e,r,o){this.Et=t,this.Mt=n,this.Tt=e,this.p=r,this.Ft=o}}const Ps=t=>Array.isArray(t)&&t.length>0;function Is(t,n){return n.$t&&"{"===n.$t[0]&&(n.$t=`(${n.$t})`),[t.Pt(n.$t,n.ht.length,n.dt),n.ht]}function Os(t){let n;if(t)for(const[e,r]of t)r.backRef&&(n||=new Map,n.set(e,r));return n}class _s{Lt;constructor(t){this.Lt=t}}let Es=()=>!1;class Ms{Dt;constructor(t){this.Dt=t}}const Ts=(t,n,e,r,o,i,s)=>{if(!s){const t=[];s={write:n=>t.push(n),toString:()=>t.join("")}}const l=new Map,c=new Map,u=[],f=[],h=new Set,p=(t,n)=>{const e=(t=>{const n=[];for(;t.Wt;)n.unshift(t.Ut),t=t.Wt;return n.unshift(t.Ut),n.join(" ")})(t);void 0===n&&(n=f.length),f[n]=new Ms(e),t.Wt=null,t.Ut=n},$=t?n=>n instanceof t:()=>!1;return Es=n?t=>t instanceof n:()=>!1,{async Vt(){return await async function(t){const{zt:n,Qt:e,Bt:r,bt:o,Ot:i,Ht:s,getSeenRef:l,Jt:c}=t;let u=0;const f=[];let h=0;const p=new Set,$=new Map;let y;const m=new Map,w=(t,e,r)=>{n.write("[");let o,i=!1;if(e)o=t.length;else{for(o=t.length-1;o>=0&&void 0===t[o];)o--;o++}for(let e=0;e<o;e++)i?n.write(","):i=!0,r(t[e],e);n.write("]")},b=(t,e,r)=>{if(n.write(`${t},`),"number"==typeof e)n.write(e.toString());else if("string"==typeof e){const t=JSON.stringify(e);let r=-1,o=0;for(;-1!==(r=t.indexOf("</",o));)n.write(t.slice(o,r)),n.write("<\\/"),o=r+2;n.write(0===o?t:t.slice(o))}else w(e,!!r,(t,n)=>{g(t,n)})},v=(n,e,r)=>{let o=l(n);const u=!r&&$.get(n);if(!o){if(r)return!0;if("number"!=typeof u)return c(n,y,e);o=i(n,!0)}o.Wt&&(y?s(o):(s(o,e),n=t.Gt[e])),"number"==typeof u&&(f[u]=o.Ut,$.delete(n));const a=n instanceof Ms?n.Dt:o.Ut;if(!y&&a===e)return o;b(1,a)},g=(n,e)=>{if(rc(n))b(3,0);else switch(typeof n){case"undefined":b(3,0);break;case"boolean":b(3,n?2:3);break;case"number":Number.isNaN(n)?b(3,12):Number.isFinite(n)?n===Number.MAX_SAFE_INTEGER?b(3,15):n===Number.MAX_SAFE_INTEGER-1?b(3,16):n===Number.MIN_SAFE_INTEGER?b(3,17):b(0,n):b(3,n<0?14:13);break;case"string":0===n.length?b(3,4):(n.length<4||v(n,e))&&b(0,n);break;case"bigint":(n<1e4&&n>-1e3||v(n,e))&&b(12,n.toString());break;case"symbol":n===on?b(3,7):n===un?b(3,8):n===Ht&&b(3,9);break;case"function":if(n===he)b(3,10);else if(n===oe)b(3,11);else if(d(n)){if(v(n,e)){const[e,r,o]=ps(t,n,!0);let s;if(""!==e){s=`${i(e)}#${i(r)}${o?"#"+o:""}`;const t=m.get(s);if(t){const n=i(t);return void b(1,n)}m.set(s,n)}else s=Number(r);b(9,s)}}else{if(!Nc(n))throw a(34,[n.toString()]);{const[e]=n[jc];t.Yt.add(e.Nt),b(21,[e])}}break;case"object":if(n===Jt)b(3,5);else if(n===Gt)b(3,6);else if(null===n)b(3,1);else if(n instanceof Ms)b(1,n.Dt);else{const t=v(n,e);if(t){const e=y;y=t,S(n),y=e}}break;default:throw a(20,[typeof n])}},S=n=>{if(rn(n)){const t=n[zt];b(30,[(s=t,new _s(s)),t.varProps,t.constProps,n[Qt].p])}else if(n instanceof Mn)b(31,[n.data.kt,n.data.xt]);else if(n instanceof sn)b(32,[n.consumer,n.property,n.backRef,n.data]);else if(El(n)){const t=Cl(n),e=Pl(n),r=t.q,i=t.p,s=[];for(const t in e){const n=o.get(e[t]);n&&s.push(n)}const l=[e,r,i,...s];for(;void 0===l[l.length-1];)l.pop();b(27,l)}else if(ql(n)){const t=n[sc](n);if(rt(t)){const n=x(t,i,(t,n)=>new Cs(26,t,n,void 0,void 0));b(2,n)}else{const n=y.Ut;y=y.Wt,g(t,n)}}else if(function(t){const n=Object.getPrototypeOf(t);return null==n||n===Object.prototype||n===Array.prototype}(n))if(Array.isArray(n))b(4,n);else{const t=[];for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e)){const r=n[e];rc(r)||t.push(e,r)}b(5,t.length?t:0)}else if(r(n))n.Xt.vnodeData[0]|=16,b(11,n.Xt.id);else if(n instanceof Dt){if(n instanceof yn){const t=function(t,n){return n===on?n:it(t.R.resolved||t.R.resolve(),t=>{let e;return"function"==typeof t&&(t=t()),t.serialize?e=t.serialize(n):"object"==typeof n&&sc in n&&(e=n[sc](n)),void 0===e&&(e=on),e})}(n,n.h);if(rt(t)){const e=x(t,i,(t,e)=>new Cs(26,t,e,n.p,n.R));b(2,e)}else b(26,[n.R,Os(n[gt]),n.p,t]);return}if(n instanceof Cn)b(23,[...Is(t,n),Os(n[gt]),n.q,n.yt,...n.p||[]]);else if(n instanceof hn){let t=n.h;const e=16&n.q,r=8&n.q,o=1&n.q,i=rc(n.h),s=n instanceof pn,l=s&&n.K>0?n.K:void 0,c=s&&1!==n.X?n.X:void 0,u=s&&0!==n.tt?n.tt:void 0,f=!!(s&&32&n.q)||void 0;o||i?t=on:e?t=n.h:r&&(t=on);const a=[n.R,Os(n[gt]),n.p];s&&a.push(n.H,n.J,n.B);let h=!1;t===on&&void 0===l&&void 0===c&&void 0===u||(a.push(t),void 0===t&&(h=!0)),s&&(a.push(l),a.push(c),a.push(u),a.push(f)),b(s?25:24,a,h)}else{const t=n.h,e=void 0===t,r=[t];n.p&&r.push(...n.p),b(22,r,e)}}else if(n instanceof URL)b(6,n.href);else if(n instanceof Date)b(7,Number.isNaN(n.valueOf())?"":n.valueOf());else if(n instanceof RegExp)b(8,n.toString());else if(n instanceof Error){const t=[n.message];t.push(...Object.entries(n).flat()),b(15,t)}else if(e(n)){const e=i(n);t.Kt(n,"q:id",String(e)),b(10,n.id);const r=n.vnodeData;if(r&&(((t,n)=>{for(const e of t)if(Ps(e))for(let t=1;t<e.length;t+=2){const r=e[t];null==r||"string"==typeof r||e[t-1]===F&&0===Object.keys(r).length||n(r)}})(r,t=>i(t)),r[0]|=16),n.children)for(const t of n.children){const n=t.vnodeData;if(n){for(const t of n)if(Ps(t)){const n=t.findIndex(t=>t===k);-1!==n&&i(t[n+1])}n[0]|=16}}}else if("undefined"!=typeof FormData&&n instanceof FormData){const t=[];n.forEach((n,e)=>{t.push(e,"string"==typeof n?n:n.name)}),b(28,t)}else if(n instanceof URLSearchParams)b(13,n.toString());else if(n instanceof Set)b(17,[...n.values()]);else if(n instanceof Map){const t=[];for(const[e,r]of n.entries())t.push(e,r);b(18,t)}else if(zn(n)){const t=[n.type,n.key,n.varProps,n.constProps,n.children,n.toSort||void 0];for(;void 0===t[t.length-1];)t.pop();b(29,t)}else if(n instanceof yl){const t=[n.Ft,n.q,n.Ut,n.qt,n[gt],n.Zt];for(;void 0===t[t.length-1];)t.pop();b(20,t)}else if(rt(n)){const t=x(n,i,(t,n)=>new Cs(16,t,n));b(2,t)}else if(n instanceof Cs)if(26===n.Et)if(n.Ft)b(26,[n.Ft,n.p,n.Tt]);else{if(!n.Mt)throw console.error(n.Tt),a(33);{const t=y.Ut;y=y.Wt,g(n.Tt,t)}}else b(16,[n.Mt,n.Tt]);else if(n instanceof Uint8Array){let t="";for(const e of n)t+=String.fromCharCode(e);const e=btoa(t).replace(/=+$/,"");b(19,e)}else if(n instanceof _s){const t=n.Lt;if(v(t,y.Ut,!0)){let n=$.get(t);void 0===n&&(n=h++,$.set(t,n),f[n]=-1),b(2,n)}}else{if(!bo(n))throw a(20,[typeof n]);b(3,0)}var s};function x(t,n,e){const r=h++;return t.then(o=>{p.delete(t),f[r]=n(e(!0,o))}).catch(o=>{p.delete(t),f[r]=n(e(!1,o))}),p.add(t),r}await(async()=>{n.write("[");const{Gt:e}=t;for(;u<e.length||p.size;){0!==u&&n.write(",");let t=!1;for(;u<e.length;u++)t?n.write(","):t=!0,g(e[u],u);if(p.size)try{await Promise.race(p)}catch{}}if(f.length){let t=f.length-1;for(;t>=0&&-1===f[t];)t--;if(t>=0){n.write(","),n.write("14,");const e=t===f.length-1?f:f.slice(0,t+1);w(e,!0,t=>{n.write(String(t))})}}n.write("]")})()}(this)},Qt:$,Bt:Es,It:e,getSeenRef:t=>l.get(t),Gt:f,Jt:(t,n,e)=>{const r={Ut:e,Wt:n};return l.set(t,r),r},tn:t=>{const n=l.get(t);return n&&(n.Wt?void 0:n.Ut)},Ht:p,Ot:(t,n)=>{let e,r=l.get(t);return r?(r.Wt&&p(r),e=r.Ut):(e=f.length,r={Ut:e},l.set(t,r),f.push(t)),n?r:e},nn:u,Pt:(t,n,e)=>{const r=null==t;r&&(t=e.serialized||e.toString());let o=c.get(t);if(void 0===o)if(o=u.length,c.set(t,o),r)u.push(t);else{let e="(";for(let t=0;t<n;t++)e+=(0==t?"p":",p")+t;u.push(e+=")=>"+t)}return o},zt:s,en:new Set,rn:new Set,Yt:new Set,bt:i,sn:h,ln:new Set,cn:r,Kt:o}};class Fs{un;bt;vt;St;fn;an=0;hn=null;dn=null;l=null;u=null;o=0;constructor(t,n){this.fn=t,this.vt=n,this.un=o,this.bt=new WeakMap,this.St=()=>{throw Error("Not implemented")}}trackSignalValue(t,n,e,r){return Zi(t,n,e,this,r)}serializationCtxFactory(t,n,e,r){return Ts(t,n,e,this.getHostProp.bind(this),this.setHostProp.bind(this),this.bt,r)}Rt(){0===this.o&&(this.u?.(),this.l=null)}}class Ls{pn;$n;constructor(t,n){this.pn=t,this.$n=n}}class Ds{}async function Ws(t,n,e){const r=[n],o=t=>r.push(t);await(async()=>{for(;r.length;){const n=r.pop();if(n instanceof Ls)e.currentStyleScoped=n.pn,e.parentComponentFrame=n.$n;else{if(n===Ds){const t=r.pop();await lt(()=>r.push(t()));continue}if("function"!=typeof n)Us(t,o,n,{styleScoped:e.currentStyleScoped,parentComponentFrame:e.parentComponentFrame});else{if(n===Promise){r.push(await r.pop());continue}await n.apply(t)}}}})()}function Us(t,n,e,r){if(null==e)t.textNode("");else if("boolean"==typeof e)t.textNode("");else if("number"==typeof e)t.textNode(String(e));else if("string"==typeof e)t.textNode(e);else if("object"==typeof e)if(Array.isArray(e))for(let t=e.length-1;t>=0;t--)n(e[t]);else if(vl(e)){Bs(t.serializationCtx,e),t.openFragment(Jt);const r=t.getOrCreateLastNode(),o=e instanceof Cn?e.wt():e;n(t.closeFragment),n(()=>Zi(o,r,".",t)),n(Ds)}else if(rt(e))t.openFragment(Jt),n(t.closeFragment),n(e),n(Promise),n(()=>t.commentNode(B));else if(function(t){return!!t[Symbol.asyncIterator]}(e))n(async()=>{for await(const n of e)await Ws(t,n,{currentStyleScoped:r.styleScoped,parentComponentFrame:r.parentComponentFrame}),t.commentNode(B)});else{const o=e,i=o.type;if("string"==typeof i){!function(t,n){null==tn(t,"class")&&n&&(t.constProps||(t.constProps={}),t.constProps.class="")}(o,r.styleScoped);let e=null;const s=t.openElement(i,o.key,Vs(o.varProps,{serializationCtx:t.serializationCtx,styleScopedId:r.styleScoped,toSort:o.toSort}),Vs(o.constProps,{serializationCtx:t.serializationCtx,styleScopedId:r.styleScoped}),e);s&&t.htmlNode(s),n(t.closeElement),"head"===i?(t.emitQwikLoaderAtTopIfNeeded(),t.emitPreloaderPre(),n(t.additionalHeadNodes)):"body"===i?n(t.additionalBodyNodes):t.isHtml||t._didAddQwikLoader||(t.emitQwikLoaderAtTopIfNeeded(),t.emitPreloaderPre(),t._didAddQwikLoader=!0);const l=o.children;null!=l&&n(l)}else if(f(i))if(i===oe){t.openFragment(null!=o.key?[T,o.key]:Jt),n(t.closeFragment);const e=o.children;null!=e&&n(e)}else if(i===he){const e=r.parentComponentFrame;if(e){const i=[];i.push("q:sparent",e.componentNode.id||""),t.openProjection(i);const s=e.componentNode,l=t.getOrCreateLastNode(),c=function(t,n,e){const r=n.constProps;if(r&&"object"==typeof r&&"name"in r){const n=r.name;if(n instanceof Cn)return Zi(n,t,":",e)}return tn(n,"name")||""}(s,o,t);i.push(y,c),n(new Ls(r.styleScoped,r.parentComponentFrame)),n(t.closeProjection);const u=o.children||null,f=e.consumeChildrenForSlot(l,c)||u;u&&f!==u&&t.addUnclaimedProjection(e,"",u),n(f),n(new Ls(e.projectionScopedStyle,e.projectionComponentFrame))}else t.openFragment(Jt),t.closeFragment()}else if(i===$e)t.commentNode(tn(o,"data")||"");else if(i===me){t.commentNode(B);const e=o.children;let i;i=f(e)?e({async write(n){await Ws(t,n,{currentStyleScoped:r.styleScoped,parentComponentFrame:r.parentComponentFrame}),t.commentNode(B)}}):e,n(i),rt(i)&&n(Promise)}else if(i===pe)t.htmlNode(tn(o,"data"));else if(Nc(i)){t.openComponent([]);const e=t.getOrCreateLastNode(),s=t.getParentComponentFrame();s.distributeChildrenIntoSlots(o.children,r.styleScoped,r.parentComponentFrame);const l=((t,n,e)=>{const r=t.getOrCreateLastNode(),[o]=e[jc],i=n.props;return i&&i.children&&delete i.children,r.setProp(p,o),r.setProp(F,i),null!==n.key&&r.setProp(T,n.key),se(t,r,r,o,i)})(t,o,i);if(n(new Ls(r.styleScoped,r.parentComponentFrame)),n(t.closeComponent),rt(l))n(async()=>{const t=await l,r=je(e.getProp(g));n(t),n(new Ls(r,s))});else{n(l);const t=je(e.getProp(g));n(new Ls(t,s))}}else{t.openFragment([T,o.key]),n(t.closeFragment);const e=t.getComponentFrame(0),r=((t,n,e,r)=>{const o=t.getOrCreateLastNode();return se(t,o,n,e,r.props)})(t,e&&e.componentNode,i,o);n(r),rt(r)&&n(Promise)}}}function Vs(t,n){if(null==t)return null;const e=[],r=(t,r)=>{if(null!=r){if(mt(t)){const o=zs(n.serializationCtx,t,r);return void(o&&e.push(t,o))}if(vl(r))return Bs(n.serializationCtx,r),void(Ae(t)?e.push(t,[r,n.styleScopedId]):e.push(t,r));bt(t)?function(t,n){const e="e"+n.substring(14);e&&t.rn.add(e)}(n.serializationCtx,t):t!==W&&t!==U||(r=n.serializationCtx.Ot(r)),r=Oe(t,r,n.styleScopedId),e.push(t,r)}};if(n.toSort){const n=Object.keys(t).sort();for(const e of n)r(e,t[e])}else for(const n in t)r(n,t[n]);return e}function zs(t,n,e){let r=null;const o=e,i=t=>{r=(null==r?"":r+"|")+t},s=n=>(!n.Nt.startsWith("_")&&n.yn?.length&&(n=yc(null,"_run",Be,null,[n])),ps(t,n));if(Array.isArray(o))for(let e=0;e<=o.length;e++){const r=o[e];if(d(r))i(s(r)),Qs(t,n,r);else if(null!=r){const e=zs(t,n,r);e&&i(e)}}else d(o)&&(r=s(o),Qs(t,n,o));return r}function Qs(t,n,e){const r=[(o=n).charAt(2),o.substring(4)];var o;if(r){const[n,o]=r,i=((t,n)=>t+":"+n)(n,o);t.rn.add(i),t.en.add(e)}}function Bs(t,n){const e=n instanceof Cn?n.wt():n;e instanceof pn&&e.K>0&&(t.Ot(e),t.sn.add(e))}const Hs=()=>lc,Js=async t=>{const[n,e]=lc,r=await n(t);return r&&"object"==typeof r?e.r?Object.assign(e.r,r):e.r=Ml(n.$,r,1):e.r=r,{r:e.r}},Gs=(t,n)=>{const{val:e,set:r,iCtx:o}=is();if(e)return e;const i=yc(null,"_rsc",Js,null,[t,{}]);t.$=o.$;const s=wn(i,{timeout:n?.timeout,container:o.$,concurrency:0});s.j();const l={__brand:"resource",signal:s,get value(){return s.promise().then(()=>s.error?Promise.reject(s.error):s.value.r)},get loading(){return s.loading}};return r(l),l},Ys=({value:t,onResolved:n,onPending:e,onRejected:r})=>{if(rt(t))return t.then(n,r);const o=Xs(t),i=o?t.signal:t;if(e&&i.loading)return e();if(r&&i.error)return r(i.error);const s=o?i.value?.r:i.value;return rt(s)?s.then(n,r):n(s)},Xs=t=>t&&"resource"===t.__brand;let Ks=Promise.resolve();const Zs=(t,n,e,r)=>{if(0!==e)switch(4!==e&&Array.isArray(r)&&(r=tl(t,r)),e){case 4:tl(t,r,n);break;case 5:if(0===r)break;for(let t=0;t<r.length;t+=2)n[r[t]]=r[t+1];break;case 20:const o=n,i=r;o.Ft=i[0],o.q=i[1],o.Ut=i[2],o.qt=i[3],o[gt]=i[4],o.Zt=i[5];break;case 21:n[jc][0]=r[0];break;case 27:{const e=_l(n),o=ws.get(e);o&&(ws.delete(e),Zs(t,e,o.t,o.v));const[,i,s]=r,l=Cl(n);l.q=i,l.p=s;break}case 22:{const t=n,e=r;t.h=e[0],t.p=new Set(e.slice(1));break}case 23:{const e=n,o=r;e.dt=t.getSyncFn(o[0]),e.ht=o[1],e[gt]=o[2],e.h=on,e.q=o[3],e.q|=1,e.yt=o[4],e.p=new Set(o.slice(5)),function(t){if(null!==t.yt&&bo(t.yt)){const n=t.yt,e=t.p;let r=!1;if(e)for(const o of e){const e=o.property;if(u(e)){const o=Ro(n,e,null);if(null!==o){t.h=o,r=!0;break}}}if(!r){const e=ti(n);e&&n.firstChild===n.lastChild&&ko(e)&&(t.h=Ko(e))}}}(e);break}case 25:{const t=n,e=r;t.R=e[0],t[gt]=e[1],t.p=new Set(e[2]),t.H=new Set(e[3]),t.J=new Set(e[4]),t.B=e[5],e.length>6&&(t.h=e[6]),t.h!==on&&(t.q&=-2),t.interval=e[7]??0,t.X=e[8]??1,t.tt=e[9]??0,e[10]&&(t.q|=32);break}case 26:case 24:{const o=n,i=r;o.R=i[0];const s=o.R.resolve(t).catch(()=>{});Ks=Ks.finally(()=>s),o[gt]=i[1],i[2]&&(o.p=new Set(i[2])),i.length>3&&(o.h=i[3]),26!==e&&o.h!==on&&(o.q&=-2);break}case 15:{const t=r;n.message=t[0];for(let e=1;e<t.length;e+=2)n[t[e]]=t[e+1];break}case 28:{const t=n,e=r;for(let n=0;n<e.length;n++)t.append(e[n++],e[n]);break}case 29:{const t=n,[e,o,i,s,l,c]=r;t.type=e,t.key=o,t.varProps=i,t.constProps=s||null,t.children=l,t.toSort=!!c;break}case 17:{const t=n,e=r;for(let n=0;n<e.length;n++)t.add(e[n]);break}case 18:{const t=n,e=r;for(let n=0;n<e.length;n++)t.set(e[n++],e[n]);break}case 16:{const t=n,[e,o]=r,[i,s]=ms.get(t);e?i(o):s(o);break}case 19:const s=n,l=atob(r);let c=0;for(const t of l)s[c++]=t.charCodeAt(0);break;case 30:const f=n,h=r;let d=h[0];d===Ht&&(d=new Un(oe,h[1],h[2],null,null),d._proxy=f),f[zt]=d,f[Qt].p=h[3];break;case 31:{const t=n;t.data.kt=r[0],t.data.xt=r[1];break}case 32:{const t=n,e=r;t.consumer=e[0],t.property=e[1],t.backRef=e[2],t.data=e[3];break}default:throw a(16,[e])}},tl=(t,n,e=Array(n.length/2))=>{for(let r=0;r<n.length;r+=2)e[r/2]=nl(t,n[r],n[r+1]);return e};function nl(t,n,e){if(0===n)return e;const r=bs(t,n,e);return el(n)&&Zs(t,r,n,e),r}const el=t=>t>=15||4===t||5===t,rl=new WeakMap,ol=Symbol("UNWRAP"),il=(t,n)=>{if(!Array.isArray(n)||bo(n)||l(e=n)&&ol in e)return n;var e;let r=rl.get(n);if(!r){const e=Array(n.length/2).fill(void 0);r=new Proxy(e,new sl(t,n)),rl.set(n,r)}return r};class sl{$;mn;wn;constructor(t,n){this.$=t,this.mn=n,this.wn=this.mn.length/2}get(t,n,e){if(n===ol)return t;const r="number"==typeof n?n:"string"==typeof n?parseInt(n,10):NaN;if(Number.isNaN(r)||r<0||r>=this.wn)return Reflect.get(t,n,e);const o=2*r,i=this.mn[o],s=this.mn[o+1];if(0===i)return s;const l=this.$,c=bs(l,i,s);return Reflect.set(t,n,c),this.mn[o]=0,this.mn[o+1]=c,el(i)&&Zs(l,c,i,s),c}has(t,n){return n===ol||Object.prototype.hasOwnProperty.call(t,n)}set(t,n,e,r){if(n===ol)return!1;const o=Reflect.set(t,n,e,r),i="number"==typeof n?n:parseInt(n,10);if(Number.isNaN(i)||i<0||i>=this.mn.length/2)return o;const s=2*i;return this.mn[s]=0,this.mn[s+1]=e,!0}}const ll=t=>33<=t&&t<=46,cl=(t,n,e)=>{let r=0;for(;n<e;){const e=t.charCodeAt(n);if(92===e)n+=2;else{if(0===r&&ll(e))break;123===e?r++:125===e&&r--,n++}}return n};function ul(t){const n=al(t);if(!n)throw a(24);return fl(n)}function fl(t){const n=t;return n.qContainer||=new dl(n)}function al(t){return t.closest("[q\\:container]:not([q\\:container=html]):not([q\\:container=text])")}const hl=t=>t instanceof dl;class dl extends Fs{element;qContainer;qManifestHash;rootVNode;document;bn;bt=new WeakMap;vn;hn;_t=null;vNodeLocate=t=>Mo(this.rootVNode,t);gn;Sn=null;constructor(t){if(super({},t.getAttribute("q:locale")),this.qContainer=t.getAttribute(C),!this.qContainer)throw a(25);this.document=t.ownerDocument,this.element=t,this.dn=t.getAttribute(q),this.hn=t.getAttribute("q:instance"),this.qManifestHash=t.getAttribute("q:manifest-hash"),this.rootVNode=yo(this.element),this.bn=[],this.gn=[];const n=this.element.ownerDocument;n.qVNodeData||function(t){const n="q:container",e="/"+n,r="q:ignore",o="/"+r,i="q:container-island",s="/"+i,l=t.qVNodeData||(t.qVNodeData=new WeakMap),c=t.body,u=c.getAttribute,f=c.hasAttribute,a=((t,n)=>{let e;for(;t&&!(e=Object.getOwnPropertyDescriptor(t,n)?.get);)t=Object.getPrototypeOf(t);return e||function(){return this[n]}})(c,"nodeType"),h=t=>{Array.from(t.querySelectorAll('script[type="qwik/vnode"]')).forEach(t=>{t.setAttribute("type","x-qwik/vnode");const n=t.closest("[q\\:container]");n.qVnodeData=t.textContent,n.qVNodeRefs=new Map}),t.querySelectorAll("[q\\:shadowroot]").forEach(t=>{const n=t.shadowRoot;n&&h(n)})};h(t);const d=t=>{const l=a.call(t);if(1===l)return null===u.call(t,n)?f.call(t,"q:shadowroot")?6:f.call(t,":")?2:0:3;if(8===l){const l=t.nodeValue||"";if(l.startsWith(i))return 65;if(l.startsWith(r))return 16;if(l.startsWith(n))return 9;if(l.startsWith(s))return 64;if(l.startsWith(o))return 32;if(l.startsWith(e))return 8}return 0},p=t=>{for(;t&&(t=t.nextSibling)&&0===d(t););return t},$=(n,e,r,o,i,s)=>{const c=i.length;let u=0,f=-1,a=0,h=0,y=0,m=-1,w=null;const b=()=>{let t=0;for(;ll(y=i.charCodeAt(a))&&(t+=1<<y-33,a++,!(a>=c)););return t};do{if(r===o)return;w=null;const v=r==e?2:d(r);if(3===v){const t=r;let e=r;for(;e&&!(w=p(e));)e=e.parentNode;$(n,t,r,w,t.qVnodeData||"",t.qVNodeRefs)}else if(16===v){let t=r;do{if(t=n.nextNode(),!t)throw new Error(`Island inside \x3c!--${r?.nodeValue}--\x3e not found!`)}while(65!==d(t));w=null}else if(64===v){w=r;do{if(w=n.nextNode(),!w)throw new Error("Ignore block not closed!")}while(32!==d(w));w=null}else if(9===v){w=r;do{if(w=p(w),!w)throw new Error(`\x3c!--${r?.nodeValue}--\x3e not closed!`)}while(8!==d(w));$(n,r,r,w,"",null)}else if(6===v){w=p(r);const n=r,e=n?.shadowRoot;e&&$(t.createTreeWalker(e,129),null,e,null,"",null)}if(!(2&~v)){if(f<u&&(-1===f&&(f=0),a=h,a<c?(f+=b(),126===y&&(m=f,a++,y=a<c?i.charCodeAt(h):33),h=cl(i,a,c)):f=Number.MAX_SAFE_INTEGER),u===f){m===u&&s.set(u,r);const t=i.substring(a,h);l.set(r,t)}u++}}while(r=w||n.nextNode())},y=t.createTreeWalker(t,129);$(y,null,y.firstChild(),null,"",null)}(n),this.vn=x(n,this.hn)||Jt,this.kn(),t.setAttribute(C,"resumed"),t.qContainer=this;const e=t.querySelectorAll('script[type="qwik/state"]');0!==e.length&&(this.bn=JSON.parse(e[e.length-1].textContent),Gl(this.bn,this),this.gn=il(this,this.bn)),this.xn(),t.isConnected&&t.dispatchEvent(new CustomEvent("qresume",{bubbles:!0}))}xn(){const t=this.element.ownerDocument,n=t.head,e=t.querySelectorAll(v);for(let t=0;t<e.length;t++)n.appendChild(e[t])}At(t,n){this.gn[t]=n}parseQRL(t){const n=ys(t);return n.$=this,n}handleError(t,n){const e=n&&this.resolveContext(n,fs);if(!e)throw t;e.error=t}setContext(t,n,e){let r=this.getHostProp(t,S);null==r&&this.setHostProp(t,S,r=[]),Je(r,n.id,e,0,!0)}resolveContext(t,n){for(;t;){const e=this.getHostProp(t,S);if(null!=e&&Ye(e,n.id,0))return Ge(e,n.id,0);t=this.getParentHost(t)}}getParentHost(t){let n=t.parent;for(;n;)if(xo(n)){if(null!==Ro(n,p,null))return n;n=n.parent||n.slotParent}else n=n.parent;return null}setHostProp(t,n,e){Ao(t,n,e)}getHostProp(t,n){const e=t;let r=null;switch(n){case L:case F:case p:case S:case k:r=this.St;break;case D:case z:r=parseInt}return Ro(e,n,r)}ensureProjectionResolved(t){if(!(16&t.flags)){t.flags|=16;const n=t.props;if(n)for(const t of Object.keys(n))if(xe(t)){const e=n[t];if("string"==typeof e){const r=this.vNodeLocate(e);n[t]=r}}}}St=t=>Kl(t,this.gn);getSyncFn(t){return this.vn[t]}qn(t,n,e,r){if(r){const t=this.getHostProp(e,g),r=new Set(function(t){return t?.split(" ")??null}(t));r.add(n),this.setHostProp(e,g,function(t){return Array.from(t).join(" ")}(r))}if(null==this.Sn&&(this.Sn=new Set,this.element.querySelectorAll(b).forEach(t=>{this.Sn.add(t.getAttribute(w))})),!this.Sn.has(n)){this.Sn.add(n);const e=this.document.createElement("style");e.setAttribute(w,n),e.textContent=t,this.document.head.appendChild(e)}}kn(){const t={},n=this.element.attributes;if(n)for(let e=0;e<n.length;e++){const r=n[e];r.name!==H&&(t[r.name]=r.value)}this.fn={containerAttributes:t}}}const pl=(t,n)=>{const{val:e,set:r,iCtx:o,i}=is();if(e)return;r(1);const s=new yl(6|(!1===n?.deferUpdates?0:8),i,o.yt,t,void 0,null);r(s);const l=o.$,{gt:c}=o,u=it(c,()=>$l(s,l,o.yt));rt(u)&&(o.gt=u)},$l=(t,n,e)=>{t.q&=-5,ze(t);const r=Gi(n.vt,e,"qTask");r.$=n;const o=t.Ft.getFn(r,()=>Pn(n,t)),i=an(t,n),[s]=((t,n)=>{let e=null;return[r=>{"function"==typeof r&&(e||(e=[],t.ct=()=>{t.ct=null;for(const t of e)try{t()}catch(t){n(t)}}),e.push(r))},e??[]]})(t,t=>n.handleError(t,e)),l={track:i,cleanup:s};return ot(()=>o(l),s,r=>{if(rt(r))return r.then(()=>$l(t,n,e));n.handleError(r,e)})};class yl extends St{q;Ut;qt;Ft;Zt;ct;constructor(t,n,e,r,o,i){super(),this.q=t,this.Ut=n,this.qt=e,this.Ft=r,this.Zt=o,this.ct=i}}const ml=t=>t instanceof yl;function wl(t,n){const e=ul(n);"string"==typeof this&&cc(uc(e,this));const r=lc[0];r.q|=4,ao(e,r.qt,1)}const bl=t=>{if(!t.resolved)throw t.resolve()},vl=t=>t instanceof Dt,gl=(t,n)=>{t.add(n)},Sl=(t,n)=>{(t.backRef||=new Set).add(n)},kl=(t,n)=>{if(n?.serializationCtx){const e=t.consumer,r=t.property;let o=null;ml(e)?o=e.Ft:e instanceof hn?o=e.R:":"===r&&(o=n.getHostProp(e,p)),o&&n.serializationCtx.en.add(o)}},xl=(t,n,e)=>{const r=(import.meta,!0);if(e){const o=e=>{const o=e.consumer,i=e.property;if(ml(o))o.q|=4,ao(t,o.qt,1);else if(o instanceof Dt)o.invalidate();else if(":"===i)ao(t,o,4);else if("."===i)r&&(s=o,l=n,(s.props||={})[Mt]=l,ao(t,o,2));else{const s=e.data;if(s instanceof Mn){const e=s.data,l={isConst:e.xt,scopedStyleIdPrefix:e.kt,value:n};if(r)!function(t,n,e){const r=t.props||={};let o=r[Et];o||(o=new Map,r[Et]=o),o.set(n,e)}(o,i,l);else{const t=o;let n=t.getProp(Et);n||(n=new Map,t.setProp(Et,n)),n.set(i,l)}ao(t,o,8)}}var s,l},i=Array.from(e);for(const t of i)o(t)}},ql=t=>l(t)&&"function"==typeof t[sc],Rl=t=>{let n=1;switch(t){case"never":n|=8;break;case"always":n|=16}return n},Al=[];function jl(t){try{if(null===t)return"null";if(void 0===t)return"undefined";if("string"==typeof t)return'"'+t+'"';if("number"==typeof t||"boolean"==typeof t)return String(t);if(ml(t))return`Task(${jl(t.Ft)})`;if(d(t))return`Qrl(${t.Nt})`;if("object"==typeof t||"function"==typeof t){if(Al.includes(t))return"*";try{if(Al.push(t),Array.isArray(t))return bo(t)?"("+(Ro(t,ct,null)||"vnode")+")":t.map(jl);if(vl(t))return t instanceof Cn?"WrappedSignal":t instanceof hn?"ComputedSignal":"Signal";if(El(t))return"Store";if(zn(t))return Nl(t);if(bo(t))return"("+(Ro(t,ct,null)||"vnode")+")"}finally{Al.pop()}}}catch(t){return console.error("ERROR in qwikDebugToString",t),"*error*"}return t}const Nl=t=>{if(zn(t)){if("function"==typeof t.type){const n=t.type[jc];if(n){const[t]=n;return"Component("+t.Nt+")"}return"Function("+t.type.name+")"}let n="<"+t.type;if(t.props){for(const[e,r]of Object.entries(t.props))n+=" "+e+"="+jl(r);const e=t.children;null!=e?(n+=">",Array.isArray(e)?e.forEach(t=>{n+=Nl(t)}):n+=Nl(e),n+="</"+t.type+">"):n+="/>"}return n}return String(t)},Cl=t=>t[cn],Pl=t=>t?.[ln]||null,Il=(t,n)=>{const e=Cl(t);e&&e.force(n)},Ol=(t,n)=>{const e=Cl(t);return!!e&&(e.p?.get(n)?.size??0)>0},_l=t=>Pl(t)||t,El=t=>ln in t;function Ml(t,n,e){return new Proxy(n,new Fl(e,t||null))}const Tl=(t,n,e)=>{if(s(t)&&e){let r=e.bt.get(t);return r||(r=Ml(e,t,n),e.bt.set(t,r)),r}return t};class Fl{q;$;p=void 0;constructor(t,n){this.q=t,this.$=n}toString(){return"[Store]"}force(t){const n=Pl(this);xl(this.$,this,Wl(n,t,this.p))}get(t,n){if("symbol"==typeof n)return n===ln?t:n===cn?this:t[n];const e=Vi(),r=t[n];if(e){if(null===this.$){if(!e.$)return r;this.$=e.$}const o=e.k;o&&Ll(t,Array.isArray(t)?un:n,this,o)}return"toString"===n&&r===Object.prototype.toString?this.toString:1&this.q&&l(r)&&!Object.isFrozen(r)&&!El(r)&&!Object.isFrozen(t)?Tl(r,this.q,this.$):r}set(t,n,e){if("symbol"==typeof n)return t[n]=e,!0;const r=1&this.q?_l(e):e;return n in t?r!==t[n]&&Dl(n,r,t,this):Dl(n,r,t,this),!0}deleteProperty(t,n){return"string"==typeof n&&delete t[n]&&(Array.isArray(t)||xl(this.$,this,Wl(t,n,this.p)),!0)}has(t,n){if(n===ln)return!0;if("string"==typeof n){const e=Vi();if(e){const r=e.k;r&&Ll(t,Array.isArray(t)?un:n,this,r)}}return Object.prototype.hasOwnProperty.call(t,n)}ownKeys(t){const n=Vi(),e=n?.k;return e&&Ll(t,un,this,e),Reflect.ownKeys(t)}getOwnPropertyDescriptor(t,n){const e=Reflect.getOwnPropertyDescriptor(t,n);return Array.isArray(t)||"symbol"==typeof n||e&&!e.configurable?e:{enumerable:!0,configurable:!0}}}function Ll(t,e,r,o){const i=r.p||=new Map;let s=i.get(e);s||(s=new Set,i.set(e,s)),gl(s,o),Sl(o,t),(import.meta.env.TEST?!hl(r.$):n)&&kl(o,r.$)}function Dl(t,n,e,r){e[t]=n;const o=Wl(e,t,r.p);o&&xl(r.$,r,o)}function Wl(t,n,e){let r;if(e)if(Array.isArray(t))for(const t of e.values()){r||=new Set;for(const n of t)r.add(n)}else r=e.get(n);const o=e?.get(un);if(o){r||=new Set;for(const t of o)r.add(t)}return r}const Ul=(t,n)=>t[n],Vl=(t,n=new WeakSet)=>{if(null==t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t||"bigint"==typeof t)return!0;if("object"==typeof t){if(n.has(t))return!0;n.add(t);const e=Object.getPrototypeOf(t);if(El(t)&&(t=Pl(t)),e==Object.prototype){for(const e in t)if(!Vl(Yi(Ul,t,e),n))return!1;return!0}if(e==Array.prototype){for(let e=0;e<t.length;e++)if(!Vl(t[e],n))return!1;return!0}if(ml(t))return!0;if(rn(t))return!0;if(rt(t))return!0;if(zn(t))return!0;if(t instanceof Error)return!0;if(t instanceof URL)return!0;if(t instanceof Date)return!0;if(t instanceof RegExp)return!0;if(t instanceof URLSearchParams)return!0;if(t instanceof FormData)return!0;if(t instanceof Set)return!0;if(t instanceof Map)return!0;if(t instanceof Uint8Array)return!0;if(t instanceof Mn)return!0;if(Es?.(t))return!0}else if("function"==typeof t){if(d(t)||Nc(t)||t===he||t===oe)return!0}else if(t===Ht||t===on||t===un)return!0;return!1},zl=(t,n)=>{let e=bo(t)?Pi.call(t,1,"",!0).replaceAll(/\n.*/gm,""):"function"==typeof t?String(t):(t=>{const n=new WeakSet;return JSON.stringify(t,(t,e)=>{if(l(e)){if(n.has(e))return`[Circular ${e.constructor.name}]`;n.add(e)}return e},2)})(t);return e.length>500&&(e=e.slice(0,500)+'"...'),e=e.replace(/\n/g,"\n"+n),e.includes("\n")?e=`\n${n}${e}`:e};let Ql=!1;const Bl=(t,n=!1,e="",r=20)=>{const o=n?"[31m":"",i=n?"[0m":"",s=""===e,c=[];for(let s=0;s<t.length;s++){if(r&&s>2*r){c.push("...");break}const u=t[s];let f=t[++s];if(0===u){"number"!=typeof f&&"string"!=typeof f&&(Ql=!0);const t=`{${l(f)?f.constructor.name:typeof f}}`;c.push(`${o}${t}${i} ${zl(f,`${e} `)}`)}else 3===u?f=Jl(f):"string"==typeof f?(f=JSON.stringify(f),f.length>120&&(f=f.slice(0,120)+'"...')):14===u?f=`[\n${e} ${f.join(`\n${e} `)}\n${e}]`:Array.isArray(f)&&(f=f.length?`[\n${Bl(f,n,`${e} `)}\n${e}]`:"[]"),c.push(`${o}${Hl(u)}${i} ${f}`)}const u=c.map((t,n)=>`${e}${s?`${n} `:""}${t}`).join("\n");if(s){const n=Ql?"":`(${JSON.stringify(t).length} chars)`;return Ql=!1,`\n${u}\n${n}`}return u},Hl=t=>ds[t]||`Unknown(${t})`,Jl=t=>hs[t]||`Unknown(${t})`;function Gl(t,n){const e=(t,n)=>1===t&&"string"==typeof n,r=t=>14===t,o=n=>{const e=t[n+1].split(" ");let r=t,o=1,i=0,s=0,l=null;for(let n=0;n<e.length;n++)if(l=r,i=2*parseInt(e[n],10),s=i+1,o=r[i],r=r[s],1===o){const n=2*r;o=t[n],r=t[n+1]}l&&(l[i]=1,l[s]=n/2),t[n]=o,t[n+1]=r};for(let i=0;i<t.length;i+=2)e(t[i],t[i+1])?o(i):r(t[i])&&(n._t=t[i+1])}async function Yl(t){const n=Ts(null,null,()=>"",()=>"",()=>{},new WeakMap);return n.Ot(t),await n.Vt(),n.zt.toString()}function Xl(t){if(null==t)throw new Error("No state data to deserialize");const n=JSON.parse(t);if(!Array.isArray(n)||n.length<2||"number"!=typeof n[0])throw new Error("Invalid state data");const e=function(t){let n;const e={St:t=>Kl(t,n),getSyncFn:()=>()=>{},bt:new WeakMap,element:null,_t:null};return Gl(t,e),n=il(e,t),e.Zt=n,e}(n);return nl(e,n[0],n[1])}function Kl(t,n){return"string"==typeof t?n[t=parseInt(t,10)]:n[t]}const Zl=(t,n)=>{const e=new WeakSet;return Yi(tc,t,e,"_",n)},tc=(t,n,e,r)=>{const o=_l(t);if(null==o)return t;if(ec(o)){if("object"==typeof o){if(n.has(o))return t;n.add(o)}if(vl(o))return t;if(Vl(o))return t;const i=typeof o;if("object"===i){if(rt(o))return t;if((t=>t&&"number"==typeof t.nodeType)(o))return t;if(c(o)){let r=0;return o.forEach((t,i)=>{if(i!==r)throw a(3,[o]);tc(t,n,e+"["+i+"]"),r=i+1}),t}if(o.__brand)return t;if(s(o)){for(const[t,r]of Object.entries(o))tc(r,n,e+"."+t);return t}}let l;if(l=r||"Value cannot be serialized","_"!==e&&(l+=` in ${e},`),"object"===i)l+=` because it's an instance of "${t?.constructor.name}". You might need to use 'noSerialize()' or use an object literal instead. Check out https://qwik.dev/docs/advanced/dollar/`;else if("function"===i){const n=t.name;l+=` because it's a function named "${n}". You might need to convert it to a QRL using $(fn):\n\nconst ${n} = $(${String(t)});\n\nPlease check out https://qwik.dev/docs/advanced/qrl/ for more information.`}throw a(3,[l])}return t},nc=/*#__PURE__*/new WeakSet,ec=t=>!l(t)&&!f(t)||!nc.has(t)&&!(ic in t),rc=t=>!!t&&(l(t)||"function"==typeof t)&&(ic in t||nc.has(t)),oc=t=>((l(t)&&null!==t||"function"==typeof t)&&nc.add(t),t),ic=Symbol("noSerialize"),sc=Symbol("serialize");let lc=null;const cc=t=>{lc=t},uc=(t,n)=>{const e=[];for(const r of n.split(" "))e.push(t.St(r));return e},fc=t=>{if(lc=t.yn,"string"==typeof lc){if(!t.$)throw a(13);const n=Ks;if(lc=t.yn=uc(t.$,lc),Ks!==n)return Ks}};function ac(t,n,e){const r=(...o)=>t.resolved?e&&!1===e()?void 0:Bi.call(this,n,t.resolved,o):t.resolve().then(t=>{if(!f(t))throw a(5);return r(...o)});return r}const hc=(t,n)=>"function"==typeof n&&t.yn?function(...e){return fc(t),n.apply(this,e)}:n;function dc(){return this.Nt}function pc(){return this.N}function $c(){return fc(this),this.yn}const yc=(n,e,r,o,i)=>{const s=async function(...t){if(s.resolved)return s.resolved.apply(this,t);const n=Vi();return await s.resolve(n?.$),Bi.call(this,n,s.resolved,t)};o&&e in o&&(r=o[e]);const l=null!=r?async()=>r:((n,e)=>{let r;return async o=>{if(null!=r)return r;if(o)n.$=o;else if(!n.$){const t=Vi();t?.$&&(n.$=t.$)}if(""===n.Ct){const t=n.$.hn,e=n.$.element?.ownerDocument||document,o=x(e,t);return n.resolved=r=o[Number(n.Nt)]}n.Ct&&t(n.Ct,1);const i=vc(),s=n.Nt,l=e?e().then(t=>t[s]):tt().importSymbol(n.$?.element,n.Ct,s);if(r=it(l,t=>(e&&(e[s]=t),r=n.resolved=hc(n,t))),rt(r)){const t=Vi();r.then(()=>wc(s,t?.yt instanceof qt?t?.yt.node:void 0,i),t=>{console.error(`qrl ${s} failed to load`,t),r=null})}return n.$&&await fc(n),r}})(s,o),c=(t=>{const n=t.lastIndexOf("_");return n>-1?t.slice(n+1):t})(e);return Object.assign(s,{getSymbol:dc,getHash:pc,getCaptured:$c,getFn:function(t,n){return ac.call(this,s,t,n)},resolve:l,resolved:void 0,Ct:n,Nt:e,N:c,yn:i,$:null}),null!=r&&(r=it(fc(s),()=>it(r,t=>r=s.resolved=hc(s,t)))),e&&t(e,.8),s},mc=/*#__PURE__*/new Set,wc=(t,n,e)=>{mc.has(t)||(mc.add(t),bc("qsymbol",{symbol:t,element:n,reqTime:e}))},bc=(t,n)=>{"object"==typeof document&&document.dispatchEvent(new CustomEvent(t,{bubbles:!1,detail:n}))},vc=()=>"object"==typeof performance?performance.now():0;let gc=0;const Sc=t=>yc(null,"s"+gc++,t,null,null),kc=Sc,xc=t=>t,qc=t=>yc("",h,t,null,null),Rc=function(t,n){return void 0===n&&(n=t.toString()),t.serialized=n,yc("",h,t,null,null)},Ac=t=>{function n(n,e){const r=t.N.slice(0,4)+":"+(e||""),o=()=>{};return o[jc]=[t],Gn(o,n,null,n.children,0,r)}return n[jc]=[t],n},jc=Symbol("serializable-data"),Nc=t=>"function"==typeof t&&void 0!==t[jc],Cc=t=>Ac(kc(t)),Pc=$n(xc),Ic=async(t,n,e={})=>{if(9===t.nodeType){let n=t.firstChild;for(;n&&!nt(n);)n=n.nextSibling;t=n}t.setAttribute(C,"resumed");const r=ul(t);r.fn=e.serverData||{};const o=r.rootVNode;return Ao(o,Mt,n),ao(r,o,2),await r.l,{cleanup:()=>{Or(r,[],r.rootVNode)}}},Oc=(t,n)=>{const{val:e,set:r,iCtx:o}=is();if(null!=e)return e;const i=f(t)?Qi(void 0,t):t;if(!1===n?.reactive)return r(i),i;{const t=o.$,e=Tl(i,n?.deep??1?1:0,t);return r(e),e}},_c=()=>{const{val:t,set:n,iCtx:e}=is();if(null!=t)return t;const r=e.$.dn||"",o=r?Ce(r).substring(0,3):"",i=e.$.getHostProp(e.yt,p);let s=`${o}${i?.getHash().substring(0,3)||""}${(e.$.an++).toString(36)||""}`,l=s.charCodeAt(0);return l>=48&&l<=57&&(l+=17,s=String.fromCharCode(l)+s.substring(1)),n(s)};function Ec(t,n){const e=Vi();return e?.$?.fn[t]??n}const Mc=/*#__PURE__*/new Map,Tc=(t,n)=>{let e=Mc.get(n);return e||Mc.set(n,e=Fc(t,n)),e},Fc=(t,n)=>{const e=t.length,r=[],o=[];let i=0,s=i,l=Vc,c=0;for(;i<e;){const n=i;let e=t.charCodeAt(i++);e===yu&&(i++,e=du);const r=xu[l];for(let d=0;d<r.length;d++){const p=r[d],[$,y,m]=p;if(($===c||$===Kc||$===Zc&&Lc(c)||$===nu&&Uc(c))&&(y===e||y===Kc||y===Zc&&Lc(e)||y===tu&&!Lc(e)&&e!==uu||y===nu&&Uc(e))&&(3==p.length||a(p))){if(p.length>3&&(e=t.charCodeAt(i-1)),m===Yc||m==Xc){m===Xc&&(l!==zc||h()?Dc(e)||f(i-(y==tu?1:y==lu?2:0)):(Dc(e)?u(i-2):f(i-2),s++)),y===tu&&(i--,e=c);do{l=o.pop()||Vc,l===Qc&&(u(i-1),s++)}while(Wc(l))}else o.push(l),l===Qc&&m===Vc?(u(i-8),s=i):m===Bc&&f(n),l=m;break}}c=e}return u(i),r.join("");function u(n){r.push(t.substring(s,n)),s=n}function f(t){l===Qc||h()||(u(t),r.push(".",$,n))}function a(n){let e=0;if(t.charCodeAt(i)===cu)for(let n=1;n<10;n++)if(t.charCodeAt(i+n)===cu){e=n+1;break}t:for(let r=3;r<n.length;r++){const o=n[r];for(let n=0;n<o.length;n++)if((t.charCodeAt(i+n+e)|wu)!==o.charCodeAt(n))continue t;return i+=o.length+e,!0}return!1}function h(){return-1!==o.indexOf(Qc)||-1!==o.indexOf(Hc)}},Lc=t=>t>=fu&&t<=au||t>=du&&t<=pu||t>=bu&&t<=vu||t>=128||t===mu||t===cu,Dc=t=>t===hu||t===uu||t===$u||t===su||Lc(t),Wc=t=>t===Jc||t===Hc||t===Gc||t===Qc,Uc=t=>t===iu||t===eu||t===ru||t===ou,Vc=0,zc=2,Qc=5,Bc=6,Hc=10,Jc=11,Gc=12,Yc=17,Xc=18,Kc=0,Zc=1,tu=2,nu=3,eu=9,ru=10,ou=13,iu=32,su=35,lu=41,cu=45,uu=46,fu=48,au=57,hu=58,du=65,pu=90,$u=91,yu=92,mu=95,wu=32,bu=97,vu=122,gu=123,Su=125,ku=[[Kc,39,14],[Kc,34,15],[Kc,47,16,"*"]],xu=[[[Kc,42,zc],[Kc,$u,7],[Kc,hu,Bc,":","before","after","first-letter","first-line"],[Kc,hu,Qc,"global"],[Kc,hu,3,"has","host-context","not","where","is","matches","any"],[Kc,hu,4],[Kc,Zc,1],[Kc,uu,1],[Kc,su,1],[Kc,64,Hc,"keyframe"],[Kc,64,Jc,"media","supports","container"],[Kc,64,Gc],[Kc,gu,13],[47,42,16],[Kc,59,Yc],[Kc,Su,Yc],[Kc,lu,Yc],...ku],[[Kc,tu,Xc]],[[Kc,tu,Xc]],[[Kc,40,Vc],[Kc,tu,Xc]],[[Kc,40,8],[Kc,tu,Xc]],[[Kc,40,Vc],[Kc,tu,Yc]],[[Kc,tu,Yc]],[[Kc,93,Xc],[Kc,39,14],[Kc,34,15]],[[Kc,lu,Yc],...ku],[[Kc,Su,Yc],...ku],[[Kc,Su,Yc],[nu,Zc,1],[Kc,hu,Qc,"global"],[Kc,gu,13],...ku],[[Kc,gu,Vc],[Kc,59,Yc],...ku],[[Kc,59,Yc],[Kc,gu,9],...ku],[[Kc,Su,Yc],[Kc,gu,13],[Kc,40,8],...ku],[[Kc,39,Yc]],[[Kc,34,Yc]],[[42,47,Yc]]],qu=t=>({styleId:Nu(t,t=>t,!1)}),Ru=/*#__PURE__*/$n(qu),Au=t=>({scopeId:$+Nu(t,Tc,!0)}),ju=/*#__PURE__*/$n(Au),Nu=(t,n,e)=>{const{val:r,set:o,iCtx:i,i:s}=is();if(r)return r;const l=(c=s,`${Ce(t.N)}-${c}`);var c;const u=i.yt;if(o(l),!t.resolved)throw t.resolve().then(t=>i.$.qn(n(t,l),l,u,e));return i.$.qn(n(t.resolved,l),l,u,e),l},Cu=(t,n)=>{Ou("q-e:",t,n)},Pu=(t,n)=>{Ou("q-d:",t,n)},Iu=(t,n)=>{Ou("q-w:",t,n)},Ou=(t,n,e)=>{const{isAdded:r,addEvent:o}=_u();if(!r&&e)if(Array.isArray(n))for(const r of n)o(t+vt(r),e);else o(t+vt(n),e)},_u=()=>{const t=zi(),n=t.yt;let e=t.$.getHostProp(n,V);null===e&&(e={},t.$.setHostProp(n,V,e));let r=t.$.getHostProp(n,z);null===r&&(r=0),t.$.setHostProp(n,z,r+1);let o=t.$.getHostProp(n,Q);for(null===o&&(o=[],t.$.setHostProp(n,Q,o));o.length<=r;)o.push(!1);return{isAdded:o[r],addEvent:(t,n)=>{o[r]=!0;let i=e[t];i||(e[t]=i=[]),i.push(n)}}},Eu=t=>{const n=f(t)&&!Nc(t)?Qi(void 0,t):t;return vn(n)},Mu=t=>Tu(Eu,t),Tu=(t,...n)=>{const{val:e,set:r}=is();return null!=e?e:r(t=f(t)&&!Nc(t)?Yi(t,...n):t)},Fu=(t,n)=>(t.resolve(),mn(t,n)),Lu=(t,n)=>Tu(Fu,t,n),Du=$n(Lu),Wu=t=>(t.resolve(),bn(t)),Uu=t=>Tu(Wu,t),Vu=$n(Uu),zu=(t,n)=>{const{val:e,set:r,i:o,iCtx:i}=is(),s=n?.strategy??"intersection-observer";if(e)return void(32&e.q||(e.q|=32,Qu(e,s)));let l;l=5,t.resolve(),ao(i.$,i.yt,1);const c=new yl(5,o,i.yt,t,void 0,null);r(c),Qu(c,s)},Qu=(t,n)=>{"intersection-observer"===n?Cu("qvisible",Bu(t)):"document-ready"===n?Pu("qinit",Bu(t)):"document-idle"===n&&Pu("qidle",Bu(t))},Bu=t=>yc(null,"_task",wl,null,[t]),Hu=$n(Gs),Ju=/*#__PURE__*/$n(pl),Gu=/*#__PURE__*/$n(zu),Yu=(t,n)=>(t.resolve(),wn(t,n)),Xu=(t,n)=>Tu(Yu,t,n),Ku=$n(Xu),Zu=()=>{const t=Oc({error:void 0});return ls(fs,t),t},tf=t=>{import.meta;const n=import.meta.env.BASE_URL||"/",e={path:"qwik-prefetch-service-worker.js",...t};e.path=t?.path?.startsWith?.("/")?t.path:n+e.path;let r=nf.replace('"_URL_"',JSON.stringify(e.path.split("/").pop()));r=r.replaceAll(/\s\s+/gm,"");const o={dangerouslySetInnerHTML:["("+r+")(",["navigator.serviceWorker"].join(","),");"].join(""),nonce:e.nonce};return Jn("script",null,o,null,0,"prefetch-service-worker")},nf=/*#__PURE__*/(t=>{"getRegistrations"in t&&t.getRegistrations().then(t=>{t.forEach(t=>{t.active&&t.active.scriptURL.endsWith("_URL_")&&t.unregister().catch(console.error)})}),"caches"in window&&caches.keys().then(t=>{const n=t.find(t=>t.startsWith("QwikBundles"));n&&caches.delete(n).catch(console.error)}).catch(console.error)}).toString(),ef=()=>null;globalThis.__qwik&&console.error(`==============================================\nQwik version ${globalThis.__qwik} already imported while importing ${o}.\nThis can lead to issues due to duplicated shared structures.\nVerify that the Qwik libraries you're using are in "resolve.noExternal[]" and in "optimizeDeps.exclude".\n==============================================\n`),globalThis.__qwik=o,import.meta.hot&&import.meta.hot.dispose(()=>{globalThis.__qwik=void 0});export{Sc as $,oe as Fragment,ic as NoSerializeSymbol,ef as PrefetchGraph,tf as PrefetchServiceWorker,ie as RenderOnce,Ys as Resource,$e as SSRComment,pe as SSRRaw,me as SSRStream,ye as SSRStreamBlock,sc as SerializerSymbol,de as SkipRender,he as Slot,Ut as _CONST_PROPS,dl as _DomContainer,gt as _EFFECT_BACK_REF,Jt as _EMPTY_ARRAY,Bt as _IMMUTABLE,Fs as _SharedContainer,Mn as _SubscriptionData,Ht as _UNINITIALIZED,Vt as _VAR_PROPS,lc as _captures,Ln as _chk,yc as _createQRL,Xl as _deserialize,Bl as _dumpState,co as _executeSsrChores,Ns as _fnSignal,en as _getConstProps,es as _getContextContainer,ns as _getContextEvent,ts as _getContextHostElement,ul as _getDomContainer,al as _getQContainerElement,nn as _getVarProps,Ol as _hasStoreEffects,zn as _isJSXNode,El as _isStore,js as _isStringifiable,ml as _isTask,rs as _jsxBranch,Yn as _jsxC,Kn as _jsxQ,Xn as _jsxS,Jn as _jsxSorted,Gn as _jsxSplit,He as _mapApp_findIndx,Ge as _mapArray_get,Je as _mapArray_set,ks as _noopQrl,xs as _noopQrlDEV,Gl as _preprocessState,Rc as _qrlSync,ps as _qrlToString,As as _regSymbol,Dn as _res,us as _resolveContextWithoutSequentialScope,qe as _restProps,Js as _rsc,Be as _run,Yl as _serialize,wl as _task,Fn as _val,Zl as _verifySerializable,Co as _vnode_ensureElementInflated,Ai as _vnode_getAttrKeys,ti as _vnode_getFirstChild,So as _vnode_isMaterialized,ko as _vnode_isTextVNode,xo as _vnode_isVirtualVNode,Pi as _vnode_toString,os as _waitUntilRendered,Ws as _walkJSX,An as _wrapProp,Nn as _wrapSignal,Cc as component$,Ac as componentQrl,Sn as createAsync$,wn as createAsyncQrl,gn as createComputed$,mn as createComputedQrl,ss as createContextId,re as createElement,kn as createSerializer$,bn as createSerializerQrl,vn as createSignal,Pc as event$,xc as eventQrl,Il as forceStoreEffects,ul as getDomContainer,Wi as getLocale,tt as getPlatform,re as h,$n as implicit$FirstArg,Ss as inlinedQrl,Rs as inlinedQrlDEV,e as isBrowser,r as isDev,n as isServer,vl as isSignal,te as jsx,ne as jsxDEV,ee as jsxs,oc as noSerialize,gs as qrl,qs as qrlDEV,Ic as render,Z as setPlatform,qc as sync$,Yi as untrack,_l as unwrapStore,Ku as useAsync$,Xu as useAsyncQrl,Du as useComputed$,Lu as useComputedQrl,Tu as useConstant,cs as useContext,ls as useContextProvider,Zu as useErrorBoundary,_c as useId,Hs as useLexicalScope,Cu as useOn,Pu as useOnDocument,Iu as useOnWindow,Hu as useResource$,Gs as useResourceQrl,Vu as useSerializer$,Uu as useSerializerQrl,Ec as useServerData,Mu as useSignal,Oc as useStore,Ru as useStyles$,qu as useStylesQrl,ju as useStylesScoped$,Au as useStylesScopedQrl,Ju as useTask$,pl as useTaskQrl,Gu as useVisibleTask$,zu as useVisibleTaskQrl,o as version,Ui as withLocale};
|