jupyterlab 4.2.0a1__py3-none-any.whl → 4.2.0a2__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.
Files changed (558) hide show
  1. jupyterlab/_version.py +1 -1
  2. jupyterlab/browser_check.py +1 -0
  3. jupyterlab/commands.py +18 -10
  4. jupyterlab/debuglog.py +1 -3
  5. jupyterlab/federated_labextensions.py +0 -1
  6. jupyterlab/galata/@jupyterlab/galata-extension/build_log.json +106 -97
  7. jupyterlab/galata/@jupyterlab/galata-extension/package.json +11 -11
  8. jupyterlab/galata/@jupyterlab/galata-extension/static/{remoteEntry.3e3b6ffec7bafcabe954.js → remoteEntry.557502a4db342d307bff.js} +3 -3
  9. jupyterlab/galata/__init__.py +3 -1
  10. jupyterlab/labapp.py +1 -1
  11. jupyterlab/labextensions.py +9 -0
  12. jupyterlab/schemas/@jupyterlab/application-extension/package.json.orig +10 -10
  13. jupyterlab/schemas/@jupyterlab/apputils-extension/package.json.orig +14 -14
  14. jupyterlab/schemas/@jupyterlab/cell-toolbar-extension/package.json.orig +6 -6
  15. jupyterlab/schemas/@jupyterlab/celltags-extension/package.json.orig +5 -5
  16. jupyterlab/schemas/@jupyterlab/codemirror-extension/package.json.orig +11 -11
  17. jupyterlab/schemas/@jupyterlab/completer-extension/package.json.orig +6 -6
  18. jupyterlab/schemas/@jupyterlab/console-extension/package.json.orig +13 -13
  19. jupyterlab/schemas/@jupyterlab/csvviewer-extension/package.json.orig +10 -10
  20. jupyterlab/schemas/@jupyterlab/debugger-extension/package.json.orig +17 -17
  21. jupyterlab/schemas/@jupyterlab/docmanager-extension/package.json.orig +12 -11
  22. jupyterlab/schemas/@jupyterlab/docmanager-extension/plugin.json +7 -0
  23. jupyterlab/schemas/@jupyterlab/documentsearch-extension/package.json.orig +6 -6
  24. jupyterlab/schemas/@jupyterlab/extensionmanager-extension/package.json.orig +7 -7
  25. jupyterlab/schemas/@jupyterlab/filebrowser-extension/package.json.orig +13 -13
  26. jupyterlab/schemas/@jupyterlab/fileeditor-extension/package.json.orig +25 -25
  27. jupyterlab/schemas/@jupyterlab/help-extension/package.json.orig +8 -8
  28. jupyterlab/schemas/@jupyterlab/htmlviewer-extension/package.json.orig +9 -9
  29. jupyterlab/schemas/@jupyterlab/hub-extension/package.json.orig +6 -6
  30. jupyterlab/schemas/@jupyterlab/imageviewer-extension/package.json.orig +6 -6
  31. jupyterlab/schemas/@jupyterlab/inspector-extension/package.json.orig +9 -9
  32. jupyterlab/schemas/@jupyterlab/launcher-extension/package.json.orig +7 -7
  33. jupyterlab/schemas/@jupyterlab/logconsole-extension/package.json.orig +10 -10
  34. jupyterlab/schemas/@jupyterlab/lsp-extension/package.json.orig +8 -8
  35. jupyterlab/schemas/@jupyterlab/mainmenu-extension/package.json.orig +12 -9
  36. jupyterlab/schemas/@jupyterlab/mainmenu-extension/plugin.json +5 -0
  37. jupyterlab/schemas/@jupyterlab/markdownviewer-extension/package.json.orig +9 -9
  38. jupyterlab/schemas/@jupyterlab/mathjax-extension/package.json.orig +3 -3
  39. jupyterlab/schemas/@jupyterlab/metadataform-extension/package.json.orig +7 -7
  40. jupyterlab/schemas/@jupyterlab/notebook-extension/package.json.orig +30 -30
  41. jupyterlab/schemas/@jupyterlab/running-extension/package.json.orig +14 -10
  42. jupyterlab/schemas/@jupyterlab/running-extension/plugin.json +5 -0
  43. jupyterlab/schemas/@jupyterlab/settingeditor-extension/package.json.orig +11 -11
  44. jupyterlab/schemas/@jupyterlab/shortcuts-extension/package.json.orig +6 -6
  45. jupyterlab/schemas/@jupyterlab/statusbar-extension/package.json.orig +6 -6
  46. jupyterlab/schemas/@jupyterlab/terminal-extension/package.json.orig +11 -11
  47. jupyterlab/schemas/@jupyterlab/toc-extension/package.json.orig +6 -6
  48. jupyterlab/schemas/@jupyterlab/tooltip-extension/package.json.orig +11 -11
  49. jupyterlab/schemas/@jupyterlab/translation-extension/package.json.orig +6 -6
  50. jupyterlab/schemas/@jupyterlab/workspaces-extension/menu.json +70 -0
  51. jupyterlab/schemas/@jupyterlab/workspaces-extension/package.json.orig +62 -0
  52. jupyterlab/schemas/@jupyterlab/workspaces-extension/sidebar.json +51 -0
  53. jupyterlab/staging/package.json +155 -151
  54. jupyterlab/staging/webpack.config.js +1 -1
  55. jupyterlab/staging/yarn.lock +1311 -1493
  56. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/1166.4098a92fbb801821731a.js → jupyterlab/static/1166.08f9e1fd722f61c9b69c.js +1 -1
  57. jupyterlab/static/1410.d8f5e39e1e01d696d2ab.js +1 -0
  58. jupyterlab/static/2091.0ad2070604beb93b34c5.js +1 -0
  59. jupyterlab/static/2104.96885e414ee656615c2b.js +1 -0
  60. jupyterlab/static/{2551.8ff3e561387bb693569c.js → 2551.b07d561a12360c38c589.js} +1 -1
  61. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/2579.c28985048ab1a5ff2308.js → jupyterlab/static/2579.b19edefeb9ee4daed4bd.js +1 -1
  62. jupyterlab/static/2800.8acae2f2fef55d2ccdf2.js +1 -0
  63. jupyterlab/static/2995.334184c36a45c82ad564.js +1 -0
  64. jupyterlab/static/3547.2a00f51cd14b6060c5d6.js +1 -0
  65. jupyterlab/static/3783.36bf783a511cc87997c0.js +1 -0
  66. jupyterlab/static/4043.c57e85faf640ba37b87c.js +1 -0
  67. jupyterlab/static/{406.e9483074129d4ff914e2.js → 406.81906f96059e31e907a2.js} +1 -1
  68. jupyterlab/static/4405.196dd63db3761b4bb7fe.js +1 -0
  69. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/4765.de0102c1754669a3d242.js → jupyterlab/static/4765.093b4f8b3cee1251db8d.js +1 -1
  70. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/49.7233f68f95d10b85a83e.js → jupyterlab/static/49.43ad810fe0adbd6be564.js +1 -1
  71. jupyterlab/static/4986.c819184e09e1e15ef06b.js +1 -0
  72. jupyterlab/static/5201.26a6f909d5e2eaa4ada3.js +1 -0
  73. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/5794.6ddce9d8233ad1e4fea2.js → jupyterlab/static/5794.3cb2bcd1a3e23d0c084e.js +1 -1
  74. jupyterlab/static/{6001.da3cf3d9f5f28c3cf62d.js → 6001.963601fcecb8b4c1d1f1.js} +1 -1
  75. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/6436.d1efff651b8af3988cf3.js → jupyterlab/static/6436.8d9ba427de4ab1053871.js +1 -1
  76. jupyterlab/static/6532.598324868e83c4cbe4e4.js +1 -0
  77. jupyterlab/static/{8250.1c239c2f52ca6f4177c7.js → 6699.ca2a6f21674753716453.js} +1 -1
  78. jupyterlab/static/6888.f71353e198bce9c2f409.js +1 -0
  79. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/7313.4a8a9a1eee6f7ef15ee1.js → jupyterlab/static/7313.9db22121563e1a8e0516.js +2 -2
  80. jupyterlab/static/{7318.397bf8e913e825b2be27.js → 7318.f5a0db6dd94488328be5.js} +1 -1
  81. jupyterlab/static/7823.f3c8154418bc214dc89a.js +1 -0
  82. jupyterlab/static/795.c780bf11bb08527e3c84.js +1 -0
  83. jupyterlab/static/812.c967203ebe8bf68d9cad.js +1 -0
  84. jupyterlab/static/8771.ac4c870ed77005ec8e34.js +1 -0
  85. jupyterlab/static/{881.7c5bc8dd48eb32398005.js → 881.972f79365eed0f77378e.js} +1 -1
  86. jupyterlab/static/9.82c3bf54739d037b7bd1.js +1 -0
  87. jupyterlab/static/9030.61b135ed4411056792ab.js +1 -0
  88. jupyterlab/static/9041.d439f3e9bdd4ea5a681b.js +1 -0
  89. jupyterlab/static/{9395.ff3dc1f239b429a55732.js → 9395.b59dceae72715c9f885c.js} +1 -1
  90. jupyterlab/static/942.68bd92fc10c9f9d7004f.js +1 -0
  91. jupyterlab/static/9653.52cac2cc6fb3dc3bf28a.js +1 -0
  92. jupyterlab/static/9870.714b869d9320ef3fe065.js +1 -0
  93. jupyterlab/static/build_log.json +107 -101
  94. jupyterlab/static/index.html +1 -1
  95. jupyterlab/static/index.out.js +11 -0
  96. jupyterlab/static/jlab_core.5cdbad1e68776b99256a.js +1 -0
  97. jupyterlab/static/main.2ba872a4c08e4530e097.js +1 -0
  98. jupyterlab/static/package.json +155 -151
  99. jupyterlab/static/style.js +1 -0
  100. jupyterlab/static/third-party-licenses.json +134 -128
  101. jupyterlab/style.js +1 -0
  102. jupyterlab/tests/mock_packages/extension/package.json +3 -3
  103. jupyterlab/tests/mock_packages/interop/consumer/package.json +3 -3
  104. jupyterlab/tests/mock_packages/interop/provider/package.json +3 -3
  105. jupyterlab/tests/mock_packages/interop/token/package.json +1 -1
  106. jupyterlab/tests/mock_packages/test-hyphens-underscore/package.json +2 -2
  107. jupyterlab/tests/mock_packages/test-hyphens-underscore/pyproject.toml +1 -1
  108. jupyterlab/tests/mock_packages/test-hyphens-underscore/yarn.lock +2803 -0
  109. jupyterlab/tests/mock_packages/test_no_hyphens/package.json +2 -2
  110. jupyterlab/tests/mock_packages/test_no_hyphens/pyproject.toml +1 -1
  111. jupyterlab/tests/mock_packages/test_no_hyphens/yarn.lock +2803 -0
  112. jupyterlab/tests/test_build_api.py +1 -0
  113. jupyterlab/themes/@jupyterlab/theme-dark-extension/index.css +84 -84
  114. jupyterlab/themes/@jupyterlab/theme-light-extension/index.css +71 -71
  115. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/application-extension/package.json.orig +10 -10
  116. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/package.json.orig +14 -14
  117. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/cell-toolbar-extension/package.json.orig +6 -6
  118. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/celltags-extension/package.json.orig +5 -5
  119. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/codemirror-extension/package.json.orig +11 -11
  120. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/completer-extension/package.json.orig +6 -6
  121. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/console-extension/package.json.orig +13 -13
  122. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/csvviewer-extension/package.json.orig +10 -10
  123. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/debugger-extension/package.json.orig +17 -17
  124. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/docmanager-extension/package.json.orig +12 -11
  125. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/docmanager-extension/plugin.json +7 -0
  126. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/documentsearch-extension/package.json.orig +6 -6
  127. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/extensionmanager-extension/package.json.orig +7 -7
  128. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/package.json.orig +13 -13
  129. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/fileeditor-extension/package.json.orig +25 -25
  130. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/help-extension/package.json.orig +8 -8
  131. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/htmlviewer-extension/package.json.orig +9 -9
  132. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/hub-extension/package.json.orig +6 -6
  133. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/imageviewer-extension/package.json.orig +6 -6
  134. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/inspector-extension/package.json.orig +9 -9
  135. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/launcher-extension/package.json.orig +7 -7
  136. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/logconsole-extension/package.json.orig +10 -10
  137. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/lsp-extension/package.json.orig +8 -8
  138. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/mainmenu-extension/package.json.orig +12 -9
  139. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/mainmenu-extension/plugin.json +5 -0
  140. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/markdownviewer-extension/package.json.orig +9 -9
  141. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/mathjax-extension/package.json.orig +3 -3
  142. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/metadataform-extension/package.json.orig +7 -7
  143. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/package.json.orig +30 -30
  144. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/running-extension/package.json.orig +14 -10
  145. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/running-extension/plugin.json +5 -0
  146. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/settingeditor-extension/package.json.orig +11 -11
  147. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/shortcuts-extension/package.json.orig +6 -6
  148. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/statusbar-extension/package.json.orig +6 -6
  149. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/terminal-extension/package.json.orig +11 -11
  150. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/toc-extension/package.json.orig +6 -6
  151. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/package.json.orig +11 -11
  152. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/translation-extension/package.json.orig +6 -6
  153. jupyterlab-4.2.0a2.data/data/share/jupyter/lab/schemas/@jupyterlab/workspaces-extension/menu.json +70 -0
  154. jupyterlab-4.2.0a2.data/data/share/jupyter/lab/schemas/@jupyterlab/workspaces-extension/package.json.orig +62 -0
  155. jupyterlab-4.2.0a2.data/data/share/jupyter/lab/schemas/@jupyterlab/workspaces-extension/sidebar.json +51 -0
  156. jupyterlab/static/1166.4098a92fbb801821731a.js → jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/1166.08f9e1fd722f61c9b69c.js +1 -1
  157. jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/1410.d8f5e39e1e01d696d2ab.js +1 -0
  158. jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/2091.0ad2070604beb93b34c5.js +1 -0
  159. jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/2104.96885e414ee656615c2b.js +1 -0
  160. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/2551.8ff3e561387bb693569c.js → jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/2551.b07d561a12360c38c589.js +1 -1
  161. jupyterlab/static/2579.c28985048ab1a5ff2308.js → jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/2579.b19edefeb9ee4daed4bd.js +1 -1
  162. jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/2800.8acae2f2fef55d2ccdf2.js +1 -0
  163. jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/2995.334184c36a45c82ad564.js +1 -0
  164. jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/3547.2a00f51cd14b6060c5d6.js +1 -0
  165. jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/3783.36bf783a511cc87997c0.js +1 -0
  166. jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/4043.c57e85faf640ba37b87c.js +1 -0
  167. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/406.e9483074129d4ff914e2.js → jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/406.81906f96059e31e907a2.js +1 -1
  168. jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/4405.196dd63db3761b4bb7fe.js +1 -0
  169. jupyterlab/static/4765.de0102c1754669a3d242.js → jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/4765.093b4f8b3cee1251db8d.js +1 -1
  170. jupyterlab/static/49.7233f68f95d10b85a83e.js → jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/49.43ad810fe0adbd6be564.js +1 -1
  171. jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/4986.c819184e09e1e15ef06b.js +1 -0
  172. jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/5201.26a6f909d5e2eaa4ada3.js +1 -0
  173. jupyterlab/static/5794.6ddce9d8233ad1e4fea2.js → jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/5794.3cb2bcd1a3e23d0c084e.js +1 -1
  174. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/6001.da3cf3d9f5f28c3cf62d.js → jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/6001.963601fcecb8b4c1d1f1.js +1 -1
  175. jupyterlab/static/6436.d1efff651b8af3988cf3.js → jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/6436.8d9ba427de4ab1053871.js +1 -1
  176. jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/6532.598324868e83c4cbe4e4.js +1 -0
  177. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/8250.1c239c2f52ca6f4177c7.js → jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/6699.ca2a6f21674753716453.js +1 -1
  178. jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/6888.f71353e198bce9c2f409.js +1 -0
  179. jupyterlab/static/7313.4a8a9a1eee6f7ef15ee1.js → jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/7313.9db22121563e1a8e0516.js +2 -2
  180. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/7318.397bf8e913e825b2be27.js → jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/7318.f5a0db6dd94488328be5.js +1 -1
  181. jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/7823.f3c8154418bc214dc89a.js +1 -0
  182. jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/795.c780bf11bb08527e3c84.js +1 -0
  183. jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/812.c967203ebe8bf68d9cad.js +1 -0
  184. jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/8771.ac4c870ed77005ec8e34.js +1 -0
  185. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/881.7c5bc8dd48eb32398005.js → jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/881.972f79365eed0f77378e.js +1 -1
  186. jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/9.82c3bf54739d037b7bd1.js +1 -0
  187. jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/9030.61b135ed4411056792ab.js +1 -0
  188. jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/9041.d439f3e9bdd4ea5a681b.js +1 -0
  189. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/9395.ff3dc1f239b429a55732.js → jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/9395.b59dceae72715c9f885c.js +1 -1
  190. jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/942.68bd92fc10c9f9d7004f.js +1 -0
  191. jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/9653.52cac2cc6fb3dc3bf28a.js +1 -0
  192. jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/9870.714b869d9320ef3fe065.js +1 -0
  193. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/build_log.json +107 -101
  194. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/index.html +1 -1
  195. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/index.out.js +11 -0
  196. jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/jlab_core.5cdbad1e68776b99256a.js +1 -0
  197. jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/main.2ba872a4c08e4530e097.js +1 -0
  198. jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/package.json +354 -0
  199. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/style.js +1 -0
  200. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/third-party-licenses.json +134 -128
  201. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/themes/@jupyterlab/theme-dark-extension/index.css +84 -84
  202. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/themes/@jupyterlab/theme-light-extension/index.css +71 -71
  203. {jupyterlab-4.2.0a1.dist-info → jupyterlab-4.2.0a2.dist-info}/METADATA +7 -7
  204. {jupyterlab-4.2.0a1.dist-info → jupyterlab-4.2.0a2.dist-info}/RECORD +505 -501
  205. {jupyterlab-4.2.0a1.dist-info → jupyterlab-4.2.0a2.dist-info}/WHEEL +1 -1
  206. jupyterlab/schemas/@jupyterlab/apputils-extension/workspaces.json +0 -24
  207. jupyterlab/static/1410.e2302ff5f564d6e596bb.js +0 -1
  208. jupyterlab/static/2091.600b1c32af186f6405f9.js +0 -1
  209. jupyterlab/static/2104.296346db0067b4883fbf.js +0 -1
  210. jupyterlab/static/2800.680b1fa0a4c66c69bb1e.js +0 -1
  211. jupyterlab/static/2995.0448b3ed572d9cc5fcc7.js +0 -1
  212. jupyterlab/static/3547.bd90e90bfe79911486e8.js +0 -1
  213. jupyterlab/static/3783.93d5366ab28a19e1f0f9.js +0 -1
  214. jupyterlab/static/4043.aa012978c41d1d1b2f14.js +0 -1
  215. jupyterlab/static/4405.43dab120fea32f30bbb9.js +0 -1
  216. jupyterlab/static/4986.a497cdda4b7152902568.js +0 -1
  217. jupyterlab/static/5201.8866042bae350659528a.js +0 -1
  218. jupyterlab/static/6532.bb7137729a2d6d4e6ddf.js +0 -1
  219. jupyterlab/static/6888.9d3914817f3290827a64.js +0 -1
  220. jupyterlab/static/7823.817687f13e9a6781fdd3.js +0 -1
  221. jupyterlab/static/795.47ab66037ef33f808f09.js +0 -1
  222. jupyterlab/static/812.245ed5bad344b83aaa94.js +0 -1
  223. jupyterlab/static/8771.327a202178f82f3b15b8.js +0 -1
  224. jupyterlab/static/9.0e0cba0ccc2a4b670600.js +0 -1
  225. jupyterlab/static/9030.260bc05e28eccff70ae8.js +0 -1
  226. jupyterlab/static/9041.df39043656c7233552e4.js +0 -1
  227. jupyterlab/static/942.93c8de61ea9ea08ec097.js +0 -1
  228. jupyterlab/static/9653.d93c93e084cd5e93cd2d.js +0 -1
  229. jupyterlab/static/9870.70b2b59cc96c3a97c489.js +0 -1
  230. jupyterlab/static/jlab_core.96636abd45a035c16dd5.js +0 -1
  231. jupyterlab/static/main.8fae291860aa4a477800.js +0 -1
  232. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/workspaces.json +0 -24
  233. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/1410.e2302ff5f564d6e596bb.js +0 -1
  234. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/2091.600b1c32af186f6405f9.js +0 -1
  235. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/2104.296346db0067b4883fbf.js +0 -1
  236. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/2800.680b1fa0a4c66c69bb1e.js +0 -1
  237. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/2995.0448b3ed572d9cc5fcc7.js +0 -1
  238. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/3547.bd90e90bfe79911486e8.js +0 -1
  239. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/3783.93d5366ab28a19e1f0f9.js +0 -1
  240. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/4043.aa012978c41d1d1b2f14.js +0 -1
  241. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/4405.43dab120fea32f30bbb9.js +0 -1
  242. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/4986.a497cdda4b7152902568.js +0 -1
  243. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/5201.8866042bae350659528a.js +0 -1
  244. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/6532.bb7137729a2d6d4e6ddf.js +0 -1
  245. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/6888.9d3914817f3290827a64.js +0 -1
  246. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/7823.817687f13e9a6781fdd3.js +0 -1
  247. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/795.47ab66037ef33f808f09.js +0 -1
  248. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/812.245ed5bad344b83aaa94.js +0 -1
  249. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/8771.327a202178f82f3b15b8.js +0 -1
  250. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/9.0e0cba0ccc2a4b670600.js +0 -1
  251. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/9030.260bc05e28eccff70ae8.js +0 -1
  252. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/9041.df39043656c7233552e4.js +0 -1
  253. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/942.93c8de61ea9ea08ec097.js +0 -1
  254. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/9653.d93c93e084cd5e93cd2d.js +0 -1
  255. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/9870.70b2b59cc96c3a97c489.js +0 -1
  256. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/jlab_core.96636abd45a035c16dd5.js +0 -1
  257. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/main.8fae291860aa4a477800.js +0 -1
  258. jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/package.json +0 -350
  259. /jupyterlab/static/{7313.4a8a9a1eee6f7ef15ee1.js.LICENSE.txt → 7313.9db22121563e1a8e0516.js.LICENSE.txt} +0 -0
  260. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/etc/jupyter/jupyter_notebook_config.d/jupyterlab.json +0 -0
  261. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/etc/jupyter/jupyter_server_config.d/jupyterlab.json +0 -0
  262. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/applications/jupyterlab.desktop +0 -0
  263. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/icons/hicolor/scalable/apps/jupyterlab.svg +0 -0
  264. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/application-extension/commands.json +0 -0
  265. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/application-extension/context-menu.json +0 -0
  266. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/application-extension/property-inspector.json +0 -0
  267. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/application-extension/shell.json +0 -0
  268. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/application-extension/top-bar.json +0 -0
  269. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/notification.json +0 -0
  270. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/palette.json +0 -0
  271. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/print.json +0 -0
  272. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/sanitizer.json +0 -0
  273. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/themes.json +0 -0
  274. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/utilityCommands.json +0 -0
  275. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/cell-toolbar-extension/plugin.json +0 -0
  276. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/celltags-extension/plugin.json +0 -0
  277. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/codemirror-extension/plugin.json +0 -0
  278. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/completer-extension/inline-completer.json +0 -0
  279. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/completer-extension/manager.json +0 -0
  280. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/console-extension/completer.json +0 -0
  281. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/console-extension/foreign.json +0 -0
  282. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/console-extension/tracker.json +0 -0
  283. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/csvviewer-extension/csv.json +0 -0
  284. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/csvviewer-extension/tsv.json +0 -0
  285. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/debugger-extension/main.json +0 -0
  286. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/docmanager-extension/download.json +0 -0
  287. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/documentsearch-extension/plugin.json +0 -0
  288. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/extensionmanager-extension/plugin.json +0 -0
  289. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/browser.json +0 -0
  290. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/download.json +0 -0
  291. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/open-browser-tab.json +0 -0
  292. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/open-with.json +0 -0
  293. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/widget.json +0 -0
  294. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/fileeditor-extension/completer.json +0 -0
  295. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/fileeditor-extension/plugin.json +0 -0
  296. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/help-extension/about.json +0 -0
  297. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/help-extension/jupyter-forum.json +0 -0
  298. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/help-extension/launch-classic.json +0 -0
  299. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/htmlviewer-extension/plugin.json +0 -0
  300. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/hub-extension/menu.json +0 -0
  301. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/imageviewer-extension/plugin.json +0 -0
  302. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/inspector-extension/consoles.json +0 -0
  303. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/inspector-extension/inspector.json +0 -0
  304. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/inspector-extension/notebooks.json +0 -0
  305. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/launcher-extension/plugin.json +0 -0
  306. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/logconsole-extension/plugin.json +0 -0
  307. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/lsp-extension/plugin.json +0 -0
  308. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/markdownviewer-extension/plugin.json +0 -0
  309. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/mathjax-extension/plugin.json +0 -0
  310. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/metadataform-extension/metadataforms.json +0 -0
  311. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/completer.json +0 -0
  312. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/export.json +0 -0
  313. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/panel.json +0 -0
  314. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/tools.json +0 -0
  315. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/tracker.json +0 -0
  316. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/settingeditor-extension/form-ui.json +0 -0
  317. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/settingeditor-extension/plugin.json +0 -0
  318. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/shortcuts-extension/shortcuts.json +0 -0
  319. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/statusbar-extension/plugin.json +0 -0
  320. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/terminal-extension/plugin.json +0 -0
  321. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/toc-extension/registry.json +0 -0
  322. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/consoles.json +0 -0
  323. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/files.json +0 -0
  324. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/notebooks.json +0 -0
  325. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json +0 -0
  326. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/1036.b7aaba381aaa04073a6b.js +0 -0
  327. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/1036.b7aaba381aaa04073a6b.js.LICENSE.txt +0 -0
  328. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/1085.0b67f0736d85ec41fdd4.js +0 -0
  329. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/1142.d5442a459b18907c1f91.js +0 -0
  330. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/1168.0a95b9c93afe61ceb527.js +0 -0
  331. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/1294.9d27be1098bc8abebe3f.js +0 -0
  332. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/1420.e8486ed074346bc629ca.js +0 -0
  333. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/1448.c391061d8a8344f9d177.js +0 -0
  334. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/1452.4cc17f31511d1f9c6052.js +0 -0
  335. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/1467.dcd89539f6477c1367af.js +0 -0
  336. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/1550.09375e869bc25429b07a.js +0 -0
  337. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/1581.e988a625b879002dcc04.js +0 -0
  338. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/1581.e988a625b879002dcc04.js.LICENSE.txt +0 -0
  339. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/1608.61240f3db67d3d952790.js +0 -0
  340. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/1716.a6bbe1ae8a1986a73623.js +0 -0
  341. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/1760.9a71f4501e9bbaa4c4d8.js +0 -0
  342. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/1776.4f9305d35480467b23c9.js +0 -0
  343. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/1861.4fc7b4afe2b09eb6b5c0.js +0 -0
  344. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/1903.3b452e8ec30e57dbaba5.js +0 -0
  345. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/1917.05d73322caab1f77e3bf.js +0 -0
  346. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/1929.96e62233aa6f2a8363d4.js +0 -0
  347. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/1945.0fbbfe93a4aedd91875c.js +0 -0
  348. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/1954.07d96e4020ed6e543d25.js +0 -0
  349. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/1993.f8c5682f95ffa75cbaf6.js +0 -0
  350. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/1cb1c39ea642f26a4dfe.woff +0 -0
  351. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/2039.aa079dac5c520f93b234.js +0 -0
  352. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/2090.abc86741318f76c3d726.js +0 -0
  353. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/2145.be9ec610f29703694fcf.js +0 -0
  354. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/2254.55c69210925ec9b28dd9.js +0 -0
  355. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/226.5dc3528c008170b37b21.js +0 -0
  356. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/2295.cda0f7182bf2a1a03c5a.js +0 -0
  357. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/2320.04abae549b19363c2fdd.js +0 -0
  358. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/2363.6eef078cb37c32d7fbc3.js +0 -0
  359. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/2459.9f9cb02561de1bec73ff.js +0 -0
  360. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/2485.dab750ed66209df61fe1.js +0 -0
  361. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/2617.9c299e26785f7646cb39.js +0 -0
  362. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/2646.0864fb63d7ab1ed16893.js +0 -0
  363. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/2655.71a94960aa4ab2040d8f.js +0 -0
  364. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/26683bf201fb258a2237.woff +0 -0
  365. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/2727.6925b8cf1c5363f40138.js +0 -0
  366. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/2755.696bab6bdca0d9a78131.js +0 -0
  367. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/2857.27a6e85f5c4c092ab8a2.js +0 -0
  368. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/2909.e190307f7f84c7691068.js +0 -0
  369. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/292.3f7844a129f16ec1ffbc.js +0 -0
  370. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/2929.b88233153dbf33f40b29.js +0 -0
  371. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/2953.92ff8f12bad6ee06859c.js +0 -0
  372. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/2990.ea15322a41d3f133989b.js +0 -0
  373. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/3056.8a73f6aacd8ca45f84f9.js +0 -0
  374. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/30e889b58cbc51adfbb0.woff +0 -0
  375. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/3123.85cea4be2e2ed3f9654f.js +0 -0
  376. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/32792104b5ef69eded90.woff +0 -0
  377. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/3306.8bdc49ad1a7ca593a838.js +0 -0
  378. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/3308.764d71af7e591cdb1345.js +0 -0
  379. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/3520.3495b98946de6960ace8.js +0 -0
  380. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/3528.3b5ef5f31d460b5fcd01.js +0 -0
  381. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/3549.24f2fe646d8128bc9db0.js +0 -0
  382. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/355254db9ca10a09a3b5.woff +0 -0
  383. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/3601.5c17c015d71b69ddcab3.js +0 -0
  384. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/36e0d72d8a7afc696a3e.woff +0 -0
  385. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/3711.150292a21fd47be1c05f.js +0 -0
  386. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/3724.a4657dc16be2ffc49282.js +0 -0
  387. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/373c04fd2418f5c77eea.eot +0 -0
  388. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/378.6d0f0fc4c8a2eb80ac43.js +0 -0
  389. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/3807.08a8fd824036c30b3746.js +0 -0
  390. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/383.db345dbeef5ef774e50c.js +0 -0
  391. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/3871.ba96e5b53bb16df56618.js +0 -0
  392. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/3923.f29c06abdcb560130471.js +0 -0
  393. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/3935.905285b8e22c337968ed.js +0 -0
  394. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/3935.905285b8e22c337968ed.js.LICENSE.txt +0 -0
  395. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/3962.50786e3ed9a01329a4a0.js +0 -0
  396. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/3bc6ecaae7ecf6f8d7f8.woff +0 -0
  397. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/3de784d07b9fa8f104c1.woff +0 -0
  398. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/3f6d3488cf65374f6f67.woff +0 -0
  399. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/4008.86acbefff6de679f77b5.js +0 -0
  400. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/4008.86acbefff6de679f77b5.js.LICENSE.txt +0 -0
  401. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/4017.096a74a538e031b6d346.js +0 -0
  402. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/4086.3087c0abed5ca45b823b.js +0 -0
  403. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/4136.4b9f72f85f49f979ebb8.js +0 -0
  404. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/4136.4b9f72f85f49f979ebb8.js.LICENSE.txt +0 -0
  405. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/4139.303ee7374c742287be85.js +0 -0
  406. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/4155.5a8d6736017097028d78.js +0 -0
  407. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/4283.f6092d8b7f2e53118d1b.js +0 -0
  408. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/4291.e5d8997127541f75fdaf.js +0 -0
  409. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/4419.93938494f456cd76a7e3.js +0 -0
  410. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/4452.2f8819684b96ecff5231.js +0 -0
  411. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/4519.6b784d052db42e93eff2.js +0 -0
  412. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/4562.72444a09f5f092646490.js +0 -0
  413. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/4591.428531724f49fe824ffa.js +0 -0
  414. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/46.fb119c5e5b1e0c72a00f.js +0 -0
  415. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/4743.d4e9658ea25301e15a94.js +0 -0
  416. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/481e39042508ae313a60.woff +0 -0
  417. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/4878.73004381601237a3ef9c.js +0 -0
  418. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/5041.cdc120bda0a0dec4cfc2.js +0 -0
  419. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/5157.9c77dc27a251d4135876.js +0 -0
  420. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/5203.c002d40ac647dc6e1d61.js +0 -0
  421. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/526.601d8ddd8347cd7790b9.js +0 -0
  422. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/5331.0cd3f010bb08983ec3fd.js +0 -0
  423. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/5440.2541fcda12b661665148.js +0 -0
  424. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/5521.ce4a0274596e0325374c.js +0 -0
  425. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/5746.e4434ef2027bcc5ed0c9.js +0 -0
  426. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/581.2b878ed37172aced15b5.js +0 -0
  427. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/5881.3946238aa4afdcf4f964.js +0 -0
  428. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/5959.a6b1fd3b03d3649ea8b1.js +0 -0
  429. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/5cda41563a095bd70c78.woff +0 -0
  430. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/6059.d83e7323b2ee1aa16009.js +0 -0
  431. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/6163.f5b51a9f0df4846ba40f.js +0 -0
  432. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/6207.a8079c8d8a61039dd530.js +0 -0
  433. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/6243.2efd673d1304c43b7b78.js +0 -0
  434. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/6267.1def2916929e185ab9fc.js +0 -0
  435. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/627.7e292370f4d61d9e8648.js +0 -0
  436. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/627.7e292370f4d61d9e8648.js.LICENSE.txt +0 -0
  437. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/6359.4b994bfd6b1dea2d6fe3.js +0 -0
  438. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/6443.e6b52d3732b3e8513a71.js +0 -0
  439. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/6515.56c63929fb079a820cbc.js +0 -0
  440. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/6560.f42276a0b1b92aea515b.js +0 -0
  441. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/6595.6a1d7e1abbf186dd119b.js +0 -0
  442. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/6686.3c518aa6e5f9785fb486.js +0 -0
  443. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/6770.fd7084bb2f4b7622401d.js +0 -0
  444. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/6778.345e6ac9818e30317310.js +0 -0
  445. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/6815.0b699f0c162a24b0dbe3.js +0 -0
  446. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/6898.742a7062fa979fb68a80.js +0 -0
  447. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7080.1330328bb6f46b4da81e.js +0 -0
  448. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7112.d5120c85ebd17620dda0.js +0 -0
  449. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7161.353c3ab960df72e6f1ea.js +0 -0
  450. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7173.e28f63dbd553818e07d3.js +0 -0
  451. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7178.5f3dd740449b44efad2d.js +0 -0
  452. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7178.5f3dd740449b44efad2d.js.LICENSE.txt +0 -0
  453. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/721921bab0d001ebff02.woff +0 -0
  454. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7245.c0cae8787dcd00b991b7.js +0 -0
  455. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7272.72081c10e0f645b0631a.js +0 -0
  456. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7294.badf85a3180703d63f62.js +0 -0
  457. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7294.badf85a3180703d63f62.js.LICENSE.txt +0 -0
  458. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/72bc573386dd1d48c5bb.woff +0 -0
  459. /jupyterlab-4.2.0a1.data/data/share/jupyter/lab/static/7313.4a8a9a1eee6f7ef15ee1.js.LICENSE.txt → /jupyterlab-4.2.0a2.data/data/share/jupyter/lab/static/7313.9db22121563e1a8e0516.js.LICENSE.txt +0 -0
  460. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7317.af8a7da0f881a22752c1.js +0 -0
  461. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7363.abe8e31a91e113753bae.js +0 -0
  462. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7384.60351e008d8f687e8fcc.js +0 -0
  463. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7390.8253478b90f756692702.js +0 -0
  464. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7426.c83966ccc62601d391bd.js +0 -0
  465. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7426.c83966ccc62601d391bd.js.LICENSE.txt +0 -0
  466. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/745.85516a9bb83bcd94d00d.js +0 -0
  467. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7451.c0257dbfdd320e2c21f5.js +0 -0
  468. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7451.c0257dbfdd320e2c21f5.js.LICENSE.txt +0 -0
  469. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7472.58ba8647a489d019c2ef.js +0 -0
  470. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7473.5012397d10d3b945ecaa.js +0 -0
  471. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7508.b902347f820c70cd386a.js +0 -0
  472. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7511.b381a696cf806983c654.js +0 -0
  473. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7517.f3e5d420f4af90d442dd.js +0 -0
  474. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7629.1f295461ebf56a48c197.js +0 -0
  475. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7669.343e259c4c8269479f5b.js +0 -0
  476. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7702.c479c69f7a532f7b3fd5.js +0 -0
  477. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7730.7e3a9fb140d2d55a51fc.js +0 -0
  478. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7731.26db150e967313b7a7e2.js +0 -0
  479. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7734.b08c15e9f538f44d0f52.js +0 -0
  480. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7763.19a095394000f9ef62bd.js +0 -0
  481. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7763.19a095394000f9ef62bd.js.LICENSE.txt +0 -0
  482. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7775.3e0dee729369fe3d5008.js +0 -0
  483. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7827.e36d073d947bf02a05e3.js +0 -0
  484. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7848.e83aa4b90ae87209abb8.js +0 -0
  485. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/786.8a99ee7dbd7bd0eb9dce.js +0 -0
  486. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7877.a4c46a784149533b91d4.js +0 -0
  487. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7887.128a155df5d25e88c0ce.js +0 -0
  488. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/7946.7fe46d47492e459b7cb5.js +0 -0
  489. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/79d088064beb3826054f.eot +0 -0
  490. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/8002.25f64485372af5158c83.js +0 -0
  491. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/8010.1cf8237e9def8404f355.js +0 -0
  492. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/8012.40cb006f0c180ebafa91.js +0 -0
  493. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/8152.5baac73844a065f34284.js +0 -0
  494. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/8285.1eac7b7582569be1c3a8.js +0 -0
  495. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/8302.5c5e5a2da7fe74b12a1d.js +0 -0
  496. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/8319.80fcbc832e1eb20b71e7.js +0 -0
  497. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/8322.288af285dac9cb9a8800.js +0 -0
  498. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/8347.573b699e3590729bfa8a.js +0 -0
  499. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/8405.154ba4b17a2dec22a355.js +0 -0
  500. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/8462.74d5f5afd4f9d7825eed.js +0 -0
  501. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/8493.fc635229db38e6fc6aa2.js +0 -0
  502. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/8498.27a245b23921914bf5c2.js +0 -0
  503. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/8512.1af96655287fd124877b.js +0 -0
  504. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/8678.dcd3dab9025b13eb9be8.js +0 -0
  505. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/870673df72e70f87c91a.woff +0 -0
  506. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/8710.5fc5ecb762fb4494db02.js +0 -0
  507. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/8738.782816e9072ac38762b4.js +0 -0
  508. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/8787.4d36d28dcf94bf59cbfe.js +0 -0
  509. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/8805.0f14a91b024b59c039a7.js +0 -0
  510. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/8823.2ff947bcd96cc0723058.js +0 -0
  511. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/8875.88988caaba1e33edad5b.js +0 -0
  512. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/88b98cad3688915e50da.woff +0 -0
  513. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/8ea8791754915a898a31.woff2 +0 -0
  514. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/8ea8dbb1b02e6f730f55.woff +0 -0
  515. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/9055.bd710a8db8883a836b59.js +0 -0
  516. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/9109.fa3ee74a5c0f378f4d51.js +0 -0
  517. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/9192.db4337a516b7f38d1f89.js +0 -0
  518. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/9222.1c2a8e69a2de57dd1984.js +0 -0
  519. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/9230.58b8c42b730e1a56e69b.js +0 -0
  520. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/9265.bc2b66a4502cdfcfc14f.js +0 -0
  521. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/9362.823dcfac216f8057452d.js +0 -0
  522. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/9409.34c33ed11e2d6f318480.js +0 -0
  523. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/9421.022dc7b4e9a2c80c32c2.js +0 -0
  524. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/9440.04751e25c9cde059ff37.js +0 -0
  525. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/9445.fe5e9e5b728de8d15873.js +0 -0
  526. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/9545.f0f7a2959bdd17ee3448.js +0 -0
  527. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/9579.4b1b079b6b7cd2924338.js +0 -0
  528. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/9579.4b1b079b6b7cd2924338.js.LICENSE.txt +0 -0
  529. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/9621.9cbfa52c42927bb398b4.js +0 -0
  530. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/9674eb1bd55047179038.svg +0 -0
  531. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/9738.c0234a1f7f6ac262f560.js +0 -0
  532. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/9747.6dd327f4928c6989ea8a.js +0 -0
  533. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/9747.6dd327f4928c6989ea8a.js.LICENSE.txt +0 -0
  534. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/9826.406d2a71dc45995bc549.js +0 -0
  535. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/9826.406d2a71dc45995bc549.js.LICENSE.txt +0 -0
  536. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/9834b82ad26e2a37583d.woff2 +0 -0
  537. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/9984.6ba5355e0d5487d5ac63.js +0 -0
  538. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/a009bea404f7a500ded4.woff +0 -0
  539. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/a3b9817780214caf01e8.svg +0 -0
  540. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/af04542b29eaac04550a.woff +0 -0
  541. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/af6397503fcefbd61397.ttf +0 -0
  542. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/af96f67d7accf5fd2a4a.woff +0 -0
  543. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/b418136e3b384baaadec.woff +0 -0
  544. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/be0a084962d8066884f7.svg +0 -0
  545. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/bootstrap.js +0 -0
  546. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/c49810b53ecc0d87d802.woff +0 -0
  547. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/c56da8d69f1a0208b8e0.woff +0 -0
  548. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/cb9e9e693192413cde2b.woff +0 -0
  549. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/cda59d6efffa685830fd.ttf +0 -0
  550. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/e4299464e7b012968eed.eot +0 -0
  551. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/e42a88444448ac3d6054.woff2 +0 -0
  552. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/e8711bbb871afd8e9dea.ttf +0 -0
  553. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/f9217f66874b0c01cd8c.woff +0 -0
  554. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/static/fc6ddf5df402b263cfb1.woff +0 -0
  555. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/themes/@jupyterlab/theme-dark-extension/index.js +0 -0
  556. {jupyterlab-4.2.0a1.data → jupyterlab-4.2.0a2.data}/data/share/jupyter/lab/themes/@jupyterlab/theme-light-extension/index.js +0 -0
  557. {jupyterlab-4.2.0a1.dist-info → jupyterlab-4.2.0a2.dist-info}/entry_points.txt +0 -0
  558. {jupyterlab-4.2.0a1.dist-info → jupyterlab-4.2.0a2.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8771],{28771:(e,t,a)=>{a.r(t);a.d(t,{Cassandra:()=>ze,MSSQL:()=>Te,MariaSQL:()=>Pe,MySQL:()=>qe,PLSQL:()=>Xe,PostgreSQL:()=>we,SQLDialect:()=>be,SQLite:()=>Ue,StandardSQL:()=>Oe,keywordCompletion:()=>ve,keywordCompletionSource:()=>_e,schemaCompletion:()=>ke,schemaCompletionSource:()=>ye,sql:()=>xe});var n=a(24104);var r=a.n(n);var i=a(6016);var s=a.n(i);var o=a(11705);var l=a(1065);const c=36,d=1,u=2,m=3,p=4,f=5,g=6,h=7,b=8,_=9,v=10,y=11,k=12,x=13,O=14,w=15,Q=16,C=17,S=18,q=19,P=20,T=21,U=22,z=23,X=24;function j(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57}function B(e){return e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70}function R(e,t,a){for(let n=false;;){if(e.next<0)return;if(e.next==t&&!n){e.advance();return}n=a&&!n&&e.next==92;e.advance()}}function L(e){for(;;){if(e.next<0||e.peek(1)<0)return;if(e.next==36&&e.peek(1)==36){e.advance(2);return}e.advance()}}function Z(e,t){let a="[{<(".indexOf(String.fromCharCode(t));let n=a<0?t:"]}>)".charCodeAt(a);for(;;){if(e.next<0)return;if(e.next==n&&e.peek(1)==39){e.advance(2);return}e.advance()}}function N(e,t){for(;;){if(e.next!=95&&!j(e.next))break;if(t!=null)t+=String.fromCharCode(e.next);e.advance()}return t}function V(e){if(e.next==39||e.next==34||e.next==96){let t=e.next;e.advance();R(e,t,false)}else{N(e)}}function D(e,t){while(e.next==48||e.next==49)e.advance();if(t&&e.next==t)e.advance()}function I(e,t){for(;;){if(e.next==46){if(t)break;t=true}else if(e.next<48||e.next>57){break}e.advance()}if(e.next==69||e.next==101){e.advance();if(e.next==43||e.next==45)e.advance();while(e.next>=48&&e.next<=57)e.advance()}}function $(e){while(!(e.next<0||e.next==10))e.advance()}function E(e,t){for(let a=0;a<t.length;a++)if(t.charCodeAt(a)==e)return true;return false}const W=" \t\r\n";function A(e,t,a){let n=Object.create(null);n["true"]=n["false"]=f;n["null"]=n["unknown"]=g;for(let r of e.split(" "))if(r)n[r]=P;for(let r of t.split(" "))if(r)n[r]=T;for(let r of(a||"").split(" "))if(r)n[r]=X;return n}const G="array binary bit boolean char character clob date decimal double float int integer interval large national nchar nclob numeric object precision real smallint time timestamp varchar varying ";const M="absolute action add after all allocate alter and any are as asc assertion at authorization before begin between both breadth by call cascade cascaded case cast catalog check close collate collation column commit condition connect connection constraint constraints constructor continue corresponding count create cross cube current current_date current_default_transform_group current_transform_group_for_type current_path current_role current_time current_timestamp current_user cursor cycle data day deallocate declare default deferrable deferred delete depth deref desc describe descriptor deterministic diagnostics disconnect distinct do domain drop dynamic each else elseif end end-exec equals escape except exception exec execute exists exit external fetch first for foreign found from free full function general get global go goto grant group grouping handle having hold hour identity if immediate in indicator initially inner inout input insert intersect into is isolation join key language last lateral leading leave left level like limit local localtime localtimestamp locator loop map match method minute modifies module month names natural nesting new next no none not of old on only open option or order ordinality out outer output overlaps pad parameter partial path prepare preserve primary prior privileges procedure public read reads recursive redo ref references referencing relative release repeat resignal restrict result return returns revoke right role rollback rollup routine row rows savepoint schema scroll search second section select session session_user set sets signal similar size some space specific specifictype sql sqlexception sqlstate sqlwarning start state static system_user table temporary then timezone_hour timezone_minute to trailing transaction translation treat trigger under undo union unique unnest until update usage user using value values view when whenever where while with without work write year zone ";const Y={backslashEscapes:false,hashComments:false,spaceAfterDashes:false,slashComments:false,doubleQuotedStrings:false,doubleDollarQuotedStrings:false,unquotedBitLiterals:false,treatBitsAsBytes:false,charSetCasts:false,plsqlQuotingMechanism:false,operatorChars:"*+-%<>!=&|~^/",specialVar:"?",identifierQuotes:'"',words:A(M,G)};function K(e,t,a,n){let r={};for(let i in Y)r[i]=(e.hasOwnProperty(i)?e:Y)[i];if(t)r.words=A(t,a||"",n);return r}function F(e){return new o.Jq((t=>{var a;let{next:n}=t;t.advance();if(E(n,W)){while(E(t.next,W))t.advance();t.acceptToken(c)}else if(n==36&&t.next==36&&e.doubleDollarQuotedStrings){L(t);t.acceptToken(m)}else if(n==39||n==34&&e.doubleQuotedStrings){R(t,n,e.backslashEscapes);t.acceptToken(m)}else if(n==35&&e.hashComments||n==47&&t.next==47&&e.slashComments){$(t);t.acceptToken(d)}else if(n==45&&t.next==45&&(!e.spaceAfterDashes||t.peek(1)==32)){$(t);t.acceptToken(d)}else if(n==47&&t.next==42){t.advance();for(let e=1;;){let a=t.next;if(t.next<0)break;t.advance();if(a==42&&t.next==47){e--;t.advance();if(!e)break}else if(a==47&&t.next==42){e++;t.advance()}}t.acceptToken(u)}else if((n==101||n==69)&&t.next==39){t.advance();R(t,39,true)}else if((n==110||n==78)&&t.next==39&&e.charSetCasts){t.advance();R(t,39,e.backslashEscapes);t.acceptToken(m)}else if(n==95&&e.charSetCasts){for(let a=0;;a++){if(t.next==39&&a>1){t.advance();R(t,39,e.backslashEscapes);t.acceptToken(m);break}if(!j(t.next))break;t.advance()}}else if(e.plsqlQuotingMechanism&&(n==113||n==81)&&t.next==39&&t.peek(1)>0&&!E(t.peek(1),W)){let e=t.peek(1);t.advance(2);Z(t,e);t.acceptToken(m)}else if(n==40){t.acceptToken(h)}else if(n==41){t.acceptToken(b)}else if(n==123){t.acceptToken(_)}else if(n==125){t.acceptToken(v)}else if(n==91){t.acceptToken(y)}else if(n==93){t.acceptToken(k)}else if(n==59){t.acceptToken(x)}else if(e.unquotedBitLiterals&&n==48&&t.next==98){t.advance();D(t);t.acceptToken(U)}else if((n==98||n==66)&&(t.next==39||t.next==34)){const a=t.next;t.advance();if(e.treatBitsAsBytes){R(t,a,e.backslashEscapes);t.acceptToken(z)}else{D(t,a);t.acceptToken(U)}}else if(n==48&&(t.next==120||t.next==88)||(n==120||n==88)&&t.next==39){let e=t.next==39;t.advance();while(B(t.next))t.advance();if(e&&t.next==39)t.advance();t.acceptToken(p)}else if(n==46&&t.next>=48&&t.next<=57){I(t,true);t.acceptToken(p)}else if(n==46){t.acceptToken(O)}else if(n>=48&&n<=57){I(t,false);t.acceptToken(p)}else if(E(n,e.operatorChars)){while(E(t.next,e.operatorChars))t.advance();t.acceptToken(w)}else if(E(n,e.specialVar)){if(t.next==n)t.advance();V(t);t.acceptToken(C)}else if(E(n,e.identifierQuotes)){R(t,n,false);t.acceptToken(q)}else if(n==58||n==44){t.acceptToken(Q)}else if(j(n)){let r=N(t,String.fromCharCode(n));t.acceptToken(t.next==46||t.peek(-r.length-1)==46?S:(a=e.words[r.toLowerCase()])!==null&&a!==void 0?a:S)}}))}const J=F(Y);const H=o.WQ.deserialize({version:14,states:"%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO'#CyO%sQQO'#CzOOQQ'#DS'#DSOOQQ'#C}'#C}O'UQRO'#C{OOQQ'#Cv'#CvOOQQ'#C|'#C|Q]QQOOQOQQOOO'`QQO'#DOO(xQRO,59cO)PQQO,59cO)UQQO'#DSOOQQ,59d,59dO)cQQO,59dOOQQ,59e,59eO)jQQO,59eOOQQ,59f,59fO)qQQO,59fOOQQ-E6{-E6{OOQQ,59b,59bOOQQ-E6z-E6zOOQQ,59j,59jOOQQ-E6|-E6|O+VQRO1G.}O+^QQO,59cOOQQ1G/O1G/OOOQQ1G/P1G/POOQQ1G/Q1G/QP+kQQO'#C}O+rQQO1G.}O)PQQO,59cO,PQQO'#Cw",stateData:",[~OtOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O^]ORvXSvXTvXUvXVvXXvXZvX]vX_vX`vXavXbvXcvXdvXevXfvXgvXhvX~OsvX~P!jOa_Ob_Oc_O~ORUOSUOTUOUUOVROXSOZTO^tO_UO`UOa`Ob`Oc`OdUOeUOfUOgUOhUO~OWaO~P$ZOYcO~P$ZO[eO~P$ZORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O]hOsoX~P%zOajObjOcjO~O^]ORkaSkaTkaUkaVkaXkaZka]ka_ka`kaakabkackadkaekafkagkahka~Oska~P'kO^]O~OWvXYvX[vX~P!jOWnO~P$ZOYoO~P$ZO[pO~P$ZO^]ORkiSkiTkiUkiVkiXkiZki]ki_ki`kiakibkickidkiekifkigkihki~Oski~P)xOWkaYka[ka~P'kO]hO~P$ZOWkiYki[ki~P)xOasObsOcsO~O",goto:"#hwPPPPPPPPPPPPPPPPPPPPPPPPPPx||||!Y!^!d!xPPP#[TYOZeUORSTWZbdfqT[OZQZORiZSWOZQbRQdSQfTZgWbdfqQ^PWk^lmrQl_Qm`RrseVORSTWZbdfq",nodeNames:"⚠ LineComment BlockComment String Number Bool Null ( ) { } [ ] ; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Bits Bytes Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",maxTerm:38,nodeProps:[["isolate",-4,1,2,3,19,""]],skippedNodes:[0,1,2],repeatNodeCount:3,tokenData:"RORO",tokenizers:[0,J],topRules:{Script:[0,25]},tokenPrec:0});function ee(e){let t=e.cursor().moveTo(e.from,-1);while(/Comment/.test(t.name))t.moveTo(t.from,-1);return t.node}function te(e,t){let a=e.sliceString(t.from,t.to);let n=/^([`'"])(.*)\1$/.exec(a);return n?n[2]:a}function ae(e){return e&&(e.name=="Identifier"||e.name=="QuotedIdentifier")}function ne(e,t){if(t.name=="CompositeIdentifier"){let a=[];for(let n=t.firstChild;n;n=n.nextSibling)if(ae(n))a.push(te(e,n));return a}return[te(e,t)]}function re(e,t){for(let a=[];;){if(!t||t.name!=".")return a;let n=ee(t);if(!ae(n))return a;a.unshift(te(e,n));t=ee(n)}}function ie(e,t){let a=(0,n.syntaxTree)(e).resolveInner(t,-1);let r=oe(e.doc,a);if(a.name=="Identifier"||a.name=="QuotedIdentifier"||a.name=="Keyword"){return{from:a.from,quoted:a.name=="QuotedIdentifier"?e.doc.sliceString(a.from,a.from+1):null,parents:re(e.doc,ee(a)),aliases:r}}if(a.name=="."){return{from:t,quoted:null,parents:re(e.doc,a),aliases:r}}else{return{from:t,quoted:null,parents:[],empty:true,aliases:r}}}const se=new Set("where group having order union intersect except all distinct limit offset fetch for".split(" "));function oe(e,t){let a;for(let r=t;!a;r=r.parent){if(!r)return null;if(r.name=="Statement")a=r}let n=null;for(let r=a.firstChild,i=false,s=null;r;r=r.nextSibling){let t=r.name=="Keyword"?e.sliceString(r.from,r.to).toLowerCase():null;let a=null;if(!i){i=t=="from"}else if(t=="as"&&s&&ae(r.nextSibling)){a=te(e,r.nextSibling)}else if(t&&se.has(t)){break}else if(s&&ae(r)){a=te(e,r)}if(a){if(!n)n=Object.create(null);n[a]=ne(e,s)}s=/Identifier$/.test(r.name)?r:null}return n}function le(e,t){if(!e)return t;return t.map((t=>Object.assign(Object.assign({},t),{label:t.label[0]==e?t.label:e+t.label+e,apply:undefined})))}const ce=/^\w*$/,de=/^[`'"]?\w*[`'"]?$/;function ue(e){return e.self&&typeof e.self.label=="string"}class me{constructor(e){this.idQuote=e;this.list=[];this.children=undefined}child(e){let t=this.children||(this.children=Object.create(null));let a=t[e];if(a)return a;if(e&&!this.list.some((t=>t.label==e)))this.list.push(pe(e,"type",this.idQuote));return t[e]=new me(this.idQuote)}maybeChild(e){return this.children?this.children[e]:null}addCompletion(e){let t=this.list.findIndex((t=>t.label==e.label));if(t>-1)this.list[t]=e;else this.list.push(e)}addCompletions(e){for(let t of e)this.addCompletion(typeof t=="string"?pe(t,"property",this.idQuote):t)}addNamespace(e){if(Array.isArray(e)){this.addCompletions(e)}else if(ue(e)){this.addNamespace(e.children)}else{this.addNamespaceObject(e)}}addNamespaceObject(e){for(let t of Object.keys(e)){let a=e[t],n=null;let r=t.replace(/\\?\./g,(e=>e=="."?"\0":e)).split("\0");let i=this;if(ue(a)){n=a.self;a=a.children}for(let e=0;e<r.length;e++){if(n&&e==r.length-1)i.addCompletion(n);i=i.child(r[e].replace(/\\\./g,"."))}i.addNamespace(a)}}}function pe(e,t,a){if(/^[a-z_][a-z_\d]*$/.test(e))return{label:e,type:t};return{label:e,type:t,apply:a+e+a}}function fe(e,t,a,n,r,i){var s;let o=((s=i===null||i===void 0?void 0:i.spec.identifierQuotes)===null||s===void 0?void 0:s[0])||'"';let l=new me(o);let c=r?l.child(r):null;l.addNamespace(e);if(t)(c||l).addCompletions(t);if(a)l.addCompletions(a);if(c)l.addCompletions(c.list);if(n)l.addCompletions((c||l).child(n).list);return e=>{let{parents:t,from:a,quoted:r,empty:i,aliases:s}=ie(e.state,e.pos);if(i&&!e.explicit)return null;if(s&&t.length==1)t=s[t[0]]||t;let o=l;for(let m of t){while(!o.children||!o.children[m]){if(o==l)o=c;else if(o==c&&n)o=o.child(n);else return null}let e=o.maybeChild(m);if(!e)return null;o=e}let d=r&&e.state.sliceDoc(e.pos,e.pos+1)==r;let u=o.list;if(o==l&&s)u=u.concat(Object.keys(s).map((e=>({label:e,type:"constant"}))));return{from:a,to:d?e.pos+1:undefined,options:le(r,u),validFor:r?de:ce}}}function ge(e,t){let a=Object.keys(e).map((a=>({label:t?a.toUpperCase():a,type:e[a]==T?"type":e[a]==P?"keyword":"variable",boost:-1})));return(0,l.eC)(["QuotedIdentifier","SpecialVar","String","LineComment","BlockComment","."],(0,l.Mb)(a))}let he=H.configure({props:[n.indentNodeProp.add({Statement:(0,n.continuedIndent)()}),n.foldNodeProp.add({Statement(e){return{from:e.firstChild.to,to:e.to}},BlockComment(e){return{from:e.from+2,to:e.to-2}}}),(0,i.styleTags)({Keyword:i.tags.keyword,Type:i.tags.typeName,Builtin:i.tags.standard(i.tags.name),Bits:i.tags.number,Bytes:i.tags.string,Bool:i.tags.bool,Null:i.tags["null"],Number:i.tags.number,String:i.tags.string,Identifier:i.tags.name,QuotedIdentifier:i.tags.special(i.tags.string),SpecialVar:i.tags.special(i.tags.name),LineComment:i.tags.lineComment,BlockComment:i.tags.blockComment,Operator:i.tags.operator,"Semi Punctuation":i.tags.punctuation,"( )":i.tags.paren,"{ }":i.tags.brace,"[ ]":i.tags.squareBracket})]});class be{constructor(e,t,a){this.dialect=e;this.language=t;this.spec=a}get extension(){return this.language.extension}static define(e){let t=K(e,e.keywords,e.types,e.builtin);let a=n.LRLanguage.define({name:"sql",parser:he.configure({tokenizers:[{from:J,to:F(t)}]}),languageData:{commentTokens:{line:"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}});return new be(t,a,e)}}function _e(e,t=false){return ge(e.dialect.words,t)}function ve(e,t=false){return e.language.data.of({autocomplete:_e(e,t)})}function ye(e){return e.schema?fe(e.schema,e.tables,e.schemas,e.defaultTable,e.defaultSchema,e.dialect||Oe):()=>null}function ke(e){return e.schema?(e.dialect||Oe).language.data.of({autocomplete:ye(e)}):[]}function xe(e={}){let t=e.dialect||Oe;return new n.LanguageSupport(t.language,[ke(e),ve(t,!!e.upperCaseKeywords)])}const Oe=be.define({});const we=be.define({charSetCasts:true,doubleDollarQuotedStrings:true,operatorChars:"+-*/<>=~!@#%^&|`?",specialVar:"",keywords:M+"a abort abs absent access according ada admin aggregate alias also always analyse analyze array_agg array_max_cardinality asensitive assert assignment asymmetric atomic attach attribute attributes avg backward base64 begin_frame begin_partition bernoulli bit_length blocked bom c cache called cardinality catalog_name ceil ceiling chain char_length character_length character_set_catalog character_set_name character_set_schema characteristics characters checkpoint class class_origin cluster coalesce cobol collation_catalog collation_name collation_schema collect column_name columns command_function command_function_code comment comments committed concurrently condition_number configuration conflict connection_name constant constraint_catalog constraint_name constraint_schema contains content control conversion convert copy corr cost covar_pop covar_samp csv cume_dist current_catalog current_row current_schema cursor_name database datalink datatype datetime_interval_code datetime_interval_precision db debug defaults defined definer degree delimiter delimiters dense_rank depends derived detach detail dictionary disable discard dispatch dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue document dump dynamic_function dynamic_function_code element elsif empty enable encoding encrypted end_frame end_partition endexec enforced enum errcode error event every exclude excluding exclusive exp explain expression extension extract family file filter final first_value flag floor following force foreach fortran forward frame_row freeze fs functions fusion g generated granted greatest groups handler header hex hierarchy hint id ignore ilike immediately immutable implementation implicit import include including increment indent index indexes info inherit inherits inline insensitive instance instantiable instead integrity intersection invoker isnull k key_member key_type label lag last_value lead leakproof least length library like_regex link listen ln load location lock locked log logged lower m mapping matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text min minvalue mod mode more move multiset mumps name namespace nfc nfd nfkc nfkd nil normalize normalized nothing notice notify notnull nowait nth_value ntile nullable nullif nulls number occurrences_regex octet_length octets off offset oids operator options ordering others over overlay overriding owned owner p parallel parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partition pascal passing passthrough password percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding prepared print_strict_params procedural procedures program publication query quote raise range rank reassign recheck recovery refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex rename repeatable replace replica requiring reset respect restart restore result_oid returned_cardinality returned_length returned_octet_length returned_sqlstate returning reverse routine_catalog routine_name routine_schema routines row_count row_number rowtype rule scale schema_name schemas scope scope_catalog scope_name scope_schema security selective self sensitive sequence sequences serializable server server_name setof share show simple skip slice snapshot source specific_name sqlcode sqlerror sqrt stable stacked standalone statement statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time t table_name tables tablesample tablespace temp template ties token top_level_count transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex trigger_catalog trigger_name trigger_schema trim trim_array truncate trusted type types uescape unbounded uncommitted unencrypted unlink unlisten unlogged unnamed untyped upper uri use_column use_variable user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema vacuum valid validate validator value_of var_pop var_samp varbinary variable_conflict variadic verbose version versioning views volatile warning whitespace width_bucket window within wrapper xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate yes",types:G+"bigint int8 bigserial serial8 varbit bool box bytea cidr circle precision float8 inet int4 json jsonb line lseg macaddr macaddr8 money numeric pg_lsn point polygon float4 int2 smallserial serial2 serial serial4 text timetz timestamptz tsquery tsvector txid_snapshot uuid xml"});const Qe="accessible algorithm analyze asensitive authors auto_increment autocommit avg avg_row_length binlog btree cache catalog_name chain change changed checkpoint checksum class_origin client_statistics coalesce code collations columns comment committed completion concurrent consistent contains contributors convert database databases day_hour day_microsecond day_minute day_second delay_key_write delayed delimiter des_key_file dev_pop dev_samp deviance directory disable discard distinctrow div dual dumpfile enable enclosed ends engine engines enum errors escaped even event events every explain extended fast field fields flush force found_rows fulltext grants handler hash high_priority hosts hour_microsecond hour_minute hour_second ignore ignore_server_ids import index index_statistics infile innodb insensitive insert_method install invoker iterate keys kill linear lines list load lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modify mutex mysql_errno no_write_to_binlog offline offset one online optimize optionally outfile pack_keys parser partition partitions password phase plugin plugins prev processlist profile profiles purge query quick range read_write rebuild recover regexp relaylog remove rename reorganize repair repeatable replace require resume rlike row_format rtree schedule schema_name schemas second_microsecond security sensitive separator serializable server share show slave slow snapshot soname spatial sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result ssl starting starts std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace terminated triggers truncate uncommitted uninstall unlock upgrade use use_frm user_resources user_statistics utc_date utc_time utc_timestamp variables views warnings xa xor year_month zerofill";const Ce=G+"bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int1 int2 int3 int4 int8 float4 float8 varbinary varcharacter precision datetime unsigned signed";const Se="charset clear edit ego help nopager notee nowarning pager print prompt quit rehash source status system tee";const qe=be.define({operatorChars:"*+-%<>!=&|^",charSetCasts:true,doubleQuotedStrings:true,unquotedBitLiterals:true,hashComments:true,spaceAfterDashes:true,specialVar:"@?",identifierQuotes:"`",keywords:M+"group_concat "+Qe,types:Ce,builtin:Se});const Pe=be.define({operatorChars:"*+-%<>!=&|^",charSetCasts:true,doubleQuotedStrings:true,unquotedBitLiterals:true,hashComments:true,spaceAfterDashes:true,specialVar:"@?",identifierQuotes:"`",keywords:M+"always generated groupby_concat hard persistent shutdown soft virtual "+Qe,types:Ce,builtin:Se});const Te=be.define({keywords:M+"trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock pivot readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx unpivot updlock with",types:G+"bigint smallint smallmoney tinyint money real text nvarchar ntext varbinary image hierarchyid uniqueidentifier sql_variant xml",builtin:"binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id",operatorChars:"*+-%<>!=^&|/",specialVar:"@"});const Ue=be.define({keywords:M+"abort analyze attach autoincrement conflict database detach exclusive fail glob ignore index indexed instead isnull notnull offset plan pragma query raise regexp reindex rename replace temp vacuum virtual",types:G+"bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int2 int8 unsigned signed real",builtin:"auth backup bail changes clone databases dbinfo dump echo eqp explain fullschema headers help import imposter indexes iotrace lint load log mode nullvalue once print prompt quit restore save scanstats separator shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width",operatorChars:"*+-%<>!=&|/~",identifierQuotes:'`"',specialVar:"@:?$"});const ze=be.define({keywords:"add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime infinity NaN",types:G+"ascii bigint blob counter frozen inet list map static text timeuuid tuple uuid varint",slashComments:true});const Xe=be.define({keywords:M+"abort accept access add all alter and any arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body by case cast char_base check close cluster clusters colauth column comment commit compress connected constant constraint crash create current currval cursor data_base database dba deallocate debugoff debugon declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry exception exception_init exchange exclusive exists external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base of off offline on online only option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw rebuild record ref references refresh rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work",builtin:"appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define echo editfile embedded feedback flagger flush heading headsep instance linesize lno loboffset logsource longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar repfooter repheader serveroutput shiftinout show showmode spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout timing trimout trimspool ttitle underline verify version wrap",types:G+"ascii bfile bfilename bigserial bit blob dec long number nvarchar nvarchar2 serial smallint string text uid varchar2 xml",operatorChars:"*/+-%<>!=~",doubleQuotedStrings:true,charSetCasts:true,plsqlQuotingMechanism:true})}}]);
@@ -1 +1 @@
1
- "use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[881],{40881:(t,e,i)=>{i.r(e);i.d(e,{diagram:()=>it});var n=i(23787);var r=i(34596);var s=i(96001);var a=i(30573);var l=i(27484);var c=i.n(l);var o=i(17967);var h=i(27856);var u=i.n(h);var y=function(){var t=function(t,e,i,n){for(i=i||{},n=t.length;n--;i[t[n]]=e);return i},e=[1,3],i=[1,4],n=[1,5],r=[1,6],s=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],a=[1,18],l=[2,7],c=[1,22],o=[1,23],h=[1,24],u=[1,25],y=[1,26],d=[1,27],p=[1,20],f=[1,28],_=[1,29],E=[62,63],g=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],R=[1,47],m=[1,48],I=[1,49],b=[1,50],k=[1,51],S=[1,52],T=[1,53],N=[53,54],x=[1,64],v=[1,60],A=[1,61],q=[1,62],w=[1,63],$=[1,65],O=[1,69],C=[1,70],L=[1,67],M=[1,68],F=[5,8,9,11,13,31,32,33,34,35,36,44,62,63];var D={trace:function t(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function t(e,i,n,r,s,a,l){var c=a.length-1;switch(s){case 4:this.$=a[c].trim();r.setAccTitle(this.$);break;case 5:case 6:this.$=a[c].trim();r.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:r.addRequirement(a[c-3],a[c-4]);break;case 14:r.setNewReqId(a[c-2]);break;case 15:r.setNewReqText(a[c-2]);break;case 16:r.setNewReqRisk(a[c-2]);break;case 17:r.setNewReqVerifyMethod(a[c-2]);break;case 20:this.$=r.RequirementType.REQUIREMENT;break;case 21:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=r.RiskLevel.LOW_RISK;break;case 27:this.$=r.RiskLevel.MED_RISK;break;case 28:this.$=r.RiskLevel.HIGH_RISK;break;case 29:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=r.VerifyType.VERIFY_TEST;break;case 33:r.addElement(a[c-3]);break;case 34:r.setNewElementType(a[c-2]);break;case 35:r.setNewElementDocRef(a[c-2]);break;case 38:r.addRelationship(a[c-2],a[c],a[c-4]);break;case 39:r.addRelationship(a[c-2],a[c-4],a[c]);break;case 40:this.$=r.Relationships.CONTAINS;break;case 41:this.$=r.Relationships.COPIES;break;case 42:this.$=r.Relationships.DERIVES;break;case 43:this.$=r.Relationships.SATISFIES;break;case 44:this.$=r.Relationships.VERIFIES;break;case 45:this.$=r.Relationships.REFINES;break;case 46:this.$=r.Relationships.TRACES;break}},table:[{3:1,4:2,6:e,9:i,11:n,13:r},{1:[3]},{3:8,4:2,5:[1,7],6:e,9:i,11:n,13:r},{5:[1,9]},{10:[1,10]},{12:[1,11]},t(s,[2,6]),{3:12,4:2,6:e,9:i,11:n,13:r},{1:[2,2]},{4:17,5:a,7:13,8:l,9:i,11:n,13:r,14:14,15:15,16:16,17:19,23:21,31:c,32:o,33:h,34:u,35:y,36:d,44:p,62:f,63:_},t(s,[2,4]),t(s,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:a,7:31,8:l,9:i,11:n,13:r,14:14,15:15,16:16,17:19,23:21,31:c,32:o,33:h,34:u,35:y,36:d,44:p,62:f,63:_},{4:17,5:a,7:32,8:l,9:i,11:n,13:r,14:14,15:15,16:16,17:19,23:21,31:c,32:o,33:h,34:u,35:y,36:d,44:p,62:f,63:_},{4:17,5:a,7:33,8:l,9:i,11:n,13:r,14:14,15:15,16:16,17:19,23:21,31:c,32:o,33:h,34:u,35:y,36:d,44:p,62:f,63:_},{4:17,5:a,7:34,8:l,9:i,11:n,13:r,14:14,15:15,16:16,17:19,23:21,31:c,32:o,33:h,34:u,35:y,36:d,44:p,62:f,63:_},{4:17,5:a,7:35,8:l,9:i,11:n,13:r,14:14,15:15,16:16,17:19,23:21,31:c,32:o,33:h,34:u,35:y,36:d,44:p,62:f,63:_},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},t(E,[2,20]),t(E,[2,21]),t(E,[2,22]),t(E,[2,23]),t(E,[2,24]),t(E,[2,25]),t(g,[2,49]),t(g,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:R,56:m,57:I,58:b,59:k,60:S,61:T},{52:54,55:R,56:m,57:I,58:b,59:k,60:S,61:T},{5:[1,55]},{5:[1,56]},{53:[1,57]},t(N,[2,40]),t(N,[2,41]),t(N,[2,42]),t(N,[2,43]),t(N,[2,44]),t(N,[2,45]),t(N,[2,46]),{54:[1,58]},{5:x,20:59,21:v,24:A,26:q,28:w,30:$},{5:O,30:C,46:66,47:L,49:M},{23:71,62:f,63:_},{23:72,62:f,63:_},t(F,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:x,20:77,21:v,24:A,26:q,28:w,30:$},t(F,[2,19]),t(F,[2,33]),{22:[1,78]},{22:[1,79]},{5:O,30:C,46:80,47:L,49:M},t(F,[2,37]),t(F,[2,38]),t(F,[2,39]),{23:81,62:f,63:_},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},t(F,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},t(F,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:x,20:106,21:v,24:A,26:q,28:w,30:$},{5:x,20:107,21:v,24:A,26:q,28:w,30:$},{5:x,20:108,21:v,24:A,26:q,28:w,30:$},{5:x,20:109,21:v,24:A,26:q,28:w,30:$},{5:O,30:C,46:110,47:L,49:M},{5:O,30:C,46:111,47:L,49:M},t(F,[2,14]),t(F,[2,15]),t(F,[2,16]),t(F,[2,17]),t(F,[2,34]),t(F,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:function t(e,i){if(i.recoverable){this.trace(e)}else{var n=new Error(e);n.hash=i;throw n}},parse:function t(e){var i=this,n=[0],r=[],s=[null],a=[],l=this.table,c="",o=0,h=0,u=2,y=1;var d=a.slice.call(arguments,1);var p=Object.create(this.lexer);var f={yy:{}};for(var _ in this.yy){if(Object.prototype.hasOwnProperty.call(this.yy,_)){f.yy[_]=this.yy[_]}}p.setInput(e,f.yy);f.yy.lexer=p;f.yy.parser=this;if(typeof p.yylloc=="undefined"){p.yylloc={}}var E=p.yylloc;a.push(E);var g=p.options&&p.options.ranges;if(typeof f.yy.parseError==="function"){this.parseError=f.yy.parseError}else{this.parseError=Object.getPrototypeOf(this).parseError}function R(){var t;t=r.pop()||p.lex()||y;if(typeof t!=="number"){if(t instanceof Array){r=t;t=r.pop()}t=i.symbols_[t]||t}return t}var m,I,b,k,S={},T,N,x,v;while(true){I=n[n.length-1];if(this.defaultActions[I]){b=this.defaultActions[I]}else{if(m===null||typeof m=="undefined"){m=R()}b=l[I]&&l[I][m]}if(typeof b==="undefined"||!b.length||!b[0]){var A="";v=[];for(T in l[I]){if(this.terminals_[T]&&T>u){v.push("'"+this.terminals_[T]+"'")}}if(p.showPosition){A="Parse error on line "+(o+1)+":\n"+p.showPosition()+"\nExpecting "+v.join(", ")+", got '"+(this.terminals_[m]||m)+"'"}else{A="Parse error on line "+(o+1)+": Unexpected "+(m==y?"end of input":"'"+(this.terminals_[m]||m)+"'")}this.parseError(A,{text:p.match,token:this.terminals_[m]||m,line:p.yylineno,loc:E,expected:v})}if(b[0]instanceof Array&&b.length>1){throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+m)}switch(b[0]){case 1:n.push(m);s.push(p.yytext);a.push(p.yylloc);n.push(b[1]);m=null;{h=p.yyleng;c=p.yytext;o=p.yylineno;E=p.yylloc}break;case 2:N=this.productions_[b[1]][1];S.$=s[s.length-N];S._$={first_line:a[a.length-(N||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(N||1)].first_column,last_column:a[a.length-1].last_column};if(g){S._$.range=[a[a.length-(N||1)].range[0],a[a.length-1].range[1]]}k=this.performAction.apply(S,[c,h,o,f.yy,b[1],s,a].concat(d));if(typeof k!=="undefined"){return k}if(N){n=n.slice(0,-1*N*2);s=s.slice(0,-1*N);a=a.slice(0,-1*N)}n.push(this.productions_[b[1]][0]);s.push(S.$);a.push(S._$);x=l[n[n.length-2]][n[n.length-1]];n.push(x);break;case 3:return true}}return true}};var P=function(){var t={EOF:1,parseError:function t(e,i){if(this.yy.parser){this.yy.parser.parseError(e,i)}else{throw new Error(e)}},setInput:function(t,e){this.yy=e||this.yy||{};this._input=t;this._more=this._backtrack=this.done=false;this.yylineno=this.yyleng=0;this.yytext=this.matched=this.match="";this.conditionStack=["INITIAL"];this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0};if(this.options.ranges){this.yylloc.range=[0,0]}this.offset=0;return this},input:function(){var t=this._input[0];this.yytext+=t;this.yyleng++;this.offset++;this.match+=t;this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);if(e){this.yylineno++;this.yylloc.last_line++}else{this.yylloc.last_column++}if(this.options.ranges){this.yylloc.range[1]++}this._input=this._input.slice(1);return t},unput:function(t){var e=t.length;var i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input;this.yytext=this.yytext.substr(0,this.yytext.length-e);this.offset-=e;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1);this.matched=this.matched.substr(0,this.matched.length-1);if(i.length-1){this.yylineno-=i.length-1}var r=this.yylloc.range;this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===n.length?this.yylloc.first_column:0)+n[n.length-i.length].length-i[0].length:this.yylloc.first_column-e};if(this.options.ranges){this.yylloc.range=[r[0],r[0]+this.yyleng-e]}this.yyleng=this.yytext.length;return this},more:function(){this._more=true;return this},reject:function(){if(this.options.backtrack_lexer){this._backtrack=true}else{return this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}return this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;if(t.length<20){t+=this._input.substr(0,20-t.length)}return(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput();var e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var i,n,r;if(this.options.backtrack_lexer){r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done};if(this.options.ranges){r.yylloc.range=this.yylloc.range.slice(0)}}n=t[0].match(/(?:\r\n?|\n).*/g);if(n){this.yylineno+=n.length}this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length};this.yytext+=t[0];this.match+=t[0];this.matches=t;this.yyleng=this.yytext.length;if(this.options.ranges){this.yylloc.range=[this.offset,this.offset+=this.yyleng]}this._more=false;this._backtrack=false;this._input=this._input.slice(t[0].length);this.matched+=t[0];i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]);if(this.done&&this._input){this.done=false}if(i){return i}else if(this._backtrack){for(var s in r){this[s]=r[s]}return false}return false},next:function(){if(this.done){return this.EOF}if(!this._input){this.done=true}var t,e,i,n;if(!this._more){this.yytext="";this.match=""}var r=this._currentRules();for(var s=0;s<r.length;s++){i=this._input.match(this.rules[r[s]]);if(i&&(!e||i[0].length>e[0].length)){e=i;n=s;if(this.options.backtrack_lexer){t=this.test_match(i,r[s]);if(t!==false){return t}else if(this._backtrack){e=false;continue}else{return false}}else if(!this.options.flex){break}}}if(e){t=this.test_match(e,r[n]);if(t!==false){return t}return false}if(this._input===""){return this.EOF}else{return this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}},lex:function t(){var e=this.next();if(e){return e}else{return this.lex()}},begin:function t(e){this.conditionStack.push(e)},popState:function t(){var e=this.conditionStack.length-1;if(e>0){return this.conditionStack.pop()}else{return this.conditionStack[0]}},_currentRules:function t(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules}else{return this.conditions["INITIAL"].rules}},topState:function t(e){e=this.conditionStack.length-1-Math.abs(e||0);if(e>=0){return this.conditionStack[e]}else{return"INITIAL"}},pushState:function t(e){this.begin(e)},stateStackSize:function t(){return this.conditionStack.length},options:{"case-insensitive":true},performAction:function t(e,i,n,r){switch(n){case 0:return"title";case 1:this.begin("acc_title");return 9;case 2:this.popState();return"acc_title_value";case 3:this.begin("acc_descr");return 11;case 4:this.popState();return"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:return 8;case 13:return 6;case 14:return 19;case 15:return 30;case 16:return 22;case 17:return 21;case 18:return 24;case 19:return 26;case 20:return 28;case 21:return 31;case 22:return 32;case 23:return 33;case 24:return 34;case 25:return 35;case 26:return 36;case 27:return 37;case 28:return 38;case 29:return 39;case 30:return 40;case 31:return 41;case 32:return 42;case 33:return 43;case 34:return 44;case 35:return 55;case 36:return 56;case 37:return 57;case 38:return 58;case 39:return 59;case 40:return 60;case 41:return 61;case 42:return 47;case 43:return 49;case 44:return 51;case 45:return 54;case 46:return 53;case 47:this.begin("string");break;case 48:this.popState();break;case 49:return"qString";case 50:i.yytext=i.yytext.trim();return 62}},rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:false},acc_descr:{rules:[4],inclusive:false},acc_title:{rules:[2],inclusive:false},unqString:{rules:[],inclusive:false},token:{rules:[],inclusive:false},string:{rules:[48,49],inclusive:false},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,50],inclusive:true}}};return t}();D.lexer=P;function V(){this.yy={}}V.prototype=D;D.Parser=V;return new V}();y.parser=y;const d=y;let p=[];let f={};let _={};let E={};let g={};const R={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"};const m={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"};const I={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"};const b={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"};const k=(t,e)=>{if(_[t]===void 0){_[t]={name:t,type:e,id:f.id,text:f.text,risk:f.risk,verifyMethod:f.verifyMethod}}f={};return _[t]};const S=()=>_;const T=t=>{if(f!==void 0){f.id=t}};const N=t=>{if(f!==void 0){f.text=t}};const x=t=>{if(f!==void 0){f.risk=t}};const v=t=>{if(f!==void 0){f.verifyMethod=t}};const A=t=>{if(g[t]===void 0){g[t]={name:t,type:E.type,docRef:E.docRef};n.l.info("Added new requirement: ",t)}E={};return g[t]};const q=()=>g;const w=t=>{if(E!==void 0){E.type=t}};const $=t=>{if(E!==void 0){E.docRef=t}};const O=(t,e,i)=>{p.push({type:t,src:e,dst:i})};const C=()=>p;const L=()=>{p=[];f={};_={};E={};g={};(0,n.t)()};const M={RequirementType:R,RiskLevel:m,VerifyType:I,Relationships:b,getConfig:()=>(0,n.c)().req,addRequirement:k,getRequirements:S,setNewReqId:T,setNewReqText:N,setNewReqRisk:x,setNewReqVerifyMethod:v,setAccTitle:n.s,getAccTitle:n.g,setAccDescription:n.b,getAccDescription:n.a,addElement:A,getElements:q,setNewElementType:w,setNewElementDocRef:$,addRelationship:O,getRelationships:C,clear:L};const F=t=>`\n\n marker {\n fill: ${t.relationColor};\n stroke: ${t.relationColor};\n }\n\n marker.cross {\n stroke: ${t.lineColor};\n }\n\n svg {\n font-family: ${t.fontFamily};\n font-size: ${t.fontSize};\n }\n\n .reqBox {\n fill: ${t.requirementBackground};\n fill-opacity: 1.0;\n stroke: ${t.requirementBorderColor};\n stroke-width: ${t.requirementBorderSize};\n }\n \n .reqTitle, .reqLabel{\n fill: ${t.requirementTextColor};\n }\n .reqLabelBox {\n fill: ${t.relationLabelBackground};\n fill-opacity: 1.0;\n }\n\n .req-title-line {\n stroke: ${t.requirementBorderColor};\n stroke-width: ${t.requirementBorderSize};\n }\n .relationshipLine {\n stroke: ${t.relationColor};\n stroke-width: 1;\n }\n .relationshipLabel {\n fill: ${t.relationLabelColor};\n }\n\n`;const D=F;const P={CONTAINS:"contains",ARROW:"arrow"};const V=(t,e)=>{let i=t.append("defs").append("marker").attr("id",P.CONTAINS+"_line_ending").attr("refX",0).attr("refY",e.line_height/2).attr("markerWidth",e.line_height).attr("markerHeight",e.line_height).attr("orient","auto").append("g");i.append("circle").attr("cx",e.line_height/2).attr("cy",e.line_height/2).attr("r",e.line_height/2).attr("fill","none");i.append("line").attr("x1",0).attr("x2",e.line_height).attr("y1",e.line_height/2).attr("y2",e.line_height/2).attr("stroke-width",1);i.append("line").attr("y1",0).attr("y2",e.line_height).attr("x1",e.line_height/2).attr("x2",e.line_height/2).attr("stroke-width",1);t.append("defs").append("marker").attr("id",P.ARROW+"_line_ending").attr("refX",e.line_height).attr("refY",.5*e.line_height).attr("markerWidth",e.line_height).attr("markerHeight",e.line_height).attr("orient","auto").append("path").attr("d",`M0,0\n L${e.line_height},${e.line_height/2}\n M${e.line_height},${e.line_height/2}\n L0,${e.line_height}`).attr("stroke-width",1)};const Y={ReqMarkers:P,insertLineEndings:V};let U={};let B=0;const Q=(t,e)=>t.insert("rect","#"+e).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",U.rect_min_width+"px").attr("height",U.rect_min_height+"px");const H=(t,e,i)=>{let n=U.rect_min_width/2;let r=t.append("text").attr("class","req reqLabel reqTitle").attr("id",e).attr("x",n).attr("y",U.rect_padding).attr("dominant-baseline","hanging");let s=0;i.forEach((t=>{if(s==0){r.append("tspan").attr("text-anchor","middle").attr("x",U.rect_min_width/2).attr("dy",0).text(t)}else{r.append("tspan").attr("text-anchor","middle").attr("x",U.rect_min_width/2).attr("dy",U.line_height*.75).text(t)}s++}));let a=1.5*U.rect_padding;let l=s*U.line_height*.75;let c=a+l;t.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",U.rect_min_width).attr("y1",c).attr("y2",c);return{titleNode:r,y:c}};const W=(t,e,i,n)=>{let r=t.append("text").attr("class","req reqLabel").attr("id",e).attr("x",U.rect_padding).attr("y",n).attr("dominant-baseline","hanging");let s=0;const a=30;let l=[];i.forEach((t=>{let e=t.length;while(e>a&&s<3){let i=t.substring(0,a);t=t.substring(a,t.length);e=t.length;l[l.length]=i;s++}if(s==3){let t=l[l.length-1];l[l.length-1]=t.substring(0,t.length-4)+"..."}else{l[l.length]=t}s=0}));l.forEach((t=>{r.append("tspan").attr("x",U.rect_padding).attr("dy",U.line_height).text(t)}));return r};const K=(t,e,i,n)=>{const r=e.node().getTotalLength();const s=e.node().getPointAtLength(r*.5);const a="rel"+B;B++;const l=t.append("text").attr("class","req relationshipLabel").attr("id",a).attr("x",s.x).attr("y",s.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(n);const c=l.node().getBBox();t.insert("rect","#"+a).attr("class","req reqLabelBox").attr("x",s.x-c.width/2).attr("y",s.y-c.height/2).attr("width",c.width).attr("height",c.height).attr("fill","white").attr("fill-opacity","85%")};const j=function(t,e,i,s,a){const l=i.edge(Z(e.src),Z(e.dst));const c=(0,r.jvg)().x((function(t){return t.x})).y((function(t){return t.y}));const o=t.insert("path","#"+s).attr("class","er relationshipLine").attr("d",c(l.points)).attr("fill","none");if(e.type==a.db.Relationships.CONTAINS){o.attr("marker-start","url("+n.e.getUrl(U.arrowMarkerAbsolute)+"#"+e.type+"_line_ending)")}else{o.attr("stroke-dasharray","10,7");o.attr("marker-end","url("+n.e.getUrl(U.arrowMarkerAbsolute)+"#"+Y.ReqMarkers.ARROW+"_line_ending)")}K(t,o,U,`<<${e.type}>>`);return};const G=(t,e,i)=>{Object.keys(t).forEach((r=>{let s=t[r];r=Z(r);n.l.info("Added new requirement: ",r);const a=i.append("g").attr("id",r);const l="req-"+r;const c=Q(a,l);let o=H(a,r+"_title",[`<<${s.type}>>`,`${s.name}`]);W(a,r+"_body",[`Id: ${s.id}`,`Text: ${s.text}`,`Risk: ${s.risk}`,`Verification: ${s.verifyMethod}`],o.y);const h=c.node().getBBox();e.setNode(r,{width:h.width,height:h.height,shape:"rect",id:r})}))};const z=(t,e,i)=>{Object.keys(t).forEach((n=>{let r=t[n];const s=Z(n);const a=i.append("g").attr("id",s);const l="element-"+s;const c=Q(a,l);let o=H(a,l+"_title",[`<<Element>>`,`${n}`]);W(a,l+"_body",[`Type: ${r.type||"Not Specified"}`,`Doc Ref: ${r.docRef||"None"}`],o.y);const h=c.node().getBBox();e.setNode(s,{width:h.width,height:h.height,shape:"rect",id:s})}))};const X=(t,e)=>{t.forEach((function(t){let i=Z(t.src);let n=Z(t.dst);e.setEdge(i,n,{relationship:t})}));return t};const J=function(t,e){e.nodes().forEach((function(i){if(i!==void 0&&e.node(i)!==void 0){t.select("#"+i);t.select("#"+i).attr("transform","translate("+(e.node(i).x-e.node(i).width/2)+","+(e.node(i).y-e.node(i).height/2)+" )")}}));return};const Z=t=>t.replace(/\s/g,"").replace(/\./g,"_");const tt=(t,e,i,l)=>{U=(0,n.c)().requirement;const c=U.securityLevel;let o;if(c==="sandbox"){o=(0,r.Ys)("#i"+e)}const h=c==="sandbox"?(0,r.Ys)(o.nodes()[0].contentDocument.body):(0,r.Ys)("body");const u=h.select(`[id='${e}']`);Y.insertLineEndings(u,U);const y=new a.k({multigraph:false,compound:false,directed:true}).setGraph({rankdir:U.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel((function(){return{}}));let d=l.db.getRequirements();let p=l.db.getElements();let f=l.db.getRelationships();G(d,y,u);z(p,y,u);X(f,y);(0,s.bK)(y);J(u,y);f.forEach((function(t){j(u,t,y,e,l)}));const _=U.rect_padding;const E=u.node().getBBox();const g=E.width+_*2;const R=E.height+_*2;(0,n.i)(u,R,g,U.useMaxWidth);u.attr("viewBox",`${E.x-_} ${E.y-_} ${g} ${R}`)};const et={draw:tt};const it={parser:d,db:M,renderer:et,styles:D}}}]);
1
+ "use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[881],{40881:(t,e,i)=>{i.r(e);i.d(e,{diagram:()=>it});var n=i(23787);var r=i(34596);var s=i(96001);var a=i(67058);var l=i(27484);var c=i.n(l);var o=i(17967);var h=i(27856);var u=i.n(h);var y=function(){var t=function(t,e,i,n){for(i=i||{},n=t.length;n--;i[t[n]]=e);return i},e=[1,3],i=[1,4],n=[1,5],r=[1,6],s=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],a=[1,18],l=[2,7],c=[1,22],o=[1,23],h=[1,24],u=[1,25],y=[1,26],d=[1,27],p=[1,20],f=[1,28],_=[1,29],E=[62,63],g=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],R=[1,47],m=[1,48],I=[1,49],b=[1,50],k=[1,51],S=[1,52],T=[1,53],N=[53,54],x=[1,64],v=[1,60],A=[1,61],q=[1,62],w=[1,63],$=[1,65],O=[1,69],C=[1,70],L=[1,67],M=[1,68],F=[5,8,9,11,13,31,32,33,34,35,36,44,62,63];var D={trace:function t(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function t(e,i,n,r,s,a,l){var c=a.length-1;switch(s){case 4:this.$=a[c].trim();r.setAccTitle(this.$);break;case 5:case 6:this.$=a[c].trim();r.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:r.addRequirement(a[c-3],a[c-4]);break;case 14:r.setNewReqId(a[c-2]);break;case 15:r.setNewReqText(a[c-2]);break;case 16:r.setNewReqRisk(a[c-2]);break;case 17:r.setNewReqVerifyMethod(a[c-2]);break;case 20:this.$=r.RequirementType.REQUIREMENT;break;case 21:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=r.RiskLevel.LOW_RISK;break;case 27:this.$=r.RiskLevel.MED_RISK;break;case 28:this.$=r.RiskLevel.HIGH_RISK;break;case 29:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=r.VerifyType.VERIFY_TEST;break;case 33:r.addElement(a[c-3]);break;case 34:r.setNewElementType(a[c-2]);break;case 35:r.setNewElementDocRef(a[c-2]);break;case 38:r.addRelationship(a[c-2],a[c],a[c-4]);break;case 39:r.addRelationship(a[c-2],a[c-4],a[c]);break;case 40:this.$=r.Relationships.CONTAINS;break;case 41:this.$=r.Relationships.COPIES;break;case 42:this.$=r.Relationships.DERIVES;break;case 43:this.$=r.Relationships.SATISFIES;break;case 44:this.$=r.Relationships.VERIFIES;break;case 45:this.$=r.Relationships.REFINES;break;case 46:this.$=r.Relationships.TRACES;break}},table:[{3:1,4:2,6:e,9:i,11:n,13:r},{1:[3]},{3:8,4:2,5:[1,7],6:e,9:i,11:n,13:r},{5:[1,9]},{10:[1,10]},{12:[1,11]},t(s,[2,6]),{3:12,4:2,6:e,9:i,11:n,13:r},{1:[2,2]},{4:17,5:a,7:13,8:l,9:i,11:n,13:r,14:14,15:15,16:16,17:19,23:21,31:c,32:o,33:h,34:u,35:y,36:d,44:p,62:f,63:_},t(s,[2,4]),t(s,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:a,7:31,8:l,9:i,11:n,13:r,14:14,15:15,16:16,17:19,23:21,31:c,32:o,33:h,34:u,35:y,36:d,44:p,62:f,63:_},{4:17,5:a,7:32,8:l,9:i,11:n,13:r,14:14,15:15,16:16,17:19,23:21,31:c,32:o,33:h,34:u,35:y,36:d,44:p,62:f,63:_},{4:17,5:a,7:33,8:l,9:i,11:n,13:r,14:14,15:15,16:16,17:19,23:21,31:c,32:o,33:h,34:u,35:y,36:d,44:p,62:f,63:_},{4:17,5:a,7:34,8:l,9:i,11:n,13:r,14:14,15:15,16:16,17:19,23:21,31:c,32:o,33:h,34:u,35:y,36:d,44:p,62:f,63:_},{4:17,5:a,7:35,8:l,9:i,11:n,13:r,14:14,15:15,16:16,17:19,23:21,31:c,32:o,33:h,34:u,35:y,36:d,44:p,62:f,63:_},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},t(E,[2,20]),t(E,[2,21]),t(E,[2,22]),t(E,[2,23]),t(E,[2,24]),t(E,[2,25]),t(g,[2,49]),t(g,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:R,56:m,57:I,58:b,59:k,60:S,61:T},{52:54,55:R,56:m,57:I,58:b,59:k,60:S,61:T},{5:[1,55]},{5:[1,56]},{53:[1,57]},t(N,[2,40]),t(N,[2,41]),t(N,[2,42]),t(N,[2,43]),t(N,[2,44]),t(N,[2,45]),t(N,[2,46]),{54:[1,58]},{5:x,20:59,21:v,24:A,26:q,28:w,30:$},{5:O,30:C,46:66,47:L,49:M},{23:71,62:f,63:_},{23:72,62:f,63:_},t(F,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:x,20:77,21:v,24:A,26:q,28:w,30:$},t(F,[2,19]),t(F,[2,33]),{22:[1,78]},{22:[1,79]},{5:O,30:C,46:80,47:L,49:M},t(F,[2,37]),t(F,[2,38]),t(F,[2,39]),{23:81,62:f,63:_},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},t(F,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},t(F,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:x,20:106,21:v,24:A,26:q,28:w,30:$},{5:x,20:107,21:v,24:A,26:q,28:w,30:$},{5:x,20:108,21:v,24:A,26:q,28:w,30:$},{5:x,20:109,21:v,24:A,26:q,28:w,30:$},{5:O,30:C,46:110,47:L,49:M},{5:O,30:C,46:111,47:L,49:M},t(F,[2,14]),t(F,[2,15]),t(F,[2,16]),t(F,[2,17]),t(F,[2,34]),t(F,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:function t(e,i){if(i.recoverable){this.trace(e)}else{var n=new Error(e);n.hash=i;throw n}},parse:function t(e){var i=this,n=[0],r=[],s=[null],a=[],l=this.table,c="",o=0,h=0,u=2,y=1;var d=a.slice.call(arguments,1);var p=Object.create(this.lexer);var f={yy:{}};for(var _ in this.yy){if(Object.prototype.hasOwnProperty.call(this.yy,_)){f.yy[_]=this.yy[_]}}p.setInput(e,f.yy);f.yy.lexer=p;f.yy.parser=this;if(typeof p.yylloc=="undefined"){p.yylloc={}}var E=p.yylloc;a.push(E);var g=p.options&&p.options.ranges;if(typeof f.yy.parseError==="function"){this.parseError=f.yy.parseError}else{this.parseError=Object.getPrototypeOf(this).parseError}function R(){var t;t=r.pop()||p.lex()||y;if(typeof t!=="number"){if(t instanceof Array){r=t;t=r.pop()}t=i.symbols_[t]||t}return t}var m,I,b,k,S={},T,N,x,v;while(true){I=n[n.length-1];if(this.defaultActions[I]){b=this.defaultActions[I]}else{if(m===null||typeof m=="undefined"){m=R()}b=l[I]&&l[I][m]}if(typeof b==="undefined"||!b.length||!b[0]){var A="";v=[];for(T in l[I]){if(this.terminals_[T]&&T>u){v.push("'"+this.terminals_[T]+"'")}}if(p.showPosition){A="Parse error on line "+(o+1)+":\n"+p.showPosition()+"\nExpecting "+v.join(", ")+", got '"+(this.terminals_[m]||m)+"'"}else{A="Parse error on line "+(o+1)+": Unexpected "+(m==y?"end of input":"'"+(this.terminals_[m]||m)+"'")}this.parseError(A,{text:p.match,token:this.terminals_[m]||m,line:p.yylineno,loc:E,expected:v})}if(b[0]instanceof Array&&b.length>1){throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+m)}switch(b[0]){case 1:n.push(m);s.push(p.yytext);a.push(p.yylloc);n.push(b[1]);m=null;{h=p.yyleng;c=p.yytext;o=p.yylineno;E=p.yylloc}break;case 2:N=this.productions_[b[1]][1];S.$=s[s.length-N];S._$={first_line:a[a.length-(N||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(N||1)].first_column,last_column:a[a.length-1].last_column};if(g){S._$.range=[a[a.length-(N||1)].range[0],a[a.length-1].range[1]]}k=this.performAction.apply(S,[c,h,o,f.yy,b[1],s,a].concat(d));if(typeof k!=="undefined"){return k}if(N){n=n.slice(0,-1*N*2);s=s.slice(0,-1*N);a=a.slice(0,-1*N)}n.push(this.productions_[b[1]][0]);s.push(S.$);a.push(S._$);x=l[n[n.length-2]][n[n.length-1]];n.push(x);break;case 3:return true}}return true}};var P=function(){var t={EOF:1,parseError:function t(e,i){if(this.yy.parser){this.yy.parser.parseError(e,i)}else{throw new Error(e)}},setInput:function(t,e){this.yy=e||this.yy||{};this._input=t;this._more=this._backtrack=this.done=false;this.yylineno=this.yyleng=0;this.yytext=this.matched=this.match="";this.conditionStack=["INITIAL"];this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0};if(this.options.ranges){this.yylloc.range=[0,0]}this.offset=0;return this},input:function(){var t=this._input[0];this.yytext+=t;this.yyleng++;this.offset++;this.match+=t;this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);if(e){this.yylineno++;this.yylloc.last_line++}else{this.yylloc.last_column++}if(this.options.ranges){this.yylloc.range[1]++}this._input=this._input.slice(1);return t},unput:function(t){var e=t.length;var i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input;this.yytext=this.yytext.substr(0,this.yytext.length-e);this.offset-=e;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1);this.matched=this.matched.substr(0,this.matched.length-1);if(i.length-1){this.yylineno-=i.length-1}var r=this.yylloc.range;this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===n.length?this.yylloc.first_column:0)+n[n.length-i.length].length-i[0].length:this.yylloc.first_column-e};if(this.options.ranges){this.yylloc.range=[r[0],r[0]+this.yyleng-e]}this.yyleng=this.yytext.length;return this},more:function(){this._more=true;return this},reject:function(){if(this.options.backtrack_lexer){this._backtrack=true}else{return this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}return this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;if(t.length<20){t+=this._input.substr(0,20-t.length)}return(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput();var e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var i,n,r;if(this.options.backtrack_lexer){r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done};if(this.options.ranges){r.yylloc.range=this.yylloc.range.slice(0)}}n=t[0].match(/(?:\r\n?|\n).*/g);if(n){this.yylineno+=n.length}this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length};this.yytext+=t[0];this.match+=t[0];this.matches=t;this.yyleng=this.yytext.length;if(this.options.ranges){this.yylloc.range=[this.offset,this.offset+=this.yyleng]}this._more=false;this._backtrack=false;this._input=this._input.slice(t[0].length);this.matched+=t[0];i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]);if(this.done&&this._input){this.done=false}if(i){return i}else if(this._backtrack){for(var s in r){this[s]=r[s]}return false}return false},next:function(){if(this.done){return this.EOF}if(!this._input){this.done=true}var t,e,i,n;if(!this._more){this.yytext="";this.match=""}var r=this._currentRules();for(var s=0;s<r.length;s++){i=this._input.match(this.rules[r[s]]);if(i&&(!e||i[0].length>e[0].length)){e=i;n=s;if(this.options.backtrack_lexer){t=this.test_match(i,r[s]);if(t!==false){return t}else if(this._backtrack){e=false;continue}else{return false}}else if(!this.options.flex){break}}}if(e){t=this.test_match(e,r[n]);if(t!==false){return t}return false}if(this._input===""){return this.EOF}else{return this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}},lex:function t(){var e=this.next();if(e){return e}else{return this.lex()}},begin:function t(e){this.conditionStack.push(e)},popState:function t(){var e=this.conditionStack.length-1;if(e>0){return this.conditionStack.pop()}else{return this.conditionStack[0]}},_currentRules:function t(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules}else{return this.conditions["INITIAL"].rules}},topState:function t(e){e=this.conditionStack.length-1-Math.abs(e||0);if(e>=0){return this.conditionStack[e]}else{return"INITIAL"}},pushState:function t(e){this.begin(e)},stateStackSize:function t(){return this.conditionStack.length},options:{"case-insensitive":true},performAction:function t(e,i,n,r){switch(n){case 0:return"title";case 1:this.begin("acc_title");return 9;case 2:this.popState();return"acc_title_value";case 3:this.begin("acc_descr");return 11;case 4:this.popState();return"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:return 8;case 13:return 6;case 14:return 19;case 15:return 30;case 16:return 22;case 17:return 21;case 18:return 24;case 19:return 26;case 20:return 28;case 21:return 31;case 22:return 32;case 23:return 33;case 24:return 34;case 25:return 35;case 26:return 36;case 27:return 37;case 28:return 38;case 29:return 39;case 30:return 40;case 31:return 41;case 32:return 42;case 33:return 43;case 34:return 44;case 35:return 55;case 36:return 56;case 37:return 57;case 38:return 58;case 39:return 59;case 40:return 60;case 41:return 61;case 42:return 47;case 43:return 49;case 44:return 51;case 45:return 54;case 46:return 53;case 47:this.begin("string");break;case 48:this.popState();break;case 49:return"qString";case 50:i.yytext=i.yytext.trim();return 62}},rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:false},acc_descr:{rules:[4],inclusive:false},acc_title:{rules:[2],inclusive:false},unqString:{rules:[],inclusive:false},token:{rules:[],inclusive:false},string:{rules:[48,49],inclusive:false},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,50],inclusive:true}}};return t}();D.lexer=P;function V(){this.yy={}}V.prototype=D;D.Parser=V;return new V}();y.parser=y;const d=y;let p=[];let f={};let _={};let E={};let g={};const R={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"};const m={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"};const I={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"};const b={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"};const k=(t,e)=>{if(_[t]===void 0){_[t]={name:t,type:e,id:f.id,text:f.text,risk:f.risk,verifyMethod:f.verifyMethod}}f={};return _[t]};const S=()=>_;const T=t=>{if(f!==void 0){f.id=t}};const N=t=>{if(f!==void 0){f.text=t}};const x=t=>{if(f!==void 0){f.risk=t}};const v=t=>{if(f!==void 0){f.verifyMethod=t}};const A=t=>{if(g[t]===void 0){g[t]={name:t,type:E.type,docRef:E.docRef};n.l.info("Added new requirement: ",t)}E={};return g[t]};const q=()=>g;const w=t=>{if(E!==void 0){E.type=t}};const $=t=>{if(E!==void 0){E.docRef=t}};const O=(t,e,i)=>{p.push({type:t,src:e,dst:i})};const C=()=>p;const L=()=>{p=[];f={};_={};E={};g={};(0,n.t)()};const M={RequirementType:R,RiskLevel:m,VerifyType:I,Relationships:b,getConfig:()=>(0,n.c)().req,addRequirement:k,getRequirements:S,setNewReqId:T,setNewReqText:N,setNewReqRisk:x,setNewReqVerifyMethod:v,setAccTitle:n.s,getAccTitle:n.g,setAccDescription:n.b,getAccDescription:n.a,addElement:A,getElements:q,setNewElementType:w,setNewElementDocRef:$,addRelationship:O,getRelationships:C,clear:L};const F=t=>`\n\n marker {\n fill: ${t.relationColor};\n stroke: ${t.relationColor};\n }\n\n marker.cross {\n stroke: ${t.lineColor};\n }\n\n svg {\n font-family: ${t.fontFamily};\n font-size: ${t.fontSize};\n }\n\n .reqBox {\n fill: ${t.requirementBackground};\n fill-opacity: 1.0;\n stroke: ${t.requirementBorderColor};\n stroke-width: ${t.requirementBorderSize};\n }\n \n .reqTitle, .reqLabel{\n fill: ${t.requirementTextColor};\n }\n .reqLabelBox {\n fill: ${t.relationLabelBackground};\n fill-opacity: 1.0;\n }\n\n .req-title-line {\n stroke: ${t.requirementBorderColor};\n stroke-width: ${t.requirementBorderSize};\n }\n .relationshipLine {\n stroke: ${t.relationColor};\n stroke-width: 1;\n }\n .relationshipLabel {\n fill: ${t.relationLabelColor};\n }\n\n`;const D=F;const P={CONTAINS:"contains",ARROW:"arrow"};const V=(t,e)=>{let i=t.append("defs").append("marker").attr("id",P.CONTAINS+"_line_ending").attr("refX",0).attr("refY",e.line_height/2).attr("markerWidth",e.line_height).attr("markerHeight",e.line_height).attr("orient","auto").append("g");i.append("circle").attr("cx",e.line_height/2).attr("cy",e.line_height/2).attr("r",e.line_height/2).attr("fill","none");i.append("line").attr("x1",0).attr("x2",e.line_height).attr("y1",e.line_height/2).attr("y2",e.line_height/2).attr("stroke-width",1);i.append("line").attr("y1",0).attr("y2",e.line_height).attr("x1",e.line_height/2).attr("x2",e.line_height/2).attr("stroke-width",1);t.append("defs").append("marker").attr("id",P.ARROW+"_line_ending").attr("refX",e.line_height).attr("refY",.5*e.line_height).attr("markerWidth",e.line_height).attr("markerHeight",e.line_height).attr("orient","auto").append("path").attr("d",`M0,0\n L${e.line_height},${e.line_height/2}\n M${e.line_height},${e.line_height/2}\n L0,${e.line_height}`).attr("stroke-width",1)};const Y={ReqMarkers:P,insertLineEndings:V};let U={};let B=0;const Q=(t,e)=>t.insert("rect","#"+e).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",U.rect_min_width+"px").attr("height",U.rect_min_height+"px");const H=(t,e,i)=>{let n=U.rect_min_width/2;let r=t.append("text").attr("class","req reqLabel reqTitle").attr("id",e).attr("x",n).attr("y",U.rect_padding).attr("dominant-baseline","hanging");let s=0;i.forEach((t=>{if(s==0){r.append("tspan").attr("text-anchor","middle").attr("x",U.rect_min_width/2).attr("dy",0).text(t)}else{r.append("tspan").attr("text-anchor","middle").attr("x",U.rect_min_width/2).attr("dy",U.line_height*.75).text(t)}s++}));let a=1.5*U.rect_padding;let l=s*U.line_height*.75;let c=a+l;t.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",U.rect_min_width).attr("y1",c).attr("y2",c);return{titleNode:r,y:c}};const W=(t,e,i,n)=>{let r=t.append("text").attr("class","req reqLabel").attr("id",e).attr("x",U.rect_padding).attr("y",n).attr("dominant-baseline","hanging");let s=0;const a=30;let l=[];i.forEach((t=>{let e=t.length;while(e>a&&s<3){let i=t.substring(0,a);t=t.substring(a,t.length);e=t.length;l[l.length]=i;s++}if(s==3){let t=l[l.length-1];l[l.length-1]=t.substring(0,t.length-4)+"..."}else{l[l.length]=t}s=0}));l.forEach((t=>{r.append("tspan").attr("x",U.rect_padding).attr("dy",U.line_height).text(t)}));return r};const K=(t,e,i,n)=>{const r=e.node().getTotalLength();const s=e.node().getPointAtLength(r*.5);const a="rel"+B;B++;const l=t.append("text").attr("class","req relationshipLabel").attr("id",a).attr("x",s.x).attr("y",s.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(n);const c=l.node().getBBox();t.insert("rect","#"+a).attr("class","req reqLabelBox").attr("x",s.x-c.width/2).attr("y",s.y-c.height/2).attr("width",c.width).attr("height",c.height).attr("fill","white").attr("fill-opacity","85%")};const j=function(t,e,i,s,a){const l=i.edge(Z(e.src),Z(e.dst));const c=(0,r.jvg)().x((function(t){return t.x})).y((function(t){return t.y}));const o=t.insert("path","#"+s).attr("class","er relationshipLine").attr("d",c(l.points)).attr("fill","none");if(e.type==a.db.Relationships.CONTAINS){o.attr("marker-start","url("+n.e.getUrl(U.arrowMarkerAbsolute)+"#"+e.type+"_line_ending)")}else{o.attr("stroke-dasharray","10,7");o.attr("marker-end","url("+n.e.getUrl(U.arrowMarkerAbsolute)+"#"+Y.ReqMarkers.ARROW+"_line_ending)")}K(t,o,U,`<<${e.type}>>`);return};const G=(t,e,i)=>{Object.keys(t).forEach((r=>{let s=t[r];r=Z(r);n.l.info("Added new requirement: ",r);const a=i.append("g").attr("id",r);const l="req-"+r;const c=Q(a,l);let o=H(a,r+"_title",[`<<${s.type}>>`,`${s.name}`]);W(a,r+"_body",[`Id: ${s.id}`,`Text: ${s.text}`,`Risk: ${s.risk}`,`Verification: ${s.verifyMethod}`],o.y);const h=c.node().getBBox();e.setNode(r,{width:h.width,height:h.height,shape:"rect",id:r})}))};const z=(t,e,i)=>{Object.keys(t).forEach((n=>{let r=t[n];const s=Z(n);const a=i.append("g").attr("id",s);const l="element-"+s;const c=Q(a,l);let o=H(a,l+"_title",[`<<Element>>`,`${n}`]);W(a,l+"_body",[`Type: ${r.type||"Not Specified"}`,`Doc Ref: ${r.docRef||"None"}`],o.y);const h=c.node().getBBox();e.setNode(s,{width:h.width,height:h.height,shape:"rect",id:s})}))};const X=(t,e)=>{t.forEach((function(t){let i=Z(t.src);let n=Z(t.dst);e.setEdge(i,n,{relationship:t})}));return t};const J=function(t,e){e.nodes().forEach((function(i){if(i!==void 0&&e.node(i)!==void 0){t.select("#"+i);t.select("#"+i).attr("transform","translate("+(e.node(i).x-e.node(i).width/2)+","+(e.node(i).y-e.node(i).height/2)+" )")}}));return};const Z=t=>t.replace(/\s/g,"").replace(/\./g,"_");const tt=(t,e,i,l)=>{U=(0,n.c)().requirement;const c=U.securityLevel;let o;if(c==="sandbox"){o=(0,r.Ys)("#i"+e)}const h=c==="sandbox"?(0,r.Ys)(o.nodes()[0].contentDocument.body):(0,r.Ys)("body");const u=h.select(`[id='${e}']`);Y.insertLineEndings(u,U);const y=new a.k({multigraph:false,compound:false,directed:true}).setGraph({rankdir:U.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel((function(){return{}}));let d=l.db.getRequirements();let p=l.db.getElements();let f=l.db.getRelationships();G(d,y,u);z(p,y,u);X(f,y);(0,s.bK)(y);J(u,y);f.forEach((function(t){j(u,t,y,e,l)}));const _=U.rect_padding;const E=u.node().getBBox();const g=E.width+_*2;const R=E.height+_*2;(0,n.i)(u,R,g,U.useMaxWidth);u.attr("viewBox",`${E.x-_} ${E.y-_} ${g} ${R}`)};const et={draw:tt};const it={parser:d,db:M,renderer:et,styles:D}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9],{20009:(e,t,n)=>{n.r(t);n.d(t,{commonmarkLanguage:()=>Ge,deleteMarkupBackward:()=>ft,insertNewlineContinueMarkup:()=>it,markdown:()=>dt,markdownKeymap:()=>ut,markdownLanguage:()=>We});var r=n(37496);var s=n(66143);var i=n(24104);var l=n(1065);var o=n(73265);var a=n(6016);class h{static create(e,t,n,r,s){let i=r+(r<<8)+e+(t<<4)|0;return new h(e,t,n,i,s,[],[])}constructor(e,t,n,r,s,i,l){this.type=e;this.value=t;this.from=n;this.hash=r;this.end=s;this.children=i;this.positions=l;this.hashProp=[[o.NodeProp.contextHash,r]]}addChild(e,t){if(e.prop(o.NodeProp.contextHash)!=this.hash)e=new o.Tree(e.type,e.children,e.positions,e.length,this.hashProp);this.children.push(e);this.positions.push(t)}toTree(e,t=this.end){let n=this.children.length-1;if(n>=0)t=Math.max(t,this.positions[n]+this.children[n].length+this.from);return new o.Tree(e.types[this.type],this.children,this.positions,t-this.from).balance({makeTree:(e,t,n)=>new o.Tree(o.NodeType.none,e,t,n,this.hashProp)})}}var f;(function(e){e[e["Document"]=1]="Document";e[e["CodeBlock"]=2]="CodeBlock";e[e["FencedCode"]=3]="FencedCode";e[e["Blockquote"]=4]="Blockquote";e[e["HorizontalRule"]=5]="HorizontalRule";e[e["BulletList"]=6]="BulletList";e[e["OrderedList"]=7]="OrderedList";e[e["ListItem"]=8]="ListItem";e[e["ATXHeading1"]=9]="ATXHeading1";e[e["ATXHeading2"]=10]="ATXHeading2";e[e["ATXHeading3"]=11]="ATXHeading3";e[e["ATXHeading4"]=12]="ATXHeading4";e[e["ATXHeading5"]=13]="ATXHeading5";e[e["ATXHeading6"]=14]="ATXHeading6";e[e["SetextHeading1"]=15]="SetextHeading1";e[e["SetextHeading2"]=16]="SetextHeading2";e[e["HTMLBlock"]=17]="HTMLBlock";e[e["LinkReference"]=18]="LinkReference";e[e["Paragraph"]=19]="Paragraph";e[e["CommentBlock"]=20]="CommentBlock";e[e["ProcessingInstructionBlock"]=21]="ProcessingInstructionBlock";e[e["Escape"]=22]="Escape";e[e["Entity"]=23]="Entity";e[e["HardBreak"]=24]="HardBreak";e[e["Emphasis"]=25]="Emphasis";e[e["StrongEmphasis"]=26]="StrongEmphasis";e[e["Link"]=27]="Link";e[e["Image"]=28]="Image";e[e["InlineCode"]=29]="InlineCode";e[e["HTMLTag"]=30]="HTMLTag";e[e["Comment"]=31]="Comment";e[e["ProcessingInstruction"]=32]="ProcessingInstruction";e[e["Autolink"]=33]="Autolink";e[e["HeaderMark"]=34]="HeaderMark";e[e["QuoteMark"]=35]="QuoteMark";e[e["ListMark"]=36]="ListMark";e[e["LinkMark"]=37]="LinkMark";e[e["EmphasisMark"]=38]="EmphasisMark";e[e["CodeMark"]=39]="CodeMark";e[e["CodeText"]=40]="CodeText";e[e["CodeInfo"]=41]="CodeInfo";e[e["LinkTitle"]=42]="LinkTitle";e[e["LinkLabel"]=43]="LinkLabel";e[e["URL"]=44]="URL"})(f||(f={}));class u{constructor(e,t){this.start=e;this.content=t;this.marks=[];this.parsers=[]}}class c{constructor(){this.text="";this.baseIndent=0;this.basePos=0;this.depth=0;this.markers=[];this.pos=0;this.indent=0;this.next=-1}forward(){if(this.basePos>this.pos)this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent);this.pos=e;this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return m(this.text,e)}reset(e){this.text=e;this.baseIndent=this.basePos=this.pos=this.indent=0;this.forwardInner();this.depth=1;while(this.markers.length)this.markers.pop()}moveBase(e){this.basePos=e;this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e;this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,t=0,n=0){for(let r=t;r<e;r++)n+=this.text.charCodeAt(r)==9?4-n%4:1;return n}findColumn(e){let t=0;for(let n=0;t<this.text.length&&n<e;t++)n+=this.text.charCodeAt(t)==9?4-n%4:1;return t}scrub(){if(!this.baseIndent)return this.text;let e="";for(let t=0;t<this.basePos;t++)e+=" ";return e+this.text.slice(this.basePos)}}function d(e,t,n){if(n.pos==n.text.length||e!=t.block&&n.indent>=t.stack[n.depth+1].value+n.baseIndent)return true;if(n.indent>=n.baseIndent+4)return false;let r=(e.type==f.OrderedList?C:S)(n,t,false);return r>0&&(e.type!=f.BulletList||L(n,t,false)<0)&&n.text.charCodeAt(n.pos+r-1)==e.value}const p={[f.Blockquote](e,t,n){if(n.next!=62)return false;n.markers.push(J(f.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1));n.moveBase(n.pos+(g(n.text.charCodeAt(n.pos+1))?2:1));e.end=t.lineStart+n.text.length;return true},[f.ListItem](e,t,n){if(n.indent<n.baseIndent+e.value&&n.next>-1)return false;n.moveBaseColumn(n.baseIndent+e.value);return true},[f.OrderedList]:d,[f.BulletList]:d,[f.Document](){return true}};function g(e){return e==32||e==9||e==10||e==13}function m(e,t=0){while(t<e.length&&g(e.charCodeAt(t)))t++;return t}function k(e,t,n){while(t>n&&g(e.charCodeAt(t-1)))t--;return t}function x(e){if(e.next!=96&&e.next!=126)return-1;let t=e.pos+1;while(t<e.text.length&&e.text.charCodeAt(t)==e.next)t++;if(t<e.pos+3)return-1;if(e.next==96)for(let n=t;n<e.text.length;n++)if(e.text.charCodeAt(n)==96)return-1;return t}function b(e){return e.next!=62?-1:e.text.charCodeAt(e.pos+1)==32?2:1}function L(e,t,n){if(e.next!=42&&e.next!=45&&e.next!=95)return-1;let r=1;for(let s=e.pos+1;s<e.text.length;s++){let t=e.text.charCodeAt(s);if(t==e.next)r++;else if(!g(t))return-1}if(n&&e.next==45&&T(e)>-1&&e.depth==t.stack.length)return-1;return r<3?-1:1}function w(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return true;return false}function S(e,t,n){return(e.next==45||e.next==43||e.next==42)&&(e.pos==e.text.length-1||g(e.text.charCodeAt(e.pos+1)))&&(!n||w(t,f.BulletList)||e.skipSpace(e.pos+2)<e.text.length)?1:-1}function C(e,t,n){let r=e.pos,s=e.next;for(;;){if(s>=48&&s<=57)r++;else break;if(r==e.text.length)return-1;s=e.text.charCodeAt(r)}if(r==e.pos||r>e.pos+9||s!=46&&s!=41||r<e.text.length-1&&!g(e.text.charCodeAt(r+1))||n&&!w(t,f.OrderedList)&&(e.skipSpace(r+1)==e.text.length||r>e.pos+1||e.next!=49))return-1;return r+1-e.pos}function y(e){if(e.next!=35)return-1;let t=e.pos+1;while(t<e.text.length&&e.text.charCodeAt(t)==35)t++;if(t<e.text.length&&e.text.charCodeAt(t)!=32)return-1;let n=t-e.pos;return n>6?-1:n}function T(e){if(e.next!=45&&e.next!=61||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;while(t<e.text.length&&e.text.charCodeAt(t)==e.next)t++;let n=t;while(t<e.text.length&&g(e.text.charCodeAt(t)))t++;return t==e.text.length?n:-1}const A=/^[ \t]*$/,I=/-->/,B=/\?>/;const E=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,I],[/^\s*<\?/,B],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,A],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,A]];function M(e,t,n){if(e.next!=60)return-1;let r=e.text.slice(e.pos);for(let s=0,i=E.length-(n?1:0);s<i;s++)if(E[s][0].test(r))return s;return-1}function P(e,t){let n=e.countIndent(t,e.pos,e.indent);let r=e.countIndent(e.skipSpace(t),t,n);return r>=n+5?n+1:r}function H(e,t,n){let r=e.length-1;if(r>=0&&e[r].to==t&&e[r].type==f.CodeText)e[r].to=n;else e.push(J(f.CodeText,t,n))}const v={LinkReference:undefined,IndentedCode(e,t){let n=t.baseIndent+4;if(t.indent<n)return false;let r=t.findColumn(n);let s=e.lineStart+r,i=e.lineStart+t.text.length;let l=[],o=[];H(l,s,i);while(e.nextLine()&&t.depth>=e.stack.length){if(t.pos==t.text.length){H(o,e.lineStart-1,e.lineStart);for(let e of t.markers)o.push(e)}else if(t.indent<n){break}else{if(o.length){for(let e of o){if(e.type==f.CodeText)H(l,e.from,e.to);else l.push(e)}o=[]}H(l,e.lineStart-1,e.lineStart);for(let e of t.markers)l.push(e);i=e.lineStart+t.text.length;let n=e.lineStart+t.findColumn(t.baseIndent+4);if(n<i)H(l,n,i)}}if(o.length){o=o.filter((e=>e.type!=f.CodeText));if(o.length)t.markers=o.concat(t.markers)}e.addNode(e.buffer.writeElements(l,-s).finish(f.CodeBlock,i-s),s);return true},FencedCode(e,t){let n=x(t);if(n<0)return false;let r=e.lineStart+t.pos,s=t.next,i=n-t.pos;let l=t.skipSpace(n),o=k(t.text,t.text.length,l);let a=[J(f.CodeMark,r,r+i)];if(l<o)a.push(J(f.CodeInfo,e.lineStart+l,e.lineStart+o));for(let h=true;e.nextLine()&&t.depth>=e.stack.length;h=false){let n=t.pos;if(t.indent-t.baseIndent<4)while(n<t.text.length&&t.text.charCodeAt(n)==s)n++;if(n-t.pos>=i&&t.skipSpace(n)==t.text.length){for(let e of t.markers)a.push(e);a.push(J(f.CodeMark,e.lineStart+t.pos,e.lineStart+n));e.nextLine();break}else{if(!h)H(a,e.lineStart-1,e.lineStart);for(let e of t.markers)a.push(e);let n=e.lineStart+t.basePos,r=e.lineStart+t.text.length;if(n<r)H(a,n,r)}}e.addNode(e.buffer.writeElements(a,-r).finish(f.FencedCode,e.prevLineEnd()-r),r);return true},Blockquote(e,t){let n=b(t);if(n<0)return false;e.startContext(f.Blockquote,t.pos);e.addNode(f.QuoteMark,e.lineStart+t.pos,e.lineStart+t.pos+1);t.moveBase(t.pos+n);return null},HorizontalRule(e,t){if(L(t,e,false)<0)return false;let n=e.lineStart+t.pos;e.nextLine();e.addNode(f.HorizontalRule,n);return true},BulletList(e,t){let n=S(t,e,false);if(n<0)return false;if(e.block.type!=f.BulletList)e.startContext(f.BulletList,t.basePos,t.next);let r=P(t,t.pos+1);e.startContext(f.ListItem,t.basePos,r-t.baseIndent);e.addNode(f.ListMark,e.lineStart+t.pos,e.lineStart+t.pos+n);t.moveBaseColumn(r);return null},OrderedList(e,t){let n=C(t,e,false);if(n<0)return false;if(e.block.type!=f.OrderedList)e.startContext(f.OrderedList,t.basePos,t.text.charCodeAt(t.pos+n-1));let r=P(t,t.pos+n);e.startContext(f.ListItem,t.basePos,r-t.baseIndent);e.addNode(f.ListMark,e.lineStart+t.pos,e.lineStart+t.pos+n);t.moveBaseColumn(r);return null},ATXHeading(e,t){let n=y(t);if(n<0)return false;let r=t.pos,s=e.lineStart+r;let i=k(t.text,t.text.length,r),l=i;while(l>r&&t.text.charCodeAt(l-1)==t.next)l--;if(l==i||l==r||!g(t.text.charCodeAt(l-1)))l=t.text.length;let o=e.buffer.write(f.HeaderMark,0,n).writeElements(e.parser.parseInline(t.text.slice(r+n+1,l),s+n+1),-s);if(l<t.text.length)o.write(f.HeaderMark,l-r,i-r);let a=o.finish(f.ATXHeading1-1+n,t.text.length-r);e.nextLine();e.addNode(a,s);return true},HTMLBlock(e,t){let n=M(t,e,false);if(n<0)return false;let r=e.lineStart+t.pos,s=E[n][1];let i=[],l=s!=A;while(!s.test(t.text)&&e.nextLine()){if(t.depth<e.stack.length){l=false;break}for(let e of t.markers)i.push(e)}if(l)e.nextLine();let o=s==I?f.CommentBlock:s==B?f.ProcessingInstructionBlock:f.HTMLBlock;let a=e.prevLineEnd();e.addNode(e.buffer.writeElements(i,-r).finish(o,a-r),r);return true},SetextHeading:undefined};class N{constructor(e){this.stage=0;this.elts=[];this.pos=0;this.start=e.start;this.advance(e.content)}nextLine(e,t,n){if(this.stage==-1)return false;let r=n.content+"\n"+t.scrub();let s=this.advance(r);if(s>-1&&s<r.length)return this.complete(e,n,s);return false}finish(e,t){if((this.stage==2||this.stage==3)&&m(t.content,this.pos)==t.content.length)return this.complete(e,t,t.content.length);return false}complete(e,t,n){e.addLeafElement(t,J(f.LinkReference,this.start,this.start+n,this.elts));return true}nextStage(e){if(e){this.pos=e.to-this.start;this.elts.push(e);this.stage++;return true}if(e===false)this.stage=-1;return false}advance(e){for(;;){if(this.stage==-1){return-1}else if(this.stage==0){if(!this.nextStage(he(e,this.pos,this.start,true)))return-1;if(e.charCodeAt(this.pos)!=58)return this.stage=-1;this.elts.push(J(f.LinkMark,this.pos+this.start,this.pos+this.start+1));this.pos++}else if(this.stage==1){if(!this.nextStage(oe(e,m(e,this.pos),this.start)))return-1}else if(this.stage==2){let t=m(e,this.pos),n=0;if(t>this.pos){let r=ae(e,t,this.start);if(r){let t=O(e,r.to-this.start);if(t>0){this.nextStage(r);n=t}}}if(!n)n=O(e,this.pos);return n>0&&n<e.length?n:-1}else{return O(e,this.pos)}}}}function O(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(n==10)break;if(!g(n))return-1}return t}class R{nextLine(e,t,n){let r=t.depth<e.stack.length?-1:T(t);let s=t.next;if(r<0)return false;let i=J(f.HeaderMark,e.lineStart+t.pos,e.lineStart+r);e.nextLine();e.addLeafElement(n,J(s==61?f.SetextHeading1:f.SetextHeading2,n.start,e.prevLineEnd(),[...e.parser.parseInline(n.content,n.start),i]));return true}finish(){return false}}const X={LinkReference(e,t){return t.content.charCodeAt(0)==91?new N(t):null},SetextHeading(){return new R}};const D=[(e,t)=>y(t)>=0,(e,t)=>x(t)>=0,(e,t)=>b(t)>=0,(e,t)=>S(t,e,true)>=0,(e,t)=>C(t,e,true)>=0,(e,t)=>L(t,e,true)>=0,(e,t)=>M(t,e,true)>=0];const z={text:"",end:0};class ${constructor(e,t,n,r){this.parser=e;this.input=t;this.ranges=r;this.line=new c;this.atEnd=false;this.reusePlaceholders=new Map;this.stoppedAt=null;this.rangeI=0;this.to=r[r.length-1].to;this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=r[0].from;this.block=h.create(f.Document,0,this.lineStart,0,0);this.stack=[this.block];this.fragments=n.length?new de(n,t):null;this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(this.stoppedAt!=null&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:e}=this;for(;;){for(let t=0;;){let n=e.depth<this.stack.length?this.stack[this.stack.length-1]:null;while(t<e.markers.length&&(!n||e.markers[t].from<n.end)){let n=e.markers[t++];this.addNode(n.type,n.from,n.to)}if(!n)break;this.finishContext()}if(e.pos<e.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(e.basePos))return null;e:for(;;){for(let t of this.parser.blockParsers)if(t){let n=t(this,e);if(n!=false){if(n==true)return null;e.forward();continue e}}break}let t=new u(this.lineStart+e.pos,e.text.slice(e.pos));for(let n of this.parser.leafBlockParsers)if(n){let e=n(this,t);if(e)t.parsers.push(e)}e:while(this.nextLine()){if(e.pos==e.text.length)break;if(e.indent<e.baseIndent+4){for(let n of this.parser.endLeafBlock)if(n(this,e,t))break e}for(let n of t.parsers)if(n.nextLine(this,e,t))return null;t.content+="\n"+e.scrub();for(let n of e.markers)t.marks.push(n)}this.finishLeaf(t);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}reuseFragment(e){if(!this.fragments.moveTo(this.absoluteLineStart+e,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return false;let t=this.fragments.takeNodes(this);if(!t)return false;this.absoluteLineStart+=t;this.lineStart=pe(this.absoluteLineStart,this.ranges);this.moveRangeI();if(this.absoluteLineStart<this.to){this.lineStart++;this.absoluteLineStart++;this.readLine()}else{this.atEnd=true;this.readLine()}return true}get depth(){return this.stack.length}parentType(e=this.depth-1){return this.parser.nodeSet.types[this.stack[e].type]}nextLine(){this.lineStart+=this.line.text.length;if(this.absoluteLineEnd>=this.to){this.absoluteLineStart=this.absoluteLineEnd;this.atEnd=true;this.readLine();return false}else{this.lineStart++;this.absoluteLineStart=this.absoluteLineEnd+1;this.moveRangeI();this.readLine();return true}}moveRangeI(){while(this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to){this.rangeI++;this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}}scanLine(e){let t=z;t.end=e;if(e>=this.to){t.text=""}else{t.text=this.lineChunkAt(e);t.end+=t.text.length;if(this.ranges.length>1){let e=this.absoluteLineStart,n=this.rangeI;while(this.ranges[n].to<t.end){n++;let r=this.ranges[n].from;let s=this.lineChunkAt(r);t.end=r+s.length;t.text=t.text.slice(0,this.ranges[n-1].to-e)+s;e=t.end-t.text.length}}}return t}readLine(){let{line:e}=this,{text:t,end:n}=this.scanLine(this.absoluteLineStart);this.absoluteLineEnd=n;e.reset(t);for(;e.depth<this.stack.length;e.depth++){let t=this.stack[e.depth],n=this.parser.skipContextMarkup[t.type];if(!n)throw new Error("Unhandled block context "+f[t.type]);if(!n(t,this,e))break;e.forward()}}lineChunkAt(e){let t=this.input.chunk(e),n;if(!this.input.lineChunks){let e=t.indexOf("\n");n=e<0?t:t.slice(0,e)}else{n=t=="\n"?"":t}return e+n.length>this.to?n.slice(0,this.to-e):n}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(e,t,n=0){this.block=h.create(e,n,this.lineStart+t,this.block.hash,this.lineStart+this.line.text.length);this.stack.push(this.block)}startComposite(e,t,n=0){this.startContext(this.parser.getNodeType(e),t,n)}addNode(e,t,n){if(typeof e=="number")e=new o.Tree(this.parser.nodeSet.types[e],Z,Z,(n!==null&&n!==void 0?n:this.prevLineEnd())-t);this.block.addChild(e,t-this.block.from)}addElement(e){this.block.addChild(e.toTree(this.parser.nodeSet),e.from-this.block.from)}addLeafElement(e,t){this.addNode(this.buffer.writeElements(ue(t.children,e.marks),-t.from).finish(t.type,t.to-t.from),t.from)}finishContext(){let e=this.stack.pop();let t=this.stack[this.stack.length-1];t.addChild(e.toTree(this.parser.nodeSet),e.from-t.from);this.block=t}finish(){while(this.stack.length>1)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(e){return this.ranges.length>1?F(this.ranges,0,e.topNode,this.ranges[0].from,this.reusePlaceholders):e}finishLeaf(e){for(let n of e.parsers)if(n.finish(this,e))return;let t=ue(this.parser.parseInline(e.content,e.start),e.marks);this.addNode(this.buffer.writeElements(t,-e.start).finish(f.Paragraph,e.content.length),e.start)}elt(e,t,n,r){if(typeof e=="string")return J(this.parser.getNodeType(e),t,n,r);return new G(e,t)}get buffer(){return new K(this.parser.nodeSet)}}function F(e,t,n,r,s){let i=e[t].to;let l=[],a=[],h=n.from+r;function f(n,s){while(s?n>=i:n>i){let s=e[t+1].from-i;r+=s;n+=s;t++;i=e[t].to}}for(let o=n.firstChild;o;o=o.nextSibling){f(o.from+r,true);let n=o.from+r,u,c=s.get(o.tree);if(c){u=c}else if(o.to+r>i){u=F(e,t,o,r,s);f(o.to+r,false)}else{u=o.toTree()}l.push(u);a.push(n-h)}f(n.to+r,false);return new o.Tree(n.type,l,a,n.to+r-h,n.tree?n.tree.propValues:undefined)}class _ extends o.Parser{constructor(e,t,n,r,s,i,l,o,a){super();this.nodeSet=e;this.blockParsers=t;this.leafBlockParsers=n;this.blockNames=r;this.endLeafBlock=s;this.skipContextMarkup=i;this.inlineParsers=l;this.inlineNames=o;this.wrappers=a;this.nodeTypes=Object.create(null);for(let h of e.types)this.nodeTypes[h.name]=h.id}createParse(e,t,n){let r=new $(this,e,t,n);for(let s of this.wrappers)r=s(r,e,t,n);return r}configure(e){let t=q(e);if(!t)return this;let{nodeSet:n,skipContextMarkup:r}=this;let s=this.blockParsers.slice(),i=this.leafBlockParsers.slice(),l=this.blockNames.slice(),h=this.inlineParsers.slice(),u=this.inlineNames.slice(),c=this.endLeafBlock.slice(),d=this.wrappers;if(j(t.defineNodes)){r=Object.assign({},r);let e=n.types.slice(),s;for(let n of t.defineNodes){let{name:t,block:i,composite:l,style:h}=typeof n=="string"?{name:n}:n;if(e.some((e=>e.name==t)))continue;if(l)r[e.length]=(e,t,n)=>l(t,n,e.value);let u=e.length;let c=l?["Block","BlockContext"]:!i?undefined:u>=f.ATXHeading1&&u<=f.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"];e.push(o.NodeType.define({id:u,name:t,props:c&&[[o.NodeProp.group,c]]}));if(h){if(!s)s={};if(Array.isArray(h)||h instanceof a.Tag)s[t]=h;else Object.assign(s,h)}}n=new o.NodeSet(e);if(s)n=n.extend((0,a.styleTags)(s))}if(j(t.props))n=n.extend(...t.props);if(j(t.remove)){for(let e of t.remove){let t=this.blockNames.indexOf(e),n=this.inlineNames.indexOf(e);if(t>-1)s[t]=i[t]=undefined;if(n>-1)h[n]=undefined}}if(j(t.parseBlock)){for(let e of t.parseBlock){let t=l.indexOf(e.name);if(t>-1){s[t]=e.parse;i[t]=e.leaf}else{let t=e.before?U(l,e.before):e.after?U(l,e.after)+1:l.length-1;s.splice(t,0,e.parse);i.splice(t,0,e.leaf);l.splice(t,0,e.name)}if(e.endLeaf)c.push(e.endLeaf)}}if(j(t.parseInline)){for(let e of t.parseInline){let t=u.indexOf(e.name);if(t>-1){h[t]=e.parse}else{let t=e.before?U(u,e.before):e.after?U(u,e.after)+1:u.length-1;h.splice(t,0,e.parse);u.splice(t,0,e.name)}}}if(t.wrap)d=d.concat(t.wrap);return new _(n,s,i,l,c,r,h,u,d)}getNodeType(e){let t=this.nodeTypes[e];if(t==null)throw new RangeError(`Unknown node type '${e}'`);return t}parseInline(e,t){let n=new fe(this,e,t);e:for(let r=t;r<n.end;){let e=n.char(r);for(let t of this.inlineParsers)if(t){let s=t(n,e,r);if(s>=0){r=s;continue e}}r++}return n.resolveMarkers(0)}}function j(e){return e!=null&&e.length>0}function q(e){if(!Array.isArray(e))return e;if(e.length==0)return null;let t=q(e[0]);if(e.length==1)return t;let n=q(e.slice(1));if(!n||!t)return t||n;let r=(e,t)=>(e||Z).concat(t||Z);let s=t.wrap,i=n.wrap;return{props:r(t.props,n.props),defineNodes:r(t.defineNodes,n.defineNodes),parseBlock:r(t.parseBlock,n.parseBlock),parseInline:r(t.parseInline,n.parseInline),remove:r(t.remove,n.remove),wrap:!s?i:!i?s:(e,t,n,r)=>s(i(e,t,n,r),t,n,r)}}function U(e,t){let n=e.indexOf(t);if(n<0)throw new RangeError(`Position specified relative to unknown parser ${t}`);return n}let Q=[o.NodeType.none];for(let xt=1,bt;bt=f[xt];xt++){Q[xt]=o.NodeType.define({id:xt,name:bt,props:xt>=f.Escape?[]:[[o.NodeProp.group,xt in p?["Block","BlockContext"]:["Block","LeafBlock"]]],top:bt=="Document"})}const Z=[];class K{constructor(e){this.nodeSet=e;this.content=[];this.nodes=[]}write(e,t,n,r=0){this.content.push(e,t,n,4+r*4);return this}writeElements(e,t=0){for(let n of e)n.writeTo(this,t);return this}finish(e,t){return o.Tree.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:e,length:t})}}class V{constructor(e,t,n,r=Z){this.type=e;this.from=t;this.to=n;this.children=r}writeTo(e,t){let n=e.content.length;e.writeElements(this.children,t);e.content.push(this.type,this.from+t,this.to+t,e.content.length+4-n)}toTree(e){return new K(e).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}}class G{constructor(e,t){this.tree=e;this.from=t}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return Z}writeTo(e,t){e.nodes.push(this.tree);e.content.push(e.nodes.length-1,this.from+t,this.to+t,-1)}toTree(){return this.tree}}function J(e,t,n,r){return new V(e,t,n,r)}const W={resolve:"Emphasis",mark:"EmphasisMark"};const Y={resolve:"Emphasis",mark:"EmphasisMark"};const ee={},te={};class ne{constructor(e,t,n,r){this.type=e;this.from=t;this.to=n;this.side=r}}const re="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let se=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{se=new RegExp("[\\p{Pc}|\\p{Pd}|\\p{Pe}|\\p{Pf}|\\p{Pi}|\\p{Po}|\\p{Ps}]","u")}catch(kt){}const ie={Escape(e,t,n){if(t!=92||n==e.end-1)return-1;let r=e.char(n+1);for(let s=0;s<re.length;s++)if(re.charCodeAt(s)==r)return e.append(J(f.Escape,n,n+2));return-1},Entity(e,t,n){if(t!=38)return-1;let r=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(e.slice(n+1,n+31));return r?e.append(J(f.Entity,n,n+1+r[0].length)):-1},InlineCode(e,t,n){if(t!=96||n&&e.char(n-1)==96)return-1;let r=n+1;while(r<e.end&&e.char(r)==96)r++;let s=r-n,i=0;for(;r<e.end;r++){if(e.char(r)==96){i++;if(i==s&&e.char(r+1)!=96)return e.append(J(f.InlineCode,n,r+1,[J(f.CodeMark,n,n+s),J(f.CodeMark,r+1-s,r+1)]))}else{i=0}}return-1},HTMLTag(e,t,n){if(t!=60||n==e.end-1)return-1;let r=e.slice(n+1,e.end);let s=/^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(r);if(s){return e.append(J(f.Autolink,n,n+1+s[0].length,[J(f.LinkMark,n,n+1),J(f.URL,n+1,n+s[0].length),J(f.LinkMark,n+s[0].length,n+1+s[0].length)]))}let i=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(r);if(i)return e.append(J(f.Comment,n,n+1+i[0].length));let l=/^\?[^]*?\?>/.exec(r);if(l)return e.append(J(f.ProcessingInstruction,n,n+1+l[0].length));let o=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);if(!o)return-1;return e.append(J(f.HTMLTag,n,n+1+o[0].length))},Emphasis(e,t,n){if(t!=95&&t!=42)return-1;let r=n+1;while(e.char(r)==t)r++;let s=e.slice(n-1,n),i=e.slice(r,r+1);let l=se.test(s),o=se.test(i);let a=/\s|^$/.test(s),h=/\s|^$/.test(i);let f=!h&&(!o||a||l);let u=!a&&(!l||h||o);let c=f&&(t==42||!u||l);let d=u&&(t==42||!f||o);return e.append(new ne(t==95?W:Y,n,r,(c?1:0)|(d?2:0)))},HardBreak(e,t,n){if(t==92&&e.char(n+1)==10)return e.append(J(f.HardBreak,n,n+2));if(t==32){let t=n+1;while(e.char(t)==32)t++;if(e.char(t)==10&&t>=n+2)return e.append(J(f.HardBreak,n,t+1))}return-1},Link(e,t,n){return t==91?e.append(new ne(ee,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new ne(te,n,n+2,1)):-1},LinkEnd(e,t,n){if(t!=93)return-1;for(let r=e.parts.length-1;r>=0;r--){let t=e.parts[r];if(t instanceof ne&&(t.type==ee||t.type==te)){if(!t.side||e.skipSpace(t.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2))){e.parts[r]=null;return-1}let s=e.takeContent(r);let i=e.parts[r]=le(e,s,t.type==ee?f.Link:f.Image,t.from,n+1);if(t.type==ee)for(let t=0;t<r;t++){let n=e.parts[t];if(n instanceof ne&&n.type==ee)n.side=0}return i.to}}return-1}};function le(e,t,n,r,s){let{text:i}=e,l=e.char(s),o=s;t.unshift(J(f.LinkMark,r,r+(n==f.Image?2:1)));t.push(J(f.LinkMark,s-1,s));if(l==40){let n=e.skipSpace(s+1);let r=oe(i,n-e.offset,e.offset),l;if(r){n=e.skipSpace(r.to);if(n!=r.to){l=ae(i,n-e.offset,e.offset);if(l)n=e.skipSpace(l.to)}}if(e.char(n)==41){t.push(J(f.LinkMark,s,s+1));o=n+1;if(r)t.push(r);if(l)t.push(l);t.push(J(f.LinkMark,n,o))}}else if(l==91){let n=he(i,s-e.offset,e.offset,false);if(n){t.push(n);o=n.to}}return J(n,r,o,t)}function oe(e,t,n){let r=e.charCodeAt(t);if(r==60){for(let r=t+1;r<e.length;r++){let s=e.charCodeAt(r);if(s==62)return J(f.URL,t+n,r+1+n);if(s==60||s==10)return false}return null}else{let r=0,s=t;for(let t=false;s<e.length;s++){let n=e.charCodeAt(s);if(g(n)){break}else if(t){t=false}else if(n==40){r++}else if(n==41){if(!r)break;r--}else if(n==92){t=true}}return s>t?J(f.URL,t+n,s+n):s==e.length?null:false}}function ae(e,t,n){let r=e.charCodeAt(t);if(r!=39&&r!=34&&r!=40)return false;let s=r==40?41:r;for(let i=t+1,l=false;i<e.length;i++){let r=e.charCodeAt(i);if(l)l=false;else if(r==s)return J(f.LinkTitle,t+n,i+1+n);else if(r==92)l=true}return null}function he(e,t,n,r){for(let s=false,i=t+1,l=Math.min(e.length,i+999);i<l;i++){let l=e.charCodeAt(i);if(s)s=false;else if(l==93)return r?false:J(f.LinkLabel,t+n,i+1+n);else{if(r&&!g(l))r=false;if(l==91)return false;else if(l==92)s=true}}return null}class fe{constructor(e,t,n){this.parser=e;this.text=t;this.offset=n;this.parts=[]}char(e){return e>=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,t){return this.text.slice(e-this.offset,t-this.offset)}append(e){this.parts.push(e);return e.to}addDelimiter(e,t,n,r,s){return this.append(new ne(e,t,n,(r?1:0)|(s?2:0)))}addElement(e){return this.append(e)}resolveMarkers(e){for(let n=e;n<this.parts.length;n++){let t=this.parts[n];if(!(t instanceof ne&&t.type.resolve&&t.side&2))continue;let r=t.type==W||t.type==Y;let s=t.to-t.from;let i,l=n-1;for(;l>=e;l--){let e=this.parts[l];if(e instanceof ne&&e.side&1&&e.type==t.type&&!(r&&(t.side&1||e.side&2)&&(e.to-e.from+s)%3==0&&((e.to-e.from)%3||s%3))){i=e;break}}if(!i)continue;let o=t.type.resolve,a=[];let h=i.from,f=t.to;if(r){let e=Math.min(2,i.to-i.from,s);h=i.to-e;f=t.from+e;o=e==1?"Emphasis":"StrongEmphasis"}if(i.type.mark)a.push(this.elt(i.type.mark,h,i.to));for(let e=l+1;e<n;e++){if(this.parts[e]instanceof V)a.push(this.parts[e]);this.parts[e]=null}if(t.type.mark)a.push(this.elt(t.type.mark,t.from,f));let u=this.elt(o,h,f,a);this.parts[l]=r&&i.from!=h?new ne(i.type,i.from,h,i.side):null;let c=this.parts[n]=r&&t.to!=f?new ne(t.type,f,t.to,t.side):null;if(c)this.parts.splice(n,0,u);else this.parts[n]=u}let t=[];for(let n=e;n<this.parts.length;n++){let e=this.parts[n];if(e instanceof V)t.push(e)}return t}findOpeningDelimiter(e){for(let t=this.parts.length-1;t>=0;t--){let n=this.parts[t];if(n instanceof ne&&n.type==e)return t}return null}takeContent(e){let t=this.resolveMarkers(e);this.parts.length=e;return t}skipSpace(e){return m(this.text,e-this.offset)+this.offset}elt(e,t,n,r){if(typeof e=="string")return J(this.parser.getNodeType(e),t,n,r);return new G(e,t)}}function ue(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),r=0;for(let s of t){while(r<n.length&&n[r].to<s.to)r++;if(r<n.length&&n[r].from<s.from){let e=n[r];if(e instanceof V)n[r]=new V(e.type,e.from,e.to,ue(e.children,[s]))}else{n.splice(r++,0,s)}}return n}const ce=[f.CodeBlock,f.ListItem,f.OrderedList,f.BulletList];class de{constructor(e,t){this.fragments=e;this.input=t;this.i=0;this.fragment=null;this.fragmentEnd=-1;this.cursor=null;if(e.length)this.fragment=e[this.i++]}nextFragment(){this.fragment=this.i<this.fragments.length?this.fragments[this.i++]:null;this.cursor=null;this.fragmentEnd=-1}moveTo(e,t){while(this.fragment&&this.fragment.to<=e)this.nextFragment();if(!this.fragment||this.fragment.from>(e?e-1:0))return false;if(this.fragmentEnd<0){let e=this.fragment.to;while(e>0&&this.input.read(e-1,e)!="\n")e--;this.fragmentEnd=e?e-1:0}let n=this.cursor;if(!n){n=this.cursor=this.fragment.tree.cursor();n.firstChild()}let r=e+this.fragment.offset;while(n.to<=r)if(!n.parent())return false;for(;;){if(n.from>=r)return this.fragment.from<=t;if(!n.childAfter(r))return false}}matches(e){let t=this.cursor.tree;return t&&t.prop(o.NodeProp.contextHash)==e}takeNodes(e){let t=this.cursor,n=this.fragment.offset,r=this.fragmentEnd-(this.fragment.openEnd?1:0);let s=e.absoluteLineStart,i=s,l=e.block.children.length;let a=i,h=l;for(;;){if(t.to-n>r){if(t.type.isAnonymous&&t.firstChild())continue;break}let s=pe(t.from-n,e.ranges);if(t.to-n<=e.ranges[e.rangeI].to){e.addNode(t.tree,s)}else{let n=new o.Tree(e.parser.nodeSet.types[f.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(n,t.tree);e.addNode(n,s)}if(t.type.is("Block")){if(ce.indexOf(t.type.id)<0){i=t.to-n;l=e.block.children.length}else{i=a;l=h;a=t.to-n;h=e.block.children.length}}if(!t.nextSibling())break}while(e.block.children.length>l){e.block.children.pop();e.block.positions.pop()}return i-s}}function pe(e,t){let n=e;for(let r=1;r<t.length;r++){let s=t[r-1].to,i=t[r].from;if(s<e)n-=i-s}return n}const ge=(0,a.styleTags)({"Blockquote/...":a.tags.quote,HorizontalRule:a.tags.contentSeparator,"ATXHeading1/... SetextHeading1/...":a.tags.heading1,"ATXHeading2/... SetextHeading2/...":a.tags.heading2,"ATXHeading3/...":a.tags.heading3,"ATXHeading4/...":a.tags.heading4,"ATXHeading5/...":a.tags.heading5,"ATXHeading6/...":a.tags.heading6,"Comment CommentBlock":a.tags.comment,Escape:a.tags.escape,Entity:a.tags.character,"Emphasis/...":a.tags.emphasis,"StrongEmphasis/...":a.tags.strong,"Link/... Image/...":a.tags.link,"OrderedList/... BulletList/...":a.tags.list,"BlockQuote/...":a.tags.quote,"InlineCode CodeText":a.tags.monospace,"URL Autolink":a.tags.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":a.tags.processingInstruction,"CodeInfo LinkLabel":a.tags.labelName,LinkTitle:a.tags.string,Paragraph:a.tags.content});const me=new _(new o.NodeSet(Q).extend(ge),Object.keys(v).map((e=>v[e])),Object.keys(v).map((e=>X[e])),Object.keys(v),D,p,Object.keys(ie).map((e=>ie[e])),Object.keys(ie),[]);function ke(e,t,n){let r=[];for(let s=e.firstChild,i=t;;s=s.nextSibling){let e=s?s.from:n;if(e>i)r.push({from:i,to:e});if(!s)break;i=s.to}return r}function xe(e){let{codeParser:t,htmlParser:n}=e;let r=(0,o.parseMixed)(((e,r)=>{let s=e.type.id;if(t&&(s==f.CodeBlock||s==f.FencedCode)){let n="";if(s==f.FencedCode){let t=e.node.getChild(f.CodeInfo);if(t)n=r.read(t.from,t.to)}let i=t(n);if(i)return{parser:i,overlay:e=>e.type.id==f.CodeText}}else if(n&&(s==f.HTMLBlock||s==f.HTMLTag)){return{parser:n,overlay:ke(e.node,e.from,e.to)}}return null}));return{wrap:r}}const be={resolve:"Strikethrough",mark:"StrikethroughMark"};const Le={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":a.tags.strikethrough}},{name:"StrikethroughMark",style:a.tags.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,t,n){if(t!=126||e.char(n+1)!=126||e.char(n+2)==126)return-1;let r=e.slice(n-1,n),s=e.slice(n+2,n+3);let i=/\s|^$/.test(r),l=/\s|^$/.test(s);let o=se.test(r),a=se.test(s);return e.addDelimiter(be,n,n+2,!l&&(!a||i||o),!i&&(!o||l||a))},after:"Emphasis"}]};function we(e,t,n=0,r,s=0){let i=0,l=true,o=-1,a=-1,h=false;let f=()=>{r.push(e.elt("TableCell",s+o,s+a,e.parser.parseInline(t.slice(o,a),s+o)))};for(let u=n;u<t.length;u++){let n=t.charCodeAt(u);if(n==124&&!h){if(!l||o>-1)i++;l=false;if(r){if(o>-1)f();r.push(e.elt("TableDelimiter",u+s,u+s+1))}o=a=-1}else if(h||n!=32&&n!=9){if(o<0)o=u;a=u+1}h=!h&&n==92}if(o>-1){i++;if(r)f()}return i}function Se(e,t){for(let n=t;n<e.length;n++){let t=e.charCodeAt(n);if(t==124)return true;if(t==92)n++}return false}const Ce=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class ye{constructor(){this.rows=null}nextLine(e,t,n){if(this.rows==null){this.rows=false;let r;if((t.next==45||t.next==58||t.next==124)&&Ce.test(r=t.text.slice(t.pos))){let s=[],i=we(e,n.content,0,s,n.start);if(i==we(e,r,t.pos))this.rows=[e.elt("TableHeader",n.start,n.start+n.content.length,s),e.elt("TableDelimiter",e.lineStart+t.pos,e.lineStart+t.text.length)]}}else if(this.rows){let n=[];we(e,t.text,t.pos,n,e.lineStart);this.rows.push(e.elt("TableRow",e.lineStart+t.pos,e.lineStart+t.text.length,n))}return false}finish(e,t){if(!this.rows)return false;e.addLeafElement(t,e.elt("Table",t.start,t.start+t.content.length,this.rows));return true}}const Te={defineNodes:[{name:"Table",block:true},{name:"TableHeader",style:{"TableHeader/...":a.tags.heading}},"TableRow",{name:"TableCell",style:a.tags.content},{name:"TableDelimiter",style:a.tags.processingInstruction}],parseBlock:[{name:"Table",leaf(e,t){return Se(t.content,0)?new ye:null},endLeaf(e,t,n){if(n.parsers.some((e=>e instanceof ye))||!Se(t.text,t.basePos))return false;let r=e.scanLine(e.absoluteLineEnd+1).text;return Ce.test(r)&&we(e,t.text,t.basePos)==we(e,r,t.basePos)},before:"SetextHeading"}]};class Ae{nextLine(){return false}finish(e,t){e.addLeafElement(t,e.elt("Task",t.start,t.start+t.content.length,[e.elt("TaskMarker",t.start,t.start+3),...e.parser.parseInline(t.content.slice(3),t.start+3)]));return true}}const Ie={defineNodes:[{name:"Task",block:true,style:a.tags.list},{name:"TaskMarker",style:a.tags.atom}],parseBlock:[{name:"TaskList",leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name=="ListItem"?new Ae:null},after:"SetextHeading"}]};const Be=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy;const Ee=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy;const Me=/[\w-]+\.[\w-]+($|\/)/;const Pe=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy;const He=/\/[a-zA-Z\d@.]+/gy;function ve(e,t,n,r){let s=0;for(let i=t;i<n;i++)if(e[i]==r)s++;return s}function Ne(e,t){Ee.lastIndex=t;let n=Ee.exec(e);if(!n||Me.exec(n[0])[0].indexOf("_")>-1)return-1;let r=t+n[0].length;for(;;){let n=e[r-1],s;if(/[?!.,:*_~]/.test(n)||n==")"&&ve(e,t,r,")")>ve(e,t,r,"("))r--;else if(n==";"&&(s=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))r=t+s.index;else break}return r}function Oe(e,t){Pe.lastIndex=t;let n=Pe.exec(e);if(!n)return-1;let r=n[0][n[0].length-1];return r=="_"||r=="-"?-1:t+n[0].length-(r=="."?1:0)}const Re={parseInline:[{name:"Autolink",parse(e,t,n){let r=n-e.offset;Be.lastIndex=r;let s=Be.exec(e.text),i=-1;if(!s)return-1;if(s[1]||s[2]){i=Ne(e.text,r+s[0].length)}else if(s[3]){i=Oe(e.text,r)}else{i=Oe(e.text,r+s[0].length);if(i>-1&&s[0]=="xmpp:"){He.lastIndex=i;s=He.exec(e.text);if(s)i=s.index+s[0].length}}if(i<0)return-1;e.addElement(e.elt("URL",n,i+e.offset));return i+e.offset}}]};const Xe=[Te,Ie,Le,Re];function De(e,t,n){return(r,s,i)=>{if(s!=e||r.char(i+1)==e)return-1;let l=[r.elt(n,i,i+1)];for(let o=i+1;o<r.end;o++){let s=r.char(o);if(s==e)return r.addElement(r.elt(t,i,o+1,l.concat(r.elt(n,o,o+1))));if(s==92)l.push(r.elt("Escape",o,o+++2));if(g(s))break}return-1}}const ze={defineNodes:[{name:"Superscript",style:a.tags.special(a.tags.content)},{name:"SuperscriptMark",style:a.tags.processingInstruction}],parseInline:[{name:"Superscript",parse:De(94,"Superscript","SuperscriptMark")}]};const $e={defineNodes:[{name:"Subscript",style:a.tags.special(a.tags.content)},{name:"SubscriptMark",style:a.tags.processingInstruction}],parseInline:[{name:"Subscript",parse:De(126,"Subscript","SubscriptMark")}]};const Fe={defineNodes:[{name:"Emoji",style:a.tags.character}],parseInline:[{name:"Emoji",parse(e,t,n){let r;if(t!=58||!(r=/^[a-zA-Z_0-9]+:/.exec(e.slice(n+1,e.end))))return-1;return e.addElement(e.elt("Emoji",n,n+1+r[0].length))}}]};var _e=n(60049);const je=(0,i.defineLanguageFacet)({commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}}});const qe=new o.NodeProp;const Ue=me.configure({props:[i.foldNodeProp.add((e=>!e.is("Block")||e.is("Document")||Qe(e)!=null?undefined:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to}))),qe.add(Qe),i.indentNodeProp.add({Document:()=>null}),i.languageDataProp.add({Document:je})]});function Qe(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:undefined}function Ze(e,t){let n=e;for(;;){let e=n.nextSibling,r;if(!e||(r=Qe(e.type))!=null&&r<=t)break;n=e}return n.to}const Ke=i.foldService.of(((e,t,n)=>{for(let r=(0,i.syntaxTree)(e).resolveInner(n,-1);r;r=r.parent){if(r.from<t)break;let e=r.type.prop(qe);if(e==null)continue;let s=Ze(r,e);if(s>n)return{from:n,to:s}}return null}));function Ve(e){return new i.Language(je,e,[Ke],"markdown")}const Ge=Ve(Ue);const Je=Ue.configure([Xe,$e,ze,Fe,{props:[i.foldNodeProp.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]);const We=Ve(Je);function Ye(e,t){return n=>{if(n&&e){let t=null;n=/\S*/.exec(n)[0];if(typeof e=="function")t=e(n);else t=i.LanguageDescription.matchLanguageName(e,n,true);if(t instanceof i.LanguageDescription)return t.support?t.support.language.parser:i.ParseContext.getSkippingParser(t.load());else if(t)return t.parser}return t?t.parser:null}}class et{constructor(e,t,n,r,s,i,l){this.node=e;this.from=t;this.to=n;this.spaceBefore=r;this.spaceAfter=s;this.type=i;this.item=l}blank(e,t=true){let n=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(e!=null){while(n.length<e)n+=" ";return n}else{for(let e=this.to-this.from-n.length-this.spaceAfter.length;e>0;e--)n+=" ";return n+(t?this.spaceAfter:"")}}marker(e,t){let n=this.node.name=="OrderedList"?String(+nt(this.item,e)[2]+t):"";return this.spaceBefore+n+this.type+this.spaceAfter}}function tt(e,t){let n=[];for(let s=e;s&&s.name!="Document";s=s.parent){if(s.name=="ListItem"||s.name=="Blockquote"||s.name=="FencedCode")n.push(s)}let r=[];for(let s=n.length-1;s>=0;s--){let e=n[s],i;let l=t.lineAt(e.from),o=e.from-l.from;if(e.name=="FencedCode"){r.push(new et(e,o,o,"","","",null))}else if(e.name=="Blockquote"&&(i=/^ *>( ?)/.exec(l.text.slice(o)))){r.push(new et(e,o,o+i[0].length,"",i[1],">",null))}else if(e.name=="ListItem"&&e.parent.name=="OrderedList"&&(i=/^( *)\d+([.)])( *)/.exec(l.text.slice(o)))){let t=i[3],n=i[0].length;if(t.length>=4){t=t.slice(0,t.length-4);n-=4}r.push(new et(e.parent,o,o+n,i[1],t,i[2],e))}else if(e.name=="ListItem"&&e.parent.name=="BulletList"&&(i=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(l.text.slice(o)))){let t=i[4],n=i[0].length;if(t.length>4){t=t.slice(0,t.length-4);n-=4}let s=i[2];if(i[3])s+=i[3].replace(/[xX]/," ");r.push(new et(e.parent,o,o+n,i[1],t,s,e))}}return r}function nt(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function rt(e,t,n,r=0){for(let s=-1,i=e;;){if(i.name=="ListItem"){let e=nt(i,t);let l=+e[2];if(s>=0){if(l!=s+1)return;n.push({from:i.from+e[1].length,to:i.from+e[0].length,insert:String(s+2+r)})}s=l}let e=i.nextSibling;if(!e)break;i=e}}function st(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||t.facet(i.indentUnit)!="\t")return e;let s=(0,r.countColumn)(e,4,n);let l="";for(let r=s;r>0;){if(r>=4){l+="\t";r-=4}else{l+=" ";r--}}return l+e.slice(n)}const it=({state:e,dispatch:t})=>{let n=(0,i.syntaxTree)(e),{doc:s}=e;let l=null,o=e.changeByRange((t=>{if(!t.empty||!We.isActiveAt(e,t.from))return l={range:t};let i=t.from,o=s.lineAt(i);let a=tt(n.resolveInner(i,-1),s);while(a.length&&a[a.length-1].from>i-o.from)a.pop();if(!a.length)return l={range:t};let h=a[a.length-1];if(h.to-h.spaceAfter.length>i-o.from)return l={range:t};let f=i>=h.to-h.spaceAfter.length&&!/\S/.test(o.text.slice(h.to));if(h.item&&f){let t=h.node.firstChild,n=h.node.getChild("ListItem","ListItem");if(t.to>=i||n&&n.to<i||o.from>0&&!/[^\s>]/.test(s.lineAt(o.from-1).text)){let e=a.length>1?a[a.length-2]:null;let t,n="";if(e&&e.item){t=o.from+e.from;n=e.marker(s,1)}else{t=o.from+(e?e.to:0)}let l=[{from:t,to:i,insert:n}];if(h.node.name=="OrderedList")rt(h.item,s,l,-2);if(e&&e.node.name=="OrderedList")rt(e.item,s,l);return{range:r.EditorSelection.cursor(t+n.length),changes:l}}else{let t=at(a,e,o);return{range:r.EditorSelection.cursor(i+t.length+1),changes:{from:o.from,insert:t+e.lineBreak}}}}if(h.node.name=="Blockquote"&&f&&o.from){let n=s.lineAt(o.from-1),r=/>\s*$/.exec(n.text);if(r&&r.index==h.from){let s=e.changes([{from:n.from+r.index,to:n.to},{from:o.from+h.from,to:o.to}]);return{range:t.map(s),changes:s}}}let u=[];if(h.node.name=="OrderedList")rt(h.item,s,u);let c=h.item&&h.item.from<o.from;let d="";if(!c||/^[\s\d.)\-+*>]*/.exec(o.text)[0].length>=h.to){for(let e=0,t=a.length-1;e<=t;e++){d+=e==t&&!c?a[e].marker(s,1):a[e].blank(e<t?(0,r.countColumn)(o.text,4,a[e+1].from)-d.length:null)}}let p=i;while(p>o.from&&/\s/.test(o.text.charAt(p-o.from-1)))p--;d=st(d,e);if(ot(h.node,e.doc))d=at(a,e,o)+e.lineBreak+d;u.push({from:p,to:i,insert:e.lineBreak+d});return{range:r.EditorSelection.cursor(p+d.length+1),changes:u}}));if(l)return false;t(e.update(o,{scrollIntoView:true,userEvent:"input"}));return true};function lt(e){return e.name=="QuoteMark"||e.name=="ListMark"}function ot(e,t){if(e.name!="OrderedList"&&e.name!="BulletList")return false;let n=e.firstChild,r=e.getChild("ListItem","ListItem");if(!r)return false;let s=t.lineAt(n.to),i=t.lineAt(r.from);let l=/^[\s>]*$/.test(s.text);return s.number+(l?0:1)<i.number}function at(e,t,n){let s="";for(let i=0,l=e.length-2;i<=l;i++){s+=e[i].blank(i<l?(0,r.countColumn)(n.text,4,e[i+1].from)-s.length:null,i<l)}return st(s,t)}function ht(e,t){let n=e.resolveInner(t,-1),r=t;if(lt(n)){r=n.from;n=n.parent}for(let s;s=n.childBefore(r);){if(lt(s)){r=s.from}else if(s.name=="OrderedList"||s.name=="BulletList"){n=s.lastChild;r=n.to}else{break}}return n}const ft=({state:e,dispatch:t})=>{let n=(0,i.syntaxTree)(e);let s=null,l=e.changeByRange((t=>{let i=t.from,{doc:l}=e;if(t.empty&&We.isActiveAt(e,t.from)){let t=l.lineAt(i);let s=tt(ht(n,i),l);if(s.length){let n=s[s.length-1];let l=n.to-n.spaceAfter.length+(n.spaceAfter?1:0);if(i-t.from>l&&!/\S/.test(t.text.slice(l,i-t.from)))return{range:r.EditorSelection.cursor(t.from+l),changes:{from:t.from+l,to:i}};if(i-t.from==l&&(!n.item||t.from<=n.item.from||!/\S/.test(t.text.slice(0,n.to)))){let s=t.from+n.from;if(n.item&&n.node.from<n.item.from&&/\S/.test(t.text.slice(n.from,n.to))){let i=n.blank((0,r.countColumn)(t.text,4,n.to)-(0,r.countColumn)(t.text,4,n.from));if(s==t.from)i=st(i,e);return{range:r.EditorSelection.cursor(s+i.length),changes:{from:s,to:t.from+n.to,insert:i}}}if(s<i)return{range:r.EditorSelection.cursor(s),changes:{from:s,to:i}}}}}return s={range:t}}));if(s)return false;t(e.update(l,{scrollIntoView:true,userEvent:"delete"}));return true};const ut=[{key:"Enter",run:it},{key:"Backspace",run:ft}];const ct=(0,_e.html)({matchClosingTags:false});function dt(e={}){let{codeLanguages:t,defaultCodeLanguage:n,addKeymap:l=true,base:{parser:o}=Ge,completeHTMLTags:a=true}=e;if(!(o instanceof _))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let h=e.extensions?[e.extensions]:[];let f=[ct.support],u;if(n instanceof i.LanguageSupport){f.push(n.support);u=n.language}else if(n){u=n}let c=t||u?Ye(t,u):undefined;h.push(xe({codeParser:c,htmlParser:ct.language.parser}));if(l)f.push(r.Prec.high(s.keymap.of(ut)));let d=Ve(o.configure(h));if(a)f.push(d.data.of({autocomplete:pt}));return new i.LanguageSupport(d,f)}function pt(e){let{state:t,pos:n}=e,r=/<[:\-\.\w\u00b7-\uffff]*$/.exec(t.sliceDoc(n-25,n));if(!r)return null;let s=(0,i.syntaxTree)(t).resolveInner(n,-1);while(s&&!s.type.isTop){if(s.name=="CodeBlock"||s.name=="FencedCode"||s.name=="ProcessingInstructionBlock"||s.name=="CommentBlock"||s.name=="Link"||s.name=="Image")return null;s=s.parent}return{from:n-r[0].length,to:n,options:mt(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}let gt=null;function mt(){if(gt)return gt;let e=(0,_e.htmlCompletionSource)(new l.TK(r.EditorState.create({extensions:ct}),0,true));return gt=e?e.options:[]}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9030],{9030:(e,t,O)=>{O.r(t);O.d(t,{autoCloseTags:()=>D,completeFromSchema:()=>N,xml:()=>I,xmlLanguage:()=>Z});var n=O(11705);var r=O(6016);const a=1,l=2,s=3,o=4,i=5,y=35,c=36,p=37,u=11,$=13;function f(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function g(e){return e==9||e==10||e==13||e==32}let S=null,m=null,d=0;function h(e,t){let O=e.pos+t;if(m==e&&d==O)return S;while(g(e.peek(t)))t++;let n="";for(;;){let O=e.peek(t);if(!f(O))break;n+=String.fromCharCode(O);t++}m=e;d=O;return S=n||null}function v(e,t){this.name=e;this.parent=t;this.hash=t?t.hash:0;for(let O=0;O<e.length;O++)this.hash+=(this.hash<<4)+e.charCodeAt(O)+(e.charCodeAt(O)<<8)}const P=new n.IK({start:null,shift(e,t,O,n){return t==a?new v(h(n,1)||"",e):e},reduce(e,t){return t==u&&e?e.parent:e},reuse(e,t,O,n){let r=t.type.id;return r==a||r==$?new v(h(n,1)||"",e):e},hash(e){return e?e.hash:0},strict:false});const T=new n.Jq(((e,t)=>{if(e.next!=60)return;e.advance();if(e.next==47){e.advance();let O=h(e,0);if(!O)return e.acceptToken(i);if(t.context&&O==t.context.name)return e.acceptToken(l);for(let n=t.context;n;n=n.parent)if(n.name==O)return e.acceptToken(s,-2);e.acceptToken(o)}else if(e.next!=33&&e.next!=63){return e.acceptToken(a)}}),{contextual:true});function _(e,t){return new n.Jq((O=>{for(let n=0,r=0;;r++){if(O.next<0){if(r)O.acceptToken(e);break}if(O.next==t.charCodeAt(n)){n++;if(n==t.length){if(r>=t.length)O.acceptToken(e,1-t.length);break}}else{n=O.next==t.charCodeAt(0)?1:0}O.advance()}}))}const C=_(y,"--\x3e");const b=_(c,"?>");const w=_(p,"]]>");const W=(0,r.styleTags)({Text:r.tags.content,"StartTag StartCloseTag EndTag SelfCloseEndTag":r.tags.angleBracket,TagName:r.tags.tagName,"MismatchedCloseTag/Tagname":[r.tags.tagName,r.tags.invalid],AttributeName:r.tags.attributeName,AttributeValue:r.tags.attributeValue,Is:r.tags.definitionOperator,"EntityReference CharacterReference":r.tags.character,Comment:r.tags.blockComment,ProcessingInst:r.tags.processingInstruction,DoctypeDecl:r.tags.documentMeta,Cdata:r.tags.special(r.tags.string)});const V=n.WQ.deserialize({version:14,states:",SOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DS'#DSOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C{'#C{O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C|'#C|O$dOrO,59^OOOP,59^,59^OOOS'#C}'#C}O$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6y-E6yOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6z-E6zOOOP1G.x1G.xOOOS-E6{-E6{OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$ZOOOP7+$Z7+$ZOOOP7+$c7+$cO'YOpO,59VO'bOpO,59VO'jO!bO,59eOOOO-E6w-E6wO'xOpO1G.uO'xOpO1G.uOOOP1G.u1G.uO(QOpO7+$fOOOP7+$f7+$fO(YO!bO<<GuOOOP<<Gu<<GuOOOP<<G}<<G}O'bOpO1G.qO'bOpO1G.qO(eO#tO'#CnOOOO1G.q1G.qO(sOpO7+$aOOOP7+$a7+$aOOOP<<HQ<<HQOOOPAN=aAN=aOOOPAN=iAN=iO'bOpO7+$]OOOO7+$]7+$]OOOO'#Cz'#CzO({O#tO,59YOOOO,59Y,59YOOOP<<G{<<G{OOOO<<Gw<<GwOOOO-E6x-E6xOOOO1G.t1G.t",stateData:")Z~OPQOSVOTWOVWOWWOXWOiXOxPO}TO!PUO~OuZOw]O~O^`Oy^O~OPQOQcOSVOTWOVWOWWOXWOxPO}TO!PUO~ORdO~P!SOseO|gO~OthO!OjO~O^lOy^O~OuZOwoO~O^qOy^O~O[vO`sOdwOy^O~ORyO~P!SO^{Oy^O~OseO|}O~OthO!O!PO~O^!QOy^O~O[!SOy^O~O[!VO`sOd!WOy^O~Oa!YOy^O~Oy^O[mX`mXdmX~O[!VO`sOd!WO~O^!]Oy^O~O[!_Oy^O~O[!aOy^O~O[!cO`sOd!dOy^O~O[!cO`sOd!dO~Oa!eOy^O~Oy^Oz!gO~Oy^O[ma`madma~O[!jOy^O~O[!kOy^O~O[!lO`sOd!mO~OW!pOX!pOz!rO{!pO~O[!sOy^O~OW!pOX!pOz!vO{!pO~O",goto:"%[wPPPPPPPPPPxxP!OP!UPP!_!iP!oxxxP!u!{#R$Z$j$p$v$|PPPP%SXWORYbXRORYb_t`qru!T!U!bQ!h!YS!o!e!fR!t!nQdRRybXSORYbQYORmYQ[PRn[Q_QQkVjp_krz!R!T!X!Z!^!`!f!i!nQr`QzcQ!RlQ!TqQ!XsQ!ZtQ!^{Q!`!QQ!f!YQ!i!]R!n!eQu`S!UqrU![u!U!bR!b!TQ!q!gR!u!qQbRRxbQfTR|fQiUR!OiSXOYTaRb",nodeNames:"⚠ StartTag StartCloseTag MissingCloseTag StartCloseTag StartCloseTag Document Text EntityReference CharacterReference Cdata Element EndTag OpenTag TagName Attribute AttributeName Is AttributeValue CloseTag SelfCloseEndTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag DoctypeDecl",maxTerm:47,context:P,nodeProps:[["closedBy",1,"SelfCloseEndTag EndTag",13,"CloseTag MissingCloseTag"],["openedBy",12,"StartTag StartCloseTag",19,"OpenTag",20,"StartTag"]],propSources:[W],skippedNodes:[0],repeatNodeCount:8,tokenData:"IX~R!XOX$nXY&kYZ&kZ]$n]^&k^p$npq&kqr$nrs'ssv$nvw(Zw}$n}!O*l!O!P$n!P!Q,{!Q![$n![!].e!]!^$n!^!_1v!_!`Cz!`!aDm!a!bE`!b!c$n!c!}.e!}#P$n#P#QFx#Q#R$n#R#S.e#S#T$n#T#o.e#o%W$n%W%o.e%o%p$n%p&a.e&a&b$n&b1p.e1p4U$n4U4d.e4d4e$n4e$IS.e$IS$I`$n$I`$Ib.e$Ib$Kh$n$Kh%#t.e%#t&/x$n&/x&Et.e&Et&FV$n&FV;'S.e;'S;:j1p;:j;=`&e<%l?&r$n?&r?Ah.e?Ah?BY$n?BY?Mn.e?MnO$nX$uWVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nP%dTVPOv%_w!^%_!_;'S%_;'S;=`%s<%lO%_P%vP;=`<%l%_W&OT{WOr%ysv%yw;'S%y;'S;=`&_<%lO%yW&bP;=`<%l%yX&hP;=`<%l$n_&t_VP{WyUOX$nXY&kYZ&kZ]$n]^&k^p$npq&kqr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZ'zTzYVPOv%_w!^%_!_;'S%_;'S;=`%s<%lO%_~(^VOp(sqs(sst)ht!](s!^;'S(s;'S;=`)b<%lO(s~(vVOp(sqs(st!](s!]!^)]!^;'S(s;'S;=`)b<%lO(s~)bOW~~)eP;=`<%l(s~)kTOp)zq!])z!^;'S)z;'S;=`*f<%lO)z~)}UOp)zq!])z!]!^*a!^;'S)z;'S;=`*f<%lO)z~*fOX~~*iP;=`<%l)zZ*sYVP{WOr$nrs%_sv$nw}$n}!O+c!O!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZ+jYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_!`$n!`!a,Y!a;'S$n;'S;=`&e<%lO$nZ,cW|QVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$n]-SYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_!`$n!`!a-r!a;'S$n;'S;=`&e<%lO$n]-{WdSVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$n_.p!O`S^QVP{WOr$nrs%_sv$nw}$n}!O.e!O!P.e!P!Q$n!Q![.e![!].e!]!^$n!^!_%y!_!c$n!c!}.e!}#R$n#R#S.e#S#T$n#T#o.e#o$}$n$}%O.e%O%W$n%W%o.e%o%p$n%p&a.e&a&b$n&b1p.e1p4U.e4U4d.e4d4e$n4e$IS.e$IS$I`$n$I`$Ib.e$Ib$Je$n$Je$Jg.e$Jg$Kh$n$Kh%#t.e%#t&/x$n&/x&Et.e&Et&FV$n&FV;'S.e;'S;:j1p;:j;=`&e<%l?&r$n?&r?Ah.e?Ah?BY$n?BY?Mn.e?MnO$n_1sP;=`<%l.eX1{W{WOq%yqr2esv%yw!a%y!a!bCd!b;'S%y;'S;=`&_<%lO%yX2j]{WOr%ysv%yw}%y}!O3c!O!f%y!f!g4e!g!}%y!}#O9t#O#W%y#W#X@Q#X;'S%y;'S;=`&_<%lO%yX3hV{WOr%ysv%yw}%y}!O3}!O;'S%y;'S;=`&_<%lO%yX4UT}P{WOr%ysv%yw;'S%y;'S;=`&_<%lO%yX4jV{WOr%ysv%yw!q%y!q!r5P!r;'S%y;'S;=`&_<%lO%yX5UV{WOr%ysv%yw!e%y!e!f5k!f;'S%y;'S;=`&_<%lO%yX5pV{WOr%ysv%yw!v%y!v!w6V!w;'S%y;'S;=`&_<%lO%yX6[V{WOr%ysv%yw!{%y!{!|6q!|;'S%y;'S;=`&_<%lO%yX6vV{WOr%ysv%yw!r%y!r!s7]!s;'S%y;'S;=`&_<%lO%yX7bV{WOr%ysv%yw!g%y!g!h7w!h;'S%y;'S;=`&_<%lO%yX7|X{WOr7wrs8isv7wvw8iw!`7w!`!a9W!a;'S7w;'S;=`9n<%lO7wP8lTO!`8i!`!a8{!a;'S8i;'S;=`9Q<%lO8iP9QOiPP9TP;=`<%l8iX9_TiP{WOr%ysv%yw;'S%y;'S;=`&_<%lO%yX9qP;=`<%l7wX9yX{WOr%ysv%yw!e%y!e!f:f!f#V%y#V#W=t#W;'S%y;'S;=`&_<%lO%yX:kV{WOr%ysv%yw!f%y!f!g;Q!g;'S%y;'S;=`&_<%lO%yX;VV{WOr%ysv%yw!c%y!c!d;l!d;'S%y;'S;=`&_<%lO%yX;qV{WOr%ysv%yw!v%y!v!w<W!w;'S%y;'S;=`&_<%lO%yX<]V{WOr%ysv%yw!c%y!c!d<r!d;'S%y;'S;=`&_<%lO%yX<wV{WOr%ysv%yw!}%y!}#O=^#O;'S%y;'S;=`&_<%lO%yX=eT{WxPOr%ysv%yw;'S%y;'S;=`&_<%lO%yX=yV{WOr%ysv%yw#W%y#W#X>`#X;'S%y;'S;=`&_<%lO%yX>eV{WOr%ysv%yw#T%y#T#U>z#U;'S%y;'S;=`&_<%lO%yX?PV{WOr%ysv%yw#h%y#h#i?f#i;'S%y;'S;=`&_<%lO%yX?kV{WOr%ysv%yw#T%y#T#U<r#U;'S%y;'S;=`&_<%lO%yX@VV{WOr%ysv%yw#c%y#c#d@l#d;'S%y;'S;=`&_<%lO%yX@qV{WOr%ysv%yw#V%y#V#WAW#W;'S%y;'S;=`&_<%lO%yXA]V{WOr%ysv%yw#h%y#h#iAr#i;'S%y;'S;=`&_<%lO%yXAwV{WOr%ysv%yw#m%y#m#nB^#n;'S%y;'S;=`&_<%lO%yXBcV{WOr%ysv%yw#d%y#d#eBx#e;'S%y;'S;=`&_<%lO%yXB}V{WOr%ysv%yw#X%y#X#Y7w#Y;'S%y;'S;=`&_<%lO%yXCkT!PP{WOr%ysv%yw;'S%y;'S;=`&_<%lO%yZDTWaQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$n_DvW[UVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZEgYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_!`$n!`!aFV!a;'S$n;'S;=`&e<%lO$nZF`W!OQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZGPYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_#P$n#P#QGo#Q;'S$n;'S;=`&e<%lO$nZGvYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_!`$n!`!aHf!a;'S$n;'S;=`&e<%lO$nZHoWwQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$n",tokenizers:[T,C,b,w,0,1,2,3],topRules:{Document:[0,6]},tokenPrec:0});var x=O(24104);var X=O(37496);var Q=O(66143);function k(e,t){let O=t&&t.getChild("TagName");return O?e.sliceString(O.from,O.to):""}function E(e,t){let O=t&&t.firstChild;return!O||O.name!="OpenTag"?"":k(e,O)}function G(e,t,O){let n=t&&t.getChildren("Attribute").find((e=>e.from<=O&&e.to>=O));let r=n&&n.getChild("AttributeName");return r?e.sliceString(r.from,r.to):""}function R(e){for(let t=e&&e.parent;t;t=t.parent)if(t.name=="Element")return t;return null}function Y(e,t){var O;let n=(0,x.syntaxTree)(e).resolveInner(t,-1),r=null;for(let a=n;!r&&a.parent;a=a.parent)if(a.name=="OpenTag"||a.name=="CloseTag"||a.name=="SelfClosingTag"||a.name=="MismatchedCloseTag")r=a;if(r&&(r.to>t||r.lastChild.type.isError)){let e=r.parent;if(n.name=="TagName")return r.name=="CloseTag"||r.name=="MismatchedCloseTag"?{type:"closeTag",from:n.from,context:e}:{type:"openTag",from:n.from,context:R(e)};if(n.name=="AttributeName")return{type:"attrName",from:n.from,context:r};if(n.name=="AttributeValue")return{type:"attrValue",from:n.from,context:r};let O=n==r||n.name=="Attribute"?n.childBefore(t):n;if((O===null||O===void 0?void 0:O.name)=="StartTag")return{type:"openTag",from:t,context:R(e)};if((O===null||O===void 0?void 0:O.name)=="StartCloseTag"&&O.to<=t)return{type:"closeTag",from:t,context:e};if((O===null||O===void 0?void 0:O.name)=="Is")return{type:"attrValue",from:t,context:r};if(O)return{type:"attrName",from:t,context:r};return null}else if(n.name=="StartCloseTag"){return{type:"closeTag",from:t,context:n.parent}}while(n.parent&&n.to==t&&!((O=n.lastChild)===null||O===void 0?void 0:O.type.isError))n=n.parent;if(n.name=="Element"||n.name=="Text"||n.name=="Document")return{type:"tag",from:t,context:n.name=="Element"?n:R(n)};return null}class z{constructor(e,t,O){this.attrs=t;this.attrValues=O;this.children=[];this.name=e.name;this.completion=Object.assign(Object.assign({type:"type"},e.completion||{}),{label:this.name});this.openCompletion=Object.assign(Object.assign({},this.completion),{label:"<"+this.name});this.closeCompletion=Object.assign(Object.assign({},this.completion),{label:"</"+this.name+">",boost:2});this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"});this.text=e.textContent?e.textContent.map((e=>({label:e,type:"text"}))):[]}}const j=/^[:\-\.\w\u00b7-\uffff]*$/;function A(e){return Object.assign(Object.assign({type:"property"},e.completion||{}),{label:e.name})}function q(e){return typeof e=="string"?{label:`"${e}"`,type:"constant"}:/^"/.test(e.label)?e:Object.assign(Object.assign({},e),{label:`"${e.label}"`})}function N(e,t){let O=[],n=[];let r=Object.create(null);for(let o of t){let e=A(o);O.push(e);if(o.global)n.push(e);if(o.values)r[o.name]=o.values.map(q)}let a=[],l=[];let s=Object.create(null);for(let o of e){let e=n,t=r;if(o.attributes)e=e.concat(o.attributes.map((e=>{if(typeof e=="string")return O.find((t=>t.label==e))||{label:e,type:"property"};if(e.values){if(t==r)t=Object.create(t);t[e.name]=e.values.map(q)}return A(e)})));let i=new z(o,e,t);s[i.name]=i;a.push(i);if(o.top)l.push(i)}if(!l.length)l=a;for(let o=0;o<a.length;o++){let t=e[o],O=a[o];if(t.children){for(let e of t.children)if(s[e])O.children.push(s[e])}else{O.children=a}}return e=>{var t;let{doc:O}=e.state,o=Y(e.state,e.pos);if(!o||o.type=="tag"&&!e.explicit)return null;let{type:i,from:y,context:c}=o;if(i=="openTag"){let e=l;let t=E(O,c);if(t){let O=s[t];e=(O===null||O===void 0?void 0:O.children)||a}return{from:y,options:e.map((e=>e.completion)),validFor:j}}else if(i=="closeTag"){let n=E(O,c);return n?{from:y,to:e.pos+(O.sliceString(e.pos,e.pos+1)==">"?1:0),options:[((t=s[n])===null||t===void 0?void 0:t.closeNameCompletion)||{label:n+">",type:"type"}],validFor:j}:null}else if(i=="attrName"){let e=s[k(O,c)];return{from:y,options:(e===null||e===void 0?void 0:e.attrs)||n,validFor:j}}else if(i=="attrValue"){let t=G(O,c,y);if(!t)return null;let n=s[k(O,c)];let a=((n===null||n===void 0?void 0:n.attrValues)||r)[t];if(!a||!a.length)return null;return{from:y,to:e.pos+(O.sliceString(e.pos,e.pos+1)=='"'?1:0),options:a,validFor:/^"[^"]*"?$/}}else if(i=="tag"){let t=E(O,c),n=s[t];let r=[],o=c&&c.lastChild;if(t&&(!o||o.name!="CloseTag"||k(O,o)!=t))r.push(n?n.closeCompletion:{label:"</"+t+">",type:"type",boost:2});let i=r.concat(((n===null||n===void 0?void 0:n.children)||(c?a:l)).map((e=>e.openCompletion)));if(c&&(n===null||n===void 0?void 0:n.text.length)){let t=c.firstChild;if(t.to>e.pos-20&&!/\S/.test(e.state.sliceDoc(t.to,e.pos)))i=i.concat(n.text)}return{from:y,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}else{return null}}}const Z=x.LRLanguage.define({name:"xml",parser:V.configure({props:[x.indentNodeProp.add({Element(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),x.foldNodeProp.add({Element(e){let t=e.firstChild,O=e.lastChild;if(!t||t.name!="OpenTag")return null;return{from:t.to,to:O.name=="CloseTag"?O.from:e.to}}}),x.bracketMatchingHandle.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/$/}});function I(e={}){let t=[Z.data.of({autocomplete:N(e.elements||[],e.attributes||[])})];if(e.autoCloseTags!==false)t.push(D);return new x.LanguageSupport(Z,t)}function U(e,t,O=e.length){if(!t)return"";let n=t.firstChild;let r=n&&n.getChild("TagName");return r?e.sliceString(r.from,Math.min(r.to,O)):""}const D=Q.EditorView.inputHandler.of(((e,t,O,n,r)=>{if(e.composing||e.state.readOnly||t!=O||n!=">"&&n!="/"||!Z.isActiveAt(e.state,t,-1))return false;let a=r(),{state:l}=a;let s=l.changeByRange((e=>{var t,O,r;let{head:a}=e;let s=l.doc.sliceString(a-1,a)==n;let o=(0,x.syntaxTree)(l).resolveInner(a,-1),i;if(s&&n==">"&&o.name=="EndTag"){let n=o.parent;if(((O=(t=n.parent)===null||t===void 0?void 0:t.lastChild)===null||O===void 0?void 0:O.name)!="CloseTag"&&(i=U(l.doc,n.parent,a))){let t=a+(l.doc.sliceString(a,a+1)===">"?1:0);let O=`</${i}>`;return{range:e,changes:{from:a,to:t,insert:O}}}}else if(s&&n=="/"&&o.name=="StartCloseTag"){let e=o.parent;if(o.from==a-2&&((r=e.lastChild)===null||r===void 0?void 0:r.name)!="CloseTag"&&(i=U(l.doc,e,a))){let e=a+(l.doc.sliceString(a,a+1)===">"?1:0);let t=`${i}>`;return{range:X.EditorSelection.cursor(a+t.length,-1),changes:{from:a,to:e,insert:t}}}}return{range:e}}));if(s.changes.empty)return false;e.dispatch([a,l.update(s,{userEvent:"input.complete",scrollIntoView:true})]);return true}))}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9041],{19041:(e,t,s)=>{s.d(t,{pV:()=>us});var i=s(73265);var n=s.n(i);var r=s(11705);var l=s(34155);class a{constructor(e){this.start=e}}class o extends a{constructor(e,t,s,i,n,r,l,a,o,u,h,f,c,p,d){super(e);this.rules=t;this.topRules=s;this.tokens=i;this.localTokens=n;this.context=r;this.externalTokens=l;this.externalSpecializers=a;this.externalPropSources=o;this.precedences=u;this.mainSkip=h;this.scopedSkip=f;this.dialects=c;this.externalProps=p;this.autoDelim=d}toString(){return Object.values(this.rules).join("\n")}}class u extends a{constructor(e,t,s,i,n){super(e);this.id=t;this.props=s;this.params=i;this.expr=n}toString(){return this.id.name+(this.params.length?`<${this.params.join()}>`:"")+" -> "+this.expr}}class h extends a{constructor(e,t){super(e);this.items=t}}class f extends a{constructor(e,t){super(e);this.items=t}}class c extends a{constructor(e,t,s){super(e);this.a=t;this.b=s}}class p extends a{constructor(e,t,s,i,n){super(e);this.precedences=t;this.conflicts=s;this.rules=i;this.literals=n}}class d extends a{constructor(e,t,s,i){super(e);this.precedences=t;this.rules=s;this.fallback=i}}class m extends a{constructor(e,t,s){super(e);this.literal=t;this.props=s}}class g extends a{constructor(e,t,s){super(e);this.id=t;this.source=s}}class k extends a{constructor(e,t,s,i){super(e);this.id=t;this.source=s;this.tokens=i}}class x extends a{constructor(e,t,s,i,n,r){super(e);this.type=t;this.token=s;this.id=i;this.source=n;this.tokens=r}}class b extends a{constructor(e,t,s){super(e);this.id=t;this.source=s}}class w extends a{constructor(e,t,s,i){super(e);this.id=t;this.externalID=s;this.source=i}}class y extends a{constructor(e,t){super(e);this.name=t}toString(){return this.name}}class $ extends a{walk(e){return e(this)}eq(e){return false}}$.prototype.prec=10;class v extends ${constructor(e,t,s){super(e);this.id=t;this.args=s}toString(){return this.id.name+(this.args.length?`<${this.args.join()}>`:"")}eq(e){return this.id.name==e.id.name&&G(this.args,e.args)}walk(e){let t=C(this.args,e);return e(t==this.args?this:new v(this.start,this.id,t))}}class S extends ${constructor(e,t,s,i,n){super(e);this.type=t;this.props=s;this.token=i;this.content=n}toString(){return`@${this.type}[${this.props.join(",")}]<${this.token}, ${this.content}>`}eq(e){return this.type==e.type&&E.eqProps(this.props,e.props)&&D(this.token,e.token)&&D(this.content,e.content)}walk(e){let t=this.token.walk(e),s=this.content.walk(e);return e(t==this.token&&s==this.content?this:new S(this.start,this.type,this.props,t,s))}}class T extends ${constructor(e,t){super(e);this.rule=t}toString(){let e=this.rule;return`${e.id}${e.props.length?`[${e.props.join(",")}]`:""} { ${e.expr} }`}eq(e){let t=this.rule,s=e.rule;return D(t.expr,s.expr)&&t.id.name==s.id.name&&E.eqProps(t.props,s.props)}walk(e){let t=this.rule,s=t.expr.walk(e);return e(s==t.expr?this:new T(this.start,new u(t.start,t.id,t.props,[],s)))}}class R extends ${constructor(e,t){super(e);this.exprs=t}toString(){return this.exprs.map((e=>_(e,this))).join(" | ")}eq(e){return G(this.exprs,e.exprs)}walk(e){let t=C(this.exprs,e);return e(t==this.exprs?this:new R(this.start,t))}}R.prototype.prec=1;class O extends ${constructor(e,t,s,i=false){super(e);this.exprs=t;this.markers=s;this.empty=i}toString(){return this.empty?"()":this.exprs.map((e=>_(e,this))).join(" ")}eq(e){return G(this.exprs,e.exprs)&&this.markers.every(((t,s)=>{let i=e.markers[s];return t.length==i.length&&t.every(((e,t)=>e.eq(i[t])))}))}walk(e){let t=C(this.exprs,e);return e(t==this.exprs?this:new O(this.start,t,this.markers,this.empty&&!t.length))}}O.prototype.prec=2;class P extends a{constructor(e,t,s){super(e);this.id=t;this.type=s}toString(){return(this.type=="ambig"?"~":"!")+this.id.name}eq(e){return this.id.name==e.id.name&&this.type==e.type}}class j extends ${constructor(e,t,s){super(e);this.expr=t;this.kind=s}toString(){return _(this.expr,this)+this.kind}eq(e){return D(this.expr,e.expr)&&this.kind==e.kind}walk(e){let t=this.expr.walk(e);return e(t==this.expr?this:new j(this.start,t,this.kind))}}j.prototype.prec=3;class N extends ${constructor(e,t){super(e);this.value=t}toString(){return JSON.stringify(this.value)}eq(e){return this.value==e.value}}class A extends ${constructor(e,t,s){super(e);this.ranges=t;this.inverted=s}toString(){return`[${this.inverted?"^":""}${this.ranges.map((([e,t])=>String.fromCodePoint(e)+(t==e+1?"":"-"+String.fromCodePoint(t))))}]`}eq(e){return this.inverted==e.inverted&&this.ranges.length==e.ranges.length&&this.ranges.every((([t,s],i)=>{let[n,r]=e.ranges[i];return t==n&&s==r}))}}class z extends ${constructor(e){super(e)}toString(){return"_"}eq(){return true}}function C(e,t){let s=null;for(let i=0;i<e.length;i++){let n=e[i].walk(t);if(n!=e[i]&&!s)s=e.slice(0,i);if(s)s.push(n)}return s||e}const I={asciiLetter:[[65,91],[97,123]],asciiLowercase:[[97,123]],asciiUppercase:[[65,91]],digit:[[48,58]],whitespace:[[9,14],[32,33],[133,134],[160,161],[5760,5761],[8192,8203],[8232,8234],[8239,8240],[8287,8288],[12288,12289]],eof:[[65535,65535]]};class q extends ${constructor(e,t){super(e);this.type=t}toString(){return"@"+this.type}eq(e){return this.type==e.type}}function D(e,t){return e.constructor==t.constructor&&e.eq(t)}function G(e,t){return e.length==t.length&&e.every(((e,s)=>D(e,t[s])))}class E extends a{constructor(e,t,s,i){super(e);this.at=t;this.name=s;this.value=i}eq(e){return this.name==e.name&&this.value.length==e.value.length&&this.value.every(((t,s)=>t.value==e.value[s].value&&t.name==e.value[s].name))}toString(){let e=(this.at?"@":"")+this.name;if(this.value.length){e+="=";for(let{name:t,value:s}of this.value)e+=t?`{${t}}`:/[^\w-]/.test(s)?JSON.stringify(s):s}return e}static eqProps(e,t){return e.length==t.length&&e.every(((e,s)=>e.eq(t[s])))}}class J extends a{constructor(e,t,s){super(e);this.value=t;this.name=s}}function _(e,t){return e.prec<t.prec?"("+e.toString()+")":e.toString()}class B extends Error{}function U(e){for(let t in e)return true;return false}let M=0;class F{constructor(e,t,s,i={}){this.name=e;this.flags=t;this.nodeName=s;this.props=i;this.hash=++M;this.id=-1;this.rules=[]}toString(){return this.name}get nodeType(){return this.top||this.nodeName!=null||U(this.props)||this.repeated}get terminal(){return(this.flags&1)>0}get eof(){return(this.flags&4)>0}get error(){return"error"in this.props}get top(){return(this.flags&2)>0}get interesting(){return this.flags>0||this.nodeName!=null}get repeated(){return(this.flags&16)>0}set preserve(e){this.flags=e?this.flags|8:this.flags&~8}get preserve(){return(this.flags&8)>0}set inline(e){this.flags=e?this.flags|32:this.flags&~32}get inline(){return(this.flags&32)>0}cmp(e){return this.hash-e.hash}}class L{constructor(){this.terms=[];this.names=Object.create(null);this.tops=[];this.eof=this.term("␄",null,1|4);this.error=this.term("⚠","⚠",8)}term(e,t,s=0,i={}){let n=new F(e,s,t,i);this.terms.push(n);this.names[e]=n;return n}makeTop(e,t){const s=this.term("@top",e,2,t);this.tops.push(s);return s}makeTerminal(e,t,s={}){return this.term(e,t,1,s)}makeNonTerminal(e,t,s={}){return this.term(e,t,0,s)}makeRepeat(e){return this.term(e,null,16)}uniqueName(e){for(let t=0;;t++){let s=t?`${e}-${t}`:e;if(!this.names[s])return s}}finish(e){for(let r of e)r.name.rules.push(r);this.terms=this.terms.filter((t=>t.terminal||t.preserve||e.some((e=>e.name==t||e.parts.includes(t)))));let t={};let s=[this.error];this.error.id=0;let i=0+1;for(let r of this.terms)if(r.id<0&&r.nodeType&&!r.repeated){r.id=i++;s.push(r)}let n=i;for(let r of this.terms)if(r.repeated){r.id=i++;s.push(r)}this.eof.id=i++;for(let r of this.terms){if(r.id<0)r.id=i++;if(r.name)t[r.id]=r.name}if(i>=65534)throw new B("Too many terms");return{nodeTypes:s,names:t,minRepeatTerm:n,maxTerm:i-1}}}function W(e,t,s){if(e.length!=t.length)return e.length-t.length;for(let i=0;i<e.length;i++){let n=s(e[i],t[i]);if(n)return n}return 0}const Q=[];class V{constructor(e,t=Q,s=0){this.precedence=e;this.ambigGroups=t;this.cut=s}join(e){if(this==V.none||this==e)return e;if(e==V.none)return this;return new V(Math.max(this.precedence,e.precedence),Y(this.ambigGroups,e.ambigGroups),Math.max(this.cut,e.cut))}cmp(e){return this.precedence-e.precedence||W(this.ambigGroups,e.ambigGroups,((e,t)=>e<t?-1:e>t?1:0))||this.cut-e.cut}}V.none=new V(0);function Y(e,t){if(e.length==0||e==t)return t;if(t.length==0)return e;let s=e.slice();for(let i of t)if(!e.includes(i))s.push(i);return s.sort()}let Z=0;class H{constructor(e,t,s,i){this.name=e;this.parts=t;this.conflicts=s;this.skip=i;this.id=Z++}cmp(e){return this.id-e.id}cmpNoName(e){return this.parts.length-e.parts.length||this.skip.hash-e.skip.hash||this.parts.reduce(((t,s,i)=>t||s.cmp(e.parts[i])),0)||W(this.conflicts,e.conflicts,((e,t)=>e.cmp(t)))}toString(){return this.name+" -> "+this.parts.join(" ")}get isRepeatWrap(){return this.name.repeated&&this.parts.length==2&&this.parts[0]==this.name}sameReduce(e){return this.name==e.name&&this.parts.length==e.parts.length&&this.isRepeatWrap==e.isRepeatWrap}}const K=65535;class X{constructor(e,t,s){this.from=e;this.to=t;this.target=s}toString(){return`-> ${this.target.id}[label=${JSON.stringify(this.from<0?"ε":ee(this.from)+(this.to>this.from+1?"-"+ee(this.to-1):""))}]`}}function ee(e){return e>K?"∞":e==10?"\\n":e==13?"\\r":e<32||e>=55296&&e<57343?"\\u{"+e.toString(16)+"}":String.fromCharCode(e)}function te(e,t){let s=Object.create(null);let i=Object.create(null);for(let n of e){let e=oe(n.accepting);let t=i[e]||(i[e]=[]);t.push(n);s[n.id]=t}for(;;){let i=false,n=Object.create(null);for(let t of e){if(n[t.id])continue;let e=s[t.id];if(e.length==1){n[e[0].id]=e;continue}let r=[];e:for(let t of e){for(let e of r){if(se(t,e[0],s)){e.push(t);continue e}}r.push([t])}if(r.length>1)i=true;for(let t of r)for(let e of t)n[e.id]=t}if(!i)return ie(e,t,s);s=n}}function se(e,t,s){if(e.edges.length!=t.edges.length)return false;for(let i=0;i<e.edges.length;i++){let n=e.edges[i],r=t.edges[i];if(n.from!=r.from||n.to!=r.to||s[n.target.id]!=s[r.target.id])return false}return true}function ie(e,t,s){for(let i of e){for(let e=0;e<i.edges.length;e++){let t=i.edges[e],n=s[t.target.id][0];if(n!=t.target)i.edges[e]=new X(t.from,t.to,n)}}return s[t.id][0]}let ne=1;let re=class e{constructor(e=[],t=ne++){this.accepting=e;this.id=t;this.edges=[]}edge(e,t,s){this.edges.push(new X(e,t,s))}nullEdge(e){this.edge(-1,-1,e)}compile(){let t=Object.create(null),s=0;let i=n(this.closure().sort(((e,t)=>e.id-t.id)));return te(Object.values(t),i);function n(i){let r=t[oe(i)]=new e(i.reduce(((e,t)=>Y(e,t.accepting)),[]),s++);let l=[];for(let e of i)for(let t of e.edges){if(t.from>=0)l.push(t)}let a=fe(l);for(let e of a){let s=e.targets.sort(((e,t)=>e.id-t.id));r.edge(e.from,e.to,t[oe(s)]||n(s))}return r}}closure(){let e=[],t=Object.create(null);function s(i){if(t[i.id])return;t[i.id]=true;if(i.edges.some((e=>e.from>=0))||i.accepting.length>0&&!i.edges.some((e=>ue(i.accepting,e.target.accepting))))e.push(i);for(let e of i.edges)if(e.from<0)s(e.target)}s(this);return e}findConflicts(e){let t=[],s=this.cycleTerms();function i(e,s,i,n,r){if(e.id<s.id){[e,s]=[s,e];i=-i}let l=t.find((t=>t.a==e&&t.b==s));if(!l)t.push(new le(e,s,i,ae(n),r&&ae(r)));else if(l.soft!=i)l.soft=0}this.reachable(((t,n)=>{if(t.accepting.length==0)return;for(let e=0;e<t.accepting.length;e++)for(let s=e+1;s<t.accepting.length;s++)i(t.accepting[e],t.accepting[s],0,n);t.reachable(((r,l)=>{if(r!=t)for(let a of r.accepting){let r=s.includes(a);for(let o of t.accepting)if(a!=o)i(a,o,r||s.includes(o)||!e(a,o)?0:1,n,n.concat(l))}}))}));return t}cycleTerms(){let e=[];this.reachable((t=>{for(let{target:s}of t.edges)e.push(t,s)}));let t=new Map;let s=[];for(let n=0;n<e.length;){let i=e[n++],r=e[n++];let l=t.get(i);if(!l)t.set(i,l=[]);if(l.includes(r))continue;if(i==r){if(!s.includes(i))s.push(i)}else{for(let t of l)e.push(i,t);l.push(r)}}let i=[];for(let n of s){for(let e of n.accepting){if(!i.includes(e))i.push(e)}}return i}reachable(e){let t=[],s=[];(function i(n){e(n,s);t.push(n);for(let e of n.edges)if(!t.includes(e.target)){s.push(e);i(e.target);s.pop()}})(this)}toString(){let e="digraph {\n";this.reachable((t=>{if(t.accepting.length)e+=` ${t.id} [label=${JSON.stringify(t.accepting.join())}];\n`;for(let s of t.edges)e+=` ${t.id} ${s};\n`}));return e+"}"}toArray(e,t){let s=[];let i=[];this.reachable((n=>{let r=i.length;let l=r+3+n.accepting.length*2;s[n.id]=r;i.push(n.stateMask(e),l,n.edges.length);n.accepting.sort(((e,s)=>t.indexOf(e.id)-t.indexOf(s.id)));for(let t of n.accepting)i.push(t.id,e[t.id]||65535);for(let e of n.edges)i.push(e.from,e.to,-e.target.id-1)}));for(let n=0;n<i.length;n++)if(i[n]<0)i[n]=s[-i[n]-1];if(i.length>Math.pow(2,16))throw new B("Tokenizer tables too big to represent with 16-bit offsets.");return Uint16Array.from(i)}stateMask(e){let t=0;this.reachable((s=>{for(let i of s.accepting)t|=e[i.id]||65535}));return t}};let le=class e{constructor(e,t,s,i,n){this.a=e;this.b=t;this.soft=s;this.exampleA=i;this.exampleB=n}};function ae(e){let t="";for(let s=0;s<e.length;s++)t+=String.fromCharCode(e[s].from);return t}function oe(e){let t="";for(let s of e){if(t.length)t+="-";t+=s.id}return t}function ue(e,t){if(e.length!=t.length)return false;for(let s=0;s<e.length;s++)if(e[s]!=t[s])return false;return true}class he{constructor(e,t,s){this.from=e;this.to=t;this.targets=s}}function fe(e){let t=[],s=[];for(let n of e){if(!t.includes(n.from))t.push(n.from);if(!t.includes(n.to))t.push(n.to)}t.sort(((e,t)=>e-t));for(let n=1;n<t.length;n++){let i=t[n-1],r=t[n];let l=[];for(let t of e)if(t.to>i&&t.from<r){for(let e of t.target.closure())if(!l.includes(e))l.push(e)}if(l.length)s.push(new he(i,r,l))}let i=e.filter((e=>e.from==65535&&e.to==65535));if(i.length){let e=[];for(let t of i)for(let s of t.target.closure())if(!e.includes(s))e.push(s);if(e.length)s.push(new he(65535,65535,e))}return s}let ce=/[\w_-]+/gy;try{ce=/[\p{Alphabetic}\d_-]+/guy}catch(ds){}const pe=[];class de{constructor(e,t=null){this.string=e;this.fileName=t;this.type="sof";this.value=null;this.start=0;this.end=0;this.next()}lineInfo(e){for(let t=1,s=0;;){let i=this.string.indexOf("\n",s);if(i>-1&&i<e){++t;s=i+1}else{return{line:t,ch:e-s}}}}message(e,t=-1){let s=this.fileName||"";if(t>-1){let e=this.lineInfo(t);s+=(s?" ":"")+e.line+":"+e.ch}return s?e+` (${s})`:e}raise(e,t=-1){throw new B(this.message(e,t))}match(e,t){let s=t.exec(this.string.slice(e));return s?e+s[0].length:-1}next(){let e=this.match(this.end,/^(\s|\/\/.*|\/\*[^]*?\*\/)*/);if(e==this.string.length)return this.set("eof",null,e,e);let t=this.string[e];if(t=='"'){let t=this.match(e+1,/^(\\.|[^"\\])*"/);if(t==-1)this.raise("Unterminated string literal",e);return this.set("string",Je(this.string.slice(e+1,t-1)),e,t)}else if(t=="'"){let t=this.match(e+1,/^(\\.|[^'\\])*'/);if(t==-1)this.raise("Unterminated string literal",e);return this.set("string",Je(this.string.slice(e+1,t-1)),e,t)}else if(t=="@"){ce.lastIndex=e+1;let t=ce.exec(this.string);if(!t)return this.raise("@ without a name",e);return this.set("at",t[0],e,e+1+t[0].length)}else if((t=="$"||t=="!")&&this.string[e+1]=="["){let t=this.match(e+2,/^(?:\\.|[^\]\\])*\]/);if(t==-1)this.raise("Unterminated character set",e);return this.set("set",this.string.slice(e+2,t-1),e,t)}else if(/[\[\]()!~+*?{}<>\.,|:$=]/.test(t)){return this.set(t,null,e,e+1)}else{ce.lastIndex=e;let s=ce.exec(this.string);if(!s)return this.raise("Unexpected character "+JSON.stringify(t),e);return this.set("id",s[0],e,e+s[0].length)}}set(e,t,s,i){this.type=e;this.value=t;this.start=s;this.end=i}eat(e,t=null){if(this.type==e&&(t==null||this.value===t)){this.next();return true}else{return false}}unexpected(){return this.raise(`Unexpected token '${this.string.slice(this.start,this.end)}'`,this.start)}expect(e,t=null){let s=this.value;if(this.type!=e||!(t==null||s===t))this.unexpected();this.next();return s}parse(){return me(this)}}function me(e){let t=e.start;let s=[];let i=null;let n=null;let r=[];let l=null;let a=[];let u=[];let h=null;let f=[];let c=[];let p=[];let d=[];let m=[];let k=false;let x=false;while(e.type!="eof"){let t=e.start;if(e.eat("at","top")){if(e.type!="id")e.raise(`Top rules must have a name`,e.start);m.push(ge(e,Pe(e)));k=true}else if(e.type=="at"&&e.value=="tokens"){if(n)e.raise(`Multiple @tokens declaractions`,e.start);else n=Ne(e)}else if(e.eat("at","local")){e.expect("id","tokens");r.push(Ae(e,t))}else if(e.eat("at","context")){if(h)e.raise(`Multiple @context declarations`,t);let s=Pe(e);e.expect("id","from");let i=e.expect("string");h=new g(t,s,i)}else if(e.eat("at","external")){if(e.eat("id","tokens"))f.push(qe(e,t));else if(e.eat("id","prop"))p.push(Ee(e,t));else if(e.eat("id","extend"))c.push(De(e,"extend",t));else if(e.eat("id","specialize"))c.push(De(e,"specialize",t));else if(e.eat("id","propSource"))d.push(Ge(e,t));else e.unexpected()}else if(e.eat("at","dialects")){e.expect("{");for(let t=true;!e.eat("}");t=false){if(!t)e.eat(",");u.push(Pe(e))}}else if(e.type=="at"&&e.value=="precedence"){if(i)e.raise(`Multiple precedence declarations`,e.start);i=je(e)}else if(e.eat("at","detectDelim")){x=true}else if(e.eat("at","skip")){let t=be(e);if(e.type=="{"){e.next();let s=[],i=[];while(!e.eat("}")){if(e.eat("at","top")){i.push(ge(e,Pe(e)));k=true}else{s.push(ge(e))}}a.push({expr:t,topRules:i,rules:s})}else{if(l)e.raise(`Multiple top-level skip declarations`,e.start);l=t}}else{s.push(ge(e))}}if(!k)return e.raise(`Missing @top declaration`);return new o(t,s,m,n,r,h,f,c,d,i,l,a,u,p,x)}function ge(e,t){let s=t?t.start:e.start;let i=t||Pe(e);let n=ke(e);let r=[];if(e.eat("<"))while(!e.eat(">")){if(r.length)e.expect(",");r.push(Pe(e))}let l=be(e);return new u(s,i,n,r,l)}function ke(e){if(e.type!="[")return pe;let t=[];e.expect("[");while(!e.eat("]")){if(t.length)e.expect(",");t.push(xe(e))}return t}function xe(e){let t=e.start,s=[],i=e.value,n=e.type=="at";if(!e.eat("at")&&!e.eat("id"))e.unexpected();if(e.eat("="))for(;;){if(e.type=="string"||e.type=="id"){s.push(new J(e.start,e.value,null));e.next()}else if(e.eat(".")){s.push(new J(e.start,".",null))}else if(e.eat("{")){s.push(new J(e.start,null,e.expect("id")));e.expect("}")}else{break}}return new E(t,n,i,s)}function be(e){e.expect("{");let t=Oe(e);e.expect("}");return t}const we="﷚";function ye(e){let t=e.start;if(e.eat("(")){if(e.eat(")"))return new O(t,pe,[pe,pe]);let s=Oe(e);e.expect(")");return s}else if(e.type=="string"){let s=e.value;e.next();if(s.length==0)return new O(t,pe,[pe,pe]);return new N(t,s)}else if(e.eat("id","_")){return new z(t)}else if(e.type=="set"){let s=e.value,i=e.string[e.start]=="!";let n=Je(s.replace(/\\.|-|"/g,(e=>e=="-"?we:e=='"'?'\\"':e)));let r=[];for(let t=0;t<n.length;){let s=n.codePointAt(t);t+=s>65535?2:1;if(t<n.length-1&&n[t]==we){let i=n.codePointAt(t+1);t+=i>65535?3:2;if(i<s)e.raise("Invalid character range",e.start);ve(e,r,s,i+1)}else{if(s==we.charCodeAt(0))s=45;ve(e,r,s,s+1)}}e.next();return new A(t,r.sort(((e,t)=>e[0]-t[0])),i)}else if(e.type=="at"&&(e.value=="specialize"||e.value=="extend")){let{start:t,value:s}=e;e.next();let i=ke(e);e.expect("<");let n=Oe(e),r;if(e.eat(",")){r=Oe(e)}else if(n instanceof N){r=n}else{e.raise(`@${s} requires two arguments when its first argument isn't a literal string`)}e.expect(">");return new S(t,s,i,n,r)}else if(e.type=="at"&&I.hasOwnProperty(e.value)){let t=new q(e.start,e.value);e.next();return t}else if(e.type=="["){let s=ge(e,new y(t,"_anon"));if(s.params.length)e.raise(`Inline rules can't have parameters`,s.start);return new T(t,s)}else{let s=Pe(e);if(e.type=="["||e.type=="{"){let i=ge(e,s);if(i.params.length)e.raise(`Inline rules can't have parameters`,i.start);return new T(t,i)}else{if(e.eat(".")&&s.name=="std"&&I.hasOwnProperty(e.value)){let s=new q(t,e.value);e.next();return s}return new v(t,s,$e(e))}}}function $e(e){let t=[];if(e.eat("<"))while(!e.eat(">")){if(t.length)e.expect(",");t.push(Oe(e))}return t}function ve(e,t,s,i){if(!t.every((([e,t])=>t<=s||e>=i)))e.raise("Overlapping character range",e.start);t.push([s,i])}function Se(e){let t=e.start;let s=ye(e);for(;;){let i=e.type;if(e.eat("*")||e.eat("?")||e.eat("+"))s=new j(t,s,i);else return s}}function Te(e){return e.type=="}"||e.type==")"||e.type=="|"||e.type=="/"||e.type=="/\\"||e.type=="{"||e.type==","||e.type==">"}function Re(e){let t=e.start,s=[],i=[pe];do{for(;;){let t=e.start,s;if(e.eat("~"))s="ambig";else if(e.eat("!"))s="prec";else break;i[i.length-1]=i[i.length-1].concat(new P(t,Pe(e),s))}if(Te(e))break;s.push(Se(e));i.push(pe)}while(!Te(e));if(s.length==1&&i.every((e=>e.length==0)))return s[0];return new O(t,s,i,!s.length)}function Oe(e){let t=e.start,s=Re(e);if(!e.eat("|"))return s;let i=[s];do{i.push(Re(e))}while(e.eat("|"));let n=i.find((e=>e instanceof O&&e.empty));if(n)e.raise("Empty expression in choice operator. If this is intentional, use () to make it explicit.",n.start);return new R(t,i)}function Pe(e){if(e.type!="id")e.unexpected();let t=e.start,s=e.value;e.next();return new y(t,s)}function je(e){let t=e.start;e.next();e.expect("{");let s=[];while(!e.eat("}")){if(s.length)e.eat(",");s.push({id:Pe(e),type:e.eat("at","left")?"left":e.eat("at","right")?"right":e.eat("at","cut")?"cut":null})}return new h(t,s)}function Ne(e){let t=e.start;e.next();e.expect("{");let s=[];let i=[];let n=[];let r=[];while(!e.eat("}")){if(e.type=="at"&&e.value=="precedence"){n.push(ze(e))}else if(e.type=="at"&&e.value=="conflict"){r.push(Ce(e))}else if(e.type=="string"){i.push(new m(e.start,e.expect("string"),ke(e)))}else{s.push(ge(e))}}return new p(t,n,r,s,i)}function Ae(e,t){e.expect("{");let s=[];let i=[];let n=null;while(!e.eat("}")){if(e.type=="at"&&e.value=="precedence"){i.push(ze(e))}else if(e.eat("at","else")&&!n){n={id:Pe(e),props:ke(e)}}else{s.push(ge(e))}}return new d(t,i,s,n)}function ze(e){let t=e.start;e.next();e.expect("{");let s=[];while(!e.eat("}")){if(s.length)e.eat(",");let t=ye(e);if(t instanceof N||t instanceof v)s.push(t);else e.raise(`Invalid expression in token precedences`,t.start)}return new f(t,s)}function Ce(e){let t=e.start;e.next();e.expect("{");let s=ye(e);if(!(s instanceof N||s instanceof v))e.raise(`Invalid expression in token conflict`,s.start);e.eat(",");let i=ye(e);if(!(i instanceof N||i instanceof v))e.raise(`Invalid expression in token conflict`,i.start);e.expect("}");return new c(t,s,i)}function Ie(e){let t=[];e.expect("{");while(!e.eat("}")){if(t.length)e.eat(",");let s=Pe(e);let i=ke(e);t.push({id:s,props:i})}return t}function qe(e,t){let s=Pe(e);e.expect("id","from");let i=e.expect("string");return new k(t,s,i,Ie(e))}function De(e,t,s){let i=be(e);let n=Pe(e);e.expect("id","from");let r=e.expect("string");return new x(s,t,i,n,r,Ie(e))}function Ge(e,t){let s=Pe(e);e.expect("id","from");return new b(t,s,e.expect("string"))}function Ee(e,t){let s=Pe(e);let i=e.eat("id","as")?Pe(e):s;e.expect("id","from");let n=e.expect("string");return new w(t,i,s,n)}function Je(e){let t=/\\(?:u\{([\da-f]+)\}|u([\da-f]{4})|x([\da-f]{2})|([ntbrf0])|(.))|[^]/giy;let s="",i;while(i=t.exec(e)){let[e,t,n,r,l,a]=i;if(t||n||r)s+=String.fromCodePoint(parseInt(t||n||r,16));else if(l)s+=l=="n"?"\n":l=="t"?"\t":l=="0"?"\0":l=="r"?"\r":l=="f"?"\f":"\b";else if(a)s+=a;else s+=e}return s}function _e(e,t){return(e<<5)+e+t}function Be(e,t){for(let s=0;s<t.length;s++)e=_e(e,t.charCodeAt(s));return e}const Ue=typeof l!="undefined"&&l.env.LOG||"";const Me=/\btime\b/.test(Ue);const Fe=Me?(e,t)=>{let s=Date.now();let i=t();console.log(`${e} (${((Date.now()-s)/1e3).toFixed(2)}s)`);return i}:(e,t)=>t();class Le{constructor(e,t,s,i,n,r){this.rule=e;this.pos=t;this.ahead=s;this.ambigAhead=i;this.skipAhead=n;this.via=r;this.hash=0}finish(){let e=_e(_e(this.rule.id,this.pos),this.skipAhead.hash);for(let t of this.ahead)e=_e(e,t.hash);for(let t of this.ambigAhead)e=Be(e,t);this.hash=e;return this}get next(){return this.pos<this.rule.parts.length?this.rule.parts[this.pos]:null}advance(){return new Le(this.rule,this.pos+1,this.ahead,this.ambigAhead,this.skipAhead,this.via).finish()}get skip(){return this.pos==this.rule.parts.length?this.skipAhead:this.rule.skip}cmp(e){return this.rule.cmp(e.rule)||this.pos-e.pos||this.skipAhead.hash-e.skipAhead.hash||W(this.ahead,e.ahead,((e,t)=>e.cmp(t)))||W(this.ambigAhead,e.ambigAhead,Ve)}eqSimple(e){return e.rule==this.rule&&e.pos==this.pos}toString(){let e=this.rule.parts.map((e=>e.name));e.splice(this.pos,0,"·");return`${this.rule.name} -> ${e.join(" ")}`}eq(e){return this==e||this.hash==e.hash&&this.rule==e.rule&&this.pos==e.pos&&this.skipAhead==e.skipAhead&&He(this.ahead,e.ahead)&&He(this.ambigAhead,e.ambigAhead)}trail(e=60){let t=[];for(let i=this;i;i=i.via){for(let e=i.pos-1;e>=0;e--)t.push(i.rule.parts[e])}let s=t.reverse().join(" ");if(s.length>e)s=s.slice(s.length-e).replace(/.*? /,"… ");return s}conflicts(e=this.pos){let t=this.rule.conflicts[e];if(e==this.rule.parts.length&&this.ambigAhead.length)t=t.join(new V(0,this.ambigAhead));return t}static addOrigins(e,t){let s=e.slice();for(let i=0;i<s.length;i++){let e=s[i];if(e.pos==0)for(let i of t){if(i.next==e.rule.name&&!s.includes(i))s.push(i)}}return s}}function We(e){let t=V.none;for(let s of e)t=t.join(s.conflicts());return t}function Qe(e,t){for(let s of e)if(s.rule.name.repeated){for(let e of t)if(e.rule.name==s.rule.name){if(s.rule.isRepeatWrap&&s.pos==2)return 1;if(e.rule.isRepeatWrap&&e.pos==2)return-1}}return 0}function Ve(e,t){return e<t?-1:e>t?1:0}function Ye(e,t,s,i){let n=[];for(let r=t+1;r<e.parts.length;r++){let t=e.parts[r],s=false;if(t.terminal){nt(t,n)}else for(let e of i[t.name]){if(e==null)s=true;else nt(e,n)}if(!s)return n}for(let r of s)nt(r,n);return n}function Ze(e,t){if(e.length!=t.length)return false;for(let s=0;s<e.length;s++)if(!e[s].eq(t[s]))return false;return true}function He(e,t){if(e.length!=t.length)return false;for(let s=0;s<e.length;s++)if(e[s]!=t[s])return false;return true}class Ke{constructor(e,t){this.term=e;this.target=t}eq(e){return e instanceof Ke&&this.term==e.term&&e.target.id==this.target.id}cmp(e){return e instanceof Xe?-1:this.term.id-e.term.id||this.target.id-e.target.id}matches(e,t){return e instanceof Ke&&t[e.target.id]==t[this.target.id]}toString(){return"s"+this.target.id}map(e,t){let s=t[e[this.target.id]];return s==this.target?this:new Ke(this.term,s)}}class Xe{constructor(e,t){this.term=e;this.rule=t}eq(e){return e instanceof Xe&&this.term==e.term&&e.rule.sameReduce(this.rule)}cmp(e){return e instanceof Ke?1:this.term.id-e.term.id||this.rule.name.id-e.rule.name.id||this.rule.parts.length-e.rule.parts.length}matches(e,t){return e instanceof Xe&&e.rule.sameReduce(this.rule)}toString(){return`${this.rule.name.name}(${this.rule.parts.length})`}map(){return this}}function et(e){let t=5381;for(let s of e)t=_e(t,s.hash);return t}class tt{constructor(e){this.first=e;this.conflicts=[]}}class st{constructor(e,t,s=0,i,n=et(t),r=null){this.id=e;this.set=t;this.flags=s;this.skip=i;this.hash=n;this.startRule=r;this.actions=[];this.actionPositions=[];this.goto=[];this.tokenGroup=-1;this.defaultReduce=null;this._actionsByTerm=null}toString(){let e=this.actions.map((e=>e.term+"="+e)).join(",")+(this.goto.length?" | "+this.goto.map((e=>e.term+"="+e)).join(","):"");return this.id+": "+this.set.filter((e=>e.pos>0)).join()+(this.defaultReduce?`\n always ${this.defaultReduce.name}(${this.defaultReduce.parts.length})`:e.length?"\n "+e:"")}addActionInner(e,t){e:for(let s=0;s<this.actions.length;s++){let i=this.actions[s];if(i.term==e.term){if(i.eq(e))return null;let n=Le.addOrigins(t,this.set),r=Le.addOrigins(this.actionPositions[s],this.set);let l=We(n),a=We(r);let o=Qe(n,r)||l.precedence-a.precedence;if(o>0){this.actions.splice(s,1);this.actionPositions.splice(s,1);s--;continue e}else if(o<0){return null}else if(l.ambigGroups.some((e=>a.ambigGroups.includes(e)))){continue e}else{return i}}}this.actions.push(e);this.actionPositions.push(t);return null}addAction(e,t,s){let i=this.addActionInner(e,t);if(i){let n=this.actionPositions[this.actions.indexOf(i)][0];let r=[t[0].rule.name,n.rule.name];if(s.conflicts.some((e=>e.rules.some((e=>r.includes(e))))))return;let l;if(i instanceof Ke)l=`shift/reduce conflict between\n ${n}\nand\n ${t[0].rule}`;else l=`reduce/reduce conflict between\n ${n.rule}\nand\n ${t[0].rule}`;l+=`\nWith input:\n ${t[0].trail(70)} · ${e.term} …`;if(i instanceof Ke)l+=ut(t[0],i.term,s.first);l+=ot(n,t[0]);s.conflicts.push(new at(l,r))}}getGoto(e){return this.goto.find((t=>t.term==e))}hasSet(e){return Ze(this.set,e)}actionsByTerm(){let e=this._actionsByTerm;if(!e){this._actionsByTerm=e=Object.create(null);for(let t of this.actions)(e[t.term.id]||(e[t.term.id]=[])).push(t)}return e}finish(){if(this.actions.length){let e=this.actions[0];if(e instanceof Xe){let{rule:t}=e;if(this.actions.every((e=>e instanceof Xe&&e.rule.sameReduce(t))))this.defaultReduce=t}}this.actions.sort(((e,t)=>e.cmp(t)));this.goto.sort(((e,t)=>e.cmp(t)))}eq(e){let t=this.defaultReduce,s=e.defaultReduce;if(t||s)return t&&s?t.sameReduce(s):false;return this.skip==e.skip&&this.tokenGroup==e.tokenGroup&&Ze(this.actions,e.actions)&&Ze(this.goto,e.goto)}}function it(e,t){let s=[],i=[];function n(t,n,r,l,a){for(let o of t.rules){let t=s.find((e=>e.rule==o));if(!t){let i=e.find((e=>e.pos==0&&e.rule==o));t=i?new Le(o,0,i.ahead.slice(),i.ambigAhead,i.skipAhead,i.via):new Le(o,0,[],xt,l,a);s.push(t)}if(t.skipAhead!=l)throw new B("Inconsistent skip sets after "+a.trail());t.ambigAhead=Y(t.ambigAhead,r);for(let e of n)if(!t.ahead.includes(e)){t.ahead.push(e);if(t.rule.parts.length&&!t.rule.parts[0].terminal)nt(t,i)}}}for(let l of e){let e=l.next;if(e&&!e.terminal)n(e,Ye(l.rule,l.pos,l.ahead,t),l.conflicts(l.pos+1).ambigGroups,l.pos==l.rule.parts.length-1?l.skipAhead:l.rule.skip,l)}while(i.length){let e=i.pop();n(e.rule.parts[0],Ye(e.rule,0,e.ahead,t),Y(e.rule.conflicts[1].ambigGroups,e.rule.parts.length==1?e.ambigAhead:xt),e.rule.parts.length==1?e.skipAhead:e.rule.skip,e)}let r=e.slice();for(let l of s){l.ahead.sort(((e,t)=>e.hash-t.hash));l.finish();let t=e.findIndex((e=>e.pos==0&&e.rule==l.rule));if(t>-1)r[t]=l;else r.push(l)}return r.sort(((e,t)=>e.cmp(t)))}function nt(e,t){if(!t.includes(e))t.push(e)}function rt(e){let t=Object.create(null);for(let s of e.terms)if(!s.terminal)t[s.name]=[];for(;;){let s=false;for(let i of e.terms)if(!i.terminal)for(let e of i.rules){let n=t[i.name];let r=false,l=n.length;for(let s of e.parts){r=true;if(s.terminal){nt(s,n)}else{for(let e of t[s.name]){if(e==null)r=false;else nt(e,n)}}if(r)break}if(!r)nt(null,n);if(n.length>l)s=true}if(!s)return t}}class lt{constructor(e,t){this.set=e;this.state=t}}class at{constructor(e,t){this.error=e;this.rules=t}}function ot(e,t){if(e.eqSimple(t))return"";function s(e,t){let s=[];for(let i=t.via;!i.eqSimple(e);i=i.via)s.push(i);if(!s.length)return"";s.unshift(t);return s.reverse().map(((e,s)=>"\n"+" ".repeat(s+1)+(e==t?"":"via ")+e)).join("")}for(let i=e;i;i=i.via)for(let n=t;n;n=n.via){if(i.eqSimple(n))return"\nShared origin: "+i+s(i,e)+s(i,t)}return""}function ut(e,t,s){let i=e,n=[];for(;;){for(let e=i.pos-1;e>=0;e--)n.push(i.rule.parts[e]);if(!i.via)break;i=i.via}n.reverse();let r=new Set;function l(i,a,o){if(a==n.length&&o&&!i.next)return`\nThe reduction of ${e.rule.name} is allowed before ${t} because of this rule:\n ${o}`;for(let e;e=i.next;){if(a<n.length&&e==n[a]){let e=l(i.advance(),a+1,o);if(e)return e}let u=i.rule.parts[i.pos+1],h=i.pos+1==i.rule.parts.length?o:null;if(u&&(u.terminal?u==t:s[u.name].includes(t)))h=i.advance();for(let t of e.rules){let s=(t.id<<5)+a+(h?555:0);if(!r.has(s)){r.add(s);let n=l(new Le(t,0,[],[],e,i),a,h);if(n)return n}}if(!e.terminal&&s[e.name].includes(null))i=i.advance();else break}return""}return l(i,0,null)}function ht(e,t,s){let i=[],n={};let r={};let l=Date.now();function a(e,t){if(e.length==0)return null;let a=et(e),o=r[a];let u;for(let s of e){if(!u)u=s.skip;else if(u!=s.skip)throw new B("Inconsistent skip sets after "+s.trail())}if(o)for(let s of o)if(Ze(e,s.set)){if(s.state.skip!=u)throw new B("Inconsistent skip sets after "+s.set[0].trail());return s.state}let h=it(e,s);let f=et(h),c=n[f]||(n[f]=[]);let p;if(!t)for(let s of c)if(s.hasSet(h))p=s;if(!p){p=new st(i.length,h,0,u,f,t);c.push(p);i.push(p);if(Me&&i.length%500==0)console.log(`${i.length} states after ${((Date.now()-l)/1e3).toFixed(2)}s`)}(r[a]||(r[a]=[])).push(new lt(e,p));return p}for(const u of t){const t=u.rules.length?u.rules[0].skip:e.names["%noskip"];a(u.rules.map((s=>new Le(s,0,[e.eof],xt,t,null).finish())),u)}let o=new tt(s);for(let u=0;u<i.length;u++){let e=i[u];let t=[],n=[],r=[];for(let s of e.set){if(s.pos==s.rule.parts.length){if(!s.rule.name.top)r.push(s)}else{let e=s.rule.parts[s.pos];let i=t.indexOf(e);if(i<0){t.push(e);n.push([s])}else{n[i].push(s)}}}for(let s=0;s<t.length;s++){let i=t[s],r=n[s].map((e=>e.advance()));if(i.terminal){let t=ft(r);let l=a(t);if(l)e.addAction(new Ke(i,l),n[s],o)}else{let t=a(r);if(t)e.goto.push(new Ke(i,t))}}let l=false;for(let s of r)for(let t of s.ahead){let i=e.actions.length;e.addAction(new Xe(t,s.rule),[s],o);if(e.actions.length==i)l=true}if(l)for(let i=0;i<e.goto.length;i++){let t=s[e.goto[i].term.name];if(!t.some((t=>e.actions.some((e=>e.term==t&&e instanceof Ke)))))e.goto.splice(i--,1)}}if(o.conflicts.length)throw new B(o.conflicts.map((e=>e.error)).join("\n\n"));for(let u of i)u.finish();if(Me)console.log(`${i.length} states total.`);return i}function ft(e){let t=null,s=1;for(let i of e){let e=i.rule.conflicts[i.pos-1].cut;if(e<s)continue;if(!t||e>s){s=e;t=[]}t.push(i)}return t||e}function ct(e,t,s){for(let n of e.goto)for(let e of t.goto){if(n.term==e.term&&s[n.target.id]!=s[e.target.id])return false}let i=t.actionsByTerm();for(let n of e.actions){let t=i[n.term.id];if(t&&t.some((e=>!e.matches(n,s)))){if(t.length==1)return false;let i=e.actionsByTerm()[n.term.id];if(i.length!=t.length||i.some((e=>!t.some((t=>e.matches(t,s))))))return false}}return true}function pt(e,t){let s=[];for(let i of e){let e=t[i.id];if(!s[e]){s[e]=new st(e,i.set,0,i.skip,i.hash,i.startRule);s[e].tokenGroup=i.tokenGroup;s[e].defaultReduce=i.defaultReduce}}for(let i of e){let e=t[i.id],n=s[e];n.flags|=i.flags;for(let r=0;r<i.actions.length;r++){let e=i.actions[r].map(t,s);if(!n.actions.some((t=>t.eq(e)))){n.actions.push(e);n.actionPositions.push(i.actionPositions[r])}}for(let r of i.goto){let e=r.map(t,s);if(!n.goto.some((t=>t.eq(e))))n.goto.push(e)}}return s}class dt{constructor(e,t){this.origin=e;this.members=[t]}}function mt(e,t){if(e.length!=t.length)return false;for(let s=0;s<e.length;s++)if(!e[s].eqSimple(t[s]))return false;return true}function gt(e){let t=[],s=[];e:for(let n=0;n<e.length;n++){let i=e[n];if(!i.startRule)for(let r=0;r<s.length;r++){let l=s[r],a=e[l.members[0]];if(i.tokenGroup==a.tokenGroup&&i.skip==a.skip&&!a.startRule&&mt(i.set,a.set)){l.members.push(n);t.push(r);continue e}}t.push(s.length);s.push(new dt(s.length,n))}function i(i,n){let r=s[i],l=e[r.members[n]];let a=r.members.pop();if(n!=r.members.length)r.members[n]=a;for(let o=i+1;o<s.length;o++){t[l.id]=o;if(s[o].origin==r.origin&&s[o].members.every((s=>ct(l,e[s],t)))){s[o].members.push(l.id);return}}t[l.id]=s.length;s.push(new dt(r.origin,l.id))}for(let n=1;;n++){let r=false,l=Date.now();for(let n=0,a=s.length;n<a;n++){let l=s[n];for(let s=0;s<l.members.length-1;s++){for(let a=s+1;a<l.members.length;a++){let o=l.members[s],u=l.members[a];if(!ct(e[o],e[u],t)){r=true;i(n,a--)}}}}if(Me)console.log(`Collapse pass ${n}${r?``:`, done`} (${((Date.now()-l)/1e3).toFixed(2)}s)`);if(!r)return pt(e,t)}}function kt(e){for(let t=1;;t++){let s=[],i=false,n=Date.now();let r=[];for(let t=0;t<e.length;t++){let n=e[t];let l=r.findIndex((e=>n.eq(e)));if(l<0){s[t]=r.length;r.push(n)}else{s[t]=l;i=true;let e=r[l],a=null;for(let t of n.set)if(!e.set.some((e=>e.eqSimple(t))))(a||(a=[])).push(t);if(a)e.set=a.concat(e.set).sort(((e,t)=>e.cmp(t)))}}if(Me)console.log(`Merge identical pass ${t}${i?"":", done"} (${((Date.now()-n)/1e3).toFixed(2)}s)`);if(!i)return e;for(let e of r)if(!e.defaultReduce){e.actions=e.actions.map((e=>e.map(s,r)));e.goto=e.goto.map((e=>e.map(s,r)))}for(let e=0;e<r.length;e++)r[e].id=e;e=r}}const xt=[];function bt(e){return kt(gt(e))}function wt(e){let t=e+32;if(t>=34)t++;if(t>=92)t++;return String.fromCharCode(t)}function yt(e,t=65535){if(e>t)throw new Error("Trying to encode a number that's too big: "+e);if(e==65535)return String.fromCharCode(126);let s="";for(let i=46;;i=0){let t=e%46,n=e-t;s=wt(t+i)+s;if(n==0)break;e=n/46}return s}function $t(e,t=65535){let s='"'+yt(e.length,4294967295);for(let i=0;i<e.length;i++)s+=yt(e[i],t);s+='"';return s}const vt=[];class St{constructor(e,t){this.terms=e;this.conflicts=t}concat(e){if(this==St.none)return e;if(e==St.none)return this;let t=null;if(this.conflicts||e.conflicts){t=this.conflicts?this.conflicts.slice():this.ensureConflicts();let s=e.ensureConflicts();t[t.length-1]=t[t.length-1].join(s[0]);for(let e=1;e<s.length;e++)t.push(s[e])}return new St(this.terms.concat(e.terms),t)}withConflicts(e,t){if(t==V.none)return this;let s=this.conflicts?this.conflicts.slice():this.ensureConflicts();s[e]=s[e].join(t);return new St(this.terms,s)}ensureConflicts(){if(this.conflicts)return this.conflicts;let e=[];for(let t=0;t<=this.terms.length;t++)e.push(V.none);return e}}St.none=new St(vt,null);function Tt(...e){return new St(e,null)}class Rt{constructor(e,t,s){this.id=e;this.args=t;this.term=s}matches(e){return this.id==e.id.name&&G(e.args,this.args)}matchesRepeat(e){return this.id=="+"&&D(e.expr,this.args[0])}}class Ot{constructor(e,t){this.options=t;this.terms=new L;this.specialized=Object.create(null);this.tokenOrigins=Object.create(null);this.rules=[];this.built=[];this.ruleNames=Object.create(null);this.namespaces=Object.create(null);this.namedTerms=Object.create(null);this.termTable=Object.create(null);this.knownProps=Object.create(null);this.dynamicRulePrecedences=[];this.definedGroups=[];this.astRules=[];this.currentSkip=[];Fe("Parse",(()=>{this.input=new de(e,t.fileName);this.ast=this.input.parse()}));let s=i.NodeProp;for(let n in s){if(s[n]instanceof i.NodeProp&&!s[n].perNode)this.knownProps[n]={prop:s[n],source:{name:n,from:null}}}for(let n of this.ast.externalProps){this.knownProps[n.id.name]={prop:this.options.externalProp?this.options.externalProp(n.id.name):new i.NodeProp,source:{name:n.externalID.name,from:n.source}}}this.dialects=this.ast.dialects.map((e=>e.name));this.tokens=new Mt(this,this.ast.tokens);this.localTokens=this.ast.localTokens.map((e=>new Ft(this,e)));this.externalTokens=this.ast.externalTokens.map((e=>new ns(this,e)));this.externalSpecializers=this.ast.externalSpecializers.map((e=>new rs(this,e)));Fe("Build rules",(()=>{let e=this.newName("%noskip",true);this.defineRule(e,[]);let t=this.ast.mainSkip?this.newName("%mainskip",true):e;let s=[],i=[];for(let n of this.ast.rules)this.astRules.push({skip:t,rule:n});for(let n of this.ast.topRules)i.push({skip:t,rule:n});for(let n of this.ast.scopedSkip){let r=e,l=this.ast.scopedSkip.findIndex(((e,t)=>t<s.length&&D(e.expr,n.expr)));if(l>-1)r=s[l];else if(this.ast.mainSkip&&D(n.expr,this.ast.mainSkip))r=t;else if(!es(n.expr))r=this.newName("%skip",true);s.push(r);for(let e of n.rules)this.astRules.push({skip:r,rule:e});for(let e of n.topRules)i.push({skip:r,rule:e})}for(let{rule:n}of this.astRules){this.unique(n.id)}this.currentSkip.push(e);this.skipRules=t==e?[t]:[e,t];if(t!=e)this.defineRule(t,this.normalizeExpr(this.ast.mainSkip));for(let n=0;n<this.ast.scopedSkip.length;n++){let t=s[n];if(!this.skipRules.includes(t)){this.skipRules.push(t);if(t!=e)this.defineRule(t,this.normalizeExpr(this.ast.scopedSkip[n].expr))}}this.currentSkip.pop();for(let{rule:n,skip:r}of i.sort(((e,t)=>e.rule.start-t.rule.start))){this.unique(n.id);this.used(n.id.name);this.currentSkip.push(r);let{name:e,props:t}=this.nodeInfo(n.props,"a",n.id.name,vt,vt,n.expr);let s=this.terms.makeTop(e,t);this.namedTerms[e]=s;this.defineRule(s,this.normalizeExpr(n.expr));this.currentSkip.pop()}for(let n of this.externalSpecializers)n.finish();for(let{skip:n,rule:r}of this.astRules){if(this.ruleNames[r.id.name]&&ps(r)&&!r.params.length){this.buildRule(r,[],n,false);if(r.expr instanceof O&&r.expr.exprs.length==0)this.used(r.id.name)}}}));for(let i in this.ruleNames){let e=this.ruleNames[i];if(e)this.warn(`Unused rule '${e.name}'`,e.start)}this.tokens.takePrecedences();this.tokens.takeConflicts();for(let i of this.localTokens)i.takePrecedences();for(let{name:i,group:n,rule:r}of this.definedGroups)this.defineGroup(i,n,r);this.checkGroups()}unique(e){if(e.name in this.ruleNames)this.raise(`Duplicate definition of rule '${e.name}'`,e.start);this.ruleNames[e.name]=e}used(e){this.ruleNames[e]=null}newName(e,t=null,s={}){for(let i=t?0:1;;i++){let n=i?`${e}-${i}`:e;if(!this.terms.names[n])return this.terms.makeNonTerminal(n,t===true?null:t,s)}}prepareParser(){let e=Fe("Simplify rules",(()=>os(this.rules,[...this.skipRules,...this.terms.tops])));let{nodeTypes:t,names:s,minRepeatTerm:i,maxTerm:n}=this.terms.finish(e);for(let O in this.namedTerms)this.termTable[O]=this.namedTerms[O].id;if(/\bgrammar\b/.test(Ue))console.log(e.join("\n"));let r=this.terms.tops.slice();let l=rt(this.terms);let a=this.skipRules.map(((e,t)=>{let s=[],i=[],n=[];for(let r of e.rules){if(!r.parts.length)continue;let e=r.parts[0];for(let t of e.terminal?[e]:l[e.name]||[])if(t&&!i.includes(t))i.push(t);if(e.terminal&&r.parts.length==1&&!n.some((t=>t!=r&&t.parts[0]==e)))s.push(e);else n.push(r)}e.rules=n;if(n.length)r.push(e);return{skip:s,rule:n.length?e:null,startTokens:i,id:t}}));let o=Fe("Build full automaton",(()=>ht(this.terms,r,l)));let u=this.localTokens.map(((e,t)=>e.buildLocalGroup(o,a,t)));let{tokenGroups:h,tokenPrec:f,tokenData:c}=Fe("Build token groups",(()=>this.tokens.buildTokenGroups(o,a,u.length)));let p=Fe("Finish automaton",(()=>bt(o)));let d=It(p,this.terms.tops);if(/\blr\b/.test(Ue))console.log(p.join("\n"));let m=[];for(let O of this.externalSpecializers)m.push(O);for(let O in this.specialized)m.push({token:this.terms.names[O],table:At(this.specialized[O])});let g=e=>{if(e instanceof ns)return e.ast.start;return this.tokens.ast?this.tokens.ast.start:-1};let k=h.concat(this.externalTokens).sort(((e,t)=>g(e)-g(t))).concat(u);let x=new qt;let b=a.map((e=>{let t=[];for(let s of e.skip)t.push(s.id,0,262144>>16);if(e.rule){let s=p.find((t=>t.startRule==e.rule));for(let e of s.actions)t.push(e.term.id,s.id,131072>>16)}t.push(65535,0);return x.storeArray(t)}));let w=Fe("Finish states",(()=>{let e=new Uint32Array(p.length*6);let t=this.computeForceReductions(p,a);let s=new jt(k,x,e,b,a,p,this);for(let i of p)s.finish(i,d(i.id),t[i.id]);return e}));let y=Object.create(null);for(let O=0;O<this.dialects.length;O++)y[this.dialects[O]]=x.storeArray((this.tokens.byDialect[O]||vt).map((e=>e.id)).concat(65535));let $=null;if(this.dynamicRulePrecedences.length){$=Object.create(null);for(let{rule:e,prec:t}of this.dynamicRulePrecedences)$[e.id]=t}let v=Object.create(null);for(let O of this.terms.tops)v[O.nodeName]=[p.find((e=>e.startRule==O)).id,O.id];let S=x.storeArray(f.concat(65535));let{nodeProps:T,skippedTypes:R}=this.gatherNodeProps(t);return{states:w,stateData:x.finish(),goto:Dt(p),nodeNames:t.filter((e=>e.id<i)).map((e=>e.nodeName)).join(" "),nodeProps:T,skippedTypes:R,maxTerm:n,repeatNodeCount:t.length-i,tokenizers:k,tokenData:c,topRules:v,dialects:y,dynamicPrecedences:$,specialized:m,tokenPrec:S,termNames:s}}getParser(){let{states:e,stateData:t,goto:s,nodeNames:i,nodeProps:n,skippedTypes:l,maxTerm:a,repeatNodeCount:o,tokenizers:u,tokenData:h,topRules:f,dialects:c,dynamicPrecedences:p,specialized:d,tokenPrec:m,termNames:g}=this.prepareParser();let k=d.map((e=>{if(e instanceof rs){let t=this.options.externalSpecializer(e.ast.id.name,this.termTable);return{term:e.term.id,get:(s,i)=>t(s,i)<<1|(e.ast.type=="extend"?1:0),external:t,extend:e.ast.type=="extend"}}else{return{term:e.token.id,get:t=>e.table[t]||-1}}}));return r.WQ.deserialize({version:14,states:e,stateData:t,goto:s,nodeNames:i,maxTerm:a,repeatNodeCount:o,nodeProps:n.map((({prop:e,terms:t})=>[this.knownProps[e].prop,...t])),propSources:!this.options.externalPropSource?undefined:this.ast.externalPropSources.map((e=>this.options.externalPropSource(e.id.name))),skippedNodes:l,tokenData:h,tokenizers:u.map((e=>e.create())),context:!this.ast.context?undefined:typeof this.options.contextTracker=="function"?this.options.contextTracker(this.termTable):this.options.contextTracker,topRules:f,dialects:c,dynamicPrecedences:p,specialized:k,tokenPrec:m,termNames:g})}getParserFile(){let{states:e,stateData:t,goto:s,nodeNames:i,nodeProps:n,skippedTypes:r,maxTerm:l,repeatNodeCount:a,tokenizers:o,tokenData:u,topRules:h,dialects:f,dynamicPrecedences:c,specialized:p,tokenPrec:d,termNames:m}=this.prepareParser();let g=this.options.moduleStyle||"es";let k="// This file was generated by lezer-generator. You probably shouldn't edit it.\n",x=k;let b={},w=Object.create(null);let y=Object.create(null);for(let G of hs)y[G]=true;let $=this.options.exportName||"parser";y[$]=true;let v=e=>{for(let t=0;;t++){let s=e+(t?"_"+t:"");if(!y[s])return s}};let S=(e,t,s=e)=>{let i=e+" from "+t;if(w[i])return w[i];let n=JSON.stringify(t),r=e;if(e in y){r=v(s);e+=`${g=="cjs"?":":" as"} ${r}`}y[r]=true;(b[n]||(b[n]=[])).push(e);return w[i]=r};let T=S("LRParser","@lezer/lr");let R=o.map((e=>e.createSource(S)));let O=this.ast.context?S(this.ast.context.id.name,this.ast.context.source):null;let P=n.map((({prop:e,terms:t})=>{let{source:s}=this.knownProps[e];let i=s.from?S(s.name,s.from):JSON.stringify(s.name);return`[${i}, ${t.map(C).join(",")}]`}));function j(e){return"{__proto__:null,"+Object.keys(e).map((t=>`${/^(\d+|[a-zA-Z_]\w*)$/.test(t)?t:JSON.stringify(t)}:${e[t]}`)).join(", ")+"}"}let N="";let A=p.map((e=>{if(e instanceof rs){let t=S(e.ast.id.name,e.ast.source);let s=this.options.typeScript?": any":"";return`{term: ${e.term.id}, get: (value${s}, stack${s}) => (${t}(value, stack) << 1)${e.ast.type=="extend"?` | ${1}`:""}, external: ${t}${e.ast.type=="extend"?", extend: true":""}}`}else{let t=v("spec_"+e.token.name.replace(/\W/g,""));y[t]=true;N+=`const ${t} = ${j(e.table)}\n`;let s=this.options.typeScript?`: keyof typeof ${t}`:"";return`{term: ${e.token.id}, get: (value${s}) => ${t}[value] || -1}`}}));let z=this.ast.externalPropSources.map((e=>S(e.id.name,e.source)));for(let G in b){if(g=="cjs")x+=`const {${b[G].join(", ")}} = require(${G})\n`;else x+=`import {${b[G].join(", ")}} from ${G}\n`}x+=N;function C(e){return typeof e!="string"||/^(true|false|\d+(\.\d+)?|\.\d+)$/.test(e)?e:JSON.stringify(e)}let I=Object.keys(f).map((e=>`${e}: ${f[e]}`));let q=`${T}.deserialize({\n version: ${14},\n states: ${$t(e,4294967295)},\n stateData: ${$t(t)},\n goto: ${$t(s)},\n nodeNames: ${JSON.stringify(i)},\n maxTerm: ${l}${O?`,\n context: ${O}`:""}${P.length?`,\n nodeProps: [\n ${P.join(",\n ")}\n ]`:""}${z.length?`,\n propSources: [${z.join()}]`:""}${r.length?`,\n skippedNodes: ${JSON.stringify(r)}`:""},\n repeatNodeCount: ${a},\n tokenData: ${$t(u)},\n tokenizers: [${R.join(", ")}],\n topRules: ${JSON.stringify(h)}${I.length?`,\n dialects: {${I.join(", ")}}`:""}${c?`,\n dynamicPrecedences: ${JSON.stringify(c)}`:""}${A.length?`,\n specialized: [${A.join(",")}]`:""},\n tokenPrec: ${d}${this.options.includeNames?`,\n termNames: ${JSON.stringify(m)}`:""}\n})`;let D=[];for(let G in this.termTable){let e=G;if(hs.includes(e))for(let t=1;;t++){e="_".repeat(t)+G;if(!(e in this.termTable))break}else if(!/^[\w$]+$/.test(G)){continue}D.push(`${e}${g=="cjs"?":":" ="} ${this.termTable[G]}`)}for(let G=0;G<this.dialects.length;G++)D.push(`Dialect_${this.dialects[G]}${g=="cjs"?":":" ="} ${G}`);return{parser:x+(g=="cjs"?`exports.${$} = ${q}\n`:`export const ${$} = ${q}\n`),terms:g=="cjs"?`${k}module.exports = {\n ${D.join(",\n ")}\n}`:`${k}export const\n ${D.join(",\n ")}\n`}}gatherNonSkippedNodes(){let e=Object.create(null);let t=[];let s=s=>{if(!e[s.id]){e[s.id]=true;t.push(s)}};this.terms.tops.forEach(s);for(let i=0;i<t.length;i++){for(let e of t[i].rules)for(let t of e.parts)s(t)}return e}gatherNodeProps(e){let t=this.gatherNonSkippedNodes(),s=[];let i=[];for(let n of e){if(!t[n.id]&&!n.error)s.push(n.id);for(let e in n.props){let t=this.knownProps[e];if(!t)throw new B("No known prop type for "+e);if(t.source.from==null&&(t.source.name=="repeated"||t.source.name=="error"))continue;let s=i.find((t=>t.prop==e));if(!s)i.push(s={prop:e,values:{}});(s.values[n.props[e]]||(s.values[n.props[e]]=[])).push(n.id)}}return{nodeProps:i.map((({prop:e,values:t})=>{let s=[];for(let i in t){let e=t[i];if(e.length==1){s.push(e[0],i)}else{s.push(-e.length);for(let t of e)s.push(t);s.push(i)}}return{prop:e,terms:s}})),skippedTypes:s}}makeTerminal(e,t,s){return this.terms.makeTerminal(this.terms.uniqueName(e),t,s)}computeForceReductions(e,t){let s=[];let i=[];let n=Object.create(null);for(let a of e){s.push(0);for(let e of a.goto){let t=n[e.term.id]||(n[e.term.id]=[]);let s=t.find((t=>t.target==e.target.id));if(s)s.parents.push(a.id);else t.push({parents:[a.id],target:e.target.id})}i[a.id]=a.set.filter((e=>e.pos>0&&!e.rule.name.top)).sort(((e,t)=>t.pos-e.pos||e.rule.parts.length-t.rule.parts.length))}let r=Object.create(null);function l(e,t,s=null){let i=n[e];if(!i)return false;return i.some((e=>{let i=s?s.filter((t=>e.parents.includes(t))):e.parents;if(i.length==0)return false;if(e.target==t)return true;let n=r[e.target];return n!=null&&l(n,t,i)}))}for(let a of e){if(a.defaultReduce&&a.defaultReduce.parts.length>0){s[a.id]=zt(a.defaultReduce,t);if(a.defaultReduce.parts.length==1)r[a.id]=a.defaultReduce.name.id}}for(let a=1;;a++){let n=true;for(let o of e){if(o.defaultReduce)continue;let e=i[o.id];if(e.length!=a){if(e.length>a)n=false;continue}for(let i of e){if(i.pos!=1||!l(i.rule.name.id,o.id)){s[o.id]=zt(i.rule,t,i.pos);if(i.pos==1)r[o.id]=i.rule.name.id;break}}}if(n)break}return s}substituteArgs(e,t,s){if(t.length==0)return e;return e.walk((e=>{let i;if(e instanceof v&&(i=s.findIndex((t=>t.name==e.id.name)))>-1){let s=t[i];if(e.args.length){if(s instanceof v&&!s.args.length)return new v(e.start,s.id,e.args);this.raise(`Passing arguments to a parameter that already has arguments`,e.start)}return s}else if(e instanceof T){let i=e.rule,n=this.substituteArgsInProps(i.props,t,s);return n==i.props?e:new T(e.start,new u(i.start,i.id,n,i.params,i.expr))}else if(e instanceof S){let i=this.substituteArgsInProps(e.props,t,s);return i==e.props?e:new S(e.start,e.type,i,e.token,e.content)}return e}))}substituteArgsInProps(e,t,s){let i=e=>{let i=e;for(let n=0;n<e.length;n++){let r=e[n];if(!r.name)continue;let l=s.findIndex((e=>e.name==r.name));if(l<0)continue;if(i==e)i=e.slice();let a=t[l];if(a instanceof v&&!a.args.length)i[n]=new J(r.start,a.id.name,null);else if(a instanceof N)i[n]=new J(r.start,a.value,null);else this.raise(`Trying to interpolate expression '${a}' into a prop`,r.start)}return i};let n=e;for(let r=0;r<e.length;r++){let t=e[r],s=i(t.value);if(s!=t.value){if(n==e)n=e.slice();n[r]=new E(t.start,t.at,t.name,s)}}return n}conflictsFor(e){let t=V.none,s=V.none;for(let i of e){if(i.type=="ambig"){t=t.join(new V(0,[i.id.name]))}else{let e=this.ast.precedences;let n=e?e.items.findIndex((e=>e.id.name==i.id.name)):-1;if(n<0)this.raise(`Reference to unknown precedence: '${i.id.name}'`,i.id.start);let r=e.items[n],l=e.items.length-n;if(r.type=="cut"){t=t.join(new V(0,vt,l))}else{t=t.join(new V(l<<2));s=s.join(new V((l<<2)+(r.type=="left"?1:r.type=="right"?-1:0)))}}}return{here:t,atEnd:s}}raise(e,t=1){return this.input.raise(e,t)}warn(e,t=-1){let s=this.input.message(e,t);if(this.options.warn)this.options.warn(s);else console.warn(s)}defineRule(e,t){let s=this.currentSkip[this.currentSkip.length-1];for(let i of t)this.rules.push(new H(e,i.terms,i.ensureConflicts(),s))}resolve(e){for(let i of this.built)if(i.matches(e))return[Tt(i.term)];let t=this.tokens.getToken(e);if(t)return[Tt(t)];for(let i of this.localTokens){let t=i.getToken(e);if(t)return[Tt(t)]}for(let i of this.externalTokens){let t=i.getToken(e);if(t)return[Tt(t)]}for(let i of this.externalSpecializers){let t=i.getToken(e);if(t)return[Tt(t)]}let s=this.astRules.find((t=>t.rule.id.name==e.id.name));if(!s)return this.raise(`Reference to undefined rule '${e.id.name}'`,e.start);if(s.rule.params.length!=e.args.length)this.raise(`Wrong number or arguments for '${e.id.name}'`,e.start);this.used(s.rule.id.name);return[Tt(this.buildRule(s.rule,e.args,s.skip))]}normalizeRepeat(e){let t=this.built.find((t=>t.matchesRepeat(e)));if(t)return Tt(t.term);let s=e.expr.prec<e.prec?`(${e.expr})+`:`${e.expr}+`;let i=this.terms.makeRepeat(this.terms.uniqueName(s));this.built.push(new Rt("+",[e.expr],i));this.defineRule(i,this.normalizeExpr(e.expr).concat(Tt(i,i)));return Tt(i)}normalizeSequence(e){let t=e.exprs.map((e=>this.normalizeExpr(e)));let s=this;function i(n,r,l){let{here:a,atEnd:o}=s.conflictsFor(e.markers[r]);if(r==t.length)return[n.withConflicts(n.terms.length,a.join(l))];let u=[];for(let e of t[r]){for(let t of i(n.concat(e).withConflicts(n.terms.length,a),r+1,l.join(o)))u.push(t)}return u}return i(St.none,0,V.none)}normalizeExpr(e){if(e instanceof j&&e.kind=="?"){return[St.none,...this.normalizeExpr(e.expr)]}else if(e instanceof j){let t=this.normalizeRepeat(e);return e.kind=="+"?[t]:[St.none,t]}else if(e instanceof R){return e.exprs.reduce(((e,t)=>e.concat(this.normalizeExpr(t))),[])}else if(e instanceof O){return this.normalizeSequence(e)}else if(e instanceof N){return[Tt(this.tokens.getLiteral(e))]}else if(e instanceof v){return this.resolve(e)}else if(e instanceof S){return[Tt(this.resolveSpecialization(e))]}else if(e instanceof T){return[Tt(this.buildRule(e.rule,vt,this.currentSkip[this.currentSkip.length-1],true))]}else{return this.raise(`This type of expression ('${e}') may not occur in non-token rules`,e.start)}}buildRule(e,t,s,i=false){let n=this.substituteArgs(e.expr,t,e.params);let{name:r,props:l,dynamicPrec:a,inline:o,group:u,exported:h}=this.nodeInfo(e.props||vt,i?"pg":"pgi",e.id.name,t,e.params,e.expr);if(h&&e.params.length)this.warn(`Can't export parameterized rules`,e.start);if(h&&i)this.warn(`Can't export inline rule`,e.start);let f=this.newName(e.id.name+(t.length?"<"+t.join(",")+">":""),r||true,l);if(o)f.inline=true;if(a)this.registerDynamicPrec(f,a);if((f.nodeType||h)&&e.params.length==0){if(!r)f.preserve=true;if(!i)this.namedTerms[h||e.id.name]=f}if(!i)this.built.push(new Rt(e.id.name,t,f));this.currentSkip.push(s);let c=this.normalizeExpr(n);if(c.length>100*(n instanceof R?n.exprs.length:1))this.warn(`Rule ${e.id.name} is generating a lot (${c.length}) of choices.\n Consider splitting it up or reducing the amount of ? or | operator uses.`,e.start);if(/\brulesize\b/.test(Ue)&&c.length>10)console.log(`Rule ${e.id.name}: ${c.length} variants`);this.defineRule(f,c);this.currentSkip.pop();if(u)this.definedGroups.push({name:f,group:u,rule:e});return f}nodeInfo(e,t,s=null,i=vt,n=vt,r,l){let a={};let o=s&&(t.indexOf("a")>-1||!cs(s))&&!/ /.test(s)?s:null;let u=null,h=0,f=false,c=null,p=null;for(let d of e){if(!d.at){if(!this.knownProps[d.name]){let e=["name","dialect","dynamicPrecedence","export","isGroup"].includes(d.name)?` (did you mean '@${d.name}'?)`:"";this.raise(`Unknown prop name '${d.name}'${e}`,d.start)}a[d.name]=this.finishProp(d,i,n)}else if(d.name=="name"){o=this.finishProp(d,i,n);if(/ /.test(o))this.raise(`Node names cannot have spaces ('${o}')`,d.start)}else if(d.name=="dialect"){if(t.indexOf("d")<0)this.raise("Can't specify a dialect on non-token rules",e[0].start);if(d.value.length!=1&&!d.value[0].value)this.raise("The '@dialect' rule prop must hold a plain string value");let s=this.dialects.indexOf(d.value[0].value);if(s<0)this.raise(`Unknown dialect '${d.value[0].value}'`,d.value[0].start);u=s}else if(d.name=="dynamicPrecedence"){if(t.indexOf("p")<0)this.raise("Dynamic precedence can only be specified on nonterminals");if(d.value.length!=1||!/^-?(?:10|\d)$/.test(d.value[0].value))this.raise("The '@dynamicPrecedence' rule prop must hold an integer between -10 and 10");h=+d.value[0].value}else if(d.name=="inline"){if(d.value.length)this.raise("'@inline' doesn't take a value",d.value[0].start);if(t.indexOf("i")<0)this.raise("Inline can only be specified on nonterminals");f=true}else if(d.name=="isGroup"){if(t.indexOf("g")<0)this.raise("'@isGroup' can only be specified on nonterminals");c=d.value.length?this.finishProp(d,i,n):s}else if(d.name=="export"){if(d.value.length)p=this.finishProp(d,i,n);else p=s}else{this.raise(`Unknown built-in prop name '@${d.name}'`,d.start)}}if(r&&this.ast.autoDelim&&(o||U(a))){let e=this.findDelimiters(r);if(e){Nt(e[0],"closedBy",e[1].nodeName);Nt(e[1],"openedBy",e[0].nodeName)}}if(l&&U(l)){for(let e in l)if(!(e in a))a[e]=l[e]}if(U(a)&&!o)this.raise(`Node has properties but no name`,e.length?e[0].start:r.start);if(f&&(U(a)||u||h))this.raise(`Inline nodes can't have props, dynamic precedence, or a dialect`,e[0].start);if(f&&o)o=null;return{name:o,props:a,dialect:u,dynamicPrec:h,inline:f,group:c,exported:p}}finishProp(e,t,s){return e.value.map((e=>{if(e.value)return e.value;let i=s.findIndex((t=>t.name==e.name));if(i<0)this.raise(`Property refers to '${e.name}', but no parameter by that name is in scope`,e.start);let n=t[i];if(n instanceof v&&!n.args.length)return n.id.name;if(n instanceof N)return n.value;return this.raise(`Expression '${n}' can not be used as part of a property value`,e.start)})).join("")}resolveSpecialization(e){let t=e.type;let{name:s,props:i,dialect:n,exported:r}=this.nodeInfo(e.props,"d");let l=this.normalizeExpr(e.token);if(l.length!=1||l[0].terms.length!=1||!l[0].terms[0].terminal)this.raise(`The first argument to '${t}' must resolve to a token`,e.token.start);let a;if(e.content instanceof N)a=[e.content.value];else if(e.content instanceof R&&e.content.exprs.every((e=>e instanceof N)))a=e.content.exprs.map((e=>e.value));else return this.raise(`The second argument to '${e.type}' must be a literal or choice of literals`,e.content.start);let o=l[0].terms[0],u=null;let h=this.specialized[o.name]||(this.specialized[o.name]=[]);for(let f of a){let l=h.find((e=>e.value==f));if(l==null){if(!u){u=this.makeTerminal(o.name+"/"+JSON.stringify(f),s,i);if(n!=null)(this.tokens.byDialect[n]||(this.tokens.byDialect[n]=[])).push(u)}h.push({value:f,term:u,type:t,dialect:n,name:s});this.tokenOrigins[u.name]={spec:o};if(s||r){if(!s)u.preserve=true;this.namedTerms[r||s]=u}}else{if(l.type!=t)this.raise(`Conflicting specialization types for ${JSON.stringify(f)} of ${o.name} (${t} vs ${l.type})`,e.start);if(l.dialect!=n)this.raise(`Conflicting dialects for specialization ${JSON.stringify(f)} of ${o.name}`,e.start);if(l.name!=s)this.raise(`Conflicting names for specialization ${JSON.stringify(f)} of ${o.name}`,e.start);if(u&&l.term!=u)this.raise(`Conflicting specialization tokens for ${JSON.stringify(f)} of ${o.name}`,e.start);u=l.term}}return u}findDelimiters(e){if(!(e instanceof O)||e.exprs.length<2)return null;let t=e=>{if(e instanceof N)return{term:this.tokens.getLiteral(e),str:e.value};if(e instanceof v&&e.args.length==0){let s=this.ast.rules.find((t=>t.id.name==e.id.name));if(s)return t(s.expr);let i=this.tokens.rules.find((t=>t.id.name==e.id.name));if(i&&i.expr instanceof N)return{term:this.tokens.getToken(e),str:i.expr.value}}return null};let s=t(e.exprs[e.exprs.length-1]);if(!s||!s.term.nodeName)return null;const i=["()","[]","{}","<>"];let n=i.find((e=>s.str.indexOf(e[1])>-1&&s.str.indexOf(e[0])<0));if(!n)return null;let r=t(e.exprs[0]);if(!r||!r.term.nodeName||r.str.indexOf(n[0])<0||r.str.indexOf(n[1])>-1)return null;return[r.term,s.term]}registerDynamicPrec(e,t){this.dynamicRulePrecedences.push({rule:e,prec:t});e.preserve=true}defineGroup(e,t,s){var i;let n=[];let r=e=>{if(e.nodeName)return[e];if(n.includes(e))this.raise(`Rule '${s.id.name}' cannot define a group because it contains a non-named recursive rule ('${e.name}')`,s.start);let t=[];n.push(e);for(let i of this.rules)if(i.name==e){let e=i.parts.map(r).filter((e=>e.length));if(e.length>1)this.raise(`Rule '${s.id.name}' cannot define a group because some choices produce multiple named nodes`,s.start);if(e.length==1)for(let s of e[0])t.push(s)}n.pop();return t};for(let l of r(e))l.props["group"]=(((i=l.props["group"])===null||i===void 0?void 0:i.split(" "))||[]).concat(t).sort().join(" ")}checkGroups(){let e=Object.create(null),t=Object.create(null);for(let i of this.terms.terms)if(i.nodeName){t[i.nodeName]=true;if(i.props["group"])for(let t of i.props["group"].split(" ")){(e[t]||(e[t]=[])).push(i)}}let s=Object.keys(e);for(let i=0;i<s.length;i++){let n=s[i],r=e[n];if(t[n])this.warn(`Group name '${n}' conflicts with a node of the same name`);for(let t=i+1;t<s.length;t++){let i=e[s[t]];if(r.some((e=>i.includes(e)))&&(r.length>i.length?i.some((e=>!r.includes(e))):r.some((e=>!i.includes(e)))))this.warn(`Groups '${n}' and '${s[t]}' overlap without one being a superset of the other`)}}}}const Pt=5;class jt{constructor(e,t,s,i,n,r,l){this.tokenizers=e;this.data=t;this.stateArray=s;this.skipData=i;this.skipInfo=n;this.states=r;this.builder=l;this.sharedActions=[]}findSharedActions(e){if(e.actions.length<Pt)return null;let t=null;for(let r of this.sharedActions){if((!t||r.actions.length>t.actions.length)&&r.actions.every((t=>e.actions.some((e=>e.eq(t))))))t=r}if(t)return t;let s=null,i=[];for(let r=e.id+1;r<this.states.length;r++){let t=this.states[r],n=0;if(t.defaultReduce||t.actions.length<Pt)continue;for(let s of e.actions)for(let e of t.actions)if(s.eq(e))i[n++]=s;if(n>=Pt&&(!s||s.length<n)){s=i;i=[]}}if(!s)return null;let n={actions:s,addr:this.storeActions(s,-1,null)};this.sharedActions.push(n);return n}storeActions(e,t,s){if(t<0&&s&&s.actions.length==e.length)return s.addr;let i=[];for(let n of e){if(s&&s.actions.some((e=>e.eq(n))))continue;if(n instanceof Ke){i.push(n.term.id,n.target.id,0)}else{let e=zt(n.rule,this.skipInfo);if(e!=t)i.push(n.term.id,e&65535,e>>16)}}i.push(65535);if(t>-1)i.push(2,t&65535,t>>16);else if(s)i.push(1,s.addr&65535,s.addr>>16);else i.push(0);return this.data.storeArray(i)}finish(e,t,s){let i=this.builder;let n=i.skipRules.indexOf(e.skip);let r=this.skipData[n],l=this.skipInfo[n].startTokens;let a=e.defaultReduce?zt(e.defaultReduce,this.skipInfo):0;let o=t?1:0;let u=-1,h=null;if(a==0){if(t)for(const t of e.actions)if(t instanceof Xe&&t.term.eof)u=zt(t.rule,this.skipInfo);if(u<0)h=this.findSharedActions(e)}if(e.set.some((e=>e.rule.name.top&&e.pos==e.rule.parts.length)))o|=2;let f=[];for(let d=0;d<e.actions.length+l.length;d++){let t=d<e.actions.length?e.actions[d].term:l[d-e.actions.length];for(;;){let e=i.tokenOrigins[t.name];if(e&&e.spec){t=e.spec;continue}if(e&&e.external instanceof ns)Et(f,e.external);break}}let c=0;for(let d=0;d<this.tokenizers.length;d++){let t=this.tokenizers[d];if(f.includes(t)||t.groupID==e.tokenGroup)c|=1<<d}let p=e.id*6;this.stateArray[p+0]=o;this.stateArray[p+1]=this.storeActions(a?vt:e.actions,u,h);this.stateArray[p+2]=r;this.stateArray[p+3]=c;this.stateArray[p+4]=a;this.stateArray[p+5]=s}}function Nt(e,t,s){let i=e.props[t];if(!i||i.split(" ").indexOf(s)<0)e.props[t]=i?i+" "+s:s}function At(e){let t=Object.create(null);for(let{value:s,term:i,type:n}of e){let e=n=="specialize"?0:1;t[s]=i.id<<1|e}return t}function zt(e,t,s=e.parts.length){return e.name.id|65536|(e.isRepeatWrap&&s==e.parts.length?131072:0)|(t.some((t=>t.rule==e.name))?262144:0)|s<<19}function Ct(e,t){e:for(let s=0;;){let i=e.indexOf(t[0],s);if(i==-1||i+t.length>e.length)break;for(let n=1;n<t.length;n++){if(t[n]!=e[i+n]){s=i+1;continue e}}return i}return-1}function It(e,t){let s=Object.create(null);let i=[];let n=e=>{if(!s[e.id]){s[e.id]=true;i.push(e)}};for(let r of e)if(r.startRule&&t.includes(r.startRule))n(r);for(let r=0;r<i.length;r++){for(let e of i[r].actions)if(e instanceof Ke)n(e.target);for(let e of i[r].goto)n(e.target)}return e=>!s[e]}class qt{constructor(){this.data=[]}storeArray(e){let t=Ct(this.data,e);if(t>-1)return t;let s=this.data.length;for(let i of e)this.data.push(i);return s}finish(){return Uint16Array.from(this.data)}}function Dt(e){let t={};let s=0;for(let l of e){for(let e of l.goto){s=Math.max(e.term.id,s);let i=t[e.term.id]||(t[e.term.id]={});(i[e.target.id]||(i[e.target.id]=[])).push(l.id)}}let i=new qt;let n=[];let r=s+2;for(let l=0;l<=s;l++){let e=t[l];if(!e){n.push(1);continue}let s=[];let a=Object.keys(e);for(let t of a){let i=e[t];s.push((t==a[a.length-1]?1:0)+(i.length<<1));s.push(+t);for(let e of i)s.push(e)}n.push(i.storeArray(s)+r)}if(n.some((e=>e>65535)))throw new B("Goto table too large");return Uint16Array.from([s+1,...n,...i.data])}class Gt{constructor(e,t){this.tokens=e;this.groupID=t}create(){return this.groupID}createSource(){return String(this.groupID)}}function Et(e,t){if(!e.includes(t))e.push(t)}function Jt(e){let t=Object.create(null);for(let s of e){let e=1<<s.groupID;for(let i of s.tokens){t[i.id]=(t[i.id]||0)|e}}return t}class _t{constructor(e,t,s){this.name=e;this.expr=t;this.scope=s}}class Bt{constructor(e,t,s,i){this.name=e;this.start=t;this.to=s;this.args=i}}class Ut{constructor(e,t){this.b=e;this.ast=t;this.startState=new re;this.built=[];this.building=[];this.byDialect=Object.create(null);this.precedenceRelations=[];this.rules=t?t.rules:vt;for(let s of this.rules)e.unique(s.id)}getToken(e){for(let o of this.built)if(o.matches(e))return o.term;let t=e.id.name;let s=this.rules.find((e=>e.id.name==t));if(!s)return null;let{name:i,props:n,dialect:r,exported:l}=this.b.nodeInfo(s.props,"d",t,e.args,s.params.length!=e.args.length?vt:s.params);let a=this.b.makeTerminal(e.toString(),i,n);if(r!=null)(this.byDialect[r]||(this.byDialect[r]=[])).push(a);if((a.nodeType||l)&&s.params.length==0){if(!a.nodeType)a.preserve=true;this.b.namedTerms[l||t]=a}this.buildRule(s,e,this.startState,new re([a]));this.built.push(new Rt(t,e.args,a));return a}buildRule(e,t,s,i,n=vt){let r=t.id.name;if(e.params.length!=t.args.length)this.b.raise(`Incorrect number of arguments for token '${r}'`,t.start);let l=this.building.find((e=>e.name==r&&G(t.args,e.args)));if(l){if(l.to==i){s.nullEdge(l.start);return}let e=this.building.length-1;while(this.building[e].name!=r)e--;this.b.raise(`Invalid (non-tail) recursion in token rules: ${this.building.slice(e).map((e=>e.name)).join(" -> ")}`,t.start)}this.b.used(e.id.name);let a=new re;s.nullEdge(a);this.building.push(new Bt(r,a,i,t.args));this.build(this.b.substituteArgs(e.expr,t.args,e.params),a,i,t.args.map(((t,s)=>new _t(e.params[s].name,t,n))));this.building.pop()}build(e,t,s,i){if(e instanceof v){let n=e.id.name,r=i.find((e=>e.name==n));if(r)return this.build(r.expr,t,s,r.scope);let l;for(let e=0,t=this.b.localTokens;e<=t.length;e++){let s=e==t.length?this.b.tokens:t[e];l=s.rules.find((e=>e.id.name==n))}if(!l)return this.b.raise(`Reference to token rule '${e.id.name}', which isn't found`,e.start);this.buildRule(l,e,t,s,i)}else if(e instanceof q){for(let[i,n]of I[e.type])t.edge(i,n,s)}else if(e instanceof R){for(let n of e.exprs)this.build(n,t,s,i)}else if(es(e)){t.nullEdge(s)}else if(e instanceof O){let n=e.markers.find((e=>e.length>0));if(n)this.b.raise("Conflict marker in token expression",n[0].start);for(let r=0;r<e.exprs.length;r++){let n=r==e.exprs.length-1?s:new re;this.build(e.exprs[r],t,n,i);t=n}}else if(e instanceof j){if(e.kind=="*"){let n=new re;t.nullEdge(n);this.build(e.expr,n,n,i);n.nullEdge(s)}else if(e.kind=="+"){let n=new re;this.build(e.expr,t,n,i);this.build(e.expr,n,n,i);n.nullEdge(s)}else{t.nullEdge(s);this.build(e.expr,t,s,i)}}else if(e instanceof A){for(let[i,n]of e.inverted?Wt(e.ranges):e.ranges)Xt(t,s,i,n)}else if(e instanceof N){for(let i=0;i<e.value.length;i++){let n=e.value.charCodeAt(i);let r=i==e.value.length-1?s:new re;t.edge(n,n+1,r);t=r}}else if(e instanceof z){let e=new re;t.edge(0,56320,s);t.edge(56320,K+1,s);t.edge(55296,56320,e);e.edge(56320,57344,s)}else{return this.b.raise(`Unrecognized expression type in token`,e.start)}}takePrecedences(){let e=this.precedenceRelations=[];if(this.ast)for(let t of this.ast.precedences){let s=[];for(let i of t.items){let t=[];if(i instanceof v){for(let e of this.built)if(i.args.length?e.matches(i):e.id==i.id.name)t.push(e.term)}else{let e=JSON.stringify(i.value),s=this.built.find((t=>t.id==e));if(s)t.push(s.term)}if(!t.length)this.b.warn(`Precedence specified for unknown token ${i}`,i.start);for(let i of t)is(e,i,s);s=s.concat(t)}}}precededBy(e,t){let s=this.precedenceRelations.find((t=>t.term==e));return s&&s.after.includes(t)}buildPrecTable(e){let t=[],s=this.precedenceRelations.slice();for(let{a:i,b:n,soft:r}of e)if(r){if(!s.some((e=>e.term==i))||!s.some((e=>e.term==n)))continue;if(r<0)[i,n]=[n,i];is(s,n,[i]);is(s,i,[])}e:while(s.length){for(let e=0;e<s.length;e++){let i=s[e];if(i.after.every((e=>t.includes(e.id)))){t.push(i.term.id);if(s.length==1)break e;s[e]=s.pop();continue e}}this.b.raise(`Cyclic token precedence relation between ${s.map((e=>e.term)).join(", ")}`)}return t}}class Mt extends Ut{constructor(){super(...arguments);this.explicitConflicts=[]}getLiteral(e){let t=JSON.stringify(e.value);for(let o of this.built)if(o.id==t)return o.term;let s=null,i={},n=null,r=null;let l=this.ast?this.ast.literals.find((t=>t.literal==e.value)):null;if(l)({name:s,props:i,dialect:n,exported:r}=this.b.nodeInfo(l.props,"da",e.value));let a=this.b.makeTerminal(t,s,i);if(n!=null)(this.byDialect[n]||(this.byDialect[n]=[])).push(a);if(r)this.b.namedTerms[r]=a;this.build(e,this.startState,new re([a]),vt);this.built.push(new Rt(t,vt,a));return a}takeConflicts(){var e;let t=e=>{if(e instanceof v){for(let t of this.built)if(t.matches(e))return t.term}else{let t=JSON.stringify(e.value),s=this.built.find((e=>e.id==t));if(s)return s.term}this.b.warn(`Precedence specified for unknown token ${e}`,e.start);return null};for(let s of((e=this.ast)===null||e===void 0?void 0:e.conflicts)||[]){let e=t(s.a),i=t(s.b);if(e&&i){if(e.id<i.id)[e,i]=[i,e];this.explicitConflicts.push({a:e,b:i})}}}buildTokenGroups(e,t,s){let i=this.startState.compile();if(i.accepting.length)this.b.raise(`Grammar contains zero-length tokens (in '${i.accepting[0].name}')`,this.rules.find((e=>e.id.name==i.accepting[0].name)).start);if(/\btokens\b/.test(Ue))console.log(i.toString());let n=i.findConflicts(Lt(e,this.b,t)).filter((({a:e,b:t})=>!this.precededBy(e,t)&&!this.precededBy(t,e)));for(let{a:h,b:f}of this.explicitConflicts){if(!n.some((e=>e.a==h&&e.b==f)))n.push(new le(h,f,0,"",""))}let r=n.filter((e=>e.soft)),l=n.filter((e=>!e.soft));let a=[];let o=[];for(let h of e){if(h.defaultReduce||h.tokenGroup>-1)continue;let e=[],i=[];let n=t[this.b.skipRules.indexOf(h.skip)].startTokens;for(let t of n)if(h.actions.some((e=>e.term==t)))this.b.raise(`Use of token ${t.name} conflicts with skip rule`);let r=[];for(let t=0;t<h.actions.length+(n?n.length:0);t++){let e=t<h.actions.length?h.actions[t].term:n[t-h.actions.length];let s=this.b.tokenOrigins[e.name];if(s&&s.spec)e=s.spec;else if(s&&s.external)continue;Et(r,e)}if(r.length==0)continue;for(let t of r){for(let s of l){let n=s.a==t?s.b:s.b==t?s.a:null;if(!n)continue;if(r.includes(n)&&!a.some((e=>e.conflict==s))){let e=s.exampleA?` (example: ${JSON.stringify(s.exampleA)}${s.exampleB?` vs ${JSON.stringify(s.exampleB)}`:""})`:"";a.push({error:`Overlapping tokens ${t.name} and ${n.name} used in same context${e}\n`+`After: ${h.set[0].trail()}`,conflict:s})}Et(e,t);Et(i,n)}}let u=null;for(let t of o){if(i.some((e=>t.tokens.includes(e))))continue;for(let s of e)Et(t.tokens,s);u=t;break}if(!u){u=new Gt(e,o.length+s);o.push(u)}h.tokenGroup=u.groupID}if(a.length)this.b.raise(a.map((e=>e.error)).join("\n\n"));if(o.length+s>16)this.b.raise(`Too many different token groups (${o.length}) to represent them as a 16-bit bitfield`);let u=this.buildPrecTable(r);return{tokenGroups:o,tokenPrec:u,tokenData:i.toArray(Jt(o),u)}}}class Ft extends Ut{constructor(e,t){super(e,t);this.fallback=null;if(t.fallback)e.unique(t.fallback.id)}getToken(e){let t=null;if(this.ast.fallback&&this.ast.fallback.id.name==e.id.name){if(e.args.length)this.b.raise(`Incorrect number of arguments for ${e.id.name}`,e.start);if(!this.fallback){let{name:t,props:s,exported:i}=this.b.nodeInfo(this.ast.fallback.props,"",e.id.name,vt,vt);let n=this.fallback=this.b.makeTerminal(e.id.name,t,s);if(n.nodeType||i){if(!n.nodeType)n.preserve=true;this.b.namedTerms[i||e.id.name]=n}this.b.used(e.id.name)}t=this.fallback}else{t=super.getToken(e)}if(t&&!this.b.tokenOrigins[t.name])this.b.tokenOrigins[t.name]={group:this};return t}buildLocalGroup(e,t,s){let i=this.startState.compile();if(i.accepting.length)this.b.raise(`Grammar contains zero-length tokens (in '${i.accepting[0].name}')`,this.rules.find((e=>e.id.name==i.accepting[0].name)).start);for(let{a:r,b:u,exampleA:h}of i.findConflicts((()=>true))){if(!this.precededBy(r,u)&&!this.precededBy(u,r))this.b.raise(`Overlapping tokens ${r.name} and ${u.name} in local token group${h?` (example: ${JSON.stringify(h)})`:""}`)}for(let r of e){if(r.defaultReduce)continue;let e=null;let i=t[this.b.skipRules.indexOf(r.skip)].startTokens[0];for(let{term:t}of r.actions){let s=this.b.tokenOrigins[t.name];if((s===null||s===void 0?void 0:s.group)==this)e=t;else i=t}if(e){if(i)this.b.raise(`Tokens from a local token group used together with other tokens (${e.name} with ${i.name})`);r.tokenGroup=s}}let n=this.buildPrecTable(vt);let l=i.toArray({[s]:65535},n);let a=l.length;let o=new Uint16Array(l.length+n.length+1);o.set(l,0);o.set(n,a);o[o.length-1]=65535;return{groupID:s,create:()=>new r.RA(o,a,this.fallback?this.fallback.id:undefined),createSource:e=>`new ${e("LocalTokenGroup","@lezer/lr")}(${$t(o)}, ${a}${this.fallback?`, ${this.fallback.id}`:""})`}}}function Lt(e,t,s){let i=Object.create(null);function n(e,i){return e.actions.some((e=>e.term==i))||s[t.skipRules.indexOf(e.skip)].startTokens.includes(i)}return(t,s)=>{if(t.id<s.id)[t,s]=[s,t];let r=t.id|s.id<<16,l=i[r];if(l!=null)return l;return i[r]=e.some((e=>n(e,t)&&n(e,s)))}}function Wt(e){let t=0,s=[];for(let[i,n]of e){if(i>t)s.push([t,i]);t=n}if(t<=Zt)s.push([t,Zt+1]);return s}const Qt=65536,Vt=55296,Yt=57344,Zt=1114111;const Ht=56320,Kt=57343;function Xt(e,t,s,i){if(s<Qt){if(s<Vt)e.edge(s,Math.min(i,Vt),t);if(i>Yt)e.edge(Math.max(s,Yt),Math.min(i,K+1),t);s=Qt}if(i<=Qt)return;let n=String.fromCodePoint(s),r=String.fromCodePoint(i-1);let l=n.charCodeAt(0),a=n.charCodeAt(1);let o=r.charCodeAt(0),u=r.charCodeAt(1);if(l==o){let s=new re;e.edge(l,l+1,s);s.edge(a,u+1,t)}else{let s=l,i=o;if(a>Ht){s++;let i=new re;e.edge(l,l+1,i);i.edge(a,Kt+1,t)}if(u<Kt){i--;let s=new re;e.edge(o,o+1,s);s.edge(Ht,u+1,t)}if(s<=i){let n=new re;e.edge(s,i+1,n);n.edge(Ht,Kt+1,t)}}}function es(e){return e instanceof O&&e.exprs.length==0}function ts(e,t){let s=Object.create(null);for(let i of t){e.unique(i.id);let{name:t,props:n,dialect:r}=e.nodeInfo(i.props,"d",i.id.name);let l=e.makeTerminal(i.id.name,t,n);if(r!=null)(e.tokens.byDialect[r]||(e.tokens.byDialect[r]=[])).push(l);e.namedTerms[i.id.name]=s[i.id.name]=l}return s}function ss(e,t,s){let i=t[s.id.name];if(!i)return null;if(s.args.length)e.raise("External tokens cannot take arguments",s.args[0].start);e.used(s.id.name);return i}function is(e,t,s){let i=e.findIndex((e=>e.term==t));if(i<0)e.push({term:t,after:s});else e[i]={term:t,after:e[i].after.concat(s)}}class ns{constructor(e,t){this.b=e;this.ast=t;this.tokens=ts(e,t.tokens);for(let s in this.tokens)this.b.tokenOrigins[this.tokens[s].name]={external:this}}getToken(e){return ss(this.b,this.tokens,e)}create(){return this.b.options.externalTokenizer(this.ast.id.name,this.b.termTable)}createSource(e){let{source:t,id:{name:s}}=this.ast;return e(s,t)}}class rs{constructor(e,t){this.b=e;this.ast=t;this.term=null;this.tokens=ts(e,t.tokens)}finish(){let e=this.b.normalizeExpr(this.ast.token);if(e.length!=1||e[0].terms.length!=1||!e[0].terms[0].terminal)this.b.raise(`The token expression to '@external ${this.ast.type}' must resolve to a token`,this.ast.token.start);this.term=e[0].terms[0];for(let t in this.tokens)this.b.tokenOrigins[this.tokens[t].name]={spec:this.term,external:this}}getToken(e){return ss(this.b,this.tokens,e)}}function ls(e,t){for(let s=0;;s++){let i=Object.create(null),n;if(s==0)for(let l of e){if(l.name.inline&&!i[l.name.name]){let a=e.filter((e=>e.name==l.name));if(a.some((e=>e.parts.includes(l.name))))continue;n=i[l.name.name]=a}}for(let o=0;o<e.length;o++){let u=e[o];if(!u.name.interesting&&!u.parts.includes(u.name)&&u.parts.length<3&&!t.includes(u.name)&&(u.parts.length==1||e.every((e=>e.skip==u.skip||!e.parts.includes(u.name))))&&!u.parts.some((e=>!!i[e.name]))&&!e.some(((e,t)=>t!=o&&e.name==u.name)))n=i[u.name.name]=[u]}if(!n)return e;let r=[];for(let h of e){if(i[h.name.name])continue;if(!h.parts.some((e=>!!i[e.name]))){r.push(h);continue}function f(e,t,s){if(e==h.parts.length){r.push(new H(h.name,s,t,h.skip));return}let n=h.parts[e],l=i[n.name];if(!l){f(e+1,t.concat(h.conflicts[e+1]),s.concat(n));return}for(let i of l)f(e+1,t.slice(0,t.length-1).concat(t[e].join(i.conflicts[0])).concat(i.conflicts.slice(1,i.conflicts.length-1)).concat(h.conflicts[e+1].join(i.conflicts[i.conflicts.length-1])),s.concat(i.parts))}f(0,[h.conflicts[0]],[])}e=r}}function as(e){let t=Object.create(null),s;for(let n=0;n<e.length;){let i=n;let r=e[n++].name;while(n<e.length&&e[n].name==r)n++;let l=n-i;if(r.interesting)continue;for(let a=n;a<e.length;){let n=a,o=e[a++].name;while(a<e.length&&e[a].name==o)a++;if(a-n!=l||o.interesting)continue;let u=true;for(let t=0;t<l&&u;t++){let s=e[i+t],r=e[n+t];if(s.cmpNoName(r)!=0)u=false}if(u)s=t[r.name]=o}}if(!s)return e;let i=[];for(let n of e)if(!t[n.name.name]){i.push(n.parts.every((e=>!t[e.name]))?n:new H(n.name,n.parts.map((e=>t[e.name]||e)),n.conflicts,n.skip))}return i}function os(e,t){return as(ls(e,t))}function us(e,t={}){let s=new Ot(e,t),i=s.getParser();i.termTable=s.termTable;return i}const hs=["await","break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","while","with","null","true","false","instanceof","typeof","void","delete","new","in","this","const","class","extends","export","import","super","enum","implements","interface","let","package","private","protected","public","static","yield","require"];function fs(e,t={}){return new Ot(e,t).getParserFile()}function cs(e){let t=e[0];return t=="_"||t.toUpperCase()!=t}function ps(e){return e.props.some((e=>e.at&&e.name=="export"))}}}]);