@toa.io/extensions.configuration 1.0.0-alpha.30 → 1.0.0-alpha.301

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 (104) hide show
  1. package/components/configuration.values/manifest.toa.yaml +151 -0
  2. package/components/configuration.values/migrations/0002-indexes.yaml +7 -0
  3. package/components/configuration.values/operations/create.js +32 -0
  4. package/components/configuration.values/operations/fetch.js +13 -0
  5. package/components/configuration.values/operations/get.js +19 -0
  6. package/components/configuration.values/operations/lib/map.js +22 -0
  7. package/components/configuration.values/operations/lib/resolve.js +24 -0
  8. package/components/configuration.values/operations/list.js +11 -0
  9. package/components/configuration.values/source/create.ts +56 -0
  10. package/components/configuration.values/source/fetch.ts +26 -0
  11. package/components/configuration.values/source/get.ts +32 -0
  12. package/components/configuration.values/source/lib/map.ts +36 -0
  13. package/components/configuration.values/source/lib/resolve.ts +57 -0
  14. package/components/configuration.values/source/list.ts +21 -0
  15. package/components/configuration.values/tsconfig.json +10 -0
  16. package/components/configuration.values/types/index.d.ts +3 -0
  17. package/components/configuration.values/types/toa.d.ts +69 -0
  18. package/package.json +21 -10
  19. package/readme.md +178 -50
  20. package/transpiled/Aspect.d.ts +19 -4
  21. package/transpiled/Aspect.js +62 -9
  22. package/transpiled/Aspect.js.map +1 -1
  23. package/transpiled/Client.d.ts +59 -0
  24. package/transpiled/Client.js +171 -0
  25. package/transpiled/Client.js.map +1 -0
  26. package/transpiled/Composition.d.ts +14 -0
  27. package/transpiled/Composition.js +38 -0
  28. package/transpiled/Composition.js.map +1 -0
  29. package/transpiled/Factory.d.ts +9 -2
  30. package/transpiled/Factory.js +20 -9
  31. package/transpiled/Factory.js.map +1 -1
  32. package/transpiled/Secret.d.ts +15 -0
  33. package/transpiled/Secret.js +26 -0
  34. package/transpiled/Secret.js.map +1 -0
  35. package/transpiled/UI.d.ts +25 -0
  36. package/transpiled/UI.js +173 -0
  37. package/transpiled/UI.js.map +1 -0
  38. package/transpiled/configuration.d.ts +7 -2
  39. package/transpiled/configuration.js +33 -43
  40. package/transpiled/configuration.js.map +1 -1
  41. package/transpiled/index.d.ts +3 -3
  42. package/transpiled/index.js +4 -9
  43. package/transpiled/index.js.map +1 -1
  44. package/ui/dist/_app/env.js +1 -0
  45. package/ui/dist/_app/immutable/assets/0.BGFdDICE.css +2 -0
  46. package/ui/dist/_app/immutable/assets/ui.BghF56l_.css +1 -0
  47. package/ui/dist/_app/immutable/chunks/6jxCYw_T.js +1 -0
  48. package/ui/dist/_app/immutable/chunks/BG50_4wx.js +6 -0
  49. package/ui/dist/_app/immutable/chunks/Bjy-W4x2.js +81 -0
  50. package/ui/dist/_app/immutable/chunks/CVIujoKI.js +8 -0
  51. package/ui/dist/_app/immutable/chunks/CcD_ISxM.js +3 -0
  52. package/ui/dist/_app/immutable/chunks/leGVpEw7.js +1 -0
  53. package/ui/dist/_app/immutable/chunks/rNpgwZyw.js +50 -0
  54. package/ui/dist/_app/immutable/chunks/xihTtKlq.js +1 -0
  55. package/ui/dist/_app/immutable/entry/app.DlwFTf9j.js +2 -0
  56. package/ui/dist/_app/immutable/entry/start.C6URLbPE.js +1 -0
  57. package/ui/dist/_app/immutable/nodes/0.C0JuJXHr.js +1 -0
  58. package/ui/dist/_app/immutable/nodes/1.CZGho2uS.js +1 -0
  59. package/ui/dist/_app/immutable/nodes/2.BZCHVwVc.js +1 -0
  60. package/ui/dist/_app/immutable/nodes/3.B8dAiPmk.js +1 -0
  61. package/ui/dist/_app/immutable/nodes/4.Bf-vzTH8.js +1 -0
  62. package/ui/dist/_app/version.json +1 -0
  63. package/ui/dist/apple-touch-icon.png +0 -0
  64. package/ui/dist/favicon-96x96.png +0 -0
  65. package/ui/dist/favicon.ico +0 -0
  66. package/ui/dist/index.html +57 -0
  67. package/ui/dist/robots.txt +3 -0
  68. package/notes/consistency.md +0 -69
  69. package/schemas/annotation.cos.yaml +0 -1
  70. package/schemas/manifest.cos.yaml +0 -2
  71. package/source/Aspect.test.ts +0 -15
  72. package/source/Aspect.ts +0 -23
  73. package/source/Factory.ts +0 -12
  74. package/source/configuration.test.ts +0 -90
  75. package/source/configuration.ts +0 -59
  76. package/source/deployment.test.ts +0 -21
  77. package/source/deployment.ts +0 -86
  78. package/source/index.ts +0 -3
  79. package/source/manifest.test.ts +0 -15
  80. package/source/manifest.ts +0 -15
  81. package/source/schemas.ts +0 -9
  82. package/transpiled/Aspect.test.d.ts +0 -1
  83. package/transpiled/Aspect.test.js +0 -15
  84. package/transpiled/Aspect.test.js.map +0 -1
  85. package/transpiled/configuration.test.d.ts +0 -1
  86. package/transpiled/configuration.test.js +0 -64
  87. package/transpiled/configuration.test.js.map +0 -1
  88. package/transpiled/deployment.d.ts +0 -8
  89. package/transpiled/deployment.js +0 -88
  90. package/transpiled/deployment.js.map +0 -1
  91. package/transpiled/deployment.test.d.ts +0 -1
  92. package/transpiled/deployment.test.js +0 -18
  93. package/transpiled/deployment.test.js.map +0 -1
  94. package/transpiled/manifest.d.ts +0 -6
  95. package/transpiled/manifest.js +0 -35
  96. package/transpiled/manifest.js.map +0 -1
  97. package/transpiled/manifest.test.d.ts +0 -1
  98. package/transpiled/manifest.test.js +0 -14
  99. package/transpiled/manifest.test.js.map +0 -1
  100. package/transpiled/schemas.d.ts +0 -3
  101. package/transpiled/schemas.js +0 -33
  102. package/transpiled/schemas.js.map +0 -1
  103. package/transpiled/tsconfig.tsbuildinfo +0 -1
  104. package/tsconfig.json +0 -9
@@ -0,0 +1,8 @@
1
+ import{$ as e,A as t,B as n,Dt as r,E as i,Et as a,J as o,L as s,M as c,N as l,P as u,Q as d,R as f,S as p,Tt as m,a as h,b as g,bt as _,c as v,d as y,dt as b,et as x,i as S,it as C,j as w,k as T,kt as E,l as D,m as O,n as ee,nt as te,o as k,ot as A,p as j,pt as ne,q as M,s as N,st as P,tt as F,u as I,ut as L,v as R,w as z,x as re,y as B,yt as V}from"./CcD_ISxM.js";import"./6jxCYw_T.js";import"./xihTtKlq.js";import{A as ie,C as ae,D as oe,E as se,O as ce,_ as le,a as ue,c as de,d as fe,f as pe,g as me,h as he,i as ge,j as H,l as _e,m as ve,n as ye,p as be,s as xe,u as Se,w as Ce,x as we}from"./BG50_4wx.js";import{A as Te,B as Ee,C as De,D as Oe,E as ke,F as Ae,G as je,H as U,I as W,L as Me,M as G,N as Ne,O as Pe,P as Fe,R as Ie,S as Le,T as K,U as Re,V as ze,W as q,b as Be,d as Ve,f as He,g as Ue,h as We,j as Ge,k as Ke,m as qe,p as Je,u as J,v as Ye,w as Xe,x as Ze,y as Qe,z as $e}from"./rNpgwZyw.js";var et=new Set([`$$slots`,`$$events`,`$$legacy`]);function tt(e,t){let n=h(t,et),r=[[`path`,{d:`m16 17 5-5-5-5`}],[`path`,{d:`M21 12H9`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`}]];H(e,k({name:`log-out`},()=>n,{get iconNode(){return r}}))}var nt=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`role`,`name`,`color`,`stroke`,`aria-label`]);function Y(e,t){_(t,!0);let r=S(t,`role`,3,`status`),i=S(t,`aria-label`,3,`Loading`),a=h(t,nt);{let o=P(()=>t.name===null?void 0:t.name),s=P(()=>t.color===null?void 0:t.color),c=P(()=>t.stroke===null?void 0:t.stroke),l=P(()=>q(`size-4 animate-spin`,t.class));ie(e,k({get role(){return r()},get name(){return n(o)},get color(){return n(s)},get stroke(){return n(c)},get"aria-label"(){return i()},get class(){return n(l)}},()=>a))}V()}var rt={"en-US":{auth:{signupTitle:`One-tap sign-up`,passwordTitle:`Hop in with password`,passwordDescription:`Create an account or sign in`,passkey:`Passkeys`,email:`Email`,alreadyHaveAccount:`Already have an account?`,betterSecurity:`Better security`,passkeysNotSupported:`Passkeys not supported`,passkeysWarning:`Your browser does not respect your privacy and security.`,learnMore:`Learn more`,passwordBlank:`Leave password blank <nobr>to receive</nobr> <nobr>a one-time</nobr> passcode.`,otpInstructions:`Enter the code sent to your email. It expires in 5 minutes.`,continueWith:e=>`Continue with ${e}`,passkeysDescription:`Passkeys are safer than passwords, easier to use, and can’t be stolen.`,yourName:`Your name`,password:`Password`,refresh:{description:e=>`${e?e+`, for`:`For`} security reasons, your credentials have expired. Please log in again to continue.`,title:`Welcome back`,continue:`Continue`},signout:`Sign out`,login:`Log In`,signin:`Sign In`,copyId:`Copy account ID`},credentials:{connect:`Connect`,email:{title:`Email`,description:`Connect your email address`},google:{title:`Google`,description:`Connect your Google account`},apple:{title:`Apple`,description:`Connect your Apple ID`},passkeys:{title:`Passkeys`,tagline:`Sign in faster with a passkey`,create:`Create`,manage:`Manage`,collapse:`Collapse`,add:`Enter passkey name`,delete:`Hold to delete`,unknown:`Unknown`,count:e=>{let t={one:`{n} passkey`,other:`{n} passkeys`},n=`en-US`,r=new Intl.PluralRules(n).select(e),i=t;return(i[r]??i.other).replace(/{n}/g,new Intl.NumberFormat(n).format(e))},meta:(e,t)=>`Added ${e} · Used ${t}`,duplicate:`This device already has a passkey for your account`,failed:`Could not create the passkey. Please try again.`},transfer:{action:`Sign in on another device`,title:`Scan to sign in`,description:`Use your other device to scan this code and sign in.`,done:`Done`}}}},X=ne(ye,e=>rt[e]),it=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),at=w(`<div><!></div>`);function ot(e,t){_(t,!0);let n=S(t,`ref`,15,null),i=h(t,it);var o=at();I(o,e=>({"data-slot":`card-content`,class:e,...i}),[()=>q(`px-(--card-spacing)`,t.class)]);var s=d(o);B(s,()=>t.children??r),a(o),N(o,e=>n(e),()=>n()),T(e,o),V()}var st=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),ct=w(`<p><!></p>`);function lt(e,t){_(t,!0);let n=S(t,`ref`,15,null),i=h(t,st);var o=ct();I(o,e=>({"data-slot":`card-description`,class:e,...i}),[()=>q(`text-sm text-muted-foreground`,t.class)]);var s=d(o);B(s,()=>t.children??r),a(o),N(o,e=>n(e),()=>n()),T(e,o),V()}var ut=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),dt=w(`<div><!></div>`);function ft(e,t){_(t,!0);let n=S(t,`ref`,15,null),i=h(t,ut);var o=dt();I(o,e=>({"data-slot":`card-footer`,class:e,...i}),[()=>q(`rounded-b-xl border-t bg-muted/50 p-(--card-spacing) flex items-center`,t.class)]);var s=d(o);B(s,()=>t.children??r),a(o),N(o,e=>n(e),()=>n()),T(e,o),V()}var pt=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),mt=w(`<div><!></div>`);function ht(e,t){_(t,!0);let n=S(t,`ref`,15,null),i=h(t,pt);var o=mt();I(o,e=>({"data-slot":`card-header`,class:e,...i}),[()=>q(`gap-1 rounded-t-xl px-(--card-spacing) [.border-b]:pb-(--card-spacing) group/card-header @container/card-header grid auto-rows-min items-start has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]`,t.class)]);var s=d(o);B(s,()=>t.children??r),a(o),N(o,e=>n(e),()=>n()),T(e,o),V()}var gt=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),_t=w(`<div><!></div>`);function vt(e,t){_(t,!0);let n=S(t,`ref`,15,null),i=h(t,gt);var o=_t();I(o,e=>({"data-slot":`card-title`,class:e,...i}),[()=>q(`text-base leading-snug font-medium group-data-[size=sm]/card:text-sm`,t.class)]);var s=d(o);B(s,()=>t.children??r),a(o),N(o,e=>n(e),()=>n()),T(e,o),V()}var yt=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`,`size`]),bt=w(`<div><!></div>`);function xt(e,t){_(t,!0);let n=S(t,`ref`,15,null),i=S(t,`size`,3,`default`),o=h(t,yt);var s=bt();I(s,e=>({"data-slot":`card`,"data-size":i(),class:e,...o}),[()=>q(`gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col`,t.class)]);var c=d(s);B(c,()=>t.children??r),a(s),N(s,e=>n(e),()=>n()),T(e,s),V()}var St=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ct(e,t){let n=h(t,St),r=[[`path`,{d:`M5 12h14`}],[`path`,{d:`m12 5 7 7-7 7`}]];H(e,k({name:`arrow-right`},()=>n,{get iconNode(){return r}}))}var wt=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`type`,`files`,`class`,`data-slot`]),Tt=w(`<input/>`);function Et(n,r){_(r,!0);let i=S(r,`ref`,15,null),a=S(r,`value`,15),o=S(r,`files`,15),s=S(r,`data-slot`,3,`input`),c=h(r,wt);var l=t(),u=e(l),d=e=>{var t=Tt();I(t,e=>({"data-slot":s(),class:e,type:`file`,...c}),[()=>q(`h-8 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,r.class)],void 0,void 0,void 0,!0),N(t,e=>i(e),()=>i()),v(t,o),D(t,a),T(e,t)},f=e=>{var t=Tt();I(t,e=>({"data-slot":s(),class:e,type:r.type,...c}),[()=>q(`h-8 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,r.class)],void 0,void 0,void 0,!0),N(t,e=>i(e),()=>i()),D(t,a),T(e,t)};z(u,e=>{r.type===`file`?e(d):e(f,-1)}),T(n,l),V()}var Dt=w(`<div><!></div>`);function Ot(e,t){_(t,!0);let r=A(!1);async function i(){C(r,!0),await new Promise(e=>setTimeout(e,500)),C(r,!1)}var o={shake:i},s=Dt(),c=d(s);return B(c,()=>t.children),a(s),M(()=>j(s,1,O([t.class,n(r)&&`shake`]),`svelte-alh7mr`)),T(e,s),V(o)}function Z(e){let t=A(te(e));return{[Ne]:!0,[$e]:!0,get current(){return n(t)},set current(e){C(t,e,!0)}}}Z.from=Ae,Z.with=W,Z.flatten=Fe,Z.readonly=ze,Z.isBox=Me,Z.isWritableBox=Ie;function kt(e){return window.getComputedStyle(e).getPropertyValue(`direction`)}var At=[Je,Be,Ye],jt=[Ue,Qe,`End`];[...At,...jt];function Mt(e=`ltr`,t=`horizontal`){return{horizontal:e===`rtl`?qe:We,vertical:Je}[t]}function Nt(e=`ltr`,t=`horizontal`){return{horizontal:e===`rtl`?We:qe,vertical:Ue}[t]}function Pt(e=`ltr`,t=`horizontal`){return[`ltr`,`rtl`].includes(e)||(e=`ltr`),[`horizontal`,`vertical`].includes(t)||(t=`horizontal`),{nextKey:Mt(e,t),prevKey:Nt(e,t)}}var Ft=class{#e;#t=Z(null);constructor(e){this.#e=e}getCandidateNodes(){return this.#e.rootNode.current?this.#e.candidateSelector?Array.from(this.#e.rootNode.current.querySelectorAll(this.#e.candidateSelector)):this.#e.candidateAttr?Array.from(this.#e.rootNode.current.querySelectorAll(`[${this.#e.candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){let e=this.getCandidateNodes();e.length&&e[0]?.focus()}handleKeydown(e,t,n=!1){let r=this.#e.rootNode.current;if(!r||!e)return;let i=this.getCandidateNodes();if(!i.length)return;let a=i.indexOf(e),{nextKey:o,prevKey:s}=Pt(kt(r),this.#e.orientation.current),c=this.#e.loop.current,l={[o]:a+1,[s]:a-1,[Ye]:0,End:i.length-1};if(n){let e=o===`ArrowDown`?We:Je,t=s===`ArrowUp`?qe:Ue;l[e]=a+1,l[t]=a-1}let u=l[t.key];if(u===void 0)return;t.preventDefault(),u<0&&c?u=i.length-1:u===i.length&&c&&(u=0);let d=i[u];if(d)return d.focus(),this.#t.current=d.id,this.#e.onCandidateFocus?.(d),d}getTabIndex(e){let t=this.getCandidateNodes(),n=this.#t.current!==null;return e&&!n&&t[0]===e?(this.#t.current=e.id,0):e?.id===this.#t.current?0:-1}setCurrentTabStopId(e){this.#t.current=e}focusCurrentTabStop(){let e=this.#t.current;if(!e)return;let t=this.#e.rootNode.current?.querySelector(`#${e}`);t&&He(t)&&t.focus()}},It=18,Lt=40,Rt=`${Lt}px`,zt=[`[data-lastpass-icon-root]`,`com-1password-button`,`[data-dashlanecreated]`,`[style$="2147483647 !important;"]`].join(`,`);function Bt({containerRef:e,inputRef:t,pushPasswordManagerStrategy:r,isFocused:i,domContext:a}){let s=A(!1),c=A(!1),l=A(!1);function u(){let e=r.current;return e!==`none`&&e===`increase-width`&&n(s)&&n(c)}function d(){let i=e.current,o=t.current;if(!i||!o||n(l)||r.current===`none`)return;let c=i,u=c.getBoundingClientRect().left+c.offsetWidth,d=c.getBoundingClientRect().top+c.offsetHeight/2,f=u-It,p=d;(a.querySelectorAll(zt).length!==0||a.getDocument().elementFromPoint(f,p)!==i)&&(C(s,!0),C(l,!0))}return o(()=>{let t=e.current;if(!t||r.current===`none`)return;function n(){let e=Oe(t).innerWidth-t.getBoundingClientRect().right;C(c,e>=Lt)}n();let i=setInterval(n,1e3);return()=>{clearInterval(i)}}),o(()=>{let e=i.current||a.getActiveElement()===t.current;if(r.current===`none`||!e)return;let n=setTimeout(d,0),o=setTimeout(d,2e3),s=setTimeout(d,5e3),c=setTimeout(()=>{C(l,!0)},6e3);return()=>{clearTimeout(n),clearTimeout(o),clearTimeout(s),clearTimeout(c)}}),{get hasPwmBadge(){return n(s)},get willPushPwmBadge(){return u()},PWM_BADGE_SPACE_WIDTH:Rt}}var Vt=`^\\d+$`,Ht=Xe({component:`pin-input`,parts:[`root`,`cell`]}),Ut=[`Backspace`,`Delete`,`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Home`,`End`,`Escape`,`Enter`,`Tab`,`Shift`,`Control`,`Meta`],Wt=class e{static create(t){return new e(t)}opts;attachment;inputAttachment;#e=A(!1);#t=Ee(!1);#n=A(null);#r=A(null);#i=new Pe(()=>this.opts.value.current??``);#a=P(()=>typeof this.opts.pattern.current==`string`?new RegExp(this.opts.pattern.current):this.opts.pattern.current);#o=A(te({prev:[null,null,`none`],willSyntheticBlur:!1}));#s;#c;domContext;constructor(e){this.opts=e,this.attachment=K(this.opts.ref),this.inputAttachment=K(this.opts.inputRef),this.domContext=new ke(e.ref),this.#c={value:this.opts.value,isIOS:typeof window<`u`&&window?.CSS?.supports(`-webkit-touch-callout`,`none`)},this.#s=Bt({containerRef:this.opts.ref,inputRef:this.opts.inputRef,isFocused:this.#t,pushPasswordManagerStrategy:this.opts.pushPasswordManagerStrategy,domContext:this.domContext}),ee(()=>{let e=this.opts.inputRef.current,t=this.opts.ref.current;if(!e||!t)return;this.#c.value.current!==e.value&&(this.opts.value.current=e.value),n(this.#o).prev=[e.selectionStart,e.selectionEnd,e.selectionDirection??`none`];let r=f(this.domContext.getDocument(),`selectionchange`,this.#m,{capture:!0});this.#m(),this.domContext.getActiveElement()===e&&(this.#t.current=!0),this.domContext.getElementById(`pin-input-style`)||this.#p();let i=()=>{t&&t.style.setProperty(`--bits-pin-input-root-height`,`${e.clientHeight}px`)};i();let a=new ResizeObserver(i);return a.observe(e),()=>{r(),a.disconnect()}}),Ke([()=>this.opts.value.current,()=>this.opts.inputRef.current],()=>{Kt(()=>{let e=this.opts.inputRef.current;if(!e)return;e.dispatchEvent(new Event(`input`));let t=e.selectionStart,r=e.selectionEnd,i=e.selectionDirection??`none`;t!==null&&r!==null&&(C(this.#n,t,!0),C(this.#r,r,!0),n(this.#o).prev=[t,r,i])},this.domContext)}),o(()=>{let e=this.opts.value.current,t=this.#i.current,n=this.opts.maxLength.current,r=this.opts.onComplete.current;t!==void 0&&e!==t&&t.length<n&&e.length===n&&r(e)})}onkeydown=e=>{let t=e.key;Ut.includes(t)||e.ctrlKey||e.metaKey||t&&n(this.#a)&&!n(this.#a).test(t)&&e.preventDefault()};#l=P(()=>({position:`relative`,cursor:this.opts.disabled.current?`default`:`text`,userSelect:`none`,WebkitUserSelect:`none`,pointerEvents:`none`}));#u=P(()=>({id:this.opts.id.current,[Ht.root]:``,style:n(this.#l),...this.attachment}));get rootProps(){return n(this.#u)}set rootProps(e){C(this.#u,e)}#d=P(()=>({style:{position:`absolute`,inset:0,pointerEvents:`none`}}));get inputWrapperProps(){return n(this.#d)}set inputWrapperProps(e){C(this.#d,e)}#f=P(()=>({position:`absolute`,inset:0,width:this.#s.willPushPwmBadge?`calc(100% + ${this.#s.PWM_BADGE_SPACE_WIDTH})`:`100%`,clipPath:this.#s.willPushPwmBadge?`inset(0 ${this.#s.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:`100%`,display:`flex`,textAlign:this.opts.textAlign.current,opacity:`1`,color:`transparent`,pointerEvents:`all`,background:`transparent`,caretColor:`transparent`,border:`0 solid transparent`,outline:`0 solid transparent`,boxShadow:`none`,lineHeight:`1`,letterSpacing:`-.5em`,fontSize:`var(--bits-pin-input-root-height)`,fontFamily:`monospace`,fontVariantNumeric:`tabular-nums`}));#p(){let e=this.domContext.getDocument(),t=e.createElement(`style`);if(t.id=`pin-input-style`,e.head.appendChild(t),t.sheet){let e=`background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;`;qt(t.sheet,`[data-pin-input-input]::selection { background: transparent !important; color: transparent !important; }`),qt(t.sheet,`[data-pin-input-input]:autofill { ${e} }`),qt(t.sheet,`[data-pin-input-input]:-webkit-autofill { ${e} }`),qt(t.sheet,`@supports (-webkit-touch-callout: none) { [data-pin-input-input] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }`),qt(t.sheet,`[data-pin-input-input] + * { pointer-events: all !important; }`)}}#m=()=>{let e=this.opts.inputRef.current,t=this.opts.ref.current;if(!e||!t)return;if(this.domContext.getActiveElement()!==e){C(this.#n,null),C(this.#r,null);return}let r=e.selectionStart,i=e.selectionEnd,a=e.selectionDirection??`none`,o=e.maxLength,s=e.value,c=n(this.#o).prev,l=-1,u=-1,d;if(s.length!==0&&r!==null&&i!==null){let e=r===i,t=r===s.length&&s.length<o;if(e&&!t){let e=r;if(e===0)l=0,u=1,d=`forward`;else if(e===o)l=e-1,u=e,d=`backward`;else if(o>1&&s.length>1){let t=0;if(c[0]!==null&&c[1]!==null){d=e<c[1]?`backward`:`forward`;let n=c[0]===c[1]&&c[0]<o;d===`backward`&&!n&&(t=-1)}l=t+e,u=t+e+1}}l!==-1&&u!==-1&&l!==u&&this.opts.inputRef.current?.setSelectionRange(l,u,d)}let f=l===-1?r:l,p=u===-1?i:u,m=d??a;C(this.#n,f,!0),C(this.#r,p,!0),n(this.#o).prev=[f,p,m]};oninput=e=>{let t=e.currentTarget.value.slice(0,this.opts.maxLength.current);if(t.length>0&&n(this.#a)&&!n(this.#a).test(t)){e.preventDefault();return}typeof this.#i.current==`string`&&t.length<this.#i.current.length&&this.domContext.getDocument().dispatchEvent(new Event(`selectionchange`)),this.opts.value.current=t};onfocus=e=>{let t=this.opts.inputRef.current;if(t){let e=Math.min(t.value.length,this.opts.maxLength.current-1),n=t.value.length;t.setSelectionRange(e,n),C(this.#n,e,!0),C(this.#r,n,!0)}this.#t.current=!0};onpaste=e=>{let t=this.opts.inputRef.current;if(!t)return;let r=e=>{let n=t.selectionStart===null?void 0:t.selectionStart,r=t.selectionEnd===null?void 0:t.selectionEnd,i=n!==r,a=this.opts.value.current;return(i?a.slice(0,n)+e+a.slice(r):a.slice(0,n)+e+a.slice(n)).slice(0,this.opts.maxLength.current)},i=e=>e.length>0&&n(this.#a)&&!n(this.#a).test(e);if(!this.opts.pasteTransformer?.current&&(!this.#c.isIOS||!e.clipboardData||!t)){i(r(e.clipboardData?.getData(`text/plain`)))&&e.preventDefault();return}let a=e.clipboardData?.getData(`text/plain`)??``,o=this.opts.pasteTransformer?.current?this.opts.pasteTransformer.current(a):a;e.preventDefault();let s=r(o);if(i(s))return;t.value=s,this.opts.value.current=s;let c=Math.min(s.length,this.opts.maxLength.current-1),l=s.length;t.setSelectionRange(c,l),C(this.#n,c,!0),C(this.#r,l,!0)};onmouseover=e=>{C(this.#e,!0)};onmouseleave=e=>{C(this.#e,!1)};onblur=e=>{if(n(this.#o).willSyntheticBlur){n(this.#o).willSyntheticBlur=!1;return}this.#t.current=!1};#h=P(()=>({id:this.opts.inputId.current,style:n(this.#f),autocomplete:this.opts.autocomplete.current||`one-time-code`,"data-pin-input-input":``,"data-pin-input-input-mss":n(this.#n),"data-pin-input-input-mse":n(this.#r),inputmode:this.opts.inputmode.current,pattern:n(this.#a)?.source,maxlength:this.opts.maxLength.current,value:this.opts.value.current,disabled:De(this.opts.disabled.current),onpaste:this.onpaste,oninput:this.oninput,onkeydown:this.onkeydown,onmouseover:this.onmouseover,onmouseleave:this.onmouseleave,onfocus:this.onfocus,onblur:this.onblur,...this.inputAttachment}));get inputProps(){return n(this.#h)}set inputProps(e){C(this.#h,e)}#g=P(()=>Array.from({length:this.opts.maxLength.current}).map((e,t)=>{let r=this.#t.current&&n(this.#n)!==null&&n(this.#r)!==null&&(n(this.#n)===n(this.#r)&&t===n(this.#n)||t>=n(this.#n)&&t<n(this.#r)),i=this.opts.value.current[t]===void 0?null:this.opts.value.current[t];return{char:i,isActive:r,hasFakeCaret:r&&i===null}}));#_=P(()=>({cells:n(this.#g),isFocused:this.#t.current,isHovering:n(this.#e)}));get snippetProps(){return n(this.#_)}set snippetProps(e){C(this.#_,e)}},Gt=class e{static create(t){return new e(t)}opts;attachment;constructor(e){this.opts=e,this.attachment=K(this.opts.ref)}#e=P(()=>({id:this.opts.id.current,[Ht.cell]:``,"data-active":this.opts.cell.current.isActive?``:void 0,"data-inactive":this.opts.cell.current.isActive?void 0:``,...this.attachment}));get props(){return n(this.#e)}set props(e){C(this.#e,e)}};function Kt(e,t){return[t.setTimeout(e,0),t.setTimeout(e,10),t.setTimeout(e,50)]}function qt(e,t){try{e.insertRule(t)}catch{console.error(`pin input could not insert CSS rule:`,t)}}var Jt=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`inputId`,`ref`,`inputRef`,`maxlength`,`textalign`,`pattern`,`inputmode`,`onComplete`,`pushPasswordManagerStrategy`,`class`,`children`,`autocomplete`,`disabled`,`value`,`onValueChange`,`pasteTransformer`]),Yt=w(`<div><!> <div><input/></div></div>`);function Xt(e,t){let i=l();_(t,!0);let o=S(t,`id`,19,()=>J(i)),s=S(t,`inputId`,19,()=>`${J(i)}-input`),c=S(t,`ref`,15,null),u=S(t,`inputRef`,15,null),f=S(t,`maxlength`,3,6),p=S(t,`textalign`,3,`left`),m=S(t,`inputmode`,3,`numeric`),g=S(t,`onComplete`,3,Ve),v=S(t,`pushPasswordManagerStrategy`,3,`increase-width`),y=S(t,`class`,3,``),b=S(t,`autocomplete`,3,`one-time-code`),x=S(t,`disabled`,3,!1),C=S(t,`value`,15,``),w=S(t,`onValueChange`,3,Ve),E=h(t,Jt),D=Wt.create({id:W(()=>o()),ref:W(()=>c(),e=>c(e)),inputRef:W(()=>u(),e=>u(e)),inputId:W(()=>s()),autocomplete:W(()=>b()),maxLength:W(()=>f()),textAlign:W(()=>p()),disabled:W(()=>x()),inputmode:W(()=>m()),pattern:W(()=>t.pattern),onComplete:W(()=>g()),value:W(()=>C(),e=>{C(e),w()(e)}),pushPasswordManagerStrategy:W(()=>v()),pasteTransformer:W(()=>t.pasteTransformer)}),O=P(()=>G(E,D.inputProps)),ee=P(()=>G(D.rootProps,{class:y()})),te=P(()=>G(D.inputWrapperProps,{}));var k=Yt();I(k,()=>({...n(ee)}));var A=d(k);B(A,()=>t.children??r,()=>D.snippetProps);var j=F(A,2);I(j,()=>({...n(te)}));var ne=d(j);I(ne,()=>({...n(O)}),void 0,void 0,void 0,void 0,!0),a(j),a(k),T(e,k),V()}var Zt=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`cell`,`child`,`children`]),Qt=w(`<div><!></div>`);function $t(i,o){let s=l();_(o,!0);let c=S(o,`id`,19,()=>J(s)),u=S(o,`ref`,15,null),f=h(o,Zt),p=Gt.create({id:W(()=>c()),ref:W(()=>u(),e=>u(e)),cell:W(()=>o.cell)}),m=P(()=>G(f,p.props));var g=t(),v=e(g),y=r=>{var i=t(),a=e(i);B(a,()=>o.child,()=>({props:n(m)})),T(r,i)},b=e=>{var t=Qt();I(t,()=>({...n(m)}));var i=d(t);B(i,()=>o.children??r),a(t),T(e,t)};z(v,e=>{o.child?e(y):e(b,-1)}),T(i,g),V()}var en=Xe({component:`tabs`,parts:[`root`,`list`,`trigger`,`content`]}),tn=new Te(`Tabs.Root`),nn=class e{static create(t){return tn.set(new e(t))}opts;attachment;rovingFocusGroup;#e=A(te([]));get triggerIds(){return n(this.#e)}set triggerIds(e){C(this.#e,e,!0)}valueToTriggerId=new Ge;valueToContentId=new Ge;constructor(e){this.opts=e,this.attachment=K(e.ref),this.rovingFocusGroup=new Ft({candidateAttr:en.trigger,rootNode:this.opts.ref,loop:this.opts.loop,orientation:this.opts.orientation})}registerTrigger(e,t){return this.triggerIds.push(e),this.valueToTriggerId.set(t,e),()=>{this.triggerIds=this.triggerIds.filter(t=>t!==e),this.valueToTriggerId.delete(t)}}registerContent(e,t){return this.valueToContentId.set(t,e),()=>{this.valueToContentId.delete(t)}}setValue(e){this.opts.value.current=e}#t=P(()=>({id:this.opts.id.current,"data-orientation":this.opts.orientation.current,[en.root]:``,...this.attachment}));get props(){return n(this.#t)}set props(e){C(this.#t,e)}},rn=class e{static create(t){return new e(t,tn.get())}opts;root;attachment;#e=P(()=>this.root.opts.disabled.current);constructor(e,t){this.opts=e,this.root=t,this.attachment=K(e.ref)}#t=P(()=>({id:this.opts.id.current,role:`tablist`,"aria-orientation":this.root.opts.orientation.current,"data-orientation":this.root.opts.orientation.current,[en.list]:``,"data-disabled":Ze(n(this.#e)),...this.attachment}));get props(){return n(this.#t)}set props(e){C(this.#t,e)}},an=class e{static create(t){return new e(t,tn.get())}opts;root;attachment;#e=A(0);#t=P(()=>this.root.opts.value.current===this.opts.value.current);#n=P(()=>this.opts.disabled.current||this.root.opts.disabled.current);#r=P(()=>this.root.valueToContentId.get(this.opts.value.current));constructor(e,t){this.opts=e,this.root=t,this.attachment=K(e.ref),Ke([()=>this.opts.id.current,()=>this.opts.value.current],([e,t])=>this.root.registerTrigger(e,t)),o(()=>{this.root.triggerIds.length,n(this.#t)||!this.root.opts.value.current?C(this.#e,0):C(this.#e,-1)}),this.onfocus=this.onfocus.bind(this),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}#i(){this.root.opts.value.current!==this.opts.value.current&&this.root.setValue(this.opts.value.current)}onfocus(e){this.root.opts.activationMode.current!==`automatic`||n(this.#n)||this.#i()}onclick(e){n(this.#n)||this.#i()}onkeydown(e){if(!n(this.#n)){if(e.key===` `||e.key===`Enter`){e.preventDefault(),this.#i();return}this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,e)}}#a=P(()=>({id:this.opts.id.current,role:`tab`,"data-state":sn(n(this.#t)),"data-value":this.opts.value.current,"data-orientation":this.root.opts.orientation.current,"data-disabled":Ze(n(this.#n)),"aria-selected":Le(n(this.#t)),"aria-controls":n(this.#r),[en.trigger]:``,disabled:De(n(this.#n)),tabindex:n(this.#e),onclick:this.onclick,onfocus:this.onfocus,onkeydown:this.onkeydown,...this.attachment}));get props(){return n(this.#a)}set props(e){C(this.#a,e)}},on=class e{static create(t){return new e(t,tn.get())}opts;root;attachment;#e=P(()=>this.root.opts.value.current===this.opts.value.current);#t=P(()=>this.root.valueToTriggerId.get(this.opts.value.current));constructor(e,t){this.opts=e,this.root=t,this.attachment=K(e.ref),Ke([()=>this.opts.id.current,()=>this.opts.value.current],([e,t])=>this.root.registerContent(e,t))}#n=P(()=>({id:this.opts.id.current,role:`tabpanel`,hidden:De(!n(this.#e)),tabindex:0,"data-value":this.opts.value.current,"data-state":sn(n(this.#e)),"aria-labelledby":n(this.#t),"data-orientation":this.root.opts.orientation.current,[en.content]:``,...this.attachment}));get props(){return n(this.#n)}set props(e){C(this.#n,e)}};function sn(e){return e?`active`:`inactive`}var cn=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`value`,`onValueChange`,`orientation`,`loop`,`activationMode`,`disabled`,`children`,`child`]),ln=w(`<div><!></div>`);function un(i,o){let s=l();_(o,!0);let c=S(o,`id`,19,()=>J(s)),u=S(o,`ref`,15,null),f=S(o,`value`,15,``),p=S(o,`onValueChange`,3,Ve),m=S(o,`orientation`,3,`horizontal`),g=S(o,`loop`,3,!0),v=S(o,`activationMode`,3,`automatic`),y=S(o,`disabled`,3,!1),b=h(o,cn),x=nn.create({id:W(()=>c()),value:W(()=>f(),e=>{f(e),p()(e)}),orientation:W(()=>m()),loop:W(()=>g()),activationMode:W(()=>v()),disabled:W(()=>y()),ref:W(()=>u(),e=>u(e))}),C=P(()=>G(b,x.props));var w=t(),E=e(w),D=r=>{var i=t(),a=e(i);B(a,()=>o.child,()=>({props:n(C)})),T(r,i)},O=e=>{var t=ln();I(t,()=>({...n(C)}));var i=d(t);B(i,()=>o.children??r),a(t),T(e,t)};z(E,e=>{o.child?e(D):e(O,-1)}),T(i,w),V()}var dn=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`id`,`ref`,`value`]),fn=w(`<div><!></div>`);function pn(i,o){let s=l();_(o,!0);let c=S(o,`id`,19,()=>J(s)),u=S(o,`ref`,15,null),f=h(o,dn),p=on.create({value:W(()=>o.value),id:W(()=>c()),ref:W(()=>u(),e=>u(e))}),m=P(()=>G(f,p.props));var g=t(),v=e(g),y=r=>{var i=t(),a=e(i);B(a,()=>o.child,()=>({props:n(m)})),T(r,i)},b=e=>{var t=fn();I(t,()=>({...n(m)}));var i=d(t);B(i,()=>o.children??r),a(t),T(e,t)};z(v,e=>{o.child?e(y):e(b,-1)}),T(i,g),V()}var mn=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`id`,`ref`]),hn=w(`<div><!></div>`);function gn(i,o){let s=l();_(o,!0);let c=S(o,`id`,19,()=>J(s)),u=S(o,`ref`,15,null),f=h(o,mn),p=rn.create({id:W(()=>c()),ref:W(()=>u(),e=>u(e))}),m=P(()=>G(f,p.props));var g=t(),v=e(g),y=r=>{var i=t(),a=e(i);B(a,()=>o.child,()=>({props:n(m)})),T(r,i)},b=e=>{var t=hn();I(t,()=>({...n(m)}));var i=d(t);B(i,()=>o.children??r),a(t),T(e,t)};z(v,e=>{o.child?e(y):e(b,-1)}),T(i,g),V()}var _n=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`disabled`,`id`,`type`,`value`,`ref`]),vn=w(`<button><!></button>`);function yn(i,o){let s=l();_(o,!0);let c=S(o,`disabled`,3,!1),u=S(o,`id`,19,()=>J(s)),f=S(o,`type`,3,`button`),p=S(o,`ref`,15,null),m=h(o,_n),g=an.create({id:W(()=>u()),disabled:W(()=>c()??!1),value:W(()=>o.value),ref:W(()=>p(),e=>p(e))}),v=P(()=>G(m,g.props,{type:f()}));var y=t(),b=e(y),x=r=>{var i=t(),a=e(i);B(a,()=>o.child,()=>({props:n(v)})),T(r,i)},C=e=>{var t=vn();I(t,()=>({...n(v)}));var i=d(t);B(i,()=>o.children??r),a(t),T(e,t)};z(b,e=>{o.child?e(x):e(C,-1)}),T(i,y),V()}var bn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),xn=w(`<div><!></div>`);function Sn(e,t){_(t,!0);let n=S(t,`ref`,15,null),i=h(t,bn);var o=xn();I(o,e=>({"data-slot":`input-otp-group`,class:e,...i}),[()=>q(`rounded-lg has-aria-invalid:border-destructive has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40 flex items-center`,t.class)]);var s=d(o);B(s,()=>t.children??r),a(o),N(o,e=>n(e),()=>n()),T(e,o),V()}var Cn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`cell`,`class`]),wn=w(`<div class="cn-input-otp-caret pointer-events-none absolute inset-0 flex items-center justify-center"><div class="h-4 w-px animate-caret-blink bg-foreground duration-1000 h-4 w-px bg-foreground"></div></div>`),Tn=w(` <!>`,1);function En(r,a){_(a,!0);let o=S(a,`ref`,15,null),s=h(a,Cn);var c=t(),l=e(c);{let t=P(()=>q(`size-8 border-y border-r border-input text-sm transition-all outline-none first:rounded-l-lg first:border-l last:rounded-r-lg aria-invalid:border-destructive data-[active=true]:border-ring data-[active=true]:ring-3 data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40 relative flex items-center justify-center data-[active=true]:z-10`,a.class));R(l,()=>$t,(r,c)=>{c(r,k({get cell(){return a.cell},"data-slot":`input-otp-slot`,get class(){return n(t)}},()=>s,{get ref(){return o()},set ref(e){o(e)},children:(t,n)=>{m();var r=Tn(),o=e(r),s=F(o),c=e=>{var t=wn();T(e,t)};z(s,e=>{a.cell.hasFakeCaret&&e(c)}),M(()=>i(o,`${a.cell.char??``} `)),T(t,r)},$$slots:{default:!0}}))})}T(r,c),V()}var Dn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`value`]);function On(r,i){_(i,!0);let a=S(i,`ref`,15,null),o=S(i,`value`,15,``),s=h(i,Dn);var c=t(),l=e(c);{let e=P(()=>q(`cn-input-otp-input gap-2 flex items-center disabled:cursor-not-allowed has-disabled:opacity-50`,i.class));R(l,()=>Xt,(t,r)=>{r(t,k({"data-slot":`input-otp`,spellcheck:!1,get class(){return n(e)}},()=>s,{get ref(){return a()},set ref(e){a(e)},get value(){return o()},set value(e){o(e)}}))})}T(r,c),V()}var kn=w(`<div class="w-full flex items-center"><!></div>`);function An(r,i){_(i,!0);let o=()=>b(X,`$dict`,s),[s,c]=L(),l=S(i,`ref`,15,null),u=S(i,`mode`,11,`password`),f=S(i,`password`,15,``),m=S(i,`otp`,15,``);var h=kn(),g=d(h),v=e=>{Et(e,{id:`iam-password-input`,name:`password`,type:`password`,minlength:6,autocomplete:`current-password`,get placeholder(){return o().auth.password},class:`placeholder:text-sm`,get value(){return f()},set value(e){f(e)}})},y=r=>{var i=t(),a=e(i);{let r=(r,i)=>{let a=()=>(i?.()).cells;var o=t(),s=e(o);R(s,()=>Sn,(r,i)=>{i(r,{children:(r,i)=>{var o=t(),s=e(o);re(s,17,()=>a().slice(0,6),p,(r,i)=>{var a=t(),o=e(a);R(o,()=>En,(e,t)=>{t(e,{get cell(){return n(i)},class:`size-[40px] bg-background`})}),T(r,a)}),T(r,o)},$$slots:{default:!0}})}),T(r,o)};R(a,()=>On,(e,t)=>{t(e,{maxlength:6,get pattern(){return Vt},required:!0,get value(){return m()},set value(e){m(e)},children:r,$$slots:{default:!0}})})}T(r,i)};z(g,e=>{u()===`password`?e(v):e(y,-1)}),a(h),N(h,e=>l(e),()=>l()),T(r,h),V(),c()}var jn=w(`<!> <span class="sr-only"> </span>`,1),Mn=w(`<form><fieldset class="space-y-2"><!> <div class="space-y-2"><div class="flex items-center gap-2"><!> <!></div> <div class="text-sm text-muted-foreground px-1"><!></div></div></fieldset></form>`);function Nn(r,o){_(o,!0);let c=()=>b(X,`$dict`,l),[l,f]=L(),p=A(!1),m=A(``),h=A(``),v=A(``),y=A(null),S=A(`password`),w=A(void 0);async function E(){n(h).length===0?n(S)===`password`?await ee():await te():await D()}async function D(){C(p,!0);let e=o.account===void 0?await O():await be(o.account.id,{username:n(m),password:n(h)});C(p,!1),e instanceof Error&&await k()}async function O(){let e=await ve(n(m),n(h));return e instanceof Error||we(e)?.status===201&&o.oncreate?.(e),e}async function ee(){C(p,!0);let e=o.account===void 0?await fe(n(m)):await Se(o.account.id,n(m));C(p,!1),!(e instanceof Error)&&(C(S,`otp`),requestAnimationFrame(()=>j()))}async function te(){if(n(m).length===0){console.error(`username is required`);return}if(n(v).length!==6){await k();return}C(p,!0);let e=await pe(n(m),n(v));if(C(p,!1),e instanceof Error){C(v,``),await k();return}return we(e)?.status===201&&o.oncreate?.(e),e}async function k(){await n(w)?.shake(),j()}function j(){ue&&n(y)?.querySelector(`input`)?.focus()}var ne=Mn(),I=P(()=>je(E)),R=d(ne),re=d(R);{let e=P(()=>n(S)===`otp`||void 0);Et(re,{id:`iam-username-input`,name:`username`,type:`email`,autocomplete:`username`,required:!0,get disabled(){return n(e)},get autofocus(){return ue},get placeholder(){return c().auth.email},get value(){return n(m)},set value(e){C(m,e,!0)}})}var B=F(re,2),ie=d(B),ae=d(ie);N(Ot(ae,{class:`w-full`,children:(e,t)=>{An(e,{get mode(){return n(S)},get ref(){return n(y)},set ref(e){C(y,e,!0)},get password(){return n(h)},set password(e){C(h,e,!0)},get otp(){return n(v)},set otp(e){C(v,e,!0)}})},$$slots:{default:!0}}),e=>C(w,e,!0),()=>n(w));var oe=F(ae,2);U(oe,{size:`icon-lg`,type:`submit`,children:(t,r)=>{var a=jn(),o=e(a),s=e=>{Y(e,{})},l=e=>{Ct(e,{})};z(o,e=>{n(p)?e(s):e(l,-1)});var u=F(o,2),d=x(u,!0);M(()=>i(d,c().auth.login)),T(t,a)},$$slots:{default:!0}}),a(ie);var se=F(ie,2),ce=d(se),le=n=>{var r=t(),i=e(r);g(i,()=>c().auth.passwordBlank),T(n,r)},de=e=>{var t=u();M(()=>i(t,c().auth.otpInstructions)),T(e,t)};z(ce,e=>{n(S)===`password`?e(le):e(de,-1)}),a(se),a(B),a(R),a(ne),s(`submit`,ne,function(...e){n(I)?.apply(this,e)}),T(r,ne),V(),f()}var Pn=w(`<h2> </h2>`),Fn=w(`<!> <!>`,1);function In(r,a){_(a,!0);let o=()=>b(X,`$dict`,s),[s,c]=L();var l=t(),d=e(l);{let t=P(()=>q(`pt-4 gap-4 bg-background/75`,a.class));R(d,()=>xt,(r,s)=>{s(r,{get class(){return n(t)},children:(t,n)=>{var r=Fn(),s=e(r);R(s,()=>ht,(t,n)=>{n(t,{class:`gap-0`,children:(t,n)=>{var r=Fn(),a=e(r);R(a,()=>vt,(e,t)=>{t(e,{children:(e,t)=>{var n=Pn(),r=x(n,!0);M(()=>i(r,o().auth.passwordTitle)),T(e,n)},$$slots:{default:!0}})});var s=F(a,2);R(s,()=>lt,(e,t)=>{t(e,{children:(e,t)=>{m();var n=u();M(()=>i(n,o().auth.passwordDescription)),T(e,n)},$$slots:{default:!0}})}),T(t,r)},$$slots:{default:!0}})});var c=F(s,2);R(c,()=>ot,(e,t)=>{t(e,{children:(e,t)=>{Nn(e,{get account(){return a.account},get oncreate(){return a.oncreate}})},$$slots:{default:!0}})}),T(t,r)},$$slots:{default:!0}})})}T(r,l),V(),c()}function Ln(e){Nn(e,{})}var Rn=new Set([`$$slots`,`$$events`,`$$legacy`]);function zn(e,t){let n=h(t,Rn),r=[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`}],[`path`,{d:`m9 12 2 2 4-4`}]];H(e,k({name:`shield-check`},()=>n,{get iconNode(){return r}}))}var Bn=new Set([`$$slots`,`$$events`,`$$legacy`]);function Vn(e,t){let n=h(t,Bn),r=[[`path`,{d:`m2 2 20 20`}],[`path`,{d:`M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71`}],[`path`,{d:`M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264`}]];H(e,k({name:`shield-off`},()=>n,{get iconNode(){return r}}))}var Hn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Un=w(`<div><!></div>`);function Wn(e,t){_(t,!0);let n=S(t,`ref`,15,null),i=h(t,Hn);var o=Un();I(o,e=>({"data-slot":`alert-description`,class:e,...i}),[()=>q(`text-sm text-balance text-muted-foreground md:text-pretty [&_p:not(:last-child)]:mb-4 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,t.class)]);var s=d(o);B(s,()=>t.children??r),a(o),N(o,e=>n(e),()=>n()),T(e,o),V()}var Gn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Kn=w(`<div><!></div>`);function qn(e,t){_(t,!0);let n=S(t,`ref`,15,null),i=h(t,Gn);var o=Kn();I(o,e=>({"data-slot":`alert-title`,class:e,...i}),[()=>q(`font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,t.class)]);var s=d(o);B(s,()=>t.children??r),a(o),N(o,e=>n(e),()=>n()),T(e,o),V()}var Jn=Re({base:`grid gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4 group/alert relative w-full`,variants:{variant:{default:`bg-card text-card-foreground`,destructive:`bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current`}},defaultVariants:{variant:`default`}}),Yn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`variant`,`children`]),Xn=w(`<div><!></div>`);function Zn(e,t){_(t,!0);let n=S(t,`ref`,15,null),i=S(t,`variant`,3,`default`),o=h(t,Yn);var s=Xn();I(s,e=>({"data-slot":`alert`,role:`alert`,class:e,...o}),[()=>q(Jn({variant:i()}),t.class)]);var c=d(s);B(c,()=>t.children??r),a(s),N(s,e=>n(e),()=>n()),T(e,s),V()}var Qn=new Set([`$$slots`,`$$events`,`$$legacy`]);function $n(e,t){let n=h(t,Qn),r=[[`path`,{d:`M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4`}],[`path`,{d:`M14 13.12c0 2.38 0 6.38-1 8.88`}],[`path`,{d:`M17.29 21.02c.12-.6.43-2.3.5-3.02`}],[`path`,{d:`M2 12a10 10 0 0 1 18-6`}],[`path`,{d:`M2 16h.01`}],[`path`,{d:`M21.8 16c.2-2 .131-5.354 0-6`}],[`path`,{d:`M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2`}],[`path`,{d:`M8.65 22c.21-.66.45-1.32.57-2`}],[`path`,{d:`M9 6.8a6 6 0 0 1 9 5.2v2`}]];H(e,k({name:`fingerprint-pattern`},()=>n,{get iconNode(){return r}}))}var er=w(`<!> `,1),tr=w(`<div class="flex flex-col items-center justify-center gap-2"><p> </p> <!></div>`);function nr(t,r){_(r,!0);let o=()=>b(X,`$dict`,s),[s,c]=L(),l=A(!1);async function u(){C(l,!0),await xe(),C(l,!1)}var f=tr(),p=d(f),m=x(p,!0),h=F(p,2);U(h,{id:`iam-passkey-login-button`,variant:`secondary`,onclick:u,children:(t,r)=>{var a=er(),s=e(a),c=e=>{Y(e,{})},u=e=>{$n(e,{})};z(s,e=>{n(l)?e(c):e(u,-1)});var d=F(s);M(()=>i(d,` ${o().auth.signin??``}`)),T(t,a)},$$slots:{default:!0}}),a(f),M(()=>i(m,o().auth.alreadyHaveAccount)),T(t,f),V(),c()}var rr=w(`<form><fieldset class="space-y-1"><div class="flex items-center gap-2"><!> <!></div></fieldset></form>`);function ir(r,i){_(i,!0);let o=()=>b(X,`$dict`,c),[c,l]=L(),u=P(()=>i.account?.name??``),f=A(!1);async function p(){let e=n(u).trim();if(e.length===0)return;C(f,!0);let t=await de(e,i.account?.id);C(f,!1),!(t instanceof Error)&&i.oncreate?.(t)}var m=rr(),h=P(()=>je(p)),g=d(m),v=d(g),y=d(v);Et(y,{id:`name`,type:`text`,get placeholder(){return o().auth.yourName},autocomplete:`given-name`,required:!0,get autofocus(){return ue},get value(){return n(u)},set value(e){C(u,e)}});var x=F(y,2);U(x,{id:`iam-passkey-create-button`,size:`icon-lg`,type:`submit`,children:(r,i)=>{var a=t(),o=e(a),s=e=>{Y(e,{})},c=e=>{Ct(e,{})};z(o,e=>{n(f)?e(s):e(c,-1)}),T(r,a)},$$slots:{default:!0}}),a(v),a(g),a(m),M(()=>g.disabled=i.disabled),s(`submit`,m,function(...e){n(h)?.apply(this,e)}),T(r,m),V(),l()}var ar=w(`<p> <a target="_blank" class="text-nowrap"> </a></p>`),or=w(`<h2> </h2>`),sr=w(`<!> <!>`,1),cr=w(`<!> <!> <!>`,1),lr=w(`<p> </p> <!>`,1),ur=w(`<div class="space-y-4"><!> <!></div>`);function dr(r,o){_(o,!0);let s=()=>b(X,`$dict`,c),[c,l]=L(),f=e=>{var t=ar(),n=d(t),r=F(n),o=x(r,!0);a(t),M(()=>{i(n,`${s().auth.passkeysDescription??``} `),y(r,`href`,p),i(o,s().auth.learnMore)}),T(e,t)},p=ge?`https://support.apple.com/en-us/102195`:`https://support.google.com/accounts/answer/13548313`;var h=ur(),g=d(h);{let r=P(()=>q(`gap-4 bg-background/75`,_e&&`pt-4`,o.class));R(g,()=>xt,(a,c)=>{c(a,{get class(){return n(r)},children:(n,r)=>{var a=sr(),c=e(a),l=n=>{var r=sr(),a=e(r);R(a,()=>ht,(n,r)=>{r(n,{class:`gap-0`,children:(n,r)=>{var a=t(),o=e(a);R(o,()=>vt,(e,t)=>{t(e,{children:(e,t)=>{var n=or(),r=x(n,!0);M(()=>i(r,s().auth.signupTitle)),T(e,n)},$$slots:{default:!0}})}),T(n,a)},$$slots:{default:!0}})});var c=F(a,2);R(c,()=>ot,(e,t)=>{t(e,{children:(e,t)=>{ir(e,{get account(){return o.account},get oncreate(){return o.oncreate}})},$$slots:{default:!0}})}),T(n,r)};z(c,e=>{_e&&e(l)});var d=F(c,2);R(d,()=>ft,(n,r)=>{r(n,{children:(n,r)=>{var a=t(),o=e(a),c=n=>{var r=t(),a=e(r);R(a,()=>Zn,(t,n)=>{n(t,{children:(t,n)=>{var r=cr(),a=e(r);zn(a,{color:`green`});var o=F(a,2);R(o,()=>qn,(e,t)=>{t(e,{children:(e,t)=>{m();var n=u();M(()=>i(n,s().auth.betterSecurity)),T(e,n)},$$slots:{default:!0}})});var c=F(o,2);R(c,()=>Wn,(e,t)=>{t(e,{children:(e,t)=>{f(e)},$$slots:{default:!0}})}),T(t,r)},$$slots:{default:!0}})}),T(n,r)},l=n=>{var r=t(),a=e(r);R(a,()=>Zn,(t,n)=>{n(t,{children:(t,n)=>{var r=cr(),a=e(r);Vn(a,{color:`red`,class:`animate-pulse`});var o=F(a,2);R(o,()=>qn,(e,t)=>{t(e,{children:(e,t)=>{m();var n=u();M(()=>i(n,s().auth.passkeysNotSupported)),T(e,n)},$$slots:{default:!0}})});var c=F(o,2);R(c,()=>Wn,(t,n)=>{n(t,{children:(t,n)=>{var r=lr(),a=e(r),o=x(a,!0),c=F(a,2);f(c),M(()=>i(o,s().auth.passkeysWarning)),T(t,r)},$$slots:{default:!0}})}),T(t,r)},$$slots:{default:!0}})}),T(n,r)};z(o,e=>{_e?e(c):e(l,-1)}),T(n,a)},$$slots:{default:!0}})}),T(n,a)},$$slots:{default:!0}})})}var v=F(g,2),S=e=>{nr(e,{})};z(v,e=>{_e&&!o.account&&e(S)}),a(h),T(r,h),V(),l()}var fr=w(`<!> <!> `,1);function pr(t,n){_(n,!0);let r=()=>b(X,`$dict`,a),[a,o]=L();async function s(e){let t=e.currentTarget;t.disabled=!0,await xe(n.account.id),t.disabled=!1}U(t,{class:`w-full disabled:[&>.x-icon]:hidden [&>.x-spinner]:hidden disabled:[&>.x-spinner]:block`,onclick:s,children:(t,n)=>{var a=fr(),o=e(a);$n(o,{class:`size-5 x-icon`});var s=F(o,2);Y(s,{class:`x-spinner`});var c=F(s);M(()=>i(c,` ${r().auth.refresh.continue??``}`)),T(t,a)},$$slots:{default:!0}}),V(),o()}var mr=c(`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M19.84 10.2273C19.84 9.5182 19.7764 8.8364 19.6582 8.1818H10.24V12.05H15.6218C15.39 13.3 14.6855 14.3591 13.6264 15.0682V17.5773H16.8582C18.7491 15.8364 19.84 13.2727 19.84 10.2273Z" fill="#4285F4"></path><path d="M10.24 20C12.94 20 15.2036 19.1045 16.8581 17.5773L13.6263 15.0682C12.7309 15.6682 11.5854 16.0227 10.24 16.0227C7.6354 16.0227 5.4309 14.2636 4.6445 11.9H1.3036V14.4909C2.9491 17.7591 6.3309 20 10.24 20Z" fill="#34A853"></path><path d="M4.6445 11.9C4.4445 11.3 4.3309 10.6591 4.3309 10C4.3309 9.3409 4.4445 8.7 4.6445 8.1V5.5091H1.3036C0.6264 6.8591 0.24 8.3864 0.24 10C0.24 11.6136 0.6264 13.1409 1.3036 14.4909L4.6445 11.9Z" fill="#FBBC04"></path><path d="M10.24 3.9773C11.7081 3.9773 13.0263 4.4818 14.0627 5.4727L16.9309 2.6045C15.1991 0.9909 12.9354 0 10.24 0C6.3309 0 2.9491 2.2409 1.3036 5.5091L4.6445 8.1C5.4309 5.7364 7.6354 3.9773 10.24 3.9773Z" fill="#E94235"></path></svg>`);function hr(e,t){var n=mr();M(()=>j(n,0,O(t.class))),T(e,n)}var gr=c(`<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" fill="currentColor" viewBox="0 0 814 1000"><path d="M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z"></path></svg>`);function _r(e,t){_(t,!0);var n=gr(),r=x(n);M(e=>{j(n,0,e),y(r,`fill`,t.fill)},[()=>O(q(`size-5 -mt-[3px]`,t.class))]),T(e,n),V()}var vr={google:hr,apple:_r},yr=w(`<!> <!> <!>`,1);function br(t,i){_(i,!0);let a=P(()=>vr[i.idp]);async function o(e){let t=e.currentTarget;t.disabled=!0,await me(i.idp,i.account?.id),t.disabled=!1}{let s=P(()=>i.children?`default`:`icon`),c=P(()=>q(`disabled:[&_.x-icon]:hidden [&_.x-spinner]:hidden disabled:[&_.x-spinner]:block`,i.class));U(t,{variant:`outline`,get size(){return n(s)},onclick:o,get class(){return n(c)},children:(t,o)=>{var s=yr(),c=e(s);R(c,()=>n(a),(e,t)=>{t(e,{class:`x-icon`})});var l=F(c,2);Y(l,{class:`x-spinner`});var u=F(l,2);B(u,()=>i.children??r),T(t,s)},$$slots:{default:!0}})}V()}var xr=w(`<div class="flex gap-2"><!> <!></div>`);function Sr(e,t){_(t,!0);var n=xr(),r=d(n),i=e=>{br(e,{idp:`google`,get account(){return t.account}})};z(r,e=>{le.google.client&&e(i)});var o=F(r,2),s=e=>{br(e,{idp:`apple`,get account(){return t.account}})};z(o,e=>{le.apple.client&&e(s)}),a(n),T(e,n),V()}function Cr(e,t){_(t,!0);let n=()=>b(X,`$dict`,r),[r,a]=L(),o={google:`Google`,apple:`Apple`};br(e,{get idp(){return t.idp},class:`w-full`,children:(e,r)=>{m();var a=u();M(e=>i(a,e),[()=>n().auth.continueWith(o[t.idp])]),T(e,a)},$$slots:{default:!0}}),V(),a()}var wr=w(`<!> <!>`,1);function Tr(n,r){var a=t(),o=e(a);R(o,()=>xt,(n,a)=>{a(n,{class:`w-full`,children:(n,a)=>{var o=wr(),s=e(o);R(s,()=>ht,(t,n)=>{n(t,{children:(t,n)=>{var a=wr(),o=e(a);R(o,()=>vt,(e,t)=>{t(e,{children:(e,t)=>{m();var n=u();M(()=>i(n,r.title)),T(e,n)},$$slots:{default:!0}})});var s=F(o,2);R(s,()=>lt,(e,t)=>{t(e,{children:(e,t)=>{m();var n=u();M(()=>i(n,r.description)),T(e,n)},$$slots:{default:!0}})}),T(t,a)},$$slots:{default:!0}})});var c=F(s,2);R(c,()=>ot,(n,i)=>{i(n,{class:`flex flex-col`,children:(n,i)=>{var a=t(),o=e(a);B(o,()=>r.action),T(n,a)},$$slots:{default:!0}})}),T(n,o)},$$slots:{default:!0}})}),T(n,a)}var Er=w(`<!> `,1),Dr=w(`<div class="flex flex-col items-center gap-4 w-full"><!> <!></div>`);function Or(r,o){_(o,!0);let s=()=>b(X,`$dict`,c),[c,l]=L();ee(()=>{o.method===null&&he()});var u=Dr(),f=d(u);{let r=n=>{var r=t(),i=e(r),a=e=>{pr(e,{get account(){return o.account}})},s=e=>{Ln(e,{})},c=e=>{Cr(e,{idp:`apple`})},l=e=>{Cr(e,{idp:`google`})};z(i,e=>{o.method===`passkey`?e(a):o.method===`password`?e(s,1):o.method===`apple`?e(c,2):o.method===`google`&&e(l,3)}),T(n,r)},i=P(()=>s().auth.refresh.description(o.account.name));Tr(f,{get title(){return s().auth.refresh.title},get description(){return n(i)},action:r,$$slots:{action:!0}})}var p=F(f,2);U(p,{variant:`outline`,get onclick(){return he},children:(t,n)=>{var r=Er(),a=e(r);tt(a,{});var o=F(a);M(()=>i(o,` ${s().auth.signout??``}`)),T(t,r)},$$slots:{default:!0}}),a(u),T(r,u),V(),l()}var kr=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ar(e,t){let n=h(t,kr),r=[[`circle`,{cx:`12`,cy:`12`,r:`4`}],[`path`,{d:`M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8`}]];H(e,k({name:`at-sign`},()=>n,{get iconNode(){return r}}))}var jr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function Mr(r,i){_(i,!0);let a=S(i,`ref`,15,null),o=h(i,jr);var s=t(),c=e(s);{let e=P(()=>q(`text-sm flex-1 outline-none`,i.class));R(c,()=>pn,(t,r)=>{r(t,k({"data-slot":`tabs-content`,get class(){return n(e)}},()=>o,{get ref(){return a()},set ref(e){a(e)}}))})}T(r,s),V()}var Nr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function Pr(r,i){_(i,!0);let a=S(i,`ref`,15,null),o=h(i,Nr);var s=t(),c=e(s);{let e=P(()=>q(`gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg:not([class*='size-'])]:size-4 relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0`,`group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent`,`data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground`,`after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100`,i.class));R(c,()=>yn,(t,r)=>{r(t,k({"data-slot":`tabs-trigger`,get class(){return n(e)}},()=>o,{get ref(){return a()},set ref(e){a(e)}}))})}T(r,s),V()}var Fr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`class`]);function Ir(r,i){_(i,!0);let a=S(i,`ref`,15,null),o=S(i,`value`,15,``),s=h(i,Fr);var c=t(),l=e(c);{let e=P(()=>q(`gap-2 group/tabs flex data-[orientation=horizontal]:flex-col`,i.class));R(l,()=>un,(t,r)=>{r(t,k({"data-slot":`tabs`,get class(){return n(e)}},()=>s,{get ref(){return a()},set ref(e){a(e)},get value(){return o()},set value(e){o(e)}}))})}T(r,c),V()}var Lr=Re({base:`rounded-lg p-[3px] group-data-horizontal/tabs:h-8 data-[variant=line]:rounded-none group/tabs-list inline-flex w-fit items-center justify-center text-muted-foreground group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col`,variants:{variant:{default:`cn-tabs-list-variant-default bg-muted`,line:`cn-tabs-list-variant-line gap-1 bg-transparent`}},defaultVariants:{variant:`default`}}),Rr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`variant`,`class`]);function zr(r,i){_(i,!0);let a=S(i,`ref`,15,null),o=S(i,`variant`,3,`default`),s=h(i,Rr);var c=t(),l=e(c);{let e=P(()=>q(Lr({variant:o()}),i.class));R(l,()=>gn,(t,r)=>{r(t,k({"data-slot":`tabs-list`,get"data-variant"(){return o()},get class(){return n(e)}},()=>s,{get ref(){return a()},set ref(e){a(e)}}))})}T(r,c),V()}var Br=w(`<!> `,1),Vr=w(`<!> <!>`,1),Hr=w(`<div class="flex justify-between gap-2"><!> <!></div> <!> <!>`,1);function Ur(r,o){_(o,!0);let s=()=>b(X,`$dict`,c),[c,l]=L(),u=A(null);function f(e){requestAnimationFrame(()=>{n(u)?.querySelector(`[data-value="${e}"] input[autofocus]`)?.focus()})}let p=A(`passkey`);ee(()=>{C(p,_e?`passkey`:`password`,!0)});var m=t(),h=e(m);{let t=P(()=>q(`w-full`,o.class));R(h,()=>Ir,(r,c)=>{c(r,{get class(){return n(t)},onValueChange:f,get value(){return n(p)},set value(e){C(p,e,!0)},get ref(){return n(u)},set ref(e){C(u,e,!0)},children:(t,n)=>{var r=Hr(),c=e(r),l=d(c);R(l,()=>zr,(t,n)=>{n(t,{children:(t,n)=>{var r=Vr(),a=e(r);R(a,()=>Pr,(t,n)=>{n(t,{value:`passkey`,"data-marker":`passkey-tab`,children:(t,n)=>{var r=Br(),a=e(r);$n(a,{color:`var(--muted-foreground)`});var o=F(a);M(()=>i(o,` ${s().auth.passkey??``}`)),T(t,r)},$$slots:{default:!0}})});var o=F(a,2);R(o,()=>Pr,(t,n)=>{n(t,{value:`password`,id:`iam-email-tab`,children:(t,n)=>{var r=Br(),a=e(r);Ar(a,{color:`var(--muted-foreground)`});var o=F(a);M(()=>i(o,` ${s().auth.email??``}`)),T(t,r)},$$slots:{default:!0}})}),T(t,r)},$$slots:{default:!0}})}),Sr(F(l,2),{get account(){return o.account}}),a(c);var u=F(c,2);R(u,()=>Mr,(e,t)=>{t(e,{value:`passkey`,children:(e,t)=>{dr(e,{get account(){return o.account},oncreate:e=>o.oncreate?.(e,`passkey`)})},$$slots:{default:!0}})});var f=F(u,2);R(f,()=>Mr,(e,t)=>{t(e,{value:`password`,children:(e,t)=>{In(e,{get account(){return o.account},oncreate:e=>o.oncreate?.(e,`password`)})},$$slots:{default:!0}})}),T(t,r)},$$slots:{default:!0}})})}T(r,m),V(),l()}var Wr=w(`<div class="flex items-center justify-center h-screen"><!></div>`),Gr=w(`<div class="flex w-full max-w-sm items-center justify-center pt-[14vh] px-4 mx-auto"><!></div>`);function Kr(r,i){_(i,!0);let o=()=>b(ae,`$iam`,f),s=()=>b(oe,`$method`,f),c=()=>b(Ce,`$authenticated`,f),l=()=>b(se,`$greeting`,f),u=()=>b(ce,`$processing`,f),[f,p]=L(),m=r=>{var a=t(),c=e(a),l=e=>{Or(e,{get account(){return o()},get method(){return s()}})},u=e=>{{let t=P(()=>q(`scale-0 transition-transform`,`scale-100`));Ur(e,{get class(){return n(t)},get account(){return i.account},get oncreate(){return i.oncreate}})}};z(c,e=>{o()?e(l):e(u,-1)}),T(r,a)};var h=t(),g=e(h),v=n=>{var r=t(),a=e(r);B(a,()=>i.children),T(n,r)},y=e=>{var t=Wr();Y(d(t),{}),a(t),T(e,t)},x=n=>{var r=t(),a=e(r);B(a,()=>i.screen,()=>({authentication:m})),T(n,r)},S=e=>{var t=Gr(),n=d(t);m(n),a(t),T(e,t)};z(g,e=>{c()?e(v):l()||u()?e(y,1):i.screen?e(x,2):e(S,-1)}),T(r,h),V(),p()}var qr=new Set([`$$slots`,`$$events`,`$$legacy`]);function Jr(e,t){let n=h(t,qr),r=[[`path`,{d:`M20 6 9 17l-5-5`}]];H(e,k({name:`check`},()=>n,{get iconNode(){return r}}))}var Yr=new Set([`$$slots`,`$$events`,`$$legacy`]);function Xr(e,t){let n=h(t,Yr),r=[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`}]];H(e,k({name:`copy`},()=>n,{get iconNode(){return r}}))}var Zr=new Set([`$$slots`,`$$events`,`$$legacy`,`text`,`label`,`disabled`,`oncopy`,`icon`,`class`]),Qr=w(`<!> <!>`,1);function $r(r,a){_(a,!0);let o=h(a,Zr),s=A(!1),c=A(!1),l=!navigator.clipboard;async function d(){if(!n(s)){if(C(c,!0),typeof ClipboardItem>`u`){let e=typeof a.text==`function`?await a.text():a.text;if(e===null)return;await navigator.clipboard.writeText(e)}else{let e=f(a.text);await navigator.clipboard.write([e])}C(c,!1),C(s,!0),a.oncopy?.(),setTimeout(()=>C(s,!1),2e3)}}function f(e){return typeof e==`function`?p(e):new ClipboardItem({"text/plain":new Blob([e],{type:`text/plain`})})}function p(e){return new ClipboardItem({"text/plain":e().then(e=>new Blob([e??``],{type:`text/plain`}))})}{let f=P(()=>q(a.class)),p=P(()=>a.disabled||l||n(c));U(r,k({get class(){return n(f)},onclick:d,get disabled(){return n(p)}},()=>o,{children:(r,o)=>{var l=Qr(),d=e(l),f=e=>{Jr(e,{class:`text-constructive`,strokeWidth:3})},p=e=>{Y(e,{})},m=n=>{var r=t(),i=e(r);B(i,()=>a.icon),T(n,r)},h=e=>{Xr(e,{})};z(d,e=>{n(s)?e(f):n(c)?e(p,1):a.icon===void 0?e(h,-1):e(m,2)});var g=F(d,2),_=e=>{var t=u();M(()=>i(t,a.label)),T(e,t)};z(g,e=>{a.label!==null&&e(_)}),T(r,l)},$$slots:{default:!0}}))}V()}function ei(e,t){return!!(e.dev!==void 0&&e.dev===!1||e.beta!==void 0&&e.beta===ti()||e.debug!==void 0&&e.debug===ni()||e.role!==void 0&&t?.roles!==void 0&&ri(t.roles,e.role))}function ti(){return typeof window<`u`&&window.location.hostname.startsWith(`beta.`)}function ni(){return ti()}function ri(e,t){for(let n of e)if(n===t||t.startsWith(n+`:`))return!0;return!1}var ii=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`denied`]),ai=w(`<div class="flex justify-center pt-[14vh]"><!></div>`);function oi(r,i){_(i,!0);let o=()=>b(ae,`$account`,c),s=()=>b(X,`$dict`,c),[c,l]=L(),u=h(i,ii),f=P(()=>ei(u,o())),p=P(()=>o()?.id??``);var m=t(),g=e(m),v=n=>{var r=t(),a=e(r);B(a,()=>i.children),T(n,r)},y=n=>{var r=t(),a=e(r);B(a,()=>i.denied),T(n,r)},x=e=>{var t=ai(),r=d(t);{let e=P(()=>n(p).slice(0,8));$r(r,{get text(){return n(p)},get label(){return n(e)},get"aria-label"(){return s().auth.copyId},variant:`outline`,class:`font-mono`})}a(t),T(e,t)};z(g,e=>{n(f)?e(v):i.denied===void 0?n(p)!==``&&e(x,2):e(y,1)}),T(r,m),V(),l()}var si=E(((e,t)=>{t.exports=function(){return typeof Promise==`function`&&Promise.prototype&&Promise.prototype.then}})),Q=E((e=>{var t,n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(e){if(!e)throw Error(`"version" cannot be null or undefined`);if(e<1||e>40)throw Error(`"version" should be in range from 1 to 40`);return e*4+17},e.getSymbolTotalCodewords=function(e){return n[e]},e.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t},e.setToSJISFunction=function(e){if(typeof e!=`function`)throw Error(`"toSJISFunc" is not a valid function.`);t=e},e.isKanjiModeEnabled=function(){return t!==void 0},e.toSJIS=function(e){return t(e)}})),ci=E((e=>{e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`l`:case`low`:return e.L;case`m`:case`medium`:return e.M;case`q`:case`quartile`:return e.Q;case`h`:case`high`:return e.H;default:throw Error(`Unknown EC Level: `+t)}}e.isValid=function(e){return e&&e.bit!==void 0&&e.bit>=0&&e.bit<4},e.from=function(n,r){if(e.isValid(n))return n;try{return t(n)}catch{return r}}})),li=E(((e,t)=>{function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},t.exports=n})),ui=E(((e,t)=>{function n(e){if(!e||e<1)throw Error(`BitMatrix size must be defined and greater than 0`);this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}n.prototype.set=function(e,t,n,r){let i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},n.prototype.get=function(e,t){return this.data[e*this.size+t]},n.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},n.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},t.exports=n})),di=E((e=>{var t=Q().getSymbolSize;e.getRowColCoords=function(e){if(e===1)return[];let n=Math.floor(e/7)+2,r=t(e),i=r===145?26:Math.ceil((r-13)/(2*n-2))*2,a=[r-7];for(let e=1;e<n-1;e++)a[e]=a[e-1]-i;return a.push(6),a.reverse()},e.getPositions=function(t){let n=[],r=e.getRowColCoords(t),i=r.length;for(let e=0;e<i;e++)for(let t=0;t<i;t++)e===0&&t===0||e===0&&t===i-1||e===i-1&&t===0||n.push([r[e],r[t]]);return n}})),fi=E((e=>{var t=Q().getSymbolSize,n=7;e.getPositions=function(e){let r=t(e);return[[0,0],[r-n,0],[0,r-n]]}})),pi=E((e=>{e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(e){return e!=null&&e!==``&&!isNaN(e)&&e>=0&&e<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(e){let n=e.size,r=0,i=0,a=0,o=null,s=null;for(let c=0;c<n;c++){i=a=0,o=s=null;for(let l=0;l<n;l++){let n=e.get(c,l);n===o?i++:(i>=5&&(r+=t.N1+(i-5)),o=n,i=1),n=e.get(l,c),n===s?a++:(a>=5&&(r+=t.N1+(a-5)),s=n,a=1)}i>=5&&(r+=t.N1+(i-5)),a>=5&&(r+=t.N1+(a-5))}return r},e.getPenaltyN2=function(e){let n=e.size,r=0;for(let t=0;t<n-1;t++)for(let i=0;i<n-1;i++){let n=e.get(t,i)+e.get(t,i+1)+e.get(t+1,i)+e.get(t+1,i+1);(n===4||n===0)&&r++}return r*t.N2},e.getPenaltyN3=function(e){let n=e.size,r=0,i=0,a=0;for(let t=0;t<n;t++){i=a=0;for(let o=0;o<n;o++)i=i<<1&2047|e.get(t,o),o>=10&&(i===1488||i===93)&&r++,a=a<<1&2047|e.get(o,t),o>=10&&(a===1488||a===93)&&r++}return r*t.N3},e.getPenaltyN4=function(e){let n=0,r=e.data.length;for(let t=0;t<r;t++)n+=e.data[t];return Math.abs(Math.ceil(n*100/r/5)-10)*t.N4};function n(t,n,r){switch(t){case e.Patterns.PATTERN000:return(n+r)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return r%3==0;case e.Patterns.PATTERN011:return(n+r)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case e.Patterns.PATTERN101:return n*r%2+n*r%3==0;case e.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case e.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw Error(`bad maskPattern:`+t)}}e.applyMask=function(e,t){let r=t.size;for(let i=0;i<r;i++)for(let a=0;a<r;a++)t.isReserved(a,i)||t.xor(a,i,n(e,a,i))},e.getBestMask=function(t,n){let r=Object.keys(e.Patterns).length,i=0,a=1/0;for(let o=0;o<r;o++){n(o),e.applyMask(o,t);let r=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(o,t),r<a&&(a=r,i=o)}return i}})),mi=E((e=>{var t=ci(),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],r=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(e,r){switch(r){case t.L:return n[(e-1)*4+0];case t.M:return n[(e-1)*4+1];case t.Q:return n[(e-1)*4+2];case t.H:return n[(e-1)*4+3];default:return}},e.getTotalCodewordsCount=function(e,n){switch(n){case t.L:return r[(e-1)*4+0];case t.M:return r[(e-1)*4+1];case t.Q:return r[(e-1)*4+2];case t.H:return r[(e-1)*4+3];default:return}}})),hi=E((e=>{var t=new Uint8Array(512),n=new Uint8Array(256);(function(){let e=1;for(let r=0;r<255;r++)t[r]=e,n[e]=r,e<<=1,e&256&&(e^=285);for(let e=255;e<512;e++)t[e]=t[e-255]})(),e.log=function(e){if(e<1)throw Error(`log(`+e+`)`);return n[e]},e.exp=function(e){return t[e]},e.mul=function(e,r){return e===0||r===0?0:t[n[e]+n[r]]}})),gi=E((e=>{var t=hi();e.mul=function(e,n){let r=new Uint8Array(e.length+n.length-1);for(let i=0;i<e.length;i++)for(let a=0;a<n.length;a++)r[i+a]^=t.mul(e[i],n[a]);return r},e.mod=function(e,n){let r=new Uint8Array(e);for(;r.length-n.length>=0;){let e=r[0];for(let i=0;i<n.length;i++)r[i]^=t.mul(n[i],e);let i=0;for(;i<r.length&&r[i]===0;)i++;r=r.slice(i)}return r},e.generateECPolynomial=function(n){let r=new Uint8Array([1]);for(let i=0;i<n;i++)r=e.mul(r,new Uint8Array([1,t.exp(i)]));return r}})),_i=E(((e,t)=>{var n=gi();function r(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(e){this.degree=e,this.genPoly=n.generateECPolynomial(this.degree)},r.prototype.encode=function(e){if(!this.genPoly)throw Error(`Encoder not initialized`);let t=new Uint8Array(e.length+this.degree);t.set(e);let r=n.mod(t,this.genPoly),i=this.degree-r.length;if(i>0){let e=new Uint8Array(this.degree);return e.set(r,i),e}return r},t.exports=r})),vi=E((e=>{e.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}})),yi=E((e=>{var t=`[0-9]+`,n=`[A-Z $%*+\\-./:]+`,r=`(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+`;r=r.replace(/u/g,`\\u`);var i=`(?:(?![A-Z0-9 $%*+\\-./:]|`+r+`)(?:.|[\r
2
+ ]))+`;e.KANJI=new RegExp(r,`g`),e.BYTE_KANJI=RegExp(`[^A-Z0-9 $%*+\\-./:]+`,`g`),e.BYTE=new RegExp(i,`g`),e.NUMERIC=new RegExp(t,`g`),e.ALPHANUMERIC=new RegExp(n,`g`);var a=RegExp(`^`+r+`$`),o=RegExp(`^[0-9]+$`),s=RegExp(`^[A-Z0-9 $%*+\\-./:]+$`);e.testKanji=function(e){return a.test(e)},e.testNumeric=function(e){return o.test(e)},e.testAlphanumeric=function(e){return s.test(e)}})),$=E((e=>{var t=vi(),n=yi();e.NUMERIC={id:`Numeric`,bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:`Alphanumeric`,bit:2,ccBits:[9,11,13]},e.BYTE={id:`Byte`,bit:4,ccBits:[8,16,16]},e.KANJI={id:`Kanji`,bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(e,n){if(!e.ccBits)throw Error(`Invalid mode: `+e);if(!t.isValid(n))throw Error(`Invalid version: `+n);return n>=1&&n<10?e.ccBits[0]:n<27?e.ccBits[1]:e.ccBits[2]},e.getBestModeForData=function(t){return n.testNumeric(t)?e.NUMERIC:n.testAlphanumeric(t)?e.ALPHANUMERIC:n.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(e){if(e&&e.id)return e.id;throw Error(`Invalid mode`)},e.isValid=function(e){return e&&e.bit&&e.ccBits};function r(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`numeric`:return e.NUMERIC;case`alphanumeric`:return e.ALPHANUMERIC;case`kanji`:return e.KANJI;case`byte`:return e.BYTE;default:throw Error(`Unknown mode: `+t)}}e.from=function(t,n){if(e.isValid(t))return t;try{return r(t)}catch{return n}}})),bi=E((e=>{var t=Q(),n=mi(),r=ci(),i=$(),a=vi(),o=7973,s=t.getBCHDigit(o);function c(t,n,r){for(let i=1;i<=40;i++)if(n<=e.getCapacity(i,r,t))return i}function l(e,t){return i.getCharCountIndicator(e,t)+4}function u(e,t){let n=0;return e.forEach(function(e){let r=l(e.mode,t);n+=r+e.getBitsLength()}),n}function d(t,n){for(let r=1;r<=40;r++)if(u(t,r)<=e.getCapacity(r,n,i.MIXED))return r}e.from=function(e,t){return a.isValid(e)?parseInt(e,10):t},e.getCapacity=function(e,r,o){if(!a.isValid(e))throw Error(`Invalid QR Code version`);o===void 0&&(o=i.BYTE);let s=(t.getSymbolTotalCodewords(e)-n.getTotalCodewordsCount(e,r))*8;if(o===i.MIXED)return s;let c=s-l(o,e);switch(o){case i.NUMERIC:return Math.floor(c/10*3);case i.ALPHANUMERIC:return Math.floor(c/11*2);case i.KANJI:return Math.floor(c/13);case i.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(e,t){let n,i=r.from(t,r.M);if(Array.isArray(e)){if(e.length>1)return d(e,i);if(e.length===0)return 1;n=e[0]}else n=e;return c(n.mode,n.getLength(),i)},e.getEncodedBits=function(e){if(!a.isValid(e)||e<7)throw Error(`Invalid QR Code version`);let n=e<<12;for(;t.getBCHDigit(n)-s>=0;)n^=o<<t.getBCHDigit(n)-s;return e<<12|n}})),xi=E((e=>{var t=Q(),n=1335,r=21522,i=t.getBCHDigit(n);e.getEncodedBits=function(e,a){let o=e.bit<<3|a,s=o<<10;for(;t.getBCHDigit(s)-i>=0;)s^=n<<t.getBCHDigit(s)-i;return(o<<10|s)^r}})),Si=E(((e,t)=>{var n=$();function r(e){this.mode=n.NUMERIC,this.data=e.toString()}r.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);let i=this.data.length-t;i>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,i*3+1))},t.exports=r})),Ci=E(((e,t)=>{var n=$(),r=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`.split(``);function i(e){this.mode=n.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t=0;for(;t+2<=this.data.length;t+=2){let n=r.indexOf(this.data[t])*45;n+=r.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(r.indexOf(this.data[t]),6)},t.exports=i})),wi=E(((e,t)=>{var n=$();function r(e){this.mode=n.BYTE,this.data=typeof e==`string`?new TextEncoder().encode(e):new Uint8Array(e)}r.getBitsLength=function(e){return e*8},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},t.exports=r})),Ti=E(((e,t)=>{var n=$(),r=Q();function i(e){this.mode=n.KANJI,this.data=e}i.getBitsLength=function(e){return e*13},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t=0;for(;t<this.data.length;t++){let n=r.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw Error(`Invalid SJIS character: `+this.data[t]+`
3
+ Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}},t.exports=i})),Ei=E(((e,t)=>{var n={single_source_shortest_paths:function(e,t,r){var i={},a={};a[t]=0;var o=n.PriorityQueue.make();o.push(t,0);for(var s,c,l,u,d,f,p,m,h;!o.empty();)for(l in s=o.pop(),c=s.value,u=s.cost,d=e[c]||{},d)d.hasOwnProperty(l)&&(f=d[l],p=u+f,m=a[l],h=a[l]===void 0,(h||m>p)&&(a[l]=p,o.push(l,p),i[l]=c));if(r!==void 0&&a[r]===void 0){var g=[`Could not find a path from `,t,` to `,r,`.`].join(``);throw Error(g)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,t,r){var i=n.single_source_shortest_paths(e,t,r);return n.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(e){var t=n.PriorityQueue,r={},i;for(i in e||={},t)t.hasOwnProperty(i)&&(r[i]=t[i]);return r.queue=[],r.sorter=e.sorter||t.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t!==void 0&&(t.exports=n)})),Di=E((e=>{var t=$(),n=Si(),r=Ci(),i=wi(),a=Ti(),o=yi(),s=Q(),c=Ei();function l(e){return unescape(encodeURIComponent(e)).length}function u(e,t,n){let r=[],i;for(;(i=e.exec(n))!==null;)r.push({data:i[0],index:i.index,mode:t,length:i[0].length});return r}function d(e){let n=u(o.NUMERIC,t.NUMERIC,e),r=u(o.ALPHANUMERIC,t.ALPHANUMERIC,e),i,a;return s.isKanjiModeEnabled()?(i=u(o.BYTE,t.BYTE,e),a=u(o.KANJI,t.KANJI,e)):(i=u(o.BYTE_KANJI,t.BYTE,e),a=[]),n.concat(r,i,a).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function f(e,o){switch(o){case t.NUMERIC:return n.getBitsLength(e);case t.ALPHANUMERIC:return r.getBitsLength(e);case t.KANJI:return a.getBitsLength(e);case t.BYTE:return i.getBitsLength(e)}}function p(e){return e.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}function m(e){let n=[];for(let r=0;r<e.length;r++){let i=e[r];switch(i.mode){case t.NUMERIC:n.push([i,{data:i.data,mode:t.ALPHANUMERIC,length:i.length},{data:i.data,mode:t.BYTE,length:i.length}]);break;case t.ALPHANUMERIC:n.push([i,{data:i.data,mode:t.BYTE,length:i.length}]);break;case t.KANJI:n.push([i,{data:i.data,mode:t.BYTE,length:l(i.data)}]);break;case t.BYTE:n.push([{data:i.data,mode:t.BYTE,length:l(i.data)}])}}return n}function h(e,n){let r={},i={start:{}},a=[`start`];for(let o=0;o<e.length;o++){let s=e[o],c=[];for(let e=0;e<s.length;e++){let l=s[e],u=``+o+e;c.push(u),r[u]={node:l,lastCount:0},i[u]={};for(let e=0;e<a.length;e++){let o=a[e];r[o]&&r[o].node.mode===l.mode?(i[o][u]=f(r[o].lastCount+l.length,l.mode)-f(r[o].lastCount,l.mode),r[o].lastCount+=l.length):(r[o]&&(r[o].lastCount=l.length),i[o][u]=f(l.length,l.mode)+4+t.getCharCountIndicator(l.mode,n))}}a=c}for(let e=0;e<a.length;e++)i[a[e]].end=0;return{map:i,table:r}}function g(e,o){let c,l=t.getBestModeForData(e);if(c=t.from(o,l),c!==t.BYTE&&c.bit<l.bit)throw Error(`"`+e+`" cannot be encoded with mode `+t.toString(c)+`.
4
+ Suggested mode is: `+t.toString(l));switch(c===t.KANJI&&!s.isKanjiModeEnabled()&&(c=t.BYTE),c){case t.NUMERIC:return new n(e);case t.ALPHANUMERIC:return new r(e);case t.KANJI:return new a(e);case t.BYTE:return new i(e)}}e.fromArray=function(e){return e.reduce(function(e,t){return typeof t==`string`?e.push(g(t,null)):t.data&&e.push(g(t.data,t.mode)),e},[])},e.fromString=function(t,n){let r=h(m(d(t,s.isKanjiModeEnabled())),n),i=c.find_path(r.map,`start`,`end`),a=[];for(let e=1;e<i.length-1;e++)a.push(r.table[i[e]].node);return e.fromArray(p(a))},e.rawSplit=function(t){return e.fromArray(d(t,s.isKanjiModeEnabled()))}})),Oi=E((e=>{var t=Q(),n=ci(),r=li(),i=ui(),a=di(),o=fi(),s=pi(),c=mi(),l=_i(),u=bi(),d=xi(),f=$(),p=Di();function m(e,t){let n=e.size,r=o.getPositions(t);for(let t=0;t<r.length;t++){let i=r[t][0],a=r[t][1];for(let t=-1;t<=7;t++)if(!(i+t<=-1||n<=i+t))for(let r=-1;r<=7;r++)a+r<=-1||n<=a+r||(t>=0&&t<=6&&(r===0||r===6)||r>=0&&r<=6&&(t===0||t===6)||t>=2&&t<=4&&r>=2&&r<=4?e.set(i+t,a+r,!0,!0):e.set(i+t,a+r,!1,!0))}}function h(e){let t=e.size;for(let n=8;n<t-8;n++){let t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}function g(e,t){let n=a.getPositions(t);for(let t=0;t<n.length;t++){let r=n[t][0],i=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)t===-2||t===2||n===-2||n===2||t===0&&n===0?e.set(r+t,i+n,!0,!0):e.set(r+t,i+n,!1,!0)}}function _(e,t){let n=e.size,r=u.getEncodedBits(t),i,a,o;for(let t=0;t<18;t++)i=Math.floor(t/3),a=t%3+n-8-3,o=(r>>t&1)==1,e.set(i,a,o,!0),e.set(a,i,o,!0)}function v(e,t,n){let r=e.size,i=d.getEncodedBits(t,n),a,o;for(a=0;a<15;a++)o=(i>>a&1)==1,a<6?e.set(a,8,o,!0):a<8?e.set(a+1,8,o,!0):e.set(r-15+a,8,o,!0),a<8?e.set(8,r-a-1,o,!0):a<9?e.set(8,15-a-1+1,o,!0):e.set(8,15-a-1,o,!0);e.set(r-8,8,1,!0)}function y(e,t){let n=e.size,r=-1,i=n-1,a=7,o=0;for(let s=n-1;s>0;s-=2)for(s===6&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(i,s-n)){let r=!1;o<t.length&&(r=(t[o]>>>a&1)==1),e.set(i,s-n,r),a--,a===-1&&(o++,a=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}function b(e,n,i){let a=new r;i.forEach(function(t){a.put(t.mode.bit,4),a.put(t.getLength(),f.getCharCountIndicator(t.mode,e)),t.write(a)});let o=(t.getSymbolTotalCodewords(e)-c.getTotalCodewordsCount(e,n))*8;for(a.getLengthInBits()+4<=o&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(0);let s=(o-a.getLengthInBits())/8;for(let e=0;e<s;e++)a.put(e%2?17:236,8);return x(a,e,n)}function x(e,n,r){let i=t.getSymbolTotalCodewords(n),a=i-c.getTotalCodewordsCount(n,r),o=c.getBlocksCount(n,r),s=o-i%o,u=Math.floor(i/o),d=Math.floor(a/o),f=d+1,p=u-d,m=new l(p),h=0,g=Array(o),_=Array(o),v=0,y=new Uint8Array(e.buffer);for(let e=0;e<o;e++){let t=e<s?d:f;g[e]=y.slice(h,h+t),_[e]=m.encode(g[e]),h+=t,v=Math.max(v,t)}let b=new Uint8Array(i),x=0,S,C;for(S=0;S<v;S++)for(C=0;C<o;C++)S<g[C].length&&(b[x++]=g[C][S]);for(S=0;S<p;S++)for(C=0;C<o;C++)b[x++]=_[C][S];return b}function S(e,n,r,a){let o;if(Array.isArray(e))o=p.fromArray(e);else if(typeof e==`string`){let t=n;if(!t){let n=p.rawSplit(e);t=u.getBestVersionForData(n,r)}o=p.fromString(e,t||40)}else throw Error(`Invalid data`);let c=u.getBestVersionForData(o,r);if(!c)throw Error(`The amount of data is too big to be stored in a QR Code`);if(!n)n=c;else if(n<c)throw Error(`
5
+ The chosen QR Code version cannot contain this amount of data.
6
+ Minimum version required to store current data is: `+c+`.
7
+ `);let l=b(n,r,o),d=new i(t.getSymbolSize(n));return m(d,n),h(d),g(d,n),v(d,r,0),n>=7&&_(d,n),y(d,l),isNaN(a)&&(a=s.getBestMask(d,v.bind(null,d,r))),s.applyMask(a,d),v(d,r,a),{modules:d,version:n,errorCorrectionLevel:r,maskPattern:a,segments:o}}e.create=function(e,r){if(e===void 0||e===``)throw Error(`No input text`);let i=n.M,a,o;return r!==void 0&&(i=n.from(r.errorCorrectionLevel,n.M),a=u.from(r.version),o=s.from(r.maskPattern),r.toSJISFunc&&t.setToSJISFunction(r.toSJISFunc)),S(e,a,i,o)}})),ki=E((e=>{function t(e){if(typeof e==`number`&&(e=e.toString()),typeof e!=`string`)throw Error(`Color should be defined as hex string`);let t=e.slice().replace(`#`,``).split(``);if(t.length<3||t.length===5||t.length>8)throw Error(`Invalid hex color: `+e);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),t.length===6&&t.push(`F`,`F`);let n=parseInt(t.join(``),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:n&255,hex:`#`+t.slice(0,6).join(``)}}e.getOptions=function(e){e||={},e.color||(e.color={});let n=e.margin===void 0||e.margin===null||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:r,scale:r?4:i,margin:n,color:{dark:t(e.color.dark||`#000000ff`),light:t(e.color.light||`#ffffffff`)},type:e.type,rendererOpts:e.rendererOpts||{}}},e.getScale=function(e,t){return t.width&&t.width>=e+t.margin*2?t.width/(e+t.margin*2):t.scale},e.getImageWidth=function(t,n){let r=e.getScale(t,n);return Math.floor((t+n.margin*2)*r)},e.qrToImageData=function(t,n,r){let i=n.modules.size,a=n.modules.data,o=e.getScale(i,r),s=Math.floor((i+r.margin*2)*o),c=r.margin*o,l=[r.color.light,r.color.dark];for(let e=0;e<s;e++)for(let n=0;n<s;n++){let u=(e*s+n)*4,d=r.color.light;if(e>=c&&n>=c&&e<s-c&&n<s-c){let t=Math.floor((e-c)/o),r=Math.floor((n-c)/o);d=l[+!!a[t*i+r]]}t[u++]=d.r,t[u++]=d.g,t[u++]=d.b,t[u]=d.a}}})),Ai=E((e=>{var t=ki();function n(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||={},t.height=n,t.width=n,t.style.height=n+`px`,t.style.width=n+`px`}function r(){try{return document.createElement(`canvas`)}catch{throw Error(`You need to specify a canvas element`)}}e.render=function(e,i,a){let o=a,s=i;o===void 0&&(!i||!i.getContext)&&(o=i,i=void 0),i||(s=r()),o=t.getOptions(o);let c=t.getImageWidth(e.modules.size,o),l=s.getContext(`2d`),u=l.createImageData(c,c);return t.qrToImageData(u.data,e,o),n(l,s,c),l.putImageData(u,0,0),s},e.renderToDataURL=function(t,n,r){let i=r;i===void 0&&(!n||!n.getContext)&&(i=n,n=void 0),i||={};let a=e.render(t,n,i),o=i.type||`image/png`,s=i.rendererOpts||{};return a.toDataURL(o,s.quality)}})),ji=E((e=>{var t=ki();function n(e,t){let n=e.a/255,r=t+`="`+e.hex+`"`;return n<1?r+` `+t+`-opacity="`+n.toFixed(2).slice(1)+`"`:r}function r(e,t,n){let r=e+t;return n!==void 0&&(r+=` `+n),r}function i(e,t,n){let i=``,a=0,o=!1,s=0;for(let c=0;c<e.length;c++){let l=Math.floor(c%t),u=Math.floor(c/t);!l&&!o&&(o=!0),e[c]?(s++,c>0&&l>0&&e[c-1]||(i+=o?r(`M`,l+n,.5+u+n):r(`m`,a,0),a=0,o=!1),l+1<t&&e[c+1]||(i+=r(`h`,s),s=0)):a++}return i}e.render=function(e,r,a){let o=t.getOptions(r),s=e.modules.size,c=e.modules.data,l=s+o.margin*2,u=o.color.light.a?`<path `+n(o.color.light,`fill`)+` d="M0 0h`+l+`v`+l+`H0z"/>`:``,d=`<path `+n(o.color.dark,`stroke`)+` d="`+i(c,s,o.margin)+`"/>`,f=`viewBox="0 0 `+l+` `+l+`"`,p=`<svg xmlns="http://www.w3.org/2000/svg" `+(o.width?`width="`+o.width+`" height="`+o.width+`" `:``)+f+` shape-rendering="crispEdges">`+u+d+`</svg>
8
+ `;return typeof a==`function`&&a(null,p),p}}));E((e=>{var t=si(),n=Oi(),r=Ai(),i=ji();function a(e,r,i,a,o){let s=[].slice.call(arguments,1),c=s.length,l=typeof s[c-1]==`function`;if(!l&&!t())throw Error(`Callback required as last argument`);if(l){if(c<2)throw Error(`Too few arguments provided`);c===2?(o=i,i=r,r=a=void 0):c===3&&(r.getContext&&o===void 0?(o=a,a=void 0):(o=a,a=i,i=r,r=void 0))}else{if(c<1)throw Error(`Too few arguments provided`);return c===1?(i=r,r=a=void 0):c===2&&!r.getContext&&(a=i,i=r,r=void 0),new Promise(function(t,o){try{t(e(n.create(i,a),r,a))}catch(e){o(e)}})}try{let t=n.create(i,a);o(null,e(t,r,a))}catch(e){o(e)}}e.create=n.create,e.toCanvas=a.bind(null,r.render),e.toDataURL=a.bind(null,r.renderToDataURL),e.toString=a.bind(null,function(e,t,n){return i.render(e,n)})}))(),vr.google,vr.apple;export{tt as i,Kr as n,Et as r,oi as t};
@@ -0,0 +1,3 @@
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,o)=>(o=n==null?{}:e(i(n)),l(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e),f=Array.isArray,p=Array.prototype.indexOf,m=Array.prototype.includes,h=Array.from,g=Object.defineProperty,_=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyDescriptors,y=Object.prototype,b=Array.prototype,x=Object.getPrototypeOf,S=Object.isExtensible;function ee(e){return typeof e==`function`}var C=()=>{};function te(e){for(var t=0;t<e.length;t++)e[t]()}function ne(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function re(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}var ie=1<<24,w=1024,T=2048,ae=4096,oe=8192,se=16384,ce=32768,le=1<<25,ue=65536,de=1<<18,fe=1<<19,pe=1<<20,me=1<<25,he=65536,ge=1<<21,_e=1<<22,ve=1<<23,ye=Symbol(`$state`),be=Symbol(`component`),xe=Symbol(`legacy props`),Se=Symbol(``),Ce=Symbol(`proxy path`),we=Symbol(`attributes`),Te=Symbol(`class`),Ee=Symbol(`style`),De=Symbol(`text`),Oe=Symbol(`form reset`),ke=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ae=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`),je={},E=Symbol(`uninitialized`),Me=`http://www.w3.org/1999/xhtml`,Ne=`http://www.w3.org/2000/svg`,Pe=`http://www.w3.org/1998/Math/MathML`,Fe=`@attach`;function Ie(){console.warn(`https://svelte.dev/e/derived_inert`)}function Le(e){console.warn(`https://svelte.dev/e/hydratable_missing_but_expected`)}function Re(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function ze(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function Be(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var D=!1;function O(e){D=e}var k;function A(e){if(e===null)throw Re(),je;return k=e}function j(){return A(B(k))}function Ve(e){if(D){if(B(k)!==null)throw Re(),je;k=e}}function He(e=1){if(D){for(var t=e,n=k;t--;)n=B(n);k=n}}function Ue(e=!0){for(var t=0,n=k;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else(r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=B(n);e&&n.remove(),n=i}}function We(e){if(!e||e.nodeType!==8)throw Re(),je;return e.data}function Ge(e){return e===this.v}function Ke(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function qe(e){return!Ke(e,this.v)}function Je(e){throw Error(`https://svelte.dev/e/experimental_async_required`)}function Ye(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function Xe(){throw Error(`https://svelte.dev/e/missing_context`)}function Ze(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function Qe(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function $e(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function et(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function tt(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function nt(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function rt(){throw Error(`https://svelte.dev/e/fork_discarded`)}function it(){throw Error(`https://svelte.dev/e/fork_timing`)}function at(){throw Error(`https://svelte.dev/e/get_abort_signal_outside_reaction`)}function ot(){throw Error(`https://svelte.dev/e/hydration_failed`)}function st(e){throw Error(`https://svelte.dev/e/lifecycle_legacy_only`)}function ct(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function lt(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function ut(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function dt(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function ft(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var pt=!1;function mt(){pt=!0}function ht(e,t){return e.label=t,gt(e.v,t),e}function gt(e,t){return e?.[Ce]?.(t),e}function _t(e){return typeof e==`symbol`?`Symbol(${e.description})`:typeof e==`function`?`<function>`:typeof e==`object`&&e?`<object>`:String(e)}function vt(e,t,n){let r={};return[()=>(n(r)||Xe(),e(r)),e=>t(r,e),()=>n(r)]}function yt(e){let t=e.p;for(;t!==null&&t.c===null;)t=t.p;return t?.c??null}function bt(e,t){return e===null&&Ye(t),e.c??=new Map(yt(e)||void 0)}var M=null;function xt(e){M=e}function St(){return vt(Ct,wt,Tt)}function Ct(e){return bt(M,`getContext`).get(e)}function wt(e,t){return bt(M,`setContext`).set(e,t),t}function Tt(e){return bt(M,`hasContext`).has(e)}function Et(){return bt(M,`getAllContexts`)}function Dt(e,t=!1,n){M={p:M,i:!1,c:null,e:null,s:e,x:null,r:q,l:pt&&!t?{s:null,u:null,$:[]}:null}}function Ot(e){var t=M,n=t.e;if(n!==null){t.e=null;for(var r of n)br(r)}return e!==void 0&&(t.x=e),t.i=!0,M=t.p,kt(e)}function kt(e={}){return g(e,be,{value:!0}),e}function At(){return!pt||M!==null&&M.l===null}var jt=[];function Mt(){var e=jt;jt=[],te(e)}function N(e){if(jt.length===0&&!Cn){var t=jt;queueMicrotask(()=>{t===jt&&Mt()})}jt.push(e)}function Nt(){for(;jt.length>0;)Mt()}var Pt=~(T|ae|w);function P(e,t){e.f=e.f&Pt|t}function Ft(e){e.f&512||e.deps===null?P(e,w):P(e,ae)}function It(e){if(e!==null)for(let t of e)t.f&2&&t.f&65536&&(t.f^=he,It(t.deps))}function Lt(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),It(e.deps),P(e,w)}function Rt(e,t,n){if(e==null)return t(void 0),n&&n(void 0),C;let r=ui(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}var zt=[];function Bt(e,t){return{subscribe:Vt(e,t).subscribe}}function Vt(e,t=C){let n=null,r=new Set;function i(t){if(Ke(e,t)&&(e=t,n)){let t=!zt.length;for(let t of r)t[1](),zt.push(t,e);if(t){for(let e=0;e<zt.length;e+=2)zt[e][0](zt[e+1]);zt.length=0}}}function a(t){i(t(e))}function o(o,s=C){let c=[o,s];return r.add(c),r.size===1&&(n=t(i,a)||C),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}function Ht(e,t,n){let r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw Error(`derived() expects stores as input, got a falsy value`);let a=t.length<2;return Bt(n,(e,n)=>{let o=!1,s=[],c=0,l=C,u=()=>{if(c)return;l();let i=t(r?s[0]:s,e,n);a?e(i):l=typeof i==`function`?i:C},d=i.map((e,t)=>Rt(e,e=>{s[t]=e,c&=~(1<<t),o&&u()},()=>{c|=1<<t}));return o=!0,u(),function(){te(d),l(),o=!1}})}function Ut(e){let t;return Rt(e,e=>t=e)(),t}var Wt=!1,Gt=!1,Kt=Symbol(`unmounted`);function qt(e,t,n){let r=n[t]??={store:null,source:Gn(void 0),unsubscribe:C};if(r.store!==e&&!(Kt in n)){if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=C;else{var i=!0;r.unsubscribe=Rt(e,e=>{i?r.source.v=e:L(r.source,e)}),i=!1}}return e&&Kt in n?Ut(e):Q(r.source)}function Jt(e,t){return Xt(e,t),t}function Yt(){let e={};function t(){vr(()=>{for(var t in e)e[t].unsubscribe();g(e,Kt,{enumerable:!1,value:!0})})}return[e,t]}function Xt(e,t){Wt=!0;try{e.set(t)}finally{Wt=!1}}function Zt(){Gt=!0}function Qt(e){var t=Gt;try{return Gt=!1,[e(),Gt]}finally{Gt=t}}function $t(e,t){if(t){let t=document.body;e.autofocus=!0,N(()=>{document.activeElement===t&&e.focus()})}}function en(e){D&&z(e)!==null&&lr(e)}var tn=!1;function nn(){tn||(tn=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[Oe]?.()})},{capture:!0}))}function rn(e){var t=W,n=q;K(null),J(null);try{return e()}finally{K(t),J(n)}}function an(e,t,n,r=n){e.addEventListener(t,()=>rn(n));let i=e[Oe];e[Oe]=i?()=>{i(),r(!0)}:()=>r(!0),nn()}function on(e,t,n,r){let i=At()?un:mn;var a=e.filter(e=>!e.settled),o=t.map(i);if(n.length===0&&a.length===0){r(o);return}var s=q,c=sn(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function u(e){if(!(s.f&16384)){c();try{r([...o,...e])}catch(e){mr(e,s)}cn()}}var d=ln();if(n.length===0){l.then(()=>u([])).finally(d);return}function f(){Promise.all(n.map(e=>fn(e))).then(u).catch(e=>mr(e,s)).finally(d)}l?l.then(()=>{c(),f(),cn()}):f()}function sn(){var e=q,t=W,n=M,r=F;return function(i=!0){J(e),K(t),xt(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function cn(e=!0){J(null),K(null),xt(null),e&&F?.deactivate()}function ln(){var e=q,t=e.b,n=F,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}function un(e){var t=2|T;return q!==null&&(q.f|=fe),{ctx:M,deps:null,effects:null,equals:Ge,f:t,fn:e,reactions:null,rv:0,v:E,wv:0,parent:q,ac:null}}var dn=Symbol(`obsolete`);function fn(e,t,n){let r=q;r===null&&Ze();var i=void 0,a=Un(E),o=!W,s=new Set;return Tr(()=>{var t=q,n=ne();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==ke&&n.reject(e)}).finally(cn)}catch(e){n.reject(e),cn()}var c=F;if(o){if(t.f&32768)var l=ln();if(r.b?.is_rendered())c.async_deriveds.get(t)?.reject(dn);else for(let e of s.values())e.reject(dn);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==dn&&(c.activate(),t?(a.f|=ve,Kn(a,t)):(a.f&8388608&&(a.f^=ve),Kn(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),vr(()=>{for(let e of s)e.reject(dn)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function pn(e){let t=un(e);return Kr(t),t}function mn(e){let t=un(e);return t.equals=qe,t}function hn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)U(t[n])}}function gn(e){var t,n=q,r=e.parent;if(!Ur&&r!==null&&e.v!==E&&r.f&24576)return Ie(),e.v;J(r);try{e.f&=~he,hn(e),t=ti(e)}finally{J(n)}return t}function _n(e){var t=gn(e);if(!e.equals(t)&&(e.wv=Qr(),(!F?.is_fork||e.deps===null)&&(F===null?e.v=t:(F.capture(e,t,!0),xn?.capture(e,t,!0)),e.deps===null))){P(e,w);return}Ur||(I===null?Ft(e):(_r()||F?.is_fork)&&I.set(e,t))}function vn(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac!==null&&rn(()=>{t.ac.abort(ke),t.ac=null}),t.fn!==null&&(t.teardown=C),ii(t,0),Mr(t))}function yn(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&ai(t)}var bn=null,F=null,xn=null,I=null,Sn=null,Cn=!1,wn=!1,Tn=null,En=null,Dn=0,On=1,kn=class e{id=On++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;#r=new Set;#i=new Set;#a=0;#o=new Map;#s=null;#c=[];#l=[];#u=new Set;#d=new Set;#f=new Map;#p=new Set;is_fork=!1;#m=!1;constructor(){bn===null?bn=this:(bn.#n=this,this.#t=bn),bn=this}#h(){if(this.is_fork)return!0;for(let n of this.#o.keys()){for(var e=n,t=!1;e.parent!==null;){if(this.#f.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#f.has(e)||this.#f.set(e,{d:[],m:[]}),this.#p.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#f.get(e);if(n){this.#f.delete(e);for(var r of n.d)P(r,T),t(r);for(r of n.m)P(r,ae),t(r)}this.#p.add(e)}#g(){this.#e=!0,Dn++>1e3&&(this.#x(),jn());for(let e of this.#u)this.#d.delete(e),P(e,T),this.schedule(e);for(let e of this.#d)P(e,ae),this.schedule(e);let t=this.#c;this.#c=[],this.apply();var n=Tn=[],r=[],i=En=[];for(let e of t)try{this.#_(e,n,r)}catch(t){throw Ln(e),this.#h()||this.discard(),t}if(F=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(Tn=null,En=null,this.#h()){this.#b(r),this.#b(n);for(let[e,t]of this.#f)In(e,t);i.length>0&&F.#g();return}let o=this.#v();if(o){this.#b(r),this.#b(n),o.#y(this);return}this.#u.clear(),this.#d.clear();for(let e of this.#r)e(this);this.#r.clear(),xn=this,Nn(r),Nn(n),xn=null,this.#s?.resolve();var s=F;if(this.#a===0&&(this.#c.length===0||s!==null)&&this.#x(),this.#c.length>0){if(s!==null){let e=s;e.#c.push(...this.#c.filter(t=>!e.#c.includes(t)))}else s=this}s!==null&&(Bn.clear(),s.#g())}#_(e,t,n){e.f^=w;for(var r=e.first;r!==null;){var i=r.f,a=!!(i&96);if(!(a&&i&1024||i&8192||this.#f.has(r))&&r.fn!==null){a?r.f^=w:i&4?t.push(r):$r(r)&&(i&16&&this.#d.add(r),ai(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#v(){for(var e=this.#t;e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=e.#t}return null}#y(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve).catch(e.reject)}e.async_deriveds.clear(),this.transfer_effects(e.#u,e.#d);let t=e=>{var n=e.reactions;if(n!==null&&!(e.f&2&&!(e.f&6144)))for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(this.#d.delete(i),P(i,T),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#x(),F=this,this.#g()}#b(e){for(var t=0;t<e.length;t+=1)Lt(e[t],this.#u,this.#d)}capture(e,t,n=!1){e.v!==E&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),I?.set(e,t)),this.is_fork||(e.v=t)}activate(){F=this}deactivate(){F=null,I=null}flush(){try{wn=!0,F=this,this.#g()}finally{Dn=0,Sn=null,Tn=null,En=null,wn=!1,F=null,I=null,Bn.clear()}}discard(){for(let e of this.#i)e(this);this.#i.clear();for(let e of this.async_deriveds.values())e.reject(dn);this.#x(),this.#s?.resolve()}register_created_effect(e){this.#l.push(e)}increment(e,t){if(this.#a+=1,e){let e=this.#o.get(t)??0;this.#o.set(t,e+1)}}decrement(e,t){if(--this.#a,e){let e=this.#o.get(t)??0;e===1?this.#o.delete(t):this.#o.set(t,e-1)}this.#m||(this.#m=!0,N(()=>{this.#m=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)this.#u.add(t);for(let e of t)this.#d.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#i.add(e)}settled(){return(this.#s??=ne()).promise}static ensure(){if(F===null){let t=F=new e;!wn&&!Cn&&N(()=>{t.#e||t.flush()})}return F}apply(){I=null}schedule(e){if(Sn=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(Tn!==null&&t===q&&(W===null||!(W.f&2))&&!Wt)return;if(n&96){if(!(n&1024))return;t.f^=w}}this.#c.push(t)}#x(){if(this.linked){var e=this.#t,t=this.#n;e===null||(e.#n=t),t===null?bn=e:t.#t=e,this.linked=!1}}};function An(e){var t=Cn;Cn=!0;try{var n;for(e&&(F!==null&&!F.is_fork&&F.flush(),n=e());;){if(Nt(),F===null)return n;F.flush()}}finally{Cn=t}}function jn(){try{nt()}catch(e){mr(e,Sn)}}var Mn=null;function Nn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&$r(r)&&(Mn=new Set,ai(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Fr(r),Mn?.size>0)){Bn.clear();for(let e of Mn){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)Mn.has(n)&&(Mn.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||ai(n)}}Mn.clear()}}Mn=null}}function Pn(e,t){if(e.reactions!==null)for(let n of e.reactions){let e=n.f;e&2?Pn(n,t):e&131072&&(P(n,T),t.add(n))}}function Fn(e){F.schedule(e)}function In(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),P(e,w);for(var n=e.first;n!==null;)In(n,t),n=n.next}}function Ln(e){P(e,w);for(var t=e.first;t!==null;)Ln(t),t=t.next}function Rn(e){Je(`fork`),F!==null&&it();var t=kn.ensure();t.is_fork=!0,I=new Map;var n=!1,r=t.settled();return An(e),{commit:async()=>{if(n){await r;return}t.linked||rt(),n=!0,t.is_fork=!1;for(var[e,[i]]of t.current)e.v=i,e.wv=Qr();An(()=>{var e=new Set;for(var n of t.current.keys())Pn(n,e);Vn(e),qn()}),t.flush(),await r},discard:()=>{for(var e of t.current.keys())e.wv=Qr();!n&&t.linked&&t.discard()}}}var zn=new Set,Bn=new Map;function Vn(e){zn=e}var Hn=!1;function Un(e,t){return{f:0,v:e,reactions:null,equals:Ge,rv:0,wv:0}}function Wn(e,t){let n=Un(e,t);return Kr(n),n}function Gn(e,t=!1,n=!0){let r=Un(e);return t||(r.equals=qe),pt&&n&&M!==null&&M.l!==null&&(M.l.s??=[]).push(r),r}function L(e,t,n=!1){return W!==null&&(!G||W.f&131072)&&At()&&W.f&4325394&&(Gr===null||!Gr.has(e))&&dt(),Kn(e,n?Xn(t):t,En)}function Kn(e,t,n=null){if(!e.equals(t)){Ur?Bn.set(e,t):Bn.has(e)||Bn.set(e,e.v);var r=kn.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&gn(t),I===null&&Ft(t)}e.wv=Qr(),Yn(e,T,n),At()&&q!==null&&q.f&1024&&!(q.f&96)&&(Z===null?qr([e]):Z.push(e)),!r.is_fork&&zn.size>0&&!Hn&&qn()}return t}function qn(){Hn=!1;for(let e of zn){e.f&1024&&P(e,ae);let t;try{t=$r(e)}catch{t=!0}t&&ai(e)}zn.clear()}function Jn(e){L(e,e.v+1)}function Yn(e,t,n){var r=e.reactions;if(r!==null)for(var i=At(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(i||s!==q){var l=(c&T)===0;if(l&&P(s,t),c&131072)zn.add(s);else if(c&2){var u=s;I?.delete(u),c&65536||(c&512&&(q===null||!(q.f&2097152))&&(s.f|=he),Yn(u,ae,n))}else if(l){var d=s;c&16&&Mn!==null&&Mn.add(d),n===null?Fn(d):n.push(d)}}}}function Xn(e){if(typeof e!=`object`||!e||ye in e||be in e)return e;let t=x(e);if(t!==y&&t!==b)return e;var n=new Map,r=f(e),i=Wn(0),a=null,o=Xr,s=e=>{if(Xr===o)return e();var t=W,n=Xr;K(null),Zr(o);var r=e();return K(t),Zr(n),r};return r&&n.set(`length`,Wn(e.length,a)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&lt();var i=n.get(t);return i===void 0?s(()=>{var e=Wn(r.value,a);return n.set(t,e),e}):L(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>Wn(E,a));n.set(t,e),Jn(i)}}else L(r,E),Jn(i);return!0},get(t,r,i){if(r===ye)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||_(t,r)?.writable)&&(o=s(()=>Wn(Xn(c?t[r]:E),a)),n.set(r,o)),o!==void 0){var l=Q(o);return l===E?void 0:l}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var i=n.get(t);i&&(r.value=Q(i))}else if(r===void 0){var a=n.get(t),o=a?.v;if(a!==void 0&&o!==E)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(e,t){if(t===ye)return!0;var r=n.get(t),i=r!==void 0&&r.v!==E||Reflect.has(e,t);return(r!==void 0||q!==null&&(!i||_(e,t)?.writable))&&(r===void 0&&(r=s(()=>Wn(i?Xn(e[t]):E,a)),n.set(t,r)),Q(r)===E)?!1:i},set(e,t,o,c){var l=n.get(t),u=t in e;if(r&&t===`length`)for(var d=o;d<l.v;d+=1){var f=n.get(d+``);f===void 0?d in e&&(f=s(()=>Wn(E,a)),n.set(d+``,f)):L(f,E)}if(l===void 0)(!u||_(e,t)?.writable)&&(l=s(()=>Wn(void 0,a)),L(l,Xn(o)),n.set(t,l));else{u=l.v!==E;var p=s(()=>Xn(o));L(l,p)}var m=Reflect.getOwnPropertyDescriptor(e,t);if(m?.set&&m.set.call(c,o),!u){if(r&&typeof t==`string`){var h=n.get(`length`),g=Number(t);Number.isInteger(g)&&g>=h.v&&L(h,g+1)}Jn(i)}return!0},ownKeys(e){Q(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==E});for(var[r,a]of n)a.v!==E&&!(r in e)&&t.push(r);return t},setPrototypeOf(){ut()}})}function Zn(e){try{if(typeof e==`object`&&e&&ye in e)return e[ye]}catch{}return e}function Qn(e,t){return Object.is(Zn(e),Zn(t))}var $n,er,tr,nr,rr;function ir(){if($n===void 0){$n=window,er=document,tr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;nr=_(t,`firstChild`).get,rr=_(t,`nextSibling`).get,S(e)&&(e[Te]=void 0,e[we]=null,e[Ee]=void 0,e.__e=void 0),S(n)&&(n[De]=void 0)}}function R(e=``){return document.createTextNode(e)}function z(e){return nr.call(e)}function B(e){return rr.call(e)}function ar(e,t){if(!D)return z(e);var n=z(k);if(n===null)n=k.appendChild(R());else if(t&&n.nodeType!==3){var r=R();return n?.before(r),A(r),r}return t&&fr(n),A(n),n}function or(e,t=!1){if(!D){var n=z(e);return n instanceof Comment&&n.data===``?B(n):n}if(t){if(k?.nodeType!==3){var r=R();return k?.before(r),A(r),r}fr(k)}return k}function sr(e,t=!1){if(!D)return z(e);var n=ar(e,t);return Ve(e),n}function cr(e,t=1,n=!1){let r=D?k:e;for(var i;t--;)i=r,r=B(r);if(!D)return r;if(n){if(r?.nodeType!==3){var a=R();return r===null?i?.after(a):r.before(a),A(a),a}fr(r)}return A(r),r}function lr(e){e.textContent=``}function ur(){return!1}function dr(e,t,n){return t==null||t===`http://www.w3.org/1999/xhtml`?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function fr(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function pr(e){var t=q;if(t===null)return W.f|=ve,e;if(!(t.f&32768)&&!(t.f&4))throw e;mr(e,t)}function mr(e,t){if(!(t!==null&&t.f&16384)){for(;t!==null;){if(t.f&128&&!(t.f&33570816)){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}}function hr(e){q===null&&(W===null&&tt(e),et()),Ur&&$e(e)}function gr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function V(e,t){var n=q;n!==null&&n.f&8192&&(e|=oe);var r={ctx:M,deps:null,nodes:null,f:e|T|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};F?.register_created_effect(r);var i=r;if(e&4)Tn===null?kn.ensure().schedule(r):Tn.push(r);else if(t!==null){try{ai(r)}catch(e){throw U(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ue))}if(i!==null&&(i.parent=n,n!==null&&gr(i,n),W!==null&&W.f&2&&!(e&64))){var a=W;(a.effects??=[]).push(i)}return r}function _r(){return W!==null&&!G}function vr(e){let t=V(8,null);return P(t,w),t.teardown=e,t}function yr(e){hr(`$effect`);var t=q.f;if(!W&&t&32&&M!==null&&!M.i){var n=M;(n.e??=[]).push(e)}else return br(e)}function br(e){return V(4|pe,e)}function xr(e){return hr(`$effect.pre`),V(8|pe,e)}function Sr(e){kn.ensure();let t=V(64|fe,e);return()=>{U(t)}}function Cr(e){kn.ensure();let t=V(64|fe,e);return(e={})=>new Promise(n=>{e.outro?Ir(t,()=>{U(t),n(void 0)}):(U(t),n(void 0))})}function wr(e){return V(4,e)}function Tr(e){return V(_e|fe,e)}function Er(e,t=0){return V(8|t,e)}function Dr(e,t=[],n=[],r=[]){on(r,t,n,t=>{V(8,()=>{e(...t.map(Q))})})}function Or(e,t=[],n=[],r=[]){on(r,t,n,t=>{V(4,()=>e(...t.map(Q)))})}function kr(e,t=0){return V(16|t,e)}function Ar(e,t=0){return V(ie|t,e)}function H(e){return V(32|fe,e)}function jr(e){var t=e.teardown;if(t!==null){let n=Ur,r=W;Wr(!0),K(null);try{t.call(null)}catch(t){mr(t,e.parent)}finally{Wr(n),K(r)}}}function Mr(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&rn(()=>{e.abort(ke)});var r=n.next;n.f&64?n.parent=null:U(n,t),n=r}}function Nr(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||U(t),t=n}}function U(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Pr(e.nodes.start,e.nodes.end),n=!0),e.f|=le,Mr(e,t&&!n),ii(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();jr(e),e.f^=le,e.f|=se;var i=e.parent;i!==null&&i.first!==null&&Fr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Pr(e,t){for(;e!==null;){var n=e===t?null:B(e);e.remove(),e=n}}function Fr(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Ir(e,t,n=!0){var r=[];e.f|=256,Lr(e,r,!0);var i=()=>{n&&U(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Lr(e,t,n){if(!(e.f&8192)){e.f^=oe;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=!!(i.f&65536)||!!(i.f&32)&&!!(e.f&16);Lr(i,t,o?n:!1)}i=a}}}function Rr(e){e.f&=-257,zr(e,!0)}function zr(e,t){if(!(e.f&256)&&e.f&8192){e.f^=oe,e.f&1024||(P(e,T),kn.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=!!(n.f&65536)||!!(n.f&32);zr(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Br(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:B(n);t.append(n),n=i}}var Vr=null,Hr=!1,Ur=!1;function Wr(e){Ur=e}var W=null,G=!1;function K(e){W=e}var q=null;function J(e){q=e}var Gr=null;function Kr(e){W!==null&&(Gr??=new Set).add(e)}var Y=null,X=0,Z=null;function qr(e){Z=e}var Jr=1,Yr=0,Xr=Yr;function Zr(e){Xr=e}function Qr(){return++Jr}function $r(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~he),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if($r(a)&&_n(a),a.wv>e.wv)return!0}t&512&&I===null&&P(e,w)}return!1}function ei(e,t,n=!0){var r=e.reactions;if(r!==null&&!(Gr!==null&&Gr.has(e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?ei(a,t,!1):t===a&&(n?P(a,T):a.f&1024&&P(a,ae),Fn(a))}}function ti(e){var t=Y,n=X,r=Z,i=W,a=Gr,o=M,s=G,c=Xr,l=e.f;Y=null,X=0,Z=null,W=l&96?null:e,Gr=null,xt(e.ctx),G=!1,Xr=++Yr,e.ac!==null&&(rn(()=>{e.ac.abort(ke)}),e.ac=null);try{e.f|=ge;var u=e.fn,d=u();e.f|=ce;var f=ni(e);if(At()&&Z!==null&&!G&&f!==null&&!(e.f&6146))for(var p=0;p<Z.length;p++)ei(Z[p],e);if(i!==null&&i!==e){if(Yr++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Yr;if(t!==null)for(let e of t)e.rv=Yr;Z!==null&&(r===null?r=Z:r.push(...Z))}return e.f&8388608&&(e.f^=ve),d}catch(t){return ni(e),pr(t)}finally{e.f^=ge,Y=t,X=n,Z=r,W=i,Gr=a,xt(o),G=s,Xr=c}}function ni(e){var t=e.deps,n=F?.is_fork;if(Y!==null){var r;if(n||ii(e,X),t!==null&&X>0)for(t.length=X+Y.length,r=0;r<Y.length;r++)t[X+r]=Y[r];else e.deps=t=Y;if(_r()&&e.f&512)for(r=X;r<t.length;r++)(t[r].reactions??=[]).push(e)}else!n&&t!==null&&X<t.length&&(ii(e,X),t.length=X);return t}function ri(e,t){let n=t.reactions;if(n!==null){var r=p.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(Y===null||!m.call(Y,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~he),a.v!==E&&Ft(a),a.ac!==null&&rn(()=>{a.ac.abort(ke),a.ac=null,P(a,T)}),vn(a),ii(a,0)}}function ii(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ri(e,n[r])}function ai(e){var t=e.f;if(!(t&16384)){P(e,w);var n=q,r=Hr;q=e,Hr=!(t&96);try{t&16777232?Nr(e):Mr(e),jr(e);var i=ti(e);e.teardown=typeof i==`function`?i:null,e.wv=Jr}finally{Hr=r,q=n}}}async function oi(){await Promise.resolve(),An()}function si(){return kn.ensure().settled()}function Q(e){var t=!!(e.f&2);if(Vr?.add(e),W!==null&&!G&&!(q!==null&&q.f&16384)&&(Gr===null||!Gr.has(e))){var n=W.deps;if(W.f&2097152)e.rv<Yr&&(e.rv=Yr,Y===null&&n!==null&&n[X]===e?X++:Y===null?Y=[e]:Y.push(e));else{W.deps??=[],m.call(W.deps,e)||W.deps.push(e);var r=e.reactions;r===null?e.reactions=[W]:m.call(r,W)||r.push(W)}}if(Ur&&Bn.has(e))return Bn.get(e);if(t){var i=e;if(Ur){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||li(i))&&(a=gn(i)),Bn.set(i,a),a}var o=!(i.f&512)&&!G&&W!==null&&(Hr||!!(W.f&512)),s=(i.f&ce)===0;$r(i)&&(o&&(i.f|=512),_n(i)),o&&!s&&(yn(i),ci(i))}if(I?.has(e))return I.get(e);if(e.f&8388608)throw e.v;return e.v}function ci(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(yn(t),ci(t))}function li(e){if(e.v===E)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Bn.has(t)||t.f&2&&li(t))return!0;return!1}function ui(e){var t=G;try{return G=!0,e()}finally{G=t}}function di(){return Symbol(Fe)}function fi(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}var pi=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`];function mi(e){return pi.includes(e)}var hi=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`),gi={formnovalidate:`formNoValidate`,ismap:`isMap`,nomodule:`noModule`,playsinline:`playsInline`,readonly:`readOnly`,defaultvalue:`defaultValue`,defaultchecked:`defaultChecked`,srcobject:`srcObject`,novalidate:`noValidate`,allowfullscreen:`allowFullscreen`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`};function _i(e){return e=e.toLowerCase(),gi[e]??e}[...hi];var vi=[`touchstart`,`touchmove`];function yi(e){return vi.includes(e)}var bi=[`textarea`,`script`,`style`,`title`];function xi(e){return bi.includes(e)}var Si=Symbol(`events`),Ci=new Set,wi=new Set;function Ti(e,t,n,r={}){function i(e){if(r.capture||Mi.call(t,e),!e.cancelBubble)return rn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?N(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Ei(e,t,n,r={}){var i=Ti(t,e,n,r);return()=>{e.removeEventListener(t,i,r)}}function Di(e,t,n,r,i){var a={capture:r,passive:i},o=Ti(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&vr(()=>{t.removeEventListener(e,o,a)})}function Oi(e,t,n){(t[Si]??={})[e]=n}function ki(e){for(var t=0;t<e.length;t++)Ci.add(e[t]);for(var n of wi)n(e)}var Ai=null,ji=!1;function Mi(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Ai=e,ji||(ji=!0,setTimeout(()=>{ji=!1,Ai=null}));var o=0,s=Ai===e&&e[Si];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Si]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){g(e,`currentTarget`,{configurable:!0,get(){return a||n}});var u=W,d=q;K(null),J(null);try{for(var f,p=[];a!==null&&a!==t;){try{var m=a[Si]?.[r];m!=null&&(!a.disabled||e.target===a)&&m.call(a,e)}catch(e){f?p.push(e):f=e}if(e.cancelBubble)break;o++,a=o<i.length?i[o]:null}if(f){for(let e of p)queueMicrotask(()=>{throw e});throw f}}finally{e[Si]=t,delete e.currentTarget,K(u),J(d)}}}var Ni=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function Pi(e){return Ni?.createHTML(e)??e}function Fi(e){var t=dr(`template`);return t.innerHTML=Pi(e.replaceAll(`<!>`,`<!---->`)),t.content}function $(e,t){var n=q;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Ii(e,t){var n=!!(t&1),r=!!(t&2),i,a=!e.startsWith(`<!>`);return()=>{if(D)return $(k,null),k;i===void 0&&(i=Fi(a?e:`<!>`+e),n||(i=z(i)));var t=r||tr?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=z(t),s=t.lastChild;$(o,s)}else $(t,t);return t}}function Li(e,t,n=`svg`){var r=!e.startsWith(`<!>`),i=!!(t&1),a=`<${n}>${r?e:`<!>`+e}</${n}>`,o;return()=>{if(D)return $(k,null),k;if(!o){var e=z(Fi(a));if(i)for(o=document.createDocumentFragment();z(e);)o.appendChild(z(e));else o=z(e)}var t=o.cloneNode(!0);if(i){var n=z(t),r=t.lastChild;$(n,r)}else $(t,t);return t}}function Ri(e,t){return Li(e,t,`svg`)}function zi(e=``){if(!D){var t=R(e+``);return $(t,t),t}var n=k;return n.nodeType===3?fr(n):(n.before(n=R()),A(n)),$(n,n),n}function Bi(){if(D)return $(k,null),k;var e=document.createDocumentFragment(),t=document.createComment(``),n=R();return e.append(t,n),$(t,n),e}function Vi(e,t){if(D){var n=q;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=k),j();return}e!==null&&e.before(t)}function Hi(){if(D&&k&&k.nodeType===8&&k.textContent?.startsWith(`$`)){let e=k.textContent.substring(1);return j(),e}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}function Ui(e){let t=0,n=Un(0),r;return()=>{_r()&&(Q(n),Er(()=>(t===0&&(r=ui(()=>e(()=>Jn(n)))),t+=1,()=>{N(()=>{--t,t===0&&(r?.(),r=void 0,Jn(n))})})))}}var Wi=ue|fe;function Gi(e,t,n,r){new Ki(e,t,n,r)}var Ki=class{parent;is_pending=!1;transform_error;#e;#t=D?k:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=Ui(()=>(this.#m=Un(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=q;t.b=this,t.f|=128,n(e)},this.parent=q.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=kr(()=>{if(D){let e=this.#t;j();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#y():this.#g()}else this.#b()},Wi),D&&(this.#e=k)}#g(){try{this.#a=H(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed,{reset:n,invoke_onerror:r}=this.#v(e);N(r),t&&(this.#s=H(()=>{t(this.#e,()=>e,()=>n)}))}#v(e){var t=!1,n=!1;let r=()=>{if(t){Be();return}t=!0,n&&ft(),this.#s!==null&&Ir(this.#s,()=>{this.#s=null}),this.#S(()=>{this.#b()})};return{reset:r,invoke_onerror:()=>{try{n=!0,this.#n.onerror?.(e,r),n=!1}catch(e){mr(e,this.#i&&this.#i.parent)}}}}#y(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=H(()=>e(this.#e)),N(()=>{var e=this.#c=document.createDocumentFragment(),t=R(),n=!1;if(e.append(t),this.#a=this.#S(()=>{try{return H(()=>this.#r(t))}catch(e){try{this.error(e),n=!0}catch(e){mr(e,this.#i.parent)}return null}}),this.#a===null){this.#c=null,n&&this.#x(F);return}this.#u===0&&(this.#e.before(e),this.#c=null,Ir(this.#o,()=>{this.#o=null}),this.#x(F))}))}#b(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=H(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Br(this.#a,e);let t=this.#n.pending;this.#o=H(()=>t(this.#e))}else this.#x(F)}catch(e){this.error(e)}}#x(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Lt(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#S(e){var t=q,n=W,r=M;J(this.#i),K(this.#i),xt(this.#i.ctx);try{return kn.ensure(),e()}finally{J(t),K(n),xt(r)}}#C(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#C(e,t);return}this.#u+=e,this.#u===0&&(this.#x(t),this.#o&&Ir(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#C(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,N(()=>{this.#d=!1,this.#m&&Kn(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),Q(this.#m)}error(e){if(!this.#n.onerror&&!this.#n.failed)throw e;F?.is_fork?(this.#a&&F.skip_effect(this.#a),this.#o&&F.skip_effect(this.#o),this.#s&&F.skip_effect(this.#s),F.oncommit(()=>{this.#w(e)})):this.#w(e)}#w(e){this.#a&&=(U(this.#a),null),this.#o&&=(U(this.#o),null),this.#s&&=(U(this.#s),null),D&&(A(this.#t),He(),A(Ue()));let t=this.#n.failed,n=e=>{let{reset:n,invoke_onerror:r}=this.#v(e);r(),t&&(this.#s=this.#S(()=>{try{return H(()=>{var r=q;r.b=this,r.f|=128,t(this.#e,()=>e,()=>n)})}catch(e){return mr(e,this.#i.parent),null}}))};N(()=>{var t;try{t=this.transform_error(e)}catch(e){mr(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(n,e=>mr(e,this.#i&&this.#i.parent)):n(t)})}};function qi(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[De]??=e.nodeValue)&&(e[De]=n,e.nodeValue=`${n}`)}function Ji(e,t){return Zi(e,t)}function Yi(e,t){ir(),t.intro=t.intro??!1;let n=t.target,r=D,i=k;try{for(var a=z(n);a&&(a.nodeType!==8||a.data!==`[`);)a=B(a);if(!a)throw je;O(!0),A(a);let r=Zi(e,{...t,anchor:a});return O(!1),r}catch(r){if(r instanceof Error&&r.message.split(`
2
+ `).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw r;return r!==je&&console.warn(`Failed to hydrate: `,r),t.recover===!1&&ot(),ir(),lr(n),O(!1),Ji(e,t)}finally{O(r),A(i)}}var Xi=new Map;function Zi(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0,transformError:s}){ir();var c=void 0,l=Cr(()=>{var o=n??t.appendChild(R());Gi(o,{pending:()=>{}},t=>{Dt({});var n=M;if(a&&(n.c=a),i&&(r.$$events=i),D&&$(t,null),c=e(t,r)||kt(),D&&(q.nodes.end=k,k===null||k.nodeType!==8||k.data!==`]`))throw Re(),je;Ot()},s);var l=new Set,u=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!l.has(r)){l.add(r);var i=yi(r);for(let e of[t,document]){var a=Xi.get(e);a===void 0&&(a=new Map,Xi.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,Mi,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return u(h(Ci)),wi.add(u),()=>{for(var e of l)for(let n of[t,document]){var r=Xi.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,Mi),r.delete(e),r.size===0&&Xi.delete(n)):r.set(e,i)}wi.delete(u),o!==n&&o.parentNode?.removeChild(o)}});return Qi.set(c,l),c}var Qi=new WeakMap;function $i(e,t){let n=Qi.get(e);return n?(Qi.delete(e),n(t)):Promise.resolve()}var ea=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)Rr(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(Rr(r.effect),this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(U(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Br(r,t),t.append(R()),this.#n.set(e,{effect:r,fragment:t})}else U(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),Ir(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(U(n.effect),this.#n.delete(e))};ensure(e,t){var n=F,r=ur();if(t&&!this.#t.has(e)&&!this.#n.has(e)){if(r){var i=document.createDocumentFragment(),a=R();i.append(a),this.#n.set(e,{effect:H(()=>t(a)),fragment:i})}else this.#t.set(e,H(()=>t(this.anchor)))}if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else D&&(this.anchor=k),this.#a(n)}};function ta(e,t,n=!1){var r;D&&(r=k,j());var i=new ea(e),a=n?ue:0;function o(e,t){if(D){var n=We(r);if(e!==parseInt(n.substring(1))){var a=Ue();A(a),i.anchor=a,O(!1),i.ensure(e,t),O(!0);return}}i.ensure(e,t)}kr(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}var na=Symbol(`NaN`);function ra(e,t,n){D&&j();var r=new ea(e),i=!At();kr(()=>{var e=t();e!==e&&(e=na),i&&typeof e==`object`&&e&&(e={}),r.ensure(e,n)})}function ia(e,t){return t}function aa(e,t,n){for(var r=[],i=t.length,a,o=t.length,s=0;s<i;s++){let n=t[s];Ir(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;oa(e,h(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else--o},!1)}if(o===0){var c=r.length===0&&n!==null&&e.pending.size===0;if(c){var l=n,u=l.parentNode;lr(u),u.append(l),e.items.clear()}oa(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function oa(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=me,Br(a,document.createDocumentFragment())):U(t[i],n)}}var sa;function ca(e,t,n,r,i,a=null){var o=e,s=new Map;if(t&4){var c=e;o=D?A(z(c)):c.appendChild(R())}D&&j();var l=null,u=mn(()=>{var e=n();return f(e)?e:e==null?[]:h(e)}),d,p=new Map,m=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=l,ua(v,d,o,t,r),l!==null&&(d.length===0?l.f&33554432?(l.f^=me,fa(l,null,o)):Rr(l):Ir(l,()=>{l=null})))}function _(e){v.pending.delete(e)}var v={effect:kr(()=>{d=Q(u);var e=d.length;let c=!1;D&&We(o)===`[!`!=(e===0)&&(o=Ue(),A(o),O(!1),c=!0);for(var f=new Set,h=F,v=ur(),y=0;y<e;y+=1){D&&k.nodeType===8&&k.data===`]`&&(o=k,c=!0,O(!1));var b=d[y],x=r(b,y),S=m?null:s.get(x);S?(S.v&&Kn(S.v,b),S.i&&Kn(S.i,y),v&&h.unskip_effect(S.e)):(S=da(s,m?o:sa??=R(),b,x,y,i,t,n),m||(S.e.f|=me),s.set(x,S)),f.add(x)}if(e===0&&a&&!l&&(m?l=H(()=>a(o)):(l=H(()=>a(sa??=R())),l.f|=me)),e>f.size&&Qe(``,``,``),D&&e>0&&A(Ue()),!m){if(p.set(h,f),v){for(let[e,t]of s)f.has(e)||h.skip_effect(t.e);h.oncommit(g),h.ondiscard(_)}else g(h)}c&&O(!0),Q(u)}),flags:t,items:s,pending:p,outrogroups:null,fallback:l};m=!1,D&&(o=k)}function la(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function ua(e,t,n,r,i){var a=!!(r&8),o=t.length,s=e.items,c=la(e.effect.first),l,u=null,d,f=[],p=[],m,g,_,v;if(a)for(v=0;v<o;v+=1)m=t[v],g=i(m,v),_=s.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(d??=new Set).add(_));for(v=0;v<o;v+=1){if(m=t[v],g=i(m,v),_=s.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(Rr(_),a&&(_.nodes?.a?.unfix(),(d??=new Set).delete(_))),_.f&33554432){if(_.f^=me,_===c)fa(_,null,n);else{var y=u?u.next:c;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),pa(e,u,_),pa(e,_,y),fa(_,y,n),u=_,f=[],p=[],c=la(u.next);continue}}if(_!==c){if(l!==void 0&&l.has(_)){if(f.length<p.length){var b=p[0],x;u=b.prev;var S=f[0],ee=f[f.length-1];for(x=0;x<f.length;x+=1)fa(f[x],b,n);for(x=0;x<p.length;x+=1)l.delete(p[x]);pa(e,S.prev,ee.next),pa(e,u,S),pa(e,ee,b),c=b,u=ee,--v,f=[],p=[]}else l.delete(_),fa(_,c,n),pa(e,_.prev,_.next),pa(e,_,u===null?e.effect.first:u.next),pa(e,u,_),u=_;continue}for(f=[],p=[];c!==null&&c!==_;)(l??=new Set).add(c),p.push(c),c=la(c.next);if(c===null)continue}_.f&33554432||f.push(_),u=_,c=la(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(oa(e,h(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||l!==void 0){var C=[];if(l!==void 0)for(_ of l)_.f&8192||C.push(_);for(;c!==null;)!(c.f&8192)&&c!==e.fallback&&C.push(c),c=la(c.next);var te=C.length;if(te>0){var ne=r&4&&o===0?n:null;if(a){for(v=0;v<te;v+=1)C[v].nodes?.a?.measure();for(v=0;v<te;v+=1)C[v].nodes?.a?.fix()}aa(e,C,ne)}}a&&N(()=>{if(d!==void 0)for(_ of d)_.nodes?.a?.apply()})}function da(e,t,n,r,i,a,o,s){var c=o&1?o&16?Un(n):Gn(n,!1,!1):null,l=o&2?Un(i):null;return{v:c,i:l,e:H(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function fa(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=B(r);if(a.before(r),r===i)return;r=o}}function pa(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function ma(e,t,n=!1,r=!1,i=!1,a=!1){var o=e,s=``;if(n){var c=e;D&&(o=A(z(c)))}Dr(()=>{var e=q;if(s===(s=t()??``)){D&&j();return}if(n&&!D){e.nodes=null,c.innerHTML=s,s!==``&&$(z(c),c.lastChild);return}if(e.nodes!==null&&(Pr(e.nodes.start,e.nodes.end),e.nodes=null),s!==``){if(D){for(var a=k.data,l=j(),u=l;l!==null&&(l.nodeType!==8||l.data!==``);)u=l,l=B(l);if(l===null)throw Re(),je;$(k,u),o=A(l);return}var d=dr(r?`svg`:i?`math`:`template`,r?Ne:i?Pe:void 0);d.innerHTML=s;var f=r||i?d:d.content;if($(z(f),f.lastChild),r||i)for(;z(f);)o.before(z(f));else o.before(f)}})}function ha(e,t,...n){var r=new ea(e);kr(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},ue)}function ga(e){return(t,...n)=>{var r=e(...n),i;D?(i=k,j()):(i=z(Fi(r.render().trim())),t.before(i));let a=r.setup?.(i);$(i,i),typeof a==`function`&&vr(a)}}function _a(e,t,n){var r;D&&(r=k,j());var i=new ea(e);kr(()=>{var e=t()??null;if(D&&We(r)===`[`!=(e!==null)){var a=Ue();A(a),i.anchor=a,O(!1),i.ensure(e,e&&(t=>n(t,e))),O(!0);return}i.ensure(e,e&&(t=>n(t,e)))},ue)}function va(e,t,n,r,i,a){let o=D;D&&j();var s=null;D&&k.nodeType===1&&(s=k,j());var c=D?k:e,l=new ea(c,!1);kr(()=>{let e=t()||null;var a=i?i():n||e===`svg`?Ne:void 0;if(e===null){l.ensure(null,null);return}return l.ensure(e,t=>{if(e){if(s=D?s:dr(e,a),$(s,s),r){var n=null;D&&xi(e)&&s.append(n=document.createComment(``));var i=D?z(s):s.appendChild(R());D&&(i===null?O(!1):A(i)),r(s,i),n?.remove()}q.nodes.end=s,t.before(s)}D&&A(t)}),()=>{}},ue),vr(()=>{}),o&&(O(!0),A(c))}function ya(e,t){let n=null,r=D;var i;if(D){n=k;for(var a=z(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=B(a);if(a===null)O(!1);else{var o=B(a);a.remove(),A(o)}}D||(i=document.head.appendChild(R()));try{kr(()=>{var e=H(()=>t(i));e.f|=de,D||(e.nodes===null?e.nodes={start:i,end:i,a:null,t:null}:e.nodes.end=i)})}finally{r&&(O(!0),A(n))}}function ba(e,t){var n=void 0,r;Ar(()=>{n!==(n=t())&&(r&&=(U(r),null),n&&(r=H(()=>{wr(()=>n(e))})))})}function xa(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=xa(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Sa(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=xa(e))&&(r&&(r+=` `),r+=t);return r}function Ca(e){return typeof e==`object`?Sa(e):e??``}var wa=[...`
3
+ \r\f\xA0\v`];function Ta(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||wa.includes(r[o-1]))&&(s===r.length||wa.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Ea(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function Da(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function Oa(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\/\*.*?\*\//g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(Da)),i&&c.push(...Object.keys(i).map(Da));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=Da(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=Ea(r)),i&&(n+=Ea(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function ka(e,t,n,r,i,a){var o=e[Te];if(D||o!==n||o===void 0){var s=Ta(n,r,a);(!D||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e[Te]=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function Aa(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function ja(e,t,n,r){var i=e[Ee];if(D||i!==t){var a=Oa(t,r);(!D||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e[Ee]=t}else r&&(Array.isArray(r)?(Aa(e,n?.[0],r[0]),Aa(e,n?.[1],r[1],`important`)):Aa(e,n,r));return r}function Ma(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function Na(e,t){var n=!(`__defaultValue`in e);(n||e.__defaultValue!==t)&&(e.__defaultValue=t,Pa(e,!n||`__value`in e))}function Pa(e,t){var n=e.__defaultValue,r=e.multiple,i=r?n??[]:null;if(!r||f(i)){var a=e.selectedIndex,o=t&&r?new Set(e.selectedOptions):null;for(var s of e.options){var c=La(s);Ma(s,r?i.includes(c):Qn(c,n))}if(t){if(o!==null)for(s of e.options){var l=o.has(s);s.selected!==l&&(s.selected=l)}else e.selectedIndex!==a&&(e.selectedIndex=a)}}}function Fa(e,t,n=!1){if(e.multiple){if(t==null)return;if(!f(t))return ze();for(var r of e.options)r.selected=t.includes(La(r));return}for(r of e.options)if(Qn(La(r),t)){r.selected=!0;return}(!n||t!==void 0)&&(e.selectedIndex=-1)}function Ia(e){var t=new MutationObserver(t=>{t.every(Ra)||(`__defaultValue`in e&&Pa(e,!1),`__value`in e&&Fa(e,e.__value))});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),vr(()=>{t.disconnect()})}function La(e){return`__value`in e?e.__value:e.value}function Ra(e){if(e.target.closest(`selectedcontent`)!==null)return!0;if(e.type===`childList`){var t=[...e.addedNodes,...e.removedNodes];return t.length>0&&t.every(e=>e.nodeName===`SELECTEDCONTENT`)}return!1}var za=Symbol(`class`),Ba=Symbol(`style`),Va=Symbol(`is custom element`),Ha=Symbol(`is html`),Ua=Ae?`link`:`LINK`,Wa=Ae?`input`:`INPUT`,Ga=Ae?`option`:`OPTION`,Ka=Ae?`select`:`SELECT`;function qa(e){if(D){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;Ja(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;Ja(e,`checked`,null),e.checked=r}}};e[Oe]=n,N(n),nn()}}function Ja(e,t,n,r){var i=Za(e);D&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Ua)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[Se]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&$a(e).has(t)?e[t]=n:e.setAttribute(t,n))}function Ya(e,t,n,r,i=!1,a=!1){D&&i&&e.nodeName===Wa&&(`defaultValue`in n||`defaultChecked`in n||qa(e));var o=Za(e),s=o[Va],c=!o[Ha];let l=D&&s;l&&O(!1);var u=t||{},d=e.nodeName===Ga,f=e.nodeName===Ka;for(var p in t)!(p in n)&&p[0]+p[1]!==`$$`&&(n[p]=null);n.class?n.class=Ca(n.class):(r||n[za])&&(n.class=null),n[Ba]&&(n.style??=null);var m=$a(e);if(e.nodeName===Wa&&`type`in n&&(`value`in n||`__value`in n)){var h=n.type;(h!==u.type||h===void 0&&e.hasAttribute(`type`))&&(u.type=h,Ja(e,`type`,h,a))}for(let i in n){let l=n[i];if(d&&i===`value`&&l==null){e.value=e.__value=``,u[i]=l;continue}if(i===`class`){ka(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,l,r,t?.[za],n[za]),u[i]=l,u[za]=n[za];continue}if(i===`style`){ja(e,l,t?.[Ba],n[Ba]),u[i]=l,u[Ba]=n[Ba];continue}var g=u[i];if(l!==g||l===void 0&&e.hasAttribute(i)){u[i]=l;var _=i[0]+i[1];if(_!==`$$`){if(_===`on`){let t={},n=`$$`+i,r=i.slice(2);var v=mi(r);if(fi(r)&&(r=r.slice(0,-7),t.capture=!0),!v&&g){if(l!=null)continue;e.removeEventListener(r,u[n],t),u[n]=null}if(v)Oi(r,e,l),ki([r]);else if(l!=null){function a(e){u[i].call(this,e)}u[n]=Ti(r,e,a,t)}}else if(i===`style`)Ja(e,i,l);else if(i===`autofocus`)$t(e,!!l);else if(!s&&(i===`__value`||i===`value`&&l!=null))e.value=e.__value=l;else if(i===`selected`&&d)Ma(e,l);else{var y=i;c||(y=_i(y));var b=y===`defaultValue`||y===`defaultChecked`;if(f&&y===`defaultValue`)continue;if(l==null&&!s&&!b){if(o[i]=null,y===`value`||y===`checked`){let n=e,r=t===void 0;if(y===`value`){let e=n.defaultValue;n.removeAttribute(y),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(y),n.defaultChecked=e,n.checked=r?e:!1}}else e.removeAttribute(i)}else b||(s||typeof l!=`string`)&&m.has(y)?(e[y]=l,y in o&&(o[y]=E)):typeof l!=`function`&&Ja(e,y,l,a)}}}}return l&&O(!0),u}function Xa(e,t,n=[],r=[],i=[],a,o=!1,s=!1){on(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===Ka,l=!1;if(Ar(()=>{var u=t(...n.map(Q)),d=Ya(e,r,u,a,o,s);if(l&&c){var f=e;`defaultValue`in u&&Na(f,u.defaultValue),`value`in u&&Fa(f,u.value)}for(let e of Object.getOwnPropertySymbols(i))u[e]||U(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var p=u[t];t.description===`@attach`&&(!r||p!==r[t])&&(i[t]&&U(i[t]),i[t]=H(()=>ba(e,()=>p))),d[t]=p}r=d}),c){var u=e;wr(()=>{var e=r;`defaultValue`in e&&Na(u,e.defaultValue),Fa(u,e.value,!0),Ia(u)})}l=!0})}function Za(e){return e[we]??={[Va]:e.nodeName.includes(`-`),[Ha]:e.namespaceURI===Me}}var Qa=new Map;function $a(e){var t=e.getAttribute(`is`)||e.nodeName,n=Qa.get(t);if(n)return n;Qa.set(t,n=new Set);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=v(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.add(o);i=x(i)}return n}function eo(e,t,n=t){var r=new WeakSet;an(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=to(e)?no(a):a,n(a),F!==null&&r.add(F),await oi(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(D&&e.defaultValue!==e.value||ui(t)==null&&e.value)&&(n(to(e)?no(e.value):e.value),F!==null&&r.add(F)),Er(()=>{var n=t();if(e===document.activeElement){var i=F;if(r.has(i))return}to(e)&&n===no(e.value)||(e.type!==`date`||n||e.value)&&n!==e.value&&(e.value=n??``)})}function to(e){var t=e.type;return t===`number`||t===`range`}function no(e){return e===``?null:+e}function ro(e,t,n=t){an(e,`change`,()=>{n(e.files)}),D&&e.files&&n(e.files),Er(()=>{e.files=t()})}function io(e,t){return e===t||e?.[ye]===t}function ao(e=kt(),t,n,r){var i=M.r,a=q;return wr(()=>{var o,s;return Er(()=>{o=s,s=r?.()||[],ui(()=>{io(n(...s),e)||(t(e,...s),o&&io(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&io(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}var oo={get(e,t){if(!e.exclude.has(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.has(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return!e.exclude.has(t)&&t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.has(t))}};function so(e,t,n){return new Proxy({props:e,exclude:t},oo)}var co={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(ee(r)&&(r=r()),typeof r==`object`&&r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];ee(i)&&(i=i());let a=_(i,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(ee(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=_(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===ye||t===xe)return!1;for(let n of e.props)if(ee(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(ee(n)&&(n=n()),n){for(let e in n)t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}};function lo(...e){return new Proxy({props:e},co)}function uo(e,t,n,r){var i=!pt||!!(n&2),a=!!(n&8),o=!!(n&16),s=r,c=!0,l=void 0,u=()=>o&&i?(l??=un(r),Q(l)):(c&&(c=!1,s=o?ui(r):r),s);let d;if(a){var f=ye in e||xe in e;d=_(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=Qt(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=u(),d&&(i&&ct(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?u():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var v=!1,y=(n&1?un:mn)(()=>(v=!1,h()));a&&Q(y);var b=q;return(function(e,t){if(arguments.length>0){let n=t?Q(y):i&&a?Xn(e):e;return L(y,n),v=!0,s!==void 0&&(s=n),e}return Ur&&v||b.f&16384?y.v:Q(y)})}function fo(e){return class extends po{constructor(t){super({component:e,...t})}}}var po=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Gn(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return Q(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===xe||(Q(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return L(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?Yi:Ji)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),(!e?.props?.$$host||e.sync===!1)&&An(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e!==`$set`&&e!==`$destroy`&&e!==`$on`&&g(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{$i(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}};function mo(e,t){if(Je(`hydratable`),D){let t=window.__svelte?.h;if(t?.has(e))return t.get(e);Le(e)}return t()}var ho=c({afterUpdate:()=>So,beforeUpdate:()=>xo,createContext:()=>St,createEventDispatcher:()=>bo,createRawSnippet:()=>ga,flushSync:()=>An,fork:()=>Rn,getAbortSignal:()=>go,getAllContexts:()=>Et,getContext:()=>Ct,hasContext:()=>Tt,hydratable:()=>mo,hydrate:()=>Yi,mount:()=>Ji,onDestroy:()=>vo,onMount:()=>_o,setContext:()=>wt,settled:()=>si,tick:()=>oi,unmount:()=>$i,untrack:()=>ui});function go(){return W===null&&at(),(W.ac??=new AbortController).signal}function _o(e){M===null&&Ye(`onMount`),pt&&M.l!==null?Co(M).m.push(e):yr(()=>{let t=ui(e);if(typeof t==`function`)return t})}function vo(e){M===null&&Ye(`onDestroy`),_o(()=>()=>ui(e))}function yo(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function bo(){let e=M;return e===null&&Ye(`createEventDispatcher`),(t,n,r)=>{let i=e.s.$$events?.[t];if(i){let a=f(i)?i.slice():[i],o=yo(t,n,r);for(let t of a)t.call(e.x,o);return!o.defaultPrevented}return!0}}function xo(e){M===null&&Ye(`beforeUpdate`),M.l===null&&st(`beforeUpdate`),Co(M).b.push(e)}function So(e){M===null&&Ye(`afterUpdate`),M.l===null&&st(`afterUpdate`),Co(M).a.push(e)}function Co(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}export{or as $,Bi as A,o as At,Q as B,ra as C,ht as Ct,$i as D,C as Dt,qi as E,Ve as Et,ki as F,Or as G,oi as H,Oi as I,yr as J,Sr as K,Di as L,Ri as M,d as Mt,Hi as N,u as Nt,Ui as O,re as Ot,zi as P,ar as Q,Ei as R,ia as S,_t as St,Ji as T,He as Tt,ui as U,si as V,Xr as W,er as X,xr as Y,$n as Z,va as _,Ct as _t,so as a,Un as at,ma as b,Dt as bt,ro as c,en as ct,Ja as d,qt as dt,sr as et,ja as f,Jt as ft,ya as g,Et as gt,Sa as h,Vt as ht,uo as i,L as it,Ii as j,c as jt,Vi as k,s as kt,eo as l,Zt as lt,Ca as m,Ut as mt,_o as n,Xn as nt,lo as o,Wn as ot,ka as p,Ht as pt,Dr as q,fo as r,Jn as rt,ao as s,pn as st,ho as t,cr as tt,Xa as u,Yt as ut,_a as v,Tt as vt,ta as w,mt as wt,ca as x,wt as xt,ha as y,Ot as yt,di as z};
@@ -0,0 +1 @@
1
+ import"./CcD_ISxM.js";import{a as e}from"./6jxCYw_T.js";var t={get data(){return e.data},get error(){return e.error},get form(){return e.form},get params(){return e.params},get route(){return e.route},get state(){return e.state},get status(){return e.status},get url(){return e.url}};export{t};