@datalayer/agent-runtimes 1.5.94 → 1.5.96

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.
Files changed (359) hide show
  1. package/dist-embed/chunks/{AgentDetails-zWhn8VbU.js → AgentDetails-Bi0s0fAV.js} +4 -4
  2. package/dist-embed/chunks/{AgentDetailsDialog-BJ9tHQwo.js → AgentDetailsDialog-DcHJB-46.js} +1 -1
  3. package/dist-embed/chunks/{AgentInspector-BQfnFy0r.js → AgentInspector-BoLztEWM.js} +1 -1
  4. package/dist-embed/chunks/{AgentInspectorDialog-BiiiVFrn.js → AgentInspectorDialog-BQbJv6BQ.js} +1 -1
  5. package/dist-embed/chunks/{CellSidebarExtension-FjKdLUTo.js → CellSidebarExtension-I1K60vh4.js} +8 -8
  6. package/dist-embed/chunks/{ChatView-DcNJrPAa.js → ChatView-CS0QVQQ5.js} +1 -1
  7. package/dist-embed/chunks/{ContextPie-aeACuSE7.js → ContextPie-BlO8HMfv.js} +1 -1
  8. package/dist-embed/chunks/{DeckComponent-CUOfVxcw.js → DeckComponent-pNpyII0x.js} +2 -2
  9. package/dist-embed/chunks/{DocumentView-DWwnXQS6.js → DocumentView-DH3V3gQj.js} +1 -1
  10. package/dist-embed/chunks/{EphemeralDocument-BweYum6-.js → EphemeralDocument-MgLvMU4F.js} +1 -1
  11. package/dist-embed/chunks/{EphemeralNotebook-Dv3ooyEA.js → EphemeralNotebook-DRNUs2CY.js} +2 -2
  12. package/dist-embed/chunks/{ExcalidrawComponent-CA8OqyVA.js → ExcalidrawComponent-CFCkypGk.js} +1 -1
  13. package/dist-embed/chunks/{ExcalidrawModal-DQXmoNLV.js → ExcalidrawModal-Cb2Vho79.js} +1 -1
  14. package/dist-embed/chunks/{JupyterLexicalExtension-CqTlhiP6.js → JupyterLexicalExtension-IRPTy6fp.js} +9 -9
  15. package/dist-embed/chunks/{KernelVariables-C_f1RIys.js → KernelVariables-DKDFwfHn.js} +2 -2
  16. package/dist-embed/chunks/{LexicalToolRegistry-Cpg7_Rx1.js → LexicalToolRegistry-DSuihTus.js} +2 -2
  17. package/dist-embed/chunks/{NotebookSkeleton-b2FuNWEZ.js → NotebookSkeleton-D1ewE63E.js} +1 -1
  18. package/dist-embed/chunks/{NotebookToolSurfaces-DmXn7Kor.js → NotebookToolSurfaces-B04CoSFo.js} +1 -1
  19. package/dist-embed/chunks/{NotebookToolbar-emEpc3HB.js → NotebookToolbar-Ddg2JwS8.js} +1 -1
  20. package/dist-embed/chunks/{NotebookView-Bixz7_sD.js → NotebookView-D-Lsg7D7.js} +1 -1
  21. package/dist-embed/chunks/{Output-DQqgiXji.js → Output-nrXVDS-d.js} +1 -1
  22. package/dist-embed/chunks/{SandboxDetailsDialog-DYMkoPaQ.js → SandboxDetailsDialog-DMKJZFoP.js} +1 -1
  23. package/dist-embed/chunks/{SchemaForm-BJFajfde.js → SchemaForm-DZ0DKlG1.js} +1 -1
  24. package/dist-embed/chunks/{SheetTabs-PEVltw0u.js → SheetTabs-D6IAdDy0.js} +3 -3
  25. package/dist-embed/chunks/{SpreadsheetPreviewView-DD3QxWwS.js → SpreadsheetPreviewView-Dl3kr0Bb.js} +1 -1
  26. package/dist-embed/chunks/{SpreadsheetView-BO8hcxRz.js → SpreadsheetView-nspmk7vr.js} +1 -1
  27. package/dist-embed/chunks/{Toolbar-DmDwwFcU.js → Toolbar-BDrBbL69.js} +1 -1
  28. package/dist-embed/chunks/{WidgetVariableView-BUIkjdXe.js → WidgetVariableView-DQbR4tlr.js} +1 -1
  29. package/dist-embed/chunks/{YouTubePlugin-CzVIvki8.js → YouTubePlugin-Vcoo9cJt.js} +1 -1
  30. package/dist-embed/chunks/{abnfDiagram-VCTEODGH-DJCY5YDG.js → abnfDiagram-VCTEODGH-BnR307LJ.js} +1 -1
  31. package/dist-embed/chunks/{abnfDiagram-VCTEODGH-B_3Z10oX.js → abnfDiagram-VCTEODGH-CVbtYf4Z.js} +1 -1
  32. package/dist-embed/chunks/{abnfDiagram-VCTEODGH-CtAR02W1.js → abnfDiagram-VCTEODGH-DMM-4z2i.js} +1 -1
  33. package/dist-embed/chunks/{ar-SA-G6X2FPQ2-BmTCZ5Mw.js → ar-SA-G6X2FPQ2-BSgmpt5-.js} +1 -1
  34. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-DTH4cK6d.js → architectureDiagram-5GKGNRK7-Bt2FCLqZ.js} +1 -1
  35. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-BaXccVfI.js → architectureDiagram-5GKGNRK7-Dtz5vgdG.js} +1 -1
  36. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-DRjjB28b.js → architectureDiagram-5GKGNRK7-ZkhoS04q.js} +1 -1
  37. package/dist-embed/chunks/{az-AZ-76LH7QW2-Bg2AsLUk.js → az-AZ-76LH7QW2-DdJYOut1.js} +1 -1
  38. package/dist-embed/chunks/{bg-BG-XCXSNQG7-DVQg12Gk.js → bg-BG-XCXSNQG7-CqyLLUxV.js} +1 -1
  39. package/dist-embed/chunks/{blockDiagram-868be97b-Cpnhv2XE.js → blockDiagram-868be97b-Coa_jxC5.js} +1 -1
  40. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-DJz-PaS1.js → blockDiagram-I7D4REHJ-DQ8iRsgf.js} +1 -1
  41. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-DUEdJIdt.js → blockDiagram-I7D4REHJ-DXMyZCA-.js} +1 -1
  42. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-Cxcbuqhe.js → blockDiagram-I7D4REHJ-G6aFEbTM.js} +1 -1
  43. package/dist-embed/chunks/{bn-BD-2XOGV67Q-CBXmr4Ua.js → bn-BD-2XOGV67Q-DkvkFbHE.js} +1 -1
  44. package/dist-embed/chunks/{c4Diagram-3f4bdde3-CSM7myPZ.js → c4Diagram-3f4bdde3-DrlpIJhH.js} +1 -1
  45. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-B1PU4a3-.js → c4Diagram-7LVT6UL2-BGIfXVGs.js} +1 -1
  46. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-CHsjn7C0.js → c4Diagram-7LVT6UL2-Cb_4lbrT.js} +1 -1
  47. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-DWNgu9wc.js → c4Diagram-7LVT6UL2-cpEH7bse.js} +1 -1
  48. package/dist-embed/chunks/{ca-ES-6MX7JW3Y-zD7sFb3S.js → ca-ES-6MX7JW3Y-BGbo8RKg.js} +1 -1
  49. package/dist-embed/chunks/{celltoolbartracker-CUVLSakK.js → celltoolbartracker-Cw0z7did.js} +1 -1
  50. package/dist-embed/chunks/{chunk-2Q5K7J3B-B0vEpe5p.js → chunk-2Q5K7J3B-Wncj3lvJ.js} +1 -1
  51. package/dist-embed/chunks/{chunk-2Q5K7J3B-BHPppWfi.js → chunk-2Q5K7J3B-hFGnBugV.js} +1 -1
  52. package/dist-embed/chunks/{chunk-2Q5K7J3B-ChHYQA8V.js → chunk-2Q5K7J3B-n5Wh4T7i.js} +1 -1
  53. package/dist-embed/chunks/{chunk-5VM5RSS4-CfhMD1Pr.js → chunk-5VM5RSS4-1iG33qxM.js} +1 -1
  54. package/dist-embed/chunks/{chunk-5VM5RSS4-CVX97Wzj.js → chunk-5VM5RSS4-BPZ17Fvc.js} +1 -1
  55. package/dist-embed/chunks/{chunk-5VM5RSS4-Ds64UIBJ.js → chunk-5VM5RSS4-C0qOJhaZ.js} +1 -1
  56. package/dist-embed/chunks/{chunk-F27PBJKO--dd6Raku.js → chunk-F27PBJKO-BZvchzhT.js} +1 -1
  57. package/dist-embed/chunks/{chunk-F27PBJKO-JXJC4xFQ.js → chunk-F27PBJKO-FQuOLMts.js} +1 -1
  58. package/dist-embed/chunks/{chunk-F27PBJKO-CsMm8LRY.js → chunk-F27PBJKO-gaxXTTyt.js} +1 -1
  59. package/dist-embed/chunks/{chunk-IMKFNOWR-ChIkVUNl.js → chunk-IMKFNOWR-Ah6SL0XE.js} +1 -1
  60. package/dist-embed/chunks/{chunk-IMKFNOWR-DnOFGl3o.js → chunk-IMKFNOWR-Ce8Jl1Cu.js} +1 -1
  61. package/dist-embed/chunks/{chunk-IMKFNOWR-BQr2SQ1D.js → chunk-IMKFNOWR-D6WqThtx.js} +1 -1
  62. package/dist-embed/chunks/{chunk-JWPE2WC7-IGZTfAqZ.js → chunk-JWPE2WC7-BiLuWg0V.js} +1 -1
  63. package/dist-embed/chunks/{chunk-JWPE2WC7-BP4iQz9X.js → chunk-JWPE2WC7-DjfDnLXf.js} +1 -1
  64. package/dist-embed/chunks/{chunk-JWPE2WC7-wWOspwt8.js → chunk-JWPE2WC7-WEMpWwN6.js} +1 -1
  65. package/dist-embed/chunks/{chunk-POPQ4Y6H-B62L0CKD.js → chunk-POPQ4Y6H-Ci1ORfKB.js} +1 -1
  66. package/dist-embed/chunks/{chunk-POPQ4Y6H-Bw3Acvcv.js → chunk-POPQ4Y6H-D1zcv3TO.js} +1 -1
  67. package/dist-embed/chunks/{chunk-POPQ4Y6H-Daj2aQX7.js → chunk-POPQ4Y6H-DGo-c1gA.js} +1 -1
  68. package/dist-embed/chunks/{chunk-SVP7TREG-DfE4zWGL.js → chunk-SVP7TREG-BNbFIqtk.js} +1 -1
  69. package/dist-embed/chunks/{chunk-SVP7TREG-BmzVOqOi.js → chunk-SVP7TREG-Dp25klfn.js} +1 -1
  70. package/dist-embed/chunks/{chunk-SVP7TREG-CsDJ43fo.js → chunk-SVP7TREG-Dw-r79VX.js} +1 -1
  71. package/dist-embed/chunks/{chunk-TICWLB2K-DNtjNDty.js → chunk-TICWLB2K-BGlpRZHG.js} +1 -1
  72. package/dist-embed/chunks/{chunk-TICWLB2K-D4Z6a5tZ.js → chunk-TICWLB2K-Cdu1LH0d.js} +1 -1
  73. package/dist-embed/chunks/{chunk-TICWLB2K-DqqbHq6H.js → chunk-TICWLB2K-mR6tLG7x.js} +1 -1
  74. package/dist-embed/chunks/{chunk-XXDRQBXY-8Iy52v96.js → chunk-XXDRQBXY-Frt_zuHl.js} +1 -1
  75. package/dist-embed/chunks/{chunk-XXDRQBXY-CgdyGwP0.js → chunk-XXDRQBXY-Qb6D0SQd.js} +1 -1
  76. package/dist-embed/chunks/{chunk-XXDRQBXY-IFnSvNyf.js → chunk-XXDRQBXY-THCdSzRs.js} +1 -1
  77. package/dist-embed/chunks/{classDiagram-ZZMXUADV-Cq0pfC8N.js → classDiagram-ZZMXUADV-DQkKVwjv.js} +1 -1
  78. package/dist-embed/chunks/{classDiagram-ZZMXUADV-BJGOVdtk.js → classDiagram-ZZMXUADV-DVQyGWdi.js} +1 -1
  79. package/dist-embed/chunks/{classDiagram-ZZMXUADV-BqJJaF-F.js → classDiagram-ZZMXUADV-MmqdRe8H.js} +1 -1
  80. package/dist-embed/chunks/{classDiagram-f62afe4f-DWWYXHVw.js → classDiagram-f62afe4f-D5_ocBdB.js} +1 -1
  81. package/dist-embed/chunks/{classDiagram-v2-604399ef-DDQJlSCd.js → classDiagram-v2-604399ef-DW4EPvpW.js} +1 -1
  82. package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-Cq0pfC8N.js → classDiagram-v2-VYDZK3BY-DQkKVwjv.js} +1 -1
  83. package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-BJGOVdtk.js → classDiagram-v2-VYDZK3BY-DVQyGWdi.js} +1 -1
  84. package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-BqJJaF-F.js → classDiagram-v2-VYDZK3BY-MmqdRe8H.js} +1 -1
  85. package/dist-embed/chunks/{code-block-IT6T5CEO-BG9nTZfk.js → code-block-IT6T5CEO-JFor4YAD.js} +1 -1
  86. package/dist-embed/chunks/{component-B-Z2wxoX.js → component-C8C1Quml.js} +1 -1
  87. package/dist-embed/chunks/{cose-bilkent-JH36ORCC-B9LR7A5e.js → cose-bilkent-JH36ORCC-BQyw1y1U.js} +1 -1
  88. package/dist-embed/chunks/{cose-bilkent-JH36ORCC-DVbhW4d6.js → cose-bilkent-JH36ORCC-C_tMYGtf.js} +1 -1
  89. package/dist-embed/chunks/{cose-bilkent-JH36ORCC-Bn_bUKxa.js → cose-bilkent-JH36ORCC-CsAENBdP.js} +1 -1
  90. package/dist-embed/chunks/{createText-aed3d8b3-DlE4oIZ9.js → createText-aed3d8b3-CMnWQblC.js} +1 -1
  91. package/dist-embed/chunks/{cs-CZ-2BRQDIVT-D45-n1qX.js → cs-CZ-2BRQDIVT-CDANWU11.js} +1 -1
  92. package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-CKpvl-b4.js → cynefinDiagram-5FMLGOSQ-6YzZCz6x.js} +1 -1
  93. package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-DFRNXRSb.js → cynefinDiagram-5FMLGOSQ-Cq4XKqVa.js} +1 -1
  94. package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-Bml1hn2J.js → cynefinDiagram-5FMLGOSQ-DIkKdCg7.js} +1 -1
  95. package/dist-embed/chunks/{da-DK-5WZEPLOC-B2tW8S5P.js → da-DK-5WZEPLOC-DwmgcOxN.js} +1 -1
  96. package/dist-embed/chunks/{dagre-GXQ25YYZ-DRX7Xgxg.js → dagre-GXQ25YYZ-BkueS0KV.js} +1 -1
  97. package/dist-embed/chunks/{dagre-GXQ25YYZ-BR6LUNaJ.js → dagre-GXQ25YYZ-CPco-SxY.js} +1 -1
  98. package/dist-embed/chunks/{dagre-GXQ25YYZ-sw0dVYun.js → dagre-GXQ25YYZ-n9sjDOqg.js} +1 -1
  99. package/dist-embed/chunks/{de-DE-XR44H4JA-C0l4YWe4.js → de-DE-XR44H4JA-l2943EP0.js} +1 -1
  100. package/dist-embed/chunks/{diagram-S7CK7UJ4-DCht8UFm.js → diagram-S7CK7UJ4-CrcfBLvv.js} +1 -1
  101. package/dist-embed/chunks/{diagram-S7CK7UJ4-C7kqshyQ.js → diagram-S7CK7UJ4-DYtNkxjk.js} +1 -1
  102. package/dist-embed/chunks/{diagram-S7CK7UJ4-BwQD-PwU.js → diagram-S7CK7UJ4-jZdRq6wu.js} +1 -1
  103. package/dist-embed/chunks/{diagram-UQ7AKVKN-BmyN5XI8.js → diagram-UQ7AKVKN-B9ZTK0Te.js} +1 -1
  104. package/dist-embed/chunks/{diagram-UQ7AKVKN-BmTWzWzZ.js → diagram-UQ7AKVKN-BdRY39AK.js} +1 -1
  105. package/dist-embed/chunks/{diagram-UQ7AKVKN-BaBnGmVS.js → diagram-UQ7AKVKN-CAYDX7Bd.js} +1 -1
  106. package/dist-embed/chunks/{diagram-VSXAHHWV-DWCHK-43.js → diagram-VSXAHHWV-CcaaK20P.js} +1 -1
  107. package/dist-embed/chunks/{diagram-VSXAHHWV-DVYBtYtK.js → diagram-VSXAHHWV-CxMii8H2.js} +1 -1
  108. package/dist-embed/chunks/{diagram-VSXAHHWV-BzDVUwzb.js → diagram-VSXAHHWV-Dt-I1eKY.js} +1 -1
  109. package/dist-embed/chunks/{diagram-VX7I27RA-DZw1ijDZ.js → diagram-VX7I27RA-D8bhlh3r.js} +1 -1
  110. package/dist-embed/chunks/{diagram-VX7I27RA-BIn5zbHp.js → diagram-VX7I27RA-DcbG7Tne.js} +1 -1
  111. package/dist-embed/chunks/{diagram-VX7I27RA-D_ubgMFK.js → diagram-VX7I27RA-DwX1uaCx.js} +1 -1
  112. package/dist-embed/chunks/{diagram-Z3DM3KII-DV4GXIB9.js → diagram-Z3DM3KII-C9dar5bS.js} +1 -1
  113. package/dist-embed/chunks/{diagram-Z3DM3KII-dMZ7Fpuw.js → diagram-Z3DM3KII-CeM42DVq.js} +1 -1
  114. package/dist-embed/chunks/{diagram-Z3DM3KII-C4EhNhYj.js → diagram-Z3DM3KII-fyF7IFt-.js} +1 -1
  115. package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-DGE5iEf-.js → ebnfDiagram-PWID7BFC-B0F4iy5P.js} +1 -1
  116. package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-BX3-evby.js → ebnfDiagram-PWID7BFC-COj5ulCD.js} +1 -1
  117. package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-CT2xQQba.js → ebnfDiagram-PWID7BFC-Df0coz-U.js} +1 -1
  118. package/dist-embed/chunks/{edges-b2856ca0-0fbzACg6.js → edges-b2856ca0-ZiofUaoz.js} +1 -1
  119. package/dist-embed/chunks/{el-GR-BZB4AONW-B_YulamW.js → el-GR-BZB4AONW-Csfuo4E5.js} +1 -1
  120. package/dist-embed/chunks/{erDiagram-5d81789a-DXW16wCs.js → erDiagram-5d81789a-RepZY3NM.js} +1 -1
  121. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-C2Zh71Nb.js → erDiagram-RLTQ6QDP-B5eHyTSb.js} +1 -1
  122. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-Bru5UKrT.js → erDiagram-RLTQ6QDP-BulLtxKT.js} +1 -1
  123. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-BzECyujy.js → erDiagram-RLTQ6QDP-CdBi4-uF.js} +1 -1
  124. package/dist-embed/chunks/{es-ES-U4NZUMDT-guNHUX4D.js → es-ES-U4NZUMDT-Barmg8lW.js} +1 -1
  125. package/dist-embed/chunks/{eu-ES-A7QVB2H4-BLG84_zR.js → eu-ES-A7QVB2H4-bSfPMjGm.js} +1 -1
  126. package/dist-embed/chunks/{fa-IR-HGAKTJCU-BtJ9p_Hg.js → fa-IR-HGAKTJCU-9wWNbyPp.js} +1 -1
  127. package/dist-embed/chunks/{fi-FI-Z5N7JZ37-CBa7Oegw.js → fi-FI-Z5N7JZ37-BwYpCx0e.js} +1 -1
  128. package/dist-embed/chunks/{flowDb-185abca5-5lj6SWgz.js → flowDb-185abca5-DjN9NKb1.js} +1 -1
  129. package/dist-embed/chunks/{flowDiagram-1629c991-DGzm4nlk.js → flowDiagram-1629c991-BvOM7G2N.js} +1 -1
  130. package/dist-embed/chunks/{flowDiagram-HODETNUW-DRH2E3xm.js → flowDiagram-HODETNUW-3KNlQIm_.js} +1 -1
  131. package/dist-embed/chunks/{flowDiagram-HODETNUW-DXQP-if5.js → flowDiagram-HODETNUW-BCEPp4ad.js} +1 -1
  132. package/dist-embed/chunks/{flowDiagram-HODETNUW-BjYGpRc0.js → flowDiagram-HODETNUW-CXD13cZH.js} +1 -1
  133. package/dist-embed/chunks/{flowDiagram-v2-1d953310-B4d06-22.js → flowDiagram-v2-1d953310-DhnQn8Nr.js} +1 -1
  134. package/dist-embed/chunks/{flowchart-elk-definition-6df44142-Bc6Dt1HZ.js → flowchart-elk-definition-6df44142-BqgdASPv.js} +1 -1
  135. package/dist-embed/chunks/{fr-FR-RHASNOE6-SpBaTvic.js → fr-FR-RHASNOE6-BDJ0uslp.js} +1 -1
  136. package/dist-embed/chunks/{ganttDiagram-3b0b3873-p5V6eFY7.js → ganttDiagram-3b0b3873-qKAuWTsd.js} +1 -1
  137. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-Bpn47wNG.js → ganttDiagram-EL5Y4UJY-CI7N1FH6.js} +1 -1
  138. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-D4tDthvl.js → ganttDiagram-EL5Y4UJY-Dk94wE3f.js} +1 -1
  139. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-B4P4PMdh.js → ganttDiagram-EL5Y4UJY-dHpetUk-.js} +1 -1
  140. package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-wYIzu2Xn.js → gitGraphDiagram-WWUBYQGX-2qOrIdt0.js} +1 -1
  141. package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-aPF9w3Ye.js → gitGraphDiagram-WWUBYQGX-BODb2uT3.js} +1 -1
  142. package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-DCycanv0.js → gitGraphDiagram-WWUBYQGX-D57Klnd8.js} +1 -1
  143. package/dist-embed/chunks/{gitGraphDiagram-f01e8bc2-Be27j7Xc.js → gitGraphDiagram-f01e8bc2-CB6fU3iE.js} +1 -1
  144. package/dist-embed/chunks/{gl-ES-HMX3MZ6V-C_CVQKTZ.js → gl-ES-HMX3MZ6V-Jphst371.js} +1 -1
  145. package/dist-embed/chunks/{he-IL-6SHJWFNN-CdeB6V7Y.js → he-IL-6SHJWFNN-Dq3r101K.js} +1 -1
  146. package/dist-embed/chunks/{hi-IN-IWLTKZ5I-CV6PUMLG.js → hi-IN-IWLTKZ5I-8B89dnMh.js} +1 -1
  147. package/dist-embed/chunks/{hu-HU-A5ZG7DT2-B8zqWAqi.js → hu-HU-A5ZG7DT2-CW5VclQQ.js} +1 -1
  148. package/dist-embed/chunks/{id-ID-SAP4L64H-BGEGnVxZ.js → id-ID-SAP4L64H-glKtNYpe.js} +1 -1
  149. package/dist-embed/chunks/{index-B1gxsONw.js → index-23xUfUK3.js} +1 -1
  150. package/dist-embed/chunks/{index-9bae90f3-kp9m9pOo.js → index-9bae90f3-CNczxBwD.js} +1 -1
  151. package/dist-embed/chunks/{index-vP7XtLT3.js → index-B1hVcCeL.js} +4 -4
  152. package/dist-embed/chunks/{index-DeyObBPy.js → index-B5Ar2C76.js} +1 -1
  153. package/dist-embed/chunks/{index-Dd3vBS-q.js → index-B5qB2n6R.js} +1 -1
  154. package/dist-embed/chunks/{index-CPwLAUDD.js → index-B6pSvSsm.js} +4 -4
  155. package/dist-embed/chunks/{index-CdapZifU.js → index-BDTquNK1.js} +1 -1
  156. package/dist-embed/chunks/{index-cHhthoh9.js → index-BEHCLH59.js} +1 -1
  157. package/dist-embed/chunks/{index-Dd5YgCU7.js → index-BFH1nmiJ.js} +1 -1
  158. package/dist-embed/chunks/{index-4t0OAxoh.js → index-BHHOSjZo.js} +2 -2
  159. package/dist-embed/chunks/{index-D-cPydK0.js → index-BM2hYh8Q.js} +1 -1
  160. package/dist-embed/chunks/{index-CJ9gXzDP.js → index-BW_-m6b-.js} +1 -1
  161. package/dist-embed/chunks/{index-D2QeDbAK.js → index-BWuVbZWH.js} +2 -2
  162. package/dist-embed/chunks/{index-DSw0yPWI.js → index-BgxqJ9_L.js} +1 -1
  163. package/dist-embed/chunks/{index-C7nrczhK.js → index-Bq90Fbc4.js} +1 -1
  164. package/dist-embed/chunks/{index-CBSdkrZu.js → index-BuNU8ABo.js} +1 -1
  165. package/dist-embed/chunks/{index-Dxmji156.js → index-C66Vbs6F.js} +1 -1
  166. package/dist-embed/chunks/{index-C8fVAzpb.js → index-CTr6-SsV.js} +1 -1
  167. package/dist-embed/chunks/{index-DbGATA2k.js → index-CYAoF-g4.js} +1 -1
  168. package/dist-embed/chunks/{index-DsioLFJS.js → index-CYUvojfN.js} +2 -2
  169. package/dist-embed/chunks/{index-DtlCGyVw.js → index-CZGjZxFf.js} +1 -1
  170. package/dist-embed/chunks/{index-Cc3y4dMQ.js → index-CgItmZMM.js} +4 -4
  171. package/dist-embed/chunks/{index-CWieStDj.js → index-CkFaHglB.js} +4 -4
  172. package/dist-embed/chunks/{index-B9zmTK3l.js → index-CnIHrGr-.js} +1 -1
  173. package/dist-embed/chunks/{index-Bzz7SUQ8.js → index-CtOE7MGN.js} +6 -6
  174. package/dist-embed/chunks/{index-DTYRIj8A.js → index-D3C4W1e1.js} +1 -1
  175. package/dist-embed/chunks/{index-xsqU1Upe.js → index-DIaoQxKH.js} +1 -1
  176. package/dist-embed/chunks/{index-Cq5HA4MJ.js → index-DKiNGAN5.js} +1 -1
  177. package/dist-embed/chunks/{index-aWBgejNs.js → index-DPr4u5vQ.js} +2 -2
  178. package/dist-embed/chunks/{index-Fh2BKjEJ.js → index-DckpK9sw.js} +1 -1
  179. package/dist-embed/chunks/{index-CCvelf1K.js → index-DtDFBOl9.js} +1 -1
  180. package/dist-embed/chunks/{index-Bh8xHTp_.js → index-H4p_UVsf.js} +5 -5
  181. package/dist-embed/chunks/{index-B-0wzsZj.js → index-kIY4bTgE.js} +1 -1
  182. package/dist-embed/chunks/{index-CQPzQ05p.js → index-nOhqCuwU.js} +4 -4
  183. package/dist-embed/chunks/{index-DGx1w2FG.js → index-w0c9DMN0.js} +1 -1
  184. package/dist-embed/chunks/{index-oh85LAjq.js → index-xmcTHVsH.js} +14 -14
  185. package/dist-embed/chunks/{index-MbAP6rXZ.js → index-zYmeKXxb.js} +1 -1
  186. package/dist-embed/chunks/{index.esm-LnnLBihr.js → index.esm-CWcjqNjR.js} +1 -1
  187. package/dist-embed/chunks/{index.esm-xikWUBGf.js → index.esm-zOy6kFPv.js} +1 -1
  188. package/dist-embed/chunks/{infoDiagram-27XIBGKW-06T_Gyg3.js → infoDiagram-27XIBGKW-CF4qMRpl.js} +1 -1
  189. package/dist-embed/chunks/{infoDiagram-27XIBGKW-BTgF7bPF.js → infoDiagram-27XIBGKW-drOzO4SB.js} +1 -1
  190. package/dist-embed/chunks/{infoDiagram-27XIBGKW-D-ROTMNL.js → infoDiagram-27XIBGKW-wn3LxC14.js} +1 -1
  191. package/dist-embed/chunks/{infoDiagram-a29d40f1-BWkxuHa5.js → infoDiagram-a29d40f1-REMs6KOr.js} +1 -1
  192. package/dist-embed/chunks/{isEqual-DitljbGA.js → isEqual-zPmcQAke.js} +1 -1
  193. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-itmt4k-4.js → ishikawaDiagram-5VMMS53U-atVe3g88.js} +1 -1
  194. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-Bjxh2IeU.js → ishikawaDiagram-5VMMS53U-g9P7XeQ7.js} +1 -1
  195. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-CyQlbAkf.js → ishikawaDiagram-5VMMS53U-ykVOWtHE.js} +1 -1
  196. package/dist-embed/chunks/{it-IT-JPQ66NNP-BuDOnC-Y.js → it-IT-JPQ66NNP-B-ahG0CB.js} +1 -1
  197. package/dist-embed/chunks/{ja-JP-DBVTYXUO-ZiJPJg_x.js → ja-JP-DBVTYXUO-5JyLIwOs.js} +1 -1
  198. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-B_i8vEMe.js → journeyDiagram-3NMN7TZE-BMXUCxse.js} +1 -1
  199. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-C4oK4cQV.js → journeyDiagram-3NMN7TZE-Bjti-927.js} +1 -1
  200. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-DjbHb60A.js → journeyDiagram-3NMN7TZE-DUyUItoc.js} +1 -1
  201. package/dist-embed/chunks/{journeyDiagram-95396277-NGLK0sv9.js → journeyDiagram-95396277-B9L_UQQW.js} +1 -1
  202. package/dist-embed/chunks/{kaa-6HZHGXH3-B05Co2_0.js → kaa-6HZHGXH3-BIVYWYQP.js} +1 -1
  203. package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-BFWwUTFX.js → kab-KAB-ZGHBKWFO-DVL8cRgk.js} +1 -1
  204. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-CQHol1Ib.js → kanban-definition-UXKFOSKX-BcbVekZs.js} +1 -1
  205. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-7MVHSdeg.js → kanban-definition-UXKFOSKX-ClVtSIhc.js} +1 -1
  206. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-Ctj8o_cm.js → kanban-definition-UXKFOSKX-CmWGlZ0H.js} +1 -1
  207. package/dist-embed/chunks/{kk-KZ-P5N5QNE5-DqqZtsBn.js → kk-KZ-P5N5QNE5-KOEMwerS.js} +1 -1
  208. package/dist-embed/chunks/{km-KH-HSX4SM5Z-tXdj73d6.js → km-KH-HSX4SM5Z-CDH3ezLN.js} +1 -1
  209. package/dist-embed/chunks/{ko-KR-MTYHY66A-ZzVvd33o.js → ko-KR-MTYHY66A-Bmb-D285.js} +1 -1
  210. package/dist-embed/chunks/{ku-TR-6OUDTVRD-Cmo7xpcx.js → ku-TR-6OUDTVRD-BuhkTBbp.js} +1 -1
  211. package/dist-embed/chunks/{layout-CMavZfEN.js → layout-CIqBEWvO.js} +1 -1
  212. package/dist-embed/chunks/{layout-CVXurUAo.js → layout-DAiowMz2.js} +1 -1
  213. package/dist-embed/chunks/{layout-D6vp03y-.js → layout-LTmWPIeE.js} +1 -1
  214. package/dist-embed/chunks/{lexicalHooks-DY7QAcah.js → lexicalHooks-CKdIdyZ8.js} +1 -1
  215. package/dist-embed/chunks/{lt-LT-XHIRWOB4-xELzKp5t.js → lt-LT-XHIRWOB4-584bUjqP.js} +1 -1
  216. package/dist-embed/chunks/{lv-LV-5QDEKY6T-BzJDkdYT.js → lv-LV-5QDEKY6T-CkTBsD-R.js} +1 -1
  217. package/dist-embed/chunks/{mermaid.core-DoHaKouU.js → mermaid.core-CIytoWBO.js} +3 -3
  218. package/dist-embed/chunks/{mermaid.core-BrTwjZHj.js → mermaid.core-RXtCLUM0.js} +5 -5
  219. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-DJKalBH_.js → mindmap-definition-YA3MSWOX-B11GPGu3.js} +1 -1
  220. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-oSF-ay7t.js → mindmap-definition-YA3MSWOX-CGIHCY64.js} +1 -1
  221. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-C1GAPhx9.js → mindmap-definition-YA3MSWOX-MoPLOrcw.js} +1 -1
  222. package/dist-embed/chunks/{mindmap-definition-e4c1d938-pfMk2crv.js → mindmap-definition-e4c1d938-D_grZmp7.js} +1 -1
  223. package/dist-embed/chunks/{mr-IN-CRQNXWMA-CjOV2Fgl.js → mr-IN-CRQNXWMA-0Xba6kSJ.js} +1 -1
  224. package/dist-embed/chunks/{my-MM-5M5IBNSE-Cu1gYEx6.js → my-MM-5M5IBNSE-B09FZKSd.js} +1 -1
  225. package/dist-embed/chunks/{nb-NO-T6EIAALU-BEvsHGE0.js → nb-NO-T6EIAALU-BpCjfVUo.js} +1 -1
  226. package/dist-embed/chunks/{nl-NL-IS3SIHDZ-DKA6CYS6.js → nl-NL-IS3SIHDZ-IMA72Wj7.js} +1 -1
  227. package/dist-embed/chunks/{nn-NO-6E72VCQL-CAxiSlw0.js → nn-NO-6E72VCQL-BvFt5eEP.js} +1 -1
  228. package/dist-embed/chunks/{oc-FR-POXYY2M6-Cnw3_UEL.js → oc-FR-POXYY2M6-QMGUoXMd.js} +1 -1
  229. package/dist-embed/chunks/{pa-IN-N4M65BXN-B95dVQXb.js → pa-IN-N4M65BXN-a8dOum4D.js} +1 -1
  230. package/dist-embed/chunks/{pegDiagram-XKGWAZYB-snSGi40-.js → pegDiagram-XKGWAZYB-CXd1v4RS.js} +1 -1
  231. package/dist-embed/chunks/{pegDiagram-XKGWAZYB-C4BPuZD3.js → pegDiagram-XKGWAZYB-DTT8e_Vu.js} +1 -1
  232. package/dist-embed/chunks/{pegDiagram-XKGWAZYB-Daqlobjl.js → pegDiagram-XKGWAZYB-DkCI0q8Y.js} +1 -1
  233. package/dist-embed/chunks/{percentages-BXMCSKIN-B0ORTdXz.js → percentages-BXMCSKIN-Ck3DaSng.js} +6 -6
  234. package/dist-embed/chunks/{pica-D5t8EAkp.js → pica-io9rFAcX.js} +1 -1
  235. package/dist-embed/chunks/{pieDiagram-E7YTZNPT-CbUWXjCK.js → pieDiagram-E7YTZNPT-2Glo3MKw.js} +1 -1
  236. package/dist-embed/chunks/{pieDiagram-E7YTZNPT-BDGAjNk2.js → pieDiagram-E7YTZNPT-B4P8wCma.js} +1 -1
  237. package/dist-embed/chunks/{pieDiagram-E7YTZNPT-X2wS3_bC.js → pieDiagram-E7YTZNPT-D6zxicZn.js} +1 -1
  238. package/dist-embed/chunks/{pieDiagram-c941bede-BItRZOJx.js → pieDiagram-c941bede-Cqi77jMu.js} +1 -1
  239. package/dist-embed/chunks/{pl-PL-T2D74RX3-CBpTbSVL.js → pl-PL-T2D74RX3-BS06UMKK.js} +1 -1
  240. package/dist-embed/chunks/{plugin-BH7Rtuwm.js → plugin-DE0vZ9p3.js} +1 -1
  241. package/dist-embed/chunks/{plugin-B3LgqnRn.js → plugin-ihQPqJPB.js} +1 -1
  242. package/dist-embed/chunks/portable-DeuNvN1G.js +1 -0
  243. package/dist-embed/chunks/{pt-BR-5N22H2LF-CddNlro1.js → pt-BR-5N22H2LF-BIO1KViR.js} +1 -1
  244. package/dist-embed/chunks/{pt-PT-UZXXM6DQ-BBP4-9-R.js → pt-PT-UZXXM6DQ-BZuZ9OiO.js} +1 -1
  245. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-Ca20yCfd.js → quadrantDiagram-AXDQQJYC-C_CEGa46.js} +1 -1
  246. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-DPM18rUD.js → quadrantDiagram-AXDQQJYC-DSBKUuiq.js} +1 -1
  247. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-B-lUCUO_.js → quadrantDiagram-AXDQQJYC-xiPOrF1K.js} +1 -1
  248. package/dist-embed/chunks/{quadrantDiagram-cf8b8fe0-CNyFHMHt.js → quadrantDiagram-cf8b8fe0-BMOuDGDF.js} +1 -1
  249. package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-1C5f6wZm.js → railroadDiagram-O6MQD6OU-BgrbSE40.js} +1 -1
  250. package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-DgZE9w0R.js → railroadDiagram-O6MQD6OU-CSD5KLnV.js} +1 -1
  251. package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-UAOTUQFl.js → railroadDiagram-O6MQD6OU-DjTUEumb.js} +1 -1
  252. package/dist-embed/chunks/{renderer-DgyUd7NL.js → renderer-BU04-DkJ.js} +1 -1
  253. package/dist-embed/chunks/{requirementDiagram-53bda41b-B9QIXB-0.js → requirementDiagram-53bda41b-DKlphVxw.js} +1 -1
  254. package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-u5T3XPNu.js → requirementDiagram-BXWQKSXE-BXaCAhpq.js} +1 -1
  255. package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-B8vOAmrx.js → requirementDiagram-BXWQKSXE-CnRk1roG.js} +1 -1
  256. package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-Ce83Z3oz.js → requirementDiagram-BXWQKSXE-DMdw9yP9.js} +1 -1
  257. package/dist-embed/chunks/{ro-RO-JPDTUUEW-BHCc25-Q.js → ro-RO-JPDTUUEW-Cr8vd9Pv.js} +1 -1
  258. package/dist-embed/chunks/{ru-RU-B4JR7IUQ-D0Fd3ren.js → ru-RU-B4JR7IUQ-Dht1kDyT.js} +1 -1
  259. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-DE-aB_Xz.js → sankeyDiagram-P5KCCOFB-BS7hu1AF.js} +1 -1
  260. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-C1mHPY7k.js → sankeyDiagram-P5KCCOFB-CzrCH920.js} +1 -1
  261. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-BPeSLev7.js → sankeyDiagram-P5KCCOFB-okgEVTpa.js} +1 -1
  262. package/dist-embed/chunks/{sankeyDiagram-c3ef121a-CnWhSjKH.js → sankeyDiagram-c3ef121a-Dg6SbJjG.js} +1 -1
  263. package/dist-embed/chunks/{sequenceDiagram-82a5b84f-CTQ0WQxj.js → sequenceDiagram-82a5b84f-DE09oDEu.js} +1 -1
  264. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-IgZn-nni.js → sequenceDiagram-WJ2MYXX4-Bb3A79mo.js} +1 -1
  265. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-DsWgJxIQ.js → sequenceDiagram-WJ2MYXX4-C7v6HXxx.js} +1 -1
  266. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-DfGaDzPn.js → sequenceDiagram-WJ2MYXX4-CtR3Mxli.js} +1 -1
  267. package/dist-embed/chunks/{sessions-jGahwF6o.js → sessions-CnTFUfGi.js} +1 -1
  268. package/dist-embed/chunks/{si-LK-N5RQ5JYF-CkzbO-53.js → si-LK-N5RQ5JYF-B2xq7Zbi.js} +1 -1
  269. package/dist-embed/chunks/{sizeCapture-INFHLROL-B3GqP69B.js → sizeCapture-INFHLROL-CU32UBMk.js} +1 -1
  270. package/dist-embed/chunks/{sizeCapture-INFHLROL-VNiMzW-9.js → sizeCapture-INFHLROL-D5hzqzwD.js} +1 -1
  271. package/dist-embed/chunks/{sizeCapture-INFHLROL-CDhcfQR9.js → sizeCapture-INFHLROL-TdDsBg4W.js} +1 -1
  272. package/dist-embed/chunks/{sk-SK-C5VTKIMK-DgdXop0H.js → sk-SK-C5VTKIMK-Sw5YFSH1.js} +1 -1
  273. package/dist-embed/chunks/{sl-SI-NN7IZMDC-BMzYr7mj.js → sl-SI-NN7IZMDC-DZin2Uyg.js} +1 -1
  274. package/dist-embed/chunks/{stateDiagram-43e79a5f-yo7m95H6.js → stateDiagram-43e79a5f-uKY_K58g.js} +1 -1
  275. package/dist-embed/chunks/{stateDiagram-D77RDMKH-C2ft8KQa.js → stateDiagram-D77RDMKH-CY5udAKA.js} +1 -1
  276. package/dist-embed/chunks/{stateDiagram-D77RDMKH-CQHhs9El.js → stateDiagram-D77RDMKH-Cd_HasWU.js} +1 -1
  277. package/dist-embed/chunks/{stateDiagram-D77RDMKH-w3LtGTs_.js → stateDiagram-D77RDMKH-mOMKyP5U.js} +1 -1
  278. package/dist-embed/chunks/{stateDiagram-v2-2041ed4f-BWbH2lJG.js → stateDiagram-v2-2041ed4f-Cz97TKZ0.js} +1 -1
  279. package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-IyUF4GcX.js → stateDiagram-v2-MP3YSRHH-2ASMATIX.js} +1 -1
  280. package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-BWh1UldZ.js → stateDiagram-v2-MP3YSRHH-BJVCwCLk.js} +1 -1
  281. package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-DOnaFq36.js → stateDiagram-v2-MP3YSRHH-hXyOMGYK.js} +1 -1
  282. package/dist-embed/chunks/{styles-455b33cd-B3UABG-p.js → styles-455b33cd-QxOIl59n.js} +1 -1
  283. package/dist-embed/chunks/{styles-f932cba9-CSFx2lve.js → styles-f932cba9-CRW7ybKl.js} +1 -1
  284. package/dist-embed/chunks/{styles-fcc2142b-COoZpTHz.js → styles-fcc2142b-lNkMjC8Z.js} +1 -1
  285. package/dist-embed/chunks/{subset-shared.chunk-BV_IsKIh.js → subset-shared.chunk-C8kMR6Ea.js} +1 -1
  286. package/dist-embed/chunks/{subset-worker.chunk-DOQj3F8p.js → subset-worker.chunk-BeXpWPn3.js} +1 -1
  287. package/dist-embed/chunks/{sv-SE-XGPEYMSR-DbCiTLoB.js → sv-SE-XGPEYMSR-XX8MI0nA.js} +1 -1
  288. package/dist-embed/chunks/{svgDrawCommon-148a3cd9-DPsjuono.js → svgDrawCommon-148a3cd9-DrX92bA5.js} +1 -1
  289. package/dist-embed/chunks/{swimlanes-42K2YHIH-BuZNdiWN.js → swimlanes-42K2YHIH-0MJvexik.js} +1 -1
  290. package/dist-embed/chunks/{swimlanes-42K2YHIH-BVp5t5cb.js → swimlanes-42K2YHIH-BUwYYg5o.js} +1 -1
  291. package/dist-embed/chunks/{swimlanes-42K2YHIH-DALRvUJV.js → swimlanes-42K2YHIH-CmWAxVZ_.js} +1 -1
  292. package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-BOs_rwH9.js → swimlanesDiagram-VR7AAH4N-BuFLmgBx.js} +1 -1
  293. package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-Cq4Txw-s.js → swimlanesDiagram-VR7AAH4N-DwTgKjIi.js} +1 -1
  294. package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-DKdPzO9j.js → swimlanesDiagram-VR7AAH4N-vzU4YzHa.js} +1 -1
  295. package/dist-embed/chunks/{ta-IN-2NMHFXQM-CXc4mXhz.js → ta-IN-2NMHFXQM-Cm2c3FMf.js} +1 -1
  296. package/dist-embed/chunks/{th-TH-HPSO5L25-BT_dDTtq.js → th-TH-HPSO5L25-DD76ndfY.js} +1 -1
  297. package/dist-embed/chunks/{timeline-definition-24CTP7MA-s7PWneCh.js → timeline-definition-24CTP7MA-DxAxZYKP.js} +1 -1
  298. package/dist-embed/chunks/{timeline-definition-24CTP7MA-MzC7WabN.js → timeline-definition-24CTP7MA-SfVzoC7E.js} +1 -1
  299. package/dist-embed/chunks/{timeline-definition-24CTP7MA-BayCBe0U.js → timeline-definition-24CTP7MA-a0E0wu89.js} +1 -1
  300. package/dist-embed/chunks/{timeline-definition-7545f45a-CvG64YlJ.js → timeline-definition-7545f45a-CqsiZe-C.js} +1 -1
  301. package/dist-embed/chunks/{tr-TR-DEFEU3FU-cY-BrOYD.js → tr-TR-DEFEU3FU-CkX69g80.js} +1 -1
  302. package/dist-embed/chunks/{uk-UA-QMV73CPH-Rc2Y0Ge7.js → uk-UA-QMV73CPH-DILlpWB0.js} +1 -1
  303. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-BJQtpN9d.js → vennDiagram-4TSXK5OY-BDOrQK88.js} +1 -1
  304. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-BAHHfe64.js → vennDiagram-4TSXK5OY-BxUbBn7b.js} +1 -1
  305. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-BK8QiwTB.js → vennDiagram-4TSXK5OY-C8SwZKm-.js} +1 -1
  306. package/dist-embed/chunks/{vi-VN-M7AON7JQ-CxcPrWvC.js → vi-VN-M7AON7JQ-D0REMGYG.js} +1 -1
  307. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-DYAhYSyu.js → wardleyDiagram-VM6X3IG4-BZssbJ10.js} +1 -1
  308. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-Pv8X1wgF.js → wardleyDiagram-VM6X3IG4-DQI20vwb.js} +1 -1
  309. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-CFNgnKTi.js → wardleyDiagram-VM6X3IG4-DY5BAim8.js} +1 -1
  310. package/dist-embed/chunks/{xychartDiagram-3f383b91-DaQk0skw.js → xychartDiagram-3f383b91-DnD8gcm_.js} +1 -1
  311. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-iMYvupUx.js → xychartDiagram-S5SC5T6Z-BO4MDqrK.js} +1 -1
  312. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-BtjF1Dxw.js → xychartDiagram-S5SC5T6Z-CDXKKZoM.js} +1 -1
  313. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-FKExWp2n.js → xychartDiagram-S5SC5T6Z-DfsjHT0Y.js} +1 -1
  314. package/dist-embed/chunks/{zh-CN-LNUGB5OW-Bpd1cqNl.js → zh-CN-LNUGB5OW-BmSYUWcq.js} +1 -1
  315. package/dist-embed/chunks/{zh-HK-E62DVLB3-LKyAMUX_.js → zh-HK-E62DVLB3-BqISOUKV.js} +1 -1
  316. package/dist-embed/chunks/{zh-TW-RAJ6MFWO-z36Cw8j8.js → zh-TW-RAJ6MFWO-DACyIjvO.js} +1 -1
  317. package/dist-embed/datalayer-app-main.js +71 -71
  318. package/lib/chat/assistant/orbCharacters.d.ts +5 -0
  319. package/lib/chat/assistant/orbCharacters.js +5 -1
  320. package/lib/components/inspector/a2aSpans.d.ts +7 -0
  321. package/lib/components/inspector/a2aSpans.js +34 -2
  322. package/lib/components/inspector/agentSpans.d.ts +1 -1
  323. package/lib/components/inspector/agentSpans.js +1 -0
  324. package/lib/components/teams/A2ATeamGraph.d.ts +11 -3
  325. package/lib/components/teams/A2ATeamGraph.js +27 -6
  326. package/lib/components/teams/backdrops/catalogue.d.ts +2 -2
  327. package/lib/components/teams/backdrops/catalogue.js +11 -1
  328. package/lib/components/teams/backdrops/hero.js +24 -3
  329. package/lib/components/teams/backdrops/index.d.ts +2 -2
  330. package/lib/components/teams/backdrops/index.js +5 -1
  331. package/lib/components/teams/backdrops/minimal.d.ts +14 -0
  332. package/lib/components/teams/backdrops/minimal.js +163 -0
  333. package/lib/components/teams/backdrops/nodes.d.ts +19 -10
  334. package/lib/components/teams/backdrops/nodes.js +85 -50
  335. package/lib/components/teams/backdrops/orb.d.ts +10 -0
  336. package/lib/components/teams/backdrops/orb.js +134 -0
  337. package/lib/components/teams/backdrops/plain.js +2 -1
  338. package/lib/components/teams/backdrops/space.d.ts +13 -2
  339. package/lib/components/teams/backdrops/space.js +44 -33
  340. package/lib/components/teams/backdrops/types.d.ts +17 -4
  341. package/lib/components/teams/sceneStage.d.ts +6 -0
  342. package/lib/components/teams/sceneStage.js +9 -0
  343. package/lib/examples/AgentA2ATeamExample.js +3 -1
  344. package/lib/examples/ScenesExample.js +4 -2
  345. package/lib/specs/agents/agents.js +168 -168
  346. package/lib/specs/apps.js +1 -1
  347. package/lib/specs/cogs.js +3 -3
  348. package/lib/specs/ops.js +1 -1
  349. package/lib/specs/sceneRecordings.js +132 -0
  350. package/lib/specs/sceneSchema.js +2 -2
  351. package/lib/specs/scenes.js +26 -0
  352. package/lib/specs/teams/teams.js +16 -16
  353. package/lib/types/agentspecs.d.ts +1 -1
  354. package/lib/types/scenes.d.ts +4 -2
  355. package/lib/types/teams.d.ts +1 -1
  356. package/package.json +2 -2
  357. package/scripts/codegen/generate_sandbox_agents.py +1 -1
  358. package/scripts/codegen/generate_teams.py +2 -2
  359. package/dist-embed/chunks/portable-CiQthkEs.js +0 -1
@@ -1,4 +1,4 @@
1
- import{a9 as R,aF as N,aA as O,fJ as M,r as n,dD as w,cn as b,fK as q,eB as F,fL as H,fM as J,az as U,fN as k,e7 as x,dL as W,fO as z,fP as $,cu as Q,J as P,aC as V,eo as G,aD as Y,dt as X,dq as Z}from"../datalayer-app-main.js";import{H as tt}from"./htmlselect-BvyxGqtc.js";import{o as et}from"./index-4t0OAxoh.js";import{a as st}from"./tokens-BYcJtuKD.js";import{I as ot}from"./tokens-DY_UrMLq.js";import"./Output-DQqgiXji.js";import"./index-Bh8xHTp_.js";import"./hoverbox-CStlKQWE.js";import"./index-DsioLFJS.js";import"./index-xsqU1Upe.js";import"./color-CG7_7V2-.js";import"./isEqual-DitljbGA.js";import"./defaultLocale-5voVPcsN.js";import"./index-BrUAt6vF.js";import"./KebabHorizontalIcon-D6AY8pIS.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./index-DYBgss-E.js";import"./RestartIcon-Ca6_HoK0.js";import"./CellSidebarExtension-FjKdLUTo.js";import"./NotebookSkeleton-b2FuNWEZ.js";import"./Avatar-DvWrRG_3.js";import"./renderer-DgyUd7NL.js";import"./SquareIcon-Dy3l3VdH.js";import"./FileDirectoryOpenFillIcon-jGhuRcP3.js";import"./url-C6fJII94.js";/* empty css *//* empty css */import"./index-Dro44tIm.js";/* empty css */import"./index-DsG9xhMj.js";/* empty css */import"./index-CNU-WVhQ.js";import"./index--OLIX362.js";import"./index-DYGslHkf.js";import"./index-BSRVX3UN.js";import"./index-BH2OX5l8.js";import"./index-C3vDfO5_.js";import"./index-Ko8lxXFd.js";import"./index-CB9u17_J.js";import"./index-BUVtc_FV.js";import"./ArrowLeftIcon-sX3iNMG1.js";import"./SkubbleIcon-tlg17jBG.js";import"./usePrimerThemeBridge-DyX4EYyN.js";import"./index-CCvelf1K.js";import"./KernelVariables-C_f1RIys.js";import"./index-C0d-d3s4.js";import"./SortAscIcon-CmH04s3F.js";import"./SortDescIcon-Qif6E10I.js";import"./NotebookToolbar-emEpc3HB.js";import"./RepoPushIcon-BtXQRhLa.js";import"./Toolbar-DmDwwFcU.js";import"./sessions-jGahwF6o.js";import"./tokens-CBhRbpQP.js";import"./drivecontents-D1HzL7Fi.js";import"./kernel-BmfZmtIo.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 N{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(N.cancelButton({label:r.__("OK")})):(a.push(N.cancelButton({label:r.__("Cancel")})),a.push(N.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{a9 as R,aF as N,aA as O,fM as M,r as n,dG as w,cn as b,fN as q,eE as F,fO as H,fP as J,az as U,fQ as k,ea as x,dO as W,fR as z,fS as $,cu as Q,J as P,aC as V,er as G,aD as Y,dw as X,dt as Z}from"../datalayer-app-main.js";import{H as tt}from"./htmlselect-BvyxGqtc.js";import{o as et}from"./index-BHHOSjZo.js";import{a as st}from"./tokens-BYcJtuKD.js";import{I as ot}from"./tokens-DY_UrMLq.js";import"./Output-nrXVDS-d.js";import"./index-H4p_UVsf.js";import"./hoverbox-CStlKQWE.js";import"./index-CYUvojfN.js";import"./index-DIaoQxKH.js";import"./color-CG7_7V2-.js";import"./isEqual-zPmcQAke.js";import"./defaultLocale-5voVPcsN.js";import"./index-BrUAt6vF.js";import"./KebabHorizontalIcon-D6AY8pIS.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./index-DYBgss-E.js";import"./RestartIcon-Ca6_HoK0.js";import"./CellSidebarExtension-I1K60vh4.js";import"./NotebookSkeleton-D1ewE63E.js";import"./Avatar-DvWrRG_3.js";import"./renderer-BU04-DkJ.js";import"./SquareIcon-Dy3l3VdH.js";import"./FileDirectoryOpenFillIcon-jGhuRcP3.js";import"./url-C6fJII94.js";/* empty css *//* empty css */import"./index-Dro44tIm.js";/* empty css */import"./index-DsG9xhMj.js";/* empty css */import"./index-CNU-WVhQ.js";import"./index--OLIX362.js";import"./index-DYGslHkf.js";import"./index-BSRVX3UN.js";import"./index-BH2OX5l8.js";import"./index-C3vDfO5_.js";import"./index-Ko8lxXFd.js";import"./index-CB9u17_J.js";import"./index-BUVtc_FV.js";import"./ArrowLeftIcon-sX3iNMG1.js";import"./SkubbleIcon-tlg17jBG.js";import"./usePrimerThemeBridge-DyX4EYyN.js";import"./index-DtDFBOl9.js";import"./KernelVariables-DKDFwfHn.js";import"./index-C0d-d3s4.js";import"./SortAscIcon-CmH04s3F.js";import"./SortDescIcon-Qif6E10I.js";import"./NotebookToolbar-Ddg2JwS8.js";import"./RepoPushIcon-BtXQRhLa.js";import"./Toolbar-BDrBbL69.js";import"./sessions-CnTFUfGi.js";import"./tokens-CBhRbpQP.js";import"./drivecontents-D1HzL7Fi.js";import"./kernel-BmfZmtIo.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 N{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(N.cancelButton({label:r.__("OK")})):(a.push(N.cancelButton({label:r.__("Cancel")})),a.push(N.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{cl as E,ay as I,az as j,co as N,aD as x,r as d,cp as L,cq as w,cr as A,aA as D,cs as R,ct as M,aC as O,cu as P,cv as T,cw as U,cx as W}from"../datalayer-app-main.js";import{I as q}from"./tokens-D1WVYIDT.js";import{c as z}from"./index-4t0OAxoh.js";import{b as F}from"./index-Bh8xHTp_.js";import{I as H}from"./tokens-DbNnxPrX.js";import"./Output-DQqgiXji.js";import"./index-DsioLFJS.js";import"./hoverbox-CStlKQWE.js";import"./index-xsqU1Upe.js";import"./color-CG7_7V2-.js";import"./isEqual-DitljbGA.js";import"./defaultLocale-5voVPcsN.js";import"./index-BrUAt6vF.js";import"./KebabHorizontalIcon-D6AY8pIS.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./index-DYBgss-E.js";import"./RestartIcon-Ca6_HoK0.js";import"./CellSidebarExtension-FjKdLUTo.js";import"./NotebookSkeleton-b2FuNWEZ.js";import"./Avatar-DvWrRG_3.js";import"./renderer-DgyUd7NL.js";import"./SquareIcon-Dy3l3VdH.js";import"./FileDirectoryOpenFillIcon-jGhuRcP3.js";import"./url-C6fJII94.js";/* empty css *//* empty css */import"./index-Dro44tIm.js";/* empty css */import"./index-DsG9xhMj.js";/* empty css */import"./index-CNU-WVhQ.js";import"./index--OLIX362.js";import"./index-DYGslHkf.js";import"./index-BSRVX3UN.js";import"./index-BH2OX5l8.js";import"./index-C3vDfO5_.js";import"./index-Ko8lxXFd.js";import"./index-CB9u17_J.js";import"./index-BUVtc_FV.js";import"./ArrowLeftIcon-sX3iNMG1.js";import"./SkubbleIcon-tlg17jBG.js";import"./usePrimerThemeBridge-DyX4EYyN.js";import"./index-CCvelf1K.js";import"./KernelVariables-C_f1RIys.js";import"./index-C0d-d3s4.js";import"./SortAscIcon-CmH04s3F.js";import"./SortDescIcon-Qif6E10I.js";import"./NotebookToolbar-emEpc3HB.js";import"./RepoPushIcon-BtXQRhLa.js";import"./Toolbar-DmDwwFcU.js";import"./sessions-jGahwF6o.js";import"./tokens-CBhRbpQP.js";import"./drivecontents-D1HzL7Fi.js";import"./kernel-BmfZmtIo.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 Qe={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{Qe as default};
1
+ import{cl as E,ay as I,az as j,co as N,aD as x,r as d,cp as L,cq as w,cr as A,aA as D,cs as R,ct as M,aC as O,cu as P,cv as T,cw as U,cx as W}from"../datalayer-app-main.js";import{I as q}from"./tokens-D1WVYIDT.js";import{c as z}from"./index-BHHOSjZo.js";import{b as F}from"./index-H4p_UVsf.js";import{I as H}from"./tokens-DbNnxPrX.js";import"./Output-nrXVDS-d.js";import"./index-CYUvojfN.js";import"./hoverbox-CStlKQWE.js";import"./index-DIaoQxKH.js";import"./color-CG7_7V2-.js";import"./isEqual-zPmcQAke.js";import"./defaultLocale-5voVPcsN.js";import"./index-BrUAt6vF.js";import"./KebabHorizontalIcon-D6AY8pIS.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./index-DYBgss-E.js";import"./RestartIcon-Ca6_HoK0.js";import"./CellSidebarExtension-I1K60vh4.js";import"./NotebookSkeleton-D1ewE63E.js";import"./Avatar-DvWrRG_3.js";import"./renderer-BU04-DkJ.js";import"./SquareIcon-Dy3l3VdH.js";import"./FileDirectoryOpenFillIcon-jGhuRcP3.js";import"./url-C6fJII94.js";/* empty css *//* empty css */import"./index-Dro44tIm.js";/* empty css */import"./index-DsG9xhMj.js";/* empty css */import"./index-CNU-WVhQ.js";import"./index--OLIX362.js";import"./index-DYGslHkf.js";import"./index-BSRVX3UN.js";import"./index-BH2OX5l8.js";import"./index-C3vDfO5_.js";import"./index-Ko8lxXFd.js";import"./index-CB9u17_J.js";import"./index-BUVtc_FV.js";import"./ArrowLeftIcon-sX3iNMG1.js";import"./SkubbleIcon-tlg17jBG.js";import"./usePrimerThemeBridge-DyX4EYyN.js";import"./index-DtDFBOl9.js";import"./KernelVariables-DKDFwfHn.js";import"./index-C0d-d3s4.js";import"./SortAscIcon-CmH04s3F.js";import"./SortDescIcon-Qif6E10I.js";import"./NotebookToolbar-Ddg2JwS8.js";import"./RepoPushIcon-BtXQRhLa.js";import"./Toolbar-BDrBbL69.js";import"./sessions-CnTFUfGi.js";import"./tokens-CBhRbpQP.js";import"./drivecontents-D1HzL7Fi.js";import"./kernel-BmfZmtIo.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 Qe={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{Qe as default};
@@ -1 +1 @@
1
- import{aa as t,r as i}from"../datalayer-app-main.js";import{I as l,r}from"./JupyterLexicalExtension-CqTlhiP6.js";import{$ as k,a as q,b as v,c as w,d as y,e as z,C as F,f as G,g as H}from"./JupyterLexicalExtension-CqTlhiP6.js";import"./NotebookSkeleton-b2FuNWEZ.js";import"./Avatar-DvWrRG_3.js";import"./url-C6fJII94.js";import"./isSymbol-BLtK9CV6.js";import"./toNumber-B1wj8-wx.js";import"./StrikethroughIcon-CbiEuPT-.js";import"./VideoIcon-C3wcjUxu.js";import"./LinkIcon-BtBG9K47.js";import"./Toolbar-DmDwwFcU.js";import"./KebabHorizontalIcon-D6AY8pIS.js";import"./ArrowUpIcon-y5enrVH9.js";import"./SortDescIcon-Qif6E10I.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./PrismCss-DQMhvzcI.js";import"./Output-DQqgiXji.js";import"./index-Bh8xHTp_.js";import"./hoverbox-CStlKQWE.js";import"./index-DsioLFJS.js";import"./index-xsqU1Upe.js";import"./color-CG7_7V2-.js";import"./isEqual-DitljbGA.js";import"./defaultLocale-5voVPcsN.js";import"./index-BrUAt6vF.js";import"./index-DYBgss-E.js";import"./RestartIcon-Ca6_HoK0.js";import"./LexicalToolRegistry-Cpg7_Rx1.js";function R(){const[o]=t();return i.useEffect(()=>r(o),[o]),null}export{k as $createCollapsibleContainerNode,q as $createCollapsibleContentNode,v as $createCollapsibleTitleNode,w as $isCollapsibleContainerNode,y as $isCollapsibleContentNode,z as $isCollapsibleTitleNode,F as CollapsibleContainerNode,G as CollapsibleContentNode,R as CollapsiblePlugin,H as CollapsibleTitleNode,l as INSERT_COLLAPSIBLE_COMMAND,R as default};
1
+ import{aa as t,r as i}from"../datalayer-app-main.js";import{I as l,r}from"./JupyterLexicalExtension-IRPTy6fp.js";import{$ as k,a as q,b as v,c as w,d as y,e as z,C as F,f as G,g as H}from"./JupyterLexicalExtension-IRPTy6fp.js";import"./NotebookSkeleton-D1ewE63E.js";import"./Avatar-DvWrRG_3.js";import"./url-C6fJII94.js";import"./isSymbol-BLtK9CV6.js";import"./toNumber-B1wj8-wx.js";import"./StrikethroughIcon-CbiEuPT-.js";import"./VideoIcon-C3wcjUxu.js";import"./LinkIcon-BtBG9K47.js";import"./Toolbar-BDrBbL69.js";import"./KebabHorizontalIcon-D6AY8pIS.js";import"./ArrowUpIcon-y5enrVH9.js";import"./SortDescIcon-Qif6E10I.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./PrismCss-DQMhvzcI.js";import"./Output-nrXVDS-d.js";import"./index-H4p_UVsf.js";import"./hoverbox-CStlKQWE.js";import"./index-CYUvojfN.js";import"./index-DIaoQxKH.js";import"./color-CG7_7V2-.js";import"./isEqual-zPmcQAke.js";import"./defaultLocale-5voVPcsN.js";import"./index-BrUAt6vF.js";import"./index-DYBgss-E.js";import"./RestartIcon-Ca6_HoK0.js";import"./LexicalToolRegistry-DSuihTus.js";function R(){const[o]=t();return i.useEffect(()=>r(o),[o]),null}export{k as $createCollapsibleContainerNode,q as $createCollapsibleContentNode,v as $createCollapsibleTitleNode,w as $isCollapsibleContainerNode,y as $isCollapsibleContentNode,z as $isCollapsibleTitleNode,F as CollapsibleContainerNode,G as CollapsibleContentNode,R as CollapsiblePlugin,H as CollapsibleTitleNode,l as INSERT_COLLAPSIBLE_COMMAND,R as default};