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

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 (30) hide show
  1. package/components/introspection.edges/types/toa.d.ts +2 -0
  2. package/components/introspection.nodes/types/toa.d.ts +2 -0
  3. package/components/introspection.signals/types/toa.d.ts +2 -0
  4. package/package.json +5 -5
  5. package/ui/dist/_app/immutable/chunks/B09tnGCL.js +1 -0
  6. package/ui/dist/_app/immutable/chunks/{DvcRBTN8.js → BTgdPUzH.js} +2 -2
  7. package/ui/dist/_app/immutable/chunks/{2e0fAhRE.js → BpA5iUId.js} +1 -1
  8. package/ui/dist/_app/immutable/chunks/CZD5OXGI.js +1 -0
  9. package/ui/dist/_app/immutable/chunks/{DGMggR6N.js → DNgrmWQz.js} +1 -1
  10. package/ui/dist/_app/immutable/chunks/Dh_Yj0Hh.js +6 -0
  11. package/ui/dist/_app/immutable/chunks/{DSyQQH85.js → Dn1NNDZ1.js} +1 -1
  12. package/ui/dist/_app/immutable/chunks/GbU7v5vY.js +1 -0
  13. package/ui/dist/_app/immutable/chunks/{C69pzvhG.js → lbuSfi2a.js} +1 -1
  14. package/ui/dist/_app/immutable/entry/{app.CM6kYg9i.js → app.BSrGPzQw.js} +2 -2
  15. package/ui/dist/_app/immutable/entry/start.CI70Kxsf.js +1 -0
  16. package/ui/dist/_app/immutable/nodes/{0.CZLVDRI8.js → 0.CQ3UsLhZ.js} +1 -1
  17. package/ui/dist/_app/immutable/nodes/{1.Kx4DS6LN.js → 1.Dbl2zJHU.js} +1 -1
  18. package/ui/dist/_app/immutable/nodes/{2.D0vdmu0r.js → 2.C4YJcAw_.js} +1 -1
  19. package/ui/dist/_app/immutable/nodes/3.B9Th2Y21.js +1 -0
  20. package/ui/dist/_app/immutable/nodes/4.CCBFIcAa.js +1 -0
  21. package/ui/dist/_app/immutable/nodes/{5.DdfkF_-l.js → 5.Du2QUW-s.js} +1 -1
  22. package/ui/dist/_app/version.json +1 -1
  23. package/ui/dist/index.html +12 -12
  24. package/ui/dist/_app/immutable/chunks/B8EdV3yC.js +0 -1
  25. package/ui/dist/_app/immutable/chunks/BkNlvOAz.js +0 -1
  26. package/ui/dist/_app/immutable/chunks/Bo71Ec-f.js +0 -1
  27. package/ui/dist/_app/immutable/chunks/D_OzAf8e.js +0 -6
  28. package/ui/dist/_app/immutable/entry/start.BpJYEgvr.js +0 -1
  29. package/ui/dist/_app/immutable/nodes/3.B3rXSfch.js +0 -1
  30. package/ui/dist/_app/immutable/nodes/4.ByctkTvw.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"./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};
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"./GbU7v5vY.js";import"./xihTtKlq.js";import{F as U,N as W,r as re,t as ie}from"./Dh_Yj0Hh.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"./BTgdPUzH.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 @@
1
+ import"./sTot5bBi.js";var e=`1790722623889`;export{e as t};
@@ -1 +1 @@
1
- import{A as e,At as t,Ct as n,M as r,St as i,a,d as o,et as s,i as c,kt as l,s as u,x as d}from"./sTot5bBi.js";import"./xihTtKlq.js";import{O as f}from"./DvcRBTN8.js";var p=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),m=r(`<kbd><!></kbd>`);function h(r,h){n(h,!0);let g=c(h,`ref`,15,null),_=a(h,p);var v=m();o(v,e=>({"data-slot":`kbd`,class:e,..._}),[()=>f(`h-5 w-fit min-w-5 gap-1 rounded-sm bg-muted px-1 font-sans text-xs font-medium text-muted-foreground in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3 pointer-events-none inline-flex items-center justify-center select-none`,h.class)]);var y=s(v);d(y,()=>h.children??t),l(v),u(v,e=>g(e),()=>g()),e(r,v),i()}export{h as t};
1
+ import{A as e,At as t,Ct as n,M as r,St as i,a,d as o,et as s,i as c,kt as l,s as u,x as d}from"./sTot5bBi.js";import"./xihTtKlq.js";import{O as f}from"./BTgdPUzH.js";var p=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),m=r(`<kbd><!></kbd>`);function h(r,h){n(h,!0);let g=c(h,`ref`,15,null),_=a(h,p);var v=m();o(v,e=>({"data-slot":`kbd`,class:e,..._}),[()=>f(`h-5 w-fit min-w-5 gap-1 rounded-sm bg-muted px-1 font-sans text-xs font-medium text-muted-foreground in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3 pointer-events-none inline-flex items-center justify-center select-none`,h.class)]);var y=s(v);d(y,()=>h.children??t),l(v),u(v,e=>g(e),()=>g()),e(r,v),i()}export{h as t};
@@ -1,2 +1,2 @@
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};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/.introspection/_app/immutable/nodes/0.CQ3UsLhZ.js","/.introspection/_app/immutable/chunks/sTot5bBi.js","/.introspection/_app/immutable/chunks/CZD5OXGI.js","/.introspection/_app/immutable/chunks/GbU7v5vY.js","/.introspection/_app/immutable/chunks/xihTtKlq.js","/.introspection/_app/immutable/chunks/Dh_Yj0Hh.js","/.introspection/_app/immutable/chunks/DNgrmWQz.js","/.introspection/_app/immutable/chunks/B09tnGCL.js","/.introspection/_app/immutable/assets/0.lZd8PDGB.css","/.introspection/_app/immutable/nodes/1.Dbl2zJHU.js","/.introspection/_app/immutable/nodes/2.C4YJcAw_.js","/.introspection/_app/immutable/chunks/Dn1NNDZ1.js","/.introspection/_app/immutable/chunks/BTgdPUzH.js","/.introspection/_app/immutable/chunks/DSlJ2Pi2.js","/.introspection/_app/immutable/chunks/lbuSfi2a.js","/.introspection/_app/immutable/assets/2.BghF56l_.css","/.introspection/_app/immutable/nodes/3.B9Th2Y21.js","/.introspection/_app/immutable/chunks/BpA5iUId.js","/.introspection/_app/immutable/nodes/4.CCBFIcAa.js","/.introspection/_app/immutable/nodes/5.Du2QUW-s.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.CQ3UsLhZ.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),()=>O(()=>import(`../nodes/1.Dbl2zJHU.js`),__vite__mapDeps([9,1,4,6,2,3]),import.meta.url),()=>O(()=>import(`../nodes/2.C4YJcAw_.js`),__vite__mapDeps([10,1,2,3,4,5,11,12,6,7,13,14,15]),import.meta.url),()=>O(()=>import(`../nodes/3.B9Th2Y21.js`),__vite__mapDeps([16,1,4,13,17,2,3,5,7,12,14]),import.meta.url),()=>O(()=>import(`../nodes/4.CCBFIcAa.js`),__vite__mapDeps([18,1,4,6,2,3,17,5,7,12,14]),import.meta.url),()=>O(()=>import(`../nodes/5.Du2QUW-s.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/CZD5OXGI.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/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
+ 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/CZD5OXGI.js";import"../chunks/GbU7v5vY.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/Dh_Yj0Hh.js";import{t as A}from"../chunks/DNgrmWQz.js";import"../chunks/B09tnGCL.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/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};
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/DNgrmWQz.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};