@p4code/cli 0.8.17 → 0.8.19
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/bin.mjs +1 -1
- package/dist/{binCli-C2OtBl3_.mjs → binCli-BfqWHczJ.mjs} +718 -486
- package/dist/client/.vite/manifest.json +2221 -2169
- package/dist/client/assets/AlertDialogRoot-D5I6scXr.js +2 -0
- package/dist/client/assets/{AnimatedHeight-CROd_m0y.js → AnimatedHeight-Bt23tBJu.js} +2 -2
- package/dist/client/assets/{AuthSurfaceShell-BFqgU6Cf.js → AuthSurfaceShell-CScpeyCZ.js} +2 -2
- package/dist/client/assets/{CSPContext-BUFNSYww.js → CSPContext-CCVdxObl.js} +2 -2
- package/dist/client/assets/{ChatGptUsageButton-CAkbdzVa.js → ChatGptUsageButton-yYHsmy4T.js} +2 -2
- package/dist/client/assets/{ChatMarkdown-DRdUETgB.js → ChatMarkdown-B0DVA2sH.js} +13 -13
- package/dist/client/assets/{CheckboxIndicator-DS1cy5Y6.js → CheckboxIndicator-wz_7NgXC.js} +2 -2
- package/dist/client/assets/CodexSetupSection.logic-BtAckihn.js +2 -0
- package/dist/client/assets/{CollapsiblePanel-DzlAN8vm.js → CollapsiblePanel-lE29H_pe.js} +2 -2
- package/dist/client/assets/{ComboboxClear-D3w2fM_m.js → ComboboxClear-DNFG72Hd.js} +2 -2
- package/dist/client/assets/ComboboxGroupLabel-B_bH_C6n.js +2 -0
- package/dist/client/assets/CommandBlock-VGf7qjr7.js +2 -0
- package/dist/client/assets/{ComposerPromptEditor-jeEkR9fy.js → ComposerPromptEditor-CVko-EBm.js} +13 -13
- package/dist/client/assets/{CompositeRoot-r9p4LoiQ.js → CompositeRoot-BaL7J4TF.js} +2 -2
- package/dist/client/assets/{ConnectionStatusDot-C8T3Smus.js → ConnectionStatusDot-IvAZUpIh.js} +2 -2
- package/dist/client/assets/DevicePanel-fh1omTPb.js +2 -0
- package/dist/client/assets/DeviceSetup-wfV02sXR.js +2 -0
- package/dist/client/assets/{DialogTitle-Bs5Povma.js → DialogTitle-CJosg0_K.js} +2 -2
- package/dist/client/assets/{DiffCommentAnnotation-CX8scC3B.js → DiffCommentAnnotation-C4ODeTG1.js} +2 -2
- package/dist/client/assets/DiffFileTree-Cm5AwI-L.js +2 -0
- package/dist/client/assets/DiffPanel-DW_sAhx0.js +2 -0
- package/dist/client/assets/{DiffWorkerPoolProvider-Bn4H-Zao.js → DiffWorkerPoolProvider-CXn9pnyS.js} +3 -3
- package/dist/client/assets/EmbeddedDesign-QMT8odFI.js +19 -0
- package/dist/client/assets/{EmbeddedDesign-BsHZJ1Ch.css → EmbeddedDesign-nRjXWU5Y.css} +1 -1
- package/dist/client/assets/{EnvironmentMachineIcon-DKzRVCQ4.js → EnvironmentMachineIcon-Cs4BoaOB.js} +2 -2
- package/dist/client/assets/{ExpandableText-BanCMyot.js → ExpandableText-DUYIICsi.js} +2 -2
- package/dist/client/assets/{FieldControl-s_wzlnCP.js → FieldControl-CSR5qaN6.js} +2 -2
- package/dist/client/assets/{FileDiff-BTx35t8y.js → FileDiff-DfokdNMp.js} +2 -2
- package/dist/client/assets/FilePreviewPanel-BiO1c4ia.js +34 -0
- package/dist/client/assets/{FoldedSettingsSection-BW3s8OMk.js → FoldedSettingsSection-CqteSm77.js} +2 -2
- package/dist/client/assets/{FormContext-CUlgAi-q.js → FormContext-D3Ve_Lza.js} +2 -2
- package/dist/client/assets/{Icons-3I0QXv0W.js → Icons-Bfx5fXpN.js} +2 -2
- package/dist/client/assets/Input-DyKzFpW0.js +2 -0
- package/dist/client/assets/{KeybindingsSettings.logic-CSyJIpFu.js → KeybindingsSettings.logic-0P2hWpBG.js} +2 -2
- package/dist/client/assets/NoProjectsHero-GWvfTakA.js +2 -0
- package/dist/client/assets/{PanelLayoutControls-Cyag4Tur.js → PanelLayoutControls-yA-MhIU3.js} +10 -10
- package/dist/client/assets/{PierreEntryIcon-C5vp6j29.js → PierreEntryIcon-x_cG473l.js} +2 -2
- package/dist/client/assets/{PopoverHandle-CgOyoBVs.js → PopoverHandle-CY2mrZwB.js} +2 -2
- package/dist/client/assets/PreviewPanel-Dh9n6Ys-.js +2 -0
- package/dist/client/assets/ProjectDefaultsSettings-DS-3kgM0.js +2 -0
- package/dist/client/assets/ProjectFavicon-Bdl7Tzds.js +3 -0
- package/dist/client/assets/{ProjectIconPickerDialog-CK8qpgyz.js → ProjectIconPickerDialog-BaajvQh5.js} +2 -2
- package/dist/client/assets/{ProjectMonogram-BaA9dKQy.js → ProjectMonogram-TlvVxVmS.js} +2 -2
- package/dist/client/assets/{ProviderAuthTerminal-AH-Cy_pb.js → ProviderAuthTerminal-UECuLZ2G.js} +2 -2
- package/dist/client/assets/ProviderModelPicker-De9mZUTr.js +2 -0
- package/dist/client/assets/{ProviderSettingsForm-DXzJoQR9.js → ProviderSettingsForm-Ck0g4BIu.js} +2 -2
- package/dist/client/assets/PullRequestCodeTab-Ba54Mifj.js +6 -0
- package/dist/client/assets/{ReadOnlySourcePreview-CBGeBLfB.js → ReadOnlySourcePreview-CVocraam.js} +2 -2
- package/dist/client/assets/RenderErrorBoundary-DKs56Rs9.js +2 -0
- package/dist/client/assets/ScheduledTasksSettings-d4dmI9oH.js +4 -0
- package/dist/client/assets/{ScopedSwitch-Bk5kVayQ.js → ScopedSwitch-Z6zp5sHo.js} +2 -2
- package/dist/client/assets/{ScrollAreaCorner-CxSOla7S.js → ScrollAreaCorner-B-Z3OJHa.js} +2 -2
- package/dist/client/assets/{SecretInput-6K6o0z_j.js → SecretInput-DeAPhcuN.js} +2 -2
- package/dist/client/assets/{SelectScrollUpArrow-DKwyzFlM.js → SelectScrollUpArrow-DfDNBpqc.js} +2 -2
- package/dist/client/assets/{SettingsPanels-CzHOdmoE.js → SettingsPanels-CWgjxAiG.js} +8 -8
- package/dist/client/assets/{SettingsPanels.logic-B9MzQwrf.js → SettingsPanels.logic-D3iQ5aZy.js} +2 -2
- package/dist/client/assets/SettingsScopeNotice-BfjZTvSz.js +2 -0
- package/dist/client/assets/{T3ConnectAccountPages-DORAp_V3.js → T3ConnectAccountPages-CsFviIjD.js} +2 -2
- package/dist/client/assets/{T3ConnectSidebarSignIn-D4iDcrjK.js → T3ConnectSidebarSignIn-3MsegucL.js} +2 -2
- package/dist/client/assets/ThemeEditorPanel-Bj9nHohX.js +5 -0
- package/dist/client/assets/{ThreadTerminalDrawer-E3tgtH2-.js → ThreadTerminalDrawer-Cks3C8wv.js} +4 -4
- package/dist/client/assets/TooltipViewport-WRCNCy-2.js +2 -0
- package/dist/client/assets/{Virtualizer-YZrA28xX.js → Virtualizer-D6VpBTPc.js} +2 -2
- package/dist/client/assets/{WorkspaceBreadcrumb-DRyODQoe.js → WorkspaceBreadcrumb-CR_Yk7Ph.js} +2 -2
- package/dist/client/assets/{WorkspacePageContainer-C9d1CC0F.js → WorkspacePageContainer-D3M3Ncv4.js} +2 -2
- package/dist/client/assets/{WorkspacePageHeader-cjFWAiFR.js → WorkspacePageHeader-xuSJTTO0.js} +2 -2
- package/dist/client/assets/_chat-DkCa6MKZ.js +45 -0
- package/dist/client/assets/_chat.index-B5-xqP_5.js +2 -0
- package/dist/client/assets/_chat.new-DxPEFJcT.js +4 -0
- package/dist/client/assets/_chat.pull-requests-BBVWbXyN.js +2 -0
- package/dist/client/assets/{abnfDiagram-VCTEODGH-Bg9Y0ptm.js → abnfDiagram-VCTEODGH-CxxMo560.js} +2 -2
- package/dist/client/assets/{alert-C9G2MwuB.js → alert-BXnCHOJp.js} +2 -2
- package/dist/client/assets/architecture-7GRP2DOG-CrDVVAg3.js +1 -0
- package/dist/client/assets/{architectureDiagram-5GKGNRK7-DaFWEoVm.js → architectureDiagram-5GKGNRK7-DJiRjS82.js} +2 -2
- package/dist/client/assets/{assets-BngUvpba.js → assets-B5H7ruRK.js} +2 -2
- package/dist/client/assets/{blockDiagram-I7D4REHJ-BLFoCG7i.js → blockDiagram-I7D4REHJ-kDnwtgKo.js} +2 -2
- package/dist/client/assets/browserHistoryStore-o7hGV5zZ.js +2 -0
- package/dist/client/assets/{browserLinkTarget-BTsZgYV0.js → browserLinkTarget-hn6UyJXl.js} +2 -2
- package/dist/client/assets/{c4Diagram-7LVT6UL2-DI-I8wOH.js → c4Diagram-7LVT6UL2-D1fm-1EX.js} +2 -2
- package/dist/client/assets/channel-CzmVRCkd.js +2 -0
- package/dist/client/assets/{checkbox-BMrBwYAj.js → checkbox-tOWU_Z9Y.js} +2 -2
- package/dist/client/assets/{chunk-4HAMMTFA-DJYGf4Ym.js → chunk-4HAMMTFA-BLYTHhED.js} +2 -2
- package/dist/client/assets/{chunk-75Z2AOVW-BHc4yRCt.js → chunk-75Z2AOVW-DT7Umtgk.js} +2 -2
- package/dist/client/assets/{chunk-DU6HZSFF-CxeiyFio.js → chunk-DU6HZSFF-D0K-8X_H.js} +2 -2
- package/dist/client/assets/{chunk-F27PBJKO-CoBuXptu.js → chunk-F27PBJKO-5P4LORWK.js} +2 -2
- package/dist/client/assets/{chunk-GMAD6QVW-Djtqr7wA.js → chunk-GMAD6QVW-DO-mb18X.js} +2 -2
- package/dist/client/assets/{chunk-GVQU2GXP-B_dZvf-D.js → chunk-GVQU2GXP-CxauyvGQ.js} +2 -2
- package/dist/client/assets/{chunk-IMKFNOWR-CIZUn2vm.js → chunk-IMKFNOWR-QGonsH_m.js} +2 -2
- package/dist/client/assets/{chunk-L3NEJ4N5-DMIPUTzl.js → chunk-L3NEJ4N5-DxKhJ2tE.js} +2 -2
- package/dist/client/assets/{chunk-OSK3NFVY-8kOFeAYp.js → chunk-OSK3NFVY-BlR0vtv9.js} +2 -2
- package/dist/client/assets/{chunk-P2QGCYS3-CRs2CVdk.js → chunk-P2QGCYS3-BIit_gMZ.js} +2 -2
- package/dist/client/assets/{chunk-POPQ4Y6H-BF0zVulS.js → chunk-POPQ4Y6H-Ojuitc4K.js} +2 -2
- package/dist/client/assets/{chunk-PWAF6VOD-pAkrbks5.js → chunk-PWAF6VOD-B6Uc75KF.js} +2 -2
- package/dist/client/assets/{chunk-SHT3W25Y-XA9rgPJk.js → chunk-SHT3W25Y-DSzF0_aF.js} +2 -2
- package/dist/client/assets/{chunk-SVP7TREG-BLPEkz6O.js → chunk-SVP7TREG-BbxrRzvm.js} +2 -2
- package/dist/client/assets/{chunk-TICWLB2K-BDX6zFln.js → chunk-TICWLB2K-qxbKtZBK.js} +2 -2
- package/dist/client/assets/classDiagram-ZZMXUADV-Ce7tu2gJ.js +2 -0
- package/dist/client/assets/classDiagram-v2-VYDZK3BY-Ce7tu2gJ.js +2 -0
- package/dist/client/assets/{color-picker-CHpDpF1q.js → color-picker-C_20-4RB.js} +2 -2
- package/dist/client/assets/{combobox-DsEnX06q.js → combobox-NsYaIiJL.js} +2 -2
- package/dist/client/assets/command-DJR9ebnx.js +2 -0
- package/dist/client/assets/composer-logic-CkuMSzLW.js +6 -0
- package/dist/client/assets/composerDraftUploads-D0K1HfK_.js +2 -0
- package/dist/client/assets/{connect-CrLJN7lo.js → connect-BSmdC-l-.js} +2 -2
- package/dist/client/assets/{connect-agent-iD4mBU_q.js → connect-agent-BNeGfFIv.js} +2 -2
- package/dist/client/assets/{cynefin-OW5HDTMX-BPbkuuD0.js → cynefin-OW5HDTMX-BRoWQ1nZ.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-5FMLGOSQ-Tg7_4aNX.js → cynefinDiagram-5FMLGOSQ-BPoK_fdY.js} +2 -2
- package/dist/client/assets/{dagre-GXQ25YYZ-BO8vBn--.js → dagre-GXQ25YYZ-B6n9u2fx.js} +2 -2
- package/dist/client/assets/{device-D7crohVQ.js → device-V5bbUMMx.js} +2 -2
- package/dist/client/assets/{diagram-S7CK7UJ4-Cw7tf93w.js → diagram-S7CK7UJ4-B4H5MfDU.js} +2 -2
- package/dist/client/assets/{diagram-UQ7AKVKN-CWCxivXY.js → diagram-UQ7AKVKN-BN9pt82T.js} +2 -2
- package/dist/client/assets/{diagram-VSXAHHWV-obA2VrFx.js → diagram-VSXAHHWV-C69gO9TK.js} +2 -2
- package/dist/client/assets/{diagram-VX7I27RA-BZZX0tDC.js → diagram-VX7I27RA-qliQCn2I.js} +2 -2
- package/dist/client/assets/{diagram-Z3DM3KII-BXgCa2au.js → diagram-Z3DM3KII-JnCXFjMD.js} +2 -2
- package/dist/client/assets/{dialog-DWCEeJ2c.js → dialog-C4UzQSL1.js} +2 -2
- package/dist/client/assets/{diffRendering-BAlsKvkZ.js → diffRendering-Cuv7q0nc.js} +2 -2
- package/dist/client/assets/{discovery-list-BaMSF62J.js → discovery-list-ppl7-G1K.js} +2 -2
- package/dist/client/assets/{dist-CtlrzKKg.js → dist-CnDtgaa3.js} +3 -3
- package/dist/client/assets/{draft-input-DZZB4KBb.js → draft-input-DUB7VaUv.js} +2 -2
- package/dist/client/assets/{duoViewer-BDT5Pw1R.js → duoViewer-Bi-KrG5F.js} +2 -2
- package/dist/client/assets/{dynamic-B_1SDXVm.js → dynamic-mqe80fw7.js} +3 -3
- package/dist/client/assets/{ebnfDiagram-PWID7BFC-C79a3o-h.js → ebnfDiagram-PWID7BFC-jdXVhqCj.js} +2 -2
- package/dist/client/assets/{embeddedScripts-DWtZjYSD.js → embeddedScripts-Qhl8LxE1.js} +2 -2
- package/dist/client/assets/{empty-CdigxFIr.js → empty-GrsNgo1m.js} +2 -2
- package/dist/client/assets/{entities-Cri9JXzU.js → entities-D6pHmUcl.js} +2 -2
- package/dist/client/assets/{erDiagram-RLTQ6QDP-C_C_xUYl.js → erDiagram-RLTQ6QDP-DdgQriY9.js} +2 -2
- package/dist/client/assets/eventmodeling-NTZA5JFV-C45g87dF.js +1 -0
- package/dist/client/assets/{fileLinks-gi8wmjAc.js → fileLinks-DKkO_IJu.js} +2 -2
- package/dist/client/assets/{fileTreeExpansion-By588Tlp.js → fileTreeExpansion-C1UNNqSC.js} +2 -2
- package/dist/client/assets/flowDiagram-HODETNUW-CxTQXeBP.js +1 -0
- package/dist/client/assets/{ganttDiagram-EL5Y4UJY-vDMTogcH.js → ganttDiagram-EL5Y4UJY-DFCwukfW.js} +2 -2
- package/dist/client/assets/{getDiffFileInput-B20LTLvK.js → getDiffFileInput-phPjSTY8.js} +2 -2
- package/dist/client/assets/git-compare-DW_c6fci.js +2 -0
- package/dist/client/assets/{gitGraph-4MIJSDKK-CP2HybJj.js → gitGraph-4MIJSDKK-B-iBBweB.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-WWUBYQGX-okkWrJG2.js → gitGraphDiagram-WWUBYQGX-w7enwZUZ.js} +2 -2
- package/dist/client/assets/{guideRunStore-BuNfL9zT.js → guideRunStore-C-LauQUS.js} +2 -2
- package/dist/client/assets/{htmlRender-B0nsPoF5.js → htmlRender-DVq1i7PZ.js} +2 -2
- package/dist/client/assets/{index-C4eY-csp.js → index-CW8ApI1G.js} +3 -3
- package/dist/client/assets/{info-A6RAGUB7-RHhd5N_M.js → info-A6RAGUB7-zYd5-_tB.js} +1 -1
- package/dist/client/assets/{infoDiagram-27XIBGKW-YzE38gXg.js → infoDiagram-27XIBGKW-BlWLgzyt.js} +2 -2
- package/dist/client/assets/{input-RCV7-UKX.js → input-DpZhQSV2.js} +2 -2
- package/dist/client/assets/{input-group-Bcuxz_AQ.js → input-group-BjfPTIWt.js} +2 -2
- package/dist/client/assets/{ishikawaDiagram-5VMMS53U-Sz6NR02e.js → ishikawaDiagram-5VMMS53U-oNq825oe.js} +2 -2
- package/dist/client/assets/{journeyDiagram-3NMN7TZE-BQjnHIg3.js → journeyDiagram-3NMN7TZE-BQqGB1_d.js} +2 -2
- package/dist/client/assets/{kanban-definition-UXKFOSKX-DZUIDXIB.js → kanban-definition-UXKFOSKX-CDCYjq7t.js} +2 -2
- package/dist/client/assets/{kbd-CIJ2_Q5W.js → kbd-BfsP5lvQ.js} +2 -2
- package/dist/client/assets/{keybindings-BpKkzV__.js → keybindings-BD3cM3Jm.js} +2 -2
- package/dist/client/assets/{lazyRouteComponent-BRNgDsba.js → lazyRouteComponent-DebYKx4q.js} +2 -2
- package/dist/client/assets/{line-D2YW2WaY.js → line-Dr_Yg9S8.js} +2 -2
- package/dist/client/assets/{link-D4TtDnqi.js → link-wJO6kwX4.js} +2 -2
- package/dist/client/assets/{linkedPrompt-1QsAG0gO.js → linkedPrompt-Dx_WF0Gk.js} +2 -2
- package/dist/client/assets/main-DklPMTd5.css +2 -0
- package/dist/client/assets/main-DqlnVz2C.js +26 -0
- package/dist/client/assets/{mediaReference-BUHO9ICD.js → mediaReference-DEdeypAC.js} +2 -2
- package/dist/client/assets/{mediaSource-CHFugA8_.js → mediaSource-DTry5UU8.js} +2 -2
- package/dist/client/assets/{mermaid-parser.core-Ch6yrkIv.js → mermaid-parser.core-EKu4BBvw.js} +4 -4
- package/dist/client/assets/{mermaid.core-CDUpMNay.js → mermaid.core-C-FRLnEk.js} +5 -5
- package/dist/client/assets/{mindmap-definition-YA3MSWOX-J5u85Ham.js → mindmap-definition-YA3MSWOX-Bo-8FCl-.js} +2 -2
- package/dist/client/assets/{number-field-Osl5PZkX.js → number-field-B0OyTTUs.js} +2 -2
- package/dist/client/assets/{observeResize-BeeOdDdQ.js → observeResize-CBAzjAMz.js} +2 -2
- package/dist/client/assets/{onboarding-BF9yT3Xi.js → onboarding-EecLmYJ0.js} +2 -2
- package/dist/client/assets/{openFileInPreview-C15eoyYZ.js → openFileInPreview-MgwNsNCM.js} +2 -2
- package/dist/client/assets/{p4ProjectFile-CAKJOMUN.js → p4ProjectFile-DZ6HGjaI.js} +2 -2
- package/dist/client/assets/{packet-AYTQ26CC-Cs25hnS9.js → packet-AYTQ26CC-DD_SFe63.js} +1 -1
- package/dist/client/assets/{pair-BA6LcmsK.js → pair-BzsQ1gz0.js} +2 -2
- package/dist/client/assets/{pegDiagram-XKGWAZYB-BMn57iOd.js → pegDiagram-XKGWAZYB-Bbw22YYs.js} +2 -2
- package/dist/client/assets/{phoneViewer-C-9G9sMe.js → phoneViewer-DZyuQ-is.js} +2 -2
- package/dist/client/assets/{pie-WAS4IAKB-DSKy_d1u.js → pie-WAS4IAKB-CNHjs-Ma.js} +1 -1
- package/dist/client/assets/{pieDiagram-E7YTZNPT-DJxOVDr9.js → pieDiagram-E7YTZNPT-_ZbKy7eA.js} +2 -2
- package/dist/client/assets/{pierre-icons-Cp8tJJSF.js → pierre-icons-BubjdUjD.js} +2 -2
- package/dist/client/assets/{popover-B70_-gBS.js → popover-BuuvISBT.js} +2 -2
- package/dist/client/assets/{preview-BHYM-_BL.js → preview-BlW45a9H.js} +2 -2
- package/dist/client/assets/{preview-Dj_ac_jZ.js → preview-CwzKOKVG.js} +2 -2
- package/dist/client/assets/{previewMiniPlayerStore-DX9IKNL3.js → previewMiniPlayerStore-CGiA2h59.js} +2 -2
- package/dist/client/assets/{primary-DHlSwiw_.js → primary-3GB-obcz.js} +2 -2
- package/dist/client/assets/primaryCloudLinkState-DYmepSfi.js +2 -0
- package/dist/client/assets/{projectFilesQueryState-DPo8i5yD.js → projectFilesQueryState-D2rMhOEA.js} +2 -2
- package/dist/client/assets/{projectScriptEditor-By8EdSYw.js → projectScriptEditor-BxnriUVv.js} +2 -2
- package/dist/client/assets/providerSkills-C_OG7yP0.js +2 -0
- package/dist/client/assets/{pullRequestDetail.logic-B2AL8Xka.js → pullRequestDetail.logic-BhGUhCGd.js} +2 -2
- package/dist/client/assets/{pullRequestIcons-B2-CZ5Ci.js → pullRequestIcons-DsTinQ4q.js} +2 -2
- package/dist/client/assets/{pullRequestReviewStore-CxOHaJ2U.js → pullRequestReviewStore-BKYNixhZ.js} +2 -2
- package/dist/client/assets/pullRequests-CQ2Zte1o.js +2 -0
- package/dist/client/assets/{quadrantDiagram-AXDQQJYC-DE0d6o0C.js → quadrantDiagram-AXDQQJYC-Bnl3w7OY.js} +2 -2
- package/dist/client/assets/{queries-DqFudp6N.js → queries-_Qf89qTX.js} +2 -2
- package/dist/client/assets/{query-1tRB9OB0.js → query-CRlRG7rf.js} +2 -2
- package/dist/client/assets/{radar-RG4KPBEZ-DveMwSB8.js → radar-RG4KPBEZ-DweWJU_g.js} +1 -1
- package/dist/client/assets/{radio-group-BDPDnH4m.js → radio-group-iJUHzvZC.js} +2 -2
- package/dist/client/assets/{railroad-74A4TZTK-7mru9krG.js → railroad-74A4TZTK-DmxX8fKE.js} +1 -1
- package/dist/client/assets/railroad-abnf-HS5TGJTU-CSGCBDLE.js +1 -0
- package/dist/client/assets/railroad-ebnf-LZEXJU2U-qkcBzemM.js +1 -0
- package/dist/client/assets/railroad-peg-WCYAUIDC-B-rmMXQT.js +1 -0
- package/dist/client/assets/{railroadDiagram-O6MQD6OU-bAzEpkUJ.js → railroadDiagram-O6MQD6OU-D94VfvdV.js} +2 -2
- package/dist/client/assets/{renderScheduler-DM1wgh78.js → renderScheduler-DIWSOdLy.js} +2 -2
- package/dist/client/assets/{requirementDiagram-BXWQKSXE-ClHxFUNg.js → requirementDiagram-BXWQKSXE-4Sss1rRH.js} +2 -2
- package/dist/client/assets/{rightPanelStore-DNohe5X6.js → rightPanelStore-C3FvIXSq.js} +2 -2
- package/dist/client/assets/{runtime-B7jXrsPs.js → runtime-CJNEsw6U.js} +3 -3
- package/dist/client/assets/runtime-ets76j-h.js +2 -0
- package/dist/client/assets/{runtimeModeConfig-D044rsFH.js → runtimeModeConfig-DNgZlBoC.js} +2 -2
- package/dist/client/assets/{sankeyDiagram-P5KCCOFB-BwX1Wn_u.js → sankeyDiagram-P5KCCOFB-CFV5CXMi.js} +2 -2
- package/dist/client/assets/{scheduledTasksSettings.logic-Bw_obRa9.js → scheduledTasksSettings.logic-CGYf8FQi.js} +2 -2
- package/dist/client/assets/{scroll-area-Ckz2bO0L.js → scroll-area-By1ARHPp.js} +2 -2
- package/dist/client/assets/{select-DWT2vKJH.js → select-DqGlaY40.js} +2 -2
- package/dist/client/assets/{sequenceDiagram-WJ2MYXX4-BSpw0E5m.js → sequenceDiagram-WJ2MYXX4-Cln2JnVw.js} +2 -2
- package/dist/client/assets/{server-B0y-CZn0.js → server-DpLkyQ0R.js} +2 -2
- package/dist/client/assets/{session-eKfJi_Kx.js → session-Cau_XThy.js} +2 -2
- package/dist/client/assets/{session-logic-BAndUZwA.js → session-logic-CRwcdrNw.js} +2 -2
- package/dist/client/assets/settings-B4aWX2xy.js +2 -0
- package/dist/client/assets/{settings.appearance-kTWXGfao.js → settings.appearance-C__igzME.js} +2 -2
- package/dist/client/assets/settings.archived-Bs-jKZBo.js +2 -0
- package/dist/client/assets/{settings.computer-use-BuDMoYe7.js → settings.computer-use-SngXUHmk.js} +2 -2
- package/dist/client/assets/settings.connections-Bw61DbEx.js +2 -0
- package/dist/client/assets/settings.data-controls-DbqXwsIJ.js +2 -0
- package/dist/client/assets/{settings.decisions-rppoMBkE.js → settings.decisions-Bw-dFoGZ.js} +2 -2
- package/dist/client/assets/settings.diagnostics-D5dG-CTq.js +2 -0
- package/dist/client/assets/{settings.general-D1vnEzQa.js → settings.general-DVafi8E5.js} +2 -2
- package/dist/client/assets/settings.integrations-C4t8diIu.js +2 -0
- package/dist/client/assets/{settings.keybindings-BstDnaeV.js → settings.keybindings-B1dMCy_G.js} +2 -2
- package/dist/client/assets/{settings.open-source-licenses-s96NzjdF.js → settings.open-source-licenses-kgRl8SYE.js} +2 -2
- package/dist/client/assets/settings.plugins-HtKh3bu8.js +5 -0
- package/dist/client/assets/settings.projects-CtKhtmR8.js +4 -0
- package/dist/client/assets/settings.providers-Bd0702hD.js +3 -0
- package/dist/client/assets/{settings.scheduled-tasks-WuxBbfP4.js → settings.scheduled-tasks-Tpcp-BCI.js} +2 -2
- package/dist/client/assets/settings.snap-shot-BngynTBI.js +2 -0
- package/dist/client/assets/settings.source-control-DmQkMruN.js +2 -0
- package/dist/client/assets/{settings.storage-DHtjVWHK.js → settings.storage-CUeYkScx.js} +2 -2
- package/dist/client/assets/settingsLayout-Du5mjDQU.js +3 -0
- package/dist/client/assets/sidebar-Dxq8kloB.js +2 -0
- package/dist/client/assets/{sidebarProjectGrouping-BpwyF0h8.js → sidebarProjectGrouping-BfZ705hQ.js} +2 -2
- package/dist/client/assets/{skeleton-DxoA_uLH.js → skeleton--M5AJWoC.js} +2 -2
- package/dist/client/assets/{sourceControl-C-R8wmTp.js → sourceControl-Cmvk57z0.js} +2 -2
- package/dist/client/assets/sourceControlClients-C0IkCWsN.js +2 -0
- package/dist/client/assets/{spinner-B1oJASgu.js → spinner-cHzhZrgb.js} +2 -2
- package/dist/client/assets/{standalone-page-OuNLgPqS.js → standalone-page-BaVFigS5.js} +2 -2
- package/dist/client/assets/{stateDiagram-D77RDMKH-DjLNu-aO.js → stateDiagram-D77RDMKH-CZ_bsdqp.js} +2 -2
- package/dist/client/assets/stateDiagram-v2-MP3YSRHH-93FSJgV8.js +2 -0
- package/dist/client/assets/{swimlanes-42K2YHIH-BAlKsUJH.js → swimlanes-42K2YHIH-My4j-GD7.js} +2 -2
- package/dist/client/assets/swimlanesDiagram-VR7AAH4N-1FS1ow3r.js +9 -0
- package/dist/client/assets/{terminal-links-B7jzSUaR.js → terminal-links-BSEOjQCo.js} +2 -2
- package/dist/client/assets/{terminalSessions-CHAAF5wF.js → terminalSessions-BpuHxk1q.js} +2 -2
- package/dist/client/assets/{textarea-B86ZyXzK.js → textarea-XR9lgl40.js} +2 -2
- package/dist/client/assets/{themePalette-BAR7Sc97.js → themePalette-CONAHv4I.js} +2 -2
- package/dist/client/assets/threadSort-Bd2rijEy.js +2 -0
- package/dist/client/assets/{timeline-definition-24CTP7MA-YXaIoqb6.js → timeline-definition-24CTP7MA-Q9JBFJBF.js} +2 -2
- package/dist/client/assets/toast-CwJ-bjHi.js +2 -0
- package/dist/client/assets/{toggle-D4IMx5jG.js → toggle-FqX4CVcC.js} +2 -2
- package/dist/client/assets/{toggle-group-BWnqiNcg.js → toggle-group-JCVlIQ5i.js} +2 -2
- package/dist/client/assets/tooltip-CtZ6PJJw.js +2 -0
- package/dist/client/assets/{treeView-Q6P3EWNA-BKHL242s.js → treeView-Q6P3EWNA-3qBVWI88.js} +1 -1
- package/dist/client/assets/{treemap-WGGIJYW6-DKZHfhNz.js → treemap-WGGIJYW6-O3_0iynh.js} +1 -1
- package/dist/client/assets/uiStateStore-CcTtH1Jz.js +6 -0
- package/dist/client/assets/usage-DWATWAhJ.js +2 -0
- package/dist/client/assets/{usageAccess-DLbz2bdv.js → usageAccess-Cpk_Aec9.js} +2 -2
- package/dist/client/assets/{usageFormat-CzWB9UsH.js → usageFormat-B23xwSbG.js} +2 -2
- package/dist/client/assets/{usageShortcuts-DAEm4s6Q.js → usageShortcuts-BMHWlKT1.js} +2 -2
- package/dist/client/assets/{use-atom-command-BEpD82FZ.js → use-atom-command-3Z4EZbCj.js} +2 -2
- package/dist/client/assets/{useAriaLabelledBy-D6y1qpkp.js → useAriaLabelledBy-CMSGO3cd.js} +2 -2
- package/dist/client/assets/{useHandleNewThread-6AAzzJsA.js → useHandleNewThread-B9RCcbnw.js} +2 -2
- package/dist/client/assets/{useLocation-X2uUveT9.js → useLocation-BTH6wjAt.js} +2 -2
- package/dist/client/assets/useNavigate-BS8hIoQr.js +2 -0
- package/dist/client/assets/{useNavigateBack-DoGrCk85.js → useNavigateBack-DskLvJ9n.js} +2 -2
- package/dist/client/assets/{useParams-Bschqkhl.js → useParams-DhNu716j.js} +2 -2
- package/dist/client/assets/{usePermissionStatus-DFa5P3Vr.js → usePermissionStatus-DaOsrYgE.js} +2 -2
- package/dist/client/assets/usePullRequestActions-3vXHUgiG.js +3 -0
- package/dist/client/assets/{useRegisterFieldControl-BgyE4_OV.js → useRegisterFieldControl-BX1EsUxP.js} +2 -2
- package/dist/client/assets/useScopedModelAvailability-BcYNdaQr.js +2 -0
- package/dist/client/assets/useSettings-D_OJJgNE.js +3 -0
- package/dist/client/assets/{useT3ConnectAuthPrompt-BgqISbBe.js → useT3ConnectAuthPrompt-BcMgBGvL.js} +2 -2
- package/dist/client/assets/utils-DqIvhFCT.js +37 -0
- package/dist/client/assets/{vcsRefInvalidation-BWvsbPLB.js → vcsRefInvalidation-Dj5BpmJA.js} +2 -2
- package/dist/client/assets/{vennDiagram-4TSXK5OY-BN0NlVtY.js → vennDiagram-4TSXK5OY-CGJ_vzL4.js} +2 -2
- package/dist/client/assets/{wardley-WFR3VGLG-DWpJUQkf.js → wardley-WFR3VGLG-dLKWDrdG.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-VM6X3IG4-C_2_0OtT.js → wardleyDiagram-VM6X3IG4-CZY3cfuL.js} +2 -2
- package/dist/client/assets/welcome-BSKechyt.js +2 -0
- package/dist/client/assets/{xychartDiagram-S5SC5T6Z-gSixBfkr.js → xychartDiagram-S5SC5T6Z-H2sll7xl.js} +2 -2
- package/dist/client/index.html +1 -1
- package/dist/{renderer-B8qsc7RL.mjs → renderer-CCVomMFP.mjs} +2 -2
- package/dist/{runtime-CEdmfdaF.mjs → runtime-DKclsP_7.mjs} +84 -7
- package/package.json +1 -1
- package/dist/client/assets/AlertDialogRoot-C4_VBb4J.js +0 -2
- package/dist/client/assets/CodexSetupSection.logic-B-Gs8BS6.js +0 -2
- package/dist/client/assets/CommandBlock-BaaPOUD7.js +0 -2
- package/dist/client/assets/DevicePanel-BG2hk0i3.js +0 -2
- package/dist/client/assets/DeviceSetup-CKZmblju.js +0 -2
- package/dist/client/assets/DiffFileTree-BnizHv7v.js +0 -2
- package/dist/client/assets/DiffPanel-DxnHaLb1.js +0 -2
- package/dist/client/assets/EmbeddedDesign-BiW8ewmO.js +0 -19
- package/dist/client/assets/FilePreviewPanel-Cii41zwQ.js +0 -34
- package/dist/client/assets/Input-D-VEMFtp.js +0 -2
- package/dist/client/assets/NoProjectsHero-Cbnk6tn0.js +0 -2
- package/dist/client/assets/PreviewPanel-CZ_Qxxvo.js +0 -2
- package/dist/client/assets/ProjectDefaultsSettings-BIEY8BOO.js +0 -2
- package/dist/client/assets/ProjectFavicon-DU8VbXX4.js +0 -3
- package/dist/client/assets/ProviderModelPicker-wOdtIBVW.js +0 -2
- package/dist/client/assets/PullRequestCodeTab-CkE2ul9K.js +0 -6
- package/dist/client/assets/RenderErrorBoundary-CgWfZhV9.js +0 -2
- package/dist/client/assets/ScheduledTasksSettings-CykPbEbT.js +0 -4
- package/dist/client/assets/SettingsScopeNotice-ml10Xbs_.js +0 -2
- package/dist/client/assets/ThemeEditorPanel-BiB-1tTU.js +0 -5
- package/dist/client/assets/TooltipViewport-A4hJLsA1.js +0 -2
- package/dist/client/assets/_chat-DcFCVkrG.js +0 -45
- package/dist/client/assets/_chat.index-D1edR5Y7.js +0 -2
- package/dist/client/assets/_chat.new-CNtY6xfX.js +0 -4
- package/dist/client/assets/_chat.pull-requests-B9gYbv3C.js +0 -2
- package/dist/client/assets/architecture-7GRP2DOG-B_DOBvMT.js +0 -1
- package/dist/client/assets/browserHistoryStore-D3jg6lW0.js +0 -2
- package/dist/client/assets/channel-D77117oc.js +0 -2
- package/dist/client/assets/classDiagram-ZZMXUADV-BOfzjSR1.js +0 -2
- package/dist/client/assets/classDiagram-v2-VYDZK3BY-BOfzjSR1.js +0 -2
- package/dist/client/assets/command-7JZ4jreB.js +0 -2
- package/dist/client/assets/environments-CXLCfPlP.js +0 -2
- package/dist/client/assets/eventmodeling-NTZA5JFV-BBNrMOto.js +0 -1
- package/dist/client/assets/flowDiagram-HODETNUW-DE4e8-KT.js +0 -1
- package/dist/client/assets/git-compare-CCnx9obs.js +0 -2
- package/dist/client/assets/main-ChIB1-3M.css +0 -2
- package/dist/client/assets/main-Co3JeKTg.js +0 -30
- package/dist/client/assets/primaryCloudLinkState-LOtU3kc-.js +0 -2
- package/dist/client/assets/providerSkills-mKD6o1i5.js +0 -2
- package/dist/client/assets/pullRequests-DDmSd4bP.js +0 -2
- package/dist/client/assets/railroad-abnf-HS5TGJTU-Ch23A2t1.js +0 -1
- package/dist/client/assets/railroad-ebnf-LZEXJU2U-D0diYlkX.js +0 -1
- package/dist/client/assets/railroad-peg-WCYAUIDC-CnUWPGXT.js +0 -1
- package/dist/client/assets/runtime-B75ae48c.js +0 -2
- package/dist/client/assets/settings-D_eUqlLu.js +0 -2
- package/dist/client/assets/settings.archived-By7wX_fc.js +0 -2
- package/dist/client/assets/settings.connections-DwruajVk.js +0 -2
- package/dist/client/assets/settings.data-controls-Ew7ogbgL.js +0 -2
- package/dist/client/assets/settings.diagnostics-BcNTndhm.js +0 -2
- package/dist/client/assets/settings.integrations-DKEJMS6o.js +0 -2
- package/dist/client/assets/settings.plugins--hNL0lcF.js +0 -5
- package/dist/client/assets/settings.projects-BQBJ0eQ0.js +0 -4
- package/dist/client/assets/settings.providers-C-R4_ra0.js +0 -3
- package/dist/client/assets/settings.snap-shot-D-GpjQxg.js +0 -2
- package/dist/client/assets/settings.source-control-D_Ipwyto.js +0 -2
- package/dist/client/assets/settingsLayout-B_Bq9Cq9.js +0 -3
- package/dist/client/assets/sidebar-m0COIl9s.js +0 -2
- package/dist/client/assets/sortable.esm-DAcHa5SQ.js +0 -6
- package/dist/client/assets/stateDiagram-v2-MP3YSRHH-Cx2Qu8wY.js +0 -2
- package/dist/client/assets/swimlanesDiagram-VR7AAH4N-euVkUgFA.js +0 -9
- package/dist/client/assets/threadSort-Dnq059Z5.js +0 -2
- package/dist/client/assets/toast-e2DHftFl.js +0 -2
- package/dist/client/assets/tooltip-DRGG_vM1.js +0 -2
- package/dist/client/assets/usage-DZw1xQLa.js +0 -2
- package/dist/client/assets/useNavigate-B7cVsvjL.js +0 -2
- package/dist/client/assets/usePullRequestActions-FCnq9KIj.js +0 -3
- package/dist/client/assets/useScopedModelAvailability-B8VSCR9i.js +0 -2
- package/dist/client/assets/useSettings-CUN8qNLl.js +0 -3
- package/dist/client/assets/utils-BgVDKR83.js +0 -37
- package/dist/client/assets/welcome-CT583VDG.js +0 -2
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{$o as n,$w as r,$x as i,$y as a,By as o,C_ as s,Ch as c,Cs as l,Cy as u,Dc as d,Fb as f,Fg as ee,Go as p,Gy as te,Iy as ne,LT as re,MT as ie,Mb as ae,NE as oe,NT as m,Ng as se,Ox as ce,Oy as le,P_ as ue,Pb as de,Rs as fe,Sb as pe,Ss as me,Th as he,Ts as ge,Xo as _e,Yo as h,Yw as g,Zo as ve,Zw as _,Zy as ye,_l as be,ah as xe,bh as Se,ch as Ce,db as we,dh as Te,gl as Ee,hh as De,i_ as Oe,ib as ke,ih as Ae,j_ as je,jb as Me,kb as Ne,kv as Pe,n_ as Fe,qy as Ie,r_ as Le,rb as Re,ss as v,tS as ze,th as Be,uh as Ve,wh as He,xb as Ue,yl as We,ys as Ge}from"./utils-DqIvhFCT.js";import{At as Ke,E as qe,I as Je,R as Ye,Sn as Xe,T as Ze,W as Qe,_t as y}from"./runtime-CJNEsw6U.js";import{Ct as $e,T as et,t as tt,yt as nt}from"./runtime-ets76j-h.js";import{i as b}from"./toast-CwJ-bjHi.js";import{f as x,h as S,m as rt,u as it}from"./server-DpLkyQ0R.js";import{i as at,n as ot,s as st,t as ct}from"./session-Cau_XThy.js";import{t as C}from"./use-atom-command-3Z4EZbCj.js";import{B as lt,C as ut,F as dt,N as ft,P as pt,V as mt,b as ht,c as gt,i as w,k as _t,l as vt,n as yt,o as bt,r as xt,v as St,w as Ct,x as wt}from"./themePalette-CONAHv4I.js";var T=e(t(),1),E=oe();function Tt(e,t){if(e.size!==t.size)return!1;for(let[n,r]of e)if(t.get(n)!==r)return!1;return!0}function Et(e){let t=ve(t=>n(n=>{let r=n(e.catalogValueAtom).entries.get(t);if(r===void 0)return null;let i=ie(me(n(e.stateAtom(t))),()=>Xe);return{entry:r,connection:r.unsupportedReason===void 0?$e(i):{phase:`unsupported`,error:r.unsupportedReason,traceId:null},serverConfig:n(e.serverConfigValueAtom(t))}}).pipe(v(`environment-presentation:${t}`))),r=new Map;return{presentationAtom:t,presentationsAtom:n(n=>{let i=new Map;for(let r of n(e.catalogValueAtom).entries.keys()){let e=n(t(r));e!==null&&i.set(r,e)}return Tt(r,i)||(r=i),r}).pipe(v(`environment-presentations`))}}function Dt(e,t){return{environmentId:e,environmentLabel:t.entry.target.label,displayUrl:nt(t.entry)??``,isRelayManaged:Ke(t.entry),isEnabled:t.entry.enabled,connectionState:t.connection.phase,connectionError:t.connection.error,connectionErrorTraceId:t.connection.traceId}}function Ot(e){let t=n(t=>{let n=[...t(e.catalogValueAtom).entries.keys()],r=m(t.self());return r!==null&&r.length===n.length&&n.every((e,t)=>e===r[t])?r:n}),r=n(t=>{let n=[...t(e.catalogValueAtom).entries].map(([e,t])=>({environmentId:e,label:t.target.label})),r=m(t.self());return r!==null&&r.length===n.length&&n.every((e,t)=>e.environmentId===r[t]?.environmentId&&e.label===r[t]?.label)?r:n}),i=ve(t=>n(n=>{let r=n(e.presentationAtom(t));if(r===null)return null;let i=Dt(t,r),a=m(n.self());return a!==null&&a.environmentId===i.environmentId&&a.environmentLabel===i.environmentLabel&&a.displayUrl===i.displayUrl&&a.isRelayManaged===i.isRelayManaged&&a.isEnabled===i.isEnabled&&a.connectionState===i.connectionState&&a.connectionError===i.connectionError&&a.connectionErrorTraceId===i.connectionErrorTraceId?a:i})),a=n(t=>{let n=[];for(let r of t(e.catalogValueAtom).entries.keys()){let e=t(i(r));e!==null&&n.push(e)}let r=m(t.self());return r!==null&&r.length===n.length&&n.every((e,t)=>e===r[t])?r:n}).pipe(v(`environment-connection-summaries`));return{environmentIdsAtom:t,connectedEnvironmentIdsAtom:n(e=>{let n=e(t).filter(t=>e(i(t))?.connectionState===`connected`),r=m(e.self());return r!==null&&r.length===n.length&&n.every((e,t)=>e===r[t])?r:n}),identitiesAtom:r,environmentsAtom:a,machineByIdAtom:n(n=>{let r=new Map(n(t).map(t=>[t,We(n(e.presentationAtom(t))?.serverConfig??null)])),i=m(n.self());return i!==null&&Tt(i,r)?i:r}),pullRequestsSupportedAtom:n(n=>n(t).some(t=>n(e.presentationAtom(t))?.serverConfig?.environment.capabilities.pullRequests===!0))}}var kt=Et({catalogValueAtom:S.catalogValueAtom,stateAtom:S.stateAtom,serverConfigValueAtom:x.configValueAtom}),At=Ot({catalogValueAtom:S.catalogValueAtom,presentationAtom:kt.presentationAtom}),jt=n(null).pipe(v(`web-environment-presentation:empty`));function Mt(e){let t=(0,E.c)(5),n=h(S.catalogValueAtom),r;t[0]===e?r=t[1]:(r=e===null?jt:kt.presentationAtom(e),t[0]=e,t[1]=r);let i=h(r),a;return t[2]!==n.isReady||t[3]!==i?(a={isReady:n.isReady,presentation:i},t[2]=n.isReady,t[3]=i,t[4]=a):a=t[4],a}var Nt={status:`idle`},D=Nt,O=null,k=[],A=0,Pt=new Set;function j(e){D=e;for(let e of Pt)e()}function Ft(e){O?.resolve(e);for(let t of k)t.resolve(e);O=null,k=[]}function It(){return D}function Lt(e){return Pt.add(e),()=>{Pt.delete(e)}}function Rt(){A+=1;let e=!0;return()=>{e&&(e=!1,A=Math.max(0,A-1),A===0&&(Ft(!1),j(Nt)))}}function zt(e,t){if(A!==0)return new Promise(n=>{let r={message:e,variant:t?.variant??`default`,resolve:n};if(O||D.status===`closing`){k.push(r);return}O=r,j({status:`confirming`,message:e,variant:r.variant})})}function Bt(){return D.status!==`idle`||O!==null||k.length>0}function Vt(e){if(D.status!==`confirming`||!O)return;let t=O;O=null,t.resolve(e),j({status:`closing`,message:D.message,variant:D.variant})}function Ht(){if(D.status!==`closing`)return;let e=k.shift();if(!e){j(Nt);return}O=e,j({status:`confirming`,message:e.message,variant:e.variant})}var Ut={Ctrl:`⌃`,Alt:`⌥`,Shift:`⇧`,Super:`⌘`,CmdOrCtrl:`⌘`};function Wt(e,t=navigator.platform){let n=e.split(`+`),r=n.pop()??``;return d(t)?`${n.map(e=>Ut[e]??e).join(``)}${r}`:[...n.map(e=>e===`CmdOrCtrl`?`Ctrl`:e===`Super`?`Meta`:e),r].join(`+`)}var Gt=`http://www.w3.org/2000/svg`,Kt={archive:[{tag:`rect`,attrs:{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`}},{tag:`path`,attrs:{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`}},{tag:`path`,attrs:{d:`M10 12h4`}}],check:[{tag:`path`,attrs:{d:`M20 6 9 17l-5-5`}}],timer:[{tag:`line`,attrs:{x1:`10`,x2:`14`,y1:`2`,y2:`2`}},{tag:`line`,attrs:{x1:`12`,x2:`15`,y1:`14`,y2:`11`}},{tag:`circle`,attrs:{cx:`12`,cy:`14`,r:`8`}}],"chevron-right":[{tag:`path`,attrs:{d:`m9 19 7-7-7-7`}}],"circle-check":[{tag:`circle`,attrs:{cx:`12`,cy:`12`,r:`10`}},{tag:`path`,attrs:{d:`m9 12 2 2 4-4`}}],clock:[{tag:`path`,attrs:{d:`M12 6v6l4 2`}},{tag:`circle`,attrs:{cx:`12`,cy:`12`,r:`10`}}],pencil:[{tag:`path`,attrs:{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`}},{tag:`path`,attrs:{d:`m15 5 4 4`}}],copy:[{tag:`rect`,attrs:{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`}},{tag:`path`,attrs:{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`}}],folder:[{tag:`path`,attrs:{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`}}],"git-branch":[{tag:`line`,attrs:{x1:`6`,x2:`6`,y1:`3`,y2:`15`}},{tag:`circle`,attrs:{cx:`18`,cy:`6`,r:`3`}},{tag:`circle`,attrs:{cx:`6`,cy:`18`,r:`3`}},{tag:`path`,attrs:{d:`M18 9a9 9 0 0 1-9 9`}}],eye:[{tag:`path`,attrs:{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`}},{tag:`circle`,attrs:{cx:`12`,cy:`12`,r:`3`}}],"app-window":[{tag:`rect`,attrs:{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`}},{tag:`path`,attrs:{d:`M10 4v4`}},{tag:`path`,attrs:{d:`M2 8h20`}},{tag:`path`,attrs:{d:`M6 4v4`}}],"arrow-up-right":[{tag:`path`,attrs:{d:`M7 7h10v10`}},{tag:`path`,attrs:{d:`M7 17 17 7`}}],"external-link":[{tag:`path`,attrs:{d:`M15 3h6v6`}},{tag:`path`,attrs:{d:`M10 14 21 3`}},{tag:`path`,attrs:{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`}}],link:[{tag:`path`,attrs:{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`}},{tag:`path`,attrs:{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`}}],list:[{tag:`path`,attrs:{d:`M3 5h.01`}},{tag:`path`,attrs:{d:`M3 12h.01`}},{tag:`path`,attrs:{d:`M3 19h.01`}},{tag:`path`,attrs:{d:`M8 5h13`}},{tag:`path`,attrs:{d:`M8 12h13`}},{tag:`path`,attrs:{d:`M8 19h13`}}],share:[{tag:`path`,attrs:{d:`M12 2v13`}},{tag:`path`,attrs:{d:`m16 6-4-4-4 4`}},{tag:`path`,attrs:{d:`M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8`}}],x:[{tag:`path`,attrs:{d:`M18 6 6 18`}},{tag:`path`,attrs:{d:`m6 6 12 12`}}],hash:[{tag:`line`,attrs:{x1:`4`,x2:`20`,y1:`9`,y2:`9`}},{tag:`line`,attrs:{x1:`4`,x2:`20`,y1:`15`,y2:`15`}},{tag:`line`,attrs:{x1:`10`,x2:`8`,y1:`3`,y2:`21`}},{tag:`line`,attrs:{x1:`16`,x2:`14`,y1:`3`,y2:`21`}}],"mail-open":[{tag:`path`,attrs:{d:`M21.2 8.4c.5.38.8.97.8 1.6v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10a2 2 0 0 1 .8-1.6l8-6a2 2 0 0 1 2.4 0l8 6Z`}},{tag:`path`,attrs:{d:`m22 10-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 10`}}],"message-square-plus":[{tag:`path`,attrs:{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`}},{tag:`path`,attrs:{d:`M12 8v6`}},{tag:`path`,attrs:{d:`M9 11h6`}}],pin:[{tag:`path`,attrs:{d:`M12 17v5`}},{tag:`path`,attrs:{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`}}],"pin-off":[{tag:`path`,attrs:{d:`M12 17v5`}},{tag:`path`,attrs:{d:`M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89`}},{tag:`path`,attrs:{d:`m2 2 20 20`}},{tag:`path`,attrs:{d:`M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11`}}],"refresh-cw":[{tag:`path`,attrs:{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`}},{tag:`path`,attrs:{d:`M21 3v5h-5`}},{tag:`path`,attrs:{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`}},{tag:`path`,attrs:{d:`M8 16H3v5`}}],settings:[{tag:`path`,attrs:{d:`M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.38a2 2 0 0 0-.73-2.73l-.15-.09a2 2 0 0 1-1-1.74v-.51a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z`}},{tag:`circle`,attrs:{cx:`12`,cy:`12`,r:`3`}}],"folder-tree":[{tag:`path`,attrs:{d:`M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z`}},{tag:`path`,attrs:{d:`M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z`}},{tag:`path`,attrs:{d:`M3 5a2 2 0 0 0 2 2h3`}},{tag:`path`,attrs:{d:`M3 3v13a2 2 0 0 0 2 2h3`}}],trash:[{tag:`path`,attrs:{d:`M3 6h18`}},{tag:`path`,attrs:{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`}},{tag:`path`,attrs:{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`}},{tag:`line`,attrs:{x1:`10`,x2:`10`,y1:`11`,y2:`17`}},{tag:`line`,attrs:{x1:`14`,x2:`14`,y1:`11`,y2:`17`}}]};function qt(e,t){let n=Kt[e];if(!n||typeof document.createElementNS!=`function`)return null;let r=document.createElementNS(Gt,`svg`);r.setAttribute(`xmlns`,Gt),r.setAttribute(`viewBox`,`0 0 24 24`),r.setAttribute(`fill`,`none`),r.setAttribute(`stroke`,`currentColor`),r.setAttribute(`stroke-width`,`2`),r.setAttribute(`stroke-linecap`,`round`),r.setAttribute(`stroke-linejoin`,`round`),r.setAttribute(`class`,t===`destructive`?`size-4.5 shrink-0 sm:size-4`:`size-4.5 shrink-0 text-muted-foreground sm:size-4`);for(let e of n){let t=document.createElementNS(Gt,e.tag);for(let[n,r]of Object.entries(e.attrs))t.setAttribute(n,r);r.appendChild(t)}return r}function Jt(e,t,n){let r=e.getBoundingClientRect(),i=Math.min(Math.max(4,t),Math.max(4,window.innerWidth-r.width-4)),a=Math.min(Math.max(4,n),Math.max(4,window.innerHeight-r.height-4));e.style.left=`${i}px`,e.style.top=`${a}px`}function Yt(e,t){if(typeof Node<`u`&&e instanceof Node)return t.some(t=>t.contains(e));if(!e||typeof e!=`object`)return!1;let n=e;for(;n&&typeof n==`object`;){if(t.includes(n))return!0;n=n.parent}return!1}var M=null;function Xt(){return M!==null}function Zt(){M?.(),M=null}function Qt(e,t){return new Promise(n=>{let r=document.activeElement instanceof HTMLElement?document.activeElement:null,i=[],a=[],o=!1,s=!1,c=()=>l(null),l=e=>{if(o)return;o=!0,M===c&&(M=null),document.removeEventListener(`keydown`,u),document.removeEventListener(`pointerdown`,f,!0),document.removeEventListener(`contextmenu`,ee,!0);let t=Yt(document.activeElement,i);for(let e of i)e.remove();t&&r?.isConnected&&r.focus({preventScroll:!0}),n(e)},u=e=>{e.key===`Escape`&&(e.preventDefault(),l(null))},f=e=>{s&&!Yt(e.target,i)&&l(null)},ee=e=>{s&&!Yt(e.target,i)&&(e.preventDefault(),l(null))},p=e=>{for(;i.length>e;)a.pop()?.setAttribute(`aria-expanded`,`false`),i.pop()?.remove()},te=(e,t,n,r,o)=>{p(r);let c=document.createElement(`div`);c.className=`dropdown-glass fixed z-[10000] min-w-56 max-w-sm overflow-hidden rounded-lg bg-clip-padding text-popover-foreground outline-none`,c.style.cssText=`position:fixed;z-index:10000;min-width:14rem;max-width:24rem;overflow:hidden;border-radius:var(--radius-lg);background-clip:padding-box;color:var(--contrast-popover-foreground);outline:none;pointer-events:auto;`,c.style.left=`${t}px`,c.style.top=`${n}px`,c.dataset.level=String(r);let u=document.createElement(`div`);u.className=`max-h-[calc(100vh-0.5rem)] min-w-0 max-w-sm overflow-y-auto overflow-x-hidden p-1`,u.style.cssText=`max-height:calc(100vh - 0.5rem);min-width:0;max-width:24rem;overflow-x:hidden;overflow-y:auto;padding:0.25rem;`;for(let t of e){if(t.separatorBefore===!0&&u.children.length>0){let e=document.createElement(`div`);e.className=`mx-2 my-1 h-px bg-border`,e.style.cssText=`height:1px;margin:0.25rem 0.5rem;background:var(--contrast-border);`,e.dataset.contextMenuSeparator=`true`,e.setAttribute(`role`,`separator`),u.appendChild(e)}if(t.header===!0){let e=document.createElement(`div`);e.className=`px-2 py-1.5 font-medium text-muted-foreground text-xs`,e.textContent=t.label,u.appendChild(e);continue}let e=Array.isArray(t.children)&&t.children.length>0,n=!e&&(t.destructive===!0||t.id===`delete`),a=document.createElement(`button`);a.type=`button`;let o=t.disabled===!0;a.disabled=o;let c=`flex w-full cursor-default select-none items-center gap-2 rounded-sm px-2 py-1 text-left outline-none transition-colors sm:min-h-7 sm:text-sm min-h-8 text-base`;if(a.className=o?`${c} pointer-events-none cursor-not-allowed text-muted-foreground opacity-64`:n?`${c} text-destructive-foreground hover:bg-destructive/10 hover:text-destructive-foreground`:`${c} text-foreground hover:bg-accent hover:text-accent-foreground`,a.style.cssText=`display:flex;width:100%;min-height:1.75rem;align-items:center;gap:0.5rem;border:0;border-radius:var(--radius-sm);background:transparent;padding:0.25rem 0.5rem;color:var(--contrast-foreground);font-family:var(--font-sans,system-ui,sans-serif);font-size:0.875rem;line-height:1.25rem;text-align:left;cursor:default;`,n&&(a.style.color=`var(--destructive-foreground)`),o&&(a.style.color=`var(--contrast-muted-foreground)`,a.style.opacity=`0.64`,a.style.pointerEvents=`none`),typeof t.checked==`boolean`){a.setAttribute(`role`,`menuitemradio`),a.setAttribute(`aria-checked`,t.checked?`true`:`false`);let e=t.checked?qt(`check`,`neutral`):null;if(e)a.appendChild(e);else{let e=document.createElement(`span`);e.className=`size-4.5 shrink-0 sm:size-4`,e.style.cssText=`display:inline-block;width:1rem;height:1rem;flex-shrink:0;`,e.setAttribute(`aria-hidden`,`true`),a.appendChild(e)}}else if(typeof t.icon==`string`){let e=qt(t.icon,n?`destructive`:`neutral`);e&&a.appendChild(e)}let f=document.createElement(`span`);if(f.className=`min-w-0 flex-1 truncate`,f.textContent=t.label,a.appendChild(f),typeof t.accelerator==`string`){let e=document.createElement(`span`);e.className=`ms-6 shrink-0 text-muted-foreground text-xs tracking-widest`,e.style.cssText=`margin-inline-start:1.5rem;flex-shrink:0;color:var(--contrast-muted-foreground);font-size:0.75rem;letter-spacing:0.1em;`,e.textContent=Wt(t.accelerator),e.setAttribute(`aria-hidden`,`true`),a.setAttribute(`aria-keyshortcuts`,t.accelerator.replace(`CmdOrCtrl`,d(navigator.platform)?`Meta`:`Control`)),a.appendChild(e)}if(e){a.setAttribute(`aria-haspopup`,`menu`),a.setAttribute(`aria-expanded`,`false`);let e=qt(`chevron-right`,`neutral`);e&&(e.setAttribute(`class`,`-me-0.5 ms-auto size-4.5 shrink-0 text-muted-foreground opacity-80 sm:size-4`),e.setAttribute(`aria-hidden`,`true`),e.dataset.contextMenuChevron=`true`,a.appendChild(e))}if(!o){let o=!1,c=!1,u=()=>{let e=o||c;a.style.background=e?n?`color-mix(in srgb, var(--destructive) 10%, transparent)`:`var(--accent)`:`transparent`,a.style.color=e?n?`var(--destructive-foreground)`:`var(--contrast-accent-foreground)`:n?`var(--destructive-foreground)`:`var(--contrast-foreground)`};if(a.addEventListener(`mouseenter`,()=>{a.focus({preventScroll:!0}),o=!0,u()}),a.addEventListener(`mouseleave`,()=>{o=!1,u()}),a.addEventListener(`focus`,()=>{c=!0,u()}),a.addEventListener(`blur`,()=>{c=!1,u()}),e){let e=(e=!1)=>{let n=a.getBoundingClientRect(),o=n.right+4,s=n.top;te(t.children,o,s,r+1,a),a.setAttribute(`aria-expanded`,`true`);let c=i[r+1];if(!c)return;let l=c.getBoundingClientRect();l.right>window.innerWidth&&Jt(c,n.left-l.width-4,n.top),e&&[...c.querySelectorAll(`button`)].find(e=>!e.disabled)?.focus()};a.addEventListener(`mouseenter`,()=>{e()}),a.addEventListener(`click`,t=>{t.preventDefault(),e(!0)})}else a.addEventListener(`mouseenter`,()=>{p(r+1)}),a.addEventListener(`click`,()=>{s&&l(t.id)})}u.appendChild(a)}c.appendChild(u),c.addEventListener(`mouseenter`,()=>{p(r+1)}),document.body.appendChild(c),i[r]=c,a[r]=o,requestAnimationFrame(()=>{Jt(c,t,n)})};document.addEventListener(`keydown`,u),document.addEventListener(`pointerdown`,f,!0),document.addEventListener(`contextmenu`,ee,!0),te(e,t?.x??0,t?.y??0,0),M&&M(),M=c,requestAnimationFrame(()=>{s=!0})})}var $t=`t3code:client-settings:v1`;function en(){return typeof window<`u`}function tn(){return en()?l($t,Be):null}function nn(e){en()&&ge($t,e,Be)}var rn;function an(){return{dialogs:{pickFolder:async e=>window.desktopBridge?window.desktopBridge.pickFolder(e):null,confirm:async(e,t)=>zt(e,t)??!1},shell:{openExternal:async e=>{if(window.desktopBridge){if(!await window.desktopBridge.openExternal(e))throw Error(`Unable to open link.`);return}window.open(e,`_blank`,`noopener,noreferrer`)},openSystemSettings:async e=>{if(!window.desktopBridge?.openSystemSettings||!await window.desktopBridge.openSystemSettings(e))throw Error(`Unable to open System Settings.`)}},contextMenu:{show:async(e,t)=>window.desktopBridge?window.desktopBridge.showContextMenu(e,t):Qt(e,t),close:async()=>{window.desktopBridge||Zt()}},persistence:{getClientSettings:async()=>window.desktopBridge?window.desktopBridge.getClientSettings():tn(),setClientSettings:async e=>{if(window.desktopBridge)return window.desktopBridge.setClientSettings(e);nn(e)}}}}function on(){return an()}function sn(){if(typeof window<`u`)return rn||(rn=on(),rn)}function cn(){let e=sn();if(!e)throw Error(`Local API not found`);return e}var N=`t3code:theme`,ln=`(prefers-color-scheme: dark)`,P={theme:`system`,resolvedTheme:`light`,systemDark:!1,followSystem:!0,appearanceMode:`system`,themeHalves:null};function un(){return F()}function dn(){return typeof window>`u`?{}:fn()}function F(){if(typeof window>`u`)return null;try{return _t(window.localStorage.getItem(w))}catch{return null}}function fn(){try{let e=JSON.parse(window.localStorage.getItem(`t3code:theme-halves:v1`)??`null`);if(typeof e!=`object`||!e)return{};let t={};for(let n of[`light`,`dark`]){let r=e[n];typeof r==`string`&&(t[n]=r)}return t}catch{return{}}}function I(e){return`${e?.light??``}|${e?.dark??``}`}var pn=`theme-color`,mn=`meta[name="${pn}"][data-dynamic-theme-color="true"]`,L=class extends o()(`ThemeStorageError`,{operation:le([`read`,`write`]),storageKey:ne,theme:we(bt),cause:u()}){get message(){return`Failed to ${this.operation} theme preference for ${this.storageKey}.`}},hn=ke(L),gn=class extends o()(`DesktopThemeSyncError`,{theme:bt,cause:u()}){get message(){return`Failed to sync the ${this.theme} theme to the desktop shell.`}},_n=ke(gn),R=[],z=null,vn=!0,B=null,V=null,H=null;function U(){vn=!0;for(let e of R)e()}function yn(){return typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(ln).matches}function bn(e){if(typeof window>`u`)return e===`system`;try{let e=window.localStorage.getItem(xt);if(e===`true`)return!0;if(e===`false`)return!1}catch{}return e===`system`}function xn(e){return e===`light`||e===`dark`||e===`system`}function W(e){if(typeof window<`u`)try{let e=window.localStorage.getItem(yt);if(xn(e))return e}catch{}return bn(e)?`system`:ht(e)??`light`}function Sn(e){if(typeof window<`u`)try{window.localStorage.setItem(yt,e)}catch(e){throw new L({operation:`write`,storageKey:yt,cause:e})}}function Cn(){if(typeof window>`u`)return P.theme;let e;try{e=window.localStorage.getItem(N)}catch(e){throw new L({operation:`read`,storageKey:N,cause:e})}return e!==null&&Ct(e)?vt(e):P.theme}function wn(e){if(typeof window<`u`)try{window.localStorage.setItem(N,e),H=null}catch(t){throw new L({operation:`write`,storageKey:N,theme:e,cause:t})}}function G(){if(H!==null)return P.theme;try{return Cn()}catch(e){let t=hn(e)?e:new L({operation:`read`,storageKey:N,cause:e});return H=t,console.error(t.message,{operation:t.operation,storageKey:t.storageKey,...y(t)}),P.theme}}function Tn(){let e=document.querySelector(mn);return e||(e=document.createElement(`meta`),e.name=pn,e.setAttribute(`data-dynamic-theme-color`,`true`),document.head.append(e),e)}function En(e){let t=e?.trim().toLowerCase();return!t||t===`transparent`||t===`rgba(0, 0, 0, 0)`||t===`rgba(0 0 0 / 0)`?null:e?.trim()??null}function Dn(){return document.querySelector(`main[data-slot='sidebar-inset']`)??document.querySelector(`[data-slot='sidebar-inner']`)??document.body}function On(){if(typeof document>`u`||typeof getComputedStyle>`u`)return;let e=getComputedStyle(document.documentElement),t=document.documentElement.dataset.themeId?En(e.getPropertyValue(`--app-chrome-background`)):null,n=En(getComputedStyle(Dn()).backgroundColor),r=En(getComputedStyle(document.body).backgroundColor),i=t??n??r;if(!i)return;document.documentElement.style.backgroundColor=i,document.body.style.backgroundColor=i;let a=document.querySelectorAll(`meta[name="${pn}"]`);if(a.length===0){Tn().setAttribute(`content`,i);return}for(let e of a)e.setAttribute(`content`,i)}function K(e,{suppressTransitions:t=!1,preservePreview:n=!0}={}){if(typeof document>`u`||typeof window>`u`||n&&document.documentElement.dataset?.themeId===`__preview`)return;let r=W(e),i=r===`system`,a=i?yn():!1,o=F();if(V?.theme===e&&V.systemDark===a&&V.followSystem===i&&V.appearanceMode===r&&I(V.themeHalves)===I(o)){An(e,i,r);return}t&&document.documentElement.classList.add(`no-transitions`);let s=pt(e,a,i,r,o);gt(dt(e,o,s),s),document.documentElement.classList.toggle(`dark`,s===`dark`),V={theme:e,systemDark:a,followSystem:i,appearanceMode:r,themeHalves:o},On(),An(e,i,r),t&&(document.documentElement.offsetHeight,requestAnimationFrame(()=>{document.documentElement.classList.remove(`no-transitions`)}))}async function kn(e,t,n,r,i=F()){try{await e.setTheme(ft(t,n,r,i))}catch(e){throw new gn({theme:t,cause:e})}}function An(e,t,n){if(typeof window>`u`)return;let r=window.desktopBridge,i=F(),a=ft(e,t,n,i);r&&typeof r.setTheme==`function`&&B!==a&&(B=a,kn(r,e,t,n,i).catch(t=>{let n=_n(t)?t:new gn({theme:e,cause:t});console.error(n.message,{theme:n.theme,...y(n)}),B===a&&(B=null)}))}typeof document<`u`&&typeof window<`u`&&K(G());function jn(){if(typeof window>`u`)return P;if(!vn&&z)return z;vn=!1;let e=G(),t=W(e),n=t===`system`,r=n?yn():!1,i=F(),a=pt(e,r,n,t,i);return z&&z.theme===e&&z.resolvedTheme===a&&z.systemDark===r&&z.followSystem===n&&z.appearanceMode===t&&I(z.themeHalves)===I(i)||(z={theme:e,resolvedTheme:a,systemDark:r,followSystem:n,appearanceMode:t,themeHalves:i}),z}function Mn(){return P}function Nn(){let e=G();W(e)===`system`&&K(e,{suppressTransitions:!0}),U()}function Pn(e){e.key===N?(H=null,K(G(),{suppressTransitions:!0}),U()):e.key===`t3code:theme-follow-system`||e.key===`t3code:theme-appearance-mode`||e.key===`t3code:theme-halves:v1`?(K(G(),{suppressTransitions:!0}),U()):(e.key===`t3code:themes:v1`||e.key===null)&&(e.key===null&&(H=null),ut(),V=null,K(G(),{suppressTransitions:!0}),U())}var Fn=null;function In(e){if(typeof window>`u`)return()=>{};if(R.push(e),!Fn){let e=typeof window.matchMedia==`function`?window.matchMedia(ln):null;e?.addEventListener(`change`,Nn),window.addEventListener(`storage`,Pn),Fn=()=>{e?.removeEventListener(`change`,Nn),window.removeEventListener(`storage`,Pn)}}return()=>{R=R.filter(t=>t!==e),R.length===0&&(Fn?.(),Fn=null)}}function Ln(){let e=(0,T.useSyncExternalStore)(In,jn,Mn),{theme:t,resolvedTheme:n}=e,r=(0,T.useCallback)(e=>{if(typeof window>`u`)return!1;try{Sn(W(G()));let t=window.localStorage.getItem(w);window.localStorage.removeItem(w);try{wn(e)}catch(e){if(t!==null)try{window.localStorage.setItem(w,t)}catch{}throw e}}catch(t){let n=hn(t)?t:new L({operation:`write`,storageKey:N,theme:e,cause:t});return console.error(n.message,{operation:n.operation,storageKey:n.storageKey,theme:e,...y(n)}),!1}return K(e,{suppressTransitions:!0}),U(),!0},[]),i=(0,T.useCallback)(e=>{if(typeof window>`u`)return!1;try{Sn(e)}catch(e){let t=hn(e)?e:new L({operation:`write`,storageKey:yt,cause:e});return console.error(t.message,{operation:t.operation,storageKey:t.storageKey,...y(t)}),!1}return H=null,K(G(),{suppressTransitions:!0}),U(),!0},[]),a=(0,T.useCallback)(e=>{let n=W(t),r=e?`system`:n===`system`?ht(t)??`light`:n;return i(r)},[i,t]),o=(0,T.useCallback)((e,t)=>{if(typeof window>`u`)return!1;try{let n={...fn()};t===null?delete n[e]:n[e]=t,n.light===void 0&&n.dark===void 0?window.localStorage.removeItem(w):window.localStorage.setItem(w,JSON.stringify(n))}catch(e){let t=new L({operation:`write`,storageKey:w,cause:e});return console.error(t.message,{operation:t.operation,storageKey:t.storageKey,...y(t)}),!1}return K(G(),{suppressTransitions:!0}),U(),!0},[]),s=(0,T.useCallback)(()=>{if(typeof window>`u`)return!1;try{window.localStorage.removeItem(w)}catch(e){let t=new L({operation:`write`,storageKey:w,cause:e});return console.error(t.message,{operation:t.operation,storageKey:t.storageKey,...y(t)}),!1}return K(G(),{suppressTransitions:!0}),U(),!0},[]),c=(0,T.useCallback)(({preservePreview:e=!1}={})=>{typeof window<`u`&&(V=null,K(G(),{suppressTransitions:!0,preservePreview:e}),U())},[]);return(0,T.useEffect)(()=>{K(t)},[e.appearanceMode,t]),{theme:t,setTheme:r,setAppearanceMode:i,setFollowSystem:a,setThemeHalf:o,clearThemeHalves:s,refreshTheme:c,followSystem:e.followSystem,appearanceMode:e.appearanceMode,resolvedTheme:n,themeHalves:e.themeHalves}}var Rn=Ie(Re(te)),zn=f(e=>{let t=e.replace(/("(?:[^"\\]|\\.)*")|\/\/[^\n]*/g,(e,t)=>t?e:``);return t=t.replace(/("(?:[^"\\]|\\.)*")|\/\*[\s\S]*?\*\//g,(e,t)=>t?e:``),t=t.replace(/("(?:[^"\\]|\\.)*")|,(\s*[}\]])/g,(e,t,n)=>t?e:n??``),Rn(t).pipe(ze(e=>e.issue))}),Bn=new Ne(zn,de());ae().pipe(Me(de({space:2})));var Vn=e=>ne.pipe(ye(e,Bn)),Hn={performance:{profile:`performance`,automaticGitFetchInterval:_(15),providerHealthRefreshInterval:g(1),hostPowerMonitorActiveInterval:_(30),hostPowerMonitorIdleInterval:g(2),idleClientTtl:_(45),pauseWhenHostLocked:!0,pauseWhenHostLowPower:!1,pauseWhenClientLowPower:!1,pauseWhenOnBattery:!1},balanced:{profile:`balanced`,automaticGitFetchInterval:Ae,providerHealthRefreshInterval:Ve,hostPowerMonitorActiveInterval:_(30),hostPowerMonitorIdleInterval:g(5),idleClientTtl:_(45),pauseWhenHostLocked:!0,pauseWhenHostLowPower:!0,pauseWhenClientLowPower:!0,pauseWhenOnBattery:!1},"battery-saver":{profile:`battery-saver`,automaticGitFetchInterval:_(0),providerHealthRefreshInterval:g(15),hostPowerMonitorActiveInterval:g(1),hostPowerMonitorIdleInterval:g(10),idleClientTtl:_(45),pauseWhenHostLocked:!0,pauseWhenHostLowPower:!0,pauseWhenClientLowPower:!0,pauseWhenOnBattery:!0}};function q(e){return Hn[e]}function Un(e){return e.profile===`custom`?e.baseProfile??`balanced`:e.profile}function Wn(e){let t=Un(e),n=Hn[t],r=e.profile===`custom`?e.overrides:{};return{profile:t,automaticGitFetchInterval:r.automaticGitFetchInterval??n.automaticGitFetchInterval,providerHealthRefreshInterval:r.providerHealthRefreshInterval??n.providerHealthRefreshInterval,hostPowerMonitorActiveInterval:r.hostPowerMonitorActiveInterval??n.hostPowerMonitorActiveInterval,hostPowerMonitorIdleInterval:r.hostPowerMonitorIdleInterval??n.hostPowerMonitorIdleInterval,idleClientTtl:r.idleClientTtl??n.idleClientTtl,pauseWhenHostLocked:r.pauseWhenHostLocked??n.pauseWhenHostLocked,pauseWhenHostLowPower:r.pauseWhenHostLowPower??n.pauseWhenHostLowPower,pauseWhenClientLowPower:r.pauseWhenClientLowPower??n.pauseWhenClientLowPower,pauseWhenOnBattery:r.pauseWhenOnBattery??n.pauseWhenOnBattery}}function J(e,t){return r(e)===r(t)}function Gn(e,t){return J(e.automaticGitFetchInterval,t.automaticGitFetchInterval)&&J(e.providerHealthRefreshInterval,t.providerHealthRefreshInterval)&&J(e.hostPowerMonitorActiveInterval,t.hostPowerMonitorActiveInterval)&&J(e.hostPowerMonitorIdleInterval,t.hostPowerMonitorIdleInterval)&&J(e.idleClientTtl,t.idleClientTtl)&&e.pauseWhenHostLocked===t.pauseWhenHostLocked&&e.pauseWhenHostLowPower===t.pauseWhenHostLowPower&&e.pauseWhenClientLowPower===t.pauseWhenClientLowPower&&e.pauseWhenOnBattery===t.pauseWhenOnBattery}function Kn(e){if(e.profile!==`custom`)return{schemaVersion:1,profile:e.profile,overrides:{}};let t=Wn(e),n=[Un(e),`balanced`,`performance`,`battery-saver`];for(let e of n)if(Gn(t,Hn[e]))return{schemaVersion:1,profile:e,overrides:{}};let r=Un(e),i=Hn[r];return{schemaVersion:1,profile:`custom`,baseProfile:r,overrides:{...J(t.automaticGitFetchInterval,i.automaticGitFetchInterval)?{}:{automaticGitFetchInterval:t.automaticGitFetchInterval},...J(t.providerHealthRefreshInterval,i.providerHealthRefreshInterval)?{}:{providerHealthRefreshInterval:t.providerHealthRefreshInterval},...J(t.hostPowerMonitorActiveInterval,i.hostPowerMonitorActiveInterval)?{}:{hostPowerMonitorActiveInterval:t.hostPowerMonitorActiveInterval},...J(t.hostPowerMonitorIdleInterval,i.hostPowerMonitorIdleInterval)?{}:{hostPowerMonitorIdleInterval:t.hostPowerMonitorIdleInterval},...J(t.idleClientTtl,i.idleClientTtl)?{}:{idleClientTtl:t.idleClientTtl},...t.pauseWhenHostLocked===i.pauseWhenHostLocked?{}:{pauseWhenHostLocked:t.pauseWhenHostLocked},...t.pauseWhenHostLowPower===i.pauseWhenHostLowPower?{}:{pauseWhenHostLowPower:t.pauseWhenHostLowPower},...t.pauseWhenClientLowPower===i.pauseWhenClientLowPower?{}:{pauseWhenClientLowPower:t.pauseWhenClientLowPower},...t.pauseWhenOnBattery===i.pauseWhenOnBattery?{}:{pauseWhenOnBattery:t.pauseWhenOnBattery}}}}function qn(e){let t={schemaVersion:1,profile:xe,overrides:{}},n=e.backgroundActivity.profile===t.profile&&e.backgroundActivity.baseProfile===void 0&&Object.keys(e.backgroundActivity.overrides).length===0,i=e.backgroundActivityProfile,a=i!==`balanced`||r(e.automaticGitFetchInterval)!==r(Ae)||r(e.providerHealthRefreshInterval)!==r(Ve);return Wn(n&&a?{schemaVersion:1,profile:r(e.automaticGitFetchInterval)===r(q(i).automaticGitFetchInterval)&&r(e.providerHealthRefreshInterval)===r(q(i).providerHealthRefreshInterval)?i:`custom`,baseProfile:i,overrides:{...r(e.automaticGitFetchInterval)===r(q(i).automaticGitFetchInterval)?{}:{automaticGitFetchInterval:e.automaticGitFetchInterval},...r(e.providerHealthRefreshInterval)===r(q(i).providerHealthRefreshInterval)?{}:{providerHealthRefreshInterval:e.providerHealthRefreshInterval}}}:e.backgroundActivity)}function Jn(e){let t=qn(e);return Kn({schemaVersion:1,profile:`custom`,baseProfile:t.profile,overrides:{automaticGitFetchInterval:t.automaticGitFetchInterval,providerHealthRefreshInterval:t.providerHealthRefreshInterval,hostPowerMonitorActiveInterval:t.hostPowerMonitorActiveInterval,hostPowerMonitorIdleInterval:t.hostPowerMonitorIdleInterval,idleClientTtl:t.idleClientTtl,pauseWhenHostLocked:t.pauseWhenHostLocked,pauseWhenHostLowPower:t.pauseWhenHostLowPower,pauseWhenClientLowPower:t.pauseWhenClientLowPower,pauseWhenOnBattery:t.pauseWhenOnBattery}})}var Yn=Vn(De);a(Yn);function Xn(e,t){let n=e.providerInstances[t.instanceId];return n===void 0?Se(t.instanceId):he(n)}var Zn=[`codex`,`claudeAgent`,`cursor`,`grok`,`muse`,`pi`,`opencode`,`antigravity`].map(e=>Fe.make(e));function Qn(e,t,n){let r=[...Zn.map(e=>[Oe(e),e]),...n?.includeConfiguredInstances===!0?Object.entries(e).flatMap(([e,t])=>Zn.includes(t.driver)?[[Le.make(e),t.driver]]:[]):[]].find(([e,n])=>t(e,n));if(r===void 0)return null;let[i,a]=r,o=n?.defaultModelSelection,s=e[i]?.config;return o?.instanceId===i&&fe(s?.customModels).some(e=>e.slug===o.model)?o:{instanceId:i,model:ee[a]??se[a]??`gpt-6-luna`}}function $n(e,t,n){let r=e.sourceControlWriterModelSelection;if(!r||!He(e,n,r.instanceId))return e.textGenerationModelSelection;if(t===void 0)return r;let i=t.find(e=>e.instanceId===r.instanceId);return i?.enabled===!0&&Ee(i)&&be(i)?r:e.textGenerationModelSelection}function er(e,t,n){let r=e.reviewGuideModelSelection;if(r&&He(e,n,r.instanceId)){let e=t?.find(e=>e.instanceId===r.instanceId);if(t===void 0||e?.enabled===!0&&Ee(e)&&be(e))return r}return $n(e,t,n)}function tr(e,t={}){return{favorites:e.favorites??t.favorites??[],providerModelPreferences:e.providerModelPreferences??t.providerModelPreferences??{}}}function nr(e,t){let n=e.favorites===null&&(t.favorites?.length??0)>0?t.favorites:void 0,r=e.providerModelPreferences===null&&Object.keys(t.providerModelPreferences??{}).length>0?t.providerModelPreferences:void 0;return n===void 0&&r===void 0?null:{migrateModelPreferences:{...n===void 0?{}:{favorites:n},...r===void 0?{}:{providerModelPreferences:r}}}}var rr=new Set([`continueThreadsAfterServerUpdate`,`sidebarAutoSettleAfterDays`,`sidebarAutoSettleOnMerge`,`autoResumeLimitedThreads`,`snoozeLimitedThreads`,`newWorktreesStartFromOrigin`,`sourceControlWritingStyle`,`textGenerationModelSelection`]);function ir(e){let t={},n={};for(let[r,i]of Object.entries(e))rr.has(r)?t[r]=i:n[r]=i;return{sharedPatch:t,localPatch:n}}function ar(e,t,n,r=n,i=!1){let a=e.textGenerationModelSelection?.instanceId??r?.textGenerationModelSelection.instanceId;return!i&&e.textGenerationModelSelection&&(!n||a!==void 0&&(r?.providerInstances[a]?.driver??a)!==(n.providerInstances[a]?.driver??a)||!Xn(n,{...n.textGenerationModelSelection,...e.textGenerationModelSelection}))&&(e=pe(e,[`textGenerationModelSelection`])),t?.threadRestartContinuation===!0?e:pe(e,[`continueThreadsAfterServerUpdate`])}function or(e){return e.connection.phase===`connected`&&e.serverConfig?.environment.capabilities.threadAutoSettlement===!0}function sr(e){let t=e.atom(Pe(qe.pipe(i(e=>ue(e.state)))),{initialValue:Ze});return{stateAtom:t,stateValueAtom:n(e=>ie(me(e(t)),()=>Ze)).pipe(v(`relay-environment-discovery-value`)),refresh:Je(e,{label:`relay-environment-discovery:refresh`,concurrency:{mode:`singleFlight`,key:()=>`refresh`},execute:e=>qe.pipe(ce(e=>e.refresh))})}}var cr=sr(tt);function lr(e,t){return{...t,environmentId:e,label:t.entry.target.label,displayUrl:nt(t.entry),relayManaged:Ke(t.entry)}}function ur(){let e=(0,E.c)(7),t=h(S.catalogValueAtom),n=h(S.networkStatusValueAtom),r=h(kt.presentationsAtom),i;e[0]===r?i=e[1]:(i=[...r.entries()].map(dr),e[0]=r,e[1]=i);let a=i,o;return e[2]!==t.isReady||e[3]!==a||e[4]!==n||e[5]!==r?(o={isReady:t.isReady,networkStatus:n,environments:a,presentationById:r},e[2]=t.isReady,e[3]=a,e[4]=n,e[5]=r,e[6]=o):o=e[6],o}function dr(e){let[t,n]=e;return lr(t,n)}function fr(){return h(rt)}function pr(e){let t=(0,E.c)(3),{presentation:n}=Mt(e),r;return t[0]!==e||t[1]!==n?(r=e===null||n===null?null:lr(e,n),t[0]=e,t[1]=n,t[2]=r):r=t[2],r}function mr(){return pr(fr())}function hr(e){let t=(0,E.c)(2),n=st(e),r;return t[0]===n?r=t[1]:(r=re(n)?n.value.httpBaseUrl:null,t[0]=n,t[1]=r),r}function gr(){return h(cr.stateValueAtom)}function _r(){return h(At.environmentIdsAtom)}function vr(){return h(At.identitiesAtom)}function yr(){return h(At.pullRequestsSupportedAtom)}var br=`[CLIENT_SETTINGS]`,xr=new Set,Sr=new Set,Cr=Ce,Y=`pending`,X=null,wr=0,Tr=Promise.resolve(),Er=0;function Dr(){for(let e of xr)e()}function Or(){for(let e of Sr)e()}function Z(){return Cr}function kr(e){Cr=e,Dr()}function Ar(e){Y!==e&&(Y=e,Or())}function jr(e){return xr.add(e),Q().catch(()=>void 0),()=>{xr.delete(e)}}function Mr(){return Y===`ready`}function Nr(){return Y}function Pr(e){return Sr.add(e),Q().catch(()=>void 0),()=>{Sr.delete(e)}}async function Q(){if(Y===`ready`)return;if(X)return X;let e=wr;Ar(Y===`failed`||Y===`retrying`?`retrying`:`pending`);let t=(async()=>{try{let t=await cn().persistence.getClientSettings();if(e!==wr)return;t&&kr({...Ce,...t}),Ar(`ready`)}catch(t){throw e===wr&&Ar(`failed`),console.error(`${br} hydrate failed`,{operation:`hydrate`,...y(t)}),t}})().finally(()=>{X===t&&(X=null)});return X=t,X}var Fr=e=>cn().persistence.setClientSettings(e);function Ir(e){let t=Tr.then(e);return Tr=t.then(()=>void 0,()=>void 0),t}function Lr(e,t=Fr){let n=Y!==`ready`||Er>0;return n?Er+=1:kr({...Z(),...e}),Ir(async()=>{if(n)try{Y!==`ready`&&await Q(),kr({...Z(),...e})}finally{--Er}await t(Z())}).catch(e=>{console.error(`${br} persist failed`,{operation:`persist`,...y(e)})})}async function Rr(e,t=Fr){return Ir(async()=>{for(Y!==`ready`&&await Q();;){let n=Z(),r=e(n);if(await t(r),Z()===n)return kr(r),r}})}var zr=new Set(Ue(De.fields));function Br(e){let t={},n={};for(let[r,i]of Object.entries(e))zr.has(r)?t[r]=i:n[r]=i;return{serverPatch:t,clientPatch:n}}function Vr(){return Z()}function Hr(){return Q()}function Ur(){return(0,T.useSyncExternalStore)(Pr,Mr,Wr)}function Wr(){return!1}function Gr(){return(0,T.useSyncExternalStore)(Pr,Nr,Kr)}function Kr(){return`pending`}function $(){return(0,T.useSyncExternalStore)(jr,Z,qr)}function qr(){return Ce}function Jr(e,t){return{...t,...e,...tr(e,t)}}var Yr=new Set;function Xr(e,t){let n=(0,E.c)(8),r=$(),i=Ur(),a;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(a={reportFailure:!1},n[0]=a):a=n[0];let o=C(x.updateSettings,a),s,c;n[1]!==r||n[2]!==e||n[3]!==i||n[4]!==o||n[5]!==t?(s=()=>{if(!e||!t||!i||Yr.has(e))return;let n=nr(t,r);n&&(Yr.add(e),o({environmentId:e,input:{patch:n}}).finally(()=>Yr.delete(e)))},c=[r,e,i,o,t],n[1]=r,n[2]=e,n[3]=i,n[4]=o,n[5]=t,n[6]=s,n[7]=c):(s=n[6],c=n[7]),(0,T.useEffect)(s,c)}function Zr(e,t){let n=(0,E.c)(6),r=$(),i;n[0]!==r||n[1]!==e?(i=Jr(e,r),n[0]=r,n[1]=e,n[2]=i):i=n[2];let a=i,o;return n[3]!==a||n[4]!==t?(o=t?t(a):a,n[3]=a,n[4]=t,n[5]=o):o=n[5],o}function Qr(e){let t=(0,E.c)(3),n=$(),r;return t[0]!==e||t[1]!==n?(r=e?e(n):n,t[0]=e,t[1]=n,t[2]=r):r=t[2],r}function $r(e){return e.settingsHydrated?e.paletteThemeActive&&!e.paletteThemeAllowsArtwork&&e.mode===`artwork`?`pill`:e.mode:`none`}function ei(){let e=(0,E.c)(7),t=Ur(),n=$().environmentIdentificationMode,{resolvedTheme:r,theme:i,themeHalves:a}=Ln(),o=(0,T.useSyncExternalStore)(lt,wt,ti),s;if(e[0]!==n||e[1]!==o||e[2]!==r||e[3]!==t||e[4]!==i||e[5]!==a){let c=dt(i,a,r),l=St(c);s=$r({mode:n,settingsHydrated:t,paletteThemeActive:o!==null||l!==null,paletteThemeAllowsArtwork:o??mt(c)}),e[0]=n,e[1]=o,e[2]=r,e[3]=t,e[4]=i,e[5]=a,e[6]=s}else s=e[6];return s}function ti(){return null}async function ni(e,t){return(e.favorites===null||e.providerModelPreferences===null)&&await Hr(),{...nr(e,Vr()),...t}}function ri(e){let t=(0,E.c)(6),n;t[0]===e?n=t[1]:(n=e?x.settingsValueAtom(e):ai,t[0]=e,t[1]=n);let r=h(n),i=C(x.updateSettings,`model preferences update`),a;return t[2]!==e||t[3]!==i||t[4]!==r?(a=async t=>{if(!e||!r)return;let n;try{n=await ni(r,t)}catch{b.add({type:`error`,title:`Model preferences not saved`,description:`Could not load saved model preferences. Try again.`});return}return i({environmentId:e,input:{patch:n}})},t[2]=e,t[3]=i,t[4]=r,t[5]=a):a=t[5],a}function ii(e){let t=(0,T.use)(_e),n=(0,T.useRef)(new Map),r=ri(e);return(0,T.useCallback)(async(i,a)=>{if(!e)return;let o=x.settingsValueAtom(e),s=t.get(o);if(!s)return;if(s.favorites===null)try{await Hr()}catch{b.add({type:`error`,title:`Favorites not saved`,description:`Could not load saved model preferences. Try again.`});return}let c=t.get(o)??s,l=tr(c,Vr()).favorites,u=JSON.stringify([e,i,a]),d=n.current.get(u),f={favorite:!(d&&(d.pending||d.settings.favorites===c.favorites)?d.favorite:l.some(e=>e.provider===i&&e.model===a)),settings:c,pending:!0};n.current.set(u,f);try{let e=await r({setModelFavorites:[{provider:i,model:a,favorite:f.favorite}]});e&&Ge(e)&&t.get(o)?.favorites===c.favorites&&(f.pending=!1)}finally{f.pending&&n.current.get(u)===f&&(d&&!d.pending&&t.get(o)?.favorites===d.settings.favorites?n.current.set(u,d):n.current.delete(u))}},[e,t,r])}var ai=n(null);function oi(e){let t=(0,E.c)(5),n;t[0]===e?n=t[1]:(n=e?x.settingsValueAtom(e):ai,t[0]=e,t[1]=n);let r=h(n),i=$();Xr(e,r);let a=r??Te,o;return t[2]!==i||t[3]!==a?(o=tr(a,i),t[2]=i,t[3]=a,t[4]=o):o=t[4],o}function si(e,t){let n=(0,E.c)(2),r;n[0]===e?r=n[1]:(r=x.settingsValueAtom(e),n[0]=e,n[1]=r);let i=h(r);return Xr(e,i),Zr(i??Te,t)}function ci(e){let t=(0,E.c)(4),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={reportFailure:!1},t[0]=n):n=t[0];let r=C(x.mutateProviderInstance,n),i;return t[1]!==e||t[2]!==r?(i=(t,n)=>r({environmentId:e,input:{patch:n===void 0?{}:n,providerInstanceMutation:t}}),t[1]=e,t[2]=r,t[3]=i):i=t[3],i}function li(e){let t=mr(),n=h(it);return Xr(t?.environmentId??null,t?.serverConfig?.settings??null),Zr(n,e)}var ui=`This setting is saved on a server, and the hosted app is not anchored to one. Change it from the desktop app or from the server's own address.`;function di(){let e=(0,E.c)(2),t=mr(),n;return e[0]===t?n=e[1]:(n=t!==null||!et(),e[0]=t,e[1]=n),n}function fi(e){let t=(0,E.c)(3),r=e!==void 0&&e,{environments:i}=ur(),a;return t[0]!==i||t[1]!==r?(a=n(e=>i.filter(or).flatMap(t=>{let n=e(ct.sessionStateAtom(t.environmentId));if(r&&n._tag===`Initial`)return[t.environmentId];let i=n._tag===`Failure`?null:m(me(n));return i!==null&&je(i,`settings:write`)?[t.environmentId]:[]})),t[0]=i,t[1]=r,t[2]=a):a=t[2],h(a)}function pi(e){let t=(0,E.c)(10);at(e,s);let n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={label:`server settings update`,reportFailure:!1},t[0]=n):n=t[0];let r=C(x.updateSettings,n),{environments:i}=ur(),a;t[1]!==i||t[2]!==r?(a=async e=>{let t=await r(e);if(t._tag===`Failure`&&!Ye(t)){let n=i.find(t=>t.environmentId===e.environmentId)?.label??e.environmentId,r=Qe(t);b.add({type:`error`,title:`Setting not saved`,description:`Could not save on ${n}: ${r instanceof Error?r.message:`The save failed. Try reconnecting and saving again.`}`})}return t},t[1]=i,t[2]=r,t[3]=a):a=t[3];let o=a,l=fi(!0),u;return t[4]!==e||t[5]!==i||t[6]!==r||t[7]!==o||t[8]!==l?(u=t=>{let{serverPatch:n,clientPatch:a}=Br(t),s=e===null||c(n).every(t=>ot(e,t));if(Object.keys(n).length>0&&!s&&b.add({type:`warning`,title:`Setting not saved`,description:`This connection lacks permission to change settings on ${i.find(t=>t.environmentId===e)?.label??`the selected environment`}.`}),Object.keys(n).length>0&&s){let{sharedPatch:t,localPatch:a}=ir(n),s=vi;if(Object.keys(a).length>0&&(e?o({environmentId:e,input:{patch:a}}):s()),Object.keys(t).length>0){let n=i.find(t=>t.environmentId===e)?.serverConfig?.settings,a=new Set(l);e&&a.add(e);let o=[],u=[];for(let r of a){let a=i.find(e=>e.environmentId===r),s=ar(t,a?.serverConfig?.environment.capabilities,a?.serverConfig?.settings,n,r===e);if(Object.keys(s).length!==0){if(p.get(ct.sessionStateAtom(r))._tag!==`Initial`&&!c(t).every(e=>ot(r,e))){u.push(a?.label??r);continue}o.push({environmentId:r,input:{patch:s}})}}o.length===0?s(u.length>0?`This connection lacks permission to change settings on ${u.join(`, `)}.`:a.size>0?`Update older servers to save this setting.`:void 0):Promise.all(o.map(async e=>({label:i.find(t=>t.environmentId===e.environmentId)?.label??e.environmentId,result:await r(e)}))).then(mi)}}Object.keys(a).length>0&&Lr(a)},t[4]=e,t[5]=i,t[6]=r,t[7]=o,t[8]=l,t[9]=u):u=t[9],u}function mi(e){let t=e.flatMap(_i);if(t.length===0)return;let n=e.filter(gi).map(hi);b.add({type:`error`,title:n.length>0?`Setting saved on some environments`:`Setting not saved`,description:[...t,...n.length>0?[`Saved on ${n.join(`, `)}.`]:[]].join(`
|
|
2
|
+
`)})}function hi(e){let{label:t}=e;return t}function gi(e){let{result:t}=e;return t._tag===`Success`}function _i(e){let{label:t,result:n}=e;if(n._tag!==`Failure`||Ye(n))return[];let r=Qe(n);return[`Could not save on ${t}: ${r instanceof Error?r.message:`The save failed. Try reconnecting and saving again.`}`]}function vi(e){let t=e===void 0?ui:e;return b.add({type:`warning`,title:`Setting not saved`,description:t})}function yi(e){return pi(e)}function bi(){return pi(mr()?.environmentId??null)}function xi(){return Si}function Si(e){return Lr(e)}export{Rt as $,gr as A,Vn as B,hr as C,mr as D,ur as E,Un as F,On as G,un as H,q as I,sn as J,Ln as K,Kn as L,Qn as M,er as N,fr as O,$n as P,It as Q,Jn as R,pr as S,_r as T,dn as U,W as V,Cn as W,Ht as X,Xt as Y,Bt as Z,ii as _,Lr as a,yi as b,Ur as c,oi as d,zt as et,si as f,di as g,li as h,Jr as i,Mt as it,cr as j,yr as k,Gr as l,ci as m,Hr as n,Lt as nt,Rr as o,Xr as p,cn as q,Vr as r,kt as rt,Qr as s,ui as t,Vt as tt,ei as u,xi as v,vr as w,bi as x,ri as y,qn as z};
|
|
3
|
+
//# sourceMappingURL=useSettings-D_OJJgNE.js.map
|
package/dist/client/assets/{useT3ConnectAuthPrompt-BgqISbBe.js → useT3ConnectAuthPrompt-BcMgBGvL.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{NE as e}from"./utils-
|
|
2
|
-
//# sourceMappingURL=useT3ConnectAuthPrompt-
|
|
1
|
+
import{NE as e}from"./utils-DqIvhFCT.js";import{t}from"./env-wK1YYxA8.js";import{i as n}from"./dist-CnDtgaa3.js";import{t as r}from"./authRedirect-DWE5a_T9.js";var i=e();function a(){let e=(0,i.c)(2),a=n(),o;return e[0]===a?o=e[1]:(o={authPrompt:null,openAuthPrompt:()=>{a.openSignIn(r(window.location.href,t))}},e[0]=a,e[1]=o),o}export{a as t};
|
|
2
|
+
//# sourceMappingURL=useT3ConnectAuthPrompt-BcMgBGvL.js.map
|