@vc-shell/framework 2.0.0-alpha.2 → 2.0.0-alpha.3

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 (290) hide show
  1. package/dist/assets/042c75b764bc78a7.svg +1 -0
  2. package/dist/assets/0ba156439a339f2a.svg +1 -0
  3. package/dist/assets/0be560bfb22d0e72.woff2 +0 -0
  4. package/dist/assets/0d67e9e056b4c500.woff +0 -0
  5. package/dist/assets/0f590f8a94577092.svg +1 -0
  6. package/dist/assets/0fc5820f8be53a1b.svg +1 -0
  7. package/dist/assets/105efd028edc1dfe.woff +0 -0
  8. package/dist/assets/10768e2cc79fc60b.svg +1 -0
  9. package/dist/assets/11b3d25a56fd9a21.woff2 +0 -0
  10. package/dist/assets/131b34336aedaf47.woff +0 -0
  11. package/dist/assets/154365acf3010d96.woff2 +0 -0
  12. package/dist/assets/157b8721e0600ea8.svg +1 -0
  13. package/dist/assets/15e91cdd649cde9a.svg +1 -0
  14. package/dist/assets/19275e398ae57130.woff2 +0 -0
  15. package/dist/assets/19bb1c668a5db39f.woff2 +0 -0
  16. package/dist/assets/1a3e84b2457f709a.woff +0 -0
  17. package/dist/assets/1de63eb118636cce.svg +1 -0
  18. package/dist/assets/1ea01de36eb5491b.svg +1 -0
  19. package/dist/assets/2010ada3e82156ed.woff +0 -0
  20. package/dist/assets/204eaf512fde2023.svg +1 -0
  21. package/dist/assets/2088983edf42e153.svg +1 -0
  22. package/dist/assets/208f810a9321a327.svg +1 -0
  23. package/dist/assets/21220a9d10e6c558.svg +1 -0
  24. package/dist/assets/220db345a102045d.woff2 +0 -0
  25. package/dist/assets/225da11d23968333.svg +1 -0
  26. package/dist/assets/226f862dd81bdc13.woff2 +0 -0
  27. package/dist/assets/23a2d53395ddb14f.woff +0 -0
  28. package/dist/assets/259e6ad461a52ad7.svg +1 -0
  29. package/dist/assets/261e6dec4d53b9ac.woff +0 -0
  30. package/dist/assets/262f46a0b6d94bb6.svg +1 -0
  31. package/dist/assets/2857c513073467da.svg +1 -0
  32. package/dist/assets/2b3be7889467d98f.woff +0 -0
  33. package/dist/assets/2d4e6190eec72737.svg +1 -0
  34. package/dist/assets/2eba973185078bc8.woff +0 -0
  35. package/dist/assets/334d3f6bc766c516.woff +0 -0
  36. package/dist/assets/34ff7dd0c2285956.svg +1 -0
  37. package/dist/assets/3d26b7c1ab78bbe2.woff +0 -0
  38. package/dist/assets/3d892965ab4f1cbb.woff2 +0 -0
  39. package/dist/assets/3f8c4cc8099e34b6.woff2 +0 -0
  40. package/dist/assets/3fc09a6113184f16.woff +0 -0
  41. package/dist/assets/40a0e53b79ce63c6.woff2 +0 -0
  42. package/dist/assets/41275bcb979cb650.svg +1 -0
  43. package/dist/assets/434f7982590e462f.woff +0 -0
  44. package/dist/assets/475937116ee3314a.woff2 +0 -0
  45. package/dist/assets/477e1881a0394cc5.woff +0 -0
  46. package/dist/assets/489710fb710e73f0.woff +0 -0
  47. package/dist/assets/49791943b3872376.woff2 +0 -0
  48. package/dist/assets/4ae5f23e0ca888e7.woff2 +0 -0
  49. package/dist/assets/4d7a77b0e5373992.svg +1 -0
  50. package/dist/assets/4e43c74354534fb3.svg +1 -0
  51. package/dist/assets/4fe75f5117100705.svg +1 -0
  52. package/dist/assets/52e261a005074e1b.woff +0 -0
  53. package/dist/assets/5304c3d05a5f9789.woff2 +0 -0
  54. package/dist/assets/54cda5482c6c9218.woff +0 -0
  55. package/dist/assets/550f52072e8ccafe.woff2 +0 -0
  56. package/dist/assets/572bb1bb4156a9c1.svg +1 -0
  57. package/dist/assets/6075995d7e74da46.woff2 +0 -0
  58. package/dist/assets/617c4736236e199e.woff +0 -0
  59. package/dist/assets/67230f05dc94a265.svg +1 -0
  60. package/dist/assets/6798e4dd4add9b48.svg +1 -0
  61. package/dist/assets/686d4077c1e26876.woff2 +0 -0
  62. package/dist/assets/698ec6c722d4cb05.woff2 +0 -0
  63. package/dist/assets/6a3e73faf406cf33.svg +1 -0
  64. package/dist/assets/72de3a63bc0b70dd.svg +1 -0
  65. package/dist/assets/74c6a6ab81bb6340.woff2 +0 -0
  66. package/dist/assets/74ed5f8a78e71106.svg +1 -0
  67. package/dist/assets/7a5aa5abd625137f.ttf +0 -0
  68. package/dist/assets/7ce0c166fd6a1204.woff +0 -0
  69. package/dist/assets/7d55399c2a7bc985.svg +1 -0
  70. package/dist/assets/7d970675c69fca1d.woff +0 -0
  71. package/dist/assets/7eda727273fd98d3.svg +1 -0
  72. package/dist/assets/7f6ebfd707b76ca2.woff +0 -0
  73. package/dist/assets/7fa898d213fcc7bc.woff2 +0 -0
  74. package/dist/assets/861e6b7192b3b6c7.woff +0 -0
  75. package/dist/assets/8bbcde81ba21ecb2.woff2 +0 -0
  76. package/dist/assets/8f6657e5e0b8d3e4.woff +0 -0
  77. package/dist/assets/910b0d99b9e26568.svg +1 -0
  78. package/dist/assets/91fe94e424323d61.woff +0 -0
  79. package/dist/assets/92508f8707159b51.svg +1 -0
  80. package/dist/assets/9392bf1d591e1abb.svg +1 -0
  81. package/dist/assets/97e8d4984ba0713a.woff2 +0 -0
  82. package/dist/assets/9cb83236f6bb7ab1.svg +1 -0
  83. package/dist/assets/9d37314695c0b68d.woff +0 -0
  84. package/dist/assets/a03cdcd8da5bb987.woff +0 -0
  85. package/dist/assets/a18404194e3f9047.svg +1 -0
  86. package/dist/assets/a2017fe7f0a26510.svg +1 -0
  87. package/dist/assets/ab6e7190bb1492d5.woff2 +0 -0
  88. package/dist/assets/abf88f301a0730f4.svg +1 -0
  89. package/dist/assets/ac1a99b3d05d8232.woff +0 -0
  90. package/dist/assets/aed17cb6fdad2ada.woff2 +0 -0
  91. package/dist/assets/b1a596e31ad1185a.svg +1 -0
  92. package/dist/assets/b27767411c8427be.woff +0 -0
  93. package/dist/assets/b325adcae33bbe7a.svg +1 -0
  94. package/dist/assets/b372390551ca2fa1.svg +1 -0
  95. package/dist/assets/b5bb1e8fc975decd.svg +1 -0
  96. package/dist/assets/b645a4a2181b9dc1.svg +1 -0
  97. package/dist/assets/b6499ddce0a4ef7d.svg +1 -0
  98. package/dist/assets/b7ffde2383bb16ba.woff2 +0 -0
  99. package/dist/assets/b94421fadd23b0f2.svg +1 -0
  100. package/dist/assets/bb28fb0f27f1c11b.svg +1 -0
  101. package/dist/assets/c5195215cb712e9c.woff2 +0 -0
  102. package/dist/assets/c9191b638a10f67b.woff2 +0 -0
  103. package/dist/assets/c97328b91ac5cc66.woff +0 -0
  104. package/dist/assets/ca791c5ca5848a03.svg +1 -0
  105. package/dist/assets/cb32840ce330103f.woff +0 -0
  106. package/dist/assets/ccc878931d74181b.woff2 +0 -0
  107. package/dist/assets/cdc69f8b549c866d.woff2 +0 -0
  108. package/dist/assets/d084bda16abe8a56.svg +1 -0
  109. package/dist/assets/d32b129cae2fffd6.svg +1 -0
  110. package/dist/assets/d35a4c7113315758.woff2 +0 -0
  111. package/dist/assets/d3f792f54ae4c307.svg +1 -0
  112. package/dist/assets/d5a5b8630120073d.svg +1 -0
  113. package/dist/assets/d5eb20bcdcf5616a.woff2 +0 -0
  114. package/dist/assets/d5f9664ebbfb104b.svg +1 -0
  115. package/dist/assets/d84247b59449dd88.woff2 +0 -0
  116. package/dist/assets/da4b7f5883fe7743.woff2 +0 -0
  117. package/dist/assets/dceaf3b39091e6a4.woff +0 -0
  118. package/dist/assets/dd05d43ff0df2fc7.svg +1 -0
  119. package/dist/assets/e2ad5b3428289141.woff +0 -0
  120. package/dist/assets/e38acaa1757232e0.svg +1 -0
  121. package/dist/assets/e4a8550f1c7ffe36.svg +1 -0
  122. package/dist/assets/e5adb5ae3a3698f6.svg +1 -0
  123. package/dist/assets/e61a1889bac955f4.woff2 +0 -0
  124. package/dist/assets/e72bb11356af94c7.svg +1 -0
  125. package/dist/assets/e98196a9f8dcb2f0.svg +1 -0
  126. package/dist/assets/ebec912a42ad49ff.woff +0 -0
  127. package/dist/assets/ee6983981ffcbb41.woff2 +0 -0
  128. package/dist/assets/f09d89268e4c0317.svg +1 -0
  129. package/dist/assets/f239394367fcf005.woff2 +0 -0
  130. package/dist/assets/f5722262b6e7214e.woff2 +0 -0
  131. package/dist/assets/f7fc8bf46089d8b2.svg +1 -0
  132. package/dist/assets/fc829e3f399b70e0.woff2 +0 -0
  133. package/dist/assets/fe141d99763f5d2b.woff +0 -0
  134. package/dist/assets/fed13b0d59903483.svg +1 -0
  135. package/dist/assets/fed757d2c2344ead.woff2 +0 -0
  136. package/dist/assets/ffc438f20e79ce73.woff +0 -0
  137. package/dist/framework.css +9 -0
  138. package/dist/framework.js +36471 -0
  139. package/dist/tsconfig.tsbuildinfo +1 -1
  140. package/dist/vendor-boolbase-D2i1C8XR.js +18 -0
  141. package/dist/vendor-cheerio-DrsWhxJH.js +1053 -0
  142. package/dist/vendor-cheerio-select-jw4C2SiT.js +191 -0
  143. package/dist/vendor-core-js-Do_NZFHx.js +880 -0
  144. package/dist/vendor-css-select-BwGMmTuc.js +622 -0
  145. package/dist/vendor-css-what-CZZaquJM.js +267 -0
  146. package/dist/vendor-cypress-signalr-mock-itnm2wpA.js +781 -0
  147. package/dist/vendor-d3-array-9cpTrqlO.js +149 -0
  148. package/dist/vendor-d3-axis-D1_DbKLz.js +74 -0
  149. package/dist/vendor-d3-brush-CcKeJp9e.js +1 -0
  150. package/dist/vendor-d3-color-BOYE6h_9.js +306 -0
  151. package/dist/vendor-d3-dispatch-fx-WMg0D.js +64 -0
  152. package/dist/vendor-d3-ease-Cr34gv04.js +8 -0
  153. package/dist/vendor-d3-format-DaIwZvFc.js +182 -0
  154. package/dist/vendor-d3-interpolate-BYG2gvO4.js +177 -0
  155. package/dist/vendor-d3-interpolate-path-CpGLvKgS.js +299 -0
  156. package/dist/vendor-d3-path-DJOTitNW.js +64 -0
  157. package/dist/vendor-d3-scale-CC5rtdt5.js +561 -0
  158. package/dist/vendor-d3-selection-CNMxsYiL.js +603 -0
  159. package/dist/vendor-d3-shape-DBhCDMiV.js +925 -0
  160. package/dist/vendor-d3-time-DAPP210_.js +212 -0
  161. package/dist/vendor-d3-time-format-hD7iE2WG.js +491 -0
  162. package/dist/vendor-d3-timer-C1cUWKPz.js +67 -0
  163. package/dist/vendor-d3-transition-BbNQT7qF.js +524 -0
  164. package/dist/vendor-d3-zoom-CcKeJp9e.js +1 -0
  165. package/dist/vendor-date-fns-BKO3x1R1.js +3102 -0
  166. package/dist/vendor-dom-serializer-BbVuF1MQ.js +213 -0
  167. package/dist/vendor-domelementtype-B3sFIGaC.js +21 -0
  168. package/dist/vendor-domhandler-Kufn9M_V.js +311 -0
  169. package/dist/vendor-dompurify-M2Bspgo5.js +553 -0
  170. package/dist/vendor-domutils-DDRq_ial.js +386 -0
  171. package/dist/vendor-emotion-cache-eEZT5l-Q.js +274 -0
  172. package/dist/vendor-emotion-hash-DImMRhyK.js +22 -0
  173. package/dist/vendor-emotion-memoize-BcEUCz8q.js +9 -0
  174. package/dist/vendor-emotion-serialize-BSDW8NwU.js +123 -0
  175. package/dist/vendor-emotion-sheet-CS8ZBl9s.js +44 -0
  176. package/dist/vendor-emotion-unitless-B7u1PU6w.js +53 -0
  177. package/dist/vendor-emotion-utils-D7refZTM.js +28 -0
  178. package/dist/vendor-entities-J86Og8IU.js +364 -0
  179. package/dist/vendor-floating-ui-core-BoHdh92a.js +432 -0
  180. package/dist/vendor-floating-ui-dom-BvVXFZ4B.js +398 -0
  181. package/dist/vendor-floating-ui-utils-CidJRIm2.js +257 -0
  182. package/dist/vendor-floating-ui-vue-sCrhit51.js +121 -0
  183. package/dist/vendor-gridstack-Dkfw452e.js +3390 -0
  184. package/dist/vendor-headlessui-vue-Cn-RMs4E.js +961 -0
  185. package/dist/vendor-htmlparser2-BxKKzWLL.js +735 -0
  186. package/dist/vendor-internmap-Q5729_cS.js +35 -0
  187. package/dist/vendor-intlify-core-base-BmIo1dK4.js +1141 -0
  188. package/dist/vendor-intlify-message-compiler-D9VOavkL.js +960 -0
  189. package/dist/vendor-intlify-shared-SCAs3ybf.js +144 -0
  190. package/dist/vendor-iso-639-1-rPqx9HMT.js +786 -0
  191. package/dist/vendor-juggle-resize-observer-DiSiNbbT.js +286 -0
  192. package/dist/vendor-linkify-it-LzoUhj6C.js +199 -0
  193. package/dist/vendor-linkifyjs-dCH9UYes.js +701 -0
  194. package/dist/vendor-lodash-es-BtnfG6xF.js +4829 -0
  195. package/dist/vendor-lucide-vue-next-CPgeDcFj.js +33093 -0
  196. package/dist/vendor-markdown-it-Bs9KEWkF.js +2266 -0
  197. package/dist/vendor-markdown-it-task-lists-CHCnS7dl.js +69 -0
  198. package/dist/vendor-mdurl-DZFDNdqC.js +192 -0
  199. package/dist/vendor-microsoft-applicationinsights-analytics-js-DFu_cVaY.js +1207 -0
  200. package/dist/vendor-microsoft-applicationinsights-cfgsync-js-DRQLN2Ue.js +261 -0
  201. package/dist/vendor-microsoft-applicationinsights-channel-js-BIJDcP3D.js +1822 -0
  202. package/dist/vendor-microsoft-applicationinsights-common-CJjmnDMb.js +1921 -0
  203. package/dist/vendor-microsoft-applicationinsights-core-js-BOc_o46i.js +4276 -0
  204. package/dist/vendor-microsoft-applicationinsights-dependencies-js-DDz502id.js +1407 -0
  205. package/dist/vendor-microsoft-applicationinsights-properties-js-9aDWHwXJ.js +572 -0
  206. package/dist/vendor-microsoft-applicationinsights-shims-Dton8Vqy.js +43 -0
  207. package/dist/vendor-microsoft-applicationinsights-web-DTa5YN-h.js +487 -0
  208. package/dist/vendor-microsoft-dynamicproto-js-89GEKjvR.js +147 -0
  209. package/dist/vendor-microsoft-signalr-Bgpbb4fW.js +1761 -0
  210. package/dist/vendor-module-federation-enhanced-CV1CNdJy.js +22 -0
  211. package/dist/vendor-module-federation-error-codes-DdVwX11j.js +55 -0
  212. package/dist/vendor-module-federation-runtime-CVH_lWgu.js +91 -0
  213. package/dist/vendor-module-federation-runtime-core-D5G-s9nP.js +2202 -0
  214. package/dist/vendor-module-federation-runtime-tools-CQbtw-RJ.js +18 -0
  215. package/dist/vendor-module-federation-sdk-DM4AJRa7.js +683 -0
  216. package/dist/vendor-nevware21-ts-async-D4qa7g-U.js +261 -0
  217. package/dist/vendor-nevware21-ts-utils-DII8jruI.js +853 -0
  218. package/dist/vendor-nth-check-CGMdQf59.js +45 -0
  219. package/dist/vendor-orderedmap-B3SOk52B.js +103 -0
  220. package/dist/vendor-parse5-htmlparser2-tree-adapter-BUDJ887-.js +143 -0
  221. package/dist/vendor-parse5-zq5Hn0y9.js +5749 -0
  222. package/dist/vendor-prettier-CoRReRqw.js +5215 -0
  223. package/dist/vendor-prosemirror-commands-Bv4ChObl.js +385 -0
  224. package/dist/vendor-prosemirror-dropcursor-kF5UKNFM.js +86 -0
  225. package/dist/vendor-prosemirror-gapcursor-S3ikcYX6.js +203 -0
  226. package/dist/vendor-prosemirror-history-CQYKHz3u.js +248 -0
  227. package/dist/vendor-prosemirror-keymap-CAfQyvJ7.js +62 -0
  228. package/dist/vendor-prosemirror-markdown-rpUTSG_Q.js +663 -0
  229. package/dist/vendor-prosemirror-model-DAA3avbR.js +2730 -0
  230. package/dist/vendor-prosemirror-schema-list-BNJkECdS.js +87 -0
  231. package/dist/vendor-prosemirror-state-IeimrELV.js +821 -0
  232. package/dist/vendor-prosemirror-tables-zVUKdbdQ.js +1414 -0
  233. package/dist/vendor-prosemirror-transform-BUjWd5Tb.js +1525 -0
  234. package/dist/vendor-prosemirror-view-DFpBkGRq.js +3794 -0
  235. package/dist/vendor-punycode-js-CgGegfA_.js +133 -0
  236. package/dist/vendor-rope-sequence-BWC2FSrq.js +100 -0
  237. package/dist/vendor-semver-Dar8oU3V.js +1023 -0
  238. package/dist/vendor-striptags-BrHtQQiF.js +120 -0
  239. package/dist/vendor-stylis-ClfDrgKE.js +334 -0
  240. package/dist/vendor-swiper-1bp0oJwt.js +3387 -0
  241. package/dist/vendor-tanstack-vue-virtual-CD9yLWd7.js +1 -0
  242. package/dist/vendor-throttle-debounce-CX0imT7m.js +28 -0
  243. package/dist/vendor-tiptap-core-CDScflP1.js +3921 -0
  244. package/dist/vendor-tiptap-extension-blockquote-ChRAwuus.js +55 -0
  245. package/dist/vendor-tiptap-extension-bold-BwoVpOFS.js +74 -0
  246. package/dist/vendor-tiptap-extension-code-DOlgG3ih.js +52 -0
  247. package/dist/vendor-tiptap-extension-code-block-CMeTs87s.js +215 -0
  248. package/dist/vendor-tiptap-extension-document-DO8oly70.js +12 -0
  249. package/dist/vendor-tiptap-extension-hard-break-BgDl2sHf.js +59 -0
  250. package/dist/vendor-tiptap-extension-heading-DFuYlwHi.js +63 -0
  251. package/dist/vendor-tiptap-extension-horizontal-rule-uyfttMp9.js +56 -0
  252. package/dist/vendor-tiptap-extension-image-DPeBaTE3.js +128 -0
  253. package/dist/vendor-tiptap-extension-italic-C9-3jNxO.js +73 -0
  254. package/dist/vendor-tiptap-extension-link-B57VzStq.js +312 -0
  255. package/dist/vendor-tiptap-extension-list-spvOF7Mz.js +722 -0
  256. package/dist/vendor-tiptap-extension-paragraph-Cj7auQB7.js +44 -0
  257. package/dist/vendor-tiptap-extension-placeholder-DhwvmZ6Y.js +1 -0
  258. package/dist/vendor-tiptap-extension-strike-yj6UvnkO.js +64 -0
  259. package/dist/vendor-tiptap-extension-table-cell-CQpTPSvF.js +1 -0
  260. package/dist/vendor-tiptap-extension-table-ex1kZQ-9.js +374 -0
  261. package/dist/vendor-tiptap-extension-table-header-CQpTPSvF.js +1 -0
  262. package/dist/vendor-tiptap-extension-table-row-CQpTPSvF.js +1 -0
  263. package/dist/vendor-tiptap-extension-text-C8FG4KnI.js +13 -0
  264. package/dist/vendor-tiptap-extension-text-style-DsQDXowp.js +235 -0
  265. package/dist/vendor-tiptap-extension-underline-HB3fg6Dc.js +65 -0
  266. package/dist/vendor-tiptap-extensions-CUGwjzl5.js +296 -0
  267. package/dist/vendor-tiptap-markdown-DLzeP3KU.js +826 -0
  268. package/dist/vendor-tiptap-pm-DSHuSumV.js +1 -0
  269. package/dist/vendor-tiptap-starter-kit-C42PcJ7J.js +28 -0
  270. package/dist/vendor-tiptap-vue-3-BxWCzu9Z.js +157 -0
  271. package/dist/vendor-truncate-html-r2r8GKvW.js +145 -0
  272. package/dist/vendor-uc-micro-4lbSaZOs.js +17 -0
  273. package/dist/vendor-unovis-ts-Bue71Kwt.js +2382 -0
  274. package/dist/vendor-unovis-vue-C_K1g5KH.js +446 -0
  275. package/dist/vendor-vee-validate-i18n-zT8NxX3R.js +93 -0
  276. package/dist/vendor-vee-validate-rules-4oWUZPpG.js +316 -0
  277. package/dist/vendor-vue-currency-input-CckB4kjx.js +317 -0
  278. package/dist/vendor-vue-demi-CD9yLWd7.js +1 -0
  279. package/dist/vendor-vue-devtools-api-aVYGocXp.js +93 -0
  280. package/dist/vendor-vue-i18n-DeO9Fa9I.js +1387 -0
  281. package/dist/vendor-vue-router-R3V0tq8_.js +6 -0
  282. package/dist/vendor-vue3-application-insights-BmJCYUcp.js +69 -0
  283. package/dist/vendor-vue3-touch-events-DqysuuWh.js +169 -0
  284. package/dist/vendor-vuepic-vue-datepicker-CaZ_qpJp.js +4998 -0
  285. package/dist/vendor-vueuse-components-Be490f6P.js +542 -0
  286. package/dist/vendor-vueuse-core-BW8bO6-j.js +5135 -0
  287. package/dist/vendor-vueuse-shared-bmkWEEYZ.js +1169 -0
  288. package/dist/vendor-w3c-keyname-CLxH8j-f.js +92 -0
  289. package/dist/vendor-web-vitals-vrpLO1bu.js +207 -0
  290. package/package.json +5 -8
@@ -0,0 +1,663 @@
1
+ import { d as O, M as w } from "./vendor-prosemirror-model-DAA3avbR.js";
2
+ import { M as S } from "./vendor-markdown-it-Bs9KEWkF.js";
3
+ const D = new O({
4
+ nodes: {
5
+ doc: {
6
+ content: "block+"
7
+ },
8
+ paragraph: {
9
+ content: "inline*",
10
+ group: "block",
11
+ parseDOM: [{ tag: "p" }],
12
+ toDOM() {
13
+ return ["p", 0];
14
+ }
15
+ },
16
+ blockquote: {
17
+ content: "block+",
18
+ group: "block",
19
+ parseDOM: [{ tag: "blockquote" }],
20
+ toDOM() {
21
+ return ["blockquote", 0];
22
+ }
23
+ },
24
+ horizontal_rule: {
25
+ group: "block",
26
+ parseDOM: [{ tag: "hr" }],
27
+ toDOM() {
28
+ return ["div", ["hr"]];
29
+ }
30
+ },
31
+ heading: {
32
+ attrs: { level: { default: 1 } },
33
+ content: "(text | image)*",
34
+ group: "block",
35
+ defining: !0,
36
+ parseDOM: [
37
+ { tag: "h1", attrs: { level: 1 } },
38
+ { tag: "h2", attrs: { level: 2 } },
39
+ { tag: "h3", attrs: { level: 3 } },
40
+ { tag: "h4", attrs: { level: 4 } },
41
+ { tag: "h5", attrs: { level: 5 } },
42
+ { tag: "h6", attrs: { level: 6 } }
43
+ ],
44
+ toDOM(e) {
45
+ return ["h" + e.attrs.level, 0];
46
+ }
47
+ },
48
+ code_block: {
49
+ content: "text*",
50
+ group: "block",
51
+ code: !0,
52
+ defining: !0,
53
+ marks: "",
54
+ attrs: { params: { default: "" } },
55
+ parseDOM: [{ tag: "pre", preserveWhitespace: "full", getAttrs: (e) => ({ params: e.getAttribute("data-params") || "" }) }],
56
+ toDOM(e) {
57
+ return ["pre", e.attrs.params ? { "data-params": e.attrs.params } : {}, ["code", 0]];
58
+ }
59
+ },
60
+ ordered_list: {
61
+ content: "list_item+",
62
+ group: "block",
63
+ attrs: { order: { default: 1 }, tight: { default: !1 } },
64
+ parseDOM: [{ tag: "ol", getAttrs(e) {
65
+ return {
66
+ order: e.hasAttribute("start") ? +e.getAttribute("start") : 1,
67
+ tight: e.hasAttribute("data-tight")
68
+ };
69
+ } }],
70
+ toDOM(e) {
71
+ return ["ol", {
72
+ start: e.attrs.order == 1 ? null : e.attrs.order,
73
+ "data-tight": e.attrs.tight ? "true" : null
74
+ }, 0];
75
+ }
76
+ },
77
+ bullet_list: {
78
+ content: "list_item+",
79
+ group: "block",
80
+ attrs: { tight: { default: !1 } },
81
+ parseDOM: [{ tag: "ul", getAttrs: (e) => ({ tight: e.hasAttribute("data-tight") }) }],
82
+ toDOM(e) {
83
+ return ["ul", { "data-tight": e.attrs.tight ? "true" : null }, 0];
84
+ }
85
+ },
86
+ list_item: {
87
+ content: "block+",
88
+ defining: !0,
89
+ parseDOM: [{ tag: "li" }],
90
+ toDOM() {
91
+ return ["li", 0];
92
+ }
93
+ },
94
+ text: {
95
+ group: "inline"
96
+ },
97
+ image: {
98
+ inline: !0,
99
+ attrs: {
100
+ src: {},
101
+ alt: { default: null },
102
+ title: { default: null }
103
+ },
104
+ group: "inline",
105
+ draggable: !0,
106
+ parseDOM: [{ tag: "img[src]", getAttrs(e) {
107
+ return {
108
+ src: e.getAttribute("src"),
109
+ title: e.getAttribute("title"),
110
+ alt: e.getAttribute("alt")
111
+ };
112
+ } }],
113
+ toDOM(e) {
114
+ return ["img", e.attrs];
115
+ }
116
+ },
117
+ hard_break: {
118
+ inline: !0,
119
+ group: "inline",
120
+ selectable: !1,
121
+ parseDOM: [{ tag: "br" }],
122
+ toDOM() {
123
+ return ["br"];
124
+ }
125
+ }
126
+ },
127
+ marks: {
128
+ em: {
129
+ parseDOM: [
130
+ { tag: "i" },
131
+ { tag: "em" },
132
+ { style: "font-style=italic" },
133
+ { style: "font-style=normal", clearMark: (e) => e.type.name == "em" }
134
+ ],
135
+ toDOM() {
136
+ return ["em"];
137
+ }
138
+ },
139
+ strong: {
140
+ parseDOM: [
141
+ { tag: "strong" },
142
+ { tag: "b", getAttrs: (e) => e.style.fontWeight != "normal" && null },
143
+ { style: "font-weight=400", clearMark: (e) => e.type.name == "strong" },
144
+ { style: "font-weight", getAttrs: (e) => /^(bold(er)?|[5-9]\d{2,})$/.test(e) && null }
145
+ ],
146
+ toDOM() {
147
+ return ["strong"];
148
+ }
149
+ },
150
+ link: {
151
+ attrs: {
152
+ href: {},
153
+ title: { default: null }
154
+ },
155
+ inclusive: !1,
156
+ parseDOM: [{ tag: "a[href]", getAttrs(e) {
157
+ return { href: e.getAttribute("href"), title: e.getAttribute("title") };
158
+ } }],
159
+ toDOM(e) {
160
+ return ["a", e.attrs];
161
+ }
162
+ },
163
+ code: {
164
+ code: !0,
165
+ parseDOM: [{ tag: "code" }],
166
+ toDOM() {
167
+ return ["code"];
168
+ }
169
+ }
170
+ }
171
+ });
172
+ function B(e, t) {
173
+ if (e.isText && t.isText && w.sameSet(e.marks, t.marks))
174
+ return e.withText(e.text + t.text);
175
+ }
176
+ class C {
177
+ constructor(t, r) {
178
+ this.schema = t, this.tokenHandlers = r, this.stack = [{ type: t.topNodeType, attrs: null, content: [], marks: w.none }];
179
+ }
180
+ top() {
181
+ return this.stack[this.stack.length - 1];
182
+ }
183
+ push(t) {
184
+ this.stack.length && this.top().content.push(t);
185
+ }
186
+ // Adds the given text to the current position in the document,
187
+ // using the current marks as styling.
188
+ addText(t) {
189
+ if (!t)
190
+ return;
191
+ let r = this.top(), i = r.content, s = i[i.length - 1], a = this.schema.text(t, r.marks), l;
192
+ s && (l = B(s, a)) ? i[i.length - 1] = l : i.push(a);
193
+ }
194
+ // Adds the given mark to the set of active marks.
195
+ openMark(t) {
196
+ let r = this.top();
197
+ r.marks = t.addToSet(r.marks);
198
+ }
199
+ // Removes the given mark from the set of active marks.
200
+ closeMark(t) {
201
+ let r = this.top();
202
+ r.marks = t.removeFromSet(r.marks);
203
+ }
204
+ parseTokens(t) {
205
+ for (let r = 0; r < t.length; r++) {
206
+ let i = t[r], s = this.tokenHandlers[i.type];
207
+ if (!s)
208
+ throw new Error("Token type `" + i.type + "` not supported by Markdown parser");
209
+ s(this, i, t, r);
210
+ }
211
+ }
212
+ // Add a node at the current position.
213
+ addNode(t, r, i) {
214
+ let s = this.top(), a = t.createAndFill(r, i, s ? s.marks : []);
215
+ return a ? (this.push(a), a) : null;
216
+ }
217
+ // Wrap subsequent content in a node of the given type.
218
+ openNode(t, r) {
219
+ this.stack.push({ type: t, attrs: r, content: [], marks: w.none });
220
+ }
221
+ // Close and return the node that is currently on top of the stack.
222
+ closeNode() {
223
+ let t = this.stack.pop();
224
+ return this.addNode(t.type, t.attrs, t.content);
225
+ }
226
+ }
227
+ function k(e, t, r, i) {
228
+ return e.getAttrs ? e.getAttrs(t, r, i) : e.attrs instanceof Function ? e.attrs(t) : e.attrs;
229
+ }
230
+ function b(e, t) {
231
+ return e.noCloseToken || t == "code_inline" || t == "code_block" || t == "fence";
232
+ }
233
+ function _(e) {
234
+ return e[e.length - 1] == `
235
+ ` ? e.slice(0, e.length - 1) : e;
236
+ }
237
+ function M() {
238
+ }
239
+ function N(e, t) {
240
+ let r = /* @__PURE__ */ Object.create(null);
241
+ for (let i in t) {
242
+ let s = t[i];
243
+ if (s.block) {
244
+ let a = e.nodeType(s.block);
245
+ b(s, i) ? r[i] = (l, g, o, n) => {
246
+ l.openNode(a, k(s, g, o, n)), l.addText(_(g.content)), l.closeNode();
247
+ } : (r[i + "_open"] = (l, g, o, n) => l.openNode(a, k(s, g, o, n)), r[i + "_close"] = (l) => l.closeNode());
248
+ } else if (s.node) {
249
+ let a = e.nodeType(s.node);
250
+ r[i] = (l, g, o, n) => l.addNode(a, k(s, g, o, n));
251
+ } else if (s.mark) {
252
+ let a = e.marks[s.mark];
253
+ b(s, i) ? r[i] = (l, g, o, n) => {
254
+ l.openMark(a.create(k(s, g, o, n))), l.addText(_(g.content)), l.closeMark(a);
255
+ } : (r[i + "_open"] = (l, g, o, n) => l.openMark(a.create(k(s, g, o, n))), r[i + "_close"] = (l) => l.closeMark(a));
256
+ } else if (s.ignore)
257
+ b(s, i) ? r[i] = M : (r[i + "_open"] = M, r[i + "_close"] = M);
258
+ else
259
+ throw new RangeError("Unrecognized parsing spec " + JSON.stringify(s));
260
+ }
261
+ return r.text = (i, s) => i.addText(s.content), r.inline = (i, s) => i.parseTokens(s.children), r.softbreak = r.softbreak || ((i) => i.addText(" ")), r;
262
+ }
263
+ class v {
264
+ /**
265
+ Create a parser with the given configuration. You can configure
266
+ the markdown-it parser to parse the dialect you want, and provide
267
+ a description of the ProseMirror entities those tokens map to in
268
+ the `tokens` object, which maps token names to descriptions of
269
+ what to do with them. Such a description is an object, and may
270
+ have the following properties:
271
+ */
272
+ constructor(t, r, i) {
273
+ this.schema = t, this.tokenizer = r, this.tokens = i, this.tokenHandlers = N(t, i);
274
+ }
275
+ /**
276
+ Parse a string as [CommonMark](http://commonmark.org/) markup,
277
+ and create a ProseMirror document as prescribed by this parser's
278
+ rules.
279
+
280
+ The second argument, when given, is passed through to the
281
+ [Markdown
282
+ parser](https://markdown-it.github.io/markdown-it/#MarkdownIt.parse).
283
+ */
284
+ parse(t, r = {}) {
285
+ let i = new C(this.schema, this.tokenHandlers), s;
286
+ i.parseTokens(this.tokenizer.parse(t, r));
287
+ do
288
+ s = i.closeNode();
289
+ while (i.stack.length);
290
+ return s || this.schema.topNodeType.createAndFill();
291
+ }
292
+ }
293
+ function T(e, t) {
294
+ for (; ++t < e.length; )
295
+ if (e[t].type != "list_item_open")
296
+ return e[t].hidden;
297
+ return !1;
298
+ }
299
+ new v(D, S("commonmark", { html: !1 }), {
300
+ blockquote: { block: "blockquote" },
301
+ paragraph: { block: "paragraph" },
302
+ list_item: { block: "list_item" },
303
+ bullet_list: { block: "bullet_list", getAttrs: (e, t, r) => ({ tight: T(t, r) }) },
304
+ ordered_list: { block: "ordered_list", getAttrs: (e, t, r) => ({
305
+ order: +e.attrGet("start") || 1,
306
+ tight: T(t, r)
307
+ }) },
308
+ heading: { block: "heading", getAttrs: (e) => ({ level: +e.tag.slice(1) }) },
309
+ code_block: { block: "code_block", noCloseToken: !0 },
310
+ fence: { block: "code_block", getAttrs: (e) => ({ params: e.info || "" }), noCloseToken: !0 },
311
+ hr: { node: "horizontal_rule" },
312
+ image: { node: "image", getAttrs: (e) => ({
313
+ src: e.attrGet("src"),
314
+ title: e.attrGet("title") || null,
315
+ alt: e.children[0] && e.children[0].content || null
316
+ }) },
317
+ hardbreak: { node: "hard_break" },
318
+ em: { mark: "em" },
319
+ strong: { mark: "strong" },
320
+ link: { mark: "link", getAttrs: (e) => ({
321
+ href: e.attrGet("href"),
322
+ title: e.attrGet("title") || null
323
+ }) },
324
+ code_inline: { mark: "code", noCloseToken: !0 }
325
+ });
326
+ const $ = { open: "", close: "", mixable: !0 };
327
+ class E {
328
+ /**
329
+ Construct a serializer with the given configuration. The `nodes`
330
+ object should map node names in a given schema to function that
331
+ take a serializer state and such a node, and serialize the node.
332
+ */
333
+ constructor(t, r, i = {}) {
334
+ this.nodes = t, this.marks = r, this.options = i;
335
+ }
336
+ /**
337
+ Serialize the content of the given node to
338
+ [CommonMark](http://commonmark.org/).
339
+ */
340
+ serialize(t, r = {}) {
341
+ r = Object.assign({}, this.options, r);
342
+ let i = new z(this.nodes, this.marks, r);
343
+ return i.renderContent(t), i.out;
344
+ }
345
+ }
346
+ const W = new E({
347
+ blockquote(e, t) {
348
+ e.wrapBlock("> ", null, t, () => e.renderContent(t));
349
+ },
350
+ code_block(e, t) {
351
+ const r = t.textContent.match(/`{3,}/gm), i = r ? r.sort().slice(-1)[0] + "`" : "```";
352
+ e.write(i + (t.attrs.params || "") + `
353
+ `), e.text(t.textContent, !1), e.write(`
354
+ `), e.write(i), e.closeBlock(t);
355
+ },
356
+ heading(e, t) {
357
+ e.write(e.repeat("#", t.attrs.level) + " "), e.renderInline(t, !1), e.closeBlock(t);
358
+ },
359
+ horizontal_rule(e, t) {
360
+ e.write(t.attrs.markup || "---"), e.closeBlock(t);
361
+ },
362
+ bullet_list(e, t) {
363
+ e.renderList(t, " ", () => (t.attrs.bullet || "*") + " ");
364
+ },
365
+ ordered_list(e, t) {
366
+ let r = t.attrs.order || 1, i = String(r + t.childCount - 1).length, s = e.repeat(" ", i + 2);
367
+ e.renderList(t, s, (a) => {
368
+ let l = String(r + a);
369
+ return e.repeat(" ", i - l.length) + l + ". ";
370
+ });
371
+ },
372
+ list_item(e, t) {
373
+ e.renderContent(t);
374
+ },
375
+ paragraph(e, t) {
376
+ e.renderInline(t), e.closeBlock(t);
377
+ },
378
+ image(e, t) {
379
+ e.write("![" + e.esc(t.attrs.alt || "") + "](" + t.attrs.src.replace(/[\(\)]/g, "\\$&") + (t.attrs.title ? ' "' + t.attrs.title.replace(/"/g, '\\"') + '"' : "") + ")");
380
+ },
381
+ hard_break(e, t, r, i) {
382
+ for (let s = i + 1; s < r.childCount; s++)
383
+ if (r.child(s).type != t.type) {
384
+ e.write(`\\
385
+ `);
386
+ return;
387
+ }
388
+ },
389
+ text(e, t) {
390
+ e.text(t.text, !e.inAutolink);
391
+ }
392
+ }, {
393
+ em: { open: "*", close: "*", mixable: !0, expelEnclosingWhitespace: !0 },
394
+ strong: { open: "**", close: "**", mixable: !0, expelEnclosingWhitespace: !0 },
395
+ link: {
396
+ open(e, t, r, i) {
397
+ return e.inAutolink = L(t, r, i), e.inAutolink ? "<" : "[";
398
+ },
399
+ close(e, t, r, i) {
400
+ let { inAutolink: s } = e;
401
+ return e.inAutolink = void 0, s ? ">" : "](" + t.attrs.href.replace(/[\(\)"]/g, "\\$&") + (t.attrs.title ? ` "${t.attrs.title.replace(/"/g, '\\"')}"` : "") + ")";
402
+ },
403
+ mixable: !0
404
+ },
405
+ code: {
406
+ open(e, t, r, i) {
407
+ return A(r.child(i), -1);
408
+ },
409
+ close(e, t, r, i) {
410
+ return A(r.child(i - 1), 1);
411
+ },
412
+ escape: !1
413
+ }
414
+ });
415
+ function A(e, t) {
416
+ let r = /`+/g, i, s = 0;
417
+ if (e.isText)
418
+ for (; i = r.exec(e.text); )
419
+ s = Math.max(s, i[0].length);
420
+ let a = s > 0 && t > 0 ? " `" : "`";
421
+ for (let l = 0; l < s; l++)
422
+ a += "`";
423
+ return s > 0 && t < 0 && (a += " "), a;
424
+ }
425
+ function L(e, t, r) {
426
+ if (e.attrs.title || !/^\w+:/.test(e.attrs.href))
427
+ return !1;
428
+ let i = t.child(r);
429
+ return !i.isText || i.text != e.attrs.href || i.marks[i.marks.length - 1] != e ? !1 : r == t.childCount - 1 || !e.isInSet(t.child(r + 1).marks);
430
+ }
431
+ let z = class {
432
+ /**
433
+ @internal
434
+ */
435
+ constructor(t, r, i) {
436
+ this.nodes = t, this.marks = r, this.options = i, this.delim = "", this.out = "", this.closed = null, this.inAutolink = void 0, this.atBlockStart = !1, this.inTightList = !1, typeof this.options.tightLists > "u" && (this.options.tightLists = !1), typeof this.options.hardBreakNodeName > "u" && (this.options.hardBreakNodeName = "hard_break");
437
+ }
438
+ /**
439
+ @internal
440
+ */
441
+ flushClose(t = 2) {
442
+ if (this.closed) {
443
+ if (this.atBlank() || (this.out += `
444
+ `), t > 1) {
445
+ let r = this.delim, i = /\s+$/.exec(r);
446
+ i && (r = r.slice(0, r.length - i[0].length));
447
+ for (let s = 1; s < t; s++)
448
+ this.out += r + `
449
+ `;
450
+ }
451
+ this.closed = null;
452
+ }
453
+ }
454
+ /**
455
+ @internal
456
+ */
457
+ getMark(t) {
458
+ let r = this.marks[t];
459
+ if (!r) {
460
+ if (this.options.strict !== !1)
461
+ throw new Error(`Mark type \`${t}\` not supported by Markdown renderer`);
462
+ r = $;
463
+ }
464
+ return r;
465
+ }
466
+ /**
467
+ Render a block, prefixing each line with `delim`, and the first
468
+ line in `firstDelim`. `node` should be the node that is closed at
469
+ the end of the block, and `f` is a function that renders the
470
+ content of the block.
471
+ */
472
+ wrapBlock(t, r, i, s) {
473
+ let a = this.delim;
474
+ this.write(r ?? t), this.delim += t, s(), this.delim = a, this.closeBlock(i);
475
+ }
476
+ /**
477
+ @internal
478
+ */
479
+ atBlank() {
480
+ return /(^|\n)$/.test(this.out);
481
+ }
482
+ /**
483
+ Ensure the current content ends with a newline.
484
+ */
485
+ ensureNewLine() {
486
+ this.atBlank() || (this.out += `
487
+ `);
488
+ }
489
+ /**
490
+ Prepare the state for writing output (closing closed paragraphs,
491
+ adding delimiters, and so on), and then optionally add content
492
+ (unescaped) to the output.
493
+ */
494
+ write(t) {
495
+ this.flushClose(), this.delim && this.atBlank() && (this.out += this.delim), t && (this.out += t);
496
+ }
497
+ /**
498
+ Close the block for the given node.
499
+ */
500
+ closeBlock(t) {
501
+ this.closed = t;
502
+ }
503
+ /**
504
+ Add the given text to the document. When escape is not `false`,
505
+ it will be escaped.
506
+ */
507
+ text(t, r = !0) {
508
+ let i = t.split(`
509
+ `);
510
+ for (let s = 0; s < i.length; s++)
511
+ this.write(), !r && i[s][0] == "[" && /(^|[^\\])\!$/.test(this.out) && (this.out = this.out.slice(0, this.out.length - 1) + "\\!"), this.out += r ? this.esc(i[s], this.atBlockStart) : i[s], s != i.length - 1 && (this.out += `
512
+ `);
513
+ }
514
+ /**
515
+ Render the given node as a block.
516
+ */
517
+ render(t, r, i) {
518
+ if (this.nodes[t.type.name])
519
+ this.nodes[t.type.name](this, t, r, i);
520
+ else {
521
+ if (this.options.strict !== !1)
522
+ throw new Error("Token type `" + t.type.name + "` not supported by Markdown renderer");
523
+ t.type.isLeaf || (t.type.inlineContent ? this.renderInline(t) : this.renderContent(t), t.isBlock && this.closeBlock(t));
524
+ }
525
+ }
526
+ /**
527
+ Render the contents of `parent` as block nodes.
528
+ */
529
+ renderContent(t) {
530
+ t.forEach((r, i, s) => this.render(r, t, s));
531
+ }
532
+ /**
533
+ Render the contents of `parent` as inline content.
534
+ */
535
+ renderInline(t, r = !0) {
536
+ this.atBlockStart = r;
537
+ let i = [], s = "", a = (l, g, o) => {
538
+ let n = l ? l.marks : [];
539
+ l && l.type.name === this.options.hardBreakNodeName && (n = n.filter((h) => {
540
+ if (o + 1 == t.childCount)
541
+ return !1;
542
+ let c = t.child(o + 1);
543
+ return h.isInSet(c.marks) && (!c.isText || /\S/.test(c.text));
544
+ }));
545
+ let m = s;
546
+ if (s = "", l && l.isText && n.some((h) => {
547
+ let c = this.getMark(h.type.name);
548
+ return c && c.expelEnclosingWhitespace && !h.isInSet(i);
549
+ })) {
550
+ let [h, c, u] = /^(\s*)(.*)$/m.exec(l.text);
551
+ c && (m += c, l = u ? l.withText(u) : null, l || (n = i));
552
+ }
553
+ if (l && l.isText && n.some((h) => {
554
+ let c = this.getMark(h.type.name);
555
+ return c && c.expelEnclosingWhitespace && !this.isMarkAhead(t, o + 1, h);
556
+ })) {
557
+ let [h, c, u] = /^(.*?)(\s*)$/m.exec(l.text);
558
+ u && (s = u, l = c ? l.withText(c) : null, l || (n = i));
559
+ }
560
+ let d = n.length ? n[n.length - 1] : null, x = d && this.getMark(d.type.name).escape === !1, f = n.length - (x ? 1 : 0);
561
+ t: for (let h = 0; h < f; h++) {
562
+ let c = n[h];
563
+ if (!this.getMark(c.type.name).mixable)
564
+ break;
565
+ for (let u = 0; u < i.length; u++) {
566
+ let y = i[u];
567
+ if (!this.getMark(y.type.name).mixable)
568
+ break;
569
+ if (c.eq(y)) {
570
+ h > u ? n = n.slice(0, u).concat(c).concat(n.slice(u, h)).concat(n.slice(h + 1, f)) : u > h && (n = n.slice(0, h).concat(n.slice(h + 1, u)).concat(c).concat(n.slice(u, f)));
571
+ continue t;
572
+ }
573
+ }
574
+ }
575
+ let p = 0;
576
+ for (; p < Math.min(i.length, f) && n[p].eq(i[p]); )
577
+ ++p;
578
+ for (; p < i.length; )
579
+ this.text(this.markString(i.pop(), !1, t, o), !1);
580
+ if (m && this.text(m), l) {
581
+ for (; i.length < f; ) {
582
+ let h = n[i.length];
583
+ i.push(h), this.text(this.markString(h, !0, t, o), !1), this.atBlockStart = !1;
584
+ }
585
+ x && l.isText ? this.text(this.markString(d, !0, t, o) + l.text + this.markString(d, !1, t, o + 1), !1) : this.render(l, t, o), this.atBlockStart = !1;
586
+ }
587
+ l?.isText && l.nodeSize > 0 && (this.atBlockStart = !1);
588
+ };
589
+ t.forEach(a), a(null, 0, t.childCount), this.atBlockStart = !1;
590
+ }
591
+ /**
592
+ Render a node's content as a list. `delim` should be the extra
593
+ indentation added to all lines except the first in an item,
594
+ `firstDelim` is a function going from an item index to a
595
+ delimiter for the first line of the item.
596
+ */
597
+ renderList(t, r, i) {
598
+ this.closed && this.closed.type == t.type ? this.flushClose(3) : this.inTightList && this.flushClose(1);
599
+ let s = typeof t.attrs.tight < "u" ? t.attrs.tight : this.options.tightLists, a = this.inTightList;
600
+ this.inTightList = s, t.forEach((l, g, o) => {
601
+ o && s && this.flushClose(1), this.wrapBlock(r, i(o), t, () => this.render(l, t, o));
602
+ }), this.inTightList = a;
603
+ }
604
+ /**
605
+ Escape the given string so that it can safely appear in Markdown
606
+ content. If `startOfLine` is true, also escape characters that
607
+ have special meaning only at the start of the line.
608
+ */
609
+ esc(t, r = !1) {
610
+ return t = t.replace(/[`*\\~\[\]_]/g, (i, s) => i == "_" && s > 0 && s + 1 < t.length && t[s - 1].match(/\w/) && t[s + 1].match(/\w/) ? i : "\\" + i), r && (t = t.replace(/^(\+[ ]|[\-*>])/, "\\$&").replace(/^(\s*)(#{1,6})(\s|$)/, "$1\\$2$3").replace(/^(\s*\d+)\.\s/, "$1\\. ")), this.options.escapeExtraCharacters && (t = t.replace(this.options.escapeExtraCharacters, "\\$&")), t;
611
+ }
612
+ /**
613
+ @internal
614
+ */
615
+ quote(t) {
616
+ let r = t.indexOf('"') == -1 ? '""' : t.indexOf("'") == -1 ? "''" : "()";
617
+ return r[0] + t + r[1];
618
+ }
619
+ /**
620
+ Repeat the given string `n` times.
621
+ */
622
+ repeat(t, r) {
623
+ let i = "";
624
+ for (let s = 0; s < r; s++)
625
+ i += t;
626
+ return i;
627
+ }
628
+ /**
629
+ Get the markdown string for a given opening or closing mark.
630
+ */
631
+ markString(t, r, i, s) {
632
+ let a = this.getMark(t.type.name), l = r ? a.open : a.close;
633
+ return typeof l == "string" ? l : l(this, t, i, s);
634
+ }
635
+ /**
636
+ Get leading and trailing whitespace from a string. Values of
637
+ leading or trailing property of the return object will be undefined
638
+ if there is no match.
639
+ */
640
+ getEnclosingWhitespace(t) {
641
+ return {
642
+ leading: (t.match(/^(\s+)/) || [void 0])[0],
643
+ trailing: (t.match(/(\s+)$/) || [void 0])[0]
644
+ };
645
+ }
646
+ /**
647
+ @internal
648
+ */
649
+ isMarkAhead(t, r, i) {
650
+ for (; ; r++) {
651
+ if (r >= t.childCount)
652
+ return !1;
653
+ let s = t.child(r);
654
+ if (s.type.name != this.options.hardBreakNodeName)
655
+ return i.isInSet(s.marks);
656
+ r++;
657
+ }
658
+ }
659
+ };
660
+ export {
661
+ z as M,
662
+ W as d
663
+ };