@toa.io/extensions.exposition 1.0.0-alpha.296 → 1.0.0-alpha.298

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 (45) hide show
  1. package/package.json +4 -4
  2. package/transpiled/Composition.js.map +1 -1
  3. package/transpiled/Directive.js.map +1 -1
  4. package/transpiled/Discovery/Site.js.map +1 -1
  5. package/transpiled/HTTP/Probe.js.map +1 -1
  6. package/transpiled/HTTP/messages.js +9 -2
  7. package/transpiled/HTTP/messages.js.map +1 -1
  8. package/transpiled/MCP/discover.js.map +1 -1
  9. package/transpiled/RTD/Node.js.map +1 -1
  10. package/transpiled/Remotes.js.map +1 -1
  11. package/transpiled/directives/auth/Incept.js.map +1 -1
  12. package/transpiled/directives/auth/Role.js.map +1 -1
  13. package/transpiled/directives/dev/Faulty.js.map +1 -1
  14. package/transpiled/directives/dev/Sleep.js.map +1 -1
  15. package/transpiled/directives/io/lib/throttle/Keys.js.map +1 -1
  16. package/transpiled/directives/io/lib/throttle/Quotas.js.map +1 -1
  17. package/transpiled/directives/io/lib/throttle/Warning.js.map +1 -1
  18. package/transpiled/directives/io/schemas.js.map +1 -1
  19. package/transpiled/directives/octets/schemas.js.map +1 -1
  20. package/ui/dist/_app/immutable/assets/0.CUOh6U3S.css +2 -0
  21. package/ui/dist/_app/immutable/chunks/{kR7jeE34.js → 42lgtt7R.js} +1 -1
  22. package/ui/dist/_app/immutable/chunks/{CWpix1oL.js → CSmOlTSe.js} +2 -2
  23. package/ui/dist/_app/immutable/chunks/{CKJ7pc1A.js → Cec6E11I.js} +1 -1
  24. package/ui/dist/_app/immutable/chunks/{CRv_pI_-.js → DG4OFQ9V.js} +4 -4
  25. package/ui/dist/_app/immutable/entry/{app.Jm8SYQeh.js → app.xQaqMBBI.js} +2 -2
  26. package/ui/dist/_app/immutable/entry/start.Vc6aSJjU.js +1 -0
  27. package/ui/dist/_app/immutable/nodes/0.DVee6nnk.js +1 -0
  28. package/ui/dist/_app/immutable/nodes/{1.C9bXTk8x.js → 1.BEUjUfUC.js} +1 -1
  29. package/ui/dist/_app/immutable/nodes/2.woHR77fz.js +8 -0
  30. package/ui/dist/_app/immutable/nodes/{3.DNsnHsbB.js → 3.SWWw_ly3.js} +1 -1
  31. package/ui/dist/_app/immutable/nodes/{4.csaDeXmb.js → 4.Dm-ECSOq.js} +1 -1
  32. package/ui/dist/_app/immutable/nodes/{5.B8TsA9DW.js → 5.dblTLZRp.js} +1 -1
  33. package/ui/dist/_app/version.json +1 -1
  34. package/ui/dist/index.html +11 -11
  35. package/ui/dist/_app/immutable/assets/0.B_Y9l5mn.css +0 -2
  36. package/ui/dist/_app/immutable/assets/inter-cyrillic-ext-wght-normal.BOeWTOD4.woff2 +0 -0
  37. package/ui/dist/_app/immutable/assets/inter-cyrillic-wght-normal.DqGufNeO.woff2 +0 -0
  38. package/ui/dist/_app/immutable/assets/inter-greek-ext-wght-normal.DlzME5K_.woff2 +0 -0
  39. package/ui/dist/_app/immutable/assets/inter-greek-wght-normal.CkhJZR-_.woff2 +0 -0
  40. package/ui/dist/_app/immutable/assets/inter-latin-ext-wght-normal.DO1Apj_S.woff2 +0 -0
  41. package/ui/dist/_app/immutable/assets/inter-latin-wght-normal.Dx4kXJAl.woff2 +0 -0
  42. package/ui/dist/_app/immutable/assets/inter-vietnamese-wght-normal.CBcvBZtf.woff2 +0 -0
  43. package/ui/dist/_app/immutable/entry/start.BbmowWbG.js +0 -1
  44. package/ui/dist/_app/immutable/nodes/0.BkSdL_jj.js +0 -1
  45. package/ui/dist/_app/immutable/nodes/2.DB2l8rCx.js +0 -8
@@ -1 +0,0 @@
1
- import{o as e,r as t}from"../chunks/kR7jeE34.js";export{e as load_css,t as start};
@@ -1 +0,0 @@
1
- import{A as e,Ct as t,J as n,K as r,M as i,Nt as a,St as o,V as s,Y as c,Z as l,dt as u,et as d,f,ft as p,j as m,st as h,v as g,x as _}from"../chunks/BVDJTrf4.js";import{t as v}from"../chunks/kR7jeE34.js";import"../chunks/xihTtKlq.js";import{I as y,R as b,V as x,b as S,i as C,k as w,o as T,r as E,t as D,v as O,x as k}from"../chunks/CWpix1oL.js";import{t as A}from"../chunks/CKJ7pc1A.js";function j(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);return atob(t.padEnd(t.length+(4-t.length%4)%4,`=`))}function M(){let e=w(`challenge`);return e===null?null:j(e)}function N(){b.events.on(`challenge`,e=>k.set(e)),b.events.on(`error`,e=>{e.code===401&&k.set(null)}),k.subscribe(e=>b.authenticate(e));let e=M();e!==null&&k.set(e),O()}function P(){b.events.on(`response`,({headers:e})=>{let t=e.get(`server`);t!==null&&E.set(t)});let e;S.subscribe(t=>{if(e===void 0){e=t;return}t!==e&&(e=t,F())})}async function F(){let e=await T();e instanceof Error||C.set(e)}var I=a({prerender:()=>!1,ssr:()=>!1,trailingSlash:()=>L});N(),P();var L=`always`,R=i(`<meta name="description"/>`);function z(i,a){t(a,!0);let b=()=>p(D,`$dict`,S),[S,C]=u(),w=h(()=>A.data.meta?.title??x.title),T=h(()=>A.data.meta?.description??x.description);v(y),c(()=>{document.dir=b().dir});var E=m();g(`12qhfyh`,t=>{var i=R();n(()=>f(i,`content`,s(T))),r(()=>{l.title=s(w)??``}),e(t,i)});var O=d(E);_(O,()=>a.children),e(i,E),o(),C()}export{z as component,I as universal};
@@ -1,8 +0,0 @@
1
- import{$ as e,A as t,At as n,C as r,Ct as i,E as a,F as o,J as s,M as c,Mt as l,N as u,O as d,Ot as f,P as p,Q as m,R as h,S as g,St as _,V as v,Y as y,a as b,b as x,c as S,d as C,dt as w,et as T,f as E,ft as D,h as O,ht as ee,i as k,it as A,j,kt as M,m as N,n as P,nt as F,o as I,ot as L,pt as te,st as R,tt as z,ut as ne,w as re,x as B,z as ie}from"../chunks/BVDJTrf4.js";import{n as ae}from"../chunks/kR7jeE34.js";import"../chunks/xihTtKlq.js";import{A as oe,B as se,C as ce,D as V,H as le,S as ue,U as de,V as fe,_ as pe,b as me,c as he,d as ge,f as _e,g as ve,h as ye,i as be,j as xe,l as H,m as Se,n as Ce,p as we,s as Te,t as Ee,u as De,w as Oe,y as ke,z as Ae}from"../chunks/CWpix1oL.js";import{$ as U,A as je,B as W,C as Me,D as Ne,E as Pe,F as Fe,G as Ie,H as Le,I as Re,J as ze,K as Be,L as Ve,M as He,N as G,O as Ue,P as We,Q as Ge,R as Ke,S as qe,U as Je,V as Ye,W as K,X as Xe,Y as Ze,Z as q,_ as Qe,a as $e,b as et,c as tt,et as J,f as nt,g as rt,h as it,j as at,k as ot,l as st,m as ct,p as lt,q as ut,s as dt,t as ft,tt as pt,u as mt,v as Y,w as ht,x as gt,y as _t,z as vt}from"../chunks/CRv_pI_-.js";function yt(e){return async t=>{t.preventDefault();let n=t.target.querySelectorAll(`fieldset`),r=[];for(let e of n)e.disabled=!0,r.push(e);await e(t);for(let e of r)e.disabled=!1}}var bt=new Set([`$$slots`,`$$events`,`$$legacy`]);function xt(e,t){let n=b(t,bt),r=[[`path`,{d:`M14 8a1 1 0 0 1 1 1v2a1 1 0 0 0 1 1h3.293a.707.707 0 0 1 .5 1.207l-6.939 6.939a1.207 1.207 0 0 1-1.708 0l-6.94-6.94a.707.707 0 0 1 .5-1.206H8a1 1 0 0 0 1-1V9a1 1 0 0 1 1-1z`}],[`path`,{d:`M9 4h6`}]];V(e,I({name:`arrow-big-down-dash`},()=>n,{get iconNode(){return r}}))}var St=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ct(e,t){let n=b(t,St),r=[[`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z`}],[`circle`,{cx:`12`,cy:`12`,r:`4`}]];V(e,I({name:`bolt`},()=>n,{get iconNode(){return r}}))}var wt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Tt(e,t){let n=b(t,wt),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`}]];V(e,I({name:`log-out`},()=>n,{get iconNode(){return r}}))}var Et=new Set([`$$slots`,`$$events`,`$$legacy`]);function Dt(e,t){let n=b(t,Et),r=[[`path`,{d:`m21 21-4.34-4.34`}],[`circle`,{cx:`11`,cy:`11`,r:`8`}]];V(e,I({name:`search`},()=>n,{get iconNode(){return r}}))}var Ot=new Set([`$$slots`,`$$events`,`$$legacy`]);function kt(e,t){let n=b(t,Ot),r=[[`path`,{d:`M20 11v6`}],[`path`,{d:`M20 13h2`}],[`path`,{d:`M3 21v-2a4 4 0 0 1 4-4h6a4 4 0 0 1 2.072.578`}],[`circle`,{cx:`10`,cy:`7`,r:`4`}],[`circle`,{cx:`20`,cy:`19`,r:`2`}]];V(e,I({name:`user-key`},()=>n,{get iconNode(){return r}}))}var At=new Set([`$$slots`,`$$events`,`$$legacy`]);function jt(e,t){let n=b(t,At),r=[[`path`,{d:`m10.586 5.414-5.172 5.172`}],[`path`,{d:`m18.586 13.414-5.172 5.172`}],[`path`,{d:`M6 12h12`}],[`circle`,{cx:`12`,cy:`20`,r:`2`}],[`circle`,{cx:`12`,cy:`4`,r:`2`}],[`circle`,{cx:`20`,cy:`12`,r:`2`}],[`circle`,{cx:`4`,cy:`12`,r:`2`}]];V(e,I({name:`waypoints`},()=>n,{get iconNode(){return r}}))}var Mt={"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=ee(Ce,e=>Mt[e]),Nt=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Pt=c(`<div><!></div>`);function Ft(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,Nt);var c=Pt();C(c,e=>({"data-slot":`card-content`,class:e,...s}),[()=>J(`px-(--card-spacing)`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var It=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Lt=c(`<p><!></p>`);function Rt(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,It);var c=Lt();C(c,e=>({"data-slot":`card-description`,class:e,...s}),[()=>J(`text-sm text-muted-foreground`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var zt=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Bt=c(`<div><!></div>`);function Vt(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,zt);var c=Bt();C(c,e=>({"data-slot":`card-footer`,class:e,...s}),[()=>J(`rounded-b-xl border-t bg-muted/50 p-(--card-spacing) flex items-center`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var Ht=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Ut=c(`<div><!></div>`);function Wt(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,Ht);var c=Ut();C(c,e=>({"data-slot":`card-header`,class:e,...s}),[()=>J(`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]`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var Gt=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Kt=c(`<div><!></div>`);function qt(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,Gt);var c=Kt();C(c,e=>({"data-slot":`card-title`,class:e,...s}),[()=>J(`text-base leading-snug font-medium group-data-[size=sm]/card:text-sm`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var Jt=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`,`size`]),Yt=c(`<div><!></div>`);function Xt(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=k(a,`size`,3,`default`),c=b(a,Jt);var l=Yt();C(l,e=>({"data-slot":`card`,"data-size":s(),class:e,...c}),[()=>J(`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`,a.class)]);var u=e(l);B(u,()=>a.children??n),M(l),S(l,e=>o(e),()=>o()),t(r,l),_()}var Zt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Qt(e,t){let n=b(t,Zt),r=[[`path`,{d:`M5 12h14`}],[`path`,{d:`m12 5 7 7-7 7`}]];V(e,I({name:`arrow-right`},()=>n,{get iconNode(){return r}}))}var $t=c(`<div><!></div>`);function en(n,r){i(r,!0);let a=L(!1);async function o(){A(a,!0),await new Promise(e=>setTimeout(e,500)),A(a,!1)}var c={shake:o},l=$t(),u=e(l);return B(u,()=>r.children),M(l),s(()=>N(l,1,O([r.class,v(a)&&`shake`]),`svelte-alh7mr`)),t(n,l),_(c)}function Z(e){let t=L(F(e));return{[Ye]:!0,[ut]:!0,get current(){return v(t)},set current(e){A(t,e,!0)}}}Z.from=Je,Z.with=K,Z.flatten=Le,Z.readonly=Ze,Z.isBox=Ie,Z.isWritableBox=Be;function tn(e){return window.getComputedStyle(e).getPropertyValue(`direction`)}var nn=[gt,Ue,Pe],rn=[ht,Ne,`End`];[...nn,...rn];function an(e=`ltr`,t=`horizontal`){return{horizontal:e===`rtl`?qe:Me,vertical:gt}[t]}function on(e=`ltr`,t=`horizontal`){return{horizontal:e===`rtl`?Me:qe,vertical:ht}[t]}function sn(e=`ltr`,t=`horizontal`){return[`ltr`,`rtl`].includes(e)||(e=`ltr`),[`horizontal`,`vertical`].includes(t)||(t=`horizontal`),{nextKey:an(e,t),prevKey:on(e,t)}}var cn=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}=sn(tn(r),this.#e.orientation.current),c=this.#e.loop.current,l={[o]:a+1,[s]:a-1,[Pe]:0,End:i.length-1};if(n){let e=o===`ArrowDown`?Me:gt,t=s===`ArrowUp`?qe:ht;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||!et(t)||t.focus()}},ln=18,un=40,dn=`${un}px`,fn=[`[data-lastpass-icon-root]`,`com-1password-button`,`[data-dashlanecreated]`,`[style$="2147483647 !important;"]`].join(`,`);function pn({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r,domContext:i}){let a=L(!1),o=L(!1),s=L(!1);function c(){let e=n.current;return e!==`none`&&e===`increase-width`&&v(a)&&v(o)}function l(){let r=e.current,o=t.current;if(!r||!o||v(s)||n.current===`none`)return;let c=r,l=c.getBoundingClientRect().left+c.offsetWidth,u=c.getBoundingClientRect().top+c.offsetHeight/2,d=l-ln,f=u;(i.querySelectorAll(fn).length!==0||i.getDocument().elementFromPoint(d,f)!==r)&&(A(a,!0),A(s,!0))}return y(()=>{let t=e.current;if(!t||n.current===`none`)return;function r(){let e=Fe(t).innerWidth-t.getBoundingClientRect().right;A(o,e>=un)}r();let i=setInterval(r,1e3);return()=>{clearInterval(i)}}),y(()=>{let e=r.current||i.getActiveElement()===t.current;if(n.current===`none`||!e)return;let a=setTimeout(l,0),o=setTimeout(l,2e3),c=setTimeout(l,5e3),u=setTimeout(()=>{A(s,!0)},6e3);return()=>{clearTimeout(a),clearTimeout(o),clearTimeout(c),clearTimeout(u)}}),{get hasPwmBadge(){return v(a)},get willPushPwmBadge(){return c()},PWM_BADGE_SPACE_WIDTH:dn}}var mn=`^\\d+$`,hn=He({component:`pin-input`,parts:[`root`,`cell`]}),gn=[`Backspace`,`Delete`,`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Home`,`End`,`Escape`,`Enter`,`Tab`,`Shift`,`Control`,`Meta`],_n=class e{static create(t){return new e(t)}opts;attachment;inputAttachment;#e=L(!1);#t=ze(!1);#n=L(null);#r=L(null);#i=new Re(()=>this.opts.value.current??``);#a=R(()=>typeof this.opts.pattern.current==`string`?new RegExp(this.opts.pattern.current):this.opts.pattern.current);#o=L(F({prev:[null,null,`none`],willSyntheticBlur:!1}));#s;#c;domContext;constructor(e){this.opts=e,this.attachment=G(this.opts.ref),this.inputAttachment=G(this.opts.inputRef),this.domContext=new We(e.ref),this.#c={value:this.opts.value,isIOS:typeof window<`u`&&window?.CSS?.supports(`-webkit-touch-callout`,`none`)},this.#s=pn({containerRef:this.opts.ref,inputRef:this.opts.inputRef,isFocused:this.#t,pushPasswordManagerStrategy:this.opts.pushPasswordManagerStrategy,domContext:this.domContext}),P(()=>{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),v(this.#o).prev=[e.selectionStart,e.selectionEnd,e.selectionDirection??`none`];let n=ie(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 r=()=>{t&&t.style.setProperty(`--bits-pin-input-root-height`,`${e.clientHeight}px`)};r();let i=new ResizeObserver(r);return i.observe(e),()=>{n(),i.disconnect()}}),Ve([()=>this.opts.value.current,()=>this.opts.inputRef.current],()=>{yn(()=>{let e=this.opts.inputRef.current;if(!e)return;e.dispatchEvent(new Event(`input`));let t=e.selectionStart,n=e.selectionEnd,r=e.selectionDirection??`none`;t!==null&&n!==null&&(A(this.#n,t,!0),A(this.#r,n,!0),v(this.#o).prev=[t,n,r])},this.domContext)}),y(()=>{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;gn.includes(t)||e.ctrlKey||e.metaKey||t&&v(this.#a)&&!v(this.#a).test(t)&&e.preventDefault()};#l=R(()=>({position:`relative`,cursor:this.opts.disabled.current?`default`:`text`,userSelect:`none`,WebkitUserSelect:`none`,pointerEvents:`none`}));#u=R(()=>({id:this.opts.id.current,[hn.root]:``,style:v(this.#l),...this.attachment}));get rootProps(){return v(this.#u)}set rootProps(e){A(this.#u,e)}#d=R(()=>({style:{position:`absolute`,inset:0,pointerEvents:`none`}}));get inputWrapperProps(){return v(this.#d)}set inputWrapperProps(e){A(this.#d,e)}#f=R(()=>({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;`;bn(t.sheet,`[data-pin-input-input]::selection { background: transparent !important; color: transparent !important; }`),bn(t.sheet,`[data-pin-input-input]:autofill { ${e} }`),bn(t.sheet,`[data-pin-input-input]:-webkit-autofill { ${e} }`),bn(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; } }`),bn(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){A(this.#n,null),A(this.#r,null);return}let n=e.selectionStart,r=e.selectionEnd,i=e.selectionDirection??`none`,a=e.maxLength,o=e.value,s=v(this.#o).prev,c=-1,l=-1,u;if(o.length!==0&&n!==null&&r!==null){let e=n===r,t=n===o.length&&o.length<a;if(e&&!t){let e=n;if(e===0)c=0,l=1,u=`forward`;else if(e===a)c=e-1,l=e,u=`backward`;else if(a>1&&o.length>1){let t=0;if(s[0]!==null&&s[1]!==null){u=e<s[1]?`backward`:`forward`;let n=s[0]===s[1]&&s[0]<a;u===`backward`&&!n&&(t=-1)}c=t+e,l=t+e+1}}c!==-1&&l!==-1&&c!==l&&this.opts.inputRef.current?.setSelectionRange(c,l,u)}let d=c===-1?n:c,f=l===-1?r:l,p=u??i;A(this.#n,d,!0),A(this.#r,f,!0),v(this.#o).prev=[d,f,p]};oninput=e=>{let t=e.currentTarget.value.slice(0,this.opts.maxLength.current);if(t.length>0&&v(this.#a)&&!v(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),A(this.#n,e,!0),A(this.#r,n,!0)}this.#t.current=!0};onpaste=e=>{let t=this.opts.inputRef.current;if(!t)return;let n=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)},r=e=>e.length>0&&v(this.#a)&&!v(this.#a).test(e);if(!this.opts.pasteTransformer?.current&&(!this.#c.isIOS||!e.clipboardData||!t)){r(n(e.clipboardData?.getData(`text/plain`)))&&e.preventDefault();return}let i=e.clipboardData?.getData(`text/plain`)??``,a=this.opts.pasteTransformer?.current?this.opts.pasteTransformer.current(i):i;e.preventDefault();let o=n(a);if(r(o))return;t.value=o,this.opts.value.current=o;let s=Math.min(o.length,this.opts.maxLength.current-1),c=o.length;t.setSelectionRange(s,c),A(this.#n,s,!0),A(this.#r,c,!0)};onmouseover=e=>{A(this.#e,!0)};onmouseleave=e=>{A(this.#e,!1)};onblur=e=>{if(v(this.#o).willSyntheticBlur){v(this.#o).willSyntheticBlur=!1;return}this.#t.current=!1};#h=R(()=>({id:this.opts.inputId.current,style:v(this.#f),autocomplete:this.opts.autocomplete.current||`one-time-code`,"data-pin-input-input":``,"data-pin-input-input-mss":v(this.#n),"data-pin-input-input-mse":v(this.#r),inputmode:this.opts.inputmode.current,pattern:v(this.#a)?.source,maxlength:this.opts.maxLength.current,value:this.opts.value.current,disabled:at(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 v(this.#h)}set inputProps(e){A(this.#h,e)}#g=R(()=>Array.from({length:this.opts.maxLength.current}).map((e,t)=>{let n=this.#t.current&&v(this.#n)!==null&&v(this.#r)!==null&&(v(this.#n)===v(this.#r)&&t===v(this.#n)||t>=v(this.#n)&&t<v(this.#r)),r=this.opts.value.current[t]===void 0?null:this.opts.value.current[t];return{char:r,isActive:n,hasFakeCaret:n&&r===null}}));#_=R(()=>({cells:v(this.#g),isFocused:this.#t.current,isHovering:v(this.#e)}));get snippetProps(){return v(this.#_)}set snippetProps(e){A(this.#_,e)}},vn=class e{static create(t){return new e(t)}opts;attachment;constructor(e){this.opts=e,this.attachment=G(this.opts.ref)}#e=R(()=>({id:this.opts.id.current,[hn.cell]:``,"data-active":this.opts.cell.current.isActive?``:void 0,"data-inactive":this.opts.cell.current.isActive?void 0:``,...this.attachment}));get props(){return v(this.#e)}set props(e){A(this.#e,e)}};function yn(e,t){return[t.setTimeout(e,0),t.setTimeout(e,10),t.setTimeout(e,50)]}function bn(e,t){try{e.insertRule(t)}catch{console.error(`pin input could not insert CSS rule:`,t)}}var xn=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`inputId`,`ref`,`inputRef`,`maxlength`,`textalign`,`pattern`,`inputmode`,`onComplete`,`pushPasswordManagerStrategy`,`class`,`children`,`autocomplete`,`disabled`,`value`,`onValueChange`,`pasteTransformer`]),Sn=c(`<div><!> <div><input/></div></div>`);function Cn(r,a){let o=p();i(a,!0);let s=k(a,`id`,19,()=>Y(o)),c=k(a,`inputId`,19,()=>`${Y(o)}-input`),l=k(a,`ref`,15,null),u=k(a,`inputRef`,15,null),d=k(a,`maxlength`,3,6),f=k(a,`textalign`,3,`left`),m=k(a,`inputmode`,3,`numeric`),h=k(a,`onComplete`,3,_t),g=k(a,`pushPasswordManagerStrategy`,3,`increase-width`),y=k(a,`class`,3,``),x=k(a,`autocomplete`,3,`one-time-code`),S=k(a,`disabled`,3,!1),w=k(a,`value`,15,``),T=k(a,`onValueChange`,3,_t),E=b(a,xn),D=_n.create({id:K(()=>s()),ref:K(()=>l(),e=>l(e)),inputRef:K(()=>u(),e=>u(e)),inputId:K(()=>c()),autocomplete:K(()=>x()),maxLength:K(()=>d()),textAlign:K(()=>f()),disabled:K(()=>S()),inputmode:K(()=>m()),pattern:K(()=>a.pattern),onComplete:K(()=>h()),value:K(()=>w(),e=>{w(e),T()(e)}),pushPasswordManagerStrategy:K(()=>g()),pasteTransformer:K(()=>a.pasteTransformer)}),O=R(()=>W(E,D.inputProps)),ee=R(()=>W(D.rootProps,{class:y()})),A=R(()=>W(D.inputWrapperProps,{}));var j=Sn();C(j,()=>({...v(ee)}));var N=e(j);B(N,()=>a.children??n,()=>D.snippetProps);var P=z(N,2);C(P,()=>({...v(A)}));var F=e(P);C(F,()=>({...v(O)}),void 0,void 0,void 0,void 0,!0),M(P),M(j),t(r,j),_()}var wn=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`cell`,`child`,`children`]),Tn=c(`<div><!></div>`);function En(r,o){let s=p();i(o,!0);let c=k(o,`id`,19,()=>Y(s)),l=k(o,`ref`,15,null),u=b(o,wn),d=vn.create({id:K(()=>c()),ref:K(()=>l(),e=>l(e)),cell:K(()=>o.cell)}),f=R(()=>W(u,d.props));var m=j(),h=T(m),g=e=>{var n=j(),r=T(n);B(r,()=>o.child,()=>({props:v(f)})),t(e,n)},y=r=>{var i=Tn();C(i,()=>({...v(f)}));var a=e(i);B(a,()=>o.children??n),M(i),t(r,i)};a(h,e=>{o.child?e(g):e(y,-1)}),t(r,m),_()}var Dn=He({component:`tabs`,parts:[`root`,`list`,`trigger`,`content`]}),On=new Ke(`Tabs.Root`),kn=class e{static create(t){return On.set(new e(t))}opts;attachment;rovingFocusGroup;#e=L(F([]));get triggerIds(){return v(this.#e)}set triggerIds(e){A(this.#e,e,!0)}valueToTriggerId=new vt;valueToContentId=new vt;constructor(e){this.opts=e,this.attachment=G(e.ref),this.rovingFocusGroup=new cn({candidateAttr:Dn.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=R(()=>({id:this.opts.id.current,"data-orientation":this.opts.orientation.current,[Dn.root]:``,...this.attachment}));get props(){return v(this.#t)}set props(e){A(this.#t,e)}},An=class e{static create(t){return new e(t,On.get())}opts;root;attachment;#e=R(()=>this.root.opts.disabled.current);constructor(e,t){this.opts=e,this.root=t,this.attachment=G(e.ref)}#t=R(()=>({id:this.opts.id.current,role:`tablist`,"aria-orientation":this.root.opts.orientation.current,"data-orientation":this.root.opts.orientation.current,[Dn.list]:``,"data-disabled":ot(v(this.#e)),...this.attachment}));get props(){return v(this.#t)}set props(e){A(this.#t,e)}},jn=class e{static create(t){return new e(t,On.get())}opts;root;attachment;#e=L(0);#t=R(()=>this.root.opts.value.current===this.opts.value.current);#n=R(()=>this.opts.disabled.current||this.root.opts.disabled.current);#r=R(()=>this.root.valueToContentId.get(this.opts.value.current));constructor(e,t){this.opts=e,this.root=t,this.attachment=G(e.ref),Ve([()=>this.opts.id.current,()=>this.opts.value.current],([e,t])=>this.root.registerTrigger(e,t)),y(()=>{this.root.triggerIds.length,v(this.#t)||!this.root.opts.value.current?A(this.#e,0):A(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`||v(this.#n)||this.#i()}onclick(e){v(this.#n)||this.#i()}onkeydown(e){if(!v(this.#n)){if(e.key===` `||e.key===`Enter`){e.preventDefault(),this.#i();return}this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,e)}}#a=R(()=>({id:this.opts.id.current,role:`tab`,"data-state":Nn(v(this.#t)),"data-value":this.opts.value.current,"data-orientation":this.root.opts.orientation.current,"data-disabled":ot(v(this.#n)),"aria-selected":je(v(this.#t)),"aria-controls":v(this.#r),[Dn.trigger]:``,disabled:at(v(this.#n)),tabindex:v(this.#e),onclick:this.onclick,onfocus:this.onfocus,onkeydown:this.onkeydown,...this.attachment}));get props(){return v(this.#a)}set props(e){A(this.#a,e)}},Mn=class e{static create(t){return new e(t,On.get())}opts;root;attachment;#e=R(()=>this.root.opts.value.current===this.opts.value.current);#t=R(()=>this.root.valueToTriggerId.get(this.opts.value.current));constructor(e,t){this.opts=e,this.root=t,this.attachment=G(e.ref),Ve([()=>this.opts.id.current,()=>this.opts.value.current],([e,t])=>this.root.registerContent(e,t))}#n=R(()=>({id:this.opts.id.current,role:`tabpanel`,hidden:at(!v(this.#e)),tabindex:0,"data-value":this.opts.value.current,"data-state":Nn(v(this.#e)),"aria-labelledby":v(this.#t),"data-orientation":this.root.opts.orientation.current,[Dn.content]:``,...this.attachment}));get props(){return v(this.#n)}set props(e){A(this.#n,e)}};function Nn(e){return e?`active`:`inactive`}var Pn=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`value`,`onValueChange`,`orientation`,`loop`,`activationMode`,`disabled`,`children`,`child`]),Fn=c(`<div><!></div>`);function In(r,o){let s=p();i(o,!0);let c=k(o,`id`,19,()=>Y(s)),l=k(o,`ref`,15,null),u=k(o,`value`,15,``),d=k(o,`onValueChange`,3,_t),f=k(o,`orientation`,3,`horizontal`),m=k(o,`loop`,3,!0),h=k(o,`activationMode`,3,`automatic`),g=k(o,`disabled`,3,!1),y=b(o,Pn),x=kn.create({id:K(()=>c()),value:K(()=>u(),e=>{u(e),d()(e)}),orientation:K(()=>f()),loop:K(()=>m()),activationMode:K(()=>h()),disabled:K(()=>g()),ref:K(()=>l(),e=>l(e))}),S=R(()=>W(y,x.props));var w=j(),E=T(w),D=e=>{var n=j(),r=T(n);B(r,()=>o.child,()=>({props:v(S)})),t(e,n)},O=r=>{var i=Fn();C(i,()=>({...v(S)}));var a=e(i);B(a,()=>o.children??n),M(i),t(r,i)};a(E,e=>{o.child?e(D):e(O,-1)}),t(r,w),_()}var Ln=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`id`,`ref`,`value`]),Rn=c(`<div><!></div>`);function zn(r,o){let s=p();i(o,!0);let c=k(o,`id`,19,()=>Y(s)),l=k(o,`ref`,15,null),u=b(o,Ln),d=Mn.create({value:K(()=>o.value),id:K(()=>c()),ref:K(()=>l(),e=>l(e))}),f=R(()=>W(u,d.props));var m=j(),h=T(m),g=e=>{var n=j(),r=T(n);B(r,()=>o.child,()=>({props:v(f)})),t(e,n)},y=r=>{var i=Rn();C(i,()=>({...v(f)}));var a=e(i);B(a,()=>o.children??n),M(i),t(r,i)};a(h,e=>{o.child?e(g):e(y,-1)}),t(r,m),_()}var Bn=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`id`,`ref`]),Vn=c(`<div><!></div>`);function Hn(r,o){let s=p();i(o,!0);let c=k(o,`id`,19,()=>Y(s)),l=k(o,`ref`,15,null),u=b(o,Bn),d=An.create({id:K(()=>c()),ref:K(()=>l(),e=>l(e))}),f=R(()=>W(u,d.props));var m=j(),h=T(m),g=e=>{var n=j(),r=T(n);B(r,()=>o.child,()=>({props:v(f)})),t(e,n)},y=r=>{var i=Vn();C(i,()=>({...v(f)}));var a=e(i);B(a,()=>o.children??n),M(i),t(r,i)};a(h,e=>{o.child?e(g):e(y,-1)}),t(r,m),_()}var Un=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`disabled`,`id`,`type`,`value`,`ref`]),Wn=c(`<button><!></button>`);function Gn(r,o){let s=p();i(o,!0);let c=k(o,`disabled`,3,!1),l=k(o,`id`,19,()=>Y(s)),u=k(o,`type`,3,`button`),d=k(o,`ref`,15,null),f=b(o,Un),m=jn.create({id:K(()=>l()),disabled:K(()=>c()??!1),value:K(()=>o.value),ref:K(()=>d(),e=>d(e))}),h=R(()=>W(f,m.props,{type:u()}));var g=j(),y=T(g),x=e=>{var n=j(),r=T(n);B(r,()=>o.child,()=>({props:v(h)})),t(e,n)},S=r=>{var i=Wn();C(i,()=>({...v(h)}));var a=e(i);B(a,()=>o.children??n),M(i),t(r,i)};a(y,e=>{o.child?e(x):e(S,-1)}),t(r,g),_()}var Kn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),qn=c(`<div><!></div>`);function Jn(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,Kn);var c=qn();C(c,e=>({"data-slot":`input-otp-group`,class:e,...s}),[()=>J(`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`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var Yn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`cell`,`class`]),Xn=c(`<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>`),Zn=c(` <!>`,1);function Qn(e,n){i(n,!0);let r=k(n,`ref`,15,null),o=b(n,Yn);var c=j(),l=T(c);{let e=R(()=>J(`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`,n.class));x(l,()=>En,(i,c)=>{c(i,I({get cell(){return n.cell},"data-slot":`input-otp-slot`,get class(){return v(e)}},()=>o,{get ref(){return r()},set ref(e){r(e)},children:(e,r)=>{f();var i=Zn(),o=T(i),c=z(o),l=e=>{var n=Xn();t(e,n)};a(c,e=>{n.cell.hasFakeCaret&&e(l)}),s(()=>d(o,`${n.cell.char??``} `)),t(e,i)},$$slots:{default:!0}}))})}t(e,c),_()}var $n=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`value`]);function er(e,n){i(n,!0);let r=k(n,`ref`,15,null),a=k(n,`value`,15,``),o=b(n,$n);var s=j(),c=T(s);{let e=R(()=>J(`cn-input-otp-input gap-2 flex items-center disabled:cursor-not-allowed has-disabled:opacity-50`,n.class));x(c,()=>Cn,(t,n)=>{n(t,I({"data-slot":`input-otp`,spellcheck:!1,get class(){return v(e)}},()=>o,{get ref(){return r()},set ref(e){r(e)},get value(){return a()},set value(e){a(e)}}))})}t(e,s),_()}var tr=c(`<div class="w-full flex items-center"><!></div>`);function nr(n,o){i(o,!0);let s=()=>D(X,`$dict`,c),[c,l]=w(),u=k(o,`ref`,15,null),d=k(o,`mode`,11,`password`),f=k(o,`password`,15,``),p=k(o,`otp`,15,``);var m=tr(),h=e(m),g=e=>{Xe(e,{id:`iam-password-input`,name:`password`,type:`password`,minlength:6,autocomplete:`current-password`,get placeholder(){return s().auth.password},class:`placeholder:text-sm`,get value(){return f()},set value(e){f(e)}})},y=e=>{var n=j(),i=T(n);{let e=(e,n)=>{let i=()=>(n?.()).cells;var a=j(),o=T(a);x(o,()=>Jn,(e,n)=>{n(e,{children:(e,n)=>{var a=j(),o=T(a);r(o,17,()=>i().slice(0,6),re,(e,n)=>{var r=j(),i=T(r);x(i,()=>Qn,(e,t)=>{t(e,{get cell(){return v(n)},class:`size-[40px] bg-background`})}),t(e,r)}),t(e,a)},$$slots:{default:!0}})}),t(e,a)};x(i,()=>er,(t,n)=>{n(t,{maxlength:6,get pattern(){return mn},required:!0,get value(){return p()},set value(e){p(e)},children:e,$$slots:{default:!0}})})}t(e,n)};a(h,e=>{d()===`password`?e(g):e(y,-1)}),M(m),S(m,e=>u(e),()=>u()),t(n,m),_(),l()}var rr=c(`<!> <span class="sr-only"> </span>`,1),ir=c(`<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 ar(n,r){i(r,!0);let c=()=>D(X,`$dict`,l),[l,u]=w(),f=L(!1),p=L(``),m=L(``),y=L(``),b=L(null),x=L(`password`),C=L(void 0);async function E(){v(m).length===0?v(x)===`password`?await k():await N():await O()}async function O(){A(f,!0);let e=r.account===void 0?await ee():await we(r.account.id,{username:v(p),password:v(m)});A(f,!1),e instanceof Error&&await P()}async function ee(){let e=await Se(v(p),v(m));return e instanceof Error||de(e)?.status===201&&r.oncreate?.(e),e}async function k(){A(f,!0);let e=r.account===void 0?await ge(v(p)):await De(r.account.id,v(p));A(f,!1),!(e instanceof Error)&&(A(x,`otp`),requestAnimationFrame(()=>F()))}async function N(){if(v(p).length===0){console.error(`username is required`);return}if(v(y).length!==6){await P();return}A(f,!0);let e=await _e(v(p),v(y));if(A(f,!1),e instanceof Error){A(y,``),await P();return}return de(e)?.status===201&&r.oncreate?.(e),e}async function P(){await v(C)?.shake(),F()}function F(){xe&&v(b)?.querySelector(`input`)?.focus()}var I=ir(),te=R(()=>yt(E)),ne=e(I),re=e(ne);{let e=R(()=>v(x)===`otp`||void 0);Xe(re,{id:`iam-username-input`,name:`username`,type:`email`,autocomplete:`username`,required:!0,get disabled(){return v(e)},get autofocus(){return xe},get placeholder(){return c().auth.email},get value(){return v(p)},set value(e){A(p,e,!0)}})}var B=z(re,2),ie=e(B),ae=e(ie);S(en(ae,{class:`w-full`,children:(e,t)=>{nr(e,{get mode(){return v(x)},get ref(){return v(b)},set ref(e){A(b,e,!0)},get password(){return v(m)},set password(e){A(m,e,!0)},get otp(){return v(y)},set otp(e){A(y,e,!0)}})},$$slots:{default:!0}}),e=>A(C,e,!0),()=>v(C));var oe=z(ae,2);q(oe,{size:`icon-lg`,type:`submit`,children:(n,r)=>{var i=rr(),o=T(i),l=e=>{U(e,{})},u=e=>{Qt(e,{})};a(o,e=>{v(f)?e(l):e(u,-1)});var p=z(o,2),m=e(p,!0);M(p),s(()=>d(m,c().auth.login)),t(n,i)},$$slots:{default:!0}}),M(ie);var se=z(ie,2),ce=e(se),V=e=>{var n=j(),r=T(n);g(r,()=>c().auth.passwordBlank),t(e,n)},le=e=>{var n=o();s(()=>d(n,c().auth.otpInstructions)),t(e,n)};a(ce,e=>{v(x)===`password`?e(V):e(le,-1)}),M(se),M(B),M(ne),M(I),h(`submit`,I,function(...e){v(te)?.apply(this,e)}),t(n,I),_(),u()}var or=c(`<h2> </h2>`),sr=c(`<!> <!>`,1);function cr(n,r){i(r,!0);let a=()=>D(X,`$dict`,c),[c,l]=w();var u=j(),p=T(u);{let n=R(()=>J(`pt-4 gap-4 bg-background/75`,r.class));x(p,()=>Xt,(i,c)=>{c(i,{get class(){return v(n)},children:(n,i)=>{var c=sr(),l=T(c);x(l,()=>Wt,(n,r)=>{r(n,{class:`gap-0`,children:(n,r)=>{var i=sr(),c=T(i);x(c,()=>qt,(n,r)=>{r(n,{children:(n,r)=>{var i=or(),o=e(i,!0);M(i),s(()=>d(o,a().auth.passwordTitle)),t(n,i)},$$slots:{default:!0}})});var l=z(c,2);x(l,()=>Rt,(e,n)=>{n(e,{children:(e,n)=>{f();var r=o();s(()=>d(r,a().auth.passwordDescription)),t(e,r)},$$slots:{default:!0}})}),t(n,i)},$$slots:{default:!0}})});var u=z(l,2);x(u,()=>Ft,(e,t)=>{t(e,{children:(e,t)=>{ar(e,{get account(){return r.account},get oncreate(){return r.oncreate}})},$$slots:{default:!0}})}),t(n,c)},$$slots:{default:!0}})})}t(n,u),_(),l()}function lr(e){ar(e,{})}var ur=new Set([`$$slots`,`$$events`,`$$legacy`]);function dr(e,t){let n=b(t,ur),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`}]];V(e,I({name:`shield-check`},()=>n,{get iconNode(){return r}}))}var fr=new Set([`$$slots`,`$$events`,`$$legacy`]);function pr(e,t){let n=b(t,fr),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`}]];V(e,I({name:`shield-off`},()=>n,{get iconNode(){return r}}))}var mr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),hr=c(`<div><!></div>`);function gr(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,mr);var c=hr();C(c,e=>({"data-slot":`alert-description`,class:e,...s}),[()=>J(`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`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var _r=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),vr=c(`<div><!></div>`);function yr(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,_r);var c=vr();C(c,e=>({"data-slot":`alert-title`,class:e,...s}),[()=>J(`font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var br=Ge({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`}}),xr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`variant`,`children`]),Sr=c(`<div><!></div>`);function Cr(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=k(a,`variant`,3,`default`),c=b(a,xr);var l=Sr();C(l,e=>({"data-slot":`alert`,role:`alert`,class:e,...c}),[()=>J(br({variant:s()}),a.class)]);var u=e(l);B(u,()=>a.children??n),M(l),S(l,e=>o(e),()=>o()),t(r,l),_()}var wr=new Set([`$$slots`,`$$events`,`$$legacy`]);function Tr(e,t){let n=b(t,wr),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`}]];V(e,I({name:`fingerprint-pattern`},()=>n,{get iconNode(){return r}}))}var Er=c(`<!> `,1),Dr=c(`<div class="flex flex-col items-center justify-center gap-2"><p> </p> <!></div>`);function Or(n,r){i(r,!0);let o=()=>D(X,`$dict`,c),[c,l]=w(),u=L(!1);async function f(){A(u,!0),await Te(),A(u,!1)}var p=Dr(),m=e(p),h=e(m,!0);M(m);var g=z(m,2);q(g,{id:`iam-passkey-login-button`,variant:`secondary`,onclick:f,children:(e,n)=>{var r=Er(),i=T(r),c=e=>{U(e,{})},l=e=>{Tr(e,{})};a(i,e=>{v(u)?e(c):e(l,-1)});var f=z(i);s(()=>d(f,` ${o().auth.signin??``}`)),t(e,r)},$$slots:{default:!0}}),M(p),s(()=>d(h,o().auth.alreadyHaveAccount)),t(n,p),_(),l()}var kr=c(`<form><fieldset class="space-y-1"><div class="flex items-center gap-2"><!> <!></div></fieldset></form>`);function Ar(n,r){i(r,!0);let o=()=>D(X,`$dict`,c),[c,l]=w(),u=R(()=>r.account?.name??``),d=L(!1);async function f(){let e=v(u).trim();if(e.length===0)return;A(d,!0);let t=await he(e,r.account?.id);A(d,!1),!(t instanceof Error)&&r.oncreate?.(t)}var p=kr(),m=R(()=>yt(f)),g=e(p),y=e(g),b=e(y);Xe(b,{id:`name`,type:`text`,get placeholder(){return o().auth.yourName},autocomplete:`given-name`,required:!0,get autofocus(){return xe},get value(){return v(u)},set value(e){A(u,e)}});var x=z(b,2);q(x,{id:`iam-passkey-create-button`,size:`icon-lg`,type:`submit`,children:(e,n)=>{var r=j(),i=T(r),o=e=>{U(e,{})},s=e=>{Qt(e,{})};a(i,e=>{v(d)?e(o):e(s,-1)}),t(e,r)},$$slots:{default:!0}}),M(y),M(g),M(p),s(()=>g.disabled=r.disabled),h(`submit`,p,function(...e){v(m)?.apply(this,e)}),t(n,p),_(),l()}var jr=c(`<p> <a target="_blank" class="text-nowrap"> </a></p>`),Mr=c(`<h2> </h2>`),Nr=c(`<!> <!>`,1),Pr=c(`<!> <!> <!>`,1),Fr=c(`<p> </p> <!>`,1),Ir=c(`<div class="space-y-4"><!> <!></div>`);function Lr(n,r){i(r,!0);let c=()=>D(X,`$dict`,l),[l,u]=w(),p=n=>{var r=jr(),i=e(r),a=z(i),o=e(a,!0);M(a),M(r),s(()=>{d(i,`${c().auth.passkeysDescription??``} `),E(a,`href`,m),d(o,c().auth.learnMore)}),t(n,r)},m=oe?`https://support.apple.com/en-us/102195`:`https://support.google.com/accounts/answer/13548313`;var h=Ir(),g=e(h);{let n=R(()=>J(`gap-4 bg-background/75`,H&&`pt-4`,r.class));x(g,()=>Xt,(i,l)=>{l(i,{get class(){return v(n)},children:(n,i)=>{var l=Nr(),u=T(l),m=n=>{var i=Nr(),a=T(i);x(a,()=>Wt,(n,r)=>{r(n,{class:`gap-0`,children:(n,r)=>{var i=j(),a=T(i);x(a,()=>qt,(n,r)=>{r(n,{children:(n,r)=>{var i=Mr(),a=e(i,!0);M(i),s(()=>d(a,c().auth.signupTitle)),t(n,i)},$$slots:{default:!0}})}),t(n,i)},$$slots:{default:!0}})});var o=z(a,2);x(o,()=>Ft,(e,t)=>{t(e,{children:(e,t)=>{Ar(e,{get account(){return r.account},get oncreate(){return r.oncreate}})},$$slots:{default:!0}})}),t(n,i)};a(u,e=>{H&&e(m)});var h=z(u,2);x(h,()=>Vt,(n,r)=>{r(n,{children:(n,r)=>{var i=j(),l=T(i),u=e=>{var n=j(),r=T(n);x(r,()=>Cr,(e,n)=>{n(e,{children:(e,n)=>{var r=Pr(),i=T(r);dr(i,{color:`green`});var a=z(i,2);x(a,()=>yr,(e,n)=>{n(e,{children:(e,n)=>{f();var r=o();s(()=>d(r,c().auth.betterSecurity)),t(e,r)},$$slots:{default:!0}})});var l=z(a,2);x(l,()=>gr,(e,t)=>{t(e,{children:(e,t)=>{p(e)},$$slots:{default:!0}})}),t(e,r)},$$slots:{default:!0}})}),t(e,n)},m=n=>{var r=j(),i=T(r);x(i,()=>Cr,(n,r)=>{r(n,{children:(n,r)=>{var i=Pr(),a=T(i);pr(a,{color:`red`,class:`animate-pulse`});var l=z(a,2);x(l,()=>yr,(e,n)=>{n(e,{children:(e,n)=>{f();var r=o();s(()=>d(r,c().auth.passkeysNotSupported)),t(e,r)},$$slots:{default:!0}})});var u=z(l,2);x(u,()=>gr,(n,r)=>{r(n,{children:(n,r)=>{var i=Fr(),a=T(i),o=e(a,!0);M(a);var l=z(a,2);p(l),s(()=>d(o,c().auth.passkeysWarning)),t(n,i)},$$slots:{default:!0}})}),t(n,i)},$$slots:{default:!0}})}),t(n,r)};a(l,e=>{H?e(u):e(m,-1)}),t(n,i)},$$slots:{default:!0}})}),t(n,l)},$$slots:{default:!0}})})}var y=z(g,2),b=e=>{Or(e,{})};a(y,e=>{H&&!r.account&&e(b)}),M(h),t(n,h),_(),u()}var Rr=c(`<!> <!> `,1);function zr(e,n){i(n,!0);let r=()=>D(X,`$dict`,a),[a,o]=w();async function c(e){let t=e.currentTarget;t.disabled=!0,await Te(n.account.id),t.disabled=!1}q(e,{class:`w-full disabled:[&>.x-icon]:hidden [&>.x-spinner]:hidden disabled:[&>.x-spinner]:block`,onclick:c,children:(e,n)=>{var i=Rr(),a=T(i);Tr(a,{class:`size-5 x-icon`});var o=z(a,2);U(o,{class:`x-spinner`});var c=z(o);s(()=>d(c,` ${r().auth.refresh.continue??``}`)),t(e,i)},$$slots:{default:!0}}),_(),o()}var Br=u(`<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 Vr(e,n){var r=Br();s(()=>N(r,0,O(n.class))),t(e,r)}var Hr=u(`<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 Ur(n,r){i(r,!0);var a=Hr(),o=e(a);M(a),s(e=>{N(a,0,e),E(o,`fill`,r.fill)},[()=>O(J(`size-5 -mt-[3px]`,r.class))]),t(n,a),_()}var Wr={google:Vr,apple:Ur},Gr=c(`<!> <!> <!>`,1);function Kr(e,r){i(r,!0);let a=R(()=>Wr[r.idp]);async function o(e){let t=e.currentTarget;t.disabled=!0,await ve(r.idp,r.account?.id),t.disabled=!1}{let i=R(()=>r.children?`default`:`icon`),s=R(()=>J(`disabled:[&_.x-icon]:hidden [&_.x-spinner]:hidden disabled:[&_.x-spinner]:block`,r.class));q(e,{variant:`outline`,get size(){return v(i)},onclick:o,get class(){return v(s)},children:(e,i)=>{var o=Gr(),s=T(o);x(s,()=>v(a),(e,t)=>{t(e,{class:`x-icon`})});var c=z(s,2);U(c,{class:`x-spinner`});var l=z(c,2);B(l,()=>r.children??n),t(e,o)},$$slots:{default:!0}})}_()}var qr=c(`<div class="flex gap-2"><!> <!></div>`);function Jr(n,r){i(r,!0);var o=qr(),s=e(o),c=e=>{Kr(e,{idp:`google`,get account(){return r.account}})};a(s,e=>{pe.google.client&&e(c)});var l=z(s,2),u=e=>{Kr(e,{idp:`apple`,get account(){return r.account}})};a(l,e=>{pe.apple.client&&e(u)}),M(o),t(n,o),_()}function Yr(e,n){i(n,!0);let r=()=>D(X,`$dict`,a),[a,c]=w(),l={google:`Google`,apple:`Apple`};Kr(e,{get idp(){return n.idp},class:`w-full`,children:(e,i)=>{f();var a=o();s(e=>d(a,e),[()=>r().auth.continueWith(l[n.idp])]),t(e,a)},$$slots:{default:!0}}),_(),c()}var Xr=c(`<!> <!>`,1);function Zr(e,n){var r=j(),i=T(r);x(i,()=>Xt,(e,r)=>{r(e,{class:`w-full`,children:(e,r)=>{var i=Xr(),a=T(i);x(a,()=>Wt,(e,r)=>{r(e,{children:(e,r)=>{var i=Xr(),a=T(i);x(a,()=>qt,(e,r)=>{r(e,{children:(e,r)=>{f();var i=o();s(()=>d(i,n.title)),t(e,i)},$$slots:{default:!0}})});var c=z(a,2);x(c,()=>Rt,(e,r)=>{r(e,{children:(e,r)=>{f();var i=o();s(()=>d(i,n.description)),t(e,i)},$$slots:{default:!0}})}),t(e,i)},$$slots:{default:!0}})});var c=z(a,2);x(c,()=>Ft,(e,r)=>{r(e,{class:`flex flex-col`,children:(e,r)=>{var i=j(),a=T(i);B(a,()=>n.action),t(e,i)},$$slots:{default:!0}})}),t(e,i)},$$slots:{default:!0}})}),t(e,r)}var Qr=c(`<!> `,1),$r=c(`<div class="flex flex-col items-center gap-4 w-full"><!> <!></div>`);function ei(n,r){i(r,!0);let o=()=>D(X,`$dict`,c),[c,l]=w();P(()=>{r.method===null&&ye()});var u=$r(),f=e(u);{let e=e=>{var n=j(),i=T(n),o=e=>{zr(e,{get account(){return r.account}})},s=e=>{lr(e,{})},c=e=>{Yr(e,{idp:`apple`})},l=e=>{Yr(e,{idp:`google`})};a(i,e=>{r.method===`passkey`?e(o):r.method===`password`?e(s,1):r.method===`apple`?e(c,2):r.method===`google`&&e(l,3)}),t(e,n)},n=R(()=>o().auth.refresh.description(r.account.name));Zr(f,{get title(){return o().auth.refresh.title},get description(){return v(n)},action:e,$$slots:{action:!0}})}var p=z(f,2);q(p,{variant:`outline`,get onclick(){return ye},children:(e,n)=>{var r=Qr(),i=T(r);Tt(i,{});var a=z(i);s(()=>d(a,` ${o().auth.signout??``}`)),t(e,r)},$$slots:{default:!0}}),M(u),t(n,u),_(),l()}var ti=new Set([`$$slots`,`$$events`,`$$legacy`]);function ni(e,t){let n=b(t,ti),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`}]];V(e,I({name:`at-sign`},()=>n,{get iconNode(){return r}}))}var ri=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function ii(e,n){i(n,!0);let r=k(n,`ref`,15,null),a=b(n,ri);var o=j(),s=T(o);{let e=R(()=>J(`text-sm flex-1 outline-none`,n.class));x(s,()=>zn,(t,n)=>{n(t,I({"data-slot":`tabs-content`,get class(){return v(e)}},()=>a,{get ref(){return r()},set ref(e){r(e)}}))})}t(e,o),_()}var ai=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function oi(e,n){i(n,!0);let r=k(n,`ref`,15,null),a=b(n,ai);var o=j(),s=T(o);{let e=R(()=>J(`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`,n.class));x(s,()=>Gn,(t,n)=>{n(t,I({"data-slot":`tabs-trigger`,get class(){return v(e)}},()=>a,{get ref(){return r()},set ref(e){r(e)}}))})}t(e,o),_()}var si=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`class`]);function ci(e,n){i(n,!0);let r=k(n,`ref`,15,null),a=k(n,`value`,15,``),o=b(n,si);var s=j(),c=T(s);{let e=R(()=>J(`gap-2 group/tabs flex data-[orientation=horizontal]:flex-col`,n.class));x(c,()=>In,(t,n)=>{n(t,I({"data-slot":`tabs`,get class(){return v(e)}},()=>o,{get ref(){return r()},set ref(e){r(e)},get value(){return a()},set value(e){a(e)}}))})}t(e,s),_()}var li=Ge({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`}}),ui=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`variant`,`class`]);function di(e,n){i(n,!0);let r=k(n,`ref`,15,null),a=k(n,`variant`,3,`default`),o=b(n,ui);var s=j(),c=T(s);{let e=R(()=>J(li({variant:a()}),n.class));x(c,()=>Hn,(t,n)=>{n(t,I({"data-slot":`tabs-list`,get"data-variant"(){return a()},get class(){return v(e)}},()=>o,{get ref(){return r()},set ref(e){r(e)}}))})}t(e,s),_()}var fi=c(`<!> `,1),pi=c(`<!> <!>`,1),mi=c(`<div class="flex justify-between gap-2"><!> <!></div> <!> <!>`,1);function hi(n,r){i(r,!0);let a=()=>D(X,`$dict`,o),[o,c]=w(),l=L(null);function u(e){requestAnimationFrame(()=>{v(l)?.querySelector(`[data-value="${e}"] input[autofocus]`)?.focus()})}let f=L(`passkey`);P(()=>{A(f,H?`passkey`:`password`,!0)});var p=j(),m=T(p);{let n=R(()=>J(`w-full`,r.class));x(m,()=>ci,(i,o)=>{o(i,{get class(){return v(n)},onValueChange:u,get value(){return v(f)},set value(e){A(f,e,!0)},get ref(){return v(l)},set ref(e){A(l,e,!0)},children:(n,i)=>{var o=mi(),c=T(o),l=e(c);x(l,()=>di,(e,n)=>{n(e,{children:(e,n)=>{var r=pi(),i=T(r);x(i,()=>oi,(e,n)=>{n(e,{value:`passkey`,"data-marker":`passkey-tab`,children:(e,n)=>{var r=fi(),i=T(r);Tr(i,{color:`var(--muted-foreground)`});var o=z(i);s(()=>d(o,` ${a().auth.passkey??``}`)),t(e,r)},$$slots:{default:!0}})});var o=z(i,2);x(o,()=>oi,(e,n)=>{n(e,{value:`password`,id:`iam-email-tab`,children:(e,n)=>{var r=fi(),i=T(r);ni(i,{color:`var(--muted-foreground)`});var o=z(i);s(()=>d(o,` ${a().auth.email??``}`)),t(e,r)},$$slots:{default:!0}})}),t(e,r)},$$slots:{default:!0}})}),Jr(z(l,2),{get account(){return r.account}}),M(c);var u=z(c,2);x(u,()=>ii,(e,t)=>{t(e,{value:`passkey`,children:(e,t)=>{Lr(e,{get account(){return r.account},oncreate:e=>r.oncreate?.(e,`passkey`)})},$$slots:{default:!0}})});var f=z(u,2);x(f,()=>ii,(e,t)=>{t(e,{value:`password`,children:(e,t)=>{cr(e,{get account(){return r.account},oncreate:e=>r.oncreate?.(e,`password`)})},$$slots:{default:!0}})}),t(n,o)},$$slots:{default:!0}})})}t(n,p),_(),c()}var gi=c(`<div class="flex items-center justify-center h-screen"><!></div>`),_i=c(`<div class="flex w-full max-w-sm items-center justify-center pt-[14vh] px-4 mx-auto"><!></div>`);function vi(n,r){i(r,!0);let o=()=>D(ke,`$iam`,d),s=()=>D(ce,`$method`,d),c=()=>D(me,`$authenticated`,d),l=()=>D(ue,`$greeting`,d),u=()=>D(Oe,`$processing`,d),[d,f]=w(),p=e=>{var n=j(),i=T(n),c=e=>{ei(e,{get account(){return o()},get method(){return s()}})},l=e=>{{let t=R(()=>J(`scale-0 transition-transform`,`scale-100`));hi(e,{get class(){return v(t)},get account(){return r.account},get oncreate(){return r.oncreate}})}};a(i,e=>{o()?e(c):e(l,-1)}),t(e,n)};var m=j(),h=T(m),g=e=>{var n=j(),i=T(n);B(i,()=>r.children),t(e,n)},y=n=>{var r=gi(),i=e(r);U(i,{}),M(r),t(n,r)},b=e=>{var n=j(),i=T(n);B(i,()=>r.screen,()=>({authentication:p})),t(e,n)},x=n=>{var r=_i(),i=e(r);p(i),M(r),t(n,r)};a(h,e=>{c()?e(g):l()||u()?e(y,1):r.screen?e(b,2):e(x,-1)}),t(n,m),_(),f()}var yi=l(((e,t)=>{t.exports=function(){return typeof Promise==`function`&&Promise.prototype&&Promise.prototype.then}})),Q=l((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)}})),bi=l((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}}})),xi=l(((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})),Si=l(((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})),Ci=l((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}})),wi=l((e=>{var t=Q().getSymbolSize,n=7;e.getPositions=function(e){let r=t(e);return[[0,0],[r-n,0],[0,r-n]]}})),Ti=l((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}})),Ei=l((e=>{var t=bi(),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}}})),Di=l((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]]}})),Oi=l((e=>{var t=Di();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}})),ki=l(((e,t)=>{var n=Oi();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})),Ai=l((e=>{e.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}})),ji=l((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)}})),$=l((e=>{var t=Ai(),n=ji();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}}})),Mi=l((e=>{var t=Q(),n=Ei(),r=bi(),i=$(),a=Ai(),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}})),Ni=l((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}})),Pi=l(((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})),Fi=l(((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;for(t=0;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})),Ii=l(((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})),Li=l(((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;for(t=0;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})),Ri=l(((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)})),zi=l((e=>{var t=$(),n=Pi(),r=Fi(),i=Ii(),a=Li(),o=ji(),s=Q(),c=Ri();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()))}})),Bi=l((e=>{var t=Q(),n=bi(),r=xi(),i=Si(),a=Ci(),o=wi(),s=Ti(),c=Ei(),l=ki(),u=Mi(),d=Ni(),f=$(),p=zi();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)}})),Vi=l((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}}})),Hi=l((e=>{var t=Vi();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)}})),Ui=l((e=>{var t=Vi();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}}));l((e=>{var t=yi(),n=Bi(),r=Hi(),i=Ui();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)})}))(),Wr.google,Wr.apple;var Wi=`search`;function Gi(e){return new URLSearchParams(e.replace(/^#/,``)).get(Wi)}function Ki(e,t){let n=new URLSearchParams(e.replace(/^#/,``));t===``?n.delete(Wi):n.set(Wi,t);let r=n.toString().replace(/%2F/gi,`/`);return r===``?``:`#`+r}var qi=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Ji=c(`<kbd><!></kbd>`);function Yi(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,qi);var c=Ji();C(c,e=>({"data-slot":`kbd`,class:e,...s}),[()=>J(`h-5 w-fit min-w-5 gap-1 rounded-sm bg-muted px-1 font-sans text-xs font-medium text-muted-foreground in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3 pointer-events-none inline-flex items-center justify-center select-none`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var Xi=n=>{var r=Zi(),i=e(r);tt(i,{});var a=z(i,2);st(a,{}),M(r),t(n,r)},Zi=c(`<div class="mx-auto flex w-full max-w-3xl flex-col gap-6 px-4 pb-12"><!> <!></div>`),Qi=c(`<div class="w-full min-w-0 flex-1 md:max-w-64 md:flex-none md:shrink"></div>`),$i=c(`<div class="relative w-full min-w-0 flex-1 md:max-w-64 md:flex-none md:shrink"><!> <!> <!></div>`),ea=c(`<!> <!>`,1),ta=c(`<header class="bg-background sticky top-0 z-50 -mt-2 flex w-full items-center gap-4 px-4 py-3" style="view-transition-name: chrome"><div class="flex shrink-0 items-center gap-2 md:flex-1 md:gap-4"><h1 class="hidden min-w-0 truncate text-lg font-medium md:block"> </h1> <!> <!> <div class="hidden items-center gap-4 md:flex"><!> <!></div></div> <!> <div class="flex shrink-0 items-center justify-end gap-1 md:flex-1"><!></div></header> <!> <!>`,1);function na(n,r){i(r,!0);let c=()=>D(me,`$authenticated`,x),l=()=>D(rt,`$query`,x),u=()=>D(be,`$tree`,x),p=()=>D(ct,`$only`,x),g=()=>D(Ee,`$dict`,x),b=()=>D(ke,`$account`,x),[x,S]=w(),C=L(null),E=L(!1);y(()=>{c()&&A(E,!1)}),P(()=>{let e=()=>{let e=Gi(location.hash);e!==null&&rt.set(e)};return e(),window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)}),y(()=>{let e=Ki(location.hash,l());e!==location.hash&&ae(e===``?location.pathname:e,{})});let O=R(()=>it(u())),ee=R(()=>lt(u(),nt.configuration)),k=R(()=>lt(u(),nt.introspection));function j(){let e=ft(u(),fe.title),t=URL.createObjectURL(new Blob([e],{type:`text/markdown`})),n=window.document.createElement(`a`);n.href=t,n.download=`discovery.md`,n.click(),URL.revokeObjectURL(t)}function N(e){e.key===`Enter`&&p()?.()}function F(e){e.key!==`k`||!(e.metaKey||e.ctrlKey)||(e.preventDefault(),v(C)?.focus(),v(C)?.select())}h(`keydown`,m,F),dt(n,{children:(n,r)=>{var i=ta(),u=T(i),p=e(u),m=e(p),h=e(m,!0);M(m);var _=z(m,2),y=e=>{{let t=e=>{mt(e,{class:`size-4`})},n=R(()=>`${le}/.mcp`);Qe(e,{id:`discovery-mcp-button`,get text(){return v(n)},variant:`ghost`,size:`icon`,get"aria-label"(){return g().nav.mcp},class:`text-muted-foreground`,icon:t,$$slots:{icon:!0}})}};a(_,e=>{v(O)&&e(y)});var x=z(_,2);q(x,{id:`discovery-markdown-button`,variant:`ghost`,size:`icon`,class:`text-muted-foreground`,get"aria-label"(){return g().nav.markdown},onclick:j,children:(e,t)=>{xt(e,{})},$$slots:{default:!0}});var S=z(x,2),w=e(S),D=e=>{q(e,{id:`discovery-configuration-button`,get href(){return Ae},variant:`ghost`,size:`icon`,class:`text-muted-foreground`,get"aria-label"(){return g().nav.configuration},children:(e,t)=>{Ct(e,{})},$$slots:{default:!0}})};a(w,e=>{v(ee)&&e(D)});var P=z(w,2),F=e=>{q(e,{id:`discovery-introspection-button`,get href(){return se},variant:`ghost`,size:`icon`,class:`text-muted-foreground`,get"aria-label"(){return g().nav.introspection},children:(e,t)=>{jt(e,{})},$$slots:{default:!0}})};a(P,e=>{v(k)&&e(F)}),M(S),M(p);var I=z(p,2),L=e=>{var n=Qi();t(e,n)},re=n=>{var r=$i(),i=e(r);Dt(i,{class:`text-muted-foreground pointer-events-none absolute start-2.5 top-1/2 size-3.5 -translate-y-1/2`});var a=z(i,2);Xe(a,{id:`nav-filter-input`,type:`search`,onkeydown:N,get"aria-label"(){return g().nav.filter},class:`ps-8 pe-3 md:pe-14 [&::-webkit-search-cancel-button]:hidden`,get ref(){return v(C)},set ref(e){A(C,e,!0)},get value(){return ne(),l()},set value(e){te(rt,e)}}),Yi(z(a,2),{class:`absolute end-2 top-1/2 hidden -translate-y-1/2 md:inline-flex`,children:(e,n)=>{f();var r=o();s(()=>d(r,oe?`⌘K`:`Ctrl K`)),t(e,r)},$$slots:{default:!0}}),M(r),t(n,r)};a(I,e=>{v(E)?e(L):e(re,-1)});var B=z(I,2),ie=e(B),ae=e=>{var n=ea(),r=T(n),i=e=>{var n=ea(),r=T(n);Qe(r,{get text(){return b().id},variant:`outline`,size:`icon-sm`,get"aria-label"(){return g().nav.identity},class:`md:hidden`});var i=z(r,2);{let e=R(()=>b().id.slice(0,8));Qe(i,{id:`iam-identity-button`,get text(){return b().id},get label(){return v(e)},variant:`outline`,size:`sm`,get"aria-label"(){return g().nav.identity},class:`hidden font-mono md:inline-flex`})}t(e,n)};a(r,e=>{b()!==null&&e(i)});var o=z(r,2);q(o,{id:`iam-logout-button`,variant:`ghost`,size:`icon`,get"aria-label"(){return g().nav.signout},class:`text-destructive hover:text-destructive`,get onclick(){return ye},children:(e,t)=>{Tt(e,{})},$$slots:{default:!0}}),t(e,n)},ce=e=>{q(e,{id:`iam-cancel-button`,variant:`ghost`,size:`icon`,get"aria-label"(){return g().nav.back},onclick:()=>A(E,!1),children:(e,t)=>{pt(e,{})},$$slots:{default:!0}})},V=e=>{q(e,{id:`iam-login-button`,variant:`ghost`,size:`icon`,get"aria-label"(){return g().nav.signin},onclick:()=>A(E,!0),children:(e,t)=>{kt(e,{})},$$slots:{default:!0}})};a(ie,e=>{c()?e(ae):v(E)?e(ce,1):e(V,-1)}),M(B),M(u);var ue=z(u,2),de=e=>{vi(e,{children:(e,t)=>{Xi(e)},$$slots:{default:!0}})},pe=e=>{Xi(e)};a(ue,e=>{v(E)?e(de):e(pe,-1)});var me=z(ue,2);$e(me,{}),s(()=>d(h,fe.title)),t(n,i)},$$slots:{default:!0}}),_(),S()}export{na as component};