markdown-flow-ui 0.3.4 → 0.3.5

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 (1184) hide show
  1. package/dist/_virtual/{advancedFormat.es2.js → advancedFormat2.es.js} +1 -1
  2. package/dist/_virtual/advancedFormat2.es.js.map +1 -0
  3. package/dist/_virtual/core.cjs +1 -1
  4. package/dist/_virtual/core.es.js +1 -1
  5. package/dist/_virtual/{cose-base.es2.js → cose-base2.es.js} +1 -1
  6. package/dist/_virtual/cose-base2.es.js.map +1 -0
  7. package/dist/_virtual/{customParseFormat.es2.js → customParseFormat2.es.js} +1 -1
  8. package/dist/_virtual/customParseFormat2.es.js.map +1 -0
  9. package/dist/_virtual/cytoscape-cose-bilkent2.es.js +5 -0
  10. package/dist/_virtual/cytoscape-cose-bilkent2.es.js.map +1 -0
  11. package/dist/_virtual/{cytoscape-fcose.es2.js → cytoscape-fcose2.es.js} +1 -1
  12. package/dist/_virtual/cytoscape-fcose2.es.js.map +1 -0
  13. package/dist/_virtual/{dayjs.min2.cjs → dayjs2.min.cjs} +1 -1
  14. package/dist/_virtual/dayjs2.min.cjs.map +1 -0
  15. package/dist/_virtual/{dayjs.min.es2.js → dayjs2.min.es.js} +1 -1
  16. package/dist/_virtual/dayjs2.min.es.js.map +1 -0
  17. package/dist/_virtual/{duration.es2.js → duration2.es.js} +1 -1
  18. package/dist/_virtual/duration2.es.js.map +1 -0
  19. package/dist/_virtual/{index.es10.js → index10.es.js} +1 -1
  20. package/dist/_virtual/index10.es.js.map +1 -0
  21. package/dist/_virtual/{index.es11.js → index11.es.js} +1 -1
  22. package/dist/_virtual/index11.es.js.map +1 -0
  23. package/dist/_virtual/{index.es12.js → index12.es.js} +1 -1
  24. package/dist/_virtual/index12.es.js.map +1 -0
  25. package/dist/_virtual/{index.es9.js → index2.es.js} +1 -1
  26. package/dist/_virtual/index2.es.js.map +1 -0
  27. package/dist/_virtual/index3.cjs +1 -1
  28. package/dist/_virtual/{index.es4.js → index3.es.js} +1 -1
  29. package/dist/_virtual/index3.es.js.map +1 -0
  30. package/dist/_virtual/index4.cjs +1 -1
  31. package/dist/_virtual/{index.es3.js → index4.es.js} +1 -1
  32. package/dist/_virtual/index4.es.js.map +1 -0
  33. package/dist/_virtual/{index.es5.js → index5.es.js} +1 -1
  34. package/dist/_virtual/index5.es.js.map +1 -0
  35. package/dist/_virtual/index6.cjs +1 -1
  36. package/dist/_virtual/{index.es7.js → index6.es.js} +1 -1
  37. package/dist/_virtual/index6.es.js.map +1 -0
  38. package/dist/_virtual/index7.cjs +1 -1
  39. package/dist/_virtual/{index.es6.js → index7.es.js} +1 -1
  40. package/dist/_virtual/index7.es.js.map +1 -0
  41. package/dist/_virtual/{index.es8.js → index8.es.js} +1 -1
  42. package/dist/_virtual/index8.es.js.map +1 -0
  43. package/dist/_virtual/{index.es2.js → index9.es.js} +1 -1
  44. package/dist/_virtual/index9.es.js.map +1 -0
  45. package/dist/_virtual/{isoWeek.es2.js → isoWeek2.es.js} +1 -1
  46. package/dist/_virtual/isoWeek2.es.js.map +1 -0
  47. package/dist/_virtual/{layout-base.es2.js → layout-base2.es.js} +1 -1
  48. package/dist/_virtual/layout-base2.es.js.map +1 -0
  49. package/dist/components/ContentRender/ContentRender.cjs.map +1 -1
  50. package/dist/components/ContentRender/ContentRender.es.js.map +1 -1
  51. package/dist/components/ContentRender/IframeSandbox.es.js +1 -1
  52. package/dist/components/ContentRender/plugins/MermaidChart.cjs.map +1 -1
  53. package/dist/components/ContentRender/utils/video-markdown-run.es.js +2 -2
  54. package/dist/components/MarkdownFlow/ScrollToBottomControl.cjs +1 -1
  55. package/dist/components/MarkdownFlow/ScrollToBottomControl.cjs.map +1 -1
  56. package/dist/components/MarkdownFlow/ScrollToBottomControl.es.js +1 -1
  57. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs.map +1 -1
  58. package/dist/components/Slide/Slide.es.js +3 -3
  59. package/dist/components/ui/inputGroup/input-group.d.ts +1 -1
  60. package/dist/components/ui/inputGroup/textarea.cjs +1 -1
  61. package/dist/components/ui/inputGroup/textarea.es.js +1 -1
  62. package/dist/components/ui/tooltip.cjs +1 -1
  63. package/dist/components/ui/tooltip.cjs.map +1 -1
  64. package/dist/components/ui/tooltip.es.js +12 -12
  65. package/dist/index.cjs +1 -1
  66. package/dist/index.es.js +3 -3
  67. package/dist/markdown-flow-ui-lib.css +2 -2
  68. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs +1 -1
  69. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs.map +1 -1
  70. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.es.js +4 -4
  71. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.es.js.map +1 -1
  72. package/dist/node_modules/@braintree/sanitize-url/dist/index.es.js +1 -1
  73. package/dist/node_modules/@codemirror/autocomplete/dist/index.cjs +1 -1
  74. package/dist/node_modules/@codemirror/autocomplete/dist/index.cjs.map +1 -1
  75. package/dist/node_modules/@codemirror/autocomplete/dist/index.es.js +172 -159
  76. package/dist/node_modules/@codemirror/autocomplete/dist/index.es.js.map +1 -1
  77. package/dist/node_modules/@codemirror/commands/dist/index.cjs +1 -1
  78. package/dist/node_modules/@codemirror/commands/dist/index.cjs.map +1 -1
  79. package/dist/node_modules/@codemirror/commands/dist/index.es.js +376 -333
  80. package/dist/node_modules/@codemirror/commands/dist/index.es.js.map +1 -1
  81. package/dist/node_modules/@codemirror/lang-css/dist/index.es.js +3 -3
  82. package/dist/node_modules/@codemirror/lang-html/dist/index.cjs +1 -1
  83. package/dist/node_modules/@codemirror/lang-html/dist/index.cjs.map +1 -1
  84. package/dist/node_modules/@codemirror/lang-html/dist/index.es.js +238 -228
  85. package/dist/node_modules/@codemirror/lang-html/dist/index.es.js.map +1 -1
  86. package/dist/node_modules/@codemirror/lang-javascript/dist/index.cjs +4 -4
  87. package/dist/node_modules/@codemirror/lang-javascript/dist/index.cjs.map +1 -1
  88. package/dist/node_modules/@codemirror/lang-javascript/dist/index.es.js +62 -50
  89. package/dist/node_modules/@codemirror/lang-javascript/dist/index.es.js.map +1 -1
  90. package/dist/node_modules/@codemirror/lang-markdown/dist/index.cjs +1 -1
  91. package/dist/node_modules/@codemirror/lang-markdown/dist/index.cjs.map +1 -1
  92. package/dist/node_modules/@codemirror/lang-markdown/dist/index.es.js +237 -207
  93. package/dist/node_modules/@codemirror/lang-markdown/dist/index.es.js.map +1 -1
  94. package/dist/node_modules/@codemirror/language/dist/index.cjs +1 -1
  95. package/dist/node_modules/@codemirror/language/dist/index.cjs.map +1 -1
  96. package/dist/node_modules/@codemirror/language/dist/index.es.js +302 -296
  97. package/dist/node_modules/@codemirror/language/dist/index.es.js.map +1 -1
  98. package/dist/node_modules/@codemirror/lint/dist/index.cjs +1 -1
  99. package/dist/node_modules/@codemirror/lint/dist/index.cjs.map +1 -1
  100. package/dist/node_modules/@codemirror/lint/dist/index.es.js +281 -236
  101. package/dist/node_modules/@codemirror/lint/dist/index.es.js.map +1 -1
  102. package/dist/node_modules/@codemirror/search/dist/index.cjs +2 -2
  103. package/dist/node_modules/@codemirror/search/dist/index.cjs.map +1 -1
  104. package/dist/node_modules/@codemirror/search/dist/index.es.js +427 -454
  105. package/dist/node_modules/@codemirror/search/dist/index.es.js.map +1 -1
  106. package/dist/node_modules/@codemirror/state/dist/index.cjs +5 -5
  107. package/dist/node_modules/@codemirror/state/dist/index.cjs.map +1 -1
  108. package/dist/node_modules/@codemirror/state/dist/index.es.js +556 -509
  109. package/dist/node_modules/@codemirror/state/dist/index.es.js.map +1 -1
  110. package/dist/node_modules/@codemirror/view/dist/index.cjs +5 -5
  111. package/dist/node_modules/@codemirror/view/dist/index.cjs.map +1 -1
  112. package/dist/node_modules/@codemirror/view/dist/index.es.js +3982 -3507
  113. package/dist/node_modules/@codemirror/view/dist/index.es.js.map +1 -1
  114. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +1 -1
  115. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.cjs.map +1 -1
  116. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.es.js +288 -309
  117. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.es.js.map +1 -1
  118. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +1 -1
  119. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs.map +1 -1
  120. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.es.js +244 -252
  121. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.es.js.map +1 -1
  122. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +1 -1
  123. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs.map +1 -1
  124. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +1 -1
  125. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs.map +1 -1
  126. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.es.js +8 -8
  127. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.es.js.map +1 -1
  128. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.es.js +47 -47
  129. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.es.js.map +1 -1
  130. package/dist/node_modules/@lezer/common/dist/index.cjs +1 -1
  131. package/dist/node_modules/@lezer/common/dist/index.cjs.map +1 -1
  132. package/dist/node_modules/@lezer/common/dist/index.es.js +266 -253
  133. package/dist/node_modules/@lezer/common/dist/index.es.js.map +1 -1
  134. package/dist/node_modules/@lezer/css/dist/index.cjs +1 -1
  135. package/dist/node_modules/@lezer/css/dist/index.cjs.map +1 -1
  136. package/dist/node_modules/@lezer/css/dist/index.es.js +95 -87
  137. package/dist/node_modules/@lezer/css/dist/index.es.js.map +1 -1
  138. package/dist/node_modules/@lezer/highlight/dist/index.cjs +1 -1
  139. package/dist/node_modules/@lezer/highlight/dist/index.cjs.map +1 -1
  140. package/dist/node_modules/@lezer/highlight/dist/index.es.js +150 -139
  141. package/dist/node_modules/@lezer/highlight/dist/index.es.js.map +1 -1
  142. package/dist/node_modules/@lezer/html/dist/index.cjs +1 -1
  143. package/dist/node_modules/@lezer/html/dist/index.cjs.map +1 -1
  144. package/dist/node_modules/@lezer/html/dist/index.es.js +88 -95
  145. package/dist/node_modules/@lezer/html/dist/index.es.js.map +1 -1
  146. package/dist/node_modules/@lezer/javascript/dist/index.cjs +1 -1
  147. package/dist/node_modules/@lezer/javascript/dist/index.cjs.map +1 -1
  148. package/dist/node_modules/@lezer/javascript/dist/index.es.js +49 -49
  149. package/dist/node_modules/@lezer/javascript/dist/index.es.js.map +1 -1
  150. package/dist/node_modules/@lezer/lr/dist/index.cjs +1 -1
  151. package/dist/node_modules/@lezer/lr/dist/index.cjs.map +1 -1
  152. package/dist/node_modules/@lezer/lr/dist/index.es.js +148 -137
  153. package/dist/node_modules/@lezer/lr/dist/index.es.js.map +1 -1
  154. package/dist/node_modules/@lezer/markdown/dist/index.cjs +5 -5
  155. package/dist/node_modules/@lezer/markdown/dist/index.cjs.map +1 -1
  156. package/dist/node_modules/@lezer/markdown/dist/index.es.js +305 -269
  157. package/dist/node_modules/@lezer/markdown/dist/index.es.js.map +1 -1
  158. package/dist/node_modules/@marijn/find-cluster-break/src/index.cjs +1 -1
  159. package/dist/node_modules/@marijn/find-cluster-break/src/index.cjs.map +1 -1
  160. package/dist/node_modules/@marijn/find-cluster-break/src/index.es.js +31 -31
  161. package/dist/node_modules/@marijn/find-cluster-break/src/index.es.js.map +1 -1
  162. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7GRP2DOG.es.js +4 -3
  163. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7GRP2DOG.es.js.map +1 -1
  164. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2ZTRR5NV.es.js +1 -1
  165. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-3Z5EZCMW.es.js +1 -1
  166. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5V3GS4D5.es.js +1 -1
  167. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-6AZGARVD.es.js +1 -1
  168. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-6EIED4P4.es.js +1 -1
  169. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-6K3QC6MW.es.js +1 -1
  170. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-6TQVIW2G.es.js +1 -1
  171. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-747NJXEK.es.js +1 -1
  172. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-I5DQTOEV.es.js +1 -1
  173. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ICYGCRZG.es.js +1 -1
  174. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-IH6LHLGP.es.js +1 -1
  175. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KI3K4JFJ.es.js +1 -1
  176. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-OUJLGHUK.es.js +1 -1
  177. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UY3FDG6J.es.js +1 -1
  178. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-XHIXRSVI.es.js +1 -1
  179. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/cynefin-OW5HDTMX.es.js +4 -3
  180. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/cynefin-OW5HDTMX.es.js.map +1 -1
  181. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-NTZA5JFV.es.js +4 -3
  182. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-NTZA5JFV.es.js.map +1 -1
  183. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-4MIJSDKK.es.js +3 -2
  184. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-4MIJSDKK.es.js.map +1 -1
  185. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-A6RAGUB7.es.js +4 -3
  186. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-A6RAGUB7.es.js.map +1 -1
  187. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-AYTQ26CC.es.js +4 -3
  188. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-AYTQ26CC.es.js.map +1 -1
  189. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-WAS4IAKB.es.js +4 -3
  190. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-WAS4IAKB.es.js.map +1 -1
  191. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-RG4KPBEZ.es.js +4 -3
  192. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-RG4KPBEZ.es.js.map +1 -1
  193. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-74A4TZTK.es.js +4 -3
  194. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-74A4TZTK.es.js.map +1 -1
  195. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-abnf-HS5TGJTU.es.js +4 -3
  196. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-abnf-HS5TGJTU.es.js.map +1 -1
  197. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-ebnf-LZEXJU2U.es.js +4 -3
  198. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-ebnf-LZEXJU2U.es.js.map +1 -1
  199. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-peg-WCYAUIDC.es.js +4 -3
  200. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-peg-WCYAUIDC.es.js.map +1 -1
  201. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-Q6P3EWNA.es.js +4 -3
  202. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-Q6P3EWNA.es.js.map +1 -1
  203. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-WGGIJYW6.es.js +4 -3
  204. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-WGGIJYW6.es.js.map +1 -1
  205. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-WFR3VGLG.es.js +4 -3
  206. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-WFR3VGLG.es.js.map +1 -1
  207. package/dist/node_modules/@radix-ui/primitive/dist/index.cjs +1 -1
  208. package/dist/node_modules/@radix-ui/primitive/dist/index.cjs.map +1 -1
  209. package/dist/node_modules/@radix-ui/primitive/dist/index.es.js +46 -6
  210. package/dist/node_modules/@radix-ui/primitive/dist/index.es.js.map +1 -1
  211. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +1 -1
  212. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +1 -1
  213. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +20 -16
  214. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +1 -1
  215. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs +1 -1
  216. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -1
  217. package/dist/node_modules/@radix-ui/react-context/dist/index.es.js +71 -43
  218. package/dist/node_modules/@radix-ui/react-context/dist/index.es.js.map +1 -1
  219. package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs +1 -1
  220. package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs.map +1 -1
  221. package/dist/node_modules/@radix-ui/react-dialog/dist/index.es.js +16 -16
  222. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +1 -1
  223. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -1
  224. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js +184 -96
  225. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +1 -1
  226. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +1 -1
  227. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -1
  228. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.js +3 -3
  229. package/dist/node_modules/@radix-ui/react-id/dist/index.cjs +1 -1
  230. package/dist/node_modules/@radix-ui/react-id/dist/index.cjs.map +1 -1
  231. package/dist/node_modules/@radix-ui/react-id/dist/index.es.js +10 -9
  232. package/dist/node_modules/@radix-ui/react-id/dist/index.es.js.map +1 -1
  233. package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs +1 -1
  234. package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -1
  235. package/dist/node_modules/@radix-ui/react-portal/dist/index.es.js +14 -12
  236. package/dist/node_modules/@radix-ui/react-portal/dist/index.es.js.map +1 -1
  237. package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs +1 -1
  238. package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs.map +1 -1
  239. package/dist/node_modules/@radix-ui/react-presence/dist/index.es.js +70 -37
  240. package/dist/node_modules/@radix-ui/react-presence/dist/index.es.js.map +1 -1
  241. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs +1 -1
  242. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -1
  243. package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js +16 -14
  244. package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -1
  245. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -1
  246. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
  247. package/dist/node_modules/@radix-ui/react-slot/dist/index.es.js +1 -1
  248. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs +1 -1
  249. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs.map +1 -1
  250. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.es.js +261 -250
  251. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.es.js.map +1 -1
  252. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/primitive/dist/index.cjs.map +1 -0
  253. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/primitive/dist/index.es.js.map +1 -0
  254. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-arrow/dist/index.cjs +2 -0
  255. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-arrow/dist/index.cjs.map +1 -0
  256. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-arrow/dist/index.es.js +25 -0
  257. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-arrow/dist/index.es.js.map +1 -0
  258. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -0
  259. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-context/dist/index.es.js.map +1 -0
  260. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +2 -0
  261. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -0
  262. package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js +1 -1
  263. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +1 -0
  264. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +2 -0
  265. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -0
  266. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-focus-scope/dist/index.es.js +105 -0
  267. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-focus-scope/dist/index.es.js.map +1 -0
  268. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/dist/index.cjs +2 -0
  269. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/dist/index.cjs.map +1 -0
  270. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/dist/index.es.js +271 -0
  271. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/dist/index.es.js.map +1 -0
  272. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-portal/dist/index.cjs +2 -0
  273. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -0
  274. package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/react-portal/dist/index.es.js +1 -1
  275. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-portal/dist/index.es.js.map +1 -0
  276. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-primitive/dist/index.cjs +2 -0
  277. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -0
  278. package/dist/node_modules/@radix-ui/{react-focus-scope → react-tooltip}/node_modules/@radix-ui/react-primitive/dist/index.es.js +1 -1
  279. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -0
  280. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -1
  281. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
  282. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.es.js +94 -7
  283. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -1
  284. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +2 -0
  285. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +1 -0
  286. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +16 -0
  287. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +1 -0
  288. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +2 -0
  289. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.map +1 -0
  290. package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js +2 -2
  291. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js.map +1 -0
  292. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +1 -1
  293. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +1 -1
  294. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +8 -6
  295. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +1 -1
  296. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +1 -1
  297. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.map +1 -1
  298. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js +56 -39
  299. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js.map +1 -1
  300. package/dist/node_modules/@radix-ui/react-use-effect-event/dist/index.cjs.map +1 -0
  301. package/dist/node_modules/@radix-ui/react-use-effect-event/dist/index.es.js.map +1 -0
  302. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.map +1 -1
  303. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js.map +1 -1
  304. package/dist/node_modules/@radix-ui/react-use-size/dist/index.cjs +1 -1
  305. package/dist/node_modules/@radix-ui/react-use-size/dist/index.cjs.map +1 -1
  306. package/dist/node_modules/@radix-ui/react-use-size/dist/index.es.js +28 -21
  307. package/dist/node_modules/@radix-ui/react-use-size/dist/index.es.js.map +1 -1
  308. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +1 -1
  309. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs.map +1 -1
  310. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.es.js +15 -15
  311. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.es.js.map +1 -1
  312. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive/dist/index.cjs +2 -0
  313. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -0
  314. package/dist/node_modules/@radix-ui/{react-dialog → react-visually-hidden}/node_modules/@radix-ui/react-primitive/dist/index.es.js +1 -1
  315. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -0
  316. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.cjs +2 -0
  317. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -0
  318. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.es.js +99 -0
  319. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -0
  320. package/dist/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.cjs +1 -1
  321. package/dist/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.cjs.map +1 -1
  322. package/dist/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.es.js +11 -13
  323. package/dist/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.es.js.map +1 -1
  324. package/dist/node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.cjs +1 -1
  325. package/dist/node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.cjs.map +1 -1
  326. package/dist/node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.es.js +20 -27
  327. package/dist/node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.es.js.map +1 -1
  328. package/dist/node_modules/@uiw/react-codemirror/esm/index.cjs +1 -1
  329. package/dist/node_modules/@uiw/react-codemirror/esm/index.cjs.map +1 -1
  330. package/dist/node_modules/@uiw/react-codemirror/esm/index.es.js +51 -80
  331. package/dist/node_modules/@uiw/react-codemirror/esm/index.es.js.map +1 -1
  332. package/dist/node_modules/@uiw/react-codemirror/esm/theme/dimensionTheme.cjs +2 -0
  333. package/dist/node_modules/@uiw/react-codemirror/esm/theme/dimensionTheme.cjs.map +1 -0
  334. package/dist/node_modules/@uiw/react-codemirror/esm/theme/dimensionTheme.es.js +33 -0
  335. package/dist/node_modules/@uiw/react-codemirror/esm/theme/dimensionTheme.es.js.map +1 -0
  336. package/dist/node_modules/@uiw/react-codemirror/esm/useCodeMirror.cjs +1 -1
  337. package/dist/node_modules/@uiw/react-codemirror/esm/useCodeMirror.cjs.map +1 -1
  338. package/dist/node_modules/@uiw/react-codemirror/esm/useCodeMirror.es.js +64 -98
  339. package/dist/node_modules/@uiw/react-codemirror/esm/useCodeMirror.es.js.map +1 -1
  340. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.cjs +1 -1
  341. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.cjs.map +1 -1
  342. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.es.js +65 -42
  343. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.es.js.map +1 -1
  344. package/dist/node_modules/@ungap/structured-clone/esm/serialize.cjs +1 -1
  345. package/dist/node_modules/@ungap/structured-clone/esm/serialize.cjs.map +1 -1
  346. package/dist/node_modules/@ungap/structured-clone/esm/serialize.es.js +62 -58
  347. package/dist/node_modules/@ungap/structured-clone/esm/serialize.es.js.map +1 -1
  348. package/dist/node_modules/classnames/index.es.js +1 -1
  349. package/dist/node_modules/clsx/dist/clsx.cjs +1 -1
  350. package/dist/node_modules/clsx/dist/clsx.cjs.map +1 -1
  351. package/dist/node_modules/clsx/dist/clsx.es.js +7 -8
  352. package/dist/node_modules/clsx/dist/clsx.es.js.map +1 -1
  353. package/dist/node_modules/cose-base/cose-base.es.js +1 -1
  354. package/dist/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.es.js +1 -1
  355. package/dist/node_modules/cytoscape-fcose/cytoscape-fcose.es.js +1 -1
  356. package/dist/node_modules/d3-color/src/lab.cjs +1 -1
  357. package/dist/node_modules/d3-color/src/lab.cjs.map +1 -1
  358. package/dist/node_modules/d3-color/src/lab.es.js +4 -5
  359. package/dist/node_modules/d3-format/src/defaultLocale.cjs +1 -1
  360. package/dist/node_modules/d3-format/src/defaultLocale.cjs.map +1 -1
  361. package/dist/node_modules/d3-format/src/defaultLocale.es.js +3 -4
  362. package/dist/node_modules/d3-time-format/src/defaultLocale.cjs +1 -1
  363. package/dist/node_modules/d3-time-format/src/defaultLocale.cjs.map +1 -1
  364. package/dist/node_modules/d3-time-format/src/defaultLocale.es.js +2 -3
  365. package/dist/node_modules/d3-time-format/src/locale.es.js +14 -14
  366. package/dist/node_modules/d3-transition/src/selection/transition.cjs +1 -1
  367. package/dist/node_modules/d3-transition/src/selection/transition.es.js +4 -4
  368. package/dist/node_modules/d3-transition/src/transition/interpolate.cjs +1 -1
  369. package/dist/node_modules/d3-transition/src/transition/interpolate.es.js +3 -3
  370. package/dist/node_modules/dagre-d3-es/src/dagre/layout.cjs +1 -1
  371. package/dist/node_modules/dagre-d3-es/src/dagre/layout.es.js +7 -7
  372. package/dist/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.cjs +1 -1
  373. package/dist/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.es.js +4 -4
  374. package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.cjs +1 -1
  375. package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.es.js +14 -14
  376. package/dist/node_modules/dagre-d3-es/src/dagre/util.cjs +1 -1
  377. package/dist/node_modules/dagre-d3-es/src/dagre/util.es.js +7 -7
  378. package/dist/node_modules/dayjs/dayjs.min.cjs +1 -1
  379. package/dist/node_modules/dayjs/dayjs.min.es.js +1 -1
  380. package/dist/node_modules/dayjs/plugin/advancedFormat.es.js +1 -1
  381. package/dist/node_modules/dayjs/plugin/customParseFormat.es.js +1 -1
  382. package/dist/node_modules/dayjs/plugin/duration.es.js +1 -1
  383. package/dist/node_modules/dayjs/plugin/isoWeek.es.js +1 -1
  384. package/dist/node_modules/decode-named-character-reference/index.dom.cjs.map +1 -1
  385. package/dist/node_modules/decode-named-character-reference/index.dom.es.js +1 -5
  386. package/dist/node_modules/decode-named-character-reference/index.dom.es.js.map +1 -1
  387. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.cjs +1 -1
  388. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.es.js +1 -1
  389. package/dist/node_modules/hast-util-to-parse5/lib/index.cjs +1 -1
  390. package/dist/node_modules/hast-util-to-parse5/lib/index.cjs.map +1 -1
  391. package/dist/node_modules/hast-util-to-parse5/lib/index.es.js +2 -2
  392. package/dist/node_modules/hast-util-to-parse5/lib/index.es.js.map +1 -1
  393. package/dist/node_modules/hast-util-to-text/lib/index.cjs +3 -3
  394. package/dist/node_modules/hast-util-to-text/lib/index.cjs.map +1 -1
  395. package/dist/node_modules/hast-util-to-text/lib/index.es.js +136 -84
  396. package/dist/node_modules/hast-util-to-text/lib/index.es.js.map +1 -1
  397. package/dist/node_modules/highlight.js/es/languages/c.cjs +1 -1
  398. package/dist/node_modules/highlight.js/es/languages/c.cjs.map +1 -1
  399. package/dist/node_modules/highlight.js/es/languages/c.es.js +122 -63
  400. package/dist/node_modules/highlight.js/es/languages/c.es.js.map +1 -1
  401. package/dist/node_modules/highlight.js/es/languages/cpp.cjs +1 -1
  402. package/dist/node_modules/highlight.js/es/languages/cpp.cjs.map +1 -1
  403. package/dist/node_modules/highlight.js/es/languages/cpp.es.js +65 -48
  404. package/dist/node_modules/highlight.js/es/languages/cpp.es.js.map +1 -1
  405. package/dist/node_modules/highlight.js/es/languages/css.cjs +1 -1
  406. package/dist/node_modules/highlight.js/es/languages/css.cjs.map +1 -1
  407. package/dist/node_modules/highlight.js/es/languages/css.es.js +17 -6
  408. package/dist/node_modules/highlight.js/es/languages/css.es.js.map +1 -1
  409. package/dist/node_modules/highlight.js/es/languages/go.cjs +1 -1
  410. package/dist/node_modules/highlight.js/es/languages/go.cjs.map +1 -1
  411. package/dist/node_modules/highlight.js/es/languages/go.es.js +7 -2
  412. package/dist/node_modules/highlight.js/es/languages/go.es.js.map +1 -1
  413. package/dist/node_modules/highlight.js/es/languages/java.cjs +1 -1
  414. package/dist/node_modules/highlight.js/es/languages/java.cjs.map +1 -1
  415. package/dist/node_modules/highlight.js/es/languages/java.es.js +48 -39
  416. package/dist/node_modules/highlight.js/es/languages/java.es.js.map +1 -1
  417. package/dist/node_modules/highlight.js/es/languages/javascript.cjs +1 -1
  418. package/dist/node_modules/highlight.js/es/languages/javascript.cjs.map +1 -1
  419. package/dist/node_modules/highlight.js/es/languages/javascript.es.js +4 -2
  420. package/dist/node_modules/highlight.js/es/languages/javascript.es.js.map +1 -1
  421. package/dist/node_modules/highlight.js/es/languages/json.cjs +1 -1
  422. package/dist/node_modules/highlight.js/es/languages/json.cjs.map +1 -1
  423. package/dist/node_modules/highlight.js/es/languages/json.es.js +15 -9
  424. package/dist/node_modules/highlight.js/es/languages/json.es.js.map +1 -1
  425. package/dist/node_modules/highlight.js/es/languages/lua.cjs +1 -1
  426. package/dist/node_modules/highlight.js/es/languages/lua.cjs.map +1 -1
  427. package/dist/node_modules/highlight.js/es/languages/lua.es.js +1 -1
  428. package/dist/node_modules/highlight.js/es/languages/lua.es.js.map +1 -1
  429. package/dist/node_modules/highlight.js/es/languages/markdown.cjs +1 -1
  430. package/dist/node_modules/highlight.js/es/languages/markdown.cjs.map +1 -1
  431. package/dist/node_modules/highlight.js/es/languages/markdown.es.js +9 -10
  432. package/dist/node_modules/highlight.js/es/languages/markdown.es.js.map +1 -1
  433. package/dist/node_modules/highlight.js/es/languages/php.cjs +2 -2
  434. package/dist/node_modules/highlight.js/es/languages/php.cjs.map +1 -1
  435. package/dist/node_modules/highlight.js/es/languages/php.es.js +39 -33
  436. package/dist/node_modules/highlight.js/es/languages/php.es.js.map +1 -1
  437. package/dist/node_modules/highlight.js/es/languages/python.cjs +1 -1
  438. package/dist/node_modules/highlight.js/es/languages/python.cjs.map +1 -1
  439. package/dist/node_modules/highlight.js/es/languages/python.es.js +20 -15
  440. package/dist/node_modules/highlight.js/es/languages/python.es.js.map +1 -1
  441. package/dist/node_modules/highlight.js/es/languages/rust.cjs +1 -1
  442. package/dist/node_modules/highlight.js/es/languages/rust.cjs.map +1 -1
  443. package/dist/node_modules/highlight.js/es/languages/rust.es.js +40 -26
  444. package/dist/node_modules/highlight.js/es/languages/rust.es.js.map +1 -1
  445. package/dist/node_modules/highlight.js/es/languages/scss.cjs +1 -1
  446. package/dist/node_modules/highlight.js/es/languages/scss.cjs.map +1 -1
  447. package/dist/node_modules/highlight.js/es/languages/scss.es.js +36 -25
  448. package/dist/node_modules/highlight.js/es/languages/scss.es.js.map +1 -1
  449. package/dist/node_modules/highlight.js/es/languages/shell.cjs +1 -1
  450. package/dist/node_modules/highlight.js/es/languages/shell.cjs.map +1 -1
  451. package/dist/node_modules/highlight.js/es/languages/shell.es.js +1 -1
  452. package/dist/node_modules/highlight.js/es/languages/shell.es.js.map +1 -1
  453. package/dist/node_modules/highlight.js/es/languages/typescript.cjs +1 -1
  454. package/dist/node_modules/highlight.js/es/languages/typescript.cjs.map +1 -1
  455. package/dist/node_modules/highlight.js/es/languages/typescript.es.js +4 -2
  456. package/dist/node_modules/highlight.js/es/languages/typescript.es.js.map +1 -1
  457. package/dist/node_modules/highlight.js/es/languages/xml.cjs +1 -1
  458. package/dist/node_modules/highlight.js/es/languages/xml.cjs.map +1 -1
  459. package/dist/node_modules/highlight.js/es/languages/xml.es.js +9 -16
  460. package/dist/node_modules/highlight.js/es/languages/xml.es.js.map +1 -1
  461. package/dist/node_modules/inline-style-parser/cjs/index.cjs +3 -0
  462. package/dist/node_modules/inline-style-parser/cjs/index.cjs.map +1 -0
  463. package/dist/node_modules/inline-style-parser/{index.es.js → cjs/index.es.js} +24 -24
  464. package/dist/node_modules/inline-style-parser/cjs/index.es.js.map +1 -0
  465. package/dist/node_modules/layout-base/layout-base.es.js +1 -1
  466. package/dist/node_modules/lowlight/lib/common.cjs +1 -1
  467. package/dist/node_modules/lowlight/lib/common.cjs.map +1 -1
  468. package/dist/node_modules/lowlight/lib/common.es.js +37 -37
  469. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/core.cjs +1 -1
  470. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/core.es.js +1 -1
  471. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/arduino.cjs +2 -0
  472. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/arduino.cjs.map +1 -0
  473. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/arduino.es.js +10 -14
  474. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/arduino.es.js.map +1 -0
  475. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/bash.cjs +2 -0
  476. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/bash.cjs.map +1 -0
  477. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/bash.es.js +378 -0
  478. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/bash.es.js.map +1 -0
  479. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/c.cjs +2 -0
  480. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/c.cjs.map +1 -0
  481. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/c.es.js +278 -0
  482. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/c.es.js.map +1 -0
  483. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/cpp.cjs +2 -0
  484. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/cpp.cjs.map +1 -0
  485. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/cpp.es.js +518 -0
  486. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/cpp.es.js.map +1 -0
  487. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/csharp.cjs +2 -0
  488. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/csharp.cjs.map +1 -0
  489. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/csharp.es.js +1 -1
  490. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/csharp.es.js.map +1 -0
  491. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/css.cjs +2 -0
  492. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/css.cjs.map +1 -0
  493. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/css.es.js +930 -0
  494. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/css.es.js.map +1 -0
  495. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/diff.cjs +2 -0
  496. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/diff.cjs.map +1 -0
  497. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/diff.es.js +10 -3
  498. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/diff.es.js.map +1 -0
  499. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/go.cjs +2 -0
  500. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/go.cjs.map +1 -0
  501. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/go.es.js +152 -0
  502. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/go.es.js.map +1 -0
  503. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/graphql.cjs.map +1 -0
  504. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/graphql.es.js.map +1 -0
  505. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/ini.cjs.map +1 -0
  506. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/ini.es.js.map +1 -0
  507. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/java.cjs +2 -0
  508. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/java.cjs.map +1 -0
  509. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/java.es.js +241 -0
  510. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/java.es.js.map +1 -0
  511. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/javascript.cjs +2 -0
  512. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/javascript.cjs.map +1 -0
  513. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/javascript.es.js +660 -0
  514. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/javascript.es.js.map +1 -0
  515. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/json.cjs +2 -0
  516. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/json.cjs.map +1 -0
  517. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/json.es.js +45 -0
  518. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/json.es.js.map +1 -0
  519. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/kotlin.cjs.map +1 -0
  520. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/kotlin.es.js.map +1 -0
  521. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/less.cjs +2 -0
  522. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/less.cjs.map +1 -0
  523. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/less.es.js +10 -4
  524. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/less.es.js.map +1 -0
  525. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/lua.cjs +2 -0
  526. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/lua.cjs.map +1 -0
  527. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/lua.es.js +60 -0
  528. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/lua.es.js.map +1 -0
  529. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/makefile.cjs.map +1 -0
  530. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/makefile.es.js.map +1 -0
  531. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/markdown.cjs +2 -0
  532. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/markdown.cjs.map +1 -0
  533. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/markdown.es.js +217 -0
  534. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/markdown.es.js.map +1 -0
  535. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/objectivec.cjs.map +1 -0
  536. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/objectivec.es.js.map +1 -0
  537. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/perl.cjs.map +1 -0
  538. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/perl.es.js.map +1 -0
  539. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php-template.cjs.map +1 -0
  540. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php-template.es.js.map +1 -0
  541. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php.cjs +3 -0
  542. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php.cjs.map +1 -0
  543. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php.es.js +573 -0
  544. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php.es.js.map +1 -0
  545. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/plaintext.cjs +2 -0
  546. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/plaintext.cjs.map +1 -0
  547. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/plaintext.es.js +14 -0
  548. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/plaintext.es.js.map +1 -0
  549. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python-repl.cjs.map +1 -0
  550. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python-repl.es.js.map +1 -0
  551. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python.cjs +2 -0
  552. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python.cjs.map +1 -0
  553. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python.es.js +400 -0
  554. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python.es.js.map +1 -0
  555. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/r.cjs.map +1 -0
  556. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/r.es.js.map +1 -0
  557. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/ruby.cjs.map +1 -0
  558. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/ruby.es.js.map +1 -0
  559. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/rust.cjs +2 -0
  560. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/rust.cjs.map +1 -0
  561. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/rust.es.js +306 -0
  562. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/rust.es.js.map +1 -0
  563. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/scss.cjs +2 -0
  564. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/scss.cjs.map +1 -0
  565. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/scss.es.js +915 -0
  566. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/scss.es.js.map +1 -0
  567. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/shell.cjs +2 -0
  568. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/shell.cjs.map +1 -0
  569. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/shell.es.js +26 -0
  570. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/shell.es.js.map +1 -0
  571. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/sql.cjs +2 -0
  572. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/sql.cjs.map +1 -0
  573. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/sql.es.js +616 -0
  574. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/sql.es.js.map +1 -0
  575. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/swift.cjs.map +1 -0
  576. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/swift.es.js.map +1 -0
  577. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/typescript.cjs +2 -0
  578. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/typescript.cjs.map +1 -0
  579. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/typescript.es.js +755 -0
  580. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/typescript.es.js.map +1 -0
  581. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/vbnet.cjs.map +1 -0
  582. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/vbnet.es.js.map +1 -0
  583. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/wasm.cjs.map +1 -0
  584. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/wasm.es.js.map +1 -0
  585. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/xml.cjs +2 -0
  586. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/xml.cjs.map +1 -0
  587. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/xml.es.js +220 -0
  588. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/xml.es.js.map +1 -0
  589. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/yaml.cjs +2 -0
  590. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/yaml.cjs.map +1 -0
  591. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/yaml.es.js +184 -0
  592. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/yaml.es.js.map +1 -0
  593. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/lib/core.cjs +3 -3
  594. package/dist/node_modules/lowlight/node_modules/highlight.js/lib/core.cjs.map +1 -0
  595. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/lib/core.es.js +66 -66
  596. package/dist/node_modules/lowlight/node_modules/highlight.js/lib/core.es.js.map +1 -0
  597. package/dist/node_modules/lucide-react/dist/esm/Icon.es.js +3 -3
  598. package/dist/node_modules/mdast-util-find-and-replace/lib/index.cjs +1 -1
  599. package/dist/node_modules/mdast-util-find-and-replace/lib/index.cjs.map +1 -1
  600. package/dist/node_modules/mdast-util-find-and-replace/lib/index.es.js +58 -56
  601. package/dist/node_modules/mdast-util-find-and-replace/lib/index.es.js.map +1 -1
  602. package/dist/node_modules/mdast-util-from-markdown/lib/index.cjs +1 -1
  603. package/dist/node_modules/mdast-util-from-markdown/lib/index.cjs.map +1 -1
  604. package/dist/node_modules/mdast-util-from-markdown/lib/index.es.js +274 -223
  605. package/dist/node_modules/mdast-util-from-markdown/lib/index.es.js.map +1 -1
  606. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.cjs +1 -1
  607. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.cjs.map +1 -1
  608. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.es.js +21 -17
  609. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.es.js.map +1 -1
  610. package/dist/node_modules/mdast-util-to-hast/lib/footer.cjs.map +1 -1
  611. package/dist/node_modules/mdast-util-to-hast/lib/footer.es.js.map +1 -1
  612. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.cjs.map +1 -1
  613. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.es.js.map +1 -1
  614. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.cjs.map +1 -1
  615. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.es.js.map +1 -1
  616. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.cjs +2 -2
  617. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.cjs.map +1 -1
  618. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.es.js +7 -7
  619. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.es.js.map +1 -1
  620. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.cjs.map +1 -1
  621. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.es.js.map +1 -1
  622. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.cjs.map +1 -1
  623. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.es.js.map +1 -1
  624. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.cjs.map +1 -1
  625. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.es.js.map +1 -1
  626. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.cjs.map +1 -1
  627. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.es.js.map +1 -1
  628. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.cjs.map +1 -1
  629. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.es.js.map +1 -1
  630. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.cjs.map +1 -1
  631. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.es.js.map +1 -1
  632. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.cjs.map +1 -1
  633. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.es.js.map +1 -1
  634. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.cjs.map +1 -1
  635. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.es.js.map +1 -1
  636. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.cjs.map +1 -1
  637. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.es.js.map +1 -1
  638. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.cjs.map +1 -1
  639. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.es.js.map +1 -1
  640. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.cjs.map +1 -1
  641. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.es.js.map +1 -1
  642. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.cjs.map +1 -1
  643. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.es.js.map +1 -1
  644. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.cjs.map +1 -1
  645. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.es.js.map +1 -1
  646. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.cjs.map +1 -1
  647. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.es.js.map +1 -1
  648. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.cjs.map +1 -1
  649. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.es.js.map +1 -1
  650. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.cjs.map +1 -1
  651. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.es.js.map +1 -1
  652. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.cjs.map +1 -1
  653. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.es.js.map +1 -1
  654. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.cjs.map +1 -1
  655. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.es.js.map +1 -1
  656. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.cjs.map +1 -1
  657. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.es.js.map +1 -1
  658. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.cjs.map +1 -1
  659. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.es.js.map +1 -1
  660. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.cjs.map +1 -1
  661. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.es.js.map +1 -1
  662. package/dist/node_modules/mdast-util-to-hast/lib/index.cjs.map +1 -1
  663. package/dist/node_modules/mdast-util-to-hast/lib/index.es.js.map +1 -1
  664. package/dist/node_modules/mdast-util-to-hast/lib/revert.cjs.map +1 -1
  665. package/dist/node_modules/mdast-util-to-hast/lib/revert.es.js.map +1 -1
  666. package/dist/node_modules/mdast-util-to-hast/lib/state.cjs.map +1 -1
  667. package/dist/node_modules/mdast-util-to-hast/lib/state.es.js.map +1 -1
  668. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.cjs.map +1 -1
  669. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.es.js.map +1 -1
  670. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.cjs +3 -3
  671. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.cjs.map +1 -1
  672. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.es.js +9 -7
  673. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.es.js.map +1 -1
  674. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.cjs +2 -2
  675. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.cjs.map +1 -1
  676. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.es.js +6 -6
  677. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.es.js.map +1 -1
  678. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.cjs.map +1 -1
  679. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.es.js.map +1 -1
  680. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.cjs +1 -1
  681. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.cjs.map +1 -1
  682. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.es.js +17 -29
  683. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.es.js.map +1 -1
  684. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.cjs +5 -5
  685. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.cjs.map +1 -1
  686. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.es.js +12 -11
  687. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.es.js.map +1 -1
  688. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.cjs.map +1 -1
  689. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.es.js.map +1 -1
  690. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.cjs +1 -1
  691. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.cjs.map +1 -1
  692. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.es.js +14 -12
  693. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.es.js.map +1 -1
  694. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.cjs.map +1 -1
  695. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.es.js.map +1 -1
  696. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.cjs +1 -1
  697. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.cjs.map +1 -1
  698. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.es.js +6 -6
  699. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.es.js.map +1 -1
  700. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.cjs +1 -1
  701. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.cjs.map +1 -1
  702. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.es.js +15 -13
  703. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.es.js.map +1 -1
  704. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.cjs +2 -1
  705. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.cjs.map +1 -1
  706. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.es.js +42 -32
  707. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.es.js.map +1 -1
  708. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.cjs.map +1 -1
  709. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.es.js.map +1 -1
  710. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.cjs.map +1 -1
  711. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.es.js.map +1 -1
  712. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.cjs.map +1 -1
  713. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.es.js.map +1 -1
  714. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.cjs +1 -1
  715. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.cjs.map +1 -1
  716. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.es.js +8 -6
  717. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.es.js.map +1 -1
  718. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.cjs +1 -1
  719. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.cjs.map +1 -1
  720. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.es.js +17 -29
  721. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.es.js.map +1 -1
  722. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.cjs +1 -1
  723. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.cjs.map +1 -1
  724. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.es.js +8 -3
  725. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.es.js.map +1 -1
  726. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.cjs.map +1 -1
  727. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.es.js.map +1 -1
  728. package/dist/node_modules/mdast-util-to-markdown/lib/util/character.cjs +2 -0
  729. package/dist/node_modules/mdast-util-to-markdown/lib/util/character.cjs.map +1 -0
  730. package/dist/node_modules/mdast-util-to-markdown/lib/util/character.es.js +13 -0
  731. package/dist/node_modules/mdast-util-to-markdown/lib/util/character.es.js.map +1 -0
  732. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.cjs.map +1 -1
  733. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.es.js.map +1 -1
  734. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.cjs.map +1 -1
  735. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.es.js.map +1 -1
  736. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.cjs.map +1 -1
  737. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.es.js.map +1 -1
  738. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.cjs.map +1 -1
  739. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.es.js.map +1 -1
  740. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.cjs.map +1 -1
  741. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.es.js.map +1 -1
  742. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.cjs.map +1 -1
  743. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.es.js.map +1 -1
  744. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.cjs.map +1 -1
  745. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.es.js.map +1 -1
  746. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.cjs.map +1 -1
  747. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.es.js.map +1 -1
  748. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.cjs.map +1 -1
  749. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.es.js.map +1 -1
  750. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.cjs.map +1 -1
  751. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.es.js.map +1 -1
  752. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.cjs +4 -0
  753. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.cjs.map +1 -0
  754. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.es.js +263 -0
  755. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.es.js.map +1 -0
  756. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.cjs.map +1 -1
  757. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.es.js.map +1 -1
  758. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.cjs +1 -1
  759. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.cjs.map +1 -1
  760. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.es.js +2 -2
  761. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.es.js.map +1 -1
  762. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.cjs.map +1 -1
  763. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.es.js.map +1 -1
  764. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.cjs +1 -1
  765. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.cjs.map +1 -1
  766. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.es.js +2 -2
  767. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.es.js.map +1 -1
  768. package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.cjs +2 -0
  769. package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.cjs.map +1 -0
  770. package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.es.js +22 -0
  771. package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.es.js.map +1 -0
  772. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.cjs.map +1 -1
  773. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.es.js.map +1 -1
  774. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VBNYF7ZC.cjs +2 -2
  775. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VBNYF7ZC.es.js +4 -4
  776. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-5PPSVZJV.cjs +1 -1
  777. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-5PPSVZJV.es.js +1 -1
  778. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-2GRJ4B5K.cjs +1 -1
  779. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-2GRJ4B5K.es.js +1 -1
  780. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JQJVKLGR.cjs +2 -2
  781. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JQJVKLGR.es.js +4 -4
  782. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-NSK5VX7P.cjs +1 -1
  783. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-NSK5VX7P.es.js +1 -1
  784. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-WRU74C26.es.js +3 -3
  785. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-JCYQIIEL.cjs +1 -1
  786. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-JCYQIIEL.es.js +1 -1
  787. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-OCEON4UE.cjs +1 -1
  788. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-OCEON4UE.es.js +1 -1
  789. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-B4RE2ZJO.cjs +3 -3
  790. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-B4RE2ZJO.es.js +4 -4
  791. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-JOGREHBK.cjs +2 -2
  792. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-JOGREHBK.es.js +4 -4
  793. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-UKHOOZJN.cjs +1 -1
  794. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-UKHOOZJN.es.js +5 -4
  795. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-UKHOOZJN.es.js.map +1 -1
  796. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-PKOTCBZU.cjs +1 -1
  797. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-PKOTCBZU.es.js +2 -2
  798. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-FAOFIHXS.cjs +1 -1
  799. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-FAOFIHXS.cjs.map +1 -1
  800. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-FAOFIHXS.es.js +1 -1
  801. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-CIZ2JOQS.cjs +1 -1
  802. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-CIZ2JOQS.es.js +4 -4
  803. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-W5VNT64P.cjs +1 -1
  804. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-W5VNT64P.es.js +1 -1
  805. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-SI44F4Z6.cjs +1 -1
  806. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-SI44F4Z6.es.js +1 -1
  807. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-OKZ733FA.cjs +1 -1
  808. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-OKZ733FA.es.js +1 -1
  809. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-UEYNNEHI.cjs +1 -1
  810. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-UEYNNEHI.es.js +1 -1
  811. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-ULZ7WXOC.cjs +1 -1
  812. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-ULZ7WXOC.es.js +1 -1
  813. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-T6HMQDX7.cjs +1 -1
  814. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-T6HMQDX7.es.js +2 -2
  815. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-ELKLHX3M.es.js +4 -4
  816. package/dist/node_modules/mermaid/dist/mermaid.core.cjs +1 -1
  817. package/dist/node_modules/mermaid/dist/mermaid.core.es.js +1 -1
  818. package/dist/node_modules/micromark/lib/constructs.cjs +1 -1
  819. package/dist/node_modules/micromark/lib/constructs.es.js +13 -13
  820. package/dist/node_modules/micromark-factory-space/index.cjs +1 -1
  821. package/dist/node_modules/micromark-factory-space/index.cjs.map +1 -1
  822. package/dist/node_modules/micromark-factory-space/index.es.js +9 -9
  823. package/dist/node_modules/micromark-factory-space/index.es.js.map +1 -1
  824. package/dist/node_modules/parse5/dist/parser/index.es.js +1 -1
  825. package/dist/node_modules/parse5/dist/tokenizer/index.cjs +1 -1
  826. package/dist/node_modules/parse5/dist/tokenizer/index.cjs.map +1 -1
  827. package/dist/node_modules/parse5/dist/tokenizer/index.es.js +2 -2
  828. package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.cjs.map +1 -0
  829. package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.es.js.map +1 -0
  830. package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode.cjs.map +1 -0
  831. package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode.es.js.map +1 -0
  832. package/dist/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.cjs.map +1 -0
  833. package/dist/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.es.js.map +1 -0
  834. package/dist/node_modules/property-information/lib/html.cjs +1 -1
  835. package/dist/node_modules/property-information/lib/html.cjs.map +1 -1
  836. package/dist/node_modules/property-information/lib/html.es.js +16 -6
  837. package/dist/node_modules/property-information/lib/html.es.js.map +1 -1
  838. package/dist/node_modules/property-information/lib/svg.cjs +1 -1
  839. package/dist/node_modules/property-information/lib/svg.cjs.map +1 -1
  840. package/dist/node_modules/property-information/lib/svg.es.js +4 -2
  841. package/dist/node_modules/property-information/lib/svg.es.js.map +1 -1
  842. package/dist/node_modules/rc-input/es/BaseInput.cjs +1 -1
  843. package/dist/node_modules/rc-input/es/BaseInput.es.js +1 -1
  844. package/dist/node_modules/rc-textarea/es/ResizableTextArea.cjs +1 -1
  845. package/dist/node_modules/rc-textarea/es/ResizableTextArea.es.js +1 -1
  846. package/dist/node_modules/rc-textarea/es/TextArea.cjs +1 -1
  847. package/dist/node_modules/rc-textarea/es/TextArea.es.js +1 -1
  848. package/dist/node_modules/rc-textarea/es/index.cjs +1 -1
  849. package/dist/node_modules/rc-textarea/es/index.es.js +1 -1
  850. package/dist/node_modules/rc-util/es/ref.es.js +1 -1
  851. package/dist/node_modules/rc-util/node_modules/react-is/index.es.js +1 -1
  852. package/dist/node_modules/react-i18next/dist/es/useTranslation.cjs +1 -1
  853. package/dist/node_modules/react-i18next/dist/es/useTranslation.es.js +7 -7
  854. package/dist/node_modules/remark-flow/dist/index.es.js +1 -1
  855. package/dist/node_modules/remark-flow/dist/interaction-parser.cjs.map +1 -1
  856. package/dist/node_modules/remark-flow/dist/interaction-parser.es.js +2 -2
  857. package/dist/node_modules/remark-flow/dist/interaction-parser.es.js.map +1 -1
  858. package/dist/node_modules/remark-flow/dist/interaction-plugin-core.cjs +1 -1
  859. package/dist/node_modules/remark-flow/dist/interaction-plugin-core.es.js +1 -1
  860. package/dist/node_modules/style-mod/src/style-mod.cjs +3 -3
  861. package/dist/node_modules/style-mod/src/style-mod.cjs.map +1 -1
  862. package/dist/node_modules/style-mod/src/style-mod.es.js +37 -35
  863. package/dist/node_modules/style-mod/src/style-mod.es.js.map +1 -1
  864. package/dist/node_modules/style-to-object/cjs/index.cjs +1 -1
  865. package/dist/node_modules/style-to-object/cjs/index.cjs.map +1 -1
  866. package/dist/node_modules/style-to-object/cjs/index.es.js +15 -15
  867. package/dist/node_modules/style-to-object/cjs/index.es.js.map +1 -1
  868. package/dist/node_modules/stylis/src/Parser.cjs +1 -1
  869. package/dist/node_modules/stylis/src/Parser.cjs.map +1 -1
  870. package/dist/node_modules/stylis/src/Parser.es.js +63 -52
  871. package/dist/node_modules/stylis/src/Parser.es.js.map +1 -1
  872. package/dist/node_modules/stylis/src/Utility.cjs +1 -1
  873. package/dist/node_modules/stylis/src/Utility.cjs.map +1 -1
  874. package/dist/node_modules/stylis/src/Utility.es.js +20 -24
  875. package/dist/node_modules/stylis/src/Utility.es.js.map +1 -1
  876. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs +1 -1
  877. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs.map +1 -1
  878. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.es.js +828 -561
  879. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.es.js.map +1 -1
  880. package/dist/node_modules/ts-dedent/esm/index.cjs +5 -5
  881. package/dist/node_modules/ts-dedent/esm/index.cjs.map +1 -1
  882. package/dist/node_modules/ts-dedent/esm/index.es.js +20 -21
  883. package/dist/node_modules/ts-dedent/esm/index.es.js.map +1 -1
  884. package/dist/node_modules/unified/lib/index.es.js +1 -1
  885. package/dist/node_modules/unist-util-is/lib/index.cjs.map +1 -1
  886. package/dist/node_modules/unist-util-is/lib/index.es.js +8 -1
  887. package/dist/node_modules/unist-util-is/lib/index.es.js.map +1 -1
  888. package/dist/node_modules/unist-util-visit/lib/index.cjs +1 -1
  889. package/dist/node_modules/unist-util-visit/lib/index.cjs.map +1 -1
  890. package/dist/node_modules/unist-util-visit/lib/index.es.js +22 -12
  891. package/dist/node_modules/unist-util-visit/lib/index.es.js.map +1 -1
  892. package/dist/node_modules/unist-util-visit-parents/lib/color.cjs.map +1 -1
  893. package/dist/node_modules/unist-util-visit-parents/lib/color.es.js.map +1 -1
  894. package/dist/node_modules/unist-util-visit-parents/lib/index.cjs +1 -1
  895. package/dist/node_modules/unist-util-visit-parents/lib/index.cjs.map +1 -1
  896. package/dist/node_modules/unist-util-visit-parents/lib/index.es.js +72 -37
  897. package/dist/node_modules/unist-util-visit-parents/lib/index.es.js.map +1 -1
  898. package/dist/node_modules/uuid/dist/rng.cjs +2 -0
  899. package/dist/node_modules/uuid/dist/rng.cjs.map +1 -0
  900. package/dist/node_modules/uuid/dist/rng.es.js +8 -0
  901. package/dist/node_modules/uuid/dist/rng.es.js.map +1 -0
  902. package/dist/node_modules/uuid/dist/stringify.cjs.map +1 -0
  903. package/dist/node_modules/uuid/dist/stringify.es.js.map +1 -0
  904. package/dist/node_modules/uuid/dist/v4.cjs +2 -0
  905. package/dist/node_modules/uuid/dist/v4.cjs.map +1 -0
  906. package/dist/node_modules/uuid/dist/v4.es.js +16 -0
  907. package/dist/node_modules/uuid/dist/v4.es.js.map +1 -0
  908. package/dist/renderer.cjs +1 -1
  909. package/dist/renderer.es.js +3 -3
  910. package/dist/scroll.cjs +1 -1
  911. package/dist/scroll.es.js +2 -2
  912. package/package.json +18 -14
  913. package/dist/_virtual/advancedFormat.es2.js.map +0 -1
  914. package/dist/_virtual/cose-base.es2.js.map +0 -1
  915. package/dist/_virtual/customParseFormat.es2.js.map +0 -1
  916. package/dist/_virtual/cytoscape-cose-bilkent.es2.js +0 -5
  917. package/dist/_virtual/cytoscape-cose-bilkent.es2.js.map +0 -1
  918. package/dist/_virtual/cytoscape-fcose.es2.js.map +0 -1
  919. package/dist/_virtual/dayjs.min.es2.js.map +0 -1
  920. package/dist/_virtual/dayjs.min2.cjs.map +0 -1
  921. package/dist/_virtual/duration.es2.js.map +0 -1
  922. package/dist/_virtual/index.es10.js.map +0 -1
  923. package/dist/_virtual/index.es11.js.map +0 -1
  924. package/dist/_virtual/index.es12.js.map +0 -1
  925. package/dist/_virtual/index.es2.js.map +0 -1
  926. package/dist/_virtual/index.es3.js.map +0 -1
  927. package/dist/_virtual/index.es4.js.map +0 -1
  928. package/dist/_virtual/index.es5.js.map +0 -1
  929. package/dist/_virtual/index.es6.js.map +0 -1
  930. package/dist/_virtual/index.es7.js.map +0 -1
  931. package/dist/_virtual/index.es8.js.map +0 -1
  932. package/dist/_virtual/index.es9.js.map +0 -1
  933. package/dist/_virtual/isoWeek.es2.js.map +0 -1
  934. package/dist/_virtual/layout-base.es2.js.map +0 -1
  935. package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs +0 -2
  936. package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs.map +0 -1
  937. package/dist/node_modules/@radix-ui/react-arrow/dist/index.es.js +0 -25
  938. package/dist/node_modules/@radix-ui/react-arrow/dist/index.es.js.map +0 -1
  939. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.cjs.map +0 -1
  940. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.es.js.map +0 -1
  941. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +0 -2
  942. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +0 -1
  943. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +0 -34
  944. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +0 -1
  945. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.cjs.map +0 -1
  946. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.es.js.map +0 -1
  947. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +0 -2
  948. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +0 -1
  949. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +0 -1
  950. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.cjs +0 -2
  951. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.cjs.map +0 -1
  952. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.es.js +0 -15
  953. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.es.js.map +0 -1
  954. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.cjs +0 -2
  955. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.cjs.map +0 -1
  956. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.es.js.map +0 -1
  957. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.cjs +0 -2
  958. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.cjs.map +0 -1
  959. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.es.js +0 -104
  960. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.es.js.map +0 -1
  961. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.cjs +0 -2
  962. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +0 -1
  963. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +0 -1
  964. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +0 -2
  965. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +0 -1
  966. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +0 -13
  967. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +0 -1
  968. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +0 -2
  969. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.map +0 -1
  970. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js.map +0 -1
  971. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-effect-event/dist/index.cjs.map +0 -1
  972. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-effect-event/dist/index.es.js.map +0 -1
  973. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +0 -2
  974. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.map +0 -1
  975. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js +0 -7
  976. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js.map +0 -1
  977. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +0 -2
  978. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +0 -1
  979. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +0 -34
  980. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +0 -1
  981. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.cjs +0 -2
  982. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +0 -1
  983. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +0 -1
  984. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +0 -2
  985. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +0 -1
  986. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +0 -13
  987. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +0 -1
  988. package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs +0 -2
  989. package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs.map +0 -1
  990. package/dist/node_modules/@radix-ui/react-popper/dist/index.es.js +0 -220
  991. package/dist/node_modules/@radix-ui/react-popper/dist/index.es.js.map +0 -1
  992. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.cjs +0 -2
  993. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.cjs.map +0 -1
  994. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.es.js +0 -50
  995. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.es.js.map +0 -1
  996. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +0 -2
  997. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +0 -1
  998. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +0 -34
  999. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +0 -1
  1000. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs +0 -2
  1001. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs.map +0 -1
  1002. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.es.js +0 -15
  1003. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.es.js.map +0 -1
  1004. package/dist/node_modules/entities/dist/esm/decode-codepoint.cjs.map +0 -1
  1005. package/dist/node_modules/entities/dist/esm/decode-codepoint.es.js.map +0 -1
  1006. package/dist/node_modules/entities/dist/esm/decode.cjs.map +0 -1
  1007. package/dist/node_modules/entities/dist/esm/decode.es.js.map +0 -1
  1008. package/dist/node_modules/entities/dist/esm/generated/decode-data-html.cjs.map +0 -1
  1009. package/dist/node_modules/entities/dist/esm/generated/decode-data-html.es.js.map +0 -1
  1010. package/dist/node_modules/hast-util-is-element/lib/index.cjs +0 -2
  1011. package/dist/node_modules/hast-util-is-element/lib/index.cjs.map +0 -1
  1012. package/dist/node_modules/hast-util-is-element/lib/index.es.js +0 -66
  1013. package/dist/node_modules/hast-util-is-element/lib/index.es.js.map +0 -1
  1014. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.cjs +0 -2
  1015. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.cjs.map +0 -1
  1016. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.es.js +0 -13
  1017. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.es.js.map +0 -1
  1018. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.cjs +0 -2
  1019. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.cjs.map +0 -1
  1020. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.es.js +0 -62
  1021. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.es.js.map +0 -1
  1022. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.cjs +0 -2
  1023. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.cjs.map +0 -1
  1024. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.es.js +0 -34
  1025. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.es.js.map +0 -1
  1026. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.cjs +0 -2
  1027. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.cjs.map +0 -1
  1028. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.es.js +0 -369
  1029. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.es.js.map +0 -1
  1030. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.cjs +0 -2
  1031. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.cjs.map +0 -1
  1032. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.es.js +0 -7
  1033. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.es.js.map +0 -1
  1034. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.cjs +0 -2
  1035. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.cjs.map +0 -1
  1036. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.es.js +0 -567
  1037. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.es.js.map +0 -1
  1038. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.cjs +0 -2
  1039. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.cjs.map +0 -1
  1040. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.es.js +0 -8
  1041. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.es.js.map +0 -1
  1042. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.cjs +0 -2
  1043. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.cjs.map +0 -1
  1044. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.es.js +0 -7
  1045. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.es.js.map +0 -1
  1046. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.cjs +0 -2
  1047. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.cjs.map +0 -1
  1048. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.es.js +0 -23
  1049. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.es.js.map +0 -1
  1050. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.cjs +0 -2
  1051. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.cjs.map +0 -1
  1052. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.es.js +0 -28
  1053. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.es.js.map +0 -1
  1054. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.cjs +0 -2
  1055. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.cjs.map +0 -1
  1056. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.es.js +0 -24
  1057. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.es.js.map +0 -1
  1058. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.cjs +0 -2
  1059. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.cjs.map +0 -1
  1060. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.es.js +0 -12
  1061. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.es.js.map +0 -1
  1062. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.cjs +0 -2
  1063. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.cjs.map +0 -1
  1064. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.es.js +0 -18
  1065. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.es.js.map +0 -1
  1066. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.cjs +0 -2
  1067. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.cjs.map +0 -1
  1068. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.es.js +0 -15
  1069. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.es.js.map +0 -1
  1070. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.cjs +0 -2
  1071. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.cjs.map +0 -1
  1072. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.es.js +0 -20
  1073. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.es.js.map +0 -1
  1074. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.cjs +0 -2
  1075. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.cjs.map +0 -1
  1076. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.es.js +0 -12
  1077. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.es.js.map +0 -1
  1078. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.cjs +0 -2
  1079. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.cjs.map +0 -1
  1080. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.es.js +0 -12
  1081. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.es.js.map +0 -1
  1082. package/dist/node_modules/highlight.js/es/languages/arduino.cjs +0 -2
  1083. package/dist/node_modules/highlight.js/es/languages/arduino.cjs.map +0 -1
  1084. package/dist/node_modules/highlight.js/es/languages/arduino.es.js.map +0 -1
  1085. package/dist/node_modules/highlight.js/es/languages/csharp.cjs +0 -2
  1086. package/dist/node_modules/highlight.js/es/languages/csharp.cjs.map +0 -1
  1087. package/dist/node_modules/highlight.js/es/languages/csharp.es.js.map +0 -1
  1088. package/dist/node_modules/highlight.js/es/languages/diff.cjs +0 -2
  1089. package/dist/node_modules/highlight.js/es/languages/diff.cjs.map +0 -1
  1090. package/dist/node_modules/highlight.js/es/languages/diff.es.js.map +0 -1
  1091. package/dist/node_modules/highlight.js/es/languages/graphql.cjs.map +0 -1
  1092. package/dist/node_modules/highlight.js/es/languages/graphql.es.js.map +0 -1
  1093. package/dist/node_modules/highlight.js/es/languages/ini.cjs.map +0 -1
  1094. package/dist/node_modules/highlight.js/es/languages/ini.es.js.map +0 -1
  1095. package/dist/node_modules/highlight.js/es/languages/kotlin.cjs.map +0 -1
  1096. package/dist/node_modules/highlight.js/es/languages/kotlin.es.js.map +0 -1
  1097. package/dist/node_modules/highlight.js/es/languages/less.cjs +0 -2
  1098. package/dist/node_modules/highlight.js/es/languages/less.cjs.map +0 -1
  1099. package/dist/node_modules/highlight.js/es/languages/less.es.js.map +0 -1
  1100. package/dist/node_modules/highlight.js/es/languages/makefile.cjs.map +0 -1
  1101. package/dist/node_modules/highlight.js/es/languages/makefile.es.js.map +0 -1
  1102. package/dist/node_modules/highlight.js/es/languages/objectivec.cjs.map +0 -1
  1103. package/dist/node_modules/highlight.js/es/languages/objectivec.es.js.map +0 -1
  1104. package/dist/node_modules/highlight.js/es/languages/perl.cjs.map +0 -1
  1105. package/dist/node_modules/highlight.js/es/languages/perl.es.js.map +0 -1
  1106. package/dist/node_modules/highlight.js/es/languages/php-template.cjs.map +0 -1
  1107. package/dist/node_modules/highlight.js/es/languages/php-template.es.js.map +0 -1
  1108. package/dist/node_modules/highlight.js/es/languages/python-repl.cjs.map +0 -1
  1109. package/dist/node_modules/highlight.js/es/languages/python-repl.es.js.map +0 -1
  1110. package/dist/node_modules/highlight.js/es/languages/r.cjs.map +0 -1
  1111. package/dist/node_modules/highlight.js/es/languages/r.es.js.map +0 -1
  1112. package/dist/node_modules/highlight.js/es/languages/ruby.cjs.map +0 -1
  1113. package/dist/node_modules/highlight.js/es/languages/ruby.es.js.map +0 -1
  1114. package/dist/node_modules/highlight.js/es/languages/swift.cjs.map +0 -1
  1115. package/dist/node_modules/highlight.js/es/languages/swift.es.js.map +0 -1
  1116. package/dist/node_modules/highlight.js/es/languages/vbnet.cjs.map +0 -1
  1117. package/dist/node_modules/highlight.js/es/languages/vbnet.es.js.map +0 -1
  1118. package/dist/node_modules/highlight.js/es/languages/wasm.cjs.map +0 -1
  1119. package/dist/node_modules/highlight.js/es/languages/wasm.es.js.map +0 -1
  1120. package/dist/node_modules/highlight.js/lib/core.cjs.map +0 -1
  1121. package/dist/node_modules/highlight.js/lib/core.es.js.map +0 -1
  1122. package/dist/node_modules/inline-style-parser/index.cjs +0 -3
  1123. package/dist/node_modules/inline-style-parser/index.cjs.map +0 -1
  1124. package/dist/node_modules/inline-style-parser/index.es.js.map +0 -1
  1125. package/dist/node_modules/unist-util-find-after/lib/index.cjs +0 -2
  1126. package/dist/node_modules/unist-util-find-after/lib/index.cjs.map +0 -1
  1127. package/dist/node_modules/unist-util-find-after/lib/index.es.js +0 -33
  1128. package/dist/node_modules/unist-util-find-after/lib/index.es.js.map +0 -1
  1129. package/dist/node_modules/uuid/dist/esm-browser/native.cjs +0 -2
  1130. package/dist/node_modules/uuid/dist/esm-browser/native.cjs.map +0 -1
  1131. package/dist/node_modules/uuid/dist/esm-browser/native.es.js +0 -5
  1132. package/dist/node_modules/uuid/dist/esm-browser/native.es.js.map +0 -1
  1133. package/dist/node_modules/uuid/dist/esm-browser/rng.cjs +0 -2
  1134. package/dist/node_modules/uuid/dist/esm-browser/rng.cjs.map +0 -1
  1135. package/dist/node_modules/uuid/dist/esm-browser/rng.es.js +0 -14
  1136. package/dist/node_modules/uuid/dist/esm-browser/rng.es.js.map +0 -1
  1137. package/dist/node_modules/uuid/dist/esm-browser/stringify.cjs.map +0 -1
  1138. package/dist/node_modules/uuid/dist/esm-browser/stringify.es.js.map +0 -1
  1139. package/dist/node_modules/uuid/dist/esm-browser/v4.cjs +0 -2
  1140. package/dist/node_modules/uuid/dist/esm-browser/v4.cjs.map +0 -1
  1141. package/dist/node_modules/uuid/dist/esm-browser/v4.es.js +0 -16
  1142. package/dist/node_modules/uuid/dist/esm-browser/v4.es.js.map +0 -1
  1143. /package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/primitive/dist/index.cjs +0 -0
  1144. /package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/primitive/dist/index.es.js +0 -0
  1145. /package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/react-context/dist/index.cjs +0 -0
  1146. /package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/react-context/dist/index.es.js +0 -0
  1147. /package/dist/node_modules/@radix-ui/{react-dialog/node_modules/@radix-ui/react-use-effect-event → react-use-effect-event}/dist/index.cjs +0 -0
  1148. /package/dist/node_modules/@radix-ui/{react-dialog/node_modules/@radix-ui/react-use-effect-event → react-use-effect-event}/dist/index.es.js +0 -0
  1149. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/core.cjs.map +0 -0
  1150. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/core.es.js.map +0 -0
  1151. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/graphql.cjs +0 -0
  1152. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/graphql.es.js +0 -0
  1153. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/ini.cjs +0 -0
  1154. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/ini.es.js +0 -0
  1155. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/kotlin.cjs +0 -0
  1156. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/kotlin.es.js +0 -0
  1157. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/makefile.cjs +0 -0
  1158. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/makefile.es.js +0 -0
  1159. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/objectivec.cjs +0 -0
  1160. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/objectivec.es.js +0 -0
  1161. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/perl.cjs +0 -0
  1162. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/perl.es.js +0 -0
  1163. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/php-template.cjs +0 -0
  1164. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/php-template.es.js +0 -0
  1165. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/python-repl.cjs +0 -0
  1166. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/python-repl.es.js +0 -0
  1167. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/r.cjs +0 -0
  1168. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/r.es.js +0 -0
  1169. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/ruby.cjs +0 -0
  1170. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/ruby.es.js +0 -0
  1171. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/swift.cjs +0 -0
  1172. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/swift.es.js +0 -0
  1173. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/vbnet.cjs +0 -0
  1174. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/vbnet.es.js +0 -0
  1175. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/wasm.cjs +0 -0
  1176. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/wasm.es.js +0 -0
  1177. /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/decode-codepoint.cjs +0 -0
  1178. /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/decode-codepoint.es.js +0 -0
  1179. /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/decode.cjs +0 -0
  1180. /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/decode.es.js +0 -0
  1181. /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/generated/decode-data-html.cjs +0 -0
  1182. /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/generated/decode-data-html.es.js +0 -0
  1183. /package/dist/node_modules/uuid/dist/{esm-browser/stringify.cjs → stringify.cjs} +0 -0
  1184. /package/dist/node_modules/uuid/dist/{esm-browser/stringify.es.js → stringify.es.js} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.es.js","sources":["../../../../../node_modules/@codemirror/lang-markdown/dist/index.js"],"sourcesContent":["import { EditorSelection, countColumn, Prec, EditorState } from '@codemirror/state';\nimport { keymap } from '@codemirror/view';\nimport { defineLanguageFacet, foldNodeProp, indentNodeProp, languageDataProp, foldService, syntaxTree, Language, LanguageDescription, ParseContext, indentUnit, LanguageSupport } from '@codemirror/language';\nimport { CompletionContext } from '@codemirror/autocomplete';\nimport { parser, GFM, Subscript, Superscript, Emoji, MarkdownParser, parseCode } from '@lezer/markdown';\nimport { html, htmlCompletionSource } from '@codemirror/lang-html';\nimport { NodeProp } from '@lezer/common';\n\nconst data = /*@__PURE__*/defineLanguageFacet({ commentTokens: { block: { open: \"<!--\", close: \"-->\" } } });\nconst headingProp = /*@__PURE__*/new NodeProp();\nconst commonmark = /*@__PURE__*/parser.configure({\n props: [\n /*@__PURE__*/foldNodeProp.add(type => {\n return !type.is(\"Block\") || type.is(\"Document\") || isHeading(type) != null || isList(type) ? undefined\n : (tree, state) => ({ from: state.doc.lineAt(tree.from).to, to: tree.to });\n }),\n /*@__PURE__*/headingProp.add(isHeading),\n /*@__PURE__*/indentNodeProp.add({\n Document: () => null\n }),\n /*@__PURE__*/languageDataProp.add({\n Document: data\n })\n ]\n});\nfunction isHeading(type) {\n let match = /^(?:ATX|Setext)Heading(\\d)$/.exec(type.name);\n return match ? +match[1] : undefined;\n}\nfunction isList(type) {\n return type.name == \"OrderedList\" || type.name == \"BulletList\";\n}\nfunction findSectionEnd(headerNode, level) {\n let last = headerNode;\n for (;;) {\n let next = last.nextSibling, heading;\n if (!next || (heading = isHeading(next.type)) != null && heading <= level)\n break;\n last = next;\n }\n return last.to;\n}\nconst headerIndent = /*@__PURE__*/foldService.of((state, start, end) => {\n for (let node = syntaxTree(state).resolveInner(end, -1); node; node = node.parent) {\n if (node.from < start)\n break;\n let heading = node.type.prop(headingProp);\n if (heading == null)\n continue;\n let upto = findSectionEnd(node, heading);\n if (upto > end)\n return { from: end, to: upto };\n }\n return null;\n});\nfunction mkLang(parser) {\n return new Language(data, parser, [], \"markdown\");\n}\n/**\nLanguage support for strict CommonMark.\n*/\nconst commonmarkLanguage = /*@__PURE__*/mkLang(commonmark);\nconst extended = /*@__PURE__*/commonmark.configure([GFM, Subscript, Superscript, Emoji, {\n props: [\n /*@__PURE__*/foldNodeProp.add({\n Table: (tree, state) => ({ from: state.doc.lineAt(tree.from).to, to: tree.to })\n })\n ]\n }]);\n/**\nLanguage support for [GFM](https://github.github.com/gfm/) plus\nsubscript, superscript, and emoji syntax.\n*/\nconst markdownLanguage = /*@__PURE__*/mkLang(extended);\nfunction getCodeParser(languages, defaultLanguage) {\n return (info) => {\n if (info && languages) {\n let found = null;\n // Strip anything after whitespace\n info = /\\S*/.exec(info)[0];\n if (typeof languages == \"function\")\n found = languages(info);\n else\n found = LanguageDescription.matchLanguageName(languages, info, true);\n if (found instanceof LanguageDescription)\n return found.support ? found.support.language.parser : ParseContext.getSkippingParser(found.load());\n else if (found)\n return found.parser;\n }\n return defaultLanguage ? defaultLanguage.parser : null;\n };\n}\n\nclass Context {\n constructor(node, from, to, spaceBefore, spaceAfter, type, item) {\n this.node = node;\n this.from = from;\n this.to = to;\n this.spaceBefore = spaceBefore;\n this.spaceAfter = spaceAfter;\n this.type = type;\n this.item = item;\n }\n blank(maxWidth, trailing = true) {\n let result = this.spaceBefore + (this.node.name == \"Blockquote\" ? \">\" : \"\");\n if (maxWidth != null) {\n while (result.length < maxWidth)\n result += \" \";\n return result;\n }\n else {\n for (let i = this.to - this.from - result.length - this.spaceAfter.length; i > 0; i--)\n result += \" \";\n return result + (trailing ? this.spaceAfter : \"\");\n }\n }\n marker(doc, add) {\n let number = this.node.name == \"OrderedList\" ? String((+itemNumber(this.item, doc)[2] + add)) : \"\";\n return this.spaceBefore + number + this.type + this.spaceAfter;\n }\n}\nfunction getContext(node, doc) {\n let nodes = [], context = [];\n for (let cur = node; cur; cur = cur.parent) {\n if (cur.name == \"FencedCode\")\n return context;\n if (cur.name == \"ListItem\" || cur.name == \"Blockquote\")\n nodes.push(cur);\n }\n for (let i = nodes.length - 1; i >= 0; i--) {\n let node = nodes[i], match;\n let line = doc.lineAt(node.from), startPos = node.from - line.from;\n if (node.name == \"Blockquote\" && (match = /^ *>( ?)/.exec(line.text.slice(startPos)))) {\n context.push(new Context(node, startPos, startPos + match[0].length, \"\", match[1], \">\", null));\n }\n else if (node.name == \"ListItem\" && node.parent.name == \"OrderedList\" &&\n (match = /^( *)\\d+([.)])( *)/.exec(line.text.slice(startPos)))) {\n let after = match[3], len = match[0].length;\n if (after.length >= 4) {\n after = after.slice(0, after.length - 4);\n len -= 4;\n }\n context.push(new Context(node.parent, startPos, startPos + len, match[1], after, match[2], node));\n }\n else if (node.name == \"ListItem\" && node.parent.name == \"BulletList\" &&\n (match = /^( *)([-+*])( {1,4}\\[[ xX]\\])?( +)/.exec(line.text.slice(startPos)))) {\n let after = match[4], len = match[0].length;\n if (after.length > 4) {\n after = after.slice(0, after.length - 4);\n len -= 4;\n }\n let type = match[2];\n if (match[3])\n type += match[3].replace(/[xX]/, ' ');\n context.push(new Context(node.parent, startPos, startPos + len, match[1], after, type, node));\n }\n }\n return context;\n}\nfunction itemNumber(item, doc) {\n return /^(\\s*)(\\d+)(?=[.)])/.exec(doc.sliceString(item.from, item.from + 10));\n}\nfunction renumberList(after, doc, changes, offset = 0) {\n for (let prev = -1, node = after;;) {\n if (node.name == \"ListItem\") {\n let m = itemNumber(node, doc);\n let number = +m[2];\n if (prev >= 0) {\n if (number != prev + 1)\n return;\n changes.push({ from: node.from + m[1].length, to: node.from + m[0].length, insert: String(prev + 2 + offset) });\n }\n prev = number;\n }\n let next = node.nextSibling;\n if (!next)\n break;\n node = next;\n }\n}\nfunction normalizeIndent(content, state) {\n let blank = /^[ \\t]*/.exec(content)[0].length;\n if (!blank || state.facet(indentUnit) != \"\\t\")\n return content;\n let col = countColumn(content, 4, blank);\n let space = \"\";\n for (let i = col; i > 0;) {\n if (i >= 4) {\n space += \"\\t\";\n i -= 4;\n }\n else {\n space += \" \";\n i--;\n }\n }\n return space + content.slice(blank);\n}\n/**\nThis command, when invoked in Markdown context with cursor\nselection(s), will create a new line with the markup for\nblockquotes and lists that were active on the old line. If the\ncursor was directly after the end of the markup for the old line,\ntrailing whitespace and list markers are removed from that line.\n\nThe command does nothing in non-Markdown context, so it should\nnot be used as the only binding for Enter (even in a Markdown\ndocument, HTML and code regions might use a different language).\n*/\nconst insertNewlineContinueMarkup = ({ state, dispatch }) => {\n let tree = syntaxTree(state), { doc } = state;\n let dont = null, changes = state.changeByRange(range => {\n if (!range.empty || !markdownLanguage.isActiveAt(state, range.from, -1) && !markdownLanguage.isActiveAt(state, range.from, 1))\n return dont = { range };\n let pos = range.from, line = doc.lineAt(pos);\n let context = getContext(tree.resolveInner(pos, -1), doc);\n while (context.length && context[context.length - 1].from > pos - line.from)\n context.pop();\n if (!context.length)\n return dont = { range };\n let inner = context[context.length - 1];\n if (inner.to - inner.spaceAfter.length > pos - line.from)\n return dont = { range };\n let emptyLine = pos >= (inner.to - inner.spaceAfter.length) && !/\\S/.test(line.text.slice(inner.to));\n // Empty line in list\n if (inner.item && emptyLine) {\n let first = inner.node.firstChild, second = inner.node.getChild(\"ListItem\", \"ListItem\");\n // Not second item or blank line before: delete a level of markup\n if (first.to >= pos || second && second.to < pos ||\n line.from > 0 && !/[^\\s>]/.test(doc.lineAt(line.from - 1).text)) {\n let next = context.length > 1 ? context[context.length - 2] : null;\n let delTo, insert = \"\";\n if (next && next.item) { // Re-add marker for the list at the next level\n delTo = line.from + next.from;\n insert = next.marker(doc, 1);\n }\n else {\n delTo = line.from + (next ? next.to : 0);\n }\n let changes = [{ from: delTo, to: pos, insert }];\n if (inner.node.name == \"OrderedList\")\n renumberList(inner.item, doc, changes, -2);\n if (next && next.node.name == \"OrderedList\")\n renumberList(next.item, doc, changes);\n return { range: EditorSelection.cursor(delTo + insert.length), changes };\n }\n else { // Move second item down, making tight two-item list non-tight\n let insert = blankLine(context, state, line);\n return { range: EditorSelection.cursor(pos + insert.length + 1),\n changes: { from: line.from, insert: insert + state.lineBreak } };\n }\n }\n if (inner.node.name == \"Blockquote\" && emptyLine && line.from) {\n let prevLine = doc.lineAt(line.from - 1), quoted = />\\s*$/.exec(prevLine.text);\n // Two aligned empty quoted lines in a row\n if (quoted && quoted.index == inner.from) {\n let changes = state.changes([{ from: prevLine.from + quoted.index, to: prevLine.to },\n { from: line.from + inner.from, to: line.to }]);\n return { range: range.map(changes), changes };\n }\n }\n let changes = [];\n if (inner.node.name == \"OrderedList\")\n renumberList(inner.item, doc, changes);\n let continued = inner.item && inner.item.from < line.from;\n let insert = \"\";\n // If not dedented\n if (!continued || /^[\\s\\d.)\\-+*>]*/.exec(line.text)[0].length >= inner.to) {\n for (let i = 0, e = context.length - 1; i <= e; i++) {\n insert += i == e && !continued ? context[i].marker(doc, 1)\n : context[i].blank(i < e ? countColumn(line.text, 4, context[i + 1].from) - insert.length : null);\n }\n }\n let from = pos;\n while (from > line.from && /\\s/.test(line.text.charAt(from - line.from - 1)))\n from--;\n insert = normalizeIndent(insert, state);\n if (nonTightList(inner.node, state.doc))\n insert = blankLine(context, state, line) + state.lineBreak + insert;\n changes.push({ from, to: pos, insert: state.lineBreak + insert });\n return { range: EditorSelection.cursor(from + insert.length + 1), changes };\n });\n if (dont)\n return false;\n dispatch(state.update(changes, { scrollIntoView: true, userEvent: \"input\" }));\n return true;\n};\nfunction isMark(node) {\n return node.name == \"QuoteMark\" || node.name == \"ListMark\";\n}\nfunction nonTightList(node, doc) {\n if (node.name != \"OrderedList\" && node.name != \"BulletList\")\n return false;\n let first = node.firstChild, second = node.getChild(\"ListItem\", \"ListItem\");\n if (!second)\n return false;\n let line1 = doc.lineAt(first.to), line2 = doc.lineAt(second.from);\n let empty = /^[\\s>]*$/.test(line1.text);\n return line1.number + (empty ? 0 : 1) < line2.number;\n}\nfunction blankLine(context, state, line) {\n let insert = \"\";\n for (let i = 0, e = context.length - 2; i <= e; i++) {\n insert += context[i].blank(i < e\n ? countColumn(line.text, 4, context[i + 1].from) - insert.length\n : null, i < e);\n }\n return normalizeIndent(insert, state);\n}\nfunction contextNodeForDelete(tree, pos) {\n let node = tree.resolveInner(pos, -1), scan = pos;\n if (isMark(node)) {\n scan = node.from;\n node = node.parent;\n }\n for (let prev; prev = node.childBefore(scan);) {\n if (isMark(prev)) {\n scan = prev.from;\n }\n else if (prev.name == \"OrderedList\" || prev.name == \"BulletList\") {\n node = prev.lastChild;\n scan = node.to;\n }\n else {\n break;\n }\n }\n return node;\n}\n/**\nThis command will, when invoked in a Markdown context with the\ncursor directly after list or blockquote markup, delete one level\nof markup. When the markup is for a list, it will be replaced by\nspaces on the first invocation (a further invocation will delete\nthe spaces), to make it easy to continue a list.\n\nWhen not after Markdown block markup, this command will return\nfalse, so it is intended to be bound alongside other deletion\ncommands, with a higher precedence than the more generic commands.\n*/\nconst deleteMarkupBackward = ({ state, dispatch }) => {\n let tree = syntaxTree(state);\n let dont = null, changes = state.changeByRange(range => {\n let pos = range.from, { doc } = state;\n if (range.empty && markdownLanguage.isActiveAt(state, range.from)) {\n let line = doc.lineAt(pos);\n let context = getContext(contextNodeForDelete(tree, pos), doc);\n if (context.length) {\n let inner = context[context.length - 1];\n let spaceEnd = inner.to - inner.spaceAfter.length + (inner.spaceAfter ? 1 : 0);\n // Delete extra trailing space after markup\n if (pos - line.from > spaceEnd && !/\\S/.test(line.text.slice(spaceEnd, pos - line.from)))\n return { range: EditorSelection.cursor(line.from + spaceEnd),\n changes: { from: line.from + spaceEnd, to: pos } };\n if (pos - line.from == spaceEnd &&\n // Only apply this if we're on the line that has the\n // construct's syntax, or there's only indentation in the\n // target range\n (!inner.item || line.from <= inner.item.from || !/\\S/.test(line.text.slice(0, inner.to)))) {\n let start = line.from + inner.from;\n // Replace a list item marker with blank space\n if (inner.item && inner.node.from < inner.item.from && /\\S/.test(line.text.slice(inner.from, inner.to))) {\n let insert = inner.blank(countColumn(line.text, 4, inner.to) - countColumn(line.text, 4, inner.from));\n if (start == line.from)\n insert = normalizeIndent(insert, state);\n return { range: EditorSelection.cursor(start + insert.length),\n changes: { from: start, to: line.from + inner.to, insert } };\n }\n // Delete one level of indentation\n if (start < pos)\n return { range: EditorSelection.cursor(start), changes: { from: start, to: pos } };\n }\n }\n }\n return dont = { range };\n });\n if (dont)\n return false;\n dispatch(state.update(changes, { scrollIntoView: true, userEvent: \"delete\" }));\n return true;\n};\n\n/**\nA small keymap with Markdown-specific bindings. Binds Enter to\n[`insertNewlineContinueMarkup`](https://codemirror.net/6/docs/ref/#lang-markdown.insertNewlineContinueMarkup)\nand Backspace to\n[`deleteMarkupBackward`](https://codemirror.net/6/docs/ref/#lang-markdown.deleteMarkupBackward).\n*/\nconst markdownKeymap = [\n { key: \"Enter\", run: insertNewlineContinueMarkup },\n { key: \"Backspace\", run: deleteMarkupBackward }\n];\nconst htmlNoMatch = /*@__PURE__*/html({ matchClosingTags: false });\n/**\nMarkdown language support.\n*/\nfunction markdown(config = {}) {\n let { codeLanguages, defaultCodeLanguage, addKeymap = true, base: { parser } = commonmarkLanguage, completeHTMLTags = true, htmlTagLanguage = htmlNoMatch } = config;\n if (!(parser instanceof MarkdownParser))\n throw new RangeError(\"Base parser provided to `markdown` should be a Markdown parser\");\n let extensions = config.extensions ? [config.extensions] : [];\n let support = [htmlTagLanguage.support, headerIndent], defaultCode;\n if (defaultCodeLanguage instanceof LanguageSupport) {\n support.push(defaultCodeLanguage.support);\n defaultCode = defaultCodeLanguage.language;\n }\n else if (defaultCodeLanguage) {\n defaultCode = defaultCodeLanguage;\n }\n let codeParser = codeLanguages || defaultCode ? getCodeParser(codeLanguages, defaultCode) : undefined;\n extensions.push(parseCode({ codeParser, htmlParser: htmlTagLanguage.language.parser }));\n if (addKeymap)\n support.push(Prec.high(keymap.of(markdownKeymap)));\n let lang = mkLang(parser.configure(extensions));\n if (completeHTMLTags)\n support.push(lang.data.of({ autocomplete: htmlTagCompletion }));\n return new LanguageSupport(lang, support);\n}\nfunction htmlTagCompletion(context) {\n let { state, pos } = context, m = /<[:\\-\\.\\w\\u00b7-\\uffff]*$/.exec(state.sliceDoc(pos - 25, pos));\n if (!m)\n return null;\n let tree = syntaxTree(state).resolveInner(pos, -1);\n while (tree && !tree.type.isTop) {\n if (tree.name == \"CodeBlock\" || tree.name == \"FencedCode\" || tree.name == \"ProcessingInstructionBlock\" ||\n tree.name == \"CommentBlock\" || tree.name == \"Link\" || tree.name == \"Image\")\n return null;\n tree = tree.parent;\n }\n return {\n from: pos - m[0].length, to: pos,\n options: htmlTagCompletions(),\n validFor: /^<[:\\-\\.\\w\\u00b7-\\uffff]*$/\n };\n}\nlet _tagCompletions = null;\nfunction htmlTagCompletions() {\n if (_tagCompletions)\n return _tagCompletions;\n let result = htmlCompletionSource(new CompletionContext(EditorState.create({ extensions: htmlNoMatch }), 0, true));\n return _tagCompletions = result ? result.options : [];\n}\n\nexport { commonmarkLanguage, deleteMarkupBackward, insertNewlineContinueMarkup, markdown, markdownKeymap, markdownLanguage };\n"],"names":["data","defineLanguageFacet","headingProp","NodeProp","commonmark","parser","foldNodeProp","type","isHeading","isList","tree","state","indentNodeProp","languageDataProp","match","findSectionEnd","headerNode","level","last","next","heading","headerIndent","foldService","start","end","node","syntaxTree","upto","mkLang","Language","commonmarkLanguage","extended","GFM","Subscript","Superscript","Emoji","markdownLanguage","getCodeParser","languages","defaultLanguage","info","found","LanguageDescription","ParseContext","Context","from","to","spaceBefore","spaceAfter","item","maxWidth","trailing","result","i","doc","add","number","itemNumber","getContext","nodes","context","cur","line","startPos","after","len","renumberList","changes","offset","prev","m","normalizeIndent","content","blank","indentUnit","col","countColumn","space","insertNewlineContinueMarkup","dispatch","dont","range","pos","inner","emptyLine","first","second","delTo","insert","EditorSelection","blankLine","prevLine","quoted","continued","e","nonTightList","isMark","line1","line2","empty","contextNodeForDelete","scan","deleteMarkupBackward","spaceEnd","markdownKeymap","htmlNoMatch","html","markdown","config","codeLanguages","defaultCodeLanguage","addKeymap","completeHTMLTags","htmlTagLanguage","MarkdownParser","extensions","support","defaultCode","LanguageSupport","codeParser","parseCode","Prec","keymap","lang","htmlTagCompletion","htmlTagCompletions","_tagCompletions","htmlCompletionSource","CompletionContext","EditorState"],"mappings":";;;;;;;AAQA,MAAMA,IAAoB,gBAAAC,EAAoB,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,QAAQ,OAAO,MAAK,EAAE,EAAE,CAAE,GACpGC,IAA2B,oBAAIC,GAAQ,GACvCC,IAA0B,gBAAAC,GAAO,UAAU;AAAA,EAC7C,OAAO;AAAA,IACU,gBAAAC,EAAa,IAAI,CAAAC,MACnB,CAACA,EAAK,GAAG,OAAO,KAAKA,EAAK,GAAG,UAAU,KAAKC,EAAUD,CAAI,KAAK,QAAQE,GAAOF,CAAI,IAAI,SACvF,CAACG,GAAMC,OAAW,EAAE,MAAMA,EAAM,IAAI,OAAOD,EAAK,IAAI,EAAE,IAAI,IAAIA,EAAK,GAAE,EAC9E;AAAA,IACY,gBAAAR,EAAY,IAAIM,CAAS;AAAA,IACzB,gBAAAI,EAAe,IAAI;AAAA,MAC5B,UAAU,MAAM;AAAA,IAC5B,CAAS;AAAA,IACY,gBAAAC,EAAiB,IAAI;AAAA,MAC9B,UAAUb;AAAA,IACtB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,MAAMwE,IAAMZ,EAAE,CAAC,EAAE;AAAA,IAAQ,IAAIY;AAAA,IAC7B,SAAS2C,GAAkB;AAAA,IAC3B,UAAU;AAAA,EAClB;AACA;AACA,IAAIC,IAAkB;AACtB,SAASD,KAAqB;AAC1B,MAAIC;AACA,WAAOA;AACX,MAAI1E,IAAS2E,GAAqB,IAAIC,EAAkBC,EAAY,OAAO,EAAE,YAAYxB,EAAW,CAAE,GAAG,GAAG,EAAI,CAAC;AACjH,SAAOqB,IAAkB1E,IAASA,EAAO,UAAU,CAAA;AACvD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es.js","sources":["../../../../../node_modules/@codemirror/lang-markdown/dist/index.js"],"sourcesContent":["import { EditorSelection, countColumn, Prec, EditorState } from '@codemirror/state';\nimport { EditorView, keymap } from '@codemirror/view';\nimport { defineLanguageFacet, foldNodeProp, indentNodeProp, languageDataProp, foldService, syntaxTree, Language, LanguageDescription, ParseContext, indentUnit, LanguageSupport } from '@codemirror/language';\nimport { CompletionContext } from '@codemirror/autocomplete';\nimport { parser, GFM, Subscript, Superscript, Emoji, MarkdownParser, parseCode } from '@lezer/markdown';\nimport { html, htmlCompletionSource } from '@codemirror/lang-html';\nimport { NodeProp } from '@lezer/common';\n\nconst data = /*@__PURE__*/defineLanguageFacet({ commentTokens: { block: { open: \"<!--\", close: \"-->\" } } });\nconst headingProp = /*@__PURE__*/new NodeProp();\nconst commonmark = /*@__PURE__*/parser.configure({\n props: [\n /*@__PURE__*/foldNodeProp.add(type => {\n return !type.is(\"Block\") || type.is(\"Document\") || isHeading(type) != null || isList(type) ? undefined\n : (tree, state) => ({ from: state.doc.lineAt(tree.from).to, to: tree.to });\n }),\n /*@__PURE__*/headingProp.add(isHeading),\n /*@__PURE__*/indentNodeProp.add({\n Document: () => null\n }),\n /*@__PURE__*/languageDataProp.add({\n Document: data\n })\n ]\n});\nfunction isHeading(type) {\n let match = /^(?:ATX|Setext)Heading(\\d)$/.exec(type.name);\n return match ? +match[1] : undefined;\n}\nfunction isList(type) {\n return type.name == \"OrderedList\" || type.name == \"BulletList\";\n}\nfunction findSectionEnd(headerNode, level) {\n let last = headerNode;\n for (;;) {\n let next = last.nextSibling, heading;\n if (!next || (heading = isHeading(next.type)) != null && heading <= level)\n break;\n last = next;\n }\n return last.to;\n}\nconst headerIndent = /*@__PURE__*/foldService.of((state, start, end) => {\n for (let node = syntaxTree(state).resolveInner(end, -1); node; node = node.parent) {\n if (node.from < start)\n break;\n let heading = node.type.prop(headingProp);\n if (heading == null)\n continue;\n let upto = findSectionEnd(node, heading);\n if (upto > end)\n return { from: end, to: upto };\n }\n return null;\n});\nfunction mkLang(parser) {\n return new Language(data, parser, [], \"markdown\");\n}\n/**\nLanguage support for strict CommonMark.\n*/\nconst commonmarkLanguage = /*@__PURE__*/mkLang(commonmark);\nconst extended = /*@__PURE__*/commonmark.configure([GFM, Subscript, Superscript, Emoji, {\n props: [\n /*@__PURE__*/foldNodeProp.add({\n Table: (tree, state) => ({ from: state.doc.lineAt(tree.from).to, to: tree.to })\n })\n ]\n }]);\n/**\nLanguage support for [GFM](https://github.github.com/gfm/) plus\nsubscript, superscript, and emoji syntax.\n*/\nconst markdownLanguage = /*@__PURE__*/mkLang(extended);\nfunction getCodeParser(languages, defaultLanguage) {\n return (info) => {\n if (info && languages) {\n let found = null;\n // Strip anything after whitespace\n info = /\\S*/.exec(info)[0];\n if (typeof languages == \"function\")\n found = languages(info);\n else\n found = LanguageDescription.matchLanguageName(languages, info, true);\n if (found instanceof LanguageDescription)\n return found.support ? found.support.language.parser : ParseContext.getSkippingParser(found.load());\n else if (found)\n return found.parser;\n }\n return defaultLanguage ? defaultLanguage.parser : null;\n };\n}\n\nclass Context {\n constructor(node, from, to, spaceBefore, spaceAfter, type, item) {\n this.node = node;\n this.from = from;\n this.to = to;\n this.spaceBefore = spaceBefore;\n this.spaceAfter = spaceAfter;\n this.type = type;\n this.item = item;\n }\n blank(maxWidth, trailing = true) {\n let result = this.spaceBefore + (this.node.name == \"Blockquote\" ? \">\" : \"\");\n if (maxWidth != null) {\n while (result.length < maxWidth)\n result += \" \";\n return result;\n }\n else {\n for (let i = this.to - this.from - result.length - this.spaceAfter.length; i > 0; i--)\n result += \" \";\n return result + (trailing ? this.spaceAfter : \"\");\n }\n }\n marker(doc, add) {\n let number = this.node.name == \"OrderedList\" ? String((+itemNumber(this.item, doc)[2] + add)) : \"\";\n return this.spaceBefore + number + this.type + this.spaceAfter;\n }\n}\nfunction getContext(node, doc) {\n let nodes = [], context = [];\n for (let cur = node; cur; cur = cur.parent) {\n if (cur.name == \"FencedCode\")\n return context;\n if (cur.name == \"ListItem\" || cur.name == \"Blockquote\")\n nodes.push(cur);\n }\n for (let i = nodes.length - 1; i >= 0; i--) {\n let node = nodes[i], match;\n let line = doc.lineAt(node.from), startPos = node.from - line.from;\n if (node.name == \"Blockquote\" && (match = /^ *>( ?)/.exec(line.text.slice(startPos)))) {\n context.push(new Context(node, startPos, startPos + match[0].length, \"\", match[1], \">\", null));\n }\n else if (node.name == \"ListItem\" && node.parent.name == \"OrderedList\" &&\n (match = /^( *)\\d+([.)])( *)/.exec(line.text.slice(startPos)))) {\n let after = match[3], len = match[0].length;\n if (after.length >= 4) {\n after = after.slice(0, after.length - 4);\n len -= 4;\n }\n context.push(new Context(node.parent, startPos, startPos + len, match[1], after, match[2], node));\n }\n else if (node.name == \"ListItem\" && node.parent.name == \"BulletList\" &&\n (match = /^( *)([-+*])( {1,4}\\[[ xX]\\])?( +)/.exec(line.text.slice(startPos)))) {\n let after = match[4], len = match[0].length;\n if (after.length > 4) {\n after = after.slice(0, after.length - 4);\n len -= 4;\n }\n let type = match[2];\n if (match[3])\n type += match[3].replace(/[xX]/, ' ');\n context.push(new Context(node.parent, startPos, startPos + len, match[1], after, type, node));\n }\n }\n return context;\n}\nfunction itemNumber(item, doc) {\n return /^(\\s*)(\\d+)(?=[.)])/.exec(doc.sliceString(item.from, item.from + 10));\n}\nfunction renumberList(after, doc, changes, offset = 0) {\n for (let prev = -1, node = after;;) {\n if (node.name == \"ListItem\") {\n let m = itemNumber(node, doc);\n let number = +m[2];\n if (prev >= 0) {\n if (number != prev + 1)\n return;\n changes.push({ from: node.from + m[1].length, to: node.from + m[0].length, insert: String(prev + 2 + offset) });\n }\n prev = number;\n }\n let next = node.nextSibling;\n if (!next)\n break;\n node = next;\n }\n}\nfunction normalizeIndent(content, state) {\n let blank = /^[ \\t]*/.exec(content)[0].length;\n if (!blank || state.facet(indentUnit) != \"\\t\")\n return content;\n let col = countColumn(content, 4, blank);\n let space = \"\";\n for (let i = col; i > 0;) {\n if (i >= 4) {\n space += \"\\t\";\n i -= 4;\n }\n else {\n space += \" \";\n i--;\n }\n }\n return space + content.slice(blank);\n}\n/**\nReturns a command like\n[`insertNewlineContinueMarkup`](https://codemirror.net/6/docs/ref/#lang-markdown.insertNewlineContinueMarkup),\nallowing further configuration.\n*/\nconst insertNewlineContinueMarkupCommand = (config = {}) => ({ state, dispatch }) => {\n let tree = syntaxTree(state), { doc } = state;\n let dont = null, changes = state.changeByRange(range => {\n if (!range.empty || !markdownLanguage.isActiveAt(state, range.from, -1) && !markdownLanguage.isActiveAt(state, range.from, 1))\n return dont = { range };\n let pos = range.from, line = doc.lineAt(pos);\n let context = getContext(tree.resolveInner(pos, -1), doc);\n while (context.length && context[context.length - 1].from > pos - line.from)\n context.pop();\n if (!context.length)\n return dont = { range };\n let inner = context[context.length - 1];\n if (inner.to - inner.spaceAfter.length > pos - line.from)\n return dont = { range };\n let emptyLine = pos >= (inner.to - inner.spaceAfter.length) && !/\\S/.test(line.text.slice(inner.to));\n // Empty line in list\n if (inner.item && emptyLine) {\n if (inner.item.from < line.from && !/^[\\s>]*$/.test(line.text.slice(0, inner.to)))\n return dont = { range };\n let first = inner.node.firstChild, second = inner.node.getChild(\"ListItem\", \"ListItem\");\n // Not second item or blank line before: delete a level of markup\n if (first.to >= pos || second && second.to < pos ||\n line.from > 0 && !/[^\\s>]/.test(doc.lineAt(line.from - 1).text) ||\n config.nonTightLists === false) {\n let next = context.length > 1 ? context[context.length - 2] : null;\n let delTo, insert = \"\";\n if (next && next.item) { // Re-add marker for the list at the next level\n delTo = line.from + next.from;\n insert = next.marker(doc, 1);\n }\n else {\n delTo = line.from + (next ? next.to : 0);\n }\n let changes = [{ from: delTo, to: pos, insert }];\n if (inner.node.name == \"OrderedList\")\n renumberList(inner.item, doc, changes, -2);\n if (next && next.node.name == \"OrderedList\")\n renumberList(next.item, doc, changes);\n return { range: EditorSelection.cursor(delTo + insert.length), changes };\n }\n else { // Move second item down, making tight two-item list non-tight\n let insert = blankLine(context, state, line);\n return { range: EditorSelection.cursor(pos + insert.length + 1),\n changes: { from: line.from, insert: insert + state.lineBreak } };\n }\n }\n if (inner.node.name == \"Blockquote\" && emptyLine && line.from) {\n let prevLine = doc.lineAt(line.from - 1), quoted = />\\s*$/.exec(prevLine.text);\n // Two aligned empty quoted lines in a row\n if (quoted && quoted.index == inner.from) {\n let changes = state.changes([{ from: prevLine.from + quoted.index, to: prevLine.to },\n { from: line.from + inner.from, to: line.to }]);\n return { range: range.map(changes), changes };\n }\n }\n let changes = [];\n if (inner.node.name == \"OrderedList\")\n renumberList(inner.item, doc, changes);\n let continued = inner.item && inner.item.from < line.from;\n let insert = \"\";\n // If not dedented\n if (!continued || /^[\\s\\d.)\\-+*>]*/.exec(line.text)[0].length >= inner.to) {\n for (let i = 0, e = context.length - 1; i <= e; i++) {\n insert += i == e && !continued ? context[i].marker(doc, 1)\n : context[i].blank(i < e ? countColumn(line.text, 4, context[i + 1].from) - insert.length : null);\n }\n }\n let from = pos;\n while (from > line.from && /\\s/.test(line.text.charAt(from - line.from - 1)))\n from--;\n insert = normalizeIndent(insert, state);\n if (nonTightList(inner.node, state.doc))\n insert = blankLine(context, state, line) + state.lineBreak + insert;\n changes.push({ from, to: pos, insert: state.lineBreak + insert });\n return { range: EditorSelection.cursor(from + insert.length + 1), changes };\n });\n if (dont)\n return false;\n dispatch(state.update(changes, { scrollIntoView: true, userEvent: \"input\" }));\n return true;\n};\n/**\nThis command, when invoked in Markdown context with cursor\nselection(s), will create a new line with the markup for\nblockquotes and lists that were active on the old line. If the\ncursor was directly after the end of the markup for the old line,\ntrailing whitespace and list markers are removed from that line.\n\nThe command does nothing in non-Markdown context, so it should\nnot be used as the only binding for Enter (even in a Markdown\ndocument, HTML and code regions might use a different language).\n*/\nconst insertNewlineContinueMarkup = /*@__PURE__*/insertNewlineContinueMarkupCommand();\nfunction isMark(node) {\n return node.name == \"QuoteMark\" || node.name == \"ListMark\";\n}\nfunction nonTightList(node, doc) {\n if (node.name != \"OrderedList\" && node.name != \"BulletList\")\n return false;\n let first = node.firstChild, second = node.getChild(\"ListItem\", \"ListItem\");\n if (!second)\n return false;\n let line1 = doc.lineAt(first.to), line2 = doc.lineAt(second.from);\n let empty = /^[\\s>]*$/.test(line1.text);\n return line1.number + (empty ? 0 : 1) < line2.number;\n}\nfunction blankLine(context, state, line) {\n let insert = \"\";\n for (let i = 0, e = context.length - 2; i <= e; i++) {\n insert += context[i].blank(i < e\n ? countColumn(line.text, 4, context[i + 1].from) - insert.length\n : null, i < e);\n }\n return normalizeIndent(insert, state);\n}\nfunction contextNodeForDelete(tree, pos) {\n let node = tree.resolveInner(pos, -1), scan = pos;\n if (isMark(node)) {\n scan = node.from;\n node = node.parent;\n }\n for (let prev; prev = node.childBefore(scan);) {\n if (isMark(prev)) {\n scan = prev.from;\n }\n else if (prev.name == \"OrderedList\" || prev.name == \"BulletList\") {\n node = prev.lastChild;\n scan = node.to;\n }\n else {\n break;\n }\n }\n return node;\n}\n/**\nThis command will, when invoked in a Markdown context with the\ncursor directly after list or blockquote markup, delete one level\nof markup. When the markup is for a list, it will be replaced by\nspaces on the first invocation (a further invocation will delete\nthe spaces), to make it easy to continue a list.\n\nWhen not after Markdown block markup, this command will return\nfalse, so it is intended to be bound alongside other deletion\ncommands, with a higher precedence than the more generic commands.\n*/\nconst deleteMarkupBackward = ({ state, dispatch }) => {\n let tree = syntaxTree(state);\n let dont = null, changes = state.changeByRange(range => {\n let pos = range.from, { doc } = state;\n if (range.empty && markdownLanguage.isActiveAt(state, range.from)) {\n let line = doc.lineAt(pos);\n let context = getContext(contextNodeForDelete(tree, pos), doc);\n if (context.length) {\n let inner = context[context.length - 1];\n let spaceEnd = inner.to - inner.spaceAfter.length + (inner.spaceAfter ? 1 : 0);\n // Delete extra trailing space after markup\n if (pos - line.from > spaceEnd && !/\\S/.test(line.text.slice(spaceEnd, pos - line.from)))\n return { range: EditorSelection.cursor(line.from + spaceEnd),\n changes: { from: line.from + spaceEnd, to: pos } };\n if (pos - line.from == spaceEnd &&\n // Only apply this if we're on the line that has the\n // construct's syntax, or there's only indentation in the\n // target range\n ((inner.item && line.from <= inner.item.from) || /^[\\s>]*$/.test(line.text.slice(0, inner.to)))) {\n let start = line.from + inner.from;\n // Replace a list item marker with blank space\n if (inner.item && inner.node.from < inner.item.from && /\\S/.test(line.text.slice(inner.from, inner.to))) {\n let insert = inner.blank(countColumn(line.text, 4, inner.to) - countColumn(line.text, 4, inner.from));\n if (start == line.from)\n insert = normalizeIndent(insert, state);\n return { range: EditorSelection.cursor(start + insert.length),\n changes: { from: start, to: line.from + inner.to, insert } };\n }\n // Delete one level of indentation\n if (start < pos)\n return { range: EditorSelection.cursor(start), changes: { from: start, to: pos } };\n }\n }\n }\n return dont = { range };\n });\n if (dont)\n return false;\n dispatch(state.update(changes, { scrollIntoView: true, userEvent: \"delete\" }));\n return true;\n};\n\n/**\nA small keymap with Markdown-specific bindings. Binds Enter to\n[`insertNewlineContinueMarkup`](https://codemirror.net/6/docs/ref/#lang-markdown.insertNewlineContinueMarkup)\nand Backspace to\n[`deleteMarkupBackward`](https://codemirror.net/6/docs/ref/#lang-markdown.deleteMarkupBackward).\n*/\nconst markdownKeymap = [\n { key: \"Enter\", run: insertNewlineContinueMarkup },\n { key: \"Backspace\", run: deleteMarkupBackward }\n];\nconst htmlNoMatch = /*@__PURE__*/html({ matchClosingTags: false });\n/**\nMarkdown language support.\n*/\nfunction markdown(config = {}) {\n let { codeLanguages, defaultCodeLanguage, addKeymap = true, base: { parser } = commonmarkLanguage, completeHTMLTags = true, pasteURLAsLink: pasteURL = true, htmlTagLanguage = htmlNoMatch } = config;\n if (!(parser instanceof MarkdownParser))\n throw new RangeError(\"Base parser provided to `markdown` should be a Markdown parser\");\n let extensions = config.extensions ? [config.extensions] : [];\n let support = [htmlTagLanguage.support, headerIndent], defaultCode;\n if (pasteURL)\n support.push(pasteURLAsLink);\n if (defaultCodeLanguage instanceof LanguageSupport) {\n support.push(defaultCodeLanguage.support);\n defaultCode = defaultCodeLanguage.language;\n }\n else if (defaultCodeLanguage) {\n defaultCode = defaultCodeLanguage;\n }\n let codeParser = codeLanguages || defaultCode ? getCodeParser(codeLanguages, defaultCode) : undefined;\n extensions.push(parseCode({ codeParser, htmlParser: htmlTagLanguage.language.parser }));\n if (addKeymap)\n support.push(Prec.high(keymap.of(markdownKeymap)));\n let lang = mkLang(parser.configure(extensions));\n if (completeHTMLTags)\n support.push(lang.data.of({ autocomplete: htmlTagCompletion }));\n return new LanguageSupport(lang, support);\n}\nfunction htmlTagCompletion(context) {\n let { state, pos } = context, m = /<[:\\-\\.\\w\\u00b7-\\uffff]*$/.exec(state.sliceDoc(pos - 25, pos));\n if (!m)\n return null;\n let tree = syntaxTree(state).resolveInner(pos, -1);\n while (tree && !tree.type.isTop) {\n if (tree.name == \"CodeBlock\" || tree.name == \"FencedCode\" || tree.name == \"ProcessingInstructionBlock\" ||\n tree.name == \"CommentBlock\" || tree.name == \"Link\" || tree.name == \"Image\")\n return null;\n tree = tree.parent;\n }\n return {\n from: pos - m[0].length, to: pos,\n options: htmlTagCompletions(),\n validFor: /^<[:\\-\\.\\w\\u00b7-\\uffff]*$/\n };\n}\nlet _tagCompletions = null;\nfunction htmlTagCompletions() {\n if (_tagCompletions)\n return _tagCompletions;\n let result = htmlCompletionSource(new CompletionContext(EditorState.create({ extensions: htmlNoMatch }), 0, true));\n return _tagCompletions = result ? result.options : [];\n}\nconst nonPlainText = /code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i;\n/**\nAn extension that intercepts pastes when the pasted content looks\nlike a URL and the selection is non-empty and selects regular\ntext, making the selection a link with the pasted URL as target.\n*/\nconst pasteURLAsLink = /*@__PURE__*/EditorView.domEventHandlers({\n paste: (event, view) => {\n var _a;\n let { main } = view.state.selection;\n if (main.empty)\n return false;\n let link = (_a = event.clipboardData) === null || _a === void 0 ? void 0 : _a.getData(\"text/plain\");\n if (!link || !/^(https?:\\/\\/|mailto:|xmpp:|www\\.)/.test(link))\n return false;\n if (/^www\\./.test(link))\n link = \"https://\" + link;\n if (!markdownLanguage.isActiveAt(view.state, main.from, 1))\n return false;\n let tree = syntaxTree(view.state), crossesNode = false;\n // Verify that no nodes are started/ended between the selection\n // points, and we're not inside any non-plain-text construct.\n tree.iterate({\n from: main.from, to: main.to,\n enter: node => { if (node.from > main.from || nonPlainText.test(node.name))\n crossesNode = true; },\n leave: node => { if (node.to < main.to)\n crossesNode = true; }\n });\n if (crossesNode)\n return false;\n view.dispatch({\n changes: [{ from: main.from, insert: \"[\" }, { from: main.to, insert: `](${link})` }],\n userEvent: \"input.paste\",\n scrollIntoView: true\n });\n return true;\n }\n});\n\nexport { commonmarkLanguage, deleteMarkupBackward, insertNewlineContinueMarkup, insertNewlineContinueMarkupCommand, markdown, markdownKeymap, markdownLanguage, pasteURLAsLink };\n"],"names":["data","defineLanguageFacet","headingProp","NodeProp","commonmark","parser","foldNodeProp","type","isHeading","isList","tree","state","indentNodeProp","languageDataProp","match","findSectionEnd","headerNode","level","last","next","heading","headerIndent","foldService","start","end","node","syntaxTree","upto","mkLang","Language","commonmarkLanguage","extended","GFM","Subscript","Superscript","Emoji","markdownLanguage","getCodeParser","languages","defaultLanguage","info","found","LanguageDescription","ParseContext","Context","from","to","spaceBefore","spaceAfter","item","maxWidth","trailing","result","i","doc","add","number","itemNumber","getContext","nodes","context","cur","line","startPos","after","len","renumberList","changes","offset","prev","m","normalizeIndent","content","blank","indentUnit","col","countColumn","space","insertNewlineContinueMarkupCommand","config","dispatch","dont","range","pos","inner","emptyLine","first","second","delTo","insert","EditorSelection","blankLine","prevLine","quoted","continued","e","nonTightList","insertNewlineContinueMarkup","isMark","line1","line2","empty","contextNodeForDelete","scan","deleteMarkupBackward","spaceEnd","markdownKeymap","htmlNoMatch","html","markdown","codeLanguages","defaultCodeLanguage","addKeymap","completeHTMLTags","pasteURL","htmlTagLanguage","MarkdownParser","extensions","support","defaultCode","pasteURLAsLink","LanguageSupport","codeParser","parseCode","Prec","keymap","lang","htmlTagCompletion","htmlTagCompletions","_tagCompletions","htmlCompletionSource","CompletionContext","EditorState","nonPlainText","EditorView","event","view","_a","main","link","crossesNode"],"mappings":";;;;;;;AAQA,MAAMA,IAAoB,gBAAAC,EAAoB,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,QAAQ,OAAO,MAAK,EAAE,EAAE,CAAE,GACpGC,IAA2B,oBAAIC,GAAQ,GACvCC,IAA0B,gBAAAC,GAAO,UAAU;AAAA,EAC7C,OAAO;AAAA,IACU,gBAAAC,EAAa,IAAI,CAAAC,MACnB,CAACA,EAAK,GAAG,OAAO,KAAKA,EAAK,GAAG,UAAU,KAAKC,EAAUD,CAAI,KAAK,QAAQE,GAAOF,CAAI,IAAI,SACvF,CAACG,GAAMC,OAAW,EAAE,MAAMA,EAAM,IAAI,OAAOD,EAAK,IAAI,EAAE,IAAI,IAAIA,EAAK,GAAE,EAC9E;AAAA,IACY,gBAAAR,EAAY,IAAIM,CAAS;AAAA,IACzB,gBAAAI,EAAe,IAAI;AAAA,MAC5B,UAAU,MAAM;AAAA,IAC5B,CAAS;AAAA,IACY,gBAAAC,EAAiB,IAAI;AAAA,MAC9B,UAAUb;AAAA,IACtB,CAAS;AAAA,EACT;AACA,CAAC;AACD,SAASQ,EAAUD,GAAM;AACrB,MAAIO,IAAQ,8BAA8B,KAAKP,EAAK,IAAI;AACx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O,CAAAnH,MAAQ;AAAE,QAAIA,EAAK,KAAKiH,EAAK,OAChCE,IAAc;AAAA,MAAM;AAAA,IACpC,CAAS,GACGA,IACO,MACXJ,EAAK,SAAS;AAAA,MACV,SAAS,CAAC,EAAE,MAAME,EAAK,MAAM,QAAQ,OAAO,EAAE,MAAMA,EAAK,IAAI,QAAQ,KAAKC,CAAI,KAAK;AAAA,MACnF,WAAW;AAAA,MACX,gBAAgB;AAAA,IAC5B,CAAS,GACM;AAAA,EACX;AACJ,CAAC;","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../../../@lezer/common/dist/index.cjs"),h=require("../../state/dist/index.cjs"),d=require("../../view/dist/index.cjs"),u=require("../../../@lezer/highlight/dist/index.cjs"),Q=require("../../../style-mod/src/style-mod.cjs");var H;const S=new p.NodeProp;function re(n){return h.Facet.define({combine:n?e=>e.concat(n):void 0})}const ie=new p.NodeProp;class k{constructor(e,t,r=[],i=""){this.data=e,this.name=i,h.EditorState.prototype.hasOwnProperty("tree")||Object.defineProperty(h.EditorState.prototype,"tree",{get(){return b(this)}}),this.parser=t,this.extension=[w.of(this),h.EditorState.languageData.of((o,s,l)=>{let a=X(o,s,l),f=a.type.prop(S);if(!f)return[];let c=o.facet(f),g=a.type.prop(ie);if(g){let y=a.resolve(s-a.from,l);for(let m of g)if(m.test(y,o)){let v=o.facet(m.facet);return m.type=="replace"?v:v.concat(c)}}return c})].concat(r)}isActiveAt(e,t,r=-1){return X(e,t,r).type.prop(S)==this.data}findRegions(e){let t=e.facet(w);if(t?.data==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let r=[],i=(o,s)=>{if(o.prop(S)==this.data){r.push({from:s,to:s+o.length});return}let l=o.prop(p.NodeProp.mounted);if(l){if(l.tree.prop(S)==this.data){if(l.overlay)for(let a of l.overlay)r.push({from:a.from+s,to:a.to+s});else r.push({from:s,to:s+o.length});return}else if(l.overlay){let a=r.length;if(i(l.tree,l.overlay[0].from+s),r.length>a)return}}for(let a=0;a<o.children.length;a++){let f=o.children[a];f instanceof p.Tree&&i(f,o.positions[a]+s)}};return i(b(e),0),r}get allowsNesting(){return!0}}k.setState=h.StateEffect.define();function X(n,e,t){let r=n.facet(w),i=b(n).topNode;if(!r||r.allowsNesting)for(let o=i;o;o=o.enter(e,t,p.IterMode.ExcludeBuffers))o.type.isTop&&(i=o);return i}class M extends k{constructor(e,t,r){super(e,t,[],r),this.parser=t}static define(e){let t=re(e.languageData);return new M(t,e.parser.configure({props:[S.add(r=>r.isTop?t:void 0)]}),e.name)}configure(e,t){return new M(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function b(n){let e=n.field(k.state,!1);return e?e.tree:p.Tree.empty}class oe{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let r=this.cursorPos-this.string.length;return e<r||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-r,t-r)}}let D=null;class I{constructor(e,t,r=[],i,o,s,l,a){this.parser=e,this.state=t,this.fragments=r,this.tree=i,this.treeLen=o,this.viewport=s,this.skipped=l,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,r){return new I(e,t,[],p.Tree.empty,0,r,[],null)}startParse(){return this.parser.startParse(new oe(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=p.Tree.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var r;if(typeof e=="number"){let i=Date.now()+e;e=()=>Date.now()>i}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let i=this.parse.advance();if(i)if(this.fragments=this.withoutTempSkipped(p.TreeFragment.addTree(i,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(r=this.parse.stoppedAt)!==null&&r!==void 0?r:this.state.doc.length,this.tree=i,this.parse=null,this.treeLen<(t??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(p.TreeFragment.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=D;D=this;try{return e()}finally{D=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=Y(e,t.from,t.to);return e}changes(e,t){let{fragments:r,tree:i,treeLen:o,viewport:s,skipped:l}=this;if(this.takeTree(),!e.empty){let a=[];if(e.iterChangedRanges((f,c,g,y)=>a.push({fromA:f,toA:c,fromB:g,toB:y})),r=p.TreeFragment.applyChanges(r,a),i=p.Tree.empty,o=0,s={from:e.mapPos(s.from,-1),to:e.mapPos(s.to,1)},this.skipped.length){l=[];for(let f of this.skipped){let c=e.mapPos(f.from,1),g=e.mapPos(f.to,-1);c<g&&l.push({from:c,to:g})}}}return new I(this.parser,t,r,i,o,s,l,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let r=0;r<this.skipped.length;r++){let{from:i,to:o}=this.skipped[r];i<e.to&&o>e.from&&(this.fragments=Y(this.fragments,i,o),this.skipped.splice(r--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends p.Parser{createParse(t,r,i){let o=i[0].from,s=i[i.length-1].to;return{parsedPos:o,advance(){let a=D;if(a){for(let f of i)a.tempSkipped.push(f);e&&(a.scheduleOn=a.scheduleOn?Promise.all([a.scheduleOn,e]):e)}return this.parsedPos=s,new p.Tree(p.NodeType.none,[],[],s-o)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return D}}function Y(n,e,t){return p.TreeFragment.applyChanges(n,[{fromA:e,toA:t,fromB:e,toB:t}])}class C{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),r=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,r)||t.takeTree(),new C(t)}static init(e){let t=Math.min(3e3,e.doc.length),r=I.create(e.facet(w).parser,e,{from:0,to:t});return r.work(20,t)||r.takeTree(),new C(r)}}k.state=h.StateField.define({create:C.init,update(n,e){for(let t of e.effects)if(t.is(k.setState))return t.value;return e.startState.facet(w)!=e.state.facet(w)?C.init(e.state):n.apply(e)}});let se=n=>{let e=setTimeout(()=>n(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(se=n=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(n,{timeout:400})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});const R=typeof navigator<"u"&&(!((H=navigator.scheduling)===null||H===void 0)&&H.isInputPending)?()=>navigator.scheduling.isInputPending():null,Fe=d.ViewPlugin.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(k.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(k.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=se(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:r,viewport:{to:i}}=this.view,o=r.field(k.state);if(o.tree==o.context.tree&&o.context.isDone(i+1e5))return;let s=Date.now()+Math.min(this.chunkBudget,100,e&&!R?Math.max(25,e.timeRemaining()-5):1e9),l=o.context.treeLen<i&&r.doc.length>i+1e3,a=o.context.work(()=>R&&R()||Date.now()>s,i+(l?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(o.context.takeTree(),this.view.dispatch({effects:k.setState.of(new C(o.context))})),this.chunkBudget>0&&!(a&&!l)&&this.scheduleWork(),this.checkAsyncSchedule(o.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>d.logException(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),w=h.Facet.define({combine(n){return n.length?n[0]:null},enables:n=>[k.state,Fe,d.EditorView.contentAttributes.compute([n],e=>{let t=e.facet(n);return t&&t.name?{"data-language":t.name}:{}})]});class Me{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}class G{constructor(e,t,r,i,o,s=void 0){this.name=e,this.alias=t,this.extensions=r,this.filename=i,this.loadFunc=o,this.support=s,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(e=>this.support=e,e=>{throw this.loading=null,e}))}static of(e){let{load:t,support:r}=e;if(!t){if(!r)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");t=()=>Promise.resolve(r)}return new G(e.name,(e.alias||[]).concat(e.name).map(i=>i.toLowerCase()),e.extensions||[],e.filename,t,r)}static matchFilename(e,t){for(let i of e)if(i.filename&&i.filename.test(t))return i;let r=/\.([^.]+)$/.exec(t);if(r){for(let i of e)if(i.extensions.indexOf(r[1])>-1)return i}return null}static matchLanguageName(e,t,r=!0){t=t.toLowerCase();for(let i of e)if(i.alias.some(o=>o==t))return i;if(r)for(let i of e)for(let o of i.alias){let s=t.indexOf(o);if(s>-1&&(o.length>2||!/\w/.test(t[s-1])&&!/\w/.test(t[s+o.length])))return i}return null}}const ae=h.Facet.define(),z=h.Facet.define({combine:n=>{if(!n.length)return" ";let e=n[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(n[0]));return e}});function le(n){let e=n.facet(z);return e.charCodeAt(0)==9?n.tabSize*e.length:e.length}function fe(n,e){let t="",r=n.tabSize,i=n.facet(z)[0];if(i==" "){for(;e>=r;)t+=" ",e-=r;i=" "}for(let o=0;o<e;o++)t+=i;return t}function ce(n,e){n instanceof h.EditorState&&(n=new J(n));for(let r of n.state.facet(ae)){let i=r(n,e);if(i!==void 0)return i}let t=b(n.state);return t.length>=e?Oe(n,t,e):null}class J{constructor(e,t={}){this.state=e,this.options=t,this.unit=le(e)}lineAt(e,t=1){let r=this.state.doc.lineAt(e),{simulateBreak:i,simulateDoubleBreak:o}=this.options;return i!=null&&i>=r.from&&i<=r.to?o&&i==e?{text:"",from:e}:(t<0?i<e:i<=e)?{text:r.text.slice(i-r.from),from:i}:{text:r.text.slice(0,i-r.from),from:r.from}:r}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:r,from:i}=this.lineAt(e,t);return r.slice(e-i,Math.min(r.length,e+100-i))}column(e,t=1){let{text:r,from:i}=this.lineAt(e,t),o=this.countColumn(r,e-i),s=this.options.overrideIndentation?this.options.overrideIndentation(i):-1;return s>-1&&(o+=s-this.countColumn(r,r.search(/\S|$/))),o}countColumn(e,t=e.length){return h.countColumn(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:r,from:i}=this.lineAt(e,t),o=this.options.overrideIndentation;if(o){let s=o(i);if(s>-1)return s}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const ue=new p.NodeProp;function Oe(n,e,t){let r=e.resolveStack(t),i=e.resolveInner(t,-1).resolve(t,0).enterUnfinishedNodesBefore(t);if(i!=r.node){let o=[];for(let s=i;s&&!(s.from<r.node.from||s.to>r.node.to||s.from==r.node.from&&s.type==r.node.type);s=s.parent)o.push(s);for(let s=o.length-1;s>=0;s--)r={node:o[s],next:r}}return de(r,n,t)}function de(n,e,t){for(let r=n;r;r=r.next){let i=Le(r.node);if(i)return i(B.create(e,t,r))}return 0}function Be(n){return n.pos==n.options.simulateBreak&&n.options.simulateDoubleBreak}function Le(n){let e=n.type.prop(ue);if(e)return e;let t=n.firstChild,r;if(t&&(r=t.type.prop(p.NodeProp.closedBy))){let i=n.lastChild,o=i&&r.indexOf(i.name)>-1;return s=>he(s,!0,1,void 0,o&&!Be(s)?i.from:void 0)}return n.parent==null?He:null}function He(){return 0}class B extends J{constructor(e,t,r){super(e.state,e.options),this.base=e,this.pos=t,this.context=r}get node(){return this.context.node}static create(e,t,r){return new B(e,t,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let r=e.resolve(t.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(Re(r,e))break;t=this.state.doc.lineAt(r.from)}return this.lineIndent(t.from)}continue(){return de(this.context.next,this.base,this.pos)}}function Re(n,e){for(let t=e;t;t=t.parent)if(n==t)return!0;return!1}function We(n){let e=n.node,t=e.childAfter(e.from),r=e.lastChild;if(!t)return null;let i=n.options.simulateBreak,o=n.state.doc.lineAt(t.from),s=i==null||i<=o.from?o.to:Math.min(o.to,i);for(let l=t.to;;){let a=e.childAfter(l);if(!a||a==r)return null;if(!a.type.isSkipped){if(a.from>=s)return null;let f=/^ */.exec(o.text.slice(t.to-o.from))[0].length;return{from:t.from,to:t.to+f}}l=a.to}}function Ue({closing:n,align:e=!0,units:t=1}){return r=>he(r,e,t,n)}function he(n,e,t,r,i){let o=n.textAfter,s=o.match(/^\s*/)[0].length,l=r&&o.slice(s,s+r.length)==r||i==n.pos+s,a=e?We(n):null;return a?l?n.column(a.from):n.column(a.to):n.baseIndent+(l?0:n.unit*t)}const Ve=n=>n.baseIndent;function $e({except:n,units:e=1}={}){return t=>{let r=n&&n.test(t.textAfter);return t.baseIndent+(r?0:e*t.unit)}}const qe=200;function je(){return h.EditorState.transactionFilter.of(n=>{if(!n.docChanged||!n.isUserEvent("input.type")&&!n.isUserEvent("input.complete"))return n;let e=n.startState.languageDataAt("indentOnInput",n.startState.selection.main.head);if(!e.length)return n;let t=n.newDoc,{head:r}=n.newSelection.main,i=t.lineAt(r);if(r>i.from+qe)return n;let o=t.sliceString(i.from,r);if(!e.some(f=>f.test(o)))return n;let{state:s}=n,l=-1,a=[];for(let{head:f}of s.selection.ranges){let c=s.doc.lineAt(f);if(c.from==l)continue;l=c.from;let g=ce(s,c.from);if(g==null)continue;let y=/^\s*/.exec(c.text)[0],m=fe(s,g);y!=m&&a.push({from:c.from,to:c.from+y.length,insert:m})}return a.length?[n,{changes:a,sequential:!0}]:n})}const ge=h.Facet.define(),pe=new p.NodeProp;function Ge(n){let e=n.firstChild,t=n.lastChild;return e&&e.to<t.from?{from:e.to,to:t.type.isError?n.to:t.from}:null}function ze(n,e,t){let r=b(n);if(r.length<t)return null;let i=r.resolveStack(t,1),o=null;for(let s=i;s;s=s.next){let l=s.node;if(l.to<=t||l.from>t)continue;if(o&&l.from<e)break;let a=l.type.prop(pe);if(a&&(l.to<r.length-50||r.length==n.doc.length||!Je(l))){let f=a(l,n);f&&f.from<=t&&f.from>=e&&f.to>t&&(o=f)}}return o}function Je(n){let e=n.lastChild;return e&&e.to==n.to&&e.type.isError}function N(n,e,t){for(let r of n.facet(ge)){let i=r(n,e,t);if(i)return i}return ze(n,e,t)}function me(n,e){let t=e.mapPos(n.from,1),r=e.mapPos(n.to,-1);return t>=r?void 0:{from:t,to:r}}const E=h.StateEffect.define({map:me}),P=h.StateEffect.define({map:me});function ke(n){let e=[];for(let{head:t}of n.state.selection.ranges)e.some(r=>r.from<=t&&r.to>=t)||e.push(n.lineBlockAt(t));return e}const x=h.StateField.define({create(){return d.Decoration.none},update(n,e){e.isUserEvent("delete")&&e.changes.iterChangedRanges((t,r)=>n=Z(n,t,r)),n=n.map(e.changes);for(let t of e.effects)if(t.is(E)&&!Ke(n,t.value.from,t.value.to)){let{preparePlaceholder:r}=e.state.facet(Te),i=r?d.Decoration.replace({widget:new Ye(r(e.state,t.value))}):_;n=n.update({add:[i.range(t.value.from,t.value.to)]})}else t.is(P)&&(n=n.update({filter:(r,i)=>t.value.from!=r||t.value.to!=i,filterFrom:t.value.from,filterTo:t.value.to}));return e.selection&&(n=Z(n,e.selection.main.head)),n},provide:n=>d.EditorView.decorations.from(n),toJSON(n,e){let t=[];return n.between(0,e.doc.length,(r,i)=>{t.push(r,i)}),t},fromJSON(n){if(!Array.isArray(n)||n.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let t=0;t<n.length;){let r=n[t++],i=n[t++];if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid JSON for fold state");e.push(_.range(r,i))}return d.Decoration.set(e,!0)}});function Z(n,e,t=e){let r=!1;return n.between(e,t,(i,o)=>{i<t&&o>e&&(r=!0)}),r?n.update({filterFrom:e,filterTo:t,filter:(i,o)=>i>=t||o<=e}):n}function O(n,e,t){var r;let i=null;return(r=n.field(x,!1))===null||r===void 0||r.between(e,t,(o,s)=>{(!i||i.from>o)&&(i={from:o,to:s})}),i}function Ke(n,e,t){let r=!1;return n.between(e,e,(i,o)=>{i==e&&o==t&&(r=!0)}),r}function ye(n,e){return n.field(x,!1)?e:e.concat(h.StateEffect.appendConfig.of(K()))}const be=n=>{for(let e of ke(n)){let t=N(n.state,e.from,e.to);if(t)return n.dispatch({effects:ye(n.state,[E.of(t),xe(n,t)])}),!0}return!1},we=n=>{if(!n.state.field(x,!1))return!1;let e=[];for(let t of ke(n)){let r=O(n.state,t.from,t.to);r&&e.push(P.of(r),xe(n,r,!1))}return e.length&&n.dispatch({effects:e}),e.length>0};function xe(n,e,t=!0){let r=n.state.doc.lineAt(e.from).number,i=n.state.doc.lineAt(e.to).number;return d.EditorView.announce.of(`${n.state.phrase(t?"Folded lines":"Unfolded lines")} ${r} ${n.state.phrase("to")} ${i}.`)}const Se=n=>{let{state:e}=n,t=[];for(let r=0;r<e.doc.length;){let i=n.lineBlockAt(r),o=N(e,i.from,i.to);o&&t.push(E.of(o)),r=(o?n.lineBlockAt(o.to):i).to+1}return t.length&&n.dispatch({effects:ye(n.state,t)}),!!t.length},ve=n=>{let e=n.state.field(x,!1);if(!e||!e.size)return!1;let t=[];return e.between(0,n.state.doc.length,(r,i)=>{t.push(P.of({from:r,to:i}))}),n.dispatch({effects:t}),!0},Qe=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:be},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:we},{key:"Ctrl-Alt-[",run:Se},{key:"Ctrl-Alt-]",run:ve}],Xe={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},Te=h.Facet.define({combine(n){return h.combineConfig(n,Xe)}});function K(n){return[x,et]}function Ce(n,e){let{state:t}=n,r=t.facet(Te),i=s=>{let l=n.lineBlockAt(n.posAtDOM(s.target)),a=O(n.state,l.from,l.to);a&&n.dispatch({effects:P.of(a)}),s.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(n,i,e);let o=document.createElement("span");return o.textContent=r.placeholderText,o.setAttribute("aria-label",t.phrase("folded code")),o.title=t.phrase("unfold"),o.className="cm-foldPlaceholder",o.onclick=i,o}const _=d.Decoration.replace({widget:new class extends d.WidgetType{toDOM(n){return Ce(n,null)}}});class Ye extends d.WidgetType{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return Ce(e,this.value)}}const Ze={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class W extends d.GutterMarker{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function _e(n={}){let e={...Ze,...n},t=new W(e,!0),r=new W(e,!1),i=d.ViewPlugin.fromClass(class{constructor(s){this.from=s.viewport.from,this.markers=this.buildMarkers(s)}update(s){(s.docChanged||s.viewportChanged||s.startState.facet(w)!=s.state.facet(w)||s.startState.field(x,!1)!=s.state.field(x,!1)||b(s.startState)!=b(s.state)||e.foldingChanged(s))&&(this.markers=this.buildMarkers(s.view))}buildMarkers(s){let l=new h.RangeSetBuilder;for(let a of s.viewportLineBlocks){let f=O(s.state,a.from,a.to)?r:N(s.state,a.from,a.to)?t:null;f&&l.add(a.from,a.from,f)}return l.finish()}}),{domEventHandlers:o}=e;return[i,d.gutter({class:"cm-foldGutter",markers(s){var l;return((l=s.plugin(i))===null||l===void 0?void 0:l.markers)||h.RangeSet.empty},initialSpacer(){return new W(e,!1)},domEventHandlers:{...o,click:(s,l,a)=>{if(o.click&&o.click(s,l,a))return!0;let f=O(s.state,l.from,l.to);if(f)return s.dispatch({effects:P.of(f)}),!0;let c=N(s.state,l.from,l.to);return c?(s.dispatch({effects:E.of(c)}),!0):!1}}}),K()]}const et=d.EditorView.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class F{constructor(e,t){this.specs=e;let r;function i(l){let a=Q.StyleModule.newName();return(r||(r=Object.create(null)))["."+a]=l,a}const o=typeof t.all=="string"?t.all:t.all?i(t.all):void 0,s=t.scope;this.scope=s instanceof k?l=>l.prop(S)==s.data:s?l=>l==s:void 0,this.style=u.tagHighlighter(e.map(l=>({tag:l.tag,class:l.class||i(Object.assign({},l,{tag:null}))})),{all:o}).style,this.module=r?new Q.StyleModule(r):null,this.themeType=t.themeType}static define(e,t){return new F(e,t||{})}}const $=h.Facet.define(),Pe=h.Facet.define({combine(n){return n.length?[n[0]]:null}});function U(n){let e=n.facet($);return e.length?e:n.facet(Pe)}function tt(n,e){let t=[rt],r;return n instanceof F&&(n.module&&t.push(d.EditorView.styleModule.of(n.module)),r=n.themeType),e?.fallback?t.push(Pe.of(n)):r?t.push($.computeN([d.EditorView.darkTheme],i=>i.facet(d.EditorView.darkTheme)==(r=="dark")?[n]:[])):t.push($.of(n)),t}class nt{constructor(e){this.markCache=Object.create(null),this.tree=b(e.state),this.decorations=this.buildDeco(e,U(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=b(e.state),r=U(e.state),i=r!=U(e.startState),{viewport:o}=e.view,s=e.changes.mapPos(this.decoratedTo,1);t.length<o.to&&!i&&t.type==this.tree.type&&s>=o.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=s):(t!=this.tree||e.viewportChanged||i)&&(this.tree=t,this.decorations=this.buildDeco(e.view,r),this.decoratedTo=o.to)}buildDeco(e,t){if(!t||!this.tree.length)return d.Decoration.none;let r=new h.RangeSetBuilder;for(let{from:i,to:o}of e.visibleRanges)u.highlightTree(this.tree,t,(s,l,a)=>{r.add(s,l,this.markCache[a]||(this.markCache[a]=d.Decoration.mark({class:a})))},i,o);return r.finish()}}const rt=h.Prec.high(d.ViewPlugin.fromClass(nt,{decorations:n=>n.decorations})),it=F.define([{tag:u.tags.meta,color:"#404740"},{tag:u.tags.link,textDecoration:"underline"},{tag:u.tags.heading,textDecoration:"underline",fontWeight:"bold"},{tag:u.tags.emphasis,fontStyle:"italic"},{tag:u.tags.strong,fontWeight:"bold"},{tag:u.tags.strikethrough,textDecoration:"line-through"},{tag:u.tags.keyword,color:"#708"},{tag:[u.tags.atom,u.tags.bool,u.tags.url,u.tags.contentSeparator,u.tags.labelName],color:"#219"},{tag:[u.tags.literal,u.tags.inserted],color:"#164"},{tag:[u.tags.string,u.tags.deleted],color:"#a11"},{tag:[u.tags.regexp,u.tags.escape,u.tags.special(u.tags.string)],color:"#e40"},{tag:u.tags.definition(u.tags.variableName),color:"#00f"},{tag:u.tags.local(u.tags.variableName),color:"#30a"},{tag:[u.tags.typeName,u.tags.namespace],color:"#085"},{tag:u.tags.className,color:"#167"},{tag:[u.tags.special(u.tags.variableName),u.tags.macroName],color:"#256"},{tag:u.tags.definition(u.tags.propertyName),color:"#00c"},{tag:u.tags.comment,color:"#940"},{tag:u.tags.invalid,color:"#f00"}]),ot=d.EditorView.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),De=1e4,Ae="()[]{}",Ie=h.Facet.define({combine(n){return h.combineConfig(n,{afterCursor:!0,brackets:Ae,maxScanDistance:De,renderMatch:lt})}}),st=d.Decoration.mark({class:"cm-matchingBracket"}),at=d.Decoration.mark({class:"cm-nonmatchingBracket"});function lt(n){let e=[],t=n.matched?st:at;return e.push(t.range(n.start.from,n.start.to)),n.end&&e.push(t.range(n.end.from,n.end.to)),e}const ft=h.StateField.define({create(){return d.Decoration.none},update(n,e){if(!e.docChanged&&!e.selection)return n;let t=[],r=e.state.facet(Ie);for(let i of e.state.selection.ranges){if(!i.empty)continue;let o=A(e.state,i.head,-1,r)||i.head>0&&A(e.state,i.head-1,1,r)||r.afterCursor&&(A(e.state,i.head,1,r)||i.head<e.state.doc.length&&A(e.state,i.head+1,-1,r));o&&(t=t.concat(r.renderMatch(o,e.state)))}return d.Decoration.set(t,!0)},provide:n=>d.EditorView.decorations.from(n)}),ct=[ft,ot];function ut(n={}){return[Ie.of(n),ct]}const Ne=new p.NodeProp;function q(n,e,t){let r=n.prop(e<0?p.NodeProp.openedBy:p.NodeProp.closedBy);if(r)return r;if(n.name.length==1){let i=t.indexOf(n.name);if(i>-1&&i%2==(e<0?1:0))return[t[i+e]]}return null}function j(n){let e=n.type.prop(Ne);return e?e(n.node):n}function A(n,e,t,r={}){let i=r.maxScanDistance||De,o=r.brackets||Ae,s=b(n),l=s.resolveInner(e,t);for(let a=l;a;a=a.parent){let f=q(a.type,t,o);if(f&&a.from<a.to){let c=j(a);if(c&&(t>0?e>=c.from&&e<c.to:e>c.from&&e<=c.to))return dt(n,e,t,a,c,f,o)}}return ht(n,e,t,s,l.type,i,o)}function dt(n,e,t,r,i,o,s){let l=r.parent,a={from:i.from,to:i.to},f=0,c=l?.cursor();if(c&&(t<0?c.childBefore(r.from):c.childAfter(r.to)))do if(t<0?c.to<=r.from:c.from>=r.to){if(f==0&&o.indexOf(c.type.name)>-1&&c.from<c.to){let g=j(c);return{start:a,end:g?{from:g.from,to:g.to}:void 0,matched:!0}}else if(q(c.type,t,s))f++;else if(q(c.type,-t,s)){if(f==0){let g=j(c);return{start:a,end:g&&g.from<g.to?{from:g.from,to:g.to}:void 0,matched:!1}}f--}}while(t<0?c.prevSibling():c.nextSibling());return{start:a,matched:!1}}function ht(n,e,t,r,i,o,s){let l=t<0?n.sliceDoc(e-1,e):n.sliceDoc(e,e+1),a=s.indexOf(l);if(a<0||a%2==0!=t>0)return null;let f={from:t<0?e-1:e,to:t>0?e+1:e},c=n.doc.iterRange(e,t>0?n.doc.length:0),g=0;for(let y=0;!c.next().done&&y<=o;){let m=c.value;t<0&&(y+=m.length);let v=e+y*t;for(let T=t>0?0:m.length-1,Ee=t>0?m.length:-1;T!=Ee;T+=t){let L=s.indexOf(m[T]);if(!(L<0||r.resolveInner(v+T,1).type!=i))if(L%2==0==t>0)g++;else{if(g==1)return{start:f,end:{from:v+T,to:v+T+1},matched:L>>1==a>>1};g--}}t>0&&(y+=m.length)}return c.done?{start:f,matched:!1}:null}const gt=Object.create(null),ee=[p.NodeType.none],te=[],ne=Object.create(null),pt=Object.create(null);for(let[n,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])pt[n]=mt(gt,e);function V(n,e){te.indexOf(n)>-1||(te.push(n),console.warn(e))}function mt(n,e){let t=[];for(let l of e.split(" ")){let a=[];for(let f of l.split(".")){let c=n[f]||u.tags[f];c?typeof c=="function"?a.length?a=a.map(c):V(f,`Modifier ${f} used at start of tag`):a.length?V(f,`Tag ${f} used as modifier`):a=Array.isArray(c)?c:[c]:V(f,`Unknown highlighting tag ${f}`)}for(let f of a)t.push(f)}if(!t.length)return 0;let r=e.replace(/ /g,"_"),i=r+" "+t.map(l=>l.id),o=ne[i];if(o)return o.id;let s=ne[i]=p.NodeType.define({id:ee.length,name:r,props:[u.styleTags({[r]:t})]});return ee.push(s),s.id}d.Direction.RTL,d.Direction.LTR;exports.DocInput=oe;exports.HighlightStyle=F;exports.IndentContext=J;exports.LRLanguage=M;exports.Language=k;exports.LanguageDescription=G;exports.LanguageSupport=Me;exports.ParseContext=I;exports.TreeIndentContext=B;exports.bracketMatching=ut;exports.bracketMatchingHandle=Ne;exports.codeFolding=K;exports.continuedIndent=$e;exports.defaultHighlightStyle=it;exports.defineLanguageFacet=re;exports.delimitedIndent=Ue;exports.flatIndent=Ve;exports.foldAll=Se;exports.foldCode=be;exports.foldEffect=E;exports.foldGutter=_e;exports.foldInside=Ge;exports.foldKeymap=Qe;exports.foldNodeProp=pe;exports.foldService=ge;exports.foldState=x;exports.foldable=N;exports.getIndentUnit=le;exports.getIndentation=ce;exports.indentNodeProp=ue;exports.indentOnInput=je;exports.indentService=ae;exports.indentString=fe;exports.indentUnit=z;exports.language=w;exports.languageDataProp=S;exports.matchBrackets=A;exports.sublanguageProp=ie;exports.syntaxHighlighting=tt;exports.syntaxTree=b;exports.unfoldAll=ve;exports.unfoldCode=we;exports.unfoldEffect=P;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../../../@lezer/common/dist/index.cjs"),h=require("../../state/dist/index.cjs"),d=require("../../view/dist/index.cjs"),u=require("../../../@lezer/highlight/dist/index.cjs"),Q=require("../../../style-mod/src/style-mod.cjs");var H;const S=new g.NodeProp;function ie(n){return h.Facet.define({combine:n?e=>e.concat(n):void 0})}const oe=new g.NodeProp;class k{constructor(e,t,r=[],i=""){this.data=e,this.name=i,h.EditorState.prototype.hasOwnProperty("tree")||Object.defineProperty(h.EditorState.prototype,"tree",{get(){return b(this)}}),this.parser=t,this.extension=[w.of(this),h.EditorState.languageData.of((o,s,l)=>{let a=X(o,s,l),f=a.type.prop(S);if(!f)return[];let c=o.facet(f),p=a.type.prop(oe);if(p){let y=a.resolve(s-a.from,l);for(let m of p)if(m.test(y,o)){let T=o.facet(m.facet);return m.type=="replace"?T:T.concat(c)}}return c})].concat(r)}isActiveAt(e,t,r=-1){return X(e,t,r).type.prop(S)==this.data}findRegions(e){let t=e.facet(w);if(t?.data==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let r=[],i=(o,s)=>{if(o.prop(S)==this.data){r.push({from:s,to:s+o.length});return}let l=o.prop(g.NodeProp.mounted);if(l){if(l.tree.prop(S)==this.data){if(l.overlay)for(let a of l.overlay)r.push({from:a.from+s,to:a.to+s});else r.push({from:s,to:s+o.length});return}else if(l.overlay){let a=r.length;if(i(l.tree,l.overlay[0].from+s),r.length>a)return}}for(let a=0;a<o.children.length;a++){let f=o.children[a];f instanceof g.Tree&&i(f,o.positions[a]+s)}};return i(b(e),0),r}get allowsNesting(){return!0}}k.setState=h.StateEffect.define();function X(n,e,t){let r=n.facet(w),i=b(n).topNode;if(!r||r.allowsNesting)for(let o=i;o;o=o.enter(e,t,g.IterMode.ExcludeBuffers|g.IterMode.EnterBracketed))o.type.isTop&&(i=o);return i}class F extends k{constructor(e,t,r){super(e,t,[],r),this.parser=t}static define(e){let t=ie(e.languageData);return new F(t,e.parser.configure({props:[S.add(r=>r.isTop?t:void 0)]}),e.name)}configure(e,t){return new F(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function b(n){let e=n.field(k.state,!1);return e?e.tree:g.Tree.empty}class se{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let r=this.cursorPos-this.string.length;return e<r||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-r,t-r)}}let D=null;class I{constructor(e,t,r=[],i,o,s,l,a){this.parser=e,this.state=t,this.fragments=r,this.tree=i,this.treeLen=o,this.viewport=s,this.skipped=l,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,r){return new I(e,t,[],g.Tree.empty,0,r,[],null)}startParse(){return this.parser.startParse(new se(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=g.Tree.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var r;if(typeof e=="number"){let i=Date.now()+e;e=()=>Date.now()>i}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let i=this.parse.advance();if(i)if(this.fragments=this.withoutTempSkipped(g.TreeFragment.addTree(i,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(r=this.parse.stoppedAt)!==null&&r!==void 0?r:this.state.doc.length,this.tree=i,this.parse=null,this.treeLen<(t??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(g.TreeFragment.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=D;D=this;try{return e()}finally{D=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=Y(e,t.from,t.to);return e}changes(e,t){let{fragments:r,tree:i,treeLen:o,viewport:s,skipped:l}=this;if(this.takeTree(),!e.empty){let a=[];if(e.iterChangedRanges((f,c,p,y)=>a.push({fromA:f,toA:c,fromB:p,toB:y})),r=g.TreeFragment.applyChanges(r,a),i=g.Tree.empty,o=0,s={from:e.mapPos(s.from,-1),to:e.mapPos(s.to,1)},this.skipped.length){l=[];for(let f of this.skipped){let c=e.mapPos(f.from,1),p=e.mapPos(f.to,-1);c<p&&l.push({from:c,to:p})}}}return new I(this.parser,t,r,i,o,s,l,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let r=0;r<this.skipped.length;r++){let{from:i,to:o}=this.skipped[r];i<e.to&&o>e.from&&(this.fragments=Y(this.fragments,i,o),this.skipped.splice(r--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends g.Parser{createParse(t,r,i){let o=i[0].from,s=i[i.length-1].to;return{parsedPos:o,advance(){let a=D;if(a){for(let f of i)a.tempSkipped.push(f);e&&(a.scheduleOn=a.scheduleOn?Promise.all([a.scheduleOn,e]):e)}return this.parsedPos=s,new g.Tree(g.NodeType.none,[],[],s-o)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return D}}function Y(n,e,t){return g.TreeFragment.applyChanges(n,[{fromA:e,toA:t,fromB:e,toB:t}])}class C{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),r=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,r)||t.takeTree(),new C(t)}static init(e){let t=Math.min(3e3,e.doc.length),r=I.create(e.facet(w).parser,e,{from:0,to:t});return r.work(20,t)||r.takeTree(),new C(r)}}k.state=h.StateField.define({create:C.init,update(n,e){for(let t of e.effects)if(t.is(k.setState))return t.value;return e.startState.facet(w)!=e.state.facet(w)?C.init(e.state):n.apply(e)}});let ae=n=>{let e=setTimeout(()=>n(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(ae=n=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(n,{timeout:400})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});const R=typeof navigator<"u"&&(!((H=navigator.scheduling)===null||H===void 0)&&H.isInputPending)?()=>navigator.scheduling.isInputPending():null,Fe=d.ViewPlugin.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(k.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(k.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=ae(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:r,viewport:{to:i}}=this.view,o=r.field(k.state);if(o.tree==o.context.tree&&o.context.isDone(i+1e5))return;let s=Date.now()+Math.min(this.chunkBudget,100,e&&!R?Math.max(25,e.timeRemaining()-5):1e9),l=o.context.treeLen<i&&r.doc.length>i+1e3,a=o.context.work(()=>R&&R()||Date.now()>s,i+(l?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(o.context.takeTree(),this.view.dispatch({effects:k.setState.of(new C(o.context))})),this.chunkBudget>0&&!(a&&!l)&&this.scheduleWork(),this.checkAsyncSchedule(o.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>d.logException(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),w=h.Facet.define({combine(n){return n.length?n[0]:null},enables:n=>[k.state,Fe,d.EditorView.contentAttributes.compute([n],e=>{let t=e.facet(n);return t&&t.name?{"data-language":t.name}:{}})]});class Oe{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}class G{constructor(e,t,r,i,o,s=void 0){this.name=e,this.alias=t,this.extensions=r,this.filename=i,this.loadFunc=o,this.support=s,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(e=>this.support=e,e=>{throw this.loading=null,e}))}static of(e){let{load:t,support:r}=e;if(!t){if(!r)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");t=()=>Promise.resolve(r)}return new G(e.name,(e.alias||[]).concat(e.name).map(i=>i.toLowerCase()),e.extensions||[],e.filename,t,r)}static matchFilename(e,t){for(let i of e)if(i.filename&&i.filename.test(t))return i;let r=/\.([^.]+)$/.exec(t);if(r){for(let i of e)if(i.extensions.indexOf(r[1])>-1)return i}return null}static matchLanguageName(e,t,r=!0){t=t.toLowerCase();for(let i of e)if(i.alias.some(o=>o==t))return i;if(r)for(let i of e)for(let o of i.alias){let s=t.indexOf(o);if(s>-1&&(o.length>2||!/\w/.test(t[s-1])&&!/\w/.test(t[s+o.length])))return i}return null}}const le=h.Facet.define(),z=h.Facet.define({combine:n=>{if(!n.length)return" ";let e=n[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(n[0]));return e}});function fe(n){let e=n.facet(z);return e.charCodeAt(0)==9?n.tabSize*e.length:e.length}function ce(n,e){let t="",r=n.tabSize,i=n.facet(z)[0];if(i==" "){for(;e>=r;)t+=" ",e-=r;i=" "}for(let o=0;o<e;o++)t+=i;return t}function ue(n,e){n instanceof h.EditorState&&(n=new J(n));for(let r of n.state.facet(le)){let i=r(n,e);if(i!==void 0)return i}let t=b(n.state);return t.length>=e?Be(n,t,e):null}class J{constructor(e,t={}){this.state=e,this.options=t,this.unit=fe(e)}lineAt(e,t=1){let r=this.state.doc.lineAt(e),{simulateBreak:i,simulateDoubleBreak:o}=this.options;return i!=null&&i>=r.from&&i<=r.to?o&&i==e?{text:"",from:e}:(t<0?i<e:i<=e)?{text:r.text.slice(i-r.from),from:i}:{text:r.text.slice(0,i-r.from),from:r.from}:r}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:r,from:i}=this.lineAt(e,t);return r.slice(e-i,Math.min(r.length,e+100-i))}column(e,t=1){let{text:r,from:i}=this.lineAt(e,t),o=this.countColumn(r,e-i),s=this.options.overrideIndentation?this.options.overrideIndentation(i):-1;return s>-1&&(o+=s-this.countColumn(r,r.search(/\S|$/))),o}countColumn(e,t=e.length){return h.countColumn(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:r,from:i}=this.lineAt(e,t),o=this.options.overrideIndentation;if(o){let s=o(i);if(s>-1)return s}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const de=new g.NodeProp;function Be(n,e,t){let r=e.resolveStack(t),i=e.resolveInner(t,-1).resolve(t,0).enterUnfinishedNodesBefore(t);if(i!=r.node){let o=[];for(let s=i;s&&!(s.from<r.node.from||s.to>r.node.to||s.from==r.node.from&&s.type==r.node.type);s=s.parent)o.push(s);for(let s=o.length-1;s>=0;s--)r={node:o[s],next:r}}return he(r,n,t)}function he(n,e,t){for(let r=n;r;r=r.next){let i=He(r.node);if(i)return i(B.create(e,t,r))}return 0}function Le(n){return n.pos==n.options.simulateBreak&&n.options.simulateDoubleBreak}function He(n){let e=n.type.prop(de);if(e)return e;let t=n.firstChild,r;if(t&&(r=t.type.prop(g.NodeProp.closedBy))){let i=n.lastChild,o=i&&r.indexOf(i.name)>-1;return s=>ge(s,!0,1,void 0,o&&!Le(s)?i.from:void 0)}return n.parent==null?Re:null}function Re(){return 0}class B extends J{constructor(e,t,r){super(e.state,e.options),this.base=e,this.pos=t,this.context=r}get node(){return this.context.node}static create(e,t,r){return new B(e,t,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let r=e.resolve(t.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(We(r,e))break;t=this.state.doc.lineAt(r.from)}return this.lineIndent(t.from)}continue(){return he(this.context.next,this.base,this.pos)}}function We(n,e){for(let t=e;t;t=t.parent)if(n==t)return!0;return!1}function Ue(n){let e=n.node,t=e.childAfter(e.from),r=e.lastChild;if(!t)return null;let i=n.options.simulateBreak,o=n.state.doc.lineAt(t.from),s=i==null||i<=o.from?o.to:Math.min(o.to,i);for(let l=t.to;;){let a=e.childAfter(l);if(!a||a==r)return null;if(!a.type.isSkipped){if(a.from>=s)return null;let f=/^ */.exec(o.text.slice(t.to-o.from))[0].length;return{from:t.from,to:t.to+f}}l=a.to}}function Ve({closing:n,align:e=!0,units:t=1}){return r=>ge(r,e,t,n)}function ge(n,e,t,r,i){let o=n.textAfter,s=o.match(/^\s*/)[0].length,l=r&&o.slice(s,s+r.length)==r||i==n.pos+s,a=e?Ue(n):null;return a?l?n.column(a.from):n.column(a.to):n.baseIndent+(l?0:n.unit*t)}const $e=n=>n.baseIndent;function qe({except:n,units:e=1}={}){return t=>{let r=n&&n.test(t.textAfter);return t.baseIndent+(r?0:e*t.unit)}}const je=200;function Ge(){return h.EditorState.transactionFilter.of(n=>{if(!n.docChanged||!n.isUserEvent("input.type")&&!n.isUserEvent("input.complete"))return n;let e=n.startState.languageDataAt("indentOnInput",n.startState.selection.main.head);if(!e.length)return n;let t=n.newDoc,{head:r}=n.newSelection.main,i=t.lineAt(r);if(r>i.from+je)return n;let o=t.sliceString(i.from,r);if(!e.some(f=>f.test(o)))return n;let{state:s}=n,l=-1,a=[];for(let{head:f}of s.selection.ranges){let c=s.doc.lineAt(f);if(c.from==l)continue;l=c.from;let p=ue(s,c.from);if(p==null)continue;let y=/^\s*/.exec(c.text)[0],m=ce(s,p);y!=m&&a.push({from:c.from,to:c.from+y.length,insert:m})}return a.length?[n,{changes:a,sequential:!0}]:n})}const pe=h.Facet.define(),me=new g.NodeProp;function ze(n){let e=n.firstChild,t=n.lastChild;return e&&e.to<t.from?{from:e.to,to:t.type.isError?n.to:t.from}:null}function Je(n,e,t){let r=b(n);if(r.length<t)return null;let i=r.resolveStack(t,1),o=null;for(let s=i;s;s=s.next){let l=s.node;if(l.to<=t||l.from>t)continue;if(o&&l.from<e)break;let a=l.type.prop(me);if(a&&(l.to<r.length-50||r.length==n.doc.length||!Ke(l))){let f=a(l,n);f&&f.from<=t&&f.from>=e&&f.to>t&&(o=f)}}return o}function Ke(n){let e=n.lastChild;return e&&e.to==n.to&&e.type.isError}function N(n,e,t){for(let r of n.facet(pe)){let i=r(n,e,t);if(i)return i}return Je(n,e,t)}function ke(n,e){let t=e.mapPos(n.from,1),r=e.mapPos(n.to,-1);return t>=r?void 0:{from:t,to:r}}const M=h.StateEffect.define({map:ke}),P=h.StateEffect.define({map:ke});function ye(n){let e=[];for(let{head:t}of n.state.selection.ranges)e.some(r=>r.from<=t&&r.to>=t)||e.push(n.lineBlockAt(t));return e}const x=h.StateField.define({create(){return d.Decoration.none},update(n,e){e.isUserEvent("delete")&&e.changes.iterChangedRanges((r,i)=>n=Z(n,r,i)),n=n.map(e.changes);let t=[];for(let r of e.effects)r.is(M)&&!Qe(n,r.value.from,r.value.to)?t.push(r.value):r.is(P)&&(n=n.update({filter:(i,o)=>r.value.from!=i||r.value.to!=o,filterFrom:r.value.from,filterTo:r.value.to}));if(t.length){let{preparePlaceholder:r}=e.state.facet(Ce),i=t.map(o=>(r?d.Decoration.replace({widget:new Ze(r(e.state,o))}):_).range(o.from,o.to));n=n.update({add:i})}return e.selection&&(n=Z(n,e.selection.main.head)),n},provide:n=>d.EditorView.decorations.from(n),toJSON(n,e){let t=[];return n.between(0,e.doc.length,(r,i)=>{t.push(r,i)}),t},fromJSON(n){if(!Array.isArray(n)||n.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let t=0;t<n.length;){let r=n[t++],i=n[t++];if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid JSON for fold state");e.push(_.range(r,i))}return d.Decoration.set(e,!0)}});function Z(n,e,t=e){let r=!1;return n.between(e,t,(i,o)=>{i<t&&o>e&&(r=!0)}),r?n.update({filterFrom:e,filterTo:t,filter:(i,o)=>i>=t||o<=e}):n}function O(n,e,t){var r;let i=null;return(r=n.field(x,!1))===null||r===void 0||r.between(e,t,(o,s)=>{(!i||i.from>o)&&(i={from:o,to:s})}),i}function Qe(n,e,t){let r=!1;return n.between(e,e,(i,o)=>{i==e&&o==t&&(r=!0)}),r}function be(n,e){return n.field(x,!1)?e:e.concat(h.StateEffect.appendConfig.of(K()))}const we=n=>{for(let e of ye(n)){let t=N(n.state,e.from,e.to);if(t)return n.dispatch({effects:be(n.state,[M.of(t),Se(n,t)])}),!0}return!1},xe=n=>{if(!n.state.field(x,!1))return!1;let e=[];for(let t of ye(n)){let r=O(n.state,t.from,t.to);r&&e.push(P.of(r),Se(n,r,!1))}return e.length&&n.dispatch({effects:e}),e.length>0};function Se(n,e,t=!0){let r=n.state.doc.lineAt(e.from).number,i=n.state.doc.lineAt(e.to).number;return d.EditorView.announce.of(`${n.state.phrase(t?"Folded lines":"Unfolded lines")} ${r} ${n.state.phrase("to")} ${i}.`)}const Te=n=>{let{state:e}=n,t=[];for(let r=0;r<e.doc.length;){let i=n.lineBlockAt(r),o=N(e,i.from,i.to);o&&t.push(M.of(o)),r=(o?n.lineBlockAt(o.to):i).to+1}return t.length&&n.dispatch({effects:be(n.state,t)}),!!t.length},ve=n=>{let e=n.state.field(x,!1);if(!e||!e.size)return!1;let t=[];return e.between(0,n.state.doc.length,(r,i)=>{t.push(P.of({from:r,to:i}))}),n.dispatch({effects:t}),!0},Xe=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:we},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:xe},{key:"Ctrl-Alt-[",run:Te},{key:"Ctrl-Alt-]",run:ve}],Ye={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},Ce=h.Facet.define({combine(n){return h.combineConfig(n,Ye)}});function K(n){return[x,tt]}function Pe(n,e){let{state:t}=n,r=t.facet(Ce),i=s=>{let l=n.lineBlockAt(n.posAtDOM(s.target)),a=O(n.state,l.from,l.to);a&&n.dispatch({effects:P.of(a)}),s.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(n,i,e);let o=document.createElement("span");return o.textContent=r.placeholderText,o.setAttribute("aria-label",t.phrase("folded code")),o.title=t.phrase("unfold"),o.className="cm-foldPlaceholder",o.onclick=i,o}const _=d.Decoration.replace({widget:new class extends d.WidgetType{toDOM(n){return Pe(n,null)}}});class Ze extends d.WidgetType{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return Pe(e,this.value)}}const _e={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class W extends d.GutterMarker{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function et(n={}){let e={..._e,...n},t=new W(e,!0),r=new W(e,!1),i=d.ViewPlugin.fromClass(class{constructor(s){this.from=s.viewport.from,this.markers=this.buildMarkers(s)}update(s){(s.docChanged||s.viewportChanged||s.startState.facet(w)!=s.state.facet(w)||s.startState.field(x,!1)!=s.state.field(x,!1)||b(s.startState)!=b(s.state)||e.foldingChanged(s))&&(this.markers=this.buildMarkers(s.view))}buildMarkers(s){let l=new h.RangeSetBuilder;for(let a of s.viewportLineBlocks){let f=O(s.state,a.from,a.to)?r:N(s.state,a.from,a.to)?t:null;f&&l.add(a.from,a.from,f)}return l.finish()}}),{domEventHandlers:o}=e;return[i,d.gutter({class:"cm-foldGutter",markers(s){var l;return((l=s.plugin(i))===null||l===void 0?void 0:l.markers)||h.RangeSet.empty},initialSpacer(){return new W(e,!1)},domEventHandlers:{...o,click:(s,l,a)=>{if(o.click&&o.click(s,l,a))return!0;let f=O(s.state,l.from,l.to);if(f)return s.dispatch({effects:P.of(f)}),!0;let c=N(s.state,l.from,l.to);return c?(s.dispatch({effects:M.of(c)}),!0):!1}}}),K()]}const tt=d.EditorView.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class E{constructor(e,t){this.specs=e;let r;function i(l){let a=Q.StyleModule.newName();return(r||(r=Object.create(null)))["."+a]=l,a}const o=typeof t.all=="string"?t.all:t.all?i(t.all):void 0,s=t.scope;this.scope=s instanceof k?l=>l.prop(S)==s.data:s?l=>l==s:void 0,this.style=u.tagHighlighter(e.map(l=>({tag:l.tag,class:l.class||i(Object.assign({},l,{tag:null}))})),{all:o}).style,this.module=r?new Q.StyleModule(r):null,this.themeType=t.themeType}static define(e,t){return new E(e,t||{})}}const $=h.Facet.define(),De=h.Facet.define({combine(n){return n.length?[n[0]]:null}});function U(n){let e=n.facet($);return e.length?e:n.facet(De)}function nt(n,e){let t=[it],r;return n instanceof E&&(n.module&&t.push(d.EditorView.styleModule.of(n.module)),r=n.themeType),e?.fallback?t.push(De.of(n)):r?t.push($.computeN([d.EditorView.darkTheme],i=>i.facet(d.EditorView.darkTheme)==(r=="dark")?[n]:[])):t.push($.of(n)),t}class rt{constructor(e){this.markCache=Object.create(null),this.tree=b(e.state),this.decorations=this.buildDeco(e,U(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=b(e.state),r=U(e.state),i=r!=U(e.startState),{viewport:o}=e.view,s=e.changes.mapPos(this.decoratedTo,1);t.length<o.to&&!i&&t.type==this.tree.type&&s>=o.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=s):(t!=this.tree||e.viewportChanged||i)&&(this.tree=t,this.decorations=this.buildDeco(e.view,r),this.decoratedTo=o.to)}buildDeco(e,t){if(!t||!this.tree.length)return d.Decoration.none;let r=new h.RangeSetBuilder;for(let{from:i,to:o}of e.visibleRanges)u.highlightTree(this.tree,t,(s,l,a)=>{r.add(s,l,this.markCache[a]||(this.markCache[a]=d.Decoration.mark({class:a})))},i,o);return r.finish()}}const it=h.Prec.high(d.ViewPlugin.fromClass(rt,{decorations:n=>n.decorations})),ot=E.define([{tag:u.tags.meta,color:"#404740"},{tag:u.tags.link,textDecoration:"underline"},{tag:u.tags.heading,textDecoration:"underline",fontWeight:"bold"},{tag:u.tags.emphasis,fontStyle:"italic"},{tag:u.tags.strong,fontWeight:"bold"},{tag:u.tags.strikethrough,textDecoration:"line-through"},{tag:u.tags.keyword,color:"#708"},{tag:[u.tags.atom,u.tags.bool,u.tags.url,u.tags.contentSeparator,u.tags.labelName],color:"#219"},{tag:[u.tags.literal,u.tags.inserted],color:"#164"},{tag:[u.tags.string,u.tags.deleted],color:"#a11"},{tag:[u.tags.regexp,u.tags.escape,u.tags.special(u.tags.string)],color:"#e40"},{tag:u.tags.definition(u.tags.variableName),color:"#00f"},{tag:u.tags.local(u.tags.variableName),color:"#30a"},{tag:[u.tags.typeName,u.tags.namespace],color:"#085"},{tag:u.tags.className,color:"#167"},{tag:[u.tags.special(u.tags.variableName),u.tags.macroName],color:"#256"},{tag:u.tags.definition(u.tags.propertyName),color:"#00c"},{tag:u.tags.comment,color:"#940"},{tag:u.tags.invalid,color:"#f00"}]),st=d.EditorView.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Ae=1e4,Ie="()[]{}",Ne=h.Facet.define({combine(n){return h.combineConfig(n,{afterCursor:!0,brackets:Ie,maxScanDistance:Ae,renderMatch:ft})}}),at=d.Decoration.mark({class:"cm-matchingBracket"}),lt=d.Decoration.mark({class:"cm-nonmatchingBracket"});function ft(n){let e=[],t=n.matched?at:lt;return e.push(t.range(n.start.from,n.start.to)),n.end&&e.push(t.range(n.end.from,n.end.to)),e}function ee(n){let e=[],t=n.facet(Ne);for(let r of n.selection.ranges){if(!r.empty)continue;let i=A(n,r.head,-1,t)||r.head>0&&A(n,r.head-1,1,t)||t.afterCursor&&(A(n,r.head,1,t)||r.head<n.doc.length&&A(n,r.head+1,-1,t));i&&(e=e.concat(t.renderMatch(i,n)))}return d.Decoration.set(e,!0)}const ct=d.ViewPlugin.fromClass(class{constructor(n){this.paused=!1,this.decorations=ee(n.state)}update(n){(n.docChanged||n.selectionSet||this.paused)&&(n.view.composing?(this.decorations=this.decorations.map(n.changes),this.paused=!0):(this.decorations=ee(n.state),this.paused=!1))}},{decorations:n=>n.decorations}),ut=[ct,st];function dt(n={}){return[Ne.of(n),ut]}const Me=new g.NodeProp;function q(n,e,t){let r=n.prop(e<0?g.NodeProp.openedBy:g.NodeProp.closedBy);if(r)return r;if(n.name.length==1){let i=t.indexOf(n.name);if(i>-1&&i%2==(e<0?1:0))return[t[i+e]]}return null}function j(n){let e=n.type.prop(Me);return e?e(n.node):n}function A(n,e,t,r={}){let i=r.maxScanDistance||Ae,o=r.brackets||Ie,s=b(n),l=s.resolveInner(e,t);for(let a=l;a;a=a.parent){let f=q(a.type,t,o);if(f&&a.from<a.to){let c=j(a);if(c&&(t>0?e>=c.from&&e<c.to:e>c.from&&e<=c.to))return ht(n,e,t,a,c,f,o)}}return gt(n,e,t,s,l.type,i,o)}function ht(n,e,t,r,i,o,s){let l=r.parent,a={from:i.from,to:i.to},f=0,c=l?.cursor();if(c&&(t<0?c.childBefore(r.from):c.childAfter(r.to)))do if(t<0?c.to<=r.from:c.from>=r.to){if(f==0&&o.indexOf(c.type.name)>-1&&c.from<c.to){let p=j(c);return{start:a,end:p?{from:p.from,to:p.to}:void 0,matched:!0}}else if(q(c.type,t,s))f++;else if(q(c.type,-t,s)){if(f==0){let p=j(c);return{start:a,end:p&&p.from<p.to?{from:p.from,to:p.to}:void 0,matched:!1}}f--}}while(t<0?c.prevSibling():c.nextSibling());return{start:a,matched:!1}}function gt(n,e,t,r,i,o,s){if(t<0?!e:e==n.doc.length)return null;let l=t<0?n.sliceDoc(e-1,e):n.sliceDoc(e,e+1),a=s.indexOf(l);if(a<0||a%2==0!=t>0)return null;let f={from:t<0?e-1:e,to:t>0?e+1:e},c=n.doc.iterRange(e,t>0?n.doc.length:0),p=0;for(let y=0;!c.next().done&&y<=o;){let m=c.value;t<0&&(y+=m.length);let T=e+y*t;for(let v=t>0?0:m.length-1,Ee=t>0?m.length:-1;v!=Ee;v+=t){let L=s.indexOf(m[v]);if(!(L<0||r.resolveInner(T+v,1).type!=i))if(L%2==0==t>0)p++;else{if(p==1)return{start:f,end:{from:T+v,to:T+v+1},matched:L>>1==a>>1};p--}}t>0&&(y+=m.length)}return c.done?{start:f,matched:!1}:null}const pt=Object.create(null),te=[g.NodeType.none],ne=[],re=Object.create(null),mt=Object.create(null);for(let[n,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])mt[n]=kt(pt,e);function V(n,e){ne.indexOf(n)>-1||(ne.push(n),console.warn(e))}function kt(n,e){let t=[];for(let l of e.split(" ")){let a=[];for(let f of l.split(".")){let c=n[f]||u.tags[f];c?typeof c=="function"?a.length?a=a.map(c):V(f,`Modifier ${f} used at start of tag`):a.length?V(f,`Tag ${f} used as modifier`):a=Array.isArray(c)?c:[c]:V(f,`Unknown highlighting tag ${f}`)}for(let f of a)t.push(f)}if(!t.length)return 0;let r=e.replace(/ /g,"_"),i=r+" "+t.map(l=>l.id),o=re[i];if(o)return o.id;let s=re[i]=g.NodeType.define({id:te.length,name:r,props:[u.styleTags({[r]:t})]});return te.push(s),s.id}d.Direction.RTL,d.Direction.LTR;exports.DocInput=se;exports.HighlightStyle=E;exports.IndentContext=J;exports.LRLanguage=F;exports.Language=k;exports.LanguageDescription=G;exports.LanguageSupport=Oe;exports.ParseContext=I;exports.TreeIndentContext=B;exports.bracketMatching=dt;exports.bracketMatchingHandle=Me;exports.codeFolding=K;exports.continuedIndent=qe;exports.defaultHighlightStyle=ot;exports.defineLanguageFacet=ie;exports.delimitedIndent=Ve;exports.flatIndent=$e;exports.foldAll=Te;exports.foldCode=we;exports.foldEffect=M;exports.foldGutter=et;exports.foldInside=ze;exports.foldKeymap=Xe;exports.foldNodeProp=me;exports.foldService=pe;exports.foldState=x;exports.foldable=N;exports.getIndentUnit=fe;exports.getIndentation=ue;exports.indentNodeProp=de;exports.indentOnInput=Ge;exports.indentService=le;exports.indentString=ce;exports.indentUnit=z;exports.language=w;exports.languageDataProp=S;exports.matchBrackets=A;exports.sublanguageProp=oe;exports.syntaxHighlighting=nt;exports.syntaxTree=b;exports.unfoldAll=ve;exports.unfoldCode=xe;exports.unfoldEffect=P;
2
2
  //# sourceMappingURL=index.cjs.map