@jackuait/blok 0.11.1 → 0.12.1

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 (1235) hide show
  1. package/LICENSE +13 -1
  2. package/NOTICE +10 -0
  3. package/README.md +7 -1
  4. package/codemod/migrate-editorjs-to-blok.js +51 -1
  5. package/codemod/test.js +95 -0
  6. package/dist/blok.cjs +1 -1
  7. package/dist/blok.iife.js +31 -30
  8. package/dist/blok.mjs +2 -2
  9. package/dist/chunks/_basePickBy-CLCgPLk_.cjs +1 -0
  10. package/dist/chunks/_basePickBy-cIM18c5w.mjs +166 -0
  11. package/dist/chunks/_baseUniq-C3lUNj_l.mjs +682 -0
  12. package/dist/chunks/_baseUniq-Cm3XBb1f.cjs +1 -0
  13. package/dist/chunks/arc-BSr2jl4o.mjs +80 -0
  14. package/dist/chunks/arc-C-l7V0ww.cjs +1 -0
  15. package/dist/chunks/architecture-YZFGNWBL-C5uKTSqd.mjs +3 -0
  16. package/dist/chunks/architecture-YZFGNWBL-DopZbt9d.cjs +1 -0
  17. package/dist/chunks/architectureDiagram-Q4EWVU46-B3EkmUoA.cjs +36 -0
  18. package/dist/chunks/architectureDiagram-Q4EWVU46-DL5lPOq_.mjs +4066 -0
  19. package/dist/chunks/blockDiagram-DXYQGD6D-ChnytJiO.cjs +132 -0
  20. package/dist/chunks/blockDiagram-DXYQGD6D-DjFfRgP_.mjs +3074 -0
  21. package/dist/chunks/blok-B4ebnd6l.mjs +13853 -0
  22. package/dist/chunks/blok-k8Yo4v2F.cjs +17 -0
  23. package/dist/chunks/c4Diagram-AHTNJAMY-D9cwQ5dP.cjs +10 -0
  24. package/dist/chunks/c4Diagram-AHTNJAMY-DDydXzN1.mjs +2956 -0
  25. package/dist/chunks/channel-1VaVTmSI.mjs +5 -0
  26. package/dist/chunks/channel-DTKWBt5v.cjs +1 -0
  27. package/dist/chunks/chunk-2KRD3SAO-Dcv71dz8.cjs +1 -0
  28. package/dist/chunks/chunk-2KRD3SAO-DslQvmzC.mjs +20 -0
  29. package/dist/chunks/chunk-336JU56O-CUNPhOYK.mjs +49 -0
  30. package/dist/chunks/chunk-336JU56O-DsJvvQpB.cjs +1 -0
  31. package/dist/chunks/chunk-426QAEUC-Ciny2-Rz.mjs +13 -0
  32. package/dist/chunks/chunk-426QAEUC-DEYJ0OiL.cjs +1 -0
  33. package/dist/chunks/chunk-4BX2VUAB-D1dKBLiS.cjs +1 -0
  34. package/dist/chunks/chunk-4BX2VUAB-ljY9_i7D.mjs +19 -0
  35. package/dist/chunks/chunk-4TB4RGXK-C-eXrWWX.cjs +206 -0
  36. package/dist/chunks/chunk-4TB4RGXK-orLiGd4g.mjs +3250 -0
  37. package/dist/chunks/chunk-55IACEB6-BOy3ofgp.cjs +1 -0
  38. package/dist/chunks/chunk-55IACEB6-BPnDY27B.mjs +8 -0
  39. package/dist/chunks/chunk-5FUZZQ4R-D3UGwLBL.cjs +62 -0
  40. package/dist/chunks/chunk-5FUZZQ4R-D5gG1Dk4.mjs +3786 -0
  41. package/dist/chunks/chunk-5PVQY5BW-BCwqe25T.cjs +2 -0
  42. package/dist/chunks/chunk-5PVQY5BW-DVKx7m4a.mjs +1122 -0
  43. package/dist/chunks/chunk-67CJDMHE-BU_rrdV4.mjs +20 -0
  44. package/dist/chunks/chunk-67CJDMHE-VKwQfp25.cjs +1 -0
  45. package/dist/chunks/chunk-7N4EOEYR-BpM-QbmS.cjs +1 -0
  46. package/dist/chunks/chunk-7N4EOEYR-Cx6N1y9w.mjs +29 -0
  47. package/dist/chunks/chunk-AA7GKIK3-DCAy6uIg.mjs +24 -0
  48. package/dist/chunks/chunk-AA7GKIK3-RcaBhHiZ.cjs +1 -0
  49. package/dist/chunks/chunk-BSJP7CBP-BHijZ5f8.mjs +83 -0
  50. package/dist/chunks/chunk-BSJP7CBP-wiZ2ll8-.cjs +1 -0
  51. package/dist/chunks/chunk-CIAEETIT-0sn8TZoo.cjs +1 -0
  52. package/dist/chunks/chunk-CIAEETIT-BWpztfre.mjs +20 -0
  53. package/dist/chunks/chunk-EDXVE4YY-BJAhHZ3a.mjs +26 -0
  54. package/dist/chunks/chunk-EDXVE4YY-CXhcVSEI.cjs +1 -0
  55. package/dist/chunks/chunk-ENJZ2VHE-BgpbBBSF.cjs +10 -0
  56. package/dist/chunks/chunk-ENJZ2VHE-COIAdqL4.mjs +566 -0
  57. package/dist/chunks/chunk-FMBD7UC4-CUTvay8e.mjs +5 -0
  58. package/dist/chunks/chunk-FMBD7UC4-DCJ-fphu.cjs +15 -0
  59. package/dist/chunks/chunk-FOC6F5B3-3FOtyf3P.mjs +20 -0
  60. package/dist/chunks/chunk-FOC6F5B3-C2-FyqYn.cjs +1 -0
  61. package/dist/chunks/chunk-ICPOFSXX-BUWZvUuu.cjs +122 -0
  62. package/dist/chunks/chunk-ICPOFSXX-Dn5WbEeN.mjs +3290 -0
  63. package/dist/chunks/chunk-K5T4RW27-CX5gsk1T.cjs +94 -0
  64. package/dist/chunks/chunk-K5T4RW27-De7GqZCP.mjs +16372 -0
  65. package/dist/chunks/chunk-KGLVRYIC-Cwvjry7S.cjs +1 -0
  66. package/dist/chunks/chunk-KGLVRYIC-sDQUxLS7.mjs +20 -0
  67. package/dist/chunks/chunk-LIHQZDEY-BC8om0l2.cjs +1 -0
  68. package/dist/chunks/chunk-LIHQZDEY-BoY9X2Wj.mjs +55 -0
  69. package/dist/chunks/chunk-ORNJ4GCN-CYLjqcXc.mjs +25 -0
  70. package/dist/chunks/chunk-ORNJ4GCN-CoC7A1vn.cjs +1 -0
  71. package/dist/chunks/chunk-OYMX7WX6-Bbwq_g2w.mjs +2038 -0
  72. package/dist/chunks/chunk-OYMX7WX6-D3csU8-J.cjs +231 -0
  73. package/dist/chunks/chunk-QZHKN3VN-Bs3XaH0U.mjs +12 -0
  74. package/dist/chunks/chunk-QZHKN3VN-Db_x7kn8.cjs +1 -0
  75. package/dist/chunks/chunk-U2HBQHQK-CEwYxA8R.cjs +70 -0
  76. package/dist/chunks/chunk-U2HBQHQK-DLyzqElq.mjs +1875 -0
  77. package/dist/chunks/chunk-X2U36JSP-BY9JBwLQ.cjs +1 -0
  78. package/dist/chunks/chunk-X2U36JSP-UKGkP2m1.mjs +68 -0
  79. package/dist/chunks/chunk-XPW4576I-2i_ZgZLs.mjs +1146 -0
  80. package/dist/chunks/chunk-XPW4576I-Ym5mFsxv.cjs +32 -0
  81. package/dist/chunks/chunk-YZCP3GAM-C2GbOoUx.mjs +60 -0
  82. package/dist/chunks/chunk-YZCP3GAM-WMeXt5aH.cjs +1 -0
  83. package/dist/chunks/chunk-ZZ45TVLE-CeD1lNAB.cjs +1 -0
  84. package/dist/chunks/chunk-ZZ45TVLE-DyYus02Y.mjs +33 -0
  85. package/dist/chunks/classDiagram-6PBFFD2Q-DNHZ3qE5.mjs +30 -0
  86. package/dist/chunks/classDiagram-6PBFFD2Q-DWcC9USb.cjs +1 -0
  87. package/dist/chunks/classDiagram-v2-HSJHXN6E-BXKTiJNh.cjs +1 -0
  88. package/dist/chunks/classDiagram-v2-HSJHXN6E-GgfA5-jG.mjs +30 -0
  89. package/dist/chunks/clone-DeEumpiC.mjs +8 -0
  90. package/dist/chunks/clone-gX2HWen_.cjs +1 -0
  91. package/dist/chunks/constants-BsyOzSoJ.mjs +3432 -0
  92. package/dist/chunks/constants-DGaNl2M0.cjs +457 -0
  93. package/dist/chunks/cose-bilkent-S5V4N54A-BuQ-Gx1y.mjs +2246 -0
  94. package/dist/chunks/cose-bilkent-S5V4N54A-CdxjlgEx.cjs +1 -0
  95. package/dist/chunks/dagre-BVQ5RQE_.mjs +1483 -0
  96. package/dist/chunks/dagre-D9QEFKwC.cjs +1 -0
  97. package/dist/chunks/dagre-KV5264BT-BxQkkVxZ.mjs +298 -0
  98. package/dist/chunks/dagre-KV5264BT-Dz_FEBZU.cjs +4 -0
  99. package/dist/chunks/diagram-5BDNPKRD-Cf9AymAx.cjs +10 -0
  100. package/dist/chunks/diagram-5BDNPKRD-joiZwmh1.mjs +112 -0
  101. package/dist/chunks/diagram-G4DWMVQ6-3CAnipxw.cjs +24 -0
  102. package/dist/chunks/diagram-G4DWMVQ6-DrvbpYBX.mjs +546 -0
  103. package/dist/chunks/diagram-MMDJMWI5-B3CwY62T.mjs +234 -0
  104. package/dist/chunks/diagram-MMDJMWI5-DMrk0xwH.cjs +43 -0
  105. package/dist/chunks/diagram-TYMM5635-B3g66i1E.mjs +144 -0
  106. package/dist/chunks/diagram-TYMM5635-BAuYHtjV.cjs +24 -0
  107. package/dist/chunks/erDiagram-SMLLAGMA-4Ks-44BH.cjs +85 -0
  108. package/dist/chunks/erDiagram-SMLLAGMA-Bw6U_hHz.mjs +1712 -0
  109. package/dist/chunks/flowDiagram-DWJPFMVM-D2yMfIFs.mjs +4175 -0
  110. package/dist/chunks/flowDiagram-DWJPFMVM-O6dDtont.cjs +162 -0
  111. package/dist/chunks/ganttDiagram-T4ZO3ILL-D-ymktbJ.cjs +292 -0
  112. package/dist/chunks/ganttDiagram-T4ZO3ILL-SEs0Ez0p.mjs +3083 -0
  113. package/dist/chunks/gitGraph-7Q5UKJZL-BLhgGqhG.cjs +1 -0
  114. package/dist/chunks/gitGraph-7Q5UKJZL-DbRxS8Lo.mjs +3 -0
  115. package/dist/chunks/gitGraphDiagram-UUTBAWPF-BSuqMw-A.cjs +106 -0
  116. package/dist/chunks/gitGraphDiagram-UUTBAWPF-BpVIPN2N.mjs +792 -0
  117. package/dist/chunks/graphlib-C2L_nEcM.cjs +1 -0
  118. package/dist/chunks/graphlib-Cpp6Todw.mjs +225 -0
  119. package/dist/chunks/i18next-loader-BJAXtkt3.cjs +1 -0
  120. package/dist/chunks/i18next-loader-dnJtS6Nb.mjs +35 -0
  121. package/dist/chunks/info-OMHHGYJF-BRxQdcvB.mjs +3 -0
  122. package/dist/chunks/info-OMHHGYJF-Cb4wPKNP.cjs +1 -0
  123. package/dist/chunks/infoDiagram-42DDH7IO-BNAE_Dp2.cjs +2 -0
  124. package/dist/chunks/infoDiagram-42DDH7IO-JYmpv-Gn.mjs +29 -0
  125. package/dist/chunks/isEmpty-BYDpYNyM.cjs +1 -0
  126. package/dist/chunks/isEmpty-Bgy1eL0m.mjs +35 -0
  127. package/dist/chunks/ishikawaDiagram-UXIWVN3A-Ca_1igMn.cjs +70 -0
  128. package/dist/chunks/ishikawaDiagram-UXIWVN3A-ClkZz1Tc.mjs +719 -0
  129. package/dist/chunks/journeyDiagram-VCZTEJTY-BTzeo896.mjs +885 -0
  130. package/dist/chunks/journeyDiagram-VCZTEJTY-D69nfb5v.cjs +139 -0
  131. package/dist/chunks/kanban-definition-6JOO6SKY-BTSuFyjj.cjs +89 -0
  132. package/dist/chunks/kanban-definition-6JOO6SKY-C2Jk5rDA.mjs +980 -0
  133. package/dist/chunks/lightweight-i18n-T_Nc45AF.cjs +1 -0
  134. package/dist/chunks/lightweight-i18n-qpzXlOVm.mjs +344 -0
  135. package/dist/chunks/line-CjJKN63i.cjs +1 -0
  136. package/dist/chunks/line-zarcRAiW.mjs +34 -0
  137. package/dist/chunks/linear-CDUWrVHa.cjs +1 -0
  138. package/dist/chunks/linear-CXe29GGg.mjs +289 -0
  139. package/dist/chunks/mdast-util-math-BfFBcnFx.cjs +5 -0
  140. package/dist/chunks/mdast-util-math-CqPx3t0S.mjs +151 -0
  141. package/dist/chunks/mermaid-parser.core-BXANIhlc.mjs +57 -0
  142. package/dist/chunks/mermaid-parser.core-DMmP6uoD.cjs +3 -0
  143. package/dist/chunks/mermaid.core-A4e6ZJqs.mjs +977 -0
  144. package/dist/chunks/mermaid.core-C66G0J-z.cjs +10 -0
  145. package/dist/chunks/messages--BWLKiOP2.mjs +319 -0
  146. package/dist/chunks/messages--LI6Qp0h.mjs +319 -0
  147. package/dist/chunks/messages-4TiLLTpr2.cjs +1 -0
  148. package/dist/chunks/messages-7ul_s8GB2.mjs +319 -0
  149. package/dist/chunks/messages-8BZGqPD1.cjs +1 -0
  150. package/dist/chunks/messages-96ztlozp.cjs +1 -0
  151. package/dist/chunks/messages-B-_ZQLp5.mjs +319 -0
  152. package/dist/chunks/messages-B1YSYW3Y.cjs +1 -0
  153. package/dist/chunks/messages-B3E33lPt2.mjs +319 -0
  154. package/dist/chunks/messages-BABN8cuN.mjs +319 -0
  155. package/dist/chunks/messages-BDAXqxYw.cjs +1 -0
  156. package/dist/chunks/messages-BE0YZo6f.cjs +1 -0
  157. package/dist/chunks/messages-BIg9D7T52.cjs +1 -0
  158. package/dist/chunks/messages-BKtPvquH2.mjs +319 -0
  159. package/dist/chunks/messages-BMKq6Ps12.cjs +1 -0
  160. package/dist/chunks/messages-BMqvMau_2.mjs +319 -0
  161. package/dist/chunks/messages-BNmaVDtf.mjs +319 -0
  162. package/dist/chunks/messages-BRRMkfZY2.cjs +1 -0
  163. package/dist/chunks/messages-BUg0EGM6.cjs +1 -0
  164. package/dist/chunks/messages-BV88VXs-2.mjs +319 -0
  165. package/dist/chunks/messages-BVAjj_W_2.mjs +319 -0
  166. package/dist/chunks/messages-BWd6mmTm.mjs +319 -0
  167. package/dist/chunks/messages-BXce9Dbm.mjs +319 -0
  168. package/dist/chunks/messages-B_OU8dr_.mjs +319 -0
  169. package/dist/chunks/messages-B_VpqVFy.mjs +319 -0
  170. package/dist/chunks/messages-B_t9669l.mjs +319 -0
  171. package/dist/chunks/messages-Begh-7SQ.cjs +1 -0
  172. package/dist/chunks/messages-BfTeMiOT.cjs +1 -0
  173. package/dist/chunks/messages-BguYUD04.cjs +1 -0
  174. package/dist/chunks/messages-Bi5NKhkL.cjs +1 -0
  175. package/dist/chunks/messages-BliJJjNK2.cjs +1 -0
  176. package/dist/chunks/messages-BmSnovX9.cjs +1 -0
  177. package/dist/chunks/messages-BoZAdwRU2.mjs +319 -0
  178. package/dist/chunks/messages-Bp-PMdAJ.mjs +319 -0
  179. package/dist/chunks/messages-BphoNqXl2.mjs +319 -0
  180. package/dist/chunks/messages-Bs5HM4rw2.cjs +1 -0
  181. package/dist/chunks/messages-BtZSlvVR.cjs +1 -0
  182. package/dist/chunks/messages-Btg_N5Nj2.cjs +1 -0
  183. package/dist/chunks/messages-C67MLHmh.cjs +1 -0
  184. package/dist/chunks/messages-C6RXCX1D2.mjs +319 -0
  185. package/dist/chunks/messages-C6Zo4thu.mjs +319 -0
  186. package/dist/chunks/messages-C7QEUxQf2.cjs +1 -0
  187. package/dist/chunks/messages-CB-RDoMj2.cjs +1 -0
  188. package/dist/chunks/messages-CBOtPEE5.cjs +1 -0
  189. package/dist/chunks/messages-CBoKI_4k2.mjs +319 -0
  190. package/dist/chunks/messages-CCMMPgcH.mjs +319 -0
  191. package/dist/chunks/messages-CFvaU-9Q2.mjs +319 -0
  192. package/dist/chunks/messages-CHDxRwD8.mjs +319 -0
  193. package/dist/chunks/messages-CJWSRA8r.cjs +1 -0
  194. package/dist/chunks/messages-CJaj0WrV.mjs +319 -0
  195. package/dist/chunks/messages-CLnZAk7s.mjs +319 -0
  196. package/dist/chunks/messages-CNWWk9zU.cjs +1 -0
  197. package/dist/chunks/messages-CO4IPaU22.mjs +319 -0
  198. package/dist/chunks/messages-CQii-Hly.mjs +319 -0
  199. package/dist/chunks/messages-CSPoZeJd.cjs +1 -0
  200. package/dist/chunks/messages-CThWJOaj2.cjs +1 -0
  201. package/dist/chunks/messages-CWbag2W1.mjs +319 -0
  202. package/dist/chunks/messages-CWfPtitC.mjs +319 -0
  203. package/dist/chunks/messages-CYh8BT-U2.cjs +1 -0
  204. package/dist/chunks/messages-CZAwmrBN2.mjs +319 -0
  205. package/dist/chunks/messages-CcmzbJED2.mjs +319 -0
  206. package/dist/chunks/messages-Cdp2ao16.cjs +1 -0
  207. package/dist/chunks/messages-CeSGFPaX.mjs +319 -0
  208. package/dist/chunks/messages-CfmN_C_V2.cjs +1 -0
  209. package/dist/chunks/messages-CgTWiYXl.mjs +319 -0
  210. package/dist/chunks/messages-CiqFmj282.mjs +319 -0
  211. package/dist/chunks/messages-Cj1I1bdS.mjs +319 -0
  212. package/dist/chunks/messages-CktwPONk2.cjs +1 -0
  213. package/dist/chunks/messages-ClMbt_082.cjs +1 -0
  214. package/dist/chunks/messages-ClfpoVLB.cjs +1 -0
  215. package/dist/chunks/messages-CmcpUpmY2.cjs +1 -0
  216. package/dist/chunks/messages-CnNUiCOF2.cjs +1 -0
  217. package/dist/chunks/messages-Cq-tyBQ7.cjs +1 -0
  218. package/dist/chunks/messages-Cqs6tnMT.mjs +319 -0
  219. package/dist/chunks/messages-CrPQatEP.cjs +1 -0
  220. package/dist/chunks/messages-CtNhn2A72.cjs +1 -0
  221. package/dist/chunks/messages-Cw-JQsbB.cjs +1 -0
  222. package/dist/chunks/messages-CxLZNPP22.mjs +319 -0
  223. package/dist/chunks/messages-D2to7PFh.mjs +319 -0
  224. package/dist/chunks/messages-D7GNxw46.cjs +1 -0
  225. package/dist/chunks/messages-DDqbUQPS2.cjs +1 -0
  226. package/dist/chunks/messages-DIsfRggy.mjs +319 -0
  227. package/dist/chunks/messages-DLvqdeVe.mjs +319 -0
  228. package/dist/chunks/messages-DMukq8ei2.cjs +1 -0
  229. package/dist/chunks/messages-DOJ7TGKc.mjs +319 -0
  230. package/dist/chunks/messages-DPpKBEMV.mjs +319 -0
  231. package/dist/chunks/messages-DWDt4hEW.mjs +319 -0
  232. package/dist/chunks/messages-DYPc3t5L.cjs +1 -0
  233. package/dist/chunks/messages-DYRRi1JW.mjs +319 -0
  234. package/dist/chunks/messages-DYbP7_iL.cjs +1 -0
  235. package/dist/chunks/messages-D_gbD8W22.mjs +319 -0
  236. package/dist/chunks/messages-DaQ1XgNk.mjs +319 -0
  237. package/dist/chunks/messages-DjW1_-Ba2.mjs +319 -0
  238. package/dist/chunks/messages-Dop11yxi.mjs +319 -0
  239. package/dist/chunks/messages-DoyFY1Ye.mjs +319 -0
  240. package/dist/chunks/messages-DpjZ6YjX.cjs +1 -0
  241. package/dist/chunks/messages-DprfonW1.mjs +319 -0
  242. package/dist/chunks/messages-Dq8w46wu.cjs +1 -0
  243. package/dist/chunks/messages-DqbBTg1F2.mjs +319 -0
  244. package/dist/chunks/messages-DsGOj3A62.cjs +1 -0
  245. package/dist/chunks/messages-Dt6sbdaY.mjs +319 -0
  246. package/dist/chunks/messages-Dv3xqn-c.mjs +319 -0
  247. package/dist/chunks/messages-DwZCK3WR2.cjs +1 -0
  248. package/dist/chunks/messages-G-grLA6L2.cjs +1 -0
  249. package/dist/chunks/messages-HmyGBKiy2.cjs +1 -0
  250. package/dist/chunks/messages-IsKrH6md2.mjs +319 -0
  251. package/dist/chunks/messages-L1H9KlM8.cjs +1 -0
  252. package/dist/chunks/messages-OwCNaUA2.cjs +1 -0
  253. package/dist/chunks/messages-Q1fgq2tw.cjs +1 -0
  254. package/dist/chunks/messages-RLMDvD9N.mjs +319 -0
  255. package/dist/chunks/messages-SGrUP3jU2.mjs +319 -0
  256. package/dist/chunks/messages-TET2HqbJ.mjs +319 -0
  257. package/dist/chunks/messages-UR9AknuE.cjs +1 -0
  258. package/dist/chunks/messages-UXbrSqP4.mjs +319 -0
  259. package/dist/chunks/messages-UlQUIo4t.cjs +1 -0
  260. package/dist/chunks/messages-VO5bBaDw2.cjs +1 -0
  261. package/dist/chunks/messages-Vz-ouTEN.mjs +319 -0
  262. package/dist/chunks/messages-Z5hg0_Dz2.mjs +319 -0
  263. package/dist/chunks/messages-bBZDrpto2.mjs +319 -0
  264. package/dist/chunks/messages-ipwQdTtE.cjs +1 -0
  265. package/dist/chunks/messages-jXbN1DEs.mjs +319 -0
  266. package/dist/chunks/messages-kon7ablY2.cjs +1 -0
  267. package/dist/chunks/messages-oeTrLt0-.cjs +1 -0
  268. package/dist/chunks/messages-qga5_rrO.cjs +1 -0
  269. package/dist/chunks/messages-sEnNaZIo.cjs +1 -0
  270. package/dist/chunks/messages-szOBKu5g.cjs +1 -0
  271. package/dist/chunks/messages-tZ7nZ7qL.cjs +1 -0
  272. package/dist/chunks/messages-u_dR89Qy.mjs +319 -0
  273. package/dist/chunks/messages-wDo4f3f9.cjs +1 -0
  274. package/dist/chunks/messages-wxVdFEgz2.mjs +319 -0
  275. package/dist/chunks/messages-x3ljzuuQ2.cjs +1 -0
  276. package/dist/chunks/messages-x6wDbfws2.mjs +319 -0
  277. package/dist/chunks/messages-ygmjC_Dc.cjs +1 -0
  278. package/dist/chunks/messages-zPVJyoxM.cjs +1 -0
  279. package/dist/chunks/micromark-extension-math-Cm8w3ABm.cjs +1 -0
  280. package/dist/chunks/micromark-extension-math-cDSPzUWY.mjs +169 -0
  281. package/dist/chunks/mindmap-definition-QFDTVHPH-DLO594eM.cjs +96 -0
  282. package/dist/chunks/mindmap-definition-QFDTVHPH-QxqvL96A.mjs +1013 -0
  283. package/dist/chunks/notifier-CfO3Icvp.cjs +1 -0
  284. package/dist/chunks/notifier-DMdYq9FS.mjs +73 -0
  285. package/dist/chunks/ordinal-DgAmiD5I.mjs +65 -0
  286. package/dist/chunks/ordinal-mgpK7IL3.cjs +1 -0
  287. package/dist/chunks/packet-4T2RLAQJ-BQYK4Pey.cjs +1 -0
  288. package/dist/chunks/packet-4T2RLAQJ-BwgNXqij.mjs +3 -0
  289. package/dist/chunks/pie-ZZUOXDRM-BLh1-ocA.cjs +1 -0
  290. package/dist/chunks/pie-ZZUOXDRM-CrDtyZu4.mjs +3 -0
  291. package/dist/chunks/pieDiagram-DEJITSTG-CGduyUgA.mjs +179 -0
  292. package/dist/chunks/pieDiagram-DEJITSTG-Do5jGsL7.cjs +30 -0
  293. package/dist/chunks/prism-bash-OGjZLOVe.cjs +1 -0
  294. package/dist/chunks/prism-bash-oISNNULp.mjs +175 -0
  295. package/dist/chunks/prism-c-1g9CdJOp.cjs +1 -0
  296. package/dist/chunks/prism-c-MtM8JocP.mjs +54 -0
  297. package/dist/chunks/prism-cpp-CORR584T.cjs +1 -0
  298. package/dist/chunks/prism-cpp-DswQJFJz.mjs +63 -0
  299. package/dist/chunks/prism-csharp-BqZp_TTb.cjs +1 -0
  300. package/dist/chunks/prism-csharp-GIfQrsqe.mjs +236 -0
  301. package/dist/chunks/prism-css-BLyqeHZR.mjs +55 -0
  302. package/dist/chunks/prism-css-DmF38Kcs.cjs +1 -0
  303. package/dist/chunks/prism-dart-CFseeodJ.cjs +1 -0
  304. package/dist/chunks/prism-dart-DbCi1QVI.mjs +52 -0
  305. package/dist/chunks/prism-docker-BOsXo4aW.cjs +1 -0
  306. package/dist/chunks/prism-docker-CUCbqggk.mjs +75 -0
  307. package/dist/chunks/prism-go-DVHXGmKb.mjs +20 -0
  308. package/dist/chunks/prism-go-DsEyoP6D.cjs +1 -0
  309. package/dist/chunks/prism-graphql-DGEYZFbw.mjs +114 -0
  310. package/dist/chunks/prism-graphql-DqXh7GRP.cjs +1 -0
  311. package/dist/chunks/prism-java-CzQtfd6W.mjs +99 -0
  312. package/dist/chunks/prism-java-DQn4zrh0.cjs +1 -0
  313. package/dist/chunks/prism-javascript-CAkVOGaq.mjs +101 -0
  314. package/dist/chunks/prism-javascript-UQPp4ffL.cjs +1 -0
  315. package/dist/chunks/prism-json-B-63BF6R.cjs +1 -0
  316. package/dist/chunks/prism-json-BSGjg8pt.mjs +25 -0
  317. package/dist/chunks/prism-kotlin-D9r_epW6.mjs +64 -0
  318. package/dist/chunks/prism-kotlin-DmCIViWe.cjs +1 -0
  319. package/dist/chunks/prism-latex-Bcpg2uQr.cjs +1 -0
  320. package/dist/chunks/prism-latex-o70KNu9w.mjs +43 -0
  321. package/dist/chunks/prism-lua-7od8jpGg.mjs +17 -0
  322. package/dist/chunks/prism-lua-DyMxrgA_.cjs +1 -0
  323. package/dist/chunks/prism-markdown-BY8dZr_8.cjs +1 -0
  324. package/dist/chunks/prism-markdown-CI62y6qt.mjs +251 -0
  325. package/dist/chunks/prism-markup-DFqZi51m.mjs +116 -0
  326. package/dist/chunks/prism-markup-OdaHxDBn.cjs +1 -0
  327. package/dist/chunks/prism-markup-templating-Cnde-rJf.cjs +1 -0
  328. package/dist/chunks/prism-markup-templating-DTIDwO2f.mjs +39 -0
  329. package/dist/chunks/prism-php-BFUaOiLc.mjs +277 -0
  330. package/dist/chunks/prism-php-D8NgAYtH.cjs +1 -0
  331. package/dist/chunks/prism-python-CTRSlrPP.mjs +59 -0
  332. package/dist/chunks/prism-python-vAqxHcox.cjs +1 -0
  333. package/dist/chunks/prism-r-AA_ZuQPX.mjs +19 -0
  334. package/dist/chunks/prism-r-BsUW1w_m.cjs +1 -0
  335. package/dist/chunks/prism-ruby-BttDevO3.mjs +156 -0
  336. package/dist/chunks/prism-ruby-D7wGSPCx.cjs +1 -0
  337. package/dist/chunks/prism-rust-1wrW82hd.mjs +92 -0
  338. package/dist/chunks/prism-rust-C65Pn3Oc.cjs +1 -0
  339. package/dist/chunks/prism-scala-C26iL30s.mjs +43 -0
  340. package/dist/chunks/prism-scala-DuAsLUh6.cjs +1 -0
  341. package/dist/chunks/prism-sql-CSv-2hNx.mjs +29 -0
  342. package/dist/chunks/prism-sql-DHhl_Wd1.cjs +1 -0
  343. package/dist/chunks/prism-swift-2HH6IALG.cjs +1 -0
  344. package/dist/chunks/prism-swift-ik83oO-E.mjs +94 -0
  345. package/dist/chunks/prism-typescript-ChaS5gh3.mjs +38 -0
  346. package/dist/chunks/prism-typescript-Cuqi9QKv.cjs +1 -0
  347. package/dist/chunks/prism-yaml-BT2oArqa.cjs +1 -0
  348. package/dist/chunks/prism-yaml-YI3VZVAw.mjs +68 -0
  349. package/dist/chunks/quadrantDiagram-34T5L4WZ-BdwmsqYk.cjs +7 -0
  350. package/dist/chunks/quadrantDiagram-34T5L4WZ-BiqiWPbj.mjs +1960 -0
  351. package/dist/chunks/radar-PYXPWWZC-CYtB39az.mjs +3 -0
  352. package/dist/chunks/radar-PYXPWWZC-Drac9aGm.cjs +1 -0
  353. package/dist/chunks/requirementDiagram-MS252O5E-Cko4AhA2.mjs +2224 -0
  354. package/dist/chunks/requirementDiagram-MS252O5E-DBRLVWVl.cjs +84 -0
  355. package/dist/chunks/sankeyDiagram-XADWPNL6-BFWIr9AZ.mjs +909 -0
  356. package/dist/chunks/sankeyDiagram-XADWPNL6-Dq3Fi6gG.cjs +10 -0
  357. package/dist/chunks/sequenceDiagram-FGHM5R23-BKKZAG9O.cjs +157 -0
  358. package/dist/chunks/sequenceDiagram-FGHM5R23-DHFzzYeT.mjs +4181 -0
  359. package/dist/chunks/stateDiagram-FHFEXIEX-B1vJTyiJ.mjs +218 -0
  360. package/dist/chunks/stateDiagram-FHFEXIEX-DsHbgVAE.cjs +1 -0
  361. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-DC206QSk.mjs +28 -0
  362. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-DzkxV3pL.cjs +1 -0
  363. package/dist/chunks/timeline-definition-GMOUNBTQ-BlXvHIKp.mjs +1084 -0
  364. package/dist/chunks/timeline-definition-GMOUNBTQ-durCMWAX.cjs +120 -0
  365. package/dist/chunks/tools-CPzDYrWa.cjs +115 -0
  366. package/dist/chunks/tools-JNr7LO1_.mjs +13853 -0
  367. package/dist/chunks/treeView-SZITEDCU-BpLDxB8w.cjs +1 -0
  368. package/dist/chunks/treeView-SZITEDCU-DIbHFtMw.mjs +3 -0
  369. package/dist/chunks/treemap-W4RFUUIX-4t60SvLo.mjs +3 -0
  370. package/dist/chunks/treemap-W4RFUUIX-jpjSZokO.cjs +1 -0
  371. package/dist/chunks/vennDiagram-DHZGUBPP-BVxAvXiG.mjs +1876 -0
  372. package/dist/chunks/vennDiagram-DHZGUBPP-Dtpe6giP.cjs +34 -0
  373. package/dist/chunks/wardley-RL74JXVD-CBBTKC3H.cjs +1 -0
  374. package/dist/chunks/wardley-RL74JXVD-g5DNBeQ1.mjs +3 -0
  375. package/dist/chunks/wardleyDiagram-NUSXRM2D-BGORQqtQ.mjs +594 -0
  376. package/dist/chunks/wardleyDiagram-NUSXRM2D-ClsU-9PV.cjs +20 -0
  377. package/dist/chunks/xychartDiagram-5P7HB3ND-DplTzQI6.mjs +2017 -0
  378. package/dist/chunks/xychartDiagram-5P7HB3ND-EO18s7Fo.cjs +7 -0
  379. package/dist/full.cjs +1 -1
  380. package/dist/full.mjs +9 -9
  381. package/dist/locales.mjs +175 -68
  382. package/dist/markdown.cjs +2 -2
  383. package/dist/markdown.mjs +392 -384
  384. package/dist/messages-28LGzsNB.mjs +319 -0
  385. package/dist/messages-35X8GsGw2.mjs +319 -0
  386. package/dist/messages-5ygX-4B92.mjs +319 -0
  387. package/dist/messages-83AcZNii.mjs +319 -0
  388. package/dist/messages-B-OvX3Vz2.mjs +319 -0
  389. package/dist/messages-B56oJj_X2.mjs +319 -0
  390. package/dist/messages-B7peBJXJ2.mjs +319 -0
  391. package/dist/messages-BGwTNk0S2.mjs +319 -0
  392. package/dist/messages-BH-SS-wY.mjs +319 -0
  393. package/dist/messages-BPX8V6tu.mjs +319 -0
  394. package/dist/messages-BUp8P-0d.mjs +319 -0
  395. package/dist/messages-BX3WM02N2.mjs +319 -0
  396. package/dist/messages-BZrMZvRb2.mjs +319 -0
  397. package/dist/messages-B_0akf3T.mjs +319 -0
  398. package/dist/messages-BaE65Wtr.mjs +319 -0
  399. package/dist/messages-BdSGtvzM.mjs +319 -0
  400. package/dist/messages-BerXSWcD.mjs +319 -0
  401. package/dist/messages-BqKaz7yB2.mjs +319 -0
  402. package/dist/messages-BrqBJ6W_2.mjs +319 -0
  403. package/dist/messages-BvgGIpxE2.mjs +319 -0
  404. package/dist/messages-BxSe3rKx.mjs +319 -0
  405. package/dist/messages-ByD9AIJL2.mjs +319 -0
  406. package/dist/messages-CDJS_Tu2.mjs +319 -0
  407. package/dist/messages-CF9R29jb.mjs +319 -0
  408. package/dist/messages-CIbK29nM.mjs +319 -0
  409. package/dist/messages-CMD0tgb2.mjs +319 -0
  410. package/dist/messages-CMW0tO_d2.mjs +319 -0
  411. package/dist/messages-CMrYQJ5x2.mjs +319 -0
  412. package/dist/messages-CQZJnkss2.mjs +319 -0
  413. package/dist/messages-CRnolvNg.mjs +319 -0
  414. package/dist/messages-CS74u2hS2.mjs +319 -0
  415. package/dist/messages-CTxao0S32.mjs +319 -0
  416. package/dist/messages-CZl83L7T.mjs +319 -0
  417. package/dist/messages-C_kloJSr.mjs +319 -0
  418. package/dist/messages-Cfe_CPBW.mjs +319 -0
  419. package/dist/messages-Ch0oiQp5.mjs +319 -0
  420. package/dist/messages-Cigiz7tI.mjs +319 -0
  421. package/dist/messages-Cjac781Z.mjs +319 -0
  422. package/dist/messages-CqVFa1ZA.mjs +319 -0
  423. package/dist/messages-CwDgZL5-.mjs +319 -0
  424. package/dist/messages-Czd64cAx.mjs +319 -0
  425. package/dist/messages-CzxMz1wI.mjs +319 -0
  426. package/dist/messages-D2SkVxgV.mjs +319 -0
  427. package/dist/messages-D4ZsN52E2.mjs +319 -0
  428. package/dist/messages-DG0aBs1m2.mjs +319 -0
  429. package/dist/messages-DIkQAMxZ2.mjs +319 -0
  430. package/dist/messages-DJBc5_b_2.mjs +319 -0
  431. package/dist/messages-DN8oOcrS.mjs +319 -0
  432. package/dist/messages-DV5yhL0q.mjs +319 -0
  433. package/dist/messages-DVI1iDTn2.mjs +319 -0
  434. package/dist/messages-DVzrCNrY.mjs +319 -0
  435. package/dist/messages-DXwJOr-H2.mjs +319 -0
  436. package/dist/messages-D_edVQrv.mjs +319 -0
  437. package/dist/messages-DbODRieP.mjs +319 -0
  438. package/dist/messages-KMQrhAva.mjs +319 -0
  439. package/dist/messages-L4NsHX-g.mjs +319 -0
  440. package/dist/messages-PPuF4CRy.mjs +319 -0
  441. package/dist/messages-UTJEPSiL.mjs +319 -0
  442. package/dist/messages-Wa5EXypv2.mjs +319 -0
  443. package/dist/messages-Wfxn9jZh.mjs +319 -0
  444. package/dist/messages-XieI4326.mjs +319 -0
  445. package/dist/messages-ZASZzduy.mjs +319 -0
  446. package/dist/messages-Z_3X1FJJ2.mjs +319 -0
  447. package/dist/messages-huyV3ICu.mjs +319 -0
  448. package/dist/messages-rd6zBwaX2.mjs +319 -0
  449. package/dist/messages-sBpTj74Q.mjs +319 -0
  450. package/dist/messages-twD0eDdc.mjs +319 -0
  451. package/dist/react.cjs +1 -1
  452. package/dist/react.mjs +25 -26
  453. package/dist/tools.cjs +1 -1
  454. package/dist/tools.mjs +3 -3
  455. package/dist/vendor.LICENSE.txt +141 -899
  456. package/package.json +11 -5
  457. package/src/components/block-tunes/block-tune-copy-link.ts +2 -2
  458. package/src/components/constants/data-attributes.ts +2 -0
  459. package/src/components/dom.ts +4 -2
  460. package/src/components/i18n/locales/am/messages.json +109 -1
  461. package/src/components/i18n/locales/ar/messages.json +109 -1
  462. package/src/components/i18n/locales/az/messages.json +109 -1
  463. package/src/components/i18n/locales/bg/messages.json +109 -1
  464. package/src/components/i18n/locales/bn/messages.json +109 -1
  465. package/src/components/i18n/locales/bs/messages.json +109 -1
  466. package/src/components/i18n/locales/cs/messages.json +109 -1
  467. package/src/components/i18n/locales/da/messages.json +109 -1
  468. package/src/components/i18n/locales/de/messages.json +110 -2
  469. package/src/components/i18n/locales/dv/messages.json +109 -1
  470. package/src/components/i18n/locales/el/messages.json +109 -1
  471. package/src/components/i18n/locales/en/messages.json +108 -1
  472. package/src/components/i18n/locales/es/messages.json +109 -1
  473. package/src/components/i18n/locales/et/messages.json +109 -1
  474. package/src/components/i18n/locales/fa/messages.json +109 -1
  475. package/src/components/i18n/locales/fi/messages.json +109 -1
  476. package/src/components/i18n/locales/fil/messages.json +109 -1
  477. package/src/components/i18n/locales/fr/messages.json +110 -2
  478. package/src/components/i18n/locales/gu/messages.json +109 -1
  479. package/src/components/i18n/locales/he/messages.json +109 -1
  480. package/src/components/i18n/locales/hi/messages.json +109 -1
  481. package/src/components/i18n/locales/hr/messages.json +109 -1
  482. package/src/components/i18n/locales/hu/messages.json +109 -1
  483. package/src/components/i18n/locales/hy/messages.json +109 -1
  484. package/src/components/i18n/locales/id/messages.json +109 -1
  485. package/src/components/i18n/locales/it/messages.json +109 -1
  486. package/src/components/i18n/locales/ja/messages.json +109 -1
  487. package/src/components/i18n/locales/ka/messages.json +109 -1
  488. package/src/components/i18n/locales/km/messages.json +109 -1
  489. package/src/components/i18n/locales/kn/messages.json +109 -1
  490. package/src/components/i18n/locales/ko/messages.json +109 -1
  491. package/src/components/i18n/locales/ku/messages.json +109 -1
  492. package/src/components/i18n/locales/lo/messages.json +109 -1
  493. package/src/components/i18n/locales/lt/messages.json +109 -1
  494. package/src/components/i18n/locales/lv/messages.json +109 -1
  495. package/src/components/i18n/locales/mk/messages.json +109 -1
  496. package/src/components/i18n/locales/ml/messages.json +109 -1
  497. package/src/components/i18n/locales/mn/messages.json +109 -1
  498. package/src/components/i18n/locales/mr/messages.json +109 -1
  499. package/src/components/i18n/locales/ms/messages.json +109 -1
  500. package/src/components/i18n/locales/my/messages.json +109 -1
  501. package/src/components/i18n/locales/ne/messages.json +109 -1
  502. package/src/components/i18n/locales/nl/messages.json +110 -2
  503. package/src/components/i18n/locales/no/messages.json +109 -1
  504. package/src/components/i18n/locales/pa/messages.json +109 -1
  505. package/src/components/i18n/locales/pl/messages.json +109 -1
  506. package/src/components/i18n/locales/ps/messages.json +109 -1
  507. package/src/components/i18n/locales/pt/messages.json +109 -1
  508. package/src/components/i18n/locales/ro/messages.json +109 -1
  509. package/src/components/i18n/locales/ru/messages.json +109 -1
  510. package/src/components/i18n/locales/sd/messages.json +109 -1
  511. package/src/components/i18n/locales/si/messages.json +109 -1
  512. package/src/components/i18n/locales/sk/messages.json +109 -1
  513. package/src/components/i18n/locales/sl/messages.json +109 -1
  514. package/src/components/i18n/locales/sq/messages.json +109 -1
  515. package/src/components/i18n/locales/sr/messages.json +109 -1
  516. package/src/components/i18n/locales/sv/messages.json +109 -1
  517. package/src/components/i18n/locales/sw/messages.json +109 -1
  518. package/src/components/i18n/locales/ta/messages.json +109 -1
  519. package/src/components/i18n/locales/te/messages.json +109 -1
  520. package/src/components/i18n/locales/th/messages.json +109 -1
  521. package/src/components/i18n/locales/tr/messages.json +109 -1
  522. package/src/components/i18n/locales/ug/messages.json +109 -1
  523. package/src/components/i18n/locales/uk/messages.json +109 -1
  524. package/src/components/i18n/locales/ur/messages.json +109 -1
  525. package/src/components/i18n/locales/vi/messages.json +109 -1
  526. package/src/components/i18n/locales/yi/messages.json +109 -1
  527. package/src/components/i18n/locales/zh/messages.json +109 -1
  528. package/src/components/icons/index.ts +59 -0
  529. package/src/components/inline-tools/inline-tool-code.ts +1 -1
  530. package/src/components/modules/api/toolbar.ts +6 -4
  531. package/src/components/modules/blockEvents/index.ts +9 -0
  532. package/src/components/modules/blockManager/operations.ts +14 -1
  533. package/src/components/modules/drag/DragController.ts +24 -3
  534. package/src/components/modules/paste/handlers/files-handler.ts +41 -4
  535. package/src/components/modules/paste/index.ts +159 -3
  536. package/src/components/modules/paste/tool-registry.ts +22 -12
  537. package/src/components/modules/toolbar/blockSettings.ts +14 -2
  538. package/src/components/modules/toolbar/index.ts +49 -16
  539. package/src/components/modules/toolbar/inline/selection-validator.ts +17 -0
  540. package/src/components/modules/toolbar/plus-button.ts +4 -2
  541. package/src/components/modules/toolbar/positioning.ts +27 -0
  542. package/src/components/modules/toolbar/settings-toggler.ts +16 -5
  543. package/src/components/modules/toolbar/tooltip.ts +59 -15
  544. package/src/components/modules/ui.ts +23 -8
  545. package/src/components/ui/toolbox.ts +92 -7
  546. package/src/components/utils/data-model-transform.ts +71 -1
  547. package/src/components/utils/popover/components/popover-item/popover-item-default/popover-item-default.const.ts +5 -4
  548. package/src/components/utils/popover/components/popover-item/popover-item-default/popover-item-default.ts +1 -0
  549. package/src/components/utils/popover/components/popover-item/popover-item-separator/popover-item-separator.const.ts +1 -1
  550. package/src/components/utils/popover/components/search-input/search-input.const.ts +3 -3
  551. package/src/components/utils/popover/popover-abstract.ts +137 -2
  552. package/src/components/utils/popover/popover-desktop.ts +260 -14
  553. package/src/components/utils/popover/popover-inline.ts +3 -2
  554. package/src/components/utils/popover/popover-nested-position.ts +132 -0
  555. package/src/components/utils/popover/popover-position.ts +46 -5
  556. package/src/components/utils/popover/popover.const.ts +6 -3
  557. package/src/components/utils/tooltip.ts +52 -8
  558. package/src/components/utils/top-layer.ts +137 -0
  559. package/src/playground/block-states-gallery.ts +123 -0
  560. package/src/playground/icon-gallery.ts +346 -0
  561. package/src/styles/checklist.css +70 -0
  562. package/src/styles/colors.css +723 -0
  563. package/src/styles/database.css +1176 -0
  564. package/src/styles/emoji-picker.css +58 -0
  565. package/src/styles/fonts.css +33 -0
  566. package/src/styles/image.css +1021 -0
  567. package/src/styles/isolation.css +204 -0
  568. package/src/styles/keyframes.css +62 -0
  569. package/src/styles/main.css +144 -2540
  570. package/src/styles/popover-animation.css +34 -0
  571. package/src/styles/preflight.css +283 -0
  572. package/src/styles/slash-search.css +52 -0
  573. package/src/styles/tables.css +154 -0
  574. package/src/styles/tokens.css +127 -0
  575. package/src/tools/callout/emoji-picker/index.ts +4 -2
  576. package/src/tools/callout/index.ts +0 -1
  577. package/src/tools/code/code-keyboard.ts +70 -8
  578. package/src/tools/code/constants.ts +3 -9
  579. package/src/tools/code/dom-builder.ts +5 -1
  580. package/src/tools/code/index.ts +202 -25
  581. package/src/tools/code/language-detector.ts +47 -52
  582. package/src/tools/code/prism-applier.ts +183 -0
  583. package/src/tools/code/prism-loader.ts +197 -0
  584. package/src/tools/database/database-board-view.ts +4 -2
  585. package/src/tools/database/database-card-drawer.ts +3 -2
  586. package/src/tools/database/database-list-view.ts +1 -1
  587. package/src/tools/database/database-model.ts +15 -3
  588. package/src/tools/database/database-property-type-popover.ts +14 -10
  589. package/src/tools/database/database-tab-bar.ts +9 -3
  590. package/src/tools/database/database-view-popover.ts +15 -7
  591. package/src/tools/database/index.ts +0 -2
  592. package/src/tools/header/index.ts +6 -6
  593. package/src/tools/image/alt-popover.css +42 -0
  594. package/src/tools/image/alt-popover.ts +104 -0
  595. package/src/tools/image/constants.ts +25 -0
  596. package/src/tools/image/crop-editor.css +513 -0
  597. package/src/tools/image/crop-editor.ts +331 -0
  598. package/src/tools/image/crop-math.ts +117 -0
  599. package/src/tools/image/crop-modal.css +105 -0
  600. package/src/tools/image/crop-modal.ts +92 -0
  601. package/src/tools/image/empty-state.ts +407 -0
  602. package/src/tools/image/error-state.ts +69 -0
  603. package/src/tools/image/errors.ts +18 -0
  604. package/src/tools/image/i18n.ts +8 -0
  605. package/src/tools/image/index.ts +754 -0
  606. package/src/tools/image/resizer.ts +119 -0
  607. package/src/tools/image/spring.ts +16 -0
  608. package/src/tools/image/ui.ts +926 -0
  609. package/src/tools/image/uploader.ts +61 -0
  610. package/src/tools/image/uploading-state.ts +117 -0
  611. package/src/tools/index.ts +2 -0
  612. package/src/tools/list/style-config.ts +0 -3
  613. package/src/tools/paragraph/index.ts +0 -1
  614. package/src/tools/quote/index.ts +0 -1
  615. package/src/tools/table/index.ts +0 -1
  616. package/src/tools/toggle/constants.ts +3 -1
  617. package/src/tools/toggle/index.ts +0 -1
  618. package/src/types-internal/prismjs-components.d.ts +9 -0
  619. package/types/api/toolbar.d.ts +14 -1
  620. package/types/configs/blok-config.d.ts +24 -0
  621. package/types/tools/image.d.ts +72 -0
  622. package/types/utils/popover/popover.d.ts +27 -0
  623. package/dist/chunks/_basePickBy-6gOwWeg0.mjs +0 -166
  624. package/dist/chunks/_basePickBy-mUHvTE6c.cjs +0 -1
  625. package/dist/chunks/_baseUniq-BP5sM8qF.cjs +0 -1
  626. package/dist/chunks/_baseUniq-BcOWmEX6.mjs +0 -682
  627. package/dist/chunks/arc-kVpio4JL.mjs +0 -80
  628. package/dist/chunks/arc-lSzOinJz.cjs +0 -1
  629. package/dist/chunks/architecture-YZFGNWBL-BFcrDSEW.mjs +0 -3
  630. package/dist/chunks/architecture-YZFGNWBL-D91d5pcl.cjs +0 -1
  631. package/dist/chunks/architectureDiagram-Q4EWVU46-CN6p4Aji.mjs +0 -4066
  632. package/dist/chunks/architectureDiagram-Q4EWVU46-CyW5N5Ic.cjs +0 -36
  633. package/dist/chunks/blockDiagram-DXYQGD6D-BvZWa5Rv.mjs +0 -3074
  634. package/dist/chunks/blockDiagram-DXYQGD6D-DmhBCLgd.cjs +0 -132
  635. package/dist/chunks/blok-CNEP3LpI.cjs +0 -16
  636. package/dist/chunks/blok-DNvzyOYn.mjs +0 -13679
  637. package/dist/chunks/c-CQrSye6K.mjs +0 -5
  638. package/dist/chunks/c-DNJHkQXQ.cjs +0 -1
  639. package/dist/chunks/c4Diagram-AHTNJAMY-Cmc2PsEs.mjs +0 -2956
  640. package/dist/chunks/c4Diagram-AHTNJAMY-DU2IYTXY.cjs +0 -10
  641. package/dist/chunks/ccount-B7is2MU0.mjs +0 -10
  642. package/dist/chunks/ccount-DtzbJUOh.cjs +0 -1
  643. package/dist/chunks/channel-BTWFNzkv.mjs +0 -5
  644. package/dist/chunks/channel-BqhnS5zl.cjs +0 -1
  645. package/dist/chunks/chunk-2KRD3SAO-COfwt0om.cjs +0 -1
  646. package/dist/chunks/chunk-2KRD3SAO-DWLzBIZw.mjs +0 -20
  647. package/dist/chunks/chunk-336JU56O-CqWDeAp1.cjs +0 -1
  648. package/dist/chunks/chunk-336JU56O-DbaX7hyp.mjs +0 -49
  649. package/dist/chunks/chunk-426QAEUC-MjtXwzdI.cjs +0 -1
  650. package/dist/chunks/chunk-426QAEUC-pmH9mm_X.mjs +0 -13
  651. package/dist/chunks/chunk-4BX2VUAB-B1LZI9QZ.mjs +0 -19
  652. package/dist/chunks/chunk-4BX2VUAB-Zs4zJRk9.cjs +0 -1
  653. package/dist/chunks/chunk-4TB4RGXK-BC8qRYSD.mjs +0 -3250
  654. package/dist/chunks/chunk-4TB4RGXK-Bq0teBqe.cjs +0 -206
  655. package/dist/chunks/chunk-55IACEB6-CaLO8kWA.mjs +0 -8
  656. package/dist/chunks/chunk-55IACEB6-DyTTYuc2.cjs +0 -1
  657. package/dist/chunks/chunk-5FUZZQ4R-6rlcIGG-.cjs +0 -62
  658. package/dist/chunks/chunk-5FUZZQ4R-DAWdfx4J.mjs +0 -3786
  659. package/dist/chunks/chunk-5PVQY5BW-7Voh8aPS.mjs +0 -1122
  660. package/dist/chunks/chunk-5PVQY5BW-DmATt7Fz.cjs +0 -2
  661. package/dist/chunks/chunk-67CJDMHE-DSEGOn_f.mjs +0 -20
  662. package/dist/chunks/chunk-67CJDMHE-zWcmgvwZ.cjs +0 -1
  663. package/dist/chunks/chunk-7N4EOEYR-CAuNhdG9.cjs +0 -1
  664. package/dist/chunks/chunk-7N4EOEYR-CnSg1Hfu.mjs +0 -29
  665. package/dist/chunks/chunk-AA7GKIK3-BmatWFnp.mjs +0 -24
  666. package/dist/chunks/chunk-AA7GKIK3-YMbh5HEs.cjs +0 -1
  667. package/dist/chunks/chunk-BSJP7CBP-BtFfqv7R.mjs +0 -83
  668. package/dist/chunks/chunk-BSJP7CBP-CjkEoJDh.cjs +0 -1
  669. package/dist/chunks/chunk-CIAEETIT-BP9BiKe5.cjs +0 -1
  670. package/dist/chunks/chunk-CIAEETIT-nVgPUEW1.mjs +0 -20
  671. package/dist/chunks/chunk-EDXVE4YY-Bw1v2mUF.cjs +0 -1
  672. package/dist/chunks/chunk-EDXVE4YY-e7599cf4.mjs +0 -26
  673. package/dist/chunks/chunk-ENJZ2VHE-9fAN50L-.cjs +0 -10
  674. package/dist/chunks/chunk-ENJZ2VHE-DaMNdqfV.mjs +0 -566
  675. package/dist/chunks/chunk-FMBD7UC4-CH_SSwhS.cjs +0 -15
  676. package/dist/chunks/chunk-FMBD7UC4-xT5c0WSd.mjs +0 -5
  677. package/dist/chunks/chunk-FOC6F5B3-AxSG6qaj.mjs +0 -20
  678. package/dist/chunks/chunk-FOC6F5B3-ScFIigAO.cjs +0 -1
  679. package/dist/chunks/chunk-ICPOFSXX-DQ4NxQTM.cjs +0 -122
  680. package/dist/chunks/chunk-ICPOFSXX-DbL0YBQf.mjs +0 -3290
  681. package/dist/chunks/chunk-K5T4RW27-BdGvq1o8.cjs +0 -94
  682. package/dist/chunks/chunk-K5T4RW27-CYdwJMQV.mjs +0 -16372
  683. package/dist/chunks/chunk-KGLVRYIC-BwOmLwqF.mjs +0 -20
  684. package/dist/chunks/chunk-KGLVRYIC-uzPiXgAg.cjs +0 -1
  685. package/dist/chunks/chunk-LIHQZDEY-ChgbfPTz.cjs +0 -1
  686. package/dist/chunks/chunk-LIHQZDEY-Csx8-523.mjs +0 -55
  687. package/dist/chunks/chunk-ORNJ4GCN-CCDHRflI.mjs +0 -25
  688. package/dist/chunks/chunk-ORNJ4GCN-HF28XIop.cjs +0 -1
  689. package/dist/chunks/chunk-OYMX7WX6-BAoDgMPF.mjs +0 -2038
  690. package/dist/chunks/chunk-OYMX7WX6-CGUpemDb.cjs +0 -231
  691. package/dist/chunks/chunk-QZHKN3VN-D1myzhE_.mjs +0 -12
  692. package/dist/chunks/chunk-QZHKN3VN-d_ESXyai.cjs +0 -1
  693. package/dist/chunks/chunk-U2HBQHQK-BXyrI_xP.mjs +0 -1875
  694. package/dist/chunks/chunk-U2HBQHQK-D62A_XCV.cjs +0 -70
  695. package/dist/chunks/chunk-X2U36JSP-BEHpYlmW.cjs +0 -1
  696. package/dist/chunks/chunk-X2U36JSP-CXhWYelJ.mjs +0 -68
  697. package/dist/chunks/chunk-XPW4576I-BidQL50C.cjs +0 -32
  698. package/dist/chunks/chunk-XPW4576I-DOztVf6t.mjs +0 -1146
  699. package/dist/chunks/chunk-YZCP3GAM-DrkjtME-.mjs +0 -60
  700. package/dist/chunks/chunk-YZCP3GAM-DuLQPyT4.cjs +0 -1
  701. package/dist/chunks/chunk-ZZ45TVLE-CSFFLvxb.mjs +0 -33
  702. package/dist/chunks/chunk-ZZ45TVLE-CZOUDLGO.cjs +0 -1
  703. package/dist/chunks/classDiagram-6PBFFD2Q-Ci3S9iu3.mjs +0 -30
  704. package/dist/chunks/classDiagram-6PBFFD2Q-GDkPRBlp.cjs +0 -1
  705. package/dist/chunks/classDiagram-v2-HSJHXN6E-B4vt694Q.cjs +0 -1
  706. package/dist/chunks/classDiagram-v2-HSJHXN6E-BkaFKbgJ.mjs +0 -30
  707. package/dist/chunks/clone-WSLD7bVs.mjs +0 -8
  708. package/dist/chunks/clone-_XTzxdN3.cjs +0 -1
  709. package/dist/chunks/constants-DJjFgioo.cjs +0 -451
  710. package/dist/chunks/constants-DMsOCPcF.mjs +0 -3268
  711. package/dist/chunks/core-C8BHLAAO.cjs +0 -12
  712. package/dist/chunks/core-D2KrVz4a.mjs +0 -4501
  713. package/dist/chunks/cose-bilkent-S5V4N54A-BXBidSxC.mjs +0 -2246
  714. package/dist/chunks/cose-bilkent-S5V4N54A-RkR02HV4.cjs +0 -1
  715. package/dist/chunks/cpp-DVBevX-J.cjs +0 -1
  716. package/dist/chunks/cpp-DnMQuZPn.mjs +0 -16
  717. package/dist/chunks/csharp-ByiKf6DR.mjs +0 -3
  718. package/dist/chunks/csharp-CHUT4JOq.cjs +0 -1
  719. package/dist/chunks/css-BqsWMbBt.mjs +0 -3
  720. package/dist/chunks/css-QEheyxtB.cjs +0 -1
  721. package/dist/chunks/dagre-C7z2UZ4M.mjs +0 -1483
  722. package/dist/chunks/dagre-KV5264BT-B5pZgbkN.cjs +0 -4
  723. package/dist/chunks/dagre-KV5264BT-Ct6qUqKI.mjs +0 -298
  724. package/dist/chunks/dagre-VHP8Ngkv.cjs +0 -1
  725. package/dist/chunks/dart-aYsezAEv.mjs +0 -3
  726. package/dist/chunks/dart-jPH5d8ma.cjs +0 -1
  727. package/dist/chunks/diagram-5BDNPKRD-B9hNG7ht.mjs +0 -112
  728. package/dist/chunks/diagram-5BDNPKRD-C1llOHQP.cjs +0 -10
  729. package/dist/chunks/diagram-G4DWMVQ6-9_YOaVXe.mjs +0 -546
  730. package/dist/chunks/diagram-G4DWMVQ6-CLdEGHkn.cjs +0 -24
  731. package/dist/chunks/diagram-MMDJMWI5-CnbiCUM3.cjs +0 -43
  732. package/dist/chunks/diagram-MMDJMWI5-DmStUoNk.mjs +0 -234
  733. package/dist/chunks/diagram-TYMM5635-BtMB4AKf.cjs +0 -24
  734. package/dist/chunks/diagram-TYMM5635-DmrkkW85.mjs +0 -144
  735. package/dist/chunks/dockerfile-1GBIWF66.mjs +0 -3
  736. package/dist/chunks/dockerfile-B2jMQOes.cjs +0 -1
  737. package/dist/chunks/engine-javascript-CYa8VRAu.mjs +0 -2373
  738. package/dist/chunks/engine-javascript-HHRWd9yA.cjs +0 -141
  739. package/dist/chunks/erDiagram-SMLLAGMA-5vkZ5DwJ.mjs +0 -1712
  740. package/dist/chunks/erDiagram-SMLLAGMA-luvZB3lF.cjs +0 -85
  741. package/dist/chunks/flowDiagram-DWJPFMVM-BpYbAeYP.cjs +0 -162
  742. package/dist/chunks/flowDiagram-DWJPFMVM-CGTiQBd7.mjs +0 -4175
  743. package/dist/chunks/ganttDiagram-T4ZO3ILL-BNtXyM0I.mjs +0 -3083
  744. package/dist/chunks/ganttDiagram-T4ZO3ILL-BaWZufgI.cjs +0 -292
  745. package/dist/chunks/gitGraph-7Q5UKJZL-Ds_Z9h4o.cjs +0 -1
  746. package/dist/chunks/gitGraph-7Q5UKJZL-DxMmuJIv.mjs +0 -3
  747. package/dist/chunks/gitGraphDiagram-UUTBAWPF-CmQR-xZp.mjs +0 -792
  748. package/dist/chunks/gitGraphDiagram-UUTBAWPF-DjMU1Vyg.cjs +0 -106
  749. package/dist/chunks/go-4mRqLTld.mjs +0 -3
  750. package/dist/chunks/go-BX-cNLGO.cjs +0 -1
  751. package/dist/chunks/graphlib-BfwqhpXp.mjs +0 -225
  752. package/dist/chunks/graphlib-CYv_-0LK.cjs +0 -1
  753. package/dist/chunks/graphql-4Htarzhp.mjs +0 -11
  754. package/dist/chunks/graphql-BnxAS09v.cjs +0 -1
  755. package/dist/chunks/html-CAN0GHkJ.cjs +0 -1
  756. package/dist/chunks/html-DW39yhuS.mjs +0 -10
  757. package/dist/chunks/i18next-loader-CyDs2NKf.mjs +0 -35
  758. package/dist/chunks/i18next-loader-cGwOOjK3.cjs +0 -1
  759. package/dist/chunks/info-OMHHGYJF-ChWZqC0a.mjs +0 -3
  760. package/dist/chunks/info-OMHHGYJF-u0RRQ9Uo.cjs +0 -1
  761. package/dist/chunks/infoDiagram-42DDH7IO-BbV_tozh.mjs +0 -29
  762. package/dist/chunks/infoDiagram-42DDH7IO-DOYkYMWg.cjs +0 -2
  763. package/dist/chunks/isEmpty-BHdznGlG.cjs +0 -1
  764. package/dist/chunks/isEmpty-jlCmuYeg.mjs +0 -35
  765. package/dist/chunks/ishikawaDiagram-UXIWVN3A-CbqoivFu.cjs +0 -70
  766. package/dist/chunks/ishikawaDiagram-UXIWVN3A-DJBG3b-A.mjs +0 -719
  767. package/dist/chunks/java-DD_iwrM-.mjs +0 -5
  768. package/dist/chunks/java-O-rzZ2Bn.cjs +0 -1
  769. package/dist/chunks/javascript-CJBlE5PB.mjs +0 -3
  770. package/dist/chunks/javascript-z9G2vOAZ.cjs +0 -1
  771. package/dist/chunks/journeyDiagram-VCZTEJTY-B5Peb7wS.cjs +0 -139
  772. package/dist/chunks/journeyDiagram-VCZTEJTY-BdMsFn3r.mjs +0 -885
  773. package/dist/chunks/json-C_epQRuA.cjs +0 -1
  774. package/dist/chunks/json-yRGZVu2_.mjs +0 -3
  775. package/dist/chunks/kanban-definition-6JOO6SKY-CwmSo6Ve.cjs +0 -89
  776. package/dist/chunks/kanban-definition-6JOO6SKY-ncNaxcxH.mjs +0 -980
  777. package/dist/chunks/kotlin-BmkhKZGf.mjs +0 -3
  778. package/dist/chunks/kotlin-Dj7KFgV1.cjs +0 -1
  779. package/dist/chunks/latex-BeVX0E4Z.mjs +0 -5
  780. package/dist/chunks/latex-u7qVP95p.cjs +0 -1
  781. package/dist/chunks/lightweight-i18n-Bb_VS9v5.mjs +0 -237
  782. package/dist/chunks/lightweight-i18n-CGBjC2TJ.cjs +0 -1
  783. package/dist/chunks/line-B7XG48Uf.cjs +0 -1
  784. package/dist/chunks/line-CWJNfvdn.mjs +0 -34
  785. package/dist/chunks/linear-BU4OjSPS.mjs +0 -289
  786. package/dist/chunks/linear-D5j5Vgij.cjs +0 -1
  787. package/dist/chunks/lua-6ceNckPi.cjs +0 -1
  788. package/dist/chunks/lua-CPnWrc7C.mjs +0 -5
  789. package/dist/chunks/markdown-DSiOSAsn.mjs +0 -3
  790. package/dist/chunks/markdown-Vce1p-mO.cjs +0 -1
  791. package/dist/chunks/mdast-util-math-B9OHoBuN.cjs +0 -5
  792. package/dist/chunks/mdast-util-math-D42zbZda.mjs +0 -151
  793. package/dist/chunks/mermaid-C2y_3PIg.mjs +0 -3
  794. package/dist/chunks/mermaid-Cu5vPKfS.cjs +0 -1
  795. package/dist/chunks/mermaid-parser.core-BrZQFEht.cjs +0 -3
  796. package/dist/chunks/mermaid-parser.core-DBhkcRo7.mjs +0 -57
  797. package/dist/chunks/mermaid.core-GiTRPJLF.cjs +0 -10
  798. package/dist/chunks/mermaid.core-uSzF9nF1.mjs +0 -977
  799. package/dist/chunks/messages--CbdZY2w.cjs +0 -1
  800. package/dist/chunks/messages--c74ihtM.mjs +0 -212
  801. package/dist/chunks/messages-041mNyU42.mjs +0 -212
  802. package/dist/chunks/messages-1hpCmcb5.cjs +0 -1
  803. package/dist/chunks/messages-44SP7ajI.mjs +0 -212
  804. package/dist/chunks/messages-4_3WFJMy2.cjs +0 -1
  805. package/dist/chunks/messages-7NvouWKA2.mjs +0 -212
  806. package/dist/chunks/messages-ADxG1iWK2.cjs +0 -1
  807. package/dist/chunks/messages-AnuHiDPc2.mjs +0 -212
  808. package/dist/chunks/messages-B1V7UT9I.mjs +0 -212
  809. package/dist/chunks/messages-B2Q9NH4D.mjs +0 -212
  810. package/dist/chunks/messages-B3MONaxw2.cjs +0 -1
  811. package/dist/chunks/messages-B3tNgyxG2.cjs +0 -1
  812. package/dist/chunks/messages-B6j77WNV2.mjs +0 -212
  813. package/dist/chunks/messages-B91FdwB0.cjs +0 -1
  814. package/dist/chunks/messages-B9igXgiw.cjs +0 -1
  815. package/dist/chunks/messages-BB1xM_oB.cjs +0 -1
  816. package/dist/chunks/messages-BEV0lzGv2.mjs +0 -212
  817. package/dist/chunks/messages-BG749_88.mjs +0 -212
  818. package/dist/chunks/messages-BGZLiYrQ.cjs +0 -1
  819. package/dist/chunks/messages-BGpGj8nJ2.mjs +0 -212
  820. package/dist/chunks/messages-BK6gK3wu.cjs +0 -1
  821. package/dist/chunks/messages-BKmAFG9Z.cjs +0 -1
  822. package/dist/chunks/messages-BMVJq-1T.cjs +0 -1
  823. package/dist/chunks/messages-BMsqJNz0.cjs +0 -1
  824. package/dist/chunks/messages-BNYDShPm2.mjs +0 -212
  825. package/dist/chunks/messages-BSVhckNg.cjs +0 -1
  826. package/dist/chunks/messages-BUaHDggs.cjs +0 -1
  827. package/dist/chunks/messages-BUaJv5qS.cjs +0 -1
  828. package/dist/chunks/messages-BW--wNis.mjs +0 -212
  829. package/dist/chunks/messages-BXcSH14N.cjs +0 -1
  830. package/dist/chunks/messages-BYOYrUOu.cjs +0 -1
  831. package/dist/chunks/messages-BYSE1Iq2.cjs +0 -1
  832. package/dist/chunks/messages-B_Mqw9Dl2.mjs +0 -212
  833. package/dist/chunks/messages-Bb225KE6.cjs +0 -1
  834. package/dist/chunks/messages-BbYwT3FH2.mjs +0 -212
  835. package/dist/chunks/messages-Bda8jwos2.mjs +0 -212
  836. package/dist/chunks/messages-BdpFAZGZ.mjs +0 -212
  837. package/dist/chunks/messages-BiDR95AW.cjs +0 -1
  838. package/dist/chunks/messages-BkAoxm6t.cjs +0 -1
  839. package/dist/chunks/messages-BmNLNUz_.mjs +0 -212
  840. package/dist/chunks/messages-BnGtg6t4.mjs +0 -212
  841. package/dist/chunks/messages-BnXkEkD_.mjs +0 -212
  842. package/dist/chunks/messages-BpUasRQ3.cjs +0 -1
  843. package/dist/chunks/messages-BwtU06Ax.mjs +0 -212
  844. package/dist/chunks/messages-BxV8K7y42.cjs +0 -1
  845. package/dist/chunks/messages-Bxhns4Ui.cjs +0 -1
  846. package/dist/chunks/messages-ByRcwLIO.mjs +0 -212
  847. package/dist/chunks/messages-C0sxGmLV2.cjs +0 -1
  848. package/dist/chunks/messages-C5nqE8O42.cjs +0 -1
  849. package/dist/chunks/messages-C7il6l-S.cjs +0 -1
  850. package/dist/chunks/messages-CFyGEGXM2.cjs +0 -1
  851. package/dist/chunks/messages-CHBH3EQG.mjs +0 -212
  852. package/dist/chunks/messages-CIYU5iEj.mjs +0 -212
  853. package/dist/chunks/messages-CJGOmFxi.mjs +0 -212
  854. package/dist/chunks/messages-CN2yjHzW.cjs +0 -1
  855. package/dist/chunks/messages-CP7Ncgaf.mjs +0 -212
  856. package/dist/chunks/messages-CP8YKa4F.mjs +0 -212
  857. package/dist/chunks/messages-CTy_3-mw2.cjs +0 -1
  858. package/dist/chunks/messages-CUxaqK8t2.mjs +0 -212
  859. package/dist/chunks/messages-CXDk_Rlr2.mjs +0 -212
  860. package/dist/chunks/messages-CYZxR91M.mjs +0 -212
  861. package/dist/chunks/messages-C_ogasse2.cjs +0 -1
  862. package/dist/chunks/messages-CbFuceEb.cjs +0 -1
  863. package/dist/chunks/messages-CbbYb7cc.cjs +0 -1
  864. package/dist/chunks/messages-CfO5kKI72.cjs +0 -1
  865. package/dist/chunks/messages-Cgv5DuNV.cjs +0 -1
  866. package/dist/chunks/messages-Cjm7Nj1C.mjs +0 -212
  867. package/dist/chunks/messages-CjzZ6nxv.mjs +0 -212
  868. package/dist/chunks/messages-CkBrRFY02.cjs +0 -1
  869. package/dist/chunks/messages-CpVtcYqo.mjs +0 -212
  870. package/dist/chunks/messages-CpppvIiu.cjs +0 -1
  871. package/dist/chunks/messages-CumomgDd2.mjs +0 -212
  872. package/dist/chunks/messages-CvCb4dCy.mjs +0 -212
  873. package/dist/chunks/messages-D3DNj1jh.mjs +0 -212
  874. package/dist/chunks/messages-D7d2U-tx.mjs +0 -212
  875. package/dist/chunks/messages-D8-vyZ2V.cjs +0 -1
  876. package/dist/chunks/messages-DFWhnXF12.mjs +0 -212
  877. package/dist/chunks/messages-DIpVfyX-2.cjs +0 -1
  878. package/dist/chunks/messages-DJBeEI7G.cjs +0 -1
  879. package/dist/chunks/messages-DJr1x1i2.mjs +0 -212
  880. package/dist/chunks/messages-DN7PU5Un2.mjs +0 -212
  881. package/dist/chunks/messages-DR8nFHdw2.cjs +0 -1
  882. package/dist/chunks/messages-DT5Ux3el.cjs +0 -1
  883. package/dist/chunks/messages-DVh_Bwwq.mjs +0 -212
  884. package/dist/chunks/messages-DVwHxslb.mjs +0 -212
  885. package/dist/chunks/messages-DZ1Pfnl0.mjs +0 -212
  886. package/dist/chunks/messages-Da2SYMf52.cjs +0 -1
  887. package/dist/chunks/messages-DaaqkvOz2.cjs +0 -1
  888. package/dist/chunks/messages-DdiqfVCc.cjs +0 -1
  889. package/dist/chunks/messages-DfZe7SKZ.cjs +0 -1
  890. package/dist/chunks/messages-DkJ0bcqu.cjs +0 -1
  891. package/dist/chunks/messages-DkmG49t8.cjs +0 -1
  892. package/dist/chunks/messages-Do3QV7QW.mjs +0 -212
  893. package/dist/chunks/messages-Do4o9ckW.cjs +0 -1
  894. package/dist/chunks/messages-DrbTe09r.cjs +0 -1
  895. package/dist/chunks/messages-Drxwphbg2.mjs +0 -212
  896. package/dist/chunks/messages-DtgIZDlN.cjs +0 -1
  897. package/dist/chunks/messages-DtloGH1v2.mjs +0 -212
  898. package/dist/chunks/messages-Du0zg7UM.mjs +0 -212
  899. package/dist/chunks/messages-DuA_D23n.mjs +0 -212
  900. package/dist/chunks/messages-DwKRw3jP2.mjs +0 -212
  901. package/dist/chunks/messages-DxCaGN-Q2.cjs +0 -1
  902. package/dist/chunks/messages-DxpBJ5ZY.cjs +0 -1
  903. package/dist/chunks/messages-DyWu9_0D.cjs +0 -1
  904. package/dist/chunks/messages-DzAYvMm72.mjs +0 -212
  905. package/dist/chunks/messages-Dzmge-lj.mjs +0 -212
  906. package/dist/chunks/messages-ETNAE7WV.mjs +0 -212
  907. package/dist/chunks/messages-F4r6ruTX2.mjs +0 -212
  908. package/dist/chunks/messages-FNQdT9Da.mjs +0 -212
  909. package/dist/chunks/messages-FYGyC6zk2.mjs +0 -212
  910. package/dist/chunks/messages-Hg0BECWK.cjs +0 -1
  911. package/dist/chunks/messages-JlduXweH2.cjs +0 -1
  912. package/dist/chunks/messages-Km2PU_o7.cjs +0 -1
  913. package/dist/chunks/messages-MgJnGL9X2.cjs +0 -1
  914. package/dist/chunks/messages-PIoKW4js2.cjs +0 -1
  915. package/dist/chunks/messages-VEm9mp5H.cjs +0 -1
  916. package/dist/chunks/messages-WgwkG5PL2.cjs +0 -1
  917. package/dist/chunks/messages-X46KAUoI.cjs +0 -1
  918. package/dist/chunks/messages-ZS1Ro8ZB.mjs +0 -212
  919. package/dist/chunks/messages-ZZd1ckSO2.cjs +0 -1
  920. package/dist/chunks/messages-dyhHlgE9.mjs +0 -212
  921. package/dist/chunks/messages-fAEKtYXO.mjs +0 -212
  922. package/dist/chunks/messages-hhptyJO3.mjs +0 -212
  923. package/dist/chunks/messages-hk4dinYI.mjs +0 -212
  924. package/dist/chunks/messages-knSLxvI6.mjs +0 -212
  925. package/dist/chunks/messages-lORohDgW2.mjs +0 -212
  926. package/dist/chunks/messages-mvnz8DvU.mjs +0 -212
  927. package/dist/chunks/messages-pHWKsrcZ.mjs +0 -212
  928. package/dist/chunks/messages-q2McAyOz.mjs +0 -212
  929. package/dist/chunks/messages-r62SI44r.mjs +0 -212
  930. package/dist/chunks/messages-uFdMhLbJ.mjs +0 -212
  931. package/dist/chunks/messages-vRqPeNM_.cjs +0 -1
  932. package/dist/chunks/messages-vhq442qv.cjs +0 -1
  933. package/dist/chunks/micromark-extension-math-BXJknrtf.cjs +0 -1
  934. package/dist/chunks/micromark-extension-math-x3wvkKaN.mjs +0 -169
  935. package/dist/chunks/mindmap-definition-QFDTVHPH-6O8s-b35.cjs +0 -96
  936. package/dist/chunks/mindmap-definition-QFDTVHPH-BfOyKFtC.mjs +0 -1013
  937. package/dist/chunks/notifier-B-wErJJB.mjs +0 -73
  938. package/dist/chunks/notifier-CwnFVNdD.cjs +0 -1
  939. package/dist/chunks/objectWithoutProperties-BbzyiphF.cjs +0 -1
  940. package/dist/chunks/objectWithoutProperties-Dci1-l7D.mjs +0 -23
  941. package/dist/chunks/one-light-D2mpnHEP.cjs +0 -1
  942. package/dist/chunks/one-light-bqnXiA0I.mjs +0 -4
  943. package/dist/chunks/ordinal-CN3SDQau.mjs +0 -65
  944. package/dist/chunks/ordinal-DFFZs5-y.cjs +0 -1
  945. package/dist/chunks/packet-4T2RLAQJ-7DW35MGl.mjs +0 -3
  946. package/dist/chunks/packet-4T2RLAQJ-B5XvZd2W.cjs +0 -1
  947. package/dist/chunks/php-BMavm1CR.cjs +0 -1
  948. package/dist/chunks/php-Dejkjxb5.mjs +0 -18
  949. package/dist/chunks/pie-ZZUOXDRM-Dtuq0w2k.mjs +0 -3
  950. package/dist/chunks/pie-ZZUOXDRM-SOG0aDPa.cjs +0 -1
  951. package/dist/chunks/pieDiagram-DEJITSTG-B1sjciNi.mjs +0 -179
  952. package/dist/chunks/pieDiagram-DEJITSTG-BkEwYBz9.cjs +0 -30
  953. package/dist/chunks/python-Dcoit5Q5.cjs +0 -1
  954. package/dist/chunks/python-tdu-oDWx.mjs +0 -3
  955. package/dist/chunks/quadrantDiagram-34T5L4WZ-CV838wf-.mjs +0 -1960
  956. package/dist/chunks/quadrantDiagram-34T5L4WZ-RJme4lkz.cjs +0 -7
  957. package/dist/chunks/r-BdDCwgEs.cjs +0 -1
  958. package/dist/chunks/r-D8fCyoTl.mjs +0 -5
  959. package/dist/chunks/radar-PYXPWWZC-Bz4lwSbg.mjs +0 -3
  960. package/dist/chunks/radar-PYXPWWZC-Doch8Lt3.cjs +0 -1
  961. package/dist/chunks/requirementDiagram-MS252O5E-CA3LUAVZ.mjs +0 -2224
  962. package/dist/chunks/requirementDiagram-MS252O5E-CMqFsK_K.cjs +0 -84
  963. package/dist/chunks/ruby-DHm8_lqY.cjs +0 -1
  964. package/dist/chunks/ruby-Z7wCYjey.mjs +0 -33
  965. package/dist/chunks/rust-Cdm0j4IC.cjs +0 -1
  966. package/dist/chunks/rust-D5IQAarB.mjs +0 -3
  967. package/dist/chunks/sankeyDiagram-XADWPNL6-BPaUkDQv.cjs +0 -10
  968. package/dist/chunks/sankeyDiagram-XADWPNL6-Cw8wB2YO.mjs +0 -909
  969. package/dist/chunks/scala-CbcMYkuq.mjs +0 -3
  970. package/dist/chunks/scala-Tb1u_9W3.cjs +0 -1
  971. package/dist/chunks/sequenceDiagram-FGHM5R23-DbM-gyMR.cjs +0 -157
  972. package/dist/chunks/sequenceDiagram-FGHM5R23-pm0MaeXC.mjs +0 -4181
  973. package/dist/chunks/shellscript-CZefq5l_.mjs +0 -3
  974. package/dist/chunks/shellscript-D6KsENaG.cjs +0 -1
  975. package/dist/chunks/sql-BlpbD7FB.cjs +0 -1
  976. package/dist/chunks/sql-C4ibVEDs.mjs +0 -3
  977. package/dist/chunks/stateDiagram-FHFEXIEX-CEcLtV9Z.cjs +0 -1
  978. package/dist/chunks/stateDiagram-FHFEXIEX-CMcsvm0M.mjs +0 -218
  979. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-C4nZGNBm.mjs +0 -28
  980. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-aa692V81.cjs +0 -1
  981. package/dist/chunks/swift-Drpgj9J0.mjs +0 -3
  982. package/dist/chunks/swift-DubrdZus.cjs +0 -1
  983. package/dist/chunks/timeline-definition-GMOUNBTQ-DwHKPj3j.mjs +0 -1084
  984. package/dist/chunks/timeline-definition-GMOUNBTQ-ceXDJGg_.cjs +0 -120
  985. package/dist/chunks/tools-DPov06L-.mjs +0 -11458
  986. package/dist/chunks/tools-NAqHj-Cy.cjs +0 -9
  987. package/dist/chunks/treeView-SZITEDCU-BUuSm_Hn.cjs +0 -1
  988. package/dist/chunks/treeView-SZITEDCU-DPG9FJ6Q.mjs +0 -3
  989. package/dist/chunks/treemap-W4RFUUIX-BerKlw0i.cjs +0 -1
  990. package/dist/chunks/treemap-W4RFUUIX-N4tZJR1-.mjs +0 -3
  991. package/dist/chunks/typescript-BKtlqLze.cjs +0 -1
  992. package/dist/chunks/typescript-Bnpf4OG6.mjs +0 -5
  993. package/dist/chunks/vennDiagram-DHZGUBPP-BzOeMJe8.cjs +0 -34
  994. package/dist/chunks/vennDiagram-DHZGUBPP-Gfy0QWtB.mjs +0 -1876
  995. package/dist/chunks/vitesse-dark-BSL-cCXL.cjs +0 -1
  996. package/dist/chunks/vitesse-dark-dflHsflb.mjs +0 -4
  997. package/dist/chunks/wardley-RL74JXVD-BzKtPJ3g.cjs +0 -1
  998. package/dist/chunks/wardley-RL74JXVD-C7Hzc5y2.mjs +0 -3
  999. package/dist/chunks/wardleyDiagram-NUSXRM2D-ChZiL3a0.mjs +0 -594
  1000. package/dist/chunks/wardleyDiagram-NUSXRM2D-qo6LFohO.cjs +0 -20
  1001. package/dist/chunks/xml-C1PUeKuL.mjs +0 -5
  1002. package/dist/chunks/xml-CwiH0x4E.cjs +0 -1
  1003. package/dist/chunks/xychartDiagram-5P7HB3ND-CH1Z2Cbf.cjs +0 -7
  1004. package/dist/chunks/xychartDiagram-5P7HB3ND-t_dhLiOA.mjs +0 -2017
  1005. package/dist/chunks/yaml-CecI9urB.mjs +0 -3
  1006. package/dist/chunks/yaml-CkVxfQ4c.cjs +0 -1
  1007. package/dist/messages--zgIPYtb.mjs +0 -212
  1008. package/dist/messages-4jULpVvw.mjs +0 -212
  1009. package/dist/messages-AbwSlRf_.mjs +0 -212
  1010. package/dist/messages-B-dl7Pwb2.mjs +0 -212
  1011. package/dist/messages-B3rCRhb1.mjs +0 -212
  1012. package/dist/messages-B73L8nKc2.mjs +0 -212
  1013. package/dist/messages-BAjsD2Vm2.mjs +0 -212
  1014. package/dist/messages-BBodSb5B2.mjs +0 -212
  1015. package/dist/messages-BTpn6H9x2.mjs +0 -212
  1016. package/dist/messages-BWb0GjTj2.mjs +0 -212
  1017. package/dist/messages-BbCgnri12.mjs +0 -212
  1018. package/dist/messages-Bfon_Y3q.mjs +0 -212
  1019. package/dist/messages-BhOtow9J2.mjs +0 -212
  1020. package/dist/messages-BoB7m0uu2.mjs +0 -212
  1021. package/dist/messages-BsOZPjeg.mjs +0 -212
  1022. package/dist/messages-BuzKUYPV.mjs +0 -212
  1023. package/dist/messages-BzOKMdMQ.mjs +0 -212
  1024. package/dist/messages-C2H3PeQW2.mjs +0 -212
  1025. package/dist/messages-C5KNzSTk.mjs +0 -212
  1026. package/dist/messages-CIDYjE6l.mjs +0 -212
  1027. package/dist/messages-CJmyF5ye.mjs +0 -212
  1028. package/dist/messages-CTwiYb2a2.mjs +0 -212
  1029. package/dist/messages-CUHoJaDO.mjs +0 -212
  1030. package/dist/messages-CVeuqUjQ2.mjs +0 -212
  1031. package/dist/messages-CW75b4sz.mjs +0 -212
  1032. package/dist/messages-CXd7YeWV.mjs +0 -212
  1033. package/dist/messages-CjlYkunD.mjs +0 -212
  1034. package/dist/messages-CrGx64yd.mjs +0 -212
  1035. package/dist/messages-Ct0jbgHd.mjs +0 -212
  1036. package/dist/messages-CtKrCYD1.mjs +0 -212
  1037. package/dist/messages-Cu2eLjfJ.mjs +0 -212
  1038. package/dist/messages-CvwQ-fK_2.mjs +0 -212
  1039. package/dist/messages-Cy6UYN9b.mjs +0 -212
  1040. package/dist/messages-D01vnfA9.mjs +0 -212
  1041. package/dist/messages-D0BAV45W.mjs +0 -212
  1042. package/dist/messages-D5LGpdga.mjs +0 -212
  1043. package/dist/messages-DATK4ftv.mjs +0 -212
  1044. package/dist/messages-DEl77Urv2.mjs +0 -212
  1045. package/dist/messages-DHNjM2nv2.mjs +0 -212
  1046. package/dist/messages-DMW8b_sO.mjs +0 -212
  1047. package/dist/messages-DNmgANKr.mjs +0 -212
  1048. package/dist/messages-DQaa3cEM.mjs +0 -212
  1049. package/dist/messages-DSlD4bV9.mjs +0 -212
  1050. package/dist/messages-DTzbkXFt.mjs +0 -212
  1051. package/dist/messages-DbZihxtV.mjs +0 -212
  1052. package/dist/messages-DeE8fyKQ.mjs +0 -212
  1053. package/dist/messages-Dg-TpO2S2.mjs +0 -212
  1054. package/dist/messages-DgP82LzF.mjs +0 -212
  1055. package/dist/messages-Dh3Vt7WC.mjs +0 -212
  1056. package/dist/messages-DiVVyZD22.mjs +0 -212
  1057. package/dist/messages-DpRnGjoe.mjs +0 -212
  1058. package/dist/messages-DqZmrFaa2.mjs +0 -212
  1059. package/dist/messages-Dra9Fz5Q.mjs +0 -212
  1060. package/dist/messages-DuPBRgEF2.mjs +0 -212
  1061. package/dist/messages-DuxEyAY-2.mjs +0 -212
  1062. package/dist/messages-FmJD6lHR2.mjs +0 -212
  1063. package/dist/messages-ONielGl92.mjs +0 -212
  1064. package/dist/messages-RzgUqCGb2.mjs +0 -212
  1065. package/dist/messages-U22AKGKs.mjs +0 -212
  1066. package/dist/messages-XufeeRfO.mjs +0 -212
  1067. package/dist/messages-fprUm7SO2.mjs +0 -212
  1068. package/dist/messages-gFNdz3Tn2.mjs +0 -212
  1069. package/dist/messages-h_n5GBm6.mjs +0 -212
  1070. package/dist/messages-oOogIpsL2.mjs +0 -212
  1071. package/dist/messages-otwg3KcK.mjs +0 -212
  1072. package/dist/messages-rDDoBMWb.mjs +0 -212
  1073. package/dist/messages-trQPxZIu.mjs +0 -212
  1074. package/src/tools/code/highlight-applier.ts +0 -229
  1075. package/src/tools/code/shiki-loader.ts +0 -135
  1076. /package/dist/chunks/{am-CyXvGFRE.cjs → am-CGgVs8Sg.cjs} +0 -0
  1077. /package/dist/chunks/{am-JTszxMum.mjs → am-TVbhxPdQ.mjs} +0 -0
  1078. /package/dist/chunks/{ar-CME8m7Ug.mjs → ar-ClSvzRAM.mjs} +0 -0
  1079. /package/dist/chunks/{ar-BbusVfTp.cjs → ar-nFMIw80i.cjs} +0 -0
  1080. /package/dist/chunks/{array-BMXfsgb2.cjs → array-B193TMZz.cjs} +0 -0
  1081. /package/dist/chunks/{array-B4E6ednJ.mjs → array-ChMzkF5S.mjs} +0 -0
  1082. /package/dist/chunks/{az-D7MMnw6r.cjs → az-Cb6l6ydx.cjs} +0 -0
  1083. /package/dist/chunks/{az-CU1BXEnK.mjs → az-Df0rChHp.mjs} +0 -0
  1084. /package/dist/chunks/{bg-C3H2Qh_2.cjs → bg-BdZUTRFn.cjs} +0 -0
  1085. /package/dist/chunks/{bg-C1QKbOOv.mjs → bg-DLJ0oZ8E.mjs} +0 -0
  1086. /package/dist/chunks/{bn-BGOycYTM.cjs → bn-CneGelWq.cjs} +0 -0
  1087. /package/dist/chunks/{bn-DbDE4DPn.mjs → bn-rM6ek4mO.mjs} +0 -0
  1088. /package/dist/chunks/{bs-5jPxlF97.mjs → bs-16ZwjsQl.mjs} +0 -0
  1089. /package/dist/chunks/{bs-C7amuK1D.cjs → bs-XAmTKQeJ.cjs} +0 -0
  1090. /package/dist/chunks/{cs-BEZB2qcc.mjs → cs-C-zvdtZ-.mjs} +0 -0
  1091. /package/dist/chunks/{cs-BUD3Muxp.cjs → cs-DKYguxBC.cjs} +0 -0
  1092. /package/dist/chunks/{cytoscape.esm-CWkCAUzT.mjs → cytoscape.esm-BsvVxiuI.mjs} +0 -0
  1093. /package/dist/chunks/{cytoscape.esm-CjWrb5SM.cjs → cytoscape.esm-gv01QJ5y.cjs} +0 -0
  1094. /package/dist/chunks/{da-DXZ2uOgL.mjs → da-D1HzIKpF.mjs} +0 -0
  1095. /package/dist/chunks/{da-CO2FYbLa.cjs → da-DiLbdYqu.cjs} +0 -0
  1096. /package/dist/chunks/{de-B8nkOjfD.cjs → de-ClyUjm_W.cjs} +0 -0
  1097. /package/dist/chunks/{de-D4FxC1Yq.mjs → de-Dpmwqjaw.mjs} +0 -0
  1098. /package/dist/chunks/{default-DPWNu2LM.mjs → default-D5Eal3bU.mjs} +0 -0
  1099. /package/dist/chunks/{default-DP8dtTxC.cjs → default-D9azvkQ_.cjs} +0 -0
  1100. /package/dist/chunks/{defaultLocale-BxWls4I1.cjs → defaultLocale-CSsowJXG.cjs} +0 -0
  1101. /package/dist/chunks/{defaultLocale-BYV2aVaI.mjs → defaultLocale-DiiR34KB.mjs} +0 -0
  1102. /package/dist/chunks/{dist-CKM-fjTE.mjs → dist-BFuUZzlT.mjs} +0 -0
  1103. /package/dist/chunks/{dist-CxdzFxpy.cjs → dist-DS4hv48u.cjs} +0 -0
  1104. /package/dist/chunks/{el-D2ILhp1-.cjs → el-CFVhJTIb.cjs} +0 -0
  1105. /package/dist/chunks/{el-DwIVDdku.mjs → el-DQ-dU1wp.mjs} +0 -0
  1106. /package/dist/chunks/{es-DXxnOS9P.cjs → es-BlajxX2r.cjs} +0 -0
  1107. /package/dist/chunks/{es-DlO4MePt.mjs → es-Dhzgzei6.mjs} +0 -0
  1108. /package/dist/chunks/{et-BBSbb8pL.mjs → et-CnhEwclb.mjs} +0 -0
  1109. /package/dist/chunks/{et-mT4xnDc7.cjs → et-ggACA1d9.cjs} +0 -0
  1110. /package/dist/chunks/{fa-DsJou-pw.mjs → fa-B4zSY96K.mjs} +0 -0
  1111. /package/dist/chunks/{fa-D9CUFSHX.cjs → fa-DuYd0CQw.cjs} +0 -0
  1112. /package/dist/chunks/{fi-CsMgo7Wk.mjs → fi-B525ro09.mjs} +0 -0
  1113. /package/dist/chunks/{fi-DpCqdl_1.cjs → fi-D3-4SL4-.cjs} +0 -0
  1114. /package/dist/chunks/{fil-BjeZREJI.cjs → fil-Cs84dmNe.cjs} +0 -0
  1115. /package/dist/chunks/{fil-Dlw8sEta.mjs → fil-DPB6Byn0.mjs} +0 -0
  1116. /package/dist/chunks/{fr-DYmwW1y1.cjs → fr-C8Z2PE7u.cjs} +0 -0
  1117. /package/dist/chunks/{fr-DeapG5NH.mjs → fr-CbMgtPHe.mjs} +0 -0
  1118. /package/dist/chunks/{gu-klAnA_ns.mjs → gu-BDs1p7Uo.mjs} +0 -0
  1119. /package/dist/chunks/{gu-4g6NA9h8.cjs → gu-CPQY3Iyq.cjs} +0 -0
  1120. /package/dist/chunks/{he-2H5DcbO0.cjs → he-BkMGwSM7.cjs} +0 -0
  1121. /package/dist/chunks/{he-9TdyXc1J.mjs → he-DWa_-C46.mjs} +0 -0
  1122. /package/dist/chunks/{hi-DVOss_Zp.mjs → hi-Buu8Rua9.mjs} +0 -0
  1123. /package/dist/chunks/{hi-Dvb4O5oj.cjs → hi-ClQSrRZz.cjs} +0 -0
  1124. /package/dist/chunks/{hr-CXo-QFLf.mjs → hr-WosECnFF.mjs} +0 -0
  1125. /package/dist/chunks/{hr-B4Y5vULZ.cjs → hr-wrh48ogh.cjs} +0 -0
  1126. /package/dist/chunks/{hu-D3Pi7CJx.cjs → hu-BSVMkfs2.cjs} +0 -0
  1127. /package/dist/chunks/{hu-B6uKq-NU.mjs → hu-CeBjtxCd.mjs} +0 -0
  1128. /package/dist/chunks/{hy-DZ74SDlC.cjs → hy-CwF59lJj.cjs} +0 -0
  1129. /package/dist/chunks/{hy-B7CWqbUW.mjs → hy-DwfBE3Yt.mjs} +0 -0
  1130. /package/dist/chunks/{i18next-CkovSPO7.cjs → i18next-C14J6E5L.cjs} +0 -0
  1131. /package/dist/chunks/{i18next-BFvS_Rnh.mjs → i18next-DjO-l2Ee.mjs} +0 -0
  1132. /package/dist/chunks/{id-C5d2QGEQ.mjs → id-CBV5ivYd.mjs} +0 -0
  1133. /package/dist/chunks/{id-WfjZeYKN.cjs → id-DN2KcAmG.cjs} +0 -0
  1134. /package/dist/chunks/{init-C3Dyaaly.mjs → init-C2Iht9jH.mjs} +0 -0
  1135. /package/dist/chunks/{init-BvlcnoG2.cjs → init-DMaknHdL.cjs} +0 -0
  1136. /package/dist/chunks/{isArrayLikeObject-CnaR8YJm.cjs → isArrayLikeObject-Bk7ImDHR.cjs} +0 -0
  1137. /package/dist/chunks/{isArrayLikeObject-B-1mfvNK.mjs → isArrayLikeObject-CyB7POJY.mjs} +0 -0
  1138. /package/dist/chunks/{it-hqsqt6f7.cjs → it-CSt1S7SQ.cjs} +0 -0
  1139. /package/dist/chunks/{it-BgPXC2_F.mjs → it-CU5gg8BZ.mjs} +0 -0
  1140. /package/dist/chunks/{ja-BwLgKsdH.cjs → ja-BbwATm6F.cjs} +0 -0
  1141. /package/dist/chunks/{ja-CQ7ujOz3.mjs → ja-khPKQhMG.mjs} +0 -0
  1142. /package/dist/chunks/{ka-xoKako16.cjs → ka-Cqnq4zZT.cjs} +0 -0
  1143. /package/dist/chunks/{ka-DAPmSm_-.mjs → ka-DN17rDOq.mjs} +0 -0
  1144. /package/dist/chunks/{katex-_C7fvrbX.cjs → katex-D_RH6O9V.cjs} +0 -0
  1145. /package/dist/chunks/{katex-Bbz34ZLq.mjs → katex-thO7aa9b.mjs} +0 -0
  1146. /package/dist/chunks/{km-BJ9H-RbD.mjs → km-BbS9HEwx.mjs} +0 -0
  1147. /package/dist/chunks/{km-D7Fl8wAA.cjs → km-COh3mhzp.cjs} +0 -0
  1148. /package/dist/chunks/{kn-CthdB8vH.mjs → kn-7TPoJJQt.mjs} +0 -0
  1149. /package/dist/chunks/{kn-Ckju1oeq.cjs → kn-CX062fVg.cjs} +0 -0
  1150. /package/dist/chunks/{ko-DbEA41LU.mjs → ko-CDI2MnWL.mjs} +0 -0
  1151. /package/dist/chunks/{ko-Dt1tQEjC.cjs → ko-gSw_U9kC.cjs} +0 -0
  1152. /package/dist/chunks/{ku-B_j9qSrv.mjs → ku-DONc_aap.mjs} +0 -0
  1153. /package/dist/chunks/{ku-_i2C5XD5.cjs → ku-DnvmAkID.cjs} +0 -0
  1154. /package/dist/chunks/{lo-DfEpgG9m.cjs → lo-BrwlEjmE.cjs} +0 -0
  1155. /package/dist/chunks/{lo-DSklR1Zs.mjs → lo-PtNU87QX.mjs} +0 -0
  1156. /package/dist/chunks/{lt-BwLILIED.cjs → lt-Bw969G31.cjs} +0 -0
  1157. /package/dist/chunks/{lt-C9aVbfRt.mjs → lt-CV9PgETS.mjs} +0 -0
  1158. /package/dist/chunks/{lv-DLwMSEc0.mjs → lv-CFPT5CoC.mjs} +0 -0
  1159. /package/dist/chunks/{lv-DdrYab3x.cjs → lv-DhwZOfiA.cjs} +0 -0
  1160. /package/dist/chunks/{micromark-factory-space-BnsBDplI.cjs → micromark-factory-space-CsUhZvC1.cjs} +0 -0
  1161. /package/dist/chunks/{micromark-factory-space-C6wz33de.mjs → micromark-factory-space-y4SDWQKm.mjs} +0 -0
  1162. /package/dist/chunks/{mk-D96bSjMK.mjs → mk-5waYEn6e.mjs} +0 -0
  1163. /package/dist/chunks/{mk-CsPHE4cO.cjs → mk-vuwbN_RA.cjs} +0 -0
  1164. /package/dist/chunks/{ml-CAsiw8BP.cjs → ml-DQZZm6v3.cjs} +0 -0
  1165. /package/dist/chunks/{ml-D1Ek94RG.mjs → ml-iK4LpGaW.mjs} +0 -0
  1166. /package/dist/chunks/{mn-Db6DwHPv.cjs → mn-Dz3r2r3T.cjs} +0 -0
  1167. /package/dist/chunks/{mn-CyNCFOYP.mjs → mn-nfQCBqsj.mjs} +0 -0
  1168. /package/dist/chunks/{mr-CaA3xXVf.mjs → mr-8ddBHqrW.mjs} +0 -0
  1169. /package/dist/chunks/{mr-BBAuoEIQ.cjs → mr-BDjve7Md.cjs} +0 -0
  1170. /package/dist/chunks/{ms-Cfv7BOEG.cjs → ms-2boGmWFn.cjs} +0 -0
  1171. /package/dist/chunks/{ms-IZU-A3Qk.mjs → ms-BRxHmUVO.mjs} +0 -0
  1172. /package/dist/chunks/{my-C-AQLGIp.mjs → my-Bq-MP3br.mjs} +0 -0
  1173. /package/dist/chunks/{my-DOLHceI8.cjs → my-BtRZdE5q.cjs} +0 -0
  1174. /package/dist/chunks/{native-DbFHGXp1.cjs → native-Bok_u8yD.cjs} +0 -0
  1175. /package/dist/chunks/{native-CarRLbbJ.mjs → native-DIGOFhyn.mjs} +0 -0
  1176. /package/dist/chunks/{ne-LaymXAjm.mjs → ne-B6JfM08W.mjs} +0 -0
  1177. /package/dist/chunks/{ne-B2gHspK_.cjs → ne-C9oc_I3v.cjs} +0 -0
  1178. /package/dist/chunks/{nl-C5ezxTkA.cjs → nl-CkIGPyM6.cjs} +0 -0
  1179. /package/dist/chunks/{nl-Dm1eVwTA.mjs → nl-NuO8CW66.mjs} +0 -0
  1180. /package/dist/chunks/{no-B2WicGhz.mjs → no-BtwrqS-b.mjs} +0 -0
  1181. /package/dist/chunks/{no-D4hjenPs.cjs → no-De7tM2WX.cjs} +0 -0
  1182. /package/dist/chunks/{pa-CemLebw7.cjs → pa-Bm15OLTz.cjs} +0 -0
  1183. /package/dist/chunks/{pa-ry61xHq9.mjs → pa-ClSxjHFF.mjs} +0 -0
  1184. /package/dist/chunks/{path-CLcQoP7n.cjs → path-CFQyJ4S5.cjs} +0 -0
  1185. /package/dist/chunks/{path-Crax6eds.mjs → path-iPyWZTLQ.mjs} +0 -0
  1186. /package/dist/chunks/{pl-DzCnx7eR.mjs → pl-C-aTCeRd.mjs} +0 -0
  1187. /package/dist/chunks/{pl-D_sFAkCs.cjs → pl-D80QrSlq.cjs} +0 -0
  1188. /package/dist/chunks/{ps-DKXG6JHY.mjs → ps-B8wPRrcC.mjs} +0 -0
  1189. /package/dist/chunks/{ps-ygHHO68A.cjs → ps-ySfeV5NE.cjs} +0 -0
  1190. /package/dist/chunks/{pt-e09B0rEd.mjs → pt-8tijWt3B.mjs} +0 -0
  1191. /package/dist/chunks/{pt-x_mmaTtD.cjs → pt-Bigoi5oj.cjs} +0 -0
  1192. /package/dist/chunks/{ro-HNnYR5pB.mjs → ro-BiUSkkwp.mjs} +0 -0
  1193. /package/dist/chunks/{ro-CLGSgHzJ.cjs → ro-Dvtjmd-W.cjs} +0 -0
  1194. /package/dist/chunks/{rough.esm-BaIXPgTh.cjs → rough.esm-DC-UFdM0.cjs} +0 -0
  1195. /package/dist/chunks/{rough.esm-CChKUjNP.mjs → rough.esm-buj-m5wB.mjs} +0 -0
  1196. /package/dist/chunks/{ru-LpaLXWmO.cjs → ru-dq73Ra3e.cjs} +0 -0
  1197. /package/dist/chunks/{ru-D_jTWgK8.mjs → ru-qkCthz2J.mjs} +0 -0
  1198. /package/dist/chunks/{sd-B5PS8K1I.cjs → sd-BhtQCaFq.cjs} +0 -0
  1199. /package/dist/chunks/{sd-B7bgXBin.mjs → sd-DfoXSEBK.mjs} +0 -0
  1200. /package/dist/chunks/{si-BjMoO5xu.cjs → si-CWG8h4tD.cjs} +0 -0
  1201. /package/dist/chunks/{si-aQCsTBIp.mjs → si-RPCp-GrG.mjs} +0 -0
  1202. /package/dist/chunks/{sk-pQPYnDDU.cjs → sk-Bkag9oKD.cjs} +0 -0
  1203. /package/dist/chunks/{sk-Bjrct9rr.mjs → sk-CVRHQjYN.mjs} +0 -0
  1204. /package/dist/chunks/{sl-B_yalM3h.cjs → sl-BhupPCcO.cjs} +0 -0
  1205. /package/dist/chunks/{sl-DvS57kCB.mjs → sl-Clf3YXji.mjs} +0 -0
  1206. /package/dist/chunks/{sq-gzZkHXFJ.cjs → sq-Bosym4Xb.cjs} +0 -0
  1207. /package/dist/chunks/{sq-BexoWiW2.mjs → sq-C-nwTgWs.mjs} +0 -0
  1208. /package/dist/chunks/{sr-CXir4bLq.mjs → sr-BiElo1CU.mjs} +0 -0
  1209. /package/dist/chunks/{sr-O4v1KJY1.cjs → sr-DFPGZJ0s.cjs} +0 -0
  1210. /package/dist/chunks/{src-d9yswOqA.cjs → src-al3Kn9PA.cjs} +0 -0
  1211. /package/dist/chunks/{src-yreeH1hr.mjs → src-gZQLeVvM.mjs} +0 -0
  1212. /package/dist/chunks/{sv-D0tEFwN7.cjs → sv-CiYmSxqX.cjs} +0 -0
  1213. /package/dist/chunks/{sv-B_Owhjrs.mjs → sv-DVztafBI.mjs} +0 -0
  1214. /package/dist/chunks/{sw-DE8oPVEt.cjs → sw-CMbHoINv.cjs} +0 -0
  1215. /package/dist/chunks/{sw-B4p84FCO.mjs → sw-CgJk20G2.mjs} +0 -0
  1216. /package/dist/chunks/{ta-BCVLtFMU.cjs → ta-BrC1o95Z.cjs} +0 -0
  1217. /package/dist/chunks/{ta-BU_-jQ33.mjs → ta-rqChn3y2.mjs} +0 -0
  1218. /package/dist/chunks/{te-BISdOeGS.cjs → te-DAKpWpi8.cjs} +0 -0
  1219. /package/dist/chunks/{te-5FGke4TK.mjs → te-LIsqeDyD.mjs} +0 -0
  1220. /package/dist/chunks/{th-DFyekAQ3.mjs → th-Bm6lDr_S.mjs} +0 -0
  1221. /package/dist/chunks/{th-CJXhSA-L.cjs → th-D0CG2M2k.cjs} +0 -0
  1222. /package/dist/chunks/{tr-BjTvmhJt.cjs → tr-Bw_nVU1b.cjs} +0 -0
  1223. /package/dist/chunks/{tr-C7Zj3lX4.mjs → tr-g8oLvvcP.mjs} +0 -0
  1224. /package/dist/chunks/{types-BNvlbr9u.mjs → types-DrdCPGbk.mjs} +0 -0
  1225. /package/dist/chunks/{types-BQX8SD8Q.cjs → types-GPfn5gE2.cjs} +0 -0
  1226. /package/dist/chunks/{ug-DsQjxbOa.cjs → ug-DvC-UnxD.cjs} +0 -0
  1227. /package/dist/chunks/{ug-DJwD0iui.mjs → ug-zVaKVoWE.mjs} +0 -0
  1228. /package/dist/chunks/{uk-BPzbNIjw.cjs → uk-Cx32rUi7.cjs} +0 -0
  1229. /package/dist/chunks/{uk-hkOj8kWN.mjs → uk-DGVBUwum.mjs} +0 -0
  1230. /package/dist/chunks/{ur-Cy5A8nFG.mjs → ur-7wbChoVl.mjs} +0 -0
  1231. /package/dist/chunks/{ur-Do8k1hR-.cjs → ur-BMh2seDu.cjs} +0 -0
  1232. /package/dist/chunks/{vi-CCTEx9XR.cjs → vi-4TUS0GSi.cjs} +0 -0
  1233. /package/dist/chunks/{vi-CEt0cTzQ.mjs → vi-CLg1e4-a.mjs} +0 -0
  1234. /package/dist/chunks/{zh-Ive4on8E.cjs → zh-DZtmJNDR.cjs} +0 -0
  1235. /package/dist/chunks/{zh-BwQjLCGO.mjs → zh-LvpOPMNT.mjs} +0 -0
@@ -1,1875 +0,0 @@
1
- import { n as e, t } from "./objectSpread2-CWwMYL_U.mjs";
2
- import { i as n } from "./chunk-5PVQY5BW-7Voh8aPS.mjs";
3
- import { g as r, h as i, p as a } from "./src-yreeH1hr.mjs";
4
- import { L as o, P as s, k as c, s as l, y as u } from "./chunk-ICPOFSXX-DbL0YBQf.mjs";
5
- //#region node_modules/@iconify/utils/lib/icon/defaults.js
6
- var d = Object.freeze({
7
- left: 0,
8
- top: 0,
9
- width: 16,
10
- height: 16
11
- }), f = Object.freeze({
12
- rotate: 0,
13
- vFlip: !1,
14
- hFlip: !1
15
- }), p = Object.freeze(t(t({}, d), f)), m = Object.freeze(t(t({}, p), {}, {
16
- body: "",
17
- hidden: !1
18
- })), h = Object.freeze({
19
- width: null,
20
- height: null
21
- }), g = Object.freeze(t(t({}, h), f)), ee = (e, t, n, r = "") => {
22
- let i = e.split(":");
23
- if (e.slice(0, 1) === "@") {
24
- if (i.length < 2 || i.length > 3) return null;
25
- r = i.shift().slice(1);
26
- }
27
- if (i.length > 3 || !i.length) return null;
28
- if (i.length > 1) {
29
- let e = i.pop(), n = i.pop(), a = {
30
- provider: i.length > 0 ? i[0] : r,
31
- prefix: n,
32
- name: e
33
- };
34
- return t && !_(a) ? null : a;
35
- }
36
- let a = i[0], o = a.split("-");
37
- if (o.length > 1) {
38
- let e = {
39
- provider: r,
40
- prefix: o.shift(),
41
- name: o.join("-")
42
- };
43
- return t && !_(e) ? null : e;
44
- }
45
- if (n && r === "") {
46
- let e = {
47
- provider: r,
48
- prefix: "",
49
- name: a
50
- };
51
- return t && !_(e, n) ? null : e;
52
- }
53
- return null;
54
- }, _ = (e, t) => e ? !!((t && e.prefix === "" || e.prefix) && e.name) : !1;
55
- //#endregion
56
- //#region node_modules/@iconify/utils/lib/icon/transformations.js
57
- function te(e, t) {
58
- let n = {};
59
- !e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
60
- let r = ((e.rotate || 0) + (t.rotate || 0)) % 4;
61
- return r && (n.rotate = r), n;
62
- }
63
- //#endregion
64
- //#region node_modules/@iconify/utils/lib/icon/merge.js
65
- function ne(e, t) {
66
- let n = te(e, t);
67
- for (let r in m) r in f ? r in e && !(r in n) && (n[r] = f[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
68
- return n;
69
- }
70
- //#endregion
71
- //#region node_modules/@iconify/utils/lib/icon-set/tree.js
72
- function re(e, t) {
73
- let n = e.icons, r = e.aliases || Object.create(null), i = Object.create(null);
74
- function a(e) {
75
- if (n[e]) return i[e] = [];
76
- if (!(e in i)) {
77
- i[e] = null;
78
- let t = r[e] && r[e].parent, n = t && a(t);
79
- n && (i[e] = [t].concat(n));
80
- }
81
- return i[e];
82
- }
83
- return (t || Object.keys(n).concat(Object.keys(r))).forEach(a), i;
84
- }
85
- //#endregion
86
- //#region node_modules/@iconify/utils/lib/icon-set/get-icon.js
87
- function ie(e, t, n) {
88
- let r = e.icons, i = e.aliases || Object.create(null), a = {};
89
- function o(e) {
90
- a = ne(r[e] || i[e], a);
91
- }
92
- return o(t), n.forEach(o), ne(e, a);
93
- }
94
- function ae(e, t) {
95
- if (e.icons[t]) return ie(e, t, []);
96
- let n = re(e, [t])[t];
97
- return n ? ie(e, t, n) : null;
98
- }
99
- //#endregion
100
- //#region node_modules/@iconify/utils/lib/svg/size.js
101
- var oe = /(-?[0-9.]*[0-9]+[0-9.]*)/g, se = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
102
- function ce(e, t, n) {
103
- if (t === 1) return e;
104
- if (n = n || 100, typeof e == "number") return Math.ceil(e * t * n) / n;
105
- if (typeof e != "string") return e;
106
- let r = e.split(oe);
107
- if (r === null || !r.length) return e;
108
- let i = [], a = r.shift(), o = se.test(a);
109
- for (;;) {
110
- if (o) {
111
- let e = parseFloat(a);
112
- isNaN(e) ? i.push(a) : i.push(Math.ceil(e * t * n) / n);
113
- } else i.push(a);
114
- if (a = r.shift(), a === void 0) return i.join("");
115
- o = !o;
116
- }
117
- }
118
- //#endregion
119
- //#region node_modules/@iconify/utils/lib/svg/defs.js
120
- function le(e, t = "defs") {
121
- let n = "", r = e.indexOf("<" + t);
122
- for (; r >= 0;) {
123
- let i = e.indexOf(">", r), a = e.indexOf("</" + t);
124
- if (i === -1 || a === -1) break;
125
- let o = e.indexOf(">", a);
126
- if (o === -1) break;
127
- n += e.slice(i + 1, a).trim(), e = e.slice(0, r).trim() + e.slice(o + 1);
128
- }
129
- return {
130
- defs: n,
131
- content: e
132
- };
133
- }
134
- function ue(e, t) {
135
- return e ? "<defs>" + e + "</defs>" + t : t;
136
- }
137
- function de(e, t, n) {
138
- let r = le(e);
139
- return ue(r.defs, t + r.content + n);
140
- }
141
- //#endregion
142
- //#region node_modules/@iconify/utils/lib/svg/build.js
143
- var fe = (e) => e === "unset" || e === "undefined" || e === "none";
144
- function pe(e, n) {
145
- let r = t(t({}, p), e), i = t(t({}, g), n), a = {
146
- left: r.left,
147
- top: r.top,
148
- width: r.width,
149
- height: r.height
150
- }, o = r.body;
151
- [r, i].forEach((e) => {
152
- let t = [], n = e.hFlip, r = e.vFlip, i = e.rotate;
153
- n ? r ? i += 2 : (t.push("translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"), t.push("scale(-1 1)"), a.top = a.left = 0) : r && (t.push("translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"), t.push("scale(1 -1)"), a.top = a.left = 0);
154
- let s;
155
- switch (i < 0 && (i -= Math.floor(i / 4) * 4), i %= 4, i) {
156
- case 1:
157
- s = a.height / 2 + a.top, t.unshift("rotate(90 " + s.toString() + " " + s.toString() + ")");
158
- break;
159
- case 2:
160
- t.unshift("rotate(180 " + (a.width / 2 + a.left).toString() + " " + (a.height / 2 + a.top).toString() + ")");
161
- break;
162
- case 3:
163
- s = a.width / 2 + a.left, t.unshift("rotate(-90 " + s.toString() + " " + s.toString() + ")");
164
- break;
165
- }
166
- i % 2 == 1 && (a.left !== a.top && (s = a.left, a.left = a.top, a.top = s), a.width !== a.height && (s = a.width, a.width = a.height, a.height = s)), t.length && (o = de(o, "<g transform=\"" + t.join(" ") + "\">", "</g>"));
167
- });
168
- let s = i.width, c = i.height, l = a.width, u = a.height, d, f;
169
- s === null ? (f = c === null ? "1em" : c === "auto" ? u : c, d = ce(f, l / u)) : (d = s === "auto" ? l : s, f = c === null ? ce(d, u / l) : c === "auto" ? u : c);
170
- let m = {}, h = (e, t) => {
171
- fe(t) || (m[e] = t.toString());
172
- };
173
- h("width", d), h("height", f);
174
- let ee = [
175
- a.left,
176
- a.top,
177
- l,
178
- u
179
- ];
180
- return m.viewBox = ee.join(" "), {
181
- attributes: m,
182
- viewBox: ee,
183
- body: o
184
- };
185
- }
186
- //#endregion
187
- //#region node_modules/@iconify/utils/lib/svg/id.js
188
- var me = /\sid="(\S+)"/g, he = /* @__PURE__ */ new Map();
189
- function ge(e) {
190
- e = e.replace(/[0-9]+$/, "") || "a";
191
- let t = he.get(e) || 0;
192
- return he.set(e, t + 1), t ? `${e}${t}` : e;
193
- }
194
- function _e(e) {
195
- let t = [], n;
196
- for (; n = me.exec(e);) t.push(n[1]);
197
- if (!t.length) return e;
198
- let r = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
199
- return t.forEach((t) => {
200
- let n = ge(t), i = t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
201
- e = e.replace(RegExp("([#;\"])(" + i + ")([\")]|\\.[a-z])", "g"), "$1" + n + r + "$3");
202
- }), e = e.replace(new RegExp(r, "g"), ""), e;
203
- }
204
- //#endregion
205
- //#region node_modules/@iconify/utils/lib/svg/html.js
206
- function ve(e, t) {
207
- let n = e.indexOf("xlink:") === -1 ? "" : " xmlns:xlink=\"http://www.w3.org/1999/xlink\"";
208
- for (let e in t) n += " " + e + "=\"" + t[e] + "\"";
209
- return "<svg xmlns=\"http://www.w3.org/2000/svg\"" + n + ">" + e + "</svg>";
210
- }
211
- //#endregion
212
- //#region node_modules/mermaid/node_modules/marked/lib/marked.esm.js
213
- var v;
214
- function y() {
215
- return {
216
- async: !1,
217
- breaks: !1,
218
- extensions: null,
219
- gfm: !0,
220
- hooks: null,
221
- pedantic: !1,
222
- renderer: null,
223
- silent: !1,
224
- tokenizer: null,
225
- walkTokens: null
226
- };
227
- }
228
- var b = y();
229
- function ye(e) {
230
- b = e;
231
- }
232
- var x = { exec: () => null };
233
- function S(e, t = "") {
234
- let n = typeof e == "string" ? e : e.source, r = {
235
- replace: (e, t) => {
236
- let i = typeof t == "string" ? t : t.source;
237
- return i = i.replace(C.caret, "$1"), n = n.replace(e, i), r;
238
- },
239
- getRegex: () => new RegExp(n, t)
240
- };
241
- return r;
242
- }
243
- var be = (() => {
244
- try {
245
- return !0;
246
- } catch (e) {
247
- return !1;
248
- }
249
- })(), C = {
250
- codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
251
- outputLinkReplace: /\\([\[\]])/g,
252
- indentCodeCompensation: /^(\s+)(?:```)/,
253
- beginningSpace: /^\s+/,
254
- endingHash: /#$/,
255
- startingSpaceChar: /^ /,
256
- endingSpaceChar: / $/,
257
- nonSpaceChar: /[^ ]/,
258
- newLineCharGlobal: /\n/g,
259
- tabCharGlobal: /\t/g,
260
- multipleSpaceGlobal: /\s+/g,
261
- blankLine: /^[ \t]*$/,
262
- doubleBlankLine: /\n[ \t]*\n[ \t]*$/,
263
- blockquoteStart: /^ {0,3}>/,
264
- blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g,
265
- blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm,
266
- listReplaceTabs: /^\t+/,
267
- listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g,
268
- listIsTask: /^\[[ xX]\] /,
269
- listReplaceTask: /^\[[ xX]\] +/,
270
- anyLine: /\n.*\n/,
271
- hrefBrackets: /^<(.*)>$/,
272
- tableDelimiter: /[:|]/,
273
- tableAlignChars: /^\||\| *$/g,
274
- tableRowBlankLine: /\n[ \t]*$/,
275
- tableAlignRight: /^ *-+: *$/,
276
- tableAlignCenter: /^ *:-+: *$/,
277
- tableAlignLeft: /^ *:-+ *$/,
278
- startATag: /^<a /i,
279
- endATag: /^<\/a>/i,
280
- startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i,
281
- endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i,
282
- startAngleBracket: /^</,
283
- endAngleBracket: />$/,
284
- pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/,
285
- unicodeAlphaNumeric: /* @__PURE__ */ RegExp("[\\p{L}\\p{N}]", "u"),
286
- escapeTest: /[&<>"']/,
287
- escapeReplace: /[&<>"']/g,
288
- escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,
289
- escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,
290
- unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,
291
- caret: /(^|[^\[])\^/g,
292
- percentDecode: /%25/g,
293
- findPipe: /\|/g,
294
- splitPipe: / \|/,
295
- slashPipe: /\\\|/g,
296
- carriageReturn: /\r\n|\r/g,
297
- spaceLine: /^ +$/gm,
298
- notSpaceStart: /^\S*/,
299
- endingNewline: /\n$/,
300
- listItemRegex: (e) => RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),
301
- nextBulletRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),
302
- hrRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),
303
- fencesBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}(?:\`\`\`|~~~)`),
304
- headingBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
305
- htmlBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i")
306
- }, xe = /^(?:[ \t]*(?:\n|$))+/, Se = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Ce = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, w = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, we = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, T = /(?:[*+-]|\d{1,9}[.)])/, Te = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Ee = S(Te).replace(/bull/g, T).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), De = S(Te).replace(/bull/g, T).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), E = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Oe = /^[^\n]+/, D = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, ke = S(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", D).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Ae = S(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, T).getRegex(), O = "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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", k = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, je = S("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", k).replace("tag", O).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Me = S(E).replace("hr", w).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", O).getRegex(), A = {
307
- blockquote: S(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Me).getRegex(),
308
- code: Se,
309
- def: ke,
310
- fences: Ce,
311
- heading: we,
312
- hr: w,
313
- html: je,
314
- lheading: Ee,
315
- list: Ae,
316
- newline: xe,
317
- paragraph: Me,
318
- table: x,
319
- text: Oe
320
- }, Ne = S("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", w).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", O).getRegex(), Pe = t(t({}, A), {}, {
321
- lheading: De,
322
- table: Ne,
323
- paragraph: S(E).replace("hr", w).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Ne).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", O).getRegex()
324
- }), Fe = t(t({}, A), {}, {
325
- html: S("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", k).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
326
- def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
327
- heading: /^(#{1,6})(.*)(?:\n+|$)/,
328
- fences: x,
329
- lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
330
- paragraph: S(E).replace("hr", w).replace("heading", " *#{1,6} *[^\n]").replace("lheading", Ee).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
331
- }), Ie = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Le = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Re = /^( {2,}|\\)\n(?!\s*$)/, ze = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, j = /* @__PURE__ */ RegExp("[\\p{P}\\p{S}]", "u"), M = /* @__PURE__ */ RegExp("[\\s\\p{P}\\p{S}]", "u"), Be = /* @__PURE__ */ RegExp("[^\\s\\p{P}\\p{S}]", "u"), Ve = S(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, M).getRegex(), He = /* @__PURE__ */ RegExp("(?!~)[\\p{P}\\p{S}]", "u"), Ue = /* @__PURE__ */ RegExp("(?!~)[\\s\\p{P}\\p{S}]", "u"), We = /* @__PURE__ */ RegExp("(?:[^\\s\\p{P}\\p{S}]|~)", "u"), Ge = S(/link|precode-code|html/, "g").replace("link", /* @__PURE__ */ RegExp("\\[(?:[^\\[\\]`]|(?<a>`+)[^`]+\\k<a>(?!`))*?\\]\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)]|\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)])*\\))*\\)", "")).replace("precode-", be ? "(?<!`)()" : "(^^|[^`])").replace("code", /* @__PURE__ */ RegExp("(?<b>`+)[^`]+\\k<b>(?!`)", "")).replace("html", /<(?! )[^<>]*?>/).getRegex(), Ke = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, qe = S(Ke, "u").replace(/punct/g, j).getRegex(), Je = S(Ke, "u").replace(/punct/g, He).getRegex(), Ye = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Xe = S(Ye, "gu").replace(/notPunctSpace/g, Be).replace(/punctSpace/g, M).replace(/punct/g, j).getRegex(), Ze = S(Ye, "gu").replace(/notPunctSpace/g, We).replace(/punctSpace/g, Ue).replace(/punct/g, He).getRegex(), Qe = S("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Be).replace(/punctSpace/g, M).replace(/punct/g, j).getRegex(), $e = S(/\\(punct)/, "gu").replace(/punct/g, j).getRegex(), et = S(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), tt = S(k).replace("(?:-->|$)", "-->").getRegex(), nt = S("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", tt).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), N = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, rt = S(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", N).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), it = S(/^!?\[(label)\]\[(ref)\]/).replace("label", N).replace("ref", D).getRegex(), at = S(/^!?\[(ref)\](?:\[\])?/).replace("ref", D).getRegex(), ot = S("reflink|nolink(?!\\()", "g").replace("reflink", it).replace("nolink", at).getRegex(), st = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, P = {
332
- _backpedal: x,
333
- anyPunctuation: $e,
334
- autolink: et,
335
- blockSkip: Ge,
336
- br: Re,
337
- code: Le,
338
- del: x,
339
- emStrongLDelim: qe,
340
- emStrongRDelimAst: Xe,
341
- emStrongRDelimUnd: Qe,
342
- escape: Ie,
343
- link: rt,
344
- nolink: at,
345
- punctuation: Ve,
346
- reflink: it,
347
- reflinkSearch: ot,
348
- tag: nt,
349
- text: ze,
350
- url: x
351
- }, ct = t(t({}, P), {}, {
352
- link: S(/^!?\[(label)\]\((.*?)\)/).replace("label", N).getRegex(),
353
- reflink: S(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", N).getRegex()
354
- }), F = t(t({}, P), {}, {
355
- emStrongRDelimAst: Ze,
356
- emStrongLDelim: Je,
357
- url: S(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", st).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
358
- _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
359
- del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
360
- text: S(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", st).getRegex()
361
- }), lt = t(t({}, F), {}, {
362
- br: S(Re).replace("{2,}", "*").getRegex(),
363
- text: S(F.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
364
- }), I = {
365
- normal: A,
366
- gfm: Pe,
367
- pedantic: Fe
368
- }, L = {
369
- normal: P,
370
- gfm: F,
371
- breaks: lt,
372
- pedantic: ct
373
- }, ut = {
374
- "&": "&amp;",
375
- "<": "&lt;",
376
- ">": "&gt;",
377
- "\"": "&quot;",
378
- "'": "&#39;"
379
- }, dt = (e) => ut[e];
380
- function R(e, t) {
381
- if (t) {
382
- if (C.escapeTest.test(e)) return e.replace(C.escapeReplace, dt);
383
- } else if (C.escapeTestNoEncode.test(e)) return e.replace(C.escapeReplaceNoEncode, dt);
384
- return e;
385
- }
386
- function ft(e) {
387
- try {
388
- e = encodeURI(e).replace(C.percentDecode, "%");
389
- } catch (e) {
390
- return null;
391
- }
392
- return e;
393
- }
394
- function pt(e, t) {
395
- var n;
396
- let r = e.replace(C.findPipe, (e, t, n) => {
397
- let r = !1, i = t;
398
- for (; --i >= 0 && n[i] === "\\";) r = !r;
399
- return r ? "|" : " |";
400
- }).split(C.splitPipe), i = 0;
401
- if (r[0].trim() || r.shift(), r.length > 0 && !((n = r.at(-1)) != null && n.trim()) && r.pop(), t) if (r.length > t) r.splice(t);
402
- else for (; r.length < t;) r.push("");
403
- for (; i < r.length; i++) r[i] = r[i].trim().replace(C.slashPipe, "|");
404
- return r;
405
- }
406
- function z(e, t, n) {
407
- let r = e.length;
408
- if (r === 0) return "";
409
- let i = 0;
410
- for (; i < r;) {
411
- let a = e.charAt(r - i - 1);
412
- if (a === t && !n) i++;
413
- else if (a !== t && n) i++;
414
- else break;
415
- }
416
- return e.slice(0, r - i);
417
- }
418
- function mt(e, t) {
419
- if (e.indexOf(t[1]) === -1) return -1;
420
- let n = 0;
421
- for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
422
- else if (e[r] === t[0]) n++;
423
- else if (e[r] === t[1] && (n--, n < 0)) return r;
424
- return n > 0 ? -2 : -1;
425
- }
426
- function ht(e, t, n, r, i) {
427
- let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
428
- r.state.inLink = !0;
429
- let c = {
430
- type: e[0].charAt(0) === "!" ? "image" : "link",
431
- raw: n,
432
- href: a,
433
- title: o,
434
- text: s,
435
- tokens: r.inlineTokens(s)
436
- };
437
- return r.state.inLink = !1, c;
438
- }
439
- function gt(e, t, n) {
440
- let r = e.match(n.other.indentCodeCompensation);
441
- if (r === null) return t;
442
- let i = r[1];
443
- return t.split("\n").map((e) => {
444
- let t = e.match(n.other.beginningSpace);
445
- if (t === null) return e;
446
- let [r] = t;
447
- return r.length >= i.length ? e.slice(i.length) : e;
448
- }).join("\n");
449
- }
450
- var B = class {
451
- constructor(t) {
452
- e(this, "options", void 0), e(this, "rules", void 0), e(this, "lexer", void 0), this.options = t || b;
453
- }
454
- space(e) {
455
- let t = this.rules.block.newline.exec(e);
456
- if (t && t[0].length > 0) return {
457
- type: "space",
458
- raw: t[0]
459
- };
460
- }
461
- code(e) {
462
- let t = this.rules.block.code.exec(e);
463
- if (t) {
464
- let e = t[0].replace(this.rules.other.codeRemoveIndent, "");
465
- return {
466
- type: "code",
467
- raw: t[0],
468
- codeBlockStyle: "indented",
469
- text: this.options.pedantic ? e : z(e, "\n")
470
- };
471
- }
472
- }
473
- fences(e) {
474
- let t = this.rules.block.fences.exec(e);
475
- if (t) {
476
- let e = t[0], n = gt(e, t[3] || "", this.rules);
477
- return {
478
- type: "code",
479
- raw: e,
480
- lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2],
481
- text: n
482
- };
483
- }
484
- }
485
- heading(e) {
486
- let t = this.rules.block.heading.exec(e);
487
- if (t) {
488
- let e = t[2].trim();
489
- if (this.rules.other.endingHash.test(e)) {
490
- let t = z(e, "#");
491
- (this.options.pedantic || !t || this.rules.other.endingSpaceChar.test(t)) && (e = t.trim());
492
- }
493
- return {
494
- type: "heading",
495
- raw: t[0],
496
- depth: t[1].length,
497
- text: e,
498
- tokens: this.lexer.inline(e)
499
- };
500
- }
501
- }
502
- hr(e) {
503
- let t = this.rules.block.hr.exec(e);
504
- if (t) return {
505
- type: "hr",
506
- raw: z(t[0], "\n")
507
- };
508
- }
509
- blockquote(e) {
510
- let t = this.rules.block.blockquote.exec(e);
511
- if (t) {
512
- let e = z(t[0], "\n").split("\n"), n = "", r = "", i = [];
513
- for (; e.length > 0;) {
514
- let t = !1, a = [], o;
515
- for (o = 0; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
516
- else if (!t) a.push(e[o]);
517
- else break;
518
- e = e.slice(o);
519
- let s = a.join("\n"), c = s.replace(this.rules.other.blockquoteSetextReplace, "\n $1").replace(this.rules.other.blockquoteSetextReplace2, "");
520
- n = n ? `${n}
521
- ${s}` : s, r = r ? `${r}
522
- ${c}` : c;
523
- let l = this.lexer.state.top;
524
- if (this.lexer.state.top = !0, this.lexer.blockTokens(c, i, !0), this.lexer.state.top = l, e.length === 0) break;
525
- let u = i.at(-1);
526
- if ((u == null ? void 0 : u.type) === "code") break;
527
- if ((u == null ? void 0 : u.type) === "blockquote") {
528
- let t = u, a = t.raw + "\n" + e.join("\n"), o = this.blockquote(a);
529
- i[i.length - 1] = o, n = n.substring(0, n.length - t.raw.length) + o.raw, r = r.substring(0, r.length - t.text.length) + o.text;
530
- break;
531
- } else if ((u == null ? void 0 : u.type) === "list") {
532
- let t = u, a = t.raw + "\n" + e.join("\n"), o = this.list(a);
533
- i[i.length - 1] = o, n = n.substring(0, n.length - u.raw.length) + o.raw, r = r.substring(0, r.length - t.raw.length) + o.raw, e = a.substring(i.at(-1).raw.length).split("\n");
534
- continue;
535
- }
536
- }
537
- return {
538
- type: "blockquote",
539
- raw: n,
540
- tokens: i,
541
- text: r
542
- };
543
- }
544
- }
545
- list(e) {
546
- let t = this.rules.block.list.exec(e);
547
- if (t) {
548
- let n = t[1].trim(), r = n.length > 1, i = {
549
- type: "list",
550
- raw: "",
551
- ordered: r,
552
- start: r ? +n.slice(0, -1) : "",
553
- loose: !1,
554
- items: []
555
- };
556
- n = r ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r ? n : "[*+-]");
557
- let a = this.rules.other.listItemRegex(n), o = !1;
558
- for (; e;) {
559
- let n = !1, r = "", s = "";
560
- if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
561
- r = t[0], e = e.substring(r.length);
562
- let c = t[2].split("\n", 1)[0].replace(this.rules.other.listReplaceTabs, (e) => " ".repeat(3 * e.length)), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
563
- if (this.options.pedantic ? (d = 2, s = c.trimStart()) : u ? d = t[1].length + 1 : (d = t[2].search(this.rules.other.nonSpaceChar), d = d > 4 ? 1 : d, s = c.slice(d), d += t[1].length), u && this.rules.other.blankLine.test(l) && (r += l + "\n", e = e.substring(l.length + 1), n = !0), !n) {
564
- let t = this.rules.other.nextBulletRegex(d), n = this.rules.other.hrRegex(d), i = this.rules.other.fencesBeginRegex(d), a = this.rules.other.headingBeginRegex(d), o = this.rules.other.htmlBeginRegex(d);
565
- for (; e;) {
566
- let f = e.split("\n", 1)[0], p;
567
- if (l = f, this.options.pedantic ? (l = l.replace(this.rules.other.listReplaceNesting, " "), p = l) : p = l.replace(this.rules.other.tabCharGlobal, " "), i.test(l) || a.test(l) || o.test(l) || t.test(l) || n.test(l)) break;
568
- if (p.search(this.rules.other.nonSpaceChar) >= d || !l.trim()) s += "\n" + p.slice(d);
569
- else {
570
- if (u || c.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || i.test(c) || a.test(c) || n.test(c)) break;
571
- s += "\n" + l;
572
- }
573
- !u && !l.trim() && (u = !0), r += f + "\n", e = e.substring(f.length + 1), c = p.slice(d);
574
- }
575
- }
576
- i.loose || (o ? i.loose = !0 : this.rules.other.doubleBlankLine.test(r) && (o = !0));
577
- let f = null, p;
578
- this.options.gfm && (f = this.rules.other.listIsTask.exec(s), f && (p = f[0] !== "[ ] ", s = s.replace(this.rules.other.listReplaceTask, ""))), i.items.push({
579
- type: "list_item",
580
- raw: r,
581
- task: !!f,
582
- checked: p,
583
- loose: !1,
584
- text: s,
585
- tokens: []
586
- }), i.raw += r;
587
- }
588
- let s = i.items.at(-1);
589
- if (s) s.raw = s.raw.trimEnd(), s.text = s.text.trimEnd();
590
- else return;
591
- i.raw = i.raw.trimEnd();
592
- for (let e = 0; e < i.items.length; e++) if (this.lexer.state.top = !1, i.items[e].tokens = this.lexer.blockTokens(i.items[e].text, []), !i.loose) {
593
- let t = i.items[e].tokens.filter((e) => e.type === "space");
594
- i.loose = t.length > 0 && t.some((e) => this.rules.other.anyLine.test(e.raw));
595
- }
596
- if (i.loose) for (let e = 0; e < i.items.length; e++) i.items[e].loose = !0;
597
- return i;
598
- }
599
- }
600
- html(e) {
601
- let t = this.rules.block.html.exec(e);
602
- if (t) return {
603
- type: "html",
604
- block: !0,
605
- raw: t[0],
606
- pre: t[1] === "pre" || t[1] === "script" || t[1] === "style",
607
- text: t[0]
608
- };
609
- }
610
- def(e) {
611
- let t = this.rules.block.def.exec(e);
612
- if (t) {
613
- let e = t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal, " "), n = t[2] ? t[2].replace(this.rules.other.hrefBrackets, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "", r = t[3] ? t[3].substring(1, t[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : t[3];
614
- return {
615
- type: "def",
616
- tag: e,
617
- raw: t[0],
618
- href: n,
619
- title: r
620
- };
621
- }
622
- }
623
- table(e) {
624
- var t;
625
- let n = this.rules.block.table.exec(e);
626
- if (!n || !this.rules.other.tableDelimiter.test(n[2])) return;
627
- let r = pt(n[1]), i = n[2].replace(this.rules.other.tableAlignChars, "").split("|"), a = (t = n[3]) != null && t.trim() ? n[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], o = {
628
- type: "table",
629
- raw: n[0],
630
- header: [],
631
- align: [],
632
- rows: []
633
- };
634
- if (r.length === i.length) {
635
- for (let e of i) this.rules.other.tableAlignRight.test(e) ? o.align.push("right") : this.rules.other.tableAlignCenter.test(e) ? o.align.push("center") : this.rules.other.tableAlignLeft.test(e) ? o.align.push("left") : o.align.push(null);
636
- for (let e = 0; e < r.length; e++) o.header.push({
637
- text: r[e],
638
- tokens: this.lexer.inline(r[e]),
639
- header: !0,
640
- align: o.align[e]
641
- });
642
- for (let e of a) o.rows.push(pt(e, o.header.length).map((e, t) => ({
643
- text: e,
644
- tokens: this.lexer.inline(e),
645
- header: !1,
646
- align: o.align[t]
647
- })));
648
- return o;
649
- }
650
- }
651
- lheading(e) {
652
- let t = this.rules.block.lheading.exec(e);
653
- if (t) return {
654
- type: "heading",
655
- raw: t[0],
656
- depth: t[2].charAt(0) === "=" ? 1 : 2,
657
- text: t[1],
658
- tokens: this.lexer.inline(t[1])
659
- };
660
- }
661
- paragraph(e) {
662
- let t = this.rules.block.paragraph.exec(e);
663
- if (t) {
664
- let e = t[1].charAt(t[1].length - 1) === "\n" ? t[1].slice(0, -1) : t[1];
665
- return {
666
- type: "paragraph",
667
- raw: t[0],
668
- text: e,
669
- tokens: this.lexer.inline(e)
670
- };
671
- }
672
- }
673
- text(e) {
674
- let t = this.rules.block.text.exec(e);
675
- if (t) return {
676
- type: "text",
677
- raw: t[0],
678
- text: t[0],
679
- tokens: this.lexer.inline(t[0])
680
- };
681
- }
682
- escape(e) {
683
- let t = this.rules.inline.escape.exec(e);
684
- if (t) return {
685
- type: "escape",
686
- raw: t[0],
687
- text: t[1]
688
- };
689
- }
690
- tag(e) {
691
- let t = this.rules.inline.tag.exec(e);
692
- if (t) return !this.lexer.state.inLink && this.rules.other.startATag.test(t[0]) ? this.lexer.state.inLink = !0 : this.lexer.state.inLink && this.rules.other.endATag.test(t[0]) && (this.lexer.state.inLink = !1), !this.lexer.state.inRawBlock && this.rules.other.startPreScriptTag.test(t[0]) ? this.lexer.state.inRawBlock = !0 : this.lexer.state.inRawBlock && this.rules.other.endPreScriptTag.test(t[0]) && (this.lexer.state.inRawBlock = !1), {
693
- type: "html",
694
- raw: t[0],
695
- inLink: this.lexer.state.inLink,
696
- inRawBlock: this.lexer.state.inRawBlock,
697
- block: !1,
698
- text: t[0]
699
- };
700
- }
701
- link(e) {
702
- let t = this.rules.inline.link.exec(e);
703
- if (t) {
704
- let e = t[2].trim();
705
- if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
706
- if (!this.rules.other.endAngleBracket.test(e)) return;
707
- let t = z(e.slice(0, -1), "\\");
708
- if ((e.length - t.length) % 2 == 0) return;
709
- } else {
710
- let e = mt(t[2], "()");
711
- if (e === -2) return;
712
- if (e > -1) {
713
- let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
714
- t[2] = t[2].substring(0, e), t[0] = t[0].substring(0, n).trim(), t[3] = "";
715
- }
716
- }
717
- let n = t[2], r = "";
718
- if (this.options.pedantic) {
719
- let e = this.rules.other.pedanticHrefTitle.exec(n);
720
- e && (n = e[1], r = e[3]);
721
- } else r = t[3] ? t[3].slice(1, -1) : "";
722
- return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), ht(t, {
723
- href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
724
- title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
725
- }, t[0], this.lexer, this.rules);
726
- }
727
- }
728
- reflink(e, t) {
729
- let n;
730
- if ((n = this.rules.inline.reflink.exec(e)) || (n = this.rules.inline.nolink.exec(e))) {
731
- let e = t[(n[2] || n[1]).replace(this.rules.other.multipleSpaceGlobal, " ").toLowerCase()];
732
- if (!e) {
733
- let e = n[0].charAt(0);
734
- return {
735
- type: "text",
736
- raw: e,
737
- text: e
738
- };
739
- }
740
- return ht(n, e, n[0], this.lexer, this.rules);
741
- }
742
- }
743
- emStrong(e, t, n = "") {
744
- let r = this.rules.inline.emStrongLDelim.exec(e);
745
- if (!(!r || r[3] && n.match(this.rules.other.unicodeAlphaNumeric)) && (!(r[1] || r[2]) || !n || this.rules.inline.punctuation.exec(n))) {
746
- let n = [...r[0]].length - 1, i, a, o = n, s = 0, c = r[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
747
- for (c.lastIndex = 0, t = t.slice(-1 * e.length + n); (r = c.exec(t)) != null;) {
748
- if (i = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !i) continue;
749
- if (a = [...i].length, r[3] || r[4]) {
750
- o += a;
751
- continue;
752
- } else if ((r[5] || r[6]) && n % 3 && !((n + a) % 3)) {
753
- s += a;
754
- continue;
755
- }
756
- if (o -= a, o > 0) continue;
757
- a = Math.min(a, a + o + s);
758
- let t = [...r[0]][0].length, c = e.slice(0, n + r.index + t + a);
759
- if (Math.min(n, a) % 2) {
760
- let e = c.slice(1, -1);
761
- return {
762
- type: "em",
763
- raw: c,
764
- text: e,
765
- tokens: this.lexer.inlineTokens(e)
766
- };
767
- }
768
- let l = c.slice(2, -2);
769
- return {
770
- type: "strong",
771
- raw: c,
772
- text: l,
773
- tokens: this.lexer.inlineTokens(l)
774
- };
775
- }
776
- }
777
- }
778
- codespan(e) {
779
- let t = this.rules.inline.code.exec(e);
780
- if (t) {
781
- let e = t[2].replace(this.rules.other.newLineCharGlobal, " "), n = this.rules.other.nonSpaceChar.test(e), r = this.rules.other.startingSpaceChar.test(e) && this.rules.other.endingSpaceChar.test(e);
782
- return n && r && (e = e.substring(1, e.length - 1)), {
783
- type: "codespan",
784
- raw: t[0],
785
- text: e
786
- };
787
- }
788
- }
789
- br(e) {
790
- let t = this.rules.inline.br.exec(e);
791
- if (t) return {
792
- type: "br",
793
- raw: t[0]
794
- };
795
- }
796
- del(e) {
797
- let t = this.rules.inline.del.exec(e);
798
- if (t) return {
799
- type: "del",
800
- raw: t[0],
801
- text: t[2],
802
- tokens: this.lexer.inlineTokens(t[2])
803
- };
804
- }
805
- autolink(e) {
806
- let t = this.rules.inline.autolink.exec(e);
807
- if (t) {
808
- let e, n;
809
- return t[2] === "@" ? (e = t[1], n = "mailto:" + e) : (e = t[1], n = e), {
810
- type: "link",
811
- raw: t[0],
812
- text: e,
813
- href: n,
814
- tokens: [{
815
- type: "text",
816
- raw: e,
817
- text: e
818
- }]
819
- };
820
- }
821
- }
822
- url(e) {
823
- let t;
824
- if (t = this.rules.inline.url.exec(e)) {
825
- let e, i;
826
- if (t[2] === "@") e = t[0], i = "mailto:" + e;
827
- else {
828
- var n, r;
829
- let a;
830
- do
831
- a = t[0], t[0] = (n = (r = this.rules.inline._backpedal.exec(t[0])) == null ? void 0 : r[0]) == null ? "" : n;
832
- while (a !== t[0]);
833
- e = t[0], i = t[1] === "www." ? "http://" + t[0] : t[0];
834
- }
835
- return {
836
- type: "link",
837
- raw: t[0],
838
- text: e,
839
- href: i,
840
- tokens: [{
841
- type: "text",
842
- raw: e,
843
- text: e
844
- }]
845
- };
846
- }
847
- }
848
- inlineText(e) {
849
- let t = this.rules.inline.text.exec(e);
850
- if (t) {
851
- let e = this.lexer.state.inRawBlock;
852
- return {
853
- type: "text",
854
- raw: t[0],
855
- text: t[0],
856
- escaped: e
857
- };
858
- }
859
- }
860
- }, V = class t {
861
- constructor(t) {
862
- e(this, "tokens", void 0), e(this, "options", void 0), e(this, "state", void 0), e(this, "tokenizer", void 0), e(this, "inlineQueue", void 0), this.tokens = [], this.tokens.links = Object.create(null), this.options = t || b, this.options.tokenizer = this.options.tokenizer || new B(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
863
- inLink: !1,
864
- inRawBlock: !1,
865
- top: !0
866
- };
867
- let n = {
868
- other: C,
869
- block: I.normal,
870
- inline: L.normal
871
- };
872
- this.options.pedantic ? (n.block = I.pedantic, n.inline = L.pedantic) : this.options.gfm && (n.block = I.gfm, this.options.breaks ? n.inline = L.breaks : n.inline = L.gfm), this.tokenizer.rules = n;
873
- }
874
- static get rules() {
875
- return {
876
- block: I,
877
- inline: L
878
- };
879
- }
880
- static lex(e, n) {
881
- return new t(n).lex(e);
882
- }
883
- static lexInline(e, n) {
884
- return new t(n).inlineTokens(e);
885
- }
886
- lex(e) {
887
- e = e.replace(C.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
888
- for (let e = 0; e < this.inlineQueue.length; e++) {
889
- let t = this.inlineQueue[e];
890
- this.inlineTokens(t.src, t.tokens);
891
- }
892
- return this.inlineQueue = [], this.tokens;
893
- }
894
- blockTokens(e, t = [], n = !1) {
895
- for (this.options.pedantic && (e = e.replace(C.tabCharGlobal, " ").replace(C.spaceLine, "")); e;) {
896
- var r, i;
897
- let a;
898
- if (!((r = this.options.extensions) == null || (r = r.block) == null) && r.some((n) => (a = n.call({ lexer: this }, e, t)) ? (e = e.substring(a.raw.length), t.push(a), !0) : !1)) continue;
899
- if (a = this.tokenizer.space(e)) {
900
- e = e.substring(a.raw.length);
901
- let n = t.at(-1);
902
- a.raw.length === 1 && n !== void 0 ? n.raw += "\n" : t.push(a);
903
- continue;
904
- }
905
- if (a = this.tokenizer.code(e)) {
906
- e = e.substring(a.raw.length);
907
- let n = t.at(-1);
908
- (n == null ? void 0 : n.type) === "paragraph" || (n == null ? void 0 : n.type) === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + a.raw, n.text += "\n" + a.text, this.inlineQueue.at(-1).src = n.text) : t.push(a);
909
- continue;
910
- }
911
- if (a = this.tokenizer.fences(e)) {
912
- e = e.substring(a.raw.length), t.push(a);
913
- continue;
914
- }
915
- if (a = this.tokenizer.heading(e)) {
916
- e = e.substring(a.raw.length), t.push(a);
917
- continue;
918
- }
919
- if (a = this.tokenizer.hr(e)) {
920
- e = e.substring(a.raw.length), t.push(a);
921
- continue;
922
- }
923
- if (a = this.tokenizer.blockquote(e)) {
924
- e = e.substring(a.raw.length), t.push(a);
925
- continue;
926
- }
927
- if (a = this.tokenizer.list(e)) {
928
- e = e.substring(a.raw.length), t.push(a);
929
- continue;
930
- }
931
- if (a = this.tokenizer.html(e)) {
932
- e = e.substring(a.raw.length), t.push(a);
933
- continue;
934
- }
935
- if (a = this.tokenizer.def(e)) {
936
- e = e.substring(a.raw.length);
937
- let n = t.at(-1);
938
- (n == null ? void 0 : n.type) === "paragraph" || (n == null ? void 0 : n.type) === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + a.raw, n.text += "\n" + a.raw, this.inlineQueue.at(-1).src = n.text) : this.tokens.links[a.tag] || (this.tokens.links[a.tag] = {
939
- href: a.href,
940
- title: a.title
941
- }, t.push(a));
942
- continue;
943
- }
944
- if (a = this.tokenizer.table(e)) {
945
- e = e.substring(a.raw.length), t.push(a);
946
- continue;
947
- }
948
- if (a = this.tokenizer.lheading(e)) {
949
- e = e.substring(a.raw.length), t.push(a);
950
- continue;
951
- }
952
- let o = e;
953
- if ((i = this.options.extensions) != null && i.startBlock) {
954
- let t = Infinity, n = e.slice(1), r;
955
- this.options.extensions.startBlock.forEach((e) => {
956
- r = e.call({ lexer: this }, n), typeof r == "number" && r >= 0 && (t = Math.min(t, r));
957
- }), t < Infinity && t >= 0 && (o = e.substring(0, t + 1));
958
- }
959
- if (this.state.top && (a = this.tokenizer.paragraph(o))) {
960
- let r = t.at(-1);
961
- n && (r == null ? void 0 : r.type) === "paragraph" ? (r.raw += (r.raw.endsWith("\n") ? "" : "\n") + a.raw, r.text += "\n" + a.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = r.text) : t.push(a), n = o.length !== e.length, e = e.substring(a.raw.length);
962
- continue;
963
- }
964
- if (a = this.tokenizer.text(e)) {
965
- e = e.substring(a.raw.length);
966
- let n = t.at(-1);
967
- (n == null ? void 0 : n.type) === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + a.raw, n.text += "\n" + a.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = n.text) : t.push(a);
968
- continue;
969
- }
970
- if (e) {
971
- let t = "Infinite loop on byte: " + e.charCodeAt(0);
972
- if (this.options.silent) {
973
- console.error(t);
974
- break;
975
- } else throw Error(t);
976
- }
977
- }
978
- return this.state.top = !0, t;
979
- }
980
- inline(e, t = []) {
981
- return this.inlineQueue.push({
982
- src: e,
983
- tokens: t
984
- }), t;
985
- }
986
- inlineTokens(e, t = []) {
987
- var n, r;
988
- let i = e, a = null;
989
- if (this.tokens.links) {
990
- let e = Object.keys(this.tokens.links);
991
- if (e.length > 0) for (; (a = this.tokenizer.rules.inline.reflinkSearch.exec(i)) != null;) e.includes(a[0].slice(a[0].lastIndexOf("[") + 1, -1)) && (i = i.slice(0, a.index) + "[" + "a".repeat(a[0].length - 2) + "]" + i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
992
- }
993
- for (; (a = this.tokenizer.rules.inline.anyPunctuation.exec(i)) != null;) i = i.slice(0, a.index) + "++" + i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
994
- let o;
995
- for (; (a = this.tokenizer.rules.inline.blockSkip.exec(i)) != null;) o = a[2] ? a[2].length : 0, i = i.slice(0, a.index + o) + "[" + "a".repeat(a[0].length - o - 2) + "]" + i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
996
- i = (n = (r = this.options.hooks) == null || (r = r.emStrongMask) == null ? void 0 : r.call({ lexer: this }, i)) == null ? i : n;
997
- let s = !1, c = "";
998
- for (; e;) {
999
- var l, u;
1000
- s || (c = ""), s = !1;
1001
- let n;
1002
- if (!((l = this.options.extensions) == null || (l = l.inline) == null) && l.some((r) => (n = r.call({ lexer: this }, e, t)) ? (e = e.substring(n.raw.length), t.push(n), !0) : !1)) continue;
1003
- if (n = this.tokenizer.escape(e)) {
1004
- e = e.substring(n.raw.length), t.push(n);
1005
- continue;
1006
- }
1007
- if (n = this.tokenizer.tag(e)) {
1008
- e = e.substring(n.raw.length), t.push(n);
1009
- continue;
1010
- }
1011
- if (n = this.tokenizer.link(e)) {
1012
- e = e.substring(n.raw.length), t.push(n);
1013
- continue;
1014
- }
1015
- if (n = this.tokenizer.reflink(e, this.tokens.links)) {
1016
- e = e.substring(n.raw.length);
1017
- let r = t.at(-1);
1018
- n.type === "text" && (r == null ? void 0 : r.type) === "text" ? (r.raw += n.raw, r.text += n.text) : t.push(n);
1019
- continue;
1020
- }
1021
- if (n = this.tokenizer.emStrong(e, i, c)) {
1022
- e = e.substring(n.raw.length), t.push(n);
1023
- continue;
1024
- }
1025
- if (n = this.tokenizer.codespan(e)) {
1026
- e = e.substring(n.raw.length), t.push(n);
1027
- continue;
1028
- }
1029
- if (n = this.tokenizer.br(e)) {
1030
- e = e.substring(n.raw.length), t.push(n);
1031
- continue;
1032
- }
1033
- if (n = this.tokenizer.del(e)) {
1034
- e = e.substring(n.raw.length), t.push(n);
1035
- continue;
1036
- }
1037
- if (n = this.tokenizer.autolink(e)) {
1038
- e = e.substring(n.raw.length), t.push(n);
1039
- continue;
1040
- }
1041
- if (!this.state.inLink && (n = this.tokenizer.url(e))) {
1042
- e = e.substring(n.raw.length), t.push(n);
1043
- continue;
1044
- }
1045
- let r = e;
1046
- if ((u = this.options.extensions) != null && u.startInline) {
1047
- let t = Infinity, n = e.slice(1), i;
1048
- this.options.extensions.startInline.forEach((e) => {
1049
- i = e.call({ lexer: this }, n), typeof i == "number" && i >= 0 && (t = Math.min(t, i));
1050
- }), t < Infinity && t >= 0 && (r = e.substring(0, t + 1));
1051
- }
1052
- if (n = this.tokenizer.inlineText(r)) {
1053
- e = e.substring(n.raw.length), n.raw.slice(-1) !== "_" && (c = n.raw.slice(-1)), s = !0;
1054
- let r = t.at(-1);
1055
- (r == null ? void 0 : r.type) === "text" ? (r.raw += n.raw, r.text += n.text) : t.push(n);
1056
- continue;
1057
- }
1058
- if (e) {
1059
- let t = "Infinite loop on byte: " + e.charCodeAt(0);
1060
- if (this.options.silent) {
1061
- console.error(t);
1062
- break;
1063
- } else throw Error(t);
1064
- }
1065
- }
1066
- return t;
1067
- }
1068
- }, H = class {
1069
- constructor(t) {
1070
- e(this, "options", void 0), e(this, "parser", void 0), this.options = t || b;
1071
- }
1072
- space(e) {
1073
- return "";
1074
- }
1075
- code({ text: e, lang: t, escaped: n }) {
1076
- var r;
1077
- let i = (r = (t || "").match(C.notSpaceStart)) == null ? void 0 : r[0], a = e.replace(C.endingNewline, "") + "\n";
1078
- return i ? "<pre><code class=\"language-" + R(i) + "\">" + (n ? a : R(a, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? a : R(a, !0)) + "</code></pre>\n";
1079
- }
1080
- blockquote({ tokens: e }) {
1081
- return `<blockquote>
1082
- ${this.parser.parse(e)}</blockquote>
1083
- `;
1084
- }
1085
- html({ text: e }) {
1086
- return e;
1087
- }
1088
- def(e) {
1089
- return "";
1090
- }
1091
- heading({ tokens: e, depth: t }) {
1092
- return `<h${t}>${this.parser.parseInline(e)}</h${t}>
1093
- `;
1094
- }
1095
- hr(e) {
1096
- return "<hr>\n";
1097
- }
1098
- list(e) {
1099
- let t = e.ordered, n = e.start, r = "";
1100
- for (let t = 0; t < e.items.length; t++) {
1101
- let n = e.items[t];
1102
- r += this.listitem(n);
1103
- }
1104
- let i = t ? "ol" : "ul", a = t && n !== 1 ? " start=\"" + n + "\"" : "";
1105
- return "<" + i + a + ">\n" + r + "</" + i + ">\n";
1106
- }
1107
- listitem(e) {
1108
- let t = "";
1109
- if (e.task) {
1110
- var n;
1111
- let r = this.checkbox({ checked: !!e.checked });
1112
- e.loose ? ((n = e.tokens[0]) == null ? void 0 : n.type) === "paragraph" ? (e.tokens[0].text = r + " " + e.tokens[0].text, e.tokens[0].tokens && e.tokens[0].tokens.length > 0 && e.tokens[0].tokens[0].type === "text" && (e.tokens[0].tokens[0].text = r + " " + R(e.tokens[0].tokens[0].text), e.tokens[0].tokens[0].escaped = !0)) : e.tokens.unshift({
1113
- type: "text",
1114
- raw: r + " ",
1115
- text: r + " ",
1116
- escaped: !0
1117
- }) : t += r + " ";
1118
- }
1119
- return t += this.parser.parse(e.tokens, !!e.loose), `<li>${t}</li>
1120
- `;
1121
- }
1122
- checkbox({ checked: e }) {
1123
- return "<input " + (e ? "checked=\"\" " : "") + "disabled=\"\" type=\"checkbox\">";
1124
- }
1125
- paragraph({ tokens: e }) {
1126
- return `<p>${this.parser.parseInline(e)}</p>
1127
- `;
1128
- }
1129
- table(e) {
1130
- let t = "", n = "";
1131
- for (let t = 0; t < e.header.length; t++) n += this.tablecell(e.header[t]);
1132
- t += this.tablerow({ text: n });
1133
- let r = "";
1134
- for (let t = 0; t < e.rows.length; t++) {
1135
- let i = e.rows[t];
1136
- n = "";
1137
- for (let e = 0; e < i.length; e++) n += this.tablecell(i[e]);
1138
- r += this.tablerow({ text: n });
1139
- }
1140
- return r && (r = `<tbody>${r}</tbody>`), "<table>\n<thead>\n" + t + "</thead>\n" + r + "</table>\n";
1141
- }
1142
- tablerow({ text: e }) {
1143
- return `<tr>
1144
- ${e}</tr>
1145
- `;
1146
- }
1147
- tablecell(e) {
1148
- let t = this.parser.parseInline(e.tokens), n = e.header ? "th" : "td";
1149
- return (e.align ? `<${n} align="${e.align}">` : `<${n}>`) + t + `</${n}>
1150
- `;
1151
- }
1152
- strong({ tokens: e }) {
1153
- return `<strong>${this.parser.parseInline(e)}</strong>`;
1154
- }
1155
- em({ tokens: e }) {
1156
- return `<em>${this.parser.parseInline(e)}</em>`;
1157
- }
1158
- codespan({ text: e }) {
1159
- return `<code>${R(e, !0)}</code>`;
1160
- }
1161
- br(e) {
1162
- return "<br>";
1163
- }
1164
- del({ tokens: e }) {
1165
- return `<del>${this.parser.parseInline(e)}</del>`;
1166
- }
1167
- link({ href: e, title: t, tokens: n }) {
1168
- let r = this.parser.parseInline(n), i = ft(e);
1169
- if (i === null) return r;
1170
- e = i;
1171
- let a = "<a href=\"" + e + "\"";
1172
- return t && (a += " title=\"" + R(t) + "\""), a += ">" + r + "</a>", a;
1173
- }
1174
- image({ href: e, title: t, text: n, tokens: r }) {
1175
- r && (n = this.parser.parseInline(r, this.parser.textRenderer));
1176
- let i = ft(e);
1177
- if (i === null) return R(n);
1178
- e = i;
1179
- let a = `<img src="${e}" alt="${n}"`;
1180
- return t && (a += ` title="${R(t)}"`), a += ">", a;
1181
- }
1182
- text(e) {
1183
- return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : R(e.text);
1184
- }
1185
- }, U = class {
1186
- strong({ text: e }) {
1187
- return e;
1188
- }
1189
- em({ text: e }) {
1190
- return e;
1191
- }
1192
- codespan({ text: e }) {
1193
- return e;
1194
- }
1195
- del({ text: e }) {
1196
- return e;
1197
- }
1198
- html({ text: e }) {
1199
- return e;
1200
- }
1201
- text({ text: e }) {
1202
- return e;
1203
- }
1204
- link({ text: e }) {
1205
- return "" + e;
1206
- }
1207
- image({ text: e }) {
1208
- return "" + e;
1209
- }
1210
- br() {
1211
- return "";
1212
- }
1213
- }, W = class t {
1214
- constructor(t) {
1215
- e(this, "options", void 0), e(this, "renderer", void 0), e(this, "textRenderer", void 0), this.options = t || b, this.options.renderer = this.options.renderer || new H(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new U();
1216
- }
1217
- static parse(e, n) {
1218
- return new t(n).parse(e);
1219
- }
1220
- static parseInline(e, n) {
1221
- return new t(n).parseInline(e);
1222
- }
1223
- parse(e, t = !0) {
1224
- let n = "";
1225
- for (let i = 0; i < e.length; i++) {
1226
- var r;
1227
- let a = e[i];
1228
- if (!((r = this.options.extensions) == null || (r = r.renderers) == null) && r[a.type]) {
1229
- let e = a, t = this.options.extensions.renderers[e.type].call({ parser: this }, e);
1230
- if (t !== !1 || ![
1231
- "space",
1232
- "hr",
1233
- "heading",
1234
- "code",
1235
- "table",
1236
- "blockquote",
1237
- "list",
1238
- "html",
1239
- "def",
1240
- "paragraph",
1241
- "text"
1242
- ].includes(e.type)) {
1243
- n += t || "";
1244
- continue;
1245
- }
1246
- }
1247
- let o = a;
1248
- switch (o.type) {
1249
- case "space":
1250
- n += this.renderer.space(o);
1251
- continue;
1252
- case "hr":
1253
- n += this.renderer.hr(o);
1254
- continue;
1255
- case "heading":
1256
- n += this.renderer.heading(o);
1257
- continue;
1258
- case "code":
1259
- n += this.renderer.code(o);
1260
- continue;
1261
- case "table":
1262
- n += this.renderer.table(o);
1263
- continue;
1264
- case "blockquote":
1265
- n += this.renderer.blockquote(o);
1266
- continue;
1267
- case "list":
1268
- n += this.renderer.list(o);
1269
- continue;
1270
- case "html":
1271
- n += this.renderer.html(o);
1272
- continue;
1273
- case "def":
1274
- n += this.renderer.def(o);
1275
- continue;
1276
- case "paragraph":
1277
- n += this.renderer.paragraph(o);
1278
- continue;
1279
- case "text": {
1280
- let r = o, a = this.renderer.text(r);
1281
- for (; i + 1 < e.length && e[i + 1].type === "text";) r = e[++i], a += "\n" + this.renderer.text(r);
1282
- t ? n += this.renderer.paragraph({
1283
- type: "paragraph",
1284
- raw: a,
1285
- text: a,
1286
- tokens: [{
1287
- type: "text",
1288
- raw: a,
1289
- text: a,
1290
- escaped: !0
1291
- }]
1292
- }) : n += a;
1293
- continue;
1294
- }
1295
- default: {
1296
- let e = "Token with \"" + o.type + "\" type was not found.";
1297
- if (this.options.silent) return console.error(e), "";
1298
- throw Error(e);
1299
- }
1300
- }
1301
- }
1302
- return n;
1303
- }
1304
- parseInline(e, t = this.renderer) {
1305
- let n = "";
1306
- for (let i = 0; i < e.length; i++) {
1307
- var r;
1308
- let a = e[i];
1309
- if (!((r = this.options.extensions) == null || (r = r.renderers) == null) && r[a.type]) {
1310
- let e = this.options.extensions.renderers[a.type].call({ parser: this }, a);
1311
- if (e !== !1 || ![
1312
- "escape",
1313
- "html",
1314
- "link",
1315
- "image",
1316
- "strong",
1317
- "em",
1318
- "codespan",
1319
- "br",
1320
- "del",
1321
- "text"
1322
- ].includes(a.type)) {
1323
- n += e || "";
1324
- continue;
1325
- }
1326
- }
1327
- let o = a;
1328
- switch (o.type) {
1329
- case "escape":
1330
- n += t.text(o);
1331
- break;
1332
- case "html":
1333
- n += t.html(o);
1334
- break;
1335
- case "link":
1336
- n += t.link(o);
1337
- break;
1338
- case "image":
1339
- n += t.image(o);
1340
- break;
1341
- case "strong":
1342
- n += t.strong(o);
1343
- break;
1344
- case "em":
1345
- n += t.em(o);
1346
- break;
1347
- case "codespan":
1348
- n += t.codespan(o);
1349
- break;
1350
- case "br":
1351
- n += t.br(o);
1352
- break;
1353
- case "del":
1354
- n += t.del(o);
1355
- break;
1356
- case "text":
1357
- n += t.text(o);
1358
- break;
1359
- default: {
1360
- let e = "Token with \"" + o.type + "\" type was not found.";
1361
- if (this.options.silent) return console.error(e), "";
1362
- throw Error(e);
1363
- }
1364
- }
1365
- }
1366
- return n;
1367
- }
1368
- }, G = (v = class {
1369
- constructor(t) {
1370
- e(this, "options", void 0), e(this, "block", void 0), this.options = t || b;
1371
- }
1372
- preprocess(e) {
1373
- return e;
1374
- }
1375
- postprocess(e) {
1376
- return e;
1377
- }
1378
- processAllTokens(e) {
1379
- return e;
1380
- }
1381
- emStrongMask(e) {
1382
- return e;
1383
- }
1384
- provideLexer() {
1385
- return this.block ? V.lex : V.lexInline;
1386
- }
1387
- provideParser() {
1388
- return this.block ? W.parse : W.parseInline;
1389
- }
1390
- }, e(v, "passThroughHooks", new Set([
1391
- "preprocess",
1392
- "postprocess",
1393
- "processAllTokens",
1394
- "emStrongMask"
1395
- ])), e(v, "passThroughHooksRespectAsync", new Set([
1396
- "preprocess",
1397
- "postprocess",
1398
- "processAllTokens"
1399
- ])), v), K = new class {
1400
- constructor(...t) {
1401
- e(this, "defaults", y()), e(this, "options", this.setOptions), e(this, "parse", this.parseMarkdown(!0)), e(this, "parseInline", this.parseMarkdown(!1)), e(this, "Parser", W), e(this, "Renderer", H), e(this, "TextRenderer", U), e(this, "Lexer", V), e(this, "Tokenizer", B), e(this, "Hooks", G), this.use(...t);
1402
- }
1403
- walkTokens(e, t) {
1404
- let n = [];
1405
- for (let i of e) switch (n = n.concat(t.call(this, i)), i.type) {
1406
- case "table": {
1407
- let e = i;
1408
- for (let r of e.header) n = n.concat(this.walkTokens(r.tokens, t));
1409
- for (let r of e.rows) for (let e of r) n = n.concat(this.walkTokens(e.tokens, t));
1410
- break;
1411
- }
1412
- case "list": {
1413
- let e = i;
1414
- n = n.concat(this.walkTokens(e.items, t));
1415
- break;
1416
- }
1417
- default: {
1418
- var r;
1419
- let e = i;
1420
- !((r = this.defaults.extensions) == null || (r = r.childTokens) == null) && r[e.type] ? this.defaults.extensions.childTokens[e.type].forEach((r) => {
1421
- let i = e[r].flat(Infinity);
1422
- n = n.concat(this.walkTokens(i, t));
1423
- }) : e.tokens && (n = n.concat(this.walkTokens(e.tokens, t)));
1424
- }
1425
- }
1426
- return n;
1427
- }
1428
- use(...e) {
1429
- let n = this.defaults.extensions || {
1430
- renderers: {},
1431
- childTokens: {}
1432
- };
1433
- return e.forEach((e) => {
1434
- let r = t({}, e);
1435
- if (r.async = this.defaults.async || r.async || !1, e.extensions && (e.extensions.forEach((e) => {
1436
- if (!e.name) throw Error("extension name required");
1437
- if ("renderer" in e) {
1438
- let t = n.renderers[e.name];
1439
- t ? n.renderers[e.name] = function(...n) {
1440
- let r = e.renderer.apply(this, n);
1441
- return r === !1 && (r = t.apply(this, n)), r;
1442
- } : n.renderers[e.name] = e.renderer;
1443
- }
1444
- if ("tokenizer" in e) {
1445
- if (!e.level || e.level !== "block" && e.level !== "inline") throw Error("extension level must be 'block' or 'inline'");
1446
- let t = n[e.level];
1447
- t ? t.unshift(e.tokenizer) : n[e.level] = [e.tokenizer], e.start && (e.level === "block" ? n.startBlock ? n.startBlock.push(e.start) : n.startBlock = [e.start] : e.level === "inline" && (n.startInline ? n.startInline.push(e.start) : n.startInline = [e.start]));
1448
- }
1449
- "childTokens" in e && e.childTokens && (n.childTokens[e.name] = e.childTokens);
1450
- }), r.extensions = n), e.renderer) {
1451
- let t = this.defaults.renderer || new H(this.defaults);
1452
- for (let n in e.renderer) {
1453
- if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
1454
- if (["options", "parser"].includes(n)) continue;
1455
- let r = n, i = e.renderer[r], a = t[r];
1456
- t[r] = (...e) => {
1457
- let n = i.apply(t, e);
1458
- return n === !1 && (n = a.apply(t, e)), n || "";
1459
- };
1460
- }
1461
- r.renderer = t;
1462
- }
1463
- if (e.tokenizer) {
1464
- let t = this.defaults.tokenizer || new B(this.defaults);
1465
- for (let n in e.tokenizer) {
1466
- if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
1467
- if ([
1468
- "options",
1469
- "rules",
1470
- "lexer"
1471
- ].includes(n)) continue;
1472
- let r = n, i = e.tokenizer[r], a = t[r];
1473
- t[r] = (...e) => {
1474
- let n = i.apply(t, e);
1475
- return n === !1 && (n = a.apply(t, e)), n;
1476
- };
1477
- }
1478
- r.tokenizer = t;
1479
- }
1480
- if (e.hooks) {
1481
- let t = this.defaults.hooks || new G();
1482
- for (let n in e.hooks) {
1483
- if (!(n in t)) throw Error(`hook '${n}' does not exist`);
1484
- if (["options", "block"].includes(n)) continue;
1485
- let r = n, i = e.hooks[r], a = t[r];
1486
- G.passThroughHooks.has(n) ? t[r] = (e) => {
1487
- if (this.defaults.async && G.passThroughHooksRespectAsync.has(n)) return (async () => {
1488
- let n = await i.call(t, e);
1489
- return a.call(t, n);
1490
- })();
1491
- let r = i.call(t, e);
1492
- return a.call(t, r);
1493
- } : t[r] = (...e) => {
1494
- if (this.defaults.async) return (async () => {
1495
- let n = await i.apply(t, e);
1496
- return n === !1 && (n = await a.apply(t, e)), n;
1497
- })();
1498
- let n = i.apply(t, e);
1499
- return n === !1 && (n = a.apply(t, e)), n;
1500
- };
1501
- }
1502
- r.hooks = t;
1503
- }
1504
- if (e.walkTokens) {
1505
- let t = this.defaults.walkTokens, n = e.walkTokens;
1506
- r.walkTokens = function(e) {
1507
- let r = [];
1508
- return r.push(n.call(this, e)), t && (r = r.concat(t.call(this, e))), r;
1509
- };
1510
- }
1511
- this.defaults = t(t({}, this.defaults), r);
1512
- }), this;
1513
- }
1514
- setOptions(e) {
1515
- return this.defaults = t(t({}, this.defaults), e), this;
1516
- }
1517
- lexer(e, t) {
1518
- return V.lex(e, t == null ? this.defaults : t);
1519
- }
1520
- parser(e, t) {
1521
- return W.parse(e, t == null ? this.defaults : t);
1522
- }
1523
- parseMarkdown(e) {
1524
- var n = this;
1525
- return (r, i) => {
1526
- let a = t({}, i), o = t(t({}, this.defaults), a), s = this.onError(!!o.silent, !!o.async);
1527
- if (this.defaults.async === !0 && a.async === !1) return s(/* @__PURE__ */ Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
1528
- if (typeof r > "u" || r === null) return s(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
1529
- if (typeof r != "string") return s(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(r) + ", string expected"));
1530
- if (o.hooks && (o.hooks.options = o, o.hooks.block = e), o.async) return (async () => {
1531
- let t = o.hooks ? await o.hooks.preprocess(r) : r, i = await (o.hooks ? await o.hooks.provideLexer() : e ? V.lex : V.lexInline)(t, o), a = o.hooks ? await o.hooks.processAllTokens(i) : i;
1532
- o.walkTokens && await Promise.all(n.walkTokens(a, o.walkTokens));
1533
- let s = await (o.hooks ? await o.hooks.provideParser() : e ? W.parse : W.parseInline)(a, o);
1534
- return o.hooks ? await o.hooks.postprocess(s) : s;
1535
- })().catch(s);
1536
- try {
1537
- o.hooks && (r = o.hooks.preprocess(r));
1538
- let t = (o.hooks ? o.hooks.provideLexer() : e ? V.lex : V.lexInline)(r, o);
1539
- o.hooks && (t = o.hooks.processAllTokens(t)), o.walkTokens && this.walkTokens(t, o.walkTokens);
1540
- let n = (o.hooks ? o.hooks.provideParser() : e ? W.parse : W.parseInline)(t, o);
1541
- return o.hooks && (n = o.hooks.postprocess(n)), n;
1542
- } catch (e) {
1543
- return s(e);
1544
- }
1545
- };
1546
- }
1547
- onError(e, t) {
1548
- return (n) => {
1549
- if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
1550
- let e = "<p>An error occurred:</p><pre>" + R(n.message + "", !0) + "</pre>";
1551
- return t ? Promise.resolve(e) : e;
1552
- }
1553
- if (t) return Promise.reject(n);
1554
- throw n;
1555
- };
1556
- }
1557
- }();
1558
- function q(e, t) {
1559
- return K.parse(e, t);
1560
- }
1561
- q.options = q.setOptions = function(e) {
1562
- return K.setOptions(e), q.defaults = K.defaults, ye(q.defaults), q;
1563
- }, q.getDefaults = y, q.defaults = b, q.use = function(...e) {
1564
- return K.use(...e), q.defaults = K.defaults, ye(q.defaults), q;
1565
- }, q.walkTokens = function(e, t) {
1566
- return K.walkTokens(e, t);
1567
- }, q.parseInline = K.parseInline, q.Parser = W, q.parser = W.parse, q.Renderer = H, q.TextRenderer = U, q.Lexer = V, q.lexer = V.lex, q.Tokenizer = B, q.Hooks = G, q.parse = q, q.options, q.setOptions, q.use, q.walkTokens, q.parseInline, W.parse, V.lex;
1568
- //#endregion
1569
- //#region node_modules/ts-dedent/esm/index.js
1570
- function _t(e) {
1571
- var t = [...arguments].slice(1), n = Array.from(typeof e == "string" ? [e] : e);
1572
- n[n.length - 1] = n[n.length - 1].replace(/\r?\n([\t ]*)$/, "");
1573
- var r = n.reduce(function(e, t) {
1574
- var n = t.match(/\n([\t ]+|(?!\s).)/g);
1575
- return n ? e.concat(n.map(function(e) {
1576
- var t, n;
1577
- return (n = (t = e.match(/[\t ]/g)) == null ? void 0 : t.length) == null ? 0 : n;
1578
- })) : e;
1579
- }, []);
1580
- if (r.length) {
1581
- var i = RegExp("\n[ ]{" + Math.min.apply(Math, r) + "}", "g");
1582
- n = n.map(function(e) {
1583
- return e.replace(i, "\n");
1584
- });
1585
- }
1586
- n[0] = n[0].replace(/^\r?\n/, "");
1587
- var a = n[0];
1588
- return t.forEach(function(e, t) {
1589
- var r = a.match(/(?:^|\n)( *)$/), i = r ? r[1] : "", o = e;
1590
- typeof e == "string" && e.includes("\n") && (o = String(e).split("\n").map(function(e, t) {
1591
- return t === 0 ? e : "" + i + e;
1592
- }).join("\n")), a += o + n[t + 1];
1593
- }), a;
1594
- }
1595
- //#endregion
1596
- //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-U2HBQHQK.mjs
1597
- var vt = {
1598
- body: "<g><rect width=\"80\" height=\"80\" style=\"fill: #087ebf; stroke-width: 0px;\"/><text transform=\"translate(21.16 64.67)\" style=\"fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;\"><tspan x=\"0\" y=\"0\">?</tspan></text></g>",
1599
- height: 80,
1600
- width: 80
1601
- }, J = /* @__PURE__ */ new Map(), yt = /* @__PURE__ */ new Map(), bt = /* @__PURE__ */ i((e) => {
1602
- for (let t of e) {
1603
- if (!t.name) throw Error("Invalid icon loader. Must have a \"name\" property with non-empty string value.");
1604
- if (r.debug("Registering icon pack:", t.name), "loader" in t) yt.set(t.name, t.loader);
1605
- else if ("icons" in t) J.set(t.name, t.icons);
1606
- else throw r.error("Invalid icon loader:", t), Error("Invalid icon loader. Must have either \"icons\" or \"loader\" property.");
1607
- }
1608
- }, "registerIconPacks"), xt = /* @__PURE__ */ i(async (e, n) => {
1609
- let i = ee(e, !0, n !== void 0);
1610
- if (!i) throw Error(`Invalid icon name: ${e}`);
1611
- let a = i.prefix || n;
1612
- if (!a) throw Error(`Icon name must contain a prefix: ${e}`);
1613
- let o = J.get(a);
1614
- if (!o) {
1615
- let e = yt.get(a);
1616
- if (!e) throw Error(`Icon set not found: ${i.prefix}`);
1617
- try {
1618
- o = t(t({}, await e()), {}, { prefix: a }), J.set(a, o);
1619
- } catch (e) {
1620
- throw r.error(e), Error(`Failed to load icon set: ${i.prefix}`);
1621
- }
1622
- }
1623
- let s = ae(o, i.name);
1624
- if (!s) throw Error(`Icon not found: ${e}`);
1625
- return s;
1626
- }, "getRegisteredIconData"), St = /* @__PURE__ */ i(async (e) => {
1627
- try {
1628
- return await xt(e), !0;
1629
- } catch (e) {
1630
- return !1;
1631
- }
1632
- }, "isIconAvailable"), Ct = /* @__PURE__ */ i(async (e, n, i) => {
1633
- let a;
1634
- try {
1635
- a = await xt(e, n == null ? void 0 : n.fallbackPrefix);
1636
- } catch (e) {
1637
- r.error(e), a = vt;
1638
- }
1639
- let s = pe(a, n);
1640
- return o(ve(_e(s.body), t(t({}, s.attributes), i)), u());
1641
- }, "getIconSVG");
1642
- function wt(e, { markdownAutoWrap: t }) {
1643
- return _t(e.replace(/<br\/>/g, "\n").replace(/\n{2,}/g, "\n"));
1644
- }
1645
- i(wt, "preprocessMarkdown");
1646
- function Tt(e) {
1647
- return e.split(/\\n|\n|<br\s*\/?>/gi).map((e) => {
1648
- var t, n;
1649
- return (t = (n = e.trim().match(/<[^>]+>|[^\s<>]+/g)) == null ? void 0 : n.map((e) => ({
1650
- content: e,
1651
- type: "normal"
1652
- }))) == null ? [] : t;
1653
- });
1654
- }
1655
- i(Tt, "nonMarkdownToLines");
1656
- function Et(e, t = {}) {
1657
- let n = wt(e, t), r = q.lexer(n), a = [[]], o = 0;
1658
- function s(e, t = "normal") {
1659
- e.type === "text" ? e.text.split("\n").forEach((e, n) => {
1660
- n !== 0 && (o++, a.push([])), e.split(" ").forEach((e) => {
1661
- e = e.replace(/&#39;/g, "'"), e && a[o].push({
1662
- content: e,
1663
- type: t
1664
- });
1665
- });
1666
- }) : e.type === "strong" || e.type === "em" ? e.tokens.forEach((t) => {
1667
- s(t, e.type);
1668
- }) : e.type === "html" && a[o].push({
1669
- content: e.text,
1670
- type: "normal"
1671
- });
1672
- }
1673
- return i(s, "processNode"), r.forEach((e) => {
1674
- if (e.type === "paragraph") {
1675
- var t;
1676
- (t = e.tokens) == null || t.forEach((e) => {
1677
- s(e);
1678
- });
1679
- } else e.type === "html" ? a[o].push({
1680
- content: e.text,
1681
- type: "normal"
1682
- }) : a[o].push({
1683
- content: e.raw,
1684
- type: "normal"
1685
- });
1686
- }), a;
1687
- }
1688
- i(Et, "markdownToLines");
1689
- function Dt(e) {
1690
- return e ? `<p>${e.replace(/\\n|\n/g, "<br />")}</p>` : "";
1691
- }
1692
- i(Dt, "nonMarkdownToHTML");
1693
- function Ot(e, { markdownAutoWrap: t } = {}) {
1694
- let n = q.lexer(e);
1695
- function a(e) {
1696
- if (e.type === "text") return t === !1 ? e.text.replace(/\n */g, "<br/>").replace(/ /g, "&nbsp;") : e.text.replace(/\n */g, "<br/>");
1697
- if (e.type === "strong") {
1698
- var n;
1699
- return `<strong>${(n = e.tokens) == null ? void 0 : n.map(a).join("")}</strong>`;
1700
- } else if (e.type === "em") {
1701
- var i;
1702
- return `<em>${(i = e.tokens) == null ? void 0 : i.map(a).join("")}</em>`;
1703
- } else if (e.type === "paragraph") {
1704
- var o;
1705
- return `<p>${(o = e.tokens) == null ? void 0 : o.map(a).join("")}</p>`;
1706
- } else if (e.type === "space") return "";
1707
- else if (e.type === "html") return `${e.text}`;
1708
- else if (e.type === "escape") return e.text;
1709
- return r.warn(`Unsupported markdown: ${e.type}`), e.raw;
1710
- }
1711
- return i(a, "output"), n.map(a).join("");
1712
- }
1713
- i(Ot, "markdownToHTML");
1714
- function kt(e) {
1715
- return Intl.Segmenter ? [...new Intl.Segmenter().segment(e)].map((e) => e.segment) : [...e];
1716
- }
1717
- i(kt, "splitTextToChars");
1718
- function At(e, t) {
1719
- return Y(e, [], kt(t.content), t.type);
1720
- }
1721
- i(At, "splitWordToFitWidth");
1722
- function Y(e, t, n, r) {
1723
- if (n.length === 0) return [{
1724
- content: t.join(""),
1725
- type: r
1726
- }, {
1727
- content: "",
1728
- type: r
1729
- }];
1730
- let [i, ...a] = n, o = [...t, i];
1731
- return e([{
1732
- content: o.join(""),
1733
- type: r
1734
- }]) ? Y(e, o, a, r) : (t.length === 0 && i && (t.push(i), n.shift()), [{
1735
- content: t.join(""),
1736
- type: r
1737
- }, {
1738
- content: n.join(""),
1739
- type: r
1740
- }]);
1741
- }
1742
- i(Y, "splitWordToFitWidthRecursion");
1743
- function jt(e, t) {
1744
- if (e.some(({ content: e }) => e.includes("\n"))) throw Error("splitLineToFitWidth does not support newlines in the line");
1745
- return X(e, t);
1746
- }
1747
- i(jt, "splitLineToFitWidth");
1748
- function X(e, t, n = [], r = []) {
1749
- var i;
1750
- if (e.length === 0) return r.length > 0 && n.push(r), n.length > 0 ? n : [];
1751
- let a = "";
1752
- e[0].content === " " && (a = " ", e.shift());
1753
- let o = (i = e.shift()) == null ? {
1754
- content: " ",
1755
- type: "normal"
1756
- } : i, s = [...r];
1757
- if (a !== "" && s.push({
1758
- content: a,
1759
- type: "normal"
1760
- }), s.push(o), t(s)) return X(e, t, n, s);
1761
- if (r.length > 0) n.push(r), e.unshift(o);
1762
- else if (o.content) {
1763
- let [r, i] = At(t, o);
1764
- n.push([r]), i.content && e.unshift(i);
1765
- }
1766
- return X(e, t, n);
1767
- }
1768
- i(X, "splitLineToFitWidthRecursion");
1769
- function Z(e, t) {
1770
- t && e.attr("style", t);
1771
- }
1772
- i(Z, "applyStyle");
1773
- var Mt = 16384;
1774
- async function Nt(e, t, n, r, i = !1, a = u()) {
1775
- let d = e.append("foreignObject");
1776
- d.attr("width", `${Math.min(10 * n, Mt)}px`), d.attr("height", `${Math.min(10 * n, Mt)}px`);
1777
- let f = d.append("xhtml:div"), p = c(t.label) ? await s(t.label.replace(l.lineBreakRegex, "\n"), a) : o(t.label, a), m = t.isNode ? "nodeLabel" : "edgeLabel", h = f.append("span");
1778
- h.html(p), Z(h, t.labelStyle), h.attr("class", `${m} ${r}`), Z(f, t.labelStyle), f.style("display", "table-cell"), f.style("white-space", "nowrap"), f.style("line-height", "1.5"), n !== Infinity && (f.style("max-width", n + "px"), f.style("text-align", "center")), f.attr("xmlns", "http://www.w3.org/1999/xhtml"), i && f.attr("class", "labelBkg");
1779
- let g = f.node().getBoundingClientRect();
1780
- return g.width === n && (f.style("display", "table"), f.style("white-space", "break-spaces"), f.style("width", n + "px"), g = f.node().getBoundingClientRect()), d.node();
1781
- }
1782
- i(Nt, "addHtmlSpan");
1783
- function Q(e, t, n, r = !1) {
1784
- let i = e.append("tspan").attr("class", "text-outer-tspan").attr("x", 0).attr("y", t * n - .1 + "em").attr("dy", n + "em");
1785
- return r && i.attr("text-anchor", "middle"), i;
1786
- }
1787
- i(Q, "createTspan");
1788
- function Pt(e, t, n) {
1789
- let r = e.append("text"), i = Q(r, 1, t);
1790
- $(i, n);
1791
- let a = i.node().getComputedTextLength();
1792
- return r.remove(), a;
1793
- }
1794
- i(Pt, "computeWidthOfText");
1795
- function Ft(e, t, n) {
1796
- var r;
1797
- let i = e.append("text"), a = Q(i, 1, t);
1798
- $(a, [{
1799
- content: n,
1800
- type: "normal"
1801
- }]);
1802
- let o = (r = a.node()) == null ? void 0 : r.getBoundingClientRect();
1803
- return o && i.remove(), o;
1804
- }
1805
- i(Ft, "computeDimensionOfText");
1806
- function It(e, t, n, r = !1, a = !1) {
1807
- let o = 1.1, s = t.append("g"), c = s.insert("rect").attr("class", "background").attr("style", "stroke: none"), l = s.append("text").attr("y", "-10.1");
1808
- a && l.attr("text-anchor", "middle");
1809
- let u = 0;
1810
- for (let t of n) {
1811
- let n = /* @__PURE__ */ i((t) => Pt(s, o, t) <= e, "checkWidth"), r = n(t) ? [t] : jt(t, n);
1812
- for (let e of r) $(Q(l, u, o, a), e), u++;
1813
- }
1814
- if (r) {
1815
- let e = l.node().getBBox();
1816
- return c.attr("x", e.x - 2).attr("y", e.y - 2).attr("width", e.width + 4).attr("height", e.height + 4), s.node();
1817
- } else return l.node();
1818
- }
1819
- i(It, "createFormattedText");
1820
- function Lt(e) {
1821
- return e.replace(/&(amp|lt|gt);/g, (e, t) => {
1822
- switch (t) {
1823
- case "amp": return "&";
1824
- case "lt": return "<";
1825
- case "gt": return ">";
1826
- default: return e;
1827
- }
1828
- });
1829
- }
1830
- i(Lt, "decodeHTMLEntities");
1831
- function $(e, t) {
1832
- e.text(""), t.forEach((t, n) => {
1833
- let r = e.append("tspan").attr("font-style", t.type === "em" ? "italic" : "normal").attr("class", "text-inner-tspan").attr("font-weight", t.type === "strong" ? "bold" : "normal");
1834
- n === 0 ? r.text(Lt(t.content)) : r.text(" " + Lt(t.content));
1835
- });
1836
- }
1837
- i($, "updateTextContentAndStyles");
1838
- async function Rt(e, t = {}) {
1839
- let n = [];
1840
- e.replace(/(fa[bklrs]?):fa-([\w-]+)/g, (e, r, i) => (n.push((async () => {
1841
- let n = `${r}:${i}`;
1842
- return await St(n) ? await Ct(n, void 0, { class: "label-icon" }) : `<i class='${o(e, t).replace(":", " ")}'></i>`;
1843
- })()), e));
1844
- let r = await Promise.all(n);
1845
- return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g, () => {
1846
- var e;
1847
- return (e = r.shift()) == null ? "" : e;
1848
- });
1849
- }
1850
- i(Rt, "replaceIconSubstring");
1851
- var zt = /* @__PURE__ */ i(async (e, t = "", { style: i = "", isTitle: o = !1, classes: s = "", useHtmlLabels: l = !0, markdown: u = !0, isNode: d = !0, width: f = 200, addSvgBackground: p = !1 } = {}, m) => {
1852
- if (r.debug("XYZ createText", t, i, o, s, l, d, "addSvgBackground: ", p), l) {
1853
- let r = await Rt(n(u ? Ot(t, m) : Dt(t)), m), a = t.replace(/\\\\/g, "\\");
1854
- return await Nt(e, {
1855
- isNode: d,
1856
- label: c(t) ? a : r,
1857
- labelStyle: i.replace("fill:", "color:")
1858
- }, f, s, p, m);
1859
- } else {
1860
- let r = n(t.replace(/<br\s*\/?>/g, "<br/>")), s = It(f, e, u ? Et(r.replace("<br>", "<br/>"), m) : Tt(r), t ? p : !1, !d);
1861
- if (d) {
1862
- /stroke:/.exec(i) && (i = i.replace("stroke:", "lineColor:"));
1863
- let e = i.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/color:/g, "fill:");
1864
- a(s).attr("style", e);
1865
- } else {
1866
- let e = i.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/background:/g, "fill:");
1867
- a(s).select("rect").attr("style", e.replace(/background:/g, "fill:"));
1868
- let t = i.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/color:/g, "fill:");
1869
- a(s).select("text").attr("style", t);
1870
- }
1871
- return o ? a(s).selectAll("tspan.text-outer-tspan").classed("title-row", !0) : a(s).selectAll("tspan.text-outer-tspan").classed("row", !0), s;
1872
- }
1873
- }, "createText");
1874
- //#endregion
1875
- export { vt as a, bt as i, zt as n, _t as o, Ct as r, Ft as t };