mio-previewer 0.2.73 → 0.2.76

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 (282) hide show
  1. package/README.md +1 -0
  2. package/README.zh-CN.md +2 -1
  3. package/dist/_basePickBy-CXmXW7jd.js +166 -0
  4. package/dist/_basePickBy-CtuVwROD.cjs +1 -0
  5. package/dist/_baseUniq-CGoiOkSa.js +682 -0
  6. package/dist/_baseUniq-CYtOXxfV.cjs +1 -0
  7. package/dist/_createAssigner-DqH64jc7.cjs +1 -0
  8. package/dist/_createAssigner-IEX8lwxm.js +573 -0
  9. package/dist/arc-C78br9Yj.cjs +1 -0
  10. package/dist/arc-vLgDTVZZ.js +80 -0
  11. package/dist/architecture-O4VJ6CD3-B9qzjtV8.cjs +1 -0
  12. package/dist/architecture-O4VJ6CD3-wqAP4onK.js +2 -0
  13. package/dist/architectureDiagram-VXUJARFQ-CYbuyVAs.js +4039 -0
  14. package/dist/architectureDiagram-VXUJARFQ-DEGYSl1f.cjs +36 -0
  15. package/dist/array-CApNbSU9.js +6 -0
  16. package/dist/array-DZSRzHA_.cjs +1 -0
  17. package/dist/assets/parser.worker-Bzb1GItl.js +14 -0
  18. package/dist/blockDiagram-VD42YOAC-DaH3L5Ng.js +3009 -0
  19. package/dist/blockDiagram-VD42YOAC-DeX0dq72.cjs +122 -0
  20. package/dist/c4Diagram-YG6GDRKO-CIThIYo6.js +2959 -0
  21. package/dist/c4Diagram-YG6GDRKO-Dz6dif_9.cjs +10 -0
  22. package/dist/channel-BWHkpgVD.cjs +1 -0
  23. package/dist/channel-JT7eWw2w.js +5 -0
  24. package/dist/chunk-4BX2VUAB-BZTgbbzC.js +8 -0
  25. package/dist/chunk-4BX2VUAB-HXFjpyQg.cjs +1 -0
  26. package/dist/chunk-55IACEB6-DWUqxxdp.js +8 -0
  27. package/dist/chunk-55IACEB6-Hy_THNUs.cjs +1 -0
  28. package/dist/chunk-ABZYJK2D-CbIYYZa_.cjs +80 -0
  29. package/dist/chunk-ABZYJK2D-DDrmE3Q7.js +2518 -0
  30. package/dist/chunk-ATLVNIR6-DHlCNWnJ.js +67 -0
  31. package/dist/chunk-ATLVNIR6-shAOudT0.cjs +1 -0
  32. package/dist/chunk-B4BG7PRW-C67vroOS.cjs +165 -0
  33. package/dist/chunk-B4BG7PRW-DSYuK8dI.js +3116 -0
  34. package/dist/chunk-BNMv73og.cjs +1 -0
  35. package/dist/chunk-CVBHYZKI-CLVcv_xh.cjs +1 -0
  36. package/dist/chunk-CVBHYZKI-CiCGetln.js +12 -0
  37. package/dist/chunk-DI55MBZ5-BCvBgHrp.cjs +220 -0
  38. package/dist/chunk-DI55MBZ5-Clru0TyG.js +2000 -0
  39. package/dist/chunk-Dbv0sNQl.js +20 -0
  40. package/dist/chunk-FMBD7UC4-D4kohRVY.js +5 -0
  41. package/dist/{chunk-FMBD7UC4-DxkUZTpt.cjs → chunk-FMBD7UC4-DWMVCXKq.cjs} +2 -2
  42. package/dist/chunk-HN2XXSSU-BwmRMa2r.cjs +1 -0
  43. package/dist/chunk-HN2XXSSU-CJL8wAZ2.js +76 -0
  44. package/dist/chunk-JA3XYJ7Z-BaAdjYEy.cjs +70 -0
  45. package/dist/chunk-JA3XYJ7Z-CpKHrbOX.js +1849 -0
  46. package/dist/chunk-JZLCHNYA-CYo7ykJf.js +4863 -0
  47. package/dist/chunk-JZLCHNYA-CvPIQFXP.cjs +54 -0
  48. package/dist/chunk-QN33PNHL-BFbXAWI4.js +25 -0
  49. package/dist/chunk-QN33PNHL-Cu0FHarG.cjs +1 -0
  50. package/dist/chunk-QXUST7PY-CnnfdJrM.cjs +7 -0
  51. package/dist/chunk-QXUST7PY-CxCAwQqP.js +488 -0
  52. package/dist/chunk-QZHKN3VN-2e6nJr8c.cjs +1 -0
  53. package/dist/chunk-QZHKN3VN-Dal4kx9B.js +15 -0
  54. package/dist/chunk-S3R3BYOJ-B2ozcJNg.cjs +2 -0
  55. package/dist/chunk-S3R3BYOJ-CG6GoSCd.js +1119 -0
  56. package/dist/chunk-TZMSLE5B-CooeLs4Q.js +57 -0
  57. package/dist/chunk-TZMSLE5B-D92K1Ja5.cjs +1 -0
  58. package/dist/classDiagram-2ON5EDUG-Bv1XCvDZ.js +28 -0
  59. package/dist/classDiagram-2ON5EDUG-BzMV1CJW.cjs +1 -0
  60. package/dist/classDiagram-v2-WZHVMYZB-Bqxv5U7u.js +28 -0
  61. package/dist/classDiagram-v2-WZHVMYZB-BzMV1CJW.cjs +1 -0
  62. package/dist/clone-B0KDIkSS.js +8 -0
  63. package/dist/clone-wvtBTB6v.cjs +1 -0
  64. package/dist/cose-bilkent-S5V4N54A-DMHTv1aW.cjs +1 -0
  65. package/dist/cose-bilkent-S5V4N54A-bGPAcpg6.js +2250 -0
  66. package/dist/custom-Bl_fVJZ0.cjs +84 -0
  67. package/dist/custom-D-TzPpWT.js +5281 -0
  68. package/dist/cytoscape.esm-CElDUMAx.cjs +321 -0
  69. package/dist/cytoscape.esm-xf9dtmBj.js +18100 -0
  70. package/dist/dagre-6UL2VRFP-3bgUxzqG.js +294 -0
  71. package/dist/dagre-6UL2VRFP-B3NqmIxs.cjs +4 -0
  72. package/dist/dagre-BfAHSwtP.js +1472 -0
  73. package/dist/dagre-Buvkww-e.cjs +1 -0
  74. package/dist/defaultLocale-B5dSAwiC.js +201 -0
  75. package/dist/defaultLocale-G0HsdRIB.cjs +1 -0
  76. package/dist/diagram-PSM6KHXK-C4FjxUHt.cjs +24 -0
  77. package/dist/diagram-PSM6KHXK-CF8TkgzX.js +527 -0
  78. package/dist/diagram-QEK2KX5R-Dl3IHeA5.js +213 -0
  79. package/dist/diagram-QEK2KX5R-Z9DYjr44.cjs +43 -0
  80. package/dist/diagram-S2PKOQOG-Bib-zL2S.cjs +24 -0
  81. package/dist/diagram-S2PKOQOG-ZKvn7IEe.js +133 -0
  82. package/dist/dist-DC-lM4uX.cjs +1 -0
  83. package/dist/dist-zNcLEPGR.js +51 -0
  84. package/dist/erDiagram-Q2GNP2WA-DFMV9OUT.cjs +60 -0
  85. package/dist/erDiagram-Q2GNP2WA-DJYJEzEB.js +1600 -0
  86. package/dist/flowDiagram-NV44I4VS-7TxeawHS.cjs +162 -0
  87. package/dist/flowDiagram-NV44I4VS-CXa6ycqs.js +4128 -0
  88. package/dist/ganttDiagram-LVOFAZNH-DqT7pu4m.js +2869 -0
  89. package/dist/ganttDiagram-LVOFAZNH-iiExGpwF.cjs +267 -0
  90. package/dist/gitGraph-ZV4HHKMB-BjaEVcYh.cjs +1 -0
  91. package/dist/gitGraph-ZV4HHKMB-Cl2I6-l3.js +2 -0
  92. package/dist/gitGraphDiagram-NY62KEGX-Tphu_MeC.js +621 -0
  93. package/dist/gitGraphDiagram-NY62KEGX-k5xzXg7C.cjs +65 -0
  94. package/dist/graphlib-C3tPLMbC.js +225 -0
  95. package/dist/graphlib-Cdg0u3TT.cjs +1 -0
  96. package/dist/info-63CPKGFF-D2A5GDFo.js +2 -0
  97. package/dist/info-63CPKGFF-MRaucWlf.cjs +1 -0
  98. package/dist/infoDiagram-F6ZHWCRC-3Jwo4J0f.cjs +2 -0
  99. package/dist/infoDiagram-F6ZHWCRC-BUoruN76.js +19 -0
  100. package/dist/init-07zIhv_j.cjs +1 -0
  101. package/dist/init-Bwwdo3M6.js +15 -0
  102. package/dist/journeyDiagram-XKPGCS4Q-C_3oD9RV.cjs +139 -0
  103. package/dist/journeyDiagram-XKPGCS4Q-DB7INfrf.js +883 -0
  104. package/dist/kanban-definition-3W4ZIXB7-AVLIBuMF.js +968 -0
  105. package/dist/kanban-definition-3W4ZIXB7-txUXjKzB.cjs +89 -0
  106. package/dist/katex-6UpFeIdV.cjs +261 -0
  107. package/dist/katex-BHcJffnM.js +22112 -0
  108. package/dist/line-DYhVGH2B.js +34 -0
  109. package/dist/line-DdNAPGaw.cjs +1 -0
  110. package/dist/linear-n4_iirEu.js +289 -0
  111. package/dist/linear-rQLpRrSH.cjs +1 -0
  112. package/dist/loadCss-D6257oR0.js +8 -0
  113. package/dist/loadCss-DhrQh6-A.cjs +1 -0
  114. package/dist/markdown-it-Cz3KGZjR.cjs +2 -0
  115. package/dist/markdown-it-D-hH4G7k.js +173 -0
  116. package/dist/math-G8rF7UWn.cjs +1 -0
  117. package/dist/math-H49DsxYR.js +10 -0
  118. package/dist/mermaid-parser.core-B84fnaGG.js +11904 -0
  119. package/dist/mermaid-parser.core-C9EbhVVg.cjs +82 -0
  120. package/dist/mindmap-definition-VGOIOE7T-CXlyYsc6.cjs +68 -0
  121. package/dist/mindmap-definition-VGOIOE7T-VIt9sDN3.js +963 -0
  122. package/dist/mio-previewer.cjs.js +11 -21
  123. package/dist/mio-previewer.css +2 -9
  124. package/dist/mio-previewer.esm.js +4939 -0
  125. package/dist/ordinal-C55HfHHp.js +65 -0
  126. package/dist/ordinal-CUPR-p0T.cjs +1 -0
  127. package/dist/packet-HUATNLJX-CGNko_oS.cjs +1 -0
  128. package/dist/packet-HUATNLJX-CVx40lqO.js +2 -0
  129. package/dist/path-DNvJyUE8.js +85 -0
  130. package/dist/path-Kklx0M1v.cjs +1 -0
  131. package/dist/pie-WTHONI2E-BdPx0Cfg.cjs +1 -0
  132. package/dist/pie-WTHONI2E-DX5V8x0L.js +2 -0
  133. package/dist/pieDiagram-ADFJNKIX-BysReYfx.js +165 -0
  134. package/dist/pieDiagram-ADFJNKIX-CTT1YMsk.cjs +30 -0
  135. package/dist/plugins/custom.cjs.js +1 -1
  136. package/dist/plugins/custom.esm.js +2 -0
  137. package/dist/plugins/markdown-it.cjs.js +1 -3
  138. package/dist/plugins/markdown-it.esm.js +2 -0
  139. package/dist/quadrantDiagram-AYHSOK5B-8-V3cwsC.cjs +7 -0
  140. package/dist/quadrantDiagram-AYHSOK5B-DRutDK03.js +1974 -0
  141. package/dist/radar-NJJJXTRR-CTD6M8nl.js +2 -0
  142. package/dist/radar-NJJJXTRR-wJoTnQbj.cjs +1 -0
  143. package/dist/requirementDiagram-UZGBJVZJ-DFRpWnfW.cjs +64 -0
  144. package/dist/requirementDiagram-UZGBJVZJ-DNYoJyhG.js +2191 -0
  145. package/dist/sankeyDiagram-TZEHDZUN-B9fxDP0Q.cjs +10 -0
  146. package/dist/sankeyDiagram-TZEHDZUN-DD6bkI4Z.js +920 -0
  147. package/dist/sequenceDiagram-WL72ISMW-Bmptok1c.js +3562 -0
  148. package/dist/sequenceDiagram-WL72ISMW-D9sXtgAn.cjs +145 -0
  149. package/dist/src-BMjps4Ui.cjs +1 -0
  150. package/dist/src-BuisGndr.js +2149 -0
  151. package/dist/stateDiagram-FKZM4ZOC-Bmiw8fnW.js +217 -0
  152. package/dist/stateDiagram-FKZM4ZOC-DiD1WJPM.cjs +1 -0
  153. package/dist/stateDiagram-v2-4FDKWEC3-5ADhn1IF.js +27 -0
  154. package/dist/stateDiagram-v2-4FDKWEC3-BjhmCPL1.cjs +1 -0
  155. package/dist/timeline-definition-IT6M3QCI-C9VMls3W.js +830 -0
  156. package/dist/timeline-definition-IT6M3QCI-ZzbHXhNl.cjs +61 -0
  157. package/dist/treemap-75Q7IDZK-9TPMYr3R.cjs +1 -0
  158. package/dist/treemap-75Q7IDZK-u3p-cHDL.js +2 -0
  159. package/dist/types/plugins/custom/codeBlockPlugin.d.ts +8 -0
  160. package/dist/types/plugins/custom/mermaidPlugin.d.ts +4 -0
  161. package/dist/xychartDiagram-PRI3JC2R-BI6KuGZ2.cjs +7 -0
  162. package/dist/xychartDiagram-PRI3JC2R-BWabDL1u.js +2041 -0
  163. package/package.json +2 -2
  164. package/dist/_basePickBy-Be3yyf2d.js +0 -151
  165. package/dist/_basePickBy-Z0DtrAKQ.cjs +0 -1
  166. package/dist/_baseUniq-BXkA0Pgx.js +0 -614
  167. package/dist/_baseUniq-Dq2eV1vY.cjs +0 -1
  168. package/dist/arc-B-QGG8RZ.cjs +0 -1
  169. package/dist/arc-djW14lrn.js +0 -83
  170. package/dist/architecture-O4VJ6CD3-Cws_zM2K.cjs +0 -1
  171. package/dist/architecture-O4VJ6CD3-pdMXTCaT.js +0 -5
  172. package/dist/architectureDiagram-VXUJARFQ-BwchhvqL.js +0 -4661
  173. package/dist/architectureDiagram-VXUJARFQ-DxDLWGpO.cjs +0 -36
  174. package/dist/assets/parser.worker-67NQKZt5.js +0 -16
  175. package/dist/blockDiagram-VD42YOAC-B4Xc8gfX.cjs +0 -122
  176. package/dist/blockDiagram-VD42YOAC-DpPneP6J.js +0 -2261
  177. package/dist/c4Diagram-YG6GDRKO-695lQbrZ.cjs +0 -10
  178. package/dist/c4Diagram-YG6GDRKO-Cnlax2Xq.js +0 -1580
  179. package/dist/channel-D_ITz6Jy.cjs +0 -1
  180. package/dist/channel-sXy9EduO.js +0 -5
  181. package/dist/chunk-4BX2VUAB-Bdx3_f83.cjs +0 -1
  182. package/dist/chunk-4BX2VUAB-DRkGmgAZ.js +0 -8
  183. package/dist/chunk-55IACEB6-BB03hpRC.cjs +0 -1
  184. package/dist/chunk-55IACEB6-Ord5OQlh.js +0 -8
  185. package/dist/chunk-B4BG7PRW-Ca0fOgzA.cjs +0 -165
  186. package/dist/chunk-B4BG7PRW-D-cs8bDX.js +0 -1375
  187. package/dist/chunk-DI55MBZ5-BsRe2B2M.cjs +0 -220
  188. package/dist/chunk-DI55MBZ5-DSmlLD1s.js +0 -1370
  189. package/dist/chunk-FMBD7UC4-IYQmAMTo.js +0 -19
  190. package/dist/chunk-QN33PNHL-B7G6Qlf3.cjs +0 -1
  191. package/dist/chunk-QN33PNHL-EYMc4JVr.js +0 -19
  192. package/dist/chunk-QZHKN3VN-B8NJ6Ahx.cjs +0 -1
  193. package/dist/chunk-QZHKN3VN-C4WIG5z8.js +0 -15
  194. package/dist/chunk-TZMSLE5B-BoM53RHv.js +0 -64
  195. package/dist/chunk-TZMSLE5B-CgLDb48A.cjs +0 -1
  196. package/dist/classDiagram-2ON5EDUG-CxmdZvqc.js +0 -16
  197. package/dist/classDiagram-2ON5EDUG-DIRim8qa.cjs +0 -1
  198. package/dist/classDiagram-v2-WZHVMYZB-CxmdZvqc.js +0 -16
  199. package/dist/classDiagram-v2-WZHVMYZB-DIRim8qa.cjs +0 -1
  200. package/dist/clone-DOYxaT_d.js +0 -8
  201. package/dist/clone-DSlm33NG.cjs +0 -1
  202. package/dist/cose-bilkent-S5V4N54A-BD3p1OC_.cjs +0 -1
  203. package/dist/cose-bilkent-S5V4N54A-yLoaqH3G.js +0 -2608
  204. package/dist/cytoscape.esm-DHF7mANN.cjs +0 -331
  205. package/dist/cytoscape.esm-DfdJODL8.js +0 -18735
  206. package/dist/dagre-6UL2VRFP-DG1oQ4B2.cjs +0 -4
  207. package/dist/dagre-6UL2VRFP-VjboDBbp.js +0 -444
  208. package/dist/defaultLocale-D7EN2tov.js +0 -171
  209. package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
  210. package/dist/diagram-PSM6KHXK-C1p0l5TY.js +0 -531
  211. package/dist/diagram-PSM6KHXK-a4rni6rJ.cjs +0 -24
  212. package/dist/diagram-QEK2KX5R-CErKOsX1.cjs +0 -43
  213. package/dist/diagram-QEK2KX5R-CKmmuumX.js +0 -217
  214. package/dist/diagram-S2PKOQOG-B1M7qCNl.cjs +0 -24
  215. package/dist/diagram-S2PKOQOG-BMLCJExF.js +0 -142
  216. package/dist/erDiagram-Q2GNP2WA-BfuCa_Za.cjs +0 -60
  217. package/dist/erDiagram-Q2GNP2WA-fOTsQA-d.js +0 -841
  218. package/dist/flowDiagram-NV44I4VS-BEqeUuqz.cjs +0 -162
  219. package/dist/flowDiagram-NV44I4VS-DDwRAjVG.js +0 -1620
  220. package/dist/ganttDiagram-LVOFAZNH-BbuRS8g3.js +0 -2505
  221. package/dist/ganttDiagram-LVOFAZNH-BlVeWKRf.cjs +0 -267
  222. package/dist/gitGraph-ZV4HHKMB-Bmu8r_Iq.cjs +0 -1
  223. package/dist/gitGraph-ZV4HHKMB-DcQ2E4dF.js +0 -5
  224. package/dist/gitGraphDiagram-NY62KEGX-DcMEeNh7.cjs +0 -65
  225. package/dist/gitGraphDiagram-NY62KEGX-_sWVSKbL.js +0 -699
  226. package/dist/graph-DEnt0OtZ.js +0 -247
  227. package/dist/graph-Dgcjs2XL.cjs +0 -1
  228. package/dist/info-63CPKGFF-DVDDcoHy.js +0 -5
  229. package/dist/info-63CPKGFF-Dc3cWL0G.cjs +0 -1
  230. package/dist/infoDiagram-F6ZHWCRC-DoUSS0kC.js +0 -24
  231. package/dist/infoDiagram-F6ZHWCRC-ZeTrjgaE.cjs +0 -2
  232. package/dist/init-CHZsXQcr.cjs +0 -1
  233. package/dist/init-DjUOC4st.js +0 -16
  234. package/dist/journeyDiagram-XKPGCS4Q-DGe13iBu.js +0 -834
  235. package/dist/journeyDiagram-XKPGCS4Q-Ihl9g4mY.cjs +0 -139
  236. package/dist/kanban-definition-3W4ZIXB7-2qkrkVLK.cjs +0 -89
  237. package/dist/kanban-definition-3W4ZIXB7-BhWe5nMU.js +0 -719
  238. package/dist/katex-CmGeg_OO.js +0 -11692
  239. package/dist/katex-DEiiRhcn.cjs +0 -261
  240. package/dist/layout-BDNzBIaA.cjs +0 -1
  241. package/dist/layout-DTBfbHzy.js +0 -1324
  242. package/dist/linear-BRl2UYUr.cjs +0 -1
  243. package/dist/linear-CwbXkgvF.js +0 -259
  244. package/dist/loadCss-BbD6mdv-.cjs +0 -1
  245. package/dist/loadCss-DS0Fuaxe.js +0 -8
  246. package/dist/mermaid-parser.core-CJ1yJm0s.js +0 -12966
  247. package/dist/mermaid-parser.core-CxTcWSA2.cjs +0 -128
  248. package/dist/mindmap-definition-VGOIOE7T-BPUEmP7g.cjs +0 -68
  249. package/dist/mindmap-definition-VGOIOE7T-DSqZBgzR.js +0 -784
  250. package/dist/mio-previewer.es.js +0 -6171
  251. package/dist/ordinal-CagbB1m8.cjs +0 -1
  252. package/dist/ordinal-DfAQgscy.js +0 -61
  253. package/dist/packet-HUATNLJX-B-qfkr5X.cjs +0 -1
  254. package/dist/packet-HUATNLJX-Dxob_meO.js +0 -5
  255. package/dist/pie-WTHONI2E-BRtdTGWt.js +0 -5
  256. package/dist/pie-WTHONI2E-DK7f6qJw.cjs +0 -1
  257. package/dist/pieDiagram-ADFJNKIX-Dhq_bEzm.js +0 -161
  258. package/dist/pieDiagram-ADFJNKIX-V04ms3gr.cjs +0 -30
  259. package/dist/plugins/custom.es.js +0 -85
  260. package/dist/plugins/markdown-it.es.js +0 -173
  261. package/dist/quadrantDiagram-AYHSOK5B-C97bOmUE.js +0 -1022
  262. package/dist/quadrantDiagram-AYHSOK5B-DlqFPVhi.cjs +0 -7
  263. package/dist/radar-NJJJXTRR-B9jT3LP3.cjs +0 -1
  264. package/dist/radar-NJJJXTRR-D8plmle3.js +0 -5
  265. package/dist/requirementDiagram-UZGBJVZJ-BxVMLKfQ.js +0 -850
  266. package/dist/requirementDiagram-UZGBJVZJ-DENJ74Ew.cjs +0 -64
  267. package/dist/sankeyDiagram-TZEHDZUN-DwgW7Suq.js +0 -810
  268. package/dist/sankeyDiagram-TZEHDZUN-lTBLhaSq.cjs +0 -10
  269. package/dist/sequenceDiagram-WL72ISMW-BAOeX1dA.js +0 -2511
  270. package/dist/sequenceDiagram-WL72ISMW-BRVvH1X4.cjs +0 -145
  271. package/dist/stateDiagram-FKZM4ZOC-BrFQE7Gl.js +0 -263
  272. package/dist/stateDiagram-FKZM4ZOC-D8GjooGL.cjs +0 -1
  273. package/dist/stateDiagram-v2-4FDKWEC3-4VRIY-eH.cjs +0 -1
  274. package/dist/stateDiagram-v2-4FDKWEC3-DnrWD6a3.js +0 -16
  275. package/dist/timeline-definition-IT6M3QCI-BJMIlueb.js +0 -795
  276. package/dist/timeline-definition-IT6M3QCI-BQFGUuGP.cjs +0 -61
  277. package/dist/treemap-75Q7IDZK-BX1vBFWf.cjs +0 -1
  278. package/dist/treemap-75Q7IDZK-CMTkunTV.js +0 -5
  279. package/dist/viewer-CZUSHxhf.js +0 -19131
  280. package/dist/viewer-Canph5Zx.cjs +0 -305
  281. package/dist/xychartDiagram-PRI3JC2R-Sl8WX8wc.cjs +0 -7
  282. package/dist/xychartDiagram-PRI3JC2R-WnFI7Ezu.js +0 -1340
@@ -0,0 +1,830 @@
1
+ import { g as e, h as t, m as n, p as r } from "./src-BuisGndr.js";
2
+ import { $ as i, G as a, Q as o, Z as s, a as c, b as l, o as u } from "./chunk-ABZYJK2D-DDrmE3Q7.js";
3
+ import { t as d } from "./arc-vLgDTVZZ.js";
4
+ //#region node_modules/.pnpm/mermaid@11.12.0/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-IT6M3QCI.mjs
5
+ var f = (function() {
6
+ var e = /* @__PURE__ */ t(function(e, t, n, r) {
7
+ for (n ||= {}, r = e.length; r--; n[e[r]] = t);
8
+ return n;
9
+ }, "o"), n = [
10
+ 6,
11
+ 8,
12
+ 10,
13
+ 11,
14
+ 12,
15
+ 14,
16
+ 16,
17
+ 17,
18
+ 20,
19
+ 21
20
+ ], r = [1, 9], i = [1, 10], a = [1, 11], o = [1, 12], s = [1, 13], c = [1, 16], l = [1, 17], u = {
21
+ trace: /* @__PURE__ */ t(function() {}, "trace"),
22
+ yy: {},
23
+ symbols_: {
24
+ error: 2,
25
+ start: 3,
26
+ timeline: 4,
27
+ document: 5,
28
+ EOF: 6,
29
+ line: 7,
30
+ SPACE: 8,
31
+ statement: 9,
32
+ NEWLINE: 10,
33
+ title: 11,
34
+ acc_title: 12,
35
+ acc_title_value: 13,
36
+ acc_descr: 14,
37
+ acc_descr_value: 15,
38
+ acc_descr_multiline_value: 16,
39
+ section: 17,
40
+ period_statement: 18,
41
+ event_statement: 19,
42
+ period: 20,
43
+ event: 21,
44
+ $accept: 0,
45
+ $end: 1
46
+ },
47
+ terminals_: {
48
+ 2: "error",
49
+ 4: "timeline",
50
+ 6: "EOF",
51
+ 8: "SPACE",
52
+ 10: "NEWLINE",
53
+ 11: "title",
54
+ 12: "acc_title",
55
+ 13: "acc_title_value",
56
+ 14: "acc_descr",
57
+ 15: "acc_descr_value",
58
+ 16: "acc_descr_multiline_value",
59
+ 17: "section",
60
+ 20: "period",
61
+ 21: "event"
62
+ },
63
+ productions_: [
64
+ 0,
65
+ [3, 3],
66
+ [5, 0],
67
+ [5, 2],
68
+ [7, 2],
69
+ [7, 1],
70
+ [7, 1],
71
+ [7, 1],
72
+ [9, 1],
73
+ [9, 2],
74
+ [9, 2],
75
+ [9, 1],
76
+ [9, 1],
77
+ [9, 1],
78
+ [9, 1],
79
+ [18, 1],
80
+ [19, 1]
81
+ ],
82
+ performAction: /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
83
+ var s = a.length - 1;
84
+ switch (i) {
85
+ case 1: return a[s - 1];
86
+ case 2:
87
+ this.$ = [];
88
+ break;
89
+ case 3:
90
+ a[s - 1].push(a[s]), this.$ = a[s - 1];
91
+ break;
92
+ case 4:
93
+ case 5:
94
+ this.$ = a[s];
95
+ break;
96
+ case 6:
97
+ case 7:
98
+ this.$ = [];
99
+ break;
100
+ case 8:
101
+ r.getCommonDb().setDiagramTitle(a[s].substr(6)), this.$ = a[s].substr(6);
102
+ break;
103
+ case 9:
104
+ this.$ = a[s].trim(), r.getCommonDb().setAccTitle(this.$);
105
+ break;
106
+ case 10:
107
+ case 11:
108
+ this.$ = a[s].trim(), r.getCommonDb().setAccDescription(this.$);
109
+ break;
110
+ case 12:
111
+ r.addSection(a[s].substr(8)), this.$ = a[s].substr(8);
112
+ break;
113
+ case 15:
114
+ r.addTask(a[s], 0, ""), this.$ = a[s];
115
+ break;
116
+ case 16:
117
+ r.addEvent(a[s].substr(2)), this.$ = a[s];
118
+ break;
119
+ }
120
+ }, "anonymous"),
121
+ table: [
122
+ {
123
+ 3: 1,
124
+ 4: [1, 2]
125
+ },
126
+ { 1: [3] },
127
+ e(n, [2, 2], { 5: 3 }),
128
+ {
129
+ 6: [1, 4],
130
+ 7: 5,
131
+ 8: [1, 6],
132
+ 9: 7,
133
+ 10: [1, 8],
134
+ 11: r,
135
+ 12: i,
136
+ 14: a,
137
+ 16: o,
138
+ 17: s,
139
+ 18: 14,
140
+ 19: 15,
141
+ 20: c,
142
+ 21: l
143
+ },
144
+ e(n, [2, 7], { 1: [2, 1] }),
145
+ e(n, [2, 3]),
146
+ {
147
+ 9: 18,
148
+ 11: r,
149
+ 12: i,
150
+ 14: a,
151
+ 16: o,
152
+ 17: s,
153
+ 18: 14,
154
+ 19: 15,
155
+ 20: c,
156
+ 21: l
157
+ },
158
+ e(n, [2, 5]),
159
+ e(n, [2, 6]),
160
+ e(n, [2, 8]),
161
+ { 13: [1, 19] },
162
+ { 15: [1, 20] },
163
+ e(n, [2, 11]),
164
+ e(n, [2, 12]),
165
+ e(n, [2, 13]),
166
+ e(n, [2, 14]),
167
+ e(n, [2, 15]),
168
+ e(n, [2, 16]),
169
+ e(n, [2, 4]),
170
+ e(n, [2, 9]),
171
+ e(n, [2, 10])
172
+ ],
173
+ defaultActions: {},
174
+ parseError: /* @__PURE__ */ t(function(e, t) {
175
+ if (t.recoverable) this.trace(e);
176
+ else {
177
+ var n = Error(e);
178
+ throw n.hash = t, n;
179
+ }
180
+ }, "parseError"),
181
+ parse: /* @__PURE__ */ t(function(e) {
182
+ var n = this, r = [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: {} };
183
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
184
+ h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
185
+ var v = h.yylloc;
186
+ o.push(v);
187
+ var y = h.options && h.options.ranges;
188
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
189
+ function b(e) {
190
+ r.length -= 2 * e, a.length -= e, o.length -= e;
191
+ }
192
+ t(b, "popStack");
193
+ function x() {
194
+ var e = i.pop() || h.lex() || p;
195
+ return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
196
+ }
197
+ t(x, "lex");
198
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
199
+ if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
200
+ var M = "";
201
+ for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
202
+ 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, {
203
+ text: h.match,
204
+ token: this.terminals_[S] || S,
205
+ line: h.yylineno,
206
+ loc: v,
207
+ expected: j
208
+ });
209
+ }
210
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
211
+ switch (T[0]) {
212
+ case 1:
213
+ r.push(S), a.push(h.yytext), o.push(h.yylloc), r.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--);
214
+ break;
215
+ case 2:
216
+ if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
217
+ first_line: o[o.length - (k || 1)].first_line,
218
+ last_line: o[o.length - 1].last_line,
219
+ first_column: o[o.length - (k || 1)].first_column,
220
+ last_column: o[o.length - 1].last_column
221
+ }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
222
+ c,
223
+ u,
224
+ l,
225
+ g.yy,
226
+ T[1],
227
+ a,
228
+ o
229
+ ].concat(m)), E !== void 0) return E;
230
+ k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
231
+ break;
232
+ case 3: return !0;
233
+ }
234
+ }
235
+ return !0;
236
+ }, "parse")
237
+ };
238
+ u.lexer = /* @__PURE__ */ (function() {
239
+ return {
240
+ EOF: 1,
241
+ parseError: /* @__PURE__ */ t(function(e, t) {
242
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
243
+ else throw Error(e);
244
+ }, "parseError"),
245
+ setInput: /* @__PURE__ */ t(function(e, t) {
246
+ 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 = {
247
+ first_line: 1,
248
+ first_column: 0,
249
+ last_line: 1,
250
+ last_column: 0
251
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
252
+ }, "setInput"),
253
+ input: /* @__PURE__ */ t(function() {
254
+ var e = this._input[0];
255
+ 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;
256
+ }, "input"),
257
+ unput: /* @__PURE__ */ t(function(e) {
258
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
259
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
260
+ var r = this.match.split(/(?:\r\n?|\n)/g);
261
+ 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);
262
+ var i = this.yylloc.range;
263
+ return this.yylloc = {
264
+ first_line: this.yylloc.first_line,
265
+ last_line: this.yylineno + 1,
266
+ first_column: this.yylloc.first_column,
267
+ 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
268
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
269
+ }, "unput"),
270
+ more: /* @__PURE__ */ t(function() {
271
+ return this._more = !0, this;
272
+ }, "more"),
273
+ reject: /* @__PURE__ */ t(function() {
274
+ if (this.options.backtrack_lexer) this._backtrack = !0;
275
+ 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(), {
276
+ text: "",
277
+ token: null,
278
+ line: this.yylineno
279
+ });
280
+ return this;
281
+ }, "reject"),
282
+ less: /* @__PURE__ */ t(function(e) {
283
+ this.unput(this.match.slice(e));
284
+ }, "less"),
285
+ pastInput: /* @__PURE__ */ t(function() {
286
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
287
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
288
+ }, "pastInput"),
289
+ upcomingInput: /* @__PURE__ */ t(function() {
290
+ var e = this.match;
291
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
292
+ }, "upcomingInput"),
293
+ showPosition: /* @__PURE__ */ t(function() {
294
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
295
+ return e + this.upcomingInput() + "\n" + t + "^";
296
+ }, "showPosition"),
297
+ test_match: /* @__PURE__ */ t(function(e, t) {
298
+ var n, r, i;
299
+ if (this.options.backtrack_lexer && (i = {
300
+ yylineno: this.yylineno,
301
+ yylloc: {
302
+ first_line: this.yylloc.first_line,
303
+ last_line: this.last_line,
304
+ first_column: this.yylloc.first_column,
305
+ last_column: this.yylloc.last_column
306
+ },
307
+ yytext: this.yytext,
308
+ match: this.match,
309
+ matches: this.matches,
310
+ matched: this.matched,
311
+ yyleng: this.yyleng,
312
+ offset: this.offset,
313
+ _more: this._more,
314
+ _input: this._input,
315
+ yy: this.yy,
316
+ conditionStack: this.conditionStack.slice(0),
317
+ done: this.done
318
+ }, 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 = {
319
+ first_line: this.yylloc.last_line,
320
+ last_line: this.yylineno + 1,
321
+ first_column: this.yylloc.last_column,
322
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
323
+ }, 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;
324
+ if (this._backtrack) {
325
+ for (var a in i) this[a] = i[a];
326
+ return !1;
327
+ }
328
+ return !1;
329
+ }, "test_match"),
330
+ next: /* @__PURE__ */ t(function() {
331
+ if (this.done) return this.EOF;
332
+ this._input || (this.done = !0);
333
+ var e, t, n, r;
334
+ this._more || (this.yytext = "", this.match = "");
335
+ 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)) {
336
+ if (t = n, r = a, this.options.backtrack_lexer) {
337
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
338
+ if (this._backtrack) {
339
+ t = !1;
340
+ continue;
341
+ } else return !1;
342
+ } else if (!this.options.flex) break;
343
+ }
344
+ 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(), {
345
+ text: "",
346
+ token: null,
347
+ line: this.yylineno
348
+ });
349
+ }, "next"),
350
+ lex: /* @__PURE__ */ t(function() {
351
+ return this.next() || this.lex();
352
+ }, "lex"),
353
+ begin: /* @__PURE__ */ t(function(e) {
354
+ this.conditionStack.push(e);
355
+ }, "begin"),
356
+ popState: /* @__PURE__ */ t(function() {
357
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
358
+ }, "popState"),
359
+ _currentRules: /* @__PURE__ */ t(function() {
360
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
361
+ }, "_currentRules"),
362
+ topState: /* @__PURE__ */ t(function(e) {
363
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
364
+ }, "topState"),
365
+ pushState: /* @__PURE__ */ t(function(e) {
366
+ this.begin(e);
367
+ }, "pushState"),
368
+ stateStackSize: /* @__PURE__ */ t(function() {
369
+ return this.conditionStack.length;
370
+ }, "stateStackSize"),
371
+ options: { "case-insensitive": !0 },
372
+ performAction: /* @__PURE__ */ t(function(e, t, n, r) {
373
+ switch (n) {
374
+ case 0: break;
375
+ case 1: break;
376
+ case 2: return 10;
377
+ case 3: break;
378
+ case 4: break;
379
+ case 5: return 4;
380
+ case 6: return 11;
381
+ case 7: return this.begin("acc_title"), 12;
382
+ case 8: return this.popState(), "acc_title_value";
383
+ case 9: return this.begin("acc_descr"), 14;
384
+ case 10: return this.popState(), "acc_descr_value";
385
+ case 11:
386
+ this.begin("acc_descr_multiline");
387
+ break;
388
+ case 12:
389
+ this.popState();
390
+ break;
391
+ case 13: return "acc_descr_multiline_value";
392
+ case 14: return 17;
393
+ case 15: return 21;
394
+ case 16: return 20;
395
+ case 17: return 6;
396
+ case 18: return "INVALID";
397
+ }
398
+ }, "anonymous"),
399
+ rules: [
400
+ /^(?:%(?!\{)[^\n]*)/i,
401
+ /^(?:[^\}]%%[^\n]*)/i,
402
+ /^(?:[\n]+)/i,
403
+ /^(?:\s+)/i,
404
+ /^(?:#[^\n]*)/i,
405
+ /^(?:timeline\b)/i,
406
+ /^(?:title\s[^\n]+)/i,
407
+ /^(?:accTitle\s*:\s*)/i,
408
+ /^(?:(?!\n||)*[^\n]*)/i,
409
+ /^(?:accDescr\s*:\s*)/i,
410
+ /^(?:(?!\n||)*[^\n]*)/i,
411
+ /^(?:accDescr\s*\{\s*)/i,
412
+ /^(?:[\}])/i,
413
+ /^(?:[^\}]*)/i,
414
+ /^(?:section\s[^:\n]+)/i,
415
+ /^(?::\s(?:[^:\n]|:(?!\s))+)/i,
416
+ /^(?:[^#:\n]+)/i,
417
+ /^(?:$)/i,
418
+ /^(?:.)/i
419
+ ],
420
+ conditions: {
421
+ acc_descr_multiline: {
422
+ rules: [12, 13],
423
+ inclusive: !1
424
+ },
425
+ acc_descr: {
426
+ rules: [10],
427
+ inclusive: !1
428
+ },
429
+ acc_title: {
430
+ rules: [8],
431
+ inclusive: !1
432
+ },
433
+ INITIAL: {
434
+ rules: [
435
+ 0,
436
+ 1,
437
+ 2,
438
+ 3,
439
+ 4,
440
+ 5,
441
+ 6,
442
+ 7,
443
+ 9,
444
+ 11,
445
+ 14,
446
+ 15,
447
+ 16,
448
+ 17,
449
+ 18
450
+ ],
451
+ inclusive: !0
452
+ }
453
+ }
454
+ };
455
+ })();
456
+ function d() {
457
+ this.yy = {};
458
+ }
459
+ return t(d, "Parser"), d.prototype = u, u.Parser = d, new d();
460
+ })();
461
+ f.parser = f;
462
+ var p = f, m = {};
463
+ n(m, {
464
+ addEvent: () => E,
465
+ addSection: () => S,
466
+ addTask: () => T,
467
+ addTaskOrg: () => D,
468
+ clear: () => x,
469
+ default: () => k,
470
+ getCommonDb: () => b,
471
+ getSections: () => C,
472
+ getTasks: () => w
473
+ });
474
+ var h = "", g = 0, _ = [], v = [], y = [], b = /* @__PURE__ */ t(() => u, "getCommonDb"), x = /* @__PURE__ */ t(function() {
475
+ _.length = 0, v.length = 0, h = "", y.length = 0, c();
476
+ }, "clear"), S = /* @__PURE__ */ t(function(e) {
477
+ h = e, _.push(e);
478
+ }, "addSection"), C = /* @__PURE__ */ t(function() {
479
+ return _;
480
+ }, "getSections"), w = /* @__PURE__ */ t(function() {
481
+ let e = O(), t = 0;
482
+ for (; !e && t < 100;) e = O(), t++;
483
+ return v.push(...y), v;
484
+ }, "getTasks"), T = /* @__PURE__ */ t(function(e, t, n) {
485
+ let r = {
486
+ id: g++,
487
+ section: h,
488
+ type: h,
489
+ task: e,
490
+ score: t || 0,
491
+ events: n ? [n] : []
492
+ };
493
+ y.push(r);
494
+ }, "addTask"), E = /* @__PURE__ */ t(function(e) {
495
+ y.find((e) => e.id === g - 1).events.push(e);
496
+ }, "addEvent"), D = /* @__PURE__ */ t(function(e) {
497
+ let t = {
498
+ section: h,
499
+ type: h,
500
+ description: e,
501
+ task: e,
502
+ classes: []
503
+ };
504
+ v.push(t);
505
+ }, "addTaskOrg"), O = /* @__PURE__ */ t(function() {
506
+ let e = /* @__PURE__ */ t(function(e) {
507
+ return y[e].processed;
508
+ }, "compileTask"), n = !0;
509
+ for (let [t, r] of y.entries()) e(t), n &&= r.processed;
510
+ return n;
511
+ }, "compileTasks"), k = {
512
+ clear: x,
513
+ getCommonDb: b,
514
+ addSection: S,
515
+ getSections: C,
516
+ getTasks: w,
517
+ addTask: T,
518
+ addTaskOrg: D,
519
+ addEvent: E
520
+ }, A = 12, j = /* @__PURE__ */ t(function(e, t) {
521
+ let n = e.append("rect");
522
+ return n.attr("x", t.x), n.attr("y", t.y), n.attr("fill", t.fill), n.attr("stroke", t.stroke), n.attr("width", t.width), n.attr("height", t.height), n.attr("rx", t.rx), n.attr("ry", t.ry), t.class !== void 0 && n.attr("class", t.class), n;
523
+ }, "drawRect"), M = /* @__PURE__ */ t(function(e, n) {
524
+ let r = e.append("circle").attr("cx", n.cx).attr("cy", n.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), i = e.append("g");
525
+ i.append("circle").attr("cx", n.cx - 15 / 3).attr("cy", n.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), i.append("circle").attr("cx", n.cx + 15 / 3).attr("cy", n.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
526
+ function a(e) {
527
+ let t = d().startAngle(Math.PI / 2).endAngle(Math.PI / 2 * 3).innerRadius(15 / 2).outerRadius(15 / 2.2);
528
+ e.append("path").attr("class", "mouth").attr("d", t).attr("transform", "translate(" + n.cx + "," + (n.cy + 2) + ")");
529
+ }
530
+ t(a, "smile");
531
+ function o(e) {
532
+ let t = d().startAngle(3 * Math.PI / 2).endAngle(Math.PI / 2 * 5).innerRadius(15 / 2).outerRadius(15 / 2.2);
533
+ e.append("path").attr("class", "mouth").attr("d", t).attr("transform", "translate(" + n.cx + "," + (n.cy + 7) + ")");
534
+ }
535
+ t(o, "sad");
536
+ function s(e) {
537
+ e.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", n.cx - 5).attr("y1", n.cy + 7).attr("x2", n.cx + 5).attr("y2", n.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
538
+ }
539
+ return t(s, "ambivalent"), n.score > 3 ? a(i) : n.score < 3 ? o(i) : s(i), r;
540
+ }, "drawFace"), N = /* @__PURE__ */ t(function(e, t) {
541
+ let n = e.append("circle");
542
+ return n.attr("cx", t.cx), n.attr("cy", t.cy), n.attr("class", "actor-" + t.pos), n.attr("fill", t.fill), n.attr("stroke", t.stroke), n.attr("r", t.r), n.class !== void 0 && n.attr("class", n.class), t.title !== void 0 && n.append("title").text(t.title), n;
543
+ }, "drawCircle"), P = /* @__PURE__ */ t(function(e, t) {
544
+ let n = t.text.replace(/<br\s*\/?>/gi, " "), r = e.append("text");
545
+ r.attr("x", t.x), r.attr("y", t.y), r.attr("class", "legend"), r.style("text-anchor", t.anchor), t.class !== void 0 && r.attr("class", t.class);
546
+ let i = r.append("tspan");
547
+ return i.attr("x", t.x + t.textMargin * 2), i.text(n), r;
548
+ }, "drawText"), F = /* @__PURE__ */ t(function(e, n) {
549
+ function r(e, t, n, r, i) {
550
+ return e + "," + t + " " + (e + n) + "," + t + " " + (e + n) + "," + (t + r - i) + " " + (e + n - i * 1.2) + "," + (t + r) + " " + e + "," + (t + r);
551
+ }
552
+ t(r, "genPoints");
553
+ let i = e.append("polygon");
554
+ i.attr("points", r(n.x, n.y, 50, 20, 7)), i.attr("class", "labelBox"), n.y += n.labelMargin, n.x += .5 * n.labelMargin, P(e, n);
555
+ }, "drawLabel"), I = /* @__PURE__ */ t(function(e, t, n) {
556
+ let r = e.append("g"), i = V();
557
+ i.x = t.x, i.y = t.y, i.fill = t.fill, i.width = n.width, i.height = n.height, i.class = "journey-section section-type-" + t.num, i.rx = 3, i.ry = 3, j(r, i), H(n)(t.text, r, i.x, i.y, i.width, i.height, { class: "journey-section section-type-" + t.num }, n, t.colour);
558
+ }, "drawSection"), L = -1, R = /* @__PURE__ */ t(function(e, t, n) {
559
+ let r = t.x + n.width / 2, i = e.append("g");
560
+ L++, i.append("line").attr("id", "task" + L).attr("x1", r).attr("y1", t.y).attr("x2", r).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), M(i, {
561
+ cx: r,
562
+ cy: 300 + (5 - t.score) * 30,
563
+ score: t.score
564
+ });
565
+ let a = V();
566
+ a.x = t.x, a.y = t.y, a.fill = t.fill, a.width = n.width, a.height = n.height, a.class = "task task-type-" + t.num, a.rx = 3, a.ry = 3, j(i, a), H(n)(t.task, i, a.x, a.y, a.width, a.height, { class: "task" }, n, t.colour);
567
+ }, "drawTask"), z = /* @__PURE__ */ t(function(e, t) {
568
+ j(e, {
569
+ x: t.startx,
570
+ y: t.starty,
571
+ width: t.stopx - t.startx,
572
+ height: t.stopy - t.starty,
573
+ fill: t.fill,
574
+ class: "rect"
575
+ }).lower();
576
+ }, "drawBackgroundRect"), B = /* @__PURE__ */ t(function() {
577
+ return {
578
+ x: 0,
579
+ y: 0,
580
+ fill: void 0,
581
+ "text-anchor": "start",
582
+ width: 100,
583
+ height: 100,
584
+ textMargin: 0,
585
+ rx: 0,
586
+ ry: 0
587
+ };
588
+ }, "getTextObj"), V = /* @__PURE__ */ t(function() {
589
+ return {
590
+ x: 0,
591
+ y: 0,
592
+ width: 100,
593
+ anchor: "start",
594
+ height: 100,
595
+ rx: 0,
596
+ ry: 0
597
+ };
598
+ }, "getNoteRect"), H = /* @__PURE__ */ (function() {
599
+ function e(e, t, n, r, a, o, s, c) {
600
+ i(t.append("text").attr("x", n + a / 2).attr("y", r + o / 2 + 5).style("font-color", c).style("text-anchor", "middle").text(e), s);
601
+ }
602
+ t(e, "byText");
603
+ function n(e, t, n, r, a, o, s, c, l) {
604
+ let { taskFontSize: u, taskFontFamily: d } = c, f = e.split(/<br\s*\/?>/gi);
605
+ for (let e = 0; e < f.length; e++) {
606
+ let c = e * u - u * (f.length - 1) / 2, p = t.append("text").attr("x", n + a / 2).attr("y", r).attr("fill", l).style("text-anchor", "middle").style("font-size", u).style("font-family", d);
607
+ p.append("tspan").attr("x", n + a / 2).attr("dy", c).text(f[e]), p.attr("y", r + o / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), i(p, s);
608
+ }
609
+ }
610
+ t(n, "byTspan");
611
+ function r(e, t, r, a, o, s, c, l) {
612
+ let u = t.append("switch"), d = u.append("foreignObject").attr("x", r).attr("y", a).attr("width", o).attr("height", s).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
613
+ d.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), n(e, u, r, a, o, s, c, l), i(d, c);
614
+ }
615
+ t(r, "byFo");
616
+ function i(e, t) {
617
+ for (let n in t) n in t && e.attr(n, t[n]);
618
+ }
619
+ return t(i, "_setTextAttrs"), function(t) {
620
+ return t.textPlacement === "fo" ? r : t.textPlacement === "old" ? e : n;
621
+ };
622
+ })(), U = /* @__PURE__ */ t(function(e) {
623
+ e.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
624
+ }, "initGraphics");
625
+ function W(e, t) {
626
+ e.each(function() {
627
+ var e = r(this), n = e.text().split(/(\s+|<br>)/).reverse(), i, a = [], o = 1.1, s = e.attr("y"), c = parseFloat(e.attr("dy")), l = e.text(null).append("tspan").attr("x", 0).attr("y", s).attr("dy", c + "em");
628
+ for (let r = 0; r < n.length; r++) i = n[n.length - 1 - r], a.push(i), l.text(a.join(" ").trim()), (l.node().getComputedTextLength() > t || i === "<br>") && (a.pop(), l.text(a.join(" ").trim()), a = i === "<br>" ? [""] : [i], l = e.append("tspan").attr("x", 0).attr("y", s).attr("dy", o + "em").text(i));
629
+ });
630
+ }
631
+ t(W, "wrap");
632
+ var G = /* @__PURE__ */ t(function(e, t, n, r) {
633
+ let i = n % A - 1, a = e.append("g");
634
+ t.section = i, a.attr("class", (t.class ? t.class + " " : "") + "timeline-node " + ("section-" + i));
635
+ let o = a.append("g"), s = a.append("g"), c = s.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(W, t.width).node().getBBox(), l = r.fontSize?.replace ? r.fontSize.replace("px", "") : r.fontSize;
636
+ return t.height = c.height + l * 1.1 * .5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width += 2 * t.padding, s.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), q(o, t, i, r), t;
637
+ }, "drawNode"), K = /* @__PURE__ */ t(function(e, t, n) {
638
+ let r = e.append("g"), i = r.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(W, t.width).node().getBBox(), a = n.fontSize?.replace ? n.fontSize.replace("px", "") : n.fontSize;
639
+ return r.remove(), i.height + a * 1.1 * .5 + t.padding;
640
+ }, "getVirtualNodeHeight"), q = /* @__PURE__ */ t(function(e, t, n) {
641
+ e.append("path").attr("id", "node-" + t.id).attr("class", "node-bkg node-" + t.type).attr("d", `M0 ${t.height - 5} v${-t.height + 10} q0,-5 5,-5 h${t.width - 10} q5,0 5,5 v${t.height - 5} H0 Z`), e.append("line").attr("class", "node-line-" + n).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
642
+ }, "defaultBkg"), J = {
643
+ drawRect: j,
644
+ drawCircle: N,
645
+ drawSection: I,
646
+ drawText: P,
647
+ drawLabel: F,
648
+ drawTask: R,
649
+ drawBackgroundRect: z,
650
+ getTextObj: B,
651
+ getNoteRect: V,
652
+ initGraphics: U,
653
+ drawNode: G,
654
+ getVirtualNodeHeight: K
655
+ }, Y = /* @__PURE__ */ t(function(t, n, i, o) {
656
+ let s = l(), c = s.timeline?.leftMargin ?? 50;
657
+ e.debug("timeline", o.db);
658
+ let u = s.securityLevel, d;
659
+ u === "sandbox" && (d = r("#i" + n));
660
+ let f = r(u === "sandbox" ? d.nodes()[0].contentDocument.body : "body").select("#" + n);
661
+ f.append("g");
662
+ let p = o.db.getTasks(), m = o.db.getCommonDb().getDiagramTitle();
663
+ e.debug("task", p), J.initGraphics(f);
664
+ let h = o.db.getSections();
665
+ e.debug("sections", h);
666
+ let g = 0, _ = 0, v = 0, y = 0, b = 50 + c, x = 50;
667
+ y = 50;
668
+ let S = 0, C = !0;
669
+ h.forEach(function(t) {
670
+ let n = {
671
+ number: S,
672
+ descr: t,
673
+ section: S,
674
+ width: 150,
675
+ padding: 20,
676
+ maxHeight: g
677
+ }, r = J.getVirtualNodeHeight(f, n, s);
678
+ e.debug("sectionHeight before draw", r), g = Math.max(g, r + 20);
679
+ });
680
+ let w = 0, T = 0;
681
+ e.debug("tasks.length", p.length);
682
+ for (let [t, n] of p.entries()) {
683
+ let r = {
684
+ number: t,
685
+ descr: n,
686
+ section: n.section,
687
+ width: 150,
688
+ padding: 20,
689
+ maxHeight: _
690
+ }, i = J.getVirtualNodeHeight(f, r, s);
691
+ e.debug("taskHeight before draw", i), _ = Math.max(_, i + 20), w = Math.max(w, n.events.length);
692
+ let a = 0;
693
+ for (let e of n.events) {
694
+ let t = {
695
+ descr: e,
696
+ section: n.section,
697
+ number: n.section,
698
+ width: 150,
699
+ padding: 20,
700
+ maxHeight: 50
701
+ };
702
+ a += J.getVirtualNodeHeight(f, t, s);
703
+ }
704
+ n.events.length > 0 && (a += (n.events.length - 1) * 10), T = Math.max(T, a);
705
+ }
706
+ e.debug("maxSectionHeight before draw", g), e.debug("maxTaskHeight before draw", _), h && h.length > 0 ? h.forEach((t) => {
707
+ let n = p.filter((e) => e.section === t), r = {
708
+ number: S,
709
+ descr: t,
710
+ section: S,
711
+ width: 200 * Math.max(n.length, 1) - 50,
712
+ padding: 20,
713
+ maxHeight: g
714
+ };
715
+ e.debug("sectionNode", r);
716
+ let i = f.append("g"), a = J.drawNode(i, r, S, s);
717
+ e.debug("sectionNode output", a), i.attr("transform", `translate(${b}, ${y})`), x += g + 50, n.length > 0 && X(f, n, S, b, x, _, s, w, T, g, !1), b += 200 * Math.max(n.length, 1), x = y, S++;
718
+ }) : (C = !1, X(f, p, S, b, x, _, s, w, T, g, !0));
719
+ let E = f.node().getBBox();
720
+ e.debug("bounds", E), m && f.append("text").text(m).attr("x", E.width / 2 - c).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), v = C ? g + _ + 150 : _ + 100, f.append("g").attr("class", "lineWrapper").append("line").attr("x1", c).attr("y1", v).attr("x2", E.width + 3 * c).attr("y2", v).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), a(void 0, f, s.timeline?.padding ?? 50, s.timeline?.useMaxWidth ?? !1);
721
+ }, "draw"), X = /* @__PURE__ */ t(function(t, n, r, i, a, o, s, c, l, u, d) {
722
+ for (let c of n) {
723
+ let n = {
724
+ descr: c.task,
725
+ section: r,
726
+ number: r,
727
+ width: 150,
728
+ padding: 20,
729
+ maxHeight: o
730
+ };
731
+ e.debug("taskNode", n);
732
+ let u = t.append("g").attr("class", "taskWrapper"), f = J.drawNode(u, n, r, s).height;
733
+ if (e.debug("taskHeight after draw", f), u.attr("transform", `translate(${i}, ${a})`), o = Math.max(o, f), c.events) {
734
+ let e = t.append("g").attr("class", "lineWrapper"), n = o;
735
+ a += 100, n += Z(t, c.events, r, i, a, s), a -= 100, e.append("line").attr("x1", i + 190 / 2).attr("y1", a + o).attr("x2", i + 190 / 2).attr("y2", a + o + 100 + l + 100).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5");
736
+ }
737
+ i += 200, d && !s.timeline?.disableMulticolor && r++;
738
+ }
739
+ a -= 10;
740
+ }, "drawTasks"), Z = /* @__PURE__ */ t(function(t, n, r, i, a, o) {
741
+ let s = 0, c = a;
742
+ a += 100;
743
+ for (let c of n) {
744
+ let n = {
745
+ descr: c,
746
+ section: r,
747
+ number: r,
748
+ width: 150,
749
+ padding: 20,
750
+ maxHeight: 50
751
+ };
752
+ e.debug("eventNode", n);
753
+ let l = t.append("g").attr("class", "eventWrapper"), u = J.drawNode(l, n, r, o).height;
754
+ s += u, l.attr("transform", `translate(${i}, ${a})`), a = a + 10 + u;
755
+ }
756
+ return a = c, s;
757
+ }, "drawEvents"), Q = {
758
+ setConf: /* @__PURE__ */ t(() => {}, "setConf"),
759
+ draw: Y
760
+ }, $ = /* @__PURE__ */ t((e) => {
761
+ let t = "";
762
+ 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] = o(e["lineColor" + t], 20) : e["lineColor" + t] = s(e["lineColor" + t], 20);
763
+ for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) {
764
+ let r = "" + (17 - 3 * n);
765
+ t += `
766
+ .section-${n - 1} rect, .section-${n - 1} path, .section-${n - 1} circle, .section-${n - 1} path {
767
+ fill: ${e["cScale" + n]};
768
+ }
769
+ .section-${n - 1} text {
770
+ fill: ${e["cScaleLabel" + n]};
771
+ }
772
+ .node-icon-${n - 1} {
773
+ font-size: 40px;
774
+ color: ${e["cScaleLabel" + n]};
775
+ }
776
+ .section-edge-${n - 1}{
777
+ stroke: ${e["cScale" + n]};
778
+ }
779
+ .edge-depth-${n - 1}{
780
+ stroke-width: ${r};
781
+ }
782
+ .section-${n - 1} line {
783
+ stroke: ${e["cScaleInv" + n]} ;
784
+ stroke-width: 3;
785
+ }
786
+
787
+ .lineWrapper line{
788
+ stroke: ${e["cScaleLabel" + n]} ;
789
+ }
790
+
791
+ .disabled, .disabled circle, .disabled text {
792
+ fill: lightgray;
793
+ }
794
+ .disabled text {
795
+ fill: #efefef;
796
+ }
797
+ `;
798
+ }
799
+ return t;
800
+ }, "genSections"), ee = {
801
+ db: m,
802
+ renderer: Q,
803
+ parser: p,
804
+ styles: /* @__PURE__ */ t((e) => `
805
+ .edge {
806
+ stroke-width: 3;
807
+ }
808
+ ${$(e)}
809
+ .section-root rect, .section-root path, .section-root circle {
810
+ fill: ${e.git0};
811
+ }
812
+ .section-root text {
813
+ fill: ${e.gitBranchLabel0};
814
+ }
815
+ .icon-container {
816
+ height:100%;
817
+ display: flex;
818
+ justify-content: center;
819
+ align-items: center;
820
+ }
821
+ .edge {
822
+ fill: none;
823
+ }
824
+ .eventWrapper {
825
+ filter: brightness(120%);
826
+ }
827
+ `, "getStyles")
828
+ };
829
+ //#endregion
830
+ export { ee as diagram };