@lacneu/atrium 0.103.3 → 0.103.4
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/dist/assets/{AccessTab-DIDDsgPT.js → AccessTab-DmfPezpr.js} +1 -1
- package/dist/assets/{AdminSettings-RN5-vhFB.js → AdminSettings-DJrTOlAw.js} +1 -1
- package/dist/assets/{AdvancedFilter-D14bDnZM.js → AdvancedFilter-D4ja71eC.js} +1 -1
- package/dist/assets/{AgentFilesTab-CzlG0CZI.js → AgentFilesTab-DsXOfdpT.js} +1 -1
- package/dist/assets/{AnomaliesTab-DI6_13hV.js → AnomaliesTab-B1KVrvF9.js} +1 -1
- package/dist/assets/{AuditTab-CtudlEKL.js → AuditTab-BsxWGDzT.js} +1 -1
- package/dist/assets/{BridgeTab-D7vwrcIC.js → BridgeTab-CBhC6xPF.js} +1 -1
- package/dist/assets/{ChatDefaultsTab-C29wKwC9.js → ChatDefaultsTab-D84PkwGg.js} +1 -1
- package/dist/assets/{ConfirmDialog-DUn2vS3y.js → ConfirmDialog-BTkA9EEC.js} +1 -1
- package/dist/assets/{DataTableShell-DlkJe0in.js → DataTableShell-PyJIukLO.js} +1 -1
- package/dist/assets/{DeletedChatsTab-fwnKocED.js → DeletedChatsTab-CGzdG-VS.js} +1 -1
- package/dist/assets/{DetailChips-CYx7WQ4_.js → DetailChips-DJDPdjC6.js} +1 -1
- package/dist/assets/{EntitySheet-BHlTwSgy.js → EntitySheet-DZaO__IZ.js} +1 -1
- package/dist/assets/{FeedbacksTab-B6yZLeCu.js → FeedbacksTab-C56lOjnO.js} +1 -1
- package/dist/assets/{FieldLabel-rU6Ua6ki.js → FieldLabel-BW2ofPSg.js} +1 -1
- package/dist/assets/{FilesTab-CX2DlSAl.js → FilesTab-Bo8GHHoP.js} +1 -1
- package/dist/assets/{FilterBar-1CED41DE.js → FilterBar-vkX3BGGz.js} +1 -1
- package/dist/assets/{GroupsTab-XqYgSNbn.js → GroupsTab-UPA0jBCI.js} +1 -1
- package/dist/assets/{InstancesTab-k_xDuLN5.js → InstancesTab-Cz8ZV2Yl.js} +1 -1
- package/dist/assets/{IntegrationsTab-wQIr0NRQ.js → IntegrationsTab-DLf771n0.js} +1 -1
- package/dist/assets/{KnobRow-GQ-yjRd-.js → KnobRow-NCREweI3.js} +1 -1
- package/dist/assets/{KpiTab-Bqw-Ktyf.js → KpiTab-CKvYVEzA.js} +1 -1
- package/dist/assets/{PreferencesTab-B3IgHTIx.js → PreferencesTab-CCwKgY4H.js} +1 -1
- package/dist/assets/{ProjectPage-3f1bBxNm.js → ProjectPage-CVFZP9wJ.js} +1 -1
- package/dist/assets/{PromptInjectionsTab-C_NJLRVi.js → PromptInjectionsTab-BVyjgCHZ.js} +1 -1
- package/dist/assets/{RolesTab-BH7cwUSl.js → RolesTab-D2iPXBrM.js} +1 -1
- package/dist/assets/{ScheduledTab-DEPYdnlj.js → ScheduledTab-Cl9WgL-w.js} +1 -1
- package/dist/assets/{ServiceAccountsTab-BW_IZtpv.js → ServiceAccountsTab-B0XVQpdC.js} +1 -1
- package/dist/assets/{SubAgentReportsTab-tnmtmSGh.js → SubAgentReportsTab-xU0OVWGk.js} +1 -1
- package/dist/assets/{ThemeShowroom-CXAiw6jt.js → ThemeShowroom-D_wDwAQt.js} +1 -1
- package/dist/assets/{TimeRangePicker-DGRmfXqe.js → TimeRangePicker-B3Jl2mvx.js} +1 -1
- package/dist/assets/{TimezoneCombobox-DAhFeIgd.js → TimezoneCombobox-CWbHKOiS.js} +1 -1
- package/dist/assets/{TracesTab-peFnZ-Tw.js → TracesTab-DOy5oUHa.js} +1 -1
- package/dist/assets/{TrashTab-Hd_LRcrR.js → TrashTab-DFi1o7_K.js} +1 -1
- package/dist/assets/{UsersTab-CYiw3R0P.js → UsersTab-CIC9NMtm.js} +1 -1
- package/dist/assets/{VoiceTab-BIJNy57E.js → VoiceTab-DD0Y1Cqz.js} +1 -1
- package/dist/assets/{alert-dialog-BdTFPzVf.js → alert-dialog-D8JROLng.js} +1 -1
- package/dist/assets/{api-DNOgniXv.js → api-C9TZ4xjz.js} +1 -1
- package/dist/assets/{badge-D7TV9F5d.js → badge-UrSDbO1c.js} +1 -1
- package/dist/assets/{button-2XjWVeWK.js → button-DEKA-XdT.js} +1 -1
- package/dist/assets/{card-CB4fBpkx.js → card-CoPKGkaG.js} +1 -1
- package/dist/assets/check-DLsNvgAq.js +1 -0
- package/dist/assets/{checkbox-kFoJxcMJ.js → checkbox-Bbl8iiIs.js} +1 -1
- package/dist/assets/chevron-left-PEVM2kG9.js +1 -0
- package/dist/assets/chevron-right-DrdFABbO.js +1 -0
- package/dist/assets/chevron-up-DpsXK7Un.js +1 -0
- package/dist/assets/chevrons-up-down-roy0B5KU.js +1 -0
- package/dist/assets/{compatView-BsJMEfMH.js → compatView-DCGywg8d.js} +1 -1
- package/dist/assets/convexApi-D2VdPGGW.js +1 -0
- package/dist/assets/{copy-uA2kyeTq.js → copy-BzGjJBzv.js} +1 -1
- package/dist/assets/{cronDescribe-CWrWu4NY.js → cronDescribe-BP6ZrZEc.js} +1 -1
- package/dist/assets/{deliveryRecorder-D2L37goZ.js → deliveryRecorder-B3Trh8JA.js} +1 -1
- package/dist/assets/{dialog-Cw-buQuR.js → dialog-CHpclz_0.js} +1 -1
- package/dist/assets/{dispatchErrorInfo-rA4PAW2w.js → dispatchErrorInfo-B-CAt7GQ.js} +1 -1
- package/dist/assets/{dist-s7OhF_Fl.js → dist-B12lxLhp.js} +1 -1
- package/dist/assets/{dist-BuPfsZqj.js → dist-BwFz2rDM.js} +1 -1
- package/dist/assets/{dist-yuq8NbqZ.js → dist-CMQ8ZmbJ.js} +1 -1
- package/dist/assets/{dist-whjwthuB.js → dist-CQTmJUEo.js} +1 -1
- package/dist/assets/{dist-CjNu_N10.js → dist-CT8KFZnw.js} +1 -1
- package/dist/assets/{dist-vqdeesMI.js → dist-Col6E8px.js} +1 -1
- package/dist/assets/{download-7V52FIS0.js → download-C_249zkC.js} +1 -1
- package/dist/assets/{dropdown-menu-BaUA_yBi.js → dropdown-menu-DhetHpBb.js} +1 -1
- package/dist/assets/{eye-Dj_nvUMH.js → eye-0fRXv2uN.js} +1 -1
- package/dist/assets/{format-Dmvblmga.js → format-CE4Tb-R7.js} +1 -1
- package/dist/assets/{groupManageView-B0Fd_T1s.js → groupManageView-9KcuSXgR.js} +1 -1
- package/dist/assets/{index-C5sCqQtj.js → index-DT3YA902.js} +21 -21
- package/dist/assets/{input-BOl1ZpD6.js → input-BW0GOs_g.js} +1 -1
- package/dist/assets/{list-CgDCvRps.js → list-DJaWqeCP.js} +1 -1
- package/dist/assets/loader-circle-D_v0YERy.js +1 -0
- package/dist/assets/{lock-BlAOODxr.js → lock-Cai4iWP-.js} +1 -1
- package/dist/assets/{pencil-C9Bd090l.js → pencil-DPtIvpHp.js} +1 -1
- package/dist/assets/plus-DYL_4aqG.js +1 -0
- package/dist/assets/{popover-BHbAt2S-.js → popover-rh1_TqjX.js} +1 -1
- package/dist/assets/roleDescriptions-heGPDkTY.js +1 -0
- package/dist/assets/rotate-ccw-Bs40VcST.js +1 -0
- package/dist/assets/{search-CU2PGfXc.js → search-B-R9kd8o.js} +1 -1
- package/dist/assets/{select-CYo6IZR2.js → select-CeQpPnet.js} +1 -1
- package/dist/assets/{server-BJJ3cVit.js → server-D8sEPnaP.js} +1 -1
- package/dist/assets/{speech-DCWd2QRW.js → speech-C9rnmV3n.js} +1 -1
- package/dist/assets/{star-DBwak3-9.js → star-DgW-1Cj9.js} +1 -1
- package/dist/assets/{switch-B0io8PF7.js → switch-BZom6_SV.js} +1 -1
- package/dist/assets/{table-C6NnEhxy.js → table-CGUWJWZI.js} +1 -1
- package/dist/assets/{tabs-DiirWTCN.js → tabs-xefd1SeB.js} +1 -1
- package/dist/assets/{toast-DN6P_at0.js → toast-pKIYRpST.js} +1 -1
- package/dist/assets/{tooltip-6h3mm-V5.js → tooltip-B27138uH.js} +1 -1
- package/dist/assets/{trash-2-BmifkPwA.js → trash-2-B3-1X1oZ.js} +1 -1
- package/dist/assets/{trashPage-DsBekB4q.js → trashPage-BNLG_tTi.js} +1 -1
- package/dist/assets/{trashView-Cd0pvgnM.js → trashView-CcPdpr1y.js} +1 -1
- package/dist/assets/{triangle-alert-DjNOW8SM.js → triangle-alert-uaH9SXmM.js} +1 -1
- package/dist/assets/{usageView-DsAOFF89.js → usageView-DIbIuJOR.js} +1 -1
- package/dist/assets/{useChart-CvUnULHg.js → useChart-DLAE1JpY.js} +1 -1
- package/dist/assets/{useFontScale-T-slFQPF.js → useFontScale-CWLfjbAm.js} +1 -1
- package/dist/assets/{useStartNewChat-Bg4hLp3d.js → useStartNewChat-BxlZDRnF.js} +1 -1
- package/dist/assets/{use_paginated_query-CrHKVq5I.js → use_paginated_query-DVbu_Fe7.js} +1 -1
- package/dist/assets/{users-4cOOjyOf.js → users-BUeuEf6k.js} +1 -1
- package/dist/assets/x-E03nFsG9.js +1 -0
- package/dist/index.html +54 -54
- package/package.json +1 -1
- package/dist/assets/check-ByAmVIRT.js +0 -1
- package/dist/assets/chevron-left-SzhbAbEJ.js +0 -1
- package/dist/assets/chevron-right-9DjIYDNR.js +0 -1
- package/dist/assets/chevron-up-uykFYjFv.js +0 -1
- package/dist/assets/chevrons-up-down-C45M3ZYP.js +0 -1
- package/dist/assets/convexApi-4XI9Ua6G.js +0 -1
- package/dist/assets/loader-circle-D-oC88g9.js +0 -1
- package/dist/assets/plus-1T1-a2EN.js +0 -1
- package/dist/assets/roleDescriptions-DIDUvLuU.js +0 -1
- package/dist/assets/rotate-ccw-WHZ3xMbc.js +0 -1
- package/dist/assets/x-xmpoCnTJ.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,r as t}from"./bundle-mjs-C73ZY4La.js";import{r as n}from"./api-
|
|
1
|
+
import{a as e,r as t}from"./bundle-mjs-C73ZY4La.js";import{r as n}from"./api-C9TZ4xjz.js";e();var r=t();function i({className:e,type:t,...i}){return(0,r.jsx)(`input`,{type:t,"data-slot":`input`,className:n(`h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none 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),...i})}export{i as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as e}from"./api-
|
|
1
|
+
import{E as e}from"./api-C9TZ4xjz.js";var t=e(`list`,[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]);export{t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{E as e}from"./api-C9TZ4xjz.js";var t=e(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]);export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as e}from"./api-
|
|
1
|
+
import{E as e}from"./api-C9TZ4xjz.js";var t=e(`lock`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]);export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as e}from"./api-
|
|
1
|
+
import{E as e}from"./api-C9TZ4xjz.js";var t=e(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]);export{t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{E as e}from"./api-C9TZ4xjz.js";var t=e(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]);export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,r as t}from"./bundle-mjs-C73ZY4La.js";import{r as n}from"./api-
|
|
1
|
+
import{a as e,r as t}from"./bundle-mjs-C73ZY4La.js";import{r as n}from"./api-C9TZ4xjz.js";import{i as r,n as i,r as a,t as o}from"./dist-BwFz2rDM.js";e();var s=t();function c({...e}){return(0,s.jsx)(a,{"data-slot":`popover`,...e})}function l({...e}){return(0,s.jsx)(r,{"data-slot":`popover-trigger`,...e})}function u({className:e,align:t=`center`,sideOffset:r=4,...a}){return(0,s.jsx)(i,{children:(0,s.jsx)(o,{"data-slot":`popover-content`,align:t,sideOffset:r,className:n(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-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 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden`,e),...a})})}export{u as n,l as r,c as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DP as e,EP as t,OP as n,TP as r,wP as i}from"./api-C9TZ4xjz.js";var a={pending:n,user:e,admin:t,observer:r,agent:i};function o(e){if(e.builtin){let t=a[e.key];if(t)return t()}return e.description}export{o as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{E as e}from"./api-C9TZ4xjz.js";var t=e(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]);export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as e}from"./api-
|
|
1
|
+
import{E as e}from"./api-C9TZ4xjz.js";var t=e(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),n=e(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]);export{t as n,n as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,i as t,l as n,r}from"./bundle-mjs-C73ZY4La.js";import{S as i,T as a,_ as o,a as s,c,d as l,f as u,h as d,i as f,l as p,o as m,p as h,r as g,s as _,u as v,v as y,y as b}from"./api-DNOgniXv.js";import{t as x}from"./check-ByAmVIRT.js";import{n as S,r as C,t as w}from"./dist-vqdeesMI.js";import{t as T}from"./chevron-up-uykFYjFv.js";import{t as E}from"./dist-DDCmobc1.js";import{a as D,i as O,n as k,r as A,t as j}from"./dist-yuq8NbqZ.js";var M=n(t(),1),N=n(e(),1),P=r(),F=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),I=`VisuallyHidden`,L=N.forwardRef((e,t)=>(0,P.jsx)(b.span,{...e,ref:t,style:{...F,...e.style}}));L.displayName=I;var R=L;function z(e,[t,n]){return Math.min(n,Math.max(t,e))}var B=[` `,`Enter`,`ArrowUp`,`ArrowDown`],V=[` `,`Enter`],H=`Select`,[U,W,G]=S(H),[K,ee]=d(H,[G,D]),q=D(),[te,J]=K(H),[ne,re]=K(H),ie=`SelectProvider`;function ae(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:d,autoComplete:f,disabled:p,required:m,form:h,internal_do_not_use_render:g}=e,_=q(t),[y,b]=N.useState(null),[x,S]=N.useState(null),[C,T]=N.useState(!1),E=w(l),[D,k]=u({prop:r,defaultProp:i??!1,onChange:a,caller:H}),[A,j]=u({prop:o,defaultProp:s,onChange:c,caller:H}),M=N.useRef(null),F=!y||!!h||!!y.closest(`form`),[I,L]=N.useState(new Set),R=v(),z=Array.from(I).map(e=>e.props.value).join(`;`),B=N.useCallback(e=>{L(t=>new Set(t).add(e))},[]),V=N.useCallback(e=>{L(t=>{let n=new Set(t);return n.delete(e),n})},[]),W={required:m,trigger:y,onTriggerChange:b,valueNode:x,onValueNodeChange:S,valueNodeHasChildren:C,onValueNodeHasChildrenChange:T,contentId:R,value:A,onValueChange:j,open:D,onOpenChange:k,dir:E,triggerPointerDownPosRef:M,disabled:p,name:d,autoComplete:f,form:h,nativeOptions:I,nativeSelectKey:z,isFormControl:F};return(0,P.jsx)(O,{..._,children:(0,P.jsx)(te,{scope:t,...W,children:(0,P.jsx)(U.Provider,{scope:t,children:(0,P.jsx)(ne,{scope:t,onNativeOptionAdd:B,onNativeOptionRemove:V,children:et(g)?g(W):n})})})})}ae.displayName=ie;var oe=e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,P.jsx)(ae,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,P.jsxs)(P.Fragment,{children:[n,e?(0,P.jsx)($e,{__scopeSelect:t}):null]})})};oe.displayName=H;var se=`SelectTrigger`,ce=N.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...i}=e,o=q(n),s=J(se,n),c=s.disabled||r,l=a(t,s.onTriggerChange),u=W(n),d=N.useRef(`touch`),[f,p,m]=nt(e=>{let t=u().filter(e=>!e.disabled),n=rt(t,e,t.find(e=>e.value===s.value));n!==void 0&&s.onValueChange(n.value)}),h=e=>{c||(s.onOpenChange(!0),m()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,P.jsx)(j,{asChild:!0,...o,children:(0,P.jsx)(b.button,{type:`button`,role:`combobox`,"aria-controls":s.open?s.contentId:void 0,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":`none`,dir:s.dir,"data-state":s.open?`open`:`closed`,disabled:c,"data-disabled":c?``:void 0,"data-placeholder":tt(s.value)?``:void 0,...i,ref:l,onClick:y(i.onClick,e=>{e.currentTarget.focus(),d.current!==`mouse`&&h(e)}),onPointerDown:y(i.onPointerDown,e=>{d.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(h(e),e.preventDefault())}),onKeyDown:y(i.onKeyDown,e=>{let t=f.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&p(e.key),!(t&&e.key===` `)&&B.includes(e.key)&&(h(),e.preventDefault())})})})});ce.displayName=se;var le=`SelectValue`,ue=N.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,children:o,placeholder:s=``,...c}=e,l=J(le,n),{onValueNodeHasChildrenChange:u}=l,d=o!==void 0,f=a(t,l.onValueNodeChange);h(()=>{u(d)},[u,d]);let p=tt(l.value);return(0,P.jsx)(b.span,{...c,asChild:!p&&c.asChild,ref:f,style:{pointerEvents:`none`},children:(0,P.jsx)(N.Fragment,{children:p?s:o},p?`placeholder`:`value`)})});ue.displayName=le;var de=`SelectIcon`,fe=N.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...i}=e;return(0,P.jsx)(b.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})});fe.displayName=de;var pe=`SelectPortal`,[me,he]=K(pe,{forceMount:void 0}),ge=e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,P.jsx)(me,{scope:e.__scopeSelect,forceMount:n,children:(0,P.jsx)(_,{asChild:!0,...r})})};ge.displayName=pe;var Y=`SelectContent`,_e=N.forwardRef((e,t)=>{let n=he(Y,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,a=J(Y,e.__scopeSelect),[o,s]=N.useState();return h(()=>{s(new DocumentFragment)},[]),(0,P.jsx)(l,{present:r||a.open,children:({present:e})=>e?(0,P.jsx)(Se,{...i,ref:t}):(0,P.jsx)(ve,{...i,fragment:o})})});_e.displayName=Y;var ve=N.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,fragment:i}=e;return i?M.createPortal((0,P.jsx)(ye,{scope:n,children:(0,P.jsx)(U.Slot,{scope:n,children:(0,P.jsx)(`div`,{ref:t,children:r})})}),i):null});ve.displayName=`SelectContentFragment`;var X=10,[ye,Z]=K(Y),be=`SelectContentImpl`,xe=i(`SelectContent.RemoveScroll`),Se=N.forwardRef((e,t)=>{let{__scopeSelect:n}=e,{position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:l,side:u,sideOffset:d,align:h,alignOffset:g,arrowPadding:_,collisionBoundary:v,collisionPadding:b,sticky:x,hideWhenDetached:S,avoidCollisions:C,...w}=e,T=J(Y,n),[E,D]=N.useState(null),[O,k]=N.useState(null),A=a(t,e=>D(e)),[j,M]=N.useState(null),[F,I]=N.useState(null),L=W(n),[R,z]=N.useState(!1),B=N.useRef(!1);N.useEffect(()=>{if(E)return f(E)},[E]),m();let V=N.useCallback(e=>{let[t,...n]=L().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&O&&(O.scrollTop=0),n===r&&O&&(O.scrollTop=O.scrollHeight),n?.focus(),document.activeElement!==i))return},[L,O]),H=N.useCallback(()=>V([j,E]),[V,j,E]);N.useEffect(()=>{R&&H()},[R,H]);let{onOpenChange:U,triggerPointerDownPosRef:G}=T;N.useEffect(()=>{if(E){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(G.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(G.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(E)||U(!1),document.removeEventListener(`pointermove`,t),G.current=null};return G.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[E,U,G]),N.useEffect(()=>{let e=()=>U(!1);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[U]);let[K,ee]=nt(e=>{let t=L().filter(e=>!e.disabled),n=rt(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current.focus())}),q=N.useCallback((e,t,n)=>{let r=!B.current&&!n;(T.value!==void 0&&T.value===t||r)&&(M(e),r&&(B.current=!0))},[T.value]),te=N.useCallback(()=>E?.focus(),[E]),ne=N.useCallback((e,t,n)=>{let r=!B.current&&!n;(T.value!==void 0&&T.value===t||r)&&I(e)},[T.value]),re=r===`popper`?Ee:we,ie=re===Ee?{side:u,sideOffset:d,align:h,alignOffset:g,arrowPadding:_,collisionBoundary:v,collisionPadding:b,sticky:x,hideWhenDetached:S,avoidCollisions:C}:{};return(0,P.jsx)(ye,{scope:n,content:E,viewport:O,onViewportChange:k,itemRefCallback:q,selectedItem:j,onItemLeave:te,itemTextRefCallback:ne,focusSelectedItem:H,selectedItemText:F,position:r,isPositioned:R,searchRef:K,children:(0,P.jsx)(s,{as:xe,allowPinchZoom:!0,children:(0,P.jsx)(c,{asChild:!0,trapped:T.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:y(i,e=>{T.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,P.jsx)(p,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:(0,P.jsx)(re,{role:`listbox`,id:T.contentId,"data-state":T.open?`open`:`closed`,dir:T.dir,onContextMenu:e=>e.preventDefault(),...w,...ie,onPlaced:()=>z(!0),ref:A,style:{display:`flex`,flexDirection:`column`,outline:`none`,...w.style},onKeyDown:y(w.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&ee(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=L().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>V(t)),e.preventDefault()}})})})})})})});Se.displayName=be;var Ce=`SelectItemAlignedPosition`,we=N.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...i}=e,o=J(Y,n),s=Z(Y,n),[c,l]=N.useState(null),[u,d]=N.useState(null),f=a(t,e=>d(e)),p=W(n),m=N.useRef(!1),g=N.useRef(!0),{viewport:_,selectedItem:v,selectedItemText:y,focusSelectedItem:x}=s,S=N.useCallback(()=>{if(o.trigger&&o.valueNode&&c&&u&&_&&v&&y){let e=o.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),n=o.valueNode.getBoundingClientRect(),i=y.getBoundingClientRect();if(o.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,s=e.width+o,l=Math.max(s,t.width),u=window.innerWidth-X,d=z(a,[X,Math.max(X,u-l)]);c.style.minWidth=s+`px`,c.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,s=e.width+o,l=Math.max(s,t.width),u=window.innerWidth-X,d=z(a,[X,Math.max(X,u-l)]);c.style.minWidth=s+`px`,c.style.right=d+`px`}let a=p(),s=window.innerHeight-X*2,l=_.scrollHeight,d=window.getComputedStyle(u),f=parseInt(d.borderTopWidth,10),h=parseInt(d.paddingTop,10),g=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=f+h+l+b+g,S=Math.min(v.offsetHeight*5,x),C=window.getComputedStyle(_),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-X,D=s-E,O=v.offsetHeight/2,k=v.offsetTop+O,A=f+h+k,j=x-A;if(A<=E){let e=a.length>0&&v===a[a.length-1].ref.current;c.style.bottom=`0px`;let t=u.clientHeight-_.offsetTop-_.offsetHeight,n=A+Math.max(D,O+(e?T:0)+t+g);c.style.height=n+`px`}else{let e=a.length>0&&v===a[0].ref.current;c.style.top=`0px`;let t=Math.max(E,f+_.offsetTop+(e?w:0)+O)+j;c.style.height=t+`px`,_.scrollTop=A-E+_.offsetTop}c.style.margin=`${X}px 0`,c.style.minHeight=S+`px`,c.style.maxHeight=s+`px`,r?.(),requestAnimationFrame(()=>m.current=!0)}},[p,o.trigger,o.valueNode,c,u,_,v,y,o.dir,r]);h(()=>S(),[S]);let[C,w]=N.useState();return h(()=>{u&&w(window.getComputedStyle(u).zIndex)},[u]),(0,P.jsx)(De,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:m,onScrollButtonChange:N.useCallback(e=>{e&&g.current===!0&&(S(),x?.(),g.current=!1)},[S,x]),children:(0,P.jsx)(`div`,{ref:l,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:C},children:(0,P.jsx)(b.div,{...i,ref:f,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})});we.displayName=Ce;var Te=`SelectPopperPosition`,Ee=N.forwardRef((e,t)=>{let{__scopeSelect:n,align:r=`start`,collisionPadding:i=X,...a}=e,o=q(n);return(0,P.jsx)(A,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})});Ee.displayName=Te;var[De,Oe]=K(Y,{}),ke=`SelectViewport`,Ae=N.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...i}=e,o=Z(ke,n),s=Oe(ke,n),c=a(t,o.onViewportChange),l=N.useRef(0);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,P.jsx)(U.Slot,{scope:n,children:(0,P.jsx)(b.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:c,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:y(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=s;if(r?.current&&n){let e=Math.abs(l.current-t.scrollTop);if(e>0){let r=window.innerHeight-X*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}l.current=t.scrollTop})})})]})});Ae.displayName=ke;var je=`SelectGroup`,[Me,Ne]=K(je),Pe=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=v();return(0,P.jsx)(Me,{scope:n,id:i,children:(0,P.jsx)(b.div,{role:`group`,"aria-labelledby":i,...r,ref:t})})});Pe.displayName=je;var Fe=`SelectLabel`,Ie=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=Ne(Fe,n);return(0,P.jsx)(b.div,{id:i.id,...r,ref:t})});Ie.displayName=Fe;var Q=`SelectItem`,[Le,Re]=K(Q),ze=N.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:i=!1,textValue:o,...s}=e,c=J(Q,n),l=Z(Q,n),u=c.value===r,[d,f]=N.useState(o??``),[p,m]=N.useState(!1),h=a(t,e=>l.itemRefCallback?.(e,r,i)),g=v(),_=N.useRef(`touch`),x=()=>{i||(c.onValueChange(r),c.onOpenChange(!1))};if(r===``)throw Error(`A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.`);return(0,P.jsx)(Le,{scope:n,value:r,disabled:i,textId:g,isSelected:u,onItemTextChange:N.useCallback(e=>{f(t=>t||(e?.textContent??``).trim())},[]),children:(0,P.jsx)(U.ItemSlot,{scope:n,value:r,disabled:i,textValue:d,children:(0,P.jsx)(b.div,{role:`option`,"aria-labelledby":g,"data-highlighted":p?``:void 0,"aria-selected":u&&p,"data-state":u?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...s,ref:h,onFocus:y(s.onFocus,()=>m(!0)),onBlur:y(s.onBlur,()=>m(!1)),onClick:y(s.onClick,()=>{_.current!==`mouse`&&x()}),onPointerUp:y(s.onPointerUp,()=>{_.current===`mouse`&&x()}),onPointerDown:y(s.onPointerDown,e=>{_.current=e.pointerType}),onPointerMove:y(s.onPointerMove,e=>{_.current=e.pointerType,i?l.onItemLeave?.():_.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:y(s.onPointerLeave,e=>{e.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:y(s.onKeyDown,e=>{l.searchRef?.current!==``&&e.key===` `||(V.includes(e.key)&&x(),e.key===` `&&e.preventDefault())})})})})});ze.displayName=Q;var $=`SelectItemText`,Be=N.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,...o}=e,s=J($,n),c=Z($,n),l=Re($,n),u=re($,n),[d,f]=N.useState(null),p=a(t,e=>f(e),l.onItemTextChange,e=>c.itemTextRefCallback?.(e,l.value,l.disabled)),m=d?.textContent,g=N.useMemo(()=>(0,P.jsx)(`option`,{value:l.value,disabled:l.disabled,children:m},l.value),[l.disabled,l.value,m]),{onNativeOptionAdd:_,onNativeOptionRemove:v}=u;return h(()=>(_(g),()=>v(g)),[_,v,g]),(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(b.span,{id:l.textId,...o,ref:p}),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?M.createPortal(o.children,s.valueNode):null]})});Be.displayName=$;var Ve=`SelectItemIndicator`,He=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return Re(Ve,n).isSelected?(0,P.jsx)(b.span,{"aria-hidden":!0,...r,ref:t}):null});He.displayName=Ve;var Ue=`SelectScrollUpButton`,We=N.forwardRef((e,t)=>{let n=Z(Ue,e.__scopeSelect),r=Oe(Ue,e.__scopeSelect),[i,o]=N.useState(!1),s=a(t,r.onScrollButtonChange);return h(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollTop>0;o(e)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,P.jsx)(qe,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null});We.displayName=Ue;var Ge=`SelectScrollDownButton`,Ke=N.forwardRef((e,t)=>{let n=Z(Ge,e.__scopeSelect),r=Oe(Ge,e.__scopeSelect),[i,o]=N.useState(!1),s=a(t,r.onScrollButtonChange);return h(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;o(n)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,P.jsx)(qe,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null});Ke.displayName=Ge;var qe=N.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=Z(`SelectScrollButton`,n),o=N.useRef(null),s=W(n),c=N.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return N.useEffect(()=>()=>c(),[c]),h(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,P.jsx)(b.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:y(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:y(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:y(i.onPointerLeave,()=>{c()})})}),Je=`SelectSeparator`,Ye=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,P.jsx)(b.div,{"aria-hidden":!0,...r,ref:t})});Ye.displayName=Je;var Xe=`SelectArrow`,Ze=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=q(n);return Z(Xe,n).position===`popper`?(0,P.jsx)(k,{...i,...r,ref:t}):null});Ze.displayName=Xe;var Qe=`SelectBubbleInput`,$e=N.forwardRef(({__scopeSelect:e,...t},n)=>{let r=J(Qe,e),{value:i,onValueChange:o,required:s,disabled:c,name:l,autoComplete:u,form:d}=r,{nativeOptions:f,nativeSelectKey:p}=r,m=N.useRef(null),h=a(n,m),g=i??``,_=E(g);return N.useEffect(()=>{let e=m.current;if(!e)return;let t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set;if(_!==g&&n){let t=new Event(`change`,{bubbles:!0});n.call(e,g),e.dispatchEvent(t)}},[_,g]),(0,P.jsxs)(b.select,{"aria-hidden":!0,required:s,tabIndex:-1,name:l,autoComplete:u,disabled:c,form:d,onChange:e=>o(e.target.value),...t,style:{...F,...t.style},ref:h,defaultValue:g,children:[tt(i)?(0,P.jsx)(`option`,{value:``}):null,Array.from(f)]},p)});$e.displayName=Qe;function et(e){return typeof e==`function`}function tt(e){return e===``||e===void 0}function nt(e){let t=o(e),n=N.useRef(``),r=N.useRef(0),i=N.useCallback(e=>{let i=n.current+e;t(i),(function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))})(i)},[t]),a=N.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return N.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function rt(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=it(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function it(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function at(e){return(0,P.jsx)(oe,{"data-slot":`select`,...e})}function ot(e){return(0,P.jsx)(ue,{"data-slot":`select-value`,...e})}function st({className:e,size:t=`default`,children:n,...r}){return(0,P.jsxs)(ce,{"data-slot":`select-trigger`,"data-size":t,className:g(`flex w-fit items-center justify-between gap-2 rounded-lg border border-input bg-background px-2.5 py-1 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-8 data-[size=sm]:h-7 data-[placeholder]:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,`[&>[data-slot=select-value]]:min-w-0 [&>[data-slot=select-value]]:truncate`,e),...r,children:[n,(0,P.jsx)(fe,{asChild:!0,children:(0,P.jsx)(C,{className:`size-4 opacity-50`})})]})}function ct({className:e,children:t,position:n=`popper`,...r}){return(0,P.jsx)(ge,{children:(0,P.jsxs)(_e,{"data-slot":`select-content`,className:g(`relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] origin-[--radix-select-content-transform-origin] overflow-y-auto overflow-x-hidden rounded-lg border border-border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95`,n===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1`,e),position:n,...r,children:[(0,P.jsx)(We,{className:`flex cursor-default items-center justify-center py-1`,children:(0,P.jsx)(T,{className:`size-4`})}),(0,P.jsx)(Ae,{className:g(`p-1`,n===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]`),children:t}),(0,P.jsx)(Ke,{className:`flex cursor-default items-center justify-center py-1`,children:(0,P.jsx)(C,{className:`size-4`})})]})})}function lt({className:e,children:t,...n}){return(0,P.jsxs)(ze,{"data-slot":`select-item`,className:g(`relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),...n,children:[(0,P.jsx)(`span`,{className:`absolute right-2 flex size-3.5 items-center justify-center`,children:(0,P.jsx)(He,{children:(0,P.jsx)(x,{className:`size-4`})})}),(0,P.jsx)(Be,{children:t})]})}export{ot as a,st as i,ct as n,R as o,lt as r,at as t};
|
|
1
|
+
import{a as e,i as t,l as n,r}from"./bundle-mjs-C73ZY4La.js";import{S as i,T as a,_ as o,a as s,c,d as l,f as u,h as d,i as f,l as p,o as m,p as h,r as g,s as _,u as v,v as y,y as b}from"./api-C9TZ4xjz.js";import{t as x}from"./check-DLsNvgAq.js";import{n as S,r as C,t as w}from"./dist-Col6E8px.js";import{t as T}from"./chevron-up-DpsXK7Un.js";import{t as E}from"./dist-DDCmobc1.js";import{a as D,i as O,n as k,r as A,t as j}from"./dist-CMQ8ZmbJ.js";var M=n(t(),1),N=n(e(),1),P=r(),F=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),I=`VisuallyHidden`,L=N.forwardRef((e,t)=>(0,P.jsx)(b.span,{...e,ref:t,style:{...F,...e.style}}));L.displayName=I;var R=L;function z(e,[t,n]){return Math.min(n,Math.max(t,e))}var B=[` `,`Enter`,`ArrowUp`,`ArrowDown`],V=[` `,`Enter`],H=`Select`,[U,W,G]=S(H),[K,ee]=d(H,[G,D]),q=D(),[te,J]=K(H),[ne,re]=K(H),ie=`SelectProvider`;function ae(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:d,autoComplete:f,disabled:p,required:m,form:h,internal_do_not_use_render:g}=e,_=q(t),[y,b]=N.useState(null),[x,S]=N.useState(null),[C,T]=N.useState(!1),E=w(l),[D,k]=u({prop:r,defaultProp:i??!1,onChange:a,caller:H}),[A,j]=u({prop:o,defaultProp:s,onChange:c,caller:H}),M=N.useRef(null),F=!y||!!h||!!y.closest(`form`),[I,L]=N.useState(new Set),R=v(),z=Array.from(I).map(e=>e.props.value).join(`;`),B=N.useCallback(e=>{L(t=>new Set(t).add(e))},[]),V=N.useCallback(e=>{L(t=>{let n=new Set(t);return n.delete(e),n})},[]),W={required:m,trigger:y,onTriggerChange:b,valueNode:x,onValueNodeChange:S,valueNodeHasChildren:C,onValueNodeHasChildrenChange:T,contentId:R,value:A,onValueChange:j,open:D,onOpenChange:k,dir:E,triggerPointerDownPosRef:M,disabled:p,name:d,autoComplete:f,form:h,nativeOptions:I,nativeSelectKey:z,isFormControl:F};return(0,P.jsx)(O,{..._,children:(0,P.jsx)(te,{scope:t,...W,children:(0,P.jsx)(U.Provider,{scope:t,children:(0,P.jsx)(ne,{scope:t,onNativeOptionAdd:B,onNativeOptionRemove:V,children:et(g)?g(W):n})})})})}ae.displayName=ie;var oe=e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,P.jsx)(ae,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,P.jsxs)(P.Fragment,{children:[n,e?(0,P.jsx)($e,{__scopeSelect:t}):null]})})};oe.displayName=H;var se=`SelectTrigger`,ce=N.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...i}=e,o=q(n),s=J(se,n),c=s.disabled||r,l=a(t,s.onTriggerChange),u=W(n),d=N.useRef(`touch`),[f,p,m]=nt(e=>{let t=u().filter(e=>!e.disabled),n=rt(t,e,t.find(e=>e.value===s.value));n!==void 0&&s.onValueChange(n.value)}),h=e=>{c||(s.onOpenChange(!0),m()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,P.jsx)(j,{asChild:!0,...o,children:(0,P.jsx)(b.button,{type:`button`,role:`combobox`,"aria-controls":s.open?s.contentId:void 0,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":`none`,dir:s.dir,"data-state":s.open?`open`:`closed`,disabled:c,"data-disabled":c?``:void 0,"data-placeholder":tt(s.value)?``:void 0,...i,ref:l,onClick:y(i.onClick,e=>{e.currentTarget.focus(),d.current!==`mouse`&&h(e)}),onPointerDown:y(i.onPointerDown,e=>{d.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(h(e),e.preventDefault())}),onKeyDown:y(i.onKeyDown,e=>{let t=f.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&p(e.key),!(t&&e.key===` `)&&B.includes(e.key)&&(h(),e.preventDefault())})})})});ce.displayName=se;var le=`SelectValue`,ue=N.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,children:o,placeholder:s=``,...c}=e,l=J(le,n),{onValueNodeHasChildrenChange:u}=l,d=o!==void 0,f=a(t,l.onValueNodeChange);h(()=>{u(d)},[u,d]);let p=tt(l.value);return(0,P.jsx)(b.span,{...c,asChild:!p&&c.asChild,ref:f,style:{pointerEvents:`none`},children:(0,P.jsx)(N.Fragment,{children:p?s:o},p?`placeholder`:`value`)})});ue.displayName=le;var de=`SelectIcon`,fe=N.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...i}=e;return(0,P.jsx)(b.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})});fe.displayName=de;var pe=`SelectPortal`,[me,he]=K(pe,{forceMount:void 0}),ge=e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,P.jsx)(me,{scope:e.__scopeSelect,forceMount:n,children:(0,P.jsx)(_,{asChild:!0,...r})})};ge.displayName=pe;var Y=`SelectContent`,_e=N.forwardRef((e,t)=>{let n=he(Y,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,a=J(Y,e.__scopeSelect),[o,s]=N.useState();return h(()=>{s(new DocumentFragment)},[]),(0,P.jsx)(l,{present:r||a.open,children:({present:e})=>e?(0,P.jsx)(Se,{...i,ref:t}):(0,P.jsx)(ve,{...i,fragment:o})})});_e.displayName=Y;var ve=N.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,fragment:i}=e;return i?M.createPortal((0,P.jsx)(ye,{scope:n,children:(0,P.jsx)(U.Slot,{scope:n,children:(0,P.jsx)(`div`,{ref:t,children:r})})}),i):null});ve.displayName=`SelectContentFragment`;var X=10,[ye,Z]=K(Y),be=`SelectContentImpl`,xe=i(`SelectContent.RemoveScroll`),Se=N.forwardRef((e,t)=>{let{__scopeSelect:n}=e,{position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:l,side:u,sideOffset:d,align:h,alignOffset:g,arrowPadding:_,collisionBoundary:v,collisionPadding:b,sticky:x,hideWhenDetached:S,avoidCollisions:C,...w}=e,T=J(Y,n),[E,D]=N.useState(null),[O,k]=N.useState(null),A=a(t,e=>D(e)),[j,M]=N.useState(null),[F,I]=N.useState(null),L=W(n),[R,z]=N.useState(!1),B=N.useRef(!1);N.useEffect(()=>{if(E)return f(E)},[E]),m();let V=N.useCallback(e=>{let[t,...n]=L().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&O&&(O.scrollTop=0),n===r&&O&&(O.scrollTop=O.scrollHeight),n?.focus(),document.activeElement!==i))return},[L,O]),H=N.useCallback(()=>V([j,E]),[V,j,E]);N.useEffect(()=>{R&&H()},[R,H]);let{onOpenChange:U,triggerPointerDownPosRef:G}=T;N.useEffect(()=>{if(E){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(G.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(G.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(E)||U(!1),document.removeEventListener(`pointermove`,t),G.current=null};return G.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[E,U,G]),N.useEffect(()=>{let e=()=>U(!1);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[U]);let[K,ee]=nt(e=>{let t=L().filter(e=>!e.disabled),n=rt(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current.focus())}),q=N.useCallback((e,t,n)=>{let r=!B.current&&!n;(T.value!==void 0&&T.value===t||r)&&(M(e),r&&(B.current=!0))},[T.value]),te=N.useCallback(()=>E?.focus(),[E]),ne=N.useCallback((e,t,n)=>{let r=!B.current&&!n;(T.value!==void 0&&T.value===t||r)&&I(e)},[T.value]),re=r===`popper`?Ee:we,ie=re===Ee?{side:u,sideOffset:d,align:h,alignOffset:g,arrowPadding:_,collisionBoundary:v,collisionPadding:b,sticky:x,hideWhenDetached:S,avoidCollisions:C}:{};return(0,P.jsx)(ye,{scope:n,content:E,viewport:O,onViewportChange:k,itemRefCallback:q,selectedItem:j,onItemLeave:te,itemTextRefCallback:ne,focusSelectedItem:H,selectedItemText:F,position:r,isPositioned:R,searchRef:K,children:(0,P.jsx)(s,{as:xe,allowPinchZoom:!0,children:(0,P.jsx)(c,{asChild:!0,trapped:T.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:y(i,e=>{T.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,P.jsx)(p,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:(0,P.jsx)(re,{role:`listbox`,id:T.contentId,"data-state":T.open?`open`:`closed`,dir:T.dir,onContextMenu:e=>e.preventDefault(),...w,...ie,onPlaced:()=>z(!0),ref:A,style:{display:`flex`,flexDirection:`column`,outline:`none`,...w.style},onKeyDown:y(w.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&ee(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=L().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>V(t)),e.preventDefault()}})})})})})})});Se.displayName=be;var Ce=`SelectItemAlignedPosition`,we=N.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...i}=e,o=J(Y,n),s=Z(Y,n),[c,l]=N.useState(null),[u,d]=N.useState(null),f=a(t,e=>d(e)),p=W(n),m=N.useRef(!1),g=N.useRef(!0),{viewport:_,selectedItem:v,selectedItemText:y,focusSelectedItem:x}=s,S=N.useCallback(()=>{if(o.trigger&&o.valueNode&&c&&u&&_&&v&&y){let e=o.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),n=o.valueNode.getBoundingClientRect(),i=y.getBoundingClientRect();if(o.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,s=e.width+o,l=Math.max(s,t.width),u=window.innerWidth-X,d=z(a,[X,Math.max(X,u-l)]);c.style.minWidth=s+`px`,c.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,s=e.width+o,l=Math.max(s,t.width),u=window.innerWidth-X,d=z(a,[X,Math.max(X,u-l)]);c.style.minWidth=s+`px`,c.style.right=d+`px`}let a=p(),s=window.innerHeight-X*2,l=_.scrollHeight,d=window.getComputedStyle(u),f=parseInt(d.borderTopWidth,10),h=parseInt(d.paddingTop,10),g=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=f+h+l+b+g,S=Math.min(v.offsetHeight*5,x),C=window.getComputedStyle(_),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-X,D=s-E,O=v.offsetHeight/2,k=v.offsetTop+O,A=f+h+k,j=x-A;if(A<=E){let e=a.length>0&&v===a[a.length-1].ref.current;c.style.bottom=`0px`;let t=u.clientHeight-_.offsetTop-_.offsetHeight,n=A+Math.max(D,O+(e?T:0)+t+g);c.style.height=n+`px`}else{let e=a.length>0&&v===a[0].ref.current;c.style.top=`0px`;let t=Math.max(E,f+_.offsetTop+(e?w:0)+O)+j;c.style.height=t+`px`,_.scrollTop=A-E+_.offsetTop}c.style.margin=`${X}px 0`,c.style.minHeight=S+`px`,c.style.maxHeight=s+`px`,r?.(),requestAnimationFrame(()=>m.current=!0)}},[p,o.trigger,o.valueNode,c,u,_,v,y,o.dir,r]);h(()=>S(),[S]);let[C,w]=N.useState();return h(()=>{u&&w(window.getComputedStyle(u).zIndex)},[u]),(0,P.jsx)(De,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:m,onScrollButtonChange:N.useCallback(e=>{e&&g.current===!0&&(S(),x?.(),g.current=!1)},[S,x]),children:(0,P.jsx)(`div`,{ref:l,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:C},children:(0,P.jsx)(b.div,{...i,ref:f,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})});we.displayName=Ce;var Te=`SelectPopperPosition`,Ee=N.forwardRef((e,t)=>{let{__scopeSelect:n,align:r=`start`,collisionPadding:i=X,...a}=e,o=q(n);return(0,P.jsx)(A,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})});Ee.displayName=Te;var[De,Oe]=K(Y,{}),ke=`SelectViewport`,Ae=N.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...i}=e,o=Z(ke,n),s=Oe(ke,n),c=a(t,o.onViewportChange),l=N.useRef(0);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,P.jsx)(U.Slot,{scope:n,children:(0,P.jsx)(b.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:c,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:y(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=s;if(r?.current&&n){let e=Math.abs(l.current-t.scrollTop);if(e>0){let r=window.innerHeight-X*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}l.current=t.scrollTop})})})]})});Ae.displayName=ke;var je=`SelectGroup`,[Me,Ne]=K(je),Pe=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=v();return(0,P.jsx)(Me,{scope:n,id:i,children:(0,P.jsx)(b.div,{role:`group`,"aria-labelledby":i,...r,ref:t})})});Pe.displayName=je;var Fe=`SelectLabel`,Ie=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=Ne(Fe,n);return(0,P.jsx)(b.div,{id:i.id,...r,ref:t})});Ie.displayName=Fe;var Q=`SelectItem`,[Le,Re]=K(Q),ze=N.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:i=!1,textValue:o,...s}=e,c=J(Q,n),l=Z(Q,n),u=c.value===r,[d,f]=N.useState(o??``),[p,m]=N.useState(!1),h=a(t,e=>l.itemRefCallback?.(e,r,i)),g=v(),_=N.useRef(`touch`),x=()=>{i||(c.onValueChange(r),c.onOpenChange(!1))};if(r===``)throw Error(`A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.`);return(0,P.jsx)(Le,{scope:n,value:r,disabled:i,textId:g,isSelected:u,onItemTextChange:N.useCallback(e=>{f(t=>t||(e?.textContent??``).trim())},[]),children:(0,P.jsx)(U.ItemSlot,{scope:n,value:r,disabled:i,textValue:d,children:(0,P.jsx)(b.div,{role:`option`,"aria-labelledby":g,"data-highlighted":p?``:void 0,"aria-selected":u&&p,"data-state":u?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...s,ref:h,onFocus:y(s.onFocus,()=>m(!0)),onBlur:y(s.onBlur,()=>m(!1)),onClick:y(s.onClick,()=>{_.current!==`mouse`&&x()}),onPointerUp:y(s.onPointerUp,()=>{_.current===`mouse`&&x()}),onPointerDown:y(s.onPointerDown,e=>{_.current=e.pointerType}),onPointerMove:y(s.onPointerMove,e=>{_.current=e.pointerType,i?l.onItemLeave?.():_.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:y(s.onPointerLeave,e=>{e.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:y(s.onKeyDown,e=>{l.searchRef?.current!==``&&e.key===` `||(V.includes(e.key)&&x(),e.key===` `&&e.preventDefault())})})})})});ze.displayName=Q;var $=`SelectItemText`,Be=N.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,...o}=e,s=J($,n),c=Z($,n),l=Re($,n),u=re($,n),[d,f]=N.useState(null),p=a(t,e=>f(e),l.onItemTextChange,e=>c.itemTextRefCallback?.(e,l.value,l.disabled)),m=d?.textContent,g=N.useMemo(()=>(0,P.jsx)(`option`,{value:l.value,disabled:l.disabled,children:m},l.value),[l.disabled,l.value,m]),{onNativeOptionAdd:_,onNativeOptionRemove:v}=u;return h(()=>(_(g),()=>v(g)),[_,v,g]),(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(b.span,{id:l.textId,...o,ref:p}),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?M.createPortal(o.children,s.valueNode):null]})});Be.displayName=$;var Ve=`SelectItemIndicator`,He=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return Re(Ve,n).isSelected?(0,P.jsx)(b.span,{"aria-hidden":!0,...r,ref:t}):null});He.displayName=Ve;var Ue=`SelectScrollUpButton`,We=N.forwardRef((e,t)=>{let n=Z(Ue,e.__scopeSelect),r=Oe(Ue,e.__scopeSelect),[i,o]=N.useState(!1),s=a(t,r.onScrollButtonChange);return h(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollTop>0;o(e)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,P.jsx)(qe,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null});We.displayName=Ue;var Ge=`SelectScrollDownButton`,Ke=N.forwardRef((e,t)=>{let n=Z(Ge,e.__scopeSelect),r=Oe(Ge,e.__scopeSelect),[i,o]=N.useState(!1),s=a(t,r.onScrollButtonChange);return h(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;o(n)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,P.jsx)(qe,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null});Ke.displayName=Ge;var qe=N.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=Z(`SelectScrollButton`,n),o=N.useRef(null),s=W(n),c=N.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return N.useEffect(()=>()=>c(),[c]),h(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,P.jsx)(b.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:y(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:y(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:y(i.onPointerLeave,()=>{c()})})}),Je=`SelectSeparator`,Ye=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,P.jsx)(b.div,{"aria-hidden":!0,...r,ref:t})});Ye.displayName=Je;var Xe=`SelectArrow`,Ze=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=q(n);return Z(Xe,n).position===`popper`?(0,P.jsx)(k,{...i,...r,ref:t}):null});Ze.displayName=Xe;var Qe=`SelectBubbleInput`,$e=N.forwardRef(({__scopeSelect:e,...t},n)=>{let r=J(Qe,e),{value:i,onValueChange:o,required:s,disabled:c,name:l,autoComplete:u,form:d}=r,{nativeOptions:f,nativeSelectKey:p}=r,m=N.useRef(null),h=a(n,m),g=i??``,_=E(g);return N.useEffect(()=>{let e=m.current;if(!e)return;let t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set;if(_!==g&&n){let t=new Event(`change`,{bubbles:!0});n.call(e,g),e.dispatchEvent(t)}},[_,g]),(0,P.jsxs)(b.select,{"aria-hidden":!0,required:s,tabIndex:-1,name:l,autoComplete:u,disabled:c,form:d,onChange:e=>o(e.target.value),...t,style:{...F,...t.style},ref:h,defaultValue:g,children:[tt(i)?(0,P.jsx)(`option`,{value:``}):null,Array.from(f)]},p)});$e.displayName=Qe;function et(e){return typeof e==`function`}function tt(e){return e===``||e===void 0}function nt(e){let t=o(e),n=N.useRef(``),r=N.useRef(0),i=N.useCallback(e=>{let i=n.current+e;t(i),(function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))})(i)},[t]),a=N.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return N.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function rt(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=it(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function it(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function at(e){return(0,P.jsx)(oe,{"data-slot":`select`,...e})}function ot(e){return(0,P.jsx)(ue,{"data-slot":`select-value`,...e})}function st({className:e,size:t=`default`,children:n,...r}){return(0,P.jsxs)(ce,{"data-slot":`select-trigger`,"data-size":t,className:g(`flex w-fit items-center justify-between gap-2 rounded-lg border border-input bg-background px-2.5 py-1 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-8 data-[size=sm]:h-7 data-[placeholder]:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,`[&>[data-slot=select-value]]:min-w-0 [&>[data-slot=select-value]]:truncate`,e),...r,children:[n,(0,P.jsx)(fe,{asChild:!0,children:(0,P.jsx)(C,{className:`size-4 opacity-50`})})]})}function ct({className:e,children:t,position:n=`popper`,...r}){return(0,P.jsx)(ge,{children:(0,P.jsxs)(_e,{"data-slot":`select-content`,className:g(`relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] origin-[--radix-select-content-transform-origin] overflow-y-auto overflow-x-hidden rounded-lg border border-border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95`,n===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1`,e),position:n,...r,children:[(0,P.jsx)(We,{className:`flex cursor-default items-center justify-center py-1`,children:(0,P.jsx)(T,{className:`size-4`})}),(0,P.jsx)(Ae,{className:g(`p-1`,n===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]`),children:t}),(0,P.jsx)(Ke,{className:`flex cursor-default items-center justify-center py-1`,children:(0,P.jsx)(C,{className:`size-4`})})]})})}function lt({className:e,children:t,...n}){return(0,P.jsxs)(ze,{"data-slot":`select-item`,className:g(`relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),...n,children:[(0,P.jsx)(`span`,{className:`absolute right-2 flex size-3.5 items-center justify-center`,children:(0,P.jsx)(He,{children:(0,P.jsx)(x,{className:`size-4`})})}),(0,P.jsx)(Be,{children:t})]})}export{ot as a,st as i,ct as n,R as o,lt as r,at as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as e}from"./api-
|
|
1
|
+
import{E as e}from"./api-C9TZ4xjz.js";var t=e(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]);export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as e}from"./api-
|
|
1
|
+
import{E as e}from"./api-C9TZ4xjz.js";var t=e(`audio-lines`,[[`path`,{d:`M2 10v3`,key:`1fnikh`}],[`path`,{d:`M6 6v11`,key:`11sgs0`}],[`path`,{d:`M10 3v18`,key:`yhl04a`}],[`path`,{d:`M14 8v7`,key:`3a1oy3`}],[`path`,{d:`M18 5v13`,key:`123xd1`}],[`path`,{d:`M22 10v3`,key:`154ddg`}]]),n=e(`mic`,[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`,key:`1vc78b`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`13`,rx:`3`,key:`s6n7sd`}]]),r=e(`volume-2`,[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}],[`path`,{d:`M16 9a5 5 0 0 1 0 6`,key:`1q6k2b`}],[`path`,{d:`M19.364 18.364a9 9 0 0 0 0-12.728`,key:`ijwkga`}]]);function i(e,t){return e&&e!==`auto`?e:t.startsWith(`fr`)?`fr-FR`:t.startsWith(`en`)?`en-US`:t||`fr-FR`}function a(e){let t=e;return t=t.replace(/```[\s\S]*?```/g,` (bloc de code) `),t=t.replace(/`([^`]+)`/g,`$1`),t=t.replace(/!\[[^\]]*\]\([^)]*\)/g,` `),t=t.replace(/\[([^\]]+)\]\([^)]*\)/g,`$1`),t=t.replace(/^#{1,6}\s+/gm,``),t=t.replace(/^\s*>\s?/gm,``),t=t.replace(/^\s*[-*+]\s+/gm,``),t=t.replace(/^\s*\d+\.\s+/gm,``),t=t.replace(/^\s*([-_*]\s*){3,}$/gm,` `),t=t.replace(/^\s*\|(.+)\|\s*$/gm,(e,t)=>t.split(`|`).map(e=>e.trim()).filter(e=>e&&!/^:?-{2,}:?$/.test(e)).join(`, `)),t=t.replace(/(\*\*|__|\*|_|~~)/g,``),t=t.replace(/[ \t]+/g,` `).replace(/\n{2,}/g,`. `).replace(/\n/g,` `),t.trim()}function o(){return typeof window<`u`&&`speechSynthesis`in window}function s(e,t){if(!o())return!1;let n=window.speechSynthesis,r=new SpeechSynthesisUtterance(e);return r.lang=t.lang,r.rate=Math.min(2,Math.max(.5,t.rate||1)),t.onEnd&&(r.onend=t.onEnd,r.onerror=t.onEnd),n.speaking||n.pending?(n.cancel(),window.setTimeout(()=>n.speak(r),60)):n.speak(r),!0}function c(){o()&&window.speechSynthesis.cancel()}function l(){if(typeof window>`u`)return null;let e=window;return e.SpeechRecognition??e.webkitSpeechRecognition??null}function u(){return l()!==null}var d=2500,f=new Set([`not-allowed`,`service-not-allowed`,`audio-capture`,`language-not-supported`,`aborted`]),p=[0,300,1e3,2500],m=3e3,h=5e3,g=2e4,_=3e3,v=`engine-gave-up`;function y(e){let t=l();if(!t)return null;let n=()=>Date.now(),r=(e,t)=>setTimeout(e,t),i=e=>clearTimeout(e),a=0,o=null,s=null,c=0,u=!1,y=0,b=0,x=``,S=!1,C=!1,w=!1,T=!1,E=null,D=null,O=null,k=0,A=null,j=null,M=()=>{D!==null&&i(D),D=null,A=null},N=()=>{T||(T=!0,M(),E!==null&&i(E),E=null,O!==null&&i(O),O=null,j=null,s=null,C||e.onInterim?.(``),e.onEnd())},P=t=>{let r=o??n(),i=a!==0&&r-a>d;a=n(),o=null,e.onText(t,{paragraph:i})},F=(t,i=!1)=>{if(t!==s)return;if(s=null,M(),!C&&!w&&x.trim()!==``&&P(x),x=``,S||w){N();return}if(u?(y=0,b=0):i||n()-c<m?y+=1:b+=1,y>p.length||b>12){e.onError(v),N();return}e.onInterim?.(``);let a=y===0?0:p[y-1]??0;E=r(()=>{if(E=null,S){N();return}I()||(e.onError(v),N())},a)},I=()=>{let a=new t;a.lang=e.lang,a.interimResults=e.onInterim!==void 0,a.continuous=!0,a.onresult=t=>{if(a!==s||C)return;let r=t,i=n(),c=``;for(let e=r.resultIndex;e<r.results.length;e++){let t=r.results[e];t?.[0]?.transcript&&(u=!0,t.isFinal?P(t[0].transcript):c+=t[0].transcript)}c!==``&&o===null&&(o=i),x=c,A?.(),j?.(),e.onInterim?.(c)},a.onend=()=>F(a),a.onerror=t=>{if(a!==s)return;let n=String(t.error??`unknown`);S||f.has(n)&&(w=!0,e.onError(n))},a.onaudioend=()=>{if(a!==s||S)return;M();let e=()=>{D!==null&&i(D),D=r(()=>{if(D=null,A=null,!(a!==s||S)){try{a.abort?.()}catch{}F(a,!0)}},_)};A=e,e()},s=a,c=n(),u=!1;try{a.start()}catch{return s=null,!1}return!0};if(!I())return null;let L=e=>{if(T)return;S=!0,e===`discard`&&(C=!0);let t=s;if(t===null){N();return}if(M(),e===`stop`){k=n();let e=()=>{O!==null&&i(O);let e=Math.min(h,Math.max(0,k+g-n()));O=r(()=>{if(O=null,j=null,t===s){try{t.abort?.()}catch{}F(t)}},e)};j=e,e()}try{e===`discard`&&t.abort!==void 0?t.abort():t.stop()}catch{F(t)}};return{stop:()=>L(`stop`),discard:()=>L(`discard`)}}var b=null;function x(e,t,n){try{S();let r=new Audio(`data:${t};base64,${e}`);return r.playbackRate=Math.min(2,Math.max(.5,n?.rate??1)),b=r,n?.onEnd&&(r.onended=n.onEnd,r.onerror=n.onEnd),r.play().catch(()=>n?.onEnd?.()),!0}catch{return!1}}function S(){b&&=(b.pause(),b.onended=null,b.onerror=null,null)}export{i as a,S as c,o as d,r as f,x as i,c as l,t as m,g as n,s as o,n as p,u as r,y as s,v as t,a as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as e}from"./api-
|
|
1
|
+
import{E as e}from"./api-C9TZ4xjz.js";var t=e(`star`,[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]);export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,r as t}from"./bundle-mjs-C73ZY4La.js";import{r as n}from"./api-
|
|
1
|
+
import{a as e,r as t}from"./bundle-mjs-C73ZY4La.js";import{r as n}from"./api-C9TZ4xjz.js";e();var r=t();function i({className:e,checked:t,onCheckedChange:i,disabled:a,...o}){return(0,r.jsx)(`button`,{type:`button`,role:`switch`,"aria-checked":t,"data-state":t?`checked`:`unchecked`,disabled:a,onClick:()=>i(!t),className:n(`peer inline-flex h-5 w-9 shrink-0 items-center rounded-full border border-transparent transition-colors outline-none`,`focus-visible:ring-2 focus-visible:ring-ring/50`,`disabled:cursor-not-allowed disabled:opacity-50`,t?`bg-primary`:`bg-input`,e),...o,children:(0,r.jsx)(`span`,{className:n(`pointer-events-none block size-4 rounded-full bg-background shadow transition-transform`,t?`translate-x-[18px]`:`translate-x-[2px]`)})})}export{i as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,r as t}from"./bundle-mjs-C73ZY4La.js";import{r as n}from"./api-
|
|
1
|
+
import{a as e,r as t}from"./bundle-mjs-C73ZY4La.js";import{r as n}from"./api-C9TZ4xjz.js";e();var r=t();function i({className:e,...t}){return(0,r.jsx)(`div`,{"data-slot":`table-container`,className:`relative w-full overflow-x-auto`,children:(0,r.jsx)(`table`,{"data-slot":`table`,className:n(`w-full caption-bottom text-sm`,e),...t})})}function a({className:e,...t}){return(0,r.jsx)(`thead`,{"data-slot":`table-header`,className:n(`[&_tr]:border-b`,e),...t})}function o({className:e,...t}){return(0,r.jsx)(`tbody`,{"data-slot":`table-body`,className:n(`[&_tr:last-child]:border-0`,e),...t})}function s({className:e,...t}){return(0,r.jsx)(`tr`,{"data-slot":`table-row`,className:n(`border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted`,e),...t})}function c({className:e,...t}){return(0,r.jsx)(`th`,{"data-slot":`table-head`,className:n(`h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0`,e),...t})}function l({className:e,...t}){return(0,r.jsx)(`td`,{"data-slot":`table-cell`,className:n(`p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0`,e),...t})}export{a,c as i,o as n,s as o,l as r,i as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,l as t,r as n}from"./bundle-mjs-C73ZY4La.js";import{d as r,f as i,h as a,n as o,r as s,u as c,v as l,y as u}from"./api-
|
|
1
|
+
import{a as e,l as t,r as n}from"./bundle-mjs-C73ZY4La.js";import{d as r,f as i,h as a,n as o,r as s,u as c,v as l,y as u}from"./api-C9TZ4xjz.js";import{t as d}from"./dist-Col6E8px.js";import{n as f,r as p,t as m}from"./dist-CQTmJUEo.js";var h=t(e(),1),g=n(),_=`Tabs`,[v,y]=a(_,[p]),b=p(),[x,S]=v(_),C=h.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:a,defaultValue:o,orientation:s=`horizontal`,dir:l,activationMode:f=`automatic`,...p}=e,m=d(l),[h,v]=i({prop:r,onChange:a,defaultProp:o??``,caller:_});return(0,g.jsx)(x,{scope:n,baseId:c(),value:h,onValueChange:v,orientation:s,dir:m,activationMode:f,children:(0,g.jsx)(u.div,{dir:m,"data-orientation":s,...p,ref:t})})});C.displayName=_;var w=`TabsList`,T=h.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,a=S(w,n),o=b(n);return(0,g.jsx)(f,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:(0,g.jsx)(u.div,{role:`tablist`,"aria-orientation":a.orientation,...i,ref:t})})});T.displayName=w;var E=`TabsTrigger`,D=h.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=S(E,n),s=b(n),c=A(o.baseId,r),d=j(o.baseId,r),f=r===o.value;return(0,g.jsx)(m,{asChild:!0,...s,focusable:!i,active:f,children:(0,g.jsx)(u.button,{type:`button`,role:`tab`,"aria-selected":f,"aria-controls":d,"data-state":f?`active`:`inactive`,"data-disabled":i?``:void 0,disabled:i,id:c,...a,ref:t,onMouseDown:l(e.onMouseDown,e=>{!i&&e.button===0&&e.ctrlKey===!1?o.onValueChange(r):e.preventDefault()}),onKeyDown:l(e.onKeyDown,e=>{[` `,`Enter`].includes(e.key)&&o.onValueChange(r)}),onFocus:l(e.onFocus,()=>{let e=o.activationMode!==`manual`;!f&&!i&&e&&o.onValueChange(r)})})})});D.displayName=E;var O=`TabsContent`,k=h.forwardRef((e,t)=>{let{__scopeTabs:n,value:i,forceMount:a,children:o,...s}=e,c=S(O,n),l=A(c.baseId,i),d=j(c.baseId,i),f=i===c.value,p=h.useRef(f);return h.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,g.jsx)(r,{present:a||f,children:({present:n})=>(0,g.jsx)(u.div,{"data-state":f?`active`:`inactive`,"data-orientation":c.orientation,role:`tabpanel`,"aria-labelledby":l,hidden:!n,id:d,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:p.current?`0s`:void 0},children:n&&o})})});k.displayName=O;function A(e,t){return`${e}-trigger-${t}`}function j(e,t){return`${e}-content-${t}`}var M=C,N=T,P=D,F=k;function I({className:e,orientation:t=`horizontal`,...n}){return(0,g.jsx)(M,{"data-slot":`tabs`,"data-orientation":t,className:s(`group/tabs flex gap-2 data-horizontal:flex-col`,e),...n})}var L=o(`group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none`,{variants:{variant:{default:`bg-muted`,line:`gap-1 bg-transparent`}},defaultVariants:{variant:`default`}});function R({className:e,variant:t=`default`,...n}){return(0,g.jsx)(N,{"data-slot":`tabs-list`,"data-variant":t,className:s(L({variant:t}),e),...n})}function z({className:e,...t}){return(0,g.jsx)(P,{"data-slot":`tabs-trigger`,className:s(`relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,`group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent`,`data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground`,`after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100`,e),...t})}function B({className:e,...t}){return(0,g.jsx)(F,{"data-slot":`tabs-content`,className:s(`flex-1 text-sm outline-none`,e),...t})}export{z as i,B as n,R as r,I as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,l as t,r as n}from"./bundle-mjs-C73ZY4La.js";import{Ky as r,Of as i,kf as a,r as o}from"./api-
|
|
1
|
+
import{a as e,l as t,r as n}from"./bundle-mjs-C73ZY4La.js";import{Ky as r,Of as i,kf as a,r as o}from"./api-C9TZ4xjz.js";import{t as s}from"./x-E03nFsG9.js";var c=t(e(),1),l=n(),u=c.createContext(null),d=6e3;function f(e){let t=e?.data;if(typeof t==`string`&&t)return t;if(e instanceof Error)return e.message;if(typeof e==`string`)return e;try{return String(e)}catch{return a()}}function p({children:e}){let[t,n]=c.useState([]),a=c.useRef(0),p=c.useRef(new Map),m=c.useCallback(e=>{n(t=>t.filter(t=>t.id!==e));let t=p.current.get(e);t!==void 0&&(window.clearTimeout(t),p.current.delete(e))},[]),h=c.useCallback(e=>{let t=a.current++,r={id:t,variant:e.variant??`info`,title:e.title,description:e.description};n(e=>[...e,r]);let i=window.setTimeout(()=>m(t),d);p.current.set(t,i)},[m]);c.useEffect(()=>{let e=p.current;return()=>{for(let t of e.values())window.clearTimeout(t);e.clear()}},[]);let g=c.useMemo(()=>({toast:h,error:(e,t)=>h({variant:`error`,title:e,description:t===void 0?void 0:f(t)}),success:(e,t)=>h({variant:`success`,title:e,description:t})}),[h]);return(0,l.jsxs)(u.Provider,{value:g,children:[e,(0,l.jsx)(`div`,{className:`oc-toast__viewport`,role:`region`,"aria-label":i(),children:t.map(e=>(0,l.jsxs)(`div`,{className:o(`oc-toast`,`oc-toast--${e.variant}`),role:e.variant===`error`?`alert`:`status`,children:[(0,l.jsxs)(`div`,{className:`oc-toast__body`,children:[(0,l.jsx)(`div`,{className:`oc-toast__title`,children:e.title}),e.description?(0,l.jsx)(`div`,{className:`oc-toast__desc`,children:e.description}):null]}),(0,l.jsx)(`button`,{type:`button`,className:`oc-toast__close`,"aria-label":r(),onClick:()=>m(e.id),children:(0,l.jsx)(s,{"aria-hidden":!0})})]},e.id))})]})}function m(){let e=c.useContext(u);if(!e)throw Error(`useToast must be used within <ToastProvider>`);return e}export{f as n,m as r,p as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as e,l as t,r as n}from"./bundle-mjs-C73ZY4La.js";import{C as r,T as i,d as a,f as o,h as s,l as c,r as l,s as u,u as d,v as f,y as p}from"./api-
|
|
1
|
+
import{a as e,l as t,r as n}from"./bundle-mjs-C73ZY4La.js";import{C as r,T as i,d as a,f as o,h as s,l as c,r as l,s as u,u as d,v as f,y as p}from"./api-C9TZ4xjz.js";import{o as m}from"./select-CeQpPnet.js";import{a as h,i as ee,n as g,r as _,t as v}from"./dist-CMQ8ZmbJ.js";var y={media_delivery:{key:`media_delivery`,appliedIn:`bridge`,togglable:!0,placeholders:[`outboundDir`],defaultTemplate:{fr:`[LIVRAISON]
|
|
2
2
|
Pour qu'un fichier que tu génères soit téléchargeable par l'utilisateur dans ce webchat : écris-le sous {outboundDir}/ puis ajoute, dans ta réponse finale, une ligne dédiée EXACTEMENT au format MEDIA:<chemin absolu du fichier>. N'utilise PAS de lien markdown vers un chemin local — il ne serait pas cliquable.`,en:`[DELIVERY]
|
|
3
3
|
To make a file you generate downloadable by the user in this webchat: write it under {outboundDir}/ then add, in your final reply, a dedicated line EXACTLY in the format MEDIA:<absolute file path>. Do NOT use a markdown link to a local path — it would not be clickable.`}},documentary_fetch:{key:`documentary_fetch`,appliedIn:`convex`,togglable:!0,placeholders:[`references`],defaultTemplate:{fr:`Fournis les fichiers source téléchargeables correspondant EXACTEMENT à ces références de documents (un fichier par référence, nommé d'après la référence). Réponds uniquement avec les fichiers, sans commentaire :
|
|
4
4
|
{references}`,en:`Provide the downloadable source files matching EXACTLY these document references (one file per reference, named after the reference). Reply only with the files, no commentary:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as e}from"./api-
|
|
1
|
+
import{E as e}from"./api-C9TZ4xjz.js";var t=e(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]);export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./bundle-mjs-C73ZY4La.js";import{AD as t,MD as n,ND as r,OD as i,jD as a,kD as o,wD as s,zO as c}from"./api-
|
|
1
|
+
import{r as e}from"./bundle-mjs-C73ZY4La.js";import{AD as t,MD as n,ND as r,OD as i,jD as a,kD as o,wD as s,zO as c}from"./api-C9TZ4xjz.js";import{t as l}from"./rotate-ccw-Bs40VcST.js";import{t as u}from"./trash-2-B3-1X1oZ.js";import{t as d}from"./button-DEKA-XdT.js";import{t as f}from"./format-CE4Tb-R7.js";import{n as p}from"./ConfirmDialog-BTkA9EEC.js";import{n as m}from"./trashView-CcPdpr1y.js";var h=e();function g({status:e,loadMore:t}){return e!==`CanLoadMore`&&e!==`LoadingMore`?null:(0,h.jsx)(d,{variant:`outline`,size:`sm`,className:`self-start`,disabled:e===`LoadingMore`,onClick:()=>t(50),children:s()})}function _({items:e,onRestore:s,onPurge:g}){let _=p();return(0,h.jsx)(`ul`,{className:`oc-trash__list`,children:e.map(e=>(0,h.jsxs)(`li`,{className:`oc-trash__item`,children:[(0,h.jsxs)(`div`,{className:`oc-trash__meta`,children:[(0,h.jsx)(`span`,{className:`oc-trash__title`,children:e.title||c()}),(0,h.jsxs)(`span`,{className:`oc-trash__dates`,children:[e.owner===void 0?null:(0,h.jsxs)(`span`,{className:`oc-trash__owner`,children:[e.owner,` · `]}),r({date:f(e.trashedAt)}),e.purgeAfter===null?null:` · ${n({date:m(e.purgeAfter)})}`]})]}),(0,h.jsxs)(`div`,{className:`oc-trash__actions`,children:[(0,h.jsxs)(d,{variant:`outline`,size:`sm`,onClick:()=>void s(e._id),children:[(0,h.jsx)(l,{}),` `,a()]}),(0,h.jsxs)(d,{variant:`ghost`,size:`sm`,className:`text-destructive`,onClick:async()=>{await _({title:o(),description:i(),confirmLabel:t(),destructive:!0})&&await g(e._id)},children:[(0,h.jsx)(u,{}),` `,t()]})]})]},e._id))})}export{g as n,_ as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DO as e,IZ as t,KD as n,OO as r,OZ as i,t as a}from"./api-
|
|
1
|
+
import{DO as e,IZ as t,KD as n,OO as r,OZ as i,t as a}from"./api-C9TZ4xjz.js";import"./convexApi-D2VdPGGW.js";function o(){return t(a.trash.retention,{})?.days??30}function s({folders:t,chats:i,days:a}){return t>0?e({folders:t,chats:i,days:a}):i>0?r({count:i,days:a}):n()}function c(e,t=i()){return new Date(e).toLocaleDateString(t,{day:`2-digit`,month:`2-digit`})}export{c as n,o as r,s as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as e}from"./api-
|
|
1
|
+
import{E as e}from"./api-C9TZ4xjz.js";var t=e(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]);export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as e,JH as t}from"./api-
|
|
1
|
+
import{E as e,JH as t}from"./api-C9TZ4xjz.js";var n=e(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]);function r(e,n){if(e===null||e<=n)return null;let r=Math.floor((e-n)/6e4);if(r<60)return`${r}m`;let i=Math.floor(r/60);if(i<24){let e=r%60;return e>0?`${i}h ${e}m`:`${i}h`}return`${Math.floor(i/24)}${t()} ${i%24}h`}function i(e,t){if(!e||e.length===0)return null;let n=[];for(let i of e)for(let e of i.windows)n.push({provider:i.provider,label:e.label,percentLeft:Math.round(Math.min(100,Math.max(0,100-e.usedPercent))),resetText:r(e.resetAt,t)});if(n.length===0)return null;let i=n.reduce((e,t)=>t.percentLeft<e.percentLeft?t:e),a=i.percentLeft<=10?`is-critical`:i.percentLeft<=25?`is-warn`:`is-ok`;return{percentLeft:i.percentLeft,label:i.label,resetText:i.resetText,level:a,windows:n}}export{n,i as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,l as t}from"./bundle-mjs-C73ZY4La.js";import{E as n}from"./api-
|
|
1
|
+
import{a as e,l as t}from"./bundle-mjs-C73ZY4La.js";import{E as n}from"./api-C9TZ4xjz.js";var r=n(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),i=t(e(),1),a=`background.foreground.card.card-foreground.popover.popover-foreground.primary.primary-foreground.secondary.secondary-foreground.muted.muted-foreground.accent.accent-foreground.destructive.destructive-foreground.border.input.ring.chart-1.chart-2.chart-3.chart-4.chart-5.sidebar.sidebar-foreground.sidebar-primary.sidebar-primary-foreground.sidebar-accent.sidebar-accent-foreground.sidebar-border.sidebar-ring.highlight.bookmark.voice`.split(`.`),o=[{key:`ocean`,name:`Ocean`,tokens:{colors:{light:{background:`oklch(0.985 0.012 230)`,foreground:`oklch(0.22 0.04 245)`,card:`oklch(0.995 0.008 230)`,"card-foreground":`oklch(0.22 0.04 245)`,popover:`oklch(0.995 0.008 230)`,"popover-foreground":`oklch(0.22 0.04 245)`,primary:`oklch(0.55 0.13 235)`,"primary-foreground":`oklch(0.99 0.01 230)`,secondary:`oklch(0.93 0.03 220)`,"secondary-foreground":`oklch(0.28 0.05 240)`,muted:`oklch(0.94 0.02 225)`,"muted-foreground":`oklch(0.5 0.04 235)`,accent:`oklch(0.9 0.05 200)`,"accent-foreground":`oklch(0.28 0.06 230)`,border:`oklch(0.88 0.03 225)`,input:`oklch(0.88 0.03 225)`,ring:`oklch(0.55 0.13 235)`,"chart-1":`oklch(0.6 0.13 235)`,"chart-2":`oklch(0.65 0.12 200)`,"chart-3":`oklch(0.55 0.1 260)`,"chart-4":`oklch(0.7 0.11 180)`,"chart-5":`oklch(0.5 0.12 215)`,sidebar:`oklch(0.96 0.02 228)`,"sidebar-foreground":`oklch(0.24 0.04 245)`,"sidebar-primary":`oklch(0.55 0.13 235)`,"sidebar-primary-foreground":`oklch(0.99 0.01 230)`,"sidebar-accent":`oklch(0.9 0.05 200)`,"sidebar-accent-foreground":`oklch(0.28 0.06 230)`,"sidebar-border":`oklch(0.87 0.03 225)`,"sidebar-ring":`oklch(0.55 0.13 235)`},dark:{background:`oklch(0.2 0.03 245)`,foreground:`oklch(0.95 0.02 225)`,card:`oklch(0.25 0.04 245)`,"card-foreground":`oklch(0.95 0.02 225)`,popover:`oklch(0.25 0.04 245)`,"popover-foreground":`oklch(0.95 0.02 225)`,primary:`oklch(0.7 0.12 230)`,"primary-foreground":`oklch(0.18 0.04 245)`,secondary:`oklch(0.3 0.04 240)`,"secondary-foreground":`oklch(0.95 0.02 225)`,muted:`oklch(0.3 0.03 242)`,"muted-foreground":`oklch(0.72 0.04 228)`,accent:`oklch(0.4 0.07 210)`,"accent-foreground":`oklch(0.96 0.02 220)`,border:`oklch(0.35 0.03 242)`,input:`oklch(0.35 0.03 242)`,ring:`oklch(0.7 0.12 230)`,"chart-1":`oklch(0.7 0.13 230)`,"chart-2":`oklch(0.72 0.12 195)`,"chart-3":`oklch(0.65 0.11 260)`,"chart-4":`oklch(0.76 0.1 180)`,"chart-5":`oklch(0.62 0.12 215)`,sidebar:`oklch(0.23 0.04 246)`,"sidebar-foreground":`oklch(0.95 0.02 225)`,"sidebar-primary":`oklch(0.7 0.12 230)`,"sidebar-primary-foreground":`oklch(0.18 0.04 245)`,"sidebar-accent":`oklch(0.4 0.07 210)`,"sidebar-accent-foreground":`oklch(0.96 0.02 220)`,"sidebar-border":`oklch(0.34 0.03 242)`,"sidebar-ring":`oklch(0.7 0.12 230)`}},radius:`0.75rem`,fontSans:`ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif`}},{key:`forest`,name:`Forest`,tokens:{colors:{light:{background:`oklch(0.985 0.012 130)`,foreground:`oklch(0.24 0.04 145)`,card:`oklch(0.995 0.008 130)`,"card-foreground":`oklch(0.24 0.04 145)`,popover:`oklch(0.995 0.008 130)`,"popover-foreground":`oklch(0.24 0.04 145)`,primary:`oklch(0.52 0.12 150)`,"primary-foreground":`oklch(0.99 0.01 130)`,secondary:`oklch(0.93 0.04 130)`,"secondary-foreground":`oklch(0.3 0.05 150)`,muted:`oklch(0.94 0.03 135)`,"muted-foreground":`oklch(0.5 0.04 145)`,accent:`oklch(0.9 0.06 115)`,"accent-foreground":`oklch(0.3 0.06 150)`,border:`oklch(0.88 0.03 135)`,input:`oklch(0.88 0.03 135)`,ring:`oklch(0.52 0.12 150)`,"chart-1":`oklch(0.58 0.13 150)`,"chart-2":`oklch(0.68 0.12 120)`,"chart-3":`oklch(0.6 0.11 95)`,"chart-4":`oklch(0.55 0.1 175)`,"chart-5":`oklch(0.5 0.12 140)`,sidebar:`oklch(0.96 0.02 132)`,"sidebar-foreground":`oklch(0.26 0.04 145)`,"sidebar-primary":`oklch(0.52 0.12 150)`,"sidebar-primary-foreground":`oklch(0.99 0.01 130)`,"sidebar-accent":`oklch(0.9 0.06 115)`,"sidebar-accent-foreground":`oklch(0.3 0.06 150)`,"sidebar-border":`oklch(0.87 0.03 135)`,"sidebar-ring":`oklch(0.52 0.12 150)`},dark:{background:`oklch(0.2 0.03 150)`,foreground:`oklch(0.95 0.02 130)`,card:`oklch(0.25 0.04 150)`,"card-foreground":`oklch(0.95 0.02 130)`,popover:`oklch(0.25 0.04 150)`,"popover-foreground":`oklch(0.95 0.02 130)`,primary:`oklch(0.68 0.13 145)`,"primary-foreground":`oklch(0.18 0.04 150)`,secondary:`oklch(0.3 0.04 148)`,"secondary-foreground":`oklch(0.95 0.02 130)`,muted:`oklch(0.3 0.03 150)`,"muted-foreground":`oklch(0.72 0.04 135)`,accent:`oklch(0.4 0.07 120)`,"accent-foreground":`oklch(0.96 0.02 125)`,border:`oklch(0.35 0.03 148)`,input:`oklch(0.35 0.03 148)`,ring:`oklch(0.68 0.13 145)`,"chart-1":`oklch(0.68 0.14 148)`,"chart-2":`oklch(0.74 0.12 120)`,"chart-3":`oklch(0.68 0.11 95)`,"chart-4":`oklch(0.62 0.1 175)`,"chart-5":`oklch(0.6 0.12 140)`,sidebar:`oklch(0.23 0.04 150)`,"sidebar-foreground":`oklch(0.95 0.02 130)`,"sidebar-primary":`oklch(0.68 0.13 145)`,"sidebar-primary-foreground":`oklch(0.18 0.04 150)`,"sidebar-accent":`oklch(0.4 0.07 120)`,"sidebar-accent-foreground":`oklch(0.96 0.02 125)`,"sidebar-border":`oklch(0.34 0.03 148)`,"sidebar-ring":`oklch(0.68 0.13 145)`}},radius:`0.375rem`,fontSans:`Georgia, Cambria, 'Times New Roman', Times, serif`}},{key:`dusk`,name:`Dusk`,tokens:{colors:{light:{background:`oklch(0.985 0.012 300)`,foreground:`oklch(0.24 0.05 300)`,card:`oklch(0.995 0.008 300)`,"card-foreground":`oklch(0.24 0.05 300)`,popover:`oklch(0.995 0.008 300)`,"popover-foreground":`oklch(0.24 0.05 300)`,primary:`oklch(0.55 0.16 300)`,"primary-foreground":`oklch(0.99 0.01 300)`,secondary:`oklch(0.93 0.04 310)`,"secondary-foreground":`oklch(0.3 0.06 300)`,muted:`oklch(0.94 0.03 305)`,"muted-foreground":`oklch(0.5 0.05 300)`,accent:`oklch(0.9 0.07 70)`,"accent-foreground":`oklch(0.32 0.08 60)`,border:`oklch(0.88 0.03 305)`,input:`oklch(0.88 0.03 305)`,ring:`oklch(0.55 0.16 300)`,"chart-1":`oklch(0.58 0.17 300)`,"chart-2":`oklch(0.7 0.15 70)`,"chart-3":`oklch(0.55 0.15 330)`,"chart-4":`oklch(0.65 0.14 35)`,"chart-5":`oklch(0.5 0.16 280)`,sidebar:`oklch(0.96 0.02 303)`,"sidebar-foreground":`oklch(0.26 0.05 300)`,"sidebar-primary":`oklch(0.55 0.16 300)`,"sidebar-primary-foreground":`oklch(0.99 0.01 300)`,"sidebar-accent":`oklch(0.9 0.07 70)`,"sidebar-accent-foreground":`oklch(0.32 0.08 60)`,"sidebar-border":`oklch(0.87 0.03 305)`,"sidebar-ring":`oklch(0.55 0.16 300)`},dark:{background:`oklch(0.2 0.04 300)`,foreground:`oklch(0.95 0.02 305)`,card:`oklch(0.25 0.05 300)`,"card-foreground":`oklch(0.95 0.02 305)`,popover:`oklch(0.25 0.05 300)`,"popover-foreground":`oklch(0.95 0.02 305)`,primary:`oklch(0.72 0.15 300)`,"primary-foreground":`oklch(0.18 0.04 300)`,secondary:`oklch(0.3 0.05 305)`,"secondary-foreground":`oklch(0.95 0.02 305)`,muted:`oklch(0.3 0.04 303)`,"muted-foreground":`oklch(0.72 0.05 305)`,accent:`oklch(0.45 0.1 65)`,"accent-foreground":`oklch(0.96 0.02 70)`,border:`oklch(0.35 0.04 303)`,input:`oklch(0.35 0.04 303)`,ring:`oklch(0.72 0.15 300)`,"chart-1":`oklch(0.72 0.16 300)`,"chart-2":`oklch(0.78 0.14 70)`,"chart-3":`oklch(0.68 0.15 330)`,"chart-4":`oklch(0.72 0.13 35)`,"chart-5":`oklch(0.64 0.16 280)`,sidebar:`oklch(0.23 0.05 300)`,"sidebar-foreground":`oklch(0.95 0.02 305)`,"sidebar-primary":`oklch(0.72 0.15 300)`,"sidebar-primary-foreground":`oklch(0.18 0.04 300)`,"sidebar-accent":`oklch(0.45 0.1 65)`,"sidebar-accent-foreground":`oklch(0.96 0.02 70)`,"sidebar-border":`oklch(0.34 0.04 303)`,"sidebar-ring":`oklch(0.72 0.15 300)`}},radius:`1rem`,fontSans:`ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace`}}];new Set(o.map(e=>e.key));function s(e){let t=e??localStorage.getItem(`oc.theme`)??`system`,n=()=>t===`system`?window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:t,[r,a]=(0,i.useState)(n);return(0,i.useEffect)(()=>{if(a(n()),t!==`system`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`),r=()=>a(e.matches?`dark`:`light`);return e.addEventListener(`change`,r),()=>e.removeEventListener(`change`,r)},[t]),r}function c(e,t){let n=document.documentElement.style,r=e?.colors?.[t];for(let e of a){let t=r?.[e];t===void 0?n.removeProperty(`--`+e):n.setProperty(`--`+e,t)}e?.radius===void 0?n.removeProperty(`--radius`):n.setProperty(`--radius`,e.radius),e?.fontSans===void 0?n.removeProperty(`--ui-font-sans`):n.setProperty(`--ui-font-sans`,e.fontSans),e?.fontMono===void 0?n.removeProperty(`--ui-font-mono`):n.setProperty(`--ui-font-mono`,e.fontMono);let i=e?.bpm;i!==void 0&&i>0?n.setProperty(`--heart-period`,`${(60/Math.min(90,i)).toFixed(3)}s`):i===0?n.setProperty(`--heart-period`,`0s`):n.removeProperty(`--heart-period`)}function l(e,t){(0,i.useEffect)(()=>{c(e??null,t)},[e,t])}export{r as i,s as n,o as r,l as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,l as t}from"./bundle-mjs-C73ZY4La.js";import{t as n}from"./api-
|
|
1
|
+
import{a as e,l as t}from"./bundle-mjs-C73ZY4La.js";import{t as n}from"./api-C9TZ4xjz.js";import"./convexApi-D2VdPGGW.js";import{t as r}from"./appHost-CH3EGcJw.js";var i={mod:!0,key:`k`},a={mod:!0,shift:!0,key:`o`},o={mod:!0,shift:!0,key:`ArrowUp`},s={mod:!0,shift:!0,key:`ArrowDown`};function c(e){return/mac/i.test(e)}function l(){if(typeof navigator>`u`)return``;let e=navigator;return e.userAgentData?.platform||e.platform||e.userAgent||``}var u=null;function d(){return u===null&&(u=c(l())),u}var f={arrowup:`↑`,arrowdown:`↓`,arrowleft:`←`,arrowright:`→`};function p(e,t){let n=f[e.key.toLowerCase()]??e.key.toUpperCase();if(t){let t=``;return e.alt&&(t+=`⌥`),e.shift&&(t+=`⇧`),e.mod&&(t+=`⌘`),t+n}let r=[];return e.mod&&r.push(`Ctrl`),e.shift&&r.push(`Shift`),e.alt&&r.push(`Alt`),r.push(n),r.join(`+`)}function m(e,t){let n=e.metaKey||e.ctrlKey;return!!t.mod!==n||!!t.shift!==e.shiftKey||!!t.alt!==e.altKey?!1:e.key.toLowerCase()===t.key.toLowerCase()||h(e.code)===t.key.toLowerCase()}function h(e){if(!e)return null;let t=/^Key([A-Z])$/.exec(e);if(t?.[1])return t[1].toLowerCase();let n=/^Digit([0-9])$/.exec(e);return n?.[1]?n[1]:null}function g(e){if(!/^[a-z0-9]$/i.test(e.key)||!e.mod&&!e.alt)return!1;let t=t=>!!e.mod==!!t.mod&&!!e.shift==!!t.shift&&!!e.alt==!!t.alt&&e.key.toLowerCase()===t.key.toLowerCase();return!t(i)&&!t(a)}function _(e){if([`Shift`,`Control`,`Meta`,`Alt`].includes(e.key))return null;let t=/^[a-z0-9]$/i.test(e.key)?e.key.toLowerCase():h(e.code)??e.key.toLowerCase(),n={...e.metaKey||e.ctrlKey?{mod:!0}:{},...e.shiftKey?{shift:!0}:{},...e.altKey?{alt:!0}:{},key:t};return g(n)?n:null}function v(e,{key:t,value:i}){let a=e.getQuery(n.me.getMe,{host:r});if(!a?.ui)return;let o={...a.ui.effective},s={...a.ui.userOverrides},c=t,l=t;i===null?delete s[l]:(o[c]=i,s[l]=i),e.setQuery(n.me.getMe,{host:r},{...a,ui:{...a.ui,effective:o,userOverrides:s}})}var y=t(e(),1),b=`oc.fontScale`,x={sm:`87.5%`,md:``,lg:`112.5%`,xl:`125%`,"2xl":`137.5%`,"3xl":`150%`},S=[`sm`,`md`,`lg`,`xl`,`2xl`,`3xl`];function C(e){return e!==null&&S.includes(e)}function w(e){document.documentElement.style.fontSize=x[e]}function T(e){(0,y.useEffect)(()=>{let t=localStorage.getItem(b),n=e??(C(t)?t:`md`);localStorage.setItem(b,n),w(n)},[e])}export{o as a,d as c,p as d,s as i,m as l,T as n,a as o,v as r,i as s,S as t,_ as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as e,i as t,l as n,r}from"./bundle-mjs-C73ZY4La.js";import{Cw as i,E as a,FZ as o,GE as s,IZ as c,JD as l,Sw as u,Tw as d,UE as f,WE as p,XD as m,YD as h,bw as g,t as _,vw as v,ww as y,xw as b,yw as x}from"./api-DNOgniXv.js";import{r as S}from"./useNavigate-D3GIoxyW.js";import{t as C}from"./check-ByAmVIRT.js";import{t as w}from"./server-BJJ3cVit.js";import{t as ee}from"./star-DBwak3-9.js";import{t as T}from"./input-BOl1ZpD6.js";import"./convexApi-4XI9Ua6G.js";import{t as E}from"./badge-D7TV9F5d.js";import{a as te,n as D,o as ne,r as re,t as O}from"./dialog-Cw-buQuR.js";function k(e){return S({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}var A=a(`bot`,[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]),ie=a(`corner-up-left`,[[`path`,{d:`M20 20v-7a4 4 0 0 0-4-4H4`,key:`1nkjon`}],[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}]]),j=a(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),ae=a(`folder-plus`,[[`path`,{d:`M12 10v6`,key:`1bos4e`}],[`path`,{d:`M9 13h6`,key:`1uhe8q`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),M=a(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),oe=a(`message-square-plus`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M12 8v6`,key:`1ib9pf`}],[`path`,{d:`M9 11h6`,key:`1fldmi`}]]),N=a(`message-square`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]),se=a(`panel-left-close`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m16 15-3-3 3-3`,key:`14y99z`}]]),P=a(`pin`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`,key:`1nkz8b`}]]),F=a(`pin-off`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89`,key:`znwnzq`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11`,key:`c9qhm2`}]]),I=n(e(),1),L=120*1e3;function ce(e,t){if(!e)return null;if(e.kind===`repeated_failures`)return{kind:`repeated_failures`,tool:e.tool,failures:e.failures,sameTool:e.sameTool};let n=t-e.quietSince;return n>=12e4?{kind:`quiet_after_failure`,tool:e.tool,quietMs:n}:null}function R(e){return e?.kind===`failed_then_quiet`?e.quietSince+L:null}function le(e){return e.kind===`quiet_after_failure`?f({tool:e.tool,minutes:String(Math.floor(e.quietMs/6e4))}):e.sameTool?s({tool:e.tool,count:String(e.failures)}):p({tool:e.tool,count:String(e.failures)})}function ue(e,t){let n=new Map,r=new Map;for(let i of e??[]){let e=ce(i.facts,t);e!==null&&(r.set(i.messageId,e),n.has(i.chatId)||n.set(i.chatId,e))}return{byChat:n,byMessage:r}}function de(e,t){let n=null;for(let r of e??[]){let e=R(r.facts);if(e===null)continue;let i=e>t?e:t+3e4;n=n===null?i:Math.min(n,i)}return n}var z=(0,I.createContext)(new Map);function fe(e,t){return e?{className:`oc-chatitem__busy oc-chatitem__busy--struggling`,label:le(e),struggling:!0}:{className:`oc-chatitem__busy`,label:t,struggling:!1}}var pe=[];function me(e){let t=[...e??pe].sort().join(`,`),n=(0,I.useMemo)(()=>t===``?null:{chatIds:t.split(`,`)},[t]),r=c(_.chatReads.liveTurnDifficulty,n??`skip`),[i,a]=(0,I.useState)(()=>Date.now()),o=n===null?null:de(r,i);return(0,I.useEffect)(()=>{if(o===null)return;let e=window.setTimeout(()=>a(Date.now()),Math.max(o-Date.now(),0)+250);return()=>window.clearTimeout(e)},[o]),(0,I.useMemo)(()=>ue(n===null?void 0:r,Math.max(i,Date.now())),[r,i,n])}var he=n(t());function B(e){return new Map(e.map(e=>[e._id,e]))}function ge(e,t){let n=t.parentId??null;return n===null?null:e.has(n)?n:null}function _e(e){return[...e].sort((e,t)=>(e.sortKey??0)-(t.sortKey??0))}function V(e){let t=B(e);return _e(e.filter(e=>ge(t,e)===null))}function H(e,t){let n=B(e);return _e(e.filter(e=>ge(n,e)===t))}function ve(e,t){let n=B(e);if(!n.has(t))return[];let r=new Map;for(let t of e){let e=ge(n,t);if(e===null)continue;let i=r.get(e);i===void 0?r.set(e,[t._id]):i.push(t._id)}let i=[],a=new Set,o=[t];for(;o.length>0;){let e=o.shift();if(!a.has(e)){a.add(e),i.push(e);for(let t of r.get(e)??[])o.push(t)}}return i}function ye(e,t,n){return n===null?!1:n===t||ve(e,t).includes(n)}function U(e,t,n){return!(ye(e,t,n)||!e.some(e=>e._id===t)||n!==null&&!e.some(e=>e._id===n))}function be(e,t){let n=B(e),r=n.get(t);if(r===void 0)return[];let i=new Set([t]),a=[r];for(;;){let e=ge(n,r);if(e===null||i.has(e))return a.reverse();i.add(e),r=n.get(e),a.push(r)}}function xe(e,t){let n=be(e,t);return n.length>0?n[0]._id:t}function Se(e){let t=[],n=(r,i)=>{for(let a of H(e,r))t.push({node:a,depth:i}),n(a._id,i+1)};return n(null,1),t}var W=r();function Ce(e){let t=new Map;for(let n of e){let e=t.get(n.instanceName);e||(e={instanceName:n.instanceName,kind:n.kind,agents:[]},t.set(n.instanceName,e)),e.agents.push(n)}let n=e=>(e.displayName??e.agentId).toLowerCase();for(let e of t.values())e.agents.sort((e,t)=>e.isDefault===t.isDefault?n(e).localeCompare(n(t)):e.isDefault?-1:1);let r=[...t.values()],i=e=>e.agents.some(e=>e.isDefault);return r.sort((e,t)=>i(e)===i(t)?e.instanceName.localeCompare(t.instanceName):i(e)?-1:1),r}function we(e,t){let n=t.trim().toLowerCase();return n?e.filter(e=>[e.displayName,e.agentId,e.instanceName,e.model,e.description].filter(Boolean).some(e=>e.toLowerCase().includes(n))):e}function Te({open:e,onOpenChange:t,agents:n,onPick:r}){let[a,o]=(0,I.useState)(``),s=(0,I.useMemo)(()=>Ce(we(n??[],a)),[n,a]);return(0,W.jsx)(O,{open:e,onOpenChange:t,children:(0,W.jsxs)(D,{className:`oc-agentpicker`,children:[(0,W.jsxs)(te,{children:[(0,W.jsx)(ne,{children:d()}),(0,W.jsx)(re,{children:y()})]}),n===void 0?(0,W.jsx)(`p`,{className:`oc-agentpicker__hint`,children:i()}):n.length===0?(0,W.jsx)(`p`,{className:`oc-agentpicker__hint`,children:u()}):(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(T,{autoFocus:!0,value:a,onChange:e=>o(e.target.value),placeholder:b(),className:`oc-agentpicker__search`,"aria-label":g()}),(0,W.jsx)(`div`,{className:`oc-agentpicker__list`,role:`listbox`,children:s.map(e=>(0,W.jsxs)(`div`,{className:`oc-agentpicker__group`,children:[(0,W.jsxs)(`div`,{className:`oc-agentpicker__instance`,children:[(0,W.jsx)(w,{size:13,"aria-hidden":!0}),(0,W.jsx)(`span`,{children:e.instanceName}),(0,W.jsx)(E,{variant:`outline`,className:`oc-agentpicker__kind`,children:e.kind})]}),e.agents.map(e=>(0,W.jsxs)(`button`,{type:`button`,role:`option`,"aria-selected":!1,className:`oc-agentpicker__item`,onClick:()=>r(e.instanceName,e.agentId),disabled:e.state===`deleted`,title:e.state===`deleted`?x():void 0,children:[(0,W.jsx)(A,{size:15,"aria-hidden":!0,className:`oc-agentpicker__icon`}),(0,W.jsxs)(`span`,{className:`oc-agentpicker__main`,children:[(0,W.jsxs)(`span`,{className:`oc-agentpicker__label`,children:[e.emoji?`${e.emoji} `:``,e.displayName??e.agentId]}),e.description?(0,W.jsx)(`span`,{className:`oc-agentpicker__desc`,children:e.description}):null]}),e.model?(0,W.jsx)(`span`,{className:`oc-agentpicker__model`,children:e.model}):null,e.isDefault?(0,W.jsx)(ee,{size:13,"aria-label":v(),className:`oc-agentpicker__default`}):null]},`${e.instanceName}/${e.agentId}`))]},e.instanceName))})]})]})})}var Ee=null;function De(e,t){Ee={messageId:e,terms:t}}function Oe(e){if(Ee===null||Ee.messageId!==e)return null;let t=Ee.terms;return Ee=null,t}function ke(){var e=[...arguments];return(0,I.useMemo)(()=>t=>{e.forEach(e=>e(t))},e)}var Ae=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function je(e){let t=Object.prototype.toString.call(e);return t===`[object Window]`||t===`[object global]`}function Me(e){return`nodeType`in e}function G(e){return e?je(e)?e:Me(e)?e.ownerDocument?.defaultView??window:window:window}function Ne(e){let{Document:t}=G(e);return e instanceof t}function Pe(e){return!je(e)&&e instanceof G(e).HTMLElement}function Fe(e){return e instanceof G(e).SVGElement}function Ie(e){return e?je(e)?e.document:Me(e)?Ne(e)?e:Pe(e)||Fe(e)?e.ownerDocument:document:document:document}var K=Ae?I.useLayoutEffect:I.useEffect;function Le(e){let t=(0,I.useRef)(e);return K(()=>{t.current=e}),(0,I.useCallback)(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function Re(){let e=(0,I.useRef)(null);return[(0,I.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,I.useCallback)(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[])]}function ze(e,t){t===void 0&&(t=[e]);let n=(0,I.useRef)(e);return K(()=>{n.current!==e&&(n.current=e)},t),n}function Be(e,t){let n=(0,I.useRef)();return(0,I.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function Ve(e){let t=Le(e),n=(0,I.useRef)(null);return[n,(0,I.useCallback)(e=>{e!==n.current&&t?.(e,n.current),n.current=e},[])]}function He(e){let t=(0,I.useRef)();return(0,I.useEffect)(()=>{t.current=e},[e]),t.current}var Ue={};function We(e,t){return(0,I.useMemo)(()=>{if(t)return t;let n=Ue[e]==null?0:Ue[e]+1;return Ue[e]=n,e+`-`+n},[e,t])}function Ge(e){return function(t){return[...arguments].slice(1).reduce((t,n)=>{let r=Object.entries(n);for(let[n,i]of r){let r=t[n];r!=null&&(t[n]=r+e*i)}return t},{...t})}}var Ke=Ge(1),qe=Ge(-1);function Je(e){return`clientX`in e&&`clientY`in e}function Ye(e){if(!e)return!1;let{KeyboardEvent:t}=G(e.target);return t&&e instanceof t}function Xe(e){if(!e)return!1;let{TouchEvent:t}=G(e.target);return t&&e instanceof t}function Ze(e){if(Xe(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return Je(e)?{x:e.clientX,y:e.clientY}:null}var q=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return`translate3d(`+(t?Math.round(t):0)+`px, `+(n?Math.round(n):0)+`px, 0)`}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return`scaleX(`+t+`) scaleY(`+n+`)`}},Transform:{toString(e){if(e)return[q.Translate.toString(e),q.Scale.toString(e)].join(` `)}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+` `+n+`ms `+r}}}),Qe=`a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]`;function $e(e){return e.matches(Qe)?e:e.querySelector(Qe)}var et={display:`none`};function tt(e){let{id:t,value:n}=e;return I.createElement(`div`,{id:t,style:et},n)}function nt(e){let{id:t,announcement:n,ariaLiveType:r=`assertive`}=e;return I.createElement(`div`,{id:t,style:{position:`fixed`,top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:`hidden`,clip:`rect(0 0 0 0)`,clipPath:`inset(100%)`,whiteSpace:`nowrap`},role:`status`,"aria-live":r,"aria-atomic":!0},n)}function rt(){let[e,t]=(0,I.useState)(``);return{announce:(0,I.useCallback)(e=>{e!=null&&t(e)},[]),announcement:e}}var it=(0,I.createContext)(null);function at(e){let t=(0,I.useContext)(it);(0,I.useEffect)(()=>{if(!t)throw Error(`useDndMonitor must be used within a children of <DndContext>`);return t(e)},[e,t])}function ot(){let[e]=(0,I.useState)(()=>new Set),t=(0,I.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,I.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>e[n]?.call(e,r))},[e]),t]}var st={draggable:`
|
|
1
|
+
import{a as e,i as t,l as n,r}from"./bundle-mjs-C73ZY4La.js";import{Cw as i,E as a,FZ as o,GE as s,IZ as c,JD as l,Sw as u,Tw as d,UE as f,WE as p,XD as m,YD as h,bw as g,t as _,vw as v,ww as y,xw as b,yw as x}from"./api-C9TZ4xjz.js";import{r as S}from"./useNavigate-D3GIoxyW.js";import{t as C}from"./check-DLsNvgAq.js";import{t as w}from"./server-D8sEPnaP.js";import{t as ee}from"./star-DgW-1Cj9.js";import{t as T}from"./input-BW0GOs_g.js";import"./convexApi-D2VdPGGW.js";import{t as E}from"./badge-UrSDbO1c.js";import{a as te,n as D,o as ne,r as re,t as O}from"./dialog-CHpclz_0.js";function k(e){return S({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}var A=a(`bot`,[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]),ie=a(`corner-up-left`,[[`path`,{d:`M20 20v-7a4 4 0 0 0-4-4H4`,key:`1nkjon`}],[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}]]),j=a(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),ae=a(`folder-plus`,[[`path`,{d:`M12 10v6`,key:`1bos4e`}],[`path`,{d:`M9 13h6`,key:`1uhe8q`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),M=a(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),oe=a(`message-square-plus`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M12 8v6`,key:`1ib9pf`}],[`path`,{d:`M9 11h6`,key:`1fldmi`}]]),N=a(`message-square`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]),se=a(`panel-left-close`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m16 15-3-3 3-3`,key:`14y99z`}]]),P=a(`pin`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`,key:`1nkz8b`}]]),F=a(`pin-off`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89`,key:`znwnzq`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11`,key:`c9qhm2`}]]),I=n(e(),1),L=120*1e3;function ce(e,t){if(!e)return null;if(e.kind===`repeated_failures`)return{kind:`repeated_failures`,tool:e.tool,failures:e.failures,sameTool:e.sameTool};let n=t-e.quietSince;return n>=12e4?{kind:`quiet_after_failure`,tool:e.tool,quietMs:n}:null}function R(e){return e?.kind===`failed_then_quiet`?e.quietSince+L:null}function le(e){return e.kind===`quiet_after_failure`?f({tool:e.tool,minutes:String(Math.floor(e.quietMs/6e4))}):e.sameTool?s({tool:e.tool,count:String(e.failures)}):p({tool:e.tool,count:String(e.failures)})}function ue(e,t){let n=new Map,r=new Map;for(let i of e??[]){let e=ce(i.facts,t);e!==null&&(r.set(i.messageId,e),n.has(i.chatId)||n.set(i.chatId,e))}return{byChat:n,byMessage:r}}function de(e,t){let n=null;for(let r of e??[]){let e=R(r.facts);if(e===null)continue;let i=e>t?e:t+3e4;n=n===null?i:Math.min(n,i)}return n}var z=(0,I.createContext)(new Map);function fe(e,t){return e?{className:`oc-chatitem__busy oc-chatitem__busy--struggling`,label:le(e),struggling:!0}:{className:`oc-chatitem__busy`,label:t,struggling:!1}}var pe=[];function me(e){let t=[...e??pe].sort().join(`,`),n=(0,I.useMemo)(()=>t===``?null:{chatIds:t.split(`,`)},[t]),r=c(_.chatReads.liveTurnDifficulty,n??`skip`),[i,a]=(0,I.useState)(()=>Date.now()),o=n===null?null:de(r,i);return(0,I.useEffect)(()=>{if(o===null)return;let e=window.setTimeout(()=>a(Date.now()),Math.max(o-Date.now(),0)+250);return()=>window.clearTimeout(e)},[o]),(0,I.useMemo)(()=>ue(n===null?void 0:r,Math.max(i,Date.now())),[r,i,n])}var he=n(t());function B(e){return new Map(e.map(e=>[e._id,e]))}function ge(e,t){let n=t.parentId??null;return n===null?null:e.has(n)?n:null}function _e(e){return[...e].sort((e,t)=>(e.sortKey??0)-(t.sortKey??0))}function V(e){let t=B(e);return _e(e.filter(e=>ge(t,e)===null))}function H(e,t){let n=B(e);return _e(e.filter(e=>ge(n,e)===t))}function ve(e,t){let n=B(e);if(!n.has(t))return[];let r=new Map;for(let t of e){let e=ge(n,t);if(e===null)continue;let i=r.get(e);i===void 0?r.set(e,[t._id]):i.push(t._id)}let i=[],a=new Set,o=[t];for(;o.length>0;){let e=o.shift();if(!a.has(e)){a.add(e),i.push(e);for(let t of r.get(e)??[])o.push(t)}}return i}function ye(e,t,n){return n===null?!1:n===t||ve(e,t).includes(n)}function U(e,t,n){return!(ye(e,t,n)||!e.some(e=>e._id===t)||n!==null&&!e.some(e=>e._id===n))}function be(e,t){let n=B(e),r=n.get(t);if(r===void 0)return[];let i=new Set([t]),a=[r];for(;;){let e=ge(n,r);if(e===null||i.has(e))return a.reverse();i.add(e),r=n.get(e),a.push(r)}}function xe(e,t){let n=be(e,t);return n.length>0?n[0]._id:t}function Se(e){let t=[],n=(r,i)=>{for(let a of H(e,r))t.push({node:a,depth:i}),n(a._id,i+1)};return n(null,1),t}var W=r();function Ce(e){let t=new Map;for(let n of e){let e=t.get(n.instanceName);e||(e={instanceName:n.instanceName,kind:n.kind,agents:[]},t.set(n.instanceName,e)),e.agents.push(n)}let n=e=>(e.displayName??e.agentId).toLowerCase();for(let e of t.values())e.agents.sort((e,t)=>e.isDefault===t.isDefault?n(e).localeCompare(n(t)):e.isDefault?-1:1);let r=[...t.values()],i=e=>e.agents.some(e=>e.isDefault);return r.sort((e,t)=>i(e)===i(t)?e.instanceName.localeCompare(t.instanceName):i(e)?-1:1),r}function we(e,t){let n=t.trim().toLowerCase();return n?e.filter(e=>[e.displayName,e.agentId,e.instanceName,e.model,e.description].filter(Boolean).some(e=>e.toLowerCase().includes(n))):e}function Te({open:e,onOpenChange:t,agents:n,onPick:r}){let[a,o]=(0,I.useState)(``),s=(0,I.useMemo)(()=>Ce(we(n??[],a)),[n,a]);return(0,W.jsx)(O,{open:e,onOpenChange:t,children:(0,W.jsxs)(D,{className:`oc-agentpicker`,children:[(0,W.jsxs)(te,{children:[(0,W.jsx)(ne,{children:d()}),(0,W.jsx)(re,{children:y()})]}),n===void 0?(0,W.jsx)(`p`,{className:`oc-agentpicker__hint`,children:i()}):n.length===0?(0,W.jsx)(`p`,{className:`oc-agentpicker__hint`,children:u()}):(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(T,{autoFocus:!0,value:a,onChange:e=>o(e.target.value),placeholder:b(),className:`oc-agentpicker__search`,"aria-label":g()}),(0,W.jsx)(`div`,{className:`oc-agentpicker__list`,role:`listbox`,children:s.map(e=>(0,W.jsxs)(`div`,{className:`oc-agentpicker__group`,children:[(0,W.jsxs)(`div`,{className:`oc-agentpicker__instance`,children:[(0,W.jsx)(w,{size:13,"aria-hidden":!0}),(0,W.jsx)(`span`,{children:e.instanceName}),(0,W.jsx)(E,{variant:`outline`,className:`oc-agentpicker__kind`,children:e.kind})]}),e.agents.map(e=>(0,W.jsxs)(`button`,{type:`button`,role:`option`,"aria-selected":!1,className:`oc-agentpicker__item`,onClick:()=>r(e.instanceName,e.agentId),disabled:e.state===`deleted`,title:e.state===`deleted`?x():void 0,children:[(0,W.jsx)(A,{size:15,"aria-hidden":!0,className:`oc-agentpicker__icon`}),(0,W.jsxs)(`span`,{className:`oc-agentpicker__main`,children:[(0,W.jsxs)(`span`,{className:`oc-agentpicker__label`,children:[e.emoji?`${e.emoji} `:``,e.displayName??e.agentId]}),e.description?(0,W.jsx)(`span`,{className:`oc-agentpicker__desc`,children:e.description}):null]}),e.model?(0,W.jsx)(`span`,{className:`oc-agentpicker__model`,children:e.model}):null,e.isDefault?(0,W.jsx)(ee,{size:13,"aria-label":v(),className:`oc-agentpicker__default`}):null]},`${e.instanceName}/${e.agentId}`))]},e.instanceName))})]})]})})}var Ee=null;function De(e,t){Ee={messageId:e,terms:t}}function Oe(e){if(Ee===null||Ee.messageId!==e)return null;let t=Ee.terms;return Ee=null,t}function ke(){var e=[...arguments];return(0,I.useMemo)(()=>t=>{e.forEach(e=>e(t))},e)}var Ae=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function je(e){let t=Object.prototype.toString.call(e);return t===`[object Window]`||t===`[object global]`}function Me(e){return`nodeType`in e}function G(e){return e?je(e)?e:Me(e)?e.ownerDocument?.defaultView??window:window:window}function Ne(e){let{Document:t}=G(e);return e instanceof t}function Pe(e){return!je(e)&&e instanceof G(e).HTMLElement}function Fe(e){return e instanceof G(e).SVGElement}function Ie(e){return e?je(e)?e.document:Me(e)?Ne(e)?e:Pe(e)||Fe(e)?e.ownerDocument:document:document:document}var K=Ae?I.useLayoutEffect:I.useEffect;function Le(e){let t=(0,I.useRef)(e);return K(()=>{t.current=e}),(0,I.useCallback)(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function Re(){let e=(0,I.useRef)(null);return[(0,I.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,I.useCallback)(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[])]}function ze(e,t){t===void 0&&(t=[e]);let n=(0,I.useRef)(e);return K(()=>{n.current!==e&&(n.current=e)},t),n}function Be(e,t){let n=(0,I.useRef)();return(0,I.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function Ve(e){let t=Le(e),n=(0,I.useRef)(null);return[n,(0,I.useCallback)(e=>{e!==n.current&&t?.(e,n.current),n.current=e},[])]}function He(e){let t=(0,I.useRef)();return(0,I.useEffect)(()=>{t.current=e},[e]),t.current}var Ue={};function We(e,t){return(0,I.useMemo)(()=>{if(t)return t;let n=Ue[e]==null?0:Ue[e]+1;return Ue[e]=n,e+`-`+n},[e,t])}function Ge(e){return function(t){return[...arguments].slice(1).reduce((t,n)=>{let r=Object.entries(n);for(let[n,i]of r){let r=t[n];r!=null&&(t[n]=r+e*i)}return t},{...t})}}var Ke=Ge(1),qe=Ge(-1);function Je(e){return`clientX`in e&&`clientY`in e}function Ye(e){if(!e)return!1;let{KeyboardEvent:t}=G(e.target);return t&&e instanceof t}function Xe(e){if(!e)return!1;let{TouchEvent:t}=G(e.target);return t&&e instanceof t}function Ze(e){if(Xe(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return Je(e)?{x:e.clientX,y:e.clientY}:null}var q=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return`translate3d(`+(t?Math.round(t):0)+`px, `+(n?Math.round(n):0)+`px, 0)`}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return`scaleX(`+t+`) scaleY(`+n+`)`}},Transform:{toString(e){if(e)return[q.Translate.toString(e),q.Scale.toString(e)].join(` `)}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+` `+n+`ms `+r}}}),Qe=`a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]`;function $e(e){return e.matches(Qe)?e:e.querySelector(Qe)}var et={display:`none`};function tt(e){let{id:t,value:n}=e;return I.createElement(`div`,{id:t,style:et},n)}function nt(e){let{id:t,announcement:n,ariaLiveType:r=`assertive`}=e;return I.createElement(`div`,{id:t,style:{position:`fixed`,top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:`hidden`,clip:`rect(0 0 0 0)`,clipPath:`inset(100%)`,whiteSpace:`nowrap`},role:`status`,"aria-live":r,"aria-atomic":!0},n)}function rt(){let[e,t]=(0,I.useState)(``);return{announce:(0,I.useCallback)(e=>{e!=null&&t(e)},[]),announcement:e}}var it=(0,I.createContext)(null);function at(e){let t=(0,I.useContext)(it);(0,I.useEffect)(()=>{if(!t)throw Error(`useDndMonitor must be used within a children of <DndContext>`);return t(e)},[e,t])}function ot(){let[e]=(0,I.useState)(()=>new Set),t=(0,I.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,I.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>e[n]?.call(e,r))},[e]),t]}var st={draggable:`
|
|
2
2
|
To pick up a draggable item, press the space bar.
|
|
3
3
|
While dragging, use the arrow keys to move the item.
|
|
4
4
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,l as t}from"./bundle-mjs-C73ZY4La.js";import{AZ as n,HZ as r,LZ as i,PZ as a,UZ as o}from"./api-
|
|
1
|
+
import{a as e,l as t}from"./bundle-mjs-C73ZY4La.js";import{AZ as n,HZ as r,LZ as i,PZ as a,UZ as o}from"./api-C9TZ4xjz.js";var s=t(e(),1),c=(e,t,n)=>r=>{let i={...r.queries},a=r.nextPageKey,o=r.nextPageKey+1,s=r.nextPageKey+2;i[a]={query:r.query,args:{...r.args,paginationOpts:{...r.queries[e].args.paginationOpts,endCursor:t}}},i[o]={query:r.query,args:{...r.args,paginationOpts:{...r.queries[e].args.paginationOpts,cursor:t,endCursor:n}}};let c={...r.ongoingSplits};return c[e]=[a,o],{...r,nextPageKey:s,queries:i,ongoingSplits:c}},l=e=>t=>{let n=t.ongoingSplits[e];if(n===void 0)return t;let r={...t.queries};delete r[e];let i={...t.ongoingSplits};delete i[e];let a=t.pageKeys.slice(),o=t.pageKeys.findIndex(t=>t===e);return o>=0&&(a=[...t.pageKeys.slice(0,o),...n,...t.pageKeys.slice(o+1)]),{...t,queries:r,pageKeys:a,ongoingSplits:i}};function u(e,t,n){let{user:r}=p(e,t,n,!0);return r}var d=Symbol(`includePageKeys`),f=Symbol(`page`);function p(e,t,u,p=!0){if(typeof u?.initialNumItems!=`number`||u.initialNumItems<0)throw Error(`\`options.initialNumItems\` must be a positive number. Received \`${u?.initialNumItems}\`.`);let m=t===`skip`,g=m?{}:t,_=i(e),v=(0,s.useMemo)(()=>()=>{let t=h();return{query:e,args:g,id:t,nextPageKey:1,pageKeys:m?[]:[0],queries:m?{}:{0:{query:e,args:{...g,paginationOpts:{numItems:u.initialNumItems,cursor:null,id:t}}}},ongoingSplits:{},skip:m}},[JSON.stringify(o(g)),_,u.initialNumItems,m]),[y,b]=(0,s.useState)(v),x=y;(i(e)!==i(y.query)||JSON.stringify(o(g))!==JSON.stringify(o(y.args))||m!==y.skip)&&(x=v(),b(x));let S=a().logger,C=n(x.queries),w=u[d]??!1,[T,E,D]=(0,s.useMemo)(()=>{let e,t=[];for(let n of x.pageKeys){if(e=C[n],e===void 0)break;if(e instanceof Error){if(e.message.includes(`InvalidCursor`)||e instanceof r&&typeof e.data==`object`&&e.data?.isConvexSystemError===!0&&e.data?.paginationError===`InvalidCursor`)return S.warn(`usePaginatedQuery hit error, resetting pagination state: `+e.message),b(v),[[],void 0,void 0];if(p)throw e;return[t,void 0,e]}let i=x.ongoingSplits[n];if(i===void 0?e.splitCursor&&(e.pageStatus===`SplitRecommended`||e.pageStatus===`SplitRequired`||e.page.length>u.initialNumItems*2)&&b(c(n,e.splitCursor,e.continueCursor)):C[i[0]]!==void 0&&C[i[1]]!==void 0&&b(l(n)),e.pageStatus===`SplitRequired`)return[t,void 0,void 0];t.push(...w?e.page.map(e=>({...e,[f]:n.toString()})):e.page)}return[t,e,void 0]},[C,x.pageKeys,x.ongoingSplits,u.initialNumItems,v,S,w,p]);return{user:{results:T,...(0,s.useMemo)(()=>{if(D!==void 0)return{status:`Error`,isLoading:!1,error:D,loadMore:()=>{}};if(E===void 0)return x.nextPageKey===1?{status:`LoadingFirstPage`,isLoading:!0,loadMore:()=>{}}:{status:`LoadingMore`,isLoading:!0,loadMore:e=>{}};if(E.isDone)return{status:`Exhausted`,isLoading:!1,loadMore:e=>{}};let e=E.continueCursor,t=!1;return{status:`CanLoadMore`,isLoading:!1,loadMore:n=>{t||(t=!0,b(t=>{let r=[...t.pageKeys,t.nextPageKey],i={...t.queries};return i[t.nextPageKey]={query:t.query,args:{...t.args,paginationOpts:{numItems:n,cursor:e,id:t.id}}},{...t,nextPageKey:t.nextPageKey+1,pageKeys:r,queries:i}}))}}},[D,E,x.nextPageKey])},internal:{state:x}}}var m=0;function h(){return m++,m}export{u as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as e}from"./api-
|
|
1
|
+
import{E as e}from"./api-C9TZ4xjz.js";var t=e(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),n=e(`sliders-horizontal`,[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]),r=e(`user-plus`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`19`,x2:`19`,y1:`8`,y2:`14`,key:`1bvyxn`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]),i=e(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]);export{t as i,r as n,n as r,i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{E as e}from"./api-C9TZ4xjz.js";var t=e(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);export{t};
|