@qredence/fleet 0.6.3 → 0.6.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/CHANGELOG.md +10 -0
- package/dist/web/client/assets/{DialogTitle-DiAm7YNe.js → DialogTitle-BwQ9k-MZ.js} +1 -1
- package/dist/web/client/assets/agent-disclosure-YgLa4c2y.js +1 -0
- package/dist/web/client/assets/{alert-dialog-CYE37KMM.js → alert-dialog-BfK7648p.js} +1 -1
- package/dist/web/client/assets/analytics-stub-BY-GADyA.js +1 -0
- package/dist/web/client/assets/arrow-up-DCwrqIrK.js +1 -0
- package/dist/web/client/assets/artifacts-panel-DDlPULVv.js +1 -0
- package/dist/web/client/assets/bot-DETalD3q.js +1 -0
- package/dist/web/client/assets/{button-Dl0ce3Y5.js → button-BrwYi6QP.js} +1 -1
- package/dist/web/client/assets/{card-DCEnYd2G.js → card-BScRdZNS.js} +1 -1
- package/dist/web/client/assets/chat-command-palette-DdPlRVuL.js +1 -0
- package/dist/web/client/assets/chat-helpers-Bj7_hES7.js +1 -0
- package/dist/web/client/assets/check-BTwIaCtI.js +1 -0
- package/dist/web/client/assets/chevron-down-Bse1ggZM.js +1 -0
- package/dist/web/client/assets/chevron-right-BPCB1mOg.js +1 -0
- package/dist/web/client/assets/chunk-YOKDWASO-C8deEx7Z.js +143 -0
- package/dist/web/client/assets/circle-check-DBhaebaM.js +1 -0
- package/dist/web/client/assets/citations-DOkXsdCi.js +1 -0
- package/dist/web/client/assets/clsx-DB0hHKMi.js +1 -0
- package/dist/web/client/assets/{collapsible-CUxOjhDJ.js → collapsible-DsbKpD_Y.js} +1 -1
- package/dist/web/client/assets/{command-Cw4X8Bpk.js → command-DSxdh_1v.js} +1 -1
- package/dist/web/client/assets/composer-intent-C5pz72T6.js +62 -0
- package/dist/web/client/assets/create-project-dialog-CaXurRpm.js +1 -0
- package/dist/web/client/assets/{createBaseUIEventDetails-B58Jldei.js → createBaseUIEventDetails-DklXWq23.js} +1 -1
- package/dist/web/client/assets/createLucideIcon-CQY2ECfR.js +1 -0
- package/dist/web/client/assets/{dialog-BzcIOvFC.js → dialog-B9nXTto4.js} +1 -1
- package/dist/web/client/assets/{dist-DbHxXSgQ.js → dist-BJJVCio8.js} +1 -1
- package/dist/web/client/assets/dist-BogNzeK9.js +1 -0
- package/dist/web/client/assets/{ease-CMumuPlX.js → ease-2UPBQU5v.js} +1 -1
- package/dist/web/client/assets/eye-iNSvs0UA.js +1 -0
- package/dist/web/client/assets/file-text-cqOanUYv.js +1 -0
- package/dist/web/client/assets/folder-COBtkKZa.js +1 -0
- package/dist/web/client/assets/{fork-picker-dialog-BYRr-xTy.js → fork-picker-dialog-DEdHU89A.js} +1 -1
- package/dist/web/client/assets/gauge-0Nn96wfZ.js +1 -0
- package/dist/web/client/assets/git-branch-DZEh2mM2.js +1 -0
- package/dist/web/client/assets/globals-B-fD_O7k.css +2 -0
- package/dist/web/client/assets/hard-drive-B3opVeEB.js +1 -0
- package/dist/web/client/assets/{highlighted-body-KPVGNVTW-CgT7gqvs.js → highlighted-body-KPVGNVTW-CZcNaoxi.js} +1 -1
- package/dist/web/client/assets/horizontal-resize-5AxYvGLA.js +1 -0
- package/dist/web/client/assets/index-BJIGh8ag.js +12 -0
- package/dist/web/client/assets/{input-CxZp56Im.js → input-BceH49B1.js} +1 -1
- package/dist/web/client/assets/{input-group-D7lAfKHR.js → input-group-DThl_vkS.js} +1 -1
- package/dist/web/client/assets/ipython-tool-CuSGRhXl.js +3 -0
- package/dist/web/client/assets/is-ref-object-CEXqIz6L.js +1 -0
- package/dist/web/client/assets/loader-circle-BmKYM_C4.js +1 -0
- package/dist/web/client/assets/markdown-C-Y9gskI.js +2 -0
- package/dist/web/client/assets/{markdown-code-CDTRq-HZ.js → markdown-code-BqFVdovL.js} +1 -1
- package/dist/web/client/assets/mermaid-HWGCJPDP-CVNXPao6.js +1 -0
- package/dist/web/client/assets/{message-queue-Dl8wbCOu.js → message-queue-CPYj2iaw.js} +1 -1
- package/dist/web/client/assets/{model-selector-list-CHD8lMAl.js → model-selector-list-DDsuJCgB.js} +1 -1
- package/dist/web/client/assets/{notify-DjVixft7.js → notify-GSsGEKtR.js} +1 -1
- package/dist/web/client/assets/{openui-renderer-C4e9FOVR.js → openui-renderer-l1qI5JDt.js} +41 -41
- package/dist/web/client/assets/package-BkC-HSi-.js +1 -0
- package/dist/web/client/assets/pencil-Cbgq3ybX.js +1 -0
- package/dist/web/client/assets/plug-wCz-036u.js +1 -0
- package/dist/web/client/assets/prompt-input-a7UP_MAw.js +1 -0
- package/dist/web/client/assets/{prompt-suggestions-BNyTcyWg.js → prompt-suggestions-ULqmPijZ.js} +1 -1
- package/dist/web/client/assets/provider-catalog-L0c-bZv6.js +1 -0
- package/dist/web/client/assets/provider-label-Buq3HZrP.js +1 -0
- package/dist/web/client/assets/react-Cvdyeg_0.js +1 -0
- package/dist/web/client/assets/react-dom-B7th3XGm.js +1 -0
- package/dist/web/client/assets/refresh-cw-CqPE3kNY.js +1 -0
- package/dist/web/client/assets/{repl-panel-L9dmPqio.js → repl-panel-UQN9UFG7.js} +1 -1
- package/dist/web/client/assets/resource-helpers-CKbSmzpw.js +2 -0
- package/dist/web/client/assets/{resources-panel-mT-aMCvV.js → resources-panel-kp_UjnpX.js} +1 -1
- package/dist/web/client/assets/right-panel-context-DHKWoetk.js +1 -0
- package/dist/web/client/assets/right-panel-registry-BqtgZw7Z.js +2 -0
- package/dist/web/client/assets/rotate-ccw-DLkfsmG9.js +1 -0
- package/dist/web/client/assets/routes-C37r2W1K.js +16 -0
- package/dist/web/client/assets/safe-external-url-BnEhm9A0.js +1 -0
- package/dist/web/client/assets/search-Cb6fFWew.js +1 -0
- package/dist/web/client/assets/{session-reasoning-panel-8D2P7iaJ.js → session-reasoning-panel-BAtKTsjn.js} +1 -1
- package/dist/web/client/assets/session-tool-renderer-pGdW2MnV.js +1389 -0
- package/dist/web/client/assets/{session-tree-panel-CM4_wwrM.js → session-tree-panel-DF3kuF0P.js} +1 -1
- package/dist/web/client/assets/settings-dialog-BRWheaBZ.js +2 -0
- package/dist/web/client/assets/{skeleton-C3mo31Qu.js → skeleton-D5Y9nBfp.js} +1 -1
- package/dist/web/client/assets/{skeleton-loaders-BMa_G4yX.js → skeleton-loaders-DOKGa7CW.js} +1 -1
- package/dist/web/client/assets/sparkles-C4VQyMox.js +1 -0
- package/dist/web/client/assets/spinner-C3sPnLdu.js +1 -0
- package/dist/web/client/assets/square-BbTF3gLc.js +1 -0
- package/dist/web/client/assets/square-terminal-BLq2bQVF.js +1 -0
- package/dist/web/client/assets/{subagent-chat-panel-BESrXxAR.js → subagent-chat-panel-B6d4Z3bV.js} +1 -1
- package/dist/web/client/assets/subagent-transcript-CQuPs6N4.js +1 -0
- package/dist/web/client/assets/{subagents-panel-8aKOwWLs.js → subagents-panel-ajf--C_-.js} +1 -1
- package/dist/web/client/assets/sun-C7zg8Oas.js +1 -0
- package/dist/web/client/assets/{surfaces-CpfsGAIA.js → surfaces-BULKVm-B.js} +1 -1
- package/dist/web/client/assets/switch-CoSNSJEY.js +1 -0
- package/dist/web/client/assets/terminal-Ceucj7us.js +1 -0
- package/dist/web/client/assets/toast-CS0pnDlS.js +1 -0
- package/dist/web/client/assets/tokens-BcUIpW6Y.js +1 -0
- package/dist/web/client/assets/tool-result-C-vs_tjQ.js +4 -0
- package/dist/web/client/assets/tool-timeline-B4ci1oJg.js +1 -0
- package/dist/web/client/assets/triangle-alert-BuzmrrqI.js +1 -0
- package/dist/web/client/assets/types-Cr5Z97oW.js +1 -0
- package/dist/web/client/assets/{ui-preferences-aG2U2jjW.js → ui-preferences-1YaENqef.js} +1 -1
- package/dist/web/client/assets/{use-presence-7I2qv4qI.js → use-presence-D2YmRKr3.js} +1 -1
- package/dist/web/client/assets/{use-reduced-motion-BOcG709U.js → use-reduced-motion-CaQBb3Qc.js} +2 -2
- package/dist/web/client/assets/{useBaseUiId-D9ZGPZ6f.js → useBaseUiId-BlzQUkVG.js} +1 -1
- package/dist/web/client/assets/{useControlled-CgAAWIy9.js → useControlled-CkQSkSv1.js} +1 -1
- package/dist/web/client/assets/utils-Dpy9ZFOr.js +1 -0
- package/dist/web/client/assets/virtualized-turn-list-Bcq088gZ.js +6 -0
- package/dist/web/client/assets/workspace-panel-CjKMroC6.js +1 -0
- package/dist/web/client/assets/{workspace-path-nav-DqPbETfJ.js → workspace-path-nav-DmxBrMV6.js} +2 -2
- package/dist/web/client/assets/wrench-BYnD147U.js +1 -0
- package/dist/web/client/assets/x-DEU6H3M-.js +1 -0
- package/dist/web/client/bundle-budget.json +6 -6
- package/dist/web/server/_tanstack-start-manifest_v-BZR0i182-OLTGGEDQ.js +96 -0
- package/dist/web/server/{artifacts-panel-CwLVBqyi-CDORJY75.js → artifacts-panel-BySfu7im-AKBWHYJS.js} +73 -66
- package/dist/web/server/{chat-command-palette-DUha04ia-5OV7WVJZ.js → chat-command-palette-BLGKnp-w-OKFIKD3T.js} +52 -45
- package/dist/web/server/{chunk-ADYZWC5L.js → chunk-22XP6PHK.js} +50 -11
- package/dist/web/server/{chunk-T2UTBHJ4.js → chunk-2GQATGF4.js} +51 -39
- package/dist/web/server/{chunk-XEG4JTND.js → chunk-2HOITUWV.js} +5 -5
- package/dist/web/server/{chunk-NZ6KQT2X.js → chunk-2XQYM4KB.js} +2 -2
- package/dist/web/server/{chunk-K6PTNSCW.js → chunk-36BG6OPK.js} +2 -2
- package/dist/web/server/chunk-3OOZPQZF.js +51 -0
- package/dist/web/server/{chunk-DP26GVWH.js → chunk-3YYNG52U.js} +5772 -4758
- package/dist/web/server/{chunk-TU2WNRAL.js → chunk-47TH5VUT.js} +15 -13
- package/dist/web/server/{chunk-O2IC376F.js → chunk-4B2PJSK5.js} +107 -1787
- package/dist/web/server/chunk-4IVORBQD.js +39 -0
- package/dist/web/server/{chunk-B2LF64HM.js → chunk-4LBXVBM7.js} +5 -5
- package/dist/web/server/{chunk-DKD32TRM.js → chunk-5FIJPXUA.js} +3343 -14
- package/dist/web/server/{chunk-YDDDSVNB.js → chunk-5VPNOUVY.js} +7 -5
- package/dist/web/server/chunk-7LUHWO5G.js +28 -0
- package/dist/web/server/chunk-7SZKAHLD.js +25 -0
- package/dist/web/server/{chunk-UE32PAV2.js → chunk-ACZS5EEZ.js} +4 -4
- package/dist/web/server/{chunk-CAPTFJOC.js → chunk-AWVHN432.js} +4 -4
- package/dist/web/server/{chunk-SDV3P3IW.js → chunk-BMXYQRMJ.js} +96 -78
- package/dist/web/server/{chunk-OVJYUWSQ.js → chunk-C2YGLMFE.js} +1 -1
- package/dist/web/server/{chunk-7HXCGBUP.js → chunk-CIE2PLNB.js} +5 -5
- package/dist/web/server/chunk-CMOAC245.js +28 -0
- package/dist/web/server/{chunk-7FK6YEMA.js → chunk-CRCVWYBA.js} +2 -9
- package/dist/web/server/chunk-DIVIHC5K.js +100 -0
- package/dist/web/server/{chunk-XJ6TGSUB.js → chunk-EKVRPCBJ.js} +1 -1
- package/dist/web/server/{chunk-ZNFXBGLK.js → chunk-ERYPONRF.js} +1 -1
- package/dist/web/server/chunk-F3OV445J.js +25 -0
- package/dist/web/server/{chunk-5727TXOK.js → chunk-F5DJQ3PQ.js} +36 -36
- package/dist/web/server/{chunk-XSOUURPF.js → chunk-FAJILEF2.js} +142 -110
- package/dist/web/server/{chunk-UM3RHJNZ.js → chunk-FF2M3MLP.js} +2 -2
- package/dist/web/server/{chunk-IPV4GLJL.js → chunk-FHZAFF2A.js} +7 -24
- package/dist/web/server/chunk-FOMB2JR7.js +26 -0
- package/dist/web/server/{chunk-5RTGRTPD.js → chunk-FVWPODLT.js} +7 -6
- package/dist/web/server/chunk-G3WQTXJY.js +25 -0
- package/dist/web/server/{chunk-YCCF676T.js → chunk-GLNLSEZJ.js} +7 -7
- package/dist/web/server/chunk-GNDXVFJY.js +28 -0
- package/dist/web/server/{chunk-HGVJEUV4.js → chunk-GR765UTQ.js} +4 -4
- package/dist/web/server/{chunk-RXUMFFUV.js → chunk-GSG3K6RA.js} +2 -2
- package/dist/web/server/chunk-HFN4TNR3.js +31 -0
- package/dist/web/server/{chunk-ETCO5KZK.js → chunk-I36LJXNY.js} +5 -5
- package/dist/web/server/{chunk-3Q3QKLHC.js → chunk-IIPUA4LB.js} +248 -212
- package/dist/web/server/{chunk-7PQTPSEE.js → chunk-INWLYZZ6.js} +1 -1
- package/dist/web/server/chunk-JCK6B7ZW.js +1677 -0
- package/dist/web/server/chunk-JEQQEY6O.js +30 -0
- package/dist/web/server/{chunk-V5IFFLZQ.js → chunk-JLGBOCFM.js} +145 -111
- package/dist/web/server/chunk-JVXQQYXB.js +154 -0
- package/dist/web/server/{chunk-KZ35W5M7.js → chunk-JZ2WBCIH.js} +664 -659
- package/dist/web/server/chunk-KABZXD6N.js +152 -0
- package/dist/web/server/{chunk-FTLJ66KU.js → chunk-L2SVMQWB.js} +12 -43
- package/dist/web/server/chunk-LOFZS555.js +28 -0
- package/dist/web/server/{chunk-MJXXVQNA.js → chunk-LQRH6BP6.js} +25 -18
- package/dist/web/server/{chunk-WU6X3GPJ.js → chunk-MTVGA2MH.js} +72 -52
- package/dist/web/server/{chunk-DLA5TLKX.js → chunk-NHZRY22Z.js} +110 -39
- package/dist/web/server/chunk-NZ5YXXQ5.js +39 -0
- package/dist/web/server/chunk-ONWT54IL.js +148 -0
- package/dist/web/server/{chunk-E5HALE4M.js → chunk-OYWUPJ72.js} +2 -2
- package/dist/web/server/{chunk-YVGCPUAW.js → chunk-PISNXFEK.js} +3 -3
- package/dist/web/server/{chunk-33QA7BQJ.js → chunk-PYTU4DGR.js} +16 -10
- package/dist/web/server/{chunk-7E76R7MB.js → chunk-QHCQDVCQ.js} +1 -2
- package/dist/web/server/{chunk-FMAYMBRS.js → chunk-QN7KFCUW.js} +4318 -3649
- package/dist/web/server/chunk-QWWG3YC6.js +25 -0
- package/dist/web/server/chunk-RPGWRA2X.js +39 -0
- package/dist/web/server/chunk-RPWKCJHL.js +18 -0
- package/dist/web/server/chunk-RWYAKZCZ.js +39 -0
- package/dist/web/server/chunk-SGMJ5CGW.js +36 -0
- package/dist/web/server/{chunk-BQROC4PL.js → chunk-TNZKPEE6.js} +13 -7
- package/dist/web/server/chunk-TSOBRZPG.js +41 -0
- package/dist/web/server/{chunk-RJNGEU6C.js → chunk-UIUZ4ETR.js} +2 -2
- package/dist/web/server/{chunk-TLNZNR7C.js → chunk-UUDBEYKV.js} +2 -2
- package/dist/web/server/{chunk-HQ5TEXHT.js → chunk-UXS5E6OE.js} +4 -4
- package/dist/web/server/chunk-V7PDLH3T.js +73 -0
- package/dist/web/server/chunk-VCQ65B3G.js +28 -0
- package/dist/web/server/{chunk-TR2GA5OF.js → chunk-VHLBXWEN.js} +55 -40
- package/dist/web/server/{chunk-S2IBIJIG.js → chunk-WU6KNEGU.js} +46 -31
- package/dist/web/server/chunk-X37KO4BO.js +29 -0
- package/dist/web/server/chunk-X5AQ7KHU.js +22 -0
- package/dist/web/server/chunk-XZCIEF54.js +28 -0
- package/dist/web/server/{chunk-7NZ3FJDA.js → chunk-YBCP4V6T.js} +2 -2
- package/dist/web/server/{chunk-7UTDOTOU.js → chunk-YKJJDQAK.js} +28 -100
- package/dist/web/server/chunk-Z4OTKGMN.js +25 -0
- package/dist/web/server/chunk-ZJIELDZL.js +39 -0
- package/dist/web/server/{chunk-UDD5W4CR.js → chunk-ZMF45HAO.js} +58 -45
- package/dist/web/server/chunk-ZNED4KTU.js +105 -0
- package/dist/web/server/chunk-ZNI5AL4B.js +30 -0
- package/dist/web/server/create-project-dialog-CigfFgAj-QS27NAJH.js +295 -0
- package/dist/web/server/{fork-picker-dialog-DeMiLZtS-WTRTTP64.js → fork-picker-dialog-B5J-S5Nm-QOMVVHI7.js} +11 -11
- package/dist/web/server/{highlighted-body-KPVGNVTW-Ct6g7FVa-YZHVMLW4.js → highlighted-body-KPVGNVTW-D4Xsgab0-BZNKZ2YE.js} +3 -3
- package/dist/web/server/{markdown-BzNejPoZ-6ITTDAV6.js → markdown-DaTMVcnu-37DWI2JW.js} +4 -4
- package/dist/web/server/{markdown-code-DAwXuW6m-HHVELO6I.js → markdown-code-Cvz3a-x3-WAD4KC4A.js} +5 -5
- package/dist/web/server/{mermaid-HWGCJPDP-Ca26PwPZ-5EWRESLM.js → mermaid-HWGCJPDP-CDDePcVz-4BWFRGWL.js} +2 -2
- package/dist/web/server/{message-queue-Demph1x4-GGXJUUKO.js → message-queue-BsrLcNPX-CUCBSF6U.js} +15 -14
- package/dist/web/server/{model-selector-list-BeGQHwKV-UJYFO4KX.js → model-selector-list-Csw4nOra-IOMN5JMO.js} +23 -23
- package/dist/web/server/openui-renderer-TbIFXEW2-BET2OXM2.js +39 -0
- package/dist/web/server/{prompt-suggestions-yPZqX__K-3VGJC4IF.js → prompt-suggestions-D6RXFQF4-7WHYRNMN.js} +5 -5
- package/dist/web/server/{repl-panel-CgUF1qUw-3DFD2V53.js → repl-panel-CBwh0VGD-USDEOGGJ.js} +8 -9
- package/dist/web/server/{resources-panel-ChUliWV--JITAGS6Q.js → resources-panel-rn64m-sL-7QXEGRNX.js} +9 -10
- package/dist/web/server/{router-DfG45nTQ-3VXEUYG5.js → router-RPObiwZR-AFMFSYSZ.js} +2608 -164
- package/dist/web/server/{routes-B9F9UfF1-UN2IVBMJ.js → routes-Dn-deuPY-MDXEQXRU.js} +1967 -2337
- package/dist/web/server/server.js +6 -6
- package/dist/web/server/{session-insights-panel-xgrkX1Rp-FDNURBXZ.js → session-insights-panel-DKkakWj6-ITHKDXF4.js} +1 -1
- package/dist/web/server/{session-reasoning-panel-m1RgcIph-NUXGXVKE.js → session-reasoning-panel-CXMCAM8C-HZMR5JCO.js} +9 -10
- package/dist/web/server/session-tool-renderer-jldnNioy-5ATOVAG5.js +46 -0
- package/dist/web/server/{session-tree-panel-rS0t1wbf-HNA6AJBY.js → session-tree-panel-WaHHv775-HRUHFSFO.js} +11 -11
- package/dist/web/server/{settings-dialog-CqkrDSnm-LFEKSS7Y.js → settings-dialog-CzeangBl-YKL7CLPF.js} +550 -377
- package/dist/web/server/{start-DVUbMfrb-ELVIFRUY.js → start-QK6aG02q-RXFV6K5L.js} +1 -1
- package/dist/web/server/{subagent-chat-panel-Cf7QdDqH-DPPSVLSY.js → subagent-chat-panel-Fa31QewE-YDPOKN74.js} +49 -47
- package/dist/web/server/{subagents-panel-_JsUw-6t-MZWM5P45.js → subagents-panel-DjOcQxp4-GZYOZOYC.js} +46 -45
- package/dist/web/server/tool-timeline-CfuizRid-L3Y3OSCH.js +15 -0
- package/dist/web/server/{workspace-panel-BHEB9nRM-Y6KGIVGP.js → workspace-panel-BU50q4Bu-JHTQPR6R.js} +109 -93
- package/package.json +1 -1
- package/dist/web/client/assets/agent-disclosure-CMrxF7L-.js +0 -1
- package/dist/web/client/assets/analytics-stub-C2vgmGm_.js +0 -1
- package/dist/web/client/assets/artifacts-panel-ClDpGWOU.js +0 -1
- package/dist/web/client/assets/bot-DbB9BKL0.js +0 -1
- package/dist/web/client/assets/bundle-mjs-cJTHqqzI.js +0 -1
- package/dist/web/client/assets/chat-BVMnC5Qh.js +0 -52
- package/dist/web/client/assets/chat-command-palette-YuyaJNbi.js +0 -1
- package/dist/web/client/assets/check-B3LlvM65.js +0 -1
- package/dist/web/client/assets/chevron-down-DUUprRP5.js +0 -1
- package/dist/web/client/assets/chevron-right-NVqQIoiO.js +0 -1
- package/dist/web/client/assets/chunk-YOKDWASO-Bte3iwlH.js +0 -143
- package/dist/web/client/assets/citations-DXqV2NLy.js +0 -1
- package/dist/web/client/assets/createLucideIcon-_dfI7Arx.js +0 -1
- package/dist/web/client/assets/dist-52wg4XPY.js +0 -1
- package/dist/web/client/assets/eye-CDHqtVoE.js +0 -1
- package/dist/web/client/assets/file-text-TmalmYrb.js +0 -1
- package/dist/web/client/assets/folder-vuNT4shY.js +0 -1
- package/dist/web/client/assets/gauge-BsDqNM1A.js +0 -1
- package/dist/web/client/assets/git-branch-CTq9aACS.js +0 -1
- package/dist/web/client/assets/globals-BtCXZXL_.css +0 -2
- package/dist/web/client/assets/hard-drive-BT7UxHQu.js +0 -1
- package/dist/web/client/assets/horizontal-resize-VLjLByUV.js +0 -1
- package/dist/web/client/assets/index-B9aXxpOv.js +0 -12
- package/dist/web/client/assets/ipython-tool-CkHaO3PW.js +0 -3
- package/dist/web/client/assets/is-ref-object-BcRWZ4l7.js +0 -1
- package/dist/web/client/assets/loader-circle-B5GIZGxd.js +0 -1
- package/dist/web/client/assets/markdown-BHkByC9K.js +0 -2
- package/dist/web/client/assets/mermaid-HWGCJPDP-CY3N5ECk.js +0 -1
- package/dist/web/client/assets/package-BKBPgwMP.js +0 -1
- package/dist/web/client/assets/pencil-CdO6qfv3.js +0 -1
- package/dist/web/client/assets/plug-BRROUIw-.js +0 -1
- package/dist/web/client/assets/prompt-input-WaGSKZCU.js +0 -1
- package/dist/web/client/assets/provider-catalog-ClVvphe0.js +0 -1
- package/dist/web/client/assets/provider-label-CwZ-KDxk.js +0 -1
- package/dist/web/client/assets/react-CwJFpaho.js +0 -1
- package/dist/web/client/assets/react-dom-DX3XddaT.js +0 -1
- package/dist/web/client/assets/refresh-cw-l9WPHRkq.js +0 -1
- package/dist/web/client/assets/resource-helpers-BuWybA8l.js +0 -2
- package/dist/web/client/assets/right-panel-context-CS8tJMzE.js +0 -1
- package/dist/web/client/assets/right-panel-registry-BnYCffmM.js +0 -2
- package/dist/web/client/assets/rotate-ccw-CfGhzOv7.js +0 -1
- package/dist/web/client/assets/routes-DUontXSG.js +0 -16
- package/dist/web/client/assets/safe-external-url-BbAom7Bm.js +0 -1
- package/dist/web/client/assets/search-BjcXAUrI.js +0 -1
- package/dist/web/client/assets/session-tool-renderer-Bd3dsE2D.js +0 -1395
- package/dist/web/client/assets/settings-dialog-DMTD9m6z.js +0 -2
- package/dist/web/client/assets/sparkles-BY5MFyk6.js +0 -1
- package/dist/web/client/assets/square-DQaQu9bp.js +0 -1
- package/dist/web/client/assets/square-terminal-BsopiuN7.js +0 -1
- package/dist/web/client/assets/subagent-transcript-CAqFJfMj.js +0 -1
- package/dist/web/client/assets/sun-D0llhiMU.js +0 -1
- package/dist/web/client/assets/switch-D3FhZU-S.js +0 -1
- package/dist/web/client/assets/terminal-BQAKkBY6.js +0 -1
- package/dist/web/client/assets/toast-lnCWGgSE.js +0 -1
- package/dist/web/client/assets/tokens-Ch5WqXC_.js +0 -1
- package/dist/web/client/assets/tool-result-B_yb2JoE.js +0 -4
- package/dist/web/client/assets/tool-timeline-VnMRQoLS.js +0 -1
- package/dist/web/client/assets/triangle-alert-GAYh_5d3.js +0 -1
- package/dist/web/client/assets/utils-Brtgag-m.js +0 -1
- package/dist/web/client/assets/virtualized-turn-list-mL3ONUUA.js +0 -6
- package/dist/web/client/assets/workspace-panel-CKF5JQl2.js +0 -1
- package/dist/web/client/assets/wrench-Myc12BTA.js +0 -1
- package/dist/web/client/assets/x-BGsDD848.js +0 -1
- package/dist/web/server/_tanstack-start-manifest_v-Cm8xE-Rb-TMLYN3GY.js +0 -93
- package/dist/web/server/chunk-2ST2ULW7.js +0 -24
- package/dist/web/server/chunk-3C4CFCIS.js +0 -19
- package/dist/web/server/chunk-3IHTZSBY.js +0 -22
- package/dist/web/server/chunk-4QD4PCVP.js +0 -19
- package/dist/web/server/chunk-4ZIEVI5O.js +0 -63
- package/dist/web/server/chunk-7CNGNFFK.js +0 -23
- package/dist/web/server/chunk-AHTO6GDS.js +0 -33
- package/dist/web/server/chunk-CHEC7TWB.js +0 -22
- package/dist/web/server/chunk-D7ELZVTI.js +0 -33
- package/dist/web/server/chunk-GS2IZGRC.js +0 -19
- package/dist/web/server/chunk-H5D5DX3K.js +0 -75
- package/dist/web/server/chunk-HFQZLPU2.js +0 -29
- package/dist/web/server/chunk-JBLHIEVG.js +0 -22
- package/dist/web/server/chunk-JDCCC7A7.js +0 -3382
- package/dist/web/server/chunk-JIULUYHT.js +0 -24
- package/dist/web/server/chunk-KBWUBWVJ.js +0 -60
- package/dist/web/server/chunk-LJ6Y7DBH.js +0 -128
- package/dist/web/server/chunk-M5RSPNYN.js +0 -22
- package/dist/web/server/chunk-O2DUZJYK.js +0 -19
- package/dist/web/server/chunk-OKL5ZRVB.js +0 -33
- package/dist/web/server/chunk-OMPXUTMX.js +0 -33
- package/dist/web/server/chunk-OOXWPL22.js +0 -22
- package/dist/web/server/chunk-SFTKGQ7H.js +0 -33
- package/dist/web/server/chunk-TNL4YV63.js +0 -29
- package/dist/web/server/chunk-UCA4WN66.js +0 -45
- package/dist/web/server/chunk-WWJF4RO2.js +0 -19
- package/dist/web/server/chunk-X7D6GFQU.js +0 -34
- package/dist/web/server/chunk-XA42CHF2.js +0 -22
- package/dist/web/server/openui-renderer-B4z18Brm-HSMKJ47D.js +0 -39
- package/dist/web/server/session-tool-renderer-CT65wuet-RQBMXHEZ.js +0 -46
- package/dist/web/server/tool-timeline-QL9k5dzA-RLU26HXT.js +0 -16
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./createLucideIcon-CQY2ECfR.js";var t={name:`package`,size:24,node:[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]};t.node;var n=e(t);export{n as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./createLucideIcon-CQY2ECfR.js";var t={name:`pencil`,size:24,node:[[`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`}]]};t.node;var n=e(t);export{n as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./createLucideIcon-CQY2ECfR.js";var t={name:`plug`,size:24,node:[[`path`,{d:`M12 22v-5`,key:`1ega77`}],[`path`,{d:`M15 8V2`,key:`18g5xt`}],[`path`,{d:`M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z`,key:`1xoxul`}],[`path`,{d:`M9 8V2`,key:`14iosj`}]]};t.node;var n=e(t);export{n as t};
|
|
@@ -0,0 +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"./button-BrwYi6QP.js";import{t as i}from"./utils-Dpy9ZFOr.js";import{c as a,d as o}from"./ease-2UPBQU5v.js";import{n as s,t as c}from"./use-reduced-motion-CaQBb3Qc.js";import{t as l}from"./arrow-up-DCwrqIrK.js";import{t as u}from"./square-BbTF3gLc.js";var d=e(t(),1),f=`px-2 text-sm leading-6 whitespace-pre-wrap [overflow-wrap:break-word]`,p=`text-transparent`,m=`text-foreground/55`,h={focused:!1,composing:!1,caretStart:null,caretEnd:null};function g(e,t){return e.focused===t.focused&&e.composing===t.composing&&e.caretStart===t.caretStart&&e.caretEnd===t.caretEnd}function _(e){let{completion:t,value:n,editing:r}=e;if(!t||t.forValue!==n)return null;let i=t.text;return i.length===0||i.trim().length===0||n.endsWith(i)||n.length===0||e.streaming||e.disabled||e.triggerOpen||e.intentSuggestion||e.dismissed&&e.dismissed.forValue===n&&e.dismissed.text===i||!r.focused||r.composing||r.caretStart===null||r.caretEnd===null||r.caretStart!==r.caretEnd||r.caretStart!==n.length?null:{text:i}}function v(e,t){return`${e}${t}`}var y=n();function b({value:e,defaultValue:t=``,onValueChange:n,onSubmit:h,loading:g=!1,submitWhileLoading:_=!1,onStop:v,minRows:b=2,maxRows:x=8,leadingAction:S,className:C,disabled:w,placeholder:T=`Ask the agent to do something…`,"aria-label":E=`Prompt`,onKeyDown:D,onScroll:O,ghostText:k,onTextareaRef:A,...j}){let M=c()??!1,N=(0,d.useRef)(null),P=(0,d.useRef)(null),F=(0,d.useRef)(null),[I,L]=(0,d.useState)(void 0),[R,z]=(0,d.useState)(t),B=e??R,V=!!B.trim()&&!w&&(!g||_),H=(0,d.useCallback)(()=>{let e=N.current,t=F.current;t&&e&&(t.scrollTop=e.scrollTop,L(t=>t===e.clientWidth?t:e.clientWidth))},[]);(0,d.useLayoutEffect)(()=>{H()},[H,k,B]);let U=(0,d.useCallback)(()=>{let e=N.current,t=P.current;if(!e||!t||e.value!==B)return;let n=`${Math.min(Math.max(t.scrollHeight,b*24),x*24)}px`;e.style.height!==n&&(e.style.height=n)},[B,x,b]);(0,d.useLayoutEffect)(()=>{U()},[U]);let W=(0,d.useRef)(U);(0,d.useEffect)(()=>{W.current=U}),(0,d.useEffect)(()=>{let e=N.current;if(!e||typeof ResizeObserver>`u`)return;let t=new ResizeObserver(()=>{W.current(),H()});return t.observe(e),()=>t.disconnect()},[H]),(0,d.useEffect)(()=>(A?.(N.current),()=>A?.(null)),[A]);let G=t=>{e===void 0&&z(t),n?.(t)},K=t=>{t?.preventDefault();let n=B.trim();!n||w||g&&!_||(h?.(n),e===void 0&&z(``),N.current?.focus({preventScroll:!0}))},q=e=>{D?.(e),!(e.defaultPrevented||e.key!==`Enter`||e.shiftKey||e.nativeEvent.isComposing)&&(e.preventDefault(),K())};return(0,y.jsxs)(`form`,{onSubmit:K,className:i(`relative w-full rounded-chat-input border border-border/70 bg-sidebar p-2 text-[color:var(--foreground)] shadow-sm transition-[border-color,box-shadow] focus-within:border-chat-input-focus-outline/45 focus-within:ring-1 focus-within:ring-chat-input-focus-outline/25`,w&&`opacity-60`,C),children:[(0,y.jsx)(`div`,{ref:P,"data-slot":`composer-measure`,"aria-hidden":`true`,className:i(`pointer-events-none invisible absolute inset-x-2 top-0`,f),children:`${B}\u200b`}),(0,y.jsxs)(`div`,{className:`relative`,children:[k?(0,y.jsx)(`div`,{"data-slot":`composer-ghost-layer`,"aria-hidden":`true`,className:`pointer-events-none absolute inset-0 select-none overflow-hidden`,children:(0,y.jsxs)(`div`,{ref:F,"data-slot":`composer-ghost-mirror`,className:i(`h-full overflow-hidden pt-1.5`,f,p),style:I===void 0?void 0:{width:`${I}px`},children:[B,(0,y.jsx)(`span`,{"data-slot":`composer-ghost`,className:m,children:k})]})}):null,(0,y.jsx)(`textarea`,{ref:N,value:B,disabled:w,placeholder:T,"aria-label":E,autoComplete:`off`,rows:b,...j,onChange:e=>G(e.target.value),onKeyDown:q,onScroll:e=>{O?.(e),H()},className:i(`block w-full resize-none overflow-y-auto bg-transparent pt-1.5 text-foreground outline-none placeholder:text-foreground/55`,f)})]}),(0,y.jsxs)(`div`,{className:`mt-1 flex min-h-8 items-center gap-1`,children:[S,g&&v?(0,y.jsx)(r,{type:`button`,size:`icon`,"aria-label":`Stop generating`,onClick:v,className:`ml-auto size-8 rounded-full`,children:(0,y.jsx)(u,{className:`size-3 fill-current`})}):null,!g||V?(0,y.jsx)(r,{type:`submit`,size:`icon`,disabled:!V,"aria-label":g?`Steer current run`:`Send prompt`,className:i(`size-8 rounded-full`,!g&&`ml-auto`,V&&`border-transparent bg-chat-input-accent text-white hover:bg-chat-input-accent/90 focus-visible:border-chat-input-accent focus-visible:ring-chat-input-accent/40`),children:(0,y.jsx)(s,{initial:!1,mode:`popLayout`,children:(0,y.jsx)(o.span,{initial:M?{opacity:1}:{opacity:0,y:3,scale:.8},animate:{opacity:1,y:0,scale:1},exit:M?{opacity:0}:{opacity:0,y:-3,scale:.8},transition:M?{duration:0}:a,className:`grid place-items-center`,children:(0,y.jsx)(l,{className:`size-4`})},`send`)})}):null]})]})}export{v as a,g as i,h as n,_ as r,b as t};
|
package/dist/web/client/assets/{prompt-suggestions-BNyTcyWg.js → prompt-suggestions-ULqmPijZ.js}
RENAMED
|
@@ -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-Dpy9ZFOr.js";import{d as n}from"./tokens-BcUIpW6Y.js";var r=e();function i({suggestions:e,selectedSuggestion:i,cycle:a,onSuggestion:o,variant:s=`pills`,className:c,...l}){let u=s===`list`;return(0,r.jsx)(`div`,{"data-slot":`suggestions`,className:t(u?`flex w-full max-w-sm flex-col gap-2`:`flex w-full max-w-chat flex-wrap justify-center gap-1.5`,c),...l,children:e.map((e,a)=>(0,r.jsx)(`button`,{type:`button`,"aria-pressed":i===e,onClick:()=>o(e),className:t(n,`fade-in slide-in-from-bottom-2 animate-in fill-mode-both cursor-pointer focus-visible:ring-2 focus-visible:ring-ring motion-reduce:animate-none`,u&&`w-full justify-start rounded-2xl px-4 py-2.5 text-start`,i===e&&`!bg-foreground !text-background hover:!text-background focus-visible:!text-background`),style:{animationDelay:`${a*70}ms`},children:e},e))},a)}export{i as PromptSuggestions};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-Cvdyeg_0.js";import{t as n}from"./react-dom-B7th3XGm.js";import{t as r}from"./jsx-runtime-NZYk81nU.js";import{$ as i,A as a,B as o,D as s,E as c,F as l,G as u,H as d,I as f,J as p,K as m,O as h,T as g,U as _,V as v,Y as y,Z as b,c as x,et as S,f as C,h as w,k as T,l as E,m as D,n as O,nt as k,q as A,w as j}from"./button-BrwYi6QP.js";import{t as M}from"./utils-Dpy9ZFOr.js";import{$ as N,B as P,E as F,F as I,G as L,H as R,I as z,K as B,L as V,N as H,O as ee,P as U,Q as W,R as G,S as te,T as K,U as q,V as ne,W as re,Y as J,Z as ie,_ as ae,ct as oe,et as Y,f as se,g as ce,h as le,it as ue,k as de,l as fe,n as pe,nt as me,o as he,ot as ge,q as _e,rt as X,st as ve,t as ye,u as be,x as xe,z as Se}from"./createBaseUIEventDetails-DklXWq23.js";import{$ as Z,E as Ce,G as we,J as Te,K as Ee,L as De,R as Oe,S as ke,T as Ae,U as je,W as Me,Y as Ne,Z as Pe,c as Fe,et as Ie,h as Le,l as Re,q as ze,u as Be,x as Ve,z as He}from"./DialogTitle-BwQ9k-MZ.js";import{n as Ue,r as We,t as Ge}from"./useBaseUiId-BlzQUkVG.js";import{t as Ke}from"./check-BTwIaCtI.js";import{t as qe}from"./chevron-down-Bse1ggZM.js";import{t as Je}from"./useControlled-CkQSkSv1.js";import{a as Ye,i as Xe,l as Ze,n as Qe,o as $e,r as et,s as tt}from"./input-BceH49B1.js";var Q=e(t(),1),$=r(),nt=[`top`,`right`,`bottom`,`left`],rt=Math.min,it=Math.max,at=Math.round,ot=Math.floor,st=e=>({x:e,y:e}),ct={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function lt(e,t,n){return it(e,rt(t,n))}function ut(e,t){return typeof e==`function`?e(t):e}function dt(e){return e.split(`-`)[0]}function ft(e){return e.split(`-`)[1]}function pt(e){return e===`x`?`y`:`x`}function mt(e){return e===`y`?`height`:`width`}function ht(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function gt(e){return pt(ht(e))}function _t(e,t,n){n===void 0&&(n=!1);let r=ft(e),i=gt(e),a=mt(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Et(o)),[o,Et(o)]}function vt(e){let t=Et(e);return[yt(e),t,yt(t)]}function yt(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var bt=[`left`,`right`],xt=[`right`,`left`],St=[`top`,`bottom`],Ct=[`bottom`,`top`];function wt(e,t,n){switch(e){case`top`:case`bottom`:return n?t?xt:bt:t?bt:xt;case`left`:case`right`:return t?St:Ct;default:return[]}}function Tt(e,t,n,r){let i=ft(e),a=wt(dt(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(yt)))),a}function Et(e){let t=dt(e);return ct[t]+e.slice(t.length)}function Dt(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Ot(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Dt(e)}function kt(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function At(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function jt(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:a=!0,ignoreMouse:o=!1,stickIfOpen:s=!0,touchOpenDelay:c=0,reason:l=le}=t,u=`rootStore`in e?e.rootStore:e,d=u.context.dataRef,p=Q.useRef(void 0),m=H(),h=i(),g=Q.useMemo(()=>{function e(e,t,n,r){let i=ye(l,t,n);e&&r===`touch`&&c>0?h.start(c,()=>{u.setOpen(!0,i)}):u.setOpen(e,i)}function t(e,t,n){let r=d.current.openEvent,i=u.select(`domReferenceElement`)!==t;return e&&i||!e||!a?!0:r&&s?!n(r.type):!1}return{onPointerDown(e){p.current=Ee(e.pointerType,!0)&&Te(e.nativeEvent)?`virtual`:e.pointerType},onMouseDown(n){let i=p.current,a=n.nativeEvent,s=u.select(`open`);if(n.button!==0||r===`click`||Ee(i,!0)&&o)return;let c=t(s,n.currentTarget,e=>e===`click`||e===`mousedown`),l=A(a);if(f(l)){e(c,a,l,i);return}let d=n.currentTarget;m.request(()=>{e(c,a,d,i)})},onClick(n){if(r===`mousedown-only`)return;let i=p.current;if(r===`mousedown`&&i){p.current=void 0;return}Ee(i,!0)&&o||e(t(u.select(`open`),n.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),n.nativeEvent,n.currentTarget,i)},onKeyDown(){p.current=void 0}}},[d,r,o,l,u,s,a,m,h,c]);return Q.useMemo(()=>n?{reference:g}:ve,[n,g])}function Mt(e,t,n){let{reference:r,floating:i}=e,a=ht(t),o=gt(t),s=mt(o),c=dt(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=ft(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Nt(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=ut(t,e),p=Ot(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=kt(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=kt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Pt=50,Ft=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Nt},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Mt(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Pt&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Mt(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},It=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=ut(e,t)||{};if(l==null)return{};let d=Ot(u),f={x:n,y:r},p=gt(i),m=mt(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=rt(d[_],T),D=rt(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=lt(E,k,O),j=!c.arrow&&ft(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,M=j?k<E?k-E:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),Lt=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=ut(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=dt(r),_=ht(o),v=dt(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Et(o)]:vt(o)),x=p!==`none`;!d&&x&&b.push(...Tt(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=_t(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===ht(t)||T.every(e=>ht(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=ht(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function Rt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function zt(e){return nt.some(t=>e[t]>=0)}var Bt=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=ut(e,t);switch(i){case`referenceHidden`:{let e=Rt(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:zt(e)}}}case`escaped`:{let e=Rt(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:zt(e)}}}default:return{}}}}},Vt=new Set([`left`,`top`]);async function Ht(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=dt(n),s=ft(n),c=ht(n)===`y`,l=Vt.has(o)?-1:1,u=a&&c?-1:1,d=ut(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Ut=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Ht(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Wt=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=ut(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=ht(i),p=pt(f),m=u[p],h=u[f],g=(e,t)=>lt(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Gt=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=ut(e,t),u={x:n,y:r},d=ht(i),f=pt(d),p=u[f],m=u[d],h=ut(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Vt.has(dt(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Kt=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=ut(e,t),c=await i.detectOverflow(t,s),l=dt(n),u=ft(n),d=ht(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=rt(p-c[m],g),y=rt(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*it(c.left,c.right):S=p-2*it(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function qt(e){let t=I(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=B(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=at(n)!==a||at(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Jt(e){return L(e)?e:e.contextElement}function Yt(e){let t=Jt(e);if(!B(t))return st(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=qt(t),o=(a?at(n.width):n.width)/r,s=(a?at(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Xt=st(0);function Zt(e){let t=q(e);return!N()||!t.visualViewport?Xt:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Qt(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===q(e)}function $t(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Jt(e),o=st(1);t&&(r?L(r)&&(o=Yt(r)):o=Yt(e));let s=Qt(a,n,r)?Zt(a):st(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=q(a),t=L(r)?q(r):r,n=e,i=G(n);for(;i&&t!==n;){let e=Yt(i),t=i.getBoundingClientRect(),r=I(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=q(i),i=G(n)}}return kt({width:u,height:d,x:c,y:l})}function en(e,t){let n=P(e).scrollLeft;return t?t.left+n:$t(V(e)).left+n}function tn(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-en(e,n),y:n.top+t.scrollTop}}function nn(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=V(r),s=t?W(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=st(1),u=st(0),d=B(r);if((d||!a)&&((Se(r)!==`body`||J(o))&&(c=P(r)),d)){let e=$t(r);l=Yt(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?tn(o,c):st(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function rn(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function an(e){let t=P(e),n=e.ownerDocument.body,r=it(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=it(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+en(e),o=-t.scrollTop;return I(n).direction===`rtl`&&(a+=it(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var on=25;function sn(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=q(e),a=V(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!N()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(en(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=on&&(s-=o)}return{width:s,height:c,x:l,y:u}}function cn(e,t){let n=$t(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Yt(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function ln(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=sn(e,n,t);else if(t===`document`)r=an(V(e));else if(L(t))r=cn(t,n);else{let n=Zt(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return kt(r)}function un(e,t){let n=t.get(e);if(n)return n;let r=ne(e,[],!1).filter(e=>L(e)&&Se(e)!==`body`),i=null,a=I(e).position===`fixed`,o=a?R(e):e;for(;L(o)&&!_e(o);){let e=I(o),t=re(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=R(o)}return t.set(e,r),r}function dn(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?W(t)?[]:un(t,this._c):[].concat(n),r],o=ln(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=ln(t,a[e],i);s=it(n.top,s),c=rt(n.right,c),l=rt(n.bottom,l),u=it(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function fn(e){let{width:t,height:n}=qt(e);return{width:t,height:n}}function pn(e,t,n){let r=B(t),i=V(t),a=n===`fixed`,o=$t(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=st(0);if((r||!a)&&((Se(t)!==`body`||J(i))&&(s=P(t)),r)){let e=$t(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=en(i));let l=i&&!r&&!a?tn(i,s):st(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function mn(e){return I(e).position===`static`}function hn(e,t){if(!B(e)||I(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return V(e)===n&&(n=n.ownerDocument.body),n}function gn(e,t){let n=q(e);if(W(e))return n;if(!B(e)){let t=R(e);for(;t&&!_e(t);){if(L(t)&&!mn(t))return t;t=R(t)}return n}let r=hn(e,t);for(;r&&ie(r)&&mn(r);)r=hn(r,t);return r&&_e(r)&&mn(r)&&!re(r)?n:r||z(e)||n}var _n=async function(e){let t=this.getOffsetParent||gn,n=this.getDimensions,r=await n(e.floating);return{reference:pn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function vn(e){return I(e).direction===`rtl`}var yn={convertOffsetParentRelativeRectToViewportRelativeRect:nn,getDocumentElement:V,getClippingRect:dn,getOffsetParent:gn,getElementRects:_n,getClientRects:rn,getDimensions:fn,getScale:Yt,isElement:L,isRTL:vn};function bn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function xn(e,t,n){let r=null,i,a=V(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=ot(d),h=ot(a.clientWidth-(u+f)),g=ot(a.clientHeight-(d+p)),_=ot(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:it(0,rt(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!bn(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=q(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Sn(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Jt(e),u=i||a?[...l?ne(l):[],...t?ne(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?xn(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?$t(e):null;c&&g();function g(){let t=$t(e);h&&!bn(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Cn=Ut,wn=Wt,Tn=Lt,En=Kt,Dn=Bt,On=It,kn=Gt,An=(e,t,n)=>{let r=new Map,i=n??{},a={...yn,...i.platform,_c:r};return Ft(e,t,{...i,platform:a})},jn=e(n(),1),Mn=typeof document<`u`?Q.useLayoutEffect:function(){};function Nn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Nn(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Nn(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Pn(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Fn(e,t){let n=Pn(e);return Math.round(t*n)/n}function In(e){let t=Q.useRef(e);return Mn(()=>{t.current=e}),t}function Ln(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=Q.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=Q.useState(r);Nn(f,r)||p(r);let[m,h]=Q.useState(null),[g,_]=Q.useState(null),v=Q.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=Q.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=Q.useRef(null),C=Q.useRef(null),w=Q.useRef(u),T=c!=null,E=In(c),D=In(i),O=In(l),k=Q.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),An(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!Nn(w.current,t)&&(w.current=t,jn.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);Mn(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=Q.useRef(!1);Mn(()=>(A.current=!0,()=>{A.current=!1}),[]),Mn(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=Q.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=Q.useMemo(()=>({reference:b,floating:x}),[b,x]),N=Q.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=Fn(M.floating,u.x),r=Fn(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Pn(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return Q.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:N}),[u,k,j,M,N])}var Rn=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:On({element:r.current,padding:i}).fn(n):r?On({element:r,padding:i}).fn(n):{}}}},zn=(e,t)=>{let n=Cn(e);return{name:n.name,fn:n.fn,options:[e,t]}},Bn=(e,t)=>{let n=wn(e);return{name:n.name,fn:n.fn,options:[e,t]}},Vn=(e,t)=>({fn:kn(e).fn,options:[e,t]}),Hn=(e,t)=>{let n=Tn(e);return{name:n.name,fn:n.fn,options:[e,t]}},Un=(e,t)=>{let n=En(e);return{name:n.name,fn:n.fn,options:[e,t]}},Wn=(e,t)=>{let n=Dn(e);return{name:n.name,fn:n.fn,options:[e,t]}},Gn=(e,t)=>{let n=Rn(e);return{name:n.name,fn:n.fn,options:[e,t]}};function Kn(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=xe(),a=je()!=null,o=ue(()=>new De({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Ae,floatingId:i,syncOnly:!1,nested:a})).current;return X(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=L(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}function qn(e){return Jn(e,e.rootContext)}function Jn(e,t){let{nodeId:n,externalTree:r}=e,i=t.useState(`referenceElement`),a=t.useState(`floatingElement`),o=t.useState(`domReferenceElement`),s=t.useState(`open`),c=t.useState(`floatingId`),[l,u]=Q.useState(null),[d,f]=Q.useState(void 0),[p,m]=Q.useState(void 0),h=Q.useRef(null),g=Me(r),_=Q.useMemo(()=>({reference:i,floating:a,domReference:o}),[i,a,o]),v=Ln({...e,elements:{..._,...l&&{reference:l}}}),y=L(d)?d:null,b=p===void 0?t.state.floatingElement:p;t.useSyncedValue(`referenceElement`,d??null),t.useSyncedValue(`domReferenceElement`,d===void 0?o:y),t.useSyncedValue(`floatingElement`,b);let x=Q.useCallback(e=>{let t=L(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),v.refs.setReference(t)},[v.refs]),S=Q.useCallback(e=>{(L(e)||e===null)&&(h.current=e,f(e)),(L(v.refs.reference.current)||v.refs.reference.current===null||e!==null&&!L(e))&&v.refs.setReference(e)},[v.refs,f]),C=Q.useCallback(e=>{m(e),v.refs.setFloating(e)},[v.refs]),w=Q.useMemo(()=>({...v.refs,setReference:S,setFloating:C,setPositionReference:x,domReference:h}),[v.refs,S,C,x]),T=Q.useMemo(()=>({...v.elements,domReference:o}),[v.elements,o]),E=Q.useMemo(()=>({...v,dataRef:t.context.dataRef,open:s,onOpenChange:t.setOpen,events:t.context.events,floatingId:c,refs:w,elements:T,nodeId:n,rootStore:t}),[v,w,T,n,t,s,c]);return X(()=>{o&&(h.current=o)},[o]),X(()=>{t.context.dataRef.current.floatingContext=E;let e=g?.nodesRef.current.find(e=>e.id===n);e&&(e.context=E)}),Q.useMemo(()=>({...v,context:E,refs:w,elements:T,rootStore:t}),[v,w,T,E,t])}var Yn=`Escape`;function Xn(e){return y&&e.movementX===0&&e.movementY===0}function Zn(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function Qn(e,t){return Zn(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function $n(e,t,n){return Zn(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function er(e,t,n){return Zn(t,n?e===v:e===d,e===o)}function tr(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===Yn:Zn(t,n?e===d:e===v,e===_)}function nr(e,t){let{listRef:n,activeIndex:r,onNavigate:i=()=>{},enabled:o=!0,selectedIndex:s=null,allowEscape:d=!1,loopFocus:f=!1,nested:p=!1,rtl:_=!1,virtual:v=!1,focusItemOnOpen:y=`auto`,focusItemOnHover:b=!0,openOnArrowKeyDown:x=!0,disabledIndices:C=void 0,orientation:w=`vertical`,parentOrientation:T,id:E,resetOnPointerLeave:D=!0,externalTree:O,grid:k}=t,M=k!=null,N=`rootStore`in e?e.rootStore:e,P=N.useState(`open`),F=N.useState(`floatingElement`),I=N.useState(`domReferenceElement`),L=N.context.dataRef,R=a(F),z=l(I),V=We(R),ee=je(),U=Me(O),W=Q.useRef(y),G=Q.useRef(s??-1),te=Q.useRef(null),K=Q.useRef(!0),q=Y(e=>{i(G.current===-1?null:G.current,e)}),ne=Q.useRef(!!F),re=Q.useRef(P),J=Q.useRef(!1),ie=Q.useRef(!1),ae=Q.useRef(null),oe=We(C),se=We(P),ce=We(s),le=We(D),ue=H(),de=H(),fe=Y(()=>{function e(e){v?U?.events.emit(`virtualfocus`,e):ae.current=we(e,{sync:J.current,preventScroll:!0})}let t=n.current[G.current],r=ie.current;t&&e(t),(J.current?e=>e():e=>ue.request(e))(()=>{let i=n.current[G.current]||t;i&&(t||e(i),xe&&(r||!K.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});X(()=>{L.current.orientation=w},[L,w]),X(()=>{o&&(P&&F?(G.current=s??-1,W.current&&s!=null&&(ie.current=!0,q())):ne.current&&(G.current=-1,q()))},[o,P,F,s,q]),X(()=>{if(o){if(!P){J.current=!1;return}if(F){if(r==null){if(J.current=!1,ce.current!=null)return;if(ne.current&&(G.current=-1,fe()),(!re.current||!ne.current)&&W.current&&(te.current!=null||W.current===!0&&te.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>de.request(e):queueMicrotask)(t),e+=1):(G.current=te.current==null||$n(te.current,w,_)||p?c(n):g(n),te.current=null,q())};t()}}else h(n.current,r)||(G.current=r,fe(),ie.current=!1)}}},[o,P,F,r,ce,p,n,w,_,q,fe,de]),X(()=>{if(!o||F||!U||v||!ne.current)return;let e=U.nodesRef.current,t=e.find(e=>e.id===ee)?.context?.elements.floating,n=u(S(I??t??null)),r=e.some(e=>e.context&&m(e.context.elements.floating,n));t&&!r&&K.current&&t.focus({preventScroll:!0})},[o,F,I,U,ee,v]),X(()=>{re.current=P,ne.current=!!F}),X(()=>{P||(te.current=null,W.current=y)},[P,y]);let pe=r!=null,me=Y(e=>{if(!se.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(G.current!==t||r!==t)&&(G.current=t,q(e))}),ge=Y(()=>T??U?.nodesRef.current.find(e=>e.id===ee)?.context?.dataRef?.current.orientation),_e=Y(()=>c(n,oe.current)),ve=Y(e=>{if(K.current=!1,J.current=!0,e.which===229||!se.current&&e.currentTarget===V.current)return;if(p&&tr(e.key,w,_,M)){Qn(e.key,ge())||Ne(e),N.setOpen(!1,ye(be,e.nativeEvent)),B(I)&&(v?U?.events.emit(`virtualfocus`,I):I.focus());return}let t=G.current,r=c(n,C),i=g(n,C);if(z||(e.key===`Home`&&(Ne(e),G.current=r,q(e)),e.key===`End`&&(Ne(e),G.current=i,q(e))),k!=null){let t=k(e,G.current,n,w,f,_,C,r,i);if(t!=null&&(G.current=t,q(e)),w===`both`)return}if(Qn(e.key,w)){if(Ne(e),P&&!v&&u(e.currentTarget.ownerDocument)===e.currentTarget){G.current=$n(e.key,w,_)?r:i,q(e);return}$n(e.key,w,_)?f?t>=i?d&&t!==n.current.length?G.current=-1:(J.current=!1,G.current=r):G.current=j(n.current,{startingIndex:t,disabledIndices:C}):G.current=Math.min(i,j(n.current,{startingIndex:t,disabledIndices:C})):f?t<=r?d&&t!==-1?G.current=n.current.length:(J.current=!1,G.current=i):G.current=j(n.current,{startingIndex:t,decrement:!0,disabledIndices:C}):G.current=Math.max(r,j(n.current,{startingIndex:t,decrement:!0,disabledIndices:C})),h(n.current,G.current)&&(G.current=-1),q(e)}}),xe=Q.useMemo(()=>({onFocus(e){J.current=!0,me(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){Xn(e)||(J.current=!0,ie.current=!1,b&&me(e))},onPointerLeave(e){if(!se.current||!K.current||e.pointerType===`touch`)return;J.current=!0;let t=e.relatedTarget;if(!(!b||n.current.includes(t))&&le.current&&(ae.current?.(),ae.current=null,G.current=-1,q(e),!v)){let e=V.current,t=u(S(e));e&&m(e,t)&&e.focus({preventScroll:!0})}}}),[me,se,V,b,n,q,le,v]),Se=Q.useMemo(()=>v&&P&&pe&&{"aria-activedescendant":`${E}-${r}`},[v,P,pe,E,r]),Z=Q.useMemo(()=>({...z?{}:Se,onKeyDown(e){if(e.key===`Tab`&&e.shiftKey&&P&&!v){let t=A(e.nativeEvent);if(t&&!m(V.current,t))return;Ne(e),N.setOpen(!1,ye(he,e.nativeEvent)),B(I)&&I.focus();return}ve(e)},onPointerMove(e){Xn(e)||(K.current=!0)}}),[Se,ve,V,z,N,P,v,I]),Ce=Q.useMemo(()=>{function e(e){N.setOpen(!0,ye(be,e.nativeEvent,e.currentTarget))}function t(e){y===`auto`&&ze(e.nativeEvent)&&(W.current=!v)}function n(e){W.current=y,y===`auto`&&Te(e.nativeEvent)&&(W.current=!0)}return{onKeyDown(t){let n=N.select(`open`);K.current=!1;let r=t.key.startsWith(`Arrow`),i=er(t.key,ge(),_),a=Qn(t.key,w),o=(p?i:a)||t.key===`Enter`||t.key.trim()===``;if(v&&n)return ve(t);if(!(!n&&!x&&r)){if(o){let e=Qn(t.key,ge());te.current=p&&e?null:t.key}if(p){i&&(Ne(t),n?(G.current=_e(),q(t)):e(t));return}a&&(ce.current!=null&&(G.current=ce.current),Ne(t),!n&&x?e(t):ve(t),n&&q(t))}},onFocus(e){N.select(`open`)&&!v&&(G.current=-1,q(e))},onPointerDown:n,onPointerEnter:n,onMouseDown:t,onClick:t}},[ve,y,_e,p,q,N,x,w,ge,_,ce,v]),Ee=Q.useMemo(()=>({...Se,...Ce}),[Se,Ce]);return Q.useMemo(()=>o?{reference:Ee,floating:Z,item:xe,trigger:Ce}:{},[o,Ee,Z,Ce,xe])}function rr(e,t){let{listRef:n,elementsRef:r,activeIndex:a,onMatch:o,disabledIndices:c,onTyping:l,enabled:u=!0,resetMs:d=750,selectedIndex:f=null}=t,p=`rootStore`in e?e.rootStore:e,h=p.useState(`open`),g=i(),_=Q.useRef(``),v=Q.useRef(f??a??-1),y=Q.useRef(null),b=Y(e=>{function t(e){return r?.current[e]}function i(e){let n=t(e);return n&&!s(n)||n?.matches(`:disabled`)?!1:c==null||!T(ge,e,c)}function u(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length,a=t.toLowerCase();for(let t=0;t<e.length;t+=1){let n=(r+t)%e.length;if(!(!e[n]?.toLowerCase().startsWith(a)||!i(n)))return n}return-1}let p=n.current;if(_.current.length>0&&e.key===` `&&(Ne(e),l?.(!0)),_.current.length>0&&_.current[0]!==` `&&u(p,_.current)===-1&&e.key!==` `&&l?.(!1),p==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;h&&e.key!==` `&&(Ne(e),l?.(!0));let m=_.current===``;m&&(v.current=f??a??-1),p.every((e,t)=>e&&i(t)?e[0]?.toLowerCase()!==e[1]?.toLowerCase():!0)&&_.current===e.key&&(_.current=``,v.current=y.current),_.current+=e.key,g.start(d,()=>{_.current=``,v.current=y.current,l?.(!1)});let b=((m?f??a??-1:v.current)??0)+1,x=u(p,_.current,b);x===-1?e.key!==` `&&(_.current=``,l?.(!1)):(o?.(x),y.current=x)}),x=Y(e=>{let t=e.relatedTarget,n=p.select(`domReferenceElement`),r=p.select(`floatingElement`);m(n,t)||m(r,t)||(g.clear(),_.current=``,v.current=y.current,l?.(!1))});X(()=>{!h&&f!==null||(g.clear(),y.current=null,_.current!==``&&(_.current=``))},[h,f,g]);let S=Q.useMemo(()=>({onKeyDown:b,onBlur:x}),[b,x]);return Q.useMemo(()=>u?{reference:S,floating:S}:{},[u,S])}var ir=Q.createContext(void 0);function ar(){return Q.useContext(ir)?.direction??`ltr`}var or=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:d=`real`}=ut(e,t)||{};if(l==null)return{};let f=Ot(u),p={x:n,y:r},m=gt(i),h=mt(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],C=d===`real`?await o.getOffsetParent?.(l):s.floating,w=s.floating[b]||a.floating[h];(!w||!await o.isElement?.(C))&&(w=s.floating[b]||a.floating[h]);let T=x/2-S/2,E=w/2-g[h]/2-1,D=Math.min(f[v],E),O=Math.min(f[y],E),k=D,A=w-g[h]-O,j=w/2-g[h]/2+T,M=lt(k,j,A),N=!c.arrow&&ft(i)!=null&&j!==M&&a.reference[h]/2-(j<k?D:O)-g[h]/2<0,P=N?j<k?j-k:j-A:0;return{[m]:p[m]+P,data:{[m]:M,centerOffset:j-M-P,...N&&{alignmentOffset:P}},reset:N}}}),sr=(e,t)=>{let{name:n,fn:r}=or(e);return{name:n,fn:r,options:[e,t]}},cr={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0,o=await e.platform.detectOverflow(e,{elementContext:`reference`});return{data:{referenceHidden:o.top-n>=0||o.right-t>=0||o.bottom-n>=0||o.left-t>=0||a}}}},lr={sideX:`left`,sideY:`top`},ur=`--available-width`,dr=`--available-height`,fr=`--anchor-width`,pr=`--anchor-height`,mr=`--transform-origin`,hr=ur,gr=dr;function _r(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function vr(e,t,n){let{rects:r,placement:i}=e;return{side:_r(t,dt(i),n),align:ft(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function yr(e){return br(e,qn)}function br(e,t){let{anchor:n,positionMethod:r=`absolute`,side:i=`bottom`,sideOffset:a=0,align:o=`center`,alignOffset:s=0,collisionBoundary:c,collisionPadding:l=5,sticky:u=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,inline:p,keepMounted:m=!1,floatingRootContext:h,mounted:g,collisionAvoidance:_,shift:v,nodeId:y,adaptiveOrigin:b,lazyFlip:x=!1,externalTree:C}=e,[w,T]=Q.useState(null);!g&&w!==null&&T(null);let E=_.side||`flip`,D=_.align||`flip`,O=_.fallbackAxisSide||`end`,k=v?.crossAxis??!1,A=v?.rootBoundary,j=typeof n==`function`?n:void 0,M=Y(j),N=j?M:n,P=We(n),F=We(g),I=ar()===`rtl`,L=w||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":I?`left`:`right`,"inline-start":I?`right`:`left`}[i],R=o===`center`?L:`${L}-${o}`,z=l;typeof z==`number`?z={top:z,right:z,bottom:z,left:z}:z&&={top:z.top||0,right:z.right||0,bottom:z.bottom||0,left:z.left||0};let B=+(i===`bottom`),V=+(i===`top`),H=+(i===`right`),ee=+(i===`left`),U={boundary:c===`clipping-ancestors`?`clippingAncestors`:c,padding:z},W=Q.useRef(null),G=We(a),te=We(s),K=typeof a==`function`?0:a,ne=typeof s==`function`?0:s,re=[];p&&re.push(p),re.push(zn(e=>{let t=vr(e,i,I),n=typeof G.current==`function`?G.current(t):G.current,r=typeof te.current==`function`?te.current(t):te.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},[K,ne,I,i]));let J=D===`none`&&E!==`shift`,ie=!J&&(u||k||E===`shift`),ae=E===`none`?null:Hn({...U,padding:{top:z.top+1+B,right:z.right+1+ee,bottom:z.bottom+1+V,left:z.left+1+H},mainAxis:!k&&E===`flip`,crossAxis:D===`flip`&&`alignment`,fallbackAxisSideDirection:O}),oe=J?null:Bn({...U,rootBoundary:A,mainAxis:D!==`none`,crossAxis:ie,limiter:u||k?void 0:Vn(e=>{if(!W.current)return{};let{width:t,height:n}=W.current.getBoundingClientRect(),r=ht(dt(e.placement)),i=r===`y`?t:n,a=r===`y`?z.left+z.right:z.top+z.bottom;return{offset:i/2+a/2}})},[U,u,k,A,z,D]);E===`shift`||D===`shift`||o===`center`?re.push(oe,ae):re.push(ae,oe),re.push(Un({...U,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!F.current)return;let i=e.style;i.setProperty(hr,`${t}px`),i.setProperty(gr,`${n}px`);let a=q(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(fr,`${u}px`),i.setProperty(pr,`${d}px`)}}),sr(e=>({element:W.current||S(e.elements.floating).createElement(`div`),padding:W.current?d:0,offsetParent:`floating`}),[d]),{name:`transformOrigin`,fn(e){let{elements:{floating:t},middlewareData:n,placement:r,platform:o,rects:s,y:c}=e,l=dt(r),u=ft(r),d=ht(l)===`y`,f=W.current,p=typeof a==`function`?a(vr(e,i,I)):a,m;m=!f&&u&&Math.abs(d?n.shift?.x||0:n.shift?.y||0)<=1?u===`start`===(d&&o.isRTL?.(t)===!0)?`100%`:`0%`:`${(d?n.arrow?.x||0:n.arrow?.y||0)+(d?f?.clientWidth||0:f?.clientHeight||0)/2}px`;let h=l===`top`||l===`left`?`calc(100% + ${p}px)`:`${-p}px`;return ie&&d&&Math.abs(n.shift?.y||0)>p&&(h=`${s.reference.y+s.reference.height/2-c}px`),t.style.setProperty(mr,d?`${m} ${h}`:`${h} ${m}`),{}}},cr,b),X(()=>{!g&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[g,h]);let se=Q.useMemo(()=>({ancestorScroll:!f,elementResize:!f&&typeof ResizeObserver<`u`,layoutShift:!f&&typeof IntersectionObserver<`u`}),[f]),{refs:ce,elements:le,x:ue,y:de,middlewareData:fe,update:pe,placement:me,context:he,isPositioned:ge,floatingStyles:_e}=t({rootContext:h,open:m?g:void 0,placement:R,middleware:re,strategy:r,whileElementsMounted:m?void 0:(...e)=>Sn(...e,se),nodeId:y,externalTree:C}),{sideX:ve,sideY:ye}=fe.adaptiveOrigin||lr,be=ge?r:`fixed`,xe=Q.useMemo(()=>{let e;return e=ge?b?{position:be,[ve]:ue,[ye]:de}:{..._e,position:be}:{position:be,top:0,left:0},e[hr]=`100vw`,e[gr]=`100vh`,ge||(e.opacity=0),e},[b,be,ve,ue,ye,de,_e,ge]),Se=Q.useRef(null);X(()=>{if(!g)return;let e=P.current,t=typeof e==`function`?e():e,n=(xr(t)?t.current:t)||null;n!==Se.current&&(ce.setPositionReference(n),Se.current=n)},[g,ce,N,P]),Q.useEffect(()=>{if(!g)return;let e=P.current;typeof e!=`function`&&xr(e)&&e.current!==Se.current&&(ce.setPositionReference(e.current),Se.current=e.current)},[g,ce,N,P]),Q.useEffect(()=>{if(m&&g&&le.reference&&le.floating)return Sn(le.reference,le.floating,pe,se)},[m,g,le,pe,se]);let Z=dt(me),Ce=_r(i,Z,I),we=ft(me)||`center`,Te=!!fe.hide?.referenceHidden;X(()=>{x&&g&&ge&&Z!==L&&T(Z)},[x,g,ge,Z,L]);let Ee=Q.useMemo(()=>({position:`absolute`,top:fe.arrow?.y,left:fe.arrow?.x}),[fe.arrow]),De=fe.arrow?.centerOffset!==0;return Q.useMemo(()=>({positionerStyles:xe,arrowStyles:Ee,arrowRef:W,arrowUncentered:De,side:Ce,align:we,physicalSide:Z,anchorHidden:Te,refs:ce,context:he,isPositioned:ge,update:pe}),[xe,Ee,W,De,Ce,we,Z,Te,ce,he,ge,pe])}function xr(e){return e!=null&&`current`in e}function Sr(e){return e===`starting`?x:ve}function Cr(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),K(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},Sr(r),i],stateAttributesMapping:Pe})}function wr(e){let t=Q.useRef(!0);t.current&&(t.current=!1,e())}function Tr(e){let[t,n]=Q.useState({current:e,previous:null});return Object.is(e,t.current)||n({current:e,previous:t.current}),t.previous}function Er(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}var Dr=Q.createContext(void 0),Or=Q.createContext(void 0),kr=Q.createContext(void 0);function Ar(){let e=Q.useContext(Dr);if(e===void 0)throw Error(me(60));return e}function jr(){let e=Q.useContext(Or);if(e===void 0)throw Error(me(101));return e}function Mr(){let e=Q.useContext(kr);if(e===void 0)throw Error(me(61));return e}function Nr(e,t,n=Object.is){let{length:r}=e;if(r!==t.length)return!1;for(let i=0;i<r;i+=1)if(!n(e[i],t[i]))return!1;return!0}var Pr=(e,t)=>Object.is(e,t);function Fr(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function Ir(e,t,n){return Array.isArray(e)&&Array.isArray(t)?!Nr(e,t,(e,t)=>Fr(e,t,n)):e!==t}function Lr(e,t,n){return e?e.some(e=>e!==void 0&&Fr(t,e,n)):!1}function Rr(e,t,n){return e?e.findIndex(e=>e!==void 0&&Fr(e,t,n)):-1}function zr(e,t){if(t!==Pr)return n=>Lr(e,n,t);let n=new Set(e);return n.delete(void 0),t=>n.has(t)&&(t!==0||e.some(e=>Object.is(t,e)))}function Br(e,t,n,r){let i=r&&Array.isArray(t)?e.findIndex(zr(t,n)):Rr(e,t,n);return i===-1?null:i}function Vr(e,t,n,r,i,a){return Lr(r,t,i)?a!=null&&e>a&&Lr(r,n[a],i)?a:e:e===a?Br(n,r,i,!0):a}function Hr(e,t,n){return e.filter(e=>!Fr(t,e,n))}function Ur(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function Wr(e){return typeof e==`object`&&!!e&&Array.isArray(e.items)}function Gr(e){return Wr(e?.[0])}function Kr(e){return Gr(e)?e.flatMap(e=>e.items):e}function qr(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(Gr(t)){for(let e of t)for(let t of e.items)if(t&&t.value==null&&t.label!=null)return!0;return!1}for(let e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function Jr(e,t){if(t&&e!=null)return t(e)??``;if(e&&typeof e==`object`){if(`label`in e&&e.label!=null)return String(e.label);if(`value`in e)return String(e.value)}return Ur(e)}function Yr(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?Ur(e.value):Ur(e)}function Xr(e,t,n){function r(){return Jr(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e==`object`&&`label`in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return(Object.hasOwn(t,e)?t[e]:void 0)??r();if(Array.isArray(t)){let n=Kr(t);if(typeof e!=`object`||!e){let t=n.find(t=>t.value===e);return t&&t.label!=null?t.label:r()}if(`value`in e){let t=n.find(t=>t&&t.value===e.value);if(t&&t.label!=null)return t.label}}return r()}function Zr(e,t,n){return e.reduce((e,r,i)=>(i>0&&e.push(`, `),e.push((0,$.jsx)(Q.Fragment,{children:Xr(r,t,n)},i)),e),[])}var Qr={id:e=>e.id,labelId:e=>e.labelId,modal:e=>e.modal,items:e=>e.items,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,value:e=>e.value,hasSelectedValue:e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:Yr(t,r)!==``},hasNullItemLabel:(e,t)=>t?qr(e.items):!1,open:e=>e.open,mounted:e=>e.mounted,forceMount:e=>e.forceMount,transitionStatus:e=>e.transitionStatus,openMethod:e=>e.openMethod,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{let n=e.isItemEqualToValue,r=e.value;return e.multiple?Array.isArray(r)&&r.some(e=>Fr(t,e,n)):Fr(t,r,n)},isSelectedByFocus:(e,t)=>e.selectedIndex===t,popupProps:e=>e.popupProps,triggerProps:e=>e.triggerProps,triggerElement:e=>e.triggerElement,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupSide:e=>e.popupSide,scrollUpArrowVisible:e=>e.scrollUpArrowVisible,scrollDownArrowVisible:e=>e.scrollDownArrowVisible,hasScrollArrows:e=>e.hasScrollArrows};function $r(e){let t=Q.useRef(``),n=Q.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:Q.useCallback(n=>{if(n.detail===0){e(n,`keyboard`);return}`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``},[e]),onPointerDown:n}}function ei(e,t){let{onClick:n,onPointerDown:r}=$r(Y((n,r)=>{(typeof e==`function`?e():e)||t(r||(b?`touch`:``))}));return Q.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function ti(e){let[t,n]=Q.useState(null),r=ei(e,n);return Qe(e,t=>{t&&!e&&n(null)}),Q.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}function ni(e,t){return Math.max(0,e-t)}function ri(e,t){if(t<=0)return 0;let n=At(e,0,t),r=n,i=t-n,a=r<=1,o=i<=1;return a&&o?r<=i?0:t:a?0:o?t:n}function ii(e){let{id:t,value:n,defaultValue:r=null,onValueChange:i,open:a,defaultOpen:o=!1,onOpenChange:s,name:c,form:l,autoComplete:u,disabled:d=!1,readOnly:f=!1,required:p=!1,modal:m=!0,actionsRef:h,inputRef:g,onOpenChangeComplete:_,items:v,multiple:y=!1,itemToStringLabel:b,itemToStringValue:x,isItemEqualToValue:S=Pr,highlightItemOnHover:C=!0,children:T}=e,{clearErrors:E}=et(),{setDirty:O,setTouched:A,setFocused:j,validityData:M,setFilled:N,name:P,disabled:I,validation:L,validationMode:R}=tt(),z=Xe({id:t}),B=I||d,V=P??c,[H,U]=Je({controlled:n,default:y?r??ge:r,name:`Select`,state:`value`}),[W,G]=Je({controlled:a,default:o,name:`Select`,state:`open`}),K=Q.useRef([]),q=Q.useRef([]),ne=Q.useRef(null),re=Q.useRef(null),J=Q.useRef(0),ie=Q.useRef(null),ae=Q.useRef([]),ce=Q.useRef(!1),le=Q.useRef(null),de=Q.useRef(null),fe=Q.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),pe=Q.useRef(!1),me=Q.useRef(H),{mounted:he,setMounted:_e,transitionStatus:be}=Ue(W),{openMethod:xe,triggerProps:Se}=ti(W),Z=ue(()=>new k({id:z,labelId:void 0,modal:m,multiple:y,itemToStringLabel:b,itemToStringValue:x,isItemEqualToValue:S,value:H,open:W,mounted:he,transitionStatus:be,items:v,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:ve,triggerProps:ve,triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1},{setValue:oe,setOpen:oe,handleScrollArrowVisibility:oe,onOpenChangeComplete:oe,listRef:K,popupRef:ne,scrollHandlerRef:re,scrollArrowsMountedCountRef:J,valueRef:ie,valuesRef:ae,labelsRef:q,typingRef:ce,selectionRef:fe,firstItemTextRef:le,selectedItemTextRef:de,alignItemWithTriggerActiveRef:pe,initialValueRef:me},Qr)).current,we=Z.useState(`activeIndex`),Te=Z.useState(`selectedIndex`),Ee=Z.useState(`triggerElement`),De=Z.useState(`positionerElement`),ke=Tr(xe),Ae=xe??ke,je=Q.useMemo(()=>y?``:Yr(H,x),[y,H,x]),Me=Q.useMemo(()=>y&&Array.isArray(H)?H.map(e=>Yr(e,x)):Yr(H,x),[y,H,x]),Ne=We(Ee),Pe=Y(()=>Me);$e(Ne,z,H,Pe,!B,c);let Fe=y?Array.isArray(H)&&H.length>0:H!=null&&je!==``;X(()=>{N(Fe)},[Fe,N]),X(function(){let e=Br(ae.current,H,S,y);e===null&&(de.current=null),!W&&Z.set(`selectedIndex`,e)},[y,W,H,S,Z]),Qe(H,()=>{E(V),O(Ir(H,M.initialValue,S)),L.change(H)});let Ie=Y((e,t)=>{s?.(e,t),!t.isCanceled&&(G(e),!e&&(t.reason===`focus-out`||t.reason===`outside-press`)&&(A(!0),j(!1),R===`onBlur`&&L.commit(H)))}),Le=Y(()=>{_e(!1),Z.update({activeIndex:null,openMethod:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1}),_?.(!1)});te({enabled:!h,open:W,ref:ne,onComplete(){W||Le()}}),Q.useImperativeHandle(h,()=>({unmount:Le}),[Le]);let Re=Y((e,t)=>{i?.(e,t),!t.isCanceled&&U(e)}),ze=Y(e=>{let t=ni(e.scrollHeight,e.clientHeight),n=ri(e.scrollTop,t),r=n>0,i=n<t;Z.set(`scrollUpArrowVisible`,r),Z.set(`scrollDownArrowVisible`,i)}),Be=Kn({open:W,onOpenChange:Ie,elements:{reference:Ee,floating:De}}),Ve=jt(Be,{enabled:!B,event:`mousedown`}),He=Oe(Be),Ge=nr(Be,{enabled:!B,listRef:K,activeIndex:we,selectedIndex:Te,disabledIndices:ge,onNavigate(e){e===null&&!W||Z.set(`activeIndex`,e)},focusItemOnHover:C}),Ke=rr(Be,{enabled:!B&&(W||!f&&!y),listRef:q,activeIndex:we,selectedIndex:Te,disabledIndices:e=>Er(K.current[e]),onMatch(e){W?Z.set(`activeIndex`,e):Re(ae.current[e],ye(se))},onTyping(e){ce.current=e}}),qe=Q.useMemo(()=>F(Ke.reference,Ge.reference,He.reference,Ve.reference,Se),[Ve.reference,Ke.reference,Ge.reference,He.reference,Se]),Ye=Q.useMemo(()=>F(Ce,Ke.floating,Ge.floating,He.floating),[Ke.floating,Ge.floating,He.floating]),Ze=Ge.item??ve;Z.useContextCallback(`setValue`,Re),Z.useContextCallback(`setOpen`,Ie),Z.useContextCallback(`handleScrollArrowVisibility`,ze),Z.useContextCallback(`onOpenChangeComplete`,_),wr(()=>{Z.update({popupProps:Ye,triggerProps:qe})}),Z.useSyncedValues({id:z,modal:m,multiple:y,value:H,open:W,mounted:he,transitionStatus:be,popupProps:Ye,triggerProps:qe,items:v,itemToStringLabel:b,itemToStringValue:x,isItemEqualToValue:S,openMethod:Ae});let nt=Q.useMemo(()=>({disabled:B,readOnly:f,required:p,multiple:y,highlightItemOnHover:C,itemProps:Ze}),[B,f,p,y,C,Ze]),rt=ee(g,L.inputRef),it=y?void 0:V,at=Q.useMemo(()=>!y||!Array.isArray(H)||!V?null:H.map(e=>{let t=Yr(e,x);return(0,$.jsx)(`input`,{type:`hidden`,form:l,name:V,value:t,disabled:B},t)}),[y,H,l,V,x,B]);return(0,$.jsxs)(Dr.Provider,{value:Z,children:[(0,$.jsx)(Or.Provider,{value:nt,children:(0,$.jsx)(kr.Provider,{value:Be,children:T})}),(0,$.jsx)(`input`,{...L.getValidationProps(B,{onFocus(){Z.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented||B||f)return;let t=e.currentTarget.value,n=ye(se,e.nativeEvent);function r(){if(y)return;let e=t.toLowerCase(),r=ae.current.findIndex(t=>Yr(t,x).toLowerCase()===e||Jr(t,b).toLowerCase()===e);r===-1&&(r=ae.current.findIndex((t,n)=>{let r=q.current[n];return r!=null&&r.toLowerCase()===e}));let i=ae.current[r];i!=null&&Re(i,n)}Z.set(`forceMount`,!0),queueMicrotask(r)}}),id:z&&it==null?`${z}-hidden-input`:void 0,form:l,name:it,autoComplete:u,value:je,disabled:B,required:p&&!(y&&Fe),readOnly:f,ref:rt,style:V?w:D,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),at]})}function ai(e,t){return e??t}var oi=5;function si(e,t){let n=ci(t);return e.clientX>=n.left-oi&&e.clientX<=n.right+oi&&e.clientY>=n.top-oi&&e.clientY<=n.bottom+oi}function ci(e){let t=e.getBoundingClientRect(),n=q(e);if(p)return t;let r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(r.content===`none`&&i.content===`none`)return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}var li=`data-popup-side`,ui=400,di={...Z,...Ze,popupSide:e=>e?{[li]:e}:null,value:()=>null},fi=Q.forwardRef(function(e,t){let{render:n,className:r,id:o,disabled:s=!1,nativeButton:c=!0,style:l,...u}=e,{setTouched:d,setFocused:f,validationMode:p,validation:h,state:g,disabled:_}=tt(),{labelId:v}=Ye(),y=Ar(),{readOnly:b,required:x,disabled:C}=jr(),w=_||C||s,T=y.useState(`open`),E=y.useState(`mounted`),D=y.useState(`value`),O=y.useState(`triggerProps`),k=y.useState(`positionerElement`),A=y.useState(`listElement`),j=y.useState(`popupSide`),M=y.useState(`id`),N=y.useState(`labelId`),P=y.useState(`hasSelectedValue`),I=E&&k?j:null,L=o??M,R=ai(v,N);Xe({id:o});let z=We(k),B=Q.useRef(null),{getButtonProps:V,buttonRef:H}=ae({disabled:w,native:c}),ee=y.useStateSetter(`triggerElement`),U=i(),W=i(),G=i();Q.useEffect(()=>{if(T)return G.start(ui,()=>{y.context.selectionRef.current.allowUnselectedMouseUp=!0,y.context.selectionRef.current.allowSelectedMouseUp=!0}),()=>{G.clear()};y.context.selectionRef.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},W.clear()},[T,y,W,G]);let te=F(O,{id:L,role:`combobox`,"aria-expanded":T,"aria-haspopup":`listbox`,"aria-controls":T?A?.id??a(k)?.id:void 0,"aria-labelledby":R,"aria-readonly":b||void 0,"aria-required":x||void 0,tabIndex:w?-1:0,onFocus(e){f(!0),T&&y.context.alignItemWithTriggerActiveRef.current&&y.context.setOpen(!1,ye(se,e.nativeEvent)),U.start(0,()=>{y.set(`forceMount`,!0)})},onBlur(e){m(k,e.relatedTarget)||(d(!0),f(!1),p===`onBlur`&&h.commit(D))},onMouseDown(e){if(T)return;let t=S(e.currentTarget);function n(e){if(!B.current)return;let t=e.target;m(B.current,t)||m(z.current,t)||si(e,B.current)||y.context.setOpen(!1,ye(pe,e))}W.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},u,V),q=h.getValidationProps(w,te);q.role=`combobox`;let ne={...g,open:T,disabled:w,value:D,readOnly:b,popupSide:I,placeholder:!P};return K(`button`,e,{ref:[t,B,H,ee],state:ne,stateAttributesMapping:di,props:q})}),pi={value:()=>null},mi=Q.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,style:o,...s}=e,c=Ar(),l=c.useState(`value`),u=c.useState(`items`),d=c.useState(`itemToStringLabel`),f=c.useState(`hasSelectedValue`),p=!f&&a!=null&&i==null,m=c.useState(`hasNullItemLabel`,p),h={value:l,placeholder:!f},g=null;return g=typeof i==`function`?i(l):i??(p&&!m?a:Array.isArray(l)?Zr(l,u,d):Xr(l,u,d)),K(`span`,e,{state:h,ref:[t,c.context.valueRef],props:[{children:g},s],stateAttributesMapping:pi})}),hi=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o={open:Ar().useState(`open`)};return K(`span`,e,{state:o,ref:t,props:[{"aria-hidden":!0,children:`▼`},a],stateAttributesMapping:Ie})}),gi=Q.forwardRef(function(e,t){let n=Ar(),r=n.useState(`mounted`),i=n.useState(`forceMount`);return r||i?(0,$.jsx)(O,{ref:t,...e}):null}),_i=Q.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function vi(){return Q.useContext(_i)}function yi(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=Y(i),[,o]=Q.useState(!1),s=ue(xi).current,c=ue(bi).current,l=Q.useRef(0),u=Q.useRef(!0),d=Q.useRef(null),f=Q.useRef(null),p=Y(()=>{u.current||(u.current=!0,o(e=>!e))}),m=Y((e,t)=>{c.set(e,t),p()}),h=Y(e=>{c.delete(e),p()}),g=Y(e=>{let t=new Map;return n.current.length=0,r&&(r.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),n.current[e.index]=e.element,r&&(r.current[e.index]=e.registration.label===void 0?e.registration.textRef?.current?.textContent??e.element.textContent:e.registration.label)}),l.current=n.current.length,t});function _(e){if(f.current?.disconnect(),f.current=null,typeof MutationObserver!=`function`||e.length<2)return;let t=new MutationObserver(n=>{if(!wi(n))return;let r=null;for(let n of e)if(n.isConnected){if(r&&Ti(r,n)>0){t.disconnect(),p();return}r=n}});f.current=t;let n=new Set;for(let t=1;t<e.length;t+=1){let r=Ci(e[t-1],e[t]);r&&n.add(r)}n.forEach(e=>t.observe(e,{childList:!0}))}let v=Y(()=>{let[e,t]=Si(c),n=g(e),r=d.current,i=!r||r.length!==e.length||e.some((e,t)=>{let n=r[t];return e.index!==n.index||e.element!==n.element||e.registration.index!==n.registration.index||e.registration.metadata!==n.registration.metadata});_(t),d.current=e,u.current=!1,i&&(s.forEach(e=>e(n)),a(n))});X(()=>(!u.current&&d.current&&g(d.current),()=>{n.current=[],r&&(r.current=[])}),[n,r,g]),X(()=>{u.current&&v()}),X(()=>()=>{f.current?.disconnect(),u.current=!0},[]);let y=Y(e=>(s.add(e),()=>{s.delete(e)})),b=Q.useMemo(()=>({register:m,unregister:h,subscribeMapChange:y,nextIndexRef:l}),[m,h,y,l]);return(0,$.jsx)(_i.Provider,{value:b,children:t})}function bi(){return new Map}function xi(){return new Set}function Si(e){let t=new Set,n=[],r=[];e.forEach((e,i)=>{if(!i.isConnected)return;let a=e.index,o={index:a??-1,element:i,registration:e};a===null?r.push(o):a>=0&&(t.add(a),n.push(o))});let i=0;return r.sort((e,t)=>Ti(e.element,t.element)),r.forEach(e=>{for(;t.has(i);)i+=1;e.index=i,n.push(e),i+=1}),t.size>0&&n.sort((e,t)=>e.index-t.index),[n,r.map(e=>e.element)]}function Ci(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function wi(e){for(let t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}function Ti(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}var Ei=Q.createContext(void 0);function Di(){let e=Q.useContext(Ei);if(!e)throw Error(me(59));return e}function Oi(e,t){e&&Object.assign(e.style,t)}var ki={position:`relative`,maxHeight:`100%`,overflowX:`hidden`,overflowY:`auto`},Ai=20;function ji(e,t,n,r){let[i,a]=Q.useState(!1);X(()=>{if(!e||!t||n==null){a(!1);return}let r=S(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-Ai)},[e,t,n]),Ve(e&&(!t||i),r)}var Mi={position:`fixed`},Ni=Q.forwardRef(function(e,t){let{anchor:n,className:r,render:i,positionMethod:a,side:o,align:s,sideOffset:c,alignOffset:l,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d,arrowPadding:f,sticky:p,disableAnchorTracking:m,alignItemWithTrigger:h=!0,collisionAvoidance:g=E,style:_,...v}=e,y=Ar(),b=Mr(),x=y.useState(`open`),S=y.useState(`mounted`),w=y.useState(`modal`),T=y.useState(`value`),D=y.useState(`openMethod`),O=y.useState(`positionerElement`),k=y.useState(`triggerElement`),A=y.useState(`isItemEqualToValue`),j=y.useState(`transitionStatus`),M=Q.useRef(null),N=Q.useRef(null),[P,F]=Q.useState(h),I=S&&P&&D!==`touch`;!S&&P!==h&&F(h),Q.useImperativeHandle(y.context.alignItemWithTriggerActiveRef,()=>I),ji((I||w)&&x,D===`touch`,O,k);let L=yr({anchor:n,floatingRootContext:b,positionMethod:a,mounted:S,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:f,collisionBoundary:u,collisionPadding:d,sticky:p,disableAnchorTracking:m??I,collisionAvoidance:g,keepMounted:!0}),R=I?`none`:L.side,z=I?Mi:L.positionerStyles,B={open:x,side:R,align:L.align,anchorHidden:L.anchorHidden};X(()=>{y.set(`popupSide`,L.side)},[y,L.side]);let V=Cr(e,B,{styles:z,transitionStatus:j,props:v,refs:[t,y.useStateSetter(`positionerElement`)],hidden:!S,inert:!x}),H=Q.useRef(0),ee=Y(e=>{if(y.context.valuesRef.current.length===0)return;let t=H.current;H.current=e.size;let n=ye(se);if(t!==0&&!y.state.multiple&&T!==null&&Rr(y.context.valuesRef.current,T,A)===-1){let e=y.context.initialValueRef.current,t=e!=null&&Rr(y.context.valuesRef.current,e,A)!==-1?e:null;y.context.setValue(t,n),t===null&&(y.set(`selectedIndex`,null),y.context.selectedItemTextRef.current=null)}if(t!==0&&y.state.multiple&&Array.isArray(T)){let e=T.filter(e=>Rr(y.context.valuesRef.current,e,A)!==-1);e.length!==T.length&&(y.context.setValue(e,n),e.length===0&&(y.set(`selectedIndex`,null),y.context.selectedItemTextRef.current=null))}if(x&&I){y.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};Oi(O,e),Oi(y.context.popupRef.current,e)}}),U=Q.useMemo(()=>({...L,side:R,alignItemWithTriggerActive:I,setControlledAlignItemWithTrigger:F,scrollUpArrowRef:M,scrollDownArrowRef:N}),[L,R,I,F]);return(0,$.jsx)(yi,{elementsRef:y.context.listRef,labelsRef:y.context.labelsRef,onMapChange:ee,children:(0,$.jsxs)(Ei.Provider,{value:U,children:[S&&w&&(0,$.jsx)(ke,{inert:C(!x),cutout:k}),V]})})}),Pi=`base-ui-disable-scrollbar`,Fi={className:Pi,getElement(e){return(0,$.jsx)(`style`,{nonce:e,href:Pi,precedence:`base-ui:low`,children:`.${Pi}{scrollbar-width:none}.${Pi}::-webkit-scrollbar{display:none}`})}},Ii=Q.createContext(void 0);function Li(e){let t=Q.useContext(Ii);if(t===void 0&&!e)throw Error(me(69));return t}var Ri=Q.createContext(void 0),zi={disableStyleElements:!1};function Bi(){return Q.useContext(Ri)??zi}var Vi=`--transform-origin`,Hi={...Pe,...de},Ui=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,...o}=e,s=Ar(),{multiple:c,readOnly:l,highlightItemOnHover:u}=jr(),d=Mr(),{side:f,align:p,alignItemWithTriggerActive:m,isPositioned:h,setControlledAlignItemWithTrigger:g}=Di(),_=Li(!0)!=null,v=ar(),{nonce:b,disableStyleElements:x}=Bi(),C=s.useState(`id`),w=s.useState(`open`),T=s.useState(`openMethod`),E=s.useState(`mounted`),D=s.useState(`popupProps`),O=s.useState(`transitionStatus`),k=s.useState(`triggerElement`),A=s.useState(`positionerElement`),j=s.useState(`listElement`),M=Q.useRef(!1),N=Q.useRef(!1),P=Q.useRef({}),F=H(),I=Y(e=>{if(!A||!s.context.popupRef.current||!N.current)return;let t=A.style.top===`0px`,n=A.style.bottom===`0px`;if(M.current||!m||!t&&!n){s.context.handleScrollArrowVisibility(e);return}let r=Ki(A),i=qi(A.getBoundingClientRect().height,`y`,r),a=S(A),o=q(A),c=o.getComputedStyle(A),l=parseFloat(c.marginTop),u=parseFloat(c.marginBottom),d=Wi(o.getComputedStyle(s.context.popupRef.current)),f=Math.min(a.documentElement.clientHeight-l-u,d),p=e.scrollTop,h=Gi(e),g=null,_=e=>{A.style.height=`${e}px`},v=t?h-p:p,y=Math.min(i+v,f);if(v<=1){let n=At(v,0,f-i);n>0&&_(i+n),e.scrollTop=t?h:0,f-(i+n)<=1&&(M.current=!0),s.context.handleScrollArrowVisibility(e);return}f-y>1?g=t?1/0:0:n&&p<h&&(g=p-(v-(i+v-f)));let b=Math.ceil(y);if(b!==0&&_(b),g!=null){let t=At(g,0,Gi(e));Math.abs(e.scrollTop-t)>1&&(e.scrollTop=t)}b>=f-1&&(M.current=!0),s.context.handleScrollArrowVisibility(e)});Q.useImperativeHandle(s.context.scrollHandlerRef,()=>I,[I]),te({open:w,ref:s.context.popupRef,onComplete(){w&&s.context.onOpenChangeComplete(!0)}});let L={open:w,transitionStatus:O,side:f,align:p};X(()=>{!A||!s.context.popupRef.current||Object.keys(P.current).length||(P.current={top:A.style.top||`0`,left:A.style.left||`0`,right:A.style.right,height:A.style.height,bottom:A.style.bottom,minHeight:A.style.minHeight,maxHeight:A.style.maxHeight,marginTop:A.style.marginTop,marginBottom:A.style.marginBottom})},[s,A]),X(()=>{w||m||(N.current=!1,M.current=!1,Oi(A,P.current))},[w,m,A]),X(()=>{let e=s.context.popupRef.current;if(!w||!k||!A||!e||m&&!h||s.state.transitionStatus===`ending`)return;if(N.current=!0,e.style.removeProperty(Vi),!m){F.request(()=>s.context.handleScrollArrowVisibility(j||e));return}let t=Xi(e);try{let t=s.context.selectedItemTextRef.current;t?.isConnected||(t=!s.select(`hasSelectedValue`)&&s.context.firstItemTextRef.current?.isConnected?s.context.firstItemTextRef.current:null);let n=s.context.valueRef.current,r=q(A),i=r.getComputedStyle(A),a=r.getComputedStyle(e),o=S(k),c=Ki(k),l=Ji(k.getBoundingClientRect(),c),d=Ji(A.getBoundingClientRect(),c),f=l.height,p=j||e,m=p.scrollHeight,h=parseFloat(a.borderBottomWidth),_=parseFloat(i.marginTop)||10,b=parseFloat(i.marginBottom)||10,x=parseFloat(i.minHeight)||100,C=Wi(a),w=o.documentElement.clientHeight-_-b,T=o.documentElement.clientWidth,E=w-l.bottom+f,D,O=v===`rtl`?l.right-d.width:l.left,N=0;if(t&&n){let e=Ji(n.getBoundingClientRect(),c);D=Ji(t.getBoundingClientRect(),c),O=d.left+(v===`rtl`?e.right-D.right:e.left-D.left);let r=e.top-l.top+e.height/2;N=D.top-d.top+D.height/2-r}let F=E+N+b+h,I=Math.min(w,F),L=w-_-b,R=F-I,z=T-5;A.style.left=`${At(O,5,z-d.width)}px`,A.style.height=`${I}px`,A.style.maxHeight=`none`,A.style.marginTop=`${_}px`,A.style.marginBottom=`${b}px`,e.style.height=`100%`;let B=Gi(p),V=R>=B-1;V&&(I=Math.min(w,d.height)-(R-B));let H=l.top<20||l.bottom>w-20||Math.ceil(I)+1<Math.min(m,x),ee=(r.visualViewport?.scale??1)!==1&&y;if(H||ee){Oi(A,P.current),g(!1);return}let U=Math.max(x,I);if(V){let e=Math.max(0,w-F);A.style.top=d.height>=L?`0`:`${e}px`,A.style.height=`${I}px`,p.scrollTop=Gi(p)}else A.style.bottom=`0`,p.scrollTop=R;if(D){let t=d.top,n=d.height,r=D.top+D.height/2,i=At(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(Vi,`50% ${i}%`)}(U===w||I>=C)&&(M.current=!0),s.context.handleScrollArrowVisibility(p),u&&s.state.selectedIndex===null&&s.state.activeIndex===null&&s.context.listRef.current[0]!=null&&s.set(`activeIndex`,0)}finally{t()}},[s,w,A,k,m,g,F,j,u,v,h]),Q.useEffect(()=>{if(!m||!A||!w)return;let e=q(A);function t(e){s.context.setOpen(!1,ye(ce,e))}return U(e,`resize`,t)},[s,m,A,w]);let R={...j?{role:`presentation`}:{role:`listbox`,"aria-multiselectable":c||void 0,"aria-readonly":l||void 0,id:`${C}-list`},onKeyDown(e){_&&Le.has(e.key)&&e.stopPropagation()},onScroll(e){j||I(e.currentTarget)},...m&&{style:j?{height:`100%`}:ki},className:!j&&m?Fi.className:void 0},z=K(`div`,e,{ref:[t,s.context.popupRef],state:L,stateAttributesMapping:Hi,props:[D,R,Sr(O),o]});return(0,$.jsxs)(Q.Fragment,{children:[!x&&Fi.getElement(b),(0,$.jsx)(He,{context:d,modal:!1,disabled:!E,openInteractionType:T,returnFocus:a,restoreFocus:!0,children:z})]})});function Wi(e){let t=e.maxHeight;return t.endsWith(`px`)&&parseFloat(t)||1/0}function Gi(e){return ni(e.scrollHeight,e.clientHeight)}function Ki(e){return yn.getScale(e)}function qi(e,t,n){return e/n[t]}function Ji(e,t){return kt({x:qi(e.x,`x`,t),y:qi(e.y,`y`,t),width:qi(e.width,`x`,t),height:qi(e.height,`y`,t)})}var Yi=[[`transform`,`none`],[`scale`,`1`],[`translate`,`0 0`]];function Xi(e){let{style:t}=e,n={};for(let[e,r]of Yi)n[e]=t.getPropertyValue(e),t.setProperty(e,r,`important`);return()=>{for(let[e]of Yi){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}var Zi=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=Ar(),{multiple:s,readOnly:c}=jr(),{alignItemWithTriggerActive:l}=Di(),u=o.useState(`hasScrollArrows`),d=o.useState(`openMethod`),f={id:`${o.useState(`id`)}-list`,role:`listbox`,"aria-multiselectable":s||void 0,"aria-readonly":c||void 0,onScroll(e){o.context.scrollHandlerRef.current?.(e.currentTarget)},...l&&{style:ki},className:u&&d!==`touch`?Fi.className:void 0},p=o.useStateSetter(`listElement`);return K(`div`,e,{ref:[t,p],props:[f,a]})});function Qi(e={}){let{guess:t,label:n,metadata:r,textRef:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,nextIndexRef:l}=vi(),u=Q.useRef(-1),[d,f]=Q.useState(a==null&&t?()=>{if(u.current===-1){let e=l.current;l.current+=1,u.current=e}return u.current}:-1),p=a??d,m=Q.useRef(null),h=Q.useCallback(e=>{let t=m.current;t&&s(t),m.current=e,e&&o(e,{metadata:r??null,index:a??null,label:n,textRef:i})},[a,o,s,r,n,i]);return X(()=>{if(a==null)return c(e=>{let t=m.current?e.get(m.current)?.index:null;t!=null&&f(t)})},[a,c]),{ref:h,index:p}}var $i=Q.createContext(void 0);function ea(){let e=Q.useContext($i);if(!e)throw Error(me(57));return e}var ta=Q.memo(Q.forwardRef(function(e,t){let{render:n,className:r,style:i,value:a=null,label:o,disabled:s=!1,nativeButton:c=!1,...l}=e,u=Q.useRef(null),d=Qi({guess:!0,label:o,textRef:u}),f=Ar(),{itemProps:p,multiple:m,disabled:h,readOnly:g}=jr(),_=h||s,v=f.useState(`isActive`,d.index),y=f.useState(`open`),b=f.useState(`isSelected`,a),x=f.useState(`isSelectedByFocus`,d.index),S=f.useState(`isItemEqualToValue`),C=d.index,w=Q.useRef(null);X(()=>{let e=f.context.valuesRef.current;return e[C]=a,()=>{delete e[C]}},[C,a,f]),X(()=>{let e=f.state.value,t=f.state.selectedIndex,n=t,r;m&&Array.isArray(e)?(n=Vr(C,a,f.context.valuesRef.current,e,S,t),r=n===C,C===t&&!r&&(f.context.selectedItemTextRef.current=null)):(r=e!==void 0&&Fr(a,e,S),r&&(n=C)),f.set(`selectedIndex`,n),r&&u.current&&(f.context.selectedItemTextRef.current=u.current)},[C,m,S,f,a]);let T=Q.useRef(`mouse`),E=Q.useRef(!1),{getButtonProps:D,buttonRef:O}=ae({disabled:_,focusableWhenDisabled:!0,native:c,composite:!0}),k={disabled:_,selected:b,highlighted:v};function A(e){if(h||g)return;let t=f.state.value;if(m){let n=Array.isArray(t)?t:[],r=b?Hr(n,a,S):[...n,a];f.context.setValue(r,ye(fe,e))}else f.context.setValue(a,ye(fe,e)),f.context.setOpen(!1,ye(fe,e))}function j(){f.context.selectionRef.current.dragY=0}let M={role:`option`,"aria-selected":b,tabIndex:y&&v?0:-1,onKeyDown(e){f.set(`activeIndex`,C),e.key===` `&&f.context.typingRef.current&&e.preventDefault()},onClick(e){let t=T.current!==`touch`,n=e.nativeEvent.pointerType,r=t&&ze(e.nativeEvent)&&(n!==void 0||v),i=t&&!r&&!E.current;E.current=!1,!(_||i)&&A(e.nativeEvent)},onPointerEnter(e){T.current=e.pointerType},onPointerMove(e){if(e.pointerType===`mouse`&&e.buttons===1){let t=f.context.selectionRef.current;t.dragY+=e.movementY,t.dragY**2>=64&&(t.allowUnselectedMouseUp=!0)}},onPointerDown(e){T.current=e.pointerType,E.current=!0,j()},onMouseUp(){if(j(),_||T.current===`touch`||E.current)return;let e=!f.context.selectionRef.current.allowSelectedMouseUp&&b,t=!f.context.selectionRef.current.allowUnselectedMouseUp&&!b;e||t||(E.current=!0,w.current?.click(),E.current=!1)}},N=K(`div`,e,{ref:[O,t,d.ref,w],state:k,props:[p,M,l,D]}),P=Q.useMemo(()=>({selected:b,index:C,textRef:u,selectedByFocus:x}),[b,C,u,x]);return(0,$.jsx)($i.Provider,{value:P,children:N})})),na=Q.forwardRef(function(e,t){let{selected:n}=ea();return e.keepMounted||n?(0,$.jsx)(ra,{...e,ref:t}):null}),ra=Q.memo(Q.forwardRef((e,t)=>{let{render:n,className:r,style:i,keepMounted:a,...o}=e,{selected:s}=ea(),c=Q.useRef(null),{transitionStatus:l,setMounted:u}=Ue(s),d=K(`span`,e,{ref:[t,c],state:{selected:s,transitionStatus:l},props:[{"aria-hidden":!0,children:`✔️`},o],stateAttributesMapping:de});return te({batch:!0,enabled:!s,open:s,ref:c,onComplete(){s||u(!1)}}),d})),ia=Q.memo(Q.forwardRef(function(e,t){let{index:n,textRef:r,selectedByFocus:i}=ea(),a=Ar(),{render:o,className:s,style:c,...l}=e,u=Q.useCallback(e=>{e&&(n===0&&(a.context.firstItemTextRef.current=e),i&&(a.context.selectedItemTextRef.current=e))},[a,n,i]);return K(`div`,e,{ref:[u,t,r],props:l})})),aa=2;function oa({className:e,onValueChange:t,options:n,placeholder:r,triggerId:i,value:a,...o}){let s=n.find(e=>e.value===a),c=s?.icon,l=Re(),u=Math.min(l+aa,8);return(0,$.jsxs)(ii,{"data-slot":`select`,items:n,onValueChange:e=>{e!==null&&t(e)},value:a,...o,children:[(0,$.jsxs)(fi,{id:i,"aria-label":o[`aria-label`],className:M(`group flex h-8 w-full min-w-0 items-center justify-between gap-2 rounded-lg border border-input bg-transparent px-2.5 py-1 text-sm text-foreground transition-colors outline-none 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 data-placeholder:text-muted-foreground dark:bg-input/30 dark:disabled:bg-input/80`,e),children:[(0,$.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-center gap-2`,children:[c?(0,$.jsx)(c,{className:`size-4 shrink-0 text-muted-foreground transition-colors group-hover:text-foreground`}):null,(0,$.jsx)(mi,{placeholder:r,children:(0,$.jsx)(`span`,{className:`truncate`,children:s?.label??r??a??``})})]}),(0,$.jsx)(hi,{className:`shrink-0 text-muted-foreground`,children:(0,$.jsx)(qe,{className:`size-4`})})]}),(0,$.jsx)(gi,{children:(0,$.jsx)(Ni,{className:`z-[70]`,sideOffset:4,children:(0,$.jsx)(Ui,{className:M(`max-h-72 min-w-(--anchor-width) overflow-y-auto rounded-lg p-1 text-sm text-popover-foreground outline-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,Be(u,3)),children:(0,$.jsx)(Fe,{value:u,children:(0,$.jsx)(Zi,{children:n.map(e=>{let t=e.icon;return(0,$.jsxs)(ta,{className:`relative flex min-h-7 cursor-default items-center gap-2 rounded-md py-1.5 pr-2 pl-7 text-sm outline-none select-none data-highlighted:bg-muted data-highlighted:text-foreground data-disabled:pointer-events-none data-disabled:opacity-50`,disabled:e.disabled,value:e.value,children:[(0,$.jsx)(na,{className:`absolute left-2 flex items-center justify-center`,children:(0,$.jsx)(Ke,{className:`size-3.5`})}),t?(0,$.jsx)(t,{className:`size-4 shrink-0 text-muted-foreground`}):null,(0,$.jsx)(ia,{children:e.label})]},e.value)})})})})})})]})}function sa(e,t,n,r=!0,i){let[a,o]=Q.useState(),s=Ge(i?`${i}-label`:void 0),c=e??t??a;return X(()=>{let i=e||t||!r?void 0:ca(n.current,s);a!==i&&o(i)}),c}function ca(e,t){let n=la(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}function la(e){if(!e)return;let t=e.parentElement;if(t&&t.tagName===`LABEL`)return t;let n=e.id;if(n){let t=e.nextElementSibling;if(t&&t.htmlFor===n)return t}let r=e.labels;return r&&r[0]}function ua({className:e,...t}){return(0,$.jsx)(`label`,{"data-slot":`label`,className:M(`flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,e),...t})}var da=[{id:`amazon-bedrock`,name:`Amazon Bedrock`,envVarName:`AWS_ACCESS_KEY_ID`},{id:`openai`,name:`OpenAI`,envVarName:`OPENAI_API_KEY`},{id:`openai-chat-completions`,name:`OpenAI Chat Completions`,envVarName:`OPENAI_CHAT_COMPLETIONS_API_KEY`},{id:`openai-chat-completions-base-url`,name:`OpenAI Chat Completions Base URL`,envVarName:`OPENAI_CHAT_COMPLETIONS_BASE_URL`},{id:`openai-chat-completions-model`,name:`OpenAI Chat Completions Model`,envVarName:`OPENAI_CHAT_COMPLETIONS_MODEL`},{id:`anthropic`,name:`Anthropic`,envVarName:`ANTHROPIC_API_KEY`},{id:`google-vertex`,name:`Google Vertex`,envVarName:`GOOGLE_APPLICATION_CREDENTIALS`},{id:`google`,name:`Google Gemini`,envVarName:`GEMINI_API_KEY`},{id:`mistral`,name:`Mistral`,envVarName:`MISTRAL_API_KEY`},{id:`groq`,name:`Groq`,envVarName:`GROQ_API_KEY`},{id:`openrouter`,name:`OpenRouter`,envVarName:`OPENROUTER_API_KEY`},{id:`vercel-ai-gateway`,name:`Vercel AI Gateway`,envVarName:`AI_GATEWAY_API_KEY`},{id:`github-copilot`,name:`GitHub Copilot`,envVarName:`GITHUB_COPILOT_TOKEN`,authType:`oauth`},{id:`ollama`,name:`Ollama`,envVarName:`OLLAMA_BASE_URL`},{id:`daytona`,name:`Daytona`,envVarName:`DAYTONA_API_KEY`},{id:`daytona-target`,name:`Daytona Target`,envVarName:`DAYTONA_TARGET`}],fa=[`daytona`,`daytona-target`,`openai-chat-completions-base-url`,`openai-chat-completions-model`],pa=`openai-chat-completions`,ma=`${pa}+`,ha=`custom+`;function ga(e){return e.startsWith(ha)}function _a(e){return e===`openai-chat-completions`||e.startsWith(ma)}function va(e){return e.startsWith(ma)}var ya=da.map(({id:e,name:t,envVarName:n,authType:r})=>({id:e,name:t,envVarName:n,authType:r})),ba=ya.flatMap(e=>fa.includes(e.id)?[]:[e.id]);ya.filter(e=>!fa.includes(e.id)&&e.authType!==`oauth`),Array.from(new Set([...ya.flatMap(e=>ba.includes(e.id)||e.id===`openai-chat-completions-base-url`||e.id===`openai-chat-completions-model`?[e.envVarName]:[]),`HF_TOKEN`,`ANT_LING_API_KEY`,`AZURE_OPENAI_API_KEY`,`NVIDIA_API_KEY`,`DEEPSEEK_API_KEY`,`GOOGLE_CLOUD_API_KEY`,`CEREBRAS_API_KEY`,`XAI_API_KEY`,`RADIUS_API_KEY`,`ZAI_API_KEY`,`ZAI_CODING_CN_API_KEY`,`MINIMAX_API_KEY`,`MINIMAX_CN_API_KEY`,`MOONSHOT_API_KEY`,`FIREWORKS_API_KEY`,`TOGETHER_API_KEY`,`OPENCODE_API_KEY`,`KIMI_API_KEY`,`CLOUDFLARE_API_KEY`,`CLOUDFLARE_ACCOUNT_ID`,`CLOUDFLARE_GATEWAY_ID`,`XIAOMI_API_KEY`,`XIAOMI_TOKEN_PLAN_CN_API_KEY`,`XIAOMI_TOKEN_PLAN_AMS_API_KEY`,`XIAOMI_TOKEN_PLAN_SGP_API_KEY`,`ANTHROPIC_OAUTH_TOKEN`,`ANTHROPIC_OAUTH_KEY`,`COPILOT_GITHUB_TOKEN`,`GITHUB_COPILOT_TOKEN`,`AWS_SECRET_ACCESS_KEY`,`AWS_BEARER_TOKEN_BEDROCK`,`AWS_PROFILE`,`AWS_ACCESS_KEY_ID`,`DAYTONA_API_KEY`,`ORG_DAYTONA_API_KEY`,`DAYTONA_TARGET`]));export{Ln as A,Gn as C,zn as D,Vn as E,jt as M,At as N,Bn as O,ar as S,Wn as T,Ur as _,_a as a,Sr as b,oa as c,Li as d,Fi as f,ei as g,ri as h,va as i,Sn as j,Un as k,Qi as l,yi as m,pa as n,ua as o,ji as p,ga as r,sa as s,ya as t,Bi as u,Er as v,Hn as w,yr as x,Cr as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./jsx-runtime-NZYk81nU.js";import{t}from"./utils-Dpy9ZFOr.js";import{a as n,r,t as i}from"./provider-catalog-L0c-bZv6.js";import{t as a}from"./createLucideIcon-CQY2ECfR.js";import{t as o}from"./bot-DETalD3q.js";import{n as s,r as c,t as l}from"./sparkles-C4VQyMox.js";import{t as u}from"./git-branch-DZEh2mM2.js";import{t as d}from"./plug-wCz-036u.js";var f={name:`arrow-left`,size:24,node:[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]};f.node;var p=a(f),m={name:`brain`,size:24,node:[[`path`,{d:`M12 18V5`,key:`adv99a`}],[`path`,{d:`M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4`,key:`1e3is1`}],[`path`,{d:`M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5`,key:`1gqd8o`}],[`path`,{d:`M17.997 5.125a4 4 0 0 1 2.526 5.77`,key:`iwvgf7`}],[`path`,{d:`M18 18a4 4 0 0 0 2-7.464`,key:`efp6ie`}],[`path`,{d:`M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517`,key:`1gq6am`}],[`path`,{d:`M6 18a4 4 0 0 1-2-7.464`,key:`k1g0md`}],[`path`,{d:`M6.003 5.125a4 4 0 0 0-2.526 5.77`,key:`q97ue3`}]]};m.node;var h=a(m),g={name:`cpu`,size:24,node:[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`,key:`1o8tra`}],[`path`,{d:`M7 20v2`,key:`4gnj0m`}],[`path`,{d:`M7 2v2`,key:`1i4yhu`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,key:`1vbyd7`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]};g.node;var _=a(g),v={name:`server`,size:24,node:[[`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`}]]};v.node;var y=a(v),b={name:`settings`,size:24,node:[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};b.node;var x=a(b),S={name:`trash`,size:24,node:[[`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`}]],aliases:[`trash-2`]};S.node;var C=a(S),w={name:`wind`,size:24,node:[[`path`,{d:`M12.8 19.6A2 2 0 1 0 14 16H2`,key:`148xed`}],[`path`,{d:`M17.5 8a2.5 2.5 0 1 1 2 4H2`,key:`1u4tom`}],[`path`,{d:`M9.8 4.4A2 2 0 1 1 11 8H2`,key:`75valh`}]]};w.node;var T=a(w),E={name:`zap`,size:24,node:[[`path`,{d:`M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z`,key:`1v7up4`}]]};E.node;var D=a(E),O={"amazon-bedrock":{icon:y,placeholder:`AKIA... (AWS access key id)`,help:`Amazon Bedrock uses standard AWS credentials (AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY) plus AWS_REGION. This field sets AWS_ACCESS_KEY_ID in .env.local.`},openai:{icon:l,placeholder:`sk-proj-...`,help:`Stored securely in your root .env.local file. Overrides the active OPENAI_API_KEY environment variable.`},"openai-chat-completions":{icon:l,placeholder:`sk-... or nvapi-...`,help:`OpenAI-compatible Chat Completions root (e.g. https://opencode.ai/zen/v1). Paste …/chat/completions if you want — it is normalized. Requires API key, base URL, and model name.`},"openai-chat-completions-model":{icon:l,placeholder:`meta/llama-3.1-70b-instruct`,help:`Gateway model name registered when /models is empty or incomplete.`},anthropic:{icon:o,placeholder:`sk-ant-...`,help:`Stored securely in your root .env.local file. Overrides the active ANTHROPIC_API_KEY environment variable.`},"google-vertex":{icon:s,placeholder:`Path to service account JSON, or credentials text...`,help:`Stored securely in your root .env.local file. Overrides the active GOOGLE_APPLICATION_CREDENTIALS environment variable.`},google:{icon:h,placeholder:`AIzaSy...`,help:`Stored securely in your root .env.local file. Overrides the active GEMINI_API_KEY environment variable.`},mistral:{icon:T,placeholder:`Your Mistral API key...`,help:`Stored securely in your root .env.local file. Overrides the active MISTRAL_API_KEY environment variable.`},groq:{icon:D,placeholder:`gsk_...`,help:`Stored securely in your root .env.local file. Overrides the active GROQ_API_KEY environment variable.`},openrouter:{icon:c,placeholder:`sk-or-...`,help:`Stored securely in your root .env.local file. Overrides the active OPENROUTER_API_KEY environment variable.`},"vercel-ai-gateway":{icon:u,placeholder:`Your AI Gateway API key...`,help:`Stored securely in your root .env.local file. Overrides the active AI_GATEWAY_API_KEY environment variable.`},"github-copilot":{icon:o,placeholder:`OAuth subscription`,help:`GitHub Copilot uses device-code OAuth. Sign in from Settings; credentials are stored in auth.json.`},"openai-codex":{icon:l,placeholder:`OAuth subscription`,help:`OpenAI Codex uses ChatGPT OAuth. Sign in from Settings; credentials are stored in auth.json.`},ollama:{icon:_,placeholder:`http://localhost:11434 (default)`,help:`Configure local Ollama execution endpoints. Overrides the active OLLAMA_BASE_URL environment variable.`},custom:{icon:d,placeholder:`sk-... / provider key`,help:`Register any OpenAI-, Anthropic-, or Google-compatible endpoint through Pi's native custom-provider mechanism. Requires a name, API key, https base URL, API family, and at least one model id. Deployed accounts only.`}},k=e(),A=`size-4`;function j({className:e}){return(0,k.jsx)(`svg`,{viewBox:`0 0 24 24`,className:t(A,e),fill:`currentColor`,"aria-hidden":!0,children:(0,k.jsx)(`path`,{d:`M22.282 9.821a5.985 5.985 0 0 0-.516-4.91 6.046 6.046 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.18a5.985 5.985 0 0 0-3.998 2.9 6.046 6.046 0 0 0 .743 7.097 5.98 5.98 0 0 0 .51 4.911 6.051 6.051 0 0 0 6.515 2.9A5.985 5.985 0 0 0 13.26 24a6.056 6.056 0 0 0 5.772-4.206 5.99 5.99 0 0 0 3.997-2.9 6.056 6.056 0 0 0-.747-7.073zM13.26 22.43a4.476 4.476 0 0 1-2.876-1.04l.141-.081 4.779-2.758a.795.795 0 0 0 .392-.681v-6.737l2.02 1.168a.071.071 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.494 4.494zM3.6 18.304a4.47 4.47 0 0 1-.535-3.014l.142.085 4.783 2.759a.771.771 0 0 0 .78 0l5.843-3.368v2.332a.08.08 0 0 1-.033.062L9.74 19.95a4.5 4.5 0 0 1-6.14-1.646zM2.34 7.896a4.485 4.485 0 0 1 2.366-1.973V11.6a.766.766 0 0 0 .388.676l5.814 3.354-2.02 1.168a.076.076 0 0 1-.071 0l-4.83-2.786A4.504 4.504 0 0 1 2.34 7.872zm16.597 3.855l-5.833-3.387L15.119 7.2a.076.076 0 0 1 .071 0l4.83 2.791a4.494 4.494 0 0 1-.676 8.105v-5.678a.079.079 0 0 0-.041-.067zm2.01-3.023l-.141-.085-4.774-2.782a.776.776 0 0 0-.785 0L9.409 9.23V6.897a.066.066 0 0 1 .028-.061l4.83-2.787a4.5 4.5 0 0 1 6.68 4.66zM8.306 12.683l-2.02-1.163a.08.08 0 0 1-.038-.057V6.074a4.5 4.5 0 0 1 7.375-3.453l-.142.08L8.704 5.46a.795.795 0 0 0-.392.681zm1.098-2.016l2.602-1.5 2.607 1.5v2.999l-2.597 1.5-2.607-1.5z`})})}function M({className:e}){return(0,k.jsx)(`svg`,{viewBox:`0 0 24 24`,className:t(A,e),fill:`currentColor`,"aria-hidden":!0,children:(0,k.jsx)(`path`,{d:`M17.305 14.256h-3.778l-2.28-7.23h-.005l-2.32 7.23H5.145L9.93 3h4.14l4.235 11.256zm-8.48 2.37h6.37l1.16 3.374h3.465L14.18 3h-4.36L4.15 20h3.465l1.21-3.374z`})})}function N({className:e}){return(0,k.jsxs)(`svg`,{viewBox:`0 0 24 24`,className:t(A,e),fill:`currentColor`,"aria-hidden":!0,children:[(0,k.jsx)(`path`,{d:`M21.6 12.23c0-.71-.06-1.4-.18-2.05H12v3.87h5.38a4.6 4.6 0 0 1-2 3.02v2.5h3.24c1.89-1.74 2.98-4.3 2.98-7.34z`}),(0,k.jsx)(`path`,{d:`M12 22c2.7 0 4.96-.89 6.61-2.42l-3.24-2.5c-.9.6-2.04.96-3.37.96-2.59 0-4.78-1.75-5.56-4.1H3.1v2.58A9.99 9.99 0 0 0 12 22z`}),(0,k.jsx)(`path`,{d:`M6.44 13.94A5.99 5.99 0 0 1 6.12 12c0-.67.12-1.33.32-1.94V7.48H3.1A9.99 9.99 0 0 0 2 12c0 1.61.39 3.14 1.1 4.52l3.34-2.58z`}),(0,k.jsx)(`path`,{d:`M12 5.96c1.47 0 2.79.5 3.82 1.5l2.87-2.87C16.95 2.99 14.7 2 12 2A9.99 9.99 0 0 0 3.1 7.48l3.34 2.58C7.22 7.71 9.41 5.96 12 5.96z`})]})}function P({className:e}){return(0,k.jsx)(`svg`,{viewBox:`0 0 24 24`,className:t(A,e),fill:`currentColor`,"aria-hidden":!0,children:(0,k.jsx)(`path`,{d:`M12 .3a12 12 0 0 0-3.8 23.4c.6.1.8-.3.8-.6v-2.2c-3.3.7-4-1.4-4-1.4-.5-1.4-1.3-1.8-1.3-1.8-1.1-.7.1-.7.1-.7 1.2.1 1.8 1.2 1.8 1.2 1.1 1.8 2.8 1.3 3.5 1 .1-.8.4-1.3.8-1.6-2.7-.3-5.5-1.3-5.5-6 0-1.3.5-2.4 1.2-3.2-.1-.3-.5-1.5.1-3.2 0 0 1-.3 3.3 1.2a11.5 11.5 0 0 1 6 0c2.3-1.5 3.3-1.2 3.3-1.2.6 1.7.2 2.9.1 3.2.8.8 1.2 1.9 1.2 3.2 0 4.6-2.9 5.6-5.5 5.9.4.4.8 1.1.8 2.2v3.3c0 .3.2.7.8.6A12 12 0 0 0 12 .3z`})})}function F({provider:e,api:i,className:a}){let o=e.toLowerCase();if(r(o)||o===`custom`)return i===`anthropic-messages`?(0,k.jsx)(M,{className:a}):i===`google-genai`?(0,k.jsx)(N,{className:a}):(0,k.jsx)(j,{className:a});if(o===`openai`||o===`openai-codex`||n(o))return(0,k.jsx)(j,{className:a});if(o===`anthropic`)return(0,k.jsx)(M,{className:a});if(o===`google`||o===`google-vertex`)return(0,k.jsx)(N,{className:a});if(o===`github-copilot`||o===`github`)return(0,k.jsx)(P,{className:a});let s=e in O?O[e].icon:_;return(0,k.jsx)(s,{className:t(A,a),"aria-hidden":!0})}function I(e){return i.find(t=>t.id===e)?.name??e}export{x as a,C as i,F as n,_ as o,O as r,p as s,I as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./rolldown-runtime-hePW80VL.js";var t=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var j=/\/+/g;function M(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function N(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function P(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,P(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+M(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(j,`$&/`)+`/`),P(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(j,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+M(a,u),c+=P(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+M(a,u++),c+=P(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return P(N(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function F(e,t,n){if(e==null)return e;var r=[],i=0;return P(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function I(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var L=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function R(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,L)}catch(e){L(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function z(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else R(z.bind(null,e))}var B={map:F,forEach:function(e,t,n){F(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return F(e,function(){t++}),t},toArray:function(e){return F(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=B,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=z,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=R,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.0`})),n=e(((e,n)=>{n.exports=t()}));export{n as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-Cvdyeg_0.js";var n=e((e=>{var n=t();function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function i(){}var a={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`),s=Symbol.for(`react.recoverable`),c=Symbol.for(`react.optimistic_key`);function l(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:r===c?c:``+r,children:e,containerInfo:t,implementation:n}}var u=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.browser=function(e){return{$$typeof:s,_reason:e}},e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(r(299));return l(e,t,null,n)},e.flushSync=function(e){var t=u.T,n=a.p;try{if(u.T=null,a.p=2,e)return e()}finally{u.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=d(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??a.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=d(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else a.d.m(e)}},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return u.H.useFormState(e,t,n)},e.useFormStatus=function(){return u.H.useHostTransitionStatus()},e.version=`19.3.0`})),r=e(((e,t)=>{function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}r(),t.exports=n()}));export{r as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./createLucideIcon-CQY2ECfR.js";var t={name:`refresh-cw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]};t.node;var n=e(t);export{n as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-
|
|
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{o as r,t as i}from"./ipython-tool-CuSGRhXl.js";import{t as a}from"./square-terminal-BLq2bQVF.js";import{t as o}from"./triangle-alert-BuzmrrqI.js";var s=e(t(),1),c=n(),l={running:{toolState:`input-streaming`,label:`Running`},error:{toolState:`output-error`,label:`Failed`},cancelled:{toolState:`aborted`,label:`Cancelled`},success:{toolState:`output-available`,label:`Completed`}};function u(e){return l[e].toolState}function d(e){return{type:`tool-IPython`,toolCallId:e.sourceToolCallId??e.id,state:u(e.status),input:e.input,output:e.output,backgroundOutput:e.backgroundOutput}}function f(e){return l[e].label}function p({artifact:e,index:t,selected:n}){let a=(0,s.useRef)(null);return(0,s.useEffect)(()=>{n&&requestAnimationFrame(()=>{a.current?.focus({preventScroll:!0}),a.current?.scrollIntoView({block:`nearest`})})},[e.id,n]),(0,c.jsxs)(`article`,{ref:a,tabIndex:-1,className:`overflow-hidden rounded-md border border-border/60 bg-background outline-none focus-visible:ring-2 focus-visible:ring-ring`,"data-repl-run-id":e.id,children:[(0,c.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2 border-b border-border/50 px-2.5 py-1.5`,children:[(0,c.jsx)(r,{className:`size-3.5 shrink-0 text-foreground/45`}),(0,c.jsxs)(`span`,{className:`min-w-0 flex-1 truncate text-caption font-medium text-foreground/70`,children:[`Cell `,t+1]}),(0,c.jsx)(`span`,{className:`shrink-0 text-micro text-foreground/40`,children:f(e.status)})]}),(0,c.jsx)(`div`,{className:`p-2`,children:(0,c.jsx)(i,{part:d(e)})})]})}function m({artifactRuns:e=[],selectedArtifactId:t,kernelDiagnostics:n}){let r=e.flatMap(e=>e.artifacts).filter(e=>e.kind===`ipython`);return(0,c.jsxs)(`section`,{"aria-label":`REPL runs`,className:`space-y-2 pb-1`,children:[(0,c.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2 rounded-sm bg-foreground/5 px-2 py-1.5`,children:[(0,c.jsx)(a,{className:`size-3.5 shrink-0 text-foreground/45`}),(0,c.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-label font-medium text-foreground/70`,children:`IPython cells`}),(0,c.jsx)(`span`,{className:`shrink-0 text-micro text-foreground/40`,children:r.length>0?r.length:`none yet`})]}),n?(0,c.jsxs)(`details`,{className:`overflow-hidden rounded-md border border-border/60 bg-background`,children:[(0,c.jsxs)(`summary`,{className:`flex min-w-0 cursor-pointer items-center gap-2 px-2.5 py-1.5`,children:[(0,c.jsx)(o,{className:`size-3.5 shrink-0 text-foreground/45`}),(0,c.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-caption font-medium text-foreground/70`,children:`Kernel diagnostics`}),(0,c.jsx)(`span`,{className:`shrink-0 text-micro text-foreground/40`,children:n.truncated?`tail`:`stderr`})]}),(0,c.jsx)(`pre`,{className:`max-h-48 overflow-auto border-t border-border/50 px-2.5 py-1.5 font-mono text-caption leading-4 whitespace-pre-wrap text-foreground/70`,children:n.tail})]}):null,r.length===0?(0,c.jsx)(`p`,{className:`px-2 text-caption leading-4 text-foreground/45`,children:`Executed IPython cells and their output will appear here.`}):(0,c.jsx)(`div`,{className:`space-y-2`,"data-testid":`repl-run-list`,children:r.map((e,n)=>(0,c.jsx)(p,{artifact:e,index:n,selected:e.id===t},e.id))})]})}export{m as ReplPanelContent};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{t as e}from"./createLucideIcon-CQY2ECfR.js";import{t}from"./file-text-cqOanUYv.js";import{t as n}from"./package-BkC-HSi-.js";import{t as r}from"./plug-wCz-036u.js";var i={name:`book-open`,size:24,node:[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]]};i.node;var a=e(i),o={name:`clipboard-list`,size:24,node:[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M12 11h4`,key:`1jrz19`}],[`path`,{d:`M12 16h4`,key:`n85exb`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]};o.node;var s=e(o),c={name:`palette`,size:24,node:[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`,key:`e79jfc`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}]]};c.node;var l=e(c);function u(e,i){return[{id:`skills`,label:`Skills`,icon:a,items:g(e?.skills.filter(e=>e.installedInWorkspace)??[],f(i))},{id:`prompts`,label:`Prompts`,icon:t,items:e?.prompts??[]},{id:`extensions`,label:`Extensions`,icon:r,items:e?.extensions??[]},{id:`packages`,label:`Packages`,icon:n,items:e?.packages??[]},{id:`themes`,label:`Themes`,icon:l,items:e?.themes??[]},{id:`agentsFiles`,label:`Context`,icon:s,items:e?.agentsFiles??[]}]}function d(e,t){for(let n of e){if(n.path===t)return n;let e=n.children?d(n.children,t):null;if(e)return e}return null}function f(e){if(!e)return[];let t=d(e.nodes,`agent-workspace/skills`);return t?.children?.length?t.children.flatMap(e=>{if(e.type!==`directory`)return[];let t=e.children?.find(e=>e.type===`file`&&e.name.toLowerCase()===`skill.md`)??null;return t?[{name:e.name,path:t.path,source:`workspace`}]:[]}).sort((e,t)=>e.name.localeCompare(t.name)):[]}function p(e){let t=e.indexOf(`/fleet-pi/`);return t>=0?e.slice(t+10):e}function m(e){return[e.name,e.source?`Source: ${e.source}`:null,e.activationStatus?`Status: ${e.activationStatus}`:null,e.description??null,e.workspacePath?p(e.workspacePath):null,e.path?p(e.path):null].filter(Boolean).join(`
|
|
2
|
+
`)}function h(e){return`${e.source??`resource`}:${e.path??e.name}`}function g(e,t){let n=new Set;return[...e,...t].filter(e=>{let t=`${e.path??e.workspacePath??``}:${e.name}`;return!n.has(t)&&(n.add(t),!0)})}export{h as i,m as n,u as r,d as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./jsx-runtime-NZYk81nU.js";import{r as t}from"./resource-helpers-
|
|
1
|
+
import{t as e}from"./jsx-runtime-NZYk81nU.js";import{r as t}from"./resource-helpers-CKbSmzpw.js";import{n}from"./file-text-cqOanUYv.js";import{a as r,i,t as a}from"./skeleton-loaders-DOKGa7CW.js";var o=e();function s({error:e,loading:s,resources:c,workspace:l}){let u=t(c,l);return(0,o.jsxs)(o.Fragment,{children:[e&&(0,o.jsx)(r,{icon:n,title:`Unable to load resources`,description:e.message}),!e&&s&&!c&&(0,o.jsx)(a,{}),!e&&c&&u.map(e=>(0,o.jsx)(i,{...e},e.id))]})}export{s as ResourcesPanelContent};
|
|
@@ -0,0 +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";var i={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};i.node;var a=r(i),o=e(t(),1),s=n(),c=(0,o.createContext)(null),l=(0,o.createContext)(null),u=(0,o.createContext)(null);function d({chatPanelData:e,children:t,onOpenUIAction:n,settingsActions:r,workspaceTree:i}){let a=(0,o.useMemo)(()=>({...e,onOpenUIAction:n}),[e,n]);return(0,s.jsx)(u.Provider,{value:r,children:(0,s.jsx)(l.Provider,{value:i,children:(0,s.jsx)(c.Provider,{value:a,children:t})})})}function f(){let e=(0,o.useContext)(c);if(!e)throw Error(`useChatPanelDataContext must be used within RightPanelProvider`);return e}function p(){let e=(0,o.useContext)(l);if(!e)throw Error(`useWorkspaceTreeContext must be used within RightPanelProvider`);return e}function m(){let e=(0,o.useContext)(u);if(!e)throw Error(`useSettingsActionsContext must be used within RightPanelProvider`);return e}export{a,p as i,f as n,m as r,d as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/artifacts-panel-DDlPULVv.js","assets/rolldown-runtime-hePW80VL.js","assets/react-Cvdyeg_0.js","assets/jsx-runtime-NZYk81nU.js","assets/button-BrwYi6QP.js","assets/react-dom-B7th3XGm.js","assets/utils-Dpy9ZFOr.js","assets/createBaseUIEventDetails-DklXWq23.js","assets/dist-BogNzeK9.js","assets/clsx-DB0hHKMi.js","assets/createLucideIcon-CQY2ECfR.js","assets/tool-result-C-vs_tjQ.js","assets/ease-2UPBQU5v.js","assets/is-ref-object-CEXqIz6L.js","assets/use-reduced-motion-CaQBb3Qc.js","assets/use-presence-D2YmRKr3.js","assets/check-BTwIaCtI.js","assets/chevron-down-Bse1ggZM.js","assets/circle-check-DBhaebaM.js","assets/agent-disclosure-YgLa4c2y.js","assets/loader-circle-BmKYM_C4.js","assets/rotate-ccw-DLkfsmG9.js","assets/square-terminal-BLq2bQVF.js","assets/wrench-BYnD147U.js","assets/preload-helper-Czpn1I53.js","assets/chevron-right-BPCB1mOg.js","assets/package-BkC-HSi-.js","assets/openui-renderer-l1qI5JDt.js","assets/card-BScRdZNS.js","assets/provider-catalog-L0c-bZv6.js","assets/DialogTitle-BwQ9k-MZ.js","assets/useBaseUiId-BlzQUkVG.js","assets/useControlled-CkQSkSv1.js","assets/input-BceH49B1.js","assets/safe-external-url-BnEhm9A0.js","assets/chunk-YOKDWASO-C8deEx7Z.js","assets/lib-ChrQ49PO.js","assets/character-entities-legacy-Wut6vMuj.js","assets/openui-utils-DawGoQNp.js","assets/composer-intent-C5pz72T6.js","assets/dialog-B9nXTto4.js","assets/x-DEU6H3M-.js","assets/markdown-C-Y9gskI.js","assets/switch-CoSNSJEY.js","assets/dist-BJJVCio8.js","assets/collapsible-DsbKpD_Y.js","assets/prime-agent-artifacts-C-g1VPiW.js","assets/resources-panel-kp_UjnpX.js","assets/resource-helpers-CKbSmzpw.js","assets/file-text-cqOanUYv.js","assets/plug-wCz-036u.js","assets/skeleton-loaders-DOKGa7CW.js","assets/skeleton-D5Y9nBfp.js","assets/session-insights-panel-B0rl37lo.js","assets/repl-panel-UQN9UFG7.js","assets/ipython-tool-CuSGRhXl.js","assets/triangle-alert-BuzmrrqI.js","assets/subagents-panel-ajf--C_-.js","assets/bot-DETalD3q.js","assets/virtualized-turn-list-Bcq088gZ.js","assets/citations-DOkXsdCi.js","assets/sparkles-C4VQyMox.js","assets/notify-GSsGEKtR.js","assets/toast-CS0pnDlS.js","assets/workspace-path-nav-DmxBrMV6.js","assets/subagent-transcript-CQuPs6N4.js","assets/session-tool-renderer-pGdW2MnV.js","assets/eye-iNSvs0UA.js","assets/git-branch-DZEh2mM2.js","assets/search-Cb6fFWew.js","assets/terminal-Ceucj7us.js","assets/dist-CZDnnosQ.js","assets/range-BWOHiLNe.js","assets/surfaces-BULKVm-B.js","assets/tool-timeline-B4ci1oJg.js","assets/refresh-cw-CqPE3kNY.js","assets/workspace-panel-CjKMroC6.js","assets/horizontal-resize-5AxYvGLA.js","assets/safe-storage-s25GrfpH.js","assets/chat-helpers-Bj7_hES7.js","assets/folder-COBtkKZa.js","assets/hard-drive-B3opVeEB.js","assets/session-tree-panel-DF3kuF0P.js","assets/alert-dialog-BfK7648p.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
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"./bot-DETalD3q.js";import{t as a}from"./folder-COBtkKZa.js";import{t as o}from"./git-branch-DZEh2mM2.js";import{t as s}from"./package-BkC-HSi-.js";import{i as c,n as l}from"./right-panel-context-DHKWoetk.js";import{t as u}from"./square-terminal-BLq2bQVF.js";import{t as d}from"./preload-helper-Czpn1I53.js";import{t as f}from"./skeleton-D5Y9nBfp.js";var p={name:`activity`,size:24,node:[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]};p.node;var m=r(p),h={name:`library`,size:24,node:[[`path`,{d:`m16 6 4 14`,key:`ji33uf`}],[`path`,{d:`M12 6v14`,key:`1n7gus`}],[`path`,{d:`M8 8v12`,key:`1gg7y9`}],[`path`,{d:`M4 4v16`,key:`6qkkli`}]]};h.node;var g=r(h),_=e(t(),1),v=n(),y=(0,_.lazy)(()=>d(async()=>{let{ArtifactsPanelContent:e}=await import(`./artifacts-panel-DDlPULVv.js`);return{ArtifactsPanelContent:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46])).then(({ArtifactsPanelContent:e})=>({default:e}))),b=(0,_.lazy)(()=>d(async()=>{let{ResourcesPanelContent:e}=await import(`./resources-panel-kp_UjnpX.js`);return{ResourcesPanelContent:e}},__vite__mapDeps([47,3,1,48,10,2,49,26,50,51,52,6])).then(({ResourcesPanelContent:e})=>({default:e}))),x=(0,_.lazy)(()=>d(async()=>{let{SessionInsightsPanel:e}=await import(`./session-insights-panel-B0rl37lo.js`);return{SessionInsightsPanel:e}},__vite__mapDeps([53,3,1])).then(({SessionInsightsPanel:e})=>({default:e}))),S=(0,_.lazy)(()=>d(async()=>{let{ReplPanelContent:e}=await import(`./repl-panel-UQN9UFG7.js`);return{ReplPanelContent:e}},__vite__mapDeps([54,1,2,3,55,6,10,22,56])).then(({ReplPanelContent:e})=>({default:e}))),C=(0,_.lazy)(()=>d(async()=>{let{SubagentsPanelContent:e}=await import(`./subagents-panel-ajf--C_-.js`);return{SubagentsPanelContent:e}},__vite__mapDeps([57,1,2,3,4,5,6,7,8,9,58,10,59,12,13,14,15,60,17,34,19,61,16,25,49,18,20,41,24,62,63,56,64,38,65,66,11,21,22,23,55,67,68,69,70,71,36,37,45,31,32,72,73,74,75,46])).then(({SubagentsPanelContent:e})=>({default:e}))),w=(0,_.lazy)(()=>d(async()=>{let{WorkspacePanelContent:e}=await import(`./workspace-panel-CjKMroC6.js`);return{WorkspacePanelContent:e}},__vite__mapDeps([76,1,2,3,6,12,13,14,15,48,10,49,26,50,25,77,78,79,80,81,64,24,51,52])).then(({WorkspacePanelContent:e})=>({default:e}))),T=(0,_.lazy)(()=>d(async()=>{let{SessionTreePanel:e}=await import(`./session-tree-panel-DF3kuF0P.js`);return{SessionTreePanel:e}},__vite__mapDeps([82,1,2,3,4,5,6,7,8,9,68,10,83,30,31])).then(({SessionTreePanel:e})=>({default:e})));function E(){return(0,v.jsxs)(`div`,{className:`flex min-h-32 flex-col gap-3 p-4`,"aria-label":`Loading panel`,children:[(0,v.jsx)(f,{className:`h-5 w-32`}),(0,v.jsx)(f,{className:`h-20 w-full`})]})}function D(){let e=l();return(0,v.jsx)(_.Suspense,{fallback:(0,v.jsx)(E,{}),children:(0,v.jsx)(x,{activityLabel:e.activityLabel,artifactRuns:e.artifactRuns,chatMode:e.chatMode,transcriptSummary:e.transcriptSummary,planLabel:e.planLabel,presentation:e.presentation,queue:e.queue,selectedModelKey:e.selectedModelKey,sessionId:e.sessionId,status:e.status,thinkingLevel:e.thinkingLevel})})}function O(){let e=l(),t=c();return(0,v.jsx)(_.Suspense,{fallback:(0,v.jsx)(E,{}),children:(0,v.jsx)(b,{error:e.resourcesError,loading:e.resourcesLoading,resources:e.resources,workspace:t.workspaceTree})})}function k(){let e=c();return(0,v.jsx)(_.Suspense,{fallback:(0,v.jsx)(E,{}),children:(0,v.jsx)(w,{error:e.workspaceError,loadWorkspaceFile:e.loadWorkspaceFile,loading:e.workspaceLoading,onSelectedPathChange:e.setSelectedWorkspacePath,selectedPath:e.selectedWorkspacePath,workspace:e.workspaceTree})})}function A(){let e=l();return(0,v.jsx)(_.Suspense,{fallback:(0,v.jsx)(E,{}),children:(0,v.jsx)(y,{artifactRuns:e.artifactRuns,openUIBlocks:e.transcriptSummary.openUIBlocks,onOpenUIAction:e.onOpenUIAction,selectedArtifactId:e.selectedArtifactId,status:e.status})})}function j(){let e=l();return(0,v.jsx)(_.Suspense,{fallback:(0,v.jsx)(E,{}),children:(0,v.jsx)(S,{artifactRuns:e.artifactRuns,selectedArtifactId:e.selectedArtifactId,kernelDiagnostics:e.presentation.kernelDiagnostics})})}function M(){let e=l();return(0,v.jsx)(_.Suspense,{fallback:(0,v.jsx)(E,{}),children:(0,v.jsx)(C,{agents:e.presentation.rlmChildren,loadSession:e.loadSubagentSession,onOpenTab:e.onOpenSubagentTab,parentSessionId:e.sessionId,tree:e.presentation.rlmTree})})}function N(){let e=l();return(0,v.jsx)(_.Suspense,{fallback:(0,v.jsx)(E,{}),children:(0,v.jsx)(T,{sessionId:e.sessionId,snapshot:e.sessionTreeSnapshot,loading:e.sessionTreeLoading,error:e.sessionTreeError,isStreaming:e.isSessionTreeStreaming,selectedEntryId:e.selectedSessionTreeEntryId,onSelectEntry:e.selectSessionTreeEntry,onRefresh:e.refreshSessionTree,onRewind:e.rewindSessionTree})})}var P={resources:{id:`resources`,order:0,title:`Resources`,ariaLabel:`Resources`,commandLabel:`Open Resources`,commandKeywords:[`resources`,`skills`,`panels`],icon:g,dataTestid:`pi-resources-canvas`,mobileDataTestid:`pi-resources-mobile-panel`,showInLauncher:!0,badgeSource:`resources`,loadingSource:`resources`,refreshSource:`resources`,component:O},workspace:{id:`workspace`,order:1,title:`Workspace`,ariaLabel:`Workspace`,commandLabel:`Open Workspace`,commandKeywords:[`workspace`,`files`,`panels`],icon:a,dataTestid:`pi-workspace-canvas`,mobileDataTestid:`pi-workspace-mobile-panel`,showInLauncher:!0,badgeSource:void 0,loadingSource:`workspace`,refreshSource:`workspace`,component:k},artifacts:{id:`artifacts`,order:2,title:`Artifacts`,ariaLabel:`Artifacts`,commandLabel:`Open Artifacts`,commandKeywords:[`artifacts`,`reports`,`datasets`,`panels`],icon:s,dataTestid:`pi-artifacts-canvas`,mobileDataTestid:`pi-artifacts-mobile-panel`,showInLauncher:!0,badgeSource:`artifacts`,loadingSource:void 0,refreshSource:void 0,component:A},repl:{id:`repl`,order:3,title:`REPL`,ariaLabel:`REPL runs`,commandLabel:`Open REPL`,commandKeywords:[`repl`,`ipython`,`python`,`cells`,`panels`],icon:u,dataTestid:`pi-repl-canvas`,mobileDataTestid:`pi-repl-mobile-panel`,showInLauncher:!0,badgeSource:`repl`,loadingSource:void 0,refreshSource:void 0,component:j},subagents:{id:`subagents`,order:4,title:`Subagents`,ariaLabel:`Subagents`,commandLabel:`Open Subagents`,commandKeywords:[`subagents`,`agents`,`threads`,`delegation`,`panels`],icon:i,dataTestid:`pi-subagents-canvas`,mobileDataTestid:`pi-subagents-mobile-panel`,showInLauncher:!1,badgeSource:void 0,loadingSource:void 0,refreshSource:void 0,component:M},"session-insights":{id:`session-insights`,order:5,title:`Session insights`,ariaLabel:`Session insights`,commandLabel:`Open Session Insights`,commandKeywords:[`session`,`insights`,`activity`,`panels`],icon:m,dataTestid:`pi-session-insights-canvas`,mobileDataTestid:`pi-session-insights-mobile-panel`,showInLauncher:!0,badgeSource:void 0,loadingSource:void 0,refreshSource:void 0,component:D},"session-tree":{id:`session-tree`,order:6,title:`Session tree`,ariaLabel:`Session tree`,commandLabel:`Open Session Tree`,commandKeywords:[`session`,`tree`,`branch`,`rewind`,`history`,`panels`],icon:o,dataTestid:`pi-session-tree-canvas`,mobileDataTestid:`pi-session-tree-mobile-panel`,showInLauncher:!0,badgeSource:void 0,loadingSource:void 0,refreshSource:void 0,component:N}},F=Object.values(P).sort((e,t)=>e.order-t.order).filter(e=>e.showInLauncher!==!1);function I(e){return P[e]}export{I as n,g as r,F as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./createLucideIcon-CQY2ECfR.js";var t={name:`rotate-ccw`,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`}]]};t.node;var n=e(t);export{n as t};
|