dorkos 0.131.0 → 0.133.0
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 +499 -314
- package/dist/browser/fresh-verifier.mjs +13 -13
- package/dist/browser/native/darwin-supervisor-worker.mjs +3 -3
- package/dist/browser/native/package-manifest.json +1 -1
- package/dist/browser/source-manifest.json +1 -1
- package/dist/client/assets/{AboutPage-BZ2LLJ0k.js → AboutPage-D-EHHVPa.js} +1 -1
- package/dist/client/assets/{ActivityErrorState-BnqAwUiy.js → ActivityErrorState-BTHnE1vP.js} +1 -1
- package/dist/client/assets/{ActivityPage-BlZKrSVo.js → ActivityPage-BfSLPIdR.js} +1 -1
- package/dist/client/assets/{ActivityRow-Ch8HxQ2m.js → ActivityRow-PwUBjQw8.js} +1 -1
- package/dist/client/assets/{AdapterIcon-CfocFMw-.js → AdapterIcon-DgkNN6bi.js} +1 -1
- package/dist/client/assets/{AdapterSetupWizard-Dtjx1Oad.js → AdapterSetupWizard-DX0dzp7q.js} +2 -2
- package/dist/client/assets/{AgentOptionRow-BGRvUeF7.js → AgentOptionRow-ApuDEKqq.js} +1 -1
- package/dist/client/assets/{AgentPicker-BcURPZQp.js → AgentPicker-BDci-9aL.js} +1 -1
- package/dist/client/assets/{AgentRequestCard-kNq5A_IN.js → AgentRequestCard-B2gxCMGi.js} +3 -3
- package/dist/client/assets/{AppearancePage-Cd-k7dcc.js → AppearancePage-8SVnFe0k.js} +1 -1
- package/dist/client/assets/ApplyToOverridesDialog-CnL1ubxL.js +1 -0
- package/dist/client/assets/{AttentionSignalRow-QY8AIjf9.js → AttentionSignalRow-CCKhUtil.js} +1 -1
- package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-B-iktbLX-Cgkvajbw.js → BaseTanStackRouterDevtoolsPanel-B-iktbLX-B7wFPzG4.js} +3 -3
- package/dist/client/assets/BindingDialog-C4BHVXno.js +1 -0
- package/dist/client/assets/{BlintzCanvas-CMzZnmWK.js → BlintzCanvas-7E5uwVms.js} +3 -3
- package/dist/client/assets/{CanvasCsvContent-uxMaHePf.js → CanvasCsvContent-l7lfyDGn.js} +4 -4
- package/dist/client/assets/CanvasFileContent-Bqd0IEfK.js +2 -0
- package/dist/client/assets/CanvasModel3dContent-DqL0Sy4r.js +2 -0
- package/dist/client/assets/{ChannelComposer-BAg0a29Q.js → ChannelComposer-CAYvz_ZB.js} +12 -17
- package/dist/client/assets/{ChatAppsOff-DD28V0vX.js → ChatAppsOff-CNeKBVNz.js} +2 -2
- package/dist/client/assets/{CodeMirrorDiff-CyoduBgM.js → CodeMirrorDiff-BZRcNFsS.js} +1 -1
- package/dist/client/assets/{CodeMirrorEditor-DGccoZ8Q.js → CodeMirrorEditor-DD5tArRn.js} +1 -1
- package/dist/client/assets/{ComputerResourceView-Dk98shko.js → ComputerResourceView-BUmsVssG.js} +1 -1
- package/dist/client/assets/{ComputerViewer-Broprz4q.js → ComputerViewer-BKMR5LkF.js} +1 -1
- package/dist/client/assets/{ConnectionAccessLists-C_qLz8GJ.js → ConnectionAccessLists-DYUiFmPY.js} +1 -1
- package/dist/client/assets/{ConnectionsPage-CmGgGmDO.js → ConnectionsPage-DR2Kfm9Q.js} +2 -2
- package/dist/client/assets/{ConventionPage-BxWLIUUC.js → ConventionPage-Do6q8873.js} +2 -2
- package/dist/client/assets/{ExtensionPageRoute-CyfIRaGs.js → ExtensionPageRoute-CP7NM7fw.js} +2 -2
- package/dist/client/assets/{FeatureDisabledState-By2dhVpu.js → FeatureDisabledState-Bi23k3rg.js} +1 -1
- package/dist/client/assets/{FloatingTanStackRouterDevtools-CqogiFob-B6wKQpLR.js → FloatingTanStackRouterDevtools-CqogiFob-lRlmDXYz.js} +1 -1
- package/dist/client/assets/{ForwardConsentHost-kDdpyBgA.js → ForwardConsentHost-DSR1pEEK.js} +1 -1
- package/dist/client/assets/HandlePage-aHId3bYX.js +1 -0
- package/dist/client/assets/HeartbeatPage-BTNVcHOI.js +1 -0
- package/dist/client/assets/{KeyEntry-Ctc1zp2J.js → KeyEntry-67acsEG2.js} +1 -1
- package/dist/client/assets/{LexicalField-7zd4B8f1.js → LexicalField-Cb68LIar.js} +2 -2
- package/dist/client/assets/{ManagesPage-BG1TIMP3.js → ManagesPage-ChPlBF42.js} +1 -1
- package/dist/client/assets/{Marketplace-C9r4jRJf.js → Marketplace-CzPhJEE1.js} +4 -4
- package/dist/client/assets/{MarketplaceSourcesView-C01Cdrge.js → MarketplaceSourcesView-CmQgxQmU.js} +1 -1
- package/dist/client/assets/{McpAppFrame-Dm7MqOhc.js → McpAppFrame-z5JUaCSA.js} +2 -2
- package/dist/client/assets/{McpSigninBody-CsXP_7lE.js → McpSigninBody-ZrnzwrOH.js} +1 -1
- package/dist/client/assets/{Model3dViewer-DOl8ZkrU.js → Model3dViewer-HJpWK-JI.js} +1 -1
- package/dist/client/assets/NamePage-C7F-SotG.js +1 -0
- package/dist/client/assets/{NewDirectMessageMenu-Dj-Qw8zA.js → NewDirectMessageMenu-CjBjzsDe.js} +1 -1
- package/dist/client/assets/{NotificationsPage-UExs4YE2.js → NotificationsPage-DwNUI0Z3.js} +1 -1
- package/dist/client/assets/{OpenMeshSwitch-Dx3M3wwS.js → OpenMeshSwitch-RNAZY1vn.js} +2 -2
- package/dist/client/assets/{OperatorIdentityForm-Bz5570RF.js → OperatorIdentityForm-B7S2C_eT.js} +1 -1
- package/dist/client/assets/PermissionHistory-D0chstxf.js +1 -0
- package/dist/client/assets/PermissionsPage-ToK0DZVV.js +1 -0
- package/dist/client/assets/{PersonalityPopover-Do-k_Hhw.js → PersonalityPopover-BvMtUQRM.js} +1 -1
- package/dist/client/assets/PhotoPage-Cqo3PNO_.js +1 -0
- package/dist/client/assets/{PreviewRefusedNotice-B-yyzQZP.js → PreviewRefusedNotice-DzbkMrUo.js} +1 -1
- package/dist/client/assets/{ProfileFields-DiarOK2y.js → ProfileFields-DU8dTGHT.js} +1 -1
- package/dist/client/assets/{ProfilePanelContainer-33Xkwoc3.js → ProfilePanelContainer-BfT-ufV7.js} +1 -1
- package/dist/client/assets/{ProfileRolePicker-BI6T4hj8.js → ProfileRolePicker-DrOtV-0N.js} +1 -1
- package/dist/client/assets/{PromptSuggestionChips-v5MScpZF.js → PromptSuggestionChips-CEnhme_V.js} +1 -1
- package/dist/client/assets/{ReportsToPopover-BALADuTO.js → ReportsToPopover-CwjpR1Tw.js} +1 -1
- package/dist/client/assets/{RoomSurface-BatV7gf5.js → RoomSurface-CChzNJKw.js} +1 -1
- package/dist/client/assets/{RoomsPage-DCCC3Dst.js → RoomsPage-Dbf6ijKr.js} +1 -1
- package/dist/client/assets/{RunsOnPopover-C7hMPyrb.js → RunsOnPopover-Bh5sSsSC.js} +1 -1
- package/dist/client/assets/{RuntimeConnectFlow-Dc5a8dlJ.js → RuntimeConnectFlow-BYQnY5vv.js} +1 -1
- package/dist/client/assets/{RuntimeSetupDialog-w90VGjJ4.js → RuntimeSetupDialog-DTO5v0dP.js} +1 -1
- package/dist/client/assets/{SeenDevices-BIMmbMWC.js → SeenDevices-cuY7ASEy.js} +3 -3
- package/dist/client/assets/{SessionsPage-0lwvSYHB.js → SessionsPage-BrqpVx-t.js} +1 -1
- package/dist/client/assets/{SettingsDialog-CrP6JzPg.js → SettingsDialog-DCAZX_1d.js} +4 -4
- package/dist/client/assets/{SkillsPage-BDgKWTfe.js → SkillsPage-D5who_ZH.js} +1 -1
- package/dist/client/assets/TaskDialogWrapper-BJ6XtOC5.js +1 -0
- package/dist/client/assets/TasksEmptyState-B3SjsxQa.js +3 -0
- package/dist/client/assets/{TasksPage-DjGbMGvn.js → TasksPage-B72w7J87.js} +1 -1
- package/dist/client/assets/{TeamComputerEntry-B_sM9Fik.js → TeamComputerEntry-B9ma5j-X.js} +1 -1
- package/dist/client/assets/TodoPromiseList-DDKWAfmv.js +1 -0
- package/dist/client/assets/TodoPromisesPage-BNXpvXzS.js +1 -0
- package/dist/client/assets/{ToolsPage-CeETRCd8.js → ToolsPage-DbJykCG3.js} +2 -2
- package/dist/client/assets/{TopologyGraph-CnpH2NjE.js → TopologyGraph-DKZS3nlr.js} +3 -3
- package/dist/client/assets/{TourHost-BQHrS47S.js → TourHost-Bw3Uoea5.js} +1 -1
- package/dist/client/assets/{UnlinkDialog-DOQLeNx4.js → UnlinkDialog-B-XCFNSd.js} +1 -1
- package/dist/client/assets/{UnreadDivider-DhyK6uGG.js → UnreadDivider-1aPVzwd7.js} +1 -1
- package/dist/client/assets/{WidgetErrorCard-Bwlfu514.js → WidgetErrorCard-C5ieVv_9.js} +6 -6
- package/dist/client/assets/{WithheldExtensionsNotice-BDc-CM2t.js → WithheldExtensionsNotice-CCO4ClRZ.js} +1 -1
- package/dist/client/assets/{WorkQueuePage-iO_DO1YK.js → WorkQueuePage-BbPKNwDg.js} +1 -1
- package/dist/client/assets/WorkView-BRcytACJ.js +51 -0
- package/dist/client/assets/_shell-EwFeSIGp.js +80 -0
- package/dist/client/assets/{_shell._home-BWi5YPaR.js → _shell._home-DD2mg-iK.js} +1 -1
- package/dist/client/assets/{_shell._home.activity-BU1NIGb7.js → _shell._home.activity-Z1QuU2M4.js} +1 -1
- package/dist/client/assets/_shell._home.index-BzTYr8Bw.js +3 -0
- package/dist/client/assets/_shell._home.tasks-BtC85Iut.js +1 -0
- package/dist/client/assets/{_shell._home.workspaces-wbnqJ58w.js → _shell._home.workspaces-qMG5OJYR.js} +1 -1
- package/dist/client/assets/{_shell.channels-D1KdvWZF.js → _shell.channels-BE4EK-iM.js} +2 -2
- package/dist/client/assets/_shell.connections-CBx0ogzx.js +1 -0
- package/dist/client/assets/{_shell.feedback-requests-DzHWC1fJ.js → _shell.feedback-requests-CwKSkkuD.js} +2 -2
- package/dist/client/assets/_shell.marketplace-CgWBUKSA.js +1 -0
- package/dist/client/assets/_shell.marketplace_.sources-8HZpKFDI.js +1 -0
- package/dist/client/assets/_shell.session-D6HcVbnm.js +1 -0
- package/dist/client/assets/{_shell.team-BMNSUpQQ.js → _shell.team-Dm5a4f8_.js} +4 -4
- package/dist/client/assets/_shell.threads-BavVtQOE.js +1 -0
- package/dist/client/assets/_shell.todos-B6uWr0zA.js +6 -0
- package/dist/client/assets/_shell.x._extensionId-DaELdkCH.js +1 -0
- package/dist/client/assets/_shell.x._extensionId_._-DaELdkCH.js +1 -0
- package/dist/client/assets/{abnfDiagram-WEYOIA3C-Co2k29JX.js → abnfDiagram-WEYOIA3C-Bu2T3jVw.js} +1 -1
- package/dist/client/assets/{access-copy-D6BUySpp.js → access-copy-tkiFMhRf.js} +1 -1
- package/dist/client/assets/{arc-DLZZpkuJ.js → arc-5q4SfXO9.js} +1 -1
- package/dist/client/assets/{architectureDiagram-ZHVYKT53-ClS9xqK5.js → architectureDiagram-ZHVYKT53-BnDMOBhV.js} +1 -1
- package/dist/client/assets/{banner-B8iMuXCP.js → banner-CSKUrrI0.js} +2 -2
- package/dist/client/assets/{blockDiagram-RJAE7QA3-DheoOELu.js → blockDiagram-RJAE7QA3-CtushlEs.js} +1 -1
- package/dist/client/assets/{c4Diagram-XDPPPE54-VWWZJ5x4.js → c4Diagram-XDPPPE54-7L-qYwKH.js} +1 -1
- package/dist/client/assets/channel-A3XT7_2L.js +1 -0
- package/dist/client/assets/{chunk-2E7WHVMD-BqPLJVkv.js → chunk-2E7WHVMD-ksBVyqQ3.js} +1 -1
- package/dist/client/assets/{chunk-2Q5K7J3B-DZn6OnKe.js → chunk-2Q5K7J3B-Bfqdkihb.js} +1 -1
- package/dist/client/assets/{chunk-4EMNKR2T-Dl9Poajp.js → chunk-4EMNKR2T-Brf2dH9x.js} +1 -1
- package/dist/client/assets/{chunk-55XCU76K-RoKuZPUc.js → chunk-55XCU76K-BlE7Cq40.js} +1 -1
- package/dist/client/assets/{chunk-5VM5RSS4-DV_1XHtU.js → chunk-5VM5RSS4-Bkgg3j7L.js} +1 -1
- package/dist/client/assets/{chunk-JWPE2WC7-B_IuS45y.js → chunk-JWPE2WC7-B9TRpN4O.js} +1 -1
- package/dist/client/assets/{chunk-VQ5W62QI-DkLNi45x.js → chunk-VQ5W62QI-ZoILnIYi.js} +1 -1
- package/dist/client/assets/{chunk-XXDRQBXY-ISM-1Dpw.js → chunk-XXDRQBXY-r2xNhaKz.js} +1 -1
- package/dist/client/assets/{chunk-ZCHMQSOR-MKaLMW8o.js → chunk-ZCHMQSOR-DfV3cF7d.js} +2 -2
- package/dist/client/assets/{classDiagram-v2-4MYWR3UA-CIWuu4ht.js → classDiagram-v2-4MYWR3UA-VOVqMNNP.js} +1 -1
- package/dist/client/assets/{command-CxGYZKco.js → command-CaUEAy3b.js} +1 -1
- package/dist/client/assets/{copy-button-DjAoGwds.js → copy-button-BOznikwM.js} +1 -1
- package/dist/client/assets/{cose-bilkent-JH36ORCC-HiCifRyi.js → cose-bilkent-JH36ORCC-CAdBvyLz.js} +1 -1
- package/dist/client/assets/{cpu-DHHTTvp_.js → cpu-j9vX9Wfk.js} +1 -1
- package/dist/client/assets/{cynefin-EF2NZ3EQ-DjJGZrPz.js → cynefin-EF2NZ3EQ-DcH1A9Oo.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-WF24UDRP-DE2NdiJ2.js → cynefinDiagram-WF24UDRP-DJuKBXHi.js} +1 -1
- package/dist/client/assets/{dagre-NK4GIZVX-C6gDOD26.js → dagre-NK4GIZVX-D099H_0S.js} +1 -1
- package/dist/client/assets/{detail-row-CjwI1iuc.js → detail-row-Crl89jnh.js} +1 -1
- package/dist/client/assets/{diagram-CBK3MWTC-38LckcsL.js → diagram-CBK3MWTC-Cd_4W9XO.js} +1 -1
- package/dist/client/assets/{diagram-I5XIIV2D--8L6D9Ra.js → diagram-I5XIIV2D-Bc7aQKt3.js} +1 -1
- package/dist/client/assets/{diagram-ODIL2UCW-DGC2Inhd.js → diagram-ODIL2UCW-awVJZ4Bg.js} +1 -1
- package/dist/client/assets/{diagram-PFBEJUXE-BDHp0AyR.js → diagram-PFBEJUXE-dhsj9aeU.js} +1 -1
- package/dist/client/assets/{diagram-RJA3I4VV-uBatJYPi.js → diagram-RJA3I4VV-Dm59CbiV.js} +1 -1
- package/dist/client/assets/{diagram-TYUNFSNR-C8e1EH9X.js → diagram-TYUNFSNR-BhvcIjA9.js} +1 -1
- package/dist/client/assets/{ebnfDiagram-V4P3TTPT-DimRzU5B.js → ebnfDiagram-V4P3TTPT-C4wT_MTC.js} +1 -1
- package/dist/client/assets/{elk-QONTBCTQ-Dz6_Y2-G.js → elk-QONTBCTQ-CPI0zjmW.js} +1 -1
- package/dist/client/assets/{empty-state-saV209Il.js → empty-state-BHcmkSzu.js} +1 -1
- package/dist/client/assets/{erDiagram-KYQIGQAA-JeuTF8w6.js → erDiagram-KYQIGQAA-C_vGcbOB.js} +1 -1
- package/dist/client/assets/{execution-config-ClQZyDs9.js → execution-config-BS5rtvTZ.js} +1 -1
- package/dist/client/assets/{file-BIF-4ARS.js → file-CQGljfDT.js} +1 -1
- package/dist/client/assets/{file-exclamation-point-DxadH2b-.js → file-exclamation-point-B0a55VME.js} +1 -1
- package/dist/client/assets/{file-text-C_NPIQr4.js → file-text-Cycq_S0e.js} +1 -1
- package/dist/client/assets/{find-latest-widget-fence-CXai_zs0.js → find-latest-widget-fence-B6sJdG3Q.js} +4 -4
- package/dist/client/assets/{flowDiagram-IUGLLWBU-9FHDdK4j.js → flowDiagram-IUGLLWBU-_VNfmnxx.js} +1 -1
- package/dist/client/assets/{form-D3VdAYl4.js → form-BL14vwyB.js} +1 -1
- package/dist/client/assets/{format-cron-BqRDcFZM.js → format-cron-meJMgYNe.js} +1 -1
- package/dist/client/assets/{ganttDiagram-R7GPNTJY-CLMuXlHt.js → ganttDiagram-R7GPNTJY-o0gGU7X_.js} +1 -1
- package/dist/client/assets/{git-branch-Df7a5_fb.js → git-branch-CsLE6G0Y.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-PDYL7XHY-sE7Rlpr6.js → gitGraphDiagram-PDYL7XHY-DjXjUpJo.js} +1 -1
- package/dist/client/assets/{graph-iNVyFhBQ.js → graph-BMYee_VK.js} +1 -1
- package/dist/client/assets/{heart-BHMhDZ0K.js → heart-Cn3a-UQI.js} +1 -1
- package/dist/client/assets/{highlighted-body-KPVGNVTW-VvvsrJbu.js → highlighted-body-KPVGNVTW-DsX5yCC0.js} +1 -1
- package/dist/client/assets/{image-lightbox-CGEIRguA.js → image-lightbox-BZ_eBZgA.js} +1 -1
- package/dist/client/assets/{image-off-C5-TmSq8.js → image-off-DjR7LI5G.js} +1 -1
- package/dist/client/assets/{index-C3zS0ghJ.js → index-1MwES_vb.js} +1 -1
- package/dist/client/assets/{index-ClyRhxV_.js → index-47--OGKJ.js} +1 -1
- package/dist/client/assets/{index-CTgUh4p3.js → index-4rSR8lau.js} +1 -1
- package/dist/client/assets/{index-D9bEy8X-.js → index-B4TxpTKD.js} +1 -1
- package/dist/client/assets/{index-Dw-4S640.js → index-B8LqLhq7.js} +1 -1
- package/dist/client/assets/index-BJRgbiEd.js +1 -0
- package/dist/client/assets/{index-DWZ5M321.js → index-BOCclWF3.js} +1 -1
- package/dist/client/assets/index-BR1m9FON.js +1066 -0
- package/dist/client/assets/index-BcFn_S6b.js +1 -0
- package/dist/client/assets/{index-DRtg_sGG.js → index-BcnwvTnt.js} +1 -1
- package/dist/client/assets/index-BdVQOlVQ.css +1 -0
- package/dist/client/assets/{index-DEvpdTo6.js → index-BmKHO-FD.js} +1 -1
- package/dist/client/assets/{index-Bd0PAkxf.js → index-BsZkXHsH.js} +1 -1
- package/dist/client/assets/{index-Cudi8rs6.js → index-BxWr8Mrf.js} +1 -1
- package/dist/client/assets/index-C5EvpXcq.js +1 -0
- package/dist/client/assets/{index-CExh9cKN.js → index-Cb_p_ynP.js} +1 -1
- package/dist/client/assets/{index-YZbu9tke.js → index-CczLBUKI.js} +1 -1
- package/dist/client/assets/{index-264YDu-W.js → index-Cf4Gtxf9.js} +1 -1
- package/dist/client/assets/{index-Dpu2CORc.js → index-CfKSlYjb.js} +1 -1
- package/dist/client/assets/{index-Bzm9YMbr.js → index-Cgjq7a-8.js} +1 -1
- package/dist/client/assets/{index-Ci_J5Q-6.js → index-CpWxcN5D.js} +1 -1
- package/dist/client/assets/{index-BK5QrGfQ.js → index-Cv67OXfk.js} +1 -1
- package/dist/client/assets/{index-Di-MIFQG.js → index-D5Qmx1JR.js} +3 -3
- package/dist/client/assets/{index-LPrq0pOA.js → index-DARchye_.js} +1 -1
- package/dist/client/assets/{index-DMwivStD.js → index-DFb4kOjm.js} +2 -2
- package/dist/client/assets/{index-WeLoaNzW.js → index-DLN0kcME.js} +1 -1
- package/dist/client/assets/{index-BMLCfTba.js → index-DMSSN08i.js} +1 -1
- package/dist/client/assets/{index-Y6BDhuGt.js → index-DQ8uADJF.js} +1 -1
- package/dist/client/assets/index-DZhMvc9m.js +1 -0
- package/dist/client/assets/{index-CLsoFUml.js → index-Dfko0tSp.js} +1 -1
- package/dist/client/assets/{index-BgdYXP8E.js → index-DiM3QX-4.js} +3 -3
- package/dist/client/assets/{index-BxFLHNLg.js → index-DlvUENo4.js} +1 -1
- package/dist/client/assets/{index-BLUUshO9.js → index-DqZmnJED.js} +1 -1
- package/dist/client/assets/{index-D_bAtIJZ.js → index-DrlB9RSk.js} +1 -1
- package/dist/client/assets/{index-CgWzzIbx.js → index-H4e5Wpmi.js} +1 -1
- package/dist/client/assets/{index-k67dvyau.js → index-Joav7LQU.js} +1 -1
- package/dist/client/assets/{index-B0FHRkHM.js → index-KganLhU1.js} +2 -2
- package/dist/client/assets/{index-DFkofTx1.js → index-Kt6r3DQg.js} +1 -1
- package/dist/client/assets/{index-B8I1k-z9.js → index-Z2ApBQt4.js} +1 -1
- package/dist/client/assets/index-dY7IFpet.js +1 -0
- package/dist/client/assets/{index-DYVNSRDk.js → index-faSyUc2q.js} +1 -1
- package/dist/client/assets/{index-BgRYuqWs.js → index-gmyiXkmr.js} +1 -1
- package/dist/client/assets/{index-BZTLFzJp.js → index-o6kGmVGx.js} +1 -1
- package/dist/client/assets/{index-C_0JoCV6.js → index-vHKVYcH7.js} +1 -1
- package/dist/client/assets/{index.esm-CYmalBux.js → index.esm-CJIDYBqd.js} +1 -1
- package/dist/client/assets/{infoDiagram-MVDRKAX5-0aR9wjgO.js → infoDiagram-MVDRKAX5-B1mMyUlp.js} +1 -1
- package/dist/client/assets/{inline-code-DyTKSC5b.js → inline-code-mh48Uhbi.js} +1 -1
- package/dist/client/assets/{ishikawaDiagram-HPEHV2GE-D1lN8x2t.js → ishikawaDiagram-HPEHV2GE-efEMQ0_X.js} +1 -1
- package/dist/client/assets/{journeyDiagram-BOSHW7O7-CkXITXiJ.js → journeyDiagram-BOSHW7O7-DSAywiVk.js} +1 -1
- package/dist/client/assets/{kanban-definition-FNSA4HC5-ge33IiSq.js → kanban-definition-FNSA4HC5-B9pbU4zK.js} +1 -1
- package/dist/client/assets/{layers-Bx3K7OUm.js → layers-B0Z5Od3N.js} +1 -1
- package/dist/client/assets/{lightbulb-C5LvXkvM.js → lightbulb-Cfb5ecEd.js} +1 -1
- package/dist/client/assets/{link-2-Bj0_Zkvr.js → link-2-Dzy5BUL3.js} +1 -1
- package/dist/client/assets/{list-runtime-types-VNj1C8TB.js → list-runtime-types-DLmjtBMq.js} +1 -1
- package/dist/client/assets/{markdown-content-BRaPEOC7.js → markdown-content-DhAtZOfj.js} +1 -1
- package/dist/client/assets/{mention-pill-B_MiJWfo.js → mention-pill-DmA8FxL4.js} +1 -1
- package/dist/client/assets/{mermaid.core-B2hil_4a.js → mermaid.core-DUIkdbeL.js} +4 -4
- package/dist/client/assets/{message-square-off-T33FHpr7.js → message-square-off-BowIzJUV.js} +1 -1
- package/dist/client/assets/{mindmap-definition-6OY57UG3-Bu_Ia4Xz.js → mindmap-definition-6OY57UG3-Dz7ZOR4C.js} +1 -1
- package/dist/client/assets/{more-details-oDazWBxm.js → more-details-DV7LmY0E.js} +1 -1
- package/dist/client/assets/{owner-notice-VepbAQhj.js → owner-notice-DdFc2P8z.js} +1 -1
- package/dist/client/assets/{package-DBsl3ao5.js → package-BhKXbvU_.js} +1 -1
- package/dist/client/assets/{page-container-Bkarym6m.js → page-container-0sWZ3xh9.js} +1 -1
- package/dist/client/assets/{pane-resize-handle-gBlb5k1v.js → pane-resize-handle-Bjy4udre.js} +1 -1
- package/dist/client/assets/{paperclip-BeFttiUK.js → paperclip-C-7LhBfl.js} +1 -1
- package/dist/client/assets/{path-input-NY_yCBHb.js → path-input-BPVyI72G.js} +1 -1
- package/dist/client/assets/{pegDiagram-ECIUJNBX-0KmJlW0E.js → pegDiagram-ECIUJNBX-C4EOP-Fa.js} +1 -1
- package/dist/client/assets/{pieDiagram-GNMPY74T-IjeZXicv.js → pieDiagram-GNMPY74T-CQ1OxRkv.js} +1 -1
- package/dist/client/assets/{plug-CTqOZ7cA.js → plug-CIZ-wWL8.js} +1 -1
- package/dist/client/assets/{primer-trigger-CjaGrT2u.js → primer-trigger-XA5fLzR5.js} +2 -2
- package/dist/client/assets/{profile-errors-B8XkL2Rp.js → profile-errors-C1XACbc9.js} +1 -1
- package/dist/client/assets/{progress-Cr-4myw6.js → progress-BA2JPtb6.js} +1 -1
- package/dist/client/assets/{quadrantDiagram-D57K4MC3-CP6kLJKa.js → quadrantDiagram-D57K4MC3-Cw4BdkpS.js} +1 -1
- package/dist/client/assets/{query-error-state-DvhY-YKM.js → query-error-state-Cm-Lozlb.js} +1 -1
- package/dist/client/assets/{radio-CmDmmJy6.js → radio-DQ29H26H.js} +1 -1
- package/dist/client/assets/{railroadDiagram-Y72NRBL7-Bcto__oE.js → railroadDiagram-Y72NRBL7-CSKtYLmm.js} +1 -1
- package/dist/client/assets/registry-Tbt9pcZl.js +39 -0
- package/dist/client/assets/registry-jD9zw538.js +1 -0
- package/dist/client/assets/{relay-trace-schemas-ZLR1S8ft.js → relay-trace-schemas-4AAUf-Zl.js} +2 -2
- package/dist/client/assets/{repeat-DVTM8et8.js → repeat-B8g-x-Sc.js} +1 -1
- package/dist/client/assets/{requirementDiagram-EQYSW5RA-DNJrds3m.js → requirementDiagram-EQYSW5RA-BPSBZr7X.js} +1 -1
- package/dist/client/assets/{room-files-source-9Wdtc-bG.js → room-files-source-BkiK4-ZI.js} +2 -2
- package/dist/client/assets/{rotate-ccw-clock-qJSWqifh.js → rotate-ccw-clock-DRtL-2nr.js} +1 -1
- package/dist/client/assets/{rotate-cw-uoeBxIeM.js → rotate-cw-BbHkWN-J.js} +1 -1
- package/dist/client/assets/{sankeyDiagram-SY24JHO5-DNlU7xGI.js → sankeyDiagram-SY24JHO5-DVlHablQ.js} +1 -1
- package/dist/client/assets/{scroll-area-B1d3NfEn.js → scroll-area-DAC7NrVU.js} +1 -1
- package/dist/client/assets/{sequenceDiagram-BLEHNHQU-CRk71coF.js → sequenceDiagram-BLEHNHQU--wZkN8xk.js} +1 -1
- package/dist/client/assets/{shield-x-BpQmg1qz.js → shield-x-CEWfkzDN.js} +1 -1
- package/dist/client/assets/{signed-in-CTmJ3OqM.js → signed-in-CMhCR-m8.js} +1 -1
- package/dist/client/assets/{sizeCapture-INFHLROL-cihX3QNq.js → sizeCapture-INFHLROL-CLXc7d3S.js} +1 -1
- package/dist/client/assets/{soul-file-BwiyiI5v.js → soul-file-CbX7rNqz.js} +1 -1
- package/dist/client/assets/{stateDiagram-v2-A6IESKWZ-BAwwRsnH.js → stateDiagram-v2-A6IESKWZ-5xa1FM_X.js} +1 -1
- package/dist/client/assets/{swimlanes-B3ENRKFQ-CpDB6CUC.js → swimlanes-B3ENRKFQ-DKgxJxjE.js} +1 -1
- package/dist/client/assets/swimlanesDiagram-AYQRV4AK-f6MOc3pl.js +8 -0
- package/dist/client/assets/{table-dWrfPeX-.js → table-D0EJT0uP.js} +1 -1
- package/dist/client/assets/{tabs-D4txthOi.js → tabs-Ctjzrm8t.js} +1 -1
- package/dist/client/assets/{timeline-definition-JXYKGLGB-RDrKgCoU.js → timeline-definition-JXYKGLGB-B9P7ituI.js} +1 -1
- package/dist/client/assets/trust-dial-D__tIhzt.js +11 -0
- package/dist/client/assets/{trust-posture-atZIh8tf.js → trust-posture-DaHHtOZn.js} +1 -1
- package/dist/client/assets/{unplug-CnevV4yX.js → unplug-B-ipHefz.js} +1 -1
- package/dist/client/assets/{unverified-catalog-notice-BQwT36FA.js → unverified-catalog-notice-C8swqaTn.js} +1 -1
- package/dist/client/assets/{use-bindings-CltfjAWW.js → use-bindings-gLHRNAFU.js} +1 -1
- package/dist/client/assets/{use-composer-prefs-D-Zlt6z2.js → use-composer-prefs-CjpxcBIe.js} +1 -1
- package/dist/client/assets/{use-connector-management-C3CLnOOt.js → use-connector-management-BLiCJMgU.js} +1 -1
- package/dist/client/assets/{use-deep-link-scroll-DQlz-scx.js → use-deep-link-scroll-r2nKjzA-.js} +1 -1
- package/dist/client/assets/{use-delete-binding-D73CLm_7.js → use-delete-binding-BSiOik_K.js} +1 -1
- package/dist/client/assets/{use-dev-links-BqVFsMKU.js → use-dev-links-DXcIlMf-.js} +1 -1
- package/dist/client/assets/use-direct-message-panel-BbH8N4mE.js +1 -0
- package/dist/client/assets/{use-external-adapter-catalog-DrnksH0t.js → use-external-adapter-catalog-mmKni5ui.js} +1 -1
- package/dist/client/assets/{use-filter-state-D4i-hDOk.js → use-filter-state-CiPZ0AIH.js} +2 -2
- package/dist/client/assets/{use-full-activity-feed-DdDsRg8s.js → use-full-activity-feed-DXroUzfN.js} +1 -1
- package/dist/client/assets/use-is-below-desktop-LUZL5z5t.js +1 -0
- package/dist/client/assets/{use-mesh-topology-B7aLtPkZ.js → use-mesh-topology-upehQ5Cv.js} +1 -1
- package/dist/client/assets/{use-mounted-ref-DSSTCJfY.js → use-mounted-ref-IHwyriaF.js} +1 -1
- package/dist/client/assets/{use-notification-prefs-DaF3kwmq.js → use-notification-prefs-BHOK2P2l.js} +1 -1
- package/dist/client/assets/use-pending-read-mVsOBTzn.js +1 -0
- package/dist/client/assets/{use-personality-commit-D5b90JPX.js → use-personality-commit-Chf3UX8P.js} +1 -1
- package/dist/client/assets/{use-promo-activation-CPAOQpfe.js → use-promo-activation-Dlw6bg7G.js} +2 -2
- package/dist/client/assets/{use-promo-dismissals-Bx1gz1R1.js → use-promo-dismissals-Dx_fli7I.js} +1 -1
- package/dist/client/assets/{use-pulse-freshness-DeulB37O.js → use-pulse-freshness-CG_I6a-O.js} +1 -1
- package/dist/client/assets/{use-room-follow-claim-Dwke6RFQ.js → use-room-follow-claim-Bgrpr3bO.js} +1 -1
- package/dist/client/assets/{use-room-sessions-iepVrIMm.js → use-room-sessions-DecGrP3E.js} +1 -1
- package/dist/client/assets/{use-roving-tab-list-pCPKNQKv.js → use-roving-tab-list-CDkh-Ujm.js} +1 -1
- package/dist/client/assets/{use-session-canvas-BvvO-_V1.js → use-session-canvas-tvLLPQcm.js} +6 -6
- package/dist/client/assets/{use-status-budget-Bs7MMriS.js → use-status-budget-BBl2yxLR.js} +2 -2
- package/dist/client/assets/{use-todos-C-eREuDS.js → use-todos-BzRauzdQ.js} +1 -1
- package/dist/client/assets/{use-transform-lj3TkjYO.js → use-transform-DzJeHpxm.js} +1 -1
- package/dist/client/assets/{use-unclaimed-chats-BF3-0jHC.js → use-unclaimed-chats--HZdmq4F.js} +1 -1
- package/dist/client/assets/use-update-config-DjL7-nUR.js +1 -0
- package/dist/client/assets/{useMutationState-B_x_4f2K.js → useMutationState-DIywUTDG.js} +1 -1
- package/dist/client/assets/{usecaseDiagram-WPOLBNNX-DBsRYa4J.js → usecaseDiagram-WPOLBNNX-C9aLJ03F.js} +1 -1
- package/dist/client/assets/{vennDiagram-Q3Y3IDCW-rFAXvcQI.js → vennDiagram-Q3Y3IDCW-ChBIWbL0.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-IVAIDKWA-bI0JZkO3.js → wardleyDiagram-IVAIDKWA-DvQDOaTm.js} +1 -1
- package/dist/client/assets/{xychartDiagram-4URNHDU4-DZUd8iln.js → xychartDiagram-4URNHDU4-8FxLPP2c.js} +1 -1
- package/dist/client/assets/zap-DSllMMHe.js +6 -0
- package/dist/client/index.html +2 -2
- package/dist/drizzle/20261104060919_package_approval_request.sql +1 -0
- package/dist/drizzle/20261104081935_hook_decline_review.sql +3 -0
- package/dist/drizzle/20261107183323_dor3933_todos_rename.sql +64 -0
- package/dist/drizzle/20261108014418_dor3938_cross_agent_writer.sql +4 -0
- package/dist/drizzle/meta/20261104060919_snapshot.json +14889 -0
- package/dist/drizzle/meta/20261104081935_snapshot.json +14910 -0
- package/dist/drizzle/meta/20261107183323_snapshot.json +14910 -0
- package/dist/drizzle/meta/20261108014418_snapshot.json +14938 -0
- package/dist/drizzle/meta/_journal.json +28 -0
- package/dist/server/index.js +24875 -21931
- package/dist/server/index.js.map +2 -2
- package/package.json +5 -5
- package/dist/client/assets/ApplyToOverridesDialog-DE9VVQCA.js +0 -1
- package/dist/client/assets/BindingDialog-C_yflKOE.js +0 -1
- package/dist/client/assets/CanvasFileContent-C3ZKszxn.js +0 -2
- package/dist/client/assets/CanvasModel3dContent-CsNUuaj6.js +0 -2
- package/dist/client/assets/CommitmentList-DOvfnyDA.js +0 -1
- package/dist/client/assets/CommitmentsPage-D81vxHUk.js +0 -1
- package/dist/client/assets/HandlePage-vsG04kBg.js +0 -1
- package/dist/client/assets/HeartbeatPage-CMj1SS30.js +0 -1
- package/dist/client/assets/NamePage-DdX2yQ5f.js +0 -1
- package/dist/client/assets/PermissionHistory-Bhl2kr1R.js +0 -1
- package/dist/client/assets/PermissionsPage-DUbenFkt.js +0 -1
- package/dist/client/assets/PhotoPage-CExABoHA.js +0 -1
- package/dist/client/assets/TaskDialogWrapper-BVb8gAr0.js +0 -1
- package/dist/client/assets/TasksEmptyState-RkUEEU2r.js +0 -3
- package/dist/client/assets/WorkView-BDk_vwu3.js +0 -51
- package/dist/client/assets/_shell-CMNFxZKJ.js +0 -80
- package/dist/client/assets/_shell._home.index-BjR-d3_s.js +0 -3
- package/dist/client/assets/_shell._home.tasks-CqURPMQD.js +0 -1
- package/dist/client/assets/_shell.connections-D3gJrBTQ.js +0 -1
- package/dist/client/assets/_shell.marketplace-HdefWdN_.js +0 -1
- package/dist/client/assets/_shell.marketplace_.sources-wAZKfDQF.js +0 -1
- package/dist/client/assets/_shell.session-C0utZeSI.js +0 -1
- package/dist/client/assets/_shell.threads-TvzYRNMt.js +0 -1
- package/dist/client/assets/_shell.todos-sOFmsIPE.js +0 -6
- package/dist/client/assets/_shell.x._extensionId-DiEQZIvl.js +0 -1
- package/dist/client/assets/_shell.x._extensionId_._-DiEQZIvl.js +0 -1
- package/dist/client/assets/channel-B0WiEIVe.js +0 -1
- package/dist/client/assets/index-BwTGkJbK.js +0 -1071
- package/dist/client/assets/index-CCHGVclj.js +0 -1
- package/dist/client/assets/index-CiUmx-i3.js +0 -1
- package/dist/client/assets/index-Dd4JoHFP.js +0 -1
- package/dist/client/assets/index-DlmGvYpy.js +0 -1
- package/dist/client/assets/index-EXJsA5kw.js +0 -1
- package/dist/client/assets/index-MpS13vhQ.css +0 -1
- package/dist/client/assets/registry-BQTcAm5U.js +0 -39
- package/dist/client/assets/registry-HencHRXy.js +0 -1
- package/dist/client/assets/swimlanesDiagram-AYQRV4AK-nJfOIWYW.js +0 -8
- package/dist/client/assets/use-direct-message-panel-B3qfpDjY.js +0 -1
- package/dist/client/assets/use-is-below-desktop-BXHT3oPL.js +0 -1
- package/dist/client/assets/use-local-browser-DDWknHZE.js +0 -1
- package/dist/client/assets/use-pending-read-uvmEJ7H9.js +0 -1
- package/dist/client/assets/use-update-config-D-OGlXGR.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as p,T as a}from"./TeamComputerEntry-B9ma5j-X.js";import{C,a as n}from"./ComputerResourceView-BUmsVssG.js";import"./index-BR1m9FON.js";import"./ComputerViewer-BKMR5LkF.js";import"./use-is-below-desktop-LUZL5z5t.js";export{p as AgentComputerPanel,C as ComputerPanelView,n as ComputerPipView,a as TeamComputerEntry};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{L as v,E as i,C as _}from"./index-BLUUshO9.js";import{s as W,t as e,a as g,L as x,f as k,l as V,i as U,c as E}from"./index-Di-MIFQG.js";import{defineCSSCompletionSource as N}from"./index-CTgUh4p3.js";import"./index-BwTGkJbK.js";const j=168,X=169,C=170,I=1,D=2,w=3,L=171,F=172,Y=4,z=173,K=5,A=174,T=175,Z=176,s=177,G=6,p=7,B=8,H=9,c=0,R=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],M=58,J=40,m=95,OO=91,l=45,$O=46,f=35,eO=37,u=123,QO=125,d=47,S=42,r=10,q=61,tO=43,aO=38;function o(O){return O>=65&&O<=90||O>=97&&O<=122||O>=161}function y(O){return O>=48&&O<=57}function h(O){let $;return O.next==d&&(($=O.peek(1))==d||$==S)}const nO=new i((O,$)=>{if($.dialectEnabled(c)){let Q;if(O.next<0&&$.canShift(Z))O.acceptToken(Z);else if(((Q=O.peek(-1))==r||Q<0)&&$.canShift(T)){let t=0;for(;O.next!=r&&R.includes(O.next);)O.advance(),t++;O.next==r||h(O)?O.acceptToken(T,-t):t&&O.acceptToken(s)}else if(O.next==r)O.acceptToken(A,1);else if(R.includes(O.next)){for(O.advance();O.next!=r&&R.includes(O.next);)O.advance();O.acceptToken(s)}}else{let Q=0;for(;R.includes(O.next);)O.advance(),Q++;Q&&O.acceptToken(s)}},{contextual:!0}),rO=new i((O,$)=>{if(h(O)){if(O.advance(),$.dialectEnabled(c)){let Q=-1;for(let t=1;;t++){let a=O.peek(-t-1);if(a==r||a<0){Q=t+1;break}else if(!R.includes(a))break}if(Q>-1){let t=O.next==S,a=0;for(O.advance();O.next>=0;)if(O.next==r){O.advance();let n=0;for(;O.next!=r&&R.includes(O.next);)n++,O.advance();if(n<Q){a=-n-1;break}}else if(t&&O.next==S&&O.peek(1)==d){a=2;break}else O.advance();O.acceptToken(t?p:G,a);return}}if(O.next==d){for(;O.next!=r&&O.next>=0;)O.advance();O.acceptToken(G)}else{for(O.advance();O.next>=0;){let{next:Q}=O;if(O.advance(),Q==S&&O.next==d){O.advance();break}}O.acceptToken(p)}}}),RO=new i((O,$)=>{(O.next==tO||O.next==q)&&$.dialectEnabled(c)&&O.acceptToken(O.next==q?B:H,1)}),iO=new i((O,$)=>{if(!$.dialectEnabled(c))return;let Q=$.context.depth;if(O.next<0&&Q){O.acceptToken(X);return}if(O.peek(-1)==r){let a=0;for(;O.next!=r&&R.includes(O.next);)O.advance(),a++;a!=Q&&O.next!=r&&!h(O)&&(a<Q?O.acceptToken(X,-a):O.acceptToken(j))}}),oO=new i((O,$)=>{for(let Q=!1,t=0,a=0;;a++){let{next:n}=O;if(o(n)||n==l||n==m||Q&&y(n))!Q&&(n!=l||a>0)&&(Q=!0),t===a&&n==l&&t++,O.advance();else if(n==f&&O.peek(1)==u){O.acceptToken(K,2);break}else{Q&&O.acceptToken(t==2&&$.canShift(Y)?Y:$.canShift(z)?z:n==J?L:F);break}}}),lO=new i(O=>{if(O.next==QO){for(O.advance();o(O.next)||O.next==l||O.next==m||y(O.next);)O.advance();O.next==f&&O.peek(1)==u?O.acceptToken(D,2):O.acceptToken(I)}}),dO=new i(O=>{if(R.includes(O.peek(-1))){let{next:$}=O;(o($)||$==m||$==f||$==$O||$==OO||$==M&&o(O.peek(1))||$==l||$==aO||$==S)&&O.acceptToken(C)}}),SO=new i(O=>{if(!R.includes(O.peek(-1))){let{next:$}=O;if($==eO&&(O.advance(),O.acceptToken(w)),o($)){do O.advance();while(o(O.next)||y(O.next));O.acceptToken(w)}}});function b(O,$){this.parent=O,this.depth=$,this.hash=(O?O.hash+O.hash<<8:0)+$+($<<4)}const cO=new b(null,0),sO=new _({start:cO,shift(O,$,Q,t){return $==j?new b(O,Q.pos-t.pos):$==X?O.parent:O},hash(O){return O.hash}}),XO=W({"AtKeyword import charset namespace keyframes media supports include mixin use forward extend at-root":e.definitionKeyword,"Keyword selector":e.keyword,ControlKeyword:e.controlKeyword,NamespaceName:e.namespace,KeyframeName:e.labelName,KeyframeRangeName:e.operatorKeyword,TagName:e.tagName,"ClassName Suffix":e.className,PseudoClassName:e.constant(e.className),IdName:e.labelName,"FeatureName PropertyName":e.propertyName,AttributeName:e.attributeName,NumberLiteral:e.number,KeywordQuery:e.keyword,UnaryQueryOp:e.operatorKeyword,"CallTag ValueName":e.atom,VariableName:e.variableName,SassVariableName:e.special(e.variableName),Callee:e.operatorKeyword,Unit:e.unit,"UniversalSelector NestingSelector IndentedMixin IndentedInclude":e.definitionOperator,MatchOp:e.compareOperator,"ChildOp SiblingOp, LogicOp":e.logicOperator,BinOp:e.arithmeticOperator,"Important Global Default":e.modifier,Comment:e.blockComment,LineComment:e.lineComment,ColorLiteral:e.color,"ParenthesizedContent StringLiteral":e.string,"InterpolationStart InterpolationContinue InterpolationEnd":e.meta,': "..."':e.punctuation,"PseudoOp #":e.derefOperator,"; ,":e.separator,"( )":e.paren,"[ ]":e.squareBracket,"{ }":e.brace}),PO={__proto__:null,not:62,using:197,as:207,with:211,without:211,hide:225,show:225,if:263,from:269,to:271,through:273,in:279},mO={__proto__:null,url:82,"url-prefix":82,domain:82,regexp:82,lang:104,"nth-child":104,"nth-last-child":104,"nth-of-type":104,"nth-last-of-type":104,dir:104,"host-context":104},fO={__proto__:null,"@import":162,"@include":194,"@mixin":200,"@function":200,"@use":204,"@extend":214,"@at-root":218,"@forward":222,"@media":228,"@charset":232,"@namespace":236,"@keyframes":242,"@supports":254,"@if":258,"@else":260,"@for":266,"@each":276,"@while":282,"@debug":286,"@warn":286,"@error":286,"@return":286},yO={__proto__:null,layer:166,not:184,only:184,selector:190},hO=v.deserialize({version:14,states:"!$WQ`Q+tOOO#fQ+tOOP#mOpOOOOQ#U'#Ch'#ChO#rQ(pO'#CjOOQ#U'#Ci'#CiO%_Q)QO'#GXO%rQ.jO'#CnO&mQ#dO'#D]O'dQ(pO'#CgO'kQ)OO'#D_O'vQ#dO'#DfO'{Q#dO'#DiO(QQ#dO'#DqOOQ#U'#GX'#GXO(VQ(pO'#GXO(^Q(nO'#DuO%rQ.jO'#D}O%rQ.jO'#E`O%rQ.jO'#E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$OR&R$aR&P$`QzPQ$^!fR%}$_X#ly#j#m%eQ#VhQ#_mQ$h!uR&^$iW#Rhm!u$iQ#^lQ$|#QQ%S#SQ&m%PQ&n%QQ'p&dR(f'oQ%O#QQ'v&kR)R(nQ#apQ$k!vQ$n!xQ$q!zQ$v#OQ%V#WQ%W#YQ%]#_Q%d#hQ&]$hQ&f$uQ&q%XQ'k&^Q'l&_S'm&`&bQ(k'sQ(}(eR)Q(jR&h$wR#ft",nodeNames:"⚠ InterpolationEnd InterpolationContinue Unit VariableName InterpolationStart LineComment Comment IndentedMixin IndentedInclude StyleSheet RuleSet UniversalSelector TagSelector TagName NestingSelector SuffixedSelector Suffix Interpolation SassVariableName ValueName ) ( ParenthesizedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp LogicOp UnaryExpression LogicOp NamespacedValue . CallExpression Callee ArgList : ... , CallLiteral CallTag ParenthesizedContent ] [ LineNames LineName ClassSelector ClassName PseudoClassSelector :: PseudoClassName PseudoClassName ArgList PseudoClassName ArgList IdSelector # IdName AttributeSelector AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp PlaceholderSelector ClassName Block { Declaration PropertyName Map Important Global Default ; } ImportStatement AtKeyword import Layer layer LayerName KeywordQuery FeatureQuery FeatureName BinaryQuery ComparisonQuery CompareOp UnaryQuery LogicOp ParenthesizedQuery SelectorQuery selector IncludeStatement include Keyword MixinStatement mixin UseStatement use Keyword Star Keyword ExtendStatement extend RootStatement at-root ForwardStatement forward Keyword MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports IfStatement ControlKeyword ControlKeyword Keyword ForStatement ControlKeyword Keyword Keyword Keyword EachStatement ControlKeyword Keyword WhileStatement ControlKeyword OutputStatement ControlKeyword AtRule Styles",maxTerm:196,context:sO,nodeProps:[["openedBy",1,"InterpolationStart",5,"InterpolationEnd",21,"(",43,"[",78,"{"],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'S;=`$d<%lO$Rk! cUzWOy$Rz#W$R#W#X! u#X;'S$R;'S;=`$d<%lO$Rk! |SmczWOy$Rz;'S$R;'S;=`$d<%lO$Rk!!]UOy$Rz#f$R#f#g! u#g;'S$R;'S;=`$d<%lO$RZ!!tS!hROy$Rz;'S$R;'S;=`$d<%lO$RZ!#VS!pROy$Rz;'S$R;'S;=`$d<%lO$R]!#hU!dPOy$Rz!_$R!_!`;T!`;'S$R;'S;=`$d<%lO$RW!#}P;=`<%l#r",tokenizers:[iO,dO,lO,SO,oO,nO,rO,RO,0,1,2,3,4],topRules:{StyleSheet:[0,10],Styles:[1,145]},dialects:{indented:0},specialized:[{term:172,get:O=>PO[O]||-1},{term:171,get:O=>mO[O]||-1},{term:80,get:O=>fO[O]||-1},{term:173,get:O=>yO[O]||-1}],tokenPrec:3217}),P=x.define({name:"sass",parser:hO.configure({props:[k.add({Block:V,Comment(O,$){return{from:O.from+2,to:$.sliceDoc(O.to-2,O.to)=="*/"?O.to-2:O.to}}}),U.add({Declaration:E()})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*\}$/,wordChars:"$-"}}),wO=P.configure({dialect:"indented",props:[U.add({"Block RuleSet":O=>O.baseIndent+O.unit}),k.add({Block:O=>({from:O.from,to:O.to})})]}),YO=N(O=>O.name=="VariableName"||O.name=="SassVariableName");function pO(O){return new g(O!=null&&O.indented?wO:P,P.data.of({autocomplete:YO}))}export{pO as sass,YO as sassCompletionSource,P as sassLanguage};
|
|
1
|
+
import{L as v,E as i,C as _}from"./index-DqZmnJED.js";import{s as W,t as e,a as g,L as x,f as k,l as V,i as U,c as E}from"./index-D5Qmx1JR.js";import{defineCSSCompletionSource as N}from"./index-4rSR8lau.js";import"./index-BR1m9FON.js";const j=168,X=169,C=170,I=1,D=2,w=3,L=171,F=172,Y=4,z=173,K=5,A=174,T=175,Z=176,s=177,G=6,p=7,B=8,H=9,c=0,R=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],M=58,J=40,m=95,OO=91,l=45,$O=46,f=35,eO=37,u=123,QO=125,d=47,S=42,r=10,q=61,tO=43,aO=38;function o(O){return O>=65&&O<=90||O>=97&&O<=122||O>=161}function y(O){return O>=48&&O<=57}function h(O){let $;return O.next==d&&(($=O.peek(1))==d||$==S)}const nO=new i((O,$)=>{if($.dialectEnabled(c)){let Q;if(O.next<0&&$.canShift(Z))O.acceptToken(Z);else if(((Q=O.peek(-1))==r||Q<0)&&$.canShift(T)){let t=0;for(;O.next!=r&&R.includes(O.next);)O.advance(),t++;O.next==r||h(O)?O.acceptToken(T,-t):t&&O.acceptToken(s)}else if(O.next==r)O.acceptToken(A,1);else if(R.includes(O.next)){for(O.advance();O.next!=r&&R.includes(O.next);)O.advance();O.acceptToken(s)}}else{let Q=0;for(;R.includes(O.next);)O.advance(),Q++;Q&&O.acceptToken(s)}},{contextual:!0}),rO=new i((O,$)=>{if(h(O)){if(O.advance(),$.dialectEnabled(c)){let Q=-1;for(let t=1;;t++){let a=O.peek(-t-1);if(a==r||a<0){Q=t+1;break}else if(!R.includes(a))break}if(Q>-1){let t=O.next==S,a=0;for(O.advance();O.next>=0;)if(O.next==r){O.advance();let n=0;for(;O.next!=r&&R.includes(O.next);)n++,O.advance();if(n<Q){a=-n-1;break}}else if(t&&O.next==S&&O.peek(1)==d){a=2;break}else O.advance();O.acceptToken(t?p:G,a);return}}if(O.next==d){for(;O.next!=r&&O.next>=0;)O.advance();O.acceptToken(G)}else{for(O.advance();O.next>=0;){let{next:Q}=O;if(O.advance(),Q==S&&O.next==d){O.advance();break}}O.acceptToken(p)}}}),RO=new i((O,$)=>{(O.next==tO||O.next==q)&&$.dialectEnabled(c)&&O.acceptToken(O.next==q?B:H,1)}),iO=new i((O,$)=>{if(!$.dialectEnabled(c))return;let Q=$.context.depth;if(O.next<0&&Q){O.acceptToken(X);return}if(O.peek(-1)==r){let a=0;for(;O.next!=r&&R.includes(O.next);)O.advance(),a++;a!=Q&&O.next!=r&&!h(O)&&(a<Q?O.acceptToken(X,-a):O.acceptToken(j))}}),oO=new i((O,$)=>{for(let Q=!1,t=0,a=0;;a++){let{next:n}=O;if(o(n)||n==l||n==m||Q&&y(n))!Q&&(n!=l||a>0)&&(Q=!0),t===a&&n==l&&t++,O.advance();else if(n==f&&O.peek(1)==u){O.acceptToken(K,2);break}else{Q&&O.acceptToken(t==2&&$.canShift(Y)?Y:$.canShift(z)?z:n==J?L:F);break}}}),lO=new i(O=>{if(O.next==QO){for(O.advance();o(O.next)||O.next==l||O.next==m||y(O.next);)O.advance();O.next==f&&O.peek(1)==u?O.acceptToken(D,2):O.acceptToken(I)}}),dO=new i(O=>{if(R.includes(O.peek(-1))){let{next:$}=O;(o($)||$==m||$==f||$==$O||$==OO||$==M&&o(O.peek(1))||$==l||$==aO||$==S)&&O.acceptToken(C)}}),SO=new i(O=>{if(!R.includes(O.peek(-1))){let{next:$}=O;if($==eO&&(O.advance(),O.acceptToken(w)),o($)){do O.advance();while(o(O.next)||y(O.next));O.acceptToken(w)}}});function b(O,$){this.parent=O,this.depth=$,this.hash=(O?O.hash+O.hash<<8:0)+$+($<<4)}const cO=new b(null,0),sO=new _({start:cO,shift(O,$,Q,t){return $==j?new b(O,Q.pos-t.pos):$==X?O.parent:O},hash(O){return O.hash}}),XO=W({"AtKeyword import charset namespace keyframes media supports include mixin use forward extend at-root":e.definitionKeyword,"Keyword selector":e.keyword,ControlKeyword:e.controlKeyword,NamespaceName:e.namespace,KeyframeName:e.labelName,KeyframeRangeName:e.operatorKeyword,TagName:e.tagName,"ClassName Suffix":e.className,PseudoClassName:e.constant(e.className),IdName:e.labelName,"FeatureName PropertyName":e.propertyName,AttributeName:e.attributeName,NumberLiteral:e.number,KeywordQuery:e.keyword,UnaryQueryOp:e.operatorKeyword,"CallTag ValueName":e.atom,VariableName:e.variableName,SassVariableName:e.special(e.variableName),Callee:e.operatorKeyword,Unit:e.unit,"UniversalSelector NestingSelector IndentedMixin IndentedInclude":e.definitionOperator,MatchOp:e.compareOperator,"ChildOp SiblingOp, LogicOp":e.logicOperator,BinOp:e.arithmeticOperator,"Important Global Default":e.modifier,Comment:e.blockComment,LineComment:e.lineComment,ColorLiteral:e.color,"ParenthesizedContent StringLiteral":e.string,"InterpolationStart InterpolationContinue InterpolationEnd":e.meta,': "..."':e.punctuation,"PseudoOp #":e.derefOperator,"; ,":e.separator,"( )":e.paren,"[ ]":e.squareBracket,"{ }":e.brace}),PO={__proto__:null,not:62,using:197,as:207,with:211,without:211,hide:225,show:225,if:263,from:269,to:271,through:273,in:279},mO={__proto__:null,url:82,"url-prefix":82,domain:82,regexp:82,lang:104,"nth-child":104,"nth-last-child":104,"nth-of-type":104,"nth-last-of-type":104,dir:104,"host-context":104},fO={__proto__:null,"@import":162,"@include":194,"@mixin":200,"@function":200,"@use":204,"@extend":214,"@at-root":218,"@forward":222,"@media":228,"@charset":232,"@namespace":236,"@keyframes":242,"@supports":254,"@if":258,"@else":260,"@for":266,"@each":276,"@while":282,"@debug":286,"@warn":286,"@error":286,"@return":286},yO={__proto__:null,layer:166,not:184,only:184,selector:190},hO=v.deserialize({version:14,states:"!$WQ`Q+tOOO#fQ+tOOP#mOpOOOOQ#U'#Ch'#ChO#rQ(pO'#CjOOQ#U'#Ci'#CiO%_Q)QO'#GXO%rQ.jO'#CnO&mQ#dO'#D]O'dQ(pO'#CgO'kQ)OO'#D_O'vQ#dO'#DfO'{Q#dO'#DiO(QQ#dO'#DqOOQ#U'#GX'#GXO(VQ(pO'#GXO(^Q(nO'#DuO%rQ.jO'#D}O%rQ.jO'#E`O%rQ.jO'#EcO%rQ.jO'#EeO(cQ)OO'#EjO)TQ)OO'#ElO%rQ.jO'#EnO)bQ)OO'#EqO%rQ.jO'#EsO)|Q)OO'#EuO*XQ)OO'#ExO*aQ)OO'#FOO*uQ)OO'#FbOOQ&Z'#GW'#GWOOQ&Y'#Fe'#FeO+PQ(nO'#FeQ`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]#_Q%d#hQ&]$hQ&f$uQ&q%XQ'k&^Q'l&_S'm&`&bQ(k'sQ(}(eR)Q(jR&h$wR#ft",nodeNames:"⚠ InterpolationEnd InterpolationContinue Unit VariableName InterpolationStart LineComment Comment IndentedMixin IndentedInclude StyleSheet RuleSet UniversalSelector TagSelector TagName NestingSelector SuffixedSelector Suffix Interpolation SassVariableName ValueName ) ( ParenthesizedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp LogicOp UnaryExpression LogicOp NamespacedValue . CallExpression Callee ArgList : ... , CallLiteral CallTag ParenthesizedContent ] [ LineNames LineName ClassSelector ClassName PseudoClassSelector :: PseudoClassName PseudoClassName ArgList PseudoClassName ArgList IdSelector # IdName AttributeSelector AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp PlaceholderSelector ClassName Block { Declaration PropertyName Map Important Global Default ; } ImportStatement AtKeyword import Layer layer LayerName KeywordQuery FeatureQuery FeatureName BinaryQuery ComparisonQuery CompareOp UnaryQuery LogicOp ParenthesizedQuery SelectorQuery selector IncludeStatement include Keyword MixinStatement mixin UseStatement use Keyword Star Keyword ExtendStatement extend RootStatement at-root ForwardStatement forward Keyword MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports IfStatement ControlKeyword ControlKeyword Keyword ForStatement ControlKeyword Keyword Keyword Keyword EachStatement ControlKeyword Keyword WhileStatement ControlKeyword OutputStatement ControlKeyword AtRule Styles",maxTerm:196,context:sO,nodeProps:[["openedBy",1,"InterpolationStart",5,"InterpolationEnd",21,"(",43,"[",78,"{"],["isolate",-3,6,7,26,""],["closedBy",22,")",44,"]",70,"}"]],propSources:[XO],skippedNodes:[0,6,7,146],repeatNodeCount:21,tokenData:"!$Q~RyOq#rqr$jrs0jst2^tu8{uv;hvw;{wx<^xy={yz>^z{>c{|>||}Co}!ODQ!O!PDo!P!QFY!Q![Fk![!]Gf!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!#VS!pROy$Rz;'S$R;'S;=`$d<%lO$R]!#hU!dPOy$Rz!_$R!_!`;T!`;'S$R;'S;=`$d<%lO$RW!#}P;=`<%l#r",tokenizers:[iO,dO,lO,SO,oO,nO,rO,RO,0,1,2,3,4],topRules:{StyleSheet:[0,10],Styles:[1,145]},dialects:{indented:0},specialized:[{term:172,get:O=>PO[O]||-1},{term:171,get:O=>mO[O]||-1},{term:80,get:O=>fO[O]||-1},{term:173,get:O=>yO[O]||-1}],tokenPrec:3217}),P=x.define({name:"sass",parser:hO.configure({props:[k.add({Block:V,Comment(O,$){return{from:O.from+2,to:$.sliceDoc(O.to-2,O.to)=="*/"?O.to-2:O.to}}}),U.add({Declaration:E()})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*\}$/,wordChars:"$-"}}),wO=P.configure({dialect:"indented",props:[U.add({"Block RuleSet":O=>O.baseIndent+O.unit}),k.add({Block:O=>({from:O.from,to:O.to})})]}),YO=N(O=>O.name=="VariableName"||O.name=="SassVariableName");function pO(O){return new g(O!=null&&O.indented?wO:P,P.data.of({autocomplete:YO}))}export{pO as sass,YO as sassCompletionSource,P as sassLanguage};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{O as De,
|
|
1
|
+
import{O as De,aV as Me,a5 as ne,r as a,k0 as He,k1 as Q,k2 as W,k3 as U,gu as ie,k4 as Ce,dR as J,k5 as ee,aO as dt,Y as ut,a7 as oe,k6 as ft,k7 as ht,k8 as pt,k9 as mt,aZ as Te,ka as xt,j as e,x as Fe,U as gt,C as Ue,as as yt,eB as be,kb as vt,G as Oe,kc as Ct,kd as bt,ke as kt,kf as Z,kg as ve,bO as de,bP as ue,bQ as fe,bR as he,bS as pe,bT as me,bU as xe,bW as ge,B as Y,b9 as jt,eQ as Ae,kh as wt,ki as Et,a6 as ce,kj as qe,ff as Rt,kk as Nt,kl as St,km as Dt,kn as Tt,aQ as ke,ko as Qe,a8 as Be,gs as Pe,a4 as Ft,h0 as Ot,ei as Le,kp as Pt,gH as _t,kq as Mt,d2 as At,d3 as Lt,d5 as zt,d6 as $t,d7 as It,e_ as Kt,I as Ht,d$ as Ut}from"./index-BR1m9FON.js";import{t as ae,g as qt,C as Qt,n as Ge,r as Ye,a as Bt,p as Gt,F as Yt,w as Wt,c as We,b as Vt}from"./room-files-source-BkiK4-ZI.js";import{N as ls,R as cs}from"./room-files-source-BkiK4-ZI.js";import{d as Xt}from"./query-keys-DeYqUDia.js";import{r as Zt,c as Jt}from"./composer-insert-BpyATrmR.js";import{u as en}from"./index-Cgjq7a-8.js";import{r as Ve,h as Xe,F as tn}from"./file-drag-GDx2qhdk.js";import{R as Ze}from"./rotate-cw-BbHkWN-J.js";import{L as nn}from"./link-2-Dzy5BUL3.js";import{F as Je}from"./file-CQGljfDT.js";import{G as et}from"./git-branch-CsLE6G0Y.js";import{M as sn}from"./more-details-DV7LmY0E.js";import"./markdown-content-DhAtZOfj.js";import"./file-exclamation-point-B0a55VME.js";/**
|
|
2
2
|
* @license lucide-react v1.48.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -13,5 +13,5 @@ import{O as De,aW as Me,a5 as ne,r as a,jZ as He,j_ as Q,j$ as W,k0 as U,gn as i
|
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the ISC license.
|
|
15
15
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/const at={name:"upload",size:24,node:[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]};at.node;const rn=De(at);function le(t,n,r){return["file-explorer","tree",t.scopeKey,n,t.filtersHidden?r:null]}function we(t,n,r,m){return{queryKey:le(t,n,r),queryFn:()=>t.list(n,{showHidden:r}),staleTime:Me.FILE_TREE_STALE_TIME_MS,gcTime:Me.FILE_TREE_GC_TIME_MS,refetchOnWindowFocus:!0,placeholderData:f=>f??m.getQueryData(le(t,n,!r))}}const on=[".git",".dork",".claude",".agents","node_modules"];function ln(t){return t.startsWith(".")||on.includes(t)}const Se=["ROOM.md","README.md"];function Ne(t){return Se.some(n=>n.toLowerCase()===t.toLowerCase())}function rt(t){return t.filter(n=>!ln(n.name))}function cn(t){if(t.reduce((f,g)=>g.type==="file"&&Ne(g.name)?f+1:f,0)===0)return t;const r=[],m=[];for(const f of t)f.type==="file"&&Ne(f.name)?r.push(f):m.push(f);return r.sort((f,g)=>Se.findIndex(s=>s.toLowerCase()===f.name.toLowerCase())-Se.findIndex(s=>s.toLowerCase()===g.name.toLowerCase())),[...r,...m]}const dn=/ copy(?: \d+)?$/;function _e({name:t,isDir:n,taken:r}){const m=new Set(r);if(!m.has(t))return t;const f=n?-1:t.lastIndexOf("."),g=f>0,s=g?t.slice(f):"",p=(g?t.slice(0,f):t).replace(dn,"");for(let o=1;;o+=1){const i=o===1?`${p} copy${s}`:`${p} copy ${o}${s}`;if(!m.has(i))return i}}function ze(t,n,r){return{name:n,path:t,type:r,size:0,mtime:Date.now(),isSymlink:!1}}function un(t){const n=ne(),{source:r,showHidden:m,queryClient:f,inFlightRef:g}=t,s=r.cwd??"",[p,o]=a.useState(null),i=a.useCallback(async u=>{g.current+=1;try{return await u()}finally{g.current-=1}},[g]),d=a.useMemo(()=>{const u=x=>le(r,x,m);return{getChildren:x=>{var w;return((w=f.getQueryData(u(x)))==null?void 0:w.entries)??[]},isLoaded:x=>f.getQueryData(u(x))!==void 0,takenNames:async x=>(await n.readFileTree(s,{path:x===Q?void 0:x,showHidden:!0})).entries.map(k=>k.name),snapshot:x=>f.getQueryData(u(x)),setChildren:(x,w)=>{f.setQueryData(u(x),k=>({entries:He(w((k==null?void 0:k.entries)??[]))}))},restore:(x,w)=>{f.setQueryData(u(x),w)},invalidate:x=>{f.invalidateQueries({queryKey:u(x),exact:!0}),f.invalidateQueries({queryKey:Xt.index(s)})}}},[f,n,s,r,m]),S=a.useCallback((u,x,w)=>i(async()=>{const k=ee(u,x),D=!d.getChildren(u).some(L=>L.path===k),H=d.snapshot(u);D&&d.setChildren(u,L=>[...L,ze(k,x,w)]);try{return await n.createEntry(s,k,w),!0}catch(L){return D&&d.restore(u,H),ae(L,`Couldn’t create ${w==="dir"?"folder":"file"}`),!1}finally{d.invalidate(u)}}),[n,s,d,i]),F=a.useCallback((u,x)=>i(async()=>{if(x===u.name||x.length===0)return!0;const w=W(u.path),k=ee(w,x),D=d.getChildren(w).some(A=>A.path===k),H=d.snapshot(w),L={...u,name:x,path:k};D||d.setChildren(w,A=>A.map(K=>K.path===u.path?L:K));try{return await n.renameEntry(s,u.path,k),U.getState().remapExpandedPaths(u.path,k),!0}catch(A){return D||d.restore(w,H),ae(A,"Couldn’t rename"),!1}finally{d.invalidate(w)}}),[n,s,d,i]),E=a.useCallback(u=>i(async()=>{const x=W(u.path),w=d.snapshot(x);d.setChildren(x,k=>k.filter(D=>D.path!==u.path));try{await n.deleteEntry(s,u.path,{recursive:!0}),U.getState().dropExpandedPaths(u.path)}catch(k){d.restore(x,w),ae(k,"Couldn’t delete")}finally{d.invalidate(x)}}),[n,s,d,i]),M=a.useCallback(u=>i(async()=>{const x=W(u.path);if(u.type==="file"){const w=d.snapshot(x);d.setChildren(x,k=>k.filter(D=>D.path!==u.path));try{await n.deleteEntry(s,u.path),U.getState().dropExpandedPaths(u.path)}catch(k){d.restore(x,w),ae(k,"Couldn’t delete")}finally{d.invalidate(x)}return}try{await n.deleteEntry(s,u.path),d.setChildren(x,w=>w.filter(k=>k.path!==u.path)),U.getState().dropExpandedPaths(u.path),d.invalidate(x)}catch(w){if(qt(w)==="DIR_NOT_EMPTY"){o(u);return}ae(w,"Couldn’t delete")}}),[n,s,d,i]),b=a.useCallback(async()=>{const u=p;o(null),u&&await E(u)},[p,E]),$=a.useCallback(()=>o(null),[]),I=a.useCallback((u,x)=>i(async()=>{const w=W(u),k=ie(u),D=ee(x,k);if(x===w||D===u||Ce(x,u))return;const H=d.getChildren(w).find(C=>C.path===u);if(!H)return;const L=d.isLoaded(x),A=L&&d.getChildren(x).some(C=>C.path===D),K={...H,name:k,path:D},G=d.snapshot(w),O=L?d.snapshot(x):void 0;d.setChildren(w,C=>C.filter(z=>z.path!==u)),L&&!A&&d.setChildren(x,C=>[...C,K]);try{await n.renameEntry(s,u,D),U.getState().remapExpandedPaths(u,D)}catch(C){d.restore(w,G),L&&!A&&d.restore(x,O),ae(C,"Couldn’t move")}finally{d.invalidate(w),L&&d.invalidate(x)}}),[n,s,d,i]),v=a.useCallback((u,x)=>i(async()=>{if(u.isDir&&Ce(x,u.path)){J.error(Qt);return}let w;try{w=await d.takenNames(x)}catch(A){ae(A,"Couldn’t copy");return}const k=_e({name:ie(u.path),isDir:u.isDir,taken:w}),D=ee(x,k),H=d.isLoaded(x),L=H?d.snapshot(x):void 0;if(H){const A=d.getChildren(W(u.path)).find(G=>G.path===u.path),K=A?{...A,name:k,path:D}:ze(D,k,u.isDir?"dir":"file");d.setChildren(x,G=>[...G,K])}try{await n.copyEntry(s,u.path,D)}catch(A){H&&d.restore(x,L),ae(A,"Couldn’t copy")}finally{d.invalidate(x)}}),[n,s,d,i]);return{createEntry:S,renameEntry:F,removeEntry:M,moveEntry:I,copyEntry:v,pendingRecursiveDelete:p,confirmRecursiveDelete:b,cancelRecursiveDelete:$}}function fn(t){return t!=null&&t.startsWith("darwin")?"Reveal in Finder":t!=null&&t.startsWith("win32")?"Reveal in File Explorer":"Show in file manager"}function hn(t,n){const r=t.includes("\\")&&!t.includes("/"),m=t.replace(/[\\/]+$/,""),f=r?n.split("/").join("\\"):n;return`${m}${r?"\\":"/"}${f}`}function pn(t){const n=ne(),{data:r}=dt(),m=a.useMemo(()=>n.supportsReveal?fn(r==null?void 0:r.platform):null,[n.supportsReveal,r==null?void 0:r.platform]),f=a.useCallback(async i=>{if(t)try{await n.revealEntry(t,i.path)}catch(d){ae(d,"Couldn’t open the file manager")}},[n,t]),{copy:g}=ut(),s=a.useCallback(async(i,d)=>{const S=d==="absolute"&&t?hn(t,i.path):i.path;await g(S)||J.error("Couldn’t copy to the clipboard")},[t,g]),p=a.useCallback(i=>{Zt(Jt(i.path))||J.error("Open a chat to add this file")},[]),o=a.useCallback(i=>{U.getState().setClipboard({path:i.path,isDir:i.type==="dir"});try{navigator.clipboard.writeText(i.path).catch(()=>{})}catch{}},[]);return{revealLabel:m,reveal:f,copyPath:s,addToChat:p,copyToClipboard:o}}const mn=1e3;function xn(t){const{source:n,showHidden:r,queryClient:m,inFlightRef:f}=t,g=n.changes,[s,p]=a.useState(null),[o,i]=a.useState(null),[d,S]=a.useState(null),[F,E]=a.useState(0),M=a.useCallback(async c=>{f.current+=1,E(h=>h+1);try{return await c()}finally{f.current-=1,E(h=>h-1)}},[f]),b=a.useMemo(()=>{const c=h=>le(n,h,r);return{listing:h=>m.getQueryData(c(h)),isLoaded:h=>m.getQueryData(c(h))!==void 0,entries:h=>{var T;return((T=m.getQueryData(c(h)))==null?void 0:T.entries)??[]},setEntries:(h,T)=>m.setQueryData(c(h),y=>({...y,entries:He(T((y==null?void 0:y.entries)??[]))})),restore:(h,T)=>m.setQueryData(c(h),T),fetch:h=>n.list(h,{showHidden:!0}),refreshAll:()=>{m.invalidateQueries({queryKey:["file-explorer","tree",n.scopeKey]}),m.invalidateQueries({queryKey:["file-explorer","preview",n.scopeKey]})}}},[m,n,r]),$=a.useCallback(async c=>{const h=b.listing(c);return(h==null?void 0:h.commit)!==void 0?h.commit:(await b.fetch(c)).commit??null},[b]),I=a.useCallback((c,h,T,y)=>{switch(c.status){case"changed":return!0;case"conflict":return S({kind:h,path:c.path,lastCommit:c.lastCommit,retry:()=>T(c.commit)}),!1;case"exists":return J.error(y===void 0?c.reason:Ge(y)),!1;case"refused":return J.error(c.reason),!1}},[]),v=a.useCallback((c,h)=>{J.error(Ye(c)??h)},[]),u=a.useCallback((c,h,T)=>{const y=P=>M(async()=>{if(g===void 0)return!1;const R=W(c.path),N=W(h),j=ie(h),q=b.isLoaded(N),te=q&&b.entries(N).some(X=>X.path===h),V=b.listing(R),ye=N===R?void 0:b.listing(N),l={...c,name:j,path:h};te||(N===R?b.setEntries(R,X=>X.map(se=>se.path===c.path?l:se)):(b.setEntries(R,X=>X.filter(se=>se.path!==c.path)),q&&b.setEntries(N,X=>[...X,l])));const _=()=>{b.restore(R,V),N!==R&&q&&b.restore(N,ye)};try{const X=P??await $(R);if(X===null)return _(),J.error("This room has no files to change yet."),!1;const se=await g.move({from:c.path,to:h,baseCommit:X}),Ee=I(se,T,async re=>{await y(re)},j);return Ee?U.getState().remapExpandedPaths(c.path,h):_(),Ee}catch(X){return _(),v(X,T==="rename"?"Couldn’t rename":"Couldn’t move"),!1}finally{b.refreshAll()}});return y(null)},[g,b,M,$,I,v]),x=a.useCallback(async(c,h)=>h===c.name||h.length===0?!0:u(c,ee(W(c.path),h),"rename"),[u]),w=a.useCallback(async(c,h)=>{const T=W(c),y=ee(h,ie(c));if(h===T||y===c||Ce(h,c))return;const P=b.entries(T).find(R=>R.path===c);P&&await u(P,y,"move")},[b,u]),k=a.useCallback(async c=>{let h=0;const T=[c];for(;T.length>0;){const y=T.shift(),P=await b.fetch(y);for(const R of P.entries)if(R.type==="dir"?T.push(R.path):h+=1,h>=mn)return{count:h,moreThan:!0}}return{count:h,moreThan:!1}},[b]),D=a.useCallback(c=>{if(c.type!=="dir"){p({entry:c,fileCount:1,moreThan:!1});return}p({entry:c,fileCount:null,moreThan:!1}),k(c.path).then(({count:h,moreThan:T})=>p(y=>(y==null?void 0:y.entry.path)===c.path?{entry:c,fileCount:h,moreThan:T}:y),()=>{})},[k]),H=a.useCallback(c=>{const h=T=>M(async()=>{if(g===void 0)return;const y=W(c.path),P=b.listing(y);b.setEntries(y,R=>R.filter(N=>N.path!==c.path));try{const R=T??await $(y);if(R===null){b.restore(y,P);return}const N=await g.remove({path:c.path,baseCommit:R});I(N,"delete",q=>h(q))?U.getState().dropExpandedPaths(c.path):b.restore(y,P)}catch(R){b.restore(y,P),v(R,"Couldn’t delete")}finally{b.refreshAll()}});return h(null)},[g,b,M,$,I,v]),L=a.useCallback(async()=>{const c=s;p(null),c&&await H(c.entry)},[s,H]),A=a.useCallback(()=>p(null),[]),K=a.useCallback((c,h,T,y)=>{const P=R=>M(async()=>{if(g===void 0)return;const N=b.isLoaded(c),j=N?b.listing(c):void 0;if(N){const q=new Set(b.entries(c).map(V=>V.name)),te=h.filter(V=>!q.has(V.name)).map(V=>({name:V.name,path:ee(c,V.name),type:"file",size:V.size}));te.length>0&&b.setEntries(c,V=>[...V,...te])}try{const q=await g.upload({dir:c,baseCommit:R,replace:T,files:h});!I(q,"upload",V=>P(V))&&N&&b.restore(c,j)}catch(q){N&&b.restore(c,j),v(q,"Couldn’t upload")}finally{b.refreshAll()}});return P(y)},[g,b,M,I,v]),G=a.useCallback(async(c,h)=>{if(g===void 0||h.length===0)return;if(h.length>g.maxUploadFiles){J.error(`Nothing was uploaded. One upload takes up to ${g.maxUploadFiles} files.`);return}let T;try{T=await b.fetch(c)}catch(j){v(j,"Couldn’t upload");return}const y=T.entries.map(j=>j.name),P=new Set(y),R=h.map(j=>j.name).filter(j=>P.has(j)),N=T.commit??null;if(R.length===0){await K(c,h,[],N);return}i({dir:c,files:h,names:R,taken:y,baseCommit:N})},[g,b,v,K]),O=a.useCallback(async c=>{const h=o;if(i(null),h===null)return;if(c==="replace"){await K(h.dir,h.files,h.names,h.baseCommit);return}const T=new Set([...h.taken,...h.files.map(R=>R.name)]),y=new Set(h.names),P=h.files.map(R=>{if(!y.has(R.name))return R;const N=_e({name:R.name,isDir:!1,taken:T});return T.add(N),new File([R],N,{type:R.type,lastModified:R.lastModified})});await K(h.dir,P,[],h.baseCommit)},[o,K]),C=a.useCallback(()=>i(null),[]),z=a.useCallback(()=>S(null),[]),B=a.useMemo(()=>o===null?null:{dir:o.dir,names:o.names},[o]);return{renameEntry:x,moveEntry:w,requestDelete:D,pendingDelete:s,confirmDelete:L,cancelDelete:A,upload:G,pendingClash:B,resolveClash:O,cancelClash:C,conflict:d,dismissConflict:z,busy:F>0}}const $e={scopeKey:"",cwd:null,writable:!1,provenance:!1,filtersHidden:!0,preview:"canvas",editable:!1,list:()=>Promise.resolve({entries:[]})};function gn(t){var c,h,T;const n=ne(),r=oe(),{setTheme:m}=ft(),f=U(y=>y.showHidden),g=U(y=>y.expanded),s=U(y=>y.loadExplorerForCwd),p=U(y=>y.pruneMissing),o=(t==null?void 0:t.scopeKey)??null,i=(t==null?void 0:t.cwd)??null;a.useEffect(()=>{s(o)},[o,s]);const d=a.useMemo(()=>[Q,...ht(g)],[g]),S=pt({queries:t?d.map(y=>we(t,y,f,r)):[]}),F=(t==null?void 0:t.filtersHidden)??!0,E=a.useMemo(()=>{const y={};return d.forEach((P,R)=>{var q;const N=S[R];let j=((q=N==null?void 0:N.data)==null?void 0:q.entries)??[];!f&&!F&&(j=rt(j)),P===Q&&(j=cn(j)),y[P]={entries:j,loading:(N==null?void 0:N.isLoading)??!1,error:(N==null?void 0:N.isError)??!1}}),y},[d,S,f,F]),M=a.useRef(0),b=a.useRef({});a.useEffect(()=>{M.current>0||d.forEach((y,P)=>{var N,j,q;const R=(j=(N=S[P])==null?void 0:N.data)==null?void 0:j.entries;!R||(q=S[P])!=null&&q.isError||b.current[y]!==R&&(b.current[y]=R,p(y,R.map(te=>te.name)))})},[d,S,p]);const $=a.useMemo(()=>mt(g,E),[g,E]),I=!!t&&!!((c=E[Q])!=null&&c.loading),v=!!t&&!!((h=E[Q])!=null&&h.error),u=(T=S[0])==null?void 0:T.error,x=v&&u?Bt(u):void 0,w=(x==null?void 0:x.message)??null,k=(x==null?void 0:x.command)??null,D=a.useMemo(()=>{var P;const y=new Set;for(const R of d)R!==Q&&((P=E[R])!=null&&P.error)&&y.add(R);return y},[d,E]),H=a.useCallback(y=>{if(y.type!=="dir")return;const P=U.getState();P.setDirExpanded(y.path,!P.expanded[y.path])},[]),L=a.useCallback(y=>{if(y===Q)return;const P=U.getState();P.expanded[y]||P.setDirExpanded(y,!0)},[]),A=(t==null?void 0:t.preview)==="canvas",K=a.useCallback(y=>{if(y.type!=="file"||!A)return;const P={getStore:Te.getState,setTheme:m,supportsTerminal:n.supportsTerminal};xt(P,{action:"open_file",sourcePath:y.path},"user")},[A,m,n]),G=a.useCallback(()=>{o!==null&&r.invalidateQueries({queryKey:["file-explorer","tree",o]})},[r,o]),O=a.useCallback(y=>{t!==null&&r.invalidateQueries({queryKey:le(t,y,f),exact:!0})},[r,t,f]);a.useEffect(()=>{if(t!=null&&t.events)return t.events(G)},[t,G]);const C=un({source:t??$e,showHidden:f,queryClient:r,inFlightRef:M}),z=xn({source:t??$e,showHidden:f,queryClient:r,inFlightRef:M}),B=pn(i);return{rows:$,rootLoading:I,rootError:v,rootErrorMessage:w,rootErrorCommand:k,errorPaths:D,toggleExpand:H,ensureExpanded:L,openFile:K,reload:G,retryDir:O,changes:t!=null&&t.changes?z:null,...C,...B}}function yn(t){const{transport:n,cwd:r}=t;return{scopeKey:r,cwd:r,writable:!0,provenance:!1,filtersHidden:!0,preview:"canvas",editable:!1,list(m,f){return n.readFileTree(r,{path:m===""?void 0:m,showHidden:f.showHidden})}}}function je(t){return Array.from(t).includes("Files")}function ot(t){const n=Array.from(t.items??[]);if(!(n.length>0&&n.every(g=>"webkitGetAsEntry"in g)))return{files:Array.from(t.files??[]),folders:0};const m=[];let f=0;for(const g of n){if(g.kind!=="file")continue;const s=g.webkitGetAsEntry();if(s!=null&&s.isDirectory){f+=1;continue}const p=g.getAsFile();p&&m.push(p)}return{files:m,folders:f}}const vn=12;function Cn({row:t,selected:n,renaming:r,error:m,onSelect:f,onActivate:g,onRetry:s,onSubmitRename:p,onCancelRename:o,onNewFile:i,onNewFolder:d,onStartRename:S,onDelete:F,onMove:E,onCopyInto:M,onCopy:b,onPaste:$,onDuplicate:I,canPasteInto:v,revealLabel:u,onReveal:x,onAddToChat:w,onCopyPath:k,readOnly:D=!1,provenance:H=!1,copyable:L=!0,onDisk:A=!0,onUpload:K,onPickUpload:G}){const{entry:O,depth:C,expanded:z,loading:B}=t,c=O.type==="dir",h=c?O.path:W(O.path),[T,y]=a.useState(!1),P=!c&&C===0&&Ne(O.name),R=Gt(O.lastCommit),N=e.jsxs("div",{role:"treeitem","aria-label":O.name,"aria-expanded":c?z:void 0,"aria-selected":n,tabIndex:-1,onKeyDown:j=>{(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),f(O),g(O))},draggable:!r&&!D,onDragStart:j=>{D||(j.dataTransfer.setData("text/plain",O.path),j.dataTransfer.setData(tn,O.path),j.dataTransfer.effectAllowed="copyMove")},onDragOver:j=>{if(j.stopPropagation(),!D&&K&&je(j.dataTransfer.types)){j.preventDefault(),j.dataTransfer.dropEffect="copy",y(!0);return}D||!c||!Xe(j.dataTransfer.types)||(j.preventDefault(),j.dataTransfer.dropEffect=j.altKey&&L?"copy":"move",y(!0))},onDragLeave:()=>y(!1),onDrop:j=>{if(j.stopPropagation(),D)return;if(y(!1),K&&je(j.dataTransfer.types)){j.preventDefault();const{files:te}=ot(j.dataTransfer);K(h,te);return}if(!c)return;const q=Ve(j.dataTransfer);q!==null&&(j.preventDefault(),j.altKey&&L?M(q,O.path):E(q,O.path))},onClick:()=>{f(O),g(O)},className:Oe("flex w-full cursor-pointer items-center gap-1 py-1 pr-2 text-sm transition-colors",n?"bg-accent text-foreground":"hover:bg-accent/50",T&&"ring-ring/60 bg-accent ring-1"),style:{paddingLeft:C*vn+8},children:[e.jsx("span",{className:"flex size-4 flex-shrink-0 items-center justify-center",children:c&&(B?e.jsx(Fe,{size:"xs",className:"text-muted-foreground"}):m?e.jsx("button",{type:"button","aria-label":"Retry loading",title:"Couldn’t load. Retry",onClick:j=>{j.stopPropagation(),s()},className:"flex items-center justify-center",children:e.jsx(Ze,{className:"text-destructive size-3.5"})}):z?e.jsx(gt,{className:"text-muted-foreground size-3.5"}):e.jsx(Ue,{className:"text-muted-foreground size-3.5"}))}),c?z?e.jsx(yt,{className:"size-(--size-icon-sm) flex-shrink-0 text-sky-500"}):e.jsx(be,{className:"size-(--size-icon-sm) flex-shrink-0 text-sky-500"}):O.isSymlink===!0?e.jsx(nn,{className:"text-muted-foreground size-(--size-icon-sm) flex-shrink-0"}):e.jsx(Je,{className:"text-muted-foreground size-(--size-icon-sm) flex-shrink-0"}),r?e.jsx(bn,{initialName:O.name,onSubmit:j=>p(O,j),onCancel:o}):e.jsx("span",{className:"min-w-0 flex-1 truncate",children:O.name}),P&&!r&&e.jsx(vt,{"aria-label":"Pinned to the top",className:"text-muted-foreground/60 size-3 flex-shrink-0"}),H&&!r&&e.jsx("span",{className:"text-muted-foreground/70 text-2xs max-w-[45%] flex-shrink-0 truncate tabular-nums",title:R.title??void 0,children:R.label})]});return D?N:e.jsxs(Ct,{children:[e.jsx(bt,{asChild:!0,children:N}),e.jsxs(kt,{className:"w-52",children:[e.jsx(Z,{movesFocus:!0,onClick:()=>i(h),children:"New file"}),e.jsx(Z,{movesFocus:!0,onClick:()=>d(h),children:"New folder"}),G&&e.jsx(Z,{onClick:()=>G(h),children:"Upload files…"}),A&&e.jsxs(e.Fragment,{children:[e.jsx(ve,{}),u&&e.jsx(Z,{onClick:()=>x(O),children:u}),e.jsx(Z,{movesFocus:!0,onClick:()=>w(O),children:"Add to chat"})]}),L&&e.jsxs(e.Fragment,{children:[e.jsx(ve,{}),e.jsx(Z,{onClick:()=>b(O),children:"Copy"}),e.jsx(Z,{disabled:!v(h),onClick:()=>$(h),children:"Paste"}),e.jsx(Z,{onClick:()=>I(O),children:"Duplicate"})]}),e.jsx(ve,{}),A?e.jsxs(e.Fragment,{children:[e.jsx(Z,{onClick:()=>k(O,"absolute"),children:"Copy path"}),e.jsx(Z,{onClick:()=>k(O,"relative"),children:"Copy relative path"})]}):e.jsx(Z,{onClick:()=>k(O,"relative"),children:"Copy path"}),e.jsx(ve,{}),e.jsx(Z,{movesFocus:!0,onClick:()=>S(O),children:"Rename"}),e.jsx(Z,{variant:"destructive",onClick:()=>F(O),children:"Delete"})]})]})}function bn({initialName:t,onSubmit:n,onCancel:r}){const m=a.useRef(null),[f,g]=a.useState(t);a.useEffect(()=>{const p=m.current;if(!p)return;p.focus();const o=t.lastIndexOf(".");p.setSelectionRange(0,o>0?o:t.length)},[t]);const s=()=>{const p=f.trim();p&&p!==t?n(p):r()};return e.jsx("input",{ref:m,type:"text",value:f,"aria-label":"New name",onChange:p=>g(p.target.value),onClick:p=>p.stopPropagation(),onBlur:s,onKeyDown:p=>{p.stopPropagation(),p.key==="Enter"?s():p.key==="Escape"&&r()},className:"border-border bg-background focus-ring min-w-0 flex-1 rounded border px-1 py-0 text-sm outline-none"})}const kn=100,jn=28,wn=250;function En(t){const{rows:n,selectedPath:r,renamingPath:m,errorPaths:f,onSelectPath:g,onRetryDir:s}=t,p=a.useRef(null),o=U(C=>C.setScrollTop),i=U(C=>C.scopeKey),d=a.useCallback(C=>C.type==="dir"?t.onToggle(C):t.onOpen(C),[t]),S=Sn(t,d),F=n.length>kn,E=en({count:n.length,getScrollElement:()=>p.current,estimateSize:()=>jn,overscan:12,enabled:F}),M=a.useRef({scope:void 0,done:!1}),b=a.useRef(null);a.useLayoutEffect(()=>{const C=M.current;if(C.scope!==i&&(C.scope=i,C.done=!1),C.done||n.length===0)return;const z=p.current;if(!z)return;const B=U.getState().scrollTop;if(B<=0){C.done=!0;return}F?E.scrollToOffset(B):z.scrollTop=B,b.current=z.scrollTop,z.scrollTop>=B&&(C.done=!0)},[n.length,i,F,E]);const $=a.useRef(null),I=a.useRef(null),v=a.useCallback(()=>{const C=p.current;C&&C.scrollTop!==b.current&&(M.current.done=!0,$.current=C.scrollTop,I.current&&clearTimeout(I.current),I.current=setTimeout(()=>{I.current=null,$.current!==null&&o($.current)},wn))},[o]);a.useEffect(()=>()=>{I.current&&clearTimeout(I.current),$.current!==null&&o($.current)},[o]);const u=a.useRef(void 0);a.useEffect(()=>{var c,h;const C=u.current;if(u.current=r,C===void 0||r===C||r===null)return;const z=n.findIndex(T=>T.entry.path===r);if(z<0)return;const B=p.current;B&&(F?E.scrollToIndex(z,{align:"auto"}):(h=(c=B.querySelector(`[data-row-index="${z}"]`))==null?void 0:c.scrollIntoView)==null||h.call(c,{block:"nearest"}),b.current=B.scrollTop)},[r,n,F,E]);const[x,w]=a.useState(!1),{onCopyInto:k,onMove:D}=t,H=t.readOnly===!0,L=t.copyable!==!1,A=a.useCallback(C=>{H||!Xe(C.dataTransfer.types)||(C.preventDefault(),C.dataTransfer.dropEffect=C.altKey&&L?"copy":"move",w(!0))},[H,L]),K=a.useCallback((C,z)=>{const B=n.find(c=>c.entry.path===C);B&&k({path:C,isDir:B.entry.type==="dir"},z)},[n,k]),G=a.useCallback(C=>{if(w(!1),H)return;const z=Ve(C.dataTransfer);z!==null&&(C.preventDefault(),C.altKey&&L?K(z,Q):D(z,Q))},[K,D,H,L]),O=C=>e.jsx(Cn,{row:C,selected:C.entry.path===r,renaming:C.entry.path===m,error:C.entry.type==="dir"&&C.expanded&&f.has(C.entry.path),onSelect:z=>g(z.path),onActivate:d,onRetry:()=>s(C.entry.path),onSubmitRename:t.onSubmitRename,onCancelRename:t.onCancelRename,onStartRename:t.onStartRename,onNewFile:t.onNewFile,onNewFolder:t.onNewFolder,onDelete:t.onDelete,onMove:t.onMove,onCopyInto:K,onCopy:t.onCopy,onPaste:t.onPaste,onDuplicate:t.onDuplicate,canPasteInto:t.canPasteInto,revealLabel:t.revealLabel,onReveal:t.onReveal,onAddToChat:t.onAddToChat,onCopyPath:t.onCopyPath,readOnly:t.readOnly,provenance:t.provenance,copyable:t.copyable,onDisk:t.onDisk,onUpload:t.onUpload,onPickUpload:t.onPickUpload});return e.jsx("div",{ref:p,role:"tree","aria-label":"File explorer",tabIndex:0,onKeyDown:S,onScroll:v,onDragOver:A,onDragLeave:()=>w(!1),onDrop:G,className:Oe("focus-visible:ring-ring h-full overflow-auto outline-none focus-visible:ring-1 focus-visible:ring-inset",x&&"ring-ring/60 bg-accent/30 ring-1 ring-inset"),children:F?e.jsx("div",{style:{height:E.getTotalSize()},className:"relative w-full",children:E.getVirtualItems().map(C=>e.jsx("div",{"data-row-index":C.index,className:"absolute top-0 left-0 w-full",style:{transform:`translateY(${C.start}px)`},children:O(n[C.index])},n[C.index].entry.path))}):n.map((C,z)=>e.jsx("div",{"data-row-index":z,children:O(C)},C.entry.path))})}function Rn(t){return t?t.type==="dir"?t.path:W(t.path):Q}function Sn(t,n){const{rows:r,selectedPath:m,renamingPath:f,onSelectPath:g}=t;return a.useCallback(s=>{var i,d,S,F;if(f!==null)return;const p=r.findIndex(E=>E.entry.path===m),o=p>=0?r[p]:void 0;if(s.metaKey||s.ctrlKey){if(t.readOnly===!0||t.copyable===!1)return;const E=s.key.toLowerCase();if(E==="c"&&o){s.preventDefault(),t.onCopy(o.entry);return}if(E==="v"){s.preventDefault(),t.onPaste(Rn(o==null?void 0:o.entry));return}return}switch(s.key){case"ArrowDown":s.preventDefault(),g(((i=r[Math.min(p+1,r.length-1)])==null?void 0:i.entry.path)??((d=r[0])==null?void 0:d.entry.path));break;case"ArrowUp":s.preventDefault(),g(((S=r[Math.max(p-1,0)])==null?void 0:S.entry.path)??((F=r[0])==null?void 0:F.entry.path));break;case"ArrowRight":(o==null?void 0:o.entry.type)==="dir"&&!o.expanded&&(s.preventDefault(),t.onToggle(o.entry));break;case"ArrowLeft":if(!o)break;if(s.preventDefault(),o.entry.type==="dir"&&o.expanded)t.onToggle(o.entry);else{const E=W(o.entry.path);E&&g(E)}break;case"Enter":o&&(s.preventDefault(),n(o.entry));break;case"F2":o&&t.readOnly!==!0&&(s.preventDefault(),t.onStartRename(o.entry));break;case"Delete":case"Backspace":o&&t.readOnly!==!0&&(s.preventDefault(),t.onDelete(o.entry));break}},[r,m,f,g,t,n])}const Nn={rename:"Rename it anyway",move:"Move it anyway",delete:"Delete it anyway",upload:"Upload mine over it"},Dn={rename:"nothing was renamed",move:"nothing was moved",delete:"nothing was deleted",upload:"nothing was uploaded"};function Tn(t){const{entry:n,fileCount:r,moreThan:m}=t;if(n.type!=="dir")return`“${n.name}” leaves the room’s files.`;const f=r===null?"everything in it":m?`the more than ${r.toLocaleString()} files in it`:r===1?"the 1 file in it":`the ${r.toLocaleString()} files in it`;return`“${n.name}” and ${f} leave the room’s files.`}const Fn="The room’s history keeps a copy. An agent can restore it.";function On({changes:t,onOpenTheirs:n,onReturnFocus:r}){var E;const m=M=>{M.preventDefault();const b=document.activeElement;b!==null&&b!==document.body||r()},{pendingDelete:f,pendingClash:g,conflict:s}=t,[p,o]=a.useState(f);f!==null&&f!==p&&o(f);const[i,d]=a.useState(g);g!==null&&g!==i&&d(g);const S=i===null?"":i.dir===Q?"The top folder":`“${i.dir}”`,F=(i==null?void 0:i.names.length)===1;return e.jsxs(e.Fragment,{children:[e.jsx(de,{open:f!==null,onOpenChange:M=>!M&&t.cancelDelete(),children:e.jsxs(ue,{onCloseAutoFocus:m,children:[e.jsxs(fe,{children:[e.jsx(he,{children:p===null?"":`Delete “${p.entry.name}”?`}),e.jsx(pe,{asChild:!0,children:e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{children:p===null?"":Tn(p)}),e.jsx("p",{children:Fn})]})})]}),e.jsxs(me,{children:[e.jsx(xe,{onClick:t.cancelDelete,children:"Cancel"}),e.jsx(ge,{onClick:()=>void t.confirmDelete(),variant:"destructive",children:(p==null?void 0:p.entry.type)==="dir"?"Delete folder":"Delete file"})]})]})}),e.jsx(de,{open:g!==null,onOpenChange:M=>!M&&t.cancelClash(),children:e.jsxs(ue,{onCloseAutoFocus:m,children:[e.jsxs(fe,{children:[e.jsx(he,{children:F?`Replace “${i==null?void 0:i.names[0]}”?`:`Replace ${(i==null?void 0:i.names.length)??0} files?`}),e.jsx(pe,{children:F?`${S} already has a file with this name. Replace it, or keep both.`:`${S} already has files named ${(i==null?void 0:i.names.join(", "))??""}. Replace them, or keep both.`})]}),e.jsxs(me,{children:[e.jsx(xe,{onClick:t.cancelClash,children:"Cancel"}),e.jsx(Y,{variant:"outline",onClick:()=>void t.resolveClash("keep-both"),children:"Keep both"}),e.jsx(ge,{onClick:()=>void t.resolveClash("replace"),children:"Replace"})]})]})}),e.jsx(de,{open:s!==null,onOpenChange:M=>!M&&t.dismissConflict(),children:e.jsxs(ue,{onCloseAutoFocus:m,children:[e.jsxs(fe,{children:[e.jsx(he,{children:"Somebody changed this first"}),e.jsx(pe,{children:s===null?"":`${((E=s.lastCommit)==null?void 0:E.author)??"Somebody"} changed “${s.path}” after you opened it, so ${Dn[s.kind]}.`})]}),(s==null?void 0:s.lastCommit)&&e.jsxs("p",{className:"text-muted-foreground text-xs",children:[s.lastCommit.subject," · ",jt(s.lastCommit.at)]}),e.jsxs(me,{children:[e.jsx(xe,{onClick:t.dismissConflict,children:"Cancel"}),e.jsx(Y,{variant:"outline",onClick:()=>{s!==null&&(t.dismissConflict(),n(s.path))},children:"Open their version"}),e.jsx(ge,{onClick:()=>{s!==null&&(t.dismissConflict(),s.retry())},variant:"destructive",children:s===null?"":Nn[s.kind]})]})]})})]})}function Ie(t,n){return n.name===t?Ge(t):`“${n.name}” is already there. Some computers ignore capital letters in names. Pick another name.`}const Pn="Folders can’t be uploaded. Drop the files inside instead.";function _n({source:t,className:n,onCommands:r}={}){var ye;const m=ne(),f=Te(l=>l.selectedCwd),g=a.useMemo(()=>f?yn({transport:m,cwd:f}):null,[m,f]),s=t===void 0?g:t,p=s!==null&&!s.writable,o=gn(s),i=o.changes,d=oe(),S=U(l=>l.showHidden),{rows:F,rootLoading:E,rootError:M,rootErrorMessage:b,rootErrorCommand:$,errorPaths:I}=o,v=U(l=>l.setCommands),u=U(l=>l.selectedPath),x=U(l=>l.setSelectedPath),w=U(l=>l.clipboard),[k,D]=a.useState(null),[H,L]=a.useState(null),[A,K]=a.useState(null),G=a.useCallback(l=>K(l===null?null:{path:l,isNew:!1}),[]),O=a.useRef(null),C=a.useRef(Q),[z,B]=a.useState(!1),c=a.useCallback((l,_)=>{if(i!==null){if(_.length===0){J.error(Pn);return}o.ensureExpanded(l),i.upload(l,_)}},[i,o]),h=a.useRef(null),T=a.useCallback(()=>{var l,_;(_=(l=h.current)==null?void 0:l.querySelector('[role="tree"]'))==null||_.focus()},[]),y=a.useCallback(l=>{var _;C.current=l,(_=O.current)==null||_.click()},[]),P=a.useCallback(l=>w!==null&&!(w.isDir&&Ce(l,w.path)),[w]),R=a.useCallback((l,_)=>{o.ensureExpanded(l),Ae.flushSync(()=>{L(null),D({parent:l,type:_})})},[o]),N=a.useCallback(l=>{Ae.flushSync(()=>L(l.path))},[]),j=a.useRef({startCreate:R,reload:o.reload,pickUpload:y});a.useEffect(()=>{j.current={startCreate:R,reload:o.reload,pickUpload:y}});const q=i!==null;a.useEffect(()=>{if(p||r===void 0&&q)return;const l=r??v;return l({newFile:()=>j.current.startCreate(Q,"file"),newFolder:()=>j.current.startCreate(Q,"dir"),refresh:()=>j.current.reload(),...q&&{upload:()=>j.current.pickUpload(Q)}}),()=>l(null)},[v,r,p,q]);const te=a.useCallback(async l=>{var se;if(!k||s===null)return;const _=k;if(D(null),i!==null){const re=(((se=d.getQueryData(le(s,_.parent,S)))==null?void 0:se.entries)??[]).find(ct=>ct.name.toLowerCase()===l.toLowerCase());if(_.type==="dir"){if(re!==void 0&&!(re.type==="dir"&&re.name===l)){J.error(Ie(l,re));return}D({parent:ee(_.parent,l),type:"file",firstInFolder:l});return}if(re!==void 0){J.error(Ie(l,re));return}const lt=ee(_.parent,l);K({path:lt,isNew:!0});return}await o.createEntry(_.parent,l,_.type)&&x(ee(_.parent,l))},[k,s,i,d,S,o,x]),V=a.useCallback(async(l,_)=>{L(null),(i?await i.renameEntry(l,_):await o.renameEntry(l,_))&&x(ee(W(l.path),_))},[i,o,x]);return s===null?t!==void 0?null:e.jsx("div",{className:"text-muted-foreground flex h-full items-center justify-center p-6 text-center text-sm",children:"Pick a folder to see its files."}):e.jsxs("div",{ref:h,className:Oe("flex h-full flex-col",z&&"ring-ring/60 bg-accent/30 ring-1 ring-inset",n),onDragOver:l=>{i===null||!je(l.dataTransfer.types)||(l.preventDefault(),l.dataTransfer.dropEffect="copy",B(!0))},onDragLeave:l=>{l.currentTarget.contains(l.relatedTarget)||B(!1)},onDrop:l=>{B(!1),!(i===null||!je(l.dataTransfer.types))&&(l.preventDefault(),c(Q,ot(l.dataTransfer).files))},children:[i!==null&&e.jsx("input",{ref:O,type:"file",multiple:!0,hidden:!0,"aria-hidden":!0,tabIndex:-1,"data-testid":"room-files-upload-input",onChange:l=>{const _=Array.from(l.target.files??[]);l.target.value="",c(C.current,_)}}),e.jsxs("div",{className:"min-h-0 flex-1",children:[k&&e.jsx(Mn,{type:k.type,firstInFolder:k.firstInFolder,onSubmit:l=>void te(l),onCancel:()=>D(null)},`${k.parent}:${k.type}:${k.firstInFolder??""}`),E&&F.length===0?e.jsx("div",{className:"flex h-20 items-center justify-center",children:e.jsx(Fe,{size:"md",className:"text-muted-foreground",label:"Loading files"})}):M&&F.length===0?e.jsxs("div",{className:"text-muted-foreground flex min-h-20 flex-col items-center justify-center gap-2 px-4 py-3 text-center text-xs [overflow-wrap:anywhere]",children:[e.jsx("span",{children:b??"Couldn’t load files."}),$!==null&&e.jsx("code",{"aria-label":"Command that removes the settings",className:"bg-muted text-foreground block w-full rounded px-2 py-1.5 text-left font-mono select-all",children:$}),e.jsxs(Y,{variant:"outline",size:"xs",onClick:o.reload,children:[e.jsx(Ze,{}),"Retry"]})]}):F.length===0&&!k?e.jsx("div",{className:"text-muted-foreground/60 flex h-20 items-center justify-center px-4 text-center text-xs",children:i!==null?"No files yet. Drop files here, or use Upload.":"Empty folder"}):e.jsx(En,{rows:F,selectedPath:u,renamingPath:H,errorPaths:I,onSelectPath:x,onToggle:o.toggleExpand,onOpen:l=>{s.preview==="inline"?G(l.path):o.openFile(l)},onRetryDir:o.retryDir,onSubmitRename:(l,_)=>void V(l,_),onCancelRename:()=>L(null),onStartRename:N,onNewFile:l=>R(l,"file"),onNewFolder:l=>R(l,"dir"),onDelete:l=>i?i.requestDelete(l):void o.removeEntry(l),onMove:(l,_)=>void(i?i.moveEntry(l,_):o.moveEntry(l,_)),onCopyInto:(l,_)=>void o.copyEntry(l,_),onCopy:o.copyToClipboard,onPaste:l=>{w&&o.copyEntry(w,l)},onDuplicate:l=>void o.copyEntry({path:l.path,isDir:l.type==="dir"},W(l.path)),canPasteInto:P,readOnly:p,provenance:s.provenance,copyable:i===null,onDisk:s.cwd!==null,onUpload:i?c:void 0,onPickUpload:i?y:void 0,revealLabel:o.revealLabel,onReveal:l=>void o.reveal(l),onAddToChat:o.addToChat,onCopyPath:(l,_)=>void o.copyPath(l,_)})]}),s.preview==="inline"&&e.jsx(Yt,{source:s,path:(A==null?void 0:A.path)??null,isNew:(A==null?void 0:A.isNew)??!1,onCreated:()=>{A!==null&&(K({path:A.path,isNew:!1}),x(A.path))},onClose:()=>K(null)}),i!==null&&e.jsx(On,{changes:i,onOpenTheirs:l=>G(l),onReturnFocus:T}),e.jsx(de,{open:o.pendingRecursiveDelete!==null,onOpenChange:l=>!l&&o.cancelRecursiveDelete(),children:e.jsxs(ue,{children:[e.jsxs(fe,{children:[e.jsxs(he,{children:["Delete “",(ye=o.pendingRecursiveDelete)==null?void 0:ye.name,"”?"]}),e.jsx(pe,{children:"This folder isn’t empty. Everything inside is deleted. This can’t be undone."})]}),e.jsxs(me,{children:[e.jsx(xe,{onClick:o.cancelRecursiveDelete,children:"Cancel"}),e.jsx(ge,{onClick:()=>void o.confirmRecursiveDelete(),variant:"destructive",children:"Delete folder"})]})]})})]})}function Mn({type:t,firstInFolder:n,onSubmit:r,onCancel:m}){const f=a.useRef(null),[g,s]=a.useState("");a.useEffect(()=>{var i;(i=f.current)==null||i.focus()},[]);const p=()=>{const i=g.trim();i?r(i):m()},o=e.jsxs("div",{className:"flex items-center gap-1",children:[t==="dir"?e.jsx(be,{className:"size-(--size-icon-sm) flex-shrink-0 text-sky-500"}):e.jsx(Je,{className:"text-muted-foreground size-(--size-icon-sm) flex-shrink-0"}),e.jsx("input",{ref:f,type:"text",value:g,"aria-label":n!==void 0?`First file in ${n}`:t==="dir"?"New folder name":"New file name",placeholder:t==="dir"?"folder-name":"file-name",onChange:i=>s(i.target.value),onBlur:p,onKeyDown:i=>{i.key==="Enter"?p():i.key==="Escape"&&m()},className:"border-border bg-background focus-ring min-w-0 flex-1 rounded border px-1 py-0 text-sm outline-none"})]});return n===void 0?e.jsx("div",{className:"px-3 py-1",children:o}):e.jsxs("div",{className:"space-y-1 px-3 py-1",children:[e.jsxs("p",{className:"text-muted-foreground flex min-w-0 items-center gap-1 text-xs",children:[e.jsx(be,{className:"size-(--size-icon-xs) flex-shrink-0 text-sky-500"}),e.jsx("span",{className:"truncate",children:n})]}),o,e.jsx("p",{className:"text-muted-foreground text-2xs",children:"Name its first file. The folder appears on save."})]})}function it(){const t=U(m=>m.showHidden),n=U(m=>m.setShowHidden),r=t?"Hide hidden files":"Show hidden files";return e.jsx(Y,{variant:"ghost",size:"icon-xs","aria-label":r,title:r,onClick:()=>n(!t),children:t?e.jsx(wt,{className:"text-muted-foreground"}):e.jsx(Et,{className:"text-muted-foreground"})})}function An({cwd:t}){const n=ne(),{data:r}=ce({queryKey:["file-explorer","workspace",t],queryFn:()=>n.resolveWorkspace(t),staleTime:6e4});return r!=null&&r.branch?e.jsxs("span",{className:"text-muted-foreground bg-muted/50 text-2xs inline-flex min-w-0 items-center gap-1 rounded px-1.5 py-0.5",title:`Workspace ${r.key} on ${r.branch}`,children:[e.jsx(et,{className:"size-3 flex-shrink-0"}),e.jsx("span",{className:"truncate",children:r.branch})]}):null}function ss(){const t=Te(r=>r.selectedCwd),n=U(r=>r.commands);return t?e.jsxs(e.Fragment,{children:[e.jsx(An,{cwd:t}),e.jsx(Y,{variant:"ghost",size:"icon-xs","aria-label":"New file",title:"New file",onClick:()=>n==null?void 0:n.newFile(),children:e.jsx(st,{className:"text-muted-foreground"})}),e.jsx(Y,{variant:"ghost",size:"icon-xs","aria-label":"New folder",title:"New folder",onClick:()=>n==null?void 0:n.newFolder(),children:e.jsx(qe,{className:"text-muted-foreground"})}),e.jsx(it,{}),e.jsx(Y,{variant:"ghost",size:"icon-xs","aria-label":"Refresh",title:"Refresh",onClick:()=>n==null?void 0:n.refresh(),children:e.jsx(Rt,{className:"text-muted-foreground"})})]}):null}function Ln({roomId:t}){const n=ne(),r=oe(),m=ce(Qe(n,t));a.useEffect(()=>Wt(r,t,()=>{r.invalidateQueries({queryKey:ke.repoStatus(t)})}),[r,t]);const f=a.useMemo(()=>{var o;return((o=m.data)==null?void 0:o.kind)==="ok"?St(m.data.status):[]},[m.data]),g=Nt(f),s=Dt(f);if(!s)return null;const p=f.map((o,i)=>`${g[i]}: ${Tt(o)}`);return e.jsxs("span",{"data-slot":"pending-work-badge",title:p.join(`
|
|
17
|
-
`),className:"text-muted-foreground bg-muted/50 text-2xs inline-flex min-w-0 items-center gap-1 rounded px-1.5 py-0.5",children:[e.jsx(et,{className:"size-3 flex-shrink-0"}),e.jsxs("span",{className:"sr-only",children:["Not merged into the room yet. ",p.join(". "),"."]}),e.jsx("span",{"aria-hidden":"true",className:"truncate",children:s})]})}const zn={added:"added",modified:"changed",deleted:"deleted",untracked:"new"},$n=new Map([["OPERATOR_ONLY","Only the owner of this DorkOS can keep or discard these."],["ROOM_FILE_NOT_FOUND","One of those changes is gone, so nothing was discarded. The list is refreshed."],["MERGE_IN_FLIGHT","Something else is writing to these files. Nothing changed. Try again in a moment."],["MAIN_CHECKOUT_DIRTY","These files are on another branch. Switch them back to main yourself."],["ROOM_REPO_GIT_UNAVAILABLE","Room files need git, and git isn’t installed on this computer."],["ROOM_HAS_NO_REPO","This room no longer has its own files."],["ROOM_REPOS_DISABLED","Room files are turned off on this install."]]);function In({roomId:t}){var $,I;const n=ne(),r=oe(),m=ce(Qe(n,t)),[f,g]=a.useState([]),[s,p]=a.useState(!1),[o,i]=a.useState(null),d=Be({mutationFn:v=>n.repairRoomMain(t,v),onSuccess:()=>{g([]),p(!1),i(null),r.invalidateQueries({queryKey:ke.repoStatus(t)})},onError:v=>{p(!1);const u=$n.get(Pe(v)??"");i(u??"Couldn’t update the files. Try again in a moment."),r.invalidateQueries({queryKey:ke.repoStatus(t)})}});if((($=m.data)==null?void 0:$.kind)==="unavailable")return e.jsx("p",{role:"alert","data-slot":"room-main-warning",className:"border-border/60 text-muted-foreground rounded-lg border px-3 py-2.5 text-xs",children:"Couldn’t check this room’s files. Saves may not work. Try again soon."});const S=((I=m.data)==null?void 0:I.kind)==="ok"?m.data.status.main:void 0;if(S===void 0||!S.dirty)return null;const F=S.branch!=="main",E=f.filter(v=>S.strays.some(u=>u.path===v)),M=s&&E.length>0,b=v=>g(u=>u.includes(v)?u.filter(x=>x!==v):[...u,v]);return e.jsxs("div",{"data-slot":"room-main-warning",className:"border-border/60 bg-muted/40 space-y-3 rounded-lg border px-3 py-2.5 text-sm",children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(Ft,{className:"text-muted-foreground mt-0.5 size-(--size-icon-sm) flex-shrink-0"}),e.jsxs("div",{className:"min-w-0 space-y-1",children:[e.jsxs("div",{role:"alert",className:"space-y-1",children:[e.jsx("p",{className:"font-medium",children:"Somebody changed this room’s files outside DorkOS"}),F?e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-muted-foreground text-xs",children:`This room’s files are on ${S.branch??"no branch"}, not main.`}),e.jsx("p",{className:"text-muted-foreground text-xs",children:"Saves and agent merges wait until they’re back on main."})]}):e.jsx("p",{className:"text-muted-foreground text-xs",children:"Saves and agent merges wait until you keep or discard these."})]}),F&&e.jsx(sn,{className:"text-xs",children:e.jsx("p",{children:"DorkOS won’t switch the branch for you. There may be work on it."})})]})]}),!F&&e.jsxs(e.Fragment,{children:[e.jsx("ul",{className:"space-y-1.5",children:S.strays.map(v=>e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(Ot,{id:`stray-${t}-${v.path}`,checked:E.includes(v.path),onCheckedChange:()=>b(v.path),disabled:d.isPending}),e.jsx("label",{htmlFor:`stray-${t}-${v.path}`,className:"min-w-0 flex-1 cursor-pointer truncate font-mono text-xs",title:v.path,children:v.path}),e.jsx("span",{className:"text-muted-foreground flex-shrink-0 text-xs",children:zn[v.kind]})]},v.path))}),S.strayCount>S.strays.length&&e.jsxs("p",{className:"text-muted-foreground text-xs",children:["…and ",S.strayCount-S.strays.length," more not shown. “Keep them all” keeps these too."]}),M?e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-xs",children:E.length===1?"Discard this change? It can’t be undone.":`Discard these ${E.length} changes? They can’t be undone.`}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx(Y,{type:"button",variant:"ghost",size:"sm",disabled:d.isPending,onClick:()=>p(!1),children:"Cancel"}),e.jsx(Y,{type:"button",variant:"destructive",size:"sm",disabled:d.isPending,onClick:()=>d.mutate({action:"discard",paths:[...E]}),children:E.length===1?"Discard change":`Discard ${E.length} changes`})]})]}):e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx(Y,{type:"button",variant:"outline",size:"sm",disabled:d.isPending,onClick:()=>d.mutate({action:"commit"}),children:"Keep them all"}),e.jsx(Y,{type:"button",variant:"ghost",size:"sm",disabled:d.isPending||E.length===0,onClick:()=>p(!0),children:E.length===0?"Discard…":`Discard ${E.length}`})]})]}),o!==null&&e.jsx("p",{role:"alert",className:"text-destructive text-xs",children:o})]})}const Re="pointer-coarse:size-11",Kn=new Map([["ROOM_REPOS_DISABLED","Room files are turned off for this DorkOS."],["ROOM_REPO_GIT_UNAVAILABLE","Git isn’t available on this computer."],["MERGE_IN_FLIGHT","This room’s files are busy. Try again."],["ROOM_ARCHIVED","Bring this room back before setting up files."]]);function Hn(t){const n=Kn.get(Pe(t)??"");return n||(t instanceof TypeError||t instanceof Error&&/fetch|offline|network/i.test(t.message)?"You’re offline. Try again when this computer reconnects.":"Couldn’t set up files. Try again.")}function as({roomId:t,canChange:n,canSetUp:r=!1}){const m=ne(),f=oe(),g=U(v=>v.showHidden),[s,p]=a.useState(null),[o,i]=a.useState(!1),d=a.useMemo(()=>We({transport:m,queryClient:f,roomId:t,canChange:n}),[m,f,t,n]),S=we(d,Q,g,f),F=ce(S),E=Be({mutationFn:async()=>{try{return await m.enableRoomRepo(t)}catch(v){if(Pe(v)==="ROOM_REPO_EXISTS")return null;throw v}},onSuccess:async()=>{i(!1),await Promise.all([f.invalidateQueries({queryKey:S.queryKey}),f.invalidateQueries({queryKey:ke.repoStatus(t)})])}}),M=F.isSuccess&&F.data.absent===!0,b=F.isSuccess&&!M||F.isError,[$,I]=a.useState(null);if(b&&$!==t&&I(t),!b&&$!==t&&!M)return null;if(M){if(!r)return null;const v=E.isError?Hn(E.error):null;return e.jsxs("section",{"aria-label":"Room files",className:"space-y-2",children:[e.jsxs("header",{className:"flex items-center gap-2",children:[e.jsx(Le,{className:"text-muted-foreground size-(--size-icon-sm) shrink-0"}),e.jsx("h3",{className:"text-muted-foreground text-xs font-medium tracking-wide uppercase",children:"Files"})]}),e.jsxs("div",{className:"border-border/60 flex items-center justify-between gap-3 rounded-lg border px-3 py-2.5",children:[e.jsx("p",{className:"text-muted-foreground text-sm",children:"This room has no shared files."}),e.jsx(Y,{type:"button",size:"sm",variant:"outline",className:"shrink-0 pointer-coarse:min-h-11",onClick:()=>{E.reset(),i(!0)},children:"Set up files…"})]}),v!==null&&e.jsx("p",{role:"alert",className:"text-status-danger text-xs",children:v}),e.jsx(de,{open:o,onOpenChange:i,children:e.jsxs(ue,{className:"max-sm:top-auto max-sm:bottom-0 max-sm:translate-y-0 max-sm:rounded-b-none",children:[e.jsxs(fe,{children:[e.jsx(he,{children:"Set up files for this room?"}),e.jsx(pe,{children:"This creates shared files and ROOM.md for everyone here. It can’t be undone."})]}),v!==null&&e.jsx("p",{role:"alert",className:"text-status-danger text-sm",children:v}),e.jsxs(me,{children:[e.jsx(xe,{className:"pointer-coarse:min-h-11",children:"Cancel"}),e.jsxs(ge,{className:"pointer-coarse:min-h-11",disabled:E.isPending,onClick:u=>{u.preventDefault(),E.mutate()},children:[E.isPending&&e.jsx(Pt,{className:"animate-spin"}),E.isPending?"Setting up…":"Set up files"]})]})]})})]})}return e.jsxs("section",{"aria-label":"Room files",className:"space-y-2",children:[e.jsxs("header",{className:"flex items-center gap-2",children:[e.jsx(Le,{className:"text-muted-foreground size-(--size-icon-sm) flex-shrink-0"}),e.jsx("h3",{className:"text-muted-foreground text-xs font-medium tracking-wide uppercase",children:"Files"}),e.jsx("div",{className:"min-w-0 flex-1",children:e.jsx(Ln,{roomId:t})}),n&&e.jsxs(e.Fragment,{children:[e.jsx(Y,{variant:"ghost",size:"icon-xs",className:Re,"aria-label":"New file",title:"New file",disabled:s===null,onClick:()=>s==null?void 0:s.newFile(),children:e.jsx(st,{className:"text-muted-foreground"})}),e.jsx(Y,{variant:"ghost",size:"icon-xs",className:Re,"aria-label":"New folder",title:"New folder",disabled:s===null,onClick:()=>s==null?void 0:s.newFolder(),children:e.jsx(qe,{className:"text-muted-foreground"})}),e.jsx(Y,{variant:"ghost",size:"icon-xs",className:Re,"aria-label":"Upload files",title:"Upload files",disabled:(s==null?void 0:s.upload)===void 0,onClick:()=>{var v;return(v=s==null?void 0:s.upload)==null?void 0:v.call(s)},children:e.jsx(rn,{className:"text-muted-foreground"})})]}),e.jsx(it,{})]}),e.jsx(In,{roomId:t}),e.jsx("div",{"data-slot":"room-files-body",className:"border-border/60 h-72 overflow-hidden rounded-lg border",children:e.jsx(_n,{source:d,onCommands:p})})]})}function rs({roomId:t,attachment:n}){var i;const r=ne(),m=oe(),f=a.useMemo(()=>We({transport:r,queryClient:m,roomId:t}),[r,m,t]),g=ce(we(f,Q,!1,m)),[s,p]=a.useState(!1),o=_t(t);return!g.isSuccess||g.data.absent===!0||((i=o.data)==null?void 0:i.archived)!==!1?null:e.jsxs(e.Fragment,{children:[e.jsx(Y,{type:"button",variant:"ghost",size:"icon-xs","aria-label":`Save ${n.name} to the room’s files`,title:"Save to room files",className:"text-muted-foreground hover:text-foreground mt-0.5 pointer-coarse:size-11",onClick:()=>p(!0),children:e.jsx(Mt,{})}),s&&e.jsx(Un,{roomId:t,source:f,attachment:n,onClose:()=>p(!1)})]})}function Un({roomId:t,source:n,attachment:r,onClose:m}){const f=ne(),g=oe(),[s,p]=a.useState(Q),[o,i]=a.useState(r.name),[d,S]=a.useState(null),[F,E]=a.useState(!1),M=a.useId(),b=ce(we(n,s,!1,g)),$=a.useMemo(()=>{var v;return rt(((v=b.data)==null?void 0:v.entries)??[]).filter(u=>u.type==="dir")},[b.data]),I=async()=>{var u,x;const v=o.trim();if(v!==""){E(!0),S(null);try{await f.saveAttachmentToRoomFiles(t,{attachmentId:r.id,dir:s,name:v,baseCommit:((u=b.data)==null?void 0:u.commit)??null}),g.invalidateQueries({queryKey:["file-explorer","tree",n.scopeKey]}),J.success(`Saved ${v} to the room’s files`),m()}catch(w){let k;try{k=Vt(w,g,t)}catch{k={status:"refused",reason:Ye(w)??"Couldn’t save. Try again in a moment."}}if(k.status==="exists"){const D=(((x=b.data)==null?void 0:x.entries)??[]).map(H=>H.name);S({reason:`This folder already has a file called “${v}”. Pick another name.`,suggestion:_e({name:v,isDir:!1,taken:[...D,v]})})}else k.status==="conflict"?(S({reason:"This folder changed while you chose, so nothing was saved. Try again."}),b.refetch()):k.status==="refused"&&S({reason:k.reason})}finally{E(!1)}}};return e.jsx(At,{open:!0,onOpenChange:v=>!v&&m(),children:e.jsxs(Lt,{className:"sm:max-w-md",children:[e.jsxs(zt,{children:[e.jsx($t,{children:"Save to room files"}),e.jsx(It,{children:"Everyone in the room, and their agents, can find it there."})]}),e.jsxs(Kt,{className:"space-y-3",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-muted-foreground text-xs font-medium",children:"Folder"}),e.jsxs("div",{role:"group","aria-label":"Folders",className:"border-border/60 max-h-56 overflow-auto rounded-md border",children:[e.jsx("p",{className:"bg-muted/40 truncate px-3 py-1.5 font-mono text-xs",children:s===Q?"Top folder":`${s}/`}),s!==Q&&e.jsx(Ke,{label:"Up one folder",icon:e.jsx(an,{className:"text-muted-foreground size-(--size-icon-sm)"}),onClick:()=>p(W(s))}),b.isPending?e.jsx("div",{className:"flex h-12 items-center justify-center",children:e.jsx(Fe,{size:"sm",className:"text-muted-foreground",label:"Loading folders"})}):$.length===0?e.jsx("p",{className:"text-muted-foreground px-3 py-2 text-xs",children:"No folders in here."}):$.map(v=>e.jsx(Ke,{label:v.name,icon:e.jsx(be,{className:"size-(--size-icon-sm) text-sky-500"}),chevron:!0,onClick:()=>p(ee(s,ie(v.path)))},v.path))]})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{htmlFor:M,className:"text-muted-foreground text-xs font-medium",children:"Name"}),e.jsx(Ht,{id:M,value:o,onChange:v=>{i(v.target.value),S(null)},spellCheck:!1,autoComplete:"off"})]}),d!==null&&e.jsxs("div",{role:"alert",className:"text-destructive space-y-1 text-xs",children:[e.jsx("p",{children:d.reason}),d.suggestion!==void 0&&e.jsxs(Y,{type:"button",variant:"outline",size:"xs",onClick:()=>{i(d.suggestion),S(null)},children:["Use “",d.suggestion,"”"]})]})]}),e.jsxs(Ut,{className:"gap-2",children:[e.jsx(Y,{type:"button",variant:"ghost",onClick:m,children:"Cancel"}),e.jsx(Y,{type:"button",disabled:F||o.trim()===""||b.isPending,onClick:()=>void I(),children:F?"Saving…":s===Q?"Save to the top folder":`Save to ${ie(s)}`})]})]})})}function Ke({label:t,icon:n,chevron:r=!1,onClick:m}){return e.jsxs("button",{type:"button",onClick:m,className:"hover:bg-accent/50 focus-visible:bg-accent flex w-full items-center gap-2 px-3 py-1.5 text-left text-sm outline-none",children:[n,e.jsx("span",{className:"min-w-0 flex-1 truncate",children:t}),r&&e.jsx(Ue,{className:"text-muted-foreground size-3.5"})]})}export{_n as FileExplorer,ss as FileExplorerActions,Yt as FilePreviewDialog,on as HIDDEN_ENTRY_NAMES,it as HiddenEntriesToggle,ls as NO_PROVENANCE,Se as PINNED_ENTRY_NAMES,cs as ROOM_FILES_REFRESH_INTERVAL_MS,as as RoomFilesSection,rs as SaveToRoomFilesButton,We as createRoomFilesSource,yn as createSessionCwdSource,le as explorerDirQueryKey,we as explorerDirQueryOptions,ln as isHiddenEntryName,Ne as isPinnedEntryName,cn as pinnedFirst,Gt as provenanceLine,Qe as roomRepoStatusQueryOptions,rt as withoutHidden};
|
|
16
|
+
*/const at={name:"upload",size:24,node:[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]};at.node;const rn=De(at);function le(t,n,r){return["file-explorer","tree",t.scopeKey,n,t.filtersHidden?r:null]}function we(t,n,r,m){return{queryKey:le(t,n,r),queryFn:()=>t.list(n,{showHidden:r}),staleTime:Me.FILE_TREE_STALE_TIME_MS,gcTime:Me.FILE_TREE_GC_TIME_MS,refetchOnWindowFocus:!0,placeholderData:f=>f??m.getQueryData(le(t,n,!r))}}const on=[".git",".dork",".claude",".agents","node_modules"];function ln(t){return t.startsWith(".")||on.includes(t)}const Ne=["ROOM.md","README.md"];function Se(t){return Ne.some(n=>n.toLowerCase()===t.toLowerCase())}function rt(t){return t.filter(n=>!ln(n.name))}function cn(t){if(t.reduce((f,g)=>g.type==="file"&&Se(g.name)?f+1:f,0)===0)return t;const r=[],m=[];for(const f of t)f.type==="file"&&Se(f.name)?r.push(f):m.push(f);return r.sort((f,g)=>Ne.findIndex(s=>s.toLowerCase()===f.name.toLowerCase())-Ne.findIndex(s=>s.toLowerCase()===g.name.toLowerCase())),[...r,...m]}const dn=/ copy(?: \d+)?$/;function _e({name:t,isDir:n,taken:r}){const m=new Set(r);if(!m.has(t))return t;const f=n?-1:t.lastIndexOf("."),g=f>0,s=g?t.slice(f):"",p=(g?t.slice(0,f):t).replace(dn,"");for(let o=1;;o+=1){const i=o===1?`${p} copy${s}`:`${p} copy ${o}${s}`;if(!m.has(i))return i}}function ze(t,n,r){return{name:n,path:t,type:r,size:0,mtime:Date.now(),isSymlink:!1}}function un(t){const n=ne(),{source:r,showHidden:m,queryClient:f,inFlightRef:g}=t,s=r.cwd??"",[p,o]=a.useState(null),i=a.useCallback(async u=>{g.current+=1;try{return await u()}finally{g.current-=1}},[g]),d=a.useMemo(()=>{const u=x=>le(r,x,m);return{getChildren:x=>{var w;return((w=f.getQueryData(u(x)))==null?void 0:w.entries)??[]},isLoaded:x=>f.getQueryData(u(x))!==void 0,takenNames:async x=>(await n.readFileTree(s,{path:x===Q?void 0:x,showHidden:!0})).entries.map(k=>k.name),snapshot:x=>f.getQueryData(u(x)),setChildren:(x,w)=>{f.setQueryData(u(x),k=>({entries:He(w((k==null?void 0:k.entries)??[]))}))},restore:(x,w)=>{f.setQueryData(u(x),w)},invalidate:x=>{f.invalidateQueries({queryKey:u(x),exact:!0}),f.invalidateQueries({queryKey:Xt.index(s)})}}},[f,n,s,r,m]),N=a.useCallback((u,x,w)=>i(async()=>{const k=ee(u,x),D=!d.getChildren(u).some(L=>L.path===k),H=d.snapshot(u);D&&d.setChildren(u,L=>[...L,ze(k,x,w)]);try{return await n.createEntry(s,k,w),!0}catch(L){return D&&d.restore(u,H),ae(L,`Couldn’t create ${w==="dir"?"folder":"file"}`),!1}finally{d.invalidate(u)}}),[n,s,d,i]),F=a.useCallback((u,x)=>i(async()=>{if(x===u.name||x.length===0)return!0;const w=W(u.path),k=ee(w,x),D=d.getChildren(w).some(A=>A.path===k),H=d.snapshot(w),L={...u,name:x,path:k};D||d.setChildren(w,A=>A.map(K=>K.path===u.path?L:K));try{return await n.renameEntry(s,u.path,k),U.getState().remapExpandedPaths(u.path,k),!0}catch(A){return D||d.restore(w,H),ae(A,"Couldn’t rename"),!1}finally{d.invalidate(w)}}),[n,s,d,i]),E=a.useCallback(u=>i(async()=>{const x=W(u.path),w=d.snapshot(x);d.setChildren(x,k=>k.filter(D=>D.path!==u.path));try{await n.deleteEntry(s,u.path,{recursive:!0}),U.getState().dropExpandedPaths(u.path)}catch(k){d.restore(x,w),ae(k,"Couldn’t delete")}finally{d.invalidate(x)}}),[n,s,d,i]),M=a.useCallback(u=>i(async()=>{const x=W(u.path);if(u.type==="file"){const w=d.snapshot(x);d.setChildren(x,k=>k.filter(D=>D.path!==u.path));try{await n.deleteEntry(s,u.path),U.getState().dropExpandedPaths(u.path)}catch(k){d.restore(x,w),ae(k,"Couldn’t delete")}finally{d.invalidate(x)}return}try{await n.deleteEntry(s,u.path),d.setChildren(x,w=>w.filter(k=>k.path!==u.path)),U.getState().dropExpandedPaths(u.path),d.invalidate(x)}catch(w){if(qt(w)==="DIR_NOT_EMPTY"){o(u);return}ae(w,"Couldn’t delete")}}),[n,s,d,i]),b=a.useCallback(async()=>{const u=p;o(null),u&&await E(u)},[p,E]),$=a.useCallback(()=>o(null),[]),I=a.useCallback((u,x)=>i(async()=>{const w=W(u),k=ie(u),D=ee(x,k);if(x===w||D===u||Ce(x,u))return;const H=d.getChildren(w).find(C=>C.path===u);if(!H)return;const L=d.isLoaded(x),A=L&&d.getChildren(x).some(C=>C.path===D),K={...H,name:k,path:D},G=d.snapshot(w),O=L?d.snapshot(x):void 0;d.setChildren(w,C=>C.filter(z=>z.path!==u)),L&&!A&&d.setChildren(x,C=>[...C,K]);try{await n.renameEntry(s,u,D),U.getState().remapExpandedPaths(u,D)}catch(C){d.restore(w,G),L&&!A&&d.restore(x,O),ae(C,"Couldn’t move")}finally{d.invalidate(w),L&&d.invalidate(x)}}),[n,s,d,i]),v=a.useCallback((u,x)=>i(async()=>{if(u.isDir&&Ce(x,u.path)){J.error(Qt);return}let w;try{w=await d.takenNames(x)}catch(A){ae(A,"Couldn’t copy");return}const k=_e({name:ie(u.path),isDir:u.isDir,taken:w}),D=ee(x,k),H=d.isLoaded(x),L=H?d.snapshot(x):void 0;if(H){const A=d.getChildren(W(u.path)).find(G=>G.path===u.path),K=A?{...A,name:k,path:D}:ze(D,k,u.isDir?"dir":"file");d.setChildren(x,G=>[...G,K])}try{await n.copyEntry(s,u.path,D)}catch(A){H&&d.restore(x,L),ae(A,"Couldn’t copy")}finally{d.invalidate(x)}}),[n,s,d,i]);return{createEntry:N,renameEntry:F,removeEntry:M,moveEntry:I,copyEntry:v,pendingRecursiveDelete:p,confirmRecursiveDelete:b,cancelRecursiveDelete:$}}function fn(t){return t!=null&&t.startsWith("darwin")?"Reveal in Finder":t!=null&&t.startsWith("win32")?"Reveal in File Explorer":"Show in file manager"}function hn(t,n){const r=t.includes("\\")&&!t.includes("/"),m=t.replace(/[\\/]+$/,""),f=r?n.split("/").join("\\"):n;return`${m}${r?"\\":"/"}${f}`}function pn(t){const n=ne(),{data:r}=dt(),m=a.useMemo(()=>n.supportsReveal?fn(r==null?void 0:r.platform):null,[n.supportsReveal,r==null?void 0:r.platform]),f=a.useCallback(async i=>{if(t)try{await n.revealEntry(t,i.path)}catch(d){ae(d,"Couldn’t open the file manager")}},[n,t]),{copy:g}=ut(),s=a.useCallback(async(i,d)=>{const N=d==="absolute"&&t?hn(t,i.path):i.path;await g(N)||J.error("Couldn’t copy to the clipboard")},[t,g]),p=a.useCallback(i=>{Zt(Jt(i.path))||J.error("Open a chat to add this file")},[]),o=a.useCallback(i=>{U.getState().setClipboard({path:i.path,isDir:i.type==="dir"});try{navigator.clipboard.writeText(i.path).catch(()=>{})}catch{}},[]);return{revealLabel:m,reveal:f,copyPath:s,addToChat:p,copyToClipboard:o}}const mn=1e3;function xn(t){const{source:n,showHidden:r,queryClient:m,inFlightRef:f}=t,g=n.changes,[s,p]=a.useState(null),[o,i]=a.useState(null),[d,N]=a.useState(null),[F,E]=a.useState(0),M=a.useCallback(async c=>{f.current+=1,E(h=>h+1);try{return await c()}finally{f.current-=1,E(h=>h-1)}},[f]),b=a.useMemo(()=>{const c=h=>le(n,h,r);return{listing:h=>m.getQueryData(c(h)),isLoaded:h=>m.getQueryData(c(h))!==void 0,entries:h=>{var T;return((T=m.getQueryData(c(h)))==null?void 0:T.entries)??[]},setEntries:(h,T)=>m.setQueryData(c(h),y=>({...y,entries:He(T((y==null?void 0:y.entries)??[]))})),restore:(h,T)=>m.setQueryData(c(h),T),fetch:h=>n.list(h,{showHidden:!0}),refreshAll:()=>{m.invalidateQueries({queryKey:["file-explorer","tree",n.scopeKey]}),m.invalidateQueries({queryKey:["file-explorer","preview",n.scopeKey]})}}},[m,n,r]),$=a.useCallback(async c=>{const h=b.listing(c);return(h==null?void 0:h.commit)!==void 0?h.commit:(await b.fetch(c)).commit??null},[b]),I=a.useCallback((c,h,T,y)=>{switch(c.status){case"changed":return!0;case"conflict":return N({kind:h,path:c.path,lastCommit:c.lastCommit,retry:()=>T(c.commit)}),!1;case"exists":return J.error(y===void 0?c.reason:Ge(y)),!1;case"refused":return J.error(c.reason),!1}},[]),v=a.useCallback((c,h)=>{J.error(Ye(c)??h)},[]),u=a.useCallback((c,h,T)=>{const y=P=>M(async()=>{if(g===void 0)return!1;const R=W(c.path),S=W(h),j=ie(h),q=b.isLoaded(S),te=q&&b.entries(S).some(X=>X.path===h),V=b.listing(R),ye=S===R?void 0:b.listing(S),l={...c,name:j,path:h};te||(S===R?b.setEntries(R,X=>X.map(se=>se.path===c.path?l:se)):(b.setEntries(R,X=>X.filter(se=>se.path!==c.path)),q&&b.setEntries(S,X=>[...X,l])));const _=()=>{b.restore(R,V),S!==R&&q&&b.restore(S,ye)};try{const X=P??await $(R);if(X===null)return _(),J.error("This room has no files to change yet."),!1;const se=await g.move({from:c.path,to:h,baseCommit:X}),Ee=I(se,T,async re=>{await y(re)},j);return Ee?U.getState().remapExpandedPaths(c.path,h):_(),Ee}catch(X){return _(),v(X,T==="rename"?"Couldn’t rename":"Couldn’t move"),!1}finally{b.refreshAll()}});return y(null)},[g,b,M,$,I,v]),x=a.useCallback(async(c,h)=>h===c.name||h.length===0?!0:u(c,ee(W(c.path),h),"rename"),[u]),w=a.useCallback(async(c,h)=>{const T=W(c),y=ee(h,ie(c));if(h===T||y===c||Ce(h,c))return;const P=b.entries(T).find(R=>R.path===c);P&&await u(P,y,"move")},[b,u]),k=a.useCallback(async c=>{let h=0;const T=[c];for(;T.length>0;){const y=T.shift(),P=await b.fetch(y);for(const R of P.entries)if(R.type==="dir"?T.push(R.path):h+=1,h>=mn)return{count:h,moreThan:!0}}return{count:h,moreThan:!1}},[b]),D=a.useCallback(c=>{if(c.type!=="dir"){p({entry:c,fileCount:1,moreThan:!1});return}p({entry:c,fileCount:null,moreThan:!1}),k(c.path).then(({count:h,moreThan:T})=>p(y=>(y==null?void 0:y.entry.path)===c.path?{entry:c,fileCount:h,moreThan:T}:y),()=>{})},[k]),H=a.useCallback(c=>{const h=T=>M(async()=>{if(g===void 0)return;const y=W(c.path),P=b.listing(y);b.setEntries(y,R=>R.filter(S=>S.path!==c.path));try{const R=T??await $(y);if(R===null){b.restore(y,P);return}const S=await g.remove({path:c.path,baseCommit:R});I(S,"delete",q=>h(q))?U.getState().dropExpandedPaths(c.path):b.restore(y,P)}catch(R){b.restore(y,P),v(R,"Couldn’t delete")}finally{b.refreshAll()}});return h(null)},[g,b,M,$,I,v]),L=a.useCallback(async()=>{const c=s;p(null),c&&await H(c.entry)},[s,H]),A=a.useCallback(()=>p(null),[]),K=a.useCallback((c,h,T,y)=>{const P=R=>M(async()=>{if(g===void 0)return;const S=b.isLoaded(c),j=S?b.listing(c):void 0;if(S){const q=new Set(b.entries(c).map(V=>V.name)),te=h.filter(V=>!q.has(V.name)).map(V=>({name:V.name,path:ee(c,V.name),type:"file",size:V.size}));te.length>0&&b.setEntries(c,V=>[...V,...te])}try{const q=await g.upload({dir:c,baseCommit:R,replace:T,files:h});!I(q,"upload",V=>P(V))&&S&&b.restore(c,j)}catch(q){S&&b.restore(c,j),v(q,"Couldn’t upload")}finally{b.refreshAll()}});return P(y)},[g,b,M,I,v]),G=a.useCallback(async(c,h)=>{if(g===void 0||h.length===0)return;if(h.length>g.maxUploadFiles){J.error(`Nothing was uploaded. One upload takes up to ${g.maxUploadFiles} files.`);return}let T;try{T=await b.fetch(c)}catch(j){v(j,"Couldn’t upload");return}const y=T.entries.map(j=>j.name),P=new Set(y),R=h.map(j=>j.name).filter(j=>P.has(j)),S=T.commit??null;if(R.length===0){await K(c,h,[],S);return}i({dir:c,files:h,names:R,taken:y,baseCommit:S})},[g,b,v,K]),O=a.useCallback(async c=>{const h=o;if(i(null),h===null)return;if(c==="replace"){await K(h.dir,h.files,h.names,h.baseCommit);return}const T=new Set([...h.taken,...h.files.map(R=>R.name)]),y=new Set(h.names),P=h.files.map(R=>{if(!y.has(R.name))return R;const S=_e({name:R.name,isDir:!1,taken:T});return T.add(S),new File([R],S,{type:R.type,lastModified:R.lastModified})});await K(h.dir,P,[],h.baseCommit)},[o,K]),C=a.useCallback(()=>i(null),[]),z=a.useCallback(()=>N(null),[]),B=a.useMemo(()=>o===null?null:{dir:o.dir,names:o.names},[o]);return{renameEntry:x,moveEntry:w,requestDelete:D,pendingDelete:s,confirmDelete:L,cancelDelete:A,upload:G,pendingClash:B,resolveClash:O,cancelClash:C,conflict:d,dismissConflict:z,busy:F>0}}const $e={scopeKey:"",cwd:null,writable:!1,provenance:!1,filtersHidden:!0,preview:"canvas",editable:!1,list:()=>Promise.resolve({entries:[]})};function gn(t){var c,h,T;const n=ne(),r=oe(),{setTheme:m}=ft(),f=U(y=>y.showHidden),g=U(y=>y.expanded),s=U(y=>y.loadExplorerForCwd),p=U(y=>y.pruneMissing),o=(t==null?void 0:t.scopeKey)??null,i=(t==null?void 0:t.cwd)??null;a.useEffect(()=>{s(o)},[o,s]);const d=a.useMemo(()=>[Q,...ht(g)],[g]),N=pt({queries:t?d.map(y=>we(t,y,f,r)):[]}),F=(t==null?void 0:t.filtersHidden)??!0,E=a.useMemo(()=>{const y={};return d.forEach((P,R)=>{var q;const S=N[R];let j=((q=S==null?void 0:S.data)==null?void 0:q.entries)??[];!f&&!F&&(j=rt(j)),P===Q&&(j=cn(j)),y[P]={entries:j,loading:(S==null?void 0:S.isLoading)??!1,error:(S==null?void 0:S.isError)??!1}}),y},[d,N,f,F]),M=a.useRef(0),b=a.useRef({});a.useEffect(()=>{M.current>0||d.forEach((y,P)=>{var S,j,q;const R=(j=(S=N[P])==null?void 0:S.data)==null?void 0:j.entries;!R||(q=N[P])!=null&&q.isError||b.current[y]!==R&&(b.current[y]=R,p(y,R.map(te=>te.name)))})},[d,N,p]);const $=a.useMemo(()=>mt(g,E),[g,E]),I=!!t&&!!((c=E[Q])!=null&&c.loading),v=!!t&&!!((h=E[Q])!=null&&h.error),u=(T=N[0])==null?void 0:T.error,x=v&&u?Bt(u):void 0,w=(x==null?void 0:x.message)??null,k=(x==null?void 0:x.command)??null,D=a.useMemo(()=>{var P;const y=new Set;for(const R of d)R!==Q&&((P=E[R])!=null&&P.error)&&y.add(R);return y},[d,E]),H=a.useCallback(y=>{if(y.type!=="dir")return;const P=U.getState();P.setDirExpanded(y.path,!P.expanded[y.path])},[]),L=a.useCallback(y=>{if(y===Q)return;const P=U.getState();P.expanded[y]||P.setDirExpanded(y,!0)},[]),A=(t==null?void 0:t.preview)==="canvas",K=a.useCallback(y=>{if(y.type!=="file"||!A)return;const P={getStore:Te.getState,setTheme:m,supportsTerminal:n.supportsTerminal};xt(P,{action:"open_file",sourcePath:y.path},"user")},[A,m,n]),G=a.useCallback(()=>{o!==null&&r.invalidateQueries({queryKey:["file-explorer","tree",o]})},[r,o]),O=a.useCallback(y=>{t!==null&&r.invalidateQueries({queryKey:le(t,y,f),exact:!0})},[r,t,f]);a.useEffect(()=>{if(t!=null&&t.events)return t.events(G)},[t,G]);const C=un({source:t??$e,showHidden:f,queryClient:r,inFlightRef:M}),z=xn({source:t??$e,showHidden:f,queryClient:r,inFlightRef:M}),B=pn(i);return{rows:$,rootLoading:I,rootError:v,rootErrorMessage:w,rootErrorCommand:k,errorPaths:D,toggleExpand:H,ensureExpanded:L,openFile:K,reload:G,retryDir:O,changes:t!=null&&t.changes?z:null,...C,...B}}function yn(t){const{transport:n,cwd:r}=t;return{scopeKey:r,cwd:r,writable:!0,provenance:!1,filtersHidden:!0,preview:"canvas",editable:!1,list(m,f){return n.readFileTree(r,{path:m===""?void 0:m,showHidden:f.showHidden})}}}function je(t){return Array.from(t).includes("Files")}function ot(t){const n=Array.from(t.items??[]);if(!(n.length>0&&n.every(g=>"webkitGetAsEntry"in g)))return{files:Array.from(t.files??[]),folders:0};const m=[];let f=0;for(const g of n){if(g.kind!=="file")continue;const s=g.webkitGetAsEntry();if(s!=null&&s.isDirectory){f+=1;continue}const p=g.getAsFile();p&&m.push(p)}return{files:m,folders:f}}const vn=12;function Cn({row:t,selected:n,renaming:r,error:m,onSelect:f,onActivate:g,onRetry:s,onSubmitRename:p,onCancelRename:o,onNewFile:i,onNewFolder:d,onStartRename:N,onDelete:F,onMove:E,onCopyInto:M,onCopy:b,onPaste:$,onDuplicate:I,canPasteInto:v,revealLabel:u,onReveal:x,onAddToChat:w,onCopyPath:k,readOnly:D=!1,provenance:H=!1,copyable:L=!0,onDisk:A=!0,onUpload:K,onPickUpload:G}){const{entry:O,depth:C,expanded:z,loading:B}=t,c=O.type==="dir",h=c?O.path:W(O.path),[T,y]=a.useState(!1),P=!c&&C===0&&Se(O.name),R=Gt(O.lastCommit),S=e.jsxs("div",{role:"treeitem","aria-label":O.name,"aria-expanded":c?z:void 0,"aria-selected":n,tabIndex:-1,onKeyDown:j=>{(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),f(O),g(O))},draggable:!r&&!D,onDragStart:j=>{D||(j.dataTransfer.setData("text/plain",O.path),j.dataTransfer.setData(tn,O.path),j.dataTransfer.effectAllowed="copyMove")},onDragOver:j=>{if(j.stopPropagation(),!D&&K&&je(j.dataTransfer.types)){j.preventDefault(),j.dataTransfer.dropEffect="copy",y(!0);return}D||!c||!Xe(j.dataTransfer.types)||(j.preventDefault(),j.dataTransfer.dropEffect=j.altKey&&L?"copy":"move",y(!0))},onDragLeave:()=>y(!1),onDrop:j=>{if(j.stopPropagation(),D)return;if(y(!1),K&&je(j.dataTransfer.types)){j.preventDefault();const{files:te}=ot(j.dataTransfer);K(h,te);return}if(!c)return;const q=Ve(j.dataTransfer);q!==null&&(j.preventDefault(),j.altKey&&L?M(q,O.path):E(q,O.path))},onClick:()=>{f(O),g(O)},className:Oe("flex w-full cursor-pointer items-center gap-1 py-1 pr-2 text-sm transition-colors",n?"bg-accent text-foreground":"hover:bg-accent/50",T&&"ring-ring/60 bg-accent ring-1"),style:{paddingLeft:C*vn+8},children:[e.jsx("span",{className:"flex size-4 flex-shrink-0 items-center justify-center",children:c&&(B?e.jsx(Fe,{size:"xs",className:"text-muted-foreground"}):m?e.jsx("button",{type:"button","aria-label":"Retry loading",title:"Couldn’t load. Retry",onClick:j=>{j.stopPropagation(),s()},className:"flex items-center justify-center",children:e.jsx(Ze,{className:"text-destructive size-3.5"})}):z?e.jsx(gt,{className:"text-muted-foreground size-3.5"}):e.jsx(Ue,{className:"text-muted-foreground size-3.5"}))}),c?z?e.jsx(yt,{className:"size-(--size-icon-sm) flex-shrink-0 text-sky-500"}):e.jsx(be,{className:"size-(--size-icon-sm) flex-shrink-0 text-sky-500"}):O.isSymlink===!0?e.jsx(nn,{className:"text-muted-foreground size-(--size-icon-sm) flex-shrink-0"}):e.jsx(Je,{className:"text-muted-foreground size-(--size-icon-sm) flex-shrink-0"}),r?e.jsx(bn,{initialName:O.name,onSubmit:j=>p(O,j),onCancel:o}):e.jsx("span",{className:"min-w-0 flex-1 truncate",children:O.name}),P&&!r&&e.jsx(vt,{"aria-label":"Pinned to the top",className:"text-muted-foreground/60 size-3 flex-shrink-0"}),H&&!r&&e.jsx("span",{className:"text-muted-foreground/70 text-2xs max-w-[45%] flex-shrink-0 truncate tabular-nums",title:R.title??void 0,children:R.label})]});return D?S:e.jsxs(Ct,{children:[e.jsx(bt,{asChild:!0,children:S}),e.jsxs(kt,{className:"w-52",children:[e.jsx(Z,{movesFocus:!0,onClick:()=>i(h),children:"New file"}),e.jsx(Z,{movesFocus:!0,onClick:()=>d(h),children:"New folder"}),G&&e.jsx(Z,{onClick:()=>G(h),children:"Upload files…"}),A&&e.jsxs(e.Fragment,{children:[e.jsx(ve,{}),u&&e.jsx(Z,{onClick:()=>x(O),children:u}),e.jsx(Z,{movesFocus:!0,onClick:()=>w(O),children:"Add to chat"})]}),L&&e.jsxs(e.Fragment,{children:[e.jsx(ve,{}),e.jsx(Z,{onClick:()=>b(O),children:"Copy"}),e.jsx(Z,{disabled:!v(h),onClick:()=>$(h),children:"Paste"}),e.jsx(Z,{onClick:()=>I(O),children:"Duplicate"})]}),e.jsx(ve,{}),A?e.jsxs(e.Fragment,{children:[e.jsx(Z,{onClick:()=>k(O,"absolute"),children:"Copy path"}),e.jsx(Z,{onClick:()=>k(O,"relative"),children:"Copy relative path"})]}):e.jsx(Z,{onClick:()=>k(O,"relative"),children:"Copy path"}),e.jsx(ve,{}),e.jsx(Z,{movesFocus:!0,onClick:()=>N(O),children:"Rename"}),e.jsx(Z,{variant:"destructive",onClick:()=>F(O),children:"Delete"})]})]})}function bn({initialName:t,onSubmit:n,onCancel:r}){const m=a.useRef(null),[f,g]=a.useState(t);a.useEffect(()=>{const p=m.current;if(!p)return;p.focus();const o=t.lastIndexOf(".");p.setSelectionRange(0,o>0?o:t.length)},[t]);const s=()=>{const p=f.trim();p&&p!==t?n(p):r()};return e.jsx("input",{ref:m,type:"text",value:f,"aria-label":"New name",onChange:p=>g(p.target.value),onClick:p=>p.stopPropagation(),onBlur:s,onKeyDown:p=>{p.stopPropagation(),p.key==="Enter"?s():p.key==="Escape"&&r()},className:"border-border bg-background focus-ring min-w-0 flex-1 rounded border px-1 py-0 text-sm outline-none"})}const kn=100,jn=28,wn=250;function En(t){const{rows:n,selectedPath:r,renamingPath:m,errorPaths:f,onSelectPath:g,onRetryDir:s}=t,p=a.useRef(null),o=U(C=>C.setScrollTop),i=U(C=>C.scopeKey),d=a.useCallback(C=>C.type==="dir"?t.onToggle(C):t.onOpen(C),[t]),N=Nn(t,d),F=n.length>kn,E=en({count:n.length,getScrollElement:()=>p.current,estimateSize:()=>jn,overscan:12,enabled:F}),M=a.useRef({scope:void 0,done:!1}),b=a.useRef(null);a.useLayoutEffect(()=>{const C=M.current;if(C.scope!==i&&(C.scope=i,C.done=!1),C.done||n.length===0)return;const z=p.current;if(!z)return;const B=U.getState().scrollTop;if(B<=0){C.done=!0;return}F?E.scrollToOffset(B):z.scrollTop=B,b.current=z.scrollTop,z.scrollTop>=B&&(C.done=!0)},[n.length,i,F,E]);const $=a.useRef(null),I=a.useRef(null),v=a.useCallback(()=>{const C=p.current;C&&C.scrollTop!==b.current&&(M.current.done=!0,$.current=C.scrollTop,I.current&&clearTimeout(I.current),I.current=setTimeout(()=>{I.current=null,$.current!==null&&o($.current)},wn))},[o]);a.useEffect(()=>()=>{I.current&&clearTimeout(I.current),$.current!==null&&o($.current)},[o]);const u=a.useRef(void 0);a.useEffect(()=>{var c,h;const C=u.current;if(u.current=r,C===void 0||r===C||r===null)return;const z=n.findIndex(T=>T.entry.path===r);if(z<0)return;const B=p.current;B&&(F?E.scrollToIndex(z,{align:"auto"}):(h=(c=B.querySelector(`[data-row-index="${z}"]`))==null?void 0:c.scrollIntoView)==null||h.call(c,{block:"nearest"}),b.current=B.scrollTop)},[r,n,F,E]);const[x,w]=a.useState(!1),{onCopyInto:k,onMove:D}=t,H=t.readOnly===!0,L=t.copyable!==!1,A=a.useCallback(C=>{H||!Xe(C.dataTransfer.types)||(C.preventDefault(),C.dataTransfer.dropEffect=C.altKey&&L?"copy":"move",w(!0))},[H,L]),K=a.useCallback((C,z)=>{const B=n.find(c=>c.entry.path===C);B&&k({path:C,isDir:B.entry.type==="dir"},z)},[n,k]),G=a.useCallback(C=>{if(w(!1),H)return;const z=Ve(C.dataTransfer);z!==null&&(C.preventDefault(),C.altKey&&L?K(z,Q):D(z,Q))},[K,D,H,L]),O=C=>e.jsx(Cn,{row:C,selected:C.entry.path===r,renaming:C.entry.path===m,error:C.entry.type==="dir"&&C.expanded&&f.has(C.entry.path),onSelect:z=>g(z.path),onActivate:d,onRetry:()=>s(C.entry.path),onSubmitRename:t.onSubmitRename,onCancelRename:t.onCancelRename,onStartRename:t.onStartRename,onNewFile:t.onNewFile,onNewFolder:t.onNewFolder,onDelete:t.onDelete,onMove:t.onMove,onCopyInto:K,onCopy:t.onCopy,onPaste:t.onPaste,onDuplicate:t.onDuplicate,canPasteInto:t.canPasteInto,revealLabel:t.revealLabel,onReveal:t.onReveal,onAddToChat:t.onAddToChat,onCopyPath:t.onCopyPath,readOnly:t.readOnly,provenance:t.provenance,copyable:t.copyable,onDisk:t.onDisk,onUpload:t.onUpload,onPickUpload:t.onPickUpload});return e.jsx("div",{ref:p,role:"tree","aria-label":"File explorer",tabIndex:0,onKeyDown:N,onScroll:v,onDragOver:A,onDragLeave:()=>w(!1),onDrop:G,className:Oe("focus-visible:ring-ring h-full overflow-auto outline-none focus-visible:ring-1 focus-visible:ring-inset",x&&"ring-ring/60 bg-accent/30 ring-1 ring-inset"),children:F?e.jsx("div",{style:{height:E.getTotalSize()},className:"relative w-full",children:E.getVirtualItems().map(C=>e.jsx("div",{"data-row-index":C.index,className:"absolute top-0 left-0 w-full",style:{transform:`translateY(${C.start}px)`},children:O(n[C.index])},n[C.index].entry.path))}):n.map((C,z)=>e.jsx("div",{"data-row-index":z,children:O(C)},C.entry.path))})}function Rn(t){return t?t.type==="dir"?t.path:W(t.path):Q}function Nn(t,n){const{rows:r,selectedPath:m,renamingPath:f,onSelectPath:g}=t;return a.useCallback(s=>{var i,d,N,F;if(f!==null)return;const p=r.findIndex(E=>E.entry.path===m),o=p>=0?r[p]:void 0;if(s.metaKey||s.ctrlKey){if(t.readOnly===!0||t.copyable===!1)return;const E=s.key.toLowerCase();if(E==="c"&&o){s.preventDefault(),t.onCopy(o.entry);return}if(E==="v"){s.preventDefault(),t.onPaste(Rn(o==null?void 0:o.entry));return}return}switch(s.key){case"ArrowDown":s.preventDefault(),g(((i=r[Math.min(p+1,r.length-1)])==null?void 0:i.entry.path)??((d=r[0])==null?void 0:d.entry.path));break;case"ArrowUp":s.preventDefault(),g(((N=r[Math.max(p-1,0)])==null?void 0:N.entry.path)??((F=r[0])==null?void 0:F.entry.path));break;case"ArrowRight":(o==null?void 0:o.entry.type)==="dir"&&!o.expanded&&(s.preventDefault(),t.onToggle(o.entry));break;case"ArrowLeft":if(!o)break;if(s.preventDefault(),o.entry.type==="dir"&&o.expanded)t.onToggle(o.entry);else{const E=W(o.entry.path);E&&g(E)}break;case"Enter":o&&(s.preventDefault(),n(o.entry));break;case"F2":o&&t.readOnly!==!0&&(s.preventDefault(),t.onStartRename(o.entry));break;case"Delete":case"Backspace":o&&t.readOnly!==!0&&(s.preventDefault(),t.onDelete(o.entry));break}},[r,m,f,g,t,n])}const Sn={rename:"Rename it anyway",move:"Move it anyway",delete:"Delete it anyway",upload:"Upload mine over it"},Dn={rename:"nothing was renamed",move:"nothing was moved",delete:"nothing was deleted",upload:"nothing was uploaded"};function Tn(t){const{entry:n,fileCount:r,moreThan:m}=t;if(n.type!=="dir")return`“${n.name}” leaves the room’s files.`;const f=r===null?"everything in it":m?`the more than ${r.toLocaleString()} files in it`:r===1?"the 1 file in it":`the ${r.toLocaleString()} files in it`;return`“${n.name}” and ${f} leave the room’s files.`}const Fn="The room’s history keeps a copy. An agent can restore it.";function On({changes:t,onOpenTheirs:n,onReturnFocus:r}){var E;const m=M=>{M.preventDefault();const b=document.activeElement;b!==null&&b!==document.body||r()},{pendingDelete:f,pendingClash:g,conflict:s}=t,[p,o]=a.useState(f);f!==null&&f!==p&&o(f);const[i,d]=a.useState(g);g!==null&&g!==i&&d(g);const N=i===null?"":i.dir===Q?"The top folder":`“${i.dir}”`,F=(i==null?void 0:i.names.length)===1;return e.jsxs(e.Fragment,{children:[e.jsx(de,{open:f!==null,onOpenChange:M=>!M&&t.cancelDelete(),children:e.jsxs(ue,{onCloseAutoFocus:m,children:[e.jsxs(fe,{children:[e.jsx(he,{children:p===null?"":`Delete “${p.entry.name}”?`}),e.jsx(pe,{asChild:!0,children:e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{children:p===null?"":Tn(p)}),e.jsx("p",{children:Fn})]})})]}),e.jsxs(me,{children:[e.jsx(xe,{onClick:t.cancelDelete,children:"Cancel"}),e.jsx(ge,{onClick:()=>void t.confirmDelete(),variant:"destructive",children:(p==null?void 0:p.entry.type)==="dir"?"Delete folder":"Delete file"})]})]})}),e.jsx(de,{open:g!==null,onOpenChange:M=>!M&&t.cancelClash(),children:e.jsxs(ue,{onCloseAutoFocus:m,children:[e.jsxs(fe,{children:[e.jsx(he,{children:F?`Replace “${i==null?void 0:i.names[0]}”?`:`Replace ${(i==null?void 0:i.names.length)??0} files?`}),e.jsx(pe,{children:F?`${N} already has a file with this name. Replace it, or keep both.`:`${N} already has files named ${(i==null?void 0:i.names.join(", "))??""}. Replace them, or keep both.`})]}),e.jsxs(me,{children:[e.jsx(xe,{onClick:t.cancelClash,children:"Cancel"}),e.jsx(Y,{variant:"outline",onClick:()=>void t.resolveClash("keep-both"),children:"Keep both"}),e.jsx(ge,{onClick:()=>void t.resolveClash("replace"),children:"Replace"})]})]})}),e.jsx(de,{open:s!==null,onOpenChange:M=>!M&&t.dismissConflict(),children:e.jsxs(ue,{onCloseAutoFocus:m,children:[e.jsxs(fe,{children:[e.jsx(he,{children:"Somebody changed this first"}),e.jsx(pe,{children:s===null?"":`${((E=s.lastCommit)==null?void 0:E.author)??"Somebody"} changed “${s.path}” after you opened it, so ${Dn[s.kind]}.`})]}),(s==null?void 0:s.lastCommit)&&e.jsxs("p",{className:"text-muted-foreground text-xs",children:[s.lastCommit.subject," · ",jt(s.lastCommit.at)]}),e.jsxs(me,{children:[e.jsx(xe,{onClick:t.dismissConflict,children:"Cancel"}),e.jsx(Y,{variant:"outline",onClick:()=>{s!==null&&(t.dismissConflict(),n(s.path))},children:"Open their version"}),e.jsx(ge,{onClick:()=>{s!==null&&(t.dismissConflict(),s.retry())},variant:"destructive",children:s===null?"":Sn[s.kind]})]})]})})]})}function Ie(t,n){return n.name===t?Ge(t):`“${n.name}” is already there. Some computers ignore capital letters in names. Pick another name.`}const Pn="Folders can’t be uploaded. Drop the files inside instead.";function _n({source:t,className:n,onCommands:r}={}){var ye;const m=ne(),f=Te(l=>l.selectedCwd),g=a.useMemo(()=>f?yn({transport:m,cwd:f}):null,[m,f]),s=t===void 0?g:t,p=s!==null&&!s.writable,o=gn(s),i=o.changes,d=oe(),N=U(l=>l.showHidden),{rows:F,rootLoading:E,rootError:M,rootErrorMessage:b,rootErrorCommand:$,errorPaths:I}=o,v=U(l=>l.setCommands),u=U(l=>l.selectedPath),x=U(l=>l.setSelectedPath),w=U(l=>l.clipboard),[k,D]=a.useState(null),[H,L]=a.useState(null),[A,K]=a.useState(null),G=a.useCallback(l=>K(l===null?null:{path:l,isNew:!1}),[]),O=a.useRef(null),C=a.useRef(Q),[z,B]=a.useState(!1),c=a.useCallback((l,_)=>{if(i!==null){if(_.length===0){J.error(Pn);return}o.ensureExpanded(l),i.upload(l,_)}},[i,o]),h=a.useRef(null),T=a.useCallback(()=>{var l,_;(_=(l=h.current)==null?void 0:l.querySelector('[role="tree"]'))==null||_.focus()},[]),y=a.useCallback(l=>{var _;C.current=l,(_=O.current)==null||_.click()},[]),P=a.useCallback(l=>w!==null&&!(w.isDir&&Ce(l,w.path)),[w]),R=a.useCallback((l,_)=>{o.ensureExpanded(l),Ae.flushSync(()=>{L(null),D({parent:l,type:_})})},[o]),S=a.useCallback(l=>{Ae.flushSync(()=>L(l.path))},[]),j=a.useRef({startCreate:R,reload:o.reload,pickUpload:y});a.useEffect(()=>{j.current={startCreate:R,reload:o.reload,pickUpload:y}});const q=i!==null;a.useEffect(()=>{if(p||r===void 0&&q)return;const l=r??v;return l({newFile:()=>j.current.startCreate(Q,"file"),newFolder:()=>j.current.startCreate(Q,"dir"),refresh:()=>j.current.reload(),...q&&{upload:()=>j.current.pickUpload(Q)}}),()=>l(null)},[v,r,p,q]);const te=a.useCallback(async l=>{var se;if(!k||s===null)return;const _=k;if(D(null),i!==null){const re=(((se=d.getQueryData(le(s,_.parent,N)))==null?void 0:se.entries)??[]).find(ct=>ct.name.toLowerCase()===l.toLowerCase());if(_.type==="dir"){if(re!==void 0&&!(re.type==="dir"&&re.name===l)){J.error(Ie(l,re));return}D({parent:ee(_.parent,l),type:"file",firstInFolder:l});return}if(re!==void 0){J.error(Ie(l,re));return}const lt=ee(_.parent,l);K({path:lt,isNew:!0});return}await o.createEntry(_.parent,l,_.type)&&x(ee(_.parent,l))},[k,s,i,d,N,o,x]),V=a.useCallback(async(l,_)=>{L(null),(i?await i.renameEntry(l,_):await o.renameEntry(l,_))&&x(ee(W(l.path),_))},[i,o,x]);return s===null?t!==void 0?null:e.jsx("div",{className:"text-muted-foreground flex h-full items-center justify-center p-6 text-center text-sm",children:"Pick a folder to see its files."}):e.jsxs("div",{ref:h,className:Oe("flex h-full flex-col",z&&"ring-ring/60 bg-accent/30 ring-1 ring-inset",n),onDragOver:l=>{i===null||!je(l.dataTransfer.types)||(l.preventDefault(),l.dataTransfer.dropEffect="copy",B(!0))},onDragLeave:l=>{l.currentTarget.contains(l.relatedTarget)||B(!1)},onDrop:l=>{B(!1),!(i===null||!je(l.dataTransfer.types))&&(l.preventDefault(),c(Q,ot(l.dataTransfer).files))},children:[i!==null&&e.jsx("input",{ref:O,type:"file",multiple:!0,hidden:!0,"aria-hidden":!0,tabIndex:-1,"data-testid":"room-files-upload-input",onChange:l=>{const _=Array.from(l.target.files??[]);l.target.value="",c(C.current,_)}}),e.jsxs("div",{className:"min-h-0 flex-1",children:[k&&e.jsx(Mn,{type:k.type,firstInFolder:k.firstInFolder,onSubmit:l=>void te(l),onCancel:()=>D(null)},`${k.parent}:${k.type}:${k.firstInFolder??""}`),E&&F.length===0?e.jsx("div",{className:"flex h-20 items-center justify-center",children:e.jsx(Fe,{size:"md",className:"text-muted-foreground",label:"Loading files"})}):M&&F.length===0?e.jsxs("div",{className:"text-muted-foreground flex min-h-20 flex-col items-center justify-center gap-2 px-4 py-3 text-center text-xs [overflow-wrap:anywhere]",children:[e.jsx("span",{children:b??"Couldn’t load files."}),$!==null&&e.jsx("code",{"aria-label":"Command that removes the settings",className:"bg-muted text-foreground block w-full rounded px-2 py-1.5 text-left font-mono select-all",children:$}),e.jsxs(Y,{variant:"outline",size:"xs",onClick:o.reload,children:[e.jsx(Ze,{}),"Retry"]})]}):F.length===0&&!k?e.jsx("div",{className:"text-muted-foreground/60 flex h-20 items-center justify-center px-4 text-center text-xs",children:i!==null?"No files yet. Drop files here, or use Upload.":"Empty folder"}):e.jsx(En,{rows:F,selectedPath:u,renamingPath:H,errorPaths:I,onSelectPath:x,onToggle:o.toggleExpand,onOpen:l=>{s.preview==="inline"?G(l.path):o.openFile(l)},onRetryDir:o.retryDir,onSubmitRename:(l,_)=>void V(l,_),onCancelRename:()=>L(null),onStartRename:S,onNewFile:l=>R(l,"file"),onNewFolder:l=>R(l,"dir"),onDelete:l=>i?i.requestDelete(l):void o.removeEntry(l),onMove:(l,_)=>void(i?i.moveEntry(l,_):o.moveEntry(l,_)),onCopyInto:(l,_)=>void o.copyEntry(l,_),onCopy:o.copyToClipboard,onPaste:l=>{w&&o.copyEntry(w,l)},onDuplicate:l=>void o.copyEntry({path:l.path,isDir:l.type==="dir"},W(l.path)),canPasteInto:P,readOnly:p,provenance:s.provenance,copyable:i===null,onDisk:s.cwd!==null,onUpload:i?c:void 0,onPickUpload:i?y:void 0,revealLabel:o.revealLabel,onReveal:l=>void o.reveal(l),onAddToChat:o.addToChat,onCopyPath:(l,_)=>void o.copyPath(l,_)})]}),s.preview==="inline"&&e.jsx(Yt,{source:s,path:(A==null?void 0:A.path)??null,isNew:(A==null?void 0:A.isNew)??!1,onCreated:()=>{A!==null&&(K({path:A.path,isNew:!1}),x(A.path))},onClose:()=>K(null)}),i!==null&&e.jsx(On,{changes:i,onOpenTheirs:l=>G(l),onReturnFocus:T}),e.jsx(de,{open:o.pendingRecursiveDelete!==null,onOpenChange:l=>!l&&o.cancelRecursiveDelete(),children:e.jsxs(ue,{children:[e.jsxs(fe,{children:[e.jsxs(he,{children:["Delete “",(ye=o.pendingRecursiveDelete)==null?void 0:ye.name,"”?"]}),e.jsx(pe,{children:"This folder isn’t empty. Everything inside is deleted. This can’t be undone."})]}),e.jsxs(me,{children:[e.jsx(xe,{onClick:o.cancelRecursiveDelete,children:"Cancel"}),e.jsx(ge,{onClick:()=>void o.confirmRecursiveDelete(),variant:"destructive",children:"Delete folder"})]})]})})]})}function Mn({type:t,firstInFolder:n,onSubmit:r,onCancel:m}){const f=a.useRef(null),[g,s]=a.useState("");a.useEffect(()=>{var i;(i=f.current)==null||i.focus()},[]);const p=()=>{const i=g.trim();i?r(i):m()},o=e.jsxs("div",{className:"flex items-center gap-1",children:[t==="dir"?e.jsx(be,{className:"size-(--size-icon-sm) flex-shrink-0 text-sky-500"}):e.jsx(Je,{className:"text-muted-foreground size-(--size-icon-sm) flex-shrink-0"}),e.jsx("input",{ref:f,type:"text",value:g,"aria-label":n!==void 0?`First file in ${n}`:t==="dir"?"New folder name":"New file name",placeholder:t==="dir"?"folder-name":"file-name",onChange:i=>s(i.target.value),onBlur:p,onKeyDown:i=>{i.key==="Enter"?p():i.key==="Escape"&&m()},className:"border-border bg-background focus-ring min-w-0 flex-1 rounded border px-1 py-0 text-sm outline-none"})]});return n===void 0?e.jsx("div",{className:"px-3 py-1",children:o}):e.jsxs("div",{className:"space-y-1 px-3 py-1",children:[e.jsxs("p",{className:"text-muted-foreground flex min-w-0 items-center gap-1 text-xs",children:[e.jsx(be,{className:"size-(--size-icon-xs) flex-shrink-0 text-sky-500"}),e.jsx("span",{className:"truncate",children:n})]}),o,e.jsx("p",{className:"text-muted-foreground text-2xs",children:"Name its first file. The folder appears on save."})]})}function it(){const t=U(m=>m.showHidden),n=U(m=>m.setShowHidden),r=t?"Hide hidden files":"Show hidden files";return e.jsx(Y,{variant:"ghost",size:"icon-xs","aria-label":r,title:r,onClick:()=>n(!t),children:t?e.jsx(wt,{className:"text-muted-foreground"}):e.jsx(Et,{className:"text-muted-foreground"})})}function An({cwd:t}){const n=ne(),{data:r}=ce({queryKey:["file-explorer","workspace",t],queryFn:()=>n.resolveWorkspace(t),staleTime:6e4});return r!=null&&r.branch?e.jsxs("span",{className:"text-muted-foreground bg-muted/50 text-2xs inline-flex min-w-0 items-center gap-1 rounded px-1.5 py-0.5",title:`Workspace ${r.key} on ${r.branch}`,children:[e.jsx(et,{className:"size-3 flex-shrink-0"}),e.jsx("span",{className:"truncate",children:r.branch})]}):null}function ss(){const t=Te(r=>r.selectedCwd),n=U(r=>r.commands);return t?e.jsxs(e.Fragment,{children:[e.jsx(An,{cwd:t}),e.jsx(Y,{variant:"ghost",size:"icon-xs","aria-label":"New file",title:"New file",onClick:()=>n==null?void 0:n.newFile(),children:e.jsx(st,{className:"text-muted-foreground"})}),e.jsx(Y,{variant:"ghost",size:"icon-xs","aria-label":"New folder",title:"New folder",onClick:()=>n==null?void 0:n.newFolder(),children:e.jsx(qe,{className:"text-muted-foreground"})}),e.jsx(it,{}),e.jsx(Y,{variant:"ghost",size:"icon-xs","aria-label":"Refresh",title:"Refresh",onClick:()=>n==null?void 0:n.refresh(),children:e.jsx(Rt,{className:"text-muted-foreground"})})]}):null}function Ln({roomId:t}){const n=ne(),r=oe(),m=ce(Qe(n,t));a.useEffect(()=>Wt(r,t,()=>{r.invalidateQueries({queryKey:ke.repoStatus(t)})}),[r,t]);const f=a.useMemo(()=>{var o;return((o=m.data)==null?void 0:o.kind)==="ok"?Nt(m.data.status):[]},[m.data]),g=St(f),s=Dt(f);if(!s)return null;const p=f.map((o,i)=>`${g[i]}: ${Tt(o)}`);return e.jsxs("span",{"data-slot":"pending-work-badge",title:p.join(`
|
|
17
|
+
`),className:"text-muted-foreground bg-muted/50 text-2xs inline-flex min-w-0 items-center gap-1 rounded px-1.5 py-0.5",children:[e.jsx(et,{className:"size-3 flex-shrink-0"}),e.jsxs("span",{className:"sr-only",children:["Not merged into the room yet. ",p.join(". "),"."]}),e.jsx("span",{"aria-hidden":"true",className:"truncate",children:s})]})}const zn={added:"added",modified:"changed",deleted:"deleted",untracked:"new"},$n=new Map([["OPERATOR_ONLY","Only the owner of this DorkOS can keep or discard these."],["ROOM_FILE_NOT_FOUND","One of those changes is gone, so nothing was discarded. The list is refreshed."],["MERGE_IN_FLIGHT","Something else is writing to these files. Nothing changed. Try again in a moment."],["MAIN_CHECKOUT_DIRTY","These files are on another branch. Switch them back to main yourself."],["ROOM_REPO_GIT_UNAVAILABLE","Room files need git, and git isn’t installed on this computer."],["ROOM_HAS_NO_REPO","This room no longer has its own files."],["ROOM_REPOS_DISABLED","Room files are turned off on this install."]]);function In({roomId:t}){var $,I;const n=ne(),r=oe(),m=ce(Qe(n,t)),[f,g]=a.useState([]),[s,p]=a.useState(!1),[o,i]=a.useState(null),d=Be({mutationFn:v=>n.repairRoomMain(t,v),onSuccess:()=>{g([]),p(!1),i(null),r.invalidateQueries({queryKey:ke.repoStatus(t)})},onError:v=>{p(!1);const u=$n.get(Pe(v)??"");i(u??"Couldn’t update the files. Try again in a moment."),r.invalidateQueries({queryKey:ke.repoStatus(t)})}});if((($=m.data)==null?void 0:$.kind)==="unavailable")return e.jsx("p",{role:"alert","data-slot":"room-main-warning",className:"border-border/60 text-muted-foreground rounded-lg border px-3 py-2.5 text-xs",children:"Couldn’t check this room’s files. Saves may not work. Try again soon."});const N=((I=m.data)==null?void 0:I.kind)==="ok"?m.data.status.main:void 0;if(N===void 0||!N.dirty)return null;const F=N.branch!=="main",E=f.filter(v=>N.strays.some(u=>u.path===v)),M=s&&E.length>0,b=v=>g(u=>u.includes(v)?u.filter(x=>x!==v):[...u,v]);return e.jsxs("div",{"data-slot":"room-main-warning",className:"border-border/60 bg-muted/40 space-y-3 rounded-lg border px-3 py-2.5 text-sm",children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(Ft,{className:"text-muted-foreground mt-0.5 size-(--size-icon-sm) flex-shrink-0"}),e.jsxs("div",{className:"min-w-0 space-y-1",children:[e.jsxs("div",{role:"alert",className:"space-y-1",children:[e.jsx("p",{className:"font-medium",children:"Somebody changed this room’s files outside DorkOS"}),F?e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-muted-foreground text-xs",children:`This room’s files are on ${N.branch??"no branch"}, not main.`}),e.jsx("p",{className:"text-muted-foreground text-xs",children:"Saves and agent merges wait until they’re back on main."})]}):e.jsx("p",{className:"text-muted-foreground text-xs",children:"Saves and agent merges wait until you keep or discard these."})]}),F&&e.jsx(sn,{className:"text-xs",children:e.jsx("p",{children:"DorkOS won’t switch the branch for you. There may be work on it."})})]})]}),!F&&e.jsxs(e.Fragment,{children:[e.jsx("ul",{className:"space-y-1.5",children:N.strays.map(v=>e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(Ot,{id:`stray-${t}-${v.path}`,checked:E.includes(v.path),onCheckedChange:()=>b(v.path),disabled:d.isPending}),e.jsx("label",{htmlFor:`stray-${t}-${v.path}`,className:"min-w-0 flex-1 cursor-pointer truncate font-mono text-xs",title:v.path,children:v.path}),e.jsx("span",{className:"text-muted-foreground flex-shrink-0 text-xs",children:zn[v.kind]})]},v.path))}),N.strayCount>N.strays.length&&e.jsxs("p",{className:"text-muted-foreground text-xs",children:["…and ",N.strayCount-N.strays.length," more not shown. “Keep them all” keeps these too."]}),M?e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-xs",children:E.length===1?"Discard this change? It can’t be undone.":`Discard these ${E.length} changes? They can’t be undone.`}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx(Y,{type:"button",variant:"ghost",size:"sm",disabled:d.isPending,onClick:()=>p(!1),children:"Cancel"}),e.jsx(Y,{type:"button",variant:"destructive",size:"sm",disabled:d.isPending,onClick:()=>d.mutate({action:"discard",paths:[...E]}),children:E.length===1?"Discard change":`Discard ${E.length} changes`})]})]}):e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx(Y,{type:"button",variant:"outline",size:"sm",disabled:d.isPending,onClick:()=>d.mutate({action:"commit"}),children:"Keep them all"}),e.jsx(Y,{type:"button",variant:"ghost",size:"sm",disabled:d.isPending||E.length===0,onClick:()=>p(!0),children:E.length===0?"Discard…":`Discard ${E.length}`})]})]}),o!==null&&e.jsx("p",{role:"alert",className:"text-destructive text-xs",children:o})]})}const Re="pointer-coarse:size-11",Kn=new Map([["ROOM_REPOS_DISABLED","Room files are turned off for this DorkOS."],["ROOM_REPO_GIT_UNAVAILABLE","Git isn’t available on this computer."],["MERGE_IN_FLIGHT","This room’s files are busy. Try again."],["ROOM_ARCHIVED","Bring this room back before setting up files."]]);function Hn(t){const n=Kn.get(Pe(t)??"");return n||(t instanceof TypeError||t instanceof Error&&/fetch|offline|network/i.test(t.message)?"You’re offline. Try again when this computer reconnects.":"Couldn’t set up files. Try again.")}function as({roomId:t,canChange:n,canSetUp:r=!1}){const m=ne(),f=oe(),g=U(v=>v.showHidden),[s,p]=a.useState(null),[o,i]=a.useState(!1),d=a.useMemo(()=>We({transport:m,queryClient:f,roomId:t,canChange:n}),[m,f,t,n]),N=we(d,Q,g,f),F=ce(N),E=Be({mutationFn:async()=>{try{return await m.enableRoomRepo(t)}catch(v){if(Pe(v)==="ROOM_REPO_EXISTS")return null;throw v}},onSuccess:async()=>{i(!1),await Promise.all([f.invalidateQueries({queryKey:N.queryKey}),f.invalidateQueries({queryKey:ke.repoStatus(t)})])}}),M=F.isSuccess&&F.data.absent===!0,b=F.isSuccess&&!M||F.isError,[$,I]=a.useState(null);if(b&&$!==t&&I(t),!b&&$!==t&&!M)return null;if(M){if(!r)return null;const v=E.isError?Hn(E.error):null;return e.jsxs("section",{"aria-label":"Room files",className:"space-y-2",children:[e.jsxs("header",{className:"flex items-center gap-2",children:[e.jsx(Le,{className:"text-muted-foreground size-(--size-icon-sm) shrink-0"}),e.jsx("h3",{className:"text-muted-foreground text-xs font-medium tracking-wide uppercase",children:"Files"})]}),e.jsxs("div",{className:"border-border/60 flex items-center justify-between gap-3 rounded-lg border px-3 py-2.5",children:[e.jsx("p",{className:"text-muted-foreground text-sm",children:"This room has no shared files."}),e.jsx(Y,{type:"button",size:"sm",variant:"outline",className:"shrink-0 pointer-coarse:min-h-11",onClick:()=>{E.reset(),i(!0)},children:"Set up files…"})]}),v!==null&&e.jsx("p",{role:"alert",className:"text-status-danger text-xs",children:v}),e.jsx(de,{open:o,onOpenChange:i,children:e.jsxs(ue,{className:"max-sm:top-auto max-sm:bottom-0 max-sm:translate-y-0 max-sm:rounded-b-none",children:[e.jsxs(fe,{children:[e.jsx(he,{children:"Set up files for this room?"}),e.jsx(pe,{children:"This creates shared files and ROOM.md for everyone here. It can’t be undone."})]}),v!==null&&e.jsx("p",{role:"alert",className:"text-status-danger text-sm",children:v}),e.jsxs(me,{children:[e.jsx(xe,{className:"pointer-coarse:min-h-11",children:"Cancel"}),e.jsxs(ge,{className:"pointer-coarse:min-h-11",disabled:E.isPending,onClick:u=>{u.preventDefault(),E.mutate()},children:[E.isPending&&e.jsx(Pt,{className:"animate-spin"}),E.isPending?"Setting up…":"Set up files"]})]})]})})]})}return e.jsxs("section",{"aria-label":"Room files",className:"space-y-2",children:[e.jsxs("header",{className:"flex items-center gap-2",children:[e.jsx(Le,{className:"text-muted-foreground size-(--size-icon-sm) flex-shrink-0"}),e.jsx("h3",{className:"text-muted-foreground text-xs font-medium tracking-wide uppercase",children:"Files"}),e.jsx("div",{className:"min-w-0 flex-1",children:e.jsx(Ln,{roomId:t})}),n&&e.jsxs(e.Fragment,{children:[e.jsx(Y,{variant:"ghost",size:"icon-xs",className:Re,"aria-label":"New file",title:"New file",disabled:s===null,onClick:()=>s==null?void 0:s.newFile(),children:e.jsx(st,{className:"text-muted-foreground"})}),e.jsx(Y,{variant:"ghost",size:"icon-xs",className:Re,"aria-label":"New folder",title:"New folder",disabled:s===null,onClick:()=>s==null?void 0:s.newFolder(),children:e.jsx(qe,{className:"text-muted-foreground"})}),e.jsx(Y,{variant:"ghost",size:"icon-xs",className:Re,"aria-label":"Upload files",title:"Upload files",disabled:(s==null?void 0:s.upload)===void 0,onClick:()=>{var v;return(v=s==null?void 0:s.upload)==null?void 0:v.call(s)},children:e.jsx(rn,{className:"text-muted-foreground"})})]}),e.jsx(it,{})]}),e.jsx(In,{roomId:t}),e.jsx("div",{"data-slot":"room-files-body",className:"border-border/60 h-72 overflow-hidden rounded-lg border",children:e.jsx(_n,{source:d,onCommands:p})})]})}function rs({roomId:t,attachment:n}){var i;const r=ne(),m=oe(),f=a.useMemo(()=>We({transport:r,queryClient:m,roomId:t}),[r,m,t]),g=ce(we(f,Q,!1,m)),[s,p]=a.useState(!1),o=_t(t);return!g.isSuccess||g.data.absent===!0||((i=o.data)==null?void 0:i.archived)!==!1?null:e.jsxs(e.Fragment,{children:[e.jsx(Y,{type:"button",variant:"ghost",size:"icon-xs","aria-label":`Save ${n.name} to the room’s files`,title:"Save to room files",className:"text-muted-foreground hover:text-foreground mt-0.5 pointer-coarse:size-11",onClick:()=>p(!0),children:e.jsx(Mt,{})}),s&&e.jsx(Un,{roomId:t,source:f,attachment:n,onClose:()=>p(!1)})]})}function Un({roomId:t,source:n,attachment:r,onClose:m}){const f=ne(),g=oe(),[s,p]=a.useState(Q),[o,i]=a.useState(r.name),[d,N]=a.useState(null),[F,E]=a.useState(!1),M=a.useId(),b=ce(we(n,s,!1,g)),$=a.useMemo(()=>{var v;return rt(((v=b.data)==null?void 0:v.entries)??[]).filter(u=>u.type==="dir")},[b.data]),I=async()=>{var u,x;const v=o.trim();if(v!==""){E(!0),N(null);try{await f.saveAttachmentToRoomFiles(t,{attachmentId:r.id,dir:s,name:v,baseCommit:((u=b.data)==null?void 0:u.commit)??null}),g.invalidateQueries({queryKey:["file-explorer","tree",n.scopeKey]}),J.success(`Saved ${v} to the room’s files`),m()}catch(w){let k;try{k=Vt(w,g,t)}catch{k={status:"refused",reason:Ye(w)??"Couldn’t save. Try again in a moment."}}if(k.status==="exists"){const D=(((x=b.data)==null?void 0:x.entries)??[]).map(H=>H.name);N({reason:`This folder already has a file called “${v}”. Pick another name.`,suggestion:_e({name:v,isDir:!1,taken:[...D,v]})})}else k.status==="conflict"?(N({reason:"This folder changed while you chose, so nothing was saved. Try again."}),b.refetch()):k.status==="refused"&&N({reason:k.reason})}finally{E(!1)}}};return e.jsx(At,{open:!0,onOpenChange:v=>!v&&m(),children:e.jsxs(Lt,{className:"sm:max-w-md",children:[e.jsxs(zt,{children:[e.jsx($t,{children:"Save to room files"}),e.jsx(It,{children:"Everyone in the room, and their agents, can find it there."})]}),e.jsxs(Kt,{className:"space-y-3",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-muted-foreground text-xs font-medium",children:"Folder"}),e.jsxs("div",{role:"group","aria-label":"Folders",className:"border-border/60 max-h-56 overflow-auto rounded-md border",children:[e.jsx("p",{className:"bg-muted/40 truncate px-3 py-1.5 font-mono text-xs",children:s===Q?"Top folder":`${s}/`}),s!==Q&&e.jsx(Ke,{label:"Up one folder",icon:e.jsx(an,{className:"text-muted-foreground size-(--size-icon-sm)"}),onClick:()=>p(W(s))}),b.isPending?e.jsx("div",{className:"flex h-12 items-center justify-center",children:e.jsx(Fe,{size:"sm",className:"text-muted-foreground",label:"Loading folders"})}):$.length===0?e.jsx("p",{className:"text-muted-foreground px-3 py-2 text-xs",children:"No folders in here."}):$.map(v=>e.jsx(Ke,{label:v.name,icon:e.jsx(be,{className:"size-(--size-icon-sm) text-sky-500"}),chevron:!0,onClick:()=>p(ee(s,ie(v.path)))},v.path))]})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{htmlFor:M,className:"text-muted-foreground text-xs font-medium",children:"Name"}),e.jsx(Ht,{id:M,value:o,onChange:v=>{i(v.target.value),N(null)},spellCheck:!1,autoComplete:"off"})]}),d!==null&&e.jsxs("div",{role:"alert",className:"text-destructive space-y-1 text-xs",children:[e.jsx("p",{children:d.reason}),d.suggestion!==void 0&&e.jsxs(Y,{type:"button",variant:"outline",size:"xs",onClick:()=>{i(d.suggestion),N(null)},children:["Use “",d.suggestion,"”"]})]})]}),e.jsxs(Ut,{className:"gap-2",children:[e.jsx(Y,{type:"button",variant:"ghost",onClick:m,children:"Cancel"}),e.jsx(Y,{type:"button",disabled:F||o.trim()===""||b.isPending,onClick:()=>void I(),children:F?"Saving…":s===Q?"Save to the top folder":`Save to ${ie(s)}`})]})]})})}function Ke({label:t,icon:n,chevron:r=!1,onClick:m}){return e.jsxs("button",{type:"button",onClick:m,className:"hover:bg-accent/50 focus-visible:bg-accent flex w-full items-center gap-2 px-3 py-1.5 text-left text-sm outline-none",children:[n,e.jsx("span",{className:"min-w-0 flex-1 truncate",children:t}),r&&e.jsx(Ue,{className:"text-muted-foreground size-3.5"})]})}export{_n as FileExplorer,ss as FileExplorerActions,Yt as FilePreviewDialog,on as HIDDEN_ENTRY_NAMES,it as HiddenEntriesToggle,ls as NO_PROVENANCE,Ne as PINNED_ENTRY_NAMES,cs as ROOM_FILES_REFRESH_INTERVAL_MS,as as RoomFilesSection,rs as SaveToRoomFilesButton,We as createRoomFilesSource,yn as createSessionCwdSource,le as explorerDirQueryKey,we as explorerDirQueryOptions,ln as isHiddenEntryName,Se as isPinnedEntryName,cn as pinnedFirst,Gt as provenanceLine,Qe as roomRepoStatusQueryOptions,rt as withoutHidden};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/arduino-BI0Wlt2c.js","assets/cpp-C11qDRMm.js","assets/c-XQKAasRE.js","assets/clike-BF_vhPOR.js","assets/csharp-BSdrTNSA.js","assets/go-xWYv4r-F.js","assets/java-CUQYWvAL.js","assets/javascript-CEvf9hWA.js","assets/kotlin-DlLEZihb.js","assets/less-DRLW25Ni.js","assets/css-B-uKvPiS.js","assets/markdown-DidFTSvt.js","assets/markup-BHKKUsMC.js","assets/markup-templating-C-XwH7hP.js","assets/objectivec-C86xFqEx.js","assets/php-D30FZ8S0.js","assets/ruby-Bwg0ofHw.js","assets/sass-B4vMtMwp.js","assets/scss-B7E2Cygf.js","assets/typescript-DsefBs7O.js","assets/vbnet-DfXcBIcZ.js","assets/basic-Dv_zySWb.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var hr=Object.defineProperty;var pr=(e,n,t)=>n in e?hr(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var K=(e,n,t)=>pr(e,typeof n!="symbol"?n+"":n,t);import{
|
|
2
|
+
var hr=Object.defineProperty;var pr=(e,n,t)=>n in e?hr(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var K=(e,n,t)=>pr(e,typeof n!="symbol"?n+"":n,t);import{ft as gr,a_ as z,j as L,o6 as mr,r as Te}from"./index-BR1m9FON.js";import{p as yr}from"./index-CfKSlYjb.js";var Wn={exports:{}};/*!
|
|
3
3
|
Copyright (c) 2018 Jed Watson.
|
|
4
4
|
Licensed under the MIT License (MIT), see
|
|
5
5
|
http://jedwatson.github.io/classnames
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{P as L,N as $,g as E,D as j,h as y,T as S,I as G}from"./index-Di-MIFQG.js";var N={};class v{constructor(t,e,s,i,h,r,n,o,a,u=0,f){this.p=t,this.stack=e,this.state=s,this.reducePos=i,this.pos=h,this.score=r,this.buffer=n,this.bufferBase=o,this.curContext=a,this.lookAhead=u,this.parent=f}toString(){return`[${this.stack.filter((t,e)=>e%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,s=0){let i=t.parser.context;return new v(t,[],e,s,s,0,[],0,i?new R(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var e;let s=t>>19,i=t&65535,{parser:h}=this.p,r=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),n=h.dynamicPrecedence(i);if(n&&(this.score+=n),s==0){i<h.minRepeatTerm&&this.reducePos<this.pos&&(this.reducePos=this.pos),this.pushState(h.getGoto(this.state,i,!0),this.reducePos),i<h.minRepeatTerm&&this.storeNode(i,this.reducePos,this.reducePos,r?8:4,!0),this.reduceContext(i,this.reducePos);return}let o=this.stack.length-(s-1)*3-(t&262144?6:0),a=o?this.stack[o-2]:this.p.ranges[0].from;i<h.minRepeatTerm&&a==this.reducePos&&this.reducePos<this.pos&&(this.reducePos=this.pos);let u=this.reducePos-a;u>=2e3&&!(!((e=this.p.parser.nodeSet.types[i])===null||e===void 0)&&e.isAnonymous)&&(a==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSize<u&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=a,this.p.lastBigReductionSize=u));let f=o?this.stack[o-1]:0,d=this.bufferBase+this.buffer.length-f;if(i<h.minRepeatTerm||t&131072){let c=h.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,a,c,d+4,!0)}if(t&262144)this.state=this.stack[o];else{let c=this.stack[o-3];this.state=h.getGoto(c,i,!0)}for(;this.stack.length>o;)this.stack.pop();this.reduceContext(i,a)}storeNode(t,e,s,i=4,h=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let r=this.buffer.length;if(r>0&&this.buffer[r-4]==0&&this.buffer[r-1]>-1){if(e==s)return;if(this.buffer[r-2]>=e){this.buffer[r-2]=s;return}}}if(!h||this.pos==s)this.buffer.push(t,e,s,i);else{let r=this.buffer.length;if(r>0&&(this.buffer[r-4]!=0||this.buffer[r-1]<0)){let n=!1;for(let o=r;o>0&&this.buffer[o-2]>s;o-=4)if(this.buffer[o-1]>=0){n=!0;break}if(n)for(;r>0&&this.buffer[r-2]>s;)this.buffer[r]=this.buffer[r-4],this.buffer[r+1]=this.buffer[r-3],this.buffer[r+2]=this.buffer[r-2],this.buffer[r+3]=this.buffer[r-1],r-=4,i>4&&(i-=4)}this.buffer[r]=t,this.buffer[r+1]=e,this.buffer[r+2]=s,this.buffer[r+3]=i}}shift(t,e,s,i){if(t&131072)this.pushState(t&65535,this.pos);else if((t&262144)==0){let h=t,{parser:r}=this.p;this.pos=i;let n=r.stateFlag(h,1);!n&&(i>s||e<=r.maxNode)&&(this.reducePos=i),this.pushState(h,n?s:Math.min(s,this.reducePos)),this.shiftContext(e,s),e<=r.maxNode&&this.buffer.push(e,s,i,4)}else this.pos=i,this.shiftContext(e,s),e<=this.p.parser.maxNode&&this.buffer.push(e,s,i,4)}apply(t,e,s,i){t&65536?this.reduce(t):this.shift(t,e,s,i)}useNode(t,e){let s=this.p.reused.length-1;(s<0||this.p.reused[s]!=t)&&(this.p.reused.push(t),s++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(e,i),this.buffer.push(s,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,e=t.buffer.length;for(e&&t.buffer[e-4]==0&&(e-=4);e>0&&t.buffer[e-2]>t.reducePos;)e-=4;let s=t.buffer.slice(e),i=t.bufferBase+e;for(;t&&i==t.bufferBase;)t=t.parent;return new v(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,s,i,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let s=t<=this.p.parser.maxNode;s&&this.storeNode(t,this.pos,e,4),this.storeNode(0,this.pos,e,s?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(t){for(let e=new U(this);;){let s=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(s==0)return!1;if((s&65536)==0)return!0;e.reduce(s)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){let i=[];for(let h=0,r;h<e.length;h+=2)(r=e[h+1])!=this.state&&this.p.parser.hasAction(r,t)&&i.push(e[h],r);if(this.stack.length<120)for(let h=0;i.length<8&&h<e.length;h+=2){let r=e[h+1];i.some((n,o)=>o&1&&n==r)||i.push(e[h],r)}e=i}let s=[];for(let i=0;i<e.length&&s.length<4;i+=2){let h=e[i+1];if(h==this.state)continue;let r=this.split();r.pushState(h,this.pos),r.storeNode(0,r.pos,r.pos,4,!0),r.shiftContext(e[i],this.pos),r.reducePos=this.pos,r.score-=200,s.push(r)}return s}forceReduce(){let{parser:t}=this.p,e=t.stateSlot(this.state,5);if((e&65536)==0)return!1;if(!t.validAction(this.state,e)){let s=e>>19,i=e&65535,h=this.stack.length-s*3;if(h<0||t.getGoto(this.stack[h],i,!1)<0){let r=this.findForcedReduction();if(r==null)return!1;e=r}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}findForcedReduction(){let{parser:t}=this.p,e=[],s=(i,h)=>{if(!e.includes(i))return e.push(i),t.allActions(i,r=>{if(!(r&393216))if(r&65536){let n=(r>>19)-h;if(n>1){let o=r&65535,a=this.stack.length-n*3;if(a>=0&&t.getGoto(this.stack[a],o,!1)>=0)return n<<19|65536|o}}else{let n=s(r,h+1);if(n!=null)return n}})};return s(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let e=0;e<this.stack.length;e+=3)if(this.stack[e]!=t.stack[e])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(t){return this.p.parser.dialect.flags[t]}shiftContext(t,e){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,t,this,this.p.stream.reset(e)))}reduceContext(t,e){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,t,this,this.p.stream.reset(e)))}emitContext(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(t){if(t!=this.curContext.context){let e=new R(this.curContext.tracker,t);e.hash!=this.curContext.hash&&this.emitContext(),this.curContext=e}}setLookAhead(t){return t<=this.lookAhead?!1:(this.emitLookAhead(),this.lookAhead=t,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class R{constructor(t,e){this.tracker=t,this.context=e,this.hash=t.strict?t.hash(e):0}}class U{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let e=t&65535,s=t>>19;s==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(s-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=i}}class A{constructor(t,e,s){this.stack=t,this.pos=e,this.index=s,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new A(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new A(this.stack,this.pos,this.index)}}function x(l,t=Uint16Array){if(typeof l!="string")return l;let e=null;for(let s=0,i=0;s<l.length;){let h=0;for(;;){let r=l.charCodeAt(s++),n=!1;if(r==126){h=65535;break}r>=92&&r--,r>=34&&r--;let o=r-32;if(o>=46&&(o-=46,n=!0),h+=o,n)break;h*=46}e?e[i++]=h:e=new t(h)}return e}class P{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const z=new P;class H{constructor(t,e){this.input=t,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=z,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(t,e){let s=this.range,i=this.rangeIndex,h=this.pos+t;for(;h<s.from;){if(!i)return null;let r=this.ranges[--i];h-=s.from-r.to,s=r}for(;e<0?h>s.to:h>=s.to;){if(i==this.ranges.length-1)return null;let r=this.ranges[++i];h+=r.from-s.to,s=r}return h}clipPos(t){if(t>=this.range.from&&t<this.range.to)return t;for(let e of this.ranges)if(e.to>t)return Math.max(t,e.from);return this.end}peek(t){let e=this.chunkOff+t,s,i;if(e>=0&&e<this.chunk.length)s=this.pos+t,i=this.chunk.charCodeAt(e);else{let h=this.resolveOffset(t,1);if(h==null)return-1;if(s=h,s>=this.chunk2Pos&&s<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(s-this.chunk2Pos);else{let r=this.rangeIndex,n=this.range;for(;n.to<=s;)n=this.ranges[++r];this.chunk2=this.input.chunk(this.chunk2Pos=s),s+this.chunk2.length>n.to&&(this.chunk2=this.chunk2.slice(0,n.to-s)),i=this.chunk2.charCodeAt(0)}}return s>=this.token.lookAhead&&(this.token.lookAhead=s+1),i}acceptToken(t,e=0){let s=e?this.resolveOffset(e,-1):this.pos;if(s==null||s<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=t,this.token.end=s}acceptTokenTo(t,e){this.token.value=t,this.token.end=e}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:t,chunkPos:e}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=t,this.chunk2Pos=e,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let t=this.input.chunk(this.pos),e=this.pos+t.length;this.chunk=e>this.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,e){if(e?(this.token=e,e.start=t,e.lookAhead=t+1,e.value=e.extended=-1):this.token=z,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;t>=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t<this.chunkPos+this.chunk.length?this.chunkOff=t-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(t,e){if(t>=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let s="";for(let i of this.ranges){if(i.from>=e)break;i.to>t&&(s+=this.input.read(Math.max(i.from,t),Math.min(i.to,e)))}return s}}class m{constructor(t,e){this.data=t,this.id=e}token(t,e){let{parser:s}=e.p;O(this.data,t,e,this.id,s.data,s.tokenPrecTable)}}m.prototype.contextual=m.prototype.fallback=m.prototype.extend=!1;class W{constructor(t,e,s){this.precTable=e,this.elseToken=s,this.data=typeof t=="string"?x(t):t}token(t,e){let s=t.pos,i=0;for(;;){let h=t.next<0,r=t.resolveOffset(1,1);if(O(this.data,t,e,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(h||i++,r==null)break;t.reset(r,t.token)}i&&(t.reset(s,t.token),t.acceptToken(this.elseToken,i))}}W.prototype.contextual=m.prototype.fallback=m.prototype.extend=!1;class Z{constructor(t,e={}){this.token=t,this.contextual=!!e.contextual,this.fallback=!!e.fallback,this.extend=!!e.extend}}function O(l,t,e,s,i,h){let r=0,n=1<<s,{dialect:o}=e.p.parser;t:for(;(n&l[r])!=0;){let a=l[r+1];for(let c=r+3;c<a;c+=2)if((l[c+1]&n)>0){let p=l[c];if(o.allows(p)&&(t.token.value==-1||t.token.value==p||q(p,t.token.value,i,h))){t.acceptToken(p);break}}let u=t.next,f=0,d=l[r+2];if(t.next<0&&d>f&&l[a+d*3-3]==65535){r=l[a+d*3-1];continue t}for(;f<d;){let c=f+d>>1,p=a+c+(c<<1),b=l[p],M=l[p+1]||65536;if(u<b)d=c;else if(u>=M)f=c+1;else{r=l[p+2],t.advance();continue t}}break}}function I(l,t,e){for(let s=t,i;(i=l[s])!=65535;s++)if(i==e)return s-t;return-1}function q(l,t,e,s){let i=I(e,s,t);return i<0||I(e,s,l)<i}const g=typeof process<"u"&&N&&/\bparse\b/.test(N.LOG);let T=null;function D(l,t,e){let s=l.cursor(G.IncludeAnonymous);for(s.moveTo(t);;)if(!(e<0?s.childBefore(t):s.childAfter(t)))for(;;){if((e<0?s.to<t:s.from>t)&&!s.type.isError)return e<0?Math.max(0,Math.min(s.to-1,t-25)):Math.min(l.length,Math.max(s.from+1,t+25));if(e<0?s.prevSibling():s.nextSibling())break;if(!s.parent())return e<0?0:l.length}}class J{constructor(t,e){this.fragments=t,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?D(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?D(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(t<this.nextStart)return null;for(;this.fragment&&this.safeTo<=t;)this.nextFragment();if(!this.fragment)return null;for(;;){let e=this.trees.length-1;if(e<0)return this.nextFragment(),null;let s=this.trees[e],i=this.index[e];if(i==s.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let h=s.children[i],r=this.start[e]+s.positions[i];if(r>t)return this.nextStart=r,null;if(h instanceof S){if(r==t){if(r<this.safeFrom)return null;let n=r+h.length;if(n<=this.safeTo){let o=h.prop(y.lookAhead);if(!o||n+o<this.fragment.to)return h}}this.index[e]++,r+h.length>=Math.max(this.safeFrom,t)&&(this.trees.push(h),this.start.push(r),this.index.push(0))}else this.index[e]++,this.nextStart=r+h.length}}}class K{constructor(t,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(s=>new P)}getActions(t){let e=0,s=null,{parser:i}=t.p,{tokenizers:h}=i,r=i.stateSlot(t.state,3),n=t.curContext?t.curContext.hash:0,o=0;for(let a=0;a<h.length;a++){if((1<<a&r)==0)continue;let u=h[a],f=this.tokens[a];if(!(s&&!u.fallback)&&((u.contextual||f.start!=t.pos||f.mask!=r||f.context!=n)&&(this.updateCachedToken(f,u,t),f.mask=r,f.context=n),f.lookAhead>f.end+25&&(o=Math.max(f.lookAhead,o)),f.value!=0)){let d=e;if(f.extended>-1&&(e=this.addActions(t,f.extended,f.end,e)),e=this.addActions(t,f.value,f.end,e),!u.extend&&(s=f,e>d))break}}for(;this.actions.length>e;)this.actions.pop();return o&&t.setLookAhead(o),!s&&t.pos==this.stream.end&&(s=new P,s.value=t.p.parser.eofTerm,s.start=s.end=t.pos,e=this.addActions(t,s.value,s.end,e)),this.mainToken=s,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new P,{pos:s,p:i}=t;return e.start=s,e.end=Math.min(s+1,i.stream.end),e.value=s==i.stream.end?i.parser.eofTerm:0,e}updateCachedToken(t,e,s){let i=this.stream.clipPos(s.pos);if(e.token(this.stream.reset(i,t),s),t.value>-1){let{parser:h}=s.p;for(let r=0;r<h.specialized.length;r++)if(h.specialized[r]==t.value){let n=h.specializers[r](this.stream.read(t.start,t.end),s);if(n>=0&&s.p.parser.dialect.allows(n>>1)){(n&1)==0?t.value=n>>1:t.extended=n>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,e,s,i){for(let h=0;h<i;h+=3)if(this.actions[h]==t)return i;return this.actions[i++]=t,this.actions[i++]=e,this.actions[i++]=s,i}addActions(t,e,s,i){let{state:h}=t,{parser:r}=t.p,{data:n}=r;for(let o=0;o<2;o++)for(let a=r.stateSlot(h,o?2:1);;a+=3){if(n[a]==65535)if(n[a+1]==1)a=k(n,a+2);else{i==0&&n[a+1]==2&&(i=this.putAction(k(n,a+2),e,s,i));break}n[a]==e&&(i=this.putAction(k(n,a+1),e,s,i))}return i}}class Q{constructor(t,e,s,i){this.parser=t,this.input=e,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new H(e,i),this.tokens=new K(t,this.stream),this.topTerm=t.top[1];let{from:h}=i[0];this.stacks=[v.start(this,t.top[0],h)],this.fragments=s.length&&this.stream.end-h>t.bufferLength*4?new J(s,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,e=this.minStackPos,s=this.stacks=[],i,h;if(this.bigReductionCount>300&&t.length==1){let[r]=t;for(;r.forceReduce()&&r.stack.length&&r.stack[r.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let r=0;r<t.length;r++){let n=t[r];for(;;){if(this.tokens.mainToken=null,n.pos>e)s.push(n);else{if(this.advanceStack(n,s,t))continue;{i||(i=[],h=[]),i.push(n);let o=this.tokens.getMainToken(n);h.push(o.value,o.end)}}break}}if(!s.length){let r=i&&X(i);if(r)return g&&console.log("Finish with "+this.stackID(r)),this.stackToTree(r);if(this.parser.strict)throw g&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+e);this.recovering||(this.recovering=5)}if(this.recovering&&i){let r=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,h,s);if(r)return g&&console.log("Force-finish "+this.stackID(r)),this.stackToTree(r.forceAll())}if(this.recovering){let r=this.recovering==1?1:this.recovering*3;if(s.length>r)for(s.sort((n,o)=>o.score-n.score);s.length>r;)s.pop();s.some(n=>n.reducePos>e)&&this.recovering--}else if(s.length>1){t:for(let r=0;r<s.length-1;r++){let n=s[r];for(let o=r+1;o<s.length;o++){let a=s[o];if(n.sameState(a)||n.buffer.length>500&&a.buffer.length>500)if((n.score-a.score||n.buffer.length-a.buffer.length)>0)s.splice(o--,1);else{s.splice(r--,1);continue t}}}s.length>12&&(s.sort((r,n)=>n.score-r.score),s.splice(12,s.length-12))}this.minStackPos=s[0].pos;for(let r=1;r<s.length;r++)s[r].pos<this.minStackPos&&(this.minStackPos=s[r].pos);return null}stopAt(t){if(this.stoppedAt!=null&&this.stoppedAt<t)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=t}advanceStack(t,e,s){let i=t.pos,{parser:h}=this,r=g?this.stackID(t)+" -> ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let a=t.curContext&&t.curContext.tracker.strict,u=a?t.curContext.hash:0;for(let f=this.fragments.nodeAt(i);f;){let d=this.parser.nodeSet.types[f.type.id]==f.type?h.getGoto(t.state,f.type.id):-1;if(d>-1&&f.length&&(!a||(f.prop(y.contextHash)||0)==u))return t.useNode(f,d),g&&console.log(r+this.stackID(t)+` (via reuse of ${h.getName(f.type.id)})`),!0;if(!(f instanceof S)||f.children.length==0||f.positions[0]>0)break;let c=f.children[0];if(c instanceof S&&f.positions[0]==0)f=c;else break}}let n=h.stateSlot(t.state,4);if(n>0)return t.reduce(n),g&&console.log(r+this.stackID(t)+` (via always-reduce ${h.getName(n&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let o=this.tokens.getActions(t);for(let a=0;a<o.length;){let u=o[a++],f=o[a++],d=o[a++],c=a==o.length||!s,p=c?t:t.split(),b=this.tokens.mainToken;if(p.apply(u,f,b?b.start:p.pos,d),g&&console.log(r+this.stackID(p)+` (via ${(u&65536)==0?"shift":`reduce of ${h.getName(u&65535)}`} for ${h.getName(f)} @ ${i}${p==t?"":", split"})`),c)return!0;p.pos>i?e.push(p):s.push(p)}return!1}advanceFully(t,e){let s=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>s)return B(t,e),!0}}runRecovery(t,e,s){let i=null,h=!1;for(let r=0;r<t.length;r++){let n=t[r],o=e[r<<1],a=e[(r<<1)+1],u=g?this.stackID(n)+" -> ":"";if(n.deadEnd&&(h||(h=!0,n.restart(),g&&console.log(u+this.stackID(n)+" (restarted)"),this.advanceFully(n,s))))continue;let f=n.split(),d=u;for(let c=0;c<10&&f.forceReduce()&&(g&&console.log(d+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,s));c++)g&&(d=this.stackID(f)+" -> ");for(let c of n.recoverByInsert(o))g&&console.log(u+this.stackID(c)+" (via recover-insert)"),this.advanceFully(c,s);this.stream.end>n.pos?(a==n.pos&&(a++,o=0),n.recoverByDelete(o,a),g&&console.log(u+this.stackID(n)+` (via recover-delete ${this.parser.getName(o)})`),B(n,s)):(!i||i.score<f.score)&&(i=f)}return i}stackToTree(t){return t.close(),S.build({buffer:A.create(t),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:t.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(t){let e=(T||(T=new WeakMap)).get(t);return e||T.set(t,e=String.fromCodePoint(this.nextStackID++)),e+t}}function B(l,t){for(let e=0;e<t.length;e++){let s=t[e];if(s.pos==l.pos&&s.sameState(l)){t[e].score<l.score&&(t[e]=l);return}}t.push(l)}class V{constructor(t,e,s){this.source=t,this.flags=e,this.disabled=s}allows(t){return!this.disabled||this.disabled[t]==0}}const C=l=>l;class _{constructor(t){this.start=t.start,this.shift=t.shift||C,this.reduce=t.reduce||C,this.reuse=t.reuse||C,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class w extends L{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let e=t.nodeNames.split(" ");this.minRepeatTerm=e.length;for(let n=0;n<t.repeatNodeCount;n++)e.push("");let s=Object.keys(t.topRules).map(n=>t.topRules[n][1]),i=[];for(let n=0;n<e.length;n++)i.push([]);function h(n,o,a){i[n].push([o,o.deserialize(String(a))])}if(t.nodeProps)for(let n of t.nodeProps){let o=n[0];typeof o=="string"&&(o=y[o]);for(let a=1;a<n.length;){let u=n[a++];if(u>=0)h(u,o,n[a++]);else{let f=n[a+-u];for(let d=-u;d>0;d--)h(n[a++],o,f);a++}}}this.nodeSet=new $(e.map((n,o)=>E.define({name:o>=this.minRepeatTerm?void 0:n,id:o,props:i[o],top:s.indexOf(o)>-1,error:o==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(o)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=j;let r=x(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let n=0;n<this.specializerSpecs.length;n++)this.specialized[n]=this.specializerSpecs[n].term;this.specializers=this.specializerSpecs.map(F),this.states=x(t.states,Uint32Array),this.data=x(t.stateData),this.goto=x(t.goto),this.maxTerm=t.maxTerm,this.tokenizers=t.tokenizers.map(n=>typeof n=="number"?new m(r,n):n),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,e,s){let i=new Q(this,t,e,s);for(let h of this.wrappers)i=h(i,t,e,s);return i}getGoto(t,e,s=!1){let i=this.goto;if(e>=i[0])return-1;for(let h=i[e+1];;){let r=i[h++],n=r&1,o=i[h++];if(n&&s)return o;for(let a=h+(r>>1);h<a;h++)if(i[h]==t)return o;if(n)return-1}}hasAction(t,e){let s=this.data;for(let i=0;i<2;i++)for(let h=this.stateSlot(t,i?2:1),r;;h+=3){if((r=s[h])==65535)if(s[h+1]==1)r=s[h=k(s,h+2)];else{if(s[h+1]==2)return k(s,h+2);break}if(r==e||r==0)return k(s,h+1)}return 0}stateSlot(t,e){return this.states[t*6+e]}stateFlag(t,e){return(this.stateSlot(t,0)&e)>0}validAction(t,e){return!!this.allActions(t,s=>s==e?!0:null)}allActions(t,e){let s=this.stateSlot(t,4),i=s?e(s):void 0;for(let h=this.stateSlot(t,1);i==null;h+=3){if(this.data[h]==65535)if(this.data[h+1]==1)h=k(this.data,h+2);else break;i=e(k(this.data,h+1))}return i}nextStates(t){let e=[];for(let s=this.stateSlot(t,1);;s+=3){if(this.data[s]==65535)if(this.data[s+1]==1)s=k(this.data,s+2);else break;if((this.data[s+2]&1)==0){let i=this.data[s+1];e.some((h,r)=>r&1&&h==i)||e.push(this.data[s],i)}}return e}configure(t){let e=Object.assign(Object.create(w.prototype),this);if(t.props&&(e.nodeSet=this.nodeSet.extend(...t.props)),t.top){let s=this.topRules[t.top];if(!s)throw new RangeError(`Invalid top rule name ${t.top}`);e.top=s}return t.tokenizers&&(e.tokenizers=this.tokenizers.map(s=>{let i=t.tokenizers.find(h=>h.from==s);return i?i.to:s})),t.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map((s,i)=>{let h=t.specializers.find(n=>n.from==s.external);if(!h)return s;let r=Object.assign(Object.assign({},s),{external:h.to});return e.specializers[i]=F(r),r})),t.contextTracker&&(e.context=t.contextTracker),t.dialect&&(e.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(e.strict=t.strict),t.wrap&&(e.wrappers=e.wrappers.concat(t.wrap)),t.bufferLength!=null&&(e.bufferLength=t.bufferLength),e}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let e=this.dynamicPrecedences;return e==null?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),s=e.map(()=>!1);if(t)for(let h of t.split(" ")){let r=e.indexOf(h);r>=0&&(s[r]=!0)}let i=null;for(let h=0;h<e.length;h++)if(!s[h])for(let r=this.dialects[e[h]],n;(n=this.data[r++])!=65535;)(i||(i=new Uint8Array(this.maxTerm+1)))[n]=1;return new V(t,s,i)}static deserialize(t){return new w(t)}}function k(l,t){return l[t]|l[t+1]<<16}function X(l){let t=null;for(let e of l){let s=e.p.stoppedAt;(e.pos==e.p.stream.end||s!=null&&e.pos>s)&&e.p.parser.stateFlag(e.state,2)&&(!t||t.score<e.score)&&(t=e)}return t}function F(l){if(l.external){let t=l.extend?1:0;return(e,s)=>l.external(e,s)<<1|t}return l.get}export{_ as C,Z as E,w as L,W as a};
|
|
1
|
+
import{P as L,N as $,g as E,D as j,h as y,T as S,I as G}from"./index-D5Qmx1JR.js";var N={};class v{constructor(t,e,s,i,h,r,n,o,a,u=0,f){this.p=t,this.stack=e,this.state=s,this.reducePos=i,this.pos=h,this.score=r,this.buffer=n,this.bufferBase=o,this.curContext=a,this.lookAhead=u,this.parent=f}toString(){return`[${this.stack.filter((t,e)=>e%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,s=0){let i=t.parser.context;return new v(t,[],e,s,s,0,[],0,i?new R(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var e;let s=t>>19,i=t&65535,{parser:h}=this.p,r=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),n=h.dynamicPrecedence(i);if(n&&(this.score+=n),s==0){i<h.minRepeatTerm&&this.reducePos<this.pos&&(this.reducePos=this.pos),this.pushState(h.getGoto(this.state,i,!0),this.reducePos),i<h.minRepeatTerm&&this.storeNode(i,this.reducePos,this.reducePos,r?8:4,!0),this.reduceContext(i,this.reducePos);return}let o=this.stack.length-(s-1)*3-(t&262144?6:0),a=o?this.stack[o-2]:this.p.ranges[0].from;i<h.minRepeatTerm&&a==this.reducePos&&this.reducePos<this.pos&&(this.reducePos=this.pos);let u=this.reducePos-a;u>=2e3&&!(!((e=this.p.parser.nodeSet.types[i])===null||e===void 0)&&e.isAnonymous)&&(a==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSize<u&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=a,this.p.lastBigReductionSize=u));let f=o?this.stack[o-1]:0,d=this.bufferBase+this.buffer.length-f;if(i<h.minRepeatTerm||t&131072){let c=h.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,a,c,d+4,!0)}if(t&262144)this.state=this.stack[o];else{let c=this.stack[o-3];this.state=h.getGoto(c,i,!0)}for(;this.stack.length>o;)this.stack.pop();this.reduceContext(i,a)}storeNode(t,e,s,i=4,h=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let r=this.buffer.length;if(r>0&&this.buffer[r-4]==0&&this.buffer[r-1]>-1){if(e==s)return;if(this.buffer[r-2]>=e){this.buffer[r-2]=s;return}}}if(!h||this.pos==s)this.buffer.push(t,e,s,i);else{let r=this.buffer.length;if(r>0&&(this.buffer[r-4]!=0||this.buffer[r-1]<0)){let n=!1;for(let o=r;o>0&&this.buffer[o-2]>s;o-=4)if(this.buffer[o-1]>=0){n=!0;break}if(n)for(;r>0&&this.buffer[r-2]>s;)this.buffer[r]=this.buffer[r-4],this.buffer[r+1]=this.buffer[r-3],this.buffer[r+2]=this.buffer[r-2],this.buffer[r+3]=this.buffer[r-1],r-=4,i>4&&(i-=4)}this.buffer[r]=t,this.buffer[r+1]=e,this.buffer[r+2]=s,this.buffer[r+3]=i}}shift(t,e,s,i){if(t&131072)this.pushState(t&65535,this.pos);else if((t&262144)==0){let h=t,{parser:r}=this.p;this.pos=i;let n=r.stateFlag(h,1);!n&&(i>s||e<=r.maxNode)&&(this.reducePos=i),this.pushState(h,n?s:Math.min(s,this.reducePos)),this.shiftContext(e,s),e<=r.maxNode&&this.buffer.push(e,s,i,4)}else this.pos=i,this.shiftContext(e,s),e<=this.p.parser.maxNode&&this.buffer.push(e,s,i,4)}apply(t,e,s,i){t&65536?this.reduce(t):this.shift(t,e,s,i)}useNode(t,e){let s=this.p.reused.length-1;(s<0||this.p.reused[s]!=t)&&(this.p.reused.push(t),s++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(e,i),this.buffer.push(s,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,e=t.buffer.length;for(e&&t.buffer[e-4]==0&&(e-=4);e>0&&t.buffer[e-2]>t.reducePos;)e-=4;let s=t.buffer.slice(e),i=t.bufferBase+e;for(;t&&i==t.bufferBase;)t=t.parent;return new v(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,s,i,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let s=t<=this.p.parser.maxNode;s&&this.storeNode(t,this.pos,e,4),this.storeNode(0,this.pos,e,s?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(t){for(let e=new U(this);;){let s=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(s==0)return!1;if((s&65536)==0)return!0;e.reduce(s)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){let i=[];for(let h=0,r;h<e.length;h+=2)(r=e[h+1])!=this.state&&this.p.parser.hasAction(r,t)&&i.push(e[h],r);if(this.stack.length<120)for(let h=0;i.length<8&&h<e.length;h+=2){let r=e[h+1];i.some((n,o)=>o&1&&n==r)||i.push(e[h],r)}e=i}let s=[];for(let i=0;i<e.length&&s.length<4;i+=2){let h=e[i+1];if(h==this.state)continue;let r=this.split();r.pushState(h,this.pos),r.storeNode(0,r.pos,r.pos,4,!0),r.shiftContext(e[i],this.pos),r.reducePos=this.pos,r.score-=200,s.push(r)}return s}forceReduce(){let{parser:t}=this.p,e=t.stateSlot(this.state,5);if((e&65536)==0)return!1;if(!t.validAction(this.state,e)){let s=e>>19,i=e&65535,h=this.stack.length-s*3;if(h<0||t.getGoto(this.stack[h],i,!1)<0){let r=this.findForcedReduction();if(r==null)return!1;e=r}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}findForcedReduction(){let{parser:t}=this.p,e=[],s=(i,h)=>{if(!e.includes(i))return e.push(i),t.allActions(i,r=>{if(!(r&393216))if(r&65536){let n=(r>>19)-h;if(n>1){let o=r&65535,a=this.stack.length-n*3;if(a>=0&&t.getGoto(this.stack[a],o,!1)>=0)return n<<19|65536|o}}else{let n=s(r,h+1);if(n!=null)return n}})};return s(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let e=0;e<this.stack.length;e+=3)if(this.stack[e]!=t.stack[e])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(t){return this.p.parser.dialect.flags[t]}shiftContext(t,e){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,t,this,this.p.stream.reset(e)))}reduceContext(t,e){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,t,this,this.p.stream.reset(e)))}emitContext(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(t){if(t!=this.curContext.context){let e=new R(this.curContext.tracker,t);e.hash!=this.curContext.hash&&this.emitContext(),this.curContext=e}}setLookAhead(t){return t<=this.lookAhead?!1:(this.emitLookAhead(),this.lookAhead=t,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class R{constructor(t,e){this.tracker=t,this.context=e,this.hash=t.strict?t.hash(e):0}}class U{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let e=t&65535,s=t>>19;s==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(s-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=i}}class A{constructor(t,e,s){this.stack=t,this.pos=e,this.index=s,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new A(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new A(this.stack,this.pos,this.index)}}function x(l,t=Uint16Array){if(typeof l!="string")return l;let e=null;for(let s=0,i=0;s<l.length;){let h=0;for(;;){let r=l.charCodeAt(s++),n=!1;if(r==126){h=65535;break}r>=92&&r--,r>=34&&r--;let o=r-32;if(o>=46&&(o-=46,n=!0),h+=o,n)break;h*=46}e?e[i++]=h:e=new t(h)}return e}class P{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const z=new P;class H{constructor(t,e){this.input=t,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=z,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(t,e){let s=this.range,i=this.rangeIndex,h=this.pos+t;for(;h<s.from;){if(!i)return null;let r=this.ranges[--i];h-=s.from-r.to,s=r}for(;e<0?h>s.to:h>=s.to;){if(i==this.ranges.length-1)return null;let r=this.ranges[++i];h+=r.from-s.to,s=r}return h}clipPos(t){if(t>=this.range.from&&t<this.range.to)return t;for(let e of this.ranges)if(e.to>t)return Math.max(t,e.from);return this.end}peek(t){let e=this.chunkOff+t,s,i;if(e>=0&&e<this.chunk.length)s=this.pos+t,i=this.chunk.charCodeAt(e);else{let h=this.resolveOffset(t,1);if(h==null)return-1;if(s=h,s>=this.chunk2Pos&&s<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(s-this.chunk2Pos);else{let r=this.rangeIndex,n=this.range;for(;n.to<=s;)n=this.ranges[++r];this.chunk2=this.input.chunk(this.chunk2Pos=s),s+this.chunk2.length>n.to&&(this.chunk2=this.chunk2.slice(0,n.to-s)),i=this.chunk2.charCodeAt(0)}}return s>=this.token.lookAhead&&(this.token.lookAhead=s+1),i}acceptToken(t,e=0){let s=e?this.resolveOffset(e,-1):this.pos;if(s==null||s<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=t,this.token.end=s}acceptTokenTo(t,e){this.token.value=t,this.token.end=e}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:t,chunkPos:e}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=t,this.chunk2Pos=e,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let t=this.input.chunk(this.pos),e=this.pos+t.length;this.chunk=e>this.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,e){if(e?(this.token=e,e.start=t,e.lookAhead=t+1,e.value=e.extended=-1):this.token=z,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;t>=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t<this.chunkPos+this.chunk.length?this.chunkOff=t-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(t,e){if(t>=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let s="";for(let i of this.ranges){if(i.from>=e)break;i.to>t&&(s+=this.input.read(Math.max(i.from,t),Math.min(i.to,e)))}return s}}class m{constructor(t,e){this.data=t,this.id=e}token(t,e){let{parser:s}=e.p;O(this.data,t,e,this.id,s.data,s.tokenPrecTable)}}m.prototype.contextual=m.prototype.fallback=m.prototype.extend=!1;class W{constructor(t,e,s){this.precTable=e,this.elseToken=s,this.data=typeof t=="string"?x(t):t}token(t,e){let s=t.pos,i=0;for(;;){let h=t.next<0,r=t.resolveOffset(1,1);if(O(this.data,t,e,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(h||i++,r==null)break;t.reset(r,t.token)}i&&(t.reset(s,t.token),t.acceptToken(this.elseToken,i))}}W.prototype.contextual=m.prototype.fallback=m.prototype.extend=!1;class Z{constructor(t,e={}){this.token=t,this.contextual=!!e.contextual,this.fallback=!!e.fallback,this.extend=!!e.extend}}function O(l,t,e,s,i,h){let r=0,n=1<<s,{dialect:o}=e.p.parser;t:for(;(n&l[r])!=0;){let a=l[r+1];for(let c=r+3;c<a;c+=2)if((l[c+1]&n)>0){let p=l[c];if(o.allows(p)&&(t.token.value==-1||t.token.value==p||q(p,t.token.value,i,h))){t.acceptToken(p);break}}let u=t.next,f=0,d=l[r+2];if(t.next<0&&d>f&&l[a+d*3-3]==65535){r=l[a+d*3-1];continue t}for(;f<d;){let c=f+d>>1,p=a+c+(c<<1),b=l[p],M=l[p+1]||65536;if(u<b)d=c;else if(u>=M)f=c+1;else{r=l[p+2],t.advance();continue t}}break}}function I(l,t,e){for(let s=t,i;(i=l[s])!=65535;s++)if(i==e)return s-t;return-1}function q(l,t,e,s){let i=I(e,s,t);return i<0||I(e,s,l)<i}const g=typeof process<"u"&&N&&/\bparse\b/.test(N.LOG);let T=null;function D(l,t,e){let s=l.cursor(G.IncludeAnonymous);for(s.moveTo(t);;)if(!(e<0?s.childBefore(t):s.childAfter(t)))for(;;){if((e<0?s.to<t:s.from>t)&&!s.type.isError)return e<0?Math.max(0,Math.min(s.to-1,t-25)):Math.min(l.length,Math.max(s.from+1,t+25));if(e<0?s.prevSibling():s.nextSibling())break;if(!s.parent())return e<0?0:l.length}}class J{constructor(t,e){this.fragments=t,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?D(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?D(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(t<this.nextStart)return null;for(;this.fragment&&this.safeTo<=t;)this.nextFragment();if(!this.fragment)return null;for(;;){let e=this.trees.length-1;if(e<0)return this.nextFragment(),null;let s=this.trees[e],i=this.index[e];if(i==s.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let h=s.children[i],r=this.start[e]+s.positions[i];if(r>t)return this.nextStart=r,null;if(h instanceof S){if(r==t){if(r<this.safeFrom)return null;let n=r+h.length;if(n<=this.safeTo){let o=h.prop(y.lookAhead);if(!o||n+o<this.fragment.to)return h}}this.index[e]++,r+h.length>=Math.max(this.safeFrom,t)&&(this.trees.push(h),this.start.push(r),this.index.push(0))}else this.index[e]++,this.nextStart=r+h.length}}}class K{constructor(t,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(s=>new P)}getActions(t){let e=0,s=null,{parser:i}=t.p,{tokenizers:h}=i,r=i.stateSlot(t.state,3),n=t.curContext?t.curContext.hash:0,o=0;for(let a=0;a<h.length;a++){if((1<<a&r)==0)continue;let u=h[a],f=this.tokens[a];if(!(s&&!u.fallback)&&((u.contextual||f.start!=t.pos||f.mask!=r||f.context!=n)&&(this.updateCachedToken(f,u,t),f.mask=r,f.context=n),f.lookAhead>f.end+25&&(o=Math.max(f.lookAhead,o)),f.value!=0)){let d=e;if(f.extended>-1&&(e=this.addActions(t,f.extended,f.end,e)),e=this.addActions(t,f.value,f.end,e),!u.extend&&(s=f,e>d))break}}for(;this.actions.length>e;)this.actions.pop();return o&&t.setLookAhead(o),!s&&t.pos==this.stream.end&&(s=new P,s.value=t.p.parser.eofTerm,s.start=s.end=t.pos,e=this.addActions(t,s.value,s.end,e)),this.mainToken=s,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new P,{pos:s,p:i}=t;return e.start=s,e.end=Math.min(s+1,i.stream.end),e.value=s==i.stream.end?i.parser.eofTerm:0,e}updateCachedToken(t,e,s){let i=this.stream.clipPos(s.pos);if(e.token(this.stream.reset(i,t),s),t.value>-1){let{parser:h}=s.p;for(let r=0;r<h.specialized.length;r++)if(h.specialized[r]==t.value){let n=h.specializers[r](this.stream.read(t.start,t.end),s);if(n>=0&&s.p.parser.dialect.allows(n>>1)){(n&1)==0?t.value=n>>1:t.extended=n>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,e,s,i){for(let h=0;h<i;h+=3)if(this.actions[h]==t)return i;return this.actions[i++]=t,this.actions[i++]=e,this.actions[i++]=s,i}addActions(t,e,s,i){let{state:h}=t,{parser:r}=t.p,{data:n}=r;for(let o=0;o<2;o++)for(let a=r.stateSlot(h,o?2:1);;a+=3){if(n[a]==65535)if(n[a+1]==1)a=k(n,a+2);else{i==0&&n[a+1]==2&&(i=this.putAction(k(n,a+2),e,s,i));break}n[a]==e&&(i=this.putAction(k(n,a+1),e,s,i))}return i}}class Q{constructor(t,e,s,i){this.parser=t,this.input=e,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new H(e,i),this.tokens=new K(t,this.stream),this.topTerm=t.top[1];let{from:h}=i[0];this.stacks=[v.start(this,t.top[0],h)],this.fragments=s.length&&this.stream.end-h>t.bufferLength*4?new J(s,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,e=this.minStackPos,s=this.stacks=[],i,h;if(this.bigReductionCount>300&&t.length==1){let[r]=t;for(;r.forceReduce()&&r.stack.length&&r.stack[r.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let r=0;r<t.length;r++){let n=t[r];for(;;){if(this.tokens.mainToken=null,n.pos>e)s.push(n);else{if(this.advanceStack(n,s,t))continue;{i||(i=[],h=[]),i.push(n);let o=this.tokens.getMainToken(n);h.push(o.value,o.end)}}break}}if(!s.length){let r=i&&X(i);if(r)return g&&console.log("Finish with "+this.stackID(r)),this.stackToTree(r);if(this.parser.strict)throw g&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+e);this.recovering||(this.recovering=5)}if(this.recovering&&i){let r=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,h,s);if(r)return g&&console.log("Force-finish "+this.stackID(r)),this.stackToTree(r.forceAll())}if(this.recovering){let r=this.recovering==1?1:this.recovering*3;if(s.length>r)for(s.sort((n,o)=>o.score-n.score);s.length>r;)s.pop();s.some(n=>n.reducePos>e)&&this.recovering--}else if(s.length>1){t:for(let r=0;r<s.length-1;r++){let n=s[r];for(let o=r+1;o<s.length;o++){let a=s[o];if(n.sameState(a)||n.buffer.length>500&&a.buffer.length>500)if((n.score-a.score||n.buffer.length-a.buffer.length)>0)s.splice(o--,1);else{s.splice(r--,1);continue t}}}s.length>12&&(s.sort((r,n)=>n.score-r.score),s.splice(12,s.length-12))}this.minStackPos=s[0].pos;for(let r=1;r<s.length;r++)s[r].pos<this.minStackPos&&(this.minStackPos=s[r].pos);return null}stopAt(t){if(this.stoppedAt!=null&&this.stoppedAt<t)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=t}advanceStack(t,e,s){let i=t.pos,{parser:h}=this,r=g?this.stackID(t)+" -> ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let a=t.curContext&&t.curContext.tracker.strict,u=a?t.curContext.hash:0;for(let f=this.fragments.nodeAt(i);f;){let d=this.parser.nodeSet.types[f.type.id]==f.type?h.getGoto(t.state,f.type.id):-1;if(d>-1&&f.length&&(!a||(f.prop(y.contextHash)||0)==u))return t.useNode(f,d),g&&console.log(r+this.stackID(t)+` (via reuse of ${h.getName(f.type.id)})`),!0;if(!(f instanceof S)||f.children.length==0||f.positions[0]>0)break;let c=f.children[0];if(c instanceof S&&f.positions[0]==0)f=c;else break}}let n=h.stateSlot(t.state,4);if(n>0)return t.reduce(n),g&&console.log(r+this.stackID(t)+` (via always-reduce ${h.getName(n&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let o=this.tokens.getActions(t);for(let a=0;a<o.length;){let u=o[a++],f=o[a++],d=o[a++],c=a==o.length||!s,p=c?t:t.split(),b=this.tokens.mainToken;if(p.apply(u,f,b?b.start:p.pos,d),g&&console.log(r+this.stackID(p)+` (via ${(u&65536)==0?"shift":`reduce of ${h.getName(u&65535)}`} for ${h.getName(f)} @ ${i}${p==t?"":", split"})`),c)return!0;p.pos>i?e.push(p):s.push(p)}return!1}advanceFully(t,e){let s=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>s)return B(t,e),!0}}runRecovery(t,e,s){let i=null,h=!1;for(let r=0;r<t.length;r++){let n=t[r],o=e[r<<1],a=e[(r<<1)+1],u=g?this.stackID(n)+" -> ":"";if(n.deadEnd&&(h||(h=!0,n.restart(),g&&console.log(u+this.stackID(n)+" (restarted)"),this.advanceFully(n,s))))continue;let f=n.split(),d=u;for(let c=0;c<10&&f.forceReduce()&&(g&&console.log(d+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,s));c++)g&&(d=this.stackID(f)+" -> ");for(let c of n.recoverByInsert(o))g&&console.log(u+this.stackID(c)+" (via recover-insert)"),this.advanceFully(c,s);this.stream.end>n.pos?(a==n.pos&&(a++,o=0),n.recoverByDelete(o,a),g&&console.log(u+this.stackID(n)+` (via recover-delete ${this.parser.getName(o)})`),B(n,s)):(!i||i.score<f.score)&&(i=f)}return i}stackToTree(t){return t.close(),S.build({buffer:A.create(t),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:t.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(t){let e=(T||(T=new WeakMap)).get(t);return e||T.set(t,e=String.fromCodePoint(this.nextStackID++)),e+t}}function B(l,t){for(let e=0;e<t.length;e++){let s=t[e];if(s.pos==l.pos&&s.sameState(l)){t[e].score<l.score&&(t[e]=l);return}}t.push(l)}class V{constructor(t,e,s){this.source=t,this.flags=e,this.disabled=s}allows(t){return!this.disabled||this.disabled[t]==0}}const C=l=>l;class _{constructor(t){this.start=t.start,this.shift=t.shift||C,this.reduce=t.reduce||C,this.reuse=t.reuse||C,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class w extends L{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let e=t.nodeNames.split(" ");this.minRepeatTerm=e.length;for(let n=0;n<t.repeatNodeCount;n++)e.push("");let s=Object.keys(t.topRules).map(n=>t.topRules[n][1]),i=[];for(let n=0;n<e.length;n++)i.push([]);function h(n,o,a){i[n].push([o,o.deserialize(String(a))])}if(t.nodeProps)for(let n of t.nodeProps){let o=n[0];typeof o=="string"&&(o=y[o]);for(let a=1;a<n.length;){let u=n[a++];if(u>=0)h(u,o,n[a++]);else{let f=n[a+-u];for(let d=-u;d>0;d--)h(n[a++],o,f);a++}}}this.nodeSet=new $(e.map((n,o)=>E.define({name:o>=this.minRepeatTerm?void 0:n,id:o,props:i[o],top:s.indexOf(o)>-1,error:o==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(o)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=j;let r=x(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let n=0;n<this.specializerSpecs.length;n++)this.specialized[n]=this.specializerSpecs[n].term;this.specializers=this.specializerSpecs.map(F),this.states=x(t.states,Uint32Array),this.data=x(t.stateData),this.goto=x(t.goto),this.maxTerm=t.maxTerm,this.tokenizers=t.tokenizers.map(n=>typeof n=="number"?new m(r,n):n),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,e,s){let i=new Q(this,t,e,s);for(let h of this.wrappers)i=h(i,t,e,s);return i}getGoto(t,e,s=!1){let i=this.goto;if(e>=i[0])return-1;for(let h=i[e+1];;){let r=i[h++],n=r&1,o=i[h++];if(n&&s)return o;for(let a=h+(r>>1);h<a;h++)if(i[h]==t)return o;if(n)return-1}}hasAction(t,e){let s=this.data;for(let i=0;i<2;i++)for(let h=this.stateSlot(t,i?2:1),r;;h+=3){if((r=s[h])==65535)if(s[h+1]==1)r=s[h=k(s,h+2)];else{if(s[h+1]==2)return k(s,h+2);break}if(r==e||r==0)return k(s,h+1)}return 0}stateSlot(t,e){return this.states[t*6+e]}stateFlag(t,e){return(this.stateSlot(t,0)&e)>0}validAction(t,e){return!!this.allActions(t,s=>s==e?!0:null)}allActions(t,e){let s=this.stateSlot(t,4),i=s?e(s):void 0;for(let h=this.stateSlot(t,1);i==null;h+=3){if(this.data[h]==65535)if(this.data[h+1]==1)h=k(this.data,h+2);else break;i=e(k(this.data,h+1))}return i}nextStates(t){let e=[];for(let s=this.stateSlot(t,1);;s+=3){if(this.data[s]==65535)if(this.data[s+1]==1)s=k(this.data,s+2);else break;if((this.data[s+2]&1)==0){let i=this.data[s+1];e.some((h,r)=>r&1&&h==i)||e.push(this.data[s],i)}}return e}configure(t){let e=Object.assign(Object.create(w.prototype),this);if(t.props&&(e.nodeSet=this.nodeSet.extend(...t.props)),t.top){let s=this.topRules[t.top];if(!s)throw new RangeError(`Invalid top rule name ${t.top}`);e.top=s}return t.tokenizers&&(e.tokenizers=this.tokenizers.map(s=>{let i=t.tokenizers.find(h=>h.from==s);return i?i.to:s})),t.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map((s,i)=>{let h=t.specializers.find(n=>n.from==s.external);if(!h)return s;let r=Object.assign(Object.assign({},s),{external:h.to});return e.specializers[i]=F(r),r})),t.contextTracker&&(e.context=t.contextTracker),t.dialect&&(e.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(e.strict=t.strict),t.wrap&&(e.wrappers=e.wrappers.concat(t.wrap)),t.bufferLength!=null&&(e.bufferLength=t.bufferLength),e}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let e=this.dynamicPrecedences;return e==null?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),s=e.map(()=>!1);if(t)for(let h of t.split(" ")){let r=e.indexOf(h);r>=0&&(s[r]=!0)}let i=null;for(let h=0;h<e.length;h++)if(!s[h])for(let r=this.dialects[e[h]],n;(n=this.data[r++])!=65535;)(i||(i=new Uint8Array(this.maxTerm+1)))[n]=1;return new V(t,s,i)}static deserialize(t){return new w(t)}}function k(l,t){return l[t]|l[t+1]<<16}function X(l){let t=null;for(let e of l){let s=e.p.stoppedAt;(e.pos==e.p.stream.end||s!=null&&e.pos>s)&&e.p.parser.stateFlag(e.state,2)&&(!t||t.score<e.score)&&(t=e)}return t}function F(l){if(l.external){let t=l.extend?1:0;return(e,s)=>l.external(e,s)<<1|t}return l.get}export{_ as C,Z as E,w as L,W as a};
|