@jackuait/blok 0.9.0 → 0.10.0-beta.10

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 (492) hide show
  1. package/codemod/migrate-editorjs-to-blok.js +50 -2
  2. package/codemod/test.js +39 -6
  3. package/dist/blok.mjs +3 -3
  4. package/dist/chunks/_basePickBy-DISiGhsr.mjs +410 -0
  5. package/dist/chunks/_baseUniq-gAuHRtRF.mjs +1045 -0
  6. package/dist/chunks/_getTag-Aj56Wgor.mjs +26 -0
  7. package/dist/chunks/arc-D-pL2Ftf.mjs +80 -0
  8. package/dist/chunks/architecture-YZFGNWBL-CuqTb_ae.mjs +3 -0
  9. package/dist/chunks/architectureDiagram-Q4EWVU46-DS7mqjL2.mjs +4066 -0
  10. package/dist/chunks/array-BsrkCVSZ.mjs +6 -0
  11. package/dist/chunks/blockDiagram-DXYQGD6D-BTtcn4NG.mjs +3259 -0
  12. package/dist/chunks/{blok-RJ3hyzDH.mjs → blok-Bg3-zpSu.mjs} +2192 -2156
  13. package/dist/chunks/c-C6JXJf5K.mjs +5 -0
  14. package/dist/chunks/c4Diagram-AHTNJAMY-Y4Dcwcoo.mjs +2956 -0
  15. package/dist/chunks/ccount-C9Y7nqDe.mjs +10 -0
  16. package/dist/chunks/channel-Cln-eWE0.mjs +5 -0
  17. package/dist/chunks/chunk-2KRD3SAO-DkM7qh-k.mjs +20 -0
  18. package/dist/chunks/chunk-336JU56O-B17AtzlK.mjs +49 -0
  19. package/dist/chunks/chunk-426QAEUC-D6UAVUog.mjs +13 -0
  20. package/dist/chunks/chunk-4BX2VUAB-CgIkjF7Z.mjs +19 -0
  21. package/dist/chunks/chunk-4TB4RGXK-BUP4eON3.mjs +3250 -0
  22. package/dist/chunks/chunk-55IACEB6-zZ-IgaSt.mjs +8 -0
  23. package/dist/chunks/chunk-5FUZZQ4R-DsZnJYxM.mjs +3786 -0
  24. package/dist/chunks/chunk-5PVQY5BW-CORl9dnu.mjs +1692 -0
  25. package/dist/chunks/chunk-67CJDMHE-m0UKdcSH.mjs +20 -0
  26. package/dist/chunks/chunk-7N4EOEYR-DKNajFZd.mjs +29 -0
  27. package/dist/chunks/chunk-AA7GKIK3-BeLhNzKa.mjs +24 -0
  28. package/dist/chunks/chunk-BSJP7CBP-CJExmx8a.mjs +83 -0
  29. package/dist/chunks/chunk-CIAEETIT-CTikoJ19.mjs +20 -0
  30. package/dist/chunks/chunk-D6kmoKXy.mjs +20 -0
  31. package/dist/chunks/chunk-EDXVE4YY-DjInnnwb.mjs +26 -0
  32. package/dist/chunks/chunk-ENJZ2VHE-CIl5FRDA.mjs +566 -0
  33. package/dist/chunks/chunk-FMBD7UC4-DjV0W7UE.mjs +5 -0
  34. package/dist/chunks/chunk-FOC6F5B3-LmHCCWYY.mjs +20 -0
  35. package/dist/chunks/chunk-ICPOFSXX-BHZIN46A.mjs +3290 -0
  36. package/dist/chunks/chunk-K5T4RW27-BPZ6fFnW.mjs +16370 -0
  37. package/dist/chunks/chunk-KGLVRYIC-S1OQdW76.mjs +20 -0
  38. package/dist/chunks/chunk-LIHQZDEY-CjtyJlI6.mjs +55 -0
  39. package/dist/chunks/chunk-ORNJ4GCN-CdO0hAge.mjs +25 -0
  40. package/dist/chunks/chunk-OYMX7WX6-ApX8eV4o.mjs +2038 -0
  41. package/dist/chunks/chunk-QZHKN3VN-BGFuA6-k.mjs +12 -0
  42. package/dist/chunks/chunk-U2HBQHQK-B88ZUOTL.mjs +1875 -0
  43. package/dist/chunks/chunk-X2U36JSP-1VS5TyCr.mjs +68 -0
  44. package/dist/chunks/chunk-XPW4576I-BMupdrvo.mjs +1146 -0
  45. package/dist/chunks/chunk-YZCP3GAM-BQ7eEsm2.mjs +60 -0
  46. package/dist/chunks/chunk-ZZ45TVLE-D1xks9zd.mjs +33 -0
  47. package/dist/chunks/classDiagram-6PBFFD2Q-C59BZJxp.mjs +30 -0
  48. package/dist/chunks/classDiagram-v2-HSJHXN6E-7a0qeMsE.mjs +30 -0
  49. package/dist/chunks/clone-Ckjt1LtE.mjs +8 -0
  50. package/dist/chunks/{constants-A3iVmQL8.mjs → constants-D7zjGD5W.mjs} +529 -530
  51. package/dist/chunks/core-Bm6DWt7D.mjs +4501 -0
  52. package/dist/chunks/cose-bilkent-S5V4N54A-Bpcs2jA_.mjs +2246 -0
  53. package/dist/chunks/cpp-BdjvAny0.mjs +16 -0
  54. package/dist/chunks/csharp-YHxeHpeH.mjs +3 -0
  55. package/dist/chunks/css-DdLevFaX.mjs +3 -0
  56. package/dist/chunks/cytoscape.esm-BvD8wo00.mjs +18108 -0
  57. package/dist/chunks/dagre-CGNbYTKq.mjs +1536 -0
  58. package/dist/chunks/dagre-KV5264BT-DUD9ikgN.mjs +298 -0
  59. package/dist/chunks/dart-DrPWqfcC.mjs +3 -0
  60. package/dist/chunks/default-qigT1Xpq.mjs +4 -0
  61. package/dist/chunks/defaultLocale-ChuSeAxU.mjs +201 -0
  62. package/dist/chunks/diagram-5BDNPKRD-CZGfTYEe.mjs +112 -0
  63. package/dist/chunks/diagram-G4DWMVQ6-CuS0-h95.mjs +546 -0
  64. package/dist/chunks/diagram-MMDJMWI5-C-AEApYz.mjs +234 -0
  65. package/dist/chunks/diagram-TYMM5635-CiwAJVMq.mjs +144 -0
  66. package/dist/chunks/dist-Ctq-pyfb.mjs +59 -0
  67. package/dist/chunks/dockerfile-C68ALcaN.mjs +3 -0
  68. package/dist/chunks/engine-javascript-CJpnSvzf.mjs +2373 -0
  69. package/dist/chunks/erDiagram-SMLLAGMA-DeH5yck2.mjs +1712 -0
  70. package/dist/chunks/flowDiagram-DWJPFMVM-Cr6dwmQ5.mjs +4175 -0
  71. package/dist/chunks/ganttDiagram-T4ZO3ILL-K-divBg_.mjs +3083 -0
  72. package/dist/chunks/gitGraph-7Q5UKJZL-Dl-vQzrq.mjs +3 -0
  73. package/dist/chunks/gitGraphDiagram-UUTBAWPF-UytPZv72.mjs +792 -0
  74. package/dist/chunks/go-Fm5N96DN.mjs +3 -0
  75. package/dist/chunks/graphlib-Cye9EPNq.mjs +223 -0
  76. package/dist/chunks/graphql-BSnqmqgO.mjs +11 -0
  77. package/dist/chunks/html-BLNeZvnp.mjs +10 -0
  78. package/dist/chunks/{i18next-Ch0gVA3V.mjs → i18next-CXx5niYF.mjs} +1 -1
  79. package/dist/chunks/{i18next-loader-dH3UPF7S.mjs → i18next-loader-CwsYu0n6.mjs} +2 -2
  80. package/dist/chunks/info-OMHHGYJF-BOejJvJR.mjs +3 -0
  81. package/dist/chunks/infoDiagram-42DDH7IO-DuYnDbF3.mjs +29 -0
  82. package/dist/chunks/init-C6T-mugb.mjs +15 -0
  83. package/dist/chunks/ishikawaDiagram-UXIWVN3A-CHc59dLn.mjs +719 -0
  84. package/dist/chunks/java-83DWBpzu.mjs +5 -0
  85. package/dist/chunks/javascript-CBgeF1Xx.mjs +3 -0
  86. package/dist/chunks/journeyDiagram-VCZTEJTY-CD25C4_n.mjs +885 -0
  87. package/dist/chunks/json-BI17y-1H.mjs +3 -0
  88. package/dist/chunks/kanban-definition-6JOO6SKY-CTCT6N_p.mjs +980 -0
  89. package/dist/chunks/katex-CmTPfM0f.mjs +22026 -0
  90. package/dist/chunks/kotlin-DjnvsrfO.mjs +3 -0
  91. package/dist/chunks/latex-24n3TcOR.mjs +5 -0
  92. package/dist/chunks/{lightweight-i18n-1rbaxIZW.mjs → lightweight-i18n-Cvv8CWh4.mjs} +69 -2
  93. package/dist/chunks/line-Dct5pMmw.mjs +34 -0
  94. package/dist/chunks/linear-BRCpMvtr.mjs +289 -0
  95. package/dist/chunks/lua-DV0fuZWx.mjs +5 -0
  96. package/dist/chunks/markdown-BqQYT45f.mjs +3 -0
  97. package/dist/chunks/mdast-util-math-BlK2Zu-1.mjs +151 -0
  98. package/dist/chunks/mermaid-parser.core-CA3DKkuk.mjs +57 -0
  99. package/dist/chunks/mermaid-vF0cEnZ0.mjs +3 -0
  100. package/dist/chunks/mermaid.core-CA8nc1sZ.mjs +989 -0
  101. package/dist/{messages-DaOnbI6d.mjs → chunks/messages-8IHf7ZP3.mjs} +68 -1
  102. package/dist/chunks/{messages-C9aKfCro.mjs → messages-A_MkXDlG.mjs} +68 -1
  103. package/dist/{messages-BLEVLZve.mjs → chunks/messages-B0vPBsWq.mjs} +68 -1
  104. package/dist/chunks/{messages-C0hQPZmh2.mjs → messages-B2N4fUi72.mjs} +68 -1
  105. package/dist/{messages-HNAtlVax.mjs → chunks/messages-B4UMuyjT.mjs} +73 -6
  106. package/dist/chunks/{messages-DRUkmDVZ.mjs → messages-B9kmbUWV.mjs} +68 -1
  107. package/dist/{messages-Dbsx9m5q2.mjs → chunks/messages-BA8Iv99Y2.mjs} +68 -1
  108. package/dist/chunks/{messages-Da-SOTFW.mjs → messages-BAsb5CgZ.mjs} +68 -1
  109. package/dist/{messages-D1P0QGLz2.mjs → chunks/messages-BDZA10kl2.mjs} +68 -1
  110. package/dist/chunks/{messages-ComLU2T32.mjs → messages-BE6lHKwf.mjs} +68 -1
  111. package/dist/chunks/{messages-gaxTO-87.mjs → messages-BQYvBqm2.mjs} +68 -1
  112. package/dist/chunks/{messages-BwKs-9DF.mjs → messages-BSghd0ez.mjs} +68 -1
  113. package/dist/{messages-BPRR6TMf.mjs → chunks/messages-BUVhHx0q2.mjs} +68 -1
  114. package/dist/{messages-B7jZvo-m.mjs → chunks/messages-BVjoM7P0.mjs} +68 -1
  115. package/dist/{messages-C-4z1-Dh.mjs → chunks/messages-BXM80fdr2.mjs} +68 -1
  116. package/dist/{messages-Bm0nvUuj2.mjs → chunks/messages-BYlSMRkd.mjs} +68 -1
  117. package/dist/chunks/{messages-DLPrj3Dh.mjs → messages-BYxLFj7y.mjs} +68 -1
  118. package/dist/{messages-BRcLIBCd2.mjs → chunks/messages-BeFqtIrc2.mjs} +68 -1
  119. package/dist/{messages-zHkURG6V2.mjs → chunks/messages-Bfnq1xv4.mjs} +68 -1
  120. package/dist/chunks/{messages-Z762-GLL.mjs → messages-BhzzNkN-.mjs} +68 -1
  121. package/dist/chunks/{messages-COJ0CbVV2.mjs → messages-BjadX8jR2.mjs} +68 -1
  122. package/dist/{messages-B2ZwD4n9.mjs → chunks/messages-Bp8qin1R.mjs} +68 -1
  123. package/dist/chunks/{messages-DdEWnfAR.mjs → messages-Bphq_Bt3.mjs} +71 -4
  124. package/dist/{messages-CUDbNJG5.mjs → chunks/messages-Bxvi1ebN.mjs} +68 -1
  125. package/dist/chunks/{messages-B0t2L3bi.mjs → messages-C0HvoMPb.mjs} +68 -1
  126. package/dist/{messages-D6qfWi6H2.mjs → chunks/messages-C3aX3q0H.mjs} +68 -1
  127. package/dist/chunks/{messages-v9NkxRcL.mjs → messages-C6Mpiacw.mjs} +68 -1
  128. package/dist/chunks/{messages-CqZ9vFyx.mjs → messages-C7VGpihw.mjs} +69 -2
  129. package/dist/chunks/{messages-Yj4Q1_uX2.mjs → messages-CKBhDGI3.mjs} +69 -2
  130. package/dist/chunks/{messages-DxtnwNPo.mjs → messages-COO5xmcA.mjs} +68 -1
  131. package/dist/{messages-CZTcgUzd.mjs → chunks/messages-CSJ_zb3a2.mjs} +68 -1
  132. package/dist/{messages-A8aZS7d_2.mjs → chunks/messages-CSL-6xfb2.mjs} +68 -1
  133. package/dist/{messages-CxruHsuD2.mjs → chunks/messages-CVdpweyf2.mjs} +69 -2
  134. package/dist/{messages-D2Mf9z2D.mjs → chunks/messages-Cdf0W9H02.mjs} +68 -1
  135. package/dist/chunks/{messages-DAbCNake2.mjs → messages-Ck81cQkn2.mjs} +68 -1
  136. package/dist/chunks/{messages-Dyku8Cut.mjs → messages-Cmf6NhSC.mjs} +68 -1
  137. package/dist/chunks/{messages-DQ6bFum9.mjs → messages-Cs81Z_Bh.mjs} +68 -1
  138. package/dist/chunks/{messages-cegxHurd2.mjs → messages-Cu-Wevxs2.mjs} +68 -1
  139. package/dist/{messages-D2HwpoUE.mjs → chunks/messages-D3zojZ94.mjs} +69 -2
  140. package/dist/{messages-BfTBVFd9.mjs → chunks/messages-D55HRx5O2.mjs} +68 -1
  141. package/dist/chunks/{messages-Dl03jd4b2.mjs → messages-D9N2MvQx2.mjs} +68 -1
  142. package/dist/{messages-DfXh-i9o.mjs → chunks/messages-DG-4DPmP.mjs} +68 -1
  143. package/dist/chunks/{messages-DmJf9laH2.mjs → messages-DGL1ySqb2.mjs} +68 -1
  144. package/dist/chunks/{messages-DfU4yvkL.mjs → messages-DJoNVjqP.mjs} +68 -1
  145. package/dist/{messages-Bsd4ruEY.mjs → chunks/messages-DMVXnAYj.mjs} +70 -3
  146. package/dist/{messages-3WhPEFd7.mjs → chunks/messages-DOuS1Qge.mjs} +68 -1
  147. package/dist/chunks/{messages-B1kDfIN82.mjs → messages-DWu1r4gc2.mjs} +68 -1
  148. package/dist/{messages-Dtih3ffa2.mjs → chunks/messages-DlLXpgWM2.mjs} +68 -1
  149. package/dist/chunks/{messages-DKNULJpc.mjs → messages-DlonA3wa.mjs} +69 -2
  150. package/dist/{messages-C5pBfa_W.mjs → chunks/messages-Dr0Ekmbz.mjs} +81 -14
  151. package/dist/{messages-Du62vI49.mjs → chunks/messages-DzTk8bJ5.mjs} +68 -1
  152. package/dist/{messages-DNAp0U4l2.mjs → chunks/messages-FWfsxpBz.mjs} +68 -1
  153. package/dist/{messages-B2YeJw8s2.mjs → chunks/messages-G416eyjY.mjs} +68 -1
  154. package/dist/chunks/{messages-C5-aaU2b.mjs → messages-Je5YvxiY.mjs} +68 -1
  155. package/dist/chunks/{messages-DHHZUf_H2.mjs → messages-JyvWu4rf2.mjs} +68 -1
  156. package/dist/chunks/{messages-D_6vPBzT.mjs → messages-KdawW5Na.mjs} +68 -1
  157. package/dist/chunks/{messages-DnuhgHG0.mjs → messages-MxpWO1db.mjs} +68 -1
  158. package/dist/{messages-DT4rHATO2.mjs → chunks/messages-NEqrrYvE2.mjs} +68 -1
  159. package/dist/chunks/{messages-DeSSxLsh.mjs → messages-RInp1ytX.mjs} +68 -1
  160. package/dist/{messages-DfEPVRdJ.mjs → chunks/messages-TRUuyiFB.mjs} +68 -1
  161. package/dist/chunks/{messages--eH7tTJV2.mjs → messages-aZcy0JQq2.mjs} +68 -1
  162. package/dist/{messages-O6z1uabG.mjs → chunks/messages-iS34FHFB.mjs} +68 -1
  163. package/dist/{messages-BE0DjTEC.mjs → chunks/messages-ihCjSFJI2.mjs} +68 -1
  164. package/dist/chunks/{messages-_5Pg5fKy2.mjs → messages-jfVpL9c-2.mjs} +68 -1
  165. package/dist/chunks/{messages-CaRSYuhO.mjs → messages-p1mbe__S.mjs} +68 -1
  166. package/dist/chunks/{messages-BGssMBWM2.mjs → messages-rCd0Rrw6.mjs} +69 -2
  167. package/dist/{messages-COgvIEeW.mjs → chunks/messages-xuqyb6Ff2.mjs} +68 -1
  168. package/dist/chunks/micromark-extension-math-BbkUb36G.mjs +169 -0
  169. package/dist/chunks/micromark-factory-space-y4SDWQKm.mjs +36 -0
  170. package/dist/chunks/mindmap-definition-QFDTVHPH-hNnyBkEP.mjs +1013 -0
  171. package/dist/chunks/{notifier-Butv4Dvo.mjs → notifier-CuvTt9pe.mjs} +1 -1
  172. package/dist/chunks/objectWithoutProperties-D0XxKB4n.mjs +23 -0
  173. package/dist/chunks/one-light-DmNO_Y4X.mjs +4 -0
  174. package/dist/chunks/ordinal-B-kolV-i.mjs +65 -0
  175. package/dist/chunks/packet-4T2RLAQJ-B5ZMgwzZ.mjs +3 -0
  176. package/dist/chunks/path-rIMjg_tH.mjs +85 -0
  177. package/dist/chunks/php-DmXKyPwJ.mjs +18 -0
  178. package/dist/chunks/pie-ZZUOXDRM-B9l6y0XJ.mjs +3 -0
  179. package/dist/chunks/pieDiagram-DEJITSTG-Gw-fsc6U.mjs +179 -0
  180. package/dist/chunks/python-DfwfY9t5.mjs +3 -0
  181. package/dist/chunks/quadrantDiagram-34T5L4WZ-CQ5fGYI5.mjs +1960 -0
  182. package/dist/chunks/r-BD2D7qEW.mjs +5 -0
  183. package/dist/chunks/radar-PYXPWWZC-D5kYmUaB.mjs +3 -0
  184. package/dist/chunks/requirementDiagram-MS252O5E-DjWKB42c.mjs +2224 -0
  185. package/dist/chunks/rough.esm-cmMIcj7N.mjs +1353 -0
  186. package/dist/chunks/ruby-DdOo03Kg.mjs +33 -0
  187. package/dist/chunks/rust-DEDueB5R.mjs +3 -0
  188. package/dist/chunks/sankeyDiagram-XADWPNL6-BIN2evSB.mjs +909 -0
  189. package/dist/chunks/scala-CsjqvxE4.mjs +3 -0
  190. package/dist/chunks/sequenceDiagram-FGHM5R23-CQz2lMoS.mjs +4181 -0
  191. package/dist/chunks/shellscript-Bh5zEpnQ.mjs +3 -0
  192. package/dist/chunks/sql-D9CrOi1i.mjs +3 -0
  193. package/dist/chunks/src-DVJl6f6s.mjs +2149 -0
  194. package/dist/chunks/stateDiagram-FHFEXIEX-BIBFsF65.mjs +218 -0
  195. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-BZUmAVw7.mjs +28 -0
  196. package/dist/chunks/swift-Dpyt0s2c.mjs +3 -0
  197. package/dist/chunks/timeline-definition-GMOUNBTQ-CzvQ7Lav.mjs +1084 -0
  198. package/dist/chunks/{tools-nT6zA9QL.mjs → tools-CrRhWn8L.mjs} +3043 -1303
  199. package/dist/chunks/treeView-SZITEDCU-BNtnNxpI.mjs +3 -0
  200. package/dist/chunks/treemap-W4RFUUIX-DYENULz2.mjs +3 -0
  201. package/dist/chunks/typescript-DO5cd4m8.mjs +5 -0
  202. package/dist/chunks/vennDiagram-DHZGUBPP-B0DmLQqe.mjs +1876 -0
  203. package/dist/chunks/vitesse-dark-CcorSKT2.mjs +4 -0
  204. package/dist/chunks/wardley-RL74JXVD-ByNHVBTb.mjs +3 -0
  205. package/dist/chunks/wardleyDiagram-NUSXRM2D-CzoKesUw.mjs +594 -0
  206. package/dist/chunks/xml-g8kXXALs.mjs +5 -0
  207. package/dist/chunks/xychartDiagram-5P7HB3ND-CixwR8r2.mjs +2017 -0
  208. package/dist/chunks/yaml-CrNNZyLb.mjs +3 -0
  209. package/dist/cli.mjs +1 -1
  210. package/dist/full.mjs +14 -14
  211. package/dist/locales.mjs +135 -68
  212. package/dist/markdown.mjs +3954 -0
  213. package/dist/{messages-D_CUdqU12.mjs → messages-5jvKxQNu2.mjs} +68 -1
  214. package/dist/{chunks/messages-CFfpHyTU.mjs → messages-7QD-X6XT2.mjs} +68 -1
  215. package/dist/{messages-CdX1odk_2.mjs → messages-96iaAUds2.mjs} +68 -1
  216. package/dist/{messages-C8ca-jEa.mjs → messages-B19o-Teb.mjs} +69 -2
  217. package/dist/{messages-I03yFhup.mjs → messages-B1ZUQagA.mjs} +68 -1
  218. package/dist/{chunks/messages-BSw88lIo2.mjs → messages-B7ieAJBd2.mjs} +68 -1
  219. package/dist/{messages-sNSXCkeB.mjs → messages-BECMxmfX.mjs} +68 -1
  220. package/dist/{messages-DgGZsxBB.mjs → messages-BIHc0KHY.mjs} +68 -1
  221. package/dist/{messages-yZj20Fvf.mjs → messages-BIoeoik5.mjs} +68 -1
  222. package/dist/{chunks/messages-D8JFu42v.mjs → messages-BJeGJksD.mjs} +68 -1
  223. package/dist/{messages-BSLErTnW2.mjs → messages-BRZX964b2.mjs} +68 -1
  224. package/dist/{chunks/messages-BW8arxf72.mjs → messages-BTQPpoM42.mjs} +68 -1
  225. package/dist/{messages-C52AiyVV.mjs → messages-BYNcD6uR.mjs} +68 -1
  226. package/dist/{messages-BxJv0qBn2.mjs → messages-BYmmMDrN2.mjs} +68 -1
  227. package/dist/{messages-CoCy2JIP.mjs → messages-BbYq1pk-.mjs} +68 -1
  228. package/dist/{messages-Cnz_SHE32.mjs → messages-BiUGXvYr2.mjs} +68 -1
  229. package/dist/{chunks/messages-Dl6SVT1Z.mjs → messages-BiiongNz2.mjs} +68 -1
  230. package/dist/{chunks/messages-C912bk5I.mjs → messages-Bm0Feca1.mjs} +69 -2
  231. package/dist/{chunks/messages-CTuCPqpJ.mjs → messages-BmAn22OX.mjs} +68 -1
  232. package/dist/{messages-DdiPWkV8.mjs → messages-Bq3F2Tp_.mjs} +68 -1
  233. package/dist/{chunks/messages-DJxXZi1D2.mjs → messages-BsycN_JI2.mjs} +68 -1
  234. package/dist/{chunks/messages-OdEuBvgf.mjs → messages-BwHs4cm1.mjs} +70 -3
  235. package/dist/{chunks/messages-C4ZAJzBh.mjs → messages-CJTy6JZt.mjs} +68 -1
  236. package/dist/{chunks/messages-D2OZ9dbO.mjs → messages-CR_L_UtK.mjs} +68 -1
  237. package/dist/{messages-ypuLZyw12.mjs → messages-CSUHBs4c2.mjs} +68 -1
  238. package/dist/{chunks/messages-BkES2MDr2.mjs → messages-CWIXvnDf2.mjs} +68 -1
  239. package/dist/{messages-Cpeko5kB.mjs → messages-CcF4y-E4.mjs} +68 -1
  240. package/dist/{messages-BmnC-s4X.mjs → messages-Ce6KVEbT.mjs} +68 -1
  241. package/dist/{messages-DTNfG4ZH.mjs → messages-Ci0KqX-J.mjs} +71 -4
  242. package/dist/{chunks/messages-CGh56r-H2.mjs → messages-CjbnogEC.mjs} +68 -1
  243. package/dist/{messages-B3jq5Hpa.mjs → messages-CmB406HW.mjs} +69 -2
  244. package/dist/{chunks/messages-BsZz1Hnn2.mjs → messages-CqXtJTpU.mjs} +68 -1
  245. package/dist/{messages-DL000FUf2.mjs → messages-D0aw5_0k2.mjs} +68 -1
  246. package/dist/{chunks/messages-Df2RYuup2.mjs → messages-D8FQWulF2.mjs} +68 -1
  247. package/dist/{messages-CxHn7cs2.mjs → messages-DBiVgUs2.mjs} +68 -1
  248. package/dist/{chunks/messages-Dsapm4K9.mjs → messages-DIJlIqlQ2.mjs} +68 -1
  249. package/dist/{chunks/messages-517llQmh.mjs → messages-DLX_iBDJ.mjs} +68 -1
  250. package/dist/{chunks/messages-BG8Nq35G.mjs → messages-DLlc9QPw.mjs} +68 -1
  251. package/dist/{messages-cokJPuUp2.mjs → messages-DMr62KiO2.mjs} +68 -1
  252. package/dist/{chunks/messages-Dkp-Eyu02.mjs → messages-DPA-mMWC2.mjs} +68 -1
  253. package/dist/{chunks/messages-7uCUVFea.mjs → messages-DTh9a8mR.mjs} +68 -1
  254. package/dist/{messages-VBFioL2M.mjs → messages-DY4IqlhY.mjs} +68 -1
  255. package/dist/{chunks/messages-C4X0xP3h.mjs → messages-DYTTu0O12.mjs} +68 -1
  256. package/dist/{messages-diSPQ2Da2.mjs → messages-DbySKTKt2.mjs} +69 -2
  257. package/dist/{chunks/messages-BGE43_6M.mjs → messages-Ddnj2iTG2.mjs} +68 -1
  258. package/dist/{chunks/messages-BtUqUzMG2.mjs → messages-DkLU_rWm.mjs} +68 -1
  259. package/dist/{messages-DSX2HaeN2.mjs → messages-Dl3Sv6Rq2.mjs} +68 -1
  260. package/dist/{chunks/messages-BDvpl6Ox.mjs → messages-Dl5Y2-Ia.mjs} +81 -14
  261. package/dist/{chunks/messages-C7plNvNE2.mjs → messages-DnG0ef8t2.mjs} +69 -2
  262. package/dist/{chunks/messages-qS8tM3Dk.mjs → messages-DnGJD4TL.mjs} +68 -1
  263. package/dist/{messages-Ct468oX22.mjs → messages-Dnp9N6RU2.mjs} +68 -1
  264. package/dist/{chunks/messages-CjIA--kO.mjs → messages-Dvn35ksS.mjs} +68 -1
  265. package/dist/{messages-BRxNqmJ8.mjs → messages-Dw__BcTj.mjs} +68 -1
  266. package/dist/{chunks/messages-0zhE8A9X.mjs → messages-Dy-Y_nEI.mjs} +68 -1
  267. package/dist/{chunks/messages-CCH4OETw2.mjs → messages-E_ZuzGDt.mjs} +68 -1
  268. package/dist/{chunks/messages-DZzoT0T_.mjs → messages-F2xRoY1w.mjs} +68 -1
  269. package/dist/{chunks/messages-zGdqNZbH.mjs → messages-Smt4GBbj.mjs} +73 -6
  270. package/dist/{messages-CvIxHHp92.mjs → messages-aMXpHt5X2.mjs} +68 -1
  271. package/dist/{messages-C8JVJUp12.mjs → messages-aWZH50vu2.mjs} +68 -1
  272. package/dist/{messages-Phrqr7a6.mjs → messages-dv19AkyJ.mjs} +68 -1
  273. package/dist/{chunks/messages-DngM4hda2.mjs → messages-hWwSRF-2.mjs} +68 -1
  274. package/dist/{messages-DpGo_Da5.mjs → messages-j7o5rT9s.mjs} +68 -1
  275. package/dist/{messages-C6WJx6Z0.mjs → messages-nUVjeh7K.mjs} +68 -1
  276. package/dist/{messages-CbVilNPE.mjs → messages-nlhESX9t.mjs} +68 -1
  277. package/dist/{messages-C6o0FVy02.mjs → messages-rk-A1Wa42.mjs} +69 -2
  278. package/dist/{messages-D4mCIODv.mjs → messages-xh2eOLvs.mjs} +68 -1
  279. package/dist/{chunks/messages-Ct9UUOrl2.mjs → messages-ynAe7ewZ.mjs} +68 -1
  280. package/dist/react.mjs +26 -25
  281. package/dist/tools.mjs +3 -3
  282. package/dist/vendor.LICENSE.txt +5404 -80
  283. package/package.json +16 -1
  284. package/src/components/blocks.ts +26 -1
  285. package/src/components/constants/data-attributes.ts +2 -2
  286. package/src/components/i18n/locales/am/messages.json +68 -1
  287. package/src/components/i18n/locales/ar/messages.json +68 -1
  288. package/src/components/i18n/locales/az/messages.json +68 -1
  289. package/src/components/i18n/locales/bg/messages.json +68 -1
  290. package/src/components/i18n/locales/bn/messages.json +68 -1
  291. package/src/components/i18n/locales/bs/messages.json +69 -2
  292. package/src/components/i18n/locales/cs/messages.json +70 -3
  293. package/src/components/i18n/locales/da/messages.json +71 -4
  294. package/src/components/i18n/locales/de/messages.json +73 -6
  295. package/src/components/i18n/locales/dv/messages.json +68 -1
  296. package/src/components/i18n/locales/el/messages.json +68 -1
  297. package/src/components/i18n/locales/en/messages.json +68 -1
  298. package/src/components/i18n/locales/es/messages.json +68 -1
  299. package/src/components/i18n/locales/et/messages.json +69 -2
  300. package/src/components/i18n/locales/fa/messages.json +68 -1
  301. package/src/components/i18n/locales/fi/messages.json +68 -1
  302. package/src/components/i18n/locales/fil/messages.json +81 -14
  303. package/src/components/i18n/locales/fr/messages.json +68 -1
  304. package/src/components/i18n/locales/gu/messages.json +68 -1
  305. package/src/components/i18n/locales/he/messages.json +68 -1
  306. package/src/components/i18n/locales/hi/messages.json +68 -1
  307. package/src/components/i18n/locales/hr/messages.json +69 -2
  308. package/src/components/i18n/locales/hu/messages.json +68 -1
  309. package/src/components/i18n/locales/hy/messages.json +68 -1
  310. package/src/components/i18n/locales/id/messages.json +68 -1
  311. package/src/components/i18n/locales/it/messages.json +68 -1
  312. package/src/components/i18n/locales/ja/messages.json +68 -1
  313. package/src/components/i18n/locales/ka/messages.json +68 -1
  314. package/src/components/i18n/locales/km/messages.json +68 -1
  315. package/src/components/i18n/locales/kn/messages.json +68 -1
  316. package/src/components/i18n/locales/ko/messages.json +68 -1
  317. package/src/components/i18n/locales/ku/messages.json +68 -1
  318. package/src/components/i18n/locales/lo/messages.json +68 -1
  319. package/src/components/i18n/locales/lt/messages.json +68 -1
  320. package/src/components/i18n/locales/lv/messages.json +68 -1
  321. package/src/components/i18n/locales/mk/messages.json +68 -1
  322. package/src/components/i18n/locales/ml/messages.json +68 -1
  323. package/src/components/i18n/locales/mn/messages.json +68 -1
  324. package/src/components/i18n/locales/mr/messages.json +68 -1
  325. package/src/components/i18n/locales/ms/messages.json +69 -2
  326. package/src/components/i18n/locales/my/messages.json +68 -1
  327. package/src/components/i18n/locales/ne/messages.json +68 -1
  328. package/src/components/i18n/locales/nl/messages.json +68 -1
  329. package/src/components/i18n/locales/no/messages.json +68 -1
  330. package/src/components/i18n/locales/pa/messages.json +68 -1
  331. package/src/components/i18n/locales/pl/messages.json +68 -1
  332. package/src/components/i18n/locales/ps/messages.json +68 -1
  333. package/src/components/i18n/locales/pt/messages.json +68 -1
  334. package/src/components/i18n/locales/ro/messages.json +68 -1
  335. package/src/components/i18n/locales/ru/messages.json +68 -1
  336. package/src/components/i18n/locales/sd/messages.json +68 -1
  337. package/src/components/i18n/locales/si/messages.json +68 -1
  338. package/src/components/i18n/locales/sk/messages.json +69 -2
  339. package/src/components/i18n/locales/sl/messages.json +69 -2
  340. package/src/components/i18n/locales/sq/messages.json +68 -1
  341. package/src/components/i18n/locales/sr/messages.json +68 -1
  342. package/src/components/i18n/locales/sv/messages.json +68 -1
  343. package/src/components/i18n/locales/sw/messages.json +68 -1
  344. package/src/components/i18n/locales/ta/messages.json +68 -1
  345. package/src/components/i18n/locales/te/messages.json +68 -1
  346. package/src/components/i18n/locales/th/messages.json +68 -1
  347. package/src/components/i18n/locales/tr/messages.json +68 -1
  348. package/src/components/i18n/locales/ug/messages.json +68 -1
  349. package/src/components/i18n/locales/uk/messages.json +68 -1
  350. package/src/components/i18n/locales/ur/messages.json +68 -1
  351. package/src/components/i18n/locales/vi/messages.json +68 -1
  352. package/src/components/i18n/locales/yi/messages.json +68 -1
  353. package/src/components/i18n/locales/zh/messages.json +68 -1
  354. package/src/components/icons/index.ts +78 -0
  355. package/src/components/inline-tools/inline-tool-code.ts +399 -0
  356. package/src/components/modules/api/blocks.ts +17 -0
  357. package/src/components/modules/api/ui.ts +0 -3
  358. package/src/components/modules/blockEvents/composers/blockSelectionKeys.ts +20 -3
  359. package/src/components/modules/paste/handlers/html-handler.ts +13 -10
  360. package/src/components/modules/paste/handlers/index.ts +1 -0
  361. package/src/components/modules/paste/index.ts +6 -0
  362. package/src/components/modules/renderer.ts +17 -0
  363. package/src/components/modules/ui.ts +1 -13
  364. package/src/components/ui/toolbox.ts +9 -0
  365. package/src/components/utils/caret/boundaries.ts +15 -4
  366. package/src/components/utils/popover/popover-desktop.ts +11 -0
  367. package/src/markdown/index.ts +63 -0
  368. package/src/markdown/markdown-handler.ts +110 -0
  369. package/src/markdown/mdast-to-blocks.ts +418 -0
  370. package/src/markdown/phrasing-to-html.ts +60 -0
  371. package/src/markdown/types.ts +42 -0
  372. package/src/stories/EditorModes.stories.ts +0 -60
  373. package/src/styles/main.css +57 -2
  374. package/src/tools/callout/constants.ts +2 -1
  375. package/src/tools/callout/emoji-picker/index.ts +41 -2
  376. package/src/tools/callout/index.ts +25 -0
  377. package/src/tools/code/code-keyboard.ts +142 -0
  378. package/src/tools/code/constants.ts +96 -0
  379. package/src/tools/code/dom-builder.ts +181 -0
  380. package/src/tools/code/highlight-applier.ts +229 -0
  381. package/src/tools/code/index.ts +462 -0
  382. package/src/tools/code/katex-loader.ts +50 -0
  383. package/src/tools/code/language-picker.ts +241 -0
  384. package/src/tools/code/mermaid-loader.ts +45 -0
  385. package/src/tools/code/shiki-loader.ts +135 -0
  386. package/src/tools/divider/index.ts +11 -2
  387. package/src/tools/header/index.ts +2 -0
  388. package/src/tools/index.ts +6 -0
  389. package/src/tools/list/block-operations.ts +3 -1
  390. package/src/tools/list/depth-validator.ts +4 -7
  391. package/src/tools/list/dom-builder.ts +5 -3
  392. package/src/tools/list/index.ts +21 -3
  393. package/src/tools/list/list-helpers.ts +9 -2
  394. package/src/tools/list/list-keyboard.ts +56 -14
  395. package/src/tools/list/list-lifecycle.ts +3 -1
  396. package/src/tools/list/marker-calculator.ts +37 -0
  397. package/src/tools/list/ordered-marker-manager.ts +4 -2
  398. package/src/tools/list/style-config.ts +3 -0
  399. package/src/tools/paragraph/index.ts +1 -0
  400. package/src/tools/quote/index.ts +229 -0
  401. package/src/tools/table/core/table-commands.ts +16 -0
  402. package/src/tools/table/core/table-controller.ts +29 -0
  403. package/src/tools/table/core/table-events.ts +17 -0
  404. package/src/tools/table/index.ts +220 -14
  405. package/src/tools/table/table-cell-blocks.ts +51 -6
  406. package/src/tools/table/table-cell-clipboard.ts +7 -2
  407. package/src/tools/table/table-cell-placement-picker.ts +133 -0
  408. package/src/tools/table/table-cell-selection.ts +174 -19
  409. package/src/tools/table/table-core.ts +321 -113
  410. package/src/tools/table/table-map.ts +279 -0
  411. package/src/tools/table/table-model.ts +901 -1
  412. package/src/tools/table/table-operations.ts +87 -44
  413. package/src/tools/table/table-resize.ts +19 -17
  414. package/src/tools/table/table-row-col-drag.ts +24 -10
  415. package/src/tools/table/types.ts +24 -2
  416. package/src/tools/toggle/index.ts +1 -0
  417. package/types/configs/blok-config.d.ts +7 -0
  418. package/types/data-attributes.d.ts +0 -1
  419. package/types/markdown.d.ts +2 -0
  420. package/types/tools/callout.d.ts +16 -0
  421. package/types/tools/code.d.ts +13 -0
  422. package/types/tools/quote.d.ts +13 -0
  423. package/types/tools/tool-settings.d.ts +7 -0
  424. package/types/tools-entry.d.ts +7 -0
  425. /package/dist/chunks/{am-CHDDMHkd.mjs → am-BxlkYGsI.mjs} +0 -0
  426. /package/dist/chunks/{ar-DoqfNqut.mjs → ar-9vlpr9V8.mjs} +0 -0
  427. /package/dist/chunks/{az-C34P9iEa.mjs → az-ON63W_FP.mjs} +0 -0
  428. /package/dist/chunks/{bg-jroXLY8Y.mjs → bg-CtXWTP5w.mjs} +0 -0
  429. /package/dist/chunks/{bn-BRI-WqxY.mjs → bn-BERvhXM4.mjs} +0 -0
  430. /package/dist/chunks/{bs-CCGUpNHu.mjs → bs-CBg8NVPG.mjs} +0 -0
  431. /package/dist/chunks/{cs-D5qZOGuc.mjs → cs-DeQddxS7.mjs} +0 -0
  432. /package/dist/chunks/{da-DrJ7W37K.mjs → da-DyTo-ec_.mjs} +0 -0
  433. /package/dist/chunks/{de-BW6-kp2c.mjs → de-Cu7545m1.mjs} +0 -0
  434. /package/dist/chunks/{el-C-Vc_Otu.mjs → el-oiubLRBq.mjs} +0 -0
  435. /package/dist/chunks/{es-B6fI5K9i.mjs → es-DZUC6Klv.mjs} +0 -0
  436. /package/dist/chunks/{et-BhVlZ-Yz.mjs → et-CDeklAog.mjs} +0 -0
  437. /package/dist/chunks/{fa-D55Ijdqa.mjs → fa-Cafp7_Li.mjs} +0 -0
  438. /package/dist/chunks/{fi-jNLjhKUQ.mjs → fi-BD_V_aVW.mjs} +0 -0
  439. /package/dist/chunks/{fil-DYd0T5aX.mjs → fil-Crsfbtx4.mjs} +0 -0
  440. /package/dist/chunks/{fr-yxy5xWw_.mjs → fr-BGGc04Zv.mjs} +0 -0
  441. /package/dist/chunks/{gu-CcY_LJe7.mjs → gu-Vg_BgCTp.mjs} +0 -0
  442. /package/dist/chunks/{he-DL9s7wNw.mjs → he-DTY9chlZ.mjs} +0 -0
  443. /package/dist/chunks/{hi-C8eGXgw5.mjs → hi-DChMXk0x.mjs} +0 -0
  444. /package/dist/chunks/{hr-DLpybOhU.mjs → hr-BWVgNU8k.mjs} +0 -0
  445. /package/dist/chunks/{hu-BkT0gT00.mjs → hu-B37awHXA.mjs} +0 -0
  446. /package/dist/chunks/{hy-CVFDCp2S.mjs → hy-DGC_GDHh.mjs} +0 -0
  447. /package/dist/chunks/{id-0P4W9Az0.mjs → id-V7cw6La2.mjs} +0 -0
  448. /package/dist/chunks/{it-mLY6_uoW.mjs → it-DrTGP8Rn.mjs} +0 -0
  449. /package/dist/chunks/{ja-7RkeRNWG.mjs → ja-DS4pbJEG.mjs} +0 -0
  450. /package/dist/chunks/{ka-C7Lx-Qsh.mjs → ka-BueyosRh.mjs} +0 -0
  451. /package/dist/chunks/{km-Q8udaraH.mjs → km-B0K891yW.mjs} +0 -0
  452. /package/dist/chunks/{kn-BiETM-iq.mjs → kn-BQ__skg8.mjs} +0 -0
  453. /package/dist/chunks/{ko-tiB80pF1.mjs → ko-BuPxi_7e.mjs} +0 -0
  454. /package/dist/chunks/{ku-CY-OABkR.mjs → ku-nQjwPRw2.mjs} +0 -0
  455. /package/dist/chunks/{lo-CTBhEnyk.mjs → lo-K5NVFoq1.mjs} +0 -0
  456. /package/dist/chunks/{lt-BHKHEtqK.mjs → lt-D3xD6Eb2.mjs} +0 -0
  457. /package/dist/chunks/{lv-DWxgtfUg.mjs → lv-DH13mzZj.mjs} +0 -0
  458. /package/dist/chunks/{mk-BjookGdx.mjs → mk-Bb48BcDA.mjs} +0 -0
  459. /package/dist/chunks/{ml-L-NnZcp9.mjs → ml-BHPEj1kD.mjs} +0 -0
  460. /package/dist/chunks/{mn-OMWi7Hl_.mjs → mn-BNGzpdI6.mjs} +0 -0
  461. /package/dist/chunks/{mr-B6JPzITo.mjs → mr-D5PgU-cH.mjs} +0 -0
  462. /package/dist/chunks/{ms-CG3S-sPB.mjs → ms-DPkxqKz5.mjs} +0 -0
  463. /package/dist/chunks/{my-BLAmGfhT.mjs → my-DZGcyfxy.mjs} +0 -0
  464. /package/dist/chunks/{native-BPcABu9z.mjs → native-D0cfLXsM.mjs} +0 -0
  465. /package/dist/chunks/{ne-D1JHLfYw.mjs → ne-BU_Wh4Wv.mjs} +0 -0
  466. /package/dist/chunks/{nl-Ca7Q8FnY.mjs → nl-DtAPk1mK.mjs} +0 -0
  467. /package/dist/chunks/{no-Coxcohcz.mjs → no-CdW3n3BY.mjs} +0 -0
  468. /package/dist/chunks/{objectSpread2-CyPxu8-u.mjs → objectSpread2-CWwMYL_U.mjs} +0 -0
  469. /package/dist/chunks/{pa-CCaXqpaI.mjs → pa-BacCHz87.mjs} +0 -0
  470. /package/dist/chunks/{pl-Cl_fAZ84.mjs → pl-8zBJbmhZ.mjs} +0 -0
  471. /package/dist/chunks/{ps-WD5qGAWy.mjs → ps-c6nGXD-W.mjs} +0 -0
  472. /package/dist/chunks/{pt-C4zvLfvq.mjs → pt-B5yR8Qhr.mjs} +0 -0
  473. /package/dist/chunks/{ro-DbefHcmM.mjs → ro-Nscylsqb.mjs} +0 -0
  474. /package/dist/chunks/{ru-uU1J14jd.mjs → ru-DxERQkVJ.mjs} +0 -0
  475. /package/dist/chunks/{sd-DKu368Ip.mjs → sd-5z-QY3q9.mjs} +0 -0
  476. /package/dist/chunks/{si-BsJCiPkZ.mjs → si-DTL0mzrx.mjs} +0 -0
  477. /package/dist/chunks/{sk-CD-a3SN6.mjs → sk-DrGczTvY.mjs} +0 -0
  478. /package/dist/chunks/{sl-CXhrPJe_.mjs → sl-D8nJjig4.mjs} +0 -0
  479. /package/dist/chunks/{sq-CTctCoFQ.mjs → sq-C74Hm3YL.mjs} +0 -0
  480. /package/dist/chunks/{sr-BZkhBwXj.mjs → sr-DAwB05Gj.mjs} +0 -0
  481. /package/dist/chunks/{sv-NmRZb_xi.mjs → sv-BkHBsN4y.mjs} +0 -0
  482. /package/dist/chunks/{sw-Be5ik3H6.mjs → sw-BBQLTq_z.mjs} +0 -0
  483. /package/dist/chunks/{ta-DsXh6neL.mjs → ta-DRRzdKky.mjs} +0 -0
  484. /package/dist/chunks/{te-CwpCbM8M.mjs → te-CedXLsKM.mjs} +0 -0
  485. /package/dist/chunks/{th-CcZ15OLk.mjs → th-DDOlGA0W.mjs} +0 -0
  486. /package/dist/chunks/{tr-q3bTgvhW.mjs → tr-ClgvwOlL.mjs} +0 -0
  487. /package/dist/chunks/{tw-DmW6-pCY.mjs → tw-CqxBf-1Y.mjs} +0 -0
  488. /package/dist/chunks/{ug-919EhLsL.mjs → ug-bXxwiinM.mjs} +0 -0
  489. /package/dist/chunks/{uk-aNMEzd0Y.mjs → uk-Dp46o_VT.mjs} +0 -0
  490. /package/dist/chunks/{ur-BwQI77sh.mjs → ur-MfEEhdFq.mjs} +0 -0
  491. /package/dist/chunks/{vi-Dxq806-F.mjs → vi-bt-3LPGO.mjs} +0 -0
  492. /package/dist/chunks/{zh-BcHuy1Ti.mjs → zh-Dgyb5Ly8.mjs} +0 -0
@@ -0,0 +1,3954 @@
1
+ import { r as e } from "./chunks/chunk-D6kmoKXy.mjs";
2
+ import { t } from "./chunks/objectSpread2-CWwMYL_U.mjs";
3
+ import { a as n, c as r, d as i, f as a, i as o, l as s, n as c, o as l, p as u, r as d, s as f, t as p, u as m } from "./chunks/micromark-factory-space-y4SDWQKm.mjs";
4
+ import { t as h } from "./chunks/ccount-C9Y7nqDe.mjs";
5
+ import "./chunks/default-qigT1Xpq.mjs";
6
+ //#region node_modules/mdast-util-to-string/lib/index.js
7
+ var g = {};
8
+ function _(e, t) {
9
+ let n = t || g;
10
+ return v(e, typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, typeof n.includeHtml == "boolean" ? n.includeHtml : !0);
11
+ }
12
+ function v(e, t, n) {
13
+ if (b(e)) {
14
+ if ("value" in e) return e.type === "html" && !n ? "" : e.value;
15
+ if (t && "alt" in e && e.alt) return e.alt;
16
+ if ("children" in e) return y(e.children, t, n);
17
+ }
18
+ return Array.isArray(e) ? y(e, t, n) : "";
19
+ }
20
+ function y(e, t, n) {
21
+ let r = [], i = -1;
22
+ for (; ++i < e.length;) r[i] = v(e[i], t, n);
23
+ return r.join("");
24
+ }
25
+ function b(e) {
26
+ return !!(e && typeof e == "object");
27
+ }
28
+ //#endregion
29
+ //#region node_modules/decode-named-character-reference/index.dom.js
30
+ var x = document.createElement("i");
31
+ function S(e) {
32
+ let t = "&" + e + ";";
33
+ x.innerHTML = t;
34
+ let n = x.textContent;
35
+ return n.charCodeAt(n.length - 1) === 59 && e !== "semi" || n === t ? !1 : n;
36
+ }
37
+ //#endregion
38
+ //#region node_modules/micromark-util-chunked/index.js
39
+ function C(e, t, n, r) {
40
+ let i = e.length, a = 0, o;
41
+ if (t = t < 0 ? -t > i ? 0 : i + t : t > i ? i : t, n = n > 0 ? n : 0, r.length < 1e4) o = Array.from(r), o.unshift(t, n), e.splice(...o);
42
+ else for (n && e.splice(t, n); a < r.length;) o = r.slice(a, a + 1e4), o.unshift(t, 0), e.splice(...o), a += 1e4, t += 1e4;
43
+ }
44
+ function w(e, t) {
45
+ return e.length > 0 ? (C(e, e.length, 0, t), e) : t;
46
+ }
47
+ //#endregion
48
+ //#region node_modules/micromark-util-combine-extensions/index.js
49
+ var T = {}.hasOwnProperty;
50
+ function E(e) {
51
+ let t = {}, n = -1;
52
+ for (; ++n < e.length;) D(t, e[n]);
53
+ return t;
54
+ }
55
+ function D(e, t) {
56
+ let n;
57
+ for (n in t) {
58
+ let r = (T.call(e, n) ? e[n] : void 0) || (e[n] = {}), i = t[n], a;
59
+ if (i) for (a in i) {
60
+ T.call(r, a) || (r[a] = []);
61
+ let e = i[a];
62
+ O(r[a], Array.isArray(e) ? e : e ? [e] : []);
63
+ }
64
+ }
65
+ }
66
+ function O(e, t) {
67
+ let n = -1, r = [];
68
+ for (; ++n < t.length;) (t[n].add === "after" ? e : r).push(t[n]);
69
+ C(e, 0, 0, r);
70
+ }
71
+ //#endregion
72
+ //#region node_modules/micromark-util-decode-numeric-character-reference/index.js
73
+ function k(e, t) {
74
+ let n = Number.parseInt(e, t);
75
+ return n < 9 || n === 11 || n > 13 && n < 32 || n > 126 && n < 160 || n > 55295 && n < 57344 || n > 64975 && n < 65008 || (n & 65535) == 65535 || (n & 65535) == 65534 || n > 1114111 ? "�" : String.fromCodePoint(n);
76
+ }
77
+ //#endregion
78
+ //#region node_modules/micromark-util-normalize-identifier/index.js
79
+ function A(e) {
80
+ return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
81
+ }
82
+ //#endregion
83
+ //#region node_modules/micromark/lib/initialize/content.js
84
+ var j = { tokenize: M };
85
+ function M(e) {
86
+ let t = e.attempt(this.parser.constructs.contentInitial, r, i), n;
87
+ return t;
88
+ function r(n) {
89
+ if (n === null) {
90
+ e.consume(n);
91
+ return;
92
+ }
93
+ return e.enter("lineEnding"), e.consume(n), e.exit("lineEnding"), p(e, t, "linePrefix");
94
+ }
95
+ function i(t) {
96
+ return e.enter("paragraph"), a(t);
97
+ }
98
+ function a(t) {
99
+ let r = e.enter("chunkText", {
100
+ contentType: "text",
101
+ previous: n
102
+ });
103
+ return n && (n.next = r), n = r, o(t);
104
+ }
105
+ function o(t) {
106
+ if (t === null) {
107
+ e.exit("chunkText"), e.exit("paragraph"), e.consume(t);
108
+ return;
109
+ }
110
+ return s(t) ? (e.consume(t), e.exit("chunkText"), a) : (e.consume(t), o);
111
+ }
112
+ }
113
+ //#endregion
114
+ //#region node_modules/micromark/lib/initialize/document.js
115
+ var N = { tokenize: F }, P = { tokenize: ee };
116
+ function F(e) {
117
+ let n = this, r = [], i = 0, a, o, c;
118
+ return l;
119
+ function l(t) {
120
+ if (i < r.length) {
121
+ let a = r[i];
122
+ return n.containerState = a[1], e.attempt(a[0].continuation, u, d)(t);
123
+ }
124
+ return d(t);
125
+ }
126
+ function u(e) {
127
+ if (i++, n.containerState._closeFlow) {
128
+ n.containerState._closeFlow = void 0, a && b();
129
+ let r = n.events.length, o = r, s;
130
+ for (; o--;) if (n.events[o][0] === "exit" && n.events[o][1].type === "chunkFlow") {
131
+ s = n.events[o][1].end;
132
+ break;
133
+ }
134
+ y(i);
135
+ let c = r;
136
+ for (; c < n.events.length;) n.events[c][1].end = t({}, s), c++;
137
+ return C(n.events, o + 1, 0, n.events.slice(r)), n.events.length = c, d(e);
138
+ }
139
+ return l(e);
140
+ }
141
+ function d(t) {
142
+ if (i === r.length) {
143
+ if (!a) return m(t);
144
+ if (a.currentConstruct && a.currentConstruct.concrete) return g(t);
145
+ n.interrupt = !!(a.currentConstruct && !a._gfmTableDynamicInterruptHack);
146
+ }
147
+ return n.containerState = {}, e.check(P, f, p)(t);
148
+ }
149
+ function f(e) {
150
+ return a && b(), y(i), m(e);
151
+ }
152
+ function p(e) {
153
+ return n.parser.lazy[n.now().line] = i !== r.length, c = n.now().offset, g(e);
154
+ }
155
+ function m(t) {
156
+ return n.containerState = {}, e.attempt(P, h, g)(t);
157
+ }
158
+ function h(e) {
159
+ return i++, r.push([n.currentConstruct, n.containerState]), m(e);
160
+ }
161
+ function g(t) {
162
+ if (t === null) {
163
+ a && b(), y(0), e.consume(t);
164
+ return;
165
+ }
166
+ return a = a || n.parser.flow(n.now()), e.enter("chunkFlow", {
167
+ _tokenizer: a,
168
+ contentType: "flow",
169
+ previous: o
170
+ }), _(t);
171
+ }
172
+ function _(t) {
173
+ if (t === null) {
174
+ v(e.exit("chunkFlow"), !0), y(0), e.consume(t);
175
+ return;
176
+ }
177
+ return s(t) ? (e.consume(t), v(e.exit("chunkFlow")), i = 0, n.interrupt = void 0, l) : (e.consume(t), _);
178
+ }
179
+ function v(e, r) {
180
+ let s = n.sliceStream(e);
181
+ if (r && s.push(null), e.previous = o, o && (o.next = e), o = e, a.defineSkip(e.start), a.write(s), n.parser.lazy[e.start.line]) {
182
+ let e = a.events.length;
183
+ for (; e--;) if (a.events[e][1].start.offset < c && (!a.events[e][1].end || a.events[e][1].end.offset > c)) return;
184
+ let r = n.events.length, o = r, s, l;
185
+ for (; o--;) if (n.events[o][0] === "exit" && n.events[o][1].type === "chunkFlow") {
186
+ if (s) {
187
+ l = n.events[o][1].end;
188
+ break;
189
+ }
190
+ s = !0;
191
+ }
192
+ for (y(i), e = r; e < n.events.length;) n.events[e][1].end = t({}, l), e++;
193
+ C(n.events, o + 1, 0, n.events.slice(r)), n.events.length = e;
194
+ }
195
+ }
196
+ function y(t) {
197
+ let i = r.length;
198
+ for (; i-- > t;) {
199
+ let t = r[i];
200
+ n.containerState = t[1], t[0].exit.call(n, e);
201
+ }
202
+ r.length = t;
203
+ }
204
+ function b() {
205
+ a.write([null]), o = void 0, a = void 0, n.containerState._closeFlow = void 0;
206
+ }
207
+ }
208
+ function ee(e, t, n) {
209
+ return p(e, e.attempt(this.parser.constructs.document, t, n), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
210
+ }
211
+ //#endregion
212
+ //#region node_modules/micromark-util-classify-character/index.js
213
+ function I(e) {
214
+ if (e === null || m(e) || u(e)) return 1;
215
+ if (a(e)) return 2;
216
+ }
217
+ //#endregion
218
+ //#region node_modules/micromark-util-resolve-all/index.js
219
+ function L(e, t, n) {
220
+ let r = [], i = -1;
221
+ for (; ++i < e.length;) {
222
+ let a = e[i].resolveAll;
223
+ a && !r.includes(a) && (t = a(t, n), r.push(a));
224
+ }
225
+ return t;
226
+ }
227
+ //#endregion
228
+ //#region node_modules/micromark-core-commonmark/lib/attention.js
229
+ var R = {
230
+ name: "attention",
231
+ resolveAll: te,
232
+ tokenize: z
233
+ };
234
+ function te(e, n) {
235
+ let r = -1, i, a, o, s, c, l, u, d;
236
+ for (; ++r < e.length;) if (e[r][0] === "enter" && e[r][1].type === "attentionSequence" && e[r][1]._close) {
237
+ for (i = r; i--;) if (e[i][0] === "exit" && e[i][1].type === "attentionSequence" && e[i][1]._open && n.sliceSerialize(e[i][1]).charCodeAt(0) === n.sliceSerialize(e[r][1]).charCodeAt(0)) {
238
+ if ((e[i][1]._close || e[r][1]._open) && (e[r][1].end.offset - e[r][1].start.offset) % 3 && !((e[i][1].end.offset - e[i][1].start.offset + e[r][1].end.offset - e[r][1].start.offset) % 3)) continue;
239
+ l = e[i][1].end.offset - e[i][1].start.offset > 1 && e[r][1].end.offset - e[r][1].start.offset > 1 ? 2 : 1;
240
+ let f = t({}, e[i][1].end), p = t({}, e[r][1].start);
241
+ B(f, -l), B(p, l), s = {
242
+ type: l > 1 ? "strongSequence" : "emphasisSequence",
243
+ start: f,
244
+ end: t({}, e[i][1].end)
245
+ }, c = {
246
+ type: l > 1 ? "strongSequence" : "emphasisSequence",
247
+ start: t({}, e[r][1].start),
248
+ end: p
249
+ }, o = {
250
+ type: l > 1 ? "strongText" : "emphasisText",
251
+ start: t({}, e[i][1].end),
252
+ end: t({}, e[r][1].start)
253
+ }, a = {
254
+ type: l > 1 ? "strong" : "emphasis",
255
+ start: t({}, s.start),
256
+ end: t({}, c.end)
257
+ }, e[i][1].end = t({}, s.start), e[r][1].start = t({}, c.end), u = [], e[i][1].end.offset - e[i][1].start.offset && (u = w(u, [[
258
+ "enter",
259
+ e[i][1],
260
+ n
261
+ ], [
262
+ "exit",
263
+ e[i][1],
264
+ n
265
+ ]])), u = w(u, [
266
+ [
267
+ "enter",
268
+ a,
269
+ n
270
+ ],
271
+ [
272
+ "enter",
273
+ s,
274
+ n
275
+ ],
276
+ [
277
+ "exit",
278
+ s,
279
+ n
280
+ ],
281
+ [
282
+ "enter",
283
+ o,
284
+ n
285
+ ]
286
+ ]), u = w(u, L(n.parser.constructs.insideSpan.null, e.slice(i + 1, r), n)), u = w(u, [
287
+ [
288
+ "exit",
289
+ o,
290
+ n
291
+ ],
292
+ [
293
+ "enter",
294
+ c,
295
+ n
296
+ ],
297
+ [
298
+ "exit",
299
+ c,
300
+ n
301
+ ],
302
+ [
303
+ "exit",
304
+ a,
305
+ n
306
+ ]
307
+ ]), e[r][1].end.offset - e[r][1].start.offset ? (d = 2, u = w(u, [[
308
+ "enter",
309
+ e[r][1],
310
+ n
311
+ ], [
312
+ "exit",
313
+ e[r][1],
314
+ n
315
+ ]])) : d = 0, C(e, i - 1, r - i + 3, u), r = i + u.length - d - 2;
316
+ break;
317
+ }
318
+ }
319
+ for (r = -1; ++r < e.length;) e[r][1].type === "attentionSequence" && (e[r][1].type = "data");
320
+ return e;
321
+ }
322
+ function z(e, t) {
323
+ let n = this.parser.constructs.attentionMarkers.null, r = this.previous, i = I(r), a;
324
+ return o;
325
+ function o(t) {
326
+ return a = t, e.enter("attentionSequence"), s(t);
327
+ }
328
+ function s(o) {
329
+ if (o === a) return e.consume(o), s;
330
+ let c = e.exit("attentionSequence"), l = I(o), u = !l || l === 2 && i || n.includes(o), d = !i || i === 2 && l || n.includes(r);
331
+ return c._open = !!(a === 42 ? u : u && (i || !d)), c._close = !!(a === 42 ? d : d && (l || !u)), t(o);
332
+ }
333
+ }
334
+ function B(e, t) {
335
+ e.column += t, e.offset += t, e._bufferIndex += t;
336
+ }
337
+ //#endregion
338
+ //#region node_modules/micromark-core-commonmark/lib/autolink.js
339
+ var V = {
340
+ name: "autolink",
341
+ tokenize: ne
342
+ };
343
+ function ne(e, t, r) {
344
+ let i = 0;
345
+ return a;
346
+ function a(t) {
347
+ return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(t), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), s;
348
+ }
349
+ function s(t) {
350
+ return c(t) ? (e.consume(t), l) : t === 64 ? r(t) : p(t);
351
+ }
352
+ function l(e) {
353
+ return e === 43 || e === 45 || e === 46 || d(e) ? (i = 1, u(e)) : p(e);
354
+ }
355
+ function u(t) {
356
+ return t === 58 ? (e.consume(t), i = 0, f) : (t === 43 || t === 45 || t === 46 || d(t)) && i++ < 32 ? (e.consume(t), u) : (i = 0, p(t));
357
+ }
358
+ function f(i) {
359
+ return i === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(i), e.exit("autolinkMarker"), e.exit("autolink"), t) : i === null || i === 32 || i === 60 || n(i) ? r(i) : (e.consume(i), f);
360
+ }
361
+ function p(t) {
362
+ return t === 64 ? (e.consume(t), m) : o(t) ? (e.consume(t), p) : r(t);
363
+ }
364
+ function m(e) {
365
+ return d(e) ? h(e) : r(e);
366
+ }
367
+ function h(n) {
368
+ return n === 46 ? (e.consume(n), i = 0, m) : n === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(n), e.exit("autolinkMarker"), e.exit("autolink"), t) : g(n);
369
+ }
370
+ function g(t) {
371
+ if ((t === 45 || d(t)) && i++ < 63) {
372
+ let n = t === 45 ? g : h;
373
+ return e.consume(t), n;
374
+ }
375
+ return r(t);
376
+ }
377
+ }
378
+ //#endregion
379
+ //#region node_modules/micromark-core-commonmark/lib/blank-line.js
380
+ var H = {
381
+ partial: !0,
382
+ tokenize: re
383
+ };
384
+ function re(e, t, n) {
385
+ return r;
386
+ function r(t) {
387
+ return i(t) ? p(e, a, "linePrefix")(t) : a(t);
388
+ }
389
+ function a(e) {
390
+ return e === null || s(e) ? t(e) : n(e);
391
+ }
392
+ }
393
+ //#endregion
394
+ //#region node_modules/micromark-core-commonmark/lib/block-quote.js
395
+ var ie = {
396
+ continuation: { tokenize: oe },
397
+ exit: se,
398
+ name: "blockQuote",
399
+ tokenize: ae
400
+ };
401
+ function ae(e, t, n) {
402
+ let r = this;
403
+ return a;
404
+ function a(t) {
405
+ if (t === 62) {
406
+ let n = r.containerState;
407
+ return n.open || (e.enter("blockQuote", { _container: !0 }), n.open = !0), e.enter("blockQuotePrefix"), e.enter("blockQuoteMarker"), e.consume(t), e.exit("blockQuoteMarker"), o;
408
+ }
409
+ return n(t);
410
+ }
411
+ function o(n) {
412
+ return i(n) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(n), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), t) : (e.exit("blockQuotePrefix"), t(n));
413
+ }
414
+ }
415
+ function oe(e, t, n) {
416
+ let r = this;
417
+ return a;
418
+ function a(t) {
419
+ return i(t) ? p(e, o, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(t) : o(t);
420
+ }
421
+ function o(r) {
422
+ return e.attempt(ie, t, n)(r);
423
+ }
424
+ }
425
+ function se(e) {
426
+ e.exit("blockQuote");
427
+ }
428
+ //#endregion
429
+ //#region node_modules/micromark-core-commonmark/lib/character-escape.js
430
+ var ce = {
431
+ name: "characterEscape",
432
+ tokenize: le
433
+ };
434
+ function le(e, t, n) {
435
+ return i;
436
+ function i(t) {
437
+ return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(t), e.exit("escapeMarker"), a;
438
+ }
439
+ function a(i) {
440
+ return r(i) ? (e.enter("characterEscapeValue"), e.consume(i), e.exit("characterEscapeValue"), e.exit("characterEscape"), t) : n(i);
441
+ }
442
+ }
443
+ //#endregion
444
+ //#region node_modules/micromark-core-commonmark/lib/character-reference.js
445
+ var ue = {
446
+ name: "characterReference",
447
+ tokenize: de
448
+ };
449
+ function de(e, t, n) {
450
+ let r = this, i = 0, a, o;
451
+ return s;
452
+ function s(t) {
453
+ return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(t), e.exit("characterReferenceMarker"), c;
454
+ }
455
+ function c(t) {
456
+ return t === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(t), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), a = 31, o = d, p(t));
457
+ }
458
+ function u(t) {
459
+ return t === 88 || t === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(t), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), a = 6, o = f, p) : (e.enter("characterReferenceValue"), a = 7, o = l, p(t));
460
+ }
461
+ function p(s) {
462
+ if (s === 59 && i) {
463
+ let i = e.exit("characterReferenceValue");
464
+ return o === d && !S(r.sliceSerialize(i)) ? n(s) : (e.enter("characterReferenceMarker"), e.consume(s), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
465
+ }
466
+ return o(s) && i++ < a ? (e.consume(s), p) : n(s);
467
+ }
468
+ }
469
+ //#endregion
470
+ //#region node_modules/micromark-core-commonmark/lib/code-fenced.js
471
+ var fe = {
472
+ partial: !0,
473
+ tokenize: he
474
+ }, pe = {
475
+ concrete: !0,
476
+ name: "codeFenced",
477
+ tokenize: me
478
+ };
479
+ function me(e, t, n) {
480
+ let r = this, a = {
481
+ partial: !0,
482
+ tokenize: w
483
+ }, o = 0, c = 0, l;
484
+ return u;
485
+ function u(e) {
486
+ return d(e);
487
+ }
488
+ function d(t) {
489
+ let n = r.events[r.events.length - 1];
490
+ return o = n && n[1].type === "linePrefix" ? n[2].sliceSerialize(n[1], !0).length : 0, l = t, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), f(t);
491
+ }
492
+ function f(t) {
493
+ return t === l ? (c++, e.consume(t), f) : c < 3 ? n(t) : (e.exit("codeFencedFenceSequence"), i(t) ? p(e, m, "whitespace")(t) : m(t));
494
+ }
495
+ function m(n) {
496
+ return n === null || s(n) ? (e.exit("codeFencedFence"), r.interrupt ? t(n) : e.check(fe, v, C)(n)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", { contentType: "string" }), h(n));
497
+ }
498
+ function h(t) {
499
+ return t === null || s(t) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), m(t)) : i(t) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), p(e, g, "whitespace")(t)) : t === 96 && t === l ? n(t) : (e.consume(t), h);
500
+ }
501
+ function g(t) {
502
+ return t === null || s(t) ? m(t) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", { contentType: "string" }), _(t));
503
+ }
504
+ function _(t) {
505
+ return t === null || s(t) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), m(t)) : t === 96 && t === l ? n(t) : (e.consume(t), _);
506
+ }
507
+ function v(t) {
508
+ return e.attempt(a, C, y)(t);
509
+ }
510
+ function y(t) {
511
+ return e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), b;
512
+ }
513
+ function b(t) {
514
+ return o > 0 && i(t) ? p(e, x, "linePrefix", o + 1)(t) : x(t);
515
+ }
516
+ function x(t) {
517
+ return t === null || s(t) ? e.check(fe, v, C)(t) : (e.enter("codeFlowValue"), S(t));
518
+ }
519
+ function S(t) {
520
+ return t === null || s(t) ? (e.exit("codeFlowValue"), x(t)) : (e.consume(t), S);
521
+ }
522
+ function C(n) {
523
+ return e.exit("codeFenced"), t(n);
524
+ }
525
+ function w(e, t, n) {
526
+ let a = 0;
527
+ return o;
528
+ function o(t) {
529
+ return e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), u;
530
+ }
531
+ function u(t) {
532
+ return e.enter("codeFencedFence"), i(t) ? p(e, d, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(t) : d(t);
533
+ }
534
+ function d(t) {
535
+ return t === l ? (e.enter("codeFencedFenceSequence"), f(t)) : n(t);
536
+ }
537
+ function f(t) {
538
+ return t === l ? (a++, e.consume(t), f) : a >= c ? (e.exit("codeFencedFenceSequence"), i(t) ? p(e, m, "whitespace")(t) : m(t)) : n(t);
539
+ }
540
+ function m(r) {
541
+ return r === null || s(r) ? (e.exit("codeFencedFence"), t(r)) : n(r);
542
+ }
543
+ }
544
+ }
545
+ function he(e, t, n) {
546
+ let r = this;
547
+ return i;
548
+ function i(t) {
549
+ return t === null ? n(t) : (e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), a);
550
+ }
551
+ function a(e) {
552
+ return r.parser.lazy[r.now().line] ? n(e) : t(e);
553
+ }
554
+ }
555
+ //#endregion
556
+ //#region node_modules/micromark-core-commonmark/lib/code-indented.js
557
+ var U = {
558
+ name: "codeIndented",
559
+ tokenize: _e
560
+ }, ge = {
561
+ partial: !0,
562
+ tokenize: ve
563
+ };
564
+ function _e(e, t, n) {
565
+ let r = this;
566
+ return i;
567
+ function i(t) {
568
+ return e.enter("codeIndented"), p(e, a, "linePrefix", 5)(t);
569
+ }
570
+ function a(e) {
571
+ let t = r.events[r.events.length - 1];
572
+ return t && t[1].type === "linePrefix" && t[2].sliceSerialize(t[1], !0).length >= 4 ? o(e) : n(e);
573
+ }
574
+ function o(t) {
575
+ return t === null ? l(t) : s(t) ? e.attempt(ge, o, l)(t) : (e.enter("codeFlowValue"), c(t));
576
+ }
577
+ function c(t) {
578
+ return t === null || s(t) ? (e.exit("codeFlowValue"), o(t)) : (e.consume(t), c);
579
+ }
580
+ function l(n) {
581
+ return e.exit("codeIndented"), t(n);
582
+ }
583
+ }
584
+ function ve(e, t, n) {
585
+ let r = this;
586
+ return i;
587
+ function i(t) {
588
+ return r.parser.lazy[r.now().line] ? n(t) : s(t) ? (e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), i) : p(e, a, "linePrefix", 5)(t);
589
+ }
590
+ function a(e) {
591
+ let a = r.events[r.events.length - 1];
592
+ return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? t(e) : s(e) ? i(e) : n(e);
593
+ }
594
+ }
595
+ //#endregion
596
+ //#region node_modules/micromark-core-commonmark/lib/code-text.js
597
+ var ye = {
598
+ name: "codeText",
599
+ previous: xe,
600
+ resolve: be,
601
+ tokenize: Se
602
+ };
603
+ function be(e) {
604
+ let t = e.length - 4, n = 3, r, i;
605
+ if ((e[n][1].type === "lineEnding" || e[n][1].type === "space") && (e[t][1].type === "lineEnding" || e[t][1].type === "space")) {
606
+ for (r = n; ++r < t;) if (e[r][1].type === "codeTextData") {
607
+ e[n][1].type = "codeTextPadding", e[t][1].type = "codeTextPadding", n += 2, t -= 2;
608
+ break;
609
+ }
610
+ }
611
+ for (r = n - 1, t++; ++r <= t;) i === void 0 ? r !== t && e[r][1].type !== "lineEnding" && (i = r) : (r === t || e[r][1].type === "lineEnding") && (e[i][1].type = "codeTextData", r !== i + 2 && (e[i][1].end = e[r - 1][1].end, e.splice(i + 2, r - i - 2), t -= r - i - 2, r = i + 2), i = void 0);
612
+ return e;
613
+ }
614
+ function xe(e) {
615
+ return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
616
+ }
617
+ function Se(e, t, n) {
618
+ let r = 0, i, a;
619
+ return o;
620
+ function o(t) {
621
+ return e.enter("codeText"), e.enter("codeTextSequence"), c(t);
622
+ }
623
+ function c(t) {
624
+ return t === 96 ? (e.consume(t), r++, c) : (e.exit("codeTextSequence"), l(t));
625
+ }
626
+ function l(t) {
627
+ return t === null ? n(t) : t === 32 ? (e.enter("space"), e.consume(t), e.exit("space"), l) : t === 96 ? (a = e.enter("codeTextSequence"), i = 0, d(t)) : s(t) ? (e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), l) : (e.enter("codeTextData"), u(t));
628
+ }
629
+ function u(t) {
630
+ return t === null || t === 32 || t === 96 || s(t) ? (e.exit("codeTextData"), l(t)) : (e.consume(t), u);
631
+ }
632
+ function d(n) {
633
+ return n === 96 ? (e.consume(n), i++, d) : i === r ? (e.exit("codeTextSequence"), e.exit("codeText"), t(n)) : (a.type = "codeTextData", u(n));
634
+ }
635
+ }
636
+ //#endregion
637
+ //#region node_modules/micromark-util-subtokenize/lib/splice-buffer.js
638
+ var Ce = class {
639
+ constructor(e) {
640
+ this.left = e ? [...e] : [], this.right = [];
641
+ }
642
+ get(e) {
643
+ if (e < 0 || e >= this.left.length + this.right.length) throw RangeError("Cannot access index `" + e + "` in a splice buffer of size `" + (this.left.length + this.right.length) + "`");
644
+ return e < this.left.length ? this.left[e] : this.right[this.right.length - e + this.left.length - 1];
645
+ }
646
+ get length() {
647
+ return this.left.length + this.right.length;
648
+ }
649
+ shift() {
650
+ return this.setCursor(0), this.right.pop();
651
+ }
652
+ slice(e, t) {
653
+ let n = t == null ? Infinity : t;
654
+ return n < this.left.length ? this.left.slice(e, n) : e > this.left.length ? this.right.slice(this.right.length - n + this.left.length, this.right.length - e + this.left.length).reverse() : this.left.slice(e).concat(this.right.slice(this.right.length - n + this.left.length).reverse());
655
+ }
656
+ splice(e, t, n) {
657
+ let r = t || 0;
658
+ this.setCursor(Math.trunc(e));
659
+ let i = this.right.splice(this.right.length - r, Infinity);
660
+ return n && W(this.left, n), i.reverse();
661
+ }
662
+ pop() {
663
+ return this.setCursor(Infinity), this.left.pop();
664
+ }
665
+ push(e) {
666
+ this.setCursor(Infinity), this.left.push(e);
667
+ }
668
+ pushMany(e) {
669
+ this.setCursor(Infinity), W(this.left, e);
670
+ }
671
+ unshift(e) {
672
+ this.setCursor(0), this.right.push(e);
673
+ }
674
+ unshiftMany(e) {
675
+ this.setCursor(0), W(this.right, e.reverse());
676
+ }
677
+ setCursor(e) {
678
+ if (!(e === this.left.length || e > this.left.length && this.right.length === 0 || e < 0 && this.left.length === 0)) if (e < this.left.length) {
679
+ let t = this.left.splice(e, Infinity);
680
+ W(this.right, t.reverse());
681
+ } else {
682
+ let t = this.right.splice(this.left.length + this.right.length - e, Infinity);
683
+ W(this.left, t.reverse());
684
+ }
685
+ }
686
+ };
687
+ function W(e, t) {
688
+ let n = 0;
689
+ if (t.length < 1e4) e.push(...t);
690
+ else for (; n < t.length;) e.push(...t.slice(n, n + 1e4)), n += 1e4;
691
+ }
692
+ //#endregion
693
+ //#region node_modules/micromark-util-subtokenize/index.js
694
+ function we(e) {
695
+ let n = {}, r = -1, i, a, o, s, c, l, u, d = new Ce(e);
696
+ for (; ++r < d.length;) {
697
+ for (; r in n;) r = n[r];
698
+ if (i = d.get(r), r && i[1].type === "chunkFlow" && d.get(r - 1)[1].type === "listItemPrefix" && (l = i[1]._tokenizer.events, o = 0, o < l.length && l[o][1].type === "lineEndingBlank" && (o += 2), o < l.length && l[o][1].type === "content")) for (; ++o < l.length && l[o][1].type !== "content";) l[o][1].type === "chunkText" && (l[o][1]._isInFirstContentOfListItem = !0, o++);
699
+ if (i[0] === "enter") i[1].contentType && (Object.assign(n, Te(d, r)), r = n[r], u = !0);
700
+ else if (i[1]._container) {
701
+ for (o = r, a = void 0; o--;) if (s = d.get(o), s[1].type === "lineEnding" || s[1].type === "lineEndingBlank") s[0] === "enter" && (a && (d.get(a)[1].type = "lineEndingBlank"), s[1].type = "lineEnding", a = o);
702
+ else if (!(s[1].type === "linePrefix" || s[1].type === "listItemIndent")) break;
703
+ a && (i[1].end = t({}, d.get(a)[1].start), c = d.slice(a, r), c.unshift(i), d.splice(a, r - a + 1, c));
704
+ }
705
+ }
706
+ return C(e, 0, Infinity, d.slice(0)), !u;
707
+ }
708
+ function Te(e, t) {
709
+ let n = e.get(t)[1], r = e.get(t)[2], i = t - 1, a = [], o = n._tokenizer;
710
+ o || (o = r.parser[n.contentType](n.start), n._contentTypeTextTrailing && (o._contentTypeTextTrailing = !0));
711
+ let s = o.events, c = [], l = {}, u, d, f = -1, p = n, m = 0, h = 0, g = [h];
712
+ for (; p;) {
713
+ for (; e.get(++i)[1] !== p;);
714
+ a.push(i), p._tokenizer || (u = r.sliceStream(p), p.next || u.push(null), d && o.defineSkip(p.start), p._isInFirstContentOfListItem && (o._gfmTasklistFirstContentOfListItem = !0), o.write(u), p._isInFirstContentOfListItem && (o._gfmTasklistFirstContentOfListItem = void 0)), d = p, p = p.next;
715
+ }
716
+ for (p = n; ++f < s.length;) s[f][0] === "exit" && s[f - 1][0] === "enter" && s[f][1].type === s[f - 1][1].type && s[f][1].start.line !== s[f][1].end.line && (h = f + 1, g.push(h), p._tokenizer = void 0, p.previous = void 0, p = p.next);
717
+ for (o.events = [], p ? (p._tokenizer = void 0, p.previous = void 0) : g.pop(), f = g.length; f--;) {
718
+ let t = s.slice(g[f], g[f + 1]), n = a.pop();
719
+ c.push([n, n + t.length - 1]), e.splice(n, 2, t);
720
+ }
721
+ for (c.reverse(), f = -1; ++f < c.length;) l[m + c[f][0]] = m + c[f][1], m += c[f][1] - c[f][0] - 1;
722
+ return l;
723
+ }
724
+ //#endregion
725
+ //#region node_modules/micromark-core-commonmark/lib/content.js
726
+ var Ee = {
727
+ resolve: Oe,
728
+ tokenize: ke
729
+ }, De = {
730
+ partial: !0,
731
+ tokenize: Ae
732
+ };
733
+ function Oe(e) {
734
+ return we(e), e;
735
+ }
736
+ function ke(e, t) {
737
+ let n;
738
+ return r;
739
+ function r(t) {
740
+ return e.enter("content"), n = e.enter("chunkContent", { contentType: "content" }), i(t);
741
+ }
742
+ function i(t) {
743
+ return t === null ? a(t) : s(t) ? e.check(De, o, a)(t) : (e.consume(t), i);
744
+ }
745
+ function a(n) {
746
+ return e.exit("chunkContent"), e.exit("content"), t(n);
747
+ }
748
+ function o(t) {
749
+ return e.consume(t), e.exit("chunkContent"), n.next = e.enter("chunkContent", {
750
+ contentType: "content",
751
+ previous: n
752
+ }), n = n.next, i;
753
+ }
754
+ }
755
+ function Ae(e, t, n) {
756
+ let r = this;
757
+ return i;
758
+ function i(t) {
759
+ return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), p(e, a, "linePrefix");
760
+ }
761
+ function a(i) {
762
+ if (i === null || s(i)) return n(i);
763
+ let a = r.events[r.events.length - 1];
764
+ return !r.parser.constructs.disable.null.includes("codeIndented") && a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? t(i) : e.interrupt(r.parser.constructs.flow, n, t)(i);
765
+ }
766
+ }
767
+ //#endregion
768
+ //#region node_modules/micromark-factory-destination/index.js
769
+ function je(e, t, r, i, a, o, c, l, u) {
770
+ let d = u || Infinity, f = 0;
771
+ return p;
772
+ function p(t) {
773
+ return t === 60 ? (e.enter(i), e.enter(a), e.enter(o), e.consume(t), e.exit(o), h) : t === null || t === 32 || t === 41 || n(t) ? r(t) : (e.enter(i), e.enter(c), e.enter(l), e.enter("chunkString", { contentType: "string" }), v(t));
774
+ }
775
+ function h(n) {
776
+ return n === 62 ? (e.enter(o), e.consume(n), e.exit(o), e.exit(a), e.exit(i), t) : (e.enter(l), e.enter("chunkString", { contentType: "string" }), g(n));
777
+ }
778
+ function g(t) {
779
+ return t === 62 ? (e.exit("chunkString"), e.exit(l), h(t)) : t === null || t === 60 || s(t) ? r(t) : (e.consume(t), t === 92 ? _ : g);
780
+ }
781
+ function _(t) {
782
+ return t === 60 || t === 62 || t === 92 ? (e.consume(t), g) : g(t);
783
+ }
784
+ function v(a) {
785
+ return !f && (a === null || a === 41 || m(a)) ? (e.exit("chunkString"), e.exit(l), e.exit(c), e.exit(i), t(a)) : f < d && a === 40 ? (e.consume(a), f++, v) : a === 41 ? (e.consume(a), f--, v) : a === null || a === 32 || a === 40 || n(a) ? r(a) : (e.consume(a), a === 92 ? y : v);
786
+ }
787
+ function y(t) {
788
+ return t === 40 || t === 41 || t === 92 ? (e.consume(t), v) : v(t);
789
+ }
790
+ }
791
+ //#endregion
792
+ //#region node_modules/micromark-factory-label/index.js
793
+ function Me(e, t, n, r, a, o) {
794
+ let c = this, l = 0, u;
795
+ return d;
796
+ function d(t) {
797
+ return e.enter(r), e.enter(a), e.consume(t), e.exit(a), e.enter(o), f;
798
+ }
799
+ function f(i) {
800
+ return l > 999 || i === null || i === 91 || i === 93 && !u || i === 94 && !l && "_hiddenFootnoteSupport" in c.parser.constructs ? n(i) : i === 93 ? (e.exit(o), e.enter(a), e.consume(i), e.exit(a), e.exit(r), t) : s(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), f) : (e.enter("chunkString", { contentType: "string" }), p(i));
801
+ }
802
+ function p(t) {
803
+ return t === null || t === 91 || t === 93 || s(t) || l++ > 999 ? (e.exit("chunkString"), f(t)) : (e.consume(t), u || (u = !i(t)), t === 92 ? m : p);
804
+ }
805
+ function m(t) {
806
+ return t === 91 || t === 92 || t === 93 ? (e.consume(t), l++, p) : p(t);
807
+ }
808
+ }
809
+ //#endregion
810
+ //#region node_modules/micromark-factory-title/index.js
811
+ function Ne(e, t, n, r, i, a) {
812
+ let o;
813
+ return c;
814
+ function c(t) {
815
+ return t === 34 || t === 39 || t === 40 ? (e.enter(r), e.enter(i), e.consume(t), e.exit(i), o = t === 40 ? 41 : t, l) : n(t);
816
+ }
817
+ function l(n) {
818
+ return n === o ? (e.enter(i), e.consume(n), e.exit(i), e.exit(r), t) : (e.enter(a), u(n));
819
+ }
820
+ function u(t) {
821
+ return t === o ? (e.exit(a), l(o)) : t === null ? n(t) : s(t) ? (e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), p(e, u, "linePrefix")) : (e.enter("chunkString", { contentType: "string" }), d(t));
822
+ }
823
+ function d(t) {
824
+ return t === o || t === null || s(t) ? (e.exit("chunkString"), u(t)) : (e.consume(t), t === 92 ? f : d);
825
+ }
826
+ function f(t) {
827
+ return t === o || t === 92 ? (e.consume(t), d) : d(t);
828
+ }
829
+ }
830
+ //#endregion
831
+ //#region node_modules/micromark-factory-whitespace/index.js
832
+ function G(e, t) {
833
+ let n;
834
+ return r;
835
+ function r(a) {
836
+ return s(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), n = !0, r) : i(a) ? p(e, r, n ? "linePrefix" : "lineSuffix")(a) : t(a);
837
+ }
838
+ }
839
+ //#endregion
840
+ //#region node_modules/micromark-core-commonmark/lib/definition.js
841
+ var Pe = {
842
+ name: "definition",
843
+ tokenize: Ie
844
+ }, Fe = {
845
+ partial: !0,
846
+ tokenize: Le
847
+ };
848
+ function Ie(e, t, n) {
849
+ let r = this, a;
850
+ return o;
851
+ function o(t) {
852
+ return e.enter("definition"), c(t);
853
+ }
854
+ function c(t) {
855
+ return Me.call(r, e, l, n, "definitionLabel", "definitionLabelMarker", "definitionLabelString")(t);
856
+ }
857
+ function l(t) {
858
+ return a = A(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), t === 58 ? (e.enter("definitionMarker"), e.consume(t), e.exit("definitionMarker"), u) : n(t);
859
+ }
860
+ function u(t) {
861
+ return m(t) ? G(e, d)(t) : d(t);
862
+ }
863
+ function d(t) {
864
+ return je(e, f, n, "definitionDestination", "definitionDestinationLiteral", "definitionDestinationLiteralMarker", "definitionDestinationRaw", "definitionDestinationString")(t);
865
+ }
866
+ function f(t) {
867
+ return e.attempt(Fe, h, h)(t);
868
+ }
869
+ function h(t) {
870
+ return i(t) ? p(e, g, "whitespace")(t) : g(t);
871
+ }
872
+ function g(i) {
873
+ return i === null || s(i) ? (e.exit("definition"), r.parser.defined.push(a), t(i)) : n(i);
874
+ }
875
+ }
876
+ function Le(e, t, n) {
877
+ return r;
878
+ function r(t) {
879
+ return m(t) ? G(e, a)(t) : n(t);
880
+ }
881
+ function a(t) {
882
+ return Ne(e, o, n, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(t);
883
+ }
884
+ function o(t) {
885
+ return i(t) ? p(e, c, "whitespace")(t) : c(t);
886
+ }
887
+ function c(e) {
888
+ return e === null || s(e) ? t(e) : n(e);
889
+ }
890
+ }
891
+ //#endregion
892
+ //#region node_modules/micromark-core-commonmark/lib/hard-break-escape.js
893
+ var Re = {
894
+ name: "hardBreakEscape",
895
+ tokenize: ze
896
+ };
897
+ function ze(e, t, n) {
898
+ return r;
899
+ function r(t) {
900
+ return e.enter("hardBreakEscape"), e.consume(t), i;
901
+ }
902
+ function i(r) {
903
+ return s(r) ? (e.exit("hardBreakEscape"), t(r)) : n(r);
904
+ }
905
+ }
906
+ //#endregion
907
+ //#region node_modules/micromark-core-commonmark/lib/heading-atx.js
908
+ var Be = {
909
+ name: "headingAtx",
910
+ resolve: Ve,
911
+ tokenize: He
912
+ };
913
+ function Ve(e, t) {
914
+ let n = e.length - 2, r = 3, i, a;
915
+ return e[r][1].type === "whitespace" && (r += 2), n - 2 > r && e[n][1].type === "whitespace" && (n -= 2), e[n][1].type === "atxHeadingSequence" && (r === n - 1 || n - 4 > r && e[n - 2][1].type === "whitespace") && (n -= r + 1 === n ? 2 : 4), n > r && (i = {
916
+ type: "atxHeadingText",
917
+ start: e[r][1].start,
918
+ end: e[n][1].end
919
+ }, a = {
920
+ type: "chunkText",
921
+ start: e[r][1].start,
922
+ end: e[n][1].end,
923
+ contentType: "text"
924
+ }, C(e, r, n - r + 1, [
925
+ [
926
+ "enter",
927
+ i,
928
+ t
929
+ ],
930
+ [
931
+ "enter",
932
+ a,
933
+ t
934
+ ],
935
+ [
936
+ "exit",
937
+ a,
938
+ t
939
+ ],
940
+ [
941
+ "exit",
942
+ i,
943
+ t
944
+ ]
945
+ ])), e;
946
+ }
947
+ function He(e, t, n) {
948
+ let r = 0;
949
+ return a;
950
+ function a(t) {
951
+ return e.enter("atxHeading"), o(t);
952
+ }
953
+ function o(t) {
954
+ return e.enter("atxHeadingSequence"), c(t);
955
+ }
956
+ function c(t) {
957
+ return t === 35 && r++ < 6 ? (e.consume(t), c) : t === null || m(t) ? (e.exit("atxHeadingSequence"), l(t)) : n(t);
958
+ }
959
+ function l(n) {
960
+ return n === 35 ? (e.enter("atxHeadingSequence"), u(n)) : n === null || s(n) ? (e.exit("atxHeading"), t(n)) : i(n) ? p(e, l, "whitespace")(n) : (e.enter("atxHeadingText"), d(n));
961
+ }
962
+ function u(t) {
963
+ return t === 35 ? (e.consume(t), u) : (e.exit("atxHeadingSequence"), l(t));
964
+ }
965
+ function d(t) {
966
+ return t === null || t === 35 || m(t) ? (e.exit("atxHeadingText"), l(t)) : (e.consume(t), d);
967
+ }
968
+ }
969
+ //#endregion
970
+ //#region node_modules/micromark-util-html-tag-name/index.js
971
+ var Ue = /* @__PURE__ */ "address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul".split("."), We = [
972
+ "pre",
973
+ "script",
974
+ "style",
975
+ "textarea"
976
+ ], Ge = {
977
+ concrete: !0,
978
+ name: "htmlFlow",
979
+ resolveTo: Je,
980
+ tokenize: Ye
981
+ }, Ke = {
982
+ partial: !0,
983
+ tokenize: Ze
984
+ }, qe = {
985
+ partial: !0,
986
+ tokenize: Xe
987
+ };
988
+ function Je(e) {
989
+ let t = e.length;
990
+ for (; t-- && !(e[t][0] === "enter" && e[t][1].type === "htmlFlow"););
991
+ return t > 1 && e[t - 2][1].type === "linePrefix" && (e[t][1].start = e[t - 2][1].start, e[t + 1][1].start = e[t - 2][1].start, e.splice(t - 2, 2)), e;
992
+ }
993
+ function Ye(e, t, n) {
994
+ let r = this, a, o, l, u, f;
995
+ return p;
996
+ function p(e) {
997
+ return h(e);
998
+ }
999
+ function h(t) {
1000
+ return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(t), g;
1001
+ }
1002
+ function g(i) {
1003
+ return i === 33 ? (e.consume(i), _) : i === 47 ? (e.consume(i), o = !0, b) : i === 63 ? (e.consume(i), a = 3, r.interrupt ? t : z) : c(i) ? (e.consume(i), l = String.fromCharCode(i), x) : n(i);
1004
+ }
1005
+ function _(i) {
1006
+ return i === 45 ? (e.consume(i), a = 2, v) : i === 91 ? (e.consume(i), a = 5, u = 0, y) : c(i) ? (e.consume(i), a = 4, r.interrupt ? t : z) : n(i);
1007
+ }
1008
+ function v(i) {
1009
+ return i === 45 ? (e.consume(i), r.interrupt ? t : z) : n(i);
1010
+ }
1011
+ function y(i) {
1012
+ return i === "CDATA[".charCodeAt(u++) ? (e.consume(i), u === 6 ? r.interrupt ? t : N : y) : n(i);
1013
+ }
1014
+ function b(t) {
1015
+ return c(t) ? (e.consume(t), l = String.fromCharCode(t), x) : n(t);
1016
+ }
1017
+ function x(i) {
1018
+ if (i === null || i === 47 || i === 62 || m(i)) {
1019
+ let s = i === 47, c = l.toLowerCase();
1020
+ return !s && !o && We.includes(c) ? (a = 1, r.interrupt ? t(i) : N(i)) : Ue.includes(l.toLowerCase()) ? (a = 6, s ? (e.consume(i), S) : r.interrupt ? t(i) : N(i)) : (a = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(i) : o ? C(i) : w(i));
1021
+ }
1022
+ return i === 45 || d(i) ? (e.consume(i), l += String.fromCharCode(i), x) : n(i);
1023
+ }
1024
+ function S(i) {
1025
+ return i === 62 ? (e.consume(i), r.interrupt ? t : N) : n(i);
1026
+ }
1027
+ function C(t) {
1028
+ return i(t) ? (e.consume(t), C) : j(t);
1029
+ }
1030
+ function w(t) {
1031
+ return t === 47 ? (e.consume(t), j) : t === 58 || t === 95 || c(t) ? (e.consume(t), T) : i(t) ? (e.consume(t), w) : j(t);
1032
+ }
1033
+ function T(t) {
1034
+ return t === 45 || t === 46 || t === 58 || t === 95 || d(t) ? (e.consume(t), T) : E(t);
1035
+ }
1036
+ function E(t) {
1037
+ return t === 61 ? (e.consume(t), D) : i(t) ? (e.consume(t), E) : w(t);
1038
+ }
1039
+ function D(t) {
1040
+ return t === null || t === 60 || t === 61 || t === 62 || t === 96 ? n(t) : t === 34 || t === 39 ? (e.consume(t), f = t, O) : i(t) ? (e.consume(t), D) : k(t);
1041
+ }
1042
+ function O(t) {
1043
+ return t === f ? (e.consume(t), f = null, A) : t === null || s(t) ? n(t) : (e.consume(t), O);
1044
+ }
1045
+ function k(t) {
1046
+ return t === null || t === 34 || t === 39 || t === 47 || t === 60 || t === 61 || t === 62 || t === 96 || m(t) ? E(t) : (e.consume(t), k);
1047
+ }
1048
+ function A(e) {
1049
+ return e === 47 || e === 62 || i(e) ? w(e) : n(e);
1050
+ }
1051
+ function j(t) {
1052
+ return t === 62 ? (e.consume(t), M) : n(t);
1053
+ }
1054
+ function M(t) {
1055
+ return t === null || s(t) ? N(t) : i(t) ? (e.consume(t), M) : n(t);
1056
+ }
1057
+ function N(t) {
1058
+ return t === 45 && a === 2 ? (e.consume(t), I) : t === 60 && a === 1 ? (e.consume(t), L) : t === 62 && a === 4 ? (e.consume(t), B) : t === 63 && a === 3 ? (e.consume(t), z) : t === 93 && a === 5 ? (e.consume(t), te) : s(t) && (a === 6 || a === 7) ? (e.exit("htmlFlowData"), e.check(Ke, V, P)(t)) : t === null || s(t) ? (e.exit("htmlFlowData"), P(t)) : (e.consume(t), N);
1059
+ }
1060
+ function P(t) {
1061
+ return e.check(qe, F, V)(t);
1062
+ }
1063
+ function F(t) {
1064
+ return e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), ee;
1065
+ }
1066
+ function ee(t) {
1067
+ return t === null || s(t) ? P(t) : (e.enter("htmlFlowData"), N(t));
1068
+ }
1069
+ function I(t) {
1070
+ return t === 45 ? (e.consume(t), z) : N(t);
1071
+ }
1072
+ function L(t) {
1073
+ return t === 47 ? (e.consume(t), l = "", R) : N(t);
1074
+ }
1075
+ function R(t) {
1076
+ if (t === 62) {
1077
+ let n = l.toLowerCase();
1078
+ return We.includes(n) ? (e.consume(t), B) : N(t);
1079
+ }
1080
+ return c(t) && l.length < 8 ? (e.consume(t), l += String.fromCharCode(t), R) : N(t);
1081
+ }
1082
+ function te(t) {
1083
+ return t === 93 ? (e.consume(t), z) : N(t);
1084
+ }
1085
+ function z(t) {
1086
+ return t === 62 ? (e.consume(t), B) : t === 45 && a === 2 ? (e.consume(t), z) : N(t);
1087
+ }
1088
+ function B(t) {
1089
+ return t === null || s(t) ? (e.exit("htmlFlowData"), V(t)) : (e.consume(t), B);
1090
+ }
1091
+ function V(n) {
1092
+ return e.exit("htmlFlow"), t(n);
1093
+ }
1094
+ }
1095
+ function Xe(e, t, n) {
1096
+ let r = this;
1097
+ return i;
1098
+ function i(t) {
1099
+ return s(t) ? (e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), a) : n(t);
1100
+ }
1101
+ function a(e) {
1102
+ return r.parser.lazy[r.now().line] ? n(e) : t(e);
1103
+ }
1104
+ }
1105
+ function Ze(e, t, n) {
1106
+ return r;
1107
+ function r(r) {
1108
+ return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), e.attempt(H, t, n);
1109
+ }
1110
+ }
1111
+ //#endregion
1112
+ //#region node_modules/micromark-core-commonmark/lib/html-text.js
1113
+ var Qe = {
1114
+ name: "htmlText",
1115
+ tokenize: $e
1116
+ };
1117
+ function $e(e, t, n) {
1118
+ let r = this, a, o, l;
1119
+ return u;
1120
+ function u(t) {
1121
+ return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(t), f;
1122
+ }
1123
+ function f(t) {
1124
+ return t === 33 ? (e.consume(t), h) : t === 47 ? (e.consume(t), D) : t === 63 ? (e.consume(t), T) : c(t) ? (e.consume(t), A) : n(t);
1125
+ }
1126
+ function h(t) {
1127
+ return t === 45 ? (e.consume(t), g) : t === 91 ? (e.consume(t), o = 0, b) : c(t) ? (e.consume(t), w) : n(t);
1128
+ }
1129
+ function g(t) {
1130
+ return t === 45 ? (e.consume(t), y) : n(t);
1131
+ }
1132
+ function _(t) {
1133
+ return t === null ? n(t) : t === 45 ? (e.consume(t), v) : s(t) ? (l = _, R(t)) : (e.consume(t), _);
1134
+ }
1135
+ function v(t) {
1136
+ return t === 45 ? (e.consume(t), y) : _(t);
1137
+ }
1138
+ function y(e) {
1139
+ return e === 62 ? L(e) : e === 45 ? v(e) : _(e);
1140
+ }
1141
+ function b(t) {
1142
+ return t === "CDATA[".charCodeAt(o++) ? (e.consume(t), o === 6 ? x : b) : n(t);
1143
+ }
1144
+ function x(t) {
1145
+ return t === null ? n(t) : t === 93 ? (e.consume(t), S) : s(t) ? (l = x, R(t)) : (e.consume(t), x);
1146
+ }
1147
+ function S(t) {
1148
+ return t === 93 ? (e.consume(t), C) : x(t);
1149
+ }
1150
+ function C(t) {
1151
+ return t === 62 ? L(t) : t === 93 ? (e.consume(t), C) : x(t);
1152
+ }
1153
+ function w(t) {
1154
+ return t === null || t === 62 ? L(t) : s(t) ? (l = w, R(t)) : (e.consume(t), w);
1155
+ }
1156
+ function T(t) {
1157
+ return t === null ? n(t) : t === 63 ? (e.consume(t), E) : s(t) ? (l = T, R(t)) : (e.consume(t), T);
1158
+ }
1159
+ function E(e) {
1160
+ return e === 62 ? L(e) : T(e);
1161
+ }
1162
+ function D(t) {
1163
+ return c(t) ? (e.consume(t), O) : n(t);
1164
+ }
1165
+ function O(t) {
1166
+ return t === 45 || d(t) ? (e.consume(t), O) : k(t);
1167
+ }
1168
+ function k(t) {
1169
+ return s(t) ? (l = k, R(t)) : i(t) ? (e.consume(t), k) : L(t);
1170
+ }
1171
+ function A(t) {
1172
+ return t === 45 || d(t) ? (e.consume(t), A) : t === 47 || t === 62 || m(t) ? j(t) : n(t);
1173
+ }
1174
+ function j(t) {
1175
+ return t === 47 ? (e.consume(t), L) : t === 58 || t === 95 || c(t) ? (e.consume(t), M) : s(t) ? (l = j, R(t)) : i(t) ? (e.consume(t), j) : L(t);
1176
+ }
1177
+ function M(t) {
1178
+ return t === 45 || t === 46 || t === 58 || t === 95 || d(t) ? (e.consume(t), M) : N(t);
1179
+ }
1180
+ function N(t) {
1181
+ return t === 61 ? (e.consume(t), P) : s(t) ? (l = N, R(t)) : i(t) ? (e.consume(t), N) : j(t);
1182
+ }
1183
+ function P(t) {
1184
+ return t === null || t === 60 || t === 61 || t === 62 || t === 96 ? n(t) : t === 34 || t === 39 ? (e.consume(t), a = t, F) : s(t) ? (l = P, R(t)) : i(t) ? (e.consume(t), P) : (e.consume(t), ee);
1185
+ }
1186
+ function F(t) {
1187
+ return t === a ? (e.consume(t), a = void 0, I) : t === null ? n(t) : s(t) ? (l = F, R(t)) : (e.consume(t), F);
1188
+ }
1189
+ function ee(t) {
1190
+ return t === null || t === 34 || t === 39 || t === 60 || t === 61 || t === 96 ? n(t) : t === 47 || t === 62 || m(t) ? j(t) : (e.consume(t), ee);
1191
+ }
1192
+ function I(e) {
1193
+ return e === 47 || e === 62 || m(e) ? j(e) : n(e);
1194
+ }
1195
+ function L(r) {
1196
+ return r === 62 ? (e.consume(r), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(r);
1197
+ }
1198
+ function R(t) {
1199
+ return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), te;
1200
+ }
1201
+ function te(t) {
1202
+ return i(t) ? p(e, z, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(t) : z(t);
1203
+ }
1204
+ function z(t) {
1205
+ return e.enter("htmlTextData"), l(t);
1206
+ }
1207
+ }
1208
+ //#endregion
1209
+ //#region node_modules/micromark-core-commonmark/lib/label-end.js
1210
+ var et = {
1211
+ name: "labelEnd",
1212
+ resolveAll: it,
1213
+ resolveTo: at,
1214
+ tokenize: ot
1215
+ }, tt = { tokenize: st }, nt = { tokenize: ct }, rt = { tokenize: lt };
1216
+ function it(e) {
1217
+ let t = -1, n = [];
1218
+ for (; ++t < e.length;) {
1219
+ let r = e[t][1];
1220
+ if (n.push(e[t]), r.type === "labelImage" || r.type === "labelLink" || r.type === "labelEnd") {
1221
+ let e = r.type === "labelImage" ? 4 : 2;
1222
+ r.type = "data", t += e;
1223
+ }
1224
+ }
1225
+ return e.length !== n.length && C(e, 0, e.length, n), e;
1226
+ }
1227
+ function at(e, n) {
1228
+ let r = e.length, i = 0, a, o, s, c;
1229
+ for (; r--;) if (a = e[r][1], o) {
1230
+ if (a.type === "link" || a.type === "labelLink" && a._inactive) break;
1231
+ e[r][0] === "enter" && a.type === "labelLink" && (a._inactive = !0);
1232
+ } else if (s) {
1233
+ if (e[r][0] === "enter" && (a.type === "labelImage" || a.type === "labelLink") && !a._balanced && (o = r, a.type !== "labelLink")) {
1234
+ i = 2;
1235
+ break;
1236
+ }
1237
+ } else a.type === "labelEnd" && (s = r);
1238
+ let l = {
1239
+ type: e[o][1].type === "labelLink" ? "link" : "image",
1240
+ start: t({}, e[o][1].start),
1241
+ end: t({}, e[e.length - 1][1].end)
1242
+ }, u = {
1243
+ type: "label",
1244
+ start: t({}, e[o][1].start),
1245
+ end: t({}, e[s][1].end)
1246
+ }, d = {
1247
+ type: "labelText",
1248
+ start: t({}, e[o + i + 2][1].end),
1249
+ end: t({}, e[s - 2][1].start)
1250
+ };
1251
+ return c = [[
1252
+ "enter",
1253
+ l,
1254
+ n
1255
+ ], [
1256
+ "enter",
1257
+ u,
1258
+ n
1259
+ ]], c = w(c, e.slice(o + 1, o + i + 3)), c = w(c, [[
1260
+ "enter",
1261
+ d,
1262
+ n
1263
+ ]]), c = w(c, L(n.parser.constructs.insideSpan.null, e.slice(o + i + 4, s - 3), n)), c = w(c, [
1264
+ [
1265
+ "exit",
1266
+ d,
1267
+ n
1268
+ ],
1269
+ e[s - 2],
1270
+ e[s - 1],
1271
+ [
1272
+ "exit",
1273
+ u,
1274
+ n
1275
+ ]
1276
+ ]), c = w(c, e.slice(s + 1)), c = w(c, [[
1277
+ "exit",
1278
+ l,
1279
+ n
1280
+ ]]), C(e, o, e.length, c), e;
1281
+ }
1282
+ function ot(e, t, n) {
1283
+ let r = this, i = r.events.length, a, o;
1284
+ for (; i--;) if ((r.events[i][1].type === "labelImage" || r.events[i][1].type === "labelLink") && !r.events[i][1]._balanced) {
1285
+ a = r.events[i][1];
1286
+ break;
1287
+ }
1288
+ return s;
1289
+ function s(t) {
1290
+ return a ? a._inactive ? d(t) : (o = r.parser.defined.includes(A(r.sliceSerialize({
1291
+ start: a.end,
1292
+ end: r.now()
1293
+ }))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(t), e.exit("labelMarker"), e.exit("labelEnd"), c) : n(t);
1294
+ }
1295
+ function c(t) {
1296
+ return t === 40 ? e.attempt(tt, u, o ? u : d)(t) : t === 91 ? e.attempt(nt, u, o ? l : d)(t) : o ? u(t) : d(t);
1297
+ }
1298
+ function l(t) {
1299
+ return e.attempt(rt, u, d)(t);
1300
+ }
1301
+ function u(e) {
1302
+ return t(e);
1303
+ }
1304
+ function d(e) {
1305
+ return a._balanced = !0, n(e);
1306
+ }
1307
+ }
1308
+ function st(e, t, n) {
1309
+ return r;
1310
+ function r(t) {
1311
+ return e.enter("resource"), e.enter("resourceMarker"), e.consume(t), e.exit("resourceMarker"), i;
1312
+ }
1313
+ function i(t) {
1314
+ return m(t) ? G(e, a)(t) : a(t);
1315
+ }
1316
+ function a(t) {
1317
+ return t === 41 ? u(t) : je(e, o, s, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(t);
1318
+ }
1319
+ function o(t) {
1320
+ return m(t) ? G(e, c)(t) : u(t);
1321
+ }
1322
+ function s(e) {
1323
+ return n(e);
1324
+ }
1325
+ function c(t) {
1326
+ return t === 34 || t === 39 || t === 40 ? Ne(e, l, n, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(t) : u(t);
1327
+ }
1328
+ function l(t) {
1329
+ return m(t) ? G(e, u)(t) : u(t);
1330
+ }
1331
+ function u(r) {
1332
+ return r === 41 ? (e.enter("resourceMarker"), e.consume(r), e.exit("resourceMarker"), e.exit("resource"), t) : n(r);
1333
+ }
1334
+ }
1335
+ function ct(e, t, n) {
1336
+ let r = this;
1337
+ return i;
1338
+ function i(t) {
1339
+ return Me.call(r, e, a, o, "reference", "referenceMarker", "referenceString")(t);
1340
+ }
1341
+ function a(e) {
1342
+ return r.parser.defined.includes(A(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1))) ? t(e) : n(e);
1343
+ }
1344
+ function o(e) {
1345
+ return n(e);
1346
+ }
1347
+ }
1348
+ function lt(e, t, n) {
1349
+ return r;
1350
+ function r(t) {
1351
+ return e.enter("reference"), e.enter("referenceMarker"), e.consume(t), e.exit("referenceMarker"), i;
1352
+ }
1353
+ function i(r) {
1354
+ return r === 93 ? (e.enter("referenceMarker"), e.consume(r), e.exit("referenceMarker"), e.exit("reference"), t) : n(r);
1355
+ }
1356
+ }
1357
+ //#endregion
1358
+ //#region node_modules/micromark-core-commonmark/lib/label-start-image.js
1359
+ var ut = {
1360
+ name: "labelStartImage",
1361
+ resolveAll: et.resolveAll,
1362
+ tokenize: dt
1363
+ };
1364
+ function dt(e, t, n) {
1365
+ let r = this;
1366
+ return i;
1367
+ function i(t) {
1368
+ return e.enter("labelImage"), e.enter("labelImageMarker"), e.consume(t), e.exit("labelImageMarker"), a;
1369
+ }
1370
+ function a(t) {
1371
+ return t === 91 ? (e.enter("labelMarker"), e.consume(t), e.exit("labelMarker"), e.exit("labelImage"), o) : n(t);
1372
+ }
1373
+ function o(e) {
1374
+ /* c8 ignore next 3 */
1375
+ return e === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? n(e) : t(e);
1376
+ }
1377
+ }
1378
+ //#endregion
1379
+ //#region node_modules/micromark-core-commonmark/lib/label-start-link.js
1380
+ var ft = {
1381
+ name: "labelStartLink",
1382
+ resolveAll: et.resolveAll,
1383
+ tokenize: pt
1384
+ };
1385
+ function pt(e, t, n) {
1386
+ let r = this;
1387
+ return i;
1388
+ function i(t) {
1389
+ return e.enter("labelLink"), e.enter("labelMarker"), e.consume(t), e.exit("labelMarker"), e.exit("labelLink"), a;
1390
+ }
1391
+ function a(e) {
1392
+ /* c8 ignore next 3 */
1393
+ return e === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? n(e) : t(e);
1394
+ }
1395
+ }
1396
+ //#endregion
1397
+ //#region node_modules/micromark-core-commonmark/lib/line-ending.js
1398
+ var mt = {
1399
+ name: "lineEnding",
1400
+ tokenize: ht
1401
+ };
1402
+ function ht(e, t) {
1403
+ return n;
1404
+ function n(n) {
1405
+ return e.enter("lineEnding"), e.consume(n), e.exit("lineEnding"), p(e, t, "linePrefix");
1406
+ }
1407
+ }
1408
+ //#endregion
1409
+ //#region node_modules/micromark-core-commonmark/lib/thematic-break.js
1410
+ var gt = {
1411
+ name: "thematicBreak",
1412
+ tokenize: _t
1413
+ };
1414
+ function _t(e, t, n) {
1415
+ let r = 0, a;
1416
+ return o;
1417
+ function o(t) {
1418
+ return e.enter("thematicBreak"), c(t);
1419
+ }
1420
+ function c(e) {
1421
+ return a = e, l(e);
1422
+ }
1423
+ function l(i) {
1424
+ return i === a ? (e.enter("thematicBreakSequence"), u(i)) : r >= 3 && (i === null || s(i)) ? (e.exit("thematicBreak"), t(i)) : n(i);
1425
+ }
1426
+ function u(t) {
1427
+ return t === a ? (e.consume(t), r++, u) : (e.exit("thematicBreakSequence"), i(t) ? p(e, l, "whitespace")(t) : l(t));
1428
+ }
1429
+ }
1430
+ //#endregion
1431
+ //#region node_modules/micromark-core-commonmark/lib/list.js
1432
+ var K = {
1433
+ continuation: { tokenize: xt },
1434
+ exit: Ct,
1435
+ name: "list",
1436
+ tokenize: bt
1437
+ }, vt = {
1438
+ partial: !0,
1439
+ tokenize: wt
1440
+ }, yt = {
1441
+ partial: !0,
1442
+ tokenize: St
1443
+ };
1444
+ function bt(e, t, n) {
1445
+ let r = this, a = r.events[r.events.length - 1], o = a && a[1].type === "linePrefix" ? a[2].sliceSerialize(a[1], !0).length : 0, s = 0;
1446
+ return c;
1447
+ function c(t) {
1448
+ let i = r.containerState.type || (t === 42 || t === 43 || t === 45 ? "listUnordered" : "listOrdered");
1449
+ if (i === "listUnordered" ? !r.containerState.marker || t === r.containerState.marker : l(t)) {
1450
+ if (r.containerState.type || (r.containerState.type = i, e.enter(i, { _container: !0 })), i === "listUnordered") return e.enter("listItemPrefix"), t === 42 || t === 45 ? e.check(gt, n, d)(t) : d(t);
1451
+ if (!r.interrupt || t === 49) return e.enter("listItemPrefix"), e.enter("listItemValue"), u(t);
1452
+ }
1453
+ return n(t);
1454
+ }
1455
+ function u(t) {
1456
+ return l(t) && ++s < 10 ? (e.consume(t), u) : (!r.interrupt || s < 2) && (r.containerState.marker ? t === r.containerState.marker : t === 41 || t === 46) ? (e.exit("listItemValue"), d(t)) : n(t);
1457
+ }
1458
+ function d(t) {
1459
+ return e.enter("listItemMarker"), e.consume(t), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || t, e.check(H, r.interrupt ? n : f, e.attempt(vt, m, p));
1460
+ }
1461
+ function f(e) {
1462
+ return r.containerState.initialBlankLine = !0, o++, m(e);
1463
+ }
1464
+ function p(t) {
1465
+ return i(t) ? (e.enter("listItemPrefixWhitespace"), e.consume(t), e.exit("listItemPrefixWhitespace"), m) : n(t);
1466
+ }
1467
+ function m(n) {
1468
+ return r.containerState.size = o + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(n);
1469
+ }
1470
+ }
1471
+ function xt(e, t, n) {
1472
+ let r = this;
1473
+ return r.containerState._closeFlow = void 0, e.check(H, a, o);
1474
+ function a(n) {
1475
+ return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, p(e, t, "listItemIndent", r.containerState.size + 1)(n);
1476
+ }
1477
+ function o(n) {
1478
+ return r.containerState.furtherBlankLines || !i(n) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, s(n)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(yt, t, s)(n));
1479
+ }
1480
+ function s(i) {
1481
+ return r.containerState._closeFlow = !0, r.interrupt = void 0, p(e, e.attempt(K, t, n), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(i);
1482
+ }
1483
+ }
1484
+ function St(e, t, n) {
1485
+ let r = this;
1486
+ return p(e, i, "listItemIndent", r.containerState.size + 1);
1487
+ function i(e) {
1488
+ let i = r.events[r.events.length - 1];
1489
+ return i && i[1].type === "listItemIndent" && i[2].sliceSerialize(i[1], !0).length === r.containerState.size ? t(e) : n(e);
1490
+ }
1491
+ }
1492
+ function Ct(e) {
1493
+ e.exit(this.containerState.type);
1494
+ }
1495
+ function wt(e, t, n) {
1496
+ let r = this;
1497
+ return p(e, a, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
1498
+ function a(e) {
1499
+ let a = r.events[r.events.length - 1];
1500
+ return !i(e) && a && a[1].type === "listItemPrefixWhitespace" ? t(e) : n(e);
1501
+ }
1502
+ }
1503
+ //#endregion
1504
+ //#region node_modules/micromark-core-commonmark/lib/setext-underline.js
1505
+ var Tt = {
1506
+ name: "setextUnderline",
1507
+ resolveTo: Et,
1508
+ tokenize: Dt
1509
+ };
1510
+ function Et(e, n) {
1511
+ let r = e.length, i, a, o;
1512
+ for (; r--;) if (e[r][0] === "enter") {
1513
+ if (e[r][1].type === "content") {
1514
+ i = r;
1515
+ break;
1516
+ }
1517
+ e[r][1].type === "paragraph" && (a = r);
1518
+ } else e[r][1].type === "content" && e.splice(r, 1), !o && e[r][1].type === "definition" && (o = r);
1519
+ let s = {
1520
+ type: "setextHeading",
1521
+ start: t({}, e[i][1].start),
1522
+ end: t({}, e[e.length - 1][1].end)
1523
+ };
1524
+ return e[a][1].type = "setextHeadingText", o ? (e.splice(a, 0, [
1525
+ "enter",
1526
+ s,
1527
+ n
1528
+ ]), e.splice(o + 1, 0, [
1529
+ "exit",
1530
+ e[i][1],
1531
+ n
1532
+ ]), e[i][1].end = t({}, e[o][1].end)) : e[i][1] = s, e.push([
1533
+ "exit",
1534
+ s,
1535
+ n
1536
+ ]), e;
1537
+ }
1538
+ function Dt(e, t, n) {
1539
+ let r = this, a;
1540
+ return o;
1541
+ function o(t) {
1542
+ let i = r.events.length, o;
1543
+ for (; i--;) if (r.events[i][1].type !== "lineEnding" && r.events[i][1].type !== "linePrefix" && r.events[i][1].type !== "content") {
1544
+ o = r.events[i][1].type === "paragraph";
1545
+ break;
1546
+ }
1547
+ return !r.parser.lazy[r.now().line] && (r.interrupt || o) ? (e.enter("setextHeadingLine"), a = t, c(t)) : n(t);
1548
+ }
1549
+ function c(t) {
1550
+ return e.enter("setextHeadingLineSequence"), l(t);
1551
+ }
1552
+ function l(t) {
1553
+ return t === a ? (e.consume(t), l) : (e.exit("setextHeadingLineSequence"), i(t) ? p(e, u, "lineSuffix")(t) : u(t));
1554
+ }
1555
+ function u(r) {
1556
+ return r === null || s(r) ? (e.exit("setextHeadingLine"), t(r)) : n(r);
1557
+ }
1558
+ }
1559
+ //#endregion
1560
+ //#region node_modules/micromark/lib/initialize/flow.js
1561
+ var Ot = { tokenize: kt };
1562
+ function kt(e) {
1563
+ let t = this, n = e.attempt(H, r, e.attempt(this.parser.constructs.flowInitial, i, p(e, e.attempt(this.parser.constructs.flow, i, e.attempt(Ee, i)), "linePrefix")));
1564
+ return n;
1565
+ function r(r) {
1566
+ if (r === null) {
1567
+ e.consume(r);
1568
+ return;
1569
+ }
1570
+ return e.enter("lineEndingBlank"), e.consume(r), e.exit("lineEndingBlank"), t.currentConstruct = void 0, n;
1571
+ }
1572
+ function i(r) {
1573
+ if (r === null) {
1574
+ e.consume(r);
1575
+ return;
1576
+ }
1577
+ return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), t.currentConstruct = void 0, n;
1578
+ }
1579
+ }
1580
+ //#endregion
1581
+ //#region node_modules/micromark/lib/initialize/text.js
1582
+ var At = { resolveAll: Pt() }, jt = Nt("string"), Mt = Nt("text");
1583
+ function Nt(e) {
1584
+ return {
1585
+ resolveAll: Pt(e === "text" ? Ft : void 0),
1586
+ tokenize: t
1587
+ };
1588
+ function t(t) {
1589
+ let n = this, r = this.parser.constructs[e], i = t.attempt(r, a, o);
1590
+ return a;
1591
+ function a(e) {
1592
+ return c(e) ? i(e) : o(e);
1593
+ }
1594
+ function o(e) {
1595
+ if (e === null) {
1596
+ t.consume(e);
1597
+ return;
1598
+ }
1599
+ return t.enter("data"), t.consume(e), s;
1600
+ }
1601
+ function s(e) {
1602
+ return c(e) ? (t.exit("data"), i(e)) : (t.consume(e), s);
1603
+ }
1604
+ function c(e) {
1605
+ if (e === null) return !0;
1606
+ let t = r[e], i = -1;
1607
+ if (t) for (; ++i < t.length;) {
1608
+ let e = t[i];
1609
+ if (!e.previous || e.previous.call(n, n.previous)) return !0;
1610
+ }
1611
+ return !1;
1612
+ }
1613
+ }
1614
+ }
1615
+ function Pt(e) {
1616
+ return t;
1617
+ function t(t, n) {
1618
+ let r = -1, i;
1619
+ for (; ++r <= t.length;) i === void 0 ? t[r] && t[r][1].type === "data" && (i = r, r++) : (!t[r] || t[r][1].type !== "data") && (r !== i + 2 && (t[i][1].end = t[r - 1][1].end, t.splice(i + 2, r - i - 2), r = i + 2), i = void 0);
1620
+ return e ? e(t, n) : t;
1621
+ }
1622
+ }
1623
+ function Ft(e, n) {
1624
+ let r = 0;
1625
+ for (; ++r <= e.length;) if ((r === e.length || e[r][1].type === "lineEnding") && e[r - 1][1].type === "data") {
1626
+ let i = e[r - 1][1], a = n.sliceStream(i), o = a.length, s = -1, c = 0, l;
1627
+ for (; o--;) {
1628
+ let e = a[o];
1629
+ if (typeof e == "string") {
1630
+ for (s = e.length; e.charCodeAt(s - 1) === 32;) c++, s--;
1631
+ if (s) break;
1632
+ s = -1;
1633
+ } else if (e === -2) l = !0, c++;
1634
+ else if (e !== -1) {
1635
+ o++;
1636
+ break;
1637
+ }
1638
+ }
1639
+ if (n._contentTypeTextTrailing && r === e.length && (c = 0), c) {
1640
+ let a = {
1641
+ type: r === e.length || l || c < 2 ? "lineSuffix" : "hardBreakTrailing",
1642
+ start: {
1643
+ _bufferIndex: o ? s : i.start._bufferIndex + s,
1644
+ _index: i.start._index + o,
1645
+ line: i.end.line,
1646
+ column: i.end.column - c,
1647
+ offset: i.end.offset - c
1648
+ },
1649
+ end: t({}, i.end)
1650
+ };
1651
+ i.end = t({}, a.start), i.start.offset === i.end.offset ? Object.assign(i, a) : (e.splice(r, 0, [
1652
+ "enter",
1653
+ a,
1654
+ n
1655
+ ], [
1656
+ "exit",
1657
+ a,
1658
+ n
1659
+ ]), r += 2);
1660
+ }
1661
+ r++;
1662
+ }
1663
+ return e;
1664
+ }
1665
+ //#endregion
1666
+ //#region node_modules/micromark/lib/constructs.js
1667
+ var It = /* @__PURE__ */ e({
1668
+ attentionMarkers: () => Wt,
1669
+ contentInitial: () => Rt,
1670
+ disable: () => Gt,
1671
+ document: () => Lt,
1672
+ flow: () => Bt,
1673
+ flowInitial: () => zt,
1674
+ insideSpan: () => Ut,
1675
+ string: () => Vt,
1676
+ text: () => Ht
1677
+ }), Lt = {
1678
+ 42: K,
1679
+ 43: K,
1680
+ 45: K,
1681
+ 48: K,
1682
+ 49: K,
1683
+ 50: K,
1684
+ 51: K,
1685
+ 52: K,
1686
+ 53: K,
1687
+ 54: K,
1688
+ 55: K,
1689
+ 56: K,
1690
+ 57: K,
1691
+ 62: ie
1692
+ }, Rt = { 91: Pe }, zt = {
1693
+ [-2]: U,
1694
+ [-1]: U,
1695
+ 32: U
1696
+ }, Bt = {
1697
+ 35: Be,
1698
+ 42: gt,
1699
+ 45: [Tt, gt],
1700
+ 60: Ge,
1701
+ 61: Tt,
1702
+ 95: gt,
1703
+ 96: pe,
1704
+ 126: pe
1705
+ }, Vt = {
1706
+ 38: ue,
1707
+ 92: ce
1708
+ }, Ht = {
1709
+ [-5]: mt,
1710
+ [-4]: mt,
1711
+ [-3]: mt,
1712
+ 33: ut,
1713
+ 38: ue,
1714
+ 42: R,
1715
+ 60: [V, Qe],
1716
+ 91: ft,
1717
+ 92: [Re, ce],
1718
+ 93: et,
1719
+ 95: R,
1720
+ 96: ye
1721
+ }, Ut = { null: [R, At] }, Wt = { null: [42, 95] }, Gt = { null: [] };
1722
+ //#endregion
1723
+ //#region node_modules/micromark/lib/create-tokenizer.js
1724
+ function Kt(e, t, n) {
1725
+ let r = {
1726
+ _bufferIndex: -1,
1727
+ _index: 0,
1728
+ line: n && n.line || 1,
1729
+ column: n && n.column || 1,
1730
+ offset: n && n.offset || 0
1731
+ }, i = {}, a = [], o = [], c = [], l = {
1732
+ attempt: E(S),
1733
+ check: E(T),
1734
+ consume: y,
1735
+ enter: b,
1736
+ exit: x,
1737
+ interrupt: E(T, { interrupt: !0 })
1738
+ }, u = {
1739
+ code: null,
1740
+ containerState: {},
1741
+ defineSkip: g,
1742
+ events: [],
1743
+ now: h,
1744
+ parser: e,
1745
+ previous: null,
1746
+ sliceSerialize: p,
1747
+ sliceStream: m,
1748
+ write: f
1749
+ }, d = t.tokenize.call(u, l);
1750
+ return t.resolveAll && a.push(t), u;
1751
+ function f(e) {
1752
+ return o = w(o, e), _(), o[o.length - 1] === null ? (D(t, 0), u.events = L(a, u.events, u), u.events) : [];
1753
+ }
1754
+ function p(e, t) {
1755
+ return Jt(m(e), t);
1756
+ }
1757
+ function m(e) {
1758
+ return qt(o, e);
1759
+ }
1760
+ function h() {
1761
+ let { _bufferIndex: e, _index: t, line: n, column: i, offset: a } = r;
1762
+ return {
1763
+ _bufferIndex: e,
1764
+ _index: t,
1765
+ line: n,
1766
+ column: i,
1767
+ offset: a
1768
+ };
1769
+ }
1770
+ function g(e) {
1771
+ i[e.line] = e.column, k();
1772
+ }
1773
+ function _() {
1774
+ let e;
1775
+ for (; r._index < o.length;) {
1776
+ let t = o[r._index];
1777
+ if (typeof t == "string") for (e = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === e && r._bufferIndex < t.length;) v(t.charCodeAt(r._bufferIndex));
1778
+ else v(t);
1779
+ }
1780
+ }
1781
+ function v(e) {
1782
+ d = d(e);
1783
+ }
1784
+ function y(e) {
1785
+ s(e) ? (r.line++, r.column = 1, r.offset += e === -3 ? 2 : 1, k()) : e !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === o[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = e;
1786
+ }
1787
+ function b(e, t) {
1788
+ let n = t || {};
1789
+ return n.type = e, n.start = h(), u.events.push([
1790
+ "enter",
1791
+ n,
1792
+ u
1793
+ ]), c.push(n), n;
1794
+ }
1795
+ function x(e) {
1796
+ let t = c.pop();
1797
+ return t.end = h(), u.events.push([
1798
+ "exit",
1799
+ t,
1800
+ u
1801
+ ]), t;
1802
+ }
1803
+ function S(e, t) {
1804
+ D(e, t.from);
1805
+ }
1806
+ function T(e, t) {
1807
+ t.restore();
1808
+ }
1809
+ function E(e, t) {
1810
+ return n;
1811
+ function n(n, r, i) {
1812
+ let a, o, s, c;
1813
+ return Array.isArray(n) ? f(n) : "tokenize" in n ? f([n]) : d(n);
1814
+ function d(e) {
1815
+ return t;
1816
+ function t(t) {
1817
+ let n = t !== null && e[t], r = t !== null && e.null;
1818
+ return f([...Array.isArray(n) ? n : n ? [n] : [], ...Array.isArray(r) ? r : r ? [r] : []])(t);
1819
+ }
1820
+ }
1821
+ function f(e) {
1822
+ return a = e, o = 0, e.length === 0 ? i : p(e[o]);
1823
+ }
1824
+ function p(e) {
1825
+ return n;
1826
+ function n(n) {
1827
+ return c = O(), s = e, e.partial || (u.currentConstruct = e), e.name && u.parser.constructs.disable.null.includes(e.name) ? h(n) : e.tokenize.call(t ? Object.assign(Object.create(u), t) : u, l, m, h)(n);
1828
+ }
1829
+ }
1830
+ function m(t) {
1831
+ return e(s, c), r;
1832
+ }
1833
+ function h(e) {
1834
+ return c.restore(), ++o < a.length ? p(a[o]) : i;
1835
+ }
1836
+ }
1837
+ }
1838
+ function D(e, t) {
1839
+ e.resolveAll && !a.includes(e) && a.push(e), e.resolve && C(u.events, t, u.events.length - t, e.resolve(u.events.slice(t), u)), e.resolveTo && (u.events = e.resolveTo(u.events, u));
1840
+ }
1841
+ function O() {
1842
+ let e = h(), t = u.previous, n = u.currentConstruct, i = u.events.length, a = Array.from(c);
1843
+ return {
1844
+ from: i,
1845
+ restore: o
1846
+ };
1847
+ function o() {
1848
+ r = e, u.previous = t, u.currentConstruct = n, u.events.length = i, c = a, k();
1849
+ }
1850
+ }
1851
+ function k() {
1852
+ r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
1853
+ }
1854
+ }
1855
+ function qt(e, t) {
1856
+ let n = t.start._index, r = t.start._bufferIndex, i = t.end._index, a = t.end._bufferIndex, o;
1857
+ if (n === i) o = [e[n].slice(r, a)];
1858
+ else {
1859
+ if (o = e.slice(n, i), r > -1) {
1860
+ let e = o[0];
1861
+ typeof e == "string" ? o[0] = e.slice(r) : o.shift();
1862
+ }
1863
+ a > 0 && o.push(e[i].slice(0, a));
1864
+ }
1865
+ return o;
1866
+ }
1867
+ function Jt(e, t) {
1868
+ let n = -1, r = [], i;
1869
+ for (; ++n < e.length;) {
1870
+ let a = e[n], o;
1871
+ if (typeof a == "string") o = a;
1872
+ else switch (a) {
1873
+ case -5:
1874
+ o = "\r";
1875
+ break;
1876
+ case -4:
1877
+ o = "\n";
1878
+ break;
1879
+ case -3:
1880
+ o = "\r\n";
1881
+ break;
1882
+ case -2:
1883
+ o = t ? " " : " ";
1884
+ break;
1885
+ case -1:
1886
+ if (!t && i) continue;
1887
+ o = " ";
1888
+ break;
1889
+ default: o = String.fromCharCode(a);
1890
+ }
1891
+ i = a === -2, r.push(o);
1892
+ }
1893
+ return r.join("");
1894
+ }
1895
+ //#endregion
1896
+ //#region node_modules/micromark/lib/parse.js
1897
+ function Yt(e) {
1898
+ let t = {
1899
+ constructs: E([It, ...(e || {}).extensions || []]),
1900
+ content: n(j),
1901
+ defined: [],
1902
+ document: n(N),
1903
+ flow: n(Ot),
1904
+ lazy: {},
1905
+ string: n(jt),
1906
+ text: n(Mt)
1907
+ };
1908
+ return t;
1909
+ function n(e) {
1910
+ return n;
1911
+ function n(n) {
1912
+ return Kt(t, e, n);
1913
+ }
1914
+ }
1915
+ }
1916
+ //#endregion
1917
+ //#region node_modules/micromark/lib/postprocess.js
1918
+ function Xt(e) {
1919
+ for (; !we(e););
1920
+ return e;
1921
+ }
1922
+ //#endregion
1923
+ //#region node_modules/micromark/lib/preprocess.js
1924
+ var Zt = /[\0\t\n\r]/g;
1925
+ function Qt() {
1926
+ let e = 1, t = "", n = !0, r;
1927
+ return i;
1928
+ function i(i, a, o) {
1929
+ let s = [], c, l, u, d, f;
1930
+ for (i = t + (typeof i == "string" ? i.toString() : new TextDecoder(a || void 0).decode(i)), u = 0, t = "", n && (i.charCodeAt(0) === 65279 && u++, n = void 0); u < i.length;) {
1931
+ if (Zt.lastIndex = u, c = Zt.exec(i), d = c && c.index !== void 0 ? c.index : i.length, f = i.charCodeAt(d), !c) {
1932
+ t = i.slice(u);
1933
+ break;
1934
+ }
1935
+ if (f === 10 && u === d && r) s.push(-3), r = void 0;
1936
+ else switch (r && (s.push(-5), r = void 0), u < d && (s.push(i.slice(u, d)), e += d - u), f) {
1937
+ case 0:
1938
+ s.push(65533), e++;
1939
+ break;
1940
+ case 9:
1941
+ for (l = Math.ceil(e / 4) * 4, s.push(-2); e++ < l;) s.push(-1);
1942
+ break;
1943
+ case 10:
1944
+ s.push(-4), e = 1;
1945
+ break;
1946
+ default: r = !0, e = 1;
1947
+ }
1948
+ u = d + 1;
1949
+ }
1950
+ return o && (r && s.push(-5), t && s.push(t), s.push(null)), s;
1951
+ }
1952
+ }
1953
+ //#endregion
1954
+ //#region node_modules/micromark-util-decode-string/index.js
1955
+ var $t = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
1956
+ function en(e) {
1957
+ return e.replace($t, tn);
1958
+ }
1959
+ function tn(e, t, n) {
1960
+ if (t) return t;
1961
+ if (n.charCodeAt(0) === 35) {
1962
+ let e = n.charCodeAt(1), t = e === 120 || e === 88;
1963
+ return k(n.slice(t ? 2 : 1), t ? 16 : 10);
1964
+ }
1965
+ return S(n) || e;
1966
+ }
1967
+ //#endregion
1968
+ //#region node_modules/unist-util-stringify-position/lib/index.js
1969
+ function nn(e) {
1970
+ return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? an(e.position) : "start" in e || "end" in e ? an(e) : "line" in e || "column" in e ? rn(e) : "";
1971
+ }
1972
+ function rn(e) {
1973
+ return on(e && e.line) + ":" + on(e && e.column);
1974
+ }
1975
+ function an(e) {
1976
+ return rn(e && e.start) + "-" + rn(e && e.end);
1977
+ }
1978
+ function on(e) {
1979
+ return e && typeof e == "number" ? e : 1;
1980
+ }
1981
+ //#endregion
1982
+ //#region node_modules/mdast-util-from-markdown/lib/index.js
1983
+ var sn = {}.hasOwnProperty;
1984
+ function cn(e, t, n) {
1985
+ return t && typeof t == "object" && (n = t, t = void 0), ln(n)(Xt(Yt(n).document().write(Qt()(e, t, !0))));
1986
+ }
1987
+ function ln(e) {
1988
+ let t = {
1989
+ transforms: [],
1990
+ canContainEols: [
1991
+ "emphasis",
1992
+ "fragment",
1993
+ "heading",
1994
+ "paragraph",
1995
+ "strong"
1996
+ ],
1997
+ enter: {
1998
+ autolink: a(U),
1999
+ autolinkProtocol: D,
2000
+ autolinkEmail: D,
2001
+ atxHeading: a(fe),
2002
+ blockQuote: a(se),
2003
+ characterEscape: D,
2004
+ characterReference: D,
2005
+ codeFenced: a(ce),
2006
+ codeFencedFenceInfo: o,
2007
+ codeFencedFenceMeta: o,
2008
+ codeIndented: a(ce, o),
2009
+ codeText: a(le, o),
2010
+ codeTextData: D,
2011
+ data: D,
2012
+ codeFlowValue: D,
2013
+ definition: a(ue),
2014
+ definitionDestinationString: o,
2015
+ definitionLabelString: o,
2016
+ definitionTitleString: o,
2017
+ emphasis: a(de),
2018
+ hardBreakEscape: a(pe),
2019
+ hardBreakTrailing: a(pe),
2020
+ htmlFlow: a(me, o),
2021
+ htmlFlowData: D,
2022
+ htmlText: a(me, o),
2023
+ htmlTextData: D,
2024
+ image: a(he),
2025
+ label: o,
2026
+ link: a(U),
2027
+ listItem: a(_e),
2028
+ listItemValue: f,
2029
+ listOrdered: a(ge, d),
2030
+ listUnordered: a(ge),
2031
+ paragraph: a(ve),
2032
+ reference: V,
2033
+ referenceString: o,
2034
+ resourceDestinationString: o,
2035
+ resourceTitleString: o,
2036
+ setextHeading: a(fe),
2037
+ strong: a(ye),
2038
+ thematicBreak: a(xe)
2039
+ },
2040
+ exit: {
2041
+ atxHeading: c(),
2042
+ atxHeadingSequence: C,
2043
+ autolink: c(),
2044
+ autolinkEmail: oe,
2045
+ autolinkProtocol: ae,
2046
+ blockQuote: c(),
2047
+ characterEscapeValue: O,
2048
+ characterReferenceMarkerHexadecimal: H,
2049
+ characterReferenceMarkerNumeric: H,
2050
+ characterReferenceValue: re,
2051
+ characterReference: ie,
2052
+ codeFenced: c(g),
2053
+ codeFencedFence: h,
2054
+ codeFencedFenceInfo: p,
2055
+ codeFencedFenceMeta: m,
2056
+ codeFlowValue: O,
2057
+ codeIndented: c(v),
2058
+ codeText: c(F),
2059
+ codeTextData: O,
2060
+ data: O,
2061
+ definition: c(),
2062
+ definitionDestinationString: x,
2063
+ definitionLabelString: y,
2064
+ definitionTitleString: b,
2065
+ emphasis: c(),
2066
+ hardBreakEscape: c(M),
2067
+ hardBreakTrailing: c(M),
2068
+ htmlFlow: c(N),
2069
+ htmlFlowData: O,
2070
+ htmlText: c(P),
2071
+ htmlTextData: O,
2072
+ image: c(I),
2073
+ label: R,
2074
+ labelText: L,
2075
+ lineEnding: j,
2076
+ link: c(ee),
2077
+ listItem: c(),
2078
+ listOrdered: c(),
2079
+ listUnordered: c(),
2080
+ paragraph: c(),
2081
+ referenceString: ne,
2082
+ resourceDestinationString: te,
2083
+ resourceTitleString: z,
2084
+ resource: B,
2085
+ setextHeading: c(E),
2086
+ setextHeadingLineSequence: T,
2087
+ setextHeadingText: w,
2088
+ strong: c(),
2089
+ thematicBreak: c()
2090
+ }
2091
+ };
2092
+ un(t, (e || {}).mdastExtensions || []);
2093
+ let n = {};
2094
+ return r;
2095
+ function r(e) {
2096
+ let r = {
2097
+ type: "root",
2098
+ children: []
2099
+ }, a = {
2100
+ stack: [r],
2101
+ tokenStack: [],
2102
+ config: t,
2103
+ enter: s,
2104
+ exit: l,
2105
+ buffer: o,
2106
+ resume: u,
2107
+ data: n
2108
+ }, c = [], d = -1;
2109
+ for (; ++d < e.length;) (e[d][1].type === "listOrdered" || e[d][1].type === "listUnordered") && (e[d][0] === "enter" ? c.push(d) : d = i(e, c.pop(), d));
2110
+ for (d = -1; ++d < e.length;) {
2111
+ let n = t[e[d][0]];
2112
+ sn.call(n, e[d][1].type) && n[e[d][1].type].call(Object.assign({ sliceSerialize: e[d][2].sliceSerialize }, a), e[d][1]);
2113
+ }
2114
+ if (a.tokenStack.length > 0) {
2115
+ let e = a.tokenStack[a.tokenStack.length - 1];
2116
+ (e[1] || fn).call(a, void 0, e[0]);
2117
+ }
2118
+ for (r.position = {
2119
+ start: q(e.length > 0 ? e[0][1].start : {
2120
+ line: 1,
2121
+ column: 1,
2122
+ offset: 0
2123
+ }),
2124
+ end: q(e.length > 0 ? e[e.length - 2][1].end : {
2125
+ line: 1,
2126
+ column: 1,
2127
+ offset: 0
2128
+ })
2129
+ }, d = -1; ++d < t.transforms.length;) r = t.transforms[d](r) || r;
2130
+ return r;
2131
+ }
2132
+ function i(e, t, n) {
2133
+ let r = t - 1, i = -1, a = !1, o, s, c, l;
2134
+ for (; ++r <= n;) {
2135
+ let t = e[r];
2136
+ switch (t[1].type) {
2137
+ case "listUnordered":
2138
+ case "listOrdered":
2139
+ case "blockQuote":
2140
+ t[0] === "enter" ? i++ : i--, l = void 0;
2141
+ break;
2142
+ case "lineEndingBlank":
2143
+ t[0] === "enter" && (o && !l && !i && !c && (c = r), l = void 0);
2144
+ break;
2145
+ case "linePrefix":
2146
+ case "listItemValue":
2147
+ case "listItemMarker":
2148
+ case "listItemPrefix":
2149
+ case "listItemPrefixWhitespace": break;
2150
+ default: l = void 0;
2151
+ }
2152
+ if (!i && t[0] === "enter" && t[1].type === "listItemPrefix" || i === -1 && t[0] === "exit" && (t[1].type === "listUnordered" || t[1].type === "listOrdered")) {
2153
+ if (o) {
2154
+ let i = r;
2155
+ for (s = void 0; i--;) {
2156
+ let t = e[i];
2157
+ if (t[1].type === "lineEnding" || t[1].type === "lineEndingBlank") {
2158
+ if (t[0] === "exit") continue;
2159
+ s && (e[s][1].type = "lineEndingBlank", a = !0), t[1].type = "lineEnding", s = i;
2160
+ } else if (!(t[1].type === "linePrefix" || t[1].type === "blockQuotePrefix" || t[1].type === "blockQuotePrefixWhitespace" || t[1].type === "blockQuoteMarker" || t[1].type === "listItemIndent")) break;
2161
+ }
2162
+ c && (!s || c < s) && (o._spread = !0), o.end = Object.assign({}, s ? e[s][1].start : t[1].end), e.splice(s || r, 0, [
2163
+ "exit",
2164
+ o,
2165
+ t[2]
2166
+ ]), r++, n++;
2167
+ }
2168
+ if (t[1].type === "listItemPrefix") {
2169
+ let i = {
2170
+ type: "listItem",
2171
+ _spread: !1,
2172
+ start: Object.assign({}, t[1].start),
2173
+ end: void 0
2174
+ };
2175
+ o = i, e.splice(r, 0, [
2176
+ "enter",
2177
+ i,
2178
+ t[2]
2179
+ ]), r++, n++, c = void 0, l = !0;
2180
+ }
2181
+ }
2182
+ }
2183
+ return e[t][1]._spread = a, n;
2184
+ }
2185
+ function a(e, t) {
2186
+ return n;
2187
+ function n(n) {
2188
+ s.call(this, e(n), n), t && t.call(this, n);
2189
+ }
2190
+ }
2191
+ function o() {
2192
+ this.stack.push({
2193
+ type: "fragment",
2194
+ children: []
2195
+ });
2196
+ }
2197
+ function s(e, t, n) {
2198
+ this.stack[this.stack.length - 1].children.push(e), this.stack.push(e), this.tokenStack.push([t, n || void 0]), e.position = {
2199
+ start: q(t.start),
2200
+ end: void 0
2201
+ };
2202
+ }
2203
+ function c(e) {
2204
+ return t;
2205
+ function t(t) {
2206
+ e && e.call(this, t), l.call(this, t);
2207
+ }
2208
+ }
2209
+ function l(e, t) {
2210
+ let n = this.stack.pop(), r = this.tokenStack.pop();
2211
+ if (r) r[0].type !== e.type && (t ? t.call(this, e, r[0]) : (r[1] || fn).call(this, e, r[0]));
2212
+ else throw Error("Cannot close `" + e.type + "` (" + nn({
2213
+ start: e.start,
2214
+ end: e.end
2215
+ }) + "): it’s not open");
2216
+ n.position.end = q(e.end);
2217
+ }
2218
+ function u() {
2219
+ return _(this.stack.pop());
2220
+ }
2221
+ function d() {
2222
+ this.data.expectingFirstListItemValue = !0;
2223
+ }
2224
+ function f(e) {
2225
+ if (this.data.expectingFirstListItemValue) {
2226
+ let t = this.stack[this.stack.length - 2];
2227
+ t.start = Number.parseInt(this.sliceSerialize(e), 10), this.data.expectingFirstListItemValue = void 0;
2228
+ }
2229
+ }
2230
+ function p() {
2231
+ let e = this.resume(), t = this.stack[this.stack.length - 1];
2232
+ t.lang = e;
2233
+ }
2234
+ function m() {
2235
+ let e = this.resume(), t = this.stack[this.stack.length - 1];
2236
+ t.meta = e;
2237
+ }
2238
+ function h() {
2239
+ this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
2240
+ }
2241
+ function g() {
2242
+ let e = this.resume(), t = this.stack[this.stack.length - 1];
2243
+ t.value = e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
2244
+ }
2245
+ function v() {
2246
+ let e = this.resume(), t = this.stack[this.stack.length - 1];
2247
+ t.value = e.replace(/(\r?\n|\r)$/g, "");
2248
+ }
2249
+ function y(e) {
2250
+ let t = this.resume(), n = this.stack[this.stack.length - 1];
2251
+ n.label = t, n.identifier = A(this.sliceSerialize(e)).toLowerCase();
2252
+ }
2253
+ function b() {
2254
+ let e = this.resume(), t = this.stack[this.stack.length - 1];
2255
+ t.title = e;
2256
+ }
2257
+ function x() {
2258
+ let e = this.resume(), t = this.stack[this.stack.length - 1];
2259
+ t.url = e;
2260
+ }
2261
+ function C(e) {
2262
+ let t = this.stack[this.stack.length - 1];
2263
+ t.depth || (t.depth = this.sliceSerialize(e).length);
2264
+ }
2265
+ function w() {
2266
+ this.data.setextHeadingSlurpLineEnding = !0;
2267
+ }
2268
+ function T(e) {
2269
+ let t = this.stack[this.stack.length - 1];
2270
+ t.depth = this.sliceSerialize(e).codePointAt(0) === 61 ? 1 : 2;
2271
+ }
2272
+ function E() {
2273
+ this.data.setextHeadingSlurpLineEnding = void 0;
2274
+ }
2275
+ function D(e) {
2276
+ let t = this.stack[this.stack.length - 1].children, n = t[t.length - 1];
2277
+ (!n || n.type !== "text") && (n = be(), n.position = {
2278
+ start: q(e.start),
2279
+ end: void 0
2280
+ }, t.push(n)), this.stack.push(n);
2281
+ }
2282
+ function O(e) {
2283
+ let t = this.stack.pop();
2284
+ t.value += this.sliceSerialize(e), t.position.end = q(e.end);
2285
+ }
2286
+ function j(e) {
2287
+ let n = this.stack[this.stack.length - 1];
2288
+ if (this.data.atHardBreak) {
2289
+ let t = n.children[n.children.length - 1];
2290
+ t.position.end = q(e.end), this.data.atHardBreak = void 0;
2291
+ return;
2292
+ }
2293
+ !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(n.type) && (D.call(this, e), O.call(this, e));
2294
+ }
2295
+ function M() {
2296
+ this.data.atHardBreak = !0;
2297
+ }
2298
+ function N() {
2299
+ let e = this.resume(), t = this.stack[this.stack.length - 1];
2300
+ t.value = e;
2301
+ }
2302
+ function P() {
2303
+ let e = this.resume(), t = this.stack[this.stack.length - 1];
2304
+ t.value = e;
2305
+ }
2306
+ function F() {
2307
+ let e = this.resume(), t = this.stack[this.stack.length - 1];
2308
+ t.value = e;
2309
+ }
2310
+ function ee() {
2311
+ let e = this.stack[this.stack.length - 1];
2312
+ if (this.data.inReference) {
2313
+ let t = this.data.referenceType || "shortcut";
2314
+ e.type += "Reference", e.referenceType = t, delete e.url, delete e.title;
2315
+ } else delete e.identifier, delete e.label;
2316
+ this.data.referenceType = void 0;
2317
+ }
2318
+ function I() {
2319
+ let e = this.stack[this.stack.length - 1];
2320
+ if (this.data.inReference) {
2321
+ let t = this.data.referenceType || "shortcut";
2322
+ e.type += "Reference", e.referenceType = t, delete e.url, delete e.title;
2323
+ } else delete e.identifier, delete e.label;
2324
+ this.data.referenceType = void 0;
2325
+ }
2326
+ function L(e) {
2327
+ let t = this.sliceSerialize(e), n = this.stack[this.stack.length - 2];
2328
+ n.label = en(t), n.identifier = A(t).toLowerCase();
2329
+ }
2330
+ function R() {
2331
+ let e = this.stack[this.stack.length - 1], t = this.resume(), n = this.stack[this.stack.length - 1];
2332
+ this.data.inReference = !0, n.type === "link" ? n.children = e.children : n.alt = t;
2333
+ }
2334
+ function te() {
2335
+ let e = this.resume(), t = this.stack[this.stack.length - 1];
2336
+ t.url = e;
2337
+ }
2338
+ function z() {
2339
+ let e = this.resume(), t = this.stack[this.stack.length - 1];
2340
+ t.title = e;
2341
+ }
2342
+ function B() {
2343
+ this.data.inReference = void 0;
2344
+ }
2345
+ function V() {
2346
+ this.data.referenceType = "collapsed";
2347
+ }
2348
+ function ne(e) {
2349
+ let t = this.resume(), n = this.stack[this.stack.length - 1];
2350
+ n.label = t, n.identifier = A(this.sliceSerialize(e)).toLowerCase(), this.data.referenceType = "full";
2351
+ }
2352
+ function H(e) {
2353
+ this.data.characterReferenceType = e.type;
2354
+ }
2355
+ function re(e) {
2356
+ let t = this.sliceSerialize(e), n = this.data.characterReferenceType, r;
2357
+ n ? (r = k(t, n === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : r = S(t);
2358
+ let i = this.stack[this.stack.length - 1];
2359
+ i.value += r;
2360
+ }
2361
+ function ie(e) {
2362
+ let t = this.stack.pop();
2363
+ t.position.end = q(e.end);
2364
+ }
2365
+ function ae(e) {
2366
+ O.call(this, e);
2367
+ let t = this.stack[this.stack.length - 1];
2368
+ t.url = this.sliceSerialize(e);
2369
+ }
2370
+ function oe(e) {
2371
+ O.call(this, e);
2372
+ let t = this.stack[this.stack.length - 1];
2373
+ t.url = "mailto:" + this.sliceSerialize(e);
2374
+ }
2375
+ function se() {
2376
+ return {
2377
+ type: "blockquote",
2378
+ children: []
2379
+ };
2380
+ }
2381
+ function ce() {
2382
+ return {
2383
+ type: "code",
2384
+ lang: null,
2385
+ meta: null,
2386
+ value: ""
2387
+ };
2388
+ }
2389
+ function le() {
2390
+ return {
2391
+ type: "inlineCode",
2392
+ value: ""
2393
+ };
2394
+ }
2395
+ function ue() {
2396
+ return {
2397
+ type: "definition",
2398
+ identifier: "",
2399
+ label: null,
2400
+ title: null,
2401
+ url: ""
2402
+ };
2403
+ }
2404
+ function de() {
2405
+ return {
2406
+ type: "emphasis",
2407
+ children: []
2408
+ };
2409
+ }
2410
+ function fe() {
2411
+ return {
2412
+ type: "heading",
2413
+ depth: 0,
2414
+ children: []
2415
+ };
2416
+ }
2417
+ function pe() {
2418
+ return { type: "break" };
2419
+ }
2420
+ function me() {
2421
+ return {
2422
+ type: "html",
2423
+ value: ""
2424
+ };
2425
+ }
2426
+ function he() {
2427
+ return {
2428
+ type: "image",
2429
+ title: null,
2430
+ url: "",
2431
+ alt: null
2432
+ };
2433
+ }
2434
+ function U() {
2435
+ return {
2436
+ type: "link",
2437
+ title: null,
2438
+ url: "",
2439
+ children: []
2440
+ };
2441
+ }
2442
+ function ge(e) {
2443
+ return {
2444
+ type: "list",
2445
+ ordered: e.type === "listOrdered",
2446
+ start: null,
2447
+ spread: e._spread,
2448
+ children: []
2449
+ };
2450
+ }
2451
+ function _e(e) {
2452
+ return {
2453
+ type: "listItem",
2454
+ spread: e._spread,
2455
+ checked: null,
2456
+ children: []
2457
+ };
2458
+ }
2459
+ function ve() {
2460
+ return {
2461
+ type: "paragraph",
2462
+ children: []
2463
+ };
2464
+ }
2465
+ function ye() {
2466
+ return {
2467
+ type: "strong",
2468
+ children: []
2469
+ };
2470
+ }
2471
+ function be() {
2472
+ return {
2473
+ type: "text",
2474
+ value: ""
2475
+ };
2476
+ }
2477
+ function xe() {
2478
+ return { type: "thematicBreak" };
2479
+ }
2480
+ }
2481
+ function q(e) {
2482
+ return {
2483
+ line: e.line,
2484
+ column: e.column,
2485
+ offset: e.offset
2486
+ };
2487
+ }
2488
+ function un(e, t) {
2489
+ let n = -1;
2490
+ for (; ++n < t.length;) {
2491
+ let r = t[n];
2492
+ Array.isArray(r) ? un(e, r) : dn(e, r);
2493
+ }
2494
+ }
2495
+ function dn(e, t) {
2496
+ let n;
2497
+ for (n in t) if (sn.call(t, n)) switch (n) {
2498
+ case "canContainEols": {
2499
+ let r = t[n];
2500
+ r && e[n].push(...r);
2501
+ break;
2502
+ }
2503
+ case "transforms": {
2504
+ let r = t[n];
2505
+ r && e[n].push(...r);
2506
+ break;
2507
+ }
2508
+ case "enter":
2509
+ case "exit": {
2510
+ let r = t[n];
2511
+ r && Object.assign(e[n], r);
2512
+ break;
2513
+ }
2514
+ }
2515
+ }
2516
+ function fn(e, t) {
2517
+ throw e ? Error("Cannot close `" + e.type + "` (" + nn({
2518
+ start: e.start,
2519
+ end: e.end
2520
+ }) + "): a different token (`" + t.type + "`, " + nn({
2521
+ start: t.start,
2522
+ end: t.end
2523
+ }) + ") is open") : Error("Cannot close document, a token (`" + t.type + "`, " + nn({
2524
+ start: t.start,
2525
+ end: t.end
2526
+ }) + ") is still open");
2527
+ }
2528
+ //#endregion
2529
+ //#region node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js
2530
+ var pn = {
2531
+ tokenize: wn,
2532
+ partial: !0
2533
+ }, mn = {
2534
+ tokenize: Tn,
2535
+ partial: !0
2536
+ }, hn = {
2537
+ tokenize: En,
2538
+ partial: !0
2539
+ }, gn = {
2540
+ tokenize: Dn,
2541
+ partial: !0
2542
+ }, _n = {
2543
+ tokenize: On,
2544
+ partial: !0
2545
+ }, vn = {
2546
+ name: "wwwAutolink",
2547
+ tokenize: Sn,
2548
+ previous: kn
2549
+ }, yn = {
2550
+ name: "protocolAutolink",
2551
+ tokenize: Cn,
2552
+ previous: An
2553
+ }, J = {
2554
+ name: "emailAutolink",
2555
+ tokenize: xn,
2556
+ previous: jn
2557
+ }, Y = {};
2558
+ function bn() {
2559
+ return { text: Y };
2560
+ }
2561
+ for (var X = 48; X < 123;) Y[X] = J, X++, X === 58 ? X = 65 : X === 91 && (X = 97);
2562
+ Y[43] = J, Y[45] = J, Y[46] = J, Y[95] = J, Y[72] = [J, yn], Y[104] = [J, yn], Y[87] = [J, vn], Y[119] = [J, vn];
2563
+ function xn(e, t, n) {
2564
+ let r = this, i, a;
2565
+ return o;
2566
+ function o(t) {
2567
+ return !Mn(t) || !jn.call(r, r.previous) || Nn(r.events) ? n(t) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), s(t));
2568
+ }
2569
+ function s(t) {
2570
+ return Mn(t) ? (e.consume(t), s) : t === 64 ? (e.consume(t), l) : n(t);
2571
+ }
2572
+ function l(t) {
2573
+ return t === 46 ? e.check(_n, f, u)(t) : t === 45 || t === 95 || d(t) ? (a = !0, e.consume(t), l) : f(t);
2574
+ }
2575
+ function u(t) {
2576
+ return e.consume(t), i = !0, l;
2577
+ }
2578
+ function f(o) {
2579
+ return a && i && c(r.previous) ? (e.exit("literalAutolinkEmail"), e.exit("literalAutolink"), t(o)) : n(o);
2580
+ }
2581
+ }
2582
+ function Sn(e, t, n) {
2583
+ let r = this;
2584
+ return i;
2585
+ function i(t) {
2586
+ return t !== 87 && t !== 119 || !kn.call(r, r.previous) || Nn(r.events) ? n(t) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(pn, e.attempt(mn, e.attempt(hn, a), n), n)(t));
2587
+ }
2588
+ function a(n) {
2589
+ return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(n);
2590
+ }
2591
+ }
2592
+ function Cn(e, t, r) {
2593
+ let i = this, o = "", s = !1;
2594
+ return l;
2595
+ function l(t) {
2596
+ return (t === 72 || t === 104) && An.call(i, i.previous) && !Nn(i.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), o += String.fromCodePoint(t), e.consume(t), d) : r(t);
2597
+ }
2598
+ function d(t) {
2599
+ if (c(t) && o.length < 5) return o += String.fromCodePoint(t), e.consume(t), d;
2600
+ if (t === 58) {
2601
+ let n = o.toLowerCase();
2602
+ if (n === "http" || n === "https") return e.consume(t), f;
2603
+ }
2604
+ return r(t);
2605
+ }
2606
+ function f(t) {
2607
+ return t === 47 ? (e.consume(t), s ? p : (s = !0, f)) : r(t);
2608
+ }
2609
+ function p(t) {
2610
+ return t === null || n(t) || m(t) || u(t) || a(t) ? r(t) : e.attempt(mn, e.attempt(hn, h), r)(t);
2611
+ }
2612
+ function h(n) {
2613
+ return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(n);
2614
+ }
2615
+ }
2616
+ function wn(e, t, n) {
2617
+ let r = 0;
2618
+ return i;
2619
+ function i(t) {
2620
+ return (t === 87 || t === 119) && r < 3 ? (r++, e.consume(t), i) : t === 46 && r === 3 ? (e.consume(t), a) : n(t);
2621
+ }
2622
+ function a(e) {
2623
+ return e === null ? n(e) : t(e);
2624
+ }
2625
+ }
2626
+ function Tn(e, t, n) {
2627
+ let r, i, o;
2628
+ return s;
2629
+ function s(t) {
2630
+ return t === 46 || t === 95 ? e.check(gn, l, c)(t) : t === null || m(t) || u(t) || t !== 45 && a(t) ? l(t) : (o = !0, e.consume(t), s);
2631
+ }
2632
+ function c(t) {
2633
+ return t === 95 ? r = !0 : (i = r, r = void 0), e.consume(t), s;
2634
+ }
2635
+ function l(e) {
2636
+ return i || r || !o ? n(e) : t(e);
2637
+ }
2638
+ }
2639
+ function En(e, t) {
2640
+ let n = 0, r = 0;
2641
+ return i;
2642
+ function i(o) {
2643
+ return o === 40 ? (n++, e.consume(o), i) : o === 41 && r < n ? a(o) : o === 33 || o === 34 || o === 38 || o === 39 || o === 41 || o === 42 || o === 44 || o === 46 || o === 58 || o === 59 || o === 60 || o === 63 || o === 93 || o === 95 || o === 126 ? e.check(gn, t, a)(o) : o === null || m(o) || u(o) ? t(o) : (e.consume(o), i);
2644
+ }
2645
+ function a(t) {
2646
+ return t === 41 && r++, e.consume(t), i;
2647
+ }
2648
+ }
2649
+ function Dn(e, t, n) {
2650
+ return r;
2651
+ function r(o) {
2652
+ return o === 33 || o === 34 || o === 39 || o === 41 || o === 42 || o === 44 || o === 46 || o === 58 || o === 59 || o === 63 || o === 95 || o === 126 ? (e.consume(o), r) : o === 38 ? (e.consume(o), a) : o === 93 ? (e.consume(o), i) : o === 60 || o === null || m(o) || u(o) ? t(o) : n(o);
2653
+ }
2654
+ function i(e) {
2655
+ return e === null || e === 40 || e === 91 || m(e) || u(e) ? t(e) : r(e);
2656
+ }
2657
+ function a(e) {
2658
+ return c(e) ? o(e) : n(e);
2659
+ }
2660
+ function o(t) {
2661
+ return t === 59 ? (e.consume(t), r) : c(t) ? (e.consume(t), o) : n(t);
2662
+ }
2663
+ }
2664
+ function On(e, t, n) {
2665
+ return r;
2666
+ function r(t) {
2667
+ return e.consume(t), i;
2668
+ }
2669
+ function i(e) {
2670
+ return d(e) ? n(e) : t(e);
2671
+ }
2672
+ }
2673
+ function kn(e) {
2674
+ return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 || m(e);
2675
+ }
2676
+ function An(e) {
2677
+ return !c(e);
2678
+ }
2679
+ function jn(e) {
2680
+ return !(e === 47 || Mn(e));
2681
+ }
2682
+ function Mn(e) {
2683
+ return e === 43 || e === 45 || e === 46 || e === 95 || d(e);
2684
+ }
2685
+ function Nn(e) {
2686
+ let t = e.length, n = !1;
2687
+ for (; t--;) {
2688
+ let r = e[t][1];
2689
+ if ((r.type === "labelLink" || r.type === "labelImage") && !r._balanced) {
2690
+ n = !0;
2691
+ break;
2692
+ }
2693
+ if (r._gfmAutolinkLiteralWalkedInto) {
2694
+ n = !1;
2695
+ break;
2696
+ }
2697
+ }
2698
+ return e.length > 0 && !n && (e[e.length - 1][1]._gfmAutolinkLiteralWalkedInto = !0), n;
2699
+ }
2700
+ //#endregion
2701
+ //#region node_modules/micromark-extension-gfm-footnote/lib/syntax.js
2702
+ var Pn = {
2703
+ tokenize: Hn,
2704
+ partial: !0
2705
+ };
2706
+ function Fn() {
2707
+ return {
2708
+ document: { 91: {
2709
+ name: "gfmFootnoteDefinition",
2710
+ tokenize: zn,
2711
+ continuation: { tokenize: Bn },
2712
+ exit: Vn
2713
+ } },
2714
+ text: {
2715
+ 91: {
2716
+ name: "gfmFootnoteCall",
2717
+ tokenize: Rn
2718
+ },
2719
+ 93: {
2720
+ name: "gfmPotentialFootnoteCall",
2721
+ add: "after",
2722
+ tokenize: In,
2723
+ resolveTo: Ln
2724
+ }
2725
+ }
2726
+ };
2727
+ }
2728
+ function In(e, t, n) {
2729
+ let r = this, i = r.events.length, a = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []), o;
2730
+ for (; i--;) {
2731
+ let e = r.events[i][1];
2732
+ if (e.type === "labelImage") {
2733
+ o = e;
2734
+ break;
2735
+ }
2736
+ if (e.type === "gfmFootnoteCall" || e.type === "labelLink" || e.type === "label" || e.type === "image" || e.type === "link") break;
2737
+ }
2738
+ return s;
2739
+ function s(i) {
2740
+ if (!o || !o._balanced) return n(i);
2741
+ let s = A(r.sliceSerialize({
2742
+ start: o.end,
2743
+ end: r.now()
2744
+ }));
2745
+ return s.codePointAt(0) !== 94 || !a.includes(s.slice(1)) ? n(i) : (e.enter("gfmFootnoteCallLabelMarker"), e.consume(i), e.exit("gfmFootnoteCallLabelMarker"), t(i));
2746
+ }
2747
+ }
2748
+ function Ln(e, t) {
2749
+ let n = e.length;
2750
+ for (; n--;) if (e[n][1].type === "labelImage" && e[n][0] === "enter") {
2751
+ e[n][1];
2752
+ break;
2753
+ }
2754
+ e[n + 1][1].type = "data", e[n + 3][1].type = "gfmFootnoteCallLabelMarker";
2755
+ let r = {
2756
+ type: "gfmFootnoteCall",
2757
+ start: Object.assign({}, e[n + 3][1].start),
2758
+ end: Object.assign({}, e[e.length - 1][1].end)
2759
+ }, i = {
2760
+ type: "gfmFootnoteCallMarker",
2761
+ start: Object.assign({}, e[n + 3][1].end),
2762
+ end: Object.assign({}, e[n + 3][1].end)
2763
+ };
2764
+ i.end.column++, i.end.offset++, i.end._bufferIndex++;
2765
+ let a = {
2766
+ type: "gfmFootnoteCallString",
2767
+ start: Object.assign({}, i.end),
2768
+ end: Object.assign({}, e[e.length - 1][1].start)
2769
+ }, o = {
2770
+ type: "chunkString",
2771
+ contentType: "string",
2772
+ start: Object.assign({}, a.start),
2773
+ end: Object.assign({}, a.end)
2774
+ }, s = [
2775
+ e[n + 1],
2776
+ e[n + 2],
2777
+ [
2778
+ "enter",
2779
+ r,
2780
+ t
2781
+ ],
2782
+ e[n + 3],
2783
+ e[n + 4],
2784
+ [
2785
+ "enter",
2786
+ i,
2787
+ t
2788
+ ],
2789
+ [
2790
+ "exit",
2791
+ i,
2792
+ t
2793
+ ],
2794
+ [
2795
+ "enter",
2796
+ a,
2797
+ t
2798
+ ],
2799
+ [
2800
+ "enter",
2801
+ o,
2802
+ t
2803
+ ],
2804
+ [
2805
+ "exit",
2806
+ o,
2807
+ t
2808
+ ],
2809
+ [
2810
+ "exit",
2811
+ a,
2812
+ t
2813
+ ],
2814
+ e[e.length - 2],
2815
+ e[e.length - 1],
2816
+ [
2817
+ "exit",
2818
+ r,
2819
+ t
2820
+ ]
2821
+ ];
2822
+ return e.splice(n, e.length - n + 1, ...s), e;
2823
+ }
2824
+ function Rn(e, t, n) {
2825
+ let r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []), a = 0, o;
2826
+ return s;
2827
+ function s(t) {
2828
+ return e.enter("gfmFootnoteCall"), e.enter("gfmFootnoteCallLabelMarker"), e.consume(t), e.exit("gfmFootnoteCallLabelMarker"), c;
2829
+ }
2830
+ function c(t) {
2831
+ return t === 94 ? (e.enter("gfmFootnoteCallMarker"), e.consume(t), e.exit("gfmFootnoteCallMarker"), e.enter("gfmFootnoteCallString"), e.enter("chunkString").contentType = "string", l) : n(t);
2832
+ }
2833
+ function l(s) {
2834
+ if (a > 999 || s === 93 && !o || s === null || s === 91 || m(s)) return n(s);
2835
+ if (s === 93) {
2836
+ e.exit("chunkString");
2837
+ let a = e.exit("gfmFootnoteCallString");
2838
+ return i.includes(A(r.sliceSerialize(a))) ? (e.enter("gfmFootnoteCallLabelMarker"), e.consume(s), e.exit("gfmFootnoteCallLabelMarker"), e.exit("gfmFootnoteCall"), t) : n(s);
2839
+ }
2840
+ return m(s) || (o = !0), a++, e.consume(s), s === 92 ? u : l;
2841
+ }
2842
+ function u(t) {
2843
+ return t === 91 || t === 92 || t === 93 ? (e.consume(t), a++, l) : l(t);
2844
+ }
2845
+ }
2846
+ function zn(e, t, n) {
2847
+ let r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []), a, o = 0, s;
2848
+ return c;
2849
+ function c(t) {
2850
+ return e.enter("gfmFootnoteDefinition")._container = !0, e.enter("gfmFootnoteDefinitionLabel"), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(t), e.exit("gfmFootnoteDefinitionLabelMarker"), l;
2851
+ }
2852
+ function l(t) {
2853
+ return t === 94 ? (e.enter("gfmFootnoteDefinitionMarker"), e.consume(t), e.exit("gfmFootnoteDefinitionMarker"), e.enter("gfmFootnoteDefinitionLabelString"), e.enter("chunkString").contentType = "string", u) : n(t);
2854
+ }
2855
+ function u(t) {
2856
+ if (o > 999 || t === 93 && !s || t === null || t === 91 || m(t)) return n(t);
2857
+ if (t === 93) {
2858
+ e.exit("chunkString");
2859
+ let n = e.exit("gfmFootnoteDefinitionLabelString");
2860
+ return a = A(r.sliceSerialize(n)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(t), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), f;
2861
+ }
2862
+ return m(t) || (s = !0), o++, e.consume(t), t === 92 ? d : u;
2863
+ }
2864
+ function d(t) {
2865
+ return t === 91 || t === 92 || t === 93 ? (e.consume(t), o++, u) : u(t);
2866
+ }
2867
+ function f(t) {
2868
+ return t === 58 ? (e.enter("definitionMarker"), e.consume(t), e.exit("definitionMarker"), i.includes(a) || i.push(a), p(e, h, "gfmFootnoteDefinitionWhitespace")) : n(t);
2869
+ }
2870
+ function h(e) {
2871
+ return t(e);
2872
+ }
2873
+ }
2874
+ function Bn(e, t, n) {
2875
+ return e.check(H, t, e.attempt(Pn, t, n));
2876
+ }
2877
+ function Vn(e) {
2878
+ e.exit("gfmFootnoteDefinition");
2879
+ }
2880
+ function Hn(e, t, n) {
2881
+ let r = this;
2882
+ return p(e, i, "gfmFootnoteDefinitionIndent", 5);
2883
+ function i(e) {
2884
+ let i = r.events[r.events.length - 1];
2885
+ return i && i[1].type === "gfmFootnoteDefinitionIndent" && i[2].sliceSerialize(i[1], !0).length === 4 ? t(e) : n(e);
2886
+ }
2887
+ }
2888
+ //#endregion
2889
+ //#region node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js
2890
+ function Un(e) {
2891
+ let t = (e || {}).singleTilde, n = {
2892
+ name: "strikethrough",
2893
+ tokenize: i,
2894
+ resolveAll: r
2895
+ };
2896
+ return t == null && (t = !0), {
2897
+ text: { 126: n },
2898
+ insideSpan: { null: [n] },
2899
+ attentionMarkers: { null: [126] }
2900
+ };
2901
+ function r(e, t) {
2902
+ let n = -1;
2903
+ for (; ++n < e.length;) if (e[n][0] === "enter" && e[n][1].type === "strikethroughSequenceTemporary" && e[n][1]._close) {
2904
+ let r = n;
2905
+ for (; r--;) if (e[r][0] === "exit" && e[r][1].type === "strikethroughSequenceTemporary" && e[r][1]._open && e[n][1].end.offset - e[n][1].start.offset === e[r][1].end.offset - e[r][1].start.offset) {
2906
+ e[n][1].type = "strikethroughSequence", e[r][1].type = "strikethroughSequence";
2907
+ let i = {
2908
+ type: "strikethrough",
2909
+ start: Object.assign({}, e[r][1].start),
2910
+ end: Object.assign({}, e[n][1].end)
2911
+ }, a = {
2912
+ type: "strikethroughText",
2913
+ start: Object.assign({}, e[r][1].end),
2914
+ end: Object.assign({}, e[n][1].start)
2915
+ }, o = [
2916
+ [
2917
+ "enter",
2918
+ i,
2919
+ t
2920
+ ],
2921
+ [
2922
+ "enter",
2923
+ e[r][1],
2924
+ t
2925
+ ],
2926
+ [
2927
+ "exit",
2928
+ e[r][1],
2929
+ t
2930
+ ],
2931
+ [
2932
+ "enter",
2933
+ a,
2934
+ t
2935
+ ]
2936
+ ], s = t.parser.constructs.insideSpan.null;
2937
+ s && C(o, o.length, 0, L(s, e.slice(r + 1, n), t)), C(o, o.length, 0, [
2938
+ [
2939
+ "exit",
2940
+ a,
2941
+ t
2942
+ ],
2943
+ [
2944
+ "enter",
2945
+ e[n][1],
2946
+ t
2947
+ ],
2948
+ [
2949
+ "exit",
2950
+ e[n][1],
2951
+ t
2952
+ ],
2953
+ [
2954
+ "exit",
2955
+ i,
2956
+ t
2957
+ ]
2958
+ ]), C(e, r - 1, n - r + 3, o), n = r + o.length - 2;
2959
+ break;
2960
+ }
2961
+ }
2962
+ for (n = -1; ++n < e.length;) e[n][1].type === "strikethroughSequenceTemporary" && (e[n][1].type = "data");
2963
+ return e;
2964
+ }
2965
+ function i(e, n, r) {
2966
+ let i = this.previous, a = this.events, o = 0;
2967
+ return s;
2968
+ function s(t) {
2969
+ return i === 126 && a[a.length - 1][1].type !== "characterEscape" ? r(t) : (e.enter("strikethroughSequenceTemporary"), c(t));
2970
+ }
2971
+ function c(a) {
2972
+ let s = I(i);
2973
+ if (a === 126) return o > 1 ? r(a) : (e.consume(a), o++, c);
2974
+ if (o < 2 && !t) return r(a);
2975
+ let l = e.exit("strikethroughSequenceTemporary"), u = I(a);
2976
+ return l._open = !u || u === 2 && !!s, l._close = !s || s === 2 && !!u, n(a);
2977
+ }
2978
+ }
2979
+ }
2980
+ //#endregion
2981
+ //#region node_modules/micromark-extension-gfm-table/lib/edit-map.js
2982
+ var Wn = class {
2983
+ constructor() {
2984
+ this.map = [];
2985
+ }
2986
+ add(e, t, n) {
2987
+ Gn(this, e, t, n);
2988
+ }
2989
+ consume(e) {
2990
+ /* c8 ignore next 3 -- `resolve` is never called without tables, so without edits. */
2991
+ if (this.map.sort(function(e, t) {
2992
+ return e[0] - t[0];
2993
+ }), this.map.length === 0) return;
2994
+ let t = this.map.length, n = [];
2995
+ for (; t > 0;) --t, n.push(e.slice(this.map[t][0] + this.map[t][1]), this.map[t][2]), e.length = this.map[t][0];
2996
+ n.push(e.slice()), e.length = 0;
2997
+ let r = n.pop();
2998
+ for (; r;) {
2999
+ for (let t of r) e.push(t);
3000
+ r = n.pop();
3001
+ }
3002
+ this.map.length = 0;
3003
+ }
3004
+ };
3005
+ function Gn(e, t, n, r) {
3006
+ let i = 0;
3007
+ if (!(n === 0 && r.length === 0)) {
3008
+ for (; i < e.map.length;) {
3009
+ if (e.map[i][0] === t) {
3010
+ e.map[i][1] += n, e.map[i][2].push(...r);
3011
+ return;
3012
+ }
3013
+ i += 1;
3014
+ }
3015
+ e.map.push([
3016
+ t,
3017
+ n,
3018
+ r
3019
+ ]);
3020
+ }
3021
+ }
3022
+ //#endregion
3023
+ //#region node_modules/micromark-extension-gfm-table/lib/infer.js
3024
+ function Kn(e, t) {
3025
+ let n = !1, r = [];
3026
+ for (; t < e.length;) {
3027
+ let i = e[t];
3028
+ if (n) {
3029
+ if (i[0] === "enter") i[1].type === "tableContent" && r.push(e[t + 1][1].type === "tableDelimiterMarker" ? "left" : "none");
3030
+ else if (i[1].type === "tableContent") {
3031
+ if (e[t - 1][1].type === "tableDelimiterMarker") {
3032
+ let e = r.length - 1;
3033
+ r[e] = r[e] === "left" ? "center" : "right";
3034
+ }
3035
+ } else if (i[1].type === "tableDelimiterRow") break;
3036
+ } else i[0] === "enter" && i[1].type === "tableDelimiterRow" && (n = !0);
3037
+ t += 1;
3038
+ }
3039
+ return r;
3040
+ }
3041
+ //#endregion
3042
+ //#region node_modules/micromark-extension-gfm-table/lib/syntax.js
3043
+ function qn() {
3044
+ return { flow: { null: {
3045
+ name: "table",
3046
+ tokenize: Jn,
3047
+ resolveAll: Yn
3048
+ } } };
3049
+ }
3050
+ function Jn(e, t, n) {
3051
+ let r = this, a = 0, o = 0, c;
3052
+ return l;
3053
+ function l(e) {
3054
+ let t = r.events.length - 1;
3055
+ for (; t > -1;) {
3056
+ let e = r.events[t][1].type;
3057
+ if (e === "lineEnding" || e === "linePrefix") t--;
3058
+ else break;
3059
+ }
3060
+ let i = t > -1 ? r.events[t][1].type : null, a = i === "tableHead" || i === "tableRow" ? E : u;
3061
+ return a === E && r.parser.lazy[r.now().line] ? n(e) : a(e);
3062
+ }
3063
+ function u(t) {
3064
+ return e.enter("tableHead"), e.enter("tableRow"), d(t);
3065
+ }
3066
+ function d(e) {
3067
+ return e === 124 ? f(e) : (c = !0, o += 1, f(e));
3068
+ }
3069
+ function f(t) {
3070
+ return t === null ? n(t) : s(t) ? o > 1 ? (o = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), _) : n(t) : i(t) ? p(e, f, "whitespace")(t) : (o += 1, c && (c = !1, a += 1), t === 124 ? (e.enter("tableCellDivider"), e.consume(t), e.exit("tableCellDivider"), c = !0, f) : (e.enter("data"), h(t)));
3071
+ }
3072
+ function h(t) {
3073
+ return t === null || t === 124 || m(t) ? (e.exit("data"), f(t)) : (e.consume(t), t === 92 ? g : h);
3074
+ }
3075
+ function g(t) {
3076
+ return t === 92 || t === 124 ? (e.consume(t), h) : h(t);
3077
+ }
3078
+ function _(t) {
3079
+ return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(t) : (e.enter("tableDelimiterRow"), c = !1, i(t) ? p(e, v, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(t) : v(t));
3080
+ }
3081
+ function v(t) {
3082
+ return t === 45 || t === 58 ? b(t) : t === 124 ? (c = !0, e.enter("tableCellDivider"), e.consume(t), e.exit("tableCellDivider"), y) : T(t);
3083
+ }
3084
+ function y(t) {
3085
+ return i(t) ? p(e, b, "whitespace")(t) : b(t);
3086
+ }
3087
+ function b(t) {
3088
+ return t === 58 ? (o += 1, c = !0, e.enter("tableDelimiterMarker"), e.consume(t), e.exit("tableDelimiterMarker"), x) : t === 45 ? (o += 1, x(t)) : t === null || s(t) ? w(t) : T(t);
3089
+ }
3090
+ function x(t) {
3091
+ return t === 45 ? (e.enter("tableDelimiterFiller"), S(t)) : T(t);
3092
+ }
3093
+ function S(t) {
3094
+ return t === 45 ? (e.consume(t), S) : t === 58 ? (c = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(t), e.exit("tableDelimiterMarker"), C) : (e.exit("tableDelimiterFiller"), C(t));
3095
+ }
3096
+ function C(t) {
3097
+ return i(t) ? p(e, w, "whitespace")(t) : w(t);
3098
+ }
3099
+ function w(n) {
3100
+ return n === 124 ? v(n) : n === null || s(n) ? !c || a !== o ? T(n) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(n)) : T(n);
3101
+ }
3102
+ function T(e) {
3103
+ return n(e);
3104
+ }
3105
+ function E(t) {
3106
+ return e.enter("tableRow"), D(t);
3107
+ }
3108
+ function D(n) {
3109
+ return n === 124 ? (e.enter("tableCellDivider"), e.consume(n), e.exit("tableCellDivider"), D) : n === null || s(n) ? (e.exit("tableRow"), t(n)) : i(n) ? p(e, D, "whitespace")(n) : (e.enter("data"), O(n));
3110
+ }
3111
+ function O(t) {
3112
+ return t === null || t === 124 || m(t) ? (e.exit("data"), D(t)) : (e.consume(t), t === 92 ? k : O);
3113
+ }
3114
+ function k(t) {
3115
+ return t === 92 || t === 124 ? (e.consume(t), O) : O(t);
3116
+ }
3117
+ }
3118
+ function Yn(e, t) {
3119
+ let n = -1, r = !0, i = 0, a = [
3120
+ 0,
3121
+ 0,
3122
+ 0,
3123
+ 0
3124
+ ], o = [
3125
+ 0,
3126
+ 0,
3127
+ 0,
3128
+ 0
3129
+ ], s = !1, c = 0, l, u, d, f = new Wn();
3130
+ for (; ++n < e.length;) {
3131
+ let p = e[n], m = p[1];
3132
+ p[0] === "enter" ? m.type === "tableHead" ? (s = !1, c !== 0 && (Zn(f, t, c, l, u), u = void 0, c = 0), l = {
3133
+ type: "table",
3134
+ start: Object.assign({}, m.start),
3135
+ end: Object.assign({}, m.end)
3136
+ }, f.add(n, 0, [[
3137
+ "enter",
3138
+ l,
3139
+ t
3140
+ ]])) : m.type === "tableRow" || m.type === "tableDelimiterRow" ? (r = !0, d = void 0, a = [
3141
+ 0,
3142
+ 0,
3143
+ 0,
3144
+ 0
3145
+ ], o = [
3146
+ 0,
3147
+ n + 1,
3148
+ 0,
3149
+ 0
3150
+ ], s && (s = !1, u = {
3151
+ type: "tableBody",
3152
+ start: Object.assign({}, m.start),
3153
+ end: Object.assign({}, m.end)
3154
+ }, f.add(n, 0, [[
3155
+ "enter",
3156
+ u,
3157
+ t
3158
+ ]])), i = m.type === "tableDelimiterRow" ? 2 : u ? 3 : 1) : i && (m.type === "data" || m.type === "tableDelimiterMarker" || m.type === "tableDelimiterFiller") ? (r = !1, o[2] === 0 && (a[1] !== 0 && (o[0] = o[1], d = Xn(f, t, a, i, void 0, d), a = [
3159
+ 0,
3160
+ 0,
3161
+ 0,
3162
+ 0
3163
+ ]), o[2] = n)) : m.type === "tableCellDivider" && (r ? r = !1 : (a[1] !== 0 && (o[0] = o[1], d = Xn(f, t, a, i, void 0, d)), a = o, o = [
3164
+ a[1],
3165
+ n,
3166
+ 0,
3167
+ 0
3168
+ ])) : m.type === "tableHead" ? (s = !0, c = n) : m.type === "tableRow" || m.type === "tableDelimiterRow" ? (c = n, a[1] === 0 ? o[1] !== 0 && (d = Xn(f, t, o, i, n, d)) : (o[0] = o[1], d = Xn(f, t, a, i, n, d)), i = 0) : i && (m.type === "data" || m.type === "tableDelimiterMarker" || m.type === "tableDelimiterFiller") && (o[3] = n);
3169
+ }
3170
+ for (c !== 0 && Zn(f, t, c, l, u), f.consume(t.events), n = -1; ++n < t.events.length;) {
3171
+ let e = t.events[n];
3172
+ e[0] === "enter" && e[1].type === "table" && (e[1]._align = Kn(t.events, n));
3173
+ }
3174
+ return e;
3175
+ }
3176
+ function Xn(e, t, n, r, i, a) {
3177
+ let o = r === 1 ? "tableHeader" : r === 2 ? "tableDelimiter" : "tableData";
3178
+ n[0] !== 0 && (a.end = Object.assign({}, Z(t.events, n[0])), e.add(n[0], 0, [[
3179
+ "exit",
3180
+ a,
3181
+ t
3182
+ ]]));
3183
+ let s = Z(t.events, n[1]);
3184
+ if (a = {
3185
+ type: o,
3186
+ start: Object.assign({}, s),
3187
+ end: Object.assign({}, s)
3188
+ }, e.add(n[1], 0, [[
3189
+ "enter",
3190
+ a,
3191
+ t
3192
+ ]]), n[2] !== 0) {
3193
+ let i = Z(t.events, n[2]), a = Z(t.events, n[3]), o = {
3194
+ type: "tableContent",
3195
+ start: Object.assign({}, i),
3196
+ end: Object.assign({}, a)
3197
+ };
3198
+ if (e.add(n[2], 0, [[
3199
+ "enter",
3200
+ o,
3201
+ t
3202
+ ]]), r !== 2) {
3203
+ let r = t.events[n[2]], i = t.events[n[3]];
3204
+ if (r[1].end = Object.assign({}, i[1].end), r[1].type = "chunkText", r[1].contentType = "text", n[3] > n[2] + 1) {
3205
+ let t = n[2] + 1, r = n[3] - n[2] - 1;
3206
+ e.add(t, r, []);
3207
+ }
3208
+ }
3209
+ e.add(n[3] + 1, 0, [[
3210
+ "exit",
3211
+ o,
3212
+ t
3213
+ ]]);
3214
+ }
3215
+ return i !== void 0 && (a.end = Object.assign({}, Z(t.events, i)), e.add(i, 0, [[
3216
+ "exit",
3217
+ a,
3218
+ t
3219
+ ]]), a = void 0), a;
3220
+ }
3221
+ function Zn(e, t, n, r, i) {
3222
+ let a = [], o = Z(t.events, n);
3223
+ i && (i.end = Object.assign({}, o), a.push([
3224
+ "exit",
3225
+ i,
3226
+ t
3227
+ ])), r.end = Object.assign({}, o), a.push([
3228
+ "exit",
3229
+ r,
3230
+ t
3231
+ ]), e.add(n + 1, 0, a);
3232
+ }
3233
+ function Z(e, t) {
3234
+ let n = e[t], r = n[0] === "enter" ? "start" : "end";
3235
+ return n[1][r];
3236
+ }
3237
+ //#endregion
3238
+ //#region node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js
3239
+ var Qn = {
3240
+ name: "tasklistCheck",
3241
+ tokenize: er
3242
+ };
3243
+ function $n() {
3244
+ return { text: { 91: Qn } };
3245
+ }
3246
+ function er(e, t, n) {
3247
+ let r = this;
3248
+ return a;
3249
+ function a(t) {
3250
+ return r.previous !== null || !r._gfmTasklistFirstContentOfListItem ? n(t) : (e.enter("taskListCheck"), e.enter("taskListCheckMarker"), e.consume(t), e.exit("taskListCheckMarker"), o);
3251
+ }
3252
+ function o(t) {
3253
+ return m(t) ? (e.enter("taskListCheckValueUnchecked"), e.consume(t), e.exit("taskListCheckValueUnchecked"), c) : t === 88 || t === 120 ? (e.enter("taskListCheckValueChecked"), e.consume(t), e.exit("taskListCheckValueChecked"), c) : n(t);
3254
+ }
3255
+ function c(t) {
3256
+ return t === 93 ? (e.enter("taskListCheckMarker"), e.consume(t), e.exit("taskListCheckMarker"), e.exit("taskListCheck"), l) : n(t);
3257
+ }
3258
+ function l(r) {
3259
+ return s(r) ? t(r) : i(r) ? e.check({ tokenize: tr }, t, n)(r) : n(r);
3260
+ }
3261
+ }
3262
+ function tr(e, t, n) {
3263
+ return p(e, r, "whitespace");
3264
+ function r(e) {
3265
+ return e === null ? n(e) : t(e);
3266
+ }
3267
+ }
3268
+ //#endregion
3269
+ //#region node_modules/micromark-extension-gfm/index.js
3270
+ function nr(e) {
3271
+ return E([
3272
+ bn(),
3273
+ Fn(),
3274
+ Un(e),
3275
+ qn(),
3276
+ $n()
3277
+ ]);
3278
+ }
3279
+ //#endregion
3280
+ //#region node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js
3281
+ function rr(e) {
3282
+ if (typeof e != "string") throw TypeError("Expected a string");
3283
+ return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
3284
+ }
3285
+ //#endregion
3286
+ //#region node_modules/unist-util-is/lib/index.js
3287
+ var ir = (function(e) {
3288
+ if (e == null) return lr;
3289
+ if (typeof e == "function") return cr(e);
3290
+ if (typeof e == "object") return Array.isArray(e) ? ar(e) : or(e);
3291
+ if (typeof e == "string") return sr(e);
3292
+ throw Error("Expected function, string, or object as test");
3293
+ });
3294
+ function ar(e) {
3295
+ let t = [], n = -1;
3296
+ for (; ++n < e.length;) t[n] = ir(e[n]);
3297
+ return cr(r);
3298
+ function r(...e) {
3299
+ let n = -1;
3300
+ for (; ++n < t.length;) if (t[n].apply(this, e)) return !0;
3301
+ return !1;
3302
+ }
3303
+ }
3304
+ function or(e) {
3305
+ let t = e;
3306
+ return cr(n);
3307
+ function n(n) {
3308
+ let r = n, i;
3309
+ for (i in e) if (r[i] !== t[i]) return !1;
3310
+ return !0;
3311
+ }
3312
+ }
3313
+ function sr(e) {
3314
+ return cr(t);
3315
+ function t(t) {
3316
+ return t && t.type === e;
3317
+ }
3318
+ }
3319
+ function cr(e) {
3320
+ return t;
3321
+ function t(t, n, r) {
3322
+ return !!(ur(t) && e.call(this, t, typeof n == "number" ? n : void 0, r || void 0));
3323
+ }
3324
+ }
3325
+ function lr() {
3326
+ return !0;
3327
+ }
3328
+ function ur(e) {
3329
+ return typeof e == "object" && !!e && "type" in e;
3330
+ }
3331
+ //#endregion
3332
+ //#region node_modules/unist-util-visit-parents/lib/color.js
3333
+ function dr(e) {
3334
+ return e;
3335
+ }
3336
+ //#endregion
3337
+ //#region node_modules/unist-util-visit-parents/lib/index.js
3338
+ var fr = [];
3339
+ function pr(e, t, n, r) {
3340
+ let i;
3341
+ typeof t == "function" && typeof n != "function" ? (r = n, n = t) : i = t;
3342
+ let a = ir(i), o = r ? -1 : 1;
3343
+ s(e, void 0, [])();
3344
+ function s(e, i, c) {
3345
+ let l = e && typeof e == "object" ? e : {};
3346
+ if (typeof l.type == "string") {
3347
+ let t = typeof l.tagName == "string" ? l.tagName : typeof l.name == "string" ? l.name : void 0;
3348
+ Object.defineProperty(u, "name", { value: "node (" + dr(e.type + (t ? "<" + t + ">" : "")) + ")" });
3349
+ }
3350
+ return u;
3351
+ function u() {
3352
+ let l = fr, u, d, f;
3353
+ if ((!t || a(e, i, c[c.length - 1] || void 0)) && (l = mr(n(e, c)), l[0] === !1)) return l;
3354
+ if ("children" in e && e.children) {
3355
+ let t = e;
3356
+ if (t.children && l[0] !== "skip") for (d = (r ? t.children.length : -1) + o, f = c.concat(t); d > -1 && d < t.children.length;) {
3357
+ let e = t.children[d];
3358
+ if (u = s(e, d, f)(), u[0] === !1) return u;
3359
+ d = typeof u[1] == "number" ? u[1] : d + o;
3360
+ }
3361
+ }
3362
+ return l;
3363
+ }
3364
+ }
3365
+ }
3366
+ function mr(e) {
3367
+ return Array.isArray(e) ? e : typeof e == "number" ? [!0, e] : e == null ? fr : [e];
3368
+ }
3369
+ //#endregion
3370
+ //#region node_modules/mdast-util-find-and-replace/lib/index.js
3371
+ function hr(e, t, n) {
3372
+ let r = ir((n || {}).ignore || []), i = gr(t), a = -1;
3373
+ for (; ++a < i.length;) pr(e, "text", o);
3374
+ function o(e, t) {
3375
+ let n = -1, i;
3376
+ for (; ++n < t.length;) {
3377
+ let e = t[n], a = i ? i.children : void 0;
3378
+ if (r(e, a ? a.indexOf(e) : void 0, i)) return;
3379
+ i = e;
3380
+ }
3381
+ if (i) return s(e, t);
3382
+ }
3383
+ function s(e, t) {
3384
+ let n = t[t.length - 1], r = i[a][0], o = i[a][1], s = 0, c = n.children.indexOf(e), l = !1, u = [];
3385
+ r.lastIndex = 0;
3386
+ let d = r.exec(e.value);
3387
+ for (; d;) {
3388
+ let n = d.index, i = {
3389
+ index: d.index,
3390
+ input: d.input,
3391
+ stack: [...t, e]
3392
+ }, a = o(...d, i);
3393
+ if (typeof a == "string" && (a = a.length > 0 ? {
3394
+ type: "text",
3395
+ value: a
3396
+ } : void 0), a === !1 ? r.lastIndex = n + 1 : (s !== n && u.push({
3397
+ type: "text",
3398
+ value: e.value.slice(s, n)
3399
+ }), Array.isArray(a) ? u.push(...a) : a && u.push(a), s = n + d[0].length, l = !0), !r.global) break;
3400
+ d = r.exec(e.value);
3401
+ }
3402
+ return l ? (s < e.value.length && u.push({
3403
+ type: "text",
3404
+ value: e.value.slice(s)
3405
+ }), n.children.splice(c, 1, ...u)) : u = [e], c + u.length;
3406
+ }
3407
+ }
3408
+ function gr(e) {
3409
+ let t = [];
3410
+ if (!Array.isArray(e)) throw TypeError("Expected find and replace tuple or list of tuples");
3411
+ let n = !e[0] || Array.isArray(e[0]) ? e : [e], r = -1;
3412
+ for (; ++r < n.length;) {
3413
+ let e = n[r];
3414
+ t.push([_r(e[0]), vr(e[1])]);
3415
+ }
3416
+ return t;
3417
+ }
3418
+ function _r(e) {
3419
+ return typeof e == "string" ? new RegExp(rr(e), "g") : e;
3420
+ }
3421
+ function vr(e) {
3422
+ return typeof e == "function" ? e : function() {
3423
+ return e;
3424
+ };
3425
+ }
3426
+ //#endregion
3427
+ //#region node_modules/mdast-util-gfm-autolink-literal/lib/index.js
3428
+ function yr() {
3429
+ return {
3430
+ transforms: [Er],
3431
+ enter: {
3432
+ literalAutolink: br,
3433
+ literalAutolinkEmail: xr,
3434
+ literalAutolinkHttp: xr,
3435
+ literalAutolinkWww: xr
3436
+ },
3437
+ exit: {
3438
+ literalAutolink: Tr,
3439
+ literalAutolinkEmail: wr,
3440
+ literalAutolinkHttp: Sr,
3441
+ literalAutolinkWww: Cr
3442
+ }
3443
+ };
3444
+ }
3445
+ function br(e) {
3446
+ this.enter({
3447
+ type: "link",
3448
+ title: null,
3449
+ url: "",
3450
+ children: []
3451
+ }, e);
3452
+ }
3453
+ function xr(e) {
3454
+ this.config.enter.autolinkProtocol.call(this, e);
3455
+ }
3456
+ function Sr(e) {
3457
+ this.config.exit.autolinkProtocol.call(this, e);
3458
+ }
3459
+ function Cr(e) {
3460
+ this.config.exit.data.call(this, e);
3461
+ let t = this.stack[this.stack.length - 1];
3462
+ t.type, t.url = "http://" + this.sliceSerialize(e);
3463
+ }
3464
+ function wr(e) {
3465
+ this.config.exit.autolinkEmail.call(this, e);
3466
+ }
3467
+ function Tr(e) {
3468
+ this.exit(e);
3469
+ }
3470
+ function Er(e) {
3471
+ hr(e, [[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, Dr], [/* @__PURE__ */ RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)", "gu"), Or]], { ignore: ["link", "linkReference"] });
3472
+ }
3473
+ function Dr(e, t, n, r, i) {
3474
+ let a = "";
3475
+ if (!jr(i) || (/^w/i.test(t) && (n = t + n, t = "", a = "http://"), !kr(n))) return !1;
3476
+ let o = Ar(n + r);
3477
+ if (!o[0]) return !1;
3478
+ let s = {
3479
+ type: "link",
3480
+ title: null,
3481
+ url: a + t + o[0],
3482
+ children: [{
3483
+ type: "text",
3484
+ value: t + o[0]
3485
+ }]
3486
+ };
3487
+ return o[1] ? [s, {
3488
+ type: "text",
3489
+ value: o[1]
3490
+ }] : s;
3491
+ }
3492
+ function Or(e, t, n, r) {
3493
+ return !jr(r, !0) || /[-\d_]$/.test(n) ? !1 : {
3494
+ type: "link",
3495
+ title: null,
3496
+ url: "mailto:" + t + "@" + n,
3497
+ children: [{
3498
+ type: "text",
3499
+ value: t + "@" + n
3500
+ }]
3501
+ };
3502
+ }
3503
+ function kr(e) {
3504
+ let t = e.split(".");
3505
+ return !(t.length < 2 || t[t.length - 1] && (/_/.test(t[t.length - 1]) || !/[a-zA-Z\d]/.test(t[t.length - 1])) || t[t.length - 2] && (/_/.test(t[t.length - 2]) || !/[a-zA-Z\d]/.test(t[t.length - 2])));
3506
+ }
3507
+ function Ar(e) {
3508
+ let t = /[!"&'),.:;<>?\]}]+$/.exec(e);
3509
+ if (!t) return [e, void 0];
3510
+ e = e.slice(0, t.index);
3511
+ let n = t[0], r = n.indexOf(")"), i = h(e, "("), a = h(e, ")");
3512
+ for (; r !== -1 && i > a;) e += n.slice(0, r + 1), n = n.slice(r + 1), r = n.indexOf(")"), a++;
3513
+ return [e, n];
3514
+ }
3515
+ function jr(e, t) {
3516
+ let n = e.input.charCodeAt(e.index - 1);
3517
+ return (e.index === 0 || u(n) || a(n)) && (!t || n !== 47);
3518
+ }
3519
+ //#endregion
3520
+ //#region node_modules/mdast-util-gfm-footnote/lib/index.js
3521
+ Vr.peek = Br;
3522
+ function Mr() {
3523
+ this.buffer();
3524
+ }
3525
+ function Nr(e) {
3526
+ this.enter({
3527
+ type: "footnoteReference",
3528
+ identifier: "",
3529
+ label: ""
3530
+ }, e);
3531
+ }
3532
+ function Pr() {
3533
+ this.buffer();
3534
+ }
3535
+ function Fr(e) {
3536
+ this.enter({
3537
+ type: "footnoteDefinition",
3538
+ identifier: "",
3539
+ label: "",
3540
+ children: []
3541
+ }, e);
3542
+ }
3543
+ function Ir(e) {
3544
+ let t = this.resume(), n = this.stack[this.stack.length - 1];
3545
+ n.type, n.identifier = A(this.sliceSerialize(e)).toLowerCase(), n.label = t;
3546
+ }
3547
+ function Lr(e) {
3548
+ this.exit(e);
3549
+ }
3550
+ function Rr(e) {
3551
+ let t = this.resume(), n = this.stack[this.stack.length - 1];
3552
+ n.type, n.identifier = A(this.sliceSerialize(e)).toLowerCase(), n.label = t;
3553
+ }
3554
+ function zr(e) {
3555
+ this.exit(e);
3556
+ }
3557
+ function Br() {
3558
+ return "[";
3559
+ }
3560
+ function Vr(e, t, n, r) {
3561
+ let i = n.createTracker(r), a = i.move("[^"), o = n.enter("footnoteReference"), s = n.enter("reference");
3562
+ return a += i.move(n.safe(n.associationId(e), {
3563
+ after: "]",
3564
+ before: a
3565
+ })), s(), o(), a += i.move("]"), a;
3566
+ }
3567
+ function Hr() {
3568
+ return {
3569
+ enter: {
3570
+ gfmFootnoteCallString: Mr,
3571
+ gfmFootnoteCall: Nr,
3572
+ gfmFootnoteDefinitionLabelString: Pr,
3573
+ gfmFootnoteDefinition: Fr
3574
+ },
3575
+ exit: {
3576
+ gfmFootnoteCallString: Ir,
3577
+ gfmFootnoteCall: Lr,
3578
+ gfmFootnoteDefinitionLabelString: Rr,
3579
+ gfmFootnoteDefinition: zr
3580
+ }
3581
+ };
3582
+ }
3583
+ //#endregion
3584
+ //#region node_modules/mdast-util-gfm-strikethrough/lib/index.js
3585
+ Kr.peek = qr;
3586
+ function Ur() {
3587
+ return {
3588
+ canContainEols: ["delete"],
3589
+ enter: { strikethrough: Wr },
3590
+ exit: { strikethrough: Gr }
3591
+ };
3592
+ }
3593
+ function Wr(e) {
3594
+ this.enter({
3595
+ type: "delete",
3596
+ children: []
3597
+ }, e);
3598
+ }
3599
+ function Gr(e) {
3600
+ this.exit(e);
3601
+ }
3602
+ function Kr(e, n, r, i) {
3603
+ let a = r.createTracker(i), o = r.enter("strikethrough"), s = a.move("~~");
3604
+ return s += r.containerPhrasing(e, t(t({}, a.current()), {}, {
3605
+ before: s,
3606
+ after: "~"
3607
+ })), s += a.move("~~"), o(), s;
3608
+ }
3609
+ function qr() {
3610
+ return "~";
3611
+ }
3612
+ //#endregion
3613
+ //#region node_modules/mdast-util-gfm-table/lib/index.js
3614
+ function Jr() {
3615
+ return {
3616
+ enter: {
3617
+ table: Yr,
3618
+ tableData: $r,
3619
+ tableHeader: $r,
3620
+ tableRow: Zr
3621
+ },
3622
+ exit: {
3623
+ codeText: ei,
3624
+ table: Xr,
3625
+ tableData: Qr,
3626
+ tableHeader: Qr,
3627
+ tableRow: Qr
3628
+ }
3629
+ };
3630
+ }
3631
+ function Yr(e) {
3632
+ let t = e._align;
3633
+ this.enter({
3634
+ type: "table",
3635
+ align: t.map(function(e) {
3636
+ return e === "none" ? null : e;
3637
+ }),
3638
+ children: []
3639
+ }, e), this.data.inTable = !0;
3640
+ }
3641
+ function Xr(e) {
3642
+ this.exit(e), this.data.inTable = void 0;
3643
+ }
3644
+ function Zr(e) {
3645
+ this.enter({
3646
+ type: "tableRow",
3647
+ children: []
3648
+ }, e);
3649
+ }
3650
+ function Qr(e) {
3651
+ this.exit(e);
3652
+ }
3653
+ function $r(e) {
3654
+ this.enter({
3655
+ type: "tableCell",
3656
+ children: []
3657
+ }, e);
3658
+ }
3659
+ function ei(e) {
3660
+ let t = this.resume();
3661
+ this.data.inTable && (t = t.replace(/\\([\\|])/g, ti));
3662
+ let n = this.stack[this.stack.length - 1];
3663
+ n.type, n.value = t, this.exit(e);
3664
+ }
3665
+ function ti(e, t) {
3666
+ return t === "|" ? t : e;
3667
+ }
3668
+ //#endregion
3669
+ //#region node_modules/mdast-util-gfm-task-list-item/lib/index.js
3670
+ function ni() {
3671
+ return { exit: {
3672
+ taskListCheckValueChecked: ri,
3673
+ taskListCheckValueUnchecked: ri,
3674
+ paragraph: ii
3675
+ } };
3676
+ }
3677
+ function ri(e) {
3678
+ let t = this.stack[this.stack.length - 2];
3679
+ t.type, t.checked = e.type === "taskListCheckValueChecked";
3680
+ }
3681
+ function ii(e) {
3682
+ let t = this.stack[this.stack.length - 2];
3683
+ if (t && t.type === "listItem" && typeof t.checked == "boolean") {
3684
+ let e = this.stack[this.stack.length - 1];
3685
+ e.type;
3686
+ let n = e.children[0];
3687
+ if (n && n.type === "text") {
3688
+ let r = t.children, i = -1, a;
3689
+ for (; ++i < r.length;) {
3690
+ let e = r[i];
3691
+ if (e.type === "paragraph") {
3692
+ a = e;
3693
+ break;
3694
+ }
3695
+ }
3696
+ a === e && (n.value = n.value.slice(1), n.value.length === 0 ? e.children.shift() : e.position && n.position && typeof n.position.start.offset == "number" && (n.position.start.column++, n.position.start.offset++, e.position.start = Object.assign({}, n.position.start)));
3697
+ }
3698
+ }
3699
+ this.exit(e);
3700
+ }
3701
+ //#endregion
3702
+ //#region node_modules/mdast-util-gfm/lib/index.js
3703
+ function ai() {
3704
+ return [
3705
+ yr(),
3706
+ Hr(),
3707
+ Ur(),
3708
+ Jr(),
3709
+ ni()
3710
+ ];
3711
+ }
3712
+ //#endregion
3713
+ //#region src/markdown/phrasing-to-html.ts
3714
+ function oi(e) {
3715
+ return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
3716
+ }
3717
+ function Q(e) {
3718
+ return e.map(si).join("");
3719
+ }
3720
+ function si(e) {
3721
+ switch (e.type) {
3722
+ case "text": return oi(e.value);
3723
+ case "strong": return `<strong>${Q(e.children)}</strong>`;
3724
+ case "emphasis": return `<i>${Q(e.children)}</i>`;
3725
+ case "delete": return `<s>${Q(e.children)}</s>`;
3726
+ case "inlineCode": return `<code>${oi(e.value)}</code>`;
3727
+ case "link": return `<a href="${oi(e.url)}" target="_blank" rel="nofollow">${Q(e.children)}</a>`;
3728
+ case "break": return "<br>";
3729
+ case "image":
3730
+ var t;
3731
+ return `<img src="${oi(e.url)}" alt="${oi((t = e.alt) == null ? "" : t)}">`;
3732
+ case "html": return e.value;
3733
+ case "inlineMath":
3734
+ case "footnoteReference":
3735
+ case "imageReference":
3736
+ case "linkReference": return "";
3737
+ default: return "";
3738
+ }
3739
+ }
3740
+ //#endregion
3741
+ //#region src/markdown/mdast-to-blocks.ts
3742
+ function ci() {
3743
+ let e = `md-${Date.now().toString(36)}`, t = { counter: 0 };
3744
+ return () => `${e}-${(t.counter++).toString(36)}`;
3745
+ }
3746
+ function li(e, t = {}) {
3747
+ let n = ci();
3748
+ return ui(e.children, t, 0, n);
3749
+ }
3750
+ function ui(e, t, n, r) {
3751
+ let i = [];
3752
+ for (let a of e) {
3753
+ let e = di(a, t, n, r);
3754
+ e && i.push(...e);
3755
+ }
3756
+ return i;
3757
+ }
3758
+ function di(e, t, n, r) {
3759
+ var i;
3760
+ if ((i = t.toolMap) != null && i[e.type]) return _i(e, t, r);
3761
+ let a = fi(e, t, n, r);
3762
+ return a === void 0 ? t.onUnknownNode ? gi(t.onUnknownNode, e) : "value" in e && typeof e.value == "string" ? [Ti(Ei(e.value), r)] : null : a;
3763
+ }
3764
+ function fi(e, t, n, r) {
3765
+ if (e.type === "paragraph") return pi(e.children, r);
3766
+ if (e.type === "heading") return [$("header", {
3767
+ text: Q(e.children),
3768
+ level: e.depth
3769
+ }, r)];
3770
+ if (e.type === "thematicBreak") return [$("divider", {}, r)];
3771
+ if (e.type === "list") return vi(e, t, n, r);
3772
+ if (e.type === "blockquote") return xi(e, r);
3773
+ if (e.type === "table") return Si(e, r);
3774
+ if (e.type === "code") {
3775
+ var i;
3776
+ return [$("code", {
3777
+ code: e.value,
3778
+ language: (i = e.lang) == null ? "plain text" : i
3779
+ }, r)];
3780
+ }
3781
+ if (e.type === "math") return [$("code", {
3782
+ code: e.value,
3783
+ language: "latex"
3784
+ }, r)];
3785
+ if (e.type === "html") return wi(e, t, Ei(e.value), r);
3786
+ }
3787
+ function pi(e, t) {
3788
+ return e.some((e) => e.type === "inlineMath") ? mi(e, t) : [Ti(Q(e), t)];
3789
+ }
3790
+ function mi(e, t) {
3791
+ let n = [], r = hi(e);
3792
+ for (let e of r) {
3793
+ if (e.type === "math") {
3794
+ n.push($("code", {
3795
+ code: e.value,
3796
+ language: "latex"
3797
+ }, t));
3798
+ continue;
3799
+ }
3800
+ let r = Q(e.nodes).trim();
3801
+ r && n.push(Ti(r, t));
3802
+ }
3803
+ return n;
3804
+ }
3805
+ function hi(e) {
3806
+ let t = [], n = [];
3807
+ for (let i of e) {
3808
+ var r;
3809
+ if (i.type !== "inlineMath") {
3810
+ n.push(i);
3811
+ continue;
3812
+ }
3813
+ n.length > 0 && (t.push({
3814
+ type: "text",
3815
+ nodes: [...n]
3816
+ }), n.length = 0), t.push({
3817
+ type: "math",
3818
+ value: (r = i.value) == null ? "" : r
3819
+ });
3820
+ }
3821
+ return n.length > 0 && t.push({
3822
+ type: "text",
3823
+ nodes: n
3824
+ }), t;
3825
+ }
3826
+ function gi(e, t) {
3827
+ try {
3828
+ return e(t);
3829
+ } catch (e) {
3830
+ return console.warn(`markdownToBlocks: onUnknownNode threw for node type "${t.type}"`, e), null;
3831
+ }
3832
+ }
3833
+ function _i(e, t, n) {
3834
+ let r = t.toolMap;
3835
+ if (!r) return [];
3836
+ let i = r[e.type];
3837
+ try {
3838
+ let r = {
3839
+ id: n(),
3840
+ type: i.tool,
3841
+ data: i.data(e)
3842
+ };
3843
+ return i.children ? [r, ...i.children(e, (e) => ui(e, t, 0, n))] : [r];
3844
+ } catch (t) {
3845
+ return console.warn(`markdownToBlocks: toolMap handler threw for node type "${e.type}"`, t), [];
3846
+ }
3847
+ }
3848
+ function vi(e, t, n, r) {
3849
+ let i = [];
3850
+ for (let [a, o] of e.children.entries()) i.push(...bi(o, e, t, n, a, r));
3851
+ return i;
3852
+ }
3853
+ function yi(e, t) {
3854
+ return e ? "checklist" : t ? "ordered" : "unordered";
3855
+ }
3856
+ function bi(e, t, n, r, i, a) {
3857
+ let o = [], s = e.checked !== null && e.checked !== void 0, c = yi(s, t.ordered), l = e.children.find((e) => e.type === "paragraph"), u = {
3858
+ text: l ? Q(l.children) : "",
3859
+ style: c,
3860
+ depth: r
3861
+ };
3862
+ s && (u.checked = e.checked), t.ordered && i === 0 && t.start !== null && t.start !== void 0 && t.start !== 1 && (u.start = t.start), o.push($("list", u, a));
3863
+ for (let t of e.children) t.type === "list" && o.push(...vi(t, n, r + 1, a));
3864
+ return o;
3865
+ }
3866
+ function xi(e, t) {
3867
+ let n = [];
3868
+ for (let t of e.children) {
3869
+ if (t.type === "paragraph") {
3870
+ n.push(Q(t.children));
3871
+ continue;
3872
+ }
3873
+ if (!("children" in t) || !Array.isArray(t.children)) continue;
3874
+ let e = t.children.filter((e) => "value" in e || "children" in e);
3875
+ e.length > 0 && n.push(Q(e));
3876
+ }
3877
+ return [$("quote", {
3878
+ text: n.join("<br>"),
3879
+ size: "default"
3880
+ }, t)];
3881
+ }
3882
+ function Si(e, t) {
3883
+ let n = [], r = t(), i = [];
3884
+ for (let a of e.children) {
3885
+ let e = Ci(a.children, r, n, t);
3886
+ i.push(e);
3887
+ }
3888
+ return [{
3889
+ id: r,
3890
+ type: "table",
3891
+ data: {
3892
+ withHeadings: e.children.length > 1,
3893
+ withHeadingColumn: !1,
3894
+ content: i
3895
+ }
3896
+ }, ...n];
3897
+ }
3898
+ function Ci(e, t, n, r) {
3899
+ let i = [];
3900
+ for (let a of e) {
3901
+ let e = Q(a.children), o = r();
3902
+ n.push({
3903
+ id: o,
3904
+ type: "paragraph",
3905
+ data: { text: e },
3906
+ parent: t
3907
+ }), i.push({ blocks: [o] });
3908
+ }
3909
+ return i;
3910
+ }
3911
+ function wi(e, t, n, r) {
3912
+ if (t.onUnknownNode) {
3913
+ let n = gi(t.onUnknownNode, e);
3914
+ return n === null ? null : n;
3915
+ }
3916
+ return [Ti(n, r)];
3917
+ }
3918
+ function Ti(e, t) {
3919
+ return $("paragraph", { text: e }, t);
3920
+ }
3921
+ function $(e, t, n) {
3922
+ return {
3923
+ id: n(),
3924
+ type: e,
3925
+ data: t
3926
+ };
3927
+ }
3928
+ function Ei(e) {
3929
+ return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
3930
+ }
3931
+ //#endregion
3932
+ //#region src/markdown/index.ts
3933
+ var Di = /* @__PURE__ */ RegExp("\\$\\$[\\s\\S]+?\\$\\$|(?<!\\$)\\$(?!\\$)(?=\\S)[^$]+(?<=\\S)\\$(?!\\$)", "");
3934
+ async function Oi() {
3935
+ let [{ math: e }, { mathFromMarkdown: t }] = await Promise.all([import("./chunks/micromark-extension-math-BbkUb36G.mjs"), import("./chunks/mdast-util-math-BlK2Zu-1.mjs")]);
3936
+ return {
3937
+ mathSyntax: e(),
3938
+ mathFromMarkdown: t()
3939
+ };
3940
+ }
3941
+ async function ki(e, t = {}) {
3942
+ var n, r;
3943
+ let i = t.gfm !== !1, a = Di.test(e), o = [...i ? [nr()] : [], ...(n = t.extensions) == null ? [] : n], s = [...i ? [ai()] : [], ...(r = t.mdastExtensions) == null ? [] : r];
3944
+ if (a) {
3945
+ let { mathSyntax: e, mathFromMarkdown: t } = await Oi();
3946
+ o.push(e), s.push(t);
3947
+ }
3948
+ return li(cn(e, {
3949
+ extensions: o,
3950
+ mdastExtensions: s
3951
+ }), t);
3952
+ }
3953
+ //#endregion
3954
+ export { ki as markdownToBlocks };