Skip to content

The only tool you need to know what is happening and how to fix it.

37.7 KB
Raw Blame
import"./DsnmJJEf.js";import{u,g as r,l as p,j as M,b as Nt,ai as ee,bk as _t,p as O,c as x,f as y,d,a as V,ar as dt,s as A,e as E,h as q,x as Y,r as G,m as rt,t as oe,o as re,q as se}from"./BKFspo1J.js";import{c as $}from"./CWm9VMfX.js";import{p as l,s as U,r as R}from"./CARHnQ8P.js";import{i as H}from"./COK9M2N0.js";import{e as ie}from"./DpeZtIXD.js";import{g as ne,P as ae,b as le,o as he,F as de,a as ue}from"./C2bhSnr2.js";import{z as ce,A as pe,C as Ct,m as vt,B as ge,H as J,I as et,E as pt,S as gt,J as ft,K as xt,L as Pt,N as Tt,O as kt,Q as Ft,U as Kt,V as Ut,W as zt,o as fe,w as K,n as Z,X as Lt,a as ve,Y as me,e as be,Z as Wt,_ as ye,$ as we,a0 as Se,a1 as Ne,a2 as _e,a3 as Ce,a4 as xe,a5 as Pe,a6 as Te,a7 as ke,a8 as Ie,a9 as Ae,aa as He,ab as Oe,ac as Ve,ad as De,ae as Me,af as Ee,ag as Re,ah as Be,P as Fe}from"./R7BU62x2.js";import{H as Ke}from"./BJiluzmF.js";import{a as tt,e as mt,g as bt,h as jt,o as Ue,j as Rt,b as S,d as ze,c as ut,m as ot}from"./BoImjCaE.js";import{c as ht}from"./BXr1Q65P.js";import{d as X}from"./DwMHXN8q.js";import{C as Le}from"./Bpxj4ei_.js";import{I as We}from"./CM27iA0o.js";import{C as qt}from"./Cdx6JChx.js";import{P as je}from"./DEElQIVw.js";class qe{#t;#e=u(()=>this.#t.candidateValues());#o;constructor(t){this.#t=t,this.#o=ce("",{afterMs:1e3,getWindow:this.#t.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t){if(!this.#t.enabled()||!r(this.#e).length)return;this.#o.current=this.#o.current+t;const e=this.#t.getCurrentItem(),o=r(this.#e).find(a=>a===e)??"",i=r(this.#e).map(a=>a??""),n=pe(i,this.#o.current,o),s=r(this.#e).find(a=>a===n);return s&&this.#t.onMatch(s),s}resetTypeahead(){this.#o.current=""}}const Bt=[ye,Wt,we,Se,Ne,_e,Ce,xe,pt,Pe,Te,ke,Ie,Ae,He,Oe,Ve,De,Me,Ee,Re],Ge=[et,xt,Pt],Ye=[J,Tt,kt],Gt=[...Ge,...Ye],Je=ze({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),st=new Ct("Select.Root | Combobox.Root"),Yt=new Ct("Select.Group | Combobox.Group"),yt=new Ct("Select.Content | Combobox.Content");class Jt{opts;#t=M(!1);get touchedInput(){return r(this.#t)}set touchedInput(t){p(this.#t,t,!0)}#e=M(null);get inputNode(){return r(this.#e)}set inputNode(t){p(this.#e,t,!0)}#o=M(null);get contentNode(){return r(this.#o)}set contentNode(t){p(this.#o,t,!0)}contentPresence;#r=M(null);get viewportNode(){return r(this.#r)}set viewportNode(t){p(this.#r,t,!0)}#s=M(null);get triggerNode(){return r(this.#s)}set triggerNode(t){p(this.#s,t,!0)}#i=M("");get valueId(){return r(this.#i)}set valueId(t){p(this.#i,t,!0)}#n=M(null);get highlightedNode(){return r(this.#n)}set highlightedNode(t){p(this.#n,t,!0)}#a=u(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null);get highlightedValue(){return r(this.#a)}set highlightedValue(t){p(this.#a,t)}#l=u(()=>{if(this.highlightedNode)return this.highlightedNode.id});get highlightedId(){return r(this.#l)}set highlightedId(t){p(this.#l,t)}#h=u(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null);get highlightedLabel(){return r(this.#h)}set highlightedLabel(t){p(this.#h,t)}isUsingKeyboard=!1;isCombobox=!1;domContext=new vt(()=>null);constructor(t){this.opts=t,this.isCombobox=t.isCombobox,this.contentPresence=new ve({ref:S(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),ee(()=>{this.opts.open.current||this.setHighlightedNode(null)})}setHighlightedNode(t,e=!1){this.highlightedNode=t,t&&(this.isUsingKeyboard||e)&&t.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const t=this.contentNode;return t?Array.from(t.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(t=!1){this.setHighlightedNode(null);let e=this.getCandidateNodes();if(e.length){if(this.viewportNode){const o=this.viewportNode.getBoundingClientRect();e=e.filter(i=>{if(!this.viewportNode)return!1;const n=i.getBoundingClientRect();return n.right<o.right&&n.left>o.left&&n.bottom<o.bottom&&n.top>o.top})}this.setHighlightedNode(e[0],t)}}getNodeByValue(t){return this.getCandidateNodes().find(o=>o.dataset.value===t)??null}setOpen(t){this.opts.open.current=t}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}getBitsAttr=t=>Je.getAttr(t,this.isCombobox?"combobox":void 0)}class Qe extends Jt{opts;isMulti=!1;#t=u(()=>this.opts.value.current!=="");get hasValue(){return r(this.#t)}set hasValue(t){p(this.#t,t)}#e=u(()=>this.opts.items.current.length?this.opts.items.current.find(t=>t.value===this.opts.value.current)?.label??"":"");get currentLabel(){return r(this.#e)}set currentLabel(t){p(this.#e,t)}#o=u(()=>this.opts.items.current.length?this.opts.items.current.filter(e=>!e.disabled).map(e=>e.label):[]);get candidateLabels(){return r(this.#o)}set candidateLabels(t){p(this.#o,t)}#r=u(()=>!(this.isMulti||this.opts.items.current.length===0));get dataTypeaheadEnabled(){return r(this.#r)}set dataTypeaheadEnabled(t){p(this.#r,t)}constructor(t){super(t),this.opts=t,Nt(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),K(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(t){return this.opts.value.current===t}toggleItem(t,e=t){const o=this.includesItem(t)?"":t;this.opts.value.current=o,o!==""&&(this.opts.inputValue.current=e)}setInitialHighlightedNode(){Lt(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const t=this.getNodeByValue(this.opts.value.current);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}class Xe extends Jt{opts;isMulti=!0;#t=u(()=>this.opts.value.current.length>0);get hasValue(){return r(this.#t)}set hasValue(t){p(this.#t,t)}constructor(t){super(t),this.opts=t,Nt(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),K(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(t){return this.opts.value.current.includes(t)}toggleItem(t,e=t){this.includesItem(t)?this.opts.value.current=this.opts.value.current.filter(o=>o!==t):this.opts.value.current=[...this.opts.value.current,t],this.opts.inputValue.current=e}setInitialHighlightedNode(){Lt(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const t=this.getNodeByValue(this.opts.value.current[0]);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}class Ze{static create(t){const{type:e,...o}=t,i=e==="single"?new Qe(o):new Xe(o);return st.set(i)}}class Qt{static create(t){return new Qt(t,st.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=tt(t.ref,o=>this.root.inputNode=o),this.root.domContext=new vt(t.ref),this.onkeydown=this.onkeydown.bind(this),this.oninput=this.oninput.bind(this),K([()=>this.root.opts.value.current,()=>this.opts.clearOnDeselect.current],([o,i],[n])=>{i&&(Array.isArray(o)&&Array.isArray(n)?o.length===0&&n.length!==0&&(this.root.opts.inputValue.current=""):o===""&&n!==""&&(this.root.opts.inputValue.current=""))})}onkeydown(t){if(this.root.isUsingKeyboard=!0,t.key!==Wt){if((t.key===J||t.key===et)&&t.preventDefault(),!this.root.opts.open.current){if(Bt.includes(t.key)||t.key===ft||t.key===Be&&this.root.opts.inputValue.current===""||(this.root.handleOpen(),this.root.hasValue))return;const e=this.root.getCandidateNodes();if(!e.length)return;if(t.key===et){const o=e[0];this.root.setHighlightedNode(o)}else if(t.key===J){const o=e[e.length-1];this.root.setHighlightedNode(o)}return}if(t.key===ft){this.root.handleClose();return}if(t.key===pt&&!t.isComposing){t.preventDefault();const e=this.root.highlightedValue===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti){this.root.handleClose();return}this.root.highlightedValue&&this.root.highlightedNode&&this.root.highlightedNode.isConnected&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!e&&this.root.handleClose()}if(t.key===J&&t.altKey&&this.root.handleClose(),Gt.includes(t.key)){t.preventDefault();const e=this.root.getCandidateNodes(),o=this.root.highlightedNode,i=o?e.indexOf(o):-1,n=this.root.opts.loop.current;let s;if(t.key===et?s=Ft(e,i,n):t.key===J?s=Kt(e,i,n):t.key===Tt?s=Ut(e,i,10,n):t.key===xt?s=zt(e,i,10,n):t.key===Pt?s=e[0]:t.key===kt&&(s=e[e.length-1]),!s)return;this.root.setHighlightedNode(s);return}Bt.includes(t.key)||this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}oninput(t){this.root.opts.inputValue.current=t.currentTarget.value,this.root.setHighlightedToFirstCandidate()}#t=u(()=>({id:this.opts.id.current,role:"combobox",disabled:this.root.opts.disabled.current?!0:void 0,"aria-activedescendant":this.root.highlightedId,"aria-autocomplete":"list","aria-expanded":jt(this.root.opts.open.current),"data-state":bt(this.root.opts.open.current),"data-disabled":mt(this.root.opts.disabled.current),onkeydown:this.onkeydown,oninput:this.oninput,[this.root.getBitsAttr("input")]:"",...this.attachment}));get props(){return r(this.#t)}set props(t){p(this.#t,t)}}class Xt{static create(t){return new Xt(t,st.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=tt(t.ref),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this)}onkeydown(t){this.root.domContext&&(t.key===pt||t.key===gt)&&(t.preventDefault(),this.root.domContext.getActiveElement()!==this.root.inputNode&&this.root.inputNode?.focus(),this.root.toggleMenu())}onpointerdown(t){this.root.opts.disabled.current||!this.root.domContext||(t.preventDefault(),this.root.domContext.getActiveElement()!==this.root.inputNode&&this.root.inputNode?.focus(),this.root.toggleMenu())}#t=u(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","data-state":bt(this.root.opts.open.current),"data-disabled":mt(this.root.opts.disabled.current),[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,...this.attachment}));get props(){return r(this.#t)}set props(t){p(this.#t,t)}}class It{static create(t){return new It(t,st.get())}opts;root;attachment;#t;#e;constructor(t,e){this.opts=t,this.root=e,this.attachment=tt(t.ref,o=>this.root.triggerNode=o),this.root.domContext=new vt(t.ref),this.#t=new ge({getCurrentItem:()=>this.root.highlightedNode,onMatch:o=>{this.root.setHighlightedNode(o)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()}),this.#e=new qe({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:o=>{if(this.root.isMulti||!this.root.opts.items.current)return;const i=this.root.opts.items.current.find(n=>n.label===o);i&&(this.root.opts.value.current=i.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()}),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}#o(){this.root.opts.open.current=!0,this.#e.resetTypeahead(),this.#t.resetTypeahead()}#r(t){this.#o()}#s(){const t=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti?(this.root.handleClose(),!0):(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t?(this.root.handleClose(),!0):!1)}onkeydown(t){if(this.root.isUsingKeyboard=!0,(t.key===J||t.key===et)&&t.preventDefault(),!this.root.opts.open.current){if(t.key===pt||t.key===gt||t.key===et||t.key===J)t.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){this.#e.handleTypeaheadSearch(t.key);return}if(this.root.hasValue)return;const s=this.root.getCandidateNodes();if(!s.length)return;if(t.key===et){const a=s[0];this.root.setHighlightedNode(a)}else if(t.key===J){const a=s[s.length-1];this.root.setHighlightedNode(a)}return}if(t.key===ft){this.root.handleClose();return}if((t.key===pt||t.key===gt&&this.#t.search==="")&&!t.isComposing&&(t.preventDefault(),this.#s()))return;if(t.key===J&&t.altKey&&this.root.handleClose(),Gt.includes(t.key)){t.preventDefault();const s=this.root.getCandidateNodes(),a=this.root.highlightedNode,b=a?s.indexOf(a):-1,c=this.root.opts.loop.current;let g;if(t.key===et?g=Ft(s,b,c):t.key===J?g=Kt(s,b,c):t.key===Tt?g=Ut(s,b,10,c):t.key===xt?g=zt(s,b,10,c):t.key===Pt?g=s[0]:t.key===kt&&(g=s[s.length-1]),!g)return;this.root.setHighlightedNode(g);return}const e=t.ctrlKey||t.altKey||t.metaKey,o=t.key.length===1,i=t.key===gt,n=this.root.getCandidateNodes();if(t.key!==ft){if(!e&&(o||i)){!this.#t.handleTypeaheadSearch(t.key,n)&&i&&(t.preventDefault(),this.#s());return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(t){t.currentTarget.focus()}onpointerdown(t){if(this.root.opts.disabled.current)return;if(t.pointerType==="touch")return t.preventDefault();const e=t.target;e?.hasPointerCapture(t.pointerId)&&e?.releasePointerCapture(t.pointerId),t.button===0&&t.ctrlKey===!1&&(this.root.opts.open.current===!1?this.#r(t):this.root.handleClose())}onpointerup(t){this.root.opts.disabled.current||(t.preventDefault(),t.pointerType==="touch"&&(this.root.opts.open.current===!1?this.#r(t):this.root.handleClose()))}#i=u(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":jt(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":bt(this.root.opts.open.current),"data-disabled":mt(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:"",[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment}));get props(){return r(this.#i)}set props(t){p(this.#i,t)}}class At{static create(t){return yt.set(new At(t,st.get()))}opts;root;attachment;#t=M(!1);get isPositioned(){return r(this.#t)}set isPositioned(t){p(this.#t,t,!0)}domContext;constructor(t,e){this.opts=t,this.root=e,this.attachment=tt(t.ref,o=>this.root.contentNode=o),this.domContext=new vt(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),fe(()=>{this.root.contentNode=null,this.isPositioned=!1}),K(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.isPositioned=!1)}),this.onpointermove=this.onpointermove.bind(this)}onpointermove(t){this.root.isUsingKeyboard=!1}#e=u(()=>ne(this.root.isCombobox?"combobox":"select"));onInteractOutside=t=>{if(t.target===this.root.triggerNode||t.target===this.root.inputNode){t.preventDefault();return}this.opts.onInteractOutside.current(t),!t.defaultPrevented&&this.root.handleClose()};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};onOpenAutoFocus=t=>{t.preventDefault()};onCloseAutoFocus=t=>{t.preventDefault()};get shouldRender(){return this.root.contentPresence.shouldRender}#o=u(()=>({open:this.root.opts.open.current}));get snippetProps(){return r(this.#o)}set snippetProps(t){p(this.#o,t)}#r=u(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":bt(this.root.opts.open.current),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...r(this.#e)},onpointermove:this.onpointermove,...this.attachment}));get props(){return r(this.#r)}set props(t){p(this.#r,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.isPositioned=!0)}}}class Ht{static create(t){return new Ht(t,st.get())}opts;root;attachment;#t=u(()=>this.root.includesItem(this.opts.value.current));get isSelected(){return r(this.#t)}set isSelected(t){p(this.#t,t)}#e=u(()=>this.root.highlightedValue===this.opts.value.current);get isHighlighted(){return r(this.#e)}set isHighlighted(t){p(this.#e,t)}prevHighlighted=new je(()=>this.isHighlighted);#o=M(!1);get mounted(){return r(this.#o)}set mounted(t){p(this.#o,t,!0)}constructor(t,e){this.opts=t,this.root=e,this.attachment=tt(t.ref),K([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),K(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}handleSelect(){if(this.opts.disabled.current)return;const t=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!t&&this.root.handleClose()}#r=u(()=>({selected:this.isSelected,highlighted:this.isHighlighted}));get snippetProps(){return r(this.#r)}set snippetProps(t){p(this.#r,t)}onpointerdown(t){t.preventDefault()}onpointerup(t){if(!(t.defaultPrevented||!this.opts.ref.current)){if(t.pointerType==="touch"&&!me){_t(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}t.preventDefault(),this.handleSelect(),t.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(t){t.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}#s=u(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":mt(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment}));get props(){return r(this.#s)}set props(t){p(this.#s,t)}}class Zt{static create(t){return Yt.set(new Zt(t,st.get()))}opts;root;#t=M(null);get labelNode(){return r(this.#t)}set labelNode(t){p(this.#t,t,!0)}attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=tt(t.ref)}#e=u(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("group")]:"","aria-labelledby":this.labelNode?.id??void 0,...this.attachment}));get props(){return r(this.#e)}set props(t){p(this.#e,t)}}class $t{static create(t){return new $t(t,Yt.get())}opts;group;attachment;constructor(t,e){this.opts=t,this.group=e,this.attachment=tt(t.ref,o=>this.group.labelNode=o)}#t=u(()=>({id:this.opts.id.current,[this.group.root.getBitsAttr("group-label")]:"",...this.attachment}));get props(){return r(this.#t)}set props(t){p(this.#t,t)}}class Ot{static create(t){return new Ot(t,st.get())}opts;root;#t=u(()=>this.root.opts.name.current!=="");get shouldRender(){return r(this.#t)}set shouldRender(t){p(this.#t,t)}constructor(t,e){this.opts=t,this.root=e,this.onfocus=this.onfocus.bind(this)}onfocus(t){t.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}#e=u(()=>({disabled:Rt(this.root.opts.disabled.current),required:Rt(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus}));get props(){return r(this.#e)}set props(t){p(this.#e,t)}}class Vt{static create(t){return new Vt(t,yt.get())}opts;content;root;attachment;#t=M(0);get prevScrollTop(){return r(this.#t)}set prevScrollTop(t){p(this.#t,t,!0)}constructor(t,e){this.opts=t,this.content=e,this.root=e.root,this.attachment=tt(t.ref,o=>{this.root.viewportNode=o})}#e=u(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment}));get props(){return r(this.#e)}set props(t){p(this.#e,t)}}class te{opts;content;root;attachment;autoScrollTimer=null;userScrollTimer=-1;isUserScrolling=!1;onAutoScroll=Z;#t=M(!1);get mounted(){return r(this.#t)}set mounted(t){p(this.#t,t,!0)}constructor(t,e){this.opts=t,this.content=e,this.root=e.root,this.attachment=tt(t.ref),K([()=>this.mounted],()=>{if(!this.mounted){this.isUserScrolling=!1;return}this.isUserScrolling}),Nt(()=>{this.mounted||this.clearAutoScrollInterval()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this)}handleUserScroll(){this.content.domContext.clearTimeout(this.userScrollTimer),this.isUserScrolling=!0,this.userScrollTimer=this.content.domContext.setTimeout(()=>{this.isUserScrolling=!1},200)}clearAutoScrollInterval(){this.autoScrollTimer!==null&&(this.content.domContext.clearTimeout(this.autoScrollTimer),this.autoScrollTimer=null)}onpointerdown(t){if(this.autoScrollTimer!==null)return;const e=o=>{this.onAutoScroll(),this.autoScrollTimer=this.content.domContext.setTimeout(()=>e(o+1),this.opts.delay.current(o))};this.autoScrollTimer=this.content.domContext.setTimeout(()=>e(1),this.opts.delay.current(0))}onpointermove(t){this.onpointerdown(t)}onpointerleave(t){this.clearAutoScrollInterval()}#e=u(()=>({id:this.opts.id.current,"aria-hidden":Ue(!0),style:{flexShrink:0},onpointerdown:this.onpointerdown,onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return r(this.#e)}set props(t){p(this.#e,t)}}class Dt{static create(t){return new Dt(new te(t,yt.get()))}scrollButtonState;content;root;#t=M(!1);get canScrollDown(){return r(this.#t)}set canScrollDown(t){p(this.#t,t,!0)}scrollIntoViewTimer=null;constructor(t){this.scrollButtonState=t,this.content=t.content,this.root=t.root,this.scrollButtonState.onAutoScroll=this.handleAutoScroll,K([()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.root.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),_t(this.root.viewportNode,"scroll",()=>this.handleScroll())}),K([()=>this.root.opts.inputValue.current,()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{!this.root.viewportNode||!this.content.isPositioned||this.handleScroll(!0)}),K(()=>this.scrollButtonState.mounted,()=>{this.scrollButtonState.mounted&&(this.scrollIntoViewTimer&&clearTimeout(this.scrollIntoViewTimer),this.scrollIntoViewTimer=be(5,()=>{this.root.highlightedNode?.scrollIntoView({block:this.root.opts.scrollAlignment.current})}))})}handleScroll=(t=!1)=>{if(t||this.scrollButtonState.handleUserScroll(),!this.root.viewportNode)return;const e=this.root.viewportNode.scrollHeight-this.root.viewportNode.clientHeight,o=Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop,10);this.canScrollDown=Math.ceil(this.root.viewportNode.scrollTop)<e-o};handleAutoScroll=()=>{const t=this.root.viewportNode,e=this.root.highlightedNode;!t||!e||(t.scrollTop=t.scrollTop+e.offsetHeight)};#e=u(()=>({...this.scrollButtonState.props,[this.root.getBitsAttr("scroll-down-button")]:""}));get props(){return r(this.#e)}set props(t){p(this.#e,t)}}class Mt{static create(t){return new Mt(new te(t,yt.get()))}scrollButtonState;content;root;#t=M(!1);get canScrollUp(){return r(this.#t)}set canScrollUp(t){p(this.#t,t,!0)}constructor(t){this.scrollButtonState=t,this.content=t.content,this.root=t.root,this.scrollButtonState.onAutoScroll=this.handleAutoScroll,K([()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.root.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),_t(this.root.viewportNode,"scroll",()=>this.handleScroll())})}handleScroll=(t=!1)=>{if(t||this.scrollButtonState.handleUserScroll(),!this.root.viewportNode)return;const e=Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop,10);this.canScrollUp=this.root.viewportNode.scrollTop-e>.1};handleAutoScroll=()=>{!this.root.viewportNode||!this.root.highlightedNode||(this.root.viewportNode.scrollTop=this.root.viewportNode.scrollTop-this.root.highlightedNode.offsetHeight)};#e=u(()=>({...this.scrollButtonState.props,[this.root.getBitsAttr("scroll-up-button")]:""}));get props(){return r(this.#e)}set props(t){p(this.#e,t)}}function St(f,t){O(t,!0);let e=l(t,"value",15);const o=Ot.create({value:S(()=>e())});var i=x(),n=y(i);{var s=a=>{Ke(a,U(()=>o.props,{get autocomplete(){return t.autocomplete},get value(){return e()},set value(b){e(b)}}))};H(n,a=>{o.shouldRender&&a(s)})}d(f,i),V()}var $e=E("<div><div><!></div></div>"),to=E("<div><div><!></div></div>");function eo(f,t){const e=dt();O(t,!0);let o=l(t,"id",19,()=>ut(e)),i=l(t,"ref",15,null),n=l(t,"forceMount",3,!1),s=l(t,"side",3,"bottom"),a=l(t,"onInteractOutside",3,Z),b=l(t,"onEscapeKeydown",3,Z),c=l(t,"preventScroll",3,!1),g=R(t,["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll"]);const N=At.create({id:S(()=>o()),ref:S(()=>i(),_=>i(_)),onInteractOutside:S(()=>a()),onEscapeKeydown:S(()=>b())}),v=u(()=>ot(g,N.props));var w=x(),P=y(w);{var k=_=>{ae(_,U(()=>r(v),()=>N.popperProps,{get ref(){return N.opts.ref},get side(){return s()},get enabled(){return N.root.opts.open.current},get id(){return o()},get preventScroll(){return c()},forceMount:!0,get shouldRender(){return N.shouldRender},popper:(h,C)=>{let D=()=>C?.().props,T=()=>C?.().wrapperProps;const z=u(()=>ot(D(),{style:N.props.style}));var B=x(),Q=y(B);{var at=F=>{var W=x(),j=y(W);{let it=u(()=>({props:r(z),wrapperProps:T(),...N.snippetProps}));A(j,()=>t.child,()=>r(it))}d(F,W)},L=F=>{var W=$e();X(W,()=>({...T()}));var j=q(W);X(j,()=>({...r(z)}));var it=q(j);A(it,()=>t.children??Y),G(j),G(W),d(F,W)};H(Q,F=>{t.child?F(at):F(L,!1)})}d(h,B)},$$slots:{popper:!0}}))},I=_=>{var m=x(),h=y(m);{var C=D=>{le(D,U(()=>r(v),()=>N.popperProps,{get ref(){return N.opts.ref},get side(){return s()},get open(){return N.root.opts.open.current},get id(){return o()},get preventScroll(){return c()},forceMount:!1,get shouldRender(){return N.shouldRender},popper:(z,B)=>{let Q=()=>B?.().props,at=()=>B?.().wrapperProps;const L=u(()=>ot(Q(),{style:N.props.style}));var F=x(),W=y(F);{var j=lt=>{var nt=x(),ct=y(nt);{let wt=u(()=>({props:r(L),wrapperProps:at(),...N.snippetProps}));A(ct,()=>t.child,()=>r(wt))}d(lt,nt)},it=lt=>{var nt=to();X(nt,()=>({...at()}));var ct=q(nt);X(ct,()=>({...r(L)}));var wt=q(ct);A(wt,()=>t.children??Y),G(ct),G(nt),d(lt,nt)};H(W,lt=>{t.child?lt(j):lt(it,!1)})}d(z,F)},$$slots:{popper:!0}}))};H(h,D=>{n()||D(C)},!0)}d(_,m)};H(P,_=>{n()?_(k):_(I,!1)})}d(f,w),V()}function Et(f,t){O(t,!0);let e=l(t,"mounted",15,!1),o=l(t,"onMountedChange",3,Z);he(()=>(e(!0),o()(!0),()=>{e(!1),o()(!1)})),V()}var oo=E("<div><!></div>"),ro=E("<!> <!>",1);function so(f,t){const e=dt();O(t,!0);let o=l(t,"id",19,()=>ut(e)),i=l(t,"ref",15,null),n=l(t,"label",19,()=>t.value),s=l(t,"disabled",3,!1),a=l(t,"onHighlight",3,Z),b=l(t,"onUnhighlight",3,Z),c=R(t,["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]);const g=Ht.create({id:S(()=>o()),ref:S(()=>i(),_=>i(_)),value:S(()=>t.value),disabled:S(()=>s()),label:S(()=>n()),onHighlight:S(()=>a()),onUnhighlight:S(()=>b())}),N=u(()=>ot(c,g.props));var v=ro(),w=y(v);{var P=_=>{var m=x(),h=y(m);{let C=u(()=>({props:r(N),...g.snippetProps}));A(h,()=>t.child,()=>r(C))}d(_,m)},k=_=>{var m=oo();X(m,()=>({...r(N)}));var h=q(m);A(h,()=>t.children??Y,()=>g.snippetProps),G(m),d(_,m)};H(w,_=>{t.child?_(P):_(k,!1)})}var I=rt(w,2);Et(I,{get mounted(){return g.mounted},set mounted(_){g.mounted=_}}),d(f,v),V()}var io=E("<div><!></div>");function no(f,t){const e=dt();O(t,!0);let o=l(t,"id",19,()=>ut(e)),i=l(t,"ref",15,null),n=R(t,["$$slots","$$events","$$legacy","id","ref","children","child"]);const s=Vt.create({id:S(()=>o()),ref:S(()=>i(),v=>i(v))}),a=u(()=>ot(n,s.props));var b=x(),c=y(b);{var g=v=>{var w=x(),P=y(w);A(P,()=>t.child,()=>({props:r(a)})),d(v,w)},N=v=>{var w=io();X(w,()=>({...r(a)}));var P=q(w);A(P,()=>t.children??Y),G(w),d(v,w)};H(c,v=>{t.child?v(g):v(N,!1)})}d(f,b),V()}var ao=E("<div><!></div>"),lo=E("<!> <!>",1);function ho(f,t){const e=dt();O(t,!0);let o=l(t,"id",19,()=>ut(e)),i=l(t,"ref",15,null),n=l(t,"delay",3,()=>50),s=R(t,["$$slots","$$events","$$legacy","id","ref","delay","child","children"]);const a=Dt.create({id:S(()=>o()),ref:S(()=>i(),v=>i(v)),delay:S(()=>n())}),b=u(()=>ot(s,a.props));var c=x(),g=y(c);{var N=v=>{var w=lo(),P=y(w);Et(P,{get mounted(){return a.scrollButtonState.mounted},set mounted(m){a.scrollButtonState.mounted=m}});var k=rt(P,2);{var I=m=>{var h=x(),C=y(h);A(C,()=>t.child,()=>({props:s})),d(m,h)},_=m=>{var h=ao();X(h,()=>({...r(b)}));var C=q(h);A(C,()=>t.children??Y),G(h),d(m,h)};H(k,m=>{t.child?m(I):m(_,!1)})}d(v,w)};H(g,v=>{a.canScrollDown&&v(N)})}d(f,c),V()}var uo=E("<div><!></div>"),co=E("<!> <!>",1);function po(f,t){const e=dt();O(t,!0);let o=l(t,"id",19,()=>ut(e)),i=l(t,"ref",15,null),n=l(t,"delay",3,()=>50),s=R(t,["$$slots","$$events","$$legacy","id","ref","delay","child","children"]);const a=Mt.create({id:S(()=>o()),ref:S(()=>i(),v=>i(v)),delay:S(()=>n())}),b=u(()=>ot(s,a.props));var c=x(),g=y(c);{var N=v=>{var w=co(),P=y(w);Et(P,{get mounted(){return a.scrollButtonState.mounted},set mounted(m){a.scrollButtonState.mounted=m}});var k=rt(P,2);{var I=m=>{var h=x(),C=y(h);A(C,()=>t.child,()=>({props:s})),d(m,h)},_=m=>{var h=uo();X(h,()=>({...r(b)}));var C=q(h);A(C,()=>t.children??Y),G(h),d(m,h)};H(k,m=>{t.child?m(I):m(_,!1)})}d(v,w)};H(g,v=>{a.canScrollUp&&v(N)})}d(f,c),V()}var go=E("<!> <!>",1);function fo(f,t){O(t,!0);let e=l(t,"value",15),o=l(t,"onValueChange",3,Z),i=l(t,"name",3,""),n=l(t,"disabled",3,!1),s=l(t,"open",15,!1),a=l(t,"onOpenChange",3,Z),b=l(t,"onOpenChangeComplete",3,Z),c=l(t,"loop",3,!1),g=l(t,"scrollAlignment",3,"nearest"),N=l(t,"required",3,!1),v=l(t,"items",19,()=>[]),w=l(t,"allowDeselect",3,!1);function P(){e()===void 0&&e(t.type==="single"?"":[])}P(),K.pre(()=>e(),()=>{P()});let k=M("");const I=Ze.create({type:t.type,value:S(()=>e(),T=>{e(T),o()(T)}),disabled:S(()=>n()),required:S(()=>N()),open:S(()=>s(),T=>{s(T),a()(T)}),loop:S(()=>c()),scrollAlignment:S(()=>g()),name:S(()=>i()),isCombobox:!1,items:S(()=>v()),allowDeselect:S(()=>w()),inputValue:S(()=>r(k),T=>p(k,T,!0)),onOpenChangeComplete:S(()=>b())});var _=go(),m=y(_);de(m,{children:(T,z)=>{var B=x(),Q=y(B);A(Q,()=>t.children??Y),d(T,B)},$$slots:{default:!0}});var h=rt(m,2);{var C=T=>{var z=x(),B=y(z);{var Q=L=>{St(L,{get autocomplete(){return t.autocomplete}})},at=L=>{var F=x(),W=y(F);ie(W,16,()=>I.opts.value.current,j=>j,(j,it)=>{St(j,{get value(){return it},get autocomplete(){return t.autocomplete}})}),d(L,F)};H(B,L=>{I.opts.value.current.length===0?L(Q):L(at,!1)})}d(T,z)},D=T=>{St(T,{get autocomplete(){return t.autocomplete},get value(){return I.opts.value.current},set value(z){I.opts.value.current=z}})};H(h,T=>{Array.isArray(I.opts.value.current)?T(C):T(D,!1)})}d(f,_),V()}var vo=E("<button><!></button>");function mo(f,t){const e=dt();O(t,!0);let o=l(t,"id",19,()=>ut(e)),i=l(t,"ref",15,null),n=l(t,"type",3,"button"),s=R(t,["$$slots","$$events","$$legacy","id","ref","child","children","type"]);const a=It.create({id:S(()=>o()),ref:S(()=>i(),N=>i(N))}),b=u(()=>ot(s,a.props,{type:n()}));var c=x(),g=y(c);$(g,()=>ue,(N,v)=>{v(N,{get id(){return o()},get ref(){return a.opts.ref},children:(w,P)=>{var k=x(),I=y(k);{var _=h=>{var C=x(),D=y(C);A(D,()=>t.child,()=>({props:r(b)})),d(h,C)},m=h=>{var C=vo();X(C,()=>({...r(b)}));var D=q(C);A(D,()=>t.children??Y),G(C),d(h,C)};H(I,h=>{t.child?h(_):h(m,!1)})}d(w,k)},$$slots:{default:!0}})}),d(f,c),V()}function bo(f,t){O(t,!0);let e=R(t,["$$slots","$$events","$$legacy"]);const o=[["path",{d:"m18 15-6-6-6 6"}]];We(f,U({name:"chevron-up"},()=>e,{get iconNode(){return o},children:(i,n)=>{var s=x(),a=y(s);A(a,()=>t.children??Y),d(i,s)},$$slots:{default:!0}})),V()}function Uo(f,t){O(t,!0);let e=l(t,"open",15,!1),o=l(t,"value",15),i=R(t,["$$slots","$$events","$$legacy","open","value"]);var n=x(),s=y(n);$(s,()=>fo,(a,b)=>{b(a,U(()=>i,{get open(){return e()},set open(c){e(c)},get value(){return o()},set value(c){o(c)}}))}),d(f,n),V()}var yo=E('<span class="absolute end-2 flex size-3.5 items-center justify-center"><!></span> <!>',1);function zo(f,t){O(t,!0);let e=l(t,"ref",15,null),o=R(t,["$$slots","$$events","$$legacy","ref","class","value","label","children"]);var i=x(),n=y(i);{const s=(b,c)=>{let g=()=>c?.().selected,N=()=>c?.().highlighted;var v=yo(),w=y(v),P=q(w);{var k=h=>{Le(h,{class:"size-4"})};H(P,h=>{g()&&h(k)})}G(w);var I=rt(w,2);{var _=h=>{var C=x(),D=y(C);A(D,()=>t.children,()=>({selected:g(),highlighted:N()})),d(h,C)},m=h=>{var C=oe();re(()=>se(C,t.label||t.value)),d(h,C)};H(I,h=>{t.children?h(_):h(m,!1)})}d(b,v)};let a=u(()=>ht("relative flex w-full cursor-pointer items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t.class));$(n,()=>so,(b,c)=>{c(b,U({get value(){return t.value},"data-slot":"select-item",get class(){return r(a)}},()=>o,{get ref(){return e()},set ref(g){e(g)},children:s,$$slots:{default:!0}}))})}d(f,i),V()}function wo(f,t){let e=R(t,["$$slots","$$events","$$legacy"]);var o=x(),i=y(o);$(i,()=>Fe,(n,s)=>{s(n,U(()=>e))}),d(f,o)}function So(f,t){O(t,!0);let e=l(t,"ref",15,null),o=R(t,["$$slots","$$events","$$legacy","ref","class"]);var i=x(),n=y(i);{let s=u(()=>ht("flex cursor-default items-center justify-center py-1",t.class));$(n,()=>po,(a,b)=>{b(a,U({"data-slot":"select-scroll-up-button",get class(){return r(s)}},()=>o,{get ref(){return e()},set ref(c){e(c)},children:(c,g)=>{bo(c,{class:"size-4"})},$$slots:{default:!0}}))})}d(f,i),V()}function No(f,t){O(t,!0);let e=l(t,"ref",15,null),o=R(t,["$$slots","$$events","$$legacy","ref","class"]);var i=x(),n=y(i);{let s=u(()=>ht("flex cursor-default items-center justify-center py-1",t.class));$(n,()=>ho,(a,b)=>{b(a,U({"data-slot":"select-scroll-down-button",get class(){return r(s)}},()=>o,{get ref(){return e()},set ref(c){e(c)},children:(c,g)=>{qt(c,{class:"size-4"})},$$slots:{default:!0}}))})}d(f,i),V()}var _o=E("<!> <!> <!>",1);function Lo(f,t){O(t,!0);let e=l(t,"ref",15,null),o=l(t,"sideOffset",3,4),i=l(t,"preventScroll",3,!0),n=R(t,["$$slots","$$events","$$legacy","ref","class","sideOffset","portalProps","children","preventScroll"]);wo(f,U(()=>t.portalProps,{children:(s,a)=>{var b=x(),c=y(b);{let g=u(()=>ht("border-hair-2 relative z-50 max-h-(--bits-select-content-available-height) min-w-[8rem] origin-(--bits-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-[0_20px_60px_-20px_rgba(0,0,0,0.7),0_0_0_1px_rgba(255,255,255,0.03)] data-[side=bottom]:translate-y-1 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:-translate-x-1 data-[side=left]:slide-in-from-end-2 data-[side=right]:translate-x-1 data-[side=right]:slide-in-from-start-2 data-[side=top]:-translate-y-1 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",t.class));$(c,()=>eo,(N,v)=>{v(N,U({get sideOffset(){return o()},get preventScroll(){return i()},"data-slot":"select-content",get class(){return r(g)}},()=>n,{get ref(){return e()},set ref(w){e(w)},children:(w,P)=>{var k=_o(),I=y(k);So(I,{});var _=rt(I,2);{let h=u(()=>ht("h-(--bits-select-anchor-height) w-full min-w-(--bits-select-anchor-width) scroll-my-1 p-1"));$(_,()=>no,(C,D)=>{D(C,{get class(){return r(h)},children:(T,z)=>{var B=x(),Q=y(B);A(Q,()=>t.children??Y),d(T,B)},$$slots:{default:!0}})})}var m=rt(_,2);No(m,{}),d(w,k)},$$slots:{default:!0}}))})}d(s,b)},$$slots:{default:!0}})),V()}var Co=E('<span class="flex-1 truncate text-left"><!></span> <!>',1);function Wo(f,t){O(t,!0);let e=l(t,"ref",15,null),o=l(t,"size",3,"default"),i=R(t,["$$slots","$$events","$$legacy","ref","class","children","size"]);var n=x(),s=y(n);{let a=u(()=>ht("flex w-fit cursor-pointer items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none select-none focus-visible:ring-[2px] focus-visible:ring-ring/40 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/40 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 data-[state=open]:border-ring/60 dark:bg-input/30 dark:hover:bg-input/50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",t.class));$(s,()=>mo,(b,c)=>{c(b,U({"data-slot":"select-trigger",get"data-size"(){return o()},get class(){return r(a)}},()=>i,{get ref(){return e()},set ref(g){e(g)},children:(g,N)=>{var v=Co(),w=y(v),P=q(w);A(P,()=>t.children??Y),G(w);var k=rt(w,2);qt(k,{class:"size-4 shrink-0 opacity-50"}),d(g,v)},$$slots:{default:!0}}))})}d(f,n),V()}export{bo as C,Uo as S,Wo as a,Lo as b,zo as c,Zt as d,$t as e,Ze as f,St as g,Qt as h,Xt as i,eo as j,So as k,no as l,No as m,so as n};