@p4code/cli 0.8.20 → 0.8.22
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/LICENSE +1 -1
- package/dist/{AcpMcpStdioBridge-BL9bAh79.mjs → AcpMcpStdioBridge-BuIIHL4p.mjs} +18 -18
- package/dist/{AcpMcpStdioBridge-DxwEM6O4.mjs → AcpMcpStdioBridge-BvUHCq9r.mjs} +1 -1
- package/dist/{Effect-B-zvTJgX.mjs → Effect-Dxd2t1f5.mjs} +34 -2
- package/dist/{Schema-inVr7S-v.mjs → Schema-CoZlakRf.mjs} +2 -2
- package/dist/{Stream-CX7G9D0M.mjs → Stream-CdSxHO_5.mjs} +2 -2
- package/dist/bin.mjs +4 -4
- package/dist/{binCli-BU4pyUVV.mjs → binCli-CfXLOppT.mjs} +3452 -2670
- package/dist/claude-history-worker.mjs +1 -1
- package/dist/{claudeHistoryWorker-BvaF6m2o.mjs → claudeHistoryWorker-js6Jgg9C.mjs} +2 -2
- package/dist/client/.vite/manifest.json +2221 -2221
- package/dist/client/assets/AlertDialogRoot-DCfR_LaK.js +2 -0
- package/dist/client/assets/{AnimatedHeight-B1LdeRxh.js → AnimatedHeight-DcrvwWWb.js} +2 -2
- package/dist/client/assets/{AuthSurfaceShell-Di1ASoMs.js → AuthSurfaceShell-CFBHG1UK.js} +2 -2
- package/dist/client/assets/{CSPContext-Bn8q5RdR.js → CSPContext-BP4s0CJv.js} +2 -2
- package/dist/client/assets/{ChatGptUsageButton-Ckccc0cE.js → ChatGptUsageButton-CoiZRjaS.js} +2 -2
- package/dist/client/assets/ChatMarkdown-C6I8N1IH.js +65 -0
- package/dist/client/assets/{CheckboxIndicator-DUUgNp1r.js → CheckboxIndicator-DcH9EpvK.js} +2 -2
- package/dist/client/assets/{CodexSetupSection.logic-BbXZAyvp.js → CodexSetupSection.logic-sXohw-MK.js} +2 -2
- package/dist/client/assets/{CollapsiblePanel-D1aZAbsh.js → CollapsiblePanel-FknKvWoA.js} +2 -2
- package/dist/client/assets/{ComboboxClear-CMNv82AR.js → ComboboxClear-RsGmZUJN.js} +2 -2
- package/dist/client/assets/{ComboboxGroupLabel-BqpdqndG.js → ComboboxGroupLabel-DO1lnPnr.js} +2 -2
- package/dist/client/assets/{CommandBlock-Da6pXLt_.js → CommandBlock-B5S9so33.js} +2 -2
- package/dist/client/assets/{ComposerPromptEditor-DxcWPWlA.js → ComposerPromptEditor-C7ZRV_6P.js} +5 -5
- package/dist/client/assets/{CompositeRoot-BP063J4d.js → CompositeRoot-DDZcK2m0.js} +2 -2
- package/dist/client/assets/{ConnectionStatusDot-DvalNlEr.js → ConnectionStatusDot-Bz5Ps6Bm.js} +2 -2
- package/dist/client/assets/{DevicePanel-DePWOu4d.js → DevicePanel-DmfTFNuU.js} +2 -2
- package/dist/client/assets/{DeviceSetup-BK7tjknq.js → DeviceSetup-Br_kHy6n.js} +2 -2
- package/dist/client/assets/{DialogTitle-OaePW-Ih.js → DialogTitle-Dr-LJLpq.js} +2 -2
- package/dist/client/assets/{DiffCommentAnnotation-BzohZvIj.js → DiffCommentAnnotation-FcSG-wBG.js} +2 -2
- package/dist/client/assets/{DiffFileTree-OcbtQyxq.js → DiffFileTree-IIdU6CqP.js} +2 -2
- package/dist/client/assets/{DiffPanel-BajglAZa.js → DiffPanel-CEx8f_mo.js} +2 -2
- package/dist/client/assets/{DiffWorkerPoolProvider--30q2unm.js → DiffWorkerPoolProvider-C_VbNhAr.js} +2 -2
- package/dist/client/assets/{EmbeddedDesign-BcPI7zAV.js → EmbeddedDesign-Hba9k7LF.js} +2 -2
- package/dist/client/assets/{EnvironmentMachineIcon-DszKXxD_.js → EnvironmentMachineIcon-b_kKEeAf.js} +2 -2
- package/dist/client/assets/{ExpandableText-hoL-6ubc.js → ExpandableText-anFaXhXF.js} +2 -2
- package/dist/client/assets/{FieldControl-DDVVfmpB.js → FieldControl-w2_zp1DT.js} +2 -2
- package/dist/client/assets/{FileDiff-DSxfw81M.js → FileDiff-B-9keGlb.js} +2 -2
- package/dist/client/assets/{FilePreviewPanel-jsWBRHEP.js → FilePreviewPanel-C1f_ibuL.js} +3 -3
- package/dist/client/assets/{FoldedSettingsSection-B66vyjYD.js → FoldedSettingsSection-gN3w1sSZ.js} +2 -2
- package/dist/client/assets/{FormContext-B0PXExmu.js → FormContext-BWWAKTFF.js} +2 -2
- package/dist/client/assets/{Icons-CX6xNdVb.js → Icons-DzTpHpn1.js} +2 -2
- package/dist/client/assets/Input-DCMTYdrA.js +2 -0
- package/dist/client/assets/{KeybindingsSettings.logic-6FRd2ilb.js → KeybindingsSettings.logic-D8LAdmvB.js} +2 -2
- package/dist/client/assets/{NoProjectsHero-BJh2xTW2.js → NoProjectsHero-CtzChQ7p.js} +2 -2
- package/dist/client/assets/{T3ConnectAccountPages-CZ221lRl.js → P4ConnectAccountPages-B3SBsg6B.js} +2 -2
- package/dist/client/assets/{T3ConnectSidebarSignIn-pHxwsU9J.js → P4ConnectSidebarSignIn-DKcaDv93.js} +2 -2
- package/dist/client/assets/PanelLayoutControls-CCYVBazN.js +216 -0
- package/dist/client/assets/{PierreEntryIcon-DqZ3rsf9.js → PierreEntryIcon-CjZ8gyJq.js} +2 -2
- package/dist/client/assets/{PopoverHandle-DRjGw1Yt.js → PopoverHandle-1bqR8KHF.js} +2 -2
- package/dist/client/assets/{PreviewPanel-BvQZWo4y.js → PreviewPanel-Kq4mVufQ.js} +2 -2
- package/dist/client/assets/{ProjectDefaultsSettings-DpMGLYiX.js → ProjectDefaultsSettings-DUCUj4oc.js} +2 -2
- package/dist/client/assets/{ProjectFavicon-C3ZH51Lw.js → ProjectFavicon-va5UQPLo.js} +3 -3
- package/dist/client/assets/{ProjectIconPickerDialog-R3JbSZVv.js → ProjectIconPickerDialog-CN2gK_o7.js} +2 -2
- package/dist/client/assets/{ProjectMonogram-IuYJI7zN.js → ProjectMonogram-B3Dkc8yq.js} +2 -2
- package/dist/client/assets/{ProviderAuthTerminal-C-Y-b2Id.js → ProviderAuthTerminal-BSIgib7h.js} +2 -2
- package/dist/client/assets/{ProviderModelPicker-DcDT2aJc.js → ProviderModelPicker-BrEkNDPF.js} +2 -2
- package/dist/client/assets/{ProviderSettingsForm-CPtnly6g.js → ProviderSettingsForm-D6zHGIeN.js} +2 -2
- package/dist/client/assets/{PullRequestCodeTab-CHzbe4Pg.js → PullRequestCodeTab-DA-5pWeg.js} +2 -2
- package/dist/client/assets/{ReadOnlySourcePreview-BdxBRo90.js → ReadOnlySourcePreview-BSCVTdYH.js} +2 -2
- package/dist/client/assets/{RenderErrorBoundary-DOhJQzqI.js → RenderErrorBoundary-yWjbnzsc.js} +2 -2
- package/dist/client/assets/{ScheduledTasksSettings-BhwaQrJM.js → ScheduledTasksSettings-B1bSNXTP.js} +3 -3
- package/dist/client/assets/{ScopedSwitch--Y2Q_Dkg.js → ScopedSwitch-D3fAHI1-.js} +2 -2
- package/dist/client/assets/{ScrollAreaCorner-Ck3L5tlH.js → ScrollAreaCorner-CNzfnpwK.js} +2 -2
- package/dist/client/assets/{SecretInput-UofV3Jxx.js → SecretInput-D7hYUoFA.js} +2 -2
- package/dist/client/assets/{SelectScrollUpArrow-C_YHAw_f.js → SelectScrollUpArrow-kQBsA9rk.js} +2 -2
- package/dist/client/assets/{SettingsPanels-rRn3RxRM.js → SettingsPanels-6SOZMWhg.js} +5 -5
- package/dist/client/assets/{SettingsPanels.logic-CSbITXNG.js → SettingsPanels.logic-CMErdEeV.js} +2 -2
- package/dist/client/assets/{SettingsScopeNotice-B7r3-bw2.js → SettingsScopeNotice-CyzbYUPJ.js} +2 -2
- package/dist/client/assets/ThemeEditorPanel-vZ4MSCBx.js +5 -0
- package/dist/client/assets/{ThreadTerminalDrawer-CYuLsPbc.js → ThreadTerminalDrawer-BU_DR6wu.js} +2 -2
- package/dist/client/assets/{TooltipViewport-B_Oz-gLq.js → TooltipViewport-CG7gtflQ.js} +2 -2
- package/dist/client/assets/{Virtualizer-ChNeVtXh.js → Virtualizer-CoK0zXAG.js} +2 -2
- package/dist/client/assets/{WorkspaceBreadcrumb-CpHuVRke.js → WorkspaceBreadcrumb-qAYKTgm8.js} +2 -2
- package/dist/client/assets/{WorkspacePageContainer-BQ0Bk5Qy.js → WorkspacePageContainer-D6i--Hwz.js} +2 -2
- package/dist/client/assets/{WorkspacePageHeader-Cx1gpU1l.js → WorkspacePageHeader-covOFYhv.js} +2 -2
- package/dist/client/assets/_chat-DMXSEEst.js +45 -0
- package/dist/client/assets/{_chat.index-CGo_2dVK.js → _chat.index-C3PnT6ae.js} +2 -2
- package/dist/client/assets/{_chat.new-B8h0E9bY.js → _chat.new-CxErZ7CC.js} +2 -2
- package/dist/client/assets/{_chat.pull-requests-C9e5UJiQ.js → _chat.pull-requests-w2FCKIZ8.js} +2 -2
- package/dist/client/assets/{abnfDiagram-VCTEODGH-BewL_eNL.js → abnfDiagram-VCTEODGH-CWxKS58m.js} +2 -2
- package/dist/client/assets/{alert-CNni4aGm.js → alert-DsgAHDNi.js} +2 -2
- package/dist/client/assets/architecture-7GRP2DOG-BVExhwPq.js +1 -0
- package/dist/client/assets/{architectureDiagram-5GKGNRK7-C9j-xrz2.js → architectureDiagram-5GKGNRK7-kc6KNP-H.js} +2 -2
- package/dist/client/assets/{assets-Co5XIu-W.js → assets-DW8sK93I.js} +2 -2
- package/dist/client/assets/{blockDiagram-I7D4REHJ-DSaqyAe3.js → blockDiagram-I7D4REHJ-CFJYOAbd.js} +2 -2
- package/dist/client/assets/{browserHistoryStore-C3MIb5y-.js → browserHistoryStore-DjDw15jq.js} +2 -2
- package/dist/client/assets/{browserLinkTarget-B0Nl9z4y.js → browserLinkTarget-Br8BmA6w.js} +2 -2
- package/dist/client/assets/{c4Diagram-7LVT6UL2-DCgzKaRE.js → c4Diagram-7LVT6UL2-Sxaodxxv.js} +2 -2
- package/dist/client/assets/channel-BLnKdGtk.js +2 -0
- package/dist/client/assets/{checkbox-BpAfakhx.js → checkbox-D33R1soh.js} +2 -2
- package/dist/client/assets/{chunk-4HAMMTFA-DstDTNNT.js → chunk-4HAMMTFA-CxocYFD0.js} +2 -2
- package/dist/client/assets/{chunk-75Z2AOVW-Dz-DtxrH.js → chunk-75Z2AOVW-CBCO5Noa.js} +2 -2
- package/dist/client/assets/{chunk-DU6HZSFF-Ll_1n6K5.js → chunk-DU6HZSFF-CEaklbmE.js} +2 -2
- package/dist/client/assets/{chunk-F27PBJKO-BhJS5B0M.js → chunk-F27PBJKO-Iw-0qjF9.js} +2 -2
- package/dist/client/assets/{chunk-GMAD6QVW-YF2_U_Rb.js → chunk-GMAD6QVW-CbDVrypn.js} +2 -2
- package/dist/client/assets/{chunk-GVQU2GXP-VQA2Ub_O.js → chunk-GVQU2GXP-BEqmpgLD.js} +2 -2
- package/dist/client/assets/{chunk-IMKFNOWR-CUKSWZZL.js → chunk-IMKFNOWR-bgZmQWS5.js} +2 -2
- package/dist/client/assets/{chunk-L3NEJ4N5-B1mYJGkp.js → chunk-L3NEJ4N5-LW_IXl13.js} +2 -2
- package/dist/client/assets/{chunk-OSK3NFVY-DeMda-I1.js → chunk-OSK3NFVY-DvGdSD7J.js} +2 -2
- package/dist/client/assets/{chunk-P2QGCYS3-Cw7ng-Rc.js → chunk-P2QGCYS3-BAXEcEik.js} +2 -2
- package/dist/client/assets/{chunk-POPQ4Y6H-UV50oooU.js → chunk-POPQ4Y6H-yM2kH99r.js} +2 -2
- package/dist/client/assets/{chunk-PWAF6VOD-DN41TR2O.js → chunk-PWAF6VOD-B19ZyrVH.js} +2 -2
- package/dist/client/assets/{chunk-SHT3W25Y-wined05I.js → chunk-SHT3W25Y-BhcwXJOc.js} +2 -2
- package/dist/client/assets/{chunk-SVP7TREG-Cwfsds3m.js → chunk-SVP7TREG-B9xbRF9R.js} +2 -2
- package/dist/client/assets/{chunk-TICWLB2K-COhBRrwy.js → chunk-TICWLB2K-D_VEGQbw.js} +2 -2
- package/dist/client/assets/classDiagram-ZZMXUADV-B839piSM.js +2 -0
- package/dist/client/assets/classDiagram-v2-VYDZK3BY-B839piSM.js +2 -0
- package/dist/client/assets/{color-picker-KVitc2gM.js → color-picker-D3b0sEoy.js} +2 -2
- package/dist/client/assets/{combobox-DiUoVqyf.js → combobox-DzFRsaks.js} +2 -2
- package/dist/client/assets/{command-CMR1n6Uf.js → command-IDMJ6pXc.js} +2 -2
- package/dist/client/assets/{composer-logic-BcXfvdPq.js → composer-logic-CEsP6SV6.js} +2 -2
- package/dist/client/assets/{composerDraftUploads-CDI8NeKM.js → composerDraftUploads-Qq0xOGEc.js} +2 -2
- package/dist/client/assets/{connect-BmEDcR9c.js → connect-BTIPE2au.js} +2 -2
- package/dist/client/assets/{connect-agent-CfaBrLrx.js → connect-agent-hbkOBaFx.js} +2 -2
- package/dist/client/assets/{cynefin-OW5HDTMX-NISsUCRb.js → cynefin-OW5HDTMX-CWOcHmwk.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-5FMLGOSQ-CcmIsbpK.js → cynefinDiagram-5FMLGOSQ-ksIfZeWS.js} +2 -2
- package/dist/client/assets/{dagre-GXQ25YYZ-UITp4lya.js → dagre-GXQ25YYZ-D7qz-Azr.js} +2 -2
- package/dist/client/assets/{design-C4-KEBUo.js → design-B7V20I1i.js} +2 -2
- package/dist/client/assets/{device-BcFks_r6.js → device-DX-G6J1j.js} +2 -2
- package/dist/client/assets/{diagram-S7CK7UJ4-DGjl3T82.js → diagram-S7CK7UJ4-IBhHReDK.js} +2 -2
- package/dist/client/assets/{diagram-UQ7AKVKN-CXGDugDN.js → diagram-UQ7AKVKN-EX7tFJEV.js} +2 -2
- package/dist/client/assets/{diagram-VSXAHHWV-ClIfV-Eb.js → diagram-VSXAHHWV-BEHOoBER.js} +2 -2
- package/dist/client/assets/{diagram-VX7I27RA-CcyEAXBh.js → diagram-VX7I27RA-Df_ThjhC.js} +2 -2
- package/dist/client/assets/{diagram-Z3DM3KII-B4b4azfJ.js → diagram-Z3DM3KII-DudywHX4.js} +2 -2
- package/dist/client/assets/{dialog-D--IO2tX.js → dialog-YpQOq7Ug.js} +2 -2
- package/dist/client/assets/{diffRendering-CCO51SHu.js → diffRendering-CgLbOp0J.js} +2 -2
- package/dist/client/assets/{discovery-list-E9mW3ie9.js → discovery-list-CnlrZrDo.js} +2 -2
- package/dist/client/assets/{dist-BUfo2bac.js → dist-usNgCtd_.js} +3 -3
- package/dist/client/assets/{draft-input-BqhTvFTz.js → draft-input-DW6EgVbF.js} +2 -2
- package/dist/client/assets/{duoViewer-DrRt1X-q.js → duoViewer-CgVOZcYe.js} +2 -2
- package/dist/client/assets/{dynamic-BHunf18B.js → dynamic-C1qIL2Wy.js} +2 -2
- package/dist/client/assets/{ebnfDiagram-PWID7BFC-C4BXGn4k.js → ebnfDiagram-PWID7BFC-DPJg2C3n.js} +2 -2
- package/dist/client/assets/{embeddedScripts-3mOBT50V.js → embeddedScripts-CAZM4r8Y.js} +2 -2
- package/dist/client/assets/{empty-IIGW45Hv.js → empty-QSN6WiRO.js} +2 -2
- package/dist/client/assets/entities-Bj5ceyfn.js +2 -0
- package/dist/client/assets/{erDiagram-RLTQ6QDP-DCS17tz_.js → erDiagram-RLTQ6QDP-BySDEjHG.js} +2 -2
- package/dist/client/assets/eventmodeling-NTZA5JFV-CrSSBuUT.js +1 -0
- package/dist/client/assets/{fileLinks-Xjn6JEGT.js → fileLinks-ShhGM_AF.js} +2 -2
- package/dist/client/assets/{fileTreeExpansion-tsD7A-Z5.js → fileTreeExpansion-DZnEBuaB.js} +5 -5
- package/dist/client/assets/flowDiagram-HODETNUW-GdATwCAd.js +1 -0
- package/dist/client/assets/{ganttDiagram-EL5Y4UJY-BGFtO7uE.js → ganttDiagram-EL5Y4UJY-CJAhE7we.js} +2 -2
- package/dist/client/assets/{getDiffFileInput-DFWDPe9O.js → getDiffFileInput-BxuEGdnM.js} +2 -2
- package/dist/client/assets/{gitGraph-4MIJSDKK-DZeZydG5.js → gitGraph-4MIJSDKK-BqKoI8Rd.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-WWUBYQGX-3uL4kQuc.js → gitGraphDiagram-WWUBYQGX-BPFwoaRw.js} +2 -2
- package/dist/client/assets/{guideRunStore-CGkdBBWi.js → guideRunStore-CYD68wqk.js} +2 -2
- package/dist/client/assets/{htmlRender-n-z4ejOb.js → htmlRender-p6atQGoW.js} +2 -2
- package/dist/client/assets/{index-CB8eLeeR.js → index-CnQWjeBY.js} +3 -3
- package/dist/client/assets/{info-A6RAGUB7-C3L7Iy2t.js → info-A6RAGUB7-R8j64K2s.js} +1 -1
- package/dist/client/assets/{infoDiagram-27XIBGKW-B8XmKHVk.js → infoDiagram-27XIBGKW-DFqL9n-v.js} +2 -2
- package/dist/client/assets/{input-DX_wpYEr.js → input-Df_UyHLk.js} +2 -2
- package/dist/client/assets/{input-group-B7App4HX.js → input-group-CpRPTpIU.js} +2 -2
- package/dist/client/assets/{ishikawaDiagram-5VMMS53U-DqYb5ghg.js → ishikawaDiagram-5VMMS53U-C-786VMl.js} +2 -2
- package/dist/client/assets/{journeyDiagram-3NMN7TZE-f4xls24M.js → journeyDiagram-3NMN7TZE-lzAoDD4e.js} +2 -2
- package/dist/client/assets/{kanban-definition-UXKFOSKX-C4hiNifc.js → kanban-definition-UXKFOSKX-CJDCWAxz.js} +2 -2
- package/dist/client/assets/{kbd-CBsCsK1C.js → kbd-BWmfbdyt.js} +2 -2
- package/dist/client/assets/{keybindings-DQLn36Qh.js → keybindings-Cwx4RZou.js} +2 -2
- package/dist/client/assets/{lazyRouteComponent-F8XJwdjp.js → lazyRouteComponent-AWcDof8d.js} +2 -2
- package/dist/client/assets/{line-CAwl86yA.js → line-BV7EkscB.js} +2 -2
- package/dist/client/assets/{link-Dsk-mMeT.js → link-ymnjoepm.js} +2 -2
- package/dist/client/assets/{linkedPrompt-D3xnUYyG.js → linkedPrompt-D1v0zLjD.js} +2 -2
- package/dist/client/assets/{main-B3UqEpE9.css → main-Byysx0nX.css} +1 -1
- package/dist/client/assets/main-D8FWUaO_.js +26 -0
- package/dist/client/assets/{mediaReference-DFBMieZe.js → mediaReference-DjHCSaNZ.js} +2 -2
- package/dist/client/assets/{mediaSource-DwE2MD82.js → mediaSource-DrVcMaQl.js} +2 -2
- package/dist/client/assets/{mermaid-parser.core-CQTH3UnZ.js → mermaid-parser.core-dhHCExtt.js} +4 -4
- package/dist/client/assets/{mermaid.core-D6j4Oepc.js → mermaid.core-DixI3w-9.js} +5 -5
- package/dist/client/assets/{mindmap-definition-YA3MSWOX-mUjULOXx.js → mindmap-definition-YA3MSWOX-BHehI_9I.js} +2 -2
- package/dist/client/assets/{number-field-CO0djGoZ.js → number-field-BHWzsgFF.js} +2 -2
- package/dist/client/assets/{observeResize-DnTxIA8M.js → observeResize-uogErzin.js} +2 -2
- package/dist/client/assets/{onboarding-BWsXQF-8.js → onboarding-BkSIwdaJ.js} +2 -2
- package/dist/client/assets/{openFileInPreview-BjXtA6rm.js → openFileInPreview-3vlmqdKv.js} +2 -2
- package/dist/client/assets/{p4ProjectFile-Cit38tzd.js → p4ProjectFile-B9fwmcbM.js} +2 -2
- package/dist/client/assets/{packet-AYTQ26CC-B6oJlnoT.js → packet-AYTQ26CC-DhFsyjVR.js} +1 -1
- package/dist/client/assets/{pair-BOAY3H4W.js → pair-DJbA4cVs.js} +2 -2
- package/dist/client/assets/{pegDiagram-XKGWAZYB-MKsaJe-e.js → pegDiagram-XKGWAZYB-DBKpIU8U.js} +2 -2
- package/dist/client/assets/{phoneViewer-DhI2RNKg.js → phoneViewer-CywOkDco.js} +2 -2
- package/dist/client/assets/{pie-WAS4IAKB-CVr4vbdT.js → pie-WAS4IAKB-cW3as8Lm.js} +1 -1
- package/dist/client/assets/{pieDiagram-E7YTZNPT-CU60SxBF.js → pieDiagram-E7YTZNPT-CuM-4V4_.js} +2 -2
- package/dist/client/assets/{pierre-icons-B278VAke.js → pierre-icons-Bhwlc2rO.js} +22 -22
- package/dist/client/assets/{popover-BJ6nvlLO.js → popover-2GkuSL2i.js} +2 -2
- package/dist/client/assets/{preview-Cf8NQ1hB.js → preview-BnLuRquy.js} +2 -2
- package/dist/client/assets/{preview-BPE4Ptwy.js → preview-DWVmLubs.js} +2 -2
- package/dist/client/assets/{previewMiniPlayerStore-C-S6Z_7R.js → previewMiniPlayerStore-B2cko9-z.js} +2 -2
- package/dist/client/assets/{primary-C8ChofNZ.js → primary-CKEI970r.js} +2 -2
- package/dist/client/assets/primaryCloudLinkState-CwxbxrZn.js +2 -0
- package/dist/client/assets/projectFilesQueryState-45r9sIZp.js +2 -0
- package/dist/client/assets/{projectScriptEditor-jVLgvupi.js → projectScriptEditor-CI1LZs9V.js} +2 -2
- package/dist/client/assets/{providerSkills-CQC96ZMr.js → providerSkills-OICI2srI.js} +2 -2
- package/dist/client/assets/{pullRequestDetail.logic-CM8xaqJx.js → pullRequestDetail.logic-DT8Qo5OA.js} +3 -3
- package/dist/client/assets/{pullRequestIcons-BjW5TUsG.js → pullRequestIcons-BBzWaymE.js} +2 -2
- package/dist/client/assets/{pullRequestReviewStore-CfDcNEFp.js → pullRequestReviewStore-DKeU327h.js} +2 -2
- package/dist/client/assets/{pullRequests-BhR0uCs5.js → pullRequests-DLPX2CY-.js} +2 -2
- package/dist/client/assets/{quadrantDiagram-AXDQQJYC-YO_Vicsa.js → quadrantDiagram-AXDQQJYC-DSJ5VFnE.js} +2 -2
- package/dist/client/assets/queries-lVyDrFzk.js +2 -0
- package/dist/client/assets/{query-MZn8giyP.js → query-tgXMuDtS.js} +2 -2
- package/dist/client/assets/{radar-RG4KPBEZ-C7MHhieK.js → radar-RG4KPBEZ-CfIGvIx_.js} +1 -1
- package/dist/client/assets/{radio-group-Ca6IMyWa.js → radio-group-CJu78gKo.js} +2 -2
- package/dist/client/assets/{railroad-74A4TZTK-SZuHkN8h.js → railroad-74A4TZTK-DB4Av5dd.js} +1 -1
- package/dist/client/assets/railroad-abnf-HS5TGJTU-Ce_EhWE2.js +1 -0
- package/dist/client/assets/railroad-ebnf-LZEXJU2U-BWrImE-J.js +1 -0
- package/dist/client/assets/railroad-peg-WCYAUIDC-BydBUlqT.js +1 -0
- package/dist/client/assets/{railroadDiagram-O6MQD6OU-Da7fqGWf.js → railroadDiagram-O6MQD6OU-cpv2Uyk5.js} +2 -2
- package/dist/client/assets/{renderScheduler-lUltsq6V.js → renderScheduler-h5pQXGNH.js} +2 -2
- package/dist/client/assets/{requirementDiagram-BXWQKSXE-i46-nz91.js → requirementDiagram-BXWQKSXE-DYwMIoLP.js} +2 -2
- package/dist/client/assets/rightPanelStore-Csibei0O.js +2 -0
- package/dist/client/assets/{runtime-BunkcrGh.js → runtime-DATbE5vH.js} +5 -5
- package/dist/client/assets/runtime-Dks8Wo5P.js +2 -0
- package/dist/client/assets/{runtimeModeConfig-CTQ97M7F.js → runtimeModeConfig-n1vq0Zzd.js} +2 -2
- package/dist/client/assets/{sankeyDiagram-P5KCCOFB-CZzNX2hl.js → sankeyDiagram-P5KCCOFB-BqmXJBYG.js} +2 -2
- package/dist/client/assets/{scheduledTasksSettings.logic-CkbvhKba.js → scheduledTasksSettings.logic-Cg8SF9mr.js} +2 -2
- package/dist/client/assets/{scroll-area-BStafc_O.js → scroll-area-0-l4q4Pk.js} +2 -2
- package/dist/client/assets/{select-BIK-KVyd.js → select-Dhapqr3j.js} +2 -2
- package/dist/client/assets/{sequenceDiagram-WJ2MYXX4-32aHdDFl.js → sequenceDiagram-WJ2MYXX4-h3AJox3t.js} +2 -2
- package/dist/client/assets/{server-COuN0pwg.js → server-rxH1493J.js} +2 -2
- package/dist/client/assets/{session-seR2OUj0.js → session-Bgs0dTwK.js} +2 -2
- package/dist/client/assets/session-logic-BuYRdtPc.js +26 -0
- package/dist/client/assets/{settings-CiPM9fHt.js → settings-CGf9Ad5Y.js} +2 -2
- package/dist/client/assets/{settings.appearance-B91nMGep.js → settings.appearance-DV608fbL.js} +2 -2
- package/dist/client/assets/settings.archived-Cav4CAd_.js +2 -0
- package/dist/client/assets/{settings.computer-use-eCFCpqRb.js → settings.computer-use-C3SE4DHj.js} +2 -2
- package/dist/client/assets/settings.connections-C9Kh1b2k.js +2 -0
- package/dist/client/assets/{settings.data-controls-BGHuOOAF.js → settings.data-controls-DjgZVIMy.js} +2 -2
- package/dist/client/assets/{settings.decisions-DbzSG84P.js → settings.decisions-z3RVOG7-.js} +2 -2
- package/dist/client/assets/{settings.designs-DzW0uzhe.js → settings.designs-DgLVIZOE.js} +2 -2
- package/dist/client/assets/{settings.diagnostics-Vw2M9wTQ.js → settings.diagnostics-CaXx9YEU.js} +2 -2
- package/dist/client/assets/{settings.general-CfY4GAoq.js → settings.general-BOpvFj1F.js} +2 -2
- package/dist/client/assets/{settings.integrations-C0hzJpnr.js → settings.integrations-MHjX-SLC.js} +2 -2
- package/dist/client/assets/{settings.keybindings-QcHgKHxE.js → settings.keybindings-D78CWKIy.js} +2 -2
- package/dist/client/assets/{settings.open-source-licenses-CVPaYBdL.js → settings.open-source-licenses-BhpBR1nY.js} +2 -2
- package/dist/client/assets/{settings.plugins-Db2nz9n9.js → settings.plugins-d9-jrUr-.js} +3 -3
- package/dist/client/assets/{settings.projects-Bxf_7lyF.js → settings.projects-BiDMtruF.js} +3 -3
- package/dist/client/assets/{settings.providers-XFKxTM8C.js → settings.providers-BarMZxaG.js} +3 -3
- package/dist/client/assets/{settings.scheduled-tasks-B7OyO0sP.js → settings.scheduled-tasks-BA_O1-Fn.js} +2 -2
- package/dist/client/assets/{settings.snap-shot-BabiAbdd.js → settings.snap-shot-Crh49RtQ.js} +2 -2
- package/dist/client/assets/{settings.source-control-BKphaihu.js → settings.source-control-DIrrX9Dt.js} +2 -2
- package/dist/client/assets/{settings.storage-CUhQEKB5.js → settings.storage-D6vDu4vG.js} +2 -2
- package/dist/client/assets/settingsLayout-BQsOdImg.js +3 -0
- package/dist/client/assets/{sidebar-CilourkR.js → sidebar-DTT0HQ9J.js} +2 -2
- package/dist/client/assets/{sidebarProjectGrouping-BVhK5qEe.js → sidebarProjectGrouping-JqsedUb6.js} +2 -2
- package/dist/client/assets/{skeleton-DoQ8WJ33.js → skeleton-D-FcvmF0.js} +2 -2
- package/dist/client/assets/{sourceControl-CZSeEF87.js → sourceControl-CrjTZJC-.js} +2 -2
- package/dist/client/assets/{sourceControlClients-gLUbjqCT.js → sourceControlClients-DYQ3gMZ2.js} +2 -2
- package/dist/client/assets/{spinner-dBHTxMdw.js → spinner-AJeHmaWN.js} +2 -2
- package/dist/client/assets/{standalone-page-7u6OMfTi.js → standalone-page-Df29sgRU.js} +2 -2
- package/dist/client/assets/{stateDiagram-D77RDMKH-DzKAnfb5.js → stateDiagram-D77RDMKH-C0KiABVq.js} +2 -2
- package/dist/client/assets/stateDiagram-v2-MP3YSRHH-DlcRyn96.js +2 -0
- package/dist/client/assets/{swimlanes-42K2YHIH-CQb8er0I.js → swimlanes-42K2YHIH-BdAWIkuy.js} +2 -2
- package/dist/client/assets/swimlanesDiagram-VR7AAH4N-lbxQDJ07.js +9 -0
- package/dist/client/assets/{terminal-links-DaTgSxq7.js → terminal-links-BjKL3dH7.js} +2 -2
- package/dist/client/assets/{terminalSessions-DijGQOOD.js → terminalSessions-dkFe-6qM.js} +2 -2
- package/dist/client/assets/{textarea-DyCJe8OO.js → textarea-CqADnND1.js} +2 -2
- package/dist/client/assets/themePalette-Co4xeJnW.js +5 -0
- package/dist/client/assets/{timeline-definition-24CTP7MA-DznrmSZM.js → timeline-definition-24CTP7MA-CkYp2QT_.js} +2 -2
- package/dist/client/assets/toast-gFAddE-Q.js +2 -0
- package/dist/client/assets/{toggle-C4iGKTHY.js → toggle-BM8lnQ29.js} +2 -2
- package/dist/client/assets/{toggle-group-CM-lVPv_.js → toggle-group-DaqkIApY.js} +2 -2
- package/dist/client/assets/{tooltip-C85X81rS.js → tooltip-ngKqo-lA.js} +2 -2
- package/dist/client/assets/{treeView-Q6P3EWNA-ChE0E3HR.js → treeView-Q6P3EWNA-YWYRI1IG.js} +1 -1
- package/dist/client/assets/{treemap-WGGIJYW6-BzvvYy-b.js → treemap-WGGIJYW6-DOqHNCbg.js} +1 -1
- package/dist/client/assets/{uiStateStore-DGq3v0QD.js → uiStateStore-Ddhpg65j.js} +3 -3
- package/dist/client/assets/{usage-B75rDU8q.js → usage-B3PzCXST.js} +2 -2
- package/dist/client/assets/{usageAccess-BS7RH41F.js → usageAccess-AcIxVQqJ.js} +2 -2
- package/dist/client/assets/{usageFormat-neDCKBUu.js → usageFormat-BXW38hCK.js} +2 -2
- package/dist/client/assets/{usageShortcuts-BXE7khxl.js → usageShortcuts-Qkdifm3k.js} +2 -2
- package/dist/client/assets/{use-atom-command-6Jnx7WG6.js → use-atom-command-BJxdfyHC.js} +2 -2
- package/dist/client/assets/{useAriaLabelledBy-0jbiz1G5.js → useAriaLabelledBy-C0a8QEEb.js} +2 -2
- package/dist/client/assets/{useHandleNewThread-ot_mP7L5.js → useHandleNewThread-BUYzfgdc.js} +2 -2
- package/dist/client/assets/{useLocation-CEeuom34.js → useLocation-BQDC59xg.js} +2 -2
- package/dist/client/assets/useNavigate-BziZQ-Vx.js +2 -0
- package/dist/client/assets/{useNavigateBack-B1hKrkap.js → useNavigateBack-BH5As9D1.js} +2 -2
- package/dist/client/assets/{useT3ConnectAuthPrompt-CVbTUWTC.js → useP4ConnectAuthPrompt-DHu7R38-.js} +2 -2
- package/dist/client/assets/{useParams-DPNRViD9.js → useParams-BMa26XZG.js} +2 -2
- package/dist/client/assets/{usePermissionStatus-DhHAmOgT.js → usePermissionStatus-CUViQRYY.js} +2 -2
- package/dist/client/assets/{usePullRequestActions-CC8iuW6L.js → usePullRequestActions-DGkavykA.js} +2 -2
- package/dist/client/assets/{useRegisterFieldControl-DHg4qk95.js → useRegisterFieldControl-CosvijuC.js} +2 -2
- package/dist/client/assets/{useScopedModelAvailability-AfE61RiJ.js → useScopedModelAvailability-DOJzIjns.js} +2 -2
- package/dist/client/assets/useSettings-B_WzhJqU.js +3 -0
- package/dist/client/assets/utils-BctiQ4Ue.js +37 -0
- package/dist/client/assets/{vcsRefInvalidation-4ukX8s_d.js → vcsRefInvalidation-cn2N4Xey.js} +2 -2
- package/dist/client/assets/{vennDiagram-4TSXK5OY-B7LoDpFP.js → vennDiagram-4TSXK5OY-DvpVodA1.js} +2 -2
- package/dist/client/assets/{wardley-WFR3VGLG-BGtlW2Xe.js → wardley-WFR3VGLG-CW8u1RAF.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-VM6X3IG4-BFhvdWVx.js → wardleyDiagram-VM6X3IG4-B34GmEPm.js} +2 -2
- package/dist/client/assets/{welcome-B_CtEQwh.js → welcome-DEFnpzjQ.js} +2 -2
- package/dist/client/assets/{xychartDiagram-S5SC5T6Z-CEb-52Rm.js → xychartDiagram-S5SC5T6Z-Ds5Ioly5.js} +2 -2
- package/dist/client/index.html +9 -31
- package/dist/{renderer-5lNN05tA.mjs → renderer-ClrN4p2R.mjs} +2 -2
- package/dist/resource-monitor/darwin-arm64/{t3-resource-monitor → p4-resource-monitor} +0 -0
- package/dist/{runtime-BuR0otfT.mjs → runtime-BQydA64s.mjs} +117 -41
- package/package.json +1 -1
- package/dist/client/assets/AlertDialogRoot-CI-BT04n.js +0 -2
- package/dist/client/assets/ChatMarkdown-BHsOWwiC.js +0 -65
- package/dist/client/assets/Input-C7aWgRC_.js +0 -2
- package/dist/client/assets/PanelLayoutControls-BH9E0RgY.js +0 -216
- package/dist/client/assets/ThemeEditorPanel-BRKQI9pP.js +0 -5
- package/dist/client/assets/_chat-BNr1JB8N.js +0 -45
- package/dist/client/assets/architecture-7GRP2DOG-DB68MNLl.js +0 -1
- package/dist/client/assets/channel-C9_T9oRs.js +0 -2
- package/dist/client/assets/classDiagram-ZZMXUADV-DKnt792Z.js +0 -2
- package/dist/client/assets/classDiagram-v2-VYDZK3BY-DKnt792Z.js +0 -2
- package/dist/client/assets/entities-ByTmol1p.js +0 -2
- package/dist/client/assets/eventmodeling-NTZA5JFV-DnLkFrkm.js +0 -1
- package/dist/client/assets/flowDiagram-HODETNUW-BFbQWgza.js +0 -1
- package/dist/client/assets/main-DzuY7nUi.js +0 -26
- package/dist/client/assets/primaryCloudLinkState-CC_tdVXQ.js +0 -2
- package/dist/client/assets/projectFilesQueryState-Btmth-fd.js +0 -2
- package/dist/client/assets/queries-BEkNnQZg.js +0 -2
- package/dist/client/assets/railroad-abnf-HS5TGJTU-DrVmy01m.js +0 -1
- package/dist/client/assets/railroad-ebnf-LZEXJU2U-BcPn9yic.js +0 -1
- package/dist/client/assets/railroad-peg-WCYAUIDC-Dv1rvzCW.js +0 -1
- package/dist/client/assets/rightPanelStore-UcehuwgS.js +0 -2
- package/dist/client/assets/runtime-DTzyj6T4.js +0 -2
- package/dist/client/assets/session-logic-CqRiME2K.js +0 -26
- package/dist/client/assets/settings.archived-CucIYN3P.js +0 -2
- package/dist/client/assets/settings.connections-C-yLB0Yr.js +0 -2
- package/dist/client/assets/settingsLayout-BNfRQ-bS.js +0 -3
- package/dist/client/assets/stateDiagram-v2-MP3YSRHH-B8R9PPf1.js +0 -2
- package/dist/client/assets/swimlanesDiagram-VR7AAH4N-CM0Ncs1m.js +0 -9
- package/dist/client/assets/themePalette-mGukKeaJ.js +0 -5
- package/dist/client/assets/toast-WpVvhflo.js +0 -2
- package/dist/client/assets/useNavigate-B5WzUZJ7.js +0 -2
- package/dist/client/assets/useSettings-Dr8XPXiN.js +0 -3
- package/dist/client/assets/utils-ChK8VEFC.js +0 -37
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{By as e,Cy as t,Iy as n,Oy as r,XT as i,db as a}from"./utils-ChK8VEFC.js";var o=(e,t)=>{if(typeof e==`number`){if(t===3)return{mode:`rgb`,r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(t===4)return{mode:`rgb`,r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(t===6)return{mode:`rgb`,r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(t===8)return{mode:`rgb`,r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},s={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},c=e=>o(s[e.toLowerCase()],6),l=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,u=e=>{let t;return(t=e.match(l))?o(parseInt(t[1],16),t[1].length):void 0},d=`([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)`;`${d}`;var f=`${d}%`;`${d}`;var p=`(?:${d}%|${d})`,m=`(?:${d}%|${d}|none)`,h=`(?:${d}(deg|grad|rad|turn)|${d})`;`${d}${d}`;var g=`\\s*,\\s*`;RegExp(`^`+m+`$`);var ee=RegExp(`^rgba?\\(\\s*${d}${g}${d}${g}${d}\\s*(?:,\\s*${p}\\s*)?\\)$`),te=RegExp(`^rgba?\\(\\s*${f}${g}${f}${g}${f}\\s*(?:,\\s*${p}\\s*)?\\)$`),ne=e=>{let t={mode:`rgb`},n;if(n=e.match(ee))n[1]!==void 0&&(t.r=n[1]/255),n[2]!==void 0&&(t.g=n[2]/255),n[3]!==void 0&&(t.b=n[3]/255);else if(n=e.match(te))n[1]!==void 0&&(t.r=n[1]/100),n[2]!==void 0&&(t.g=n[2]/100),n[3]!==void 0&&(t.b=n[3]/100);else return;return n[4]===void 0?n[5]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+n[5]))):t.alpha=Math.max(0,Math.min(1,n[4]/100)),t},re=(e,t)=>e===void 0?void 0:typeof e==`object`?e.mode===void 0?t?{...e,mode:t}:void 0:e:ve(e),ie=(e=`rgb`)=>t=>(t=re(t,e))===void 0?void 0:t.mode===e?t:_[t.mode][e]?_[t.mode][e](t):e===`rgb`?_[t.mode].rgb(t):_.rgb[e](_[t.mode].rgb(t)),_={},ae={},v=[],oe={},se=e=>e,y=e=>(_[e.mode]={..._[e.mode],...e.toMode},Object.keys(e.fromMode||{}).forEach(t=>{_[t]||(_[t]={}),_[t][e.mode]=e.fromMode[t]}),e.ranges||={},e.difference||={},e.channels.forEach(t=>{if(e.ranges[t]===void 0&&(e.ranges[t]=[0,1]),!e.interpolate[t])throw Error(`Missing interpolator for: ${t}`);typeof e.interpolate[t]==`function`&&(e.interpolate[t]={use:e.interpolate[t]}),e.interpolate[t].fixup||(e.interpolate[t].fixup=se)}),ae[e.mode]=e,(e.parse||[]).forEach(t=>{le(t,e.mode)}),ie(e.mode)),ce=e=>ae[e],le=(e,t)=>{if(typeof e==`string`){if(!t)throw Error(`'mode' required when 'parser' is a string`);oe[e]=t}else typeof e==`function`&&v.indexOf(e)<0&&v.push(e)},ue=/[^\x00-\x7F]|[a-zA-Z_]/,de=/[^\x00-\x7F]|[-\w]/,b={Function:`function`,Ident:`ident`,Number:`number`,Percentage:`percentage`,ParenClose:`)`,None:`none`,Hue:`hue`,Alpha:`alpha`},x=0;function S(e){let t=e[x],n=e[x+1];return t===`-`||t===`+`?/\d/.test(n)||n===`.`&&/\d/.test(e[x+2]):t===`.`?/\d/.test(n):/\d/.test(t)}function C(e){if(x>=e.length)return!1;let t=e[x];if(ue.test(t))return!0;if(t===`-`){if(e.length-x<2)return!1;let t=e[x+1];return!!(t===`-`||ue.test(t))}return!1}var fe={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function w(e){let t=``;if((e[x]===`-`||e[x]===`+`)&&(t+=e[x++]),t+=T(e),e[x]===`.`&&/\d/.test(e[x+1])&&(t+=e[x++]+T(e)),(e[x]===`e`||e[x]===`E`)&&((e[x+1]===`-`||e[x+1]===`+`)&&/\d/.test(e[x+2])?t+=e[x++]+e[x++]+T(e):/\d/.test(e[x+1])&&(t+=e[x++]+T(e))),C(e)){let n=E(e);return n===`deg`||n===`rad`||n===`turn`||n===`grad`?{type:b.Hue,value:t*fe[n]}:void 0}return e[x]===`%`?(x++,{type:b.Percentage,value:+t}):{type:b.Number,value:+t}}function T(e){let t=``;for(;/\d/.test(e[x]);)t+=e[x++];return t}function E(e){let t=``;for(;x<e.length&&de.test(e[x]);)t+=e[x++];return t}function pe(e){let t=E(e);return e[x]===`(`?(x++,{type:b.Function,value:t}):t===`none`?{type:b.None,value:void 0}:{type:b.Ident,value:t}}function me(e=``){let t=e.trim(),n=[],r;for(x=0;x<t.length;){if(r=t[x++],r===`
|
|
2
|
-
`||r===` `||r===` `){for(;x<t.length&&(t[x]===`
|
|
3
|
-
`||t[x]===` `||t[x]===` `);)x++;continue}if(r===`,`)return;if(r===`)`){n.push({type:b.ParenClose});continue}if(r===`+`){if(x--,S(t)){n.push(w(t));continue}return}if(r===`-`){if(x--,S(t)){n.push(w(t));continue}if(C(t)){n.push({type:b.Ident,value:E(t)});continue}return}if(r===`.`){if(x--,S(t)){n.push(w(t));continue}return}if(r===`/`){for(;x<t.length&&(t[x]===`
|
|
4
|
-
`||t[x]===` `||t[x]===` `);)x++;let e;if(S(t)&&(e=w(t),e.type!==b.Hue)){n.push({type:b.Alpha,value:e});continue}if(C(t)&&E(t)===`none`){n.push({type:b.Alpha,value:{type:b.None,value:void 0}});continue}return}if(/\d/.test(r)){x--,n.push(w(t));continue}if(ue.test(r)){x--,n.push(pe(t));continue}return}return n}function he(e){e._i=0;let t=e[e._i++];if(!t||t.type!==b.Function||t.value!==`color`||(t=e[e._i++],t.type!==b.Ident))return;let n=oe[t.value];if(!n)return;let r={mode:n},i=ge(e,!1);if(!i)return;let a=ce(n).channels;for(let e=0,t,n;e<a.length;e++)t=i[e],n=a[e],t.type!==b.None&&(r[n]=t.type===b.Number?t.value:t.value/100,n===`alpha`&&(r[n]=Math.max(0,Math.min(1,r[n]))));return r}function ge(e,t){let n=[],r;for(;e._i<e.length;){if(r=e[e._i++],r.type===b.None||r.type===b.Number||r.type===b.Alpha||r.type===b.Percentage||t&&r.type===b.Hue){n.push(r);continue}if(r.type===b.ParenClose){if(e._i<e.length)return;continue}return}if(!(n.length<3||n.length>4)){if(n.length===4){if(n[3].type!==b.Alpha)return;n[3]=n[3].value}return n.length===3&&n.push({type:b.None,value:void 0}),n.every(e=>e.type!==b.Alpha)?n:void 0}}function _e(e,t){e._i=0;let n=e[e._i++];if(!n||n.type!==b.Function)return;let r=ge(e,t);if(r)return r.unshift(n.value),r}var ve=e=>{if(typeof e!=`string`)return;let t=me(e),n=t?_e(t,!0):void 0,r,i=0,a=v.length;for(;i<a;)if((r=v[i++](e,n))!==void 0)return r;return t?he(t):void 0};function ye(e,t){if(!t||t[0]!==`rgb`&&t[0]!==`rgba`)return;let n={mode:`rgb`},[,r,i,a,o]=t;if(r.type!==b.Hue&&i.type!==b.Hue&&a.type!==b.Hue)return r.type!==b.None&&(n.r=r.type===b.Number?r.value/255:r.value/100),i.type!==b.None&&(n.g=i.type===b.Number?i.value/255:i.value/100),a.type!==b.None&&(n.b=a.type===b.Number?a.value/255:a.value/100),o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var be=e=>e===`transparent`?{mode:`rgb`,r:0,g:0,b:0,alpha:0}:void 0,xe=(e,t,n)=>e+n*(t-e),Se=e=>{let t=[];for(let n=0;n<e.length-1;n++){let r=e[n],i=e[n+1];r===void 0&&i===void 0?t.push(void 0):r!==void 0&&i!==void 0?t.push([r,i]):t.push(r===void 0?[i,i]:[r,r])}return t},D=(e=>t=>{let n=Se(t);return t=>{let r=t*n.length,i=t>=1?n.length-1:Math.max(Math.floor(r),0),a=n[i];return a===void 0?void 0:e(a[0],a[1],r-i)}})(xe),O=e=>{let t=!1,n=e.map(e=>e===void 0?1:(t=!0,e));return t?n:e},k={mode:`rgb`,channels:[`r`,`g`,`b`,`alpha`],parse:[ye,u,ne,c,be,`srgb`],serialize:`srgb`,interpolate:{r:D,g:D,b:D,alpha:{use:D,fixup:O}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Ce=(e=0)=>Math.abs(e)**(563/256)*Math.sign(e),we=e=>{let t=Ce(e.r),n=Ce(e.g),r=Ce(e.b),i={mode:`xyz65`,x:.5766690429101305*t+.1855582379065463*n+.1882286462349947*r,y:.297344975250536*t+.6273635662554661*n+.0752914584939979*r,z:.0270313613864123*t+.0706888525358272*n+.9913375368376386*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i},Te=e=>Math.abs(e)**(256/563)*Math.sign(e),Ee=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`a98`,r:Te(e*2.0415879038107465-t*.5650069742788597-.3447313507783297*n),g:Te(e*-.9692436362808798+t*1.8759675015077206+.0415550574071756*n),b:Te(e*.0134442806320312-t*.1183623922310184+1.0151749943912058*n)};return r!==void 0&&(i.alpha=r),i},De=(e=0)=>{let t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*((t+.055)/1.055)**2.4},A=({r:e,g:t,b:n,alpha:r})=>{let i={mode:`lrgb`,r:De(e),g:De(t),b:De(n)};return r!==void 0&&(i.alpha=r),i},Oe=e=>{let{r:t,g:n,b:r,alpha:i}=A(e),a={mode:`xyz65`,x:.4123907992659593*t+.357584339383878*n+.1804807884018343*r,y:.2126390058715102*t+.715168678767756*n+.0721923153607337*r,z:.0193308187155918*t+.119194779794626*n+.9505321522496607*r};return i!==void 0&&(a.alpha=i),a},ke=(e=0)=>{let t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*t**(1/2.4)-.055):e*12.92},Ae=({r:e,g:t,b:n,alpha:r},i=`rgb`)=>{let a={mode:i,r:ke(e),g:ke(t),b:ke(n)};return r!==void 0&&(a.alpha=r),a},j=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Ae({r:e*3.2409699419045226-t*1.537383177570094-.4986107602930034*n,g:e*-.9692436362808796+t*1.8759675015077204+.0415550574071756*n,b:e*.0556300796969936-t*.2039769588889765+1.0569715142428784*n});return r!==void 0&&(i.alpha=r),i},je={...k,mode:`a98`,parse:[`a98-rgb`],serialize:`a98-rgb`,fromMode:{rgb:e=>Ee(Oe(e)),xyz65:Ee},toMode:{rgb:e=>j(we(e)),xyz65:we}},M=e=>(e%=360)<0?e+360:e;function Me({h:e,s:t,l:n,alpha:r}){e=M(e===void 0?0:e),t===void 0&&(t=0),n===void 0&&(n=0);let i=n+t*(n<.5?n:1-n),a=i-(i-n)*2*Math.abs(e/60%2-1),o;switch(Math.floor(e/60)){case 0:o={r:i,g:a,b:2*n-i};break;case 1:o={r:a,g:i,b:2*n-i};break;case 2:o={r:2*n-i,g:i,b:a};break;case 3:o={r:2*n-i,g:a,b:i};break;case 4:o={r:a,g:2*n-i,b:i};break;case 5:o={r:i,g:2*n-i,b:a};break;default:o={r:2*n-i,g:2*n-i,b:2*n-i}}return o.mode=`rgb`,r!==void 0&&(o.alpha=r),o}function Ne({r:e,g:t,b:n,alpha:r}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.max(e,t,n),a=Math.min(e,t,n),o={mode:`hsl`,s:i===a?0:(i-a)/(1-Math.abs(i+a-1)),l:.5*(i+a)};return i-a!==0&&(o.h=(i===e?(t-n)/(i-a)+(t<n)*6:i===t?(n-e)/(i-a)+2:(e-t)/(i-a)+4)*60),r!==void 0&&(o.alpha=r),o}var Pe=(e,t)=>{switch(t){case`deg`:return+e;case`rad`:return e/Math.PI*180;case`grad`:return e/10*9;case`turn`:return e*360}},Fe=RegExp(`^hsla?\\(\\s*${h}${g}${f}${g}${f}\\s*(?:,\\s*${p}\\s*)?\\)$`),Ie=e=>{let t=e.match(Fe);if(!t)return;let n={mode:`hsl`};return t[3]===void 0?t[1]!==void 0&&t[2]!==void 0&&(n.h=Pe(t[1],t[2])):n.h=+t[3],t[4]!==void 0&&(n.s=Math.min(Math.max(0,t[4]/100),1)),t[5]!==void 0&&(n.l=Math.min(Math.max(0,t[5]/100),1)),t[6]===void 0?t[7]!==void 0&&(n.alpha=Math.max(0,Math.min(1,+t[7]))):n.alpha=Math.max(0,Math.min(1,t[6]/100)),n};function Le(e,t){if(!t||t[0]!==`hsl`&&t[0]!==`hsla`)return;let n={mode:`hsl`},[,r,i,a,o]=t;if(r.type!==b.None){if(r.type===b.Percentage)return;n.h=r.value}if(i.type!==b.None){if(i.type===b.Hue)return;n.s=i.value/100}if(a.type!==b.None){if(a.type===b.Hue)return;n.l=a.value/100}return o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var Re=(e,t)=>e.map((n,r,i)=>{if(n===void 0)return n;let a=M(n);return r===0||e[r-1]===void 0?a:t(a-M(i[r-1]))}).reduce((e,t)=>!e.length||t===void 0||e[e.length-1]===void 0?(e.push(t),e):(e.push(t+e[e.length-1]),e),[]),ze=e=>Re(e,e=>Math.abs(e)<=180?e:e-360*Math.sign(e)),Be=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.s||!t.s)return 0;let n=M(e.h),r=M(t.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*t.s)*i},Ve=(e,t)=>{if(e.h===void 0||t.h===void 0)return 0;let n=M(e.h),r=M(t.h);return Math.abs(r-n)>180?n-(r-360*Math.sign(r-n)):r-n},He=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.c||!t.c)return 0;let n=M(e.h),r=M(t.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*t.c)*i},Ue=e=>{let t=e.reduce((e,t)=>{if(t!==void 0){let n=t*Math.PI/180;e.sin+=Math.sin(n),e.cos+=Math.cos(n)}return e},{sin:0,cos:0}),n=Math.atan2(t.sin,t.cos)*180/Math.PI;return n<0?360+n:n},We={mode:`hsl`,toMode:{rgb:Me},fromMode:{rgb:Ne},channels:[`h`,`s`,`l`,`alpha`],ranges:{h:[0,360]},gamut:`rgb`,parse:[Le,Ie],serialize:e=>`hsl(${e.h===void 0?`none`:e.h} ${e.s===void 0?`none`:e.s*100+`%`} ${e.l===void 0?`none`:e.l*100+`%`}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{h:{use:D,fixup:ze},s:D,l:D,alpha:{use:D,fixup:O}},difference:{h:Be},average:{h:Ue}};function Ge({h:e,s:t,v:n,alpha:r}){e=M(e===void 0?0:e),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.abs(e/60%2-1),a;switch(Math.floor(e/60)){case 0:a={r:n,g:n*(1-t*i),b:n*(1-t)};break;case 1:a={r:n*(1-t*i),g:n,b:n*(1-t)};break;case 2:a={r:n*(1-t),g:n,b:n*(1-t*i)};break;case 3:a={r:n*(1-t),g:n*(1-t*i),b:n};break;case 4:a={r:n*(1-t*i),g:n*(1-t),b:n};break;case 5:a={r:n,g:n*(1-t),b:n*(1-t*i)};break;default:a={r:n*(1-t),g:n*(1-t),b:n*(1-t)}}return a.mode=`rgb`,r!==void 0&&(a.alpha=r),a}function Ke({r:e,g:t,b:n,alpha:r}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.max(e,t,n),a=Math.min(e,t,n),o={mode:`hsv`,s:i===0?0:1-a/i,v:i};return i-a!==0&&(o.h=(i===e?(t-n)/(i-a)+(t<n)*6:i===t?(n-e)/(i-a)+2:(e-t)/(i-a)+4)*60),r!==void 0&&(o.alpha=r),o}var qe={mode:`hsv`,toMode:{rgb:Ge},parse:[`--hsv`],serialize:`--hsv`,fromMode:{rgb:Ke},channels:[`h`,`s`,`v`,`alpha`],ranges:{h:[0,360]},gamut:`rgb`,interpolate:{h:{use:D,fixup:ze},s:D,v:D,alpha:{use:D,fixup:O}},difference:{h:Be},average:{h:Ue}};function Je({h:e,w:t,b:n,alpha:r}){if(t===void 0&&(t=0),n===void 0&&(n=0),t+n>1){let e=t+n;t/=e,n/=e}return Ge({h:e,s:n===1?1:1-t/(1-n),v:1-n,alpha:r})}function Ye(e){let t=Ke(e);if(t===void 0)return;let n=t.s===void 0?0:t.s,r=t.v===void 0?0:t.v,i={mode:`hwb`,w:(1-n)*r,b:1-r};return t.h!==void 0&&(i.h=t.h),t.alpha!==void 0&&(i.alpha=t.alpha),i}function Xe(e,t){if(!t||t[0]!==`hwb`)return;let n={mode:`hwb`},[,r,i,a,o]=t;if(r.type!==b.None){if(r.type===b.Percentage)return;n.h=r.value}if(i.type!==b.None){if(i.type===b.Hue)return;n.w=i.value/100}if(a.type!==b.None){if(a.type===b.Hue)return;n.b=a.value/100}return o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var Ze={mode:`hwb`,toMode:{rgb:Je},fromMode:{rgb:Ye},channels:[`h`,`w`,`b`,`alpha`],ranges:{h:[0,360]},gamut:`rgb`,parse:[Xe],serialize:e=>`hwb(${e.h===void 0?`none`:e.h} ${e.w===void 0?`none`:e.w*100+`%`} ${e.b===void 0?`none`:e.b*100+`%`}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{h:{use:D,fixup:ze},w:D,b:D,alpha:{use:D,fixup:O}},difference:{h:Ve},average:{h:Ue}},Qe=29**3/27,$e=216/29**3,N={X:.3457/.3585,Y:1,Z:.2958/.3585},P={X:.3127/.329,Y:1,Z:.3583/.329},et=e=>e**3>$e?e**3:(116*e-16)/Qe,tt=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+16)/116,a=t/500+i,o=i-n/200,s={mode:`xyz50`,x:et(a)*N.X,y:et(i)*N.Y,z:et(o)*N.Z};return r!==void 0&&(s.alpha=r),s},nt=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Ae({r:e*3.1341359569958707-t*1.6173863321612538-.4906619460083532*n,g:e*-.978795502912089+t*1.916254567259524+.03344273116131949*n,b:e*.07195537988411677-t*.2289768264158322+1.405386058324125*n});return r!==void 0&&(i.alpha=r),i},rt=e=>nt(tt(e)),it=e=>{let{r:t,g:n,b:r,alpha:i}=A(e),a={mode:`xyz50`,x:.436065742824811*t+.3851514688337912*n+.14307845442264197*r,y:.22249319175623702*t+.7168870538238823*n+.06061979053616537*r,z:.013923904500943465*t+.09708128566574634*n+.7140993584005155*r};return i!==void 0&&(a.alpha=i),a},at=e=>e>$e?Math.cbrt(e):(Qe*e+16)/116,ot=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=at(e/N.X),a=at(t/N.Y),o=at(n/N.Z),s={mode:`lab`,l:116*a-16,a:500*(i-a),b:200*(a-o)};return r!==void 0&&(s.alpha=r),s},st=e=>{let t=ot(it(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t};function ct(e,t){if(!t||t[0]!==`lab`)return;let n={mode:`lab`},[,r,i,a,o]=t;if(r.type!==b.Hue&&i.type!==b.Hue&&a.type!==b.Hue)return r.type!==b.None&&(n.l=Math.min(Math.max(0,r.value),100)),i.type!==b.None&&(n.a=i.type===b.Number?i.value:i.value*125/100),a.type!==b.None&&(n.b=a.type===b.Number?a.value:a.value*125/100),o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var lt={mode:`lab`,toMode:{xyz50:tt,rgb:rt},fromMode:{xyz50:ot,rgb:st},channels:[`l`,`a`,`b`,`alpha`],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[ct],serialize:e=>`lab(${e.l===void 0?`none`:e.l} ${e.a===void 0?`none`:e.a} ${e.b===void 0?`none`:e.b}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{l:D,a:D,b:D,alpha:{use:D,fixup:O}}},ut=29**3/27,dt=216/29**3,ft=e=>e**3>dt?e**3:(116*e-16)/ut,pt=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+16)/116,a=t/500+i,o=i-n/200,s={mode:`xyz65`,x:ft(a)*P.X,y:ft(i)*P.Y,z:ft(o)*P.Z};return r!==void 0&&(s.alpha=r),s},mt=e=>j(pt(e)),ht=e=>e>dt?Math.cbrt(e):(ut*e+16)/116,gt=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=ht(e/P.X),a=ht(t/P.Y),o=ht(n/P.Z),s={mode:`lab65`,l:116*a-16,a:500*(i-a),b:200*(a-o)};return r!==void 0&&(s.alpha=r),s},_t=e=>{let t=gt(Oe(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},vt={...lt,mode:`lab65`,parse:[`--lab-d65`],serialize:`--lab-d65`,toMode:{xyz65:pt,rgb:mt},fromMode:{xyz65:gt,rgb:_t},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}},F=({l:e,a:t,b:n,alpha:r},i=`lch`)=>{t===void 0&&(t=0),n===void 0&&(n=0);let a=Math.sqrt(t*t+n*n),o={mode:i,l:e,c:a};return a&&(o.h=M(Math.atan2(n,t)*180/Math.PI)),r!==void 0&&(o.alpha=r),o},I=({l:e,c:t,h:n,alpha:r},i=`lab`)=>{n===void 0&&(n=0);let a={mode:i,l:e,a:t?t*Math.cos(n/180*Math.PI):0,b:t?t*Math.sin(n/180*Math.PI):0};return r!==void 0&&(a.alpha=r),a};function yt(e,t){if(!t||t[0]!==`lch`)return;let n={mode:`lch`},[,r,i,a,o]=t;if(r.type!==b.None){if(r.type===b.Hue)return;n.l=Math.min(Math.max(0,r.value),100)}if(i.type!==b.None&&(n.c=Math.max(0,i.type===b.Number?i.value:i.value*150/100)),a.type!==b.None){if(a.type===b.Percentage)return;n.h=a.value}return o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var bt={mode:`lch`,toMode:{lab:I,rgb:e=>rt(I(e))},fromMode:{rgb:e=>F(st(e)),lab:F},channels:[`l`,`c`,`h`,`alpha`],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[yt],serialize:e=>`lch(${e.l===void 0?`none`:e.l} ${e.c===void 0?`none`:e.c} ${e.h===void 0?`none`:e.h}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{h:{use:D,fixup:ze},c:D,l:D,alpha:{use:D,fixup:O}},difference:{h:He},average:{h:Ue}},xt={...bt,mode:`lch65`,parse:[`--lch-d65`],serialize:`--lch-d65`,toMode:{lab65:e=>I(e,`lab65`),rgb:e=>mt(I(e,`lab65`))},fromMode:{rgb:e=>F(_t(e),`lch65`),lab65:e=>F(e,`lch65`)},ranges:{l:[0,100],c:[0,150],h:[0,360]}},St={...k,mode:`lrgb`,toMode:{rgb:Ae},fromMode:{rgb:A},parse:[`srgb-linear`],serialize:`srgb-linear`},Ct=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+.3963377773761749*t+.2158037573099136*n)**3,a=(e-.1055613458156586*t-.0638541728258133*n)**3,o=(e-.0894841775298119*t-1.2914855480194092*n)**3,s={mode:`lrgb`,r:4.076741636075957*i-3.3077115392580616*a+.2309699031821044*o,g:-1.2684379732850317*i+2.6097573492876887*a-.3413193760026573*o,b:-.0041960761386756*i-.7034186179359362*a+1.7076146940746117*o};return r!==void 0&&(s.alpha=r),s},wt=({r:e,g:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.cbrt(.412221469470763*e+.5363325372617348*t+.0514459932675022*n),a=Math.cbrt(.2119034958178252*e+.6806995506452344*t+.1073969535369406*n),o=Math.cbrt(.0883024591900564*e+.2817188391361215*t+.6299787016738222*n),s={mode:`oklab`,l:.210454268309314*i+.7936177747023054*a-.0040720430116193*o,a:1.9779985324311684*i-2.42859224204858*a+.450593709617411*o,b:.0259040424655478*i+.7827717124575296*a-.8086757549230774*o};return r!==void 0&&(s.alpha=r),s},Tt=e=>{let t=wt(A(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Et=e=>Ae(Ct(e));function Dt(e,t){if(!t||t[0]!==`oklab`)return;let n={mode:`oklab`},[,r,i,a,o]=t;if(r.type!==b.Hue&&i.type!==b.Hue&&a.type!==b.Hue)return r.type!==b.None&&(n.l=Math.min(Math.max(0,r.type===b.Number?r.value:r.value/100),1)),i.type!==b.None&&(n.a=i.type===b.Number?i.value:i.value*.4/100),a.type!==b.None&&(n.b=a.type===b.Number?a.value:a.value*.4/100),o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var Ot={...lt,mode:`oklab`,toMode:{lrgb:Ct,rgb:Et},fromMode:{lrgb:wt,rgb:Tt},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[Dt],serialize:e=>`oklab(${e.l===void 0?`none`:e.l} ${e.a===void 0?`none`:e.a} ${e.b===void 0?`none`:e.b}${e.alpha<1?` / ${e.alpha}`:``})`};function kt(e,t){if(!t||t[0]!==`oklch`)return;let n={mode:`oklch`},[,r,i,a,o]=t;if(r.type!==b.None){if(r.type===b.Hue)return;n.l=Math.min(Math.max(0,r.type===b.Number?r.value:r.value/100),1)}if(i.type!==b.None&&(n.c=Math.max(0,i.type===b.Number?i.value:i.value*.4/100)),a.type!==b.None){if(a.type===b.Percentage)return;n.h=a.value}return o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var At={...bt,mode:`oklch`,toMode:{oklab:e=>I(e,`oklab`),rgb:e=>Et(I(e,`oklab`))},fromMode:{rgb:e=>F(Tt(e),`oklch`),oklab:e=>F(e,`oklch`)},parse:[kt],serialize:e=>`oklch(${e.l===void 0?`none`:e.l} ${e.c===void 0?`none`:e.c} ${e.h===void 0?`none`:e.h}${e.alpha<1?` / ${e.alpha}`:``})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}},jt=e=>{let{r:t,g:n,b:r,alpha:i}=A(e),a={mode:`xyz65`,x:.486570948648216*t+.265667693169093*n+.1982172852343625*r,y:.2289745640697487*t+.6917385218365062*n+.079286914093745*r,z:0*t+.0451133818589026*n+1.043944368900976*r};return i!==void 0&&(a.alpha=i),a},Mt=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Ae({r:e*2.4934969119414263-t*.9313836179191242-.402710784450717*n,g:e*-.8294889695615749+t*1.7626640603183465+.0236246858419436*n,b:e*.0358458302437845-t*.0761723892680418+.9568845240076871*n},`p3`);return r!==void 0&&(i.alpha=r),i},Nt={...k,mode:`p3`,parse:[`display-p3`],serialize:`display-p3`,fromMode:{rgb:e=>Mt(Oe(e)),xyz65:Mt},toMode:{rgb:e=>j(jt(e)),xyz65:jt}},Pt=e=>{let t=Math.abs(e);return t>=1/512?Math.sign(e)*t**(1/1.8):16*e},Ft=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`prophoto`,r:Pt(e*1.3457868816471585-t*.2555720873797946-.0511018649755453*n),g:Pt(e*-.5446307051249019+t*1.5082477428451466+.0205274474364214*n),b:Pt(e*0+t*0+1.2119675456389452*n)};return r!==void 0&&(i.alpha=r),i},It=(e=0)=>{let t=Math.abs(e);return t>=16/512?Math.sign(e)*t**1.8:e/16},Lt=e=>{let t=It(e.r),n=It(e.g),r=It(e.b),i={mode:`xyz50`,x:.7977666449006423*t+.1351812974005331*n+.0313477341283922*r,y:.2880748288194013*t+.7118352342418731*n+899369387256e-16*r,z:0*t+0*n+.8251046025104602*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i},Rt={...k,mode:`prophoto`,parse:[`prophoto-rgb`],serialize:`prophoto-rgb`,fromMode:{xyz50:Ft,rgb:e=>Ft(it(e))},toMode:{xyz50:Lt,rgb:e=>nt(Lt(e))}},zt=1.09929682680944,Bt=.018053968510807,Vt=e=>{let t=Math.abs(e);return t>Bt?(Math.sign(e)||1)*(zt*t**.45-.09929682680944008):4.5*e},Ht=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`rec2020`,r:Vt(e*1.7166511879712683-t*.3556707837763925-.2533662813736599*n),g:Vt(e*-.6666843518324893+t*1.6164812366349395+.0157685458139111*n),b:Vt(e*.0176398574453108-t*.0427706132578085+.9421031212354739*n)};return r!==void 0&&(i.alpha=r),i},Ut=1.09929682680944,Wt=.018053968510807,Gt=(e=0)=>{let t=Math.abs(e);return t<Wt*4.5?e/4.5:(Math.sign(e)||1)*((t+Ut-1)/Ut)**(1/.45)},Kt=e=>{let t=Gt(e.r),n=Gt(e.g),r=Gt(e.b),i={mode:`xyz65`,x:.6369580483012911*t+.1446169035862083*n+.1688809751641721*r,y:.262700212011267*t+.6779980715188708*n+.059301716469862*r,z:0*t+.0280726930490874*n+1.0609850577107909*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i},qt={...k,mode:`rec2020`,fromMode:{xyz65:Ht,rgb:e=>Ht(Oe(e))},toMode:{xyz65:Kt,rgb:e=>j(Kt(e))},parse:[`rec2020`],serialize:`rec2020`},Jt={mode:`xyz50`,parse:[`xyz-d50`],serialize:`xyz-d50`,toMode:{rgb:nt,lab:ot},fromMode:{rgb:it,lab:tt},channels:[`x`,`y`,`z`,`alpha`],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:D,y:D,z:D,alpha:{use:D,fixup:O}}},Yt={mode:`xyz65`,toMode:{rgb:j,xyz50:e=>{let{x:t,y:n,z:r,alpha:i}=e;t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0);let a={mode:`xyz50`,x:1.0479298208405488*t+.0229467933410191*n-.0501922295431356*r,y:.0296278156881593*t+.990434484573249*n-.0170738250293851*r,z:-.0092430581525912*t+.0150551448965779*n+.7518742899580008*r};return i!==void 0&&(a.alpha=i),a}},fromMode:{rgb:Oe,xyz50:e=>{let{x:t,y:n,z:r,alpha:i}=e;t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0);let a={mode:`xyz65`,x:.9554734527042182*t-.0230985368742614*n+.0632593086610217*r,y:-.0283697069632081*t+1.0099954580058226*n+.021041398966943*r,z:.0123140016883199*t-.0205076964334779*n+1.3303659366080753*r};return i!==void 0&&(a.alpha=i),a}},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:[`x`,`y`,`z`,`alpha`],parse:[`xyz`,`xyz-d65`],serialize:`xyz-d65`,interpolate:{x:D,y:D,z:D,alpha:{use:D,fixup:O}}};y(je),y(We),y(qe),y(Ze),y(lt),y(vt),y(bt),y(xt),y(St),y(Ot),y(At),y(Nt),y(Rt),y(qt),y(k),y(Jt),y(Yt);var Xt=[`orchid`,`grove`,`ocean`,`ember`,`iris`],Zt={"t3-chat":`orchid`};[...Xt];var L=new Set([`system`,`light`,`dark`,...Xt,`t3-chat`,`t3-chat-dark`,`t3-grove`,`t3-ocean`,`t3-ember`,`t3-iris`]);[...L];var Qt=`canvas.chrome.toolbar.toolbarForeground.toolbarBorder.toolbarControl.toolbarControlForeground.toolbarControlHover.surface.surfaceRaised.surfaceOverlay.text.textMuted.border.input.focus.accent.accentForeground.secondary.secondaryForeground.muted.mutedForeground.placeholder.secondaryLabel.iconMuted.error.errorForeground.errorSurface.warning.warningForeground.warningSurface.update.updateForeground.updateSurface.accentSurface.accentSurfaceForeground.messageSurface.messageForeground.messageAction.messageActionForeground.messageActionHover.codeBackground.codeForeground.searchMatchBackground.searchMatchForeground.searchMatchActiveBackground.searchMatchActiveForeground.sidebar.sidebarForeground.sidebarMutedForeground.sidebarControlSurface.sidebarRowHover.sidebarRowActive.sidebarRowSelected.sidebarBorder.terminalBackground.terminalForeground.terminalCursor.terminalSelection.terminalScrollbar.terminalScrollbarHover`.split(`.`),$t={searchMatchBackground:`#ffde8b`,searchMatchForeground:`#21180a`,searchMatchActiveBackground:`#eea52b`,searchMatchActiveForeground:`#21180a`,canvas:`oklch(1 0 0)`,chrome:`#f4f4f4`,toolbar:`#f4f4f4`,toolbarForeground:`oklch(0.274 0.006 286.033)`,toolbarBorder:`oklch(0.92 0.004 286)`,toolbarControl:`oklch(1 0 0)`,toolbarControlForeground:`oklch(0.274 0.006 286.033)`,toolbarControlHover:`#f4f4f4`,surface:`oklch(1 0 0)`,surfaceRaised:`oklch(1 0 0)`,surfaceOverlay:`oklch(1 0 0)`,text:`oklch(0.274 0.006 286.033)`,textMuted:`oklch(0.442 0.017 285.786)`,border:`oklch(0.92 0.004 286)`,input:`oklch(0.871 0.006 286)`,focus:`oklch(0.546 0.215 262.881)`,accent:`oklch(0.546 0.215 262.881)`,accentForeground:`oklch(1 0 0)`,secondary:`oklch(0.977 0.001 286)`,secondaryForeground:`oklch(0.274 0.006 286.033)`,muted:`oklch(0.977 0.001 286)`,mutedForeground:`oklch(0.442 0.017 285.786)`,placeholder:`oklch(0.442 0.017 285.786)`,secondaryLabel:`oklch(0.442 0.017 285.786)`,iconMuted:`oklch(0.442 0.017 285.786)`,error:`oklch(0.637 0.237 25.331)`,errorForeground:`oklch(0.505 0.213 27.518)`,errorSurface:`#fcebec`,warning:`#fe9a00`,warningForeground:`#bb4d00`,warningSurface:`#fcf4e8`,update:`oklch(0.546 0.215 262.881)`,updateForeground:`oklch(0.546 0.215 262.881)`,updateSurface:`#e0e6f7`,accentSurface:`#f4f4f4`,accentSurfaceForeground:`oklch(0.21 0.006 286)`,messageSurface:`oklch(0.967 0.001 286)`,messageForeground:`oklch(0.274 0.006 286.033)`,messageAction:`oklch(0.546 0.215 262.881)`,messageActionForeground:`oklch(1 0 0)`,messageActionHover:`#3a72ed`,codeBackground:`oklch(1 0 0)`,codeForeground:`oklch(0.274 0.006 286.033)`,sidebar:`#f4f4f4`,sidebarForeground:`oklch(0.274 0.006 286.033)`,sidebarMutedForeground:`oklch(0.442 0.017 285.786)`,sidebarControlSurface:`oklch(0.977 0.001 286)`,sidebarRowHover:`#f4f4f4`,sidebarRowActive:`#e7e8e8`,sidebarRowSelected:`#e7e8e8`,sidebarBorder:`oklch(0.92 0.004 286)`,terminalBackground:`oklch(0.988 0.001 286)`,terminalForeground:`oklch(0.274 0.006 286.033)`,terminalCursor:`oklch(0.546 0.215 262.881)`,terminalSelection:`#d0d6dd`,terminalScrollbar:`#d6d6d6`,terminalScrollbarHover:`#bdbdbd`},en={searchMatchBackground:`#8c6c1f`,searchMatchForeground:`#f5f5f5`,searchMatchActiveBackground:`#eea52b`,searchMatchActiveForeground:`#21180a`,canvas:`oklch(0.145 0.005 286)`,chrome:`oklch(0.185 0.006 286)`,toolbar:`oklch(0.185 0.006 286)`,toolbarForeground:`oklch(0.967 0.001 286)`,toolbarBorder:`oklch(0.274 0.006 286)`,toolbarControl:`oklch(0.205 0.006 286)`,toolbarControlForeground:`oklch(0.967 0.001 286)`,toolbarControlHover:`oklch(0.245 0.006 286)`,surface:`oklch(0.185 0.006 286)`,surfaceRaised:`oklch(0.185 0.006 286)`,surfaceOverlay:`oklch(0.205 0.006 286)`,text:`oklch(0.967 0.001 286)`,textMuted:`oklch(0.674 0.006 286)`,border:`oklch(0.274 0.006 286)`,input:`oklch(0.311 0.006 286)`,focus:`oklch(0.707 0.165 254.624)`,accent:`oklch(0.707 0.165 254.624)`,accentForeground:`oklch(0.145 0.005 286)`,secondary:`oklch(0.225 0.006 286)`,secondaryForeground:`oklch(0.967 0.001 286)`,muted:`oklch(0.225 0.006 286)`,mutedForeground:`oklch(0.674 0.006 286)`,placeholder:`oklch(0.674 0.006 286)`,secondaryLabel:`oklch(0.674 0.006 286)`,iconMuted:`oklch(0.674 0.006 286)`,error:`oklch(0.704 0.191 22.216)`,errorForeground:`oklch(0.783 0.157 21.5)`,errorSurface:`#301214`,warning:`#fe9a00`,warningForeground:`#ffb900`,warningSurface:`#312108`,update:`oklch(0.707 0.165 254.624)`,updateForeground:`oklch(0.707 0.165 254.624)`,updateSurface:`#121b34`,accentSurface:`oklch(0.245 0.006 286)`,accentSurfaceForeground:`oklch(0.967 0.001 286)`,messageSurface:`oklch(0.245 0.006 286)`,messageForeground:`oklch(0.967 0.001 286)`,messageAction:`oklch(0.707 0.165 254.624)`,messageActionForeground:`oklch(0.145 0.005 286)`,messageActionHover:`#4993ec`,codeBackground:`oklch(0.185 0.006 286)`,codeForeground:`oklch(0.967 0.001 286)`,sidebar:`oklch(0.185 0.006 286)`,sidebarForeground:`oklch(0.967 0.001 286)`,sidebarMutedForeground:`oklch(0.674 0.006 286)`,sidebarControlSurface:`oklch(0.225 0.006 286)`,sidebarRowHover:`oklch(0.245 0.006 286)`,sidebarRowActive:`oklch(0.245 0.006 286)`,sidebarRowSelected:`oklch(0.245 0.006 286)`,sidebarBorder:`oklch(0.274 0.006 286)`,terminalBackground:`oklch(0.145 0.005 286)`,terminalForeground:`oklch(0.967 0.001 286)`,terminalCursor:`oklch(0.707 0.165 254.624)`,terminalSelection:`#343a47`,terminalScrollbar:`#222222`,terminalScrollbarHover:`#363636`},tn={id:`orchid`,label:`Orchid`,appearance:`light`,colors:{canvas:`oklch(0.982446 0.010114 325.653)`,chrome:`oklch(0.982446 0.010114 325.653)`,toolbar:`oklch(0.982446 0.010114 325.653)`,toolbarForeground:`oklch(0.325698 0.116116 325.037)`,toolbarBorder:`oklch(0.856784 0.082879 328.911)`,toolbarControl:`oklch(0.939552 0.024286 321.664)`,toolbarControlForeground:`oklch(0.325698 0.116116 325.037)`,toolbarControlHover:`oklch(0.884525 0.041658 337.177)`,surface:`oklch(0.971835 0.012884 321.894)`,surfaceRaised:`oklch(0.988235 0.005049 325.615)`,surfaceOverlay:`oklch(1 0 0)`,text:`oklch(0.325698 0.116116 325.037)`,textMuted:`oklch(0.494754 0.190937 354.544)`,border:`oklch(0.923531 0.021247 328.096)`,input:`oklch(0.851713 0.055822 336.6)`,focus:`oklch(0.591646 0.217985 0.584)`,accent:`oklch(0.591646 0.217985 0.584)`,accentForeground:`oklch(1 0 0)`,secondary:`oklch(0.869588 0.06751 334.899)`,secondaryForeground:`oklch(0.444777 0.134061 324.799)`,muted:`oklch(0.802407 0.090963 345.892)`,mutedForeground:`oklch(0.428932 0.163929 354.332)`,placeholder:`oklch(0.549927 0.090215 323.149)`,secondaryLabel:`oklch(0.494754 0.190937 354.544)`,iconMuted:`oklch(0.494754 0.190937 354.544)`,error:`oklch(0.627117 0.248974 7.734)`,errorForeground:`oklch(0.458704 0.169677 3.815)`,errorSurface:`oklch(0.942787 0.032076 344.963)`,warning:`oklch(0.76859 0.164659 70.08)`,warningForeground:`oklch(0.54612 0.143036 48.949)`,warningSurface:`oklch(0.962901 0.015297 48.56)`,update:`oklch(0.591646 0.217985 0.584)`,updateForeground:`oklch(0.494754 0.190937 354.544)`,updateSurface:`oklch(0.930264 0.036194 341.45)`,accentSurface:`oklch(0.939552 0.024286 321.664)`,accentSurfaceForeground:`oklch(0.396296 0.025134 285.196)`,messageSurface:`oklch(0.926746 0.037898 332.6)`,messageForeground:`oklch(0.354591 0.093575 307.568)`,messageAction:`oklch(0.591646 0.217985 0.584)`,messageActionForeground:`oklch(1 0 0)`,messageActionHover:`oklch(0.539042 0.197866 0.305)`,codeBackground:`oklch(0.953855 0.019695 315.668)`,codeForeground:`oklch(0.445128 0.13005 307.026)`,searchMatchBackground:`oklch(0.915 0.11 85)`,searchMatchForeground:`oklch(0.216164 0.028283 77.423)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.928886 0.031178 322.592)`,sidebarForeground:`oklch(0.396296 0.025134 285.196)`,sidebarMutedForeground:`oklch(0.494754 0.190937 354.544)`,sidebarControlSurface:`oklch(0.978851 0.001321 106.424)`,sidebarRowHover:`oklch(0.978851 0.001321 106.424)`,sidebarRowActive:`oklch(0.978851 0.001321 106.424)`,sidebarRowSelected:`oklch(0.978851 0.001321 106.424)`,sidebarBorder:`oklch(0.938313 0.002552 48.717)`,terminalBackground:`oklch(0.982446 0.010114 325.653)`,terminalForeground:`oklch(0.325698 0.116116 325.037)`,terminalCursor:`oklch(0.591646 0.217985 0.584)`,terminalSelection:`oklch(0.869588 0.06751 334.899)`,terminalScrollbar:`oklch(0.851713 0.055822 336.6)`,terminalScrollbarHover:`oklch(0.802407 0.090963 345.892)`},variants:{dark:{canvas:`oklch(0.22813 0.020366 307.469)`,chrome:`oklch(0.22813 0.020366 307.469)`,toolbar:`oklch(0.22813 0.020366 307.469)`,toolbarForeground:`oklch(0.980735 0.004092 301.426)`,toolbarBorder:`oklch(0.266943 0.015262 302.425)`,toolbarControl:`oklch(0.313674 0.030572 310.061)`,toolbarControlForeground:`oklch(0.848252 0.038248 307.961)`,toolbarControlHover:`oklch(0.364912 0.050794 308.491)`,surface:`oklch(0.267101 0.02016 311.799)`,surfaceRaised:`oklch(0.279864 0.021572 309.532)`,surfaceOverlay:`oklch(0.154761 0.01316 338.901)`,text:`oklch(0.980735 0.004092 301.426)`,textMuted:`oklch(0.880303 0.03077 342.696)`,border:`oklch(0.266943 0.015262 302.425)`,input:`oklch(0.266817 0.02897 344.461)`,focus:`oklch(0.591646 0.217985 0.584)`,accent:`oklch(0.460685 0.185347 4.099)`,accentForeground:`oklch(0.901233 0.057189 343.694)`,secondary:`oklch(0.313674 0.030572 310.061)`,secondaryForeground:`oklch(0.848252 0.038248 307.961)`,muted:`oklch(0.360924 0.021469 316.83)`,mutedForeground:`oklch(0.880303 0.03077 342.696)`,placeholder:`oklch(0.657087 0.028226 307.985)`,secondaryLabel:`oklch(0.880303 0.03077 342.696)`,iconMuted:`oklch(0.848252 0.038248 307.961)`,error:`oklch(0.458704 0.169677 3.815)`,errorForeground:`oklch(0.901233 0.057189 343.694)`,errorSurface:`oklch(0.259022 0.04799 340.062)`,warning:`oklch(0.76859 0.164659 70.08)`,warningForeground:`oklch(0.836861 0.164422 84.429)`,warningSurface:`oklch(0.321706 0.036256 60.806)`,update:`oklch(0.460685 0.185347 4.099)`,updateForeground:`oklch(0.901233 0.057189 343.694)`,updateSurface:`oklch(0.256077 0.063004 342.914)`,accentSurface:`oklch(0.364912 0.050794 308.491)`,accentSurfaceForeground:`oklch(0.964695 0.009139 341.803)`,messageSurface:`oklch(0.273791 0.025541 309.079)`,messageForeground:`oklch(0.949872 0.021269 306.838)`,messageAction:`oklch(0.460685 0.185347 4.099)`,messageActionForeground:`oklch(0.901233 0.057189 343.694)`,messageActionHover:`oklch(0.458754 0.184639 3.857)`,codeBackground:`oklch(0.22813 0.020366 307.469)`,codeForeground:`oklch(0.848703 0.064239 306.645)`,searchMatchBackground:`oklch(0.55 0.1 85)`,searchMatchForeground:`oklch(0.970151 0 0)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.185778 0.019368 322.159)`,sidebarForeground:`oklch(0.967434 0.001326 286.375)`,sidebarMutedForeground:`oklch(0.880303 0.03077 342.696)`,sidebarControlSurface:`oklch(0.23366 0.026081 338.196)`,sidebarRowHover:`oklch(0.23366 0.026081 338.196)`,sidebarRowActive:`oklch(0.23366 0.026081 338.196)`,sidebarRowSelected:`oklch(0.23366 0.026081 338.196)`,sidebarBorder:`oklch(0.269132 0.030766 351.067)`,terminalBackground:`oklch(0.22813 0.020366 307.469)`,terminalForeground:`oklch(0.980735 0.004092 301.426)`,terminalCursor:`oklch(0.591646 0.217985 0.584)`,terminalSelection:`oklch(0.313674 0.030572 310.061)`,terminalScrollbar:`oklch(0.266817 0.02897 344.461)`,terminalScrollbarHover:`oklch(0.360924 0.021469 316.83)`}},sidebarArtwork:!0},nn={id:`grove`,label:`Grove`,appearance:`light`,colors:{canvas:`oklch(0.972369 0.005497 157.15)`,chrome:`oklch(0.972369 0.005497 157.15)`,toolbar:`oklch(0.972369 0.005497 157.15)`,toolbarForeground:`oklch(0.222003 0.03479 328.979)`,toolbarBorder:`oklch(0.864831 0.01312 167.255)`,toolbarControl:`oklch(0.932695 0.003778 160.944)`,toolbarControlForeground:`oklch(0.222003 0.03479 328.979)`,toolbarControlHover:`oklch(0.949276 0.004496 159.002)`,surface:`oklch(0.972369 0.005497 157.15)`,surfaceRaised:`oklch(0.972369 0.005497 157.15)`,surfaceOverlay:`oklch(0.932695 0.003778 160.944)`,text:`oklch(0.222003 0.03479 328.979)`,textMuted:`oklch(0.527266 0.012309 320.683)`,border:`oklch(0.864831 0.01312 167.255)`,input:`oklch(0.829746 0.016084 168.234)`,focus:`oklch(0.523295 0.112292 158.089)`,accent:`oklch(0.523295 0.112292 158.089)`,accentForeground:`oklch(0.990339 0.008411 325.64)`,secondary:`oklch(0.945455 0.012308 162.879)`,secondaryForeground:`oklch(0.222003 0.03479 328.979)`,muted:`oklch(0.945455 0.012308 162.879)`,mutedForeground:`oklch(0.527266 0.012309 320.683)`,placeholder:`oklch(0.527266 0.012309 320.683)`,secondaryLabel:`oklch(0.527266 0.012309 320.683)`,iconMuted:`oklch(0.527266 0.012309 320.683)`,error:`oklch(0.637823 0.237287 25.436)`,errorForeground:`oklch(0.509494 0.208583 28.513)`,errorSurface:`oklch(0.936968 0.014243 26.295)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.545036 0.155019 45.359)`,warningSurface:`oklch(0.953175 0.02009 93.379)`,update:`oklch(0.523295 0.112292 158.089)`,updateForeground:`oklch(0.523295 0.112292 158.089)`,updateSurface:`oklch(0.900411 0.02384 164.795)`,accentSurface:`oklch(0.949276 0.004496 159.002)`,accentSurfaceForeground:`oklch(0.222003 0.03479 328.979)`,messageSurface:`oklch(0.949276 0.004496 159.002)`,messageForeground:`oklch(0.222003 0.03479 328.979)`,messageAction:`oklch(0.523295 0.112292 158.089)`,messageActionForeground:`oklch(0.990339 0.008411 325.64)`,messageActionHover:`oklch(0.488753 0.096536 77.829)`,codeBackground:`oklch(0.972369 0.005497 157.15)`,codeForeground:`oklch(0.222003 0.03479 328.979)`,searchMatchBackground:`oklch(0.915 0.11 85)`,searchMatchForeground:`oklch(0.216164 0.028283 77.423)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.972369 0.005497 157.15)`,sidebarForeground:`oklch(0.222003 0.03479 328.979)`,sidebarMutedForeground:`oklch(0.527266 0.012309 320.683)`,sidebarControlSurface:`oklch(0.945455 0.012308 162.879)`,sidebarRowHover:`oklch(0.949276 0.004496 159.002)`,sidebarRowActive:`oklch(0.949276 0.004496 159.002)`,sidebarRowSelected:`oklch(0.949276 0.004496 159.002)`,sidebarBorder:`oklch(0.864831 0.01312 167.255)`,terminalBackground:`oklch(0.972369 0.005497 157.15)`,terminalForeground:`oklch(0.222003 0.03479 328.979)`,terminalCursor:`oklch(0.523295 0.112292 158.089)`,terminalSelection:`oklch(0.891377 0.026164 164.929)`,terminalScrollbar:`oklch(0.824752 0.001392 294.641)`,terminalScrollbarHover:`oklch(0.755495 0.004415 318.776)`},variants:{dark:{canvas:`oklch(0.260865 0.02152 162.75)`,chrome:`oklch(0.260865 0.02152 162.75)`,toolbar:`oklch(0.260865 0.02152 162.75)`,toolbarForeground:`oklch(0.990339 0.008411 325.64)`,toolbarBorder:`oklch(0.457475 0.044046 160.971)`,toolbarControl:`oklch(0.411828 0.014378 166.627)`,toolbarControlForeground:`oklch(0.990339 0.008411 325.64)`,toolbarControlHover:`oklch(0.363192 0.016572 165.32)`,surface:`oklch(0.260865 0.02152 162.75)`,surfaceRaised:`oklch(0.260865 0.02152 162.75)`,surfaceOverlay:`oklch(0.411828 0.014378 166.627)`,text:`oklch(0.990339 0.008411 325.64)`,textMuted:`oklch(0.715427 0.010896 171.428)`,border:`oklch(0.457475 0.044046 160.971)`,input:`oklch(0.519849 0.049896 160.863)`,focus:`oklch(0.796228 0.133058 157.319)`,accent:`oklch(0.796228 0.133058 157.319)`,accentForeground:`oklch(0.222003 0.03479 328.979)`,secondary:`oklch(0.339728 0.039456 160.274)`,secondaryForeground:`oklch(0.990339 0.008411 325.64)`,muted:`oklch(0.339728 0.039456 160.274)`,mutedForeground:`oklch(0.715427 0.010896 171.428)`,placeholder:`oklch(0.715427 0.010896 171.428)`,secondaryLabel:`oklch(0.715427 0.010896 171.428)`,iconMuted:`oklch(0.715427 0.010896 171.428)`,error:`oklch(0.655108 0.221148 23.473)`,errorForeground:`oklch(0.704237 0.187511 22.228)`,errorSurface:`oklch(0.312773 0.02923 32.121)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.829017 0.171221 81.038)`,warningSurface:`oklch(0.345524 0.046882 99.736)`,update:`oklch(0.796228 0.133058 157.319)`,updateForeground:`oklch(0.796228 0.133058 157.319)`,updateSurface:`oklch(0.448116 0.062637 158.86)`,accentSurface:`oklch(0.363192 0.016572 165.32)`,accentSurfaceForeground:`oklch(0.990339 0.008411 325.64)`,messageSurface:`oklch(0.363192 0.016572 165.32)`,messageForeground:`oklch(0.990339 0.008411 325.64)`,messageAction:`oklch(0.796228 0.133058 157.319)`,messageActionForeground:`oklch(0.222003 0.03479 328.979)`,messageActionHover:`oklch(0.815227 0.117902 84.21)`,codeBackground:`oklch(0.260865 0.02152 162.75)`,codeForeground:`oklch(0.990339 0.008411 325.64)`,searchMatchBackground:`oklch(0.55 0.1 85)`,searchMatchForeground:`oklch(0.970151 0 0)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.260865 0.02152 162.75)`,sidebarForeground:`oklch(0.990339 0.008411 325.64)`,sidebarMutedForeground:`oklch(0.715427 0.010896 171.428)`,sidebarControlSurface:`oklch(0.339728 0.039456 160.274)`,sidebarRowHover:`oklch(0.363192 0.016572 165.32)`,sidebarRowActive:`oklch(0.363192 0.016572 165.32)`,sidebarRowSelected:`oklch(0.363192 0.016572 165.32)`,sidebarBorder:`oklch(0.457475 0.044046 160.971)`,terminalBackground:`oklch(0.260865 0.02152 162.75)`,terminalForeground:`oklch(0.990339 0.008411 325.64)`,terminalCursor:`oklch(0.796228 0.133058 157.319)`,terminalSelection:`oklch(0.464636 0.066083 158.72)`,terminalScrollbar:`oklch(0.594692 0.006862 176.022)`,terminalScrollbarHover:`oklch(0.687968 0.00354 193.55)`}},sidebarArtwork:!0},rn={id:`ocean`,label:`Ocean`,appearance:`light`,colors:{canvas:`oklch(0.974199 0.002856 241.597)`,chrome:`oklch(0.974199 0.002856 241.597)`,toolbar:`oklch(0.974199 0.002856 241.597)`,toolbarForeground:`oklch(0.222003 0.03479 328.979)`,toolbarBorder:`oklch(0.867646 0.013482 252.362)`,toolbarControl:`oklch(0.934442 0.003181 269.1)`,toolbarControlForeground:`oklch(0.222003 0.03479 328.979)`,toolbarControlHover:`oklch(0.951058 0.002962 258.339)`,surface:`oklch(0.974199 0.002856 241.597)`,surfaceRaised:`oklch(0.974199 0.002856 241.597)`,surfaceOverlay:`oklch(0.934442 0.003181 269.1)`,text:`oklch(0.222003 0.03479 328.979)`,textMuted:`oklch(0.528741 0.01828 313.823)`,border:`oklch(0.867646 0.013482 252.362)`,input:`oklch(0.832939 0.017389 252.598)`,focus:`oklch(0.536684 0.120219 247.01)`,accent:`oklch(0.536684 0.120219 247.01)`,accentForeground:`oklch(0.990339 0.008411 325.64)`,secondary:`oklch(0.948004 0.009649 241.695)`,secondaryForeground:`oklch(0.222003 0.03479 328.979)`,muted:`oklch(0.948004 0.009649 241.695)`,mutedForeground:`oklch(0.528741 0.01828 313.823)`,placeholder:`oklch(0.528741 0.01828 313.823)`,secondaryLabel:`oklch(0.528741 0.01828 313.823)`,iconMuted:`oklch(0.528741 0.01828 313.823)`,error:`oklch(0.637823 0.237287 25.436)`,errorForeground:`oklch(0.509494 0.208583 28.513)`,errorSurface:`oklch(0.938747 0.016377 7.186)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.546927 0.155556 45.359)`,warningSurface:`oklch(0.954846 0.016009 81.731)`,update:`oklch(0.536684 0.120219 247.01)`,updateForeground:`oklch(0.536684 0.120219 247.01)`,updateSurface:`oklch(0.904165 0.021144 241.874)`,accentSurface:`oklch(0.951058 0.002962 258.339)`,accentSurfaceForeground:`oklch(0.222003 0.03479 328.979)`,messageSurface:`oklch(0.951058 0.002962 258.339)`,messageForeground:`oklch(0.222003 0.03479 328.979)`,messageAction:`oklch(0.536684 0.120219 247.01)`,messageActionForeground:`oklch(0.990339 0.008411 325.64)`,messageActionHover:`oklch(0.45151 0.074407 201.516)`,codeBackground:`oklch(0.974199 0.002856 241.597)`,codeForeground:`oklch(0.222003 0.03479 328.979)`,searchMatchBackground:`oklch(0.915 0.11 85)`,searchMatchForeground:`oklch(0.216164 0.028283 77.423)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.974199 0.002856 241.597)`,sidebarForeground:`oklch(0.222003 0.03479 328.979)`,sidebarMutedForeground:`oklch(0.528741 0.01828 313.823)`,sidebarControlSurface:`oklch(0.948004 0.009649 241.695)`,sidebarRowHover:`oklch(0.951058 0.002962 258.339)`,sidebarRowActive:`oklch(0.951058 0.002962 258.339)`,sidebarRowSelected:`oklch(0.951058 0.002962 258.339)`,sidebarBorder:`oklch(0.867646 0.013482 252.362)`,terminalBackground:`oklch(0.974199 0.002856 241.597)`,terminalForeground:`oklch(0.222003 0.03479 328.979)`,terminalCursor:`oklch(0.536684 0.120219 247.01)`,terminalSelection:`oklch(0.895373 0.023469 241.913)`,terminalScrollbar:`oklch(0.826271 0.006191 305.456)`,terminalScrollbarHover:`oklch(0.756866 0.008685 313.721)`},variants:{dark:{canvas:`oklch(0.242641 0.024125 250.573)`,chrome:`oklch(0.242641 0.024125 250.573)`,toolbar:`oklch(0.242641 0.024125 250.573)`,toolbarForeground:`oklch(0.990339 0.008411 325.64)`,toolbarBorder:`oklch(0.438653 0.039496 245.44)`,toolbarControl:`oklch(0.398517 0.018232 255.72)`,toolbarControlForeground:`oklch(0.990339 0.008411 325.64)`,toolbarControlHover:`oklch(0.348439 0.019942 253.696)`,surface:`oklch(0.242641 0.024125 250.573)`,surfaceRaised:`oklch(0.242641 0.024125 250.573)`,surfaceOverlay:`oklch(0.398517 0.018232 255.72)`,text:`oklch(0.990339 0.008411 325.64)`,textMuted:`oklch(0.691936 0.016294 261.588)`,border:`oklch(0.438653 0.039496 245.44)`,input:`oklch(0.500905 0.043574 244.781)`,focus:`oklch(0.758933 0.105833 241.548)`,accent:`oklch(0.758933 0.105833 241.548)`,accentForeground:`oklch(0.222003 0.03479 328.979)`,secondary:`oklch(0.319287 0.036766 246.065)`,secondaryForeground:`oklch(0.990339 0.008411 325.64)`,muted:`oklch(0.319287 0.036766 246.065)`,mutedForeground:`oklch(0.691936 0.016294 261.588)`,placeholder:`oklch(0.691936 0.016294 261.588)`,secondaryLabel:`oklch(0.691936 0.016294 261.588)`,iconMuted:`oklch(0.691936 0.016294 261.588)`,error:`oklch(0.655108 0.221148 23.473)`,errorForeground:`oklch(0.702184 0.189226 22.228)`,errorSurface:`oklch(0.298933 0.036443 350.094)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.829017 0.171221 81.038)`,warningSurface:`oklch(0.329449 0.028712 84.495)`,update:`oklch(0.758933 0.105833 241.548)`,updateForeground:`oklch(0.758933 0.105833 241.548)`,updateSurface:`oklch(0.424017 0.053575 243.695)`,accentSurface:`oklch(0.348439 0.019942 253.696)`,accentSurfaceForeground:`oklch(0.990339 0.008411 325.64)`,messageSurface:`oklch(0.348439 0.019942 253.696)`,messageForeground:`oklch(0.990339 0.008411 325.64)`,messageAction:`oklch(0.758933 0.105833 241.548)`,messageActionForeground:`oklch(0.222003 0.03479 328.979)`,messageActionHover:`oklch(0.815308 0.096174 199.862)`,codeBackground:`oklch(0.242641 0.024125 250.573)`,codeForeground:`oklch(0.990339 0.008411 325.64)`,searchMatchBackground:`oklch(0.55 0.1 85)`,searchMatchForeground:`oklch(0.970151 0 0)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.242641 0.024125 250.573)`,sidebarForeground:`oklch(0.990339 0.008411 325.64)`,sidebarMutedForeground:`oklch(0.691936 0.016294 261.588)`,sidebarControlSurface:`oklch(0.319287 0.036766 246.065)`,sidebarRowHover:`oklch(0.348439 0.019942 253.696)`,sidebarRowActive:`oklch(0.348439 0.019942 253.696)`,sidebarRowSelected:`oklch(0.348439 0.019942 253.696)`,sidebarBorder:`oklch(0.438653 0.039496 245.44)`,terminalBackground:`oklch(0.242641 0.024125 250.573)`,terminalForeground:`oklch(0.990339 0.008411 325.64)`,terminalCursor:`oklch(0.758933 0.105833 241.548)`,terminalSelection:`oklch(0.439946 0.0561 243.479)`,terminalScrollbar:`oklch(0.58613 0.012959 267.22)`,terminalScrollbarHover:`oklch(0.681569 0.010909 276.465)`}},sidebarArtwork:!0},an={id:`ember`,label:`Ember`,appearance:`light`,colors:{canvas:`oklch(0.976527 0.002685 60.725)`,chrome:`oklch(0.976527 0.002685 60.725)`,toolbar:`oklch(0.976527 0.002685 60.725)`,toolbarForeground:`oklch(0.222003 0.03479 328.979)`,toolbarBorder:`oklch(0.870631 0.013204 39.431)`,toolbarControl:`oklch(0.936659 0.002879 29.96)`,toolbarControlForeground:`oklch(0.222003 0.03479 328.979)`,toolbarControlHover:`oklch(0.953321 0.002701 42.266)`,surface:`oklch(0.976527 0.002685 60.725)`,surfaceRaised:`oklch(0.976527 0.002685 60.725)`,surfaceOverlay:`oklch(0.936659 0.002879 29.96)`,text:`oklch(0.222003 0.03479 328.979)`,textMuted:`oklch(0.530413 0.018453 341.181)`,border:`oklch(0.870631 0.013204 39.431)`,input:`oklch(0.836213 0.017153 38.661)`,focus:`oklch(0.552831 0.129438 44.656)`,accent:`oklch(0.552831 0.129438 44.656)`,accentForeground:`oklch(0.990339 0.008411 325.64)`,secondary:`oklch(0.950842 0.009273 51.528)`,secondaryForeground:`oklch(0.222003 0.03479 328.979)`,muted:`oklch(0.950842 0.009273 51.528)`,mutedForeground:`oklch(0.530413 0.018453 341.181)`,placeholder:`oklch(0.530413 0.018453 341.181)`,secondaryLabel:`oklch(0.530413 0.018453 341.181)`,iconMuted:`oklch(0.530413 0.018453 341.181)`,error:`oklch(0.637823 0.237287 25.436)`,errorForeground:`oklch(0.509494 0.208583 28.513)`,errorSurface:`oklch(0.941094 0.019938 19.375)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.549154 0.156188 45.359)`,warningSurface:`oklch(0.957148 0.020843 76.702)`,update:`oklch(0.552831 0.129438 44.656)`,updateForeground:`oklch(0.552831 0.129438 44.656)`,updateSurface:`oklch(0.907902 0.020621 49.36)`,accentSurface:`oklch(0.953321 0.002701 42.266)`,accentSurfaceForeground:`oklch(0.222003 0.03479 328.979)`,messageSurface:`oklch(0.953321 0.002701 42.266)`,messageForeground:`oklch(0.222003 0.03479 328.979)`,messageAction:`oklch(0.552831 0.129438 44.656)`,messageActionForeground:`oklch(0.990339 0.008411 325.64)`,messageActionHover:`oklch(0.471223 0.145843 24.688)`,codeBackground:`oklch(0.976527 0.002685 60.725)`,codeForeground:`oklch(0.222003 0.03479 328.979)`,searchMatchBackground:`oklch(0.915 0.11 85)`,searchMatchForeground:`oklch(0.216164 0.028283 77.423)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.976527 0.002685 60.725)`,sidebarForeground:`oklch(0.222003 0.03479 328.979)`,sidebarMutedForeground:`oklch(0.530413 0.018453 341.181)`,sidebarControlSurface:`oklch(0.950842 0.009273 51.528)`,sidebarRowHover:`oklch(0.953321 0.002701 42.266)`,sidebarRowActive:`oklch(0.953321 0.002701 42.266)`,sidebarRowSelected:`oklch(0.953321 0.002701 42.266)`,sidebarBorder:`oklch(0.870631 0.013204 39.431)`,terminalBackground:`oklch(0.976527 0.002685 60.725)`,terminalForeground:`oklch(0.222003 0.03479 328.979)`,terminalCursor:`oklch(0.552831 0.129438 44.656)`,terminalSelection:`oklch(0.899296 0.022939 49.163)`,terminalScrollbar:`oklch(0.828185 0.005884 349.533)`,terminalScrollbarHover:`oklch(0.758584 0.008423 341.16)`},variants:{dark:{canvas:`oklch(0.245899 0.019144 42.044)`,chrome:`oklch(0.245899 0.019144 42.044)`,toolbar:`oklch(0.245899 0.019144 42.044)`,toolbarForeground:`oklch(0.990339 0.008411 325.64)`,toolbarBorder:`oklch(0.44099 0.040202 48.807)`,toolbarControl:`oklch(0.401111 0.014308 34.896)`,toolbarControlForeground:`oklch(0.990339 0.008411 325.64)`,toolbarControlHover:`oklch(0.351262 0.01565 37.592)`,surface:`oklch(0.245899 0.019144 42.044)`,surfaceRaised:`oklch(0.245899 0.019144 42.044)`,surfaceOverlay:`oklch(0.401111 0.014308 34.896)`,text:`oklch(0.990339 0.008411 325.64)`,textMuted:`oklch(0.692479 0.015227 30.963)`,border:`oklch(0.44099 0.040202 48.807)`,input:`oklch(0.503003 0.045721 49.44)`,focus:`oklch(0.762174 0.124117 52.082)`,accent:`oklch(0.762174 0.124117 52.082)`,accentForeground:`oklch(0.222003 0.03479 328.979)`,secondary:`oklch(0.322144 0.03574 48.309)`,secondaryForeground:`oklch(0.990339 0.008411 325.64)`,muted:`oklch(0.322144 0.03574 48.309)`,mutedForeground:`oklch(0.692479 0.015227 30.963)`,placeholder:`oklch(0.692479 0.015227 30.963)`,secondaryLabel:`oklch(0.692479 0.015227 30.963)`,iconMuted:`oklch(0.692479 0.015227 30.963)`,error:`oklch(0.655108 0.221148 23.473)`,errorForeground:`oklch(0.702184 0.189226 22.228)`,errorSurface:`oklch(0.310955 0.059624 24.334)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.829017 0.171221 81.038)`,warningSurface:`oklch(0.339137 0.055638 66.911)`,update:`oklch(0.762174 0.124117 52.082)`,updateForeground:`oklch(0.762174 0.124117 52.082)`,updateSurface:`oklch(0.426749 0.057547 50.618)`,accentSurface:`oklch(0.351262 0.01565 37.592)`,accentSurfaceForeground:`oklch(0.990339 0.008411 325.64)`,messageSurface:`oklch(0.351262 0.01565 37.592)`,messageForeground:`oklch(0.990339 0.008411 325.64)`,messageAction:`oklch(0.762174 0.124117 52.082)`,messageActionForeground:`oklch(0.222003 0.03479 328.979)`,messageActionHover:`oklch(0.775116 0.117953 29.014)`,codeBackground:`oklch(0.245899 0.019144 42.044)`,codeForeground:`oklch(0.990339 0.008411 325.64)`,searchMatchBackground:`oklch(0.55 0.1 85)`,searchMatchForeground:`oklch(0.970151 0 0)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.245899 0.019144 42.044)`,sidebarForeground:`oklch(0.990339 0.008411 325.64)`,sidebarMutedForeground:`oklch(0.692479 0.015227 30.963)`,sidebarControlSurface:`oklch(0.322144 0.03574 48.309)`,sidebarRowHover:`oklch(0.351262 0.01565 37.592)`,sidebarRowActive:`oklch(0.351262 0.01565 37.592)`,sidebarRowSelected:`oklch(0.351262 0.01565 37.592)`,sidebarBorder:`oklch(0.44099 0.040202 48.807)`,terminalBackground:`oklch(0.245899 0.019144 42.044)`,terminalForeground:`oklch(0.990339 0.008411 325.64)`,terminalCursor:`oklch(0.762174 0.124117 52.082)`,terminalSelection:`oklch(0.442681 0.0608 50.795)`,terminalScrollbar:`oklch(0.587861 0.010463 20.444)`,terminalScrollbarHover:`oklch(0.682876 0.009156 9.796)`}},sidebarArtwork:!0},on={id:`iris`,label:`Iris`,appearance:`light`,colors:{canvas:`oklch(0.976531 0.003855 303.226)`,chrome:`oklch(0.976531 0.003855 303.226)`,toolbar:`oklch(0.976531 0.003855 303.226)`,toolbarForeground:`oklch(0.222003 0.03479 328.979)`,toolbarBorder:`oklch(0.869608 0.018226 303.859)`,toolbarControl:`oklch(0.936665 0.005041 310.132)`,toolbarControlForeground:`oklch(0.222003 0.03479 328.979)`,toolbarControlHover:`oklch(0.953326 0.004536 307.676)`,surface:`oklch(0.976531 0.003855 303.226)`,surfaceRaised:`oklch(0.976531 0.003855 303.226)`,surfaceOverlay:`oklch(0.936665 0.005041 310.132)`,text:`oklch(0.222003 0.03479 328.979)`,textMuted:`oklch(0.529955 0.022319 321.556)`,border:`oklch(0.869608 0.018226 303.859)`,input:`oklch(0.834773 0.023405 303.676)`,focus:`oklch(0.525348 0.15373 294.176)`,accent:`oklch(0.525348 0.15373 294.176)`,accentForeground:`oklch(0.990339 0.008411 325.64)`,secondary:`oklch(0.950194 0.011956 300.733)`,secondaryForeground:`oklch(0.222003 0.03479 328.979)`,muted:`oklch(0.950194 0.011956 300.733)`,mutedForeground:`oklch(0.529955 0.022319 321.556)`,placeholder:`oklch(0.529955 0.022319 321.556)`,secondaryLabel:`oklch(0.529955 0.022319 321.556)`,iconMuted:`oklch(0.529955 0.022319 321.556)`,error:`oklch(0.637823 0.237287 25.436)`,errorForeground:`oklch(0.509494 0.208583 28.513)`,errorSurface:`oklch(0.941043 0.019582 4.235)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.549154 0.156188 45.359)`,warningSurface:`oklch(0.957054 0.016197 69.932)`,update:`oklch(0.525348 0.15373 294.176)`,updateForeground:`oklch(0.525348 0.15373 294.176)`,updateSurface:`oklch(0.90602 0.025754 299.867)`,accentSurface:`oklch(0.953326 0.004536 307.676)`,accentSurfaceForeground:`oklch(0.222003 0.03479 328.979)`,messageSurface:`oklch(0.953326 0.004536 307.676)`,messageForeground:`oklch(0.222003 0.03479 328.979)`,messageAction:`oklch(0.525348 0.15373 294.176)`,messageActionForeground:`oklch(0.990339 0.008411 325.64)`,messageActionHover:`oklch(0.471003 0.16748 340.687)`,codeBackground:`oklch(0.976531 0.003855 303.226)`,codeForeground:`oklch(0.222003 0.03479 328.979)`,searchMatchBackground:`oklch(0.915 0.11 85)`,searchMatchForeground:`oklch(0.216164 0.028283 77.423)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.976531 0.003855 303.226)`,sidebarForeground:`oklch(0.222003 0.03479 328.979)`,sidebarMutedForeground:`oklch(0.529955 0.022319 321.556)`,sidebarControlSurface:`oklch(0.950194 0.011956 300.733)`,sidebarRowHover:`oklch(0.953326 0.004536 307.676)`,sidebarRowActive:`oklch(0.953326 0.004536 307.676)`,sidebarRowSelected:`oklch(0.953326 0.004536 307.676)`,sidebarBorder:`oklch(0.869608 0.018226 303.859)`,terminalBackground:`oklch(0.976531 0.003855 303.226)`,terminalForeground:`oklch(0.222003 0.03479 328.979)`,terminalCursor:`oklch(0.525348 0.15373 294.176)`,terminalSelection:`oklch(0.897143 0.028558 299.758)`,terminalScrollbar:`oklch(0.828195 0.008526 318.858)`,terminalScrollbarHover:`oklch(0.758596 0.010892 321.538)`},variants:{dark:{canvas:`oklch(0.225975 0.031062 293.741)`,chrome:`oklch(0.225975 0.031062 293.741)`,toolbar:`oklch(0.225975 0.031062 293.741)`,toolbarForeground:`oklch(0.990339 0.008411 325.64)`,toolbarBorder:`oklch(0.40874 0.058536 295.893)`,toolbarControl:`oklch(0.386739 0.024023 297.509)`,toolbarControlForeground:`oklch(0.990339 0.008411 325.64)`,toolbarControlHover:`oklch(0.335291 0.026008 296.394)`,surface:`oklch(0.225975 0.031062 293.741)`,surfaceRaised:`oklch(0.225975 0.031062 293.741)`,surfaceOverlay:`oklch(0.386739 0.024023 297.509)`,text:`oklch(0.990339 0.008411 325.64)`,textMuted:`oklch(0.663321 0.025932 301.862)`,border:`oklch(0.40874 0.058536 295.893)`,input:`oklch(0.46756 0.065775 296.265)`,focus:`oklch(0.671712 0.169136 293.929)`,accent:`oklch(0.671712 0.169136 293.929)`,accentForeground:`oklch(0.222003 0.03479 328.979)`,secondary:`oklch(0.291515 0.05276 294.209)`,secondaryForeground:`oklch(0.990339 0.008411 325.64)`,muted:`oklch(0.291515 0.05276 294.209)`,mutedForeground:`oklch(0.663321 0.025932 301.862)`,placeholder:`oklch(0.663321 0.025932 301.862)`,secondaryLabel:`oklch(0.663321 0.025932 301.862)`,iconMuted:`oklch(0.663321 0.025932 301.862)`,error:`oklch(0.655108 0.221148 23.473)`,errorForeground:`oklch(0.702184 0.189226 22.228)`,errorSurface:`oklch(0.291658 0.054707 352.238)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.829017 0.171221 81.038)`,warningSurface:`oklch(0.318952 0.033845 51.646)`,update:`oklch(0.671712 0.169136 293.929)`,updateForeground:`oklch(0.671712 0.169136 293.929)`,updateSurface:`oklch(0.381668 0.081286 294.195)`,accentSurface:`oklch(0.335291 0.026008 296.394)`,accentSurfaceForeground:`oklch(0.990339 0.008411 325.64)`,messageSurface:`oklch(0.335291 0.026008 296.394)`,messageForeground:`oklch(0.990339 0.008411 325.64)`,messageAction:`oklch(0.671712 0.169136 293.929)`,messageActionForeground:`oklch(0.222003 0.03479 328.979)`,messageActionHover:`oklch(0.813537 0.114101 337.23)`,codeBackground:`oklch(0.225975 0.031062 293.741)`,codeForeground:`oklch(0.990339 0.008411 325.64)`,searchMatchBackground:`oklch(0.55 0.1 85)`,searchMatchForeground:`oklch(0.970151 0 0)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.225975 0.031062 293.741)`,sidebarForeground:`oklch(0.990339 0.008411 325.64)`,sidebarMutedForeground:`oklch(0.663321 0.025932 301.862)`,sidebarControlSurface:`oklch(0.291515 0.05276 294.209)`,sidebarRowHover:`oklch(0.335291 0.026008 296.394)`,sidebarRowActive:`oklch(0.335291 0.026008 296.394)`,sidebarRowSelected:`oklch(0.335291 0.026008 296.394)`,sidebarBorder:`oklch(0.40874 0.058536 295.893)`,terminalBackground:`oklch(0.225975 0.031062 293.741)`,terminalForeground:`oklch(0.990339 0.008411 325.64)`,terminalCursor:`oklch(0.671712 0.169136 293.929)`,terminalSelection:`oklch(0.395417 0.085554 294.182)`,terminalScrollbar:`oklch(0.578663 0.017888 302.229)`,terminalScrollbarHover:`oklch(0.676012 0.015271 305.433)`}},sidebarArtwork:!0},sn=[tn,nn,rn,an,on],cn=`orchid`,ln=`grove`,un=`ocean`,dn=`ember`,fn=`iris`,R=`t3code:themes:v1`,pn=`t3code:theme-follow-system`,mn=`t3code:theme-appearance-mode`,hn=`t3code:theme-halves:v1`,gn=`t3-chat-dark`,_n=n,vn=new Set(Qt),yn=[],bn=new Set,z=null,xn=new Set,Sn=null;function Cn(){return Sn}function wn(e){return xn.add(e),()=>xn.delete(e)}function Tn(e){if(Sn!==e){Sn=e;for(let e of xn)e()}}function B(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function En(e){return e===`light`||e===`dark`}function Dn(e){return typeof e==`string`&&H(e)!==null}function On(e){return typeof e==`string`&&/^[a-z0-9](?:[a-z0-9-]{0,47})$/.test(e)}function kn(e){return typeof e==`string`&&e.trim().length>0&&e.trim().length<=48}function An(e){return B(e)&&typeof e.id==`string`&&/^[a-z0-9][a-z0-9.:-]{0,127}$/i.test(e.id)&&kn(e.label)?{id:e.id,label:e.label.trim()}:void 0}function jn(e){let t={};for(let[n,r]of Object.entries(e)){let e=H(r);vn.has(n)&&e&&(t[n]=e)}return t}function Mn(e,t){return B(e)?{...Z(t),...jn(e)}:null}function Nn(e,t){if(e===void 0)return;if(!B(e))return null;let n={};for(let[r,i]of Object.entries(e)){if(!En(r))return null;if(r===t)continue;let e=Mn(i,r);if(!e)return null;n[r]=e}return Object.keys(n).length>0?n:void 0}function Pn(e){if(!B(e)||!On(e.id)||L.has(e.id)||!kn(e.label)||!En(e.appearance))return null;let t=Mn(e.colors,e.appearance);if(!t)return null;let n=Nn(e.variants,e.appearance);if(e.variants!==void 0&&n===null)return null;let r=An(e.collection);return{id:e.id,label:e.label.trim(),appearance:e.appearance,colors:t,...n?{variants:n}:{},...r?{collection:r}:{},...e.managed===!0?{managed:!0}:{}}}function Fn(e){let t=[];for(let n of e){let e=Pn(n);e&&!t.some(t=>t.id===e.id)&&t.push(e)}return t}function In(){if(typeof window>`u`)return{status:`ready`,storedThemes:[],themes:[]};let e;try{e=window.localStorage.getItem(R)}catch(e){return{status:`unavailable`,reason:`storage-unavailable`,cause:e}}if(!e)return{status:`ready`,storedThemes:[],themes:[]};let t;try{t=JSON.parse(e)}catch{return{status:`unavailable`,reason:`malformed`}}return Array.isArray(t)?{status:`ready`,storedThemes:t,themes:Fn(t)}:{status:`unavailable`,reason:`malformed`}}function Ln(){return z===null&&(z=In()),z}function Rn(){for(let e of bn)e()}function zn(){z=null,Rn()}var Bn=[];function Vn(){let e=Ln();return e.status===`ready`?e.themes:Bn}function Hn(){return yn}function Un(e){return!i(yn,e)&&(yn=e,Rn(),!0)}function Wn(e){return L.has(e)}function Gn(e){return Ir().themes.filter(t=>t.collection?.id===e)}function Kn(e){if(bn.add(e),typeof window>`u`)return()=>bn.delete(e);let t=e=>{(e.key===`t3code:themes:v1`||e.key===null)&&zn()};return window.addEventListener(`storage`,t),()=>{bn.delete(e),window.removeEventListener(`storage`,t)}}var qn={...Zt,[gn]:cn,"t3-grove":ln,"t3-ocean":un,"t3-ember":dn,"t3-iris":fn};function Jn(e){return qn[e]??e}function Yn(e){return e===gn?e:Jn(e)}function Xn(e){return Jn(e)}function Zn(e){return e===gn?`dark`:null}function Qn(e){return e===`dark`?er??=ur(en):$n??=ur($t)}var $n,er,tr={r:255,g:250,b:255},nr={r:36,g:21,b:35},rr={r:255,g:255,b:255},ir={r:0,g:0,b:0},ar=ie(`oklch`);function or(e){if(typeof e!=`string`)return null;let t=e.trim(),n=ve(t);if(!n)return null;let r=ar(n),i=r.l??0,a=r.c??0,o=r.h??0,s=/\/\s*none\s*\)$/i.test(t)?0:r.alpha??1;return[i,a,o,s].every(Number.isFinite)?{color:{L:Math.min(1,Math.max(0,i)),C:Math.max(0,a),h:o},alpha:Math.min(1,Math.max(0,s))}:null}function sr(e,t){return(Math.abs(e)<10**-t/2?0:e).toFixed(t).replace(/(?:\.0+|(?:(\.[0-9]*?)0+))$/,`$1`)}function V(e,t=1){let n=e.C<5e-7?0:(e.h%360+360)%360,r=`${sr(e.L,6)} ${sr(e.C,6)} ${sr(n,3)}`;return t<1?`oklch(${r} / ${sr(t,4)})`:`oklch(${r})`}function H(e){let t=or(e);return t?V(t.color,t.alpha):null}function cr(e){let t=or(e),n=t?{rgb:J(t.color),alpha:t.alpha}:null;if(!n)return null;let r=lr(n.rgb);return n.alpha>=1?r:`${r}${Math.round(n.alpha*255).toString(16).padStart(2,`0`)}`}function U(e,t){let n=or(e);return n?J(n.color):t}function lr(e){return`#${[e.r,e.g,e.b].map(e=>Math.round(Math.min(255,Math.max(0,e))).toString(16).padStart(2,`0`)).join(``)}`}function W(e){return V(q(e))}function ur(e){return Object.fromEntries(Qt.map(t=>{let n=H(e[t]);if(!n)throw Error(`The color for "${t}" must be a literal CSS color such as oklch(0.62 0.2 280).`);return[t,n]}))}function dr(e){return{...e,colors:ur(e.colors),...e.variants?{variants:Object.fromEntries(Object.entries(e.variants).map(([e,t])=>[e,ur(t)]))}:{}}}function G(e,t,n){return{r:e.r+(t.r-e.r)*n,g:e.g+(t.g-e.g)*n,b:e.b+(t.b-e.b)*n}}function K(e){let t=e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};return .2126*t(e.r)+.7152*t(e.g)+.0722*t(e.b)}function fr(e){let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function pr(e){let t=e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055;return Math.round(Math.min(1,Math.max(0,t))*255)}function q(e){let t=fr(e.r),n=fr(e.g),r=fr(e.b),i=Math.cbrt(.4122214708*t+.5363325363*n+.0514459929*r),a=Math.cbrt(.2119034982*t+.6806995451*n+.1073969566*r),o=Math.cbrt(.0883024619*t+.2817188376*n+.6299787005*r),s=.2104542553*i+.793617785*a-.0040720468*o,c=1.9779984951*i-2.428592205*a+.4505937099*o,l=.0259040371*i+.7827717662*a-.808675766*o;return{L:s,C:Math.hypot(c,l),h:Math.atan2(l,c)*180/Math.PI}}function mr({L:e,C:t,h:n}){let r=n*Math.PI/180,i=t*Math.cos(r),a=t*Math.sin(r),o=(e+.3963377774*i+.2158037573*a)**3,s=(e-.1055613458*i-.0638541728*a)**3,c=(e-.0894841775*i-1.291485548*a)**3;return{r:4.0767416621*o-3.3077115913*s+.2309699292*c,g:-1.2684380046*o+2.6097574011*s-.3413193965*c,b:-.0041960863*o-.7034186147*s+1.707614701*c}}function hr(e){let t=t=>{let n=mr({...e,C:t});return[n.r,n.g,n.b].every(e=>e>=-1e-4&&e<=1.0001)};if(t(e.C))return e;let n=0,r=e.C,i=1e-6,a=Math.max(1,Math.ceil(Math.log2(Math.max(e.C,i))-Math.log2(i)));for(let e=0;e<a;e+=1){let e=(n+r)/2;t(e)?n=e:r=e}return{...e,C:n}}function J(e){let t=mr(hr(e));return{r:pr(t.r),g:pr(t.g),b:pr(t.b)}}function gr(e){return V(hr(e))}function _r(e,t,n,r){let i=r===`lighter`?e.L:0,a=r===`lighter`?1:e.L,o={...e};if(Y(J(o),t)>=n)return o;for(let s=0;s<18;s+=1){let s=(i+a)/2;o={...e,L:s},Y(J(o),t)>=n?r===`lighter`?a=s:i=s:r===`lighter`?i=s:a=s}return{...e,L:r===`lighter`?a:i}}var vr={light:{error:`#fb2c36`,errorForeground:`#c10007`,warning:`#fe9a00`,warningForeground:`#bb4d00`},dark:{error:`#fb414a`,errorForeground:`#ff6467`,warning:`#fe9a00`,warningForeground:`#ffb900`}};function yr(e){let t=K(e)<.179?`dark`:`light`,n=vr[t],r=t===`dark`?.16:.08,i=t=>G(e,U(t,e),r),a=(n,r)=>gr(_r(q(U(n,e)),r,4.6,t===`dark`?`lighter`:`darker`)),o=i(n.error),s=i(n.warning);return{error:H(n.error),errorForeground:a(n.errorForeground,o),errorSurface:W(o),warning:H(n.warning),warningForeground:a(n.warningForeground,s),warningSurface:W(s)}}function br(e,t,n){let r=Z(e),i=U(t,e===`dark`?{r:24,g:15,b:27}:{r:250,g:245,b:250}),a=U(n,{r:168,g:67,b:112}),o=q(i),s=q(a),c=K(i)<.179,l=s.C<.02?o.h:s.h,u=Math.min(.045,Math.max(.008,s.C*.22)),d=c?1:-1,f=(e,t=u)=>({L:Math.min(.98,Math.max(.05,o.L+d*e)),C:t,h:l}),p=e=>gr(e),m={L:c?.95:.2,C:Math.min(.035,s.C*.25),h:l},h=J(_r(m,i,7,c?`lighter`:`darker`)),g=wr(i,h),ee={L:Math.min(.85,Math.max(.35,s.L+(c?.06:-.02))),C:Math.max(s.C*.9,.06),h:(l+50)%360},te=J(ee),ne=X(te),re=X(a),ie=f(.045,u*1.4),_=J(ie),ae=f(.015),v=f(.05),oe=J(v),se=f(.075),y=f(c?.16:.12,Math.min(.07,s.C*.35)),ce=f(c?.21:.16,Math.min(.08,s.C*.4)),le=f(c?.1:.06,Math.min(.09,s.C*.5)),ue=J(le),de=f(c?.06:.04,Math.min(.06,s.C*.35)),b=J(de),x=f(c?.13:.08,Math.min(.11,s.C*.55)),S=J(x),C=f(c?.16:.1,Math.min(.13,s.C*.6)),fe=J(C),w=f(.035,u*.8),T=f(c?.14:.09,Math.min(.12,s.C*.55)),E=e=>gr(_r(m,e,4.6,c?`lighter`:`darker`)),pe=W(xr(b,h,1,4.6)),me=W(xr(oe,h,1,4.6)),he=J(f(.22,Math.min(.12,s.C))),ge=J(f(.4,Math.min(.18,s.C))),_e={...ee,L:ee.L+(c?.06:-.06)};return{...r,...yr(i),canvas:W(i),chrome:W(i),toolbar:W(i),toolbarForeground:W(h),toolbarBorder:p(f(c?.14:.1,Math.min(.08,s.C*.4))),toolbarControl:p(f(c?.09:.05,u*1.3)),toolbarControlForeground:W(h),toolbarControlHover:p(f(c?.14:.09,u*1.6)),surface:p(ae),surfaceRaised:p(v),surfaceOverlay:p(se),text:W(h),textMuted:W(g),border:p(y),input:p(ce),focus:W(a),accent:W(a),accentForeground:W(re),secondary:p(le),secondaryForeground:E(ue),muted:p(de),mutedForeground:pe,placeholder:me,secondaryLabel:W(g),iconMuted:W(g),update:W(a),updateForeground:E(J(T)),updateSurface:p(T),accentSurface:p(x),accentSurfaceForeground:E(S),messageSurface:p(C),messageForeground:E(fe),messageAction:W(te),messageActionForeground:W(ne),messageActionHover:p(_e),codeBackground:p(w),codeForeground:W(h),searchMatchBackground:W(he),searchMatchForeground:W(X(he)),searchMatchActiveBackground:W(ge),searchMatchActiveForeground:W(X(ge)),sidebar:p(ie),sidebarForeground:E(_),sidebarMutedForeground:W(wr(_,h)),sidebarControlSurface:p(f(c?.1:.07,u*1.5)),sidebarRowHover:p(f(c?.08:.06,Math.min(.08,s.C*.45))),sidebarRowActive:p(f(c?.12:.09,Math.min(.1,s.C*.55))),sidebarRowSelected:p(f(c?.14:.1,Math.min(.11,s.C*.6))),sidebarBorder:p(f(c?.17:.12,Math.min(.08,s.C*.4))),terminalBackground:W(i),terminalForeground:W(h),terminalCursor:W(a),terminalSelection:p(f(c?.18:.12,Math.min(.12,s.C*.55))),terminalScrollbar:p(f(c?.22:.16,u)),terminalScrollbarHover:p(f(c?.3:.22,u))}}function Y(e,t){let n=K(e),r=K(t),i=Math.max(n,r),a=Math.min(n,r);return(i+.05)/(a+.05)}function X(e){let t=Y(e,tr),n=Y(e,nr);return Math.max(t,n)>=4.5?t>=n?tr:nr:Y(e,rr)>=Y(e,ir)?rr:ir}function xr(e,t,n,r){let i=G(t,e,n);if(Y(i,e)>=r)return i;let a=t,o=0,s=n;for(let n=0;n<12;n+=1){let n=(o+s)/2,i=G(t,e,n);Y(i,e)>=r?(a=i,o=n):s=n}return a}var Sr=4.705,Cr=5.082;function wr(e,t){return xr(e,t,1,K(e)<.179?Cr:Sr)}function Z(e){return e===`dark`?tn.variants.dark:tn.colors}function Tr(e,t,n,r){let i=or(r);if(!i)return{...t,[n]:r};let a=V(i.color,i.alpha),o=U(t.canvas,e===`dark`?{r:24,g:15,b:27}:{r:250,g:245,b:250}),s=J(i.color),c=e=>G(e,s,i.alpha),l=c(o),u=U(t.accent,{r:168,g:67,b:112}),d=K(o)<.179,f=K(l)<.179,p=e=>W(e),m=e=>p(X(e)),h=e=>gr(_r(i.color,e,4.6,K(e)<.179?`lighter`:`darker`)),g=()=>{let e=G(o,l,d?.16:.08);return{foreground:h(e),surface:p(e)}};switch(n){case`canvas`:return{...t,canvas:a,chrome:a,toolbar:a};case`surface`:case`surfaceRaised`:case`surfaceOverlay`:case`input`:case`sidebarControlSurface`:return{...t,[n]:a};case`text`:return{...t,text:a,toolbarForeground:a,toolbarControlForeground:a};case`mutedForeground`:return{...t,textMuted:a,mutedForeground:a,placeholder:a,secondaryLabel:a,iconMuted:a,sidebarMutedForeground:a};case`border`:return{...t,border:a,toolbarBorder:a,sidebarBorder:a};case`secondary`:return{...t,secondary:a,secondaryForeground:m(l),muted:a,toolbarControl:a};case`accentSurface`:return{...t,accentSurface:a,accentSurfaceForeground:m(l),toolbarControlHover:a};case`accent`:{let e=G(o,l,d?.32:.16);return{...t,accent:a,accentForeground:m(l),focus:a,update:a,updateForeground:h(e),updateSurface:p(e),terminalCursor:a}}case`messageAction`:{let e=X(l),n=G(s,e===tr||e===rr?ir:rr,.12);return{...t,messageAction:a,messageActionForeground:p(e),messageActionHover:V(q(n),i.alpha)}}case`messageSurface`:return{...t,messageSurface:a,messageForeground:m(l)};case`searchMatchBackground`:return{...t,searchMatchBackground:p(l),searchMatchForeground:m(l)};case`searchMatchActiveBackground`:return{...t,searchMatchActiveBackground:p(l),searchMatchActiveForeground:m(l)};case`codeBackground`:return{...t,codeBackground:a,codeForeground:m(l)};case`sidebar`:return{...t,sidebar:a,sidebarForeground:m(l)};case`sidebarRowSelected`:{let e=U(t.sidebar,o),n=c(e);return{...t,sidebarRowHover:p(G(e,n,.5)),sidebarRowActive:p(G(e,n,.8)),sidebarRowSelected:a}}case`terminalBackground`:{let e=X(l);return{...t,terminalBackground:a,terminalForeground:p(e),terminalSelection:p(G(l,u,f?.35:.18)),terminalScrollbar:p(G(l,e,f?.42:.22)),terminalScrollbarHover:p(G(l,e,f?.55:.32))}}case`error`:{let e=g();return{...t,error:a,errorForeground:e.foreground,errorSurface:e.surface}}case`warning`:{let e=g();return{...t,warning:a,warningForeground:e.foreground,warningSurface:e.surface}}default:return{...t,[n]:a}}}var Er=sn;function Q(e){let t=Xn(e);return Er.find(e=>e.id===t)??Vn().find(e=>e.id===t)??yn.find(e=>e.id===t)??null}function Dr(e){let t=Xn(e);return Er.find(e=>e.id===t)?.sidebarArtwork===!0}function Or(e){let t=kr(e);return t.length===1?t[0]:null}function $(e,t){return t===e.appearance?e.colors:e.variants?.[t]??null}function kr(e){return[`light`,`dark`].filter(t=>$(e,t)!==null)}function Ar(e){return e===`system`?null:e===`light`||e===`dark`?e:Zn(e)||(Q(e)?.appearance??null)}function jr(e){return e.trim().toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``).slice(0,48)||`custom-theme`}var Mr=class extends e()(`ThemeLibraryStorageError`,{storageKey:n,operation:r([`read`,`write`]),reason:r([`malformed`,`storage-unavailable`]),cause:a(t())}){get message(){let e=this.operation===`read`?`from`:`to`;return`Failed to ${this.operation} the theme library ${e} ${this.storageKey}.`}};function Nr(e,t){if(typeof window<`u`){try{window.localStorage.setItem(R,JSON.stringify(e)),z={status:`ready`,storedThemes:e,themes:t}}catch(e){throw new Mr({storageKey:R,operation:`write`,reason:`storage-unavailable`,cause:e})}Rn()}}function Pr(e){if(e.status===`unavailable`)throw new Mr({storageKey:R,operation:`read`,reason:e.reason,...`cause`in e?{cause:e.cause}:{}});return e}function Fr(){return Pr(Ln())}function Ir(){return Pr(In())}function Lr(e,t){return B(e)&&e.id===t}function Rr(e,t){return B(e)&&B(e.collection)&&e.collection.id===t}function zr(e){if(L.has(e.id))throw Error(`The theme id "${e.id}" is reserved.`);let t=Fr();if(Er.some(t=>t.id===e.id)||t.storedThemes.some(t=>Lr(t,e.id)))throw Error(`A theme named "${e.label}" is already installed.`);let n=dr(e),r=[...t.themes,n];return Nr([...t.storedThemes,n],r),n}function Br(e){if(L.has(e.id))throw Error(`The theme id "${e.id}" is reserved.`);let t=Fr(),n=t.themes,r=n.findIndex(t=>t.id===e.id);if(r===-1)throw Error(`The theme "${e.label}" is not installed.`);let i=dr(e),a=[...n];a[r]=i;let o=[],s=!1;for(let n of t.storedThemes)Lr(n,e.id)?s||=(o.push(i),!0):o.push(n);return Nr(o,a),i}function Vr(e,t,n){if(t.length===0)throw Error(`A theme collection cannot be empty.`);let r=t.map(e=>Pn(e));if(r.some(t=>t===null||t.collection?.id!==e)||new Set(r.map(e=>e?.id)).size!==r.length)throw Error(`That theme collection is invalid.`);let i=r,a=Ir(),o=a.themes.filter(t=>t.collection?.id===e);if(n?.expectedCollection&&JSON.stringify(o)!==JSON.stringify(n.expectedCollection))throw Error(`Your installed themes changed while this package was downloading. Try again.`);let s=new Set(Er.map(e=>e.id));for(let t of a.storedThemes)!Rr(t,e)&&B(t)&&typeof t.id==`string`&&s.add(t.id);let c=i.find(e=>L.has(e.id)||s.has(e.id));if(c)throw Error(`A theme named "${c.label}" is already installed.`);let l=[],u=!1;for(let t of a.storedThemes)Rr(t,e)?u||=(l.push(...i),!0):l.push(t);return u||l.push(...i),Nr(l,Fn(l)),i}function Hr(e){Ur([e])}function Ur(e){let t=new Set(e);if(t.size===0)return;let n=Fr(),r=n.themes.filter(e=>!t.has(e.id));r.length!==n.themes.length&&Nr(n.storedThemes.filter(e=>!B(e)||typeof e.id!=`string`||!t.has(e.id)),r)}function Wr(e){if(!B(e))throw Error(`Theme colors must be objects.`);let t={};for(let[n,r]of Object.entries(e)){if(!vn.has(n))throw Error(`"${n}" is not a supported theme color role.`);let e=H(r);if(!e)throw Error(`The color for "${n}" must be a literal CSS color such as oklch(0.62 0.2 280).`);t[n]=e}if(Object.keys(t).length===0)throw Error(`Add at least one color role to the theme file.`);return t}function Gr(e){if(!B(e))throw Error(`Theme files must contain a JSON object.`);if(e.version!==1)throw Error(`This theme file uses an unsupported version. Expected 1.`);let t=e.name,n=e.appearance,r=e.colors;if(!kn(t))throw Error(`Theme files need a name (48 characters or fewer).`);if(!En(n))throw Error(`Theme files need an appearance of "light" or "dark".`);if(!B(r))throw Error(`Theme files need a colors object.`);let i=e.id===void 0?jr(t):e.id;if(!On(i))throw Error(`Theme ids may only contain lowercase letters, numbers, and hyphens.`);if(L.has(i))throw Error(`The theme id "${i}" is reserved.`);let a=Wr(r),o=An(e.collection);if(e.collection!==void 0&&!o)throw Error(`Theme collections need a valid id and label.`);let s=Z(n),c={};if(e.variants!==void 0){if(!B(e.variants))throw Error(`Theme variants must be an object.`);for(let[t,r]of Object.entries(e.variants)){if(!En(t))throw Error(`Theme variants may only be named "light" or "dark".`);if(t===n)throw Error(`Theme variants must not repeat the base appearance "${n}".`);c[t]={...Z(t),...Wr(r)}}}return{id:i,label:t.trim(),appearance:n,colors:{...s,...a},...Object.keys(c).length>0?{variants:c}:{},...o?{collection:o}:{},...e.managed===!0?{managed:!0}:{}}}function Kr(e){let t=dr(e),n={version:1,id:t.id,name:t.label,appearance:t.appearance,colors:t.colors,...t.variants?{variants:t.variants}:{},...t.collection?{collection:t.collection}:{},...t.managed?{managed:!0}:{}};return`${JSON.stringify(n,null,2)}\n`}var qr={canvas:`--app-theme-canvas`,chrome:`--app-theme-chrome`,toolbar:`--app-theme-toolbar`,toolbarForeground:`--app-theme-toolbar-foreground`,toolbarBorder:`--app-theme-toolbar-border`,toolbarControl:`--app-theme-toolbar-control`,toolbarControlForeground:`--app-theme-toolbar-control-foreground`,toolbarControlHover:`--app-theme-toolbar-control-hover`,surface:`--app-theme-surface`,surfaceRaised:`--app-theme-surface-raised`,surfaceOverlay:`--app-theme-surface-overlay`,text:`--app-theme-text`,textMuted:`--app-theme-text-muted`,border:`--app-theme-border`,input:`--app-theme-input`,focus:`--app-theme-focus`,accent:`--app-theme-accent`,accentForeground:`--app-theme-accent-foreground`,secondary:`--app-theme-secondary`,secondaryForeground:`--app-theme-secondary-foreground`,muted:`--app-theme-muted`,mutedForeground:`--app-theme-muted-foreground`,placeholder:`--app-theme-placeholder`,secondaryLabel:`--app-theme-secondary-label`,iconMuted:`--app-theme-icon-muted`,error:`--app-theme-error`,errorForeground:`--app-theme-error-foreground`,errorSurface:`--app-theme-error-surface`,warning:`--app-theme-warning`,warningForeground:`--app-theme-warning-foreground`,warningSurface:`--app-theme-warning-surface`,update:`--app-theme-update`,updateForeground:`--app-theme-update-foreground`,updateSurface:`--app-theme-update-surface`,accentSurface:`--app-theme-accent-surface`,accentSurfaceForeground:`--app-theme-accent-surface-foreground`,messageSurface:`--app-theme-message-surface`,messageForeground:`--app-theme-message-foreground`,messageAction:`--app-theme-message-action`,messageActionForeground:`--app-theme-message-action-foreground`,messageActionHover:`--app-theme-message-action-hover`,codeBackground:`--app-theme-code-background`,codeForeground:`--app-theme-code-foreground`,searchMatchBackground:`--app-theme-search-match-background`,searchMatchForeground:`--app-theme-search-match-foreground`,searchMatchActiveBackground:`--app-theme-search-match-active-background`,searchMatchActiveForeground:`--app-theme-search-match-active-foreground`,sidebar:`--app-theme-sidebar`,sidebarForeground:`--app-theme-sidebar-foreground`,sidebarMutedForeground:`--app-theme-sidebar-muted-foreground`,sidebarControlSurface:`--app-theme-sidebar-control-surface`,sidebarRowHover:`--app-theme-sidebar-row-hover`,sidebarRowActive:`--app-theme-sidebar-row-active`,sidebarRowSelected:`--app-theme-sidebar-row-selected`,sidebarBorder:`--app-theme-sidebar-border`,terminalBackground:`--app-theme-terminal-background`,terminalForeground:`--app-theme-terminal-foreground`,terminalCursor:`--app-theme-terminal-cursor`,terminalSelection:`--app-theme-terminal-selection-background`,terminalScrollbar:`--app-theme-terminal-scrollbar`,terminalScrollbarHover:`--app-theme-terminal-scrollbar-hover`};function Jr(e){return qr[e]}var Yr=`__preview`;function Xr(e,t){if(typeof document>`u`)return;let n=document.documentElement;if(n?.style){Tn(!1),n.dataset.themeId=Yr,n.classList.toggle(`dark`,t===`dark`);for(let[t,r]of Object.entries(e))Dn(r)&&n.style.setProperty(qr[t],r)}}function Zr(e,t){if(typeof document>`u`)return;let n=document.documentElement;if(!n?.style)return;Tn(null);let r=Q(e);if(r){n.dataset.themeId=r.id;let i=$(r,t??Zn(e)??r.appearance)??r.colors;for(let[e,t]of Object.entries(i))n.style.setProperty(qr[e],t);return}delete n.dataset.themeId;for(let e of Object.values(qr))n.style.removeProperty(e)}function Qr(e,t,n,r,i){let a=t?`dark`:`light`,o=r??(n??e===`system`?`system`:null);if(o===`system`){if(i?.[a])return a;let t=Q(e);return t&&$(t,a)===null?t.appearance:a}if(o===`light`||o===`dark`){if(i?.[o])return o;let t=Q(e);return t&&$(t,o)===null?t.appearance:o}return Ar(e)??`light`}function $r(e,t,n,r){let i=n??(t??e===`system`?`system`:null);if(i===`system`){let t=Q(e),n=r?.light!==void 0||t!==null&&$(t,`light`)!==null,i=r?.dark!==void 0||t!==null&&$(t,`dark`)!==null;return t&&(!n||!i)?t.appearance:`system`}if(i===`light`||i===`dark`){if(r?.[i])return i;let t=Q(e);return t&&$(t,i)===null?t.appearance:i}return Ar(e)??`system`}function ei(e){return e===`light`||e===`dark`||e===`system`||Q(e)!==null}function ti(e){if(!e)return null;try{let t=JSON.parse(e);if(!B(t))return null;let n={};for(let e of[`light`,`dark`]){let r=t[e];if(typeof r!=`string`)continue;let i=Q(r);i&&$(i,e)!==null&&(n[e]=i.id)}return n.light!==void 0||n.dark!==void 0?n:null}catch{return null}}function ni(e,t,n){return t?.[n]??e}export{$t as $,Hr as A,wn as B,zn as C,jn as D,Dn as E,ni as F,Tr as G,cr as H,Kr as I,nn as J,sn as K,Un as L,Vr as M,$r as N,Gr as O,Qr as P,en as Q,Or as R,zr as S,Wn as T,jr as U,Dr as V,Br as W,rn as X,on as Y,tn as Z,$ as _,Yr as a,Ar as b,Zr as c,Vn as d,Qt as et,Z as f,Jr as g,Gn as h,hn as i,Ur as j,ti as k,Yn as l,Qn as m,mn as n,_n as o,Hn as p,an as q,pn as r,Xr as s,R as t,br as u,Q as v,ei as w,Cn as x,kr as y,Kn as z};
|
|
5
|
-
//# sourceMappingURL=themePalette-mGukKeaJ.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i as e,n as t}from"./rolldown-runtime-Dd_uD5pT.js";import{r as n}from"./Icon-l19w4AjM.js";import{$i as r,Ap as i,Bi as a,By as o,Cd as s,Cm as c,Co as l,Cy as u,D as d,Ea as f,Em as p,Eo as m,Fa as h,Ia as g,Ii as _,Iy as v,Ks as y,Md as b,Mf as x,NE as S,Na as C,Or as w,Qi as T,Ra as E,Sa as D,So as ee,Td as te,Ti as O,To as k,Tr as A,Um as j,Uu as M,_o as N,ai as ne,bt as re,ca as P,ga as ie,ia as F,ib as I,jr as ae,ku as oe,lE as se,la as L,lr as ce,ma as R,oa as z,pa as le,ra as ue,sa as de,sl as fe,sr as B,t as V,ta as H,va as pe,vi as me,vo as U,za as he,zi as ge}from"./utils-ChK8VEFC.js";import{jn as _e}from"./runtime-BunkcrGh.js";import{d as ve,f as ye,l as be,m as xe,u as Se,x as Ce}from"./TooltipViewport-B_Oz-gLq.js";import{t as we}from"./spinner-dBHTxMdw.js";import{t as Te}from"./useParams-DPNRViD9.js";var Ee=I(fe);function De(e){return Ee(e)&&e.bootstrapThreadDisposition===`deleted`}function Oe(e){return Ee(e)&&e.bootstrapThreadDisposition===`not-created`}var ke=[/\bSocketCloseError\b/i,/\bSocketOpenError\b/i,/\bSocket is not connected\b/i,/Unable to connect to the T3 server WebSocket\./i,RegExp(`\\b(?:is not connected|disconnected|stopped responding|could not establish a WebSocket connection)\\.(?: ${(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`))(_e)})?$`,`i`),/\bClientProtocolError\b/i,/\bRpcClientError\b/i,/\bping timeout\b/i];function Ae(e){if(typeof e!=`string`)return!1;let t=e.trim();return t.length!==0&&ke.some(e=>e.test(t))}function je(e){return Ae(e)?null:e??null}var W=e(n()),Me=W.createContext(void 0);function Ne(){let e=W.useContext(Me);if(!e)throw Error(m(73));return e}var Pe=0;function Fe(e){return Pe+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${Pe}`}function Ie(e,t){if(typeof e==`string`)return{description:e};if(typeof e==`function`){let n=e(t);return typeof n==`string`?{description:n}:n}return e}function Le(e){let t=new Map,n=0,r=0;return e.forEach((e,i)=>{let a=e.transitionStatus===`ending`;t.set(e.id,{value:e,domIndex:i,visibleIndex:a?-1:n,offsetY:r}),r+=e.height||0,a||(n+=1)}),t}var Re=e=>e.toastMetadata,G={toasts:O(e=>e.toasts),isEmpty:O(e=>e.toasts.length===0),toast:O(Re,(e,t)=>e.get(t)?.value),toastIndex:O(Re,(e,t)=>e.get(t)?.domIndex??-1),toastOffsetY:O(Re,(e,t)=>e.get(t)?.offsetY??0),toastVisibleIndex:O(Re,(e,t)=>e.get(t)?.visibleIndex??-1),hovering:O(e=>e.hovering),focused:O(e=>e.focused),expanded:O(e=>e.hovering||e.focused),expandedOrOutOfFocus:O(e=>e.hovering||e.focused||!e.isWindowFocused),prevFocusElement:O(e=>e.prevFocusElement)},ze=class extends me{timers=new Map;areTimersPaused=!1;constructor(e){super({...e,toastMetadata:Le(e.toasts)},{},G)}setFocused(e){this.set(`focused`,e)}setHovering(e){this.set(`hovering`,e)}setIsWindowFocused(e){this.set(`isWindowFocused`,e)}setPrevFocusElement(e){this.set(`prevFocusElement`,e)}setViewport=e=>{this.set(`viewport`,e)};disposeEffect=()=>()=>{this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear()};removeToast(e,t={}){let n=G.toastIndex(this.state,e);if(n===-1)return;let r=this.state.toasts[n];t.skipOnRemove||r?.onRemove?.();let i=[...this.state.toasts];i.splice(n,1),this.setToasts(i)}addToast=e=>{let{timeout:t,limit:n}=this.state,r=e.id||Fe(`toast`);if(e.id){let t=G.toast(this.state,e.id);if(t){if(t.transitionStatus===`ending`)this.removeToast(e.id,{skipOnRemove:!0});else{let{id:t,transitionStatus:n,...r}=e;return this.updateToastInternal(e.id,r,{resetTimer:!0,markUpdated:!0}),e.id}}}let i={...e,id:r,updateKey:0,transitionStatus:`starting`},a=[i,...this.state.toasts],o=a.filter(e=>e.transitionStatus!==`ending`);if(o.length>n){let e=o.length-n,t=o.slice(-e),r=new Set(t.map(e=>e.id));this.setToasts(a.map(e=>{let t=r.has(e.id);return e.limited===t?e:{...e,limited:t}}))}else this.setToasts(a.map(e=>e.limited?{...e,limited:!1}:e));let s=i.timeout??t;return i.type!==`loading`&&s>0&&this.scheduleTimer(r,s,()=>this.closeToast(r)),G.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),r};updateToast=(e,t)=>{this.updateToastInternal(e,t,{markUpdated:!0})};updateToastInternal=(e,t,n={})=>{let{timeout:r,toasts:i}=this.state,a=G.toast(this.state,e)??null;if(!a||a.transitionStatus===`ending`)return;let o={...a,...t,...n.markUpdated&&{updateKey:(a.updateKey??0)+1}};this.setToasts(i.map(t=>t.id===e?o:t));let s=o.timeout??r,c=a?.timeout??r,l=Object.hasOwn(t,`timeout`),u=o.transitionStatus!==`ending`&&o.type!==`loading`&&s>0,d=this.timers.has(e),f=c!==s,p=a?.type===`loading`;if(!u&&d){this.timers.get(e)?.timeout?.clear(),this.timers.delete(e);return}if(u&&(!d||f||l||p||n.resetTimer)){let t=this.timers.get(e);t&&(t.timeout?.clear(),this.timers.delete(e)),this.scheduleTimer(e,s,()=>this.closeToast(e)),G.expandedOrOutOfFocus(this.state)&&this.pauseTimers()}};closeToast=e=>{let t=e===void 0,{limit:n,toasts:r}=this.state,i;if(t)i=r,this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear();else{let t=G.toast(this.state,e);if(!t)return;i=[t];let n=this.timers.get(e);n?.timeout&&(n.timeout.clear(),this.timers.delete(e))}let a=0,o=r.map(r=>{if(t||r.id===e)return{...r,transitionStatus:`ending`,height:0};if(r.transitionStatus===`ending`)return r;let i=a>=n;return a+=1,r.limited===i?r:{...r,limited:i}}),s={toasts:o,toastMetadata:Le(o)};(t||r.length===1)&&(s.hovering=!1,s.focused=!1),this.update(s),i.forEach(e=>{e.transitionStatus!==`ending`&&e.onClose?.()}),this.handleFocusManagement(e)};promiseToast=(e,t)=>{let n=Ie(t.loading),r=this.addToast({...n,type:`loading`}),i=e.then(e=>{let n=Ie(t.success,e);return this.updateToast(r,{...n,type:`success`,timeout:n.timeout}),e}).catch(e=>{let n=Ie(t.error,e);return this.updateToast(r,{...n,type:`error`,timeout:n.timeout}),Promise.reject(e)});return{}.hasOwnProperty.call(t,`setPromise`)&&t.setPromise(i),i};pauseTimers(){this.areTimersPaused||(this.areTimersPaused=!0,this.timers.forEach(e=>{if(e.timeout){e.timeout.clear();let t=Date.now()-e.start,n=e.delay-t;e.remaining=n>0?n:0}}))}resumeTimers(){this.areTimersPaused&&(this.areTimersPaused=!1,this.timers.forEach((e,t)=>{e.remaining=e.remaining>0?e.remaining:e.delay,e.timeout??=le.create(),e.timeout.start(e.remaining,()=>{this.timers.delete(t),e.callback()}),e.start=Date.now()}))}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=e=>{if(e.pointerType!==`touch`)return;let t=L(e);P(this.state.viewport,t)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(e,t,n){let r=Date.now(),i=!G.expandedOrOutOfFocus(this.state),a=i?le.create():void 0;a?.start(t,()=>{this.timers.delete(e),n()}),this.timers.set(e,{timeout:a,start:i?r:0,delay:t,remaining:t,callback:n})}setToasts(e){let t={toasts:e,toastMetadata:Le(e)};e.length===0&&(t.hovering=!1,t.focused=!1),this.update(t)}handleFocusManagement(e){let t=de(H(this.state.viewport));if(!this.state.viewport||!P(this.state.viewport,t)||!z(t))return;if(e===void 0){this.restoreFocusToPrevElement();return}let n=G.toasts(this.state),r=G.toastIndex(this.state,e),i=null,a=r+1;for(;a<n.length;){if(n[a].transitionStatus!==`ending`){i=n[a];break}a+=1}if(!i)for(a=r-1;a>=0;){if(n[a].transitionStatus!==`ending`){i=n[a];break}--a}i?i.ref?.current?.focus():this.restoreFocusToPrevElement()}},K=e(se()),Be=function(e){let{children:t,timeout:n=5e3,limit:r=3,toastManager:i}=e,a=k(()=>new ze({timeout:n,limit:r,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return D(a.disposeEffect),W.useEffect(function(){if(i)return i[` subscribe`](({action:e,options:t})=>{let n=t.id;e===`promise`&&t.promise?a.promiseToast(t.promise,t):e===`update`&&n?a.updateToast(n,t):e===`close`?a.closeToast(n):a.addToast(t)})},[a,i]),a.useSyncedValues({timeout:n,limit:r}),(0,K.jsx)(Me.Provider,{value:a,children:t})},Ve=function(e){return e.frontmostHeight=`--toast-frontmost-height`,e}({}),He=W.forwardRef(function(e,t){let{render:n,className:i,style:a,children:o,...s}=e,c=Ne(),l=R(),u=W.useRef(!1),d=W.useRef(!1),f=W.useRef(!1),p=c.useState(`isEmpty`),m=c.useState(`toasts`),h=c.useState(`focused`),g=c.useState(`expanded`),_=c.useState(`prevFocusElement`),v=m[0]?.height??0,y=W.useMemo(()=>m.some(e=>e.transitionStatus===`ending`),[m]),b=W.useMemo(()=>m.filter(e=>e.priority===`high`),[m]);W.useEffect(()=>{let e=c.state.viewport;if(!e)return;function t(t){p||t.key===`F6`&&L(t)!==e&&(t.preventDefault(),c.setPrevFocusElement(de(H(e))),e?.focus({preventScroll:!0}),c.pauseTimers(),c.setFocused(!0))}let n=E(e);return F(n,`keydown`,t)},[c,p]),W.useEffect(()=>{let e=c.state.viewport;if(!e||p)return;let t=E(e);function n(e){L(e)===t&&(c.setIsWindowFocused(!1),c.pauseTimers())}function r(n){if(n.relatedTarget)return;let r=L(n),i=de(H(e));(r===t||!P(e,r)||!z(i))&&c.resumeTimers(),l.start(0,()=>c.setIsWindowFocused(!0))}return ue(F(t,`blur`,n,!0),F(t,`focus`,r,!0))},[c,l,p]),W.useEffect(()=>{let e=c.state.viewport;if(!e||p)return;let t=H(e);return F(t,`pointerdown`,c.handleDocumentPointerDown,!0)},[p,c]);function x(e){let t=c.state.viewport;t&&(u.current=!0,e.relatedTarget===t?m[0]?.ref?.current?.focus():c.restoreFocusToPrevElement())}function S(e){e.key===`Tab`&&e.shiftKey&&L(e.nativeEvent)===c.state.viewport&&(e.preventDefault(),c.restoreFocusToPrevElement(),c.resumeTimers())}function C(){let e=c.state.toasts.some(e=>e.transitionStatus===`ending`);c.state.isWindowFocused&&!e&&!f.current&&d.current&&(c.resumeTimers(),c.setHovering(!1),d.current=!1)}W.useEffect(C,[y,c]);function w(){c.pauseTimers(),c.setHovering(!0),d.current=!1}function D(){y||f.current?d.current=!0:(c.resumeTimers(),c.setHovering(!1))}function ee(e){e.pointerType===`touch`&&(f.current=!0)}function te(e){e.pointerType===`touch`&&(f.current=!1,C())}function O(){if(u.current){u.current=!1;return}h||z(de(H(c.state.viewport)))&&(c.setFocused(!0),c.pauseTimers())}function k(e){h&&!P(c.state.viewport,e.relatedTarget)&&(c.setFocused(!1),c.resumeTimers())}let A={tabIndex:-1,role:`region`,"aria-live":`polite`,"aria-atomic":!1,"aria-relevant":`additions text`,"aria-label":`Notifications`,onMouseEnter:w,onMouseMove:w,onMouseLeave:D,onFocus:O,onBlur:k,onKeyDown:S,onClick:O,onPointerDown:ee,onPointerUp:te,onPointerCancel:te},j={expanded:g},M=U(`div`,e,{ref:[t,c.setViewport],state:j,props:[A,{style:{[Ve.frontmostHeight]:v?`${v}px`:void 0}},s,{children:(0,K.jsxs)(W.Fragment,{children:[!p&&_&&(0,K.jsx)(T,{onFocus:x}),o,!p&&_&&(0,K.jsx)(T,{onFocus:x})]})}]});return(0,K.jsxs)(W.Fragment,{children:[!p&&_&&(0,K.jsx)(T,{onFocus:x}),M,!h&&b.length>0&&(0,K.jsx)(`div`,{style:r,children:b.map(e=>(0,K.jsxs)(`div`,{role:`alert`,"aria-atomic":!0,children:[(0,K.jsx)(`div`,{children:e.title}),(0,K.jsx)(`div`,{children:e.description})]},e.id))})]})}),Ue=e(pe()),We=W.createContext(void 0);function q(){let e=W.useContext(We);if(!e)throw Error(m(66));return e}var J=function(e){return e.index=`--toast-index`,e.offsetY=`--toast-offset-y`,e.height=`--toast-height`,e.swipeMovementX=`--toast-swipe-movement-x`,e.swipeMovementY=`--toast-swipe-movement-y`,e}({});function Ge(e,t,n){switch(e){case`up`:return-n;case`down`:return n;case`left`:return-t;case`right`:return t;default:return 0}}function Ke(e){let t=E(e).getComputedStyle(e).transform,n=0,r=0,i=1;if(t&&t!==`none`){let e=t.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(`, `).map(parseFloat);t.length===6?(n=t[4],r=t[5],i=Math.sqrt(t[0]*t[0]+t[1]*t[1])):t.length===16&&(n=t[12],r=t[13],i=t[0])}}return{x:n,y:r,scale:i}}var qe={...N,swipeDirection(e){return e?{"data-swipe-direction":e}:null}},Je=40,Ye=10,Y=.5,Xe=1,Ze=`${_},${ge}`,Qe=W.forwardRef(function(e,t){let{toast:n,render:r,className:i,swipeDirection:a=[`down`,`right`],style:o,...s}=e,c=n.positionerProps?.anchor!==void 0,l=[];c||(l=Array.isArray(a)?a:[a]);let u=l.length>0,d=Ne(),[f,p]=W.useState(void 0),[m,_]=W.useState(!1),[v,y]=W.useState(!1),[b,x]=W.useState(!1),[S,C]=W.useState({x:0,y:0}),[w,T]=W.useState({x:0,y:0,scale:1}),[E,D]=W.useState(),[ee,te]=W.useState(),[O,k]=W.useState(null),A=W.useRef(null),j=W.useRef({x:0,y:0}),M=W.useRef({x:0,y:0,scale:1}),N=W.useRef(void 0),ne=W.useRef(0),re=W.useRef(!1),I=W.useRef({x:0,y:0}),oe=W.useRef(!1),se=W.useRef({x:0,y:0}),ce=W.useRef(null),R=W.useRef(null),z=d.useState(`toastIndex`,n.id),le=d.useState(`toastVisibleIndex`,n.id),ue=d.useState(`toastOffsetY`,n.id),fe=d.useState(`focused`),B=d.useState(`expanded`);ie({open:n.transitionStatus!==`ending`,ref:A,onComplete(){n.transitionStatus===`ending`&&d.removeToast(n.id)}});let V=g((e=!1)=>{let t=A.current;if(!t)return;let r=t.style.height;t.style.height=`auto`;let i=t.offsetHeight;t.style.height=r;function a(){d.updateToastInternal(n.id,{ref:A,height:i,...n.transitionStatus===`starting`?{transitionStatus:void 0}:{}})}e?Ue.flushSync(a):a()});h(V,[V]);function pe(e){se.current=e,C(e)}h(()=>()=>{R.current?.abort()},[]);function me(e,t){let n=e,r=t;return!l.includes(`left`)&&!l.includes(`right`)?n=e>0?e**Y:-(Math.abs(e)**Y):(!l.includes(`right`)&&e>0&&(n=e**Y),!l.includes(`left`)&&e<0&&(n=-(Math.abs(e)**Y))),!l.includes(`up`)&&!l.includes(`down`)?r=t>0?t**Y:-(Math.abs(t)**Y):(!l.includes(`down`)&&t>0&&(r=t**Y),!l.includes(`up`)&&t<0&&(r=-(Math.abs(t)**Y))),{x:n,y:r}}let he=g(e=>{if(e.pointerId!==ce.current)return;ce.current=null,R.current?.abort(),R.current=null,_(!1),y(!1),k(null);let t=M.current;if(e.type===`pointercancel`||re.current){pe({x:t.x,y:t.y}),p(void 0);return}let r=!1,i=se.current,a=i.x-t.x,o=i.y-t.y,s;for(let e of l){switch(e){case`right`:a>Je&&(r=!0,s=`right`);break;case`left`:a<-40&&(r=!0,s=`left`);break;case`down`:o>Je&&(r=!0,s=`down`);break;case`up`:o<-40&&(r=!0,s=`up`)}if(r)break}r?(p(s),x(!0),d.closeToast(n.id)):(pe({x:t.x,y:t.y}),p(void 0))});function ge(e){if(e.button!==0)return;e.pointerType===`touch`&&d.pauseTimers();let t=L(e.nativeEvent);if(t&&t.closest(`button,a,input,textarea,[role="button"],${Ze}`))return;if(re.current=!1,N.current=void 0,ne.current=0,ce.current=e.pointerId,j.current={x:e.clientX,y:e.clientY},I.current=j.current,A.current){let e=Ke(A.current);M.current=e,T(e),pe({x:e.x,y:e.y})}d.setHovering(!0),_(!0),y(!1),k(null),oe.current=!0;let n=A.current;if(n){R.current?.abort();let t=new AbortController;R.current=t;let r=H(n);r.addEventListener(`pointerup`,he,{signal:t.signal}),r.addEventListener(`pointercancel`,he,{signal:t.signal}),n.setPointerCapture?.(e.pointerId)}}function _e(e){if(e.pointerId!==ce.current)return;e.preventDefault(),oe.current&&=(j.current={x:e.clientX,y:e.clientY},!1);let{clientY:t,clientX:n,movementX:r,movementY:i}=e;(i<0&&t>I.current.y||i>0&&t<I.current.y)&&(I.current={x:I.current.x,y:t}),(r<0&&n>I.current.x||r>0&&n<I.current.x)&&(I.current={x:n,y:I.current.y});let a=n-j.current.x,o=t-j.current.y,s=t-I.current.y,c=n-I.current.x;if(!v&&Math.sqrt(a*a+o*o)>=Xe&&(y(!0),O===null)){let e=l.includes(`left`)||l.includes(`right`),t=l.includes(`up`)||l.includes(`down`);e&&t&&k(Math.abs(a)>Math.abs(o)?`horizontal`:`vertical`)}let u;if(!N.current)O===`vertical`?o>0?u=`down`:o<0&&(u=`up`):O===`horizontal`?a>0?u=`right`:a<0&&(u=`left`):u=Math.abs(a)>=Math.abs(o)?a>0?`right`:`left`:o>0?`down`:`up`,u&&l.includes(u)&&(N.current=u,ne.current=Ge(u,a,o),p(u));else{let e=N.current,t=Ge(e,c,s);t>Je?(re.current=!1,p(e)):!(l.includes(`left`)&&l.includes(`right`))&&!(l.includes(`up`)&&l.includes(`down`))&&ne.current-t>=Ye&&(re.current=!0)}let d=me(a,o),f=M.current.x,m=M.current.y;O===`horizontal`?(l.includes(`left`)||l.includes(`right`))&&(f+=d.x):(O===`vertical`||(l.includes(`left`)||l.includes(`right`))&&(f+=d.x),(l.includes(`up`)||l.includes(`down`))&&(m+=d.y)),pe({x:f,y:m})}function ve(e){if(e.key===`Escape`){if(!A.current||!P(A.current,de(H(A.current))))return;d.closeToast(n.id)}}W.useEffect(()=>{if(!u)return;let e=A.current;if(!e)return;function t(t){P(e,L(t))&&t.preventDefault()}return F(e,`touchmove`,t,{passive:!1})},[u]);function ye(){if(!m&&S.x===w.x&&S.y===w.y&&!b)return{[J.swipeMovementX]:`0px`,[J.swipeMovementY]:`0px`};let e=S.x-w.x,t=S.y-w.y;return{transition:m?`none`:void 0,transform:m?`translateX(${S.x}px) translateY(${S.y}px) scale(${w.scale})`:void 0,[J.swipeMovementX]:`${e}px`,[J.swipeMovementY]:`${t}px`}}let be=n.priority===`high`,xe={role:be?`alertdialog`:`dialog`,tabIndex:0,"aria-modal":!1,"aria-labelledby":E,"aria-describedby":ee,"aria-hidden":be&&!fe?!0:void 0,onPointerDown:u?ge:void 0,onPointerMove:u?_e:void 0,onPointerUp:u?he:void 0,onPointerCancel:u?he:void 0,onKeyDown:ve,inert:ae(n.limited),style:{...ye(),[J.index]:n.transitionStatus===`ending`?z:le,[J.offsetY]:`${ue}px`,[J.height]:n.height?`${n.height}px`:void 0}},Se=W.useMemo(()=>({rootRef:A,toast:n,titleId:E,setTitleId:D,descriptionId:ee,setDescriptionId:te,swiping:m,swipeDirection:f,recalculateHeight:V,index:z,visibleIndex:le,expanded:B}),[n,E,ee,m,f,V,z,le,B]),Ce={transitionStatus:n.transitionStatus,expanded:B,limited:n.limited||!1,type:n.type,swiping:Se.swiping,swipeDirection:Se.swipeDirection},we=U(`div`,e,{ref:[t,Se.rootRef],state:Ce,stateAttributesMapping:qe,props:[xe,s]});return(0,K.jsx)(We.Provider,{value:Se,children:we})}),$e=W.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{visibleIndex:o,expanded:s,recalculateHeight:c}=q(),l=W.useRef(null);return h(()=>{let e=l.current;if(!e||(c(),typeof ResizeObserver!=`function`||typeof MutationObserver!=`function`))return;let t=new ResizeObserver(()=>c(!0)),n=new MutationObserver(()=>c(!0));return t.observe(e),n.observe(e,{childList:!0,subtree:!0,characterData:!0}),()=>{t.disconnect(),n.disconnect()}},[c]),U(`div`,e,{ref:[t,l],state:{expanded:s,behind:o>0},props:a})}),et=W.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:o,...s}=e,{toast:c,setDescriptionId:l}=q(),u=o??c.description,d=!!u,p=f(a);h(()=>{if(d)return l(p),()=>{l(void 0)}},[d,p,l]);let m={type:c.type},g=U(`p`,e,{ref:t,state:m,props:{...s,id:p,children:u}});return d?g:null}),tt=W.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:o,...s}=e,{toast:c,setTitleId:l}=q(),u=o??c.title,d=!!u,p=f(a);h(()=>{if(d)return l(p),()=>{l(void 0)}},[d,p,l]);let m={type:c.type},g=U(`h2`,e,{ref:t,state:m,props:{...s,id:p,children:u}});return d?g:null}),nt=W.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...s}=e,c=Ne(),{toast:l}=q(),u=c.useState(`expanded`),[d,f]=W.useState(!1),{getButtonProps:p,buttonRef:m}=C({disabled:a,native:o}),h={type:l.type};return U(`button`,e,{ref:[t,m],state:h,props:[{"aria-hidden":!u&&!d,onClick(){c.closeToast(l.id)},onFocus(){f(!0)},onBlur(){f(!1)}},s,p]})}),rt=W.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...s}=e,{toast:c}=q(),l=c.actionProps?.children??s.children,u=!!l,{getButtonProps:d,buttonRef:f}=C({disabled:a,native:o}),p={type:c.type},m=U(`button`,e,{ref:[t,f],state:p,props:[s,c.actionProps,d,{children:l}]});return u?m:null}),it=Se,at=W.createContext(void 0);function ot(){let e=W.useContext(at);if(e===void 0)throw Error(m(84));return e}var st=W.forwardRef(function(e,t){let{toast:n,...r}=e,i=Ne(),o=n.positionerProps??ee,{render:s,className:c,anchor:u=o.anchor,positionMethod:d=o.positionMethod??`absolute`,side:f=o.side??`top`,align:p=o.align??`center`,sideOffset:m=o.sideOffset??0,alignOffset:h=o.alignOffset??0,collisionBoundary:g=o.collisionBoundary??`clipping-ancestors`,collisionPadding:_=o.collisionPadding??5,arrowPadding:v=o.arrowPadding??5,sticky:y=o.sticky??!1,disableAnchorTracking:b=o.disableAnchorTracking??!1,collisionAvoidance:x=o.collisionAvoidance??a,style:S,...C}=r,[T,E]=W.useState(null),D=i.useState(`toastIndex`,n.id),te=i.useState(`toastVisibleIndex`,n.id),O=he(u)?u:null,k=ne({open:!0,onOpenChange:l,elements:{floating:T,reference:O}}),j=w({anchor:O,positionMethod:d,floatingRootContext:k,mounted:!0,side:f,sideOffset:m,align:p,alignOffset:h,collisionBoundary:g,collisionPadding:_,sticky:y,arrowPadding:v,disableAnchorTracking:b,keepMounted:!0,collisionAvoidance:x}),M=W.useMemo(()=>({side:j.side,align:j.align,anchorHidden:j.anchorHidden}),[j.side,j.align,j.anchorHidden]),N=A(e,M,{styles:{...j.positionerStyles,[J.index]:n.transitionStatus===`ending`?D:te},transitionStatus:n.transitionStatus,props:C,refs:[t,E]});return(0,K.jsx)(at.Provider,{value:j,children:N})}),ct=W.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,{arrowRef:o,side:s,align:c,arrowUncentered:l,arrowStyles:u}=ot();return U(`div`,e,{state:{side:s,align:c,uncentered:l},ref:[t,o],props:[{style:u,"aria-hidden":!0},a]})});function lt(){let e=W.useContext(Me);if(!e)throw Error(m(73));let t=e.useState(`toasts`);return W.useMemo(()=>({toasts:t,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[t,e])}function ut(){let e=new Set;function t(t){e.forEach(e=>e(t))}return{" subscribe":function(t){return e.add(t),()=>{e.delete(t)}},add(e){let n=e.id||Fe(`toast`);return t({action:`add`,options:{...e,id:n,transitionStatus:`starting`}}),n},close(e){t({action:`close`,options:{id:e}})},update(e,n){t({action:`update`,options:{...n,id:e}})},promise(e,n){let r=e;return t({action:`promise`,options:{...n,promise:e,setPromise(e){r=e}}}),r}}}var dt=t({Action:()=>rt,Arrow:()=>ct,Close:()=>nt,Content:()=>$e,Description:()=>et,Portal:()=>it,Positioner:()=>st,Provider:()=>Be,Root:()=>Qe,Title:()=>tt,Viewport:()=>He,createToastManager:()=>ut,useToastManager:()=>lt});function ft(){let e=[],t=0,n=new Set,r=new Map,i=new Map,a=new Map,o=new Map,s=new Set,c=()=>n.forEach(e=>e()),l=e=>{clearTimeout(r.get(e)),r.delete(e);let t=a.get(e);t!==void 0&&(i.set(e,Math.max(0,(i.get(e)??0)-(Date.now()-t))),a.delete(e))},u=t=>{let n=e.find(e=>e.id===t);n&&(l(t),i.delete(t),o.delete(t),e=e.filter(e=>e.id!==t),c(),n.onDismiss?.())},d=e=>{s.size||o.get(e)?.size||r.has(e)||!i.has(e)||(a.set(e,Date.now()),r.set(e,setTimeout(()=>u(e),i.get(e))))},f=n=>{let r=n.id??`notification-${++t}`;l(r);let a={...n,id:r};e=[...e.filter(e=>e.id!==r),a];let o=n.durationMs??8e3;return o>0?i.set(r,o):i.delete(r),d(r),c(),r},p=(e,t)=>{let n=o.get(e)??new Set;n.add(t),o.set(e,n),l(e)},m=(e,t)=>{o.get(e)?.delete(t),d(e)};return{show:f,dismiss:u,pause:p,resume:m,getSnapshot:()=>e,subscribe:e=>(n.add(e),()=>{n.delete(e)}),setPaused:(t,n)=>{n?s.add(t):s.delete(t);for(let t of e)s.size?l(t.id):d(t.id)},performAction:async(t,n)=>{let r=e.find(e=>e.id===t),i=r?.actions?.find(e=>e.id===n);if(!r||!i||r.pendingActionId)return;let a={...r,pendingActionId:n};p(t,`action`),e=e.map(e=>e===r?a:e),c();try{await i.run(),e.includes(a)&&u(t)}catch(t){e.includes(a)&&f({...r,title:i.failureTitle??`Could not complete action`,description:t instanceof Error?t.message:`Please try again.`,tone:`error`})}finally{m(t,`action`)}}}}var X=ft(),Z=S(),pt={archive:M,clock:b,pin:i,trash:c};function mt(){let e=(0,Z.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=[],e[0]=t):t=e[0],(0,W.useEffect)(ht,t),null}function ht(){let e=!0,t=new Set,n=()=>{let n=X.getSnapshot();for(let e of t)n.some(t=>t.id===e)||(t.delete(e),Q.close(`shared:${e}`));for(let r of n){let n=r.icon&&r.tone!==`error`?pt[r.icon]:null,i=r.actions??[],a=i.find(_t),o=e=>({children:e.label,disabled:!!r.pendingActionId,onClick:()=>{X.performAction(r.id,e.id)}}),s={title:r.title,description:r.description??null,type:r.tone??`info`,timeout:0,onClose:()=>{e&&X.getSnapshot().includes(r)&&X.dismiss(r.id)},actionProps:{children:null},data:{sharedToastId:r.id,leadingIcon:n?(0,K.jsx)(n,{className:`size-4`}):void 0,additionalActions:i.filter(e=>e!==a).map(e=>({id:e.id,props:o(e)})),...a?{secondaryActionProps:o(a)}:{},secondaryActionVariant:`soft`,hideCopyButton:!0}};t.has(r.id)?Q.update(`shared:${r.id}`,s):(t.add(r.id),Q.add({...s,id:`shared:${r.id}`}))}},r=X.subscribe(n),i=gt;return document.addEventListener(`visibilitychange`,i),i(),n(),()=>{e=!1,r(),document.removeEventListener(`visibilitychange`,i),X.setPaused(`web-hidden`,!1);for(let e of t)Q.close(`shared:${e}`)}}function gt(){return X.setPaused(`web-hidden`,document.hidden)}function _t(e){return e.primary}var vt=class extends o()(`ClipboardApiUnavailableError`,{target:v}){get message(){return`Clipboard API is unavailable while copying ${this.target}.`}},yt=class extends o()(`ClipboardWriteError`,{target:v,cause:u()}){get message(){return`Failed to copy ${this.target} to the clipboard.`}},bt=class extends o()(`ClipboardReadUnavailableError`,{target:v}){get message(){return`Clipboard API is unavailable while reading ${this.target}.`}},xt=class extends o()(`ClipboardReadError`,{target:v,cause:u()}){get message(){return`Failed to read ${this.target} from the clipboard.`}};function St(e,t){if(typeof document>`u`||typeof document.execCommand!=`function`)return!1;let n=document.createElement(`textarea`);n.value=e,n.setAttribute(`readonly`,``),n.setAttribute(`aria-hidden`,`true`),n.style.position=`fixed`,n.style.top=`0`,n.style.left=`0`,n.style.opacity=`0`,n.style.fontSize=`16px`;let r=document.activeElement,i=n=>{if(t&&n.clipboardData){n.clipboardData.setData(`text/plain`,e);for(let[e,r]of Object.entries(t))n.clipboardData.setData(e,r);n.preventDefault()}};document.body.appendChild(n),n.addEventListener(`copy`,i);try{return n.focus({preventScroll:!0}),n.select(),n.setSelectionRange(0,e.length),document.execCommand(`copy`)}catch{return!1}finally{n.removeEventListener(`copy`,i),n.remove();let e=r?.focus;typeof e==`function`&&e.call(r)}}async function Ct(e,t=`text`,n){if(typeof window>`u`)throw new vt({target:t});if(!e)return!1;n&&=Object.fromEntries(Object.entries(n).filter(([e])=>e!==`text/plain`));let r=n?.[oe];if(r&&(n={...n,"text/html":re(e,r,n?.[`text/html`])}),typeof navigator>`u`||!navigator.clipboard?.writeText){if(St(e,n))return!0;throw new vt({target:t})}try{if(n&&typeof ClipboardItem<`u`&&navigator.clipboard.write)try{return await navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([e],{type:`text/plain`}),...Object.fromEntries(Object.entries(n).map(([e,t])=>[e,new Blob([t],{type:e})]))})]),!0}catch{let t=n[`text/html`];if(t)try{return await navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([e],{type:`text/plain`}),"text/html":new Blob([t],{type:`text/html`})})]),!0}catch{}}return await navigator.clipboard.writeText(e),!0}catch(e){throw new yt({target:t,cause:e})}}async function wt(e=`text`){if(typeof window>`u`||typeof navigator>`u`||!navigator.clipboard?.readText)throw new bt({target:e});try{return await navigator.clipboard.readText()}catch(t){throw new xt({target:e,cause:t})}}function Tt({timeout:e=2e3,target:t=`text`,onCopy:n,onError:r,extraFlavors:i}={}){let[a,o]=W.useState(!1),s=W.useRef(null),c=W.useRef(n),l=W.useRef(r),u=W.useRef(t),d=W.useRef(e);c.current=n,l.current=r;let f=W.useRef(i);u.current=t,d.current=e,f.current=i;let p=W.useCallback((e,t)=>{Ct(e,u.current,f.current).then(e=>{e&&(s.current&&clearTimeout(s.current),o(!0),c.current?.(t),d.current!==0&&(s.current=setTimeout(()=>{o(!1),s.current=null},d.current)))},e=>{console.error(e),l.current?.(e,t)})},[]);return W.useEffect(()=>()=>{s.current&&clearTimeout(s.current)},[]),{copyToClipboard:p,isCopied:a}}function Et(e){return e===`live`}function Dt(e){return e.draftThreadExists||e.serverThreadExists&&!e.serverThreadDeleted?`ready`:e.bootstrapComplete?`missing`:`loading`}function Ot(e){return{environmentId:e.environmentId,threadId:e.threadId}}function kt(e){return{draftId:e}}function At(e){return!e.environmentId||!e.threadId?null:y(e.environmentId,e.threadId)}function jt(e){return e.environmentId&&e.threadId?{kind:`server`,threadRef:y(e.environmentId,e.threadId)}:e.draftId?{kind:`draft`,draftId:e.draftId}:null}function Mt(e,t){return e?.kind===`server`?e.threadRef:e?.kind!==`draft`||!t?.promotedTo?null:t.promotedTo}function Nt(e){if(typeof e!=`object`||!e||!(`children`in e))return!1;let t=e.children;return t!=null&&t!==!1&&t!==``}function Pt(e,t){return t<=1?!1:e>0}function Ft(e){let t=0,n=0,r=0,i=0,a=e.map(e=>{let a=It(e.height);if(e.transitionStatus===`ending`){let r={toast:e,visibleIndex:t,offsetY:n};return n+=a,t+=1,r}let o={toast:e,visibleIndex:r,offsetY:i};return n+=a,t+=1,i+=a,r+=1,o});return{frontmostHeight:It(e.find(e=>e.transitionStatus!==`ending`)?.height),items:a}}function It(e){return typeof e==`number`&&Number.isFinite(e)&&e>0?e:0}function Lt(e,t){if(e?.threadRef)return t!==null&&e.threadRef.environmentId===t.environmentId&&e.threadRef.threadId===t.threadId;let n=e?.threadId;return!n||t?.threadId===n}var Q=ut(),Rt=ut(),$=new Map,zt={error:s,info:x,loading:we,success:te,warning:p},Bt=180;function Vt(e,t){if(e===`error`&&typeof t==`string`&&!(t.length<Bt))return`line-clamp-4`}var Ht=`absolute z-20 -top-1.5 -right-1.5`,Ut=V(`inline-flex size-6 shrink-0 cursor-pointer items-center justify-center rounded-full border border-border/60 bg-popover/92 text-muted-foreground shadow-sm outline-none backdrop-blur-sm`,`transition-[color,background-color,box-shadow] hover:bg-popover hover:text-foreground`,`focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background`);function Wt(e,t,n){n?.(),e.close(t)}function Gt(e){let t=(0,Z.c)(13),{text:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={target:`error-message`},t[0]=r):r=t[0];let{copyToClipboard:i,isCopied:a}=Tt(r),o=a?`Copied error`:`Copy error`,s;t[1]!==i||t[2]!==n?(s=()=>i(n),t[1]=i,t[2]=n,t[3]=s):s=t[3];let c=a&&`text-success`,l;t[4]===c?l=t[5]:(l=V(`size-3`,c),t[4]=c,t[5]=l);let u=a?ve:Ce,d;t[6]!==l||t[7]!==u?(d=(0,K.jsx)(be,{className:l,icon:u}),t[6]=l,t[7]=u,t[8]=d):d=t[8];let f;return t[9]!==o||t[10]!==s||t[11]!==d?(f=(0,K.jsx)(B,{size:`icon-micro`,variant:`ghost-muted`,"aria-label":o,className:`[--control-icon-color:currentColor] rounded-md text-muted-foreground/80 hover:bg-transparent hover:text-muted-foreground`,onClick:s,children:d}),t[9]=o,t[10]=s,t[11]=d,t[12]=f):f=t[12],f}var Kt=`mt-2 max-h-40 min-h-0 overflow-y-auto overscroll-contain pr-0.5 select-text`;function qt(e){let t=(0,Z.c)(13),{children:n,labels:r}=e,[i,a]=(0,W.useState)(!1),o=r.expand??`Show details`,s=r.collapse??`Hide details`,c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=()=>a(Jt),t[0]=c):c=t[0];let l=i?xe:ye,u;t[1]===l?u=t[2]:(u=(0,K.jsx)(be,{className:`size-3.5 shrink-0 opacity-80`,icon:l,strokeWidth:2.25}),t[1]=l,t[2]=u);let d=i?s:o,f;t[3]!==i||t[4]!==u||t[5]!==d?(f=(0,K.jsxs)(`button`,{"aria-expanded":i,className:`inline-flex cursor-pointer items-center gap-1 rounded-md py-0.5 text-left text-xs font-medium text-muted-foreground transition-colors hover:text-foreground`,onClick:c,type:`button`,children:[u,d]}),t[3]=i,t[4]=u,t[5]=d,t[6]=f):f=t[6];let p;t[7]!==n||t[8]!==i?(p=i?(0,K.jsx)(`div`,{className:Kt,children:n}):null,t[7]=n,t[8]=i,t[9]=p):p=t[9];let m;return t[10]!==f||t[11]!==p?(m=(0,K.jsxs)(`div`,{className:`min-w-0`,children:[f,p]}),t[10]=f,t[11]=p,t[12]=m):m=t[12],m}function Jt(e){return!e}function Yt(e){let t=(0,Z.c)(36),{toastData:n,toastDescription:r,toastType:i}=e,a=n?.expandableContent,o;t[0]===n?.expandableLabels?o=t[1]:(o=n?.expandableLabels??{},t[0]=n?.expandableLabels,t[1]=o);let s=o,c=n?.expandableDescriptionTrigger??!1,l;t[2]!==r||t[3]!==i?(l=V(`min-w-0 select-text wrap-break-word text-muted-foreground`,Vt(i,r)),t[2]=r,t[3]=i,t[4]=l):l=t[4];let u=l,[d,f]=(0,W.useState)(!1);if(!a){let e;return t[5]===u?e=t[6]:(e=(0,K.jsx)(et,{className:u,"data-slot":`toast-description`}),t[5]=u,t[6]=e),e}if(!c){let e;t[7]===u?e=t[8]:(e=(0,K.jsx)(et,{className:u,"data-slot":`toast-description`}),t[7]=u,t[8]=e);let n;t[9]!==a||t[10]!==s?(n=(0,K.jsx)(qt,{labels:s,children:a}),t[9]=a,t[10]=s,t[11]=n):n=t[11];let r;return t[12]!==e||t[13]!==n?(r=(0,K.jsxs)(K.Fragment,{children:[e,n]}),t[12]=e,t[13]=n,t[14]=r):r=t[14],r}let p=s.expand??`Show details`,m=s.collapse??`Hide details`,h;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(h=()=>f(Xt),t[15]=h):h=t[15];let g=h,_;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(_=e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),g())},t[16]=_):_=t[16];let v=_,y=d?m:p,b;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(b=V(`group flex min-w-0 w-full cursor-pointer select-none items-start gap-1.5 rounded-sm text-left outline-none ring-offset-background`,`transition-colors hover:bg-muted/40`,`focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background`),t[17]=b):b=t[17];let x;t[18]!==r||t[19]!==i?(x=V(`min-w-0 select-none wrap-break-word text-muted-foreground`,Vt(i,r),`underline-offset-2 decoration-muted-foreground/60 group-hover:underline`),t[18]=r,t[19]=i,t[20]=x):x=t[20];let S;t[21]===x?S=t[22]:(S=(0,K.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,K.jsx)(et,{className:x,"data-slot":`toast-description`})}),t[21]=x,t[22]=S);let C=d?xe:ye,w;t[23]===C?w=t[24]:(w=(0,K.jsx)(be,{"aria-hidden":!0,className:`mt-0.5 size-3.5 shrink-0 text-muted-foreground opacity-80`,icon:C,strokeWidth:2.25}),t[23]=C,t[24]=w);let T;t[25]!==d||t[26]!==w||t[27]!==y||t[28]!==S?(T=(0,K.jsxs)(`div`,{"aria-label":y,"aria-expanded":d,className:b,onClick:g,onKeyDown:v,role:`button`,tabIndex:0,children:[S,w]}),t[25]=d,t[26]=w,t[27]=y,t[28]=S,t[29]=T):T=t[29];let E;t[30]!==a||t[31]!==d?(E=d?(0,K.jsx)(`div`,{className:Kt,children:a}):null,t[30]=a,t[31]=d,t[32]=E):E=t[32];let D;return t[33]!==T||t[34]!==E?(D=(0,K.jsxs)(K.Fragment,{children:[T,E]}),t[33]=T,t[34]=E,t[35]=D):D=t[35],D}function Xt(e){return!e}function Zt(e){let t=e.type?zt[e.type]:null,n=Nt(e.actionProps)&&e.data?.actionLayout===`stacked-end`,r=e.data?.actionVariant??`default`,i=e.data?.secondaryActionVariant??`outline`,a=e.type===`error`&&typeof e.description==`string`&&!e.data?.hideCopyButton?e.description:null,o=(e.data?.additionalActions?.length??0)>0,s=e.data?.secondaryActionProps!==void 0,c=a!==null||Nt(e.actionProps)||o||s;return{Icon:t,stackedActionLayout:n,actionVariant:r,secondaryActionVariant:i,copyErrorText:a,hasTrailingControls:c,inlineContentEndPad:c?`pr-6`:`pr-10`}}function Qt(e){let t=(0,Z.c)(38),{stackedActionLayout:n,Icon:r,copyErrorText:i,actionProps:a,actionVariant:o,secondaryActionVariant:s,hasTrailingControls:c,toastData:l,toastDescription:u,toastType:d}=e,f;t[0]===l?.additionalActions?f=t[1]:(f=l?.additionalActions??[],t[0]=l?.additionalActions,t[1]=f);let p=f,m=l?.secondaryActionProps,h=l?.leadingIcon,g;t[2]===m?g=t[3]:(g=m??{},t[2]=m,t[3]=g);let _,v;t[4]===g?(_=t[5],v=t[6]):({className:_,...v}=g,t[4]=g,t[5]=_,t[6]=v);let y=n?`pr-5`:`flex-1`,b;t[7]===y?b=t[8]:(b=V(`flex min-h-0 min-w-0 flex-col gap-0.5`,y),t[7]=y,t[8]=b);let x;t[9]!==r||t[10]!==h?(x=h?(0,K.jsx)(`div`,{className:`flex h-lh w-4 shrink-0 items-center justify-center`,"data-slot":`toast-icon`,children:h}):r?(0,K.jsx)(`div`,{className:`[&>svg]:h-lh [&>svg]:w-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,"data-slot":`toast-icon`,children:(0,K.jsx)(r,{className:`in-data-[type=error]:text-destructive in-data-[type=info]:text-info in-data-[type=success]:text-success in-data-[type=warning]:text-warning in-data-[type=loading]:opacity-80`})}):null,t[9]=r,t[10]=h,t[11]=x):x=t[11];let S;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,K.jsx)(tt,{className:`min-w-0 wrap-break-word font-medium`,"data-slot":`toast-title`}),t[12]=S):S=t[12];let C;t[13]===x?C=t[14]:(C=(0,K.jsxs)(`div`,{className:`flex min-w-0 gap-2`,children:[x,S]}),t[13]=x,t[14]=C);let w;t[15]!==l||t[16]!==u||t[17]!==d?(w=(0,K.jsx)(Yt,{toastData:l,toastDescription:u,toastType:d}),t[15]=l,t[16]=u,t[17]=d,t[18]=w):w=t[18];let T;t[19]!==b||t[20]!==C||t[21]!==w?(T=(0,K.jsxs)(`div`,{className:b,children:[C,w]}),t[19]=b,t[20]=C,t[21]=w,t[22]=T):T=t[22];let E;t[23]!==a||t[24]!==o||t[25]!==p||t[26]!==i||t[27]!==c||t[28]!==_||t[29]!==m||t[30]!==v||t[31]!==s||t[32]!==n||t[33]!==l?.sharedToastId?(E=c?(0,K.jsxs)(`div`,{className:V(`flex items-center gap-1.5`,n?`w-full justify-end`:`shrink-0`),children:[i===null?null:(0,K.jsx)(Gt,{text:i}),p.map(e=>{let{id:t,props:n}=e,{className:r,...i}=n;return(0,W.createElement)(B,{...i,className:r,key:t,size:`xs`,type:`button`,variant:s})}),m?(0,K.jsx)(B,{...v,className:_,size:`xs`,type:`button`,variant:l?.sharedToastId?`solid-neutral`:s}):null,Nt(a)?(0,K.jsx)(rt,{className:V(ce({size:`xs`,variant:o}),`shrink-0`),"data-slot":`toast-action`,children:a?.children}):null]}):null,t[23]=a,t[24]=o,t[25]=p,t[26]=i,t[27]=c,t[28]=_,t[29]=m,t[30]=v,t[31]=s,t[32]=n,t[33]=l?.sharedToastId,t[34]=E):E=t[34];let D;return t[35]!==E||t[36]!==T?(D=(0,K.jsxs)(K.Fragment,{children:[T,E]}),t[35]=E,t[36]=T,t[37]=D):D=t[37],D}function $t(){let e=(0,Z.c)(6),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={strict:!1,select:en},e[0]=t):t=e[0];let n=Te(t),r;e[1]===n?r=e[2]:(r=e=>n?.kind===`draft`?e.getDraftSession(n.draftId):null,e[1]=n,e[2]=r);let i=d(r),a;bb0:{if(n?.kind===`server`){a=n.threadRef;break bb0}if(n?.kind===`draft`&&i){let t;e[3]!==i.environmentId||e[4]!==i.threadId?(t={environmentId:i.environmentId,threadId:i.threadId},e[3]=i.environmentId,e[4]=i.threadId,e[5]=t):t=e[5],a=t;break bb0}a=null}return a}function en(e){return jt(e)}function tn(e){let t=(0,Z.c)(4),{toastId:n,dismissAfterVisibleMs:r}=e,i,a;return t[0]!==r||t[1]!==n?(i=()=>{if(!r||r<=0||typeof window>`u`||typeof document>`u`)return;let e=$.get(n)??r,t=null,i=null,a=!1,o=()=>{i!==null&&(window.clearTimeout(i),i=null)},s=()=>{a||(a=!0,$.delete(n),Q.close(n))},c=()=>{t!==null&&(e=Math.max(0,e-(Date.now()-t)),t=null,o(),$.set(n,e))},l=()=>{if(!(a||t!==null)){if(e<=0){s();return}t=Date.now(),o(),i=window.setTimeout(()=>{e=0,t=null,s()},e)}},u=()=>{if(document.visibilityState===`visible`&&document.hasFocus()){l();return}c()};return u(),document.addEventListener(`visibilitychange`,u),window.addEventListener(`focus`,u),window.addEventListener(`blur`,u),()=>{document.removeEventListener(`visibilitychange`,u),window.removeEventListener(`focus`,u),window.removeEventListener(`blur`,u),c(),o()}},a=[r,n],t[0]=r,t[1]=n,t[2]=i,t[3]=a):(i=t[2],a=t[3]),(0,W.useEffect)(i,a),null}function nn(e){let t=(0,Z.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({children:n,position:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`top-center`:i,o;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,K.jsx)(mt,{}),t[4]=o):o=t[4];let s;t[5]===a?s=t[6]:(s=(0,K.jsx)(rn,{position:a}),t[5]=a,t[6]=s);let c;return t[7]!==n||t[8]!==r||t[9]!==s?(c=(0,K.jsxs)(Be,{toastManager:Q,...r,children:[o,n,s]}),t[7]=n,t[8]=r,t[9]=s,t[10]=c):c=t[10],c}function rn(e){let t=(0,Z.c)(19),{position:n}=e,{toasts:r}=lt(),i=$t(),a;t[0]===n?a=t[1]:(a=n.startsWith(`top`),t[0]=n,t[1]=a);let o=a,s;t[2]===i?s=t[3]:(s=e=>Lt(e.data,i),t[2]=i,t[3]=s);let c=Ft(r.filter(s)),l,u;t[4]===r?(l=t[5],u=t[6]):(l=()=>{let e=new Set(r.map(an));for(let t of $.keys())e.has(t)||$.delete(t)},u=[r],t[4]=r,t[5]=l,t[6]=u),(0,W.useEffect)(l,u);let d=dt,f=dt,p;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=V(`fixed z-100 mx-auto flex w-[calc(100%-var(--toast-inset)*2)] max-w-90 [--toast-header-offset:var(--workspace-topbar-height)] [--toast-inset:--spacing(4)] sm:[--toast-inset:--spacing(8)]`,`data-[position*=top]:top-[calc(var(--toast-inset)+var(--toast-header-offset))]`,`data-[position*=bottom]:bottom-(--toast-inset)`,`data-[position*=left]:left-(--toast-inset)`,`data-[position*=right]:right-(--toast-inset)`,`data-[position*=center]:-translate-x-1/2 data-[position*=center]:left-1/2`),t[7]=p):p=t[7];let m=`${c.frontmostHeight}px`,h;t[8]===m?h=t[9]:(h={"--toast-frontmost-height":m},t[8]=m,t[9]=h);let g=h,_=c.items.map(e=>{let{toast:t,visibleIndex:r,offsetY:i}=e,a=Pt(r,c.items.length),s=Zt(t),{stackedActionLayout:l,inlineContentEndPad:u}=s;return(0,K.jsxs)(Qe,{className:V(`dropdown-glass absolute z-[calc(9999-var(--toast-index))] w-full overflow-visible select-none rounded-xl text-popover-foreground shadow-lg shadow-black/10 [transition:transform_.5s_cubic-bezier(.22,1,.36,1),opacity_.5s,height_.15s] motion-reduce:transition-none`,`data-[position*=right]:right-0 data-[position*=right]:left-auto`,`data-[position*=left]:right-auto data-[position*=left]:left-0`,`data-[position*=center]:right-0 data-[position*=center]:left-0`,`data-[position*=top]:top-0 data-[position*=top]:bottom-auto data-[position*=top]:origin-top`,`data-[position*=bottom]:top-auto data-[position*=bottom]:bottom-0 data-[position*=bottom]:origin-bottom`,`after:absolute after:left-0 after:h-[calc(var(--toast-gap)+1px)] after:w-full`,`data-[position*=top]:after:top-full`,`data-[position*=bottom]:after:bottom-full`,r>0?`not-data-expanded:[--toast-calc-height:var(--toast-frontmost-height)] data-expanded:[--toast-calc-height:max(var(--toast-frontmost-height,var(--toast-height)),var(--toast-height))]`:`[--toast-calc-height:max(var(--toast-frontmost-height,var(--toast-height)),var(--toast-height))]`,`[--toast-gap:--spacing(3)] [--toast-peek:--spacing(3)] [--toast-scale:calc(max(0,1-(var(--toast-index)*.1)))] [--toast-shrink:calc(1-var(--toast-scale))]`,r>0?`not-data-expanded:h-(--toast-calc-height) data-expanded:h-auto`:`h-auto`,`data-[position*=top]:[--toast-calc-offset-y:calc(var(--toast-offset-y)+var(--toast-index)*var(--toast-gap)+var(--toast-swipe-movement-y))]`,`data-[position*=bottom]:[--toast-calc-offset-y:calc(var(--toast-offset-y)*-1+var(--toast-index)*var(--toast-gap)*-1+var(--toast-swipe-movement-y))]`,`data-[position*=top]:transform-[translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)+(var(--toast-index)*var(--toast-peek))+(var(--toast-shrink)*var(--toast-calc-height))))_scale(var(--toast-scale))]`,`data-[position*=bottom]:transform-[translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)-(var(--toast-index)*var(--toast-peek))-(var(--toast-shrink)*var(--toast-calc-height))))_scale(var(--toast-scale))]`,`data-limited:opacity-0`,`data-position:data-expanded:transform-[translateX(var(--toast-swipe-movement-x))_translateY(var(--toast-calc-offset-y))]`,`data-[position*=top]:data-starting-style:transform-[translateY(calc(-100%-var(--toast-inset)))]`,`data-[position*=bottom]:data-starting-style:transform-[translateY(calc(100%+var(--toast-inset)))]`,`data-[position*=top]:data-[position*=right]:data-starting-style:transform-[translateX(calc(100%+var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]`,`data-ending-style:opacity-0`,`data-ending-style:not-data-limited:not-data-swipe-direction:transform-[translateY(calc(var(--toast-calc-offset-y)-100%-var(--toast-inset)))]`,`data-ending-style:data-[swipe-direction=left]:transform-[translateX(calc(var(--toast-swipe-movement-x)-100%-var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]`,`data-ending-style:data-[swipe-direction=right]:transform-[translateX(calc(var(--toast-swipe-movement-x)+100%+var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]`,`data-ending-style:data-[swipe-direction=up]:transform-[translateY(calc(var(--toast-swipe-movement-y)-100%-var(--toast-inset)))]`,`data-ending-style:data-[swipe-direction=down]:transform-[translateY(calc(var(--toast-swipe-movement-y)+100%+var(--toast-inset)))]`,`data-expanded:data-ending-style:data-[swipe-direction=left]:transform-[translateX(calc(var(--toast-swipe-movement-x)-100%-var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]`,`data-expanded:data-ending-style:data-[swipe-direction=right]:transform-[translateX(calc(var(--toast-swipe-movement-x)+100%+var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]`,`data-expanded:data-ending-style:data-[swipe-direction=up]:transform-[translateY(calc(var(--toast-swipe-movement-y)-100%-var(--toast-inset)))]`,`data-expanded:data-ending-style:data-[swipe-direction=down]:transform-[translateY(calc(var(--toast-swipe-movement-y)+100%+var(--toast-inset)))]`),"data-position":n,onPointerEnter:()=>{t.data?.sharedToastId&&X.pause(t.data.sharedToastId,`pointer`)},onPointerLeave:()=>{t.data?.sharedToastId&&X.resume(t.data.sharedToastId,`pointer`)},onFocusCapture:()=>{t.data?.sharedToastId&&X.pause(t.data.sharedToastId,`focus`)},onBlurCapture:e=>{t.data?.sharedToastId&&!e.currentTarget.contains(e.relatedTarget)&&X.resume(t.data.sharedToastId,`focus`)},style:{"--toast-index":r,"--toast-offset-y":`${i}px`},swipeDirection:n.includes(`center`)?[o?`up`:`down`]:n.includes(`left`)?[`left`,o?`up`:`down`]:[`right`,o?`up`:`down`],toast:t,children:[(0,K.jsx)(tn,{dismissAfterVisibleMs:t.data?.dismissAfterVisibleMs,toastId:t.id}),!t.data?.sharedToastId&&(0,K.jsx)(`div`,{className:Ht,children:(0,K.jsx)(`button`,{"aria-label":`Dismiss notification`,className:Ut,"data-slot":`toast-close`,onClick:()=>Wt(Q,t.id,t.data?.onClose),type:`button`,children:(0,K.jsx)(j,{className:`size-3`,strokeWidth:2.25})})}),(0,K.jsxs)($e,{className:V(`pointer-events-auto min-h-0 overflow-y-visible pl-3.5 text-sm transition-opacity duration-250 [overflow-x:clip] data-expanded:opacity-100`,l?`flex flex-col gap-2 py-2.5 pr-3.5`:V(`py-3`,`flex items-center justify-between gap-2`,t.data?.sharedToastId?`pr-2`:u),a&&`not-data-expanded:pointer-events-none not-data-expanded:opacity-0`),children:[(0,K.jsx)(Qt,{...s,actionProps:t.actionProps,toastData:t.data,toastDescription:t.description,toastType:t.type}),t.data?.sharedToastId&&(0,K.jsx)(B,{size:`icon-xs`,variant:`ghost`,"aria-label":`Dismiss notification`,onClick:()=>X.dismiss(t.data.sharedToastId),children:(0,K.jsx)(j,{})})]})]},t.id)}),v;t[10]!==n||t[11]!==g||t[12]!==_||t[13]!==f.Viewport||t[14]!==p?(v=(0,K.jsx)(f.Viewport,{className:p,"data-position":n,"data-slot":`toast-viewport`,style:g,children:_}),t[10]=n,t[11]=g,t[12]=_,t[13]=f.Viewport,t[14]=p,t[15]=v):v=t[15];let y;return t[16]!==v||t[17]!==d.Portal?(y=(0,K.jsx)(d.Portal,{"data-slot":`toast-portal`,children:v}),t[16]=v,t[17]=d.Portal,t[18]=y):y=t[18],y}function an(e){return e.id}function on(e){let t=(0,Z.c)(7),n,r;t[0]===e?(n=t[1],r=t[2]):({children:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,K.jsx)(sn,{}),t[3]=i):i=t[3];let a;return t[4]!==n||t[5]!==r?(a=(0,K.jsxs)(Be,{toastManager:Rt,...r,children:[n,i]}),t[4]=n,t[5]=r,t[6]=a):a=t[6],a}function sn(){let e=(0,Z.c)(7),{toasts:t}=lt(),n=$t(),r;if(e[0]!==n||e[1]!==t){let i;e[3]===n?i=e[4]:(i=e=>Lt(e.data,n),e[3]=n,e[4]=i),r=t.filter(i).map(cn),e[0]=n,e[1]=t,e[2]=r}else r=e[2];let i;return e[5]===r?i=e[6]:(i=(0,K.jsx)(it,{"data-slot":`toast-portal-anchored`,children:(0,K.jsx)(He,{className:`outline-none`,"data-slot":`toast-viewport-anchored`,children:r})}),e[5]=r,e[6]=i),i}function cn(e){let t=e.data?.tooltipStyle??!1,n=e.positionerProps,r=Zt(e),{stackedActionLayout:i,inlineContentEndPad:a}=r;return n?.anchor?(0,K.jsx)(st,{className:`z-100 max-w-[min(--spacing(64),var(--available-width))]`,"data-slot":`toast-positioner`,sideOffset:n.sideOffset??4,toast:e,children:(0,K.jsx)(Qe,{className:V(`dropdown-glass relative overflow-visible text-balance text-popover-foreground text-xs shadow-xl shadow-black/25 transition-[scale,opacity] data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0`,t?`rounded-md`:`rounded-lg`),"data-slot":`toast-popup`,toast:e,children:t?(0,K.jsx)($e,{className:`pointer-events-auto px-2 py-1`,children:(0,K.jsx)(tt,{"data-slot":`toast-title`})}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`div`,{className:Ht,children:(0,K.jsx)(`button`,{"aria-label":`Dismiss notification`,className:Ut,"data-slot":`toast-close`,onClick:()=>Wt(Rt,e.id,e.data?.onClose),type:`button`,children:(0,K.jsx)(j,{className:`size-3`,strokeWidth:2.25})})}),(0,K.jsx)($e,{className:V(`pointer-events-auto min-h-0 overflow-y-visible pl-3.5 text-sm [overflow-x:clip]`,i?`flex flex-col gap-2 py-2.5 pr-3.5`:V(`py-3`,`flex items-center justify-between gap-1.5`,a)),children:(0,K.jsx)(Qt,{...r,actionProps:e.actionProps,toastData:e.data,toastDescription:e.description,toastType:e.type})})]})})},e.id):null}export{De as _,kt as a,Mt as c,jt as d,wt as f,je as g,X as h,Q as i,At as l,Ct as m,nn as n,Ot as o,Tt as p,Rt as r,Et as s,on as t,Dt as u,Oe as v};
|
|
2
|
-
//# sourceMappingURL=toast-WpVvhflo.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{a as n}from"./useParams-DPNRViD9.js";var r=e(t(),1);function i(e){let t=n();return r.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}export{i as t};
|
|
2
|
-
//# sourceMappingURL=useNavigate-B5WzUZJ7.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
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-ChK8VEFC.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-BunkcrGh.js";import{Ct as $e,T as et,t as tt,yt as nt}from"./runtime-DTzyj6T4.js";import{i as b}from"./toast-WpVvhflo.js";import{f as x,h as S,m as rt,u as it}from"./server-COuN0pwg.js";import{i as at,n as ot,s as st,t as ct}from"./session-seR2OUj0.js";import{t as C}from"./use-atom-command-6Jnx7WG6.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-mGukKeaJ.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-Dr8XPXiN.js.map
|