@toa.io/extensions.introspection 1.0.0-alpha.319 → 1.0.0-alpha.321

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 (27) hide show
  1. package/package.json +5 -5
  2. package/ui/dist/_app/immutable/chunks/{C2wLFLa1.js → 2e0fAhRE.js} +1 -1
  3. package/ui/dist/_app/immutable/chunks/B8EdV3yC.js +1 -0
  4. package/ui/dist/_app/immutable/chunks/BkNlvOAz.js +1 -0
  5. package/ui/dist/_app/immutable/chunks/Bo71Ec-f.js +1 -0
  6. package/ui/dist/_app/immutable/chunks/{DT7ziZYr.js → C69pzvhG.js} +1 -1
  7. package/ui/dist/_app/immutable/chunks/{CvvfgZ-D.js → DGMggR6N.js} +1 -1
  8. package/ui/dist/_app/immutable/chunks/{Xtwc5EKS.js → DSyQQH85.js} +1 -1
  9. package/ui/dist/_app/immutable/chunks/D_OzAf8e.js +6 -0
  10. package/ui/dist/_app/immutable/chunks/{CRawENJn.js → DvcRBTN8.js} +1 -1
  11. package/ui/dist/_app/immutable/entry/{app.B6qB7TWi.js → app.CM6kYg9i.js} +2 -2
  12. package/ui/dist/_app/immutable/entry/start.BpJYEgvr.js +1 -0
  13. package/ui/dist/_app/immutable/nodes/{0.Ba71KSe5.js → 0.CZLVDRI8.js} +1 -1
  14. package/ui/dist/_app/immutable/nodes/{1.BvAFVrcw.js → 1.Kx4DS6LN.js} +1 -1
  15. package/ui/dist/_app/immutable/nodes/{2.Dv9nPfFy.js → 2.D0vdmu0r.js} +1 -1
  16. package/ui/dist/_app/immutable/nodes/3.B3rXSfch.js +1 -0
  17. package/ui/dist/_app/immutable/nodes/4.ByctkTvw.js +1 -0
  18. package/ui/dist/_app/immutable/nodes/{5.DKmjn_kT.js → 5.DdfkF_-l.js} +1 -1
  19. package/ui/dist/_app/version.json +1 -1
  20. package/ui/dist/index.html +12 -12
  21. package/ui/dist/_app/immutable/chunks/B0dRPcWC.js +0 -6
  22. package/ui/dist/_app/immutable/chunks/BI2pFIDA.js +0 -1
  23. package/ui/dist/_app/immutable/chunks/BSetibHI.js +0 -1
  24. package/ui/dist/_app/immutable/chunks/rvgOFSMY.js +0 -1
  25. package/ui/dist/_app/immutable/entry/start.U98ib-90.js +0 -1
  26. package/ui/dist/_app/immutable/nodes/3.89vECRKy.js +0 -1
  27. package/ui/dist/_app/immutable/nodes/4.BbG2Xi9A.js +0 -1
@@ -1 +1 @@
1
- import{A as e,At as t,C as n,Ct as r,D as i,E as a,F as o,J as s,M as c,O as l,Ot as u,P as d,St as f,T as p,V as m,X as h,Y as g,_,_t as v,a as y,at as b,b as x,ct as S,d as C,dt as w,et as T,ft as E,h as D,i as O,j as k,k as A,kt as j,l as M,m as ee,mt as N,nt as P,o as F,p as te,rt as ne,s as I,st as L,tt as R,u as z,x as B,yt as V,z as H}from"./sTot5bBi.js";import"./BI2pFIDA.js";import"./xihTtKlq.js";import{F as U,N as W,r as re,t as ie}from"./B0dRPcWC.js";import{$ as ae,A as G,C as oe,E as se,G as ce,H as le,J as ue,K as de,O as K,Q as q,T as fe,V as pe,W as me,Y as he,Z as J,_t as ge,b as _e,c as ve,dt as ye,et as be,f as xe,g as Se,ht as Ce,j as we,k as Y,m as Te,mt as Ee,nt as De,p as Oe,pt as ke,q as X,rt as Ae,st as Z,t as je,tt as Q,u as Me,w as Ne}from"./CRawENJn.js";function Pe(e){return e!==null&&!(e instanceof Error)}var Fe=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ie(e,t){let n=y(t,Fe),r=[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`}]];U(e,F({name:`pause`},()=>n,{get iconNode(){return r}}))}function Le(e,t){return setTimeout(t,e)}var Re=1,ze=9,Be=11;function Ve(e){return ke(e)&&e.nodeType===Re&&typeof e.nodeName==`string`}function He(e){return ke(e)&&e.nodeType===ze}function Ue(e){return ke(e)&&e.constructor?.name===`VisualViewport`}function We(e){return ke(e)&&e.nodeType!==void 0}function Ge(e){return We(e)&&e.nodeType===Be&&`host`in e}function Ke(e,t){if(!e||!t||!Ve(e)||!Ve(t))return!1;let n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&Ge(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function qe(e){return He(e)?e:Ue(e)?e.document:e?.ownerDocument??document}function Je(e){return Ge(e)?Je(e.host):He(e)?e.defaultView??window:Ve(e)?e.ownerDocument?.defaultView??window:window}function Ye(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var Xe=class{element;#e=S(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return m(this.#e)}set root(e){b(this.#e,e)}constructor(e){this.element=typeof e==`function`?Z(e):e}getDocument=()=>qe(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>Ye(this.root);isActiveElement=e=>e===this.getActiveElement();getElementById(e){return this.root.getElementById(e)}querySelector=e=>this.root?this.root.querySelector(e):null;querySelectorAll=e=>this.root?this.root.querySelectorAll(e):[];setTimeout=(e,t)=>this.getWindow().setTimeout(e,t);clearTimeout=e=>this.getWindow().clearTimeout(e)},Ze=typeof document<`u`,Qe=$e();function $e(){return Ze&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function et(e){return e instanceof HTMLElement}function tt(e){return e instanceof Element||e instanceof SVGElement}var nt=me({component:`dialog`,parts:[`content`,`trigger`,`overlay`,`title`,`description`,`close`,`cancel`,`action`]}),$=new q(`Dialog.Root | AlertDialog.Root`),rt=class e{static create(t){let n=$.getOr(null);return $.set(new e(t,n))}opts;#e=L(null);get triggerNode(){return m(this.#e)}set triggerNode(e){b(this.#e,e,!0)}#t=L(null);get contentNode(){return m(this.#t)}set contentNode(e){b(this.#t,e,!0)}#n=L(null);get overlayNode(){return m(this.#n)}set overlayNode(e){b(this.#n,e,!0)}#r=L(null);get descriptionNode(){return m(this.#r)}set descriptionNode(e){b(this.#r,e,!0)}#i=L(void 0);get contentId(){return m(this.#i)}set contentId(e){b(this.#i,e,!0)}#a=L(void 0);get titleId(){return m(this.#a)}set titleId(e){b(this.#a,e,!0)}#o=L(void 0);get triggerId(){return m(this.#o)}set triggerId(e){b(this.#o,e,!0)}#s=L(void 0);get descriptionId(){return m(this.#s)}set descriptionId(e){b(this.#s,e,!0)}#c=L(null);get cancelNode(){return m(this.#c)}set cancelNode(e){b(this.#c,e,!0)}#l=L(0);get nestedOpenCount(){return m(this.#l)}set nestedOpenCount(e){b(this.#l,e,!0)}depth;parent;contentPresence;overlayPresence;constructor(e,t){this.opts=e,this.parent=t,this.depth=t?t.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new we({ref:Z(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new we({ref:Z(()=>this.overlayNode),open:this.opts.open,enabled:!0}),J(()=>this.opts.open.current,e=>{this.parent&&(e?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),he(()=>{this.opts.open.current&&this.parent?.decrementNested()})}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}getBitsAttr=e=>nt.getAttr(e,this.opts.variant.current);incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}#u=S(()=>({"data-state":ce(this.opts.open.current)}));get sharedProps(){return m(this.#u)}set sharedProps(e){b(this.#u,e)}},it=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=X(this.opts.ref,e=>{this.root.triggerNode=e,this.root.triggerId=e?.id}),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleOpen()}onkeydown(e){this.opts.disabled.current||(e.key===` `||e.key===`Enter`)&&(e.preventDefault(),this.root.handleOpen())}#e=S(()=>({id:this.opts.id.current,"aria-haspopup":`dialog`,"aria-expanded":le(this.root.opts.open.current),"aria-controls":this.root.contentId,[this.root.getBitsAttr(`trigger`)]:``,onkeydown:this.onkeydown,onclick:this.onclick,disabled:this.opts.disabled.current?!0:void 0,...this.root.sharedProps,...this.attachment}));get props(){return m(this.#e)}set props(e){b(this.#e,e)}},at=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.root.titleId=this.opts.id.current,this.attachment=X(this.opts.ref),J.pre(()=>this.opts.id.current,e=>{this.root.titleId=e})}#e=S(()=>({id:this.opts.id.current,role:`heading`,"aria-level":this.opts.level.current,[this.root.getBitsAttr(`title`)]:``,...this.root.sharedProps,...this.attachment}));get props(){return m(this.#e)}set props(e){b(this.#e,e)}},ot=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.root.descriptionId=this.opts.id.current,this.attachment=X(this.opts.ref,e=>{this.root.descriptionNode=e}),J.pre(()=>this.opts.id.current,e=>{this.root.descriptionId=e})}#e=S(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`description`)]:``,...this.root.sharedProps,...this.attachment}));get props(){return m(this.#e)}set props(e){b(this.#e,e)}},st=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=X(this.opts.ref,e=>{this.root.contentNode=e,this.root.contentId=e?.id})}#e=S(()=>({open:this.root.opts.open.current}));get snippetProps(){return m(this.#e)}set snippetProps(e){b(this.#e,e)}#t=S(()=>({id:this.opts.id.current,role:this.root.opts.variant.current===`alert-dialog`?`alertdialog`:`dialog`,"aria-modal":`true`,"aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr(`content`)]:``,style:{pointerEvents:`auto`,outline:this.root.opts.variant.current===`alert-dialog`?`none`:void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:`layout style`},tabindex:this.root.opts.variant.current===`alert-dialog`?-1:void 0,"data-nested-open":pe(this.root.nestedOpenCount>0),"data-nested":pe(this.root.parent!==null),...de(this.root.contentPresence.transitionStatus),...this.root.sharedProps,...this.attachment}));get props(){return m(this.#t)}set props(e){b(this.#t,e)}get shouldRender(){return this.root.contentPresence.shouldRender}},ct=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=X(this.opts.ref,e=>this.root.overlayNode=e)}#e=S(()=>({open:this.root.opts.open.current}));get snippetProps(){return m(this.#e)}set snippetProps(e){b(this.#e,e)}#t=S(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`overlay`)]:``,style:{pointerEvents:`auto`,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":pe(this.root.nestedOpenCount>0),"data-nested":pe(this.root.parent!==null),...de(this.root.overlayPresence.transitionStatus),...this.root.sharedProps,...this.attachment}));get props(){return m(this.#t)}set props(e){b(this.#t,e)}get shouldRender(){return this.root.overlayPresence.shouldRender}},lt=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=X(this.opts.ref,e=>this.root.cancelNode=e),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===` `||e.key===`Enter`)&&(e.preventDefault(),this.root.handleClose())}#e=S(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`cancel`)]:``,onclick:this.onclick,onkeydown:this.onkeydown,tabindex:0,disabled:this.opts.disabled.current,...this.root.sharedProps,...this.attachment}));get props(){return m(this.#e)}set props(e){b(this.#e,e)}};function ut(n,i){r(i,!0);let a=O(i,`open`,15,!1),o=O(i,`onOpenChange`,3,G),s=O(i,`onOpenChangeComplete`,3,G);rt.create({variant:Z(()=>`alert-dialog`),open:Z(()=>a(),e=>{a(e),o()(e)}),onOpenChangeComplete:Z(()=>s())});var c=k(),l=R(c);B(l,()=>i.children??t),e(n,c),f()}var dt=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`child`,`children`,`level`]),ft=c(`<div><!></div>`);function pt(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`ref`,15,null),l=O(i,`level`,3,2),u=y(i,dt),p=at.create({id:Z(()=>s()),level:Z(()=>l()),ref:Z(()=>c(),e=>c(e))}),h=S(()=>Q(u,p.props));var g=k(),_=R(g),v=t=>{var n=k(),r=R(n);B(r,()=>i.child,()=>({props:m(h)})),e(t,n)},b=n=>{var r=ft();C(r,()=>({...m(h)}));var a=T(r);B(a,()=>i.children??t),j(r),e(n,r)};a(_,e=>{i.child?e(v):e(b,-1)}),e(n,g),f()}var mt=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`children`,`child`,`disabled`]),ht=c(`<button><!></button>`);function gt(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`ref`,15,null),l=O(i,`disabled`,3,!1),u=y(i,mt),p=lt.create({id:Z(()=>s()),ref:Z(()=>c(),e=>c(e)),disabled:Z(()=>!!l())}),h=S(()=>Q(u,p.props));var g=k(),_=R(g),v=t=>{var n=k(),r=R(n);B(r,()=>i.child,()=>({props:m(h)})),e(t,n)},b=n=>{var r=ht();C(r,()=>({...m(h)}));var a=T(r);B(a,()=>i.children??t),j(r),e(n,r)};a(_,e=>{i.child?e(v):e(b,-1)}),e(n,g),f()}function _t(n,r){var i=k(),a=R(i);p(a,()=>r.children,n=>{var i=k(),a=R(i);B(a,()=>r.children??t),e(n,i)}),e(n,i)}var vt=new q(`BitsConfig`);function yt(){let e=new bt(null,{});return vt.getOr(e).opts}var bt=class{opts;constructor(e,t){let n=xt(e,t);this.opts={defaultPortalTo:n(e=>e.defaultPortalTo),defaultLocale:n(e=>e.defaultLocale)}}};function xt(e,t){return n=>Z(()=>{let r=n(t)?.current;if(r!==void 0)return r;if(e!==null)return n(e.opts)?.current})}function St(e,t){return n=>{let r=yt();return Z(()=>{let i=n();if(i!==void 0)return i;let a=e(r).current;return a===void 0?t:a})}}var Ct=St(e=>e.defaultPortalTo,`body`);function wt(n,o){r(o,!0);let s=Ct(()=>o.to),c=V(),l=S(u);function u(){if(!Ze||o.disabled)return null;let e=null;return e=typeof s.current==`string`?document.querySelector(s.current):s.current,e}let d;function p(){d&&=(A(d),null)}J([()=>m(l),()=>o.disabled],([e,t])=>{if(!e||t){p();return}return d=i(_t,{target:e,props:{children:o.children},context:c}),()=>{p()}});var h=k(),g=R(h),_=n=>{var r=k(),i=R(r);B(i,()=>o.children??t),e(n,r)};a(g,e=>{o.disabled&&e(_)}),e(n,h),f()}var Tt=class{eventName;options;constructor(e,t={bubbles:!0,cancelable:!0}){this.eventName=e,this.options=t}createEvent(e){return new CustomEvent(this.eventName,{...this.options,detail:e})}dispatch(e,t){let n=this.createEvent(t);return e.dispatchEvent(n),n}listen(e,t,n){return H(e,this.eventName,e=>{t(e)},n)}};function Et(e,t=500){let n=null,r=(...r)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)};return r.destroy=()=>{n!==null&&(clearTimeout(n),n=null)},r}function Dt(e,t){return e===t||e.contains(t)}function Ot(e){return e?.ownerDocument??document}function kt(e,t){let{clientX:n,clientY:r}=e,i=t.getBoundingClientRect();return n<i.left||n>i.right||r<i.top||r>i.bottom}var At=[`input:not([inert]):not([inert] *)`,`select:not([inert]):not([inert] *)`,`textarea:not([inert]):not([inert] *)`,`a[href]:not([inert]):not([inert] *)`,`area[href]:not([inert]):not([inert] *)`,`button:not([inert]):not([inert] *)`,`[tabindex]:not(slot):not([inert]):not([inert] *)`,`audio[controls]:not([inert]):not([inert] *)`,`video[controls]:not([inert]):not([inert] *)`,`[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)`,`details>summary:first-of-type:not([inert]):not([inert] *)`,`details:not([inert]):not([inert] *)`],jt=At.join(`,`),Mt=typeof Element>`u`,Nt=Mt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Pt=!Mt&&Element.prototype.getRootNode?function(e){return e?.getRootNode?.call(e)}:function(e){return e?.ownerDocument},Ft=function(e,t){t===void 0&&(t=!0);var n=e?.getAttribute?.call(e,`inert`);return n===``||n===`true`||t&&e&&(typeof e.closest==`function`?e.closest(`[inert]`):Ft(e.parentNode))},It=function(e){var t=e?.getAttribute?.call(e,`contenteditable`);return t===``||t===`true`},Lt=function(e,t,n){if(Ft(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(jt));return t&&Nt.call(e,jt)&&r.unshift(e),r=r.filter(n),r},Rt=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var a=i.shift();if(!Ft(a,!1)){if(a.tagName===`SLOT`){var o=a.assignedElements(),s=Rt(o.length?o:a.children,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{Nt.call(a,jt)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||typeof n.getShadowRoot==`function`&&n.getShadowRoot(a),l=!Ft(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&l){var u=Rt(c===!0?a.children:c.children,!0,n);n.flatten?r.push.apply(r,u):r.push({scopeParent:a,candidates:u})}else i.unshift.apply(i,a.children)}}}return r},zt=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},Bt=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||It(e))&&!zt(e)?0:e.tabIndex},Vt=function(e,t){var n=Bt(e);return n<0&&t&&!zt(e)?0:n},Ht=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Ut=function(e){return e.tagName===`INPUT`},Wt=function(e){return Ut(e)&&e.type===`hidden`},Gt=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},Kt=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},qt=function(e){if(!e.name)return!0;var t=e.form||Pt(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&window.CSS!==void 0&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(e){return console.error(`Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s`,e.message),!1}var i=Kt(r,e.form);return!i||i===e},Jt=function(e){return Ut(e)&&e.type===`radio`},Yt=function(e){return Jt(e)&&!qt(e)},Xt=function(e){var t=e&&Pt(e),n=t?.host,r=!1;if(t&&t!==e){var i,a,o;for(r=!!((i=n)!=null&&(a=i.ownerDocument)!=null&&a.contains(n)||e!=null&&(o=e.ownerDocument)!=null&&o.contains(e));!r&&n;){var s,c;t=Pt(n),n=t?.host,r=!!((s=n)!=null&&(c=s.ownerDocument)!=null&&c.contains(n))}}return r},Zt=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},Qt=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(n===`full-native`&&`checkVisibility`in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});var i=getComputedStyle(e).visibility;if(i===`hidden`||i===`collapse`)return!0;var a=Nt.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(Nt.call(a,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`full-native`||n===`legacy-full`){if(typeof r==`function`){for(var o=e;e;){var s=e.parentElement,c=Pt(e);if(s&&!s.shadowRoot&&r(s)===!0)return Zt(e);e=e.assignedSlot?e.assignedSlot:!s&&c!==e.ownerDocument?c.host:s}e=o}if(Xt(e))return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return Zt(e);return!1},$t=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return Nt.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},en=function(e,t){return!(t.disabled||Wt(t)||Qt(t,e)||Gt(t)||$t(t))},tn=function(e,t){return!(Yt(t)||Bt(t)<0||!en(e,t))},nn=function(e){var t=parseInt(e.getAttribute(`tabindex`),10);return!!(isNaN(t)||t>=0)},rn=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=Vt(a,i),s=i?rn(e.candidates):a;o===0?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort(Ht).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},an=function(e,t){return t||={},rn(t.getShadowRoot?Rt([e],t.includeContainer,{filter:tn.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:nn}):Lt(e,t.includeContainer,tn.bind(null,t)))},on=function(e,t){return t||={},t.getShadowRoot?Rt([e],t.includeContainer,{filter:en.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):Lt(e,t.includeContainer,en.bind(null,t))},sn=At.concat(`iframe:not([inert]):not([inert] *)`).join(`,`),cn=function(e,t){if(t||={},!e)throw Error(`No node provided`);return Nt.call(e,sn)!==!1&&en(t,e)},ln=`data-context-menu-trigger`,un=`data-context-menu-content`;new q(`Menu.Root`),new q(`Menu.Root | Menu.Sub`),new q(`Menu.Content`),new q(`Menu.Group | Menu.RadioGroup`),new q(`Menu.RadioGroup`),new q(`Menu.CheckboxGroup`),new Tt(`bitsmenuopen`,{bubbles:!1,cancelable:!0}),me({component:`menu`,parts:[`trigger`,`content`,`sub-trigger`,`item`,`group`,`group-heading`,`checkbox-group`,`checkbox-item`,`radio-group`,`radio-item`,`separator`,`sub-content`,`arrow`]}),globalThis.bitsDismissableLayers??=new Map;var dn=class e{static create(t){return new e(t)}opts;#e;#t;#n={pointerdown:!1};#r=!1;#i=!1;#a=void 0;#o;#s=G;constructor(e){this.opts=e,this.#t=e.interactOutsideBehavior,this.#e=e.onInteractOutside,this.#o=e.onFocusOutside,h(()=>{this.#a=Ot(this.opts.ref.current)});let t=G,n=null,r=!1,i=()=>{n!=null&&(clearTimeout(n),n=null)},a=()=>{i(),this.#g(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),t()};J([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return i(),n=Le(1,()=>{n=null,!(r||!this.opts.ref.current)&&(globalThis.bitsDismissableLayers.set(this,this.#t),t(),t=this.#l())}),a}),he(()=>{r=!0,i(),this.#g.destroy(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),this.#s(),t()})}#c=e=>{e.defaultPrevented||this.opts.ref.current&&ue(()=>{!this.opts.ref.current||this.#h(e.target)||e.target&&!this.#i&&this.#o.current?.(e)})};#l(){return De(H(this.#a,`pointerdown`,De(this.#f,this.#m),{capture:!0}),H(this.#a,`pointerdown`,De(this.#p,this.#d)),H(this.#a,`focusin`,this.#c))}#u=e=>{let t=e;t.defaultPrevented&&(t=hn(e)),this.#e.current(e)};#d=Et(e=>{if(!this.opts.ref.current){this.#s();return}let t=this.opts.isValidEvent.current(e,this.opts.ref.current)||mn(e,this.opts.ref.current);if(!this.#r||this.#_()||!t){this.#s();return}let n=e;if(n.defaultPrevented&&(n=hn(n)),this.#t.current!==`close`&&this.#t.current!==`defer-otherwise-close`){this.#s();return}e.pointerType===`touch`?(this.#s(),this.#s=H(this.#a,`click`,this.#u,{once:!0})):this.#e.current(n)},10);#f=e=>{this.#n[e.type]=!0};#p=e=>{this.#n[e.type]=!1};#m=()=>{this.opts.ref.current&&(this.#r=pn(this.opts.ref.current))};#h=e=>this.opts.ref.current?Dt(this.opts.ref.current,e):!1;#g=Et(()=>{for(let e in this.#n)this.#n[e]=!1;this.#r=!1},20);#_(){return Object.values(this.#n).some(Boolean)}#v=()=>{this.#i=!0};#y=()=>{this.#i=!1};props={onfocuscapture:this.#v,onblurcapture:this.#y}};function fn(e=[...globalThis.bitsDismissableLayers]){return e.findLast(([e,{current:t}])=>t===`close`||t===`ignore`)}function pn(e){let t=[...globalThis.bitsDismissableLayers],n=fn(t);if(n)return n[0].opts.ref.current===e;let[r]=t[0];return r.opts.ref.current===e}function mn(e,t){let n=e.target;if(!tt(n))return!1;let r=!!n.closest(`[${ln}]`),i=!!t.closest(`[${un}]`);return`button`in e&&e.button>0&&!r?!1:`button`in e&&e.button===0&&r&&i?!0:r&&i?!1:Ot(n).documentElement.contains(n)&&!Dt(t,n)&&kt(e,t)}function hn(e){let t=e.currentTarget,n=e.target,r;r=e instanceof PointerEvent?new PointerEvent(e.type,e):new PointerEvent(`pointerdown`,e);let i=!1;return new Proxy(r,{get:(r,a)=>a===`currentTarget`?t:a===`target`?n:a===`preventDefault`?()=>{i=!0,typeof r.preventDefault==`function`&&r.preventDefault()}:a===`defaultPrevented`?i:a in r?r[a]:e[a]})}function gn(n,i){r(i,!0);let a=O(i,`interactOutsideBehavior`,3,`close`),o=O(i,`onInteractOutside`,3,G),s=O(i,`onFocusOutside`,3,G),c=O(i,`isValidEvent`,3,()=>!1),l=dn.create({id:Z(()=>i.id),interactOutsideBehavior:Z(()=>a()),onInteractOutside:Z(()=>o()),enabled:Z(()=>i.enabled),onFocusOutside:Z(()=>s()),isValidEvent:Z(()=>c()),ref:i.ref});var u=k(),d=R(u);B(d,()=>i.children??t,()=>({props:l.props})),e(n,u),f()}globalThis.bitsEscapeLayers??=new Map;var _n=class e{static create(t){return new e(t)}opts;domContext;constructor(e){this.opts=e,this.domContext=new Xe(this.opts.ref);let t=G;J(()=>e.enabled.current,n=>(n&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),t=this.#e()),()=>{t(),globalThis.bitsEscapeLayers.delete(this)}))}#e=()=>H(this.domContext.getDocument(),`keydown`,this.#t,{passive:!1});#t=e=>{if(e.key!==`Escape`||!vn(this))return;let t=new KeyboardEvent(e.type,e);e.preventDefault();let n=this.opts.escapeKeydownBehavior.current;(n===`close`||n===`defer-otherwise-close`)&&this.opts.onEscapeKeydown.current(t)}};function vn(e){let t=[...globalThis.bitsEscapeLayers],n=t.findLast(([e,{current:t}])=>t===`close`||t===`ignore`);if(n)return n[0]===e;let[r]=t[0];return r===e}function yn(n,i){r(i,!0);let a=O(i,`escapeKeydownBehavior`,3,`close`),o=O(i,`onEscapeKeydown`,3,G);_n.create({escapeKeydownBehavior:Z(()=>a()),onEscapeKeydown:Z(()=>o()),enabled:Z(()=>i.enabled),ref:i.ref});var s=k(),c=R(s);B(c,()=>i.children??t),e(n,s),f()}var bn=class e{static instance;#e=ye([]);#t=new WeakMap;#n=new WeakMap;static getInstance(){return this.instance||=new e,this.instance}register(e){let t=this.getActive();t&&t!==e&&t.pause();let n=document.activeElement;n&&n!==document.body&&this.#n.set(e,n),this.#e.current=this.#e.current.filter(t=>t!==e),this.#e.current.unshift(e)}unregister(e){this.#e.current=this.#e.current.filter(t=>t!==e);let t=this.getActive();t&&t.resume()}getActive(){return this.#e.current[0]}setFocusMemory(e,t){this.#t.set(e,t)}getFocusMemory(e){return this.#t.get(e)}isActiveScope(e){return this.getActive()===e}setPreFocusMemory(e,t){this.#n.set(e,t)}getPreFocusMemory(e){return this.#n.get(e)}clearPreFocusMemory(e){this.#n.delete(e)}},xn=class e{#e=!1;#t=null;#n=bn.getInstance();#r=[];#i;constructor(e){this.#i=e}get paused(){return this.#e}pause(){this.#e=!0}resume(){this.#e=!1}#a(){for(let e of this.#r)e();this.#r=[]}mount(e){this.#t&&this.unmount(),this.#t=e,this.#n.register(this),this.#c(),this.#o()}unmount(){this.#t&&=(this.#a(),this.#s(),this.#n.unregister(this),this.#n.clearPreFocusMemory(this),null)}#o(){if(!this.#t)return;let e=new CustomEvent(`focusScope.onOpenAutoFocus`,{bubbles:!1,cancelable:!0});this.#i.onOpenAutoFocus.current(e),e.defaultPrevented||requestAnimationFrame(()=>{if(!this.#t)return;let e=this.#u();e?(e.focus(),this.#n.setFocusMemory(this,e)):this.#t.focus()})}#s(){let e=new CustomEvent(`focusScope.onCloseAutoFocus`,{bubbles:!1,cancelable:!0});if(this.#i.onCloseAutoFocus.current?.(e),!e.defaultPrevented){let e=this.#n.getPreFocusMemory(this);if(e&&document.contains(e))try{e.focus()}catch{document.body.focus()}}}#c(){if(!this.#t||!this.#i.trap.current)return;let e=this.#t,t=e.ownerDocument;this.#r.push(H(t,`focusin`,t=>{if(this.#e||!this.#n.isActiveScope(this))return;let n=t.target;if(n){if(e.contains(n))this.#n.setFocusMemory(this,n);else{let n=this.#n.getFocusMemory(this);if(n&&e.contains(n)&&cn(n))t.preventDefault(),n.focus();else{let t=this.#u(),n=this.#d()[0];(t||n||e).focus()}}}},{capture:!0}),H(e,`keydown`,e=>{if(!this.#i.loop||this.#e||e.key!==`Tab`||!this.#n.isActiveScope(this))return;let n=this.#l();if(n.length===0)return;let r=n[0],i=n[n.length-1];!e.shiftKey&&t.activeElement===i?(e.preventDefault(),r.focus()):e.shiftKey&&t.activeElement===r&&(e.preventDefault(),i.focus())}));let n=new MutationObserver(()=>{let t=this.#n.getFocusMemory(this);if(t&&!e.contains(t)){let t=this.#u(),n=this.#d()[0],r=t||n;r?(r.focus(),this.#n.setFocusMemory(this,r)):e.focus()}});n.observe(e,{childList:!0,subtree:!0}),this.#r.push(()=>n.disconnect())}#l(){return this.#t?an(this.#t,{includeContainer:!1,getShadowRoot:!0}):[]}#u(){return this.#l()[0]||null}#d(){return this.#t?on(this.#t,{includeContainer:!1,getShadowRoot:!0}):[]}static use(t){let n=null;return J([()=>t.ref.current,()=>t.enabled.current],([r,i])=>{r&&i?(n||=new e(t),n.mount(r)):n&&=(n.unmount(),null)}),he(()=>{n?.unmount()}),{get props(){return{tabindex:-1}}}}};function Sn(n,i){r(i,!0);let a=O(i,`enabled`,3,!1),o=O(i,`trapFocus`,3,!1),s=O(i,`loop`,3,!1),c=O(i,`onCloseAutoFocus`,3,G),l=O(i,`onOpenAutoFocus`,3,G),u=xn.use({enabled:Z(()=>a()),trap:Z(()=>o()),loop:s(),onCloseAutoFocus:Z(()=>c()),onOpenAutoFocus:Z(()=>l()),ref:i.ref});var d=k(),p=R(d);B(p,()=>i.focusScope??t,()=>({props:u.props})),e(n,d),f()}var Cn=()=>{};globalThis.bitsTextSelectionLayers??=new Map;var wn=class e{static create(t){return new e(t)}opts;domContext;#e=G;#t=!1;#n=Cn;#r=Cn;constructor(e){this.opts=e,this.domContext=new Xe(e.ref);let t=G;J(()=>[this.opts.enabled.current,this.opts.onPointerDown.current,this.opts.onPointerUp.current],([e,n,r])=>(this.#t=e,this.#n=n,this.#r=r,e&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),t(),t=this.#i()),()=>{this.#t=!1,t(),this.#s(),globalThis.bitsTextSelectionLayers.delete(this)}))}#i(){return De(H(this.domContext.getDocument(),`pointerdown`,this.#o),H(this.domContext.getDocument(),`pointerup`,Ae(this.#s,this.#a)))}#a=e=>{this.#r(e)};#o=e=>{if(!this.#t)return;let t=this.opts.ref.current,n=e.target;!et(t)||!et(n)||!On(this)||!Ke(t,n)||(this.#n(e),!e.defaultPrevented&&(this.#e=En(t,this.domContext.getDocument().body)))};#s=()=>{this.#e(),this.#e=G}},Tn=e=>e.style.userSelect||e.style.webkitUserSelect;function En(e,t){let n=Tn(t),r=Tn(e);return Dn(t,`none`),Dn(e,`text`),()=>{Dn(t,n),Dn(e,r)}}function Dn(e,t){e.style.userSelect=t,e.style.webkitUserSelect=t}function On(e){let t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;let n=t.at(-1);return n?n[0]===e:!1}function kn(n,i){r(i,!0);let a=O(i,`preventOverflowTextSelection`,3,!0),o=O(i,`onPointerDown`,3,G),s=O(i,`onPointerUp`,3,G);wn.create({id:Z(()=>i.id),onPointerDown:Z(()=>o()),onPointerUp:Z(()=>s()),enabled:Z(()=>i.enabled&&a()),ref:i.ref});var c=k(),l=R(c);B(l,()=>i.children??t),e(n,c),f()}globalThis.bitsIdCounter??={current:0};function An(e=`bits`){return globalThis.bitsIdCounter.current++,`${e}-${globalThis.bitsIdCounter.current}`}var jn=class{#e;#t=0;#n=L();#r;constructor(e){this.#e=e}#i(){--this.#t,this.#r&&this.#t<=0&&(this.#r(),b(this.#n,void 0),this.#r=void 0)}get(...e){return this.#t+=1,m(this.#n)===void 0&&(this.#r=s(()=>{b(this.#n,this.#e(...e),!0)})),h(()=>()=>{this.#i()}),m(this.#n)}},Mn=new ae,Nn=L(null),Pn=null,Fn=null,In=!1,Ln=Z(()=>{for(let e of Mn.values())if(e)return!0;return!1}),Rn=null,zn=new jn(()=>{function e(){document.body.setAttribute(`style`,m(Nn)??``),document.body.style.removeProperty(`--scrollbar-width`),Qe&&Pn?.(),b(Nn,null)}function t(){Fn!==null&&(window.clearTimeout(Fn),Fn=null)}function n(e,n){t(),In=!0,Rn=Date.now();let r=Rn,i=()=>{Fn=null,Rn===r&&(Vn(Mn)?In=!1:(In=!1,n()))},a=e===null?24:e;Fn=window.setTimeout(i,a)}function r(){m(Nn)===null&&Mn.size===0&&!In&&b(Nn,document.body.getAttribute(`style`),!0)}return J(()=>Ln.current,()=>{if(!Ln.current)return;r(),In=!1;let e=getComputedStyle(document.documentElement),t=getComputedStyle(document.body),n=e.scrollbarGutter?.includes(`stable`)||t.scrollbarGutter?.includes(`stable`),i=window.innerWidth-document.documentElement.clientWidth,a={padding:Number.parseInt(t.paddingRight??`0`,10)+i,margin:Number.parseInt(t.marginRight??`0`,10)};i>0&&!n&&(document.body.style.paddingRight=`${a.padding}px`,document.body.style.marginRight=`${a.margin}px`,document.body.style.setProperty(`--scrollbar-width`,`${i}px`)),document.body.style.overflow=`hidden`,Qe&&(Pn=H(document,`touchmove`,e=>{e.target===document.documentElement&&(e.touches.length>1||e.preventDefault())},{passive:!1})),ue(()=>{document.body.style.pointerEvents=`none`,document.body.style.overflow=`hidden`})}),he(()=>()=>{Pn?.()}),{get lockMap(){return Mn},resetBodyStyle:e,scheduleCleanupIfNoNewLocks:n,cancelPendingCleanup:t,ensureInitialStyleCaptured:r}}),Bn=class{#e=An();#t;#n=()=>null;#r;locked;constructor(e,t=()=>null){this.#t=e,this.#n=t,this.#r=zn.get(),this.#r&&(this.#r.cancelPendingCleanup(),this.#r.ensureInitialStyleCaptured(),this.#r.lockMap.set(this.#e,this.#t??!1),this.locked=Z(()=>this.#r.lockMap.get(this.#e)??!1,e=>this.#r.lockMap.set(this.#e,e)),he(()=>{if(this.#r.lockMap.delete(this.#e),Vn(this.#r.lockMap))return;let e=this.#n();this.#r.scheduleCleanupIfNoNewLocks(e,()=>{this.#r.resetBodyStyle()})}))}};function Vn(e){for(let[t,n]of e)if(n)return!0;return!1}function Hn(e,t){r(t,!0);let n=O(t,`preventScroll`,3,!0),i=O(t,`restoreScrollDelay`,3,null);n()&&new Bn(n(),()=>i()),f()}var Un=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`children`,`child`,`ref`,`forceMount`,`interactOutsideBehavior`,`onCloseAutoFocus`,`onEscapeKeydown`,`onOpenAutoFocus`,`onInteractOutside`,`preventScroll`,`trapFocus`,`restoreScrollDelay`]),Wn=c(`<!> <!>`,1),Gn=c(`<!> <div><!></div>`,1);function Kn(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`ref`,15,null),l=O(i,`forceMount`,3,!1),u=O(i,`interactOutsideBehavior`,3,`ignore`),p=O(i,`onCloseAutoFocus`,3,G),h=O(i,`onEscapeKeydown`,3,G),g=O(i,`onOpenAutoFocus`,3,G),_=O(i,`onInteractOutside`,3,G),v=O(i,`preventScroll`,3,!0),b=O(i,`trapFocus`,3,!0),x=O(i,`restoreScrollDelay`,3,null),w=y(i,Un),E=st.create({id:Z(()=>s()),ref:Z(()=>c(),e=>c(e))}),D=S(()=>Q(w,E.props));var A=k(),M=R(A),ee=n=>{Sn(n,{get ref(){return E.opts.ref},loop:!0,get trapFocus(){return b()},get enabled(){return E.root.opts.open.current},get onCloseAutoFocus(){return p()},onOpenAutoFocus:e=>{g()(e),!e.defaultPrevented&&(e.preventDefault(),Le(0,()=>E.opts.ref.current?.focus()))},focusScope:(n,r)=>{let o=()=>(r?.()).props;yn(n,F(()=>m(D),{get enabled(){return E.root.opts.open.current},get ref(){return E.opts.ref},onEscapeKeydown:e=>{h()(e),!e.defaultPrevented&&E.root.handleClose()},children:(n,r)=>{gn(n,F(()=>m(D),{get ref(){return E.opts.ref},get enabled(){return E.root.opts.open.current},get interactOutsideBehavior(){return u()},onInteractOutside:e=>{_()(e),!e.defaultPrevented&&E.root.handleClose()},children:(n,r)=>{kn(n,F(()=>m(D),{get ref(){return E.opts.ref},get enabled(){return E.root.opts.open.current},children:(n,r)=>{var s=k(),c=R(s),l=t=>{var n=Wn(),r=R(n),s=e=>{Hn(e,{get preventScroll(){return v()},get restoreScrollDelay(){return x()}})};a(r,e=>{E.root.opts.open.current&&e(s)});var c=P(r,2);{let e=S(()=>({props:Q(m(D),o()),...E.snippetProps}));B(c,()=>i.child,()=>m(e))}e(t,n)},u=n=>{var r=Gn(),a=R(r);Hn(a,{get preventScroll(){return v()}});var s=P(a,2);C(s,e=>({...e}),[()=>Q(m(D),o())]);var c=T(s);B(c,()=>i.children??t),j(s),e(n,r)};a(c,e=>{i.child?e(l):e(u,-1)}),e(n,s)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};a(M,e=>{(E.shouldRender||l())&&e(ee)}),e(n,A),f()}var qn=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`forceMount`,`child`,`children`,`ref`]),Jn=c(`<div><!></div>`);function Yn(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`forceMount`,3,!1),l=O(i,`ref`,15,null),u=y(i,qn),p=ct.create({id:Z(()=>s()),ref:Z(()=>l(),e=>l(e))}),h=S(()=>Q(u,p.props));var g=k(),_=R(g),v=n=>{var r=k(),o=R(r),s=t=>{var n=k(),r=R(n);{let e=S(()=>({props:Q(m(h)),...p.snippetProps}));B(r,()=>i.child,()=>m(e))}e(t,n)},c=n=>{var r=Jn();C(r,e=>({...e}),[()=>Q(m(h))]);var a=T(r);B(a,()=>i.children??t,()=>p.snippetProps),j(r),e(n,r)};a(o,e=>{i.child?e(s):e(c,-1)}),e(n,r)};a(_,e=>{(p.shouldRender||c())&&e(v)}),e(n,g),f()}var Xn=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`children`,`child`,`disabled`]),Zn=c(`<button><!></button>`);function Qn(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`ref`,15,null),l=O(i,`disabled`,3,!1),u=y(i,Xn),p=it.create({id:Z(()=>s()),ref:Z(()=>c(),e=>c(e)),disabled:Z(()=>!!l())}),h=S(()=>Q(u,p.props));var g=k(),_=R(g),v=t=>{var n=k(),r=R(n);B(r,()=>i.child,()=>({props:m(h)})),e(t,n)},b=n=>{var r=Zn();C(r,()=>({...m(h)}));var a=T(r);B(a,()=>i.children??t),j(r),e(n,r)};a(_,e=>{i.child?e(v):e(b,-1)}),e(n,g),f()}var $n=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`children`,`child`,`ref`]),er=c(`<div><!></div>`);function tr(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`ref`,15,null),l=y(i,$n),u=ot.create({id:Z(()=>s()),ref:Z(()=>c(),e=>c(e))}),p=S(()=>Q(l,u.props));var h=k(),g=R(h),_=t=>{var n=k(),r=R(n);B(r,()=>i.child,()=>({props:m(p)})),e(t,n)},v=n=>{var r=er();C(r,()=>({...m(p)}));var a=T(r);B(a,()=>i.children??t),j(r),e(n,r)};a(g,e=>{i.child?e(_):e(v,-1)}),e(n,h),f()}var nr=me({component:`label`,parts:[`root`]}),rr=class e{static create(t){return new e(t)}opts;attachment;constructor(e){this.opts=e,this.attachment=X(this.opts.ref),this.onmousedown=this.onmousedown.bind(this)}onmousedown(e){e.detail>1&&e.preventDefault()}#e=S(()=>({id:this.opts.id.current,[nr.root]:``,onmousedown:this.onmousedown,...this.attachment}));get props(){return m(this.#e)}set props(e){b(this.#e,e)}},ir=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`id`,`ref`,`for`]),ar=c(`<label><!></label>`);function or(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`ref`,15,null),l=y(i,ir),u=rr.create({id:Z(()=>s()),ref:Z(()=>c(),e=>c(e))}),p=S(()=>Q(l,u.props,{for:i.for}));var h=k(),g=R(h),_=t=>{var n=k(),r=R(n);B(r,()=>i.child,()=>({props:m(p)})),e(t,n)},v=n=>{var r=ar();C(r,()=>({...m(p),for:i.for}));var a=T(r);B(a,()=>i.children??t),j(r),e(n,r)};a(g,e=>{i.child?e(_):e(v,-1)}),e(n,h),f()}var sr=me({component:`progress`,parts:[`root`]}),cr=class e{static create(t){return new e(t)}opts;attachment;constructor(e){this.opts=e,this.attachment=X(this.opts.ref)}#e=S(()=>({role:`progressbar`,value:this.opts.value.current,"aria-valuemin":this.opts.min.current,"aria-valuemax":this.opts.max.current,"aria-valuenow":this.opts.value.current===null?void 0:this.opts.value.current,"data-value":this.opts.value.current===null?void 0:this.opts.value.current,"data-state":lr(this.opts.value.current,this.opts.max.current),"data-max":this.opts.max.current,"data-min":this.opts.min.current,"data-indeterminate":this.opts.value.current===null?``:void 0,[sr.root]:``,...this.attachment}));get props(){return m(this.#e)}set props(e){b(this.#e,e)}};function lr(e,t){return e===null?`indeterminate`:e===t?`loaded`:`loading`}var ur=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`value`,`max`,`min`,`id`,`ref`]),dr=c(`<div><!></div>`);function fr(n,i){let o=d();r(i,!0);let s=O(i,`value`,3,0),c=O(i,`max`,3,100),l=O(i,`min`,3,0),u=O(i,`id`,19,()=>Y(o)),p=O(i,`ref`,15,null),h=y(i,ur),g=cr.create({value:Z(()=>s()),max:Z(()=>c()),min:Z(()=>l()),id:Z(()=>u()),ref:Z(()=>p(),e=>p(e))}),_=S(()=>Q(h,g.props));var v=k(),b=R(v),x=t=>{var n=k(),r=R(n);B(r,()=>i.child,()=>({props:m(_)})),e(t,n)},w=n=>{var r=dr();C(r,()=>({...m(_)}));var a=T(r);B(a,()=>i.children??t),j(r),e(n,r)};a(b,e=>{i.child?e(x):e(w,-1)}),e(n,v),f()}var pr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function mr(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=y(n,pr);var o=k(),s=R(o);{let e=S(()=>K(`gap-2 text-sm leading-none font-medium group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 flex items-center select-none group-data-[disabled=true]:pointer-events-none peer-disabled:cursor-not-allowed`,n.class));x(s,()=>or,(t,n)=>{n(t,F({"data-slot":`label`,get class(){return m(e)}},()=>a,{get ref(){return i()},set ref(e){i(e)}}))})}e(t,o),f()}var hr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`type`,`files`,`class`,`data-slot`]),gr=c(`<input/>`);function _r(t,n){r(n,!0);let i=O(n,`ref`,15,null),o=O(n,`value`,15),s=O(n,`files`,15),c=O(n,`data-slot`,3,`input`),l=y(n,hr);var u=k(),d=R(u),p=t=>{var r=gr();C(r,e=>({"data-slot":c(),class:e,type:`file`,...l}),[()=>K(`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`,n.class)],void 0,void 0,void 0,!0),I(r,e=>i(e),()=>i()),M(r,s),z(r,o),e(t,r)},m=t=>{var r=gr();C(r,e=>({"data-slot":c(),class:e,type:n.type,...l}),[()=>K(`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`,n.class)],void 0,void 0,void 0,!0),I(r,e=>i(e),()=>i()),z(r,o),e(t,r)};a(d,e=>{n.type===`file`?e(p):e(m,-1)}),e(t,u),f()}var vr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`variant`,`size`]);function yr(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=O(n,`variant`,3,`outline`),o=O(n,`size`,3,`default`),s=y(n,vr);var c=k(),l=R(c);{let e=S(()=>K(se({variant:a(),size:o()}),`cn-alert-dialog-cancel`,n.class));x(l,()=>gt,(t,n)=>{n(t,F({"data-slot":`alert-dialog-cancel`,get class(){return m(e)}},()=>s,{get ref(){return i()},set ref(e){i(e)}}))})}e(t,c),f()}var br=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function xr(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=y(n,br);var o=k(),s=R(o);{let e=S(()=>K(`bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 fixed inset-0 z-50`,n.class));x(s,()=>Yn,(t,n)=>{n(t,F({"data-slot":`alert-dialog-overlay`,get class(){return m(e)}},()=>a,{get ref(){return i()},set ref(e){i(e)}}))})}e(t,o),f()}var Sr=new Set([`$$slots`,`$$events`,`$$legacy`]);function Cr(t,n){let r=y(n,Sr);var i=k(),a=R(i);x(a,()=>wt,(e,t)=>{t(e,F(()=>r))}),e(t,i)}var wr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`size`,`portalProps`]),Tr=c(`<!> <!>`,1);function Er(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=O(n,`size`,3,`default`),o=y(n,wr);Cr(t,F(()=>n.portalProps,{children:(t,r)=>{var s=Tr(),c=R(s);xr(c,{});var l=P(c,2);{let e=S(()=>K(`gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 outline-none`,n.class));x(l,()=>Kn,(t,n)=>{n(t,F({"data-slot":`alert-dialog-content`,get"data-size"(){return a()},get class(){return m(e)}},()=>o,{get ref(){return i()},set ref(e){i(e)}}))})}e(t,s)},$$slots:{default:!0}})),f()}var Dr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function Or(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=y(n,Dr);var o=k(),s=R(o);{let e=S(()=>K(`text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,n.class));x(s,()=>tr,(t,n)=>{n(t,F({"data-slot":`alert-dialog-description`,get class(){return m(e)}},()=>a,{get ref(){return i()},set ref(e){i(e)}}))})}e(t,o),f()}var kr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Ar=c(`<div><!></div>`);function jr(n,i){r(i,!0);let a=O(i,`ref`,15,null),o=y(i,kr);var s=Ar();C(s,e=>({"data-slot":`alert-dialog-footer`,class:e,...o}),[()=>K(`-mx-4 -mb-4 rounded-b-xl border-t bg-muted/50 p-4 flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end`,i.class)]);var c=T(s);B(c,()=>i.children??t),j(s),I(s,e=>a(e),()=>a()),e(n,s),f()}var Mr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Nr=c(`<div><!></div>`);function Pr(n,i){r(i,!0);let a=O(i,`ref`,15,null),o=y(i,Mr);var s=Nr();C(s,e=>({"data-slot":`alert-dialog-header`,class:e,...o}),[()=>K(`grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]`,i.class)]);var c=T(s);B(c,()=>i.children??t),j(s),I(s,e=>a(e),()=>a()),e(n,s),f()}var Fr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function Ir(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=y(n,Fr);var o=k(),s=R(o);{let e=S(()=>K(`text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2`,n.class));x(s,()=>pt,(t,n)=>{n(t,F({"data-slot":`alert-dialog-title`,get class(){return m(e)}},()=>a,{get ref(){return i()},set ref(e){i(e)}}))})}e(t,o),f()}var Lr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`]);function Rr(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=y(n,Lr);var o=k(),s=R(o);x(s,()=>Qn,(e,t)=>{t(e,F({"data-slot":`alert-dialog-trigger`},()=>a,{get ref(){return i()},set ref(e){i(e)}}))}),e(t,o),f()}var zr=new Set([`$$slots`,`$$events`,`$$legacy`,`open`]);function Br(t,n){r(n,!0);let i=O(n,`open`,15,!1),a=y(n,zr);var o=k(),s=R(o);x(s,()=>ut,(e,t)=>{t(e,F(()=>a,{get open(){return i()},set open(e){i(e)}}))}),e(t,o),f()}var Vr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`max`,`value`]),Hr=c(`<div data-slot="progress-indicator" class="bg-primary size-full flex-1 transition-all"></div>`);function Ur(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=O(n,`max`,3,100),o=y(n,Vr);var s=k(),c=R(s);{let t=S(()=>K(`h-1 rounded-full bg-muted relative flex w-full items-center overflow-x-hidden`,n.class));x(c,()=>fr,(r,s)=>{s(r,F({"data-slot":`progress`,get class(){return m(t)},get value(){return n.value},get max(){return a()}},()=>o,{get ref(){return i()},set ref(e){i(e)},children:(t,r)=>{var i=Hr();g(()=>te(i,`transform: translateX(-${100-100*(n.value??0)/(a()??1)}%)`)),e(t,i)},$$slots:{default:!0}}))})}e(t,s),f()}var Wr=new Set([`$$slots`,`$$events`,`$$legacy`,`name`,`duration`,`label`,`variant`,`children`,`position`,`align`,`portal`,`onclick`,`onpress`,`class`,`message`]),Gr=c(`<div><div class="text-xs text-muted-foreground"><!></div> <!></div>`),Kr=c(`<!> <!>`,1);function qr(n,i){r(i,!0);let s=()=>E(m(U),`$countdown`,c),[c,u]=w(),d=O(i,`name`,3,`hold`),p=O(i,`duration`,3,800),x=O(i,`variant`,3,`ghost`),C=O(i,`position`,3,`left`),A=O(i,`align`,3,`center`),M=O(i,`portal`,3,!0),I=y(i,Wr),z=L(!1),V=L(!1),H=L(null),U=L(ne(v(p()))),W=S(()=>Math.round((1-s()/p())*100));h(()=>{s()===0&&se()});function ie(e){ce(e),e.altKey?se(!0):G()}function ae(e){e.key===` `&&G()}function G(){m(z)||(i.onpress?.(),b(z,!0),b(V,!0),N(b(U,re(p(),60),!0),`$countdown`,c),m(H)&&clearTimeout(m(H)))}function oe(){m(z)&&(b(H,setTimeout(()=>{b(V,!1)},m(W)>20?200:1e3),!0),b(z,!1),N(b(U,v(p()),!0),`$countdown`,c))}function se(e=!1){!m(z)&&!e||(i.onclick?.(),b(z,!1),b(H,setTimeout(()=>{b(V,!1),N(b(U,v(p()),!0),`$countdown`,c)},300),!0))}function ce(e){e.preventDefault(),e.stopPropagation()}function le(e,t){if(t)return document.body.appendChild(e),{destroy:()=>e.remove()}}var ue=Kr(),de=R(ue);{let n=S(()=>K(`select-none`,i.class)),r=S(()=>`anchor-name: --${d()};`);fe(de,F({get variant(){return x()}},()=>I,{get class(){return m(n)},onpointerdown:ie,onkeydown:ae,oncontextmenu:ce,onpointerup:oe,onpointerleave:oe,onkeyup:oe,get style(){return m(r)},children:(n,r)=>{var a=k(),o=R(a);B(o,()=>i.children??t),e(n,a)},$$slots:{default:!0}}))}var q=P(de,2),pe=t=>{var n=Gr(),r=T(n),s=T(r),c=t=>{var n=k(),r=R(n);B(r,()=>i.message),e(t,n)},u=t=>{var n=o();g(()=>l(n,i.label)),e(t,n)};a(s,e=>{i.message?e(c):e(u,-1)}),j(r),Ur(P(r,2),{get value(){return m(W)},class:`h-1 [&_div[data-slot=progress-indicator]]:bg-destructive/90 [&_div[data-slot=progress-indicator]]:transition-none`}),j(n),_(n,(e,t)=>le?.(e,t),M),g(e=>{ee(n,1,e),te(n,`position-anchor: --${d()}; position-area: ${C()} ${A()};`)},[()=>D(K(`fixed z-1002 w-fit min-w-26 transition-all ease-in-out space-y-1`,`bg-background/85 p-2 pt-1 rounded-md`,`starting:scale-0`))]),e(t,n)};a(q,e=>{m(V)&&e(pe)}),e(n,ue),f(),u()}var Jr=7e3,Yr=c(`<!> `,1),Xr=c(`<!> <!>`,1),Zr=c(`<p id="introspection-halt-error" class="text-destructive text-sm"> </p>`),Qr=c(` <!>`,1),$r=c(`<!> <div class="grid grid-cols-2 gap-4"><div class="flex flex-col gap-1.5"><!> <!> <p id="introspection-halt-hint"> </p></div> <div class="flex flex-col gap-1.5"><!> <!> <p id="introspection-halt-quiescence-hint"> </p></div></div> <!> <!>`,1);function ei(t,n){r(n,!0);let i=()=>E(Ce,`$configuration`,c),s=()=>E(ie,`$dict`,c),[c,d]=w(),p=S(()=>Pe(i())?i().halt??null:null),h=L(!1),_=L(ne({})),v=L(null),y=L(!1),C=L(!1),O=null,A=S(()=>m(_).duration??(m(p)===null?void 0:ae(600,m(p).duration))),M=S(()=>m(_).quiescence??(m(p)===null?void 0:ae(60,m(p).quiescence))),N=S(()=>m(p)!==null&&re(m(A),m(p).duration)),F=S(()=>m(p)!==null&&re(m(M),m(p).quiescence)),te=S(()=>m(N)&&m(F)),I=S(()=>m(v)!==null);function z(e){U(),b(C,!1),b(_,{},!0)}function B(){!m(te)||m(I)||(b(C,!1),b(v,9,!0),O=setInterval(V,1e3))}function V(){m(v)!==null&&(b(v,m(v)-1),!(m(v)>0)&&(W(),b(y,!0),H()))}async function H(){let e=await Ee(m(A),m(M));b(y,!1),b(C,e instanceof Error),m(C)?U():b(h,!1)}function U(){W(),b(v,null),b(y,!1)}function W(){O!==null&&clearInterval(O),O=null}function re(e,[t,n]){return e!==void 0&&Number.isInteger(e)&&e>=t&&e<=n}function ae(e,[t,n]){return Math.min(n,Math.max(t,e))}var G=k(),oe=R(G),ce=t=>{var n=k(),r=R(n);x(r,()=>Br,(t,n)=>{n(t,{onOpenChange:z,get open(){return m(h)},set open(e){b(h,e,!0)},children:(t,n)=>{var r=Xr(),i=R(r);{let t=S(()=>[se({variant:`ghost`}),`text-destructive hover:text-destructive`]);x(i,()=>Rr,(n,r)=>{r(n,{id:`introspection-halt-button`,get class(){return m(t)},children:(t,n)=>{var r=Yr(),i=R(r);Ie(i,{});var a=P(i);g(()=>l(a,` ${s().nav.halt??``}`)),e(t,r)},$$slots:{default:!0}})})}var c=P(i,2);x(c,()=>Er,(t,n)=>{n(t,{children:(t,n)=>{var r=$r(),i=R(r);x(i,()=>Pr,(t,n)=>{n(t,{children:(t,n)=>{var r=Xr(),i=R(r);x(i,()=>Ir,(t,n)=>{n(t,{children:(t,n)=>{u();var r=o();g(()=>l(r,s().halt.title)),e(t,r)},$$slots:{default:!0}})});var a=P(i,2);x(a,()=>Or,(t,n)=>{n(t,{children:(t,n)=>{u();var r=o();g(()=>l(r,s().halt.description)),e(t,r)},$$slots:{default:!0}})}),e(t,r)},$$slots:{default:!0}})});var c=P(i,2),d=T(c),f=T(d);mr(f,{for:`introspection-halt-input`,children:(t,n)=>{u();var r=o();g(()=>l(r,s().halt.interval)),e(t,r)},$$slots:{default:!0}});var h=P(f,2),b=()=>m(A),w=e=>m(_).duration=e;{let e=S(()=>!m(N));_r(h,{id:`introspection-halt-input`,type:`number`,inputmode:`numeric`,get min(){return m(p).duration[0]},get max(){return m(p).duration[1]},step:`1`,get disabled(){return m(I)},get value(){return b()},set value(e){w(e)},get"aria-invalid"(){return m(e)},"aria-describedby":`introspection-halt-hint`})}var E=P(h,2),O=T(E,!0);j(E),j(d);var ne=P(d,2),L=T(ne);mr(L,{for:`introspection-halt-quiescence-input`,children:(t,n)=>{u();var r=o();g(()=>l(r,s().halt.quiescence)),e(t,r)},$$slots:{default:!0}});var z=P(L,2),V=()=>m(M),H=e=>m(_).quiescence=e;{let e=S(()=>!m(F));_r(z,{id:`introspection-halt-quiescence-input`,type:`number`,inputmode:`numeric`,get min(){return m(p).quiescence[0]},get max(){return m(p).quiescence[1]},step:`1`,get disabled(){return m(I)},get value(){return V()},set value(e){H(e)},get"aria-invalid"(){return m(e)},"aria-describedby":`introspection-halt-quiescence-hint`})}var W=P(z,2),re=T(W,!0);j(W),j(ne),j(c);var ie=P(c,2),ae=t=>{var n=Zr(),r=T(n,!0);j(n),g(()=>l(r,s().halt.failed)),e(t,n)};a(ie,e=>{m(C)&&e(ae)});var G=P(ie,2);x(G,()=>jr,(t,n)=>{n(t,{children:(t,n)=>{var r=Xr(),i=R(r),c=t=>{fe(t,{id:`introspection-halt-cancel-button`,variant:`outline`,get disabled(){return m(y)},onclick:U,children:(t,n)=>{u();var r=Qr(),i=R(r),a=P(i);Ne(a,{id:`introspection-halt-countdown`,variant:`destructive`,class:`tabular-nums`,children:(t,n)=>{u();var r=o();g(()=>l(r,m(v))),e(t,r)},$$slots:{default:!0}}),g(()=>l(i,`${s().halt.cancel??``} `)),e(t,r)},$$slots:{default:!0}})},d=t=>{var n=k(),r=R(n);x(r,()=>yr,(t,n)=>{n(t,{id:`introspection-halt-cancel-button`,children:(t,n)=>{u();var r=o();g(()=>l(r,s().halt.cancel)),e(t,r)},$$slots:{default:!0}})}),e(t,n)};a(i,e=>{m(I)?e(c):e(d,-1)});var f=P(i,2);{let t=S(()=>!m(te)||m(I));qr(f,{id:`introspection-halt-confirm-button`,variant:`destructive`,portal:!1,position:`top`,get duration(){return Jr},get label(){return s().halt.hold},get disabled(){return m(t)},onclick:B,children:(t,n)=>{u();var r=o();g(()=>l(r,s().nav.halt)),e(t,r)},$$slots:{default:!0}})}e(t,r)},$$slots:{default:!0}})}),g((e,t)=>{ee(E,1,D([`text-xs`,m(N)?`text-muted-foreground`:`text-destructive`])),l(O,e),ee(W,1,D([`text-xs`,m(F)?`text-muted-foreground`:`text-destructive`])),l(re,t)},[()=>s().halt.bounds(m(p).duration[0],m(p).duration[1]),()=>s().halt.bounds(m(p).quiescence[0],m(p).quiescence[1])]),e(t,r)},$$slots:{default:!0}})}),e(t,r)},$$slots:{default:!0}})}),e(t,n)};a(oe,e=>{m(p)!==null&&e(ce)}),e(t,G),f(),d()}var ti=new Set([`$$slots`,`$$events`,`$$legacy`,`class`]),ni=c(`<p class="text-muted-foreground py-20 text-center"> </p>`),ri=c(`<section class="flex flex-col gap-2"><div class="text-muted-foreground flex items-center gap-3"><span class="text-xs font-medium tracking-wide uppercase"> </span> <!></div> <!></section>`),ii=c(`<div></div>`);function ai(t,i){r(i,!0);let o=()=>E(ge,`$nodes`,u),s=()=>E(Oe,`$query`,u),c=()=>E(ve,`$dict`,u),[u,d]=w(),p=y(i,ti),_=new be,v=S(()=>Pe(o())?o():[]),b=S(()=>m(v).map(e=>({node:e,rank:Te(e,s())})).filter(e=>e.rank>0).sort(D));h(()=>{let e=m(b).length===1?Me(m(b)[0].node):null;return xe.set(e===null?null:()=>_.add(e)),()=>xe.set(null)});function D(e,t){return t.rank-e.rank||e.node.namespace.localeCompare(t.node.namespace)||e.node.component.localeCompare(t.node.component)}function O(e){return[{id:`user`,label:c().space.user,of:e.filter(e=>!Se(e.node))},{id:`system`,label:c().space.system,of:e.filter(e=>Se(e.node))}].filter(e=>e.of.length>0)}W(t,{get store(){return ge},awaited:t=>{var r=k(),o=R(r),s=t=>{var n=ni(),r=T(n,!0);j(n),g(()=>l(r,c().nodes.empty)),e(t,n)},u=t=>{var n=ni(),r=T(n,!0);j(n),g(()=>l(r,c().nodes.nomatch)),e(t,n)},d=t=>{var r=ii();C(r,()=>({class:[`flex flex-col gap-6`,i.class],...p})),n(r,21,()=>O(m(b)),e=>e.id,(t,r)=>{var i=ri(),a=T(i),o=T(a),s=T(o,!0);j(o);var c=P(o,2);oe(c,{class:`flex-1`}),j(a);var u=P(a,2);x(u,()=>_e,(t,i)=>{i(t,{class:`gap-2`,children:(t,i)=>{var a=k(),o=R(a);n(o,17,()=>m(r).of,e=>e.node.id,(e,t)=>{let n=S(()=>Me(m(t).node));var r=()=>_.has(m(n)),i=e=>e?_.add(m(n)):_.delete(m(n));je(e,{get node(){return m(t).node},get open(){return r()},set open(e){i(e)}})}),e(t,a)},$$slots:{default:!0}})}),j(i),g(()=>l(s,m(r).label)),e(t,i)}),j(r),e(t,r)};a(o,e=>{m(v).length===0?e(s):m(b).length===0?e(u,1):e(d,-1)}),e(t,r)},$$slots:{awaited:!0}}),f(),d()}export{Xe as a,et as i,ei as n,Je as o,_r as r,ai as t};
1
+ import{A as e,At as t,C as n,Ct as r,D as i,E as a,F as o,J as s,M as c,O as l,Ot as u,P as d,St as f,T as p,V as m,X as h,Y as g,_,_t as v,a as y,at as b,b as x,ct as S,d as C,dt as w,et as T,ft as E,h as D,i as O,j as k,k as A,kt as j,l as M,m as ee,mt as N,nt as P,o as F,p as te,rt as ne,s as I,st as L,tt as R,u as z,x as B,yt as V,z as H}from"./sTot5bBi.js";import"./B8EdV3yC.js";import"./xihTtKlq.js";import{F as U,N as W,r as re,t as ie}from"./D_OzAf8e.js";import{$ as ae,A as G,C as oe,E as se,G as ce,H as le,J as ue,K as de,O as K,Q as q,T as fe,V as pe,W as me,Y as he,Z as J,_t as ge,b as _e,c as ve,dt as ye,et as be,f as xe,g as Se,ht as Ce,j as we,k as Y,m as Te,mt as Ee,nt as De,p as Oe,pt as ke,q as X,rt as Ae,st as Z,t as je,tt as Q,u as Me,w as Ne}from"./DvcRBTN8.js";function Pe(e){return e!==null&&!(e instanceof Error)}var Fe=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ie(e,t){let n=y(t,Fe),r=[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`}]];U(e,F({name:`pause`},()=>n,{get iconNode(){return r}}))}function Le(e,t){return setTimeout(t,e)}var Re=1,ze=9,Be=11;function Ve(e){return ke(e)&&e.nodeType===Re&&typeof e.nodeName==`string`}function He(e){return ke(e)&&e.nodeType===ze}function Ue(e){return ke(e)&&e.constructor?.name===`VisualViewport`}function We(e){return ke(e)&&e.nodeType!==void 0}function Ge(e){return We(e)&&e.nodeType===Be&&`host`in e}function Ke(e,t){if(!e||!t||!Ve(e)||!Ve(t))return!1;let n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&Ge(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function qe(e){return He(e)?e:Ue(e)?e.document:e?.ownerDocument??document}function Je(e){return Ge(e)?Je(e.host):He(e)?e.defaultView??window:Ve(e)?e.ownerDocument?.defaultView??window:window}function Ye(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var Xe=class{element;#e=S(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return m(this.#e)}set root(e){b(this.#e,e)}constructor(e){this.element=typeof e==`function`?Z(e):e}getDocument=()=>qe(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>Ye(this.root);isActiveElement=e=>e===this.getActiveElement();getElementById(e){return this.root.getElementById(e)}querySelector=e=>this.root?this.root.querySelector(e):null;querySelectorAll=e=>this.root?this.root.querySelectorAll(e):[];setTimeout=(e,t)=>this.getWindow().setTimeout(e,t);clearTimeout=e=>this.getWindow().clearTimeout(e)},Ze=typeof document<`u`,Qe=$e();function $e(){return Ze&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function et(e){return e instanceof HTMLElement}function tt(e){return e instanceof Element||e instanceof SVGElement}var nt=me({component:`dialog`,parts:[`content`,`trigger`,`overlay`,`title`,`description`,`close`,`cancel`,`action`]}),$=new q(`Dialog.Root | AlertDialog.Root`),rt=class e{static create(t){let n=$.getOr(null);return $.set(new e(t,n))}opts;#e=L(null);get triggerNode(){return m(this.#e)}set triggerNode(e){b(this.#e,e,!0)}#t=L(null);get contentNode(){return m(this.#t)}set contentNode(e){b(this.#t,e,!0)}#n=L(null);get overlayNode(){return m(this.#n)}set overlayNode(e){b(this.#n,e,!0)}#r=L(null);get descriptionNode(){return m(this.#r)}set descriptionNode(e){b(this.#r,e,!0)}#i=L(void 0);get contentId(){return m(this.#i)}set contentId(e){b(this.#i,e,!0)}#a=L(void 0);get titleId(){return m(this.#a)}set titleId(e){b(this.#a,e,!0)}#o=L(void 0);get triggerId(){return m(this.#o)}set triggerId(e){b(this.#o,e,!0)}#s=L(void 0);get descriptionId(){return m(this.#s)}set descriptionId(e){b(this.#s,e,!0)}#c=L(null);get cancelNode(){return m(this.#c)}set cancelNode(e){b(this.#c,e,!0)}#l=L(0);get nestedOpenCount(){return m(this.#l)}set nestedOpenCount(e){b(this.#l,e,!0)}depth;parent;contentPresence;overlayPresence;constructor(e,t){this.opts=e,this.parent=t,this.depth=t?t.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new we({ref:Z(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new we({ref:Z(()=>this.overlayNode),open:this.opts.open,enabled:!0}),J(()=>this.opts.open.current,e=>{this.parent&&(e?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),he(()=>{this.opts.open.current&&this.parent?.decrementNested()})}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}getBitsAttr=e=>nt.getAttr(e,this.opts.variant.current);incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}#u=S(()=>({"data-state":ce(this.opts.open.current)}));get sharedProps(){return m(this.#u)}set sharedProps(e){b(this.#u,e)}},it=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=X(this.opts.ref,e=>{this.root.triggerNode=e,this.root.triggerId=e?.id}),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleOpen()}onkeydown(e){this.opts.disabled.current||(e.key===` `||e.key===`Enter`)&&(e.preventDefault(),this.root.handleOpen())}#e=S(()=>({id:this.opts.id.current,"aria-haspopup":`dialog`,"aria-expanded":le(this.root.opts.open.current),"aria-controls":this.root.contentId,[this.root.getBitsAttr(`trigger`)]:``,onkeydown:this.onkeydown,onclick:this.onclick,disabled:this.opts.disabled.current?!0:void 0,...this.root.sharedProps,...this.attachment}));get props(){return m(this.#e)}set props(e){b(this.#e,e)}},at=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.root.titleId=this.opts.id.current,this.attachment=X(this.opts.ref),J.pre(()=>this.opts.id.current,e=>{this.root.titleId=e})}#e=S(()=>({id:this.opts.id.current,role:`heading`,"aria-level":this.opts.level.current,[this.root.getBitsAttr(`title`)]:``,...this.root.sharedProps,...this.attachment}));get props(){return m(this.#e)}set props(e){b(this.#e,e)}},ot=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.root.descriptionId=this.opts.id.current,this.attachment=X(this.opts.ref,e=>{this.root.descriptionNode=e}),J.pre(()=>this.opts.id.current,e=>{this.root.descriptionId=e})}#e=S(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`description`)]:``,...this.root.sharedProps,...this.attachment}));get props(){return m(this.#e)}set props(e){b(this.#e,e)}},st=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=X(this.opts.ref,e=>{this.root.contentNode=e,this.root.contentId=e?.id})}#e=S(()=>({open:this.root.opts.open.current}));get snippetProps(){return m(this.#e)}set snippetProps(e){b(this.#e,e)}#t=S(()=>({id:this.opts.id.current,role:this.root.opts.variant.current===`alert-dialog`?`alertdialog`:`dialog`,"aria-modal":`true`,"aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr(`content`)]:``,style:{pointerEvents:`auto`,outline:this.root.opts.variant.current===`alert-dialog`?`none`:void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:`layout style`},tabindex:this.root.opts.variant.current===`alert-dialog`?-1:void 0,"data-nested-open":pe(this.root.nestedOpenCount>0),"data-nested":pe(this.root.parent!==null),...de(this.root.contentPresence.transitionStatus),...this.root.sharedProps,...this.attachment}));get props(){return m(this.#t)}set props(e){b(this.#t,e)}get shouldRender(){return this.root.contentPresence.shouldRender}},ct=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=X(this.opts.ref,e=>this.root.overlayNode=e)}#e=S(()=>({open:this.root.opts.open.current}));get snippetProps(){return m(this.#e)}set snippetProps(e){b(this.#e,e)}#t=S(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`overlay`)]:``,style:{pointerEvents:`auto`,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":pe(this.root.nestedOpenCount>0),"data-nested":pe(this.root.parent!==null),...de(this.root.overlayPresence.transitionStatus),...this.root.sharedProps,...this.attachment}));get props(){return m(this.#t)}set props(e){b(this.#t,e)}get shouldRender(){return this.root.overlayPresence.shouldRender}},lt=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=X(this.opts.ref,e=>this.root.cancelNode=e),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===` `||e.key===`Enter`)&&(e.preventDefault(),this.root.handleClose())}#e=S(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`cancel`)]:``,onclick:this.onclick,onkeydown:this.onkeydown,tabindex:0,disabled:this.opts.disabled.current,...this.root.sharedProps,...this.attachment}));get props(){return m(this.#e)}set props(e){b(this.#e,e)}};function ut(n,i){r(i,!0);let a=O(i,`open`,15,!1),o=O(i,`onOpenChange`,3,G),s=O(i,`onOpenChangeComplete`,3,G);rt.create({variant:Z(()=>`alert-dialog`),open:Z(()=>a(),e=>{a(e),o()(e)}),onOpenChangeComplete:Z(()=>s())});var c=k(),l=R(c);B(l,()=>i.children??t),e(n,c),f()}var dt=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`child`,`children`,`level`]),ft=c(`<div><!></div>`);function pt(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`ref`,15,null),l=O(i,`level`,3,2),u=y(i,dt),p=at.create({id:Z(()=>s()),level:Z(()=>l()),ref:Z(()=>c(),e=>c(e))}),h=S(()=>Q(u,p.props));var g=k(),_=R(g),v=t=>{var n=k(),r=R(n);B(r,()=>i.child,()=>({props:m(h)})),e(t,n)},b=n=>{var r=ft();C(r,()=>({...m(h)}));var a=T(r);B(a,()=>i.children??t),j(r),e(n,r)};a(_,e=>{i.child?e(v):e(b,-1)}),e(n,g),f()}var mt=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`children`,`child`,`disabled`]),ht=c(`<button><!></button>`);function gt(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`ref`,15,null),l=O(i,`disabled`,3,!1),u=y(i,mt),p=lt.create({id:Z(()=>s()),ref:Z(()=>c(),e=>c(e)),disabled:Z(()=>!!l())}),h=S(()=>Q(u,p.props));var g=k(),_=R(g),v=t=>{var n=k(),r=R(n);B(r,()=>i.child,()=>({props:m(h)})),e(t,n)},b=n=>{var r=ht();C(r,()=>({...m(h)}));var a=T(r);B(a,()=>i.children??t),j(r),e(n,r)};a(_,e=>{i.child?e(v):e(b,-1)}),e(n,g),f()}function _t(n,r){var i=k(),a=R(i);p(a,()=>r.children,n=>{var i=k(),a=R(i);B(a,()=>r.children??t),e(n,i)}),e(n,i)}var vt=new q(`BitsConfig`);function yt(){let e=new bt(null,{});return vt.getOr(e).opts}var bt=class{opts;constructor(e,t){let n=xt(e,t);this.opts={defaultPortalTo:n(e=>e.defaultPortalTo),defaultLocale:n(e=>e.defaultLocale)}}};function xt(e,t){return n=>Z(()=>{let r=n(t)?.current;if(r!==void 0)return r;if(e!==null)return n(e.opts)?.current})}function St(e,t){return n=>{let r=yt();return Z(()=>{let i=n();if(i!==void 0)return i;let a=e(r).current;return a===void 0?t:a})}}var Ct=St(e=>e.defaultPortalTo,`body`);function wt(n,o){r(o,!0);let s=Ct(()=>o.to),c=V(),l=S(u);function u(){if(!Ze||o.disabled)return null;let e=null;return e=typeof s.current==`string`?document.querySelector(s.current):s.current,e}let d;function p(){d&&=(A(d),null)}J([()=>m(l),()=>o.disabled],([e,t])=>{if(!e||t){p();return}return d=i(_t,{target:e,props:{children:o.children},context:c}),()=>{p()}});var h=k(),g=R(h),_=n=>{var r=k(),i=R(r);B(i,()=>o.children??t),e(n,r)};a(g,e=>{o.disabled&&e(_)}),e(n,h),f()}var Tt=class{eventName;options;constructor(e,t={bubbles:!0,cancelable:!0}){this.eventName=e,this.options=t}createEvent(e){return new CustomEvent(this.eventName,{...this.options,detail:e})}dispatch(e,t){let n=this.createEvent(t);return e.dispatchEvent(n),n}listen(e,t,n){return H(e,this.eventName,e=>{t(e)},n)}};function Et(e,t=500){let n=null,r=(...r)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)};return r.destroy=()=>{n!==null&&(clearTimeout(n),n=null)},r}function Dt(e,t){return e===t||e.contains(t)}function Ot(e){return e?.ownerDocument??document}function kt(e,t){let{clientX:n,clientY:r}=e,i=t.getBoundingClientRect();return n<i.left||n>i.right||r<i.top||r>i.bottom}var At=[`input:not([inert]):not([inert] *)`,`select:not([inert]):not([inert] *)`,`textarea:not([inert]):not([inert] *)`,`a[href]:not([inert]):not([inert] *)`,`area[href]:not([inert]):not([inert] *)`,`button:not([inert]):not([inert] *)`,`[tabindex]:not(slot):not([inert]):not([inert] *)`,`audio[controls]:not([inert]):not([inert] *)`,`video[controls]:not([inert]):not([inert] *)`,`[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)`,`details>summary:first-of-type:not([inert]):not([inert] *)`,`details:not([inert]):not([inert] *)`],jt=At.join(`,`),Mt=typeof Element>`u`,Nt=Mt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Pt=!Mt&&Element.prototype.getRootNode?function(e){return e?.getRootNode?.call(e)}:function(e){return e?.ownerDocument},Ft=function(e,t){t===void 0&&(t=!0);var n=e?.getAttribute?.call(e,`inert`);return n===``||n===`true`||t&&e&&(typeof e.closest==`function`?e.closest(`[inert]`):Ft(e.parentNode))},It=function(e){var t=e?.getAttribute?.call(e,`contenteditable`);return t===``||t===`true`},Lt=function(e,t,n){if(Ft(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(jt));return t&&Nt.call(e,jt)&&r.unshift(e),r=r.filter(n),r},Rt=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var a=i.shift();if(!Ft(a,!1)){if(a.tagName===`SLOT`){var o=a.assignedElements(),s=Rt(o.length?o:a.children,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{Nt.call(a,jt)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||typeof n.getShadowRoot==`function`&&n.getShadowRoot(a),l=!Ft(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&l){var u=Rt(c===!0?a.children:c.children,!0,n);n.flatten?r.push.apply(r,u):r.push({scopeParent:a,candidates:u})}else i.unshift.apply(i,a.children)}}}return r},zt=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},Bt=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||It(e))&&!zt(e)?0:e.tabIndex},Vt=function(e,t){var n=Bt(e);return n<0&&t&&!zt(e)?0:n},Ht=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Ut=function(e){return e.tagName===`INPUT`},Wt=function(e){return Ut(e)&&e.type===`hidden`},Gt=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},Kt=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},qt=function(e){if(!e.name)return!0;var t=e.form||Pt(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&window.CSS!==void 0&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(e){return console.error(`Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s`,e.message),!1}var i=Kt(r,e.form);return!i||i===e},Jt=function(e){return Ut(e)&&e.type===`radio`},Yt=function(e){return Jt(e)&&!qt(e)},Xt=function(e){var t=e&&Pt(e),n=t?.host,r=!1;if(t&&t!==e){var i,a,o;for(r=!!((i=n)!=null&&(a=i.ownerDocument)!=null&&a.contains(n)||e!=null&&(o=e.ownerDocument)!=null&&o.contains(e));!r&&n;){var s,c;t=Pt(n),n=t?.host,r=!!((s=n)!=null&&(c=s.ownerDocument)!=null&&c.contains(n))}}return r},Zt=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},Qt=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(n===`full-native`&&`checkVisibility`in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});var i=getComputedStyle(e).visibility;if(i===`hidden`||i===`collapse`)return!0;var a=Nt.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(Nt.call(a,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`full-native`||n===`legacy-full`){if(typeof r==`function`){for(var o=e;e;){var s=e.parentElement,c=Pt(e);if(s&&!s.shadowRoot&&r(s)===!0)return Zt(e);e=e.assignedSlot?e.assignedSlot:!s&&c!==e.ownerDocument?c.host:s}e=o}if(Xt(e))return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return Zt(e);return!1},$t=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return Nt.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},en=function(e,t){return!(t.disabled||Wt(t)||Qt(t,e)||Gt(t)||$t(t))},tn=function(e,t){return!(Yt(t)||Bt(t)<0||!en(e,t))},nn=function(e){var t=parseInt(e.getAttribute(`tabindex`),10);return!!(isNaN(t)||t>=0)},rn=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=Vt(a,i),s=i?rn(e.candidates):a;o===0?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort(Ht).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},an=function(e,t){return t||={},rn(t.getShadowRoot?Rt([e],t.includeContainer,{filter:tn.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:nn}):Lt(e,t.includeContainer,tn.bind(null,t)))},on=function(e,t){return t||={},t.getShadowRoot?Rt([e],t.includeContainer,{filter:en.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):Lt(e,t.includeContainer,en.bind(null,t))},sn=At.concat(`iframe:not([inert]):not([inert] *)`).join(`,`),cn=function(e,t){if(t||={},!e)throw Error(`No node provided`);return Nt.call(e,sn)!==!1&&en(t,e)},ln=`data-context-menu-trigger`,un=`data-context-menu-content`;new q(`Menu.Root`),new q(`Menu.Root | Menu.Sub`),new q(`Menu.Content`),new q(`Menu.Group | Menu.RadioGroup`),new q(`Menu.RadioGroup`),new q(`Menu.CheckboxGroup`),new Tt(`bitsmenuopen`,{bubbles:!1,cancelable:!0}),me({component:`menu`,parts:[`trigger`,`content`,`sub-trigger`,`item`,`group`,`group-heading`,`checkbox-group`,`checkbox-item`,`radio-group`,`radio-item`,`separator`,`sub-content`,`arrow`]}),globalThis.bitsDismissableLayers??=new Map;var dn=class e{static create(t){return new e(t)}opts;#e;#t;#n={pointerdown:!1};#r=!1;#i=!1;#a=void 0;#o;#s=G;constructor(e){this.opts=e,this.#t=e.interactOutsideBehavior,this.#e=e.onInteractOutside,this.#o=e.onFocusOutside,h(()=>{this.#a=Ot(this.opts.ref.current)});let t=G,n=null,r=!1,i=()=>{n!=null&&(clearTimeout(n),n=null)},a=()=>{i(),this.#g(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),t()};J([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return i(),n=Le(1,()=>{n=null,!(r||!this.opts.ref.current)&&(globalThis.bitsDismissableLayers.set(this,this.#t),t(),t=this.#l())}),a}),he(()=>{r=!0,i(),this.#g.destroy(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),this.#s(),t()})}#c=e=>{e.defaultPrevented||this.opts.ref.current&&ue(()=>{!this.opts.ref.current||this.#h(e.target)||e.target&&!this.#i&&this.#o.current?.(e)})};#l(){return De(H(this.#a,`pointerdown`,De(this.#f,this.#m),{capture:!0}),H(this.#a,`pointerdown`,De(this.#p,this.#d)),H(this.#a,`focusin`,this.#c))}#u=e=>{let t=e;t.defaultPrevented&&(t=hn(e)),this.#e.current(e)};#d=Et(e=>{if(!this.opts.ref.current){this.#s();return}let t=this.opts.isValidEvent.current(e,this.opts.ref.current)||mn(e,this.opts.ref.current);if(!this.#r||this.#_()||!t){this.#s();return}let n=e;if(n.defaultPrevented&&(n=hn(n)),this.#t.current!==`close`&&this.#t.current!==`defer-otherwise-close`){this.#s();return}e.pointerType===`touch`?(this.#s(),this.#s=H(this.#a,`click`,this.#u,{once:!0})):this.#e.current(n)},10);#f=e=>{this.#n[e.type]=!0};#p=e=>{this.#n[e.type]=!1};#m=()=>{this.opts.ref.current&&(this.#r=pn(this.opts.ref.current))};#h=e=>this.opts.ref.current?Dt(this.opts.ref.current,e):!1;#g=Et(()=>{for(let e in this.#n)this.#n[e]=!1;this.#r=!1},20);#_(){return Object.values(this.#n).some(Boolean)}#v=()=>{this.#i=!0};#y=()=>{this.#i=!1};props={onfocuscapture:this.#v,onblurcapture:this.#y}};function fn(e=[...globalThis.bitsDismissableLayers]){return e.findLast(([e,{current:t}])=>t===`close`||t===`ignore`)}function pn(e){let t=[...globalThis.bitsDismissableLayers],n=fn(t);if(n)return n[0].opts.ref.current===e;let[r]=t[0];return r.opts.ref.current===e}function mn(e,t){let n=e.target;if(!tt(n))return!1;let r=!!n.closest(`[${ln}]`),i=!!t.closest(`[${un}]`);return`button`in e&&e.button>0&&!r?!1:`button`in e&&e.button===0&&r&&i?!0:r&&i?!1:Ot(n).documentElement.contains(n)&&!Dt(t,n)&&kt(e,t)}function hn(e){let t=e.currentTarget,n=e.target,r;r=e instanceof PointerEvent?new PointerEvent(e.type,e):new PointerEvent(`pointerdown`,e);let i=!1;return new Proxy(r,{get:(r,a)=>a===`currentTarget`?t:a===`target`?n:a===`preventDefault`?()=>{i=!0,typeof r.preventDefault==`function`&&r.preventDefault()}:a===`defaultPrevented`?i:a in r?r[a]:e[a]})}function gn(n,i){r(i,!0);let a=O(i,`interactOutsideBehavior`,3,`close`),o=O(i,`onInteractOutside`,3,G),s=O(i,`onFocusOutside`,3,G),c=O(i,`isValidEvent`,3,()=>!1),l=dn.create({id:Z(()=>i.id),interactOutsideBehavior:Z(()=>a()),onInteractOutside:Z(()=>o()),enabled:Z(()=>i.enabled),onFocusOutside:Z(()=>s()),isValidEvent:Z(()=>c()),ref:i.ref});var u=k(),d=R(u);B(d,()=>i.children??t,()=>({props:l.props})),e(n,u),f()}globalThis.bitsEscapeLayers??=new Map;var _n=class e{static create(t){return new e(t)}opts;domContext;constructor(e){this.opts=e,this.domContext=new Xe(this.opts.ref);let t=G;J(()=>e.enabled.current,n=>(n&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),t=this.#e()),()=>{t(),globalThis.bitsEscapeLayers.delete(this)}))}#e=()=>H(this.domContext.getDocument(),`keydown`,this.#t,{passive:!1});#t=e=>{if(e.key!==`Escape`||!vn(this))return;let t=new KeyboardEvent(e.type,e);e.preventDefault();let n=this.opts.escapeKeydownBehavior.current;(n===`close`||n===`defer-otherwise-close`)&&this.opts.onEscapeKeydown.current(t)}};function vn(e){let t=[...globalThis.bitsEscapeLayers],n=t.findLast(([e,{current:t}])=>t===`close`||t===`ignore`);if(n)return n[0]===e;let[r]=t[0];return r===e}function yn(n,i){r(i,!0);let a=O(i,`escapeKeydownBehavior`,3,`close`),o=O(i,`onEscapeKeydown`,3,G);_n.create({escapeKeydownBehavior:Z(()=>a()),onEscapeKeydown:Z(()=>o()),enabled:Z(()=>i.enabled),ref:i.ref});var s=k(),c=R(s);B(c,()=>i.children??t),e(n,s),f()}var bn=class e{static instance;#e=ye([]);#t=new WeakMap;#n=new WeakMap;static getInstance(){return this.instance||=new e,this.instance}register(e){let t=this.getActive();t&&t!==e&&t.pause();let n=document.activeElement;n&&n!==document.body&&this.#n.set(e,n),this.#e.current=this.#e.current.filter(t=>t!==e),this.#e.current.unshift(e)}unregister(e){this.#e.current=this.#e.current.filter(t=>t!==e);let t=this.getActive();t&&t.resume()}getActive(){return this.#e.current[0]}setFocusMemory(e,t){this.#t.set(e,t)}getFocusMemory(e){return this.#t.get(e)}isActiveScope(e){return this.getActive()===e}setPreFocusMemory(e,t){this.#n.set(e,t)}getPreFocusMemory(e){return this.#n.get(e)}clearPreFocusMemory(e){this.#n.delete(e)}},xn=class e{#e=!1;#t=null;#n=bn.getInstance();#r=[];#i;constructor(e){this.#i=e}get paused(){return this.#e}pause(){this.#e=!0}resume(){this.#e=!1}#a(){for(let e of this.#r)e();this.#r=[]}mount(e){this.#t&&this.unmount(),this.#t=e,this.#n.register(this),this.#c(),this.#o()}unmount(){this.#t&&=(this.#a(),this.#s(),this.#n.unregister(this),this.#n.clearPreFocusMemory(this),null)}#o(){if(!this.#t)return;let e=new CustomEvent(`focusScope.onOpenAutoFocus`,{bubbles:!1,cancelable:!0});this.#i.onOpenAutoFocus.current(e),e.defaultPrevented||requestAnimationFrame(()=>{if(!this.#t)return;let e=this.#u();e?(e.focus(),this.#n.setFocusMemory(this,e)):this.#t.focus()})}#s(){let e=new CustomEvent(`focusScope.onCloseAutoFocus`,{bubbles:!1,cancelable:!0});if(this.#i.onCloseAutoFocus.current?.(e),!e.defaultPrevented){let e=this.#n.getPreFocusMemory(this);if(e&&document.contains(e))try{e.focus()}catch{document.body.focus()}}}#c(){if(!this.#t||!this.#i.trap.current)return;let e=this.#t,t=e.ownerDocument;this.#r.push(H(t,`focusin`,t=>{if(this.#e||!this.#n.isActiveScope(this))return;let n=t.target;if(n){if(e.contains(n))this.#n.setFocusMemory(this,n);else{let n=this.#n.getFocusMemory(this);if(n&&e.contains(n)&&cn(n))t.preventDefault(),n.focus();else{let t=this.#u(),n=this.#d()[0];(t||n||e).focus()}}}},{capture:!0}),H(e,`keydown`,e=>{if(!this.#i.loop||this.#e||e.key!==`Tab`||!this.#n.isActiveScope(this))return;let n=this.#l();if(n.length===0)return;let r=n[0],i=n[n.length-1];!e.shiftKey&&t.activeElement===i?(e.preventDefault(),r.focus()):e.shiftKey&&t.activeElement===r&&(e.preventDefault(),i.focus())}));let n=new MutationObserver(()=>{let t=this.#n.getFocusMemory(this);if(t&&!e.contains(t)){let t=this.#u(),n=this.#d()[0],r=t||n;r?(r.focus(),this.#n.setFocusMemory(this,r)):e.focus()}});n.observe(e,{childList:!0,subtree:!0}),this.#r.push(()=>n.disconnect())}#l(){return this.#t?an(this.#t,{includeContainer:!1,getShadowRoot:!0}):[]}#u(){return this.#l()[0]||null}#d(){return this.#t?on(this.#t,{includeContainer:!1,getShadowRoot:!0}):[]}static use(t){let n=null;return J([()=>t.ref.current,()=>t.enabled.current],([r,i])=>{r&&i?(n||=new e(t),n.mount(r)):n&&=(n.unmount(),null)}),he(()=>{n?.unmount()}),{get props(){return{tabindex:-1}}}}};function Sn(n,i){r(i,!0);let a=O(i,`enabled`,3,!1),o=O(i,`trapFocus`,3,!1),s=O(i,`loop`,3,!1),c=O(i,`onCloseAutoFocus`,3,G),l=O(i,`onOpenAutoFocus`,3,G),u=xn.use({enabled:Z(()=>a()),trap:Z(()=>o()),loop:s(),onCloseAutoFocus:Z(()=>c()),onOpenAutoFocus:Z(()=>l()),ref:i.ref});var d=k(),p=R(d);B(p,()=>i.focusScope??t,()=>({props:u.props})),e(n,d),f()}var Cn=()=>{};globalThis.bitsTextSelectionLayers??=new Map;var wn=class e{static create(t){return new e(t)}opts;domContext;#e=G;#t=!1;#n=Cn;#r=Cn;constructor(e){this.opts=e,this.domContext=new Xe(e.ref);let t=G;J(()=>[this.opts.enabled.current,this.opts.onPointerDown.current,this.opts.onPointerUp.current],([e,n,r])=>(this.#t=e,this.#n=n,this.#r=r,e&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),t(),t=this.#i()),()=>{this.#t=!1,t(),this.#s(),globalThis.bitsTextSelectionLayers.delete(this)}))}#i(){return De(H(this.domContext.getDocument(),`pointerdown`,this.#o),H(this.domContext.getDocument(),`pointerup`,Ae(this.#s,this.#a)))}#a=e=>{this.#r(e)};#o=e=>{if(!this.#t)return;let t=this.opts.ref.current,n=e.target;!et(t)||!et(n)||!On(this)||!Ke(t,n)||(this.#n(e),!e.defaultPrevented&&(this.#e=En(t,this.domContext.getDocument().body)))};#s=()=>{this.#e(),this.#e=G}},Tn=e=>e.style.userSelect||e.style.webkitUserSelect;function En(e,t){let n=Tn(t),r=Tn(e);return Dn(t,`none`),Dn(e,`text`),()=>{Dn(t,n),Dn(e,r)}}function Dn(e,t){e.style.userSelect=t,e.style.webkitUserSelect=t}function On(e){let t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;let n=t.at(-1);return n?n[0]===e:!1}function kn(n,i){r(i,!0);let a=O(i,`preventOverflowTextSelection`,3,!0),o=O(i,`onPointerDown`,3,G),s=O(i,`onPointerUp`,3,G);wn.create({id:Z(()=>i.id),onPointerDown:Z(()=>o()),onPointerUp:Z(()=>s()),enabled:Z(()=>i.enabled&&a()),ref:i.ref});var c=k(),l=R(c);B(l,()=>i.children??t),e(n,c),f()}globalThis.bitsIdCounter??={current:0};function An(e=`bits`){return globalThis.bitsIdCounter.current++,`${e}-${globalThis.bitsIdCounter.current}`}var jn=class{#e;#t=0;#n=L();#r;constructor(e){this.#e=e}#i(){--this.#t,this.#r&&this.#t<=0&&(this.#r(),b(this.#n,void 0),this.#r=void 0)}get(...e){return this.#t+=1,m(this.#n)===void 0&&(this.#r=s(()=>{b(this.#n,this.#e(...e),!0)})),h(()=>()=>{this.#i()}),m(this.#n)}},Mn=new ae,Nn=L(null),Pn=null,Fn=null,In=!1,Ln=Z(()=>{for(let e of Mn.values())if(e)return!0;return!1}),Rn=null,zn=new jn(()=>{function e(){document.body.setAttribute(`style`,m(Nn)??``),document.body.style.removeProperty(`--scrollbar-width`),Qe&&Pn?.(),b(Nn,null)}function t(){Fn!==null&&(window.clearTimeout(Fn),Fn=null)}function n(e,n){t(),In=!0,Rn=Date.now();let r=Rn,i=()=>{Fn=null,Rn===r&&(Vn(Mn)?In=!1:(In=!1,n()))},a=e===null?24:e;Fn=window.setTimeout(i,a)}function r(){m(Nn)===null&&Mn.size===0&&!In&&b(Nn,document.body.getAttribute(`style`),!0)}return J(()=>Ln.current,()=>{if(!Ln.current)return;r(),In=!1;let e=getComputedStyle(document.documentElement),t=getComputedStyle(document.body),n=e.scrollbarGutter?.includes(`stable`)||t.scrollbarGutter?.includes(`stable`),i=window.innerWidth-document.documentElement.clientWidth,a={padding:Number.parseInt(t.paddingRight??`0`,10)+i,margin:Number.parseInt(t.marginRight??`0`,10)};i>0&&!n&&(document.body.style.paddingRight=`${a.padding}px`,document.body.style.marginRight=`${a.margin}px`,document.body.style.setProperty(`--scrollbar-width`,`${i}px`)),document.body.style.overflow=`hidden`,Qe&&(Pn=H(document,`touchmove`,e=>{e.target===document.documentElement&&(e.touches.length>1||e.preventDefault())},{passive:!1})),ue(()=>{document.body.style.pointerEvents=`none`,document.body.style.overflow=`hidden`})}),he(()=>()=>{Pn?.()}),{get lockMap(){return Mn},resetBodyStyle:e,scheduleCleanupIfNoNewLocks:n,cancelPendingCleanup:t,ensureInitialStyleCaptured:r}}),Bn=class{#e=An();#t;#n=()=>null;#r;locked;constructor(e,t=()=>null){this.#t=e,this.#n=t,this.#r=zn.get(),this.#r&&(this.#r.cancelPendingCleanup(),this.#r.ensureInitialStyleCaptured(),this.#r.lockMap.set(this.#e,this.#t??!1),this.locked=Z(()=>this.#r.lockMap.get(this.#e)??!1,e=>this.#r.lockMap.set(this.#e,e)),he(()=>{if(this.#r.lockMap.delete(this.#e),Vn(this.#r.lockMap))return;let e=this.#n();this.#r.scheduleCleanupIfNoNewLocks(e,()=>{this.#r.resetBodyStyle()})}))}};function Vn(e){for(let[t,n]of e)if(n)return!0;return!1}function Hn(e,t){r(t,!0);let n=O(t,`preventScroll`,3,!0),i=O(t,`restoreScrollDelay`,3,null);n()&&new Bn(n(),()=>i()),f()}var Un=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`children`,`child`,`ref`,`forceMount`,`interactOutsideBehavior`,`onCloseAutoFocus`,`onEscapeKeydown`,`onOpenAutoFocus`,`onInteractOutside`,`preventScroll`,`trapFocus`,`restoreScrollDelay`]),Wn=c(`<!> <!>`,1),Gn=c(`<!> <div><!></div>`,1);function Kn(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`ref`,15,null),l=O(i,`forceMount`,3,!1),u=O(i,`interactOutsideBehavior`,3,`ignore`),p=O(i,`onCloseAutoFocus`,3,G),h=O(i,`onEscapeKeydown`,3,G),g=O(i,`onOpenAutoFocus`,3,G),_=O(i,`onInteractOutside`,3,G),v=O(i,`preventScroll`,3,!0),b=O(i,`trapFocus`,3,!0),x=O(i,`restoreScrollDelay`,3,null),w=y(i,Un),E=st.create({id:Z(()=>s()),ref:Z(()=>c(),e=>c(e))}),D=S(()=>Q(w,E.props));var A=k(),M=R(A),ee=n=>{Sn(n,{get ref(){return E.opts.ref},loop:!0,get trapFocus(){return b()},get enabled(){return E.root.opts.open.current},get onCloseAutoFocus(){return p()},onOpenAutoFocus:e=>{g()(e),!e.defaultPrevented&&(e.preventDefault(),Le(0,()=>E.opts.ref.current?.focus()))},focusScope:(n,r)=>{let o=()=>(r?.()).props;yn(n,F(()=>m(D),{get enabled(){return E.root.opts.open.current},get ref(){return E.opts.ref},onEscapeKeydown:e=>{h()(e),!e.defaultPrevented&&E.root.handleClose()},children:(n,r)=>{gn(n,F(()=>m(D),{get ref(){return E.opts.ref},get enabled(){return E.root.opts.open.current},get interactOutsideBehavior(){return u()},onInteractOutside:e=>{_()(e),!e.defaultPrevented&&E.root.handleClose()},children:(n,r)=>{kn(n,F(()=>m(D),{get ref(){return E.opts.ref},get enabled(){return E.root.opts.open.current},children:(n,r)=>{var s=k(),c=R(s),l=t=>{var n=Wn(),r=R(n),s=e=>{Hn(e,{get preventScroll(){return v()},get restoreScrollDelay(){return x()}})};a(r,e=>{E.root.opts.open.current&&e(s)});var c=P(r,2);{let e=S(()=>({props:Q(m(D),o()),...E.snippetProps}));B(c,()=>i.child,()=>m(e))}e(t,n)},u=n=>{var r=Gn(),a=R(r);Hn(a,{get preventScroll(){return v()}});var s=P(a,2);C(s,e=>({...e}),[()=>Q(m(D),o())]);var c=T(s);B(c,()=>i.children??t),j(s),e(n,r)};a(c,e=>{i.child?e(l):e(u,-1)}),e(n,s)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};a(M,e=>{(E.shouldRender||l())&&e(ee)}),e(n,A),f()}var qn=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`forceMount`,`child`,`children`,`ref`]),Jn=c(`<div><!></div>`);function Yn(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`forceMount`,3,!1),l=O(i,`ref`,15,null),u=y(i,qn),p=ct.create({id:Z(()=>s()),ref:Z(()=>l(),e=>l(e))}),h=S(()=>Q(u,p.props));var g=k(),_=R(g),v=n=>{var r=k(),o=R(r),s=t=>{var n=k(),r=R(n);{let e=S(()=>({props:Q(m(h)),...p.snippetProps}));B(r,()=>i.child,()=>m(e))}e(t,n)},c=n=>{var r=Jn();C(r,e=>({...e}),[()=>Q(m(h))]);var a=T(r);B(a,()=>i.children??t,()=>p.snippetProps),j(r),e(n,r)};a(o,e=>{i.child?e(s):e(c,-1)}),e(n,r)};a(_,e=>{(p.shouldRender||c())&&e(v)}),e(n,g),f()}var Xn=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`children`,`child`,`disabled`]),Zn=c(`<button><!></button>`);function Qn(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`ref`,15,null),l=O(i,`disabled`,3,!1),u=y(i,Xn),p=it.create({id:Z(()=>s()),ref:Z(()=>c(),e=>c(e)),disabled:Z(()=>!!l())}),h=S(()=>Q(u,p.props));var g=k(),_=R(g),v=t=>{var n=k(),r=R(n);B(r,()=>i.child,()=>({props:m(h)})),e(t,n)},b=n=>{var r=Zn();C(r,()=>({...m(h)}));var a=T(r);B(a,()=>i.children??t),j(r),e(n,r)};a(_,e=>{i.child?e(v):e(b,-1)}),e(n,g),f()}var $n=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`children`,`child`,`ref`]),er=c(`<div><!></div>`);function tr(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`ref`,15,null),l=y(i,$n),u=ot.create({id:Z(()=>s()),ref:Z(()=>c(),e=>c(e))}),p=S(()=>Q(l,u.props));var h=k(),g=R(h),_=t=>{var n=k(),r=R(n);B(r,()=>i.child,()=>({props:m(p)})),e(t,n)},v=n=>{var r=er();C(r,()=>({...m(p)}));var a=T(r);B(a,()=>i.children??t),j(r),e(n,r)};a(g,e=>{i.child?e(_):e(v,-1)}),e(n,h),f()}var nr=me({component:`label`,parts:[`root`]}),rr=class e{static create(t){return new e(t)}opts;attachment;constructor(e){this.opts=e,this.attachment=X(this.opts.ref),this.onmousedown=this.onmousedown.bind(this)}onmousedown(e){e.detail>1&&e.preventDefault()}#e=S(()=>({id:this.opts.id.current,[nr.root]:``,onmousedown:this.onmousedown,...this.attachment}));get props(){return m(this.#e)}set props(e){b(this.#e,e)}},ir=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`id`,`ref`,`for`]),ar=c(`<label><!></label>`);function or(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`ref`,15,null),l=y(i,ir),u=rr.create({id:Z(()=>s()),ref:Z(()=>c(),e=>c(e))}),p=S(()=>Q(l,u.props,{for:i.for}));var h=k(),g=R(h),_=t=>{var n=k(),r=R(n);B(r,()=>i.child,()=>({props:m(p)})),e(t,n)},v=n=>{var r=ar();C(r,()=>({...m(p),for:i.for}));var a=T(r);B(a,()=>i.children??t),j(r),e(n,r)};a(g,e=>{i.child?e(_):e(v,-1)}),e(n,h),f()}var sr=me({component:`progress`,parts:[`root`]}),cr=class e{static create(t){return new e(t)}opts;attachment;constructor(e){this.opts=e,this.attachment=X(this.opts.ref)}#e=S(()=>({role:`progressbar`,value:this.opts.value.current,"aria-valuemin":this.opts.min.current,"aria-valuemax":this.opts.max.current,"aria-valuenow":this.opts.value.current===null?void 0:this.opts.value.current,"data-value":this.opts.value.current===null?void 0:this.opts.value.current,"data-state":lr(this.opts.value.current,this.opts.max.current),"data-max":this.opts.max.current,"data-min":this.opts.min.current,"data-indeterminate":this.opts.value.current===null?``:void 0,[sr.root]:``,...this.attachment}));get props(){return m(this.#e)}set props(e){b(this.#e,e)}};function lr(e,t){return e===null?`indeterminate`:e===t?`loaded`:`loading`}var ur=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`value`,`max`,`min`,`id`,`ref`]),dr=c(`<div><!></div>`);function fr(n,i){let o=d();r(i,!0);let s=O(i,`value`,3,0),c=O(i,`max`,3,100),l=O(i,`min`,3,0),u=O(i,`id`,19,()=>Y(o)),p=O(i,`ref`,15,null),h=y(i,ur),g=cr.create({value:Z(()=>s()),max:Z(()=>c()),min:Z(()=>l()),id:Z(()=>u()),ref:Z(()=>p(),e=>p(e))}),_=S(()=>Q(h,g.props));var v=k(),b=R(v),x=t=>{var n=k(),r=R(n);B(r,()=>i.child,()=>({props:m(_)})),e(t,n)},w=n=>{var r=dr();C(r,()=>({...m(_)}));var a=T(r);B(a,()=>i.children??t),j(r),e(n,r)};a(b,e=>{i.child?e(x):e(w,-1)}),e(n,v),f()}var pr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function mr(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=y(n,pr);var o=k(),s=R(o);{let e=S(()=>K(`gap-2 text-sm leading-none font-medium group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 flex items-center select-none group-data-[disabled=true]:pointer-events-none peer-disabled:cursor-not-allowed`,n.class));x(s,()=>or,(t,n)=>{n(t,F({"data-slot":`label`,get class(){return m(e)}},()=>a,{get ref(){return i()},set ref(e){i(e)}}))})}e(t,o),f()}var hr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`type`,`files`,`class`,`data-slot`]),gr=c(`<input/>`);function _r(t,n){r(n,!0);let i=O(n,`ref`,15,null),o=O(n,`value`,15),s=O(n,`files`,15),c=O(n,`data-slot`,3,`input`),l=y(n,hr);var u=k(),d=R(u),p=t=>{var r=gr();C(r,e=>({"data-slot":c(),class:e,type:`file`,...l}),[()=>K(`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`,n.class)],void 0,void 0,void 0,!0),I(r,e=>i(e),()=>i()),M(r,s),z(r,o),e(t,r)},m=t=>{var r=gr();C(r,e=>({"data-slot":c(),class:e,type:n.type,...l}),[()=>K(`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`,n.class)],void 0,void 0,void 0,!0),I(r,e=>i(e),()=>i()),z(r,o),e(t,r)};a(d,e=>{n.type===`file`?e(p):e(m,-1)}),e(t,u),f()}var vr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`variant`,`size`]);function yr(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=O(n,`variant`,3,`outline`),o=O(n,`size`,3,`default`),s=y(n,vr);var c=k(),l=R(c);{let e=S(()=>K(se({variant:a(),size:o()}),`cn-alert-dialog-cancel`,n.class));x(l,()=>gt,(t,n)=>{n(t,F({"data-slot":`alert-dialog-cancel`,get class(){return m(e)}},()=>s,{get ref(){return i()},set ref(e){i(e)}}))})}e(t,c),f()}var br=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function xr(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=y(n,br);var o=k(),s=R(o);{let e=S(()=>K(`bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 fixed inset-0 z-50`,n.class));x(s,()=>Yn,(t,n)=>{n(t,F({"data-slot":`alert-dialog-overlay`,get class(){return m(e)}},()=>a,{get ref(){return i()},set ref(e){i(e)}}))})}e(t,o),f()}var Sr=new Set([`$$slots`,`$$events`,`$$legacy`]);function Cr(t,n){let r=y(n,Sr);var i=k(),a=R(i);x(a,()=>wt,(e,t)=>{t(e,F(()=>r))}),e(t,i)}var wr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`size`,`portalProps`]),Tr=c(`<!> <!>`,1);function Er(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=O(n,`size`,3,`default`),o=y(n,wr);Cr(t,F(()=>n.portalProps,{children:(t,r)=>{var s=Tr(),c=R(s);xr(c,{});var l=P(c,2);{let e=S(()=>K(`gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 outline-none`,n.class));x(l,()=>Kn,(t,n)=>{n(t,F({"data-slot":`alert-dialog-content`,get"data-size"(){return a()},get class(){return m(e)}},()=>o,{get ref(){return i()},set ref(e){i(e)}}))})}e(t,s)},$$slots:{default:!0}})),f()}var Dr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function Or(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=y(n,Dr);var o=k(),s=R(o);{let e=S(()=>K(`text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,n.class));x(s,()=>tr,(t,n)=>{n(t,F({"data-slot":`alert-dialog-description`,get class(){return m(e)}},()=>a,{get ref(){return i()},set ref(e){i(e)}}))})}e(t,o),f()}var kr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Ar=c(`<div><!></div>`);function jr(n,i){r(i,!0);let a=O(i,`ref`,15,null),o=y(i,kr);var s=Ar();C(s,e=>({"data-slot":`alert-dialog-footer`,class:e,...o}),[()=>K(`-mx-4 -mb-4 rounded-b-xl border-t bg-muted/50 p-4 flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end`,i.class)]);var c=T(s);B(c,()=>i.children??t),j(s),I(s,e=>a(e),()=>a()),e(n,s),f()}var Mr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Nr=c(`<div><!></div>`);function Pr(n,i){r(i,!0);let a=O(i,`ref`,15,null),o=y(i,Mr);var s=Nr();C(s,e=>({"data-slot":`alert-dialog-header`,class:e,...o}),[()=>K(`grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]`,i.class)]);var c=T(s);B(c,()=>i.children??t),j(s),I(s,e=>a(e),()=>a()),e(n,s),f()}var Fr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function Ir(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=y(n,Fr);var o=k(),s=R(o);{let e=S(()=>K(`text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2`,n.class));x(s,()=>pt,(t,n)=>{n(t,F({"data-slot":`alert-dialog-title`,get class(){return m(e)}},()=>a,{get ref(){return i()},set ref(e){i(e)}}))})}e(t,o),f()}var Lr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`]);function Rr(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=y(n,Lr);var o=k(),s=R(o);x(s,()=>Qn,(e,t)=>{t(e,F({"data-slot":`alert-dialog-trigger`},()=>a,{get ref(){return i()},set ref(e){i(e)}}))}),e(t,o),f()}var zr=new Set([`$$slots`,`$$events`,`$$legacy`,`open`]);function Br(t,n){r(n,!0);let i=O(n,`open`,15,!1),a=y(n,zr);var o=k(),s=R(o);x(s,()=>ut,(e,t)=>{t(e,F(()=>a,{get open(){return i()},set open(e){i(e)}}))}),e(t,o),f()}var Vr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`max`,`value`]),Hr=c(`<div data-slot="progress-indicator" class="bg-primary size-full flex-1 transition-all"></div>`);function Ur(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=O(n,`max`,3,100),o=y(n,Vr);var s=k(),c=R(s);{let t=S(()=>K(`h-1 rounded-full bg-muted relative flex w-full items-center overflow-x-hidden`,n.class));x(c,()=>fr,(r,s)=>{s(r,F({"data-slot":`progress`,get class(){return m(t)},get value(){return n.value},get max(){return a()}},()=>o,{get ref(){return i()},set ref(e){i(e)},children:(t,r)=>{var i=Hr();g(()=>te(i,`transform: translateX(-${100-100*(n.value??0)/(a()??1)}%)`)),e(t,i)},$$slots:{default:!0}}))})}e(t,s),f()}var Wr=new Set([`$$slots`,`$$events`,`$$legacy`,`name`,`duration`,`label`,`variant`,`children`,`position`,`align`,`portal`,`onclick`,`onpress`,`class`,`message`]),Gr=c(`<div><div class="text-xs text-muted-foreground"><!></div> <!></div>`),Kr=c(`<!> <!>`,1);function qr(n,i){r(i,!0);let s=()=>E(m(U),`$countdown`,c),[c,u]=w(),d=O(i,`name`,3,`hold`),p=O(i,`duration`,3,800),x=O(i,`variant`,3,`ghost`),C=O(i,`position`,3,`left`),A=O(i,`align`,3,`center`),M=O(i,`portal`,3,!0),I=y(i,Wr),z=L(!1),V=L(!1),H=L(null),U=L(ne(v(p()))),W=S(()=>Math.round((1-s()/p())*100));h(()=>{s()===0&&se()});function ie(e){ce(e),e.altKey?se(!0):G()}function ae(e){e.key===` `&&G()}function G(){m(z)||(i.onpress?.(),b(z,!0),b(V,!0),N(b(U,re(p(),60),!0),`$countdown`,c),m(H)&&clearTimeout(m(H)))}function oe(){m(z)&&(b(H,setTimeout(()=>{b(V,!1)},m(W)>20?200:1e3),!0),b(z,!1),N(b(U,v(p()),!0),`$countdown`,c))}function se(e=!1){!m(z)&&!e||(i.onclick?.(),b(z,!1),b(H,setTimeout(()=>{b(V,!1),N(b(U,v(p()),!0),`$countdown`,c)},300),!0))}function ce(e){e.preventDefault(),e.stopPropagation()}function le(e,t){if(t)return document.body.appendChild(e),{destroy:()=>e.remove()}}var ue=Kr(),de=R(ue);{let n=S(()=>K(`select-none`,i.class)),r=S(()=>`anchor-name: --${d()};`);fe(de,F({get variant(){return x()}},()=>I,{get class(){return m(n)},onpointerdown:ie,onkeydown:ae,oncontextmenu:ce,onpointerup:oe,onpointerleave:oe,onkeyup:oe,get style(){return m(r)},children:(n,r)=>{var a=k(),o=R(a);B(o,()=>i.children??t),e(n,a)},$$slots:{default:!0}}))}var q=P(de,2),pe=t=>{var n=Gr(),r=T(n),s=T(r),c=t=>{var n=k(),r=R(n);B(r,()=>i.message),e(t,n)},u=t=>{var n=o();g(()=>l(n,i.label)),e(t,n)};a(s,e=>{i.message?e(c):e(u,-1)}),j(r),Ur(P(r,2),{get value(){return m(W)},class:`h-1 [&_div[data-slot=progress-indicator]]:bg-destructive/90 [&_div[data-slot=progress-indicator]]:transition-none`}),j(n),_(n,(e,t)=>le?.(e,t),M),g(e=>{ee(n,1,e),te(n,`position-anchor: --${d()}; position-area: ${C()} ${A()};`)},[()=>D(K(`fixed z-1002 w-fit min-w-26 transition-all ease-in-out space-y-1`,`bg-background/85 p-2 pt-1 rounded-md`,`starting:scale-0`))]),e(t,n)};a(q,e=>{m(V)&&e(pe)}),e(n,ue),f(),u()}var Jr=7e3,Yr=c(`<!> `,1),Xr=c(`<!> <!>`,1),Zr=c(`<p id="introspection-halt-error" class="text-destructive text-sm"> </p>`),Qr=c(` <!>`,1),$r=c(`<!> <div class="grid grid-cols-2 gap-4"><div class="flex flex-col gap-1.5"><!> <!> <p id="introspection-halt-hint"> </p></div> <div class="flex flex-col gap-1.5"><!> <!> <p id="introspection-halt-quiescence-hint"> </p></div></div> <!> <!>`,1);function ei(t,n){r(n,!0);let i=()=>E(Ce,`$configuration`,c),s=()=>E(ie,`$dict`,c),[c,d]=w(),p=S(()=>Pe(i())?i().halt??null:null),h=L(!1),_=L(ne({})),v=L(null),y=L(!1),C=L(!1),O=null,A=S(()=>m(_).duration??(m(p)===null?void 0:ae(600,m(p).duration))),M=S(()=>m(_).quiescence??(m(p)===null?void 0:ae(60,m(p).quiescence))),N=S(()=>m(p)!==null&&re(m(A),m(p).duration)),F=S(()=>m(p)!==null&&re(m(M),m(p).quiescence)),te=S(()=>m(N)&&m(F)),I=S(()=>m(v)!==null);function z(e){U(),b(C,!1),b(_,{},!0)}function B(){!m(te)||m(I)||(b(C,!1),b(v,9,!0),O=setInterval(V,1e3))}function V(){m(v)!==null&&(b(v,m(v)-1),!(m(v)>0)&&(W(),b(y,!0),H()))}async function H(){let e=await Ee(m(A),m(M));b(y,!1),b(C,e instanceof Error),m(C)?U():b(h,!1)}function U(){W(),b(v,null),b(y,!1)}function W(){O!==null&&clearInterval(O),O=null}function re(e,[t,n]){return e!==void 0&&Number.isInteger(e)&&e>=t&&e<=n}function ae(e,[t,n]){return Math.min(n,Math.max(t,e))}var G=k(),oe=R(G),ce=t=>{var n=k(),r=R(n);x(r,()=>Br,(t,n)=>{n(t,{onOpenChange:z,get open(){return m(h)},set open(e){b(h,e,!0)},children:(t,n)=>{var r=Xr(),i=R(r);{let t=S(()=>[se({variant:`ghost`}),`text-destructive hover:text-destructive`]);x(i,()=>Rr,(n,r)=>{r(n,{id:`introspection-halt-button`,get class(){return m(t)},children:(t,n)=>{var r=Yr(),i=R(r);Ie(i,{});var a=P(i);g(()=>l(a,` ${s().nav.halt??``}`)),e(t,r)},$$slots:{default:!0}})})}var c=P(i,2);x(c,()=>Er,(t,n)=>{n(t,{children:(t,n)=>{var r=$r(),i=R(r);x(i,()=>Pr,(t,n)=>{n(t,{children:(t,n)=>{var r=Xr(),i=R(r);x(i,()=>Ir,(t,n)=>{n(t,{children:(t,n)=>{u();var r=o();g(()=>l(r,s().halt.title)),e(t,r)},$$slots:{default:!0}})});var a=P(i,2);x(a,()=>Or,(t,n)=>{n(t,{children:(t,n)=>{u();var r=o();g(()=>l(r,s().halt.description)),e(t,r)},$$slots:{default:!0}})}),e(t,r)},$$slots:{default:!0}})});var c=P(i,2),d=T(c),f=T(d);mr(f,{for:`introspection-halt-input`,children:(t,n)=>{u();var r=o();g(()=>l(r,s().halt.interval)),e(t,r)},$$slots:{default:!0}});var h=P(f,2),b=()=>m(A),w=e=>m(_).duration=e;{let e=S(()=>!m(N));_r(h,{id:`introspection-halt-input`,type:`number`,inputmode:`numeric`,get min(){return m(p).duration[0]},get max(){return m(p).duration[1]},step:`1`,get disabled(){return m(I)},get value(){return b()},set value(e){w(e)},get"aria-invalid"(){return m(e)},"aria-describedby":`introspection-halt-hint`})}var E=P(h,2),O=T(E,!0);j(E),j(d);var ne=P(d,2),L=T(ne);mr(L,{for:`introspection-halt-quiescence-input`,children:(t,n)=>{u();var r=o();g(()=>l(r,s().halt.quiescence)),e(t,r)},$$slots:{default:!0}});var z=P(L,2),V=()=>m(M),H=e=>m(_).quiescence=e;{let e=S(()=>!m(F));_r(z,{id:`introspection-halt-quiescence-input`,type:`number`,inputmode:`numeric`,get min(){return m(p).quiescence[0]},get max(){return m(p).quiescence[1]},step:`1`,get disabled(){return m(I)},get value(){return V()},set value(e){H(e)},get"aria-invalid"(){return m(e)},"aria-describedby":`introspection-halt-quiescence-hint`})}var W=P(z,2),re=T(W,!0);j(W),j(ne),j(c);var ie=P(c,2),ae=t=>{var n=Zr(),r=T(n,!0);j(n),g(()=>l(r,s().halt.failed)),e(t,n)};a(ie,e=>{m(C)&&e(ae)});var G=P(ie,2);x(G,()=>jr,(t,n)=>{n(t,{children:(t,n)=>{var r=Xr(),i=R(r),c=t=>{fe(t,{id:`introspection-halt-cancel-button`,variant:`outline`,get disabled(){return m(y)},onclick:U,children:(t,n)=>{u();var r=Qr(),i=R(r),a=P(i);Ne(a,{id:`introspection-halt-countdown`,variant:`destructive`,class:`tabular-nums`,children:(t,n)=>{u();var r=o();g(()=>l(r,m(v))),e(t,r)},$$slots:{default:!0}}),g(()=>l(i,`${s().halt.cancel??``} `)),e(t,r)},$$slots:{default:!0}})},d=t=>{var n=k(),r=R(n);x(r,()=>yr,(t,n)=>{n(t,{id:`introspection-halt-cancel-button`,children:(t,n)=>{u();var r=o();g(()=>l(r,s().halt.cancel)),e(t,r)},$$slots:{default:!0}})}),e(t,n)};a(i,e=>{m(I)?e(c):e(d,-1)});var f=P(i,2);{let t=S(()=>!m(te)||m(I));qr(f,{id:`introspection-halt-confirm-button`,variant:`destructive`,portal:!1,position:`top`,get duration(){return Jr},get label(){return s().halt.hold},get disabled(){return m(t)},onclick:B,children:(t,n)=>{u();var r=o();g(()=>l(r,s().nav.halt)),e(t,r)},$$slots:{default:!0}})}e(t,r)},$$slots:{default:!0}})}),g((e,t)=>{ee(E,1,D([`text-xs`,m(N)?`text-muted-foreground`:`text-destructive`])),l(O,e),ee(W,1,D([`text-xs`,m(F)?`text-muted-foreground`:`text-destructive`])),l(re,t)},[()=>s().halt.bounds(m(p).duration[0],m(p).duration[1]),()=>s().halt.bounds(m(p).quiescence[0],m(p).quiescence[1])]),e(t,r)},$$slots:{default:!0}})}),e(t,r)},$$slots:{default:!0}})}),e(t,n)};a(oe,e=>{m(p)!==null&&e(ce)}),e(t,G),f(),d()}var ti=new Set([`$$slots`,`$$events`,`$$legacy`,`class`]),ni=c(`<p class="text-muted-foreground py-20 text-center"> </p>`),ri=c(`<section class="flex flex-col gap-2"><div class="text-muted-foreground flex items-center gap-3"><span class="text-xs font-medium tracking-wide uppercase"> </span> <!></div> <!></section>`),ii=c(`<div></div>`);function ai(t,i){r(i,!0);let o=()=>E(ge,`$nodes`,u),s=()=>E(Oe,`$query`,u),c=()=>E(ve,`$dict`,u),[u,d]=w(),p=y(i,ti),_=new be,v=S(()=>Pe(o())?o():[]),b=S(()=>m(v).map(e=>({node:e,rank:Te(e,s())})).filter(e=>e.rank>0).sort(D));h(()=>{let e=m(b).length===1?Me(m(b)[0].node):null;return xe.set(e===null?null:()=>_.add(e)),()=>xe.set(null)});function D(e,t){return t.rank-e.rank||e.node.namespace.localeCompare(t.node.namespace)||e.node.component.localeCompare(t.node.component)}function O(e){return[{id:`user`,label:c().space.user,of:e.filter(e=>!Se(e.node))},{id:`system`,label:c().space.system,of:e.filter(e=>Se(e.node))}].filter(e=>e.of.length>0)}W(t,{get store(){return ge},awaited:t=>{var r=k(),o=R(r),s=t=>{var n=ni(),r=T(n,!0);j(n),g(()=>l(r,c().nodes.empty)),e(t,n)},u=t=>{var n=ni(),r=T(n,!0);j(n),g(()=>l(r,c().nodes.nomatch)),e(t,n)},d=t=>{var r=ii();C(r,()=>({class:[`flex flex-col gap-6`,i.class],...p})),n(r,21,()=>O(m(b)),e=>e.id,(t,r)=>{var i=ri(),a=T(i),o=T(a),s=T(o,!0);j(o);var c=P(o,2);oe(c,{class:`flex-1`}),j(a);var u=P(a,2);x(u,()=>_e,(t,i)=>{i(t,{class:`gap-2`,children:(t,i)=>{var a=k(),o=R(a);n(o,17,()=>m(r).of,e=>e.node.id,(e,t)=>{let n=S(()=>Me(m(t).node));var r=()=>_.has(m(n)),i=e=>e?_.add(m(n)):_.delete(m(n));je(e,{get node(){return m(t).node},get open(){return r()},set open(e){i(e)}})}),e(t,a)},$$slots:{default:!0}})}),j(i),g(()=>l(s,m(r).label)),e(t,i)}),j(r),e(t,r)};a(o,e=>{m(v).length===0?e(s):m(b).length===0?e(u,1):e(d,-1)}),e(t,r)},$$slots:{awaited:!0}}),f(),d()}export{Xe as a,et as i,ei as n,Je as o,_r as r,ai as t};
@@ -0,0 +1,6 @@
1
+ import{A as e,At as t,C as n,Ct as r,E as i,I as a,L as o,M as s,Mt as c,N as l,St as u,V as d,_t as f,a as p,bt as m,ct as h,d as g,dt as _,et as v,ft as y,gt as b,ht as x,i as S,j as C,jt as ee,kt as w,nt as T,o as E,tt as D,vt as O,w as te,x as k,y as ne}from"./sTot5bBi.js";import{t as re}from"./B8EdV3yC.js";import"./xihTtKlq.js";var ie=class{store;values;request;revalidate;stale;timestamp=0;constructor(e){this.store=O(null),this.values=e.values,this.request=e.get,this.revalidate=e.revalidate??oe.revalidate,this.stale=e.stale??oe.stale,e.persist!==void 0&&this.persist(e.persist),e.bind!==void 0&&this.bind(e.bind)}subscribe(e,t){return this.sync(),this.store.subscribe(e,t)}add(e){this.values?.set(e.id,e),this.store.update(t=>t===null||t instanceof Error?[e]:t.find(t=>t.id===e.id)===void 0?[e,...t]:t)}get(e,t){if(this.values===void 0)throw Error(`Collection: values is not defined`);return this.values.get(e,t)}extract(e){if(this.values===void 0)throw Error(`Collection: values is not defined`);return this.values.extract(e)}delete(e){this.values?.delete(e),this.store.update(t=>t===null||t instanceof Error?t:t.filter(t=>t.id!==e))}set(e,t){this.store.update(n=>{if(n===null||n instanceof Error)return[e];let r=n.findIndex(t=>t.id===e.id);return r===-1?t?.add===!0?[e,...n]:n:(n[r]=e,n)}),this.values?.set(e.id,e)}update(e,t,n){if(this.values===void 0)throw Error(`Collection: values is not defined`);let r=this.values.extract(e);if(r===null)return;let i=t(r)??r;this.set(i,n)}sync(){return(this.timestamp===0||this.timestamp+this.revalidate<Date.now())&&(this.stale||this.clear(),this.refresh()),this}async fetch(){return await this.refresh(),this}replace(e){let t=e;if(this.store.set(t),this.timestamp=Date.now(),this.values!==void 0)for(let e of t)this.values.set(e.id,e)}async refresh(){if(this.request===void 0)return;this.timestamp=Date.now();let e=await this.request();e instanceof Error?this.store.set(e):this.replace(e)}persist(e){if(typeof window>`u`)return;let t=this.load(e);if(t!==null&&(this.store.set(t),this.values?.persistent===!1))for(let e of t)this.values.set(e.id,e);this.store.subscribe(t=>{t instanceof Error||(t===null?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(t)))})}load(e){if(typeof window>`u`)return null;let t=localStorage.getItem(e);if(t===null)return null;try{let n=JSON.parse(t);return Array.isArray(n)?n:(console.error(`Storage value for ${e} is not an array:`,n),null)}catch(t){return console.error(`Invalid storage value for ${e}`,t),null}}bind(e){e.subscribe(e=>{e===null&&this.clear()})}clear(){this.store.set(null),this.values?.clear(),this.timestamp=0}};function ae(e){return new ie(e)}var oe={revalidate:3e5,stale:!1},se=class{persistent;values={};fetch;revalidate;permanent;stale;persist;ready=!1;dumping=null;constructor(e){this.fetch=e.get,this.revalidate=e.revalidate??A.revalidate,this.permanent=e.permanent??A.permanent,this.stale=e.stale??A.stale,this.persist=e.persist,this.persistent=this.persist!==void 0,this.load(),e.bind!==void 0&&this.bind(e.bind)}set(e,t,n){let r=t,i=this.values[e]??(this.values[e]=this.create(r));return n?.stash===!0?this.stash(e):delete i.stash,i.store.set(r),!(r instanceof Error)&&this.ready&&n?.stash!==!0&&this.dump(),this.values[e].store}reset(e){let t=this.values[e]?.stash;return t===void 0?this.extract(e):(t===null?this.delete(e):this.set(e,t),t)}get(e,t){this.ready=!0;let n=this.values[e]??=this.create();return this.fetch===void 0||t?.fetch===!1||(n.timestamp===0||n.timestamp+this.revalidate<Date.now())&&(this.stale||n.store.set(null),n.timestamp=Date.now(),this.fetch(e).then(t=>this.set(e,t))),n.store}extract(e){if(this.values[e]===void 0)return null;let t=b(this.values[e].store);return t instanceof Error?null:t}delete(e){if(!(e in this.values))return;let t=this.values[e];t.store.set(null),t.timestamp=0,delete t.stash,this.dump()}clear(){for(let e of Object.keys(this.values))this.delete(e);this.ready=!1}create(e){return{store:O(e??null),timestamp:this.permanent&&e!==void 0?Date.now():0}}stash(e){let t=this.values[e];if(t.stash!==void 0){console.warn(`Stash overlap, skipping`);return}let n=this.get(e,{fetch:!1});t.stash??=b(n)}dump(e=!0){if(this.persist===void 0||typeof window>`u`)return;if(e){this.dumping??=setTimeout(()=>this.dump(!1),ce);return}this.dumping=null;let t={};for(let[e,n]of Object.entries(this.values)){let r=n.stash??b(n.store);r!==null&&!(r instanceof Error)&&(t[e]=r)}Object.keys(t).length===0?localStorage.removeItem(this.persist):localStorage.setItem(this.persist,JSON.stringify(t))}load(){if(this.persist===void 0||typeof window>`u`)return;let e=localStorage.getItem(this.persist);if(e!==null)try{let t=JSON.parse(e);if(typeof t!=`object`||!t){console.error(`Storage value for ${this.persist} is not an object:`,t);return}for(let[e,n]of Object.entries(t))this.set(e,n)}catch(e){console.error(`Invalid storage value for ${this.persist}`,e)}}bind(e){e.subscribe(e=>{e===null&&this.clear()})}},ce=100,A={revalidate:3e5,permanent:!1,stale:!1};function le(e={}){return new se(e)}var ue=class{store;default;request;revalidate;timestamp=0;constructor(e){this.default=e.default??null,this.request=e.get,this.revalidate=e.revalidate??pe.revalidate,this.store=e.persist===void 0||typeof window>`u`?O(this.default):de(e.persist,this.default,e.session),e.bind&&this.bind(e.bind)}set(e){this.store.set(e)}update(e){this.store.update(t=>e(t))}subscribe(e,t){return this.sync(),this.store.subscribe(e,t)}extract(){return b(this.store)}sync(){this.request!==void 0&&this.timestamp+this.revalidate<Date.now()&&this.refresh()}async refresh(){if(this.request===void 0)return;this.timestamp=Date.now();let e=await this.request();e instanceof Error||this.set(e)}bind(e){e.subscribe(e=>{e===null&&this.store.set(this.default)})}};function j(e={}){return new ue(e)}function de(e,t,n){let r=O(fe(e)??t),i=n?`sessionStorage`:`localStorage`;return r.subscribe(t=>{t===null?window[i].removeItem(e):window[i].setItem(e,JSON.stringify(t))}),r}function fe(e){let t=window.localStorage.getItem(e);if(t===null)return null;try{return JSON.parse(t)}catch(t){return console.error(`Invalid storage value for ${e}`,t),null}}var pe={revalidate:3e5};function me(e,t){return new Promise(n=>{let r=!1,i=null;i=e.subscribe(e=>{t(e)&&(i?.(),r=!0,n(e))}),r&&i?.()})}function he(e){return me(e,e=>e!==null&&!(e instanceof Error))}function ge(...e){return x(e,(e,t)=>{let n=e.find(e=>e instanceof Error);n?t(n):e.some(e=>e===null)?t(null):t([...e])})}var _e={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},ve=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},ye=Symbol(`lucide-context`),be=()=>m(ye),xe=new Set([`$$slots`,`$$events`,`$$legacy`,`name`,`color`,`size`,`strokeWidth`,`absoluteStrokeWidth`,`iconNode`,`children`]),Se=l(`<svg><!><!></svg>`);function M(i,a){r(a,!0);let o=be()??{},s=S(a,`color`,19,()=>o.color??`currentColor`),c=S(a,`size`,19,()=>o.size??24),l=S(a,`strokeWidth`,19,()=>o.strokeWidth??2),f=S(a,`absoluteStrokeWidth`,19,()=>o.absoluteStrokeWidth??!1),m=S(a,`iconNode`,19,()=>[]),_=p(a,xe),y=h(()=>f()?Number(l())*24/Number(c()):l());var b=Se();g(b,e=>({..._e,...e,..._,width:c(),height:c(),stroke:s(),"stroke-width":d(y),class:[`lucide-icon lucide`,o.class,a.name&&`lucide-${a.name}`,a.class]}),[()=>!a.children&&!ve(_)&&{"aria-hidden":`true`}]);var x=v(b);n(x,17,m,te,(t,n)=>{var r=h(()=>ee(d(n),2));let i=()=>d(r)[0],a=()=>d(r)[1];var o=C(),s=D(o);ne(s,i,!0,(e,t)=>{g(e,()=>({...a()}))}),e(t,o)});var E=T(x);k(E,()=>a.children??t),w(b),e(i,b),u()}var Ce=new Set([`$$slots`,`$$events`,`$$legacy`]);function N(e,t){let n=p(t,Ce),r=[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`}]];M(e,E({name:`loader-circle`},()=>n,{get iconNode(){return r}}))}var we=new Set([`$$slots`,`$$events`,`$$legacy`]);function Te(e,t){let n=p(t,we),r=[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`}],[`path`,{d:`M3 3v5h5`}]];M(e,E({name:`rotate-ccw`},()=>n,{get iconNode(){return r}}))}var Ee=s(`<div class="m-auto flex flex-col items-center gap-4"><span class="text-destructive">Something went terribly wrong</span> <button class="p-4 border border-muted-foreground hover:bg-muted cursor-pointer rounded-md flex items-center gap-2"><!></button></div>`);function De(t,n){let r=()=>y(n.store,`$store`,a),[a,s]=_(),c=S(n,`silent`,3,!1);var l=C(),u=D(l),d=t=>{var r=C(),a=D(r),o=t=>{var r=C(),i=D(r);k(i,()=>n.waiting),e(t,r)},s=e=>{N(e,{class:`animate-spin m-auto text-muted-foreground`})};i(a,e=>{n.waiting?e(o):c()||e(s,1)}),e(t,r)},f=t=>{var a=C(),s=D(a),l=t=>{var i=C(),a=D(i);k(a,()=>n.error,r),e(t,i)},u=t=>{var n=Ee(),r=T(v(n),2);Te(v(r),{size:16}),w(r),w(n),o(`click`,r,()=>window.location.reload()),e(t,n)};i(s,e=>{n.error?e(l):c()||e(u,1)}),e(t,a)},p=t=>{var i=C(),a=D(i);k(a,()=>n.awaited,r),e(t,i)};i(u,e=>{r()===null?e(d):r()instanceof Error?e(f,1):e(p,-1)}),e(t,l),s()}a([`click`]);var P=j({persist:`auth:account`}),F=j({persist:`auth:challenge`,bind:P}),I=j({persist:`auth:method`}),Oe=O(!1),ke=O(!1),Ae=x([F,P,Oe],([e,t,n])=>e!==null&&t!==null&&n===!1);function je(e){P.extract()?.id!==e.id&&P.set(null),P.set(e)}function L(e){return{all:e||=new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(e){e(n)}),(r=e.get(`*`))&&r.slice().map(function(e){e(t,n)})}}}var R=c((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Err=void 0,e.Err=class extends Error{code;name=`Error`;message=``;cause;constructor(e,t){super(),this.code=e,delete this.stack,Object.defineProperty(this,"name",{enumerable:!1}),typeof t==`string`?(this.message=t,Object.defineProperty(this,"cause",{enumerable:!1})):(Object.defineProperty(this,"message",{enumerable:!1}),Object.defineProperty(this,"cause",{enumerable:t!==void 0,value:t}))}}}))();async function Me(e,t){if(!e.ok||!e.body||e.bodyUsed)return e;let n=e.headers.get(`content-type`);if(!n||!~n.indexOf(`multipart/`))return e;let r=n.indexOf(`boundary=`),i=`-`;if(~r){let e=r+9,t=n.indexOf(`;`,e);i=n.slice(e,t>-1?t:void 0).trim().replace(/"/g,``)}return async function*(e,t,n){let r,i,a,o=new TextDecoder(`utf8`),s=e.getReader(),c=!n||!n.multiple,l=t.length,u=``,d=[];try{let e;e:for(;!(e=await s.read()).done;){let n=o.decode(e.value,{stream:!0});r=u.length,u+=n;let s=n.indexOf(t);for(~s?r+=s:r=u.indexOf(t),d=[];~r;){let e=u.slice(0,r),n=u.slice(r+l);if(i){let t=e.indexOf(`\r
2
+ \r
3
+ `)+4,r=e.lastIndexOf(`\r
4
+ `,t),i=!1,o=e.slice(t,r>-1?void 0:r),s=String(e.slice(0,t)).trim().split(`\r
5
+ `),l={},u=s.length;for(;a=s[--u];a=a.split(`: `),l[a.shift().toLowerCase()]=a.join(`: `));if(a=l[`content-type`],a&&~a.indexOf(`application/json`))try{o=JSON.parse(o),i=!0}catch{}if(a={headers:l,body:o,json:i},c?yield a:d.push(a),n.slice(0,2)===`--`)break e}else t=`\r
6
+ `+t,i=l+=2;u=n,r=u.indexOf(t)}d.length&&(yield d)}}finally{d.length&&(yield d),await s.cancel()}}(e.body,`--${i}`,t)}var Ne=Object.defineProperty,Pe=(e,t)=>{for(var n in t)Ne(e,n,{get:t[n],enumerable:!0})},Fe=Symbol(`meta`);function Ie(e){return e[Fe]??null}function Le(e,t){Object.defineProperty(e,Fe,{value:t,writable:!1,enumerable:!1,configurable:!1})}var Re=class{origin;events;sleep;fetch=fetch.bind(globalThis);challenge=null;constructor(e){this.origin=e.origin,this.events=e.events,e.sleep!==void 0&&(this.sleep=JSON.stringify(e.sleep))}async json(e,t){let n=this.setup(t),r=await this.request(e,n),i=r.headers.get(`content-type`)===`application/json`?await r.json():await r.text();return typeof i==`object`&&i&&Le(i,{status:r.status,headers:r.headers}),r.ok?(this.events.emit(`response`,{status:r.status,headers:r.headers}),i):(this.events.emit(`error`,{code:r.status,body:i}),new R.Err(r.status,i))}async multipart(e,t){let n=this.setup(t),r=await this.request(e,n);if(!r.ok)return new R.Err(r.status,{body:await r.text()});let i=await Me(r),a=await i.next();if(n.debug&&console.debug(`Multipart ACK`,{path:e,body:a.value.body}),JSON.parse(a.value.body)!==`ACK`)throw Error(`No ACK`);return(async function*(){for await(let t of i){n.debug&&console.debug(`Multipart chunk`,{path:e,body:t.body});let r=JSON.parse(t.body);if(r===`FIN`)return;yield r}})()}async octets(e,t){let n=await this.multipart(e,t);if(n instanceof Error)return n;let r=(await n.next()).value,i=L();return(async()=>{await new Promise(e=>setTimeout(e,0));for await(let r of n){let n=r.status===`completed`?r.error?new R.Err(r.error.code??`UNKNOWN`,r.error.message):r.output:new R.Err(`EXCEPTION`);t?.debug&&console.debug(`Emitting octets step`,{path:e,step:r.step,payload:n}),i.emit(r.step,n)}i.off(`*`)})(),[r,i]}authenticate(e){this.challenge=e}use(e){this.fetch=e}setup(e){if(e??={},e.headers??={},e.headers.accept??=`application/json`,this.sleep!==void 0&&(e.headers.sleep=this.sleep),e.credentials===`include`&&e.headers.authorization===void 0){if(this.challenge===null)throw Error(`Credentials must be set before sending authenticated request`);e.headers.authorization=this.challenge,delete e.credentials}return e.body!==void 0&&(e.method??=`POST`,e.body instanceof File||e.body instanceof ReadableStream?(e.duplex=`half`,e.headers[`content-type`]??=e.body.type??`application/octet-stream`):(e.body=JSON.stringify(e.body),e.headers[`content-type`]??=`application/json`)),e}async request(e,t){let n=new URL(e,this.origin),r=await this.fetch(n.href,t),i=r.headers.get(`authorization`);return i!==null&&(this.challenge=i,this.events.emit(`challenge`,i)),r}},ze=class{agent;path;init;constructor(e){this.agent=e.agent,this.path=e.path,this.init=e.init}async json(e,t){return await this.request(`json`,e,t)}async octets(e,t){return await this.request(`octets`,e,t)}async multipart(e,t){return await this.request(`multipart`,e,t)}async request(e,t,n){let r=typeof t==`string`?t:``;n=typeof t==`string`?n:t;let i=this.abs(r),a=Object.assign({},this.init,n);if(e===`json`)return await this.agent.json(i,a);if(e===`octets`)return await this.agent.octets(i,a);if(e===`multipart`)return await this.agent.multipart(i,a);throw Error(`Invalid method: ${e}`)}abs(e){let t=new URL(this.path,`https://void`),n=new URL(e,t);return n.pathname.endsWith(`/`)||(n.pathname+=`/`),n.pathname+n.search}},Be=class{events;agent;constructor(e){this.events=L(),this.agent=new Re({origin:e.origin,events:this.events,sleep:e.sleep})}resource(e,t){return new ze({agent:this.agent,path:e,init:t})}authenticate(e){this.agent.authenticate(e)}use(e){this.agent.use(e)}};function Ve(e){return typeof e==`string`&&(e={origin:e}),new Be(e)}Pe({},{format:()=>Ue,test:()=>He});function He(e){return/^[[(]\d+\.\.\d+[\])]{1}$/.test(e)}function Ue(e,t){let[n,r]=t.slice(1,-1).split(`..`);return[`${e}${t.startsWith(`(`)?`>`:`>=`}${n}`,`${e}${t.endsWith(`)`)?`<`:`<=`}${r}`]}var We={title:`Introspection`,description:`The map of a Toa application`},Ge=8e3,Ke=(()=>{if(typeof window>`u`)return``;let{protocol:e,hostname:t,origin:n}=window.location;return Ye(t)?`${e}//${t}:${Ge}`:n})(),qe=8003;function Je(e){if(typeof window>`u`)return``;let{protocol:t,hostname:n}=window.location;return`${Ye(n)?`${t}//${n}:${qe}`:``}/.configuration/${e}/`}function Ye(e){return e===`localhost`||e===`127.0.0.1`||e===`[::1]`||e.startsWith(`192.168.`)||e.startsWith(`172.16.`)||e.startsWith(`10.`)}var Xe=`1`;(()=>{let e=new Date(Number.parseInt(re)),t=e.getFullYear(),n=new Date(t,0,1).getTime(),r=new Date(t+1,0,1).getTime();return`${Xe}.${(t+(e.getTime()-n)/(r-n)).toFixed(4)}`})();var z=Ve({origin:Ke,sleep:void 0});console.info(`Origin connected`,Ke,`no sleep`);var Ze=z.resource(`/identity/`);async function B(e){let t={method:`GET`};return e!==void 0&&(t.headers={authorization:e},t.credentials=`include`),Ze.json(t)}var Qe=z.resource(`/identity/basic/`,{credentials:`include`});async function $e(e,t){return await Qe.json(e,{method:`POST`,body:t})}var et=z.resource(`/accounts/otp/`);async function V(e,t){return typeof e==`string`?await et.json(e,{method:`POST`,body:t,credentials:`include`}):await et.json({method:`POST`,body:e})}var tt=z.resource(`/identity/passkeys/`);async function nt(e,t){return typeof e==`string`?await tt.json(e,{method:`POST`,body:t,credentials:`include`}):await tt.json({method:`POST`,body:e})}var rt=z.resource(`/identity/federation/`,{credentials:`include`});async function it(e,t){return await rt.json(e,{method:`POST`,body:t})}async function H(){let e=F.extract();if(e===null)return;let t=await B(e);if(t instanceof Error)return t;je(t)}function U(e,t){return e instanceof Error?e:(je(e),I.set(t),e)}var at=j({persist:`auth:oidc:nonce`});function ot(e,t){let{client:n,endpoint:r,type:i,scope:a}=e;if(n===void 0||n===``)throw Error(`Client ID is required`);let o=st(),s=new URLSearchParams({client_id:n,redirect_uri:window.location.origin+`/`,response_type:i,response_mode:`fragment`,scope:a,state:btoa(JSON.stringify({idp:t})),nonce:o});at.set(o),window.location.href=r+`?`+s}function st(){return window.crypto?.randomUUID?.()??Math.random().toString(16).slice(2)}var ct=globalThis.__sveltekit_192pmgr.env,lt={apple:{iss:`https://appleid.apple.com`,endpoint:`https://appleid.apple.com/auth/authorize`,type:`code`,scope:`openid`,client:ct.PUBLIC_APPLE_CLIENT_ID},google:{iss:`https://accounts.google.com`,endpoint:`https://accounts.google.com/o/oauth2/v2/auth`,type:`id_token`,scope:`openid profile`,client:ct.PUBLIC_GOOGLE_CLIENT_ID}};async function ut(e){await dt();let t=await new Promise(t=>{window.google.accounts.oauth2.initCodeClient({client_id:e.client,scope:e.scope,ux_mode:`popup`,state:btoa(JSON.stringify({idp:`google`})),redirect_uri:window.location.origin+`/`,callback:async e=>{t(e)}}).requestCode()});return t?.code===void 0?Error(`NO_RESPONSE`,{cause:t}):t.code}function dt(){return new Promise((e,t)=>{if(window.google?.accounts?.oauth2!==void 0)return e(void 0);let n=document.createElement(`script`);n.src=`https://accounts.google.com/gsi/client`,n.async=!0,n.onload=()=>e(void 0),n.onerror=t,document.head.appendChild(n)})}var W=typeof window<`u`&&window;async function ft(e){await pt(e);let t=await W.AppleID.auth.signIn().catch(e=>e);return t instanceof Error?t:t?.authorization===void 0?Error(`No authentication response received`,{cause:t}):t.authorization.code}function pt(e){if(W.AppleID===void 0)return new Promise((t,n)=>{let r=document.createElement(`script`);r.src=`https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js`,r.async=!0,r.onload=()=>{W.AppleID.auth.init({clientId:e.client,scope:e.scope,redirectURI:window.location.origin,state:btoa(JSON.stringify({idp:`apple`})),usePopup:!0}),t(void 0)},r.onerror=n,document.head.appendChild(r)})}var mt={apple:ft,google:ut};async function ht(e,t){let n=await gt(e);return n instanceof Error?n:t===void 0?vt(e,n):_t(t,n)}async function gt(e){let t=mt[e]??ot,n=lt[e],r=await t(n,e);if(r instanceof Error)return console.error(`Authentication failed`,r),r;if(r===void 0)throw Error(`No authentication code received, redirect flow is not supported`);let i={code:r,iss:n.iss,for:window.location.origin};return btoa(JSON.stringify(i))}async function _t(e,t){let n=await it(e,{scheme:`code`,credentials:t});if(n instanceof Error)return n;H()}async function vt(e,t){return U(await B(`Code `+t),e)}function yt(){P.set(null)}async function bt(e,t){return U(await B(`Basic `+btoa(`${e}:${t}`)),`password`)}async function xt(e,t){return await $e(e,t)}async function St(e,t){let n=await xt(e,t);if(n instanceof Error)return n;H()}async function Ct(e){return V({email:e})}async function wt(e,t){return await V(e,{email:t})}async function Tt(e,t){return U(await B(`OTP `+btoa(`${e}:${t}`)),`password`)}var Et=z.resource(`/identity/passkeys/challenges/`);async function Dt(e,t){let n={type:e};return t===void 0?await Et.json(`.`,{method:`POST`,body:n}):await Et.json(t,{method:`POST`,body:n})}var Ot=z.resource(`/identity/passkeys/`);async function kt(e){return await Ot.json(e,{credentials:`include`})}async function At(){return await kt((await he(P)).id)}ae({get:At,persist:`identity:passkeys`,bind:P,stale:!0});function G(e){let t=(e+`=`.repeat((4-e.length%4)%4)).replace(/-/g,`+`).replace(/_/g,`/`),n=atob(t),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r.buffer}function jt(e){return new TextEncoder().encode(e).buffer}function K(e){return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/,``)}function Mt({id:e,transports:t}){return{id:G(e),type:`public-key`,transports:t}}async function Nt(e,t){let n={challenge:G(t.challenge),timeout:t.timeout,authenticatorSelection:t.authenticatorSelection,pubKeyCredParams:t.pubKeyCredParams,rp:{name:`app`},user:{id:jt(e.id),name:e.name,displayName:e.name},excludeCredentials:t.excludeCredentials.map(Mt)};return await navigator.credentials.create({publicKey:n}).catch(e=>e)}async function Pt(e){let t={timeout:e.timeout,challenge:G(e.challenge),allowCredentials:e.allowCredentials.map(Mt),userVerification:e.userVerification};return await navigator.credentials.get({publicKey:t})}async function Ft(e,t){let n=await Dt(`creation`,t);if(n instanceof Error)return n;let r=await Nt({id:n.identity,name:e},n);if(r instanceof Error)return r;if(r===null)throw Error(`No credential is created`);return{key:It(r,e),identity:n.identity}}function It(e,t){let n=e.response,r=n.getAuthenticatorData(),i=n.getTransports(),a=n.getPublicKeyAlgorithm(),o=n.getPublicKey(),s=e.getClientExtensionResults();if(o===null)throw Error(`No public key is created`);return{id:e.id,type:e.type,response:{attestationObject:K(n.attestationObject),clientDataJSON:K(n.clientDataJSON),authenticatorData:K(r),transports:i,publicKeyAlgorithm:a,publicKey:K(o)},authenticatorAttachment:e.authenticatorAttachment,clientExtensionResults:s,label:t}}async function Lt(e){let t=await Dt(`request`,e);if(t instanceof Error)return t;let n=Date.now(),r=await Pt(t).catch(e=>e);return r instanceof Error?r.name===`NotAllowedError`&&Date.now()-n<50?new zt:r:r===null?Error(`No credential given`):Rt(r)}function Rt(e){let t=e.response;return{id:e.id,type:e.type,response:{authenticatorData:K(t.authenticatorData),clientDataJSON:K(t.clientDataJSON),signature:K(t.signature),userHandle:t.userHandle===null?null:K(t.userHandle)},authenticatorAttachment:e.authenticatorAttachment,clientExtensionResults:e.getClientExtensionResults()}}var zt=class extends Error{constructor(){super(),this.name=this.constructor.name}},Bt=typeof window>`u`||window.PublicKeyCredential!==void 0;async function Vt(e,t){let n=await Ft(e,t);if(n instanceof Error)return console.error(`Credential creation failed`,n),n;let r=await nt(n.identity,n.key);if(r instanceof Error)return console.error(`Credential registration failed`,r),r;let i=F.extract();return i===null?Error(`Unauthenticated`):U(await B(i),`passkey`)}async function Ht(e){let t=await Lt(e);if(t instanceof Error)return console.error(`Credential request failed`,t),t;let n=await nt(t);if(n instanceof Error)return console.error(`Credential verification failed`,n),n;let r=F.extract();return r===null?Error(`Unauthenticated`):U(await B(r),`passkey`)}function Ut(e){if(document.startViewTransition===void 0)return Promise.resolve(e?.());let t=e!==void 0;return t&&Xt(),new Promise(n=>{let r=document.startViewTransition(async()=>{Kt(),n(await e?.())});r.finished.then(i,i),r.ready.catch(Wt);function i(){t&&Zt(),J()}})}function Wt(){}function Gt(e){if(!(e.type===`popstate`&&e.event.hasUAVisualTransition)&&document.startViewTransition!==void 0)return new Promise(t=>{let n=document.startViewTransition({types:[`route`],update:async()=>{Kt(),t(),await e.complete}});n.finished.then(J,J),n.ready.catch(Wt)})}var q=null;function Kt(){if(q===null)return;let e=q.el.style.viewTransitionName===q.name;q.el.style.viewTransitionName=e?``:q.name,q.el.style.viewTransitionClass=e?``:q.classes??``}function J(){q!==null&&q.el.style.viewTransitionName===q.name&&(qt(q),q=null)}function qt(e){e.el.style.viewTransitionName=``,e.el.style.viewTransitionClass=``}var Jt=O(!1),Y=new Set;function Yt(e,t){let n={node:e,options:t,original:{name:e.style.viewTransitionName,classes:e.style.viewTransitionClass}};return Y.add(n),{destroy:()=>Y.delete(n)}}function Xt(){Jt.set(!0);for(let e of Y)e.original={name:e.node.style.viewTransitionName,classes:e.node.style.viewTransitionClass},e.node.style.viewTransitionName=e.options.name,e.options.classes!==void 0&&(e.node.style.viewTransitionClass=e.options.classes)}function Zt(){for(let e of Y)e.original!==void 0&&(e.node.style.viewTransitionName=e.original.name,e.node.style.viewTransitionClass=e.original.classes);Jt.set(!1)}navigator.userAgent.toLowerCase().includes(`windows`);var Qt=/mac ?os|ios|ipad ?os/i.test(navigator.userAgentData?.platform??``)||/(Mac|iPhone|iPad|iPod)/.test(navigator.userAgent);/android/i.test(navigator.userAgent),/(iPhone|iPad|iPod)/.test(navigator.userAgent),/^((?!chrome|android).)*safari/i.test(navigator.userAgent),`ontouchstart`in window,window.matchMedia(`(display-mode: standalone)`).matches,/PWAShell/i.test(navigator.userAgent),navigator.userAgent.match(/PWAShell\/(\S+)/)?.[1];var $t=!(`ontouchstart`in window);[`en-US`,`en-LR`,`en-MM`].includes(navigator.language),[`en-US`,`en-GB`,`en-CA`,`en-AU`,`en-NZ`,`en-IE`,`en-IN`,`en-LR`,`en-MM`].includes(navigator.language);function en(e=navigator.userAgent){return[/FBAN|FBAV|FB_IAB/i,/Instagram/i,/Twitter/i,/Line/i,/LinkedIn/i,/Snapchat/i,/WhatsApp/i,/WeChat/i,/Messenger/i,/QQ/i,/Reddit/i,/Puffin/i,/TikTok/i,/musical.ly/i,/YouTube/i,/Pinterest/i,/Discord/i,/Telegram/i,/Viber/i,/Slack/i,/Signal/i,/KakaoTalk/i,/Baidu/i].some(t=>t.test(e))||(()=>{let t=RegExp(`(${[`WebView`,`(iPhone|iPod|iPad)(?!.*Safari/)`,`Android.*(wv)`,`(AppleWebKit)(?!.*Safari)`].join(`|`)})`,`ig`);return e.match(t)!==null})()||`TelegramWebviewProxy`in window||`TelegramWebviewProxyProto`in window||`TelegramWebview`in window}en(navigator.userAgent);var tn=new URLSearchParams;new URLSearchParams;function nn(e){return tn.get(e)}function rn(e,t=24){return f(e,n=>{let r=Date.now(),i=setInterval(()=>a(),1e3/t);function a(){let t=e-(Date.now()-r);t>0?n(t):(n(0),clearInterval(i))}return a(),()=>clearInterval(i)})}var an={"en-US":{native:`English`,locale:`en-US`,dir:`ltr`,nav:{list:`List`,map:`Map`,signout:`Sign out`,filter:`Filter components`,halt:`HALT`},halt:{title:`Suspend operations`,description:`All systems will be inoperative for the interval you give, then resume automatically.`,interval:`Duration`,cancel:`Cancel`,hold:`Hold to halt`,bounds:(e,t)=>`${e}–${t} seconds`,quiescence:`Quiescence`,failed:`The halt request wasn’t accepted. Try again.`}}},on=[`en-US`];function sn(e){return on.some(t=>t.startsWith(e))}function X(e){return on.find(t=>t.startsWith(e))??`en-US`}var Z=c((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.format=o,e.parse=s;var t=/^[\u0009\u0020-\u007e\u0080-\u00ff]*$/,n=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,r=/[\\"]/g,i=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,a=(()=>{let e=function(){};return e.prototype=Object.create(null),e})();function o(e){let{type:t,parameters:r}=e;if(!t||!i.test(t))throw TypeError(`Invalid type: ${t}`);let a=t;if(r)for(let e of Object.keys(r)){if(!n.test(e))throw TypeError(`Invalid parameter name: ${e}`);a+=`; ${e}=${y(r[e])}`}return a}function s(e,t){let n=t?.comma===!0?m:65536,r=e.length,i=_(e,t?.start??0,r),o=i;i=g(e,i,r,n);let s=v(e,o,i),c=e.slice(o,s).toLowerCase();return t?.parameters===!1?{type:c,index:i,parameters:new a}:h(e,c,i,r,n)}var c=32,l=9,u=59,d=61,f=34,p=92,m=44;function h(e,t,n,r,i){let o=new a;parameter:for(;n<r&&e.charCodeAt(n)!==i;){n=_(e,n+1,r);let t=n;for(;n<r;){let a=e.charCodeAt(n);if(a===i)break parameter;if(a===u)continue parameter;if(a===d){let a=v(e,t,n),s=e.slice(t,a).toLowerCase();if(n=_(e,n+1,r),n<r&&e.charCodeAt(n)===f){n++;let t=``;for(;n<r;){let a=e.charCodeAt(n++);if(a===f){n=g(e,n,r,i),o[s]===void 0&&(o[s]=t);break}if(a===p&&n<r){t+=e[n++];continue}t+=String.fromCharCode(a)}continue parameter}let c=n;if(n=g(e,n,r,i),o[s]===void 0){let t=v(e,c,n);o[s]=e.slice(c,t)}continue parameter}n++}}return{type:t,index:n,parameters:o}}function g(e,t,n,r){for(;t<n;){let n=e.charCodeAt(t);if(n===u||n===r)break;t++}return t}function _(e,t,n){for(;t<n;){let n=e.charCodeAt(t);if(n!==c&&n!==l)break;t++}return t}function v(e,t,n){for(;n>t;){let t=e.charCodeAt(n-1);if(t!==c&&t!==l)break;n--}return n}function y(e){if(n.test(e))return e;if(t.test(e))return`"${e.replace(r,`\\$&`)}"`;throw TypeError(`Invalid parameter value: ${e}`)}})),Q=c(((e,t)=>{var n=Z();t.exports=r;function r(e){for(var t=[],r=0;r<e.length;){var a=i(e,r),o=n.parse(e,{comma:!0,start:a});o.type=e.slice(a,a+o.type.length),t.push(o),r=o.index+1}return t}function i(e,t){for(var n=t;e.charCodeAt(n)===32||e.charCodeAt(n)===9;)n++;return n}})),cn=c(((e,t)=>{var n=Q();t.exports=s,t.exports.preferredCharsets=s;function r(e){for(var t=n(e),r=0,a=0;r<t.length;r++){var o=i(t[r],r);o&&(t[a++]=o)}return t.length=a,t}function i(e,t){return e.type?{charset:e.type,q:e.parameters.q?parseFloat(e.parameters.q):1,i:t}:null}function a(e,t,n){for(var r={o:-1,q:0,s:0},i=0;i<t.length;i++){var a=o(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function o(e,t,n){var r=0;if(t.charset.toLowerCase()===e.toLowerCase())r|=1;else if(t.charset!==`*`)return null;return{i:n,o:t.i,q:t.q,s:r}}function s(e,t){var n=r(e===void 0?`*`:e||``);if(!t)return n.filter(u).sort(c).map(l);var i=t.map(function(e,t){return a(e,n,t)});return i.filter(u).sort(c).map(function(e){return t[i.indexOf(e)]})}function c(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function l(e){return e.charset}function u(e){return e.q>0}})),ln=c(((e,t)=>{var n=Q();t.exports=s,t.exports.preferredEncodings=s;function r(e){for(var t=n(e),r=!1,a=1,s=0,c=0;s<t.length;s++){var l=i(t[s],s);l&&(t[c++]=l,r||=o(`identity`,l),a=Math.min(a,l.q||1))}return r||(t[c++]={encoding:`identity`,q:a,i:s}),t.length=c,t}function i(e,t){return e.type?{encoding:e.type,q:e.parameters.q?parseFloat(e.parameters.q):1,i:t}:null}function a(e,t,n){for(var r={encoding:e,o:-1,q:0,s:0},i=0;i<t.length;i++){var a=o(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function o(e,t,n){var r=0;if(t.encoding.toLowerCase()===e.toLowerCase())r|=1;else if(t.encoding!==`*`)return null;return{encoding:e,i:n,o:t.i,q:t.q,s:r}}function s(e,t,n){var i=r(e||``),o=n?function(e,t){if(e.q!==t.q)return t.q-e.q;var r=n.indexOf(e.encoding),i=n.indexOf(t.encoding);return r===-1&&i===-1?t.s-e.s||e.o-t.o||e.i-t.i:r!==-1&&i!==-1?r-i:r===-1?1:-1}:c;if(!t)return i.filter(u).sort(o).map(l);var s=t.map(function(e,t){return a(e,i,t)});return s.filter(u).sort(o).map(function(e){return t[s.indexOf(e)]})}function c(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i}function l(e){return e.encoding}function u(e){return e.q>0}})),un=c(((e,t)=>{var n=Z(),r=Q();t.exports=c,t.exports.preferredLanguages=c;function i(e){for(var t=r(e),n=0,i=0;n<t.length;n++){var o=a(t[n],n);o&&(t[i++]=o)}return t.length=i,t}function a(e,t){if(!e.type)return null;var n=e.type.indexOf(`-`);return{prefix:n===-1?e.type:e.type.slice(0,n),suffix:n===-1?void 0:e.type.slice(n+1),q:e.parameters.q?parseFloat(e.parameters.q):1,i:t,full:e.type}}function o(e,t,n){for(var r={o:-1,q:0,s:0},i=0;i<t.length;i++){var a=s(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function s(e,t,r){var i=a(n.parse(e),0);if(!i)return null;var o=0;if(t.full.toLowerCase()===i.full.toLowerCase())o|=4;else if(t.prefix.toLowerCase()===i.full.toLowerCase())o|=2;else if(t.full.toLowerCase()===i.prefix.toLowerCase())o|=1;else if(t.full!==`*`)return null;return{i:r,o:t.i,q:t.q,s:o}}function c(e,t){var n=i(e===void 0?`*`:e||``);if(!t)return n.filter(d).sort(l).map(u);var r=t.map(function(e,t){return o(e,n,t)});return r.filter(d).sort(l).map(function(e){return t[r.indexOf(e)]})}function l(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function u(e){return e.full}function d(e){return e.q>0}})),dn=c(((e,t)=>{var n=Z(),r=Q();t.exports=c,t.exports.preferredMediaTypes=c;function i(e){for(var t=r(e),n=0,i=0;n<t.length;n++){var o=a(t[n],n);o&&(t[i++]=o)}return t.length=i,t}function a(e,t){var n=e.type.indexOf(`/`);if(n===-1)return null;var r=e.parameters.q?parseFloat(e.parameters.q):1;return delete e.parameters.q,{type:e.type.slice(0,n),subtype:e.type.slice(n+1),params:e.parameters,q:r,i:t}}function o(e,t,n){for(var r={o:-1,q:0,s:0},i=0;i<t.length;i++){var a=s(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function s(e,t,r){var i=a(n.parse(e),0),o=0;if(!i)return null;if(t.type.toLowerCase()==i.type.toLowerCase())o|=4;else if(t.type!=`*`)return null;if(t.subtype.toLowerCase()==i.subtype.toLowerCase())o|=2;else if(t.subtype!=`*`)return null;var s=Object.keys(t.params);if(s.length>0){if(s.every(function(e){return t.params[e]==`*`||(t.params[e]||``).toLowerCase()==(i.params[e]||``).toLowerCase()}))o|=1;else return null}return{i:r,o:t.i,q:t.q,s:o}}function c(e,t){var n=i(e===void 0?`*/*`:e||``);if(!t)return n.filter(d).sort(l).map(u);var r=t.map(function(e,t){return o(e,n,t)});return r.filter(d).sort(l).map(function(e){return t[r.indexOf(e)]})}function l(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function u(e){return e.type+`/`+e.subtype}function d(e){return e.q>0}}));c(((e,t)=>{var n=cn(),r=ln(),i=un(),a=dn();t.exports=o,t.exports.Negotiator=o;function o(e){if(!(this instanceof o))return new o(e);this.request=e}o.prototype.charset=function(e){var t=this.charsets(e);return t&&t[0]},o.prototype.charsets=function(e){return n(this.request.headers[`accept-charset`],e)},o.prototype.encoding=function(e,t){var n=this.encodings(e,t);return n&&n[0]},o.prototype.encodings=function(e,t){var n=t||{};return r(this.request.headers[`accept-encoding`],e,n.preferred)},o.prototype.language=function(e){var t=this.languages(e);return t&&t[0]},o.prototype.languages=function(e){return i(this.request.headers[`accept-language`],e)},o.prototype.mediaType=function(e){var t=this.mediaTypes(e);return t&&t[0]},o.prototype.mediaTypes=function(e){return a(this.request.headers.accept,e)},o.prototype.preferredCharset=o.prototype.charset,o.prototype.preferredCharsets=o.prototype.charsets,o.prototype.preferredEncoding=o.prototype.encoding,o.prototype.preferredEncodings=o.prototype.encodings,o.prototype.preferredLanguage=o.prototype.language,o.prototype.preferredLanguages=o.prototype.languages,o.prototype.preferredMediaType=o.prototype.mediaType,o.prototype.preferredMediaTypes=o.prototype.mediaTypes}))();var fn=`en-US`,pn=j({persist:`intl:selected`}),$=x([P,pn],([e,t])=>t?X(t):mn()||(e?.locale!==void 0&&sn(e.locale)?X(e.locale):fn));x(P,e=>e?.grammar??`none`);function mn(){if(typeof navigator<`u`){for(let e of navigator.languages)if(sn(e))return X(e)}return null}var hn=x($,e=>an[e]);export{ke as A,Je as C,P as D,L as E,M as F,ge as I,j as L,Oe as M,De as N,Ae as O,N as P,le as R,z as S,Ie as T,bt as _,Qt as a,lt as b,Ut as c,Vt as d,Bt as f,St as g,Tt as h,nn as i,I as j,F as k,Yt as l,Ct as m,$ as n,$t as o,wt as p,rn as r,Gt as s,hn as t,Ht as u,yt as v,We as w,H as x,ht as y,ae as z};
@@ -1,4 +1,4 @@
1
- import{A as e,At as t,B as n,C as r,Ct as i,E as a,F as o,G as s,M as c,O as l,Ot as u,P as d,St as f,U as p,V as m,W as h,X as g,Y as _,Z as v,a as y,at as b,b as x,bt as ee,ct as S,d as C,dt as w,et as T,f as te,ft as E,g as ne,h as D,ht as O,i as k,it as A,j,kt as M,lt as N,m as P,nt as F,o as I,ot as re,p as L,rt as R,s as z,st as B,tt as V,vt as ie,w as ae,wt as oe,x as H,xt as se,y as ce,z as le}from"./sTot5bBi.js";import"./BI2pFIDA.js";import"./xihTtKlq.js";import{C as ue,D as de,F as fe,L as pe,P as me,R as he,S as ge,c as _e,n as ve,z as ye}from"./B0dRPcWC.js";var be=ge.resource(`/introspection/nodes/`),xe=ge.resource(`/introspection/edges/`),Se=ge.resource(`/introspection/signals/`,{credentials:`include`}),Ce=6e4,we=1440*Ce,Te=75*Ce,Ee=7*we;async function De(){return await be.json(je(Te),{credentials:`include`})}async function Oe(){return await xe.json(je(Ee),{credentials:`include`})}async function ke(){return await Se.json()}async function Ae(e,t){let n=await Se.json({method:`POST`,body:{type:`halt`,seconds:e,quiescence:t}});return n instanceof Error?n:void 0}function je(e){return`?${new URLSearchParams({criteria:`UPDATED>${Date.now()-e}`}).toString()}`}var Me=ye({get:De,values:he(),persist:`introspection:nodes`,bind:de,stale:!0}),Ne=ye({get:Oe,values:he(),persist:`introspection:edges`,bind:de,stale:!0}),Pe=pe({get:ke,bind:de});async function Fe(e,t){return await Ae(e,t)}function Ie(e){return typeof e==`function`}function Le(e){return typeof e==`object`&&!!e}var Re=[`string`,`number`,`bigint`,`boolean`];function ze(e){return e==null||Re.includes(typeof e)?!0:Array.isArray(e)?e.every(e=>ze(e)):typeof e==`object`&&Object.getPrototypeOf(e)===Object.prototype}var Be=Symbol(`box`),Ve=Symbol(`is-writable`);function U(e,t){let n=S(e);return t?{[Be]:!0,[Ve]:!0,get current(){return m(n)},set current(e){t(e)}}:{[Be]:!0,get current(){return e()}}}function He(e){return Le(e)&&Be in e}function Ue(e){return He(e)&&Ve in e}function We(e){return He(e)?e:Ie(e)?U(e):qe(e)}function Ge(e){return Object.entries(e).reduce((e,[t,n])=>He(n)?(Ue(n)?Object.defineProperty(e,t,{get(){return n.current},set(e){n.current=e}}):Object.defineProperty(e,t,{get(){return n.current}}),e):Object.assign(e,{[t]:n}),{})}function Ke(e){return Ue(e)?{[Be]:!0,get current(){return e.current}}:e}function qe(e){let t=B(R(e));return{[Be]:!0,[Ve]:!0,get current(){return m(t)},set current(e){b(t,e,!0)}}}function Je(...e){return function(t){for(let n of e)if(n){if(t.defaultPrevented)return;typeof n==`function`?n.call(this,t):n.current?.call(this,t)}}}var Ye=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Xe=/\n/g,Ze=/^\s*/,Qe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,$e=/^:\s*/,et=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,tt=/^[;\s]*/,nt=/^\s+|\s+$/g,rt=`
1
+ import{A as e,At as t,B as n,C as r,Ct as i,E as a,F as o,G as s,M as c,O as l,Ot as u,P as d,St as f,U as p,V as m,W as h,X as g,Y as _,Z as v,a as y,at as b,b as x,bt as ee,ct as S,d as C,dt as w,et as T,f as te,ft as E,g as ne,h as D,ht as O,i as k,it as A,j,kt as M,lt as N,m as P,nt as F,o as I,ot as re,p as L,rt as R,s as z,st as B,tt as V,vt as ie,w as ae,wt as oe,x as H,xt as se,y as ce,z as le}from"./sTot5bBi.js";import"./B8EdV3yC.js";import"./xihTtKlq.js";import{C as ue,D as de,F as fe,L as pe,P as me,R as he,S as ge,c as _e,n as ve,z as ye}from"./D_OzAf8e.js";var be=ge.resource(`/introspection/nodes/`),xe=ge.resource(`/introspection/edges/`),Se=ge.resource(`/introspection/signals/`,{credentials:`include`}),Ce=6e4,we=1440*Ce,Te=75*Ce,Ee=7*we;async function De(){return await be.json(je(Te),{credentials:`include`})}async function Oe(){return await xe.json(je(Ee),{credentials:`include`})}async function ke(){return await Se.json()}async function Ae(e,t){let n=await Se.json({method:`POST`,body:{type:`halt`,seconds:e,quiescence:t}});return n instanceof Error?n:void 0}function je(e){return`?${new URLSearchParams({criteria:`UPDATED>${Date.now()-e}`}).toString()}`}var Me=ye({get:De,values:he(),persist:`introspection:nodes`,bind:de,stale:!0}),Ne=ye({get:Oe,values:he(),persist:`introspection:edges`,bind:de,stale:!0}),Pe=pe({get:ke,bind:de});async function Fe(e,t){return await Ae(e,t)}function Ie(e){return typeof e==`function`}function Le(e){return typeof e==`object`&&!!e}var Re=[`string`,`number`,`bigint`,`boolean`];function ze(e){return e==null||Re.includes(typeof e)?!0:Array.isArray(e)?e.every(e=>ze(e)):typeof e==`object`&&Object.getPrototypeOf(e)===Object.prototype}var Be=Symbol(`box`),Ve=Symbol(`is-writable`);function U(e,t){let n=S(e);return t?{[Be]:!0,[Ve]:!0,get current(){return m(n)},set current(e){t(e)}}:{[Be]:!0,get current(){return e()}}}function He(e){return Le(e)&&Be in e}function Ue(e){return He(e)&&Ve in e}function We(e){return He(e)?e:Ie(e)?U(e):qe(e)}function Ge(e){return Object.entries(e).reduce((e,[t,n])=>He(n)?(Ue(n)?Object.defineProperty(e,t,{get(){return n.current},set(e){n.current=e}}):Object.defineProperty(e,t,{get(){return n.current}}),e):Object.assign(e,{[t]:n}),{})}function Ke(e){return Ue(e)?{[Be]:!0,get current(){return e.current}}:e}function qe(e){let t=B(R(e));return{[Be]:!0,[Ve]:!0,get current(){return m(t)},set current(e){b(t,e,!0)}}}function Je(...e){return function(t){for(let n of e)if(n){if(t.defaultPrevented)return;typeof n==`function`?n.call(this,t):n.current?.call(this,t)}}}var Ye=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Xe=/\n/g,Ze=/^\s*/,Qe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,$e=/^:\s*/,et=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,tt=/^[;\s]*/,nt=/^\s+|\s+$/g,rt=`
2
2
  `,it=`/`,at=`*`,ot=``,st=`comment`,ct=`declaration`;function lt(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var n=1,r=1;function i(e){var t=e.match(Xe);t&&(n+=t.length);var i=e.lastIndexOf(rt);r=~i?e.length-i:r+e.length}function a(){var e={line:n,column:r};return function(t){return t.position=new o(e),l(),t}}function o(e){this.start=e,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(i){var a=Error(t.source+`:`+n+`:`+r+`: `+i);if(a.reason=i,a.filename=t.source,a.line=n,a.column=r,a.source=e,!t.silent)throw a}function c(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function l(){c(Ze)}function u(e){var t;for(e||=[];t=d();)t!==!1&&e.push(t);return e}function d(){var t=a();if(it==e.charAt(0)&&at==e.charAt(1)){for(var n=2;ot!=e.charAt(n)&&(at!=e.charAt(n)||it!=e.charAt(n+1));)++n;if(n+=2,ot===e.charAt(n-1))return s(`End of comment missing`);var o=e.slice(2,n-2);return r+=2,i(o),e=e.slice(n),r+=2,t({type:st,comment:o})}}function f(){var e=a(),t=c(Qe);if(t){if(d(),!c($e))return s(`property missing ':'`);var n=c(et),r=e({type:ct,property:ut(t[0].replace(Ye,ot)),value:n?ut(n[0].replace(Ye,ot)):ot});return c(tt),r}}function p(){var e=[];u(e);for(var t;t=f();)t!==!1&&(e.push(t),u(e));return e}return l(),p()}function ut(e){return e?e.replace(nt,ot):ot}function dt(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=lt(e),i=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:a}=e;i?t(r,a,e):a&&(n||={},n[r]=a)}),n}var ft=/\d/,pt=[`-`,`_`,`/`,`.`];function mt(e=``){if(!ft.test(e))return e!==e.toLowerCase()}function ht(e){let t=[],n=``,r,i;for(let a of e){let e=pt.includes(a);if(e===!0){t.push(n),n=``,r=void 0;continue}let o=mt(a);if(i===!1){if(r===!1&&o===!0){t.push(n),n=a,r=o;continue}if(r===!0&&o===!1&&n.length>1){let e=n.at(-1);t.push(n.slice(0,Math.max(0,n.length-1))),n=e+a,r=o;continue}}n+=a,r=o,i=e}return t.push(n),t}function gt(e){return e?ht(e).map(e=>vt(e)).join(``):``}function _t(e){return yt(gt(e||``))}function vt(e){return e?e[0].toUpperCase()+e.slice(1):``}function yt(e){return e?e[0].toLowerCase()+e.slice(1):``}function bt(e){if(!e)return{};let t={};function n(e,n){if(e.startsWith(`-moz-`)||e.startsWith(`-webkit-`)||e.startsWith(`-ms-`)||e.startsWith(`-o-`)){t[gt(e)]=n;return}if(e.startsWith(`--`)){t[e]=n;return}t[_t(e)]=n}return dt(e,n),t}function xt(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}function St(e,t){let n=RegExp(e,`g`);return e=>{if(typeof e!=`string`)throw TypeError(`expected an argument of type string, but got ${typeof e}`);return e.match(n)?e.replace(n,t):e}}var Ct=St(/[A-Z]/,e=>`-${e.toLowerCase()}`);function wt(e){if(!e||typeof e!=`object`||Array.isArray(e))throw TypeError(`expected an argument of type object, but got ${typeof e}`);return Object.keys(e).map(t=>`${Ct(t)}: ${e[t]};`).join(`
3
3
  `)}function Tt(e={}){return wt(e).replace(`
4
4
  `,` `)}var Et=new Set(`onabort.onanimationcancel.onanimationend.onanimationiteration.onanimationstart.onauxclick.onbeforeinput.onbeforetoggle.onblur.oncancel.oncanplay.oncanplaythrough.onchange.onclick.onclose.oncompositionend.oncompositionstart.oncompositionupdate.oncontextlost.oncontextmenu.oncontextrestored.oncopy.oncuechange.oncut.ondblclick.ondrag.ondragend.ondragenter.ondragleave.ondragover.ondragstart.ondrop.ondurationchange.onemptied.onended.onerror.onfocus.onfocusin.onfocusout.onformdata.ongotpointercapture.oninput.oninvalid.onkeydown.onkeypress.onkeyup.onload.onloadeddata.onloadedmetadata.onloadstart.onlostpointercapture.onmousedown.onmouseenter.onmouseleave.onmousemove.onmouseout.onmouseover.onmouseup.onpaste.onpause.onplay.onplaying.onpointercancel.onpointerdown.onpointerenter.onpointerleave.onpointermove.onpointerout.onpointerover.onpointerup.onprogress.onratechange.onreset.onresize.onscroll.onscrollend.onsecuritypolicyviolation.onseeked.onseeking.onselect.onselectionchange.onselectstart.onslotchange.onstalled.onsubmit.onsuspend.ontimeupdate.ontoggle.ontouchcancel.ontouchend.ontouchmove.ontouchstart.ontransitioncancel.ontransitionend.ontransitionrun.ontransitionstart.onvolumechange.onwaiting.onwebkitanimationend.onwebkitanimationiteration.onwebkitanimationstart.onwebkittransitionend.onwheel`.split(`.`));function Dt(e){return Et.has(e)}function Ot(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];if(r){for(let e of Object.keys(r)){let n=t[e],i=r[e],a=typeof n==`function`,o=typeof i==`function`;if(a&&typeof o&&Dt(e))t[e]=Je(n,i);else if(a&&o)t[e]=xt(n,i);else if(e===`class`){let r=ze(n),a=ze(i);r&&a?t[e]=ne(n,i):r?t[e]=ne(n):a&&(t[e]=ne(i))}else if(e===`style`){let r=typeof n==`object`,a=typeof i==`object`,o=typeof n==`string`,s=typeof i==`string`;if(r&&a)t[e]={...n,...i};else if(r&&s){let r=bt(i);t[e]={...n,...r}}else if(o&&a)t[e]={...bt(n),...i};else if(o&&s){let r=bt(n),a=bt(i);t[e]={...r,...a}}else r?t[e]=n:a?t[e]=i:o?t[e]=n:s&&(t[e]=i)}else t[e]=i===void 0?n:i}for(let e of Object.getOwnPropertySymbols(r)){let n=t[e],i=r[e];t[e]=i===void 0?n:i}}}return typeof t.style==`object`&&(t.style=Tt(t.style).replaceAll(`
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/.introspection/_app/immutable/nodes/0.Ba71KSe5.js","/.introspection/_app/immutable/chunks/sTot5bBi.js","/.introspection/_app/immutable/chunks/rvgOFSMY.js","/.introspection/_app/immutable/chunks/BI2pFIDA.js","/.introspection/_app/immutable/chunks/xihTtKlq.js","/.introspection/_app/immutable/chunks/B0dRPcWC.js","/.introspection/_app/immutable/chunks/CvvfgZ-D.js","/.introspection/_app/immutable/chunks/BSetibHI.js","/.introspection/_app/immutable/assets/0.lZd8PDGB.css","/.introspection/_app/immutable/nodes/1.BvAFVrcw.js","/.introspection/_app/immutable/nodes/2.Dv9nPfFy.js","/.introspection/_app/immutable/chunks/Xtwc5EKS.js","/.introspection/_app/immutable/chunks/CRawENJn.js","/.introspection/_app/immutable/chunks/DSlJ2Pi2.js","/.introspection/_app/immutable/chunks/DT7ziZYr.js","/.introspection/_app/immutable/assets/2.BghF56l_.css","/.introspection/_app/immutable/nodes/3.89vECRKy.js","/.introspection/_app/immutable/chunks/C2wLFLa1.js","/.introspection/_app/immutable/nodes/4.BbG2Xi9A.js","/.introspection/_app/immutable/nodes/5.DKmjn_kT.js"])))=>i.map(i=>d[i]);
2
- import{A as e,Ct as t,E as n,F as r,M as i,O as a,St as o,U as s,V as c,X as l,Y as u,Z as d,at as f,b as p,ct as m,et as h,i as g,j as _,kt as v,n as y,nt as b,r as x,s as S,st as C,tt as w}from"../chunks/sTot5bBi.js";import"../chunks/xihTtKlq.js";var T=`modulepreload`,E=function(e,t){return new URL(e,t).href},D={},O=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=E(t,n),t=s(t),t in D)return;D[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:T,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function k(e){return e.match(/^[0-9a-f]{32}$/)}var A={id:k},j=i(`<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>`),M=i(`<!> <!>`,1);function N(i,x){t(x,!0);let T=g(x,`components`,23,()=>[]),E=g(x,`data_0`,3,null),D=g(x,`data_1`,3,null),O=g(x,`data_2`,3,null);d(()=>x.stores.page.set(x.page)),l(()=>{x.stores,x.page,x.constructors,T(),x.form,E(),D(),O(),x.stores.page.notify()});let k=C(!1),A=C(!1),N=C(null);y(()=>{let e=x.stores.page.subscribe(()=>{c(k)&&(f(A,!0),s().then(()=>{f(N,document.title||`untitled page`,!0)}))});return f(k,!0),e});let P=m(()=>x.constructors[2]);var F=M(),I=w(F),L=t=>{let r=m(()=>x.constructors[0]);var i=_(),a=w(i);p(a,()=>c(r),(t,r)=>{S(r(t,{get data(){return E()},get form(){return x.form},get params(){return x.page.params},children:(t,r)=>{var i=_(),a=w(i),o=t=>{let n=m(()=>x.constructors[1]);var r=_(),i=w(r);p(i,()=>c(n),(t,n)=>{S(n(t,{get data(){return D()},get form(){return x.form},get params(){return x.page.params},children:(t,n)=>{var r=_(),i=w(r);p(i,()=>c(P),(e,t)=>{S(t(e,{get data(){return O()},get form(){return x.form},get params(){return x.page.params}}),e=>T()[2]=e,()=>T()?.[2])}),e(t,r)},$$slots:{default:!0}}),e=>T()[1]=e,()=>T()?.[1])}),e(t,r)},s=t=>{let n=m(()=>x.constructors[1]);var r=_(),i=w(r);p(i,()=>c(n),(e,t)=>{S(t(e,{get data(){return D()},get form(){return x.form},get params(){return x.page.params}}),e=>T()[1]=e,()=>T()?.[1])}),e(t,r)};n(a,e=>{x.constructors[2]?e(o):e(s,-1)}),e(t,i)},$$slots:{default:!0}}),e=>T()[0]=e,()=>T()?.[0])}),e(t,i)},R=t=>{let n=m(()=>x.constructors[0]);var r=_(),i=w(r);p(i,()=>c(n),(e,t)=>{S(t(e,{get data(){return E()},get form(){return x.form},get params(){return x.page.params}}),e=>T()[0]=e,()=>T()?.[0])}),e(t,r)};n(I,e=>{x.constructors[1]?e(L):e(R,-1)});var z=b(I,2),B=t=>{var i=j(),o=h(i),s=t=>{var n=r();u(()=>a(n,c(N))),e(t,n)};n(o,e=>{c(A)&&e(s)}),v(i),e(t,i)};n(z,e=>{c(k)&&e(B)}),e(i,F),o()}var P=x(N),F=[()=>O(()=>import(`../nodes/0.Ba71KSe5.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),()=>O(()=>import(`../nodes/1.BvAFVrcw.js`),__vite__mapDeps([9,1,4,6,2,3]),import.meta.url),()=>O(()=>import(`../nodes/2.Dv9nPfFy.js`),__vite__mapDeps([10,1,2,3,4,5,11,12,6,7,13,14,15]),import.meta.url),()=>O(()=>import(`../nodes/3.89vECRKy.js`),__vite__mapDeps([16,1,4,13,17,2,3,5,7,12,14]),import.meta.url),()=>O(()=>import(`../nodes/4.BbG2Xi9A.js`),__vite__mapDeps([18,1,4,6,2,3,17,5,7,12,14]),import.meta.url),()=>O(()=>import(`../nodes/5.DKmjn_kT.js`),__vite__mapDeps([19,1,4,11,3,5,12,13]),import.meta.url)],I=[],L={"/(private)":[3,[2]],"/(private)/list":[5,[2]],"/(private)/[id]":[4,[2]]},R={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},z=Object.fromEntries(Object.entries(R.transport).map(([e,t])=>[e,t.decode])),B=Object.fromEntries(Object.entries(R.transport).map(([e,t])=>[e,t.encode])),V=!1,H=(e,t)=>z[e](t),U=()=>O(()=>import(`../chunks/Bjy-W4x2.js`).then(e=>e.default),[],import.meta.url);export{H as decode,z as decoders,L as dictionary,B as encoders,U as get_error_template,V as hash,R as hooks,A as matchers,F as nodes,P as root,I as server_loads};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/.introspection/_app/immutable/nodes/0.CZLVDRI8.js","/.introspection/_app/immutable/chunks/sTot5bBi.js","/.introspection/_app/immutable/chunks/BkNlvOAz.js","/.introspection/_app/immutable/chunks/B8EdV3yC.js","/.introspection/_app/immutable/chunks/xihTtKlq.js","/.introspection/_app/immutable/chunks/D_OzAf8e.js","/.introspection/_app/immutable/chunks/DGMggR6N.js","/.introspection/_app/immutable/chunks/Bo71Ec-f.js","/.introspection/_app/immutable/assets/0.lZd8PDGB.css","/.introspection/_app/immutable/nodes/1.Kx4DS6LN.js","/.introspection/_app/immutable/nodes/2.D0vdmu0r.js","/.introspection/_app/immutable/chunks/DSyQQH85.js","/.introspection/_app/immutable/chunks/DvcRBTN8.js","/.introspection/_app/immutable/chunks/DSlJ2Pi2.js","/.introspection/_app/immutable/chunks/C69pzvhG.js","/.introspection/_app/immutable/assets/2.BghF56l_.css","/.introspection/_app/immutable/nodes/3.B3rXSfch.js","/.introspection/_app/immutable/chunks/2e0fAhRE.js","/.introspection/_app/immutable/nodes/4.ByctkTvw.js","/.introspection/_app/immutable/nodes/5.DdfkF_-l.js"])))=>i.map(i=>d[i]);
2
+ import{A as e,Ct as t,E as n,F as r,M as i,O as a,St as o,U as s,V as c,X as l,Y as u,Z as d,at as f,b as p,ct as m,et as h,i as g,j as _,kt as v,n as y,nt as b,r as x,s as S,st as C,tt as w}from"../chunks/sTot5bBi.js";import"../chunks/xihTtKlq.js";var T=`modulepreload`,E=function(e,t){return new URL(e,t).href},D={},O=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=E(t,n),t=s(t),t in D)return;D[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:T,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function k(e){return e.match(/^[0-9a-f]{32}$/)}var A={id:k},j=i(`<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>`),M=i(`<!> <!>`,1);function N(i,x){t(x,!0);let T=g(x,`components`,23,()=>[]),E=g(x,`data_0`,3,null),D=g(x,`data_1`,3,null),O=g(x,`data_2`,3,null);d(()=>x.stores.page.set(x.page)),l(()=>{x.stores,x.page,x.constructors,T(),x.form,E(),D(),O(),x.stores.page.notify()});let k=C(!1),A=C(!1),N=C(null);y(()=>{let e=x.stores.page.subscribe(()=>{c(k)&&(f(A,!0),s().then(()=>{f(N,document.title||`untitled page`,!0)}))});return f(k,!0),e});let P=m(()=>x.constructors[2]);var F=M(),I=w(F),L=t=>{let r=m(()=>x.constructors[0]);var i=_(),a=w(i);p(a,()=>c(r),(t,r)=>{S(r(t,{get data(){return E()},get form(){return x.form},get params(){return x.page.params},children:(t,r)=>{var i=_(),a=w(i),o=t=>{let n=m(()=>x.constructors[1]);var r=_(),i=w(r);p(i,()=>c(n),(t,n)=>{S(n(t,{get data(){return D()},get form(){return x.form},get params(){return x.page.params},children:(t,n)=>{var r=_(),i=w(r);p(i,()=>c(P),(e,t)=>{S(t(e,{get data(){return O()},get form(){return x.form},get params(){return x.page.params}}),e=>T()[2]=e,()=>T()?.[2])}),e(t,r)},$$slots:{default:!0}}),e=>T()[1]=e,()=>T()?.[1])}),e(t,r)},s=t=>{let n=m(()=>x.constructors[1]);var r=_(),i=w(r);p(i,()=>c(n),(e,t)=>{S(t(e,{get data(){return D()},get form(){return x.form},get params(){return x.page.params}}),e=>T()[1]=e,()=>T()?.[1])}),e(t,r)};n(a,e=>{x.constructors[2]?e(o):e(s,-1)}),e(t,i)},$$slots:{default:!0}}),e=>T()[0]=e,()=>T()?.[0])}),e(t,i)},R=t=>{let n=m(()=>x.constructors[0]);var r=_(),i=w(r);p(i,()=>c(n),(e,t)=>{S(t(e,{get data(){return E()},get form(){return x.form},get params(){return x.page.params}}),e=>T()[0]=e,()=>T()?.[0])}),e(t,r)};n(I,e=>{x.constructors[1]?e(L):e(R,-1)});var z=b(I,2),B=t=>{var i=j(),o=h(i),s=t=>{var n=r();u(()=>a(n,c(N))),e(t,n)};n(o,e=>{c(A)&&e(s)}),v(i),e(t,i)};n(z,e=>{c(k)&&e(B)}),e(i,F),o()}var P=x(N),F=[()=>O(()=>import(`../nodes/0.CZLVDRI8.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),()=>O(()=>import(`../nodes/1.Kx4DS6LN.js`),__vite__mapDeps([9,1,4,6,2,3]),import.meta.url),()=>O(()=>import(`../nodes/2.D0vdmu0r.js`),__vite__mapDeps([10,1,2,3,4,5,11,12,6,7,13,14,15]),import.meta.url),()=>O(()=>import(`../nodes/3.B3rXSfch.js`),__vite__mapDeps([16,1,4,13,17,2,3,5,7,12,14]),import.meta.url),()=>O(()=>import(`../nodes/4.ByctkTvw.js`),__vite__mapDeps([18,1,4,6,2,3,17,5,7,12,14]),import.meta.url),()=>O(()=>import(`../nodes/5.DdfkF_-l.js`),__vite__mapDeps([19,1,4,11,3,5,12,13]),import.meta.url)],I=[],L={"/(private)":[3,[2]],"/(private)/list":[5,[2]],"/(private)/[id]":[4,[2]]},R={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},z=Object.fromEntries(Object.entries(R.transport).map(([e,t])=>[e,t.decode])),B=Object.fromEntries(Object.entries(R.transport).map(([e,t])=>[e,t.encode])),V=!1,H=(e,t)=>z[e](t),U=()=>O(()=>import(`../chunks/Bjy-W4x2.js`).then(e=>e.default),[],import.meta.url);export{H as decode,z as decoders,L as dictionary,B as encoders,U as get_error_template,V as hash,R as hooks,A as matchers,F as nodes,P as root,I as server_loads};
@@ -0,0 +1 @@
1
+ import{o as e,r as t}from"../chunks/BkNlvOAz.js";export{e as load_css,t as start};
@@ -1 +1 @@
1
- import{A as e,Ct as t,K as n,M as r,Nt as i,Q as a,St as o,V as s,X as c,Y as l,ct as u,dt as d,f,ft as p,j as m,tt as h,v as g,vt as _,x as v}from"../chunks/sTot5bBi.js";import{n as y}from"../chunks/rvgOFSMY.js";import"../chunks/BI2pFIDA.js";import"../chunks/xihTtKlq.js";import{D as b,E as x,O as S,S as C,i as w,k as T,s as E,t as D,w as O,x as k}from"../chunks/B0dRPcWC.js";import{t as A}from"../chunks/CvvfgZ-D.js";import"../chunks/BSetibHI.js";var j=x();j.on(`*`,(e,t)=>{t===void 0?console.debug(e):console.debug(e,t)});var M=_({status:`disconnected`,events:[]});j.on(`*`,(e,t)=>{M.update(n=>(n.events.push({label:e,payload:t}),n.events=n.events.slice(-128),n))});function N(e){M.update(t=>(t.status=e,(e===`connected`||e===`disconnected`)&&t.events.push({label:e}),t))}function P(){M.update(()=>({status:`disconnected`,events:[]}))}var F=C.resource(`/presence/`);async function I(e,t){return await F.multipart(e,{credentials:`include`,...t})}var L=null,R=null;async function z(e){if(L!==null&&L!==e&&V(),L!==e)for(L=e;L===e;){N(`connecting`);let t=await B(e).catch(e=>e);t!==void 0&&(t.name===`AbortError`?console.debug(`Realtime connection aborted`):(console.warn(`Realtime connection exception`,t),await new Promise(e=>setTimeout(e,3e3))))}}async function B(e){R=new AbortController;let t=R.signal,n=Intl.DateTimeFormat().resolvedOptions().timeZone,r=await I(e,{signal:t,body:{timezone:n}});if(r instanceof Error)throw N(`disconnected`),r;console.debug(`Realtime connected`,e),N(`connected`);for await(let e of r)H(e);console.debug(`Realtime connection lost`,e)}function V(){if(L!==null){if(L=null,R===null)throw Error(`Realtime controller is NULL`);R.abort(),P()}}function H(e){typeof e==`string`?j.emit(`heartbeat`):j.emit(e.event,e.data)}function U(){S.subscribe(e=>{let t=b.extract();e?z(t.id):V()})}function W(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);return atob(t.padEnd(t.length+(4-t.length%4)%4,`=`))}function G(){let e=w(`challenge`);return e===null?null:W(e)}function K(){C.events.on(`challenge`,e=>T.set(e)),C.events.on(`error`,e=>{e.code===401&&T.set(null)}),T.subscribe(e=>C.authenticate(e));let e=G();e!==null&&T.set(e),k()}var q=i({prerender:()=>!1,ssr:()=>!1,trailingSlash:()=>J});K(),U();var J=`always`,Y=r(`<meta name="description"/>`);function X(r,i){t(i,!0);let _=()=>p(D,`$dict`,b),[b,x]=d(),S=u(()=>A.data.meta?.title??O.title),C=u(()=>A.data.meta?.description??O.description);y(E),c(()=>{document.dir=_().dir});var w=m();g(`12qhfyh`,t=>{var r=Y();l(()=>f(r,`content`,s(C))),n(()=>{a.title=s(S)??``}),e(t,r)});var T=h(w);v(T,()=>i.children),e(r,w),o(),x()}export{X as component,q as universal};
1
+ import{A as e,Ct as t,K as n,M as r,Nt as i,Q as a,St as o,V as s,X as c,Y as l,ct as u,dt as d,f,ft as p,j as m,tt as h,v as g,vt as _,x as v}from"../chunks/sTot5bBi.js";import{n as y}from"../chunks/BkNlvOAz.js";import"../chunks/B8EdV3yC.js";import"../chunks/xihTtKlq.js";import{D as b,E as x,O as S,S as C,i as w,k as T,s as E,t as D,w as O,x as k}from"../chunks/D_OzAf8e.js";import{t as A}from"../chunks/DGMggR6N.js";import"../chunks/Bo71Ec-f.js";var j=x();j.on(`*`,(e,t)=>{t===void 0?console.debug(e):console.debug(e,t)});var M=_({status:`disconnected`,events:[]});j.on(`*`,(e,t)=>{M.update(n=>(n.events.push({label:e,payload:t}),n.events=n.events.slice(-128),n))});function N(e){M.update(t=>(t.status=e,(e===`connected`||e===`disconnected`)&&t.events.push({label:e}),t))}function P(){M.update(()=>({status:`disconnected`,events:[]}))}var F=C.resource(`/presence/`);async function I(e,t){return await F.multipart(e,{credentials:`include`,...t})}var L=null,R=null;async function z(e){if(L!==null&&L!==e&&V(),L!==e)for(L=e;L===e;){N(`connecting`);let t=await B(e).catch(e=>e);t!==void 0&&(t.name===`AbortError`?console.debug(`Realtime connection aborted`):(console.warn(`Realtime connection exception`,t),await new Promise(e=>setTimeout(e,3e3))))}}async function B(e){R=new AbortController;let t=R.signal,n=Intl.DateTimeFormat().resolvedOptions().timeZone,r=await I(e,{signal:t,body:{timezone:n}});if(r instanceof Error)throw N(`disconnected`),r;console.debug(`Realtime connected`,e),N(`connected`);for await(let e of r)H(e);console.debug(`Realtime connection lost`,e)}function V(){if(L!==null){if(L=null,R===null)throw Error(`Realtime controller is NULL`);R.abort(),P()}}function H(e){typeof e==`string`?j.emit(`heartbeat`):j.emit(e.event,e.data)}function U(){S.subscribe(e=>{let t=b.extract();e?z(t.id):V()})}function W(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);return atob(t.padEnd(t.length+(4-t.length%4)%4,`=`))}function G(){let e=w(`challenge`);return e===null?null:W(e)}function K(){C.events.on(`challenge`,e=>T.set(e)),C.events.on(`error`,e=>{e.code===401&&T.set(null)}),T.subscribe(e=>C.authenticate(e));let e=G();e!==null&&T.set(e),k()}var q=i({prerender:()=>!1,ssr:()=>!1,trailingSlash:()=>J});K(),U();var J=`always`,Y=r(`<meta name="description"/>`);function X(r,i){t(i,!0);let _=()=>p(D,`$dict`,b),[b,x]=d(),S=u(()=>A.data.meta?.title??O.title),C=u(()=>A.data.meta?.description??O.description);y(E),c(()=>{document.dir=_().dir});var w=m();g(`12qhfyh`,t=>{var r=Y();l(()=>f(r,`content`,s(C))),n(()=>{a.title=s(S)??``}),e(t,r)});var T=h(w);v(T,()=>i.children),e(r,w),o(),x()}export{X as component,q as universal};
@@ -1 +1 @@
1
- import{A as e,Ct as t,M as n,O as r,St as i,Y as a,et as o,kt as s,nt as c,tt as l}from"../chunks/sTot5bBi.js";import"../chunks/xihTtKlq.js";import{t as u}from"../chunks/CvvfgZ-D.js";var d=n(`<h1> </h1> <p> </p>`,1);function f(n,f){t(f,!0);var p=d(),m=l(p),h=o(m,!0);s(m);var g=c(m,2),_=o(g,!0);s(g),a(()=>{r(h,u.status),r(_,u.error?.message)}),e(n,p),i()}export{f as component};
1
+ import{A as e,Ct as t,M as n,O as r,St as i,Y as a,et as o,kt as s,nt as c,tt as l}from"../chunks/sTot5bBi.js";import"../chunks/xihTtKlq.js";import{t as u}from"../chunks/DGMggR6N.js";var d=n(`<h1> </h1> <p> </p>`,1);function f(n,f){t(f,!0);var p=d(),m=l(p),h=o(m,!0);s(m);var g=c(m,2),_=o(g,!0);s(g),a(()=>{r(h,u.status),r(_,u.error?.message)}),e(n,p),i()}export{f as component};