mio-previewer 0.2.74 → 0.2.77

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 (277) hide show
  1. package/dist/_basePickBy-CXmXW7jd.js +166 -0
  2. package/dist/_basePickBy-CtuVwROD.cjs +1 -0
  3. package/dist/_baseUniq-CGoiOkSa.js +682 -0
  4. package/dist/_baseUniq-CYtOXxfV.cjs +1 -0
  5. package/dist/_createAssigner-DqH64jc7.cjs +1 -0
  6. package/dist/_createAssigner-IEX8lwxm.js +573 -0
  7. package/dist/arc-C78br9Yj.cjs +1 -0
  8. package/dist/arc-vLgDTVZZ.js +80 -0
  9. package/dist/architecture-O4VJ6CD3-B9qzjtV8.cjs +1 -0
  10. package/dist/architecture-O4VJ6CD3-wqAP4onK.js +2 -0
  11. package/dist/architectureDiagram-VXUJARFQ-CYbuyVAs.js +4039 -0
  12. package/dist/architectureDiagram-VXUJARFQ-DEGYSl1f.cjs +36 -0
  13. package/dist/array-CApNbSU9.js +6 -0
  14. package/dist/array-DZSRzHA_.cjs +1 -0
  15. package/dist/assets/parser.worker-Bzb1GItl.js +14 -0
  16. package/dist/blockDiagram-VD42YOAC-DaH3L5Ng.js +3009 -0
  17. package/dist/blockDiagram-VD42YOAC-DeX0dq72.cjs +122 -0
  18. package/dist/c4Diagram-YG6GDRKO-CIThIYo6.js +2959 -0
  19. package/dist/c4Diagram-YG6GDRKO-Dz6dif_9.cjs +10 -0
  20. package/dist/channel-BWHkpgVD.cjs +1 -0
  21. package/dist/channel-JT7eWw2w.js +5 -0
  22. package/dist/chunk-4BX2VUAB-BZTgbbzC.js +8 -0
  23. package/dist/chunk-4BX2VUAB-HXFjpyQg.cjs +1 -0
  24. package/dist/chunk-55IACEB6-DWUqxxdp.js +8 -0
  25. package/dist/chunk-55IACEB6-Hy_THNUs.cjs +1 -0
  26. package/dist/chunk-ABZYJK2D-CbIYYZa_.cjs +80 -0
  27. package/dist/chunk-ABZYJK2D-DDrmE3Q7.js +2518 -0
  28. package/dist/chunk-ATLVNIR6-DHlCNWnJ.js +67 -0
  29. package/dist/chunk-ATLVNIR6-shAOudT0.cjs +1 -0
  30. package/dist/chunk-B4BG7PRW-C67vroOS.cjs +165 -0
  31. package/dist/chunk-B4BG7PRW-DSYuK8dI.js +3116 -0
  32. package/dist/chunk-BNMv73og.cjs +1 -0
  33. package/dist/chunk-CVBHYZKI-CLVcv_xh.cjs +1 -0
  34. package/dist/chunk-CVBHYZKI-CiCGetln.js +12 -0
  35. package/dist/chunk-DI55MBZ5-BCvBgHrp.cjs +220 -0
  36. package/dist/chunk-DI55MBZ5-Clru0TyG.js +2000 -0
  37. package/dist/chunk-Dbv0sNQl.js +20 -0
  38. package/dist/chunk-FMBD7UC4-D4kohRVY.js +5 -0
  39. package/dist/{chunk-FMBD7UC4-DxkUZTpt.cjs → chunk-FMBD7UC4-DWMVCXKq.cjs} +2 -2
  40. package/dist/chunk-HN2XXSSU-BwmRMa2r.cjs +1 -0
  41. package/dist/chunk-HN2XXSSU-CJL8wAZ2.js +76 -0
  42. package/dist/chunk-JA3XYJ7Z-BaAdjYEy.cjs +70 -0
  43. package/dist/chunk-JA3XYJ7Z-CpKHrbOX.js +1849 -0
  44. package/dist/chunk-JZLCHNYA-CYo7ykJf.js +4863 -0
  45. package/dist/chunk-JZLCHNYA-CvPIQFXP.cjs +54 -0
  46. package/dist/chunk-QN33PNHL-BFbXAWI4.js +25 -0
  47. package/dist/chunk-QN33PNHL-Cu0FHarG.cjs +1 -0
  48. package/dist/chunk-QXUST7PY-CnnfdJrM.cjs +7 -0
  49. package/dist/chunk-QXUST7PY-CxCAwQqP.js +488 -0
  50. package/dist/chunk-QZHKN3VN-2e6nJr8c.cjs +1 -0
  51. package/dist/chunk-QZHKN3VN-Dal4kx9B.js +15 -0
  52. package/dist/chunk-S3R3BYOJ-B2ozcJNg.cjs +2 -0
  53. package/dist/chunk-S3R3BYOJ-CG6GoSCd.js +1119 -0
  54. package/dist/chunk-TZMSLE5B-CooeLs4Q.js +57 -0
  55. package/dist/chunk-TZMSLE5B-D92K1Ja5.cjs +1 -0
  56. package/dist/classDiagram-2ON5EDUG-Bv1XCvDZ.js +28 -0
  57. package/dist/classDiagram-2ON5EDUG-BzMV1CJW.cjs +1 -0
  58. package/dist/classDiagram-v2-WZHVMYZB-Bqxv5U7u.js +28 -0
  59. package/dist/classDiagram-v2-WZHVMYZB-BzMV1CJW.cjs +1 -0
  60. package/dist/clone-B0KDIkSS.js +8 -0
  61. package/dist/clone-wvtBTB6v.cjs +1 -0
  62. package/dist/cose-bilkent-S5V4N54A-DMHTv1aW.cjs +1 -0
  63. package/dist/cose-bilkent-S5V4N54A-bGPAcpg6.js +2250 -0
  64. package/dist/custom-Bl_fVJZ0.cjs +84 -0
  65. package/dist/custom-D-TzPpWT.js +5281 -0
  66. package/dist/cytoscape.esm-CElDUMAx.cjs +321 -0
  67. package/dist/cytoscape.esm-xf9dtmBj.js +18100 -0
  68. package/dist/dagre-6UL2VRFP-3bgUxzqG.js +294 -0
  69. package/dist/dagre-6UL2VRFP-B3NqmIxs.cjs +4 -0
  70. package/dist/dagre-BfAHSwtP.js +1472 -0
  71. package/dist/dagre-Buvkww-e.cjs +1 -0
  72. package/dist/defaultLocale-B5dSAwiC.js +201 -0
  73. package/dist/defaultLocale-G0HsdRIB.cjs +1 -0
  74. package/dist/diagram-PSM6KHXK-C4FjxUHt.cjs +24 -0
  75. package/dist/diagram-PSM6KHXK-CF8TkgzX.js +527 -0
  76. package/dist/diagram-QEK2KX5R-Dl3IHeA5.js +213 -0
  77. package/dist/diagram-QEK2KX5R-Z9DYjr44.cjs +43 -0
  78. package/dist/diagram-S2PKOQOG-Bib-zL2S.cjs +24 -0
  79. package/dist/diagram-S2PKOQOG-ZKvn7IEe.js +133 -0
  80. package/dist/dist-DC-lM4uX.cjs +1 -0
  81. package/dist/dist-zNcLEPGR.js +51 -0
  82. package/dist/erDiagram-Q2GNP2WA-DFMV9OUT.cjs +60 -0
  83. package/dist/erDiagram-Q2GNP2WA-DJYJEzEB.js +1600 -0
  84. package/dist/flowDiagram-NV44I4VS-7TxeawHS.cjs +162 -0
  85. package/dist/flowDiagram-NV44I4VS-CXa6ycqs.js +4128 -0
  86. package/dist/ganttDiagram-LVOFAZNH-DqT7pu4m.js +2869 -0
  87. package/dist/ganttDiagram-LVOFAZNH-iiExGpwF.cjs +267 -0
  88. package/dist/gitGraph-ZV4HHKMB-BjaEVcYh.cjs +1 -0
  89. package/dist/gitGraph-ZV4HHKMB-Cl2I6-l3.js +2 -0
  90. package/dist/gitGraphDiagram-NY62KEGX-Tphu_MeC.js +621 -0
  91. package/dist/gitGraphDiagram-NY62KEGX-k5xzXg7C.cjs +65 -0
  92. package/dist/graphlib-C3tPLMbC.js +225 -0
  93. package/dist/graphlib-Cdg0u3TT.cjs +1 -0
  94. package/dist/info-63CPKGFF-D2A5GDFo.js +2 -0
  95. package/dist/info-63CPKGFF-MRaucWlf.cjs +1 -0
  96. package/dist/infoDiagram-F6ZHWCRC-3Jwo4J0f.cjs +2 -0
  97. package/dist/infoDiagram-F6ZHWCRC-BUoruN76.js +19 -0
  98. package/dist/init-07zIhv_j.cjs +1 -0
  99. package/dist/init-Bwwdo3M6.js +15 -0
  100. package/dist/journeyDiagram-XKPGCS4Q-C_3oD9RV.cjs +139 -0
  101. package/dist/journeyDiagram-XKPGCS4Q-DB7INfrf.js +883 -0
  102. package/dist/kanban-definition-3W4ZIXB7-AVLIBuMF.js +968 -0
  103. package/dist/kanban-definition-3W4ZIXB7-txUXjKzB.cjs +89 -0
  104. package/dist/katex-6UpFeIdV.cjs +261 -0
  105. package/dist/katex-BHcJffnM.js +22112 -0
  106. package/dist/line-DYhVGH2B.js +34 -0
  107. package/dist/line-DdNAPGaw.cjs +1 -0
  108. package/dist/linear-n4_iirEu.js +289 -0
  109. package/dist/linear-rQLpRrSH.cjs +1 -0
  110. package/dist/loadCss-D6257oR0.js +8 -0
  111. package/dist/loadCss-DhrQh6-A.cjs +1 -0
  112. package/dist/markdown-it-Cz3KGZjR.cjs +2 -0
  113. package/dist/markdown-it-D-hH4G7k.js +173 -0
  114. package/dist/math-G8rF7UWn.cjs +1 -0
  115. package/dist/math-H49DsxYR.js +10 -0
  116. package/dist/mermaid-parser.core-B84fnaGG.js +11904 -0
  117. package/dist/mermaid-parser.core-C9EbhVVg.cjs +82 -0
  118. package/dist/mindmap-definition-VGOIOE7T-CXlyYsc6.cjs +68 -0
  119. package/dist/mindmap-definition-VGOIOE7T-VIt9sDN3.js +963 -0
  120. package/dist/mio-previewer.cjs.js +11 -21
  121. package/dist/mio-previewer.css +2 -9
  122. package/dist/mio-previewer.es.js +4915 -6147
  123. package/dist/ordinal-C55HfHHp.js +65 -0
  124. package/dist/ordinal-CUPR-p0T.cjs +1 -0
  125. package/dist/packet-HUATNLJX-CGNko_oS.cjs +1 -0
  126. package/dist/packet-HUATNLJX-CVx40lqO.js +2 -0
  127. package/dist/path-DNvJyUE8.js +85 -0
  128. package/dist/path-Kklx0M1v.cjs +1 -0
  129. package/dist/pie-WTHONI2E-BdPx0Cfg.cjs +1 -0
  130. package/dist/pie-WTHONI2E-DX5V8x0L.js +2 -0
  131. package/dist/pieDiagram-ADFJNKIX-BysReYfx.js +165 -0
  132. package/dist/pieDiagram-ADFJNKIX-CTT1YMsk.cjs +30 -0
  133. package/dist/plugins/custom.cjs.js +1 -1
  134. package/dist/plugins/custom.es.js +2 -85
  135. package/dist/plugins/markdown-it.cjs.js +1 -3
  136. package/dist/plugins/markdown-it.es.js +2 -173
  137. package/dist/quadrantDiagram-AYHSOK5B-8-V3cwsC.cjs +7 -0
  138. package/dist/quadrantDiagram-AYHSOK5B-DRutDK03.js +1974 -0
  139. package/dist/radar-NJJJXTRR-CTD6M8nl.js +2 -0
  140. package/dist/radar-NJJJXTRR-wJoTnQbj.cjs +1 -0
  141. package/dist/requirementDiagram-UZGBJVZJ-DFRpWnfW.cjs +64 -0
  142. package/dist/requirementDiagram-UZGBJVZJ-DNYoJyhG.js +2191 -0
  143. package/dist/sankeyDiagram-TZEHDZUN-B9fxDP0Q.cjs +10 -0
  144. package/dist/sankeyDiagram-TZEHDZUN-DD6bkI4Z.js +920 -0
  145. package/dist/sequenceDiagram-WL72ISMW-Bmptok1c.js +3562 -0
  146. package/dist/sequenceDiagram-WL72ISMW-D9sXtgAn.cjs +145 -0
  147. package/dist/src-BMjps4Ui.cjs +1 -0
  148. package/dist/src-BuisGndr.js +2149 -0
  149. package/dist/stateDiagram-FKZM4ZOC-Bmiw8fnW.js +217 -0
  150. package/dist/stateDiagram-FKZM4ZOC-DiD1WJPM.cjs +1 -0
  151. package/dist/stateDiagram-v2-4FDKWEC3-5ADhn1IF.js +27 -0
  152. package/dist/stateDiagram-v2-4FDKWEC3-BjhmCPL1.cjs +1 -0
  153. package/dist/timeline-definition-IT6M3QCI-C9VMls3W.js +830 -0
  154. package/dist/timeline-definition-IT6M3QCI-ZzbHXhNl.cjs +61 -0
  155. package/dist/treemap-75Q7IDZK-9TPMYr3R.cjs +1 -0
  156. package/dist/treemap-75Q7IDZK-u3p-cHDL.js +2 -0
  157. package/dist/types/plugins/custom/codeBlockPlugin.d.ts +8 -0
  158. package/dist/types/plugins/custom/mermaidPlugin.d.ts +4 -0
  159. package/dist/xychartDiagram-PRI3JC2R-BI6KuGZ2.cjs +7 -0
  160. package/dist/xychartDiagram-PRI3JC2R-BWabDL1u.js +2041 -0
  161. package/package.json +2 -2
  162. package/dist/_basePickBy-Be3yyf2d.js +0 -151
  163. package/dist/_basePickBy-Z0DtrAKQ.cjs +0 -1
  164. package/dist/_baseUniq-BXkA0Pgx.js +0 -614
  165. package/dist/_baseUniq-Dq2eV1vY.cjs +0 -1
  166. package/dist/arc-B-QGG8RZ.cjs +0 -1
  167. package/dist/arc-djW14lrn.js +0 -83
  168. package/dist/architecture-O4VJ6CD3-Cws_zM2K.cjs +0 -1
  169. package/dist/architecture-O4VJ6CD3-pdMXTCaT.js +0 -5
  170. package/dist/architectureDiagram-VXUJARFQ-BwchhvqL.js +0 -4661
  171. package/dist/architectureDiagram-VXUJARFQ-DxDLWGpO.cjs +0 -36
  172. package/dist/assets/parser.worker-67NQKZt5.js +0 -16
  173. package/dist/blockDiagram-VD42YOAC-B4Xc8gfX.cjs +0 -122
  174. package/dist/blockDiagram-VD42YOAC-DpPneP6J.js +0 -2261
  175. package/dist/c4Diagram-YG6GDRKO-695lQbrZ.cjs +0 -10
  176. package/dist/c4Diagram-YG6GDRKO-Cnlax2Xq.js +0 -1580
  177. package/dist/channel-D_ITz6Jy.cjs +0 -1
  178. package/dist/channel-sXy9EduO.js +0 -5
  179. package/dist/chunk-4BX2VUAB-Bdx3_f83.cjs +0 -1
  180. package/dist/chunk-4BX2VUAB-DRkGmgAZ.js +0 -8
  181. package/dist/chunk-55IACEB6-BB03hpRC.cjs +0 -1
  182. package/dist/chunk-55IACEB6-Ord5OQlh.js +0 -8
  183. package/dist/chunk-B4BG7PRW-Ca0fOgzA.cjs +0 -165
  184. package/dist/chunk-B4BG7PRW-D-cs8bDX.js +0 -1375
  185. package/dist/chunk-DI55MBZ5-BsRe2B2M.cjs +0 -220
  186. package/dist/chunk-DI55MBZ5-DSmlLD1s.js +0 -1370
  187. package/dist/chunk-FMBD7UC4-IYQmAMTo.js +0 -19
  188. package/dist/chunk-QN33PNHL-B7G6Qlf3.cjs +0 -1
  189. package/dist/chunk-QN33PNHL-EYMc4JVr.js +0 -19
  190. package/dist/chunk-QZHKN3VN-B8NJ6Ahx.cjs +0 -1
  191. package/dist/chunk-QZHKN3VN-C4WIG5z8.js +0 -15
  192. package/dist/chunk-TZMSLE5B-BoM53RHv.js +0 -64
  193. package/dist/chunk-TZMSLE5B-CgLDb48A.cjs +0 -1
  194. package/dist/classDiagram-2ON5EDUG-CxmdZvqc.js +0 -16
  195. package/dist/classDiagram-2ON5EDUG-DIRim8qa.cjs +0 -1
  196. package/dist/classDiagram-v2-WZHVMYZB-CxmdZvqc.js +0 -16
  197. package/dist/classDiagram-v2-WZHVMYZB-DIRim8qa.cjs +0 -1
  198. package/dist/clone-DOYxaT_d.js +0 -8
  199. package/dist/clone-DSlm33NG.cjs +0 -1
  200. package/dist/cose-bilkent-S5V4N54A-BD3p1OC_.cjs +0 -1
  201. package/dist/cose-bilkent-S5V4N54A-yLoaqH3G.js +0 -2608
  202. package/dist/cytoscape.esm-DHF7mANN.cjs +0 -331
  203. package/dist/cytoscape.esm-DfdJODL8.js +0 -18735
  204. package/dist/dagre-6UL2VRFP-DG1oQ4B2.cjs +0 -4
  205. package/dist/dagre-6UL2VRFP-VjboDBbp.js +0 -444
  206. package/dist/defaultLocale-D7EN2tov.js +0 -171
  207. package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
  208. package/dist/diagram-PSM6KHXK-C1p0l5TY.js +0 -531
  209. package/dist/diagram-PSM6KHXK-a4rni6rJ.cjs +0 -24
  210. package/dist/diagram-QEK2KX5R-CErKOsX1.cjs +0 -43
  211. package/dist/diagram-QEK2KX5R-CKmmuumX.js +0 -217
  212. package/dist/diagram-S2PKOQOG-B1M7qCNl.cjs +0 -24
  213. package/dist/diagram-S2PKOQOG-BMLCJExF.js +0 -142
  214. package/dist/erDiagram-Q2GNP2WA-BfuCa_Za.cjs +0 -60
  215. package/dist/erDiagram-Q2GNP2WA-fOTsQA-d.js +0 -841
  216. package/dist/flowDiagram-NV44I4VS-BEqeUuqz.cjs +0 -162
  217. package/dist/flowDiagram-NV44I4VS-DDwRAjVG.js +0 -1620
  218. package/dist/ganttDiagram-LVOFAZNH-BbuRS8g3.js +0 -2505
  219. package/dist/ganttDiagram-LVOFAZNH-BlVeWKRf.cjs +0 -267
  220. package/dist/gitGraph-ZV4HHKMB-Bmu8r_Iq.cjs +0 -1
  221. package/dist/gitGraph-ZV4HHKMB-DcQ2E4dF.js +0 -5
  222. package/dist/gitGraphDiagram-NY62KEGX-DcMEeNh7.cjs +0 -65
  223. package/dist/gitGraphDiagram-NY62KEGX-_sWVSKbL.js +0 -699
  224. package/dist/graph-DEnt0OtZ.js +0 -247
  225. package/dist/graph-Dgcjs2XL.cjs +0 -1
  226. package/dist/info-63CPKGFF-DVDDcoHy.js +0 -5
  227. package/dist/info-63CPKGFF-Dc3cWL0G.cjs +0 -1
  228. package/dist/infoDiagram-F6ZHWCRC-DoUSS0kC.js +0 -24
  229. package/dist/infoDiagram-F6ZHWCRC-ZeTrjgaE.cjs +0 -2
  230. package/dist/init-CHZsXQcr.cjs +0 -1
  231. package/dist/init-DjUOC4st.js +0 -16
  232. package/dist/journeyDiagram-XKPGCS4Q-DGe13iBu.js +0 -834
  233. package/dist/journeyDiagram-XKPGCS4Q-Ihl9g4mY.cjs +0 -139
  234. package/dist/kanban-definition-3W4ZIXB7-2qkrkVLK.cjs +0 -89
  235. package/dist/kanban-definition-3W4ZIXB7-BhWe5nMU.js +0 -719
  236. package/dist/katex-CmGeg_OO.js +0 -11692
  237. package/dist/katex-DEiiRhcn.cjs +0 -261
  238. package/dist/layout-BDNzBIaA.cjs +0 -1
  239. package/dist/layout-DTBfbHzy.js +0 -1324
  240. package/dist/linear-BRl2UYUr.cjs +0 -1
  241. package/dist/linear-CwbXkgvF.js +0 -259
  242. package/dist/loadCss-BbD6mdv-.cjs +0 -1
  243. package/dist/loadCss-DS0Fuaxe.js +0 -8
  244. package/dist/mermaid-parser.core-CJ1yJm0s.js +0 -12966
  245. package/dist/mermaid-parser.core-CxTcWSA2.cjs +0 -128
  246. package/dist/mindmap-definition-VGOIOE7T-BPUEmP7g.cjs +0 -68
  247. package/dist/mindmap-definition-VGOIOE7T-DSqZBgzR.js +0 -784
  248. package/dist/ordinal-CagbB1m8.cjs +0 -1
  249. package/dist/ordinal-DfAQgscy.js +0 -61
  250. package/dist/packet-HUATNLJX-B-qfkr5X.cjs +0 -1
  251. package/dist/packet-HUATNLJX-Dxob_meO.js +0 -5
  252. package/dist/pie-WTHONI2E-BRtdTGWt.js +0 -5
  253. package/dist/pie-WTHONI2E-DK7f6qJw.cjs +0 -1
  254. package/dist/pieDiagram-ADFJNKIX-Dhq_bEzm.js +0 -161
  255. package/dist/pieDiagram-ADFJNKIX-V04ms3gr.cjs +0 -30
  256. package/dist/quadrantDiagram-AYHSOK5B-C97bOmUE.js +0 -1022
  257. package/dist/quadrantDiagram-AYHSOK5B-DlqFPVhi.cjs +0 -7
  258. package/dist/radar-NJJJXTRR-B9jT3LP3.cjs +0 -1
  259. package/dist/radar-NJJJXTRR-D8plmle3.js +0 -5
  260. package/dist/requirementDiagram-UZGBJVZJ-BxVMLKfQ.js +0 -850
  261. package/dist/requirementDiagram-UZGBJVZJ-DENJ74Ew.cjs +0 -64
  262. package/dist/sankeyDiagram-TZEHDZUN-DwgW7Suq.js +0 -810
  263. package/dist/sankeyDiagram-TZEHDZUN-lTBLhaSq.cjs +0 -10
  264. package/dist/sequenceDiagram-WL72ISMW-BAOeX1dA.js +0 -2511
  265. package/dist/sequenceDiagram-WL72ISMW-BRVvH1X4.cjs +0 -145
  266. package/dist/stateDiagram-FKZM4ZOC-BrFQE7Gl.js +0 -263
  267. package/dist/stateDiagram-FKZM4ZOC-D8GjooGL.cjs +0 -1
  268. package/dist/stateDiagram-v2-4FDKWEC3-4VRIY-eH.cjs +0 -1
  269. package/dist/stateDiagram-v2-4FDKWEC3-DnrWD6a3.js +0 -16
  270. package/dist/timeline-definition-IT6M3QCI-BJMIlueb.js +0 -795
  271. package/dist/timeline-definition-IT6M3QCI-BQFGUuGP.cjs +0 -61
  272. package/dist/treemap-75Q7IDZK-BX1vBFWf.cjs +0 -1
  273. package/dist/treemap-75Q7IDZK-CMTkunTV.js +0 -5
  274. package/dist/viewer-CZUSHxhf.js +0 -19131
  275. package/dist/viewer-Canph5Zx.cjs +0 -305
  276. package/dist/xychartDiagram-PRI3JC2R-Sl8WX8wc.cjs +0 -7
  277. package/dist/xychartDiagram-PRI3JC2R-WnFI7Ezu.js +0 -1340
@@ -0,0 +1,963 @@
1
+ import { c as e, l as t } from "./custom-D-TzPpWT.js";
2
+ import { g as n, h as r } from "./src-BuisGndr.js";
3
+ import { $ as i, D as a, I as o, Q as s, Z as c, b as l, d as u } from "./chunk-ABZYJK2D-DDrmE3Q7.js";
4
+ import "./chunk-S3R3BYOJ-CG6GoSCd.js";
5
+ import "./chunk-HN2XXSSU-CJL8wAZ2.js";
6
+ import "./chunk-CVBHYZKI-CiCGetln.js";
7
+ import "./chunk-ATLVNIR6-DHlCNWnJ.js";
8
+ import "./chunk-JA3XYJ7Z-CpKHrbOX.js";
9
+ import "./chunk-JZLCHNYA-CYo7ykJf.js";
10
+ import "./chunk-QXUST7PY-CxCAwQqP.js";
11
+ import { t as d } from "./chunk-55IACEB6-DWUqxxdp.js";
12
+ import { t as f } from "./chunk-QN33PNHL-BFbXAWI4.js";
13
+ //#region node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/stringify.js
14
+ var p = [];
15
+ for (let e = 0; e < 256; ++e) p.push((e + 256).toString(16).slice(1));
16
+ function m(e, t = 0) {
17
+ return (p[e[t + 0]] + p[e[t + 1]] + p[e[t + 2]] + p[e[t + 3]] + "-" + p[e[t + 4]] + p[e[t + 5]] + "-" + p[e[t + 6]] + p[e[t + 7]] + "-" + p[e[t + 8]] + p[e[t + 9]] + "-" + p[e[t + 10]] + p[e[t + 11]] + p[e[t + 12]] + p[e[t + 13]] + p[e[t + 14]] + p[e[t + 15]]).toLowerCase();
18
+ }
19
+ //#endregion
20
+ //#region node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/rng.js
21
+ var h, g = new Uint8Array(16);
22
+ function _() {
23
+ if (!h) {
24
+ if (typeof crypto > "u" || !crypto.getRandomValues) throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
25
+ h = crypto.getRandomValues.bind(crypto);
26
+ }
27
+ return h(g);
28
+ }
29
+ var v = { randomUUID: typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto) };
30
+ //#endregion
31
+ //#region node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/v4.js
32
+ function y(e, t, n) {
33
+ if (v.randomUUID && !t && !e) return v.randomUUID();
34
+ e ||= {};
35
+ let r = e.random ?? e.rng?.() ?? _();
36
+ if (r.length < 16) throw Error("Random bytes length must be >= 16");
37
+ if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t) {
38
+ if (n ||= 0, n < 0 || n + 16 > t.length) throw RangeError(`UUID byte range ${n}:${n + 15} is out of buffer bounds`);
39
+ for (let e = 0; e < 16; ++e) t[n + e] = r[e];
40
+ return t;
41
+ }
42
+ return m(r);
43
+ }
44
+ //#endregion
45
+ //#region node_modules/.pnpm/mermaid@11.12.0/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-VGOIOE7T.mjs
46
+ var b = (function() {
47
+ var e = /* @__PURE__ */ r(function(e, t, n, r) {
48
+ for (n ||= {}, r = e.length; r--; n[e[r]] = t);
49
+ return n;
50
+ }, "o"), t = [1, 4], n = [1, 13], i = [1, 12], a = [1, 15], o = [1, 16], s = [1, 20], c = [1, 19], l = [
51
+ 6,
52
+ 7,
53
+ 8
54
+ ], u = [1, 26], d = [1, 24], f = [1, 25], p = [
55
+ 6,
56
+ 7,
57
+ 11
58
+ ], m = [
59
+ 1,
60
+ 6,
61
+ 13,
62
+ 15,
63
+ 16,
64
+ 19,
65
+ 22
66
+ ], h = [1, 33], g = [1, 34], _ = [
67
+ 1,
68
+ 6,
69
+ 7,
70
+ 11,
71
+ 13,
72
+ 15,
73
+ 16,
74
+ 19,
75
+ 22
76
+ ], v = {
77
+ trace: /* @__PURE__ */ r(function() {}, "trace"),
78
+ yy: {},
79
+ symbols_: {
80
+ error: 2,
81
+ start: 3,
82
+ mindMap: 4,
83
+ spaceLines: 5,
84
+ SPACELINE: 6,
85
+ NL: 7,
86
+ MINDMAP: 8,
87
+ document: 9,
88
+ stop: 10,
89
+ EOF: 11,
90
+ statement: 12,
91
+ SPACELIST: 13,
92
+ node: 14,
93
+ ICON: 15,
94
+ CLASS: 16,
95
+ nodeWithId: 17,
96
+ nodeWithoutId: 18,
97
+ NODE_DSTART: 19,
98
+ NODE_DESCR: 20,
99
+ NODE_DEND: 21,
100
+ NODE_ID: 22,
101
+ $accept: 0,
102
+ $end: 1
103
+ },
104
+ terminals_: {
105
+ 2: "error",
106
+ 6: "SPACELINE",
107
+ 7: "NL",
108
+ 8: "MINDMAP",
109
+ 11: "EOF",
110
+ 13: "SPACELIST",
111
+ 15: "ICON",
112
+ 16: "CLASS",
113
+ 19: "NODE_DSTART",
114
+ 20: "NODE_DESCR",
115
+ 21: "NODE_DEND",
116
+ 22: "NODE_ID"
117
+ },
118
+ productions_: [
119
+ 0,
120
+ [3, 1],
121
+ [3, 2],
122
+ [5, 1],
123
+ [5, 2],
124
+ [5, 2],
125
+ [4, 2],
126
+ [4, 3],
127
+ [10, 1],
128
+ [10, 1],
129
+ [10, 1],
130
+ [10, 2],
131
+ [10, 2],
132
+ [9, 3],
133
+ [9, 2],
134
+ [12, 2],
135
+ [12, 2],
136
+ [12, 2],
137
+ [12, 1],
138
+ [12, 1],
139
+ [12, 1],
140
+ [12, 1],
141
+ [12, 1],
142
+ [14, 1],
143
+ [14, 1],
144
+ [18, 3],
145
+ [17, 1],
146
+ [17, 4]
147
+ ],
148
+ performAction: /* @__PURE__ */ r(function(e, t, n, r, i, a, o) {
149
+ var s = a.length - 1;
150
+ switch (i) {
151
+ case 6:
152
+ case 7: return r;
153
+ case 8:
154
+ r.getLogger().trace("Stop NL ");
155
+ break;
156
+ case 9:
157
+ r.getLogger().trace("Stop EOF ");
158
+ break;
159
+ case 11:
160
+ r.getLogger().trace("Stop NL2 ");
161
+ break;
162
+ case 12:
163
+ r.getLogger().trace("Stop EOF2 ");
164
+ break;
165
+ case 15:
166
+ r.getLogger().info("Node: ", a[s].id), r.addNode(a[s - 1].length, a[s].id, a[s].descr, a[s].type);
167
+ break;
168
+ case 16:
169
+ r.getLogger().trace("Icon: ", a[s]), r.decorateNode({ icon: a[s] });
170
+ break;
171
+ case 17:
172
+ case 21:
173
+ r.decorateNode({ class: a[s] });
174
+ break;
175
+ case 18:
176
+ r.getLogger().trace("SPACELIST");
177
+ break;
178
+ case 19:
179
+ r.getLogger().trace("Node: ", a[s].id), r.addNode(0, a[s].id, a[s].descr, a[s].type);
180
+ break;
181
+ case 20:
182
+ r.decorateNode({ icon: a[s] });
183
+ break;
184
+ case 25:
185
+ r.getLogger().trace("node found ..", a[s - 2]), this.$ = {
186
+ id: a[s - 1],
187
+ descr: a[s - 1],
188
+ type: r.getType(a[s - 2], a[s])
189
+ };
190
+ break;
191
+ case 26:
192
+ this.$ = {
193
+ id: a[s],
194
+ descr: a[s],
195
+ type: r.nodeType.DEFAULT
196
+ };
197
+ break;
198
+ case 27:
199
+ r.getLogger().trace("node found ..", a[s - 3]), this.$ = {
200
+ id: a[s - 3],
201
+ descr: a[s - 1],
202
+ type: r.getType(a[s - 2], a[s])
203
+ };
204
+ break;
205
+ }
206
+ }, "anonymous"),
207
+ table: [
208
+ {
209
+ 3: 1,
210
+ 4: 2,
211
+ 5: 3,
212
+ 6: [1, 5],
213
+ 8: t
214
+ },
215
+ { 1: [3] },
216
+ { 1: [2, 1] },
217
+ {
218
+ 4: 6,
219
+ 6: [1, 7],
220
+ 7: [1, 8],
221
+ 8: t
222
+ },
223
+ {
224
+ 6: n,
225
+ 7: [1, 10],
226
+ 9: 9,
227
+ 12: 11,
228
+ 13: i,
229
+ 14: 14,
230
+ 15: a,
231
+ 16: o,
232
+ 17: 17,
233
+ 18: 18,
234
+ 19: s,
235
+ 22: c
236
+ },
237
+ e(l, [2, 3]),
238
+ { 1: [2, 2] },
239
+ e(l, [2, 4]),
240
+ e(l, [2, 5]),
241
+ {
242
+ 1: [2, 6],
243
+ 6: n,
244
+ 12: 21,
245
+ 13: i,
246
+ 14: 14,
247
+ 15: a,
248
+ 16: o,
249
+ 17: 17,
250
+ 18: 18,
251
+ 19: s,
252
+ 22: c
253
+ },
254
+ {
255
+ 6: n,
256
+ 9: 22,
257
+ 12: 11,
258
+ 13: i,
259
+ 14: 14,
260
+ 15: a,
261
+ 16: o,
262
+ 17: 17,
263
+ 18: 18,
264
+ 19: s,
265
+ 22: c
266
+ },
267
+ {
268
+ 6: u,
269
+ 7: d,
270
+ 10: 23,
271
+ 11: f
272
+ },
273
+ e(p, [2, 22], {
274
+ 17: 17,
275
+ 18: 18,
276
+ 14: 27,
277
+ 15: [1, 28],
278
+ 16: [1, 29],
279
+ 19: s,
280
+ 22: c
281
+ }),
282
+ e(p, [2, 18]),
283
+ e(p, [2, 19]),
284
+ e(p, [2, 20]),
285
+ e(p, [2, 21]),
286
+ e(p, [2, 23]),
287
+ e(p, [2, 24]),
288
+ e(p, [2, 26], { 19: [1, 30] }),
289
+ { 20: [1, 31] },
290
+ {
291
+ 6: u,
292
+ 7: d,
293
+ 10: 32,
294
+ 11: f
295
+ },
296
+ {
297
+ 1: [2, 7],
298
+ 6: n,
299
+ 12: 21,
300
+ 13: i,
301
+ 14: 14,
302
+ 15: a,
303
+ 16: o,
304
+ 17: 17,
305
+ 18: 18,
306
+ 19: s,
307
+ 22: c
308
+ },
309
+ e(m, [2, 14], {
310
+ 7: h,
311
+ 11: g
312
+ }),
313
+ e(_, [2, 8]),
314
+ e(_, [2, 9]),
315
+ e(_, [2, 10]),
316
+ e(p, [2, 15]),
317
+ e(p, [2, 16]),
318
+ e(p, [2, 17]),
319
+ { 20: [1, 35] },
320
+ { 21: [1, 36] },
321
+ e(m, [2, 13], {
322
+ 7: h,
323
+ 11: g
324
+ }),
325
+ e(_, [2, 11]),
326
+ e(_, [2, 12]),
327
+ { 21: [1, 37] },
328
+ e(p, [2, 25]),
329
+ e(p, [2, 27])
330
+ ],
331
+ defaultActions: {
332
+ 2: [2, 1],
333
+ 6: [2, 2]
334
+ },
335
+ parseError: /* @__PURE__ */ r(function(e, t) {
336
+ if (t.recoverable) this.trace(e);
337
+ else {
338
+ var n = Error(e);
339
+ throw n.hash = t, n;
340
+ }
341
+ }, "parseError"),
342
+ parse: /* @__PURE__ */ r(function(e) {
343
+ var t = this, n = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
344
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
345
+ h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
346
+ var v = h.yylloc;
347
+ o.push(v);
348
+ var y = h.options && h.options.ranges;
349
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
350
+ function b(e) {
351
+ n.length -= 2 * e, a.length -= e, o.length -= e;
352
+ }
353
+ r(b, "popStack");
354
+ function x() {
355
+ var e = i.pop() || h.lex() || p;
356
+ return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = t.symbols_[e] || e), e;
357
+ }
358
+ r(x, "lex");
359
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
360
+ if (w = n[n.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
361
+ var M = "";
362
+ for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
363
+ M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
364
+ text: h.match,
365
+ token: this.terminals_[S] || S,
366
+ line: h.yylineno,
367
+ loc: v,
368
+ expected: j
369
+ });
370
+ }
371
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
372
+ switch (T[0]) {
373
+ case 1:
374
+ n.push(S), a.push(h.yytext), o.push(h.yylloc), n.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
375
+ break;
376
+ case 2:
377
+ if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
378
+ first_line: o[o.length - (k || 1)].first_line,
379
+ last_line: o[o.length - 1].last_line,
380
+ first_column: o[o.length - (k || 1)].first_column,
381
+ last_column: o[o.length - 1].last_column
382
+ }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
383
+ c,
384
+ u,
385
+ l,
386
+ g.yy,
387
+ T[1],
388
+ a,
389
+ o
390
+ ].concat(m)), E !== void 0) return E;
391
+ k && (n = n.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), n.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[n[n.length - 2]][n[n.length - 1]], n.push(A);
392
+ break;
393
+ case 3: return !0;
394
+ }
395
+ }
396
+ return !0;
397
+ }, "parse")
398
+ };
399
+ v.lexer = /* @__PURE__ */ (function() {
400
+ return {
401
+ EOF: 1,
402
+ parseError: /* @__PURE__ */ r(function(e, t) {
403
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
404
+ else throw Error(e);
405
+ }, "parseError"),
406
+ setInput: /* @__PURE__ */ r(function(e, t) {
407
+ return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
408
+ first_line: 1,
409
+ first_column: 0,
410
+ last_line: 1,
411
+ last_column: 0
412
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
413
+ }, "setInput"),
414
+ input: /* @__PURE__ */ r(function() {
415
+ var e = this._input[0];
416
+ return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
417
+ }, "input"),
418
+ unput: /* @__PURE__ */ r(function(e) {
419
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
420
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
421
+ var r = this.match.split(/(?:\r\n?|\n)/g);
422
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
423
+ var i = this.yylloc.range;
424
+ return this.yylloc = {
425
+ first_line: this.yylloc.first_line,
426
+ last_line: this.yylineno + 1,
427
+ first_column: this.yylloc.first_column,
428
+ last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
429
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
430
+ }, "unput"),
431
+ more: /* @__PURE__ */ r(function() {
432
+ return this._more = !0, this;
433
+ }, "more"),
434
+ reject: /* @__PURE__ */ r(function() {
435
+ if (this.options.backtrack_lexer) this._backtrack = !0;
436
+ else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
437
+ text: "",
438
+ token: null,
439
+ line: this.yylineno
440
+ });
441
+ return this;
442
+ }, "reject"),
443
+ less: /* @__PURE__ */ r(function(e) {
444
+ this.unput(this.match.slice(e));
445
+ }, "less"),
446
+ pastInput: /* @__PURE__ */ r(function() {
447
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
448
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
449
+ }, "pastInput"),
450
+ upcomingInput: /* @__PURE__ */ r(function() {
451
+ var e = this.match;
452
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
453
+ }, "upcomingInput"),
454
+ showPosition: /* @__PURE__ */ r(function() {
455
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
456
+ return e + this.upcomingInput() + "\n" + t + "^";
457
+ }, "showPosition"),
458
+ test_match: /* @__PURE__ */ r(function(e, t) {
459
+ var n, r, i;
460
+ if (this.options.backtrack_lexer && (i = {
461
+ yylineno: this.yylineno,
462
+ yylloc: {
463
+ first_line: this.yylloc.first_line,
464
+ last_line: this.last_line,
465
+ first_column: this.yylloc.first_column,
466
+ last_column: this.yylloc.last_column
467
+ },
468
+ yytext: this.yytext,
469
+ match: this.match,
470
+ matches: this.matches,
471
+ matched: this.matched,
472
+ yyleng: this.yyleng,
473
+ offset: this.offset,
474
+ _more: this._more,
475
+ _input: this._input,
476
+ yy: this.yy,
477
+ conditionStack: this.conditionStack.slice(0),
478
+ done: this.done
479
+ }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
480
+ first_line: this.yylloc.last_line,
481
+ last_line: this.yylineno + 1,
482
+ first_column: this.yylloc.last_column,
483
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
484
+ }, this.yytext += e[0], this.match += e[0], this.matches = e, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
485
+ if (this._backtrack) {
486
+ for (var a in i) this[a] = i[a];
487
+ return !1;
488
+ }
489
+ return !1;
490
+ }, "test_match"),
491
+ next: /* @__PURE__ */ r(function() {
492
+ if (this.done) return this.EOF;
493
+ this._input || (this.done = !0);
494
+ var e, t, n, r;
495
+ this._more || (this.yytext = "", this.match = "");
496
+ for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
497
+ if (t = n, r = a, this.options.backtrack_lexer) {
498
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
499
+ if (this._backtrack) {
500
+ t = !1;
501
+ continue;
502
+ } else return !1;
503
+ } else if (!this.options.flex) break;
504
+ }
505
+ return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
506
+ text: "",
507
+ token: null,
508
+ line: this.yylineno
509
+ });
510
+ }, "next"),
511
+ lex: /* @__PURE__ */ r(function() {
512
+ return this.next() || this.lex();
513
+ }, "lex"),
514
+ begin: /* @__PURE__ */ r(function(e) {
515
+ this.conditionStack.push(e);
516
+ }, "begin"),
517
+ popState: /* @__PURE__ */ r(function() {
518
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
519
+ }, "popState"),
520
+ _currentRules: /* @__PURE__ */ r(function() {
521
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
522
+ }, "_currentRules"),
523
+ topState: /* @__PURE__ */ r(function(e) {
524
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
525
+ }, "topState"),
526
+ pushState: /* @__PURE__ */ r(function(e) {
527
+ this.begin(e);
528
+ }, "pushState"),
529
+ stateStackSize: /* @__PURE__ */ r(function() {
530
+ return this.conditionStack.length;
531
+ }, "stateStackSize"),
532
+ options: { "case-insensitive": !0 },
533
+ performAction: /* @__PURE__ */ r(function(e, t, n, r) {
534
+ switch (n) {
535
+ case 0: return e.getLogger().trace("Found comment", t.yytext), 6;
536
+ case 1: return 8;
537
+ case 2:
538
+ this.begin("CLASS");
539
+ break;
540
+ case 3: return this.popState(), 16;
541
+ case 4:
542
+ this.popState();
543
+ break;
544
+ case 5:
545
+ e.getLogger().trace("Begin icon"), this.begin("ICON");
546
+ break;
547
+ case 6: return e.getLogger().trace("SPACELINE"), 6;
548
+ case 7: return 7;
549
+ case 8: return 15;
550
+ case 9:
551
+ e.getLogger().trace("end icon"), this.popState();
552
+ break;
553
+ case 10: return e.getLogger().trace("Exploding node"), this.begin("NODE"), 19;
554
+ case 11: return e.getLogger().trace("Cloud"), this.begin("NODE"), 19;
555
+ case 12: return e.getLogger().trace("Explosion Bang"), this.begin("NODE"), 19;
556
+ case 13: return e.getLogger().trace("Cloud Bang"), this.begin("NODE"), 19;
557
+ case 14: return this.begin("NODE"), 19;
558
+ case 15: return this.begin("NODE"), 19;
559
+ case 16: return this.begin("NODE"), 19;
560
+ case 17: return this.begin("NODE"), 19;
561
+ case 18: return 13;
562
+ case 19: return 22;
563
+ case 20: return 11;
564
+ case 21:
565
+ this.begin("NSTR2");
566
+ break;
567
+ case 22: return "NODE_DESCR";
568
+ case 23:
569
+ this.popState();
570
+ break;
571
+ case 24:
572
+ e.getLogger().trace("Starting NSTR"), this.begin("NSTR");
573
+ break;
574
+ case 25: return e.getLogger().trace("description:", t.yytext), "NODE_DESCR";
575
+ case 26:
576
+ this.popState();
577
+ break;
578
+ case 27: return this.popState(), e.getLogger().trace("node end ))"), "NODE_DEND";
579
+ case 28: return this.popState(), e.getLogger().trace("node end )"), "NODE_DEND";
580
+ case 29: return this.popState(), e.getLogger().trace("node end ...", t.yytext), "NODE_DEND";
581
+ case 30: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
582
+ case 31: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
583
+ case 32: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
584
+ case 33: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
585
+ case 34: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
586
+ case 35: return e.getLogger().trace("Long description:", t.yytext), 20;
587
+ case 36: return e.getLogger().trace("Long description:", t.yytext), 20;
588
+ }
589
+ }, "anonymous"),
590
+ rules: [
591
+ /^(?:\s*%%.*)/i,
592
+ /^(?:mindmap\b)/i,
593
+ /^(?::::)/i,
594
+ /^(?:.+)/i,
595
+ /^(?:\n)/i,
596
+ /^(?:::icon\()/i,
597
+ /^(?:[\s]+[\n])/i,
598
+ /^(?:[\n]+)/i,
599
+ /^(?:[^\)]+)/i,
600
+ /^(?:\))/i,
601
+ /^(?:-\))/i,
602
+ /^(?:\(-)/i,
603
+ /^(?:\)\))/i,
604
+ /^(?:\))/i,
605
+ /^(?:\(\()/i,
606
+ /^(?:\{\{)/i,
607
+ /^(?:\()/i,
608
+ /^(?:\[)/i,
609
+ /^(?:[\s]+)/i,
610
+ /^(?:[^\(\[\n\)\{\}]+)/i,
611
+ /^(?:$)/i,
612
+ /^(?:["][`])/i,
613
+ /^(?:[^`"]+)/i,
614
+ /^(?:[`]["])/i,
615
+ /^(?:["])/i,
616
+ /^(?:[^"]+)/i,
617
+ /^(?:["])/i,
618
+ /^(?:[\)]\))/i,
619
+ /^(?:[\)])/i,
620
+ /^(?:[\]])/i,
621
+ /^(?:\}\})/i,
622
+ /^(?:\(-)/i,
623
+ /^(?:-\))/i,
624
+ /^(?:\(\()/i,
625
+ /^(?:\()/i,
626
+ /^(?:[^\)\]\(\}]+)/i,
627
+ /^(?:.+(?!\(\())/i
628
+ ],
629
+ conditions: {
630
+ CLASS: {
631
+ rules: [3, 4],
632
+ inclusive: !1
633
+ },
634
+ ICON: {
635
+ rules: [8, 9],
636
+ inclusive: !1
637
+ },
638
+ NSTR2: {
639
+ rules: [22, 23],
640
+ inclusive: !1
641
+ },
642
+ NSTR: {
643
+ rules: [25, 26],
644
+ inclusive: !1
645
+ },
646
+ NODE: {
647
+ rules: [
648
+ 21,
649
+ 24,
650
+ 27,
651
+ 28,
652
+ 29,
653
+ 30,
654
+ 31,
655
+ 32,
656
+ 33,
657
+ 34,
658
+ 35,
659
+ 36
660
+ ],
661
+ inclusive: !1
662
+ },
663
+ INITIAL: {
664
+ rules: [
665
+ 0,
666
+ 1,
667
+ 2,
668
+ 5,
669
+ 6,
670
+ 7,
671
+ 10,
672
+ 11,
673
+ 12,
674
+ 13,
675
+ 14,
676
+ 15,
677
+ 16,
678
+ 17,
679
+ 18,
680
+ 19,
681
+ 20
682
+ ],
683
+ inclusive: !0
684
+ }
685
+ }
686
+ };
687
+ })();
688
+ function y() {
689
+ this.yy = {};
690
+ }
691
+ return r(y, "Parser"), y.prototype = v, v.Parser = y, new y();
692
+ })();
693
+ b.parser = b;
694
+ var x = b, S = {
695
+ DEFAULT: 0,
696
+ NO_BORDER: 0,
697
+ ROUNDED_RECT: 1,
698
+ RECT: 2,
699
+ CIRCLE: 3,
700
+ CLOUD: 4,
701
+ BANG: 5,
702
+ HEXAGON: 6
703
+ }, C = class {
704
+ constructor() {
705
+ this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType = S, this.clear(), this.getType = this.getType.bind(this), this.getElementById = this.getElementById.bind(this), this.getParent = this.getParent.bind(this), this.getMindmap = this.getMindmap.bind(this), this.addNode = this.addNode.bind(this), this.decorateNode = this.decorateNode.bind(this);
706
+ }
707
+ static {
708
+ r(this, "MindmapDB");
709
+ }
710
+ clear() {
711
+ this.nodes = [], this.count = 0, this.elements = {}, this.baseLevel = void 0;
712
+ }
713
+ getParent(e) {
714
+ for (let t = this.nodes.length - 1; t >= 0; t--) if (this.nodes[t].level < e) return this.nodes[t];
715
+ return null;
716
+ }
717
+ getMindmap() {
718
+ return this.nodes.length > 0 ? this.nodes[0] : null;
719
+ }
720
+ addNode(e, t, r, i) {
721
+ n.info("addNode", e, t, r, i);
722
+ let a = !1;
723
+ this.nodes.length === 0 ? (this.baseLevel = e, e = 0, a = !0) : this.baseLevel !== void 0 && (e -= this.baseLevel, a = !1);
724
+ let s = l(), c = s.mindmap?.padding ?? u.mindmap.padding;
725
+ switch (i) {
726
+ case this.nodeType.ROUNDED_RECT:
727
+ case this.nodeType.RECT:
728
+ case this.nodeType.HEXAGON:
729
+ c *= 2;
730
+ break;
731
+ }
732
+ let d = {
733
+ id: this.count++,
734
+ nodeId: o(t, s),
735
+ level: e,
736
+ descr: o(r, s),
737
+ type: i,
738
+ children: [],
739
+ width: s.mindmap?.maxNodeWidth ?? u.mindmap.maxNodeWidth,
740
+ padding: c,
741
+ isRoot: a
742
+ }, f = this.getParent(e);
743
+ if (f) f.children.push(d), this.nodes.push(d);
744
+ else if (a) this.nodes.push(d);
745
+ else throw Error(`There can be only one root. No parent could be found for ("${d.descr}")`);
746
+ }
747
+ getType(e, t) {
748
+ switch (n.debug("In get type", e, t), e) {
749
+ case "[": return this.nodeType.RECT;
750
+ case "(": return t === ")" ? this.nodeType.ROUNDED_RECT : this.nodeType.CLOUD;
751
+ case "((": return this.nodeType.CIRCLE;
752
+ case ")": return this.nodeType.CLOUD;
753
+ case "))": return this.nodeType.BANG;
754
+ case "{{": return this.nodeType.HEXAGON;
755
+ default: return this.nodeType.DEFAULT;
756
+ }
757
+ }
758
+ setElementForId(e, t) {
759
+ this.elements[e] = t;
760
+ }
761
+ getElementById(e) {
762
+ return this.elements[e];
763
+ }
764
+ decorateNode(e) {
765
+ if (!e) return;
766
+ let t = l(), n = this.nodes[this.nodes.length - 1];
767
+ e.icon && (n.icon = o(e.icon, t)), e.class && (n.class = o(e.class, t));
768
+ }
769
+ type2Str(e) {
770
+ switch (e) {
771
+ case this.nodeType.DEFAULT: return "no-border";
772
+ case this.nodeType.RECT: return "rect";
773
+ case this.nodeType.ROUNDED_RECT: return "rounded-rect";
774
+ case this.nodeType.CIRCLE: return "circle";
775
+ case this.nodeType.CLOUD: return "cloud";
776
+ case this.nodeType.BANG: return "bang";
777
+ case this.nodeType.HEXAGON: return "hexgon";
778
+ default: return "no-border";
779
+ }
780
+ }
781
+ assignSections(e, t) {
782
+ if (e.level === 0 ? e.section = void 0 : e.section = t, e.children) for (let [n, r] of e.children.entries()) {
783
+ let i = e.level === 0 ? n : t;
784
+ this.assignSections(r, i);
785
+ }
786
+ }
787
+ flattenNodes(e, t) {
788
+ let n = ["mindmap-node"];
789
+ e.isRoot === !0 ? n.push("section-root", "section--1") : e.section !== void 0 && n.push(`section-${e.section}`), e.class && n.push(e.class);
790
+ let i = n.join(" "), a = /* @__PURE__ */ r((e) => {
791
+ switch (e) {
792
+ case S.CIRCLE: return "mindmapCircle";
793
+ case S.RECT: return "rect";
794
+ case S.ROUNDED_RECT: return "rounded";
795
+ case S.CLOUD: return "cloud";
796
+ case S.BANG: return "bang";
797
+ case S.HEXAGON: return "hexagon";
798
+ case S.DEFAULT: return "defaultMindmapNode";
799
+ case S.NO_BORDER:
800
+ default: return "rect";
801
+ }
802
+ }, "getShapeFromType"), o = {
803
+ id: e.id.toString(),
804
+ domId: "node_" + e.id.toString(),
805
+ label: e.descr,
806
+ isGroup: !1,
807
+ shape: a(e.type),
808
+ width: e.width,
809
+ height: e.height ?? 0,
810
+ padding: e.padding,
811
+ cssClasses: i,
812
+ cssStyles: [],
813
+ look: "default",
814
+ icon: e.icon,
815
+ x: e.x,
816
+ y: e.y,
817
+ level: e.level,
818
+ nodeId: e.nodeId,
819
+ type: e.type,
820
+ section: e.section
821
+ };
822
+ if (t.push(o), e.children) for (let n of e.children) this.flattenNodes(n, t);
823
+ }
824
+ generateEdges(e, t) {
825
+ if (e.children) for (let n of e.children) {
826
+ let r = "edge";
827
+ n.section !== void 0 && (r += ` section-edge-${n.section}`);
828
+ let i = e.level + 1;
829
+ r += ` edge-depth-${i}`;
830
+ let a = {
831
+ id: `edge_${e.id}_${n.id}`,
832
+ start: e.id.toString(),
833
+ end: n.id.toString(),
834
+ type: "normal",
835
+ curve: "basis",
836
+ thickness: "normal",
837
+ look: "default",
838
+ classes: r,
839
+ depth: e.level,
840
+ section: n.section
841
+ };
842
+ t.push(a), this.generateEdges(n, t);
843
+ }
844
+ }
845
+ getData() {
846
+ let e = this.getMindmap(), t = l(), r = a().layout !== void 0, i = t;
847
+ if (r || (i.layout = "cose-bilkent"), !e) return {
848
+ nodes: [],
849
+ edges: [],
850
+ config: i
851
+ };
852
+ n.debug("getData: mindmapRoot", e, t), this.assignSections(e);
853
+ let o = [], s = [];
854
+ this.flattenNodes(e, o), this.generateEdges(e, s), n.debug(`getData: processed ${o.length} nodes and ${s.length} edges`);
855
+ let c = /* @__PURE__ */ new Map();
856
+ for (let e of o) c.set(e.id, {
857
+ shape: e.shape,
858
+ width: e.width,
859
+ height: e.height,
860
+ padding: e.padding
861
+ });
862
+ return {
863
+ nodes: o,
864
+ edges: s,
865
+ config: i,
866
+ rootNode: e,
867
+ markers: ["point"],
868
+ direction: "TB",
869
+ nodeSpacing: 50,
870
+ rankSpacing: 50,
871
+ shapes: Object.fromEntries(c),
872
+ type: "mindmap",
873
+ diagramId: "mindmap-" + y()
874
+ };
875
+ }
876
+ getLogger() {
877
+ return n;
878
+ }
879
+ }, w = { draw: /* @__PURE__ */ r(async (r, i, a, o) => {
880
+ n.debug("Rendering mindmap diagram\n" + r);
881
+ let s = o.db, c = s.getData(), l = d(i, c.config.securityLevel);
882
+ c.type = o.type, c.layoutAlgorithm = e(c.config.layout, { fallback: "cose-bilkent" }), c.diagramId = i, s.getMindmap() && (c.nodes.forEach((e) => {
883
+ e.shape === "rounded" ? (e.radius = 15, e.taper = 15, e.stroke = "none", e.width = 0, e.padding = 15) : e.shape === "circle" ? e.padding = 10 : e.shape === "rect" && (e.width = 0, e.padding = 10);
884
+ }), await t(c, l), f(l, c.config.mindmap?.padding ?? u.mindmap.padding, "mindmapDiagram", c.config.mindmap?.useMaxWidth ?? u.mindmap.useMaxWidth));
885
+ }, "draw") }, T = /* @__PURE__ */ r((e) => {
886
+ let t = "";
887
+ for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) e["lineColor" + t] = e["lineColor" + t] || e["cScaleInv" + t], i(e["lineColor" + t]) ? e["lineColor" + t] = s(e["lineColor" + t], 20) : e["lineColor" + t] = c(e["lineColor" + t], 20);
888
+ for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) {
889
+ let r = "" + (17 - 3 * n);
890
+ t += `
891
+ .section-${n - 1} rect, .section-${n - 1} path, .section-${n - 1} circle, .section-${n - 1} polygon, .section-${n - 1} path {
892
+ fill: ${e["cScale" + n]};
893
+ }
894
+ .section-${n - 1} text {
895
+ fill: ${e["cScaleLabel" + n]};
896
+ }
897
+ .node-icon-${n - 1} {
898
+ font-size: 40px;
899
+ color: ${e["cScaleLabel" + n]};
900
+ }
901
+ .section-edge-${n - 1}{
902
+ stroke: ${e["cScale" + n]};
903
+ }
904
+ .edge-depth-${n - 1}{
905
+ stroke-width: ${r};
906
+ }
907
+ .section-${n - 1} line {
908
+ stroke: ${e["cScaleInv" + n]} ;
909
+ stroke-width: 3;
910
+ }
911
+
912
+ .disabled, .disabled circle, .disabled text {
913
+ fill: lightgray;
914
+ }
915
+ .disabled text {
916
+ fill: #efefef;
917
+ }
918
+ `;
919
+ }
920
+ return t;
921
+ }, "genSections"), E = {
922
+ get db() {
923
+ return new C();
924
+ },
925
+ renderer: w,
926
+ parser: x,
927
+ styles: /* @__PURE__ */ r((e) => `
928
+ .edge {
929
+ stroke-width: 3;
930
+ }
931
+ ${T(e)}
932
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
933
+ fill: ${e.git0};
934
+ }
935
+ .section-root text {
936
+ fill: ${e.gitBranchLabel0};
937
+ }
938
+ .section-root span {
939
+ color: ${e.gitBranchLabel0};
940
+ }
941
+ .section-2 span {
942
+ color: ${e.gitBranchLabel0};
943
+ }
944
+ .icon-container {
945
+ height:100%;
946
+ display: flex;
947
+ justify-content: center;
948
+ align-items: center;
949
+ }
950
+ .edge {
951
+ fill: none;
952
+ }
953
+ .mindmap-node-label {
954
+ dy: 1em;
955
+ alignment-baseline: middle;
956
+ text-anchor: middle;
957
+ dominant-baseline: middle;
958
+ text-align: center;
959
+ }
960
+ `, "getStyles")
961
+ };
962
+ //#endregion
963
+ export { E as diagram };