@sme.up/ketchup2 2.0.0 → 2.2.0

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 (460) hide show
  1. package/dist/arc-CqG9Hxdf.cjs +1 -0
  2. package/dist/arc-Klgb378K.js +80 -0
  3. package/dist/architecture-YZFGNWBL-BRqToLcm.js +3 -0
  4. package/dist/architecture-YZFGNWBL-BTOWQWD9.cjs +1 -0
  5. package/dist/architectureDiagram-Q4EWVU46-CX_6DnSJ.cjs +36 -0
  6. package/dist/architectureDiagram-Q4EWVU46-CnzjcVBn.js +4057 -0
  7. package/dist/array-D8NZ46Ht.js +6 -0
  8. package/dist/array-Dxz0O8Q3.cjs +1 -0
  9. package/dist/assets/buttonListAssets.d.ts +8 -0
  10. package/dist/assets/buttonListAssets.d.ts.map +1 -1
  11. package/dist/assets/imageListAssets.d.ts +3 -1
  12. package/dist/assets/imageListAssets.d.ts.map +1 -1
  13. package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
  14. package/dist/basic-components/button/button-types.d.ts +4 -0
  15. package/dist/basic-components/button/button-types.d.ts.map +1 -1
  16. package/dist/basic-components/button-dropdown/button-dropdown-types.d.ts +16 -0
  17. package/dist/basic-components/button-dropdown/button-dropdown-types.d.ts.map +1 -0
  18. package/dist/basic-components/button-dropdown/button-dropdown.d.ts +4 -0
  19. package/dist/basic-components/button-dropdown/button-dropdown.d.ts.map +1 -0
  20. package/dist/basic-components/button-list/button-list-types.d.ts +6 -0
  21. package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
  22. package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
  23. package/dist/basic-components/cell/cell-utils.d.ts +11 -4
  24. package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
  25. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  26. package/dist/basic-components/image/image.d.ts.map +1 -1
  27. package/dist/basic-components/image-cell/image-cell-types.d.ts +12 -3
  28. package/dist/basic-components/image-cell/image-cell-types.d.ts.map +1 -1
  29. package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
  30. package/dist/basic-components/list/list-types.d.ts +0 -1
  31. package/dist/basic-components/list/list-types.d.ts.map +1 -1
  32. package/dist/basic-components/list/list.d.ts.map +1 -1
  33. package/dist/basic-components/notification/notification.assets.d.ts.map +1 -1
  34. package/dist/basic-components/select/select.d.ts.map +1 -1
  35. package/dist/basic-components/text/text.d.ts.map +1 -1
  36. package/dist/basic-components/text-editor/text-editor-utils.d.ts.map +1 -1
  37. package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
  38. package/dist/blockDiagram-DXYQGD6D-B0NvV2Ph.js +3033 -0
  39. package/dist/blockDiagram-DXYQGD6D-D6DypQdM.cjs +132 -0
  40. package/dist/c4Diagram-AHTNJAMY-DPijI3_r.js +2961 -0
  41. package/dist/c4Diagram-AHTNJAMY-Dgwv-e5O.cjs +10 -0
  42. package/dist/channel-CRWct3-i.js +5 -0
  43. package/dist/channel-DkTvdPpU.cjs +1 -0
  44. package/dist/chunk-2KRD3SAO-Ca3zDQyj.js +23 -0
  45. package/dist/chunk-2KRD3SAO-oZrIWZvV.cjs +1 -0
  46. package/dist/chunk-336JU56O-DQhIGd25.cjs +1 -0
  47. package/dist/chunk-336JU56O-DkZvWJVe.js +49 -0
  48. package/dist/chunk-426QAEUC-CDXJVpQr.js +9 -0
  49. package/dist/chunk-426QAEUC-CqN26l3E.cjs +1 -0
  50. package/dist/chunk-4BX2VUAB-BW54-JWg.js +8 -0
  51. package/dist/chunk-4BX2VUAB-Qba52sxc.cjs +1 -0
  52. package/dist/chunk-4TB4RGXK-B0SIkKDf.cjs +206 -0
  53. package/dist/chunk-4TB4RGXK-D2LRzcEP.js +3253 -0
  54. package/dist/chunk-55IACEB6-Bu3k0Yz5.js +8 -0
  55. package/dist/chunk-55IACEB6-DPatBzu7.cjs +1 -0
  56. package/dist/chunk-5FUZZQ4R-Cj5KbGC7.cjs +62 -0
  57. package/dist/chunk-5FUZZQ4R-D3C0F0Tr.js +3638 -0
  58. package/dist/chunk-5PVQY5BW-DEPZKGvb.cjs +2 -0
  59. package/dist/chunk-5PVQY5BW-Dn8n6moB.js +1299 -0
  60. package/dist/chunk-67CJDMHE-2Qg7i1xJ.cjs +1 -0
  61. package/dist/chunk-67CJDMHE-YMBkJcAO.js +23 -0
  62. package/dist/chunk-7N4EOEYR-C-GuhRgW.js +35 -0
  63. package/dist/chunk-7N4EOEYR-jNBQwvHx.cjs +1 -0
  64. package/dist/chunk-AA7GKIK3-B_ZB6dou.js +30 -0
  65. package/dist/chunk-AA7GKIK3-dqnTmnvO.cjs +1 -0
  66. package/dist/chunk-BSJP7CBP-CFzYPvgr.cjs +1 -0
  67. package/dist/chunk-BSJP7CBP-oNTXVRA7.js +82 -0
  68. package/dist/chunk-CIAEETIT-ClHUj0Su.cjs +1 -0
  69. package/dist/chunk-CIAEETIT-XlxsAz-4.js +23 -0
  70. package/dist/chunk-D-IZpNpi.cjs +1 -0
  71. package/dist/chunk-EDXVE4YY-1dwNWzc7.cjs +1 -0
  72. package/dist/chunk-EDXVE4YY-CGNVB686.js +25 -0
  73. package/dist/chunk-ENJZ2VHE-BAWfx0nA.cjs +10 -0
  74. package/dist/chunk-ENJZ2VHE-CZ7BvL2h.js +560 -0
  75. package/dist/{chunk-FMBD7UC4-C1wIcaJH.js → chunk-FMBD7UC4-CS9_r76V.cjs} +2 -6
  76. package/dist/chunk-FMBD7UC4-RRSc9jqt.js +5 -0
  77. package/dist/chunk-FOC6F5B3-DcZs851j.cjs +1 -0
  78. package/dist/chunk-FOC6F5B3-E9n6-juB.js +23 -0
  79. package/dist/chunk-ICPOFSXX-fQJ5ufMR.js +3320 -0
  80. package/dist/chunk-ICPOFSXX-hY6BIZ4Y.cjs +122 -0
  81. package/dist/chunk-K5T4RW27-BzDQkjC7.cjs +94 -0
  82. package/dist/chunk-K5T4RW27-DY7TOEqa.js +16070 -0
  83. package/dist/chunk-KGLVRYIC-5OJpfQCj.js +23 -0
  84. package/dist/chunk-KGLVRYIC-DnbIkai8.cjs +1 -0
  85. package/dist/chunk-LIHQZDEY-59I4-LWb.js +64 -0
  86. package/dist/chunk-LIHQZDEY-CrogR3nT.cjs +1 -0
  87. package/dist/chunk-ORNJ4GCN-CcrEtiCn.cjs +1 -0
  88. package/dist/chunk-ORNJ4GCN-CwkOSFbS.js +31 -0
  89. package/dist/chunk-OYMX7WX6-CrK-lehh.cjs +231 -0
  90. package/dist/chunk-OYMX7WX6-DJkGVCqi.js +2014 -0
  91. package/dist/chunk-QZHKN3VN-Bx8I6l3c.js +15 -0
  92. package/dist/chunk-QZHKN3VN-CSMKL2rB.cjs +1 -0
  93. package/dist/chunk-U2HBQHQK-CJ77uizk.cjs +70 -0
  94. package/dist/chunk-U2HBQHQK-Ceyeq0IV.js +1879 -0
  95. package/dist/chunk-WQLz0Won.js +20 -0
  96. package/dist/chunk-X2U36JSP-CtXjVqek.cjs +1 -0
  97. package/dist/chunk-X2U36JSP-VxRY65ea.js +67 -0
  98. package/dist/chunk-XPW4576I-BcWkx-AL.js +1146 -0
  99. package/dist/chunk-XPW4576I-D8Pp6a3j.cjs +32 -0
  100. package/dist/chunk-YZCP3GAM-D6P3SWmL.js +60 -0
  101. package/dist/chunk-YZCP3GAM-qxaNo0r8.cjs +1 -0
  102. package/dist/chunk-ZZ45TVLE-BfSqZnT4.cjs +1 -0
  103. package/dist/chunk-ZZ45TVLE-X2jolXSO.js +32 -0
  104. package/dist/classDiagram-6PBFFD2Q-BT4_JTnP.cjs +1 -0
  105. package/dist/classDiagram-6PBFFD2Q-Dgaxt4wI.js +29 -0
  106. package/dist/classDiagram-v2-HSJHXN6E-CWhiK6nm.js +29 -0
  107. package/dist/classDiagram-v2-HSJHXN6E-DkBLzgTv.cjs +1 -0
  108. package/dist/clone-CQQwPjME.cjs +1 -0
  109. package/dist/clone-Dwbh_blD.js +8 -0
  110. package/dist/components/drawer/drawer-types.d.ts +4 -0
  111. package/dist/components/drawer/drawer-types.d.ts.map +1 -1
  112. package/dist/components/image-list/components/image-list-command-panel.d.ts +15 -0
  113. package/dist/components/image-list/components/image-list-command-panel.d.ts.map +1 -0
  114. package/dist/components/image-list/components/image-list-command-trigger.d.ts +16 -0
  115. package/dist/components/image-list/components/image-list-command-trigger.d.ts.map +1 -0
  116. package/dist/components/image-list/components/image-list-filter-picker.d.ts +14 -0
  117. package/dist/components/image-list/components/image-list-filter-picker.d.ts.map +1 -0
  118. package/dist/components/image-list/components/image-list-h-strip.d.ts.map +1 -1
  119. package/dist/components/image-list/components/image-list-json-viewer.d.ts +11 -0
  120. package/dist/components/image-list/components/image-list-json-viewer.d.ts.map +1 -0
  121. package/dist/components/image-list/components/image-list-menu.d.ts.map +1 -1
  122. package/dist/components/image-list/components/image-list-navigation-picker.d.ts +6 -2
  123. package/dist/components/image-list/components/image-list-navigation-picker.d.ts.map +1 -1
  124. package/dist/components/image-list/components/image-list-sort-picker.d.ts +14 -0
  125. package/dist/components/image-list/components/image-list-sort-picker.d.ts.map +1 -0
  126. package/dist/components/image-list/components/image-list-v-strip.d.ts.map +1 -1
  127. package/dist/components/image-list/components/items/image-list-card-item.d.ts +5 -0
  128. package/dist/components/image-list/components/items/image-list-card-item.d.ts.map +1 -0
  129. package/dist/components/image-list/components/items/image-list-folder-item.d.ts.map +1 -1
  130. package/dist/components/image-list/components/items/image-list-item.d.ts.map +1 -1
  131. package/dist/components/image-list/components/menu-nav-item.d.ts.map +1 -1
  132. package/dist/components/image-list/components/navigation-modes/image-list-catalog.d.ts.map +1 -1
  133. package/dist/components/image-list/components/navigation-modes/image-list-explorer.d.ts.map +1 -1
  134. package/dist/components/image-list/components/navigation-modes/image-list-tree.d.ts.map +1 -1
  135. package/dist/components/image-list/components/strip-item.d.ts.map +1 -1
  136. package/dist/components/image-list/hooks/useCommandPickers.d.ts +13 -0
  137. package/dist/components/image-list/hooks/useCommandPickers.d.ts.map +1 -0
  138. package/dist/components/image-list/image-list-column-utils.d.ts +9 -0
  139. package/dist/components/image-list/image-list-column-utils.d.ts.map +1 -0
  140. package/dist/components/image-list/image-list-context.d.ts +5 -2
  141. package/dist/components/image-list/image-list-context.d.ts.map +1 -1
  142. package/dist/components/image-list/image-list-debug-utils.d.ts +13 -0
  143. package/dist/components/image-list/image-list-debug-utils.d.ts.map +1 -0
  144. package/dist/components/image-list/image-list-filter-context.d.ts +9 -0
  145. package/dist/components/image-list/image-list-filter-context.d.ts.map +1 -0
  146. package/dist/components/image-list/image-list-filter-utils.d.ts +12 -0
  147. package/dist/components/image-list/image-list-filter-utils.d.ts.map +1 -0
  148. package/dist/components/image-list/image-list-sort-context.d.ts +9 -0
  149. package/dist/components/image-list/image-list-sort-context.d.ts.map +1 -0
  150. package/dist/components/image-list/image-list-sort-utils.d.ts +13 -0
  151. package/dist/components/image-list/image-list-sort-utils.d.ts.map +1 -0
  152. package/dist/components/image-list/image-list-state-context.d.ts +5 -0
  153. package/dist/components/image-list/image-list-state-context.d.ts.map +1 -0
  154. package/dist/components/image-list/image-list-types.d.ts +45 -2
  155. package/dist/components/image-list/image-list-types.d.ts.map +1 -1
  156. package/dist/components/image-list/image-list-utils.d.ts +24 -1
  157. package/dist/components/image-list/image-list-utils.d.ts.map +1 -1
  158. package/dist/components/image-list/image-list.d.ts +1 -1
  159. package/dist/components/image-list/image-list.d.ts.map +1 -1
  160. package/dist/components/planner/planner-assets.d.ts +1 -1
  161. package/dist/components/planner/planner-assets.d.ts.map +1 -1
  162. package/dist/components/planner/planner-types.d.ts +1 -1
  163. package/dist/components/planner/planner-types.d.ts.map +1 -1
  164. package/dist/components/planner/planner-utils.d.ts +6 -5
  165. package/dist/components/planner/planner-utils.d.ts.map +1 -1
  166. package/dist/components/planner/planner.d.ts.map +1 -1
  167. package/dist/components/scaffold/context/scaffold-provider.d.ts.map +1 -1
  168. package/dist/components/scaffold/scaffold-types.d.ts +1 -0
  169. package/dist/components/scaffold/scaffold-types.d.ts.map +1 -1
  170. package/dist/components/timeline/timeline-types.d.ts +6 -2
  171. package/dist/components/timeline/timeline-types.d.ts.map +1 -1
  172. package/dist/components/timeline/timeline.d.ts.map +1 -1
  173. package/dist/components/toolbar/toolbar.d.ts.map +1 -1
  174. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  175. package/dist/cose-bilkent-S5V4N54A-B30Rh9DR.js +2250 -0
  176. package/dist/cose-bilkent-S5V4N54A-Bhdp-wcb.cjs +1 -0
  177. package/dist/cytoscape.esm-CPjF_mSK.js +18100 -0
  178. package/dist/cytoscape.esm-CrBwLFXE.cjs +321 -0
  179. package/dist/dagre-BcwvU6ZF.cjs +1 -0
  180. package/dist/dagre-D17h-Z-U.js +1606 -0
  181. package/dist/dagre-KV5264BT-BnEKAAAn.js +293 -0
  182. package/dist/dagre-KV5264BT-DRbiLA37.cjs +4 -0
  183. package/dist/defaultLocale-Dcyuaxxg.js +201 -0
  184. package/dist/defaultLocale-DtzyZW63.cjs +1 -0
  185. package/dist/diagram-5BDNPKRD-B_Fa4dpl.js +101 -0
  186. package/dist/diagram-5BDNPKRD-CPN8m2Hl.cjs +10 -0
  187. package/dist/diagram-G4DWMVQ6-VpXkNb67.cjs +24 -0
  188. package/dist/diagram-G4DWMVQ6-iYV58Drq.js +524 -0
  189. package/dist/diagram-MMDJMWI5-DGk_PUo9.cjs +43 -0
  190. package/dist/diagram-MMDJMWI5-DUpEI5ug.js +213 -0
  191. package/dist/diagram-TYMM5635-BH_-vSv9.cjs +24 -0
  192. package/dist/diagram-TYMM5635-DHHPZ5ZJ.js +133 -0
  193. package/dist/dist-BgvMZbfo.cjs +1 -0
  194. package/dist/dist-DL30VIBI.js +60 -0
  195. package/dist/erDiagram-SMLLAGMA-C8FM7wbJ.js +1700 -0
  196. package/dist/erDiagram-SMLLAGMA-vuYEmfFA.cjs +85 -0
  197. package/dist/flatten-BE1bWL-7.js +40 -0
  198. package/dist/flatten-DxvYSoR8.cjs +1 -0
  199. package/dist/flowDiagram-DWJPFMVM-BGtX2gw0.js +4145 -0
  200. package/dist/flowDiagram-DWJPFMVM-DWuKiJeo.cjs +162 -0
  201. package/dist/functional-components/action/action-types.d.ts +32 -2
  202. package/dist/functional-components/action/action-types.d.ts.map +1 -1
  203. package/dist/functional-components/action/action-utils.d.ts +13 -1
  204. package/dist/functional-components/action/action-utils.d.ts.map +1 -1
  205. package/dist/functional-components/action/action.d.ts.map +1 -1
  206. package/dist/functional-components/action-list/action-list.d.ts.map +1 -1
  207. package/dist/functional-components/action-list/dual-list/dual-list.d.ts.map +1 -1
  208. package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts +18 -0
  209. package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts.map +1 -0
  210. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/gantt-assets.d.ts +2 -0
  211. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -0
  212. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/gantt.d.ts +3 -3
  213. package/dist/functional-components/timeline-engine/components/gantt/gantt.d.ts.map +1 -0
  214. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/grid/gantt-grid.d.ts +3 -5
  215. package/dist/functional-components/timeline-engine/components/gantt/grid/gantt-grid.d.ts.map +1 -0
  216. package/dist/functional-components/timeline-engine/components/gantt/header/gantt-header.d.ts.map +1 -0
  217. package/dist/functional-components/timeline-engine/components/gantt/today-indicator/gantt-today-indicator.d.ts.map +1 -0
  218. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/types/gantt-types.d.ts +27 -6
  219. package/dist/functional-components/timeline-engine/components/gantt/types/gantt-types.d.ts.map +1 -0
  220. package/dist/functional-components/timeline-engine/components/task-list/task-list-types.d.ts +27 -0
  221. package/dist/functional-components/timeline-engine/components/task-list/task-list-types.d.ts.map +1 -0
  222. package/dist/functional-components/{task-list → timeline-engine/components/task-list}/task-list-utils.d.ts +4 -4
  223. package/dist/functional-components/timeline-engine/components/task-list/task-list-utils.d.ts.map +1 -0
  224. package/dist/functional-components/timeline-engine/components/task-list/task-list.d.ts.map +1 -0
  225. package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts +24 -0
  226. package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts.map +1 -0
  227. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts +119 -0
  228. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -0
  229. package/dist/functional-components/timeline-engine/timeline-engine-utils.test.d.ts +2 -0
  230. package/dist/functional-components/timeline-engine/timeline-engine-utils.test.d.ts.map +1 -0
  231. package/dist/functional-components/timeline-engine/timeline-engine.d.ts +8 -0
  232. package/dist/functional-components/timeline-engine/timeline-engine.d.ts.map +1 -0
  233. package/dist/ganttDiagram-T4ZO3ILL-C25CnBTv.cjs +292 -0
  234. package/dist/ganttDiagram-T4ZO3ILL-PY1BUp5b.js +3077 -0
  235. package/dist/gitGraph-7Q5UKJZL-DZea3ltD.cjs +1 -0
  236. package/dist/gitGraph-7Q5UKJZL-sjlqDwJ_.js +3 -0
  237. package/dist/gitGraphDiagram-UUTBAWPF-0lCBo9nK.cjs +106 -0
  238. package/dist/gitGraphDiagram-UUTBAWPF-CDIW9-sX.js +728 -0
  239. package/dist/graphlib-CdgJ32J_.cjs +1 -0
  240. package/dist/graphlib-DbQkSsC8.js +373 -0
  241. package/dist/hooks/useClickOutside.d.ts.map +1 -1
  242. package/dist/hooks/useFocusTrap.d.ts.map +1 -1
  243. package/dist/hooks/useGanttMath.d.ts +1 -1
  244. package/dist/hooks/useGanttMath.d.ts.map +1 -1
  245. package/dist/hooks/useVirtualListScroll.d.ts.map +1 -1
  246. package/dist/identity-KQSjemTb.cjs +1 -0
  247. package/dist/identity-g0dsMjx7.js +393 -0
  248. package/dist/info-OMHHGYJF-Bk0VWVNW.js +3 -0
  249. package/dist/info-OMHHGYJF-C8QtwF0k.cjs +1 -0
  250. package/dist/infoDiagram-42DDH7IO-CQLxpytS.js +19 -0
  251. package/dist/infoDiagram-42DDH7IO-Da__a_a_.cjs +2 -0
  252. package/dist/init-B2MubQrj.cjs +1 -0
  253. package/dist/init-BO60vQHJ.js +15 -0
  254. package/dist/isEmpty-CA3kJuev.cjs +1 -0
  255. package/dist/isEmpty-RwX-oIQS.js +35 -0
  256. package/dist/ishikawaDiagram-UXIWVN3A-BblrAmns.js +718 -0
  257. package/dist/ishikawaDiagram-UXIWVN3A-BfkF39Xv.cjs +70 -0
  258. package/dist/journeyDiagram-VCZTEJTY-CCOZ1XFK.js +883 -0
  259. package/dist/journeyDiagram-VCZTEJTY-UwcVOFtb.cjs +139 -0
  260. package/dist/kanban-definition-6JOO6SKY-BWwfbdd6.js +973 -0
  261. package/dist/kanban-definition-6JOO6SKY-Coxpi43B.cjs +89 -0
  262. package/dist/katex-Du5WiYIy.js +22000 -0
  263. package/dist/katex-SAH56fvc.cjs +257 -0
  264. package/dist/ketchup2.cjs.js +197 -1
  265. package/dist/ketchup2.css +2 -1
  266. package/dist/ketchup2.es.js +132798 -52
  267. package/dist/line-C7oijaT4.cjs +1 -0
  268. package/dist/line-CrxZdHmO.js +34 -0
  269. package/dist/linear-BsPvNLJv.js +289 -0
  270. package/dist/linear-CxHa1DsM.cjs +1 -0
  271. package/dist/mermaid-parser.core-CERDf-UG.js +69 -0
  272. package/dist/mermaid-parser.core-DHpvGOZR.cjs +3 -0
  273. package/dist/mindmap-definition-QFDTVHPH--xULjpFZ.cjs +96 -0
  274. package/dist/mindmap-definition-QFDTVHPH-dYQoMeA6.js +978 -0
  275. package/dist/ordinal-C-VoL0XF.js +65 -0
  276. package/dist/ordinal-Civr0hZL.cjs +1 -0
  277. package/dist/packet-4T2RLAQJ-X0BMsNFj.js +3 -0
  278. package/dist/packet-4T2RLAQJ-lvmQnXPI.cjs +1 -0
  279. package/dist/path-Civic7PQ.cjs +1 -0
  280. package/dist/path-CvfwEr8y.js +85 -0
  281. package/dist/pie-ZZUOXDRM-CJ_fU5k1.js +3 -0
  282. package/dist/pie-ZZUOXDRM-Dp4APKqR.cjs +1 -0
  283. package/dist/pieDiagram-DEJITSTG-7we8s9eC.cjs +30 -0
  284. package/dist/pieDiagram-DEJITSTG-Dj5pX4fC.js +165 -0
  285. package/dist/quadrantDiagram-34T5L4WZ-B3BFuPYQ.cjs +7 -0
  286. package/dist/quadrantDiagram-34T5L4WZ-BKNOJBiR.js +1974 -0
  287. package/dist/radar-PYXPWWZC-BHWJy_E1.cjs +1 -0
  288. package/dist/radar-PYXPWWZC-DgZIW9Ah.js +3 -0
  289. package/dist/reduce-B7WW9rkU.cjs +1 -0
  290. package/dist/reduce-DNnkcf3M.js +532 -0
  291. package/dist/requirementDiagram-MS252O5E-BemsEy3Y.cjs +84 -0
  292. package/dist/requirementDiagram-MS252O5E-r3eZu57d.js +2221 -0
  293. package/dist/rough.esm-1mqTSjCt.js +1352 -0
  294. package/dist/rough.esm-BLKo1fIQ.cjs +1 -0
  295. package/dist/sankeyDiagram-XADWPNL6-B9YCkPHh.cjs +10 -0
  296. package/dist/sankeyDiagram-XADWPNL6-ErTVVewH.js +920 -0
  297. package/dist/sequenceDiagram-FGHM5R23-BmqbzzHY.js +4157 -0
  298. package/dist/sequenceDiagram-FGHM5R23-CBpQL6X2.cjs +157 -0
  299. package/dist/src-BQiFKP24.js +2146 -0
  300. package/dist/src-DFxq-N5I.cjs +1 -0
  301. package/dist/stateDiagram-FHFEXIEX-CL9LE-W1.js +217 -0
  302. package/dist/stateDiagram-FHFEXIEX-Cju5Z2VS.cjs +1 -0
  303. package/dist/stateDiagram-v2-QKLJ7IA2-BHoytfGp.js +27 -0
  304. package/dist/stateDiagram-v2-QKLJ7IA2-DO1H6Vqa.cjs +1 -0
  305. package/dist/timeline-definition-GMOUNBTQ-BeTHmikc.cjs +120 -0
  306. package/dist/timeline-definition-GMOUNBTQ-DgcI7XnE.js +1068 -0
  307. package/dist/treeView-SZITEDCU-CT5vX0q9.cjs +1 -0
  308. package/dist/treeView-SZITEDCU-Df3xzFtO.js +3 -0
  309. package/dist/treemap-W4RFUUIX-Bk_jVZ7D.cjs +1 -0
  310. package/dist/treemap-W4RFUUIX-ClUtdSdn.js +3 -0
  311. package/dist/types/data-structures.d.ts +9 -1
  312. package/dist/types/data-structures.d.ts.map +1 -1
  313. package/dist/utils/data-structures.d.ts +2 -0
  314. package/dist/utils/data-structures.d.ts.map +1 -1
  315. package/dist/utils/style.d.ts +13 -2
  316. package/dist/utils/style.d.ts.map +1 -1
  317. package/dist/utils/translation.d.ts.map +1 -1
  318. package/dist/v4-6yr83DbP.cjs +1 -0
  319. package/dist/v4-BR71w5_q.js +33 -0
  320. package/dist/vennDiagram-DHZGUBPP-7tx3VVDU.js +1858 -0
  321. package/dist/vennDiagram-DHZGUBPP-C16dnMoe.cjs +34 -0
  322. package/dist/wardley-RL74JXVD-BtHQbnUy.js +3 -0
  323. package/dist/wardley-RL74JXVD-y8RO5Iqv.cjs +1 -0
  324. package/dist/wardleyDiagram-NUSXRM2D-DGKU7A2U.js +578 -0
  325. package/dist/wardleyDiagram-NUSXRM2D-DY51LHBa.cjs +20 -0
  326. package/dist/xychartDiagram-5P7HB3ND--7RYyckP.js +2044 -0
  327. package/dist/xychartDiagram-5P7HB3ND-Cj0HUNew.cjs +7 -0
  328. package/package.json +31 -31
  329. package/dist/_basePickBy-CPekwY_Z.js +0 -151
  330. package/dist/_basePickBy-DDhgLyLp.cjs +0 -1
  331. package/dist/_baseUniq-CAhfZr5S.js +0 -614
  332. package/dist/_baseUniq-bLb2QO_4.cjs +0 -1
  333. package/dist/arc-CnmUepZA.cjs +0 -1
  334. package/dist/arc-Md6Ds0JZ.js +0 -83
  335. package/dist/architecture-7HQA4BMR-DLImbuCr.js +0 -6
  336. package/dist/architecture-7HQA4BMR-zD1jCFXs.cjs +0 -1
  337. package/dist/architectureDiagram-VXUJARFQ-BkTy7RJA.js +0 -4661
  338. package/dist/architectureDiagram-VXUJARFQ-Vl-ya9R6.cjs +0 -36
  339. package/dist/blockDiagram-VD42YOAC-C9AJNM79.js +0 -2256
  340. package/dist/blockDiagram-VD42YOAC-D_EmYywD.cjs +0 -122
  341. package/dist/c4Diagram-YG6GDRKO-BfwBYulK.cjs +0 -10
  342. package/dist/c4Diagram-YG6GDRKO-YW-l-SYp.js +0 -1580
  343. package/dist/channel-BGeX_R6w.cjs +0 -1
  344. package/dist/channel-lqmaHMPZ.js +0 -5
  345. package/dist/chunk-4BX2VUAB-C6nahV0u.cjs +0 -1
  346. package/dist/chunk-4BX2VUAB-UMbIiF-V.js +0 -8
  347. package/dist/chunk-55IACEB6-CH_wWg2p.js +0 -8
  348. package/dist/chunk-55IACEB6-Cxt8uWHb.cjs +0 -1
  349. package/dist/chunk-B4BG7PRW-CTNZzNh0.js +0 -1375
  350. package/dist/chunk-B4BG7PRW-ekpXKNa3.cjs +0 -165
  351. package/dist/chunk-DI55MBZ5-BrLh6Fue.js +0 -1370
  352. package/dist/chunk-DI55MBZ5-TYqUGYGr.cjs +0 -220
  353. package/dist/chunk-FMBD7UC4-D0Nmh8EL.cjs +0 -15
  354. package/dist/chunk-QN33PNHL-B91UelWj.js +0 -19
  355. package/dist/chunk-QN33PNHL-KGNgU1-8.cjs +0 -1
  356. package/dist/chunk-QZHKN3VN-IV7jnz-R.js +0 -15
  357. package/dist/chunk-QZHKN3VN-ajuovO9B.cjs +0 -1
  358. package/dist/chunk-TZMSLE5B-Bkf7U79o.cjs +0 -1
  359. package/dist/chunk-TZMSLE5B-DArsm2Pn.js +0 -64
  360. package/dist/classDiagram-2ON5EDUG-C0_Gqd5k.js +0 -16
  361. package/dist/classDiagram-2ON5EDUG-Cnous8-m.cjs +0 -1
  362. package/dist/classDiagram-v2-WZHVMYZB-C0_Gqd5k.js +0 -16
  363. package/dist/classDiagram-v2-WZHVMYZB-Cnous8-m.cjs +0 -1
  364. package/dist/clone-B_MxWhab.js +0 -8
  365. package/dist/clone-D6gFD6F-.cjs +0 -1
  366. package/dist/cose-bilkent-S5V4N54A-DHZ_jZYH.js +0 -2608
  367. package/dist/cose-bilkent-S5V4N54A-Da7jSuau.cjs +0 -1
  368. package/dist/cytoscape.esm-CNUX3VTg.cjs +0 -321
  369. package/dist/cytoscape.esm-Cvf3sx9F.js +0 -18704
  370. package/dist/dagre-6UL2VRFP-CI2ww-SU.js +0 -444
  371. package/dist/dagre-6UL2VRFP-qOR4yAIQ.cjs +0 -4
  372. package/dist/defaultLocale-D7EN2tov.js +0 -171
  373. package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
  374. package/dist/diagram-PSM6KHXK-1g8345m3.js +0 -531
  375. package/dist/diagram-PSM6KHXK-DHWL3g5V.cjs +0 -24
  376. package/dist/diagram-QEK2KX5R-B-VP4dVY.js +0 -217
  377. package/dist/diagram-QEK2KX5R-DDWbMmAv.cjs +0 -43
  378. package/dist/diagram-S2PKOQOG-BbSGqLET.js +0 -142
  379. package/dist/diagram-S2PKOQOG-Djw9RGNh.cjs +0 -24
  380. package/dist/erDiagram-Q2GNP2WA-CxY1P4hJ.js +0 -841
  381. package/dist/erDiagram-Q2GNP2WA-Pw9i-eBN.cjs +0 -60
  382. package/dist/flowDiagram-NV44I4VS-BOr3T0H8.js +0 -1620
  383. package/dist/flowDiagram-NV44I4VS-D9VKU1cV.cjs +0 -162
  384. package/dist/functional-components/gantt/bar/gantt-bar.d.ts +0 -17
  385. package/dist/functional-components/gantt/bar/gantt-bar.d.ts.map +0 -1
  386. package/dist/functional-components/gantt/gantt-assets.d.ts.map +0 -1
  387. package/dist/functional-components/gantt/gantt.d.ts.map +0 -1
  388. package/dist/functional-components/gantt/grid/gantt-grid.d.ts.map +0 -1
  389. package/dist/functional-components/gantt/header/gantt-header.d.ts.map +0 -1
  390. package/dist/functional-components/gantt/today-indicator/gantt-today-indicator.d.ts.map +0 -1
  391. package/dist/functional-components/gantt/types/gantt-types.d.ts.map +0 -1
  392. package/dist/functional-components/task-list/task-list-types.d.ts +0 -22
  393. package/dist/functional-components/task-list/task-list-types.d.ts.map +0 -1
  394. package/dist/functional-components/task-list/task-list-utils.d.ts.map +0 -1
  395. package/dist/functional-components/task-list/task-list.d.ts.map +0 -1
  396. package/dist/ganttDiagram-JELNMOA3-B4T6J11z.js +0 -2670
  397. package/dist/ganttDiagram-JELNMOA3-C4Y4VT0h.cjs +0 -267
  398. package/dist/gitGraph-G5XIXVHT-C5QaeLIs.cjs +0 -1
  399. package/dist/gitGraph-G5XIXVHT-bOZ2ppp1.js +0 -6
  400. package/dist/gitGraphDiagram-V2S2FVAM-CteUW9ML.js +0 -699
  401. package/dist/gitGraphDiagram-V2S2FVAM-D_v6ae_z.cjs +0 -65
  402. package/dist/graph-BBPk5jyk.cjs +0 -1
  403. package/dist/graph-h6vsxKyr.js +0 -247
  404. package/dist/hooks/usePlannerSync.d.ts +0 -11
  405. package/dist/hooks/usePlannerSync.d.ts.map +0 -1
  406. package/dist/index-CYQM-t1d.cjs +0 -390
  407. package/dist/index-FiV1b00w.js +0 -133122
  408. package/dist/info-VBDWY6EO-BEIYBsnB.cjs +0 -1
  409. package/dist/info-VBDWY6EO-BQAW_660.js +0 -6
  410. package/dist/infoDiagram-HS3SLOUP-DMalb3kC.js +0 -24
  411. package/dist/infoDiagram-HS3SLOUP-Tepm6ygN.cjs +0 -2
  412. package/dist/init-CHZsXQcr.cjs +0 -1
  413. package/dist/init-DjUOC4st.js +0 -16
  414. package/dist/journeyDiagram-XKPGCS4Q-CzePcKne.cjs +0 -139
  415. package/dist/journeyDiagram-XKPGCS4Q-D0u-RLFV.js +0 -834
  416. package/dist/kanban-definition-3W4ZIXB7-BSCzAsMJ.js +0 -719
  417. package/dist/kanban-definition-3W4ZIXB7-DdbH9sci.cjs +0 -89
  418. package/dist/katex-C2g-EhzP.cjs +0 -261
  419. package/dist/katex-CUSbq6rG.js +0 -11692
  420. package/dist/layout-6z7-eUnZ.js +0 -1335
  421. package/dist/layout-DbcrMh5B.cjs +0 -1
  422. package/dist/linear-BKevCbhh.js +0 -259
  423. package/dist/linear-C7uVEtWW.cjs +0 -1
  424. package/dist/mermaid-parser.core-Cwy51n_e.js +0 -17907
  425. package/dist/mermaid-parser.core-DQ2yhapR.cjs +0 -160
  426. package/dist/mindmap-definition-VGOIOE7T-CcEisj0R.cjs +0 -68
  427. package/dist/mindmap-definition-VGOIOE7T-xp6GmSIx.js +0 -758
  428. package/dist/ordinal-B6-f3MAq.js +0 -61
  429. package/dist/ordinal-CagbB1m8.cjs +0 -1
  430. package/dist/packet-DYOGHKS2-BGgwnMhM.js +0 -6
  431. package/dist/packet-DYOGHKS2-BWg8qxI8.cjs +0 -1
  432. package/dist/pie-VRWISCQL-DhM8CUW4.cjs +0 -1
  433. package/dist/pie-VRWISCQL-DrWIWm7W.js +0 -6
  434. package/dist/pieDiagram-ADFJNKIX-BdvacM-Z.cjs +0 -30
  435. package/dist/pieDiagram-ADFJNKIX-D6Fa7W_r.js +0 -161
  436. package/dist/quadrantDiagram-AYHSOK5B-CHMoSBvg.js +0 -1022
  437. package/dist/quadrantDiagram-AYHSOK5B-ddq5zZEg.cjs +0 -7
  438. package/dist/radar-ZZBFDIW7-CPvW4Njh.js +0 -6
  439. package/dist/radar-ZZBFDIW7-YJK72BlV.cjs +0 -1
  440. package/dist/requirementDiagram-UZGBJVZJ-Cr9HnGVO.js +0 -850
  441. package/dist/requirementDiagram-UZGBJVZJ-NdpzVbnf.cjs +0 -64
  442. package/dist/sankeyDiagram-TZEHDZUN-3f19WwKd.js +0 -810
  443. package/dist/sankeyDiagram-TZEHDZUN-D2Hzq4Kr.cjs +0 -10
  444. package/dist/sequenceDiagram-WL72ISMW-Cu-7V--6.js +0 -2511
  445. package/dist/sequenceDiagram-WL72ISMW-Nk6vhSK9.cjs +0 -145
  446. package/dist/stateDiagram-FKZM4ZOC-BSnDKUaW.cjs +0 -1
  447. package/dist/stateDiagram-FKZM4ZOC-BleTIniP.js +0 -263
  448. package/dist/stateDiagram-v2-4FDKWEC3-7EjW078x.js +0 -16
  449. package/dist/stateDiagram-v2-4FDKWEC3-BJPzO53y.cjs +0 -1
  450. package/dist/timeline-definition-IT6M3QCI-CFTjPpKy.js +0 -795
  451. package/dist/timeline-definition-IT6M3QCI-CfaGtuF2.cjs +0 -61
  452. package/dist/treemap-GDKQZRPO-CtDdEOaj.cjs +0 -1
  453. package/dist/treemap-GDKQZRPO-DlODAdQ2.js +0 -6
  454. package/dist/utils/wbs-utils.d.ts +0 -143
  455. package/dist/utils/wbs-utils.d.ts.map +0 -1
  456. package/dist/xychartDiagram-PRI3JC2R-mShGv2CD.cjs +0 -7
  457. package/dist/xychartDiagram-PRI3JC2R-vEJER5zT.js +0 -1340
  458. /package/dist/functional-components/{gantt → timeline-engine/components/gantt}/header/gantt-header.d.ts +0 -0
  459. /package/dist/functional-components/{gantt → timeline-engine/components/gantt}/today-indicator/gantt-today-indicator.d.ts +0 -0
  460. /package/dist/functional-components/{task-list → timeline-engine/components/task-list}/task-list.d.ts +0 -0
@@ -0,0 +1,15 @@
1
+ import { h as e } from "./src-BQiFKP24.js";
2
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-QZHKN3VN.mjs
3
+ var t = class {
4
+ constructor(e) {
5
+ this.init = e, this.records = this.init();
6
+ }
7
+ static {
8
+ e(this, "ImperativeState");
9
+ }
10
+ reset() {
11
+ this.records = this.init();
12
+ }
13
+ };
14
+ //#endregion
15
+ export { t };
@@ -0,0 +1 @@
1
+ const e=require(`./src-DFxq-N5I.cjs`);var t=class{constructor(e){this.init=e,this.records=this.init()}static{e.h(this,`ImperativeState`)}reset(){this.records=this.init()}};Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
@@ -0,0 +1,70 @@
1
+ const e=require(`./chunk-ICPOFSXX-hY6BIZ4Y.cjs`),t=require(`./src-DFxq-N5I.cjs`),n=require(`./chunk-5PVQY5BW-DEPZKGvb.cjs`);var r=Object.freeze({left:0,top:0,width:16,height:16}),i=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),a=Object.freeze({...r,...i}),o=Object.freeze({...a,body:``,hidden:!1}),s=Object.freeze({width:null,height:null}),c=Object.freeze({...s,...i}),l=(e,t,n,r=``)=>{let i=e.split(`:`);if(e.slice(0,1)===`@`){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!u(a)?null:a}let a=i[0],o=a.split(`-`);if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join(`-`)};return t&&!u(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:a};return t&&!u(e,n)?null:e}return null},u=(e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1;function d(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function f(e,t){let n=d(e,t);for(let r in o)r in i?r in e&&!(r in n)&&(n[r]=i[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function p(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(a),i}function m(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=f(r[e]||i[e],a)}return o(t),n.forEach(o),f(e,a)}function h(e,t){if(e.icons[t])return m(e,t,[]);let n=p(e,[t])[t];return n?m(e,t,n):null}var g=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ee=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function te(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(g);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=ee.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}function ne(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(`</`+t);if(i===-1||a===-1)break;let o=e.indexOf(`>`,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function re(e,t){return e?`<defs>`+e+`</defs>`+t:t}function ie(e,t,n){let r=ne(e);return re(r.defs,t+r.content+n)}var ae=e=>e===`unset`||e===`undefined`||e===`none`;function oe(e,t){let n={...a,...e},r={...c,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},o=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,a=e.rotate;n?r?a+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(a<0&&(a-=Math.floor(a/4)*4),a%=4,a){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`);break}a%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(o=ie(o,`<g transform="`+t.join(` `)+`">`,`</g>`))});let s=r.width,l=r.height,u=i.width,d=i.height,f,p;s===null?(p=l===null?`1em`:l===`auto`?d:l,f=te(p,u/d)):(f=s===`auto`?u:s,p=l===null?te(f,d/u):l===`auto`?d:l);let m={},h=(e,t)=>{ae(t)||(m[e]=t.toString())};h(`width`,f),h(`height`,p);let g=[i.left,i.top,u,d];return m.viewBox=g.join(` `),{attributes:m,viewBox:g,body:o}}var se=/\sid="(\S+)"/g,ce=new Map;function le(e){e=e.replace(/[0-9]+$/,``)||`a`;let t=ce.get(e)||0;return ce.set(e,t+1),t?`${e}${t}`:e}function ue(e){let t=[],n;for(;n=se.exec(e);)t.push(n[1]);if(!t.length)return e;let r=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(t=>{let n=le(t),i=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+i+`)([")]|\\.[a-z])`,`g`),`$1`+n+r+`$3`)}),e=e.replace(new RegExp(r,`g`),``),e}function de(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return`<svg xmlns="http://www.w3.org/2000/svg"`+n+`>`+e+`</svg>`}function _(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var v=_();function fe(e){v=e}var y={exec:()=>null};function b(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(x.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var x={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`)},pe=/^(?:[ \t]*(?:\n|$))+/,me=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,he=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,S=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ge=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,C=/(?:[*+-]|\d{1,9}[.)])/,_e=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ve=b(_e).replace(/bull/g,C).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(),ye=b(_e).replace(/bull/g,C).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(),w=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,be=/^[^\n]+/,T=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,xe=b(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,T).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Se=b(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,C).getRegex(),E=`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`,D=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ce=b(`^ {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`,D).replace(`tag`,E).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),we=b(w).replace(`hr`,S).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`,E).getRegex(),O={blockquote:b(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,we).getRegex(),code:me,def:xe,fences:he,heading:ge,hr:S,html:Ce,lheading:ve,list:Se,newline:pe,paragraph:we,table:y,text:be},Te=b(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,S).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`,E).getRegex(),Ee={...O,lheading:ye,table:Te,paragraph:b(w).replace(`hr`,S).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,Te).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`,E).getRegex()},De={...O,html:b(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,D).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(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:y,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:b(w).replace(`hr`,S).replace(`heading`,` *#{1,6} *[^
2
+ ]`).replace(`lheading`,ve).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},Oe=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ke=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ae=/^( {2,}|\\)\n(?!\s*$)/,je=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,k=/[\p{P}\p{S}]/u,A=/[\s\p{P}\p{S}]/u,Me=/[^\s\p{P}\p{S}]/u,Ne=b(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,A).getRegex(),Pe=/(?!~)[\p{P}\p{S}]/u,Fe=/(?!~)[\s\p{P}\p{S}]/u,Ie=/(?:[^\s\p{P}\p{S}]|~)/u,Le=/\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,Re=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,ze=b(Re,`u`).replace(/punct/g,k).getRegex(),Be=b(Re,`u`).replace(/punct/g,Pe).getRegex(),Ve=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,He=b(Ve,`gu`).replace(/notPunctSpace/g,Me).replace(/punctSpace/g,A).replace(/punct/g,k).getRegex(),Ue=b(Ve,`gu`).replace(/notPunctSpace/g,Ie).replace(/punctSpace/g,Fe).replace(/punct/g,Pe).getRegex(),We=b(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,Me).replace(/punctSpace/g,A).replace(/punct/g,k).getRegex(),Ge=b(/\\(punct)/,`gu`).replace(/punct/g,k).getRegex(),Ke=b(/^<(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(),qe=b(D).replace(`(?:-->|$)`,`-->`).getRegex(),Je=b(`^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`,qe).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),j=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/,Ye=b(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace(`label`,j).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Xe=b(/^!?\[(label)\]\[(ref)\]/).replace(`label`,j).replace(`ref`,T).getRegex(),Ze=b(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,T).getRegex(),M={_backpedal:y,anyPunctuation:Ge,autolink:Ke,blockSkip:Le,br:Ae,code:ke,del:y,emStrongLDelim:ze,emStrongRDelimAst:He,emStrongRDelimUnd:We,escape:Oe,link:Ye,nolink:Ze,punctuation:Ne,reflink:Xe,reflinkSearch:b(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,Xe).replace(`nolink`,Ze).getRegex(),tag:Je,text:je,url:y},Qe={...M,link:b(/^!?\[(label)\]\((.*?)\)/).replace(`label`,j).getRegex(),reflink:b(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,j).getRegex()},N={...M,emStrongRDelimAst:Ue,emStrongLDelim:Be,url:b(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,`i`).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},$e={...N,br:b(Ae).replace(`{2,}`,`*`).getRegex(),text:b(N.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},P={normal:O,gfm:Ee,pedantic:De},F={normal:M,gfm:N,breaks:$e,pedantic:Qe},et={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},tt=e=>et[e];function I(e,t){if(t){if(x.escapeTest.test(e))return e.replace(x.escapeReplace,tt)}else if(x.escapeTestNoEncode.test(e))return e.replace(x.escapeReplaceNoEncode,tt);return e}function nt(e){try{e=encodeURI(e).replace(x.percentDecode,`%`)}catch{return null}return e}function rt(e,t){let n=e.replace(x.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(x.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(x.slashPipe,`|`);return n}function L(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function it(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function at(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function ot(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
3
+ `).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
4
+ `)}var R=class{options;rules;lexer;constructor(e){this.options=e||v}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:L(e,`
5
+ `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=ot(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=L(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:L(t[0],`
6
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=L(t[0],`
7
+ `).split(`
8
+ `),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
9
+ `),c=s.replace(this.rules.other.blockquoteSetextReplace,`
10
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
11
+ ${s}`:s,r=r?`${r}
12
+ ${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`)break;if(u?.type===`blockquote`){let t=u,a=t.raw+`
13
+ `+e.join(`
14
+ `),o=this.blockquote(a);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;break}else if(u?.type===`list`){let t=u,a=t.raw+`
15
+ `+e.join(`
16
+ `),o=this.list(a);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(`
17
+ `);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=t[2].split(`
18
+ `,1)[0].replace(this.rules.other.listReplaceTabs,e=>` `.repeat(3*e.length)),l=e.split(`
19
+ `,1)[0],u=!c.trim(),d=0;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+`
20
+ `,e=e.substring(l.length+1),n=!0),!n){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);for(;e;){let f=e.split(`
21
+ `,1)[0],p;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;if(p.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=`
22
+ `+p.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=`
23
+ `+l}!u&&!l.trim()&&(u=!0),r+=f+`
24
+ `,e=e.substring(f.length+1),c=p.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0));let f=null,p;this.options.gfm&&(f=this.rules.other.listIsTask.exec(s),f&&(p=f[0]!==`[ ] `,s=s.replace(this.rules.other.listReplaceTask,``))),i.items.push({type:`list_item`,raw:r,task:!!f,checked:p,loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();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){let t=i.items[e].tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:`html`,block:!0,raw:t[0],pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){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];return{type:`def`,tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=rt(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
25
+ `):[],a={type:`table`,raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(rt(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:`heading`,raw:t[0],depth:t[2].charAt(0)===`=`?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
26
+ `?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);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),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=L(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=it(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;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)),at(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return at(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,c=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(r=c.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}else if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=c.slice(1,-1);return{type:`em`,raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:`strong`,raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){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);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:`del`,raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},z=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||v,this.options.tokenizer=this.options.tokenizer||new R,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:x,block:P.normal,inline:F.normal};this.options.pedantic?(t.block=P.pedantic,t.inline=F.pedantic):this.options.gfm&&(t.block=P.gfm,this.options.breaks?t.inline=F.breaks:t.inline=F.gfm),this.tokenizer.rules=t}static get rules(){return{block:P,inline:F}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(x.carriageReturn,`
27
+ `),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(x.tabCharGlobal,` `).replace(x.spaceLine,``));e;){let r;if(this.options.extensions?.block?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);r.raw.length===1&&n!==void 0?n.raw+=`
28
+ `:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
29
+ `)?``:`
30
+ `)+r.raw,n.text+=`
31
+ `+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
32
+ `)?``:`
33
+ `)+r.raw,n.text+=`
34
+ `+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let a=t.at(-1);n&&a?.type===`paragraph`?(a.raw+=(a.raw.endsWith(`
35
+ `)?``:`
36
+ `)+r.raw,a.text+=`
37
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
38
+ `)?``:`
39
+ `)+r.raw,n.text+=`
40
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let i=!1,a=``;for(;e;){i||(a=``),i=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,a)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let o=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(o)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(a=r.raw.slice(-1)),i=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else throw Error(t)}}return t}},B=class{options;parser;constructor(e){this.options=e||v}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(x.notSpaceStart)?.[0],i=e.replace(x.endingNewline,``)+`
41
+ `;return r?`<pre><code class="language-`+I(r)+`">`+(n?i:I(i,!0))+`</code></pre>
42
+ `:`<pre><code>`+(n?i:I(i,!0))+`</code></pre>
43
+ `}blockquote({tokens:e}){return`<blockquote>
44
+ ${this.parser.parse(e)}</blockquote>
45
+ `}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
46
+ `}hr(e){return`<hr>
47
+ `}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
48
+ `+r+`</`+i+`>
49
+ `}listitem(e){let t=``;if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type===`paragraph`?(e.tokens[0].text=n+` `+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=n+` `+I(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:`text`,raw:n+` `,text:n+` `,escaped:!0}):t+=n+` `}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
50
+ `}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox">`}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
51
+ `}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
52
+ <thead>
53
+ `+t+`</thead>
54
+ `+r+`</table>
55
+ `}tablerow({text:e}){return`<tr>
56
+ ${e}</tr>
57
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
58
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${I(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=nt(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+I(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=nt(e);if(i===null)return I(n);e=i;let a=`<img src="${e}" alt="${n}"`;return t&&(a+=` title="${I(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:I(e.text)}},V=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}},H=class e{options;renderer;textRenderer;constructor(e){this.options=e||v,this.options.renderer=this.options.renderer||new B,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new V}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=i,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(t!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`def`,`paragraph`,`text`].includes(e.type)){n+=t||``;continue}}let a=i;switch(a.type){case`space`:n+=this.renderer.space(a);continue;case`hr`:n+=this.renderer.hr(a);continue;case`heading`:n+=this.renderer.heading(a);continue;case`code`:n+=this.renderer.code(a);continue;case`table`:n+=this.renderer.table(a);continue;case`blockquote`:n+=this.renderer.blockquote(a);continue;case`list`:n+=this.renderer.list(a);continue;case`html`:n+=this.renderer.html(a);continue;case`def`:n+=this.renderer.def(a);continue;case`paragraph`:n+=this.renderer.paragraph(a);continue;case`text`:{let i=a,o=this.renderer.text(i);for(;r+1<e.length&&e[r+1].type===`text`;)i=e[++r],o+=`
59
+ `+this.renderer.text(i);t?n+=this.renderer.paragraph({type:`paragraph`,raw:o,text:o,tokens:[{type:`text`,raw:o,text:o,escaped:!0}]}):n+=o;continue}default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}parseInline(e,t=this.renderer){let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},U=class{options;block;constructor(e){this.options=e||v}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?z.lex:z.lexInline}provideParser(){return this.block?H.parse:H.parseInline}},W=new class{defaults=_();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=H;Renderer=B;TextRenderer=V;Lexer=z;Tokenizer=R;Hooks=U;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new B(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new R(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new U;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];U.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&U.passThroughHooksRespectAsync.has(n))return Promise.resolve(i.call(t,e)).then(e=>a.call(t,e));let r=i.call(t,e);return a.call(t,r)}:t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return z.lex(e,t??this.defaults)}parser(e,t){return H.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));i.hooks&&(i.hooks.options=i,i.hooks.block=e);let o=i.hooks?i.hooks.provideLexer():e?z.lex:z.lexInline,s=i.hooks?i.hooks.provideParser():e?H.parse:H.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(t):t).then(e=>o(e,i)).then(e=>i.hooks?i.hooks.processAllTokens(e):e).then(e=>i.walkTokens?Promise.all(this.walkTokens(e,i.walkTokens)).then(()=>e):e).then(e=>s(e,i)).then(e=>i.hooks?i.hooks.postprocess(e):e).catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let e=o(t,i);i.hooks&&(e=i.hooks.processAllTokens(e)),i.walkTokens&&this.walkTokens(e,i.walkTokens);let n=s(e,i);return i.hooks&&(n=i.hooks.postprocess(n)),n}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
60
+ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+I(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function G(e,t){return W.parse(e,t)}G.options=G.setOptions=function(e){return W.setOptions(e),G.defaults=W.defaults,fe(G.defaults),G},G.getDefaults=_,G.defaults=v,G.use=function(...e){return W.use(...e),G.defaults=W.defaults,fe(G.defaults),G},G.walkTokens=function(e,t){return W.walkTokens(e,t)},G.parseInline=W.parseInline,G.Parser=H,G.parser=H.parse,G.Renderer=B,G.TextRenderer=V,G.Lexer=z,G.lexer=z.lex,G.Tokenizer=R,G.Hooks=U,G.parse=G,G.options,G.setOptions,G.use,G.walkTokens,G.parseInline,H.parse,z.lex;function st(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.from(typeof e==`string`?[e]:e);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,``);var i=r.reduce(function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map(function(e){return e.match(/[\t ]/g)?.length??0})):e},[]);if(i.length){var a=RegExp(`
61
+ [ ]{`+Math.min.apply(Math,i)+`}`,`g`);r=r.map(function(e){return e.replace(a,`
62
+ `)})}r[0]=r[0].replace(/^\r?\n/,``);var o=r[0];return t.forEach(function(e,t){var n=o.match(/(?:^|\n)( *)$/),i=n?n[1]:``,a=e;typeof e==`string`&&e.includes(`
63
+ `)&&(a=String(e).split(`
64
+ `).map(function(e,t){return t===0?e:``+i+e}).join(`
65
+ `)),o+=a+r[t+1]}),o}var ct={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>`,height:80,width:80},K=new Map,lt=new Map,ut=t.h(e=>{for(let n of e){if(!n.name)throw Error(`Invalid icon loader. Must have a "name" property with non-empty string value.`);if(t.g.debug(`Registering icon pack:`,n.name),`loader`in n)lt.set(n.name,n.loader);else if(`icons`in n)K.set(n.name,n.icons);else throw t.g.error(`Invalid icon loader:`,n),Error(`Invalid icon loader. Must have either "icons" or "loader" property.`)}},`registerIconPacks`),dt=t.h(async(e,n)=>{let r=l(e,!0,n!==void 0);if(!r)throw Error(`Invalid icon name: ${e}`);let i=r.prefix||n;if(!i)throw Error(`Icon name must contain a prefix: ${e}`);let a=K.get(i);if(!a){let e=lt.get(i);if(!e)throw Error(`Icon set not found: ${r.prefix}`);try{a={...await e(),prefix:i},K.set(i,a)}catch(e){throw t.g.error(e),Error(`Failed to load icon set: ${r.prefix}`)}}let o=h(a,r.name);if(!o)throw Error(`Icon not found: ${e}`);return o},`getRegisteredIconData`),ft=t.h(async e=>{try{return await dt(e),!0}catch{return!1}},`isIconAvailable`),pt=t.h(async(n,r,i)=>{let a;try{a=await dt(n,r?.fallbackPrefix)}catch(e){t.g.error(e),a=ct}let o=oe(a,r);return e.L(de(ue(o.body),{...o.attributes,...i}),e.y())},`getIconSVG`);function mt(e,{markdownAutoWrap:t}){return st(e.replace(/<br\/>/g,`
66
+ `).replace(/\n{2,}/g,`
67
+ `))}t.h(mt,`preprocessMarkdown`);function ht(e){return e.split(/\\n|\n|<br\s*\/?>/gi).map(e=>e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(e=>({content:e,type:`normal`}))??[])}t.h(ht,`nonMarkdownToLines`);function gt(e,n={}){let r=mt(e,n),i=G.lexer(r),a=[[]],o=0;function s(e,t=`normal`){e.type===`text`?e.text.split(`
68
+ `).forEach((e,n)=>{n!==0&&(o++,a.push([])),e.split(` `).forEach(e=>{e=e.replace(/&#39;/g,`'`),e&&a[o].push({content:e,type:t})})}):e.type===`strong`||e.type===`em`?e.tokens.forEach(t=>{s(t,e.type)}):e.type===`html`&&a[o].push({content:e.text,type:`normal`})}return t.h(s,`processNode`),i.forEach(e=>{e.type===`paragraph`?e.tokens?.forEach(e=>{s(e)}):e.type===`html`?a[o].push({content:e.text,type:`normal`}):a[o].push({content:e.raw,type:`normal`})}),a}t.h(gt,`markdownToLines`);function _t(e){return e?`<p>${e.replace(/\\n|\n/g,`<br />`)}</p>`:``}t.h(_t,`nonMarkdownToHTML`);function vt(e,{markdownAutoWrap:n}={}){let r=G.lexer(e);function i(e){return e.type===`text`?n===!1?e.text.replace(/\n */g,`<br/>`).replace(/ /g,`&nbsp;`):e.text.replace(/\n */g,`<br/>`):e.type===`strong`?`<strong>${e.tokens?.map(i).join(``)}</strong>`:e.type===`em`?`<em>${e.tokens?.map(i).join(``)}</em>`:e.type===`paragraph`?`<p>${e.tokens?.map(i).join(``)}</p>`:e.type===`space`?``:e.type===`html`?`${e.text}`:e.type===`escape`?e.text:(t.g.warn(`Unsupported markdown: ${e.type}`),e.raw)}return t.h(i,`output`),r.map(i).join(``)}t.h(vt,`markdownToHTML`);function yt(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(e=>e.segment):[...e]}t.h(yt,`splitTextToChars`);function bt(e,t){return q(e,[],yt(t.content),t.type)}t.h(bt,`splitWordToFitWidth`);function q(e,t,n,r){if(n.length===0)return[{content:t.join(``),type:r},{content:``,type:r}];let[i,...a]=n,o=[...t,i];return e([{content:o.join(``),type:r}])?q(e,o,a,r):(t.length===0&&i&&(t.push(i),n.shift()),[{content:t.join(``),type:r},{content:n.join(``),type:r}])}t.h(q,`splitWordToFitWidthRecursion`);function xt(e,t){if(e.some(({content:e})=>e.includes(`
69
+ `)))throw Error(`splitLineToFitWidth does not support newlines in the line`);return J(e,t)}t.h(xt,`splitLineToFitWidth`);function J(e,t,n=[],r=[]){if(e.length===0)return r.length>0&&n.push(r),n.length>0?n:[];let i=``;e[0].content===` `&&(i=` `,e.shift());let a=e.shift()??{content:` `,type:`normal`},o=[...r];if(i!==``&&o.push({content:i,type:`normal`}),o.push(a),t(o))return J(e,t,n,o);if(r.length>0)n.push(r),e.unshift(a);else if(a.content){let[r,i]=bt(t,a);n.push([r]),i.content&&e.unshift(i)}return J(e,t,n)}t.h(J,`splitLineToFitWidthRecursion`);function Y(e,t){t&&e.attr(`style`,t)}t.h(Y,`applyStyle`);var St=16384;async function X(t,n,r,i,a=!1,o=e.y()){let s=t.append(`foreignObject`);s.attr(`width`,`${Math.min(10*r,St)}px`),s.attr(`height`,`${Math.min(10*r,St)}px`);let c=s.append(`xhtml:div`),l=e.k(n.label)?await e.P(n.label.replace(e.s.lineBreakRegex,`
70
+ `),o):e.L(n.label,o),u=n.isNode?`nodeLabel`:`edgeLabel`,d=c.append(`span`);d.html(l),Y(d,n.labelStyle),d.attr(`class`,`${u} ${i}`),Y(c,n.labelStyle),c.style(`display`,`table-cell`),c.style(`white-space`,`nowrap`),c.style(`line-height`,`1.5`),r!==1/0&&(c.style(`max-width`,r+`px`),c.style(`text-align`,`center`)),c.attr(`xmlns`,`http://www.w3.org/1999/xhtml`),a&&c.attr(`class`,`labelBkg`);let f=c.node().getBoundingClientRect();return f.width===r&&(c.style(`display`,`table`),c.style(`white-space`,`break-spaces`),c.style(`width`,r+`px`),f=c.node().getBoundingClientRect()),s.node()}t.h(X,`addHtmlSpan`);function Z(e,t,n,r=!1){let i=e.append(`tspan`).attr(`class`,`text-outer-tspan`).attr(`x`,0).attr(`y`,t*n-.1+`em`).attr(`dy`,n+`em`);return r&&i.attr(`text-anchor`,`middle`),i}t.h(Z,`createTspan`);function Ct(e,t,n){let r=e.append(`text`),i=Z(r,1,t);$(i,n);let a=i.node().getComputedTextLength();return r.remove(),a}t.h(Ct,`computeWidthOfText`);function wt(e,t,n){let r=e.append(`text`),i=Z(r,1,t);$(i,[{content:n,type:`normal`}]);let a=i.node()?.getBoundingClientRect();return a&&r.remove(),a}t.h(wt,`computeDimensionOfText`);function Tt(e,n,r,i=!1,a=!1){let o=1.1,s=n.append(`g`),c=s.insert(`rect`).attr(`class`,`background`).attr(`style`,`stroke: none`),l=s.append(`text`).attr(`y`,`-10.1`);a&&l.attr(`text-anchor`,`middle`);let u=0;for(let n of r){let r=t.h(t=>Ct(s,o,t)<=e,`checkWidth`),i=r(n)?[n]:xt(n,r);for(let e of i)$(Z(l,u,o,a),e),u++}if(i){let e=l.node().getBBox();return c.attr(`x`,e.x-2).attr(`y`,e.y-2).attr(`width`,e.width+4).attr(`height`,e.height+4),s.node()}else return l.node()}t.h(Tt,`createFormattedText`);function Q(e){return e.replace(/&(amp|lt|gt);/g,(e,t)=>{switch(t){case`amp`:return`&`;case`lt`:return`<`;case`gt`:return`>`;default:return e}})}t.h(Q,`decodeHTMLEntities`);function $(e,t){e.text(``),t.forEach((t,n)=>{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`);n===0?r.text(Q(t.content)):r.text(` `+Q(t.content))})}t.h($,`updateTextContentAndStyles`);async function Et(t,n={}){let r=[];t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(t,i,a)=>(r.push((async()=>{let r=`${i}:${a}`;return await ft(r)?await pt(r,void 0,{class:`label-icon`}):`<i class='${e.L(t,n).replace(`:`,` `)}'></i>`})()),t));let i=await Promise.all(r);return t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??``)}t.h(Et,`replaceIconSubstring`);var Dt=t.h(async(r,i=``,{style:a=``,isTitle:o=!1,classes:s=``,useHtmlLabels:c=!0,markdown:l=!0,isNode:u=!0,width:d=200,addSvgBackground:f=!1}={},p)=>{if(t.g.debug(`XYZ createText`,i,a,o,s,c,u,`addSvgBackground: `,f),c){let t=await Et(n.i(l?vt(i,p):_t(i)),p),o=i.replace(/\\\\/g,`\\`);return await X(r,{isNode:u,label:e.k(i)?o:t,labelStyle:a.replace(`fill:`,`color:`)},d,s,f,p)}else{let e=n.i(i.replace(/<br\s*\/?>/g,`<br/>`)),s=Tt(d,r,l?gt(e.replace(`<br>`,`<br/>`),p):ht(e),i?f:!1,!u);if(u){/stroke:/.exec(a)&&(a=a.replace(`stroke:`,`lineColor:`));let e=a.replace(/stroke:[^;]+;?/g,``).replace(/stroke-width:[^;]+;?/g,``).replace(/fill:[^;]+;?/g,``).replace(/color:/g,`fill:`);t.p(s).attr(`style`,e)}else{let e=a.replace(/stroke:[^;]+;?/g,``).replace(/stroke-width:[^;]+;?/g,``).replace(/fill:[^;]+;?/g,``).replace(/background:/g,`fill:`);t.p(s).select(`rect`).attr(`style`,e.replace(/background:/g,`fill:`));let n=a.replace(/stroke:[^;]+;?/g,``).replace(/stroke-width:[^;]+;?/g,``).replace(/fill:[^;]+;?/g,``).replace(/color:/g,`fill:`);t.p(s).select(`text`).attr(`style`,n)}return o?t.p(s).selectAll(`tspan.text-outer-tspan`).classed(`title-row`,!0):t.p(s).selectAll(`tspan.text-outer-tspan`).classed(`row`,!0),s}},`createText`);Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return ct}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return ut}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return Dt}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return st}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return pt}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return wt}});