@datalayer/agent-runtimes 1.6.72 → 1.6.76
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-embed/chunks/{AgentDetails-JEKCQYM4.js → AgentDetails-LhuDov4Q.js} +1 -1
- package/dist-embed/chunks/{AgentDetailsDialog-NAMvdHyL.js → AgentDetailsDialog-DMTVgMus.js} +1 -1
- package/dist-embed/chunks/AgentInspector-DwJHlEsw.js +1 -0
- package/dist-embed/chunks/{AgentInspectorDialog-CyHzEFe4.js → AgentInspectorDialog-WpVv_yIt.js} +1 -1
- package/dist-embed/chunks/{CellSidebarExtension-Dx_Rm2j5.js → CellSidebarExtension-DwGg7VbR.js} +7 -7
- package/dist-embed/chunks/{ChatView-IgMCIcQU.js → ChatView-eRieNBDa.js} +1 -1
- package/dist-embed/chunks/{CollapsiblePlugin-Cw8Q8IWz.js → CollapsiblePlugin-DS2HZl7a.js} +1 -1
- package/dist-embed/chunks/{ContextPie-krf-G4Ja.js → ContextPie-C0N8hwmj.js} +1 -1
- package/dist-embed/chunks/{DeckComponent-CGTzTPwI.js → DeckComponent-1aJoEglD.js} +2 -2
- package/dist-embed/chunks/{DocumentView-BM7pVo1r.js → DocumentView-CaVDL8X7.js} +1 -1
- package/dist-embed/chunks/{EphemeralDocument--_i7ghFX.js → EphemeralDocument-SeXQLZbi.js} +1 -1
- package/dist-embed/chunks/{EphemeralNotebook-DVY3SPVf.js → EphemeralNotebook-DrL1r8Nx.js} +1 -1
- package/dist-embed/chunks/{ExcalidrawComponent-CGM8z5XO.js → ExcalidrawComponent-CoZvA0u7.js} +1 -1
- package/dist-embed/chunks/{ExcalidrawModal-4MXeDi6L.js → ExcalidrawModal-Czd2Kx8H.js} +1 -1
- package/dist-embed/chunks/{JupyterLexicalExtension-BGj3tSI6.js → JupyterLexicalExtension-Du1Loz2o.js} +29 -29
- package/dist-embed/chunks/{KernelVariables-DLBQe0HT.js → KernelVariables-CmWkosM8.js} +1 -1
- package/dist-embed/chunks/{LexicalToolRegistry-CxKoI0Fi.js → LexicalToolRegistry-BZUJ9wvF.js} +1 -1
- package/dist-embed/chunks/{NotebookToolSurfaces-BcUESGXl.js → NotebookToolSurfaces-m37Crb7c.js} +1 -1
- package/dist-embed/chunks/{NotebookView-CyxaVN-O.js → NotebookView-DeCxHOph.js} +1 -1
- package/dist-embed/chunks/{Output-DePHyrJp.js → Output-CJVIj3Io.js} +6 -6
- package/dist-embed/chunks/{SandboxDetailsDialog-V-oSQL_u.js → SandboxDetailsDialog-B4_0r2A_.js} +1 -1
- package/dist-embed/chunks/{SchemaForm-Cnusp_g9.js → SchemaForm-9JmMbUiD.js} +1 -1
- package/dist-embed/chunks/{SheetTabs-wZqQpkX8.js → SheetTabs-DJLVReVo.js} +2 -2
- package/dist-embed/chunks/{SpreadsheetPreviewView-DljhwLEp.js → SpreadsheetPreviewView-BGdz5D65.js} +1 -1
- package/dist-embed/chunks/{SpreadsheetView-BuUfKXea.js → SpreadsheetView-BvCWGCsx.js} +1 -1
- package/dist-embed/chunks/{WidgetVariableView-C-NLJIdO.js → WidgetVariableView-B9KgSbhv.js} +1 -1
- package/dist-embed/chunks/{YouTubePlugin-CasHY3Io.js → YouTubePlugin-DtVTIrdm.js} +1 -1
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-Din4lNdn.js → abnfDiagram-VCTEODGH-BG9Jt7Hr.js} +1 -1
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-GnaR64st.js → abnfDiagram-VCTEODGH-CvZ8usho.js} +1 -1
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-BSmEjUJk.js → abnfDiagram-VCTEODGH-DN0kRlog.js} +1 -1
- package/dist-embed/chunks/{ar-SA-G6X2FPQ2-DxZmaXSr.js → ar-SA-G6X2FPQ2-C-nP9nq8.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-B0gp8U3r.js → architectureDiagram-5GKGNRK7-87FtCsnw.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-ByAYkSMW.js → architectureDiagram-5GKGNRK7-Bwqgkba9.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-Cy6c9GhS.js → architectureDiagram-5GKGNRK7-DRfUn2vu.js} +1 -1
- package/dist-embed/chunks/{az-AZ-76LH7QW2-D6_hI1qP.js → az-AZ-76LH7QW2-WoAwmwN_.js} +1 -1
- package/dist-embed/chunks/{bg-BG-XCXSNQG7-DD3spkPC.js → bg-BG-XCXSNQG7-SLqAK6qo.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-868be97b-SJGV5uMV.js → blockDiagram-868be97b-CH6k87Wa.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-CJlW5z_T.js → blockDiagram-I7D4REHJ-BWHrrqXo.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-zXh6gZYF.js → blockDiagram-I7D4REHJ-BjLfxD7u.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-Clrwi7_Q.js → blockDiagram-I7D4REHJ-DUfJri3_.js} +1 -1
- package/dist-embed/chunks/{bn-BD-2XOGV67Q-H0zOOYPr.js → bn-BD-2XOGV67Q-DfCeTaG1.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-3f4bdde3-CXvPU5ga.js → c4Diagram-3f4bdde3-ufrtLRrD.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-p14SIG7V.js → c4Diagram-7LVT6UL2-BK8yvli2.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-CZvEIDdH.js → c4Diagram-7LVT6UL2-C-0ZQ8Xa.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-BWQ9xHoN.js → c4Diagram-7LVT6UL2-O_rZefrz.js} +1 -1
- package/dist-embed/chunks/{ca-ES-6MX7JW3Y-DQlAuxYC.js → ca-ES-6MX7JW3Y-1rV8dCez.js} +1 -1
- package/dist-embed/chunks/{celltoolbartracker-D5H7qtOH.js → celltoolbartracker-B_UScIax.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-DXFGVRZV.js → chunk-2Q5K7J3B-BFUbUsBE.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-BkzWX8eg.js → chunk-2Q5K7J3B-BX9u1bBi.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-CWx-QJ0-.js → chunk-2Q5K7J3B-DiqqlJZw.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-Ciba-ybC.js → chunk-5VM5RSS4-BbOPwJfe.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-DgSzeVg9.js → chunk-5VM5RSS4-D4N_xxBJ.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-O8p7luYq.js → chunk-5VM5RSS4-box8kQsT.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-Bo5boRfj.js → chunk-F27PBJKO-BUeWPnw5.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-CZHz6AS9.js → chunk-F27PBJKO-CQM02DXR.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-BzBvJLmh.js → chunk-F27PBJKO-DPF3nC8g.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-BJR6rkFo.js → chunk-IMKFNOWR-CPIe37ka.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-DODKl-4z.js → chunk-IMKFNOWR-DAOxV09i.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-Csfu1kFU.js → chunk-IMKFNOWR-rg2BEcj6.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-BVXd-ICe.js → chunk-JWPE2WC7-BGdc9-bH.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-Bf4pFlIJ.js → chunk-JWPE2WC7-NvLQtuoq.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-nWjEvJWR.js → chunk-JWPE2WC7-QIDUQRBr.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-DhNnPwZp.js → chunk-POPQ4Y6H-BgR92oKl.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-DsBRlZYP.js → chunk-POPQ4Y6H-Cl1oUaAM.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-s1yt1ZtK.js → chunk-POPQ4Y6H-DWWKSDND.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-CsFEUe5B.js → chunk-SVP7TREG-BGHt1HDi.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-4yrBA5Q8.js → chunk-SVP7TREG-DtwPtAP8.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-8oKVa2mm.js → chunk-SVP7TREG-lMq3S-u-.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-InZQ5ZEH.js → chunk-TICWLB2K-BdUzhQPw.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-Br51vTwj.js → chunk-TICWLB2K-CaVrVRpm.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-CSCMv_QA.js → chunk-TICWLB2K-D6WJ64X6.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-Y8pSpMzF.js → chunk-XXDRQBXY-BU32lP3z.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-sm2AIgJ5.js → chunk-XXDRQBXY-CjAMT3RS.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-B76itibr.js → chunk-XXDRQBXY-CtNPThT-.js} +1 -1
- package/dist-embed/chunks/{classDiagram-ZZMXUADV-CoxSb8Y6.js → classDiagram-ZZMXUADV-9x2pAf81.js} +1 -1
- package/dist-embed/chunks/{classDiagram-ZZMXUADV-BjEOw29S.js → classDiagram-ZZMXUADV-Cy9bb-Ja.js} +1 -1
- package/dist-embed/chunks/{classDiagram-ZZMXUADV-G9WI_1Zg.js → classDiagram-ZZMXUADV-HBhnoh6h.js} +1 -1
- package/dist-embed/chunks/{classDiagram-f62afe4f-C7V9AhQG.js → classDiagram-f62afe4f-DKREECyJ.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-604399ef-D5fT6Dr7.js → classDiagram-v2-604399ef-CQ5TgOQe.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-CoxSb8Y6.js → classDiagram-v2-VYDZK3BY-9x2pAf81.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-BjEOw29S.js → classDiagram-v2-VYDZK3BY-Cy9bb-Ja.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-G9WI_1Zg.js → classDiagram-v2-VYDZK3BY-HBhnoh6h.js} +1 -1
- package/dist-embed/chunks/{code-block-IT6T5CEO-C2SgK78N.js → code-block-IT6T5CEO-B1q5VFMK.js} +1 -1
- package/dist-embed/chunks/{component-D06eSJe4.js → component-CHd9jmXQ.js} +1 -1
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-C73aLaB-.js → cose-bilkent-JH36ORCC-DFWJgtSE.js} +1 -1
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-DCtKiRmD.js → cose-bilkent-JH36ORCC-DGrxjlJ4.js} +1 -1
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-3hKxz2TJ.js → cose-bilkent-JH36ORCC-F97qu5nX.js} +1 -1
- package/dist-embed/chunks/{createText-aed3d8b3-BW8KnfYh.js → createText-aed3d8b3-B1Tmb4Mr.js} +1 -1
- package/dist-embed/chunks/{cs-CZ-2BRQDIVT-DF0QlWYl.js → cs-CZ-2BRQDIVT-SF5YII-L.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-BSwaTAfL.js → cynefinDiagram-5FMLGOSQ-BZ1LtKUy.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-NWammrfO.js → cynefinDiagram-5FMLGOSQ-CR7crOrC.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-DLyDkFEh.js → cynefinDiagram-5FMLGOSQ-DhFh7Gts.js} +1 -1
- package/dist-embed/chunks/{da-DK-5WZEPLOC-DZpohvgg.js → da-DK-5WZEPLOC-nd3n1KuA.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-CPu-St26.js → dagre-GXQ25YYZ-4P90jeEC.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-ZuXkHh9P.js → dagre-GXQ25YYZ-BpWd0wTo.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-DTWZ8vY1.js → dagre-GXQ25YYZ-MXGi4287.js} +1 -1
- package/dist-embed/chunks/{de-DE-XR44H4JA-BcvwLNFI.js → de-DE-XR44H4JA-DxoPxuG0.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-ERKr1j6v.js → diagram-S7CK7UJ4-Ccq8-Zxr.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-RBcSDktx.js → diagram-S7CK7UJ4-DhLnfG8J.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-ewBgYmRN.js → diagram-S7CK7UJ4-xgW0lqt_.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-B-f2Afei.js → diagram-UQ7AKVKN-Csc8IuSs.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-CGNA7gub.js → diagram-UQ7AKVKN-DM05uJg0.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-BQVu3Qe-.js → diagram-UQ7AKVKN-vfaPVBIp.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-GkbP6NMy.js → diagram-VSXAHHWV-BpkflTV8.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-DRVoe_PH.js → diagram-VSXAHHWV-C0Dte6B4.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-CTQu2IBp.js → diagram-VSXAHHWV-ChcqzpvG.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-CaynSBjY.js → diagram-VX7I27RA-D3eZ6yyK.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-B_LkfTnq.js → diagram-VX7I27RA-DA3s85ZI.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-DHwSWNj4.js → diagram-VX7I27RA-DFBWpFKi.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-BSrrfEXq.js → diagram-Z3DM3KII-BPDco9BP.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-D0Xt6xwn.js → diagram-Z3DM3KII-CWv5dRb1.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-BZ9tmKdd.js → diagram-Z3DM3KII-DpwpLNON.js} +1 -1
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-CqUNJWps.js → ebnfDiagram-PWID7BFC-BrHZve2O.js} +1 -1
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-DN2tb-X8.js → ebnfDiagram-PWID7BFC-CeZcQDV3.js} +1 -1
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-Dk5WVIim.js → ebnfDiagram-PWID7BFC-ZbRTmpLY.js} +1 -1
- package/dist-embed/chunks/{edges-b2856ca0-C7Oyg_aM.js → edges-b2856ca0-CHQtJW0X.js} +1 -1
- package/dist-embed/chunks/{el-GR-BZB4AONW-BFYxkU9G.js → el-GR-BZB4AONW-B_p1F0WP.js} +1 -1
- package/dist-embed/chunks/{erDiagram-5d81789a-ow68WqFY.js → erDiagram-5d81789a-7uQXDmYP.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-BsU1EeJN.js → erDiagram-RLTQ6QDP-CmahDLTF.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-Dk34WMaW.js → erDiagram-RLTQ6QDP-DO7X3O5w.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-BTXMcY7Y.js → erDiagram-RLTQ6QDP-QI_LQlaL.js} +1 -1
- package/dist-embed/chunks/{es-ES-U4NZUMDT-DfsrGpW8.js → es-ES-U4NZUMDT-BWCUsoic.js} +1 -1
- package/dist-embed/chunks/{esm-BuDeg2OK.js → esm-M4z_FfnQ.js} +1 -1
- package/dist-embed/chunks/{esm-8_0YCB2q.js → esm-itrlzhnT.js} +1 -1
- package/dist-embed/chunks/{eu-ES-A7QVB2H4-C4M9A--a.js → eu-ES-A7QVB2H4-QqCRXKSF.js} +1 -1
- package/dist-embed/chunks/{fa-IR-HGAKTJCU-Dz5YhtO5.js → fa-IR-HGAKTJCU-C0NVSF_c.js} +1 -1
- package/dist-embed/chunks/{fi-FI-Z5N7JZ37-XjyQSB_d.js → fi-FI-Z5N7JZ37-BP_C4Wwz.js} +1 -1
- package/dist-embed/chunks/{flowDb-185abca5-Cs4mMxhw.js → flowDb-185abca5-BmhWH32g.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-1629c991-CHvSNikI.js → flowDiagram-1629c991-oMWtc4C3.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-DP1PWdQF.js → flowDiagram-HODETNUW-CgvZqEVs.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-DNjEQlAR.js → flowDiagram-HODETNUW-CmuRDMmw.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-DXLXSKI7.js → flowDiagram-HODETNUW-Cy-T1qw4.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-v2-1d953310-eV94YCy9.js → flowDiagram-v2-1d953310-OG6RhgdC.js} +1 -1
- package/dist-embed/chunks/{flowchart-elk-definition-6df44142-6xYb0NnW.js → flowchart-elk-definition-6df44142-I8LO2x_c.js} +1 -1
- package/dist-embed/chunks/{fr-FR-RHASNOE6-VH6OvmOI.js → fr-FR-RHASNOE6-B1_hgegA.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-3b0b3873-BplyF8AP.js → ganttDiagram-3b0b3873-Ch394Td4.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-DmwhuzrV.js → ganttDiagram-EL5Y4UJY-DjmeWOsd.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-UWTfR8VF.js → ganttDiagram-EL5Y4UJY-iVAJV8uC.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-Qz5HuyzZ.js → ganttDiagram-EL5Y4UJY-sX30iW6f.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-CF5nE-hV.js → gitGraphDiagram-WWUBYQGX-BuldyYGe.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-BUlSUrle.js → gitGraphDiagram-WWUBYQGX-CVcSYkDK.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-kicEF2lX.js → gitGraphDiagram-WWUBYQGX-CeOMDDRZ.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-f01e8bc2-Bhx3RNmO.js → gitGraphDiagram-f01e8bc2-CfNzWqtG.js} +1 -1
- package/dist-embed/chunks/{gl-ES-HMX3MZ6V-DD5-fm7n.js → gl-ES-HMX3MZ6V-BhVM3-ho.js} +1 -1
- package/dist-embed/chunks/{he-IL-6SHJWFNN-CJ6dYqWM.js → he-IL-6SHJWFNN-oud0_kOl.js} +1 -1
- package/dist-embed/chunks/{hi-IN-IWLTKZ5I-CGMlTAed.js → hi-IN-IWLTKZ5I-CD6iySjh.js} +1 -1
- package/dist-embed/chunks/{hu-HU-A5ZG7DT2-B62Sv99K.js → hu-HU-A5ZG7DT2-DXuEZMlE.js} +1 -1
- package/dist-embed/chunks/{id-ID-SAP4L64H-OcuSDAR-.js → id-ID-SAP4L64H-C-E1a9_p.js} +1 -1
- package/dist-embed/chunks/{index-Botot3k_.js → index-86hxexQA.js} +2 -2
- package/dist-embed/chunks/{index-9bae90f3-C-Eph-LM.js → index-9bae90f3-BZE71ijg.js} +1 -1
- package/dist-embed/chunks/{index-QUGTBUbz.js → index-BMY48-7N.js} +2 -2
- package/dist-embed/chunks/{index-Df2MkvAW.js → index-CLB4KPZs.js} +4 -4
- package/dist-embed/chunks/{index-D-tu7af7.js → index-CShCHnof.js} +1 -1
- package/dist-embed/chunks/{index-B9R5Oy-_.js → index-CXSUknte.js} +1 -1
- package/dist-embed/chunks/{index-CzDD-mUF.js → index-CaEDkyBB.js} +2 -2
- package/dist-embed/chunks/{index-DjDXWGO2.js → index-CvKH_NYI.js} +2 -2
- package/dist-embed/chunks/{index-BBAQAg8z.js → index-DakHBTji.js} +1 -1
- package/dist-embed/chunks/{index-DObGLuCI.js → index-s25RSqvt.js} +4 -4
- package/dist-embed/chunks/{index.esm-Ct20ZUrP.js → index.esm-CDmg415B.js} +1 -1
- package/dist-embed/chunks/{index.esm-KJZmBZvS.js → index.esm-tNe_Tes8.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-DGlJ7Q80.js → infoDiagram-27XIBGKW-CJ3r0yt4.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-Cs7bZlH6.js → infoDiagram-27XIBGKW-ZpA0pyod.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-B4XVsJvC.js → infoDiagram-27XIBGKW-r53wKy7u.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-a29d40f1-qBdv4q0h.js → infoDiagram-a29d40f1-SCeFVgXv.js} +1 -1
- package/dist-embed/chunks/{isEqual-ZTQsAovp.js → isEqual-DXPB_0fo.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-HBIqRNLh.js → ishikawaDiagram-5VMMS53U-CvqPw0ea.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-BIytcjnR.js → ishikawaDiagram-5VMMS53U-DZTg3ecD.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-BB-Kv-Mj.js → ishikawaDiagram-5VMMS53U-DyyVsa6G.js} +1 -1
- package/dist-embed/chunks/{it-IT-JPQ66NNP-1UkMde1K.js → it-IT-JPQ66NNP-iU7kI7qX.js} +1 -1
- package/dist-embed/chunks/{ja-JP-DBVTYXUO-ZHmHs3WT.js → ja-JP-DBVTYXUO-CgiuMyHB.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-C3yCP95B.js → journeyDiagram-3NMN7TZE-Bc9JVKJo.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-Bs6ObzT9.js → journeyDiagram-3NMN7TZE-DAnc386V.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-DEtcUVr2.js → journeyDiagram-3NMN7TZE-MiKYaC2s.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-95396277-D89HQ4tg.js → journeyDiagram-95396277-DT_97eTw.js} +1 -1
- package/dist-embed/chunks/{kaa-6HZHGXH3-C57X5Q7d.js → kaa-6HZHGXH3-kCO_bmZz.js} +1 -1
- package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-BUnQ_56J.js → kab-KAB-ZGHBKWFO-XZlP8YRp.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-CWfihtP5.js → kanban-definition-UXKFOSKX-BkReeSIH.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-_mcHB773.js → kanban-definition-UXKFOSKX-C2nVULib.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-B9DSJpj9.js → kanban-definition-UXKFOSKX-CaaDxJqC.js} +1 -1
- package/dist-embed/chunks/{kk-KZ-P5N5QNE5-CBp9NICk.js → kk-KZ-P5N5QNE5-BYUwHB4m.js} +1 -1
- package/dist-embed/chunks/{km-KH-HSX4SM5Z-MPn8eiKl.js → km-KH-HSX4SM5Z-CUO0IDD-.js} +1 -1
- package/dist-embed/chunks/{ko-KR-MTYHY66A-DqUfCjgF.js → ko-KR-MTYHY66A-CuR4MTdp.js} +1 -1
- package/dist-embed/chunks/{ku-TR-6OUDTVRD-BhyGSJkh.js → ku-TR-6OUDTVRD-CuFtqN6b.js} +1 -1
- package/dist-embed/chunks/{layout-XFc4Od7Z.js → layout-BD_a0kBf.js} +1 -1
- package/dist-embed/chunks/{layout-DTdkd155.js → layout-BjpOdFu2.js} +1 -1
- package/dist-embed/chunks/{layout-D_LOxL0l.js → layout-DQIVAfpO.js} +1 -1
- package/dist-embed/chunks/{lexicalHooks-0KfusRdE.js → lexicalHooks-BM3oRORX.js} +1 -1
- package/dist-embed/chunks/{lib-qL5koKak.js → lib-0t46pS-5.js} +1 -1
- package/dist-embed/chunks/{lib-r8emmCZN.js → lib-B5XoICB9.js} +1 -1
- package/dist-embed/chunks/{lib-DLVOFtf2.js → lib-BXb6Der8.js} +1 -1
- package/dist-embed/chunks/{lib-BuNapvTN.js → lib-BZnIPSNY.js} +1 -1
- package/dist-embed/chunks/{lib-B8QeIpMg.js → lib-B_ADtK-Y.js} +1 -1
- package/dist-embed/chunks/{lib-BKRN5rY4.js → lib-Bf4e9-pt.js} +1 -1
- package/dist-embed/chunks/{lib-5puVfbvR.js → lib-Bj6VnDnz.js} +1 -1
- package/dist-embed/chunks/{lib-B0-V3yWM.js → lib-Bx0zoo2z.js} +1 -1
- package/dist-embed/chunks/{lib-1k8qJMow.js → lib-CBlEbdz_.js} +1 -1
- package/dist-embed/chunks/{lib-DGXPl5aF.js → lib-CEAQckSu.js} +1 -1
- package/dist-embed/chunks/{lib-BDCbvZ5k.js → lib-CJ9ULCcA.js} +1 -1
- package/dist-embed/chunks/{lib-CJ1wJo-A.js → lib-CXURv0CD.js} +1 -1
- package/dist-embed/chunks/{lib-CG1c2su0.js → lib-CqNuA7eJ.js} +1 -1
- package/dist-embed/chunks/{lib-D8ZZk58r.js → lib-CtFV0V1H.js} +11 -11
- package/dist-embed/chunks/{lib-CDTJBLjs.js → lib-DXoXqPR6.js} +4 -4
- package/dist-embed/chunks/{lib-B5oYQnVZ.js → lib-Dfg3vZM8.js} +1 -1
- package/dist-embed/chunks/{lib-D0_SMUcl.js → lib-QwGhpmEd.js} +1 -1
- package/dist-embed/chunks/{lib-eUsLplee.js → lib-WvggSsMk.js} +1 -1
- package/dist-embed/chunks/{lib-M0p61UIz.js → lib-Yguxonvz.js} +1 -1
- package/dist-embed/chunks/{lib-CSk1FKf1.js → lib-eeN6DkZa.js} +1 -1
- package/dist-embed/chunks/{lt-LT-XHIRWOB4-DnzpQbb1.js → lt-LT-XHIRWOB4-TpyDKA3C.js} +1 -1
- package/dist-embed/chunks/{lv-LV-5QDEKY6T-CdDJ-bA0.js → lv-LV-5QDEKY6T-Dz0_ikqR.js} +1 -1
- package/dist-embed/chunks/{mermaid.core-gUuQZ3q0.js → mermaid.core-Dkoaa-_D.js} +5 -5
- package/dist-embed/chunks/{mermaid.core-KTB2Lxd3.js → mermaid.core-meWUGbq7.js} +3 -3
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-Zy7pURli.js → mindmap-definition-YA3MSWOX-1p4XwdjF.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-CmGscTNk.js → mindmap-definition-YA3MSWOX-BxYK9vLg.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-CCpwK8vh.js → mindmap-definition-YA3MSWOX-DQSoT62j.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-e4c1d938-Bx-OHtVA.js → mindmap-definition-e4c1d938-BGiAi0LL.js} +1 -1
- package/dist-embed/chunks/{mr-IN-CRQNXWMA-dch-5wWZ.js → mr-IN-CRQNXWMA-Vbci-IWj.js} +1 -1
- package/dist-embed/chunks/{my-MM-5M5IBNSE-CpBgcBwB.js → my-MM-5M5IBNSE-C0JHZ0Gp.js} +1 -1
- package/dist-embed/chunks/{nb-NO-T6EIAALU-COa2OyCA.js → nb-NO-T6EIAALU-eFOvuJCy.js} +1 -1
- package/dist-embed/chunks/{nl-NL-IS3SIHDZ-CUds_bYU.js → nl-NL-IS3SIHDZ-Din9L_2S.js} +1 -1
- package/dist-embed/chunks/{nn-NO-6E72VCQL-C7gst3vb.js → nn-NO-6E72VCQL-D7cIpOBH.js} +1 -1
- package/dist-embed/chunks/{oc-FR-POXYY2M6-BPpFvRq9.js → oc-FR-POXYY2M6-Bcxv3YfP.js} +1 -1
- package/dist-embed/chunks/{pa-IN-N4M65BXN-CFdnD-54.js → pa-IN-N4M65BXN-IrBb1NlL.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB-CRdzWywN.js → pegDiagram-XKGWAZYB-DDgyLvau.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB-C1R8Kk6K.js → pegDiagram-XKGWAZYB-GlLsdSxR.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB-dwQNJiaW.js → pegDiagram-XKGWAZYB-iCCMOEMa.js} +1 -1
- package/dist-embed/chunks/{percentages-BXMCSKIN-PE_Zr0z2.js → percentages-BXMCSKIN-BaaVroR_.js} +5 -5
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-CH60iHt1.js → pieDiagram-E7YTZNPT-CIfzhxTy.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-IN-ewUih.js → pieDiagram-E7YTZNPT-DIErsg9L.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-Cm-wzRi8.js → pieDiagram-E7YTZNPT-ffhUIieA.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-c941bede-CsV2p2ej.js → pieDiagram-c941bede-JKyix3vD.js} +1 -1
- package/dist-embed/chunks/{pl-PL-T2D74RX3-DC0vXmC3.js → pl-PL-T2D74RX3-bF5WEfvP.js} +1 -1
- package/dist-embed/chunks/{plugin-KPr60ZvH.js → plugin-BFdQv_3f.js} +1 -1
- package/dist-embed/chunks/{pt-BR-5N22H2LF-BOMTxvy-.js → pt-BR-5N22H2LF-K9lAvfY5.js} +1 -1
- package/dist-embed/chunks/{pt-PT-UZXXM6DQ-BoKelgnz.js → pt-PT-UZXXM6DQ-DAlaVYmT.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-mkOZIUHb.js → quadrantDiagram-AXDQQJYC-BE9RPE6m.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-B7W6MWBq.js → quadrantDiagram-AXDQQJYC-D3pxCP4M.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-B1wf6Zth.js → quadrantDiagram-AXDQQJYC-DbYIZcyN.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-cf8b8fe0-ZmcsdB3H.js → quadrantDiagram-cf8b8fe0-C_nd7FeD.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-DrkBEH1z.js → railroadDiagram-O6MQD6OU-CEl2l0ZE.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-B6nFyCFz.js → railroadDiagram-O6MQD6OU-CpXUNzTV.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-DEB7gRmX.js → railroadDiagram-O6MQD6OU-CwaTW3Mo.js} +1 -1
- package/dist-embed/chunks/{renderer-DEJh7EnD.js → renderer-CtmiT4nP.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-53bda41b-B_LQ_xkB.js → requirementDiagram-53bda41b-WVBAkQmj.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-S8WT8VJ1.js → requirementDiagram-BXWQKSXE-Bd0fV1Bn.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-C8d0kJ1A.js → requirementDiagram-BXWQKSXE-ClYVmNTl.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-fKcgNNOv.js → requirementDiagram-BXWQKSXE-sE3y_NEM.js} +1 -1
- package/dist-embed/chunks/{ro-RO-JPDTUUEW-DUoE6b7w.js → ro-RO-JPDTUUEW-kn8FzruZ.js} +1 -1
- package/dist-embed/chunks/{ru-RU-B4JR7IUQ-BvGrQ7oU.js → ru-RU-B4JR7IUQ-iQW1KMip.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-zVvXOpK2.js → sankeyDiagram-P5KCCOFB-BZnLyt_G.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-eNBOyfBR.js → sankeyDiagram-P5KCCOFB-CLR82118.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-C2LowYxA.js → sankeyDiagram-P5KCCOFB-DH-uxGJV.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-c3ef121a-CbZiQf68.js → sankeyDiagram-c3ef121a-CINAq9g5.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-82a5b84f-E5IR2bYb.js → sequenceDiagram-82a5b84f-Bx7xO8lv.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-CYxIlDNg.js → sequenceDiagram-WJ2MYXX4-CxHuil7I.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-C_2alFNp.js → sequenceDiagram-WJ2MYXX4-D00NbcmA.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-fsR56p6L.js → sequenceDiagram-WJ2MYXX4-VyUqwKEJ.js} +1 -1
- package/dist-embed/chunks/{server-extension-BL8WkLTl.js → server-extension-CTAcsVqM.js} +1 -1
- package/dist-embed/chunks/{sessions-HqXTOvV9.js → sessions-LMslHH3H.js} +2 -2
- package/dist-embed/chunks/{si-LK-N5RQ5JYF-DSd6gBaB.js → si-LK-N5RQ5JYF-C1J6zA3p.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-BCe0IiFV.js → sizeCapture-INFHLROL-B_CNNL_v.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-BVaNrAtp.js → sizeCapture-INFHLROL-BhSnrZjU.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-BsZaIjAU.js → sizeCapture-INFHLROL-_h3QW8w5.js} +1 -1
- package/dist-embed/chunks/{sk-SK-C5VTKIMK-CX5Daxph.js → sk-SK-C5VTKIMK-CK9RvjRD.js} +1 -1
- package/dist-embed/chunks/{sl-SI-NN7IZMDC-D5seNheP.js → sl-SI-NN7IZMDC-CcDWOBHp.js} +1 -1
- package/dist-embed/chunks/{state-DeMGhTAB.js → state-CGa66Nqd.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-43e79a5f-DpDccHEJ.js → stateDiagram-43e79a5f-DFrFK9qM.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-DosU0FIz.js → stateDiagram-D77RDMKH-BVJqlFiv.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-ul2eLf5Q.js → stateDiagram-D77RDMKH-CEvuFuTH.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-BUw_L8lD.js → stateDiagram-D77RDMKH-QwBnfyKm.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-2041ed4f-Tvcnabbb.js → stateDiagram-v2-2041ed4f-CcaIZYWt.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-Bf-2UYRk.js → stateDiagram-v2-MP3YSRHH-BaZ6xgsr.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-D0rhfnrW.js → stateDiagram-v2-MP3YSRHH-C_JHNwKt.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-DeEmivLr.js → stateDiagram-v2-MP3YSRHH-ok1qePbZ.js} +1 -1
- package/dist-embed/chunks/{styles-455b33cd-CqrAPL5i.js → styles-455b33cd-CAiZEic0.js} +1 -1
- package/dist-embed/chunks/{styles-f932cba9-Dw1HY-mR.js → styles-f932cba9-CEhWf7q3.js} +1 -1
- package/dist-embed/chunks/{styles-fcc2142b-C27pEgaj.js → styles-fcc2142b-v0gPnZ9U.js} +1 -1
- package/dist-embed/chunks/{subset-shared.chunk-X0WjKx8m.js → subset-shared.chunk-C0JvsRAi.js} +1 -1
- package/dist-embed/chunks/{subset-worker.chunk-B_UbRqFW.js → subset-worker.chunk-qynV-rht.js} +1 -1
- package/dist-embed/chunks/{substates-BuHNVWkx.js → substates-Bs9ZMVGa.js} +1 -1
- package/dist-embed/chunks/{sv-SE-XGPEYMSR-C45sq5QB.js → sv-SE-XGPEYMSR-B38oK2Y4.js} +1 -1
- package/dist-embed/chunks/{svgDrawCommon-148a3cd9-CUn_M4Ra.js → svgDrawCommon-148a3cd9-vsaJmSq8.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-CzG-9Sou.js → swimlanes-42K2YHIH-C_43oheZ.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-CIW2hU2l.js → swimlanes-42K2YHIH-CpRw9PHz.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-DOkKP2_2.js → swimlanes-42K2YHIH-DO1ZzP4k.js} +1 -1
- package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-Cgj6azeO.js → swimlanesDiagram-VR7AAH4N-BBi0wpOL.js} +1 -1
- package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-9yw92Xx_.js → swimlanesDiagram-VR7AAH4N-BYKvE-MW.js} +1 -1
- package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-BlFZ7eQS.js → swimlanesDiagram-VR7AAH4N-BucpGmoC.js} +1 -1
- package/dist-embed/chunks/{ta-IN-2NMHFXQM-CoxPm9Ew.js → ta-IN-2NMHFXQM-uSQqrrN6.js} +1 -1
- package/dist-embed/chunks/{th-TH-HPSO5L25-Smv8dde_.js → th-TH-HPSO5L25-Cs2r4usA.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-HSOgPjq4.js → timeline-definition-24CTP7MA-C9oiFt1s.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-C9Ed6D0K.js → timeline-definition-24CTP7MA-CRpA2xfq.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-kHlycslq.js → timeline-definition-24CTP7MA-C_RPFzcS.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-7545f45a-CCyhwQdt.js → timeline-definition-7545f45a-diaQHYG7.js} +1 -1
- package/dist-embed/chunks/{tr-TR-DEFEU3FU-DBMN0v-o.js → tr-TR-DEFEU3FU-D8o50B7O.js} +1 -1
- package/dist-embed/chunks/{uk-UA-QMV73CPH-DNvJwc9t.js → uk-UA-QMV73CPH-B5fUoSFX.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-CxvgI2f-.js → vennDiagram-4TSXK5OY-6I3E2S1J.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-7gMUaOyw.js → vennDiagram-4TSXK5OY-ByKQXzaL.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-Dt9fBhlj.js → vennDiagram-4TSXK5OY-C4cLgb45.js} +1 -1
- package/dist-embed/chunks/{vi-VN-M7AON7JQ-D1mitKRR.js → vi-VN-M7AON7JQ-Dj_kFfvZ.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-Bbh5PYAM.js → wardleyDiagram-VM6X3IG4-6QgHmuap.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-6HRbbvDt.js → wardleyDiagram-VM6X3IG4-CLayLpj4.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-AvAVDPLG.js → wardleyDiagram-VM6X3IG4-CnxCRlDr.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-3f383b91-BVsOkv2G.js → xychartDiagram-3f383b91-COn0cE9r.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-VWPR98LV.js → xychartDiagram-S5SC5T6Z-CoRCml5l.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-DNoz1WpS.js → xychartDiagram-S5SC5T6Z-Hrzni--y.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-ZZD1fZ1L.js → xychartDiagram-S5SC5T6Z-RhhCg-yn.js} +1 -1
- package/dist-embed/chunks/{zh-CN-LNUGB5OW-DtmUhdIG.js → zh-CN-LNUGB5OW-CHJxgGXp.js} +1 -1
- package/dist-embed/chunks/{zh-HK-E62DVLB3-BKtdEVTQ.js → zh-HK-E62DVLB3-CLxE_xvU.js} +1 -1
- package/dist-embed/chunks/{zh-TW-RAJ6MFWO-BHnZRfWI.js → zh-TW-RAJ6MFWO-CpEgHY46.js} +1 -1
- package/dist-embed/datalayer-app-main.js +27 -27
- package/lib/apps/agentUiPlugins.js +3 -0
- package/lib/apps/plugins/product-cards/index.d.ts +57 -0
- package/lib/apps/plugins/product-cards/index.js +99 -0
- package/lib/apps/plugins/product-cards/read.d.ts +47 -0
- package/lib/apps/plugins/product-cards/read.js +74 -0
- package/lib/apps/plugins/product-comparison/index.d.ts +2 -1
- package/lib/apps/plugins/product-comparison/index.js +6 -2
- package/lib/apps/plugins/product-comparison/read.d.ts +2 -0
- package/lib/apps/plugins/product-comparison/read.js +2 -1
- package/lib/apps/plugins/shopping-basket/index.d.ts +2 -1
- package/lib/apps/plugins/shopping-basket/index.js +9 -5
- package/lib/apps/plugins/shopping-basket/read.d.ts +2 -0
- package/lib/apps/plugins/shopping-basket/read.js +2 -1
- package/lib/apps/toolCards/productPhoto.d.ts +28 -0
- package/lib/apps/toolCards/productPhoto.js +28 -0
- package/lib/examples/pap/traces/account-tokens.json +1 -1
- package/lib/examples/pap/traces/conversation-control.json +11 -11
- package/lib/examples/pap/traces/conversation-streaming.json +5 -5
- package/lib/examples/pap/traces/mediated-sign-in.json +1 -1
- package/lib/examples/pap/traces/operations.json +23 -23
- package/lib/examples/pap/traces/two-companies.json +25 -25
- package/lib/examples/pap/traces/user-with-a-company.json +14 -14
- package/lib/pap/index.d.ts +4 -4
- package/lib/pap/index.js +6 -11
- package/lib/protocols/pap/index.d.ts +0 -2
- package/lib/protocols/pap/index.js +3 -4
- package/lib/specs/actions.js +9 -0
- package/lib/specs/apps.d.ts +3 -1
- package/lib/specs/apps.js +1434 -203
- package/lib/specs/backendTools.d.ts +5 -0
- package/lib/specs/backendTools.js +102 -2
- package/lib/specs/scenes.d.ts +1 -0
- package/lib/specs/scenes.js +251 -0
- package/lib/specs/stages.d.ts +1 -0
- package/lib/specs/stages.js +18 -0
- package/lib/specs/teams/teams.d.ts +1 -0
- package/lib/specs/teams/teams.js +77 -0
- package/lib/specs/ui.d.ts +1 -0
- package/lib/specs/ui.js +24 -2
- package/package.json +2 -2
- package/dist-embed/chunks/AgentInspector-a_P_e-b-.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{cu as I,cv as w,cw as g,cx as B,cy as b,aD as P,aG as v,aF as M}from"../datalayer-app-main.js";import{J as C,c as E}from"./index-
|
|
1
|
+
import{cu as I,cv as w,cw as g,cx as B,cy as b,aD as P,aG as v,aF as M}from"../datalayer-app-main.js";import{J as C,c as E}from"./index-CvKH_NYI.js";import{I as L}from"./tokens-1h_N3aLM.js";import{I as N}from"./tokens-DfQxPp01.js";import{b as A}from"./index-BMY48-7N.js";import"./Output-CJVIj3Io.js";import"./index-CaEDkyBB.js";import"./hoverbox-CStlKQWE.js";import"./index-CXSUknte.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-DXPB_0fo.js";import"./d3-color-Jd8hXty2.js";import"./dist-Frc5TvpU.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./index-BaRoLDk0.js";import"./RestartIcon-DvpOf5Mf.js";import"./CellSidebarExtension-DwGg7VbR.js";import"./NotebookSkeleton-GSdyJDf_.js";import"./Avatar-DUPBQXVt.js";import"./renderer-CtmiT4nP.js";import"./SquareIcon-Dy3l3VdH.js";import"./FileDirectoryOpenFillIcon-jGhuRcP3.js";import"./url-DY3jeuF8.js";/* empty css *//* empty css */import"./style-DdAxk_bj.js";/* empty css */import"./style-Cj1gzCjo.js";/* empty css */import"./style-rkw8dR9f.js";import"./style-GHJFdtIz.js";import"./style-ZSIOeMoX.js";import"./style-iVfD6mFL.js";import"./style-DA-Ya7rp.js";import"./style-D3tvWcFO.js";import"./style-BOqStzF9.js";import"./style-ADLQJ-E9.js";import"./style-DgglluaK.js";import"./ArrowLeftIcon-sX3iNMG1.js";import"./SkubbleIcon-CAaVh_BE.js";import"./usePrimerThemeBridge-BoT73xjq.js";import"./index-CShCHnof.js";import"./KernelVariables-CmWkosM8.js";import"./index-BWeXDhSd.js";import"./SortAscIcon-CmH04s3F.js";import"./SortDescIcon-Qif6E10I.js";import"./NotebookToolbar-C1fpK-Vi.js";import"./RepoPushIcon-BtXQRhLa.js";import"./sessions-LMslHH3H.js";import"./tokens-UgGv77-l.js";import"./drivecontents-BabrDJge.js";import"./kernel-DWlDRhgJ.js";class T{constructor(t="",e,n,a){this._domainData={},this._translationBundles={},this._connector=a??new I(t,n),this._stringsPrefix=e||"",this._englishBundle=new w({stringsPrefix:this._stringsPrefix}),this._currentLocale=g}get languageCode(){return this._currentLocale}async fetch(t){var e,n,a,o;this._languageData=await this._connector.fetch({language:t});let i;if(this._languageData&&t==="default")try{for(const s of Object.values((e=this._languageData.data)!==null&&e!==void 0?e:{})){i=s[""].language;break}}catch{}this._currentLocale=(t!=="default"?t:i??g).replace("_","-"),this._domainData=(a=(n=this._languageData)===null||n===void 0?void 0:n.data)!==null&&a!==void 0?a:{};const r=(o=this._languageData)===null||o===void 0?void 0:o.message;r&&this._currentLocale!==g&&console.warn(r)}load(t){if(this._domainData){if(this._currentLocale==g)return this._englishBundle;if(t=B(t),!(t in this._translationBundles)){let e=new w({domain:t,locale:this._currentLocale,stringsPrefix:this._stringsPrefix});if(t in this._domainData){const n=this._domainData[t][""],a={...this._domainData[t],"":{...n,pluralForms:n.plural_forms}};e.loadJSON(a,t)}this._translationBundles[t]=e}return this._translationBundles[t]}else return this._englishBundle}}const y="@jupyterlab/translation-extension:plugin",$={id:"@jupyterlab/translation-extension:translator-connector",description:"Provides the application translation connector.",autoStart:!0,requires:[C.IPaths],provides:b,activate:(m,t)=>{const e=t.urls.translations,n=m.serviceManager.serverSettings;return new I(e,n)}},F={id:"@jupyterlab/translation-extension:translator",description:"Provides the application translation object.",autoStart:!0,requires:[C.IPaths,L],optional:[E,b],provides:P,activate:async(m,t,e,n,a)=>{const o=await e.load(y),i=o.get("locale").composite;let r=o.get("stringsPrefix").composite;r=o.get("displayStringsPrefix").composite?r:"";const c=m.serviceManager.serverSettings,l=new T(t.urls.translations,r,c,a??void 0);return await l.fetch(i),document.documentElement.lang=l.languageCode,n&&(n.translator=l),v.translator=l,l}},G={id:y,description:"Adds translation commands and settings.",requires:[L,P,b],optional:[N,A],autoStart:!0,activate:(m,t,e,n,a,o)=>{var i;const r=e.load("jupyterlab"),{commands:s}=m,c=a?(i=a.settingsMenu.items.find(u=>{var p;return u.type==="submenu"&&((p=u.submenu)===null||p===void 0?void 0:p.id)==="jp-mainmenu-settings-language"}))===null||i===void 0?void 0:i.submenu:null,l="jupyterlab-translation:install-languages";s.addCommand(l,{label:r.__("Install more languages…"),caption:r.__("Search for language packs in the Extension Manager"),isEnabled:()=>s.hasCommand("extensionmanager:show-panel")&&s.isVisible("extensionmanager:show-panel"),execute:()=>s.execute("extensionmanager:show-panel",{query:"jupyterlab-language-pack"}),describedBy:{args:{type:"object",properties:{}}}}),o&&o.addItem({category:r.__("Display Languages"),command:l}),n.fetch().then(u=>{const p=e.languageCode.replace("-","_");for(const d in u.data){const x=u.data[d],D=x.displayName,S=x.nativeName,h=p===d,_=h?`${D}`:`${D} - ${S}`,f=`jupyterlab-translation:${d}`;s.addCommand(f,{label:_,caption:r.__("Change interface language to %1",_),isEnabled:()=>!h,isToggled:()=>h,execute:async()=>{if((await M({title:r.__("Change interface language?"),body:r.__("After changing the interface language to %1, you will need to reload JupyterLab to see the changes.",_),buttons:[v.cancelButton(),v.okButton({label:r.__("Change and reload")})]})).button.accept)try{await t.set(y,"locale",d),window.location.reload()}catch(j){console.error(`Failed to update language locale to ${d}`,j)}},describedBy:{args:{type:"object",properties:{}}}}),c&&c.addItem({command:f,args:{}}),o&&o.addItem({category:r.__("Display Languages"),command:f})}}).catch(u=>{console.error(`Available locales errored!
|
|
2
2
|
${u}`)}).finally(()=>{c&&(c.items.length>0&&c.addItem({type:"separator"}),c.addItem({command:l,args:{}}))})}},Gt=[$,F,G];export{Gt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aB as Ve,
|
|
1
|
+
import{aB as Ve,go as Ue,e0 as $e,fU as Ke,ax as ye,bh as He,gp as ee,gq as qe,cr as Ie,gr as Qe,cj as Ee,ay as De,aE as D,J as ue,cf as Ne,gs as Xe,gt as Je,d$ as Ye,d_ as Ge,_ as Ze,gu as et,gv as tt,gw as ot,ce as H,dR as Te,ck as nt,dQ as Me,gx as it,gy as rt,dN as at,dH as he,dJ as dt,dO as st,gz as lt,dy as fe,cs as We,aD as ne,ew as Le,e3 as ct,eE as ut,aH as pt,eM as gt,dE as Se,gA as mt}from"../datalayer-app-main.js";import{I as Pe,b as Be,a as ht}from"./token-CdPvDaO6.js";import{T as Ae,I as ft,b as yt,g as vt,a as _t}from"./index-BMY48-7N.js";import{I as je}from"./tokens-C5FWZLTC.js";import{p as bt,c as Ct,f as wt,b as xt,q as Tt,M as Mt}from"./index-CvKH_NYI.js";import{s as Fe}from"./hover-DpawhsId.js";import{I as ve}from"./tokens-1h_N3aLM.js";import{I as St}from"./tokens-DuSIK5iU.js";import{I as kt}from"./tokens-iGMkLb0v.js";import{I as It}from"./tokens-DfQxPp01.js";import{a as Et}from"./tokens-B3Xc25f7.js";import{I as Nt}from"./index-CaEDkyBB.js";import{W as Wt,V as Lt,I as Pt,a as Bt,b as At,c as jt}from"./document-Dx9me6Cm.js";import{I as Ft}from"./tokens-udK9JDBx.js";import{g as ke}from"./kernelfilestypes-D2B-sFfi.js";import{T as Ot,a as _e}from"./model-DrXnd96t.js";import"./hoverbox-CStlKQWE.js";import"./Output-CJVIj3Io.js";import"./index-CXSUknte.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-DXPB_0fo.js";import"./d3-color-Jd8hXty2.js";import"./dist-Frc5TvpU.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./index-BaRoLDk0.js";import"./RestartIcon-DvpOf5Mf.js";import"./CellSidebarExtension-DwGg7VbR.js";import"./NotebookSkeleton-GSdyJDf_.js";import"./Avatar-DUPBQXVt.js";import"./renderer-CtmiT4nP.js";import"./SquareIcon-Dy3l3VdH.js";import"./FileDirectoryOpenFillIcon-jGhuRcP3.js";import"./url-DY3jeuF8.js";/* empty css *//* empty css */import"./style-DdAxk_bj.js";/* empty css */import"./style-Cj1gzCjo.js";/* empty css */import"./style-rkw8dR9f.js";import"./style-GHJFdtIz.js";import"./style-ZSIOeMoX.js";import"./style-iVfD6mFL.js";import"./style-DA-Ya7rp.js";import"./style-D3tvWcFO.js";import"./style-BOqStzF9.js";import"./style-ADLQJ-E9.js";import"./style-DgglluaK.js";import"./ArrowLeftIcon-sX3iNMG1.js";import"./SkubbleIcon-CAaVh_BE.js";import"./usePrimerThemeBridge-BoT73xjq.js";import"./index-CShCHnof.js";import"./KernelVariables-CmWkosM8.js";import"./index-BWeXDhSd.js";import"./SortAscIcon-CmH04s3F.js";import"./SortDescIcon-Qif6E10I.js";import"./NotebookToolbar-C1fpK-Vi.js";import"./RepoPushIcon-BtXQRhLa.js";import"./sessions-LMslHH3H.js";import"./tokens-UgGv77-l.js";import"./drivecontents-BabrDJge.js";import"./kernel-DWlDRhgJ.js";class be extends Ve{constructor(o){var d;super(),this.model=o.model;const u=new Ue({factory:o.factory,model:this.model,editorOptions:{...o.editorOptions,config:{...(d=o.editorOptions)===null||d===void 0?void 0:d.config,readOnly:!0}}});this.editor=u.editor,(this.layout=new $e).addWidget(u)}static createCodeViewer(o){const{content:d,mimeType:u,...m}=o,h=new Ke.Model({mimeType:u});h.sharedModel.setSource(d);const f=new be({...m,model:h});return f.disposed.connect(()=>{h.dispose()}),f}get content(){return this.model.sharedModel.getSource()}get mimeType(){return this.model.mimeType}}const zt=new ye("@jupyterlab/console:IConsoleTracker",`A widget tracker for code consoles.
|
|
2
2
|
Use this if you want to be able to iterate over and interact with code consoles
|
|
3
3
|
created by the application.`);class Rt extends Wt{constructor(o,d){const{docRegistry:u,...m}=d;super(o,m),this._readyDelegate=new He,this.editor=o.content,this._docRegistry=u,this._virtualEditor=Object.freeze({getEditor:()=>this.editor.editor,ready:()=>Promise.resolve(this.editor.editor),reveal:()=>Promise.resolve(this.editor.editor)}),Promise.all([this.editor.context.ready,this.connectionManager.ready]).then(async()=>{await this.initOnceReady(),this._readyDelegate.resolve(),this._editorAdded.emit({editor:this._virtualEditor})}).catch(console.error)}get ready(){return this._readyDelegate.promise}get documentPath(){return this.widget.context.path}get mimeType(){var o;const d=this.editor.model.mimeType,u=Array.isArray(d)?(o=d[0])!==null&&o!==void 0?o:ee.defaultMimeType:d,m=this.editor.context.contentsModel;return u!=ee.defaultMimeType?u:m?this._docRegistry.getFileTypeForModel(m).mimeTypes[0]:u}get languageFileExtension(){let o=this.documentPath.split(".");return o[o.length-1]}get ceEditor(){return this.editor.editor}get activeEditor(){return this._virtualEditor}get wrapperElement(){return this.widget.node}get path(){return this.widget.context.path}get editors(){var o,d;return[{ceEditor:this._virtualEditor,type:"code",value:(d=(o=this.editor)===null||o===void 0?void 0:o.model.sharedModel.getSource())!==null&&d!==void 0?d:""}]}dispose(){this.isDisposed||(this._editorRemoved.emit({editor:this._virtualEditor}),this.editor.model.mimeTypeChanged.disconnect(this.reloadConnection),super.dispose())}createVirtualDocument(){return new Lt({language:this.language,foreignCodeExtractors:this.options.foreignCodeExtractorsManager,path:this.documentPath,fileExtension:this.languageFileExtension,standalone:!0,hasLspSupportedFile:!0})}getEditorIndexAt(o){return 0}getEditorIndex(o){return 0}getEditorWrapper(o){return this.wrapperElement}async initOnceReady(){this.initVirtual(),await this.connectDocument(this.virtualDocument,!1),this.editor.model.mimeTypeChanged.connect(this.reloadConnection,this)}}class Ce extends qe{constructor(o){super(),this.widget=o,this._searchActive=!1}get isReadOnly(){return this.editor.getOption("readOnly")}get replaceOptionsSupport(){return{preserveCase:!0}}get editor(){return this.widget.content.editor}get model(){return this.widget.content.model}async startQuery(o,d){this._searchActive=!0,await super.startQuery(o,d),await this.highlightNext(!0,{from:"selection-start",scroll:!1,select:!1})}async endQuery(){this._searchActive=!1,await super.endQuery()}async onSharedModelChanged(o,d){if(this._searchActive)return super.onSharedModelChanged(o,d)}static createNew(o,d){return new Ce(o)}static isApplicable(o){return o instanceof Ie&&o.content instanceof bt&&o.content.editor instanceof Qe}getInitialQuery(){const o=this.editor;return o.state.sliceDoc(o.state.selection.main.from,o.state.selection.main.to)}}function Vt(r){return ue.createElement(Ae,{role:"button","aria-haspopup":!0,tabIndex:0,source:r.language,onClick:r.handleClick,onKeyDown:o=>{(o.key==="Enter"||o.key===" ")&&r.handleClick()}})}class te extends Ee{constructor(o){var d;super(new te.Model(o.languages)),this._handleClick=()=>{const m=new De({commands:this._commands}),h="fileeditor:change-language";this._popup&&this._popup.dispose(),this.model.languages.getLanguages().sort((f,y)=>{var w,M;const x=(w=f.displayName)!==null&&w!==void 0?w:f.name,I=(M=y.displayName)!==null&&M!==void 0?M:y.name;return x.localeCompare(I)}).forEach(f=>{var y;if(f.name.toLowerCase().indexOf("brainf")===0)return;const w={name:f.name,displayName:(y=f.displayName)!==null&&y!==void 0?y:f.name};m.addItem({command:h,args:w})}),this._popup=Fe({body:m,anchor:this,align:"left"})},this._popup=null,this._commands=o.commands,this.translator=(d=o.translator)!==null&&d!==void 0?d:D;const u=this.translator.load("jupyterlab");this.addClass("jp-mod-highlighted"),this.title.caption=u.__("Change text editor syntax highlighting")}render(){return this.model?ue.createElement(Vt,{language:this.model.language,handleClick:this._handleClick}):null}}(function(r){class o extends Ne{constructor(u){super(),this.languages=u,this._onMIMETypeChange=(m,h)=>{var f;const y=this._language,w=this.languages.findByMIME(h.newValue);this._language=(f=w?.name)!==null&&f!==void 0?f:ee.defaultMimeType,this._triggerChange(y,this._language)},this._language="",this._editor=null}get language(){return this._language}get editor(){return this._editor}set editor(u){var m;const h=this._editor;h!==null&&h.model.mimeTypeChanged.disconnect(this._onMIMETypeChange);const f=this._language;if(this._editor=u,this._editor===null)this._language="";else{const y=this.languages.findByMIME(this._editor.model.mimeType);this._language=(m=y?.name)!==null&&m!==void 0?m:ee.defaultMimeType,this._editor.model.mimeTypeChanged.connect(this._onMIMETypeChange)}this._triggerChange(f,this._language)}_triggerChange(u,m){u!==m&&this.stateChanged.emit(void 0)}}r.Model=o})(te||(te={}));function Ut(r){const d=(r.translator||D).load("jupyterlab"),u=typeof r.tabSpace=="number"?d.__("Spaces"):d.__("Tab Indent");return ue.createElement(Ae,{role:"button","aria-haspopup":!0,tabIndex:0,onClick:r.handleClick,onKeyDown:m=>{(m.key==="Enter"||m.key===" ")&&r.handleClick()},source:typeof r.tabSpace=="number"?`${u}: ${r.tabSpace}`:u,title:d.__("Change the indentation…")})}class oe extends Ee{constructor(o){super(new oe.Model),this._popup=null,this._menu=o.menu,this.translator=o.translator||D,this.addClass("jp-mod-highlighted")}render(){var o;if(!((o=this.model)===null||o===void 0)&&o.indentUnit){const d=this.model.indentUnit==="Tab"?null:parseInt(this.model.indentUnit,10);return ue.createElement(Ut,{tabSpace:d,handleClick:()=>this._handleClick(),translator:this.translator})}else return null}_handleClick(){const o=this._menu;this._popup&&this._popup.dispose(),o.aboutToClose.connect(this._menuClosed,this),this._popup=Fe({body:o,anchor:this,align:"right"}),o.update()}_menuClosed(){this.removeClass("jp-mod-clicked")}}(function(r){class o extends Ne{get indentUnit(){return this._indentUnit}set indentUnit(u){u!==this._indentUnit&&(this._indentUnit=u,this.stateChanged.emit())}}r.Model=o})(oe||(oe={}));class we extends Ot{createNew(o,d){const u=super.createNew(o,d),m=(h,f)=>{f&&o.content.editor.setCursorPosition({line:f.line,column:0})};return u.activeHeadingChanged.connect(m),o.disposed.connect(()=>{u.activeHeadingChanged.disconnect(m)}),u}}const $t={part:1,chapter:1,section:1,subsection:2,subsubsection:3,paragraph:4,subparagraph:5},Kt=/^\s*\\(section|subsection|subsubsection)\{(.+)\}/;class Ht extends _e{get documentType(){return"latex"}get supportedOptions(){return["maximalDepth","numberHeaders"]}getHeadings(){if(!this.isActive)return Promise.resolve(null);const o=this.widget.content.model.sharedModel.getSource().split(`
|
|
4
4
|
`),d=new Array;let u=d.length;const m=new Array;for(let h=0;h<o.length;h++){const f=o[h].match(Kt);if(f){const y=$t[f[1]];if(y<=this.configuration.maximalDepth){const w=Xe(y,u,d,{...this.configuration,baseNumbering:1,numberingH1:!0});u=y,m.push({text:f[2],prefix:w,level:y,line:h})}}}return Promise.resolve(m)}}class qt extends we{isApplicable(o){var d,u;if(super.isApplicable(o)){let h=(u=(d=o.content)===null||d===void 0?void 0:d.model)===null||u===void 0?void 0:u.mimeType;return h&&(h==="text/x-latex"||h==="text/x-stex")}return!1}_createNew(o,d){return new Ht(o,d)}}class Qt extends _e{constructor(o,d,u=null){super(o,d),this.widget=o,this.parser=u}get documentType(){return"markdown"}async getHeadings(){if(!this.isActive)return Promise.resolve(null);const o=this.widget.content.model.sharedModel.getSource();return Ye(await Ge(o,this.parser),{...this.configuration,numberHeaders:!1})}}class Dt extends we{constructor(o,d=null){super(o),this.parser=d}isApplicable(o){var d,u;if(super.isApplicable(o)){let h=(u=(d=o.content)===null||d===void 0?void 0:d.model)===null||u===void 0?void 0:u.mimeType;return h&&Je(h)}return!1}_createNew(o,d){return new Qt(o,d,this.parser)}}let Z;try{Z=new RegExp("^\\s*(class |def |async def |from |import )","d")}catch{Z=new RegExp("^\\s*(class |def |async def |from |import )")}class Xt extends _e{get documentType(){return"python"}async getHeadings(){if(!this.isActive)return Promise.resolve(null);const o=this.widget.content.model.sharedModel.getSource().split(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{it as Je,iu as Se,iv as Y,cl as de,eJ as Ve,iw as Ge,k as H,aD as R,aE as U,dK as F,ce as x,dE as Ye,dS as Qe,ix as Xe,cr as V,eG as ue,aJ as Ze,aK as me,r as S,eP as ke,aB as Te,cf as et,iy as pe,eg as he,dM as Ce,iz as tt,bh as je,_ as nt,gI as ot,iA as st,az as Ee,iB as at,cs as it,dL as Ie,dx as J,iC as xe,dB as rt,eM as Ne,ax as Pe,e1 as ct,e2 as Le,iD as ge,aF as lt,aG as Q,gH as fe,gA as dt,eL as ut,iE as mt}from"../datalayer-app-main.js";import{I as $,a as Ae}from"./tokens-1h_N3aLM.js";import{i as Me,b as G,L as z,G as pt,T as ht,j as gt,g as Oe,k as ft,K as bt,R as yt,l as Re,m as Fe,n as vt,I as _t,o as wt,c as St,e as We,d as Be,a as kt,p as Tt,W as Ct}from"./index-BMY48-7N.js";import{f as De,c as jt,J as ne,e as ce}from"./index-CvKH_NYI.js";import{I as $e}from"./tokens-DfQxPp01.js";import{s as Et}from"./hover-DpawhsId.js";import{I as le}from"./tokens-C5FWZLTC.js";import"./hoverbox-CStlKQWE.js";import"./Output-CJVIj3Io.js";import"./index-CaEDkyBB.js";import"./index-CXSUknte.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-DXPB_0fo.js";import"./d3-color-Jd8hXty2.js";import"./dist-Frc5TvpU.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./index-BaRoLDk0.js";import"./RestartIcon-DvpOf5Mf.js";import"./CellSidebarExtension-DwGg7VbR.js";import"./NotebookSkeleton-GSdyJDf_.js";import"./Avatar-DUPBQXVt.js";import"./renderer-CtmiT4nP.js";import"./SquareIcon-Dy3l3VdH.js";import"./FileDirectoryOpenFillIcon-jGhuRcP3.js";import"./url-DY3jeuF8.js";/* empty css *//* empty css */import"./style-DdAxk_bj.js";/* empty css */import"./style-Cj1gzCjo.js";/* empty css */import"./style-rkw8dR9f.js";import"./style-GHJFdtIz.js";import"./style-ZSIOeMoX.js";import"./style-iVfD6mFL.js";import"./style-DA-Ya7rp.js";import"./style-D3tvWcFO.js";import"./style-BOqStzF9.js";import"./style-ADLQJ-E9.js";import"./style-DgglluaK.js";import"./ArrowLeftIcon-sX3iNMG1.js";import"./SkubbleIcon-CAaVh_BE.js";import"./usePrimerThemeBridge-BoT73xjq.js";import"./index-CShCHnof.js";import"./KernelVariables-CmWkosM8.js";import"./index-BWeXDhSd.js";import"./SortAscIcon-CmH04s3F.js";import"./SortDescIcon-Qif6E10I.js";import"./NotebookToolbar-C1fpK-Vi.js";import"./RepoPushIcon-BtXQRhLa.js";import"./sessions-LMslHH3H.js";import"./tokens-UgGv77-l.js";import"./drivecontents-BabrDJge.js";import"./kernel-DWlDRhgJ.js";const It=Je.bindprops({stylesheet:"commandPaletteHeader",className:"jp-icon-hoverShow-content"});var se;(function(e){class o extends Se.Renderer{renderHeader(n){const c=this.formatHeader(n);return Y.li({className:de("lm-CommandPalette-header","jp-icon-hoverShow")},c,Y.span(It))}renderItemIcon(n){const c=this.createIconClass(n);return n.item.isToggled?Y.div({className:c},Ve,n.item.iconLabel):Y.div({className:c},n.item.icon,n.item.iconLabel)}createIconClass(n){return de(Ge.styleClass({stylesheet:"commandPaletteItem"}),n.item.iconClass,"lm-CommandPalette-itemIcon")}}e.Renderer=o,e.defaultRenderer=new o})(se||(se={}));const be="help:open",xt="/lab/api/news",Nt="/lab/api/update",oe="https://jupyterlab.readthedocs.io/en/stable/privacy_policies.html";async function ye(e,o={},i){const n=i??H.ServerConnection.makeSettings(),c=x.URLExt.join(n.baseUrl,e);let t;try{t=await H.ServerConnection.makeRequest(c,o,n)}catch(g){throw new H.ServerConnection.NetworkError(g)}const s=await t.json();if(!t.ok)throw new H.ServerConnection.ResponseError(t,s.message);return s}const ze={id:"@jupyterlab/apputils-extension:announcements",description:"Add the announcement feature. It will fetch news on the internet and check for application updates.",autoStart:!0,optional:[H.IConfigSectionManager,$,R],activate:(e,o,i,n)=>{var c,t;const s=ze.id.replace(/\W/g,"");Promise.all([e.restored,(c=i?.load("@jupyterlab/apputils-extension:notification"))!==null&&c!==void 0?c:Promise.resolve(null),(t=o?.create({name:s}))!==null&&t!==void 0?t:Promise.resolve(null)]).then(async([g,m,l])=>{const r=(n??U).load("jupyterlab");if(F.manager.changed.connect((y,p)=>{var a;if(p.type!=="removed")return;const{id:h,tags:v}=(a=p.notification.options.data)!==null&&a!==void 0?a:{};if((v??[]).some(_=>["news","update"].includes(_))&&h){const _={};_[h]={seen:!0,dismissed:!0},l?.update(_).catch(k=>{console.error(`Failed to update the announcements config:
|
|
2
2
|
${k}`)})}}),m?.get("fetchNews").composite==="none"){const y=F.emit(r.__("Would you like to get notified about official Jupyter news?"),"default",{autoClose:!1,actions:[{label:r.__("Open privacy policy"),caption:oe,callback:p=>{p.preventDefault(),e.commands.hasCommand(be)?e.commands.execute(be,{text:r.__("Privacy policies"),url:oe}):window.open(oe,"_blank","noreferrer")},displayType:"link"},{label:r.__("Yes"),callback:()=>{F.dismiss(y),l?.update({}).then(()=>f()).catch(p=>{console.error(`Failed to get the news:
|
|
3
3
|
${p}`)}),m?.set("fetchNews","true").catch(p=>{console.error(`Failed to save setting 'fetchNews':
|
|
4
4
|
${p}`)})}},{label:r.__("No"),callback:()=>{F.dismiss(y),m?.set("fetchNews","false").catch(p=>{console.error(`Failed to save setting 'fetchNews':
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aD as v,aE as h,av as k}from"../datalayer-app-main.js";import{I as g,a as y,b as L}from"./index-
|
|
1
|
+
import{aD as v,aE as h,av as k}from"../datalayer-app-main.js";import{I as g,a as y,b as L}from"./index-CvKH_NYI.js";import{I as b}from"./tokens-BoOsoUsu.js";import{a as R}from"./index-BMY48-7N.js";import{R as _}from"./index-CXSUknte.js";import"./Output-CJVIj3Io.js";import"./index-CaEDkyBB.js";import"./hoverbox-CStlKQWE.js";import"./dist-Frc5TvpU.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./index-BaRoLDk0.js";import"./RestartIcon-DvpOf5Mf.js";import"./CellSidebarExtension-DwGg7VbR.js";import"./NotebookSkeleton-GSdyJDf_.js";import"./Avatar-DUPBQXVt.js";import"./renderer-CtmiT4nP.js";import"./SquareIcon-Dy3l3VdH.js";import"./FileDirectoryOpenFillIcon-jGhuRcP3.js";import"./url-DY3jeuF8.js";/* empty css *//* empty css */import"./style-DdAxk_bj.js";/* empty css */import"./style-Cj1gzCjo.js";/* empty css */import"./style-rkw8dR9f.js";import"./style-GHJFdtIz.js";import"./style-ZSIOeMoX.js";import"./style-iVfD6mFL.js";import"./style-DA-Ya7rp.js";import"./style-D3tvWcFO.js";import"./style-BOqStzF9.js";import"./style-ADLQJ-E9.js";import"./style-DgglluaK.js";import"./ArrowLeftIcon-sX3iNMG1.js";import"./SkubbleIcon-CAaVh_BE.js";import"./usePrimerThemeBridge-BoT73xjq.js";import"./index-CShCHnof.js";import"./KernelVariables-CmWkosM8.js";import"./index-BWeXDhSd.js";import"./SortAscIcon-CmH04s3F.js";import"./SortDescIcon-Qif6E10I.js";import"./NotebookToolbar-C1fpK-Vi.js";import"./RepoPushIcon-BtXQRhLa.js";import"./sessions-LMslHH3H.js";import"./tokens-UgGv77-l.js";import"./drivecontents-BabrDJge.js";import"./kernel-DWlDRhgJ.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-DXPB_0fo.js";import"./d3-color-Jd8hXty2.js";var a;(function(t){t.handleLink="rendermime:handle-local-link"})(a||(a={}));const Re={id:"@jupyterlab/rendermime-extension:plugin",description:"Provides the render mime registry.",optional:[b,y,R,L,v],provides:g,activate:I,autoStart:!0},f="debugger:open-source";function I(t,n,p,s,l,i){const d=(i??h).load("jupyterlab");return n&&t.commands.addCommand(a.handleLink,{label:d.__("Handle Local Link"),execute:e=>{const r=e.path,o=e.id,m=e.scope||"server";if(r){if(m==="kernel"){if(!t.commands.hasCommand(f)){console.warn("Cannot open kernel file: debugger sources provider not available");return}return t.commands.execute(f,{path:r})}return n.services.contents.get(r,{content:!1}).then(()=>{const u=n.registry.defaultRenderedWidgetFactory(r),c=n.openOrReveal(r,u.name);c&&o&&c.setFragment(o)})}},describedBy:{args:{type:"object",properties:{path:{type:"string",description:d.__("The file path to open")},id:{type:"string",description:d.__("Fragment identifier to navigate to")},scope:{type:"string",enum:["kernel","server"],description:d.__("Scope of the file location")}},required:["path"]}}}),new _({initialFactories:k,trustHandler:{markTrusted:e=>{t.commandLinker.markTrusted(e)},unmarkTrusted:e=>{t.commandLinker.unmarkTrusted(e)}},linkHandler:n?{handleLink:(e,r,o)=>{e.tagName==="A"&&e.hasAttribute("download")||e.addEventListener("click",m=>{m.preventDefault(),t.commands.execute(a.handleLink,{path:r,id:o})})},handlePath:(e,r,o,m)=>{e.addEventListener("click",u=>{u.preventDefault(),t.commands.execute(a.handleLink,{path:r,id:m,scope:o})})}}:void 0,latexTypesetter:p??void 0,markdownParser:l??void 0,translator:i??void 0,sanitizer:s??void 0})}export{Re as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{dX as M,dY as F,dZ as P,d_ as S,d$ as I,ax as O,aB as A,bh as E,aa as W,aE as D,e0 as H,ce as x,au as q,cn as j,e1 as B,e2 as V,e3 as L,aD as N,e4 as z,dE as U}from"../datalayer-app-main.js";import{f as Y,I as $}from"./index-
|
|
1
|
+
import{dX as M,dY as F,dZ as P,d_ as S,d$ as I,ax as O,aB as A,bh as E,aa as W,aE as D,e0 as H,ce as x,au as q,cn as j,e1 as B,e2 as V,e3 as L,aD as N,e4 as z,dE as U}from"../datalayer-app-main.js";import{f as Y,I as $}from"./index-CvKH_NYI.js";import{I as G}from"./tokens-1h_N3aLM.js";import{a as K,C as R}from"./index-BMY48-7N.js";import{T as X,a as Z}from"./model-DrXnd96t.js";import"./Output-CJVIj3Io.js";import"./index-CaEDkyBB.js";import"./hoverbox-CStlKQWE.js";import"./index-CXSUknte.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-DXPB_0fo.js";import"./d3-color-Jd8hXty2.js";import"./dist-Frc5TvpU.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./index-BaRoLDk0.js";import"./RestartIcon-DvpOf5Mf.js";import"./CellSidebarExtension-DwGg7VbR.js";import"./NotebookSkeleton-GSdyJDf_.js";import"./Avatar-DUPBQXVt.js";import"./renderer-CtmiT4nP.js";import"./SquareIcon-Dy3l3VdH.js";import"./FileDirectoryOpenFillIcon-jGhuRcP3.js";import"./url-DY3jeuF8.js";/* empty css *//* empty css */import"./style-DdAxk_bj.js";/* empty css */import"./style-Cj1gzCjo.js";/* empty css */import"./style-rkw8dR9f.js";import"./style-GHJFdtIz.js";import"./style-ZSIOeMoX.js";import"./style-iVfD6mFL.js";import"./style-DA-Ya7rp.js";import"./style-D3tvWcFO.js";import"./style-BOqStzF9.js";import"./style-ADLQJ-E9.js";import"./style-DgglluaK.js";import"./ArrowLeftIcon-sX3iNMG1.js";import"./SkubbleIcon-CAaVh_BE.js";import"./usePrimerThemeBridge-BoT73xjq.js";import"./index-CShCHnof.js";import"./KernelVariables-CmWkosM8.js";import"./index-BWeXDhSd.js";import"./SortAscIcon-CmH04s3F.js";import"./SortDescIcon-Qif6E10I.js";import"./NotebookToolbar-C1fpK-Vi.js";import"./RepoPushIcon-BtXQRhLa.js";import"./sessions-LMslHH3H.js";import"./tokens-UgGv77-l.js";import"./drivecontents-BabrDJge.js";import"./kernel-DWlDRhgJ.js";class J extends Z{constructor(e,r,t){super(e,t),this.parser=r}get documentType(){return"markdown-viewer"}get isAlwaysActive(){return!0}get supportedOptions(){return["maximalDepth","numberingH1","numberHeaders"]}async getHeadings(){const e=this.widget.context.model.toString(),r=await S(e,this.parser),t=I(r,{...this.configuration,baseNumbering:1});return Promise.resolve(t)}}class Q extends X{constructor(e,r,t){super(e),this.parser=r,this.sanitizer=t}_createNew(e,r){const t=new J(e,this.parser,r);let o=new WeakMap;const p=(c,m)=>{if(m){const a=o.get(m);if(a){const h=e.content.node.getBoundingClientRect(),l=a.getBoundingClientRect();(l.top>h.bottom||l.bottom<h.top)&&a.scrollIntoView({block:"center"})}else console.warn("Heading element not found for heading",m,"in widget",e)}},s=()=>{this.parser&&(M(e.content.node),o=new WeakMap,t.headings.forEach(async c=>{var m,a;const h=await F(this.parser,c.raw,c.level,this.sanitizer);if(!h)return;const l=(m=this.sanitizer.allowNamedProperties)!==null&&m!==void 0&&m?"id":"data-jupyter-id",w=`h${c.level}[${l}="${CSS.escape(h)}"]`;o.set(c,P(e.content.node,w,(a=c.prefix)!==null&&a!==void 0?a:""))}))};return e.content.ready.then(()=>{s(),e.content.rendered.connect(s),t.activeHeadingChanged.connect(p),t.headingsChanged.connect(s),e.disposed.connect(()=>{e.content.rendered.disconnect(s),t.activeHeadingChanged.disconnect(p),t.headingsChanged.disconnect(s)})}),t}}const ee=new O("@jupyterlab/markdownviewer:IMarkdownViewerTracker",`A widget tracker for markdown
|
|
2
2
|
document viewers. Use this if you want to iterate over and interact with rendered markdown documents.`),te="jp-MarkdownViewer",C="text/markdown";class f extends A{constructor(e){super(),this._config={...f.defaultConfig},this._fragment="",this._ready=new E,this._renderPending=!1,this._isRendering=!1,this._renderRequested=!1,this._rendered=new W(this),this.context=e.context,this.translator=e.translator||D,this._trans=this.translator.load("jupyterlab"),this.renderer=e.renderer,this.node.tabIndex=0,this.addClass(te),(this.layout=new H).addWidget(this.renderer),this.context.ready.then(async()=>{await this._render(),this._monitor=new x.ActivityMonitor({signal:this.context.model.contentChanged,timeout:this._config.renderTimeout}),this._monitor.activityStopped.connect(this._requestRender,this),this.context.model.contentChanged.connect(this._onContentChanged,this),this._ready.resolve(void 0)})}get ready(){return this._ready.promise}get rendered(){return this._rendered}setFragment(e){this._fragment=e,this._requestRender()}setOption(e,r){if(this._config[e]===r)return;this._config[e]=r;const{style:t}=this.renderer.node;switch(e){case"fontFamily":t.setProperty("font-family",r);break;case"fontSize":t.setProperty("font-size",r?r+"px":null);break;case"hideFrontMatter":this._requestRender();break;case"lineHeight":t.setProperty("line-height",r?r.toString():null);break;case"lineWidth":{const o=r?`calc(50% - ${r/2}ch)`:null;t.setProperty("padding-left",o),t.setProperty("padding-right",o);break}case"renderTimeout":this._monitor&&(this._monitor.timeout=r);break}}dispose(){this.isDisposed||(this._monitor&&this._monitor.dispose(),this._monitor=null,super.dispose())}onUpdateRequest(e){this._renderPending&&this.context.isReady&&!this.isDisposed&&(this._renderPending=!1,this._render())}onActivateRequest(e){this.node.focus()}_requestRender(){this._renderPending=!0,this.update()}_onContentChanged(){this._renderPending=!0}async _render(){if(this.isDisposed)return;if(this._isRendering){this._renderRequested=!0;return}this._renderPending=!1,this._renderRequested=!1;const{context:e}=this,{model:r}=e,t=r.toString(),o={};o[C]=this._config.hideFrontMatter?y.removeFrontMatter(t):t;const p=new q({data:o,metadata:{fragment:this._fragment}});this._fragment="";try{if(this._isRendering=!0,await this.renderer.renderModel(p),this._isRendering=!1,this._renderRequested)return this._render();this._rendered.emit()}catch(s){requestAnimationFrame(()=>{this.dispose()}),j(this._trans.__("Renderer Failure: %1",e.path),s)}}}(function(d){d.defaultConfig={fontFamily:null,fontSize:null,lineHeight:null,lineWidth:null,hideFrontMatter:!0,renderTimeout:1e3}})(f||(f={}));class re extends V{setFragment(e){this.content.setFragment(e)}}class ne extends B{constructor(e){super(y.createRegistryOptions(e)),this._fileType=e.primaryFileType,this._rendermime=e.rendermime}createNewWidget(e){var r,t,o,p,s;const m=this._rendermime.clone({resolver:e.urlResolver}).createRenderer(C),a=new f({context:e,renderer:m});return a.title.icon=(r=this._fileType)===null||r===void 0?void 0:r.icon,a.title.iconClass=(o=(t=this._fileType)===null||t===void 0?void 0:t.iconClass)!==null&&o!==void 0?o:"",a.title.iconLabel=(s=(p=this._fileType)===null||p===void 0?void 0:p.iconLabel)!==null&&s!==void 0?s:"",a.title.caption=this.label,new re({content:a,context:e})}}var y;(function(d){function e(t){return{...t,readOnly:!0}}d.createRegistryOptions=e;function r(t){const o=/^---\n[\s\S]*?\n(?:---|\.\.\.)\n/,p=t.match(o);if(!p)return t;const{length:s}=p[0];return t.slice(s)}d.removeFrontMatter=r})(y||(y={}));var g;(function(d){d.markdownPreview="markdownviewer:open",d.markdownEditor="markdownviewer:edit",d.trust="markdownviewer:trust"})(g||(g={}));const v="Markdown Preview",ie={activate:oe,id:"@jupyterlab/markdownviewer-extension:plugin",description:"Adds markdown file viewer and provides its tracker.",provides:ee,requires:[$,N],optional:[Y,G,L,K],autoStart:!0};function oe(d,e,r,t,o,p,s){const c=r.load("jupyterlab"),{commands:m,docRegistry:a}=d;e.addFactory(z);const h="markdownviewer-widget",l=new U({namespace:h});let w={...f.defaultConfig};function k(i){Object.keys(w).forEach(n=>{var u;i.setOption(n,(u=w[n])!==null&&u!==void 0?u:null)})}if(o){const i=n=>{w=n.composite,l.forEach(u=>{k(u.content)})};o.load(ie.id).then(n=>{n.changed.connect(()=>{i(n)}),i(n)}).catch(n=>{console.error(n.message)})}const b=new ne({rendermime:e,name:v,label:c.__("Markdown Preview"),primaryFileType:a.getFileType("markdown"),fileTypes:["markdown"],defaultRendered:["markdown"]});return b.widgetCreated.connect((i,n)=>{n.context.pathChanged.connect(()=>{l.save(n)}),k(n.content),n.content.node.setAttribute("data-trust-command",g.trust),l.add(n)}),a.addWidgetFactory(b),t&&t.restore(l,{command:"docmanager:open",args:i=>({path:i.context.path,factory:v}),name:i=>i.context.path}),m.addCommand(g.markdownPreview,{label:c.__("Markdown Preview"),execute:i=>{const n=i.path;if(typeof n=="string")return m.execute("docmanager:open",{path:n,factory:v,options:i.options})},describedBy:{args:{type:"object",properties:{path:{type:"string",description:c.__("The path to the markdown file to preview")},options:{type:"object",description:c.__("Options for opening the preview")}},required:["path"]}}}),m.addCommand(g.markdownEditor,{execute:()=>{const i=l.currentWidget;if(!i)return;const n=i.context.path;return m.execute("docmanager:open",{path:n,factory:"Editor",options:{mode:"split-right"}})},isVisible:()=>{const i=l.currentWidget;return i&&x.PathExt.extname(i.context.path)===".md"||!1},label:c.__("Show Markdown Editor"),describedBy:{args:{type:"object",properties:{}}}}),m.addCommand(g.trust,{label:c.__("Trust Markdown Preview"),execute:i=>{var n;const u=i[R.TRUST_BOUNDARY_ID_ARG],_=typeof u=="string"?(n=l.find(T=>T.content.node.id===u))!==null&&n!==void 0?n:null:l.currentWidget;return _&&!_.isDisposed?(_.content.node.classList.add("jp-mod-trusted"),d.commandLinker.markTrusted(_.content.node),{trusted:!0}):{trusted:!1}},describedBy:{args:{type:"object",properties:{[R.TRUST_BOUNDARY_ID_ARG]:{type:"string",description:c.__("The Markdown preview trust boundary ID")}}}}}),p&&p.add(new Q(l,e.markdownParser,s??e.sanitizer)),l}export{ie as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aE as T,aa as I,az as E,aD as R,cz as A,cA as B,aB as j,cr as N}from"../datalayer-app-main.js";import{b as M}from"./index-
|
|
1
|
+
import{aE as T,aa as I,az as E,aD as R,cz as A,cA as B,aB as j,cr as N}from"../datalayer-app-main.js";import{b as M}from"./index-BMY48-7N.js";import{I as V}from"./tokens-1h_N3aLM.js";import{I as W}from"./tokens-udK9JDBx.js";import{c as k}from"./index-CvKH_NYI.js";import"./hoverbox-CStlKQWE.js";import"./Output-CJVIj3Io.js";import"./index-CaEDkyBB.js";import"./index-CXSUknte.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-DXPB_0fo.js";import"./d3-color-Jd8hXty2.js";import"./dist-Frc5TvpU.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./index-BaRoLDk0.js";import"./RestartIcon-DvpOf5Mf.js";import"./CellSidebarExtension-DwGg7VbR.js";import"./NotebookSkeleton-GSdyJDf_.js";import"./Avatar-DUPBQXVt.js";import"./renderer-CtmiT4nP.js";import"./SquareIcon-Dy3l3VdH.js";import"./FileDirectoryOpenFillIcon-jGhuRcP3.js";import"./url-DY3jeuF8.js";/* empty css *//* empty css */import"./style-DdAxk_bj.js";/* empty css */import"./style-Cj1gzCjo.js";/* empty css */import"./style-rkw8dR9f.js";import"./style-GHJFdtIz.js";import"./style-ZSIOeMoX.js";import"./style-iVfD6mFL.js";import"./style-DA-Ya7rp.js";import"./style-D3tvWcFO.js";import"./style-BOqStzF9.js";import"./style-ADLQJ-E9.js";import"./style-DgglluaK.js";import"./ArrowLeftIcon-sX3iNMG1.js";import"./SkubbleIcon-CAaVh_BE.js";import"./usePrimerThemeBridge-BoT73xjq.js";import"./index-CShCHnof.js";import"./KernelVariables-CmWkosM8.js";import"./index-BWeXDhSd.js";import"./SortAscIcon-CmH04s3F.js";import"./SortDescIcon-Qif6E10I.js";import"./NotebookToolbar-C1fpK-Vi.js";import"./RepoPushIcon-BtXQRhLa.js";import"./sessions-LMslHH3H.js";import"./tokens-UgGv77-l.js";import"./drivecontents-BabrDJge.js";import"./kernel-DWlDRhgJ.js";class D{constructor(n=T){this.translator=n,this._changed=new I(this),this._providerMap=new Map}add(n,c){return this._providerMap.set(n,c),this._changed.emit(),new E(()=>{this._providerMap.delete(n),this._changed.emit()})}getProvider(n){for(const c of this._providerMap.values())if(c.isApplicable(n))return c.createNew(n,this.translator)}hasProvider(n){for(const c of this._providerMap.values())if(c.isApplicable(n))return!0;return!1}get changed(){return this._changed}}const v="jp-mod-searchable",S="jp-mod-search-active",_="--jp-documentsearch-content-header";var o;(function(t){t.search="documentsearch:start",t.searchAndReplace="documentsearch:startWithReplace",t.findNext="documentsearch:highlightNext",t.findPrevious="documentsearch:highlightPrevious",t.end="documentsearch:end",t.toggleSearchInSelection="documentsearch:toggleSearchInSelection"})(o||(o={}));const F={id:"@jupyterlab/documentsearch-extension:labShellWidgetListener",description:"Active search on valid document",requires:[k,W],autoStart:!0,activate:(t,n,c)=>{const h=s=>{s&&(c.hasProvider(s)?s.addClass(v):s.removeClass(v))};c.changed.connect(()=>h(n.activeWidget)),n.activeChanged.connect((s,d)=>{const u=d.oldValue;u&&u.removeClass(v),h(d.newValue)})}};class L{constructor(n){this._commandRegistry=n,this._cache=this._buildCache(),this._commandRegistry.keyBindingChanged.connect(this._rebuildCache,this)}get next(){return this._cache.next}get previous(){return this._cache.previous}get toggleSearchInSelection(){return this._cache.toggleSearchInSelection}_rebuildCache(){this._cache=this._buildCache()}_buildCache(){const n=this._commandRegistry.keyBindings.find(s=>s.command===o.findNext),c=this._commandRegistry.keyBindings.find(s=>s.command===o.findPrevious),h=this._commandRegistry.keyBindings.find(s=>s.command===o.toggleSearchInSelection);return{next:n,previous:c,toggleSearchInSelection:h}}dispose(){this._commandRegistry.keyBindingChanged.disconnect(this._rebuildCache,this)}}const P={id:"@jupyterlab/documentsearch-extension:plugin",description:"Provides the document search registry.",provides:W,requires:[R],optional:[M,V],autoStart:!0,activate:(t,n,c,h)=>{var s;const d=n.load("jupyterlab");let u=500,y="never";const p=new D(n),l=new Map;if(h){const e=h.load(P.id),r=i=>{u=i.get("searchDebounceTime").composite,y=i.get("autoSearchInSelection").composite};Promise.all([e,t.restored]).then(([i])=>{r(i),i.changed.connect(a=>{r(a)})}).catch(i=>{console.error(i.message)})}const b=()=>{const e=t.shell.currentWidget;return e?p.hasProvider(e):!1},x=e=>{if(!e)return;const r=e.id;let i=l.get(r);if(!i){const a=p.getProvider(e);if(!a)return;const m=new A(a,u),C=new L(t.commands),g=new B(m,n,C);l.set(r,g),[o.findNext,o.findPrevious,o.end,o.toggleSearchInSelection].forEach(f=>{t.commands.notifyCommandChanged(f)}),g.closed.connect(()=>{e.isDisposed||(e.activate(),e.removeClass(S))}),g.disposed.connect(()=>{e.isDisposed||(e.activate(),e.removeClass(S)),l.delete(r),[o.findNext,o.findPrevious,o.end,o.toggleSearchInSelection].forEach(f=>{t.commands.notifyCommandChanged(f)})}),e.disposed.connect(()=>{g.dispose(),m.dispose(),a.dispose(),C.dispose()}),i=g}return i.isAttached||(j.attach(i,e.node),e.addClass(S),e instanceof N&&(e.contentHeader.node.style.setProperty("anchor-name",_),e.node.style.setProperty("anchor-scope",_),i.node.style.top=`anchor(${_} bottom)`),i.model.searchExpression&&i.model.refresh()),i};return t.commands.addCommand(o.search,{label:d.__("Find…"),isEnabled:b,describedBy:{args:{type:"object",properties:{searchText:{type:"string",description:d.__("The text to search for")}}}},execute:async e=>{const r=x(t.shell.currentWidget);if(r){const i=e.searchText;i?r.setSearchText(i):r.setSearchText(r.model.suggestedInitialQuery);const a=r.model.selectionState;let m=!1;switch(y){case"multiple-selected":m=a==="multiple";break;case"any-selected":m=a==="multiple"||a==="single";break}m&&await r.model.setFilter("selection",!0),r.focusSearchInput()}}}),t.commands.addCommand(o.searchAndReplace,{label:d.__("Find and Replace…"),isEnabled:b,describedBy:{args:{type:"object",properties:{searchText:{type:"string",description:d.__("The text to search for")},replaceText:{type:"string",description:d.__("The text to replace with")}}}},execute:e=>{const r=x(t.shell.currentWidget);if(r){const i=e.searchText;i?r.setSearchText(i):r.setSearchText(r.model.suggestedInitialQuery);const a=e.replaceText;a&&r.setReplaceText(a),r.showReplace(),r.focusSearchInput()}}}),t.commands.addCommand(o.findNext,{label:d.__("Find Next"),isEnabled:()=>!!t.shell.currentWidget&&l.has(t.shell.currentWidget.id),describedBy:{args:{type:"object",properties:{}}},execute:async()=>{var e;const r=t.shell.currentWidget;r&&await((e=l.get(r.id))===null||e===void 0?void 0:e.model.highlightNext())}}),t.commands.addCommand(o.findPrevious,{label:d.__("Find Previous"),isEnabled:()=>!!t.shell.currentWidget&&l.has(t.shell.currentWidget.id),describedBy:{args:{type:"object",properties:{}}},execute:async()=>{var e;const r=t.shell.currentWidget;r&&await((e=l.get(r.id))===null||e===void 0?void 0:e.model.highlightPrevious())}}),t.commands.addCommand(o.end,{label:d.__("End Search"),isEnabled:()=>!!t.shell.currentWidget&&l.has(t.shell.currentWidget.id),describedBy:{args:{type:"object",properties:{}}},execute:async()=>{var e;const r=t.shell.currentWidget;r&&((e=l.get(r.id))===null||e===void 0||e.close())}}),t.commands.addCommand(o.toggleSearchInSelection,{label:d.__("Search in Selection"),isEnabled:()=>!!t.shell.currentWidget&&l.has(t.shell.currentWidget.id)&&"selection"in l.get(t.shell.currentWidget.id).model.filtersDefinition,describedBy:{args:{type:"object",properties:{}}},execute:async()=>{var e;const r=t.shell.currentWidget;if(!r)return;const i=(e=l.get(r.id))===null||e===void 0?void 0:e.model;if(!i)return;const a=i.filters.selection;return i.setFilter("selection",!a)}}),(s=t.shell.currentChanged)===null||s===void 0||s.connect(()=>{Object.values(o).forEach(e=>{t.commands.notifyCommandChanged(e)})}),c&&[o.search,o.searchAndReplace,o.findNext,o.findPrevious,o.end,o.toggleSearchInSelection].forEach(e=>{c.addItem({command:e,category:d.__("Main Area")})}),p}},Fe=[P,F];export{Fe as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aa as R,aG as I,aB as O,fT as M,r as n,dL as w,ch as b,fU as q,eJ as F,fV as H,fW as J,aA as U,fX as k,ef as x,dT as W,fY as z,fZ as $,cp as Q,J as P,aD as V,ew as G,aE as Y,dB as X,dy as Z}from"../datalayer-app-main.js";import{H as tt}from"./htmlselect-CIhYGigR.js";import{o as et}from"./index-DjDXWGO2.js";import{a as st}from"./tokens-B3Xc25f7.js";import{I as ot}from"./tokens-1h_N3aLM.js";import"./Output-DePHyrJp.js";import"./index-QUGTBUbz.js";import"./hoverbox-CStlKQWE.js";import"./index-CzDD-mUF.js";import"./index-B9R5Oy-_.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-ZTQsAovp.js";import"./d3-color-Jd8hXty2.js";import"./dist-Frc5TvpU.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./index-BaRoLDk0.js";import"./RestartIcon-DvpOf5Mf.js";import"./CellSidebarExtension-Dx_Rm2j5.js";import"./NotebookSkeleton-GSdyJDf_.js";import"./Avatar-DUPBQXVt.js";import"./renderer-DEJh7EnD.js";import"./SquareIcon-Dy3l3VdH.js";import"./FileDirectoryOpenFillIcon-jGhuRcP3.js";import"./url-DY3jeuF8.js";/* empty css *//* empty css */import"./style-DdAxk_bj.js";/* empty css */import"./style-Cj1gzCjo.js";/* empty css */import"./style-rkw8dR9f.js";import"./style-GHJFdtIz.js";import"./style-ZSIOeMoX.js";import"./style-iVfD6mFL.js";import"./style-DA-Ya7rp.js";import"./style-D3tvWcFO.js";import"./style-BOqStzF9.js";import"./style-ADLQJ-E9.js";import"./style-DgglluaK.js";import"./ArrowLeftIcon-sX3iNMG1.js";import"./SkubbleIcon-CAaVh_BE.js";import"./usePrimerThemeBridge-BoT73xjq.js";import"./index-D-tu7af7.js";import"./KernelVariables-DLBQe0HT.js";import"./index-BWeXDhSd.js";import"./SortAscIcon-CmH04s3F.js";import"./SortDescIcon-Qif6E10I.js";import"./NotebookToolbar-C1fpK-Vi.js";import"./RepoPushIcon-BtXQRhLa.js";import"./sessions-HqXTOvV9.js";import"./tokens-UgGv77-l.js";import"./drivecontents-BabrDJge.js";import"./kernel-DWlDRhgJ.js";class it{constructor(e){this.reset=()=>{this._shortcut={id:"new shortcut",command:"",keybindings:[],selector:"body",category:"",args:{}},this._changed.emit()},this.addKeybinding=async(t,o)=>{this._shortcut.keybindings.push({keys:o,isDefault:!1}),this._changed.emit()},this.replaceKeybinding=async(t,o,s)=>{if(s=s.filter(i=>i!==""),!s.length)return this.deleteKeybinding(t,o);const r=this._shortcut.keybindings.findIndex(i=>i.keys===o.keys);r>-1?this._shortcut.keybindings[r]={keys:s,isDefault:!1}:this.addKeybinding(t,s),this._changed.emit()},this.deleteKeybinding=async(t,o)=>{const s=this._shortcut.keybindings.findIndex(r=>r.keys===o.keys);s>-1&&(this._shortcut.keybindings.splice(s,1),this._changed.emit())},this.resetKeybindings=async t=>{this._shortcut={...this._shortcut,keybindings:[]},this._changed.emit()},this.setCustomOptions=async(t,o)=>(this._shortcut={...this._shortcut,selector:o.selector,args:o.args},this._changed.emit(),!0),this.updateCommand=(t,o)=>{this._shortcut={...this._shortcut,command:t,category:o},this._changed.emit()},this._changed=new R(this),this._shortcut={id:"new shortcut",command:"",keybindings:[],selector:"body",category:"",args:{}},this.findConflictsFor=e.findConflictsFor,this.showSelectors=e.showSelectors,this.external=e.external}get shortcut(){return this._shortcut}get changed(){return this._changed}}class rt extends I{constructor(e){const{shortcut:t,translator:o,editorFactory:s}=e,r=o.load("jupyterlab"),i=new nt(t,o,s,()=>this._checkValidation(),e.readOnly),a=[];e.readOnly?a.push(I.cancelButton({label:r.__("OK")})):(a.push(I.cancelButton({label:r.__("Cancel")})),a.push(I.okButton({label:r.__("Apply")}))),super({title:e.readOnly?r.__("Shortcut Options"):r.__("Custom Shortcut Options"),body:i,buttons:a})}_evtKeydown(e){if(e.key==="Enter"){const t=this.node.querySelector(".jp-JSONEditor"),o=document.activeElement;if(t instanceof HTMLElement&&o instanceof HTMLElement&&t.contains(o)){e.stopPropagation();return}}super._evtKeydown(e)}}class nt extends O{constructor(e,t,o,s,r){var i,a;super();const c=t.load("jupyterlab");this.addClass("jp-Shortcuts-CustomOptionsDialogBody");const g=document.createElement("div");g.className="jp-Shortcuts-CustomOptionDialog-container";const p=document.createElement("label");p.textContent=c.__("Selector:"),p.className="jp-Dialog-label",this._selectorInput=document.createElement("input"),this._selectorInput.type="text",this._selectorInput.disabled=r??!1,this._selectorInput.value=e.selector,this._selectorInput.className="jp-mod-styled",g.appendChild(p),g.appendChild(this._selectorInput);const f=document.createElement("label");if(f.textContent=c.__("Arguments:"),f.className="jp-Dialog-label",g.appendChild(f),r){const d=document.createElement("pre");d.textContent=JSON.stringify((i=e.args)!==null&&i!==void 0?i:{},void 0,2),g.appendChild(d)}else this._editorWidget=new at((a=e.args)!==null&&a!==void 0?a:{},o,s),g.appendChild(this._editorWidget.node);this.node.appendChild(g)}getValue(){var e,t;const o=(t=(e=this._editorWidget)===null||e===void 0?void 0:e.getJSON())!==null&&t!==void 0?t:"{}";let s;try{s=JSON.parse(o)}catch(r){console.error(`Invalid JSON in arguments: ${r instanceof Error?r.message:String(r)}`),s={}}return{selector:this._selectorInput.value,args:s}}dispose(){var e;(e=this._editorWidget)===null||e===void 0||e.dispose(),super.dispose()}}class at extends O{constructor(e,t,o){super(),this._validateJSON=()=>{try{const a=this._editor.model.sharedModel.getSource();JSON.parse(a),this.node.classList.remove("jp-mod-error")}catch{this.node.classList.add("jp-mod-error")}this._checkValidation()},this.addClass("jp-JSONEditor"),this._checkValidation=o;const s=document.createElement("div");s.className="jp-JSONEditor-host";const r=new M.Model({mimeType:"application/json"}),i=JSON.stringify(e,null,2);r.sharedModel.setSource(i),this._editor=t({host:s,model:r,config:{readOnly:!1}}),this.node.appendChild(s),this._editor.model.sharedModel.changed.connect(this._validateJSON,this)}getJSON(){return this._editor.model.sharedModel.getSource()}dispose(){this._editor.model.sharedModel.changed.disconnect(this._validateJSON,this),this._editor.dispose(),super.dispose()}}const D="jp-Shortcuts-ConflictContainer";class A extends n.Component{constructor(e){super(e),this.handleSubmit=async()=>{this._isReplacingExistingKeybinding?this.state.selected?this.props.toggleInput():await this._updateShortcut():(await this._updateShortcut(),this.props.toggleInput())},this._updateShortcut=async()=>{const t=[...this.state.keys,this.state.currentChain];this.setState({keys:t}),this.props.keybinding?await this.props.replaceKeybinding(this.props.shortcut,this.props.keybinding,t):await this.props.addKeybinding(this.props.shortcut,t)},this._handleOverwrite=async(t,o)=>{const s=o.map(w.normalizeKeystroke);for(const r of t){const i=r.keybindings.filter(a=>b.deepEqual(a.keys,s)||s.some(c=>b.deepEqual(a.keys,[c])))[0];if(!i){console.error(`Conflicting binding could not be found for ${r} using keys ${o}`);continue}await this.props.deleteKeybinding(r,i)}await this._updateShortcut()},this.parseChaining=(t,o,s,r,i)=>{let a=q.keyForKeydownEvent(t.nativeEvent);const c=["Shift","Control","Alt","Meta","Ctrl","Accel"];if(t.key==="Backspace")s="",o="",r=[],i="",this.setState({value:o,userInput:s,keys:r,currentChain:i});else if(t.key!=="CapsLock"){const g=s.substr(s.lastIndexOf(" ")+1,s.length).trim();c.lastIndexOf(g)===-1&&g!=""?(s=s+",",r.push(i),i="",t.ctrlKey&&t.key!="Control"&&(s=(s+" Ctrl").trim(),i=(i+" Ctrl").trim()),t.metaKey&&t.key!="Meta"&&(s=(s+" Accel").trim(),i=(i+" Accel").trim()),t.altKey&&t.key!="Alt"&&(s=(s+" Alt").trim(),i=(i+" Alt").trim()),t.shiftKey&&t.key!="Shift"&&(s=(s+" Shift").trim(),i=(i+" Shift").trim()),c.lastIndexOf(t.key)===-1?(s=(s+" "+a).trim(),i=(i+" "+a).trim()):t.key==="Meta"?(s=(s+" Accel").trim(),i=(i+" Accel").trim()):t.key==="Control"?(s=(s+" Ctrl").trim(),i=(i+" Ctrl").trim()):t.key==="Shift"?(s=(s+" Shift").trim(),i=(i+" Shift").trim()):t.key==="Alt"?(s=(s+" Alt").trim(),i=(i+" Alt").trim()):(s=(s+" "+t.key).trim(),i=(i+" "+t.key).trim())):t.key==="Control"?(s=(s+" Ctrl").trim(),i=(i+" Ctrl").trim()):t.key==="Meta"?(s=(s+" Accel").trim(),i=(i+" Accel").trim()):t.key==="Shift"?(s=(s+" Shift").trim(),i=(i+" Shift").trim()):t.key==="Alt"?(s=(s+" Alt").trim(),i=(i+" Alt").trim()):(s=(s+" "+a).trim(),i=(i+" "+a).trim())}return this.setState({keys:r,currentChain:i}),[s,r,i]},this.checkNonFunctional=()=>{const t=["Ctrl","Alt","Accel","Shift"],o=this.state.currentChain.split(" "),s=o[o.length-1];return this.setState({isFunctional:t.indexOf(s)===-1}),t.indexOf(s)!==-1},this.checkShortcutAvailability=(t,o,s)=>{const r=this.props.findConflictsFor([...o,s],this.props.shortcut.selector),i=t===""||r.length===0;return!i&&r.length===1&&r[0].id===this.props.shortcut.id&&this._isReplacingExistingKeybinding?(this.setState({isAvailable:!0}),[]):(this.setState({isAvailable:i}),r)},this.handleInput=t=>{t.preventDefault(),this.setState({selected:!1});const o=this.parseChaining(t,this.state.value,this.state.userInput,this.state.keys,this.state.currentChain),s=o[0],r=o[1],i=o[2],a=this.props.toSymbols(s);let c=this.checkShortcutAvailability(s,r,i);this.setState({value:a,userInput:s,keys:r,currentChain:i},()=>{this.checkNonFunctional(),this._emitConflicts(c)})},this._handleBlur=t=>{var o,s;!((o=this._ref.current)===null||o===void 0)&&o.contains(t.relatedTarget)||!((s=t.relatedTarget)===null||s===void 0)&&s.closest(`.${D}`)||this.props.toggleInput()},this._ref=n.createRef(),this.state={value:this.props.placeholder,userInput:"",isAvailable:!0,isFunctional:this._isReplacingExistingKeybinding,keys:[],currentChain:"",selected:!0}}get _isReplacingExistingKeybinding(){return!!this.props.keybinding}_emitConflicts(e){const t=[...this.state.keys,this.state.currentChain];this.props.displayConflicts({conflictsWith:e,keys:this.state.keys,overwrite:async()=>{this.setState({isAvailable:!0}),await this._handleOverwrite(e,t),this.props.toggleInput()},cancel:()=>{this.props.toggleInput()}})}render(){const e=this.props.translator.load("jupyterlab");let t="jp-Shortcuts-Input";return this.state.isAvailable||(t+=" jp-mod-unavailable-Input"),n.createElement("div",{className:this.props.displayInput?this._isReplacingExistingKeybinding?"jp-Shortcuts-InputBox":"jp-Shortcuts-InputBox jp-Shortcuts-InputBoxNew":"jp-mod-hidden",ref:this._ref,onBlur:this._handleBlur},n.createElement("div",{tabIndex:0,className:t,onKeyDown:this.handleInput,ref:o=>o&&o.focus(),"data-lm-suppress-shortcuts":"true"},n.createElement("p",{className:this.state.selected&&this._isReplacingExistingKeybinding?"jp-Shortcuts-InputText jp-mod-selected-InputText":this.state.value===""?"jp-Shortcuts-InputText jp-mod-waiting-InputText":"jp-Shortcuts-InputText"},this.state.value===""?e.__("press keys"):this.state.value)),n.createElement("button",{className:this.state.isFunctional?this.state.isAvailable?"jp-Shortcuts-Submit":"jp-Shortcuts-Submit jp-mod-conflict-Submit":"jp-Shortcuts-Submit jp-mod-defunc-Submit",disabled:!this.state.isAvailable||!this.state.isFunctional,onClick:this.handleSubmit,tabIndex:0},this.state.isAvailable?n.createElement(F.react,null):n.createElement(H.react,null)))}}var C;(function(l){l.editBinding="shortcuts:edit-keybinding",l.addBinding="shortcuts:add-keybinding",l.deleteBinding="shortcuts:delete-keybinding",l.toggleSelectors="shortcuts:toggle-selectors",l.resetAll="shortcuts:reset-all"})(C||(C={}));var E;(function(l){l[l.Label=0]="Label",l[l.Category=1]="Category",l[l.Split=2]="Split",l[l.Default=3]="Default"})(E||(E={}));class j extends Map{constructor(e){var t,o,s,r;super();const{settings:i,commandRegistry:a,allCommands:c}=e;if(c)for(const g of a.listCommands()){const p={command:g,selector:"body"},f=this._computeTargetId(p),d=p.command.split(":"),m=(t=a.label(p.command,p.args))!==null&&t!==void 0?t:d.length>1?d[1]:void 0,u=d[0],y={...p,id:f,keybindings:[],category:u,label:m,args:{}};this.set(f,y)}else if(i){const g=(o=i.user.shortcuts)!==null&&o!==void 0?o:[],p=new Set(g.map(this._computeKeybindingId.bind(this))),f=(s=i.composite.shortcuts)!==null&&s!==void 0?s:[],d=i.default("shortcuts").map(m=>this._computeTargetId(m));for(const m of f){const u=this._computeTargetId(m),y=this._computeKeybindingId(m),h={keys:w.normalizeKeys(m),isDefault:!p.has(y),...m.preventDefault===void 0?{}:{preventDefault:m.preventDefault}},S=this.get(u);if(S)S.keybindings.push(h);else{const _=m.command.split(":"),K=(r=a.label(m.command,m.args))!==null&&r!==void 0?r:_.length>1?_[1]:void 0,B=_[0];this.set(u,{id:u,selector:m.selector,command:m.command,category:B,label:K,args:m.args,keybindings:[h],userDefined:!d.includes(u)})}}}}findConflictsFor(e,t){const o=new lt({registry:this}),s=e.map(w.normalizeKeystroke);let r=o.findConflicts(s,t);if(r.length!==0)return r;for(const i of s)if(r=o.findConflicts([i],t),r.length!==0)return r;return[]}_computeTargetId(e){var t;return e.command+"_"+e.selector+"_"+JSON.stringify((t=e.args)!==null&&t!==void 0?t:{})}_computeKeybindingId(e){var t;return[e.command,e.selector,JSON.stringify((t=e.args)!==null&&t!==void 0?t:{}),w.normalizeKeys(e).join(" ")].join("_")}}class lt{constructor(e){var t;const o=new Map;for(const s of e.registry.values())for(const r of s.keybindings){const i=this._keybindingHash(r.keys,s.selector),a=(t=o.get(i))!==null&&t!==void 0?t:[];a.push(s),o.set(i,a)}this._keybindingsMap=o}findConflicts(e,t){var o;const s=this._keybindingHash(e,t);return(o=this._keybindingsMap.get(s))!==null&&o!==void 0?o:[]}_keybindingHash(e,t){return e.join(" ")+"_"+t}}(function(l){function e(s){return s.replace(/\s+/g,"").toLowerCase()}function t(s,r){var i;const a=s.category.toLowerCase(),c=((i=s.label)!==null&&i!==void 0?i:"").toLowerCase(),g=`${a} ${c}`;let p=1/0,f=null;const d=/\b\w/g;for(;;){const S=d.exec(g);if(!S)break;const _=J.matchSumOfDeltas(g,r,S.index);if(!_)break;_&&_.score<=p&&(p=_.score,f=_.indices)}if(!f||p===1/0)return null;const m=a.length+1,u=U.lowerBound(f,m,(S,_)=>S-_),y=f.slice(0,u),h=f.slice(u);for(let S=0,_=h.length;S<_;++S)h[S]-=m;return y.length===0?{matchType:E.Label,categoryIndices:null,labelIndices:h,score:p,item:s}:h.length===0?{matchType:E.Category,categoryIndices:y,labelIndices:null,score:p,item:s}:{matchType:E.Split,categoryIndices:y,labelIndices:h,score:p,item:s}}function o(s,r){r=e(r);let i=[];for(const a of s.values()){if(!r){i.push({matchType:E.Default,categoryIndices:null,labelIndices:null,score:0,item:a});continue}let c=t(a,r);c&&i.push(c)}return i}l.matchItems=o})(j||(j={}));const ct={Ctrl:"⌃",Alt:"⌥",Shift:"⇧",Accel:"⌘",Cmd:"⌘"};class L extends n.Component{constructor(e){super(e),this.toggleInputNew=()=>{this.setState({displayNewInput:!this.state.displayNewInput,conflicts:new Map})},this.toSymbols=t=>k.IS_MAC?t.split(" ").map(o=>{var s;return(s=ct[o])!==null&&s!==void 0?s:o}).join(" "):t.split(" ").map(o=>o==="Accel"?"Ctrl":o).join(" "),this._trans=this.props.external.translator.load("jupyterlab"),this.state={displayNewInput:!1,displayReplaceInput:Object.freeze({}),conflicts:new Map}}componentDidMount(){this.props.external.actionRequested.connect(this._onActionRequested,this)}componentWillUnmount(){this.props.external.actionRequested.disconnect(this._onActionRequested,this)}async _onActionRequested(e,t){if(!("shortcutId"in t&&t.shortcutId!==this.props.shortcut.id)){if(t.request==="add-keybinding")return this.toggleInputNew();if(t.request==="edit-keybinding"&&this.toggleInputReplaceMethod(t.keybinding),t.request==="delete-keybinding"){const o=this.props.shortcut,s=o.keybindings[t.keybinding];this.props.deleteKeybinding(o,s).catch(console.error)}}}getCategoryCell(){return n.createElement("div",{className:"jp-Shortcuts-Cell"},this.props.shortcut.category)}getLabelCell(){var e;if(this.props.newShortcutUtils){const t=this._getFilteredCommands();return n.createElement("div",{className:"jp-Shortcuts-Cell"},n.createElement(tt,{value:this.props.shortcut.command,options:[{value:"",label:this._trans.__("Select a command")},...t.map(o=>({value:o.command,label:`${o.category}: ${o.label}`}))],onChange:o=>{var s,r,i;const a=t.find(c=>c.command===o.target.value);(s=this.props.newShortcutUtils)===null||s===void 0||s.updateCommand((r=a?.command)!==null&&r!==void 0?r:"",(i=a?.category)!==null&&i!==void 0?i:"")}}))}else return n.createElement("div",{className:"jp-Shortcuts-Cell"},n.createElement("div",{className:"jp-label"},(e=this.props.shortcut.label)!==null&&e!==void 0?e:this._trans.__("(Command label missing)")))}getResetShortCutLink(){return n.createElement("a",{className:"jp-Shortcuts-Reset",onClick:()=>this.props.resetKeybindings(this.props.shortcut)},this.props.shortcut.userDefined?this._trans.__("Delete"):this._trans.__("Reset"))}getSourceCell(){var e;const t=this.props.shortcut.keybindings.every(r=>r.isDefault),o=this.props.shortcut.userDefined||!!this.props.newShortcutUtils,s=o?this._trans.__("Custom options"):this._trans.__("Show options");return n.createElement("div",{className:"jp-Shortcuts-Cell"},!this.props.newShortcutUtils&&n.createElement("div",{className:"jp-Shortcuts-SourceCell"},t?this._trans.__("Default"):this._trans.__("Custom")),t?"":this.getResetShortCutLink(),this.props.external.editorFactory&&n.createElement(x,{className:"jp-mod-styled jp-mod-reject jp-Shortcuts-CustomOptions",onClick:async()=>{if(!this.props.external.editorFactory){console.error("Cannot build the custom options form");return}const i=await new rt({shortcut:this.props.shortcut,translator:this.props.external.translator,editorFactory:this.props.external.editorFactory,readOnly:!o}).launch();i.button.accept&&o&&i.value&&await this.props.setCustomOptions(this.props.shortcut,i.value)},title:s,"aria-label":s,appearance:"neutral"},o?n.createElement(W.react,{tag:null}):n.createElement(z.react,{tag:null})),!!this.props.newShortcutUtils&&n.createElement(n.Fragment,null,n.createElement(x,{className:"jp-mod-styled jp-mod-accept jp-Shortcuts-SaveNew",onClick:(e=this.props.newShortcutUtils)===null||e===void 0?void 0:e.saveShortcut,title:this._trans.__("Save shortcut"),"aria-label":this._trans.__("Save shortcut"),appearance:"neutral",disabled:!this.props.shortcut.command||!this.props.shortcut.keybindings.length||this.props.shortcut.keybindings.every(r=>!r.keys||r.keys.length===0)},n.createElement(F.react,{tag:null}))))}getOptionalSelectorCell(){return this.props.showSelectors?n.createElement("div",{className:"jp-Shortcuts-Cell"},n.createElement("div",{className:"jp-selector"},this.props.shortcut.selector)):null}getClassNameForShortCuts(e){const t=["jp-Shortcuts-ShortcutCell"];switch(e.length){case 1:t.push("jp-Shortcuts-SingleCell");break;case 0:t.push("jp-Shortcuts-EmptyCell");break}return t.join(" ")}toggleInputReplaceMethod(e){const t=this.state.displayReplaceInput[e];this.setState({displayReplaceInput:{...this.state.displayReplaceInput,[e]:!t},conflicts:new Map})}getDisplayReplaceInput(e){return this.state.displayReplaceInput[e]}getOrDisplayIfNeeded(e){const t=["jp-Shortcuts-Or"];return(e||this.state.displayNewInput)&&t.push("jp-Shortcuts-Or-Forced"),n.createElement("div",{className:t.join(" ")},this._trans.__("or"))}getShortCutAsInput(e,t){return n.createElement(A,{addKeybinding:this.props.addKeybinding,replaceKeybinding:this.props.replaceKeybinding,deleteKeybinding:this.props.deleteKeybinding,findConflictsFor:this.props.findConflictsFor,toggleInput:()=>this.toggleInputReplaceMethod(t),shortcut:this.props.shortcut,keybinding:e,displayConflicts:o=>{const s=new Map(this.state.conflicts);s.set(e,o),this.setState({conflicts:s})},toSymbols:this.toSymbols,displayInput:this.getDisplayReplaceInput(t),placeholder:this.toSymbols(e.keys.join(", ")),translator:this.props.external.translator})}getShortCutForDisplayOnly(e){return e.keys.map((t,o)=>n.createElement("div",{className:"jp-Shortcuts-ShortcutKeysContainer",key:o},n.createElement("div",{className:"jp-Shortcuts-ShortcutKeys"},this.toSymbols(t).split(" ").map((s,r,i)=>n.createElement(n.Fragment,{key:`${o}-${s}-${r}`},n.createElement("span",{className:"jp-ContextualShortcut-Key"},s),r+1<i.length?" + ":null))),o+1<e.keys.length?n.createElement("div",{className:"jp-Shortcuts-Comma"},","):null))}isLocationBeingEdited(e){return this.state.displayReplaceInput[e]}getDivForKey(e,t,o){return n.createElement("div",{className:"jp-Shortcuts-ShortcutContainer",key:this.props.shortcut.id+"_"+e,"data-keybinding":e,"data-shortcut":this.props.shortcut.id,onClick:()=>this.toggleInputReplaceMethod(e)},this.isLocationBeingEdited(e)?this.getShortCutAsInput(t,e):this.getShortCutForDisplayOnly(t),!(e===this._nonEmptyBindings.length-1&&Object.values(this.state.displayReplaceInput).some(Boolean))&&this.getOrDisplayIfNeeded(e<this._nonEmptyBindings.length-1))}getAddLink(){return n.createElement("a",{className:this.state.displayNewInput?"":"jp-Shortcuts-Plus",onClick:()=>{this.toggleInputNew()}},this._trans.__("Add"))}getInputBoxWhenToggled(){return this.state.displayNewInput?n.createElement(A,{addKeybinding:this.props.addKeybinding,replaceKeybinding:this.props.replaceKeybinding,deleteKeybinding:this.props.deleteKeybinding,findConflictsFor:this.props.findConflictsFor,toggleInput:this.toggleInputNew,shortcut:this.props.shortcut,displayConflicts:e=>{const t=new Map(this.state.conflicts);t.set(null,e),this.setState({conflicts:t})},toSymbols:this.toSymbols,displayInput:this.state.displayNewInput,placeholder:"",translator:this.props.external.translator}):n.createElement("div",null)}getShortCutsCell(e){return n.createElement("div",{className:"jp-Shortcuts-Cell"},n.createElement("div",{className:this.getClassNameForShortCuts(e)},e.map((t,o)=>this.getDivForKey(o,t,e)),e.length>=1&&!this.state.displayNewInput&&!Object.values(this.state.displayReplaceInput).some(Boolean)&&this.getAddLink(),e.length===0&&!this.state.displayNewInput&&this.getAddLink(),this.getInputBoxWhenToggled()))}getConflicts(){const e=[...this.state.conflicts.values()].filter(t=>t.conflictsWith.length!==0);return e.length===0?n.createElement(n.Fragment,null):n.createElement("div",{className:"jp-Shortcuts-Row jp-Shortcuts-RowWithConflict"},n.createElement("div",{className:D},e.map(t=>{const o=t.keys.join(" ")+"_"+t.conflictsWith.map(s=>s.id).join("");return n.createElement("div",{className:"jp-Shortcuts-Conflict",key:o},n.createElement("div",{className:"jp-Shortcuts-ErrorMessage"},this._trans.__("Shortcut already in use by %1. Overwrite it?",t.conflictsWith.map(s=>{var r;return(r=s.label)!==null&&r!==void 0?r:s.command}).join(", "))),n.createElement("div",{className:"jp-Shortcuts-ErrorButton"},n.createElement("button",{className:"jp-Button jp-mod-reject jp-mod-styled",onClick:()=>{this._clearConflict(t),t.cancel()}},this._trans.__("Cancel")),n.createElement("button",{className:"jp-Button jp-mod-warn jp-mod-styled",onClick:()=>{this._clearConflict(t),t.overwrite()}},this._trans.__("Overwrite"))))})))}_clearConflict(e){const t=new Map,o=this._conflictId(e);for(const[s,r]of this.state.conflicts.entries())this._conflictId(r)!==o&&t.set(s,r);this.setState({conflicts:t})}_conflictId(e){return e.keys.join(" ")+"_"+e.conflictsWith.map(t=>t.id).join("")}_getFilteredCommands(){var e,t;const o=new j({commandRegistry:this.props.external.commandRegistry,allCommands:!0}),s=j.matchItems(o,(t=(e=this.props.newShortcutUtils)===null||e===void 0?void 0:e.searchQuery)!==null&&t!==void 0?t:"").map(r=>r.item).filter(r=>!r.command.startsWith("__internal:"));return s.sort((r,i)=>{var a,c;const g=r.category,p=i.category,f=g.localeCompare(p);if(f)return f;{const d=(a=r.label)!==null&&a!==void 0?a:"",m=(c=i.label)!==null&&c!==void 0?c:"";return d.localeCompare(m)}}),s}get _nonEmptyBindings(){return this.props.shortcut.keybindings.filter(e=>e.keys.filter(t=>t!="").length!==0)}render(){return n.createElement(n.Fragment,null,n.createElement("div",{className:`jp-Shortcuts-Row${this.props.newShortcutUtils?" jp-Shortcuts-Row-newShortcut":""}`,"data-shortcut":this.props.shortcut.id},this.getCategoryCell(),this.getLabelCell(),this.getShortCutsCell(this._nonEmptyBindings),this.getSourceCell(),this.getOptionalSelectorCell()),this.getConflicts())}}const dt=115;class ht extends n.Component{render(){return n.createElement("div",{className:"jp-Shortcuts-ShortcutListContainer",style:{height:`${this.props.height-dt}px`},id:"shortcutListContainer"},n.createElement("div",{className:"jp-Shortcuts-ShortcutList"},this.props.shortcuts.map(e=>n.createElement(L,{key:e.id,addKeybinding:this.props.addKeybinding,replaceKeybinding:this.props.replaceKeybinding,deleteKeybinding:this.props.deleteKeybinding,resetKeybindings:this.props.resetKeybindings,findConflictsFor:this.props.findConflictsFor,setCustomOptions:this.props.setCustomOptions,shortcut:e,showSelectors:this.props.showSelectors,external:this.props.external}))))}}class ut extends n.Component{render(){return n.createElement("div",{className:this.props.title.toLowerCase()===this.props.active?"jp-Shortcuts-Header jp-Shortcuts-CurrentHeader":"jp-Shortcuts-Header",onClick:()=>this.props.updateSort(this.props.columnId)},this.props.title,n.createElement($.react,{className:"jp-Shortcuts-SortButton jp-ShortcutTitleItem-sortButton"}))}}function pt(l){const e=l.translator.load("jupyterlab");return n.createElement("div",{className:"jp-Shortcuts-AdvancedOptions"},n.createElement("a",{className:"jp-Shortcuts-AdvancedOptionsLink",onClick:()=>l.toggleSelectors()},l.showSelectors?e.__("Hide Selectors"):e.__("Show Selectors")),n.createElement("a",{className:"jp-Shortcuts-AdvancedOptionsLink",onClick:()=>l.resetShortcuts()},e.__("Reset All")),n.createElement(x,{className:"jp-mod-styled jp-mod-accept jp-Shortcuts-AdvancedOptionsButton",onClick:l.toggleAddCommandRow,title:e.__("Tool for adding shortcuts"),"aria-label":e.__("Tool for adding shortcuts")},n.createElement(Q.react,{tag:"span",elementSize:"xlarge",elementPosition:"center"})))}class mt extends n.Component{constructor(e){super(e)}getShortCutTitleItem(e,t){return n.createElement("div",{className:"jp-Shortcuts-Cell"},n.createElement(ut,{title:e,updateSort:this.props.updateSort,active:this.props.currentSort,columnId:t}))}render(){const e=this.props.translator.load("jupyterlab");return n.createElement("div",{className:"jp-Shortcuts-Top"},n.createElement("div",{className:"jp-Shortcuts-TopNav"},n.createElement(et,{"aria-label":e.__("Search shortcuts"),updateFilter:(t,o)=>this.props.updateSearchQuery(o??""),placeholder:e.__("Search…"),useFuzzyFilter:!1}),n.createElement(pt,{toggleSelectors:this.props.toggleSelectors,showSelectors:this.props.showSelectors,resetShortcuts:this.props.resetShortcuts,toggleAddCommandRow:this.props.toggleAddCommandRow,translator:this.props.translator})),n.createElement("div",{className:"jp-Shortcuts-HeaderRowContainer"},n.createElement("div",{className:"jp-Shortcuts-HeaderRow"},this.getShortCutTitleItem(e.__("Category"),"category"),this.getShortCutTitleItem(e.__("Command"),"command"),n.createElement("div",{className:"jp-Shortcuts-Cell"},n.createElement("div",{className:"title-div"},e.__("Shortcut"))),this.getShortCutTitleItem(e.__("Source"),"source"),this.props.showSelectors&&this.getShortCutTitleItem(e.__("Selectors"),"selector"))))}}class gt extends n.Component{constructor(e){super(e),this.updateSearchQuery=t=>{this.setState({searchQuery:t},()=>{const o=this.state.shortcutRegistry;this.setState({filteredShortcutList:this._searchFilterShortcuts(o)},()=>{this.sortShortcuts()})})},this.resetShortcuts=async()=>{await(await this.props.external.getSettings()).set("shortcuts",[]),await this._refreshShortcutList()},this.resetKeybindings=async t=>{await this._setKeybinding(t,[])},this.replaceKeybinding=async(t,o,s)=>this._setKeybinding(t,s,o),this.deleteKeybinding=async(t,o)=>{await this._setKeybinding(t,[],o)},this.addKeybinding=async(t,o)=>{await this._setKeybinding(t,o)},this.setCustomOptions=async(t,o)=>{var s;const r=await this.props.external.getSettings(),i=(s=r.user.shortcuts)!==null&&s!==void 0?s:[],a=i.filter(c=>{var g,p;return c.command===t.command&&c.selector===t.selector&&b.deepEqual((g=c.args)!==null&&g!==void 0?g:{},(p=t.args)!==null&&p!==void 0?p:{})});return a.length?(a.forEach(c=>{c.selector=o.selector,c.args=o.args}),await r.set("shortcuts",i),await this._refreshShortcutList(),!0):(console.error("Error writing the custom options: target not found"),!1)},this.toggleSelectors=()=>{this.setState({showSelectors:!this.state.showSelectors})},this.toggleAddCommandRow=async()=>{this.setState({showAddCommand:!this.state.showAddCommand})},this.updateSort=t=>{t!==this.state.currentSort&&this.setState({currentSort:t},this.sortShortcuts)},this.saveNewShortcut=async()=>{const t={...this.state.newShortcut,args:void 0};for(let s of t.keybindings)await this.addKeybinding(t,s.keys);await this.setCustomOptions(t,{selector:t.selector,args:this.state.newShortcut.args})&&(this._newShortcutItem.reset(),this.toggleAddCommandRow())},this._newShortcutItem=new it({showSelectors:!1,findConflictsFor:(t,o)=>this.state.shortcutRegistry?this.state.shortcutRegistry.findConflictsFor(t,o):(console.error("Cannot search for keybinding conflicts at this time: registry is not ready"),[]),external:this.props.external}),this.state={shortcutRegistry:null,filteredShortcutList:new Array,shortcutsFetched:!1,searchQuery:"",showSelectors:!1,currentSort:"category",showAddCommand:!1,newShortcut:this._newShortcutItem.shortcut},this._newShortcutItem.changed.connect(()=>{this.setState({newShortcut:{...this._newShortcutItem.shortcut}})})}componentDidMount(){this.props.external.actionRequested.connect(this._onActionRequested,this),this._refreshShortcutList()}componentWillUnmount(){this.props.external.actionRequested.disconnect(this._onActionRequested,this)}async _onActionRequested(e,t){if(t.request==="toggle-selectors")return this.toggleSelectors();t.request==="reset-all"&&await this.resetShortcuts()}async _refreshShortcutList(){const e=await this.props.external.getSettings(),t=new j({commandRegistry:this.props.external.commandRegistry,settings:e});this.setState({shortcutRegistry:t,filteredShortcutList:this._searchFilterShortcuts(t),shortcutsFetched:!0},()=>{this.sortShortcuts()})}_searchFilterShortcuts(e){return e?j.matchItems(e,this.state.searchQuery).map(o=>o.item):[]}async _setKeybinding(e,t,o){var s,r,i,a,c;t.length===1&&t[0]==""&&(t=[]);const g=t.map(w.normalizeKeystroke),p=await this.props.external.getSettings(),f=(s=p.user.shortcuts)!==null&&s!==void 0?s:[],d=[];let m=!1;for(let u of f)if(u.command===e.command&&u.selector===e.selector&&b.deepEqual((r=u.args)!==null&&r!==void 0?r:{},(i=e.args)!==null&&i!==void 0?i:{})&&o&&b.deepEqual(o.keys,w.normalizeKeys(u))){const y=o.isDefault&&b.deepEqual(o.keys,g);t.length!==0&&!y&&d.push(this._setShortcutKeys(u,t)),m=!0}else{if(u.command===e.command&&u.selector===e.selector&&b.deepEqual((a=u.args)!==null&&a!==void 0?a:{},(c=e.args)!==null&&c!==void 0?c:{})&&!o&&t.length===0)continue;d.push(u)}if(!m){const u=!o||!b.deepEqual(o.keys,g);o&&o.isDefault&&u&&d.push(this._shortcutFromTarget(e,o.keys,{disabled:!0,preventDefault:o.preventDefault})),t.length!==0&&u&&d.push(this._shortcutFromTarget(e,t,{preventDefault:o?.preventDefault}))}await p.set("shortcuts",d),await this._refreshShortcutList()}_setShortcutKeys(e,t){const o=this._platformKeys(e);return{...e,[o]:t}}_shortcutFromTarget(e,t,o={}){const s={command:e.command,selector:e.selector,keys:t};return e.args&&!b.deepEqual(e.args,{})&&(s.args=e.args),o.disabled&&(s.disabled=!0),o.preventDefault!==void 0&&(s.preventDefault=o.preventDefault),s}_platformKeys(e){return k.IS_WIN&&e.winKeys?"winKeys":k.IS_MAC&&e.macKeys?"macKeys":!k.IS_WIN&&!k.IS_MAC&&e.linuxKeys?"linuxKeys":"keys"}sortShortcuts(){const e=this.state.filteredShortcutList;let t=this.state.currentSort;t==="command"&&(t="label");const o=s=>{var r;return t==="source"?s.keybindings.every(i=>i.isDefault)?"default":"other":(r=s[t])!==null&&r!==void 0?r:""};e.sort((s,r)=>{var i,a;const c=o(s),g=o(r),p=c.localeCompare(g);if(p)return p;{const f=(i=s.label)!==null&&i!==void 0?i:"",d=(a=r.label)!==null&&a!==void 0?a:"";return f.localeCompare(d)}}),this.setState({filteredShortcutList:e})}render(){return this.state.shortcutsFetched?n.createElement("div",{className:"jp-Shortcuts-ShortcutUI",id:"jp-shortcutui"},n.createElement(mt,{updateSearchQuery:this.updateSearchQuery,resetShortcuts:this.resetShortcuts,toggleSelectors:this.toggleSelectors,showSelectors:this.state.showSelectors,updateSort:this.updateSort,currentSort:this.state.currentSort,toggleAddCommandRow:this.toggleAddCommandRow,width:this.props.width,translator:this.props.external.translator}),this.state.showAddCommand&&n.createElement(L,{...this._newShortcutItem,shortcut:this.state.newShortcut,newShortcutUtils:{searchQuery:this.state.searchQuery,updateCommand:this._newShortcutItem.updateCommand,saveShortcut:this.saveNewShortcut}}),n.createElement(ht,{shortcuts:this.state.filteredShortcutList,resetKeybindings:this.resetKeybindings,addKeybinding:this.addKeybinding,replaceKeybinding:this.replaceKeybinding,deleteKeybinding:this.deleteKeybinding,setCustomOptions:this.setCustomOptions,showSelectors:this.state.showSelectors,findConflictsFor:(e,t)=>this.state.shortcutRegistry?this.state.shortcutRegistry.findConflictsFor(e,t):(console.error("Cannot search for keybinding conflicts at this time: registry is not ready"),[]),height:this.props.height,external:this.props.external})):null}}const yt=l=>P.createElement(gt,{external:l.external,height:1e3,width:1e3}),T="@jupyterlab/shortcuts-extension:shortcuts";function ft(l,e,t,o,s){return{translator:t,getSettings:()=>l.load(T,!0),commandRegistry:e.commands,actionRequested:o,editorFactory:s}}const v={id:T,description:"Adds the keyboard shortcuts editor.",requires:[ot],optional:[V,st,G],activate:async(l,e,t,o,s)=>{const r=t??Y,i=r.load("jupyterlab"),{commands:a}=l;let c,g,p={};if(o){const d=new R({}),m=h=>h.dataset.shortcut!==void 0;l.commands.addCommand(C.editBinding,{label:i.__("Edit Keybinding"),caption:i.__("Edit existing keybinding"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{const h=l.contextMenuHitTest(m),S=h?.dataset.keybinding,_=h?.dataset.shortcut;if(!_||!S)return console.log("Missing shortcut id/keybinding information");d.emit({request:"edit-keybinding",keybinding:parseInt(S,10),shortcutId:_})}}),l.commands.addCommand(C.deleteBinding,{label:i.__("Delete Keybinding"),caption:i.__("Delete chosen keybinding"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{const h=l.contextMenuHitTest(m),S=h?.dataset.keybinding,_=h?.dataset.shortcut;if(!_||!S)return console.log("Missing shortcut id/keybinding information");d.emit({request:"delete-keybinding",keybinding:parseInt(S,10),shortcutId:_})}}),l.commands.addCommand(C.addBinding,{label:i.__("Add Keybinding"),caption:i.__("Add new keybinding for existing shortcut target"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{const h=l.contextMenuHitTest(m),S=h?.dataset.shortcut;if(!S)return console.log("Missing shortcut id to add keybinding to");d.emit({request:"add-keybinding",shortcutId:S})}}),a.addCommand(C.toggleSelectors,{label:i.__("Toggle Selectors"),caption:i.__("Toggle command selectors"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{d.emit({request:"toggle-selectors"})}}),a.addCommand(C.resetAll,{label:i.__("Reset All"),caption:i.__("Reset all shortcuts"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{d.emit({request:"reset-all"})}});const u=s?h=>s.factoryService.newInlineEditor(h):void 0,y={fieldRenderer:h=>yt({external:ft(e,l,r,d,u),...h})};o.addRenderer(`${v.id}.shortcuts`,y)}function f(d){const m=l.commands.listCommands().join(`
|
|
1
|
+
import{aa as R,aG as I,aB as O,fU as M,r as n,dL as w,ch as b,fV as q,eJ as F,fW as H,fX as J,aA as U,fY as k,ef as x,dT as W,fZ as z,f_ as $,cp as Q,J as P,aD as V,ew as G,aE as Y,dB as X,dy as Z}from"../datalayer-app-main.js";import{H as tt}from"./htmlselect-CIhYGigR.js";import{o as et}from"./index-CvKH_NYI.js";import{a as st}from"./tokens-B3Xc25f7.js";import{I as ot}from"./tokens-1h_N3aLM.js";import"./Output-CJVIj3Io.js";import"./index-BMY48-7N.js";import"./hoverbox-CStlKQWE.js";import"./index-CaEDkyBB.js";import"./index-CXSUknte.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-DXPB_0fo.js";import"./d3-color-Jd8hXty2.js";import"./dist-Frc5TvpU.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./index-BaRoLDk0.js";import"./RestartIcon-DvpOf5Mf.js";import"./CellSidebarExtension-DwGg7VbR.js";import"./NotebookSkeleton-GSdyJDf_.js";import"./Avatar-DUPBQXVt.js";import"./renderer-CtmiT4nP.js";import"./SquareIcon-Dy3l3VdH.js";import"./FileDirectoryOpenFillIcon-jGhuRcP3.js";import"./url-DY3jeuF8.js";/* empty css *//* empty css */import"./style-DdAxk_bj.js";/* empty css */import"./style-Cj1gzCjo.js";/* empty css */import"./style-rkw8dR9f.js";import"./style-GHJFdtIz.js";import"./style-ZSIOeMoX.js";import"./style-iVfD6mFL.js";import"./style-DA-Ya7rp.js";import"./style-D3tvWcFO.js";import"./style-BOqStzF9.js";import"./style-ADLQJ-E9.js";import"./style-DgglluaK.js";import"./ArrowLeftIcon-sX3iNMG1.js";import"./SkubbleIcon-CAaVh_BE.js";import"./usePrimerThemeBridge-BoT73xjq.js";import"./index-CShCHnof.js";import"./KernelVariables-CmWkosM8.js";import"./index-BWeXDhSd.js";import"./SortAscIcon-CmH04s3F.js";import"./SortDescIcon-Qif6E10I.js";import"./NotebookToolbar-C1fpK-Vi.js";import"./RepoPushIcon-BtXQRhLa.js";import"./sessions-LMslHH3H.js";import"./tokens-UgGv77-l.js";import"./drivecontents-BabrDJge.js";import"./kernel-DWlDRhgJ.js";class it{constructor(e){this.reset=()=>{this._shortcut={id:"new shortcut",command:"",keybindings:[],selector:"body",category:"",args:{}},this._changed.emit()},this.addKeybinding=async(t,o)=>{this._shortcut.keybindings.push({keys:o,isDefault:!1}),this._changed.emit()},this.replaceKeybinding=async(t,o,s)=>{if(s=s.filter(i=>i!==""),!s.length)return this.deleteKeybinding(t,o);const r=this._shortcut.keybindings.findIndex(i=>i.keys===o.keys);r>-1?this._shortcut.keybindings[r]={keys:s,isDefault:!1}:this.addKeybinding(t,s),this._changed.emit()},this.deleteKeybinding=async(t,o)=>{const s=this._shortcut.keybindings.findIndex(r=>r.keys===o.keys);s>-1&&(this._shortcut.keybindings.splice(s,1),this._changed.emit())},this.resetKeybindings=async t=>{this._shortcut={...this._shortcut,keybindings:[]},this._changed.emit()},this.setCustomOptions=async(t,o)=>(this._shortcut={...this._shortcut,selector:o.selector,args:o.args},this._changed.emit(),!0),this.updateCommand=(t,o)=>{this._shortcut={...this._shortcut,command:t,category:o},this._changed.emit()},this._changed=new R(this),this._shortcut={id:"new shortcut",command:"",keybindings:[],selector:"body",category:"",args:{}},this.findConflictsFor=e.findConflictsFor,this.showSelectors=e.showSelectors,this.external=e.external}get shortcut(){return this._shortcut}get changed(){return this._changed}}class rt extends I{constructor(e){const{shortcut:t,translator:o,editorFactory:s}=e,r=o.load("jupyterlab"),i=new nt(t,o,s,()=>this._checkValidation(),e.readOnly),a=[];e.readOnly?a.push(I.cancelButton({label:r.__("OK")})):(a.push(I.cancelButton({label:r.__("Cancel")})),a.push(I.okButton({label:r.__("Apply")}))),super({title:e.readOnly?r.__("Shortcut Options"):r.__("Custom Shortcut Options"),body:i,buttons:a})}_evtKeydown(e){if(e.key==="Enter"){const t=this.node.querySelector(".jp-JSONEditor"),o=document.activeElement;if(t instanceof HTMLElement&&o instanceof HTMLElement&&t.contains(o)){e.stopPropagation();return}}super._evtKeydown(e)}}class nt extends O{constructor(e,t,o,s,r){var i,a;super();const c=t.load("jupyterlab");this.addClass("jp-Shortcuts-CustomOptionsDialogBody");const g=document.createElement("div");g.className="jp-Shortcuts-CustomOptionDialog-container";const p=document.createElement("label");p.textContent=c.__("Selector:"),p.className="jp-Dialog-label",this._selectorInput=document.createElement("input"),this._selectorInput.type="text",this._selectorInput.disabled=r??!1,this._selectorInput.value=e.selector,this._selectorInput.className="jp-mod-styled",g.appendChild(p),g.appendChild(this._selectorInput);const f=document.createElement("label");if(f.textContent=c.__("Arguments:"),f.className="jp-Dialog-label",g.appendChild(f),r){const d=document.createElement("pre");d.textContent=JSON.stringify((i=e.args)!==null&&i!==void 0?i:{},void 0,2),g.appendChild(d)}else this._editorWidget=new at((a=e.args)!==null&&a!==void 0?a:{},o,s),g.appendChild(this._editorWidget.node);this.node.appendChild(g)}getValue(){var e,t;const o=(t=(e=this._editorWidget)===null||e===void 0?void 0:e.getJSON())!==null&&t!==void 0?t:"{}";let s;try{s=JSON.parse(o)}catch(r){console.error(`Invalid JSON in arguments: ${r instanceof Error?r.message:String(r)}`),s={}}return{selector:this._selectorInput.value,args:s}}dispose(){var e;(e=this._editorWidget)===null||e===void 0||e.dispose(),super.dispose()}}class at extends O{constructor(e,t,o){super(),this._validateJSON=()=>{try{const a=this._editor.model.sharedModel.getSource();JSON.parse(a),this.node.classList.remove("jp-mod-error")}catch{this.node.classList.add("jp-mod-error")}this._checkValidation()},this.addClass("jp-JSONEditor"),this._checkValidation=o;const s=document.createElement("div");s.className="jp-JSONEditor-host";const r=new M.Model({mimeType:"application/json"}),i=JSON.stringify(e,null,2);r.sharedModel.setSource(i),this._editor=t({host:s,model:r,config:{readOnly:!1}}),this.node.appendChild(s),this._editor.model.sharedModel.changed.connect(this._validateJSON,this)}getJSON(){return this._editor.model.sharedModel.getSource()}dispose(){this._editor.model.sharedModel.changed.disconnect(this._validateJSON,this),this._editor.dispose(),super.dispose()}}const D="jp-Shortcuts-ConflictContainer";class A extends n.Component{constructor(e){super(e),this.handleSubmit=async()=>{this._isReplacingExistingKeybinding?this.state.selected?this.props.toggleInput():await this._updateShortcut():(await this._updateShortcut(),this.props.toggleInput())},this._updateShortcut=async()=>{const t=[...this.state.keys,this.state.currentChain];this.setState({keys:t}),this.props.keybinding?await this.props.replaceKeybinding(this.props.shortcut,this.props.keybinding,t):await this.props.addKeybinding(this.props.shortcut,t)},this._handleOverwrite=async(t,o)=>{const s=o.map(w.normalizeKeystroke);for(const r of t){const i=r.keybindings.filter(a=>b.deepEqual(a.keys,s)||s.some(c=>b.deepEqual(a.keys,[c])))[0];if(!i){console.error(`Conflicting binding could not be found for ${r} using keys ${o}`);continue}await this.props.deleteKeybinding(r,i)}await this._updateShortcut()},this.parseChaining=(t,o,s,r,i)=>{let a=q.keyForKeydownEvent(t.nativeEvent);const c=["Shift","Control","Alt","Meta","Ctrl","Accel"];if(t.key==="Backspace")s="",o="",r=[],i="",this.setState({value:o,userInput:s,keys:r,currentChain:i});else if(t.key!=="CapsLock"){const g=s.substr(s.lastIndexOf(" ")+1,s.length).trim();c.lastIndexOf(g)===-1&&g!=""?(s=s+",",r.push(i),i="",t.ctrlKey&&t.key!="Control"&&(s=(s+" Ctrl").trim(),i=(i+" Ctrl").trim()),t.metaKey&&t.key!="Meta"&&(s=(s+" Accel").trim(),i=(i+" Accel").trim()),t.altKey&&t.key!="Alt"&&(s=(s+" Alt").trim(),i=(i+" Alt").trim()),t.shiftKey&&t.key!="Shift"&&(s=(s+" Shift").trim(),i=(i+" Shift").trim()),c.lastIndexOf(t.key)===-1?(s=(s+" "+a).trim(),i=(i+" "+a).trim()):t.key==="Meta"?(s=(s+" Accel").trim(),i=(i+" Accel").trim()):t.key==="Control"?(s=(s+" Ctrl").trim(),i=(i+" Ctrl").trim()):t.key==="Shift"?(s=(s+" Shift").trim(),i=(i+" Shift").trim()):t.key==="Alt"?(s=(s+" Alt").trim(),i=(i+" Alt").trim()):(s=(s+" "+t.key).trim(),i=(i+" "+t.key).trim())):t.key==="Control"?(s=(s+" Ctrl").trim(),i=(i+" Ctrl").trim()):t.key==="Meta"?(s=(s+" Accel").trim(),i=(i+" Accel").trim()):t.key==="Shift"?(s=(s+" Shift").trim(),i=(i+" Shift").trim()):t.key==="Alt"?(s=(s+" Alt").trim(),i=(i+" Alt").trim()):(s=(s+" "+a).trim(),i=(i+" "+a).trim())}return this.setState({keys:r,currentChain:i}),[s,r,i]},this.checkNonFunctional=()=>{const t=["Ctrl","Alt","Accel","Shift"],o=this.state.currentChain.split(" "),s=o[o.length-1];return this.setState({isFunctional:t.indexOf(s)===-1}),t.indexOf(s)!==-1},this.checkShortcutAvailability=(t,o,s)=>{const r=this.props.findConflictsFor([...o,s],this.props.shortcut.selector),i=t===""||r.length===0;return!i&&r.length===1&&r[0].id===this.props.shortcut.id&&this._isReplacingExistingKeybinding?(this.setState({isAvailable:!0}),[]):(this.setState({isAvailable:i}),r)},this.handleInput=t=>{t.preventDefault(),this.setState({selected:!1});const o=this.parseChaining(t,this.state.value,this.state.userInput,this.state.keys,this.state.currentChain),s=o[0],r=o[1],i=o[2],a=this.props.toSymbols(s);let c=this.checkShortcutAvailability(s,r,i);this.setState({value:a,userInput:s,keys:r,currentChain:i},()=>{this.checkNonFunctional(),this._emitConflicts(c)})},this._handleBlur=t=>{var o,s;!((o=this._ref.current)===null||o===void 0)&&o.contains(t.relatedTarget)||!((s=t.relatedTarget)===null||s===void 0)&&s.closest(`.${D}`)||this.props.toggleInput()},this._ref=n.createRef(),this.state={value:this.props.placeholder,userInput:"",isAvailable:!0,isFunctional:this._isReplacingExistingKeybinding,keys:[],currentChain:"",selected:!0}}get _isReplacingExistingKeybinding(){return!!this.props.keybinding}_emitConflicts(e){const t=[...this.state.keys,this.state.currentChain];this.props.displayConflicts({conflictsWith:e,keys:this.state.keys,overwrite:async()=>{this.setState({isAvailable:!0}),await this._handleOverwrite(e,t),this.props.toggleInput()},cancel:()=>{this.props.toggleInput()}})}render(){const e=this.props.translator.load("jupyterlab");let t="jp-Shortcuts-Input";return this.state.isAvailable||(t+=" jp-mod-unavailable-Input"),n.createElement("div",{className:this.props.displayInput?this._isReplacingExistingKeybinding?"jp-Shortcuts-InputBox":"jp-Shortcuts-InputBox jp-Shortcuts-InputBoxNew":"jp-mod-hidden",ref:this._ref,onBlur:this._handleBlur},n.createElement("div",{tabIndex:0,className:t,onKeyDown:this.handleInput,ref:o=>o&&o.focus(),"data-lm-suppress-shortcuts":"true"},n.createElement("p",{className:this.state.selected&&this._isReplacingExistingKeybinding?"jp-Shortcuts-InputText jp-mod-selected-InputText":this.state.value===""?"jp-Shortcuts-InputText jp-mod-waiting-InputText":"jp-Shortcuts-InputText"},this.state.value===""?e.__("press keys"):this.state.value)),n.createElement("button",{className:this.state.isFunctional?this.state.isAvailable?"jp-Shortcuts-Submit":"jp-Shortcuts-Submit jp-mod-conflict-Submit":"jp-Shortcuts-Submit jp-mod-defunc-Submit",disabled:!this.state.isAvailable||!this.state.isFunctional,onClick:this.handleSubmit,tabIndex:0},this.state.isAvailable?n.createElement(F.react,null):n.createElement(H.react,null)))}}var C;(function(l){l.editBinding="shortcuts:edit-keybinding",l.addBinding="shortcuts:add-keybinding",l.deleteBinding="shortcuts:delete-keybinding",l.toggleSelectors="shortcuts:toggle-selectors",l.resetAll="shortcuts:reset-all"})(C||(C={}));var E;(function(l){l[l.Label=0]="Label",l[l.Category=1]="Category",l[l.Split=2]="Split",l[l.Default=3]="Default"})(E||(E={}));class j extends Map{constructor(e){var t,o,s,r;super();const{settings:i,commandRegistry:a,allCommands:c}=e;if(c)for(const g of a.listCommands()){const p={command:g,selector:"body"},f=this._computeTargetId(p),d=p.command.split(":"),m=(t=a.label(p.command,p.args))!==null&&t!==void 0?t:d.length>1?d[1]:void 0,u=d[0],y={...p,id:f,keybindings:[],category:u,label:m,args:{}};this.set(f,y)}else if(i){const g=(o=i.user.shortcuts)!==null&&o!==void 0?o:[],p=new Set(g.map(this._computeKeybindingId.bind(this))),f=(s=i.composite.shortcuts)!==null&&s!==void 0?s:[],d=i.default("shortcuts").map(m=>this._computeTargetId(m));for(const m of f){const u=this._computeTargetId(m),y=this._computeKeybindingId(m),h={keys:w.normalizeKeys(m),isDefault:!p.has(y),...m.preventDefault===void 0?{}:{preventDefault:m.preventDefault}},S=this.get(u);if(S)S.keybindings.push(h);else{const _=m.command.split(":"),K=(r=a.label(m.command,m.args))!==null&&r!==void 0?r:_.length>1?_[1]:void 0,B=_[0];this.set(u,{id:u,selector:m.selector,command:m.command,category:B,label:K,args:m.args,keybindings:[h],userDefined:!d.includes(u)})}}}}findConflictsFor(e,t){const o=new lt({registry:this}),s=e.map(w.normalizeKeystroke);let r=o.findConflicts(s,t);if(r.length!==0)return r;for(const i of s)if(r=o.findConflicts([i],t),r.length!==0)return r;return[]}_computeTargetId(e){var t;return e.command+"_"+e.selector+"_"+JSON.stringify((t=e.args)!==null&&t!==void 0?t:{})}_computeKeybindingId(e){var t;return[e.command,e.selector,JSON.stringify((t=e.args)!==null&&t!==void 0?t:{}),w.normalizeKeys(e).join(" ")].join("_")}}class lt{constructor(e){var t;const o=new Map;for(const s of e.registry.values())for(const r of s.keybindings){const i=this._keybindingHash(r.keys,s.selector),a=(t=o.get(i))!==null&&t!==void 0?t:[];a.push(s),o.set(i,a)}this._keybindingsMap=o}findConflicts(e,t){var o;const s=this._keybindingHash(e,t);return(o=this._keybindingsMap.get(s))!==null&&o!==void 0?o:[]}_keybindingHash(e,t){return e.join(" ")+"_"+t}}(function(l){function e(s){return s.replace(/\s+/g,"").toLowerCase()}function t(s,r){var i;const a=s.category.toLowerCase(),c=((i=s.label)!==null&&i!==void 0?i:"").toLowerCase(),g=`${a} ${c}`;let p=1/0,f=null;const d=/\b\w/g;for(;;){const S=d.exec(g);if(!S)break;const _=J.matchSumOfDeltas(g,r,S.index);if(!_)break;_&&_.score<=p&&(p=_.score,f=_.indices)}if(!f||p===1/0)return null;const m=a.length+1,u=U.lowerBound(f,m,(S,_)=>S-_),y=f.slice(0,u),h=f.slice(u);for(let S=0,_=h.length;S<_;++S)h[S]-=m;return y.length===0?{matchType:E.Label,categoryIndices:null,labelIndices:h,score:p,item:s}:h.length===0?{matchType:E.Category,categoryIndices:y,labelIndices:null,score:p,item:s}:{matchType:E.Split,categoryIndices:y,labelIndices:h,score:p,item:s}}function o(s,r){r=e(r);let i=[];for(const a of s.values()){if(!r){i.push({matchType:E.Default,categoryIndices:null,labelIndices:null,score:0,item:a});continue}let c=t(a,r);c&&i.push(c)}return i}l.matchItems=o})(j||(j={}));const ct={Ctrl:"⌃",Alt:"⌥",Shift:"⇧",Accel:"⌘",Cmd:"⌘"};class L extends n.Component{constructor(e){super(e),this.toggleInputNew=()=>{this.setState({displayNewInput:!this.state.displayNewInput,conflicts:new Map})},this.toSymbols=t=>k.IS_MAC?t.split(" ").map(o=>{var s;return(s=ct[o])!==null&&s!==void 0?s:o}).join(" "):t.split(" ").map(o=>o==="Accel"?"Ctrl":o).join(" "),this._trans=this.props.external.translator.load("jupyterlab"),this.state={displayNewInput:!1,displayReplaceInput:Object.freeze({}),conflicts:new Map}}componentDidMount(){this.props.external.actionRequested.connect(this._onActionRequested,this)}componentWillUnmount(){this.props.external.actionRequested.disconnect(this._onActionRequested,this)}async _onActionRequested(e,t){if(!("shortcutId"in t&&t.shortcutId!==this.props.shortcut.id)){if(t.request==="add-keybinding")return this.toggleInputNew();if(t.request==="edit-keybinding"&&this.toggleInputReplaceMethod(t.keybinding),t.request==="delete-keybinding"){const o=this.props.shortcut,s=o.keybindings[t.keybinding];this.props.deleteKeybinding(o,s).catch(console.error)}}}getCategoryCell(){return n.createElement("div",{className:"jp-Shortcuts-Cell"},this.props.shortcut.category)}getLabelCell(){var e;if(this.props.newShortcutUtils){const t=this._getFilteredCommands();return n.createElement("div",{className:"jp-Shortcuts-Cell"},n.createElement(tt,{value:this.props.shortcut.command,options:[{value:"",label:this._trans.__("Select a command")},...t.map(o=>({value:o.command,label:`${o.category}: ${o.label}`}))],onChange:o=>{var s,r,i;const a=t.find(c=>c.command===o.target.value);(s=this.props.newShortcutUtils)===null||s===void 0||s.updateCommand((r=a?.command)!==null&&r!==void 0?r:"",(i=a?.category)!==null&&i!==void 0?i:"")}}))}else return n.createElement("div",{className:"jp-Shortcuts-Cell"},n.createElement("div",{className:"jp-label"},(e=this.props.shortcut.label)!==null&&e!==void 0?e:this._trans.__("(Command label missing)")))}getResetShortCutLink(){return n.createElement("a",{className:"jp-Shortcuts-Reset",onClick:()=>this.props.resetKeybindings(this.props.shortcut)},this.props.shortcut.userDefined?this._trans.__("Delete"):this._trans.__("Reset"))}getSourceCell(){var e;const t=this.props.shortcut.keybindings.every(r=>r.isDefault),o=this.props.shortcut.userDefined||!!this.props.newShortcutUtils,s=o?this._trans.__("Custom options"):this._trans.__("Show options");return n.createElement("div",{className:"jp-Shortcuts-Cell"},!this.props.newShortcutUtils&&n.createElement("div",{className:"jp-Shortcuts-SourceCell"},t?this._trans.__("Default"):this._trans.__("Custom")),t?"":this.getResetShortCutLink(),this.props.external.editorFactory&&n.createElement(x,{className:"jp-mod-styled jp-mod-reject jp-Shortcuts-CustomOptions",onClick:async()=>{if(!this.props.external.editorFactory){console.error("Cannot build the custom options form");return}const i=await new rt({shortcut:this.props.shortcut,translator:this.props.external.translator,editorFactory:this.props.external.editorFactory,readOnly:!o}).launch();i.button.accept&&o&&i.value&&await this.props.setCustomOptions(this.props.shortcut,i.value)},title:s,"aria-label":s,appearance:"neutral"},o?n.createElement(W.react,{tag:null}):n.createElement(z.react,{tag:null})),!!this.props.newShortcutUtils&&n.createElement(n.Fragment,null,n.createElement(x,{className:"jp-mod-styled jp-mod-accept jp-Shortcuts-SaveNew",onClick:(e=this.props.newShortcutUtils)===null||e===void 0?void 0:e.saveShortcut,title:this._trans.__("Save shortcut"),"aria-label":this._trans.__("Save shortcut"),appearance:"neutral",disabled:!this.props.shortcut.command||!this.props.shortcut.keybindings.length||this.props.shortcut.keybindings.every(r=>!r.keys||r.keys.length===0)},n.createElement(F.react,{tag:null}))))}getOptionalSelectorCell(){return this.props.showSelectors?n.createElement("div",{className:"jp-Shortcuts-Cell"},n.createElement("div",{className:"jp-selector"},this.props.shortcut.selector)):null}getClassNameForShortCuts(e){const t=["jp-Shortcuts-ShortcutCell"];switch(e.length){case 1:t.push("jp-Shortcuts-SingleCell");break;case 0:t.push("jp-Shortcuts-EmptyCell");break}return t.join(" ")}toggleInputReplaceMethod(e){const t=this.state.displayReplaceInput[e];this.setState({displayReplaceInput:{...this.state.displayReplaceInput,[e]:!t},conflicts:new Map})}getDisplayReplaceInput(e){return this.state.displayReplaceInput[e]}getOrDisplayIfNeeded(e){const t=["jp-Shortcuts-Or"];return(e||this.state.displayNewInput)&&t.push("jp-Shortcuts-Or-Forced"),n.createElement("div",{className:t.join(" ")},this._trans.__("or"))}getShortCutAsInput(e,t){return n.createElement(A,{addKeybinding:this.props.addKeybinding,replaceKeybinding:this.props.replaceKeybinding,deleteKeybinding:this.props.deleteKeybinding,findConflictsFor:this.props.findConflictsFor,toggleInput:()=>this.toggleInputReplaceMethod(t),shortcut:this.props.shortcut,keybinding:e,displayConflicts:o=>{const s=new Map(this.state.conflicts);s.set(e,o),this.setState({conflicts:s})},toSymbols:this.toSymbols,displayInput:this.getDisplayReplaceInput(t),placeholder:this.toSymbols(e.keys.join(", ")),translator:this.props.external.translator})}getShortCutForDisplayOnly(e){return e.keys.map((t,o)=>n.createElement("div",{className:"jp-Shortcuts-ShortcutKeysContainer",key:o},n.createElement("div",{className:"jp-Shortcuts-ShortcutKeys"},this.toSymbols(t).split(" ").map((s,r,i)=>n.createElement(n.Fragment,{key:`${o}-${s}-${r}`},n.createElement("span",{className:"jp-ContextualShortcut-Key"},s),r+1<i.length?" + ":null))),o+1<e.keys.length?n.createElement("div",{className:"jp-Shortcuts-Comma"},","):null))}isLocationBeingEdited(e){return this.state.displayReplaceInput[e]}getDivForKey(e,t,o){return n.createElement("div",{className:"jp-Shortcuts-ShortcutContainer",key:this.props.shortcut.id+"_"+e,"data-keybinding":e,"data-shortcut":this.props.shortcut.id,onClick:()=>this.toggleInputReplaceMethod(e)},this.isLocationBeingEdited(e)?this.getShortCutAsInput(t,e):this.getShortCutForDisplayOnly(t),!(e===this._nonEmptyBindings.length-1&&Object.values(this.state.displayReplaceInput).some(Boolean))&&this.getOrDisplayIfNeeded(e<this._nonEmptyBindings.length-1))}getAddLink(){return n.createElement("a",{className:this.state.displayNewInput?"":"jp-Shortcuts-Plus",onClick:()=>{this.toggleInputNew()}},this._trans.__("Add"))}getInputBoxWhenToggled(){return this.state.displayNewInput?n.createElement(A,{addKeybinding:this.props.addKeybinding,replaceKeybinding:this.props.replaceKeybinding,deleteKeybinding:this.props.deleteKeybinding,findConflictsFor:this.props.findConflictsFor,toggleInput:this.toggleInputNew,shortcut:this.props.shortcut,displayConflicts:e=>{const t=new Map(this.state.conflicts);t.set(null,e),this.setState({conflicts:t})},toSymbols:this.toSymbols,displayInput:this.state.displayNewInput,placeholder:"",translator:this.props.external.translator}):n.createElement("div",null)}getShortCutsCell(e){return n.createElement("div",{className:"jp-Shortcuts-Cell"},n.createElement("div",{className:this.getClassNameForShortCuts(e)},e.map((t,o)=>this.getDivForKey(o,t,e)),e.length>=1&&!this.state.displayNewInput&&!Object.values(this.state.displayReplaceInput).some(Boolean)&&this.getAddLink(),e.length===0&&!this.state.displayNewInput&&this.getAddLink(),this.getInputBoxWhenToggled()))}getConflicts(){const e=[...this.state.conflicts.values()].filter(t=>t.conflictsWith.length!==0);return e.length===0?n.createElement(n.Fragment,null):n.createElement("div",{className:"jp-Shortcuts-Row jp-Shortcuts-RowWithConflict"},n.createElement("div",{className:D},e.map(t=>{const o=t.keys.join(" ")+"_"+t.conflictsWith.map(s=>s.id).join("");return n.createElement("div",{className:"jp-Shortcuts-Conflict",key:o},n.createElement("div",{className:"jp-Shortcuts-ErrorMessage"},this._trans.__("Shortcut already in use by %1. Overwrite it?",t.conflictsWith.map(s=>{var r;return(r=s.label)!==null&&r!==void 0?r:s.command}).join(", "))),n.createElement("div",{className:"jp-Shortcuts-ErrorButton"},n.createElement("button",{className:"jp-Button jp-mod-reject jp-mod-styled",onClick:()=>{this._clearConflict(t),t.cancel()}},this._trans.__("Cancel")),n.createElement("button",{className:"jp-Button jp-mod-warn jp-mod-styled",onClick:()=>{this._clearConflict(t),t.overwrite()}},this._trans.__("Overwrite"))))})))}_clearConflict(e){const t=new Map,o=this._conflictId(e);for(const[s,r]of this.state.conflicts.entries())this._conflictId(r)!==o&&t.set(s,r);this.setState({conflicts:t})}_conflictId(e){return e.keys.join(" ")+"_"+e.conflictsWith.map(t=>t.id).join("")}_getFilteredCommands(){var e,t;const o=new j({commandRegistry:this.props.external.commandRegistry,allCommands:!0}),s=j.matchItems(o,(t=(e=this.props.newShortcutUtils)===null||e===void 0?void 0:e.searchQuery)!==null&&t!==void 0?t:"").map(r=>r.item).filter(r=>!r.command.startsWith("__internal:"));return s.sort((r,i)=>{var a,c;const g=r.category,p=i.category,f=g.localeCompare(p);if(f)return f;{const d=(a=r.label)!==null&&a!==void 0?a:"",m=(c=i.label)!==null&&c!==void 0?c:"";return d.localeCompare(m)}}),s}get _nonEmptyBindings(){return this.props.shortcut.keybindings.filter(e=>e.keys.filter(t=>t!="").length!==0)}render(){return n.createElement(n.Fragment,null,n.createElement("div",{className:`jp-Shortcuts-Row${this.props.newShortcutUtils?" jp-Shortcuts-Row-newShortcut":""}`,"data-shortcut":this.props.shortcut.id},this.getCategoryCell(),this.getLabelCell(),this.getShortCutsCell(this._nonEmptyBindings),this.getSourceCell(),this.getOptionalSelectorCell()),this.getConflicts())}}const dt=115;class ht extends n.Component{render(){return n.createElement("div",{className:"jp-Shortcuts-ShortcutListContainer",style:{height:`${this.props.height-dt}px`},id:"shortcutListContainer"},n.createElement("div",{className:"jp-Shortcuts-ShortcutList"},this.props.shortcuts.map(e=>n.createElement(L,{key:e.id,addKeybinding:this.props.addKeybinding,replaceKeybinding:this.props.replaceKeybinding,deleteKeybinding:this.props.deleteKeybinding,resetKeybindings:this.props.resetKeybindings,findConflictsFor:this.props.findConflictsFor,setCustomOptions:this.props.setCustomOptions,shortcut:e,showSelectors:this.props.showSelectors,external:this.props.external}))))}}class ut extends n.Component{render(){return n.createElement("div",{className:this.props.title.toLowerCase()===this.props.active?"jp-Shortcuts-Header jp-Shortcuts-CurrentHeader":"jp-Shortcuts-Header",onClick:()=>this.props.updateSort(this.props.columnId)},this.props.title,n.createElement($.react,{className:"jp-Shortcuts-SortButton jp-ShortcutTitleItem-sortButton"}))}}function pt(l){const e=l.translator.load("jupyterlab");return n.createElement("div",{className:"jp-Shortcuts-AdvancedOptions"},n.createElement("a",{className:"jp-Shortcuts-AdvancedOptionsLink",onClick:()=>l.toggleSelectors()},l.showSelectors?e.__("Hide Selectors"):e.__("Show Selectors")),n.createElement("a",{className:"jp-Shortcuts-AdvancedOptionsLink",onClick:()=>l.resetShortcuts()},e.__("Reset All")),n.createElement(x,{className:"jp-mod-styled jp-mod-accept jp-Shortcuts-AdvancedOptionsButton",onClick:l.toggleAddCommandRow,title:e.__("Tool for adding shortcuts"),"aria-label":e.__("Tool for adding shortcuts")},n.createElement(Q.react,{tag:"span",elementSize:"xlarge",elementPosition:"center"})))}class mt extends n.Component{constructor(e){super(e)}getShortCutTitleItem(e,t){return n.createElement("div",{className:"jp-Shortcuts-Cell"},n.createElement(ut,{title:e,updateSort:this.props.updateSort,active:this.props.currentSort,columnId:t}))}render(){const e=this.props.translator.load("jupyterlab");return n.createElement("div",{className:"jp-Shortcuts-Top"},n.createElement("div",{className:"jp-Shortcuts-TopNav"},n.createElement(et,{"aria-label":e.__("Search shortcuts"),updateFilter:(t,o)=>this.props.updateSearchQuery(o??""),placeholder:e.__("Search…"),useFuzzyFilter:!1}),n.createElement(pt,{toggleSelectors:this.props.toggleSelectors,showSelectors:this.props.showSelectors,resetShortcuts:this.props.resetShortcuts,toggleAddCommandRow:this.props.toggleAddCommandRow,translator:this.props.translator})),n.createElement("div",{className:"jp-Shortcuts-HeaderRowContainer"},n.createElement("div",{className:"jp-Shortcuts-HeaderRow"},this.getShortCutTitleItem(e.__("Category"),"category"),this.getShortCutTitleItem(e.__("Command"),"command"),n.createElement("div",{className:"jp-Shortcuts-Cell"},n.createElement("div",{className:"title-div"},e.__("Shortcut"))),this.getShortCutTitleItem(e.__("Source"),"source"),this.props.showSelectors&&this.getShortCutTitleItem(e.__("Selectors"),"selector"))))}}class gt extends n.Component{constructor(e){super(e),this.updateSearchQuery=t=>{this.setState({searchQuery:t},()=>{const o=this.state.shortcutRegistry;this.setState({filteredShortcutList:this._searchFilterShortcuts(o)},()=>{this.sortShortcuts()})})},this.resetShortcuts=async()=>{await(await this.props.external.getSettings()).set("shortcuts",[]),await this._refreshShortcutList()},this.resetKeybindings=async t=>{await this._setKeybinding(t,[])},this.replaceKeybinding=async(t,o,s)=>this._setKeybinding(t,s,o),this.deleteKeybinding=async(t,o)=>{await this._setKeybinding(t,[],o)},this.addKeybinding=async(t,o)=>{await this._setKeybinding(t,o)},this.setCustomOptions=async(t,o)=>{var s;const r=await this.props.external.getSettings(),i=(s=r.user.shortcuts)!==null&&s!==void 0?s:[],a=i.filter(c=>{var g,p;return c.command===t.command&&c.selector===t.selector&&b.deepEqual((g=c.args)!==null&&g!==void 0?g:{},(p=t.args)!==null&&p!==void 0?p:{})});return a.length?(a.forEach(c=>{c.selector=o.selector,c.args=o.args}),await r.set("shortcuts",i),await this._refreshShortcutList(),!0):(console.error("Error writing the custom options: target not found"),!1)},this.toggleSelectors=()=>{this.setState({showSelectors:!this.state.showSelectors})},this.toggleAddCommandRow=async()=>{this.setState({showAddCommand:!this.state.showAddCommand})},this.updateSort=t=>{t!==this.state.currentSort&&this.setState({currentSort:t},this.sortShortcuts)},this.saveNewShortcut=async()=>{const t={...this.state.newShortcut,args:void 0};for(let s of t.keybindings)await this.addKeybinding(t,s.keys);await this.setCustomOptions(t,{selector:t.selector,args:this.state.newShortcut.args})&&(this._newShortcutItem.reset(),this.toggleAddCommandRow())},this._newShortcutItem=new it({showSelectors:!1,findConflictsFor:(t,o)=>this.state.shortcutRegistry?this.state.shortcutRegistry.findConflictsFor(t,o):(console.error("Cannot search for keybinding conflicts at this time: registry is not ready"),[]),external:this.props.external}),this.state={shortcutRegistry:null,filteredShortcutList:new Array,shortcutsFetched:!1,searchQuery:"",showSelectors:!1,currentSort:"category",showAddCommand:!1,newShortcut:this._newShortcutItem.shortcut},this._newShortcutItem.changed.connect(()=>{this.setState({newShortcut:{...this._newShortcutItem.shortcut}})})}componentDidMount(){this.props.external.actionRequested.connect(this._onActionRequested,this),this._refreshShortcutList()}componentWillUnmount(){this.props.external.actionRequested.disconnect(this._onActionRequested,this)}async _onActionRequested(e,t){if(t.request==="toggle-selectors")return this.toggleSelectors();t.request==="reset-all"&&await this.resetShortcuts()}async _refreshShortcutList(){const e=await this.props.external.getSettings(),t=new j({commandRegistry:this.props.external.commandRegistry,settings:e});this.setState({shortcutRegistry:t,filteredShortcutList:this._searchFilterShortcuts(t),shortcutsFetched:!0},()=>{this.sortShortcuts()})}_searchFilterShortcuts(e){return e?j.matchItems(e,this.state.searchQuery).map(o=>o.item):[]}async _setKeybinding(e,t,o){var s,r,i,a,c;t.length===1&&t[0]==""&&(t=[]);const g=t.map(w.normalizeKeystroke),p=await this.props.external.getSettings(),f=(s=p.user.shortcuts)!==null&&s!==void 0?s:[],d=[];let m=!1;for(let u of f)if(u.command===e.command&&u.selector===e.selector&&b.deepEqual((r=u.args)!==null&&r!==void 0?r:{},(i=e.args)!==null&&i!==void 0?i:{})&&o&&b.deepEqual(o.keys,w.normalizeKeys(u))){const y=o.isDefault&&b.deepEqual(o.keys,g);t.length!==0&&!y&&d.push(this._setShortcutKeys(u,t)),m=!0}else{if(u.command===e.command&&u.selector===e.selector&&b.deepEqual((a=u.args)!==null&&a!==void 0?a:{},(c=e.args)!==null&&c!==void 0?c:{})&&!o&&t.length===0)continue;d.push(u)}if(!m){const u=!o||!b.deepEqual(o.keys,g);o&&o.isDefault&&u&&d.push(this._shortcutFromTarget(e,o.keys,{disabled:!0,preventDefault:o.preventDefault})),t.length!==0&&u&&d.push(this._shortcutFromTarget(e,t,{preventDefault:o?.preventDefault}))}await p.set("shortcuts",d),await this._refreshShortcutList()}_setShortcutKeys(e,t){const o=this._platformKeys(e);return{...e,[o]:t}}_shortcutFromTarget(e,t,o={}){const s={command:e.command,selector:e.selector,keys:t};return e.args&&!b.deepEqual(e.args,{})&&(s.args=e.args),o.disabled&&(s.disabled=!0),o.preventDefault!==void 0&&(s.preventDefault=o.preventDefault),s}_platformKeys(e){return k.IS_WIN&&e.winKeys?"winKeys":k.IS_MAC&&e.macKeys?"macKeys":!k.IS_WIN&&!k.IS_MAC&&e.linuxKeys?"linuxKeys":"keys"}sortShortcuts(){const e=this.state.filteredShortcutList;let t=this.state.currentSort;t==="command"&&(t="label");const o=s=>{var r;return t==="source"?s.keybindings.every(i=>i.isDefault)?"default":"other":(r=s[t])!==null&&r!==void 0?r:""};e.sort((s,r)=>{var i,a;const c=o(s),g=o(r),p=c.localeCompare(g);if(p)return p;{const f=(i=s.label)!==null&&i!==void 0?i:"",d=(a=r.label)!==null&&a!==void 0?a:"";return f.localeCompare(d)}}),this.setState({filteredShortcutList:e})}render(){return this.state.shortcutsFetched?n.createElement("div",{className:"jp-Shortcuts-ShortcutUI",id:"jp-shortcutui"},n.createElement(mt,{updateSearchQuery:this.updateSearchQuery,resetShortcuts:this.resetShortcuts,toggleSelectors:this.toggleSelectors,showSelectors:this.state.showSelectors,updateSort:this.updateSort,currentSort:this.state.currentSort,toggleAddCommandRow:this.toggleAddCommandRow,width:this.props.width,translator:this.props.external.translator}),this.state.showAddCommand&&n.createElement(L,{...this._newShortcutItem,shortcut:this.state.newShortcut,newShortcutUtils:{searchQuery:this.state.searchQuery,updateCommand:this._newShortcutItem.updateCommand,saveShortcut:this.saveNewShortcut}}),n.createElement(ht,{shortcuts:this.state.filteredShortcutList,resetKeybindings:this.resetKeybindings,addKeybinding:this.addKeybinding,replaceKeybinding:this.replaceKeybinding,deleteKeybinding:this.deleteKeybinding,setCustomOptions:this.setCustomOptions,showSelectors:this.state.showSelectors,findConflictsFor:(e,t)=>this.state.shortcutRegistry?this.state.shortcutRegistry.findConflictsFor(e,t):(console.error("Cannot search for keybinding conflicts at this time: registry is not ready"),[]),height:this.props.height,external:this.props.external})):null}}const yt=l=>P.createElement(gt,{external:l.external,height:1e3,width:1e3}),T="@jupyterlab/shortcuts-extension:shortcuts";function ft(l,e,t,o,s){return{translator:t,getSettings:()=>l.load(T,!0),commandRegistry:e.commands,actionRequested:o,editorFactory:s}}const v={id:T,description:"Adds the keyboard shortcuts editor.",requires:[ot],optional:[V,st,G],activate:async(l,e,t,o,s)=>{const r=t??Y,i=r.load("jupyterlab"),{commands:a}=l;let c,g,p={};if(o){const d=new R({}),m=h=>h.dataset.shortcut!==void 0;l.commands.addCommand(C.editBinding,{label:i.__("Edit Keybinding"),caption:i.__("Edit existing keybinding"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{const h=l.contextMenuHitTest(m),S=h?.dataset.keybinding,_=h?.dataset.shortcut;if(!_||!S)return console.log("Missing shortcut id/keybinding information");d.emit({request:"edit-keybinding",keybinding:parseInt(S,10),shortcutId:_})}}),l.commands.addCommand(C.deleteBinding,{label:i.__("Delete Keybinding"),caption:i.__("Delete chosen keybinding"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{const h=l.contextMenuHitTest(m),S=h?.dataset.keybinding,_=h?.dataset.shortcut;if(!_||!S)return console.log("Missing shortcut id/keybinding information");d.emit({request:"delete-keybinding",keybinding:parseInt(S,10),shortcutId:_})}}),l.commands.addCommand(C.addBinding,{label:i.__("Add Keybinding"),caption:i.__("Add new keybinding for existing shortcut target"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{const h=l.contextMenuHitTest(m),S=h?.dataset.shortcut;if(!S)return console.log("Missing shortcut id to add keybinding to");d.emit({request:"add-keybinding",shortcutId:S})}}),a.addCommand(C.toggleSelectors,{label:i.__("Toggle Selectors"),caption:i.__("Toggle command selectors"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{d.emit({request:"toggle-selectors"})}}),a.addCommand(C.resetAll,{label:i.__("Reset All"),caption:i.__("Reset all shortcuts"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{d.emit({request:"reset-all"})}});const u=s?h=>s.factoryService.newInlineEditor(h):void 0,y={fieldRenderer:h=>yt({external:ft(e,l,r,d,u),...h})};o.addRenderer(`${v.id}.shortcuts`,y)}function f(d){const m=l.commands.listCommands().join(`
|
|
2
2
|
`);g||(g=b.deepCopy(d.properties.shortcuts.default)),p={},d.properties.shortcuts.default=Object.keys(e.plugins).map(u=>{const y=e.plugins[u].schema["jupyter.lab.shortcuts"]||[];return p[u]=y,y}).concat([g]).reduce((u,y)=>k.IS_MAC?u.concat(y):u.concat(y.filter(h=>!h.keys.some(S=>{const{cmd:_}=w.parseKeystroke(S);return _}))),[]).sort((u,y)=>u.command.localeCompare(y.command)),d.properties.shortcuts.description=i.__(`Note: To disable a system default shortcut,
|
|
3
3
|
copy it to User Preferences and add the
|
|
4
4
|
"disabled" key, for example:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cf as E,az as I,aA as j,cj as N,aE as x,r as d,ck as L,cl as w,cm as A,aB as D,cn as R,co as M,aD as O,cp as P,cq as T,cr as U,cs as W}from"../datalayer-app-main.js";import{I as q}from"./tokens-iGMkLb0v.js";import{c as z}from"./index-
|
|
1
|
+
import{cf as E,az as I,aA as j,cj as N,aE as x,r as d,ck as L,cl as w,cm as A,aB as D,cn as R,co as M,aD as O,cp as P,cq as T,cr as U,cs as W}from"../datalayer-app-main.js";import{I as q}from"./tokens-iGMkLb0v.js";import{c as z}from"./index-CvKH_NYI.js";import{b as F}from"./index-BMY48-7N.js";import{I as H}from"./tokens-DuSIK5iU.js";import"./Output-CJVIj3Io.js";import"./index-CaEDkyBB.js";import"./hoverbox-CStlKQWE.js";import"./index-CXSUknte.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-DXPB_0fo.js";import"./d3-color-Jd8hXty2.js";import"./dist-Frc5TvpU.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./index-BaRoLDk0.js";import"./RestartIcon-DvpOf5Mf.js";import"./CellSidebarExtension-DwGg7VbR.js";import"./NotebookSkeleton-GSdyJDf_.js";import"./Avatar-DUPBQXVt.js";import"./renderer-CtmiT4nP.js";import"./SquareIcon-Dy3l3VdH.js";import"./FileDirectoryOpenFillIcon-jGhuRcP3.js";import"./url-DY3jeuF8.js";/* empty css *//* empty css */import"./style-DdAxk_bj.js";/* empty css */import"./style-Cj1gzCjo.js";/* empty css */import"./style-rkw8dR9f.js";import"./style-GHJFdtIz.js";import"./style-ZSIOeMoX.js";import"./style-iVfD6mFL.js";import"./style-DA-Ya7rp.js";import"./style-D3tvWcFO.js";import"./style-BOqStzF9.js";import"./style-ADLQJ-E9.js";import"./style-DgglluaK.js";import"./ArrowLeftIcon-sX3iNMG1.js";import"./SkubbleIcon-CAaVh_BE.js";import"./usePrimerThemeBridge-BoT73xjq.js";import"./index-CShCHnof.js";import"./KernelVariables-CmWkosM8.js";import"./index-BWeXDhSd.js";import"./SortAscIcon-CmH04s3F.js";import"./SortDescIcon-Qif6E10I.js";import"./NotebookToolbar-C1fpK-Vi.js";import"./RepoPushIcon-BtXQRhLa.js";import"./sessions-LMslHH3H.js";import"./tokens-UgGv77-l.js";import"./drivecontents-BabrDJge.js";import"./kernel-DWlDRhgJ.js";const K="jp-Launcher";class V extends E{constructor(){super(...arguments),this.itemsList=[]}add(r){const e=k.createItem(r);return this.itemsList.push(e),this.stateChanged.emit(void 0),new I(()=>{j.removeFirstOf(this.itemsList,e),this.stateChanged.emit(void 0)})}items(){return this.itemsList[Symbol.iterator]()}}class $ extends N{constructor(r){super(r.model),this._pending=!1,this._cwd="",this._cwd=r.cwd,this.translator=r.translator||x,this._trans=this.translator.load("jupyterlab"),this._callback=r.callback,this._commands=r.commands,this.addClass(K)}get cwd(){return this._cwd}set cwd(r){this._cwd=r,this.update()}get pending(){return this._pending}set pending(r){this._pending=r}render(){if(!this.model)return null;const r=[this._trans.__("Notebook"),this._trans.__("Console")],e=Object.create(null);for(const t of this.model.items()){const a=t.category||this._trans.__("Other");a in e||(e[a]=[]),e[a].push(t)}for(const t in e)e[t]=e[t].sort((a,n)=>k.sortCmp(a,n,this._cwd,this._commands));const p=[];let o;const u={[this._trans.__("Notebook")]:0,[this._trans.__("Console")]:20,[this._trans.__("Other")]:100};return Object.keys(e).sort((t,a)=>{const n=h=>{var _,g;const i=(_=e[h])!==null&&_!==void 0?_:[],f=(g=u[h])!==null&&g!==void 0?g:1/0;return Math.min(...i.map(y=>{var v;return(v=y.categoryRank)!==null&&v!==void 0?v:f}))},c=n(t),s=n(a);return c!==s?c-s:t.localeCompare(a)}).forEach(t=>{if(!e[t])return;const a=e[t][0],n={...a.args,cwd:this.cwd},c=r.indexOf(t)>-1,s=this._commands.iconClass(a.command,n),h=this._commands.icon(a.command,n);t in e&&(o=d.createElement("div",{className:"jp-Launcher-section",key:t},d.createElement("div",{className:"jp-Launcher-sectionHeader"},d.createElement(L.resolveReact,{icon:h,iconClass:w(s,"jp-Icon-cover"),stylesheet:"launcherSection","aria-hidden":"true"}),d.createElement("h2",{className:"jp-Launcher-sectionTitle"},t)),d.createElement("div",{className:"jp-Launcher-cardContainer"},Array.from(A(e[t],_=>G(c,_,this,this._commands,this._trans,this._callback))))),p.push(o))}),d.createElement("div",{className:"jp-Launcher-body jp-zoom-target"},d.createElement("div",{className:"jp-Launcher-content"},d.createElement("div",{className:"jp-Launcher-cwd"},d.createElement("h3",null,this.cwd)),p))}}function G(m,r,e,p,o,u){const l=r.command,t={...r.args,cwd:e.cwd},a=p.caption(l,t),n=p.label(l,t),c=m?n:a||n,s=()=>{e.pending!==!0&&(e.pending=!0,p.execute(l,{...r.args,cwd:e.cwd}).then(i=>{e.pending=!1,i instanceof D&&u(i)}).catch(i=>{console.error(i),e.pending=!1,R(o._p("Error","Launcher Error"),i)}))},h=i=>{(i.key==="Enter"||i.key===" "||i.key==="Spacebar")&&(i.preventDefault(),s())},_=p.iconClass(l,t),g=p.icon(l,t);return d.createElement("div",{className:"jp-LauncherCard",title:c,role:"button",onClick:s,onKeyDown:h,tabIndex:0,"data-category":r.category||o.__("Other"),key:k.keyProperty.get(r)},d.createElement("div",{className:"jp-LauncherCard-icon"},m?r.kernelIconUrl?d.createElement("img",{src:r.kernelIconUrl,className:"jp-Launcher-kernelIcon",alt:c}):d.createElement("div",{className:"jp-LauncherCard-noKernelIcon"},n[0].toUpperCase()):d.createElement(L.resolveReact,{icon:g,iconClass:w(_,"jp-Icon-cover"),stylesheet:"launcherCard"})),d.createElement("div",{className:"jp-LauncherCard-label",title:c},d.createElement("p",null,n)))}var k;(function(m){let r=0;m.keyProperty=new M({name:"key",create:()=>r++});function e(o){return{...o,category:o.category||"",rank:o.rank!==void 0?o.rank:1/0}}m.createItem=e;function p(o,u,l,t){const a=o.rank,n=u.rank;if(a!==n&&a!==void 0&&n!==void 0)return a<n?-1:1;const c=t.label(o.command,{...o.args,cwd:l}),s=t.label(u.command,{...u.args,cwd:l});return c.localeCompare(s)}m.sortCmp=p})(k||(k={}));var C;(function(m){m.create="launcher:create"})(C||(C={}));const Ge={activate:J,id:"@jupyterlab/launcher-extension:plugin",description:"Provides the launcher tab service.",requires:[O],optional:[z,F,H],provides:q,autoStart:!0};function J(m,r,e,p,o){const{commands:u,shell:l}=m,t=r.load("jupyterlab"),a=new V;return u.addCommand(C.create,{label:t.__("New Launcher"),icon:n=>n.toolbar?P:void 0,describedBy:{args:{type:"object",properties:{cwd:{type:"string",description:t.__("The current working directory")},toolbar:{type:"boolean",description:t.__("Whether the command is executed from a toolbar")},activate:{type:"boolean",description:t.__("Whether to activate the widget")},ref:{type:"string",description:t.__("The reference widget id")}}}},execute:n=>{var c,s;const h=(s=(c=n.cwd)!==null&&c!==void 0?c:o?.model.path)!==null&&s!==void 0?s:"",_=`launcher-${b.id++}`,g=y=>{W(l.widgets("main"),v=>v===y)&&(l.add(y,"main",{ref:_}),i.dispose())},i=new $({model:a,cwd:h,callback:g,commands:u,translator:r});i.model=a,i.title.icon=T,i.title.label=t.__("Launcher");const f=new U({content:i});if(f.title.closable=!!Array.from(l.widgets("main")).length,f.id=_,l.add(f,"main",{activate:n.activate,ref:n.ref}),e&&e.layoutModified.connect(()=>{f.title.closable=Array.from(e.widgets("main")).length>1},f),o){const y=v=>{i.cwd=v.path};o.model.pathChanged.connect(y),i.disposed.connect(()=>{o.model.pathChanged.disconnect(y)})}return f}}),e&&Promise.all([m.restored,o?.model.restored]).then(()=>{function n(){e.isEmpty("main")&&u.execute(C.create)}e.layoutModified.connect(()=>{n()})}),p&&p.addItem({command:C.create,category:t.__("Launcher")}),e&&(e.addButtonEnabled=!0,e.addRequested.connect((n,c)=>{var s;const h=((s=c.currentTitle)===null||s===void 0?void 0:s.owner.id)||c.titles[c.titles.length-1].owner.id;return u.execute(C.create,{ref:h})})),a}var b;(function(m){m.id=0})(b||(b={}));export{Ge as default};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{ax as L,ce as R,bh as A,_ as w,ci as D}from"../datalayer-app-main.js";import{I as O}from"./token-CdPvDaO6.js";import{b as z}from"./index-
|
|
1
|
+
import{ax as L,ce as R,bh as A,_ as w,ci as D}from"../datalayer-app-main.js";import{I as O}from"./token-CdPvDaO6.js";import{b as z}from"./index-CvKH_NYI.js";import"./Output-CJVIj3Io.js";import"./index-BMY48-7N.js";import"./hoverbox-CStlKQWE.js";import"./index-CaEDkyBB.js";import"./index-CXSUknte.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-DXPB_0fo.js";import"./d3-color-Jd8hXty2.js";import"./dist-Frc5TvpU.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./index-BaRoLDk0.js";import"./RestartIcon-DvpOf5Mf.js";import"./CellSidebarExtension-DwGg7VbR.js";import"./NotebookSkeleton-GSdyJDf_.js";import"./Avatar-DUPBQXVt.js";import"./renderer-CtmiT4nP.js";import"./SquareIcon-Dy3l3VdH.js";import"./FileDirectoryOpenFillIcon-jGhuRcP3.js";import"./url-DY3jeuF8.js";/* empty css *//* empty css */import"./style-DdAxk_bj.js";/* empty css */import"./style-Cj1gzCjo.js";/* empty css */import"./style-rkw8dR9f.js";import"./style-GHJFdtIz.js";import"./style-ZSIOeMoX.js";import"./style-iVfD6mFL.js";import"./style-DA-Ya7rp.js";import"./style-D3tvWcFO.js";import"./style-BOqStzF9.js";import"./style-ADLQJ-E9.js";import"./style-DgglluaK.js";import"./ArrowLeftIcon-sX3iNMG1.js";import"./SkubbleIcon-CAaVh_BE.js";import"./usePrimerThemeBridge-BoT73xjq.js";import"./index-CShCHnof.js";import"./KernelVariables-CmWkosM8.js";import"./index-BWeXDhSd.js";import"./SortAscIcon-CmH04s3F.js";import"./SortDescIcon-Qif6E10I.js";import"./NotebookToolbar-C1fpK-Vi.js";import"./RepoPushIcon-BtXQRhLa.js";import"./sessions-LMslHH3H.js";import"./tokens-UgGv77-l.js";import"./drivecontents-BabrDJge.js";import"./kernel-DWlDRhgJ.js";const C=new L("@jupyterlab/mermaid:IMermaidMarkdown","a manager for rendering mermaid text-based diagrams in markdown fenced code blocks"),g="```~~~",G=/^<h[1-6]\b[^>]*>/i;function N(m,c){return{render:t=>f.render(t,m,c),getHeadingTokens:t=>f.getHeadingTokens(t,c)}}const Ce={id:"@jupyterlab/markedparser-extension:plugin",description:"Provides the Markdown parser.",autoStart:!0,provides:z,requires:[O],optional:[C],activate:(m,c,t)=>N(c,{blocks:t?[t]:[]})};var f;(function(m){let c=null,t=null,p=[],d=null,_={},h=new R.LruCache;async function b(e,r,a){return d=r,t||(t=await k(a)),t(e,_)}m.render=b;async function k(e){if(t)return t;if(c)return await c.promise;p=e?.blocks||[],p=p.sort((i,o)=>{var l,n;return((l=i.rank)!==null&&l!==void 0?l:1/0)-((n=o.rank)!==null&&n!==void 0?n:1/0)}),c=new A;const[{marked:r,Renderer:a},s]=await Promise.all([w(()=>import("./marked.esm-eXxjURbE.js"),[],import.meta.url),E()]);for(const i of s)r.use(i);return _={async:!0,gfm:!0,walkTokens:M,renderer:x(a)},t=r,c.resolve(t),t}m.initializeMarked=k;async function E(){return Promise.all([(async()=>(await w(async()=>{const{gfmHeadingId:e}=await import("./src-MJc5X3wa.js");return{gfmHeadingId:e}},[],import.meta.url)).gfmHeadingId())(),(async()=>(await w(async()=>{const{mangle:e}=await import("./src-96ipjnQx.js");return{mangle:e}},[],import.meta.url)).mangle())()])}function x(e){const r=new e,a=r.code;return r.code=s=>{const{text:i,lang:o}=s;for(const u of p)if(o&&u.languages.includes(o)){const I=u.render(i);if(I!=null)return I}const l=`${o}${g}${i}${g}`,n=h.get(l);return n??a.call(r,s)},r}async function $(e){const{lang:r,text:a}=e;if(!r||!d)return;const s=`${r}${g}${a}${g}`;if(h.get(s))return;const i=document.createElement("div");try{await d.highlight(a,d.findBest(r),i);const o=`<pre><code class="language-${r}">${i.innerHTML}</code></pre>`;h.set(s,o)}catch(o){console.error(`Failed to highlight ${r} code`,o)}finally{i.remove()}}async function M(e){switch(e.type){case"code":if(e.lang){for(const r of p)if(r.languages.includes(e.lang)){await r.walk(e.text);return}}await $(e)}}async function T(e,r){t||(t=await k(r));const a=new Array,{text:s,math:i}=D(e),o=t.lexer(v(s,i,P));let l=0;for(const n of o){const u=v(n.raw,i);(n.type==="heading"||n.type==="html"&&y(n.raw)||n.type==="paragraph"&&H(n))&&a.push({raw:u,line:l}),l+=u.split(`
|
|
2
2
|
`).length-1}return a}m.getHeadingTokens=T;function y(e){return G.test(e)}function H(e){return e.tokens?e.tokens.some(r=>r.type==="html"&&y(r.raw)):!1}function P(e){return/^\$[^$]/.test(e)&&e.includes(`
|
|
3
3
|
`)}function v(e,r,a=()=>!0){const s=/@@(\d+)@@/g;let i="",o=0,l;for(;(l=s.exec(e))!==null;){const n=r[Number(l[1])];n===void 0?s.lastIndex=l.index+1:a(n)&&(i+=e.slice(o,l.index)+n.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&"),o=s.lastIndex)}return i+e.slice(o)}})(f||(f={}));export{N as createMarkdownParser,Ce as default};
|