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,65 @@
1
+ const e=require("./src-BMjps4Ui.cjs"),t=require("./chunk-ABZYJK2D-CbIYYZa_.cjs"),n=require("./chunk-S3R3BYOJ-B2ozcJNg.cjs"),r=require("./mermaid-parser.core-C9EbhVVg.cjs"),i=require("./chunk-4BX2VUAB-HXFjpyQg.cjs"),a=require("./chunk-QZHKN3VN-2e6nJr8c.cjs");var o={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},s=t.d.gitGraph,c=e.h(()=>n.r({...s,...t.y().gitGraph}),`getConfig`),l=new a.t(()=>{let e=c(),t=e.mainBranchName,n=e.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:n}]]),branches:new Map([[t,null]]),currBranch:t,direction:`LR`,seq:0,options:{}}});function u(){return n.p({length:7})}e.h(u,`getID`);function d(e,t){let n=Object.create(null);return e.reduce((e,r)=>{let i=t(r);return n[i]||(n[i]=!0,e.push(r)),e},[])}e.h(d,`uniqBy`);var f=e.h(function(e){l.records.direction=e},`setDirection`),p=e.h(function(t){e.g.debug(`options str`,t),t=t?.trim(),t||=`{}`;try{l.records.options=JSON.parse(t)}catch(t){e.g.error(`error while parsing gitGraph options`,t.message)}},`setOptions`),m=e.h(function(){return l.records.options},`getOptions`),h=e.h(function(n){let r=n.msg,i=n.id,a=n.type,s=n.tags;e.g.info(`commit`,r,i,a,s),e.g.debug(`Entering commit:`,r,i,a,s);let d=c();i=t.s.sanitizeText(i,d),r=t.s.sanitizeText(r,d),s=s?.map(e=>t.s.sanitizeText(e,d));let f={id:i||l.records.seq+`-`+u(),message:r,seq:l.records.seq++,type:a??o.NORMAL,tags:s??[],parents:l.records.head==null?[]:[l.records.head.id],branch:l.records.currBranch};l.records.head=f,e.g.info(`main branch`,d.mainBranchName),l.records.commits.has(f.id)&&e.g.warn(`Commit ID ${f.id} already exists`),l.records.commits.set(f.id,f),l.records.branches.set(l.records.currBranch,f.id),e.g.debug(`in pushCommit `+f.id)},`commit`),g=e.h(function(n){let r=n.name,i=n.order;if(r=t.s.sanitizeText(r,c()),l.records.branches.has(r))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);l.records.branches.set(r,l.records.head==null?null:l.records.head.id),l.records.branchConfig.set(r,{name:r,order:i}),y(r),e.g.debug(`in createBranch`)},`branch`),_=e.h(n=>{let r=n.branch,i=n.id,a=n.type,s=n.tags,d=c();r=t.s.sanitizeText(r,d),i&&=t.s.sanitizeText(i,d);let f=l.records.branches.get(l.records.currBranch),p=l.records.branches.get(r),m=f?l.records.commits.get(f):void 0,h=p?l.records.commits.get(p):void 0;if(m&&h&&m.branch===r)throw Error(`Cannot merge branch '${r}' into itself.`);if(l.records.currBranch===r){let e=Error(`Incorrect usage of "merge". Cannot merge a branch to itself`);throw e.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch abc`]},e}if(m===void 0||!m){let e=Error(`Incorrect usage of "merge". Current branch (${l.records.currBranch})has no commits`);throw e.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`commit`]},e}if(!l.records.branches.has(r)){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+r+`) does not exist`);throw e.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},e}if(h===void 0||!h){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+r+`) has no commits`);throw e.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`"commit"`]},e}if(m===h){let e=Error(`Incorrect usage of "merge". Both branches have same head`);throw e.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch abc`]},e}if(i&&l.records.commits.has(i)){let e=Error(`Incorrect usage of "merge". Commit with id:`+i+` already exists, use different custom id`);throw e.hash={text:`merge ${r} ${i} ${a} ${s?.join(` `)}`,token:`merge ${r} ${i} ${a} ${s?.join(` `)}`,expected:[`merge ${r} ${i}_UNIQUE ${a} ${s?.join(` `)}`]},e}let g=p||``,_={id:i||`${l.records.seq}-${u()}`,message:`merged branch ${r} into ${l.records.currBranch}`,seq:l.records.seq++,parents:l.records.head==null?[]:[l.records.head.id,g],branch:l.records.currBranch,type:o.MERGE,customType:a,customId:!!i,tags:s??[]};l.records.head=_,l.records.commits.set(_.id,_),l.records.branches.set(l.records.currBranch,_.id),e.g.debug(l.records.branches),e.g.debug(`in mergeBranch`)},`merge`),v=e.h(function(n){let r=n.id,i=n.targetId,a=n.tags,s=n.parent;e.g.debug(`Entering cherryPick:`,r,i,a);let d=c();if(r=t.s.sanitizeText(r,d),i=t.s.sanitizeText(i,d),a=a?.map(e=>t.s.sanitizeText(e,d)),s=t.s.sanitizeText(s,d),!r||!l.records.commits.has(r)){let e=Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);throw e.hash={text:`cherryPick ${r} ${i}`,token:`cherryPick ${r} ${i}`,expected:[`cherry-pick abc`]},e}let f=l.records.commits.get(r);if(f===void 0||!f)throw Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);if(s&&!(Array.isArray(f.parents)&&f.parents.includes(s)))throw Error(`Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.`);let p=f.branch;if(f.type===o.MERGE&&!s)throw Error(`Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.`);if(!i||!l.records.commits.has(i)){if(p===l.records.currBranch){let e=Error(`Incorrect usage of "cherryPick". Source commit is already on current branch`);throw e.hash={text:`cherryPick ${r} ${i}`,token:`cherryPick ${r} ${i}`,expected:[`cherry-pick abc`]},e}let t=l.records.branches.get(l.records.currBranch);if(t===void 0||!t){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${l.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${r} ${i}`,token:`cherryPick ${r} ${i}`,expected:[`cherry-pick abc`]},e}let n=l.records.commits.get(t);if(n===void 0||!n){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${l.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${r} ${i}`,token:`cherryPick ${r} ${i}`,expected:[`cherry-pick abc`]},e}let c={id:l.records.seq+`-`+u(),message:`cherry-picked ${f?.message} into ${l.records.currBranch}`,seq:l.records.seq++,parents:l.records.head==null?[]:[l.records.head.id,f.id],branch:l.records.currBranch,type:o.CHERRY_PICK,tags:a?a.filter(Boolean):[`cherry-pick:${f.id}${f.type===o.MERGE?`|parent:${s}`:``}`]};l.records.head=c,l.records.commits.set(c.id,c),l.records.branches.set(l.records.currBranch,c.id),e.g.debug(l.records.branches),e.g.debug(`in cherryPick`)}},`cherryPick`),y=e.h(function(e){if(e=t.s.sanitizeText(e,c()),l.records.branches.has(e)){l.records.currBranch=e;let t=l.records.branches.get(l.records.currBranch);t===void 0||!t?l.records.head=null:l.records.head=l.records.commits.get(t)??null}else{let t=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw t.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},t}},`checkout`);function b(e,t,n){let r=e.indexOf(t);r===-1?e.push(n):e.splice(r,1,n)}e.h(b,`upsert`);function x(t){let n=t.reduce((e,t)=>e.seq>t.seq?e:t,t[0]),r=``;t.forEach(function(e){e===n?r+=` *`:r+=` |`});let i=[r,n.id,n.seq];for(let e in l.records.branches)l.records.branches.get(e)===n.id&&i.push(e);if(e.g.debug(i.join(` `)),n.parents&&n.parents.length==2&&n.parents[0]&&n.parents[1]){let e=l.records.commits.get(n.parents[0]);b(t,n,e),n.parents[1]&&t.push(l.records.commits.get(n.parents[1]))}else if(n.parents.length==0)return;else if(n.parents[0]){let e=l.records.commits.get(n.parents[0]);b(t,n,e)}t=d(t,e=>e.id),x(t)}e.h(x,`prettyPrintCommitHistory`);var S=e.h(function(){e.g.debug(l.records.commits);let t=E()[0];x([t])},`prettyPrint`),C=e.h(function(){l.reset(),t.a()},`clear`),w=e.h(function(){return[...l.records.branchConfig.values()].map((e,t)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${t}`)}).sort((e,t)=>(e.order??0)-(t.order??0)).map(({name:e})=>({name:e}))},`getBranchesAsObjArray`),T=e.h(function(){return l.records.branches},`getBranches`),ee=e.h(function(){return l.records.commits},`getCommits`),E=e.h(function(){let t=[...l.records.commits.values()];return t.forEach(function(t){e.g.debug(t.id)}),t.sort((e,t)=>e.seq-t.seq),t},`getCommitsArray`),D={commitType:o,getConfig:c,setDirection:f,setOptions:p,getOptions:m,commit:h,branch:g,merge:_,cherryPick:v,checkout:y,prettyPrint:S,clear:C,getBranchesAsObjArray:w,getBranches:T,getCommits:ee,getCommitsArray:E,getCurrentBranch:e.h(function(){return l.records.currBranch},`getCurrentBranch`),getDirection:e.h(function(){return l.records.direction},`getDirection`),getHead:e.h(function(){return l.records.head},`getHead`),setAccTitle:t.B,getAccTitle:t.v,getAccDescription:t._,setAccDescription:t.z,setDiagramTitle:t.U,getDiagramTitle:t.C},O=e.h((e,t)=>{i.t(e,t),e.dir&&t.setDirection(e.dir);for(let n of e.statements)k(n,t)},`populate`),k=e.h((t,n)=>{let r={Commit:e.h(e=>n.commit(A(e)),`Commit`),Branch:e.h(e=>n.branch(j(e)),`Branch`),Merge:e.h(e=>n.merge(te(e)),`Merge`),Checkout:e.h(e=>n.checkout(M(e)),`Checkout`),CherryPicking:e.h(e=>n.cherryPick(N(e)),`CherryPicking`)}[t.$type];r?r(t):e.g.error(`Unknown statement type: ${t.$type}`)},`parseStatement`),A=e.h(e=>({id:e.id,msg:e.message??``,type:e.type===void 0?o.NORMAL:o[e.type],tags:e.tags??void 0}),`parseCommit`),j=e.h(e=>({name:e.name,order:e.order??0}),`parseBranch`),te=e.h(e=>({branch:e.branch,id:e.id??``,type:e.type===void 0?void 0:o[e.type],tags:e.tags??void 0}),`parseMerge`),M=e.h(e=>e.branch,`parseCheckout`),N=e.h(e=>({id:e.id,targetId:``,tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),`parseCherryPicking`),P={parse:e.h(async t=>{let n=await r.t(`gitGraph`,t);e.g.debug(n),O(n,D)},`parse`)},F=t.b()?.gitGraph,I=10,L=40,R=4,z=2,B=8,V=new Map,H=new Map,U=30,W=new Map,G=[],K=0,q=`LR`,J=e.h(()=>{V.clear(),H.clear(),W.clear(),K=0,G=[],q=`LR`},`clear`),Y=e.h(e=>{let t=document.createElementNS(`http://www.w3.org/2000/svg`,`text`);return(typeof e==`string`?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(e=>{let n=document.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);n.setAttributeNS(`http://www.w3.org/XML/1998/namespace`,`xml:space`,`preserve`),n.setAttribute(`dy`,`1em`),n.setAttribute(`x`,`0`),n.setAttribute(`class`,`row`),n.textContent=e.trim(),t.appendChild(n)}),t},`drawText`),X=e.h(t=>{let n,r,i;return q===`BT`?(r=e.h((e,t)=>e<=t,`comparisonFunc`),i=1/0):(r=e.h((e,t)=>e>=t,`comparisonFunc`),i=0),t.forEach(e=>{let t=q===`TB`||q==`BT`?H.get(e)?.y:H.get(e)?.x;t!==void 0&&r(t,i)&&(n=e,i=t)}),n},`findClosestParent`),Z=e.h(e=>{let t=``,n=1/0;return e.forEach(e=>{let r=H.get(e).y;r<=n&&(t=e,n=r)}),t||void 0},`findClosestParentBT`),ne=e.h((e,t,n)=>{let r=n,i=n,a=[];e.forEach(e=>{let n=t.get(e);if(!n)throw Error(`Commit not found for key ${e}`);n.parents.length?(r=ie(n),i=Math.max(r,i)):a.push(n),ae(n,r)}),r=i,a.forEach(e=>{oe(e,r,n)}),e.forEach(e=>{let n=t.get(e);if(n?.parents.length){let e=Z(n.parents);r=H.get(e).y-L,r<=i&&(i=r);let t=V.get(n.branch).pos,a=r-I;H.set(n.id,{x:t,y:a})}})},`setParallelBTPos`),re=e.h(e=>{let t=X(e.parents.filter(e=>e!==null));if(!t)throw Error(`Closest parent not found for commit ${e.id}`);let n=H.get(t)?.y;if(n===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return n},`findClosestParentPos`),ie=e.h(e=>re(e)+L,`calculateCommitPosition`),ae=e.h((e,t)=>{let n=V.get(e.branch);if(!n)throw Error(`Branch not found for commit ${e.id}`);let r=n.pos,i=t+I;return H.set(e.id,{x:r,y:i}),{x:r,y:i}},`setCommitPosition`),oe=e.h((e,t,n)=>{let r=V.get(e.branch);if(!r)throw Error(`Branch not found for commit ${e.id}`);let i=t+n,a=r.pos;H.set(e.id,{x:a,y:i})},`setRootPosition`),se=e.h((e,t,n,r,i,a)=>{if(a===o.HIGHLIGHT)e.append(`rect`).attr(`x`,n.x-10).attr(`y`,n.y-10).attr(`width`,20).attr(`height`,20).attr(`class`,`commit ${t.id} commit-highlight${i%B} ${r}-outer`),e.append(`rect`).attr(`x`,n.x-6).attr(`y`,n.y-6).attr(`width`,12).attr(`height`,12).attr(`class`,`commit ${t.id} commit${i%B} ${r}-inner`);else if(a===o.CHERRY_PICK)e.append(`circle`).attr(`cx`,n.x).attr(`cy`,n.y).attr(`r`,10).attr(`class`,`commit ${t.id} ${r}`),e.append(`circle`).attr(`cx`,n.x-3).attr(`cy`,n.y+2).attr(`r`,2.75).attr(`fill`,`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`circle`).attr(`cx`,n.x+3).attr(`cy`,n.y+2).attr(`r`,2.75).attr(`fill`,`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`line`).attr(`x1`,n.x+3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`line`).attr(`x1`,n.x-3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,`#fff`).attr(`class`,`commit ${t.id} ${r}`);else{let s=e.append(`circle`);if(s.attr(`cx`,n.x),s.attr(`cy`,n.y),s.attr(`r`,t.type===o.MERGE?9:10),s.attr(`class`,`commit ${t.id} commit${i%B}`),a===o.MERGE){let a=e.append(`circle`);a.attr(`cx`,n.x),a.attr(`cy`,n.y),a.attr(`r`,6),a.attr(`class`,`commit ${r} ${t.id} commit${i%B}`)}a===o.REVERSE&&e.append(`path`).attr(`d`,`M ${n.x-5},${n.y-5}L${n.x+5},${n.y+5}M${n.x-5},${n.y+5}L${n.x+5},${n.y-5}`).attr(`class`,`commit ${r} ${t.id} commit${i%B}`)}},`drawCommitBullet`),ce=e.h((e,t,n,r)=>{if(t.type!==o.CHERRY_PICK&&(t.customId&&t.type===o.MERGE||t.type!==o.MERGE)&&F?.showCommitLabel){let i=e.append(`g`),a=i.insert(`rect`).attr(`class`,`commit-label-bkg`),o=i.append(`text`).attr(`x`,r).attr(`y`,n.y+25).attr(`class`,`commit-label`).text(t.id),s=o.node()?.getBBox();if(s&&(a.attr(`x`,n.posWithOffset-s.width/2-z).attr(`y`,n.y+13.5).attr(`width`,s.width+2*z).attr(`height`,s.height+2*z),q===`TB`||q===`BT`?(a.attr(`x`,n.x-(s.width+4*R+5)).attr(`y`,n.y-12),o.attr(`x`,n.x-(s.width+4*R)).attr(`y`,n.y+s.height-12)):o.attr(`x`,n.posWithOffset-s.width/2),F.rotateCommitLabel))if(q===`TB`||q===`BT`)o.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`),a.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`);else{let e=-7.5-(s.width+10)/25*9.5,t=10+s.width/25*8.5;i.attr(`transform`,`translate(`+e+`, `+t+`) rotate(-45, `+r+`, `+n.y+`)`)}}},`drawCommitLabel`),le=e.h((e,t,n,r)=>{if(t.tags.length>0){let i=0,a=0,o=0,s=[];for(let r of t.tags.reverse()){let t=e.insert(`polygon`),c=e.append(`circle`),l=e.append(`text`).attr(`y`,n.y-16-i).attr(`class`,`tag-label`).text(r),u=l.node()?.getBBox();if(!u)throw Error(`Tag bbox not found`);a=Math.max(a,u.width),o=Math.max(o,u.height),l.attr(`x`,n.posWithOffset-u.width/2),s.push({tag:l,hole:c,rect:t,yOffset:i}),i+=20}for(let{tag:e,hole:t,rect:i,yOffset:c}of s){let s=o/2,l=n.y-19.2-c;if(i.attr(`class`,`tag-label-bkg`).attr(`points`,`
2
+ ${r-a/2-R/2},${l+z}
3
+ ${r-a/2-R/2},${l-z}
4
+ ${n.posWithOffset-a/2-R},${l-s-z}
5
+ ${n.posWithOffset+a/2+R},${l-s-z}
6
+ ${n.posWithOffset+a/2+R},${l+s+z}
7
+ ${n.posWithOffset-a/2-R},${l+s+z}`),t.attr(`cy`,l).attr(`cx`,r-a/2+R/2).attr(`r`,1.5).attr(`class`,`tag-hole`),q===`TB`||q===`BT`){let o=r+c;i.attr(`class`,`tag-label-bkg`).attr(`points`,`
8
+ ${n.x},${o+2}
9
+ ${n.x},${o-2}
10
+ ${n.x+I},${o-s-2}
11
+ ${n.x+I+a+4},${o-s-2}
12
+ ${n.x+I+a+4},${o+s+2}
13
+ ${n.x+I},${o+s+2}`).attr(`transform`,`translate(12,12) rotate(45, `+n.x+`,`+r+`)`),t.attr(`cx`,n.x+R/2).attr(`cy`,o).attr(`transform`,`translate(12,12) rotate(45, `+n.x+`,`+r+`)`),e.attr(`x`,n.x+5).attr(`y`,o+3).attr(`transform`,`translate(14,14) rotate(45, `+n.x+`,`+r+`)`)}}}},`drawCommitTags`),ue=e.h(e=>{switch(e.customType??e.type){case o.NORMAL:return`commit-normal`;case o.REVERSE:return`commit-reverse`;case o.HIGHLIGHT:return`commit-highlight`;case o.MERGE:return`commit-merge`;case o.CHERRY_PICK:return`commit-cherry-pick`;default:return`commit-normal`}},`getCommitClassType`),de=e.h((e,t,n,r)=>{let i={x:0,y:0};if(e.parents.length>0){let n=X(e.parents);if(n){let a=r.get(n)??i;return t===`TB`?a.y+L:t===`BT`?(r.get(e.id)??i).y-L:a.x+L}}else if(t===`TB`)return U;else if(t===`BT`)return(r.get(e.id)??i).y-L;else return 0;return 0},`calculatePosition`),fe=e.h((e,t,n)=>{let r=q===`BT`&&n?t:t+I,i=q===`TB`||q===`BT`?r:V.get(e.branch)?.pos,a=q===`TB`||q===`BT`?V.get(e.branch)?.pos:r;if(a===void 0||i===void 0)throw Error(`Position were undefined for commit ${e.id}`);return{x:a,y:i,posWithOffset:r}},`getCommitPosition`),Q=e.h((t,n,r)=>{if(!F)throw Error(`GitGraph config not found`);let i=t.append(`g`).attr(`class`,`commit-bullets`),a=t.append(`g`).attr(`class`,`commit-labels`),o=q===`TB`||q===`BT`?U:0,s=[...n.keys()],c=F?.parallelCommits??!1,l=e.h((e,t)=>{let r=n.get(e)?.seq,i=n.get(t)?.seq;return r!==void 0&&i!==void 0?r-i:0},`sortKeys`),u=s.sort(l);q===`BT`&&(c&&ne(u,n,o),u=u.reverse()),u.forEach(e=>{let t=n.get(e);if(!t)throw Error(`Commit not found for key ${e}`);c&&(o=de(t,q,o,H));let s=fe(t,o,c);if(r){let e=ue(t),n=t.customType??t.type;se(i,t,s,e,V.get(t.branch)?.index??0,n),ce(a,t,s,o),le(a,t,s,o)}q===`TB`||q===`BT`?H.set(t.id,{x:s.x,y:s.posWithOffset}):H.set(t.id,{x:s.posWithOffset,y:s.y}),o=q===`BT`&&c?o+L:o+L+I,o>K&&(K=o)})},`drawCommits`),pe=e.h((t,n,r,i,a)=>{let o=(q===`TB`||q===`BT`?r.x<i.x:r.y<i.y)?n.branch:t.branch,s=e.h(e=>e.branch===o,`isOnBranchToGetCurve`),c=e.h(e=>e.seq>t.seq&&e.seq<n.seq,`isBetweenCommits`);return[...a.values()].some(e=>c(e)&&s(e))},`shouldRerouteArrow`),$=e.h((e,t,n=0)=>{let r=e+Math.abs(e-t)/2;return n>5?r:G.every(e=>Math.abs(e-r)>=10)?(G.push(r),r):$(e,t-Math.abs(e-t)/5,n+1)},`findLane`),me=e.h((e,t,n,r)=>{let i=H.get(t.id),a=H.get(n.id);if(i===void 0||a===void 0)throw Error(`Commit positions not found for commits ${t.id} and ${n.id}`);let s=pe(t,n,i,a,r),c=``,l=``,u=0,d=0,f=V.get(n.branch)?.index;n.type===o.MERGE&&t.id!==n.parents[0]&&(f=V.get(t.branch)?.index);let p;if(s){c=`A 10 10, 0, 0, 0,`,l=`A 10 10, 0, 0, 1,`,u=10,d=10;let e=i.y<a.y?$(i.y,a.y):$(a.y,i.y),n=i.x<a.x?$(i.x,a.x):$(a.x,i.x);q===`TB`?i.x<a.x?p=`M ${i.x} ${i.y} L ${n-u} ${i.y} ${l} ${n} ${i.y+d} L ${n} ${a.y-u} ${c} ${n+d} ${a.y} L ${a.x} ${a.y}`:(f=V.get(t.branch)?.index,p=`M ${i.x} ${i.y} L ${n+u} ${i.y} ${c} ${n} ${i.y+d} L ${n} ${a.y-u} ${l} ${n-d} ${a.y} L ${a.x} ${a.y}`):q===`BT`?i.x<a.x?p=`M ${i.x} ${i.y} L ${n-u} ${i.y} ${c} ${n} ${i.y-d} L ${n} ${a.y+u} ${l} ${n+d} ${a.y} L ${a.x} ${a.y}`:(f=V.get(t.branch)?.index,p=`M ${i.x} ${i.y} L ${n+u} ${i.y} ${l} ${n} ${i.y-d} L ${n} ${a.y+u} ${c} ${n-d} ${a.y} L ${a.x} ${a.y}`):i.y<a.y?p=`M ${i.x} ${i.y} L ${i.x} ${e-u} ${c} ${i.x+d} ${e} L ${a.x-u} ${e} ${l} ${a.x} ${e+d} L ${a.x} ${a.y}`:(f=V.get(t.branch)?.index,p=`M ${i.x} ${i.y} L ${i.x} ${e+u} ${l} ${i.x+d} ${e} L ${a.x-u} ${e} ${c} ${a.x} ${e-d} L ${a.x} ${a.y}`)}else c=`A 20 20, 0, 0, 0,`,l=`A 20 20, 0, 0, 1,`,u=20,d=20,q===`TB`?(i.x<a.x&&(p=n.type===o.MERGE&&t.id!==n.parents[0]?`M ${i.x} ${i.y} L ${i.x} ${a.y-u} ${c} ${i.x+d} ${a.y} L ${a.x} ${a.y}`:`M ${i.x} ${i.y} L ${a.x-u} ${i.y} ${l} ${a.x} ${i.y+d} L ${a.x} ${a.y}`),i.x>a.x&&(c=`A 20 20, 0, 0, 0,`,l=`A 20 20, 0, 0, 1,`,u=20,d=20,p=n.type===o.MERGE&&t.id!==n.parents[0]?`M ${i.x} ${i.y} L ${i.x} ${a.y-u} ${l} ${i.x-d} ${a.y} L ${a.x} ${a.y}`:`M ${i.x} ${i.y} L ${a.x+u} ${i.y} ${c} ${a.x} ${i.y+d} L ${a.x} ${a.y}`),i.x===a.x&&(p=`M ${i.x} ${i.y} L ${a.x} ${a.y}`)):q===`BT`?(i.x<a.x&&(p=n.type===o.MERGE&&t.id!==n.parents[0]?`M ${i.x} ${i.y} L ${i.x} ${a.y+u} ${l} ${i.x+d} ${a.y} L ${a.x} ${a.y}`:`M ${i.x} ${i.y} L ${a.x-u} ${i.y} ${c} ${a.x} ${i.y-d} L ${a.x} ${a.y}`),i.x>a.x&&(c=`A 20 20, 0, 0, 0,`,l=`A 20 20, 0, 0, 1,`,u=20,d=20,p=n.type===o.MERGE&&t.id!==n.parents[0]?`M ${i.x} ${i.y} L ${i.x} ${a.y+u} ${c} ${i.x-d} ${a.y} L ${a.x} ${a.y}`:`M ${i.x} ${i.y} L ${a.x-u} ${i.y} ${c} ${a.x} ${i.y-d} L ${a.x} ${a.y}`),i.x===a.x&&(p=`M ${i.x} ${i.y} L ${a.x} ${a.y}`)):(i.y<a.y&&(p=n.type===o.MERGE&&t.id!==n.parents[0]?`M ${i.x} ${i.y} L ${a.x-u} ${i.y} ${l} ${a.x} ${i.y+d} L ${a.x} ${a.y}`:`M ${i.x} ${i.y} L ${i.x} ${a.y-u} ${c} ${i.x+d} ${a.y} L ${a.x} ${a.y}`),i.y>a.y&&(p=n.type===o.MERGE&&t.id!==n.parents[0]?`M ${i.x} ${i.y} L ${a.x-u} ${i.y} ${c} ${a.x} ${i.y-d} L ${a.x} ${a.y}`:`M ${i.x} ${i.y} L ${i.x} ${a.y+u} ${l} ${i.x+d} ${a.y} L ${a.x} ${a.y}`),i.y===a.y&&(p=`M ${i.x} ${i.y} L ${a.x} ${a.y}`));if(p===void 0)throw Error(`Line definition not found`);e.append(`path`).attr(`d`,p).attr(`class`,`arrow arrow`+f%B)},`drawArrow`),he=e.h((e,t)=>{let n=e.append(`g`).attr(`class`,`commit-arrows`);[...t.keys()].forEach(e=>{let r=t.get(e);r.parents&&r.parents.length>0&&r.parents.forEach(e=>{me(n,t.get(e),r,t)})})},`drawArrows`),ge=e.h((e,t)=>{let n=e.append(`g`);t.forEach((e,t)=>{let r=t%B,i=V.get(e.name)?.pos;if(i===void 0)throw Error(`Position not found for branch ${e.name}`);let a=n.append(`line`);a.attr(`x1`,0),a.attr(`y1`,i),a.attr(`x2`,K),a.attr(`y2`,i),a.attr(`class`,`branch branch`+r),q===`TB`?(a.attr(`y1`,U),a.attr(`x1`,i),a.attr(`y2`,K),a.attr(`x2`,i)):q===`BT`&&(a.attr(`y1`,K),a.attr(`x1`,i),a.attr(`y2`,U),a.attr(`x2`,i)),G.push(i);let o=e.name,s=Y(o),c=n.insert(`rect`),l=n.insert(`g`).attr(`class`,`branchLabel`).insert(`g`).attr(`class`,`label branch-label`+r);l.node().appendChild(s);let u=s.getBBox();c.attr(`class`,`branchLabelBkg label`+r).attr(`rx`,4).attr(`ry`,4).attr(`x`,-u.width-4-(F?.rotateCommitLabel===!0?30:0)).attr(`y`,-u.height/2+8).attr(`width`,u.width+18).attr(`height`,u.height+4),l.attr(`transform`,`translate(`+(-u.width-14-(F?.rotateCommitLabel===!0?30:0))+`, `+(i-u.height/2-1)+`)`),q===`TB`?(c.attr(`x`,i-u.width/2-10).attr(`y`,0),l.attr(`transform`,`translate(`+(i-u.width/2-5)+`, 0)`)):q===`BT`?(c.attr(`x`,i-u.width/2-10).attr(`y`,K),l.attr(`transform`,`translate(`+(i-u.width/2-5)+`, `+K+`)`)):c.attr(`transform`,`translate(-19, `+(i-u.height/2)+`)`)})},`drawBranches`),_e=e.h(function(e,t,n,r,i){return V.set(e,{pos:t,index:n}),t+=50+(i?40:0)+(q===`TB`||q===`BT`?r.width/2:0),t},`setBranchPosition`),ve={parser:P,db:D,renderer:{draw:e.h(function(r,i,a,o){if(J(),e.g.debug(`in gitgraph renderer`,r+`
14
+ `,`id:`,i,a),!F)throw Error(`GitGraph config not found`);let s=F.rotateCommitLabel??!1,c=o.db;W=c.getCommits();let l=c.getBranchesAsObjArray();q=c.getDirection();let u=e.p(`[id="${i}"]`),d=0;l.forEach((e,t)=>{let n=Y(e.name),r=u.append(`g`),i=r.insert(`g`).attr(`class`,`branchLabel`),a=i.insert(`g`).attr(`class`,`label branch-label`);a.node()?.appendChild(n);let o=n.getBBox();d=_e(e.name,d,t,o,s),a.remove(),i.remove(),r.remove()}),Q(u,W,!1),F.showBranches&&ge(u,l),he(u,W),Q(u,W,!0),n.h.insertTitle(u,`gitTitleText`,F.titleTopMargin??0,c.getDiagramTitle()),t.K(void 0,u,F.diagramPadding,F.useMaxWidth)},`draw`)},styles:e.h(e=>`
15
+ .commit-id,
16
+ .commit-msg,
17
+ .branch-label {
18
+ fill: lightgrey;
19
+ color: lightgrey;
20
+ font-family: 'trebuchet ms', verdana, arial, sans-serif;
21
+ font-family: var(--mermaid-font-family);
22
+ }
23
+ ${[0,1,2,3,4,5,6,7].map(t=>`
24
+ .branch-label${t} { fill: ${e[`gitBranchLabel`+t]}; }
25
+ .commit${t} { stroke: ${e[`git`+t]}; fill: ${e[`git`+t]}; }
26
+ .commit-highlight${t} { stroke: ${e[`gitInv`+t]}; fill: ${e[`gitInv`+t]}; }
27
+ .label${t} { fill: ${e[`git`+t]}; }
28
+ .arrow${t} { stroke: ${e[`git`+t]}; }
29
+ `).join(`
30
+ `)}
31
+
32
+ .branch {
33
+ stroke-width: 1;
34
+ stroke: ${e.lineColor};
35
+ stroke-dasharray: 2;
36
+ }
37
+ .commit-label { font-size: ${e.commitLabelFontSize}; fill: ${e.commitLabelColor};}
38
+ .commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${e.commitLabelBackground}; opacity: 0.5; }
39
+ .tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};}
40
+ .tag-label-bkg { fill: ${e.tagLabelBackground}; stroke: ${e.tagLabelBorder}; }
41
+ .tag-hole { fill: ${e.textColor}; }
42
+
43
+ .commit-merge {
44
+ stroke: ${e.primaryColor};
45
+ fill: ${e.primaryColor};
46
+ }
47
+ .commit-reverse {
48
+ stroke: ${e.primaryColor};
49
+ fill: ${e.primaryColor};
50
+ stroke-width: 3;
51
+ }
52
+ .commit-highlight-outer {
53
+ }
54
+ .commit-highlight-inner {
55
+ stroke: ${e.primaryColor};
56
+ fill: ${e.primaryColor};
57
+ }
58
+
59
+ .arrow { stroke-width: 8; stroke-linecap: round; fill: none}
60
+ .gitTitleText {
61
+ text-anchor: middle;
62
+ font-size: 18px;
63
+ fill: ${e.textColor};
64
+ }
65
+ `,`getStyles`)};exports.diagram=ve;
@@ -0,0 +1,225 @@
1
+ import { i as e } from "./custom-D-TzPpWT.js";
2
+ import { V as t, _ as n, a as r, r as i } from "./_createAssigner-IEX8lwxm.js";
3
+ import { D as a, S as o, a as s, i as c, n as l, r as u, s as d, t as f } from "./_baseUniq-CGoiOkSa.js";
4
+ //#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/union.js
5
+ var p = i(function(e) {
6
+ return f(o(e, 1, n, !0));
7
+ }), m = "\0", h = "\0", g = "", _ = class {
8
+ constructor(e = {}) {
9
+ this._isDirected = Object.prototype.hasOwnProperty.call(e, "directed") ? e.directed : !0, this._isMultigraph = Object.prototype.hasOwnProperty.call(e, "multigraph") ? e.multigraph : !1, this._isCompound = Object.prototype.hasOwnProperty.call(e, "compound") ? e.compound : !1, this._label = void 0, this._defaultNodeLabelFn = r(void 0), this._defaultEdgeLabelFn = r(void 0), this._nodes = {}, this._isCompound && (this._parent = {}, this._children = {}, this._children[h] = {}), this._in = {}, this._preds = {}, this._out = {}, this._sucs = {}, this._edgeObjs = {}, this._edgeLabels = {};
10
+ }
11
+ isDirected() {
12
+ return this._isDirected;
13
+ }
14
+ isMultigraph() {
15
+ return this._isMultigraph;
16
+ }
17
+ isCompound() {
18
+ return this._isCompound;
19
+ }
20
+ setGraph(e) {
21
+ return this._label = e, this;
22
+ }
23
+ graph() {
24
+ return this._label;
25
+ }
26
+ setDefaultNodeLabel(e) {
27
+ return t(e) || (e = r(e)), this._defaultNodeLabelFn = e, this;
28
+ }
29
+ nodeCount() {
30
+ return this._nodeCount;
31
+ }
32
+ nodes() {
33
+ return a(this._nodes);
34
+ }
35
+ sources() {
36
+ var t = this;
37
+ return s(this.nodes(), function(n) {
38
+ return e(t._in[n]);
39
+ });
40
+ }
41
+ sinks() {
42
+ var t = this;
43
+ return s(this.nodes(), function(n) {
44
+ return e(t._out[n]);
45
+ });
46
+ }
47
+ setNodes(e, t) {
48
+ var n = arguments, r = this;
49
+ return d(e, function(e) {
50
+ n.length > 1 ? r.setNode(e, t) : r.setNode(e);
51
+ }), this;
52
+ }
53
+ setNode(e, t) {
54
+ return Object.prototype.hasOwnProperty.call(this._nodes, e) ? (arguments.length > 1 && (this._nodes[e] = t), this) : (this._nodes[e] = arguments.length > 1 ? t : this._defaultNodeLabelFn(e), this._isCompound && (this._parent[e] = h, this._children[e] = {}, this._children[h][e] = !0), this._in[e] = {}, this._preds[e] = {}, this._out[e] = {}, this._sucs[e] = {}, ++this._nodeCount, this);
55
+ }
56
+ node(e) {
57
+ return this._nodes[e];
58
+ }
59
+ hasNode(e) {
60
+ return Object.prototype.hasOwnProperty.call(this._nodes, e);
61
+ }
62
+ removeNode(e) {
63
+ if (Object.prototype.hasOwnProperty.call(this._nodes, e)) {
64
+ var t = (e) => this.removeEdge(this._edgeObjs[e]);
65
+ delete this._nodes[e], this._isCompound && (this._removeFromParentsChildList(e), delete this._parent[e], d(this.children(e), (e) => {
66
+ this.setParent(e);
67
+ }), delete this._children[e]), d(a(this._in[e]), t), delete this._in[e], delete this._preds[e], d(a(this._out[e]), t), delete this._out[e], delete this._sucs[e], --this._nodeCount;
68
+ }
69
+ return this;
70
+ }
71
+ setParent(e, t) {
72
+ if (!this._isCompound) throw Error("Cannot set parent in a non-compound graph");
73
+ if (u(t)) t = h;
74
+ else {
75
+ t += "";
76
+ for (var n = t; !u(n); n = this.parent(n)) if (n === e) throw Error("Setting " + t + " as parent of " + e + " would create a cycle");
77
+ this.setNode(t);
78
+ }
79
+ return this.setNode(e), this._removeFromParentsChildList(e), this._parent[e] = t, this._children[t][e] = !0, this;
80
+ }
81
+ _removeFromParentsChildList(e) {
82
+ delete this._children[this._parent[e]][e];
83
+ }
84
+ parent(e) {
85
+ if (this._isCompound) {
86
+ var t = this._parent[e];
87
+ if (t !== h) return t;
88
+ }
89
+ }
90
+ children(e) {
91
+ if (u(e) && (e = h), this._isCompound) {
92
+ var t = this._children[e];
93
+ if (t) return a(t);
94
+ } else if (e === h) return this.nodes();
95
+ else if (this.hasNode(e)) return [];
96
+ }
97
+ predecessors(e) {
98
+ var t = this._preds[e];
99
+ if (t) return a(t);
100
+ }
101
+ successors(e) {
102
+ var t = this._sucs[e];
103
+ if (t) return a(t);
104
+ }
105
+ neighbors(e) {
106
+ var t = this.predecessors(e);
107
+ if (t) return p(t, this.successors(e));
108
+ }
109
+ isLeaf(e) {
110
+ return (this.isDirected() ? this.successors(e) : this.neighbors(e)).length === 0;
111
+ }
112
+ filterNodes(e) {
113
+ var t = new this.constructor({
114
+ directed: this._isDirected,
115
+ multigraph: this._isMultigraph,
116
+ compound: this._isCompound
117
+ });
118
+ t.setGraph(this.graph());
119
+ var n = this;
120
+ d(this._nodes, function(n, r) {
121
+ e(r) && t.setNode(r, n);
122
+ }), d(this._edgeObjs, function(e) {
123
+ t.hasNode(e.v) && t.hasNode(e.w) && t.setEdge(e, n.edge(e));
124
+ });
125
+ var r = {};
126
+ function i(e) {
127
+ var a = n.parent(e);
128
+ return a === void 0 || t.hasNode(a) ? (r[e] = a, a) : a in r ? r[a] : i(a);
129
+ }
130
+ return this._isCompound && d(t.nodes(), function(e) {
131
+ t.setParent(e, i(e));
132
+ }), t;
133
+ }
134
+ setDefaultEdgeLabel(e) {
135
+ return t(e) || (e = r(e)), this._defaultEdgeLabelFn = e, this;
136
+ }
137
+ edgeCount() {
138
+ return this._edgeCount;
139
+ }
140
+ edges() {
141
+ return c(this._edgeObjs);
142
+ }
143
+ setPath(e, t) {
144
+ var n = this, r = arguments;
145
+ return l(e, function(e, i) {
146
+ return r.length > 1 ? n.setEdge(e, i, t) : n.setEdge(e, i), i;
147
+ }), this;
148
+ }
149
+ setEdge() {
150
+ var e, t, n, r, i = !1, a = arguments[0];
151
+ typeof a == "object" && a && "v" in a ? (e = a.v, t = a.w, n = a.name, arguments.length === 2 && (r = arguments[1], i = !0)) : (e = a, t = arguments[1], n = arguments[3], arguments.length > 2 && (r = arguments[2], i = !0)), e = "" + e, t = "" + t, u(n) || (n = "" + n);
152
+ var o = b(this._isDirected, e, t, n);
153
+ if (Object.prototype.hasOwnProperty.call(this._edgeLabels, o)) return i && (this._edgeLabels[o] = r), this;
154
+ if (!u(n) && !this._isMultigraph) throw Error("Cannot set a named edge when isMultigraph = false");
155
+ this.setNode(e), this.setNode(t), this._edgeLabels[o] = i ? r : this._defaultEdgeLabelFn(e, t, n);
156
+ var s = x(this._isDirected, e, t, n);
157
+ return e = s.v, t = s.w, Object.freeze(s), this._edgeObjs[o] = s, v(this._preds[t], e), v(this._sucs[e], t), this._in[t][o] = s, this._out[e][o] = s, this._edgeCount++, this;
158
+ }
159
+ edge(e, t, n) {
160
+ var r = arguments.length === 1 ? S(this._isDirected, arguments[0]) : b(this._isDirected, e, t, n);
161
+ return this._edgeLabels[r];
162
+ }
163
+ hasEdge(e, t, n) {
164
+ var r = arguments.length === 1 ? S(this._isDirected, arguments[0]) : b(this._isDirected, e, t, n);
165
+ return Object.prototype.hasOwnProperty.call(this._edgeLabels, r);
166
+ }
167
+ removeEdge(e, t, n) {
168
+ var r = arguments.length === 1 ? S(this._isDirected, arguments[0]) : b(this._isDirected, e, t, n), i = this._edgeObjs[r];
169
+ return i && (e = i.v, t = i.w, delete this._edgeLabels[r], delete this._edgeObjs[r], y(this._preds[t], e), y(this._sucs[e], t), delete this._in[t][r], delete this._out[e][r], this._edgeCount--), this;
170
+ }
171
+ inEdges(e, t) {
172
+ var n = this._in[e];
173
+ if (n) {
174
+ var r = c(n);
175
+ return t ? s(r, function(e) {
176
+ return e.v === t;
177
+ }) : r;
178
+ }
179
+ }
180
+ outEdges(e, t) {
181
+ var n = this._out[e];
182
+ if (n) {
183
+ var r = c(n);
184
+ return t ? s(r, function(e) {
185
+ return e.w === t;
186
+ }) : r;
187
+ }
188
+ }
189
+ nodeEdges(e, t) {
190
+ var n = this.inEdges(e, t);
191
+ if (n) return n.concat(this.outEdges(e, t));
192
+ }
193
+ };
194
+ _.prototype._nodeCount = 0, _.prototype._edgeCount = 0;
195
+ function v(e, t) {
196
+ e[t] ? e[t]++ : e[t] = 1;
197
+ }
198
+ function y(e, t) {
199
+ --e[t] || delete e[t];
200
+ }
201
+ function b(e, t, n, r) {
202
+ var i = "" + t, a = "" + n;
203
+ if (!e && i > a) {
204
+ var o = i;
205
+ i = a, a = o;
206
+ }
207
+ return i + g + a + g + (u(r) ? m : r);
208
+ }
209
+ function x(e, t, n, r) {
210
+ var i = "" + t, a = "" + n;
211
+ if (!e && i > a) {
212
+ var o = i;
213
+ i = a, a = o;
214
+ }
215
+ var s = {
216
+ v: i,
217
+ w: a
218
+ };
219
+ return r && (s.name = r), s;
220
+ }
221
+ function S(e, t) {
222
+ return b(e, t.v, t.w, t.name);
223
+ }
224
+ //#endregion
225
+ export { _ as t };
@@ -0,0 +1 @@
1
+ const e=require("./custom-Bl_fVJZ0.cjs"),t=require("./_createAssigner-DqH64jc7.cjs"),n=require("./_baseUniq-CYtOXxfV.cjs");var r=t.r(function(e){return n.t(n.S(e,1,t._,!0))}),i=`\0`,a=`\0`,o=``,s=class{constructor(e={}){this._isDirected=Object.prototype.hasOwnProperty.call(e,`directed`)?e.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,`multigraph`)?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,`compound`)?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=t.a(void 0),this._defaultEdgeLabelFn=t.a(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[a]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return t.V(e)||(e=t.a(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return n.D(this._nodes)}sources(){var t=this;return n.a(this.nodes(),function(n){return e.i(t._in[n])})}sinks(){var t=this;return n.a(this.nodes(),function(n){return e.i(t._out[n])})}setNodes(e,t){var r=arguments,i=this;return n.s(e,function(e){r.length>1?i.setNode(e,t):i.setNode(e)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=a,this._children[e]={},this._children[a][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var t=e=>this.removeEdge(this._edgeObjs[e]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],n.s(this.children(e),e=>{this.setParent(e)}),delete this._children[e]),n.s(n.D(this._in[e]),t),delete this._in[e],delete this._preds[e],n.s(n.D(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw Error(`Cannot set parent in a non-compound graph`);if(n.r(t))t=a;else{t+=``;for(var r=t;!n.r(r);r=this.parent(r))if(r===e)throw Error(`Setting `+t+` as parent of `+e+` would create a cycle`);this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==a)return t}}children(e){if(n.r(e)&&(e=a),this._isCompound){var t=this._children[e];if(t)return n.D(t)}else if(e===a)return this.nodes();else if(this.hasNode(e))return[]}predecessors(e){var t=this._preds[e];if(t)return n.D(t)}successors(e){var t=this._sucs[e];if(t)return n.D(t)}neighbors(e){var t=this.predecessors(e);if(t)return r(t,this.successors(e))}isLeaf(e){return(this.isDirected()?this.successors(e):this.neighbors(e)).length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var r=this;n.s(this._nodes,function(n,r){e(r)&&t.setNode(r,n)}),n.s(this._edgeObjs,function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,r.edge(e))});var i={};function a(e){var n=r.parent(e);return n===void 0||t.hasNode(n)?(i[e]=n,n):n in i?i[n]:a(n)}return this._isCompound&&n.s(t.nodes(),function(e){t.setParent(e,a(e))}),t}setDefaultEdgeLabel(e){return t.V(e)||(e=t.a(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return n.i(this._edgeObjs)}setPath(e,t){var r=this,i=arguments;return n.n(e,function(e,n){return i.length>1?r.setEdge(e,n,t):r.setEdge(e,n),n}),this}setEdge(){var e,t,r,i,a=!1,o=arguments[0];typeof o==`object`&&o&&`v`in o?(e=o.v,t=o.w,r=o.name,arguments.length===2&&(i=arguments[1],a=!0)):(e=o,t=arguments[1],r=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),e=``+e,t=``+t,n.r(r)||(r=``+r);var s=u(this._isDirected,e,t,r);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,s))return a&&(this._edgeLabels[s]=i),this;if(!n.r(r)&&!this._isMultigraph)throw Error(`Cannot set a named edge when isMultigraph = false`);this.setNode(e),this.setNode(t),this._edgeLabels[s]=a?i:this._defaultEdgeLabelFn(e,t,r);var l=d(this._isDirected,e,t,r);return e=l.v,t=l.w,Object.freeze(l),this._edgeObjs[s]=l,c(this._preds[t],e),c(this._sucs[e],t),this._in[t][s]=l,this._out[e][s]=l,this._edgeCount++,this}edge(e,t,n){var r=arguments.length===1?f(this._isDirected,arguments[0]):u(this._isDirected,e,t,n);return this._edgeLabels[r]}hasEdge(e,t,n){var r=arguments.length===1?f(this._isDirected,arguments[0]):u(this._isDirected,e,t,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,r)}removeEdge(e,t,n){var r=arguments.length===1?f(this._isDirected,arguments[0]):u(this._isDirected,e,t,n),i=this._edgeObjs[r];return i&&(e=i.v,t=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],l(this._preds[t],e),l(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this}inEdges(e,t){var r=this._in[e];if(r){var i=n.i(r);return t?n.a(i,function(e){return e.v===t}):i}}outEdges(e,t){var r=this._out[e];if(r){var i=n.i(r);return t?n.a(i,function(e){return e.w===t}):i}}nodeEdges(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}};s.prototype._nodeCount=0,s.prototype._edgeCount=0;function c(e,t){e[t]?e[t]++:e[t]=1}function l(e,t){--e[t]||delete e[t]}function u(e,t,r,a){var s=``+t,c=``+r;if(!e&&s>c){var l=s;s=c,c=l}return s+o+c+o+(n.r(a)?i:a)}function d(e,t,n,r){var i=``+t,a=``+n;if(!e&&i>a){var o=i;i=a,a=o}var s={v:i,w:a};return r&&(s.name=r),s}function f(e,t){return u(e,t.v,t.w,t.name)}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return s}});
@@ -0,0 +1,2 @@
1
+ import { d as e } from "./mermaid-parser.core-B84fnaGG.js";
2
+ export { e as createInfoServices };
@@ -0,0 +1 @@
1
+ const e=require("./mermaid-parser.core-C9EbhVVg.cjs");exports.createInfoServices=e.d;
@@ -0,0 +1,2 @@
1
+ const e=require("./custom-Bl_fVJZ0.cjs"),t=require("./src-BMjps4Ui.cjs"),n=require("./chunk-ABZYJK2D-CbIYYZa_.cjs"),r=require("./mermaid-parser.core-C9EbhVVg.cjs");var i={parse:t.h(async e=>{let n=await r.t(`info`,e);t.g.debug(n)},`parse`)},a={version:e.p.version+``},o={parser:i,db:{getVersion:t.h(()=>a.version,`getVersion`)},renderer:{draw:t.h((r,i,a)=>{t.g.debug(`rendering info diagram
2
+ `+r);let o=e.f(i);n.c(o,100,400,!0),o.append(`g`).append(`text`).attr(`x`,100).attr(`y`,40).attr(`class`,`version`).attr(`font-size`,32).style(`text-anchor`,`middle`).text(`v${a}`)},`draw`)}};exports.diagram=o;
@@ -0,0 +1,19 @@
1
+ import { f as e, p as t } from "./custom-D-TzPpWT.js";
2
+ import { g as n, h as r } from "./src-BuisGndr.js";
3
+ import { c as i } from "./chunk-ABZYJK2D-DDrmE3Q7.js";
4
+ import { t as a } from "./mermaid-parser.core-B84fnaGG.js";
5
+ //#region node_modules/.pnpm/mermaid@11.12.0/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-F6ZHWCRC.mjs
6
+ var o = { parse: /* @__PURE__ */ r(async (e) => {
7
+ let t = await a("info", e);
8
+ n.debug(t);
9
+ }, "parse") }, s = { version: t.version + "" }, c = {
10
+ parser: o,
11
+ db: { getVersion: /* @__PURE__ */ r(() => s.version, "getVersion") },
12
+ renderer: { draw: /* @__PURE__ */ r((t, r, a) => {
13
+ n.debug("rendering info diagram\n" + t);
14
+ let o = e(r);
15
+ i(o, 100, 400, !0), o.append("g").append("text").attr("x", 100).attr("y", 40).attr("class", "version").attr("font-size", 32).style("text-anchor", "middle").text(`v${a}`);
16
+ }, "draw") }
17
+ };
18
+ //#endregion
19
+ export { c as diagram };
@@ -0,0 +1 @@
1
+ function e(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return e}});
@@ -0,0 +1,15 @@
1
+ //#region node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/init.js
2
+ function e(e, t) {
3
+ switch (arguments.length) {
4
+ case 0: break;
5
+ case 1:
6
+ this.range(e);
7
+ break;
8
+ default:
9
+ this.range(t).domain(e);
10
+ break;
11
+ }
12
+ return this;
13
+ }
14
+ //#endregion
15
+ export { e as t };
@@ -0,0 +1,139 @@
1
+ const e=require("./src-BMjps4Ui.cjs"),t=require("./chunk-ABZYJK2D-CbIYYZa_.cjs"),n=require("./arc-C78br9Yj.cjs"),r=require("./chunk-FMBD7UC4-DWMVCXKq.cjs"),i=require("./chunk-TZMSLE5B-D92K1Ja5.cjs");var a=(function(){var t=e.h(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[6,8,10,11,12,14,16,17,18],r=[1,9],i=[1,10],a=[1,11],o=[1,12],s=[1,13],c=[1,14],l={trace:e.h(function(){},`trace`),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:`error`,4:`journey`,6:`EOF`,8:`SPACE`,10:`NEWLINE`,11:`title`,12:`acc_title`,13:`acc_title_value`,14:`acc_descr`,15:`acc_descr_value`,16:`acc_descr_multiline_value`,17:`section`,18:`taskName`,19:`taskData`},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:e.h(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 9:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 10:case 11:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 12:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 13:r.addTask(a[s-1],a[s]),this.$=`task`;break}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},t(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:i,14:a,16:o,17:s,18:c},t(n,[2,7],{1:[2,1]}),t(n,[2,3]),{9:15,11:r,12:i,14:a,16:o,17:s,18:c},t(n,[2,5]),t(n,[2,6]),t(n,[2,8]),{13:[1,16]},{15:[1,17]},t(n,[2,11]),t(n,[2,12]),{19:[1,18]},t(n,[2,4]),t(n,[2,9]),t(n,[2,10]),t(n,[2,13])],defaultActions:{},parseError:e.h(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e.h(function(t){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:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e.h(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e.h(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){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]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
+ `+h.showPosition()+`
3
+ Expecting `+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,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1: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--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;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);break;case 3:return!0}}return!0},`parse`)};l.lexer=(function(){return{EOF:1,parseError:e.h(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e.h(function(e,t){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={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e.h(function(){var e=this._input[0];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},`input`),unput:e.h(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);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);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,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},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e.h(function(){return this._more=!0,this},`more`),reject:e.h(function(){if(this.options.backtrack_lexer)this._backtrack=!0;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).
4
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e.h(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e.h(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e.h(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e.h(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
+ `+t+`^`},`showPosition`),test_match:e.h(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},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={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},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;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e.h(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);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)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}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.
6
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e.h(function(){return this.next()||this.lex()},`lex`),begin:e.h(function(e){this.conditionStack.push(e)},`begin`),popState:e.h(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e.h(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e.h(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e.h(function(e){this.begin(e)},`pushState`),stateStackSize:e.h(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:e.h(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin(`acc_title`),12;case 8:return this.popState(),`acc_title_value`;case 9:return this.begin(`acc_descr`),14;case 10:return this.popState(),`acc_descr_value`;case 11:this.begin(`acc_descr_multiline`);break;case 12:this.popState();break;case 13:return`acc_descr_multiline_value`;case 14:return 17;case 15:return 18;case 16:return 19;case 17:return`:`;case 18:return 6;case 19:return`INVALID`}},`anonymous`),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}}})();function u(){this.yy={}}return e.h(u,`Parser`),u.prototype=l,l.Parser=u,new u})();a.parser=a;var o=a,s=``,c=[],l=[],u=[],d=e.h(function(){c.length=0,l.length=0,s=``,u.length=0,t.a()},`clear`),f=e.h(function(e){s=e,c.push(e)},`addSection`),p=e.h(function(){return c},`getSections`),m=e.h(function(){let e=v(),t=0;for(;!e&&t<100;)e=v(),t++;return l.push(...u),l},`getTasks`),h=e.h(function(){let e=[];return l.forEach(t=>{t.people&&e.push(...t.people)}),[...new Set(e)].sort()},`updateActors`),g=e.h(function(e,t){let n=t.substr(1).split(`:`),r=0,i=[];n.length===1?(r=Number(n[0]),i=[]):(r=Number(n[0]),i=n[1].split(`,`));let a=i.map(e=>e.trim()),o={section:s,type:s,people:a,task:e,score:r};u.push(o)},`addTask`),_=e.h(function(e){let t={section:s,type:s,description:e,task:e,classes:[]};l.push(t)},`addTaskOrg`),v=e.h(function(){let t=e.h(function(e){return u[e].processed},`compileTask`),n=!0;for(let[e,r]of u.entries())t(e),n&&=r.processed;return n},`compileTasks`),y={getConfig:e.h(()=>t.b().journey,`getConfig`),clear:d,setDiagramTitle:t.U,getDiagramTitle:t.C,setAccTitle:t.B,getAccTitle:t.v,setAccDescription:t.z,getAccDescription:t._,addSection:f,getSections:p,getTasks:m,addTask:g,addTaskOrg:_,getActors:e.h(function(){return h()},`getActors`)},b=e.h(e=>`.label {
7
+ font-family: ${e.fontFamily};
8
+ color: ${e.textColor};
9
+ }
10
+ .mouth {
11
+ stroke: #666;
12
+ }
13
+
14
+ line {
15
+ stroke: ${e.textColor}
16
+ }
17
+
18
+ .legend {
19
+ fill: ${e.textColor};
20
+ font-family: ${e.fontFamily};
21
+ }
22
+
23
+ .label text {
24
+ fill: #333;
25
+ }
26
+ .label {
27
+ color: ${e.textColor}
28
+ }
29
+
30
+ .face {
31
+ ${e.faceColor?`fill: ${e.faceColor}`:`fill: #FFF8DC`};
32
+ stroke: #999;
33
+ }
34
+
35
+ .node rect,
36
+ .node circle,
37
+ .node ellipse,
38
+ .node polygon,
39
+ .node path {
40
+ fill: ${e.mainBkg};
41
+ stroke: ${e.nodeBorder};
42
+ stroke-width: 1px;
43
+ }
44
+
45
+ .node .label {
46
+ text-align: center;
47
+ }
48
+ .node.clickable {
49
+ cursor: pointer;
50
+ }
51
+
52
+ .arrowheadPath {
53
+ fill: ${e.arrowheadColor};
54
+ }
55
+
56
+ .edgePath .path {
57
+ stroke: ${e.lineColor};
58
+ stroke-width: 1.5px;
59
+ }
60
+
61
+ .flowchart-link {
62
+ stroke: ${e.lineColor};
63
+ fill: none;
64
+ }
65
+
66
+ .edgeLabel {
67
+ background-color: ${e.edgeLabelBackground};
68
+ rect {
69
+ opacity: 0.5;
70
+ }
71
+ text-align: center;
72
+ }
73
+
74
+ .cluster rect {
75
+ }
76
+
77
+ .cluster text {
78
+ fill: ${e.titleColor};
79
+ }
80
+
81
+ div.mermaidTooltip {
82
+ position: absolute;
83
+ text-align: center;
84
+ max-width: 200px;
85
+ padding: 2px;
86
+ font-family: ${e.fontFamily};
87
+ font-size: 12px;
88
+ background: ${e.tertiaryColor};
89
+ border: 1px solid ${e.border2};
90
+ border-radius: 2px;
91
+ pointer-events: none;
92
+ z-index: 100;
93
+ }
94
+
95
+ .task-type-0, .section-type-0 {
96
+ ${e.fillType0?`fill: ${e.fillType0}`:``};
97
+ }
98
+ .task-type-1, .section-type-1 {
99
+ ${e.fillType0?`fill: ${e.fillType1}`:``};
100
+ }
101
+ .task-type-2, .section-type-2 {
102
+ ${e.fillType0?`fill: ${e.fillType2}`:``};
103
+ }
104
+ .task-type-3, .section-type-3 {
105
+ ${e.fillType0?`fill: ${e.fillType3}`:``};
106
+ }
107
+ .task-type-4, .section-type-4 {
108
+ ${e.fillType0?`fill: ${e.fillType4}`:``};
109
+ }
110
+ .task-type-5, .section-type-5 {
111
+ ${e.fillType0?`fill: ${e.fillType5}`:``};
112
+ }
113
+ .task-type-6, .section-type-6 {
114
+ ${e.fillType0?`fill: ${e.fillType6}`:``};
115
+ }
116
+ .task-type-7, .section-type-7 {
117
+ ${e.fillType0?`fill: ${e.fillType7}`:``};
118
+ }
119
+
120
+ .actor-0 {
121
+ ${e.actor0?`fill: ${e.actor0}`:``};
122
+ }
123
+ .actor-1 {
124
+ ${e.actor1?`fill: ${e.actor1}`:``};
125
+ }
126
+ .actor-2 {
127
+ ${e.actor2?`fill: ${e.actor2}`:``};
128
+ }
129
+ .actor-3 {
130
+ ${e.actor3?`fill: ${e.actor3}`:``};
131
+ }
132
+ .actor-4 {
133
+ ${e.actor4?`fill: ${e.actor4}`:``};
134
+ }
135
+ .actor-5 {
136
+ ${e.actor5?`fill: ${e.actor5}`:``};
137
+ }
138
+ ${r.t()}
139
+ `,`getStyles`),x=e.h(function(e,t){return i.i(e,t)},`drawRect`),S=e.h(function(t,r){let i=t.append(`circle`).attr(`cx`,r.cx).attr(`cy`,r.cy).attr(`class`,`face`).attr(`r`,15).attr(`stroke-width`,2).attr(`overflow`,`visible`),a=t.append(`g`);a.append(`circle`).attr(`cx`,r.cx-15/3).attr(`cy`,r.cy-15/3).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`),a.append(`circle`).attr(`cx`,r.cx+15/3).attr(`cy`,r.cy-15/3).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`);function o(e){let t=n.t().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,t).attr(`transform`,`translate(`+r.cx+`,`+(r.cy+2)+`)`)}e.h(o,`smile`);function s(e){let t=n.t().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,t).attr(`transform`,`translate(`+r.cx+`,`+(r.cy+7)+`)`)}e.h(s,`sad`);function c(e){e.append(`line`).attr(`class`,`mouth`).attr(`stroke`,2).attr(`x1`,r.cx-5).attr(`y1`,r.cy+7).attr(`x2`,r.cx+5).attr(`y2`,r.cy+7).attr(`class`,`mouth`).attr(`stroke-width`,`1px`).attr(`stroke`,`#666`)}return e.h(c,`ambivalent`),r.score>3?o(a):r.score<3?s(a):c(a),i},`drawFace`),C=e.h(function(e,t){let n=e.append(`circle`);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},`drawCircle`),w=e.h(function(e,t){return i.a(e,t)},`drawText`),T=e.h(function(t,n){function r(e,t,n,r,i){return e+`,`+t+` `+(e+n)+`,`+t+` `+(e+n)+`,`+(t+r-i)+` `+(e+n-i*1.2)+`,`+(t+r)+` `+e+`,`+(t+r)}e.h(r,`genPoints`);let i=t.append(`polygon`);i.attr(`points`,r(n.x,n.y,50,20,7)),i.attr(`class`,`labelBox`),n.y+=n.labelMargin,n.x+=.5*n.labelMargin,w(t,n)},`drawLabel`),E=e.h(function(e,t,n){let r=e.append(`g`),a=i.o();a.x=t.x,a.y=t.y,a.fill=t.fill,a.width=n.width*t.taskCount+n.diagramMarginX*(t.taskCount-1),a.height=n.height,a.class=`journey-section section-type-`+t.num,a.rx=3,a.ry=3,x(r,a),A(n)(t.text,r,a.x,a.y,a.width,a.height,{class:`journey-section section-type-`+t.num},n,t.colour)},`drawSection`),D=-1,O=e.h(function(e,t,n){let r=t.x+n.width/2,a=e.append(`g`);D++,a.append(`line`).attr(`id`,`task`+D).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`),S(a,{cx:r,cy:300+(5-t.score)*30,score:t.score});let o=i.o();o.x=t.x,o.y=t.y,o.fill=t.fill,o.width=n.width,o.height=n.height,o.class=`task task-type-`+t.num,o.rx=3,o.ry=3,x(a,o);let s=t.x+14;t.people.forEach(e=>{let n=t.actors[e].color;C(a,{cx:s,cy:t.y,r:7,fill:n,stroke:`#000`,title:e,pos:t.actors[e].position}),s+=10}),A(n)(t.task,a,o.x,o.y,o.width,o.height,{class:`task`},n,t.colour)},`drawTask`),k=e.h(function(e,t){i.t(e,t)},`drawBackgroundRect`),A=(function(){function t(e,t,n,r,a,o,s,c){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)}e.h(t,`byText`);function n(e,t,n,r,a,o,s,c,l){let{taskFontSize:u,taskFontFamily:d}=c,f=e.split(/<br\s*\/?>/gi);for(let e=0;e<f.length;e++){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);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)}}e.h(n,`byTspan`);function r(e,t,r,a,o,s,c,l){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%`);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)}e.h(r,`byFo`);function i(e,t){for(let n in t)n in t&&e.attr(n,t[n])}return e.h(i,`_setTextAttrs`),function(e){return e.textPlacement===`fo`?r:e.textPlacement===`old`?t:n}})(),j={drawRect:x,drawCircle:C,drawSection:E,drawText:w,drawLabel:T,drawTask:O,drawBackgroundRect:k,initGraphics:e.h(function(e){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`)},`initGraphics`)},M=e.h(function(e){Object.keys(e).forEach(function(t){I[t]=e[t]})},`setConf`),N={},P=0;function F(e){let n=t.b().journey,r=n.maxLabelWidth;P=0;let i=60;Object.keys(N).forEach(t=>{let a=N[t].color,o={cx:20,cy:i,r:7,fill:a,stroke:`#000`,pos:N[t].position};j.drawCircle(e,o);let s=e.append(`text`).attr(`visibility`,`hidden`).text(t),c=s.node().getBoundingClientRect().width;s.remove();let l=[];if(c<=r)l=[t];else{let n=t.split(` `),i=``;s=e.append(`text`).attr(`visibility`,`hidden`),n.forEach(e=>{let t=i?`${i} ${e}`:e;if(s.text(t),s.node().getBoundingClientRect().width>r){if(i&&l.push(i),i=e,s.text(e),s.node().getBoundingClientRect().width>r){let t=``;for(let n of e)t+=n,s.text(t+`-`),s.node().getBoundingClientRect().width>r&&(l.push(t.slice(0,-1)+`-`),t=n);i=t}}else i=t}),i&&l.push(i),s.remove()}l.forEach((t,r)=>{let a={x:40,y:i+7+r*20,fill:`#666`,text:t,textMargin:n.boxTextMargin??5},o=j.drawText(e,a).node().getBoundingClientRect().width;o>P&&o>n.leftMargin-o&&(P=o)}),i+=Math.max(20,l.length*20)})}e.h(F,`drawActorLegend`);var I=t.b().journey,L=0,R=e.h(function(n,r,i,a){let o=t.b(),s=o.journey.titleColor,c=o.journey.titleFontSize,l=o.journey.titleFontFamily,u=o.securityLevel,d;u===`sandbox`&&(d=e.p(`#i`+r));let f=u===`sandbox`?e.p(d.nodes()[0].contentDocument.body):e.p(`body`);z.init();let p=f.select(`#`+r);j.initGraphics(p);let m=a.db.getTasks(),h=a.db.getDiagramTitle(),g=a.db.getActors();for(let e in N)delete N[e];let _=0;g.forEach(e=>{N[e]={color:I.actorColours[_%I.actorColours.length],position:_},_++}),F(p),L=I.leftMargin+P,z.insert(0,0,L,Object.keys(N).length*50),H(p,m,0);let v=z.getBounds();h&&p.append(`text`).text(h).attr(`x`,L).attr(`font-size`,c).attr(`font-weight`,`bold`).attr(`y`,25).attr(`fill`,s).attr(`font-family`,l);let y=v.stopy-v.starty+2*I.diagramMarginY,b=L+v.stopx+2*I.diagramMarginX;t.c(p,y,b,I.useMaxWidth),p.append(`line`).attr(`x1`,L).attr(`y1`,I.height*4).attr(`x2`,b-L-4).attr(`y2`,I.height*4).attr(`stroke-width`,4).attr(`stroke`,`black`).attr(`marker-end`,`url(#arrowhead)`);let x=h?70:0;p.attr(`viewBox`,`${v.startx} -25 ${b} ${y+x}`),p.attr(`preserveAspectRatio`,`xMinYMin meet`),p.attr(`height`,y+x+25)},`draw`),z={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:e.h(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},`init`),updateVal:e.h(function(e,t,n,r){e[t]===void 0?e[t]=n:e[t]=r(n,e[t])},`updateVal`),updateBounds:e.h(function(n,r,i,a){let o=t.b().journey,s=this,c=0;function l(t){return e.h(function(e){c++;let l=s.sequenceItems.length-c+1;s.updateVal(e,`starty`,r-l*o.boxMargin,Math.min),s.updateVal(e,`stopy`,a+l*o.boxMargin,Math.max),s.updateVal(z.data,`startx`,n-l*o.boxMargin,Math.min),s.updateVal(z.data,`stopx`,i+l*o.boxMargin,Math.max),t!==`activation`&&(s.updateVal(e,`startx`,n-l*o.boxMargin,Math.min),s.updateVal(e,`stopx`,i+l*o.boxMargin,Math.max),s.updateVal(z.data,`starty`,r-l*o.boxMargin,Math.min),s.updateVal(z.data,`stopy`,a+l*o.boxMargin,Math.max))},`updateItemBounds`)}e.h(l,`updateFn`),this.sequenceItems.forEach(l())},`updateBounds`),insert:e.h(function(e,t,n,r){let i=Math.min(e,n),a=Math.max(e,n),o=Math.min(t,r),s=Math.max(t,r);this.updateVal(z.data,`startx`,i,Math.min),this.updateVal(z.data,`starty`,o,Math.min),this.updateVal(z.data,`stopx`,a,Math.max),this.updateVal(z.data,`stopy`,s,Math.max),this.updateBounds(i,o,a,s)},`insert`),bumpVerticalPos:e.h(function(e){this.verticalPos+=e,this.data.stopy=this.verticalPos},`bumpVerticalPos`),getVerticalPos:e.h(function(){return this.verticalPos},`getVerticalPos`),getBounds:e.h(function(){return this.data},`getBounds`)},B=I.sectionFills,V=I.sectionColours,H=e.h(function(e,n,r){let i=t.b().journey,a=``,o=r+(i.height*2+i.diagramMarginY),s=0,c=`#CCC`,l=`black`,u=0;for(let[t,r]of n.entries()){if(a!==r.section){c=B[s%B.length],u=s%B.length,l=V[s%V.length];let o=0,d=r.section;for(let e=t;e<n.length&&n[e].section==d;e++)o+=1;let f={x:t*i.taskMargin+t*i.width+L,y:50,text:r.section,fill:c,num:u,colour:l,taskCount:o};j.drawSection(e,f,i),a=r.section,s++}let d=r.people.reduce((e,t)=>(N[t]&&(e[t]=N[t]),e),{});r.x=t*i.taskMargin+t*i.width+L,r.y=o,r.width=i.diagramMarginX,r.height=i.diagramMarginY,r.colour=l,r.fill=c,r.num=u,r.actors=d,j.drawTask(e,r,i),z.insert(r.x,r.y,r.x+r.width+i.taskMargin,450)}},`drawTasks`),U={setConf:M,draw:R},W={parser:o,db:y,renderer:U,styles:b,init:e.h(e=>{U.setConf(e.journey),y.clear()},`init`)};exports.diagram=W;