mio-previewer 0.2.74 → 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 (280) 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.esm.js +4939 -0
  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.esm.js +2 -0
  135. package/dist/plugins/markdown-it.cjs.js +1 -3
  136. package/dist/plugins/markdown-it.esm.js +2 -0
  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/mio-previewer.es.js +0 -6171
  249. package/dist/ordinal-CagbB1m8.cjs +0 -1
  250. package/dist/ordinal-DfAQgscy.js +0 -61
  251. package/dist/packet-HUATNLJX-B-qfkr5X.cjs +0 -1
  252. package/dist/packet-HUATNLJX-Dxob_meO.js +0 -5
  253. package/dist/pie-WTHONI2E-BRtdTGWt.js +0 -5
  254. package/dist/pie-WTHONI2E-DK7f6qJw.cjs +0 -1
  255. package/dist/pieDiagram-ADFJNKIX-Dhq_bEzm.js +0 -161
  256. package/dist/pieDiagram-ADFJNKIX-V04ms3gr.cjs +0 -30
  257. package/dist/plugins/custom.es.js +0 -85
  258. package/dist/plugins/markdown-it.es.js +0 -173
  259. package/dist/quadrantDiagram-AYHSOK5B-C97bOmUE.js +0 -1022
  260. package/dist/quadrantDiagram-AYHSOK5B-DlqFPVhi.cjs +0 -7
  261. package/dist/radar-NJJJXTRR-B9jT3LP3.cjs +0 -1
  262. package/dist/radar-NJJJXTRR-D8plmle3.js +0 -5
  263. package/dist/requirementDiagram-UZGBJVZJ-BxVMLKfQ.js +0 -850
  264. package/dist/requirementDiagram-UZGBJVZJ-DENJ74Ew.cjs +0 -64
  265. package/dist/sankeyDiagram-TZEHDZUN-DwgW7Suq.js +0 -810
  266. package/dist/sankeyDiagram-TZEHDZUN-lTBLhaSq.cjs +0 -10
  267. package/dist/sequenceDiagram-WL72ISMW-BAOeX1dA.js +0 -2511
  268. package/dist/sequenceDiagram-WL72ISMW-BRVvH1X4.cjs +0 -145
  269. package/dist/stateDiagram-FKZM4ZOC-BrFQE7Gl.js +0 -263
  270. package/dist/stateDiagram-FKZM4ZOC-D8GjooGL.cjs +0 -1
  271. package/dist/stateDiagram-v2-4FDKWEC3-4VRIY-eH.cjs +0 -1
  272. package/dist/stateDiagram-v2-4FDKWEC3-DnrWD6a3.js +0 -16
  273. package/dist/timeline-definition-IT6M3QCI-BJMIlueb.js +0 -795
  274. package/dist/timeline-definition-IT6M3QCI-BQFGUuGP.cjs +0 -61
  275. package/dist/treemap-75Q7IDZK-BX1vBFWf.cjs +0 -1
  276. package/dist/treemap-75Q7IDZK-CMTkunTV.js +0 -5
  277. package/dist/viewer-CZUSHxhf.js +0 -19131
  278. package/dist/viewer-Canph5Zx.cjs +0 -305
  279. package/dist/xychartDiagram-PRI3JC2R-Sl8WX8wc.cjs +0 -7
  280. package/dist/xychartDiagram-PRI3JC2R-WnFI7Ezu.js +0 -1340
@@ -0,0 +1,145 @@
1
+ const e=require("./custom-Bl_fVJZ0.cjs"),t=require("./src-BMjps4Ui.cjs"),n=require("./chunk-ABZYJK2D-CbIYYZa_.cjs"),r=require("./chunk-S3R3BYOJ-B2ozcJNg.cjs"),i=require("./dist-DC-lM4uX.cjs"),a=require("./chunk-TZMSLE5B-D92K1Ja5.cjs"),o=require("./chunk-QZHKN3VN-2e6nJr8c.cjs");var s=i.t(),c=(function(){var e=t.h(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,2],r=[1,3],i=[1,4],a=[2,4],o=[1,9],s=[1,11],c=[1,13],l=[1,14],u=[1,16],d=[1,17],f=[1,18],p=[1,24],m=[1,25],h=[1,26],g=[1,27],_=[1,28],v=[1,29],y=[1,30],b=[1,31],x=[1,32],S=[1,33],C=[1,34],w=[1,35],T=[1,36],E=[1,37],D=[1,38],O=[1,39],k=[1,41],A=[1,42],j=[1,43],M=[1,44],N=[1,45],P=[1,46],F=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,55,60,61,62,63,71],I=[2,71],L=[4,5,16,50,52,53],R=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],z=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,55,60,61,62,63,71],B=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,55,60,61,62,63,71],V=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,55,60,61,62,63,71],H=[69,70,71],U=[1,127],W={trace:t.h(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,actor_with_config:54,note:55,placement:56,text2:57,over:58,actor_pair:59,links:60,link:61,properties:62,details:63,spaceList:64,",":65,left_of:66,right_of:67,signaltype:68,"+":69,"-":70,ACTOR:71,config_object:72,CONFIG_START:73,CONFIG_CONTENT:74,CONFIG_END:75,SOLID_OPEN_ARROW:76,DOTTED_OPEN_ARROW:77,SOLID_ARROW:78,BIDIRECTIONAL_SOLID_ARROW:79,DOTTED_ARROW:80,BIDIRECTIONAL_DOTTED_ARROW:81,SOLID_CROSS:82,DOTTED_CROSS:83,SOLID_POINT:84,DOTTED_POINT:85,TXT:86,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NEWLINE`,6:`SD`,13:`create`,14:`box`,15:`restOfLine`,16:`end`,18:`autonumber`,19:`NUM`,20:`off`,21:`activate`,23:`deactivate`,29:`title`,30:`legacy_title`,31:`acc_title`,32:`acc_title_value`,33:`acc_descr`,34:`acc_descr_value`,35:`acc_descr_multiline_value`,36:`loop`,37:`rect`,38:`opt`,39:`alt`,41:`par`,43:`par_over`,44:`critical`,46:`break`,47:`option`,48:`and`,49:`else`,50:`participant`,51:`AS`,52:`participant_actor`,53:`destroy`,55:`note`,58:`over`,60:`links`,61:`link`,62:`properties`,63:`details`,65:`,`,66:`left_of`,67:`right_of`,69:`+`,70:`-`,71:`ACTOR`,73:`CONFIG_START`,74:`CONFIG_CONTENT`,75:`CONFIG_END`,76:`SOLID_OPEN_ARROW`,77:`DOTTED_OPEN_ARROW`,78:`SOLID_ARROW`,79:`BIDIRECTIONAL_SOLID_ARROW`,80:`DOTTED_ARROW`,81:`BIDIRECTIONAL_DOTTED_ARROW`,82:`SOLID_CROSS`,83:`DOTTED_CROSS`,84:`SOLID_POINT`,85:`DOTTED_POINT`,86:`TXT`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[64,2],[64,1],[59,3],[59,1],[56,1],[56,1],[17,5],[17,5],[17,4],[54,2],[72,3],[22,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[57,1]],performAction:t.h(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.apply(a[s]),a[s];case 4:case 9:this.$=[];break;case 5:case 10:a[s-1].push(a[s]),this.$=a[s-1];break;case 6:case 7:case 11:case 12:this.$=a[s];break;case 8:case 13:this.$=[];break;case 15:a[s].type=`createParticipant`,this.$=a[s];break;case 16:a[s-1].unshift({type:`boxStart`,boxData:r.parseBoxData(a[s-2])}),a[s-1].push({type:`boxEnd`,boxText:a[s-2]}),this.$=a[s-1];break;case 18:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-2]),sequenceIndexStep:Number(a[s-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 19:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 20:this.$={type:`sequenceIndex`,sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:`sequenceIndex`,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 22:this.$={type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor};break;case 23:this.$={type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-1].actor};break;case 29:r.setDiagramTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 30:r.setDiagramTitle(a[s].substring(7)),this.$=a[s].substring(7);break;case 31:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 32:case 33:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 34:a[s-1].unshift({type:`loopStart`,loopText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.LOOP_START}),a[s-1].push({type:`loopEnd`,loopText:a[s-2],signalType:r.LINETYPE.LOOP_END}),this.$=a[s-1];break;case 35:a[s-1].unshift({type:`rectStart`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_START}),a[s-1].push({type:`rectEnd`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_END}),this.$=a[s-1];break;case 36:a[s-1].unshift({type:`optStart`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_START}),a[s-1].push({type:`optEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_END}),this.$=a[s-1];break;case 37:a[s-1].unshift({type:`altStart`,altText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.ALT_START}),a[s-1].push({type:`altEnd`,signalType:r.LINETYPE.ALT_END}),this.$=a[s-1];break;case 38:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 39:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_OVER_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 40:a[s-1].unshift({type:`criticalStart`,criticalText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.CRITICAL_START}),a[s-1].push({type:`criticalEnd`,signalType:r.LINETYPE.CRITICAL_END}),this.$=a[s-1];break;case 41:a[s-1].unshift({type:`breakStart`,breakText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_START}),a[s-1].push({type:`breakEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_END}),this.$=a[s-1];break;case 43:this.$=a[s-3].concat([{type:`option`,optionText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.CRITICAL_OPTION},a[s]]);break;case 45:this.$=a[s-3].concat([{type:`and`,parText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.PAR_AND},a[s]]);break;case 47:this.$=a[s-3].concat([{type:`else`,altText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.ALT_ELSE},a[s]]);break;case 48:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 49:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 50:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 51:a[s-1].draw=`actor`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 52:a[s-1].type=`destroyParticipant`,this.$=a[s-1];break;case 53:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 54:this.$=[a[s-1],{type:`addNote`,placement:a[s-2],actor:a[s-1].actor,text:a[s]}];break;case 55:a[s-2]=[].concat(a[s-1],a[s-1]).slice(0,2),a[s-2][0]=a[s-2][0].actor,a[s-2][1]=a[s-2][1].actor,this.$=[a[s-1],{type:`addNote`,placement:r.PLACEMENT.OVER,actor:a[s-2].slice(0,2),text:a[s]}];break;case 56:this.$=[a[s-1],{type:`addLinks`,actor:a[s-1].actor,text:a[s]}];break;case 57:this.$=[a[s-1],{type:`addALink`,actor:a[s-1].actor,text:a[s]}];break;case 58:this.$=[a[s-1],{type:`addProperties`,actor:a[s-1].actor,text:a[s]}];break;case 59:this.$=[a[s-1],{type:`addDetails`,actor:a[s-1].actor,text:a[s]}];break;case 62:this.$=[a[s-2],a[s]];break;case 63:this.$=a[s];break;case 64:this.$=r.PLACEMENT.LEFTOF;break;case 65:this.$=r.PLACEMENT.RIGHTOF;break;case 66:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0},{type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor}];break;case 67:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-4].actor}];break;case 68:this.$=[a[s-3],a[s-1],{type:`addMessage`,from:a[s-3].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s]}];break;case 69:this.$={type:`addParticipant`,actor:a[s-1],config:a[s]};break;case 70:this.$=a[s-1].trim();break;case 71:this.$={type:`addParticipant`,actor:a[s]};break;case 72:this.$=r.LINETYPE.SOLID_OPEN;break;case 73:this.$=r.LINETYPE.DOTTED_OPEN;break;case 74:this.$=r.LINETYPE.SOLID;break;case 75:this.$=r.LINETYPE.BIDIRECTIONAL_SOLID;break;case 76:this.$=r.LINETYPE.DOTTED;break;case 77:this.$=r.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 78:this.$=r.LINETYPE.SOLID_CROSS;break;case 79:this.$=r.LINETYPE.DOTTED_CROSS;break;case 80:this.$=r.LINETYPE.SOLID_POINT;break;case 81:this.$=r.LINETYPE.DOTTED_POINT;break;case 82:this.$=r.parseMessage(a[s].trim().substring(1));break}},`anonymous`),table:[{3:1,4:n,5:r,6:i},{1:[3]},{3:5,4:n,5:r,6:i},{3:6,4:n,5:r,6:i},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,12:12,13:c,14:l,17:15,18:u,21:d,22:40,23:f,24:19,25:20,26:21,27:22,28:23,29:p,30:m,31:h,33:g,35:_,36:v,37:y,38:b,39:x,41:S,43:C,44:w,46:T,50:E,52:D,53:O,55:k,60:A,61:j,62:M,63:N,71:P},e(F,[2,5]),{9:47,12:12,13:c,14:l,17:15,18:u,21:d,22:40,23:f,24:19,25:20,26:21,27:22,28:23,29:p,30:m,31:h,33:g,35:_,36:v,37:y,38:b,39:x,41:S,43:C,44:w,46:T,50:E,52:D,53:O,55:k,60:A,61:j,62:M,63:N,71:P},e(F,[2,7]),e(F,[2,8]),e(F,[2,14]),{12:48,50:E,52:D,53:O},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,71:P},{22:55,71:P},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(F,[2,29]),e(F,[2,30]),{32:[1,61]},{34:[1,62]},e(F,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,54:72,71:[1,73]},{22:74,71:P},{22:75,71:P},{68:76,76:[1,77],77:[1,78],78:[1,79],79:[1,80],80:[1,81],81:[1,82],82:[1,83],83:[1,84],84:[1,85],85:[1,86]},{56:87,58:[1,88],66:[1,89],67:[1,90]},{22:91,71:P},{22:92,71:P},{22:93,71:P},{22:94,71:P},e([5,51,65,76,77,78,79,80,81,82,83,84,85,86],I),e(F,[2,6]),e(F,[2,15]),e(L,[2,9],{10:95}),e(F,[2,17]),{5:[1,97],19:[1,96]},{5:[1,98]},e(F,[2,21]),{5:[1,99]},{5:[1,100]},e(F,[2,24]),e(F,[2,25]),e(F,[2,26]),e(F,[2,27]),e(F,[2,28]),e(F,[2,31]),e(F,[2,32]),e(R,a,{7:101}),e(R,a,{7:102}),e(R,a,{7:103}),e(z,a,{40:104,7:105}),e(B,a,{42:106,7:107}),e(B,a,{7:107,42:108}),e(V,a,{45:109,7:110}),e(R,a,{7:111}),{5:[1,113],51:[1,112]},{5:[1,114]},e([5,51],I,{72:115,73:[1,116]}),{5:[1,118],51:[1,117]},{5:[1,119]},{22:122,69:[1,120],70:[1,121],71:P},e(H,[2,72]),e(H,[2,73]),e(H,[2,74]),e(H,[2,75]),e(H,[2,76]),e(H,[2,77]),e(H,[2,78]),e(H,[2,79]),e(H,[2,80]),e(H,[2,81]),{22:123,71:P},{22:125,59:124,71:P},{71:[2,64]},{71:[2,65]},{57:126,86:U},{57:128,86:U},{57:129,86:U},{57:130,86:U},{4:[1,133],5:[1,135],11:132,12:134,16:[1,131],50:E,52:D,53:O},{5:[1,136]},e(F,[2,19]),e(F,[2,20]),e(F,[2,22]),e(F,[2,23]),{4:o,5:s,8:8,9:10,12:12,13:c,14:l,16:[1,137],17:15,18:u,21:d,22:40,23:f,24:19,25:20,26:21,27:22,28:23,29:p,30:m,31:h,33:g,35:_,36:v,37:y,38:b,39:x,41:S,43:C,44:w,46:T,50:E,52:D,53:O,55:k,60:A,61:j,62:M,63:N,71:P},{4:o,5:s,8:8,9:10,12:12,13:c,14:l,16:[1,138],17:15,18:u,21:d,22:40,23:f,24:19,25:20,26:21,27:22,28:23,29:p,30:m,31:h,33:g,35:_,36:v,37:y,38:b,39:x,41:S,43:C,44:w,46:T,50:E,52:D,53:O,55:k,60:A,61:j,62:M,63:N,71:P},{4:o,5:s,8:8,9:10,12:12,13:c,14:l,16:[1,139],17:15,18:u,21:d,22:40,23:f,24:19,25:20,26:21,27:22,28:23,29:p,30:m,31:h,33:g,35:_,36:v,37:y,38:b,39:x,41:S,43:C,44:w,46:T,50:E,52:D,53:O,55:k,60:A,61:j,62:M,63:N,71:P},{16:[1,140]},{4:o,5:s,8:8,9:10,12:12,13:c,14:l,16:[2,46],17:15,18:u,21:d,22:40,23:f,24:19,25:20,26:21,27:22,28:23,29:p,30:m,31:h,33:g,35:_,36:v,37:y,38:b,39:x,41:S,43:C,44:w,46:T,49:[1,141],50:E,52:D,53:O,55:k,60:A,61:j,62:M,63:N,71:P},{16:[1,142]},{4:o,5:s,8:8,9:10,12:12,13:c,14:l,16:[2,44],17:15,18:u,21:d,22:40,23:f,24:19,25:20,26:21,27:22,28:23,29:p,30:m,31:h,33:g,35:_,36:v,37:y,38:b,39:x,41:S,43:C,44:w,46:T,48:[1,143],50:E,52:D,53:O,55:k,60:A,61:j,62:M,63:N,71:P},{16:[1,144]},{16:[1,145]},{4:o,5:s,8:8,9:10,12:12,13:c,14:l,16:[2,42],17:15,18:u,21:d,22:40,23:f,24:19,25:20,26:21,27:22,28:23,29:p,30:m,31:h,33:g,35:_,36:v,37:y,38:b,39:x,41:S,43:C,44:w,46:T,47:[1,146],50:E,52:D,53:O,55:k,60:A,61:j,62:M,63:N,71:P},{4:o,5:s,8:8,9:10,12:12,13:c,14:l,16:[1,147],17:15,18:u,21:d,22:40,23:f,24:19,25:20,26:21,27:22,28:23,29:p,30:m,31:h,33:g,35:_,36:v,37:y,38:b,39:x,41:S,43:C,44:w,46:T,50:E,52:D,53:O,55:k,60:A,61:j,62:M,63:N,71:P},{15:[1,148]},e(F,[2,49]),e(F,[2,53]),{5:[2,69]},{74:[1,149]},{15:[1,150]},e(F,[2,51]),e(F,[2,52]),{22:151,71:P},{22:152,71:P},{57:153,86:U},{57:154,86:U},{57:155,86:U},{65:[1,156],86:[2,63]},{5:[2,56]},{5:[2,82]},{5:[2,57]},{5:[2,58]},{5:[2,59]},e(F,[2,16]),e(L,[2,10]),{12:157,50:E,52:D,53:O},e(L,[2,12]),e(L,[2,13]),e(F,[2,18]),e(F,[2,34]),e(F,[2,35]),e(F,[2,36]),e(F,[2,37]),{15:[1,158]},e(F,[2,38]),{15:[1,159]},e(F,[2,39]),e(F,[2,40]),{15:[1,160]},e(F,[2,41]),{5:[1,161]},{75:[1,162]},{5:[1,163]},{57:164,86:U},{57:165,86:U},{5:[2,68]},{5:[2,54]},{5:[2,55]},{22:166,71:P},e(L,[2,11]),e(z,a,{7:105,40:167}),e(B,a,{7:107,42:168}),e(V,a,{7:110,45:169}),e(F,[2,48]),{5:[2,70]},e(F,[2,50]),{5:[2,66]},{5:[2,67]},{86:[2,62]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],89:[2,64],90:[2,65],115:[2,69],126:[2,56],127:[2,82],128:[2,57],129:[2,58],130:[2,59],153:[2,68],154:[2,54],155:[2,55],162:[2,70],164:[2,66],165:[2,67],166:[2,62],167:[2,47],168:[2,45],169:[2,43]},parseError:t.h(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t.h(function(e){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(e,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}t.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}t.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`)};W.lexer=(function(){return{EOF:1,parseError:t.h(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t.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:t.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:t.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:t.h(function(){return this._more=!0,this},`more`),reject:t.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:t.h(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t.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:t.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:t.h(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
+ `+t+`^`},`showPosition`),test_match:t.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:t.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:t.h(function(){return this.next()||this.lex()},`lex`),begin:t.h(function(e){this.conditionStack.push(e)},`begin`),popState:t.h(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:t.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:t.h(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:t.h(function(e){this.begin(e)},`pushState`),stateStackSize:t.h(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:t.h(function(e,t,n,r){switch(n){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 19;case 7:return this.begin(`CONFIG`),73;case 8:return 74;case 9:return this.popState(),this.popState(),75;case 10:return t.yytext=t.yytext.trim(),71;case 11:return t.yytext=t.yytext.trim(),this.begin(`ALIAS`),71;case 12:return this.begin(`LINE`),14;case 13:return this.begin(`ID`),50;case 14:return this.begin(`ID`),52;case 15:return 13;case 16:return this.begin(`ID`),53;case 17:return t.yytext=t.yytext.trim(),this.begin(`ALIAS`),71;case 18:return this.popState(),this.popState(),this.begin(`LINE`),51;case 19:return this.popState(),this.popState(),5;case 20:return this.begin(`LINE`),36;case 21:return this.begin(`LINE`),37;case 22:return this.begin(`LINE`),38;case 23:return this.begin(`LINE`),39;case 24:return this.begin(`LINE`),49;case 25:return this.begin(`LINE`),41;case 26:return this.begin(`LINE`),43;case 27:return this.begin(`LINE`),48;case 28:return this.begin(`LINE`),44;case 29:return this.begin(`LINE`),47;case 30:return this.begin(`LINE`),46;case 31:return this.popState(),15;case 32:return 16;case 33:return 66;case 34:return 67;case 35:return 60;case 36:return 61;case 37:return 62;case 38:return 63;case 39:return 58;case 40:return 55;case 41:return this.begin(`ID`),21;case 42:return this.begin(`ID`),23;case 43:return 29;case 44:return 30;case 45:return this.begin(`acc_title`),31;case 46:return this.popState(),`acc_title_value`;case 47:return this.begin(`acc_descr`),33;case 48:return this.popState(),`acc_descr_value`;case 49:this.begin(`acc_descr_multiline`);break;case 50:this.popState();break;case 51:return`acc_descr_multiline_value`;case 52:return 6;case 53:return 18;case 54:return 20;case 55:return 65;case 56:return 5;case 57:return t.yytext=t.yytext.trim(),71;case 58:return 78;case 59:return 79;case 60:return 80;case 61:return 81;case 62:return 76;case 63:return 77;case 64:return 82;case 65:return 83;case 66:return 84;case 67:return 85;case 68:return 86;case 69:return 86;case 70:return 69;case 71:return 70;case 72:return 5;case 73:return`INVALID`}},`anonymous`),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\})/i,/^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,/^(?:[^\<->\->:\n,;@]+?([\-]*[^\<->\->:\n,;@]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:[^<\->\->:\n,;]+?([\-]*[^<\->\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/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,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[50,51],inclusive:!1},acc_descr:{rules:[48],inclusive:!1},acc_title:{rules:[46],inclusive:!1},ID:{rules:[2,3,7,10,11,17],inclusive:!1},ALIAS:{rules:[2,3,18,19],inclusive:!1},LINE:{rules:[2,3,31],inclusive:!1},CONFIG:{rules:[8,9],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,12,13,14,15,16,20,21,22,23,24,25,26,27,28,29,30,32,33,34,35,36,37,38,39,40,41,42,43,44,45,47,49,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73],inclusive:!0}}}})();function G(){this.yy={}}return t.h(G,`Parser`),G.prototype=W,W.Parser=G,new G})();c.parser=c;var l=c,u={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34},d={FILLED:0,OPEN:1},f={LEFTOF:0,RIGHTOF:1,OVER:2},p={ACTOR:`actor`,BOUNDARY:`boundary`,COLLECTIONS:`collections`,CONTROL:`control`,DATABASE:`database`,ENTITY:`entity`,PARTICIPANT:`participant`,QUEUE:`queue`},m=class{constructor(){this.state=new o.t(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=n.B,this.setAccDescription=n.z,this.setDiagramTitle=n.U,this.getAccTitle=n.v,this.getAccDescription=n._,this.getDiagramTitle=n.C,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap(n.b().wrap),this.LINETYPE=u,this.ARROWTYPE=d,this.PLACEMENT=f}static{t.h(this,`SequenceDB`)}addBox(e){this.state.records.boxes.push({name:e.text,wrap:e.wrap??this.autoWrap(),fill:e.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(t,n,r,i,a){let o=this.state.records.currentBox,s;if(a!==void 0){let t;t=a.includes(`
7
+ `)?a+`
8
+ `:`{
9
+ `+a+`
10
+ }`,s=e.d(t,{schema:e.u})}i=s?.type??i;let c=this.state.records.actors.get(t);if(c){if(this.state.records.currentBox&&c.box&&this.state.records.currentBox!==c.box)throw Error(`A same participant should only be defined in one Box: ${c.name} can't be in '${c.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(o=c.box?c.box:this.state.records.currentBox,c.box=o,c&&n===c.name&&r==null)return}if(r?.text??(r={text:n,type:i}),(i==null||r.text==null)&&(r={text:n,type:i}),this.state.records.actors.set(t,{box:o,name:n,description:r.text,wrap:r.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:i??`participant`}),this.state.records.prevActor){let e=this.state.records.actors.get(this.state.records.prevActor);e&&(e.nextActor=t)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(t),this.state.records.prevActor=t}activationCount(e){let t,n=0;if(!e)return 0;for(t=0;t<this.state.records.messages.length;t++)this.state.records.messages[t].type===this.LINETYPE.ACTIVE_START&&this.state.records.messages[t].from===e&&n++,this.state.records.messages[t].type===this.LINETYPE.ACTIVE_END&&this.state.records.messages[t].from===e&&n--;return n}addMessage(e,t,n,r){this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:t,message:n.text,wrap:n.wrap??this.autoWrap(),answer:r})}addSignal(e,t,n,r,i=!1){if(r===this.LINETYPE.ACTIVE_END&&this.activationCount(e??``)<1){let t=Error(`Trying to inactivate an inactive participant (`+e+`)`);throw t.hash={text:`->>-`,token:`->>-`,line:`1`,loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:[`'ACTIVE_PARTICIPANT'`]},t}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:t,message:n?.text??``,wrap:n?.wrap??this.autoWrap(),type:r,activate:i}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(e=>e.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(e){return this.state.records.actors.get(e)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(e){this.state.records.wrapEnabled=e}extractWrap(e){if(e===void 0)return{};e=e.trim();let t=/^:?wrap:/.exec(e)===null?/^:?nowrap:/.exec(e)===null?void 0:!1:!0;return{cleanedText:(t===void 0?e:e.replace(/^:?(?:no)?wrap:/,``)).trim(),wrap:t}}autoWrap(){return this.state.records.wrapEnabled===void 0?n.b().sequence?.wrap??!1:this.state.records.wrapEnabled}clear(){this.state.reset(),n.a()}parseMessage(e){let n=e.trim(),{wrap:r,cleanedText:i}=this.extractWrap(n),a={text:i,wrap:r};return t.g.debug(`parseMessage: ${JSON.stringify(a)}`),a}parseBoxData(e){let t=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e),r=t?.[1]?t[1].trim():`transparent`,i=t?.[2]?t[2].trim():void 0;if(window?.CSS)window.CSS.supports(`color`,r)||(r=`transparent`,i=e.trim());else{let t=new Option().style;t.color=r,t.color!==r&&(r=`transparent`,i=e.trim())}let{wrap:a,cleanedText:o}=this.extractWrap(i);return{text:o?n.I(o,n.b()):void 0,color:r,wrap:a}}addNote(e,t,n){let r={actor:e,placement:t,message:n.text,wrap:n.wrap??this.autoWrap()},i=[].concat(e,e);this.state.records.notes.push(r),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:i[0],to:i[1],message:n.text,wrap:n.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:t})}addLinks(e,r){let i=this.getActor(e);try{let e=n.I(r.text,n.b());e=e.replace(/&equals;/g,`=`),e=e.replace(/&amp;/g,`&`);let t=JSON.parse(e);this.insertLinks(i,t)}catch(e){t.g.error(`error while parsing actor link text`,e)}}addALink(e,r){let i=this.getActor(e);try{let e={},t=n.I(r.text,n.b()),a=t.indexOf(`@`);t=t.replace(/&equals;/g,`=`),t=t.replace(/&amp;/g,`&`);let o=t.slice(0,a-1).trim();e[o]=t.slice(a+1).trim(),this.insertLinks(i,e)}catch(e){t.g.error(`error while parsing actor link text`,e)}}insertLinks(e,t){if(e.links==null)e.links=t;else for(let n in t)e.links[n]=t[n]}addProperties(e,r){let i=this.getActor(e);try{let e=n.I(r.text,n.b()),t=JSON.parse(e);this.insertProperties(i,t)}catch(e){t.g.error(`error while parsing actor properties text`,e)}}insertProperties(e,t){if(e.properties==null)e.properties=t;else for(let n in t)e.properties[n]=t[n]}boxEnd(){this.state.records.currentBox=void 0}addDetails(e,n){let r=this.getActor(e),i=document.getElementById(n.text);try{let e=i.innerHTML,t=JSON.parse(e);t.properties&&this.insertProperties(r,t.properties),t.links&&this.insertLinks(r,t.links)}catch(e){t.g.error(`error while parsing actor details text`,e)}}getActorProperty(e,t){if(e?.properties!==void 0)return e.properties[t]}apply(e){if(Array.isArray(e))e.forEach(e=>{this.apply(e)});else switch(e.type){case`sequenceIndex`:this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:e.sequenceIndex,step:e.sequenceIndexStep,visible:e.sequenceVisible},wrap:!1,type:e.signalType});break;case`addParticipant`:this.addActor(e.actor,e.actor,e.description,e.draw,e.config);break;case`createParticipant`:if(this.state.records.actors.has(e.actor))throw Error(`It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior`);this.state.records.lastCreated=e.actor,this.addActor(e.actor,e.actor,e.description,e.draw,e.config),this.state.records.createdActors.set(e.actor,this.state.records.messages.length);break;case`destroyParticipant`:this.state.records.lastDestroyed=e.actor,this.state.records.destroyedActors.set(e.actor,this.state.records.messages.length);break;case`activeStart`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`activeEnd`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`addNote`:this.addNote(e.actor,e.placement,e.text);break;case`addLinks`:this.addLinks(e.actor,e.text);break;case`addALink`:this.addALink(e.actor,e.text);break;case`addProperties`:this.addProperties(e.actor,e.text);break;case`addDetails`:this.addDetails(e.actor,e.text);break;case`addMessage`:if(this.state.records.lastCreated){if(e.to!==this.state.records.lastCreated)throw Error(`The created participant `+this.state.records.lastCreated.name+` does not have an associated creating message after its declaration. Please check the sequence diagram.`);this.state.records.lastCreated=void 0}else if(this.state.records.lastDestroyed){if(e.to!==this.state.records.lastDestroyed&&e.from!==this.state.records.lastDestroyed)throw Error(`The destroyed participant `+this.state.records.lastDestroyed.name+` does not have an associated destroying message after its declaration. Please check the sequence diagram.`);this.state.records.lastDestroyed=void 0}this.addSignal(e.from,e.to,e.msg,e.signalType,e.activate);break;case`boxStart`:this.addBox(e.boxData);break;case`boxEnd`:this.boxEnd();break;case`loopStart`:this.addSignal(void 0,void 0,e.loopText,e.signalType);break;case`loopEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`rectStart`:this.addSignal(void 0,void 0,e.color,e.signalType);break;case`rectEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`optStart`:this.addSignal(void 0,void 0,e.optText,e.signalType);break;case`optEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`altStart`:this.addSignal(void 0,void 0,e.altText,e.signalType);break;case`else`:this.addSignal(void 0,void 0,e.altText,e.signalType);break;case`altEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`setAccTitle`:n.B(e.text);break;case`parStart`:this.addSignal(void 0,void 0,e.parText,e.signalType);break;case`and`:this.addSignal(void 0,void 0,e.parText,e.signalType);break;case`parEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`criticalStart`:this.addSignal(void 0,void 0,e.criticalText,e.signalType);break;case`option`:this.addSignal(void 0,void 0,e.optionText,e.signalType);break;case`criticalEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`breakStart`:this.addSignal(void 0,void 0,e.breakText,e.signalType);break;case`breakEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break}}getConfig(){return n.b().sequence}},h=t.h(e=>`.actor {
11
+ stroke: ${e.actorBorder};
12
+ fill: ${e.actorBkg};
13
+ }
14
+
15
+ text.actor > tspan {
16
+ fill: ${e.actorTextColor};
17
+ stroke: none;
18
+ }
19
+
20
+ .actor-line {
21
+ stroke: ${e.actorLineColor};
22
+ }
23
+
24
+ .innerArc {
25
+ stroke-width: 1.5;
26
+ stroke-dasharray: none;
27
+ }
28
+
29
+ .messageLine0 {
30
+ stroke-width: 1.5;
31
+ stroke-dasharray: none;
32
+ stroke: ${e.signalColor};
33
+ }
34
+
35
+ .messageLine1 {
36
+ stroke-width: 1.5;
37
+ stroke-dasharray: 2, 2;
38
+ stroke: ${e.signalColor};
39
+ }
40
+
41
+ #arrowhead path {
42
+ fill: ${e.signalColor};
43
+ stroke: ${e.signalColor};
44
+ }
45
+
46
+ .sequenceNumber {
47
+ fill: ${e.sequenceNumberColor};
48
+ }
49
+
50
+ #sequencenumber {
51
+ fill: ${e.signalColor};
52
+ }
53
+
54
+ #crosshead path {
55
+ fill: ${e.signalColor};
56
+ stroke: ${e.signalColor};
57
+ }
58
+
59
+ .messageText {
60
+ fill: ${e.signalTextColor};
61
+ stroke: none;
62
+ }
63
+
64
+ .labelBox {
65
+ stroke: ${e.labelBoxBorderColor};
66
+ fill: ${e.labelBoxBkgColor};
67
+ }
68
+
69
+ .labelText, .labelText > tspan {
70
+ fill: ${e.labelTextColor};
71
+ stroke: none;
72
+ }
73
+
74
+ .loopText, .loopText > tspan {
75
+ fill: ${e.loopTextColor};
76
+ stroke: none;
77
+ }
78
+
79
+ .loopLine {
80
+ stroke-width: 2px;
81
+ stroke-dasharray: 2, 2;
82
+ stroke: ${e.labelBoxBorderColor};
83
+ fill: ${e.labelBoxBorderColor};
84
+ }
85
+
86
+ .note {
87
+ //stroke: #decc93;
88
+ stroke: ${e.noteBorderColor};
89
+ fill: ${e.noteBkgColor};
90
+ }
91
+
92
+ .noteText, .noteText > tspan {
93
+ fill: ${e.noteTextColor};
94
+ stroke: none;
95
+ }
96
+
97
+ .activation0 {
98
+ fill: ${e.activationBkgColor};
99
+ stroke: ${e.activationBorderColor};
100
+ }
101
+
102
+ .activation1 {
103
+ fill: ${e.activationBkgColor};
104
+ stroke: ${e.activationBorderColor};
105
+ }
106
+
107
+ .activation2 {
108
+ fill: ${e.activationBkgColor};
109
+ stroke: ${e.activationBorderColor};
110
+ }
111
+
112
+ .actorPopupMenu {
113
+ position: absolute;
114
+ }
115
+
116
+ .actorPopupMenuPanel {
117
+ position: absolute;
118
+ fill: ${e.actorBkg};
119
+ box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
120
+ filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
121
+ }
122
+ .actor-man line {
123
+ stroke: ${e.actorBorder};
124
+ fill: ${e.actorBkg};
125
+ }
126
+ .actor-man circle, line {
127
+ stroke: ${e.actorBorder};
128
+ fill: ${e.actorBkg};
129
+ stroke-width: 2px;
130
+ }
131
+
132
+ `,`getStyles`),g=36,_=`actor-top`,v=`actor-bottom`,y=`actor-box`,b=`actor-man`,x=t.h(function(e,t){return a.i(e,t)},`drawRect`),S=t.h(function(e,t,n,r,i){if(t.links===void 0||t.links===null||Object.keys(t.links).length===0)return{height:0,width:0};let a=t.links,o=t.actorCnt,c=t.rectData;var l=`none`;i&&(l=`block !important`);let u=e.append(`g`);u.attr(`id`,`actor`+o+`_popup`),u.attr(`class`,`actorPopupMenu`),u.attr(`display`,l);var d=``;c.class!==void 0&&(d=` `+c.class);let f=c.width>n?c.width:n,p=u.append(`rect`);if(p.attr(`class`,`actorPopupMenuPanel`+d),p.attr(`x`,c.x),p.attr(`y`,c.height),p.attr(`fill`,c.fill),p.attr(`stroke`,c.stroke),p.attr(`width`,f),p.attr(`height`,c.height),p.attr(`rx`,c.rx),p.attr(`ry`,c.ry),a!=null){var m=20;for(let e in a){var h=u.append(`a`),g=(0,s.sanitizeUrl)(a[e]);h.attr(`xlink:href`,g),h.attr(`target`,`_blank`),oe(r)(e,h,c.x+10,c.height+m,f,20,{class:`actor`},r),m+=30}}return p.attr(`height`,m),{height:c.height+m,width:f}},`drawPopup`),C=t.h(function(e){return`var pu = document.getElementById('`+e+`'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }`},`popupMenuToggle`),w=t.h(async function(e,t,r=null){let i=e.append(`foreignObject`),a=await n.N(t.text,n.y()),o=i.append(`xhtml:div`).attr(`style`,`width: fit-content;`).attr(`xmlns`,`http://www.w3.org/1999/xhtml`).html(a).node().getBoundingClientRect();if(i.attr(`height`,Math.round(o.height)).attr(`width`,Math.round(o.width)),t.class===`noteText`){let n=e.node().firstChild;n.setAttribute(`height`,o.height+2*t.textMargin);let r=n.getBBox();i.attr(`x`,Math.round(r.x+r.width/2-o.width/2)).attr(`y`,Math.round(r.y+r.height/2-o.height/2))}else if(r){let{startx:e,stopx:n,starty:a}=r;if(e>n){let t=e;e=n,n=t}i.attr(`x`,Math.round(e+Math.abs(e-n)/2-o.width/2)),t.class===`loopText`?i.attr(`y`,Math.round(a)):i.attr(`y`,Math.round(a-o.height))}return[i]},`drawKatex`),T=t.h(function(e,i){let a=0,o=0,s=i.text.split(n.s.lineBreakRegex),[c,l]=r.f(i.fontSize),u=[],d=0,f=t.h(()=>i.y,`yfunc`);if(i.valign!==void 0&&i.textMargin!==void 0&&i.textMargin>0)switch(i.valign){case`top`:case`start`:f=t.h(()=>Math.round(i.y+i.textMargin),`yfunc`);break;case`middle`:case`center`:f=t.h(()=>Math.round(i.y+(a+o+i.textMargin)/2),`yfunc`);break;case`bottom`:case`end`:f=t.h(()=>Math.round(i.y+(a+o+2*i.textMargin)-i.textMargin),`yfunc`);break}if(i.anchor!==void 0&&i.textMargin!==void 0&&i.width!==void 0)switch(i.anchor){case`left`:case`start`:i.x=Math.round(i.x+i.textMargin),i.anchor=`start`,i.dominantBaseline=`middle`,i.alignmentBaseline=`middle`;break;case`middle`:case`center`:i.x=Math.round(i.x+i.width/2),i.anchor=`middle`,i.dominantBaseline=`middle`,i.alignmentBaseline=`middle`;break;case`right`:case`end`:i.x=Math.round(i.x+i.width-i.textMargin),i.anchor=`end`,i.dominantBaseline=`middle`,i.alignmentBaseline=`middle`;break}for(let[t,n]of s.entries()){i.textMargin!==void 0&&i.textMargin===0&&c!==void 0&&(d=t*c);let r=e.append(`text`);r.attr(`x`,i.x),r.attr(`y`,f()),i.anchor!==void 0&&r.attr(`text-anchor`,i.anchor).attr(`dominant-baseline`,i.dominantBaseline).attr(`alignment-baseline`,i.alignmentBaseline),i.fontFamily!==void 0&&r.style(`font-family`,i.fontFamily),l!==void 0&&r.style(`font-size`,l),i.fontWeight!==void 0&&r.style(`font-weight`,i.fontWeight),i.fill!==void 0&&r.attr(`fill`,i.fill),i.class!==void 0&&r.attr(`class`,i.class),i.dy===void 0?d!==0&&r.attr(`dy`,d):r.attr(`dy`,i.dy);let s=n||`​`;if(i.tspan){let e=r.append(`tspan`);e.attr(`x`,i.x),i.fill!==void 0&&e.attr(`fill`,i.fill),e.text(s)}else r.text(s);i.valign!==void 0&&i.textMargin!==void 0&&i.textMargin>0&&(o+=(r._groups||r)[0][0].getBBox().height,a=o),u.push(r)}return u},`drawText`),E=t.h(function(e,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)}t.h(r,`genPoints`);let i=e.append(`polygon`);return i.attr(`points`,r(n.x,n.y,n.width,n.height,7)),i.attr(`class`,`labelBox`),n.y+=n.height/2,T(e,n),i},`drawLabel`),D=-1,O=t.h((e,t,n,r)=>{e.select&&n.forEach(n=>{let i=t.get(n),a=e.select(`#actor`+i.actorCnt);!r.mirrorActors&&i.stopy?a.attr(`y2`,i.stopy+i.height/2):r.mirrorActors&&a.attr(`y2`,i.stopy)})},`fixLifeLineHeights`),k=t.h(function(e,t,r,i){let o=i?t.stopy:t.starty,s=t.x+t.width/2,c=o+t.height,l=e.append(`g`).lower();var u=l;i||(D++,Object.keys(t.links||{}).length&&!r.forceMenus&&u.attr(`onclick`,C(`actor${D}_popup`)).attr(`cursor`,`pointer`),u.append(`line`).attr(`id`,`actor`+D).attr(`x1`,s).attr(`y1`,c).attr(`x2`,s).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name),u=l.append(`g`),t.actorCnt=D,t.links!=null&&u.attr(`id`,`root-`+D));let d=a.o();var f=`actor`;t.properties?.class?f=t.properties.class:d.fill=`#eaeaea`,i?f+=` ${v}`:f+=` ${_}`,d.x=t.x,d.y=o,d.width=t.width,d.height=t.height,d.class=f,d.rx=3,d.ry=3,d.name=t.name;let p=x(u,d);if(t.rectData=d,t.properties?.icon){let e=t.properties.icon.trim();e.charAt(0)===`@`?a.n(u,d.x+d.width-20,d.y+10,e.substr(1)):a.r(u,d.x+d.width-20,d.y+10,e)}K(r,n.O(t.description))(t.description,u,d.x,d.y,d.width,d.height,{class:`actor ${y}`},r);let m=t.height;if(p.node){let e=p.node().getBBox();t.height=e.height,m=e.height}return m},`drawActorTypeParticipant`),A=t.h(function(e,t,r,i){let o=i?t.stopy:t.starty,s=t.x+t.width/2,c=o+t.height,l=e.append(`g`).lower();var u=l;i||(D++,Object.keys(t.links||{}).length&&!r.forceMenus&&u.attr(`onclick`,C(`actor${D}_popup`)).attr(`cursor`,`pointer`),u.append(`line`).attr(`id`,`actor`+D).attr(`x1`,s).attr(`y1`,c).attr(`x2`,s).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name),u=l.append(`g`),t.actorCnt=D,t.links!=null&&u.attr(`id`,`root-`+D));let d=a.o();var f=`actor`;t.properties?.class?f=t.properties.class:d.fill=`#eaeaea`,i?f+=` ${v}`:f+=` ${_}`,d.x=t.x,d.y=o,d.width=t.width,d.height=t.height,d.class=f,d.name=t.name;let p={...d,x:d.x+-6,y:d.y+6,class:`actor`},m=x(u,d);if(x(u,p),t.rectData=d,t.properties?.icon){let e=t.properties.icon.trim();e.charAt(0)===`@`?a.n(u,d.x+d.width-20,d.y+10,e.substr(1)):a.r(u,d.x+d.width-20,d.y+10,e)}K(r,n.O(t.description))(t.description,u,d.x-6,d.y+6,d.width,d.height,{class:`actor ${y}`},r);let h=t.height;if(m.node){let e=m.node().getBBox();t.height=e.height,h=e.height}return h},`drawActorTypeCollections`),j=t.h(function(e,t,r,i){let o=i?t.stopy:t.starty,s=t.x+t.width/2,c=o+t.height,l=e.append(`g`).lower(),u=l;i||(D++,Object.keys(t.links||{}).length&&!r.forceMenus&&u.attr(`onclick`,C(`actor${D}_popup`)).attr(`cursor`,`pointer`),u.append(`line`).attr(`id`,`actor`+D).attr(`x1`,s).attr(`y1`,c).attr(`x2`,s).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name),u=l.append(`g`),t.actorCnt=D,t.links!=null&&u.attr(`id`,`root-`+D));let d=a.o(),f=`actor`;t.properties?.class?f=t.properties.class:d.fill=`#eaeaea`,i?f+=` ${v}`:f+=` ${_}`,d.x=t.x,d.y=o,d.width=t.width,d.height=t.height,d.class=f,d.name=t.name;let p=d.height/2,m=p/(2.5+d.height/50),h=u.append(`g`),g=u.append(`g`);if(h.append(`path`).attr(`d`,`M ${d.x},${d.y+p}
133
+ a ${m},${p} 0 0 0 0,${d.height}
134
+ h ${d.width-2*m}
135
+ a ${m},${p} 0 0 0 0,-${d.height}
136
+ Z
137
+ `).attr(`class`,f),g.append(`path`).attr(`d`,`M ${d.x},${d.y+p}
138
+ a ${m},${p} 0 0 0 0,${d.height}`).attr(`stroke`,`#666`).attr(`stroke-width`,`1px`).attr(`class`,f),h.attr(`transform`,`translate(${m}, ${-(d.height/2)})`),g.attr(`transform`,`translate(${d.width-m}, ${-d.height/2})`),t.rectData=d,t.properties?.icon){let e=t.properties.icon.trim(),n=d.x+d.width-20,r=d.y+10;e.charAt(0)===`@`?a.n(u,n,r,e.substr(1)):a.r(u,n,r,e)}K(r,n.O(t.description))(t.description,u,d.x,d.y,d.width,d.height,{class:`actor ${y}`},r);let b=t.height,x=h.select(`path:last-child`);if(x.node()){let e=x.node().getBBox();t.height=e.height,b=e.height}return b},`drawActorTypeQueue`),M=t.h(function(e,t,r,i){let o=i?t.stopy:t.starty,s=t.x+t.width/2,c=o+75,l=e.append(`g`).lower();i||(D++,l.append(`line`).attr(`id`,`actor`+D).attr(`x1`,s).attr(`y1`,c).attr(`x2`,s).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name),t.actorCnt=D);let u=e.append(`g`),d=b;i?d+=` ${v}`:d+=` ${_}`,u.attr(`class`,d),u.attr(`name`,t.name);let f=a.o();f.x=t.x,f.y=o,f.fill=`#eaeaea`,f.width=t.width,f.height=t.height,f.class=`actor`;let p=t.x+t.width/2,m=o+30;return u.append(`defs`).append(`marker`).attr(`id`,`filled-head-control`).attr(`refX`,11).attr(`refY`,5.8).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`172.5`).append(`path`).attr(`d`,`M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z`),u.append(`circle`).attr(`cx`,p).attr(`cy`,m).attr(`r`,18).attr(`fill`,`#eaeaf7`).attr(`stroke`,`#666`).attr(`stroke-width`,1.2),u.append(`line`).attr(`marker-end`,`url(#filled-head-control)`).attr(`transform`,`translate(${p}, ${m-18})`),t.height=u.node().getBBox().height+2*(r?.sequence?.labelBoxHeight??0),K(r,n.O(t.description))(t.description,u,f.x,f.y+18+(i?5:10),f.width,f.height,{class:`actor ${b}`},r),t.height},`drawActorTypeControl`),N=t.h(function(e,t,r,i){let o=i?t.stopy:t.starty,s=t.x+t.width/2,c=o+75,l=e.append(`g`).lower(),u=e.append(`g`),d=b;i?d+=` ${v}`:d+=` ${_}`,u.attr(`class`,d),u.attr(`name`,t.name);let f=a.o();f.x=t.x,f.y=o,f.fill=`#eaeaea`,f.width=t.width,f.height=t.height,f.class=`actor`;let p=t.x+t.width/2,m=o+(i?10:25);return u.append(`circle`).attr(`cx`,p).attr(`cy`,m).attr(`r`,18).attr(`width`,t.width).attr(`height`,t.height),u.append(`line`).attr(`x1`,p-18).attr(`x2`,p+18).attr(`y1`,m+18).attr(`y2`,m+18).attr(`stroke`,`#333`).attr(`stroke-width`,2),t.height=u.node().getBBox().height+(r?.sequence?.labelBoxHeight??0),i||(D++,l.append(`line`).attr(`id`,`actor`+D).attr(`x1`,s).attr(`y1`,c).attr(`x2`,s).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name),t.actorCnt=D),K(r,n.O(t.description))(t.description,u,f.x,f.y+(i?(m-o+18-5)/2:(m+18-o)/2),f.width,f.height,{class:`actor ${b}`},r),u.attr(`transform`,`translate(0, ${18/2})`),t.height},`drawActorTypeEntity`),P=t.h(function(e,t,r,i){let o=i?t.stopy:t.starty,s=t.x+t.width/2,c=o+t.height+2*r.boxTextMargin,l=e.append(`g`).lower(),u=l;i||(D++,Object.keys(t.links||{}).length&&!r.forceMenus&&u.attr(`onclick`,C(`actor${D}_popup`)).attr(`cursor`,`pointer`),u.append(`line`).attr(`id`,`actor`+D).attr(`x1`,s).attr(`y1`,c).attr(`x2`,s).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name),u=l.append(`g`),t.actorCnt=D,t.links!=null&&u.attr(`id`,`root-`+D));let d=a.o(),f=`actor`;t.properties?.class?f=t.properties.class:d.fill=`#eaeaea`,i?f+=` ${v}`:f+=` ${_}`,d.x=t.x,d.y=o,d.width=t.width,d.height=t.height,d.class=f,d.name=t.name,d.x=t.x,d.y=o;let p=d.width/4,m=d.width/4,h=p/2,g=h/(2.5+p/50),b=u.append(`g`),x=`
139
+ M ${d.x},${d.y+g}
140
+ a ${h},${g} 0 0 0 ${p},0
141
+ a ${h},${g} 0 0 0 -${p},0
142
+ l 0,${m-2*g}
143
+ a ${h},${g} 0 0 0 ${p},0
144
+ l 0,-${m-2*g}
145
+ `;b.append(`path`).attr(`d`,x).attr(`fill`,`#eaeaea`).attr(`stroke`,`#000`).attr(`stroke-width`,1).attr(`class`,f),i?b.attr(`transform`,`translate(${p*1.5}, ${d.height/4-2*g})`):b.attr(`transform`,`translate(${p*1.5}, ${(d.height+g)/4})`),t.rectData=d,K(r,n.O(t.description))(t.description,u,d.x,d.y+(i?(d.height+m)/4:(d.height+g)/2),d.width,d.height,{class:`actor ${y}`},r);let S=b.select(`path:last-child`);return S.node()&&(t.height=S.node().getBBox().height+(r.sequence.labelBoxHeight??0)),t.height},`drawActorTypeDatabase`),F=t.h(function(e,t,r,i){let o=i?t.stopy:t.starty,s=t.x+t.width/2,c=o+80,l=e.append(`g`).lower();i||(D++,l.append(`line`).attr(`id`,`actor`+D).attr(`x1`,s).attr(`y1`,c).attr(`x2`,s).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name),t.actorCnt=D);let u=e.append(`g`),d=b;i?d+=` ${v}`:d+=` ${_}`,u.attr(`class`,d),u.attr(`name`,t.name);let f=a.o();return f.x=t.x,f.y=o,f.fill=`#eaeaea`,f.width=t.width,f.height=t.height,f.class=`actor`,u.append(`line`).attr(`id`,`actor-man-torso`+D).attr(`x1`,t.x+t.width/2-30*2.5).attr(`y1`,o+10).attr(`x2`,t.x+t.width/2-15).attr(`y2`,o+10),u.append(`line`).attr(`id`,`actor-man-arms`+D).attr(`x1`,t.x+t.width/2-30*2.5).attr(`y1`,o+0).attr(`x2`,t.x+t.width/2-30*2.5).attr(`y2`,o+20),u.append(`circle`).attr(`cx`,t.x+t.width/2).attr(`cy`,o+10).attr(`r`,30),t.height=u.node().getBBox().height+(r.sequence.labelBoxHeight??0),K(r,n.O(t.description))(t.description,u,f.x,f.y+(i?30/2-4:18),f.width,f.height,{class:`actor ${b}`},r),u.attr(`transform`,`translate(0,22)`),t.height},`drawActorTypeBoundary`),I=t.h(function(e,t,r,i){let o=i?t.stopy:t.starty,s=t.x+t.width/2,c=o+80,l=e.append(`g`).lower();i||(D++,l.append(`line`).attr(`id`,`actor`+D).attr(`x1`,s).attr(`y1`,c).attr(`x2`,s).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name),t.actorCnt=D);let u=e.append(`g`),d=b;i?d+=` ${v}`:d+=` ${_}`,u.attr(`class`,d),u.attr(`name`,t.name);let f=a.o();f.x=t.x,f.y=o,f.fill=`#eaeaea`,f.width=t.width,f.height=t.height,f.class=`actor`,f.rx=3,f.ry=3,u.append(`line`).attr(`id`,`actor-man-torso`+D).attr(`x1`,s).attr(`y1`,o+25).attr(`x2`,s).attr(`y2`,o+45),u.append(`line`).attr(`id`,`actor-man-arms`+D).attr(`x1`,s-g/2).attr(`y1`,o+33).attr(`x2`,s+g/2).attr(`y2`,o+33),u.append(`line`).attr(`x1`,s-g/2).attr(`y1`,o+60).attr(`x2`,s).attr(`y2`,o+45),u.append(`line`).attr(`x1`,s).attr(`y1`,o+45).attr(`x2`,s+g/2-2).attr(`y2`,o+60);let p=u.append(`circle`);return p.attr(`cx`,t.x+t.width/2),p.attr(`cy`,o+10),p.attr(`r`,15),p.attr(`width`,t.width),p.attr(`height`,t.height),t.height=u.node().getBBox().height,K(r,n.O(t.description))(t.description,u,f.x,f.y+35,f.width,f.height,{class:`actor ${b}`},r),t.height},`drawActorTypeActor`),L=t.h(async function(e,t,n,r){switch(t.type){case`actor`:return await I(e,t,n,r);case`participant`:return await k(e,t,n,r);case`boundary`:return await F(e,t,n,r);case`control`:return await M(e,t,n,r);case`entity`:return await N(e,t,n,r);case`database`:return await P(e,t,n,r);case`collections`:return await A(e,t,n,r);case`queue`:return await j(e,t,n,r)}},`drawActor`),R=t.h(function(e,t,n){let r=e.append(`g`);H(r,t),t.name&&K(n)(t.name,r,t.x,t.y+n.boxTextMargin+(t.textMaxHeight||0)/2,t.width,0,{class:`text`},n),r.lower()},`drawBox`),z=t.h(function(e){return e.append(`g`)},`anchorElement`),B=t.h(function(e,t,n,r,i){let o=a.o(),s=t.anchored;o.x=t.startx,o.y=t.starty,o.class=`activation`+i%3,o.width=t.stopx-t.startx,o.height=n-t.starty,x(s,o)},`drawActivation`),V=t.h(async function(e,r,i,o){let{boxMargin:s,boxTextMargin:c,labelBoxHeight:l,labelBoxWidth:u,messageFontFamily:d,messageFontSize:f,messageFontWeight:p}=o,m=e.append(`g`),h=t.h(function(e,t,n,r){return m.append(`line`).attr(`x1`,e).attr(`y1`,t).attr(`x2`,n).attr(`y2`,r).attr(`class`,`loopLine`)},`drawLoopLine`);h(r.startx,r.starty,r.stopx,r.starty),h(r.stopx,r.starty,r.stopx,r.stopy),h(r.startx,r.stopy,r.stopx,r.stopy),h(r.startx,r.starty,r.startx,r.stopy),r.sections!==void 0&&r.sections.forEach(function(e){h(r.startx,e.y,r.stopx,e.y).style(`stroke-dasharray`,`3, 3`)});let g=a.s();g.text=i,g.x=r.startx,g.y=r.starty,g.fontFamily=d,g.fontSize=f,g.fontWeight=p,g.anchor=`middle`,g.valign=`middle`,g.tspan=!1,g.width=u||50,g.height=l||20,g.textMargin=c,g.class=`labelText`,E(m,g),g=ie(),g.text=r.title,g.x=r.startx+u/2+(r.stopx-r.startx)/2,g.y=r.starty+s+c,g.anchor=`middle`,g.valign=`middle`,g.textMargin=c,g.class=`loopText`,g.fontFamily=d,g.fontSize=f,g.fontWeight=p,g.wrap=!0;let _=n.O(g.text)?await w(m,g,r):T(m,g);if(r.sectionTitles!==void 0){for(let[e,t]of Object.entries(r.sectionTitles))if(t.message){g.text=t.message,g.x=r.startx+(r.stopx-r.startx)/2,g.y=r.sections[e].y+s+c,g.class=`loopText`,g.anchor=`middle`,g.valign=`middle`,g.tspan=!1,g.fontFamily=d,g.fontSize=f,g.fontWeight=p,g.wrap=r.wrap,n.O(g.text)?(r.starty=r.sections[e].y,await w(m,g,r)):T(m,g);let i=Math.round(_.map(e=>(e._groups||e)[0][0].getBBox().height).reduce((e,t)=>e+t));r.sections[e].height+=i-(s+c)}}return r.height=Math.round(r.stopy-r.starty),m},`drawLoop`),H=t.h(function(e,t){a.t(e,t)},`drawBackgroundRect`),U=t.h(function(e){e.append(`defs`).append(`symbol`).attr(`id`,`database`).attr(`fill-rule`,`evenodd`).attr(`clip-rule`,`evenodd`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z`)},`insertDatabaseIcon`),W=t.h(function(e){e.append(`defs`).append(`symbol`).attr(`id`,`computer`).attr(`width`,`24`).attr(`height`,`24`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z`)},`insertComputerIcon`),G=t.h(function(e){e.append(`defs`).append(`symbol`).attr(`id`,`clock`).attr(`width`,`24`).attr(`height`,`24`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z`)},`insertClockIcon`),ee=t.h(function(e){e.append(`defs`).append(`marker`).attr(`id`,`arrowhead`).attr(`refX`,7.9).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto-start-reverse`).append(`path`).attr(`d`,`M -1 0 L 10 5 L 0 10 z`)},`insertArrowHead`),te=t.h(function(e){e.append(`defs`).append(`marker`).attr(`id`,`filled-head`).attr(`refX`,15.5).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`)},`insertArrowFilledHead`),ne=t.h(function(e){e.append(`defs`).append(`marker`).attr(`id`,`sequencenumber`).attr(`refX`,15).attr(`refY`,15).attr(`markerWidth`,60).attr(`markerHeight`,40).attr(`orient`,`auto`).append(`circle`).attr(`cx`,15).attr(`cy`,15).attr(`r`,6)},`insertSequenceNumber`),re=t.h(function(e){e.append(`defs`).append(`marker`).attr(`id`,`crosshead`).attr(`markerWidth`,15).attr(`markerHeight`,8).attr(`orient`,`auto`).attr(`refX`,4).attr(`refY`,4.5).append(`path`).attr(`fill`,`none`).attr(`stroke`,`#000000`).style(`stroke-dasharray`,`0, 0`).attr(`stroke-width`,`1pt`).attr(`d`,`M 1,2 L 6,7 M 6,2 L 1,7`)},`insertArrowCrossHead`),ie=t.h(function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:`#666`,width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},`getTextObj`),ae=t.h(function(){return{x:0,y:0,fill:`#EDF2AE`,stroke:`#666`,width:100,anchor:`start`,height:100,rx:0,ry:0}},`getNoteRect`),K=(function(){function e(e,t,n,r,i,a,o){s(t.append(`text`).attr(`x`,n+i/2).attr(`y`,r+a/2+5).style(`text-anchor`,`middle`).text(e),o)}t.h(e,`byText`);function i(e,t,i,a,o,c,l,u){let{actorFontSize:d,actorFontFamily:f,actorFontWeight:p}=u,[m,h]=r.f(d),g=e.split(n.s.lineBreakRegex);for(let e=0;e<g.length;e++){let n=e*m-m*(g.length-1)/2,r=t.append(`text`).attr(`x`,i+o/2).attr(`y`,a).style(`text-anchor`,`middle`).style(`font-size`,h).style(`font-weight`,p).style(`font-family`,f);r.append(`tspan`).attr(`x`,i+o/2).attr(`dy`,n).text(g[e]),r.attr(`y`,a+c/2).attr(`dominant-baseline`,`central`).attr(`alignment-baseline`,`central`),s(r,l)}}t.h(i,`byTspan`);function a(e,t,n,r,a,o,c,l){let u=t.append(`switch`),d=u.append(`foreignObject`).attr(`x`,n).attr(`y`,r).attr(`width`,a).attr(`height`,o).append(`xhtml:div`).style(`display`,`table`).style(`height`,`100%`).style(`width`,`100%`);d.append(`div`).style(`display`,`table-cell`).style(`text-align`,`center`).style(`vertical-align`,`middle`).text(e),i(e,u,n,r,a,o,c,l),s(d,c)}t.h(a,`byFo`);async function o(e,t,r,a,o,c,l,u){let d=await n.i(e,n.y()),f=t.append(`switch`),p=f.append(`foreignObject`).attr(`x`,r+o/2-d.width/2).attr(`y`,a+c/2-d.height/2).attr(`width`,d.width).attr(`height`,d.height).append(`xhtml:div`).style(`height`,`100%`).style(`width`,`100%`);p.append(`div`).style(`text-align`,`center`).style(`vertical-align`,`middle`).html(await n.N(e,n.y())),i(e,f,r,a,o,c,l,u),s(p,l)}t.h(o,`byKatex`);function s(e,t){for(let n in t)t.hasOwnProperty(n)&&e.attr(n,t[n])}return t.h(s,`_setTextAttrs`),function(t,n=!1){return n?o:t.textPlacement===`fo`?a:t.textPlacement===`old`?e:i}})(),oe=(function(){function e(e,t,n,r,i,o,s){a(t.append(`text`).attr(`x`,n).attr(`y`,r).style(`text-anchor`,`start`).text(e),s)}t.h(e,`byText`);function r(e,t,r,i,o,s,c,l){let{actorFontSize:u,actorFontFamily:d,actorFontWeight:f}=l,p=e.split(n.s.lineBreakRegex);for(let e=0;e<p.length;e++){let n=e*u-u*(p.length-1)/2,o=t.append(`text`).attr(`x`,r).attr(`y`,i).style(`text-anchor`,`start`).style(`font-size`,u).style(`font-weight`,f).style(`font-family`,d);o.append(`tspan`).attr(`x`,r).attr(`dy`,n).text(p[e]),o.attr(`y`,i+s/2).attr(`dominant-baseline`,`central`).attr(`alignment-baseline`,`central`),a(o,c)}}t.h(r,`byTspan`);function i(e,t,n,i,o,s,c,l){let u=t.append(`switch`),d=u.append(`foreignObject`).attr(`x`,n).attr(`y`,i).attr(`width`,o).attr(`height`,s).append(`xhtml:div`).style(`display`,`table`).style(`height`,`100%`).style(`width`,`100%`);d.append(`div`).style(`display`,`table-cell`).style(`text-align`,`center`).style(`vertical-align`,`middle`).text(e),r(e,u,n,i,o,s,c,l),a(d,c)}t.h(i,`byFo`);function a(e,t){for(let n in t)t.hasOwnProperty(n)&&e.attr(n,t[n])}return t.h(a,`_setTextAttrs`),function(t){return t.textPlacement===`fo`?i:t.textPlacement===`old`?e:r}})(),q={drawRect:x,drawText:T,drawLabel:E,drawActor:L,drawBox:R,drawPopup:S,anchorElement:z,drawActivation:B,drawLoop:V,drawBackgroundRect:H,insertArrowHead:ee,insertArrowFilledHead:te,insertSequenceNumber:ne,insertArrowCrossHead:re,insertDatabaseIcon:U,insertComputerIcon:W,insertClockIcon:G,getTextObj:ie,getNoteRect:ae,fixLifeLineHeights:O,sanitizeUrl:s.sanitizeUrl},J={},Y={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:t.h(function(){return Math.max.apply(null,this.actors.length===0?[0]:this.actors.map(e=>e.height||0))+(this.loops.length===0?0:this.loops.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.messages.length===0?0:this.messages.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.notes.length===0?0:this.notes.map(e=>e.height||0).reduce((e,t)=>e+t))},`getHeight`),clear:t.h(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},`clear`),addBox:t.h(function(e){this.boxes.push(e)},`addBox`),addActor:t.h(function(e){this.actors.push(e)},`addActor`),addLoop:t.h(function(e){this.loops.push(e)},`addLoop`),addMessage:t.h(function(e){this.messages.push(e)},`addMessage`),addNote:t.h(function(e){this.notes.push(e)},`addNote`),lastActor:t.h(function(){return this.actors[this.actors.length-1]},`lastActor`),lastLoop:t.h(function(){return this.loops[this.loops.length-1]},`lastLoop`),lastMessage:t.h(function(){return this.messages[this.messages.length-1]},`lastMessage`),lastNote:t.h(function(){return this.notes[this.notes.length-1]},`lastNote`),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:t.h(function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,me(n.b())},`init`),updateVal:t.h(function(e,t,n,r){e[t]===void 0?e[t]=n:e[t]=r(n,e[t])},`updateVal`),updateBounds:t.h(function(e,n,r,i){let a=this,o=0;function s(s){return t.h(function(t){o++;let c=a.sequenceItems.length-o+1;a.updateVal(t,`starty`,n-c*J.boxMargin,Math.min),a.updateVal(t,`stopy`,i+c*J.boxMargin,Math.max),a.updateVal(Y.data,`startx`,e-c*J.boxMargin,Math.min),a.updateVal(Y.data,`stopx`,r+c*J.boxMargin,Math.max),s!==`activation`&&(a.updateVal(t,`startx`,e-c*J.boxMargin,Math.min),a.updateVal(t,`stopx`,r+c*J.boxMargin,Math.max),a.updateVal(Y.data,`starty`,n-c*J.boxMargin,Math.min),a.updateVal(Y.data,`stopy`,i+c*J.boxMargin,Math.max))},`updateItemBounds`)}t.h(s,`updateFn`),this.sequenceItems.forEach(s()),this.activations.forEach(s(`activation`))},`updateBounds`),insert:t.h(function(e,t,r,i){let a=n.s.getMin(e,r),o=n.s.getMax(e,r),s=n.s.getMin(t,i),c=n.s.getMax(t,i);this.updateVal(Y.data,`startx`,a,Math.min),this.updateVal(Y.data,`starty`,s,Math.min),this.updateVal(Y.data,`stopx`,o,Math.max),this.updateVal(Y.data,`stopy`,c,Math.max),this.updateBounds(a,s,o,c)},`insert`),newActivation:t.h(function(e,t,n){let r=n.get(e.from),i=Q(e.from).length||0,a=r.x+r.width/2+(i-1)*J.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+J.activationWidth,stopy:void 0,actor:e.from,anchored:q.anchorElement(t)})},`newActivation`),endActivation:t.h(function(e){let t=this.activations.map(function(e){return e.actor}).lastIndexOf(e.from);return this.activations.splice(t,1)[0]},`endActivation`),createLoop:t.h(function(e={message:void 0,wrap:!1,width:void 0},t){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:t}},`createLoop`),newLoop:t.h(function(e={message:void 0,wrap:!1,width:void 0},t){this.sequenceItems.push(this.createLoop(e,t))},`newLoop`),endLoop:t.h(function(){return this.sequenceItems.pop()},`endLoop`),isLoopOverlap:t.h(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},`isLoopOverlap`),addSectionToLoop:t.h(function(e){let t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:Y.getVerticalPos(),height:0}),t.sectionTitles.push(e),this.sequenceItems.push(t)},`addSectionToLoop`),saveVerticalPos:t.h(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},`saveVerticalPos`),resetVerticalPos:t.h(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},`resetVerticalPos`),bumpVerticalPos:t.h(function(e){this.verticalPos+=e,this.data.stopy=n.s.getMax(this.data.stopy,this.verticalPos)},`bumpVerticalPos`),getVerticalPos:t.h(function(){return this.verticalPos},`getVerticalPos`),getBounds:t.h(function(){return{bounds:this.data,models:this.models}},`getBounds`)},se=t.h(async function(e,t){Y.bumpVerticalPos(J.boxMargin),t.height=J.boxMargin,t.starty=Y.getVerticalPos();let r=a.o();r.x=t.startx,r.y=t.starty,r.width=t.width||J.width,r.class=`note`;let i=e.append(`g`),o=q.drawRect(i,r),s=a.s();s.x=t.startx,s.y=t.starty,s.width=r.width,s.dy=`1em`,s.text=t.message,s.class=`noteText`,s.fontFamily=J.noteFontFamily,s.fontSize=J.noteFontSize,s.fontWeight=J.noteFontWeight,s.anchor=J.noteAlign,s.textMargin=J.noteMargin,s.valign=`center`;let c=n.O(s.text)?await w(i,s):T(i,s),l=Math.round(c.map(e=>(e._groups||e)[0][0].getBBox().height).reduce((e,t)=>e+t));o.attr(`height`,l+2*J.noteMargin),t.height+=l+2*J.noteMargin,Y.bumpVerticalPos(l+2*J.noteMargin),t.stopy=t.starty+l+2*J.noteMargin,t.stopx=t.startx+r.width,Y.insert(t.startx,t.starty,t.stopx,t.stopy),Y.models.addNote(t)},`drawNote`),X=t.h(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),`messageFont`),Z=t.h(e=>({fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}),`noteFont`),ce=t.h(e=>({fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight}),`actorFont`);async function le(e,t){Y.bumpVerticalPos(10);let{startx:i,stopx:a,message:o}=t,s=n.s.splitBreaks(o).length,c=n.O(o),l=c?await n.i(o,n.b()):r.h.calculateTextDimensions(o,X(J));if(!c){let e=l.height/s;t.height+=e,Y.bumpVerticalPos(e)}let u,d=l.height-10,f=l.width;if(i===a){u=Y.getVerticalPos()+d,J.rightAngles||(d+=J.boxMargin,u=Y.getVerticalPos()+d),d+=30;let e=n.s.getMax(f/2,J.width/2);Y.insert(i-e,Y.getVerticalPos()-10+d,a+e,Y.getVerticalPos()+30+d)}else d+=J.boxMargin,u=Y.getVerticalPos()+d,Y.insert(i,u-10,a,u);return Y.bumpVerticalPos(d),t.height+=d,t.stopy=t.starty+t.height,Y.insert(t.fromBounds,t.starty,t.toBounds,t.stopy),u}t.h(le,`boundMessage`);var ue=t.h(async function(e,t,i,o){let{startx:s,stopx:c,starty:l,message:u,type:d,sequenceIndex:f,sequenceVisible:p}=t,m=r.h.calculateTextDimensions(u,X(J)),h=a.s();h.x=s,h.y=l+10,h.width=c-s,h.class=`messageText`,h.dy=`1em`,h.text=u,h.fontFamily=J.messageFontFamily,h.fontSize=J.messageFontSize,h.fontWeight=J.messageFontWeight,h.anchor=J.messageAlign,h.valign=`center`,h.textMargin=J.wrapPadding,h.tspan=!1,n.O(h.text)?await w(e,h,{startx:s,stopx:c,starty:i}):T(e,h);let g=m.width,_;s===c?_=J.rightAngles?e.append(`path`).attr(`d`,`M ${s},${i} H ${s+n.s.getMax(J.width/2,g/2)} V ${i+25} H ${s}`):e.append(`path`).attr(`d`,`M `+s+`,`+i+` C `+(s+60)+`,`+(i-10)+` `+(s+60)+`,`+(i+30)+` `+s+`,`+(i+20)):(_=e.append(`line`),_.attr(`x1`,s),_.attr(`y1`,i),_.attr(`x2`,c),_.attr(`y2`,i)),d===o.db.LINETYPE.DOTTED||d===o.db.LINETYPE.DOTTED_CROSS||d===o.db.LINETYPE.DOTTED_POINT||d===o.db.LINETYPE.DOTTED_OPEN||d===o.db.LINETYPE.BIDIRECTIONAL_DOTTED?(_.style(`stroke-dasharray`,`3, 3`),_.attr(`class`,`messageLine1`)):_.attr(`class`,`messageLine0`);let v=``;J.arrowMarkerAbsolute&&(v=n.E(!0)),_.attr(`stroke-width`,2),_.attr(`stroke`,`none`),_.style(`fill`,`none`),(d===o.db.LINETYPE.SOLID||d===o.db.LINETYPE.DOTTED)&&_.attr(`marker-end`,`url(`+v+`#arrowhead)`),(d===o.db.LINETYPE.BIDIRECTIONAL_SOLID||d===o.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(_.attr(`marker-start`,`url(`+v+`#arrowhead)`),_.attr(`marker-end`,`url(`+v+`#arrowhead)`)),(d===o.db.LINETYPE.SOLID_POINT||d===o.db.LINETYPE.DOTTED_POINT)&&_.attr(`marker-end`,`url(`+v+`#filled-head)`),(d===o.db.LINETYPE.SOLID_CROSS||d===o.db.LINETYPE.DOTTED_CROSS)&&_.attr(`marker-end`,`url(`+v+`#crosshead)`),(p||J.showSequenceNumbers)&&((d===o.db.LINETYPE.BIDIRECTIONAL_SOLID||d===o.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(s<c?_.attr(`x1`,s+12):_.attr(`x1`,s+6)),e.append(`line`).attr(`x1`,s).attr(`y1`,i).attr(`x2`,s).attr(`y2`,i).attr(`stroke-width`,0).attr(`marker-start`,`url(`+v+`#sequencenumber)`),e.append(`text`).attr(`x`,s).attr(`y`,i+4).attr(`font-family`,`sans-serif`).attr(`font-size`,`12px`).attr(`text-anchor`,`middle`).attr(`class`,`sequenceNumber`).text(f))},`drawMessage`),de=t.h(function(e,t,r,i,a,o,s){let c=0,l=0,u,d=0;for(let e of i){let i=t.get(e),o=i.box;u&&u!=o&&(s||Y.models.addBox(u),l+=J.boxMargin+u.margin),o&&o!=u&&(s||(o.x=c+l,o.y=a),l+=o.margin),i.width=i.width||J.width,i.height=n.s.getMax(i.height||J.height,J.height),i.margin=i.margin||J.actorMargin,d=n.s.getMax(d,i.height),r.get(i.name)&&(l+=i.width/2),i.x=c+l,i.starty=Y.getVerticalPos(),Y.insert(i.x,a,i.x+i.width,i.height),c+=i.width+l,i.box&&(i.box.width=c+o.margin-i.box.x),l=i.margin,u=i.box,Y.models.addActor(i)}u&&!s&&Y.models.addBox(u),Y.bumpVerticalPos(d)},`addActorRenderingData`),fe=t.h(async function(e,t,r,i){if(i){let i=0;Y.bumpVerticalPos(J.boxMargin*2);for(let a of r){let r=t.get(a);r.stopy||=Y.getVerticalPos();let o=await q.drawActor(e,r,J,!0);i=n.s.getMax(i,o)}Y.bumpVerticalPos(i+J.boxMargin)}else for(let n of r){let r=t.get(n);await q.drawActor(e,r,J,!1)}},`drawActors`),pe=t.h(function(e,t,n,r){let i=0,a=0;for(let o of n){let n=t.get(o),s=ye(n),c=q.drawPopup(e,n,s,J,J.forceMenus,r);c.height>i&&(i=c.height),c.width+n.x>a&&(a=c.width+n.x)}return{maxHeight:i,maxWidth:a}},`drawActorsPopup`),me=t.h(function(e){n.r(J,e),e.fontFamily&&(J.actorFontFamily=J.noteFontFamily=J.messageFontFamily=e.fontFamily),e.fontSize&&(J.actorFontSize=J.noteFontSize=J.messageFontSize=e.fontSize),e.fontWeight&&(J.actorFontWeight=J.noteFontWeight=J.messageFontWeight=e.fontWeight)},`setConf`),Q=t.h(function(e){return Y.activations.filter(function(t){return t.actor===e})},`actorActivations`),he=t.h(function(e,t){let r=t.get(e),i=Q(e);return[i.reduce(function(e,t){return n.s.getMin(e,t.startx)},r.x+r.width/2-1),i.reduce(function(e,t){return n.s.getMax(e,t.stopx)},r.x+r.width/2+1)]},`activationBounds`);function $(e,i,a,o,s){Y.bumpVerticalPos(a);let c=o;if(i.id&&i.message&&e[i.id]){let a=e[i.id].width,s=X(J);i.message=r.h.wrapLabel(`[${i.message}]`,a-2*J.wrapPadding,s),i.width=a,i.wrap=!0;let l=r.h.calculateTextDimensions(i.message,s),u=n.s.getMax(l.height,J.labelBoxHeight);c=o+u,t.g.debug(`${u} - ${i.message}`)}s(i),Y.bumpVerticalPos(c)}t.h($,`adjustLoopHeightForWrap`);function ge(e,n,r,i,a,o,s){function c(t,r){t.x<a.get(e.from).x?(Y.insert(n.stopx-r,n.starty,n.startx,n.stopy+t.height/2+J.noteMargin),n.stopx+=r):(Y.insert(n.startx,n.starty,n.stopx+r,n.stopy+t.height/2+J.noteMargin),n.stopx-=r)}t.h(c,`receiverAdjustment`);function l(t,r){t.x<a.get(e.to).x?(Y.insert(n.startx-r,n.starty,n.stopx,n.stopy+t.height/2+J.noteMargin),n.startx+=r):(Y.insert(n.stopx,n.starty,n.startx+r,n.stopy+t.height/2+J.noteMargin),n.startx-=r)}t.h(l,`senderAdjustment`);let u=[p.ACTOR,p.CONTROL,p.ENTITY,p.DATABASE];if(o.get(e.to)==i){let t=a.get(e.to);c(t,u.includes(t.type)?g/2+3:t.width/2+3),t.starty=r-t.height/2,Y.bumpVerticalPos(t.height/2)}else if(s.get(e.from)==i){let t=a.get(e.from);J.mirrorActors&&l(t,u.includes(t.type)?g/2:t.width/2),t.stopy=r-t.height/2,Y.bumpVerticalPos(t.height/2)}else if(s.get(e.to)==i){let t=a.get(e.to);J.mirrorActors&&c(t,u.includes(t.type)?g/2+3:t.width/2+3),t.stopy=r-t.height/2,Y.bumpVerticalPos(t.height/2)}}t.h(ge,`adjustCreatedDestroyedData`);var _e=t.h(async function(e,r,i,a){let{securityLevel:o,sequence:s}=n.b();J=s;let c;o===`sandbox`&&(c=t.p(`#i`+r));let l=o===`sandbox`?t.p(c.nodes()[0].contentDocument.body):t.p(`body`),u=o===`sandbox`?c.nodes()[0].contentDocument:document;Y.init(),t.g.debug(a.db);let d=o===`sandbox`?l.select(`[id="${r}"]`):t.p(`[id="${r}"]`),f=a.db.getActors(),p=a.db.getCreatedActors(),m=a.db.getDestroyedActors(),h=a.db.getBoxes(),g=a.db.getActorKeys(),_=a.db.getMessages(),v=a.db.getDiagramTitle(),y=a.db.hasAtLeastOneBox(),b=a.db.hasAtLeastOneBoxWithTitle(),x=await ve(f,_,a);if(J.height=await be(f,x,h),q.insertComputerIcon(d),q.insertDatabaseIcon(d),q.insertClockIcon(d),y&&(Y.bumpVerticalPos(J.boxMargin),b&&Y.bumpVerticalPos(h[0].textMaxHeight)),J.hideUnusedParticipants===!0){let e=new Set;_.forEach(t=>{e.add(t.from),e.add(t.to)}),g=g.filter(t=>e.has(t))}de(d,f,p,g,0,_,!1);let S=await Ce(_,f,x,a);q.insertArrowHead(d),q.insertArrowCrossHead(d),q.insertArrowFilledHead(d),q.insertSequenceNumber(d);function C(e,t){let n=Y.endActivation(e);n.starty+18>t&&(n.starty=t-6,t+=12),q.drawActivation(d,n,t,J,Q(e.from).length),Y.insert(n.startx,t-10,n.stopx,t)}t.h(C,`activeEnd`);let w=1,T=1,E=[],D=[],k=0;for(let e of _){let n,r,i;switch(e.type){case a.db.LINETYPE.NOTE:Y.resetVerticalPos(),r=e.noteModel,await se(d,r);break;case a.db.LINETYPE.ACTIVE_START:Y.newActivation(e,d,f);break;case a.db.LINETYPE.ACTIVE_END:C(e,Y.getVerticalPos());break;case a.db.LINETYPE.LOOP_START:$(S,e,J.boxMargin,J.boxMargin+J.boxTextMargin,e=>Y.newLoop(e));break;case a.db.LINETYPE.LOOP_END:n=Y.endLoop(),await q.drawLoop(d,n,`loop`,J),Y.bumpVerticalPos(n.stopy-Y.getVerticalPos()),Y.models.addLoop(n);break;case a.db.LINETYPE.RECT_START:$(S,e,J.boxMargin,J.boxMargin,e=>Y.newLoop(void 0,e.message));break;case a.db.LINETYPE.RECT_END:n=Y.endLoop(),D.push(n),Y.models.addLoop(n),Y.bumpVerticalPos(n.stopy-Y.getVerticalPos());break;case a.db.LINETYPE.OPT_START:$(S,e,J.boxMargin,J.boxMargin+J.boxTextMargin,e=>Y.newLoop(e));break;case a.db.LINETYPE.OPT_END:n=Y.endLoop(),await q.drawLoop(d,n,`opt`,J),Y.bumpVerticalPos(n.stopy-Y.getVerticalPos()),Y.models.addLoop(n);break;case a.db.LINETYPE.ALT_START:$(S,e,J.boxMargin,J.boxMargin+J.boxTextMargin,e=>Y.newLoop(e));break;case a.db.LINETYPE.ALT_ELSE:$(S,e,J.boxMargin+J.boxTextMargin,J.boxMargin,e=>Y.addSectionToLoop(e));break;case a.db.LINETYPE.ALT_END:n=Y.endLoop(),await q.drawLoop(d,n,`alt`,J),Y.bumpVerticalPos(n.stopy-Y.getVerticalPos()),Y.models.addLoop(n);break;case a.db.LINETYPE.PAR_START:case a.db.LINETYPE.PAR_OVER_START:$(S,e,J.boxMargin,J.boxMargin+J.boxTextMargin,e=>Y.newLoop(e)),Y.saveVerticalPos();break;case a.db.LINETYPE.PAR_AND:$(S,e,J.boxMargin+J.boxTextMargin,J.boxMargin,e=>Y.addSectionToLoop(e));break;case a.db.LINETYPE.PAR_END:n=Y.endLoop(),await q.drawLoop(d,n,`par`,J),Y.bumpVerticalPos(n.stopy-Y.getVerticalPos()),Y.models.addLoop(n);break;case a.db.LINETYPE.AUTONUMBER:w=e.message.start||w,T=e.message.step||T,e.message.visible?a.db.enableSequenceNumbers():a.db.disableSequenceNumbers();break;case a.db.LINETYPE.CRITICAL_START:$(S,e,J.boxMargin,J.boxMargin+J.boxTextMargin,e=>Y.newLoop(e));break;case a.db.LINETYPE.CRITICAL_OPTION:$(S,e,J.boxMargin+J.boxTextMargin,J.boxMargin,e=>Y.addSectionToLoop(e));break;case a.db.LINETYPE.CRITICAL_END:n=Y.endLoop(),await q.drawLoop(d,n,`critical`,J),Y.bumpVerticalPos(n.stopy-Y.getVerticalPos()),Y.models.addLoop(n);break;case a.db.LINETYPE.BREAK_START:$(S,e,J.boxMargin,J.boxMargin+J.boxTextMargin,e=>Y.newLoop(e));break;case a.db.LINETYPE.BREAK_END:n=Y.endLoop(),await q.drawLoop(d,n,`break`,J),Y.bumpVerticalPos(n.stopy-Y.getVerticalPos()),Y.models.addLoop(n);break;default:try{i=e.msgModel,i.starty=Y.getVerticalPos(),i.sequenceIndex=w,i.sequenceVisible=a.db.showSequenceNumbers();let t=await le(d,i);ge(e,i,t,k,f,p,m),E.push({messageModel:i,lineStartY:t}),Y.models.addMessage(i)}catch(e){t.g.error(`error while drawing message`,e)}}[a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN,a.db.LINETYPE.SOLID,a.db.LINETYPE.DOTTED,a.db.LINETYPE.SOLID_CROSS,a.db.LINETYPE.DOTTED_CROSS,a.db.LINETYPE.SOLID_POINT,a.db.LINETYPE.DOTTED_POINT,a.db.LINETYPE.BIDIRECTIONAL_SOLID,a.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(e.type)&&(w+=T),k++}t.g.debug(`createdActors`,p),t.g.debug(`destroyedActors`,m),await fe(d,f,g,!1);for(let e of E)await ue(d,e.messageModel,e.lineStartY,a);J.mirrorActors&&await fe(d,f,g,!0),D.forEach(e=>q.drawBackgroundRect(d,e)),O(d,f,g,J);for(let e of Y.models.boxes){e.height=Y.getVerticalPos()-e.y,Y.insert(e.x,e.y,e.x+e.width,e.height);let t=J.boxMargin*2;e.startx=e.x-t,e.starty=e.y-t*.25,e.stopx=e.startx+e.width+2*t,e.stopy=e.starty+e.height+t*.75,e.stroke=`rgb(0,0,0, 0.5)`,q.drawBox(d,e,J)}y&&Y.bumpVerticalPos(J.boxMargin);let A=pe(d,f,g,u),{bounds:j}=Y.getBounds();j.startx===void 0&&(j.startx=0),j.starty===void 0&&(j.starty=0),j.stopx===void 0&&(j.stopx=0),j.stopy===void 0&&(j.stopy=0);let M=j.stopy-j.starty;M<A.maxHeight&&(M=A.maxHeight);let N=M+2*J.diagramMarginY;J.mirrorActors&&(N=N-J.boxMargin+J.bottomMarginAdj);let P=j.stopx-j.startx;P<A.maxWidth&&(P=A.maxWidth);let F=P+2*J.diagramMarginX;v&&d.append(`text`).text(v).attr(`x`,(j.stopx-j.startx)/2-2*J.diagramMarginX).attr(`y`,-25),n.c(d,N,F,J.useMaxWidth);let I=v?40:0;d.attr(`viewBox`,j.startx-J.diagramMarginX+` -`+(J.diagramMarginY+I)+` `+F+` `+(N+I)),t.g.debug(`models:`,Y.models)},`draw`);async function ve(e,i,a){let o={};for(let t of i)if(e.get(t.to)&&e.get(t.from)){let i=e.get(t.to);if(t.placement===a.db.PLACEMENT.LEFTOF&&!i.prevActor||t.placement===a.db.PLACEMENT.RIGHTOF&&!i.nextActor)continue;let s=t.placement!==void 0,c=!s,l=s?Z(J):X(J),u=t.wrap?r.h.wrapLabel(t.message,J.width-2*J.wrapPadding,l):t.message,d=(n.O(u)?await n.i(t.message,n.b()):r.h.calculateTextDimensions(u,l)).width+2*J.wrapPadding;c&&t.from===i.nextActor?o[t.to]=n.s.getMax(o[t.to]||0,d):c&&t.from===i.prevActor?o[t.from]=n.s.getMax(o[t.from]||0,d):c&&t.from===t.to?(o[t.from]=n.s.getMax(o[t.from]||0,d/2),o[t.to]=n.s.getMax(o[t.to]||0,d/2)):t.placement===a.db.PLACEMENT.RIGHTOF?o[t.from]=n.s.getMax(o[t.from]||0,d):t.placement===a.db.PLACEMENT.LEFTOF?o[i.prevActor]=n.s.getMax(o[i.prevActor]||0,d):t.placement===a.db.PLACEMENT.OVER&&(i.prevActor&&(o[i.prevActor]=n.s.getMax(o[i.prevActor]||0,d/2)),i.nextActor&&(o[t.from]=n.s.getMax(o[t.from]||0,d/2)))}return t.g.debug(`maxMessageWidthPerActor:`,o),o}t.h(ve,`getMaxMessageWidthPerActor`);var ye=t.h(function(e){let t=0,n=ce(J);for(let i in e.links){let e=r.h.calculateTextDimensions(i,n).width+2*J.wrapPadding+2*J.boxMargin;t<e&&(t=e)}return t},`getRequiredPopupWidth`);async function be(e,t,i){let a=0;for(let t of e.keys()){let i=e.get(t);i.wrap&&(i.description=r.h.wrapLabel(i.description,J.width-2*J.wrapPadding,ce(J)));let o=n.O(i.description)?await n.i(i.description,n.b()):r.h.calculateTextDimensions(i.description,ce(J));i.width=i.wrap?J.width:n.s.getMax(J.width,o.width+2*J.wrapPadding),i.height=i.wrap?n.s.getMax(o.height,J.height):J.height,a=n.s.getMax(a,i.height)}for(let r in t){let i=e.get(r);if(!i)continue;let a=e.get(i.nextActor);if(!a){let e=t[r]+J.actorMargin-i.width/2;i.margin=n.s.getMax(e,J.actorMargin);continue}let o=t[r]+J.actorMargin-i.width/2-a.width/2;i.margin=n.s.getMax(o,J.actorMargin)}let o=0;return i.forEach(t=>{let i=X(J),a=t.actorKeys.reduce((t,n)=>t+=e.get(n).width+(e.get(n).margin||0),0),s=J.boxMargin*8;a+=s,a-=2*J.boxTextMargin,t.wrap&&(t.name=r.h.wrapLabel(t.name,a-2*J.wrapPadding,i));let c=r.h.calculateTextDimensions(t.name,i);o=n.s.getMax(c.height,o);let l=n.s.getMax(a,c.width+2*J.wrapPadding);if(t.margin=J.boxTextMargin,a<l){let e=(l-a)/2;t.margin+=e}}),i.forEach(e=>e.textMaxHeight=o),n.s.getMax(a,J.height)}t.h(be,`calculateActorMargins`);var xe=t.h(async function(e,i,a){let o=i.get(e.from),s=i.get(e.to),c=o.x,l=s.x,u=e.wrap&&e.message,d=n.O(e.message)?await n.i(e.message,n.b()):r.h.calculateTextDimensions(u?r.h.wrapLabel(e.message,J.width,Z(J)):e.message,Z(J)),f={width:u?J.width:n.s.getMax(J.width,d.width+2*J.noteMargin),height:0,startx:o.x,stopx:0,starty:0,stopy:0,message:e.message};return e.placement===a.db.PLACEMENT.RIGHTOF?(f.width=u?n.s.getMax(J.width,d.width):n.s.getMax(o.width/2+s.width/2,d.width+2*J.noteMargin),f.startx=c+(o.width+J.actorMargin)/2):e.placement===a.db.PLACEMENT.LEFTOF?(f.width=u?n.s.getMax(J.width,d.width+2*J.noteMargin):n.s.getMax(o.width/2+s.width/2,d.width+2*J.noteMargin),f.startx=c-f.width+(o.width-J.actorMargin)/2):e.to===e.from?(d=r.h.calculateTextDimensions(u?r.h.wrapLabel(e.message,n.s.getMax(J.width,o.width),Z(J)):e.message,Z(J)),f.width=u?n.s.getMax(J.width,o.width):n.s.getMax(o.width,J.width,d.width+2*J.noteMargin),f.startx=c+(o.width-f.width)/2):(f.width=Math.abs(c+o.width/2-(l+s.width/2))+J.actorMargin,f.startx=c<l?c+o.width/2-J.actorMargin/2:l+s.width/2-J.actorMargin/2),u&&(f.message=r.h.wrapLabel(e.message,f.width-2*J.wrapPadding,Z(J))),t.g.debug(`NM:[${f.startx},${f.stopx},${f.starty},${f.stopy}:${f.width},${f.height}=${e.message}]`),f},`buildNoteModel`),Se=t.h(function(e,i,a){if(![a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN,a.db.LINETYPE.SOLID,a.db.LINETYPE.DOTTED,a.db.LINETYPE.SOLID_CROSS,a.db.LINETYPE.DOTTED_CROSS,a.db.LINETYPE.SOLID_POINT,a.db.LINETYPE.DOTTED_POINT,a.db.LINETYPE.BIDIRECTIONAL_SOLID,a.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(e.type))return{};let[o,s]=he(e.from,i),[c,l]=he(e.to,i),u=o<=c,d=u?s:o,f=u?c:l,p=Math.abs(c-l)>2,m=t.h(e=>u?-e:e,`adjustValue`);e.from===e.to?f=d:(e.activate&&!p&&(f+=m(J.activationWidth/2-1)),[a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN].includes(e.type)||(f+=m(3)),[a.db.LINETYPE.BIDIRECTIONAL_SOLID,a.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(e.type)&&(d-=m(3)));let h=[o,s,c,l],g=Math.abs(d-f);e.wrap&&e.message&&(e.message=r.h.wrapLabel(e.message,n.s.getMax(g+2*J.wrapPadding,J.width),X(J)));let _=r.h.calculateTextDimensions(e.message,X(J));return{width:n.s.getMax(e.wrap?0:_.width+2*J.wrapPadding,g+2*J.wrapPadding,J.width),height:0,startx:d,stopx:f,starty:0,stopy:0,message:e.message,type:e.type,wrap:e.wrap,fromBounds:Math.min.apply(null,h),toBounds:Math.max.apply(null,h)}},`buildMessageModel`),Ce=t.h(async function(e,r,i,a){let o={},s=[],c,l,u;for(let t of e){switch(t.type){case a.db.LINETYPE.LOOP_START:case a.db.LINETYPE.ALT_START:case a.db.LINETYPE.OPT_START:case a.db.LINETYPE.PAR_START:case a.db.LINETYPE.PAR_OVER_START:case a.db.LINETYPE.CRITICAL_START:case a.db.LINETYPE.BREAK_START:s.push({id:t.id,msg:t.message,from:2**53-1,to:-(2**53-1),width:0});break;case a.db.LINETYPE.ALT_ELSE:case a.db.LINETYPE.PAR_AND:case a.db.LINETYPE.CRITICAL_OPTION:t.message&&(c=s.pop(),o[c.id]=c,o[t.id]=c,s.push(c));break;case a.db.LINETYPE.LOOP_END:case a.db.LINETYPE.ALT_END:case a.db.LINETYPE.OPT_END:case a.db.LINETYPE.PAR_END:case a.db.LINETYPE.CRITICAL_END:case a.db.LINETYPE.BREAK_END:c=s.pop(),o[c.id]=c;break;case a.db.LINETYPE.ACTIVE_START:{let e=r.get(t.from?t.from:t.to.actor),n=Q(t.from?t.from:t.to.actor).length,i=e.x+e.width/2+(n-1)*J.activationWidth/2,a={startx:i,stopx:i+J.activationWidth,actor:t.from,enabled:!0};Y.activations.push(a)}break;case a.db.LINETYPE.ACTIVE_END:{let e=Y.activations.map(e=>e.actor).lastIndexOf(t.from);Y.activations.splice(e,1).splice(0,1)}break}t.placement===void 0?(u=Se(t,r,a),t.msgModel=u,u.startx&&u.stopx&&s.length>0&&s.forEach(e=>{if(c=e,u.startx===u.stopx){let e=r.get(t.from),i=r.get(t.to);c.from=n.s.getMin(e.x-u.width/2,e.x-e.width/2,c.from),c.to=n.s.getMax(i.x+u.width/2,i.x+e.width/2,c.to),c.width=n.s.getMax(c.width,Math.abs(c.to-c.from))-J.labelBoxWidth}else c.from=n.s.getMin(u.startx,c.from),c.to=n.s.getMax(u.stopx,c.to),c.width=n.s.getMax(c.width,u.width)-J.labelBoxWidth})):(l=await xe(t,r,a),t.noteModel=l,s.forEach(e=>{c=e,c.from=n.s.getMin(c.from,l.startx),c.to=n.s.getMax(c.to,l.startx+l.width),c.width=n.s.getMax(c.width,Math.abs(c.from-c.to))-J.labelBoxWidth}))}return Y.activations=[],t.g.debug(`Loop type widths:`,o),o},`calculateLoopBounds`),we={parser:l,get db(){return new m},renderer:{bounds:Y,drawActors:fe,drawActorsPopup:pe,setConf:me,draw:_e},styles:h,init:t.h(e=>{e.sequence||={},e.wrap&&(e.sequence.wrap=e.wrap,n.H({sequence:{wrap:e.wrap}}))},`init`)};exports.diagram=we;
@@ -0,0 +1 @@
1
+ const e=require("./chunk-BNMv73og.cjs");var t=e.t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var ee=`$isDayjsObject`,x=function(e){return e instanceof T||!(!e||!e[ee])},S=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},C=function(e,t){if(x(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new T(n)},w=v;w.l=S,w.i=x,w.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var T=function(){function g(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[ee]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(w.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return w},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return C(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<C(e)},_.$g=function(e,t,n){return w.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!w.u(t)||t,u=w.p(e),p=function(e,t){var i=w.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return w.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=w.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[w.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=w.p(u),h=function(e){var t=C(p);return w.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return w.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=w.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return w.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return w.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return w.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return w.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return w.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return w.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return w.s(t.$s,2,`0`);case`SSS`:return w.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=w.p(f),_=C(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return w.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:w.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=S(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return w.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),te=T.prototype;return C.prototype=te,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){te[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),C.extend=function(e,t){return e.$i||=(e(t,T,C),!0),C},C.locale=S,C.isDayjs=x,C.unix=function(e){return C(1e3*e)},C.en=b[y],C.Ls=b,C.p={},C}))})),n=e.i(t(),1),r=Object.defineProperty,i=(e,t)=>r(e,`name`,{value:t,configurable:!0}),a=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},o={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},s={trace:i((...e)=>{},`trace`),debug:i((...e)=>{},`debug`),info:i((...e)=>{},`info`),warn:i((...e)=>{},`warn`),error:i((...e)=>{},`error`),fatal:i((...e)=>{},`fatal`)},c=i(function(e=`fatal`){let t=o.fatal;typeof e==`string`?e.toLowerCase()in o&&(t=o[e]):typeof e==`number`&&(t=e),s.trace=()=>{},s.debug=()=>{},s.info=()=>{},s.warn=()=>{},s.error=()=>{},s.fatal=()=>{},t<=o.fatal&&(s.fatal=console.error?console.error.bind(console,l(`FATAL`),`color: orange`):console.log.bind(console,`\x1B[35m`,l(`FATAL`))),t<=o.error&&(s.error=console.error?console.error.bind(console,l(`ERROR`),`color: orange`):console.log.bind(console,`\x1B[31m`,l(`ERROR`))),t<=o.warn&&(s.warn=console.warn?console.warn.bind(console,l(`WARN`),`color: orange`):console.log.bind(console,`\x1B[33m`,l(`WARN`))),t<=o.info&&(s.info=console.info?console.info.bind(console,l(`INFO`),`color: lightblue`):console.log.bind(console,`\x1B[34m`,l(`INFO`))),t<=o.debug&&(s.debug=console.debug?console.debug.bind(console,l(`DEBUG`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,l(`DEBUG`))),t<=o.trace&&(s.trace=console.debug?console.debug.bind(console,l(`TRACE`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,l(`TRACE`)))},`setLogLevel`),l=i(e=>`%c${(0,n.default)().format(`ss.SSS`)} : ${e} : `,`format`),u={value:()=>{}};function d(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new f(n)}function f(e){this._=e}function p(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}f.prototype=d.prototype={constructor:f,on:function(e,t){var n=this._,r=p(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=m(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=h(n[i],e.name,t);else if(t==null)for(i in n)n[i]=h(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new f(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function m(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function h(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=u,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var g={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function _(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),g.hasOwnProperty(t)?{space:g[t],local:e}:e}function v(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function y(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function b(e){var t=_(e);return(t.local?y:v)(t)}function ee(){}function x(e){return e==null?ee:function(){return this.querySelector(e)}}function S(e){typeof e!=`function`&&(e=x(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new D(r,this._parents)}function C(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function w(){return[]}function T(e){return e==null?w:function(){return this.querySelectorAll(e)}}function te(e){return function(){return C(e.apply(this,arguments))}}function ne(e){e=typeof e==`function`?te(e):T(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new D(r,i)}function re(e){return function(){return this.matches(e)}}function ie(e){return function(t){return t.matches(e)}}var ae=Array.prototype.find;function oe(e){return function(){return ae.call(this.children,e)}}function se(){return this.firstElementChild}function ce(e){return this.select(e==null?se:oe(typeof e==`function`?e:ie(e)))}var le=Array.prototype.filter;function ue(){return Array.from(this.children)}function de(e){return function(){return le.call(this.children,e)}}function fe(e){return this.selectAll(e==null?ue:de(typeof e==`function`?e:ie(e)))}function pe(e){typeof e!=`function`&&(e=re(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new D(r,this._parents)}function me(e){return Array(e.length)}function he(){return new D(this._enter||this._groups.map(me),this._parents)}function ge(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}ge.prototype={constructor:ge,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function _e(e){return function(){return e}}function ve(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new ge(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function ye(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new ge(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function be(e){return e.__data__}function xe(e,t){if(!arguments.length)return Array.from(this,be);var n=t?ye:ve,r=this._parents,i=this._groups;typeof e!=`function`&&(e=_e(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=Se(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new D(o,r),o._enter=s,o._exit=c,o}function Se(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function Ce(){return new D(this._exit||this._groups.map(me),this._parents)}function we(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function Te(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new D(s,this._parents)}function Ee(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function De(e){e||=Oe;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new D(i,this._parents).order()}function Oe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function ke(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Ae(){return Array.from(this)}function je(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function Me(){let e=0;for(let t of this)++e;return e}function Ne(){return!this.node()}function Pe(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function Fe(e){return function(){this.removeAttribute(e)}}function Ie(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Le(e,t){return function(){this.setAttribute(e,t)}}function Re(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function ze(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Be(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Ve(e,t){var n=_(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Ie:Fe:typeof t==`function`?n.local?Be:ze:n.local?Re:Le)(n,t))}function He(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Ue(e){return function(){this.style.removeProperty(e)}}function We(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Ge(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Ke(e,t,n){return arguments.length>1?this.each((t==null?Ue:typeof t==`function`?Ge:We)(e,t,n??``)):E(this.node(),e)}function E(e,t){return e.style.getPropertyValue(t)||He(e).getComputedStyle(e,null).getPropertyValue(t)}function qe(e){return function(){delete this[e]}}function Je(e,t){return function(){this[e]=t}}function Ye(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Xe(e,t){return arguments.length>1?this.each((t==null?qe:typeof t==`function`?Ye:Je)(e,t)):this.node()[e]}function Ze(e){return e.trim().split(/^|\s+/)}function Qe(e){return e.classList||new $e(e)}function $e(e){this._node=e,this._names=Ze(e.getAttribute(`class`)||``)}$e.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function et(e,t){for(var n=Qe(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function tt(e,t){for(var n=Qe(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function nt(e){return function(){et(this,e)}}function rt(e){return function(){tt(this,e)}}function it(e,t){return function(){(t.apply(this,arguments)?et:tt)(this,e)}}function at(e,t){var n=Ze(e+``);if(arguments.length<2){for(var r=Qe(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?it:t?nt:rt)(n,t))}function ot(){this.textContent=``}function st(e){return function(){this.textContent=e}}function ct(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function lt(e){return arguments.length?this.each(e==null?ot:(typeof e==`function`?ct:st)(e)):this.node().textContent}function ut(){this.innerHTML=``}function dt(e){return function(){this.innerHTML=e}}function ft(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function pt(e){return arguments.length?this.each(e==null?ut:(typeof e==`function`?ft:dt)(e)):this.node().innerHTML}function mt(){this.nextSibling&&this.parentNode.appendChild(this)}function ht(){return this.each(mt)}function gt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function _t(){return this.each(gt)}function vt(e){var t=typeof e==`function`?e:b(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function yt(){return null}function bt(e,t){var n=typeof e==`function`?e:b(e),r=t==null?yt:typeof t==`function`?t:x(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function xt(){var e=this.parentNode;e&&e.removeChild(this)}function St(){return this.each(xt)}function Ct(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function wt(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Tt(e){return this.select(e?wt:Ct)}function Et(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function Dt(e){return function(t){e.call(this,t,this.__data__)}}function Ot(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function kt(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function At(e,t,n){return function(){var r=this.__on,i,a=Dt(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function jt(e,t,n){var r=Ot(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?At:kt,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function Mt(e,t,n){var r=He(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Nt(e,t){return function(){return Mt(this,e,t)}}function Pt(e,t){return function(){return Mt(this,e,t.apply(this,arguments))}}function Ft(e,t){return this.each((typeof t==`function`?Pt:Nt)(e,t))}function*It(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var Lt=[null];function D(e,t){this._groups=e,this._parents=t}function O(){return new D([[document.documentElement]],Lt)}function Rt(){return this}D.prototype=O.prototype={constructor:D,select:S,selectAll:ne,selectChild:ce,selectChildren:fe,filter:pe,data:xe,enter:he,exit:Ce,join:we,merge:Te,selection:Rt,order:Ee,sort:De,call:ke,nodes:Ae,node:je,size:Me,empty:Ne,each:Pe,attr:Ve,style:Ke,property:Xe,classed:at,text:lt,html:pt,raise:ht,lower:_t,append:vt,insert:bt,remove:St,clone:Tt,datum:Et,on:jt,dispatch:Ft,[Symbol.iterator]:It};function zt(e){return typeof e==`string`?new D([[document.querySelector(e)]],[document.documentElement]):new D([[e]],Lt)}function Bt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Vt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function k(){}var A=.7,j=1/A,M=`\\s*([+-]?\\d+)\\s*`,N=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,P=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,Ht=/^#([0-9a-f]{3,8})$/,Ut=RegExp(`^rgb\\(${M},${M},${M}\\)$`),Wt=RegExp(`^rgb\\(${P},${P},${P}\\)$`),Gt=RegExp(`^rgba\\(${M},${M},${M},${N}\\)$`),Kt=RegExp(`^rgba\\(${P},${P},${P},${N}\\)$`),qt=RegExp(`^hsl\\(${N},${P},${P}\\)$`),Jt=RegExp(`^hsla\\(${N},${P},${P},${N}\\)$`),Yt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Bt(k,F,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Xt,formatHex:Xt,formatHex8:Zt,formatHsl:Qt,formatRgb:$t,toString:$t});function Xt(){return this.rgb().formatHex()}function Zt(){return this.rgb().formatHex8()}function Qt(){return un(this).formatHsl()}function $t(){return this.rgb().formatRgb()}function F(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=Ht.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?en(t):n===3?new I(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?tn(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?tn(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Ut.exec(e))?new I(t[1],t[2],t[3],1):(t=Wt.exec(e))?new I(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Gt.exec(e))?tn(t[1],t[2],t[3],t[4]):(t=Kt.exec(e))?tn(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=qt.exec(e))?ln(t[1],t[2]/100,t[3]/100,1):(t=Jt.exec(e))?ln(t[1],t[2]/100,t[3]/100,t[4]):Yt.hasOwnProperty(e)?en(Yt[e]):e===`transparent`?new I(NaN,NaN,NaN,0):null}function en(e){return new I(e>>16&255,e>>8&255,e&255,1)}function tn(e,t,n,r){return r<=0&&(e=t=n=NaN),new I(e,t,n,r)}function nn(e){return e instanceof k||(e=F(e)),e?(e=e.rgb(),new I(e.r,e.g,e.b,e.opacity)):new I}function rn(e,t,n,r){return arguments.length===1?nn(e):new I(e,t,n,r??1)}function I(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Bt(I,rn,Vt(k,{brighter(e){return e=e==null?j:j**+e,new I(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?A:A**+e,new I(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new I(L(this.r),L(this.g),L(this.b),cn(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:an,formatHex:an,formatHex8:on,formatRgb:sn,toString:sn}));function an(){return`#${R(this.r)}${R(this.g)}${R(this.b)}`}function on(){return`#${R(this.r)}${R(this.g)}${R(this.b)}${R((isNaN(this.opacity)?1:this.opacity)*255)}`}function sn(){let e=cn(this.opacity);return`${e===1?`rgb(`:`rgba(`}${L(this.r)}, ${L(this.g)}, ${L(this.b)}${e===1?`)`:`, ${e})`}`}function cn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function L(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function R(e){return e=L(e),(e<16?`0`:``)+e.toString(16)}function ln(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new z(e,t,n,r)}function un(e){if(e instanceof z)return new z(e.h,e.s,e.l,e.opacity);if(e instanceof k||(e=F(e)),!e)return new z;if(e instanceof z)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new z(o,s,c,e.opacity)}function dn(e,t,n,r){return arguments.length===1?un(e):new z(e,t,n,r??1)}function z(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Bt(z,dn,Vt(k,{brighter(e){return e=e==null?j:j**+e,new z(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?A:A**+e,new z(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new I(mn(e>=240?e-240:e+120,i,r),mn(e,i,r),mn(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new z(fn(this.h),pn(this.s),pn(this.l),cn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=cn(this.opacity);return`${e===1?`hsl(`:`hsla(`}${fn(this.h)}, ${pn(this.s)*100}%, ${pn(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function fn(e){return e=(e||0)%360,e<0?e+360:e}function pn(e){return Math.max(0,Math.min(1,e||0))}function mn(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var B=e=>()=>e;function hn(e,t){return function(n){return e+n*t}}function gn(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function _n(e,t){var n=t-e;return n?hn(e,n>180||n<-180?n-360*Math.round(n/360):n):B(isNaN(e)?t:e)}function vn(e){return(e=+e)==1?yn:function(t,n){return n-t?gn(t,n,e):B(isNaN(t)?n:t)}}function yn(e,t){var n=t-e;return n?hn(e,n):B(isNaN(e)?t:e)}var bn=(function e(t){var n=vn(t);function r(e,t){var r=n((e=rn(e)).r,(t=rn(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=yn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function V(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var xn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Sn=new RegExp(xn.source,`g`);function Cn(e){return function(){return e}}function wn(e){return function(t){return e(t)+``}}function Tn(e,t){var n=xn.lastIndex=Sn.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=xn.exec(e))&&(i=Sn.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:V(r,i)})),n=Sn.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?wn(c[0].x):Cn(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}var En=180/Math.PI,Dn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function On(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*En,skewX:Math.atan(c)*En,scaleX:o,scaleY:s}}var kn;function An(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?Dn:On(t.a,t.b,t.c,t.d,t.e,t.f)}function jn(e){return e==null||(kn||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),kn.setAttribute(`transform`,e),!(e=kn.transform.baseVal.consolidate()))?Dn:(e=e.matrix,On(e.a,e.b,e.c,e.d,e.e,e.f))}function Mn(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:V(e,i)},{i:c-2,x:V(r,a)})}else (i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:V(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:V(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:V(e,n)},{i:s-2,x:V(t,r)})}else (n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var Nn=Mn(An,`px, `,`px)`,`deg)`),Pn=Mn(jn,`, `,`)`,`)`),H=0,U=0,Fn=0,In=1e3,W,G,Ln=0,K=0,Rn=0,q=typeof performance==`object`&&performance.now?performance:Date,zn=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Bn(){return K||=(zn(Vn),q.now()+Rn)}function Vn(){K=0}function Hn(){this._call=this._time=this._next=null}Hn.prototype=Un.prototype={constructor:Hn,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?Bn():+n)+(t==null?0:+t),!this._next&&G!==this&&(G?G._next=this:W=this,G=this),this._call=e,this._time=n,Jn()},stop:function(){this._call&&(this._call=null,this._time=1/0,Jn())}};function Un(e,t,n){var r=new Hn;return r.restart(e,t,n),r}function Wn(){Bn(),++H;for(var e=W,t;e;)(t=K-e._time)>=0&&e._call.call(void 0,t),e=e._next;--H}function Gn(){K=(Ln=q.now())+Rn,H=U=0;try{Wn()}finally{H=0,qn(),K=0}}function Kn(){var e=q.now(),t=e-Ln;t>In&&(Rn-=t,Ln=e)}function qn(){for(var e,t=W,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:W=n);G=e,Jn(r)}function Jn(e){H||(U&&=clearTimeout(U),e-K>24?(e<1/0&&(U=setTimeout(Gn,e-q.now()-Rn)),Fn&&=clearInterval(Fn)):(Fn||=(Ln=q.now(),setInterval(Kn,In)),H=1,zn(Gn)))}function Yn(e,t,n){var r=new Hn;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var Xn=d(`start`,`end`,`cancel`,`interrupt`),Zn=[];function J(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;$n(e,n,{name:t,index:r,group:i,on:Xn,tween:Zn,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function Qn(e,t){var n=X(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function Y(e,t){var n=X(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function X(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function $n(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Un(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return Yn(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(Yn(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function er(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function tr(e){return this.each(function(){er(this,e)})}function nr(e,t){var n,r;return function(){var i=Y(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function rr(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=Y(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function ir(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=X(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?nr:rr)(n,e,t))}function ar(e,t,n){var r=e._id;return e.each(function(){var e=Y(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return X(e,r).value[t]}}function or(e,t){var n;return(typeof t==`number`?V:t instanceof F?bn:(n=F(t))?(t=n,bn):Tn)(e,t)}function sr(e){return function(){this.removeAttribute(e)}}function cr(e){return function(){this.removeAttributeNS(e.space,e.local)}}function lr(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function ur(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function dr(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function fr(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function pr(e,t){var n=_(e),r=n===`transform`?Pn:or;return this.attrTween(e,typeof t==`function`?(n.local?fr:dr)(n,r,ar(this,`attr.`+e,t)):t==null?(n.local?cr:sr)(n):(n.local?ur:lr)(n,r,t))}function mr(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function hr(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function gr(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&hr(e,i)),n}return i._value=t,i}function _r(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&mr(e,i)),n}return i._value=t,i}function vr(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=_(e);return this.tween(n,(r.local?gr:_r)(r,t))}function yr(e,t){return function(){Qn(this,e).delay=+t.apply(this,arguments)}}function br(e,t){return t=+t,function(){Qn(this,e).delay=t}}function xr(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?yr:br)(t,e)):X(this.node(),t).delay}function Sr(e,t){return function(){Y(this,e).duration=+t.apply(this,arguments)}}function Cr(e,t){return t=+t,function(){Y(this,e).duration=t}}function wr(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Sr:Cr)(t,e)):X(this.node(),t).duration}function Tr(e,t){if(typeof t!=`function`)throw Error();return function(){Y(this,e).ease=t}}function Er(e){var t=this._id;return arguments.length?this.each(Tr(t,e)):X(this.node(),t).ease}function Dr(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();Y(this,e).ease=n}}function Or(e){if(typeof e!=`function`)throw Error();return this.each(Dr(this._id,e))}function kr(e){typeof e!=`function`&&(e=re(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new Z(r,this._parents,this._name,this._id)}function Ar(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new Z(o,this._parents,this._name,this._id)}function jr(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function Mr(e,t,n){var r,i,a=jr(t)?Qn:Y;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function Nr(e,t){var n=this._id;return arguments.length<2?X(this.node(),n).on.on(e):this.each(Mr(n,e,t))}function Pr(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Fr(){return this.on(`end.remove`,Pr(this._id))}function Ir(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=x(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,J(l[f],t,n,f,l,X(u,n)));return new Z(a,this._parents,t,n)}function Lr(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=T(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=X(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&J(p,t,n,h,f,m);a.push(f),o.push(u)}return new Z(a,o,t,n)}var Rr=O.prototype.constructor;function zr(){return new Rr(this._groups,this._parents)}function Br(e,t){var n,r,i;return function(){var a=E(this,e),o=(this.style.removeProperty(e),E(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function Vr(e){return function(){this.style.removeProperty(e)}}function Hr(e,t,n){var r,i=n+``,a;return function(){var o=E(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function Ur(e,t,n){var r,i,a;return function(){var o=E(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),E(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function Wr(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=Y(this,e),l=c.on,u=c.value[a]==null?s||=Vr(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function Gr(e,t,n){var r=(e+=``)==`transform`?Nn:or;return t==null?this.styleTween(e,Br(e,r)).on(`end.style.`+e,Vr(e)):typeof t==`function`?this.styleTween(e,Ur(e,r,ar(this,`style.`+e,t))).each(Wr(this._id,e)):this.styleTween(e,Hr(e,r,t),n).on(`end.style.`+e,null)}function Kr(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function qr(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&Kr(e,a,n)),r}return a._value=t,a}function Jr(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,qr(e,t,n??``))}function Yr(e){return function(){this.textContent=e}}function Xr(e){return function(){var t=e(this);this.textContent=t??``}}function Zr(e){return this.tween(`text`,typeof e==`function`?Xr(ar(this,`text`,e)):Yr(e==null?``:e+``))}function Qr(e){return function(t){this.textContent=e.call(this,t)}}function $r(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Qr(r)),t}return r._value=e,r}function ei(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,$r(e))}function ti(){for(var e=this._name,t=this._id,n=ai(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=X(c,t);J(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Z(r,this._parents,e,n)}function ni(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=Y(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var ri=0;function Z(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function ii(e){return O().transition(e)}function ai(){return++ri}var Q=O.prototype;Z.prototype=ii.prototype={constructor:Z,select:Ir,selectAll:Lr,selectChild:Q.selectChild,selectChildren:Q.selectChildren,filter:kr,merge:Ar,selection:zr,transition:ti,call:Q.call,nodes:Q.nodes,node:Q.node,size:Q.size,empty:Q.empty,each:Q.each,on:Nr,attr:pr,attrTween:vr,style:Gr,styleTween:Jr,text:Zr,textTween:ei,remove:Fr,tween:ir,delay:xr,duration:wr,ease:Er,easeVarying:Or,end:ni,[Symbol.iterator]:Q[Symbol.iterator]};function oi(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var si={time:null,delay:0,duration:250,ease:oi};function ci(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function li(e){var t,n;e instanceof Z?(t=e._id,e=e._name):(t=ai(),(n=si).time=Bn(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&J(c,e,t,l,o,n||ci(c,t));return new Z(r,this._parents,e,t)}O.prototype.interrupt=tr,O.prototype.transition=li;var{abs:ui,max:di,min:fi}=Math;[`w`,`e`].map(pi),[`n`,`s`].map(pi),[`n`,`w`,`e`,`s`,`nw`,`ne`,`sw`,`se`].map(pi);function pi(e){return{type:e}}function $(e,t,n){this.k=e,this.x=t,this.y=n}$.prototype={constructor:$,scale:function(e){return e===1?this:new $(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new $(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var mi=new $(1,0,0);hi.prototype=$.prototype;function hi(e){for(;!e.__zoom;)if(!(e=e.parentNode))return mi;return e.__zoom}Object.defineProperty(exports,"_",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return yn}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return Bt}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return Vt}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return _n}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return zt}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return bn}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return Tn}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return nn}}),Object.defineProperty(exports,"v",{enumerable:!0,get:function(){return t}});