@qredence/fleet 0.7.0 → 0.7.2
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/CHANGELOG.md +12 -0
- package/dist/web/client/assets/{action-swap-roll-BfVrBOVd.js → action-swap-roll-Bek47h-E.js} +1 -1
- package/dist/web/client/assets/{alert-dialog-FCppNafx.js → alert-dialog-OoasP5iO.js} +1 -1
- package/dist/web/client/assets/{artifacts-panel-Qd6JlHzz.js → artifacts-panel-DVY0-7X0.js} +1 -1
- package/dist/web/client/assets/{badge-BjFxrtmB.js → badge-9wr3qUp1.js} +7 -7
- package/dist/web/client/assets/{button-BJyg7l5W.js → button-Bqms7ZKX.js} +1 -1
- package/dist/web/client/assets/{card-BScRdZNS.js → card-DPCbcrMK.js} +1 -1
- package/dist/web/client/assets/{chat-command-palette-CPlJp2cO.js → chat-command-palette-CXS5eTiy.js} +1 -1
- package/dist/web/client/assets/{chunk-YOKDWASO-C8deEx7Z.js → chunk-YOKDWASO-Dego39cu.js} +4 -4
- package/dist/web/client/assets/{citations-BhyqbxcZ.js → citations-C7USoVdz.js} +1 -1
- package/dist/web/client/assets/{command-Bo31U-UD.js → command-s2yLD3tA.js} +1 -1
- package/dist/web/client/assets/{create-project-dialog-SDyXTpl-.js → create-project-dialog-C99_Lyjg.js} +1 -1
- package/dist/web/client/assets/{dialog-DLIPvl1s.js → dialog-DuCD5hRq.js} +1 -1
- package/dist/web/client/assets/{dist-CZDnnosQ.js → dist-QgsZ1U9l.js} +1 -1
- package/dist/web/client/assets/{ease-DKi-MOH5.js → ease-2gsl7ABx.js} +1 -1
- package/dist/web/client/assets/{fork-picker-dialog-BDleMADF.js → fork-picker-dialog--dV6TE-9.js} +1 -1
- package/dist/web/client/assets/globals-BXtzVIWE.css +2 -0
- package/dist/web/client/assets/{highlighted-body-KPVGNVTW-CZcNaoxi.js → highlighted-body-KPVGNVTW-CSgDVUQp.js} +1 -1
- package/dist/web/client/assets/index-C2EkVtv5.js +13 -0
- package/dist/web/client/assets/{input-Ce8yLnXY.js → input-DECT4vz2.js} +1 -1
- package/dist/web/client/assets/{input-group-BZLQiZOA.js → input-group-CZlz1ygA.js} +1 -1
- package/dist/web/client/assets/{ipython-tool-CuSGRhXl.js → ipython-tool-Bs6ESZe1.js} +1 -1
- package/dist/web/client/assets/{layout-constants-Bl6XCvhY.js → layout-constants-C4hoW3YP.js} +1 -1
- package/dist/web/client/assets/{markdown-C-Y9gskI.js → markdown-B2tpfUKu.js} +2 -2
- package/dist/web/client/assets/{markdown-code-BqFVdovL.js → markdown-code-B5YUmtLX.js} +1 -1
- package/dist/web/client/assets/mermaid-HWGCJPDP-BpEVCu9T.js +1 -0
- package/dist/web/client/assets/{message-queue-CiptKSb6.js → message-queue-BD2sIUTH.js} +1 -1
- package/dist/web/client/assets/{model-selector-list-BHQ-Q8b9.js → model-selector-list-zPZRE3JY.js} +1 -1
- package/dist/web/client/assets/{notify-BC0a76VJ.js → notify-mVA6z9Ly.js} +1 -1
- package/dist/web/client/assets/{openui-renderer-CH9K7_8t.js → openui-renderer-ByP8yQph.js} +1 -1
- package/dist/web/client/assets/{preload-helper-Czpn1I53.js → preload-helper-BZ1Pz5am.js} +1 -1
- package/dist/web/client/assets/{prompt-input-IwZOepG7.js → prompt-input-Bnl0HyL6.js} +1 -1
- package/dist/web/client/assets/{prompt-suggestions-BRFWFm5y.js → prompt-suggestions-DcgETXtw.js} +1 -1
- package/dist/web/client/assets/{provider-label-DNZOLldn.js → provider-label-COVNyoZo.js} +1 -1
- package/dist/web/client/assets/{repl-panel-UQN9UFG7.js → repl-panel-BoDNpJOe.js} +1 -1
- package/dist/web/client/assets/{resources-panel-kp_UjnpX.js → resources-panel-DD6iWOF3.js} +1 -1
- package/dist/web/client/assets/{right-panel-registry-BJG8ubHt.js → right-panel-registry-CIfLdAfS.js} +2 -2
- package/dist/web/client/assets/{routes-BXFQmjL9.js → routes-DO93P3Xm.js} +5 -5
- package/dist/web/client/assets/{select-COK0Kaq2.js → select-Dp15z1lf.js} +1 -1
- package/dist/web/client/assets/{session-reasoning-panel-DrTWp8d4.js → session-reasoning-panel-WMedZp__.js} +1 -1
- package/dist/web/client/assets/session-tool-renderer-BFC3-Md4.js +170 -0
- package/dist/web/client/assets/{session-tree-panel-deGRKAhX.js → session-tree-panel-CnHOsPzz.js} +1 -1
- package/dist/web/client/assets/{settings-dialog-BU1Tw0CQ.js → settings-dialog-BN138nzK.js} +1 -1
- package/dist/web/client/assets/{skeleton-D5Y9nBfp.js → skeleton-DNAr5ULI.js} +1 -1
- package/dist/web/client/assets/{skeleton-loaders-DOKGa7CW.js → skeleton-loaders-B28mF4tJ.js} +1 -1
- package/dist/web/client/assets/{spinner-C3sPnLdu.js → spinner-CSBXk3Lo.js} +1 -1
- package/dist/web/client/assets/{subagent-chat-panel-DQEnhU2t.js → subagent-chat-panel-DYKOKRPp.js} +1 -1
- package/dist/web/client/assets/subagent-transcript-BCUhqVvi.js +1 -0
- package/dist/web/client/assets/{subagent-utils-DTV2RcFl.js → subagent-utils-CM2qX9BG.js} +2 -2
- package/dist/web/client/assets/{subagents-panel-B-X7WPUU.js → subagents-panel-CTvtU0Sh.js} +1 -1
- package/dist/web/client/assets/{surface-context-DWplCCcO.js → surface-context-VvasJf_6.js} +1 -1
- package/dist/web/client/assets/{surfaces-BULKVm-B.js → surfaces-m1vs5aMP.js} +1 -1
- package/dist/web/client/assets/{switch-DQETDDJT.js → switch-eqXIzePo.js} +1 -1
- package/dist/web/client/assets/{toast-BFeqSeaR.js → toast-DRDVljMF.js} +1 -1
- package/dist/web/client/assets/{tool-result-C5Ixe-AJ.js → tool-result-DWUV8hEz.js} +2 -2
- package/dist/web/client/assets/{tool-timeline-B4ci1oJg.js → tool-timeline-4k2iSEky.js} +1 -1
- package/dist/web/client/assets/{use-reduced-motion-BgG7f9xw.js → use-reduced-motion-BzGFRmoG.js} +1 -1
- package/dist/web/client/assets/utils-CFDGLzf6.js +1 -0
- package/dist/web/client/assets/{workspace-panel-DDjQuELx.js → workspace-panel-BNeGABPi.js} +1 -1
- package/dist/web/client/assets/{workspace-path-nav-DmxBrMV6.js → workspace-path-nav-umvkE4ut.js} +2 -2
- package/dist/web/client/bundle-budget.json +5 -5
- package/dist/web/server/{_tanstack-start-manifest_v-vL58CVrY-7SDCWIHD.js → _tanstack-start-manifest_v-DTCFS0PG-ARV2V4FW.js} +27 -27
- package/dist/web/server/{artifacts-panel-CozDO7ak-5T4W7RME.js → artifacts-panel-Ct2R_4wM-DAPQMI57.js} +14 -14
- package/dist/web/server/{chat-command-palette-CLE-L0qp-ZZNKVTSS.js → chat-command-palette-ETZzg35Q-TAV74IAW.js} +9 -9
- package/dist/web/server/{chunk-5AYK2KDO.js → chunk-777VIBCH.js} +176 -176
- package/dist/web/server/{chunk-7VFULIHV.js → chunk-AAPVQJAD.js} +2 -2
- package/dist/web/server/{chunk-D7GSWBRI.js → chunk-BNB7T7P6.js} +2 -2
- package/dist/web/server/{chunk-E4YWFQX5.js → chunk-FFGFTGLQ.js} +415 -383
- package/dist/web/server/{chunk-EUWNVEIC.js → chunk-FL3FOWSC.js} +118 -108
- package/dist/web/server/{chunk-QCDSLD3L.js → chunk-GS5F6X7H.js} +628 -327
- package/dist/web/server/{chunk-B7YWDA2F.js → chunk-INRE3X52.js} +2 -2
- package/dist/web/server/{chunk-GRGV5FVO.js → chunk-JOCVZVZ3.js} +5 -5
- package/dist/web/server/{chunk-NHV77NOI.js → chunk-JU7PCOE7.js} +4 -4
- package/dist/web/server/{chunk-RVDWGK6U.js → chunk-KVW6XTN3.js} +14 -9
- package/dist/web/server/{chunk-NB3TVOGB.js → chunk-LECHJX4M.js} +483 -481
- package/dist/web/server/{chunk-RYU7I34A.js → chunk-M6K66QBV.js} +6 -6
- package/dist/web/server/{chunk-SLRV7YNY.js → chunk-R7KUUFDW.js} +4 -4
- package/dist/web/server/chunk-SHNODG3C.js +18343 -0
- package/dist/web/server/{chunk-PXSOI3XF.js → chunk-SQXJ5TUB.js} +2 -2
- package/dist/web/server/{chunk-B5Y7XOIJ.js → chunk-TMQ3MT3D.js} +78 -17
- package/dist/web/server/{chunk-B4EBMF5J.js → chunk-UWZYLMEH.js} +2 -2
- package/dist/web/server/{chunk-YIJ7D7G5.js → chunk-VTEYQNJE.js} +7 -7
- package/dist/web/server/{chunk-F5DJQ3PQ.js → chunk-WPSI5TBE.js} +1528 -2185
- package/dist/web/server/{chunk-ABYOWAMD.js → chunk-X76RBZ37.js} +2 -2
- package/dist/web/server/{chunk-54UEKLGD.js → chunk-XMAAYUOT.js} +14 -14
- package/dist/web/server/{create-project-dialog-CReZdM5g-2V7C5J67.js → create-project-dialog-CqBmLTlA-X6HI6AYR.js} +10 -10
- package/dist/web/server/{dist-DVCLWOYT.js → dist-3UIQ7SZN.js} +2 -2
- package/dist/web/server/{dist-4A22NBTB.js → dist-ZPEDRNZ4.js} +2 -2
- package/dist/web/server/{empty-plugin-adapters-Cqtvkauv-ILKI7W7V.js → empty-plugin-adapters-DOl-E2pL-RKRSN75W.js} +1 -1
- package/dist/web/server/{fork-picker-dialog-CXcLEaor-6SVM5RJO.js → fork-picker-dialog-PYNd9ozc-EA7BRLRR.js} +7 -7
- package/dist/web/server/{markdown-CShfYRVO-OKGCYPQK.js → markdown-CShfYRVO-22N5LNAN.js} +2 -2
- package/dist/web/server/{markdown-code-BDV_2b2T-VZGAECQB.js → markdown-code-BDV_2b2T-KUPHX52W.js} +2 -2
- package/dist/web/server/{message-queue-Q_Q6hbqc-AOV2PSCX.js → message-queue-DmSFAI5Y-XDZHJ2Z6.js} +7 -7
- package/dist/web/server/{model-selector-list-BOKU5_Z3-III72ZT2.js → model-selector-list-C-Y3p5UM-HTSWVVHP.js} +9 -9
- package/dist/web/server/{openui-renderer-VuQOQeAP-XBOR3XGN.js → openui-renderer-C4B1EJxC-QDYQF5LD.js} +11 -11
- package/dist/web/server/{prompt-suggestions-EqAaAx6L-723M64XJ.js → prompt-suggestions-EqAaAx6L-B4KCWNZX.js} +1 -1
- package/dist/web/server/{repl-panel-DOyUyuQR-IMYO4FKX.js → repl-panel-DOyUyuQR-LRBDRMHW.js} +3 -3
- package/dist/web/server/{resources-panel-Cnz-X1bx-TT5KVROR.js → resources-panel-Bo-TmRON-O47AKGEQ.js} +8 -8
- package/dist/web/server/{router-C437aaqv-72HBLLJI.js → router-DtS2wXhd-I2SZV7YF.js} +6 -6
- package/dist/web/server/{routes-BkVN3m9i-PYNMNLQ5.js → routes-DuSYlASY-U7C32ONE.js} +6 -6
- package/dist/web/server/server.js +2410 -1672
- package/dist/web/server/{session-reasoning-panel-2_TR5nKM-KA5OY7ZV.js → session-reasoning-panel-BFcZs1pZ-KNHSU5GX.js} +8 -8
- package/dist/web/server/{session-tool-renderer-BFEWy2Pk-JTSYUPO5.js → session-tool-renderer-TiFeeJEc-YUZPEEZ4.js} +10 -10
- package/dist/web/server/{session-tree-panel-3y9LVA0A-4V4TJX62.js → session-tree-panel-CjsqVYLY-DGZBGY2E.js} +7 -7
- package/dist/web/server/{settings-dialog-DgZ8Z5e4-6T5AS2EB.js → settings-dialog-Bj5LrAE8-6BQRLUJT.js} +11 -11
- package/dist/web/server/{start-QK6aG02q-EMREW2SB.js → start-cCC--AXu-BBMIT6OU.js} +1 -1
- package/dist/web/server/{subagent-chat-panel-B0pmAxCp-DKXNAOUU.js → subagent-chat-panel-DAS4Ne-1-TWIUXSQC.js} +13 -13
- package/dist/web/server/{subagents-panel-FUUT0t1i-5ZKJ2QAJ.js → subagents-panel-C3CdUcqw-DFTJTPHA.js} +13 -13
- package/dist/web/server/{tool-timeline-C4dgQITK-CFWANSDL.js → tool-timeline-C4dgQITK-IWCLQLWG.js} +3 -3
- package/dist/web/server/{workspace-panel-BbI1N4f8-WYOEVH4G.js → workspace-panel-DNs0Ye2U-VFB6X5PK.js} +8 -8
- package/package.json +5 -5
- package/dist/web/client/assets/globals-DZbMyHfg.css +0 -2
- package/dist/web/client/assets/index-D3HpiAnD.js +0 -12
- package/dist/web/client/assets/mermaid-HWGCJPDP-CVNXPao6.js +0 -1
- package/dist/web/client/assets/session-tool-renderer-mOZdkbiU.js +0 -1389
- package/dist/web/client/assets/subagent-transcript-CCpg3uL6.js +0 -1
- package/dist/web/client/assets/utils-Dpy9ZFOr.js +0 -1
- package/dist/web/server/chunk-XJHYJLGU.js +0 -38412
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,t}from"./rolldown-runtime-hePW80VL.js";import{t as n}from"./react-Cvdyeg_0.js";import{t as r}from"./react-dom-B7th3XGm.js";import{t as i}from"./jsx-runtime-NZYk81nU.js";import{t as a}from"./utils-Dpy9ZFOr.js";import{F as o,G as s,J as c,K as l,P as u,T as d,X as f,_ as p,at as m,ct as h,et as g,it as _,rt as v,st as y,t as b,tt as x,x as S,z as C}from"./createBaseUIEventDetails-DklXWq23.js";import{t as w}from"./dist-BogNzeK9.js";var T=t((e=>{var t=n();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),E=t(((e,t)=>{t.exports=T()})),ee=t((e=>{var t=n(),r=E();function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,o=r.useSyncExternalStore,s=t.useRef,c=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),te=t(((e,t)=>{t.exports=ee()})),ne=E(),re=e(te(),1),D=e(n(),1),O=[],k=void 0;function ie(){return k}function ae(e){O.push(e)}function A(e){let t=(t,n)=>{let r=_(se).current,i;try{k=r;for(let e of O)e.before(r);i=e(t,n);for(let e of O)e.after(r);r.didInitialize=!0}finally{k=void 0}return i};return t.displayName=e.displayName||e.name,t}function oe(e){return D.forwardRef(A(e))}function se(){return{didInitialize:!1}}var ce=x(19)?ue:de;function j(e,t,n,r,i){return ce(e,t,n,r,i)}function le(e,t,n,r,i){let a=D.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,ne.useSyncExternalStore)(e.subscribe,a,a)}ae({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,ne.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function ue(e,t,n,r,i){let a=ie();if(!a)return le(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function de(e,t,n,r,i){return(0,re.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var fe=class{static create(e){return new this(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return j(this,e,t,n,r)}},pe=class extends fe{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){D.useDebugValue(e);let n=this;v(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;v(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this,n=Object.values(e);v(()=>{t.update(e)},[t,...n])}useControlledProp(e,t){D.useDebugValue(e);let n=this,r=t!==void 0;v(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return D.useDebugValue(e),j(this,this.selectors[e],t,n,r)}useContextCallback(e,t){D.useDebugValue(e);let n=g(t??h);this.context[e]=n}useStateSetter(e){let t=D.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},me=e(r(),1);function M(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}var N=i();function P(e){return e?.ownerDocument||document}var F=0,he=class e{static create(){return new e}currentId=F;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=F,t()},e)}isStarted(){return this.currentId!==F}clear=()=>{this.currentId!==F&&(clearTimeout(this.currentId),this.currentId=F)};disposeEffect=()=>this.clear};function ge(){let e=_(he.create).current;return m(e.disposeEffect),e}function _e(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:ve,platform:ye,maxTouchPoints:be}=_e(),I=ve.toLowerCase(),L=ye.toLowerCase(),R=/^i(os$|p)/.test(L)||L===`macintel`&&be>1,z=`android`,xe=L===z||I.includes(z),Se=!R&&L.startsWith(`mac`);L.startsWith(`win`),!xe&&/^(linux|chrome os)/.test(L);var Ce=Se||R,B=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`);!B&&I.includes(`firefox`),!B&&I.includes(`chrom`);var we=Ce,Te=/jsdom|happydom/.test(I);function Ee(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function V(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&f(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function De(e){return`composedPath`in e?e.composedPath()[0]??e.target:e.target}var Oe=`data-base-ui-focusable`,ke=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,Ae=`ArrowLeft`,je=`ArrowRight`,Me=`ArrowUp`,Ne=`ArrowDown`,Pe=`data-popup-open`,Fe=`data-pressed`,H=`data-trigger-disabled`;function Ie(e,t){if(!s(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(H);for(let[,e]of t.entries())if(V(e,n))return!e.hasAttribute(H);return!1}function Le(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Re(e){return e.matches(`html,body`)}function U(e){return l(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function ze(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${ke}`)!=null}function Be(e){return e?e.getAttribute(`role`)===`combobox`&&U(e):!1}function Ve(e){if(!e||Te)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function He(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Ue(e,t){return t<0||t>=e.length}function We(e,t){return W(e.current,{disabledIndices:t})}function Ge(e,t){return W(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function W(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&G(e,a,r));return a}function G(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?!K(r)||r.matches(`:disabled`)?!0:!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!1}function Ke(e){return e.visibility===`hidden`||e.visibility===`collapse`}function K(e,t=e?o(e):null){return!e||!e.isConnected||!t||Ke(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var qe=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function Je(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return f(n)?n.host:null}function q(e){for(let t of Array.from(e.children))if(C(t)===`summary`)return t;return null}function Ye(e,t){let n=q(t);return!!n&&(e===n||V(n,e))}function J(e){let t=e?C(e):``;return e!=null&&e.matches(qe)&&(t!==`summary`||e.parentElement!=null&&C(e.parentElement)===`details`&&q(e.parentElement)===e)&&(t!==`details`||q(e)==null)&&(t!==`input`||e.type!==`hidden`)}function Xe(e){if(!J(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=Je(t)){let n=t!==e,r=C(t)===`slot`;if(t.hasAttribute(`inert`)||n&&C(t)===`details`&&!t.open&&!Ye(e,t)||t.hasAttribute(`hidden`)||!r&&!Ze(t,n))return!1}return!0}function Ze(e,t){let n=o(e);return t?n.display!==`none`:K(e,n)}function Qe(e){let t=e.tabIndex;if(t<0){let t=C(e);if(t===`details`||t===`audio`||t===`video`||l(e)&&e.isContentEditable)return 0}return t}function Y(e){if(C(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function $e(e,t){let n=Y(e);if(!n)return!0;let r=t.find(e=>{let t=Y(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=Y(e);return t?.name===n.name&&t.form===n.form})===n}function et(e){if(l(e)&&C(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return l(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function tt(e,t){et(e).forEach(e=>{J(e)&&t.push(e),tt(e,t)})}function nt(e,t,n){et(e).forEach(e=>{l(e)&&e.matches(t)&&n.push(e),nt(e,t,n)})}function rt(e){return Xe(e)&&Qe(e)>=0}function it(e){let t=[];return tt(e,t),t.filter(Xe)}function X(e){let t=it(e);return t.filter(e=>Qe(e)>=0&&$e(e,t))}function at(e,t){let n=X(e),r=n.length;if(r===0)return;let i=Ee(P(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function ot(e){return at(P(e).body,1)||e}function st(e){return at(P(e).body,-1)||e}function ct(e,t){if(!e)return null;let n=X(P(e).body),r=n.length;if(r===0)return null;let i=n.indexOf(e);return i===-1?null:n[(i+t+r)%r]}function lt(e){return ct(e,1)}function ut(e){return ct(e,-1)}function Z(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!V(n,r)}function dt(e){X(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function ft(e){let t=[];nt(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}var pt={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},mt={...pt,position:`fixed`,top:0,left:0},ht={...pt,position:`absolute`},Q=D.forwardRef(function(e,t){let[n,r]=D.useState();v(()=>{we&&B&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,N.jsx)(`span`,{...e,ref:t,style:mt,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})});function gt(e){return x(19)?e:e?`true`:void 0}var _t={style:{transition:`none`}},vt=`data-base-ui-click-trigger`,yt=`data-base-ui-swipe-ignore`,bt=`data-swipe-ignore`,xt=`[${yt}]`,St=`[${bt}]`,Ct={fallbackAxisSide:`none`},wt={fallbackAxisSide:`end`},Tt={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0};function $(e){return`data-base-ui-${e}`}var Et=D.createContext(null),Dt=()=>D.useContext(Et),Ot=$(`portal`);function kt(e={}){let{ref:t,container:n,componentProps:r=y,elementProps:i}=e,a=S(),o=Dt()?.portalNode,[s,l]=D.useState(null),[u,f]=D.useState(null),p=g(e=>{e!==null&&f(e)}),m=D.useRef(null);v(()=>{if(n===null){m.current&&(m.current=null,f(null),l(null));return}let e=(n&&(c(n)?n:n.current))??o??document.body;if(e==null){m.current&&(m.current=null,f(null),l(null));return}m.current!==e&&(m.current=e,f(null),l(e))},[n,o]);let h=d(`div`,r,{ref:[t,p],props:[{id:a,[Ot]:``},i]}),_=s&&h?me.createPortal(h,s):null;return{node:u,nodeId:D.isValidElement(h)?h.props.id:void 0,subtree:_}}var At=D.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,portalOwnerRole:s,...c}=e,{node:l,nodeId:d,subtree:f}=kt({container:o,ref:t,componentProps:e,elementProps:c}),p=D.useRef(null),m=D.useRef(null),h=D.useRef(null),g=D.useRef(null),[_,y]=D.useState(null),x=D.useRef(!1),S=_?.modal,C=_?.open,w=!!_&&!_.modal&&_.open&&!!l;D.useEffect(()=>{if(!l||S)return;function e(e){l&&e.relatedTarget&&Z(e)&&(e.type===`focusin`?x.current&&=(ft(l),!1):(dt(l),x.current=!0))}return M(u(l,`focusin`,e,!0),u(l,`focusout`,e,!0))},[l,S]),v(()=>{!l||C!==!0||!x.current||(ft(l),x.current=!1)},[C,l]);let T=D.useMemo(()=>({beforeOutsideRef:p,afterOutsideRef:m,beforeInsideRef:h,afterInsideRef:g,portalNode:l,setFocusManagerState:y}),[l]);return(0,N.jsxs)(D.Fragment,{children:[f,(0,N.jsxs)(Et.Provider,{value:T,children:[w&&l&&(0,N.jsx)(Q,{"data-type":`outside`,ref:p,onFocus:e=>{Z(e,l)?h.current?.focus():st(_?_.domReference:null)?.focus()}}),w&&l&&(0,N.jsx)(`span`,{role:s,"aria-owns":d,style:Tt}),l&&me.createPortal(a,l),w&&l&&(0,N.jsx)(Q,{"data-type":`outside`,ref:m,onFocus:e=>{Z(e,l)?g.current?.focus():(ot(_?_.domReference:null)?.focus(),_?.closeOnFocusOut&&_?.onOpenChange(!1,b(`focus-out`,e.nativeEvent)))}})]})]})}),jt=D.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{getButtonProps:l,buttonRef:u}=p({disabled:i,focusableWhenDisabled:a,native:o});return d(`button`,e,{state:{disabled:i},ref:[t,u],props:[c,l]})}),Mt={pill:{variant:`pill`,item:`rounded-[20px]`,bg:`rounded-[20px]`,focusRing:`rounded-[22px]`,mergedBg:`rounded-2xl`,container:`rounded-3xl`,button:`rounded-[20px]`,input:`rounded-[20px]`,bgRadius:20,mergedRadius:16},rounded:{variant:`rounded`,item:`rounded-lg`,bg:`rounded-lg`,focusRing:`rounded-[10px]`,mergedBg:`rounded-lg`,container:`rounded-xl`,button:`rounded-lg`,input:`rounded-lg`,bgRadius:8,mergedRadius:8}},Nt=(0,D.createContext)(null);function Pt(){let e=(0,D.useContext)(Nt);return e?e.classes:Mt.rounded}var Ft=(0,D.createContext)(null);function It(e){let t=(0,D.useContext)(Ft);return e??t?.size??`default`}var Lt=w([`group relative isolate inline-flex items-center justify-center outline-none cursor-pointer`,`transition-colors duration-80`,`disabled:opacity-50 disabled:pointer-events-none`,`focus-visible:ring-1 focus-visible:ring-[color:var(--focus-ring,#6B97FF)]`],{variants:{variant:{default:`text-background`,primary:`text-background`,secondary:`text-foreground`,tertiary:`text-foreground`,outline:`text-foreground`,ghost:`text-muted-foreground hover:text-foreground`,destructive:`text-destructive`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 text-[13px] gap-1.5 [&_svg:not([class*='size-'])]:size-4`,compact:`h-7 px-3 text-[12px] gap-1 [&_svg:not([class*='size-'])]:size-3.5`,icon:`h-9 w-9 p-0 [&_svg]:h-4 [&_svg]:w-4`,"icon-compact":`h-7 w-7 p-0 [&_svg]:h-3.5 [&_svg]:w-3.5`},iconLeft:{true:``},iconRight:{true:``}},compoundVariants:[{size:`compact`,iconLeft:!0,className:`pl-2`},{size:`default`,iconLeft:!0,className:`pl-3`},{size:`compact`,iconRight:!0,className:`pr-2`},{size:`default`,iconRight:!0,className:`pr-3`}],defaultVariants:{variant:`primary`,size:`default`}}),Rt={xs:`compact`,sm:`compact`,md:`default`,lg:`default`,"icon-xs":`icon-compact`,"icon-sm":`icon-compact`,"icon-lg":`icon`},zt={default:`[--btn-bg:var(--foreground)] group-hover:[--btn-bg:color-mix(in_oklab,var(--foreground)_90%,var(--background))] group-active:[--btn-bg:color-mix(in_oklab,var(--foreground)_80%,var(--background))] bg-[var(--btn-bg)] shadow-[0_0_0_1px_var(--btn-bg)] group-active:shadow-[0_0_0_0px_var(--btn-bg)]`,primary:`[--btn-bg:var(--foreground)] group-hover:[--btn-bg:color-mix(in_oklab,var(--foreground)_90%,var(--background))] group-active:[--btn-bg:color-mix(in_oklab,var(--foreground)_80%,var(--background))] bg-[var(--btn-bg)] shadow-[0_0_0_1px_var(--btn-bg)] group-active:shadow-[0_0_0_0px_var(--btn-bg)]`,secondary:`[--btn-bg:var(--accent)] group-hover:[--btn-bg:color-mix(in_oklab,var(--accent)_80%,var(--background))] group-active:[--btn-bg:var(--accent)] bg-[var(--btn-bg)] shadow-[0_0_0_1px_var(--btn-bg)] group-active:shadow-[0_0_0_0px_var(--btn-bg)]`,tertiary:`bg-transparent shadow-[0_0_0_1px_var(--border),inset_0_0_0_0px_var(--border)] group-hover:bg-hover group-active:bg-active group-active:shadow-[0_0_0_0px_var(--border),inset_0_0_0_1px_var(--border)]`,outline:`bg-transparent shadow-[0_0_0_1px_var(--border),inset_0_0_0_0px_var(--border)] group-hover:bg-hover group-active:bg-active group-active:shadow-[0_0_0_0px_var(--border),inset_0_0_0_1px_var(--border)]`,ghost:`bg-transparent shadow-[0_0_0_1px_transparent] group-hover:bg-hover group-hover:shadow-[0_0_0_1px_var(--hover)] group-active:bg-active group-active:shadow-[0_0_0_0px_var(--active)]`,destructive:`[--btn-bg:var(--destructive-light,#450A0A)] group-hover:[--btn-bg:color-mix(in_oklab,var(--destructive-light,#450A0A)_80%,var(--background))] group-active:[--btn-bg:var(--destructive-light,#450A0A)] bg-[var(--btn-bg)] shadow-[0_0_0_1px_var(--border)]`,link:`bg-transparent shadow-none`},Bt={default:`[--btn-bg:color-mix(in_oklab,var(--foreground)_80%,var(--background))] bg-[var(--btn-bg)] shadow-[0_0_0_1px_var(--btn-bg)] group-active:shadow-[0_0_0_0px_var(--btn-bg)]`,primary:`[--btn-bg:color-mix(in_oklab,var(--foreground)_80%,var(--background))] bg-[var(--btn-bg)] shadow-[0_0_0_1px_var(--btn-bg)] group-active:shadow-[0_0_0_0px_var(--btn-bg)]`,secondary:`[--btn-bg:var(--accent)] bg-[var(--btn-bg)] shadow-[0_0_0_1px_var(--btn-bg)] group-active:shadow-[0_0_0_0px_var(--btn-bg)]`,tertiary:`bg-active shadow-[0_0_0_1px_var(--border),inset_0_0_0_0px_var(--border)] group-active:shadow-[0_0_0_0px_var(--border),inset_0_0_0_1px_var(--border)]`,outline:`bg-active shadow-[0_0_0_1px_var(--border),inset_0_0_0_0px_var(--border)] group-active:shadow-[0_0_0_0px_var(--border),inset_0_0_0_1px_var(--border)]`,ghost:`bg-active shadow-[0_0_0_1px_var(--active)] group-active:shadow-[0_0_0_0px_var(--active)]`,destructive:`bg-active shadow-[0_0_0_1px_var(--border)]`,link:`bg-transparent shadow-none`},Vt=(0,D.forwardRef)(({className:e,variant:t,size:n,asChild:r=!1,loading:i=!1,leadingIcon:o,trailingIcon:s,active:c=!1,disabled:l,children:u,style:d,...f},p)=>{let m=r&&(0,D.isValidElement)(u)?u:null,h=m?m.props.children:u,g=It(),_=n?Rt[n]??n:g===`compact`?`compact`:`default`,v=_===`icon`||_===`icon-compact`,y=_===`compact`||_===`icon-compact`,b=y?14:16,x=y?`h-7 w-7`:`h-9 w-9`,S=Pt(),C=c?Bt[t??`primary`]:zt[t??`primary`],w=(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`span`,{"aria-hidden":!0,className:a(`absolute inset-px rounded-[inherit] transition-[box-shadow,background-color] [transition-duration:180ms,80ms] [transition-timing-function:cubic-bezier(0.23,1,0.32,1),ease] group-active:[transition-duration:80ms,80ms]`,C)}),(0,N.jsx)(`span`,{className:`relative inline-flex items-center justify-center gap-[inherit]`,children:i?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(`span`,{className:`flex items-center justify-center gap-[inherit] opacity-0`,children:[o&&!v&&(0,N.jsx)(o,{size:b,strokeWidth:2}),h,s&&!v&&(0,N.jsx)(s,{size:b,strokeWidth:2})]}),(0,N.jsx)(`span`,{className:`absolute inset-0 flex items-center justify-center`,children:(0,N.jsx)(`svg`,{className:x,viewBox:`0 0 24 24`,fill:`none`,children:(0,N.jsx)(`path`,{d:`M 12 12 C 14 8.5 19 8.5 19 12 C 19 15.5 14 15.5 12 12 C 10 8.5 5 8.5 5 12 C 5 15.5 10 15.5 12 12 Z`,stroke:`currentColor`,strokeWidth:`1.125`,strokeLinecap:`round`,pathLength:`100`,style:{strokeDasharray:`15 85`,animation:`spinner-move 2s linear infinite, spinner-dash 4s ease-in-out infinite`}})})})]}):v?(0,N.jsx)(`span`,{className:`[&_svg]:stroke-[1.5] [&_svg]:transition-[stroke-width] [&_svg]:duration-80 group-hover:[&_svg]:stroke-[2]`,children:h}):(0,N.jsxs)(N.Fragment,{children:[o&&(0,N.jsx)(o,{size:b,strokeWidth:1.5,className:`transition-[stroke-width] duration-80 group-hover:stroke-[2]`}),(0,N.jsx)(`span`,{className:`inline-flex items-center gap-[inherit] [text-box:trim-both_cap_alphabetic] [&_svg]:shrink-0`,children:h}),s&&(0,N.jsx)(s,{size:b,strokeWidth:1.5,className:`transition-[stroke-width] duration-80 group-hover:stroke-[2]`})]})})]}),T=a(Lt({variant:t,size:_,iconLeft:!v&&!!o,iconRight:!v&&!!s}),S.button,e);if(m){let e=m.props,t={...f};for(let n of Object.keys(f)){if(!/^on[A-Z]/.test(n))continue;let r=f[n],i=e[n];typeof r==`function`&&typeof i==`function`&&(t[n]=e=>{i(e),e.defaultPrevented||r(e)})}return(0,D.cloneElement)(m,{...t,ref:p,"data-slot":`button`,className:a(T,e.className),style:{...d,...e.style}},w)}return(0,N.jsx)(jt,{ref:p,"data-slot":`button`,className:T,disabled:l||i,style:d,...f,children:w})});Vt.displayName=`Button`;export{he as $,G as A,Fe as B,rt as C,We as D,Ge as E,Ie as F,Oe as G,Ae as H,Be as I,De as J,Ee as K,U as L,Le as M,ze as N,K as O,Re as P,R as Q,Ve as R,Z as S,W as T,je as U,Ne as V,Me as W,B as X,Te as Y,xe as Z,it as _,Dt as a,oe as at,lt as b,vt as c,St as d,ge as et,wt as f,ht as g,mt as h,kt as i,A as it,He as j,Ue as k,_t as l,Q as m,Pt as n,M as nt,$ as o,te as ot,gt as p,V as q,At as r,pe as rt,xt as s,E as st,Vt as t,P as tt,Ct as u,ot as v,X as w,ut as x,st as y,Pe as z};
|
|
1
|
+
import{r as e,t}from"./rolldown-runtime-hePW80VL.js";import{t as n}from"./react-Cvdyeg_0.js";import{t as r}from"./react-dom-B7th3XGm.js";import{t as i}from"./jsx-runtime-NZYk81nU.js";import{t as a}from"./utils-CFDGLzf6.js";import{F as o,G as s,J as c,K as l,P as u,T as d,X as f,_ as p,at as m,ct as h,et as g,it as _,rt as v,st as y,t as b,tt as x,x as S,z as C}from"./createBaseUIEventDetails-DklXWq23.js";import{t as w}from"./dist-BogNzeK9.js";var T=t((e=>{var t=n();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),E=t(((e,t)=>{t.exports=T()})),ee=t((e=>{var t=n(),r=E();function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,o=r.useSyncExternalStore,s=t.useRef,c=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),te=t(((e,t)=>{t.exports=ee()})),ne=E(),re=e(te(),1),D=e(n(),1),O=[],k=void 0;function ie(){return k}function ae(e){O.push(e)}function A(e){let t=(t,n)=>{let r=_(se).current,i;try{k=r;for(let e of O)e.before(r);i=e(t,n);for(let e of O)e.after(r);r.didInitialize=!0}finally{k=void 0}return i};return t.displayName=e.displayName||e.name,t}function oe(e){return D.forwardRef(A(e))}function se(){return{didInitialize:!1}}var ce=x(19)?ue:de;function j(e,t,n,r,i){return ce(e,t,n,r,i)}function le(e,t,n,r,i){let a=D.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,ne.useSyncExternalStore)(e.subscribe,a,a)}ae({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,ne.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function ue(e,t,n,r,i){let a=ie();if(!a)return le(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function de(e,t,n,r,i){return(0,re.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var fe=class{static create(e){return new this(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return j(this,e,t,n,r)}},pe=class extends fe{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){D.useDebugValue(e);let n=this;v(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;v(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this,n=Object.values(e);v(()=>{t.update(e)},[t,...n])}useControlledProp(e,t){D.useDebugValue(e);let n=this,r=t!==void 0;v(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return D.useDebugValue(e),j(this,this.selectors[e],t,n,r)}useContextCallback(e,t){D.useDebugValue(e);let n=g(t??h);this.context[e]=n}useStateSetter(e){let t=D.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},me=e(r(),1);function M(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}var N=i();function P(e){return e?.ownerDocument||document}var F=0,he=class e{static create(){return new e}currentId=F;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=F,t()},e)}isStarted(){return this.currentId!==F}clear=()=>{this.currentId!==F&&(clearTimeout(this.currentId),this.currentId=F)};disposeEffect=()=>this.clear};function ge(){let e=_(he.create).current;return m(e.disposeEffect),e}function _e(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:ve,platform:ye,maxTouchPoints:be}=_e(),I=ve.toLowerCase(),L=ye.toLowerCase(),R=/^i(os$|p)/.test(L)||L===`macintel`&&be>1,z=`android`,xe=L===z||I.includes(z),Se=!R&&L.startsWith(`mac`);L.startsWith(`win`),!xe&&/^(linux|chrome os)/.test(L);var Ce=Se||R,B=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`);!B&&I.includes(`firefox`),!B&&I.includes(`chrom`);var we=Ce,Te=/jsdom|happydom/.test(I);function Ee(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function V(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&f(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function De(e){return`composedPath`in e?e.composedPath()[0]??e.target:e.target}var Oe=`data-base-ui-focusable`,ke=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,Ae=`ArrowLeft`,je=`ArrowRight`,Me=`ArrowUp`,Ne=`ArrowDown`,Pe=`data-popup-open`,Fe=`data-pressed`,H=`data-trigger-disabled`;function Ie(e,t){if(!s(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(H);for(let[,e]of t.entries())if(V(e,n))return!e.hasAttribute(H);return!1}function Le(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Re(e){return e.matches(`html,body`)}function U(e){return l(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function ze(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${ke}`)!=null}function Be(e){return e?e.getAttribute(`role`)===`combobox`&&U(e):!1}function Ve(e){if(!e||Te)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function He(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Ue(e,t){return t<0||t>=e.length}function We(e,t){return W(e.current,{disabledIndices:t})}function Ge(e,t){return W(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function W(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&G(e,a,r));return a}function G(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?!K(r)||r.matches(`:disabled`)?!0:!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!1}function Ke(e){return e.visibility===`hidden`||e.visibility===`collapse`}function K(e,t=e?o(e):null){return!e||!e.isConnected||!t||Ke(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var qe=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function Je(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return f(n)?n.host:null}function q(e){for(let t of Array.from(e.children))if(C(t)===`summary`)return t;return null}function Ye(e,t){let n=q(t);return!!n&&(e===n||V(n,e))}function J(e){let t=e?C(e):``;return e!=null&&e.matches(qe)&&(t!==`summary`||e.parentElement!=null&&C(e.parentElement)===`details`&&q(e.parentElement)===e)&&(t!==`details`||q(e)==null)&&(t!==`input`||e.type!==`hidden`)}function Xe(e){if(!J(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=Je(t)){let n=t!==e,r=C(t)===`slot`;if(t.hasAttribute(`inert`)||n&&C(t)===`details`&&!t.open&&!Ye(e,t)||t.hasAttribute(`hidden`)||!r&&!Ze(t,n))return!1}return!0}function Ze(e,t){let n=o(e);return t?n.display!==`none`:K(e,n)}function Qe(e){let t=e.tabIndex;if(t<0){let t=C(e);if(t===`details`||t===`audio`||t===`video`||l(e)&&e.isContentEditable)return 0}return t}function Y(e){if(C(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function $e(e,t){let n=Y(e);if(!n)return!0;let r=t.find(e=>{let t=Y(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=Y(e);return t?.name===n.name&&t.form===n.form})===n}function et(e){if(l(e)&&C(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return l(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function tt(e,t){et(e).forEach(e=>{J(e)&&t.push(e),tt(e,t)})}function nt(e,t,n){et(e).forEach(e=>{l(e)&&e.matches(t)&&n.push(e),nt(e,t,n)})}function rt(e){return Xe(e)&&Qe(e)>=0}function it(e){let t=[];return tt(e,t),t.filter(Xe)}function X(e){let t=it(e);return t.filter(e=>Qe(e)>=0&&$e(e,t))}function at(e,t){let n=X(e),r=n.length;if(r===0)return;let i=Ee(P(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function ot(e){return at(P(e).body,1)||e}function st(e){return at(P(e).body,-1)||e}function ct(e,t){if(!e)return null;let n=X(P(e).body),r=n.length;if(r===0)return null;let i=n.indexOf(e);return i===-1?null:n[(i+t+r)%r]}function lt(e){return ct(e,1)}function ut(e){return ct(e,-1)}function Z(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!V(n,r)}function dt(e){X(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function ft(e){let t=[];nt(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}var pt={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},mt={...pt,position:`fixed`,top:0,left:0},ht={...pt,position:`absolute`},Q=D.forwardRef(function(e,t){let[n,r]=D.useState();v(()=>{we&&B&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,N.jsx)(`span`,{...e,ref:t,style:mt,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})});function gt(e){return x(19)?e:e?`true`:void 0}var _t={style:{transition:`none`}},vt=`data-base-ui-click-trigger`,yt=`data-base-ui-swipe-ignore`,bt=`data-swipe-ignore`,xt=`[${yt}]`,St=`[${bt}]`,Ct={fallbackAxisSide:`none`},wt={fallbackAxisSide:`end`},Tt={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0};function $(e){return`data-base-ui-${e}`}var Et=D.createContext(null),Dt=()=>D.useContext(Et),Ot=$(`portal`);function kt(e={}){let{ref:t,container:n,componentProps:r=y,elementProps:i}=e,a=S(),o=Dt()?.portalNode,[s,l]=D.useState(null),[u,f]=D.useState(null),p=g(e=>{e!==null&&f(e)}),m=D.useRef(null);v(()=>{if(n===null){m.current&&(m.current=null,f(null),l(null));return}let e=(n&&(c(n)?n:n.current))??o??document.body;if(e==null){m.current&&(m.current=null,f(null),l(null));return}m.current!==e&&(m.current=e,f(null),l(e))},[n,o]);let h=d(`div`,r,{ref:[t,p],props:[{id:a,[Ot]:``},i]}),_=s&&h?me.createPortal(h,s):null;return{node:u,nodeId:D.isValidElement(h)?h.props.id:void 0,subtree:_}}var At=D.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,portalOwnerRole:s,...c}=e,{node:l,nodeId:d,subtree:f}=kt({container:o,ref:t,componentProps:e,elementProps:c}),p=D.useRef(null),m=D.useRef(null),h=D.useRef(null),g=D.useRef(null),[_,y]=D.useState(null),x=D.useRef(!1),S=_?.modal,C=_?.open,w=!!_&&!_.modal&&_.open&&!!l;D.useEffect(()=>{if(!l||S)return;function e(e){l&&e.relatedTarget&&Z(e)&&(e.type===`focusin`?x.current&&=(ft(l),!1):(dt(l),x.current=!0))}return M(u(l,`focusin`,e,!0),u(l,`focusout`,e,!0))},[l,S]),v(()=>{!l||C!==!0||!x.current||(ft(l),x.current=!1)},[C,l]);let T=D.useMemo(()=>({beforeOutsideRef:p,afterOutsideRef:m,beforeInsideRef:h,afterInsideRef:g,portalNode:l,setFocusManagerState:y}),[l]);return(0,N.jsxs)(D.Fragment,{children:[f,(0,N.jsxs)(Et.Provider,{value:T,children:[w&&l&&(0,N.jsx)(Q,{"data-type":`outside`,ref:p,onFocus:e=>{Z(e,l)?h.current?.focus():st(_?_.domReference:null)?.focus()}}),w&&l&&(0,N.jsx)(`span`,{role:s,"aria-owns":d,style:Tt}),l&&me.createPortal(a,l),w&&l&&(0,N.jsx)(Q,{"data-type":`outside`,ref:m,onFocus:e=>{Z(e,l)?g.current?.focus():(ot(_?_.domReference:null)?.focus(),_?.closeOnFocusOut&&_?.onOpenChange(!1,b(`focus-out`,e.nativeEvent)))}})]})]})}),jt=D.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{getButtonProps:l,buttonRef:u}=p({disabled:i,focusableWhenDisabled:a,native:o});return d(`button`,e,{state:{disabled:i},ref:[t,u],props:[c,l]})}),Mt={pill:{variant:`pill`,item:`rounded-[20px]`,bg:`rounded-[20px]`,focusRing:`rounded-[22px]`,mergedBg:`rounded-2xl`,container:`rounded-3xl`,button:`rounded-[20px]`,input:`rounded-[20px]`,bgRadius:20,mergedRadius:16},rounded:{variant:`rounded`,item:`rounded-lg`,bg:`rounded-lg`,focusRing:`rounded-[10px]`,mergedBg:`rounded-lg`,container:`rounded-xl`,button:`rounded-lg`,input:`rounded-lg`,bgRadius:8,mergedRadius:8}},Nt=(0,D.createContext)(null);function Pt(){let e=(0,D.useContext)(Nt);return e?e.classes:Mt.rounded}var Ft=(0,D.createContext)(null);function It(e){let t=(0,D.useContext)(Ft);return e??t?.size??`default`}var Lt=w([`group relative isolate inline-flex items-center justify-center outline-none cursor-pointer`,`transition-colors duration-80`,`disabled:opacity-50 disabled:pointer-events-none`,`focus-visible:ring-1 focus-visible:ring-[color:var(--focus-ring,#6B97FF)]`],{variants:{variant:{default:`text-background`,primary:`text-background`,secondary:`text-foreground`,tertiary:`text-foreground`,outline:`text-foreground`,ghost:`text-muted-foreground hover:text-foreground`,destructive:`text-destructive`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 text-[13px] gap-1.5 [&_svg:not([class*='size-'])]:size-4`,compact:`h-7 px-3 text-[12px] gap-1 [&_svg:not([class*='size-'])]:size-3.5`,icon:`h-9 w-9 p-0 [&_svg]:h-4 [&_svg]:w-4`,"icon-compact":`h-7 w-7 p-0 [&_svg]:h-3.5 [&_svg]:w-3.5`},iconLeft:{true:``},iconRight:{true:``}},compoundVariants:[{size:`compact`,iconLeft:!0,className:`pl-2`},{size:`default`,iconLeft:!0,className:`pl-3`},{size:`compact`,iconRight:!0,className:`pr-2`},{size:`default`,iconRight:!0,className:`pr-3`}],defaultVariants:{variant:`primary`,size:`default`}}),Rt={xs:`compact`,sm:`compact`,md:`default`,lg:`default`,"icon-xs":`icon-compact`,"icon-sm":`icon-compact`,"icon-lg":`icon`},zt={default:`[--btn-bg:var(--foreground)] group-hover:[--btn-bg:color-mix(in_oklab,var(--foreground)_90%,var(--background))] group-active:[--btn-bg:color-mix(in_oklab,var(--foreground)_80%,var(--background))] bg-[var(--btn-bg)] shadow-[0_0_0_1px_var(--btn-bg)] group-active:shadow-[0_0_0_0px_var(--btn-bg)]`,primary:`[--btn-bg:var(--foreground)] group-hover:[--btn-bg:color-mix(in_oklab,var(--foreground)_90%,var(--background))] group-active:[--btn-bg:color-mix(in_oklab,var(--foreground)_80%,var(--background))] bg-[var(--btn-bg)] shadow-[0_0_0_1px_var(--btn-bg)] group-active:shadow-[0_0_0_0px_var(--btn-bg)]`,secondary:`[--btn-bg:var(--accent)] group-hover:[--btn-bg:color-mix(in_oklab,var(--accent)_80%,var(--background))] group-active:[--btn-bg:var(--accent)] bg-[var(--btn-bg)] shadow-[0_0_0_1px_var(--btn-bg)] group-active:shadow-[0_0_0_0px_var(--btn-bg)]`,tertiary:`bg-transparent shadow-[0_0_0_1px_var(--border),inset_0_0_0_0px_var(--border)] group-hover:bg-hover group-active:bg-active group-active:shadow-[0_0_0_0px_var(--border),inset_0_0_0_1px_var(--border)]`,outline:`bg-transparent shadow-[0_0_0_1px_var(--border),inset_0_0_0_0px_var(--border)] group-hover:bg-hover group-active:bg-active group-active:shadow-[0_0_0_0px_var(--border),inset_0_0_0_1px_var(--border)]`,ghost:`bg-transparent shadow-[0_0_0_1px_transparent] group-hover:bg-hover group-hover:shadow-[0_0_0_1px_var(--hover)] group-active:bg-active group-active:shadow-[0_0_0_0px_var(--active)]`,destructive:`[--btn-bg:var(--destructive-light,#450A0A)] group-hover:[--btn-bg:color-mix(in_oklab,var(--destructive-light,#450A0A)_80%,var(--background))] group-active:[--btn-bg:var(--destructive-light,#450A0A)] bg-[var(--btn-bg)] shadow-[0_0_0_1px_var(--border)]`,link:`bg-transparent shadow-none`},Bt={default:`[--btn-bg:color-mix(in_oklab,var(--foreground)_80%,var(--background))] bg-[var(--btn-bg)] shadow-[0_0_0_1px_var(--btn-bg)] group-active:shadow-[0_0_0_0px_var(--btn-bg)]`,primary:`[--btn-bg:color-mix(in_oklab,var(--foreground)_80%,var(--background))] bg-[var(--btn-bg)] shadow-[0_0_0_1px_var(--btn-bg)] group-active:shadow-[0_0_0_0px_var(--btn-bg)]`,secondary:`[--btn-bg:var(--accent)] bg-[var(--btn-bg)] shadow-[0_0_0_1px_var(--btn-bg)] group-active:shadow-[0_0_0_0px_var(--btn-bg)]`,tertiary:`bg-active shadow-[0_0_0_1px_var(--border),inset_0_0_0_0px_var(--border)] group-active:shadow-[0_0_0_0px_var(--border),inset_0_0_0_1px_var(--border)]`,outline:`bg-active shadow-[0_0_0_1px_var(--border),inset_0_0_0_0px_var(--border)] group-active:shadow-[0_0_0_0px_var(--border),inset_0_0_0_1px_var(--border)]`,ghost:`bg-active shadow-[0_0_0_1px_var(--active)] group-active:shadow-[0_0_0_0px_var(--active)]`,destructive:`bg-active shadow-[0_0_0_1px_var(--border)]`,link:`bg-transparent shadow-none`},Vt=(0,D.forwardRef)(({className:e,variant:t,size:n,asChild:r=!1,loading:i=!1,leadingIcon:o,trailingIcon:s,active:c=!1,disabled:l,children:u,style:d,...f},p)=>{let m=r&&(0,D.isValidElement)(u)?u:null,h=m?m.props.children:u,g=It(),_=n?Rt[n]??n:g===`compact`?`compact`:`default`,v=_===`icon`||_===`icon-compact`,y=_===`compact`||_===`icon-compact`,b=y?14:16,x=y?`h-7 w-7`:`h-9 w-9`,S=Pt(),C=c?Bt[t??`primary`]:zt[t??`primary`],w=(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(`span`,{"aria-hidden":!0,className:a(`absolute inset-px rounded-[inherit] transition-[box-shadow,background-color] [transition-duration:180ms,80ms] [transition-timing-function:cubic-bezier(0.23,1,0.32,1),ease] group-active:[transition-duration:80ms,80ms]`,C)}),(0,N.jsx)(`span`,{className:`relative inline-flex items-center justify-center gap-[inherit]`,children:i?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(`span`,{className:`flex items-center justify-center gap-[inherit] opacity-0`,children:[o&&!v&&(0,N.jsx)(o,{size:b,strokeWidth:2}),h,s&&!v&&(0,N.jsx)(s,{size:b,strokeWidth:2})]}),(0,N.jsx)(`span`,{className:`absolute inset-0 flex items-center justify-center`,children:(0,N.jsx)(`svg`,{className:x,viewBox:`0 0 24 24`,fill:`none`,children:(0,N.jsx)(`path`,{d:`M 12 12 C 14 8.5 19 8.5 19 12 C 19 15.5 14 15.5 12 12 C 10 8.5 5 8.5 5 12 C 5 15.5 10 15.5 12 12 Z`,stroke:`currentColor`,strokeWidth:`1.125`,strokeLinecap:`round`,pathLength:`100`,style:{strokeDasharray:`15 85`,animation:`spinner-move 2s linear infinite, spinner-dash 4s ease-in-out infinite`}})})})]}):v?(0,N.jsx)(`span`,{className:`[&_svg]:stroke-[1.5] [&_svg]:transition-[stroke-width] [&_svg]:duration-80 group-hover:[&_svg]:stroke-[2]`,children:h}):(0,N.jsxs)(N.Fragment,{children:[o&&(0,N.jsx)(o,{size:b,strokeWidth:1.5,className:`transition-[stroke-width] duration-80 group-hover:stroke-[2]`}),(0,N.jsx)(`span`,{className:`inline-flex items-center gap-[inherit] [text-box:trim-both_cap_alphabetic] [&_svg]:shrink-0`,children:h}),s&&(0,N.jsx)(s,{size:b,strokeWidth:1.5,className:`transition-[stroke-width] duration-80 group-hover:stroke-[2]`})]})})]}),T=a(Lt({variant:t,size:_,iconLeft:!v&&!!o,iconRight:!v&&!!s}),S.button,e);if(m){let e=m.props,t={...f};for(let n of Object.keys(f)){if(!/^on[A-Z]/.test(n))continue;let r=f[n],i=e[n];typeof r==`function`&&typeof i==`function`&&(t[n]=e=>{i(e),e.defaultPrevented||r(e)})}return(0,D.cloneElement)(m,{...t,ref:p,"data-slot":`button`,className:a(T,e.className),style:{...d,...e.style}},w)}return(0,N.jsx)(jt,{ref:p,"data-slot":`button`,className:T,disabled:l||i,style:d,...f,children:w})});Vt.displayName=`Button`;export{he as $,G as A,Fe as B,rt as C,We as D,Ge as E,Ie as F,Oe as G,Ae as H,Be as I,De as J,Ee as K,U as L,Le as M,ze as N,K as O,Re as P,R as Q,Ve as R,Z as S,W as T,je as U,Ne as V,Me as W,B as X,Te as Y,xe as Z,it as _,Dt as a,oe as at,lt as b,vt as c,St as d,ge as et,wt as f,ht as g,mt as h,kt as i,A as it,He as j,Ue as k,_t as l,Q as m,Pt as n,M as nt,$ as o,te as ot,gt as p,V as q,At as r,pe as rt,xt as s,E as st,Vt as t,P as tt,Ct as u,ot as v,X as w,ut as x,st as y,Pe as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./jsx-runtime-NZYk81nU.js";import{t}from"./utils-
|
|
1
|
+
import{t as e}from"./jsx-runtime-NZYk81nU.js";import{t}from"./utils-CFDGLzf6.js";var n=e();function r({className:e,size:r=`default`,...i}){return(0,n.jsx)(`div`,{"data-slot":`card`,"data-size":r,className:t(`group/card flex flex-col gap-4 overflow-hidden rounded-xl bg-card py-4 text-sm text-card-foreground ring-1 ring-foreground/10 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl`,e),...i})}function i({className:e,...r}){return(0,n.jsx)(`div`,{"data-slot":`card-header`,className:t(`group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3`,e),...r})}function a({className:e,...r}){return(0,n.jsx)(`div`,{"data-slot":`card-title`,className:t(`font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm`,e),...r})}function o({className:e,...r}){return(0,n.jsx)(`div`,{"data-slot":`card-description`,className:t(`text-sm text-muted-foreground`,e),...r})}function s({className:e,...r}){return(0,n.jsx)(`div`,{"data-slot":`card-content`,className:t(`px-4 group-data-[size=sm]/card:px-3`,e),...r})}export{a,i,s as n,o as r,r as t};
|
package/dist/web/client/assets/{chat-command-palette-CPlJp2cO.js → chat-command-palette-CXS5eTiy.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-Cvdyeg_0.js";import{t as n}from"./jsx-runtime-NZYk81nU.js";import{t as r}from"./createLucideIcon-CQY2ECfR.js";import{t as i}from"./right-panel-registry-
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-Cvdyeg_0.js";import{t as n}from"./jsx-runtime-NZYk81nU.js";import{t as r}from"./createLucideIcon-CQY2ECfR.js";import{t as i}from"./right-panel-registry-CIfLdAfS.js";import{i as a,n as o,r as s,t as c}from"./sun-C7zg8Oas.js";import{a as l}from"./right-panel-context-DHKWoetk.js";import{t as u}from"./square-BbTF3gLc.js";import{a as d,c as f,i as p,n as m,o as h,r as g,s as _}from"./command-s2yLD3tA.js";var v={name:`rotate-ccw-clock`,size:24,node:[[`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`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]],aliases:[`history`]};v.node;var y=r(v),b=e(t(),1),x=n();function S({open:e,onOpenChange:t,onNewSession:n,onStop:r,onResumeSession:v,onSetRightPanel:S,onThemeChange:C,sessions:w,isStreaming:T,themePreference:E}){let[D,O]=(0,b.useState)(``),[k,A]=(0,b.useState)(e);e!==k&&(A(e),e&&O(``));let j=e=>{e(),t(!1)};return(0,x.jsxs)(m,{open:e,onOpenChange:t,children:[(0,x.jsx)(d,{placeholder:`Type a command or search…`,value:D,onValueChange:O}),(0,x.jsxs)(_,{children:[(0,x.jsx)(g,{children:`No commands found.`}),(0,x.jsxs)(p,{heading:`Actions`,children:[(0,x.jsxs)(h,{onSelect:()=>j(n),keywords:[`new`,`session`,`chat`],children:[(0,x.jsx)(l,{className:`mr-2 size-4`}),(0,x.jsx)(`span`,{children:`New session`})]}),T&&(0,x.jsxs)(h,{onSelect:()=>j(r),keywords:[`stop`,`abort`,`cancel`],children:[(0,x.jsx)(u,{className:`mr-2 size-4`}),(0,x.jsx)(`span`,{children:`Stop generation`})]})]}),(0,x.jsx)(f,{}),(0,x.jsx)(p,{heading:`Panels`,children:i.map(e=>{let t=e.icon;return(0,x.jsxs)(h,{onSelect:()=>j(()=>S(e.id)),keywords:e.commandKeywords,children:[(0,x.jsx)(t,{}),(0,x.jsx)(`span`,{children:e.commandLabel})]},e.id)})}),w.length>0&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(f,{}),(0,x.jsx)(p,{heading:`Sessions`,children:w.map(e=>{let t=e.title;return(0,x.jsxs)(h,{onSelect:()=>j(()=>v(e)),keywords:[`session`,t],children:[(0,x.jsx)(y,{className:`mr-2 size-4`}),(0,x.jsx)(`span`,{className:`truncate`,children:t})]},e.sessionId)})})]}),(0,x.jsx)(f,{}),(0,x.jsxs)(p,{heading:`Theme`,children:[(0,x.jsxs)(h,{onSelect:()=>j(()=>C(`light`)),keywords:[`theme`,`light`],children:[(0,x.jsx)(c,{className:`mr-2 size-4`}),(0,x.jsx)(`span`,{children:`Light`}),E===`light`&&(0,x.jsx)(a,{className:`ml-auto size-3 opacity-50`})]}),(0,x.jsxs)(h,{onSelect:()=>j(()=>C(`dark`)),keywords:[`theme`,`dark`],children:[(0,x.jsx)(o,{className:`mr-2 size-4`}),(0,x.jsx)(`span`,{children:`Dark`}),E===`dark`&&(0,x.jsx)(a,{className:`ml-auto size-3 opacity-50`})]}),(0,x.jsxs)(h,{onSelect:()=>j(()=>C(`system`)),keywords:[`theme`,`system`],children:[(0,x.jsx)(s,{className:`mr-2 size-4`}),(0,x.jsx)(`span`,{children:`System`}),E===`system`&&(0,x.jsx)(a,{className:`ml-auto size-3 opacity-50`})]})]})]})]})}export{S as ChatCommandPalette};
|