dorkos 0.125.0 → 0.125.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/cli.js +27 -15
- package/dist/browser/native/package-manifest.json +1 -1
- package/dist/browser/source-manifest.json +1 -1
- package/dist/client/assets/{AboutPage-GdrU2Z3k.js → AboutPage-BqGlH1pd.js} +1 -1
- package/dist/client/assets/{ActivityErrorState-D1T74VJE.js → ActivityErrorState-C4hqCedX.js} +1 -1
- package/dist/client/assets/{ActivityPage-7GXGUwd1.js → ActivityPage-frpyizcK.js} +1 -1
- package/dist/client/assets/{ActivityRow-C-8dACWp.js → ActivityRow-DB9c3g1G.js} +1 -1
- package/dist/client/assets/{AdapterIcon-CRRs6yil.js → AdapterIcon-CEHkdca8.js} +1 -1
- package/dist/client/assets/{AdapterSetupWizard-K6DsejqG.js → AdapterSetupWizard-DLJMkb-u.js} +1 -1
- package/dist/client/assets/{AgentOptionRow-CF5XZmBx.js → AgentOptionRow-D-QjHi5k.js} +1 -1
- package/dist/client/assets/{AgentPicker-BXes2ymU.js → AgentPicker-DoGucmqI.js} +1 -1
- package/dist/client/assets/{AgentRequestCard-BuXVpWfb.js → AgentRequestCard--9GA9ymH.js} +1 -1
- package/dist/client/assets/{AppearancePage-DoqoCU4j.js → AppearancePage-NHNiZrtY.js} +1 -1
- package/dist/client/assets/{ApplyToOverridesDialog-By8jgPX3.js → ApplyToOverridesDialog-Clo55n6V.js} +1 -1
- package/dist/client/assets/{AttentionSignalRow-CgGyTDmT.js → AttentionSignalRow-BOpClaCD.js} +1 -1
- package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-B-iktbLX-BzDxZ-G5.js → BaseTanStackRouterDevtoolsPanel-B-iktbLX-D9Tm8ual.js} +1 -1
- package/dist/client/assets/{BindingDialog-BXfjFGvP.js → BindingDialog-DZcTXLE8.js} +1 -1
- package/dist/client/assets/{BlintzCanvas-C-dobEns.js → BlintzCanvas-DzjdPTlx.js} +3 -3
- package/dist/client/assets/{CanvasCsvContent-ClMFJX7T.js → CanvasCsvContent-xYUrbFeA.js} +1 -1
- package/dist/client/assets/{CanvasFileContent-BoDE2jjA.js → CanvasFileContent-D6fTvMea.js} +2 -2
- package/dist/client/assets/{CanvasModel3dContent-fnWc0B7B.js → CanvasModel3dContent-DEassnBV.js} +2 -2
- package/dist/client/assets/{ChannelComposer-DIRPjyyf.js → ChannelComposer-CutghXOq.js} +3 -3
- package/dist/client/assets/{ChatAppsOff-DlCWmwEz.js → ChatAppsOff-C00Nl_w6.js} +1 -1
- package/dist/client/assets/{CodeMirrorDiff-COsbYyNC.js → CodeMirrorDiff-JYxkSqFi.js} +1 -1
- package/dist/client/assets/{CodeMirrorEditor-n3l14rY7.js → CodeMirrorEditor-CVXZ9B5S.js} +1 -1
- package/dist/client/assets/{CommitmentList-S2O_hvwR.js → CommitmentList-CcCSwcZ8.js} +1 -1
- package/dist/client/assets/{CommitmentsPage-COOCQFpL.js → CommitmentsPage-BrDbzpyR.js} +1 -1
- package/dist/client/assets/{ComputerResourceView-PA9T4FZP.js → ComputerResourceView-BlLvMt1I.js} +1 -1
- package/dist/client/assets/{ComputerViewer-CnYUWQBS.js → ComputerViewer-B8SWICbj.js} +1 -1
- package/dist/client/assets/{ConnectionAccessLists-C1ZJtNl-.js → ConnectionAccessLists-Bsb-t24W.js} +1 -1
- package/dist/client/assets/{ConnectionsPage-BBpWiN4-.js → ConnectionsPage-RAhWxuWU.js} +1 -1
- package/dist/client/assets/{ConventionPage-sa0Yn2uq.js → ConventionPage-CNij_BXA.js} +1 -1
- package/dist/client/assets/{ExtensionPageRoute-BztrmZNp.js → ExtensionPageRoute-BsGqTcyI.js} +1 -1
- package/dist/client/assets/{FloatingTanStackRouterDevtools-CqogiFob-CJrqr29-.js → FloatingTanStackRouterDevtools-CqogiFob-eQVA1bL6.js} +1 -1
- package/dist/client/assets/HandlePage-XG5mP_e9.js +1 -0
- package/dist/client/assets/{HeartbeatPage-BkyUpdZt.js → HeartbeatPage-D0tKoR6G.js} +1 -1
- package/dist/client/assets/{KeyEntry-DAMr1NNY.js → KeyEntry-CSmznLcG.js} +1 -1
- package/dist/client/assets/{LexicalField-Cnzrh08A.js → LexicalField-gYKPjFfN.js} +1 -1
- package/dist/client/assets/{ManagesPage-EAbQtygH.js → ManagesPage-BF6MFrsv.js} +1 -1
- package/dist/client/assets/{Marketplace-BfADALGd.js → Marketplace-BWDlXgwH.js} +1 -1
- package/dist/client/assets/{MarketplaceSourcesView-u1WKUk-p.js → MarketplaceSourcesView-BhKzgkiO.js} +1 -1
- package/dist/client/assets/{McpAppFrame-Cz-Ttlqr.js → McpAppFrame-BotrzoHd.js} +1 -1
- package/dist/client/assets/{McpSigninBody-CkOBUhOz.js → McpSigninBody-CdeX_lYs.js} +1 -1
- package/dist/client/assets/{Model3dViewer-CvLaSO7V.js → Model3dViewer-KHktOpbD.js} +1 -1
- package/dist/client/assets/NamePage-Cdd9-mZg.js +1 -0
- package/dist/client/assets/{NewDirectMessageMenu-Be_4mBPd.js → NewDirectMessageMenu-CuvKJEDY.js} +1 -1
- package/dist/client/assets/{NotificationsPage-GCk9gfsW.js → NotificationsPage-DWcgfZJD.js} +1 -1
- package/dist/client/assets/{OpenMeshSwitch-BBzgYSUc.js → OpenMeshSwitch-DdJ7g4yD.js} +1 -1
- package/dist/client/assets/{OperatorIdentityForm-ZAbJ4FJn.js → OperatorIdentityForm-7FUOEWw_.js} +1 -1
- package/dist/client/assets/{PermissionHistory-DgmFpdJK.js → PermissionHistory-CgQhZrvg.js} +1 -1
- package/dist/client/assets/{PermissionsPage-DHFt_34a.js → PermissionsPage-CK34y1VF.js} +1 -1
- package/dist/client/assets/{PersonalityPopover-CobRy95S.js → PersonalityPopover-3BA36sB0.js} +1 -1
- package/dist/client/assets/PhotoPage-DFic-gDH.js +1 -0
- package/dist/client/assets/{PreviewRefusedNotice-Ux5sq2Om.js → PreviewRefusedNotice-CnqAE9sr.js} +1 -1
- package/dist/client/assets/{ProfileFields-kBzeRPfc.js → ProfileFields-CIbISW83.js} +1 -1
- package/dist/client/assets/{ProfilePanelContainer-CREt4ZC3.js → ProfilePanelContainer-DPDHtTbI.js} +1 -1
- package/dist/client/assets/{ProfileRolePicker-hQbo8P6M.js → ProfileRolePicker-83GFtm2P.js} +1 -1
- package/dist/client/assets/{PromptSuggestionChips-CmW1lIso.js → PromptSuggestionChips-B9chKG4w.js} +1 -1
- package/dist/client/assets/{ReportsToPopover-Dpa-_NsO.js → ReportsToPopover-DUv03JZP.js} +1 -1
- package/dist/client/assets/{RoomSurface-BQhgKnIE.js → RoomSurface-Bq6Slne3.js} +1 -1
- package/dist/client/assets/{RoomsPage-BHUDRYzJ.js → RoomsPage-BKxzz-nN.js} +1 -1
- package/dist/client/assets/{RunsOnPopover-bGZ6VJoF.js → RunsOnPopover-BIdmMhs9.js} +1 -1
- package/dist/client/assets/{RuntimeConnectFlow-DN2ElvcH.js → RuntimeConnectFlow-IaRVgmqH.js} +1 -1
- package/dist/client/assets/{RuntimeSetupDialog-CUFie4LV.js → RuntimeSetupDialog-Er-lzjmK.js} +1 -1
- package/dist/client/assets/{SeenDevices-D_FnsL7V.js → SeenDevices-9quCcdUW.js} +1 -1
- package/dist/client/assets/{SessionsPage-1uOPUCP9.js → SessionsPage-CGic5VaN.js} +1 -1
- package/dist/client/assets/{SettingsDialog-AbwEHDG8.js → SettingsDialog-BZ58IaK1.js} +1 -1
- package/dist/client/assets/{SkillsPage-BEobBuAr.js → SkillsPage-VRYwez5T.js} +1 -1
- package/dist/client/assets/{TaskDialogWrapper-BAFSmT-z.js → TaskDialogWrapper-C9LMV8oe.js} +1 -1
- package/dist/client/assets/{TasksEmptyState-BFw2ODM-.js → TasksEmptyState-CagC0LAa.js} +1 -1
- package/dist/client/assets/{TasksPage-C0CMgSFx.js → TasksPage-3gkHB1Pv.js} +1 -1
- package/dist/client/assets/{TeamComputerEntry-BpjxLA1n.js → TeamComputerEntry-BD89Y5e6.js} +1 -1
- package/dist/client/assets/{ToolsPage-dx-rQ2F1.js → ToolsPage-Ds6LwY79.js} +1 -1
- package/dist/client/assets/{TopologyGraph-LpxkBhGK.js → TopologyGraph-CiZ2ACcQ.js} +1 -1
- package/dist/client/assets/{TourHost--UYZoKlJ.js → TourHost-BISNaEzZ.js} +1 -1
- package/dist/client/assets/{UnlinkDialog-BN2odbqD.js → UnlinkDialog-DTuXHNsi.js} +1 -1
- package/dist/client/assets/{UnreadDivider-LbVIAoxM.js → UnreadDivider-l_VZ7ECn.js} +1 -1
- package/dist/client/assets/{WidgetErrorCard-CAUx4KUI.js → WidgetErrorCard-I8WiJv2g.js} +1 -1
- package/dist/client/assets/{WorkView-DVx4WoVI.js → WorkView-_wehEEl-.js} +3 -3
- package/dist/client/assets/_shell-BLcPeb8K.js +80 -0
- package/dist/client/assets/{_shell._home-uuqgFA3M.js → _shell._home-CcRH-M-A.js} +1 -1
- package/dist/client/assets/{_shell._home.activity-CiMsy7bF.js → _shell._home.activity-cR24Vr9Q.js} +1 -1
- package/dist/client/assets/{_shell._home.index-0Zm5q3-G.js → _shell._home.index-agU2ItcI.js} +1 -1
- package/dist/client/assets/{_shell._home.tasks-BClPai4g.js → _shell._home.tasks-BDR9JTj3.js} +1 -1
- package/dist/client/assets/{_shell._home.workspaces-DH4BgLT0.js → _shell._home.workspaces-B4nlcACK.js} +1 -1
- package/dist/client/assets/{_shell.channels-BGXkXPhY.js → _shell.channels-B7lTxkqM.js} +1 -1
- package/dist/client/assets/{_shell.connections-BwjXkgi1.js → _shell.connections-CWQYcH58.js} +1 -1
- package/dist/client/assets/{_shell.feedback-requests-j7gTBF5b.js → _shell.feedback-requests-BkgHtyZr.js} +1 -1
- package/dist/client/assets/_shell.marketplace-BMqwT9qX.js +1 -0
- package/dist/client/assets/_shell.marketplace_.sources-pXGa7Cqb.js +1 -0
- package/dist/client/assets/_shell.session-CmoE1W38.js +1 -0
- package/dist/client/assets/{_shell.team-BgJu1gDa.js → _shell.team-CTIVEpZQ.js} +3 -3
- package/dist/client/assets/{_shell.threads-C1IJJzcf.js → _shell.threads-ClWYrnld.js} +1 -1
- package/dist/client/assets/_shell.x._extensionId-BiXilrSW.js +1 -0
- package/dist/client/assets/_shell.x._extensionId_._-BiXilrSW.js +1 -0
- package/dist/client/assets/{abnfDiagram-WEYOIA3C-BuEHMh0D.js → abnfDiagram-WEYOIA3C-0-Mx5lSG.js} +1 -1
- package/dist/client/assets/{access-copy-BZNjpw9v.js → access-copy-Cj31J6PU.js} +1 -1
- package/dist/client/assets/{arc-BbGU9Ctb.js → arc-DVmpcNHP.js} +1 -1
- package/dist/client/assets/{architectureDiagram-ZHVYKT53-CdRG5sTM.js → architectureDiagram-ZHVYKT53-BZhMXbuC.js} +1 -1
- package/dist/client/assets/{banner-C7kHJJGz.js → banner-Ctq7kvQ0.js} +1 -1
- package/dist/client/assets/{blockDiagram-RJAE7QA3-CBQ6YXoI.js → blockDiagram-RJAE7QA3-Ctmof3-7.js} +1 -1
- package/dist/client/assets/{c4Diagram-XDPPPE54-DavNcKCF.js → c4Diagram-XDPPPE54-BPglmQhG.js} +1 -1
- package/dist/client/assets/{card-D4ek-VvX.js → card-DI7YtQh3.js} +1 -1
- package/dist/client/assets/channel-A2WD4smw.js +1 -0
- package/dist/client/assets/{chunk-2E7WHVMD-ClO15ze9.js → chunk-2E7WHVMD-DIK6CHka.js} +1 -1
- package/dist/client/assets/{chunk-2Q5K7J3B-DsLDzf_i.js → chunk-2Q5K7J3B-C3uATYd9.js} +1 -1
- package/dist/client/assets/{chunk-4EMNKR2T-D20fXIIK.js → chunk-4EMNKR2T-Dl3iYXVl.js} +1 -1
- package/dist/client/assets/{chunk-55XCU76K-no_S5sRX.js → chunk-55XCU76K-BJF-Hcs9.js} +1 -1
- package/dist/client/assets/{chunk-5VM5RSS4-D5xWEZ2p.js → chunk-5VM5RSS4-Cju3BnqQ.js} +1 -1
- package/dist/client/assets/{chunk-JWPE2WC7-CnsdZOv0.js → chunk-JWPE2WC7-v1omZzgE.js} +1 -1
- package/dist/client/assets/{chunk-VQ5W62QI-DxYg8tsH.js → chunk-VQ5W62QI-2HqA3jPL.js} +1 -1
- package/dist/client/assets/{chunk-XXDRQBXY-7CQ-MKdC.js → chunk-XXDRQBXY-RDXwFs9Z.js} +1 -1
- package/dist/client/assets/{chunk-ZCHMQSOR-Ca7Jh42b.js → chunk-ZCHMQSOR-DhQsY-OT.js} +2 -2
- package/dist/client/assets/{classDiagram-v2-4MYWR3UA-BvZXavcI.js → classDiagram-v2-4MYWR3UA-DC5N-GDk.js} +1 -1
- package/dist/client/assets/{command-srO4Wv-5.js → command-DpK0GpDM.js} +1 -1
- package/dist/client/assets/{cose-bilkent-JH36ORCC-1NCiJaHv.js → cose-bilkent-JH36ORCC-BriFsb6c.js} +1 -1
- package/dist/client/assets/{cpu-CFIu4JtK.js → cpu-DzCUBK-1.js} +1 -1
- package/dist/client/assets/{cynefin-EF2NZ3EQ-DgZeohG3.js → cynefin-EF2NZ3EQ-cj34OpiI.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-WF24UDRP-MQB2xbJK.js → cynefinDiagram-WF24UDRP-DvAggKpl.js} +1 -1
- package/dist/client/assets/{dagre-NK4GIZVX-BFHk_Y44.js → dagre-NK4GIZVX-BskSpt7C.js} +1 -1
- package/dist/client/assets/{diagram-CBK3MWTC-CloEvZfp.js → diagram-CBK3MWTC-C6BZljcO.js} +1 -1
- package/dist/client/assets/{diagram-I5XIIV2D-9nzUtfKI.js → diagram-I5XIIV2D--4FPRmBZ.js} +1 -1
- package/dist/client/assets/{diagram-ODIL2UCW-DVdnelgu.js → diagram-ODIL2UCW-kZxp81Fr.js} +1 -1
- package/dist/client/assets/{diagram-PFBEJUXE-tTEeiAHa.js → diagram-PFBEJUXE-BSXBAffS.js} +1 -1
- package/dist/client/assets/{diagram-RJA3I4VV-QFehV9_1.js → diagram-RJA3I4VV-DLDPF6FG.js} +1 -1
- package/dist/client/assets/{diagram-TYUNFSNR-CYU5li-4.js → diagram-TYUNFSNR-CoU2knZy.js} +1 -1
- package/dist/client/assets/{ebnfDiagram-V4P3TTPT-Cn040Beg.js → ebnfDiagram-V4P3TTPT-C77T1UPB.js} +1 -1
- package/dist/client/assets/{elk-QONTBCTQ-tBbnwcb3.js → elk-QONTBCTQ-UFXrlbAn.js} +1 -1
- package/dist/client/assets/{empty-state-Bxfi7_ss.js → empty-state-aNwJA6H8.js} +1 -1
- package/dist/client/assets/{erDiagram-KYQIGQAA-DAA0fFlD.js → erDiagram-KYQIGQAA-CyLB8fKu.js} +1 -1
- package/dist/client/assets/{execution-config-afKaYukD.js → execution-config-D7JzMYC2.js} +1 -1
- package/dist/client/assets/{file-C-ooqbRY.js → file-bSD5jgk_.js} +1 -1
- package/dist/client/assets/{file-exclamation-point-BWWgLsMF.js → file-exclamation-point-BcCIL-rE.js} +1 -1
- package/dist/client/assets/{file-text-BJt8biPY.js → file-text-DTvj1wzM.js} +1 -1
- package/dist/client/assets/{find-latest-widget-fence-DPQimlUD.js → find-latest-widget-fence-D01ENK2h.js} +1 -1
- package/dist/client/assets/{flowDiagram-IUGLLWBU-vYI6TodS.js → flowDiagram-IUGLLWBU-qmnUF-Ak.js} +1 -1
- package/dist/client/assets/{form-LJ2Rf9ny.js → form-C_yPntkz.js} +1 -1
- package/dist/client/assets/{format-cron-DrUISrHj.js → format-cron-DUPWkOrW.js} +1 -1
- package/dist/client/assets/{ganttDiagram-R7GPNTJY-DLYpSX7r.js → ganttDiagram-R7GPNTJY-CBzoqGuU.js} +1 -1
- package/dist/client/assets/{git-branch-D5xr7U5P.js → git-branch-ClXAt1_G.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-PDYL7XHY-DNIbVOaY.js → gitGraphDiagram-PDYL7XHY-DMh_n1S2.js} +1 -1
- package/dist/client/assets/{graph-DNjxkUSL.js → graph-BgkuepqW.js} +1 -1
- package/dist/client/assets/{heart-DnR_GX4I.js → heart-BrjEmIsl.js} +1 -1
- package/dist/client/assets/{highlighted-body-KPVGNVTW-L_Jd2uei.js → highlighted-body-KPVGNVTW-DlHNVEaV.js} +1 -1
- package/dist/client/assets/{image-lightbox-DZIhMyF3.js → image-lightbox-BtzkRztd.js} +1 -1
- package/dist/client/assets/{image-off-DdvvVxmq.js → image-off-4yaoLh32.js} +1 -1
- package/dist/client/assets/{index-B0jt7Nng.js → index-6yT0Qr0s.js} +1 -1
- package/dist/client/assets/{index-Ixk2o7yl.js → index-A_qzw4D8.js} +1 -1
- package/dist/client/assets/{index-adYd35CJ.js → index-Adjbt_HC.js} +1 -1
- package/dist/client/assets/{index-CXWlrRzK.js → index-B-X82FND.js} +1 -1
- package/dist/client/assets/{index-BzKkoaB1.js → index-BMCDckcY.js} +1 -1
- package/dist/client/assets/index-BOuCpkRb.js +1 -0
- package/dist/client/assets/{index-DTuNXPGU.js → index-BUkUamu4.js} +1 -1
- package/dist/client/assets/index-BVq1p60h.js +1 -0
- package/dist/client/assets/{index-By8pKNSM.js → index-BXtagrMY.js} +1 -1
- package/dist/client/assets/{index-CQ2atcs_.js → index-BeVLPg9t.js} +1 -1
- package/dist/client/assets/{index-ld6lMfGU.js → index-Bgg4cW4L.js} +1 -1
- package/dist/client/assets/{index-Ba9q2CoQ.js → index-BqHUbNdh.js} +1 -1
- package/dist/client/assets/{index-DqCxUalt.js → index-BtG4vr8c.js} +1 -1
- package/dist/client/assets/{index-BsHyymmC.js → index-C0LPB1iH.js} +1 -1
- package/dist/client/assets/{index-CDo6TA8n.js → index-CJhmUsIv.js} +1 -1
- package/dist/client/assets/{index-a6ojvFqI.js → index-CMLDdOez.js} +1 -1
- package/dist/client/assets/{index-D-Q7CW4p.js → index-CNV11SW6.js} +1 -1
- package/dist/client/assets/{index-9GoQjBFo.js → index-CNiC7KUz.js} +1 -1
- package/dist/client/assets/{index-By-VWzSF.js → index-CSyZb1X9.js} +1 -1
- package/dist/client/assets/{index-B1gC3xYN.js → index-CThGpHO2.js} +1 -1
- package/dist/client/assets/{index-uIonuakd.js → index-C_H6ZIel.js} +1 -1
- package/dist/client/assets/{index-ANmu61E0.js → index-C_xSr5lb.js} +1 -1
- package/dist/client/assets/{index-r0stHl-2.js → index-Cefoks17.js} +1 -1
- package/dist/client/assets/{index-DKTd8X7n.js → index-CjUfPyOM.js} +261 -261
- package/dist/client/assets/{index-DXWsH2Ep.js → index-Ckut3u-d.js} +1 -1
- package/dist/client/assets/{index-BFecX5dC.js → index-CrQWuUpr.js} +1 -1
- package/dist/client/assets/{index-xfRcAp50.js → index-CyfSPJ1D.js} +1 -1
- package/dist/client/assets/{index-CSqz4B0v.js → index-D0yajRDv.js} +1 -1
- package/dist/client/assets/index-D2ZFfqZZ.css +1 -0
- package/dist/client/assets/{index-ZYbeRA5f.js → index-DB2t3GUm.js} +3 -3
- package/dist/client/assets/{index-Bri5bZfv.js → index-DFWrO42z.js} +1 -1
- package/dist/client/assets/{index-BqKjnd_r.js → index-DGdKO24t.js} +1 -1
- package/dist/client/assets/{index-5hCWBj-r.js → index-DQ9ppIWv.js} +1 -1
- package/dist/client/assets/{index-DjFFFMc-.js → index-DX546SK5.js} +2 -2
- package/dist/client/assets/{index-Blhsfk7u.js → index-DXalAOXT.js} +1 -1
- package/dist/client/assets/{index-CDGWl8qL.js → index-DZ1BC5JW.js} +1 -1
- package/dist/client/assets/{index-BAIKz_P0.js → index-DgxXSEmR.js} +1 -1
- package/dist/client/assets/{index-BsmR2hi4.js → index-Dj4I8KcL.js} +3 -3
- package/dist/client/assets/{index-Bpwvxz0c.js → index-DrnHzrt4.js} +1 -1
- package/dist/client/assets/{index-CLQIvYHP.js → index-FhmSwVD0.js} +1 -1
- package/dist/client/assets/{index-BWQfqbbe.js → index-WkQdt6Zo.js} +1 -1
- package/dist/client/assets/{index-BYeyKNKj.js → index-WxG6nG96.js} +1 -1
- package/dist/client/assets/{index-D0ujPZdD.js → index-f1W4Bd4W.js} +1 -1
- package/dist/client/assets/{index-B2wx4J9U.js → index-qdygDruh.js} +1 -1
- package/dist/client/assets/{index-CLbs0fcq.js → index-t-NyR7HD.js} +1 -1
- package/dist/client/assets/{index.esm-j5KQ_b6S.js → index.esm-Bb3LMu5X.js} +1 -1
- package/dist/client/assets/{infoDiagram-MVDRKAX5-DjvSkTas.js → infoDiagram-MVDRKAX5-DbU4eDjZ.js} +1 -1
- package/dist/client/assets/{inline-code-DlVYFFW7.js → inline-code-DwFNff3_.js} +1 -1
- package/dist/client/assets/{ishikawaDiagram-HPEHV2GE-BBivrI5n.js → ishikawaDiagram-HPEHV2GE-DmHmF-HT.js} +1 -1
- package/dist/client/assets/{journeyDiagram-BOSHW7O7-DKdhbtdx.js → journeyDiagram-BOSHW7O7-DsjOeP3J.js} +1 -1
- package/dist/client/assets/{kanban-definition-FNSA4HC5-CkgAodR5.js → kanban-definition-FNSA4HC5-ByQ1WGy2.js} +1 -1
- package/dist/client/assets/{layers-CzyhuVSM.js → layers-DFZUUHM5.js} +1 -1
- package/dist/client/assets/{lightbulb-DwGE7s99.js → lightbulb-Bbgsejp1.js} +1 -1
- package/dist/client/assets/{link-2-CljREnN9.js → link-2-xieOmwOK.js} +1 -1
- package/dist/client/assets/{list-runtime-types-D5ZO30FL.js → list-runtime-types-B0CSonAi.js} +1 -1
- package/dist/client/assets/{markdown-content-CN_dGlgE.js → markdown-content-ysBIqFAg.js} +1 -1
- package/dist/client/assets/{mention-pill-C6OT4gx4.js → mention-pill-Daeu1X92.js} +1 -1
- package/dist/client/assets/{mermaid.core-DNuzxE7q.js → mermaid.core-B1mQMOXd.js} +4 -4
- package/dist/client/assets/{message-square-off-DlkAPJdd.js → message-square-off-D9hm8WNH.js} +1 -1
- package/dist/client/assets/{mindmap-definition-6OY57UG3-f9ygKKO1.js → mindmap-definition-6OY57UG3-CoP-DGm1.js} +1 -1
- package/dist/client/assets/{more-details-DRPervoL.js → more-details-DHCpYDi7.js} +1 -1
- package/dist/client/assets/{owner-notice-C-Q9ySA7.js → owner-notice-Crxco7HN.js} +1 -1
- package/dist/client/assets/{package-BVNiaGrb.js → package-CD8xq7hk.js} +1 -1
- package/dist/client/assets/{page-container-D03bhclt.js → page-container-B9sDc2wq.js} +1 -1
- package/dist/client/assets/{pane-resize-handle-CZ9rHhNr.js → pane-resize-handle-DOchpdJ6.js} +1 -1
- package/dist/client/assets/{paperclip-DQQVX5tJ.js → paperclip-CzhXW5qi.js} +1 -1
- package/dist/client/assets/{path-input-CQ16nhYd.js → path-input-Z2p922fj.js} +1 -1
- package/dist/client/assets/{pegDiagram-ECIUJNBX-CZ_YkcKh.js → pegDiagram-ECIUJNBX-TEsMAO1a.js} +1 -1
- package/dist/client/assets/{pieDiagram-GNMPY74T-DLHSPEH7.js → pieDiagram-GNMPY74T-CMIDIiMP.js} +1 -1
- package/dist/client/assets/{plug-CadJyjTp.js → plug-BEp9Ly3k.js} +1 -1
- package/dist/client/assets/{primer-trigger-DH4xfrlM.js → primer-trigger-4qUY83SX.js} +1 -1
- package/dist/client/assets/{profile-errors-DSnHlauU.js → profile-errors-CezsKqhA.js} +1 -1
- package/dist/client/assets/{progress-BB97hlmb.js → progress-eQl1UvNz.js} +1 -1
- package/dist/client/assets/{quadrantDiagram-D57K4MC3-BWcUu48x.js → quadrantDiagram-D57K4MC3-DXjohzOz.js} +1 -1
- package/dist/client/assets/{query-error-state-B456s96E.js → query-error-state-COuKRlU0.js} +1 -1
- package/dist/client/assets/{radio-DrpN3x3S.js → radio-Cdnkcg1w.js} +1 -1
- package/dist/client/assets/{railroadDiagram-Y72NRBL7-C2VRM83h.js → railroadDiagram-Y72NRBL7-BojgH6Hw.js} +1 -1
- package/dist/client/assets/registry-BSucT23N.js +1 -0
- package/dist/client/assets/{relay-trace-schemas-BYCaGsVJ.js → relay-trace-schemas-XcVQg5Fa.js} +1 -1
- package/dist/client/assets/{repeat-DPzic7-j.js → repeat-wB31CP7I.js} +1 -1
- package/dist/client/assets/{requirementDiagram-EQYSW5RA-B1bpdcM7.js → requirementDiagram-EQYSW5RA-Gojbrcvg.js} +1 -1
- package/dist/client/assets/{room-files-source-aN4p_kDV.js → room-files-source-DXKpm43a.js} +1 -1
- package/dist/client/assets/{rotate-ccw-clock-gqBy98sI.js → rotate-ccw-clock-LSKKAcnR.js} +1 -1
- package/dist/client/assets/{rotate-cw-mHsqEte-.js → rotate-cw-scTEKxeZ.js} +1 -1
- package/dist/client/assets/{sankeyDiagram-SY24JHO5-QCGTTh9k.js → sankeyDiagram-SY24JHO5-QS71aycL.js} +1 -1
- package/dist/client/assets/{scroll-area-DVd6ctli.js → scroll-area-BNFXgTKM.js} +1 -1
- package/dist/client/assets/{search-x-CzgTzL0z.js → search-x-Cjf0n9z7.js} +1 -1
- package/dist/client/assets/{sequenceDiagram-BLEHNHQU-kiR1gX_u.js → sequenceDiagram-BLEHNHQU-Beg7mj69.js} +1 -1
- package/dist/client/assets/{shield-x-Btfd3Xnx.js → shield-x-Dr4BZfo_.js} +1 -1
- package/dist/client/assets/{signed-in-gS3tMpTW.js → signed-in-L9MLqTuc.js} +1 -1
- package/dist/client/assets/{sizeCapture-INFHLROL-Da56aMj0.js → sizeCapture-INFHLROL-3Oo1KjRp.js} +1 -1
- package/dist/client/assets/{soul-file-C7zd1yXt.js → soul-file-CxpOawh5.js} +1 -1
- package/dist/client/assets/{stateDiagram-v2-A6IESKWZ-BZ3qlQWl.js → stateDiagram-v2-A6IESKWZ-DFYIDQ6C.js} +1 -1
- package/dist/client/assets/{swimlanes-B3ENRKFQ-B-wp91_T.js → swimlanes-B3ENRKFQ-BUgKOOrv.js} +1 -1
- package/dist/client/assets/swimlanesDiagram-AYQRV4AK-Bqjv1MSj.js +8 -0
- package/dist/client/assets/{table-BIdFvzBs.js → table-B0LsKsEv.js} +1 -1
- package/dist/client/assets/{timeline-definition-JXYKGLGB-CQojjy-8.js → timeline-definition-JXYKGLGB-BsPZ0P_8.js} +1 -1
- package/dist/client/assets/{trust-posture-DszobEjt.js → trust-posture-Cm7OhCEx.js} +1 -1
- package/dist/client/assets/{unplug-xlfZ61jC.js → unplug-DLA7Ib_s.js} +1 -1
- package/dist/client/assets/{unverified-catalog-notice-DymrAwtm.js → unverified-catalog-notice-CxBO_pta.js} +1 -1
- package/dist/client/assets/{use-adapter-catalog-CytBTafV.js → use-adapter-catalog-C333Z2Q6.js} +1 -1
- package/dist/client/assets/{use-bindings-BPNK3sUh.js → use-bindings-Bu4yLLR5.js} +1 -1
- package/dist/client/assets/{use-composer-prefs-DMQT0qiv.js → use-composer-prefs-BnjCX9pM.js} +1 -1
- package/dist/client/assets/{use-connector-management-PDVdWccW.js → use-connector-management-Bo6wOJQS.js} +1 -1
- package/dist/client/assets/{use-deep-link-scroll-CwapSmGj.js → use-deep-link-scroll-D867V6rs.js} +1 -1
- package/dist/client/assets/{use-delete-binding-CgTwS83G.js → use-delete-binding-DKObM-zT.js} +1 -1
- package/dist/client/assets/{use-dev-links-BoZCIc4h.js → use-dev-links-C0Zc30aj.js} +1 -1
- package/dist/client/assets/{use-direct-message-panel-Cs4I6669.js → use-direct-message-panel-DNWtQq4B.js} +1 -1
- package/dist/client/assets/{use-external-adapter-catalog-PBrsasQ8.js → use-external-adapter-catalog-Bv5rDkX4.js} +1 -1
- package/dist/client/assets/{use-full-activity-feed-C2seN-V1.js → use-full-activity-feed-CFUj0qCS.js} +1 -1
- package/dist/client/assets/use-is-below-desktop-BUS7OPGv.js +1 -0
- package/dist/client/assets/use-is-hub-CFhvDMHt.js +1 -0
- package/dist/client/assets/{use-local-browser-CF0uGQ6e.js → use-local-browser-BeZjn0gA.js} +1 -1
- package/dist/client/assets/{use-mesh-topology-CnCeK4gS.js → use-mesh-topology-DurMpvjU.js} +1 -1
- package/dist/client/assets/{use-mounted-ref-BtAb14HI.js → use-mounted-ref-CBSuPNPv.js} +1 -1
- package/dist/client/assets/{use-notification-prefs-B8LHpZTt.js → use-notification-prefs-b8iKvzB4.js} +1 -1
- package/dist/client/assets/{use-panel-tab-placements-DOXj0Pii.js → use-panel-tab-placements-BcKEux1G.js} +1 -1
- package/dist/client/assets/use-pending-read-BBBAnUYu.js +1 -0
- package/dist/client/assets/{use-personality-commit-YV9FVC-a.js → use-personality-commit-u3kQ6h3H.js} +1 -1
- package/dist/client/assets/{use-promo-activation-CjtGhz_3.js → use-promo-activation-C8_cGmEW.js} +1 -1
- package/dist/client/assets/{use-promo-dismissals-4rbLgSDG.js → use-promo-dismissals-B3VuaQCf.js} +1 -1
- package/dist/client/assets/{use-pulse-freshness-CGqANpVO.js → use-pulse-freshness-CSWQ0TZS.js} +1 -1
- package/dist/client/assets/{use-relay-config-CvU_70WJ.js → use-relay-config-BA6c0FMB.js} +1 -1
- package/dist/client/assets/{use-room-follow-claim-Doq_lWjk.js → use-room-follow-claim-BV-MtDQ5.js} +1 -1
- package/dist/client/assets/{use-room-sessions-CoEIaBRt.js → use-room-sessions-W62Zl72O.js} +1 -1
- package/dist/client/assets/{use-roving-tab-list-BzsrpjWV.js → use-roving-tab-list-CMITzUHu.js} +1 -1
- package/dist/client/assets/{use-session-canvas-DQ9ND8il.js → use-session-canvas-u63m2mYH.js} +3 -3
- package/dist/client/assets/{use-status-budget-AnHroEO0.js → use-status-budget-CbmPFvpQ.js} +1 -1
- package/dist/client/assets/{use-unclaimed-chats-DzOLK27i.js → use-unclaimed-chats-D7SEUfiO.js} +1 -1
- package/dist/client/assets/use-update-config-Dfd7KMde.js +1 -0
- package/dist/client/assets/{useMutationState-BAU_J-u3.js → useMutationState-rOg4bnKv.js} +1 -1
- package/dist/client/assets/{usecaseDiagram-WPOLBNNX-BrHN0c6G.js → usecaseDiagram-WPOLBNNX-C-w0e-nv.js} +1 -1
- package/dist/client/assets/{vennDiagram-Q3Y3IDCW-CbeP0Pbp.js → vennDiagram-Q3Y3IDCW-BNm2WXT5.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-IVAIDKWA-mn5ebFhs.js → wardleyDiagram-IVAIDKWA-BFyFLiir.js} +1 -1
- package/dist/client/assets/{xychartDiagram-4URNHDU4-C8fXRQEv.js → xychartDiagram-4URNHDU4-BKxZlnEx.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/index.js +278 -101
- package/dist/server/index.js.map +2 -2
- package/package.json +4 -4
- package/dist/client/assets/HandlePage-tZidnrlt.js +0 -1
- package/dist/client/assets/NamePage-BS-oN_Hi.js +0 -1
- package/dist/client/assets/PhotoPage-BmFypD13.js +0 -1
- package/dist/client/assets/_shell-D7Jp6t6_.js +0 -80
- package/dist/client/assets/_shell.marketplace-6JRXJ9gt.js +0 -1
- package/dist/client/assets/_shell.marketplace_.sources-DriHXfBM.js +0 -1
- package/dist/client/assets/_shell.session-BXSWGdwi.js +0 -1
- package/dist/client/assets/_shell.x._extensionId-BNgicBXG.js +0 -1
- package/dist/client/assets/_shell.x._extensionId_._-BNgicBXG.js +0 -1
- package/dist/client/assets/channel-ClNeQ2PQ.js +0 -1
- package/dist/client/assets/index-5eNHb7up.js +0 -1
- package/dist/client/assets/index-D1kQ19Gb.css +0 -1
- package/dist/client/assets/index-DHi8-3w0.js +0 -1
- package/dist/client/assets/registry-DRvQ3ChB.js +0 -1
- package/dist/client/assets/swimlanesDiagram-AYQRV4AK-Drg_8k1s.js +0 -8
- package/dist/client/assets/use-is-below-desktop-pvzUlnxh.js +0 -1
- package/dist/client/assets/use-is-hub-CvEPWuj0.js +0 -1
- package/dist/client/assets/use-pending-read-DBaC7e8N.js +0 -1
- package/dist/client/assets/use-update-config-NRkQbxae.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a1 as u,dz as h,a4 as p,dA as k,j as r,cT as D,cU as j,cW as x,cX as L,cY as R,dB as P,B as f,a7 as l}from"./index-
|
|
1
|
+
import{a1 as u,dz as h,a4 as p,dA as k,j as r,cT as D,cU as j,cW as x,cX as L,cY as R,dB as P,B as f,a7 as l}from"./index-CjUfPyOM.js";import{u as m}from"./use-dev-links-C0Zc30aj.js";function A(){const e=u();return p({mutationFn:t=>e.previewDevLink(t),meta:{suppressErrorToast:!0}})}function y(){const e=u(),t=m(),o=h(n=>n.forget);return p({mutationFn:n=>e.linkDevLink(n),meta:{suppressErrorToast:!0},onSuccess:n=>{n.status==="linked"&&(o(n.link),t())}})}function $(){const e=u(),t=m(),o=h(n=>n.forget);return p({mutationFn:({name:n,...s})=>e.unlinkDevLink(n,s),meta:{suppressErrorToast:!0},onSuccess:(n,s)=>{o(s),t()}})}const w=/^(\S+) didn't build:/;function g(e){const t=e.length===1?w.exec(e[0]):null;return t?`Couldn’t reload: ${t[1]} has a build error.`:"Couldn’t reload your last edit."}function T(e,t,o){if(e.state!=="active")return{kind:e.state};const n=o==null?void 0:o.lastReloadAt,s=t!==void 0&&(o===void 0||t.at>=o.linkedAt)?t:void 0,i=s!==void 0&&(n===void 0||s.at>=n);if(i&&s.errors&&s.errors.length>0)return{kind:"reload-failed",at:s.at,headline:g(s.errors),details:s.errors};const c=i?s.at:n;return c?{kind:"reloaded",at:c}:{kind:"watching"}}function C(e,t){const o=Math.max(0,Math.floor((t-new Date(e).getTime())/1e3));if(o<2)return"Reloaded just now";if(o<60)return`Reloaded ${o}s ago`;const n=Math.floor(o/60);if(n<60)return`Reloaded ${n}m ago`;const s=Math.floor(n/60);return s<24?`Reloaded ${s}h ago`:`Reloaded ${new Date(e).toLocaleDateString(void 0,{month:"short",day:"numeric"})}`}function v(e){return e.agentPath?{scope:"project",projectPath:e.agentPath}:{scope:"global"}}function F(e,t){var s;const{scope:o}=v(t),n=(s=t.devLink)==null?void 0:s.path;return e==null?void 0:e.find(i=>i.name===t.name&&i.scope===o&&i.path===n)}function N(e,t){return t?{name:t.name,scope:t.scope,...t.projectPath!==void 0&&{projectPath:t.projectPath}}:{name:e.name,...v(e)}}function I(e,t){return t.restored==="installed"?{title:`${e} runs from the installed copy.`}:t.parkedLeftAt?{title:`${e} unlinked. Its installed copy couldn’t come back.`,description:`It’s still set aside at ${t.parkedLeftAt}.`}:t.leftInPlace?{title:`${e} unlinked.`,description:"Something else was in its place. It was left as it is."}:{title:`${e} removed.`}}function U({target:e,onClose:t,onUnlinked:o}){const n=$(),s=e?k(e.name):"",i=(e==null?void 0:e.then)==="install";async function c(){if(e)try{const a=await n.mutateAsync({name:e.name,scope:e.scope,...e.projectPath!==void 0&&{projectPath:e.projectPath}});if(i&&a.restored==="removed"&&!a.parkedLeftAt)l.success(`${s} unlinked.`,{description:a.leftInPlace?"Something else was in its place. It was left as it is.":"It’s not installed until you finish the install."});else{const d=I(s,a);l.success(d.title,d.description?{description:d.description}:void 0)}o==null||o(e,a),t()}catch(a){l.error(`Couldn’t unlink ${s}`,{description:a instanceof Error?a.message:void 0})}}return r.jsx(D,{open:e!==null,onOpenChange:a=>!a&&t(),children:r.jsx(j,{className:"!min-h-0 sm:max-w-md",children:e&&r.jsxs(r.Fragment,{children:[r.jsxs(x,{className:"text-left",children:[r.jsx(L,{className:"text-left",children:i?`Install the published ${s}?`:`Unlink ${s}?`}),r.jsx(R,{className:"text-left",children:i?`${s} is unlinked first. Your folder is not touched.`:e.parked?"Your installed copy comes back.":`${s} is removed. Your folder is not touched.`})]}),r.jsxs(P,{children:[r.jsx(f,{variant:"ghost",onClick:t,disabled:n.isPending,children:"Cancel"}),r.jsx(f,{onClick:()=>void c(),disabled:n.isPending,children:n.isPending?"Unlinking…":i?"Unlink and install":"Unlink"})]})]})})})}export{U,N as a,T as b,C as c,v as d,y as e,F as f,A as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a1 as k,a3 as F,r as o,dZ as L,aY as m,d_ as v,d$ as M,e0 as q,aL as B,e1 as C,aP as E,e2 as P,e3 as Q,j as S}from"./index-
|
|
1
|
+
import{a1 as k,a3 as F,r as o,dZ as L,aY as m,d_ as v,d$ as M,e0 as q,aL as B,e1 as C,aP as E,e2 as P,e3 as Q,j as S}from"./index-CjUfPyOM.js";import{m as J}from"./index-Dj4I8KcL.js";function U(e,t){const n=e??[];return n.some(a=>a.seq===t.seq)?n:n.length===0||n[n.length-1].seq<t.seq?[...n,t]:[...n,t].sort((a,s)=>a.seq-s.seq)}function W(e,t){const n=e??[],a=n.findIndex(w=>w.id===t.id);if(a===-1)return n;const s=n[a];if(s.seq!==t.seq||s.roomId!==t.roomId||JSON.stringify(s.body)===JSON.stringify(t.body)&&JSON.stringify(s.mentions)===JSON.stringify(t.mentions)&&JSON.stringify(s.mentionSpans)===JSON.stringify(t.mentionSpans))return n;const h=[...n];return h[a]={...s,body:t.body,mentions:t.mentions,mentionSpans:t.mentionSpans},h}function Y(e,t){if(t.kind!=="notice"||t.body.notice!=="turn_failed")return;const n=t.body.subjectAuthorId;n!==void 0&&C.getState().clearAuthor(e,n)}function K(e,t){const n=e.getQueryData(E.entries(t));return n&&n.length>0?n[n.length-1].seq:0}function H(e,t){var n;return((n=e.getQueryData(E.detail(t)))==null?void 0:n.viewerAuthorId)??null}const G=2e3;function V(){const e=o.useRef(null),t=o.useCallback(()=>{e.current!==null&&(clearTimeout(e.current),e.current=null)},[]),n=o.useCallback(s=>{t(),m.getState().endRoomCanvasCycle(s)},[t]),a=o.useCallback(s=>{t(),e.current=setTimeout(()=>{e.current=null,m.getState().endRoomCanvasCycle(s)},G)},[t]);return o.useEffect(()=>t,[t]),{arm:a,now:n}}function Z(e){const t=Math.min(v.BACKOFF_CAP_MS,v.BACKOFF_BASE_MS*2**e);return Math.random()*t}const $=50;function z(e,t){return new Promise(n=>{if(t.aborted)return n();const a=()=>{clearTimeout(s),t.removeEventListener("abort",a),n()},s=setTimeout(a,e);t.addEventListener("abort",a,{once:!0})})}function ee(e,t){const n=k(),a=F(),[s,y]=o.useState(null),[h,w]=o.useState(null),[O,A]=o.useState(0),R=o.useRef(!1),N=V(),j=o.useCallback(()=>A(i=>i+1),[]),g=o.useRef(null),_=o.useCallback(()=>{g.current===null&&(g.current=setTimeout(()=>{g.current=null,A(i=>i+1)},$))},[]);return o.useEffect(()=>{if(e===null)return;const i=()=>_();let u=null;const f=()=>{if(document.visibilityState!=="visible"){u=Date.now();return}const d=u===null?0:Date.now()-u;u=null,(R.current||d>=v.VISIBILITY_GRACE_MS)&&_()};let c=L.getListConnectionState();const b=L.subscribeListConnectionState(d=>{const p=d==="connected"&&c==="reconnecting";c=d,p&&_()});return window.addEventListener("online",i),document.addEventListener("visibilitychange",f),()=>{window.removeEventListener("online",i),document.removeEventListener("visibilitychange",f),b(),g.current!==null&&(clearTimeout(g.current),g.current=null)}},[e,_]),o.useEffect(()=>(m.getState().setRoomCanvasLiveRoom(e),()=>m.getState().setRoomCanvasLiveRoom(null)),[e]),o.useEffect(()=>{if(e===null||!t)return;const i=new AbortController;let u=!0,f;return(async()=>{y(null),w(null),R.current=!1;let c=0,b=!1;const d=()=>{c=0,R.current=!1,b&&(b=!1,y(p=>p===e?null:p))};for(;u&&!i.signal.aborted;){const p=Date.now();R.current=!1,m.getState().beginRoomCanvasCycle(e),N.arm(e);const D=setTimeout(d,v.STABILITY_WINDOW_MS);let l;try{if(l=M(n,e,K(a,e),i.signal),f=l,!u||i.signal.aborted){l.retire();return}for await(const r of l.stream){if(!u||i.signal.aborted||(d(),!l.current()))return;if(r.type==="canvas_event"||r.type==="canvas_channel_snapshot"){if(l.publish(r),!l.current())return;continue}if(r.type==="signal"){q(r)?B.getState().observe(e,r):(C.getState().observe(e,r),m.getState().applyRoomCanvasPresence(e,r));continue}if(r.type==="reaction"){a.setQueryData(E.entries(e),x=>J(x,r.entryId,r.reactions));continue}if(r.type==="revision"){if(r.entry.roomId!==e)continue;a.setQueryData(E.entries(e),x=>W(x,r.entry));continue}if(r.type==="canvas"){m.getState().applyRoomCanvasFrame(e,r,H(a,e)),r.change!==void 0?N.now(e):N.arm(e);continue}C.getState().clearAuthor(e,r.entry.authorId),Y(e,r.entry),P.getState().settle(e,r.entry.id),a.setQueryData(E.entries(e),x=>U(x,r.entry))}}catch(r){if(i.signal.aborted)return;if(console.warn("[rooms] live stream dropped",{roomId:e,err:r}),Q(r)){C.getState().clearRoom(e),w(e),y(e),clearTimeout(D);return}}finally{try{l==null||l.retire()}finally{clearTimeout(D)}}if(i.signal.aborted)return;Date.now()-p>=v.STABILITY_WINDOW_MS&&(c=0),c+=1,R.current=!0,c>=v.DISCONNECTED_THRESHOLD&&!b&&(C.getState().clearRoom(e),y(e),b=!0),await z(Z(c),i.signal)}})(),()=>{u=!1;try{f==null||f.retire()}finally{i.abort()}}},[e,t,n,a,O]),{stalled:s!==null&&s===e,unavailable:h!==null&&h===e,retry:j}}function te({label:e}){return S.jsxs("div",{"data-slot":"day-divider","data-testid":"day-divider",role:"separator","aria-label":e,className:"flex items-center gap-3 py-4",children:[S.jsx("span",{"aria-hidden":"true",className:"bg-border/70 h-px flex-1"}),S.jsx("span",{className:"border-border/70 bg-background text-muted-foreground text-2xs rounded-full border px-2.5 py-0.5 font-medium",children:e}),S.jsx("span",{"aria-hidden":"true",className:"bg-border/70 h-px flex-1"})]})}const T="New messages";function ne(){return S.jsxs("div",{"data-slot":"unread-divider","data-testid":"unread-divider",role:"separator","aria-label":T,className:"flex items-center gap-2 px-[var(--msg-padding-x)] py-2",children:[S.jsx("span",{"aria-hidden":"true",className:"bg-brand/60 h-px flex-1"}),S.jsx("span",{className:"text-brand-text text-2xs font-medium tracking-wide",children:T})]})}export{te as D,ne as U,ee as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{W as A,r as x,ft as g,fu as f,fE as k,fs as F,fB as st,fD as ln,nF as dn,l6 as Te,fC as ye,nN as E,nO as Z,nP as un,nQ as pn,nR as mn,fA as Ee,fw as he,nS as fn,fx as $,fv as ee,nT as hn,nD as xn,nU as gn,jj as yn,a1 as bn,nV as Ne,nW as vn,nX as at,aY as jn,jn as kn,j as t,fd as Nn,fe as wn,dW as Sn,nY as Cn,dw as _n,h$ as rt,lR as In,lQ as An,ar as y,G as N,cm as $n,eW as Se,aS as Mn,cs as Tn,bL as En,eX as Ln,nZ as Dn,jF as On,k6 as it,ds as Rn,dI as zn,fV as Wn,fg as Pn,n_ as Bn,ba as Fn,n$ as Un,bx as Gn,ig as Hn,es as Yn,b9 as Kn,J as Le,o0 as Vn,ie as qn,mI as Qn,a0 as ot,bM as Xn,B as ct,eu as De,en as Jn,eo as Zn,ep as es,eq as ts,er as ns,I as ss,x as as,hz as lt,d8 as dt,d9 as ut,da as pt,o1 as mt,a7 as ft,hf as rs,X as is,o2 as os,C as cs}from"./index-
|
|
1
|
+
import{W as A,r as x,ft as g,fu as f,fE as k,fs as F,fB as st,fD as ln,nF as dn,l6 as Te,fC as ye,nN as E,nO as Z,nP as un,nQ as pn,nR as mn,fA as Ee,fw as he,nS as fn,fx as $,fv as ee,nT as hn,nD as xn,nU as gn,jj as yn,a1 as bn,nV as Ne,nW as vn,nX as at,aY as jn,jn as kn,j as t,fd as Nn,fe as wn,dW as Sn,nY as Cn,dw as _n,h$ as rt,lR as In,lQ as An,ar as y,G as N,cm as $n,eW as Se,aS as Mn,cs as Tn,bL as En,eX as Ln,nZ as Dn,jF as On,k6 as it,ds as Rn,dI as zn,fV as Wn,fg as Pn,n_ as Bn,ba as Fn,n$ as Un,bx as Gn,ig as Hn,es as Yn,b9 as Kn,J as Le,o0 as Vn,ie as qn,mI as Qn,a0 as ot,bM as Xn,B as ct,eu as De,en as Jn,eo as Zn,ep as es,eq as ts,er as ns,I as ss,x as as,hz as lt,d8 as dt,d9 as ut,da as pt,o1 as mt,a7 as ft,hf as rs,X as is,o2 as os,C as cs}from"./index-CjUfPyOM.js";import{a as ls}from"./index-D0yajRDv.js";import{C as ht,a as ds,b as us,c as ps,d as ms,e as fs}from"./card-DI7YtQh3.js";import{P as hs,S as xs}from"./progress-eQl1UvNz.js";import{M as gs}from"./markdown-content-ysBIqFAg.js";import{T as xt,d as gt,b as be,e as Ce,c as _e,a as yt}from"./table-B0LsKsEv.js";import{P as ys}from"./package-CD8xq7hk.js";import{H as bs}from"./heart-BrjEmIsl.js";import{G as vs}from"./git-branch-ClXAt1_G.js";import{F as js}from"./file-text-DTvj1wzM.js";import{F as ks}from"./file-bSD5jgk_.js";/**
|
|
2
2
|
* @license lucide-react v1.48.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-
|
|
2
|
-
var ki=Object.defineProperty;var vi=(e,t,n)=>t in e?ki(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var et=(e,t,n)=>vi(e,typeof t!="symbol"?t+"":t,n);import{fo as Ci,iu as ao,qd as Si,r as c,fl as ji,W as dt,dW as Oe,j as r,ar as H,by as me,ih as rs,a1 as ve,qe as io,q as lt,kd as _i,ch as wi,qf as lo,qg as Ni,qh as Ei,fW as Di,B as fe,a7 as Fe,fe as Ti,G as U,J as tn,X as ct,b9 as bt,qi as _t,qj as co,aY as le,qk as Ai,ql as qn,ie as Fi,as as os,du as Ri,ap as Mi,iW as Oi,qm as Bs,el as zs,a8 as ut,p9 as Ii,qn as $i,pf as vt,qo as Qt,a2 as Je,pa as as,a4 as Ct,hI as wt,ek as is,cb as Nt,cT as Pi,cU as Li,cW as Bi,cX as zi,cY as qi,dU as Ui,e as qs,kJ as Wi,dB as Hi,x as He,kK as Vi,p7 as ls,eg as Gi,qp as Ki,qq as Qi,ky as cs,qr as uo,qs as fo,qt as Xi,qu as Yi,iP as nn,a3 as us,cJ as Et,ej as sn,dS as ds,ei as Ji,qv as Zi,jM as mo,qw as el,pc as tl,h$ as nl,es as sl,aU as Xe,ai as Dt,a9 as fs,qx as rl,iX as ol,qy as al,bc as il,T as Tt,i4 as Ge,i5 as Ke,aj as po,qz as rn,dV as At,k6 as ll,cj as ft,s as Ft,hh as cl,hd as Us,ia as ho,hl as ul,C as ms,dx as dl,dy as fl,qA as ml,l as pl,mH as go,aW as hl,qB as gl,qC as xl,qD as bl,qE as yl,qF as kl,qG as We,nV as De,o2 as vl,nW as on,aQ as Cl,hU as Sl,cs as jl,bL as _l,ji as wl,qH as ot,a0 as ps,dX as Ws,dw as xo,f as bo,qI as Nl,eR as El,aZ as Dl,gB as yo,il as ko,hM as St,jN as vo,dY as Tl,qJ as Al,qK as Fl,o as Co,y as an,aV as So,qL as jo,qM as Rl,ne as xn,qN as Xt,jv as Ml,lJ as Ol,be as _o,qO as Il,qP as $l,gi as Pl,gj as Hs,qQ as wo,qR as Ll,qS as Bl,qT as No,qU as Eo,eW as zl,qV as ql,lQ as Ul,fX as Wl,fY as Hl,fZ as Vl,f_ as Gl,f$ as Kl,g0 as Ql,g1 as Xl,g2 as Yl,qW as hs,qX as Jl,qY as Zl,qZ as ec,mg as tc,jp as nc,jq as sc,jr as rc,js as bn,mB as oc,jt as Vs,k5 as ac,bQ as ic,k7 as lc,bS as cc,q_ as Gs,cv as uc,fM as Do,cA as To,cp as dc,cz as fc,ij as mc,cI as Ao,q$ as Fo,cl as Ro,cF as pc,r0 as gs,cG as hc,r1 as gc,aw as xc,cr as bc,r2 as yc,lZ as ae,r3 as kc,r4 as vc,cE as Cc,_ as Sc,mV as Ks,r5 as jc,iM as Qe,r6 as yn,dZ as yt,r7 as Qs,r8 as Xs,r9 as Ys,ck as kn,ra as rt,eM as kt,rb as _c,cL as Mo,rc as Oo,rd as wc,re as Nc,rf as Ec,cM as Io,rg as Dc,rh as Tc,ri as $o,rj as tt,rk as Po,rl as Ac,bP as Fc,rm as Rc,rn as Mc,ff as Lo,ro as Js,rp as Oc,bX as Un,j9 as Bo,cP as Ic,rq as $c,gX as Pc,gW as Lc,jb as Bc,cc as zc,cO as qc,c9 as Uc,ak as ln,rr as Wc,rs as Hc,gR as zo,gO as xs,lk as Vc,rt as Gc,ru as Kc,rv as Qc,rw as qo,o6 as Xc,ju as Yc,rx as ht,ry as Jc,cK as Zc,ge as eu,rz as tu,fb as nu,rA as su,eb as ru,jF as ou,Y as au}from"./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-A_qzw4D8.js","assets/index-CjUfPyOM.js","assets/index-D2ZFfqZZ.css","assets/index-DgxXSEmR.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var ki=Object.defineProperty;var vi=(e,t,n)=>t in e?ki(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var et=(e,t,n)=>vi(e,typeof t!="symbol"?t+"":t,n);import{fo as Ci,iu as ao,qd as Si,r as c,fl as ji,W as dt,dW as Oe,j as r,ar as H,by as me,ih as rs,a1 as ve,qe as io,q as lt,kd as _i,ch as wi,qf as lo,qg as Ni,qh as Ei,fW as Di,B as fe,a7 as Fe,fe as Ti,G as U,J as tn,X as ct,b9 as bt,qi as _t,qj as co,aY as le,qk as Ai,ql as qn,ie as Fi,as as os,du as Ri,ap as Mi,iW as Oi,qm as Bs,el as zs,a8 as ut,p9 as Ii,qn as $i,pf as vt,qo as Qt,a2 as Je,pa as as,a4 as Ct,hI as wt,ek as is,cb as Nt,cT as Pi,cU as Li,cW as Bi,cX as zi,cY as qi,dU as Ui,e as qs,kJ as Wi,dB as Hi,x as He,kK as Vi,p7 as ls,eg as Gi,qp as Ki,qq as Qi,ky as cs,qr as uo,qs as fo,qt as Xi,qu as Yi,iP as nn,a3 as us,cJ as Et,ej as sn,dS as ds,ei as Ji,qv as Zi,jM as mo,qw as el,pc as tl,h$ as nl,es as sl,aU as Xe,ai as Dt,a9 as fs,qx as rl,iX as ol,qy as al,bc as il,T as Tt,i4 as Ge,i5 as Ke,aj as po,qz as rn,dV as At,k6 as ll,cj as ft,s as Ft,hh as cl,hd as Us,ia as ho,hl as ul,C as ms,dx as dl,dy as fl,qA as ml,l as pl,mH as go,aW as hl,qB as gl,qC as xl,qD as bl,qE as yl,qF as kl,qG as We,nV as De,o2 as vl,nW as on,aQ as Cl,hU as Sl,cs as jl,bL as _l,ji as wl,qH as ot,a0 as ps,dX as Ws,dw as xo,f as bo,qI as Nl,eR as El,aZ as Dl,gB as yo,il as ko,hM as St,jN as vo,dY as Tl,qJ as Al,qK as Fl,o as Co,y as an,aV as So,qL as jo,qM as Rl,ne as xn,qN as Xt,jv as Ml,lJ as Ol,be as _o,qO as Il,qP as $l,gi as Pl,gj as Hs,qQ as wo,qR as Ll,qS as Bl,qT as No,qU as Eo,eW as zl,qV as ql,lQ as Ul,fX as Wl,fY as Hl,fZ as Vl,f_ as Gl,f$ as Kl,g0 as Ql,g1 as Xl,g2 as Yl,qW as hs,qX as Jl,qY as Zl,qZ as ec,mg as tc,jp as nc,jq as sc,jr as rc,js as bn,mB as oc,jt as Vs,k5 as ac,bQ as ic,k7 as lc,bS as cc,q_ as Gs,cv as uc,fM as Do,cA as To,cp as dc,cz as fc,ij as mc,cI as Ao,q$ as Fo,cl as Ro,cF as pc,r0 as gs,cG as hc,r1 as gc,aw as xc,cr as bc,r2 as yc,lZ as ae,r3 as kc,r4 as vc,cE as Cc,_ as Sc,mV as Ks,r5 as jc,iM as Qe,r6 as yn,dZ as yt,r7 as Qs,r8 as Xs,r9 as Ys,ck as kn,ra as rt,eM as kt,rb as _c,cL as Mo,rc as Oo,rd as wc,re as Nc,rf as Ec,cM as Io,rg as Dc,rh as Tc,ri as $o,rj as tt,rk as Po,rl as Ac,bP as Fc,rm as Rc,rn as Mc,ff as Lo,ro as Js,rp as Oc,bX as Un,j9 as Bo,cP as Ic,rq as $c,gX as Pc,gW as Lc,jb as Bc,cc as zc,cO as qc,c9 as Uc,ak as ln,rr as Wc,rs as Hc,gR as zo,gO as xs,lk as Vc,rt as Gc,ru as Kc,rv as Qc,rw as qo,o6 as Xc,ju as Yc,rx as ht,ry as Jc,cK as Zc,ge as eu,rz as tu,fb as nu,rA as su,eb as ru,jF as ou,Y as au}from"./index-CjUfPyOM.js";import{P as iu}from"./PromptSuggestionChips-B9chKG4w.js";import{u as lu,a as cu,L as uu,f as du,b as fu,c as mu,B as pu,d as hu}from"./primer-trigger-4qUY83SX.js";import{C as gu}from"./card-DI7YtQh3.js";import{a as xu,u as bu,i as yu}from"./use-notification-prefs-b8iKvzB4.js";import{e as ku,h as vu,o as Uo,f as Cu,P as Su,g as ju,d as _u,p as wu,j as Nu,b as Eu,G as Du,W as Wo,y as Tu,x as Au,z as Fu,u as Ru,t as Mu,w as Ou,n as Iu,k as $u,s as Pu,M as Lu,i as Bu,S as zu,U as qu,A as Uu,v as Wu,R as Hu,q as Vu}from"./use-status-budget-CbmPFvpQ.js";import{B as Gu}from"./banner-Ctq7kvQ0.js";import{t as It,f as Yt,d as Ku,N as Ho,l as Qu,u as Xu,C as jt,b as nt,h as Yu,F as Ju}from"./index-Dj4I8KcL.js";import{u as Zu,b as ed}from"./WidgetErrorCard-I8WiJv2g.js";import{u as td,D as nd,U as sd}from"./UnreadDivider-l_VZ7ECn.js";import{a as rd,c as od}from"./composer-insert-BpyATrmR.js";import{u as ad}from"./use-composer-prefs-BnjCX9pM.js";import{A as Wn,M as id}from"./McpAppFrame-BotrzoHd.js";import{P as ld,W as cd,a as ud,C as dd,b as fd}from"./find-latest-widget-fence-D01ENK2h.js";import{F as Vo}from"./file-bSD5jgk_.js";import{F as md,i as pd}from"./use-session-canvas-u63m2mYH.js";import{F as hd}from"./file-text-DTvj1wzM.js";import{a as gd,b as xd}from"./markdown-content-ysBIqFAg.js";import{a as Go,c as bd,R as yd,K as kd,e as vd,g as Cd}from"./RuntimeConnectFlow-IaRVgmqH.js";import{S as Sd}from"./shield-x-Dr4BZfo_.js";import{u as jd,M as _d}from"./McpSigninBody-CdeX_lYs.js";import{a as Ko,u as wd,I as Nd}from"./image-off-4yaoLh32.js";import{f as Ed}from"./format-duration-BCr6uzby.js";import{l as Dd}from"./use-connector-management-Bo6wOJQS.js";import{A as Td}from"./AgentRequestCard--9GA9ymH.js";function Ad(e,t,n={}){const s=e.get();let o=null,a=s,i;const l=typeof s=="string"?s.replace(/[\d.-]/g,""):void 0,u=()=>{o&&(o.stop(),o=null),e.animation=void 0},d=()=>{const g=Zs(e.get()),m=Zs(a);if(g===m){u();return}const h=o?o.getGeneratorVelocity():e.getVelocity();u(),o=new Si({keyframes:[g,m],velocity:h,type:"spring",restDelta:.001,restSpeed:.01,...n,onUpdate:i})},f=()=>{var g;d(),e.animation=o??void 0,(g=e.events.animationStart)==null||g.notify(),o==null||o.then(()=>{var m;e.animation=void 0,(m=e.events.animationComplete)==null||m.notify()})};if(e.attach((g,m)=>{a=g,i=h=>m(vn(h,l)),Ci.postRender(f)},u),ao(t)){let g=n.skipInitialAnimation===!0;const m=t.on("change",x=>{g?(g=!1,e.jump(vn(x,l),!1)):e.set(vn(x,l))}),h=e.on("destroy",m);return()=>{m(),h()}}return u}function vn(e,t){return t?e+t:e}function Zs(e){return typeof e=="number"?e:parseFloat(e)}function Fd(e,t={}){const{isStatic:n}=c.useContext(ji),s=()=>ao(e)?e.get():e;if(n)return Ko(s);const o=wd(s());return c.useInsertionEffect(()=>Ad(o,e,t),[o,JSON.stringify(t)]),o}function Rd(e,t={}){return Fd(e,{type:"spring",...t})}function Md(e){const t=Math.floor(e/1e3);if(t<3600){const o=Math.floor(t/60),a=t%60;return`${o}m ${String(a).padStart(2,"0")}s`}const n=Math.floor(t/3600),s=Math.floor(t%3600/60);return`${n}h ${String(s).padStart(2,"0")}m`}function Qo(e){const[t,n]=c.useState(()=>Date.now()),s=c.useRef(null);if(c.useEffect(()=>{if(e===null){s.current&&(clearInterval(s.current),s.current=null);return}return n(Date.now()),s.current=setInterval(()=>n(Date.now()),1e3),()=>{s.current&&(clearInterval(s.current),s.current=null)}},[e]),e===null)return{formatted:"0m 00s",ms:0};const o=Math.max(0,t-e);return{formatted:Md(o),ms:o}}function Od(e={}){const{timeoutMs:t=3e4,onIdle:n,onReturn:s}=e,o=c.useRef(!1),a=c.useRef(null),i=c.useCallback(()=>{o.current||(o.current=!0,n==null||n())},[n]),l=c.useCallback(()=>{o.current&&(o.current=!1,s==null||s())},[s]),u=c.useCallback(()=>{a.current&&clearTimeout(a.current),a.current=setTimeout(i,t),l()},[t,i,l]);return c.useEffect(()=>{a.current=setTimeout(i,t);const d=["mousemove","keydown","scroll","touchstart"];d.forEach(g=>document.addEventListener(g,u,{passive:!0}));const f=()=>{document.hidden?i():u()};return document.addEventListener("visibilitychange",f),()=>{a.current&&clearTimeout(a.current),d.forEach(g=>document.removeEventListener(g,u)),document.removeEventListener("visibilitychange",f)}},[t,i,u]),{isIdle:o.current}}function Id({activeInteraction:e,onApprove:t,onAlwaysAllow:n,onDeny:s,onToggleOption:o,onNavigateOption:a,onNavigateQuestion:i,onSubmit:l,optionCount:u=0,focusedIndex:d=0}){const f=c.useRef(!1);c.useEffect(()=>{f.current=!1},[e==null?void 0:e.toolCallId]),c.useEffect(()=>{if(!e)return;function g(m){const h=m.target,x=(h.tagName==="TEXTAREA"||h.tagName==="INPUT")&&!h.disabled;if(!f.current&&!(m.metaKey||m.ctrlKey||m.altKey)){if(e.type==="approval"){if(m.key==="Enter"&&x&&h.closest("[data-approval-field]")!==null)return;m.key==="Enter"&&m.shiftKey?(m.preventDefault(),f.current=!0,n==null||n()):m.key==="Enter"?(m.preventDefault(),f.current=!0,t==null||t()):m.key==="Escape"&&(m.preventDefault(),f.current=!0,s==null||s());return}if(e.type==="question"){if(x){if(m.key==="Enter"&&!m.shiftKey){m.preventDefault(),l==null||l();return}if(m.key==="ArrowUp"){m.preventDefault(),a==null||a("up");return}if(m.key==="ArrowDown"){m.preventDefault(),a==null||a("down");return}return}const C=parseInt(m.key,10);if(C>=1&&C<=9){m.preventDefault(),C-1<u&&(o==null||o(C-1));return}switch(m.key){case"ArrowUp":m.preventDefault(),a==null||a("up");break;case"ArrowDown":m.preventDefault(),a==null||a("down");break;case" ":m.preventDefault(),o==null||o(d);break;case"ArrowLeft":case"[":m.preventDefault(),i==null||i("prev");break;case"ArrowRight":case"]":m.preventDefault(),i==null||i("next");break;case"Enter":m.preventDefault(),l==null||l();break}}}}return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[e,t,n,s,o,a,i,l,u,d])}function Xo(){const[e,t]=c.useState(()=>!document.hidden);return c.useEffect(()=>{const n=()=>t(!document.hidden);return document.addEventListener("visibilitychange",n),()=>document.removeEventListener("visibilitychange",n)},[]),e}/**
|
|
3
3
|
* @license lucide-react v1.48.0 - ISC
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the ISC license.
|
|
@@ -37,7 +37,7 @@ var ki=Object.defineProperty;var vi=(e,t,n)=>t in e?ki(e,t,{enumerable:!0,config
|
|
|
37
37
|
`);/\r./.test(o);)o=o.replace(/^([^\r\n]*)\r+([^\r\n]+)/gm,function(a,i,l){return l+i.slice(l.length)});return o}function t(o){for(var a=0,i=0;i<o.length;i++)o[a].length<=o[i].length&&(a=i);return a}function n(o){if(!/\r/.test(o))return o;for(var a=o.split("\r"),i=[];a.length>0;){var l=t(a);i.push(a[l]),a=a.slice(l+1)}return i.join("\r")}function s(o){if(!o)return"";if(!/\r/.test(o))return o;if(!/\n/.test(o))return n(o);o=o.replace(/\r+\n/gm,`
|
|
38
38
|
`);var a=o.lastIndexOf(`
|
|
39
39
|
`);return e(o.slice(0,a))+`
|
|
40
|
-
`+n(o.slice(a+1))}return gt.exports=e,gt.exports.escapeCarriageReturn=e,gt.exports.escapeCarriageReturnSafe=s,gt.exports}var Ve={},pr;function hh(){if(pr)return Ve;pr=1;var e=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,t=/[\0-\x1F\x7F-\x9F]/,n=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,s=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,o=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,a=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;return Ve.Any=e,Ve.Cc=t,Ve.Cf=n,Ve.P=s,Ve.S=o,Ve.Z=a,Ve}var An,hr;function gh(){if(hr)return An;hr=1;var e=hh();function t(k){const p={};k=k||{},p.src_Any=e.Any.source,p.src_Cc=e.Cc.source,p.src_Z=e.Z.source,p.src_P=e.P.source,p.src_ZPCc=[p.src_Z,p.src_P,p.src_Cc].join("|"),p.src_ZCc=[p.src_Z,p.src_Cc].join("|");const j="[><|]";return p.src_pseudo_letter=`(?:(?!${j}|${p.src_ZPCc})${p.src_Any})`,p.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",p.src_auth=`(?:(?:(?!${p.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,p.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",p.src_host_terminator=`(?=$|${j}|${p.src_ZPCc})(?!${k["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${p.src_ZPCc}))`,p.src_path=`(?:[/?#](?:(?!${p.src_ZCc}|${j}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${p.src_ZCc}|\\]).)*\\]|\\((?:(?!${p.src_ZCc}|[)]).)*\\)|\\{(?:(?!${p.src_ZCc}|[}]).)*\\}|\\"(?:(?!${p.src_ZCc}|["]).)+\\"|\\'(?:(?!${p.src_ZCc}|[']).)+\\'|\\'(?=${p.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${p.src_ZCc}|[.]|$)|`+(k["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+`,(?!${p.src_ZCc}|$)|;(?!${p.src_ZCc}|$)|\\!+(?!${p.src_ZCc}|[!]|$)|\\?(?!${p.src_ZCc}|[?]|$))+|\\/)?`,p.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}',p.src_xn="xn--[a-z0-9\\-]{1,59}",p.src_domain_root="(?:"+p.src_xn+`|${p.src_pseudo_letter}{1,63})`,p.src_domain="(?:"+p.src_xn+`|(?:${p.src_pseudo_letter})|(?:${p.src_pseudo_letter}(?:-|${p.src_pseudo_letter}){0,61}${p.src_pseudo_letter}))`,p.src_host=`(?:(?:(?:(?:${p.src_domain})\\.)*${p.src_domain}))`,p.tpl_host_fuzzy="(?:"+p.src_ip4+`|(?:(?:(?:${p.src_domain})\\.)+(?:%TLDS%)))`,p.tpl_host_no_ip_fuzzy=`(?:(?:(?:${p.src_domain})\\.)+(?:%TLDS%))`,p.src_host_strict=p.src_host+p.src_host_terminator,p.tpl_host_fuzzy_strict=p.tpl_host_fuzzy+p.src_host_terminator,p.src_host_port_strict=p.src_host+p.src_port+p.src_host_terminator,p.tpl_host_port_fuzzy_strict=p.tpl_host_fuzzy+p.src_port+p.src_host_terminator,p.tpl_host_port_no_ip_fuzzy_strict=p.tpl_host_no_ip_fuzzy+p.src_port+p.src_host_terminator,p.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${p.src_ZPCc}|>|$))`,p.tpl_email_fuzzy=`(^|${j}|"|\\(|${p.src_ZCc})(${p.src_email_name}@${p.tpl_host_fuzzy_strict})`,p.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${p.src_ZPCc}))((?![$+<=>^\`||])${p.tpl_host_port_fuzzy_strict}${p.src_path})`,p.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${p.src_ZPCc}))((?![$+<=>^\`||])${p.tpl_host_port_no_ip_fuzzy_strict}${p.src_path})`,p}function n(k){return Array.prototype.slice.call(arguments,1).forEach(function(j){j&&Object.keys(j).forEach(function(_){k[_]=j[_]})}),k}function s(k){return Object.prototype.toString.call(k)}function o(k){return s(k)==="[object String]"}function a(k){return s(k)==="[object Object]"}function i(k){return s(k)==="[object RegExp]"}function l(k){return s(k)==="[object Function]"}function u(k){return k.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const d={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function f(k){return Object.keys(k||{}).reduce(function(p,j){return p||d.hasOwnProperty(j)},!1)}const g={"http:":{validate:function(k,p,j){const _=k.slice(p);return j.re.http||(j.re.http=new RegExp(`^\\/\\/${j.re.src_auth}${j.re.src_host_port_strict}${j.re.src_path}`,"i")),j.re.http.test(_)?_.match(j.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(k,p,j){const _=k.slice(p);return j.re.no_http||(j.re.no_http=new RegExp("^"+j.re.src_auth+`(?:localhost|(?:(?:${j.re.src_domain})\\.)+${j.re.src_domain_root})`+j.re.src_port+j.re.src_host_terminator+j.re.src_path,"i")),j.re.no_http.test(_)?p>=3&&k[p-3]===":"||p>=3&&k[p-3]==="/"?0:_.match(j.re.no_http)[0].length:0}},"mailto:":{validate:function(k,p,j){const _=k.slice(p);return j.re.mailto||(j.re.mailto=new RegExp(`^${j.re.src_email_name}@${j.re.src_host_strict}`,"i")),j.re.mailto.test(_)?_.match(j.re.mailto)[0].length:0}}},m="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",h="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function x(k){return function(p,j){const _=p.slice(j);return k.test(_)?_.match(k)[0].length:0}}function C(){return function(k,p){p.normalize(k)}}function b(k){const p=k.re=t(k.__opts__),j=k.__tlds__.slice();k.onCompile(),k.__tlds_replaced__||j.push(m),j.push(p.src_xn),p.src_tlds=j.join("|");function _(A){return A.replace("%TLDS%",p.src_tlds)}p.email_fuzzy=RegExp(_(p.tpl_email_fuzzy),"i"),p.email_fuzzy_global=RegExp(_(p.tpl_email_fuzzy),"ig"),p.link_fuzzy=RegExp(_(p.tpl_link_fuzzy),"i"),p.link_fuzzy_global=RegExp(_(p.tpl_link_fuzzy),"ig"),p.link_no_ip_fuzzy=RegExp(_(p.tpl_link_no_ip_fuzzy),"i"),p.link_no_ip_fuzzy_global=RegExp(_(p.tpl_link_no_ip_fuzzy),"ig"),p.host_fuzzy_test=RegExp(_(p.tpl_host_fuzzy_test),"i");const N=[];k.__compiled__={};function R(A,F){throw new Error(`(LinkifyIt) Invalid schema "${A}": ${F}`)}Object.keys(k.__schemas__).forEach(function(A){const F=k.__schemas__[A];if(F===null)return;const D={validate:null,link:null};if(k.__compiled__[A]=D,a(F)){i(F.validate)?D.validate=x(F.validate):l(F.validate)?D.validate=F.validate:R(A,F),l(F.normalize)?D.normalize=F.normalize:F.normalize?R(A,F):D.normalize=C();return}if(o(F)){N.push(A);return}R(A,F)}),N.forEach(function(A){k.__compiled__[k.__schemas__[A]]&&(k.__compiled__[A].validate=k.__compiled__[k.__schemas__[A]].validate,k.__compiled__[A].normalize=k.__compiled__[k.__schemas__[A]].normalize)}),k.__compiled__[""]={validate:null,normalize:C()};const w=Object.keys(k.__compiled__).filter(function(A){return A.length>0&&k.__compiled__[A]}).map(u).join("|");k.re.schema_test=RegExp(`(^|(?!_)(?:[><|]|${p.src_ZPCc}))(${w})`,"i"),k.re.schema_search=RegExp(`(^|(?!_)(?:[><|]|${p.src_ZPCc}))(${w})`,"ig"),k.re.schema_at_start=RegExp(`^${k.re.schema_search.source}`,"i"),k.re.pretest=RegExp(`(${k.re.schema_test.source})|(${k.re.host_fuzzy_test.source})|@`,"i")}function y(k,p,j,_){const N=k.slice(j,_);this.schema=p.toLowerCase(),this.index=j,this.lastIndex=_,this.raw=N,this.text=N,this.url=N}function v(k,p){if(!(this instanceof v))return new v(k,p);p||f(k)&&(p=k,k={}),this.__opts__=n({},d,p),this.__schemas__=n({},g,k),this.__compiled__={},this.__tlds__=h,this.__tlds_replaced__=!1,this.re={},b(this)}return v.prototype.add=function(p,j){return this.__schemas__[p]=j,b(this),this},v.prototype.set=function(p){return this.__opts__=n(this.__opts__,p),this},v.prototype.test=function(p){if(!p.length)return!1;let j,_;if(this.re.schema_test.test(p)){for(_=this.re.schema_search,_.lastIndex=0;(j=_.exec(p))!==null;)if(this.testSchemaAt(p,j[2],_.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&p.search(this.re.host_fuzzy_test)>=0&&p.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&p.indexOf("@")>=0&&p.match(this.re.email_fuzzy)!==null)},v.prototype.pretest=function(p){return this.re.pretest.test(p)},v.prototype.testSchemaAt=function(p,j,_){return this.__compiled__[j.toLowerCase()]?this.__compiled__[j.toLowerCase()].validate(p,_,this):0},v.prototype.match=function(p){const j=[],_=[],N=[],R=[];let w,A,F;function D(T,M){return T?M?T.index!==M.index?T.index<M.index?T:M:T.lastIndex>=M.lastIndex?T:M:T:M}if(!p.length)return null;if(this.re.schema_test.test(p))for(F=this.re.schema_search,F.lastIndex=0;(w=F.exec(p))!==null;)A=this.testSchemaAt(p,w[2],F.lastIndex),A&&_.push({schema:w[2],index:w.index+w[1].length,lastIndex:w.index+w[0].length+A});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for(F=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,F.lastIndex=0;(w=F.exec(p))!==null;)N.push({schema:"",index:w.index+w[1].length,lastIndex:w.index+w[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(F=this.re.email_fuzzy_global,F.lastIndex=0;(w=F.exec(p))!==null;)R.push({schema:"mailto:",index:w.index+w[1].length,lastIndex:w.index+w[0].length});const S=[0,0,0];let E=0;for(;;){const T=[_[S[0]],R[S[1]],N[S[2]]],M=D(D(T[0],T[1]),T[2]);if(!M)break;if(M===T[0]?S[0]++:M===T[1]?S[1]++:S[2]++,M.index<E)continue;const I=new y(p,M.schema,M.index,M.lastIndex);this.__compiled__[I.schema].normalize(I,this),j.push(I),E=M.lastIndex}return j.length?j:null},v.prototype.matchAtStart=function(p){if(!p.length)return null;const j=this.re.schema_at_start.exec(p);if(!j)return null;const _=this.testSchemaAt(p,j[2],j[0].length);if(!_)return null;const N=new y(p,j[2],j.index+j[1].length,j.index+j[0].length+_);return this.__compiled__[N.schema].normalize(N,this),N},v.prototype.tlds=function(p,j){return p=Array.isArray(p)?p:[p],j?(this.__tlds__=this.__tlds__.concat(p).sort().filter(function(_,N,R){return _!==R[N-1]}).reverse(),b(this),this):(this.__tlds__=p.slice(),this.__tlds_replaced__=!0,b(this),this)},v.prototype.normalize=function(p){p.schema||(p.url=`http://${p.url}`),p.schema==="mailto:"&&!/^mailto:/i.test(p.url)&&(p.url=`mailto:${p.url}`)},v.prototype.onCompile=function(){},An=v,An}var gr;function xh(){if(gr)return Ae;gr=1;var e=Ae&&Ae.__createBinding||(Object.create?(function(b,y,v,k){k===void 0&&(k=v);var p=Object.getOwnPropertyDescriptor(y,v);(!p||("get"in p?!y.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return y[v]}}),Object.defineProperty(b,k,p)}):(function(b,y,v,k){k===void 0&&(k=v),b[k]=y[v]})),t=Ae&&Ae.__setModuleDefault||(Object.create?(function(b,y){Object.defineProperty(b,"default",{enumerable:!0,value:y})}):function(b,y){b.default=y}),n=Ae&&Ae.__importStar||(function(){var b=function(y){return b=Object.getOwnPropertyNames||function(v){var k=[];for(var p in v)Object.prototype.hasOwnProperty.call(v,p)&&(k[k.length]=p);return k},b(y)};return function(y){if(y&&y.__esModule)return y;var v={};if(y!=null)for(var k=b(y),p=0;p<k.length;p++)k[p]!=="default"&&e(v,y,k[p]);return t(v,y),v}})(),s=Ae&&Ae.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.default=x;const o=s(mh()),a=ph(),i=s(gh()),l=n(Nl());function u(b,y=!1){return b=(0,a.escapeCarriageReturn)(C(b)),o.default.ansiToJson(b,{json:!0,remove_empty:!0,use_classes:y})}function d(b){let y="";return b.bg&&(y+=`${b.bg}-bg `),b.fg&&(y+=`${b.fg}-fg `),b.decoration&&(y+=`ansi-${b.decoration} `),y===""?null:(y=y.substring(0,y.length-1),y)}function f(b){const y={};switch(b.bg&&(y.backgroundColor=`rgb(${b.bg})`),b.fg&&(y.color=`rgb(${b.fg})`),b.decoration){case"bold":y.fontWeight="bold";break;case"dim":y.opacity="0.5";break;case"italic":y.fontStyle="italic";break;case"hidden":y.visibility="hidden";break;case"strikethrough":y.textDecoration="line-through";break;case"underline":y.textDecoration="underline";break;case"blink":y.textDecoration="blink";break}return y}function g(b,y,v,k){const p=y?null:f(v),j=y?d(v):null;return b?b==="fuzzy"?h(v,k,p,j):m(v,k,p,j):l.createElement("span",{style:p,key:k,className:j},v.content)}function m(b,y,v,k){const p=[],j=/(\s|^)(https?:\/\/(?:www\.|(?!www))[^\s.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/g;let _=0,N;for(;(N=j.exec(b.content))!==null;){const[,R,w]=N,A=N.index+R.length;A>_&&p.push(b.content.substring(_,A));const F=w.startsWith("www.")?`http://${w}`:w;p.push(l.createElement("a",{key:_,href:F,target:"_blank"},`${w}`)),_=j.lastIndex}return _<b.content.length&&p.push(b.content.substring(_)),l.createElement("span",{style:v,key:y,className:k},p)}function h(b,y,v,k){var p;const j=(0,i.default)({fuzzyEmail:!1}).tlds(["io"],!0);if(!j.pretest(b.content))return l.createElement("span",{style:v,key:y,className:k},b.content);const _=j.match(b.content);if(!_)return l.createElement("span",{style:v,key:y,className:k},b.content);const N=[b.content.substring(0,(p=_[0])===null||p===void 0?void 0:p.index)];return _.forEach((R,w)=>{var A;N.push(l.createElement("a",{href:R.url,target:"_blank",key:w},b.content.substring(R.index,R.lastIndex))),_[w+1]&&N.push(b.content.substring(_[w].lastIndex,(A=_[w+1])===null||A===void 0?void 0:A.index))}),_[_.length-1].lastIndex!==b.content.length&&N.push(b.content.substring(_[_.length-1].lastIndex,b.content.length)),l.createElement("span",{style:v,key:y,className:k},N)}function x(b){const{className:y,useClasses:v,children:k,linkify:p}=b;return l.createElement("code",{className:y},u(k??"",v??!1).map(g.bind(null,p??!1,v??!1)))}function C(b){let y=b;do b=y,y=b.replace(/[^\n]\x08/gm,"");while(y.length<b.length);return b}return Ae}var bh=xh();const yh=El(bh),kh=c.lazy(()=>Dl(()=>import("./index-Ixk2o7yl.js"),__vite__mapDeps([0,1,2,3]))),vh={...ch,container:"bg-transparent text-xs font-mono leading-relaxed",label:"text-muted-foreground font-medium mr-1",clickableLabel:"text-muted-foreground font-medium mr-1 cursor-pointer",nullValue:"text-muted-foreground italic",undefinedValue:"text-muted-foreground italic",stringValue:"text-foreground",booleanValue:"text-amber-400",numberValue:"text-blue-400",otherValue:"text-muted-foreground",punctuation:"text-muted-foreground",collapseIcon:'text-muted-foreground mr-1 cursor-pointer text-[1.2em] select-none after:content-["▾"]',expandIcon:'text-muted-foreground mr-1 cursor-pointer text-[1.2em] select-none after:content-["▸"]',collapsedContent:'text-muted-foreground mr-1 cursor-pointer after:text-[0.8em] after:content-["…"]'},xr=5120;function Ch(e){try{const t=JSON.parse(e);return typeof t=="object"&&t!==null&&("old_string"in t||"new_string"in t)?t:null}catch{return null}}function Fn({children:e,rawContent:t,supportsRawToggle:n,isRaw:s,onToggleRaw:o}){const[a,i]=c.useState(!1),l=t.length>xr,u=l&&!a?t.slice(0,xr):t;return r.jsxs("div",{className:"space-y-1",children:[n&&r.jsx("div",{className:"flex justify-end",children:r.jsx("button",{onClick:o,className:"text-muted-foreground hover:text-foreground text-xs underline",children:s?"Formatted":"Raw"})}),s?r.jsxs(r.Fragment,{children:[r.jsx("pre",{className:"max-h-64 overflow-y-auto text-xs whitespace-pre-wrap",children:u}),l&&!a&&r.jsxs("button",{onClick:()=>i(!0),className:"text-muted-foreground hover:text-foreground text-xs underline",children:["Show full output (",(t.length/1024).toFixed(1),"KB)"]})]}):e]})}function Sh({oldValue:e,newValue:t,rawContent:n}){return r.jsx(c.Suspense,{fallback:r.jsx("pre",{className:"max-h-64 overflow-y-auto text-xs whitespace-pre-wrap",children:n}),children:r.jsx(kh,{oldValue:e,newValue:t,splitView:!1,useDarkTheme:!0,hideLineNumbers:!0,showDiffOnly:!0,extraLinesSurroundingDiff:2,styles:{variables:{dark:{diffViewerBackground:"transparent",addedBackground:"rgba(34, 197, 94, 0.1)",addedColor:"rgb(134, 239, 172)",addedGutterBackground:"rgba(34, 197, 94, 0.08)",wordAddedBackground:"rgba(34, 197, 94, 0.2)",removedBackground:"rgba(239, 68, 68, 0.1)",removedColor:"rgb(252, 165, 165)",removedGutterBackground:"rgba(239, 68, 68, 0.08)",wordRemovedBackground:"rgba(239, 68, 68, 0.2)",gutterBackground:"hsl(0 0% 9%)",gutterBackgroundDark:"hsl(0 0% 7%)",gutterColor:"hsl(0 0% 40%)"}}}})})}function Fa({content:e,toolName:t,input:n}){const[s,o]=c.useState(!1);if(t==="Edit"&&n){const i=Ch(n);if(i)return r.jsx(Sh,{oldValue:i.old_string??"",newValue:i.new_string??"",rawContent:e})}const a=nf(e);if(a==="json"){let i;try{i=JSON.parse(e)}catch{i={}}return r.jsx(Fn,{rawContent:e,supportsRawToggle:!0,isRaw:s,onToggleRaw:()=>o(l=>!l),children:r.jsx(fh,{data:i,style:vh,shouldExpandNode:dh})})}return a==="ansi"?r.jsx(Fn,{rawContent:e,supportsRawToggle:!0,isRaw:s,onToggleRaw:()=>o(i=>!i),children:r.jsx("pre",{className:"max-h-64 overflow-y-auto text-xs whitespace-pre-wrap",children:r.jsx(yh,{children:e})})}):r.jsx(Fn,{rawContent:e,supportsRawToggle:!1,isRaw:!0,onToggleRaw:()=>{},children:null})}function jh(e){try{const t=JSON.parse(e);if(!t||typeof t!="object")return e;const n=t;if(n.error&&typeof n.error=="object"){const s=n.error;if(typeof s.message=="string")return s.message}return typeof n.message=="string"?n.message:e}catch{return e}}function _h(e){const t=jh(e),n=t.match(/The ['"`]([^'"`]+)['"`] model requires a newer version of Codex\b/i);if(n)return{message:`The Codex version DorkOS is using is too old for ${n[1]}. Update DorkOS (or your custom Codex installation), then try again. You can also choose another model.`,category:"runtime_update_required",details:e};const s=t.match(/The ['"`]([^'"`]+)['"`] model is not supported when using Codex with a ChatGPT account\b/i);return s?{message:`${s[1]} isn’t available with a ChatGPT account. Choose another model from the model menu.`,category:"model_unavailable",details:e}:null}const Ra="runtimes";function wh({label:e}){const{open:t}=yo();return r.jsx("button",{type:"button",onClick:()=>t(Ra),className:"text-muted-foreground hover:text-foreground mt-2 block text-xs underline decoration-dotted underline-offset-2 transition-colors",children:e})}function Nh({runtime:e,sessionId:t,onRetry:n,onSigninComplete:s}){const[o,a]=c.useState(!1),i=vd(e,{sessionId:t,onCompleted:()=>a((s==null?void 0:s())??!1)}),l=Cd(e);return i.isSuccess?r.jsxs("div",{className:"mt-3","data-testid":"auth-error-signin-success",children:[r.jsxs("p",{className:"text-status-success-fg flex items-center gap-2 text-sm",role:"status",children:[r.jsx(tn,{"aria-hidden":"true",className:"size-3.5 shrink-0"}),o?"Signed in. Sending your message again…":"Signed in."]}),!o&&n&&r.jsxs(fe,{size:"sm",onClick:n,className:"mt-2 gap-1.5",children:[r.jsx(St,{className:"size-3"}),"Retry"]})]}):r.jsxs("div",{className:"mt-3","data-testid":"auth-error-signin",children:[r.jsx("p",{className:"text-muted-foreground mb-2 flex items-center gap-2 text-sm",role:"status",children:i.isPending&&r.jsxs(r.Fragment,{children:[r.jsx(He,{size:"xs",className:"shrink-0"}),l.signInPending]})}),i.isError&&r.jsx("p",{className:"text-destructive mb-2 text-sm",role:"alert",children:i.errorMessage}),r.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[r.jsxs(fe,{size:"sm",onClick:i.login,disabled:i.isPending,className:"gap-1.5","data-testid":"auth-error-signin-button",children:[r.jsx(ko,{className:"size-3"}),i.isError?"Try again":l.signInLabel]}),n&&r.jsxs(fe,{variant:"outline",size:"sm",onClick:n,className:"gap-1.5",children:[r.jsx(St,{className:"size-3"}),"Retry"]})]}),r.jsx(wh,{label:"Use an API key instead"})]})}function br({onRetry:e}){return r.jsx("div",{className:"mt-3","data-testid":"auth-error-remote-guidance",children:r.jsx(yd,{...e?{onRetry:e}:{}})})}function Ma({onRetry:e}){const{open:t}=yo();return r.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-2",children:[r.jsxs(fe,{size:"sm",onClick:()=>t(Ra),className:"gap-1.5",children:[r.jsx(ko,{className:"size-3"}),"Fix sign-in"]}),e&&r.jsxs(fe,{variant:"outline",size:"sm",onClick:e,className:"gap-1.5",children:[r.jsx(St,{className:"size-3"}),"Retry"]})]})}function Eh({runtime:e,sessionId:t,onRetry:n,renderOffer:s,lead:o,children:a}){const i=!Go(),l=vo(),u=le(m=>m.setRetryAccount),d=At(e).label,f=s({runtime:e,origin:`auth-error:${t}`,note:`This makes new ${d} work on this computer run on your DorkOS credits.`,chosen:n?`New ${d} work on this computer now runs on your DorkOS credits. Sending your message again…`:`New ${d} work on this computer now runs on your DorkOS credits.`,...n?{confirmAfterLink:{prompt:"Linked. Send again on DorkOS credits?",action:"Send again"}}:{},onChoose:async()=>{await l.mutateAsync({runtime:e,useCredits:!0}),n&&(u({id:ut,sessionId:t}),n())}}),g=m=>r.jsxs("section",{"aria-label":"Other ways",children:[r.jsx("p",{className:"text-muted-foreground text-2xs font-medium tracking-wide uppercase",children:"Other ways"}),m]});return o?r.jsxs("div",{className:"mt-3 space-y-3","data-testid":"auth-error-credits-first",children:[f,g(a),r.jsx(kd,{ollama:Tl(e)==="provider-picker",remote:i})]}):r.jsxs("div",{"data-testid":"auth-error-credits-other-way",children:[a,r.jsx("div",{className:"mt-3",children:g(f)})]})}function Dh({sessionId:e,onRetry:t,onSigninComplete:n}){var g;const{sessions:s,isLoading:o}=rs(),a=Go(),i=(g=s.find(m=>m.id===e))==null?void 0:g.runtime,l=bd(i),u=mo(),d=i!==void 0&&u!==null&&(l==="lead"||l==="other-way");if(!a&&!d)return r.jsx(br,{onRetry:t});if(o)return null;const f=a?!i||!Al(i)?r.jsx(Ma,{onRetry:t}):r.jsx(Nh,{runtime:i,sessionId:e,onRetry:t,onSigninComplete:n}):r.jsx(br,{onRetry:t});return d&&i&&u?r.jsx(Eh,{runtime:i,sessionId:e,onRetry:t,renderOffer:u,lead:l==="lead",children:f}):f}function Th({sessionId:e,onRetry:t,onSigninComplete:n}){return e?r.jsx(Dh,{sessionId:e,onRetry:t,onSigninComplete:n}):r.jsx(Ma,{onRetry:t})}const Ah="credits_unavailable",Fh="folder-sign-in";function Rh({onRetry:e,sessionId:t,runtimeLabel:n,reason:s}){const o=le(x=>x.setRetryAccount),a=Fl(),i=vo(),l=Co(),u=cn(t),d=an(u??null);if(!e)return null;const f=Mh(d),g=n?`your ${n}`:"your own",m=()=>{if(d!==void 0){if(f==="pick-for-send"){t&&o({id:vt,sessionId:t}),e();return}i.mutate({runtime:d.type,useCredits:!1},{onSuccess:()=>f==="new-conversation"?l(void 0,{runtime:d.type}):e()})}},h=()=>{t&&a.mutate(t,{onSuccess:({launch:x})=>{x!=null&&x.ok&&o({id:x.accountId,sessionId:t}),e()}})};return r.jsxs("div",{className:"mt-2 flex flex-col gap-2","data-testid":"credits-error-actions",children:[r.jsxs("div",{className:"flex flex-wrap gap-2",children:[r.jsxs(fe,{size:"sm",variant:"outline",onClick:e,className:"gap-1.5",children:[r.jsx(St,{className:"size-3"}),"Retry"]}),t&&r.jsx(fe,{size:"sm",variant:"outline",onClick:m,disabled:d===void 0||i.isPending,children:f==="new-conversation"?`Start a new chat on ${g} sign-in`:`Use ${g} sign-in`}),t&&s===Fh&&r.jsx(fe,{size:"sm",variant:"outline",onClick:h,disabled:a.isPending,children:"Don’t use credits in this project"})]}),t&&f==="whole-runtime"&&r.jsxs("p",{className:"text-muted-foreground text-xs","data-testid":"credits-own-sign-in-reach",children:["This moves all ",n??"its"," chats to ",g," sign-in, not just this one."]}),a.error&&r.jsx("p",{className:"text-muted-foreground text-xs",role:"status",children:a.error.message}),i.isError&&r.jsx("p",{className:"text-muted-foreground text-xs",role:"status",children:"Couldn’t switch to your own sign-in. Try again in a moment."})]})}function Mh(e){var t;return e===void 0||e.supportsAccounts?"pick-for-send":((t=e.credits)==null?void 0:t.scope)==="conversation"?"new-conversation":"whole-runtime"}function Oh({category:e,onChooseModel:t}){return t?r.jsxs(fe,{size:"sm",onClick:t,className:"mt-3 gap-1.5",children:[r.jsx(So,{className:"size-3"}),e==="runtime_update_required"?"Choose another model":"Choose model"]}):null}const Ih="your agent",$h="agent",yr={max_turns:{heading:"Turn limit reached",subtext:"The agent ran for its maximum number of turns.",retryable:!1},execution_error:{heading:"Agent stopped unexpectedly",subtext:"Something went wrong before it finished.",retryable:!0},budget_exceeded:{heading:"Cost limit reached",subtext:"This chat hit its spending limit.",retryable:!1},output_format_error:{heading:"Output format error",subtext:"The agent couldn’t produce the required output format.",retryable:!1},auth_error:{heading:"Sign in again",subtext:"Your login stopped working. Sign in again to continue.",retryable:!0},model_unavailable:{heading:"Model unavailable",subtext:"Choose another model from the model menu.",retryable:!1},runtime_update_required:{heading:"Codex update required",subtext:"Update DorkOS or your Codex install, then try again. Or choose another model.",retryable:!1}},Ph=new Set(["max_turns","budget_exceeded","output_format_error","auth_error"]);function Lh(e){return`Sign in to ${e??Ih} again`}function Bh(e){return`Your ${e??$h} login stopped working. Sign in again to continue.`}const zh="rate_limit";function dn(e){const{code:t,at:n,sessionId:s,reason:o}=e;return t===jo&&o?r.jsx(ra,{agentId:o}):t===zh&&s?r.jsx(_m,{sessionId:s,at:n??"",fallback:r.jsx(kr,{...e})}):r.jsx(kr,{...e})}function kr({message:e,category:t,details:n,onRetry:s,heading:o,subtext:a,runtimeLabel:i,sessionId:l,onSigninComplete:u,onChooseModel:d,code:f,reason:g}){const[m,h]=c.useState(!1),x=f===Ah,C=c.useMemo(()=>_h(e),[e]),b=(C==null?void 0:C.category)??t,y=(C==null?void 0:C.message)??e,v=C?n!=null&&n.includes(C.details??"")?n:[n,C.details].filter(Boolean).join(`
|
|
40
|
+
`+n(o.slice(a+1))}return gt.exports=e,gt.exports.escapeCarriageReturn=e,gt.exports.escapeCarriageReturnSafe=s,gt.exports}var Ve={},pr;function hh(){if(pr)return Ve;pr=1;var e=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,t=/[\0-\x1F\x7F-\x9F]/,n=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,s=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,o=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,a=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;return Ve.Any=e,Ve.Cc=t,Ve.Cf=n,Ve.P=s,Ve.S=o,Ve.Z=a,Ve}var An,hr;function gh(){if(hr)return An;hr=1;var e=hh();function t(k){const p={};k=k||{},p.src_Any=e.Any.source,p.src_Cc=e.Cc.source,p.src_Z=e.Z.source,p.src_P=e.P.source,p.src_ZPCc=[p.src_Z,p.src_P,p.src_Cc].join("|"),p.src_ZCc=[p.src_Z,p.src_Cc].join("|");const j="[><|]";return p.src_pseudo_letter=`(?:(?!${j}|${p.src_ZPCc})${p.src_Any})`,p.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",p.src_auth=`(?:(?:(?!${p.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,p.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",p.src_host_terminator=`(?=$|${j}|${p.src_ZPCc})(?!${k["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${p.src_ZPCc}))`,p.src_path=`(?:[/?#](?:(?!${p.src_ZCc}|${j}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${p.src_ZCc}|\\]).)*\\]|\\((?:(?!${p.src_ZCc}|[)]).)*\\)|\\{(?:(?!${p.src_ZCc}|[}]).)*\\}|\\"(?:(?!${p.src_ZCc}|["]).)+\\"|\\'(?:(?!${p.src_ZCc}|[']).)+\\'|\\'(?=${p.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${p.src_ZCc}|[.]|$)|`+(k["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+`,(?!${p.src_ZCc}|$)|;(?!${p.src_ZCc}|$)|\\!+(?!${p.src_ZCc}|[!]|$)|\\?(?!${p.src_ZCc}|[?]|$))+|\\/)?`,p.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}',p.src_xn="xn--[a-z0-9\\-]{1,59}",p.src_domain_root="(?:"+p.src_xn+`|${p.src_pseudo_letter}{1,63})`,p.src_domain="(?:"+p.src_xn+`|(?:${p.src_pseudo_letter})|(?:${p.src_pseudo_letter}(?:-|${p.src_pseudo_letter}){0,61}${p.src_pseudo_letter}))`,p.src_host=`(?:(?:(?:(?:${p.src_domain})\\.)*${p.src_domain}))`,p.tpl_host_fuzzy="(?:"+p.src_ip4+`|(?:(?:(?:${p.src_domain})\\.)+(?:%TLDS%)))`,p.tpl_host_no_ip_fuzzy=`(?:(?:(?:${p.src_domain})\\.)+(?:%TLDS%))`,p.src_host_strict=p.src_host+p.src_host_terminator,p.tpl_host_fuzzy_strict=p.tpl_host_fuzzy+p.src_host_terminator,p.src_host_port_strict=p.src_host+p.src_port+p.src_host_terminator,p.tpl_host_port_fuzzy_strict=p.tpl_host_fuzzy+p.src_port+p.src_host_terminator,p.tpl_host_port_no_ip_fuzzy_strict=p.tpl_host_no_ip_fuzzy+p.src_port+p.src_host_terminator,p.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${p.src_ZPCc}|>|$))`,p.tpl_email_fuzzy=`(^|${j}|"|\\(|${p.src_ZCc})(${p.src_email_name}@${p.tpl_host_fuzzy_strict})`,p.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${p.src_ZPCc}))((?![$+<=>^\`||])${p.tpl_host_port_fuzzy_strict}${p.src_path})`,p.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${p.src_ZPCc}))((?![$+<=>^\`||])${p.tpl_host_port_no_ip_fuzzy_strict}${p.src_path})`,p}function n(k){return Array.prototype.slice.call(arguments,1).forEach(function(j){j&&Object.keys(j).forEach(function(_){k[_]=j[_]})}),k}function s(k){return Object.prototype.toString.call(k)}function o(k){return s(k)==="[object String]"}function a(k){return s(k)==="[object Object]"}function i(k){return s(k)==="[object RegExp]"}function l(k){return s(k)==="[object Function]"}function u(k){return k.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const d={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function f(k){return Object.keys(k||{}).reduce(function(p,j){return p||d.hasOwnProperty(j)},!1)}const g={"http:":{validate:function(k,p,j){const _=k.slice(p);return j.re.http||(j.re.http=new RegExp(`^\\/\\/${j.re.src_auth}${j.re.src_host_port_strict}${j.re.src_path}`,"i")),j.re.http.test(_)?_.match(j.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(k,p,j){const _=k.slice(p);return j.re.no_http||(j.re.no_http=new RegExp("^"+j.re.src_auth+`(?:localhost|(?:(?:${j.re.src_domain})\\.)+${j.re.src_domain_root})`+j.re.src_port+j.re.src_host_terminator+j.re.src_path,"i")),j.re.no_http.test(_)?p>=3&&k[p-3]===":"||p>=3&&k[p-3]==="/"?0:_.match(j.re.no_http)[0].length:0}},"mailto:":{validate:function(k,p,j){const _=k.slice(p);return j.re.mailto||(j.re.mailto=new RegExp(`^${j.re.src_email_name}@${j.re.src_host_strict}`,"i")),j.re.mailto.test(_)?_.match(j.re.mailto)[0].length:0}}},m="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",h="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function x(k){return function(p,j){const _=p.slice(j);return k.test(_)?_.match(k)[0].length:0}}function C(){return function(k,p){p.normalize(k)}}function b(k){const p=k.re=t(k.__opts__),j=k.__tlds__.slice();k.onCompile(),k.__tlds_replaced__||j.push(m),j.push(p.src_xn),p.src_tlds=j.join("|");function _(A){return A.replace("%TLDS%",p.src_tlds)}p.email_fuzzy=RegExp(_(p.tpl_email_fuzzy),"i"),p.email_fuzzy_global=RegExp(_(p.tpl_email_fuzzy),"ig"),p.link_fuzzy=RegExp(_(p.tpl_link_fuzzy),"i"),p.link_fuzzy_global=RegExp(_(p.tpl_link_fuzzy),"ig"),p.link_no_ip_fuzzy=RegExp(_(p.tpl_link_no_ip_fuzzy),"i"),p.link_no_ip_fuzzy_global=RegExp(_(p.tpl_link_no_ip_fuzzy),"ig"),p.host_fuzzy_test=RegExp(_(p.tpl_host_fuzzy_test),"i");const N=[];k.__compiled__={};function R(A,F){throw new Error(`(LinkifyIt) Invalid schema "${A}": ${F}`)}Object.keys(k.__schemas__).forEach(function(A){const F=k.__schemas__[A];if(F===null)return;const D={validate:null,link:null};if(k.__compiled__[A]=D,a(F)){i(F.validate)?D.validate=x(F.validate):l(F.validate)?D.validate=F.validate:R(A,F),l(F.normalize)?D.normalize=F.normalize:F.normalize?R(A,F):D.normalize=C();return}if(o(F)){N.push(A);return}R(A,F)}),N.forEach(function(A){k.__compiled__[k.__schemas__[A]]&&(k.__compiled__[A].validate=k.__compiled__[k.__schemas__[A]].validate,k.__compiled__[A].normalize=k.__compiled__[k.__schemas__[A]].normalize)}),k.__compiled__[""]={validate:null,normalize:C()};const w=Object.keys(k.__compiled__).filter(function(A){return A.length>0&&k.__compiled__[A]}).map(u).join("|");k.re.schema_test=RegExp(`(^|(?!_)(?:[><|]|${p.src_ZPCc}))(${w})`,"i"),k.re.schema_search=RegExp(`(^|(?!_)(?:[><|]|${p.src_ZPCc}))(${w})`,"ig"),k.re.schema_at_start=RegExp(`^${k.re.schema_search.source}`,"i"),k.re.pretest=RegExp(`(${k.re.schema_test.source})|(${k.re.host_fuzzy_test.source})|@`,"i")}function y(k,p,j,_){const N=k.slice(j,_);this.schema=p.toLowerCase(),this.index=j,this.lastIndex=_,this.raw=N,this.text=N,this.url=N}function v(k,p){if(!(this instanceof v))return new v(k,p);p||f(k)&&(p=k,k={}),this.__opts__=n({},d,p),this.__schemas__=n({},g,k),this.__compiled__={},this.__tlds__=h,this.__tlds_replaced__=!1,this.re={},b(this)}return v.prototype.add=function(p,j){return this.__schemas__[p]=j,b(this),this},v.prototype.set=function(p){return this.__opts__=n(this.__opts__,p),this},v.prototype.test=function(p){if(!p.length)return!1;let j,_;if(this.re.schema_test.test(p)){for(_=this.re.schema_search,_.lastIndex=0;(j=_.exec(p))!==null;)if(this.testSchemaAt(p,j[2],_.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&p.search(this.re.host_fuzzy_test)>=0&&p.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&p.indexOf("@")>=0&&p.match(this.re.email_fuzzy)!==null)},v.prototype.pretest=function(p){return this.re.pretest.test(p)},v.prototype.testSchemaAt=function(p,j,_){return this.__compiled__[j.toLowerCase()]?this.__compiled__[j.toLowerCase()].validate(p,_,this):0},v.prototype.match=function(p){const j=[],_=[],N=[],R=[];let w,A,F;function D(T,M){return T?M?T.index!==M.index?T.index<M.index?T:M:T.lastIndex>=M.lastIndex?T:M:T:M}if(!p.length)return null;if(this.re.schema_test.test(p))for(F=this.re.schema_search,F.lastIndex=0;(w=F.exec(p))!==null;)A=this.testSchemaAt(p,w[2],F.lastIndex),A&&_.push({schema:w[2],index:w.index+w[1].length,lastIndex:w.index+w[0].length+A});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for(F=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,F.lastIndex=0;(w=F.exec(p))!==null;)N.push({schema:"",index:w.index+w[1].length,lastIndex:w.index+w[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(F=this.re.email_fuzzy_global,F.lastIndex=0;(w=F.exec(p))!==null;)R.push({schema:"mailto:",index:w.index+w[1].length,lastIndex:w.index+w[0].length});const S=[0,0,0];let E=0;for(;;){const T=[_[S[0]],R[S[1]],N[S[2]]],M=D(D(T[0],T[1]),T[2]);if(!M)break;if(M===T[0]?S[0]++:M===T[1]?S[1]++:S[2]++,M.index<E)continue;const I=new y(p,M.schema,M.index,M.lastIndex);this.__compiled__[I.schema].normalize(I,this),j.push(I),E=M.lastIndex}return j.length?j:null},v.prototype.matchAtStart=function(p){if(!p.length)return null;const j=this.re.schema_at_start.exec(p);if(!j)return null;const _=this.testSchemaAt(p,j[2],j[0].length);if(!_)return null;const N=new y(p,j[2],j.index+j[1].length,j.index+j[0].length+_);return this.__compiled__[N.schema].normalize(N,this),N},v.prototype.tlds=function(p,j){return p=Array.isArray(p)?p:[p],j?(this.__tlds__=this.__tlds__.concat(p).sort().filter(function(_,N,R){return _!==R[N-1]}).reverse(),b(this),this):(this.__tlds__=p.slice(),this.__tlds_replaced__=!0,b(this),this)},v.prototype.normalize=function(p){p.schema||(p.url=`http://${p.url}`),p.schema==="mailto:"&&!/^mailto:/i.test(p.url)&&(p.url=`mailto:${p.url}`)},v.prototype.onCompile=function(){},An=v,An}var gr;function xh(){if(gr)return Ae;gr=1;var e=Ae&&Ae.__createBinding||(Object.create?(function(b,y,v,k){k===void 0&&(k=v);var p=Object.getOwnPropertyDescriptor(y,v);(!p||("get"in p?!y.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return y[v]}}),Object.defineProperty(b,k,p)}):(function(b,y,v,k){k===void 0&&(k=v),b[k]=y[v]})),t=Ae&&Ae.__setModuleDefault||(Object.create?(function(b,y){Object.defineProperty(b,"default",{enumerable:!0,value:y})}):function(b,y){b.default=y}),n=Ae&&Ae.__importStar||(function(){var b=function(y){return b=Object.getOwnPropertyNames||function(v){var k=[];for(var p in v)Object.prototype.hasOwnProperty.call(v,p)&&(k[k.length]=p);return k},b(y)};return function(y){if(y&&y.__esModule)return y;var v={};if(y!=null)for(var k=b(y),p=0;p<k.length;p++)k[p]!=="default"&&e(v,y,k[p]);return t(v,y),v}})(),s=Ae&&Ae.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.default=x;const o=s(mh()),a=ph(),i=s(gh()),l=n(Nl());function u(b,y=!1){return b=(0,a.escapeCarriageReturn)(C(b)),o.default.ansiToJson(b,{json:!0,remove_empty:!0,use_classes:y})}function d(b){let y="";return b.bg&&(y+=`${b.bg}-bg `),b.fg&&(y+=`${b.fg}-fg `),b.decoration&&(y+=`ansi-${b.decoration} `),y===""?null:(y=y.substring(0,y.length-1),y)}function f(b){const y={};switch(b.bg&&(y.backgroundColor=`rgb(${b.bg})`),b.fg&&(y.color=`rgb(${b.fg})`),b.decoration){case"bold":y.fontWeight="bold";break;case"dim":y.opacity="0.5";break;case"italic":y.fontStyle="italic";break;case"hidden":y.visibility="hidden";break;case"strikethrough":y.textDecoration="line-through";break;case"underline":y.textDecoration="underline";break;case"blink":y.textDecoration="blink";break}return y}function g(b,y,v,k){const p=y?null:f(v),j=y?d(v):null;return b?b==="fuzzy"?h(v,k,p,j):m(v,k,p,j):l.createElement("span",{style:p,key:k,className:j},v.content)}function m(b,y,v,k){const p=[],j=/(\s|^)(https?:\/\/(?:www\.|(?!www))[^\s.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/g;let _=0,N;for(;(N=j.exec(b.content))!==null;){const[,R,w]=N,A=N.index+R.length;A>_&&p.push(b.content.substring(_,A));const F=w.startsWith("www.")?`http://${w}`:w;p.push(l.createElement("a",{key:_,href:F,target:"_blank"},`${w}`)),_=j.lastIndex}return _<b.content.length&&p.push(b.content.substring(_)),l.createElement("span",{style:v,key:y,className:k},p)}function h(b,y,v,k){var p;const j=(0,i.default)({fuzzyEmail:!1}).tlds(["io"],!0);if(!j.pretest(b.content))return l.createElement("span",{style:v,key:y,className:k},b.content);const _=j.match(b.content);if(!_)return l.createElement("span",{style:v,key:y,className:k},b.content);const N=[b.content.substring(0,(p=_[0])===null||p===void 0?void 0:p.index)];return _.forEach((R,w)=>{var A;N.push(l.createElement("a",{href:R.url,target:"_blank",key:w},b.content.substring(R.index,R.lastIndex))),_[w+1]&&N.push(b.content.substring(_[w].lastIndex,(A=_[w+1])===null||A===void 0?void 0:A.index))}),_[_.length-1].lastIndex!==b.content.length&&N.push(b.content.substring(_[_.length-1].lastIndex,b.content.length)),l.createElement("span",{style:v,key:y,className:k},N)}function x(b){const{className:y,useClasses:v,children:k,linkify:p}=b;return l.createElement("code",{className:y},u(k??"",v??!1).map(g.bind(null,p??!1,v??!1)))}function C(b){let y=b;do b=y,y=b.replace(/[^\n]\x08/gm,"");while(y.length<b.length);return b}return Ae}var bh=xh();const yh=El(bh),kh=c.lazy(()=>Dl(()=>import("./index-A_qzw4D8.js"),__vite__mapDeps([0,1,2,3]))),vh={...ch,container:"bg-transparent text-xs font-mono leading-relaxed",label:"text-muted-foreground font-medium mr-1",clickableLabel:"text-muted-foreground font-medium mr-1 cursor-pointer",nullValue:"text-muted-foreground italic",undefinedValue:"text-muted-foreground italic",stringValue:"text-foreground",booleanValue:"text-amber-400",numberValue:"text-blue-400",otherValue:"text-muted-foreground",punctuation:"text-muted-foreground",collapseIcon:'text-muted-foreground mr-1 cursor-pointer text-[1.2em] select-none after:content-["▾"]',expandIcon:'text-muted-foreground mr-1 cursor-pointer text-[1.2em] select-none after:content-["▸"]',collapsedContent:'text-muted-foreground mr-1 cursor-pointer after:text-[0.8em] after:content-["…"]'},xr=5120;function Ch(e){try{const t=JSON.parse(e);return typeof t=="object"&&t!==null&&("old_string"in t||"new_string"in t)?t:null}catch{return null}}function Fn({children:e,rawContent:t,supportsRawToggle:n,isRaw:s,onToggleRaw:o}){const[a,i]=c.useState(!1),l=t.length>xr,u=l&&!a?t.slice(0,xr):t;return r.jsxs("div",{className:"space-y-1",children:[n&&r.jsx("div",{className:"flex justify-end",children:r.jsx("button",{onClick:o,className:"text-muted-foreground hover:text-foreground text-xs underline",children:s?"Formatted":"Raw"})}),s?r.jsxs(r.Fragment,{children:[r.jsx("pre",{className:"max-h-64 overflow-y-auto text-xs whitespace-pre-wrap",children:u}),l&&!a&&r.jsxs("button",{onClick:()=>i(!0),className:"text-muted-foreground hover:text-foreground text-xs underline",children:["Show full output (",(t.length/1024).toFixed(1),"KB)"]})]}):e]})}function Sh({oldValue:e,newValue:t,rawContent:n}){return r.jsx(c.Suspense,{fallback:r.jsx("pre",{className:"max-h-64 overflow-y-auto text-xs whitespace-pre-wrap",children:n}),children:r.jsx(kh,{oldValue:e,newValue:t,splitView:!1,useDarkTheme:!0,hideLineNumbers:!0,showDiffOnly:!0,extraLinesSurroundingDiff:2,styles:{variables:{dark:{diffViewerBackground:"transparent",addedBackground:"rgba(34, 197, 94, 0.1)",addedColor:"rgb(134, 239, 172)",addedGutterBackground:"rgba(34, 197, 94, 0.08)",wordAddedBackground:"rgba(34, 197, 94, 0.2)",removedBackground:"rgba(239, 68, 68, 0.1)",removedColor:"rgb(252, 165, 165)",removedGutterBackground:"rgba(239, 68, 68, 0.08)",wordRemovedBackground:"rgba(239, 68, 68, 0.2)",gutterBackground:"hsl(0 0% 9%)",gutterBackgroundDark:"hsl(0 0% 7%)",gutterColor:"hsl(0 0% 40%)"}}}})})}function Fa({content:e,toolName:t,input:n}){const[s,o]=c.useState(!1);if(t==="Edit"&&n){const i=Ch(n);if(i)return r.jsx(Sh,{oldValue:i.old_string??"",newValue:i.new_string??"",rawContent:e})}const a=nf(e);if(a==="json"){let i;try{i=JSON.parse(e)}catch{i={}}return r.jsx(Fn,{rawContent:e,supportsRawToggle:!0,isRaw:s,onToggleRaw:()=>o(l=>!l),children:r.jsx(fh,{data:i,style:vh,shouldExpandNode:dh})})}return a==="ansi"?r.jsx(Fn,{rawContent:e,supportsRawToggle:!0,isRaw:s,onToggleRaw:()=>o(i=>!i),children:r.jsx("pre",{className:"max-h-64 overflow-y-auto text-xs whitespace-pre-wrap",children:r.jsx(yh,{children:e})})}):r.jsx(Fn,{rawContent:e,supportsRawToggle:!1,isRaw:!0,onToggleRaw:()=>{},children:null})}function jh(e){try{const t=JSON.parse(e);if(!t||typeof t!="object")return e;const n=t;if(n.error&&typeof n.error=="object"){const s=n.error;if(typeof s.message=="string")return s.message}return typeof n.message=="string"?n.message:e}catch{return e}}function _h(e){const t=jh(e),n=t.match(/The ['"`]([^'"`]+)['"`] model requires a newer version of Codex\b/i);if(n)return{message:`The Codex version DorkOS is using is too old for ${n[1]}. Update DorkOS (or your custom Codex installation), then try again. You can also choose another model.`,category:"runtime_update_required",details:e};const s=t.match(/The ['"`]([^'"`]+)['"`] model is not supported when using Codex with a ChatGPT account\b/i);return s?{message:`${s[1]} isn’t available with a ChatGPT account. Choose another model from the model menu.`,category:"model_unavailable",details:e}:null}const Ra="runtimes";function wh({label:e}){const{open:t}=yo();return r.jsx("button",{type:"button",onClick:()=>t(Ra),className:"text-muted-foreground hover:text-foreground mt-2 block text-xs underline decoration-dotted underline-offset-2 transition-colors",children:e})}function Nh({runtime:e,sessionId:t,onRetry:n,onSigninComplete:s}){const[o,a]=c.useState(!1),i=vd(e,{sessionId:t,onCompleted:()=>a((s==null?void 0:s())??!1)}),l=Cd(e);return i.isSuccess?r.jsxs("div",{className:"mt-3","data-testid":"auth-error-signin-success",children:[r.jsxs("p",{className:"text-status-success-fg flex items-center gap-2 text-sm",role:"status",children:[r.jsx(tn,{"aria-hidden":"true",className:"size-3.5 shrink-0"}),o?"Signed in. Sending your message again…":"Signed in."]}),!o&&n&&r.jsxs(fe,{size:"sm",onClick:n,className:"mt-2 gap-1.5",children:[r.jsx(St,{className:"size-3"}),"Retry"]})]}):r.jsxs("div",{className:"mt-3","data-testid":"auth-error-signin",children:[r.jsx("p",{className:"text-muted-foreground mb-2 flex items-center gap-2 text-sm",role:"status",children:i.isPending&&r.jsxs(r.Fragment,{children:[r.jsx(He,{size:"xs",className:"shrink-0"}),l.signInPending]})}),i.isError&&r.jsx("p",{className:"text-destructive mb-2 text-sm",role:"alert",children:i.errorMessage}),r.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[r.jsxs(fe,{size:"sm",onClick:i.login,disabled:i.isPending,className:"gap-1.5","data-testid":"auth-error-signin-button",children:[r.jsx(ko,{className:"size-3"}),i.isError?"Try again":l.signInLabel]}),n&&r.jsxs(fe,{variant:"outline",size:"sm",onClick:n,className:"gap-1.5",children:[r.jsx(St,{className:"size-3"}),"Retry"]})]}),r.jsx(wh,{label:"Use an API key instead"})]})}function br({onRetry:e}){return r.jsx("div",{className:"mt-3","data-testid":"auth-error-remote-guidance",children:r.jsx(yd,{...e?{onRetry:e}:{}})})}function Ma({onRetry:e}){const{open:t}=yo();return r.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-2",children:[r.jsxs(fe,{size:"sm",onClick:()=>t(Ra),className:"gap-1.5",children:[r.jsx(ko,{className:"size-3"}),"Fix sign-in"]}),e&&r.jsxs(fe,{variant:"outline",size:"sm",onClick:e,className:"gap-1.5",children:[r.jsx(St,{className:"size-3"}),"Retry"]})]})}function Eh({runtime:e,sessionId:t,onRetry:n,renderOffer:s,lead:o,children:a}){const i=!Go(),l=vo(),u=le(m=>m.setRetryAccount),d=At(e).label,f=s({runtime:e,origin:`auth-error:${t}`,note:`This makes new ${d} work on this computer run on your DorkOS credits.`,chosen:n?`New ${d} work on this computer now runs on your DorkOS credits. Sending your message again…`:`New ${d} work on this computer now runs on your DorkOS credits.`,...n?{confirmAfterLink:{prompt:"Linked. Send again on DorkOS credits?",action:"Send again"}}:{},onChoose:async()=>{await l.mutateAsync({runtime:e,useCredits:!0}),n&&(u({id:ut,sessionId:t}),n())}}),g=m=>r.jsxs("section",{"aria-label":"Other ways",children:[r.jsx("p",{className:"text-muted-foreground text-2xs font-medium tracking-wide uppercase",children:"Other ways"}),m]});return o?r.jsxs("div",{className:"mt-3 space-y-3","data-testid":"auth-error-credits-first",children:[f,g(a),r.jsx(kd,{ollama:Tl(e)==="provider-picker",remote:i})]}):r.jsxs("div",{"data-testid":"auth-error-credits-other-way",children:[a,r.jsx("div",{className:"mt-3",children:g(f)})]})}function Dh({sessionId:e,onRetry:t,onSigninComplete:n}){var g;const{sessions:s,isLoading:o}=rs(),a=Go(),i=(g=s.find(m=>m.id===e))==null?void 0:g.runtime,l=bd(i),u=mo(),d=i!==void 0&&u!==null&&(l==="lead"||l==="other-way");if(!a&&!d)return r.jsx(br,{onRetry:t});if(o)return null;const f=a?!i||!Al(i)?r.jsx(Ma,{onRetry:t}):r.jsx(Nh,{runtime:i,sessionId:e,onRetry:t,onSigninComplete:n}):r.jsx(br,{onRetry:t});return d&&i&&u?r.jsx(Eh,{runtime:i,sessionId:e,onRetry:t,renderOffer:u,lead:l==="lead",children:f}):f}function Th({sessionId:e,onRetry:t,onSigninComplete:n}){return e?r.jsx(Dh,{sessionId:e,onRetry:t,onSigninComplete:n}):r.jsx(Ma,{onRetry:t})}const Ah="credits_unavailable",Fh="folder-sign-in";function Rh({onRetry:e,sessionId:t,runtimeLabel:n,reason:s}){const o=le(x=>x.setRetryAccount),a=Fl(),i=vo(),l=Co(),u=cn(t),d=an(u??null);if(!e)return null;const f=Mh(d),g=n?`your ${n}`:"your own",m=()=>{if(d!==void 0){if(f==="pick-for-send"){t&&o({id:vt,sessionId:t}),e();return}i.mutate({runtime:d.type,useCredits:!1},{onSuccess:()=>f==="new-conversation"?l(void 0,{runtime:d.type}):e()})}},h=()=>{t&&a.mutate(t,{onSuccess:({launch:x})=>{x!=null&&x.ok&&o({id:x.accountId,sessionId:t}),e()}})};return r.jsxs("div",{className:"mt-2 flex flex-col gap-2","data-testid":"credits-error-actions",children:[r.jsxs("div",{className:"flex flex-wrap gap-2",children:[r.jsxs(fe,{size:"sm",variant:"outline",onClick:e,className:"gap-1.5",children:[r.jsx(St,{className:"size-3"}),"Retry"]}),t&&r.jsx(fe,{size:"sm",variant:"outline",onClick:m,disabled:d===void 0||i.isPending,children:f==="new-conversation"?`Start a new chat on ${g} sign-in`:`Use ${g} sign-in`}),t&&s===Fh&&r.jsx(fe,{size:"sm",variant:"outline",onClick:h,disabled:a.isPending,children:"Don’t use credits in this project"})]}),t&&f==="whole-runtime"&&r.jsxs("p",{className:"text-muted-foreground text-xs","data-testid":"credits-own-sign-in-reach",children:["This moves all ",n??"its"," chats to ",g," sign-in, not just this one."]}),a.error&&r.jsx("p",{className:"text-muted-foreground text-xs",role:"status",children:a.error.message}),i.isError&&r.jsx("p",{className:"text-muted-foreground text-xs",role:"status",children:"Couldn’t switch to your own sign-in. Try again in a moment."})]})}function Mh(e){var t;return e===void 0||e.supportsAccounts?"pick-for-send":((t=e.credits)==null?void 0:t.scope)==="conversation"?"new-conversation":"whole-runtime"}function Oh({category:e,onChooseModel:t}){return t?r.jsxs(fe,{size:"sm",onClick:t,className:"mt-3 gap-1.5",children:[r.jsx(So,{className:"size-3"}),e==="runtime_update_required"?"Choose another model":"Choose model"]}):null}const Ih="your agent",$h="agent",yr={max_turns:{heading:"Turn limit reached",subtext:"The agent ran for its maximum number of turns.",retryable:!1},execution_error:{heading:"Agent stopped unexpectedly",subtext:"Something went wrong before it finished.",retryable:!0},budget_exceeded:{heading:"Cost limit reached",subtext:"This chat hit its spending limit.",retryable:!1},output_format_error:{heading:"Output format error",subtext:"The agent couldn’t produce the required output format.",retryable:!1},auth_error:{heading:"Sign in again",subtext:"Your login stopped working. Sign in again to continue.",retryable:!0},model_unavailable:{heading:"Model unavailable",subtext:"Choose another model from the model menu.",retryable:!1},runtime_update_required:{heading:"Codex update required",subtext:"Update DorkOS or your Codex install, then try again. Or choose another model.",retryable:!1}},Ph=new Set(["max_turns","budget_exceeded","output_format_error","auth_error"]);function Lh(e){return`Sign in to ${e??Ih} again`}function Bh(e){return`Your ${e??$h} login stopped working. Sign in again to continue.`}const zh="rate_limit";function dn(e){const{code:t,at:n,sessionId:s,reason:o}=e;return t===jo&&o?r.jsx(ra,{agentId:o}):t===zh&&s?r.jsx(_m,{sessionId:s,at:n??"",fallback:r.jsx(kr,{...e})}):r.jsx(kr,{...e})}function kr({message:e,category:t,details:n,onRetry:s,heading:o,subtext:a,runtimeLabel:i,sessionId:l,onSigninComplete:u,onChooseModel:d,code:f,reason:g}){const[m,h]=c.useState(!1),x=f===Ah,C=c.useMemo(()=>_h(e),[e]),b=(C==null?void 0:C.category)??t,y=(C==null?void 0:C.message)??e,v=C?n!=null&&n.includes(C.details??"")?n:[n,C.details].filter(Boolean).join(`
|
|
41
41
|
`):n,k=b==="auth_error",p=b?yr[b]??yr.execution_error:null,j=k?Lh(i):b==="runtime_update_required"&&i?`${i} update required`:p==null?void 0:p.heading,_=k?Bh(i):p==null?void 0:p.subtext,N=x?"Couldn’t reach DorkOS credits":C?j??"Error":o??j??"Error",R=y.trim(),w=b!==void 0&&Ph.has(b),A=x?R:(C&&(a==null?void 0:a.trim())===e.trim()?void 0:a)??(w?_:R||_)??R,F=A.trim(),D=c.useMemo(()=>Rl(R),[R]),S=!R||R===F||R===N,E=!S&&(!w||D)?R:null,T=S||E!==null||v!=null&&v.includes(R)?v:[v,R].filter(Boolean).join(`
|
|
42
42
|
`),M=(p==null?void 0:p.retryable)??!!s;return r.jsx("div",{"data-testid":"error-message-block",className:U("my-2 rounded-lg border px-4 py-3","border-destructive/30 bg-destructive/5 text-foreground"),children:r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(ps,{className:"text-destructive mt-0.5 size-4 shrink-0"}),r.jsxs("div",{className:"min-w-0 flex-1",children:[r.jsx("p",{className:"text-sm font-medium",children:N}),r.jsx("p",{className:"text-muted-foreground mt-0.5 text-sm wrap-anywhere whitespace-pre-wrap",children:r.jsx(xn,{text:A})}),E&&r.jsx("p",{className:"text-muted-foreground mt-1 text-sm wrap-anywhere whitespace-pre-wrap",children:r.jsx(xn,{text:E})}),T&&r.jsxs("button",{type:"button",onClick:()=>h(!m),className:"text-muted-foreground hover:text-foreground mt-2 flex items-center gap-1 text-xs","aria-expanded":m,children:[r.jsx(H.div,{animate:{rotate:m?0:-90},transition:{type:"spring",stiffness:400,damping:30},children:r.jsx(Tt,{className:"size-3"})}),"Details"]}),r.jsx(me,{initial:!1,children:m&&T&&r.jsx(H.div,{variants:Ke,initial:"initial",animate:"animate",exit:"exit",transition:Ge,className:"overflow-hidden",children:r.jsx("pre",{className:"bg-muted/50 mt-1 max-h-40 overflow-auto rounded p-2 text-xs whitespace-pre-wrap",children:r.jsx(xn,{text:T})})})}),x&&r.jsx(Rh,{onRetry:s,sessionId:l,runtimeLabel:i,reason:g}),k&&r.jsx(Th,{sessionId:l,onRetry:s,onSigninComplete:u}),(b==="model_unavailable"||b==="runtime_update_required")&&r.jsx(Oh,{category:b,onChooseModel:d})]}),!k&&!x&&M&&s&&r.jsxs(fe,{variant:"outline",size:"sm",onClick:s,className:"shrink-0 gap-1.5",children:[r.jsx(St,{className:"size-3"}),"Retry"]})]})})}const qh=8;function Uh({toolName:e,reasonType:t,reason:n,message:s,agentId:o}){const a=n||s,i=t==="classifier",l=t==="asyncAgent",u=o!==void 0?`Helper ${o.slice(0,qh)}`:l?"A background helper":null,f=u!==null?`${u} was blocked from using ${e}${i?" by auto mode":""}: ${a}`:i?`Blocked by auto mode: ${a}`:`Blocked: ${a}`;return r.jsxs("div",{"data-testid":"permission-denied-chip","data-reason-type":t,"data-agent-id":o,className:U("my-2 flex items-start gap-2 rounded-md border px-3 py-2","text-foreground border-amber-500/30 bg-amber-500/5"),children:[r.jsx(Sd,{"aria-hidden":"true",className:"mt-0.5 size-4 shrink-0 text-amber-600 dark:text-amber-500"}),r.jsxs("div",{className:"min-w-0 flex-1",children:[r.jsx("p",{className:"text-sm",children:f}),l?r.jsxs(r.Fragment,{children:[r.jsx("p",{className:"text-muted-foreground mt-0.5 text-xs",children:"Background helpers can’t ask for approval, so this was blocked."}),r.jsx("p",{className:"text-muted-foreground mt-0.5 text-xs",children:"Do it yourself, or ask the agent to run it in the foreground."})]}):null,r.jsx("p",{className:"text-muted-foreground mt-0.5 font-mono text-xs",children:e})]})]})}const Wh=50;function Hh(e){return e.type==="tool_call"&&e.interactiveType==="approval"&&e.approvalOutcome!==void 0}function Vh(e,t){return e.approvalOutcome!==t.approvalOutcome||(e.approvalReasonGiven??!1)!==(t.approvalReasonGiven??!1)||e.approvalResolvedAt===void 0||t.approvalResolvedAt===void 0?!1:Math.abs(e.approvalResolvedAt-t.approvalResolvedAt)<=Wh}function Gh(e){const t=new Map;let n=null;for(let s=0;s<e.length;s++){const o=e[s];if(!Hh(o)){n=null;continue}if(n&&Vh(n.part,o)){n.group.indices.push(s),t.set(s,n.group);continue}const a={leadIndex:s,indices:[s],outcome:o.approvalOutcome,reasonGiven:o.approvalReasonGiven??!1};t.set(s,a),n={group:a,part:o}}return t}function Ss(e){return e.type==="thinking"||e.type==="memory_recall"||e.type==="background_task"?!0:e.type==="tool_call"&&!e.interactiveType&&!e.ui&&!bs(e.toolName)&&!Xt(e.toolName)}function Kh(e){let t=0;for(const n of e)(n.type==="background_task"||n.type==="tool_call"&&Ss(n))&&t++;return t}function Oa(e){return e.some(Ss)}function Qh(e){return e.questionOutcome!==void 0?e.questionOutcome==="answered":e.status!=="pending"}function Xh(e){return e.status==="pending"?void 0:e.questionOutcome}function Yh({message:e}){return r.jsx(ot,{"data-testid":"unreadable-entry-note",icon:r.jsx(Ml,{"aria-hidden":"true",className:"text-muted-foreground size-3 shrink-0"}),label:r.jsx("span",{className:"text-muted-foreground",children:e})})}function Jh({title:e}){return r.jsxs("div",{"data-testid":"capability-approval-timed-out",className:U("my-2 flex items-start gap-2 rounded-md border px-3 py-2","text-foreground border-border bg-muted/40"),children:[r.jsx(bt,{"aria-hidden":"true",className:"text-muted-foreground mt-0.5 size-4 shrink-0"}),r.jsxs("div",{className:"min-w-0 flex-1",children:[r.jsx("p",{className:"text-sm",children:"The agent stopped waiting for your answer."}),r.jsxs("p",{className:"text-muted-foreground mt-0.5 text-xs",children:["“",e,"” is still in Approvals. Answer it, then ask the agent to retry."]})]})]})}function Qn({testId:e,icon:t,children:n}){return r.jsxs("div",{"data-testid":e,className:U("my-2 flex items-start gap-2 rounded-md border px-3 py-2","text-foreground border-border bg-muted/40"),children:[t,r.jsx("div",{className:"min-w-0 flex-1",children:n})]})}function Zh({part:e}){return e.outcome==="failed"?r.jsx(Qn,{testId:"mcp-signin-failed",icon:r.jsx(ps,{"aria-hidden":"true",className:"text-status-warning-dot mt-0.5 size-4 shrink-0"}),children:r.jsxs("p",{className:"text-sm",children:["Sign-in to “",e.serverName,"” didn’t finish. Ask your agent to retry."]})}):r.jsx(Qn,{testId:"mcp-signin-receipt",icon:r.jsx(_o,{"aria-hidden":"true",className:"text-status-success mt-0.5 size-4 shrink-0"}),children:r.jsxs("p",{className:"text-sm",children:["Connected to ",e.serverName,e.toolCount===void 0?"":` · ${e.toolCount} tool${e.toolCount===1?"":"s"}`,"."]})})}function eg({part:e}){const t=jd(e.agentId,e.serverName),{adopt:n}=t,s=e.outcome!==void 0;return c.useEffect(()=>{s||n({flowId:e.flowId,authorizeUrl:e.authorizeUrl,disclosure:e.disclosure})},[s,n,e.flowId,e.authorizeUrl,e.disclosure]),e.outcome!==void 0?r.jsx(Zh,{part:e}):r.jsxs(Qn,{testId:"mcp-signin-card",icon:r.jsx(Ol,{"aria-hidden":"true",className:"text-muted-foreground mt-0.5 size-4 shrink-0"}),children:[r.jsxs("p",{className:"text-sm",children:["Sign in to ",e.serverName]}),r.jsx(_d,{flow:t,serverName:e.serverName,failedActions:r.jsx(fe,{variant:"secondary",size:"sm",onClick:()=>t.start(),className:"focus-visible:ring-2",children:"Try again"})})]})}function tg({fromName:e,toName:t}){return r.jsx(ot,{"data-testid":"model-substituted-row",icon:r.jsx(So,{"aria-hidden":"true",className:"text-muted-foreground size-3 shrink-0"}),label:r.jsxs("span",{className:"text-muted-foreground",children:["DorkOS credits don’t cover ",e,", so this ran on ",t,". Switch in the model menu."]})})}const ng={running:r.jsx(He,{size:"xs",className:"text-muted-foreground"}),success:r.jsx(tn,{className:"text-muted-foreground size-(--size-icon-xs)"}),error:r.jsx(ct,{className:"text-destructive size-(--size-icon-xs)"}),cancelled:r.jsx(ct,{className:"text-muted-foreground size-(--size-icon-xs)"})};function sg({hook:e}){const t=!!(e.stdout||e.stderr),[n,s]=c.useState(e.status==="error"),o=e.stderr||e.stdout;return r.jsxs("div",{children:[r.jsxs("button",{onClick:()=>t&&s(a=>!a),className:U("flex w-full items-center gap-1.5 py-0.5",!t&&"cursor-default"),"aria-expanded":t?n:void 0,disabled:!t,children:[ng[e.status],r.jsx("span",{className:U("text-3xs font-mono",e.status==="error"?"text-destructive":"text-muted-foreground"),children:e.hookName}),e.status==="error"&&r.jsx("span",{className:"text-3xs text-destructive",children:"Error"}),e.exitCode!==void 0&&r.jsxs("span",{className:"text-3xs text-muted-foreground ml-auto",children:["exit ",e.exitCode]})]}),r.jsx(me,{initial:!1,children:n&&t&&o&&r.jsx(H.div,{variants:Ke,initial:"initial",animate:"animate",exit:"exit",transition:Ge,className:"overflow-hidden",children:r.jsx("pre",{className:"text-muted-foreground max-h-32 overflow-y-auto py-1 text-xs whitespace-pre-wrap",children:o})})})]})}function rg({toolCall:e,defaultExpanded:t=!1}){const[n,s]=c.useState(t),o=!!e.progressOutput;c.useEffect(()=>{o&&!n&&s(!0)},[o]);const a=e.hooks&&e.hooks.length>0?r.jsx("div",{className:"border-border/50 space-y-0.5 border-t px-3 py-1",children:e.hooks.map(u=>r.jsx(sg,{hook:u},u.hookId))}):void 0,i=e.startedAt&&e.completedAt?e.completedAt-e.startedAt:void 0,l=Il(e.toolName);return r.jsxs(Rt,{expanded:n,onToggle:()=>s(!n),dimmed:e.status==="complete",extraContent:a,"data-testid":"tool-call-card","data-tool-name":e.toolName,"data-status":e.status,header:r.jsxs(r.Fragment,{children:[ba(e.status),l&&r.jsx("span",{className:"bg-muted text-muted-foreground text-3xs rounded px-1 py-0.5 font-medium",children:l}),r.jsx("span",{className:"text-3xs flex-1 text-left font-mono",children:_t(e.toolName,e.input)}),i!==void 0&&r.jsx("span",{className:"text-muted-foreground text-3xs tabular-nums",children:Ed(i)})]}),children:[e.status==="running"&&!e.input?r.jsxs("div",{className:"text-muted-foreground flex items-center gap-1.5 py-1 text-xs",children:[r.jsx(He,{size:"xs"}),r.jsx("span",{children:"Preparing…"})]}):e.input!==void 0&&e.input!==""?r.jsx($l,{toolName:e.toolName,input:e.input,isStreaming:e.status==="running"}):null,e.progressOutput&&!e.result&&r.jsx(co,{content:e.progressOutput,className:"mt-2 border-t pt-2"}),e.result&&r.jsx("div",{className:"mt-2 border-t pt-2",children:r.jsx(Fa,{content:e.result,toolName:e.toolName,input:e.input})})]})}function og(e){if(e.startsWith("mcp__"))return e.split("__")[1]||void 0}function Ia(e,t,n){const s=c.useRef(e),[o,a]=c.useState(!(t&&s.current==="complete"));return c.useEffect(()=>{if(t&&e==="complete"&&s.current!=="complete"&&!n){const i=setTimeout(()=>a(!1),on.TOOL_CALL_AUTO_HIDE_MS);return()=>clearTimeout(i)}},[e,t,n]),!t||n?!0:o}function ag({part:e,autoHide:t,expandToolCalls:n}){var a;const s=((a=e.hooks)==null?void 0:a.some(i=>i.status==="error"))??!1,o=Ia(e.status,t,s);return r.jsx(me,{children:o&&r.jsx(H.div,{exit:{height:0,opacity:0},transition:{duration:.3,ease:[.4,0,.2,1]},className:"overflow-hidden",children:r.jsx(rg,{toolCall:{toolCallId:e.toolCallId,toolName:e.toolName,input:e.input||"",result:e.result,progressOutput:e.progressOutput,status:e.status,hooks:e.hooks,startedAt:e.startedAt,completedAt:e.completedAt},defaultExpanded:n})},e.toolCallId)})}function Rn({part:e,sessionId:t,autoHide:n,expandToolCalls:s}){const o=e.ui?og(e.toolName):void 0,a=r.jsx(ag,{part:e,autoHide:n,expandToolCalls:s});return!e.ui||e.status!=="complete"||!o?a:r.jsxs("div",{className:"flex flex-col gap-2",children:[a,r.jsx(Ef,{sessionId:t,serverName:o,uri:e.ui.resourceUri})]})}function ig({part:e,autoHide:t,index:n}){const s=e.isStreaming?"running":"complete",o=Ia(s,t,!1);return r.jsx(me,{children:o&&r.jsx(H.div,{exit:{height:0,opacity:0},transition:{duration:.3,ease:[.4,0,.2,1]},className:"overflow-hidden",children:r.jsx(Bp,{text:e.text,isStreaming:e.isStreaming??!1,elapsedMs:e.elapsedMs})},`thinking-${n}`)})}const lg=4,vr=2;function cg({children:e}){const[t,n]=c.useState(!1);if(e.length<=lg||t)return r.jsx(r.Fragment,{children:e});const s=e.length-vr;return r.jsxs(r.Fragment,{children:[e.slice(0,vr),r.jsx(Rt,{expanded:!1,onToggle:()=>n(!0),ariaLabel:`Show ${s} more steps`,className:"border-l-muted-foreground/15",header:r.jsxs("span",{className:"text-3xs text-muted-foreground font-mono",children:["and ",s," more steps…"]}),children:r.jsx(r.Fragment,{})})]})}const ug=/\|\||&&|;|\|/,dg=/<<|>/,Cr=60;function fg(e){if(!e)return null;try{const t=JSON.parse(e);return typeof t=="object"&&t!==null&&!Array.isArray(t)?t:null}catch{return null}}function Be(e,t){const n=e[t];return typeof n=="string"&&n.length>0?n:void 0}function mg(e,t){const n=e.split(`
|
|
43
43
|
`),s=t.split(`
|