notebook 7.4.0b1__py3-none-any.whl → 7.4.0b2__py3-none-any.whl

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.

Potentially problematic release.


This version of notebook might be problematic. Click here for more details.

Files changed (97) hide show
  1. notebook/_version.py +1 -1
  2. notebook/static/{1650.fb38460b2291d1b7c3a0.js → 1650.8b6c401f1eefae59ec6e.js} +4 -4
  3. notebook/static/{1650.fb38460b2291d1b7c3a0.js.map → 1650.8b6c401f1eefae59ec6e.js.map} +1 -1
  4. notebook/static/{1684.dbcb9f87b6c161cab7b8.js → 1684.1b6ac871ecc1aad14ad0.js} +5 -5
  5. notebook/static/{1684.dbcb9f87b6c161cab7b8.js.map → 1684.1b6ac871ecc1aad14ad0.js.map} +1 -1
  6. notebook/static/{2913.3bb9e51f72e38f27fc16.js → 2913.274b19d8f201991f4a69.js} +3 -3
  7. notebook/static/{2913.3bb9e51f72e38f27fc16.js.map → 2913.274b19d8f201991f4a69.js.map} +1 -1
  8. notebook/static/{3146.3f2eb59bcc64c1ff8653.js → 3146.32a464e728be5b87fbb2.js} +3 -3
  9. notebook/static/{3146.3f2eb59bcc64c1ff8653.js.map → 3146.32a464e728be5b87fbb2.js.map} +1 -1
  10. notebook/static/{3768.5f8c25f0b56ba3aa50bf.js → 3768.d13b75499a7b9e1f3d24.js} +19 -19
  11. notebook/static/{7302.d40ef112f3b366ce2acd.js.map → 3768.d13b75499a7b9e1f3d24.js.map} +1 -1
  12. notebook/static/{4382.ff1001b1074cae999733.js → 4382.c767e4ba98a0f03459c9.js} +3 -3
  13. notebook/static/{4382.ff1001b1074cae999733.js.map → 4382.c767e4ba98a0f03459c9.js.map} +1 -1
  14. notebook/static/{4645.63389949f8e8d28afe78.js → 4645.727f5e87ee24b7b91d3c.js} +5 -5
  15. notebook/static/{4645.63389949f8e8d28afe78.js.map → 4645.727f5e87ee24b7b91d3c.js.map} +1 -1
  16. notebook/static/{4837.f41ef1357cbc37c1212a.js → 4837.8223aef72e625b7d71c9.js} +3 -3
  17. notebook/static/{4837.f41ef1357cbc37c1212a.js.map → 4837.8223aef72e625b7d71c9.js.map} +1 -1
  18. notebook/static/{5135.99179a7088db33c86cd5.js → 5135.55f29a6cd3106acaebd3.js} +11 -11
  19. notebook/static/{5135.99179a7088db33c86cd5.js.map → 5135.55f29a6cd3106acaebd3.js.map} +1 -1
  20. notebook/static/{5573.f931b58c3f27925501cd.js → 5573.2b40352bdab9f94a8e7b.js} +17 -17
  21. notebook/static/{5573.f931b58c3f27925501cd.js.map → 5573.2b40352bdab9f94a8e7b.js.map} +1 -1
  22. notebook/static/{5601.647a1d0a2425ad6d3c82.js → 5601.a9e529896e6496ba0fb7.js} +5 -5
  23. notebook/static/{5601.647a1d0a2425ad6d3c82.js.map → 5601.a9e529896e6496ba0fb7.js.map} +1 -1
  24. notebook/static/{6345.90174adfe4b0715aa9f3.js → 6345.344fbd7e6cb0b4b7b67d.js} +5 -5
  25. notebook/static/{6345.90174adfe4b0715aa9f3.js.map → 6345.344fbd7e6cb0b4b7b67d.js.map} +1 -1
  26. notebook/static/{7302.d40ef112f3b366ce2acd.js → 7302.11d1f3285e8393a3d8a6.js} +19 -19
  27. notebook/static/{3768.5f8c25f0b56ba3aa50bf.js.map → 7302.11d1f3285e8393a3d8a6.js.map} +1 -1
  28. notebook/static/{7906.9adb43ee6179ec7dc5fa.js → 7906.a3c0a8d91aeda12a34ba.js} +3 -3
  29. notebook/static/{7906.9adb43ee6179ec7dc5fa.js.map → 7906.a3c0a8d91aeda12a34ba.js.map} +1 -1
  30. notebook/static/{7995.df866d1005347ff7a9bb.js → 7995.45be6443b704da1daafc.js} +3 -3
  31. notebook/static/{7995.df866d1005347ff7a9bb.js.map → 7995.45be6443b704da1daafc.js.map} +1 -1
  32. notebook/static/{8579.c31efc9089232d4a2236.js → 8579.16c099c83489946ecccc.js} +13 -13
  33. notebook/static/{8579.c31efc9089232d4a2236.js.map → 8579.16c099c83489946ecccc.js.map} +1 -1
  34. notebook/static/{8781.c639c650f3ae6acea205.js → 8781.c923e6061bb438a1724f.js} +59 -59
  35. notebook/static/{8781.c639c650f3ae6acea205.js.map → 8781.c923e6061bb438a1724f.js.map} +1 -1
  36. notebook/static/{8875.eb20db337762ca099d8c.js → 8875.8eb55c41f7263d8032d1.js} +4 -4
  37. notebook/static/{8875.eb20db337762ca099d8c.js.map → 8875.8eb55c41f7263d8032d1.js.map} +1 -1
  38. notebook/static/{9068.b5f22e1be436f098d89b.js → 9068.074d72368f990aeb66ef.js} +3 -3
  39. notebook/static/{9068.b5f22e1be436f098d89b.js.map → 9068.074d72368f990aeb66ef.js.map} +1 -1
  40. notebook/static/{9380.b869821410a685060054.js → 9380.7b0fe15599a732e8d45a.js} +5 -5
  41. notebook/static/{9380.b869821410a685060054.js.map → 9380.7b0fe15599a732e8d45a.js.map} +1 -1
  42. notebook/static/{5517.d5365cc9460371285868.js → 9635.c9d2adc30e08407177d5.js} +2 -2
  43. notebook/static/{5517.d5365cc9460371285868.js.map → 9635.c9d2adc30e08407177d5.js.map} +1 -1
  44. notebook/static/main.d29a42180f94b75a9839.js +1179 -0
  45. notebook/static/main.d29a42180f94b75a9839.js.map +1 -0
  46. notebook/static/{notebook_core.6b9255c84a19caa2b39f.js → notebook_core.500081eb6f6559ae005e.js} +1188 -950
  47. notebook/static/{notebook_core.6b9255c84a19caa2b39f.js.map → notebook_core.500081eb6f6559ae005e.js.map} +1 -1
  48. notebook/static/third-party-licenses.json +101 -101
  49. notebook/templates/consoles.html +1 -1
  50. notebook/templates/edit.html +1 -1
  51. notebook/templates/error.html +1 -1
  52. notebook/templates/notebooks.html +1 -1
  53. notebook/templates/terminals.html +1 -1
  54. notebook/templates/tree.html +1 -1
  55. {notebook-7.4.0b1.data → notebook-7.4.0b2.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/package.json.orig +14 -14
  56. {notebook-7.4.0b1.data → notebook-7.4.0b2.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/documentsearch-extension/package.json.orig +4 -4
  57. {notebook-7.4.0b1.data → notebook-7.4.0b2.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/help-extension/package.json.orig +6 -6
  58. {notebook-7.4.0b1.data → notebook-7.4.0b2.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/package.json.orig +9 -9
  59. {notebook-7.4.0b1.data → notebook-7.4.0b2.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/package.json.orig +15 -15
  60. {notebook-7.4.0b1.data → notebook-7.4.0b2.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/package.json +11 -11
  61. {notebook-7.4.0b1.data → notebook-7.4.0b2.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/package.json.orig +10 -10
  62. notebook-7.4.0b2.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/513.8607af65666974ec196e.js +1 -0
  63. notebook-7.4.0b2.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/568.ece3e49a5e6054df0d21.js +1 -0
  64. notebook-7.4.0b2.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/928.93976f0b357c572fd26d.js +1 -0
  65. notebook-7.4.0b1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/remoteEntry.aa256ed635b8018e0e89.js → notebook-7.4.0b2.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/remoteEntry.bee18546e84bf89cb5af.js +1 -1
  66. {notebook-7.4.0b1.data → notebook-7.4.0b2.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/third-party-licenses.json +2 -2
  67. {notebook-7.4.0b1.dist-info → notebook-7.4.0b2.dist-info}/METADATA +2 -2
  68. {notebook-7.4.0b1.dist-info → notebook-7.4.0b2.dist-info}/RECORD +92 -92
  69. notebook/static/main.ce0bcaf14cfd94d9d586.js +0 -1179
  70. notebook/static/main.ce0bcaf14cfd94d9d586.js.map +0 -1
  71. notebook-7.4.0b1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/261.fe9ed1e57b4ef428e070.js +0 -1
  72. notebook-7.4.0b1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/568.fda14fa1b3cf66cd8dc9.js +0 -1
  73. notebook-7.4.0b1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/928.96810bd677206c6ca9bb.js +0 -1
  74. {notebook-7.4.0b1.data → notebook-7.4.0b2.data}/data/etc/jupyter/jupyter_server_config.d/notebook.json +0 -0
  75. {notebook-7.4.0b1.data → notebook-7.4.0b2.data}/data/share/applications/jupyter-notebook.desktop +0 -0
  76. {notebook-7.4.0b1.data → notebook-7.4.0b2.data}/data/share/icons/hicolor/scalable/apps/notebook.svg +0 -0
  77. {notebook-7.4.0b1.data → notebook-7.4.0b2.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/menus.json +0 -0
  78. {notebook-7.4.0b1.data → notebook-7.4.0b2.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/pages.json +0 -0
  79. {notebook-7.4.0b1.data → notebook-7.4.0b2.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json +0 -0
  80. {notebook-7.4.0b1.data → notebook-7.4.0b2.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/title.json +0 -0
  81. {notebook-7.4.0b1.data → notebook-7.4.0b2.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/top.json +0 -0
  82. {notebook-7.4.0b1.data → notebook-7.4.0b2.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/zen.json +0 -0
  83. {notebook-7.4.0b1.data → notebook-7.4.0b2.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/help-extension/open.json +0 -0
  84. {notebook-7.4.0b1.data → notebook-7.4.0b2.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/checkpoints.json +0 -0
  85. {notebook-7.4.0b1.data → notebook-7.4.0b2.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/edit-notebook-metadata.json +0 -0
  86. {notebook-7.4.0b1.data → notebook-7.4.0b2.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/full-width-notebook.json +0 -0
  87. {notebook-7.4.0b1.data → notebook-7.4.0b2.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/kernel-logo.json +0 -0
  88. {notebook-7.4.0b1.data → notebook-7.4.0b2.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/scroll-output.json +0 -0
  89. {notebook-7.4.0b1.data → notebook-7.4.0b2.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/file-actions.json +0 -0
  90. {notebook-7.4.0b1.data → notebook-7.4.0b2.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/widget.json +0 -0
  91. {notebook-7.4.0b1.data → notebook-7.4.0b2.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/interface-switcher.json +0 -0
  92. {notebook-7.4.0b1.data → notebook-7.4.0b2.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/launch-tree.json +0 -0
  93. {notebook-7.4.0b1.data → notebook-7.4.0b2.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/93.eae3497dd223d842d198.js +0 -0
  94. {notebook-7.4.0b1.data → notebook-7.4.0b2.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/style.js +0 -0
  95. {notebook-7.4.0b1.dist-info → notebook-7.4.0b2.dist-info}/WHEEL +0 -0
  96. {notebook-7.4.0b1.dist-info → notebook-7.4.0b2.dist-info}/entry_points.txt +0 -0
  97. {notebook-7.4.0b1.dist-info → notebook-7.4.0b2.dist-info}/licenses/LICENSE +0 -0
@@ -8,29 +8,29 @@ __webpack_require__.r(__webpack_exports__);
8
8
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9
9
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
10
10
  /* harmony export */ });
11
- /* harmony import */ var _jupyterlab_application__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5848);
11
+ /* harmony import */ var _jupyterlab_application__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(39902);
12
12
  /* harmony import */ var _jupyterlab_application__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_jupyterlab_application__WEBPACK_IMPORTED_MODULE_0__);
13
- /* harmony import */ var _jupyterlab_apputils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(64033);
13
+ /* harmony import */ var _jupyterlab_apputils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(33315);
14
14
  /* harmony import */ var _jupyterlab_apputils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_jupyterlab_apputils__WEBPACK_IMPORTED_MODULE_1__);
15
- /* harmony import */ var _jupyterlab_console__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(92355);
15
+ /* harmony import */ var _jupyterlab_console__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(42601);
16
16
  /* harmony import */ var _jupyterlab_console__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_jupyterlab_console__WEBPACK_IMPORTED_MODULE_2__);
17
- /* harmony import */ var _jupyterlab_coreutils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48247);
17
+ /* harmony import */ var _jupyterlab_coreutils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29170);
18
18
  /* harmony import */ var _jupyterlab_coreutils__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_jupyterlab_coreutils__WEBPACK_IMPORTED_MODULE_3__);
19
- /* harmony import */ var _jupyterlab_docmanager__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(94504);
19
+ /* harmony import */ var _jupyterlab_docmanager__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(56618);
20
20
  /* harmony import */ var _jupyterlab_docmanager__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_jupyterlab_docmanager__WEBPACK_IMPORTED_MODULE_4__);
21
- /* harmony import */ var _jupyterlab_docregistry__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(71224);
21
+ /* harmony import */ var _jupyterlab_docregistry__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(67303);
22
22
  /* harmony import */ var _jupyterlab_docregistry__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_jupyterlab_docregistry__WEBPACK_IMPORTED_MODULE_5__);
23
- /* harmony import */ var _jupyterlab_mainmenu__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(25168);
23
+ /* harmony import */ var _jupyterlab_mainmenu__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(84152);
24
24
  /* harmony import */ var _jupyterlab_mainmenu__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_jupyterlab_mainmenu__WEBPACK_IMPORTED_MODULE_6__);
25
- /* harmony import */ var _jupyterlab_rendermime__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(49949);
25
+ /* harmony import */ var _jupyterlab_rendermime__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(26263);
26
26
  /* harmony import */ var _jupyterlab_rendermime__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_jupyterlab_rendermime__WEBPACK_IMPORTED_MODULE_7__);
27
- /* harmony import */ var _jupyterlab_settingregistry__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(27638);
27
+ /* harmony import */ var _jupyterlab_settingregistry__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(28588);
28
28
  /* harmony import */ var _jupyterlab_settingregistry__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_jupyterlab_settingregistry__WEBPACK_IMPORTED_MODULE_8__);
29
- /* harmony import */ var _jupyterlab_translation__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(18154);
29
+ /* harmony import */ var _jupyterlab_translation__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(75246);
30
30
  /* harmony import */ var _jupyterlab_translation__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_jupyterlab_translation__WEBPACK_IMPORTED_MODULE_9__);
31
- /* harmony import */ var _jupyter_notebook_application__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(10006);
31
+ /* harmony import */ var _jupyter_notebook_application__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(39921);
32
32
  /* harmony import */ var _jupyter_notebook_application__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_jupyter_notebook_application__WEBPACK_IMPORTED_MODULE_10__);
33
- /* harmony import */ var _jupyter_notebook_ui_components__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(79647);
33
+ /* harmony import */ var _jupyter_notebook_ui_components__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(91810);
34
34
  /* harmony import */ var _jupyter_notebook_ui_components__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_jupyter_notebook_ui_components__WEBPACK_IMPORTED_MODULE_11__);
35
35
  /* harmony import */ var _lumino_coreutils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(21961);
36
36
  /* harmony import */ var _lumino_coreutils__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_lumino_coreutils__WEBPACK_IMPORTED_MODULE_12__);
@@ -1003,4 +1003,4 @@ const plugins = [
1003
1003
  /***/ })
1004
1004
 
1005
1005
  }]);
1006
- //# sourceMappingURL=8579.c31efc9089232d4a2236.js.map?v=c31efc9089232d4a2236
1006
+ //# sourceMappingURL=8579.16c099c83489946ecccc.js.map?v=16c099c83489946ecccc
@@ -1 +1 @@
1
- {"version":3,"file":"8579.c31efc9089232d4a2236.js?v=c31efc9089232d4a2236","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAC8G;AACO;AAClE;AACiB;AACI;AACf;AACR;AAC+F;AACjF;AACO;AACwF;AAChG;AACV;AACoB;AACzB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,gCAAgC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,+DAAU,EAAE,gEAAW;AACtC;AACA,6BAA6B,uEAAW;AACxC,+BAA+B,UAAU;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,+DAAU;AACxB;AACA,6BAA6B,uEAAW;AACxC,+BAA+B,SAAS;AACxC;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,6DAAU;AAClC;AACA,uBAAuB,QAAQ;AAC/B;AACA;AACA,yBAAyB,oDAAM,GAAG,MAAM;AACxC,QAAQ,yEAAW;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,qCAAqC,SAAS;AAC9C,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,4DAAO,EAAE,oEAAgB;AACxC,eAAe,yEAAgB;AAC/B;AACA,gBAAgB,wBAAwB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB,aAAa;AACb,SAAS;AACT,0BAA0B,gCAAgC;AAC1D,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,2DAAS;AACxB;AACA;AACA;AACA;AACA,qBAAqB,6DAAU;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,oDAAM;AAC/B,kBAAkB,0DAAQ;AAC1B;AACA,sCAAsC,WAAW;AACjD,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,gEAAW;AAC1B,eAAe,iEAAe;AAC9B;AACA;AACA,wBAAwB,6DAAU;AAClC;AACA;AACA;AACA,4BAA4B,yDAAM;AAClC,aAAa;AACb,SAAS;AACT,qBAAqB,6DAAU;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,yDAAM;AACtC;AACA,aAAa;AACb,SAAS;AACT;AACA,8BAA8B,+CAA+C;AAC7E,8BAA8B,gDAAgD;AAC9E;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,+EAAmB;AACjC;AACA,eAAe,qFAAyB;AACxC,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,oEAAe;AAC7B;AACA,6BAA6B,uEAAW;AACxC,+BAA+B,UAAU;AACzC;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,uEAAmB;AACjC;AACA,QAAQ,oEAAgB;AACxB,QAAQ,oEAAgB;AACxB,QAAQ,4DAAU;AAClB,QAAQ,mEAAe;AACvB,QAAQ,gEAAW;AACnB,QAAQ,+EAAmB;AAC3B;AACA;AACA,mFAAmF,mEAAc;AACjG,2GAA2G,qFAAyB;AACpI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,gBAAgB;AACrD;AACA,wCAAwC,6DAAU;AAClD;AACA,oCAAoC,yDAAM;AAC1C;AACA;AACA,yBAAyB;AACzB,qBAAqB;AACrB,iBAAiB;AACjB,aAAa;AACb;AACA,mBAAmB,sEAAkB;AACrC,8BAA8B,6EAAyB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,0EAAc;AAC5B,eAAe,yEAAgB;AAC/B;AACA,mCAAmC,yEAAa;AAChD,+BAA+B,UAAU;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,+DAAa;AAC3B;AACA,gBAAgB,WAAW;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,mEAAkB;AAC7C;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,+DAAU;AACxB;AACA,6BAA6B,uEAAW;AACxC,+BAA+B,WAAW;AAC1C;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,0EAAc;AAC7B;AACA;AACA;AACA,mCAAmC,6DAAY;AAC/C;AACA;AACA,qCAAqC,0DAAO;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,mEAAc;AACtD;AACA,qCAAqC,0DAAO;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,0EAAc,EAAE,gEAAW;AAC1C,eAAe,oEAAgB,EAAE,4DAAO,EAAE,wEAAsB;AAChE;AACA,gBAAgB,WAAW;AAC3B;AACA;AACA;AACA;AACA,mCAAmC,oDAAM,GAAG,MAAM;AAClD;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,iDAAiD,mEAAc;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,gBAAgB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gEAAgE,mBAAmB;AACnF,iBAAiB;AACjB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,oEAAY;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,0DAAO;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,MAAM,GAAG,QAAQ;AACzD;AACA,qBAAqB;AACrB,iBAAiB;AACjB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,0EAAc,EAAE,gEAAW;AAC1C,eAAe,yEAAgB,EAAE,iEAAe;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA,8BAA8B,iDAAiD;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,0EAAc,EAAE,gEAAW;AAC1C,eAAe,2DAAS,EAAE,iEAAe;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,kDAAI,GAAG,wBAAwB;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,qBAAqB;AAC5D;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,4EAAgB;AAC7D;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,4DAAO;AACtB,cAAc,oEAAe;AAC7B;AACA,gBAAgB,WAAW;AAC3B,wBAAwB,8DAAa;AACrC,6BAA6B,+DAAe;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,yDAAM;AACpC;AACA;AACA;AACA;AACA;AACA,mCAAmC,eAAe,6DAAU,wBAAwB;AACpF,aAAa;AACb,SAAS;AACT,kCAAkC,uDAAuD;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,mEAAkB;AACtC;AACA,SAAS;AACT,iBAAiB;AACjB,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,4DAAO;AACtB,cAAc,qEAAgB;AAC9B;AACA;AACA,6BAA6B,6DAAU;AACvC,6BAA6B,yDAAM,MAAM,6DAAU,sCAAsC,yDAAM;AAC/F,wCAAwC,mBAAmB;AAC3D;AACA,gBAAgB,6DAAU;AAC1B;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,0EAAc,EAAE,gEAAW;AAC1C;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,gEAAW;AAC1B,eAAe,iEAAe,EAAE,0EAAc;AAC9C;AACA,gBAAgB,WAAW;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,8BAA8B,iDAAiD;AAC/E;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iEAAe,OAAO,EAAC","sources":["webpack://_JUPYTERLAB.CORE_OUTPUT/../packages/application-extension/lib/index.js"],"sourcesContent":["// Copyright (c) Jupyter Development Team.\n// Distributed under the terms of the Modified BSD License.\nimport { ILabStatus, IRouter, ITreePathUpdater, JupyterFrontEnd, JupyterLab, } from '@jupyterlab/application';\nimport { DOMUtils, ICommandPalette, ISanitizer, ISplashScreen, IToolbarWidgetRegistry, } from '@jupyterlab/apputils';\nimport { ConsolePanel } from '@jupyterlab/console';\nimport { PageConfig, PathExt, URLExt } from '@jupyterlab/coreutils';\nimport { IDocumentManager, renameDialog } from '@jupyterlab/docmanager';\nimport { DocumentWidget } from '@jupyterlab/docregistry';\nimport { IMainMenu } from '@jupyterlab/mainmenu';\nimport { ILatexTypesetter, IMarkdownParser, IRenderMimeRegistry, RenderMimeRegistry, standardRendererFactories, } from '@jupyterlab/rendermime';\nimport { ISettingRegistry } from '@jupyterlab/settingregistry';\nimport { ITranslator, nullTranslator } from '@jupyterlab/translation';\nimport { NotebookApp, NotebookShell, INotebookShell, SidePanelPalette, INotebookPathOpener, defaultNotebookPathOpener, } from '@jupyter-notebook/application';\nimport { jupyterIcon } from '@jupyter-notebook/ui-components';\nimport { PromiseDelegate } from '@lumino/coreutils';\nimport { DisposableDelegate, DisposableSet, } from '@lumino/disposable';\nimport { Menu, Widget } from '@lumino/widgets';\n/**\n * A regular expression to match path to notebooks and documents\n */\nconst TREE_PATTERN = new RegExp('/(notebooks|edit)/(.*)');\n/**\n * A regular expression to suppress the file extension from display for .ipynb files.\n */\nconst STRIP_IPYNB = /\\.ipynb$/;\n/**\n * The JupyterLab document manager plugin id.\n */\nconst JUPYTERLAB_DOCMANAGER_PLUGIN_ID = '@jupyterlab/docmanager-extension:plugin';\n/**\n * The command IDs used by the application plugin.\n */\nvar CommandIDs;\n(function (CommandIDs) {\n /**\n * Duplicate the current document and open the new document\n */\n CommandIDs.duplicate = 'application:duplicate';\n /**\n * Handle local links\n */\n CommandIDs.handleLink = 'application:handle-local-link';\n /**\n * Toggle Top Bar visibility\n */\n CommandIDs.toggleTop = 'application:toggle-top';\n /**\n * Toggle side panel visibility\n */\n CommandIDs.togglePanel = 'application:toggle-panel';\n /**\n * Toggle the Zen mode\n */\n CommandIDs.toggleZen = 'application:toggle-zen';\n /**\n * Open JupyterLab\n */\n CommandIDs.openLab = 'application:open-lab';\n /**\n * Open the tree page.\n */\n CommandIDs.openTree = 'application:open-tree';\n /**\n * Rename the current document\n */\n CommandIDs.rename = 'application:rename';\n /**\n * Resolve tree path\n */\n CommandIDs.resolveTree = 'application:resolve-tree';\n})(CommandIDs || (CommandIDs = {}));\n/**\n * Check if the application is dirty before closing the browser tab.\n */\nconst dirty = {\n id: '@jupyter-notebook/application-extension:dirty',\n description: 'Check if the application is dirty before closing the browser tab.',\n autoStart: true,\n requires: [ILabStatus, ITranslator],\n activate: (app, status, translator) => {\n if (!(app instanceof NotebookApp)) {\n throw new Error(`${dirty.id} must be activated in Jupyter Notebook.`);\n }\n const trans = translator.load('notebook');\n const message = trans.__('Are you sure you want to exit Jupyter Notebook?\\n\\nAny unsaved changes will be lost.');\n window.addEventListener('beforeunload', (event) => {\n if (app.status.isDirty) {\n return (event.returnValue = message);\n }\n });\n },\n};\n/**\n * The application info.\n */\nconst info = {\n id: '@jupyter-notebook/application-extension:info',\n autoStart: true,\n provides: JupyterLab.IInfo,\n activate: (app) => {\n if (!(app instanceof NotebookApp)) {\n throw new Error(`${info.id} must be activated in Jupyter Notebook.`);\n }\n return app.info;\n },\n};\n/**\n * The logo plugin.\n */\nconst logo = {\n id: '@jupyter-notebook/application-extension:logo',\n description: 'The logo plugin.',\n autoStart: true,\n activate: (app) => {\n const baseUrl = PageConfig.getBaseUrl();\n const node = document.createElement('a');\n node.href = `${baseUrl}tree`;\n node.target = '_blank';\n node.rel = 'noopener noreferrer';\n const logo = new Widget({ node });\n jupyterIcon.element({\n container: node,\n elementPosition: 'center',\n padding: '2px 2px 2px 8px',\n height: '28px',\n width: 'auto',\n cursor: 'pointer',\n margin: 'auto',\n });\n logo.id = 'jp-NotebookLogo';\n app.shell.add(logo, 'top', { rank: 0 });\n },\n};\n/**\n * A plugin to open documents in the main area.\n */\nconst opener = {\n id: '@jupyter-notebook/application-extension:opener',\n description: 'A plugin to open documents in the main area.',\n autoStart: true,\n requires: [IRouter, IDocumentManager],\n optional: [ISettingRegistry],\n activate: (app, router, docManager, settingRegistry) => {\n const { commands, docRegistry } = app;\n const command = 'router:tree';\n commands.addCommand(command, {\n execute: (args) => {\n var _a;\n const parsed = args;\n const matches = (_a = parsed.path.match(TREE_PATTERN)) !== null && _a !== void 0 ? _a : [];\n const [, , path] = matches;\n if (!path) {\n return;\n }\n app.started.then(async () => {\n var _a;\n const file = decodeURIComponent(path);\n const urlParams = new URLSearchParams(parsed.search);\n let defaultFactory = docRegistry.defaultWidgetFactory(path).name;\n // Explicitly get the default viewers from the settings because\n // JupyterLab might not have had the time to load the settings yet (race condition)\n // Relevant code: https://github.com/jupyterlab/jupyterlab/blob/d56ff811f39b3c10c6d8b6eb27a94624b753eb53/packages/docmanager-extension/src/index.tsx#L265-L293\n if (settingRegistry) {\n const settings = await settingRegistry.load(JUPYTERLAB_DOCMANAGER_PLUGIN_ID);\n const defaultViewers = settings.get('defaultViewers').composite;\n // get the file types for the path\n const types = docRegistry.getFileTypesForPath(path);\n // for each file type, check if there is a default viewer and if it\n // is available in the docRegistry. If it is the case, use it as the\n // default factory\n types.forEach((ft) => {\n if (defaultViewers[ft.name] !== undefined &&\n docRegistry.getWidgetFactory(defaultViewers[ft.name])) {\n defaultFactory = defaultViewers[ft.name];\n }\n });\n }\n const factory = (_a = urlParams.get('factory')) !== null && _a !== void 0 ? _a : defaultFactory;\n docManager.open(file, factory, undefined, {\n ref: '_noref',\n });\n });\n },\n });\n router.register({ command, pattern: TREE_PATTERN });\n },\n};\n/**\n * A plugin to customize menus\n */\nconst menus = {\n id: '@jupyter-notebook/application-extension:menus',\n description: 'A plugin to customize menus.',\n requires: [IMainMenu],\n autoStart: true,\n activate: (app, menu) => {\n // always disable the Tabs menu\n menu.tabsMenu.dispose();\n const page = PageConfig.getOption('notebookPage');\n switch (page) {\n case 'consoles':\n case 'terminals':\n case 'tree':\n menu.editMenu.dispose();\n menu.kernelMenu.dispose();\n menu.runMenu.dispose();\n break;\n case 'edit':\n menu.kernelMenu.dispose();\n menu.runMenu.dispose();\n break;\n default:\n break;\n }\n },\n};\n/**\n * A plugin to provide a spacer at rank 900 in the menu area\n */\nconst menuSpacer = {\n id: '@jupyter-notebook/application-extension:menu-spacer',\n description: 'A plugin to provide a spacer at rank 900 in the menu area.',\n autoStart: true,\n activate: (app) => {\n const menu = new Widget();\n menu.id = DOMUtils.createDomID();\n menu.addClass('jp-NotebookSpacer');\n app.shell.add(menu, 'menu', { rank: 900 });\n },\n};\n/**\n * Add commands to open the tree and running pages.\n */\nconst pages = {\n id: '@jupyter-notebook/application-extension:pages',\n description: 'Add commands to open the tree and running pages.',\n autoStart: true,\n requires: [ITranslator],\n optional: [ICommandPalette],\n activate: (app, translator, palette) => {\n const trans = translator.load('notebook');\n const baseUrl = PageConfig.getBaseUrl();\n app.commands.addCommand(CommandIDs.openLab, {\n label: trans.__('Open JupyterLab'),\n execute: () => {\n window.open(URLExt.join(baseUrl, 'lab'));\n },\n });\n const page = PageConfig.getOption('notebookPage');\n app.commands.addCommand(CommandIDs.openTree, {\n label: trans.__('File Browser'),\n execute: () => {\n if (page === 'tree') {\n app.commands.execute('filebrowser:activate');\n }\n else {\n window.open(URLExt.join(baseUrl, 'tree'));\n }\n },\n });\n if (palette) {\n palette.addItem({ command: CommandIDs.openLab, category: 'View' });\n palette.addItem({ command: CommandIDs.openTree, category: 'View' });\n }\n },\n};\n/**\n * A plugin to open paths in new browser tabs.\n */\nconst pathOpener = {\n id: '@jupyter-notebook/application-extension:path-opener',\n description: 'A plugin to open paths in new browser tabs.',\n autoStart: true,\n provides: INotebookPathOpener,\n activate: (app) => {\n return defaultNotebookPathOpener;\n },\n};\n/**\n * The default paths for a Jupyter Notebook app.\n */\nconst paths = {\n id: '@jupyter-notebook/application-extension:paths',\n description: 'The default paths for a Jupyter Notebook app.',\n autoStart: true,\n provides: JupyterFrontEnd.IPaths,\n activate: (app) => {\n if (!(app instanceof NotebookApp)) {\n throw new Error(`${paths.id} must be activated in Jupyter Notebook.`);\n }\n return app.paths;\n },\n};\n/**\n * A plugin providing a rendermime registry.\n */\nconst rendermime = {\n id: '@jupyter-notebook/application-extension:rendermime',\n description: 'A plugin providing a rendermime registry.',\n autoStart: true,\n provides: IRenderMimeRegistry,\n optional: [\n IDocumentManager,\n ILatexTypesetter,\n ISanitizer,\n IMarkdownParser,\n ITranslator,\n INotebookPathOpener,\n ],\n activate: (app, docManager, latexTypesetter, sanitizer, markdownParser, translator, notebookPathOpener) => {\n const trans = (translator !== null && translator !== void 0 ? translator : nullTranslator).load('jupyterlab');\n const opener = notebookPathOpener !== null && notebookPathOpener !== void 0 ? notebookPathOpener : defaultNotebookPathOpener;\n if (docManager) {\n app.commands.addCommand(CommandIDs.handleLink, {\n label: trans.__('Handle Local Link'),\n execute: (args) => {\n const path = args['path'];\n if (path === undefined || path === null) {\n return;\n }\n return docManager.services.contents\n .get(path, { content: false })\n .then((model) => {\n const baseUrl = PageConfig.getBaseUrl();\n opener.open({\n prefix: URLExt.join(baseUrl, 'tree'),\n path: model.path,\n target: '_blank',\n });\n });\n },\n });\n }\n return new RenderMimeRegistry({\n initialFactories: standardRendererFactories,\n linkHandler: !docManager\n ? undefined\n : {\n handleLink: (node, path, id) => {\n // If node has the download attribute explicitly set, use the\n // default browser downloading behavior.\n if (node.tagName === 'A' && node.hasAttribute('download')) {\n return;\n }\n app.commandLinker.connectNode(node, CommandIDs.handleLink, {\n path,\n id,\n });\n },\n },\n latexTypesetter: latexTypesetter !== null && latexTypesetter !== void 0 ? latexTypesetter : undefined,\n markdownParser: markdownParser !== null && markdownParser !== void 0 ? markdownParser : undefined,\n translator: translator !== null && translator !== void 0 ? translator : undefined,\n sanitizer: sanitizer !== null && sanitizer !== void 0 ? sanitizer : undefined,\n });\n },\n};\n/**\n * The default Jupyter Notebook application shell.\n */\nconst shell = {\n id: '@jupyter-notebook/application-extension:shell',\n description: 'The default Jupyter Notebook application shell.',\n autoStart: true,\n provides: INotebookShell,\n optional: [ISettingRegistry],\n activate: (app, settingRegistry) => {\n if (!(app.shell instanceof NotebookShell)) {\n throw new Error(`${shell.id} did not find a NotebookShell instance.`);\n }\n const notebookShell = app.shell;\n if (settingRegistry) {\n settingRegistry\n .load(shell.id)\n .then((settings) => {\n // Add a layer of customization to support app shell mode\n const customLayout = settings.composite['layout'];\n // Restore the layout.\n void notebookShell.restoreLayout(customLayout);\n })\n .catch((reason) => {\n console.error('Fail to load settings for the layout restorer.');\n console.error(reason);\n });\n }\n return notebookShell;\n },\n};\n/**\n * The default splash screen provider.\n */\nconst splash = {\n id: '@jupyter-notebook/application-extension:splash',\n description: 'Provides an empty splash screen.',\n autoStart: true,\n provides: ISplashScreen,\n activate: (app) => {\n const { restored } = app;\n const splash = document.createElement('div');\n splash.style.position = 'absolute';\n splash.style.width = '100%';\n splash.style.height = '100%';\n splash.style.zIndex = '10';\n return {\n show: (light = true) => {\n splash.style.backgroundColor = light ? 'white' : '#111111';\n document.body.appendChild(splash);\n return new DisposableDelegate(async () => {\n await restored;\n document.body.removeChild(splash);\n });\n },\n };\n },\n};\n/**\n * The default JupyterLab application status provider.\n */\nconst status = {\n id: '@jupyter-notebook/application-extension:status',\n description: 'The default JupyterLab application status provider.',\n autoStart: true,\n provides: ILabStatus,\n activate: (app) => {\n if (!(app instanceof NotebookApp)) {\n throw new Error(`${status.id} must be activated in Jupyter Notebook.`);\n }\n return app.status;\n },\n};\n/**\n * A plugin to display the document title in the browser tab title\n */\nconst tabTitle = {\n id: '@jupyter-notebook/application-extension:tab-title',\n description: 'A plugin to display the document title in the browser tab title.',\n autoStart: true,\n requires: [INotebookShell],\n activate: (app, shell) => {\n const setTabTitle = () => {\n const current = shell.currentWidget;\n if (current instanceof ConsolePanel) {\n const update = () => {\n const title = current.sessionContext.path || current.sessionContext.name;\n const basename = PathExt.basename(title);\n // Strip the \".ipynb\" suffix from filenames for display in tab titles.\n document.title = basename.replace(STRIP_IPYNB, '');\n };\n current.sessionContext.sessionChanged.connect(update);\n update();\n return;\n }\n else if (current instanceof DocumentWidget) {\n const update = () => {\n const basename = PathExt.basename(current.context.path);\n document.title = basename.replace(STRIP_IPYNB, '');\n };\n current.context.pathChanged.connect(update);\n update();\n }\n };\n shell.currentChanged.connect(setTabTitle);\n setTabTitle();\n },\n};\n/**\n * A plugin to display and rename the title of a file\n */\nconst title = {\n id: '@jupyter-notebook/application-extension:title',\n description: 'A plugin to display and rename the title of a file.',\n autoStart: true,\n requires: [INotebookShell, ITranslator],\n optional: [IDocumentManager, IRouter, IToolbarWidgetRegistry],\n activate: (app, shell, translator, docManager, router, toolbarRegistry) => {\n const { commands } = app;\n const trans = translator.load('notebook');\n const node = document.createElement('div');\n if (toolbarRegistry) {\n toolbarRegistry.addFactory('TopBar', 'widgetTitle', (toolbar) => {\n const widget = new Widget({ node });\n widget.id = 'jp-title';\n return widget;\n });\n }\n const addTitle = async () => {\n const current = shell.currentWidget;\n if (!current || !(current instanceof DocumentWidget)) {\n return;\n }\n if (node.children.length > 0) {\n return;\n }\n const h = document.createElement('h1');\n h.textContent = current.title.label.replace(STRIP_IPYNB, '');\n node.appendChild(h);\n node.style.marginLeft = '10px';\n if (!docManager) {\n return;\n }\n const isEnabled = () => {\n const { currentWidget } = shell;\n return !!(currentWidget && docManager.contextForWidget(currentWidget));\n };\n commands.addCommand(CommandIDs.duplicate, {\n label: () => trans.__('Duplicate'),\n isEnabled,\n execute: async () => {\n if (!isEnabled()) {\n return;\n }\n // Duplicate the file, and open the new file.\n const result = await docManager.duplicate(current.context.path);\n await commands.execute('docmanager:open', { path: result.path });\n },\n });\n commands.addCommand(CommandIDs.rename, {\n label: () => trans.__('Rename…'),\n isEnabled,\n execute: async () => {\n var _a;\n if (!isEnabled()) {\n return;\n }\n const result = await renameDialog(docManager, current.context);\n // activate the current widget to bring the focus\n if (current) {\n current.activate();\n }\n if (result === null) {\n return;\n }\n const newPath = current.context.path;\n const basename = PathExt.basename(newPath);\n h.textContent = basename.replace(STRIP_IPYNB, '');\n if (!router) {\n return;\n }\n const matches = (_a = router.current.path.match(TREE_PATTERN)) !== null && _a !== void 0 ? _a : [];\n const [, route, path] = matches;\n if (!route || !path) {\n return;\n }\n const encoded = encodeURIComponent(newPath);\n router.navigate(`/${route}/${encoded}`, {\n skipRouting: true,\n });\n },\n });\n node.onclick = async () => {\n void commands.execute(CommandIDs.rename);\n };\n };\n shell.currentChanged.connect(addTitle);\n void addTitle();\n },\n};\n/**\n * Plugin to toggle the top header visibility.\n */\nconst topVisibility = {\n id: '@jupyter-notebook/application-extension:top',\n description: 'Plugin to toggle the top header visibility.',\n requires: [INotebookShell, ITranslator],\n optional: [ISettingRegistry, ICommandPalette],\n activate: (app, notebookShell, translator, settingRegistry, palette) => {\n const trans = translator.load('notebook');\n const top = notebookShell.top;\n const pluginId = topVisibility.id;\n app.commands.addCommand(CommandIDs.toggleTop, {\n label: trans.__('Show Header'),\n execute: () => {\n top.setHidden(top.isVisible);\n if (settingRegistry) {\n void settingRegistry.set(pluginId, 'visible', top.isVisible ? 'yes' : 'no');\n }\n },\n isToggled: () => top.isVisible,\n });\n let adjustToScreen = false;\n if (settingRegistry) {\n const loadSettings = settingRegistry.load(pluginId);\n const updateSettings = (settings) => {\n // 'visible' property from user preferences or default settings\n let visible = settings.get('visible').composite;\n if (settings.user.visible !== undefined) {\n visible = settings.user.visible;\n }\n top.setHidden(visible === 'no');\n // adjust to screen from user preferences or default settings\n adjustToScreen = visible === 'automatic';\n };\n Promise.all([loadSettings, app.restored])\n .then(([settings]) => {\n updateSettings(settings);\n settings.changed.connect((settings) => {\n updateSettings(settings);\n });\n })\n .catch((reason) => {\n console.error(reason.message);\n });\n }\n if (palette) {\n palette.addItem({ command: CommandIDs.toggleTop, category: 'View' });\n }\n const onChanged = () => {\n if (!adjustToScreen) {\n return;\n }\n if (app.format === 'desktop') {\n notebookShell.expandTop();\n }\n else {\n notebookShell.collapseTop();\n }\n };\n // listen on format change (mobile and desktop) to make the view more compact\n app.formatChanged.connect(onChanged);\n },\n autoStart: true,\n};\n/**\n * Plugin to toggle the left or right side panel's visibility.\n */\nconst sidePanelVisibility = {\n id: '@jupyter-notebook/application-extension:sidepanel',\n description: 'Plugin to toggle the visibility of left or right side panel.',\n requires: [INotebookShell, ITranslator],\n optional: [IMainMenu, ICommandPalette],\n autoStart: true,\n activate: (app, notebookShell, translator, menu, palette) => {\n const trans = translator.load('notebook');\n /* Arguments for togglePanel command:\n * side, left or right area\n * title, widget title to show in the menu\n * id, widget ID to activate in the side panel\n */\n app.commands.addCommand(CommandIDs.togglePanel, {\n label: (args) => args['title'],\n caption: (args) => {\n // We do not substitute the parameter into the string because the parameter is not\n // localized (e.g., it is always 'left') even though the string is localized.\n if (args['side'] === 'left') {\n return trans.__('Show %1 in the left sidebar', args['title']);\n }\n else if (args['side'] === 'right') {\n return trans.__('Show %1 in the right sidebar', args['title']);\n }\n return trans.__('Show %1 in the sidebar', args['title']);\n },\n execute: (args) => {\n var _a, _b;\n switch (args['side']) {\n case 'left':\n if (notebookShell.leftCollapsed) {\n notebookShell.expandLeft(args.id);\n }\n else if (((_a = notebookShell.leftHandler.currentWidget) === null || _a === void 0 ? void 0 : _a.id) !== args.id) {\n notebookShell.expandLeft(args.id);\n }\n else {\n notebookShell.collapseLeft();\n if (notebookShell.currentWidget) {\n notebookShell.activateById(notebookShell.currentWidget.id);\n }\n }\n break;\n case 'right':\n if (notebookShell.rightCollapsed) {\n notebookShell.expandRight(args.id);\n }\n else if (((_b = notebookShell.rightHandler.currentWidget) === null || _b === void 0 ? void 0 : _b.id) !== args.id) {\n notebookShell.expandRight(args.id);\n }\n else {\n notebookShell.collapseRight();\n if (notebookShell.currentWidget) {\n notebookShell.activateById(notebookShell.currentWidget.id);\n }\n }\n break;\n }\n },\n isToggled: (args) => {\n switch (args['side']) {\n case 'left': {\n if (notebookShell.leftCollapsed) {\n return false;\n }\n const currentWidget = notebookShell.leftHandler.currentWidget;\n if (!currentWidget) {\n return false;\n }\n return currentWidget.id === args['id'];\n }\n case 'right': {\n if (notebookShell.rightCollapsed) {\n return false;\n }\n const currentWidget = notebookShell.rightHandler.currentWidget;\n if (!currentWidget) {\n return false;\n }\n return currentWidget.id === args['id'];\n }\n }\n return false;\n },\n });\n const sidePanelMenu = {\n left: null,\n right: null,\n };\n /**\n * The function which adds entries to the View menu for each widget of a side panel.\n *\n * @param area - 'left' or 'right', the area of the side panel.\n * @param entryLabel - the name of the main entry in the View menu for that side panel.\n * @returns - The disposable menu added to the View menu or null.\n */\n const updateMenu = (area, entryLabel) => {\n var _a;\n if (menu === null) {\n return null;\n }\n // Remove the previous menu entry for this side panel.\n (_a = sidePanelMenu[area]) === null || _a === void 0 ? void 0 : _a.dispose();\n // Creates a new menu entry and populates it with side panel widgets.\n const newMenu = new Menu({ commands: app.commands });\n newMenu.title.label = entryLabel;\n const widgets = notebookShell.widgets(area);\n let menuToAdd = false;\n for (const widget of widgets) {\n newMenu.addItem({\n command: CommandIDs.togglePanel,\n args: {\n side: area,\n title: `Show ${widget.title.caption}`,\n id: widget.id,\n },\n });\n menuToAdd = true;\n }\n // If there are widgets, add the menu to the main menu entry.\n if (menuToAdd) {\n sidePanelMenu[area] = menu.viewMenu.addItem({\n type: 'submenu',\n submenu: newMenu,\n });\n }\n };\n app.restored.then(() => {\n // Create menu entries for the left and right panel.\n if (menu) {\n const getSidePanelLabel = (area) => {\n if (area === 'left') {\n return trans.__('Left Sidebar');\n }\n else {\n return trans.__('Right Sidebar');\n }\n };\n const leftArea = notebookShell.leftHandler.area;\n const leftLabel = getSidePanelLabel(leftArea);\n updateMenu(leftArea, leftLabel);\n const rightArea = notebookShell.rightHandler.area;\n const rightLabel = getSidePanelLabel(rightArea);\n updateMenu(rightArea, rightLabel);\n const handleSidePanelChange = (sidePanel, widget) => {\n const label = getSidePanelLabel(sidePanel.area);\n updateMenu(sidePanel.area, label);\n };\n notebookShell.leftHandler.widgetAdded.connect(handleSidePanelChange);\n notebookShell.leftHandler.widgetRemoved.connect(handleSidePanelChange);\n notebookShell.rightHandler.widgetAdded.connect(handleSidePanelChange);\n notebookShell.rightHandler.widgetRemoved.connect(handleSidePanelChange);\n }\n // Add palette entries for side panels.\n if (palette) {\n const sidePanelPalette = new SidePanelPalette({\n commandPalette: palette,\n command: CommandIDs.togglePanel,\n });\n notebookShell.leftHandler.widgets.forEach((widget) => {\n sidePanelPalette.addItem(widget, notebookShell.leftHandler.area);\n });\n notebookShell.rightHandler.widgets.forEach((widget) => {\n sidePanelPalette.addItem(widget, notebookShell.rightHandler.area);\n });\n // Update menu and palette when widgets are added or removed from side panels.\n notebookShell.leftHandler.widgetAdded.connect((sidePanel, widget) => {\n sidePanelPalette.addItem(widget, sidePanel.area);\n });\n notebookShell.leftHandler.widgetRemoved.connect((sidePanel, widget) => {\n sidePanelPalette.removeItem(widget, sidePanel.area);\n });\n notebookShell.rightHandler.widgetAdded.connect((sidePanel, widget) => {\n sidePanelPalette.addItem(widget, sidePanel.area);\n });\n notebookShell.rightHandler.widgetRemoved.connect((sidePanel, widget) => {\n sidePanelPalette.removeItem(widget, sidePanel.area);\n });\n }\n });\n },\n};\n/**\n * The default tree route resolver plugin.\n */\nconst tree = {\n id: '@jupyter-notebook/application-extension:tree-resolver',\n description: 'The default tree route resolver plugin.',\n autoStart: true,\n requires: [IRouter],\n provides: JupyterFrontEnd.ITreeResolver,\n activate: (app, router) => {\n const { commands } = app;\n const set = new DisposableSet();\n const delegate = new PromiseDelegate();\n const treePattern = new RegExp('/(/tree/.*)?');\n set.add(commands.addCommand(CommandIDs.resolveTree, {\n execute: (async (args) => {\n var _a;\n if (set.isDisposed) {\n return;\n }\n const query = URLExt.queryStringToObject((_a = args.search) !== null && _a !== void 0 ? _a : '');\n const browser = query['file-browser-path'] || '';\n // Remove the file browser path from the query string.\n delete query['file-browser-path'];\n // Clean up artifacts immediately upon routing.\n set.dispose();\n delegate.resolve({ browser, file: PageConfig.getOption('treePath') });\n }),\n }));\n set.add(router.register({ command: CommandIDs.resolveTree, pattern: treePattern }));\n // If a route is handled by the router without the tree command being\n // invoked, resolve to `null` and clean up artifacts.\n const listener = () => {\n if (set.isDisposed) {\n return;\n }\n set.dispose();\n delegate.resolve(null);\n };\n router.routed.connect(listener);\n set.add(new DisposableDelegate(() => {\n router.routed.disconnect(listener);\n }));\n return { paths: delegate.promise };\n },\n};\n/**\n * Plugin to update tree path.\n */\nconst treePathUpdater = {\n id: '@jupyter-notebook/application-extension:tree-updater',\n description: 'Plugin to update tree path.',\n requires: [IRouter],\n provides: ITreePathUpdater,\n activate: (app, router) => {\n function updateTreePath(treePath) {\n if (treePath !== PageConfig.getOption('treePath')) {\n const path = URLExt.join(PageConfig.getOption('baseUrl') || '/', 'tree', URLExt.encodeParts(treePath));\n router.navigate(path, { skipRouting: true });\n // Persist the new tree path to PageConfig as it is used elsewhere at runtime.\n PageConfig.setOption('treePath', treePath);\n }\n }\n return updateTreePath;\n },\n autoStart: true,\n};\n/**\n * Translator plugin\n */\nconst translator = {\n id: '@jupyter-notebook/application-extension:translator',\n description: 'Translator plugin',\n requires: [INotebookShell, ITranslator],\n autoStart: true,\n activate: (app, notebookShell, translator) => {\n notebookShell.translator = translator;\n },\n};\n/**\n * Zen mode plugin\n */\nconst zen = {\n id: '@jupyter-notebook/application-extension:zen',\n description: 'Zen mode plugin.',\n autoStart: true,\n requires: [ITranslator],\n optional: [ICommandPalette, INotebookShell],\n activate: (app, translator, palette, notebookShell) => {\n const { commands } = app;\n const elem = document.documentElement;\n const trans = translator.load('notebook');\n const toggleOn = () => {\n notebookShell === null || notebookShell === void 0 ? void 0 : notebookShell.collapseTop();\n notebookShell === null || notebookShell === void 0 ? void 0 : notebookShell.menu.setHidden(true);\n zenModeEnabled = true;\n };\n const toggleOff = () => {\n notebookShell === null || notebookShell === void 0 ? void 0 : notebookShell.expandTop();\n notebookShell === null || notebookShell === void 0 ? void 0 : notebookShell.menu.setHidden(false);\n zenModeEnabled = false;\n };\n let zenModeEnabled = false;\n commands.addCommand(CommandIDs.toggleZen, {\n label: trans.__('Toggle Zen Mode'),\n execute: () => {\n if (!zenModeEnabled) {\n elem.requestFullscreen();\n toggleOn();\n }\n else {\n document.exitFullscreen();\n toggleOff();\n }\n },\n });\n document.addEventListener('fullscreenchange', () => {\n if (!document.fullscreenElement) {\n toggleOff();\n }\n });\n if (palette) {\n palette.addItem({ command: CommandIDs.toggleZen, category: 'Mode' });\n }\n },\n};\n/**\n * Export the plugins as default.\n */\nconst plugins = [\n dirty,\n info,\n logo,\n menus,\n menuSpacer,\n opener,\n pages,\n pathOpener,\n paths,\n rendermime,\n shell,\n sidePanelVisibility,\n splash,\n status,\n tabTitle,\n title,\n topVisibility,\n tree,\n treePathUpdater,\n translator,\n zen,\n];\nexport default plugins;\n"],"names":[],"sourceRoot":""}
1
+ {"version":3,"file":"8579.16c099c83489946ecccc.js?v=16c099c83489946ecccc","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAC8G;AACO;AAClE;AACiB;AACI;AACf;AACR;AAC+F;AACjF;AACO;AACwF;AAChG;AACV;AACoB;AACzB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,gCAAgC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,+DAAU,EAAE,gEAAW;AACtC;AACA,6BAA6B,uEAAW;AACxC,+BAA+B,UAAU;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,+DAAU;AACxB;AACA,6BAA6B,uEAAW;AACxC,+BAA+B,SAAS;AACxC;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,6DAAU;AAClC;AACA,uBAAuB,QAAQ;AAC/B;AACA;AACA,yBAAyB,oDAAM,GAAG,MAAM;AACxC,QAAQ,yEAAW;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,qCAAqC,SAAS;AAC9C,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,4DAAO,EAAE,oEAAgB;AACxC,eAAe,yEAAgB;AAC/B;AACA,gBAAgB,wBAAwB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB,aAAa;AACb,SAAS;AACT,0BAA0B,gCAAgC;AAC1D,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,2DAAS;AACxB;AACA;AACA;AACA;AACA,qBAAqB,6DAAU;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,oDAAM;AAC/B,kBAAkB,0DAAQ;AAC1B;AACA,sCAAsC,WAAW;AACjD,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,gEAAW;AAC1B,eAAe,iEAAe;AAC9B;AACA;AACA,wBAAwB,6DAAU;AAClC;AACA;AACA;AACA,4BAA4B,yDAAM;AAClC,aAAa;AACb,SAAS;AACT,qBAAqB,6DAAU;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,yDAAM;AACtC;AACA,aAAa;AACb,SAAS;AACT;AACA,8BAA8B,+CAA+C;AAC7E,8BAA8B,gDAAgD;AAC9E;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,+EAAmB;AACjC;AACA,eAAe,qFAAyB;AACxC,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,oEAAe;AAC7B;AACA,6BAA6B,uEAAW;AACxC,+BAA+B,UAAU;AACzC;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,uEAAmB;AACjC;AACA,QAAQ,oEAAgB;AACxB,QAAQ,oEAAgB;AACxB,QAAQ,4DAAU;AAClB,QAAQ,mEAAe;AACvB,QAAQ,gEAAW;AACnB,QAAQ,+EAAmB;AAC3B;AACA;AACA,mFAAmF,mEAAc;AACjG,2GAA2G,qFAAyB;AACpI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,gBAAgB;AACrD;AACA,wCAAwC,6DAAU;AAClD;AACA,oCAAoC,yDAAM;AAC1C;AACA;AACA,yBAAyB;AACzB,qBAAqB;AACrB,iBAAiB;AACjB,aAAa;AACb;AACA,mBAAmB,sEAAkB;AACrC,8BAA8B,6EAAyB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,0EAAc;AAC5B,eAAe,yEAAgB;AAC/B;AACA,mCAAmC,yEAAa;AAChD,+BAA+B,UAAU;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,+DAAa;AAC3B;AACA,gBAAgB,WAAW;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,mEAAkB;AAC7C;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,+DAAU;AACxB;AACA,6BAA6B,uEAAW;AACxC,+BAA+B,WAAW;AAC1C;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,0EAAc;AAC7B;AACA;AACA;AACA,mCAAmC,6DAAY;AAC/C;AACA;AACA,qCAAqC,0DAAO;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,mEAAc;AACtD;AACA,qCAAqC,0DAAO;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,0EAAc,EAAE,gEAAW;AAC1C,eAAe,oEAAgB,EAAE,4DAAO,EAAE,wEAAsB;AAChE;AACA,gBAAgB,WAAW;AAC3B;AACA;AACA;AACA;AACA,mCAAmC,oDAAM,GAAG,MAAM;AAClD;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,iDAAiD,mEAAc;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,gBAAgB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gEAAgE,mBAAmB;AACnF,iBAAiB;AACjB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,oEAAY;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,0DAAO;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,MAAM,GAAG,QAAQ;AACzD;AACA,qBAAqB;AACrB,iBAAiB;AACjB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,0EAAc,EAAE,gEAAW;AAC1C,eAAe,yEAAgB,EAAE,iEAAe;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA,8BAA8B,iDAAiD;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,0EAAc,EAAE,gEAAW;AAC1C,eAAe,2DAAS,EAAE,iEAAe;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,kDAAI,GAAG,wBAAwB;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,qBAAqB;AAC5D;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,4EAAgB;AAC7D;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,4DAAO;AACtB,cAAc,oEAAe;AAC7B;AACA,gBAAgB,WAAW;AAC3B,wBAAwB,8DAAa;AACrC,6BAA6B,+DAAe;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,yDAAM;AACpC;AACA;AACA;AACA;AACA;AACA,mCAAmC,eAAe,6DAAU,wBAAwB;AACpF,aAAa;AACb,SAAS;AACT,kCAAkC,uDAAuD;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,mEAAkB;AACtC;AACA,SAAS;AACT,iBAAiB;AACjB,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,4DAAO;AACtB,cAAc,qEAAgB;AAC9B;AACA;AACA,6BAA6B,6DAAU;AACvC,6BAA6B,yDAAM,MAAM,6DAAU,sCAAsC,yDAAM;AAC/F,wCAAwC,mBAAmB;AAC3D;AACA,gBAAgB,6DAAU;AAC1B;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,0EAAc,EAAE,gEAAW;AAC1C;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,gEAAW;AAC1B,eAAe,iEAAe,EAAE,0EAAc;AAC9C;AACA,gBAAgB,WAAW;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,8BAA8B,iDAAiD;AAC/E;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iEAAe,OAAO,EAAC","sources":["webpack://_JUPYTERLAB.CORE_OUTPUT/../packages/application-extension/lib/index.js"],"sourcesContent":["// Copyright (c) Jupyter Development Team.\n// Distributed under the terms of the Modified BSD License.\nimport { ILabStatus, IRouter, ITreePathUpdater, JupyterFrontEnd, JupyterLab, } from '@jupyterlab/application';\nimport { DOMUtils, ICommandPalette, ISanitizer, ISplashScreen, IToolbarWidgetRegistry, } from '@jupyterlab/apputils';\nimport { ConsolePanel } from '@jupyterlab/console';\nimport { PageConfig, PathExt, URLExt } from '@jupyterlab/coreutils';\nimport { IDocumentManager, renameDialog } from '@jupyterlab/docmanager';\nimport { DocumentWidget } from '@jupyterlab/docregistry';\nimport { IMainMenu } from '@jupyterlab/mainmenu';\nimport { ILatexTypesetter, IMarkdownParser, IRenderMimeRegistry, RenderMimeRegistry, standardRendererFactories, } from '@jupyterlab/rendermime';\nimport { ISettingRegistry } from '@jupyterlab/settingregistry';\nimport { ITranslator, nullTranslator } from '@jupyterlab/translation';\nimport { NotebookApp, NotebookShell, INotebookShell, SidePanelPalette, INotebookPathOpener, defaultNotebookPathOpener, } from '@jupyter-notebook/application';\nimport { jupyterIcon } from '@jupyter-notebook/ui-components';\nimport { PromiseDelegate } from '@lumino/coreutils';\nimport { DisposableDelegate, DisposableSet, } from '@lumino/disposable';\nimport { Menu, Widget } from '@lumino/widgets';\n/**\n * A regular expression to match path to notebooks and documents\n */\nconst TREE_PATTERN = new RegExp('/(notebooks|edit)/(.*)');\n/**\n * A regular expression to suppress the file extension from display for .ipynb files.\n */\nconst STRIP_IPYNB = /\\.ipynb$/;\n/**\n * The JupyterLab document manager plugin id.\n */\nconst JUPYTERLAB_DOCMANAGER_PLUGIN_ID = '@jupyterlab/docmanager-extension:plugin';\n/**\n * The command IDs used by the application plugin.\n */\nvar CommandIDs;\n(function (CommandIDs) {\n /**\n * Duplicate the current document and open the new document\n */\n CommandIDs.duplicate = 'application:duplicate';\n /**\n * Handle local links\n */\n CommandIDs.handleLink = 'application:handle-local-link';\n /**\n * Toggle Top Bar visibility\n */\n CommandIDs.toggleTop = 'application:toggle-top';\n /**\n * Toggle side panel visibility\n */\n CommandIDs.togglePanel = 'application:toggle-panel';\n /**\n * Toggle the Zen mode\n */\n CommandIDs.toggleZen = 'application:toggle-zen';\n /**\n * Open JupyterLab\n */\n CommandIDs.openLab = 'application:open-lab';\n /**\n * Open the tree page.\n */\n CommandIDs.openTree = 'application:open-tree';\n /**\n * Rename the current document\n */\n CommandIDs.rename = 'application:rename';\n /**\n * Resolve tree path\n */\n CommandIDs.resolveTree = 'application:resolve-tree';\n})(CommandIDs || (CommandIDs = {}));\n/**\n * Check if the application is dirty before closing the browser tab.\n */\nconst dirty = {\n id: '@jupyter-notebook/application-extension:dirty',\n description: 'Check if the application is dirty before closing the browser tab.',\n autoStart: true,\n requires: [ILabStatus, ITranslator],\n activate: (app, status, translator) => {\n if (!(app instanceof NotebookApp)) {\n throw new Error(`${dirty.id} must be activated in Jupyter Notebook.`);\n }\n const trans = translator.load('notebook');\n const message = trans.__('Are you sure you want to exit Jupyter Notebook?\\n\\nAny unsaved changes will be lost.');\n window.addEventListener('beforeunload', (event) => {\n if (app.status.isDirty) {\n return (event.returnValue = message);\n }\n });\n },\n};\n/**\n * The application info.\n */\nconst info = {\n id: '@jupyter-notebook/application-extension:info',\n autoStart: true,\n provides: JupyterLab.IInfo,\n activate: (app) => {\n if (!(app instanceof NotebookApp)) {\n throw new Error(`${info.id} must be activated in Jupyter Notebook.`);\n }\n return app.info;\n },\n};\n/**\n * The logo plugin.\n */\nconst logo = {\n id: '@jupyter-notebook/application-extension:logo',\n description: 'The logo plugin.',\n autoStart: true,\n activate: (app) => {\n const baseUrl = PageConfig.getBaseUrl();\n const node = document.createElement('a');\n node.href = `${baseUrl}tree`;\n node.target = '_blank';\n node.rel = 'noopener noreferrer';\n const logo = new Widget({ node });\n jupyterIcon.element({\n container: node,\n elementPosition: 'center',\n padding: '2px 2px 2px 8px',\n height: '28px',\n width: 'auto',\n cursor: 'pointer',\n margin: 'auto',\n });\n logo.id = 'jp-NotebookLogo';\n app.shell.add(logo, 'top', { rank: 0 });\n },\n};\n/**\n * A plugin to open documents in the main area.\n */\nconst opener = {\n id: '@jupyter-notebook/application-extension:opener',\n description: 'A plugin to open documents in the main area.',\n autoStart: true,\n requires: [IRouter, IDocumentManager],\n optional: [ISettingRegistry],\n activate: (app, router, docManager, settingRegistry) => {\n const { commands, docRegistry } = app;\n const command = 'router:tree';\n commands.addCommand(command, {\n execute: (args) => {\n var _a;\n const parsed = args;\n const matches = (_a = parsed.path.match(TREE_PATTERN)) !== null && _a !== void 0 ? _a : [];\n const [, , path] = matches;\n if (!path) {\n return;\n }\n app.started.then(async () => {\n var _a;\n const file = decodeURIComponent(path);\n const urlParams = new URLSearchParams(parsed.search);\n let defaultFactory = docRegistry.defaultWidgetFactory(path).name;\n // Explicitly get the default viewers from the settings because\n // JupyterLab might not have had the time to load the settings yet (race condition)\n // Relevant code: https://github.com/jupyterlab/jupyterlab/blob/d56ff811f39b3c10c6d8b6eb27a94624b753eb53/packages/docmanager-extension/src/index.tsx#L265-L293\n if (settingRegistry) {\n const settings = await settingRegistry.load(JUPYTERLAB_DOCMANAGER_PLUGIN_ID);\n const defaultViewers = settings.get('defaultViewers').composite;\n // get the file types for the path\n const types = docRegistry.getFileTypesForPath(path);\n // for each file type, check if there is a default viewer and if it\n // is available in the docRegistry. If it is the case, use it as the\n // default factory\n types.forEach((ft) => {\n if (defaultViewers[ft.name] !== undefined &&\n docRegistry.getWidgetFactory(defaultViewers[ft.name])) {\n defaultFactory = defaultViewers[ft.name];\n }\n });\n }\n const factory = (_a = urlParams.get('factory')) !== null && _a !== void 0 ? _a : defaultFactory;\n docManager.open(file, factory, undefined, {\n ref: '_noref',\n });\n });\n },\n });\n router.register({ command, pattern: TREE_PATTERN });\n },\n};\n/**\n * A plugin to customize menus\n */\nconst menus = {\n id: '@jupyter-notebook/application-extension:menus',\n description: 'A plugin to customize menus.',\n requires: [IMainMenu],\n autoStart: true,\n activate: (app, menu) => {\n // always disable the Tabs menu\n menu.tabsMenu.dispose();\n const page = PageConfig.getOption('notebookPage');\n switch (page) {\n case 'consoles':\n case 'terminals':\n case 'tree':\n menu.editMenu.dispose();\n menu.kernelMenu.dispose();\n menu.runMenu.dispose();\n break;\n case 'edit':\n menu.kernelMenu.dispose();\n menu.runMenu.dispose();\n break;\n default:\n break;\n }\n },\n};\n/**\n * A plugin to provide a spacer at rank 900 in the menu area\n */\nconst menuSpacer = {\n id: '@jupyter-notebook/application-extension:menu-spacer',\n description: 'A plugin to provide a spacer at rank 900 in the menu area.',\n autoStart: true,\n activate: (app) => {\n const menu = new Widget();\n menu.id = DOMUtils.createDomID();\n menu.addClass('jp-NotebookSpacer');\n app.shell.add(menu, 'menu', { rank: 900 });\n },\n};\n/**\n * Add commands to open the tree and running pages.\n */\nconst pages = {\n id: '@jupyter-notebook/application-extension:pages',\n description: 'Add commands to open the tree and running pages.',\n autoStart: true,\n requires: [ITranslator],\n optional: [ICommandPalette],\n activate: (app, translator, palette) => {\n const trans = translator.load('notebook');\n const baseUrl = PageConfig.getBaseUrl();\n app.commands.addCommand(CommandIDs.openLab, {\n label: trans.__('Open JupyterLab'),\n execute: () => {\n window.open(URLExt.join(baseUrl, 'lab'));\n },\n });\n const page = PageConfig.getOption('notebookPage');\n app.commands.addCommand(CommandIDs.openTree, {\n label: trans.__('File Browser'),\n execute: () => {\n if (page === 'tree') {\n app.commands.execute('filebrowser:activate');\n }\n else {\n window.open(URLExt.join(baseUrl, 'tree'));\n }\n },\n });\n if (palette) {\n palette.addItem({ command: CommandIDs.openLab, category: 'View' });\n palette.addItem({ command: CommandIDs.openTree, category: 'View' });\n }\n },\n};\n/**\n * A plugin to open paths in new browser tabs.\n */\nconst pathOpener = {\n id: '@jupyter-notebook/application-extension:path-opener',\n description: 'A plugin to open paths in new browser tabs.',\n autoStart: true,\n provides: INotebookPathOpener,\n activate: (app) => {\n return defaultNotebookPathOpener;\n },\n};\n/**\n * The default paths for a Jupyter Notebook app.\n */\nconst paths = {\n id: '@jupyter-notebook/application-extension:paths',\n description: 'The default paths for a Jupyter Notebook app.',\n autoStart: true,\n provides: JupyterFrontEnd.IPaths,\n activate: (app) => {\n if (!(app instanceof NotebookApp)) {\n throw new Error(`${paths.id} must be activated in Jupyter Notebook.`);\n }\n return app.paths;\n },\n};\n/**\n * A plugin providing a rendermime registry.\n */\nconst rendermime = {\n id: '@jupyter-notebook/application-extension:rendermime',\n description: 'A plugin providing a rendermime registry.',\n autoStart: true,\n provides: IRenderMimeRegistry,\n optional: [\n IDocumentManager,\n ILatexTypesetter,\n ISanitizer,\n IMarkdownParser,\n ITranslator,\n INotebookPathOpener,\n ],\n activate: (app, docManager, latexTypesetter, sanitizer, markdownParser, translator, notebookPathOpener) => {\n const trans = (translator !== null && translator !== void 0 ? translator : nullTranslator).load('jupyterlab');\n const opener = notebookPathOpener !== null && notebookPathOpener !== void 0 ? notebookPathOpener : defaultNotebookPathOpener;\n if (docManager) {\n app.commands.addCommand(CommandIDs.handleLink, {\n label: trans.__('Handle Local Link'),\n execute: (args) => {\n const path = args['path'];\n if (path === undefined || path === null) {\n return;\n }\n return docManager.services.contents\n .get(path, { content: false })\n .then((model) => {\n const baseUrl = PageConfig.getBaseUrl();\n opener.open({\n prefix: URLExt.join(baseUrl, 'tree'),\n path: model.path,\n target: '_blank',\n });\n });\n },\n });\n }\n return new RenderMimeRegistry({\n initialFactories: standardRendererFactories,\n linkHandler: !docManager\n ? undefined\n : {\n handleLink: (node, path, id) => {\n // If node has the download attribute explicitly set, use the\n // default browser downloading behavior.\n if (node.tagName === 'A' && node.hasAttribute('download')) {\n return;\n }\n app.commandLinker.connectNode(node, CommandIDs.handleLink, {\n path,\n id,\n });\n },\n },\n latexTypesetter: latexTypesetter !== null && latexTypesetter !== void 0 ? latexTypesetter : undefined,\n markdownParser: markdownParser !== null && markdownParser !== void 0 ? markdownParser : undefined,\n translator: translator !== null && translator !== void 0 ? translator : undefined,\n sanitizer: sanitizer !== null && sanitizer !== void 0 ? sanitizer : undefined,\n });\n },\n};\n/**\n * The default Jupyter Notebook application shell.\n */\nconst shell = {\n id: '@jupyter-notebook/application-extension:shell',\n description: 'The default Jupyter Notebook application shell.',\n autoStart: true,\n provides: INotebookShell,\n optional: [ISettingRegistry],\n activate: (app, settingRegistry) => {\n if (!(app.shell instanceof NotebookShell)) {\n throw new Error(`${shell.id} did not find a NotebookShell instance.`);\n }\n const notebookShell = app.shell;\n if (settingRegistry) {\n settingRegistry\n .load(shell.id)\n .then((settings) => {\n // Add a layer of customization to support app shell mode\n const customLayout = settings.composite['layout'];\n // Restore the layout.\n void notebookShell.restoreLayout(customLayout);\n })\n .catch((reason) => {\n console.error('Fail to load settings for the layout restorer.');\n console.error(reason);\n });\n }\n return notebookShell;\n },\n};\n/**\n * The default splash screen provider.\n */\nconst splash = {\n id: '@jupyter-notebook/application-extension:splash',\n description: 'Provides an empty splash screen.',\n autoStart: true,\n provides: ISplashScreen,\n activate: (app) => {\n const { restored } = app;\n const splash = document.createElement('div');\n splash.style.position = 'absolute';\n splash.style.width = '100%';\n splash.style.height = '100%';\n splash.style.zIndex = '10';\n return {\n show: (light = true) => {\n splash.style.backgroundColor = light ? 'white' : '#111111';\n document.body.appendChild(splash);\n return new DisposableDelegate(async () => {\n await restored;\n document.body.removeChild(splash);\n });\n },\n };\n },\n};\n/**\n * The default JupyterLab application status provider.\n */\nconst status = {\n id: '@jupyter-notebook/application-extension:status',\n description: 'The default JupyterLab application status provider.',\n autoStart: true,\n provides: ILabStatus,\n activate: (app) => {\n if (!(app instanceof NotebookApp)) {\n throw new Error(`${status.id} must be activated in Jupyter Notebook.`);\n }\n return app.status;\n },\n};\n/**\n * A plugin to display the document title in the browser tab title\n */\nconst tabTitle = {\n id: '@jupyter-notebook/application-extension:tab-title',\n description: 'A plugin to display the document title in the browser tab title.',\n autoStart: true,\n requires: [INotebookShell],\n activate: (app, shell) => {\n const setTabTitle = () => {\n const current = shell.currentWidget;\n if (current instanceof ConsolePanel) {\n const update = () => {\n const title = current.sessionContext.path || current.sessionContext.name;\n const basename = PathExt.basename(title);\n // Strip the \".ipynb\" suffix from filenames for display in tab titles.\n document.title = basename.replace(STRIP_IPYNB, '');\n };\n current.sessionContext.sessionChanged.connect(update);\n update();\n return;\n }\n else if (current instanceof DocumentWidget) {\n const update = () => {\n const basename = PathExt.basename(current.context.path);\n document.title = basename.replace(STRIP_IPYNB, '');\n };\n current.context.pathChanged.connect(update);\n update();\n }\n };\n shell.currentChanged.connect(setTabTitle);\n setTabTitle();\n },\n};\n/**\n * A plugin to display and rename the title of a file\n */\nconst title = {\n id: '@jupyter-notebook/application-extension:title',\n description: 'A plugin to display and rename the title of a file.',\n autoStart: true,\n requires: [INotebookShell, ITranslator],\n optional: [IDocumentManager, IRouter, IToolbarWidgetRegistry],\n activate: (app, shell, translator, docManager, router, toolbarRegistry) => {\n const { commands } = app;\n const trans = translator.load('notebook');\n const node = document.createElement('div');\n if (toolbarRegistry) {\n toolbarRegistry.addFactory('TopBar', 'widgetTitle', (toolbar) => {\n const widget = new Widget({ node });\n widget.id = 'jp-title';\n return widget;\n });\n }\n const addTitle = async () => {\n const current = shell.currentWidget;\n if (!current || !(current instanceof DocumentWidget)) {\n return;\n }\n if (node.children.length > 0) {\n return;\n }\n const h = document.createElement('h1');\n h.textContent = current.title.label.replace(STRIP_IPYNB, '');\n node.appendChild(h);\n node.style.marginLeft = '10px';\n if (!docManager) {\n return;\n }\n const isEnabled = () => {\n const { currentWidget } = shell;\n return !!(currentWidget && docManager.contextForWidget(currentWidget));\n };\n commands.addCommand(CommandIDs.duplicate, {\n label: () => trans.__('Duplicate'),\n isEnabled,\n execute: async () => {\n if (!isEnabled()) {\n return;\n }\n // Duplicate the file, and open the new file.\n const result = await docManager.duplicate(current.context.path);\n await commands.execute('docmanager:open', { path: result.path });\n },\n });\n commands.addCommand(CommandIDs.rename, {\n label: () => trans.__('Rename…'),\n isEnabled,\n execute: async () => {\n var _a;\n if (!isEnabled()) {\n return;\n }\n const result = await renameDialog(docManager, current.context);\n // activate the current widget to bring the focus\n if (current) {\n current.activate();\n }\n if (result === null) {\n return;\n }\n const newPath = current.context.path;\n const basename = PathExt.basename(newPath);\n h.textContent = basename.replace(STRIP_IPYNB, '');\n if (!router) {\n return;\n }\n const matches = (_a = router.current.path.match(TREE_PATTERN)) !== null && _a !== void 0 ? _a : [];\n const [, route, path] = matches;\n if (!route || !path) {\n return;\n }\n const encoded = encodeURIComponent(newPath);\n router.navigate(`/${route}/${encoded}`, {\n skipRouting: true,\n });\n },\n });\n node.onclick = async () => {\n void commands.execute(CommandIDs.rename);\n };\n };\n shell.currentChanged.connect(addTitle);\n void addTitle();\n },\n};\n/**\n * Plugin to toggle the top header visibility.\n */\nconst topVisibility = {\n id: '@jupyter-notebook/application-extension:top',\n description: 'Plugin to toggle the top header visibility.',\n requires: [INotebookShell, ITranslator],\n optional: [ISettingRegistry, ICommandPalette],\n activate: (app, notebookShell, translator, settingRegistry, palette) => {\n const trans = translator.load('notebook');\n const top = notebookShell.top;\n const pluginId = topVisibility.id;\n app.commands.addCommand(CommandIDs.toggleTop, {\n label: trans.__('Show Header'),\n execute: () => {\n top.setHidden(top.isVisible);\n if (settingRegistry) {\n void settingRegistry.set(pluginId, 'visible', top.isVisible ? 'yes' : 'no');\n }\n },\n isToggled: () => top.isVisible,\n });\n let adjustToScreen = false;\n if (settingRegistry) {\n const loadSettings = settingRegistry.load(pluginId);\n const updateSettings = (settings) => {\n // 'visible' property from user preferences or default settings\n let visible = settings.get('visible').composite;\n if (settings.user.visible !== undefined) {\n visible = settings.user.visible;\n }\n top.setHidden(visible === 'no');\n // adjust to screen from user preferences or default settings\n adjustToScreen = visible === 'automatic';\n };\n Promise.all([loadSettings, app.restored])\n .then(([settings]) => {\n updateSettings(settings);\n settings.changed.connect((settings) => {\n updateSettings(settings);\n });\n })\n .catch((reason) => {\n console.error(reason.message);\n });\n }\n if (palette) {\n palette.addItem({ command: CommandIDs.toggleTop, category: 'View' });\n }\n const onChanged = () => {\n if (!adjustToScreen) {\n return;\n }\n if (app.format === 'desktop') {\n notebookShell.expandTop();\n }\n else {\n notebookShell.collapseTop();\n }\n };\n // listen on format change (mobile and desktop) to make the view more compact\n app.formatChanged.connect(onChanged);\n },\n autoStart: true,\n};\n/**\n * Plugin to toggle the left or right side panel's visibility.\n */\nconst sidePanelVisibility = {\n id: '@jupyter-notebook/application-extension:sidepanel',\n description: 'Plugin to toggle the visibility of left or right side panel.',\n requires: [INotebookShell, ITranslator],\n optional: [IMainMenu, ICommandPalette],\n autoStart: true,\n activate: (app, notebookShell, translator, menu, palette) => {\n const trans = translator.load('notebook');\n /* Arguments for togglePanel command:\n * side, left or right area\n * title, widget title to show in the menu\n * id, widget ID to activate in the side panel\n */\n app.commands.addCommand(CommandIDs.togglePanel, {\n label: (args) => args['title'],\n caption: (args) => {\n // We do not substitute the parameter into the string because the parameter is not\n // localized (e.g., it is always 'left') even though the string is localized.\n if (args['side'] === 'left') {\n return trans.__('Show %1 in the left sidebar', args['title']);\n }\n else if (args['side'] === 'right') {\n return trans.__('Show %1 in the right sidebar', args['title']);\n }\n return trans.__('Show %1 in the sidebar', args['title']);\n },\n execute: (args) => {\n var _a, _b;\n switch (args['side']) {\n case 'left':\n if (notebookShell.leftCollapsed) {\n notebookShell.expandLeft(args.id);\n }\n else if (((_a = notebookShell.leftHandler.currentWidget) === null || _a === void 0 ? void 0 : _a.id) !== args.id) {\n notebookShell.expandLeft(args.id);\n }\n else {\n notebookShell.collapseLeft();\n if (notebookShell.currentWidget) {\n notebookShell.activateById(notebookShell.currentWidget.id);\n }\n }\n break;\n case 'right':\n if (notebookShell.rightCollapsed) {\n notebookShell.expandRight(args.id);\n }\n else if (((_b = notebookShell.rightHandler.currentWidget) === null || _b === void 0 ? void 0 : _b.id) !== args.id) {\n notebookShell.expandRight(args.id);\n }\n else {\n notebookShell.collapseRight();\n if (notebookShell.currentWidget) {\n notebookShell.activateById(notebookShell.currentWidget.id);\n }\n }\n break;\n }\n },\n isToggled: (args) => {\n switch (args['side']) {\n case 'left': {\n if (notebookShell.leftCollapsed) {\n return false;\n }\n const currentWidget = notebookShell.leftHandler.currentWidget;\n if (!currentWidget) {\n return false;\n }\n return currentWidget.id === args['id'];\n }\n case 'right': {\n if (notebookShell.rightCollapsed) {\n return false;\n }\n const currentWidget = notebookShell.rightHandler.currentWidget;\n if (!currentWidget) {\n return false;\n }\n return currentWidget.id === args['id'];\n }\n }\n return false;\n },\n });\n const sidePanelMenu = {\n left: null,\n right: null,\n };\n /**\n * The function which adds entries to the View menu for each widget of a side panel.\n *\n * @param area - 'left' or 'right', the area of the side panel.\n * @param entryLabel - the name of the main entry in the View menu for that side panel.\n * @returns - The disposable menu added to the View menu or null.\n */\n const updateMenu = (area, entryLabel) => {\n var _a;\n if (menu === null) {\n return null;\n }\n // Remove the previous menu entry for this side panel.\n (_a = sidePanelMenu[area]) === null || _a === void 0 ? void 0 : _a.dispose();\n // Creates a new menu entry and populates it with side panel widgets.\n const newMenu = new Menu({ commands: app.commands });\n newMenu.title.label = entryLabel;\n const widgets = notebookShell.widgets(area);\n let menuToAdd = false;\n for (const widget of widgets) {\n newMenu.addItem({\n command: CommandIDs.togglePanel,\n args: {\n side: area,\n title: `Show ${widget.title.caption}`,\n id: widget.id,\n },\n });\n menuToAdd = true;\n }\n // If there are widgets, add the menu to the main menu entry.\n if (menuToAdd) {\n sidePanelMenu[area] = menu.viewMenu.addItem({\n type: 'submenu',\n submenu: newMenu,\n });\n }\n };\n app.restored.then(() => {\n // Create menu entries for the left and right panel.\n if (menu) {\n const getSidePanelLabel = (area) => {\n if (area === 'left') {\n return trans.__('Left Sidebar');\n }\n else {\n return trans.__('Right Sidebar');\n }\n };\n const leftArea = notebookShell.leftHandler.area;\n const leftLabel = getSidePanelLabel(leftArea);\n updateMenu(leftArea, leftLabel);\n const rightArea = notebookShell.rightHandler.area;\n const rightLabel = getSidePanelLabel(rightArea);\n updateMenu(rightArea, rightLabel);\n const handleSidePanelChange = (sidePanel, widget) => {\n const label = getSidePanelLabel(sidePanel.area);\n updateMenu(sidePanel.area, label);\n };\n notebookShell.leftHandler.widgetAdded.connect(handleSidePanelChange);\n notebookShell.leftHandler.widgetRemoved.connect(handleSidePanelChange);\n notebookShell.rightHandler.widgetAdded.connect(handleSidePanelChange);\n notebookShell.rightHandler.widgetRemoved.connect(handleSidePanelChange);\n }\n // Add palette entries for side panels.\n if (palette) {\n const sidePanelPalette = new SidePanelPalette({\n commandPalette: palette,\n command: CommandIDs.togglePanel,\n });\n notebookShell.leftHandler.widgets.forEach((widget) => {\n sidePanelPalette.addItem(widget, notebookShell.leftHandler.area);\n });\n notebookShell.rightHandler.widgets.forEach((widget) => {\n sidePanelPalette.addItem(widget, notebookShell.rightHandler.area);\n });\n // Update menu and palette when widgets are added or removed from side panels.\n notebookShell.leftHandler.widgetAdded.connect((sidePanel, widget) => {\n sidePanelPalette.addItem(widget, sidePanel.area);\n });\n notebookShell.leftHandler.widgetRemoved.connect((sidePanel, widget) => {\n sidePanelPalette.removeItem(widget, sidePanel.area);\n });\n notebookShell.rightHandler.widgetAdded.connect((sidePanel, widget) => {\n sidePanelPalette.addItem(widget, sidePanel.area);\n });\n notebookShell.rightHandler.widgetRemoved.connect((sidePanel, widget) => {\n sidePanelPalette.removeItem(widget, sidePanel.area);\n });\n }\n });\n },\n};\n/**\n * The default tree route resolver plugin.\n */\nconst tree = {\n id: '@jupyter-notebook/application-extension:tree-resolver',\n description: 'The default tree route resolver plugin.',\n autoStart: true,\n requires: [IRouter],\n provides: JupyterFrontEnd.ITreeResolver,\n activate: (app, router) => {\n const { commands } = app;\n const set = new DisposableSet();\n const delegate = new PromiseDelegate();\n const treePattern = new RegExp('/(/tree/.*)?');\n set.add(commands.addCommand(CommandIDs.resolveTree, {\n execute: (async (args) => {\n var _a;\n if (set.isDisposed) {\n return;\n }\n const query = URLExt.queryStringToObject((_a = args.search) !== null && _a !== void 0 ? _a : '');\n const browser = query['file-browser-path'] || '';\n // Remove the file browser path from the query string.\n delete query['file-browser-path'];\n // Clean up artifacts immediately upon routing.\n set.dispose();\n delegate.resolve({ browser, file: PageConfig.getOption('treePath') });\n }),\n }));\n set.add(router.register({ command: CommandIDs.resolveTree, pattern: treePattern }));\n // If a route is handled by the router without the tree command being\n // invoked, resolve to `null` and clean up artifacts.\n const listener = () => {\n if (set.isDisposed) {\n return;\n }\n set.dispose();\n delegate.resolve(null);\n };\n router.routed.connect(listener);\n set.add(new DisposableDelegate(() => {\n router.routed.disconnect(listener);\n }));\n return { paths: delegate.promise };\n },\n};\n/**\n * Plugin to update tree path.\n */\nconst treePathUpdater = {\n id: '@jupyter-notebook/application-extension:tree-updater',\n description: 'Plugin to update tree path.',\n requires: [IRouter],\n provides: ITreePathUpdater,\n activate: (app, router) => {\n function updateTreePath(treePath) {\n if (treePath !== PageConfig.getOption('treePath')) {\n const path = URLExt.join(PageConfig.getOption('baseUrl') || '/', 'tree', URLExt.encodeParts(treePath));\n router.navigate(path, { skipRouting: true });\n // Persist the new tree path to PageConfig as it is used elsewhere at runtime.\n PageConfig.setOption('treePath', treePath);\n }\n }\n return updateTreePath;\n },\n autoStart: true,\n};\n/**\n * Translator plugin\n */\nconst translator = {\n id: '@jupyter-notebook/application-extension:translator',\n description: 'Translator plugin',\n requires: [INotebookShell, ITranslator],\n autoStart: true,\n activate: (app, notebookShell, translator) => {\n notebookShell.translator = translator;\n },\n};\n/**\n * Zen mode plugin\n */\nconst zen = {\n id: '@jupyter-notebook/application-extension:zen',\n description: 'Zen mode plugin.',\n autoStart: true,\n requires: [ITranslator],\n optional: [ICommandPalette, INotebookShell],\n activate: (app, translator, palette, notebookShell) => {\n const { commands } = app;\n const elem = document.documentElement;\n const trans = translator.load('notebook');\n const toggleOn = () => {\n notebookShell === null || notebookShell === void 0 ? void 0 : notebookShell.collapseTop();\n notebookShell === null || notebookShell === void 0 ? void 0 : notebookShell.menu.setHidden(true);\n zenModeEnabled = true;\n };\n const toggleOff = () => {\n notebookShell === null || notebookShell === void 0 ? void 0 : notebookShell.expandTop();\n notebookShell === null || notebookShell === void 0 ? void 0 : notebookShell.menu.setHidden(false);\n zenModeEnabled = false;\n };\n let zenModeEnabled = false;\n commands.addCommand(CommandIDs.toggleZen, {\n label: trans.__('Toggle Zen Mode'),\n execute: () => {\n if (!zenModeEnabled) {\n elem.requestFullscreen();\n toggleOn();\n }\n else {\n document.exitFullscreen();\n toggleOff();\n }\n },\n });\n document.addEventListener('fullscreenchange', () => {\n if (!document.fullscreenElement) {\n toggleOff();\n }\n });\n if (palette) {\n palette.addItem({ command: CommandIDs.toggleZen, category: 'Mode' });\n }\n },\n};\n/**\n * Export the plugins as default.\n */\nconst plugins = [\n dirty,\n info,\n logo,\n menus,\n menuSpacer,\n opener,\n pages,\n pathOpener,\n paths,\n rendermime,\n shell,\n sidePanelVisibility,\n splash,\n status,\n tabTitle,\n title,\n topVisibility,\n tree,\n treePathUpdater,\n translator,\n zen,\n];\nexport default plugins;\n"],"names":[],"sourceRoot":""}
@@ -12,7 +12,7 @@
12
12
 
13
13
  "use strict";
14
14
  __webpack_require__.r(__webpack_exports__);
15
- /* harmony import */ var _jupyterlab_coreutils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(48247);
15
+ /* harmony import */ var _jupyterlab_coreutils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29170);
16
16
  /* harmony import */ var _jupyterlab_coreutils__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_jupyterlab_coreutils__WEBPACK_IMPORTED_MODULE_0__);
17
17
  // Copyright (c) Jupyter Development Team.
18
18
  // Distributed under the terms of the Modified BSD License.
@@ -65,24 +65,24 @@ async function createModule(scope, module) {
65
65
  */
66
66
  async function main() {
67
67
  const mimeExtensionsMods = [
68
- __webpack_require__(19284),
69
- __webpack_require__(19091),
70
- __webpack_require__(87116),
71
- __webpack_require__(86122),
68
+ __webpack_require__(87009),
69
+ __webpack_require__(43381),
70
+ __webpack_require__(20565),
71
+ __webpack_require__(5314),
72
72
  ];
73
73
  const mimeExtensions = await Promise.all(mimeExtensionsMods);
74
74
 
75
75
  // Load the base plugins available on all pages
76
76
  let baseMods = [
77
- __webpack_require__(59664),
78
- __webpack_require__(1918),
79
- __webpack_require__(18144),
80
- __webpack_require__(27938),
81
- __webpack_require__(86639),
82
- __webpack_require__(32681),
83
- __webpack_require__(46242),
77
+ __webpack_require__(29959),
78
+ __webpack_require__(14336),
79
+ __webpack_require__(84810),
80
+ __webpack_require__(62103),
81
+ __webpack_require__(10701),
82
+ __webpack_require__(373),
83
+ __webpack_require__(832),
84
84
 
85
- (__webpack_require__(84281)["default"].filter)(({id}) => [
85
+ (__webpack_require__(65178)["default"].filter)(({id}) => [
86
86
  '@jupyterlab/application-extension:commands',
87
87
  '@jupyterlab/application-extension:context-menu',
88
88
  '@jupyterlab/application-extension:faviconbusy',
@@ -91,7 +91,7 @@ async function main() {
91
91
  '@jupyterlab/application-extension:top-spacer',
92
92
  ].includes(id)),
93
93
 
94
- (__webpack_require__(23784)["default"].filter)(({id}) => [
94
+ (__webpack_require__(59939)["default"].filter)(({id}) => [
95
95
  '@jupyterlab/apputils-extension:palette',
96
96
  '@jupyterlab/apputils-extension:notification',
97
97
  '@jupyterlab/apputils-extension:sanitizer',
@@ -103,9 +103,9 @@ async function main() {
103
103
  '@jupyterlab/apputils-extension:toolbar-registry',
104
104
  '@jupyterlab/apputils-extension:utilityCommands',
105
105
  ].includes(id)),
106
- __webpack_require__(36327),
106
+ __webpack_require__(23659),
107
107
 
108
- (__webpack_require__(36043)["default"].filter)(({id}) => [
108
+ (__webpack_require__(41002)["default"].filter)(({id}) => [
109
109
  '@jupyterlab/completer-extension:base-service',
110
110
  '@jupyterlab/completer-extension:inline-completer',
111
111
  '@jupyterlab/completer-extension:inline-completer-factory',
@@ -113,51 +113,51 @@ async function main() {
113
113
  '@jupyterlab/completer-extension:manager',
114
114
  ].includes(id)),
115
115
 
116
- (__webpack_require__(35848)["default"].filter)(({id}) => [
116
+ (__webpack_require__(12104)["default"].filter)(({id}) => [
117
117
  '@jupyterlab/console-extension:cell-executor',
118
118
  '@jupyterlab/console-extension:completer',
119
119
  '@jupyterlab/console-extension:factory',
120
120
  '@jupyterlab/console-extension:foreign',
121
121
  '@jupyterlab/console-extension:tracker',
122
122
  ].includes(id)),
123
- __webpack_require__(30760),
123
+ __webpack_require__(93026),
124
124
 
125
- (__webpack_require__(93282)["default"].filter)(({id}) => [
125
+ (__webpack_require__(68170)["default"].filter)(({id}) => [
126
126
  '@jupyterlab/docmanager-extension:plugin',
127
127
  '@jupyterlab/docmanager-extension:download',
128
128
  '@jupyterlab/docmanager-extension:contexts',
129
129
  '@jupyterlab/docmanager-extension:manager',
130
130
  ].includes(id)),
131
131
 
132
- (__webpack_require__(37138)["default"].filter)(({id}) => [
132
+ (__webpack_require__(65351)["default"].filter)(({id}) => [
133
133
  '@jupyterlab/documentsearch-extension:plugin',
134
134
  ].includes(id)),
135
135
 
136
- (__webpack_require__(33717)["default"].filter)(({id}) => [
136
+ (__webpack_require__(61078)["default"].filter)(({id}) => [
137
137
  '@jupyterlab/filebrowser-extension:factory',
138
138
  '@jupyterlab/filebrowser-extension:default-file-browser',
139
139
  ].includes(id)),
140
140
 
141
- (__webpack_require__(30204)["default"].filter)(({id}) => [
141
+ (__webpack_require__(2837)["default"].filter)(({id}) => [
142
142
  '@jupyterlab/fileeditor-extension:plugin',
143
143
  '@jupyterlab/fileeditor-extension:widget-factory',
144
144
  ].includes(id)),
145
145
 
146
- (__webpack_require__(28807)["default"].filter)(({id}) => [
146
+ (__webpack_require__(66243)["default"].filter)(({id}) => [
147
147
  '@jupyterlab/help-extension:resources',
148
148
  ].includes(id)),
149
- __webpack_require__(65498),
150
- __webpack_require__(90330),
151
- __webpack_require__(81568),
149
+ __webpack_require__(85942),
150
+ __webpack_require__(16189),
151
+ __webpack_require__(30337),
152
152
 
153
- (__webpack_require__(90828)["default"].filter)(({id}) => [
153
+ (__webpack_require__(75738)["default"].filter)(({id}) => [
154
154
  '@jupyterlab/mainmenu-extension:plugin',
155
155
  ].includes(id)),
156
- __webpack_require__(37574),
157
- __webpack_require__(45659),
158
- __webpack_require__(2903),
156
+ __webpack_require__(80273),
157
+ __webpack_require__(44559),
158
+ __webpack_require__(93804),
159
159
 
160
- (__webpack_require__(56678)["default"].filter)(({id}) => [
160
+ (__webpack_require__(77314)["default"].filter)(({id}) => [
161
161
  '@jupyterlab/notebook-extension:cell-executor',
162
162
  '@jupyterlab/notebook-extension:code-console',
163
163
  '@jupyterlab/notebook-extension:export',
@@ -165,15 +165,15 @@ async function main() {
165
165
  '@jupyterlab/notebook-extension:tracker',
166
166
  '@jupyterlab/notebook-extension:widget-factory',
167
167
  ].includes(id)),
168
- __webpack_require__(32897),
169
- __webpack_require__(44879),
170
- __webpack_require__(96868),
171
- __webpack_require__(73715),
172
- __webpack_require__(72258),
173
- __webpack_require__(51054),
174
- __webpack_require__(60630),
175
- __webpack_require__(52675),
176
- __webpack_require__(35611),
168
+ __webpack_require__(22826),
169
+ __webpack_require__(19271),
170
+ __webpack_require__(50695),
171
+ __webpack_require__(20171),
172
+ __webpack_require__(34797),
173
+ __webpack_require__(32997),
174
+ __webpack_require__(18092),
175
+ __webpack_require__(42300),
176
+ __webpack_require__(96169),
177
177
 
178
178
  ];
179
179
 
@@ -182,9 +182,9 @@ async function main() {
182
182
  // list all the other plugins grouped by page
183
183
  case '/tree': {
184
184
  baseMods = baseMods.concat([
185
- __webpack_require__(15290),
185
+ __webpack_require__(22689),
186
186
 
187
- (__webpack_require__(33717)["default"].filter)(({id}) => [
187
+ (__webpack_require__(61078)["default"].filter)(({id}) => [
188
188
  '@jupyterlab/filebrowser-extension:browser',
189
189
  '@jupyterlab/filebrowser-extension:download',
190
190
  '@jupyterlab/filebrowser-extension:file-upload-status',
@@ -192,12 +192,12 @@ async function main() {
192
192
  '@jupyterlab/filebrowser-extension:search',
193
193
  '@jupyterlab/filebrowser-extension:share-file',
194
194
  ].includes(id)),
195
- __webpack_require__(8442),
195
+ __webpack_require__(53137),
196
196
 
197
- (__webpack_require__(60432)["default"].filter)(({id}) => [
197
+ (__webpack_require__(51958)["default"].filter)(({id}) => [
198
198
  '@jupyterlab/running-extension:plugin',
199
199
  ].includes(id)),
200
- __webpack_require__(57800),
200
+ __webpack_require__(76894),
201
201
 
202
202
  ]);
203
203
  break;
@@ -205,10 +205,10 @@ async function main() {
205
205
  // list all the other plugins grouped by page
206
206
  case '/notebooks': {
207
207
  baseMods = baseMods.concat([
208
- __webpack_require__(52986),
209
- __webpack_require__(89911),
208
+ __webpack_require__(8983),
209
+ __webpack_require__(99218),
210
210
 
211
- (__webpack_require__(81718)["default"].filter)(({id}) => [
211
+ (__webpack_require__(17410)["default"].filter)(({id}) => [
212
212
  '@jupyterlab/debugger-extension:config',
213
213
  '@jupyterlab/debugger-extension:main',
214
214
  '@jupyterlab/debugger-extension:notebooks',
@@ -216,9 +216,9 @@ async function main() {
216
216
  '@jupyterlab/debugger-extension:sidebar',
217
217
  '@jupyterlab/debugger-extension:sources',
218
218
  ].includes(id)),
219
- __webpack_require__(60101),
219
+ __webpack_require__(97242),
220
220
 
221
- (__webpack_require__(56678)["default"].filter)(({id}) => [
221
+ (__webpack_require__(77314)["default"].filter)(({id}) => [
222
222
  '@jupyterlab/notebook-extension:active-cell-tool',
223
223
  '@jupyterlab/notebook-extension:completer',
224
224
  '@jupyterlab/notebook-extension:copy-output',
@@ -229,12 +229,12 @@ async function main() {
229
229
  '@jupyterlab/notebook-extension:update-raw-mimetype',
230
230
  ].includes(id)),
231
231
 
232
- (__webpack_require__(57453)["default"].filter)(({id}) => [
232
+ (__webpack_require__(43539)["default"].filter)(({id}) => [
233
233
  '@jupyterlab/toc-extension:registry',
234
234
  '@jupyterlab/toc-extension:tracker',
235
235
  ].includes(id)),
236
236
 
237
- (__webpack_require__(72162)["default"].filter)(({id}) => [
237
+ (__webpack_require__(705)["default"].filter)(({id}) => [
238
238
  '@jupyterlab/tooltip-extension:manager',
239
239
  '@jupyterlab/tooltip-extension:notebooks',
240
240
  ].includes(id)),
@@ -246,7 +246,7 @@ async function main() {
246
246
  case '/consoles': {
247
247
  baseMods = baseMods.concat([
248
248
 
249
- (__webpack_require__(72162)["default"].filter)(({id}) => [
249
+ (__webpack_require__(705)["default"].filter)(({id}) => [
250
250
  '@jupyterlab/tooltip-extension:manager',
251
251
  '@jupyterlab/tooltip-extension:consoles',
252
252
  ].includes(id)),
@@ -258,11 +258,11 @@ async function main() {
258
258
  case '/edit': {
259
259
  baseMods = baseMods.concat([
260
260
 
261
- (__webpack_require__(30204)["default"].filter)(({id}) => [
261
+ (__webpack_require__(2837)["default"].filter)(({id}) => [
262
262
  '@jupyterlab/fileeditor-extension:completer',
263
263
  '@jupyterlab/fileeditor-extension:search',
264
264
  ].includes(id)),
265
- __webpack_require__(30955),
265
+ __webpack_require__(81571),
266
266
 
267
267
  ]);
268
268
  break;
@@ -403,7 +403,7 @@ async function main() {
403
403
  // plugin even if the debugger is only loaded on the notebook page.
404
404
  _jupyterlab_coreutils__WEBPACK_IMPORTED_MODULE_0__.PageConfig.setOption('allPlugins', '{"/":{"@jupyter-notebook/application-extension":true,"@jupyter-notebook/console-extension":true,"@jupyter-notebook/docmanager-extension":true,"@jupyter-notebook/documentsearch-extension":true,"@jupyter-notebook/help-extension":true,"@jupyter-notebook/notebook-extension":true,"@jupyter-notebook/terminal-extension":true,"@jupyterlab/application-extension":["@jupyterlab/application-extension:commands","@jupyterlab/application-extension:context-menu","@jupyterlab/application-extension:faviconbusy","@jupyterlab/application-extension:router","@jupyterlab/application-extension:top-bar","@jupyterlab/application-extension:top-spacer"],"@jupyterlab/apputils-extension":["@jupyterlab/apputils-extension:palette","@jupyterlab/apputils-extension:notification","@jupyterlab/apputils-extension:sanitizer","@jupyterlab/apputils-extension:sessionDialogs","@jupyterlab/apputils-extension:settings","@jupyterlab/apputils-extension:state","@jupyterlab/apputils-extension:themes","@jupyterlab/apputils-extension:themes-palette-menu","@jupyterlab/apputils-extension:toolbar-registry","@jupyterlab/apputils-extension:utilityCommands"],"@jupyterlab/codemirror-extension":true,"@jupyterlab/completer-extension":["@jupyterlab/completer-extension:base-service","@jupyterlab/completer-extension:inline-completer","@jupyterlab/completer-extension:inline-completer-factory","@jupyterlab/completer-extension:inline-history","@jupyterlab/completer-extension:manager"],"@jupyterlab/console-extension":["@jupyterlab/console-extension:cell-executor","@jupyterlab/console-extension:completer","@jupyterlab/console-extension:factory","@jupyterlab/console-extension:foreign","@jupyterlab/console-extension:tracker"],"@jupyterlab/csvviewer-extension":true,"@jupyterlab/docmanager-extension":["@jupyterlab/docmanager-extension:plugin","@jupyterlab/docmanager-extension:download","@jupyterlab/docmanager-extension:contexts","@jupyterlab/docmanager-extension:manager"],"@jupyterlab/documentsearch-extension":["@jupyterlab/documentsearch-extension:plugin"],"@jupyterlab/filebrowser-extension":["@jupyterlab/filebrowser-extension:factory","@jupyterlab/filebrowser-extension:default-file-browser"],"@jupyterlab/fileeditor-extension":["@jupyterlab/fileeditor-extension:plugin","@jupyterlab/fileeditor-extension:widget-factory"],"@jupyterlab/help-extension":["@jupyterlab/help-extension:resources"],"@jupyterlab/htmlviewer-extension":true,"@jupyterlab/imageviewer-extension":true,"@jupyterlab/lsp-extension":true,"@jupyterlab/mainmenu-extension":["@jupyterlab/mainmenu-extension:plugin"],"@jupyterlab/markedparser-extension":true,"@jupyterlab/mathjax-extension":true,"@jupyterlab/mermaid-extension":true,"@jupyterlab/notebook-extension":["@jupyterlab/notebook-extension:cell-executor","@jupyterlab/notebook-extension:code-console","@jupyterlab/notebook-extension:export","@jupyterlab/notebook-extension:factory","@jupyterlab/notebook-extension:tracker","@jupyterlab/notebook-extension:widget-factory"],"@jupyterlab/pluginmanager-extension":true,"@jupyterlab/shortcuts-extension":true,"@jupyterlab/terminal-extension":true,"@jupyterlab/theme-light-extension":true,"@jupyterlab/theme-dark-extension":true,"@jupyterlab/theme-dark-high-contrast-extension":true,"@jupyterlab/translation-extension":true,"@jupyterlab/ui-components-extension":true,"@jupyterlab/hub-extension":true},"/tree":{"@jupyterlab/extensionmanager-extension":true,"@jupyterlab/filebrowser-extension":["@jupyterlab/filebrowser-extension:browser","@jupyterlab/filebrowser-extension:download","@jupyterlab/filebrowser-extension:file-upload-status","@jupyterlab/filebrowser-extension:open-with","@jupyterlab/filebrowser-extension:search","@jupyterlab/filebrowser-extension:share-file"],"@jupyter-notebook/tree-extension":true,"@jupyterlab/running-extension":["@jupyterlab/running-extension:plugin"],"@jupyterlab/settingeditor-extension":true},"/notebooks":{"@jupyterlab/celltags-extension":true,"@jupyterlab/cell-toolbar-extension":true,"@jupyterlab/debugger-extension":["@jupyterlab/debugger-extension:config","@jupyterlab/debugger-extension:main","@jupyterlab/debugger-extension:notebooks","@jupyterlab/debugger-extension:service","@jupyterlab/debugger-extension:sidebar","@jupyterlab/debugger-extension:sources"],"@jupyterlab/metadataform-extension":true,"@jupyterlab/notebook-extension":["@jupyterlab/notebook-extension:active-cell-tool","@jupyterlab/notebook-extension:completer","@jupyterlab/notebook-extension:copy-output","@jupyterlab/notebook-extension:metadata-editor","@jupyterlab/notebook-extension:search","@jupyterlab/notebook-extension:toc","@jupyterlab/notebook-extension:tools","@jupyterlab/notebook-extension:update-raw-mimetype"],"@jupyterlab/toc-extension":["@jupyterlab/toc-extension:registry","@jupyterlab/toc-extension:tracker"],"@jupyterlab/tooltip-extension":["@jupyterlab/tooltip-extension:manager","@jupyterlab/tooltip-extension:notebooks"]},"/consoles":{"@jupyterlab/tooltip-extension":["@jupyterlab/tooltip-extension:manager","@jupyterlab/tooltip-extension:consoles"]},"/edit":{"@jupyterlab/fileeditor-extension":["@jupyterlab/fileeditor-extension:completer","@jupyterlab/fileeditor-extension:search"],"@jupyterlab/markdownviewer-extension":true}}');
405
405
 
406
- const NotebookApp = (__webpack_require__(10006).NotebookApp);
406
+ const NotebookApp = (__webpack_require__(39921).NotebookApp);
407
407
  const app = new NotebookApp({ mimeExtensions, availablePlugins });
408
408
 
409
409
  app.registerPluginModules(mods);
@@ -1454,7 +1454,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, `.jp-AboutNotebook .jp-Dialog-header {
1454
1454
  /* harmony import */ var _node_modules_jupyterlab_builder_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_jupyterlab_builder_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
1455
1455
  /* harmony import */ var _node_modules_jupyterlab_builder_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11368);
1456
1456
  /* harmony import */ var _node_modules_jupyterlab_builder_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_jupyterlab_builder_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
1457
- /* harmony import */ var _node_modules_jupyterlab_builder_node_modules_css_loader_dist_cjs_js_variables_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(32031);
1457
+ /* harmony import */ var _node_modules_jupyterlab_builder_node_modules_css_loader_dist_cjs_js_variables_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(99686);
1458
1458
  // Imports
1459
1459
 
1460
1460
 
@@ -1745,7 +1745,7 @@ body[data-notebook='notebooks']
1745
1745
 
1746
1746
  /***/ }),
1747
1747
 
1748
- /***/ 32031:
1748
+ /***/ 99686:
1749
1749
  /***/ ((module, __webpack_exports__, __webpack_require__) => {
1750
1750
 
1751
1751
  "use strict";
@@ -1989,4 +1989,4 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4
1989
1989
  /***/ })
1990
1990
 
1991
1991
  }]);
1992
- //# sourceMappingURL=8781.c639c650f3ae6acea205.js.map?v=c639c650f3ae6acea205
1992
+ //# sourceMappingURL=8781.c923e6061bb438a1724f.js.map?v=c923e6061bb438a1724f