ryco-cli 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AzureDevOpsSourceControlProvider-X7_C5qAM.cjs → AzureDevOpsSourceControlProvider-CdgNqZ5j.cjs} +29 -19
- package/dist/{AzureDevOpsSourceControlProvider-CwvdH4Ll.mjs → AzureDevOpsSourceControlProvider-OsyDSESj.mjs} +14 -4
- package/dist/{BitbucketSourceControlProvider-3IhNThuu.cjs → BitbucketSourceControlProvider-DBTH98i4.cjs} +36 -19
- package/dist/{BitbucketSourceControlProvider-Y3LxnPYV.mjs → BitbucketSourceControlProvider-SQ3gKdFs.mjs} +21 -4
- package/dist/{BunPTY-6EA-iDZJ.mjs → BunPTY-B_vjRZN4.mjs} +2 -4
- package/dist/{BunPTY-CyqsuAMZ.cjs → BunPTY-BclzAOxp.cjs} +2 -4
- package/dist/{ClaudeDriver-Cmqo9lqD.mjs → ClaudeDriver-2dTtrsFD.mjs} +166 -156
- package/dist/{ClaudeDriver-CiWSk1E1.cjs → ClaudeDriver-D9yC2F0b.cjs} +196 -185
- package/dist/{CodexDriver-D73klBUb.cjs → CodexDriver-BC2B-qpT.cjs} +114 -50
- package/dist/{CodexDriver-BRsJm8XU.mjs → CodexDriver-CIDYevQX.mjs} +83 -20
- package/dist/{CodexTextGeneration-Bg0r8k7C.mjs → CodexTextGeneration-CjknB1Xl.mjs} +6 -6
- package/dist/{CodexTextGeneration-jbe9qfEM.cjs → CodexTextGeneration-DNeO-8GE.cjs} +18 -18
- package/dist/{CopilotDriver-tZdF91om.cjs → CopilotDriver-BGChrP5c.cjs} +31 -37
- package/dist/{CopilotDriver-DvDa-7-c.mjs → CopilotDriver-NPhlLrk2.mjs} +13 -19
- package/dist/{CursorDriver-C6dq_Wr6.mjs → CursorDriver-BcAVbT8D.mjs} +195 -273
- package/dist/{CursorDriver-BVJV7yyE.cjs → CursorDriver-CYxn4_c1.cjs} +239 -316
- package/dist/{ForgejoSourceControlProvider-C9T3-pOt.mjs → ForgejoSourceControlProvider-BjCE3730.mjs} +14 -4
- package/dist/{ForgejoSourceControlProvider-DYtCJSSP.cjs → ForgejoSourceControlProvider-D3wP2Cav.cjs} +29 -19
- package/dist/{GitHubSourceControlProvider-BmSffLFQ.mjs → GitHubSourceControlProvider-DByZ_cnw.mjs} +40 -8
- package/dist/{GitHubSourceControlProvider-DIbRPFFf.cjs → GitHubSourceControlProvider-DU_7IvMa.cjs} +54 -22
- package/dist/{GitLabSourceControlProvider-BdLuuH3g.cjs → GitLabSourceControlProvider-BVJ5IqTS.cjs} +29 -19
- package/dist/{GitLabSourceControlProvider-DTZ_rx8U.mjs → GitLabSourceControlProvider-BdMCIjXb.mjs} +14 -4
- package/dist/Metrics-BCOc3Ml2.mjs +356 -0
- package/dist/Metrics-DNOriWhP.cjs +634 -0
- package/dist/{NodePTY-Dg0g4rID.mjs → NodePTY-_u3kQLvd.mjs} +2 -4
- package/dist/{NodePTY-U7qcu5qQ.cjs → NodePTY-keGvFYk9.cjs} +2 -4
- package/dist/{NodeSqliteClient-CPd53X2R.mjs → NodeSqliteClient-BXy61fAd.mjs} +2 -4
- package/dist/{NodeSqliteClient-UlhLLRBA.cjs → NodeSqliteClient-homCO8-6.cjs} +16 -18
- package/dist/{OpenCodeDriver-D79_QFoB.cjs → OpenCodeDriver-DyR83FcY.cjs} +32 -34
- package/dist/{OpenCodeDriver-DN5bRb9Z.mjs → OpenCodeDriver-fwqXoVyH.mjs} +10 -13
- package/dist/{ProjectCustomSystemPrompt-9Bf13ScV.cjs → ProjectCustomSystemPrompt-B8SUlNGa.cjs} +11 -13
- package/dist/{ProjectCustomSystemPrompt-QmzOdzXf.mjs → ProjectCustomSystemPrompt-CS1nulhL.mjs} +1 -2
- package/dist/{ProviderDriver-DJK4EOeA.cjs → ProviderDriver--rNeAi3B.cjs} +6 -8
- package/dist/{ProviderDriver-CkHnmP8q.mjs → ProviderDriver-kCV60GKk.mjs} +1 -2
- package/dist/SourceControlProviderDiscoveryCatalog-CQiMyDCC.mjs +569 -0
- package/dist/SourceControlProviderDiscoveryCatalog-DqQVhwYM.cjs +676 -0
- package/dist/bin.cjs +6648 -12395
- package/dist/bin.d.cts +2 -0
- package/dist/bin.d.mts +2 -0
- package/dist/bin.mjs +8539 -14222
- package/dist/chunk-jM1PLTSZ.cjs +30 -0
- package/dist/client/assets/AnimatedHeight-CYuVQOpY.js +1 -0
- package/dist/client/assets/AppearanceSettings-BBbC8CV5.js +1 -0
- package/dist/client/assets/BranchToolbar.logic-Di2EkKiO.js +1 -0
- package/dist/client/assets/ChatRightPanel-BJ_cVP66.js +188 -0
- package/dist/client/assets/ChatThreadRouteView-DmxD3m2U.js +1 -0
- package/dist/client/assets/CommandPaletteDialog-CAzz6bsT.js +1 -0
- package/dist/client/assets/CompositeRoot-BvXCwn2c.js +1 -0
- package/dist/client/assets/ConnectionsSettings-Cmxm0y2u.js +1 -0
- package/dist/client/assets/DialogHandle-CXNAm3QY.js +1 -0
- package/dist/client/assets/DialogRoot-DaMwpoP_.js +1 -0
- package/dist/client/assets/DialogTitle-KXmfgzP3.js +1 -0
- package/dist/client/assets/DialogTrigger-NHyQnW3X.js +1 -0
- package/dist/client/assets/DialogViewport-CL0WR9a5.js +1 -0
- package/dist/client/assets/DraftChatThreadRouteView-C_hqauF6.js +1 -0
- package/dist/client/assets/JetBrainsIcons-BcR8pCma.js +1 -0
- package/dist/client/assets/KeybindingsSettings-m2AteGOl.js +7 -0
- package/dist/client/assets/McpServersSettings-DndIDxgA.js +6 -0
- package/dist/client/assets/NoActiveThreadState-Bt-Wkv-C.js +1 -0
- package/dist/client/assets/OpinionatedPluginsSettings-oDtdE6qx.js +1 -0
- package/dist/client/assets/ProjectFavicon-j9IX_7-B.js +1 -0
- package/dist/client/assets/ProviderUpdateLaunchNotification.logic-BFzNCo3I.js +1 -0
- package/dist/client/assets/ProvidersSettingsPanel-CvlIBNVJ.js +1 -0
- package/dist/client/assets/QueryClientProvider-BZxRKpeb.js +1 -0
- package/dist/client/assets/RedactedSensitiveText-UnZZJnFF.js +1 -0
- package/dist/client/assets/RootAppShell-CyHZ_F5P.js +12 -0
- package/dist/client/assets/SettingsDialog-BYJ8AhQp.js +2 -0
- package/dist/client/assets/SourceControlSettings-7xU6VH6N.js +1 -0
- package/dist/client/assets/ThreadStatusIndicators-M9FWDEex.js +1 -0
- package/dist/client/assets/ThreadTerminalDrawer-BXoXAbsR.js +38 -0
- package/dist/client/assets/ThreadTerminalDrawer-BrP-ENHg.css +1 -0
- package/dist/client/assets/ThreadWorkspacePanel-D1J63TVD.js +166 -0
- package/dist/client/assets/alert-dialog-BJQbh5gX.js +1 -0
- package/dist/client/assets/{angular-html-s8mFfHxJ.js → angular-html-BjMPwewj.js} +1 -1
- package/dist/client/assets/{angular-ts-qPgEQREa.js → angular-ts-DueL15Nu.js} +1 -1
- package/dist/client/assets/{apl-Bk41I3U1.js → apl-BgVy_tIs.js} +1 -1
- package/dist/client/assets/{astro-ClwGnYhy.js → astro-CWd6v_kU.js} +1 -1
- package/dist/client/assets/{blade-D8d2x7Cj.js → blade-C1itW3Xj.js} +1 -1
- package/dist/client/assets/{bsl-DJJjEj3G.js → bsl-BkkzgIyY.js} +1 -1
- package/dist/client/assets/{c-C7LLcxwo.js → c-BerOGYIx.js} +1 -1
- package/dist/client/assets/{cairo-D0DvaGhb.js → cairo-DLTphjLi.js} +1 -1
- package/dist/client/assets/chatThreadActions--n7v5mnB.js +1 -0
- package/dist/client/assets/clamp-NYtK3f5s.js +1 -0
- package/dist/client/assets/{cobol-BFmBEDT2.js → cobol-C_rkq165.js} +1 -1
- package/dist/client/assets/codexUsageLimits-BJQiZCqn.js +1 -0
- package/dist/client/assets/{coffee-C6xKBntv.js → coffee-DX2eriSb.js} +1 -1
- package/dist/client/assets/commandPaletteStore-oFMPKPmp.js +1 -0
- package/dist/client/assets/{compiler-runtime-BF315rzL.js → compiler-runtime-BNrXlsa1.js} +1 -1
- package/dist/client/assets/composerDraftStore-xu3n5gdX.js +21 -0
- package/dist/client/assets/{cpp-CVDdGIJL.js → cpp-DN_S3YzL.js} +1 -1
- package/dist/client/assets/{crystal-C8hrz-Ed.js → crystal-DX_yIzv-.js} +1 -1
- package/dist/client/assets/{css-Bq4IaKl1.js → css-CcrQR6FS.js} +1 -1
- package/dist/client/assets/desktopUpdateReactQuery-YSCkifKp.js +2 -0
- package/dist/client/assets/download-Bi4-cFbc.js +1 -0
- package/dist/client/assets/draft-input-BGSRgOW7.js +1 -0
- package/dist/client/assets/{edge-M0lvKmK0.js → edge-D6QhZ796.js} +1 -1
- package/dist/client/assets/{elixir-Z_A63tjC.js → elixir-DMd9329w.js} +1 -1
- package/dist/client/assets/{elm-CSUyuYJg.js → elm-ClOR9TU8.js} +1 -1
- package/dist/client/assets/empty-BTxheW4B.js +1 -0
- package/dist/client/assets/environmentApi-BFHi_M02.js +1 -0
- package/dist/client/assets/{erb-DrEx0jBQ.js → erb-HraKpeAP.js} +1 -1
- package/dist/client/assets/{erlang-CJBKhF6J.js → erlang-Cphh6RMH.js} +1 -1
- package/dist/client/assets/folder-open-DJmHEPv9.js +1 -0
- package/dist/client/assets/{fortran-fixed-form-BKSuIOW4.js → fortran-fixed-form-DEKoE2YW.js} +1 -1
- package/dist/client/assets/{fsharp-U9gZ5YOh.js → fsharp-D13ZGOAj.js} +1 -1
- package/dist/client/assets/{gdresource-DoBd66sG.js → gdresource-C0sCabJj.js} +1 -1
- package/dist/client/assets/{git-commit-Db7dtED7.js → git-commit-BSykSTBG.js} +1 -1
- package/dist/client/assets/{git-rebase-QypkBr98.js → git-rebase-7x6VaRfM.js} +1 -1
- package/dist/client/assets/{glimmer-js-NOqtI1Rk.js → glimmer-js-Bs66SSVv.js} +1 -1
- package/dist/client/assets/{glimmer-ts-BeU4NlYB.js → glimmer-ts-C-1005ee.js} +1 -1
- package/dist/client/assets/{glsl-BkDxwNg4.js → glsl-ClknhvHk.js} +1 -1
- package/dist/client/assets/{graphql-BuqaMepw.js → graphql-BJK35HL6.js} +1 -1
- package/dist/client/assets/group-Dwm-OV-r.js +1 -0
- package/dist/client/assets/{hack-C01X66u7.js → hack-DTKnRaIz.js} +1 -1
- package/dist/client/assets/{haml-6AVURMsW.js → haml-v1Ae09NK.js} +1 -1
- package/dist/client/assets/{handlebars-CQt0otqg.js → handlebars-DvtPw9yK.js} +1 -1
- package/dist/client/assets/hostedPairing-DAdvNuk3.js +1 -0
- package/dist/client/assets/{html-B9GCfMM1.js → html-Ckes0w7-.js} +1 -1
- package/dist/client/assets/{html-derivative-Choar9BD.js → html-derivative-CjYqXu8c.js} +1 -1
- package/dist/client/assets/{http-DvFNkpiH.js → http-DgyAR01B.js} +1 -1
- package/dist/client/assets/{hurl-BSVy9O8n.js → hurl-BSy4XrZM.js} +1 -1
- package/dist/client/assets/{hxml-BcCIYlZp.js → hxml-B0Qn7Nwc.js} +1 -1
- package/dist/client/assets/{index-B215HMv1.js → index-BI5yFj9n.js} +2 -2
- package/dist/client/assets/input-BfUa3JUD.js +1 -0
- package/dist/client/assets/{java-DYU2LKAe.js → java-BRs8BbUU.js} +1 -1
- package/dist/client/assets/{javascript-CqMUgcTv.js → javascript-CCh9h5HS.js} +1 -1
- package/dist/client/assets/{jinja-DZIBHWGb.js → jinja-D1OtL_yO.js} +1 -1
- package/dist/client/assets/{jison-1dZyCIA-.js → jison-D_fWb18i.js} +1 -1
- package/dist/client/assets/{json-By08Hh8g.js → json-Bs_SRPeT.js} +1 -1
- package/dist/client/assets/{jsx-D-zBxh5E.js → jsx-Btew4WFJ.js} +1 -1
- package/dist/client/assets/{julia-D4DyCD9m.js → julia-BKIxRKg2.js} +1 -1
- package/dist/client/assets/{just-t1DYRM-F.js → just-CSkhc6Nt.js} +1 -1
- package/dist/client/assets/kbd-Dd57M8OY.js +1 -0
- package/dist/client/assets/keybindings--G1bkIjA.js +1 -0
- package/dist/client/assets/keyboard-B87VTfPa.js +1 -0
- package/dist/client/assets/{latex-WQQP2pth.js → latex-DrurJw6z.js} +1 -1
- package/dist/client/assets/{liquid-D0Ghr7un.js → liquid-DLZ2kGK1.js} +1 -1
- package/dist/client/assets/{lua-r3xGOG0a.js → lua-BNdhJiqB.js} +1 -1
- package/dist/client/assets/main-BQf5U-fz.js +9 -0
- package/dist/client/assets/main-DrwkwNo9.css +2 -0
- package/dist/client/assets/{marko-wk9TVjCS.js → marko-B3eJkbnP.js} +1 -1
- package/dist/client/assets/{mdc-BRMVGNjb.js → mdc-Dz2y1zK2.js} +1 -1
- package/dist/client/assets/modelPickerOpenState-BJxsqvdg.js +1 -0
- package/dist/client/assets/mutation-DJZgOJRu.js +1 -0
- package/dist/client/assets/{nextflow-D0nv53RF.js → nextflow-Bbiyy34d.js} +1 -1
- package/dist/client/assets/{nginx-D968CCNX.js → nginx-BazusZwe.js} +1 -1
- package/dist/client/assets/{nim-CRCwl258.js → nim-jwqEnSmK.js} +1 -1
- package/dist/client/assets/{perl-29yJp9Uu.js → perl-BwoWHrup.js} +1 -1
- package/dist/client/assets/{php-Cemz192H.js → php-DmODFjdr.js} +1 -1
- package/dist/client/assets/plus-B10j9MbZ.js +1 -0
- package/dist/client/assets/primary-CSkhdakK.js +1 -0
- package/dist/client/assets/providerDriverMeta-B6xuq7ij.js +1 -0
- package/dist/client/assets/providerIconUtils-Ch6hejVW.js +47 -0
- package/dist/client/assets/{pug-B2ZE7aeX.js → pug-JR1tLpbP.js} +1 -1
- package/dist/client/assets/{qml-jG3DrKD9.js → qml-CrcLSvXM.js} +1 -1
- package/dist/client/assets/{r-D3sEfBW5.js → r-B4G19rTw.js} +1 -1
- package/dist/client/assets/{razor-Beauj9_g.js → razor-Vr7Dkano.js} +1 -1
- package/dist/client/assets/react-CjD7iThp.js +16 -0
- package/dist/client/assets/react-PSPkXoKo.js +1 -0
- package/dist/client/assets/refresh-cw-CRxaXR0E.js +1 -0
- package/dist/client/assets/{regexp-DJB-0KGI.js → regexp-mkyOQxyI.js} +1 -1
- package/dist/client/assets/resolveAriaLabelledBy-D4fWpj84.js +1 -0
- package/dist/client/assets/rightPanelRouteSearch-CTMFCS6R.js +1 -0
- package/dist/client/assets/{rst-D9Thij-7.js → rst-CMlIIAT6.js} +1 -1
- package/dist/client/assets/{ruby-BriTZmlZ.js → ruby-DeHylo3G.js} +1 -1
- package/dist/client/assets/{sas-Cp_miaeX.js → sas-DITAP7FM.js} +1 -1
- package/dist/client/assets/scroll-area-BgFq7GRd.js +1 -0
- package/dist/client/assets/{scss-DpivEdne.js → scss-DPGO9NvD.js} +1 -1
- package/dist/client/assets/separator-CB3Ctlvi.js +1 -0
- package/dist/client/assets/server-tdx7WxLI.js +1 -0
- package/dist/client/assets/session-logic-CaiGe4hy.js +4 -0
- package/dist/client/assets/settingsDialogStore-9vo22xKp.js +1 -0
- package/dist/client/assets/settingsLayout-B5o13iGO.js +1 -0
- package/dist/client/assets/{shaderlab-DJPIU-BM.js → shaderlab-TOUzSsQk.js} +1 -1
- package/dist/client/assets/{shellscript-CM8oTE2e.js → shellscript-Ctrwjmrg.js} +1 -1
- package/dist/client/assets/{shellsession-Cbvx0Scr.js → shellsession-CVFkOqvv.js} +1 -1
- package/dist/client/assets/sidebar-Bbdql7Af.js +1 -0
- package/dist/client/assets/skeleton-C8OZcsPq.js +1 -0
- package/dist/client/assets/{soy-4R-idkhG.js → soy-DGJ8Y2bl.js} +1 -1
- package/dist/client/assets/{sparql-Zqzk9CwD.js → sparql-D_iOobhT.js} +1 -1
- package/dist/client/assets/{sql-sKjBShS8.js → sql-u97rfsUo.js} +1 -1
- package/dist/client/assets/{stata-DLIq7jHS.js → stata-DWI7UlWE.js} +1 -1
- package/dist/client/assets/storeSelectors-DBRyhCGm.js +1 -0
- package/dist/client/assets/{surrealql-CRX8IwBN.js → surrealql-BUWsplpt.js} +1 -1
- package/dist/client/assets/{svelte-Dvrysi6X.js → svelte-CQXFJOFl.js} +1 -1
- package/dist/client/assets/{templ-RcP_-Nu-.js → templ-CA7lFfrq.js} +1 -1
- package/dist/client/assets/{tex-B8a5_DIi.js → tex-DAVBEZhF.js} +1 -1
- package/dist/client/assets/threadRoutes-CfldSp4X.js +1 -0
- package/dist/client/assets/threadSelectionStore-BggKwzmQ.js +1 -0
- package/dist/client/assets/toast-DE-WwLMa.js +1 -0
- package/dist/client/assets/toggle-BFMa0a0Y.js +1 -0
- package/dist/client/assets/toggle-group-DdKXHoT3.js +1 -0
- package/dist/client/assets/trash-2-CZQem-sz.js +1 -0
- package/dist/client/assets/{ts-tags-BG0VzqyM.js → ts-tags-cqyzSw6V.js} +1 -1
- package/dist/client/assets/{tsx-D4f8_1wY.js → tsx-aOZK_XWL.js} +1 -1
- package/dist/client/assets/{twig-DxlRBqRW.js → twig-RScZCD0T.js} +1 -1
- package/dist/client/assets/{typescript-C32OH5Jk.js → typescript-6eFuNBLU.js} +1 -1
- package/dist/client/assets/useHandleNewThread-DOPZAFqE.js +1 -0
- package/dist/client/assets/useLabelableId-BzWaBebJ.js +1 -0
- package/dist/client/assets/useNavigate-B1qgM5mt.js +1 -0
- package/dist/client/assets/useTheme-C7Ji7x06.js +1 -0
- package/dist/client/assets/vscode-icons-E8NUFd62.js +1 -0
- package/dist/client/assets/{vue-5RtgVZcg.js → vue-DVoN9ARa.js} +1 -1
- package/dist/client/assets/{vue-html-Dd-LXYnz.js → vue-html-BnZS_Ahq.js} +1 -1
- package/dist/client/assets/{vue-vine-BKz6iXyu.js → vue-vine-B0I6Y_6P.js} +1 -1
- package/dist/client/assets/{worker-rFBLi4xK.js → worker-B_h_pwVO.js} +5 -5
- package/dist/client/assets/wrench-DEteICtk.js +1 -0
- package/dist/client/assets/x-b9324xm-.js +1 -0
- package/dist/client/assets/{xml-DXQJVDNT.js → xml-Dvs5bvzt.js} +1 -1
- package/dist/client/assets/{xsl-ByvM9IQh.js → xsl-CuljSg_9.js} +1 -1
- package/dist/client/assets/{yaml-CCq_gfp4.js → yaml-orq9hzxs.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/collectUint8StreamText-DbCOJom3.cjs +7269 -0
- package/dist/collectUint8StreamText-DuFJyaQh.mjs +6185 -0
- package/dist/{makeManagedServerProvider-DVrBJ3h3.cjs → makeManagedServerProvider-C3cQUDkZ.cjs} +77 -79
- package/dist/{makeManagedServerProvider-B3DH-AMf.mjs → makeManagedServerProvider-wFGZ2-vd.mjs} +7 -10
- package/dist/sourceControl-iWG-m4wE.mjs +207 -0
- package/dist/sourceControl-x2t62T8h.cjs +230 -0
- package/dist/{sourceControlContextFormatter-CO5cScmF.cjs → sourceControlContextFormatter-BDZqn-4T.cjs} +6 -8
- package/dist/{sourceControlContextFormatter-DpXEEmAm.mjs → sourceControlContextFormatter-DEwpnVAH.mjs} +1 -2
- package/package.json +5 -3
- package/dist/client/assets/ChangedFilesTree-B4W17bLf.js +0 -1
- package/dist/client/assets/DiffPanel-C9_pKXWU.js +0 -75
- package/dist/client/assets/DiffPanelShell-BmfxFBmp.js +0 -167
- package/dist/client/assets/DiffWorkerPoolProvider-B2FLS8eo.js +0 -1
- package/dist/client/assets/PreviewPanel-Z0IDMiKg.js +0 -30
- package/dist/client/assets/RootAppShell-qLlEOcIH.js +0 -24
- package/dist/client/assets/alert-D2R5HNlM.js +0 -1
- package/dist/client/assets/composerHandleContext-CkHnb2_F.js +0 -46
- package/dist/client/assets/hostedPairing-D299g9iL.js +0 -1
- package/dist/client/assets/main-DOCL-gXt.js +0 -66
- package/dist/client/assets/main-DhO2tDKo.css +0 -1
- package/dist/client/assets/pathEntry-DCmCWUeG.js +0 -1
- package/dist/client/assets/primary-BKkx6aqv.js +0 -16
- package/dist/client/assets/react-CYzKIDNi.js +0 -1
- package/dist/client/assets/refresh-cw-BpZqiP_0.js +0 -1
- package/dist/client/assets/runtime-QfzvF0Vn.js +0 -1
- package/dist/client/assets/separator-CXZK6vFp.js +0 -4
- package/dist/client/assets/text-wrap-CnmG6WhR.js +0 -62
- package/dist/client/assets/toggle-BfBpNkCG.js +0 -1
- package/dist/client/assets/toggle-group-Dp1gg0mX.js +0 -1
- package/dist/client/assets/useSettings-BLDkflD_.js +0 -21
- package/dist/client/assets/useTheme-BHTjVtp9.js +0 -1
- package/dist/client/assets/useTheme-EFHXLM5e.js +0 -1
- package/dist/client/assets/vscode-icons-Ciu6Pjk4.js +0 -1
- /package/dist/client/assets/{abap-Vg0cj5d8.js → abap-CLvhMVsD.js} +0 -0
- /package/dist/client/assets/{actionscript-3-BV1RXWL1.js → actionscript-3--17pq3dv.js} +0 -0
- /package/dist/client/assets/{ada-Ce_Xk3Sp.js → ada-C5qYipkI.js} +0 -0
- /package/dist/client/assets/{andromeeda-DJewj201.js → andromeeda-vGVdxbeo.js} +0 -0
- /package/dist/client/assets/{apache-BbDgM_LY.js → apache-U0d_L8uA.js} +0 -0
- /package/dist/client/assets/{apex-Z4y334SR.js → apex-CGTLDQj6.js} +0 -0
- /package/dist/client/assets/{applescript-CLDQZ5Zp.js → applescript-CCn79oCD.js} +0 -0
- /package/dist/client/assets/{ara-DwFb8Z32.js → ara-4CJ0cIlV.js} +0 -0
- /package/dist/client/assets/{asciidoc-ByVQW3u3.js → asciidoc-DE70LPWp.js} +0 -0
- /package/dist/client/assets/{asm-CqqqWovZ.js → asm-Cmm7eHzH.js} +0 -0
- /package/dist/client/assets/{aurora-x-B9BHU0bK.js → aurora-x-CDeNXAV0.js} +0 -0
- /package/dist/client/assets/{awk-L5v-cuCL.js → awk-BWXHIvNe.js} +0 -0
- /package/dist/client/assets/{ayu-dark-YQNfFJx2.js → ayu-dark-DluEY0Gj.js} +0 -0
- /package/dist/client/assets/{ayu-light-_9Blof0L.js → ayu-light-C3h-C4tm.js} +0 -0
- /package/dist/client/assets/{ayu-mirage-ywKZgCHT.js → ayu-mirage-Bqwy1Gya.js} +0 -0
- /package/dist/client/assets/{ballerina-Dgg2a6zg.js → ballerina-B7ZEbQpA.js} +0 -0
- /package/dist/client/assets/{bat-wLloRoua.js → bat-Bo4NYOV-.js} +0 -0
- /package/dist/client/assets/{beancount-BCSJrVVf.js → beancount-D-usSTwE.js} +0 -0
- /package/dist/client/assets/{berry-DJXUHylF.js → berry-DKpUyyne.js} +0 -0
- /package/dist/client/assets/{bibtex-C6hGKKRT.js → bibtex-Ci_nEsc7.js} +0 -0
- /package/dist/client/assets/{bicep-RsAVk7ms.js → bicep-CUHmPFLl.js} +0 -0
- /package/dist/client/assets/{bird2-DTRIpKsA.js → bird2-C2hNVINV.js} +0 -0
- /package/dist/client/assets/{c3-DhlmE_oa.js → c3-CnJL0r0V.js} +0 -0
- /package/dist/client/assets/{cadence-gm_AXdjh.js → cadence-CQ2zXKGN.js} +0 -0
- /package/dist/client/assets/{catppuccin-frappe-CRaK-OXp.js → catppuccin-frappe-3VR1Za6u.js} +0 -0
- /package/dist/client/assets/{catppuccin-latte-CekmIWzD.js → catppuccin-latte-DwIHMF0Q.js} +0 -0
- /package/dist/client/assets/{catppuccin-macchiato-Pgs1_ylq.js → catppuccin-macchiato-DYnBP6_5.js} +0 -0
- /package/dist/client/assets/{catppuccin-mocha-CVFrnEg2.js → catppuccin-mocha-DYhrFGRu.js} +0 -0
- /package/dist/client/assets/{clarity-_nV8rm3T.js → clarity-SemFz856.js} +0 -0
- /package/dist/client/assets/{clojure-Dsywsvl2.js → clojure-DqKBuwfJ.js} +0 -0
- /package/dist/client/assets/{cmake-DoZviRk-.js → cmake-Bj61d0ZC.js} +0 -0
- /package/dist/client/assets/{codeowners-LcUICwIC.js → codeowners-C8r90Shi.js} +0 -0
- /package/dist/client/assets/{codeql-C0tRiarJ.js → codeql-oeQT6MSM.js} +0 -0
- /package/dist/client/assets/{common-lisp-BQXePP3H.js → common-lisp-Cv5bFMCO.js} +0 -0
- /package/dist/client/assets/{coq-DWR2ZlCV.js → coq-BrsZFFmf.js} +0 -0
- /package/dist/client/assets/{csharp-BpO6pU8h.js → csharp-Ct8U2NOr.js} +0 -0
- /package/dist/client/assets/{csv-guZ1Hczt.js → csv-Dx-8-gkx.js} +0 -0
- /package/dist/client/assets/{cue-DVp9_WvV.js → cue-CE9AQfxI.js} +0 -0
- /package/dist/client/assets/{cypher-3MHH4pYW.js → cypher-ClKdZ_lG.js} +0 -0
- /package/dist/client/assets/{d-CIAu_RLS.js → d-qD-0Kul2.js} +0 -0
- /package/dist/client/assets/{dark-plus-D6YuWbv0.js → dark-plus-Cs2F2srj.js} +0 -0
- /package/dist/client/assets/{dart-DYuQ6kUW.js → dart-DkHntEIa.js} +0 -0
- /package/dist/client/assets/{dax-BBIUHzFG.js → dax-BkyTk9wS.js} +0 -0
- /package/dist/client/assets/{desktop-i7Pu8H5c.js → desktop-Dlh5hvp9.js} +0 -0
- /package/dist/client/assets/{diff-BOMu6KnT.js → diff-woXpYk--.js} +0 -0
- /package/dist/client/assets/{docker-Jl7Opeg9.js → docker-IyjqRm3v.js} +0 -0
- /package/dist/client/assets/{dotenv-DNMkRfS9.js → dotenv-_5a1GRtc.js} +0 -0
- /package/dist/client/assets/{dracula-BRuhgxZx.js → dracula-BHWKrbxM.js} +0 -0
- /package/dist/client/assets/{dracula-soft-Bh-3NXEk.js → dracula-soft-5eyTD99u.js} +0 -0
- /package/dist/client/assets/{dream-maker-XsE3rknm.js → dream-maker-DW3nJb8Q.js} +0 -0
- /package/dist/client/assets/{emacs-lisp-DILRoF5l.js → emacs-lisp-C9PiwqqW.js} +0 -0
- /package/dist/client/assets/{everforest-dark-TN28LCtO.js → everforest-dark-sB-x3p7T.js} +0 -0
- /package/dist/client/assets/{everforest-light-Bie4zQAp.js → everforest-light-Df2xbC6M.js} +0 -0
- /package/dist/client/assets/{fennel-C5HmIS3y.js → fennel-DQxkIbk2.js} +0 -0
- /package/dist/client/assets/{fish-BLa94bES.js → fish-BJitypiv.js} +0 -0
- /package/dist/client/assets/{fluent-Dz5wDZec.js → fluent-C03EYrpw.js} +0 -0
- /package/dist/client/assets/{fortran-free-form-Dhgntk66.js → fortran-free-form-CYNrtFtB.js} +0 -0
- /package/dist/client/assets/{gdscript-cU6-22QG.js → gdscript-Cp2uCuqX.js} +0 -0
- /package/dist/client/assets/{gdshader-D10o9T_4.js → gdshader-CBce3t8t.js} +0 -0
- /package/dist/client/assets/{genie-BxoMb50b.js → genie-CV2tkWYe.js} +0 -0
- /package/dist/client/assets/{gherkin-B2lz9HMr.js → gherkin-DExj1W_8.js} +0 -0
- /package/dist/client/assets/{github-dark-D5NDXfHf.js → github-dark-C-LZuMrd.js} +0 -0
- /package/dist/client/assets/{github-dark-default-Bo_3g1lT.js → github-dark-default-DXG-b-1a.js} +0 -0
- /package/dist/client/assets/{github-dark-dimmed-BQUS-1Ln.js → github-dark-dimmed-Bx1FflLF.js} +0 -0
- /package/dist/client/assets/{github-dark-high-contrast-DIHLvRoS.js → github-dark-high-contrast-B_tTalzw.js} +0 -0
- /package/dist/client/assets/{github-light-Bw4sXpzB.js → github-light-EUqPIrTm.js} +0 -0
- /package/dist/client/assets/{github-light-default-B8bmeZPd.js → github-light-default-BXViO-2h.js} +0 -0
- /package/dist/client/assets/{github-light-high-contrast-CJI8nAIV.js → github-light-high-contrast-B68TUdTA.js} +0 -0
- /package/dist/client/assets/{gleam-9zwoUsHJ.js → gleam-CSRkHgEL.js} +0 -0
- /package/dist/client/assets/{gn-DLF2G5Ru.js → gn-ilITqXS6.js} +0 -0
- /package/dist/client/assets/{gnuplot-Bcm3DAiA.js → gnuplot-7GGW24-e.js} +0 -0
- /package/dist/client/assets/{go-CPlmKKFp.js → go-BJwz_mda.js} +0 -0
- /package/dist/client/assets/{groovy-Dg2VIq5p.js → groovy-CacY0gHj.js} +0 -0
- /package/dist/client/assets/{gruvbox-dark-hard-BzHG1YMb.js → gruvbox-dark-hard-C820rvS2.js} +0 -0
- /package/dist/client/assets/{gruvbox-dark-medium-C9UQOvAR.js → gruvbox-dark-medium-BPjhmG05.js} +0 -0
- /package/dist/client/assets/{gruvbox-dark-soft-xgYmK4Rn.js → gruvbox-dark-soft-MrdJrrXF.js} +0 -0
- /package/dist/client/assets/{gruvbox-light-hard-DxvMP-zF.js → gruvbox-light-hard-BC_s9l72.js} +0 -0
- /package/dist/client/assets/{gruvbox-light-medium-SxCJk4ze.js → gruvbox-light-medium-BAWPOn9u.js} +0 -0
- /package/dist/client/assets/{gruvbox-light-soft-B9XTNyng.js → gruvbox-light-soft-BSMLrYjP.js} +0 -0
- /package/dist/client/assets/{haskell-Cf52ssWB.js → haskell-D8IpX4py.js} +0 -0
- /package/dist/client/assets/{haxe-BiaDi9Ls.js → haxe-OTjmBuCE.js} +0 -0
- /package/dist/client/assets/{hcl-Dcb9DqV1.js → hcl-Dh228itO.js} +0 -0
- /package/dist/client/assets/{hjson-LjA2UJVG.js → hjson-CxZEssPk.js} +0 -0
- /package/dist/client/assets/{hlsl-Bdu4H644.js → hlsl-Cvrh5tZx.js} +0 -0
- /package/dist/client/assets/{horizon-DfLB6K3K.js → horizon-CE9ld1lL.js} +0 -0
- /package/dist/client/assets/{horizon-bright-BRcOD00n.js → horizon-bright-Br1oVSNq.js} +0 -0
- /package/dist/client/assets/{houston-pGeyqiDN.js → houston-CsvMBhTu.js} +0 -0
- /package/dist/client/assets/{hy-CAzVaHwm.js → hy-CZbG8q4J.js} +0 -0
- /package/dist/client/assets/{imba-CtP12ZBI.js → imba-DsUTQ-LC.js} +0 -0
- /package/dist/client/assets/{ini-DyaqLXx3.js → ini-B5eOa1yu.js} +0 -0
- /package/dist/client/assets/{json5-pkfxH3eL.js → json5-BR5RXkoi.js} +0 -0
- /package/dist/client/assets/{jsonc-D_yIvXTo.js → jsonc-CYpm1nAK.js} +0 -0
- /package/dist/client/assets/{jsonl-Cyj0VVep.js → jsonl-CmCQp5Yx.js} +0 -0
- /package/dist/client/assets/{jsonnet-CQ7ol0Ju.js → jsonnet-CJTPZ8u_.js} +0 -0
- /package/dist/client/assets/{jssm-MbQThoOI.js → jssm-DXw9l8Rf.js} +0 -0
- /package/dist/client/assets/{kanagawa-dragon-WzYJN5gB.js → kanagawa-dragon-CXtmUGW6.js} +0 -0
- /package/dist/client/assets/{kanagawa-lotus-rRmvCTTT.js → kanagawa-lotus-BN08jTvb.js} +0 -0
- /package/dist/client/assets/{kanagawa-wave-DLXZ_HFW.js → kanagawa-wave-CTweb8Dz.js} +0 -0
- /package/dist/client/assets/{kdl-MlO6iUnG.js → kdl-CsD5j6eV.js} +0 -0
- /package/dist/client/assets/{kotlin-Dugiuyzo.js → kotlin-DhhofPvG.js} +0 -0
- /package/dist/client/assets/{kusto-6Zx2e4iM.js → kusto-BUv0MjJC.js} +0 -0
- /package/dist/client/assets/{laserwave-Bms40fEM.js → laserwave-C_8bwKvT.js} +0 -0
- /package/dist/client/assets/{lean-BeI6HXzS.js → lean-CewbzKMR.js} +0 -0
- /package/dist/client/assets/{less-CgPeGWAa.js → less-DVTAwKKz.js} +0 -0
- /package/dist/client/assets/{light-plus-j7rlQ_-d.js → light-plus-DVQuIRkW.js} +0 -0
- /package/dist/client/assets/{llvm-Dw0AsrHc.js → llvm-Cm23YOpf.js} +0 -0
- /package/dist/client/assets/{log-9mP7MLA7.js → log-BNLmms1o.js} +0 -0
- /package/dist/client/assets/{logo-CEB74EGf.js → logo-Cluzi2Zq.js} +0 -0
- /package/dist/client/assets/{luau-C4m3ZsP4.js → luau-CNKltnaQ.js} +0 -0
- /package/dist/client/assets/{make-D05QTRNX.js → make-Dixweg8N.js} +0 -0
- /package/dist/client/assets/{markdown-UoFBNZst.js → markdown-BYOwaDjH.js} +0 -0
- /package/dist/client/assets/{material-theme-BLisqalJ.js → material-theme-Bm3Qr25_.js} +0 -0
- /package/dist/client/assets/{material-theme-darker-CMDfuiQ2.js → material-theme-darker-2IIEA8gg.js} +0 -0
- /package/dist/client/assets/{material-theme-lighter-CxAafT95.js → material-theme-lighter-uhdI0v04.js} +0 -0
- /package/dist/client/assets/{material-theme-ocean-B4-TfnzS.js → material-theme-ocean-CHQ94UKr.js} +0 -0
- /package/dist/client/assets/{material-theme-palenight-BiO5TPm2.js → material-theme-palenight-B5W6OYN7.js} +0 -0
- /package/dist/client/assets/{matlab-B1JUCa3X.js → matlab-D7qyCx1q.js} +0 -0
- /package/dist/client/assets/{mdx-5iivKtUB.js → mdx-DQZ5AkYe.js} +0 -0
- /package/dist/client/assets/{mermaid-e-18nCBH.js → mermaid-Bk4SNUv9.js} +0 -0
- /package/dist/client/assets/{min-dark-CwF0fYNT.js → min-dark-BSWPekZh.js} +0 -0
- /package/dist/client/assets/{min-light-DbuMCP1T.js → min-light-DDpmG2fV.js} +0 -0
- /package/dist/client/assets/{mipsasm-DcTRWKSO.js → mipsasm-BMqwQI7S.js} +0 -0
- /package/dist/client/assets/{mojo-DTlMyvmX.js → mojo-BgCJLMeH.js} +0 -0
- /package/dist/client/assets/{monokai-ShOh_SLr.js → monokai-CdkpiU2Y.js} +0 -0
- /package/dist/client/assets/{moonbit-Clq4Da-i.js → moonbit-CaWjb8XO.js} +0 -0
- /package/dist/client/assets/{move-Bl5q_pwm.js → move-B1IS1UjX.js} +0 -0
- /package/dist/client/assets/{narrat-CBsmOEAI.js → narrat-_X_XdTYD.js} +0 -0
- /package/dist/client/assets/{nextflow-groovy-aMR1iPI_.js → nextflow-groovy-Dc_ddanL.js} +0 -0
- /package/dist/client/assets/{night-owl-yTEb_Wwb.js → night-owl-DhmEMT88.js} +0 -0
- /package/dist/client/assets/{night-owl-light-huKGrUNo.js → night-owl-light-eJ-hLW7d.js} +0 -0
- /package/dist/client/assets/{nix-Cp796_WQ.js → nix-IvuFDN5E.js} +0 -0
- /package/dist/client/assets/{nord-DcX-wPJc.js → nord-Cb4Vim4T.js} +0 -0
- /package/dist/client/assets/{nushell-BfyhU0X_.js → nushell-DcLAeLz5.js} +0 -0
- /package/dist/client/assets/{objective-c-B4uJcreS.js → objective-c-D1A_Heim.js} +0 -0
- /package/dist/client/assets/{objective-cpp-jpQjhWST.js → objective-cpp-BsSzOQcm.js} +0 -0
- /package/dist/client/assets/{ocaml-Bd4ZvQW_.js → ocaml-O90oeIOV.js} +0 -0
- /package/dist/client/assets/{odin-CrrB9RSu.js → odin-B1RWQWA5.js} +0 -0
- /package/dist/client/assets/{one-dark-pro-CkQTfcfR.js → one-dark-pro-CLwyXe_n.js} +0 -0
- /package/dist/client/assets/{one-light-DThLWCfa.js → one-light-D7Lr4KcI.js} +0 -0
- /package/dist/client/assets/{openscad-D3TTqx3L.js → openscad-BUDT5pXO.js} +0 -0
- /package/dist/client/assets/{pairingUrl-BDy1QCMe.js → pairingUrl-rQM9kSGT.js} +0 -0
- /package/dist/client/assets/{pascal-DWfvzseC.js → pascal-4ZHwLPI5.js} +0 -0
- /package/dist/client/assets/{pierre-dark-DvfVJVsW.js → pierre-dark-PhHPzmGe.js} +0 -0
- /package/dist/client/assets/{pierre-light-B0eN5zia.js → pierre-light-DN22GkGi.js} +0 -0
- /package/dist/client/assets/{pkl-DdTB5XmH.js → pkl-ot-7Btpt.js} +0 -0
- /package/dist/client/assets/{plastic-B7VrxlmD.js → plastic-DQwYfKfQ.js} +0 -0
- /package/dist/client/assets/{plsql-BqXKIIPU.js → plsql-DGHpHOYJ.js} +0 -0
- /package/dist/client/assets/{po-C5lHU9KQ.js → po-BiJDBrnU.js} +0 -0
- /package/dist/client/assets/{poimandres-3PFzcj5x.js → poimandres-DRFjx7u4.js} +0 -0
- /package/dist/client/assets/{polar-C6NB-8j6.js → polar-C7UOKdEL.js} +0 -0
- /package/dist/client/assets/{postcss-vtVbFW0L.js → postcss-BXeXVLqQ.js} +0 -0
- /package/dist/client/assets/{powerquery-hquWt5c6.js → powerquery-DNMTfnFr.js} +0 -0
- /package/dist/client/assets/{powershell-CQ330hRP.js → powershell-DshXNtvi.js} +0 -0
- /package/dist/client/assets/{prisma-BQON8_gf.js → prisma-BsRQq5mF.js} +0 -0
- /package/dist/client/assets/{prolog-0b9P4dbF.js → prolog-iXnhIJG7.js} +0 -0
- /package/dist/client/assets/{proto-CLvr77Vf.js → proto-DB4EqR-F.js} +0 -0
- /package/dist/client/assets/{puppet-BT0t2Kuu.js → puppet-CDv2pdJW.js} +0 -0
- /package/dist/client/assets/{purescript-DkMvIExr.js → purescript-9MfHhQsQ.js} +0 -0
- /package/dist/client/assets/{python-wd06zWQV.js → python-gzcpVVnB.js} +0 -0
- /package/dist/client/assets/{qmldir-llhyId5r.js → qmldir-DCQb3MpD.js} +0 -0
- /package/dist/client/assets/{qss-CVMsEoHp.js → qss-Fe1Jh2GI.js} +0 -0
- /package/dist/client/assets/{racket-DBMp3jda.js → racket-DcIDlBhZ.js} +0 -0
- /package/dist/client/assets/{raku-BRxsLZ2S.js → raku-B3gFvitq.js} +0 -0
- /package/dist/client/assets/{red-qaVQBZPK.js → red-CJ3rzSJv.js} +0 -0
- /package/dist/client/assets/{reg-BDyfNUUq.js → reg-CRGYupPL.js} +0 -0
- /package/dist/client/assets/{rel-DdGqSVEp.js → rel-BtDbiS_P.js} +0 -0
- /package/dist/client/assets/{riscv-DV28q7Fg.js → riscv-Ckw8ddFX.js} +0 -0
- /package/dist/client/assets/{ron-CY4nyhYH.js → ron-VUp2lXgN.js} +0 -0
- /package/dist/client/assets/{rose-pine-CxNAz5gp.js → rose-pine-BthvhNj6.js} +0 -0
- /package/dist/client/assets/{rose-pine-dawn-xFu_N-rV.js → rose-pine-dawn-Dg85fqjY.js} +0 -0
- /package/dist/client/assets/{rose-pine-moon-DK-HvE6Y.js → rose-pine-moon-hon4tzzS.js} +0 -0
- /package/dist/client/assets/{rosmsg-K2kzuYs8.js → rosmsg-CAekHB0j.js} +0 -0
- /package/dist/client/assets/{rust-DZfNSAHN.js → rust-Cfkwpbl8.js} +0 -0
- /package/dist/client/assets/{sass-DIGpNETF.js → sass-DXrisJhu.js} +0 -0
- /package/dist/client/assets/{scala-Dm4xFcTl.js → scala-DKOlJaKm.js} +0 -0
- /package/dist/client/assets/{scheme-Dyo1jQfP.js → scheme-DQCgrYNe.js} +0 -0
- /package/dist/client/assets/{sdbl-C0HF5Szh.js → sdbl-bTVj8UrX.js} +0 -0
- /package/dist/client/assets/{slack-dark-jzjOs3ob.js → slack-dark-DnToyrRv.js} +0 -0
- /package/dist/client/assets/{slack-ochin-CrJIbU0m.js → slack-ochin-B2OO5cIa.js} +0 -0
- /package/dist/client/assets/{smalltalk-DD30vTCS.js → smalltalk-B16xEiuN.js} +0 -0
- /package/dist/client/assets/{snazzy-light-DWAW_zRS.js → snazzy-light-4G7pJPwS.js} +0 -0
- /package/dist/client/assets/{solarized-dark-QfOoX52e.js → solarized-dark-DV17i1UV.js} +0 -0
- /package/dist/client/assets/{solarized-light-3Q8bP0PY.js → solarized-light-DSh2HLQt.js} +0 -0
- /package/dist/client/assets/{solidity-DEXV1iYf.js → solidity-CKzVLygQ.js} +0 -0
- /package/dist/client/assets/{splunk-D3yrvsJB.js → splunk-BC2Px7Mm.js} +0 -0
- /package/dist/client/assets/{ssh-config-DJbT8CNv.js → ssh-config-BgfXC-Er.js} +0 -0
- /package/dist/client/assets/{stylus-D7yuZo8M.js → stylus-B6D30XZt.js} +0 -0
- /package/dist/client/assets/{swift-Dcka7tnA.js → swift-DonLKvLd.js} +0 -0
- /package/dist/client/assets/{synthwave-84-Cp0uE3e0.js → synthwave-84-nFMaYfgc.js} +0 -0
- /package/dist/client/assets/{system-verilog-0hmR2xuR.js → system-verilog-DJ5XKQeo.js} +0 -0
- /package/dist/client/assets/{systemd-JaNPzh8j.js → systemd-BxMlprV5.js} +0 -0
- /package/dist/client/assets/{talonscript-BPHMb4jr.js → talonscript-CohzipZa.js} +0 -0
- /package/dist/client/assets/{tasl-D07ubp53.js → tasl-DMoTqEGO.js} +0 -0
- /package/dist/client/assets/{tcl-DRL4sBMb.js → tcl-CZd0xW_V.js} +0 -0
- /package/dist/client/assets/{terraform-C8KioG9C.js → terraform-DswuEJGm.js} +0 -0
- /package/dist/client/assets/{tokyo-night-sVj4Hc0t.js → tokyo-night-oM2G3aXe.js} +0 -0
- /package/dist/client/assets/{toml-DOSf8MYV.js → toml-CcmNWLt0.js} +0 -0
- /package/dist/client/assets/{tsv-BpjyUJlf.js → tsv-sltzmVWM.js} +0 -0
- /package/dist/client/assets/{turtle-x_g5g_iY.js → turtle-ByJddavk.js} +0 -0
- /package/dist/client/assets/{typespec-Dfd73-vI.js → typespec-B88KGewJ.js} +0 -0
- /package/dist/client/assets/{typst-Dlb0aZU4.js → typst-DI99ib-x.js} +0 -0
- /package/dist/client/assets/{v-v-fvjFiX.js → v-DETTlOr0.js} +0 -0
- /package/dist/client/assets/{vala-D9-xQ00Z.js → vala-zf12oZj6.js} +0 -0
- /package/dist/client/assets/{vb-BReSiWNQ.js → vb-Djn5o6TS.js} +0 -0
- /package/dist/client/assets/{verilog-DfyNqRJD.js → verilog-CiiDBU1e.js} +0 -0
- /package/dist/client/assets/{vesper-Bv60RWju.js → vesper-D5bVUKB1.js} +0 -0
- /package/dist/client/assets/{vhdl-DbQyuq9g.js → vhdl-BroJfC0k.js} +0 -0
- /package/dist/client/assets/{viml-DhThL36t.js → viml-DvXPmvsu.js} +0 -0
- /package/dist/client/assets/{vitesse-black-CThrVPkw.js → vitesse-black-fwtXNY1n.js} +0 -0
- /package/dist/client/assets/{vitesse-dark-BrahNcrX.js → vitesse-dark-BZCL-v6S.js} +0 -0
- /package/dist/client/assets/{vitesse-light-BCKYomrh.js → vitesse-light-VbXTXTou.js} +0 -0
- /package/dist/client/assets/{vyper-e4AwrcSk.js → vyper-CgoNMtux.js} +0 -0
- /package/dist/client/assets/{wasm-Cia-w-S9.js → wasm-BnjxR4X6.js} +0 -0
- /package/dist/client/assets/{wasm-B1MrEdvT.js → wasm-ByWQv1Qj.js} +0 -0
- /package/dist/client/assets/{wenyan-CrxLlNlW.js → wenyan-C8pVoKbM.js} +0 -0
- /package/dist/client/assets/{wgsl-BpsXvExJ.js → wgsl-BsKzXJz4.js} +0 -0
- /package/dist/client/assets/{wikitext-C6XIgJ_Z.js → wikitext-ClFFjSW2.js} +0 -0
- /package/dist/client/assets/{wit-DkjXKZxQ.js → wit-DdvCle-K.js} +0 -0
- /package/dist/client/assets/{wolfram--3zV4S15.js → wolfram-DLL8P-h_.js} +0 -0
- /package/dist/client/assets/{zenscript-BLGtygmo.js → zenscript-BnlCZFoB.js} +0 -0
- /package/dist/client/assets/{zig-CaWWBKRf.js → zig-CMLA9XwU.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,t}from"./react-PSPkXoKo.js";import{t as n}from"./compiler-runtime-BNrXlsa1.js";import{Ct as r,Gt as i,_t as a,pt as o,rt as s}from"./environmentApi-BFHi_M02.js";import{Mi as c,a as ee,n as te}from"./composerDraftStore-xu3n5gdX.js";import{a as ne,i as re,l as ie,n as ae,r as l,s as oe,t as se}from"./ChatRightPanel-BJ_cVP66.js";import{t as ce}from"./useNavigate-B1qgM5mt.js";import{n as u}from"./threadRoutes-CfldSp4X.js";import{a as le,c as ue,n as de,o as fe,s as pe,t as me}from"./rightPanelRouteSearch-CTMFCS6R.js";import{b as he,o as ge}from"./sidebar-Bbdql7Af.js";import{D as _e}from"./settingsDialogStore-9vo22xKp.js";import{r as ve}from"./storeSelectors-DBRyhCGm.js";var ye=n(),d=e(t(),1),f=c();function p(e){let t=(0,ye.c)(133),{threadRef:n,search:c}=e,l=ce(),p;t[0]===n?.environmentId?p=t[1]:(p=e=>s(e,n?.environmentId??null).bootstrapComplete,t[0]=n?.environmentId,t[1]=p);let m=a(p),h;t[2]===n?h=t[3]:(h=ve(n),t[2]=n,t[3]=h);let Ce=a(h),we;t[4]===n?we=t[5]:(we=e=>o(e,n),t[4]=n,t[5]=we);let Te=a(we),Ee;t[6]===n?.environmentId?Ee=t[7]:(Ee=e=>s(e,n?.environmentId??null),t[6]=n?.environmentId,t[7]=Ee);let g=a(Ee),De=g.threadIds.length>0,Oe;t[8]===g?Oe=t[9]:(Oe=g.threadIds.flatMap(e=>{let t=r(g,e);return t?[t]:[]}),t[8]=g,t[9]=Oe);let ke=Oe,Ae=i(Se),je;t[10]===n?je=t[11]:(je=e=>n?e.getDraftThreadByRef(n)!==null:!1,t[10]=n,t[11]=je);let Me=ee(je),Ne;t[12]===n?Ne=t[13]:(Ne=e=>n?e.getDraftThreadByRef(n):null,t[12]=n,t[13]=Ne);let Pe=ee(Ne),Fe;t[14]===n?Fe=t[15]:(Fe=e=>n?e.hasDraftThreadsInEnvironment(n.environmentId):!1,t[14]=n,t[15]=Fe);let Ie=ee(Fe),_=Te||Me,v;t[16]===Ce?v=t[17]:(v=oe(Ce),t[16]=Ce,t[17]=v);let y=v,b=De||Ie,x=c.diff===`1`,S=c.preview===`1`,Le;t[18]===c?Le=t[19]:(Le=me(c),t[18]=c,t[19]=Le);let C=Le,Re;t[20]===c?Re=t[21]:(Re=de(c),t[20]=c,t[21]=Re);let w=Re,ze=he(ie),T=n?`${n.environmentId}:${n.threadId}`:null,E;t[22]!==T||t[23]!==x||t[24]!==S||t[25]!==C?(E=()=>({threadKey:T,hasOpenedDiff:x,hasOpenedPreview:S,hasOpenedTerminal:C===`terminal`}),t[22]=T,t[23]=x,t[24]=S,t[25]=C,t[26]=E):E=t[26];let[D,Be]=(0,d.useState)(E),O=D.threadKey===T?D.hasOpenedDiff:x,k=D.threadKey===T?D.hasOpenedPreview:S,A=D.threadKey===T?D.hasOpenedTerminal:C===`terminal`,j;t[27]===C?j=t[28]:(j=()=>C??`review`,t[27]=C,t[28]=j);let[M,Ve]=(0,d.useState)(j),N;t[29]!==O||t[30]!==k||t[31]!==A||t[32]!==C?(N=[],(k||C===`files`)&&N.push(`files`),(O||C===`review`)&&N.push(`review`),(A||C===`terminal`)&&N.push(`terminal`),t[29]=O,t[30]=k,t[31]=A,t[32]=C,t[33]=N):N=t[33];let P=N,F;t[34]!==T||t[35]!==x||t[36]!==S||t[37]!==C?(F=e=>{Ve(e),Be(t=>{let n={threadKey:T,hasOpenedDiff:(t.threadKey===T?t.hasOpenedDiff:x)||e===`review`,hasOpenedPreview:(t.threadKey===T?t.hasOpenedPreview:S)||e===`files`,hasOpenedTerminal:(t.threadKey===T?t.hasOpenedTerminal:C===`terminal`)||e===`terminal`};return t.threadKey===n.threadKey&&t.hasOpenedDiff===n.hasOpenedDiff&&t.hasOpenedPreview===n.hasOpenedPreview&&t.hasOpenedTerminal===n.hasOpenedTerminal?t:n})},t[34]=T,t[35]=x,t[36]=S,t[37]=C,t[38]=F):F=t[38];let I=F,L;t[39]!==l||t[40]!==n?(L=()=>{n&&l({to:`/$environmentId/$threadId`,params:u(n),search:xe})},t[39]=l,t[40]=n,t[41]=L):L=t[41];let R=L,z;t[42]!==O||t[43]!==k||t[44]!==A||t[45]!==M||t[46]!==l||t[47]!==n?(z=()=>{n&&l({to:`/$environmentId/$threadId`,params:u(n),search:e=>M===`files`&&k?le(e):M===`review`&&O?fe(e):M===`terminal`&&A?pe(e):k?le(e):O?fe(e):A?pe(e):ue(e)})},t[42]=O,t[43]=k,t[44]=A,t[45]=M,t[46]=l,t[47]=n,t[48]=z):z=t[48];let B=z,V;t[49]!==R||t[50]!==B||t[51]!==w?(V=()=>{if(w){R();return}B()},t[49]=R,t[50]=B,t[51]=w,t[52]=V):V=t[52];let H=V,He;t[53]!==T||t[54]!==O||t[55]!==k||t[56]!==A||t[57]!==l||t[58]!==C||t[59]!==n?(He=e=>{if(!n)return;if(e.mode===`agent`){C===`agent`&&l({to:`/$environmentId/$threadId`,params:u(n),search:be});return}let t=e.mode===`review`?!1:O||C===`review`,r=e.mode===`files`?!1:k||C===`files`,i=e.mode===`terminal`?!1:A||C===`terminal`;Be(e=>{let n={threadKey:T,hasOpenedDiff:t,hasOpenedPreview:r,hasOpenedTerminal:i};return e.threadKey===n.threadKey&&e.hasOpenedDiff===n.hasOpenedDiff&&e.hasOpenedPreview===n.hasOpenedPreview&&e.hasOpenedTerminal===n.hasOpenedTerminal?e:n}),C===e.mode&&l({to:`/$environmentId/$threadId`,params:u(n),search:n=>e.mode!==`files`&&r?le(n):e.mode!==`review`&&t?fe(n):e.mode!==`terminal`&&i?pe(n):ue(n)})},t[53]=T,t[54]=O,t[55]=k,t[56]=A,t[57]=l,t[58]=C,t[59]=n,t[60]=He):He=t[60];let U=He,Ue,We;t[61]!==I||t[62]!==C?(Ue=()=>{C!==null&&(Ve(C),I(C))},We=[I,C],t[61]=I,t[62]=C,t[63]=Ue,t[64]=We):(Ue=t[63],We=t[64]),(0,d.useEffect)(Ue,We);let Ge,Ke;t[65]!==m||t[66]!==b||t[67]!==ke||t[68]!==l||t[69]!==_||t[70]!==Ae||t[71]!==n?(Ge=()=>{if(!(!n||!m)&&!_&&b){let e=_e(ke,Ae)[0];l(e?{to:`/$environmentId/$threadId`,params:u({environmentId:e.environmentId,threadId:e.id}),replace:!0}:{to:`/`,replace:!0})}},Ke=[m,b,ke,l,_,Ae,n],t[65]=m,t[66]=b,t[67]=ke,t[68]=l,t[69]=_,t[70]=Ae,t[71]=n,t[72]=Ge,t[73]=Ke):(Ge=t[72],Ke=t[73]),(0,d.useEffect)(Ge,Ke);let qe;t[74]!==Pe?.promotedTo||t[75]!==y||t[76]!==n?(qe=()=>{!n||!y||!Pe?.promotedTo||te(n)},t[74]=Pe?.promotedTo,t[75]=y,t[76]=n,t[77]=qe):qe=t[77];let Je=Pe?.promotedTo,Ye;if(t[78]!==y||t[79]!==Je||t[80]!==n?(Ye=[Je,y,n],t[78]=y,t[79]=Je,t[80]=n,t[81]=Ye):Ye=t[81],(0,d.useEffect)(qe,Ye),!n||!m||!_)return null;let W=w||C===`review`||O||C===`files`||k||C===`terminal`||A||C===`agent`,G=w?C:M;if(!ze){let e,r,i,a;t[82]===I?(e=t[83],r=t[84],i=t[85],a=t[86]):(e=()=>I(`review`),r=()=>I(`files`),i=()=>I(`terminal`),a=()=>I(`agent`),t[82]=I,t[83]=e,t[84]=r,t[85]=i,t[86]=a);let o;t[87]!==w||t[88]!==e||t[89]!==r||t[90]!==i||t[91]!==a||t[92]!==n.environmentId||t[93]!==n.threadId||t[94]!==H?(o=(0,f.jsx)(ge,{className:`h-svh min-h-0 overflow-hidden overscroll-y-none bg-background text-foreground md:h-dvh`,children:(0,f.jsx)(re,{environmentId:n.environmentId,threadId:n.threadId,onDiffPanelOpen:e,onPreviewPanelOpen:r,onTerminalPanelOpen:i,onAgentPanelOpen:a,workspacePanelOpen:w,onToggleWorkspacePanel:H,routeKind:`server`})}),t[87]=w,t[88]=e,t[89]=r,t[90]=i,t[91]=a,t[92]=n.environmentId,t[93]=n.threadId,t[94]=H,t[95]=o):o=t[95];let s;t[96]!==U||t[97]!==R||t[98]!==G||t[99]!==B||t[100]!==P||t[101]!==w||t[102]!==W?(s=(0,f.jsx)(ae,{open:w,panelMode:G,openedPanelModes:P,onClosePanelTab:U,onClose:R,onOpen:B,renderContent:W}),t[96]=U,t[97]=R,t[98]=G,t[99]=B,t[100]=P,t[101]=w,t[102]=W,t[103]=s):s=t[103];let c;return t[104]!==o||t[105]!==s?(c=(0,f.jsxs)(f.Fragment,{children:[o,s]}),t[104]=o,t[105]=s,t[106]=c):c=t[106],c}let K,q,J,Y;t[107]===I?(K=t[108],q=t[109],J=t[110],Y=t[111]):(K=()=>I(`review`),q=()=>I(`files`),J=()=>I(`terminal`),Y=()=>I(`agent`),t[107]=I,t[108]=K,t[109]=q,t[110]=J,t[111]=Y);let X;t[112]!==w||t[113]!==K||t[114]!==q||t[115]!==J||t[116]!==Y||t[117]!==n.environmentId||t[118]!==n.threadId||t[119]!==H?(X=(0,f.jsx)(ge,{className:`h-svh min-h-0 overflow-hidden overscroll-y-none bg-background text-foreground md:h-dvh`,children:(0,f.jsx)(re,{environmentId:n.environmentId,threadId:n.threadId,onDiffPanelOpen:K,onPreviewPanelOpen:q,onTerminalPanelOpen:J,onAgentPanelOpen:Y,workspacePanelOpen:w,onToggleWorkspacePanel:H,routeKind:`server`})}),t[112]=w,t[113]=K,t[114]=q,t[115]=J,t[116]=Y,t[117]=n.environmentId,t[118]=n.threadId,t[119]=H,t[120]=X):X=t[120];let Z;t[121]!==U||t[122]!==G||t[123]!==P||t[124]!==W?(Z=W?(0,f.jsx)(se,{mode:`sheet`,panelMode:G,openedPanelModes:P,onClosePanelTab:U}):null,t[121]=U,t[122]=G,t[123]=P,t[124]=W,t[125]=Z):Z=t[125];let Q;t[126]!==R||t[127]!==w||t[128]!==Z?(Q=(0,f.jsx)(ne,{open:w,onClose:R,children:Z}),t[126]=R,t[127]=w,t[128]=Z,t[129]=Q):Q=t[129];let $;return t[130]!==X||t[131]!==Q?($=(0,f.jsxs)(f.Fragment,{children:[X,Q]}),t[130]=X,t[131]=Q,t[132]=$):$=t[132],$}function be(e){return ue(e)}function xe(e){return l(e)}function Se(e){return e.sidebarThreadSortOrder}export{p as ChatThreadRouteView};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,t}from"./react-PSPkXoKo.js";import{t as n}from"./compiler-runtime-BNrXlsa1.js";import{ma as r,no as i,ro as a}from"./react-CjD7iThp.js";import{$t as o,A as s,At as c,Bt as l,C as u,D as d,E as ee,F as te,Gt as ne,M as re,N as ie,Nt as ae,O as oe,P as se,T as ce,_ as le,_t as ue,at as de,j as fe,jt as pe,k as me,n as he,ot as ge,w as _e,zt as ve}from"./environmentApi-BFHi_M02.js";import{Ci as ye,Fr as f,G as be,H as xe,Ir as Se,Lr as Ce,Mi as p,Nr as we,Oi as m,Rr as Te,U as Ee,V as De,Vr as Oe,sa as ke,ua as Ae}from"./composerDraftStore-xu3n5gdX.js";import{n as je}from"./QueryClientProvider-BZxRKpeb.js";import{An as Me,Cn as Ne,En as Pe,In as Fe,Mn as Ie,Nn as h,On as Le,Pn as Re,Qt as ze,Un as g,Yn as Be,dn as _,er as Ve,in as v,jn as He,kn as y,ln as Ue,or as We,rn as b,sn as x,vr as S,wn as Ge,xr as Ke,yr as qe}from"./providerIconUtils-Ch6hejVW.js";import{t as Je}from"./useNavigate-B1qgM5mt.js";import{n as Ye}from"./threadRoutes-CfldSp4X.js";import{C as Xe,n as C,t as w,w as Ze}from"./kbd-Dd57M8OY.js";import{a as T,i as E}from"./toast-DE-WwLMa.js";import{c as D,n as Qe,r as $e}from"./ThreadStatusIndicators-M9FWDEex.js";import{i as et,n as tt,r as nt}from"./chatThreadActions--n7v5mnB.js";import{a as rt,s as it}from"./BranchToolbar.logic-Di2EkKiO.js";import{t as O}from"./commandPaletteStore-oFMPKPmp.js";import{i as at,r as ot}from"./primary-CSkhdakK.js";import{D as st,E as ct,t as lt}from"./settingsDialogStore-9vo22xKp.js";import{t as ut}from"./useHandleNewThread-DOPZAFqE.js";import{g as k}from"./keybindings--G1bkIjA.js";import{t as dt}from"./ProjectFavicon-j9IX_7-B.js";var ft=m(`corner-left-up`,[[`path`,{d:`M14 9 9 4 4 9`,key:`1af5af`}],[`path`,{d:`M20 20h-7a4 4 0 0 1-4-4V4`,key:`1blwi3`}]]),pt=m(`folder-symlink`,[[`path`,{d:`M2 9.35V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h7`,key:`y8kt7d`}],[`path`,{d:`m8 16 3-3-3-3`,key:`rlqrt1`}]]),A=e(t(),1),j=n(),M=`size-4 text-muted-foreground/80`,N=`size-4`;function P(e){return e.isAlias?`browse:alias:${e.name}:${e.fullPath}`:`browse:${e.fullPath}`}function mt(e){let t=e.browseFilterQuery.toLowerCase(),n=e.browseFilterQuery.startsWith(`.`),r=e.browseEntries.filter(e=>e.name.toLowerCase().startsWith(t)&&(n||!e.name.startsWith(`.`))),i=null,a=e.highlightedItemValue;a&&a.startsWith(`browse:`)&&(i=r.find(e=>P(e)===a)??null);let o=e.browseFilterQuery.length>0?r.find(t=>t.name===e.browseFilterQuery)??null:null;return{filteredEntries:r,highlightedEntry:i,exactEntry:o}}function ht(e){return e.trim().toLowerCase().replace(/\s+/g,` `)}function gt(e){return e.projects.map(t=>({kind:`action`,value:`${e.valuePrefix}:${t.environmentId}:${t.id}`,searchTerms:[t.name,t.cwd],title:t.name,description:t.cwd,icon:e.icon(t),run:async()=>{await e.runProject(t)}}))}function _t(e){let t=st(e.threads.filter(e=>e.archivedAt===null),e.sortOrder);return(e.limit===void 0?t:t.slice(0,e.limit)).map(t=>{let n=e.projectTitleById.get(t.projectId),r=[];n&&r.push(n),t.branch&&r.push(`#${t.branch}`),t.id===e.activeThreadId&&r.push(`Current thread`);let i=e.renderLeadingContent?.(t),a=e.renderTrailingContent?.(t);return Object.assign({kind:`action`,value:`thread:${t.id}`,searchTerms:[t.title,n??``,t.branch??``],title:t.title,description:r.join(` · `),timestamp:g(t.latestUserMessageAt??t.updatedAt??t.createdAt),icon:e.icon},i?{titleLeadingContent:i}:{},a?{titleTrailingContent:a}:{},{run:async()=>{await e.runThread(t)}})})}function F(e,t){let n=ht(e);return n.length===0||!n.includes(t)?-1/0:n===t?3:n.startsWith(t)?2:1}function vt(e,t){let n=e.searchTerms.filter(e=>e.length>0);if(n.length===0)return 0;for(let[e,r]of n.entries()){let n=F(r,t);if(n!==-1/0)return 1e3-e*100+n}return 0}function yt(e){let t=e.query.startsWith(`>`),n=ht(t?e.query.slice(1):e.query);if(n.length===0)return t?e.activeGroups.filter(e=>e.value===`actions`):[...e.activeGroups];let r=[...e.activeGroups];t?r=r.filter(e=>e.value===`actions`):e.isInSubmenu||(r=r.filter(e=>e.value!==`recent-threads`));let i=[...r];return!e.isInSubmenu&&!t&&(e.projectSearchItems.length>0&&i.push({value:`projects-search`,label:`Projects`,items:e.projectSearchItems}),e.threadSearchItems.length>0&&i.push({value:`threads-search`,label:`Threads`,items:e.threadSearchItems})),i.flatMap(e=>{let t=e.items.map((e,t)=>ht(e.searchTerms.join(` `)).includes(n)?{item:e,index:t,rank:vt(e,n)}:null).filter(e=>e!==null).toSorted((e,t)=>t.rank-e.rank||e.index-t.index).map(e=>e.item);return t.length===0?[]:[{value:e.value,label:e.label,items:t}]})}function bt(e){let t=[];e.canBrowseUp&&t.push({kind:`action`,value:`browse:up`,searchTerms:[e.browseQuery,`..`],title:`..`,icon:e.upIcon,keepOpen:!0,run:async()=>{e.browseUp()}});for(let n of e.browseEntries)t.push({kind:`action`,value:P(n),searchTerms:[e.browseQuery,n.fullPath,n.name],title:n.name,icon:n.isSymlink?e.symlinkIcon:e.directoryIcon,keepOpen:!0,run:async()=>{n.isAlias?e.browseToPath(n.fullPath):e.browseTo(n.name)}});return[{value:`directories`,label:`Directories`,items:t}]}function xt(e){return e.currentView?e.isBrowsing?`submenu-browse`:`submenu`:e.isBrowsing?`root-browse`:`root`}function St(e){let t=[];return e.actionItems.length>0&&t.push({value:`actions`,label:`Actions`,items:e.actionItems}),e.recentThreadItems.length>0&&t.push({value:`recent-threads`,label:`Recent Threads`,items:e.recentThreadItems}),t}function Ct(e){switch(e){case`root`:return`Search commands, projects, and threads...`;case`root-browse`:return`Enter project path (e.g. ~/projects/my-app)`;case`submenu`:return`Search...`;case`submenu-browse`:return`Enter path (e.g. ~/projects/my-app)`}}var I=p();function wt(e){let t=(0,j.c)(13);if(e.groups.length===0){let n=e.emptyStateMessage??(e.isActionsOnly?`No matching actions.`:`No matching commands, projects, or threads.`),r;return t[0]===n?r=t[1]:(r=(0,I.jsx)(`div`,{className:`py-10 text-center text-sm text-muted-foreground`,children:n}),t[0]=n,t[1]=r),r}let n;if(t[2]!==e.groups||t[3]!==e.highlightedItemValue||t[4]!==e.keybindings||t[5]!==e.onExecuteItem){let r;t[7]!==e.highlightedItemValue||t[8]!==e.keybindings||t[9]!==e.onExecuteItem?(r=t=>(0,I.jsxs)(y,{items:t.items,children:[(0,I.jsx)(Me,{children:t.label}),(0,I.jsx)(Ge,{children:t=>t.disabled?(0,I.jsx)(Tt,{item:t},t.value):(0,I.jsx)(L,{item:t,keybindings:e.keybindings,isActive:e.highlightedItemValue===t.value,onExecuteItem:e.onExecuteItem},t.value)})]},t.value),t[7]=e.highlightedItemValue,t[8]=e.keybindings,t[9]=e.onExecuteItem,t[10]=r):r=t[10],n=e.groups.map(r),t[2]=e.groups,t[3]=e.highlightedItemValue,t[4]=e.keybindings,t[5]=e.onExecuteItem,t[6]=n}else n=t[6];let r;return t[11]===n?r=t[12]:(r=(0,I.jsx)(h,{children:n}),t[11]=n,t[12]=r),r}function Tt(e){let t=(0,j.c)(8),n;t[0]!==e.item.description||t[1]!==e.item.title||t[2]!==e.item.titleLeadingContent?(n=e.item.description?(0,I.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,I.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1.5 text-sm text-foreground`,children:[e.item.titleLeadingContent,(0,I.jsx)(`span`,{className:`truncate`,children:e.item.title})]}),(0,I.jsx)(`span`,{className:`truncate text-muted-foreground/70 text-xs`,children:e.item.description})]}):(0,I.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-center gap-1.5 text-sm text-foreground`,children:[e.item.titleLeadingContent,(0,I.jsx)(`span`,{className:`truncate`,children:e.item.title})]}),t[0]=e.item.description,t[1]=e.item.title,t[2]=e.item.titleLeadingContent,t[3]=n):n=t[3];let r;return t[4]!==e.item.icon||t[5]!==e.item.titleTrailingContent||t[6]!==n?(r=(0,I.jsxs)(`div`,{className:`flex min-h-8 select-none items-center gap-2 rounded-sm px-2 py-1.5 text-base opacity-64 sm:min-h-7 sm:text-sm`,children:[e.item.icon,n,e.item.titleTrailingContent]}),t[4]=e.item.icon,t[5]=e.item.titleTrailingContent,t[6]=n,t[7]=r):r=t[7],r}function L(e){let t=(0,j.c)(27),n;t[0]!==e.item.shortcutCommand||t[1]!==e.keybindings?(n=e.item.shortcutCommand?k(e.keybindings,e.item.shortcutCommand):null,t[0]=e.item.shortcutCommand,t[1]=e.keybindings,t[2]=n):n=t[2];let r=n,i=e.item.value,a=e.isActive&&`bg-accent! text-accent-foreground!`,o;t[3]===a?o=t[4]:(o=f(`cursor-pointer gap-2 hover:bg-transparent hover:text-inherit data-highlighted:bg-transparent data-highlighted:text-inherit data-selected:bg-transparent data-selected:text-inherit [&[data-highlighted][data-selected]]:bg-transparent [&[data-highlighted][data-selected]]:text-inherit`,a),t[3]=a,t[4]=o);let s;t[5]===e?s=t[6]:(s=()=>{e.onExecuteItem(e.item)},t[5]=e,t[6]=s);let c;t[7]!==e.item.description||t[8]!==e.item.title||t[9]!==e.item.titleLeadingContent?(c=e.item.description?(0,I.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,I.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1.5 text-sm text-foreground`,children:[e.item.titleLeadingContent,(0,I.jsx)(`span`,{className:`truncate`,children:e.item.title})]}),(0,I.jsx)(`span`,{className:`truncate text-muted-foreground/70 text-xs`,children:e.item.description})]}):(0,I.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-center gap-1.5 text-sm text-foreground`,children:[e.item.titleLeadingContent,(0,I.jsx)(`span`,{className:`truncate`,children:e.item.title})]}),t[7]=e.item.description,t[8]=e.item.title,t[9]=e.item.titleLeadingContent,t[10]=c):c=t[10];let l;t[11]===e.item.timestamp?l=t[12]:(l=e.item.timestamp?(0,I.jsx)(`span`,{className:`min-w-12 shrink-0 text-right text-[10px] tabular-nums text-muted-foreground/70`,children:e.item.timestamp}):null,t[11]=e.item.timestamp,t[12]=l);let u;t[13]===r?u=t[14]:(u=r?(0,I.jsx)(Fe,{children:r}):null,t[13]=r,t[14]=u);let d;t[15]===e.item.kind?d=t[16]:(d=e.item.kind===`submenu`?(0,I.jsx)(S,{className:`ml-auto size-4 shrink-0 text-muted-foreground/50`}):null,t[15]=e.item.kind,t[16]=d);let ee;return t[17]!==e.item.icon||t[18]!==e.item.titleTrailingContent||t[19]!==e.item.value||t[20]!==o||t[21]!==s||t[22]!==c||t[23]!==l||t[24]!==u||t[25]!==d?(ee=(0,I.jsxs)(Ie,{value:i,className:o,onMouseDown:R,onClick:s,children:[e.item.icon,c,e.item.titleTrailingContent,l,u,d]}),t[17]=e.item.icon,t[18]=e.item.titleTrailingContent,t[19]=e.item.value,t[20]=o,t[21]=s,t[22]=c,t[23]=l,t[24]=u,t[25]=d,t[26]=ee):ee=t[26],ee}function R(e){e.preventDefault()}var Et=[],Dt=3e4;function Ot(e){return Se(e)?`Finder`:Ce(e)?`Explorer`:`Files`}function kt(e){return e===`windows`?`Win32`:e===`darwin`?`MacIntel`:e===`linux`?`Linux`:typeof navigator>`u`?``:navigator.platform}var At=[`url`,`github`,`gitlab`,`forgejo`,`bitbucket`,`azure-devops`],jt=[`github`,`gitlab`,`forgejo`,`bitbucket`,`azure-devops`];function Mt(e){switch(e){case`github`:return`GitHub`;case`gitlab`:return`GitLab`;case`forgejo`:return`Forgejo`;case`bitbucket`:return`Bitbucket`;case`azure-devops`:return`Azure DevOps`;case`url`:return`Git URL`}}function Nt(e){switch(e){case`github`:return`owner/repo`;case`gitlab`:return`group/project`;case`forgejo`:return`owner/repo`;case`bitbucket`:return`workspace/repository`;case`azure-devops`:return`project/repository`;case`url`:return`URL`}}function Pt(e){return e===`url`?null:e}function z(e,t){switch(e){case`github`:return(0,I.jsx)(Ue,{className:t});case`gitlab`:return(0,I.jsx)(_,{className:t});case`forgejo`:return(0,I.jsx)(x,{className:t});case`bitbucket`:return(0,I.jsx)(v,{className:t});case`azure-devops`:return(0,I.jsx)(b,{className:t});case`url`:return(0,I.jsx)(et,{className:t})}}function Ft(e){return!e||e.step===`confirm`?null:e.source===`url`?`Enter Git clone URL`:`Enter ${Mt(e.source)} repository (${Nt(e.source)})`}function It(e){return e.split(`/`).at(-1)?.trim()??e}function Lt(e){return`remote-repository:${e.provider}:${encodeURIComponent(e.nameWithOwner)}`}function Rt(e,t){return e===`bitbucket`?t.url:t.sshUrl}function zt(e){return!e.includes(`/`)&&!e.includes(`:`)}function Bt(e){return e===`url`?null:e}function Vt(e){return jt.toSorted((t,n)=>{let r=e[t].ready;return r===e[n].ready?Mt(t).localeCompare(Mt(n)):r?-1:1})}function Ht(e){let t={ready:!1,hint:`Provider status unavailable. Open Settings -> Source Control and rescan.`},n={url:{ready:!0,hint:null},github:t,gitlab:t,forgejo:t,bitbucket:t,"azure-devops":t};if(!e)return n;let i=new Map(e.sourceControlProviders.map(e=>[e.kind,e])),a={...n};for(let e of At){let n=Bt(e);if(!n)continue;let o=i.get(n);if(!o){a[e]=t;continue}if(o.status!==`available`){a[e]={ready:!1,hint:o.installHint};continue}if(o.auth.status===`unauthenticated`){a[e]={ready:!1,hint:r(o.auth.detail)??`${o.label} is not authenticated. Open Settings -> Source Control for setup guidance.`};continue}a[e]={ready:!0,hint:null}}return a}function Ut(e){return e instanceof Error&&e.message.trim().length>0?e.message:`An error occurred.`}function Wt(){let e=(0,j.c)(5),t=O(Gt),n=O(B),r,i;e[0]===n?(r=e[1],i=e[2]):(r=()=>()=>{n(!1)},i=[n],e[0]=n,e[1]=r,e[2]=i),(0,A.useEffect)(r,i);let a;return e[3]===t?a=e[4]:(a=t?(0,I.jsx)(Kt,{}):null,e[3]=t,e[4]=a),a}function B(e){return e.setOpen}function Gt(e){return e.open}function Kt(){let e=Je(),t=O(e=>e.setOpen),n=O(e=>e.openIntent),r=O(e=>e.clearOpenIntent),Ce=ze(),[p,m]=(0,A.useState)(``),Me=(0,A.useDeferredValue)(p),Fe=Me.startsWith(`>`),Ie=je(),[h,g]=(0,A.useState)(null),_=ne(),{activeDraftThread:v,activeThread:y,defaultProjectRef:Ue,handleNewThread:b}=ut(),x=ue(ye(de)),S=ue(ye(ge)),Ge=o(),[et,st]=(0,A.useState)([]),k=et.at(-1)??null,[j,P]=(0,A.useState)(0),[ht,F]=(0,A.useState)(null),[vt,Tt]=(0,A.useState)(!1),[L,R]=(0,A.useState)(null),[At,jt]=(0,A.useState)(!1),[Bt,Wt]=(0,A.useState)(!1),B=at(),Gt=ot()?.label??null,Kt=c(e=>e.byId),V=pe(e=>e.byId),qt=(0,A.useMemo)(()=>{let e=[],t=new Set;B&&(t.add(B),e.push({environmentId:B,label:rt({isPrimary:!0,environmentId:B,runtimeLabel:Gt}),isPrimary:!0}));for(let n of Object.values(Kt)){if(t.has(n.environmentId))continue;let r=V[n.environmentId];e.push({environmentId:n.environmentId,label:rt({isPrimary:!1,environmentId:n.environmentId,runtimeLabel:r?.descriptor?.label??null,savedLabel:n.label}),isPrimary:!1})}return e.sort((e,t)=>e.isPrimary===t.isPrimary?e.label.localeCompare(t.label):e.isPrimary?-1:1),e},[B,Gt,Kt,V]),Jt=qt[0]?.environmentId??null,H=ht??Jt,Yt=(0,A.useMemo)(()=>kt(H&&B&&H===B?ot()?.platform.os??null:H?V[H]?.descriptor?.platform.os??V[H]?.serverConfig?.environment.platform.os??null:null),[H,B,V]),Xt=L!==null,Zt=L?.step===`repository`,U=Zt&&L?Pt(L.source):null,W=Zt?Me.trim():``,G=Ke({queryKey:[`source-control`,`repository-search`,L?.step===`repository`?L.environmentId:null,U,W],queryFn:async()=>{if(L?.step!==`repository`||U!==`bitbucket`||L.source===`url`)throw Error(`Repository search is not available for this source.`);let e=he(L.environmentId);if(!e)throw Error(`Environment API is not available.`);return e.sourceControl.searchRepositories({provider:U,...W.length>0?{query:W}:{},limit:25})},enabled:L?.step===`repository`&&L.source!==`url`&&U===`bitbucket`,staleTime:3e4}),K=!Zt&&re(p,Yt),Qt=xt({currentView:k,isBrowsing:K}),$t=(0,A.useCallback)(e=>{let t=(e&&B&&e===B?_:e?V[e]?.serverConfig?.settings:null)?.addProjectBaseDirectory?.trim()??``;return t.length===0?`~/`:ce(t)},[B,V,_]),en=(0,A.useMemo)(()=>new Map(x.map(e=>[e.id,e.cwd])),[x]),tn=(0,A.useMemo)(()=>new Map(x.map(e=>[e.id,e.name])),[x]),nn=y?.id,rn=y?.environmentId??v?.environmentId??null,an=y?.projectId??v?.projectId??null,on=an?en.get(an)??null:null,q=H&&rn===H?on:null,J=te(p.trim())&&q===null,Y=K?d(p):``,sn=K&&!s(p)?oe(p):``,cn=(0,A.useCallback)(async e=>{if(!H)return null;let t=he(H);return t?t.filesystem.browse({partialPath:e,...q?{cwd:q}:{}}):null},[H,q]),{data:X,isPending:ln}=Ke({queryKey:[`filesystemBrowse`,H,Y,q],queryFn:()=>cn(Y),staleTime:Dt,enabled:K&&Y.length>0&&H!==null&&!J}),un=X?.entries??Et,{filteredEntries:dn,exactEntry:fn}=(0,A.useMemo)(()=>mt({browseEntries:un,browseFilterQuery:sn,highlightedItemValue:h}),[un,sn,h]),pn=(0,A.useCallback)(e=>{Ie.prefetchQuery({queryKey:[`filesystemBrowse`,H,e,q],queryFn:()=>cn(e),staleTime:Dt})},[H,q,cn,Ie]);(0,A.useEffect)(()=>{K&&_e(p)&&pn(me(p))},[K,pn,p]);let mn=(0,A.useMemo)(()=>async t=>{De.getState().setProjectExpanded(le(t,_),!0);let n=ct(S.filter(e=>e.environmentId===t.environmentId),t.id,_.sidebarThreadSortOrder);if(n){await e({to:`/$environmentId/$threadId`,params:Ye(a(n.environmentId,n.id))});return}await b(i(t.environmentId,t.id),{envMode:_.defaultThreadEnvMode})},[b,e,_,S]),hn=(0,A.useMemo)(()=>gt({projects:x,valuePrefix:`project`,icon:e=>(0,I.jsx)(dt,{environmentId:e.environmentId,cwd:e.cwd,projectId:e.id,customAvatarContentHash:e.customAvatarContentHash??null,className:M}),runProject:mn}),[mn,x]),gn=(0,A.useMemo)(()=>gt({projects:x,valuePrefix:`new-thread-in`,icon:e=>(0,I.jsx)(dt,{environmentId:e.environmentId,cwd:e.cwd,projectId:e.id,customAvatarContentHash:e.customAvatarContentHash??null,className:M}),runProject:async e=>{await nt({activeDraftThread:v,activeThread:y,defaultProjectRef:Ue,defaultThreadEnvMode:_.defaultThreadEnvMode,handleNewThread:b},i(e.environmentId,e.id))}}),[v,y,Ue,b,x,_.defaultThreadEnvMode]),_n=(0,A.useMemo)(()=>_t({threads:S,...nn?{activeThreadId:nn}:{},projectTitleById:tn,sortOrder:_.sidebarThreadSortOrder,icon:(0,I.jsx)(Ve,{className:M}),renderLeadingContent:e=>(0,I.jsx)(Qe,{thread:e}),renderTrailingContent:e=>(0,I.jsx)($e,{thread:e}),runThread:async t=>{await e({to:`/$environmentId/$threadId`,params:Ye(a(t.environmentId,t.id))})}}),[nn,e,tn,_.sidebarThreadSortOrder,S]),vn=_n.slice(0,12);function Z(e){st(t=>[...t,{addonIcon:e.addonIcon,groups:e.groups,...e.initialQuery?{initialQuery:e.initialQuery}:{}}]),g(null),m(e.initialQuery??``)}function yn(e){Z({addonIcon:e.addonIcon,groups:e.groups,...e.initialQuery?{initialQuery:e.initialQuery}:{}})}function bn(){R(null),et.length<=1&&F(null),st(e=>e.slice(0,-1)),g(null),m(``)}function xn(e){g(null),m(e),e===``&&k?.initialQuery&&bn()}let Sn=(0,A.useCallback)(e=>{F(e),R(null),Z({addonIcon:(0,I.jsx)(D,{className:N}),groups:[],initialQuery:$t(e)})},[$t]),Cn=(0,A.useCallback)((e,t)=>{F(e),R({step:`repository`,environmentId:e,source:t}),Z({addonIcon:z(t,N),groups:[],initialQuery:``})},[]),wn=lt(e=>e.openSettings),Tn=(0,A.useCallback)(()=>{t(!1),wn(`source-control`)},[wn,t]),En=(0,A.useCallback)((e,t)=>{let n=[{kind:`action`,value:`action:add-project:${e}:local`,searchTerms:[`local`,`folder`,`directory`,`browse`],title:`Local folder`,description:`Browse a folder on disk`,icon:(0,I.jsx)(D,{className:M}),keepOpen:!0,run:async()=>{Sn(e)}}],r=[`url`,...Vt(t)];for(let i of r){let r=Mt(i),a=i===`url`?`Git URL`:`${r} repository`,o=i===`url`?`Clone from a remote URL`:`Clone ${r} ${Nt(i)}`,s=t[i],c=s.hint,l=s.ready?void 0:(0,I.jsx)(`span`,{className:`ml-auto`,children:(0,I.jsxs)(xe,{children:[(0,I.jsx)(be,{render:(0,I.jsx)(we,{variant:`outline`,size:`xs`,className:`h-5 rounded-sm px-1.5 text-[10px] text-warning-foreground`,onClick:()=>{Tn()},children:`Setup Required`})}),(0,I.jsx)(Ee,{align:`end`,side:`left`,children:c??`Open Settings -> Source Control to configure this provider.`})]})});if(!s.ready){n.push({kind:`action`,value:`action:add-project:${e}:${i}:not-ready`,searchTerms:[`clone`,`remote`,`repository`,`repo`,`git`,r,`setup required`],title:a,description:o,disabled:!0,icon:z(i,M),...l?{titleTrailingContent:l}:{},run:async()=>{}});continue}n.push({kind:`action`,value:`action:add-project:${e}:${i}`,searchTerms:[`clone`,`remote`,`repository`,`repo`,`git`,r],title:a,description:o,icon:z(i,M),...l?{titleTrailingContent:l}:{},keepOpen:!0,run:async()=>{Cn(e,i)}})}return[{value:`sources:${e}`,label:`Sources`,items:n}]},[Tn,Sn,Cn]),Dn=(0,A.useCallback)(e=>{F(e),R(null);let t={environmentId:e},n=ve(t).data;Z({addonIcon:(0,I.jsx)(D,{className:N}),groups:En(e,Ht(n))}),l(t).then(t=>{st(n=>n.at(-1)?.groups[0]?.value===`sources:${e}`?[...n.slice(0,-1),{addonIcon:(0,I.jsx)(D,{className:N}),groups:En(e,Ht(t))}]:n)})},[En]),On=qt.map(e=>({kind:`action`,value:`action:add-project:environment:${e.environmentId}`,searchTerms:[e.label,e.environmentId,e.isPrimary?`this device`:``],title:e.label,description:e.isPrimary?`This device`:e.environmentId,icon:(0,I.jsx)(D,{className:M}),keepOpen:!0,run:async()=>{Dn(e.environmentId)}})),kn=(0,A.useMemo)(()=>[{value:`environments`,label:`Environments`,items:On}],[On]),An=(0,A.useCallback)(()=>{if(qt.length>1){Z({addonIcon:(0,I.jsx)(D,{className:N}),groups:kn});return}let e=Jt;if(!e){E.add(T({type:`error`,title:`Unable to browse projects`,description:`No environment is available.`}));return}Dn(e)},[kn,qt.length,Jt,Dn]);(0,A.useLayoutEffect)(()=>{n?.kind===`add-project`&&(r(),An())},[r,An,n]);let jn=[];if(x.length>0){let e=an?tn.get(an)??null:null;e&&jn.push({kind:`action`,value:`action:new-thread`,searchTerms:[`new thread`,`chat`,`create`,`draft`],title:(0,I.jsxs)(I.Fragment,{children:[`New thread in `,(0,I.jsx)(`span`,{className:`font-semibold`,children:e})]}),icon:(0,I.jsx)(it,{className:M}),shortcutCommand:`chat.new`,run:async()=>{await tt({activeDraftThread:v,activeThread:y,defaultProjectRef:Ue,defaultThreadEnvMode:_.defaultThreadEnvMode,handleNewThread:b})}}),jn.push({kind:`submenu`,value:`action:new-thread-in`,searchTerms:[`new thread`,`project`,`pick`,`choose`,`select`],title:`New thread in...`,icon:(0,I.jsx)(it,{className:M}),addonIcon:(0,I.jsx)(it,{className:N}),groups:[{value:`projects`,label:`Projects`,items:gn}]})}jn.push({kind:`action`,value:`action:add-project`,searchTerms:[`add project`,`folder`,`directory`,`browse`,`clone`,`remote`,`repository`,`repo`,`git`,`github`,`gitlab`,`forgejo`,`codeberg`,`bitbucket`,`azure`,`devops`,`url`,`environment`],title:`Add project`,icon:(0,I.jsx)(D,{className:M}),keepOpen:!0,run:async()=>{An()}}),jn.push({kind:`action`,value:`action:settings`,searchTerms:[`settings`,`preferences`,`configuration`,`keybindings`],title:`Open settings`,icon:(0,I.jsx)(Be,{className:M}),run:async()=>{t(!1),wn()}});let Mn=St({actionItems:jn,recentThreadItems:vn}),Nn=yt({activeGroups:k?k.groups:Mn,query:Me,isInSubmenu:k!==null,projectSearchItems:hn,threadSearchItems:_n}),Pn=(0,A.useCallback)(async n=>{if(!H)return;let r=he(H);if(!r)return;if(ie(n.trim(),Yt)){E.add(T({type:`error`,title:`Failed to add project`,description:`Windows-style paths are only supported on Windows.`}));return}if(te(n.trim())&&!q){E.add(T({type:`error`,title:`Failed to add project`,description:`Relative paths require an active project.`}));return}let o=se(n,q);if(o.length===0)return;let s=ee(x.filter(e=>e.environmentId===H),o);if(s){De.getState().setProjectExpanded(le(s,_),!0);let n=ct(S.filter(e=>e.environmentId===s.environmentId),s.id,_.sidebarThreadSortOrder);n?await e({to:`/$environmentId/$threadId`,params:Ye(a(n.environmentId,n.id))}):await b(i(s.environmentId,s.id),{envMode:_.defaultThreadEnvMode}).catch(()=>void 0),t(!1);return}try{let e=Oe();await r.orchestration.dispatchCommand({type:`project.create`,commandId:Te(),projectId:e,title:fe(o),workspaceRoot:o,projectMetadataDir:`.ryco`,createWorkspaceRootIfMissing:!0,defaultModelSelection:{instanceId:Ae.make(`codex`),model:ke},createdAt:new Date().toISOString()}),await b(i(H,e),{envMode:_.defaultThreadEnvMode}).catch(()=>void 0),t(!1)}catch(e){E.add(T({type:`error`,title:`Failed to add project`,description:e instanceof Error?e.message:`An error occurred.`}))}},[H,Yt,q,b,e,x,t,_,S]),Fn=(0,A.useCallback)(e=>$t(e),[$t]),Q=(0,A.useCallback)(e=>{let t=Fn(e.flow.environmentId);R({step:`confirm`,environmentId:e.flow.environmentId,source:e.flow.source,repositoryInput:e.repositoryInput,repository:e.repository,remoteUrl:e.remoteUrl}),g(null),m(t),P(e=>e+1)},[Fn]);async function In(e){if(!L)return;let t=he(L.environmentId);if(!t){E.add(T({type:`error`,title:`Unable to clone project`,description:`Environment API is not available.`}));return}if(L.step===`repository`){let e=p.trim();if(e.length===0||At)return;let n=Pt(L.source);if(!n){Q({flow:L,repositoryInput:e,repository:null,remoteUrl:e});return}let r=G.data?.repositories??[];if(zt(e)&&W===e&&r.length===1){let e=r[0];Q({flow:L,repositoryInput:e.nameWithOwner,repository:e,remoteUrl:Rt(L.source,e)});return}jt(!0);try{let r=await t.sourceControl.lookupRepository({provider:n,repository:e});Q({flow:L,repositoryInput:e,repository:r,remoteUrl:Rt(L.source,r)})}catch(e){E.add(T({type:`error`,title:`Repository lookup failed`,description:Ut(e)}))}finally{jt(!1)}return}let n=(e??p).trim();if(n.length===0||Bt)return;if(ie(n,Yt)){E.add(T({type:`error`,title:`Clone failed`,description:`Windows-style paths are only supported on Windows.`}));return}if(te(n)&&!q){E.add(T({type:`error`,title:`Clone failed`,description:`Relative paths require an active project.`}));return}let r=se(n,q);if(r.length!==0){Wt(!0);try{let e=Pt(L.source);await Pn((await t.sourceControl.cloneRepository({...e&&L.repository?{provider:e,repository:L.repository.nameWithOwner,remoteUrl:L.remoteUrl,...L.source===`bitbucket`?{protocol:`https`}:{}}:{remoteUrl:L.remoteUrl},destinationPath:r})).cwd)}catch(e){E.add(T({type:`error`,title:`Clone failed`,description:Ut(e)}))}finally{Wt(!1)}}}function Ln(e){let t=u(p,e);g(null),m(t),P(e=>e+1)}function Rn(e){let t=ce(e);g(null),m(t),P(e=>e+1)}function zn(){let e=me(p);e!==null&&(g(null),m(e),P(e=>e+1))}let Bn=s(p)?X?.parentPath??p.trim():fn?.fullPath??p.trim(),Vn=bt({browseEntries:dn,browseQuery:p,canBrowseUp:K&&!J&&_e(Y),upIcon:(0,I.jsx)(ft,{className:M}),directoryIcon:(0,I.jsx)(We,{className:M}),symlinkIcon:(0,I.jsx)(pt,{className:M}),browseUp:zn,browseTo:Ln,browseToPath:Rn}),Hn=(0,A.useMemo)(()=>Vn.map(e=>e.value===`directories`?{...e,label:`Select where to clone`}:e),[Vn]),Un=(0,A.useMemo)(()=>L?.step===`confirm`?{title:L.repository?.nameWithOwner??L.repositoryInput,description:L.repository?.url??L.remoteUrl,icon:z(L.source,M)}:null,[L]),Wn=(0,A.useMemo)(()=>{if(L?.step!==`repository`||L.source===`url`||U!==`bitbucket`)return[];let e=G.data?.repositories??[];return e.length>0?[{value:`remote-repositories:${L.environmentId}:${U}`,label:W.length>0?`Matching repositories`:`Available repositories`,items:e.map(e=>({kind:`action`,value:Lt(e),searchTerms:[e.nameWithOwner,It(e.nameWithOwner),e.url,e.sshUrl],title:e.nameWithOwner,description:e.url,icon:z(L.source,M),keepOpen:!0,run:async()=>{Q({flow:L,repositoryInput:e.nameWithOwner,repository:e,remoteUrl:Rt(L.source,e)})}}))}]:G.isFetching?[{value:`remote-repositories:${L.environmentId}:${U}:loading`,label:`Repositories`,items:[{kind:`action`,value:`remote-repositories:loading`,searchTerms:[`loading`,`repository`,`repo`],title:`Loading repositories`,description:`Reading available Bitbucket workspaces`,icon:z(L.source,M),disabled:!0,run:async()=>{}}]}]:G.isError?[{value:`remote-repositories:${L.environmentId}:${U}:error`,label:`Repositories`,items:[{kind:`action`,value:`remote-repositories:error`,searchTerms:[`error`,`repository`,`repo`],title:`Unable to load repositories`,description:Ut(G.error),icon:z(L.source,M),disabled:!0,run:async()=>{}}]}]:[]},[L,Q,U,W,G.data?.repositories,G.error,G.isError,G.isFetching]),Gn=L?.step===`repository`&&L.source===`bitbucket`?W.length===0?`No repositories found. Enter workspace/repository manually.`:`No matching repositories. Enter workspace/repository manually.`:null,Kn=Nn;L?.step===`repository`?Kn=Wn:L?.step===`confirm`?Kn=J?[]:Hn:K&&(Kn=J?[]:Vn);let qn=Ft(L)??Ct(Qt),Jn=Qt===`submenu`||Qt===`submenu-browse`,$=h?.startsWith(`browse:`)??!1,Yn=K&&!J,Xn=Yn&&!ln&&p.trim().length>0&&!$&&(s(p)?!X:fn===null),Zn=Se(navigator.platform),Qn=Zn?`⌘`:`Ctrl`,$n=L?.step===`confirm`,er=$n?Xn?`Create & Clone`:`Clone`:Xn?`Create & Add`:`Add`,tr=$?`${Qn} Enter`:`Enter`,nr=L?L.source===`url`?`Continue`:`Lookup`:null,rr=At||Bt,ir=L?.step===`repository`&&p.trim().length>0&&!rr,ar=Ot(navigator.platform),or=K&&H!==null&&B!==null&&H===B&&typeof window<`u`&&window.desktopBridge!==void 0,sr=(0,A.useMemo)(()=>{if(!or)return;let e=p.trim();if(e.length===0)return;let t=se(s(p)?X?.parentPath??e:Y||e,q);return t.length>0?t:void 0},[Y,X?.parentPath,or,q,p]);function cr(e){return Zn?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function lr(e){if(L?.step===`repository`&&e.key===`Enter`){e.preventDefault();let t=G.data?.repositories.find(e=>Lt(e)===h);if(t){Q({flow:L,repositoryInput:t.nameWithOwner,repository:t,remoteUrl:Rt(L.source,t)});return}In();return}if(Yn&&e.key===`Enter`&&(!$||cr(e))){e.preventDefault(),$n?In(Bn):Pn(Bn);return}e.key===`Backspace`&&p===``&&Jn&&(e.preventDefault(),bn())}function ur(e){if(!e.disabled){if(e.kind===`submenu`){yn(e);return}e.keepOpen||t(!1),e.run().catch(e=>{E.add(T({type:`error`,title:`Unable to run command`,description:e instanceof Error?e.message:`An unexpected error occurred.`}))})}}let dr=(0,A.useCallback)(async()=>{if(!or||vt)return;let e=ae();if(!e)return;Tt(!0);let t=null;try{t=await e.dialogs.pickFolder(sr?{initialPath:sr}:void 0)}catch{Tt(!1);return}Tt(!1),t&&await Pn(t)},[or,sr,Pn,vt]);return(0,I.jsx)(Pe,{"aria-label":`Command palette`,className:`project-glass-surface overflow-hidden p-0`,"data-testid":`command-palette`,surface:`glass`,finalFocus:()=>(Ce?.current?.focusAtEnd(),!1),onBackdropPointerDown:()=>{t(!1)},children:(0,I.jsxs)(Ne,{"aria-label":`Command palette`,autoHighlight:K||Xt?!1:`always`,mode:`none`,onItemHighlighted:e=>{g(typeof e==`string`?e:null)},onValueChange:xn,value:p,children:[(0,I.jsxs)(`div`,{className:`relative`,children:[(0,I.jsx)(He,{className:L?.step===`repository`?`pe-32`:K?Xn?`pe-36`:`pe-16`:void 0,placeholder:qn,wrapperClassName:Jn?`[&_[data-slot=autocomplete-start-addon]]:pointer-events-auto`:void 0,...Jn?{startAddon:(0,I.jsx)(`button`,{type:`button`,className:`flex cursor-pointer items-center`,"aria-label":`Back`,onClick:bn,children:(0,I.jsx)(qe,{})})}:K&&!Jn?{startAddon:(0,I.jsx)(D,{})}:{},onKeyDown:lr}),L?.step===`repository`?(0,I.jsxs)(we,{variant:`outline`,size:`xs`,tabIndex:-1,className:`absolute inset-e-2.5 top-1/2 gap-1.5 pe-1 ps-2 -translate-y-1/2`,"aria-label":`${nr??`Continue`} (Enter)`,disabled:!ir,onMouseDown:e=>{e.preventDefault()},onClick:()=>{In()},title:`${nr??`Continue`} (Enter)`,children:[(0,I.jsx)(`span`,{children:rr?`Working`:nr}),(0,I.jsx)(C,{className:`pointer-events-none -me-0.5 items-center gap-1`,children:(0,I.jsx)(w,{children:`Enter`})})]}):K?(0,I.jsxs)(we,{variant:`outline`,size:`xs`,tabIndex:-1,className:f(`absolute inset-e-2.5 top-1/2 pe-1 ps-2 -translate-y-1/2`,$?`gap-1`:`gap-1.5`),"aria-label":`${er} (${tr})`,disabled:J||$n&&rr,onMouseDown:e=>{e.preventDefault()},onClick:()=>{J||($n?In(Bn):Pn(Bn))},title:`${er} (${tr})`,children:[(0,I.jsx)(`span`,{children:$n&&rr?`Cloning`:er}),(0,I.jsx)(C,{className:`pointer-events-none -me-0.5 items-center gap-1`,children:(0,I.jsx)(w,{children:$?`${Qn} Enter`:`Enter`})})]}):null]}),(0,I.jsxs)(Re,{className:`max-h-[min(28rem,70vh)] bg-transparent`,children:[Un?(0,I.jsxs)(`div`,{className:`p-2 pb-0`,children:[(0,I.jsx)(`div`,{className:`px-2 py-1.5 font-medium text-muted-foreground text-xs`,children:`Repository`}),(0,I.jsxs)(`div`,{className:`flex min-h-8 items-center gap-2 rounded-sm px-2 py-1.5`,children:[Un.icon,(0,I.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,I.jsx)(`span`,{className:`truncate text-foreground text-sm`,children:Un.title}),(0,I.jsx)(`span`,{className:`truncate text-muted-foreground/70 text-xs`,children:Un.description})]})]})]}):null,(0,I.jsx)(wt,{groups:Kn,highlightedItemValue:h,isActionsOnly:Fe,keybindings:Ge,onExecuteItem:ur,...L?.step===`repository`?{emptyStateMessage:L.source===`url`?`Enter a Git clone URL and press Enter to continue.`:Gn??`Enter a repository path and press Enter to look it up.`}:L?.step===`confirm`?{emptyStateMessage:`Choose a destination path and press Enter to clone.`}:J?{emptyStateMessage:`Relative paths require an active project.`}:Xn?{emptyStateMessage:`Press Enter to create this folder and add it as a project.`}:{}})]}),(0,I.jsxs)(Le,{className:`gap-3 max-sm:flex-col max-sm:items-start`,children:[(0,I.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,I.jsxs)(C,{className:`items-center gap-1.5`,children:[(0,I.jsx)(w,{children:(0,I.jsx)(Xe,{})}),(0,I.jsx)(w,{children:(0,I.jsx)(Ze,{})}),(0,I.jsx)(`span`,{className:f(`text-muted-foreground/80`),children:`Navigate`})]}),L?.step===`repository`?(0,I.jsxs)(C,{className:`items-center gap-1.5`,children:[(0,I.jsx)(w,{children:`Enter`}),(0,I.jsx)(`span`,{className:f(`text-muted-foreground/80`),children:nr??`Continue`})]}):!Yn||$?(0,I.jsxs)(C,{className:`items-center gap-1.5`,children:[(0,I.jsx)(w,{children:`Enter`}),(0,I.jsx)(`span`,{className:f(`text-muted-foreground/80`),children:`Select`})]}):null,Jn?(0,I.jsxs)(C,{className:`items-center gap-1.5`,children:[(0,I.jsx)(w,{children:`Backspace`}),(0,I.jsx)(`span`,{className:f(`text-muted-foreground/80`),children:`Back`})]}):null,(0,I.jsxs)(C,{className:`items-center gap-1.5`,children:[(0,I.jsx)(w,{children:`Esc`}),(0,I.jsx)(`span`,{className:f(`text-muted-foreground/80`),children:`Close`})]})]}),or?(0,I.jsx)(we,{variant:`ghost`,size:`xs`,className:`h-auto px-2 text-xs text-muted-foreground/80 hover:bg-transparent hover:text-foreground`,disabled:vt,onClick:()=>{dr()},children:`Open in ${ar}`}):null]})]},`${et.length}-${j}-${K}-${L?.step??`none`}`)})}export{Wt as CommandPaletteDialog};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,t}from"./react-PSPkXoKo.js";import{$r as n,An as r,At as i,Cn as a,Ct as o,Dn as s,Dt as c,En as l,Et as u,Ft as d,It as f,Kr as p,Lt as m,Mi as h,Mt as g,On as _,Pt as v,Qr as y,St as b,Tn as x,Tt as S,gt as C,jn as w,jt as T,kn as E,lr as D,rr as O,ti as k,wn as A,wt as j,yt as M}from"./composerDraftStore-xu3n5gdX.js";var N=e(t());function P(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}var F=`data-composite-item-active`,I=[];function L(e){let{itemSizes:t,cols:n=1,loopFocus:p=!0,dense:h=!1,orientation:g=`both`,direction:y,highlightedIndex:C,onHighlightedIndexChange:O,rootRef:M,enableHomeAndEndKeys:F=!1,stopEventPropagation:L=!1,disabledIndices:z,modifierKeys:B=I}=e,[V,H]=N.useState(0),U=n>1,W=N.useRef(null),G=k(W,M),K=N.useRef([]),q=N.useRef(!1),J=C??V,Y=D((e,t=!1)=>{if((O??H)(e),t){let t=K.current[e];m(W.current,t,y,g)}}),X=D(e=>{if(e.size===0||q.current)return;q.current=!0;let t=Array.from(e.keys()),n=t.find(e=>e?.hasAttribute(`data-composite-item-active`))??null,r=n?t.indexOf(n):-1;r!==-1&&Y(r),m(W.current,n,y,g)}),Z=N.useMemo(()=>({"aria-orientation":g===`both`?void 0:g,ref:G,onFocus(e){!W.current||!f(e.target)||e.target.setSelectionRange(0,e.target.value.length??0)},onKeyDown(e){let m=F?b:j;if(!m.has(e.key)||R(e,B)||!W.current)return;let C=y===`rtl`,D=C?S:u,O={horizontal:D,vertical:o,both:D}[g],k=C?u:S,M={horizontal:k,vertical:c,both:k}[g];if(f(e.target)&&!P(e.target)){let t=e.target.selectionStart,n=e.target.selectionEnd,r=e.target.value??``;if(t==null||e.shiftKey||t!==n||e.key!==M&&t<r.length||e.key!==O&&t>0)return}let N=J,I=E(K,z),V=_(K,z);if(U){let r=t||Array.from({length:K.current.length},()=>({width:1,height:1})),i=a(r,n,h),o=i.findIndex(e=>e!=null&&!w(K,e,z)),c=i.reduce((e,t,n)=>t!=null&&!w(K,t,z)?n:e,-1);N=i[s({current:i.map(e=>e?K.current[e]:null)},{event:e,orientation:g,loopFocus:p,cols:n,disabledIndices:l([...z||K.current.map((e,t)=>w(K,t)?t:void 0),void 0],i),minIndex:o,maxIndex:c,prevIndex:x(J>V?I:J,r,i,n,e.key===`ArrowDown`?`bl`:e.key===`ArrowRight`?`tr`:`tl`),rtl:C})]}let H={horizontal:[D],vertical:[o],both:[D,o]}[g],G={horizontal:[k],vertical:[c],both:[k,c]}[g],q=U?m:{horizontal:F?T:i,vertical:F?d:v,both:m}[g];F&&(e.key===`Home`?N=I:e.key===`End`&&(N=V)),N===J&&(H.includes(e.key)||G.includes(e.key))&&(N=p&&N===V&&H.includes(e.key)?I:p&&N===I&&G.includes(e.key)?V:A(K,{startingIndex:N,decrement:G.includes(e.key),disabledIndices:z})),N!==J&&!r(K,N)&&(L&&e.stopPropagation(),q.has(e.key)&&e.preventDefault(),Y(N,!0),queueMicrotask(()=>{K.current[N]?.focus()}))}}),[n,h,y,z,K,F,J,U,t,p,G,B,Y,g,L]);return N.useMemo(()=>({props:Z,highlightedIndex:J,onHighlightedIndexChange:Y,elementsRef:K,disabledIndices:z,onMapChange:X,relayKeyboardEvent:Z.onKeyDown}),[Z,J,Y,K,z,X])}function R(e,t){for(let n of g.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}var z=h();function B(e){let{render:t,className:r,refs:i=y,props:a=y,state:o=n,stateAttributesMapping:s,highlightedIndex:c,onHighlightedIndexChange:l,orientation:u,dense:d,itemSizes:f,loopFocus:m,cols:h,enableHomeAndEndKeys:g,onMapChange:_,stopEventPropagation:v=!0,rootRef:b,disabledIndices:x,modifierKeys:S,highlightItemOnHover:w=!1,tag:T=`div`,...E}=e,{props:D,highlightedIndex:k,onHighlightedIndexChange:A,elementsRef:j,onMapChange:P,relayKeyboardEvent:F}=L({itemSizes:f,cols:h,loopFocus:m,dense:d,orientation:u,highlightedIndex:c,onHighlightedIndexChange:l,rootRef:b,stopEventPropagation:v,enableHomeAndEndKeys:g,direction:M(),disabledIndices:x,modifierKeys:S}),I=p(T,e,{state:o,ref:i,props:[D,...a,E],stateAttributesMapping:s}),R=N.useMemo(()=>({highlightedIndex:k,onHighlightedIndexChange:A,highlightItemOnHover:w,relayKeyboardEvent:F}),[k,A,w,F]);return(0,z.jsx)(O.Provider,{value:R,children:(0,z.jsx)(C,{elementsRef:j,onMapChange:e=>{_?.(e),P(e)},children:I})})}export{F as n,B as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,t}from"./react-PSPkXoKo.js";import{t as n}from"./compiler-runtime-BNrXlsa1.js";import{an as r}from"./react-CjD7iThp.js";import{At as i,Zt as a,a as o,c as s,d as c,i as l,jt as u,o as d,u as f,z as p}from"./environmentApi-BFHi_M02.js";import{$ as m,Ei as h,Fr as g,G as _,H as v,Mi as y,Nr as b,Oi as x,Q as S,U as C,V as w,Z as T,et as E,it as D,ot as O,tt as k}from"./composerDraftStore-xu3n5gdX.js";import{Bn as A,Ct as j,Dt as ee,Et as M,Jn as N,S as P,St as F,Tt as I,Vn as te,b as ne,bt as L,gt as R,rt as z,vt as B,wt as re,x as ie,xt as ae,yt as oe}from"./providerIconUtils-Ch6hejVW.js";import{a as V,i as H,o as se,s as ce}from"./toast-DE-WwLMa.js";import{t as le}from"./plus-B10j9MbZ.js";import{t as ue}from"./refresh-cw-CRxaXR0E.js";import{n as de,t as fe}from"./pairingUrl-rQM9kSGT.js";import{d as pe,f as me,h as he,o as ge,s as _e,u as ve}from"./primary-CSkhdakK.js";import{r as ye,t as be}from"./hostedPairing-DAdvNuk3.js";import{t as xe}from"./input-BfUa3JUD.js";import{t as Se}from"./scroll-area-BgFq7GRd.js";import{t as Ce}from"./AnimatedHeight-CYuVQOpY.js";import{n as we,t as Te}from"./group-Dwm-OV-r.js";import{a as Ee,i as De,n as Oe,o as ke,r as Ae,s as je,t as Me}from"./alert-dialog-BJQbh5gX.js";import{a as Ne,i as Pe,n as Fe,r as U}from"./settingsLayout-B5o13iGO.js";var Ie=x(`chevrons-left-right-ellipsis`,[[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M16 12h.01`,key:`1l6xoz`}],[`path`,{d:`m17 7 5 5-5 5`,key:`1xlxn0`}],[`path`,{d:`m7 7-5 5 5 5`,key:`19njba`}],[`path`,{d:`M8 12h.01`,key:`czm47f`}]]),Le=x(`qr-code`,[[`rect`,{width:`5`,height:`5`,x:`3`,y:`3`,rx:`1`,key:`1tu5fj`}],[`rect`,{width:`5`,height:`5`,x:`16`,y:`3`,rx:`1`,key:`1v8r4q`}],[`rect`,{width:`5`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`1x03jg`}],[`path`,{d:`M21 16h-3a2 2 0 0 0-2 2v3`,key:`177gqh`}],[`path`,{d:`M21 21v.01`,key:`ents32`}],[`path`,{d:`M12 7v3a2 2 0 0 1-2 2H7`,key:`8crl2c`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M12 3h.01`,key:`n36tog`}],[`path`,{d:`M12 16v.01`,key:`133mhm`}],[`path`,{d:`M16 12h1`,key:`1slzba`}],[`path`,{d:`M21 12v.01`,key:`1lwtk9`}],[`path`,{d:`M12 21v-1`,key:`1880an`}]]),W=e(t(),1),G=n();function Re(e,t){let n=new URL(e);return n.pathname=`/pair`,de(n,t).toString()}function ze(e,t){return new URL(e).protocol===`https:`?be({host:e,token:t}):null}var Be=class e{static Ecc;static encodeText(t,n){let r=Y.makeSegments(t);return e.encodeSegments(r,n)}static encodeBinary(t,n){let r=Y.makeBytes(t);return e.encodeSegments([r],n)}static encodeSegments(t,n,r=1,i=40,a=-1,o=!0){if(!(e.MIN_VERSION<=r&&r<=i&&i<=e.MAX_VERSION)||a<-1||a>7)throw RangeError(`Invalid value`);let s,c;for(s=r;;s++){let r=e.getNumDataCodewords(s,n)*8,a=Y.getTotalBits(t,s);if(a<=r){c=a;break}if(s>=i)throw RangeError(`Data too long`)}for(let t of[e.Ecc.MEDIUM,e.Ecc.QUARTILE,e.Ecc.HIGH])o&&c<=e.getNumDataCodewords(s,t)*8&&(n=t);let l=[];for(let e of t){K(e.mode.modeBits,4,l),K(e.numChars,e.mode.numCharCountBits(s),l);for(let t of e.getData())l.push(t)}J(l.length==c);let u=e.getNumDataCodewords(s,n)*8;J(l.length<=u),K(0,Math.min(4,u-l.length),l),K(0,(8-l.length%8)%8,l),J(l.length%8==0);for(let e=236;l.length<u;e^=253)K(e,8,l);let d=[];for(;d.length*8<l.length;)d.push(0);return l.forEach((e,t)=>d[t>>>3]|=e<<7-(t&7)),new e(s,n,d,a)}version;errorCorrectionLevel;size;mask;modules=[];isFunction=[];constructor(t,n,r,i){if(this.version=t,this.errorCorrectionLevel=n,t<e.MIN_VERSION||t>e.MAX_VERSION)throw RangeError(`Version value out of range`);if(i<-1||i>7)throw RangeError(`Mask value out of range`);this.size=t*4+17;let a=[];for(let e=0;e<this.size;e++)a.push(!1);for(let e=0;e<this.size;e++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();let o=this.addEccAndInterleave(r);if(this.drawCodewords(o),i==-1){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);let n=this.getPenaltyScore();n<e&&(i=t,e=n),this.applyMask(t)}}J(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)n==0&&r==0||n==0&&r==t-1||n==t-1&&r==0||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){let t=this.errorCorrectionLevel.formatBits<<3|e,n=t;for(let e=0;e<10;e++)n=n<<1^(n>>>9)*1335;let r=(t<<10|n)^21522;J(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,q(r,e));this.setFunctionModule(8,7,q(r,6)),this.setFunctionModule(8,8,q(r,7)),this.setFunctionModule(7,8,q(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,q(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,q(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,q(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;J(t>>>18==0);for(let e=0;e<18;e++){let n=q(t,e),r=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(r,i,n),this.setFunctionModule(i,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;0<=a&&a<this.size&&0<=o&&o<this.size&&this.setFunctionModule(a,o,i!=2&&i!=4)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,Math.max(Math.abs(r),Math.abs(n))!=1)}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(t){let n=this.version,r=this.errorCorrectionLevel;if(t.length!=e.getNumDataCodewords(n,r))throw RangeError(`Invalid argument`);let i=e.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],a=e.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],o=Math.floor(e.getNumRawDataModules(n)/8),s=i-o%i,c=Math.floor(o/i),l=[],u=e.reedSolomonComputeDivisor(a);for(let n=0,r=0;n<i;n++){let i=t.slice(r,r+c-a+(n<s?0:1));r+=i.length;let o=e.reedSolomonComputeRemainder(i,u);n<s&&i.push(0),l.push(i.concat(o))}let d=[];for(let e=0;e<l[0].length;e++)l.forEach((t,n)=>{(e!=c-a||n>=s)&&d.push(t[e])});return J(d.length==o),d}drawCodewords(t){if(t.length!=Math.floor(e.getNumRawDataModules(this.version)/8))throw RangeError(`Invalid argument`);let n=0;for(let e=this.size-1;e>=1;e-=2){e==6&&(e=5);for(let r=0;r<this.size;r++)for(let i=0;i<2;i++){let a=e-i,o=e+1&2?r:this.size-1-r;!this.isFunction[o][a]&&n<t.length*8&&(this.modules[o][a]=q(t[n>>>3],7-(n&7)),n++)}}J(n==t.length*8)}applyMask(e){if(e<0||e>7)throw RangeError(`Mask value out of range`);for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw Error(`Unreachable`)}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let t=0;for(let n=0;n<this.size;n++){let r=!1,i=0,a=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[n][o]===r?(i++,i==5?t+=e.PENALTY_N1:i>5&&t++):(this.finderPenaltyAddHistory(i,a),r||(t+=this.finderPenaltyCountPatterns(a)*e.PENALTY_N3),r=this.modules[n][o],i=1);t+=this.finderPenaltyTerminateAndCount(r,i,a)*e.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,i=0,a=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[o][n]===r?(i++,i==5?t+=e.PENALTY_N1:i>5&&t++):(this.finderPenaltyAddHistory(i,a),r||(t+=this.finderPenaltyCountPatterns(a)*e.PENALTY_N3),r=this.modules[o][n],i=1);t+=this.finderPenaltyTerminateAndCount(r,i,a)*e.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){let i=this.modules[n][r];i==this.modules[n][r+1]&&i==this.modules[n+1][r]&&i==this.modules[n+1][r+1]&&(t+=e.PENALTY_N2)}let n=0;for(let e of this.modules)n=e.reduce((e,t)=>e+ +!!t,n);let r=this.size*this.size,i=Math.ceil(Math.abs(n*20-r*10)/r)-1;return J(0<=i&&i<=9),t+=i*e.PENALTY_N4,J(0<=t&&t<=2568888),t}getAlignmentPatternPositions(){if(this.version==1)return[];{let e=Math.floor(this.version/7)+2,t=this.version==32?26:Math.ceil((this.version*4+4)/(e*2-2))*2,n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(t){if(t<e.MIN_VERSION||t>e.MAX_VERSION)throw RangeError(`Version number out of range`);let n=(16*t+128)*t+64;if(t>=2){let e=Math.floor(t/7)+2;n-=(25*e-10)*e-55,t>=7&&(n-=36)}return J(208<=n&&n<=29648),n}static getNumDataCodewords(t,n){return Math.floor(e.getNumRawDataModules(t)/8)-e.ECC_CODEWORDS_PER_BLOCK[n.ordinal][t]*e.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][t]}static reedSolomonComputeDivisor(t){if(t<1||t>255)throw RangeError(`Degree out of range`);let n=[];for(let e=0;e<t-1;e++)n.push(0);n.push(1);let r=1;for(let i=0;i<t;i++){for(let t=0;t<n.length;t++)n[t]=e.reedSolomonMultiply(n[t],r),t+1<n.length&&(n[t]^=n[t+1]);r=e.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(t,n){let r=n.map(e=>0);for(let i of t){let t=i^r.shift();r.push(0),n.forEach((n,i)=>r[i]^=e.reedSolomonMultiply(n,t))}return r}static reedSolomonMultiply(e,t){if(e>>>8||t>>>8)throw RangeError(`Byte out of range`);let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return J(n>>>8==0),n}finderPenaltyCountPatterns(e){let t=e[1];J(t<=this.size*3);let n=t>0&&e[2]===t&&e[3]===t*3&&e[4]===t&&e[5]===t;return(n&&e[0]>=t*4&&e[6]>=t?1:0)+(n&&e[6]>=t*4&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){t[0]===0&&(e+=this.size),t.pop(),t.unshift(e)}static MIN_VERSION=1;static MAX_VERSION=40;static PENALTY_N1=3;static PENALTY_N2=3;static PENALTY_N3=40;static PENALTY_N4=10;static ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]];static NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]};function K(e,t,n){if(t<0||t>31||e>>>t)throw RangeError(`Value out of range`);for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function q(e,t){return(e>>>t&1)!=0}function J(e){if(!e)throw Error(`Assertion error`)}var Y=class e{static Mode;static makeBytes(t){let n=[];for(let e of t)K(e,8,n);return new e(e.Mode.BYTE,t.length,n)}static makeNumeric(t){if(!e.isNumeric(t))throw RangeError(`String contains non-numeric characters`);let n=[];for(let e=0;e<t.length;){let r=Math.min(t.length-e,3);K(parseInt(t.substring(e,e+r),10),r*3+1,n),e+=r}return new e(e.Mode.NUMERIC,t.length,n)}static makeAlphanumeric(t){if(!e.isAlphanumeric(t))throw RangeError(`String contains unencodable characters in alphanumeric mode`);let n=[],r;for(r=0;r+2<=t.length;r+=2){let i=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r))*45;i+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r+1)),K(i,11,n)}return r<t.length&&K(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r)),6,n),new e(e.Mode.ALPHANUMERIC,t.length,n)}static makeSegments(t){return t==``?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}static makeEci(t){let n=[];if(t<0)throw RangeError(`ECI assignment value out of range`);if(t<128)K(t,8,n);else if(t<16384)K(2,2,n),K(t,14,n);else if(t<1e6)K(6,3,n),K(t,21,n);else throw RangeError(`ECI assignment value out of range`);return new e(e.Mode.ECI,0,n)}static isNumeric(t){return e.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return e.ALPHANUMERIC_REGEX.test(t)}mode;numChars;bitData;constructor(e,t,n){if(this.mode=e,this.numChars=t,t<0)throw RangeError(`Invalid argument`);this.bitData=n.slice()}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(let r of e){let e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)e.charAt(n)==`%`?(t.push(parseInt(e.substring(n+1,n+3),16)),n+=2):t.push(e.charCodeAt(n));return t}static NUMERIC_REGEX=/^[0-9]*$/;static ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/;static ALPHANUMERIC_CHARSET=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`},Ve=class e{static LOW=new e(0,1);static MEDIUM=new e(1,0);static QUARTILE=new e(2,3);static HIGH=new e(3,2);ordinal;formatBits;constructor(e,t){this.ordinal=e,this.formatBits=t}},X=class e{static NUMERIC=new e(1,[10,12,14]);static ALPHANUMERIC=new e(2,[9,11,13]);static BYTE=new e(4,[8,16,16]);static KANJI=new e(8,[8,10,12]);static ECI=new e(7,[0,0,0]);modeBits;numBitsCharCount;constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};Be.Ecc=Ve,Y.Mode=X;var Z=y(),He={L:Be.Ecc.LOW,M:Be.Ecc.MEDIUM,Q:Be.Ecc.QUARTILE,H:Be.Ecc.HIGH};function Ue(e,t){let n=[];for(let r=0;r<e.size;r+=1){let i=-1;for(let a=0;a<=e.size;a+=1){if(a<e.size&&e.getModule(a,r)){i===-1&&(i=a);continue}i!==-1&&(n.push(`M${i+t} ${r+t}h${a-i}v1H${i+t}z`),i=-1)}}return n.join(``)}var We=(0,W.memo)(function(e){let t=(0,G.c)(38),{value:n,size:r,level:i,marginSize:a,title:o,className:s,foregroundColor:c,backgroundColor:l}=e,u=r===void 0?128:r,d=i===void 0?`L`:i,f=a===void 0?0:a,p=c===void 0?`#000`:c,m=l===void 0?`#fff`:l,h,g,_,v,y,b,x,S,C,w,T;if(t[0]!==m||t[1]!==s||t[2]!==d||t[3]!==f||t[4]!==u||t[5]!==o||t[6]!==n){let e=Be.encodeText(n,He[d]),r=e.size+f*2;C=`http://www.w3.org/2000/svg`,w=`0 0 ${r} ${r}`,T=u,h=u,g=`crispEdges`,_=o?`img`:void 0,v=o,y=s,t[18]===o?b=t[19]:(b=o?(0,Z.jsx)(`title`,{children:o}):null,t[18]=o,t[19]=b),t[20]!==m||t[21]!==r?(x=(0,Z.jsx)(`rect`,{width:r,height:r,fill:m}),t[20]=m,t[21]=r,t[22]=x):x=t[22],S=Ue(e,f),t[0]=m,t[1]=s,t[2]=d,t[3]=f,t[4]=u,t[5]=o,t[6]=n,t[7]=h,t[8]=g,t[9]=_,t[10]=v,t[11]=y,t[12]=b,t[13]=x,t[14]=S,t[15]=C,t[16]=w,t[17]=T}else h=t[7],g=t[8],_=t[9],v=t[10],y=t[11],b=t[12],x=t[13],S=t[14],C=t[15],w=t[16],T=t[17];let E;t[23]!==p||t[24]!==S?(E=(0,Z.jsx)(`path`,{d:S,fill:p}),t[23]=p,t[24]=S,t[25]=E):E=t[25];let D;return t[26]!==h||t[27]!==g||t[28]!==_||t[29]!==v||t[30]!==y||t[31]!==b||t[32]!==x||t[33]!==E||t[34]!==C||t[35]!==w||t[36]!==T?(D=(0,Z.jsxs)(`svg`,{xmlns:C,viewBox:w,width:T,height:h,shapeRendering:g,role:_,"aria-label":v,className:y,children:[b,x,E]}),t[26]=h,t[27]=g,t[28]=_,t[29]=v,t[30]=y,t[31]=b,t[32]=x,t[33]=E,t[34]=C,t[35]=w,t[36]=T,t[37]=D):D=t[37],D}),Ge=443,Ke=new Intl.DateTimeFormat(void 0,{dateStyle:`medium`,timeStyle:`short`});function qe(e){let t=new Date(e);return Number.isNaN(t.getTime())?e:Ke.format(t)}function Je(e){let t=(0,G.c)(21),{tooltipText:n,dotClassName:r,pingClassName:i}=e,a;t[0]===i?a=t[1]:(a=i?(0,Z.jsx)(`span`,{className:g(`absolute inline-flex h-full w-full animate-ping rounded-full`,i)}):null,t[0]=i,t[1]=a);let o;t[2]===r?o=t[3]:(o=g(`relative inline-flex size-2 rounded-full`,r),t[2]=r,t[3]=o);let s;t[4]===o?s=t[5]:(s=(0,Z.jsx)(`span`,{className:o}),t[4]=o,t[5]=s);let c;t[6]!==a||t[7]!==s?(c=(0,Z.jsxs)(Z.Fragment,{children:[a,s]}),t[6]=a,t[7]=s,t[8]=c):c=t[8];let l=c;if(!n){let e;return t[9]===l?e=t[10]:(e=(0,Z.jsx)(`span`,{className:`relative flex size-3 shrink-0 items-center justify-center`,children:l}),t[9]=l,t[10]=e),e}let u;t[11]!==l||t[12]!==n?(u=(0,Z.jsx)(`button`,{type:`button`,title:n,"aria-label":n,className:`relative flex size-3 shrink-0 cursor-help items-center justify-center rounded-full outline-hidden`,children:l}),t[11]=l,t[12]=n,t[13]=u):u=t[13];let d=u,f;t[14]===d?f=t[15]:(f=(0,Z.jsx)(_,{render:d}),t[14]=d,t[15]=f);let p;t[16]===n?p=t[17]:(p=(0,Z.jsx)(C,{side:`top`,className:`max-w-80 whitespace-pre-wrap leading-tight`,children:n}),t[16]=n,t[17]=p);let m;return t[18]!==f||t[19]!==p?(m=(0,Z.jsxs)(v,{children:[f,p]}),t[18]=f,t[19]=p,t[20]=m):m=t[20],m}function Ye(e,t,n){let r=e?.connectionState??`disconnected`;if(r===`connected`){let r=e?.connectedAt??t.lastConnectedAt;return r?`Connected for ${A(r,n)}`:null}return r===`connecting`?null:r===`error`?e?.lastError??`An unknown connection error occurred.`:t.lastConnectedAt?`Last connected at ${qe(t.lastConnectedAt)}`:`Not connected yet.`}function Xe(e){let t=e.username?`${e.username}@${e.hostname}`:e.hostname;return e.port?`${t}:${e.port}`:t}function Ze(e){let t=e.host.trim();if(t.length===0)throw Error(`SSH host or alias is required.`);let n=t,r=e.username.trim()||null,i=null,a=n.lastIndexOf(`@`);if(a>0){let e=n.slice(0,a).trim();n=n.slice(a+1).trim(),!r&&e.length>0&&(r=e)}let o=/^\[([^\]]+)\](?::(\d+))?$/u.exec(n);if(o)n=o[1].trim(),o[2]&&(i=Number.parseInt(o[2],10));else{let e=n.split(`:`);e.length===2&&/^\d+$/u.test(e[1]??``)&&(n=e[0].trim(),i=Number.parseInt(e[1],10))}let s=e.port.trim();if(s.length>0&&(i=Number.parseInt(s,10)),n.length===0)throw Error(`SSH host or alias is required.`);if(i!==null&&(!Number.isInteger(i)||i<=0||i>65535))throw Error(`SSH port must be between 1 and 65535.`);return{alias:n,hostname:n,username:r,port:i}}function Qe(e){let t=e.trim();if(!t)return null;try{let e=/^[a-zA-Z][a-zA-Z\d+.-]*:\/\//u.test(t)||t.startsWith(`//`)?t:`https://${t}`,n=new URL(e,window.location.origin),r=ye(n);if(r)return{host:r.host,pairingCode:r.token};let i=fe(n);return i?{host:n.origin,pairingCode:i}:null}catch{return null}}function $e(e){let t=Qe(e.host);if(t)return t;let n=e.host.trim(),r=e.pairingCode.trim();if(!n)throw Error(`Enter a backend host.`);if(!r)throw Error(`Enter a pairing code.`);return{host:n,pairingCode:r}}function et(e){let t=`Failed to connect SSH host.`;return(e instanceof Error?e.message:t).replace(/^Error invoking remote method 'desktop:ensure-ssh-environment':\s*/u,``).replace(/^Ssh[A-Za-z]+Error:\s*/u,``).trim()||t}var tt=`border-t border-border/60 px-4 py-4 first:border-t-0 sm:px-5`,nt=`border-t border-border/60 px-4 py-2.5 first:border-t-0 sm:px-5`,rt=`flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between`;function it(e){return tt}function at(e,t){return e===`endpoint-rail`?g(`relative border-t border-border/60 px-4 py-3 first:border-t-0 sm:px-5`,!t&&`bg-muted/20`):g(nt,!t&&`bg-muted/24`)}function ot(e){return[...e].toSorted((e,t)=>new Date(t.createdAt).getTime()-new Date(e.createdAt).getTime())}function st(e){return[...e].toSorted((e,t)=>e.current===t.current?e.connected===t.connected?new Date(t.issuedAt).getTime()-new Date(e.issuedAt).getTime():e.connected?-1:1:e.current?-1:1)}function ct(e){return{...e,createdAt:r(e.createdAt),expiresAt:r(e.expiresAt)}}function lt(e){return{...e,issuedAt:r(e.issuedAt),expiresAt:r(e.expiresAt),lastConnectedAt:e.lastConnectedAt===null?null:r(e.lastConnectedAt)}}function ut(e,t){let n=e.findIndex(e=>e.id===t.id);if(n===-1)return ot([...e,t]);let r=[...e];return r[n]=t,ot(r)}function dt(e,t){return e.filter(e=>e.id!==t)}function ft(e,t){let n=e.findIndex(e=>e.sessionId===t.sessionId);if(n===-1)return st([...e,t]);let r=[...e];return r[n]=t,st(r)}function pt(e,t){return e.filter(e=>e.sessionId!==t)}function mt(e,t){let n=e.filter(e=>e.status!==`unavailable`);if(t){let e=n.find(e=>gt(e)===t);if(e)return e}return n.find(e=>e.isDefault)??n.find(e=>e.reachability!==`loopback`)??n.find(e=>e.compatibility.hostedHttpsApp===`compatible`)??null}function ht(e){return e.id.startsWith(`tailscale-magicdns:`)}function gt(e){if(e.id.startsWith(`desktop-loopback:`))return`desktop-core:loopback:http`;if(e.id.startsWith(`desktop-lan:`))return`desktop-core:lan:http`;if(e.id.startsWith(`tailscale-ip:`))return`tailscale:ip:http`;if(ht(e))return`tailscale:magicdns:https`;let t=`unknown`;try{t=new URL(e.httpBaseUrl).protocol.replace(/:$/u,``)}catch{}return`${e.provider.id}:${e.reachability}:${t}:${e.label}`}function _t(e,t){return e.compatibility.hostedHttpsApp===`compatible`?ze(e.httpBaseUrl,t)??Re(e.httpBaseUrl,t):Re(e.httpBaseUrl,t)}function vt(e){return de(new URL(`/pair`,window.location.href),e).toString()}function Q(e){try{let t=new URL(e);return t.pathname===`/pair`&&t.searchParams.has(`host`)}catch{return!1}}var yt=(0,W.memo)(function(e){let t=(0,G.c)(146),{pairingLink:n,endpointUrl:r,endpoints:i,defaultEndpointKey:a,presentation:o,revokingPairingLinkId:s,onRevoke:c}=e,l=o===void 0?`current`:o,u=Ne(1e3),d;t[0]===n.expiresAt?d=t[1]:(d=new Date(n.expiresAt).getTime(),t[0]=n.expiresAt,t[1]=d);let f=d,[p,g]=(0,W.useState)(!1),_;t[2]===n.credential?_=t[3]:(_=vt(n.credential),t[2]=n.credential,t[3]=_);let v=_,y;t[4]!==r||t[5]!==n.credential?(y=r!=null&&r!==``?ze(r,n.credential):null,t[4]=r,t[5]=n.credential,t[6]=y):y=t[6];let x=y,C;if(t[7]!==a||t[8]!==i||t[9]!==n.credential){let e=mt(i,a);C=e?_t(e,n.credential):null,t[7]=a,t[8]=i,t[9]=n.credential,t[10]=C}else C=t[10];let w=C,A;if(t[11]!==i||t[12]!==n.credential){let e;t[14]===n.credential?e=t[15]:(e=e=>{let t=_t(e,n.credential);return{key:gt(e),label:e.label,url:t,detail:Q(t)?`Hosted app link`:`Backend pairing URL`}},t[14]=n.credential,t[15]=e),A=i.filter(kt).map(e),t[11]=i,t[12]=n.credential,t[13]=A}else A=t[13];let N=A,L;t[16]!==v||t[17]!==w||t[18]!==r||t[19]!==x||t[20]!==n.credential?(L=w??(r!=null&&r!==``?x??Re(r,n.credential):he(window.location.hostname)?null:v),t[16]=v,t[17]=w,t[18]=r,t[19]=x,t[20]=n.credential,t[21]=L):L=t[21];let R=L,z=R??n.credential,ce=R!==null&&Q(R),le=typeof window<`u`&&window.isSecureContext&&navigator.clipboard?.writeText!=null,ue;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(ue={onCopy:At,onError:(e,t)=>{g(!0),H.add(V({type:`error`,title:le?t===`hosted-link`?`Could not copy hosted app link`:t===`link`?`Could not copy pairing URL`:`Could not copy pairing code`:`Clipboard copy unavailable`,description:le?e.message:`Showing the full value instead.`}))}},t[22]=ue):ue=t[22];let{copyToClipboard:de}=se(ue),fe;t[23]===de?fe=t[24]:(fe=(e,t)=>{de(e,t)},t[23]=de,t[24]=fe);let pe=fe,me=jt,ge;t[25]!==pe||t[26]!==n.credential?(ge=()=>{pe(n.credential,`code`)},t[25]=pe,t[26]=n.credential,t[27]=ge):ge=t[27];let _e=ge,ve;t[28]!==pe||t[29]!==R?(ve=()=>{R&&pe(R,me(R))},t[28]=pe,t[29]=R,t[30]=ve):ve=t[30];let ye=ve,be;t[31]===n.expiresAt?be=t[32]:(be=qe(n.expiresAt),t[31]=n.expiresAt,t[32]=be);let xe=be,Se=n.role===`owner`?`Owner`:`Client`,Ce=n.label??`${Se} link`,Ee;t[33]!==a||t[34]!==N?(Ee=N.find(e=>e.key===a)??N[0]??null,t[33]=a,t[34]=N,t[35]=Ee):Ee=t[35];let De=Ee?.label??`URL`,Oe,ke,Ae,je,Me,Pe,Fe,U,Ie;if(t[36]!==pe||t[37]!==De||t[38]!==N||t[39]!==xe||t[40]!==f||t[41]!==_e||t[42]!==ye||t[43]!==p||t[44]!==u||t[45]!==n.createdAt||t[46]!==n.expiresAt||t[47]!==l||t[48]!==Ce||t[49]!==Se||t[50]!==R){Ie=Symbol.for(`react.early_return_sentinel`);bb0:{let e=N.filter(Mt),r=N.filter(Nt),i;t[60]!==pe||t[61]!==N?(i=(e,t)=>{let n=e===void 0?N:e,r=t===void 0?!0:t;return n.map(e=>(0,Z.jsx)(E,{onClick:()=>pe(e.url,me(e.url)),children:(0,Z.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,Z.jsx)(`span`,{className:`block truncate`,children:e.label}),r?(0,Z.jsx)(`span`,{className:`block truncate text-[11px] text-muted-foreground`,children:e.detail}):null]})},e.key))},t[60]=pe,t[61]=N,t[62]=i):i=t[62];let a=i,o;t[63]===_e?o=t[64]:(o=e=>(0,Z.jsx)(E,{onClick:_e,children:(0,Z.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,Z.jsx)(`span`,{className:`block truncate`,children:`Copy code`}),e===void 0||e?(0,Z.jsx)(`span`,{className:`block truncate text-[11px] text-muted-foreground`,children:`Token only`}):null]})}),t[63]=_e,t[64]=o);let s=o,c;t[65]===a?c=t[66]:(c=(e,t,n)=>t.length>0?(0,Z.jsxs)(Z.Fragment,{children:[n?(0,Z.jsx)(D,{}):null,(0,Z.jsxs)(S,{children:[(0,Z.jsx)(m,{children:e}),a(t,!1)]})]}):null,t[65]=a,t[66]=c);let d=c,_=t=>(0,Z.jsxs)(Z.Fragment,{children:[t?.codeFirst?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(S,{children:[(0,Z.jsx)(m,{children:`Pairing code`}),s(!1)]}),N.length>0?(0,Z.jsx)(D,{}):null]}):null,d(`Pairing URLs`,e,!1),d(`Hosted app link`,r,e.length>0),t?.codeFirst?null:(0,Z.jsxs)(Z.Fragment,{children:[N.length>0?(0,Z.jsx)(D,{}):null,(0,Z.jsxs)(S,{children:[(0,Z.jsx)(m,{children:`Pairing code`}),s(!1)]})]})]});if(f<=u){Ie=null;break bb0}t[67]===l?U=t[68]:(U=it(l),t[67]=l,t[68]=U),Pe=rt;let v;t[69]===n.createdAt?v=t[70]:(v=qe(n.createdAt),t[69]=n.createdAt,t[70]=v);let y=`Link created at ${v}`,x;t[71]===y?x=t[72]:(x=(0,Z.jsx)(Je,{tooltipText:y,dotClassName:`bg-amber-400`}),t[71]=y,t[72]=x);let C;t[73]===Ce?C=t[74]:(C=(0,Z.jsx)(`h3`,{className:`text-sm font-medium text-foreground`,children:Ce}),t[73]=Ce,t[74]=C);let w;t[75]===R?w=t[76]:(w=R?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(P,{openOnHover:!0,delay:250,closeDelay:100,render:(0,Z.jsx)(`button`,{type:`button`,className:`inline-flex size-4 shrink-0 items-center justify-center rounded-sm text-muted-foreground/50 outline-none hover:text-foreground`,"aria-label":`Show QR code`}),children:(0,Z.jsx)(Le,{"aria-hidden":!0,className:`size-3`})}),(0,Z.jsx)(ie,{side:`top`,align:`start`,tooltipStyle:!0,className:`w-max`,children:(0,Z.jsx)(We,{value:R,size:88,level:`M`,marginSize:2,title:`Pairing link — scan to open on another device`})})]}):null,t[75]=R,t[76]=w);let A;t[77]===w?A=t[78]:(A=(0,Z.jsx)(ne,{children:w}),t[77]=w,t[78]=A);let j;t[79]!==x||t[80]!==C||t[81]!==A?(j=(0,Z.jsxs)(`div`,{className:`flex min-h-5 items-center gap-1.5`,children:[x,C,A]}),t[79]=x,t[80]=C,t[81]=A,t[82]=j):j=t[82];let M;t[83]!==u||t[84]!==n.expiresAt?(M=te(n.expiresAt,u),t[83]=u,t[84]=n.expiresAt,t[85]=M):M=t[85];let F;t[86]!==Se||t[87]!==M?(F=[Se,M],t[86]=Se,t[87]=M,t[88]=F):F=t[88];let I=F.join(` · `),L;t[89]!==xe||t[90]!==I?(L=(0,Z.jsx)(`p`,{className:`text-xs text-muted-foreground`,title:xe,children:I}),t[89]=xe,t[90]=I,t[91]=L):L=t[91];let z;t[92]===R?z=t[93]:(z=R===null?(0,Z.jsx)(`p`,{className:`text-[11px] text-muted-foreground/70`,children:`Copy the token and pair from another client using this backend's reachable host.`}):null,t[92]=R,t[93]=z),t[94]!==j||t[95]!==L||t[96]!==z?(Fe=(0,Z.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-1`,children:[j,L,z]}),t[94]=j,t[95]=L,t[96]=z,t[97]=Fe):Fe=t[97],Me=`flex w-full shrink-0 items-center gap-2 sm:w-auto sm:justify-end`,Oe=oe,ke=p,Ae=g,je=le?(0,Z.jsx)(Z.Fragment,{children:R?(0,Z.jsxs)(Te,{"aria-label":`Copy selected endpoint`,children:[(0,Z.jsx)(b,{size:`xs`,variant:`outline`,className:`max-w-56`,title:`Copy pairing URL for: ${De}`,onClick:ye,children:(0,Z.jsxs)(`span`,{className:`truncate`,children:[`Copy pairing URL for: `,De]})}),(0,Z.jsx)(we,{}),(0,Z.jsxs)(T,{children:[(0,Z.jsx)(O,{render:(0,Z.jsx)(b,{size:`icon-xs`,variant:`outline`,"aria-label":`Choose endpoint to copy`}),children:(0,Z.jsx)(h,{className:`size-3.5`})}),(0,Z.jsx)(k,{align:`end`,className:`min-w-60`,children:_()})]})]}):(0,Z.jsx)(b,{size:`xs`,variant:`outline`,onClick:_e,children:`Copy code`})}):(0,Z.jsx)(ee,{render:(0,Z.jsx)(b,{size:`xs`,variant:`outline`}),children:R?`Show link`:`Show code`})}t[36]=pe,t[37]=De,t[38]=N,t[39]=xe,t[40]=f,t[41]=_e,t[42]=ye,t[43]=p,t[44]=u,t[45]=n.createdAt,t[46]=n.expiresAt,t[47]=l,t[48]=Ce,t[49]=Se,t[50]=R,t[51]=Oe,t[52]=ke,t[53]=Ae,t[54]=je,t[55]=Me,t[56]=Pe,t[57]=Fe,t[58]=U,t[59]=Ie}else Oe=t[51],ke=t[52],Ae=t[53],je=t[54],Me=t[55],Pe=t[56],Fe=t[57],U=t[58],Ie=t[59];if(Ie!==Symbol.for(`react.early_return_sentinel`))return Ie;let Be=R?ce?`Hosted app pairing link`:`Pairing link`:`Pairing code`,K;t[98]===Be?K=t[99]:(K=(0,Z.jsx)(M,{children:Be}),t[98]=Be,t[99]=K);let q=R?ce?`Clipboard copy is unavailable here. Open or manually copy this hosted app link on the device you want to connect.`:`Clipboard copy is unavailable here. Open or manually copy this full pairing URL on the device you want to connect.`:`Clipboard copy is unavailable here. Manually copy this code into another client.`,J;t[100]===q?J=t[101]:(J=(0,Z.jsx)(ae,{children:q}),t[100]=q,t[101]=J);let Y;t[102]!==K||t[103]!==J?(Y=(0,Z.jsxs)(j,{children:[K,J]}),t[102]=K,t[103]=J,t[104]=Y):Y=t[104];let Ve=R?4:3,X;t[105]!==z||t[106]!==Ve?(X=(0,Z.jsx)(B,{readOnly:!0,value:z,rows:Ve,className:`text-xs leading-relaxed`,onFocus:Pt,onClick:Ft}),t[105]=z,t[106]=Ve,t[107]=X):X=t[107];let He;t[108]===R?He=t[109]:(He=R?(0,Z.jsx)(`div`,{className:`flex justify-center rounded-xl border border-border/60 bg-muted/30 p-4`,children:(0,Z.jsx)(We,{value:R,size:132,level:`M`,marginSize:2,title:`Pairing link — scan to open on another device`})}):null,t[108]=R,t[109]=He);let Ue;t[110]!==X||t[111]!==He?(Ue=(0,Z.jsxs)(re,{className:`space-y-4`,children:[X,He]}),t[110]=X,t[111]=He,t[112]=Ue):Ue=t[112];let Ge;t[113]===Symbol.for(`react.memo_cache_sentinel`)?(Ge=(0,Z.jsx)(b,{variant:`outline`,onClick:()=>g(!1),children:`Done`}),t[113]=Ge):Ge=t[113];let Ke;t[114]===_e?Ke=t[115]:(Ke=le?(0,Z.jsx)(b,{variant:`outline`,size:`xs`,onClick:_e,children:`Copy code`}):null,t[114]=_e,t[115]=Ke);let Ye;t[116]===Ke?Ye=t[117]:(Ye=(0,Z.jsxs)(F,{variant:`bare`,children:[Ge,Ke]}),t[116]=Ke,t[117]=Ye);let Xe;t[118]!==Y||t[119]!==Ue||t[120]!==Ye?(Xe=(0,Z.jsxs)(I,{className:`max-w-md`,children:[Y,Ue,Ye]}),t[118]=Y,t[119]=Ue,t[120]=Ye,t[121]=Xe):Xe=t[121];let Ze;t[122]!==Oe||t[123]!==ke||t[124]!==Ae||t[125]!==je||t[126]!==Xe?(Ze=(0,Z.jsxs)(Oe,{open:ke,onOpenChange:Ae,children:[je,Xe]}),t[122]=Oe,t[123]=ke,t[124]=Ae,t[125]=je,t[126]=Xe,t[127]=Ze):Ze=t[127];let Qe=s===n.id,$e;t[128]!==c||t[129]!==n.id?($e=()=>void c(n.id),t[128]=c,t[129]=n.id,t[130]=$e):$e=t[130];let et=s===n.id?`Revoking…`:`Revoke`,tt;t[131]!==Qe||t[132]!==$e||t[133]!==et?(tt=(0,Z.jsx)(b,{size:`xs`,variant:`destructive-outline`,disabled:Qe,onClick:$e,children:et}),t[131]=Qe,t[132]=$e,t[133]=et,t[134]=tt):tt=t[134];let nt;t[135]!==Me||t[136]!==Ze||t[137]!==tt?(nt=(0,Z.jsxs)(`div`,{className:Me,children:[Ze,tt]}),t[135]=Me,t[136]=Ze,t[137]=tt,t[138]=nt):nt=t[138];let at;t[139]!==Pe||t[140]!==Fe||t[141]!==nt?(at=(0,Z.jsxs)(`div`,{className:Pe,children:[Fe,nt]}),t[139]=Pe,t[140]=Fe,t[141]=nt,t[142]=at):at=t[142];let ot;return t[143]!==U||t[144]!==at?(ot=(0,Z.jsx)(`div`,{className:U,children:at}),t[143]=U,t[144]=at,t[145]=ot):ot=t[145],ot}),bt=(0,W.memo)(function(e){let t=(0,G.c)(51),{clientSession:n,presentation:r,revokingClientSessionId:i,onRevokeSession:a}=e,o=r===void 0?`current`:r,s=Ne(1e3),c=n.current||n.connected,l=n.lastConnectedAt,u;t[0]!==c||t[1]!==l||t[2]!==s?(u=c?l?`Connected for ${A(l,s)}`:`Connected`:l?`Last connected at ${qe(l)}`:`Not connected yet.`,t[0]=c,t[1]=l,t[2]=s,t[3]=u):u=t[3];let d=u,f=n.role===`owner`?`Owner`:`Client`,p;t[4]===n.client.deviceType?p=t[5]:(p=n.client.deviceType===`unknown`?null:n.client.deviceType[0]?.toUpperCase()+n.client.deviceType.slice(1),t[4]=n.client.deviceType,t[5]=p);let m=n.client.os??null,h=n.client.browser??null,g=n.client.ipAddress??null,_;t[6]!==p||t[7]!==m||t[8]!==h||t[9]!==g?(_=[p,m,h,g].filter(It),t[6]=p,t[7]=m,t[8]=h,t[9]=g,t[10]=_):_=t[10];let v=_,y;t[11]!==n.client.browser||t[12]!==n.client.label||t[13]!==n.client.os||t[14]!==n.subject?(y=n.client.label??([n.client.os,n.client.browser].filter(Boolean).join(` · `)||n.subject),t[11]=n.client.browser,t[12]=n.client.label,t[13]=n.client.os,t[14]=n.subject,t[15]=y):y=t[15];let x=y,S;t[16]===o?S=t[17]:(S=it(o),t[16]=o,t[17]=S);let C=c?`bg-success`:`bg-muted-foreground/30`,w=c?`bg-success/60 duration-2000`:null,T;t[18]!==d||t[19]!==C||t[20]!==w?(T=(0,Z.jsx)(Je,{tooltipText:d,dotClassName:C,pingClassName:w}),t[18]=d,t[19]=C,t[20]=w,t[21]=T):T=t[21];let E;t[22]===x?E=t[23]:(E=(0,Z.jsx)(`h3`,{className:`text-sm font-medium text-foreground`,children:x}),t[22]=x,t[23]=E);let D;t[24]===n.current?D=t[25]:(D=n.current?(0,Z.jsx)(`span`,{className:`text-[10px] text-muted-foreground/80 rounded-md border border-border/50 bg-muted/50 px-1 py-0.5`,children:`This device`}):null,t[24]=n.current,t[25]=D);let O;t[26]!==T||t[27]!==E||t[28]!==D?(O=(0,Z.jsxs)(`div`,{className:`flex min-h-5 items-center gap-1.5`,children:[T,E,D]}),t[26]=T,t[27]=E,t[28]=D,t[29]=O):O=t[29];let k;t[30]!==v||t[31]!==f?(k=[f,...v],t[30]=v,t[31]=f,t[32]=k):k=t[32];let j=k.join(` · `),ee;t[33]===j?ee=t[34]:(ee=(0,Z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:j}),t[33]=j,t[34]=ee);let M;t[35]!==O||t[36]!==ee?(M=(0,Z.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-1`,children:[O,ee]}),t[35]=O,t[36]=ee,t[37]=M):M=t[37];let N;t[38]!==n.current||t[39]!==n.sessionId||t[40]!==a||t[41]!==i?(N=n.current?null:(0,Z.jsx)(b,{size:`xs`,variant:`destructive-outline`,disabled:i===n.sessionId,onClick:()=>void a(n.sessionId),children:i===n.sessionId?`Revoking…`:`Revoke`}),t[38]=n.current,t[39]=n.sessionId,t[40]=a,t[41]=i,t[42]=N):N=t[42];let P;t[43]===N?P=t[44]:(P=(0,Z.jsx)(`div`,{className:`flex w-full shrink-0 items-center gap-2 sm:w-auto sm:justify-end`,children:N}),t[43]=N,t[44]=P);let F;t[45]!==M||t[46]!==P?(F=(0,Z.jsxs)(`div`,{className:rt,children:[M,P]}),t[45]=M,t[46]=P,t[47]=F):F=t[47];let I;return t[48]!==F||t[49]!==S?(I=(0,Z.jsx)(`div`,{className:S,children:F}),t[48]=F,t[49]=S,t[50]=I):I=t[50],I}),xt=(0,W.memo)(function({clientSessions:e,isRevokingOtherClients:t,onRevokeOtherClients:n}){let[r,i]=(0,W.useState)(!1),[a,o]=(0,W.useState)(``),[s,c]=(0,W.useState)(!1),l=(0,W.useCallback)(async()=>{c(!0);try{await ge(a),o(``),i(!1)}catch(e){let t=e instanceof Error?e.message:`Failed to create pairing URL.`;H.add(V({type:`error`,title:`Could not create pairing URL`,description:t}))}finally{c(!1)}},[a]);return(0,Z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Z.jsx)(b,{size:`xs`,variant:`destructive-outline`,disabled:t||e.every(e=>e.current),onClick:()=>void n(),children:t?`Revoking…`:`Revoke others`}),(0,Z.jsxs)(oe,{open:r,onOpenChange:e=>{i(e),e||o(``)},children:[(0,Z.jsx)(ee,{render:(0,Z.jsxs)(b,{size:`xs`,variant:`default`,children:[(0,Z.jsx)(le,{className:`size-3`}),`Create link`]})}),(0,Z.jsxs)(I,{className:`max-w-sm`,children:[(0,Z.jsxs)(j,{children:[(0,Z.jsx)(M,{children:`Create pairing link`}),(0,Z.jsx)(ae,{children:`Generate a one-time link that another device can use to pair with this backend as an authorized client.`})]}),(0,Z.jsx)(re,{children:(0,Z.jsxs)(`label`,{className:`block`,children:[(0,Z.jsx)(`span`,{className:`mb-1.5 block text-xs font-medium text-foreground`,children:`Client label (optional)`}),(0,Z.jsx)(xe,{value:a,onChange:e=>o(e.target.value),placeholder:`e.g. Living room iPad`,disabled:s,autoFocus:!0})]})}),(0,Z.jsxs)(F,{variant:`bare`,children:[(0,Z.jsx)(b,{variant:`outline`,disabled:s,onClick:()=>i(!1),children:`Cancel`}),(0,Z.jsx)(b,{disabled:s,onClick:()=>void l(),children:s?`Creating…`:`Create link`})]})]})]})]})}),St=(0,W.memo)(function(e){let t=(0,G.c)(33),{endpointUrl:n,endpoints:r,defaultEndpointKey:i,presentation:a,isLoading:o,pairingLinks:s,clientSessions:c,revokingPairingLinkId:l,revokingClientSessionId:u,onRevokePairingLink:d,onRevokeClientSession:f}=e,p=a===void 0?`current`:a,m;if(t[0]!==i||t[1]!==n||t[2]!==r||t[3]!==d||t[4]!==s||t[5]!==p||t[6]!==l){let e;t[8]!==i||t[9]!==n||t[10]!==r||t[11]!==d||t[12]!==p||t[13]!==l?(e=e=>(0,Z.jsx)(yt,{pairingLink:e,endpointUrl:n,endpoints:r,defaultEndpointKey:i,presentation:p,revokingPairingLinkId:l,onRevoke:d},e.id),t[8]=i,t[9]=n,t[10]=r,t[11]=d,t[12]=p,t[13]=l,t[14]=e):e=t[14],m=s.map(e),t[0]=i,t[1]=n,t[2]=r,t[3]=d,t[4]=s,t[5]=p,t[6]=l,t[7]=m}else m=t[7];let h;if(t[15]!==c||t[16]!==f||t[17]!==p||t[18]!==u){let e;t[20]!==f||t[21]!==p||t[22]!==u?(e=e=>(0,Z.jsx)(bt,{clientSession:e,presentation:p,revokingClientSessionId:u,onRevokeSession:f},e.sessionId),t[20]=f,t[21]=p,t[22]=u,t[23]=e):e=t[23],h=c.map(e),t[15]=c,t[16]=f,t[17]=p,t[18]=u,t[19]=h}else h=t[19];let g;t[24]!==c.length||t[25]!==o||t[26]!==s.length||t[27]!==p?(g=s.length===0&&c.length===0&&!o?(0,Z.jsx)(`div`,{className:it(p),children:(0,Z.jsx)(`p`,{className:`text-xs text-muted-foreground/60`,children:`No pairing links or client sessions.`})}):null,t[24]=c.length,t[25]=o,t[26]=s.length,t[27]=p,t[28]=g):g=t[28];let _;return t[29]!==m||t[30]!==h||t[31]!==g?(_=(0,Z.jsxs)(Z.Fragment,{children:[m,h,g]}),t[29]=m,t[30]=h,t[31]=g,t[32]=_):_=t[32],_}),Ct=(0,W.memo)(function(e){let t=(0,G.c)(50),{endpoint:n,isDefault:r,presentation:i,onSetDefault:a,onSetupTailscaleServe:o,onDisableTailscaleServe:s,isUpdatingTailscaleServe:c}=e,l=i===void 0?`current`:i,u=n.status===`available`,d;t[0]===n?d=t[1]:(d=ht(n)&&n.status!==`available`,t[0]=n,t[1]=d);let f=d,p;t[2]===n?p=t[3]:(p=ht(n)&&n.status===`available`,t[2]=n,t[3]=p);let m=p,h=!f,g=l===`endpoint-rail`,_;t[4]!==u||t[5]!==l?(_=at(l,u),t[4]=u,t[5]=l,t[6]=_):_=t[6];let v;t[7]!==r||t[8]!==g?(v=g&&r?(0,Z.jsx)(`span`,{className:`absolute inset-y-2 left-0 w-1 rounded-r-full bg-primary`,"aria-hidden":!0}):null,t[7]=r,t[8]=g,t[9]=v):v=t[9];let y;t[10]===n.label?y=t[11]:(y=(0,Z.jsx)(`h3`,{className:`shrink-0 text-sm leading-5 font-medium text-foreground`,children:n.label}),t[10]=n.label,t[11]=y);let x;t[12]!==n.httpBaseUrl||t[13]!==h?(x=h?(0,Z.jsx)(`p`,{className:`min-w-0 truncate text-xs leading-5 text-muted-foreground`,title:n.httpBaseUrl,children:n.httpBaseUrl}):null,t[12]=n.httpBaseUrl,t[13]=h,t[14]=x):x=t[14];let S;t[15]===u?S=t[16]:(S=u?null:(0,Z.jsx)(`span`,{className:`shrink-0 rounded-md border border-border/70 px-1 py-0.5 text-[10px] text-muted-foreground`,children:`Setup required`}),t[15]=u,t[16]=S);let C;t[17]!==y||t[18]!==x||t[19]!==S?(C=(0,Z.jsxs)(`div`,{className:`flex min-w-0 items-baseline gap-3`,children:[y,x,S]}),t[17]=y,t[18]=x,t[19]=S,t[20]=C):C=t[20];let w;t[21]===r?w=t[22]:(w=r?(0,Z.jsx)(`span`,{className:`rounded-md border border-primary/30 bg-primary/10 px-1 py-0.5 text-[10px] text-primary`,children:`Default`}):null,t[21]=r,t[22]=w);let T;t[23]!==n||t[24]!==c||t[25]!==f||t[26]!==o?(T=f?(0,Z.jsx)(b,{size:`xs`,variant:`outline`,onClick:()=>o(n),disabled:c,children:c?`Restarting…`:`Setup`}):null,t[23]=n,t[24]=c,t[25]=f,t[26]=o,t[27]=T):T=t[27];let E;t[28]!==m||t[29]!==n||t[30]!==c||t[31]!==s?(E=m?(0,Z.jsx)(b,{size:`xs`,variant:`destructive-outline`,onClick:()=>s(n),disabled:c,children:c?`Restarting…`:`Disable`}):null,t[28]=m,t[29]=n,t[30]=c,t[31]=s,t[32]=E):E=t[32];let D;t[33]!==n||t[34]!==r||t[35]!==f||t[36]!==a?(D=!f&&!r?(0,Z.jsx)(b,{size:`xs`,variant:`outline`,onClick:()=>a(n),children:`Set as default`}):null,t[33]=n,t[34]=r,t[35]=f,t[36]=a,t[37]=D):D=t[37];let O;t[38]!==w||t[39]!==T||t[40]!==E||t[41]!==D?(O=(0,Z.jsxs)(`div`,{className:`ml-auto flex min-h-6 shrink-0 items-center justify-end gap-2`,children:[w,T,E,D]}),t[38]=w,t[39]=T,t[40]=E,t[41]=D,t[42]=O):O=t[42];let k;t[43]!==O||t[44]!==C?(k=(0,Z.jsxs)(`div`,{className:`flex min-h-6 min-w-0 flex-col gap-2 sm:-my-0.5 sm:flex-row sm:items-center`,children:[C,O]}),t[43]=O,t[44]=C,t[45]=k):k=t[45];let A;return t[46]!==k||t[47]!==_||t[48]!==v?(A=(0,Z.jsxs)(`div`,{className:_,children:[v,k]}),t[46]=k,t[47]=_,t[48]=v,t[49]=A):A=t[49],A});function wt(e){let t=(0,G.c)(14),{endpoint:n,hiddenEndpointCount:r,expanded:i,onToggleExpanded:a,fallback:o}=e;if(!n)return o;let s;t[0]===n.httpBaseUrl?s=t[1]:(s=(0,Z.jsx)(`span`,{className:`min-w-0 truncate`,children:n.httpBaseUrl}),t[0]=n.httpBaseUrl,t[1]=s);let c;t[2]!==i||t[3]!==r?(c=r>0?(0,Z.jsx)(`span`,{className:`shrink-0 text-xs font-medium`,children:i?`Hide`:`+${r}`}):null,t[2]=i,t[3]=r,t[4]=c):c=t[4];let l;t[5]!==s||t[6]!==c?(l=(0,Z.jsxs)(Z.Fragment,{children:[s,c]}),t[5]=s,t[6]=c,t[7]=l):l=t[7];let u=l,d;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Z.jsx)(`span`,{className:`shrink-0`,children:`Reachable at`}),t[8]=d):d=t[8];let f;return t[9]!==i||t[10]!==r||t[11]!==a||t[12]!==u?(f=(0,Z.jsxs)(`span`,{className:`inline-flex min-w-0 max-w-full items-baseline gap-1`,children:[d,r>0?(0,Z.jsx)(`button`,{type:`button`,className:`inline-flex min-w-0 max-w-full items-baseline gap-2 border-b border-dotted border-muted-foreground/60 text-left text-muted-foreground underline-offset-4 hover:border-foreground hover:text-foreground`,onClick:a,"aria-expanded":i,children:u}):(0,Z.jsx)(`span`,{className:`inline-flex min-w-0 max-w-full items-baseline gap-2`,children:u})]}),t[9]=i,t[10]=r,t[11]=a,t[12]=u,t[13]=f):f=t[13],f}function Tt(e){let t=(0,G.c)(57),{environmentId:n,reconnectingEnvironmentId:r,disconnectingEnvironmentId:a,removingEnvironmentId:o,onConnect:s,onDisconnect:c,onRemove:l}=e,d=Ne(1e3),f;t[0]===n?f=t[1]:(f=e=>e.byId[n]??null,t[0]=n,t[1]=f);let m=i(f),h;t[2]===n?h=t[3]:(h=e=>e.byId[n]??null,t[2]=n,t[3]=h);let g=u(h);if(!m)return null;let _=g?.connectionState??`disconnected`,v=_===`connected`,y=_===`connecting`||r===n,x=a===n,S=_===`connected`?`bg-success`:_===`connecting`?`bg-warning`:_===`error`?`bg-destructive`:`bg-muted-foreground/40`,C=g?.role?g.role===`owner`?`Owner`:`Client`:null,w=g?.descriptor?.label??null??m.label,T;t[4]!==d||t[5]!==m||t[6]!==g?(T=Ye(g,m,d),t[4]=d,t[5]=m,t[6]=g,t[7]=T):T=t[7];let E=T,D=g?.serverConfig,O;t[8]===D?O=t[9]:(O=p(D),t[8]=D,t[9]=O);let k=O,A;t[10]===m.desktopSsh?A=t[11]:(A=m.desktopSsh?`SSH ${Xe(m.desktopSsh)}`:null,t[10]=m.desktopSsh,t[11]=A);let j;t[12]===m.lastConnectedAt?j=t[13]:(j=m.lastConnectedAt?`Last connected ${qe(m.lastConnectedAt)}`:null,t[12]=m.lastConnectedAt,t[13]=j);let ee;t[14]!==C||t[15]!==A||t[16]!==j?(ee=[A,C,j].filter(Et),t[14]=C,t[15]=A,t[16]=j,t[17]=ee):ee=t[17];let M=ee,N=_===`connecting`?`bg-warning/60 duration-2000`:null,P;t[18]!==S||t[19]!==E||t[20]!==N?(P=(0,Z.jsx)(Je,{tooltipText:E,dotClassName:S,pingClassName:N}),t[18]=S,t[19]=E,t[20]=N,t[21]=P):P=t[21];let F;t[22]===w?F=t[23]:(F=(0,Z.jsx)(`h3`,{className:`text-sm font-medium text-foreground`,children:w}),t[22]=w,t[23]=F);let I;t[24]!==P||t[25]!==F?(I=(0,Z.jsxs)(`div`,{className:`flex min-h-5 items-center gap-1.5`,children:[P,F]}),t[24]=P,t[25]=F,t[26]=I):I=t[26];let te;t[27]===M?te=t[28]:(te=M.length>0?(0,Z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:M.join(` · `)}):null,t[27]=M,t[28]=te);let ne;t[29]===k?ne=t[30]:(ne=k?(0,Z.jsxs)(`p`,{className:`flex items-center gap-1 text-warning text-xs`,children:[(0,Z.jsx)(ce,{className:`size-3.5 shrink-0`}),`Version drift: client `,k.clientVersion,`, server`,` `,k.serverVersion,`.`]}):null,t[29]=k,t[30]=ne);let L;t[31]!==I||t[32]!==te||t[33]!==ne?(L=(0,Z.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-1`,children:[I,te,ne]}),t[31]=I,t[32]=te,t[33]=ne,t[34]=L):L=t[34];let R=v?x:y,z;t[35]!==n||t[36]!==v||t[37]!==s||t[38]!==c?(z=()=>void(v?c(n):s(n)),t[35]=n,t[36]=v,t[37]=s,t[38]=c,t[39]=z):z=t[39];let B=v?x?`Disconnecting…`:`Disconnect`:y?`Connecting…`:`Connect`,re;t[40]!==R||t[41]!==z||t[42]!==B?(re=(0,Z.jsx)(b,{size:`xs`,variant:`outline`,disabled:R,onClick:z,children:B}),t[40]=R,t[41]=z,t[42]=B,t[43]=re):re=t[43];let ie=o===n,ae;t[44]!==n||t[45]!==l?(ae=()=>void l(n),t[44]=n,t[45]=l,t[46]=ae):ae=t[46];let oe=o===n?`Removing…`:`Remove`,V;t[47]!==ie||t[48]!==ae||t[49]!==oe?(V=(0,Z.jsx)(b,{size:`xs`,variant:`destructive-outline`,disabled:ie,onClick:ae,children:oe}),t[47]=ie,t[48]=ae,t[49]=oe,t[50]=V):V=t[50];let H;t[51]!==re||t[52]!==V?(H=(0,Z.jsxs)(`div`,{className:`flex w-full shrink-0 items-center gap-2 sm:w-auto sm:justify-end`,children:[re,V]}),t[51]=re,t[52]=V,t[53]=H):H=t[53];let se;return t[54]!==L||t[55]!==H?(se=(0,Z.jsx)(`div`,{className:tt,children:(0,Z.jsxs)(`div`,{className:rt,children:[L,H]})}),t[54]=L,t[55]=H,t[56]=se):se=t[56],se}function Et(e){return e!==null}var Dt=(0,W.memo)(function(e){let t=(0,G.c)(24),{target:n,connectingHostAlias:r,onConnect:i}=e,a;t[0]===n?a=t[1]:(a=Xe(n),t[0]=n,t[1]=a);let o=a,s=o!==n.alias,c=r===n.alias?`Adding…`:`Add environment`,l;t[2]===n.alias?l=t[3]:(l=(0,Z.jsx)(`h3`,{className:`truncate text-sm font-medium text-foreground`,children:n.alias}),t[2]=n.alias,t[3]=l);let u;t[4]!==o||t[5]!==s?(u=s?(0,Z.jsx)(`p`,{className:`truncate text-xs text-muted-foreground`,children:o}):null,t[4]=o,t[5]=s,t[6]=u):u=t[6];let d;t[7]!==l||t[8]!==u?(d=(0,Z.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[l,u]}),t[7]=l,t[8]=u,t[9]=d):d=t[9];let f=r===n.alias,p;t[10]!==i||t[11]!==n?(p=()=>i(n),t[10]=i,t[11]=n,t[12]=p):p=t[12];let m;t[13]!==r||t[14]!==n.alias?(m=r===n.alias?(0,Z.jsx)(ue,{className:`size-3 animate-spin`}):null,t[13]=r,t[14]=n.alias,t[15]=m):m=t[15];let h;t[16]!==c||t[17]!==f||t[18]!==p||t[19]!==m?(h=(0,Z.jsx)(`div`,{className:`flex w-full shrink-0 items-center gap-2 sm:w-auto sm:justify-end`,children:(0,Z.jsxs)(b,{size:`xs`,variant:`outline`,disabled:f,onClick:p,children:[m,c]})}),t[16]=c,t[17]=f,t[18]=p,t[19]=m,t[20]=h):h=t[20];let g;return t[21]!==d||t[22]!==h?(g=(0,Z.jsx)(`div`,{className:`border-t border-border/60 px-4 py-3 first:border-t-0 sm:px-5`,children:(0,Z.jsxs)(`div`,{className:rt,children:[d,h]})}),t[21]=d,t[22]=h,t[23]=g):g=t[23],g});function Ot(){let e=window.desktopBridge,[t,n]=(0,W.useState)(e?`owner`:null),[r,u]=(0,W.useState)(null),m=i(e=>e.byId),h=(0,W.useMemo)(()=>Object.values(m).toSorted((e,t)=>e.label.localeCompare(t.label)).map(e=>e.environmentId),[m]),y=(0,W.useMemo)(()=>Object.values(m).reduce((e,t)=>(t.desktopSsh?.alias&&(e[t.desktopSsh.alias]=t),e),{}),[m]),x=(0,W.useMemo)(()=>{let e=new Set;for(let t of Object.values(m)){let n=t.desktopSsh;n&&(e.add(n.alias),e.add(Xe(n)))}return e},[m]),[S,T]=(0,W.useState)([]),[E,D]=(0,W.useState)(!1),[O,k]=(0,W.useState)(!1),[A,P]=(0,W.useState)(null),[te,ne]=(0,W.useState)(null),[B,ie]=(0,W.useState)(null),[se,de]=(0,W.useState)([]),[fe,he]=(0,W.useState)(null),[ge,ye]=(0,W.useState)([]),[be,we]=(0,W.useState)([]),[Te,Ne]=(0,W.useState)(null),[Le,G]=(0,W.useState)(!1),[Re,ze]=(0,W.useState)(null),[Be,K]=(0,W.useState)(null),[q,J]=(0,W.useState)(!1),[Y,Ve]=(0,W.useState)(!1),[X,He]=(0,W.useState)(`remote`),[Ue,We]=(0,W.useState)(``),[Ke,qe]=(0,W.useState)(``),[Je,Ye]=(0,W.useState)(``),[nt,rt]=(0,W.useState)(``),[at,_t]=(0,W.useState)(``),[vt,Q]=(0,W.useState)(null),[yt,bt]=(0,W.useState)(!1),Et=(0,W.useMemo)(()=>S.filter(e=>{let t=Xe(e);return!x.has(e.alias)&&!x.has(t)}),[S,x]),[Ot,kt]=(0,W.useState)(null),[At,jt]=(0,W.useState)(null),[Mt,Nt]=(0,W.useState)(null),[Pt,Ft]=(0,W.useState)(!1),[It,Lt]=(0,W.useState)(!1),[Rt,zt]=(0,W.useState)(!1),[Bt,Vt]=(0,W.useState)(null),[Ht,Ut]=(0,W.useState)(!1),[Wt,Gt]=(0,W.useState)(String(Ge)),[Kt,qt]=(0,W.useState)(null),Jt=p(a()),[Yt,Xt]=(0,W.useState)(!1),Zt=w(e=>e.defaultAdvertisedEndpointKey),Qt=w(e=>e.setDefaultAdvertisedEndpointKey),$t=t===`owner`,en=e?B?.mode===`network-accessible`:r===`remote-reachable`,tn=Wt.trim(),nn=Number(tn),rn=/^\d+$/u.test(tn)&&Number.isInteger(nn)&&nn>=1&&nn<=65535,an=(0,W.useMemo)(()=>{if(!Bt)return null;if(!rn||nn===Ge)return Bt.httpBaseUrl;try{let e=new URL(Bt.httpBaseUrl);return e.port=String(nn),e.toString().replace(/\/$/u,``)}catch{return Bt.httpBaseUrl}},[rn,nn,Bt]),on=(0,W.useCallback)(async t=>{if(e){Ft(!0),he(null);try{ie(await e.setServerExposureMode(t?`network-accessible`:`local-only`)),Lt(!1),Ft(!1)}catch(e){let t=e instanceof Error?e.message:`Failed to update network exposure.`;Lt(!1),he(t),H.add(V({type:`error`,title:`Could not update network access`,description:t})),Ft(!1)}}},[e]),sn=(0,W.useCallback)(()=>{Kt!==null&&on(Kt===`network-accessible`)},[on,Kt]),cn=(0,W.useCallback)(async()=>{if(e&&rn){zt(!0),he(null);try{ie(await e.setTailscaleServeEnabled({enabled:!0,port:nn})),Vt(null)}catch(e){let t=e instanceof Error?e.message:`Failed to configure Tailscale HTTPS.`;he(t),H.add(V({type:`error`,title:`Could not set up Tailscale HTTPS`,description:t}))}finally{zt(!1)}}},[e,rn,nn]),ln=(0,W.useCallback)(e=>{Gt(String(B?.tailscaleServePort??Ge)),Vt(e)},[B?.tailscaleServePort]),un=(0,W.useCallback)(async()=>{if(e){zt(!0),he(null);try{ie(await e.setTailscaleServeEnabled({enabled:!1,port:B?.tailscaleServePort??Ge})),Ut(!1)}catch(e){let t=e instanceof Error?e.message:`Failed to disable Tailscale HTTPS.`;he(t),H.add(V({type:`error`,title:`Could not disable Tailscale HTTPS`,description:t}))}finally{zt(!1)}}},[e,B?.tailscaleServePort]),dn=(0,W.useCallback)(e=>{Ut(!0)},[]),fn=(0,W.useCallback)(async e=>{ze(e),Ne(null);try{await me(e)}catch(e){let t=e instanceof Error?e.message:`Failed to revoke pairing link.`;Ne(t),H.add(V({type:`error`,title:`Could not revoke pairing link`,description:t}))}finally{ze(null)}},[]),pn=(0,W.useCallback)(async e=>{K(e),Ne(null);try{await pe(e)}catch(e){let t=e instanceof Error?e.message:`Failed to revoke client access.`;Ne(t),H.add(V({type:`error`,title:`Could not revoke client access`,description:t}))}finally{K(null)}},[]),mn=(0,W.useCallback)(async()=>{J(!0),Ne(null);try{let e=await ve();H.add({type:`success`,title:e===1?`Revoked 1 other client`:`Revoked ${e} clients`,description:`Other paired clients will need a new pairing link before reconnecting.`})}catch(e){let t=e instanceof Error?e.message:`Failed to revoke other clients.`;Ne(t),H.add(V({type:`error`,title:`Could not revoke other clients`,description:t}))}finally{J(!1)}},[]),hn=(0,W.useCallback)(async()=>{if(X===`ssh`){bt(!0),Q(null);try{let e=await o(Ze({host:Je,username:nt,port:at}),{label:``});We(``),qe(``),Ye(``),rt(``),_t(``),Ve(!1),H.add({type:`success`,title:`Environment connected`,description:`${e.label} is ready over an SSH-managed tunnel.`})}catch(e){Q(et(e))}finally{bt(!1)}return}bt(!0),Q(null);try{let e=await l({label:``,...$e({host:Ue,pairingCode:Ke})});We(``),qe(``),Ye(``),rt(``),_t(``),Ve(!1),H.add({type:`success`,title:`Backend added`,description:`${e.label} is now saved and will reconnect on app startup.`})}catch(e){let t=e instanceof Error?e.message:`Failed to add backend.`;Q(t),H.add(V({type:`error`,title:`Could not add backend`,description:t}))}finally{bt(!1)}},[Ue,X,Ke,Je,at,nt]),gn=(0,W.useCallback)(async e=>{kt(e),Q(null);try{await f(e)}catch(e){let t=e instanceof Error?e.message:`Failed to connect backend.`;Q(t),H.add(V({type:`error`,title:`Could not connect backend`,description:t}))}finally{kt(null)}},[]),_n=(0,W.useCallback)(async e=>{jt(e),Q(null);try{await d(e)}catch(e){let t=e instanceof Error?e.message:`Failed to disconnect backend.`;Q(t),H.add(V({type:`error`,title:`Could not disconnect backend`,description:t}))}finally{jt(null)}},[]),vn=(0,W.useCallback)(async e=>{Nt(e),Q(null);try{await c(e)}catch(e){let t=e instanceof Error?e.message:`Failed to remove backend.`;Q(t),H.add(V({type:`error`,title:`Could not remove backend`,description:t}))}finally{Nt(null)}},[]),yn=(0,W.useCallback)(async()=>{if(!e){T([]),D(!1),P(null);return}k(!0),P(null);try{T(await e.discoverSshHosts()),D(!0)}catch(e){P(e instanceof Error?e.message:`Failed to discover SSH hosts.`),D(!0)}finally{k(!1)}},[e]),bn=(0,W.useCallback)(async(e,t)=>{ne(e.alias),X===`ssh`?Q(null):P(null);try{let n=await o(e,t===void 0?void 0:{label:t});Ye(``),rt(``),_t(``),Ve(!1),H.add({type:`success`,title:y[e.alias]?`Environment reconnected`:`Environment connected`,description:`${n.label} is ready over an SSH-managed tunnel.`})}catch(e){let t=et(e);X===`ssh`?Q(t):P(t)}finally{ne(null)}},[X,y]);(0,W.useEffect)(()=>{!e||!Y||X!==`ssh`||E||O||yn()},[Y,e,E,O,yn,X]),(0,W.useEffect)(()=>{if(e){n(`owner`);return}let t=!1;return _e().then(e=>{t||(n(e.authenticated?e.role??null:null),u(e.auth.policy))}).catch(()=>{t||(n(null),u(null))}),()=>{t=!0}},[e]),(0,W.useEffect)(()=>{if(!$t)return;let t=!1;G(!0);let n=s().client.server.subscribeAuthAccess(e=>{if(!t){switch(e.type){case`snapshot`:ye(ot(e.payload.pairingLinks.map(e=>ct(e)))),we(st(e.payload.clientSessions.map(e=>lt(e))));break;case`pairingLinkUpserted`:ye(t=>ut(t,ct(e.payload)));break;case`pairingLinkRemoved`:ye(t=>dt(t,e.payload.id));break;case`clientUpserted`:we(t=>ft(t,lt(e.payload)));break;case`clientRemoved`:we(t=>pt(t,e.payload.sessionId));break}Ne(null),G(!1)}},{onResubscribe:()=>{t||G(!0)}});return e?(e.getServerExposureState().then(e=>{t||ie(e)}).catch(e=>{t||he(e instanceof Error?e.message:`Failed to load network exposure state.`)}),e.getAdvertisedEndpoints().then(e=>{t||de(e)}).catch(e=>{t||he(e instanceof Error?e.message:`Failed to load reachable endpoints.`)})):(ie(null),de([]),he(null)),()=>{t=!0,n()}},[$t,e]),(0,W.useEffect)(()=>{$t||(G(!1),ye([]),we([]),Ne(null),ie(null),de([]),he(null))},[$t]);let xn=(0,W.useMemo)(()=>ge.filter(e=>e.role===`client`),[ge]),$=(0,W.useMemo)(()=>se.find(ht)??null,[se]),Sn=(0,W.useMemo)(()=>en?se.filter(e=>!ht(e)):[],[se,en]),Cn=(0,W.useMemo)(()=>$?[...Sn,$]:Sn,[$,Sn]),wn=en||$?.status===`available`,Tn=(0,W.useMemo)(()=>mt(Sn,Zt),[Zt,Sn]),En=(0,W.useMemo)(()=>Tn??mt($?[$]:[],Zt),[Zt,Tn,$]),Dn=En?gt(En):null,On=(0,W.useCallback)(e=>{Qt(gt(e))},[Qt]),kn=(0,W.useCallback)(e=>{let t=Qe(e);if(t){We(t.host),qe(t.pairingCode);return}We(e)},[]),An=e=>{let t=X===e.mode;return(0,Z.jsxs)(`button`,{type:`button`,"aria-pressed":t,className:g(`group flex min-h-24 items-start gap-3 rounded-lg border p-4 text-left`,t?`border-primary/50 bg-primary/5`:`border-border/60 hover:bg-muted/40`),disabled:yt,onClick:()=>{He(e.mode)},children:[e.icon?(0,Z.jsx)(`span`,{className:g(`mt-0.5 flex size-8 shrink-0 items-center justify-center rounded-md border`,t?`border-primary/30 bg-primary/10 text-primary`:`border-border/70 bg-background text-muted-foreground group-hover:text-foreground`),children:e.icon}):null,(0,Z.jsxs)(`span`,{className:`min-w-0`,children:[(0,Z.jsx)(`span`,{className:`block text-sm font-medium text-foreground`,children:e.title}),(0,Z.jsx)(`span`,{className:`mt-1 block text-xs leading-relaxed text-muted-foreground`,children:e.description})]})]})};return(0,Z.jsxs)(Fe,{children:[$t?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(Pe,{title:`Manage local backend`,children:[Jt?(0,Z.jsx)(U,{title:`Version drift`,description:(0,Z.jsxs)(`span`,{className:`flex items-center gap-1 text-warning`,children:[(0,Z.jsx)(ce,{className:`size-3.5 shrink-0`}),`Client `,Jt.clientVersion,`, server`,` `,Jt.serverVersion,`. Sync them if RPC calls or reconnects fail.`]})}):null,e?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(U,{title:`Network access`,description:en?(0,Z.jsx)(wt,{endpoint:Tn,hiddenEndpointCount:Math.max(Sn.length-1,0),expanded:Yt,onToggleExpanded:()=>Xt(e=>!e),fallback:B?.endpointUrl?`Reachable at ${B.endpointUrl}`:B?.advertisedHost?`Exposed on all interfaces. Pairing links use ${B.advertisedHost}.`:`Exposed on all interfaces.`}):B?`Limited to this machine.`:`Loading…`,status:fe?(0,Z.jsx)(`span`,{className:`block text-destructive`,children:fe}):null,control:(0,Z.jsx)(R,{checked:B?.mode===`network-accessible`,disabled:!B||Pt,onCheckedChange:e=>{qt(e?`network-accessible`:`local-only`),Lt(!0)},"aria-label":`Enable network access`})}),(e=>Yt?Sn.map(t=>(0,Z.jsx)(Ct,{endpoint:t,isDefault:gt(t)===Dn,presentation:e,onSetDefault:On,onSetupTailscaleServe:ln,onDisableTailscaleServe:dn,isUpdatingTailscaleServe:Rt},t.id)):null)(`endpoint-rail`),(0,Z.jsx)(U,{title:`Tailscale HTTPS`,description:$?$.status===`available`?$.httpBaseUrl:`Use Tailscale Serve to expose this backend through a MagicDNS HTTPS URL.`:`Start Tailscale to set up HTTPS access through MagicDNS.`,control:$?(0,Z.jsx)(R,{checked:$.status===`available`,disabled:Rt,onCheckedChange:e=>{if(e){ln($);return}dn($)},"aria-label":`Enable Tailscale HTTPS`}):null})]}):(0,Z.jsx)(U,{title:`Network access`,description:r===`remote-reachable`?`This backend is already configured for remote access. Network exposure changes must be made where the server is launched.`:`This backend is only reachable on this machine. Restart it with a non-loopback host to enable remote pairing.`,control:(0,Z.jsxs)(v,{children:[(0,Z.jsx)(_,{render:(0,Z.jsx)(`span`,{className:`inline-flex`,children:(0,Z.jsx)(R,{checked:en,disabled:!0,"aria-label":`Enable network access`})})}),(0,Z.jsx)(C,{side:`top`,children:`Network exposure changes restart the backend and must be controlled where the server process is launched.`})]})})]}),wn?(0,Z.jsx)(Pe,{title:`Authorized clients`,headerAction:(0,Z.jsx)(xt,{clientSessions:be,isRevokingOtherClients:q,onRevokeOtherClients:mn}),children:(e=>(0,Z.jsxs)(Z.Fragment,{children:[Te?(0,Z.jsx)(`div`,{className:it(e),children:(0,Z.jsx)(`p`,{className:`text-xs text-destructive`,children:Te})}):null,(0,Z.jsx)(St,{endpointUrl:B?.endpointUrl,endpoints:Cn,defaultEndpointKey:Dn,presentation:e,isLoading:Le,pairingLinks:xn,clientSessions:be,revokingPairingLinkId:Re,revokingClientSessionId:Be,onRevokePairingLink:fn,onRevokeClientSession:pn})]}))(`current`)}):null,(0,Z.jsx)(Me,{open:It,onOpenChange:e=>{Pt||Lt(e)},onOpenChangeComplete:e=>{e||qt(null)},children:(0,Z.jsxs)(ke,{children:[(0,Z.jsxs)(Ee,{children:[(0,Z.jsx)(je,{children:Kt===`network-accessible`?`Enable network access?`:`Disable network access?`}),(0,Z.jsx)(Ae,{children:Kt===`network-accessible`?`Ryco will restart to expose this environment over the network.`:`Ryco will restart and limit this environment back to this machine.`})]}),(0,Z.jsxs)(De,{children:[(0,Z.jsx)(Oe,{disabled:Pt,render:(0,Z.jsx)(b,{variant:`outline`,disabled:Pt}),children:`Cancel`}),(0,Z.jsx)(b,{variant:Kt===`local-only`?`destructive`:`default`,onClick:sn,disabled:Kt===null||Pt,children:Pt?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(z,{className:`size-3.5`}),`Restarting…`]}):Kt===`network-accessible`?`Restart and enable`:`Restart and disable`})]})]})}),(0,Z.jsx)(Me,{open:Ht,onOpenChange:e=>{Rt||Ut(e)},children:(0,Z.jsxs)(ke,{children:[(0,Z.jsxs)(Ee,{children:[(0,Z.jsx)(je,{children:`Disable Tailscale HTTPS?`}),(0,Z.jsx)(Ae,{children:`Ryco will restart the local backend without Tailscale Serve.`})]}),(0,Z.jsxs)(De,{children:[(0,Z.jsx)(Oe,{disabled:Rt,render:(0,Z.jsx)(b,{variant:`outline`,disabled:Rt}),children:`Cancel`}),(0,Z.jsx)(b,{variant:`destructive`,onClick:()=>void un(),disabled:Rt,children:Rt?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(z,{className:`size-3.5`}),`Restarting…`]}):`Restart and disable`})]})]})}),(0,Z.jsx)(oe,{open:Bt!==null,onOpenChange:e=>{Rt||e||Vt(null)},children:(0,Z.jsxs)(I,{className:`max-w-md`,children:[(0,Z.jsxs)(j,{children:[(0,Z.jsx)(M,{children:`Set up Tailscale HTTPS?`}),(0,Z.jsx)(ae,{children:`Ryco will restart the local backend with Tailscale Serve enabled and ask Tailscale to proxy HTTPS traffic to this backend.`})]}),(0,Z.jsxs)(re,{className:`space-y-4`,children:[(0,Z.jsxs)(`label`,{className:`block`,children:[(0,Z.jsx)(`span`,{className:`text-sm font-medium text-foreground`,children:`HTTPS port`}),(0,Z.jsx)(xe,{className:`mt-2`,type:`number`,inputMode:`numeric`,min:1,max:65535,step:1,value:Wt,onChange:e=>Gt(e.target.value),disabled:Rt})]}),rn?null:(0,Z.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:`Enter a port from 1 to 65535.`}),(0,Z.jsxs)(`div`,{className:`rounded-md border border-border/70 bg-muted/20 px-3 py-2`,children:[(0,Z.jsx)(`p`,{className:`text-xs font-medium text-muted-foreground`,children:`HTTPS endpoint`}),(0,Z.jsx)(`p`,{className:`mt-1 truncate text-sm text-foreground`,title:an??void 0,children:an??`Pending MagicDNS endpoint`})]})]}),(0,Z.jsxs)(F,{children:[(0,Z.jsx)(L,{disabled:Rt,render:(0,Z.jsx)(b,{variant:`outline`,disabled:Rt}),children:`Cancel`}),(0,Z.jsx)(b,{onClick:()=>void cn(),disabled:Rt||!rn,children:Rt?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(z,{className:`size-3.5`}),`Restarting…`]}):`Enable`})]})]})})]}):(0,Z.jsx)(Pe,{title:`Local backend access`,children:(0,Z.jsx)(U,{title:`Owner tools`,description:`Pairing links and client-session management are only available to owner sessions for this backend.`})}),(0,Z.jsxs)(Pe,{title:`Remote environments`,headerAction:(0,Z.jsxs)(oe,{open:Y,onOpenChange:e=>{Ve(e),e||Q(null)},children:[(0,Z.jsx)(ee,{render:(0,Z.jsxs)(b,{size:`xs`,variant:`outline`,children:[(0,Z.jsx)(le,{className:`size-3`}),`Add environment`]})}),(0,Z.jsxs)(I,{className:`max-h-[80dvh] sm:max-w-3xl`,children:[(0,Z.jsxs)(j,{children:[(0,Z.jsx)(M,{children:`Add Environment`}),(0,Z.jsx)(ae,{children:`Pair another environment to this client.`})]}),(0,Z.jsx)(re,{children:(0,Z.jsxs)(`div`,{className:`space-y-4`,children:[(0,Z.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-2`,children:[An({mode:`remote`,title:`Remote link`,description:`Enter a backend host and pairing code.`,icon:(0,Z.jsx)(Ie,{"aria-hidden":!0,className:`size-4`})}),e?An({mode:`ssh`,title:`SSH`,description:`Use local SSH config, agent, and tunnels for the backend.`,icon:(0,Z.jsx)(N,{"aria-hidden":!0,className:`size-4`})}):null]}),(0,Z.jsx)(Ce,{children:X===`ssh`?(0,Z.jsxs)(`div`,{className:`space-y-4`,children:[(0,Z.jsxs)(`div`,{className:`space-y-3`,children:[(0,Z.jsxs)(`label`,{className:`block`,children:[(0,Z.jsx)(`span`,{className:`mb-1.5 block text-xs font-medium text-foreground`,children:`SSH host or alias`}),(0,Z.jsx)(xe,{value:Je,onChange:e=>Ye(e.target.value),placeholder:`Search hosts or type devbox`,disabled:yt,spellCheck:!1})]}),(0,Z.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-[minmax(0,1fr)_7rem]`,children:[(0,Z.jsxs)(`label`,{className:`block`,children:[(0,Z.jsx)(`span`,{className:`mb-1.5 block text-xs font-medium text-foreground`,children:`Username`}),(0,Z.jsx)(xe,{value:nt,onChange:e=>rt(e.target.value),placeholder:`root`,disabled:yt,spellCheck:!1})]}),(0,Z.jsxs)(`label`,{className:`block`,children:[(0,Z.jsx)(`span`,{className:`mb-1.5 block text-xs font-medium text-foreground`,children:`Port`}),(0,Z.jsx)(xe,{value:at,onChange:e=>_t(e.target.value),placeholder:`22`,inputMode:`numeric`,disabled:yt,spellCheck:!1})]})]}),vt||A?(0,Z.jsx)(`div`,{className:`rounded-md border border-destructive/30 bg-destructive/5 px-3 py-2 text-xs text-destructive`,children:vt??A}):null,(0,Z.jsxs)(b,{variant:`outline`,className:`w-full`,disabled:yt,onClick:()=>void hn(),children:[(0,Z.jsx)(le,{className:`size-3.5`}),yt?`Adding…`:`Add environment`]})]}),(0,Z.jsxs)(`div`,{className:`overflow-hidden rounded-lg border border-border/60`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center justify-between gap-3 border-b border-border/60 bg-muted/30 px-3 py-2`,children:[(0,Z.jsxs)(`div`,{className:`min-w-0`,children:[(0,Z.jsx)(`p`,{className:`text-xs font-medium text-foreground`,children:`Suggested hosts`}),(0,Z.jsx)(`p`,{className:`text-[11px] text-muted-foreground`,children:`From SSH config and known hosts`})]}),(0,Z.jsxs)(b,{size:`xs`,variant:`ghost`,disabled:O,onClick:()=>void yn(),children:[O?(0,Z.jsx)(ue,{className:`size-3 animate-spin`}):(0,Z.jsx)(ue,{className:`size-3`}),`Refresh`]})]}),(0,Z.jsx)(Se,{scrollFade:!0,className:`max-h-56`,children:(0,Z.jsxs)(`div`,{children:[Et.map(e=>(0,Z.jsx)(Dt,{target:e,connectingHostAlias:te,onConnect:e=>void bn(e)},`${e.alias}:${e.hostname}:${e.port??``}`)),E&&!O&&Et.length===0?(0,Z.jsx)(`div`,{className:tt,children:(0,Z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No new SSH hosts were discovered.`})}):null]})})]})]}):(0,Z.jsxs)(`div`,{className:`space-y-4`,children:[(0,Z.jsxs)(`div`,{className:`space-y-3`,children:[(0,Z.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-[minmax(0,1fr)_10rem]`,children:[(0,Z.jsxs)(`label`,{className:`block`,children:[(0,Z.jsx)(`span`,{className:`mb-1.5 block text-xs font-medium text-foreground`,children:`Host`}),(0,Z.jsx)(xe,{value:Ue,onChange:e=>kn(e.target.value),placeholder:`backend.example.com`,disabled:yt,spellCheck:!1})]}),(0,Z.jsxs)(`label`,{className:`block`,children:[(0,Z.jsx)(`span`,{className:`mb-1.5 block text-xs font-medium text-foreground`,children:`Pairing code`}),(0,Z.jsx)(xe,{value:Ke,onChange:e=>qe(e.target.value),placeholder:`PAIRCODE`,disabled:yt,spellCheck:!1})]})]}),(0,Z.jsx)(`div`,{children:(0,Z.jsx)(`span`,{className:`mt-1 block text-[11px] text-muted-foreground`,children:`Paste a full pairing URL here to fill both fields automatically. Remote bearer tokens are stored for this browser profile.`})})]}),vt?(0,Z.jsx)(`p`,{className:`text-xs text-destructive`,children:vt}):null,(0,Z.jsxs)(b,{variant:`outline`,className:`w-full`,disabled:yt,onClick:()=>void hn(),children:[(0,Z.jsx)(le,{className:`size-3.5`}),yt?`Adding…`:`Add environment`]})]})})]})})]})]}),children:[h.map(e=>(0,Z.jsx)(Tt,{environmentId:e,reconnectingEnvironmentId:Ot,disconnectingEnvironmentId:At,removingEnvironmentId:Mt,onConnect:gn,onDisconnect:_n,onRemove:vn},e)),h.length===0?(0,Z.jsx)(`div`,{className:tt,children:(0,Z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No remote environments yet. Click “Add environment” to pair another environment.`})}):null]})]})}function kt(e){return e.status!==`unavailable`}function At(e){H.add({type:`success`,title:e===`hosted-link`?`Hosted app link copied`:e===`link`?`Pairing URL copied`:`Pairing code copied`,description:e===`hosted-link`?`Open it in the browser on the device you want to connect.`:e===`link`?`Open it in the client you want to pair to this environment.`:`Paste it into another client to finish pairing.`})}function jt(e){return Q(e)?`hosted-link`:`link`}function Mt(e){return!Q(e.url)}function Nt(e){return Q(e.url)}function Pt(e){return e.currentTarget.select()}function Ft(e){return e.currentTarget.select()}function It(e){return e!==null}export{Ot as ConnectionsSettings};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{hr as e,qn as t}from"./composerDraftStore-xu3n5gdX.js";import{n}from"./DialogViewport-CL0WR9a5.js";var r=class{constructor(e){this.store=e??new n}open(n){let r=n?this.store.context.triggerElements.getById(n):void 0;this.store.setOpen(!0,t(e,void 0,r))}openWithPayload(n){this.store.set(`payload`,n),this.store.setOpen(!0,t(e,void 0,void 0))}close(){this.store.setOpen(!1,t(e,void 0,void 0))}get isOpen(){return this.store.state.open}};function i(){return new r}export{i as n,r as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,t}from"./react-PSPkXoKo.js";import{Mi as n,mt as r,ni as i}from"./composerDraftStore-xu3n5gdX.js";import{c as a,n as o,r as s,s as c}from"./DialogViewport-CL0WR9a5.js";var l=e(t()),u=n();function d(e){let{children:t,open:n,defaultOpen:d=!1,onOpenChange:f,onOpenChangeComplete:p,disablePointerDismissal:m=!1,modal:h=!0,actionsRef:g,handle:_,triggerId:v,defaultTriggerId:y=null}=e,b=a(!0),x=!!b,S=i(()=>_?.store??new o({open:d,openProp:n,activeTriggerId:y,triggerIdProp:v,modal:h,disablePointerDismissal:m,nested:x})).current;r(()=>{n===void 0&&S.state.open===!1&&d===!0&&S.update({open:!0,activeTriggerId:y})}),S.useControlledProp(`openProp`,n),S.useControlledProp(`triggerIdProp`,v),S.useSyncedValues({disablePointerDismissal:m,nested:x,modal:h}),S.useContextCallback(`onOpenChange`,f),S.useContextCallback(`onOpenChangeComplete`,p);let C=S.useState(`payload`);s({store:S,actionsRef:g,parentContext:b?.store.context,onOpenChange:f,triggerIdProp:v});let w=l.useMemo(()=>({store:S}),[S]);return(0,u.jsx)(c.Provider,{value:w,children:typeof t==`function`?t({payload:C}):t})}export{d as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,t}from"./react-PSPkXoKo.js";import{Kr as n,Yn as r,fr as i,nr as a,qn as o}from"./composerDraftStore-xu3n5gdX.js";import{c as s}from"./DialogViewport-CL0WR9a5.js";var c=e(t()),l=c.forwardRef(function(e,t){let{render:r,className:c,disabled:l=!1,nativeButton:u=!0,...d}=e,{store:f}=s(),p=f.useState(`open`);function m(e){p&&f.setOpen(!1,o(i,e.nativeEvent))}let{getButtonProps:h,buttonRef:g}=a({disabled:l,native:u});return n(`button`,e,{state:{disabled:l},ref:[t,g],props:[{onClick:m},d,h]})}),u=c.forwardRef(function(e,t){let{render:i,className:a,id:o,...c}=e,{store:l}=s(),u=r(o);return l.useSyncedValueWithCleanup(`descriptionElementId`,u),n(`p`,e,{ref:t,props:[{id:u},c]})}),d=c.forwardRef(function(e,t){let{render:i,className:a,id:o,...c}=e,{store:l}=s(),u=r(o);return l.useSyncedValueWithCleanup(`titleElementId`,u),n(`h2`,e,{ref:t,props:[{id:u},c]})});export{u as n,l as r,d as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,t}from"./react-PSPkXoKo.js";import{$t as n,Ar as r,Jr as i,Kr as a,Ut as o,Yn as s,nr as c,ri as l,sn as u}from"./composerDraftStore-xu3n5gdX.js";import{c as d}from"./DialogViewport-CL0WR9a5.js";var f=e(t()),p=f.forwardRef(function(e,t){let{render:p,className:m,disabled:h=!1,nativeButton:g=!0,id:_,payload:v,handle:y,...b}=e,x=d(!0),S=y?.store??x?.store;if(!S)throw Error(l(79));let C=s(_),w=S.useState(`floatingRootContext`),T=S.useState(`isOpenedByTrigger`,C),E=f.useRef(null),{registerTrigger:D,isMountedByThisTrigger:O}=n(C,E,S,{payload:v}),{getButtonProps:k,buttonRef:A}=c({disabled:h,native:g}),j=o([u(w,{enabled:w!=null})]),M={disabled:h,open:T},N=S.useState(`triggerProps`,O);return a(`button`,e,{state:M,ref:[A,t,D,E],props:[j.getReferenceProps(),N,{[i]:``,id:C},b,k],stateAttributesMapping:r})});export{p as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,t}from"./react-PSPkXoKo.js";import{Dr as n,Fn as r,Jt as i,Kr as a,Kt as o,Ln as s,Mi as c,Mr as l,Or as u,Ot as d,Qt as f,Ut as p,Vn as m,Vt as h,Xt as g,Yt as _,Zt as v,bt as y,cn as b,dt as x,en as S,hr as C,ht as w,lr as T,on as E,pn as D,pt as O,qn as k,ri as A,rn as j}from"./composerDraftStore-xu3n5gdX.js";var M=e(t()),N=M.createContext(void 0);function P(e){let t=M.useContext(N);if(e===!1&&t===void 0)throw Error(A(27));return t}var F={...u,...l},I=M.forwardRef(function(e,t){let{render:n,className:r,forceRender:i=!1,...o}=e,{store:s}=P(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return a(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:F,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:i||!l})}),L=function(e){return e.nestedDialogs=`--nested-dialogs`,e}({}),R=function(e){return e[e.open=n.open]=`open`,e[e.closed=n.closed]=`closed`,e[e.startingStyle=n.startingStyle]=`startingStyle`,e[e.endingStyle=n.endingStyle]=`endingStyle`,e.nested=`data-nested`,e.nestedDialogOpen=`data-nested-dialog-open`,e}({}),z=M.createContext(void 0);function B(){let e=M.useContext(z);if(e===void 0)throw Error(A(26));return e}var V=c(),H={...u,...l,nestedDialogOpen(e){return e?{[R.nestedDialogOpen]:``}:null}},U=M.forwardRef(function(e,t){let{className:n,finalFocus:r,initialFocus:i,render:o,...s}=e,{store:c}=P(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),f=c.useState(`floatingRootContext`),p=c.useState(`popupProps`),h=c.useState(`modal`),g=c.useState(`mounted`),_=c.useState(`nested`),v=c.useState(`nestedOpenDialogCount`),y=c.useState(`open`),x=c.useState(`openMethod`),S=c.useState(`titleElementId`),C=c.useState(`transitionStatus`),w=c.useState(`role`);B(),m({open:y,ref:c.context.popupRef,onComplete(){y&&c.context.onOpenChangeComplete?.(!0)}});function T(e){return e===`touch`?c.context.popupRef.current:!0}let E=i===void 0?T:i,D=a(`div`,e,{state:{open:y,nested:_,transitionStatus:C,nestedDialogOpen:v>0},props:[p,{"aria-labelledby":S??void 0,"aria-describedby":l??void 0,role:w,tabIndex:-1,hidden:!g,onKeyDown(e){d.has(e.key)&&e.stopPropagation()},style:{[L.nestedDialogs]:v}},s],ref:[t,c.context.popupRef,c.useStateSetter(`popupElement`)],stateAttributesMapping:H});return(0,V.jsx)(b,{context:f,openInteractionType:x,disabled:!g,closeOnFocusOut:!u,initialFocus:E,returnFocus:r,modal:h!==!1,restoreFocus:`popup`,children:D})}),W=M.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=P(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,V.jsx)(z.Provider,{value:n,children:(0,V.jsxs)(D,{ref:t,...r,children:[a&&o===!0&&(0,V.jsx)(w,{ref:i.context.internalBackdropRef,inert:y(!s)}),e.children]})}):null});function G(e){let{store:t,parentContext:n,actionsRef:i}=e,a=t.useState(`open`),c=t.useState(`disablePointerDismissal`),l=t.useState(`modal`),u=t.useState(`popupElement`),{openMethod:d,triggerProps:m}=x(a);v(t);let{forceUnmount:g}=f(a,t),_=T(e=>{let n=k(e);return n.preventUnmountOnClose=()=>{t.set(`preventUnmountingOnClose`,!0)},n}),y=M.useCallback(()=>{t.setOpen(!1,_(C))},[t,_]);M.useImperativeHandle(i,()=>({unmount:g,close:y}),[g,y]);let b=o({popupStore:t,onOpenChange:t.setOpen,treatPopupAsFloatingElement:!0,noEmit:!0}),[S,w]=M.useState(0),D=S===0,A=h(b),j=E(b,{outsidePressEvent(){return t.context.internalBackdropRef.current||t.context.backdropRef.current?`intentional`:{mouse:l===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(e){if(!t.context.outsidePressEnabledRef.current||`button`in e&&e.button!==0||`touches`in e&&e.touches.length!==1)return!1;let n=s(e);if(D&&!c){let e=n;return l&&(t.context.internalBackdropRef.current||t.context.backdropRef.current)?t.context.internalBackdropRef.current===e||t.context.backdropRef.current===e||r(e,u)&&!e?.hasAttribute(`data-base-ui-portal`):!0}return!1},escapeKey:D});O(a&&l===!0,u);let{getReferenceProps:N,getFloatingProps:P,getTriggerProps:F}=p([A,j]);t.useContextCallback(`onNestedDialogOpen`,e=>{w(e+1)}),t.useContextCallback(`onNestedDialogClose`,()=>{w(0)}),M.useEffect(()=>(n?.onNestedDialogOpen&&a&&n.onNestedDialogOpen(S),n?.onNestedDialogClose&&!a&&n.onNestedDialogClose(),()=>{n?.onNestedDialogClose&&a&&n.onNestedDialogClose()}),[a,n,S]);let I=M.useMemo(()=>N(m),[N,m]),L=M.useMemo(()=>F(m),[F,m]),R=M.useMemo(()=>P(),[P]);t.useSyncedValues({openMethod:d,activeTriggerProps:I,inactiveTriggerProps:L,popupProps:R,floatingRootContext:b,nestedOpenDialogCount:S})}var K={..._,modal:j(e=>e.modal),nested:j(e=>e.nested),nestedOpenDialogCount:j(e=>e.nestedOpenDialogCount),disablePointerDismissal:j(e=>e.disablePointerDismissal),openMethod:j(e=>e.openMethod),descriptionElementId:j(e=>e.descriptionElementId),titleElementId:j(e=>e.titleElementId),viewportElement:j(e=>e.viewportElement),role:j(e=>e.role)},q=class extends S{constructor(e){super(J(e),{popupRef:M.createRef(),backdropRef:M.createRef(),internalBackdropRef:M.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new g,onOpenChange:void 0,onOpenChangeComplete:void 0},K)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;let n={open:e,nativeEvent:t.event,reason:t.reason,nested:this.state.nested};this.state.floatingRootContext.context.events?.emit(`openchange`,n);let r={open:e},i=t.trigger?.id??null;(i||e)&&(r.activeTriggerId=i,r.activeTriggerElement=t.trigger??null),this.update(r)}};function J(e={}){return{...i(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,role:`dialog`,...e}}var Y=function(e){return e[e.open=n.open]=`open`,e[e.closed=n.closed]=`closed`,e[e.startingStyle=n.startingStyle]=`startingStyle`,e[e.endingStyle=n.endingStyle]=`endingStyle`,e.nested=`data-nested`,e.nestedDialogOpen=`data-nested-dialog-open`,e}({}),X={...u,...l,nested(e){return e?{[Y.nested]:``}:null},nestedDialogOpen(e){return e?{[Y.nestedDialogOpen]:``}:null}},Z=M.forwardRef(function(e,t){let{className:n,render:r,children:i,...o}=e,s=B(),{store:c}=P(),l=c.useState(`open`),u=c.useState(`nested`),d=c.useState(`transitionStatus`),f=c.useState(`nestedOpenDialogCount`),p=c.useState(`mounted`);return a(`div`,e,{enabled:s||p,state:{open:l,nested:u,transitionStatus:d,nestedDialogOpen:f>0},ref:[t,c.useStateSetter(`viewportElement`)],stateAttributesMapping:X,props:[{role:`presentation`,hidden:!p,style:{pointerEvents:l?void 0:`none`},children:i},o]})});export{U as a,P as c,W as i,q as n,I as o,G as r,N as s,Z as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,t}from"./react-PSPkXoKo.js";import{_t as n}from"./environmentApi-BFHi_M02.js";import{Mi as r,a as i,t as a}from"./composerDraftStore-xu3n5gdX.js";import{a as o,c as s,i as c,l,n as u,r as d,t as f}from"./ChatRightPanel-BJ_cVP66.js";import{t as p}from"./useNavigate-B1qgM5mt.js";import{n as m}from"./threadRoutes-CfldSp4X.js";import{a as h,c as g,n as _,o as v,s as y,t as b}from"./rightPanelRouteSearch-CTMFCS6R.js";import{b as x,o as S}from"./sidebar-Bbdql7Af.js";import{n as C}from"./storeSelectors-DBRyhCGm.js";var w=e(t(),1),T=r();function E({rawDraftId:e,search:t}){let r=p(),E=a.make(e),D=i(e=>e.getDraftSession(E)),O=n((0,w.useMemo)(()=>C(D?.threadId??null),[D?.threadId])),k=s(O),A=(0,w.useMemo)(()=>D?.promotedTo?k?D.promotedTo:null:O?{environmentId:O.environmentId,threadId:O.id}:null,[D?.promotedTo,O,k]),j=t.diff===`1`,M=t.preview===`1`,N=b(t),P=_(t),F=x(l),[I,L]=(0,w.useState)(()=>({draftId:E,hasOpenedDiff:j,hasOpenedPreview:M,hasOpenedTerminal:N===`terminal`})),R=I.draftId===E?I.hasOpenedDiff:j,z=I.draftId===E?I.hasOpenedPreview:M,B=I.draftId===E?I.hasOpenedTerminal:N===`terminal`,[V,H]=(0,w.useState)(()=>N??`files`),U=(0,w.useMemo)(()=>{let e=[];return(z||N===`files`)&&e.push(`files`),(R||N===`review`)&&e.push(`review`),(B||N===`terminal`)&&e.push(`terminal`),e},[R,z,B,N]),W=(0,w.useCallback)(e=>{H(e),L(t=>{let n={draftId:E,hasOpenedDiff:(t.draftId===E?t.hasOpenedDiff:j)||e===`review`,hasOpenedPreview:(t.draftId===E?t.hasOpenedPreview:M)||e===`files`,hasOpenedTerminal:(t.draftId===E?t.hasOpenedTerminal:N===`terminal`)||e===`terminal`};return t.draftId===n.draftId&&t.hasOpenedDiff===n.hasOpenedDiff&&t.hasOpenedPreview===n.hasOpenedPreview&&t.hasOpenedTerminal===n.hasOpenedTerminal?t:n})},[j,E,M,N]),G=(0,w.useCallback)(()=>{r({to:`/draft/$draftId`,params:{draftId:E},search:e=>d(e)})},[E,r]),K=(0,w.useCallback)(()=>{r({to:`/draft/$draftId`,params:{draftId:E},search:e=>V===`files`&&z?h(e):V===`review`&&R?v(e):V===`terminal`&&B?y(e):z?h(e):R?v(e):B?y(e):g(e)})},[E,R,z,B,V,r]),q=(0,w.useCallback)(()=>{if(P){G();return}K()},[G,K,P]),J=(0,w.useCallback)(e=>{if(e.mode===`agent`){N===`agent`&&r({to:`/draft/$draftId`,params:{draftId:E},search:e=>g(e)});return}let t=e.mode===`review`?!1:R||N===`review`,n=e.mode===`files`?!1:z||N===`files`,i=e.mode===`terminal`?!1:B||N===`terminal`;L(e=>{let r={draftId:E,hasOpenedDiff:t,hasOpenedPreview:n,hasOpenedTerminal:i};return e.draftId===r.draftId&&e.hasOpenedDiff===r.hasOpenedDiff&&e.hasOpenedPreview===r.hasOpenedPreview&&e.hasOpenedTerminal===r.hasOpenedTerminal?e:r}),N===e.mode&&r({to:`/draft/$draftId`,params:{draftId:E},search:r=>e.mode!==`files`&&n?h(r):e.mode!==`review`&&t?v(r):e.mode!==`terminal`&&i?y(r):g(r)})},[E,R,z,B,r,N]);if((0,w.useEffect)(()=>{N!==null&&(H(N),W(N))},[W,N]),(0,w.useEffect)(()=>{A&&r({to:`/$environmentId/$threadId`,params:m(A),replace:!0})},[A,r]),(0,w.useEffect)(()=>{D||A||r({to:`/`,replace:!0})},[A,D,r]),A)return(0,T.jsx)(S,{className:`h-svh min-h-0 overflow-hidden overscroll-y-none bg-background text-foreground md:h-dvh`,children:(0,T.jsx)(c,{environmentId:A.environmentId,threadId:A.threadId,routeKind:`server`})});if(!D)return null;let Y=P||N===`review`||R||N===`files`||z||N===`terminal`||B||N===`agent`,X=P?N:V;return F?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(S,{className:`h-svh min-h-0 overflow-hidden overscroll-y-none bg-background text-foreground md:h-dvh`,children:(0,T.jsx)(c,{draftId:E,environmentId:D.environmentId,threadId:D.threadId,onDiffPanelOpen:()=>W(`review`),onPreviewPanelOpen:()=>W(`files`),onTerminalPanelOpen:()=>W(`terminal`),onAgentPanelOpen:()=>W(`agent`),workspacePanelOpen:P,onToggleWorkspacePanel:q,routeKind:`draft`})}),(0,T.jsx)(o,{open:P,onClose:G,children:Y?(0,T.jsx)(f,{mode:`sheet`,panelMode:X,openedPanelModes:U,onClosePanelTab:J}):null})]}):(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(S,{className:`h-svh min-h-0 overflow-hidden overscroll-y-none bg-background text-foreground md:h-dvh`,children:(0,T.jsx)(c,{draftId:E,environmentId:D.environmentId,threadId:D.threadId,onDiffPanelOpen:()=>W(`review`),onPreviewPanelOpen:()=>W(`files`),onTerminalPanelOpen:()=>W(`terminal`),onAgentPanelOpen:()=>W(`agent`),workspacePanelOpen:P,onToggleWorkspacePanel:q,routeKind:`draft`})}),(0,T.jsx)(u,{open:P,panelMode:X,openedPanelModes:U,onClosePanelTab:J,onClose:G,onOpen:K,renderContent:Y})]})}export{E as DraftChatThreadRouteView};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,t}from"./react-PSPkXoKo.js";import{t as n}from"./compiler-runtime-BNrXlsa1.js";import{Mi as r,Oi as i}from"./composerDraftStore-xu3n5gdX.js";var a=i(`folder-closed`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}],[`path`,{d:`M2 10h20`,key:`1ir3d8`}]]),o=i(`undo-2`,[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]),s=n(),c=e(t(),1),l=r(),u=(e,t)=>{let n=(0,s.c)(7),r=(0,c.useId)(),i;if(n[0]!==t||n[1]!==r||n[2]!==e){let a;n[4]!==r||n[5]!==e?(a=(t,n)=>`${r}-${e}-${String.fromCharCode(97+n)}`,n[4]=r,n[5]=e,n[6]=a):a=n[6],i=Array.from({length:t},a),n[0]=t,n[1]=r,n[2]=e,n[3]=i}else i=n[3];return i},d=e=>{let t=(0,s.c)(23),[n,r]=u(`aqua`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,l.jsx)(`stop`,{offset:`.25`,stopColor:`#7256FF`}),a=(0,l.jsx)(`stop`,{offset:`.73`,stopColor:`#007DFE`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,l.jsxs)(`linearGradient`,{id:n,x1:`59.932`,x2:`1.336`,y1:`59.676`,y2:`1.079`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let c,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,l.jsx)(`stop`,{offset:`.3`,stopColor:`#00D886`}),d=(0,l.jsx)(`stop`,{offset:`.54`,stopColor:`#7256FF`}),t[4]=c,t[5]=d):(c=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,l.jsxs)(`linearGradient`,{id:r,x1:`7.671`,x2:`61.125`,y1:`64.392`,y2:`39.609`,gradientUnits:`userSpaceOnUse`,children:[c,d]}),t[6]=r,t[7]=f);let p;t[8]!==o||t[9]!==f?(p=(0,l.jsxs)(`defs`,{children:[o,f]}),t[8]=o,t[9]=f,t[10]=p):p=t[10];let m=`url(#${n})`,h;t[11]===m?h=t[12]:(h=(0,l.jsx)(`path`,{fill:m,d:`M0 4.125v34.128c0 1.658.993 3.154 2.52 3.8L39.943 57.85c.518.219 1.075.33 1.638.324l18.329-.15A4.125 4.125 0 0 0 64 53.9V36.234c0-.806-.236-1.593-.678-2.267L42.213 1.86A4.13 4.13 0 0 0 38.766 0H4.125A4.125 4.125 0 0 0 0 4.125`}),t[11]=m,t[12]=h);let g=`url(#${r})`,_;t[13]===g?_=t[14]:(_=(0,l.jsx)(`path`,{fill:g,d:`M6 49.015v10.862a4.125 4.125 0 0 0 4.125 4.125h12.566q.3 0 .598-.044l37.185-5.448A4.125 4.125 0 0 0 64 54.429V39.03a4.125 4.125 0 0 0-4.127-4.125l-18.504.005c-.426 0-.849.066-1.254.195L8.871 45.085A4.13 4.13 0 0 0 6 49.015z`}),t[13]=g,t[14]=_);let v,y,b;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,l.jsx)(`path`,{fill:`#00D886`,d:`M6 47.55v12.259a4.125 4.125 0 0 0 4.19 4.124L21 64c1.181-.019 2.531-.786 3.3-1.683l32.707-38.158c.64-.748.993-1.7.993-2.685V10.125A4.125 4.125 0 0 0 53.875 6H42.872c-1.19 0-2.321.514-3.105 1.409L7.021 44.834A4.12 4.12 0 0 0 6 47.55`}),y=(0,l.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,l.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM20.746 31.243a7.3 7.3 0 0 1-2.755-2.787q-1.002-1.774-1.003-3.961c0-2.187.334-2.778 1.003-3.96a7.3 7.3 0 0 1 2.755-2.787q1.752-1.013 3.917-1.014c1.443 0 2.739.338 3.907 1.013a7.3 7.3 0 0 1 2.75 2.787q.996 1.774.996 3.961c0 2.187-.332 2.778-.997 3.96a7.3 7.3 0 0 1-2.749 2.788q-1.752 1.013-3.907 1.013c-1.436 0-2.75-.338-3.917-1.013m6.308-2.23q1.06-.67 1.661-1.854.6-1.185.6-2.664t-.6-2.664a4.6 4.6 0 0 0-1.661-1.854q-1.061-.67-2.39-.67t-2.396.67a4.6 4.6 0 0 0-1.672 1.854q-.605 1.185-.605 2.664t.605 2.664 1.672 1.854q1.067.67 2.396.67 1.33 0 2.39-.67m-2.16 6.034a2.67 2.67 0 0 1-1.126-1.077q-.391-.696-.391-1.64l-.01-1.94h2.743v1.811q0 .332.129.573.128.242.37.365.24.123.574.123h1.833v2.165h-2.412q-.975 0-1.71-.38M38.233 16.992h3.173l5.563 15.006h-2.947l-1.212-3.483h-5.842l-1.136 3.483H32.82zm3.805 9.261-2.025-5.723-.225-.954-.215.954-1.908 5.723z`}),t[15]=v,t[16]=y,t[17]=b):(v=t[15],y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==_||t[20]!==p||t[21]!==h?(x=(0,l.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,h,_,v,y,b]}),t[18]=e,t[19]=_,t[20]=p,t[21]=h,t[22]=x):x=t[22],x},f=e=>{let t=(0,s.c)(23),[n,r]=u(`clion`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,l.jsx)(`stop`,{offset:`.29`,stopColor:`#009AE5`}),a=(0,l.jsx)(`stop`,{offset:`.7`,stopColor:`#00D980`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,l.jsxs)(`linearGradient`,{id:n,x1:`4.067`,x2:`62.664`,y1:`4.327`,y2:`62.923`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let c,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,l.jsx)(`stop`,{offset:`.3`,stopColor:`#FF2D90`}),d=(0,l.jsx)(`stop`,{offset:`.54`,stopColor:`#009AE5`}),t[4]=c,t[5]=d):(c=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,l.jsxs)(`linearGradient`,{id:r,x1:`56.329`,x2:`2.874`,y1:`-.391`,y2:`24.393`,gradientUnits:`userSpaceOnUse`,children:[c,d]}),t[6]=r,t[7]=f);let p;t[8]!==o||t[9]!==f?(p=(0,l.jsxs)(`defs`,{children:[o,f]}),t[8]=o,t[9]=f,t[10]=p):p=t[10];let m=`url(#${n})`,h;t[11]===m?h=t[12]:(h=(0,l.jsx)(`path`,{fill:m,d:`M64 59.878V25.75a4.13 4.13 0 0 0-2.52-3.8L24.057 6.153a4.1 4.1 0 0 0-1.638-.325l-18.329.15A4.124 4.124 0 0 0 0 10.103v17.665c0 .806.236 1.593.678 2.267l21.109 32.109a4.12 4.12 0 0 0 3.447 1.859h34.641A4.125 4.125 0 0 0 64 59.878`}),t[11]=m,t[12]=h);let g=`url(#${r})`,_;t[13]===g?_=t[14]:(_=(0,l.jsx)(`path`,{fill:g,d:`M58 14.988V4.125A4.125 4.125 0 0 0 53.875 0H41.309q-.3 0-.598.044L3.527 5.492A4.125 4.125 0 0 0 0 9.573v15.398a4.125 4.125 0 0 0 4.126 4.125l18.505-.005c.425 0 .848-.066 1.253-.195l31.246-9.98A4.13 4.13 0 0 0 58 14.988`}),t[13]=g,t[14]=_);let v,y,b;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,l.jsx)(`path`,{fill:`#FF2D90`,d:`M58 16.453V4.194A4.125 4.125 0 0 0 53.81.07L43.003.008c-1.18.019-2.535.781-3.304 1.678L6.993 39.844c-.64.748-.993 1.7-.993 2.684v11.35a4.125 4.125 0 0 0 4.125 4.125h11.003c1.19 0 2.321-.514 3.105-1.409L56.979 19.17A4.12 4.12 0 0 0 58 16.453`}),y=(0,l.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,l.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM20.747 31.243a7.3 7.3 0 0 1-2.744-2.787q-.997-1.774-.997-3.961c0-2.187.332-2.778.997-3.96a7.3 7.3 0 0 1 2.744-2.787q1.747-1.013 3.901-1.014 1.823 0 3.345.675a6.86 6.86 0 0 1 2.535 1.892 6.44 6.44 0 0 1 1.355 2.793h-3.065a4.05 4.05 0 0 0-.895-1.431 4 4 0 0 0-1.431-.95 4.9 4.9 0 0 0-1.822-.332q-1.33 0-2.402.665a4.6 4.6 0 0 0-1.677 1.827q-.606 1.164-.606 2.62 0 1.459.606 2.621a4.6 4.6 0 0 0 1.677 1.828q1.072.664 2.402.664a4.9 4.9 0 0 0 1.822-.332 4.02 4.02 0 0 0 2.326-2.38h3.065a6.44 6.44 0 0 1-1.355 2.792 6.86 6.86 0 0 1-2.535 1.892q-1.522.675-3.345.675-2.154 0-3.901-1.013zM37.33 16.992v12.37h7.117v2.636H34.414V16.992z`}),t[15]=v,t[16]=y,t[17]=b):(v=t[15],y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==_||t[20]!==p||t[21]!==h?(x=(0,l.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,h,_,v,y,b]}),t[18]=e,t[19]=_,t[20]=p,t[21]=h,t[22]=x):x=t[22],x},p=e=>{let t=(0,s.c)(23),[n,r]=u(`datagrip`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,l.jsx)(`stop`,{offset:`.28`,stopColor:`#7256FF`}),a=(0,l.jsx)(`stop`,{offset:`.66`,stopColor:`#00D980`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,l.jsxs)(`linearGradient`,{id:n,x1:`59.676`,x2:`1.08`,y1:`4.067`,y2:`62.663`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let c,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,l.jsx)(`stop`,{offset:`.3`,stopColor:`#FF43F2`}),d=(0,l.jsx)(`stop`,{offset:`.54`,stopColor:`#7256FF`}),t[4]=c,t[5]=d):(c=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,l.jsxs)(`linearGradient`,{id:r,x1:`64.391`,x2:`39.607`,y1:`56.329`,y2:`2.874`,gradientUnits:`userSpaceOnUse`,children:[c,d]}),t[6]=r,t[7]=f);let p;t[8]!==o||t[9]!==f?(p=(0,l.jsxs)(`defs`,{children:[o,f]}),t[8]=o,t[9]=f,t[10]=p):p=t[10];let m=`url(#${n})`,h;t[11]===m?h=t[12]:(h=(0,l.jsx)(`path`,{fill:m,d:`M4.125 64h34.128a4.13 4.13 0 0 0 3.8-2.52L57.85 24.057c.219-.518.33-1.076.324-1.638l-.15-18.329A4.125 4.125 0 0 0 53.9 0H36.234c-.806 0-1.593.236-2.267.678L1.86 21.787A4.13 4.13 0 0 0 0 25.234v34.641A4.125 4.125 0 0 0 4.125 64`}),t[11]=m,t[12]=h);let g=`url(#${r})`,_;t[13]===g?_=t[14]:(_=(0,l.jsx)(`path`,{fill:g,d:`M49.013 58h10.862A4.125 4.125 0 0 0 64 53.875V41.309q0-.3-.044-.598L58.508 3.527A4.125 4.125 0 0 0 54.427 0H39.029a4.125 4.125 0 0 0-4.125 4.126l.005 18.505c0 .425.066.848.195 1.253l9.979 31.246a4.13 4.13 0 0 0 3.93 2.87`}),t[13]=g,t[14]=_);let v,y,b;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,l.jsx)(`path`,{fill:`#FF43F2`,d:`M47.55 58h12.259a4.125 4.125 0 0 0 4.124-4.19L64 43c-.018-1.181-.785-2.531-1.682-3.3L24.159 6.993A4.13 4.13 0 0 0 21.474 6H10.125A4.125 4.125 0 0 0 6 10.125v11.003c0 1.19.514 2.321 1.409 3.105l37.425 32.746A4.12 4.12 0 0 0 47.55 58`}),y=(0,l.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,l.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM17.012 16.992h5.713q2.133 0 3.821.965a6.9 6.9 0 0 1 2.642 2.674q.954 1.71.954 3.864t-.954 3.865a6.9 6.9 0 0 1-2.642 2.674q-1.688.964-3.821.964h-5.713zm8.028 11.876q1.008-.6 1.554-1.72.547-1.12.547-2.653 0-1.534-.547-2.653-.546-1.12-1.554-1.721-1.008-.6-2.348-.6h-2.755v9.947h2.755q1.34 0 2.348-.6M35.426 31.243a7.3 7.3 0 0 1-2.744-2.787q-.997-1.774-.997-3.961c0-2.187.333-2.778.997-3.96s1.58-2.112 2.744-2.787q1.747-1.013 3.902-1.014 1.746 0 3.221.622a6.9 6.9 0 0 1 2.487 1.747 6.36 6.36 0 0 1 1.42 2.594h-3.13a3.9 3.9 0 0 0-.927-1.228q-.585-.52-1.367-.803c-.782-.283-1.082-.284-1.683-.284q-1.329 0-2.401.664a4.6 4.6 0 0 0-1.678 1.828q-.605 1.163-.605 2.62c0 1.457.202 1.846.605 2.621a4.6 4.6 0 0 0 1.678 1.828q1.072.664 2.401.664 1.233 0 2.235-.461t1.592-1.276a3.3 3.3 0 0 0 .633-1.833l.01.31h-3.526v-2.304h6.356v1.18q0 1.982-.96 3.585a6.9 6.9 0 0 1-2.625 2.525q-1.668.921-3.736.921c-1.38 0-2.737-.337-3.902-1.013z`}),t[15]=v,t[16]=y,t[17]=b):(v=t[15],y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==_||t[20]!==p||t[21]!==h?(x=(0,l.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,h,_,v,y,b]}),t[18]=e,t[19]=_,t[20]=p,t[21]=h,t[22]=x):x=t[22],x},m=e=>{let t=(0,s.c)(23),[n,r]=u(`dataspell`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,l.jsx)(`stop`,{offset:`.28`,stopColor:`#007DFE`}),a=(0,l.jsx)(`stop`,{offset:`.73`,stopColor:`#00D980`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,l.jsxs)(`linearGradient`,{id:n,x1:`4.067`,x2:`62.664`,y1:`4.327`,y2:`62.923`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let c,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,l.jsx)(`stop`,{offset:`.32`,stopColor:`#F0EB18`}),d=(0,l.jsx)(`stop`,{offset:`.55`,stopColor:`#007DFE`}),t[4]=c,t[5]=d):(c=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,l.jsxs)(`linearGradient`,{id:r,x1:`56.329`,x2:`2.875`,y1:`-.391`,y2:`24.392`,gradientUnits:`userSpaceOnUse`,children:[c,d]}),t[6]=r,t[7]=f);let p;t[8]!==o||t[9]!==f?(p=(0,l.jsxs)(`defs`,{children:[o,f]}),t[8]=o,t[9]=f,t[10]=p):p=t[10];let m=`url(#${n})`,h;t[11]===m?h=t[12]:(h=(0,l.jsx)(`path`,{fill:m,d:`M64 59.878V25.75a4.13 4.13 0 0 0-2.52-3.8L24.057 6.153a4.1 4.1 0 0 0-1.638-.325l-18.329.15A4.124 4.124 0 0 0 0 10.103v17.665c0 .806.236 1.593.678 2.267l21.109 32.109a4.12 4.12 0 0 0 3.447 1.859h34.641A4.125 4.125 0 0 0 64 59.878`}),t[11]=m,t[12]=h);let g=`url(#${r})`,_;t[13]===g?_=t[14]:(_=(0,l.jsx)(`path`,{fill:g,d:`M58 14.988V4.125A4.125 4.125 0 0 0 53.875 0H41.309q-.3 0-.598.044L3.527 5.492A4.125 4.125 0 0 0 0 9.573v15.398a4.125 4.125 0 0 0 4.126 4.125l18.505-.005c.425 0 .848-.066 1.253-.195l31.246-9.98A4.13 4.13 0 0 0 58 14.988`}),t[13]=g,t[14]=_);let v,y,b;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,l.jsx)(`path`,{fill:`#F0EB18`,d:`M58 16.45V4.191A4.125 4.125 0 0 0 53.81.067L43 0c-1.181.019-2.531.786-3.3 1.683L6.993 39.84c-.64.748-.993 1.7-.993 2.685v11.349A4.125 4.125 0 0 0 10.125 58h11.003c1.19 0 2.321-.514 3.105-1.409l32.746-37.425A4.12 4.12 0 0 0 58 16.45`}),y=(0,l.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,l.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM17.012 16.992h5.713q2.133 0 3.821.965a6.9 6.9 0 0 1 2.642 2.674q.954 1.71.954 3.864t-.954 3.865a6.9 6.9 0 0 1-2.642 2.674q-1.688.964-3.821.964h-5.713zm8.028 11.876q1.008-.6 1.554-1.72.547-1.12.547-2.653 0-1.534-.547-2.653-.546-1.12-1.554-1.721-1.008-.6-2.348-.6h-2.755v9.947h2.755q1.34 0 2.348-.6M34.713 31.664q-1.26-.59-1.973-1.65t-.734-2.444h2.937q0 .654.343 1.147t.954.772q.61.278 1.404.278c.53 0 .952-.083 1.334-.251q.574-.252.89-.702t.316-1.029q0-.718-.434-1.19-.435-.471-1.195-.654l-2.648-.59q-1.071-.234-1.865-.809a4 4 0 0 1-1.232-1.42q-.44-.846-.44-1.908 0-1.286.665-2.31.664-1.023 1.854-1.597 1.19-.573 2.701-.573c1.511 0 1.933.186 2.733.558s1.424.888 1.871 1.549q.67.99.68 2.277h-2.926q0-.546-.289-.98c-.289-.435-.466-.515-.82-.676a2.9 2.9 0 0 0-1.217-.24q-.686 0-1.205.23a1.9 1.9 0 0 0-.81.643q-.29.412-.29.96 0 .621.403 1.028.402.407 1.098.579l2.552.557q1.103.226 1.967.852a4.45 4.45 0 0 1 1.345 1.544q.481.917.482 1.999 0 1.329-.702 2.385-.702 1.054-1.967 1.656-1.265.6-2.894.6t-2.889-.59`}),t[15]=v,t[16]=y,t[17]=b):(v=t[15],y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==_||t[20]!==p||t[21]!==h?(x=(0,l.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,h,_,v,y,b]}),t[18]=e,t[19]=_,t[20]=p,t[21]=h,t[22]=x):x=t[22],x},h=e=>{let t=(0,s.c)(23),[n,r]=u(`goland`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,l.jsx)(`stop`,{offset:`.24`,stopColor:`#00D886`}),a=(0,l.jsx)(`stop`,{offset:`.51`,stopColor:`#007DFE`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,l.jsxs)(`linearGradient`,{id:n,x1:`64.391`,x2:`39.607`,y1:`56.329`,y2:`2.874`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let c,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,l.jsx)(`stop`,{offset:`.27`,stopColor:`#007DFE`}),d=(0,l.jsx)(`stop`,{offset:`.7`,stopColor:`#D249FC`}),t[4]=c,t[5]=d):(c=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,l.jsxs)(`linearGradient`,{id:r,x1:`59.676`,x2:`1.08`,y1:`4.067`,y2:`62.663`,gradientUnits:`userSpaceOnUse`,children:[c,d]}),t[6]=r,t[7]=f);let p;t[8]!==o||t[9]!==f?(p=(0,l.jsxs)(`defs`,{children:[o,f]}),t[8]=o,t[9]=f,t[10]=p):p=t[10];let m;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,l.jsx)(`path`,{fill:`#00D886`,d:`M47.55 58h12.259a4.125 4.125 0 0 0 4.124-4.19l-.176-11.044a4.13 4.13 0 0 0-1.44-3.066L24.159 6.993A4.13 4.13 0 0 0 21.474 6H10.125A4.125 4.125 0 0 0 6 10.125v11.003c0 1.19.514 2.321 1.409 3.105l37.425 32.746A4.12 4.12 0 0 0 47.55 58`}),t[11]=m):m=t[11];let h=`url(#${n})`,g;t[12]===h?g=t[13]:(g=(0,l.jsx)(`path`,{fill:h,d:`M49.013 58h10.862A4.125 4.125 0 0 0 64 53.875V41.309q0-.3-.044-.598L58.508 3.527A4.124 4.124 0 0 0 54.427 0H39.029a4.125 4.125 0 0 0-4.125 4.126l.005 18.505c0 .425.066.848.195 1.253l9.979 31.246a4.13 4.13 0 0 0 3.93 2.87`}),t[12]=h,t[13]=g);let _=`url(#${r})`,v;t[14]===_?v=t[15]:(v=(0,l.jsx)(`path`,{fill:_,d:`M4.125 64h34.128a4.13 4.13 0 0 0 3.8-2.52L57.85 24.057c.219-.518.33-1.076.324-1.638l-.15-18.329A4.124 4.124 0 0 0 53.9 0H36.234c-.805 0-1.593.236-2.266.678L1.86 21.787A4.13 4.13 0 0 0 0 25.234v34.641A4.125 4.125 0 0 0 4.125 64`}),t[14]=_,t[15]=v);let y,b;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,l.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,l.jsx)(`path`,{fill:`#fff`,d:`M19.748 31.243a7.3 7.3 0 0 1-2.743-2.787q-.997-1.774-.997-3.961c0-2.187.332-2.778.997-3.96s1.58-2.112 2.743-2.787q1.747-1.013 3.902-1.014 1.747 0 3.222.622a6.9 6.9 0 0 1 2.486 1.747 6.4 6.4 0 0 1 1.42 2.594h-3.13a3.9 3.9 0 0 0-.926-1.228q-.584-.52-1.367-.803c-.783-.283-1.083-.284-1.683-.284q-1.33 0-2.402.664a4.6 4.6 0 0 0-1.677 1.828q-.606 1.163-.606 2.62c0 1.457.202 1.846.606 2.621a4.6 4.6 0 0 0 1.677 1.828q1.072.664 2.402.664 1.232 0 2.235-.461t1.591-1.276a3.3 3.3 0 0 0 .633-1.833l.01.31h-3.526v-2.304h6.357v1.18q0 1.982-.96 3.585a6.9 6.9 0 0 1-2.626 2.525q-1.666.921-3.736.921c-2.07 0-2.737-.337-3.902-1.013zM36.271 31.243a7.3 7.3 0 0 1-2.755-2.787q-1.002-1.774-1.002-3.961c0-2.187.333-2.778 1.002-3.96a7.3 7.3 0 0 1 2.755-2.787q1.752-1.013 3.918-1.014c1.443 0 2.738.338 3.907 1.013a7.3 7.3 0 0 1 2.749 2.787q.996 1.774.997 3.961c0 2.187-.333 2.778-.997 3.96s-1.581 2.113-2.75 2.788q-1.752 1.013-3.906 1.013c-1.437 0-2.75-.338-3.918-1.013m6.308-2.23q1.062-.67 1.662-1.854t.6-2.664-.6-2.664-1.662-1.854-2.39-.67-2.395.67a4.6 4.6 0 0 0-1.672 1.854q-.606 1.185-.606 2.664t.606 2.664 1.672 1.854 2.395.67q1.33 0 2.39-.67M33 44H17v3h16z`}),t[16]=y,t[17]=b):(y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==v||t[20]!==p||t[21]!==g?(x=(0,l.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,m,g,v,y,b]}),t[18]=e,t[19]=v,t[20]=p,t[21]=g,t[22]=x):x=t[22],x},g=e=>{let t=(0,s.c)(23),[n,r]=u(`intellij-idea`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,l.jsx)(`stop`,{offset:`.1`,stopColor:`#FC801D`}),a=(0,l.jsx)(`stop`,{offset:`.59`,stopColor:`#FE2857`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,l.jsxs)(`linearGradient`,{id:n,x1:`-.391`,x2:`24.392`,y1:`7.671`,y2:`61.126`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let c,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,l.jsx)(`stop`,{offset:`.21`,stopColor:`#FE2857`}),d=(0,l.jsx)(`stop`,{offset:`.7`,stopColor:`#007EFF`}),t[4]=c,t[5]=d):(c=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,l.jsxs)(`linearGradient`,{id:r,x1:`4.325`,x2:`62.921`,y1:`59.932`,y2:`1.336`,gradientUnits:`userSpaceOnUse`,children:[c,d]}),t[6]=r,t[7]=f);let p;t[8]!==o||t[9]!==f?(p=(0,l.jsxs)(`defs`,{children:[o,f]}),t[8]=o,t[9]=f,t[10]=p):p=t[10];let m;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,l.jsx)(`path`,{fill:`#FF8100`,d:`M16.45 6H4.191a4.125 4.125 0 0 0-4.124 4.19l.176 11.044a4.13 4.13 0 0 0 1.44 3.066l38.159 32.707c.747.64 1.7.993 2.684.993h11.35A4.125 4.125 0 0 0 58 53.875V42.872c0-1.19-.514-2.321-1.41-3.105L19.167 7.021A4.12 4.12 0 0 0 16.45 6`}),t[11]=m):m=t[11];let h=`url(#${n})`,g;t[12]===h?g=t[13]:(g=(0,l.jsx)(`path`,{fill:h,d:`M14.988 6H4.125A4.125 4.125 0 0 0 0 10.125v12.566q0 .3.044.598l5.448 37.185A4.125 4.125 0 0 0 9.573 64h15.398a4.125 4.125 0 0 0 4.125-4.127L29.09 41.37c0-.426-.066-.849-.195-1.254l-9.98-31.245A4.13 4.13 0 0 0 14.988 6z`}),t[12]=h,t[13]=g);let _=`url(#${r})`,v;t[14]===_?v=t[15]:(v=(0,l.jsx)(`path`,{fill:_,d:`M59.876 0H25.748a4.13 4.13 0 0 0-3.8 2.52L6.151 39.943a4.1 4.1 0 0 0-.325 1.638l.15 18.329A4.125 4.125 0 0 0 10.101 64h17.666c.806 0 1.593-.236 2.266-.678l32.11-21.109A4.12 4.12 0 0 0 64 38.766V4.125A4.125 4.125 0 0 0 59.876 0`}),t[14]=_,t[15]=v);let y,b;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,l.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,l.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM17 29.383h2.98v-9.775H17v-2.616h8.843v2.616h-2.98v9.775h2.98V32H17zM27.643 29.298h2.154a2.4 2.4 0 0 0 1.163-.279q.51-.279.788-.788.279-.51.279-1.163V16.992h2.926v10.28q0 1.35-.622 2.427a4.45 4.45 0 0 1-1.715 1.688q-1.092.612-2.454.611h-2.519z`}),t[16]=y,t[17]=b):(y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==v||t[20]!==p||t[21]!==g?(x=(0,l.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,m,g,v,y,b]}),t[18]=e,t[19]=v,t[20]=p,t[21]=g,t[22]=x):x=t[22],x},_=e=>{let t=(0,s.c)(23),[n,r]=u(`phpstorm`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,l.jsx)(`stop`,{offset:`.16`,stopColor:`#D249FC`}),a=(0,l.jsx)(`stop`,{offset:`.55`,stopColor:`#FF2D90`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,l.jsxs)(`linearGradient`,{id:n,x1:`56.329`,x2:`2.874`,y1:`-.391`,y2:`24.392`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let c,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,l.jsx)(`stop`,{offset:`.3`,stopColor:`#FF2D90`}),d=(0,l.jsx)(`stop`,{offset:`.7`,stopColor:`#7256FF`}),t[4]=c,t[5]=d):(c=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,l.jsxs)(`linearGradient`,{id:r,x1:`4.067`,x2:`62.664`,y1:`4.326`,y2:`62.923`,gradientUnits:`userSpaceOnUse`,children:[c,d]}),t[6]=r,t[7]=f);let p;t[8]!==o||t[9]!==f?(p=(0,l.jsxs)(`defs`,{children:[o,f]}),t[8]=o,t[9]=f,t[10]=p):p=t[10];let m;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,l.jsx)(`path`,{fill:`#D249FC`,d:`M58 16.446V4.187A4.125 4.125 0 0 0 53.81.063L42.765.239A4.13 4.13 0 0 0 39.7 1.68L6.993 39.837c-.64.748-.993 1.7-.993 2.685v11.35a4.125 4.125 0 0 0 4.125 4.124h11.003c1.19 0 2.321-.514 3.105-1.409l32.746-37.425A4.12 4.12 0 0 0 58 16.446`}),t[11]=m):m=t[11];let h=`url(#${n})`,g;t[12]===h?g=t[13]:(g=(0,l.jsx)(`path`,{fill:h,d:`M58 14.988V4.125A4.125 4.125 0 0 0 53.875 0H41.309q-.3 0-.598.044L3.527 5.492A4.125 4.125 0 0 0 0 9.573v15.398a4.125 4.125 0 0 0 4.126 4.125l18.505-.005c.425 0 .848-.066 1.253-.195l31.246-9.98A4.13 4.13 0 0 0 58 14.988`}),t[12]=h,t[13]=g);let _=`url(#${r})`,v;t[14]===_?v=t[15]:(v=(0,l.jsx)(`path`,{fill:_,d:`M64 59.878V25.75a4.13 4.13 0 0 0-2.52-3.8L24.057 6.153a4.1 4.1 0 0 0-1.638-.325l-18.329.15A4.124 4.124 0 0 0 0 10.103v17.665c0 .806.236 1.593.678 2.267l21.109 32.109a4.12 4.12 0 0 0 3.447 1.859h34.641A4.125 4.125 0 0 0 64 59.878`}),t[14]=_,t[15]=v);let y,b;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,l.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,l.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM16.993 16.992h6.442q1.586 0 2.78.579 1.196.579 1.845 1.63.648 1.05.648 2.432c0 .922-.22 1.759-.659 2.466q-.66 1.062-1.87 1.646-1.212.584-2.83.584h-3.43V32h-2.927zm7.54 6.63q.553-.273.852-.782.3-.51.3-1.195c0-.685-.1-.842-.3-1.174q-.3-.5-.852-.772-.552-.273-1.291-.273h-3.323v4.47h3.323q.74 0 1.291-.273M32.572 31.664q-1.26-.59-1.972-1.65t-.735-2.444h2.937q0 .654.343 1.147t.954.772q.611.278 1.404.278c.53 0 .952-.083 1.335-.251q.572-.252.89-.702c.317-.45.315-.643.315-1.029q0-.718-.434-1.19-.435-.471-1.195-.654l-2.647-.59q-1.073-.234-1.866-.809a4 4 0 0 1-1.232-1.42q-.44-.846-.44-1.908 0-1.286.665-2.31.665-1.023 1.854-1.597 1.19-.573 2.702-.573c1.512 0 1.933.186 2.733.558q1.2.558 1.87 1.549t.681 2.277h-2.926q0-.546-.29-.98a1.9 1.9 0 0 0-.82-.676 2.9 2.9 0 0 0-1.216-.24q-.687 0-1.206.23a1.9 1.9 0 0 0-.81.643q-.29.412-.289.96 0 .621.402 1.028t1.099.579l2.551.557q1.104.226 1.967.852a4.45 4.45 0 0 1 1.345 1.544q.482.917.482 1.999 0 1.329-.701 2.385-.703 1.054-1.967 1.656-1.264.6-2.895.6-1.63 0-2.888-.59`}),t[16]=y,t[17]=b):(y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==v||t[20]!==p||t[21]!==g?(x=(0,l.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,m,g,v,y,b]}),t[18]=e,t[19]=v,t[20]=p,t[21]=g,t[22]=x):x=t[22],x},v=e=>{let t=(0,s.c)(23),[n,r]=u(`pycharm`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,l.jsx)(`stop`,{offset:`.1`,stopColor:`#00D886`}),a=(0,l.jsx)(`stop`,{offset:`.59`,stopColor:`#F0EB18`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,l.jsxs)(`linearGradient`,{id:n,x1:`7.671`,x2:`61.126`,y1:`64.393`,y2:`39.609`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let c,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,l.jsx)(`stop`,{offset:`.3`,stopColor:`#F0EB18`}),d=(0,l.jsx)(`stop`,{offset:`.7`,stopColor:`#00C4F4`}),t[4]=c,t[5]=d):(c=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,l.jsxs)(`linearGradient`,{id:r,x1:`59.933`,x2:`1.337`,y1:`59.676`,y2:`1.08`,gradientUnits:`userSpaceOnUse`,children:[c,d]}),t[6]=r,t[7]=f);let p;t[8]!==o||t[9]!==f?(p=(0,l.jsxs)(`defs`,{children:[o,f]}),t[8]=o,t[9]=f,t[10]=p):p=t[10];let m;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,l.jsx)(`path`,{fill:`#00D886`,d:`M6 47.55v12.259a4.125 4.125 0 0 0 4.19 4.124l11.044-.176a4.13 4.13 0 0 0 3.066-1.44l32.707-38.158c.64-.748.993-1.7.993-2.685V10.125A4.125 4.125 0 0 0 53.875 6H42.872c-1.19 0-2.321.514-3.105 1.409L7.021 44.834A4.12 4.12 0 0 0 6 47.55`}),t[11]=m):m=t[11];let h=`url(#${n})`,g;t[12]===h?g=t[13]:(g=(0,l.jsx)(`path`,{fill:h,d:`M6 49.015v10.862a4.125 4.125 0 0 0 4.125 4.125h12.566q.3 0 .598-.044l37.185-5.448A4.125 4.125 0 0 0 64 54.429V39.03a4.125 4.125 0 0 0-4.127-4.125l-18.504.005c-.426 0-.849.066-1.254.195L8.871 45.085A4.13 4.13 0 0 0 6 49.015z`}),t[12]=h,t[13]=g);let _=`url(#${r})`,v;t[14]===_?v=t[15]:(v=(0,l.jsx)(`path`,{fill:_,d:`M0 4.125v34.128c0 1.658.993 3.154 2.52 3.8L39.943 57.85c.518.219 1.075.33 1.638.324l18.329-.15A4.125 4.125 0 0 0 64 53.9V36.234c0-.806-.236-1.593-.678-2.267L42.213 1.86A4.13 4.13 0 0 0 38.766 0H4.125A4.125 4.125 0 0 0 0 4.125`}),t[14]=_,t[15]=v);let y,b;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,l.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,l.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM16.993 16.992h6.442q1.586 0 2.78.579 1.196.579 1.845 1.63.648 1.05.648 2.432c0 .922-.22 1.759-.659 2.466q-.66 1.062-1.87 1.646-1.212.584-2.83.584h-3.43V32h-2.927zm7.54 6.63q.553-.273.852-.782.3-.51.3-1.195c0-.685-.1-.842-.3-1.174q-.3-.5-.852-.772-.552-.273-1.291-.273h-3.324v4.47h3.324q.74 0 1.291-.273M33.713 31.243a7.3 7.3 0 0 1-2.744-2.787q-.996-1.774-.996-3.961c0-2.187.332-2.778.996-3.96a7.3 7.3 0 0 1 2.744-2.787q1.748-1.013 3.902-1.014 1.823 0 3.344.675a6.86 6.86 0 0 1 2.535 1.892 6.44 6.44 0 0 1 1.356 2.793h-3.066a4.05 4.05 0 0 0-.895-1.431 4 4 0 0 0-1.43-.95 4.9 4.9 0 0 0-1.823-.332q-1.33 0-2.402.665a4.6 4.6 0 0 0-1.677 1.827q-.606 1.164-.606 2.62 0 1.459.606 2.621a4.6 4.6 0 0 0 1.677 1.828q1.072.664 2.402.664.986 0 1.822-.332a4.02 4.02 0 0 0 2.326-2.38h3.066a6.44 6.44 0 0 1-1.356 2.792 6.86 6.86 0 0 1-2.535 1.892q-1.522.675-3.344.675-2.154 0-3.902-1.013z`}),t[16]=y,t[17]=b):(y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==v||t[20]!==p||t[21]!==g?(x=(0,l.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,m,g,v,y,b]}),t[18]=e,t[19]=v,t[20]=p,t[21]=g,t[22]=x):x=t[22],x},y=e=>{let t=(0,s.c)(23),[n,r]=u(`rider`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,l.jsx)(`stop`,{offset:`.21`,stopColor:`#007DFE`}),a=(0,l.jsx)(`stop`,{offset:`.55`,stopColor:`#FFB700`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,l.jsxs)(`linearGradient`,{id:n,x1:`64.391`,x2:`39.607`,y1:`56.329`,y2:`2.874`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let c,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,l.jsx)(`stop`,{offset:`.23`,stopColor:`#FFB700`}),d=(0,l.jsx)(`stop`,{offset:`.73`,stopColor:`#FF0A67`}),t[4]=c,t[5]=d):(c=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,l.jsxs)(`linearGradient`,{id:r,x1:`59.676`,x2:`1.08`,y1:`4.067`,y2:`62.663`,gradientUnits:`userSpaceOnUse`,children:[c,d]}),t[6]=r,t[7]=f);let p;t[8]!==o||t[9]!==f?(p=(0,l.jsxs)(`defs`,{children:[o,f]}),t[8]=o,t[9]=f,t[10]=p):p=t[10];let m;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,l.jsx)(`path`,{fill:`#007DFE`,d:`M47.55 58h12.258a4.125 4.125 0 0 0 4.124-4.19l-.176-11.044a4.12 4.12 0 0 0-1.44-3.066L24.158 6.993A4.13 4.13 0 0 0 21.474 6H10.125A4.125 4.125 0 0 0 6 10.125v11.003c0 1.19.514 2.321 1.409 3.105l37.425 32.746A4.12 4.12 0 0 0 47.55 58`}),t[11]=m):m=t[11];let h=`url(#${n})`,g;t[12]===h?g=t[13]:(g=(0,l.jsx)(`path`,{fill:h,d:`M49.013 58h10.862A4.125 4.125 0 0 0 64 53.875V41.309q0-.3-.044-.598L58.508 3.527A4.125 4.125 0 0 0 54.427 0H39.029a4.125 4.125 0 0 0-4.125 4.126l.005 18.505c0 .425.066.848.195 1.253l9.979 31.246a4.13 4.13 0 0 0 3.93 2.87`}),t[12]=h,t[13]=g);let _=`url(#${r})`,v;t[14]===_?v=t[15]:(v=(0,l.jsx)(`path`,{fill:_,d:`M4.125 64h34.128a4.13 4.13 0 0 0 3.8-2.52L57.85 24.057c.219-.518.33-1.076.324-1.638l-.15-18.329A4.124 4.124 0 0 0 53.9 0H36.234c-.805 0-1.593.236-2.266.678L1.86 21.787A4.13 4.13 0 0 0 0 25.234v34.641A4.125 4.125 0 0 0 4.125 64`}),t[14]=_,t[15]=v);let y,b;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,l.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,l.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM16.992 16.992h6.442q1.576 0 2.776.579t1.85 1.63.648 2.432c0 .922-.22 1.75-.66 2.46q-.66 1.068-1.875 1.651-1.217.584-2.825.584h-3.43v5.67h-2.926zm7.54 6.63q.553-.274.853-.783.3-.51.3-1.184c0-.45-.1-.852-.3-1.185q-.3-.498-.852-.772-.552-.273-1.292-.273h-3.323v4.47h3.323q.74 0 1.292-.273m-2.63 1.763h3.194L29.03 32h-3.355zM31.613 16.992h5.713q2.133 0 3.822.965a6.9 6.9 0 0 1 2.641 2.674q.954 1.71.954 3.864t-.953 3.865a6.9 6.9 0 0 1-2.642 2.674q-1.688.964-3.822.964h-5.713zm8.028 11.876q1.008-.6 1.555-1.72t.547-2.653q0-1.534-.547-2.653-.547-1.12-1.555-1.721-1.008-.6-2.347-.6h-2.755v9.947h2.755q1.34 0 2.347-.6`}),t[16]=y,t[17]=b):(y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==v||t[20]!==p||t[21]!==g?(x=(0,l.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,m,g,v,y,b]}),t[18]=e,t[19]=v,t[20]=p,t[21]=g,t[22]=x):x=t[22],x},b=e=>{let t=(0,s.c)(23),[n,r]=u(`rubymine`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,l.jsx)(`stop`,{offset:`.29`,stopColor:`#FF2358`}),a=(0,l.jsx)(`stop`,{offset:`.75`,stopColor:`#7256FF`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,l.jsxs)(`linearGradient`,{id:n,x1:`4.325`,x2:`62.921`,y1:`59.932`,y2:`1.337`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let c,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,l.jsx)(`stop`,{offset:`.29`,stopColor:`#FF8100`}),d=(0,l.jsx)(`stop`,{offset:`.56`,stopColor:`#FF2358`}),t[4]=c,t[5]=d):(c=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,l.jsxs)(`linearGradient`,{id:r,x1:`-.391`,x2:`24.393`,y1:`7.671`,y2:`61.125`,gradientUnits:`userSpaceOnUse`,children:[c,d]}),t[6]=r,t[7]=f);let p;t[8]!==o||t[9]!==f?(p=(0,l.jsxs)(`defs`,{children:[o,f]}),t[8]=o,t[9]=f,t[10]=p):p=t[10];let m=`url(#${n})`,h;t[11]===m?h=t[12]:(h=(0,l.jsx)(`path`,{fill:m,d:`M59.875 0H25.748a4.13 4.13 0 0 0-3.8 2.52L6.151 39.942a4.1 4.1 0 0 0-.325 1.639l.15 18.328A4.125 4.125 0 0 0 10.101 64h17.666c.805 0 1.593-.235 2.266-.678l32.109-21.108A4.12 4.12 0 0 0 64 38.766V4.125A4.125 4.125 0 0 0 59.875 0`}),t[11]=m,t[12]=h);let g=`url(#${r})`,_;t[13]===g?_=t[14]:(_=(0,l.jsx)(`path`,{fill:g,d:`M14.987 6H4.126A4.125 4.125 0 0 0 0 10.125v12.566q0 .3.044.598l5.448 37.184A4.125 4.125 0 0 0 9.572 64H24.97a4.125 4.125 0 0 0 4.125-4.126l-.004-18.504c0-.426-.067-.85-.196-1.254L18.917 8.87A4.13 4.13 0 0 0 14.987 6z`}),t[13]=g,t[14]=_);let v,y,b;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,l.jsx)(`path`,{fill:`#FF8100`,d:`M16.45 6H4.19a4.125 4.125 0 0 0-4.124 4.19L0 21c.019 1.181.786 2.531 1.683 3.3l38.158 32.706c.748.641 1.7.993 2.684.993h11.35A4.125 4.125 0 0 0 58 53.875V42.872c0-1.189-.514-2.32-1.41-3.104L19.167 7.021A4.12 4.12 0 0 0 16.45 6`}),y=(0,l.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,l.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM17.012 16.992h6.442q1.575 0 2.776.579t1.849 1.63.648 2.432c0 .922-.22 1.75-.66 2.46q-.658 1.068-1.875 1.651-1.216.584-2.824.584h-3.43v5.67h-2.926zm7.54 6.63q.552-.274.852-.783.3-.51.3-1.184c0-.45-.1-.852-.3-1.185q-.3-.498-.852-.772-.552-.273-1.292-.273h-3.323v4.47h3.323q.74 0 1.292-.273m-2.631 1.763h3.194L29.05 32h-3.355zM31.633 16.992h4.073l3.087 9.85.257 1.287.225-1.286 2.98-9.85h4.138v15.005h-2.894V21.29l.043-.782-3.494 11.49h-2.123l-3.451-11.415.043.707v10.708h-2.883V16.992z`}),t[15]=v,t[16]=y,t[17]=b):(v=t[15],y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==_||t[20]!==p||t[21]!==h?(x=(0,l.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,h,_,v,y,b]}),t[18]=e,t[19]=_,t[20]=p,t[21]=h,t[22]=x):x=t[22],x},x=e=>{let t=(0,s.c)(23),[n,r]=u(`rustrover`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,l.jsx)(`stop`,{offset:`.08`,stopColor:`#00D886`}),a=(0,l.jsx)(`stop`,{offset:`.46`,stopColor:`#FFAB00`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,l.jsxs)(`linearGradient`,{id:n,x1:`7.671`,x2:`61.125`,y1:`64.393`,y2:`39.609`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let c,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,l.jsx)(`stop`,{offset:`.19`,stopColor:`#FFAB00`}),d=(0,l.jsx)(`stop`,{offset:`.83`,stopColor:`#FF004C`}),t[4]=c,t[5]=d):(c=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,l.jsxs)(`linearGradient`,{id:r,x1:`59.932`,x2:`1.336`,y1:`59.676`,y2:`1.08`,gradientUnits:`userSpaceOnUse`,children:[c,d]}),t[6]=r,t[7]=f);let p;t[8]!==o||t[9]!==f?(p=(0,l.jsxs)(`defs`,{children:[o,f]}),t[8]=o,t[9]=f,t[10]=p):p=t[10];let m;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,l.jsx)(`path`,{fill:`#00D886`,d:`M6 47.55v12.258a4.125 4.125 0 0 0 4.19 4.124l11.044-.176a4.12 4.12 0 0 0 3.066-1.44l32.707-38.158c.64-.747.993-1.7.993-2.684V10.125A4.125 4.125 0 0 0 53.875 6H42.872c-1.19 0-2.321.514-3.105 1.409L7.021 44.833A4.12 4.12 0 0 0 6 47.55`}),t[11]=m):m=t[11];let h=`url(#${n})`,g;t[12]===h?g=t[13]:(g=(0,l.jsx)(`path`,{fill:h,d:`M6 49.015v10.862a4.125 4.125 0 0 0 4.125 4.125h12.566q.3 0 .598-.044l37.185-5.448A4.125 4.125 0 0 0 64 54.429V39.03a4.125 4.125 0 0 0-4.127-4.125l-18.504.005c-.426 0-.849.066-1.254.195L8.871 45.085A4.13 4.13 0 0 0 6 49.015z`}),t[12]=h,t[13]=g);let _=`url(#${r})`,v;t[14]===_?v=t[15]:(v=(0,l.jsx)(`path`,{fill:_,d:`M0 4.125v34.128c0 1.658.993 3.154 2.52 3.8L39.943 57.85c.518.219 1.075.33 1.638.324l18.329-.15A4.125 4.125 0 0 0 64 53.9V36.234c0-.806-.236-1.593-.678-2.267L42.213 1.86A4.13 4.13 0 0 0 38.766 0H4.125A4.125 4.125 0 0 0 0 4.125`}),t[14]=_,t[15]=v);let y,b;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,l.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,l.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM16.992 16.992h6.442q1.576 0 2.776.579t1.85 1.63.648 2.432c0 .922-.22 1.75-.66 2.46q-.66 1.068-1.875 1.651-1.217.584-2.825.584h-3.43v5.67h-2.926zm7.54 6.63q.553-.274.853-.783.3-.51.3-1.184c0-.45-.1-.852-.3-1.185q-.3-.498-.852-.772-.552-.273-1.292-.273h-3.323v4.47h3.323q.74 0 1.292-.273m-2.63 1.763h3.194L29.03 32h-3.355zM31.613 16.992h6.442q1.575 0 2.776.579t1.85 1.63.648 2.432c0 .922-.22 1.75-.66 2.46q-.659 1.068-1.875 1.651-1.217.584-2.824.584h-3.43v5.67h-2.927zm7.54 6.63q.553-.274.853-.783.3-.51.3-1.184c0-.45-.1-.852-.3-1.185q-.3-.498-.852-.772-.552-.273-1.292-.273h-3.323v4.47h3.323q.74 0 1.292-.273m-2.63 1.763h3.194L43.651 32h-3.355z`}),t[16]=y,t[17]=b):(y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==v||t[20]!==p||t[21]!==g?(x=(0,l.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,m,g,v,y,b]}),t[18]=e,t[19]=v,t[20]=p,t[21]=g,t[22]=x):x=t[22],x},S=e=>{let t=(0,s.c)(23),[n,r]=u(`webstorm`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,l.jsx)(`stop`,{offset:`.22`,stopColor:`#F0EB18`}),a=(0,l.jsx)(`stop`,{offset:`.59`,stopColor:`#00C4F4`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,l.jsxs)(`linearGradient`,{id:n,x1:`7.671`,x2:`61.126`,y1:`64.392`,y2:`39.609`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let c,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,l.jsx)(`stop`,{offset:`.19`,stopColor:`#00C4F4`}),d=(0,l.jsx)(`stop`,{offset:`.83`,stopColor:`#007DFE`}),t[4]=c,t[5]=d):(c=t[4],d=t[5]);let f;t[6]===r?f=t[7]:(f=(0,l.jsxs)(`linearGradient`,{id:r,x1:`59.932`,x2:`1.337`,y1:`59.676`,y2:`1.079`,gradientUnits:`userSpaceOnUse`,children:[c,d]}),t[6]=r,t[7]=f);let p;t[8]!==o||t[9]!==f?(p=(0,l.jsxs)(`defs`,{children:[o,f]}),t[8]=o,t[9]=f,t[10]=p):p=t[10];let m;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,l.jsx)(`path`,{fill:`#F0EB18`,d:`M6 47.55v12.258a4.125 4.125 0 0 0 4.19 4.124l11.044-.176a4.12 4.12 0 0 0 3.066-1.44l32.707-38.158c.64-.747.993-1.7.993-2.684V10.125A4.125 4.125 0 0 0 53.875 6H42.872c-1.19 0-2.321.514-3.105 1.409L7.021 44.833A4.12 4.12 0 0 0 6 47.55`}),t[11]=m):m=t[11];let h=`url(#${n})`,g;t[12]===h?g=t[13]:(g=(0,l.jsx)(`path`,{fill:h,d:`M6 49.015v10.862a4.125 4.125 0 0 0 4.125 4.125h12.566q.3 0 .598-.044l37.185-5.448A4.125 4.125 0 0 0 64 54.429V39.03a4.125 4.125 0 0 0-4.127-4.125l-18.504.005c-.426 0-.849.066-1.254.195L8.871 45.085A4.13 4.13 0 0 0 6 49.015z`}),t[12]=h,t[13]=g);let _=`url(#${r})`,v;t[14]===_?v=t[15]:(v=(0,l.jsx)(`path`,{fill:_,d:`M0 4.125v34.128c0 1.658.993 3.154 2.52 3.8L39.943 57.85c.518.219 1.075.33 1.638.324l18.329-.15A4.125 4.125 0 0 0 64 53.9V36.234c0-.806-.236-1.593-.678-2.267L42.213 1.86A4.13 4.13 0 0 0 38.766 0H4.125A4.125 4.125 0 0 0 0 4.125`}),t[14]=_,t[15]=v);let y,b;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,l.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),b=(0,l.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM19.051 16.992l2.423 10.955 2.583-10.955h2.958l2.701 10.955 2.348-10.955h2.97l-3.645 15.006h-3.334l-2.53-10.9-2.561 10.9H19.64l-3.623-15.006zM38.662 31.664q-1.26-.59-1.972-1.65t-.735-2.444h2.937q0 .654.343 1.147t.954.772q.61.278 1.404.278c.53 0 .952-.083 1.335-.251q.573-.252.889-.702t.316-1.029q0-.718-.434-1.19-.435-.471-1.195-.654l-2.648-.59q-1.071-.234-1.865-.809a4 4 0 0 1-1.232-1.42q-.44-.846-.44-1.908 0-1.286.665-2.31.664-1.023 1.854-1.597 1.19-.573 2.701-.573c1.008 0 1.934.186 2.734.558q1.2.558 1.87 1.549t.68 2.277h-2.925q0-.546-.29-.98c-.29-.435-.466-.515-.82-.676a2.9 2.9 0 0 0-1.217-.24q-.686 0-1.205.23a1.9 1.9 0 0 0-.81.643q-.29.412-.289.96 0 .621.402 1.028t1.099.579l2.55.557q1.105.226 1.968.852a4.45 4.45 0 0 1 1.345 1.544 4.2 4.2 0 0 1 .482 1.999q0 1.329-.702 2.385-.702 1.054-1.966 1.656-1.266.6-2.894.6-1.63 0-2.889-.59`}),t[16]=y,t[17]=b):(y=t[16],b=t[17]);let x;return t[18]!==e||t[19]!==v||t[20]!==p||t[21]!==g?(x=(0,l.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[p,m,g,v,y,b]}),t[18]=e,t[19]=v,t[20]=p,t[21]=g,t[22]=x):x=t[22],x};export{h as a,v as c,x as d,S as f,m as i,y as l,a as m,f as n,g as o,o as p,p as r,_ as s,d as t,b as u};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{i as e,t}from"./react-PSPkXoKo.js";import{t as n}from"./compiler-runtime-BNrXlsa1.js";import{Mt as r,Xt as i,Zt as a,_t as o,at as s,en as c,in as l}from"./environmentApi-BFHi_M02.js";import{Ci as u,Fr as d,G as f,H as p,Ir as m,Mi as h,Nr as g,U as _,Z as v,et as y,ot as b,tt as x}from"./composerDraftStore-xu3n5gdX.js";import{E as S,Xn as C}from"./providerIconUtils-Ch6hejVW.js";import{a as w,i as T,s as E}from"./toast-DE-WwLMa.js";import{p as D}from"./JetBrainsIcons-BcR8pCma.js";import{t as O}from"./keyboard-B87VTfPa.js";import{t as k}from"./plus-B10j9MbZ.js";import{t as A}from"./x-b9324xm-.js";import{t as j}from"./input-BfUa3JUD.js";import{i as M,n as N,r as P}from"./settingsLayout-B5o13iGO.js";var F=e(t(),1),I=n(),L={terminal:{id:`terminal`,label:`Terminal`,sortWeight:10},workspace:{id:`workspace`,label:`Workspace`,sortWeight:20},diff:{id:`diff`,label:`Diff`,sortWeight:30},commandPalette:{id:`commandPalette`,label:`Command palette`,sortWeight:40},chat:{id:`chat`,label:`Chat`,sortWeight:50},editor:{id:`editor`,label:`Editor`,sortWeight:60},modelPicker:{id:`modelPicker`,label:`Model picker`,sortWeight:70},thread:{id:`thread`,label:`Threads`,sortWeight:80},script:{id:`script`,label:`Project scripts`,sortWeight:90}},R={"terminal.toggle":{title:`Toggle terminal drawer`,sortWeight:1},"terminal.split":{title:`Split terminal`,sortWeight:2},"terminal.new":{title:`New terminal`,sortWeight:3},"terminal.close":{title:`Close terminal`,sortWeight:4},"workspace.files":{title:`Open workspace files`,sortWeight:1},"workspace.review":{title:`Open workspace review`,sortWeight:2},"workspace.terminal":{title:`Open workspace terminal`,sortWeight:3},"diff.toggle":{title:`Toggle diff view`,sortWeight:1},"commandPalette.toggle":{title:`Open command palette`,sortWeight:1},"chat.new":{title:`New chat`,sortWeight:1},"chat.newLocal":{title:`New chat (local environment)`,sortWeight:2},"editor.openFavorite":{title:`Open in preferred editor`,sortWeight:1},"modelPicker.toggle":{title:`Toggle model picker`,sortWeight:1},"modelPicker.jump.1":{title:`Pick model 1`,sortWeight:2},"modelPicker.jump.2":{title:`Pick model 2`,sortWeight:3},"modelPicker.jump.3":{title:`Pick model 3`,sortWeight:4},"modelPicker.jump.4":{title:`Pick model 4`,sortWeight:5},"modelPicker.jump.5":{title:`Pick model 5`,sortWeight:6},"modelPicker.jump.6":{title:`Pick model 6`,sortWeight:7},"modelPicker.jump.7":{title:`Pick model 7`,sortWeight:8},"modelPicker.jump.8":{title:`Pick model 8`,sortWeight:9},"modelPicker.jump.9":{title:`Pick model 9`,sortWeight:10},"thread.previous":{title:`Previous thread`,sortWeight:1},"thread.next":{title:`Next thread`,sortWeight:2},"thread.jump.1":{title:`Jump to thread 1`,sortWeight:3},"thread.jump.2":{title:`Jump to thread 2`,sortWeight:4},"thread.jump.3":{title:`Jump to thread 3`,sortWeight:5},"thread.jump.4":{title:`Jump to thread 4`,sortWeight:6},"thread.jump.5":{title:`Jump to thread 5`,sortWeight:7},"thread.jump.6":{title:`Jump to thread 6`,sortWeight:8},"thread.jump.7":{title:`Jump to thread 7`,sortWeight:9},"thread.jump.8":{title:`Jump to thread 8`,sortWeight:10},"thread.jump.9":{title:`Jump to thread 9`,sortWeight:11}};function z(e){let t=e.indexOf(`.`),n=t===-1?e:e.slice(0,t);return n===`script`?L.script:L[n]??L.script}function B(e,t){let n=z(e),r=R[e];if(r)return{category:n,title:r.title,sortWeight:r.sortWeight};let i=e.match(/^script\.([a-z0-9][a-z0-9-]*)\.run$/)?.[1]??e;return{category:n,title:t??`Run: ${i}`,sortWeight:100}}var V=[{id:`always`,label:`Always`,value:void 0},{id:`terminalFocus`,label:`Terminal focused`,value:`terminalFocus`},{id:`notTerminalFocus`,label:`Not in terminal`,value:`!terminalFocus`},{id:`terminalOpen`,label:`Terminal open`,value:`terminalOpen`},{id:`notTerminalOpen`,label:`Terminal not open`,value:`!terminalOpen`},{id:`modelPickerOpen`,label:`Model picker open`,value:`modelPickerOpen`},{id:`commandPaletteOpen`,label:`Command palette open`,value:`commandPaletteOpen`},{id:`composerFocus`,label:`Composer focused`,value:`composerFocus`},{id:`notComposerFocus`,label:`Not in composer`,value:`!composerFocus`}],H=new Map(V.map(e=>[e.value,e])),U=new Map(V.map(e=>[e.value===void 0?void 0:e.value.replace(/\s+/g,``),e]));function W(e){return e===void 0?H.get(void 0):H.get(e)||U.get(e.replace(/\s+/g,``))}function G(e){let t=W(e);return t?t.label:e??`Always`}function K(e){if(e)switch(e.type){case`identifier`:return e.name;case`not`:return`!${K(e.node)}`;case`and`:return`(${K(e.left)} && ${K(e.right)})`;case`or`:return`(${K(e.left)} || ${K(e.right)})`}}function ee(e,t){return(e===void 0?``:e.replace(/\s+/g,``))===(t===void 0?``:t.replace(/\s+/g,``))}function te(e,t){let n=e[t];if(!n)return[];let r=[];return e.forEach((e,i)=>{i!==t&&e.command!==n.command&&e.key===n.key&&ee(e.when,n.when)&&r.push({key:n.key,otherCommand:e.command,otherWhen:e.when})}),r}function ne(e){let t=new Map;return e.forEach((n,r)=>{let i=te(e,r);if(i.length===0)return;let a=e[r].command,o=t.get(a)??[];o.push(...i),t.set(a,o)}),t}function q(e){return/mac|iphone|ipad|ipod/i.test(e)}var J=new Set([`control`,`shift`,`alt`,`altgraph`,`meta`,`os`,`hyper`,`super`,`fn`,`capslock`,`numlock`,`scrolllock`]),Y=new Set([`escape`,`tab`,`enter`]);function re(e,t){let n=e.toLowerCase();if(n===` `||n===`spacebar`)return`space`;if(n===`esc`)return`escape`;if(n===`arrowup`)return`up`;if(n===`arrowdown`)return`down`;if(n===`arrowleft`)return`left`;if(n===`arrowright`)return`right`;if(t){let e=t.match(/^Digit(\d)$/);if(e)return e[1];if(t===`BracketLeft`)return`[`;if(t===`BracketRight`)return`]`}return n}function X(e,t){let n=e.key.toLowerCase();if(J.has(n))return null;let r=q(t?.platform??(typeof navigator<`u`?navigator.platform:``)),i=r?e.metaKey:e.ctrlKey;if(!(i||e.shiftKey||e.altKey||(r?e.ctrlKey:e.metaKey))&&Y.has(n))return null;let a=re(e.key,e.code);return a.length===0?null:{key:a,modKey:i,metaKey:!r&&e.metaKey,ctrlKey:r&&e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey}}var ie={mod:`⌘`,meta:`⌘`,cmd:`⌘`,ctrl:`⌃`,control:`⌃`,shift:`⇧`,alt:`⌥`,option:`⌥`},ae={mod:`Ctrl`,meta:`Meta`,cmd:`Meta`,ctrl:`Ctrl`,control:`Ctrl`,shift:`Shift`,alt:`Alt`,option:`Alt`},oe={space:`Space`,enter:`Enter`,escape:`Esc`,up:`↑`,down:`↓`,left:`←`,right:`→`,tab:`Tab`,backspace:`⌫`,delete:`Del`};function se(e,t){let n=q(t?.platform??(typeof navigator<`u`?navigator.platform:``))?ie:ae,r=[];e.modKey&&r.push(n.mod),e.metaKey&&r.push(n.meta),e.ctrlKey&&r.push(n.ctrl),e.altKey&&r.push(n.alt),e.shiftKey&&r.push(n.shift);let i=oe[e.key]??(e.key.length===1?e.key.toUpperCase():e.key);return r.push(i),r}function ce(e){let t=[];e.modKey&&t.push(`mod`),e.metaKey&&t.push(`meta`),e.ctrlKey&&t.push(`ctrl`),e.altKey&&t.push(`alt`),e.shiftKey&&t.push(`shift`);let n=e.key===` `?`space`:e.key;return t.push(n),t.join(`+`)}var Z=h(),le=[],ue=(()=>{let e=new Map;for(let t of l){let n=`${t.key}|${t.when??``}`,r=e.get(t.command)??new Set;r.add(n),e.set(t.command,r)}return e})(),Q=new Set(l.map(e=>e.command));function de(e,t){return`${e.command}|${e.key}|${e.when??``}|${t}`}function fe(e){return{key:ce(e.shortcut),command:e.command,when:K(e.whenAst)}}function $(e){return e.map((e,t)=>({...fe(e),__id:de(e,t)}))}function pe(e){return e.map(({__id:e,...t})=>t)}function me(e){return l.filter(t=>t.command===e).map(e=>Object.assign({},e))}function he(e,t){if(!Q.has(e))return`custom`;let n=ue.get(e);if(!n)return`custom`;if(t.length!==n.size)return`modified`;for(let e of t){let t=`${e.key}|${e.when??``}`;if(!n.has(t))return`modified`}return`default`}function ge(e,t,n){return n?[t.toLowerCase(),e.command.toLowerCase(),e.key.toLowerCase(),G(e.when).toLowerCase()].some(e=>e.includes(n)):!0}function _e(){return Math.random().toString(36).slice(2)}function ve(){let e=a(),t=c(),n=i(),l=typeof navigator<`u`?navigator.platform:``,d=m(l),[f,p]=(0,F.useState)(!1),[h,_]=(0,F.useState)(null),v=(0,F.useCallback)(()=>{if(!t)return;_(null),p(!0);let e=S(n??[]);if(!e){_(`No available editors found.`),p(!1);return}r().shell.openInEditor(t,e).catch(e=>{_(e instanceof Error?e.message:`Unable to open keybindings file.`)}).finally(()=>{p(!1)})},[n,t]),y=o(u(s)),b=(0,F.useMemo)(()=>{let e=new Set,t=new Map;for(let n of y)for(let r of n.scripts){let n=`script.${r.id}.run`;e.add(n),t.has(n)||t.set(n,`Run: ${r.name}`)}return{commandList:Array.from(e),titles:t}},[y]),x=e?.keybindings??le,[k,A]=(0,F.useState)(()=>$(x)),[I,R]=(0,F.useState)(()=>JSON.stringify(pe($(x)))),z=(0,F.useRef)(!1);(0,F.useEffect)(()=>{let e=JSON.stringify(pe($(x)));e!==I&&(R(e),z.current||A($(x)))},[x,I]);let V=(0,F.useCallback)(async e=>{z.current=!0;try{await r().keybindings.replaceCustom({rules:pe(e)})}catch(e){T.add(w({type:`error`,title:`Could not save keybindings`,description:e instanceof Error?e.message:`An unknown error occurred.`})),A($(x))}finally{z.current=!1}},[x]),H=(0,F.useCallback)((e,t)=>{A(n=>{let r=n.slice(),i=r[e];if(!i)return n;let a=ce(t);return a===i.key?n:(r[e]={...i,key:a,__id:i.__id},V(r),r)})},[V]),U=(0,F.useCallback)(e=>{A(t=>{let n={command:e,key:``,when:void 0,__id:`placeholder-${_e()}`},r=(()=>{let n=-1;return t.forEach((t,r)=>{t.command===e&&(n=r)}),n})();return r===-1?[...t,n]:[...t.slice(0,r+1),n,...t.slice(r+1)]})},[]),W=(0,F.useCallback)(e=>{A(t=>{let n=t.slice();return n.splice(e,1),V(n),n})},[V]),G=(0,F.useCallback)((e,t)=>{A(n=>{let r=n.slice(),i=r[e];return!i||(i.when??void 0)===t?n:(r[e]={...i,when:t,__id:i.__id},V(r),r)})},[V]),K=(0,F.useCallback)(e=>{A(t=>{let n=t[e];if(!n)return t;let r=n.command;if(!Q.has(r)){let n=t.slice();return n.splice(e,1),V(n),n}let i=me(r),a=t.filter(e=>e.command!==r);for(let e of i)a.push({...e,__id:`default-${r}-${_e()}`});return V(a),a})},[V]),ee=(0,F.useCallback)(e=>{A(t=>{let n=t.filter(t=>t.command!==e);if(Q.has(e))for(let t of me(e))n.push({...t,__id:`default-${e}-${_e()}`});return V(n),n})},[V]),te=(0,F.useCallback)(async()=>{A([]);try{await r().keybindings.replaceCustom({rules:[]})}catch(e){T.add(w({type:`error`,title:`Could not restore default keybindings`,description:e instanceof Error?e.message:`An unknown error occurred.`})),A($(x))}},[x]),q=(0,F.useRef)(new Map),J=(0,F.useCallback)(e=>{let t=q.current.get(e);t&&(t.scrollIntoView({behavior:`smooth`,block:`center`}),t.dataset.flash=`true`,window.setTimeout(()=>{delete t.dataset.flash},1100))},[]),[Y,re]=(0,F.useState)(``),X=(0,F.useDeferredValue)(Y.trim().toLowerCase()),ie=(0,F.useMemo)(()=>ne(k),[k]),ae=(0,F.useMemo)(()=>{let e=new Map;k.forEach((t,n)=>{let r=e.get(t.command);r?r.push(n):e.set(t.command,[n])});let t=new Set([...e.keys(),...Q,...b.commandList]),n=new Map;for(let r of t){let t=e.get(r)??[],i=t.map(e=>k[e]).filter(Boolean),a=B(r,b.titles.get(r)),o=he(r,i),s={key:``,command:r,when:void 0};if(!(X.length===0||ge(s,a.title,X)||i.some(e=>ge(e,a.title,X))))continue;let c={command:r,title:a.title,indicesInDraft:t,status:o},l=n.get(a.category.id);l?l.push(c):n.set(a.category.id,[c])}let r=[];for(let e of Object.values(L).toSorted((e,t)=>e.sortWeight-t.sortWeight)){let t=n.get(e.id);!t||t.length===0||(t.sort((e,t)=>{let n=B(e.command,b.titles.get(e.command)),r=B(t.command,b.titles.get(t.command));return n.sortWeight-r.sortWeight}),r.push({category:e,rows:t}))}return r},[k,X,b]),oe=ae.reduce((e,t)=>e+t.rows.length,0),se=(0,F.useMemo)(()=>({platform:l,draft:k,conflictsByCommand:ie,onRebind:H,onAddBinding:U,onRemoveBinding:W,onChangeWhen:G,onResetBinding:K,onResetCommand:ee,scrollToCommand:J,rowRefs:q}),[l,k,ie,H,U,W,G,K,ee,J]),ue=e?.issues.filter(e=>e.kind.startsWith(`keybindings.`))??[],de=(n??[]).length>0;return(0,Z.jsxs)(N,{children:[(0,Z.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,Z.jsx)(`span`,{className:`grid size-9 place-items-center rounded-lg bg-accent text-foreground/70`,children:(0,Z.jsx)(O,{className:`size-4`})}),(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)(`h1`,{className:`text-lg font-semibold tracking-tight`,children:`Keybindings`}),(0,Z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Click any shortcut and press a new combination to rebind. Press Esc to cancel, Backspace to clear.`})]})]}),(0,Z.jsxs)(g,{variant:`outline`,size:`xs`,onClick:()=>void te(),disabled:k.length===0,children:[(0,Z.jsx)(D,{className:`size-3.5`}),`Restore defaults`]})]}),(0,Z.jsx)(M,{title:`Configuration file`,children:(0,Z.jsx)(P,{title:`Keybindings file`,description:"Open the persisted `keybindings.json` file to edit advanced bindings directly.",status:(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`span`,{className:`block break-all font-mono text-[11px] text-foreground`,children:t??`Resolving keybindings path...`}),h?(0,Z.jsx)(`span`,{className:`mt-1 block text-destructive`,children:h}):(0,Z.jsx)(`span`,{className:`mt-1 block`,children:de?`Opens in your preferred editor.`:`No available editors found.`})]}),control:(0,Z.jsx)(g,{size:`xs`,variant:`outline`,disabled:!t||!de||f,onClick:v,children:f?`Opening...`:`Open file`})})}),ue.length>0?(0,Z.jsxs)(`div`,{className:`flex items-start gap-2 rounded-lg border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-xs text-amber-200`,children:[(0,Z.jsx)(E,{className:`mt-0.5 size-4 shrink-0`}),(0,Z.jsxs)(`div`,{className:`flex-1 space-y-0.5`,children:[ue.map(e=>(0,Z.jsx)(`p`,{children:e.message},`${e.kind}-${e.message}`)),t?(0,Z.jsxs)(`p`,{className:`opacity-70`,children:[`Edit `,(0,Z.jsx)(`code`,{className:`rounded bg-amber-500/20 px-1`,children:t}),` `,`to resolve.`]}):null]})]}):null,(0,Z.jsxs)(`div`,{className:`relative`,children:[(0,Z.jsx)(C,{className:`absolute left-3 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground/60`}),(0,Z.jsx)(j,{type:`search`,placeholder:`Search by command, shortcut, or when…`,className:`pl-9`,value:Y,onChange:e=>re(e.target.value)})]}),oe===0?(0,Z.jsx)(`div`,{className:`rounded-lg border border-dashed border-border/60 px-6 py-12 text-center text-sm text-muted-foreground`,children:`No commands match your search.`}):ae.map(e=>(0,Z.jsx)(M,{title:e.category.label,children:e.rows.map(e=>(0,Z.jsx)(ye,{row:e,context:se,isMac:d,scriptTitle:b.titles.get(e.command)},e.command))},e.category.id))]})}var ye=(0,F.memo)(function(e){let t=(0,I.c)(42),{row:n,context:r,isMac:i}=e,a;if(t[0]!==r||t[1]!==i||t[2]!==n.command||t[3]!==n.indicesInDraft||t[4]!==n.status||t[5]!==n.title){let e;t[7]===r.draft?e=t[8]:(e=e=>({index:e,rule:r.draft[e]}),t[7]=r.draft,t[8]=e);let o=n.indicesInDraft.map(e),s=r.conflictsByCommand.get(n.command)??[],c=s.slice(0,3),l=n.command,u;t[9]!==r.rowRefs.current||t[10]!==n.command?(u=e=>{r.rowRefs.current.set(n.command,e)},t[9]=r.rowRefs.current,t[10]=n.command,t[11]=u):u=t[11];let m;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(m=d(`group flex flex-col gap-2 border-t border-border/60 px-4 py-3 first:border-t-0 transition-colors data-[flash=true]:bg-amber-500/10 sm:px-5`),t[12]=m):m=t[12];let h;t[13]===n.title?h=t[14]:(h=(0,Z.jsx)(`span`,{className:`truncate text-[13px] font-medium tracking-tight text-foreground`,children:n.title}),t[13]=n.title,t[14]=h);let g;t[15]===n.status?g=t[16]:(g=(0,Z.jsx)(be,{status:n.status}),t[15]=n.status,t[16]=g);let v;t[17]!==h||t[18]!==g?(v=(0,Z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[h,g]}),t[17]=h,t[18]=g,t[19]=v):v=t[19];let y;t[20]===n.command?y=t[21]:(y=(0,Z.jsx)(`code`,{className:`block truncate text-[10px] text-muted-foreground/60`,children:n.command}),t[20]=n.command,t[21]=y);let b;t[22]!==v||t[23]!==y?(b=(0,Z.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[v,y]}),t[22]=v,t[23]=y,t[24]=b):b=t[24];let x=o.length===0?(0,Z.jsx)(Se,{draftIndex:-1,rule:{command:n.command,key:``,when:void 0},context:r,isMac:i,isPrimary:!0,isPlaceholder:!0,onAddPlaceholder:()=>r.onAddBinding(n.command)},`placeholder`):o.map((e,t)=>{let{index:n,rule:a}=e;return(0,Z.jsx)(Se,{draftIndex:n,rule:a,context:r,isMac:i,isPrimary:t===0,isPlaceholder:a.key.length===0},`${n}-${a.__id}`)}),S;t[25]!==r||t[26]!==n.command||t[27]!==n.title||t[28]!==o?(S=o.length>0?(0,Z.jsxs)(p,{children:[(0,Z.jsx)(f,{render:(0,Z.jsx)(`button`,{type:`button`,onClick:()=>r.onAddBinding(n.command),className:`inline-flex size-6 items-center justify-center rounded-md border border-dashed border-border/60 text-muted-foreground/60 transition-colors hover:border-border hover:text-foreground`,"aria-label":`Add another shortcut for ${n.title}`,children:(0,Z.jsx)(k,{className:`size-3.5`})})}),(0,Z.jsx)(_,{side:`top`,children:`Add another shortcut`})]}):null,t[25]=r,t[26]=n.command,t[27]=n.title,t[28]=o,t[29]=S):S=t[29];let C;t[30]!==r||t[31]!==n.command||t[32]!==n.status||t[33]!==n.title?(C=n.status!=="default"&&Q.has(n.command)?(0,Z.jsxs)(p,{children:[(0,Z.jsx)(f,{render:(0,Z.jsx)(`button`,{type:`button`,onClick:()=>r.onResetCommand(n.command),className:`inline-flex size-6 items-center justify-center rounded-md text-muted-foreground/50 transition-colors hover:text-foreground`,"aria-label":`Reset ${n.title} to default`,children:(0,Z.jsx)(D,{className:`size-3.5`})})}),(0,Z.jsx)(_,{side:`top`,children:`Reset to default`})]}):null,t[30]=r,t[31]=n.command,t[32]=n.status,t[33]=n.title,t[34]=C):C=t[34];let w;t[35]!==x||t[36]!==S||t[37]!==C?(w=(0,Z.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-1.5`,children:[x,S,C]}),t[35]=x,t[36]=S,t[37]=C,t[38]=w):w=t[38];let T;t[39]!==b||t[40]!==w?(T=(0,Z.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[b,w]}),t[39]=b,t[40]=w,t[41]=T):T=t[41],a=(0,Z.jsxs)(`div`,{"data-keybinding-command":l,ref:u,className:m,children:[T,c.length>0?(0,Z.jsxs)(`div`,{className:`animate-in fade-in slide-in-from-top-1 flex flex-col gap-1 rounded-md border border-destructive/30 bg-destructive/10 px-2.5 py-1.5 text-[11px] text-destructive-foreground/90`,children:[c.map(e=>(0,Z.jsx)(xe,{conflict:e,isMac:i,platform:r.platform,onSelect:()=>r.scrollToCommand(e.otherCommand)},`${e.key}-${e.otherCommand}`)),s.length>c.length?(0,Z.jsxs)(`span`,{className:`opacity-70`,children:[`+ `,s.length-c.length,` more`]}):null]}):null]}),t[0]=r,t[1]=i,t[2]=n.command,t[3]=n.indicesInDraft,t[4]=n.status,t[5]=n.title,t[6]=a}else a=t[6];return a});function be(e){let t=(0,I.c)(5),{status:n}=e;if(n==="default")return null;let r=n===`modified`?`bg-amber-500/15 text-amber-300`:`bg-indigo-500/15 text-indigo-300`,i;t[0]===r?i=t[1]:(i=d(`rounded px-1.5 py-0.5 text-[9px] font-medium uppercase tracking-[0.06em]`,r),t[0]=r,t[1]=i);let a=n===`modified`?`Modified`:`Custom`,o;return t[2]!==i||t[3]!==a?(o=(0,Z.jsx)(`span`,{className:i,children:a}),t[2]=i,t[3]=a,t[4]=o):o=t[4],o}function xe(e){let t=(0,I.c)(27),{conflict:n,platform:r,isMac:i,onSelect:a}=e,o;t[0]===n.otherCommand?o=t[1]:(o=B(n.otherCommand),t[0]=n.otherCommand,t[1]=o);let s=o,c,l,u,d;if(t[2]!==n.key||t[3]!==i||t[4]!==r){let e=ke(n.key),a=e?se(e,{platform:r}):[n.key];u=`flex flex-wrap items-center gap-1.5`,t[9]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Z.jsx)(E,{className:`size-3 shrink-0 text-destructive`}),t[9]=d):d=t[9],c=`inline-flex items-center gap-0.5 font-mono`;let o;t[10]===i?o=t[11]:(o=e=>(0,Z.jsx)(Te,{token:e,isMac:i},e),t[10]=i,t[11]=o),l=a.map(o),t[2]=n.key,t[3]=i,t[4]=r,t[5]=c,t[6]=l,t[7]=u,t[8]=d}else c=t[5],l=t[6],u=t[7],d=t[8];let f;t[12]!==c||t[13]!==l?(f=(0,Z.jsx)(`span`,{className:c,children:l}),t[12]=c,t[13]=l,t[14]=f):f=t[14];let p;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,Z.jsx)(`span`,{children:`also bound to`}),t[15]=p):p=t[15];let m;t[16]!==s.title||t[17]!==a?(m=(0,Z.jsx)(`button`,{type:`button`,onClick:a,className:`rounded bg-destructive/20 px-1.5 py-0.5 font-medium text-destructive-foreground hover:bg-destructive/30`,children:s.title}),t[16]=s.title,t[17]=a,t[18]=m):m=t[18];let h;t[19]===n.otherWhen?h=t[20]:(h=n.otherWhen===void 0?null:(0,Z.jsxs)(`span`,{className:`opacity-70`,children:[`when `,(0,Z.jsx)(`code`,{className:`font-mono`,children:G(n.otherWhen)})]}),t[19]=n.otherWhen,t[20]=h);let g;return t[21]!==u||t[22]!==d||t[23]!==f||t[24]!==m||t[25]!==h?(g=(0,Z.jsxs)(`div`,{className:u,children:[d,f,p,m,h]}),t[21]=u,t[22]=d,t[23]=f,t[24]=m,t[25]=h,t[26]=g):g=t[26],g}function Se(e){let t=(0,I.c)(59),{draftIndex:n,rule:r,context:i,isMac:a,isPlaceholder:o,onAddPlaceholder:s}=e,[c,l]=(0,F.useState)(!1),[u,f]=(0,F.useState)(!1),p=(0,F.useRef)(null),m;bb0:{if(r.key.length===0){m=null;break bb0}let e;t[0]===r.key?e=t[1]:(e=ke(r.key),t[0]=r.key,t[1]=e),m=e}let h=m,g=h?se(h,{platform:i.platform}):[],_;t[2]!==n||t[3]!==o||t[4]!==s?(_=()=>{if(o&&n===-1&&s){s(),setTimeout(Ce,50);return}l(!0)},t[2]=n,t[3]=o,t[4]=s,t[5]=_):_=t[5];let v=_,y,b;t[6]!==i||t[7]!==n||t[8]!==c?(y=()=>{if(!c)return;let e=e=>{if(e.preventDefault(),e.stopPropagation(),e.key===`Escape`&&!Oe(e)){l(!1);return}if(e.key===`Tab`&&!Oe(e)){l(!1);return}if(e.key===`Backspace`&&!Oe(e)){n>=0&&i.onRemoveBinding(n),l(!1);return}let t=X(e,{platform:i.platform});t&&(n>=0&&i.onRebind(n,t),f(!0),l(!1),setTimeout(()=>f(!1),220))};return window.addEventListener(`keydown`,e,{capture:!0}),()=>window.removeEventListener(`keydown`,e,{capture:!0})},b=[c,n,i],t[6]=i,t[7]=n,t[8]=c,t[9]=y,t[10]=b):(y=t[9],b=t[10]),(0,F.useEffect)(y,b);let x,S;t[11]===c?(x=t[12],S=t[13]):(x=()=>{c&&p.current?.focus()},S=[c],t[11]=c,t[12]=x,t[13]=S),(0,F.useEffect)(x,S);let C;t[14]!==c||t[15]!==v?(C=e=>{c||(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),v())},t[14]=c,t[15]=v,t[16]=C):C=t[16];let w=C,T;t[17]!==i||t[18]!==n?(T=()=>{n>=0&&i.onRemoveBinding(n)},t[17]=i,t[18]=n,t[19]=T):T=t[19];let E=T;if(o&&n===-1&&g.length===0){let e;t[20]===s?e=t[21]:(e=()=>s?.(),t[20]=s,t[21]=e);let n;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Z.jsx)(k,{className:`size-3`}),t[22]=n):n=t[22];let r;return t[23]!==w||t[24]!==e?(r=(0,Z.jsxs)(`button`,{ref:p,type:`button`,onClick:e,onKeyDown:w,className:`inline-flex h-6 items-center gap-1 rounded-md border border-dashed border-border/60 bg-transparent px-2 text-[11px] text-muted-foreground/70 transition-colors hover:border-border hover:text-foreground`,children:[n,` No shortcut — click to set`]}),t[23]=w,t[24]=e,t[25]=r):r=t[25],r}let D=`Edit shortcut for ${r.command}`,O=g.length===0&&n>=0?`true`:void 0,j=c?`kb-chip-recording border-indigo-500/60 bg-indigo-500/15 text-indigo-100 shadow-[0_0_0_4px_rgba(99,102,241,0.18)]`:u?`border-emerald-500/50 bg-emerald-500/15 text-emerald-100`:`border-border bg-muted/60 text-foreground hover:bg-muted`,M;t[26]===j?M=t[27]:(M=d(`inline-flex h-6 items-center gap-1 rounded-md border px-2 font-mono text-[11px] transition-all duration-150`,j),t[26]=j,t[27]=M);let N;t[28]===c?N=t[29]:(N=c?{animation:`keybindings-pulse 1.4s ease-in-out infinite`}:{},t[28]=c,t[29]=N);let P=c?(0,Z.jsx)(`span`,{className:`text-[11px] tracking-[0.04em]`,children:`Press shortcut…`}):g.length===0?(0,Z.jsx)(`span`,{className:`text-muted-foreground/60`,children:`Click to set`}):g.map(e=>(0,Z.jsx)(Te,{token:e,isMac:a},e)),L;t[30]!==c||t[31]!==r.when?(L=!c&&r.when!==void 0?(0,Z.jsx)(`span`,{className:`ml-1 hidden sm:inline`,children:`·`}):null,t[30]=c,t[31]=r.when,t[32]=L):L=t[32];let R;t[33]!==c||t[34]!==w||t[35]!==v||t[36]!==D||t[37]!==O||t[38]!==M||t[39]!==N||t[40]!==P||t[41]!==L?(R=(0,Z.jsxs)(`button`,{ref:p,type:`button`,"aria-pressed":c,"aria-label":D,"data-chip-pending-record":O,onClick:v,onKeyDown:w,className:M,style:N,children:[P,L]}),t[33]=c,t[34]=w,t[35]=v,t[36]=D,t[37]=O,t[38]=M,t[39]=N,t[40]=P,t[41]=L,t[42]=R):R=t[42];let z;t[43]!==i||t[44]!==n?(z=e=>i.onChangeWhen(n,e),t[43]=i,t[44]=n,t[45]=z):z=t[45];let B=n<0||c,V;t[46]!==r.when||t[47]!==z||t[48]!==B?(V=(0,Z.jsx)(Ee,{currentWhen:r.when,onChange:z,disabled:B}),t[46]=r.when,t[47]=z,t[48]=B,t[49]=V):V=t[49];let H;t[50]!==n||t[51]!==E||t[52]!==c?(H=n>=0&&!c?(0,Z.jsx)(`button`,{type:`button`,onClick:E,"aria-label":`Remove this shortcut`,className:`opacity-0 transition-opacity group-hover:opacity-100 focus:opacity-100`,children:(0,Z.jsx)(A,{className:`size-3 text-muted-foreground/60 hover:text-destructive`})}):null,t[50]=n,t[51]=E,t[52]=c,t[53]=H):H=t[53];let U;t[54]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,Z.jsx)(De,{}),t[54]=U):U=t[54];let W;return t[55]!==R||t[56]!==V||t[57]!==H?(W=(0,Z.jsxs)(`span`,{className:`relative inline-flex items-center gap-1`,children:[R,V,H,U]}),t[55]=R,t[56]=V,t[57]=H,t[58]=W):W=t[58],W}function Ce(){document.querySelectorAll(`[data-chip-pending-record="true"]`).forEach(we)}function we(e){e.click()}function Te(e){let t=(0,I.c)(5),{token:n,isMac:r}=e,i=r&&n.length===1&&/[⌀-⏿←-⇿]/.test(n)?`bg-transparent`:`bg-foreground/10`,a;t[0]===i?a=t[1]:(a=d(`rounded px-1 leading-none`,i),t[0]=i,t[1]=a);let o;return t[2]!==a||t[3]!==n?(o=(0,Z.jsx)(`span`,{className:a,children:n}),t[2]=a,t[3]=n,t[4]=o):o=t[4],o}function Ee(e){let t=(0,I.c)(35),{currentWhen:n,onChange:r,disabled:i}=e,a;t[0]===n?a=t[1]:(a=W(n),t[0]=n,t[1]=a);let o=a,s,c,l,u,f,p,m;if(t[2]!==n||t[3]!==i){let e=G(n);c=v,s=b,l=`button`,u=i;let r=n===void 0&&`italic opacity-70`;t[11]===r?f=t[12]:(f=d(`inline-flex h-5 items-center gap-1 rounded bg-muted/40 px-1.5 text-[10px] text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`,r),t[11]=r,t[12]=f),p=`When: ${e}`,m=n===void 0?`always`:e.toLowerCase(),t[2]=n,t[3]=i,t[4]=s,t[5]=c,t[6]=l,t[7]=u,t[8]=f,t[9]=p,t[10]=m}else s=t[4],c=t[5],l=t[6],u=t[7],f=t[8],p=t[9],m=t[10];let h;t[13]!==l||t[14]!==u||t[15]!==f||t[16]!==p||t[17]!==m?(h=(0,Z.jsx)(`button`,{type:l,disabled:u,className:f,"aria-label":p,children:m}),t[13]=l,t[14]=u,t[15]=f,t[16]=p,t[17]=m,t[18]=h):h=t[18];let g;t[19]!==s||t[20]!==h?(g=(0,Z.jsx)(s,{render:h}),t[19]=s,t[20]=h,t[21]=g):g=t[21];let _;t[22]!==n||t[23]!==o?(_=!o&&n!==void 0?(0,Z.jsxs)(`div`,{className:`px-2 py-1.5 text-[10px] text-muted-foreground`,children:[`Current: `,(0,Z.jsx)(`code`,{className:`font-mono`,children:n})]}):null,t[22]=n,t[23]=o,t[24]=_):_=t[24];let S;t[25]!==n||t[26]!==r?(S=V.map(e=>(0,Z.jsxs)(y,{onClick:()=>r(e.value),className:d(`flex items-center justify-between text-[12px]`,e.value===n&&`font-semibold text-foreground`),children:[(0,Z.jsx)(`span`,{children:e.label}),e.value===void 0?(0,Z.jsx)(`span`,{className:`text-[10px] text-muted-foreground/60`,children:`no condition`}):(0,Z.jsx)(`code`,{className:`text-[10px] font-mono text-muted-foreground/60`,children:e.value})]},e.id)),t[25]=n,t[26]=r,t[27]=S):S=t[27];let C;t[28]!==S||t[29]!==_?(C=(0,Z.jsxs)(x,{side:`bottom`,align:`end`,className:`min-w-[220px]`,children:[_,S]}),t[28]=S,t[29]=_,t[30]=C):C=t[30];let w;return t[31]!==c||t[32]!==C||t[33]!==g?(w=(0,Z.jsxs)(c,{children:[g,C]}),t[31]=c,t[32]=C,t[33]=g,t[34]=w):w=t[34],w}function De(){let e=(0,I.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Z.jsx)(`style`,{children:`@keyframes keybindings-pulse {
|
|
2
|
+
0%, 100% { box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15); }
|
|
3
|
+
50% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.30); }
|
|
4
|
+
}
|
|
5
|
+
@media (prefers-reduced-motion: reduce) {
|
|
6
|
+
.kb-chip-recording { animation: none !important; }
|
|
7
|
+
}`}),e[0]=t):t=e[0],t}function Oe(e){return e.metaKey||e.ctrlKey||e.altKey||e.shiftKey}function ke(e){let t=e.toLowerCase().split(`+`),n=null,r=!1,i=!1,a=!1,o=!1,s=!1;for(let e of t)switch(e){case`cmd`:case`meta`:r=!0;break;case`ctrl`:case`control`:i=!0;break;case`alt`:case`option`:a=!0;break;case`shift`:o=!0;break;case`mod`:s=!0;break;default:if(n!==null)return null;n=e===`space`?` `:e;break}return n===null?null:{key:n,metaKey:r,ctrlKey:i,altKey:a,shiftKey:o,modKey:s}}export{ve as KeybindingsSettingsPanel};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{i as e,t}from"./react-PSPkXoKo.js";import{t as n}from"./compiler-runtime-BNrXlsa1.js";import{Mt as r}from"./environmentApi-BFHi_M02.js";import{Ei as i,Fr as a,G as o,H as s,Ii as c,Li as l,Mi as u,Nr as d,Oi as f,U as ee,ai as p}from"./composerDraftStore-xu3n5gdX.js";import{Ct as te,Et as m,Gt as h,Ht as ne,Jn as g,Jt as _,Kt as v,St as y,Tt as b,_ as re,gt as x,qt as S,tr as C,vt as w,wt as T,xt as E,yt as D}from"./providerIconUtils-Ch6hejVW.js";import{a as O,d as k,i as A,s as j}from"./toast-DE-WwLMa.js";import{t as M}from"./plus-B10j9MbZ.js";import{t as N}from"./refresh-cw-CRxaXR0E.js";import{t as P}from"./server-tdx7WxLI.js";import{t as ie}from"./trash-2-CZQem-sz.js";import{t as F}from"./wrench-DEteICtk.js";import{t as I}from"./input-BfUa3JUD.js";import{r as L}from"./providerDriverMeta-B6xuq7ij.js";var ae=f(`earth`,[[`path`,{d:`M21.54 15H17a2 2 0 0 0-2 2v4.54`,key:`1djwo0`}],[`path`,{d:`M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17`,key:`1tzkfa`}],[`path`,{d:`M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05`,key:`14pb5j`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),oe=f(`log-in`,[[`path`,{d:`m10 17 5-5-5-5`,key:`1bsop3`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`,key:`u53s6r`}]]),R=f(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]),z=e(t(),1),B=n(),se=/^[a-zA-Z][a-zA-Z0-9_-]*$/;function ce(){return{name:``,transport:`stdio`,command:``,argsText:``,cwd:``,url:``,bearerTokenEnvVar:``,envText:``,envVarsText:``,httpHeadersText:``,envHttpHeadersText:``,enabled:!0,required:!1,startupTimeoutSec:``,toolTimeoutSec:``,enabledToolsText:``,disabledToolsText:``,oauthScopesText:``}}function V(e){return e.join(`
|
|
2
|
+
`)}function H(e){return Object.entries(e).map(([e,t])=>`${e}=${t}`).join(`
|
|
3
|
+
`)}function U(e){let t=e.config;return{name:e.name,transport:t.transport===`http`?`http`:`stdio`,command:t.command??``,argsText:V(t.args),cwd:t.cwd??``,url:t.url??``,bearerTokenEnvVar:t.bearerTokenEnvVar??``,envText:H(t.env),envVarsText:V(t.envVars),httpHeadersText:H(t.httpHeaders),envHttpHeadersText:H(t.envHttpHeaders),enabled:t.enabled,required:t.required??!1,startupTimeoutSec:t.startupTimeoutSec?.toString()??``,toolTimeoutSec:t.toolTimeoutSec?.toString()??``,enabledToolsText:V(t.enabledTools),disabledToolsText:V(t.disabledTools),oauthScopesText:V(t.oauthScopes)}}function W(e){return e.split(/\r?\n/).map(e=>e.trim()).filter(e=>e.length>0)}function le(e){let t={};for(let n of W(e)){let e=n.indexOf(`=`);if(e<=0)continue;let r=n.slice(0,e).trim(),i=n.slice(e+1).trim();r.length>0&&(t[r]=i)}return t}function G(e){let t=e.trim();if(!t)return;let n=Number(t);return Number.isFinite(n)&&n>0?n:NaN}function ue(e){let t=e.name.trim();if(!se.test(t))return`Server name must start with a letter and use only letters, numbers, dashes, and underscores.`;if(e.transport===`stdio`&&e.command.trim().length===0)return`Stdio servers need a command.`;if(e.transport===`http`&&e.url.trim().length===0)return`HTTP servers need a URL.`;for(let[t,n]of[[`Startup timeout`,e.startupTimeoutSec],[`Tool timeout`,e.toolTimeoutSec]]){let e=G(n);if(Number.isNaN(e))return`${t} must be a positive number.`}return null}function de(e){let t=G(e.startupTimeoutSec),n=G(e.toolTimeoutSec);return{transport:e.transport,command:e.command.trim(),args:W(e.argsText),cwd:e.cwd.trim()||null,url:e.url.trim(),bearerTokenEnvVar:e.bearerTokenEnvVar.trim()||null,env:le(e.envText),envVars:W(e.envVarsText),httpHeaders:le(e.httpHeadersText),envHttpHeaders:le(e.envHttpHeadersText),enabled:e.enabled,required:e.required,...t===void 0||Number.isNaN(t)?{}:{startupTimeoutSec:t},...n===void 0||Number.isNaN(n)?{}:{toolTimeoutSec:n},enabledTools:W(e.enabledToolsText),disabledTools:W(e.disabledToolsText),oauthScopes:W(e.oauthScopesText)}}function fe(e){let t=e.config;return t.transport===`http`?t.url||`HTTP`:t.transport===`stdio`?[t.command,...t.args].filter(Boolean).join(` `)||`stdio`:`Configured outside the known MCP schema`}var K=u(),pe=[],q=[];function J(){let e=r().mcp;if(!e)throw Error(`MCP settings are unavailable before a backend is paired.`);return e}function Y(e,t){A.add(O({type:`error`,title:e,description:t instanceof Error?t.message:`An error occurred.`}))}function me(e){switch(e){case`user`:return`User config`;case`project`:return`Project`;case`system`:return`System`;case`managed`:return`Managed`;case`mixed`:return`Mixed`;case`unknown`:return`Unknown`}}function he(e){return e.startupStatus===`failed`?`error`:e.startupStatus===`disabled`?`outline`:e.authStatus===`notLoggedIn`?`warning`:e.startupStatus===`ready`?`success`:`outline`}function ge(e){return e.startupStatus===`disabled`?`Disabled`:e.startupStatus===`failed`?`Failed`:e.authStatus===`notLoggedIn`?`Login needed`:e.startupStatus===`ready`?`Ready`:`Unknown`}function X(e){return e.enabled?e.status===`managed`?`success`:e.status===`external`?`warning`:`outline`:`outline`}function Z(e){if(!e.enabled)return`Disabled`;switch(e.status){case`managed`:return`Managed`;case`external`:return`External config`;case`unsupported`:return`Not wired`}}function Q(e){return e.displayName??L(e.driver)?.label??p(e.driver)}function $(e){let t=(0,B.c)(5),n;t[0]===e.label?n=t[1]:(n=(0,K.jsx)(`span`,{children:e.label}),t[0]=e.label,t[1]=n);let r;return t[2]!==e.children||t[3]!==n?(r=(0,K.jsxs)(`label`,{className:`grid gap-1.5 text-xs font-medium text-foreground/80`,children:[n,e.children]}),t[2]=e.children,t[3]=n,t[4]=r):r=t[4],r}function _e(e){let t=(0,B.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,K.jsx)(`p`,{className:`text-[11px] leading-relaxed text-muted-foreground/70`,children:n}),t[0]=n,t[1]=r),r}function ve(e){let t=(0,B.c)(5),{value:n,onChange:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i={value:`stdio`,label:`Stdio`,icon:g},t[0]=i):i=t[0];let o;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(o=[i,{value:`http`,label:`HTTP`,icon:ae}],t[1]=o):o=t[1];let s;return t[2]!==r||t[3]!==n?(s=(0,K.jsx)(`div`,{className:`grid grid-cols-2 rounded-lg border bg-muted/30 p-1`,children:o.map(e=>{let t=e.icon;return(0,K.jsxs)(`button`,{type:`button`,onClick:()=>r(e.value),className:a(`flex h-8 items-center justify-center gap-2 rounded-md text-xs font-medium transition-colors`,n===e.value?`bg-background text-foreground shadow-xs`:`text-muted-foreground`),children:[(0,K.jsx)(t,{className:`size-3.5`}),e.label]},e.value)})}),t[2]=r,t[3]=n,t[4]=s):s=t[4],s}function ye({open:e,server:t,onOpenChange:n,onSubmit:r}){let[i,a]=(0,z.useState)(()=>ce()),[o,s]=(0,z.useState)(null),[c,l]=(0,z.useState)(!1),u=t!==null;(0,z.useEffect)(()=>{e&&(a(t?U(t):ce()),s(null))},[e,t]);let f=(e,t)=>{a(n=>({...n,[e]:t}))},ee=async()=>{let e=ue(i);if(e){s(e);return}l(!0);try{await r(i),n(!1)}catch(e){Y(`Failed to save MCP server`,e)}finally{l(!1)}};return(0,K.jsx)(D,{open:e,onOpenChange:n,children:(0,K.jsxs)(b,{className:`max-w-2xl`,bottomStickOnMobile:!1,children:[(0,K.jsxs)(te,{children:[(0,K.jsx)(m,{children:u?`Edit MCP server`:`Add MCP server`}),(0,K.jsx)(E,{children:`Configuration is written to the selected Codex config and reloaded after save.`})]}),(0,K.jsxs)(T,{className:`space-y-5`,children:[(0,K.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-[1fr_12rem]`,children:[(0,K.jsx)($,{label:`Server name`,children:(0,K.jsx)(I,{value:i.name,disabled:u,onChange:e=>f(`name`,e.target.value),placeholder:`github`,spellCheck:!1})}),(0,K.jsx)($,{label:`Transport`,children:(0,K.jsx)(ve,{value:i.transport,onChange:e=>f(`transport`,e)})})]}),i.transport===`stdio`?(0,K.jsxs)(`div`,{className:`grid gap-4`,children:[(0,K.jsx)($,{label:`Command`,children:(0,K.jsx)(I,{value:i.command,onChange:e=>f(`command`,e.target.value),placeholder:`npx`,spellCheck:!1})}),(0,K.jsxs)($,{label:`Arguments`,children:[(0,K.jsx)(w,{value:i.argsText,onChange:e=>f(`argsText`,e.target.value),placeholder:`-y
|
|
4
|
+
@modelcontextprotocol/server-filesystem
|
|
5
|
+
/tmp/project`,spellCheck:!1}),(0,K.jsx)(_e,{children:`One argument per line.`})]}),(0,K.jsx)($,{label:`Working directory`,children:(0,K.jsx)(I,{value:i.cwd,onChange:e=>f(`cwd`,e.target.value),placeholder:`/path/to/project`,spellCheck:!1})})]}):(0,K.jsxs)(`div`,{className:`grid gap-4`,children:[(0,K.jsx)($,{label:`URL`,children:(0,K.jsx)(I,{value:i.url,onChange:e=>f(`url`,e.target.value),placeholder:`https://mcp.example.com/mcp`,spellCheck:!1})}),(0,K.jsx)($,{label:`Bearer token env var`,children:(0,K.jsx)(I,{value:i.bearerTokenEnvVar,onChange:e=>f(`bearerTokenEnvVar`,e.target.value),placeholder:`MCP_TOKEN`,spellCheck:!1})}),(0,K.jsxs)($,{label:`HTTP headers`,children:[(0,K.jsx)(w,{value:i.httpHeadersText,onChange:e=>f(`httpHeadersText`,e.target.value),placeholder:`X-Client=ryco`,spellCheck:!1}),(0,K.jsx)(_e,{children:`Static headers as KEY=VALUE lines.`})]}),(0,K.jsxs)($,{label:`Env-backed HTTP headers`,children:[(0,K.jsx)(w,{value:i.envHttpHeadersText,onChange:e=>f(`envHttpHeadersText`,e.target.value),placeholder:`Authorization=GITHUB_TOKEN`,spellCheck:!1}),(0,K.jsx)(_e,{children:`Header name to environment variable name, one per line.`})]})]}),(0,K.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,K.jsxs)($,{label:`Environment values`,children:[(0,K.jsx)(w,{value:i.envText,onChange:e=>f(`envText`,e.target.value),placeholder:`API_BASE=https://example.com`,spellCheck:!1}),(0,K.jsx)(_e,{children:`KEY=VALUE lines stored in Codex config.`})]}),(0,K.jsxs)($,{label:`Environment allow-list`,children:[(0,K.jsx)(w,{value:i.envVarsText,onChange:e=>f(`envVarsText`,e.target.value),placeholder:`GITHUB_TOKEN
|
|
6
|
+
SENTRY_AUTH_TOKEN`,spellCheck:!1}),(0,K.jsx)(_e,{children:`One env var name per line.`})]})]}),(0,K.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,K.jsx)($,{label:`Startup timeout seconds`,children:(0,K.jsx)(I,{value:i.startupTimeoutSec,onChange:e=>f(`startupTimeoutSec`,e.target.value),inputMode:`decimal`,placeholder:`10`})}),(0,K.jsx)($,{label:`Tool timeout seconds`,children:(0,K.jsx)(I,{value:i.toolTimeoutSec,onChange:e=>f(`toolTimeoutSec`,e.target.value),inputMode:`decimal`,placeholder:`60`})})]}),(0,K.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-3`,children:[(0,K.jsx)($,{label:`Enabled tools`,children:(0,K.jsx)(w,{value:i.enabledToolsText,onChange:e=>f(`enabledToolsText`,e.target.value),spellCheck:!1})}),(0,K.jsx)($,{label:`Disabled tools`,children:(0,K.jsx)(w,{value:i.disabledToolsText,onChange:e=>f(`disabledToolsText`,e.target.value),spellCheck:!1})}),(0,K.jsx)($,{label:`OAuth scopes`,children:(0,K.jsx)(w,{value:i.oauthScopesText,onChange:e=>f(`oauthScopesText`,e.target.value),spellCheck:!1})})]}),(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center gap-5 border-t pt-4`,children:[(0,K.jsxs)(`label`,{className:`flex items-center gap-2 text-xs font-medium text-foreground/80`,children:[(0,K.jsx)(x,{checked:i.enabled,onCheckedChange:e=>f(`enabled`,!!e)}),`Enabled`]}),(0,K.jsxs)(`label`,{className:`flex items-center gap-2 text-xs font-medium text-foreground/80`,children:[(0,K.jsx)(x,{checked:i.required,onCheckedChange:e=>f(`required`,!!e)}),`Required`]})]}),o?(0,K.jsxs)(`div`,{className:`flex items-start gap-2 rounded-lg border border-destructive/30 bg-destructive/6 px-3 py-2 text-xs text-destructive-foreground`,children:[(0,K.jsx)(j,{className:`mt-0.5 size-3.5`}),(0,K.jsx)(`span`,{children:o})]}):null]}),(0,K.jsxs)(y,{children:[(0,K.jsx)(d,{variant:`outline`,onClick:()=>n(!1),disabled:c,children:`Cancel`}),(0,K.jsxs)(d,{onClick:()=>void ee(),disabled:c,children:[c?(0,K.jsx)(C,{className:`animate-spin`}):(0,K.jsx)(R,{}),`Save`]})]})]})})}function be(e){let t=(0,B.c)(18),{workspaces:n,selectedWorkspaceId:r,onChange:i}=e;if(n.length<=1||!r)return null;let a;if(t[0]!==r||t[1]!==n){let e;t[3]===r?e=t[4]:(e=e=>e.id===r,t[3]=r,t[4]=e),a=n.find(e),t[0]=r,t[1]=n,t[2]=a}else a=t[2];let o=a,s;t[5]===i?s=t[6]:(s=e=>{e&&i(e)},t[5]=i,t[6]=s);let c=o?.displayPath??`Select workspace`,l;t[7]===c?l=t[8]:(l=(0,K.jsx)(S,{className:`w-full sm:w-72`,"aria-label":`MCP workspace`,children:(0,K.jsx)(_,{children:c})}),t[7]=c,t[8]=l);let u;t[9]===n?u=t[10]:(u=n.map(xe),t[9]=n,t[10]=u);let d;t[11]===u?d=t[12]:(d=(0,K.jsx)(v,{align:`end`,alignItemWithTrigger:!1,children:u}),t[11]=u,t[12]=d);let f;return t[13]!==r||t[14]!==s||t[15]!==l||t[16]!==d?(f=(0,K.jsxs)(ne,{value:r,onValueChange:s,children:[l,d]}),t[13]=r,t[14]=s,t[15]=l,t[16]=d,t[17]=f):f=t[17],f}function xe(e){return(0,K.jsx)(h,{hideIndicator:!0,value:e.id,children:(0,K.jsx)(`span`,{className:`truncate`,children:e.displayPath})},e.id)}function Se(e){let t=(0,B.c)(10),{providers:n,selectedWorkspaceId:r,onSelectWorkspace:i}=e;if(n.length===0)return null;let a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,K.jsx)(`div`,{className:`border-b px-4 py-3`,children:(0,K.jsx)(`h3`,{className:`text-sm font-semibold`,children:`Provider MCP support`})}),t[0]=a):a=t[0];let o;if(t[1]!==i||t[2]!==n||t[3]!==r){let e;t[5]!==i||t[6]!==r?(e=e=>{let t=L(e.driver)?.icon??P,n=e.workspaceId!==void 0&&e.workspaceId===r,a=e.workspaceId!==void 0&&!n;return(0,K.jsxs)(`div`,{className:`flex flex-col gap-3 px-4 py-3 sm:flex-row sm:items-center sm:justify-between`,children:[(0,K.jsxs)(`div`,{className:`flex min-w-0 items-start gap-3`,children:[(0,K.jsxs)(`div`,{className:`relative mt-0.5 flex size-8 shrink-0 items-center justify-center rounded-lg border bg-background`,children:[(0,K.jsx)(t,{className:`size-4 text-muted-foreground`}),e.accentColor?(0,K.jsx)(`span`,{className:`absolute -right-0.5 -bottom-0.5 size-2.5 rounded-full border border-background`,style:{backgroundColor:e.accentColor}}):null]}),(0,K.jsxs)(`div`,{className:`min-w-0`,children:[(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1`,children:[(0,K.jsx)(`span`,{className:`text-sm font-medium`,children:Q(e)}),(0,K.jsx)(`span`,{className:`font-mono text-[11px] text-muted-foreground/70`,children:e.instanceId})]}),(0,K.jsx)(`p`,{className:`mt-1 max-w-2xl text-xs leading-relaxed text-muted-foreground/80`,children:e.message})]})]}),(0,K.jsxs)(`div`,{className:`flex shrink-0 flex-wrap items-center gap-2 sm:justify-end`,children:[(0,K.jsx)(re,{variant:X(e),children:Z(e)}),e.workspaceId?(0,K.jsx)(d,{size:`xs`,variant:n?`secondary`:`outline`,disabled:!a,onClick:()=>{e.workspaceId&&i(e.workspaceId)},children:`Codex workspace`}):null]})]},e.instanceId)},t[5]=i,t[6]=r,t[7]=e):e=t[7],o=n.map(e),t[1]=i,t[2]=n,t[3]=r,t[4]=o}else o=t[4];let s;return t[8]===o?s=t[9]:(s=(0,K.jsxs)(`section`,{className:`rounded-lg border bg-muted/10`,children:[a,(0,K.jsx)(`div`,{className:`divide-y`,children:o})]}),t[8]=o,t[9]=s),s}function Ce(e){let t=(0,B.c)(20),{server:n}=e;if(n.tools.length===0&&n.resources.length===0&&n.resourceTemplates.length===0){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,K.jsx)(`p`,{className:`text-xs text-muted-foreground/70`,children:`No tools or resources reported.`}),t[0]=e):e=t[0],e}let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,K.jsx)(`h4`,{className:`mb-1.5 text-[11px] font-semibold uppercase tracking-[0.08em] text-muted-foreground`,children:`Tools`}),t[1]=r):r=t[1];let i;t[2]===n.tools?i=t[3]:(i=n.tools.slice(0,12).map(Ee),t[2]=n.tools,t[3]=i);let a;t[4]===i?a=t[5]:(a=(0,K.jsxs)(`div`,{children:[r,(0,K.jsx)(`div`,{className:`space-y-1`,children:i})]}),t[4]=i,t[5]=a);let o;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,K.jsx)(`h4`,{className:`mb-1.5 text-[11px] font-semibold uppercase tracking-[0.08em] text-muted-foreground`,children:`Resources`}),t[6]=o):o=t[6];let s;t[7]===n.resources?s=t[8]:(s=n.resources.slice(0,10).map(Te),t[7]=n.resources,t[8]=s);let c;t[9]===s?c=t[10]:(c=(0,K.jsxs)(`div`,{children:[o,(0,K.jsx)(`div`,{className:`space-y-1`,children:s})]}),t[9]=s,t[10]=c);let l;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,K.jsx)(`h4`,{className:`mb-1.5 text-[11px] font-semibold uppercase tracking-[0.08em] text-muted-foreground`,children:`Templates`}),t[11]=l):l=t[11];let u;t[12]===n.resourceTemplates?u=t[13]:(u=n.resourceTemplates.slice(0,10).map(we),t[12]=n.resourceTemplates,t[13]=u);let d;t[14]===u?d=t[15]:(d=(0,K.jsxs)(`div`,{children:[l,(0,K.jsx)(`div`,{className:`space-y-1`,children:u})]}),t[14]=u,t[15]=d);let f;return t[16]!==a||t[17]!==c||t[18]!==d?(f=(0,K.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-3`,children:[a,c,d]}),t[16]=a,t[17]=c,t[18]=d,t[19]=f):f=t[19],f}function we(e){return(0,K.jsxs)(`div`,{className:`rounded-md border bg-background/60 px-2 py-1.5`,children:[(0,K.jsx)(`div`,{className:`truncate text-xs font-medium`,children:e.title??e.name}),(0,K.jsx)(`div`,{className:`truncate text-[11px] text-muted-foreground/75`,children:e.uriTemplate})]},e.uriTemplate)}function Te(e){return(0,K.jsxs)(`div`,{className:`rounded-md border bg-background/60 px-2 py-1.5`,children:[(0,K.jsx)(`div`,{className:`truncate text-xs font-medium`,children:e.title??e.name}),(0,K.jsx)(`div`,{className:`truncate text-[11px] text-muted-foreground/75`,children:e.uri})]},e.uri)}function Ee(e){return(0,K.jsxs)(`div`,{className:`rounded-md border bg-background/60 px-2 py-1.5`,children:[(0,K.jsx)(`div`,{className:`truncate text-xs font-medium`,children:e.title??e.name}),e.description?(0,K.jsx)(`div`,{className:`line-clamp-2 text-[11px] text-muted-foreground/75`,children:e.description}):null]},e.name)}function De(e){let t=(0,B.c)(97),{server:n,mutating:r,onToggleEnabled:c,onEdit:l,onRemove:u,onOauthLogin:f}=e,[p,te]=(0,z.useState)(!1),m;t[0]===n?m=t[1]:(m=fe(n),t[0]=n,t[1]=m);let h=m,ne=`${n.tools.length} tools · ${n.resources.length+n.resourceTemplates.length} resources`,_;t[2]===n.config.transport?_=t[3]:(_=n.config.transport===`http`?(0,K.jsx)(ae,{className:`size-4 text-muted-foreground`}):(0,K.jsx)(g,{className:`size-4 text-muted-foreground`}),t[2]=n.config.transport,t[3]=_);let v;t[4]===n.name?v=t[5]:(v=(0,K.jsx)(`h3`,{className:`truncate text-sm font-semibold`,children:n.name}),t[4]=n.name,t[5]=v);let y;t[6]!==_||t[7]!==v?(y=(0,K.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[_,v]}),t[6]=_,t[7]=v,t[8]=y):y=t[8];let b;t[9]===n?b=t[10]:(b=he(n),t[9]=n,t[10]=b);let S;t[11]===n?S=t[12]:(S=ge(n),t[11]=n,t[12]=S);let C;t[13]!==b||t[14]!==S?(C=(0,K.jsx)(re,{variant:b,children:S}),t[13]=b,t[14]=S,t[15]=C):C=t[15];let w;t[16]===n.source?w=t[17]:(w=me(n.source),t[16]=n.source,t[17]=w);let T;t[18]===w?T=t[19]:(T=(0,K.jsx)(re,{variant:`outline`,children:w}),t[18]=w,t[19]=T);let E;t[20]!==y||t[21]!==C||t[22]!==T?(E=(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[y,C,T]}),t[20]=y,t[21]=C,t[22]=T,t[23]=E):E=t[23];let D;t[24]===h?D=t[25]:(D=(0,K.jsx)(`p`,{className:`mt-1 truncate font-mono text-[11px] text-muted-foreground/80`,children:h}),t[24]=h,t[25]=D);let O;t[26]===n.config.transport?O=t[27]:(O=n.config.transport.toUpperCase(),t[26]=n.config.transport,t[27]=O);let k;t[28]===O?k=t[29]:(k=(0,K.jsx)(`span`,{children:O}),t[28]=O,t[29]=k);let A;t[30]===ne?A=t[31]:(A=(0,K.jsx)(`span`,{children:ne}),t[30]=ne,t[31]=A);let j;t[32]===n.authStatus?j=t[33]:(j=(0,K.jsxs)(`span`,{children:[`Auth: `,n.authStatus]}),t[32]=n.authStatus,t[33]=j);let M;t[34]!==k||t[35]!==A||t[36]!==j?(M=(0,K.jsxs)(`div`,{className:`mt-2 flex flex-wrap gap-2 text-[11px] text-muted-foreground`,children:[k,A,j]}),t[34]=k,t[35]=A,t[36]=j,t[37]=M):M=t[37];let N;t[38]===n.error?N=t[39]:(N=n.error?(0,K.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:n.error}):null,t[38]=n.error,t[39]=N);let P;t[40]!==E||t[41]!==D||t[42]!==M||t[43]!==N?(P=(0,K.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[E,D,M,N]}),t[40]=E,t[41]=D,t[42]=M,t[43]=N,t[44]=P):P=t[44];let F;t[45]!==r||t[46]!==f||t[47]!==n?(F=n.authStatus===`notLoggedIn`?(0,K.jsxs)(s,{children:[(0,K.jsx)(o,{render:(0,K.jsx)(d,{size:`icon-sm`,variant:`outline`,disabled:r,onClick:()=>f(n),"aria-label":`Log in to ${n.name}`,children:(0,K.jsx)(oe,{})})}),(0,K.jsx)(ee,{children:`Start OAuth login`})]}):null,t[45]=r,t[46]=f,t[47]=n,t[48]=F):F=t[48];let I;t[49]!==l||t[50]!==n?(I=()=>l(n),t[49]=l,t[50]=n,t[51]=I):I=t[51];let L;t[52]!==r||t[53]!==I?(L=(0,K.jsx)(d,{size:`sm`,variant:`outline`,onClick:I,disabled:r,children:`Edit`}),t[52]=r,t[53]=I,t[54]=L):L=t[54];let R;t[55]!==u||t[56]!==n?(R=()=>u(n),t[55]=u,t[56]=n,t[57]=R):R=t[57];let se=`Remove ${n.name}`,ce;t[58]===Symbol.for(`react.memo_cache_sentinel`)?(ce=(0,K.jsx)(ie,{}),t[58]=ce):ce=t[58];let V;t[59]!==r||t[60]!==R||t[61]!==se?(V=(0,K.jsx)(o,{render:(0,K.jsx)(d,{size:`icon-sm`,variant:`destructive-outline`,disabled:r,onClick:R,"aria-label":se,children:ce})}),t[59]=r,t[60]=R,t[61]=se,t[62]=V):V=t[62];let H;t[63]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,K.jsx)(ee,{children:`Remove server`}),t[63]=H):H=t[63];let U;t[64]===V?U=t[65]:(U=(0,K.jsxs)(s,{children:[V,H]}),t[64]=V,t[65]=U);let W;t[66]!==c||t[67]!==n?(W=e=>c(n,!!e),t[66]=c,t[67]=n,t[68]=W):W=t[68];let le=`Enable ${n.name}`,G;t[69]!==r||t[70]!==n.config.enabled||t[71]!==W||t[72]!==le?(G=(0,K.jsx)(x,{checked:n.config.enabled,disabled:r,onCheckedChange:W,"aria-label":le}),t[69]=r,t[70]=n.config.enabled,t[71]=W,t[72]=le,t[73]=G):G=t[73];let ue;t[74]===Symbol.for(`react.memo_cache_sentinel`)?(ue=()=>te(Oe),t[74]=ue):ue=t[74];let de=`Toggle ${n.name} inventory`,pe=p&&`rotate-180`,q;t[75]===pe?q=t[76]:(q=a(`transition-transform`,pe),t[75]=pe,t[76]=q);let J;t[77]===q?J=t[78]:(J=(0,K.jsx)(i,{className:q}),t[77]=q,t[78]=J);let Y;t[79]!==de||t[80]!==J?(Y=(0,K.jsx)(d,{size:`icon-sm`,variant:`ghost`,onClick:ue,"aria-label":de,children:J}),t[79]=de,t[80]=J,t[81]=Y):Y=t[81];let X;t[82]!==F||t[83]!==L||t[84]!==U||t[85]!==G||t[86]!==Y?(X=(0,K.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1.5`,children:[F,L,U,G,Y]}),t[82]=F,t[83]=L,t[84]=U,t[85]=G,t[86]=Y,t[87]=X):X=t[87];let Z;t[88]!==P||t[89]!==X?(Z=(0,K.jsxs)(`div`,{className:`flex flex-col gap-3 p-4 sm:flex-row sm:items-start sm:justify-between`,children:[P,X]}),t[88]=P,t[89]=X,t[90]=Z):Z=t[90];let Q;t[91]!==p||t[92]!==n?(Q=p?(0,K.jsx)(`div`,{className:`border-t bg-muted/20 p-4`,children:(0,K.jsx)(Ce,{server:n})}):null,t[91]=p,t[92]=n,t[93]=Q):Q=t[93];let $;return t[94]!==Z||t[95]!==Q?($=(0,K.jsxs)(`article`,{className:`rounded-lg border bg-card text-card-foreground shadow-sm/4`,children:[Z,Q]}),t[94]=Z,t[95]=Q,t[96]=$):$=t[96],$}function Oe(e){return!e}function ke(){let[e,t]=(0,z.useState)(null),[n,i]=(0,z.useState)(null),[u,f]=(0,z.useState)(null),[p,te]=(0,z.useState)(!0),[m,h]=(0,z.useState)(!1),[ne,g]=(0,z.useState)(null),[_,v]=(0,z.useState)(!1),[y,b]=(0,z.useState)(null),[re,x]=(0,z.useState)(null),S=e?.workspaces??pe,w=e?.providers??q,T=(0,z.useMemo)(()=>S.find(e=>e.id===n)??null,[n,S]),E=(0,z.useCallback)(async(e,t)=>{t?.quiet||h(!0),x(null);try{f(await J().listServers({workspaceId:l.make(e),detail:`full`}))}catch(e){x(e instanceof Error?e.message:`Failed to load MCP servers.`),Y(`Failed to load MCP servers`,e)}finally{h(!1)}},[]),D=(0,z.useCallback)(async()=>{te(!0),x(null);try{let e=await J().listWorkspaces();t(e);let r=e.workspaces.find(e=>e.id===n)?.id??e.workspaces[0]?.id??null;i(r),r?await E(r,{quiet:!0}):f(null)}catch(e){x(e instanceof Error?e.message:`Failed to load MCP workspaces.`),Y(`Failed to load MCP workspaces`,e)}finally{te(!1)}},[E,n]);(0,z.useEffect)(()=>{D()},[D]);let ie=async()=>{if(!n){await D();return}await E(n)},I=async()=>{if(n){h(!0);try{f(await J().reloadServers({workspaceId:l.make(n)})),A.add(O({type:`success`,title:`MCP servers reloaded`}))}catch(e){Y(`Failed to reload MCP servers`,e)}finally{h(!1)}}},L=async e=>{n&&(f(await J().upsertServer({workspaceId:l.make(n),name:c.make(e.name.trim()),config:de(e)})),A.add(O({type:`success`,title:`MCP server saved`})))},ae=async(e,t)=>{if(n){g(e.name);try{f(await J().setServerEnabled({workspaceId:l.make(n),name:e.name,enabled:t}))}catch(e){Y(`Failed to update MCP server`,e)}finally{g(null)}}},oe=async e=>{if(n&&await r().dialogs.confirm(`Remove MCP server "${e.name}"?`)){g(e.name);try{f(await J().removeServer({workspaceId:l.make(n),name:e.name})),A.add(O({type:`success`,title:`MCP server removed`}))}catch(e){Y(`Failed to remove MCP server`,e)}finally{g(null)}}},R=async e=>{if(n){g(e.name);try{let t=await J().startOauthLogin({workspaceId:l.make(n),serverName:e.name,scopes:e.config.oauthScopes});await r().shell.openExternal(t.authorizationUrl),A.add(O({type:`success`,title:`OAuth login opened`}))}catch(e){Y(`Failed to start OAuth login`,e)}finally{g(null)}}},B=()=>{b(null),v(!0)},se=e=>{b(e),v(!0)};return(0,K.jsxs)(`div`,{className:`flex-1 p-6 sm:p-8`,children:[(0,K.jsxs)(`div`,{className:`mx-auto flex w-full max-w-4xl flex-col gap-6`,children:[(0,K.jsxs)(`header`,{className:`flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between`,children:[(0,K.jsxs)(`div`,{className:`min-w-0`,children:[(0,K.jsxs)(`div`,{className:`flex items-center gap-2 text-[11px] font-semibold uppercase tracking-[0.08em] text-muted-foreground`,children:[(0,K.jsx)(P,{className:`size-3.5`}),`Provider MCP`]}),(0,K.jsx)(`h2`,{className:`mt-1 text-lg font-semibold tracking-[-0.01em]`,children:`MCP Servers`}),(0,K.jsx)(`p`,{className:`mt-1 max-w-2xl text-sm leading-relaxed text-muted-foreground/80`,children:`Manage Codex MCP servers and inspect how other provider instances currently expose MCP support.`})]}),(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,K.jsx)(be,{workspaces:S,selectedWorkspaceId:n,onChange:e=>{i(e),E(e)}}),(0,K.jsxs)(s,{children:[(0,K.jsx)(o,{render:(0,K.jsx)(d,{size:`icon`,variant:`outline`,onClick:()=>void ie(),disabled:p||m,"aria-label":`Refresh MCP servers`,children:(0,K.jsx)(N,{className:a((p||m)&&`animate-spin`)})})}),(0,K.jsx)(ee,{children:`Refresh`})]}),(0,K.jsxs)(d,{variant:`outline`,disabled:!n||m,onClick:()=>void I(),children:[(0,K.jsx)(F,{}),`Reload`]}),(0,K.jsxs)(d,{disabled:!n,onClick:B,children:[(0,K.jsx)(M,{}),`Add server`]})]})]}),(0,K.jsx)(Se,{providers:w,selectedWorkspaceId:n,onSelectWorkspace:e=>{i(e),E(e)}}),T?(0,K.jsxs)(`div`,{className:`rounded-lg border bg-muted/20 px-4 py-3 text-xs text-muted-foreground`,children:[(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-4 gap-y-1`,children:[(0,K.jsx)(`span`,{className:`font-mono`,children:T.displayPath}),(0,K.jsx)(`span`,{children:T.mode===`authOverlay`?`Auth overlay`:`Direct home`}),(0,K.jsxs)(`span`,{children:[`Used by`,` `,T.providerInstances.map(e=>e.displayName??e.instanceId).join(`, `)]})]}),u?.configPath?(0,K.jsx)(`div`,{className:`mt-1 font-mono text-[11px] text-muted-foreground/70`,children:u.configPath}):null]}):null,e?.issues.length?(0,K.jsx)(`div`,{className:`space-y-2 rounded-lg border border-warning/30 bg-warning/6 p-3`,children:e.issues.map(e=>(0,K.jsxs)(`div`,{className:`flex gap-2 text-xs`,children:[(0,K.jsx)(j,{className:`mt-0.5 size-3.5 text-warning-foreground`}),(0,K.jsxs)(`span`,{children:[(0,K.jsx)(`span`,{className:`font-medium`,children:e.instanceId}),`: `,e.message]})]},`${e.instanceId}:${e.message}`))}):null,re?(0,K.jsx)(`div`,{className:`rounded-lg border border-destructive/30 bg-destructive/6 p-3 text-sm text-destructive-foreground`,children:re}):null,p?(0,K.jsx)(`div`,{className:`flex min-h-48 items-center justify-center rounded-lg border border-dashed`,children:(0,K.jsx)(C,{className:`size-5 animate-spin text-muted-foreground`})}):S.length===0?(0,K.jsxs)(`div`,{className:`rounded-lg border border-dashed p-8 text-center`,children:[(0,K.jsx)(P,{className:`mx-auto size-7 text-muted-foreground/60`}),(0,K.jsx)(`h3`,{className:`mt-3 text-sm font-semibold`,children:`No Codex workspaces`}),(0,K.jsx)(`p`,{className:`mx-auto mt-1 max-w-md text-sm text-muted-foreground/80`,children:`Add or enable a Codex provider instance before managing MCP servers.`})]}):u?.servers.length===0?(0,K.jsxs)(`div`,{className:`rounded-lg border border-dashed p-8 text-center`,children:[(0,K.jsx)(k,{className:`mx-auto size-7 text-muted-foreground/60`}),(0,K.jsx)(`h3`,{className:`mt-3 text-sm font-semibold`,children:`No MCP servers configured`}),(0,K.jsx)(`p`,{className:`mx-auto mt-1 max-w-md text-sm text-muted-foreground/80`,children:`Add a stdio or HTTP server to make its tools available to Codex sessions.`}),(0,K.jsxs)(d,{className:`mt-4`,onClick:B,children:[(0,K.jsx)(M,{}),`Add server`]})]}):(0,K.jsx)(`div`,{className:`grid gap-3`,children:u?.servers.map(e=>(0,K.jsx)(De,{server:e,mutating:ne===e.name,onToggleEnabled:(e,t)=>void ae(e,t),onEdit:se,onRemove:e=>void oe(e),onOauthLogin:e=>void R(e)},e.name))})]}),(0,K.jsx)(ye,{open:_,server:y,onOpenChange:v,onSubmit:L})]})}export{ke as McpServersSettings};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./compiler-runtime-BNrXlsa1.js";import{$ as t}from"./environmentApi-BFHi_M02.js";import{Fr as n,Mi as r}from"./composerDraftStore-xu3n5gdX.js";import{d as i,f as a,m as o,p as s}from"./QueryClientProvider-BZxRKpeb.js";import{g as c,o as l}from"./sidebar-Bbdql7Af.js";import{i as u,o as d,r as f,t as p}from"./empty-BTxheW4B.js";function m(e){return{onFetch:(t,n)=>{let r=t.options,c=t.fetchOptions?.meta?.fetchMore?.direction,l=t.state.data?.pages||[],u=t.state.data?.pageParams||[],d={pages:[],pageParams:[]},f=0,p=async()=>{let n=!1,p=e=>{i(e,()=>t.signal,()=>n=!0)},m=o(t.options,t.fetchOptions),_=async(e,r,i)=>{if(n)return Promise.reject();if(r==null&&e.pages.length)return Promise.resolve(e);let o=await m((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return p(e),e})()),{maxPages:c}=t.options,l=i?s:a;return{pages:l(e.pages,o,c),pageParams:l(e.pageParams,r,c)}};if(c&&l.length){let e=c===`backward`,t=e?g:h,n={pages:l,pageParams:u};d=await _(n,t(r,n),e)}else{let t=e??l.length;do{let e=f===0?u[0]??r.initialPageParam:h(r,d);if(f>0&&e==null)break;d=await _(d,e),f++}while(f<t)}return d};t.options.persister?t.fetchFn=()=>t.options.persister?.(p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=p}}}function h(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function g(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function _(e,t){return t?h(e,t)!=null:!1}function v(e,t){return!t||!e.getPreviousPageParam?!1:g(e,t)!=null}var y=e(),b=r();function x(){let e=(0,y.c)(2),r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,b.jsx)(`header`,{className:n(`border-b border-border px-3 sm:px-5`,t?`drag-region flex h-[52px] items-center wco:h-[env(titlebar-area-height)]`:`py-2 sm:py-3`),children:t?(0,b.jsx)(`span`,{className:`text-xs text-muted-foreground/50 wco:pr-[calc(100vw-env(titlebar-area-width)-env(titlebar-area-x)+1em)]`,children:`No active thread`}):(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsx)(c,{className:`size-7 shrink-0 md:hidden`}),(0,b.jsx)(`span`,{className:`text-sm font-medium text-foreground md:text-muted-foreground/60`,children:`No active thread`})]})}),e[0]=r):r=e[0];let i;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,b.jsx)(l,{className:`h-dvh min-h-0 overflow-hidden overscroll-y-none bg-background text-foreground`,children:(0,b.jsxs)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-background`,children:[r,(0,b.jsx)(p,{className:`flex-1`,children:(0,b.jsx)(`div`,{className:`w-full max-w-lg rounded-3xl border border-border/55 bg-card/20 px-8 py-12 shadow-sm/5`,children:(0,b.jsxs)(u,{className:`max-w-none`,children:[(0,b.jsx)(d,{className:`text-foreground text-xl`,children:`Pick a thread to continue`}),(0,b.jsx)(f,{className:`mt-2 text-sm text-muted-foreground/78`,children:`Select an existing thread or create a new one to get started.`})]})})})]})}),e[1]=i):i=e[1],i}export{m as i,_ as n,v as r,x as t};
|