@cline/cli-windows-arm64 3.0.51 → 3.0.52
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.
- package/bin/cline.exe +0 -0
- package/cline-hub/webview/assets/Chat-Byz21shc.js +201 -0
- package/cline-hub/webview/assets/badge-tZD_60cv.js +1 -0
- package/cline-hub/webview/assets/bundle-mjs-CO994-RQ.js +1 -0
- package/cline-hub/webview/assets/{chunk-BO2N2NFS-CdVUj51Q.js → chunk-BO2N2NFS-DJS94hax.js} +6 -6
- package/cline-hub/webview/assets/{desktop-client-B4hwKFvn.js → desktop-client-bYADwT3y.js} +1 -1
- package/cline-hub/webview/assets/extensions-view-B6Z6Tf6l.js +1 -0
- package/cline-hub/webview/assets/{highlighted-body-OFNGDK62-C3mWNVLk.js → highlighted-body-OFNGDK62-BOW3kov6.js} +1 -1
- package/cline-hub/webview/assets/index-BzdZ8J4d.css +1 -0
- package/cline-hub/webview/assets/index-Cw6Kg0MD.js +10 -0
- package/cline-hub/webview/assets/label-B4VTGFzI.js +1 -0
- package/cline-hub/webview/assets/mermaid-GHXKKRXX-CoORZYz7.js +1 -0
- package/cline-hub/webview/assets/{settings-view-0brQa7wc.js → settings-view-DvSMyQzo.js} +2 -2
- package/cline-hub/webview/assets/switch-DeaHMo5o.js +1 -0
- package/cline-hub/webview/index.html +3 -5
- package/package.json +1 -1
- package/cline-hub/webview/assets/Chat-CcvWZhaa.js +0 -201
- package/cline-hub/webview/assets/badge-BYJWm79X.js +0 -1
- package/cline-hub/webview/assets/bundle-mjs-D3mlU5Wg.js +0 -1
- package/cline-hub/webview/assets/extensions-view-CV6zk8Hh.js +0 -1
- package/cline-hub/webview/assets/index-LZX9pD_t.js +0 -10
- package/cline-hub/webview/assets/index-kv5oct7o.css +0 -1
- package/cline-hub/webview/assets/label-DdPtXNJI.js +0 -1
- package/cline-hub/webview/assets/mermaid-GHXKKRXX-DEqX-Lt6.js +0 -1
- package/cline-hub/webview/assets/react-dom-Cmec2Q1Q.js +0 -1
- package/cline-hub/webview/assets/switch-D32hLf2L.js +0 -1
- package/cline-hub/webview/assets/vscode-DBs95Ixu.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e}from"./rolldown-runtime-CNC7AqOf.js";import{a as t,r as n}from"./bundle-mjs-CO994-RQ.js";import{$ as r,$t as i,At as a,C as o,Dt as s,En as c,Et as l,F as u,Fn as d,Ft as f,Gn as p,Gt as m,Hn as h,Ht as g,I as _,In as v,It as y,J as b,Jn as x,Jt as S,K as C,Kn as w,Kt as T,L as ee,Lt as E,M as D,Mn as O,Mt as k,N as A,Nn as j,Nt as M,On as te,Ot as N,P,Pt as F,Q as ne,Qt as I,Rn as re,Rt as L,T as R,Tt as ie,Ut as z,Wt as ae,X as oe,Xt as se,Y as ce,Yt as le,Z as B,Zt as V,_ as ue,at as H,b as de,bt as U,cn as fe,ct as pe,d as me,dn as W,en as he,et as G,f as ge,fn as _e,g as ve,gn as ye,h as be,hn as xe,it as Se,j as Ce,jn as we,jt as Te,kt as Ee,ln as De,m as Oe,mn as ke,nn as Ae,nt as je,on as Me,ot as Ne,p as Pe,pn as Fe,q as Ie,qn as K,qt as Le,rt as Re,sn as ze,st as Be,tn as q,tt as J,v as Ve,vn as He,vt as Ue,wt as Y,y as We,zn as Ge,zt as Ke}from"./index-Cw6Kg0MD.js";var X=e(t(),1);function qe(e){let[t,n]=X.useState({current:e,previous:null});return e!==t.current&&n({current:e,previous:t.current}),t.previous}var Je=U(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),Ye=U(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),Xe=U(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),Ze=U(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),Qe=U(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),$e=U(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),et=X.forwardRef(function(e,t){let{render:n,className:r,style:o,disabled:s=!1,nativeButton:c=!0,id:l,payload:u,handle:d,...f}=e,p=pe(!0),m=d?.store??p?.store;if(!m)throw Error(w(79));let h=a(l),g=m.useState(`floatingRootContext`),_=m.useState(`isOpenedByTrigger`,h),v=m.useState(`triggerPopupId`,h),y=X.useRef(null),{registerTrigger:b,isMountedByThisTrigger:x}=L(h,y,m,{payload:u}),{getButtonProps:S,buttonRef:C}=Se({disabled:s,native:c}),T=se(g,{enabled:g!=null}),ee=ce(()=>m.select(`open`),e=>{m.set(`openMethod`,e)}),E={disabled:s,open:_},D=m.useState(`triggerProps`,x);return q(`button`,e,{state:E,ref:[C,t,b,y],props:[T.reference,D,ee,{[i]:``,id:h,"aria-haspopup":`dialog`,"aria-expanded":_,"aria-controls":v},f,S],stateAttributesMapping:M})});function tt(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}var nt=X.createContext(null),rt=X.createContext(null);function Z(){let e=X.useContext(nt);if(e===null)throw Error(w(60));return e}function it(){let e=X.useContext(rt);if(e===null)throw Error(w(61));return e}var at=(e,t)=>Object.is(e,t);function ot(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function st(e,t,n){return!e||e.length===0?!1:e.some(e=>e!==void 0&&ot(t,e,n))}function ct(e,t,n){return!e||e.length===0?-1:e.findIndex(e=>e!==void 0&&ot(e,t,n))}function lt(e,t,n){return e.filter(e=>!ot(t,e,n))}function ut(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}var Q=n();function dt(e){return e!=null&&e.length>0&&typeof e[0]==`object`&&e[0]!=null&&`items`in e[0]}function ft(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(dt(t)){for(let e of t)for(let t of e.items)if(t&&t.value==null&&t.label!=null)return!0;return!1}for(let e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function pt(e,t){if(t&&e!=null)return t(e)??``;if(e&&typeof e==`object`){if(`label`in e&&e.label!=null)return String(e.label);if(`value`in e)return String(e.value)}return ut(e)}function mt(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?ut(e.value):ut(e)}function ht(e,t,n){function r(){return pt(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e==`object`&&`label`in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return t[e]??r();if(Array.isArray(t)){let n=t,i=dt(n)?n.flatMap(e=>e.items):n;if(typeof e!=`object`||!e){let t=i.find(t=>t.value===e);return t&&t.label!=null?t.label:r()}if(`value`in e){let t=i.find(t=>t&&t.value===e.value);if(t&&t.label!=null)return t.label}}return r()}function gt(e,t,n){return e.reduce((e,r,i)=>(i>0&&e.push(`, `),e.push((0,Q.jsx)(X.Fragment,{children:ht(r,t,n)},i)),e),[])}var $={id:T(e=>e.id),labelId:T(e=>e.labelId),modal:T(e=>e.modal),multiple:T(e=>e.multiple),items:T(e=>e.items),itemToStringLabel:T(e=>e.itemToStringLabel),itemToStringValue:T(e=>e.itemToStringValue),isItemEqualToValue:T(e=>e.isItemEqualToValue),value:T(e=>e.value),hasSelectedValue:T(e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:mt(t,r)!==``}),hasNullItemLabel:T((e,t)=>t?ft(e.items):!1),open:T(e=>e.open),mounted:T(e=>e.mounted),forceMount:T(e=>e.forceMount),transitionStatus:T(e=>e.transitionStatus),openMethod:T(e=>e.openMethod),activeIndex:T(e=>e.activeIndex),selectedIndex:T(e=>e.selectedIndex),isActive:T((e,t)=>e.activeIndex===t),isSelected:T((e,t)=>{let n=e.isItemEqualToValue,r=e.value;return e.multiple?Array.isArray(r)&&r.some(e=>ot(t,e,n)):ot(t,r,n)}),isSelectedByFocus:T((e,t)=>e.selectedIndex===t),popupProps:T(e=>e.popupProps),triggerProps:T(e=>e.triggerProps),triggerElement:T(e=>e.triggerElement),positionerElement:T(e=>e.positionerElement),listElement:T(e=>e.listElement),popupSide:T(e=>e.popupSide),scrollUpArrowVisible:T(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:T(e=>e.scrollDownArrowVisible),hasScrollArrows:T(e=>e.hasScrollArrows)};function _t(e,t,n=(e,t)=>e===t){return e.length===t.length&&e.every((e,r)=>n(e,t[r]))}function vt(e){let{id:t,value:n,defaultValue:r=null,onValueChange:i,open:a,defaultOpen:s=!1,onOpenChange:c,name:l,form:u,autoComplete:d,disabled:p=!1,readOnly:h=!1,required:g=!1,modal:_=!0,actionsRef:v,inputRef:S,onOpenChangeComplete:C,items:w,multiple:T=!1,itemToStringLabel:D,itemToStringValue:k,isItemEqualToValue:A=at,highlightItemOnHover:M=!0,children:N}=e,{clearErrors:P}=de(),{setDirty:ne,setTouched:I,setFocused:re,validityData:L,setFilled:R,name:ie,disabled:ce,validation:B,validationMode:V}=o(),H=Ve({id:t}),U=ce||p,pe=ie??l,[W,he]=ee({controlled:n,default:T?r??O:r,name:`Select`,state:`value`}),[G,ve]=ee({controlled:a,default:s,name:`Select`,state:`open`}),be=X.useRef([]),xe=X.useRef([]),Se=X.useRef(null),Ce=X.useRef(null),we=X.useRef(0),Te=X.useRef(null),Ee=X.useRef([]),De=X.useRef(!1),Oe=X.useRef(null),je=X.useRef(null),Me=X.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),Ne=X.useRef(!1),{mounted:Pe,setMounted:Ie,transitionStatus:Re}=z(G),{openMethod:Be,triggerProps:q}=b(G),J=x(()=>new ae({id:H,labelId:void 0,modal:_,multiple:T,itemToStringLabel:D,itemToStringValue:k,isItemEqualToValue:A,value:W,open:G,mounted:Pe,transitionStatus:Re,items:w,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,He=m(J,$.activeIndex),Ue=m(J,$.selectedIndex),Y=m(J,$.triggerElement),We=m(J,$.positionerElement),Ge=qe(Be),Je=Be??Ge??null,Ye=X.useMemo(()=>T?``:mt(W,k),[T,W,k]),Xe=X.useMemo(()=>T&&Array.isArray(W)?W.map(e=>mt(e,k)):mt(W,k),[T,W,k]);ue(Fe(J.state.triggerElement),H,W,_e(()=>Xe),!U,l);let Ze=X.useRef(W),Qe=T?Array.isArray(W)&&W.length>0:W!=null&&mt(W,k)!==``;K(()=>{W!==Ze.current&&J.set(`forceMount`,!0)},[J,W]),K(()=>{R(Qe)},[Qe,R]),K(function(){let e=Ee.current,t;if(T){let n=Array.isArray(W)?W:[];if(n.length===0)t=null;else{let r=n[n.length-1],i=ct(e,r,A);t=i===-1?null:i}}else{let n=ct(e,W,A);t=n===-1?null:n}t===null&&(je.current=null),!G&&J.set(`selectedIndex`,t)},[Qe,T,G,W,Ee,A,J,je]);function $e(e){let t=L.initialValue;return Array.isArray(e)&&Array.isArray(t)?!_t(e,t,(e,t)=>ot(e,t,A)):e!==t}oe(W,()=>{P(pe),ne($e(W)),B.change(W)});let et=_e((e,t)=>{c?.(e,t),!t.isCanceled&&(ve(e),!e&&(t.reason===`focus-out`||t.reason===`outside-press`)&&(I(!0),re(!1),V===`onBlur`&&B.commit(W)))}),Z=_e(()=>{Ie(!1),J.update({activeIndex:null,openMethod:null}),C?.(!1)});Ke({enabled:!v,open:G,ref:Se,onComplete(){G||Z()}}),X.useImperativeHandle(v,()=>({unmount:Z}),[Z]);let it=_e((e,t)=>{i?.(e,t),!t.isCanceled&&he(e)}),st=_e(()=>{let e=J.state.listElement||Se.current;if(!e)return;let t=me(e.scrollHeight,e.clientHeight),n=ge(e.scrollTop,t),r=n>0,i=n<t;J.state.scrollUpArrowVisible!==r&&J.set(`scrollUpArrowVisible`,r),J.state.scrollDownArrowVisible!==i&&J.set(`scrollDownArrowVisible`,i)}),lt=y({open:G,onOpenChange:et,elements:{reference:Y,floating:We}}),ut=se(lt,{enabled:!h&&!U,event:`mousedown`}),dt=le(lt),ft=f(lt,{enabled:!h&&!U,listRef:be,activeIndex:He,selectedIndex:Ue,disabledIndices:O,onNavigate(e){e===null&&!G||J.set(`activeIndex`,e)},focusItemOnHover:M}),ht=F(lt,{enabled:!h&&!U&&(G||!T),listRef:xe,activeIndex:He,selectedIndex:Ue,disabledIndices:e=>tt(be.current[e]),onMatch(e){G?J.set(`activeIndex`,e):it(Ee.current[e],ye(`none`))},onTyping(e){De.current=e}}),gt=X.useMemo(()=>{let e=Ae(ht.reference,ft.reference,dt.reference,ut.reference,q);return H&&(e.id=H),e},[ut.reference,ht.reference,ft.reference,dt.reference,q,H]),vt=X.useMemo(()=>Ae(E,ht.floating,ft.floating,dt.floating),[ht.floating,ft.floating,dt.floating]),yt=ft.item??j;Le(()=>{J.update({popupProps:vt,triggerProps:gt})}),K(()=>{J.update({id:H,modal:_,multiple:T,value:W,open:G,mounted:Pe,transitionStatus:Re,popupProps:vt,triggerProps:gt,items:w,itemToStringLabel:D,itemToStringValue:k,isItemEqualToValue:A,openMethod:Je})},[J,H,_,T,W,G,Pe,Re,vt,gt,w,D,k,A,Je]);let bt=X.useMemo(()=>({store:J,name:pe,required:g,disabled:U,readOnly:h,multiple:T,highlightItemOnHover:M,setValue:it,setOpen:et,listRef:be,popupRef:Se,scrollHandlerRef:Ce,handleScrollArrowVisibility:st,scrollArrowsMountedCountRef:we,itemProps:yt,valueRef:Te,valuesRef:Ee,labelsRef:xe,typingRef:De,selectionRef:Me,firstItemTextRef:Oe,selectedItemTextRef:je,validation:B,onOpenChangeComplete:C,alignItemWithTriggerActiveRef:Ne,initialValueRef:Ze}),[J,pe,g,U,h,T,M,it,et,yt,B,C,st]),xt=ke(S,B.inputRef),St=T&&Array.isArray(W)&&W.length>0,Ct=T?void 0:pe,wt=X.useMemo(()=>!T||!Array.isArray(W)||!pe?null:W.map(e=>{let t=mt(e,k);return(0,Q.jsx)(`input`,{type:`hidden`,form:u,name:pe,value:t,disabled:U},t)}),[T,W,u,pe,k,U]);return(0,Q.jsx)(nt.Provider,{value:bt,children:(0,Q.jsxs)(rt.Provider,{value:lt,children:[N,(0,Q.jsx)(`input`,{...B.getValidationProps(U,{onFocus(){J.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented||U||h)return;let t=e.currentTarget.value,n=ye(te,e.nativeEvent);function r(){if(T)return;let e=t.toLowerCase(),r=Ee.current.findIndex(t=>mt(t,k).toLowerCase()===e||pt(t,D).toLowerCase()===e);r===-1&&(r=Ee.current.findIndex((t,n)=>{let r=xe.current[n];return r!=null&&r.toLowerCase()===e}));let i=r===-1?void 0:Ee.current[r];i!=null&&it(i,n)}J.set(`forceMount`,!0),queueMicrotask(r)}}),id:H&&Ct==null?`${H}-hidden-input`:void 0,form:u,name:Ct,autoComplete:d,value:Ye,disabled:U,required:g&&!St,readOnly:h,ref:xt,style:pe?fe:ze,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),wt]})})}function yt(e,t){return e??t}var bt=2,xt=400,St={...k,...R,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},Ct=X.forwardRef(function(e,t){let{render:n,className:r,id:i,disabled:a=!1,nativeButton:s=!0,style:c,...l}=e,{setTouched:u,setFocused:f,validationMode:h,state:g,disabled:_}=o(),{labelId:y}=We(),{store:b,setOpen:x,selectionRef:S,validation:C,readOnly:w,required:T,alignItemWithTriggerActiveRef:ee,disabled:E}=Z(),D=_||E||a,O=m(b,$.open),k=m(b,$.mounted),A=m(b,$.value),j=m(b,$.triggerProps),M=m(b,$.positionerElement),N=m(b,$.listElement),P=m(b,$.popupSide),F=m(b,$.id),ne=m(b,$.labelId),I=m(b,$.hasSelectedValue),re=k&&M?P:null,L=i??F,R=yt(y,ne);Ve({id:L});let ie=Fe(M),z=X.useRef(null),{getButtonProps:ae,buttonRef:oe}=Se({disabled:D,native:s}),se=_e(e=>{b.set(`triggerElement`,e)}),ce=p(),le=p(),B=p();X.useEffect(()=>{if(O)return B.start(xt,()=>{S.current.allowUnselectedMouseUp=!0,S.current.allowSelectedMouseUp=!0}),()=>{B.clear()};S.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},le.clear()},[O,S,le,B]);let V=Ae(j,{id:L,role:`combobox`,"aria-expanded":O?`true`:`false`,"aria-haspopup":`listbox`,"aria-controls":O?N?.id??d(M)?.id:void 0,"aria-labelledby":R,"aria-readonly":w||void 0,"aria-required":T||void 0,tabIndex:D?-1:0,onFocus(e){f(!0),O&&ee.current&&x(!1,ye(te,e.nativeEvent)),ce.start(0,()=>{b.set(`forceMount`,!0)})},onBlur(e){v(M,e.relatedTarget)||(u(!0),f(!1),h===`onBlur`&&C.commit(A))},onMouseDown(e){if(O)return;let t=De(e.currentTarget);function n(e){if(!z.current)return;let t=e.target;if(v(z.current,t)||v(ie.current,t))return;let n=Ce(z.current);e.clientX>=n.left-bt&&e.clientX<=n.right+bt&&e.clientY>=n.top-bt&&e.clientY<=n.bottom+bt||x(!1,ye(He,e))}le.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},l,ae),ue=C.getValidationProps(D,V);ue.role=`combobox`;let H={...g,open:O,disabled:D,value:A,readOnly:w,popupSide:re,placeholder:!I};return q(`button`,e,{ref:[t,z,oe,se],state:H,stateAttributesMapping:St,props:ue})}),wt={value:()=>null},Tt=X.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,style:o,...s}=e,{store:c,valueRef:l}=Z(),u=m(c,$.value),d=m(c,$.items),f=m(c,$.itemToStringLabel),p=m(c,$.hasSelectedValue),h=!p&&a!=null&&i==null,g=m(c,$.hasNullItemLabel,h),_={value:u,placeholder:!p},v=null;return v=typeof i==`function`?i(u):i??(!p&&a!=null&&!g?a:Array.isArray(u)?gt(u,d,f):ht(u,d,f)),q(`span`,e,{state:_,ref:[t,l],props:[{children:v},s],stateAttributesMapping:wt})}),Et=X.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o}=Z();return q(`span`,e,{state:{open:m(o,$.open)},ref:t,props:[{"aria-hidden":!0,children:`▼`},a],stateAttributesMapping:M})}),Dt=X.createContext(void 0),Ot=X.forwardRef(function(e,t){let{store:n}=Z(),r=m(n,$.mounted),i=m(n,$.forceMount);return r||i?(0,Q.jsx)(Dt.Provider,{value:!0,children:(0,Q.jsx)(I,{ref:t,...e})}):null}),kt=X.createContext(void 0);function At(){let e=X.useContext(kt);if(!e)throw Error(w(59));return e}function jt(e,t){e&&Object.assign(e.style,t)}var Mt={position:`relative`,maxHeight:`100%`,overflowX:`hidden`,overflowY:`auto`},Nt={position:`fixed`},Pt=X.forwardRef(function(e,t){let{anchor:n,positionMethod:i=`absolute`,className:a,render:o,side:s=`bottom`,align:c=`center`,sideOffset:u=0,alignOffset:d=0,collisionBoundary:f=`clipping-ancestors`,collisionPadding:p,arrowPadding:h=5,sticky:g=!1,disableAnchorTracking:_,alignItemWithTrigger:v=!0,collisionAvoidance:y=he,style:b,...x}=e,{store:S,listRef:C,labelsRef:w,alignItemWithTriggerActiveRef:T,selectedItemTextRef:ee,valuesRef:E,initialValueRef:O,popupRef:k,setValue:j}=Z(),M=it(),P=m(S,$.open),F=m(S,$.mounted),ne=m(S,$.modal),I=m(S,$.value),re=m(S,$.openMethod),L=m(S,$.positionerElement),R=m(S,$.triggerElement),z=m(S,$.isItemEqualToValue),ae=m(S,$.transitionStatus),oe=X.useRef(null),se=X.useRef(null),[ce,le]=X.useState(v),B=F&&ce&&re!==`touch`;!F&&ce!==v&&le(v),K(()=>{F||($.scrollUpArrowVisible(S.state)&&S.set(`scrollUpArrowVisible`,!1),$.scrollDownArrowVisible(S.state)&&S.set(`scrollDownArrowVisible`,!1))},[S,F]),X.useImperativeHandle(T,()=>B),D((B||ne)&&P,re===`touch`,L,R);let V=N({anchor:n,floatingRootContext:M,positionMethod:i,mounted:F,side:s,sideOffset:u,align:c,alignOffset:d,arrowPadding:h,collisionBoundary:f,collisionPadding:p,sticky:g,disableAnchorTracking:_??B,collisionAvoidance:y,keepMounted:!0}),ue=B?`none`:V.side,H=B?Nt:V.positionerStyles,de={open:P,side:ue,align:V.align,anchorHidden:V.anchorHidden};K(()=>{S.set(`popupSide`,V.side)},[S,V.side]);let U=l(e,de,{styles:H,transitionStatus:ae,props:x,refs:[t,_e(e=>{S.set(`positionerElement`,e)})],hidden:!F,inert:!P}),fe=X.useRef(0),pe=_e(e=>{if(e.size===0&&fe.current===0||E.current.length===0)return;let t=fe.current;if(fe.current=e.size,e.size===t)return;let n=ye(te);if(t!==0&&!S.state.multiple&&I!==null&&ct(E.current,I,z)===-1){let e=O.current,t=e!=null&&ct(E.current,e,z)!==-1?e:null;j(t,n),t===null&&(S.set(`selectedIndex`,null),ee.current=null)}if(t!==0&&S.state.multiple&&Array.isArray(I)){let e=e=>ct(E.current,e,z)!==-1,t=I.filter(t=>e(t));(t.length!==I.length||t.some(e=>!st(I,e,z)))&&(j(t,n),t.length===0&&(S.set(`selectedIndex`,null),ee.current=null))}if(P&&B){S.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};jt(L,e),jt(k.current,e)}}),me=X.useMemo(()=>({...V,side:ue,alignItemWithTriggerActive:B,setControlledAlignItemWithTrigger:le,scrollUpArrowRef:oe,scrollDownArrowRef:se}),[V,ue,B,le]);return(0,Q.jsx)(A,{elementsRef:C,labelsRef:w,onMapChange:pe,children:(0,Q.jsxs)(kt.Provider,{value:me,children:[F&&ne&&(0,Q.jsx)(r,{inert:ie(!P),cutout:R}),U]})})}),Ft={...Te,...g},It=X.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,...o}=e,{store:c,popupRef:l,onOpenChangeComplete:u,setOpen:d,valueRef:f,firstItemTextRef:p,selectedItemTextRef:g,multiple:_,handleScrollArrowVisibility:v,scrollHandlerRef:y,listRef:b,highlightItemOnHover:x}=Z(),{side:S,align:C,alignItemWithTriggerActive:w,isPositioned:T,setControlledAlignItemWithTrigger:ee}=At(),E=P(!0)!=null,D=it(),O=Ee(),{nonce:k,disableStyleElements:A}=Oe(),j=m(c,$.id),M=m(c,$.open),te=m(c,$.openMethod),N=m(c,$.mounted),F=m(c,$.popupProps),ne=m(c,$.transitionStatus),I=m(c,$.triggerElement),L=m(c,$.positionerElement),R=m(c,$.listElement),ie=X.useRef(!1),z=X.useRef(!1),ae=X.useRef({}),oe=W(),se=_e(e=>{if(!L||!l.current||!z.current)return;if(ie.current||!w){v();return}let t=L.style.top===`0px`,n=L.style.bottom===`0px`;if(!t&&!n){v();return}let r=zt(L),i=Bt(L.getBoundingClientRect().height,`y`,r),a=De(L),o=re(L),s=o.getComputedStyle(L),c=parseFloat(s.marginTop),u=parseFloat(s.marginBottom),d=Lt(o.getComputedStyle(l.current)),f=Math.min(a.documentElement.clientHeight-c-u,d),p=e.scrollTop,m=Rt(e),h=0,g=null,_=!1,y=!1,b=e=>{L.style.height=`${e}px`},x=(t,n)=>{let r=Pe(t,0,f-i);r>0&&b(i+r),e.scrollTop=n,f-(i+r)<=1&&(ie.current=!0),v()},S=t?m-p:p,C=Math.min(i+S,f);if(h=C,S<=1){x(S,t?m:0);return}if(f-C>1?t?y=!0:g=0:(_=!0,n&&p<m&&(g=p-(S-(i+S-f)))),h=Math.ceil(h),h!==0&&b(h),y||g!=null){let t=Rt(e),n=y?t:Pe(g,0,t);Math.abs(e.scrollTop-n)>1&&(e.scrollTop=n)}(_||h>=f-1)&&(ie.current=!0),v()});X.useImperativeHandle(y,()=>se,[se]),Ke({open:M,ref:l,onComplete(){M&&u?.(!0)}});let ce={open:M,transitionStatus:ne,side:S,align:C};K(()=>{!L||!l.current||Object.keys(ae.current).length||(ae.current={top:L.style.top||`0`,left:L.style.left||`0`,right:L.style.right,height:L.style.height,bottom:L.style.bottom,minHeight:L.style.minHeight,maxHeight:L.style.maxHeight,marginTop:L.style.marginTop,marginBottom:L.style.marginBottom})},[l,L]),K(()=>{M||w||(z.current=!1,ie.current=!1,jt(L,ae.current))},[M,w,L,l]),K(()=>{let e=l.current;if(!M||!I||!L||!e||w&&!T||c.state.transitionStatus===`ending`)return;if(!w){z.current=!0,oe.request(v),e.style.removeProperty(`--transform-origin`);return}let t=Ut(e);e.style.removeProperty(`--transform-origin`);try{let t=g.current;t?.isConnected||(t=!$.hasSelectedValue(c.state)&&p.current?.isConnected?p.current:null);let n=f.current,r=re(L),i=r.getComputedStyle(L),a=r.getComputedStyle(e),o=De(I),s=zt(I),l=Vt(I.getBoundingClientRect(),s),u=Vt(L.getBoundingClientRect(),s),d=l.height,m=R||e,_=m.scrollHeight,y=parseFloat(a.borderBottomWidth),S=parseFloat(i.marginTop)||10,C=parseFloat(i.marginBottom)||10,w=parseFloat(i.minHeight)||100,T=Lt(a),E=o.documentElement.clientHeight-S-C,D=o.documentElement.clientWidth,k=E-l.bottom+d,A,j=O===`rtl`?l.right-u.width:l.left,M=0;if(t&&n){let e=Vt(n.getBoundingClientRect(),s);A=Vt(t.getBoundingClientRect(),s),j=u.left+(O===`rtl`?e.right-A.right:e.left-A.left);let r=e.top-l.top+e.height/2;M=A.top-u.top+A.height/2-r}let te=k+M+C+y,N=Math.min(E,te),P=E-S-C,F=te-N,ne=D-5;L.style.left=`${Pe(j,5,ne-u.width)}px`,L.style.height=`${N}px`,L.style.maxHeight=`none`,L.style.marginTop=`${S}px`,L.style.marginBottom=`${C}px`,e.style.height=`100%`;let oe=Rt(m),se=F>=oe-1;se&&(N=Math.min(E,u.height)-(F-oe));let ce=l.top<20||l.bottom>E-20||Math.ceil(N)+1<Math.min(_,w),le=(r.visualViewport?.scale??1)!==1&&h;if(ce||le){z.current=!0,jt(L,ae.current),ee(!1);return}let B=Math.max(w,N);if(se){let e=Math.max(0,E-te);L.style.top=u.height>=P?`0`:`${e}px`,L.style.height=`${N}px`,m.scrollTop=Rt(m)}else L.style.bottom=`0`,m.scrollTop=F;if(A){let t=u.top,n=u.height,r=A.top+A.height/2,i=Pe(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(`--transform-origin`,`50% ${i}%`)}(B===E||N>=T)&&(ie.current=!0),v(),x&&c.state.selectedIndex===null&&c.state.activeIndex===null&&b.current[0]!=null&&c.set(`activeIndex`,0),z.current=!0}finally{t()}},[c,M,L,I,f,p,g,l,v,w,ee,oe,R,b,x,O,T]),X.useEffect(()=>{if(!w||!L||!M)return;let e=re(L);function t(e){d(!1,ye(we,e))}return xe(e,`resize`,t)},[d,w,L,M]);let le={...R?{role:`presentation`,"aria-orientation":void 0}:{role:`listbox`,"aria-multiselectable":_||void 0,id:`${j}-list`},onKeyDown(e){E&&J.has(e.key)&&e.stopPropagation()},onScroll(e){R||se(e.currentTarget)},...w&&{style:R?{height:`100%`}:Mt}},B=q(`div`,e,{ref:[t,l],state:ce,stateAttributesMapping:Ft,props:[F,le,s(ne),{className:!R&&w?be.className:void 0},o]});return(0,Q.jsxs)(X.Fragment,{children:[!A&&be.getElement(k),(0,Q.jsx)(V,{context:D,modal:!1,disabled:!N,openInteractionType:te,returnFocus:a,restoreFocus:!0,children:B})]})});function Lt(e){let t=e.maxHeight||``;return t.endsWith(`px`)&&parseFloat(t)||1/0}function Rt(e){return me(e.scrollHeight,e.clientHeight)}function zt(e){return S.getScale(e)}function Bt(e,t,n){return e/n[t]}function Vt(e,t){return Me({x:Bt(e.x,`x`,t),y:Bt(e.y,`y`,t),width:Bt(e.width,`x`,t),height:Bt(e.height,`y`,t)})}var Ht=[[`transform`,`none`],[`scale`,`1`],[`translate`,`0 0`]];function Ut(e){let{style:t}=e,n={};for(let[e,r]of Ht)n[e]=t.getPropertyValue(e),t.setProperty(e,r,`important`);return()=>{for(let[e]of Ht){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}var Wt=X.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o,scrollHandlerRef:s}=Z(),{alignItemWithTriggerActive:c}=At(),l=m(o,$.hasScrollArrows),u=m(o,$.openMethod),d=m(o,$.multiple),f={id:`${m(o,$.id)}-list`,role:`listbox`,"aria-multiselectable":d||void 0,onScroll(e){s.current?.(e.currentTarget)},...c&&{style:Mt},className:l&&u!==`touch`?be.className:void 0};return q(`div`,e,{ref:[t,_e(e=>{o.set(`listElement`,e)})],props:[f,a]})}),Gt=X.createContext(void 0);function Kt(){let e=X.useContext(Gt);if(!e)throw Error(w(57));return e}var qt=X.memo(X.forwardRef(function(e,t){let{render:n,className:r,style:i,value:a=null,label:o,disabled:s=!1,nativeButton:l=!1,...d}=e,f=X.useRef(null),p=_({label:o,textRef:f,indexGuessBehavior:u.GuessFromOrder}),{store:h,itemProps:g,setOpen:v,setValue:y,selectionRef:b,typingRef:x,valuesRef:S,multiple:C,selectedItemTextRef:w,disabled:T,readOnly:ee}=Z(),E=m(h,$.isActive,p.index),D=m(h,$.open),O=m(h,$.isSelected,a),k=m(h,$.isSelectedByFocus,p.index),A=m(h,$.isItemEqualToValue),j=p.index,M=j!==-1,te=X.useRef(null);K(()=>{if(!M)return;let e=S.current;return e[j]=a,()=>{delete e[j]}},[M,j,a,S]),K(()=>{if(!M)return;let e=h.state.value,t=e;C&&Array.isArray(e)&&(t=e.length>0?e[e.length-1]:void 0),t!==void 0&&ot(a,t,A)&&(h.set(`selectedIndex`,j),f.current&&(w.current=f.current))},[M,j,C,A,h,a,w]);let N=X.useRef(null),P=X.useRef(`mouse`),F=X.useRef(!1),{getButtonProps:ne,buttonRef:I}=Se({disabled:s,focusableWhenDisabled:!0,native:l,composite:!0}),re={disabled:s,selected:O,highlighted:E};function L(e){if(T||ee)return;let t=h.state.value;if(C){let n=Array.isArray(t)?t:[],r=O?lt(n,a,A):[...n,a];y(r,ye(c,e))}else y(a,ye(c,e)),v(!1,ye(c,e))}function R(){b.current.dragY=0}let ie={role:`option`,"aria-selected":O,tabIndex:D&&E?0:-1,onKeyDown(e){N.current=e.key,h.set(`activeIndex`,j),e.key===` `&&x.current&&e.preventDefault()},onClick(e){let t=e.type===`click`&&P.current!==`touch`,n=e.nativeEvent.pointerType,r=t&&Ge(e.nativeEvent)&&(n!==void 0||E),i=t&&!r&&!F.current;F.current=!1,!(e.type===`keydown`&&N.current===null)&&(s||e.type===`keydown`&&N.current===` `&&x.current||i||(N.current=null,L(e.nativeEvent)))},onPointerEnter(e){P.current=e.pointerType},onPointerMove(e){if(e.pointerType===`mouse`&&e.buttons===1){let t=b.current;t.dragY+=e.movementY,t.dragY**2>=64&&(t.allowUnselectedMouseUp=!0)}},onPointerDown(e){P.current=e.pointerType,F.current=!0,R()},onMouseUp(){if(R(),s||P.current===`touch`||F.current)return;let e=!b.current.allowSelectedMouseUp&&O,t=!b.current.allowUnselectedMouseUp&&!O;e||t||(F.current=!0,te.current?.click(),F.current=!1)}},z=q(`div`,e,{ref:[I,t,p.ref,te],state:re,props:[g,ie,d,ne]}),ae=X.useMemo(()=>({selected:O,index:j,textRef:f,selectedByFocus:k,hasRegistered:M}),[O,j,f,k,M]);return(0,Q.jsx)(Gt.Provider,{value:ae,children:z})})),Jt=X.forwardRef(function(e,t){let n=e.keepMounted??!1,{selected:r}=Kt();return n||r?(0,Q.jsx)(Yt,{...e,ref:t}):null}),Yt=X.memo(X.forwardRef((e,t)=>{let{render:n,className:r,style:i,keepMounted:a,...o}=e,{selected:s}=Kt(),c=X.useRef(null),{transitionStatus:l,setMounted:u}=z(s),d=q(`span`,e,{ref:[t,c],state:{selected:s,transitionStatus:l},props:[{"aria-hidden":!0,children:`✔️`},o],stateAttributesMapping:g});return Ke({open:s,ref:c,onComplete(){s||u(!1)}}),d})),Xt=X.memo(X.forwardRef(function(e,t){let{index:n,textRef:r,selectedByFocus:i,hasRegistered:a}=Kt(),{firstItemTextRef:o,selectedItemTextRef:s}=Z(),{render:c,className:l,style:u,...d}=e;return q(`div`,e,{ref:[X.useCallback(e=>{e&&(a&&n===0&&(o.current=e),a&&i&&(s.current=e))},[o,s,n,i,a]),t,r],props:d})})),Zt=X.forwardRef(function(e,t){let{render:n,className:r,style:i,direction:a,keepMounted:o=!1,...s}=e,c=a===`up`,{store:l,popupRef:u,listRef:d,handleScrollArrowVisibility:f,scrollArrowsMountedCountRef:h}=Z(),{side:_,scrollDownArrowRef:v,scrollUpArrowRef:y}=At(),b=m(l,c?$.scrollUpArrowVisible:$.scrollDownArrowVisible),x=m(l,$.openMethod),S=b&&x!==`touch`,C=p(),w=c?y:v,{mounted:T,transitionStatus:ee,setMounted:E}=z(S);K(()=>(h.current+=1,l.state.hasScrollArrows||l.set(`hasScrollArrows`,!0),()=>{h.current=Math.max(0,h.current-1),h.current===0&&l.state.hasScrollArrows&&l.set(`hasScrollArrows`,!1)}),[l,h]),Ke({open:S,ref:w,onComplete(){S||E(!1)}});let D=q(`div`,e,{ref:[t,w],state:{direction:a,visible:S,side:_,transitionStatus:ee},props:[{"aria-hidden":!0,children:c?`▲`:`▼`,style:{position:`absolute`},onMouseMove(e){if(e.movementX===0&&e.movementY===0||C.isStarted())return;l.set(`activeIndex`,null);function t(){let e=l.state.listElement??u.current;if(!e)return;l.set(`activeIndex`,null),f();let n=me(e.scrollHeight,e.clientHeight),r=ge(e.scrollTop,n),i=r===(c?0:n),a=d.current;if(r!==e.scrollTop&&(e.scrollTop=r),a.length===0&&l.set(c?`scrollUpArrowVisible`:`scrollDownArrowVisible`,!i),i){C.clear();return}if(a.length>0){let t=w.current?.offsetHeight||0;e.scrollTop=Qt(a,c,r,e.clientHeight,t,n)}C.start(40,t)}C.start(40,t)},onMouseLeave(){C.clear()}},s],stateAttributesMapping:g});return T||o?D:null});function Qt(e,t,n,r,i,a){if(t){let t=0,r=n+i-1;for(let n=0;n<e.length;n+=1){let i=e[n];if(i&&i.offsetTop>=r){t=n;break}}let o=Math.max(0,t-1),s=e[o];return o<t&&s?ge(s.offsetTop-i,a):0}let o=e.length-1,s=n+r-i+1;for(let t=0;t<e.length;t+=1){let n=e[t];if(n&&n.offsetTop+n.offsetHeight>s){o=Math.max(0,t-1);break}}let c=Math.min(e.length-1,o+1),l=e[c];return c>o&&l?ge(l.offsetTop+l.offsetHeight-r+i,a):a}var $t=X.forwardRef(function(e,t){return(0,Q.jsx)(Zt,{...e,ref:t,direction:`down`})}),en=X.forwardRef(function(e,t){return(0,Q.jsx)(Zt,{...e,ref:t,direction:`up`})}),tn=vt;function nn({className:e,...t}){return(0,Q.jsx)(Tt,{"data-slot":`select-value`,className:Y(`flex flex-1 text-left`,e),...t})}function rn({className:e,size:t=`default`,children:n,...r}){return(0,Q.jsxs)(Ct,{"data-slot":`select-trigger`,"data-size":t,className:Y(`flex w-fit cursor-pointer items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...r,children:[n,(0,Q.jsx)(Et,{render:(0,Q.jsx)(Je,{className:`pointer-events-none size-4 text-muted-foreground`})})]})}function an({className:e,children:t,side:n=`bottom`,sideOffset:r=4,align:i=`center`,alignOffset:a=0,alignItemWithTrigger:o=!0,...s}){return(0,Q.jsx)(Ot,{children:(0,Q.jsx)(Pt,{side:n,sideOffset:r,align:i,alignOffset:a,alignItemWithTrigger:o,className:`isolate z-50`,children:(0,Q.jsxs)(It,{"data-slot":`select-content`,"data-align-trigger":o,className:Y(`relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 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`,e),...s,children:[(0,Q.jsx)(sn,{}),(0,Q.jsx)(Wt,{children:t}),(0,Q.jsx)(cn,{})]})})})}function on({className:e,children:t,...n}){return(0,Q.jsxs)(qt,{"data-slot":`select-item`,className:Y(`relative flex w-full cursor-pointer items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),...n,children:[(0,Q.jsx)(Xt,{className:`flex flex-1 shrink-0 gap-2 whitespace-nowrap`,children:t}),(0,Q.jsx)(Jt,{render:(0,Q.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex size-4 items-center justify-center`}),children:(0,Q.jsx)(Ue,{className:`pointer-events-none`})})]})}function sn({className:e,...t}){return(0,Q.jsx)(en,{"data-slot":`select-scroll-up-button`,className:Y(`top-0 z-10 flex w-full cursor-pointer items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4`,e),...t,children:(0,Q.jsx)(Ye,{})})}function cn({className:e,...t}){return(0,Q.jsx)($t,{"data-slot":`select-scroll-down-button`,className:Y(`bottom-0 z-10 flex w-full cursor-pointer items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4`,e),...t,children:(0,Q.jsx)(Je,{})})}function ln(e){return Ne(e,X.useContext(Be)?`drawer`:`dialog`)}function un({...e}){return(0,Q.jsx)(ln,{"data-slot":`dialog`,...e})}function dn({...e}){return(0,Q.jsx)(et,{"data-slot":`dialog-trigger`,...e})}function fn({...e}){return(0,Q.jsx)(ne,{"data-slot":`dialog-portal`,...e})}function pn({className:e,...t}){return(0,Q.jsx)(H,{"data-slot":`dialog-overlay`,className:Y(`fixed inset-0 isolate z-50 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`,e),...t})}function mn({className:e,children:t,showCloseButton:n=!0,...r}){return(0,Q.jsxs)(fn,{children:[(0,Q.jsx)(pn,{}),(0,Q.jsxs)(G,{"data-slot":`dialog-content`,className:Y(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-background p-4 text-sm ring-1 ring-foreground/10 duration-100 outline-none 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`,e),...r,children:[t,n&&(0,Q.jsxs)(Re,{"data-slot":`dialog-close`,render:(0,Q.jsx)(C,{variant:`ghost`,className:`absolute top-2 right-2`,size:`icon-sm`}),children:[(0,Q.jsx)($e,{}),(0,Q.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function hn({className:e,...t}){return(0,Q.jsx)(`div`,{"data-slot":`dialog-header`,className:Y(`flex flex-col gap-2`,e),...t})}function gn({className:e,showCloseButton:t=!1,children:n,...r}){return(0,Q.jsxs)(`div`,{"data-slot":`dialog-footer`,className:Y(`-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end`,e),...r,children:[n,t&&(0,Q.jsx)(Re,{render:(0,Q.jsx)(C,{variant:`outline`}),children:`Close`})]})}function _n({className:e,...t}){return(0,Q.jsx)(B,{"data-slot":`dialog-title`,className:Y(`text-base leading-none font-medium`,e),...t})}function vn({className:e,...t}){return(0,Q.jsx)(je,{"data-slot":`dialog-description`,className:Y(`text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,e),...t})}function yn({className:e,...t}){return(0,Q.jsx)(`textarea`,{"data-slot":`textarea`,className:Y(`flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-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`,e),...t})}function bn({className:e,...t}){return(0,Q.jsx)(`div`,{"data-slot":`input-group`,role:`group`,className:Y(`group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5`,e),...t})}var xn=Ie(`flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4`,{variants:{align:{"inline-start":`order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]`,"inline-end":`order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]`,"block-start":`order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2`,"block-end":`order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2`}},defaultVariants:{align:`inline-start`}});function Sn({className:e,align:t=`inline-start`,...n}){return(0,Q.jsx)(`div`,{role:`group`,"data-slot":`input-group-addon`,"data-align":t,className:Y(xn({align:t}),e),onClick:e=>{e.target.closest(`button`)||e.currentTarget.parentElement?.querySelector(`input`)?.focus()},...n})}var Cn=Ie(`flex items-center gap-2 text-sm shadow-none`,{variants:{size:{xs:`h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5`,sm:``,"icon-xs":`size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0`,"icon-sm":`size-8 p-0 has-[>svg]:p-0`}},defaultVariants:{size:`xs`}});function wn({className:e,type:t=`button`,variant:n=`ghost`,size:r=`xs`,...i}){return(0,Q.jsx)(C,{type:t,"data-size":r,variant:n,className:Y(Cn({size:r}),e),...i})}function Tn({className:e,...t}){return(0,Q.jsx)(ve,{"data-slot":`input-group-control`,className:Y(`flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent`,e),...t})}function En({className:e,...t}){return(0,Q.jsx)(yn,{"data-slot":`input-group-control`,className:Y(`flex-1 resize-none rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent`,e),...t})}function Dn({className:e,...t}){return(0,Q.jsx)(`label`,{"data-slot":`label`,className:Y(`flex items-center gap-2 text-base leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,e),...t})}export{st as A,dt as C,at as D,ot as E,Je as F,Qe as M,Ze as N,ct as O,Xe as P,ft as S,mt as T,on as _,Tn as a,yt as b,un as c,gn as d,hn as f,an as g,tn as h,wn as i,$e as j,lt as k,mn as l,dn as m,bn as n,En as o,_n as p,Sn as r,yn as s,Dn as t,vn as u,rn as v,pt as w,_t as x,nn as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e}from"./chunk-BO2N2NFS-DJS94hax.js";export{e as Mermaid};
|