@qwik.dev/core 2.0.0-alpha.8 → 2.0.0-alpha.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/bindings/qwik.darwin-arm64.node +0 -0
  2. package/bindings/qwik.darwin-x64.node +0 -0
  3. package/bindings/qwik.linux-x64-gnu.node +0 -0
  4. package/bindings/qwik.win32-x64-msvc.node +0 -0
  5. package/bindings/qwik_wasm_bg.wasm +0 -0
  6. package/dist/build/package.json +1 -1
  7. package/dist/cli.cjs +2 -2
  8. package/dist/core-internal.d.ts +234 -22
  9. package/dist/core.cjs +7305 -7418
  10. package/dist/core.cjs.map +1 -1
  11. package/dist/core.min.mjs +1 -1
  12. package/dist/core.mjs +7299 -7418
  13. package/dist/core.mjs.map +1 -1
  14. package/dist/core.prod.cjs +1546 -1662
  15. package/dist/core.prod.mjs +2713 -2852
  16. package/dist/insights/index.qwik.cjs +1815 -1933
  17. package/dist/insights/index.qwik.mjs +1815 -1933
  18. package/dist/insights/insights.d.ts +1 -1
  19. package/dist/loader/package.json +1 -1
  20. package/dist/optimizer.cjs +47 -17
  21. package/dist/optimizer.d.ts +1 -1
  22. package/dist/optimizer.mjs +45 -17
  23. package/dist/prefetch/package.json +1 -1
  24. package/dist/server.cjs +12 -11
  25. package/dist/server.mjs +12 -11
  26. package/dist/starters/features/auth/package.json +1 -1
  27. package/dist/starters/features/tailwind/package.json +2 -2
  28. package/dist/starters/features/tailwind-v3/.vscode/settings.json +3 -0
  29. package/dist/starters/features/tailwind-v3/package.json +21 -0
  30. package/dist/starters/features/tailwind-v3/postcss.config.cjs +6 -0
  31. package/dist/starters/features/tailwind-v3/src/global.css +7 -0
  32. package/dist/starters/features/tailwind-v3/tailwind.config.js +8 -0
  33. package/dist/testing/index.cjs +5461 -5373
  34. package/dist/testing/index.d.ts +2 -1
  35. package/dist/testing/index.mjs +5475 -5389
  36. package/dist/testing/package.json +1 -1
  37. package/package.json +3 -3
  38. package/public.d.ts +6 -0
package/dist/core.min.mjs CHANGED
@@ -1 +1 @@
1
- const t=!1,n=!0,e=!1,r=(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};var o;!function(t){t[t.stringifyClassOrStyle=0]="stringifyClassOrStyle",t[t.schedulerNotFound=1]="schedulerNotFound",t[t.trackObjectWithoutProp=2]="trackObjectWithoutProp",t[t.verifySerializable=3]="verifySerializable",t[t.UNUSED_4=4]="UNUSED_4",t[t.cannotRenderOverExistingContainer=5]="cannotRenderOverExistingContainer",t[t.UNUSED_6=6]="UNUSED_6",t[t.UNUSED_7=7]="UNUSED_7",t[t.UNUSED_8=8]="UNUSED_8",t[t.UNUSED_9=9]="UNUSED_9",t[t.qrlIsNotFunction=10]="qrlIsNotFunction",t[t.dynamicImportFailed=11]="dynamicImportFailed",t[t.unknownTypeArgument=12]="unknownTypeArgument",t[t.notFoundContext=13]="notFoundContext",t[t.useMethodOutsideContext=14]="useMethodOutsideContext",t[t.UNUSED_15=15]="UNUSED_15",t[t.UNUSED_16=16]="UNUSED_16",t[t.UNUSED_17=17]="UNUSED_17",t[t.UNUSED_18=18]="UNUSED_18",t[t.UNUSED_19=19]="UNUSED_19",t[t.useInvokeContext=20]="useInvokeContext",t[t.UNUSED_21=21]="UNUSED_21",t[t.UNUSED_22=22]="UNUSED_22",t[t.UNUSED_23=23]="UNUSED_23",t[t.UNUSED_24=24]="UNUSED_24",t[t.UNUSED_25=25]="UNUSED_25",t[t.UNUSED_26=26]="UNUSED_26",t[t.UNUSED_27=27]="UNUSED_27",t[t.invalidContext=28]="invalidContext",t[t.tagError=29]="tagError",t[t.qrlMissingContainer=30]="qrlMissingContainer",t[t.qrlMissingChunk=31]="qrlMissingChunk",t[t.invalidRefValue=32]="invalidRefValue",t[t.serializeErrorNotImplemented=33]="serializeErrorNotImplemented",t[t.serializeErrorExpectedVNode=34]="serializeErrorExpectedVNode",t[t.serializeErrorCannotAllocate=35]="serializeErrorCannotAllocate",t[t.serializeErrorMissingRootId=36]="serializeErrorMissingRootId",t[t.serializeErrorUnknownType=37]="serializeErrorUnknownType",t[t.serializeErrorUnvisited=38]="serializeErrorUnvisited",t[t.serializeErrorMissingChunk=39]="serializeErrorMissingChunk",t[t.wrongTextareaValue=40]="wrongTextareaValue",t[t.containerNotFound=41]="containerNotFound",t[t.elementWithoutContainer=42]="elementWithoutContainer",t[t.invalidVNodeType=43]="invalidVNodeType",t[t.materializeVNodeDataError=44]="materializeVNodeDataError",t[t.cannotCoerceSignal=45]="cannotCoerceSignal",t[t.computedNotSync=46]="computedNotSync",t[t.computedReadOnly=47]="computedReadOnly",t[t.wrappedReadOnly=48]="wrappedReadOnly",t[t.unsafeAttr=49]="unsafeAttr"}(o||(o={}));const 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)=>r(!0,t,...n))(e,...n)},i="<sync>",l=t=>"function"==typeof t&&"function"==typeof t.getSymbol;var u,c;!function(t){t.Virtual="V",t.Fragment="F",t.WrappedSignal="S",t.Awaited="A",t.Component="C",t.InlineComponent="I",t.Projection="P"}(u||(u={})),function(t){t.PAUSED="paused",t.RESUMED="resumed",t.HTML="html",t.TEXT="text"}(c||(c={}));const f="q:renderFn",a="⚡️",h="q:slot",d="q:sparent",p="q:s",y="q:style",$="style[q\\:style]",m=$+",style[q\\:sstyle]",b="q:sstyle",w="q:ctx",S="q:brefs",g=(t,n)=>t["qFuncs_"+n]||[],v="q:base",E="q:locale",N="q:instance",k="q:container-island",A="/"+k,R="q:ignore",O="/"+R,_="q:container",P="/"+_,C="q:template",x="[q\\:container]:not([q\\:container="+c.HTML+"]):not([q\\:container="+c.TEXT+"])",M="http://www.w3.org/1999/xhtml",T="http://www.w3.org/2000/svg",I="http://www.w3.org/1998/Math/MathML",q="qRender",j="q:key",U="q:props",D="q:seq",L="q:seqIdx",F=":on",W=":onIdx",V=":onFlags",z="qkssr-f",H="dangerouslySetInnerHTML",B=()=>({isServer:t,importSymbol(t,n,e){if(!n)throw s(o.qrlMissingChunk,[e]);if(!t)throw s(o.qrlMissingContainer,[n,e]);const r=K(t.ownerDocument,t,n).toString(),i=new URL(r);return i.hash="",import(i.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??"_"]}),K=(t,n,e)=>{const r=t.baseURI,o=new URL(n.getAttribute(v)??r,r);return new URL(e,o)};let Q=/*#__PURE__ */B();const Y=t=>Q=t,J=()=>Q,G=t=>t&&"number"==typeof t.nodeType,X=t=>1===t.nodeType,Z=t=>!!t&&"object"==typeof t&&"function"==typeof t.then,tt=(t,n,e)=>{try{const r=t();return Z(r)?r.then(n,e):n(r)}catch(t){return e(t)}},nt=(t,n)=>Z(t)?t.then(n,et):n(t),et=t=>{(t=>{throw r(!1,t,...[])})(t)},rt=t=>new Promise((n=>{setTimeout(n,t)}));function ot(t,n=0){const e=e=>{if(Z(e)&&n<100)return e.then(ot.bind(null,t,n++));throw e};try{const n=t();return Z(n)?n.catch((t=>e(t))):n}catch(t){return e(t)}}const st=t=>{const n=Object.getPrototypeOf(t);return n===Object.prototype||n===Array.prototype||null===n},it=t=>!!t&&"object"==typeof t,lt=t=>Array.isArray(t),ut=t=>"string"==typeof t,ct=t=>"function"==typeof t;var ft;let at;function ht(t){if(void 0===at){const n=Go();if(n&&n.t)return n.t;if(void 0!==t)return t;throw new Error("Reading `locale` outside of context.")}return at}function dt(t,n){const e=at;try{return at=t,n()}finally{at=e}}!function(t){t[t.NONE=0]="NONE",t[t.TEXT_DATA=1]="TEXT_DATA",t[t.VIRTUAL_NODE=2]="VIRTUAL_NODE",t[t.ELEMENT_NODE=4]="ELEMENT_NODE",t[t.REFERENCE=8]="REFERENCE",t[t.SERIALIZE=16]="SERIALIZE"}(ft||(ft={}));const pt=[],yt={};Object.freeze(pt),Object.freeze(yt);const $t=/*#__PURE__*/new Set,mt=(t,n,e=pt)=>{let r=null,i=null;if(ct(t))i=t;else{if(!ut(t))throw s(o.unknownTypeArgument,[t]);r=t}return $t.has(n)||($t.add(n),fi("qprefetch",{symbols:[n],bundles:r&&[r]})),li(r,n,null,i,null,e)},bt=(t,n,e=pt)=>li(null,n,t,null,null,e),wt=(t,n=pt)=>li(null,t,null,null,null,n),St=(t,n,e=pt)=>{const r=wt(t,e);return r.dev=n,r},gt=(t,n,e,r=pt)=>{const o=mt(t,n,r);return o.dev=e,o},vt=(t,n,e,r=pt)=>{const o=bt(t,n,r);return o.dev=e,o},Et=(t,n)=>(void 0===globalThis.__qwik_reg_symbols&&(globalThis.__qwik_reg_symbols=new Map),globalThis.__qwik_reg_symbols.set(n,t),t);var Nt;!function(t){t[t.MACRO=240]="MACRO",t[t.MICRO=15]="MICRO",t[t.QRL_RESOLVE=1]="QRL_RESOLVE",t[t.RUN_QRL=2]="RUN_QRL",t[t.TASK=3]="TASK",t[t.NODE_DIFF=4]="NODE_DIFF",t[t.NODE_PROP=5]="NODE_PROP",t[t.COMPONENT=6]="COMPONENT",t[t.RECOMPUTE_AND_SCHEDULE_EFFECTS=7]="RECOMPUTE_AND_SCHEDULE_EFFECTS",t[t.JOURNAL_FLUSH=16]="JOURNAL_FLUSH",t[t.VISIBLE=32]="VISIBLE",t[t.CLEANUP_VISIBLE=48]="CLEANUP_VISIBLE",t[t.WAIT_FOR_ALL=255]="WAIT_FOR_ALL"}(Nt||(Nt={}));const kt=()=>{const t=Xo();let n=t.o;return n||(n=ms(ws(t.l)).parseQRL(decodeURIComponent(String(t.u)))),n.h},At=(...t)=>{const[n]=kt(),e=Xo().p,r=ms(e).$;if(!r)throw s(o.schedulerNotFound);return r(Nt.RUN_QRL,e,n,t)},Rt=t=>ur(br,null,{[p]:""},t.children,0,t.name??""),Ot=Symbol("skip render"),_t=()=>null,Pt=()=>null,Ct=t=>[dr(Pt,{data:"qkssr-pu"}),t.children,dr(Pt,{data:"qkssr-po"})],xt=(t,n)=>dr(wr,{children:dr(Mt,t)},n),Mt=()=>null,Tt=t=>(t.startsWith("on")||t.startsWith("window:on")||t.startsWith("document:on"))&&t.endsWith("$"),It=t=>t.startsWith("on:")||t.startsWith("on-window:")||t.startsWith("on-document:"),qt=t=>{if(t.endsWith("$")){let n=-1;if(t.startsWith("on")?n=2:t.startsWith("window:on")?n=9:t.startsWith("document:on")&&(n=11),-1!=n){const e=Ut(t,n)&&!Ut(t,n+1);e&&n++;let r=n,o="";for(;;){n=t.indexOf("-",r);const s=t.substring(r,-1===n?t.length-1:n);if(o+=e?s:s.toLowerCase(),-1==n)return o;Ut(t,n+1)?(o+="-",n++):(o+=t.charAt(n+1).toUpperCase(),n++),r=n+1}}}return null},jt=t=>{const n=t.indexOf(":");return-1!==n?t.substring(0,n):""},Ut=(t,n)=>45===t.charCodeAt(n),Dt=t=>{if(t.endsWith("$")){let n=null;if(t.startsWith("on")?n="on:":t.startsWith("window:on")?n="on-window:":t.startsWith("document:on")&&(n="on-document:"),null!==n){const e=qt(t);return n+Lt(e)}}return null},Lt=t=>t.replace(/([A-Z-])/g,"-$1").toLowerCase();function Ft(t){return t.startsWith("preventdefault:")}const Wt=t=>a+t;function Vt(t){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&zt(n))return!0;return!1}function zt(t){return"class"===t||"className"===t}const Ht=t=>{if(t){let n=0;do{t=t.substring(0,n)+Wt(t.substring(n))}while(0!==(n=t.indexOf(" ",n)+1))}return t||null},Bt=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"]),Kt=(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)},Qt=t=>{if(!t)return"";if(ut(t))return t.trim();const n=[];if(lt(t))for(const e of t){const t=Qt(e);t&&n.push(t)}else for(const[e,r]of Object.entries(t))r&&n.push(e.trim());return n.join(" ")};function Yt(t,n,e){if(zt(t)){const t=Qt(n);n=e?e+(t.length?" "+t:t):t}else"style"===t?n=(t=>{if(null==t)return"";if("object"==typeof t){if(lt(t))throw s(o.stringifyClassOrStyle,[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()+":"+Jt(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&&Ft(t)&&(n="");return n}const Jt=(t,n)=>"number"!=typeof n||0===n||Bt.has(t)?n:n+"px",Gt=Symbol("store.target"),Xt=Symbol("store.handler"),Zt=Symbol("store.all");var tn;!function(t){t[t.NONE=0]="NONE",t[t.RECURSIVE=1]="RECURSIVE",t[t.IMMUTABLE=2]="IMMUTABLE"}(tn||(tn={}));const nn=t=>t[Xt],en=t=>t?.[Gt]||null,rn=t=>en(t)||t,on=t=>Gt in t;function sn(t,n,e){return new Proxy(n,new un(e,t||null))}const ln=(t,n,e)=>{if(st(t)&&e){let r=e.m.get(t);return r||(r=sn(e,t,n),e.m.set(t,r)),r}return t};class un{S;v;N=null;constructor(t,n){this.S=t,this.v=n}toString(){return"[Store]"}get(t,n){if("symbol"==typeof n)return n===Gt?t:n===Xt?this:t[n];const e=Go(),r=t[n];if(e){if(null===this.v){if(!e.v)return r;this.v=e.v}const o=e.k;o&&cn(t,Array.isArray(t)?Zt:n,this,o)}return"toString"===n&&r===Object.prototype.toString?this.toString:this.S&tn.RECURSIVE&&"object"==typeof r&&null!==r&&!Object.isFrozen(r)&&!on(r)&&!Object.isFrozen(t)?ln(r,this.S,this.v):r}set(t,n,e){if("symbol"==typeof n)return t[n]=e,!0;const r=this.S&tn.RECURSIVE?rn(e):e;return n in t?r!==t[n]&&fn(n,r,t,this):fn(n,r,t,this),!0}deleteProperty(t,n){return"string"==typeof n&&delete t[n]&&(Le(this.v,this,an(t,n,this.N)),!0)}has(t,n){if(n===Gt)return!0;if("string"==typeof n){const e=Go();if(e){const r=e.k;r&&cn(t,Array.isArray(t)?Zt:n,this,r)}}return Object.prototype.hasOwnProperty.call(t,n)}ownKeys(t){const n=Go(),e=n?.k;return e&&cn(t,Zt,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 cn(t,n,e,r){const o=e.N||=new Map;let s=o.get(n);s||(s=new Set,o.set(n,s)),je(s,r),Ue(r,t),De(r,e.v)}function fn(t,n,e,r){e[t]=n,Le(r.v,r,an(e,t,r.N))}function an(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(Zt);if(o){r||=new Set;for(const t of o)r.add(t)}return r||null}const hn=Symbol("invalid"),dn=Symbol("backRef");class pn{[dn]=null}function yn(t,n){Ir(n)&&qr(n)&&ao(n);const e=n[dn];if(e)for(const[,n]of e){const e=n[Te.BACK_REF];if(!e)return;for(const r of e)if(r instanceof qe)$n(t,r,n);else if(t.m.has(r)){const e=t.m.get(r);mn(nn(e),n)}}}function $n(t,n,e){const r=n.N;r&&r.delete(e),n instanceof We&&(n.p=null,yn(t,n))}function mn(t,n){const e=t?.N;if(e)for(const t of e.values())t.delete(n)}const bn=t=>function(n,...e){return t.call(null,pi(n),...e)},wn=t=>new qe(null,t),Sn=t=>(Ce(t),new Fe(null,t)),gn=/*#__PURE__*/bn(Sn),vn=()=>{const t=Zo(),n=t.p;let e=t.v.getHostProp(n,D);null===e&&(e=[],t.v.setHostProp(n,D,e));let r=t.v.getHostProp(n,L);for(null===r&&(r=0),t.v.setHostProp(n,L,r+1);e.length<=r;)e.push(void 0);return{val:e[r],set:t=>e[r]=t,i:r,iCtx:t}};function En(t,n,e){t[dn]||(t[dn]=new Map);const r=t[dn];let o=r.get(n);return o||(o=[t,n],r.set(n,o)),e&&(o[Te.DATA]=e),o}var Nn;!function(t){t[t.VISIBLE_TASK=1]="VISIBLE_TASK",t[t.TASK=2]="TASK",t[t.RESOURCE=4]="RESOURCE",t[t.DIRTY=8]="DIRTY"}(Nn||(Nn={}));const kn=t=>{const{val:n,set:e,iCtx:r,i:o}=vn();if(n)return;e(1);const s=new On(Nn.DIRTY|Nn.TASK,o,r.p,t,void 0,null);e(s);const i=r.v.$(Nt.TASK,s);Z(i)&&i.catch((()=>{}))},An=(t,n,e)=>{t.S&=~Nn.DIRTY,Rn(t);const r=os(n.t,e,void 0,"qTask");r.v=n;const i=t.o.getFn(r,(()=>yn(n,t)));let l=null;const u=r=>{"function"==typeof r&&(l||(l=[],t.A=si((()=>{t.A=null,l.forEach((t=>{try{t()}catch(t){n.handleError(t,e)}}))}))),l.push(r))},c={track:(e,r)=>{const i=os();return i.k=En(t,Ie.COMPONENT),i.v=n,ns(i,(()=>{if(ct(e))return e();if(r)return e[r];if(xe(e))return e.value;if(on(e))return cn(en(e),Zt,nn(e),i.k),e;throw s(o.trackObjectWithoutProp)}))},cleanup:u};return tt((()=>i(c)),u,(r=>{if(Z(r))return r.then((()=>An(t,n,e)));throw r}))},Rn=t=>{const n=t.A;if(n){t.A=null;try{n()}catch(t){r(!1,t)}}};class On extends pn{S;R;O;o;_;A;constructor(t,n,e,r,o,s){super(),this.S=t,this.R=n,this.O=e,this.o=r,this._=o,this.A=s}}const _n=t=>t instanceof On,Pn=(t,n)=>{const[e]=kt(),r=e.S&Nn.VISIBLE_TASK?Nt.VISIBLE:Nt.TASK;ms(n).$(r,e)};var Cn,xn,Mn,Tn,In,qn;!function(t){t[t.Element=1]="Element",t[t.Virtual=2]="Virtual",t[t.ELEMENT_OR_VIRTUAL_MASK=3]="ELEMENT_OR_VIRTUAL_MASK",t[t.ELEMENT_OR_TEXT_MASK=5]="ELEMENT_OR_TEXT_MASK",t[t.TYPE_MASK=7]="TYPE_MASK",t[t.INFLATED_TYPE_MASK=15]="INFLATED_TYPE_MASK",t[t.Text=4]="Text",t[t.Inflated=8]="Inflated",t[t.Resolved=16]="Resolved",t[t.Deleted=32]="Deleted",t[t.NAMESPACE_MASK=192]="NAMESPACE_MASK",t[t.NEGATED_NAMESPACE_MASK=-193]="NEGATED_NAMESPACE_MASK",t[t.NS_html=0]="NS_html",t[t.NS_svg=64]="NS_svg",t[t.NS_math=128]="NS_math"}(Cn||(Cn={})),function(t){t[t.mask=-256]="mask",t[t.negated_mask=255]="negated_mask",t[t.shift=8]="shift"}(xn||(xn={})),function(t){t[t.flags=0]="flags",t[t.parent=1]="parent",t[t.previousSibling=2]="previousSibling",t[t.nextSibling=3]="nextSibling"}(Mn||(Mn={})),function(t){t[t.firstChild=4]="firstChild",t[t.lastChild=5]="lastChild",t[t.element=6]="element",t[t.elementName=7]="elementName",t[t.PROPS_OFFSET=8]="PROPS_OFFSET"}(Tn||(Tn={})),function(t){t[t.node=4]="node",t[t.text=5]="text"}(In||(In={})),function(t){t[t.firstChild=4]="firstChild",t[t.lastChild=5]="lastChild",t[t.PROPS_OFFSET=6]="PROPS_OFFSET"}(qn||(qn={}));const jn=(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)},Un=(t,n,e,r)=>{const o=jn(t,n,r);o>=0?null==e?t.splice(o,2):t[o+1]=e:null!=e&&t.splice(~o,0,n,e)},Dn=(t,n,e)=>{const r=jn(t,n,e);return r>=0?t[r+1]:null},Ln=t=>"foreignObject"===t;function Fn(t,n,e){const r=t.ownerDocument.createElementNS(e,n),o=t.attributes;for(const t of o){const n=t.name;n&&":"!==n&&r.setAttribute(n,t.value)}return r}function Wn(t,n,e,r){Wr(t);let o=t,s=null,i=null,l=null;for(;o;){let u=null,c=null;if(qr(o)){u=o[Tn.element];const t=lo(o),s=Fo(o),f=null==i?n:s&&oo(s);if(f){const t=Vn(f,lo(o));e=t.elementNamespace,r=t.elementNamespaceFlag}c=Fn(u,t,e),u.remove(),null==i&&(i=c),l&&l.appendChild(c);const a=fo(o);if(o[Tn.element]=c,o[Mn.flags]&=Cn.NEGATED_NAMESPACE_MASK,o[Mn.flags]|=r,a){o=a,l=c;continue}if(po(u)){const t=bs(u);if(t){const n=fo(t.rootVNode);if(n){o=n,l=c;continue}}}}if(o===t)return i;const f=To(o);if(f)o=f;else{for(s=Fo(o);s;){if(s===t)return i;const n=To(s);if(n)return o=n,i;s=Fo(s)}if(null==s)return i}}return i}function Vn(t,n){const e=!t||!(!lo(t)||(r=t,r[Mn.flags]&Cn.NAMESPACE_MASK));var r;const o=!e&&Ln(lo(t));let s=M,i=Cn.NS_html;const l="string"==typeof n||qr(n);return l&&function(t){return"string"==typeof t?"svg"===(n=t)||Ln(n):!!(t[Mn.flags]&Cn.NS_svg);var n}(n)?(s=T,i=Cn.NS_svg):l&&function(t){return"string"==typeof t?"math"===t:!!(t[Mn.flags]&Cn.NS_math)}(n)?(s=I,i=Cn.NS_math):!t||o||e||(s=t[Mn.flags]&Cn.NS_svg?T:t[Mn.flags]&Cn.NS_math?I:M,i=t[Mn.flags]&Cn.NAMESPACE_MASK),{elementNamespace:s,elementNamespaceFlag:i}}const zn=(t,n)=>{Qn(Kn(t,void 0),n)},Hn=(t,n)=>{Qn(Kn(t,"document"),n)},Bn=(t,n)=>{Qn(Kn(t,"window"),n)},Kn=(t,n)=>{const e=void 0!==n?n+":":"",r=t=>e+"on"+t.charAt(0).toUpperCase()+t.substring(1)+"$";return Array.isArray(t)?t.map(r):r(t)},Qn=(t,n)=>{const{isAdded:e,addEvent:r}=Yn();e||n&&(Array.isArray(t)?t.forEach((t=>r(t,n))):r(t,n))},Yn=()=>{const t=Zo(),n=t.p;let e=t.v.getHostProp(n,F);null===e&&(e={},t.v.setHostProp(n,F,e));let r=t.v.getHostProp(n,W);null===r&&(r=0),t.v.setHostProp(n,W,r+1);let o=t.v.getHostProp(n,V);for(null===o&&(o=[],t.v.setHostProp(n,V,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)}}},Jn=(t,n,e,r,o)=>{const s=os(t.t,e||void 0,void 0,q);let i;e&&(s.k=En(e,Ie.COMPONENT),s.v=t),t.ensureProjectionResolved(n);let u=!1;if(null===r&&(r=t.getHostProp(n,f)),l(r))(o=o||t.getHostProp(n,U)||yt).children&&delete o.children,i=r.getFn(s);else if(Si(r)){const t=r;i=()=>es(s,t,[o||yt,null,0])}else{u=!0;const t=r;i=()=>es(s,t,[o||yt])}const c=(e=0)=>tt((()=>(u||(t.setHostProp(n,L,null),t.setHostProp(n,W,null),t.setHostProp(n,U,o)),Ir(n)&&yn(t,n),i(o))),(e=>{const r=t.getHostProp(n,F);return r?function(t,n){const e=Xn(t);let r=t;return nt(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]=Zn(r);r=e,t&&Gn(t,"document:onQinit$",n[o])}else if(o.startsWith("document:")||o.startsWith("window:")){const[t,e]=Zn(r);r=e,t&&Gn(t,o,n[o])}}else t&&Gn(t,o,n[o]);return r}))}(e,r):e}),(t=>{if(Z(t)&&e<100)return t.then((()=>c(e++)));throw t}));return c()};function Gn(t,n,e){let r=t.props;r===yt&&(r=t.props={});let o=r[n];void 0===o?o=[]:Array.isArray(o)||(o=[o]),o.push(...e),r[n]=o}function Xn(t){const n=[t];for(;n.length;){const t=n.shift();if(Sr(t)){if("string"==typeof t.type)return t;n.push(t.children)}else if(Array.isArray(t))n.push(...t);else{if(Z(t))return nt(t,(t=>Xn(t)));if(xe(t))return Xn(ss((()=>t.value)))}}return null}function Zn(t){if(Sr(t)){const n=new mr("script",{},{type:"placeholder",hidden:""},null,3);return t.type===Rt?[n,ur(gr,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]=Zn(t[0]);return[n,t]}return[null,null]}const te=Symbol("CONST"),ne=Symbol("VAR"),ee=Symbol("IMMUTABLE");function re(t){return!t.startsWith("q:")&&!t.startsWith(":")}const oe=(t,n,e={})=>{let r=null;const o=t[te];if(o)for(const t in o)n.includes(t)||(r||={},r[t]=o[t]);const s=e,i=t[ne];for(const t in i)n.includes(t)||(s[t]=i[t]);return Er(s,r)};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)+"&lt;";else if(62===e)n+=t.substring(o,r)+"&gt;";else if(38===e)n+=t.substring(o,r)+"&amp;";else if(34===e)n+=t.substring(o,r)+"&quot;";else{if(39!==e)continue;n+=t.substring(o,r)+"&#39;"}o=r+1}return 0===o?t:n+t.substring(o)}const ie=(t,n,e,r)=>{let i=t.P;const l=[],u=[];let a=null,p=null,y=null,$=null,m=-1,b=null,w=null,g=0,v=0,E=!0;return N(n,e),function t(){for(;u.length;){const n=u.shift(),e=u.shift();if(Z(n))return n.then((n=>(N(n,e),t())));N(n,e)}}();function N(n,e){for(Ir(n),Ir(e),a=e,y=null,p=fo(e),x(n,!0);l.length;){for(;g<v;){if("string"==typeof w)Q(w);else if("number"==typeof w)Q(String(w));else if(w&&"object"==typeof w){if(Array.isArray(w))O(w,!1);else if(xe(w))p&&yn(t,p),V(0,null),O(us(w,y||p,Ie.VNODE,t),!0);else if(Z(w))V(0,null),u.push(w,y||p);else if(Sr(w)){const t=w.type;"string"==typeof t?(D(),L(w,t),O(w.children,!0)):"function"==typeof t&&(t===gr?(D(),V(0,w.key),O(w.children,!0)):t===Rt?(D(),I()||O(w.children,!0)):t===ce?(T(),O(w.children,!0)):t===Pt||t===_t?q():(D(),z(t)))}}else w===Ot?i=[]:Q("");k()}q(),P()}}function k(){if(E){if(g++,g<v)w=b[g];else if(!1===l[l.length-1])return P();null!==y?y=null:R()}else E=!0}function A(){if(null!==$){const t=m+ye.NextVNode;return t<$.length?$[t]:null}return p?To(p):null}function R(){p=A(),null!==$&&(m+=ye.Size)}function O(n,e){null!=n?(x(n,e),e&&($=null,m=-1,a=y||p,p=fo(a),y=null),E=!1):function(){const n=p&&fo(p);if(null!==n){let e=n;for(;e;)ae(t,e),e=To(e);io(i,p,n)}}()}function P(){l.pop()&&(m=l.pop(),$=l.pop(),y=l.pop(),p=l.pop(),a=l.pop()),w=l.pop(),v=l.pop(),g=l.pop(),b=l.pop(),k()}function x(t,n){l.push(b,g,v,w),n&&l.push(a,p,y,$,m),l.push(n),Array.isArray(t)?(g=0,v=t.length,b=t,w=v>0?t[0]:null):void 0===t?(g=0,w=null,b=null,v=0):(g=0,w=t,b=null,v=1)}function M(){if(y)return p;if(null!==$){const t=m+ye.NextVNode;return t<$.length?$[t]:null}return A()}function T(){const n=w.key;p=Uo(a,n,(n=>Yr(t.rootVNode,n))),p=p&&p[Mn.flags]&Cn.Deleted?null:p,null==p&&(y=Tr(),Do(y,h,n),Do(y,d,a),Do(a,n,y))}function I(){const n=Qo(a,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 We)return us(e,n,Ie.COMPONENT,t)}return kr(e,"name")||""}(n),r=n?Uo(n,e,null):null;if(null==r)return eo(i,a,y=Tr(),p&&M()),Do(y,h,e),n&&Do(n,e,y),!1;if(r===p);else{const t=Fo(r);!(!t||qr(t)&&lo(t)===C)&&a!==t&&so(i,t,r,!1),eo(i,a,y=r,p&&M()),Do(y,h,e),n&&Do(n,e,y)}return!0}function q(){if(null!==p)for(;p;){const n=p;R(),a===Fo(n)&&(ae(t,n),so(i,a,n,!0))}}function D(){for(;null!==p&&jr(p);){ae(t,p);const n=p;R(),so(i,a,n,!0)}}function L(n,e){const l=p&&qr(p)&&e===lo(p),u=n.key;let f=!1;const h=function(t){if(!t)return null;const n=t.fileName?.replace(/\\/g,"/");return n?`${n}:${t.lineNumber}:${t.columnNumber}`:null}(n.dev);l&&u===le(p)||(y=W(e,u),null===y?f=function(n,e){const l=function(n){const e=oo(a),{elementNamespace:r,elementNamespaceFlag:o}=Vn(e,n),s=t.document.createElementNS(r,n);return y=Cr(s,n),y[Mn.flags]|=o,s}(e),{constProps:u}=n;let f=!1;if(u)for(const n in u){let a=u[n];if(Tt(n)){const t=qt(n),e=jt(n);if(t&&(Do(y,pe+":"+e+":"+t,a),F(t)),e){const t=Dt(n);t&&qo(i,y,t,"")}f=!0}else{if("ref"===n){if(xe(a)){a.value=l;continue}if("function"==typeof a){a(l);continue}if(null==a)continue;throw s(o.invalidRefValue,[undefined])}if(xe(a)){const e=new Me({C:r,M:!0});a=us(a,y,n,t,e)}if(n!==H)if("textarea"!==e||"value"!==n)a=Yt(n,a,r),null!=a&&l.setAttribute(n,String(a));else{if(a&&"string"!=typeof a)continue;l.value=se(a||"")}else l.innerHTML=a,l.setAttribute(_,c.HTML)}}const h=n.key;return h&&(l.setAttribute(j,h),Do(y,j,h)),!(Vt(n.varProps)||n.constProps&&Vt(n.constProps))&&r&&l.setAttribute("class",r),eo(i,a,y,p),f}(n,e):(eo(i,a,y,p),p=y,y=null,null!==$&&(m-=ye.Size)));const d=[],b=n.varProps;for(const t in b){const n=b[t];null!=n&&Un(d,t,n,0)}null!==u&&Un(d,j,u,0);const w=y||p;if(f=function(n,e,l){zr(n);const u=Lo(n);let c=0;const f=e.length;let a=0,h=u.length,d=c<f?e[c++]:null,p=a<h?u[a++]:null,y=!1;const $=(e,c)=>{if(e.startsWith(":"))Do(n,e,c);else{if("ref"===e){const t=Wo(n);if(xe(c))return void(c.value=t);if("function"==typeof c)return void c(t);if(null==c)return;throw s(o.invalidRefValue,[l])}if(xe(c)){const o=new Me({C:r,M:!1});c=us(c,n,e,t,o)}qo(i,n,e,Yt(e,c,r)),null===c&&(h=u.length)}},m=(t,n)=>{const e=qt(t),r=jt(t);if(e&&($(":"+r+":"+e,n),F(e)),r){const n=Dt(t);n&&$(n,"")}};for(;null!==d||null!==p;)if(p?.startsWith(pe)||p?.startsWith("q:"))a++,p=a<h?u[a++]:null;else if(null==d)p&&It(p)?(y=!0,a++):($(p,null),a--),p=a<h?u[a++]:null;else if(null==p)Tt(d)?(y=!0,m(d,e[c])):$(d,e[c]),c++,d=c<f?e[c++]:null,a++,p=a<h?u[a++]:null;else if(d==p){const t=e[c++];t!==u[a++]&&$(p,t),d=c<f?e[c++]:null,p=a<h?u[a++]:null}else d<p?(Tt(d)?(y=!0,m(d,e[c])):$(d,e[c]),c++,d=c<f?e[c++]:null,a++,p=a<h?u[a++]:null):(It(p)?(y=!0,a++):($(p,null),a--),p=a<h?u[a++]:null);return y}(w,d,h)||f,f){const n=Wo(w);n.qDispatchEvent||(n.qDispatchEvent=(e,r)=>{const o=e.type,s=":"+r.substring(1)+":"+o,i=[Uo(w,s,null),Uo(w,pe+s,null)];let l=!1;return i.flat(2).forEach((r=>{if(r){const o=t.$(Nt.RUN_QRL,w,r,[e,n]);l=l||!0===o}})),l})}}function F(n){const e=t.document.defaultView;e&&(e.qwikevents||=[]).push(n)}function W(n,e){let r=null;if(-1===m){$=[],m=0;let o=p;for(;o;){const s=qr(o)?lo(o):null,i=le(o)||ue(o,t.T);null===r&&i==e&&s==n?r=o:$.push(s,i,o),o=To(o)}}else for(let t=m;t<$.length;t+=ye.Size)if($[t+ye.Key]===e&&$[t+ye.Name]===n){r=$[t+ye.VNode],$?.splice(t,ye.Size);break}return r}function V(t,n){p&&Ur(p)&&le(p)===n||(null===n||(y=W(null,n),null==y)?(eo(i,a,y=Tr(),p&&M()),Do(y,j,n)):eo(i,a,y,p&&M()))}function z(n){const e=n[wi];let r=y||p;const o=w;if(e){const n=o.props;let s=!1;const[l]=e,u=l.I,c=ue(r,t.T),f=o.key||u;if(f===(le(r)||c)?u===c||(B(r,l,n),r=y,s=!0):(y=W(null,f),y?eo(i,a,y,p):B(r,l,n),r=y,s=!0),r){const e=Uo(r,U,t.T);s=s||function(t,n){if(!t||!n)return!0;let e=fe(Object.keys(t),["children",S]),r=fe(Object.keys(n),["children",S]);if(e.length!==r.length)return!0;e=e.sort(),r=r.sort();for(let o=0;o<e.length;o++){const s=e[o],i=r[o];if(s!==i||t[s]!==n[i])return!0}return!1}(n,e),s&&(r[Mn.flags]&=~Cn.Deleted,t.$(Nt.COMPONENT,r,l,n))}!function(t,n){const e=Array.isArray(t)?t:[t],r=t=>new mr(ce,yt,null,[],0,t),o=[];if(n){const t=Lo(n);for(let n=0;n<t.length;n+=2){const e=t[n];if(re(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(Sr(n)&&kr(n,h)||""),i=jn(o,s,0);let l;i>=0?l=o[i+1]:o.splice(~i,0,s,l=r(s)),!1===n||l.children.push(n)}for(let t=o.length-2;t>=0;t-=2)o.splice(t,1);O(o,!0)}}(o.children,r)}else{const e=o.key,s=e===le(r),l=ue(r,t.T);if(s?null!=l&&(K(),r=y):(y=W(null,e),y?eo(i,a,y,p):K(),r=y),r){let e=r;for(;e&&(!Ur(e)||null===Uo(e,f,null));)e=Fo(e);const s=Jn(t,r,e||t.rootVNode,n,o.props);u.push(s,r)}}}function B(n,e,r){n&&yn(t,n),eo(i,a,y=Tr(),p&&M());const o=w;t.setHostProp(y,f,e),t.setHostProp(y,U,r),t.setHostProp(y,j,o.key)}function K(){eo(i,a,y=Tr(),p&&M());const t=w;Do(y,U,t.props),t.key&&Do(y,j,t.key)}function Q(n){if(null!==p&&3===Bo(p))return n!==uo(p)?void co(i,p,n):void 0;eo(i,a,y=Mr(t.document.createTextNode(n),n),p)}};function le(t){return null==t?null:Uo(t,j,null)}function ue(t,n){if(null==t)return null;const e=Uo(t,f,n);return e?e.I:null}function ce(){}function fe(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 ae(t,n){let e=n;if(jr(n))return void de(e);let r=null;for(;;){const o=e[Mn.flags];if(o&Cn.ELEMENT_OR_VIRTUAL_MASK){if(yn(t,e),de(e),o&Cn.Virtual){const n=t.getHostProp(e,D);if(n)for(let e=0;e<n.length;e++){const r=n[e];if(_n(r)){const n=r;yn(t,n),n.S&Nn.VISIBLE_TASK?t.$(Nt.CLEANUP_VISIBLE,n):Rn(n)}}}if(o&Cn.Virtual&&null!==Uo(e,f,null)){const n=Lo(e);for(let e=0;e<n.length;e+=2)if(re(n[e])){const r=n[e+1];if(r){n[e+1]=null;const o="string"==typeof r?Yr(t.rootVNode,r):r;let s=fo(o);for(;s;)ae(t,s),s=To(s);he(t.P,o)}}}if(Dr(e)){if(e===n){const t=fo(e);if(t)return void Hr(t)}}else{const t=fo(e);if(t){e=t;continue}}}else o&Cn.Text&&de(e);if(e===n)return;const s=To(e);if(s)e=s;else{for(r=Fo(e);r;){if(r===n)return;const t=To(r);if(t){e=t;break}r=Fo(r)}if(null==r)return}}}function he(t,n){const e=Fo(n);e&&e[Mn.flags]&Cn.Element&&lo(e)===C&&so(t,e,n,!0)}function de(t){t[Mn.flags]|=Cn.Deleted}const pe=":";var ye;!function(t){t[t.Name=0]="Name",t[t.Key=1]="Key",t[t.VNode=2]="VNode",t[t.Size=3]="Size",t[t.NextVNode=5]="NextVNode"}(ye||(ye={}));const $e=(t,n)=>{const{val:e,set:r,i:o,iCtx:s}=vn();if(null!=e)return e;const i=s.v,l=be(i,n),u=new On(Nn.DIRTY|Nn.RESOURCE,o,s.p,t,l,null);return i.$(Nt.TASK,u),r(l),l},me=t=>ur(gr,null,null,function(t){const n=t.value;if(we(n)&&n.value){{const e=n._state;if("pending"===e&&t.onPending)return Promise.resolve().then(ts(t.onPending));if("rejected"===e&&t.onRejected)return Promise.resolve(n._error).then(ts(t.onRejected));{const e=ss((()=>n._resolved));if(void 0!==e)return Promise.resolve(e).then(ts(t.onResolved))}}return n.value.then(ts(t.onResolved),ts(t.onRejected))}return Z(n)?n.then(ts(t.onResolved),ts(t.onRejected)):xe(n)?Promise.resolve(n.value).then(ts(t.onResolved),ts(t.onRejected)):Promise.resolve(n).then(ts(t.onResolved),ts(t.onRejected))}(t),0,null),be=(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,sn(t,r,tn.RECURSIVE)},we=t=>it(t)&&"resource"===(en(t)||t).__brand,Se=(t,n,e)=>{t.S&=~Nn.DIRTY,Rn(t);const r=os(n.t,e,void 0,"qResource");r.v=n;const o=t.o.getFn(r,(()=>yn(n,t))),s=t._,i=[];t.A=si((()=>{i.forEach((t=>{try{t()}catch(t){n.handleError(t,e)}})),a=!0}));const l=rn(s),u={track:(e,r)=>{const o=os();return o.k=En(t,Ie.COMPONENT),o.v=n,ns(o,(()=>ct(e)?e():r?e[r]:xe(e)?e.value:e))},cleanup(t){"function"==typeof t&&i.push(t)},cache(t){let n=0;n="immutable"===t?1/0:t,s._cache=n},previous:l._resolved};let c,f,a=!1;const h=(t,n)=>!a&&(a=!0,t?(a=!0,s.loading=!1,s._state="resolved",s._resolved=n,s._error=void 0,c(n)):(a=!0,s.loading=!1,s._state="rejected",s._error=n,f(n)),!0);i.push((()=>{if(!0===ss((()=>s.loading))){const t=ss((()=>s._resolved));h(!0,t)}})),ns(r,(()=>{s._state="pending",s.loading=!0,(s.value=new Promise(((t,n)=>{c=t,f=n}))).catch(ge)}));const d=tt((()=>Promise.resolve(o(u))),(t=>{h(!0,t)}),(r=>{if(Z(r))return r.then((()=>Se(t,n,e)));h(!1,r)})),p=l._timeout;return p>0?Promise.race([d,rt(p).then((()=>{h(!1,new Error("timeout"))&&Rn(t)}))]):d},ge=()=>{},ve=[],Ee=[],Ne=[],ke=[],Ae=t=>t.q||=new Promise((n=>{t.j=n})),Re=(t,n,e)=>{const r=[],o=[];let s=null,i=!1;return function e(o,s=null,u=null,f=null){const a=!Ss(t),h=o!==Nt.WAIT_FOR_ALL&&!(a&&o===Nt.COMPONENT)&&o!==Nt.RUN_QRL,d=o===Nt.TASK||o===Nt.VISIBLE||o===Nt.CLEANUP_VISIBLE;if(a&&(o===Nt.JOURNAL_FLUSH||o===Nt.NODE_DIFF||o===Nt.NODE_PROP))return;d&&(s.S|=Nn.DIRTY);let p={U:o,D:d?s.R:"string"==typeof u?u:0,L:d?s.O:s,F:u,W:d?s:f,j:null,q:null,H:null,B:!1};return p=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),i=c(n,t[s],e);if(i<0)o=s;else{if(!(i>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 o.U===Nt.NODE_DIFF&&(o.W=n.W),o.B&&(o.B=!1),o}(r,p,t.rootVNode||null),!i&&h&&(i=!0,e(Nt.JOURNAL_FLUSH),n()?.catch?.((()=>{}))),h?Ae(p):l(p,a)};function l(n,e){let o=5e3;for(;r.length;){if(o--<0)throw new Error("drainUpTo: max retries reached");if(s)return Ae(s).then((()=>l(n,e))).catch((n=>{t.handleError(n,s?.L)}));const c=r[0];if(c.B){if(r.shift(),c===n)break}else(i=c).L&&Ir(i.L)&&i.L[Mn.flags]&Cn.Deleted&&c.U!==Nt.CLEANUP_VISIBLE?r.shift():u(c,e)}var i;return n.H}function u(n,r){const l=n.L;s=n;let u=null;try{switch(n.U){case Nt.WAIT_FOR_ALL:r&&(i=!1);break;case Nt.JOURNAL_FLUSH:u=e(),i=!1;break;case Nt.COMPONENT:u=tt((()=>Jn(t,l,l,n.F,n.W)),(n=>{if(r)return n;{const e=t.getHostProp(l,b);return ot((()=>ie(t,n,l,Ht(e))))}}),(n=>t.handleError(n,l)));break;case Nt.RUN_QRL:{const e=n.F.getFn(),r=ot((()=>e(...n.W)));if(Z(r)){const e=r.finally((()=>{o.splice(o.indexOf(e),1)})).catch((e=>{t.handleError(e,n.L)}));return o.push(e),n.H=e,n.j?.(e),s=null,void(n.B=!0)}u=null}break;case Nt.TASK:case Nt.VISIBLE:{const e=n.W;if(e.S&Nn.RESOURCE){const n=Se(e,t,l);u=r?n:null}else u=An(e,t,l)}break;case Nt.CLEANUP_VISIBLE:Rn(n.W);break;case Nt.NODE_DIFF:{const e=n.F;let r=n.W;xe(r)&&(r=r.value),u=ot((()=>ie(t,r,e,null)))}break;case Nt.NODE_PROP:{const e=n.L,r=n.W;let o=r.K;xe(o)&&(o=o.value);const s=r.M,i=t.P,l=n.D,u=Yt(l,o,r.C);s?i.push(Pr.SetAttribute,e[Tn.element],l,u):qo(i,e,l,u)}break;case Nt.QRL_RESOLVE:{const t=n.F;u=t.resolved?null:t.resolve()}break;case Nt.RECOMPUTE_AND_SCHEDULE_EFFECTS:{const e=n.F,r=e.Y;if(e.Y=!1,!e.N?.size)break;u=ot((()=>{(e.J()||r)&&Le(t,e,e.N)}))}}}catch(t){u=Promise.reject(t)}const c=(e,r)=>{s=null,n.B=!0,r?t.handleError(r,l):(n.H=e,n.j?.(e))};Z(u)?(n.q=u.then(c,(t=>c(void 0,t))),n.j?.(n.q),n.j=void 0):c(u)}function c(t,n,e){const r=(t.U&Nt.MACRO)-(n.U&Nt.MACRO);if(0!==r)return r;const o=t.L,i=n.L;if(o!==i&&null!==o&&null!==i)if(Ir(o)&&Ir(i)){const t=((t,n,e)=>{if(t===n)return 0;let r=-1,o=-1;for(;t;)t=(ve[++r]=t)[Mn.parent]||e&&Uo(t,d,(t=>Yr(e,t)));for(;n;)n=(Ee[++o]=n)[Mn.parent]||e&&Uo(n,d,(t=>Yr(e,t)));for(;r>=0&&o>=0;){if((t=ve[r])!==(n=Ee[o])){let r=n;do{if(r=To(r),r===t)return 1}while(r);r=n;do{if(r=Io(r),r===t)return-1}while(r);return e&&Uo(n,d,(t=>Yr(e,t)))?-1:1}r--,o--}return r<o?-1:1})(o,i,e);if(0!==t)return t}else{Ir(o),Ir(i),o.toString();const t=((t,n)=>{if(t===n)return 0;let e=-1,r=-1;for(;t;)t=(Ne[++e]=t).currentComponentNode;for(;n;)n=(ke[++r]=n).currentComponentNode;for(;e>=0&&r>=0;){if((t=Ne[e])!==(n=ke[r]))return 1;e--,r--}return e<r?-1:1})(o,i);if(0!==t)return t}const l=(t.U&Nt.MICRO)-(n.U&Nt.MICRO);if(0!==l)return l;const u=Oe(t.D)-Oe(n.D);return 0!==u?u:t.F!==n.F||t.W!==n.W||n===s?1:0}},Oe=t=>"number"==typeof t?t:-1;var _e,Pe;!function(t){t[t.INVALID=1]="INVALID"}(_e||(_e={})),function(t){t[t.UNWRAP=2]="UNWRAP"}(Pe||(Pe={}));const Ce=t=>{if(!t.resolved)throw t.resolve()},xe=t=>t instanceof qe;class Me{data;constructor(t){this.data=t}}var Te,Ie;!function(t){t[t.CONSUMER=0]="CONSUMER",t[t.PROPERTY=1]="PROPERTY",t[t.BACK_REF=2]="BACK_REF",t[t.DATA=3]="DATA"}(Te||(Te={})),function(t){t.COMPONENT=":",t.VNODE="."}(Ie||(Ie={}));class qe{G;N=null;v=null;constructor(t,n){this.v=t,this.G=n}get untrackedValue(){return this.G}set untrackedValue(t){this.G=t}get value(){const t=Go();if(t){if(null===this.v){if(!t.v)return this.untrackedValue;this.v=t.v}const n=t.k;if(n){const t=this.N||=new Set;je(t,n),Ue(n,this),De(n,this.v)}}return this.untrackedValue}set value(t){t!==this.G&&(this.G=t,Le(this.v,this,this.N))}valueOf(){}toString(){return`[${this.constructor.name}${this.S&_e.INVALID?" INVALID":""} ${String(this.G)}]`+(Array.from(this.N||[]).map((t=>"\n -> "+Or(Rr(t[0])," "))).join("\n")||"")}toJSON(){return{value:this.G}}}const je=(t,n)=>{t.add(n)},Ue=(t,n)=>{t[Te.BACK_REF]||=new Set,t[Te.BACK_REF].add(n)},De=(t,n)=>{if(n&&!Ss(n)){const e=t[Te.CONSUMER],r=t[Te.PROPERTY];let o=null;_n(e)?o=e.o:e instanceof Fe?o=e.X:r===Ie.COMPONENT&&(o=n.getHostProp(e,f)),o&&n.serializationCtx.Z.add(o)}},Le=(t,n,e)=>{const r=Ss(t);if(e){const o=e=>{const o=e[Te.CONSUMER],s=e[Te.PROPERTY];if(_n(o)){o.S|=Nn.DIRTY;let n=Nt.TASK;o.S&Nn.VISIBLE_TASK&&(n=Nt.VISIBLE),t.$(n,o)}else if(o instanceof qe)o instanceof Fe&&(o.X.resolved||t.$(Nt.QRL_RESOLVE,null,o.X)),o.tt();else if(s===Ie.COMPONENT){const n=o,e=t.getHostProp(n,f),r=t.getHostProp(n,U);t.$(Nt.COMPONENT,n,e,r)}else if(r)if(s===Ie.VNODE)t.$(Nt.NODE_DIFF,o,o,n);else{const r=e[Te.DATA];if(r instanceof Me){const e={...r.data,K:n};t.$(Nt.NODE_PROP,o,s,e)}}};for(const t of e)o(t)}};class Fe extends qe{X;S;Y=!1;[dn]=null;constructor(t,n,e=_e.INVALID){super(t,hn),this.X=n,this.S=e}tt(){this.S|=_e.INVALID,this.Y=!1,this.v?.$(Nt.RECOMPUTE_AND_SCHEDULE_EFFECTS,null,this)}force(){this.S|=_e.INVALID,this.Y=!1,Le(this.v,this,this.N)}get untrackedValue(){const t=this.J();return t&&(this.Y=t),this.G}J(){if(!(this.S&_e.INVALID))return!1;const t=this.X;Ce(t);const n=Go(),e=n?.k;n&&(n.k=En(this,Ie.VNODE));try{const e=t.getFn(n)();if(Z(e))throw s(o.computedNotSync,[t.dev?t.dev.file:"",t.I]);this.S&=~_e.INVALID;const r=e!==this.G;return r&&(this.G=e),r}finally{n&&(n.k=e)}}get value(){return super.value}set value(t){throw s(o.computedReadOnly)}}class We extends qe{nt;et;rt;S;p=null;Y=!1;[dn]=null;constructor(t,n,e,r,o=_e.INVALID|Pe.UNWRAP){super(t,hn),this.nt=e,this.et=n,this.rt=r,this.S=o}tt(){this.S|=_e.INVALID,this.Y=!1,this.v?.$(Nt.RECOMPUTE_AND_SCHEDULE_EFFECTS,this.p,this)}force(){this.S|=_e.INVALID,this.Y=!1,Le(this.v,this,this.N)}get untrackedValue(){const t=this.J();return t&&(this.Y=t),this.G}J(){if(!(this.S&_e.INVALID))return!1;const t=ls((()=>this.et(...this.nt)),this,Ie.VNODE,this.v),n=t!==this.G;return n&&(this.G=t),n}get value(){return super.value}set value(t){throw s(o.wrappedReadOnly)}}class Ve{ot;st;constructor(t,n){this.ot=t,this.st=n}}async function ze(t,n,e){const r=[n],o=t=>r.push(t);await(async()=>{for(;r.length;){const n=r.pop();if(n instanceof Ve)e.currentStyleScoped=n.ot,e.parentComponentFrame=n.st;else if("function"!=typeof n)He(t,o,n,{styleScoped:e.currentStyleScoped,parentComponentFrame:e.parentComponentFrame});else{if(n===Promise){r.push(await r.pop());continue}await n.apply(t)}}})()}function He(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(xe(e)){t.openFragment(pt);const r=t.getLastNode();n(t.closeFragment),n(us(e,r,Ie.VNODE,t))}else if(Z(e))t.openFragment(pt),n(t.closeFragment),n(e),n(Promise),n((()=>t.commentNode(z)));else if(function(t){return!!t[Symbol.asyncIterator]}(e))n((async()=>{for await(const n of e)await ze(t,n,{currentStyleScoped:r.styleScoped,parentComponentFrame:r.parentComponentFrame}),t.commentNode(z)}));else{const o=e,s=o.type;if("string"==typeof s){!function(t,n){null==kr(t,"class")&&n&&(t.constProps||(t.constProps={}),t.constProps.class="")}(o,r.styleScoped);let e=null;const i=t.openElement(s,Be(o.varProps,o.constProps,t.serializationCtx,!0,r.styleScoped,o.key),Be(o.constProps,o.varProps,t.serializationCtx,!1,r.styleScoped),e);i&&t.htmlNode(i),n(t.closeElement),"head"===s?(n(t.additionalHeadNodes),n(t.emitQwikLoaderAtTopIfNeeded)):"body"===s&&n(t.additionalBodyNodes);const l=o.children;null!=l&&n(l)}else if(ct(s))if(s===gr){t.openFragment(null!=o.key?[j,o.key]:pt),t.addCurrentElementFrameAsComponentChild(),n(t.closeFragment);const e=o.children;null!=e&&n(e)}else if(s===Rt){const e=r.parentComponentFrame||t.unclaimedProjectionComponentFrameQueue.shift();if(e){const s=[];s.push(d,e.componentNode.id||""),t.openProjection(s);const i=e.componentNode,l=t.getLastNode(),u=function(t,n,e){const r=n.constProps;if(r&&"object"==typeof r&&"name"in r){const n=r.name;if(n instanceof We)return us(n,t,Ie.COMPONENT,e)}return kr(n,"name")||""}(i,o,t);s.push(h,u),n(new Ve(r.styleScoped,r.parentComponentFrame)),n(t.closeProjection);const c=o.children||null,f=e.consumeChildrenForSlot(l,u)||c;c&&f!==c&&t.addUnclaimedProjection(e,"",c),n(f),n(new Ve(e.projectionScopedStyle,e.projectionComponentFrame))}else t.openFragment(pt),t.closeFragment()}else if(s===Pt)t.commentNode(kr(o,"data")||"");else if(s===xt){t.commentNode(z);const e=o.children;let s;s=ct(e)?e({async write(n){await ze(t,n,{currentStyleScoped:r.styleScoped,parentComponentFrame:r.parentComponentFrame}),t.commentNode(z)}}):e,n(s),Z(s)&&n(Promise)}else if(s===_t)t.htmlNode(kr(o,"data"));else if(Si(s)){t.openComponent([]);const e=t.getLastNode(),i=t.getParentComponentFrame();i.distributeChildrenIntoSlots(o.children,r.styleScoped,r.parentComponentFrame);const l=((t,n,e)=>{const r=t.getLastNode(),[o]=e[wi],s=n.props;s&&s.children&&delete s.children;const i=t.$;return r.setProp(f,o),r.setProp(U,s),null!==n.key&&r.setProp(j,n.key),i(Nt.COMPONENT,r,o,s)})(t,o,s),u=Ht(e.getProp(b));n(new Ve(r.styleScoped,r.parentComponentFrame)),n(t.closeComponent),n(l),Z(l)&&n(Promise),n(new Ve(u,i))}else{t.openFragment([j,o.key]),n(t.closeFragment);const e=t.getComponentFrame(0),r=((t,n,e,r)=>{const o=t.getLastNode();return Jn(t,o,n,e,r.props)})(t,e&&e.componentNode,s,o);n(r),Z(r)&&n(Promise)}}}function Be(t,n,e,r,o,s){if(null==t)return null;const i=[];for(const s in t){let l=t[s];if(Tt(s)){if(n){const t=Qe(n,s);if(t){if(!r)continue;l=Ke(l,t)}}const t=Ye(e,s,l);t&&i.push(Dt(s),t)}else xe(l)?zt(s)?i.push(s,[l,o]):i.push(s,l):(Ft(s)&&Ge(e,s),l=Yt(s,l,o),i.push(s,l))}return null!=s&&i.push(j,s),i}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 Qe(t,n){const e=n.toLowerCase();for(const n in t)if(n.toLowerCase()===e)return t[n];return null}function Ye(t,n,e){let r=null;const o=e,s=t=>{r=(null==r?"":r+"\n")+t},i=n=>(n.it.startsWith("_")||!n.h&&!n.lt||(n=li(null,"_run",At,null,null,[n])),Fs(t,n));if(Array.isArray(o))for(let e=0;e<=o.length;e++){const r=o[e];if(l(r))s(i(r)),Je(t,n,r);else if(null!=r){const e=Ye(t,n,r);e&&s(e)}}else l(o)&&(r=i(o),Je(t,n,o));return r}function Je(t,n,e){const r=qt(n);r&&(t.ut.add(r),t.Z.add(e))}function Ge(t,n){const e=n.substring(15);e&&t.ut.add(e)}const Xe="2.0.0-alpha.8-dev+66037b5";class Ze{ct;$;m;t;T;ft;ht=0;dt=null;constructor(t,n,e,r){this.ft=e,this.t=r,this.ct=Xe,this.m=new WeakMap,this.T=()=>{throw Error("Not implemented")},this.$=Re(this,t,n)}trackSignalValue(t,n,e,r){return us(t,n,e,this,r)}serializationCtxFactory(t,n,e,r,o){return Ts(t,n,e,this.getHostProp.bind(this),this.setHostProp.bind(this),this.m,r,o)}}const tr=t=>t.value,nr=(t,n)=>t[n],er=t=>new We(null,1===t.length?tr:nr,t,null),rr=(...t)=>{const n=t[0],e=t.length<2?"value":t[1];if(!it(n))return n[e];if(xe(n))return n instanceof We&&n.flags&Pe.UNWRAP?n:er(t);if($r(n)){const t=n[te];if(t&&e in t)return t[e]}else{const r=en(n);if(r){const n=r[e];return xe(n)?n:er(t)}}return er(t)},or=(t,n)=>{const e=en(t)[n];return xe(e)?e:new We(null,nr,[t,n],null,_e.INVALID)},sr=(t,n)=>{const e=rr(t,n);return e===ee?t[n]:e},ir=(t,n,e)=>new We(null,t,n,e||null);function lr(t){return null===t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t}const ur=(t,n,e,r,o,s)=>{const i=null==s?null:String(s);return new mr(t,n||{},e||null,r,o,i)},cr=(t,n,e,r,o,s,i)=>{let l;return l=n?Object.fromEntries(ss((()=>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?yt:{},e&&"children"in e&&(r=e.children,e.children=void 0),ur(t,l,e,r,o,s,i)},fr=(t,n,e,r)=>dr(t,n,r),ar=(t,n,e,r,o)=>dr(t,{...e,...n},o),hr=(t,n,e,r,o,s)=>dr(t,{...e,...n,children:r},s),dr=(t,n,e)=>cr(t,n,null,null,0,e||null),pr=(t,n)=>{n||(n=[]);for(const e of t)lt(e)?pr(e,n):n.push(e);return n};function yr(t,n,...e){const r={children:arguments.length>2?pr(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"),cr(t,n,null,r.children,0,o)}const $r=t=>t&&void 0!==t[ne];class mr{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=Er(this.varProps,this.constProps,this.children)),this._proxy}}const br=t=>t.children,wr=(t,n)=>new mr(br,yt,null,t.children,2,n),Sr=t=>t instanceof mr,gr=t=>t.children,vr=(t,n,e,r,o)=>{const s=null==e?null:String(e),i=ss((()=>{const e=n.children;return"string"==typeof t&&delete n.children,e}));ut(t)&&"className"in n&&(n.class=n.className,delete n.className);const l=new mr(t,n,null,i,0,s);return l.dev={stack:(new Error).stack,...o},l};function Er(t,n,e){return new Proxy({},new Nr(t,n,e))}class Nr{yt;$t;bt;constructor(t,n,e){this.yt=t,this.$t=n,this.bt=e}get(t,n){if(n===te)return this.$t;if(n===ne)return this.yt;if(null!=this.bt&&"children"===n)return this.bt;const e=this.$t&&n in this.$t?this.$t[n]:this.yt[n];return e instanceof We&&e.S&Pe.UNWRAP?e.value:e}set(t,n,e){return n===te?(this.$t=e,!0):n===ne?(this.yt=e,!0):(this.$t&&n in this.$t?this.$t[n]=e:this.yt[n]=e,!0)}deleteProperty(t,n){if("string"!=typeof n)return!1;let e=delete this.yt[n];return this.$t&&(e=delete this.$t[n]||e),null!=this.bt&&"children"===n&&(this.bt=null),e}has(t,n){return"children"===n&&null!=this.bt||n===te||n===ne||n in this.yt||!!this.$t&&n in this.$t}getOwnPropertyDescriptor(t,n){return{configurable:!0,enumerable:!0,value:"children"===n&&null!=this.bt?this.bt:this.$t&&n in this.$t?this.$t[n]:this.yt[n]}}ownKeys(){const t=Object.keys(this.yt);if(null!=this.bt&&-1===t.indexOf("children")&&t.push("children"),this.$t)for(const n in this.$t)-1===t.indexOf(n)&&t.push(n);return t}}const kr=(t,n)=>t.constProps&&n in t.constProps?t.constProps[n]:t.varProps[n],Ar=[];function Rr(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(_n(t))return`Task(${Rr(t.o)})`;if((t=>"function"==typeof t&&"function"==typeof t.getSymbol)(t))return`Qrl(${t.it})`;if("object"==typeof t||"function"==typeof t){if(Ar.includes(t))return"*";try{if(Ar.push(t),Array.isArray(t))return Ir(t)?"("+Uo(t,"q:type",null)+")":t.map(Rr);if(xe(t))return t instanceof We?"WrappedSignal":t instanceof Fe?"ComputedSignal":"Signal";if(on(t))return"Store";if(Sr(t))return _r(t)}finally{Ar.pop()}}return t}const Or=(t,n)=>String(t).split("\n").map(((t,e)=>(e?n:"")+t)).join("\n"),_r=t=>{if(Sr(t)){let n=t.type;"function"==typeof n&&(n=n.name||"Component");let e="<"+t.type;if(t.props){for(const[n,r]of Object.entries(t.props))e+=" "+n+"="+Rr(r);const n=t.children;null!=n?(e+=">",Array.isArray(n)?n.forEach((t=>{e+=_r(t)})):e+=_r(n),e+="</"+t.type+">"):e+="/>"}return e}return String(t)};var Pr;!function(t){t[t.SetText=1]="SetText",t[t.SetAttribute=2]="SetAttribute",t[t.HoistStyles=3]="HoistStyles",t[t.Remove=4]="Remove",t[t.Insert=5]="Insert"}(Pr||(Pr={}));const Cr=(t,n)=>{$o(t);const e=Yo.createElement(Cn.Element|Cn.Inflated|-1<<xn.shift,null,null,null,null,null,t,n);return qr(e),jr(e),Ur(e),e},xr=t=>{$o(t);const n=Yo.createElement(Cn.Element|-1<<xn.shift,null,null,null,void 0,void 0,t,void 0);return qr(n),jr(n),Ur(n),n},Mr=(t,n)=>{const e=Yo.createText(Cn.Text|Cn.Inflated|-1<<xn.shift,null,null,null,t,n);return $o(t),qr(e),jr(e),Ur(e),e},Tr=()=>{const t=Yo.createVirtual(Cn.Virtual|-1<<xn.shift,null,null,null,null,null);return qr(t),jr(t),Ur(t),t},Ir=t=>t instanceof Yo,qr=t=>(t[Mn.flags]&Cn.Element)===Cn.Element,jr=t=>(t[Mn.flags]&Cn.Text)===Cn.Text,Ur=t=>(t[Mn.flags]&Cn.Virtual)===Cn.Virtual,Dr=t=>(t[Mn.flags]&Cn.Virtual)===Cn.Virtual&&null!==Uo(t,h,null),Lr=t=>(jr(t),Vr(t),t),Fr=t=>{Vr(t)},Wr=t=>(qr(t),Vr(t),t),Vr=t=>{if(t)switch(t[Mn.flags]&Cn.TYPE_MASK){case Cn.Element:return"Element";case Cn.Virtual:return"Virtual";case Cn.Text:return"Text"}return"<unknown>"},zr=t=>{if((t[Mn.flags]&Cn.INFLATED_TYPE_MASK)===Cn.Element){const n=t;n[Mn.flags]^=Cn.Inflated;const e=n[Tn.element],r=e.attributes,o=Lo(n);for(let t=0;t<r.length;t++){const n=r[t],s=n.name;if(":"===s||!s)break;s.startsWith(_)?n.value===c.HTML?Un(o,H,e.innerHTML,0):n.value===c.TEXT&&"value"in e&&Un(o,"value",e.value,0):s.startsWith("on:")||Un(o,s,n.value,0)}}};function Hr(t){let n=t;if(jr(t))return;let e=null;for(;;){const r=fo(n);if(r){n=r;continue}if(n===t)return;const o=To(n);if(o)n=o;else{for(e=Fo(n);e;){if(e===t)return;const r=To(e);if(r){n=r;break}e=Fo(e)}if(null==e)return}}}function Br(t,n,e=!1,r=[]){if((t=>!!(t[Mn.flags]&Cn.ELEMENT_OR_TEXT_MASK))(n))return jr(n)&&Qr(t,n),r.push(e?n:Wo(n)),r;let o=fo(n);for(;o;)qr(o)?r.push(e?o:Wo(o)):jr(o)?(Qr(t,o),r.push(e?o:Wo(o))):Br(t,o,!!e,r),o=To(o);return r}const Kr=(t,n,e)=>{const r=n?qn.firstChild:qn.lastChild,o=n?Mn.nextSibling:Mn.previousSibling;let s=t;for(;e&&s&&Ur(s);){const t=s[r];if(!t)break;if(t[Mn.flags]&Cn.ELEMENT_OR_TEXT_MASK)return t;s=t}for(;s;){let t=s[o];if(t&&t[Mn.flags]&Cn.ELEMENT_OR_TEXT_MASK)return t;if(!t){let n=s[Mn.parent];if(n&&!Ur(n))return null;for(;n&&!(t=n[o]);)if(n=n[Mn.parent],n&&!Ur(n))return null;if(!t)return null;if(jr(t)&&n&&qr(n))return null}for(;t;){if(s=t,s[Mn.flags]&Cn.ELEMENT_OR_TEXT_MASK&&Wo(s))return s;t=s[r]}}return null},Qr=(t,n)=>{const e=Lr(n);if(!(e[Mn.flags]&Cn.Inflated)){const r=ro(n),o=e[In.node],s=r.ownerDocument;let i=Kr(n,!1,!0);const l=o||Kr(n,!0,!0)?.[Tn.element]||null;let u=l;for(;i&&jr(i);){if(!(i[Mn.flags]&Cn.Inflated)){const n=s.createTextNode(i[In.text]);t.push(Pr.Insert,r,u,n),u=n,i[In.node]=n,i[Mn.flags]|=Cn.Inflated}i=Kr(i,!1,!0)}for(i=n;i&&jr(i);){const n=Kr(i,!0,!0),e=!n||!jr(n);if(!(i[Mn.flags]&Cn.Inflated)){if(e&&o)t.push(Pr.SetText,o,i[In.text]);else{const n=s.createTextNode(i[In.text]);t.push(Pr.Insert,r,l,n),i[In.node]=n}i[Mn.flags]|=Cn.Inflated}i=n}}},Yr=(t,n)=>{Wr(t);let e=t;const r=t[Tn.element],{qVNodeRefs:o}=r;let s,i=-1;if("string"==typeof n?(i=parseInt(n),s=o.get(i)):s=n,Ir(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=Xr(e,n[t]);-1!=i&&o.set(i,e)}if("string"==typeof n){const t=n.length;let r=Zr(n,t),o=0;for(;r<t;){const t=n.charCodeAt(r);o*=26,t>=97?o+=t-97:(o+=t-65,e=Jr(e,o),o=0),r++}}return e},Jr=(t,n)=>{let e=fo(t);for(;e[Mn.flags]>>>xn.shift!==n;)e=To(e);return e},Gr=[],Xr=(t,n)=>{Wr(t);let e=fo(t);for(;e&&e[Tn.element]!==n;)if(Ur(e)){const t=To(e),n=fo(e);n?(t&&Gr.push(t),e=n):e=t||(Gr.length?Gr.pop():null)}else{const t=To(e);e=t||t||Gr.pop()}for(;Gr.length;)Gr.pop();return Wr(e),e},Zr=(t,n)=>{let e=0;for(;e<n;){if(!(t.charCodeAt(e)<=57))return e;e++}return n},to=t=>"false"!==t&&Boolean(t),no=(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,eo=(t,n,e,r)=>{Fr(n),qr(n)&&ao(n),e===r&&(r=null);let o=null;null==r?Ur(n)&&(o=Kr(n,!0,!1)):o=Ur(r)?Kr(r,!0,!0):r,o&&((t,n)=>{jr(n)&&Qr(t,n)})(t,o);const s=oo(n),i=s&&s[Tn.element];if(i){const n=function(t,n,e){const{elementNamespace:r,elementNamespaceFlag:o}=Vn(n,e);let s=[];if(r===M)s=Br(t,e);else{const i=Br(t,e,!0);for(let t=0;t<i.length;t++){const e=i[t];if(jr(e)){s.push(e[In.node]);continue}if((e[Mn.flags]&Cn.NAMESPACE_MASK)==(n[Mn.flags]&Cn.NAMESPACE_MASK)){s.push(e[Tn.element]);continue}const l=Wn(e,n,r,o);l&&s.push(l)}}return s}(t,s,e);n.length&&t.push(Pr.Insert,i,Wo(o),...n)}const l=e[Mn.parent];l&&(e[Mn.previousSibling]||e[Mn.nextSibling]||qr(l)&&l!==n)&&so(t,l,e,!1);const u=r,c=u?u[Mn.previousSibling]:n[Tn.lastChild];u?u[Mn.previousSibling]=e:n[Tn.lastChild]=e,c?c[Mn.nextSibling]=e:n[Tn.firstChild]=e,e[Mn.previousSibling]=c,e[Mn.nextSibling]=u,e[Mn.parent]=n},ro=t=>(t=oo(t))&&t[Tn.element],oo=t=>{for(;t&&!qr(t);)t=t[Mn.parent];return t},so=(t,n,e,r)=>{Fo(e),jr(e)&&Qr(t,e);const o=e[Mn.previousSibling],s=e[Mn.nextSibling];if(o?o[Mn.nextSibling]=s:n[Tn.firstChild]=s,s?s[Mn.previousSibling]=o:n[Tn.lastChild]=o,e[Mn.previousSibling]=null,e[Mn.nextSibling]=null,r){const r=ro(n);if(jo(n,H))return;const o=Br(t,e);r&&o.length&&t.push(Pr.Remove,r,...o)}},io=(t,n,e)=>{const r=ro(n),o=Br(t,e);r&&o.length&&t.push(Pr.Remove,r,...o);const s=e[Mn.previousSibling];s?s[Mn.nextSibling]=null:n[Tn.firstChild]=null,n[Tn.lastChild]=s},lo=t=>{const n=Wr(t);let e=n[Tn.elementName];if(void 0===e){const t=n[Tn.element],r=Oo(t);e=n[Tn.elementName]=r,n[Mn.flags]|=(t=>{switch(Ao(t)){case T:return Cn.NS_svg;case I:return Cn.NS_math;default:return Cn.NS_html}})(t)}return e},uo=t=>{const n=Lr(t);let e=n[In.text];return void 0===e&&(e=n[In.text]=n[In.node].nodeValue),e},co=(t,n,e)=>{Qr(t,n),t.push(Pr.SetText,n[In.node],n[In.text]=e)},fo=t=>{if(jr(t))return null;let n=t[Tn.firstChild];return void 0===n&&(n=ao(t)),n},ao=t=>{const n=Wr(t);let e=n[Tn.firstChild];return void 0===e&&(e=n[Mn.parent]&&po(n[Tn.element])?n[Tn.firstChild]=n[Tn.lastChild]=null:(t=>{const n=t[Tn.element],e=No(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 i=Co(t,e,s);if(!r)return i}return function(t,n,e,r){let i=0,l=null,u=null,c=null;const a=n=>{n[Mn.flags]=n[Mn.flags]&xn.negated_mask|i<<xn.shift,i++,u&&(u[Mn.nextSibling]=n),n[Mn.previousSibling]=u,n[Mn.parent]=t,l||(t[Tn.firstChild]=l=n),u=n};let p=0,y=null,$=null;return Mo(n,((m,S,g,v)=>{if(Vo(m())){for(;!Ko(r);)if(!(r=wo(r)))throw s(o.materializeVNodeDataError,[n,m(),v]);for(;Po(r);)r=wo(r);y=null,c=null;let t=0;for(;Vo(m());)t*=10,t+=g()-48;for(;t--;)a(xr(r)),r=wo(r)}else if(59===m())qo(null,t,b,S());else if(60===m())qo(null,t,f,S());else if(61===m()){$||($=ms(e));const n=S();$.wt(parseInt(n),t)}else if(62===m())qo(null,t,U,S());else if(64===m())qo(null,t,j,S());else if(91===m())qo(null,t,D,S());else if(94===m())qo(null,t,L,S());else if(96===m())$||($=ms(e)),xo(t,S(),$);else if(63===m())Do(t,d,S());else if(93===m())qo(null,t,w,S());else if(123===m())g(),a(Tr()),Ho.push(t,l,u,c,i),i=0,t=u,l=u=null;else if(124===m()){const n=S(),e=S();qo(null,t,n,e)}else if(125===m())g(),t[Tn.lastChild]=u,i=Ho.pop(),c=Ho.pop(),u=Ho.pop(),l=Ho.pop(),t=Ho.pop();else if(126===m())qo(null,t,h,S());else{const t=r&&3===$o(r)?r:null;null===y&&(y=t?t.nodeValue:null,p=0);let n=0;for(;zo(m());)n+=g()-97,n*=26;n+=g()-65;const e=null===y?"":y.substring(p,p+n);a(c=((t,n,e)=>{n&&$o(n);const r=Yo.createText(Cn.Text|-1<<xn.shift,null,t,null,n,e);return qr(r),jr(r),Ur(r),r})(c,t,e)),p+=n}})),t[Tn.lastChild]=u,l}(t,r,n,e)}return Co(t,e)})(t,n,e,r)})(n)),e};let ho=null;const po=t=>(ho||(ho=t.hasAttribute),ho.call(t,_));let yo=null;const $o=t=>(yo||(yo=_o(t,"nodeType")),yo.call(t)),mo=t=>{const n=$o(t);return 3===n||1===n};let bo=null;const wo=t=>{for(bo||(bo=_o(t,"nextSibling")),Eo||(Eo=_o(t,"firstChild"));t;)if(null!==(t=bo.call(t))){const n=$o(t);if(3===n||1===n)break;if(8===n){const n=t.nodeValue;if(n?.startsWith(R))return So(t,k,bo,Eo);if(t.nodeValue?.startsWith(A))return So(t,O,bo,Eo);if(n?.startsWith(_))for(;t&&(t=bo.call(t))&&(8!==$o(t)||!t.nodeValue?.startsWith(P)););}}return t};function So(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=vo(t),o&&(o=e.call(o))),t=o}return null}let go=null;const vo=t=>(go||(go=_o(t,"parentNode")),go.call(t));let Eo=null;const No=t=>{for(Eo||(Eo=_o(t,"firstChild")),t=t&&Eo.call(t);t&&!mo(t);)t=wo(t);return t};let ko=null;const Ao=t=>(ko||(ko=_o(t,"namespaceURI")),ko.call(t));let Ro=null;const Oo=t=>(Ro||(Ro=_o(t,"nodeName")),Ro.call(t)),_o=(t,n)=>{let e;for(;t&&!(e=Object.getOwnPropertyDescriptor(t,n)?.get);)t=Object.getPrototypeOf(t);return e||function(){return this[n]}},Po=t=>Ko(t)&&"STYLE"===t.nodeName&&(t.hasAttribute(b)||t.hasAttribute(y)),Co=(t,n,e)=>{let r=null;const o=()=>{for(;Po(s);)s=wo(s)};let s=n;o();let i=null;for(;s;){const n=$o(s);let e=null;3===n?e=Mr(s,s.textContent??void 0):1===n&&(e=xr(s)),e&&(e[Mn.parent]=t,i&&(i[Mn.nextSibling]=e),e[Mn.previousSibling]=i,i=e),r||(t[Tn.firstChild]=r=i),s=wo(s),o()}if(t[Tn.lastChild]=i||null,t[Tn.firstChild]=r,e){let n=null;Mo(e,((e,r)=>{if(61===e()){n||(n=ms(t[Tn.element]));const e=r();n.wt(parseInt(e),t)}else 96===e()?(n||(n=ms(t[Tn.element])),xo(t,r(),n)):r()}))}return r};function xo(t,n,e){const r=e.T(n);t[dn]?((t,n)=>{for(const[e,r]of n)t.set(e,r)})(t[dn],r):Object.defineProperty(t,dn,{value:r})}const Mo=(t,n)=>{let e=0,r=0,o=0;const s=()=>0!==o?o:o=e<t.length?t.charCodeAt(e):0,i=()=>(r=s(),o=0,e++,r),l=()=>{i();const n=e;for(;s()<=58&&0!==o||95===o||o>=65&&o<=90||o>=97&&o<=122;)i();return t.substring(n,e)};for(;0!==s();)n(s,l,i,e)},To=t=>t[Mn.nextSibling],Io=t=>t[Mn.previousSibling],qo=(t,n,e,r)=>{const o=n[Mn.flags];if(o&Cn.ELEMENT_OR_VIRTUAL_MASK){zr(n);const s=Lo(n),i=jn(s,e,0);i>=0?(s[i+1]!=r&&o&Cn.Element&&t&&t.push(Pr.SetAttribute,n[Tn.element],e,r),null==r?s.splice(i,2):s[i+1]=r):null!=r&&(s.splice(~i,0,e,r),o&Cn.Element)&&t&&t.push(Pr.SetAttribute,n[Tn.element],e,r)}},jo=(t,n)=>{if(t[Mn.flags]&Cn.ELEMENT_OR_VIRTUAL_MASK){zr(t);const e=Lo(t);return Dn(e,n,0)}return null},Uo=(t,n,e)=>{const r=t[Mn.flags];if(r&Cn.ELEMENT_OR_VIRTUAL_MASK){r&Cn.Element&&zr(t);const o=Lo(t),s=jn(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},Do=(t,n,e)=>{Fr(t);const r=Lo(t),o=jn(r,n,0);o>=0?r[o+1]=e:null!=e&&r.splice(~o,0,n,e)},Lo=t=>t[(t=>{const n=t[Mn.flags]&Cn.TYPE_MASK;if(n===Cn.Element)return Tn.PROPS_OFFSET;if(n===Cn.Virtual)return qn.PROPS_OFFSET;throw s(o.invalidVNodeType,[n])})(t)],Fo=t=>t[Mn.parent]||null,Wo=t=>null===t||Ur(t)?null:qr(t)?t[Tn.element]:(jr(t),t[In.node]),Vo=t=>48<=t&&t<=57,zo=t=>97<=t&&t<=122,Ho=[],Bo=t=>{const n=t[Mn.flags];if(n&Cn.Element)return 1;if(n&Cn.Virtual)return 11;if(n&Cn.Text)return 3;throw s(o.invalidVNodeType,[n])},Ko=t=>t&&"object"==typeof t&&1===$o(t),Qo=(t,n)=>{let e=1;for(;e--;){for(;t&&(!Ur(t)||null===Uo(t,f,null));){const r=Uo(t,d,(t=>Yr(n,t))),o=Ur(t)&&r;o&&e++,t=o||Fo(t)}e>0&&(t=Fo(t))}return t},Yo=class t extends Array{static createElement(n,e,r,o,s,i,l,u){return new t(n,e,r,o,s,i,l,u,[])}static createText(n,e,r,o,s,i){return new t(n,e,r,o,s,i)}static createVirtual(n,e,r,o,s,i){return new t(n,e,r,o,s,i,[])}constructor(t,n,e,r,...o){super(t,n,e,r,...o)}};let Jo;const Go=()=>{if(!Jo){const t="undefined"!=typeof document&&document&&document.__q_context__;if(!t)return;return lt(t)?document.__q_context__=rs(t):t}return Jo},Xo=()=>{const t=Go();if(!t)throw s(o.useMethodOutsideContext);return t},Zo=()=>{const t=Go();if(!t||t.St!==q)throw s(o.useInvokeContext);return t};function ts(t){if(null==t)return t;const n=Xo();return function(...e){return es.call(this,n,t,e)}}function ns(t,n,...e){return es.call(this,t,n,e)}function es(t,n,e){const r=Jo;let o;try{Jo=t,o=n.apply(this,e)}finally{Jo=r}return o}const rs=([t,n,e])=>{const r=ms(t),o=r.element,s=o?Yr(r.rootVNode,t):void 0,i=o?.getAttribute(E)||void 0;return i&&function(t){at=t}(i),os(i,s,t,n,e)},os=(t,n,e,r,o)=>({u:o,gt:0,p:n,l:e,St:r,o:void 0,k:void 0,t:t||("object"==typeof r&&r&&"locale"in r?r.locale:void 0),v:void 0}),ss=t=>ns(void 0,t),is=/*#__PURE__*/os(void 0,void 0,void 0,q),ls=(t,n,e,r,o)=>{const s=is.k,i=is.v;try{return is.k=En(n,e,o),is.v=r,ns(is,t)}finally{is.k=s,is.v=i}},us=(t,n,e,r,o)=>(t instanceof We&&t.p!==n&&n&&(t.p=n),ls((()=>t.value),n,e,r,o)),cs=()=>{const t=Go();if(t){const n=t.p;let e=null;return null!=n&&(Ir(n)?qr(n)&&(e=Wo(n)):e=n),e??t.o?.vt(void 0)}},fs=()=>{const t=Go();if(t)return t.St},as=t=>t,hs=t=>{const n=ws(t);if(!n)return Promise.resolve();const e=n.qContainer;return e?.renderDone??Promise.resolve()},ds=t=>(/^[\w/.-]+$/.test(t),/*#__PURE__*/Object.freeze({id:Lt(t)})),ps=(t,n)=>{const{val:e,set:r,iCtx:o}=vn();void 0===e&&(o.v.setContext(o.p,t,n),r(1))},ys=(t,n)=>{const{val:e,set:r,iCtx:i}=vn();if(void 0!==e)return e;const l=i.v.resolveContext(i.p,t);if("function"==typeof n)return r(ns(void 0,n,l));if(void 0!==l)return r(l);if(void 0!==n)return r(n);throw s(o.notFoundContext,[t.id])},$s=/*#__PURE__*/ds("qk-error");function ms(t){const n=ws(t);if(!n)throw s(o.containerNotFound);return bs(n)}function bs(t){const n=t;let e=n.qContainer;if(!e){e=new gs(n);const t={};if(n){const e=n.attributes;if(e)for(let n=0;n<e.length;n++){const r=e[n];":"!==r.name&&(t[r.name]=r.value)}}e.ft={containerAttributes:t},n.setAttribute(_,c.RESUMED),n.qContainer=e}return e}function ws(t){return(Array.isArray(t)?ro(t):t).closest(x)}const Ss=t=>t instanceof gs;class gs extends Ze{element;qContainer;qBase;qManifestHash;rootVNode;document;P;renderDone=null;Et;m=new WeakMap;Nt;dt;vNodeLocate=t=>Yr(this.rootVNode,t);kt;At=null;Rt=0;constructor(t){if(super((()=>this.scheduleRender()),(()=>(t=>{let n=0;const e=t.length;for(;n<e;)switch(t[n++]){case Pr.SetText:t[n++].nodeValue=t[n++];break;case Pr.SetAttribute:const r=t[n++];let o=t[n++];"className"===o&&(o="class");const s=t[n++];no(r,o)?r[o]=to(s):"value"===o&&o in r?r.value=String(s):o===H?r.innerHTML=s:null==s||!1===s?r.removeAttribute(o):r.setAttribute(o,String(s));break;case Pr.HoistStyles:const i=t[n++],l=i.head,u=i.querySelectorAll(m);for(let t=0;t<u.length;t++)l.appendChild(u[t]);break;case Pr.Remove:const c=t[n++];let f;for(;n<e&&"number"!=typeof(f=t[n]);)c.removeChild(f),n++;break;case Pr.Insert: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})(this.P)),{},t.getAttribute(E)),this.qContainer=t.getAttribute(_),!this.qContainer)throw s(o.elementWithoutContainer);this.P=[Pr.HoistStyles,t.ownerDocument],this.document=t.ownerDocument,this.element=t,this.qBase=t.getAttribute(v),this.dt=t.getAttribute(N),this.qManifestHash=t.getAttribute("q:manifest-hash"),this.rootVNode=xr(this.element),this.Et=null,this.kt=null;const n=this.element.ownerDocument;n.qVNodeData||function(t){const n="q:container",e="/"+n,r="q:ignore",o="/"+r,s="q:container-island",i="/"+s,l=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)}))};let d;h(t),function(t){t[t.CONTAINER_MASK=1]="CONTAINER_MASK",t[t.ELEMENT=2]="ELEMENT",t[t.ELEMENT_CONTAINER=3]="ELEMENT_CONTAINER",t[t.ELEMENT_SHADOW_ROOT=6]="ELEMENT_SHADOW_ROOT",t[t.COMMENT_SKIP_START=5]="COMMENT_SKIP_START",t[t.COMMENT_SKIP_END=8]="COMMENT_SKIP_END",t[t.COMMENT_IGNORE_START=16]="COMMENT_IGNORE_START",t[t.COMMENT_IGNORE_END=32]="COMMENT_IGNORE_END",t[t.COMMENT_ISLAND_START=65]="COMMENT_ISLAND_START",t[t.COMMENT_ISLAND_END=128]="COMMENT_ISLAND_END",t[t.OTHER=0]="OTHER"}(d||(d={}));const p=t=>{const l=a.call(t);if(1===l)return null===c.call(t,n)?f.call(t,"q:shadowroot")?d.ELEMENT_SHADOW_ROOT:f.call(t,":")?d.ELEMENT:d.OTHER:d.ELEMENT_CONTAINER;if(8===l){const l=t.nodeValue||"";if(l.startsWith(s))return d.COMMENT_ISLAND_START;if(l.startsWith(r))return d.COMMENT_IGNORE_START;if(l.startsWith(n))return d.COMMENT_SKIP_START;if(l.startsWith(i))return d.COMMENT_ISLAND_END;if(l.startsWith(o))return d.COMMENT_IGNORE_END;if(l.startsWith(e))return d.COMMENT_SKIP_END}return d.OTHER},y=t=>33<=t&&t<=46,$=(t,n,e)=>{let r=0;for(;n<e;){const e=t.charCodeAt(n);if(0===r&&y(e))break;123===e?r++:125===e&&r--,n++}return n},m=t=>{for(;t&&(t=t.nextSibling)&&p(t)===d.OTHER;);return t},b=t=>{for(;t&&(t=t.firstChild)&&p(t)===d.OTHER;);return t},w=(n,e,r,o,s,i)=>{const u=s.length;let c=0,f=-1,a=0,h=0,S=0,g=-1,v=null;const E=()=>{let t=0;for(;y(S=s.charCodeAt(a))&&(t+=1<<S-33,a++,!(a>=u)););return t};do{if(r===o)return;v=null;const y=r==e?d.ELEMENT:p(r);if(y===d.ELEMENT_CONTAINER){const t=r;let e=r;for(;e&&!(v=m(e));)e=e.parentNode;w(n,t,r,v,t.qVnodeData||"",t.qVNodeRefs)}else if(y===d.COMMENT_IGNORE_START){let t=r;do{if(t=n.nextNode(),!t)throw new Error(`Island inside \x3c!--${r?.nodeValue}--\x3e not found!`)}while(p(t)!==d.COMMENT_ISLAND_START);v=null}else if(y===d.COMMENT_ISLAND_END){v=r;do{if(v=n.nextNode(),!v)throw new Error("Ignore block not closed!")}while(p(v)!==d.COMMENT_IGNORE_END);v=null}else if(y===d.COMMENT_SKIP_START){v=r;do{if(v=m(v),!v)throw new Error(`\x3c!--${r?.nodeValue}--\x3e not closed!`)}while(p(v)!==d.COMMENT_SKIP_END);w(n,r,r,v,"",null)}else if(y===d.ELEMENT_SHADOW_ROOT){v=m(r);const n=r,e=n?.shadowRoot;e&&w(t.createTreeWalker(e,129),null,b(e),null,"",null)}if((y&d.ELEMENT)===d.ELEMENT){if(f<c&&(-1===f&&(f=0),a=h,a<u?(f+=E(),126===S&&(g=f,a++,S=a<u?s.charCodeAt(h):33),h=$(s,a,u)):f=Number.MAX_SAFE_INTEGER),c===f){g===c&&i.set(c,r);const t=s.substring(a,h);l.set(r,t)}c++}}while(r=v||n.nextNode())},S=t.createTreeWalker(t,129);w(S,null,S.firstChild(),null,"",null)}(n),this.Et=[],this.kt=[];const e=t.querySelectorAll('script[type="qwik/state"]');0!==e.length&&(this.Et=JSON.parse(e[e.length-1].textContent),this.kt=Ns(this,this.Et)),this.Nt=g(n,this.dt)||pt}wt(t,n){this.kt[t]=n}parseQRL(t){return xs(this,Cs(t))}handleError(t,n){const e=n&&this.resolveContext(n,$s);if(!e)throw t;e.error=t}setContext(t,n,e){let r=this.getHostProp(t,w);r||this.setHostProp(t,w,r=[]),Un(r,n.id,e,0)}resolveContext(t,n){for(;t;){const e=this.getHostProp(t,w);if(e){const t=Dn(e,n.id,0);if(t)return t}t=this.getParentHost(t)}}getParentHost(t){let n=Fo(t);for(;n;)if(Ur(n)){if(null!==Uo(n,f,null))return n;n=Fo(n)||Uo(n,d,this.vNodeLocate)}else n=Fo(n);return null}setHostProp(t,n,e){Do(t,n,e)}getHostProp(t,n){const e=t;let r=null;switch(n){case D:case U:case f:case w:case S:r=this.T;break;case L:case W:r=parseInt}return Uo(e,n,r)}scheduleRender(){return this.Rt++,this.renderDone||=J().nextTick((()=>this.processChores())),this.renderDone.finally((()=>fi("qrender",{instanceHash:this.dt,renderCount:this.Rt})))}processChores(){let t=this.Rt;const n=this.$(Nt.WAIT_FOR_ALL);if(Z(n))return n.then((async()=>{for(;t!==this.Rt;)t=this.Rt,await this.$(Nt.WAIT_FOR_ALL);this.renderDone=null}));t===this.Rt?this.renderDone=null:this.processChores()}ensureProjectionResolved(t){if(!(t[Mn.flags]&Cn.Resolved)){t[Mn.flags]|=Cn.Resolved;const n=Lo(t);for(let t=0;t<n.length;t+=2)if(re(n[t])){const e=n[t+1];"string"==typeof e&&(n[t+1]=this.vNodeLocate(e))}}}T=t=>("string"==typeof t&&(t=parseFloat(t)),this.kt[t]);getSyncFn(t){return this.Nt[t]}Ot(t,n,e,r){if(r){const t=this.getHostProp(e,b),r=new Set(function(t){return t?.split(" ")??null}(t));r.add(n),this.setHostProp(e,b,function(t){return Array.from(t).join(" ")}(r))}if(null==this.At&&(this.At=new Set,this.element.querySelectorAll($).forEach((t=>{this.At.add(t.getAttribute(y))}))),!this.At.has(n)){this.At.add(n);const e=this.document.createElement("style");e.setAttribute(y,n),e.textContent=t,this.P.push(Pr.Insert,this.document.head,null,e)}}}const vs=new WeakMap,Es=Symbol("UNWRAP"),Ns=(t,n)=>{if(!Array.isArray(n)||Ir(n)||"object"==typeof(e=n)&&null!==e&&Es in e)return n;var e;let r=vs.get(n);if(!r){const e=Array(n.length/2).fill(void 0);r=new Proxy(e,new ks(t,n)),vs.set(n,r)}return r};class ks{v;_t;Pt;constructor(t,n){this.v=t,this._t=n,this.Pt=this._t.length/2}get(t,n,e){if(n===Es)return t;const r="number"==typeof n?n:"string"==typeof n?parseInt(n,10):NaN;if(Number.isNaN(r)||r<0||r>=this.Pt)return Reflect.get(t,n,e);const o=2*r,s=this._t[o],i=this._t[o+1];if(void 0===s)return i;const l=this.v;let u=_s(l,s,i);return s>=Gs.Error&&(u=Rs(l,u,s,i)),Reflect.set(t,n,u),this._t[o]=void 0,this._t[o+1]=u,u}has(t,n){return n===Es||Object.prototype.hasOwnProperty.call(t,n)}set(t,n,e,r){if(n===Es)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._t.length/2)return o;const i=2*s;return this._t[i]=void 0,this._t[i+1]=e,!0}}const As=new WeakMap,Rs=(t,n,e,r)=>{if(void 0===e)return n;switch(e!==Gs.Object&&Array.isArray(r)&&(r=((t,n)=>{const e=Array(n.length/2);for(let r=0;r<n.length;r+=2)e[r/2]=zs(t,n[r],n[r+1]);return e})(t,r)),e){case Gs.Object:for(let e=0;e<r.length;e+=4){const o=zs(t,r[e],r[e+1]),s=r[e+2],i=r[e+3];s===Gs.RootRef||s>=Gs.Error?Object.defineProperty(n,o,{get(){const e=zs(t,s,i);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]=zs(t,s,i)}break;case Gs.QRL:xs(t,n);break;case Gs.Task:const i=n,l=r;i.o=xs(t,l[0]),i.S=l[1],i.R=l[2],i.O=l[3],i[dn]=l[4],i._=l[5];break;case Gs.Resource:const[u,c,f]=r,a=n;u?(a.value=Promise.resolve(c),a._resolved=c,a._state="resolved"):(a.value=Promise.reject(c),a._error=c,a._state="rejected"),nn(n).N=f;break;case Gs.Component:n[wi][0]=r[0];break;case Gs.Store:case Gs.StoreArray:{const[e,o,s]=r,i=ln(e,o,t);nn(i).N=s,n=i;break}case Gs.Signal:{const t=n,e=r;t.G=e[0],t.N=new Set(e.slice(1));break}case Gs.WrappedSignal:{const e=n,o=r;e.et=t.getSyncFn(o[0]),e.nt=o[1],e[dn]=o[2],e.G=o[3],e.S=o[4],e.p=o[5],e.N=new Set(o.slice(6));break}case Gs.ComputedSignal:{const e=n,o=r;e.X=o[0],e.N=o[1],3===o.length?e.G=o[2]:(e.S|=_e.INVALID,e.X.resolve(),t.$?.(Nt.QRL_RESOLVE,null,e.X));break}case Gs.Error:{const t=r;n.message=t[0];const e=t[1];if(e&&Array.isArray(e)){for(let r=0;r<e.length;r++)n[e[r++]]=t[r];n.stack=t[2]}else n.stack=e;break}case Gs.FormData:{const t=n,e=r;for(let n=0;n<e.length;n++)t.append(e[n++],e[n]);break}case Gs.JSXNode:{const t=n,[e,o,s,i,l,u]=r;t.type=e,t.varProps=o,t.constProps=s,t.children=i,t.flags=l,t.key=u;break}case Gs.Set:{const t=n,e=r;for(let n=0;n<e.length;n++)t.add(e[n]);break}case Gs.Map:{const t=n,e=r;for(let n=0;n<e.length;n++)t.set(e[n++],e[n]);break}case Gs.Promise:{const t=n,[e,o]=r,[s,i]=As.get(t);e?s(o):i(o);break}case Gs.Uint8Array:const h=n,d=atob(r);let p=0;for(const t of d)h[p++]=t.charCodeAt(0);break;case Gs.PropsProxy:const y=n;y[ne]=0===r?{}:r[0],y[te]=r[1];break;case Gs.EffectData:{const t=n;t.data.C=r[0],t.data.M=r[1];break}default:throw s(o.serializeErrorNotImplemented,[e])}return n},Os=[void 0,null,!0,!1,"",pt,yt,hn,Zt,Rt,gr,NaN,1/0,-1/0,Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER-1,Number.MIN_SAFE_INTEGER],_s=(t,n,e)=>{if(void 0===e)return n;switch(n){case Gs.RootRef:return t.T(e);case Gs.Constant:return Os[e];case Gs.Number:return e;case Gs.Array:return Ns(t,e);case Gs.Object:return{};case Gs.QRL:return Cs(t.T(e));case Gs.Task:return new On(-1,-1,null,null,null,null);case Gs.Resource:{const n=be(t,void 0,void 0);return n.loading=!1,n}case Gs.URL:return new URL(e);case Gs.Date:return new Date(e);case Gs.Regex:const r=e.lastIndexOf("/");return new RegExp(e.slice(1,r),e.slice(r+1));case Gs.Error:return new Error;case Gs.Component:return bi(null);case Gs.Signal:return new qe(t,0);case Gs.WrappedSignal:return new We(t,null,null,null);case Gs.ComputedSignal:return new Fe(t,null);case Gs.Store:case Gs.StoreArray:return null;case Gs.URLSearchParams:return new URLSearchParams(e);case Gs.FormData:return new FormData;case Gs.JSXNode:return new mr(null,null,null,null,-1,null);case Gs.BigInt:return BigInt(e);case Gs.Set:return new Set;case Gs.Map:return new Map;case Gs.String:return e;case Gs.Promise:let i,l;const u=new Promise(((t,n)=>{i=t,l=n}));return As.set(u,[i,l]),u.catch((()=>{})),u;case Gs.Uint8Array:const c=e.length,f=3&c;return new Uint8Array(3*(c>>>2)+(f?f-1:0));case Gs.PropsProxy:return Er(null,null);case Gs.VNode:return Ps(t,e);case Gs.RefVNode:const a=Ps(t,e);if(Ir(a))return Wo(a);throw s(o.serializeErrorExpectedVNode,[typeof a]);case Gs.EffectData:return new Me({});default:throw s(o.serializeErrorCannotAllocate,[n])}};function Ps(t,n){return n?t.rootVNode?Yr(t.rootVNode,n):void 0:t.element?.ownerDocument}function Cs(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),i=e>-1&&r>-1?t.slice(e+1,r).split(" ").filter((t=>t.length)).map((t=>parseInt(t,10))):null;let l=null;return o===Js&&(l=globalThis[Js].get(s)),li(o,s,l,null,i,null)}function xs(t,n){const e=n.lt;return n.h=e?e.map((n=>t.T(n))):null,t.element&&n.vt(t.element),n}let Ms=()=>!1;const Ts=(t,n,e,r,i,u,c,f)=>{if(!c){const t=[];c={write:n=>t.push(n),toString:()=>t.join("")}}const a=new Map,h=new Map,d=[],p=[],y=t=>a.get(t),$=t=>a.set(t,-1),m=t=>{let n=a.get(t);return"number"==typeof n&&-1!==n||(n=p.length,a.set(t,n),p.push(t)),n},b=t?n=>n instanceof t:()=>!1;return Ms=n?t=>t instanceof n:()=>!1,{Ct(){!function(t){const{xt:n,Mt:e,Tt:r,It:i,m:u}=t;let c=-1,f=!1;const a=(t,e)=>{if(f?n.write(`${t},`):f=!0,"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{c++,n.write("[");let t=!1;for(let r=0;r<e.length;r++)t?n.write(","):t=!0,h(e[r],r);n.write("]"),c--}},h=(n,e)=>{if(oi(n))a(Gs.Constant,Xs.Undefined);else if("bigint"==typeof n)a(Gs.BigInt,n.toString());else if("boolean"==typeof n)a(Gs.Constant,n?Xs.True:Xs.False);else if("function"==typeof n)if(n===Rt)a(Gs.Constant,Xs.Slot);else if(n===gr)a(Gs.Constant,Xs.Fragment);else if(l(n)){const e=Fs(t,n),r=t.qt(e);a(Gs.QRL,r)}else if(Si(n)){const[e]=n[wi];t.jt.add(e.it),a(Gs.Component,[e])}else console.error("Cannot serialize function (ignoring for now): "+n.toString()),a(Gs.Constant,Xs.Undefined);else if("number"==typeof n)Number.isNaN(n)?a(Gs.Constant,Xs.NaN):Number.isFinite(n)?n===Number.MAX_SAFE_INTEGER?a(Gs.Constant,Xs.MaxSafeInt):n===Number.MAX_SAFE_INTEGER-1?a(Gs.Constant,Xs.AlmostMaxSafeInt):n===Number.MIN_SAFE_INTEGER?a(Gs.Constant,Xs.MinSafeInt):a(Gs.Number,n):a(Gs.Constant,n<0?Xs.NegativeInfinity:Xs.PositiveInfinity);else if("object"==typeof n)n===pt?a(Gs.Constant,Xs.EMPTY_ARRAY):n===yt?a(Gs.Constant,Xs.EMPTY_OBJ):(c++,null===n?a(Gs.Constant,Xs.Null):d(n,e),c--);else if("string"==typeof n)if(0===n.length)a(Gs.Constant,Xs.EmptyString);else{const e=c>1&&t.Ut(n);"number"==typeof e&&e>=0?a(Gs.RootRef,e):a(Gs.String,n)}else if(void 0===n)a(Gs.Constant,Xs.Undefined);else if(n===hn)a(Gs.Constant,Xs.NEEDS_COMPUTATION);else{if(n!==Zt)throw s(o.serializeErrorUnknownType,[typeof n]);a(Gs.Constant,Xs.STORE_ALL_PROPS)}},d=(n,l)=>{const f=2===c;if(c>2){const e=t.Ut(n);if("number"==typeof e&&e>=0)return void a(Gs.RootRef,e)}if($r(n)){const t=n[ne],e=n[te],r=e?[t,e]:Object.keys(t).length?[t]:0;a(Gs.PropsProxy,r)}else if(n instanceof Me)a(Gs.EffectData,[n.data.C,n.data.M]);else if(on(n))if(function(t){return"__brand"in t&&"resource"===t.__brand}(n)){t.Dt.add(n);const e=Us.get(n.value);if(!e)throw s(o.serializeErrorUnvisited,["resource"]);a(Gs.Resource,[...e,nn(n).N])}else{const e=nn(n),r=en(n),o=e.S,s=e.N,i=[];for(const n in r){const e=r[n];if(u.has(e)){const n=u.get(e);i.push(n),t.qt(n)}}const l=[r,o,s,...i];for(;null==l[l.length-1];)l.pop();a(Array.isArray(r)?Gs.StoreArray:Gs.Store,l)}else if(Ks(n))if(Array.isArray(n))a(Gs.Array,n);else{const t=[];for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&!oi(n[e])&&t.push(e,n[e]);a(Gs.Object,t)}else if(r(n))n.Lt.vnodeData[0]|=ft.SERIALIZE,a(Gs.RefVNode,n.Lt.id);else if(n instanceof qe){const e=n instanceof Fe&&(n.S&_e.INVALID||oi(n.G))?hn:n.G;if(n instanceof We)a(Gs.WrappedSignal,[...Ls(t,n),Ds(n[dn]),e,n.S,n.p,...n.N||[]]);else if(n instanceof Fe){const t=[n.X,n.N];e!==hn&&t.push(e),a(Gs.ComputedSignal,t)}else a(Gs.Signal,[e,...n.N||[]])}else if(n instanceof URL)a(Gs.URL,n.href);else if(n instanceof Date)a(Gs.Date,Number.isNaN(n.valueOf())?"":n.valueOf());else if(n instanceof RegExp)a(Gs.Regex,n.toString());else if(n instanceof Error){const t=[n.message],e=Object.entries(n).flat();e.length&&t.push(e),t.push(n.stack),a(Gs.Error,t)}else if(e(n))if(f){i(n,"q:id",String(l)),a(Gs.VNode,n.id);const e=n.vnodeData;if(e&&(t.Ft?.(e),e[0]|=ft.SERIALIZE),n.childrenVNodeData)for(const t of n.childrenVNodeData)t[0]|=ft.SERIALIZE}else t.qt(n),a(Gs.RootRef,t.Wt.length-1);else if("undefined"!=typeof FormData&&n instanceof FormData){const t=[];n.forEach(((n,e)=>{t.push(e,"string"==typeof n?n:n.name)})),a(Gs.FormData,t)}else if(n instanceof URLSearchParams)a(Gs.URLSearchParams,n.toString());else if(n instanceof Set)a(Gs.Set,[...n.values()]);else if(n instanceof Map){const t=[];for(const[e,r]of n.entries())t.push(e,r);a(Gs.Map,t)}else if(Sr(n))a(Gs.JSXNode,[n.type,n.varProps,n.constProps,n.children,n.flags,n.key]);else if(n instanceof On){const t=[n.o,n.S,n.R,n.O,n[dn],n._];for(;null==t[t.length-1];)t.pop();a(Gs.Task,t)}else if(Z(n)){const t=Us.get(n);if(!t)throw s(o.serializeErrorUnvisited,["promise"]);a(Gs.Promise,t)}else if(n instanceof Uint8Array){let t="";for(const e of n)t+=String.fromCharCode(e);const e=btoa(t).replace(/=+$/,"");a(Gs.Uint8Array,e)}else{if(!Ir(n))throw s(o.serializeErrorUnknownType,[typeof n]);a(Gs.Constant,Xs.Undefined)}};h(t.Wt,-1)}(this)},Mt:b,Tt:Ms,Vt:e,Ut:y,Wt:p,zt:$,Ht:t=>{const n=a.get(t);return void 0===n||-1===n?void 0:n},qt:m,Bt:t=>{const n=a.get(t);if(!n||-1===n)throw s(o.serializeErrorMissingRootId,[t]);return n},Kt:d,Qt:(t,n,e)=>{const r=null==t;r&&(t=e.serialized||e.toString());let o=h.get(t);if(void 0===o)if(o=d.length,h.set(t,o),r)d.push(t);else{let e="(";for(let t=0;t<n;t++)e+=(0==t?"p":",p")+t;d.push(e+=")=>"+t)}return o},xt:c,Yt:async function(){const t=[],n=[],e=e=>{if("function"==typeof e){if(l(e))e.h&&t.push(...e.h);else if(Si(e)){const[n]=e[wi];t.push(n)}}else if("object"!=typeof e||null===e||e instanceof URL||e instanceof Date||e instanceof RegExp||e instanceof Uint8Array||e instanceof URLSearchParams||Ir(e)||"undefined"!=typeof FormData&&e instanceof FormData||oi(e));else if(e instanceof Error)t.push(...Object.values(e));else if(on(e)){const n=en(e),r=nn(e).N;t.push(n,r);for(const e in n){const r=n[e];u.has(r)&&t.push(e,u.get(r))}}else if(e instanceof Set)t.push(...e.values());else if(e instanceof Map)e.forEach(((n,e)=>{t.push(e,n)}));else if(e instanceof qe){const n=e instanceof We?e.untrackedValue:e instanceof Fe&&(e.S&_e.INVALID||oi(e))?hn:e.G;n!==hn&&t.push(n),e.N&&t.push(e.N),e instanceof We?(js(e[dn],t),e.nt&&t.push(...e.nt),e.p&&t.push(e.p)):e instanceof Fe&&(js(e[dn],t),t.push(e.X))}else if(e instanceof On)t.push(e.O,e.o,e._),js(e[dn],t);else if(b(e)){if(qs(e.vnodeData,t),e.childrenVNodeData&&e.childrenVNodeData.length)for(const n of e.childrenVNodeData)qs(n,t)}else if(Ms(e))t.push(e.Lt.id);else if(Sr(e))t.push(e.type,e.props,e.constProps,e.children);else if(Array.isArray(e))t.push(...e);else if(l(e))e.h&&e.h.length&&t.push(...e.h);else if($r(e))t.push(e[ne],e[te]);else if(Z(e))e.then((n=>{Us.set(e,[!0,n]),t.push(n)}),(n=>{Us.set(e,[!1,n]),t.push(n)})),n.push(e);else if(e instanceof Me)t.push(e.data);else{if(!Ks(e))throw s(o.serializeErrorUnknownType,[e]);Object.entries(e).forEach((([n,e])=>{t.push(n,e)}))}};for(const t of p)e(t);do{for(;t.length;){const n=t.pop();if(!Bs(n)&&!Qs(n))continue;const r=y(n);void 0===r?($(n),e(n)):-1===r&&m(n)}await Promise.allSettled(n),n.length=0}while(t.length)},Z:new Set,ut:new Set,Dt:new Set,jt:new Set,m:u,Jt:r,It:i,Ft:f}},Is=t=>Array.isArray(t)&&t.length>0,qs=(t,n)=>{for(const e of t)if(Is(e))for(let t=1;t<e.length;t+=2){const r=e[t];"string"!=typeof r&&n.push(r)}},js=(t,n)=>{t&&n.push(t)},Us=new WeakMap;function Ds(t){let n=null;if(t)for(const[e,r]of t)r[Te.BACK_REF]&&(n||=new Map,n.set(e,r));return n}function Ls(t,n){return n.rt&&"{"===n.rt[0]&&(n.rt=`(${n.rt})`),[t.Qt(n.rt,n.nt.length,n.et),n.nt]}function Fs(t,n){let e=n.it,r=n.Gt;const u=J();if(u){const t=u.chunkForSymbol(e,r,n.dev?.file);t&&(r=t[1],e=t[0])}const c=(t=>l(t)&&t.it==i)(n);if(c)r="",e=String(t.Qt(null,0,n.resolved));else{r||(r=t.Vt(n.I));{let t=globalThis[Js];t||(t=globalThis[Js]=new Map),t.set(n.it,n._devOnlySymbolRef),r||(r=Js)}if(!r)throw s(o.qrlMissingChunk,[n.it]);r.startsWith("./")&&(r=r.slice(2))}let f=`${r}#${e}`;if(Array.isArray(n.h)&&n.h.length>0){let e="";for(let r=0;r<n.h.length;r++)r>0&&(e+=" "),e+=t.qt(n.h[r]);f+=`[${e}]`}else n.lt&&n.lt.length>0&&(f+=`[${n.lt.join(" ")}]`);return f}async function Ws(t){const n=Ts(null,null,(()=>""),(()=>""),(()=>{}),new WeakMap);for(const e of t)n.qt(e);return await n.Yt(),n.Ct(),n.xt.toString()}function Vs(t,n){if(null==t)return[];const e=JSON.parse(t);if(!Array.isArray(e))return[];let r;r=G(n)&&X(n)?Hs(e,n):Hs(e);const o=[];for(let t=0;t<e.length;t+=2)o[t/2]=zs(r,e[t],e[t+1]);return o}function zs(t,n,e){if(void 0===n)return e;let r=_s(t,n,e);return n>=Gs.Error&&(r=Rs(t,r,n,e)),r}function Hs(t,n){let e;const r={T:t=>function(t,n){return"string"==typeof t&&(t=parseInt(t,10)),n[t]}(t,e),getSyncFn:()=>()=>{},m:new WeakMap,element:null};return e=Ns(r,t),r._=e,n&&(r.element=n),r}function Bs(t){return"object"==typeof t&&null!==t||"string"==typeof t&&t.length>1}function Ks(t){const n=Object.getPrototypeOf(t);return null==n||n===Object.prototype||n===Array.prototype}const Qs=t=>"object"==typeof t&&null!==t&&(t instanceof qe||t instanceof On||Sr(t))||l(t),Ys=(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(on(t)&&(t=en(t)),e==Object.prototype){for(const e in t)if(!Ys(ss((()=>t[e])),n))return!1;return!0}if(e==Array.prototype){for(let e=0;e<t.length;e++)if(!Ys(t[e],n))return!1;return!0}if(_n(t))return!0;if($r(t))return!0;if(Z(t))return!0;if(Sr(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(Ms?.(t))return!0}else if("function"==typeof t&&(l(t)||Si(t)))return!0;return!1},Js="mock-chunk";var Gs,Xs;!function(t){t[t.RootRef=0]="RootRef",t[t.Constant=1]="Constant",t[t.Number=2]="Number",t[t.String=3]="String",t[t.Array=4]="Array",t[t.URL=5]="URL",t[t.Date=6]="Date",t[t.Regex=7]="Regex",t[t.VNode=8]="VNode",t[t.RefVNode=9]="RefVNode",t[t.BigInt=10]="BigInt",t[t.URLSearchParams=11]="URLSearchParams",t[t.Error=12]="Error",t[t.Object=13]="Object",t[t.Promise=14]="Promise",t[t.Set=15]="Set",t[t.Map=16]="Map",t[t.Uint8Array=17]="Uint8Array",t[t.QRL=18]="QRL",t[t.Task=19]="Task",t[t.Resource=20]="Resource",t[t.Component=21]="Component",t[t.Signal=22]="Signal",t[t.WrappedSignal=23]="WrappedSignal",t[t.ComputedSignal=24]="ComputedSignal",t[t.Store=25]="Store",t[t.StoreArray=26]="StoreArray",t[t.FormData=27]="FormData",t[t.JSXNode=28]="JSXNode",t[t.PropsProxy=29]="PropsProxy",t[t.EffectData=30]="EffectData"}(Gs||(Gs={})),function(t){t[t.Undefined=0]="Undefined",t[t.Null=1]="Null",t[t.True=2]="True",t[t.False=3]="False",t[t.EmptyString=4]="EmptyString",t[t.EMPTY_ARRAY=5]="EMPTY_ARRAY",t[t.EMPTY_OBJ=6]="EMPTY_OBJ",t[t.NEEDS_COMPUTATION=7]="NEEDS_COMPUTATION",t[t.STORE_ALL_PROPS=8]="STORE_ALL_PROPS",t[t.Slot=9]="Slot",t[t.Fragment=10]="Fragment",t[t.NaN=11]="NaN",t[t.PositiveInfinity=12]="PositiveInfinity",t[t.NegativeInfinity=13]="NegativeInfinity",t[t.MaxSafeInt=14]="MaxSafeInt",t[t.AlmostMaxSafeInt=15]="AlmostMaxSafeInt",t[t.MinSafeInt=16]="MinSafeInt"}(Xs||(Xs={}));const Zs=(t,n)=>{const e=new WeakSet;return ti(t,e,"_",n)},ti=(t,n,e,r)=>{const i=rn(t);if(null==i)return t;if(ri(i)){if("object"==typeof i){if(n.has(i))return t;n.add(i)}if(xe(i))return t;if(Ys(i))return t;const l=typeof i;switch(l){case"object":if(Z(i))return t;if(G(i))return t;if(lt(i)){let r=0;return i.forEach(((t,l)=>{if(l!==r)throw s(o.verifySerializable,[i]);ti(t,n,e+"["+l+"]"),r=l+1})),t}if(st(i)){for(const[t,r]of Object.entries(i))ti(r,n,e+"."+t);return t}break;case"boolean":case"string":case"number":return t}let u="";if(u=r||"Value cannot be serialized","_"!==e&&(u+=` in ${e},`),"object"===l)u+=` 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;u+=` 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(o.verifySerializable,[u])}return t},ni=/*#__PURE__*/new WeakSet,ei=/*#__PURE__*/new WeakSet,ri=t=>!it(t)&&!ct(t)||!ni.has(t),oi=t=>ni.has(t),si=t=>(null!=t&&ni.add(t),t),ii=t=>(ei.add(t),t),li=(t,n,e,r,i,l)=>{let u;const c=async function(...t){const n=a.call(this,Go());return await n(...t)},f=t=>(u||(u=t),u);function a(t,n){const r=(...i)=>{if(!c.resolved)return c.resolve().then((t=>{if(!ct(t))throw s(o.qrlIsNotFunction);return r(...i)}));if(n&&!1===n())return;const l=p(t),u=l.o,f=l.St;l.o=c,l.St||=this;try{return ns.call(this,l,e,...i)}finally{l.o=u,l.St=f}};return r}const h=t=>"function"!=typeof t||!i?.length&&!l?.length?t:function(...n){let e=Go();if(e){if(e.o?.it===c.it)return t.apply(this,n);const r=e.o;e.o=c;try{return t.apply(this,n)}finally{e.o=r}}return e=os(),e.o=c,e.St=this,ns.call(this,e,t,...n)},d=async o=>{if(null!==e)return e;if(o&&f(o),""===t){const t=u.getAttribute(N),r=g(u.ownerDocument,t);return c.resolved=e=r[Number(n)]}const s=ai(),i=Go();if(null!==r)e=r().then((t=>c.resolved=h(e=t[n])));else{const r=J().importSymbol(u,t,n);e=nt(r,(t=>c.resolved=h(e=t)))}return"object"==typeof e&&Z(e)&&e.then((()=>ci(n,i?.l,s)),(t=>{throw console.error(`qrl ${n} failed to load`,t),e=null,t})),e},p=t=>null==t?os():lt(t)?rs(t):t,y=(t=>{const n=t.lastIndexOf("_");return n>-1?t.slice(n+1):t})(n);return Object.assign(c,{getSymbol:()=>n,getHash:()=>y,getCaptured:()=>l,resolve:d,Xt:t=>null!==e?e:d(t),vt:f,Gt:t,it:n,I:y,getFn:a,lt:i,h:l,dev:null,resolved:void 0}),e&&(e=nt(e,(t=>c.resolved=h(e=t)))),c},ui=/*#__PURE__*/new Set,ci=(t,n,e)=>{ui.has(t)||(ui.add(t),fi("qsymbol",{symbol:t,element:n,reqTime:e}))},fi=(t,n)=>{"object"==typeof document&&document.dispatchEvent(new CustomEvent(t,{bubbles:!1,detail:n}))},ai=()=>"object"==typeof performance?performance.now():0;let hi=0;const di=t=>li(null,"s"+hi++,t,null,null,null),pi=di,yi=t=>t,$i=t=>li("",i,t,null,null,null),mi=function(t,n){return void 0===n&&(n=t.toString()),t.serialized=n,li("",i,t,null,null,null)},bi=t=>{function n(n,e,r=0){const o=t.I.slice(0,4)+":"+(e||""),s=()=>{};return s[wi]=[t],cr(s,n,null,n.children,r,o)}return n[wi]=[t],n},wi=Symbol("serializable-data"),Si=t=>"function"==typeof t&&void 0!==t[wi],gi=t=>bi(pi(t)),vi=bn(yi),Ei=async(t,n,e={})=>{if(9===t.nodeType){let n=t.firstChild;for(;n&&!X(n);)n=n.nextSibling;t=n}t.setAttribute(_,c.RESUMED);const r=ms(t);r.ft=e.serverData||{};const o=r.rootVNode;return r.$(Nt.NODE_DIFF,o,o,n),await r.$(Nt.WAIT_FOR_ALL),{cleanup:()=>{ae(r,r.rootVNode)}}},Ni=(t,n)=>{const{val:e,set:r,iCtx:o}=vn();if(null!=e)return e;const s=ct(t)?ns(void 0,t):t;if(!1===n?.reactive)return r(s),s;{const t=o.v,e=ln(s,n?.deep??1?tn.RECURSIVE:tn.NONE,t);return r(e),e}},ki=()=>{const{val:t,set:n,iCtx:e}=vn();if(null!=t)return t;const r=Ss(e.v)?"":e.v.buildBase||"",o=r?Kt(r):"",s=e.v.getHostProp(e.p,f);return n(`${o}-${s?.getHash()||""}-${(e.v.ht++).toString(36)||""}`)};function Ai(t,n){const e=Go();return e?.v?.ft[t]??n}const Ri=/*#__PURE__*/new Map,Oi=(t,n)=>{let e=Ri.get(n);return e||Ri.set(n,e=_i(t,n)),e},_i=(t,n)=>{const e=t.length,r=[],o=[];let s=0,i=s,l=Ti,u=0;for(;s<e;){const n=s;let e=t.charCodeAt(s++);e===ll&&(s++,e=ol);const r=yl[l];for(let a=0;a<r.length;a++){const p=r[a],[y,$,m]=p;if((y===u||y===Vi||y===zi&&Pi(u)||y===Bi&&Mi(u))&&($===e||$===Vi||$===zi&&Pi(e)||$===Hi&&!Pi(e)&&e!==tl||$===Bi&&Mi(e))&&(3==p.length||h(p))){if(p.length>3&&(e=t.charCodeAt(s-1)),m===Fi||m==Wi){m===Wi&&(l!==Ii||d()?Ci(e)||f(s-($==Hi?1:$==Xi?2:0)):(Ci(e)?c(s-2):f(s-2),i++)),$===Hi&&(s--,e=u);do{l=o.pop()||Ti,l===qi&&(c(s-1),i++)}while(xi(l))}else o.push(l),l===qi&&m===Ti?(c(s-8),i=s):m===ji&&f(n),l=m;break}}u=e}return c(s),r.join("");function c(n){r.push(t.substring(i,n)),i=n}function f(t){l===qi||d()||(c(t),r.push(".",a,n))}function h(n){let e=0;if(t.charCodeAt(s)===Zi)for(let n=1;n<10;n++)if(t.charCodeAt(s+n)===Zi){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)|cl)!==o.charCodeAt(n))continue t;return s+=o.length+e,!0}return!1}function d(){return-1!==o.indexOf(qi)||-1!==o.indexOf(Ui)}},Pi=t=>t>=nl&&t<=el||t>=ol&&t<=sl||t>=fl&&t<=al||t>=128||t===ul||t===Zi,Ci=t=>t===rl||t===tl||t===il||t===Gi||Pi(t),xi=t=>t===Di||t===Ui||t===Li||t===qi,Mi=t=>t===Ji||t===Ki||t===Qi||t===Yi,Ti=0,Ii=2,qi=5,ji=6,Ui=10,Di=11,Li=12,Fi=17,Wi=18,Vi=0,zi=1,Hi=2,Bi=3,Ki=9,Qi=10,Yi=13,Ji=32,Gi=35,Xi=41,Zi=45,tl=46,nl=48,el=57,rl=58,ol=65,sl=90,il=91,ll=92,ul=95,cl=32,fl=97,al=122,hl=123,dl=125,pl=[[Vi,39,14],[Vi,34,15],[Vi,47,16,"*"]],yl=[[[Vi,42,Ii],[Vi,il,7],[Vi,rl,ji,":","before","after","first-letter","first-line"],[Vi,rl,qi,"global"],[Vi,rl,3,"has","host-context","not","where","is","matches","any"],[Vi,rl,4],[Vi,zi,1],[Vi,tl,1],[Vi,Gi,1],[Vi,64,Ui,"keyframe"],[Vi,64,Di,"media","supports","container"],[Vi,64,Li],[Vi,hl,13],[47,42,16],[Vi,59,Fi],[Vi,dl,Fi],[Vi,Xi,Fi],...pl],[[Vi,Hi,Wi]],[[Vi,Hi,Wi]],[[Vi,40,Ti],[Vi,Hi,Wi]],[[Vi,40,8],[Vi,Hi,Wi]],[[Vi,40,Ti],[Vi,Hi,Fi]],[[Vi,Hi,Fi]],[[Vi,93,Wi],[Vi,39,14],[Vi,34,15]],[[Vi,Xi,Fi],...pl],[[Vi,dl,Fi],...pl],[[Vi,dl,Fi],[Bi,zi,1],[Vi,rl,qi,"global"],[Vi,hl,13],...pl],[[Vi,hl,Ti],[Vi,59,Fi],...pl],[[Vi,59,Fi],[Vi,hl,9],...pl],[[Vi,dl,Fi],[Vi,hl,13],[Vi,40,8],...pl],[[Vi,39,Fi]],[[Vi,34,Fi]],[[42,47,Fi]]],$l=t=>({styleId:Sl(t,(t=>t),!1)}),ml=/*#__PURE__*/bn($l),bl=t=>({scopeId:a+Sl(t,Oi,!0)}),wl=/*#__PURE__*/bn(bl),Sl=(t,n,e)=>{const{val:r,set:o,iCtx:s,i}=vn();if(r)return r;const l=(u=i,`${Kt(t.I)}-${u}`);var u;const c=s.p;o(l);const f=t.Xt(s.l);if(Z(f))throw f.then((t=>s.v.Ot(n(t,l),l,c,e))),f;return s.v.Ot(n(f,l),l,c,e),l},gl=t=>vl((()=>{const n=ct(t)&&!Si(t)?ns(void 0,t):t;return wn(n)})),vl=t=>{const{val:n,set:e}=vn();return null!=n?n:e(t=ct(t)&&!Si(t)?t():t)},El=t=>{const{val:n,set:e}=vn();if(n)return n;const r=new Fe(null,t);return e(r),Ce(t),r},Nl=(t,n)=>{const{val:e,set:r,i:o,iCtx:s}=vn(),i=n?.strategy??"intersection-observer";if(e)return;const l=new On(Nn.VISIBLE_TASK,o,s.p,t,void 0,null);r(l),kl(l,i),t.Xt(s.l),s.v.$(Nt.VISIBLE,l)},kl=(t,n)=>{"intersection-observer"===n?zn("qvisible",Al(t)):"document-ready"===n?Hn("qinit",Al(t)):"document-idle"===n&&Hn("qidle",Al(t))},Al=t=>li(null,"_task",Pn,null,null,[t]),Rl=(t,n)=>$e(pi(t),n),Ol=/*#__PURE__*/bn(kn),_l=/*#__PURE__*/bn(Nl),Pl=bn(El),Cl=()=>{const t=Ni({error:void 0});return zn("error-boundary",mt("/runtime","error",[t])),ps($s,t),t},xl=t=>{import.meta;const n=Ai("containerAttributes",{}),e=import.meta.env.BASE_URL||"/",r={base:n["q:base"],manifestHash:n["q:manifest-hash"],scope:"/",verbose:!1,path:"qwik-prefetch-service-worker.js",...t};r.path=t?.path?.startsWith?.("/")?t.path:e+r.path;let o=Ml.replace("URL",r.path).replace("SCOPE",r.scope);o=o.replaceAll(/\s+/gm,"");const s={dangerouslySetInnerHTML:["("+o+")(",[JSON.stringify(r.base),JSON.stringify(r.manifestHash),"navigator.serviceWorker","window.qwikPrefetchSW||(window.qwikPrefetchSW=[])",r.verbose].join(","),");"].join(""),nonce:r.nonce};return ur("script",null,s,null,0,"prefetch-service-worker")},Ml=/*#__PURE__*/((t,n,e,r,o)=>{e.register("URL",{scope:"SCOPE"}).then(((t,n)=>{n=()=>r.forEach(r.push=n=>t.active.postMessage(n)),t.installing?t.installing.addEventListener("statechange",(t=>"activated"==t.target.state&&n())):n()})),o&&r.push(["verbose"]),document.addEventListener("qprefetch",(n=>n.detail.bundles&&r.push(["prefetch",t,...n.detail.bundles])))}).toString(),Tl=(t={})=>{import.meta;const n=Ai("containerAttributes",{}),e={base:n[v],manifestHash:n["q:manifest-hash"],scope:"/",verbose:!1,path:"qwik-prefetch-service-worker.js",...t},r=JSON.stringify(["graph-url",e.base,`q-bundle-graph-${e.manifestHash}.json`]);return ur("script",null,{dangerouslySetInnerHTML:`(window.qwikPrefetchSW||(window.qwikPrefetchSW=[])).push(${r})`,nonce:t.nonce},null,0,"prefetch-graph")};export{di as $,gr as Fragment,Tl as PrefetchGraph,xl as PrefetchServiceWorker,wr as RenderOnce,me as Resource,Pt as SSRComment,_t as SSRRaw,xt as SSRStream,Ct as SSRStreamBlock,Ot as SkipRender,Rt as Slot,te as _CONST_PROPS,gs as _DomContainer,dn as _EFFECT_BACK_REF,pt as _EMPTY_ARRAY,Me as _EffectData,ee as _IMMUTABLE,Ze as _SharedContainer,ne as _VAR_PROPS,Vs as _deserialize,ir as _fnSignal,cs as _getContextElement,fs as _getContextEvent,ms as _getDomContainer,ws as _getQContainerElement,Sr as _isJSXNode,lr as _isStringifiable,as as _jsxBranch,fr as _jsxC,hr as _jsxQ,ar as _jsxS,ur as _jsxSorted,cr as _jsxSplit,wt as _noopQrl,St as _noopQrlDEV,mi as _qrlSync,Et as _regSymbol,oe as _restProps,At as _run,Ws as _serialize,Pn as _task,Zs as _verifySerializable,hs as _waitUntilRendered,ze as _walkJSX,ii as _weakSerialize,rr as _wrapProp,sr as _wrapSignal,or as _wrapStore,gi as component$,bi as componentQrl,gn as createComputed$,Sn as createComputedQrl,ds as createContextId,yr as createElement,wn as createSignal,vi as event$,yi as eventQrl,ms as getDomContainer,ht as getLocale,J as getPlatform,yr as h,bn as implicit$FirstArg,bt as inlinedQrl,vt as inlinedQrlDEV,n as isBrowser,e as isDev,t as isServer,xe as isSignal,dr as jsx,vr as jsxDEV,dr as jsxs,si as noSerialize,mt as qrl,gt as qrlDEV,Ei as render,Y as setPlatform,$i as sync$,ss as untrack,rn as unwrapStore,Pl as useComputed$,El as useComputedQrl,vl as useConstant,ys as useContext,ps as useContextProvider,Cl as useErrorBoundary,ki as useId,kt as useLexicalScope,zn as useOn,Hn as useOnDocument,Bn as useOnWindow,Rl as useResource$,$e as useResourceQrl,Ai as useServerData,gl as useSignal,Ni as useStore,ml as useStyles$,$l as useStylesQrl,wl as useStylesScoped$,bl as useStylesScopedQrl,Ol as useTask$,kn as useTaskQrl,_l as useVisibleTask$,Nl as useVisibleTaskQrl,Xe as version,dt as withLocale};
1
+ const t=!1,n=!0,e=!1,r=(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},o=(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)=>r(!0,t,...n))(e,...n)},s="<sync>",l=t=>"function"==typeof t&&"function"==typeof t.getSymbol,i="q:renderFn",u="⚡️",c="q:slot",f="q:sparent",a="q:s",h="q:style",d="style[q\\:style]",p=d+",style[q\\:sstyle]",y="q:sstyle",$="q:ctx",w="q:brefs",b=(t,n)=>t["qFuncs_"+n]||[],m="q:base",v="q:manifest-hash",g="q:instance",k="q:container-island",S="/"+k,q="q:ignore",x="/"+q,j="q:container",P="/"+j,A="http://www.w3.org/1999/xhtml",O="http://www.w3.org/2000/svg",R="http://www.w3.org/1998/Math/MathML",C="qRender",N="q:key",I="q:props",M="q:seq",E="q:seqIdx",F=":on",W=":onIdx",_=":onFlags",L="qkssr-f",D="dangerouslySetInnerHTML",T=()=>({isServer:t,importSymbol(t,n,e){if(!n)throw o(31,[e]);if(!t)throw o(30,[n,e]);const r=U(t.ownerDocument,t,n).toString(),s=new URL(r);return s.hash="",import(s.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??"_"]}),U=(t,n,e)=>{const r=t.baseURI,o=new URL(n.getAttribute(m)??r,r);return new URL(e,o)};let z=/*#__PURE__ */T();const H=t=>z=t,V=()=>z,Q=t=>t&&"number"==typeof t.nodeType,B=t=>1===t.nodeType,J=t=>!!t&&"object"==typeof t&&"function"==typeof t.then,G=(t,n,e)=>{try{const r=t();return J(r)?r.then(n,e):n(r)}catch(t){return e(t)}},Y=(t,n)=>J(t)?t.then(n,K):n(t),K=t=>{(t=>{throw r(!1,t,...[])})(t)},Z=t=>new Promise((n=>{setTimeout(n,t)}));function X(t,n=0){const e=e=>{if(J(e)&&n<100)return e.then(X.bind(null,t,n++));throw e};try{const n=t();return J(n)?n.catch((t=>e(t))):n}catch(t){return e(t)}}const tt=t=>{const n=Object.getPrototypeOf(t);return n===Object.prototype||n===Array.prototype||null===n},nt=t=>!!t&&"object"==typeof t,et=t=>Array.isArray(t),rt=t=>"string"==typeof t,ot=t=>"function"==typeof t,st=[],lt={};Object.freeze(st),Object.freeze(lt);const it=/*#__PURE__*/new Set,ut=(t,n,e=st)=>{let r=null,s=null;if(ot(t))s=t;else{if(!rt(t))throw o(12,[t]);r=t}return it.has(n)||(it.add(n),Us("qprefetch",{symbols:[n],bundles:r&&[r]})),Ls(r,n,null,s,null,e)},ct=(t,n,e=st)=>Ls(null,n,t,null,null,e),ft=(t,n=st)=>Ls(null,t,null,null,null,n),at=(t,n,e=st)=>{const r=ft(t,e);return r.dev=n,r},ht=(t,n,e,r=st)=>{const o=ut(t,n,r);return o.dev=e,o},dt=(t,n,e,r=st)=>{const o=ct(t,n,r);return o.dev=e,o},pt=(t,n)=>(void 0===globalThis.__qwik_reg_symbols&&(globalThis.__qwik_reg_symbols=new Map),globalThis.__qwik_reg_symbols.set(n,t),t);let yt;function $t(t){if(void 0===yt){const n=Ee();if(n&&n.t)return n.t;if(void 0!==t)return t;throw new Error("Reading `locale` outside of context.")}return yt}function wt(t,n){const e=yt;try{return yt=t,n()}finally{yt=e}}const bt=()=>{const t=We(),n=t.o;let e=t.l.getHostProp(n,M);null===e&&(e=[],t.l.setHostProp(n,M,e));let r=t.l.getHostProp(n,E);for(null===r&&(r=0),t.l.setHostProp(n,E,r+1);e.length<=r;)e.push(void 0);return{val:e[r],set:t=>e[r]=t,i:r,iCtx:t}},mt="$",vt="DOMContentLoaded",gt=t=>(t.startsWith("on")||t.startsWith("window:on")||t.startsWith("document:on"))&&t.endsWith(mt),kt=t=>t.startsWith("on:")||t.startsWith("on-window:")||t.startsWith("on-document:");function St(t){if(t.endsWith(mt)){const[n,e]=xt(t);if(-1!==e){const e=qt(t);return n+Ot(e)}}return null}function qt(t){if(t.endsWith(mt)){const[,n]=xt(t);if(-1!=n)return function(t,n=0){let e=n;const r=jt(t.charCodeAt(n));r&&e++;let o="";const s=t.substring(e,t.length-1);return s===vt?vt:(o+=r?s:s.toLowerCase(),o)}(t,n)}return null}function xt(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 jt=t=>45===t,Pt=t=>{const n=t.indexOf(":");return-1!==n?t.substring(0,n):""};function At(t){return t.startsWith("preventdefault:")}const Ot=t=>t.replace(/([A-Z-])/g,"-$1").toLowerCase(),Rt=t=>(/^[\w/.-]+$/.test(t),/*#__PURE__*/Object.freeze({id:Ot(t)})),Ct=(t,n)=>{const{val:e,set:r,iCtx:o}=bt();void 0===e&&(o.l.setContext(o.o,t,n),r(1))},Nt=(t,n)=>{const{val:e,set:r,iCtx:s}=bt();if(void 0!==e)return e;const l=s.l.resolveContext(s.o,t);if("function"==typeof n)return r(Le(void 0,n,l));if(void 0!==l)return r(l);if(void 0!==n)return r(n);throw o(13,[t.id])},It=/*#__PURE__*/Rt("qk-error"),Mt="2.0.0-alpha.9-dev+56ed5bd",Et=t=>yr(xr,null,{[a]:""},t.children,0,t.name??""),Ft=Symbol("skip render"),Wt=()=>null,_t=()=>null,Lt=t=>[vr(_t,{data:"qkssr-pu"}),t.children,vr(_t,{data:"qkssr-po"})],Dt=(t,n)=>vr(jr,{children:vr(Tt,t)},n),Tt=()=>null,Ut=Symbol("invalid"),zt=Symbol("backRef");function Ht(t,n,e){t[zt]||(t[zt]=new Map);const r=t[zt];let o=r.get(n);return o||(o=[t,n],r.set(n,o)),e&&(o[3]=e),o}const Vt=t=>{if(!t.resolved)throw t.resolve()},Qt=t=>t instanceof Jt;class Bt{data;constructor(t){this.data=t}}class Jt{u;h=null;l=null;constructor(t,n){this.l=t,this.u=n}get untrackedValue(){return this.u}set untrackedValue(t){this.u=t}get value(){const t=Ee();if(t){if(null===this.l){if(!t.l)return this.untrackedValue;this.l=t.l}const n=t.p;if(n){const t=this.h||=new Set;Gt(t,n),Yt(n,this),Kt(n,this.l)}}return this.untrackedValue}set value(t){t!==this.u&&(this.u=t,Zt(this.l,this,this.h))}valueOf(){}toString(){return this.constructor.name}toJSON(){return{value:this.u}}}const Gt=(t,n)=>{t.add(n)},Yt=(t,n)=>{t[2]||=new Set,t[2].add(n)},Kt=(t,n)=>{if(n&&!Ne(n)){const e=t[0],r=t[1];let o=null;jn(e)?o=e.$:e instanceof Xt?o=e.m:":"===r&&(o=n.getHostProp(e,i)),o&&n.serializationCtx.v.add(o)}},Zt=(t,n,e)=>{const r=Ne(t);if(e){const o=e=>{const o=e[0],s=e[1];if(jn(o)){o.k|=8;let n=3;1&o.k&&(n=32),t.S(n,o)}else if(o instanceof Jt)o instanceof Xt&&(o.m.resolved||t.S(1,null,o.m)),o.q();else if(":"===s){const n=o,e=t.getHostProp(n,i),r=t.getHostProp(n,I);t.S(6,n,e,r)}else if(r)if("."===s)t.S(4,o,o,n);else{const r=e[3];if(r instanceof Bt){const e={...r.data,j:n};t.S(5,o,s,e)}}};for(const t of e)o(t)}};class Xt extends Jt{m;k;P=!1;[zt]=null;constructor(t,n,e=1){super(t,Ut),this.m=n,this.k=e}q(){this.k|=1,this.P=!1,this.l?.S(7,null,this)}force(){this.P=!0,this.l?.S(7,null,this)}get untrackedValue(){const t=this.A();return t&&(this.P=t),this.u}A(){if(!(1&this.k))return!1;const t=this.m;Vt(t);const n=Ee(),e=n?.p;n&&(n.p=Ht(this,"."));try{const e=t.getFn(n)();if(J(e))throw o(46,[t.dev?t.dev.file:"",t.O]);this.k&=-2;const r=e!==this.u;return r&&(this.u=e),r}finally{n&&(n.p=e)}}set value(t){throw o(47)}get value(){return super.value}}class tn extends Jt{R;C;N;k;o=null;P=!1;[zt]=null;constructor(t,n,e,r,o=3){super(t,Ut),this.R=e,this.C=n,this.N=r,this.k=o}q(){this.k|=1,this.P=!1,this.l?.S(7,this.o,this)}force(){this.k|=1,this.P=!1,Zt(this.l,this,this.h)}get untrackedValue(){const t=this.A();return t&&(this.P=t),this.u}A(){if(!(1&this.k))return!1;const t=Ve((()=>this.C(...this.R)),this,".",this.l),n=t!==this.u;return n&&(this.u=t),n}set value(t){throw o(48)}get value(){return super.value}}class nn extends Xt{constructor(t,n){super(t,n)}I=!1;A(){if(!(1&this.k))return!1;Vt(this.m);let t=this.m.resolved;"function"==typeof t&&(t=t());const{deserialize:n,initial:e}=t,r=t.update,o=this.u===Ut?e:this.u,s=Ve((()=>this.I?r?.(o):n(o)),this,".",this.l),l=this.I&&"undefined"!==s||s!==this.u;return this.k&=-2,this.I=!0,l&&(this.u=s),l}}const en=t=>"object"==typeof t&&null!==t&&"function"==typeof t[_s],rn=Symbol("store.target"),on=Symbol("store.handler"),sn=Symbol("store.all"),ln=t=>t[on],un=t=>t?.[rn]||null,cn=t=>un(t)||t,fn=t=>rn in t;function an(t,n,e){return new Proxy(n,new dn(e,t||null))}const hn=(t,n,e)=>{if(tt(t)&&e){let r=e.M.get(t);return r||(r=an(e,t,n),e.M.set(t,r)),r}return t};class dn{k;l;h=null;constructor(t,n){this.k=t,this.l=n}toString(){return"[Store]"}get(t,n){if("symbol"==typeof n)return n===rn?t:n===on?this:t[n];const e=Ee(),r=t[n];if(e){if(null===this.l){if(!e.l)return r;this.l=e.l}const o=e.p;o&&pn(t,Array.isArray(t)?sn:n,this,o)}return"toString"===n&&r===Object.prototype.toString?this.toString:1&this.k&&"object"==typeof r&&null!==r&&!Object.isFrozen(r)&&!fn(r)&&!Object.isFrozen(t)?hn(r,this.k,this.l):r}set(t,n,e){if("symbol"==typeof n)return t[n]=e,!0;const r=1&this.k?cn(e):e;return n in t?r!==t[n]&&yn(n,r,t,this):yn(n,r,t,this),!0}deleteProperty(t,n){return"string"==typeof n&&delete t[n]&&(Zt(this.l,this,$n(t,n,this.h)),!0)}has(t,n){if(n===rn)return!0;if("string"==typeof n){const e=Ee();if(e){const r=e.p;r&&pn(t,Array.isArray(t)?sn:n,this,r)}}return Object.prototype.hasOwnProperty.call(t,n)}ownKeys(t){const n=Ee(),e=n?.p;return e&&pn(t,sn,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 pn(t,n,e,r){const o=e.h||=new Map;let s=o.get(n);s||(s=new Set,o.set(n,s)),Gt(s,r),Yt(r,t),Kt(r,e.l)}function yn(t,n,e,r){e[t]=n,Zt(r.l,r,$n(e,t,r.h))}function $n(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(sn);if(o){r||=new Set;for(const t of o)r.add(t)}return r||null}class wn{[zt]=null}function bn(t,n){Wr(n)&&_r(n)&&yo(n);const e=n[zt];if(e)for(const[,n]of e){const e=n[2];if(!e)return;for(const r of e)if(r instanceof Jt)mn(t,r,n);else if(t.M.has(r)){const e=t.M.get(r);vn(ln(e),n)}}}function mn(t,n,e){const r=n.h;r&&r.delete(e),n instanceof tn&&(n.o=null,bn(t,n))}function vn(t,n){const e=t?.h;if(e)for(const t of e.values())t.delete(n)}const gn=()=>{const t=Fe();let n=t.$;return n||(n=Oe(Ce(t.F)).parseQRL(decodeURIComponent(String(t.W)))),n._},kn=t=>{const{val:n,set:e,iCtx:r,i:o}=bt();if(n)return;e(1);const s=new xn(10,o,r.o,t,void 0,null);e(s);const l=r.l.S(3,s);J(l)&&l.catch((()=>{}))},Sn=(t,n,e)=>{t.k&=-9,qn(t);const r=Ue(n.t,e,void 0,"qTask");r.l=n;const s=t.$.getFn(r,(()=>bn(n,t)));let l=null;const i=r=>{"function"==typeof r&&(l||(l=[],t.L=Es((()=>{t.L=null,l.forEach((t=>{try{t()}catch(t){n.handleError(t,e)}}))}))),l.push(r))},u={track:(e,r)=>{const s=Ue();return s.p=Ht(t,":"),s.l=n,Le(s,(()=>{if(ot(e))return e();if(r)return e[r];if(Qt(e))return e.value;if(fn(e))return pn(un(e),sn,ln(e),s.p),e;throw o(2)}))},cleanup:i};return G((()=>s(u)),i,(r=>{if(J(r))return r.then((()=>Sn(t,n,e)));throw r}))},qn=t=>{const n=t.L;if(n){t.L=null;try{n()}catch(t){r(!1,t)}}};class xn extends wn{k;D;T;$;U;L;constructor(t,n,e,r,o,s){super(),this.k=t,this.D=n,this.T=e,this.$=r,this.U=o,this.L=s}}const jn=t=>t instanceof xn,Pn=(t,n)=>{const[e]=gn(),r=1&e.k?32:3;Oe(n).S(r,e)},An=t=>u+t;function On(t){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&Rn(n))return!0;return!1}function Rn(t){return"class"===t||"className"===t}const Cn=t=>{if(t){let n=0;do{t=t.substring(0,n)+An(t.substring(n))}while(0!==(n=t.indexOf(" ",n)+1))}return t||null},Nn=(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)},In=(t,n,e,r)=>{const o=Nn(t,n,r);o>=0?null==e?t.splice(o,2):t[o+1]=e:null!=e&&t.splice(~o,0,n,e)},Mn=(t,n,e)=>{const r=Nn(t,n,e);return r>=0?t[r+1]:null},En=t=>"foreignObject"===t;function Fn(t,n,e){const r=t.ownerDocument.createElementNS(e,n),o=t.attributes;for(const t of o){const n=t.name;n&&":"!==n&&r.setAttribute(n,t.value)}return r}function Wn(t,n,e,r){Hr(t);let o=t,s=null,l=null,i=null;for(;o;){let u=null,c=null;if(_r(o)){u=o[6];const t=fo(o),s=Ho(o),f=null==l?n:s&&io(s);if(f){const t=_n(f,fo(o));e=t.elementNamespace,r=t.elementNamespaceFlag}c=Fn(u,t,e),u.remove(),null==l&&(l=c),i&&i.appendChild(c);const a=po(o);if(o[6]=c,o[0]&=-193,o[0]|=r,a){o=a,i=c;continue}if(wo(u)){const t=Re(u);if(t){const n=po(t.rootVNode);if(n){o=n,i=c;continue}}}}if(o===t)return l;const f=Wo(o);if(f)o=f;else{for(s=Ho(o);s;){if(s===t)return l;const n=Wo(s);if(n)return o=n,l;s=Ho(s)}if(null==s)return l}}return l}function _n(t,n){const e=!t||!(!fo(t)||(r=t,192&r[0]));var r;const o=!e&&En(fo(t));let s=A,l=0;const i="string"==typeof n||_r(n);return i&&function(t){return"string"==typeof t?"svg"===(n=t)||En(n):!!(64&t[0]);var n}(n)?(s=O,l=64):i&&function(t){return"string"==typeof t?"math"===t:!!(128&t[0])}(n)?(s=R,l=128):!t||o||e||(s=64&t[0]?O:128&t[0]?R:A,l=192&t[0]),{elementNamespace:s,elementNamespaceFlag:l}}const Ln=(t,n,e,r,o)=>{const s=Ue(t.t,e||void 0,void 0,C);let u;e&&(s.p=Ht(e,":"),s.l=t),t.ensureProjectionResolved(n);let c=!1;if(null===r&&(r=t.getHostProp(n,i)),l(r))(o=o||t.getHostProp(n,I)||lt).children&&delete o.children,u=r.getFn(s);else if(Zs(r)){const t=r;u=()=>De(s,t,[o||lt,null,0])}else{c=!0;const t=r;u=()=>De(s,t,[o||lt])}const f=(e=0)=>G((()=>(c||(t.setHostProp(n,E,null),t.setHostProp(n,W,null),t.setHostProp(n,I,o)),Wr(n)&&bn(t,n),u(o))),(e=>{const r=t.getHostProp(n,F);return r?function(t,n){const e=Tn(t);let r=t;return Y(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]=Un(r);r=e,t&&Dn(t,"document:onQinit$",n[o])}else if(o.startsWith("document:")||o.startsWith("window:")){const[t,e]=Un(r);r=e,t&&Dn(t,o,n[o])}}else t&&Dn(t,o,n[o]);return r}))}(e,r):e}),(t=>{if(J(t)&&e<100)return t.then((()=>f(e++)));throw t}));return f()};function Dn(t,n,e){let r=t.props;r===lt&&(r=t.props={});let o=r[n];void 0===o?o=[]:Array.isArray(o)||(o=[o]),o.push(...e),r[n]=o}function Tn(t){const n=[t];for(;n.length;){const t=n.shift();if(Pr(t)){if("string"==typeof t.type)return t;n.push(t.children)}else if(Array.isArray(t))n.push(...t);else{if(J(t))return Y(t,(t=>Tn(t)));if(Qt(t))return Tn(ze((()=>t.value)))}}return null}function Un(t){if(Pr(t)){const n=new qr("script",{},{type:"placeholder",hidden:""},null,3);return t.type===Et?[n,yr(Ar,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]=Un(t[0]);return[n,t]}return[null,null]}const zn=Symbol("CONST"),Hn=Symbol("VAR"),Vn=Symbol("IMMUTABLE");function Qn(t){return!t.startsWith("q:")&&!t.startsWith(":")}const Bn=(t,n,e={})=>{let r=null;const o=t[zn];if(o)for(const t in o)n.includes(t)||(r||={},r[t]=o[t]);const s=e,l=t[Hn];for(const t in l)n.includes(t)||(s[t]=l[t]);return Rr(s,r)};function Jn(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)+"&lt;";else if(62===e)n+=t.substring(o,r)+"&gt;";else if(38===e)n+=t.substring(o,r)+"&amp;";else if(34===e)n+=t.substring(o,r)+"&quot;";else{if(39!==e)continue;n+=t.substring(o,r)+"&#39;"}o=r+1}return 0===o?t:n+t.substring(o)}const Gn=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"]),Yn=(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)},Kn=t=>{if(!t)return"";if(rt(t))return t.trim();const n=[];if(et(t))for(const e of t){const t=Kn(e);t&&n.push(t)}else for(const[e,r]of Object.entries(t))r&&n.push(e.trim());return n.join(" ")};function Zn(t,n,e){if(Rn(t)){const t=Kn(n);n=e?e+(t.length?" "+t:t):t}else"style"===t?n=(t=>{if(null==t)return"";if("object"==typeof t){if(et(t))throw o(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()+":"+Xn(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&&At(t)&&(n="");return n}const Xn=(t,n)=>"number"!=typeof n||0===n||Gn.has(t)?n:n+"px",te=(t,n,e,r)=>{let s=t.H;const l=[],u=[];let a=null,h=null,d=null,p=null,y=null,$=null,b=null,m=0,v=0,g=!0;return k(n,e),function t(){for(;u.length;){const n=u.shift(),e=u.shift();if(J(n))return n.then((n=>(k(n,e),t())));k(n,e)}}();function k(n,e){for(Wr(n),Wr(e),a=e,d=null,h=po(e),O(n,!0);l.length;){for(;m<v;){if("string"==typeof b)V(b);else if("number"==typeof b)V(String(b));else if(b&&"object"==typeof b){if(Array.isArray(b))P(b,!1);else if(Qt(b))h&&bn(t,h),T(0,null),P(Qe(b,d||h,".",t),!0);else if(J(b))T(0,null),u.push(b,d||h);else if(Pr(b)){const t=b.type;"string"==typeof t?(F(),W(b,t),P(b.children,!0)):"function"==typeof t&&(t===Ar?(F(),T(0,b.key),P(b.children,!0)):t===Et?(F(),M()||P(b.children,!0)):t===re?(C(),P(b.children,!0)):t===_t||t===Wt?E():(F(),U(t)))}}else b===Ft?s=[]:V("");S()}E(),A()}}function S(){if(g){if(m++,m<v)b=$[m];else if(!1===l[l.length-1])return A();null!==d?d=null:x()}else g=!0}function q(){return h?Wo(h):null}function x(){h=q()}function P(n,e){null!=n?(O(n,e),e&&(p=null,y=null,a=d||h,h=po(a),d=null),g=!1):function(){const n=h&&po(h);if(null!==n){let e=n;for(;e;)se(t,e),e=Wo(e);co(s,h,n)}}()}function A(){l.pop()&&(p=l.pop(),y=l.pop(),d=l.pop(),h=l.pop(),a=l.pop()),b=l.pop(),v=l.pop(),m=l.pop(),$=l.pop(),S()}function O(t,n){l.push($,m,v,b),n&&l.push(a,h,d,y,p),l.push(n),Array.isArray(t)?(m=0,v=t.length,$=t,b=v>0?t[0]:null):void 0===t?(m=0,b=null,$=null,v=0):(m=0,b=t,$=null,v=1)}function R(){return d?h:q()}function C(){const n=b.key;h=To(a,n,(n=>Kr(t.rootVNode,n))),h=h&&32&h[0]?null:h,null==h&&(d=Fr(),Uo(d,c,n),Uo(d,f,a),Uo(a,n,d))}function M(){const n=Ko(a,t.rootVNode),e=function(n){const e=b,r=e.constProps;if(r&&"object"==typeof r&&"name"in r){const e=r.name;if(n&&e instanceof tn)return Qe(e,n,":",t)}return Nr(e,"name")||""}(n),r=n?To(n,e,null):null;return null==r?(so(s,a,d=Fr(),h&&R()),Uo(d,c,e),n&&Uo(n,e,d),!1):(r===h||(so(s,a,d=r,h&&R()),Uo(d,c,e),n&&Uo(n,e,d)),!0)}function E(){if(null!==h)for(;h;){const n=h;x(),a===Ho(n)&&(se(t,n),uo(s,a,n,!0))}}function F(){for(;null!==h&&Lr(h);){se(t,h);const n=h;x(),uo(s,a,n,!0)}}function W(n,e){const l=h&&_r(h)&&e===fo(h),i=n.key;let u=!1;const c=function(t){if(!t)return null;const n=t.fileName?.replace(/\\/g,"/");return n?`${n}:${t.lineNumber}:${t.columnNumber}`:null}(n.dev);l&&i===ne(h)||(d=L(e,i),null===d?u=function(n,e){const l=function(n){const e=io(a),{elementNamespace:r,elementNamespaceFlag:o}=_n(e,n),s=t.document.createElementNS(r,n);return d=Ir(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(gt(n)){const t=qt(n),e=Pt(n);if(t&&(Uo(d,ue+":"+e+":"+t,c),_(t)),e){const t=St(n);t&&Lo(s,d,t,"")}u=!0}else{if("ref"===n){if(Qt(c)){c.value=l;continue}if("function"==typeof c){c(l);continue}if(null==c)continue;throw o(32,[undefined])}if(Qt(c)){const e=new Bt({B:r,J:!0});c=Qe(c,d,n,t,e)}if(n!==D)if("textarea"!==e||"value"!==n)c=Zn(n,c,r),null!=c&&l.setAttribute(n,String(c));else{if(c&&"string"!=typeof c)continue;l.value=Jn(c||"")}else l.innerHTML=c,l.setAttribute(j,"html")}}const c=n.key;return c&&(l.setAttribute(N,c),Uo(d,N,c)),!(On(n.varProps)||n.constProps&&On(n.constProps))&&r&&l.setAttribute("class",r),so(s,a,d,h),u}(n,e):(so(s,a,d,h),h=d,d=null));const f=[],p=n.varProps;for(const t in p){const n=p[t];null!=n&&In(f,t,n,0)}null!==i&&In(f,N,i,0);const y=d||h,$=y[6];$.vNode=new WeakRef(y),u=function(n,e,l){Qr(n);const i=zo(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,p=!1;const y=(e,u)=>{if(e.startsWith(":"))Uo(n,e,u);else{if("ref"===e){const t=Vo(n);if(Qt(u))return void(u.value=t);if("function"==typeof u)return void u(t);throw o(32,[l])}if(Qt(u)){const o=new Bt({B:r,J:!1});u=Qe(u,n,e,t,o)}Lo(s,n,e,null!==u?Zn(e,u,r):null),null===u&&(a=i.length)}},$=(t,n)=>{const e=qt(t),r=Pt(t);if(e&&(y(":"+r+":"+e,n),_(e)),r){const n=St(t);n&&y(n,"")}};for(;null!==h||null!==d;)if(d?.startsWith(ue)||d?.startsWith("q:"))f++,d=f<a?i[f++]:null;else if(null==h)d&&kt(d)?f++:(y(d,null),f--),d=f<a?i[f++]:null;else if(null==d)gt(h)?(p=!0,$(h,e[u])):y(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++]&&y(d,t),h=u<c?e[u++]:null,d=f<a?i[f++]:null}else h<d?(gt(h)?(p=!0,$(h,e[u])):y(h,e[u]),u++,h=u<c?e[u++]:null,f++,a=i.length,d=f<a?i[f++]:null):(kt(d)?(p=!0,f++):(y(d,null),f--),d=f<a?i[f++]:null);return p}(y,f,c)||u,u&&($.qDispatchEvent||($.qDispatchEvent=(n,e)=>{const r=n.type,o=":"+e.substring(1)+":"+r,s=[To(y,o,null),To(y,ue+o,null)];let l=!1;return s.flat(2).forEach((e=>{if(e){const r=t.S(2,y,e,[n,$]);l=l||!0===r}})),l}))}function _(n){const e=t.document.defaultView;e&&(e.qwikevents||=[]).push(n)}function L(n,e){let r=null;if(null===p){p=new Map,y=[];let o=h;for(;o;){const s=_r(o)?fo(o):null,l=ne(o)||ee(o,t.G);null===r&&l==e&&s==n?r=o:null===l?y.push(s,o):p.set(s+":"+l,o),o=Wo(o)}}else if(null===e){for(let t=0;t<y.length;t+=2)if(y[t]===n){r=y[t+1],y.splice(t,2);break}}else{const t=p.get(n+":"+e);t&&(r=t,p.delete(n+":"+e))}return r}function T(t,n){h&&Dr(h)&&ne(h)===n&&n||(null===n||(d=L(null,n),null==d)?(so(s,a,d=Fr(),h&&R()),Uo(d,N,n)):so(s,a,d,h&&R()))}function U(n){const e=n[Ks];let r=d||h;const o=b;if(e){const n=o.props;let l=!1;const[i]=e,u=i.O,f=ee(r,t.G),p=o.key||u;if(p===(ne(r)||f)?u===f&&o.key||(z(r,i,n),r=d,l=!0):(d=L(null,p),d?so(s,a,d,h):z(r,i,n),r=d,l=!0),r){const e=To(r,I,t.G);l=l||function(t,n){if(!t||!n)return!0;let e=oe(Object.keys(t),["children",w]),r=oe(Object.keys(n),["children",w]);if(e.length!==r.length)return!0;e=e.sort(),r=r.sort();for(let o=0;o<e.length;o++){const s=e[o],l=r[o];if(s!==l||t[s]!==n[l])return!0}return!1}(n,e),l&&(r[0]&=-33,t.S(6,r,i,n))}!function(t,n){const e=Array.isArray(t)?t:[t],r=t=>new qr(re,lt,null,[],0,t),o=[];if(n){const t=zo(n);for(let n=0;n<t.length;n+=2){const e=t[n];if(Qn(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(Pr(n)&&Nr(n,c)||""),l=Nn(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);P(o,!0)}}(o.children,r)}else{const e=o.key,l=e===ne(r),c=ee(r,t.G);if(l?null!=c&&(H(),r=d):(d=L(null,e),d?so(s,a,d,h):H(),r=d),r){let e=r;for(;e&&(!Dr(e)||null===To(e,i,null));)e=Ho(e);const s=Ln(t,r,e||t.rootVNode,n,o.props);u.push(s,r)}}}function z(n,e,r){n&&bn(t,n),so(s,a,d=Fr(),h&&R());const o=b;t.setHostProp(d,i,e),t.setHostProp(d,I,r),t.setHostProp(d,N,o.key)}function H(){so(s,a,d=Fr(),h&&R());const t=b;Uo(d,I,t.props),t.key&&Uo(d,N,t.key)}function V(n){if(null!==h&&3===Go(h))return n!==ao(h)?void ho(s,h,n):void 0;so(s,a,d=Er(t.document.createTextNode(n),n),h)}};function ne(t){return null==t?null:To(t,N,null)}function ee(t,n){if(null==t)return null;const e=To(t,i,n);return e?e.O:null}function re(){}function oe(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 se(t,n){let e=n;if(Lr(n))return void ie(e);let r=null;for(;;){const o=e[0];if(3&o){if(bn(t,e),ie(e),2&o){const n=t.getHostProp(e,M);if(n)for(let e=0;e<n.length;e++){const r=n[e];if(jn(r)){const n=r;bn(t,n),1&n.k?t.S(48,n):qn(n)}}}if(2&o&&null!==To(e,i,null)){const n=zo(e);for(let e=0;e<n.length;e+=2)if(Qn(n[e])){const r=n[e+1];if(r){n[e+1]=null;const o="string"==typeof r?Kr(t.rootVNode,r):r;let s=po(o);for(;s;)se(t,s),s=Wo(s);le(t.H,o)}}}if(Tr(e)){if(e===n){const t=po(e);if(t)return void Br(t)}}else{const t=po(e);if(t){e=t;continue}}}else 4&o&&ie(e);if(e===n)return;const s=Wo(e);if(s)e=s;else{for(r=Ho(e);r;){if(r===n)return;const t=Wo(r);if(t){e=t;break}r=Ho(r)}if(null==r)return}}}function le(t,n){const e=Ho(n);e&&1&e[0]&&"q:template"===fo(e)&&uo(t,e,n,!0)}function ie(t){t[0]|=32}const ue=":",ce=t=>function(n,...e){return t.call(null,Qs(n),...e)},fe=t=>(Vt(t),new Xt(null,t)),ae=t=>(Vt(t),new nn(null,t)),he=t=>new Jt(null,t),de=/*#__PURE__*/ce(fe),pe=ce(ae),ye=(t,n)=>{const{val:e,set:r,i:o,iCtx:s}=bt();if(null!=e)return e;const l=s.l,i=we(l,n),u=new xn(12,o,s.o,t,i,null);return l.S(3,u),r(i),i},$e=t=>yr(Ar,null,null,function(t){const n=t.value;if(be(n)){{const e=n._state;if("pending"===e&&t.onPending)return Promise.resolve().then(_e(t.onPending));if("rejected"===e&&t.onRejected)return Promise.resolve(n._error).then(_e(t.onRejected));{const e=ze((()=>n._resolved));if(void 0!==e)return Promise.resolve(e).then(_e(t.onResolved))}}const e=n.value;return e?e.then(_e(t.onResolved),_e(t.onRejected)):Promise.resolve(void 0)}return J(n)?n.then(_e(t.onResolved),_e(t.onRejected)):Qt(n)?Promise.resolve(n.value).then(_e(t.onResolved),_e(t.onRejected)):Promise.resolve(n).then(_e(t.onResolved),_e(t.onRejected))}(t),0,null),we=(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,an(t,r,1)},be=t=>nt(t)&&"resource"===(un(t)||t).__brand,me=(t,n,e)=>{t.k&=-9,qn(t);const r=Ue(n.t,e,void 0,"qResource");r.l=n;const o=t.$.getFn(r,(()=>bn(n,t))),s=t.U,l=[];t.L=Es((()=>{l.forEach((t=>{try{t()}catch(t){n.handleError(t,e)}})),a=!0}));const i=cn(s),u={track:(e,r)=>{const o=Ue();return o.p=Ht(t,":"),o.l=n,Le(o,(()=>ot(e)?e():r?e[r]:Qt(e)?e.value:e))},cleanup(t){"function"==typeof t&&l.push(t)},cache(t){let n=0;n="immutable"===t?1/0:t,s._cache=n},previous:i._resolved};let c,f,a=!1;const h=(t,n)=>!a&&(a=!0,t?(a=!0,s.loading=!1,s._state="resolved",s._resolved=n,s._error=void 0,c(n)):(a=!0,s.loading=!1,s._state="rejected",s._error=n,f(n)),!0);l.push((()=>{if(!0===ze((()=>s.loading))){const t=ze((()=>s._resolved));h(!0,t)}})),Le(r,(()=>{s._state="pending",s.loading=!0,(s.value=new Promise(((t,n)=>{c=t,f=n}))).catch(ve)}));const d=G((()=>Promise.resolve(o(u))),(t=>{h(!0,t)}),(r=>{if(J(r))return r.then((()=>me(t,n,e)));h(!1,r)})),p=i._timeout;return p>0?Promise.race([d,Z(p).then((()=>{h(!1,new Error("timeout"))&&qn(t)}))]):d},ve=()=>{},ge=[],ke=[],Se=[],qe=[],xe=t=>t.Y||=new Promise((n=>{t.K=n})),je=(t,n,e)=>{const r=[],o=[];let s=null,l=!1;return function e(o,s=null,u=null,f=null){const a=!Ne(t),h=255!==o&&!(a&&6===o)&&2!==o,d=3===o||32===o||48===o;if(a&&(16===o||4===o||5===o))return;d&&(s.k|=8);let p={Z:o,X:d?s.D:"string"==typeof u?u:0,tt:d?s.T:s,nt:u,et:d?s:f,K:null,Y:null,rt:null,ot:!1};return p=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.Z&&(o.et=n.et),o.ot&&(o.ot=!1),o}(r,p,t.rootVNode||null),!l&&h&&(l=!0,e(16),n()?.catch?.((()=>{}))),h?xe(p):i(p,a)};function i(n,e){let o=5e3;for(;r.length;){if(o--<0)throw new Error("drainUpTo: max retries reached");if(s)return xe(s).then((()=>i(n,e))).catch((n=>{t.handleError(n,s?.tt)}));const c=r[0];if(c.ot){if(r.shift(),c===n)break}else(l=c).tt&&Wr(l.tt)&&32&l.tt[0]&&48!==c.Z?r.shift():u(c,e)}var l;return n.rt}function u(n,r){const i=n.tt;s=n;let u=null;try{switch(n.Z){case 255:r&&(l=!1);break;case 16:u=e(),l=!1;break;case 6:u=G((()=>Ln(t,i,i,n.nt,n.et)),(n=>{if(r)return n;{const e=t.getHostProp(i,y);return X((()=>te(t,n,i,Cn(e))))}}),(n=>t.handleError(n,i)));break;case 2:{const e=n.nt.getFn(),r=X((()=>e(...n.et)));if(J(r)){const e=r.finally((()=>{o.splice(o.indexOf(e),1)})).catch((e=>{t.handleError(e,n.tt)}));return o.push(e),n.rt=e,n.K?.(e),s=null,void(n.ot=!0)}u=null}break;case 3:case 32:{const e=n.et;if(4&e.k){const n=me(e,t,i);u=r?n:null}else u=Sn(e,t,i)}break;case 48:qn(n.et);break;case 4:{const e=n.nt;let r=n.et;Qt(r)&&(r=r.value),u=X((()=>te(t,r,e,null)))}break;case 5:{const e=n.tt,r=n.et;let o=r.j;Qt(o)&&(o=o.value);const s=r.J,l=t.H,i=n.X,u=Zn(i,o,r.B);s?l.push(2,e[6],i,u):Lo(l,e,i,u)}break;case 1:{const t=n.nt;u=t.resolved?null:t.resolve()}break;case 7:{const e=n.nt,r=e.P;if(e.P=!1,!e.h?.size)break;u=X((()=>{(e.A()||r)&&Zt(t,e,e.h)}))}}}catch(t){u=Promise.reject(t)}const c=(e,r)=>{s=null,n.ot=!0,r?t.handleError(r,i):(n.rt=e,n.K?.(e))};J(u)?(n.Y=u.then(c,(t=>c(void 0,t))),n.K?.(n.Y),n.K=void 0):c(u)}function c(t,n,e){const r=(240&t.Z)-(240&n.Z);if(0!==r)return r;const o=t.tt,l=n.tt;if(o!==l&&null!==o&&null!==l)if(Wr(o)&&Wr(l)){const t=((t,n,e)=>{if(t===n)return 0;let r=-1,o=-1;for(;t;)t=(ge[++r]=t)[1]||e&&To(t,f,(t=>Kr(e,t)));for(;n;)n=(ke[++o]=n)[1]||e&&To(n,f,(t=>Kr(e,t)));for(;r>=0&&o>=0;){if((t=ge[r])!==(n=ke[o])){let r=n;do{if(r=Wo(r),r===t)return 1}while(r);r=n;do{if(r=_o(r),r===t)return-1}while(r);return e&&To(n,f,(t=>Kr(e,t)))?-1:1}r--,o--}return r<o?-1:1})(o,l,e);if(0!==t)return t}else{Wr(o),Wr(l),o.toString();const t=((t,n)=>{if(t===n)return 0;let e=-1,r=-1;for(;t;)t=(Se[++e]=t).currentComponentNode;for(;n;)n=(qe[++r]=n).currentComponentNode;for(;e>=0&&r>=0;){if((t=Se[e])!==(n=qe[r]))return 1;e--,r--}return e<r?-1:1})(o,l);if(0!==t)return t}const i=(15&t.Z)-(15&n.Z);if(0!==i)return i;const u=Pe(t.X)-Pe(n.X);return 0!==u?u:t.nt!==n.nt||t.et!==n.et||n===s?1:0}},Pe=t=>"number"==typeof t?t:-1;class Ae{st;S;M;t;G;lt;it=0;ut=null;ct=null;constructor(t,n,e,r){this.lt=e,this.t=r,this.st=Mt,this.M=new WeakMap,this.G=()=>{throw Error("Not implemented")},this.S=je(this,t,n)}trackSignalValue(t,n,e,r){return Qe(t,n,e,this,r)}serializationCtxFactory(t,n,e,r,o){return as(t,n,e,this.getHostProp.bind(this),this.setHostProp.bind(this),this.M,r,o)}}function Oe(t){const n=Ce(t);if(!n)throw o(41);return Re(n)}function Re(t){let n=t.qContainer;return n||(n=new Ie(t)),n}function Ce(t){return(Array.isArray(t)?lo(t):t).closest("[q\\:container]:not([q\\:container=html]):not([q\\:container=text])")}const Ne=t=>t instanceof Ie;class Ie extends Ae{element;qContainer;qManifestHash;rootVNode;document;H;renderDone=null;ft;M=new WeakMap;ht;ut;vNodeLocate=t=>Kr(this.rootVNode,t);dt;yt=null;$t=0;constructor(t){if(super((()=>this.scheduleRender()),(()=>oo(this.H)),{},t.getAttribute("q:locale")),this.qContainer=t.getAttribute(j),!this.qContainer)throw o(42);this.H=[3,t.ownerDocument],this.document=t.ownerDocument,this.element=t,this.ct=t.getAttribute(m),this.ut=t.getAttribute(g),this.qManifestHash=t.getAttribute(v),this.rootVNode=Mr(this.element),this.ft=[],this.dt=[];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},p=t=>33<=t&&t<=46,y=(t,n,e)=>{let r=0;for(;n<e;){const e=t.charCodeAt(n);if(0===r&&p(e))break;123===e?r++:125===e&&r--,n++}return n},$=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,v=-1,g=null;const k=()=>{let t=0;for(;p(m=s.charCodeAt(a))&&(t+=1<<m-33,a++,!(a>=u)););return t};do{if(r===o)return;g=null;const p=r==e?2:d(r);if(3===p){const t=r;let e=r;for(;e&&!(g=$(e));)e=e.parentNode;b(n,t,r,g,t.qVnodeData||"",t.qVNodeRefs)}else if(16===p){let t=r;do{if(t=n.nextNode(),!t)throw new Error(`Island inside \x3c!--${r?.nodeValue}--\x3e not found!`)}while(65!==d(t));g=null}else if(128===p){g=r;do{if(g=n.nextNode(),!g)throw new Error("Ignore block not closed!")}while(32!==d(g));g=null}else if(5===p){g=r;do{if(g=$(g),!g)throw new Error(`\x3c!--${r?.nodeValue}--\x3e not closed!`)}while(8!==d(g));b(n,r,r,g,"",null)}else if(6===p){g=$(r);const n=r,e=n?.shadowRoot;e&&b(t.createTreeWalker(e,129),null,w(e),null,"",null)}if(!(2&~p)){if(f<c&&(-1===f&&(f=0),a=h,a<u?(f+=k(),126===m&&(v=f,a++,m=a<u?s.charCodeAt(h):33),h=y(s,a,u)):f=Number.MAX_SAFE_INTEGER),c===f){v===c&&l.set(c,r);const t=s.substring(a,h);i.set(r,t)}c++}}while(r=g||n.nextNode())},m=t.createTreeWalker(t,129);b(m,null,m.firstChild(),null,"",null)}(n),this.ht=b(n,this.ut)||st,this.wt(),t.setAttribute(j,"resumed"),t.qContainer=this;const e=t.querySelectorAll('script[type="qwik/state"]');0!==e.length&&(this.ft=JSON.parse(e[e.length-1].textContent),this.dt=ns(this,this.ft))}bt(t,n){this.dt[t]=n}parseQRL(t){return cs(this,us(t))}handleError(t,n){const e=n&&this.resolveContext(n,It);if(!e)throw t;e.error=t}setContext(t,n,e){let r=this.getHostProp(t,$);r||this.setHostProp(t,$,r=[]),In(r,n.id,e,0)}resolveContext(t,n){for(;t;){const e=this.getHostProp(t,$);if(e){const t=Mn(e,n.id,0);if(t)return t}t=this.getParentHost(t)}}getParentHost(t){let n=Ho(t);for(;n;)if(Dr(n)){if(null!==To(n,i,null))return n;n=Ho(n)||To(n,f,this.vNodeLocate)}else n=Ho(n);return null}setHostProp(t,n,e){Uo(t,n,e)}getHostProp(t,n){const e=t;let r=null;switch(n){case M:case I:case i:case $:case w:r=this.G;break;case E:case W:r=parseInt}return To(e,n,r)}scheduleRender(){return this.$t++,this.renderDone||=V().nextTick((()=>this.processChores())),this.renderDone.finally((()=>Us("qrender",{instanceHash:this.ut,renderCount:this.$t})))}processChores(){let t=this.$t;const n=this.S(255);if(J(n))return n.then((async()=>{for(;t!==this.$t;)t=this.$t,await this.S(255);this.renderDone=null}));t===this.$t?this.renderDone=null:this.processChores()}ensureProjectionResolved(t){if(!(16&t[0])){t[0]|=16;const n=zo(t);for(let t=0;t<n.length;t+=2)if(Qn(n[t])){const e=n[t+1];"string"==typeof e&&(n[t+1]=this.vNodeLocate(e))}}}G=t=>("string"==typeof t&&(t=parseFloat(t)),this.dt[t]);getSyncFn(t){return this.ht[t]}vt(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.yt&&(this.yt=new Set,this.element.querySelectorAll(d).forEach((t=>{this.yt.add(t.getAttribute(h))}))),!this.yt.has(n)){this.yt.add(n);const e=this.document.createElement("style");e.setAttribute(h,n),e.textContent=t,this.H.push(5,this.document.head,null,e)}}wt(){const t={},n=this.element.attributes;if(n)for(let e=0;e<n.length;e++){const r=n[e];":"!==r.name&&(t[r.name]=r.value)}this.lt={containerAttributes:t}}}let Me;const Ee=()=>{if(!Me){const t="undefined"!=typeof document&&document&&document.__q_context__;if(!t)return;return et(t)?document.__q_context__=Te(t):t}return Me},Fe=()=>{const t=Ee();if(!t)throw o(14);return t},We=()=>{const t=Ee();if(!t||t.gt!==C)throw o(20);return t};function _e(t){if(null==t)return t;const n=Fe();return function(...e){return De.call(this,n,t,e)}}function Le(t,n,...e){return De.call(this,t,n,e)}function De(t,n,e){const r=Me;let o;try{Me=t,o=n.apply(this,e)}finally{Me=r}return o}const Te=([t,n,e])=>{const r=Oe(t),o=Kr(r.rootVNode,t),s=r.t;return s&&function(t){yt=t}(s),Ue(s,o,t,n,e)},Ue=(t,n,e,r,o)=>({W:o,kt:0,o:n,F:e,gt:r,$:void 0,p:void 0,t:t||("object"==typeof r&&r&&"locale"in r?r.locale:void 0),l:void 0}),ze=t=>Le(void 0,t),He=/*#__PURE__*/Ue(void 0,void 0,void 0,C),Ve=(t,n,e,r,o)=>{const s=He.p,l=He.l;try{return He.p=Ht(n,e,o),He.l=r,Le(He,t)}finally{He.p=s,He.l=l}},Qe=(t,n,e,r,o)=>(t instanceof tn&&t.o!==n&&n&&(t.o=n),Ve((()=>t.value),n,e,r,o)),Be=()=>{const t=Ee();if(t){const n=t.o;let e=null;return null!=n&&(Wr(n)?_r(n)&&(e=Vo(n)):e=n),e??t.$?.St(void 0)}},Je=()=>{const t=Ee();if(t)return t.gt},Ge=t=>t,Ye=t=>{const n=Ce(t);if(!n)return Promise.resolve();const e=n.qContainer;return e?.renderDone??Promise.resolve()},Ke=(...t)=>{const[n]=gn(),e=Fe(),r=e.o;if(!r)return;const s=Oe(e.F).S;if(!s)throw o(1);return s(2,r,n,t)};class Ze{qt;xt;constructor(t,n){this.qt=t,this.xt=n}}async function Xe(t,n,e){const r=[n],o=t=>r.push(t);await(async()=>{for(;r.length;){const n=r.pop();if(n instanceof Ze)e.currentStyleScoped=n.qt,e.parentComponentFrame=n.xt;else if("function"!=typeof n)tr(t,o,n,{styleScoped:e.currentStyleScoped,parentComponentFrame:e.parentComponentFrame});else{if(n===Promise){r.push(await r.pop());continue}await n.apply(t)}}})()}function tr(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(Qt(e)){t.openFragment(st);const r=t.getLastNode();n(t.closeFragment),n(Qe(e,r,".",t))}else if(J(e))t.openFragment(st),n(t.closeFragment),n(e),n(Promise),n((()=>t.commentNode(L)));else if(function(t){return!!t[Symbol.asyncIterator]}(e))n((async()=>{for await(const n of e)await Xe(t,n,{currentStyleScoped:r.styleScoped,parentComponentFrame:r.parentComponentFrame}),t.commentNode(L)}));else{const o=e,s=o.type;if("string"==typeof s){!function(t,n){null==Nr(t,"class")&&n&&(t.constProps||(t.constProps={}),t.constProps.class="")}(o,r.styleScoped);let e=null;const l=t.openElement(s,nr(o.varProps,o.constProps,t.serializationCtx,!0,r.styleScoped,o.key),nr(o.constProps,o.varProps,t.serializationCtx,!1,r.styleScoped),e);l&&t.htmlNode(l),n(t.closeElement),"head"===s?(n(t.additionalHeadNodes),n(t.emitQwikLoaderAtTopIfNeeded)):"body"===s&&n(t.additionalBodyNodes);const i=o.children;null!=i&&n(i)}else if(ot(s))if(s===Ar){t.openFragment(null!=o.key?[N,o.key]:st),t.addCurrentElementFrameAsComponentChild(),n(t.closeFragment);const e=o.children;null!=e&&n(e)}else if(s===Et){const e=r.parentComponentFrame||t.unclaimedProjectionComponentFrameQueue.shift();if(e){const s=[];s.push(f,e.componentNode.id||""),t.openProjection(s);const l=e.componentNode,i=t.getLastNode(),u=function(t,n,e){const r=n.constProps;if(r&&"object"==typeof r&&"name"in r){const n=r.name;if(n instanceof tn)return Qe(n,t,":",e)}return Nr(n,"name")||""}(l,o,t);s.push(c,u),n(new Ze(r.styleScoped,r.parentComponentFrame)),n(t.closeProjection);const a=o.children||null,h=e.consumeChildrenForSlot(i,u)||a;a&&h!==a&&t.addUnclaimedProjection(e,"",a),n(h),n(new Ze(e.projectionScopedStyle,e.projectionComponentFrame))}else t.openFragment(st),t.closeFragment()}else if(s===_t)t.commentNode(Nr(o,"data")||"");else if(s===Dt){t.commentNode(L);const e=o.children;let s;s=ot(e)?e({async write(n){await Xe(t,n,{currentStyleScoped:r.styleScoped,parentComponentFrame:r.parentComponentFrame}),t.commentNode(L)}}):e,n(s),J(s)&&n(Promise)}else if(s===Wt)t.htmlNode(Nr(o,"data"));else if(Zs(s)){t.openComponent([]);const e=t.getLastNode(),l=t.getParentComponentFrame();l.distributeChildrenIntoSlots(o.children,r.styleScoped,r.parentComponentFrame);const u=((t,n,e)=>{const r=t.getLastNode(),[o]=e[Ks],s=n.props;s&&s.children&&delete s.children;const l=t.S;return r.setProp(i,o),r.setProp(I,s),null!==n.key&&r.setProp(N,n.key),l(6,r,o,s)})(t,o,s),c=Cn(e.getProp(y));n(new Ze(r.styleScoped,r.parentComponentFrame)),n(t.closeComponent),n(u),J(u)&&n(Promise),n(new Ze(c,l))}else{t.openFragment([N,o.key]),n(t.closeFragment);const e=t.getComponentFrame(0),r=((t,n,e,r)=>{const o=t.getLastNode();return Ln(t,o,n,e,r.props)})(t,e&&e.componentNode,s,o);n(r),J(r)&&n(Promise)}}}function nr(t,n,e,r,o,s){if(null==t)return null;const l=[];for(const s in t){let i=t[s];if(gt(s)){if(n){const t=rr(n,s);if(t){if(!r)continue;i=er(i,t)}}const t=or(e,s,i);t&&l.push(St(s),t)}else Qt(i)?Rn(s)?l.push(s,[i,o]):l.push(s,i):(At(s)&&lr(e,s),i=Zn(s,i,o),l.push(s,i))}return null!=s&&l.push(N,s),l}function er(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 rr(t,n){const e=n.toLowerCase();for(const n in t)if(n.toLowerCase()===e)return t[n];return null}function or(t,n,e){let r=null;const o=e,s=t=>{r=(null==r?"":r+"\n")+t},i=n=>(n.jt.startsWith("_")||!n._&&!n.Pt||(n=Ls(null,"_run",Ke,null,null,[n])),ms(t,n));if(Array.isArray(o))for(let e=0;e<=o.length;e++){const r=o[e];if(l(r))s(i(r)),sr(t,n,r);else if(null!=r){const e=or(t,n,r);e&&s(e)}}else l(o)&&(r=i(o),sr(t,n,o));return r}function sr(t,n,e){const r=qt(n);r&&(t.At.add(r),t.v.add(e))}function lr(t,n){const e=n.substring(15);e&&t.At.add(e)}const ir=t=>t.value,ur=(t,n)=>t[n],cr=t=>new tn(null,1===t.length?ir:ur,t,null),fr=(...t)=>{const n=t[0],e=t.length<2?"value":t[1];if(!nt(n))return n[e];if(Qt(n))return n instanceof tn&&2&n.flags?n:cr(t);if(Sr(n)){const t=n[zn];if(t&&e in t)return t[e]}else{const r=un(n);if(r){const n=r[e];return Qt(n)?n:cr(t)}}return cr(t)},ar=(t,n)=>{const e=un(t)[n];return Qt(e)?e:new tn(null,ur,[t,n],null,1)},hr=(t,n)=>{const e=fr(t,n);return e===Vn?t[n]:e},dr=(t,n,e)=>new tn(null,t,n,e||null);function pr(t){return null===t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t}const yr=(t,n,e,r,o,s)=>{const l=null==s?null:String(s);return new qr(t,n||{},e||null,r,o,l)},$r=(t,n,e,r,o,s,l)=>{let i;return i=n?Object.fromEntries(ze((()=>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?lt:{},e&&"children"in e&&(r=e.children,e.children=void 0),yr(t,i,e,r,o,s,l)},wr=(t,n,e,r)=>vr(t,n,r),br=(t,n,e,r,o)=>vr(t,{...e,...n},o),mr=(t,n,e,r,o,s)=>vr(t,{...e,...n,children:r},s),vr=(t,n,e)=>$r(t,n,null,null,0,e||null),gr=(t,n)=>{n||(n=[]);for(const e of t)et(e)?gr(e,n):n.push(e);return n};function kr(t,n,...e){const r={children:arguments.length>2?gr(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"),$r(t,n,null,r.children,0,o)}const Sr=t=>t&&void 0!==t[Hn];class qr{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=Rr(this.varProps,this.constProps,this.children)),this._proxy}}const xr=t=>t.children,jr=(t,n)=>new qr(xr,lt,null,t.children,2,n),Pr=t=>t instanceof qr,Ar=t=>t.children,Or=(t,n,e,r,o)=>{const s=null==e?null:String(e),l=ze((()=>{const e=n.children;return"string"==typeof t&&delete n.children,e}));rt(t)&&"className"in n&&(n.class=n.className,delete n.className);const i=new qr(t,n,null,l,0,s);return i.dev={stack:(new Error).stack,...o},i};function Rr(t,n,e){return new Proxy({},new Cr(t,n,e))}class Cr{Ot;Rt;Ct;constructor(t,n,e){this.Ot=t,this.Rt=n,this.Ct=e}get(t,n){if(n===zn)return this.Rt;if(n===Hn)return this.Ot;if(null!=this.Ct&&"children"===n)return this.Ct;const e=this.Rt&&n in this.Rt?this.Rt[n]:this.Ot[n];return e instanceof tn&&2&e.k?e.value:e}set(t,n,e){return n===zn?(this.Rt=e,!0):n===Hn?(this.Ot=e,!0):(this.Rt&&n in this.Rt?this.Rt[n]=e:this.Ot[n]=e,!0)}deleteProperty(t,n){if("string"!=typeof n)return!1;let e=delete this.Ot[n];return this.Rt&&(e=delete this.Rt[n]||e),null!=this.Ct&&"children"===n&&(this.Ct=null),e}has(t,n){return"children"===n&&null!=this.Ct||n===zn||n===Hn||n in this.Ot||!!this.Rt&&n in this.Rt}getOwnPropertyDescriptor(t,n){return{configurable:!0,enumerable:!0,value:"children"===n&&null!=this.Ct?this.Ct:this.Rt&&n in this.Rt?this.Rt[n]:this.Ot[n]}}ownKeys(){const t=Object.keys(this.Ot);if(null!=this.Ct&&-1===t.indexOf("children")&&t.push("children"),this.Rt)for(const n in this.Rt)-1===t.indexOf(n)&&t.push(n);return t}}const Nr=(t,n)=>t.constProps&&n in t.constProps?t.constProps[n]:t.varProps[n],Ir=(t,n)=>{mo(t);const e=Zo.createElement(-247,null,null,null,null,null,t,n);return _r(e),Lr(e),Dr(e),t.vNode=new WeakRef(e),e},Mr=t=>{mo(t);const n=Zo.createElement(-255,null,null,null,void 0,void 0,t,void 0);return _r(n),Lr(n),Dr(n),t.vNode=new WeakRef(n),n},Er=(t,n)=>{const e=Zo.createText(-244,null,null,null,t,n);return mo(t),_r(e),Lr(e),Dr(e),e},Fr=()=>{const t=Zo.createVirtual(-254,null,null,null,null,null);return _r(t),Lr(t),Dr(t),t},Wr=t=>t instanceof Zo,_r=t=>!(1&~t[0]),Lr=t=>!(4&~t[0]),Dr=t=>!(2&~t[0]),Tr=t=>!(2&~t[0])&&null!==To(t,c,null),Ur=t=>(Lr(t),Vr(t),t),zr=t=>{Vr(t)},Hr=t=>(_r(t),Vr(t),t),Vr=t=>{if(t)switch(7&t[0]){case 1:return"Element";case 2:return"Virtual";case 4:return"Text"}return"<unknown>"},Qr=t=>{if(1==(15&t[0])){const n=t;n[0]^=8;const e=n[6],r=e.attributes,o=zo(n);for(let t=0;t<r.length;t++){const n=r[t],s=n.name;if(":"===s||!s)break;s.startsWith(j)?"html"===n.value?In(o,D,e.innerHTML,0):"text"===n.value&&"value"in e&&In(o,"value",e.value,0):s.startsWith("on:")||In(o,s,n.value,0)}}};function Br(t){let n=t;if(Lr(t))return;let e=null;for(;;){const r=po(n);if(r){n=r;continue}if(n===t)return;const o=Wo(n);if(o)n=o;else{for(e=Ho(n);e;){if(e===t)return;const r=Wo(e);if(r){n=r;break}e=Ho(e)}if(null==e)return}}}function Jr(t,n,e=!1,r=[]){if((t=>!!(5&t[0]))(n))return Lr(n)&&Yr(t,n),r.push(e?n:Vo(n)),r;let o=po(n);for(;o;)_r(o)?r.push(e?o:Vo(o)):Lr(o)?(Yr(t,o),r.push(e?o:Vo(o))):Jr(t,o,!!e,r),o=Wo(o);return r}const Gr=(t,n,e)=>{const r=n?4:5,o=n?3:2;let s=t;for(;e&&s&&Dr(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&&!Dr(n))return null;for(;n&&!(t=n[o]);)if(n=n[1],n&&!Dr(n))return null;if(!t)return null;if(Lr(t)&&n&&_r(n))return null}for(;t;){if(s=t,5&s[0]&&Vo(s))return s;t=s[r]}}return null},Yr=(t,n)=>{const e=Ur(n);if(!(8&e[0])){const r=lo(n),o=e[4],s=r.ownerDocument;let l=Gr(n,!1,!0);const i=o||Gr(n,!0,!0)?.[6]||null;let u=i;for(;l&&Lr(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=Gr(l,!1,!0)}for(l=n;l&&Lr(l);){const n=Gr(l,!0,!0),e=!n||!Lr(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}}},Kr=(t,n)=>{Hr(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(Wr(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=to(e,n[t]);-1!=l&&o.set(l,e)}if("string"==typeof n){const t=n.length;let r=no(n,t),o=0;for(;r<t;){const t=n.charCodeAt(r);o*=26,t>=97?o+=t-97:(o+=t-65,e=Zr(e,o),o=0),r++}}return e},Zr=(t,n)=>{let e=po(t);for(;e[0]>>>8!==n;)e=Wo(e);return e},Xr=[],to=(t,n)=>{Hr(t);let e=po(t);for(;e&&e[6]!==n;)if(Dr(e)){const t=Wo(e),n=po(e);n?(t&&Xr.push(t),e=n):e=t||(Xr.length?Xr.pop():null)}else{const t=Wo(e);e=t||t||Xr.pop()}for(;Xr.length;)Xr.pop();return Hr(e),e},no=(t,n)=>{let e=0;for(;e<n;){if(!(t.charCodeAt(e)<=57))return e;e++}return n},eo=t=>"false"!==t&&Boolean(t),ro=(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,oo=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++];ro(r,o)?r[o]=eo(s):"value"===o&&o in r?r.value=String(s):o===D?(r.innerHTML=s,r.setAttribute(j,"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},so=(t,n,e,r)=>{zr(n),_r(n)&&yo(n);const o=e[1];if(e===r){if(o)return;r=null}o&&(e[2]||e[3]||o!==n)&&uo(t,o,e,!1);let s=null;null==r?Dr(n)&&(s=Gr(n,!0,!1)):s=Dr(r)?Gr(r,!0,!0):r,s&&((t,n)=>{Lr(n)&&Yr(t,n)})(t,s);const l=io(n),i=l&&l[6];if(i){const n=function(t,n,e){const{elementNamespace:r,elementNamespaceFlag:o}=_n(n,e);let s=[];if(r===A)s=Jr(t,e);else{const l=Jr(t,e,!0);for(let t=0;t<l.length;t++){const e=l[t];if(Lr(e)){s.push(e[4]);continue}if((192&e[0])==(192&n[0])){s.push(e[6]);continue}const i=Wn(e,n,r,o);i&&s.push(i)}}return s}(t,l,e);n.length&&t.push(5,i,Vo(s),...n)}const u=r,c=u?u[2]:n[5];u?u[2]=e:n[5]=e,c?c[3]=e:n[4]=e,e[2]=c,e[3]=u,e[1]=n},lo=t=>(t=io(t))&&t[6],io=t=>{for(;t&&!_r(t);)t=t[1];return t},uo=(t,n,e,r)=>{if(Ho(e),Lr(e)&&Yr(t,e),r){const r=lo(n);if(Do(n,D))return;const o=Jr(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},co=(t,n,e)=>{const r=lo(n),o=Jr(t,e);r&&o.length&&t.push(4,r,...o);const s=e[2];s?s[3]=null:n[4]=null,n[5]=s},fo=t=>{const n=Hr(t);let e=n[7];if(void 0===e){const t=n[6],r=Co(t).toLowerCase();e=n[7]=r,n[0]|=(t=>{switch(Oo(t)){case O:return 64;case R:return 128;default:return 0}})(t)}return e},ao=t=>{const n=Ur(t);let e=n[5];return void 0===e&&(e=n[5]=n[4].nodeValue),e},ho=(t,n,e)=>{Yr(t,n),t.push(1,n[4],n[5]=e)},po=t=>{if(Lr(t))return null;let n=t[4];return void 0===n&&(n=yo(t)),n},yo=t=>{const n=Hr(t);let e=n[4];return void 0===e&&(e=n[1]&&wo(n[6])?n[4]=n[5]=null:(t=>{const n=t[6],e=Po(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=Mo(t,e,s);if(!r)return l}return function(t,n,e,r){let s=0,l=null,u=null,a=null;const h=n=>{n[0]=255&n[0]|s<<8,s++,u&&(u[3]=n),n[2]=u,n[1]=t,l||(t[4]=l=n),u=n};let d=0,p=null,w=null;return Fo(n,((b,m,v,g)=>{if(Qo(b())){for(;!Yo(r);)if(!(r=ko(r)))throw o(44,[n,b(),g]);for(;Io(r);)r=ko(r);p=null,a=null;let t=0;for(;Qo(b());)t*=10,t+=v()-48;for(;t--;)h(Mr(r)),r=ko(r)}else if(59===b())Lo(null,t,y,m());else if(60===b())Lo(null,t,i,m());else if(61===b()){w||(w=Oe(e));const n=m();w.bt(parseInt(n),t)}else if(62===b())Lo(null,t,I,m());else if(64===b())Lo(null,t,N,m());else if(91===b())Lo(null,t,M,m());else if(94===b())Lo(null,t,E,m());else if(96===b())w||(w=Oe(e)),Eo(t,m(),w);else if(63===b())Uo(t,f,m());else if(93===b())Lo(null,t,$,m());else if(123===b())v(),h(Fr()),Jo.push(t,l,u,a,s),s=0,t=u,l=u=null;else if(124===b()){const n=m(),e=m();Lo(null,t,n,e)}else if(125===b())v(),t[5]=u,s=Jo.pop(),a=Jo.pop(),u=Jo.pop(),l=Jo.pop(),t=Jo.pop();else if(126===b())Lo(null,t,c,m());else{const t=r&&3===mo(r)?r:null;null===p&&(p=t?t.nodeValue:null,d=0);let n=0;for(;Bo(b());)n+=v()-97,n*=26;n+=v()-65;const e=null===p?"":p.substring(d,d+n);h(a=((t,n,e)=>{n&&mo(n);const r=Zo.createText(-252,null,t,null,n,e);return _r(r),Lr(r),Dr(r),r})(a,t,e)),d+=n}})),t[5]=u,l}(t,r,n,e)}return Mo(t,e)})(t,n,e,r)})(n)),e};let $o=null;const wo=t=>($o||($o=t.hasAttribute),$o.call(t,j));let bo=null;const mo=t=>(bo||(bo=No(t,"nodeType")),bo.call(t)),vo=t=>{const n=mo(t);return 3===n||1===n};let go=null;const ko=t=>{for(go||(go=No(t,"nextSibling")),jo||(jo=No(t,"firstChild"));t;)if(null!==(t=go.call(t))){const n=mo(t);if(3===n||1===n)break;if(8===n){const n=t.nodeValue;if(n?.startsWith(q))return So(t,k,go,jo);if(t.nodeValue?.startsWith(S))return So(t,x,go,jo);if(n?.startsWith(j))for(;t&&(t=go.call(t))&&(8!==mo(t)||!t.nodeValue?.startsWith(P)););}}return t};function So(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=xo(t),o&&(o=e.call(o))),t=o}return null}let qo=null;const xo=t=>(qo||(qo=No(t,"parentNode")),qo.call(t));let jo=null;const Po=t=>{for(jo||(jo=No(t,"firstChild")),t=t&&jo.call(t);t&&!vo(t);)t=ko(t);return t};let Ao=null;const Oo=t=>(Ao||(Ao=No(t,"namespaceURI")),Ao.call(t));let Ro=null;const Co=t=>(Ro||(Ro=No(t,"nodeName")),Ro.call(t)),No=(t,n)=>{let e;for(;t&&!(e=Object.getOwnPropertyDescriptor(t,n)?.get);)t=Object.getPrototypeOf(t);return e||function(){return this[n]}},Io=t=>Yo(t)&&"STYLE"===t.nodeName&&(t.hasAttribute(y)||t.hasAttribute(h)),Mo=(t,n,e)=>{let r=null;const o=()=>{for(;Io(s);)s=ko(s)};let s=n;o();let l=null;for(;s;){const n=mo(s);let e=null;3===n?e=Er(s,s.textContent??void 0):1===n&&(e=Mr(s)),e&&(e[1]=t,l&&(l[3]=e),e[2]=l,l=e),r||(t[4]=r=l),s=ko(s),o()}if(t[5]=l||null,t[4]=r,e){let n=null;Fo(e,((e,r)=>{if(61===e()){n||(n=Oe(t[6]));const e=r();n.bt(parseInt(e),t)}else 96===e()?(n||(n=Oe(t[6])),Eo(t,r(),n)):r()}))}return r};function Eo(t,n,e){const r=e.G(n);t[zt]?((t,n)=>{for(const[e,r]of n)t.set(e,r)})(t[zt],r):Object.defineProperty(t,zt,{value:r})}const Fo=(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)},Wo=t=>t[3],_o=t=>t[2],Lo=(t,n,e,r)=>{const o=n[0];if(3&o){Qr(n);const s=zo(n),l=Nn(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)}},Do=(t,n)=>{if(3&t[0]){Qr(t);const e=zo(t);return Mn(e,n,0)}return null},To=(t,n,e)=>{const r=t[0];if(3&r){1&r&&Qr(t);const o=zo(t),s=Nn(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},Uo=(t,n,e)=>{zr(t);const r=zo(t),o=Nn(r,n,0);o>=0?r[o+1]=e:null!=e&&r.splice(~o,0,n,e)},zo=t=>t[(t=>{const n=7&t[0];if(1===n)return 8;if(2===n)return 6;throw o(43,[n])})(t)],Ho=t=>t[1]||null,Vo=t=>null===t||Dr(t)?null:_r(t)?t[6]:(Lr(t),t[4]),Qo=t=>48<=t&&t<=57,Bo=t=>97<=t&&t<=122,Jo=[],Go=t=>{const n=t[0];if(1&n)return 1;if(2&n)return 11;if(4&n)return 3;throw o(43,[n])},Yo=t=>t&&"object"==typeof t&&1===mo(t),Ko=(t,n)=>{let e=1;for(;e--;){for(;t&&(!Dr(t)||null===To(t,i,null));){const r=To(t,f,(t=>Kr(n,t))),o=Dr(t)&&r;o&&e++,t=o||Ho(t)}e>0&&(t=Ho(t))}return t},Zo=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)}},Xo=new WeakMap,ts=Symbol("UNWRAP"),ns=(t,n)=>{if(!Array.isArray(n)||Wr(n)||"object"==typeof(e=n)&&null!==e&&ts in e)return n;var e;let r=Xo.get(n);if(!r){const e=Array(n.length/2).fill(void 0);r=new Proxy(e,new es(t,n)),Xo.set(n,r)}return r};class es{l;Nt;It;constructor(t,n){this.l=t,this.Nt=n,this.It=this.Nt.length/2}get(t,n,e){if(n===ts)return t;const r="number"==typeof n?n:"string"==typeof n?parseInt(n,10):NaN;if(Number.isNaN(r)||r<0||r>=this.It)return Reflect.get(t,n,e);const o=2*r,s=this.Nt[o],l=this.Nt[o+1];if(void 0===s)return l;const i=this.l;let u=ls(i,s,l);return s>=12&&(u=os(i,u,s,l)),Reflect.set(t,n,u),this.Nt[o]=void 0,this.Nt[o+1]=u,u}has(t,n){return n===ts||Object.prototype.hasOwnProperty.call(t,n)}set(t,n,e,r){if(n===ts)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.Nt.length/2)return o;const l=2*s;return this.Nt[l]=void 0,this.Nt[l+1]=e,!0}}const rs=new WeakMap,os=(t,n,e,r)=>{if(void 0===e)return n;switch(13!==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]=ks(t,n[r],n[r+1]);return e})(t,r)),e){case 13:for(let e=0;e<r.length;e+=4){const o=ks(t,r[e],r[e+1]),s=r[e+2],l=r[e+3];0===s||s>=12?Object.defineProperty(n,o,{get(){const e=ks(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]=ks(t,s,l)}break;case 18:cs(t,n);break;case 19:const s=n,l=r;s.$=cs(t,l[0]),s.k=l[1],s.D=l[2],s.T=l[3],s[zt]=l[4],s.U=l[5];break;case 20: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"),ln(n).h=c;break;case 21:n[Ks][0]=r[0];break;case 26:case 27:{const[e,o,s]=r,l=hn(e,o,t);ln(l).h=s,n=l;break}case 22:{const t=n,e=r;t.u=e[0],t.h=new Set(e.slice(1));break}case 23:{const e=n,o=r;e.C=t.getSyncFn(o[0]),e.R=o[1],e[zt]=o[2],e.u=o[3],e.k=o[4],e.o=o[5],e.h=new Set(o.slice(6));break}case 25:case 24:{const o=n,s=r;o.m=s[0],o.h=new Set(s[1]),s.length>2?(o.u=s[2],25===e&&(o.k|=1)):(o.k|=1,o.m.resolve(),t.S?.(1,null,o.m));break}case 12:{const t=r;n.message=t[0];const e=t[1];if(e&&Array.isArray(e)){for(let t=0;t<e.length;t++)n[e[t++]]=e[t];n.stack=t[2]}else n.stack=e;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,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 15:{const t=n,e=r;for(let n=0;n<e.length;n++)t.add(e[n]);break}case 16:{const t=n,e=r;for(let n=0;n<e.length;n++)t.set(e[n++],e[n]);break}case 14:{const t=n,[e,o]=r,[s,l]=rs.get(t);e?s(o):l(o);break}case 17:const a=n,h=atob(r);let d=0;for(const t of h)a[d++]=t.charCodeAt(0);break;case 30:const p=n;p[Hn]=0===r?{}:r[0],p[zn]=r[1];break;case 31:{const t=n;t.data.B=r[0],t.data.J=r[1];break}default:throw o(33,[e])}return n},ss=[void 0,null,!0,!1,"",st,lt,Ut,sn,Et,Ar,NaN,1/0,-1/0,Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER-1,Number.MIN_SAFE_INTEGER],ls=(t,n,e)=>{if(void 0===e)return n;switch(n){case 0:return t.G(e);case 1:return ss[e];case 2:case 3:return e;case 4:return ns(t,e);case 13:return{};case 18:return us(t.G(e));case 19:return new xn(-1,-1,null,null,null,null);case 20:{const n=we(t,void 0,void 0);return n.loading=!1,n}case 5:return new URL(e);case 6:return new Date(e);case 7:const r=e.lastIndexOf("/");return new RegExp(e.slice(1,r),e.slice(r+1));case 12:return new Error;case 21:return Ys(null);case 22:return new Jt(t,0);case 23:return new tn(t,null,null,null);case 24:return new Xt(t,null);case 25:return new nn(t,null);case 26:case 27:return null;case 11:return new URLSearchParams(e);case 28:return new FormData;case 29:return new qr(null,null,null,null,-1,null);case 10:return BigInt(e);case 15:return new Set;case 16:return new Map;case 14:let s,l;const i=new Promise(((t,n)=>{s=t,l=n}));return rs.set(i,[s,l]),i.catch((()=>{})),i;case 17:const u=e.length,c=3&u;return new Uint8Array(3*(u>>>2)+(c?c-1:0));case 30:return Rr(null,null);case 8:return is(t,e);case 9:const f=is(t,e);if(Wr(f))return Vo(f);throw o(34,[typeof f]);case 31:return new Bt({});default:throw o(35,[n])}};function is(t,n){return n?t.rootVNode?Kr(t.rootVNode,n):void 0:t.element?.ownerDocument}function us(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===As&&(i=globalThis[As].get(s)),Ls(o,s,i,null,l,null)}function cs(t,n){const e=n.Pt;return n._=e?e.map((n=>t.G(n))):null,t.element&&n.St(t.element),n}let fs=()=>!1;const as=(t,n,e,r,s,i,u,c)=>{if(!u){const t=[];u={write:n=>t.push(n),toString:()=>t.join("")}}const f=new Map,a=new Map,h=[],d=[],p=t=>f.get(t),y=t=>f.set(t,-1),$=t=>{let n=f.get(t);return"number"==typeof n&&-1!==n||(n=d.length,f.set(t,n),d.push(t)),n},w=t?n=>n instanceof t:()=>!1;return fs=n?t=>t instanceof n:()=>!1,{Mt(){!function(t){const{Et:n,Ft:e,Wt:r,_t:s,M:i}=t;let u=-1,c=!1;const f=(t,e)=>{if(c?n.write(`${t},`):c=!0,"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{u++,n.write("[");let t=!1;for(let r=0;r<e.length;r++)t?n.write(","):t=!0,a(e[r],r);n.write("]"),u--}},a=(n,e)=>{if(Ms(n))f(1,0);else if("bigint"==typeof n)f(10,n.toString());else if("boolean"==typeof n)f(1,n?2:3);else if("function"==typeof n)if(n===Et)f(1,9);else if(n===Ar)f(1,10);else if(l(n)){const e=ms(t,n),r=t.Lt(e);f(18,r)}else if(Zs(n)){const[e]=n[Ks];t.Dt.add(e.jt),f(21,[e])}else console.error("Cannot serialize function (ignoring for now): "+n.toString()),f(1,0);else if("number"==typeof n)Number.isNaN(n)?f(1,11):Number.isFinite(n)?n===Number.MAX_SAFE_INTEGER?f(1,14):n===Number.MAX_SAFE_INTEGER-1?f(1,15):n===Number.MIN_SAFE_INTEGER?f(1,16):f(2,n):f(1,n<0?13:12);else if("object"==typeof n)n===st?f(1,5):n===lt?f(1,6):null===n?f(1,1):(u++,h(n,e),u--);else if("string"==typeof n)if(0===n.length)f(1,4);else{const e=u>1&&t.Tt(n);"number"==typeof e&&e>=0?f(0,e):f(3,n)}else if(void 0===n)f(1,0);else if(n===Ut)f(1,7);else{if(n!==sn)throw o(37,[typeof n]);f(1,8)}},h=(n,l)=>{const c=2===u;if(u>2){const e=t.Tt(n);if("number"==typeof e&&e>=0)return void f(0,e)}if(Sr(n)){const t=n[Hn],e=n[zn],r=e?[t,e]:Object.keys(t).length?[t]:0;f(30,r)}else if(n instanceof Bt)f(31,[n.data.B,n.data.J]);else if(fn(n))if(function(t){return"__brand"in t&&"resource"===t.__brand}(n)){t.Ut.add(n);const e=ys.get(n.value);if(!e)throw o(38,["resource"]);f(20,[...e,ln(n).h])}else{const e=ln(n),r=un(n),o=e.k,s=e.h,l=[];for(const n in r){const e=r[n];if(i.has(e)){const n=i.get(e);l.push(n),t.Lt(n)}}const u=[r,o,s,...l];for(;null==u[u.length-1];)u.pop();f(Array.isArray(r)?27:26,u)}else if(en(n)){let t=$s.get(n);if(J(t)){const n=ys.get(t);if(!n[0])throw console.error(n[1]),o(50);t=n[1]}u--,a(t,l),u++}else if(xs(n))if(Array.isArray(n))f(4,n);else{const t=[];for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&!Ms(n[e])&&t.push(e,n[e]);f(13,t)}else if(r(n))n.zt.vnodeData[0]|=16,f(9,n.zt.id);else if(n instanceof Jt){const e=n instanceof nn,r=!e&&n instanceof Xt&&(1&n.k||Ms(n.u))?Ut:n.u;if(n instanceof tn)f(23,[...bs(t,n),ws(n[zt]),r,n.k,n.o,...n.h||[]]);else if(n instanceof Xt){const t=[n.m,n.h];r!==Ut&&t.push(e?$s.get(n):r),f(e?25:24,t)}else f(22,[r,...n.h||[]])}else if(n instanceof URL)f(5,n.href);else if(n instanceof Date)f(6,Number.isNaN(n.valueOf())?"":n.valueOf());else if(n instanceof RegExp)f(7,n.toString());else if(n instanceof Error){const t=[n.message],e=Object.entries(n).flat();e.length&&t.push(e),t.push(n.stack),f(12,t)}else if(e(n))if(c){s(n,"q:id",String(l)),f(8,n.id);const e=n.vnodeData;if(e&&(t.Ht?.(e),e[0]|=16),n.childrenVNodeData)for(const t of n.childrenVNodeData)t[0]|=16}else t.Lt(n),f(0,t.Vt.length-1);else if("undefined"!=typeof FormData&&n instanceof FormData){const t=[];n.forEach(((n,e)=>{t.push(e,"string"==typeof n?n:n.name)})),f(28,t)}else if(n instanceof URLSearchParams)f(11,n.toString());else if(n instanceof Set)f(15,[...n.values()]);else if(n instanceof Map){const t=[];for(const[e,r]of n.entries())t.push(e,r);f(16,t)}else if(Pr(n))f(29,[n.type,n.varProps,n.constProps,n.children,n.flags,n.key]);else if(n instanceof xn){const t=[n.$,n.k,n.D,n.T,n[zt],n.U];for(;null==t[t.length-1];)t.pop();f(19,t)}else if(J(n)){const t=ys.get(n);if(!t)throw o(38,["promise"]);f(14,t)}else if(n instanceof Uint8Array){let t="";for(const e of n)t+=String.fromCharCode(e);const e=btoa(t).replace(/=+$/,"");f(17,e)}else{if(!Wr(n))throw o(37,[typeof n]);f(1,0)}};a(t.Vt,-1)}(this)},Ft:w,Wt:fs,Qt:e,Tt:p,Vt:d,Bt:y,Jt:t=>{const n=f.get(t);return void 0===n||-1===n?void 0:n},Lt:$,Gt:t=>{const n=f.get(t);if(!n||-1===n)throw o(36,[t]);return n},Yt:h,Kt:(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},Et:u,Zt:async function(){const t=[],n=[],e=e=>{if("function"==typeof e){if(l(e))e._&&t.push(...e._);else if(Zs(e)){const[n]=e[Ks];t.push(n)}}else if("object"!=typeof e||null===e||e instanceof URL||e instanceof Date||e instanceof RegExp||e instanceof Uint8Array||e instanceof URLSearchParams||Wr(e)||"undefined"!=typeof FormData&&e instanceof FormData||Ms(e));else if(e instanceof Error)t.push(...Object.values(e));else if(fn(e)){const n=un(e),r=ln(e).h;t.push(n,r);for(const e in n){const r=n[e];i.has(r)&&t.push(e,i.get(r))}}else if(e instanceof Set)t.push(...e.values());else if(e instanceof Map)e.forEach(((n,e)=>{t.push(e,n)}));else if(e instanceof Jt){const r=e instanceof Xt&&!(e instanceof nn)&&(1&e.k||Ms(e))?Ut:e.u;r!==Ut&&(e instanceof nn?n.push(e.m.resolve().then((n=>{let o;n.serialize?o=n.serialize(r):_s in r&&(o=r[_s](r)),void 0===o&&(o=Ut),$s.set(e,o),t.push(o)}))):t.push(r)),e.h&&t.push(e.h),e instanceof tn?(ps(e[zt],t),e.R&&t.push(...e.R),e.o&&t.push(e.o)):e instanceof Xt&&(ps(e[zt],t),t.push(e.m))}else if(e instanceof xn)t.push(e.T,e.$,e.U),ps(e[zt],t);else if(w(e)){if(ds(e.vnodeData,t),e.childrenVNodeData&&e.childrenVNodeData.length)for(const n of e.childrenVNodeData)ds(n,t)}else if(fs(e))t.push(e.zt.id);else if(Pr(e))t.push(e.type,e.props,e.constProps,e.children);else if(l(e))e._&&e._.length&&t.push(...e._);else if(Sr(e))t.push(e[Hn],e[zn]);else if(J(e))e.then((n=>{ys.set(e,[!0,n]),t.push(n)}),(n=>{ys.set(e,[!1,n]),t.push(n)})),n.push(e);else if(e instanceof Bt)t.push(e.data);else if(Array.isArray(e))t.push(...e);else if(en(e)){const n=e[_s](e);$s.set(e,n),t.push(n)}else{if(!xs(e))throw o(37,[e]);Object.entries(e).forEach((([n,e])=>{t.push(n,e)}))}};for(const t of d)e(t);do{for(;t.length;){const n=t.pop();if(!qs(n)&&!js(n))continue;const r=p(n);void 0===r?(y(n),e(n)):-1===r&&$(n)}await Promise.allSettled(n),n.length=0}while(t.length)},v:new Set,At:new Set,Ut:new Set,Dt:new Set,M:i,Xt:r,_t:s,Ht:c}},hs=t=>Array.isArray(t)&&t.length>0,ds=(t,n)=>{for(const e of t)if(hs(e))for(let t=1;t<e.length;t+=2){const r=e[t];"string"!=typeof r&&n.push(r)}},ps=(t,n)=>{t&&n.push(t)},ys=new WeakMap,$s=new WeakMap;function ws(t){let n=null;if(t)for(const[e,r]of t)r[2]&&(n||=new Map,n.set(e,r));return n}function bs(t,n){return n.N&&"{"===n.N[0]&&(n.N=`(${n.N})`),[t.Kt(n.N,n.R.length,n.C),n.R]}function ms(t,n){let e=n.jt,r=n.tn;const i=V();if(i){const t=i.chunkForSymbol(e,r,n.dev?.file);t&&(r=t[1],e=t[0])}const u=(t=>l(t)&&t.jt==s)(n);if(u)r="",e=String(t.Kt(null,0,n.resolved));else{r||(r=t.Qt(n.O));{let t=globalThis[As];t||(t=globalThis[As]=new Map),t.set(n.jt,n._devOnlySymbolRef),r||(r=As)}if(!r)throw o(31,[n.jt]);r.startsWith("./")&&(r=r.slice(2))}let c=`${r}#${e}`;if(Array.isArray(n._)&&n._.length>0){let e="";for(let r=0;r<n._.length;r++)r>0&&(e+=" "),e+=t.Lt(n._[r]);c+=`[${e}]`}else n.Pt&&n.Pt.length>0&&(c+=`[${n.Pt.join(" ")}]`);return c}async function vs(t){const n=as(null,null,(()=>""),(()=>""),(()=>{}),new WeakMap);for(const e of t)n.Lt(e);return await n.Zt(),n.Mt(),n.Et.toString()}function gs(t,n){if(null==t)return[];const e=JSON.parse(t);if(!Array.isArray(e))return[];let r;r=Q(n)&&B(n)?Ss(e,n):Ss(e);const o=[];for(let t=0;t<e.length;t+=2)o[t/2]=ks(r,e[t],e[t+1]);return o}function ks(t,n,e){if(void 0===n)return e;let r=ls(t,n,e);return n>=12&&(r=os(t,r,n,e)),r}function Ss(t,n){let e;const r={G:t=>function(t,n){return"string"==typeof t&&(t=parseInt(t,10)),n[t]}(t,e),getSyncFn:()=>()=>{},M:new WeakMap,element:null};return e=ns(r,t),r.U=e,n&&(r.element=n),r}function qs(t){return"object"==typeof t&&null!==t||"string"==typeof t&&t.length>1}function xs(t){const n=Object.getPrototypeOf(t);return null==n||n===Object.prototype||n===Array.prototype}const js=t=>"object"==typeof t&&null!==t&&(t instanceof Jt||t instanceof xn||Pr(t))||l(t),Ps=(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(fn(t)&&(t=un(t)),e==Object.prototype){for(const e in t)if(!Ps(ze((()=>t[e])),n))return!1;return!0}if(e==Array.prototype){for(let e=0;e<t.length;e++)if(!Ps(t[e],n))return!1;return!0}if(jn(t))return!0;if(Sr(t))return!0;if(J(t))return!0;if(Pr(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(fs?.(t))return!0}else if("function"==typeof t&&(l(t)||Zs(t)))return!0;return!1},As="mock-chunk",Os=(t,n)=>{const e=new WeakSet;return Rs(t,e,"_",n)},Rs=(t,n,e,r)=>{const s=cn(t);if(null==s)return t;if(Is(s)){if("object"==typeof s){if(n.has(s))return t;n.add(s)}if(Qt(s))return t;if(Ps(s))return t;const l=typeof s;switch(l){case"object":if(J(s))return t;if(Q(s))return t;if(et(s)){let r=0;return s.forEach(((t,l)=>{if(l!==r)throw o(3,[s]);Rs(t,n,e+"["+l+"]"),r=l+1})),t}if(tt(s)){for(const[t,r]of Object.entries(s))Rs(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 o(3,[i])}return t},Cs=/*#__PURE__*/new WeakSet,Ns=/*#__PURE__*/new WeakSet,Is=t=>!nt(t)&&!ot(t)||!Cs.has(t),Ms=t=>"object"==typeof t&&t&&(Ws in t||Cs.has(t)),Es=t=>(null!=t&&Cs.add(t),t),Fs=t=>(Ns.add(t),t),Ws=Symbol("noSerialize"),_s=Symbol("serialize"),Ls=(t,n,e,r,s,l)=>{let i;const u=async function(...t){const n=f.call(this,Ee());return await n(...t)},c=t=>(i||(i=t),i);function f(t,n){const r=(...s)=>{if(!u.resolved)return u.resolve().then((t=>{if(!ot(t))throw o(10);return r(...s)}));if(n&&!1===n())return;const l=d(t),i=l.$,c=l.gt;l.$=u,l.gt||=this;try{return Le.call(this,l,e,...s)}finally{l.$=i,l.gt=c}};return r}const a=t=>"function"!=typeof t||!s?.length&&!l?.length?t:function(...n){let e=Ee();if(e){if(e.$?.jt===u.jt)return t.apply(this,n);const r=e.$;e.$=u;try{return t.apply(this,n)}finally{e.$=r}}return e=Ue(),e.$=u,e.gt=this,Le.call(this,e,t,...n)},h=async o=>{if(null!==e)return e;if(o&&c(o),""===t){const t=i.getAttribute(g),r=b(i.ownerDocument,t);return u.resolved=e=r[Number(n)]}const s=zs(),l=Ee();if(null!==r)e=r().then((t=>u.resolved=a(e=t[n])));else{const r=V().importSymbol(i,t,n);e=Y(r,(t=>u.resolved=a(e=t)))}return"object"==typeof e&&J(e)&&e.then((()=>Ts(n,l?.F,s)),(t=>{throw console.error(`qrl ${n} failed to load`,t),e=null,t})),e},d=t=>null==t?Ue():et(t)?Te(t):t,p=(t=>{const n=t.lastIndexOf("_");return n>-1?t.slice(n+1):t})(n);return Object.assign(u,{getSymbol:()=>n,getHash:()=>p,getCaptured:()=>l,resolve:h,nn:t=>null!==e?e:h(t),St:c,tn:t,jt:n,O:p,getFn:f,Pt:s,_:l,dev:null,resolved:void 0}),e&&(e=Y(e,(t=>u.resolved=a(e=t)))),u},Ds=/*#__PURE__*/new Set,Ts=(t,n,e)=>{Ds.has(t)||(Ds.add(t),Us("qsymbol",{symbol:t,element:n,reqTime:e}))},Us=(t,n)=>{"object"==typeof document&&document.dispatchEvent(new CustomEvent(t,{bubbles:!1,detail:n}))},zs=()=>"object"==typeof performance?performance.now():0;let Hs=0;const Vs=t=>Ls(null,"s"+Hs++,t,null,null,null),Qs=Vs,Bs=t=>t,Js=t=>Ls("",s,t,null,null,null),Gs=function(t,n){return void 0===n&&(n=t.toString()),t.serialized=n,Ls("",s,t,null,null,null)},Ys=t=>{function n(n,e,r=0){const o=t.O.slice(0,4)+":"+(e||""),s=()=>{};return s[Ks]=[t],$r(s,n,null,n.children,r,o)}return n[Ks]=[t],n},Ks=Symbol("serializable-data"),Zs=t=>"function"==typeof t&&void 0!==t[Ks],Xs=t=>Ys(Qs(t)),tl=ce(Bs),nl=async(t,n,e={})=>{if(9===t.nodeType){let n=t.firstChild;for(;n&&!B(n);)n=n.nextSibling;t=n}t.setAttribute(j,"resumed");const r=Oe(t);r.lt=e.serverData||{};const o=r.rootVNode;return r.S(4,o,o,n),await r.S(255),{cleanup:()=>{se(r,r.rootVNode)}}},el=(t,n)=>{const{val:e,set:r,iCtx:o}=bt();if(null!=e)return e;const s=ot(t)?Le(void 0,t):t;if(!1===n?.reactive)return r(s),s;{const t=o.l,e=hn(s,n?.deep??1?1:0,t);return r(e),e}},rl=()=>{const{val:t,set:n,iCtx:e}=bt();if(null!=t)return t;const r=e.l.ct||"",o=r?Yn(r).substring(0,3):"",s=e.l.getHostProp(e.o,i);let l=`${o}${s?.getHash().substring(0,3)||""}${(e.l.it++).toString(36)||""}`,u=l.charCodeAt(0);return u>=48&&u<=57&&(u+=17,l=String.fromCharCode(u)+l.substring(1)),n(l)};function ol(t,n){const e=Ee();return e?.l?.lt[t]??n}const sl=/*#__PURE__*/new Map,ll=(t,n)=>{let e=sl.get(n);return e||sl.set(n,e=il(t,n)),e},il=(t,n)=>{const e=t.length,r=[],o=[];let s=0,l=s,i=hl,c=0;for(;s<e;){const n=s;let e=t.charCodeAt(s++);e===Ll&&(s++,e=Fl);const r=Bl[i];for(let u=0;u<r.length;u++){const p=r[u],[y,$,w]=p;if((y===c||y===gl||y===kl&&ul(c)||y===ql&&al(c))&&($===e||$===gl||$===kl&&ul(e)||$===Sl&&!ul(e)&&e!==Nl||$===ql&&al(e))&&(3==p.length||h(p))){if(p.length>3&&(e=t.charCodeAt(s-1)),w===ml||w==vl){w===vl&&(i!==dl||d()?cl(e)||a(s-($==Sl?1:$==Rl?2:0)):(cl(e)?f(s-2):a(s-2),l++)),$===Sl&&(s--,e=c);do{i=o.pop()||hl,i===pl&&(f(s-1),l++)}while(fl(i))}else o.push(i),i===pl&&w===hl?(f(s-8),l=s):w===yl&&a(n),i=w;break}}c=e}return f(s),r.join("");function f(n){r.push(t.substring(l,n)),l=n}function a(t){i===pl||d()||(f(t),r.push(".",u,n))}function h(n){let e=0;if(t.charCodeAt(s)===Cl)for(let n=1;n<10;n++)if(t.charCodeAt(s+n)===Cl){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)|Tl)!==o.charCodeAt(n))continue t;return s+=o.length+e,!0}return!1}function d(){return-1!==o.indexOf(pl)||-1!==o.indexOf($l)}},ul=t=>t>=Il&&t<=Ml||t>=Fl&&t<=Wl||t>=Ul&&t<=zl||t>=128||t===Dl||t===Cl,cl=t=>t===El||t===Nl||t===_l||t===Ol||ul(t),fl=t=>t===wl||t===$l||t===bl||t===pl,al=t=>t===Al||t===xl||t===jl||t===Pl,hl=0,dl=2,pl=5,yl=6,$l=10,wl=11,bl=12,ml=17,vl=18,gl=0,kl=1,Sl=2,ql=3,xl=9,jl=10,Pl=13,Al=32,Ol=35,Rl=41,Cl=45,Nl=46,Il=48,Ml=57,El=58,Fl=65,Wl=90,_l=91,Ll=92,Dl=95,Tl=32,Ul=97,zl=122,Hl=123,Vl=125,Ql=[[gl,39,14],[gl,34,15],[gl,47,16,"*"]],Bl=[[[gl,42,dl],[gl,_l,7],[gl,El,yl,":","before","after","first-letter","first-line"],[gl,El,pl,"global"],[gl,El,3,"has","host-context","not","where","is","matches","any"],[gl,El,4],[gl,kl,1],[gl,Nl,1],[gl,Ol,1],[gl,64,$l,"keyframe"],[gl,64,wl,"media","supports","container"],[gl,64,bl],[gl,Hl,13],[47,42,16],[gl,59,ml],[gl,Vl,ml],[gl,Rl,ml],...Ql],[[gl,Sl,vl]],[[gl,Sl,vl]],[[gl,40,hl],[gl,Sl,vl]],[[gl,40,8],[gl,Sl,vl]],[[gl,40,hl],[gl,Sl,ml]],[[gl,Sl,ml]],[[gl,93,vl],[gl,39,14],[gl,34,15]],[[gl,Rl,ml],...Ql],[[gl,Vl,ml],...Ql],[[gl,Vl,ml],[ql,kl,1],[gl,El,pl,"global"],[gl,Hl,13],...Ql],[[gl,Hl,hl],[gl,59,ml],...Ql],[[gl,59,ml],[gl,Hl,9],...Ql],[[gl,Vl,ml],[gl,Hl,13],[gl,40,8],...Ql],[[gl,39,ml]],[[gl,34,ml]],[[42,47,ml]]],Jl=t=>({styleId:Zl(t,(t=>t),!1)}),Gl=/*#__PURE__*/ce(Jl),Yl=t=>({scopeId:u+Zl(t,ll,!0)}),Kl=/*#__PURE__*/ce(Yl),Zl=(t,n,e)=>{const{val:r,set:o,iCtx:s,i:l}=bt();if(r)return r;const i=(u=l,`${Yn(t.O)}-${u}`);var u;const c=s.o;o(i);const f=t.nn(s.F);if(J(f))throw f.then((t=>s.l.vt(n(t,i),i,c,e))),f;return s.l.vt(n(f,i),i,c,e),i},Xl=(t,n)=>{ri(ei(t,"on"),n)},ti=(t,n)=>{ri(ei(t,"document:on"),n)},ni=(t,n)=>{ri(ei(t,"window:on"),n)},ei=(t,n)=>{const e=t=>{let e=n;return t===vt&&(e+="-"),function(t,n){return n+(t=t.charAt(0).toUpperCase()+t.substring(1))+mt}(t,e)};return Array.isArray(t)?t.map(e):e(t)},ri=(t,n)=>{const{isAdded:e,addEvent:r}=oi();e||n&&(Array.isArray(t)?t.forEach((t=>r(t,n))):r(t,n))},oi=()=>{const t=We(),n=t.o;let e=t.l.getHostProp(n,F);null===e&&(e={},t.l.setHostProp(n,F,e));let r=t.l.getHostProp(n,W);null===r&&(r=0),t.l.setHostProp(n,W,r+1);let o=t.l.getHostProp(n,_);for(null===o&&(o=[],t.l.setHostProp(n,_,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)}}},si=t=>li((()=>{const n=ot(t)&&!Zs(t)?Le(void 0,t):t;return he(n)})),li=t=>{const{val:n,set:e}=bt();return null!=n?n:e(t=ot(t)&&!Zs(t)?t():t)},ii=(t,n)=>{const{val:e,set:r}=bt();if(e)return e;const o=new n(null,t);return r(o),Vt(t),o},ui=t=>ii(t,Xt),ci=ce(ui),fi=t=>ii(t,nn),ai=ce(fi),hi=(t,n)=>{const{val:e,set:r,i:o,iCtx:s}=bt(),l=n?.strategy??"intersection-observer";if(e)return;const i=new xn(1,o,s.o,t,void 0,null);r(i),di(i,l),t.nn(s.F),s.l.S(32,i)},di=(t,n)=>{"intersection-observer"===n?Xl("qvisible",pi(t)):"document-ready"===n?ti("qinit",pi(t)):"document-idle"===n&&ti("qidle",pi(t))},pi=t=>Ls(null,"_task",Pn,null,null,[t]),yi=(t,n)=>ye(Qs(t),n),$i=/*#__PURE__*/ce(kn),wi=/*#__PURE__*/ce(hi),bi=()=>{const t=el({error:void 0});return Ct(It,t),t},mi=t=>{import.meta;const n=ol("containerAttributes",{}),e=import.meta.env.BASE_URL||"/",r={base:n["q:base"],manifestHash:n["q:manifest-hash"],scope:"/",verbose:!1,path:"qwik-prefetch-service-worker.js",...t};r.path=t?.path?.startsWith?.("/")?t.path:e+r.path;let o=vi.replace("URL",r.path).replace("SCOPE",r.scope);o=o.replaceAll(/\s+/gm,"");const s={dangerouslySetInnerHTML:["("+o+")(",[JSON.stringify(r.base),JSON.stringify(r.manifestHash),"navigator.serviceWorker","window.qwikPrefetchSW||(window.qwikPrefetchSW=[])",r.verbose].join(","),");"].join(""),nonce:r.nonce};return yr("script",null,s,null,0,"prefetch-service-worker")},vi=/*#__PURE__*/((t,n,e,r,o)=>{e.register("URL",{scope:"SCOPE"}).then(((t,n)=>{n=()=>r.forEach(r.push=n=>t.active.postMessage(n)),t.installing?t.installing.addEventListener("statechange",(t=>"activated"==t.target.state&&n())):n()})),o&&r.push(["verbose"]),document.addEventListener("qprefetch",(n=>n.detail.bundles&&r.push(["prefetch",t,...n.detail.bundles])))}).toString(),gi=(t={})=>{import.meta;const n=ol("containerAttributes",{}),e={base:n[m],manifestHash:n[v],scope:"/",verbose:!1,path:"qwik-prefetch-service-worker.js",...t},r=JSON.stringify(["graph-url",e.base,`q-bundle-graph-${e.manifestHash}.json`]);return yr("script",null,{dangerouslySetInnerHTML:`(window.qwikPrefetchSW||(window.qwikPrefetchSW=[])).push(${r})`,nonce:t.nonce},null,0,"prefetch-graph")};export{Vs as $,Ar as Fragment,Ws as NoSerializeSymbol,gi as PrefetchGraph,mi as PrefetchServiceWorker,jr as RenderOnce,$e as Resource,_t as SSRComment,Wt as SSRRaw,Dt as SSRStream,Lt as SSRStreamBlock,_s as SerializerSymbol,Ft as SkipRender,Et as Slot,zn as _CONST_PROPS,Ie as _DomContainer,zt as _EFFECT_BACK_REF,st as _EMPTY_ARRAY,Bt as _EffectData,Vn as _IMMUTABLE,Ae as _SharedContainer,Hn as _VAR_PROPS,gs as _deserialize,dr as _fnSignal,Be as _getContextElement,Je as _getContextEvent,Oe as _getDomContainer,Ce as _getQContainerElement,Pr as _isJSXNode,pr as _isStringifiable,Ge as _jsxBranch,wr as _jsxC,mr as _jsxQ,br as _jsxS,yr as _jsxSorted,$r as _jsxSplit,ft as _noopQrl,at as _noopQrlDEV,Gs as _qrlSync,pt as _regSymbol,Bn as _restProps,Ke as _run,vs as _serialize,Pn as _task,Os as _verifySerializable,Ye as _waitUntilRendered,Xe as _walkJSX,Fs as _weakSerialize,fr as _wrapProp,hr as _wrapSignal,ar as _wrapStore,Xs as component$,Ys as componentQrl,de as createComputed$,fe as createComputedQrl,Rt as createContextId,kr as createElement,pe as createSerializer$,ae as createSerializerQrl,he as createSignal,tl as event$,Bs as eventQrl,Oe as getDomContainer,$t as getLocale,V as getPlatform,kr as h,ce as implicit$FirstArg,ct as inlinedQrl,dt as inlinedQrlDEV,n as isBrowser,e as isDev,t as isServer,Qt as isSignal,vr as jsx,Or as jsxDEV,vr as jsxs,Es as noSerialize,ut as qrl,ht as qrlDEV,nl as render,H as setPlatform,Js as sync$,ze as untrack,cn as unwrapStore,ci as useComputed$,ui as useComputedQrl,li as useConstant,Nt as useContext,Ct as useContextProvider,bi as useErrorBoundary,rl as useId,gn as useLexicalScope,Xl as useOn,ti as useOnDocument,ni as useOnWindow,yi as useResource$,ye as useResourceQrl,ai as useSerializer$,fi as useSerializerQrl,ol as useServerData,si as useSignal,el as useStore,Gl as useStyles$,Jl as useStylesQrl,Kl as useStylesScoped$,Yl as useStylesScopedQrl,$i as useTask$,kn as useTaskQrl,wi as useVisibleTask$,hi as useVisibleTaskQrl,Mt as version,wt as withLocale};