@bkm016/basalt 0.1.24 → 0.1.25

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 (543) hide show
  1. package/{chunk-bdr1170y.js → chunk-2c6seev1.js} +1 -1
  2. package/{chunk-9y8v1vrt.js → chunk-4mwx4pet.js} +1 -1
  3. package/{chunk-4x7xnfw1.js → chunk-61e7nvw9.js} +1 -1
  4. package/{chunk-979mxkzt.js → chunk-93bcazsp.js} +1 -1
  5. package/{chunk-y16fqzad.js → chunk-9fccgczj.js} +1 -1
  6. package/{chunk-kh4yq4rd.js → chunk-ff293dj0.js} +1 -1
  7. package/{chunk-cte9wd9x.js → chunk-g23dnf4y.js} +1 -1
  8. package/{chunk-c4nxr37s.js → chunk-gwcstcqs.js} +4 -4
  9. package/{chunk-ma91f4qj.js → chunk-m839588n.js} +1 -1
  10. package/{chunk-0nxcbf6d.js → chunk-pjv9mppd.js} +109 -108
  11. package/{chunk-pcd14q8r.js → chunk-rkn6bven.js} +4 -4
  12. package/compiled.js +1 -1
  13. package/package.json +1 -1
  14. package/ui-test-worker.js +1 -1
  15. package/web/{chunk-ppccb30x.js → chunk-00wh99xz.js} +4 -4
  16. package/web/chunk-00wh99xz.js.br +0 -0
  17. package/web/chunk-00wh99xz.js.gz +0 -0
  18. package/web/{chunk-g7t1bvvx.js → chunk-0a1t2j8h.js} +1 -1
  19. package/web/chunk-0a1t2j8h.js.br +0 -0
  20. package/web/chunk-0a1t2j8h.js.gz +0 -0
  21. package/web/{chunk-59ybhv47.js → chunk-1ar2phwa.js} +1 -1
  22. package/web/chunk-1ar2phwa.js.br +0 -0
  23. package/web/chunk-1ar2phwa.js.gz +0 -0
  24. package/web/{chunk-hqtm67yw.js → chunk-1jfydncj.js} +2 -2
  25. package/web/chunk-1jfydncj.js.br +0 -0
  26. package/web/chunk-1jfydncj.js.gz +0 -0
  27. package/web/{chunk-qqtj88e0.js → chunk-1p1jtvrt.js} +1 -1
  28. package/web/chunk-1p1jtvrt.js.br +0 -0
  29. package/web/chunk-1p1jtvrt.js.gz +0 -0
  30. package/web/chunk-1x38r11w.js +1 -0
  31. package/web/chunk-1x38r11w.js.br +2 -0
  32. package/web/chunk-1x38r11w.js.gz +0 -0
  33. package/web/{chunk-bbyqcvdz.js → chunk-25rf3svt.js} +2 -2
  34. package/web/chunk-25rf3svt.js.br +0 -0
  35. package/web/chunk-25rf3svt.js.gz +0 -0
  36. package/web/chunk-2cfv55j2.js +1 -0
  37. package/web/chunk-2cfv55j2.js.br +0 -0
  38. package/web/chunk-2cfv55j2.js.gz +0 -0
  39. package/web/{chunk-bg2ps35t.js → chunk-2q37qdq2.js} +1 -1
  40. package/web/chunk-2q37qdq2.js.br +0 -0
  41. package/web/chunk-2q37qdq2.js.gz +0 -0
  42. package/web/{chunk-13x3xyyh.js → chunk-2yhmab75.js} +4 -4
  43. package/web/chunk-2yhmab75.js.br +0 -0
  44. package/web/chunk-2yhmab75.js.gz +0 -0
  45. package/web/{chunk-bvmvj35k.js → chunk-3at57qna.js} +1 -1
  46. package/web/chunk-3at57qna.js.br +0 -0
  47. package/web/chunk-3at57qna.js.gz +0 -0
  48. package/web/{chunk-nb3jk1wk.js → chunk-3z9kpkec.js} +1 -1
  49. package/web/chunk-3z9kpkec.js.br +0 -0
  50. package/web/chunk-3z9kpkec.js.gz +0 -0
  51. package/web/chunk-4ncnt1c2.js +2 -0
  52. package/web/chunk-4ncnt1c2.js.br +0 -0
  53. package/web/{chunk-k69ysa0v.js → chunk-4ncnt1c2.js.gz} +0 -0
  54. package/web/chunk-4vc07x6t.js +1 -0
  55. package/web/chunk-4vc07x6t.js.br +0 -0
  56. package/web/chunk-4vc07x6t.js.gz +0 -0
  57. package/web/{chunk-921qw2jf.js → chunk-4ytc5sth.js} +1 -1
  58. package/web/chunk-4ytc5sth.js.br +0 -0
  59. package/web/chunk-4ytc5sth.js.gz +0 -0
  60. package/web/{chunk-zs7c2db4.js → chunk-5c5h90k0.js} +1 -1
  61. package/web/chunk-5c5h90k0.js.br +0 -0
  62. package/web/chunk-5c5h90k0.js.gz +0 -0
  63. package/web/chunk-5zpn3n5a.js +1 -0
  64. package/web/chunk-5zpn3n5a.js.br +0 -0
  65. package/web/chunk-5zpn3n5a.js.gz +0 -0
  66. package/web/chunk-64k06g43.js +1 -0
  67. package/web/chunk-64k06g43.js.br +0 -0
  68. package/web/chunk-64k06g43.js.gz +0 -0
  69. package/web/{chunk-bh0a254y.js → chunk-6pbrtp4e.js} +4 -4
  70. package/web/chunk-6pbrtp4e.js.br +0 -0
  71. package/web/chunk-6pbrtp4e.js.gz +0 -0
  72. package/web/chunk-6sehssym.js +1 -0
  73. package/web/chunk-6sehssym.js.br +2 -0
  74. package/web/chunk-6sehssym.js.gz +0 -0
  75. package/web/chunk-7hxj251q.js +1 -0
  76. package/web/chunk-7hxj251q.js.br +0 -0
  77. package/web/chunk-7hxj251q.js.gz +0 -0
  78. package/web/{chunk-abvtsz6z.js → chunk-7qcmg5ns.js} +1 -1
  79. package/web/chunk-7qcmg5ns.js.br +0 -0
  80. package/web/chunk-7qcmg5ns.js.gz +0 -0
  81. package/web/{chunk-172gywq4.js → chunk-82j6713x.js} +6 -6
  82. package/web/chunk-82j6713x.js.br +0 -0
  83. package/web/chunk-82j6713x.js.gz +0 -0
  84. package/web/{chunk-kbvzxsz7.js → chunk-9vexd52p.js} +1 -1
  85. package/web/chunk-9vexd52p.js.br +0 -0
  86. package/web/chunk-9vexd52p.js.gz +0 -0
  87. package/web/{chunk-crhbhsrh.js → chunk-ajj3nc80.js} +1 -1
  88. package/web/chunk-ajj3nc80.js.br +0 -0
  89. package/web/chunk-ajj3nc80.js.gz +0 -0
  90. package/web/chunk-amrkb4dd.js +1 -0
  91. package/web/chunk-amrkb4dd.js.br +0 -0
  92. package/web/chunk-amrkb4dd.js.gz +0 -0
  93. package/web/{chunk-w563538j.js → chunk-b7d5k9sp.js} +35 -35
  94. package/web/chunk-b7d5k9sp.js.br +0 -0
  95. package/web/chunk-b7d5k9sp.js.gz +0 -0
  96. package/web/chunk-bavn0z5d.js +1 -0
  97. package/web/chunk-bavn0z5d.js.br +0 -0
  98. package/web/chunk-bavn0z5d.js.gz +0 -0
  99. package/web/{chunk-yp75a6yh.js → chunk-bjw74xvy.js} +1 -1
  100. package/web/chunk-bjw74xvy.js.br +0 -0
  101. package/web/chunk-bjw74xvy.js.gz +0 -0
  102. package/web/chunk-bn68ks4x.js +1 -0
  103. package/web/chunk-bn68ks4x.js.br +0 -0
  104. package/web/chunk-bn68ks4x.js.gz +0 -0
  105. package/web/chunk-c59d2j14.js +8 -0
  106. package/web/chunk-c59d2j14.js.br +0 -0
  107. package/web/chunk-c59d2j14.js.gz +0 -0
  108. package/web/{chunk-634vc92s.js → chunk-cfz9ftze.js} +3 -3
  109. package/web/chunk-cfz9ftze.js.br +0 -0
  110. package/web/chunk-cfz9ftze.js.gz +0 -0
  111. package/web/{chunk-zsae1tn8.js → chunk-chq476ch.js} +4 -4
  112. package/web/chunk-chq476ch.js.br +0 -0
  113. package/web/chunk-chq476ch.js.gz +0 -0
  114. package/web/{chunk-5zkw2kkb.js → chunk-d0ey112q.js} +5 -5
  115. package/web/chunk-d0ey112q.js.br +0 -0
  116. package/web/chunk-d0ey112q.js.gz +0 -0
  117. package/web/{chunk-h1cv1kke.js → chunk-d71z7s5r.js} +1 -1
  118. package/web/chunk-d71z7s5r.js.br +0 -0
  119. package/web/chunk-d71z7s5r.js.gz +0 -0
  120. package/web/{chunk-8de69eyx.js → chunk-dembnhph.js} +1 -1
  121. package/web/chunk-dembnhph.js.br +0 -0
  122. package/web/chunk-dembnhph.js.gz +0 -0
  123. package/web/{chunk-m5nt857c.js → chunk-dfq4w8mf.js} +1 -1
  124. package/web/chunk-dfq4w8mf.js.br +0 -0
  125. package/web/chunk-dfq4w8mf.js.gz +0 -0
  126. package/web/{chunk-bbs6yq60.js → chunk-dwdxczxc.js} +3 -3
  127. package/web/chunk-dwdxczxc.js.br +0 -0
  128. package/web/chunk-dwdxczxc.js.gz +0 -0
  129. package/web/chunk-e3b2krd7.js +1 -0
  130. package/web/chunk-e3b2krd7.js.br +0 -0
  131. package/web/chunk-e3b2krd7.js.gz +0 -0
  132. package/web/{chunk-91s1ns6b.js → chunk-e4wbkc1x.js} +11 -11
  133. package/web/chunk-e4wbkc1x.js.br +0 -0
  134. package/web/chunk-e4wbkc1x.js.gz +0 -0
  135. package/web/{chunk-ygzgrjj7.js → chunk-f2qrf0he.js} +1 -1
  136. package/web/chunk-f2qrf0he.js.br +0 -0
  137. package/web/chunk-f2qrf0he.js.gz +0 -0
  138. package/web/{chunk-ca8hnmmv.js → chunk-f88vhwan.js} +5 -5
  139. package/web/chunk-f88vhwan.js.br +0 -0
  140. package/web/chunk-f88vhwan.js.gz +0 -0
  141. package/web/{chunk-yg9a23mv.js → chunk-fpp6jtb4.js} +1 -1
  142. package/web/chunk-fpp6jtb4.js.br +0 -0
  143. package/web/chunk-fpp6jtb4.js.gz +0 -0
  144. package/web/chunk-ft62hfnt.js +1 -0
  145. package/web/chunk-ft62hfnt.js.br +0 -0
  146. package/web/chunk-ft62hfnt.js.gz +0 -0
  147. package/web/{chunk-176tsg6e.js → chunk-g3fahpjw.js} +2 -2
  148. package/web/chunk-g3fahpjw.js.br +0 -0
  149. package/web/chunk-g3fahpjw.js.gz +0 -0
  150. package/web/{chunk-xw8tzrmm.js → chunk-g5b4wjwp.js} +94 -94
  151. package/web/chunk-g5b4wjwp.js.br +0 -0
  152. package/web/chunk-g5b4wjwp.js.gz +0 -0
  153. package/web/chunk-ga3tn73a.js +1 -0
  154. package/web/chunk-ga3tn73a.js.br +0 -0
  155. package/web/chunk-ga3tn73a.js.gz +0 -0
  156. package/web/{chunk-4cbcqcd2.js → chunk-gf4vtpw2.js} +1 -1
  157. package/web/chunk-gf4vtpw2.js.br +0 -0
  158. package/web/chunk-gf4vtpw2.js.gz +0 -0
  159. package/web/{chunk-n9npqkxf.js → chunk-ghxfjwhq.js} +1 -1
  160. package/web/chunk-ghxfjwhq.js.br +0 -0
  161. package/web/chunk-ghxfjwhq.js.gz +0 -0
  162. package/web/{chunk-hsgtzrkh.js → chunk-gxqs7zmy.js} +1 -1
  163. package/web/chunk-gxqs7zmy.js.br +0 -0
  164. package/web/chunk-gxqs7zmy.js.gz +0 -0
  165. package/web/{chunk-9k9p5dat.js → chunk-jpdp0xkd.js} +1 -1
  166. package/web/chunk-jpdp0xkd.js.br +0 -0
  167. package/web/chunk-jpdp0xkd.js.gz +0 -0
  168. package/web/{chunk-kn9bc5z2.js → chunk-jtzbk251.js} +2 -2
  169. package/web/chunk-jtzbk251.js.br +0 -0
  170. package/web/chunk-jtzbk251.js.gz +0 -0
  171. package/web/{chunk-ac8vmj54.js → chunk-kc6k0ect.js} +1 -1
  172. package/web/chunk-kc6k0ect.js.br +0 -0
  173. package/web/chunk-kc6k0ect.js.gz +0 -0
  174. package/web/{chunk-gy2y4zfa.js → chunk-kk7k8xc8.js} +5 -5
  175. package/web/chunk-kk7k8xc8.js.br +0 -0
  176. package/web/chunk-kk7k8xc8.js.gz +0 -0
  177. package/web/{chunk-6n3cwe1h.js → chunk-kmpyntam.js} +19 -19
  178. package/web/chunk-kmpyntam.js.br +0 -0
  179. package/web/chunk-kmpyntam.js.gz +0 -0
  180. package/web/{chunk-q17rem99.js → chunk-mejpj22t.js} +5 -5
  181. package/web/chunk-mejpj22t.js.br +0 -0
  182. package/web/chunk-mejpj22t.js.gz +0 -0
  183. package/web/{chunk-sapy54hm.js → chunk-mm10pm0x.js} +3 -3
  184. package/web/chunk-mm10pm0x.js.br +0 -0
  185. package/web/chunk-mm10pm0x.js.gz +0 -0
  186. package/web/{chunk-r4cr8rvt.js → chunk-mpve4748.js} +1 -1
  187. package/web/chunk-mpve4748.js.br +0 -0
  188. package/web/chunk-mpve4748.js.gz +0 -0
  189. package/web/chunk-ms022qq9.js +1 -0
  190. package/web/chunk-ms022qq9.js.br +2 -0
  191. package/web/chunk-ms022qq9.js.gz +0 -0
  192. package/web/{chunk-xv1d350x.js → chunk-mxf122px.js} +1 -1
  193. package/web/chunk-mxf122px.js.br +0 -0
  194. package/web/chunk-mxf122px.js.gz +0 -0
  195. package/web/chunk-mzv41kv9.js +1 -0
  196. package/web/chunk-mzv41kv9.js.br +2 -0
  197. package/web/chunk-mzv41kv9.js.gz +0 -0
  198. package/web/{chunk-2fms67zg.js → chunk-mzyg8zga.js} +1 -1
  199. package/web/chunk-mzyg8zga.js.br +0 -0
  200. package/web/chunk-mzyg8zga.js.gz +0 -0
  201. package/web/{chunk-c2eqwepm.js → chunk-n8j9jdsh.js} +1 -1
  202. package/web/chunk-n8j9jdsh.js.br +0 -0
  203. package/web/chunk-n8j9jdsh.js.gz +0 -0
  204. package/web/{chunk-fp7q643n.js → chunk-n8ts6ra2.js} +3 -3
  205. package/web/chunk-n8ts6ra2.js.br +0 -0
  206. package/web/chunk-n8ts6ra2.js.gz +0 -0
  207. package/web/chunk-nefchfa1.js +1 -0
  208. package/web/chunk-nefchfa1.js.br +0 -0
  209. package/web/chunk-nefchfa1.js.gz +0 -0
  210. package/web/chunk-ng0bsm6n.js +1 -0
  211. package/web/chunk-ng0bsm6n.js.br +0 -0
  212. package/web/chunk-ng0bsm6n.js.gz +0 -0
  213. package/web/{chunk-ced8pdbc.js → chunk-nz1mm18x.js} +1 -1
  214. package/web/chunk-nz1mm18x.js.br +0 -0
  215. package/web/chunk-nz1mm18x.js.gz +0 -0
  216. package/web/{chunk-mbaw66b5.js → chunk-pdxqp4rh.js} +1 -1
  217. package/web/chunk-pdxqp4rh.js.br +0 -0
  218. package/web/chunk-pdxqp4rh.js.gz +0 -0
  219. package/web/{chunk-g1penf6y.js → chunk-pe2zvyjt.js} +1 -1
  220. package/web/chunk-pe2zvyjt.js.br +0 -0
  221. package/web/chunk-pe2zvyjt.js.gz +0 -0
  222. package/web/{chunk-t7vwsg9r.js → chunk-q8ve5wqt.js} +2 -2
  223. package/web/chunk-q8ve5wqt.js.br +0 -0
  224. package/web/chunk-q8ve5wqt.js.gz +0 -0
  225. package/web/{chunk-ny87aq2j.js → chunk-qh93t9tv.js} +1 -1
  226. package/web/chunk-qh93t9tv.js.br +0 -0
  227. package/web/chunk-qh93t9tv.js.gz +0 -0
  228. package/web/{chunk-3vdw9nn7.js → chunk-qqewmk3y.js} +1 -1
  229. package/web/chunk-qqewmk3y.js.br +0 -0
  230. package/web/chunk-qqewmk3y.js.gz +0 -0
  231. package/web/{chunk-n59nyqcr.js → chunk-qzb06me8.js} +34 -34
  232. package/web/chunk-qzb06me8.js.br +0 -0
  233. package/web/chunk-qzb06me8.js.gz +0 -0
  234. package/web/{chunk-tt7j0m6m.js → chunk-r2zernvz.js} +5 -5
  235. package/web/chunk-r2zernvz.js.br +0 -0
  236. package/web/chunk-r2zernvz.js.gz +0 -0
  237. package/web/{chunk-qdq6wvgt.js → chunk-r8ykja8v.js} +3 -3
  238. package/web/chunk-r8ykja8v.js.br +0 -0
  239. package/web/chunk-r8ykja8v.js.gz +0 -0
  240. package/web/{chunk-qhr6hegh.js → chunk-r9b7eh2j.js} +1 -1
  241. package/web/chunk-r9b7eh2j.js.br +0 -0
  242. package/web/chunk-r9b7eh2j.js.gz +0 -0
  243. package/web/{chunk-eq28qb33.js → chunk-ry1wp3v8.js} +2 -2
  244. package/web/chunk-ry1wp3v8.js.br +0 -0
  245. package/web/chunk-ry1wp3v8.js.gz +0 -0
  246. package/web/chunk-s2bfc2vk.js +1 -0
  247. package/web/chunk-s2bfc2vk.js.br +0 -0
  248. package/web/chunk-s2bfc2vk.js.gz +0 -0
  249. package/web/{chunk-2psxv4dk.js → chunk-s4c6nzj9.js} +5 -5
  250. package/web/chunk-s4c6nzj9.js.br +0 -0
  251. package/web/chunk-s4c6nzj9.js.gz +0 -0
  252. package/web/{chunk-b9fqnzqd.js → chunk-ss23nnmc.js} +4 -4
  253. package/web/chunk-ss23nnmc.js.br +0 -0
  254. package/web/chunk-ss23nnmc.js.gz +0 -0
  255. package/web/{chunk-b2t33c3t.js → chunk-sxmv80th.js} +1 -1
  256. package/web/chunk-sxmv80th.js.br +0 -0
  257. package/web/chunk-sxmv80th.js.gz +0 -0
  258. package/web/{chunk-3sszg3gr.js → chunk-sy2cdka3.js} +1 -1
  259. package/web/chunk-sy2cdka3.js.br +0 -0
  260. package/web/chunk-sy2cdka3.js.gz +0 -0
  261. package/web/{chunk-vgpyff03.js → chunk-sysebfkg.js} +3 -3
  262. package/web/chunk-sysebfkg.js.br +0 -0
  263. package/web/chunk-sysebfkg.js.gz +0 -0
  264. package/web/{chunk-vb3sy3hv.js → chunk-t3620hrb.js} +2 -2
  265. package/web/chunk-t3620hrb.js.br +0 -0
  266. package/web/chunk-t3620hrb.js.gz +0 -0
  267. package/web/{chunk-phr7yps3.js → chunk-t5srz1hs.js} +2 -2
  268. package/web/chunk-t5srz1hs.js.br +0 -0
  269. package/web/chunk-t5srz1hs.js.gz +0 -0
  270. package/web/{chunk-sarkb4p9.js → chunk-v25k7n3r.js} +1 -1
  271. package/web/chunk-v25k7n3r.js.br +0 -0
  272. package/web/chunk-v25k7n3r.js.gz +0 -0
  273. package/web/{chunk-e3d6kvwm.js → chunk-vf0p4ayw.js} +1 -1
  274. package/web/chunk-vf0p4ayw.js.br +0 -0
  275. package/web/chunk-vf0p4ayw.js.gz +0 -0
  276. package/web/chunk-vr6n4pvt.js +1 -0
  277. package/web/chunk-vr6n4pvt.js.br +0 -0
  278. package/web/chunk-vr6n4pvt.js.gz +0 -0
  279. package/web/{chunk-713ygtrs.js → chunk-vx9g94x2.js} +4 -4
  280. package/web/chunk-vx9g94x2.js.br +0 -0
  281. package/web/chunk-vx9g94x2.js.gz +0 -0
  282. package/web/{chunk-cj0cmvbm.js → chunk-w5v80bmk.js} +4 -4
  283. package/web/chunk-w5v80bmk.js.br +0 -0
  284. package/web/chunk-w5v80bmk.js.gz +0 -0
  285. package/web/{chunk-y5zd05mz.js → chunk-wj0ck0pa.js} +1 -1
  286. package/web/chunk-wj0ck0pa.js.br +0 -0
  287. package/web/chunk-wj0ck0pa.js.gz +0 -0
  288. package/web/chunk-wjzdpyhs.css +1 -0
  289. package/web/chunk-wjzdpyhs.css.br +0 -0
  290. package/web/chunk-wjzdpyhs.css.gz +0 -0
  291. package/web/{chunk-17d30546.js → chunk-wmt8d7zv.js} +5 -5
  292. package/web/chunk-wmt8d7zv.js.br +0 -0
  293. package/web/chunk-wmt8d7zv.js.gz +0 -0
  294. package/web/{chunk-ksr360js.js → chunk-wqf0qjbv.js} +2 -2
  295. package/web/chunk-wqf0qjbv.js.br +0 -0
  296. package/web/chunk-wqf0qjbv.js.gz +0 -0
  297. package/web/{chunk-2z4zhtw4.js → chunk-y5f7gy03.js} +2 -2
  298. package/web/chunk-y5f7gy03.js.br +0 -0
  299. package/web/chunk-y5f7gy03.js.gz +0 -0
  300. package/web/{chunk-96n0nem7.js → chunk-yg78fas7.js} +1 -1
  301. package/web/chunk-yg78fas7.js.br +0 -0
  302. package/web/chunk-yg78fas7.js.gz +0 -0
  303. package/web/{chunk-k8x1xbf6.js → chunk-yvkbc3s5.js} +1 -1
  304. package/web/chunk-yvkbc3s5.js.br +0 -0
  305. package/web/chunk-yvkbc3s5.js.gz +0 -0
  306. package/web/{chunk-wrqazg2v.js → chunk-z9nj64n7.js} +1 -1
  307. package/web/chunk-z9nj64n7.js.br +0 -0
  308. package/web/chunk-z9nj64n7.js.gz +0 -0
  309. package/web/{chunk-ms7cscs9.js → chunk-zc0e01j4.js} +1 -1
  310. package/web/chunk-zc0e01j4.js.br +0 -0
  311. package/web/chunk-zc0e01j4.js.gz +0 -0
  312. package/web/{chunk-290wy4yk.js → chunk-zj9s9w76.js} +1 -1
  313. package/web/chunk-zj9s9w76.js.br +0 -0
  314. package/web/chunk-zj9s9w76.js.gz +0 -0
  315. package/web/{chunk-085ttz7c.js → chunk-znwpavn5.js} +4 -4
  316. package/web/chunk-znwpavn5.js.br +0 -0
  317. package/web/chunk-znwpavn5.js.gz +0 -0
  318. package/web/index.html +1 -1
  319. package/web/index.html.br +0 -0
  320. package/web/index.html.gz +0 -0
  321. package/web/chunk-085ttz7c.js.br +0 -0
  322. package/web/chunk-085ttz7c.js.gz +0 -0
  323. package/web/chunk-13x3xyyh.js.br +0 -0
  324. package/web/chunk-13x3xyyh.js.gz +0 -0
  325. package/web/chunk-172gywq4.js.br +0 -0
  326. package/web/chunk-172gywq4.js.gz +0 -0
  327. package/web/chunk-176tsg6e.js.br +0 -0
  328. package/web/chunk-176tsg6e.js.gz +0 -0
  329. package/web/chunk-17d30546.js.br +0 -0
  330. package/web/chunk-17d30546.js.gz +0 -0
  331. package/web/chunk-1k6jx4hs.js +0 -1
  332. package/web/chunk-1k6jx4hs.js.br +0 -0
  333. package/web/chunk-1k6jx4hs.js.gz +0 -0
  334. package/web/chunk-1kts05s6.css +0 -1
  335. package/web/chunk-1kts05s6.css.br +0 -0
  336. package/web/chunk-1kts05s6.css.gz +0 -0
  337. package/web/chunk-1z0x1j6q.js +0 -1
  338. package/web/chunk-1z0x1j6q.js.br +0 -0
  339. package/web/chunk-1z0x1j6q.js.gz +0 -0
  340. package/web/chunk-290wy4yk.js.br +0 -0
  341. package/web/chunk-290wy4yk.js.gz +0 -0
  342. package/web/chunk-2cdw1299.js +0 -1
  343. package/web/chunk-2cdw1299.js.br +0 -0
  344. package/web/chunk-2cdw1299.js.gz +0 -0
  345. package/web/chunk-2fms67zg.js.br +0 -0
  346. package/web/chunk-2fms67zg.js.gz +0 -0
  347. package/web/chunk-2psxv4dk.js.br +0 -0
  348. package/web/chunk-2psxv4dk.js.gz +0 -0
  349. package/web/chunk-2z4zhtw4.js.br +0 -0
  350. package/web/chunk-2z4zhtw4.js.gz +0 -0
  351. package/web/chunk-3sszg3gr.js.br +0 -0
  352. package/web/chunk-3sszg3gr.js.gz +0 -0
  353. package/web/chunk-3vdw9nn7.js.br +0 -0
  354. package/web/chunk-3vdw9nn7.js.gz +0 -0
  355. package/web/chunk-4cbcqcd2.js.br +0 -0
  356. package/web/chunk-4cbcqcd2.js.gz +0 -0
  357. package/web/chunk-4v6n6b36.js +0 -1
  358. package/web/chunk-4v6n6b36.js.br +0 -0
  359. package/web/chunk-4v6n6b36.js.gz +0 -0
  360. package/web/chunk-59ybhv47.js.br +0 -0
  361. package/web/chunk-59ybhv47.js.gz +0 -0
  362. package/web/chunk-5zkw2kkb.js.br +0 -0
  363. package/web/chunk-5zkw2kkb.js.gz +0 -0
  364. package/web/chunk-634vc92s.js.br +0 -0
  365. package/web/chunk-634vc92s.js.gz +0 -0
  366. package/web/chunk-6n3cwe1h.js.br +0 -0
  367. package/web/chunk-6n3cwe1h.js.gz +0 -0
  368. package/web/chunk-6zr2j7xj.js +0 -1
  369. package/web/chunk-6zr2j7xj.js.br +0 -0
  370. package/web/chunk-6zr2j7xj.js.gz +0 -0
  371. package/web/chunk-713ygtrs.js.br +0 -0
  372. package/web/chunk-713ygtrs.js.gz +0 -0
  373. package/web/chunk-7m4gmjvp.js +0 -1
  374. package/web/chunk-7m4gmjvp.js.br +0 -0
  375. package/web/chunk-7m4gmjvp.js.gz +0 -0
  376. package/web/chunk-7x90pq42.js +0 -1
  377. package/web/chunk-7x90pq42.js.br +0 -0
  378. package/web/chunk-7x90pq42.js.gz +0 -0
  379. package/web/chunk-8de69eyx.js.br +0 -0
  380. package/web/chunk-8de69eyx.js.gz +0 -0
  381. package/web/chunk-91s1ns6b.js.br +0 -0
  382. package/web/chunk-91s1ns6b.js.gz +0 -0
  383. package/web/chunk-921qw2jf.js.br +0 -0
  384. package/web/chunk-921qw2jf.js.gz +0 -0
  385. package/web/chunk-96n0nem7.js.br +0 -0
  386. package/web/chunk-96n0nem7.js.gz +0 -0
  387. package/web/chunk-9k9p5dat.js.br +0 -0
  388. package/web/chunk-9k9p5dat.js.gz +0 -0
  389. package/web/chunk-a529550j.js +0 -1
  390. package/web/chunk-a529550j.js.br +0 -0
  391. package/web/chunk-a529550j.js.gz +0 -0
  392. package/web/chunk-abvtsz6z.js.br +0 -0
  393. package/web/chunk-abvtsz6z.js.gz +0 -0
  394. package/web/chunk-ac8vmj54.js.br +0 -0
  395. package/web/chunk-ac8vmj54.js.gz +0 -0
  396. package/web/chunk-b2t33c3t.js.br +0 -0
  397. package/web/chunk-b2t33c3t.js.gz +0 -0
  398. package/web/chunk-b9fqnzqd.js.br +0 -0
  399. package/web/chunk-b9fqnzqd.js.gz +0 -0
  400. package/web/chunk-bbs6yq60.js.br +0 -0
  401. package/web/chunk-bbs6yq60.js.gz +0 -0
  402. package/web/chunk-bbyqcvdz.js.br +0 -0
  403. package/web/chunk-bbyqcvdz.js.gz +0 -0
  404. package/web/chunk-bg2ps35t.js.br +0 -0
  405. package/web/chunk-bg2ps35t.js.gz +0 -0
  406. package/web/chunk-bh0a254y.js.br +0 -0
  407. package/web/chunk-bh0a254y.js.gz +0 -0
  408. package/web/chunk-bvmvj35k.js.br +0 -0
  409. package/web/chunk-bvmvj35k.js.gz +0 -0
  410. package/web/chunk-c2eqwepm.js.br +0 -0
  411. package/web/chunk-c2eqwepm.js.gz +0 -0
  412. package/web/chunk-ca8hnmmv.js.br +0 -0
  413. package/web/chunk-ca8hnmmv.js.gz +0 -0
  414. package/web/chunk-ced8pdbc.js.br +0 -0
  415. package/web/chunk-ced8pdbc.js.gz +0 -0
  416. package/web/chunk-cj0cmvbm.js.br +0 -0
  417. package/web/chunk-cj0cmvbm.js.gz +0 -0
  418. package/web/chunk-crhbhsrh.js.br +0 -0
  419. package/web/chunk-crhbhsrh.js.gz +0 -0
  420. package/web/chunk-e3d6kvwm.js.br +0 -0
  421. package/web/chunk-e3d6kvwm.js.gz +0 -0
  422. package/web/chunk-eq28qb33.js.br +0 -3
  423. package/web/chunk-eq28qb33.js.gz +0 -0
  424. package/web/chunk-f8ac76br.js +0 -2
  425. package/web/chunk-f8ac76br.js.br +0 -3
  426. package/web/chunk-f8ac76br.js.gz +0 -0
  427. package/web/chunk-fp7q643n.js.br +0 -0
  428. package/web/chunk-fp7q643n.js.gz +0 -0
  429. package/web/chunk-g1penf6y.js.br +0 -0
  430. package/web/chunk-g1penf6y.js.gz +0 -0
  431. package/web/chunk-g7t1bvvx.js.br +0 -0
  432. package/web/chunk-g7t1bvvx.js.gz +0 -0
  433. package/web/chunk-gf4ky7tp.js +0 -8
  434. package/web/chunk-gf4ky7tp.js.br +0 -0
  435. package/web/chunk-gf4ky7tp.js.gz +0 -0
  436. package/web/chunk-gtcjwz0j.js +0 -1
  437. package/web/chunk-gtcjwz0j.js.br +0 -2
  438. package/web/chunk-gtcjwz0j.js.gz +0 -0
  439. package/web/chunk-gy2y4zfa.js.br +0 -0
  440. package/web/chunk-gy2y4zfa.js.gz +0 -0
  441. package/web/chunk-h1cv1kke.js.br +0 -0
  442. package/web/chunk-h1cv1kke.js.gz +0 -0
  443. package/web/chunk-h6k80vqf.js +0 -1
  444. package/web/chunk-h6k80vqf.js.br +0 -0
  445. package/web/chunk-h6k80vqf.js.gz +0 -0
  446. package/web/chunk-hqtm67yw.js.br +0 -0
  447. package/web/chunk-hqtm67yw.js.gz +0 -0
  448. package/web/chunk-hsgtzrkh.js.br +0 -0
  449. package/web/chunk-hsgtzrkh.js.gz +0 -0
  450. package/web/chunk-j7phw79h.js +0 -1
  451. package/web/chunk-j7phw79h.js.br +0 -0
  452. package/web/chunk-j7phw79h.js.gz +0 -0
  453. package/web/chunk-k69ysa0v.js.br +0 -0
  454. package/web/chunk-k69ysa0v.js.gz +0 -0
  455. package/web/chunk-k7h5g8qj.js +0 -1
  456. package/web/chunk-k7h5g8qj.js.br +0 -2
  457. package/web/chunk-k7h5g8qj.js.gz +0 -0
  458. package/web/chunk-k8x1xbf6.js.br +0 -0
  459. package/web/chunk-k8x1xbf6.js.gz +0 -0
  460. package/web/chunk-kbvzxsz7.js.br +0 -0
  461. package/web/chunk-kbvzxsz7.js.gz +0 -0
  462. package/web/chunk-kn9bc5z2.js.br +0 -0
  463. package/web/chunk-kn9bc5z2.js.gz +0 -0
  464. package/web/chunk-ksr360js.js.br +0 -0
  465. package/web/chunk-ksr360js.js.gz +0 -0
  466. package/web/chunk-m5nt857c.js.br +0 -0
  467. package/web/chunk-m5nt857c.js.gz +0 -0
  468. package/web/chunk-mbaw66b5.js.br +0 -0
  469. package/web/chunk-mbaw66b5.js.gz +0 -0
  470. package/web/chunk-ms7cscs9.js.br +0 -0
  471. package/web/chunk-ms7cscs9.js.gz +0 -0
  472. package/web/chunk-n59nyqcr.js.br +0 -0
  473. package/web/chunk-n59nyqcr.js.gz +0 -0
  474. package/web/chunk-n9npqkxf.js.br +0 -0
  475. package/web/chunk-n9npqkxf.js.gz +0 -0
  476. package/web/chunk-nb3jk1wk.js.br +0 -0
  477. package/web/chunk-nb3jk1wk.js.gz +0 -0
  478. package/web/chunk-ny87aq2j.js.br +0 -0
  479. package/web/chunk-ny87aq2j.js.gz +0 -0
  480. package/web/chunk-phr7yps3.js.br +0 -0
  481. package/web/chunk-phr7yps3.js.gz +0 -0
  482. package/web/chunk-ppccb30x.js.br +0 -0
  483. package/web/chunk-ppccb30x.js.gz +0 -0
  484. package/web/chunk-q17rem99.js.br +0 -0
  485. package/web/chunk-q17rem99.js.gz +0 -0
  486. package/web/chunk-qdq6wvgt.js.br +0 -0
  487. package/web/chunk-qdq6wvgt.js.gz +0 -0
  488. package/web/chunk-qhr6hegh.js.br +0 -0
  489. package/web/chunk-qhr6hegh.js.gz +0 -0
  490. package/web/chunk-qqtj88e0.js.br +0 -0
  491. package/web/chunk-qqtj88e0.js.gz +0 -0
  492. package/web/chunk-r165xpp5.js +0 -1
  493. package/web/chunk-r165xpp5.js.br +0 -0
  494. package/web/chunk-r165xpp5.js.gz +0 -0
  495. package/web/chunk-r4cr8rvt.js.br +0 -0
  496. package/web/chunk-r4cr8rvt.js.gz +0 -0
  497. package/web/chunk-sapy54hm.js.br +0 -0
  498. package/web/chunk-sapy54hm.js.gz +0 -0
  499. package/web/chunk-sarkb4p9.js.br +0 -0
  500. package/web/chunk-sarkb4p9.js.gz +0 -0
  501. package/web/chunk-t7vwsg9r.js.br +0 -0
  502. package/web/chunk-t7vwsg9r.js.gz +0 -0
  503. package/web/chunk-tt7j0m6m.js.br +0 -0
  504. package/web/chunk-tt7j0m6m.js.gz +0 -0
  505. package/web/chunk-va1rkfan.js +0 -1
  506. package/web/chunk-va1rkfan.js.br +0 -0
  507. package/web/chunk-va1rkfan.js.gz +0 -0
  508. package/web/chunk-vb3sy3hv.js.br +0 -0
  509. package/web/chunk-vb3sy3hv.js.gz +0 -0
  510. package/web/chunk-vgpyff03.js.br +0 -0
  511. package/web/chunk-vgpyff03.js.gz +0 -0
  512. package/web/chunk-w563538j.js.br +0 -0
  513. package/web/chunk-w563538j.js.gz +0 -0
  514. package/web/chunk-w71t7mes.js +0 -1
  515. package/web/chunk-w71t7mes.js.br +0 -0
  516. package/web/chunk-w71t7mes.js.gz +0 -0
  517. package/web/chunk-w96etr1w.js +0 -1
  518. package/web/chunk-w96etr1w.js.br +0 -0
  519. package/web/chunk-w96etr1w.js.gz +0 -0
  520. package/web/chunk-wrqazg2v.js.br +0 -0
  521. package/web/chunk-wrqazg2v.js.gz +0 -0
  522. package/web/chunk-xv1d350x.js.br +0 -0
  523. package/web/chunk-xv1d350x.js.gz +0 -0
  524. package/web/chunk-xw8tzrmm.js.br +0 -0
  525. package/web/chunk-xw8tzrmm.js.gz +0 -0
  526. package/web/chunk-xwsh4jx7.js +0 -1
  527. package/web/chunk-xwsh4jx7.js.br +0 -2
  528. package/web/chunk-xwsh4jx7.js.gz +0 -0
  529. package/web/chunk-xxk7xkrs.js +0 -1
  530. package/web/chunk-xxk7xkrs.js.br +0 -0
  531. package/web/chunk-xxk7xkrs.js.gz +0 -0
  532. package/web/chunk-y5zd05mz.js.br +0 -0
  533. package/web/chunk-y5zd05mz.js.gz +0 -0
  534. package/web/chunk-yg9a23mv.js.br +0 -0
  535. package/web/chunk-yg9a23mv.js.gz +0 -0
  536. package/web/chunk-ygzgrjj7.js.br +0 -0
  537. package/web/chunk-ygzgrjj7.js.gz +0 -0
  538. package/web/chunk-yp75a6yh.js.br +0 -0
  539. package/web/chunk-yp75a6yh.js.gz +0 -0
  540. package/web/chunk-zs7c2db4.js.br +0 -0
  541. package/web/chunk-zs7c2db4.js.gz +0 -0
  542. package/web/chunk-zsae1tn8.js.br +0 -0
  543. package/web/chunk-zsae1tn8.js.gz +0 -0
@@ -1,13 +1,13 @@
1
- import{Tr}from"./chunk-crhbhsrh.js";import{t,i,Se,A,j,Vs,$e,Va,Ga,C,W,L,N,R,P,I,O,D,d,fr,g,qt,Vt,la,Ks,Nt,H}from"./chunk-n59nyqcr.js";import{dr,ki,Ji,eo,Ht,to}from"./chunk-c2eqwepm.js";import{Ke}from"./chunk-xw8tzrmm.js";var xe=Ke(la(),1),fe=function(){var r=t(function(St,F,X,U){for(X=X||{},U=St.length;U--;X[St[U]]=F);return X},"o"),e=[1,2],s=[1,3],a=[1,4],o=[2,4],h=[1,9],n=[1,11],c=[1,12],f=[1,14],E=[1,15],_=[1,17],x=[1,18],b=[1,19],M=[1,25],y=[1,26],w=[1,27],p=[1,28],v=[1,29],m=[1,30],Y=[1,31],K=[1,32],B=[1,33],q=[1,34],z=[1,35],J=[1,36],tt=[1,37],rt=[1,38],ot=[1,39],lt=[1,40],Et=[1,42],ut=[1,43],ct=[1,44],gt=[1,45],ft=[1,46],et=[1,47],Q=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],dt=[1,56],Xt=[1,75],V=[1,81],G=[1,82],yt=[1,83],_t=[1,84],at=[1,85],Bt=[1,86],Ie=[1,87],ye=[1,88],Re=[1,89],Oe=[1,90],Le=[1,91],me=[1,92],Ae=[1,93],ke=[1,94],Ne=[1,95],we=[1,96],Pe=[1,97],De=[1,98],ve=[1,99],Ce=[1,100],Me=[1,101],Be=[1,102],Ye=[1,103],Ve=[1,104],We=[1,105],He=[1,106],Fe=[2,79],qe=[2,78],Ft=[4,5,17,51,53,54],Qt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],ze=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],oe=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],Ue=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],ce=[5,52],st=[62,70,71,72,73],Ge=[62,73],xt=[1,152],le={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement: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:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,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],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:t(function(F,X,U,S,it,l,zt){var u=l.length-1;switch(it){case 3:return S.apply(l[u]),l[u];break;case 4:case 10:this.$=[];break;case 5:case 11:l[u-1].push(l[u]),this.$=l[u-1];break;case 6:case 7:case 12:case 13:this.$=l[u];break;case 8:case 9:case 14:this.$=[];break;case 16:l[u].type="createParticipant",this.$=l[u];break;case 17:l[u-1].unshift({type:"boxStart",boxData:S.parseBoxData(l[u-2])}),l[u-1].push({type:"boxEnd",boxText:l[u-2]}),this.$=l[u-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(l[u-2]),sequenceIndexStep:Number(l[u-1]),sequenceVisible:!0,signalType:S.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(l[u-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:S.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:S.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:S.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:S.LINETYPE.ACTIVE_START,actor:l[u-1].actor};break;case 24:this.$={type:"activeEnd",signalType:S.LINETYPE.ACTIVE_END,actor:l[u-1].actor};break;case 30:S.setDiagramTitle(l[u].substring(6)),this.$=l[u].substring(6);break;case 31:S.setDiagramTitle(l[u].substring(7)),this.$=l[u].substring(7);break;case 32:this.$=l[u].trim(),S.setAccTitle(this.$);break;case 33:case 34:this.$=l[u].trim(),S.setAccDescription(this.$);break;case 35:l[u-1].unshift({type:"loopStart",loopText:S.parseMessage(l[u-2]),signalType:S.LINETYPE.LOOP_START}),l[u-1].push({type:"loopEnd",loopText:l[u-2],signalType:S.LINETYPE.LOOP_END}),this.$=l[u-1];break;case 36:l[u-1].unshift({type:"rectStart",color:S.parseMessage(l[u-2]),signalType:S.LINETYPE.RECT_START}),l[u-1].push({type:"rectEnd",color:S.parseMessage(l[u-2]),signalType:S.LINETYPE.RECT_END}),this.$=l[u-1];break;case 37:l[u-1].unshift({type:"optStart",optText:S.parseMessage(l[u-2]),signalType:S.LINETYPE.OPT_START}),l[u-1].push({type:"optEnd",optText:S.parseMessage(l[u-2]),signalType:S.LINETYPE.OPT_END}),this.$=l[u-1];break;case 38:l[u-1].unshift({type:"altStart",altText:S.parseMessage(l[u-2]),signalType:S.LINETYPE.ALT_START}),l[u-1].push({type:"altEnd",signalType:S.LINETYPE.ALT_END}),this.$=l[u-1];break;case 39:l[u-1].unshift({type:"parStart",parText:S.parseMessage(l[u-2]),signalType:S.LINETYPE.PAR_START}),l[u-1].push({type:"parEnd",signalType:S.LINETYPE.PAR_END}),this.$=l[u-1];break;case 40:l[u-1].unshift({type:"parStart",parText:S.parseMessage(l[u-2]),signalType:S.LINETYPE.PAR_OVER_START}),l[u-1].push({type:"parEnd",signalType:S.LINETYPE.PAR_END}),this.$=l[u-1];break;case 41:l[u-1].unshift({type:"criticalStart",criticalText:S.parseMessage(l[u-2]),signalType:S.LINETYPE.CRITICAL_START}),l[u-1].push({type:"criticalEnd",signalType:S.LINETYPE.CRITICAL_END}),this.$=l[u-1];break;case 42:l[u-1].unshift({type:"breakStart",breakText:S.parseMessage(l[u-2]),signalType:S.LINETYPE.BREAK_START}),l[u-1].push({type:"breakEnd",optText:S.parseMessage(l[u-2]),signalType:S.LINETYPE.BREAK_END}),this.$=l[u-1];break;case 44:this.$=l[u-3].concat([{type:"option",optionText:S.parseMessage(l[u-1]),signalType:S.LINETYPE.CRITICAL_OPTION},l[u]]);break;case 46:this.$=l[u-3].concat([{type:"and",parText:S.parseMessage(l[u-1]),signalType:S.LINETYPE.PAR_AND},l[u]]);break;case 48:this.$=l[u-3].concat([{type:"else",altText:S.parseMessage(l[u-1]),signalType:S.LINETYPE.ALT_ELSE},l[u]]);break;case 49:l[u-3].draw="participant",l[u-3].type="addParticipant",l[u-3].description=S.parseMessage(l[u-1]),this.$=l[u-3];break;case 50:l[u-1].draw="participant",l[u-1].type="addParticipant",this.$=l[u-1];break;case 51:l[u-3].draw="actor",l[u-3].type="addParticipant",l[u-3].description=S.parseMessage(l[u-1]),this.$=l[u-3];break;case 52:case 57:l[u-1].draw="actor",l[u-1].type="addParticipant",this.$=l[u-1];break;case 53:l[u-1].type="destroyParticipant",this.$=l[u-1];break;case 54:l[u-3].draw="participant",l[u-3].type="addParticipant",l[u-3].description=S.parseMessage(l[u-1]),this.$=l[u-3];break;case 55:l[u-1].draw="participant",l[u-1].type="addParticipant",this.$=l[u-1];break;case 56:l[u-3].draw="actor",l[u-3].type="addParticipant",l[u-3].description=S.parseMessage(l[u-1]),this.$=l[u-3];break;case 58:this.$=[l[u-1],{type:"addNote",placement:l[u-2],actor:l[u-1].actor,text:l[u]}];break;case 59:l[u-2]=[].concat(l[u-1],l[u-1]).slice(0,2),l[u-2][0]=l[u-2][0].actor,l[u-2][1]=l[u-2][1].actor,this.$=[l[u-1],{type:"addNote",placement:S.PLACEMENT.OVER,actor:l[u-2].slice(0,2),text:l[u]}];break;case 60:this.$=[l[u-1],{type:"addLinks",actor:l[u-1].actor,text:l[u]}];break;case 61:this.$=[l[u-1],{type:"addALink",actor:l[u-1].actor,text:l[u]}];break;case 62:this.$=[l[u-1],{type:"addProperties",actor:l[u-1].actor,text:l[u]}];break;case 63:this.$=[l[u-1],{type:"addDetails",actor:l[u-1].actor,text:l[u]}];break;case 66:this.$=[l[u-2],l[u]];break;case 67:this.$=l[u];break;case 68:this.$=S.PLACEMENT.LEFTOF;break;case 69:this.$=S.PLACEMENT.RIGHTOF;break;case 70:this.$=[l[u-4],l[u-1],{type:"addMessage",from:l[u-4].actor,to:l[u-1].actor,signalType:l[u-3],msg:l[u],activate:!0},{type:"activeStart",signalType:S.LINETYPE.ACTIVE_START,actor:l[u-1].actor}];break;case 71:this.$=[l[u-4],l[u-1],{type:"addMessage",from:l[u-4].actor,to:l[u-1].actor,signalType:l[u-3],msg:l[u]},{type:"activeEnd",signalType:S.LINETYPE.ACTIVE_END,actor:l[u-4].actor}];break;case 72:this.$=[l[u-4],l[u-1],{type:"addMessage",from:l[u-4].actor,to:l[u-1].actor,signalType:l[u-3],msg:l[u],activate:!0,centralConnection:S.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:S.LINETYPE.CENTRAL_CONNECTION,actor:l[u-1].actor}];break;case 73:this.$=[l[u-4],l[u-1],{type:"addMessage",from:l[u-4].actor,to:l[u-1].actor,signalType:l[u-2],msg:l[u],activate:!1,centralConnection:S.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:S.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:l[u-4].actor}];break;case 74:this.$=[l[u-5],l[u-1],{type:"addMessage",from:l[u-5].actor,to:l[u-1].actor,signalType:l[u-3],msg:l[u],activate:!0,centralConnection:S.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:S.LINETYPE.CENTRAL_CONNECTION,actor:l[u-1].actor},{type:"centralConnectionReverse",signalType:S.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:l[u-5].actor}];break;case 75:this.$=[l[u-3],l[u-1],{type:"addMessage",from:l[u-3].actor,to:l[u-1].actor,signalType:l[u-2],msg:l[u]}];break;case 76:this.$={type:"addParticipant",actor:l[u-1],config:l[u]};break;case 77:this.$=l[u-1].trim();break;case 78:case 79:this.$={type:"addParticipant",actor:l[u]};break;case 80:this.$=S.LINETYPE.SOLID_OPEN;break;case 81:this.$=S.LINETYPE.DOTTED_OPEN;break;case 82:this.$=S.LINETYPE.SOLID;break;case 83:this.$=S.LINETYPE.SOLID_TOP;break;case 84:this.$=S.LINETYPE.SOLID_BOTTOM;break;case 85:this.$=S.LINETYPE.STICK_TOP;break;case 86:this.$=S.LINETYPE.STICK_BOTTOM;break;case 87:this.$=S.LINETYPE.SOLID_TOP_DOTTED;break;case 88:this.$=S.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 89:this.$=S.LINETYPE.STICK_TOP_DOTTED;break;case 90:this.$=S.LINETYPE.STICK_BOTTOM_DOTTED;break;case 91:this.$=S.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 92:this.$=S.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 93:this.$=S.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 94:this.$=S.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 95:this.$=S.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 96:this.$=S.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 97:this.$=S.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 98:this.$=S.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 99:this.$=S.LINETYPE.BIDIRECTIONAL_SOLID;break;case 100:this.$=S.LINETYPE.DOTTED;break;case 101:this.$=S.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 102:this.$=S.LINETYPE.SOLID_CROSS;break;case 103:this.$=S.LINETYPE.DOTTED_CROSS;break;case 104:this.$=S.LINETYPE.SOLID_POINT;break;case 105:this.$=S.LINETYPE.DOTTED_POINT;break;case 106:this.$=S.parseMessage(l[u].trim().substring(1));break}},"anonymous"),table:[{3:1,4:e,5:s,6:a},{1:[3]},{3:5,4:e,5:s,6:a},{3:6,4:e,5:s,6:a},r([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],o,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:h,5:n,8:8,9:10,10:c,13:13,14:f,15:E,18:16,19:_,22:x,23:41,24:b,25:20,26:21,27:22,28:23,29:24,30:M,31:y,32:w,34:p,36:v,37:m,38:Y,39:K,40:B,42:q,44:z,45:J,47:tt,51:rt,53:ot,54:lt,56:Et,61:ut,62:ct,63:gt,64:ft,73:et},r(Q,[2,5]),{9:48,13:13,14:f,15:E,18:16,19:_,22:x,23:41,24:b,25:20,26:21,27:22,28:23,29:24,30:M,31:y,32:w,34:p,36:v,37:m,38:Y,39:K,40:B,42:q,44:z,45:J,47:tt,51:rt,53:ot,54:lt,56:Et,61:ut,62:ct,63:gt,64:ft,73:et},r(Q,[2,7]),r(Q,[2,8]),r(Q,[2,9]),r(Q,[2,15]),{13:49,51:rt,53:ot,54:lt},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,62:dt,73:et},{23:57,62:dt,73:et},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},{5:[1,62]},r(Q,[2,30]),r(Q,[2,31]),{33:[1,63]},{35:[1,64]},r(Q,[2,34]),{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{16:[1,72]},{23:73,55:74,62:dt,73:Xt},{23:76,55:77,62:dt,73:Xt},{23:78,62:dt,73:et},{69:79,72:[1,80],78:V,79:G,80:yt,81:_t,82:at,83:Bt,84:Ie,85:ye,86:Re,87:Oe,88:Le,89:me,90:Ae,91:ke,92:Ne,93:we,94:Pe,95:De,96:ve,97:Ce,98:Me,99:Be,100:Ye,101:Ve,102:We,103:He},{57:107,59:[1,108],67:[1,109],68:[1,110]},{23:111,62:dt,73:et},r([72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103],Fe,{23:112,62:dt,73:et}),{23:113,62:dt,73:et},{23:114,62:dt,73:et},r([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],qe),r(Q,[2,6]),r(Q,[2,16]),r(Ft,[2,10],{11:115}),r(Q,[2,18]),{5:[1,117],20:[1,116]},{5:[1,118]},r(Q,[2,22]),{5:[1,119]},r([5,52,66,104],Fe),{5:[1,120]},r(Q,[2,25]),r(Q,[2,26]),r(Q,[2,27]),r(Q,[2,28]),r(Q,[2,29]),r(Q,[2,32]),r(Q,[2,33]),r(Qt,o,{7:121}),r(Qt,o,{7:122}),r(Qt,o,{7:123}),r(ze,o,{41:124,7:125}),r(oe,o,{43:126,7:127}),r(oe,o,{7:127,43:128}),r(Ue,o,{46:129,7:130}),r(Qt,o,{7:131}),{5:[1,133],52:[1,132]},{5:[1,135],52:[1,134]},r(ce,qe,{74:136,75:[1,137]}),{5:[1,139],52:[1,138]},{5:[1,141],52:[1,140]},{5:[1,142]},{23:146,62:dt,70:[1,143],71:[1,144],72:[1,145],73:et},{69:147,78:V,79:G,80:yt,81:_t,82:at,83:Bt,84:Ie,85:ye,86:Re,87:Oe,88:Le,89:me,90:Ae,91:ke,92:Ne,93:we,94:Pe,95:De,96:ve,97:Ce,98:Me,99:Be,100:Ye,101:Ve,102:We,103:He},r(st,[2,80]),r(st,[2,81]),r(st,[2,82]),r(st,[2,83]),r(st,[2,84]),r(st,[2,85]),r(st,[2,86]),r(st,[2,87]),r(st,[2,88]),r(st,[2,89]),r(st,[2,90]),r(st,[2,91]),r(st,[2,92]),r(st,[2,93]),r(st,[2,94]),r(st,[2,95]),r(st,[2,96]),r(st,[2,97]),r(st,[2,98]),r(st,[2,99]),r(st,[2,100]),r(st,[2,101]),r(st,[2,102]),r(st,[2,103]),r(st,[2,104]),r(st,[2,105]),{23:148,62:dt,73:et},{23:150,60:149,62:dt,73:et},r(Ge,[2,68]),r(Ge,[2,69]),{58:151,104:xt},{58:153,104:xt},{58:154,104:xt},{58:155,104:xt},{4:[1,158],5:[1,160],12:157,13:159,17:[1,156],51:rt,53:ot,54:lt},{5:[1,161]},r(Q,[2,20]),r(Q,[2,21]),r(Q,[2,23]),r(Q,[2,24]),{4:h,5:n,8:8,9:10,10:c,13:13,14:f,15:E,17:[1,162],18:16,19:_,22:x,23:41,24:b,25:20,26:21,27:22,28:23,29:24,30:M,31:y,32:w,34:p,36:v,37:m,38:Y,39:K,40:B,42:q,44:z,45:J,47:tt,51:rt,53:ot,54:lt,56:Et,61:ut,62:ct,63:gt,64:ft,73:et},{4:h,5:n,8:8,9:10,10:c,13:13,14:f,15:E,17:[1,163],18:16,19:_,22:x,23:41,24:b,25:20,26:21,27:22,28:23,29:24,30:M,31:y,32:w,34:p,36:v,37:m,38:Y,39:K,40:B,42:q,44:z,45:J,47:tt,51:rt,53:ot,54:lt,56:Et,61:ut,62:ct,63:gt,64:ft,73:et},{4:h,5:n,8:8,9:10,10:c,13:13,14:f,15:E,17:[1,164],18:16,19:_,22:x,23:41,24:b,25:20,26:21,27:22,28:23,29:24,30:M,31:y,32:w,34:p,36:v,37:m,38:Y,39:K,40:B,42:q,44:z,45:J,47:tt,51:rt,53:ot,54:lt,56:Et,61:ut,62:ct,63:gt,64:ft,73:et},{17:[1,165]},{4:h,5:n,8:8,9:10,10:c,13:13,14:f,15:E,17:[2,47],18:16,19:_,22:x,23:41,24:b,25:20,26:21,27:22,28:23,29:24,30:M,31:y,32:w,34:p,36:v,37:m,38:Y,39:K,40:B,42:q,44:z,45:J,47:tt,50:[1,166],51:rt,53:ot,54:lt,56:Et,61:ut,62:ct,63:gt,64:ft,73:et},{17:[1,167]},{4:h,5:n,8:8,9:10,10:c,13:13,14:f,15:E,17:[2,45],18:16,19:_,22:x,23:41,24:b,25:20,26:21,27:22,28:23,29:24,30:M,31:y,32:w,34:p,36:v,37:m,38:Y,39:K,40:B,42:q,44:z,45:J,47:tt,49:[1,168],51:rt,53:ot,54:lt,56:Et,61:ut,62:ct,63:gt,64:ft,73:et},{17:[1,169]},{17:[1,170]},{4:h,5:n,8:8,9:10,10:c,13:13,14:f,15:E,17:[2,43],18:16,19:_,22:x,23:41,24:b,25:20,26:21,27:22,28:23,29:24,30:M,31:y,32:w,34:p,36:v,37:m,38:Y,39:K,40:B,42:q,44:z,45:J,47:tt,48:[1,171],51:rt,53:ot,54:lt,56:Et,61:ut,62:ct,63:gt,64:ft,73:et},{4:h,5:n,8:8,9:10,10:c,13:13,14:f,15:E,17:[1,172],18:16,19:_,22:x,23:41,24:b,25:20,26:21,27:22,28:23,29:24,30:M,31:y,32:w,34:p,36:v,37:m,38:Y,39:K,40:B,42:q,44:z,45:J,47:tt,51:rt,53:ot,54:lt,56:Et,61:ut,62:ct,63:gt,64:ft,73:et},{16:[1,173]},r(Q,[2,50]),{16:[1,174]},r(Q,[2,55]),r(ce,[2,76]),{76:[1,175]},{16:[1,176]},r(Q,[2,52]),{16:[1,177]},r(Q,[2,57]),r(Q,[2,53]),{23:178,62:dt,73:et},{23:179,62:dt,73:et},{23:180,62:dt,73:et},{58:181,104:xt},{23:182,62:dt,72:[1,183],73:et},{58:184,104:xt},{58:185,104:xt},{66:[1,186],104:[2,67]},{5:[2,60]},{5:[2,106]},{5:[2,61]},{5:[2,62]},{5:[2,63]},r(Q,[2,17]),r(Ft,[2,11]),{13:187,51:rt,53:ot,54:lt},r(Ft,[2,13]),r(Ft,[2,14]),r(Q,[2,19]),r(Q,[2,35]),r(Q,[2,36]),r(Q,[2,37]),r(Q,[2,38]),{16:[1,188]},r(Q,[2,39]),{16:[1,189]},r(Q,[2,40]),r(Q,[2,41]),{16:[1,190]},r(Q,[2,42]),{5:[1,191]},{5:[1,192]},{77:[1,193]},{5:[1,194]},{5:[1,195]},{58:196,104:xt},{58:197,104:xt},{58:198,104:xt},{5:[2,75]},{58:199,104:xt},{23:200,62:dt,73:et},{5:[2,58]},{5:[2,59]},{23:201,62:dt,73:et},r(Ft,[2,12]),r(ze,o,{7:125,41:202}),r(oe,o,{7:127,43:203}),r(Ue,o,{7:130,46:204}),r(Q,[2,49]),r(Q,[2,54]),r(ce,[2,77]),r(Q,[2,51]),r(Q,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:205,104:xt},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],151:[2,60],152:[2,106],153:[2,61],154:[2,62],155:[2,63],181:[2,75],184:[2,58],185:[2,59],196:[2,70],197:[2,71],198:[2,72],199:[2,73],201:[2,66],202:[2,48],203:[2,46],204:[2,44],205:[2,74]},parseError:t(function(F,X){if(X.recoverable)this.trace(F);else{var U=Error(F);throw U.hash=X,U}},"parseError"),parse:t(function(F){var X=this,U=[0],S=[],it=[null],l=[],zt=this.table,u="",Zt=0,Xe=0,Qe=0,br=2,Je=1,Ir=l.slice.call(arguments,1),Tt=Object.create(this.lexer),Pt={yy:{}};for(var he in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,he))Pt.yy[he]=this.yy[he];if(Tt.setInput(F,Pt.yy),Pt.yy.lexer=Tt,Pt.yy.parser=this,typeof Tt.yylloc>"u")Tt.yylloc={};var de=Tt.yylloc;l.push(de);var yr=Tt.options&&Tt.options.ranges;if(typeof Pt.yy.parseError==="function")this.parseError=Pt.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Rr(It){U.length=U.length-2*It,it.length=it.length-It,l.length=l.length-It}t(Rr,"popStack");function Ze(){var It=S.pop()||Tt.lex()||Je;if(typeof It!=="number"){if(It instanceof Array)S=It,It=S.pop();It=X.symbols_[It]||It}return It}t(Ze,"lex");var pt,Te,Dt,bt,Ra,pe,Yt={},$t,Ot,je,jt;while(!0){if(Dt=U[U.length-1],this.defaultActions[Dt])bt=this.defaultActions[Dt];else{if(pt===null||typeof pt>"u")pt=Ze();bt=zt[Dt]&&zt[Dt][pt]}if(typeof bt>"u"||!bt.length||!bt[0]){var Ee="";jt=[];for($t in zt[Dt])if(this.terminals_[$t]&&$t>br)jt.push("'"+this.terminals_[$t]+"'");if(Tt.showPosition)Ee="Parse error on line "+(Zt+1)+`:
1
+ import{Tr}from"./chunk-ajj3nc80.js";import{t,i,Ae,A,q,Vs,$e,Va,Ga,C,Y,L,N,R,P,I,O,D,d,fr,g,qt,Vt,la,Ks,Nt,H}from"./chunk-qzb06me8.js";import{dr,ki,Ji,eo,Ht,to}from"./chunk-n8j9jdsh.js";import{Ke}from"./chunk-g5b4wjwp.js";var xe=Ke(la(),1),fe=function(){var r=t(function(St,F,Q,G){for(Q=Q||{},G=St.length;G--;Q[St[G]]=F);return Q},"o"),e=[1,2],s=[1,3],a=[1,4],o=[2,4],h=[1,9],n=[1,11],c=[1,12],f=[1,14],E=[1,15],_=[1,17],x=[1,18],b=[1,19],M=[1,25],y=[1,26],w=[1,27],p=[1,28],v=[1,29],m=[1,30],V=[1,31],K=[1,32],B=[1,33],z=[1,34],U=[1,35],Z=[1,36],tt=[1,37],rt=[1,38],ot=[1,39],lt=[1,40],Et=[1,42],ut=[1,43],ct=[1,44],gt=[1,45],ft=[1,46],et=[1,47],J=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],dt=[1,56],Xt=[1,75],W=[1,81],X=[1,82],yt=[1,83],_t=[1,84],at=[1,85],Bt=[1,86],Ie=[1,87],ye=[1,88],Re=[1,89],Oe=[1,90],Le=[1,91],me=[1,92],Se=[1,93],ke=[1,94],Ne=[1,95],we=[1,96],Pe=[1,97],De=[1,98],ve=[1,99],Ce=[1,100],Me=[1,101],Be=[1,102],Ye=[1,103],Ve=[1,104],We=[1,105],He=[1,106],Fe=[2,79],qe=[2,78],Ft=[4,5,17,51,53,54],Qt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],ze=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],oe=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],Ue=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],ce=[5,52],st=[62,70,71,72,73],Ge=[62,73],xt=[1,152],le={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement: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:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,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],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:t(function(F,Q,G,S,it,l,zt){var u=l.length-1;switch(it){case 3:return S.apply(l[u]),l[u];break;case 4:case 10:this.$=[];break;case 5:case 11:l[u-1].push(l[u]),this.$=l[u-1];break;case 6:case 7:case 12:case 13:this.$=l[u];break;case 8:case 9:case 14:this.$=[];break;case 16:l[u].type="createParticipant",this.$=l[u];break;case 17:l[u-1].unshift({type:"boxStart",boxData:S.parseBoxData(l[u-2])}),l[u-1].push({type:"boxEnd",boxText:l[u-2]}),this.$=l[u-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(l[u-2]),sequenceIndexStep:Number(l[u-1]),sequenceVisible:!0,signalType:S.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(l[u-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:S.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:S.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:S.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:S.LINETYPE.ACTIVE_START,actor:l[u-1].actor};break;case 24:this.$={type:"activeEnd",signalType:S.LINETYPE.ACTIVE_END,actor:l[u-1].actor};break;case 30:S.setDiagramTitle(l[u].substring(6)),this.$=l[u].substring(6);break;case 31:S.setDiagramTitle(l[u].substring(7)),this.$=l[u].substring(7);break;case 32:this.$=l[u].trim(),S.setAccTitle(this.$);break;case 33:case 34:this.$=l[u].trim(),S.setAccDescription(this.$);break;case 35:l[u-1].unshift({type:"loopStart",loopText:S.parseMessage(l[u-2]),signalType:S.LINETYPE.LOOP_START}),l[u-1].push({type:"loopEnd",loopText:l[u-2],signalType:S.LINETYPE.LOOP_END}),this.$=l[u-1];break;case 36:l[u-1].unshift({type:"rectStart",color:S.parseMessage(l[u-2]),signalType:S.LINETYPE.RECT_START}),l[u-1].push({type:"rectEnd",color:S.parseMessage(l[u-2]),signalType:S.LINETYPE.RECT_END}),this.$=l[u-1];break;case 37:l[u-1].unshift({type:"optStart",optText:S.parseMessage(l[u-2]),signalType:S.LINETYPE.OPT_START}),l[u-1].push({type:"optEnd",optText:S.parseMessage(l[u-2]),signalType:S.LINETYPE.OPT_END}),this.$=l[u-1];break;case 38:l[u-1].unshift({type:"altStart",altText:S.parseMessage(l[u-2]),signalType:S.LINETYPE.ALT_START}),l[u-1].push({type:"altEnd",signalType:S.LINETYPE.ALT_END}),this.$=l[u-1];break;case 39:l[u-1].unshift({type:"parStart",parText:S.parseMessage(l[u-2]),signalType:S.LINETYPE.PAR_START}),l[u-1].push({type:"parEnd",signalType:S.LINETYPE.PAR_END}),this.$=l[u-1];break;case 40:l[u-1].unshift({type:"parStart",parText:S.parseMessage(l[u-2]),signalType:S.LINETYPE.PAR_OVER_START}),l[u-1].push({type:"parEnd",signalType:S.LINETYPE.PAR_END}),this.$=l[u-1];break;case 41:l[u-1].unshift({type:"criticalStart",criticalText:S.parseMessage(l[u-2]),signalType:S.LINETYPE.CRITICAL_START}),l[u-1].push({type:"criticalEnd",signalType:S.LINETYPE.CRITICAL_END}),this.$=l[u-1];break;case 42:l[u-1].unshift({type:"breakStart",breakText:S.parseMessage(l[u-2]),signalType:S.LINETYPE.BREAK_START}),l[u-1].push({type:"breakEnd",optText:S.parseMessage(l[u-2]),signalType:S.LINETYPE.BREAK_END}),this.$=l[u-1];break;case 44:this.$=l[u-3].concat([{type:"option",optionText:S.parseMessage(l[u-1]),signalType:S.LINETYPE.CRITICAL_OPTION},l[u]]);break;case 46:this.$=l[u-3].concat([{type:"and",parText:S.parseMessage(l[u-1]),signalType:S.LINETYPE.PAR_AND},l[u]]);break;case 48:this.$=l[u-3].concat([{type:"else",altText:S.parseMessage(l[u-1]),signalType:S.LINETYPE.ALT_ELSE},l[u]]);break;case 49:l[u-3].draw="participant",l[u-3].type="addParticipant",l[u-3].description=S.parseMessage(l[u-1]),this.$=l[u-3];break;case 50:l[u-1].draw="participant",l[u-1].type="addParticipant",this.$=l[u-1];break;case 51:l[u-3].draw="actor",l[u-3].type="addParticipant",l[u-3].description=S.parseMessage(l[u-1]),this.$=l[u-3];break;case 52:case 57:l[u-1].draw="actor",l[u-1].type="addParticipant",this.$=l[u-1];break;case 53:l[u-1].type="destroyParticipant",this.$=l[u-1];break;case 54:l[u-3].draw="participant",l[u-3].type="addParticipant",l[u-3].description=S.parseMessage(l[u-1]),this.$=l[u-3];break;case 55:l[u-1].draw="participant",l[u-1].type="addParticipant",this.$=l[u-1];break;case 56:l[u-3].draw="actor",l[u-3].type="addParticipant",l[u-3].description=S.parseMessage(l[u-1]),this.$=l[u-3];break;case 58:this.$=[l[u-1],{type:"addNote",placement:l[u-2],actor:l[u-1].actor,text:l[u]}];break;case 59:l[u-2]=[].concat(l[u-1],l[u-1]).slice(0,2),l[u-2][0]=l[u-2][0].actor,l[u-2][1]=l[u-2][1].actor,this.$=[l[u-1],{type:"addNote",placement:S.PLACEMENT.OVER,actor:l[u-2].slice(0,2),text:l[u]}];break;case 60:this.$=[l[u-1],{type:"addLinks",actor:l[u-1].actor,text:l[u]}];break;case 61:this.$=[l[u-1],{type:"addALink",actor:l[u-1].actor,text:l[u]}];break;case 62:this.$=[l[u-1],{type:"addProperties",actor:l[u-1].actor,text:l[u]}];break;case 63:this.$=[l[u-1],{type:"addDetails",actor:l[u-1].actor,text:l[u]}];break;case 66:this.$=[l[u-2],l[u]];break;case 67:this.$=l[u];break;case 68:this.$=S.PLACEMENT.LEFTOF;break;case 69:this.$=S.PLACEMENT.RIGHTOF;break;case 70:this.$=[l[u-4],l[u-1],{type:"addMessage",from:l[u-4].actor,to:l[u-1].actor,signalType:l[u-3],msg:l[u],activate:!0},{type:"activeStart",signalType:S.LINETYPE.ACTIVE_START,actor:l[u-1].actor}];break;case 71:this.$=[l[u-4],l[u-1],{type:"addMessage",from:l[u-4].actor,to:l[u-1].actor,signalType:l[u-3],msg:l[u]},{type:"activeEnd",signalType:S.LINETYPE.ACTIVE_END,actor:l[u-4].actor}];break;case 72:this.$=[l[u-4],l[u-1],{type:"addMessage",from:l[u-4].actor,to:l[u-1].actor,signalType:l[u-3],msg:l[u],activate:!0,centralConnection:S.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:S.LINETYPE.CENTRAL_CONNECTION,actor:l[u-1].actor}];break;case 73:this.$=[l[u-4],l[u-1],{type:"addMessage",from:l[u-4].actor,to:l[u-1].actor,signalType:l[u-2],msg:l[u],activate:!1,centralConnection:S.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:S.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:l[u-4].actor}];break;case 74:this.$=[l[u-5],l[u-1],{type:"addMessage",from:l[u-5].actor,to:l[u-1].actor,signalType:l[u-3],msg:l[u],activate:!0,centralConnection:S.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:S.LINETYPE.CENTRAL_CONNECTION,actor:l[u-1].actor},{type:"centralConnectionReverse",signalType:S.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:l[u-5].actor}];break;case 75:this.$=[l[u-3],l[u-1],{type:"addMessage",from:l[u-3].actor,to:l[u-1].actor,signalType:l[u-2],msg:l[u]}];break;case 76:this.$={type:"addParticipant",actor:l[u-1],config:l[u]};break;case 77:this.$=l[u-1].trim();break;case 78:case 79:this.$={type:"addParticipant",actor:l[u]};break;case 80:this.$=S.LINETYPE.SOLID_OPEN;break;case 81:this.$=S.LINETYPE.DOTTED_OPEN;break;case 82:this.$=S.LINETYPE.SOLID;break;case 83:this.$=S.LINETYPE.SOLID_TOP;break;case 84:this.$=S.LINETYPE.SOLID_BOTTOM;break;case 85:this.$=S.LINETYPE.STICK_TOP;break;case 86:this.$=S.LINETYPE.STICK_BOTTOM;break;case 87:this.$=S.LINETYPE.SOLID_TOP_DOTTED;break;case 88:this.$=S.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 89:this.$=S.LINETYPE.STICK_TOP_DOTTED;break;case 90:this.$=S.LINETYPE.STICK_BOTTOM_DOTTED;break;case 91:this.$=S.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 92:this.$=S.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 93:this.$=S.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 94:this.$=S.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 95:this.$=S.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 96:this.$=S.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 97:this.$=S.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 98:this.$=S.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 99:this.$=S.LINETYPE.BIDIRECTIONAL_SOLID;break;case 100:this.$=S.LINETYPE.DOTTED;break;case 101:this.$=S.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 102:this.$=S.LINETYPE.SOLID_CROSS;break;case 103:this.$=S.LINETYPE.DOTTED_CROSS;break;case 104:this.$=S.LINETYPE.SOLID_POINT;break;case 105:this.$=S.LINETYPE.DOTTED_POINT;break;case 106:this.$=S.parseMessage(l[u].trim().substring(1));break}},"anonymous"),table:[{3:1,4:e,5:s,6:a},{1:[3]},{3:5,4:e,5:s,6:a},{3:6,4:e,5:s,6:a},r([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],o,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:h,5:n,8:8,9:10,10:c,13:13,14:f,15:E,18:16,19:_,22:x,23:41,24:b,25:20,26:21,27:22,28:23,29:24,30:M,31:y,32:w,34:p,36:v,37:m,38:V,39:K,40:B,42:z,44:U,45:Z,47:tt,51:rt,53:ot,54:lt,56:Et,61:ut,62:ct,63:gt,64:ft,73:et},r(J,[2,5]),{9:48,13:13,14:f,15:E,18:16,19:_,22:x,23:41,24:b,25:20,26:21,27:22,28:23,29:24,30:M,31:y,32:w,34:p,36:v,37:m,38:V,39:K,40:B,42:z,44:U,45:Z,47:tt,51:rt,53:ot,54:lt,56:Et,61:ut,62:ct,63:gt,64:ft,73:et},r(J,[2,7]),r(J,[2,8]),r(J,[2,9]),r(J,[2,15]),{13:49,51:rt,53:ot,54:lt},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,62:dt,73:et},{23:57,62:dt,73:et},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},{5:[1,62]},r(J,[2,30]),r(J,[2,31]),{33:[1,63]},{35:[1,64]},r(J,[2,34]),{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{16:[1,72]},{23:73,55:74,62:dt,73:Xt},{23:76,55:77,62:dt,73:Xt},{23:78,62:dt,73:et},{69:79,72:[1,80],78:W,79:X,80:yt,81:_t,82:at,83:Bt,84:Ie,85:ye,86:Re,87:Oe,88:Le,89:me,90:Se,91:ke,92:Ne,93:we,94:Pe,95:De,96:ve,97:Ce,98:Me,99:Be,100:Ye,101:Ve,102:We,103:He},{57:107,59:[1,108],67:[1,109],68:[1,110]},{23:111,62:dt,73:et},r([72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103],Fe,{23:112,62:dt,73:et}),{23:113,62:dt,73:et},{23:114,62:dt,73:et},r([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],qe),r(J,[2,6]),r(J,[2,16]),r(Ft,[2,10],{11:115}),r(J,[2,18]),{5:[1,117],20:[1,116]},{5:[1,118]},r(J,[2,22]),{5:[1,119]},r([5,52,66,104],Fe),{5:[1,120]},r(J,[2,25]),r(J,[2,26]),r(J,[2,27]),r(J,[2,28]),r(J,[2,29]),r(J,[2,32]),r(J,[2,33]),r(Qt,o,{7:121}),r(Qt,o,{7:122}),r(Qt,o,{7:123}),r(ze,o,{41:124,7:125}),r(oe,o,{43:126,7:127}),r(oe,o,{7:127,43:128}),r(Ue,o,{46:129,7:130}),r(Qt,o,{7:131}),{5:[1,133],52:[1,132]},{5:[1,135],52:[1,134]},r(ce,qe,{74:136,75:[1,137]}),{5:[1,139],52:[1,138]},{5:[1,141],52:[1,140]},{5:[1,142]},{23:146,62:dt,70:[1,143],71:[1,144],72:[1,145],73:et},{69:147,78:W,79:X,80:yt,81:_t,82:at,83:Bt,84:Ie,85:ye,86:Re,87:Oe,88:Le,89:me,90:Se,91:ke,92:Ne,93:we,94:Pe,95:De,96:ve,97:Ce,98:Me,99:Be,100:Ye,101:Ve,102:We,103:He},r(st,[2,80]),r(st,[2,81]),r(st,[2,82]),r(st,[2,83]),r(st,[2,84]),r(st,[2,85]),r(st,[2,86]),r(st,[2,87]),r(st,[2,88]),r(st,[2,89]),r(st,[2,90]),r(st,[2,91]),r(st,[2,92]),r(st,[2,93]),r(st,[2,94]),r(st,[2,95]),r(st,[2,96]),r(st,[2,97]),r(st,[2,98]),r(st,[2,99]),r(st,[2,100]),r(st,[2,101]),r(st,[2,102]),r(st,[2,103]),r(st,[2,104]),r(st,[2,105]),{23:148,62:dt,73:et},{23:150,60:149,62:dt,73:et},r(Ge,[2,68]),r(Ge,[2,69]),{58:151,104:xt},{58:153,104:xt},{58:154,104:xt},{58:155,104:xt},{4:[1,158],5:[1,160],12:157,13:159,17:[1,156],51:rt,53:ot,54:lt},{5:[1,161]},r(J,[2,20]),r(J,[2,21]),r(J,[2,23]),r(J,[2,24]),{4:h,5:n,8:8,9:10,10:c,13:13,14:f,15:E,17:[1,162],18:16,19:_,22:x,23:41,24:b,25:20,26:21,27:22,28:23,29:24,30:M,31:y,32:w,34:p,36:v,37:m,38:V,39:K,40:B,42:z,44:U,45:Z,47:tt,51:rt,53:ot,54:lt,56:Et,61:ut,62:ct,63:gt,64:ft,73:et},{4:h,5:n,8:8,9:10,10:c,13:13,14:f,15:E,17:[1,163],18:16,19:_,22:x,23:41,24:b,25:20,26:21,27:22,28:23,29:24,30:M,31:y,32:w,34:p,36:v,37:m,38:V,39:K,40:B,42:z,44:U,45:Z,47:tt,51:rt,53:ot,54:lt,56:Et,61:ut,62:ct,63:gt,64:ft,73:et},{4:h,5:n,8:8,9:10,10:c,13:13,14:f,15:E,17:[1,164],18:16,19:_,22:x,23:41,24:b,25:20,26:21,27:22,28:23,29:24,30:M,31:y,32:w,34:p,36:v,37:m,38:V,39:K,40:B,42:z,44:U,45:Z,47:tt,51:rt,53:ot,54:lt,56:Et,61:ut,62:ct,63:gt,64:ft,73:et},{17:[1,165]},{4:h,5:n,8:8,9:10,10:c,13:13,14:f,15:E,17:[2,47],18:16,19:_,22:x,23:41,24:b,25:20,26:21,27:22,28:23,29:24,30:M,31:y,32:w,34:p,36:v,37:m,38:V,39:K,40:B,42:z,44:U,45:Z,47:tt,50:[1,166],51:rt,53:ot,54:lt,56:Et,61:ut,62:ct,63:gt,64:ft,73:et},{17:[1,167]},{4:h,5:n,8:8,9:10,10:c,13:13,14:f,15:E,17:[2,45],18:16,19:_,22:x,23:41,24:b,25:20,26:21,27:22,28:23,29:24,30:M,31:y,32:w,34:p,36:v,37:m,38:V,39:K,40:B,42:z,44:U,45:Z,47:tt,49:[1,168],51:rt,53:ot,54:lt,56:Et,61:ut,62:ct,63:gt,64:ft,73:et},{17:[1,169]},{17:[1,170]},{4:h,5:n,8:8,9:10,10:c,13:13,14:f,15:E,17:[2,43],18:16,19:_,22:x,23:41,24:b,25:20,26:21,27:22,28:23,29:24,30:M,31:y,32:w,34:p,36:v,37:m,38:V,39:K,40:B,42:z,44:U,45:Z,47:tt,48:[1,171],51:rt,53:ot,54:lt,56:Et,61:ut,62:ct,63:gt,64:ft,73:et},{4:h,5:n,8:8,9:10,10:c,13:13,14:f,15:E,17:[1,172],18:16,19:_,22:x,23:41,24:b,25:20,26:21,27:22,28:23,29:24,30:M,31:y,32:w,34:p,36:v,37:m,38:V,39:K,40:B,42:z,44:U,45:Z,47:tt,51:rt,53:ot,54:lt,56:Et,61:ut,62:ct,63:gt,64:ft,73:et},{16:[1,173]},r(J,[2,50]),{16:[1,174]},r(J,[2,55]),r(ce,[2,76]),{76:[1,175]},{16:[1,176]},r(J,[2,52]),{16:[1,177]},r(J,[2,57]),r(J,[2,53]),{23:178,62:dt,73:et},{23:179,62:dt,73:et},{23:180,62:dt,73:et},{58:181,104:xt},{23:182,62:dt,72:[1,183],73:et},{58:184,104:xt},{58:185,104:xt},{66:[1,186],104:[2,67]},{5:[2,60]},{5:[2,106]},{5:[2,61]},{5:[2,62]},{5:[2,63]},r(J,[2,17]),r(Ft,[2,11]),{13:187,51:rt,53:ot,54:lt},r(Ft,[2,13]),r(Ft,[2,14]),r(J,[2,19]),r(J,[2,35]),r(J,[2,36]),r(J,[2,37]),r(J,[2,38]),{16:[1,188]},r(J,[2,39]),{16:[1,189]},r(J,[2,40]),r(J,[2,41]),{16:[1,190]},r(J,[2,42]),{5:[1,191]},{5:[1,192]},{77:[1,193]},{5:[1,194]},{5:[1,195]},{58:196,104:xt},{58:197,104:xt},{58:198,104:xt},{5:[2,75]},{58:199,104:xt},{23:200,62:dt,73:et},{5:[2,58]},{5:[2,59]},{23:201,62:dt,73:et},r(Ft,[2,12]),r(ze,o,{7:125,41:202}),r(oe,o,{7:127,43:203}),r(Ue,o,{7:130,46:204}),r(J,[2,49]),r(J,[2,54]),r(ce,[2,77]),r(J,[2,51]),r(J,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:205,104:xt},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],151:[2,60],152:[2,106],153:[2,61],154:[2,62],155:[2,63],181:[2,75],184:[2,58],185:[2,59],196:[2,70],197:[2,71],198:[2,72],199:[2,73],201:[2,66],202:[2,48],203:[2,46],204:[2,44],205:[2,74]},parseError:t(function(F,Q){if(Q.recoverable)this.trace(F);else{var G=Error(F);throw G.hash=Q,G}},"parseError"),parse:t(function(F){var Q=this,G=[0],S=[],it=[null],l=[],zt=this.table,u="",Zt=0,Xe=0,Qe=0,br=2,Je=1,Ir=l.slice.call(arguments,1),Tt=Object.create(this.lexer),Pt={yy:{}};for(var he in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,he))Pt.yy[he]=this.yy[he];if(Tt.setInput(F,Pt.yy),Pt.yy.lexer=Tt,Pt.yy.parser=this,typeof Tt.yylloc>"u")Tt.yylloc={};var de=Tt.yylloc;l.push(de);var yr=Tt.options&&Tt.options.ranges;if(typeof Pt.yy.parseError==="function")this.parseError=Pt.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Rr(It){G.length=G.length-2*It,it.length=it.length-It,l.length=l.length-It}t(Rr,"popStack");function Ze(){var It=S.pop()||Tt.lex()||Je;if(typeof It!=="number"){if(It instanceof Array)S=It,It=S.pop();It=Q.symbols_[It]||It}return It}t(Ze,"lex");var pt,Te,Dt,bt,Ra,pe,Yt={},$t,Ot,je,jt;while(!0){if(Dt=G[G.length-1],this.defaultActions[Dt])bt=this.defaultActions[Dt];else{if(pt===null||typeof pt>"u")pt=Ze();bt=zt[Dt]&&zt[Dt][pt]}if(typeof bt>"u"||!bt.length||!bt[0]){var Ee="";jt=[];for($t in zt[Dt])if(this.terminals_[$t]&&$t>br)jt.push("'"+this.terminals_[$t]+"'");if(Tt.showPosition)Ee="Parse error on line "+(Zt+1)+`:
2
2
  `+Tt.showPosition()+`
3
- Expecting `+jt.join(", ")+", got '"+(this.terminals_[pt]||pt)+"'";else Ee="Parse error on line "+(Zt+1)+": Unexpected "+(pt==Je?"end of input":"'"+(this.terminals_[pt]||pt)+"'");this.parseError(Ee,{text:Tt.match,token:this.terminals_[pt]||pt,line:Tt.yylineno,loc:de,expected:jt})}if(bt[0]instanceof Array&&bt.length>1)throw Error("Parse Error: multiple actions possible at state: "+Dt+", token: "+pt);switch(bt[0]){case 1:if(U.push(pt),it.push(Tt.yytext),l.push(Tt.yylloc),U.push(bt[1]),pt=null,!Te){if(Xe=Tt.yyleng,u=Tt.yytext,Zt=Tt.yylineno,de=Tt.yylloc,Qe>0)Qe--}else pt=Te,Te=null;break;case 2:if(Ot=this.productions_[bt[1]][1],Yt.$=it[it.length-Ot],Yt._$={first_line:l[l.length-(Ot||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(Ot||1)].first_column,last_column:l[l.length-1].last_column},yr)Yt._$.range=[l[l.length-(Ot||1)].range[0],l[l.length-1].range[1]];if(pe=this.performAction.apply(Yt,[u,Xe,Zt,Pt.yy,bt[1],it,l].concat(Ir)),typeof pe<"u")return pe;if(Ot)U=U.slice(0,-1*Ot*2),it=it.slice(0,-1*Ot),l=l.slice(0,-1*Ot);U.push(this.productions_[bt[1]][0]),it.push(Yt.$),l.push(Yt._$),je=zt[U[U.length-2]][U[U.length-1]],U.push(je);break;case 3:return!0}}return!0},"parse")},xr=function(){var St={EOF:1,parseError:t(function(X,U){if(this.yy.parser)this.yy.parser.parseError(X,U);else throw Error(X)},"parseError"),setInput:t(function(F,X){if(this.yy=X||this.yy||{},this._input=F,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];return this.offset=0,this},"setInput"),input:t(function(){var F=this._input[0];this.yytext+=F,this.yyleng++,this.offset++,this.match+=F,this.matched+=F;var X=F.match(/(?:\r\n?|\n).*/g);if(X)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),F},"input"),unput:t(function(F){var X=F.length,U=F.split(/(?:\r\n?|\n)/g);this._input=F+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-X),this.offset-=X;var S=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),U.length-1)this.yylineno-=U.length-1;var it=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:U?(U.length===S.length?this.yylloc.first_column:0)+S[S.length-U.length].length-U[0].length:this.yylloc.first_column-X},this.options.ranges)this.yylloc.range=[it[0],it[0]+this.yyleng-X];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(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(function(F){this.unput(this.match.slice(F))},"less"),pastInput:t(function(){var F=this.matched.substr(0,this.matched.length-this.match.length);return(F.length>20?"...":"")+F.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var F=this.match;if(F.length<20)F+=this._input.substr(0,20-F.length);return(F.substr(0,20)+(F.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var F=this.pastInput(),X=Array(F.length+1).join("-");return F+this.upcomingInput()+`
5
- `+X+"^"},"showPosition"),test_match:t(function(F,X){var U,S,it;if(this.options.backtrack_lexer){if(it={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)it.yylloc.range=this.yylloc.range.slice(0)}if(S=F[0].match(/(?:\r\n?|\n).*/g),S)this.yylineno+=S.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:S?S[S.length-1].length-S[S.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+F[0].length},this.yytext+=F[0],this.match+=F[0],this.matches=F,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(F[0].length),this.matched+=F[0],U=this.performAction.call(this,this.yy,this,X,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(U)return U;else if(this._backtrack){for(var l in it)this[l]=it[l];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var F,X,U,S;if(!this._more)this.yytext="",this.match="";var it=this._currentRules();for(var l=0;l<it.length;l++)if(U=this._input.match(this.rules[it[l]]),U&&(!X||U[0].length>X[0].length)){if(X=U,S=l,this.options.backtrack_lexer)if(F=this.test_match(U,it[l]),F!==!1)return F;else if(this._backtrack){X=!1;continue}else return!1;else if(!this.options.flex)break}if(X){if(F=this.test_match(X,it[S]),F!==!1)return F;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var X=this.next();if(X)return X;else return this.lex()},"lex"),begin:t(function(X){this.conditionStack.push(X)},"begin"),popState:t(function(){var X=this.conditionStack.length-1;if(X>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(X){if(X=this.conditionStack.length-1-Math.abs(X||0),X>=0)return this.conditionStack[X];else return"INITIAL"},"topState"),pushState:t(function(X){this.begin(X)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(X,U,S,it){var l=it;switch(S){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 20;case 7:return this.begin("CONFIG"),75;break;case 8:return 76;case 9:return this.popState(),this.begin("ALIAS"),77;break;case 10:return this.popState(),this.popState(),77;break;case 11:return U.yytext=U.yytext.trim(),73;break;case 12:return U.yytext=U.yytext.trim(),this.begin("ALIAS"),73;break;case 13:return U.yytext=U.yytext.trim(),this.popState(),73;break;case 14:return this.popState(),10;break;case 15:return U.yytext=U.yytext.trim(),this.popState(),10;break;case 16:return this.begin("LINE"),15;break;case 17:return this.begin("ID"),51;break;case 18:return this.begin("ID"),53;break;case 19:return 14;case 20:return this.begin("ID"),54;break;case 21:return this.popState(),this.popState(),this.begin("LINE"),52;break;case 22:return this.popState(),this.popState(),5;break;case 23:return this.begin("LINE"),37;break;case 24:return this.begin("LINE"),38;break;case 25:return this.begin("LINE"),39;break;case 26:return this.begin("LINE"),40;break;case 27:return this.begin("LINE"),50;break;case 28:return this.begin("LINE"),42;break;case 29:return this.begin("LINE"),44;break;case 30:return this.begin("LINE"),49;break;case 31:return this.begin("LINE"),45;break;case 32:return this.begin("LINE"),48;break;case 33:return this.begin("LINE"),47;break;case 34:return this.popState(),16;break;case 35:return 17;case 36:return 67;case 37:return 68;case 38:return 61;case 39:return 62;case 40:return 63;case 41:return 64;case 42:return 59;case 43:return 56;case 44:return this.begin("ID"),22;break;case 45:return this.begin("ID"),24;break;case 46:return 30;case 47:return 31;case 48:return this.begin("acc_title"),32;break;case 49:return this.popState(),"acc_title_value";break;case 50:return this.begin("acc_descr"),34;break;case 51:return this.popState(),"acc_descr_value";break;case 52:this.begin("acc_descr_multiline");break;case 53:this.popState();break;case 54:return"acc_descr_multiline_value";case 55:return 6;case 56:return 19;case 57:return 21;case 58:return 66;case 59:return 5;case 60:return U.yytext=U.yytext.trim(),73;break;case 61:return 80;case 62:return 97;case 63:return 98;case 64:return 99;case 65:return 78;case 66:return 79;case 67:return 100;case 68:return 101;case 69:return 102;case 70:return 103;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 93;case 76:return 94;case 77:return 95;case 78:return 96;case 79:return 81;case 80:return 82;case 81:return 83;case 82:return 84;case 83:return 89;case 84:return 90;case 85:return 91;case 86:return 92;case 87:return 104;case 88:return 104;case 89:return 70;case 90:return 71;case 91:return 72;case 92:return 5;case 93:return 10}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\}(?=\s+as\s))/i,/^(?:\})/i,/^(?:[^<>:\n,;@\s]+(?=\s*@\{))/i,/^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,/^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,/^(?:[^<>:\n,;@]*<[^\n]*)/i,/^(?:[^\n]+)/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/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(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:link(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:properties(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:details(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/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,/^(?:--\|\\)/i,/^(?:--\|\/)/i,/^(?:--\\\\)/i,/^(?:--\/\/)/i,/^(?:\/\|--)/i,/^(?:\\\|--)/i,/^(?:\/\/--)/i,/^(?:\\\\--)/i,/^(?:-\|\\)/i,/^(?:-\|\/)/i,/^(?:-\\\\)/i,/^(?:-\/\/)/i,/^(?:\/\|-)/i,/^(?:\\\|-)/i,/^(?:\/\/-)/i,/^(?:\\\\-)/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\(\))/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[53,54],inclusive:!1},acc_descr:{rules:[51],inclusive:!1},acc_title:{rules:[49],inclusive:!1},ID:{rules:[2,3,7,11,12,13,14,15],inclusive:!1},ALIAS:{rules:[2,3,21,22],inclusive:!1},LINE:{rules:[2,3,34],inclusive:!1},CONFIG:{rules:[8,9,10],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,16,17,18,19,20,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,50,52,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],inclusive:!0}}};return St}();le.lexer=xr;function Jt(){this.yy={}}return t(Jt,"Parser"),Jt.prototype=le,le.Parser=Jt,new Jt}();fe.parser=fe;var Or=fe,Lr={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,SOLID_TOP:41,SOLID_BOTTOM:42,STICK_TOP:43,STICK_BOTTOM:44,SOLID_ARROW_TOP_REVERSE:45,SOLID_ARROW_BOTTOM_REVERSE:46,STICK_ARROW_TOP_REVERSE:47,STICK_ARROW_BOTTOM_REVERSE:48,SOLID_TOP_DOTTED:51,SOLID_BOTTOM_DOTTED:52,STICK_TOP_DOTTED:53,STICK_BOTTOM_DOTTED:54,SOLID_ARROW_TOP_REVERSE_DOTTED:55,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:56,STICK_ARROW_TOP_REVERSE_DOTTED:57,STICK_ARROW_BOTTOM_REVERSE_DOTTED:58,CENTRAL_CONNECTION:59,CENTRAL_CONNECTION_REVERSE:60,CENTRAL_CONNECTION_DUAL:61},mr={FILLED:0,OPEN:1},Sr={LEFTOF:0,RIGHTOF:1,OVER:2},te={ACTOR:"actor",BOUNDARY:"boundary",COLLECTIONS:"collections",CONTROL:"control",DATABASE:"database",ENTITY:"entity",PARTICIPANT:"participant",QUEUE:"queue"},Ar=class{constructor(){this.state=new Tr(()=>({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,this.setAccDescription=P,this.setDiagramTitle=O,this.getAccTitle=R,this.getAccDescription=I,this.getDiagramTitle=D,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap(d().wrap),this.LINETYPE=Lr,this.ARROWTYPE=mr,this.PLACEMENT=Sr}static{t(this,"SequenceDB")}addBox(r){this.state.records.boxes.push({name:r.text,wrap:r.wrap??this.autoWrap(),fill:r.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(r,e,s,a,o){let h=this.state.records.currentBox,n;if(o!==void 0){let f;if(!o.includes(`
3
+ Expecting `+jt.join(", ")+", got '"+(this.terminals_[pt]||pt)+"'";else Ee="Parse error on line "+(Zt+1)+": Unexpected "+(pt==Je?"end of input":"'"+(this.terminals_[pt]||pt)+"'");this.parseError(Ee,{text:Tt.match,token:this.terminals_[pt]||pt,line:Tt.yylineno,loc:de,expected:jt})}if(bt[0]instanceof Array&&bt.length>1)throw Error("Parse Error: multiple actions possible at state: "+Dt+", token: "+pt);switch(bt[0]){case 1:if(G.push(pt),it.push(Tt.yytext),l.push(Tt.yylloc),G.push(bt[1]),pt=null,!Te){if(Xe=Tt.yyleng,u=Tt.yytext,Zt=Tt.yylineno,de=Tt.yylloc,Qe>0)Qe--}else pt=Te,Te=null;break;case 2:if(Ot=this.productions_[bt[1]][1],Yt.$=it[it.length-Ot],Yt._$={first_line:l[l.length-(Ot||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(Ot||1)].first_column,last_column:l[l.length-1].last_column},yr)Yt._$.range=[l[l.length-(Ot||1)].range[0],l[l.length-1].range[1]];if(pe=this.performAction.apply(Yt,[u,Xe,Zt,Pt.yy,bt[1],it,l].concat(Ir)),typeof pe<"u")return pe;if(Ot)G=G.slice(0,-1*Ot*2),it=it.slice(0,-1*Ot),l=l.slice(0,-1*Ot);G.push(this.productions_[bt[1]][0]),it.push(Yt.$),l.push(Yt._$),je=zt[G[G.length-2]][G[G.length-1]],G.push(je);break;case 3:return!0}}return!0},"parse")},xr=function(){var St={EOF:1,parseError:t(function(Q,G){if(this.yy.parser)this.yy.parser.parseError(Q,G);else throw Error(Q)},"parseError"),setInput:t(function(F,Q){if(this.yy=Q||this.yy||{},this._input=F,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];return this.offset=0,this},"setInput"),input:t(function(){var F=this._input[0];this.yytext+=F,this.yyleng++,this.offset++,this.match+=F,this.matched+=F;var Q=F.match(/(?:\r\n?|\n).*/g);if(Q)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),F},"input"),unput:t(function(F){var Q=F.length,G=F.split(/(?:\r\n?|\n)/g);this._input=F+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Q),this.offset-=Q;var S=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),G.length-1)this.yylineno-=G.length-1;var it=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:G?(G.length===S.length?this.yylloc.first_column:0)+S[S.length-G.length].length-G[0].length:this.yylloc.first_column-Q},this.options.ranges)this.yylloc.range=[it[0],it[0]+this.yyleng-Q];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(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(function(F){this.unput(this.match.slice(F))},"less"),pastInput:t(function(){var F=this.matched.substr(0,this.matched.length-this.match.length);return(F.length>20?"...":"")+F.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var F=this.match;if(F.length<20)F+=this._input.substr(0,20-F.length);return(F.substr(0,20)+(F.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var F=this.pastInput(),Q=Array(F.length+1).join("-");return F+this.upcomingInput()+`
5
+ `+Q+"^"},"showPosition"),test_match:t(function(F,Q){var G,S,it;if(this.options.backtrack_lexer){if(it={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)it.yylloc.range=this.yylloc.range.slice(0)}if(S=F[0].match(/(?:\r\n?|\n).*/g),S)this.yylineno+=S.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:S?S[S.length-1].length-S[S.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+F[0].length},this.yytext+=F[0],this.match+=F[0],this.matches=F,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(F[0].length),this.matched+=F[0],G=this.performAction.call(this,this.yy,this,Q,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(G)return G;else if(this._backtrack){for(var l in it)this[l]=it[l];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var F,Q,G,S;if(!this._more)this.yytext="",this.match="";var it=this._currentRules();for(var l=0;l<it.length;l++)if(G=this._input.match(this.rules[it[l]]),G&&(!Q||G[0].length>Q[0].length)){if(Q=G,S=l,this.options.backtrack_lexer)if(F=this.test_match(G,it[l]),F!==!1)return F;else if(this._backtrack){Q=!1;continue}else return!1;else if(!this.options.flex)break}if(Q){if(F=this.test_match(Q,it[S]),F!==!1)return F;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var Q=this.next();if(Q)return Q;else return this.lex()},"lex"),begin:t(function(Q){this.conditionStack.push(Q)},"begin"),popState:t(function(){var Q=this.conditionStack.length-1;if(Q>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(Q){if(Q=this.conditionStack.length-1-Math.abs(Q||0),Q>=0)return this.conditionStack[Q];else return"INITIAL"},"topState"),pushState:t(function(Q){this.begin(Q)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(Q,G,S,it){var l=it;switch(S){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 20;case 7:return this.begin("CONFIG"),75;break;case 8:return 76;case 9:return this.popState(),this.begin("ALIAS"),77;break;case 10:return this.popState(),this.popState(),77;break;case 11:return G.yytext=G.yytext.trim(),73;break;case 12:return G.yytext=G.yytext.trim(),this.begin("ALIAS"),73;break;case 13:return G.yytext=G.yytext.trim(),this.popState(),73;break;case 14:return this.popState(),10;break;case 15:return G.yytext=G.yytext.trim(),this.popState(),10;break;case 16:return this.begin("LINE"),15;break;case 17:return this.begin("ID"),51;break;case 18:return this.begin("ID"),53;break;case 19:return 14;case 20:return this.begin("ID"),54;break;case 21:return this.popState(),this.popState(),this.begin("LINE"),52;break;case 22:return this.popState(),this.popState(),5;break;case 23:return this.begin("LINE"),37;break;case 24:return this.begin("LINE"),38;break;case 25:return this.begin("LINE"),39;break;case 26:return this.begin("LINE"),40;break;case 27:return this.begin("LINE"),50;break;case 28:return this.begin("LINE"),42;break;case 29:return this.begin("LINE"),44;break;case 30:return this.begin("LINE"),49;break;case 31:return this.begin("LINE"),45;break;case 32:return this.begin("LINE"),48;break;case 33:return this.begin("LINE"),47;break;case 34:return this.popState(),16;break;case 35:return 17;case 36:return 67;case 37:return 68;case 38:return 61;case 39:return 62;case 40:return 63;case 41:return 64;case 42:return 59;case 43:return 56;case 44:return this.begin("ID"),22;break;case 45:return this.begin("ID"),24;break;case 46:return 30;case 47:return 31;case 48:return this.begin("acc_title"),32;break;case 49:return this.popState(),"acc_title_value";break;case 50:return this.begin("acc_descr"),34;break;case 51:return this.popState(),"acc_descr_value";break;case 52:this.begin("acc_descr_multiline");break;case 53:this.popState();break;case 54:return"acc_descr_multiline_value";case 55:return 6;case 56:return 19;case 57:return 21;case 58:return 66;case 59:return 5;case 60:return G.yytext=G.yytext.trim(),73;break;case 61:return 80;case 62:return 97;case 63:return 98;case 64:return 99;case 65:return 78;case 66:return 79;case 67:return 100;case 68:return 101;case 69:return 102;case 70:return 103;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 93;case 76:return 94;case 77:return 95;case 78:return 96;case 79:return 81;case 80:return 82;case 81:return 83;case 82:return 84;case 83:return 89;case 84:return 90;case 85:return 91;case 86:return 92;case 87:return 104;case 88:return 104;case 89:return 70;case 90:return 71;case 91:return 72;case 92:return 5;case 93:return 10}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\}(?=\s+as\s))/i,/^(?:\})/i,/^(?:[^<>:\n,;@\s]+(?=\s*@\{))/i,/^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,/^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,/^(?:[^<>:\n,;@]*<[^\n]*)/i,/^(?:[^\n]+)/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/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(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:link(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:properties(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:details(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/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,/^(?:--\|\\)/i,/^(?:--\|\/)/i,/^(?:--\\\\)/i,/^(?:--\/\/)/i,/^(?:\/\|--)/i,/^(?:\\\|--)/i,/^(?:\/\/--)/i,/^(?:\\\\--)/i,/^(?:-\|\\)/i,/^(?:-\|\/)/i,/^(?:-\\\\)/i,/^(?:-\/\/)/i,/^(?:\/\|-)/i,/^(?:\\\|-)/i,/^(?:\/\/-)/i,/^(?:\\\\-)/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\(\))/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[53,54],inclusive:!1},acc_descr:{rules:[51],inclusive:!1},acc_title:{rules:[49],inclusive:!1},ID:{rules:[2,3,7,11,12,13,14,15],inclusive:!1},ALIAS:{rules:[2,3,21,22],inclusive:!1},LINE:{rules:[2,3,34],inclusive:!1},CONFIG:{rules:[8,9,10],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,16,17,18,19,20,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,50,52,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],inclusive:!0}}};return St}();le.lexer=xr;function Jt(){this.yy={}}return t(Jt,"Parser"),Jt.prototype=le,le.Parser=Jt,new Jt}();fe.parser=fe;var Or=fe,Lr={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,SOLID_TOP:41,SOLID_BOTTOM:42,STICK_TOP:43,STICK_BOTTOM:44,SOLID_ARROW_TOP_REVERSE:45,SOLID_ARROW_BOTTOM_REVERSE:46,STICK_ARROW_TOP_REVERSE:47,STICK_ARROW_BOTTOM_REVERSE:48,SOLID_TOP_DOTTED:51,SOLID_BOTTOM_DOTTED:52,STICK_TOP_DOTTED:53,STICK_BOTTOM_DOTTED:54,SOLID_ARROW_TOP_REVERSE_DOTTED:55,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:56,STICK_ARROW_TOP_REVERSE_DOTTED:57,STICK_ARROW_BOTTOM_REVERSE_DOTTED:58,CENTRAL_CONNECTION:59,CENTRAL_CONNECTION_REVERSE:60,CENTRAL_CONNECTION_DUAL:61},mr={FILLED:0,OPEN:1},Sr={LEFTOF:0,RIGHTOF:1,OVER:2},te={ACTOR:"actor",BOUNDARY:"boundary",COLLECTIONS:"collections",CONTROL:"control",DATABASE:"database",ENTITY:"entity",PARTICIPANT:"participant",QUEUE:"queue"},Ar=class{constructor(){this.state=new Tr(()=>({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,this.setAccDescription=P,this.setDiagramTitle=O,this.getAccTitle=R,this.getAccDescription=I,this.getDiagramTitle=D,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap(d().wrap),this.LINETYPE=Lr,this.ARROWTYPE=mr,this.PLACEMENT=Sr}static{t(this,"SequenceDB")}addBox(r){this.state.records.boxes.push({name:r.text,wrap:r.wrap??this.autoWrap(),fill:r.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(r,e,s,a,o){let h=this.state.records.currentBox,n;if(o!==void 0){let f;if(!o.includes(`
7
7
  `))f=`{
8
8
  `+o+`
9
9
  }`;else f=o+`
10
- `;n=Vt(f,{schema:qt})}if(a=n?.type??a,n?.alias&&(!s||s.text===e))s={text:n.alias,wrap:s?.wrap,type:a};let c=this.state.records.actors.get(r);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(h=c.box?c.box:this.state.records.currentBox,c.box=h,c&&e===c.name&&s==null)return}if(s?.text==null)s={text:e,type:a};if(a==null||s.text==null)s={text:e,type:a};if(this.state.records.actors.set(r,{box:h,name:e,description:s.text,wrap:s.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:a??"participant"}),this.state.records.prevActor){let f=this.state.records.actors.get(this.state.records.prevActor);if(f)f.nextActor=r}if(this.state.records.currentBox)this.state.records.currentBox.actorKeys.push(r);this.state.records.prevActor=r}activationCount(r){let e,s=0;if(!r)return 0;for(e=0;e<this.state.records.messages.length;e++){if(this.state.records.messages[e].type===this.LINETYPE.ACTIVE_START&&this.state.records.messages[e].from===r)s++;if(this.state.records.messages[e].type===this.LINETYPE.ACTIVE_END&&this.state.records.messages[e].from===r)s--}return s}addMessage(r,e,s,a){this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:r,to:e,message:s.text,wrap:s.wrap??this.autoWrap(),answer:a})}addSignal(r,e,s,a,o=!1,h){if(a===this.LINETYPE.ACTIVE_END){if(this.activationCount(r??"")<1){let c=Error("Trying to inactivate an inactive participant ("+r+")");throw c.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},c}}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:r,to:e,message:s?.text??"",wrap:s?.wrap??this.autoWrap(),type:a,activate:o,centralConnection:h??0}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some((r)=>r.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(r){return this.state.records.actors.get(r)}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(r){this.state.records.wrapEnabled=r}extractWrap(r){if(r===void 0)return{};r=r.trim();let e=/^:?wrap:/.exec(r)!==null?!0:/^:?nowrap:/.exec(r)!==null?!1:void 0;return{cleanedText:(e===void 0?r:r.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:e}}autoWrap(){if(this.state.records.wrapEnabled!==void 0)return this.state.records.wrapEnabled;return d().sequence?.wrap??!1}clear(){this.state.reset(),L()}parseMessage(r){let e=r.trim(),{wrap:s,cleanedText:a}=this.extractWrap(e),o={text:a,wrap:s};return i.debug(`parseMessage: ${JSON.stringify(o)}`),o}parseBoxData(r){let e=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(r),s=e?.[1]?e[1].trim():"transparent",a=e?.[2]?e[2].trim():void 0;if(window?.CSS){if(!window.CSS.supports("color",s))s="transparent",a=r.trim()}else{let n=new Option().style;if(n.color=s,n.color!==s)s="transparent",a=r.trim()}let{wrap:o,cleanedText:h}=this.extractWrap(a);return{text:h?j(h,d()):void 0,color:s,wrap:o}}addNote(r,e,s){let a={actor:r,placement:e,message:s.text,wrap:s.wrap??this.autoWrap()},o=[].concat(r,r);this.state.records.notes.push(a),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:o[0],to:o[1],message:s.text,wrap:s.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:e})}addLinks(r,e){let s=this.getActor(r);try{let a=j(e.text,d());a=a.replace(/&equals;/g,"="),a=a.replace(/&amp;/g,"&");let o=JSON.parse(a);this.insertLinks(s,o)}catch(a){i.error("error while parsing actor link text",a)}}addALink(r,e){let s=this.getActor(r);try{let a={},o=j(e.text,d()),h=o.indexOf("@");o=o.replace(/&equals;/g,"="),o=o.replace(/&amp;/g,"&");let n=o.slice(0,h-1).trim(),c=o.slice(h+1).trim();a[n]=c,this.insertLinks(s,a)}catch(a){i.error("error while parsing actor link text",a)}}insertLinks(r,e){if(r.links==null)r.links=e;else for(let s in e)r.links[s]=e[s]}addProperties(r,e){let s=this.getActor(r);try{let a=j(e.text,d()),o=JSON.parse(a);this.insertProperties(s,o)}catch(a){i.error("error while parsing actor properties text",a)}}insertProperties(r,e){if(r.properties==null)r.properties=e;else for(let s in e)r.properties[s]=e[s]}boxEnd(){this.state.records.currentBox=void 0}addDetails(r,e){let s=this.getActor(r),a=document.getElementById(e.text);try{let o=a.innerHTML,h=JSON.parse(o);if(h.properties)this.insertProperties(s,h.properties);if(h.links)this.insertLinks(s,h.links)}catch(o){i.error("error while parsing actor details text",o)}}getActorProperty(r,e){if(r?.properties!==void 0)return r.properties[e];return}apply(r){if(Array.isArray(r))r.forEach((e)=>{this.apply(e)});else switch(r.type){case"sequenceIndex":this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:r.sequenceIndex,step:r.sequenceIndexStep,visible:r.sequenceVisible},wrap:!1,type:r.signalType});break;case"addParticipant":this.addActor(r.actor,r.actor,r.description,r.draw,r.config);break;case"createParticipant":if(this.state.records.actors.has(r.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=r.actor,this.addActor(r.actor,r.actor,r.description,r.draw,r.config),this.state.records.createdActors.set(r.actor,this.state.records.messages.length);break;case"destroyParticipant":this.state.records.lastDestroyed=r.actor,this.state.records.destroyedActors.set(r.actor,this.state.records.messages.length);break;case"activeStart":this.addSignal(r.actor,void 0,void 0,r.signalType);break;case"centralConnection":this.addSignal(r.actor,void 0,void 0,r.signalType);break;case"centralConnectionReverse":this.addSignal(r.actor,void 0,void 0,r.signalType);break;case"activeEnd":this.addSignal(r.actor,void 0,void 0,r.signalType);break;case"addNote":this.addNote(r.actor,r.placement,r.text);break;case"addLinks":this.addLinks(r.actor,r.text);break;case"addALink":this.addALink(r.actor,r.text);break;case"addProperties":this.addProperties(r.actor,r.text);break;case"addDetails":this.addDetails(r.actor,r.text);break;case"addMessage":if(this.state.records.lastCreated)if(r.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.");else this.state.records.lastCreated=void 0;else if(this.state.records.lastDestroyed)if(r.to!==this.state.records.lastDestroyed&&r.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.");else this.state.records.lastDestroyed=void 0;this.addSignal(r.from,r.to,r.msg,r.signalType,r.activate,r.centralConnection);break;case"boxStart":this.addBox(r.boxData);break;case"boxEnd":this.boxEnd();break;case"loopStart":this.addSignal(void 0,void 0,r.loopText,r.signalType);break;case"loopEnd":this.addSignal(void 0,void 0,void 0,r.signalType);break;case"rectStart":this.addSignal(void 0,void 0,r.color,r.signalType);break;case"rectEnd":this.addSignal(void 0,void 0,void 0,r.signalType);break;case"optStart":this.addSignal(void 0,void 0,r.optText,r.signalType);break;case"optEnd":this.addSignal(void 0,void 0,void 0,r.signalType);break;case"altStart":this.addSignal(void 0,void 0,r.altText,r.signalType);break;case"else":this.addSignal(void 0,void 0,r.altText,r.signalType);break;case"altEnd":this.addSignal(void 0,void 0,void 0,r.signalType);break;case"setAccTitle":N(r.text);break;case"parStart":this.addSignal(void 0,void 0,r.parText,r.signalType);break;case"and":this.addSignal(void 0,void 0,r.parText,r.signalType);break;case"parEnd":this.addSignal(void 0,void 0,void 0,r.signalType);break;case"criticalStart":this.addSignal(void 0,void 0,r.criticalText,r.signalType);break;case"option":this.addSignal(void 0,void 0,r.optionText,r.signalType);break;case"criticalEnd":this.addSignal(void 0,void 0,void 0,r.signalType);break;case"breakStart":this.addSignal(void 0,void 0,r.breakText,r.signalType);break;case"breakEnd":this.addSignal(void 0,void 0,void 0,r.signalType);break}}getConfig(){return d().sequence}},kr=t((r)=>{let e=r.dropShadow??"none",{look:s}=d();return`.actor {
10
+ `;n=Vt(f,{schema:qt})}if(a=n?.type??a,n?.alias&&(!s||s.text===e))s={text:n.alias,wrap:s?.wrap,type:a};let c=this.state.records.actors.get(r);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(h=c.box?c.box:this.state.records.currentBox,c.box=h,c&&e===c.name&&s==null)return}if(s?.text==null)s={text:e,type:a};if(a==null||s.text==null)s={text:e,type:a};if(this.state.records.actors.set(r,{box:h,name:e,description:s.text,wrap:s.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:a??"participant"}),this.state.records.prevActor){let f=this.state.records.actors.get(this.state.records.prevActor);if(f)f.nextActor=r}if(this.state.records.currentBox)this.state.records.currentBox.actorKeys.push(r);this.state.records.prevActor=r}activationCount(r){let e,s=0;if(!r)return 0;for(e=0;e<this.state.records.messages.length;e++){if(this.state.records.messages[e].type===this.LINETYPE.ACTIVE_START&&this.state.records.messages[e].from===r)s++;if(this.state.records.messages[e].type===this.LINETYPE.ACTIVE_END&&this.state.records.messages[e].from===r)s--}return s}addMessage(r,e,s,a){this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:r,to:e,message:s.text,wrap:s.wrap??this.autoWrap(),answer:a})}addSignal(r,e,s,a,o=!1,h){if(a===this.LINETYPE.ACTIVE_END){if(this.activationCount(r??"")<1){let c=Error("Trying to inactivate an inactive participant ("+r+")");throw c.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},c}}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:r,to:e,message:s?.text??"",wrap:s?.wrap??this.autoWrap(),type:a,activate:o,centralConnection:h??0}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some((r)=>r.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(r){return this.state.records.actors.get(r)}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(r){this.state.records.wrapEnabled=r}extractWrap(r){if(r===void 0)return{};r=r.trim();let e=/^:?wrap:/.exec(r)!==null?!0:/^:?nowrap:/.exec(r)!==null?!1:void 0;return{cleanedText:(e===void 0?r:r.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:e}}autoWrap(){if(this.state.records.wrapEnabled!==void 0)return this.state.records.wrapEnabled;return d().sequence?.wrap??!1}clear(){this.state.reset(),L()}parseMessage(r){let e=r.trim(),{wrap:s,cleanedText:a}=this.extractWrap(e),o={text:a,wrap:s};return i.debug(`parseMessage: ${JSON.stringify(o)}`),o}parseBoxData(r){let e=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(r),s=e?.[1]?e[1].trim():"transparent",a=e?.[2]?e[2].trim():void 0;if(window?.CSS){if(!window.CSS.supports("color",s))s="transparent",a=r.trim()}else{let n=new Option().style;if(n.color=s,n.color!==s)s="transparent",a=r.trim()}let{wrap:o,cleanedText:h}=this.extractWrap(a);return{text:h?q(h,d()):void 0,color:s,wrap:o}}addNote(r,e,s){let a={actor:r,placement:e,message:s.text,wrap:s.wrap??this.autoWrap()},o=[].concat(r,r);this.state.records.notes.push(a),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:o[0],to:o[1],message:s.text,wrap:s.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:e})}addLinks(r,e){let s=this.getActor(r);try{let a=q(e.text,d());a=a.replace(/&equals;/g,"="),a=a.replace(/&amp;/g,"&");let o=JSON.parse(a);this.insertLinks(s,o)}catch(a){i.error("error while parsing actor link text",a)}}addALink(r,e){let s=this.getActor(r);try{let a={},o=q(e.text,d()),h=o.indexOf("@");o=o.replace(/&equals;/g,"="),o=o.replace(/&amp;/g,"&");let n=o.slice(0,h-1).trim(),c=o.slice(h+1).trim();a[n]=c,this.insertLinks(s,a)}catch(a){i.error("error while parsing actor link text",a)}}insertLinks(r,e){if(r.links==null)r.links=e;else for(let s in e)r.links[s]=e[s]}addProperties(r,e){let s=this.getActor(r);try{let a=q(e.text,d()),o=JSON.parse(a);this.insertProperties(s,o)}catch(a){i.error("error while parsing actor properties text",a)}}insertProperties(r,e){if(r.properties==null)r.properties=e;else for(let s in e)r.properties[s]=e[s]}boxEnd(){this.state.records.currentBox=void 0}addDetails(r,e){let s=this.getActor(r),a=document.getElementById(e.text);try{let o=a.innerHTML,h=JSON.parse(o);if(h.properties)this.insertProperties(s,h.properties);if(h.links)this.insertLinks(s,h.links)}catch(o){i.error("error while parsing actor details text",o)}}getActorProperty(r,e){if(r?.properties!==void 0)return r.properties[e];return}apply(r){if(Array.isArray(r))r.forEach((e)=>{this.apply(e)});else switch(r.type){case"sequenceIndex":this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:r.sequenceIndex,step:r.sequenceIndexStep,visible:r.sequenceVisible},wrap:!1,type:r.signalType});break;case"addParticipant":this.addActor(r.actor,r.actor,r.description,r.draw,r.config);break;case"createParticipant":if(this.state.records.actors.has(r.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=r.actor,this.addActor(r.actor,r.actor,r.description,r.draw,r.config),this.state.records.createdActors.set(r.actor,this.state.records.messages.length);break;case"destroyParticipant":this.state.records.lastDestroyed=r.actor,this.state.records.destroyedActors.set(r.actor,this.state.records.messages.length);break;case"activeStart":this.addSignal(r.actor,void 0,void 0,r.signalType);break;case"centralConnection":this.addSignal(r.actor,void 0,void 0,r.signalType);break;case"centralConnectionReverse":this.addSignal(r.actor,void 0,void 0,r.signalType);break;case"activeEnd":this.addSignal(r.actor,void 0,void 0,r.signalType);break;case"addNote":this.addNote(r.actor,r.placement,r.text);break;case"addLinks":this.addLinks(r.actor,r.text);break;case"addALink":this.addALink(r.actor,r.text);break;case"addProperties":this.addProperties(r.actor,r.text);break;case"addDetails":this.addDetails(r.actor,r.text);break;case"addMessage":if(this.state.records.lastCreated)if(r.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.");else this.state.records.lastCreated=void 0;else if(this.state.records.lastDestroyed)if(r.to!==this.state.records.lastDestroyed&&r.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.");else this.state.records.lastDestroyed=void 0;this.addSignal(r.from,r.to,r.msg,r.signalType,r.activate,r.centralConnection);break;case"boxStart":this.addBox(r.boxData);break;case"boxEnd":this.boxEnd();break;case"loopStart":this.addSignal(void 0,void 0,r.loopText,r.signalType);break;case"loopEnd":this.addSignal(void 0,void 0,void 0,r.signalType);break;case"rectStart":this.addSignal(void 0,void 0,r.color,r.signalType);break;case"rectEnd":this.addSignal(void 0,void 0,void 0,r.signalType);break;case"optStart":this.addSignal(void 0,void 0,r.optText,r.signalType);break;case"optEnd":this.addSignal(void 0,void 0,void 0,r.signalType);break;case"altStart":this.addSignal(void 0,void 0,r.altText,r.signalType);break;case"else":this.addSignal(void 0,void 0,r.altText,r.signalType);break;case"altEnd":this.addSignal(void 0,void 0,void 0,r.signalType);break;case"setAccTitle":N(r.text);break;case"parStart":this.addSignal(void 0,void 0,r.parText,r.signalType);break;case"and":this.addSignal(void 0,void 0,r.parText,r.signalType);break;case"parEnd":this.addSignal(void 0,void 0,void 0,r.signalType);break;case"criticalStart":this.addSignal(void 0,void 0,r.criticalText,r.signalType);break;case"option":this.addSignal(void 0,void 0,r.optionText,r.signalType);break;case"criticalEnd":this.addSignal(void 0,void 0,void 0,r.signalType);break;case"breakStart":this.addSignal(void 0,void 0,r.breakText,r.signalType);break;case"breakEnd":this.addSignal(void 0,void 0,void 0,r.signalType);break}}getConfig(){return d().sequence}},kr=t((r)=>{let e=r.dropShadow??"none",{look:s}=d();return`.actor {
11
11
  stroke: ${r.actorBorder};
12
12
  fill: ${r.actorBkg};
13
13
  stroke-width: ${r.strokeWidth??1};
@@ -153,17 +153,17 @@ Expecting `+jt.join(", ")+", got '"+(this.terminals_[pt]||pt)+"'";else Ee="Parse
153
153
  filter: ${e};
154
154
  stroke: ${r.nodeBorder};
155
155
  }
156
- `},"getStyles"),Nr=kr,ae=44,be=6,ee=6,wr=t((r,e)=>r.actorTextHeight??H.calculateTextDimensions(r.description??"",{fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight}).height,"actorLabelHeight"),ar=t((r)=>ae+be+r+ee,"actorStackHeight"),Pr=t((r,e,s)=>{let a=r+e,o=a-ee-s/2;return{lifelineStartY:a,glyphBottomY:a-ee-s-be,labelCenterY:o}},"headerBands"),Dr=t((r,e)=>{let s=r+ee,a=s+ae;return{glyphTopY:s,glyphBottomY:a,labelCenterY:a+be+e/2,stackHeight:ar(e)}},"footerBands"),vt=36,vr=-5,sr=60,tr=sr-vr,Gt=t((r,e,s,a)=>{if(e.look!=="neo")return null;let o=wr(r,e);return s?Dr(a,o):Pr(a,r.height,o)},"neoBands"),At="actor-top",kt="actor-bottom",se="actor-box",Ct="actor-man",Lt=new Set(["redux-color","redux-dark-color"]),ht=t((r,e)=>r?.length?r[e%r.length]:void 0,"paletteColor"),Ut=t(function(r,e){let s=dr(r,e);if(A().look==="neo")s.attr("data-look","neo");return s},"drawRect"),Cr=t(function(r,e,s,a,o){if(e.links===void 0||e.links===null||Object.keys(e.links).length===0)return{height:0,width:0};let{links:h,actorCnt:n,rectData:c}=e;var f="none";if(o)f="block !important";let E=r.append("g");E.attr("id","actor"+n+"_popup"),E.attr("class","actorPopupMenu"),E.attr("display",f);var _="";if(c.class!==void 0)_=" "+c.class;let x=c.width>s?c.width:s,b=E.append("rect");if(b.attr("class","actorPopupMenuPanel"+_),b.attr("x",c.x),b.attr("y",c.height),b.attr("fill",c.fill),b.attr("stroke",c.stroke),b.attr("width",x),b.attr("height",c.height),b.attr("rx",c.rx),b.attr("ry",c.ry),h!=null){var M=20;for(let p in h){var y=E.append("a"),w=xe.sanitizeUrl(h[p]);y.attr("xlink:href",w),y.attr("target","_blank"),sa(a)(p,y,c.x+10,c.height+M,x,20,{class:"actor"},a),M+=30}}return b.attr("height",M),{height:c.height+M,width:x}},"drawPopup"),ie=t(function(r){return"var pu = document.getElementById('"+r+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),re=t(async function(r,e,s=null){let a=r.append("foreignObject"),o=await Ga(e.text,A()),n=a.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(o).node().getBoundingClientRect();if(a.attr("height",Math.round(n.height)).attr("width",Math.round(n.width)),e.class==="noteText"){let c=r.node().firstChild;c.setAttribute("height",n.height+2*e.textMargin);let f=c.getBBox();a.attr("x",Math.round(f.x+f.width/2-n.width/2)).attr("y",Math.round(f.y+f.height/2-n.height/2))}else if(s){let{startx:c,stopx:f,starty:E}=s;if(c>f){let _=c;c=f,f=_}if(a.attr("x",Math.round(c+Math.abs(c-f)/2-n.width/2)),e.class==="loopText")a.attr("y",Math.round(E));else a.attr("y",Math.round(E-n.height))}return[a]},"drawKatex"),Kt=t(function(r,e){let s=0,a=0,o=e.text.split(C.lineBreakRegex),[h,n]=Nt(e.fontSize),c=[],f=0,E=t(()=>e.y,"yfunc");if(e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0)switch(e.valign){case"top":case"start":E=t(()=>Math.round(e.y+e.textMargin),"yfunc");break;case"middle":case"center":E=t(()=>Math.round(e.y+(s+a+e.textMargin)/2),"yfunc");break;case"bottom":case"end":E=t(()=>Math.round(e.y+(s+a+2*e.textMargin)-e.textMargin),"yfunc");break}if(e.anchor!==void 0&&e.textMargin!==void 0&&e.width!==void 0)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="middle",e.alignmentBaseline="middle";break}for(let[_,x]of o.entries()){if(e.textMargin!==void 0&&e.textMargin===0&&h!==void 0)f=_*h;let b=r.append("text");if(b.attr("x",e.x),b.attr("y",E()),e.anchor!==void 0)b.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline);if(e.fontFamily!==void 0)b.style("font-family",e.fontFamily);if(n!==void 0)b.style("font-size",n);if(e.fontWeight!==void 0)b.style("font-weight",e.fontWeight);if(e.fill!==void 0)b.attr("fill",e.fill);if(e.class!==void 0)b.attr("class",e.class);if(e.dy!==void 0)b.attr("dy",e.dy);else if(f!==0)b.attr("dy",f);let M=x||Ks;if(e.tspan){let y=b.append("tspan");if(y.attr("x",e.x),e.fill!==void 0)y.attr("fill",e.fill);y.text(M)}else b.text(M);if(e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0)a+=(b._groups||b)[0][0].getBBox().height,s=a;c.push(b)}return c},"drawText"),ir=t(function(r,e){function s(o,h,n,c,f){return o+","+h+" "+(o+n)+","+h+" "+(o+n)+","+(h+c-f)+" "+(o+n-f*1.2)+","+(h+c)+" "+o+","+(h+c)}t(s,"genPoints");let a=r.append("polygon");return a.attr("points",s(e.x,e.y,e.width,e.height,7)),a.attr("class","labelBox"),e.y=e.y+e.height/2,Kt(r,e),a},"drawLabel"),Z=-1,nr=t((r,e,s,a)=>{if(!r.select)return;s.forEach((o)=>{let h=e.get(o),n=r.select("#actor"+h.actorCnt);if(!a.mirrorActors&&h.stopy)n.attr("y2",h.stopy+h.height/2);else if(a.mirrorActors)n.attr("y2",h.stopy)})},"fixLifeLineHeights"),Mr=t(function(r,e,s,a,o,h){let n=a?e.stopy:e.starty,c=e.x+e.width/2,f=n+e.height,{look:E,theme:_,themeVariables:x}=s,{bkgColorArray:b,borderColorArray:M}=x,y=r.append("g").lower();var w=y;if(!a){if(Z++,Object.keys(e.links||{}).length&&!s.forceMenus)w.attr("onclick",ie(`actor${Z}_popup`)).attr("cursor","pointer");if(w.append("line").attr("id","actor"+Z).attr("x1",c).attr("y1",f).attr("x2",c).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),w=y.append("g"),e.actorCnt=Z,e.links!=null)w.attr("id","root-"+Z);if(E==="neo")w.attr("data-look","neo")}let p=Ht();var v="actor";if(e.properties?.class)v=e.properties.class;else p.fill="#eaeaea";if(a)v+=` ${kt}`;else v+=` ${At}`;if(p.x=e.x,p.y=n,p.width=e.width,p.height=e.height,p.class=v,p.rx=3,p.ry=3,p.name=e.name,E==="neo")p.rx=6,p.ry=6;let m=Ut(w,p),Y=h.get(e.name)??0;if(Lt.has(_))m.style("stroke",ht(M,Y)),m.style("fill",ht(b,Y));if(E==="neo")m.attr("filter",`url(#${wt(o)})`);if(e.rectData=p,e.properties?.icon){let B=e.properties.icon.trim();if(B.charAt(0)==="@")eo(w,p.x+p.width-20,p.y+10,B.substr(1));else Ji(w,p.x+p.width-20,p.y+10,B)}if(!a)w.attr("data-et","participant"),w.attr("data-type","participant"),w.attr("data-id",e.name);mt(s,$e(e.description))(e.description,w,p.x,p.y,p.width,p.height,{class:`actor ${se}`},s);let K=e.height;if(m.node){let B=m.node().getBBox();if(s.look!=="neo")e.height=B.height,K=B.height}return K},"drawActorTypeParticipant"),Br=t(function(r,e,s,a,o,h){let n=a?e.stopy:e.starty,c=e.x+e.width/2,f=n+e.height,{look:E,theme:_,themeVariables:x}=s,{bkgColorArray:b,borderColorArray:M}=x,y=r.append("g").lower();var w=y;if(!a){if(Z++,Object.keys(e.links||{}).length&&!s.forceMenus)w.attr("onclick",ie(`actor${Z}_popup`)).attr("cursor","pointer");if(w.append("line").attr("id","actor"+Z).attr("x1",c).attr("y1",f).attr("x2",c).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),w=y.append("g"),e.actorCnt=Z,e.links!=null)w.attr("id","root-"+Z);if(E==="neo")w.attr("data-look","neo")}let p=Ht();var v="actor";if(e.properties?.class)v=e.properties.class;else p.fill="#eaeaea";if(a)v+=` ${kt}`;else v+=` ${At}`;p.x=e.x,p.y=n,p.width=e.width,p.height=e.height,p.class=v,p.name=e.name;let m=6;if(s.look==="neo")p.height=e.height-m;let Y={...p,x:p.x+(a?-m:-m),y:p.y+(a?+m:+m),class:"actor"},K=Ut(w,p),B=Ut(w,Y);if(e.rectData=p,E==="neo")w.attr("filter",`url(#${wt(o)})`);let q=h.get(e.name)??0;if(Lt.has(_))K.style("stroke",ht(M,q)),K.style("fill",ht(b,q)),B.style("stroke",ht(M,q)),B.style("fill",ht(b,q));if(e.properties?.icon){let J=e.properties.icon.trim();if(J.charAt(0)==="@")eo(w,p.x+p.width-20,p.y+10,J.substr(1));else Ji(w,p.x+p.width-20,p.y+10,J)}mt(s,$e(e.description))(e.description,w,p.x-m,p.y+m,p.width,p.height,{class:`actor ${se}`},s);let z=e.height;if(K.node){let J=K.node().getBBox();if(s.look!=="neo")e.height=J.height,z=J.height}if(!a)w.attr("data-et","participant"),w.attr("data-type","collections"),w.attr("data-id",e.name);return z},"drawActorTypeCollections"),Yr=t(function(r,e,s,a,o,h){let n=a?e.stopy:e.starty,c=e.x+e.width/2,f=n+e.height,{look:E,theme:_,themeVariables:x}=s,{bkgColorArray:b,borderColorArray:M}=x,y=r.append("g").lower(),w=y;if(!a){if(Z++,Object.keys(e.links||{}).length&&!s.forceMenus)w.attr("onclick",ie(`actor${Z}_popup`)).attr("cursor","pointer");if(w.append("line").attr("id","actor"+Z).attr("x1",c).attr("y1",f).attr("x2",c).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),w=y.append("g"),e.actorCnt=Z,e.links!=null)w.attr("id","root-"+Z);if(E==="neo")w.attr("data-look","neo")}let p=Ht(),v="actor";if(e.properties?.class)v=e.properties.class;else p.fill="#eaeaea";if(a)v+=` ${kt}`;else v+=` ${At}`;w.attr("class",v),p.x=e.x,p.y=n,p.width=e.width,p.height=e.height,p.name=e.name;let m=p.height/2,Y=m/(2.5+p.height/50),K=w.append("g"),B=w.append("g"),q=`M ${p.x},${p.y+m}
157
- a ${Y},${m} 0 0 0 0,${p.height}
158
- h ${p.width-2*Y}
159
- a ${Y},${m} 0 0 0 0,-${p.height}
156
+ `},"getStyles"),Nr=kr,ae=44,be=6,ee=6,wr=t((r,e)=>r.actorTextHeight??H.calculateTextDimensions(r.description??"",{fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight}).height,"actorLabelHeight"),ar=t((r)=>ae+be+r+ee,"actorStackHeight"),Pr=t((r,e,s)=>{let a=r+e,o=a-ee-s/2;return{lifelineStartY:a,glyphBottomY:a-ee-s-be,labelCenterY:o}},"headerBands"),Dr=t((r,e)=>{let s=r+ee,a=s+ae;return{glyphTopY:s,glyphBottomY:a,labelCenterY:a+be+e/2,stackHeight:ar(e)}},"footerBands"),vt=36,vr=-5,sr=60,tr=sr-vr,Gt=t((r,e,s,a)=>{if(e.look!=="neo")return null;let o=wr(r,e);return s?Dr(a,o):Pr(a,r.height,o)},"neoBands"),At="actor-top",kt="actor-bottom",se="actor-box",Ct="actor-man",Lt=new Set(["redux-color","redux-dark-color"]),ht=t((r,e)=>r?.length?r[e%r.length]:void 0,"paletteColor"),Ut=t(function(r,e){let s=dr(r,e);if(A().look==="neo")s.attr("data-look","neo");return s},"drawRect"),Cr=t(function(r,e,s,a,o){if(e.links===void 0||e.links===null||Object.keys(e.links).length===0)return{height:0,width:0};let{links:h,actorCnt:n,rectData:c}=e;var f="none";if(o)f="block !important";let E=r.append("g");E.attr("id","actor"+n+"_popup"),E.attr("class","actorPopupMenu"),E.attr("display",f);var _="";if(c.class!==void 0)_=" "+c.class;let x=c.width>s?c.width:s,b=E.append("rect");if(b.attr("class","actorPopupMenuPanel"+_),b.attr("x",c.x),b.attr("y",c.height),b.attr("fill",c.fill),b.attr("stroke",c.stroke),b.attr("width",x),b.attr("height",c.height),b.attr("rx",c.rx),b.attr("ry",c.ry),h!=null){var M=20;for(let p in h){var y=E.append("a"),w=xe.sanitizeUrl(h[p]);y.attr("xlink:href",w),y.attr("target","_blank"),sa(a)(p,y,c.x+10,c.height+M,x,20,{class:"actor"},a),M+=30}}return b.attr("height",M),{height:c.height+M,width:x}},"drawPopup"),ie=t(function(r){return"var pu = document.getElementById('"+r+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),re=t(async function(r,e,s=null){let a=r.append("foreignObject"),o=await Ga(e.text,A()),n=a.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(o).node().getBoundingClientRect();if(a.attr("height",Math.round(n.height)).attr("width",Math.round(n.width)),e.class==="noteText"){let c=r.node().firstChild;c.setAttribute("height",n.height+2*e.textMargin);let f=c.getBBox();a.attr("x",Math.round(f.x+f.width/2-n.width/2)).attr("y",Math.round(f.y+f.height/2-n.height/2))}else if(s){let{startx:c,stopx:f,starty:E}=s;if(c>f){let _=c;c=f,f=_}if(a.attr("x",Math.round(c+Math.abs(c-f)/2-n.width/2)),e.class==="loopText")a.attr("y",Math.round(E));else a.attr("y",Math.round(E-n.height))}return[a]},"drawKatex"),Kt=t(function(r,e){let s=0,a=0,o=e.text.split(C.lineBreakRegex),[h,n]=Nt(e.fontSize),c=[],f=0,E=t(()=>e.y,"yfunc");if(e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0)switch(e.valign){case"top":case"start":E=t(()=>Math.round(e.y+e.textMargin),"yfunc");break;case"middle":case"center":E=t(()=>Math.round(e.y+(s+a+e.textMargin)/2),"yfunc");break;case"bottom":case"end":E=t(()=>Math.round(e.y+(s+a+2*e.textMargin)-e.textMargin),"yfunc");break}if(e.anchor!==void 0&&e.textMargin!==void 0&&e.width!==void 0)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="middle",e.alignmentBaseline="middle";break}for(let[_,x]of o.entries()){if(e.textMargin!==void 0&&e.textMargin===0&&h!==void 0)f=_*h;let b=r.append("text");if(b.attr("x",e.x),b.attr("y",E()),e.anchor!==void 0)b.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline);if(e.fontFamily!==void 0)b.style("font-family",e.fontFamily);if(n!==void 0)b.style("font-size",n);if(e.fontWeight!==void 0)b.style("font-weight",e.fontWeight);if(e.fill!==void 0)b.attr("fill",e.fill);if(e.class!==void 0)b.attr("class",e.class);if(e.dy!==void 0)b.attr("dy",e.dy);else if(f!==0)b.attr("dy",f);let M=x||Ks;if(e.tspan){let y=b.append("tspan");if(y.attr("x",e.x),e.fill!==void 0)y.attr("fill",e.fill);y.text(M)}else b.text(M);if(e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0)a+=(b._groups||b)[0][0].getBBox().height,s=a;c.push(b)}return c},"drawText"),ir=t(function(r,e){function s(o,h,n,c,f){return o+","+h+" "+(o+n)+","+h+" "+(o+n)+","+(h+c-f)+" "+(o+n-f*1.2)+","+(h+c)+" "+o+","+(h+c)}t(s,"genPoints");let a=r.append("polygon");return a.attr("points",s(e.x,e.y,e.width,e.height,7)),a.attr("class","labelBox"),e.y=e.y+e.height/2,Kt(r,e),a},"drawLabel"),j=-1,nr=t((r,e,s,a)=>{if(!r.select)return;s.forEach((o)=>{let h=e.get(o),n=r.select("#actor"+h.actorCnt);if(!a.mirrorActors&&h.stopy)n.attr("y2",h.stopy+h.height/2);else if(a.mirrorActors)n.attr("y2",h.stopy)})},"fixLifeLineHeights"),Mr=t(function(r,e,s,a,o,h){let n=a?e.stopy:e.starty,c=e.x+e.width/2,f=n+e.height,{look:E,theme:_,themeVariables:x}=s,{bkgColorArray:b,borderColorArray:M}=x,y=r.append("g").lower();var w=y;if(!a){if(j++,Object.keys(e.links||{}).length&&!s.forceMenus)w.attr("onclick",ie(`actor${j}_popup`)).attr("cursor","pointer");if(w.append("line").attr("id","actor"+j).attr("x1",c).attr("y1",f).attr("x2",c).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),w=y.append("g"),e.actorCnt=j,e.links!=null)w.attr("id","root-"+j);if(E==="neo")w.attr("data-look","neo")}let p=Ht();var v="actor";if(e.properties?.class)v=e.properties.class;else p.fill="#eaeaea";if(a)v+=` ${kt}`;else v+=` ${At}`;if(p.x=e.x,p.y=n,p.width=e.width,p.height=e.height,p.class=v,p.rx=3,p.ry=3,p.name=e.name,E==="neo")p.rx=6,p.ry=6;let m=Ut(w,p),V=h.get(e.name)??0;if(Lt.has(_))m.style("stroke",ht(M,V)),m.style("fill",ht(b,V));if(E==="neo")m.attr("filter",`url(#${wt(o)})`);if(e.rectData=p,e.properties?.icon){let B=e.properties.icon.trim();if(B.charAt(0)==="@")eo(w,p.x+p.width-20,p.y+10,B.substr(1));else Ji(w,p.x+p.width-20,p.y+10,B)}if(!a)w.attr("data-et","participant"),w.attr("data-type","participant"),w.attr("data-id",e.name);mt(s,$e(e.description))(e.description,w,p.x,p.y,p.width,p.height,{class:`actor ${se}`},s);let K=e.height;if(m.node){let B=m.node().getBBox();if(s.look!=="neo")e.height=B.height,K=B.height}return K},"drawActorTypeParticipant"),Br=t(function(r,e,s,a,o,h){let n=a?e.stopy:e.starty,c=e.x+e.width/2,f=n+e.height,{look:E,theme:_,themeVariables:x}=s,{bkgColorArray:b,borderColorArray:M}=x,y=r.append("g").lower();var w=y;if(!a){if(j++,Object.keys(e.links||{}).length&&!s.forceMenus)w.attr("onclick",ie(`actor${j}_popup`)).attr("cursor","pointer");if(w.append("line").attr("id","actor"+j).attr("x1",c).attr("y1",f).attr("x2",c).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),w=y.append("g"),e.actorCnt=j,e.links!=null)w.attr("id","root-"+j);if(E==="neo")w.attr("data-look","neo")}let p=Ht();var v="actor";if(e.properties?.class)v=e.properties.class;else p.fill="#eaeaea";if(a)v+=` ${kt}`;else v+=` ${At}`;p.x=e.x,p.y=n,p.width=e.width,p.height=e.height,p.class=v,p.name=e.name;let m=6;if(s.look==="neo")p.height=e.height-m;let V={...p,x:p.x+(a?-m:-m),y:p.y+(a?+m:+m),class:"actor"},K=Ut(w,p),B=Ut(w,V);if(e.rectData=p,E==="neo")w.attr("filter",`url(#${wt(o)})`);let z=h.get(e.name)??0;if(Lt.has(_))K.style("stroke",ht(M,z)),K.style("fill",ht(b,z)),B.style("stroke",ht(M,z)),B.style("fill",ht(b,z));if(e.properties?.icon){let Z=e.properties.icon.trim();if(Z.charAt(0)==="@")eo(w,p.x+p.width-20,p.y+10,Z.substr(1));else Ji(w,p.x+p.width-20,p.y+10,Z)}mt(s,$e(e.description))(e.description,w,p.x-m,p.y+m,p.width,p.height,{class:`actor ${se}`},s);let U=e.height;if(K.node){let Z=K.node().getBBox();if(s.look!=="neo")e.height=Z.height,U=Z.height}if(!a)w.attr("data-et","participant"),w.attr("data-type","collections"),w.attr("data-id",e.name);return U},"drawActorTypeCollections"),Yr=t(function(r,e,s,a,o,h){let n=a?e.stopy:e.starty,c=e.x+e.width/2,f=n+e.height,{look:E,theme:_,themeVariables:x}=s,{bkgColorArray:b,borderColorArray:M}=x,y=r.append("g").lower(),w=y;if(!a){if(j++,Object.keys(e.links||{}).length&&!s.forceMenus)w.attr("onclick",ie(`actor${j}_popup`)).attr("cursor","pointer");if(w.append("line").attr("id","actor"+j).attr("x1",c).attr("y1",f).attr("x2",c).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),w=y.append("g"),e.actorCnt=j,e.links!=null)w.attr("id","root-"+j);if(E==="neo")w.attr("data-look","neo")}let p=Ht(),v="actor";if(e.properties?.class)v=e.properties.class;else p.fill="#eaeaea";if(a)v+=` ${kt}`;else v+=` ${At}`;w.attr("class",v),p.x=e.x,p.y=n,p.width=e.width,p.height=e.height,p.name=e.name;let m=p.height/2,V=m/(2.5+p.height/50),K=w.append("g"),B=w.append("g"),z=`M ${p.x},${p.y+m}
157
+ a ${V},${m} 0 0 0 0,${p.height}
158
+ h ${p.width-2*V}
159
+ a ${V},${m} 0 0 0 0,-${p.height}
160
160
  Z
161
- `;if(K.append("path").attr("d",q),B.append("path").attr("d",`M ${p.x},${p.y+m}
162
- a ${Y},${m} 0 0 0 0,${p.height}`),K.attr("transform",`translate(${Y}, ${-(p.height/2)})`),B.attr("transform",`translate(${p.width-Y}, ${-p.height/2})`),e.rectData=p,E==="neo")K.attr("filter",`url(#${wt(o)})`);let z=h.get(e.name)??0;if(Lt.has(_))K.style("stroke",ht(M,z)),K.style("fill",ht(b,z)),B.style("stroke",ht(M,z)),B.style("fill",ht(b,z));if(e.properties?.icon){let rt=e.properties.icon.trim(),ot=p.x+p.width-20,lt=p.y+10;if(rt.charAt(0)==="@")eo(w,ot,lt,rt.substr(1));else Ji(w,ot,lt,rt)}mt(s,$e(e.description))(e.description,w,p.x,p.y,p.width,p.height,{class:`actor ${se}`},s);let J=e.height,tt=K.select("path:last-child");if(tt.node()){let rt=tt.node().getBBox();if(s.look!=="neo")e.height=rt.height,J=rt.height}if(!a)w.attr("data-et","participant"),w.attr("data-type","queue"),w.attr("data-id",e.name);return J},"drawActorTypeQueue"),Vr=t(function(r,e,s,a,o,h){let n=a?e.stopy:e.starty,c=e.x+e.width/2,f=Gt(e,s,a,n),E=f?f.lifelineStartY:n+75,{look:_,theme:x,themeVariables:b}=s,{bkgColorArray:M,borderColorArray:y,actorBorder:w,actorBkg:p}=b,v=r.append("g").lower();if(!a)Z++,v.append("line").attr("id","actor"+Z).attr("x1",c).attr("y1",E).attr("x2",c).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=Z;let m=r.append("g"),Y=Ct;if(a)Y+=` ${kt}`;else Y+=` ${At}`;m.attr("class",Y),m.attr("name",e.name);let K=Ht();K.x=e.x,K.y=n,K.fill="#eaeaea",K.width=e.width,K.height=e.height,K.class="actor";let B=e.x+e.width/2,q=f?f.glyphBottomY-22:n+32,z=22;m.append("defs").append("marker").attr("id",o+"-filled-head-control").attr("refX",11).attr("refY",5.8).attr("markerWidth",20).attr("markerHeight",28).attr("orient","172.5").attr("stroke-width",1.2).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"),m.append("circle").attr("cx",B).attr("cy",q).attr("r",z).attr("filter",`${_==="neo"?`url(#${wt(o)})`:""}`),m.append("line").attr("marker-end","url(#"+o+"-filled-head-control)").attr("transform",`translate(${B}, ${q-z})`);let J=h.get(e.name)??0;if(Lt.has(x))m.style("stroke",ht(y,J)),m.style("fill",ht(M,J));else m.style("stroke",w),m.style("fill",p);if(!f){let tt=m.node().getBBox();e.height=tt.height+2*(s?.sequence?.labelBoxHeight??0)}if(mt(s,$e(e.description))(e.description,m,K.x,f?f.labelCenterY-K.height/2:K.y+z+(!a?12:5),K.width,K.height,{class:`actor ${Ct}`},s),!a)m.attr("data-et","participant"),m.attr("data-type","control"),m.attr("data-id",e.name);return e.height},"drawActorTypeControl"),Wr=t(function(r,e,s,a,o,h){let n=a?e.stopy:e.starty,c=e.x+e.width/2,f=Gt(e,s,a,n),E=f?f.lifelineStartY:n+75,{look:_,theme:x,themeVariables:b}=s,{bkgColorArray:M,borderColorArray:y}=b,w=r.append("g").lower(),p=r.append("g"),v="actor";if(a)v+=` ${kt}`;else v+=` ${At}`;p.attr("class",v),p.attr("name",e.name);let m=Ht();m.x=e.x,m.y=n,m.fill="#eaeaea",m.width=e.width,m.height=e.height,m.class="actor";let Y=e.x+e.width/2,K=f?f.glyphBottomY-22:n+(!a?25:10),B=22;if(p.append("circle").attr("cx",Y).attr("cy",K).attr("r",B).attr("width",e.width).attr("height",e.height),p.append("line").attr("x1",Y-B).attr("x2",Y+B).attr("y1",K+B).attr("y2",K+B).attr("stroke-width",2),_==="neo")p.attr("filter",`url(#${wt(o)})`);let q=h.get(e.name)??0;if(Lt.has(x))p.style("stroke",ht(y,q)),p.style("fill",ht(M,q));if(!f){let z=p.node().getBBox();e.height=z.height+(s?.sequence?.labelBoxHeight??0)}if(!a)Z++,w.append("line").attr("id","actor"+Z).attr("x1",c).attr("y1",E).attr("x2",c).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=Z;if(mt(s,$e(e.description))(e.description,p,m.x,f?f.labelCenterY-m.height/2:m.y+(!a?30:15),m.width,m.height,{class:`actor ${Ct}`},s),!f)p.attr("transform",`translate(0, ${a?B:B/2-5})`);if(!a)p.attr("data-et","participant"),p.attr("data-type","entity"),p.attr("data-id",e.name);return e.height},"drawActorTypeEntity"),Kr=t(function(r,e,s,a,o,h){let n=a?e.stopy:e.starty,c=e.x+e.width/2,f=Gt(e,s,a,n),E=f?f.lifelineStartY:n+e.height+2*s.boxTextMargin,{theme:_,themeVariables:x,look:b}=s,{bkgColorArray:M,borderColorArray:y,actorBorder:w}=x,p=r.append("g").lower(),v=p;if(!a){if(Z++,Object.keys(e.links||{}).length&&!s.forceMenus)v.attr("onclick",ie(`actor${Z}_popup`)).attr("cursor","pointer");if(v.append("line").attr("id","actor"+Z).attr("x1",c).attr("y1",E).attr("x2",c).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),v=p.append("g"),e.actorCnt=Z,e.links!=null)v.attr("id","root-"+Z);if(b==="neo")v.attr("data-look","neo")}let m=Ht(),Y="actor";if(e.properties?.class)Y=e.properties.class;else m.fill="#eaeaea";if(a)Y+=` ${kt}`;else Y+=` ${At}`;m.x=e.x,m.y=n,m.width=e.width,m.height=e.height,m.class=Y,m.name=e.name,m.x=e.x,m.y=n;let K=m.width/3,B=K/2,q=B/(2.5+K/50),z=f?ae:m.width/3,J=f?f.glyphBottomY-z-q:m.y,tt=v.append("g");tt.attr("class",Y);let rt=`
163
- M ${m.x},${J+q}
164
- a ${B},${q} 0 0 0 ${K},0
165
- a ${B},${q} 0 0 0 -${K},0
166
- l 0,${z-2*q}
167
- a ${B},${q} 0 0 0 ${K},0
168
- l 0,-${z-2*q}
169
- `;if(tt.append("path").attr("d",rt),b==="neo")tt.attr("filter",`url(#${wt(o)})`);let ot=h.get(e.name)??0;if(Lt.has(_))tt.style("stroke",ht(y,ot)),tt.style("fill",ht(M,ot));else tt.style("stroke",w);if(tt.attr("transform",`translate(${K}, ${q})`),e.rectData=m,mt(s,$e(e.description))(e.description,v,m.x,f?f.labelCenterY-m.height/2:m.y+35,m.width,m.height,{class:`actor ${se}`},s),!f){let lt=tt.select("path:last-child");if(lt.node()){let Et=lt.node().getBBox();e.height=Et.height+(s.sequence.labelBoxHeight??0)}}if(!a)v.attr("data-et","participant"),v.attr("data-type","database"),v.attr("data-id",e.name);return e.height},"drawActorTypeDatabase"),Hr=t(function(r,e,s,a,o,h){let n=a?e.stopy:e.starty,c=e.x+e.width/2,f=Gt(e,s,a,n),E=f?f.lifelineStartY:n+80,_=22,x=f?f.glyphBottomY-22:n+12,b=r.append("g").lower(),{look:M,theme:y,themeVariables:w}=s,{bkgColorArray:p,borderColorArray:v,actorBorder:m}=w;if(!a)Z++,b.append("line").attr("id","actor"+Z).attr("x1",c).attr("y1",E).attr("x2",c).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=Z;let Y=r.append("g"),K=Ct;if(a)K+=` ${kt}`;else K+=` ${At}`;Y.attr("class",K),Y.attr("name",e.name);let B=Ht();if(B.x=e.x,B.y=n,B.fill="#eaeaea",B.width=e.width,B.height=e.height,B.class="actor",Y.append("line").attr("id","actor-man-torso"+Z).attr("x1",e.x+e.width/2-55).attr("y1",x).attr("x2",e.x+e.width/2-15).attr("y2",x),Y.append("line").attr("id","actor-man-arms"+Z).attr("x1",e.x+e.width/2-55).attr("y1",x-10).attr("x2",e.x+e.width/2-55).attr("y2",x+10),Y.append("circle").attr("cx",e.x+e.width/2).attr("cy",x).attr("r",22),M==="neo")Y.attr("filter",`url(#${wt(o)})`);let q=h.get(e.name)??0;if(Lt.has(y))Y.style("stroke",ht(v,q)),Y.style("fill",ht(p,q));else Y.style("stroke",m);if(!f){let z=Y.node().getBBox();e.height=z.height+(s.sequence.labelBoxHeight??0)}if(mt(s,$e(e.description))(e.description,Y,B.x,f?f.labelCenterY-B.height/2:B.y+15,B.width,B.height,{class:`actor ${Ct}`},s),!f)Y.attr("transform","translate(0,21)");if(!a)Y.attr("data-et","participant"),Y.attr("data-type","boundary"),Y.attr("data-id",e.name);return e.height},"drawActorTypeBoundary"),Fr=t(function(r,e,s,a,o){let h=a?e.stopy:e.starty,n=e.x+e.width/2,c=Gt(e,s,a,h),f=c?c.lifelineStartY:h+80,{theme:E,themeVariables:_}=s,{bkgColorArray:x,borderColorArray:b,actorBorder:M}=_,y=r.append("g").lower();if(!a)Z++,y.append("line").attr("id","actor"+Z).attr("x1",n).attr("y1",f).attr("x2",n).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=Z;let w=r.append("g"),p=Ct;if(a)p+=` ${kt}`;else p+=` ${At}`;if(w.attr("class",p),w.attr("name",e.name),!a)w.attr("data-et","participant").attr("data-type","actor").attr("data-id",e.name);let v=c?ae/tr:1,m=t((z)=>c?c.glyphBottomY-(sr-z)*v:h+z,"gy"),Y=t((z)=>n+z*v,"gx");w.append("line").attr("id","actor-man-torso"+Z).attr("x1",n).attr("y1",m(25)).attr("x2",n).attr("y2",m(45)),w.append("line").attr("id","actor-man-arms"+Z).attr("x1",Y(-vt/2)).attr("y1",m(33)).attr("x2",Y(vt/2)).attr("y2",m(33)),w.append("line").attr("x1",Y(-vt/2)).attr("y1",m(60)).attr("x2",n).attr("y2",m(45)),w.append("line").attr("x1",n).attr("y1",m(45)).attr("x2",Y(vt/2-2)).attr("y2",m(60));let K=w.append("circle");if(K.attr("cx",e.x+e.width/2),K.attr("cy",m(10)),K.attr("r",15*v),K.attr("width",e.width),K.attr("height",e.height),!c)e.height=tr;let B=Ht();B.x=e.x,B.y=h,B.fill="#eaeaea",B.width=e.width,B.height=e.height,B.class="actor",B.rx=3,B.ry=3;let q=o.get(e.name)??0;if(Lt.has(E))w.style("stroke",ht(b,q)),w.style("fill",ht(x,q));else w.style("stroke",M);return mt(s,$e(e.description))(e.description,w,B.x,c?c.labelCenterY-B.height/2:h+35,B.width,B.height,{class:`actor ${Ct}`},s),e.height},"drawActorTypeActor"),qr=t(async function(r,e,s,a,o,h,n){let c=n??new Map([...h.db.getActors().values()].map((f,E)=>[f.name,E]));switch(e.type){case"actor":return await Fr(r,e,s,a,c);case"participant":return await Mr(r,e,s,a,o,c);case"boundary":return await Hr(r,e,s,a,o,c);case"control":return await Vr(r,e,s,a,o,c);case"entity":return await Wr(r,e,s,a,o,c);case"database":return await Kr(r,e,s,a,o,c);case"collections":return await Br(r,e,s,a,o,c);case"queue":return await Yr(r,e,s,a,o,c)}},"drawActor"),zr=t(function(r,e,s){let o=r.append("g");if(or(o,e),e.name)mt(s)(e.name,o,e.x,e.y+s.boxTextMargin+(e.textMaxHeight||0)/2,e.width,0,{class:"text"},s);o.lower()},"drawBox"),Ur=t(function(r){return r.append("g")},"anchorElement"),Gr=t(function(r,e,s,a,o,h,n){let{theme:c,themeVariables:f}=a,{bkgColorArray:E,borderColorArray:_,mainBkg:x}=f,b=Ht(),{anchored:M,actor:y}=e;b.x=e.startx,b.y=e.starty,b.class="activation"+o%3,b.width=e.stopx-e.startx,b.height=s-e.starty;let w=Ut(M,b),v=(n??new Map([...h.db.getActors().values()].map((m,Y)=>[m.name,Y]))).get(y)??0;if(Lt.has(c))w.style("stroke",ht(_,v)),w.style("fill",ht(E,v)??x)},"drawActivation"),Xr=t(async function(r,e,s,a,o){let{boxMargin:h,boxTextMargin:n,labelBoxHeight:c,labelBoxWidth:f,messageFontFamily:E,messageFontSize:_,messageFontWeight:x}=a,b=r.append("g").attr("data-et","control-structure").attr("data-id","i"+o.id),M=t(function(p,v,m,Y){return b.append("line").attr("x1",p).attr("y1",v).attr("x2",m).attr("y2",Y).attr("class","loopLine")},"drawLoopLine");if(M(e.startx,e.starty,e.stopx,e.starty),M(e.stopx,e.starty,e.stopx,e.stopy),M(e.startx,e.stopy,e.stopx,e.stopy),M(e.startx,e.starty,e.startx,e.stopy),e.sections!==void 0)e.sections.forEach(function(p){M(e.startx,p.y,e.stopx,p.y).style("stroke-dasharray","3, 3")});let y=to();y.text=s,y.x=e.startx,y.y=e.starty,y.fontFamily=E,y.fontSize=_,y.fontWeight=x,y.anchor="middle",y.valign="middle",y.tspan=!1,y.width=Math.max(f??0,50),y.height=c+(a.look==="neo"?15:0)||20,y.textMargin=n,y.class="labelText",ir(b,y),y=cr(),y.text=e.title,y.x=e.startx+f/2+(e.stopx-e.startx)/2,y.y=e.starty+h+n,y.anchor="middle",y.valign="middle",y.textMargin=n,y.class="loopText",y.fontFamily=E,y.fontSize=_,y.fontWeight=x,y.wrap=!0;let w=$e(y.text)?await re(b,y,e):Kt(b,y);if(e.sectionTitles!==void 0){for(let[p,v]of Object.entries(e.sectionTitles))if(v.message){if(y.text=v.message,y.x=e.startx+(e.stopx-e.startx)/2,y.y=e.sections[p].y+h+n,y.class="sectionTitle",y.anchor="middle",y.valign="middle",y.tspan=!1,y.fontFamily=E,y.fontSize=_,y.fontWeight=x,y.wrap=e.wrap,$e(y.text))e.starty=e.sections[p].y,await re(b,y,e);else Kt(b,y);let m=Math.round(w.map((Y)=>(Y._groups||Y)[0][0].getBBox().height).reduce((Y,K)=>Y+K));e.sections[p].height+=m-(h+n)}}return e.height=Math.round(e.stopy-e.starty),b},"drawLoop"),or=t(function(r,e){ki(r,e)},"drawBackgroundRect"),Qr=t(function(r,e){r.append("defs").append("symbol").attr("id",e+"-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"),Jr=t(function(r,e){r.append("defs").append("symbol").attr("id",e+"-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"),Zr=t(function(r,e){r.append("defs").append("symbol").attr("id",e+"-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"),$r=t(function(r,e){r.append("defs").append("marker").attr("id",e+"-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"),jr=t(function(r,e){r.append("defs").append("marker").attr("id",e+"-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"),ta=t(function(r,e){r.append("defs").append("marker").attr("id",e+"-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"),ea=t(function(r,e){r.append("defs").append("marker").attr("id",e+"-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"),wt=t((r)=>r?`${r}-drop-shadow`:"drop-shadow","dropShadowId"),ra=t(function(r,e,s){let{theme:a}=e;r.append("defs").append("filter").attr("id",wt(s)).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${a==="redux"||a==="redux-color"?"#000000":"#FFFFFF"}`)},"insertDropShadow"),cr=t(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"),aa=t(function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),mt=function(){function r(h,n,c,f,E,_,x){let b=n.append("text").attr("x",c+E/2).attr("y",f+_/2+5).style("text-anchor","middle").text(h);o(b,x)}t(r,"byText");function e(h,n,c,f,E,_,x,b){let{actorFontSize:M,actorFontFamily:y,actorFontWeight:w}=b,[p,v]=Nt(M),m=h.split(C.lineBreakRegex);for(let Y=0;Y<m.length;Y++){let K=Y*p-p*(m.length-1)/2,B=n.append("text").attr("x",c+E/2).attr("y",f).style("text-anchor","middle").style("font-size",v).style("font-weight",w).style("font-family",y);B.append("tspan").attr("x",c+E/2).attr("dy",K).text(m[Y]),B.attr("y",f+_/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),o(B,x)}}t(e,"byTspan");function s(h,n,c,f,E,_,x,b){let M=n.append("switch"),w=M.append("foreignObject").attr("x",c).attr("y",f).attr("width",E).attr("height",_).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");w.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(h),e(h,M,c,f,E,_,x,b),o(w,x)}t(s,"byFo");async function a(h,n,c,f,E,_,x,b){let M=await Va(h,A()),y=n.append("switch"),p=y.append("foreignObject").attr("x",c+E/2-M.width/2).attr("y",f+_/2-M.height/2).attr("width",M.width).attr("height",M.height).append("xhtml:div").style("height","100%").style("width","100%");p.append("div").style("text-align","center").style("vertical-align","middle").html(await Ga(h,A())),e(h,y,c,f,E,_,x,b),o(p,x)}t(a,"byKatex");function o(h,n){for(let c in n)if(n.hasOwnProperty(c))h.attr(c,n[c])}return t(o,"_setTextAttrs"),function(h,n=!1){if(n)return a;return h.textPlacement==="fo"?s:h.textPlacement==="old"?r:e}}(),sa=function(){function r(o,h,n,c,f,E,_){let x=h.append("text").attr("x",n).attr("y",c).style("text-anchor","start").text(o);a(x,_)}t(r,"byText");function e(o,h,n,c,f,E,_,x){let{actorFontSize:b,actorFontFamily:M,actorFontWeight:y}=x,w=o.split(C.lineBreakRegex);for(let p=0;p<w.length;p++){let v=p*b-b*(w.length-1)/2,m=h.append("text").attr("x",n).attr("y",c).style("text-anchor","start").style("font-size",b).style("font-weight",y).style("font-family",M);m.append("tspan").attr("x",n).attr("dy",v).text(w[p]),m.attr("y",c+E/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(m,_)}}t(e,"byTspan");function s(o,h,n,c,f,E,_,x){let b=h.append("switch"),y=b.append("foreignObject").attr("x",n).attr("y",c).attr("width",f).attr("height",E).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");y.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(o),e(o,b,n,c,f,E,_,x),a(y,_)}t(s,"byFo");function a(o,h){for(let n in h)if(h.hasOwnProperty(n))o.attr(n,h[n])}return t(a,"_setTextAttrs"),function(o){return o.textPlacement==="fo"?s:o.textPlacement==="old"?r:e}}(),ia=t(function(r,e){r.append("defs").append("marker").attr("id",e+"-solidTopArrowHead").attr("refX",7.9).attr("refY",7.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 8 L 0 8 z")},"insertSolidTopArrowHead"),na=t(function(r,e){r.append("defs").append("marker").attr("id",e+"-solidBottomArrowHead").attr("refX",7.9).attr("refY",0.75).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 0 L 0 8 z")},"insertSolidBottomArrowHead"),oa=t(function(r,e){r.append("defs").append("marker").attr("id",e+"-stickTopArrowHead").attr("refX",7.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 7 7").attr("stroke","black").attr("stroke-width",1.5).attr("fill","none")},"insertStickTopArrowHead"),ca=t(function(r,e){r.append("defs").append("marker").attr("id",e+"-stickBottomArrowHead").attr("refX",7.5).attr("refY",0).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 7 L 7 0").attr("stroke","black").attr("stroke-width",1.5).attr("fill","none")},"insertStickBottomArrowHead"),nt={drawRect:Ut,drawText:Kt,drawLabel:ir,drawActor:qr,drawBox:zr,drawPopup:Cr,anchorElement:Ur,drawActivation:Gr,drawLoop:Xr,drawBackgroundRect:or,insertArrowHead:$r,insertArrowFilledHead:jr,insertSequenceNumber:ta,insertArrowCrossHead:ea,insertDatabaseIcon:Qr,insertComputerIcon:Jr,insertClockIcon:Zr,getTextObj:cr,getNoteRect:aa,fixLifeLineHeights:nr,sanitizeUrl:xe.sanitizeUrl,insertDropShadow:ra,insertSolidTopArrowHead:ia,insertSolidBottomArrowHead:na,insertStickTopArrowHead:oa,insertStickBottomArrowHead:ca},T={},k={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:t(function(){return Math.max.apply(null,this.actors.length===0?[0]:this.actors.map((r)=>r.height||0))+(this.loops.length===0?0:this.loops.map((r)=>r.height||0).reduce((r,e)=>r+e))+(this.messages.length===0?0:this.messages.map((r)=>r.height||0).reduce((r,e)=>r+e))+(this.notes.length===0?0:this.notes.map((r)=>r.height||0).reduce((r,e)=>r+e))},"getHeight"),clear:t(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},"clear"),addBox:t(function(r){this.boxes.push(r)},"addBox"),addActor:t(function(r){this.actors.push(r)},"addActor"),addLoop:t(function(r){this.loops.push(r)},"addLoop"),addMessage:t(function(r){this.messages.push(r)},"addMessage"),addNote:t(function(r){this.notes.push(r)},"addNote"),lastActor:t(function(){return this.actors[this.actors.length-1]},"lastActor"),lastLoop:t(function(){return this.loops[this.loops.length-1]},"lastLoop"),lastMessage:t(function(){return this.messages[this.messages.length-1]},"lastMessage"),lastNote:t(function(){return this.notes[this.notes.length-1]},"lastNote"),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:t(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,pr(d())},"init"),updateVal:t(function(r,e,s,a){if(r[e]===void 0)r[e]=s;else r[e]=a(s,r[e])},"updateVal"),updateBounds:t(function(r,e,s,a){let o=this,h=0;function n(c){return t(function(E){h++;let _=o.sequenceItems.length-h+1;if(o.updateVal(E,"starty",e-_*T.boxMargin,Math.min),o.updateVal(E,"stopy",a+_*T.boxMargin,Math.max),o.updateVal(k.data,"startx",r-_*T.boxMargin,Math.min),o.updateVal(k.data,"stopx",s+_*T.boxMargin,Math.max),c!=="activation")o.updateVal(E,"startx",r-_*T.boxMargin,Math.min),o.updateVal(E,"stopx",s+_*T.boxMargin,Math.max),o.updateVal(k.data,"starty",e-_*T.boxMargin,Math.min),o.updateVal(k.data,"stopy",a+_*T.boxMargin,Math.max)},"updateItemBounds")}t(n,"updateFn"),this.sequenceItems.forEach(n()),this.activations.forEach(n("activation"))},"updateBounds"),insert:t(function(r,e,s,a){let o=C.getMin(r,s),h=C.getMax(r,s),n=C.getMin(e,a),c=C.getMax(e,a);this.updateVal(k.data,"startx",o,Math.min),this.updateVal(k.data,"starty",n,Math.min),this.updateVal(k.data,"stopx",h,Math.max),this.updateVal(k.data,"stopy",c,Math.max),this.updateBounds(o,n,h,c)},"insert"),newActivation:t(function(r,e,s){let a=s.get(r.from),o=ne(r.from).length||0,h=a.x+a.width/2+(o-1)*T.activationWidth/2;this.activations.push({startx:h,starty:this.verticalPos+2,stopx:h+T.activationWidth,stopy:void 0,actor:r.from,anchored:nt.anchorElement(e)})},"newActivation"),endActivation:t(function(r){let e=this.activations.map(function(s){return s.actor}).lastIndexOf(r.from);return this.activations.splice(e,1)[0]},"endActivation"),createLoop:t(function(r={message:void 0,wrap:!1,width:void 0},e){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:r.message,wrap:r.wrap,width:r.width,height:0,fill:e}},"createLoop"),newLoop:t(function(r={message:void 0,wrap:!1,width:void 0},e){this.sequenceItems.push(this.createLoop(r,e))},"newLoop"),endLoop:t(function(){return this.sequenceItems.pop()},"endLoop"),isLoopOverlap:t(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},"isLoopOverlap"),addSectionToLoop:t(function(r){let e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:k.getVerticalPos(),height:0}),e.sectionTitles.push(r),this.sequenceItems.push(e)},"addSectionToLoop"),saveVerticalPos:t(function(){if(this.isLoopOverlap())this.savedVerticalPos=this.verticalPos},"saveVerticalPos"),resetVerticalPos:t(function(){if(this.isLoopOverlap())this.verticalPos=this.savedVerticalPos},"resetVerticalPos"),bumpVerticalPos:t(function(r){this.verticalPos=this.verticalPos+r,this.data.stopy=C.getMax(this.data.stopy,this.verticalPos)},"bumpVerticalPos"),getVerticalPos:t(function(){return this.verticalPos},"getVerticalPos"),getBounds:t(function(){return{bounds:this.data,models:this.models}},"getBounds")},ha=t(async function(r,e,s){k.bumpVerticalPos(T.boxMargin),e.height=T.boxMargin,e.starty=k.getVerticalPos();let a=Ht();a.x=e.startx,a.y=e.starty,a.width=e.width||T.width,a.class="note";let o=r.append("g");o.attr("data-et","note"),o.attr("data-id","i"+s);let h=nt.drawRect(o,a),n=to();n.x=e.startx,n.y=e.starty,n.width=a.width,n.dy="1em",n.text=e.message,n.class="noteText",n.fontFamily=T.noteFontFamily,n.fontSize=T.noteFontSize,n.fontWeight=T.noteFontWeight,n.anchor=T.noteAlign,n.textMargin=T.noteMargin,n.valign="center";let c=$e(n.text)?await re(o,n):Kt(o,n),f=Math.round(c.map((E)=>(E._groups||E)[0][0].getBBox().height).reduce((E,_)=>E+_));h.attr("height",f+2*T.noteMargin),e.height+=f+2*T.noteMargin,k.bumpVerticalPos(f+2*T.noteMargin),e.stopy=e.starty+f+2*T.noteMargin,e.stopx=e.startx+a.width,k.insert(e.startx,e.starty,e.stopx,e.stopy),k.models.addNote(e)},"drawNote"),er=t(function(r,e,s,a,o,h,n){let c=a.db.getActors(),f=c.get(e.from),E=c.get(e.to),_=s.sequenceVisible,x=f.x+f.width/2,b=E.x+E.width/2,M=x<=b,y=gr(e,a),w=r.append("g"),p=16.5,v=t((q,z)=>{let J=q?p:-p;return z?-J:J},"getCircleOffset"),m=t((q)=>{w.append("circle").attr("cx",q).attr("cy",n).attr("r",5).attr("width",10).attr("height",10)},"drawCircle"),{CENTRAL_CONNECTION:Y,CENTRAL_CONNECTION_REVERSE:K,CENTRAL_CONNECTION_DUAL:B}=a.db.LINETYPE;if(_)switch(e.centralConnection){case Y:if(y)b+=v(M,!0);break;case K:if(!y)x+=v(M,!1);break;case B:if(y)b+=v(M,!0);else x+=v(M,!1);break}switch(e.centralConnection){case Y:m(b);break;case K:m(x);break;case B:m(x),m(b);break}},"drawCentralConnection"),Mt=t((r)=>({fontFamily:r.messageFontFamily,fontSize:r.messageFontSize,fontWeight:r.messageFontWeight}),"messageFont"),Wt=t((r)=>({fontFamily:r.noteFontFamily,fontSize:r.noteFontSize,fontWeight:r.noteFontWeight}),"noteFont"),_e=t((r)=>({fontFamily:r.actorFontFamily,fontSize:r.actorFontSize,fontWeight:r.actorFontWeight}),"actorFont");async function lr(r,e){k.bumpVerticalPos(10);let{startx:s,stopx:a,message:o}=e,h=C.splitBreaks(o).length,n=$e(o),c=n?await Va(o,d()):H.calculateTextDimensions(o,Mt(T));if(!n){let x=c.height/h;e.height+=x,k.bumpVerticalPos(x)}let f,E=c.height-10,_=c.width;if(s===a){if(f=k.getVerticalPos()+E,!T.rightAngles)E+=T.boxMargin,f=k.getVerticalPos()+E;E+=30;let x=C.getMax(_/2,T.width/2);k.insert(s-x,k.getVerticalPos()-10+E,a+x,k.getVerticalPos()+30+E)}else E+=T.boxMargin,f=k.getVerticalPos()+E,k.insert(s,f-10,a,f);return k.bumpVerticalPos(E),e.height+=E,e.stopy=e.starty+e.height,k.insert(e.fromBounds,e.starty,e.toBounds,e.stopy),f}t(lr,"boundMessage");var da=t(async function(r,e,s,a,o,h){let{startx:n,stopx:c,starty:f,message:E,type:_,sequenceIndex:x,sequenceVisible:b}=e,M=H.calculateTextDimensions(E,Mt(T)),y=to();if(y.x=Math.min(n,c),y.y=f+10,y.width=Math.abs(c-n),y.class="messageText",y.dy="1em",y.text=E,y.fontFamily=T.messageFontFamily,y.fontSize=T.messageFontSize,y.fontWeight=T.messageFontWeight,y.anchor=T.messageAlign,y.valign="center",y.textMargin=T.wrapPadding,y.tspan=!1,$e(y.text))await re(r,y,{startx:n,stopx:c,starty:s});else Kt(r,y);let w=M.width,p;if(n===c){let m=b||T.showSequenceNumbers,Y=gr(o,a),K=xa(o,a),B=n+(m&&(Y||K)?10:0);if(T.rightAngles)p=r.append("path").attr("d",`M ${B},${s} H ${n+C.getMax(T.width/2,w/2)} V ${s+25} H ${n}`);else p=r.append("path").attr("d","M "+B+","+s+" C "+(B+60)+","+(s-10)+" "+(n+60)+","+(s+30)+" "+n+","+(s+20));if(ue(o,a))er(r,o,e,a,n,c,s)}else if(p=r.append("line"),p.attr("x1",n),p.attr("y1",s),p.attr("x2",c),p.attr("y2",s),ue(o,a))er(r,o,e,a,n,c,s);if(_===a.db.LINETYPE.DOTTED||_===a.db.LINETYPE.DOTTED_CROSS||_===a.db.LINETYPE.DOTTED_POINT||_===a.db.LINETYPE.DOTTED_OPEN||_===a.db.LINETYPE.BIDIRECTIONAL_DOTTED||_===a.db.LINETYPE.SOLID_TOP_DOTTED||_===a.db.LINETYPE.SOLID_BOTTOM_DOTTED||_===a.db.LINETYPE.STICK_TOP_DOTTED||_===a.db.LINETYPE.STICK_BOTTOM_DOTTED||_===a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||_===a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||_===a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||_===a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)p.style("stroke-dasharray","3, 3"),p.attr("class","messageLine1");else p.attr("class","messageLine0");p.attr("data-et","message"),p.attr("data-id","i"+e.id),p.attr("data-from",e.from),p.attr("data-to",e.to);let v="";if(T.arrowMarkerAbsolute)v=Vs(!0);if(p.attr("stroke-width",2),p.attr("stroke","none"),p.style("fill","none"),_===a.db.LINETYPE.SOLID_TOP||_===a.db.LINETYPE.SOLID_TOP_DOTTED)p.attr("marker-end","url("+v+"#"+h+"-solidTopArrowHead)");if(_===a.db.LINETYPE.SOLID_BOTTOM||_===a.db.LINETYPE.SOLID_BOTTOM_DOTTED)p.attr("marker-end","url("+v+"#"+h+"-solidBottomArrowHead)");if(_===a.db.LINETYPE.STICK_TOP||_===a.db.LINETYPE.STICK_TOP_DOTTED)p.attr("marker-end","url("+v+"#"+h+"-stickTopArrowHead)");if(_===a.db.LINETYPE.STICK_BOTTOM||_===a.db.LINETYPE.STICK_BOTTOM_DOTTED)p.attr("marker-end","url("+v+"#"+h+"-stickBottomArrowHead)");if(_===a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||_===a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED)p.attr("marker-start","url("+v+"#"+h+"-solidBottomArrowHead)");if(_===a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||_===a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED)p.attr("marker-start","url("+v+"#"+h+"-solidTopArrowHead)");if(_===a.db.LINETYPE.STICK_ARROW_TOP_REVERSE||_===a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED)p.attr("marker-start","url("+v+"#"+h+"-stickBottomArrowHead)");if(_===a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||_===a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)p.attr("marker-start","url("+v+"#"+h+"-stickTopArrowHead)");if(_===a.db.LINETYPE.SOLID||_===a.db.LINETYPE.DOTTED)p.attr("marker-end","url("+v+"#"+h+"-arrowhead)");if(_===a.db.LINETYPE.BIDIRECTIONAL_SOLID||_===a.db.LINETYPE.BIDIRECTIONAL_DOTTED)p.attr("marker-start","url("+v+"#"+h+"-arrowhead)"),p.attr("marker-end","url("+v+"#"+h+"-arrowhead)");if(_===a.db.LINETYPE.SOLID_POINT||_===a.db.LINETYPE.DOTTED_POINT)p.attr("marker-end","url("+v+"#"+h+"-filled-head)");if(_===a.db.LINETYPE.SOLID_CROSS||_===a.db.LINETYPE.DOTTED_CROSS)p.attr("marker-end","url("+v+"#"+h+"-crosshead)");if(b||T.showSequenceNumbers){let m=_===a.db.LINETYPE.BIDIRECTIONAL_SOLID||_===a.db.LINETYPE.BIDIRECTIONAL_DOTTED,Y=_===a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||_===a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||_===a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||_===a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||_===a.db.LINETYPE.STICK_ARROW_TOP_REVERSE||_===a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||_===a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||_===a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,K=6,B=ue(o,a),q=n,z=c;if(m){if(n<c)q=n+12;else q=n-6+(B?-5:0),q+=o?.centralConnection===a.db.LINETYPE.CENTRAL_CONNECTION_DUAL||o?.centralConnection===a.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0;p.attr("x1",q)}else if(Y){if(c>n)z=c-12;else z=c-6,q+=o?.centralConnection===a.db.LINETYPE.CENTRAL_CONNECTION_DUAL||o?.centralConnection===a.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0;z+=B?15:0,p.attr("x2",z),p.attr("x1",q)}else p.attr("x1",n+6);let J=0,tt=n===c,rt=n<=c;if(tt)J=e.fromBounds+1;else if(Y)J=rt?e.toBounds-1:e.fromBounds+1;else J=rt?e.fromBounds+1:e.toBounds-1;let ot="12px",lt=x.toString().length;if(lt>5)ot="7px";else if(lt>3)ot="9px";r.append("line").attr("x1",J).attr("y1",s).attr("x2",J).attr("y2",s).attr("stroke-width",0).attr("marker-start","url("+v+"#"+h+"-sequencenumber)"),r.append("text").attr("x",J).attr("y",s+4).attr("font-family","sans-serif").attr("font-size",ot).attr("text-anchor","middle").attr("class","sequenceNumber").text(x)}},"drawMessage"),Ta=t(function(r,e,s,a,o,h,n){let c=0,f=0,E=void 0,_=0;for(let x of a){let b=e.get(x),M=b.box;if(E&&E!=M){if(!n)k.models.addBox(E);f+=T.boxMargin+E.margin}if(M&&M!=E){if(!n)M.x=c+f,M.y=o;f+=M.margin}if(b.width=C.getMax(b.width||T.width,T.width),b.height=C.getMax(b.height||T.height,T.height),b.margin=b.margin||T.actorMargin,_=C.getMax(_,b.height),s.get(b.name))f+=b.width/2;if(b.x=c+f,b.starty=k.getVerticalPos(),k.insert(b.x,o,b.x+b.width,b.height),c+=b.width+f,b.box)b.box.width=c+M.margin-b.box.x;f=b.margin,E=b.box,k.models.addActor(b)}if(E&&!n)k.models.addBox(E);k.bumpVerticalPos(_)},"addActorRenderingData"),ge=t(async function(r,e,s,a,o,h,n){if(!a)for(let c of s){let f=e.get(c);await nt.drawActor(r,f,T,!1,o,h,n)}else{let c=0;k.bumpVerticalPos(T.boxMargin*2);for(let f of s){let E=e.get(f);if(!E.stopy)E.stopy=k.getVerticalPos();let _=await nt.drawActor(r,E,T,!0,o,h,n);c=C.getMax(c,_)}k.bumpVerticalPos(c+T.boxMargin)}},"drawActors"),hr=t(function(r,e,s,a){let o=0,h=0;for(let n of s){let c=e.get(n),f=Ea(c),E=nt.drawPopup(r,c,f,T,T.forceMenus,a);if(E.height>o)o=E.height;if(E.width+c.x>h)h=E.width+c.x}return{maxHeight:o,maxWidth:h}},"drawActorsPopup"),pr=t(function(r){if(Se(T,r),r.fontFamily)T.actorFontFamily=T.noteFontFamily=T.messageFontFamily=r.fontFamily;if(r.fontSize)T.actorFontSize=T.noteFontSize=T.messageFontSize=r.fontSize;if(r.fontWeight)T.actorFontWeight=T.noteFontWeight=T.messageFontWeight=r.fontWeight},"setConf"),ne=t(function(r){return k.activations.filter(function(e){return e.actor===r})},"actorActivations"),rr=t(function(r,e){let s=e.get(r),a=ne(r),o=a.reduce(function(n,c){return C.getMin(n,c.startx)},s.x+s.width/2-1),h=a.reduce(function(n,c){return C.getMax(n,c.stopx)},s.x+s.width/2+1);return[o,h]},"activationBounds");function Rt(r,e,s,a,o){k.bumpVerticalPos(s);let h=a;if(e.id&&e.message&&r[e.id]){let n=r[e.id].width,c=Mt(T);e.message=H.wrapLabel(`[${e.message}]`,n-2*T.wrapPadding,c),e.width=n,e.wrap=!0;let f=H.calculateTextDimensions(e.message,c),E=C.getMax(f.height,T.labelBoxHeight);h=a+E,i.debug(`${E} - ${e.message}`)}o(e),k.bumpVerticalPos(h)}t(Rt,"adjustLoopHeightForWrap");function Er(r,e,s,a,o,h,n){function c(_,x){if(_.x<o.get(r.from).x)k.insert(e.stopx-x,e.starty,e.startx,e.stopy+_.height/2+T.noteMargin),e.stopx=e.stopx+x;else k.insert(e.startx,e.starty,e.stopx+x,e.stopy+_.height/2+T.noteMargin),e.stopx=e.stopx-x}t(c,"receiverAdjustment");function f(_,x){if(_.x<o.get(r.to).x)k.insert(e.startx-x,e.starty,e.stopx,e.stopy+_.height/2+T.noteMargin),e.startx=e.startx+x;else k.insert(e.stopx,e.starty,e.startx+x,e.stopy+_.height/2+T.noteMargin),e.startx=e.startx-x}t(f,"senderAdjustment");let E=[te.ACTOR,te.CONTROL,te.ENTITY,te.DATABASE];if(h.get(r.to)==a){let _=o.get(r.to),x=E.includes(_.type)?vt/2+3:_.width/2+3;c(_,x),_.starty=s-_.height/2,k.bumpVerticalPos(_.height/2)}else if(n.get(r.from)==a){let _=o.get(r.from);if(T.mirrorActors){let x=E.includes(_.type)?vt/2:_.width/2;f(_,x)}_.stopy=s-_.height/2,k.bumpVerticalPos(_.height/2)}else if(n.get(r.to)==a){let _=o.get(r.to);if(T.mirrorActors){let x=E.includes(_.type)?vt/2+3:_.width/2+3;c(_,x)}_.stopy=s-_.height/2,k.bumpVerticalPos(_.height/2)}}t(Er,"adjustCreatedDestroyedData");var pa=t(async function(r,e,s,a){let{securityLevel:o,sequence:h,look:n,themeVariables:c}=d();T=h;let f;if(o==="sandbox")f=g("#i"+e);let E=o==="sandbox"?g(f.nodes()[0].contentDocument.body):g("body"),_=o==="sandbox"?f.nodes()[0].contentDocument:document;k.init(),i.debug(a.db);let x=o==="sandbox"?E.select(`[id="${e}"]`):g(`[id="${e}"]`),b=a.db.getActors(),M=a.db.getCreatedActors(),y=a.db.getDestroyedActors(),w=a.db.getBoxes(),p=a.db.getActorKeys(),v=a.db.getMessages(),m=a.db.getDiagramTitle(),Y=a.db.hasAtLeastOneBox(),K=a.db.hasAtLeastOneBoxWithTitle(),B=await ur(b,v,a);if(T.height=await _r(b,B,w),nt.insertComputerIcon(x,e),nt.insertDatabaseIcon(x,e),nt.insertClockIcon(x,e),Y){if(k.bumpVerticalPos(T.boxMargin),K)k.bumpVerticalPos(w[0].textMaxHeight)}if(T.hideUnusedParticipants===!0){let V=new Set;v.forEach((G)=>{V.add(G.from),V.add(G.to)}),p=p.filter((G)=>V.has(G))}let q=new Map(p.map((V,G)=>[b.get(V)?.name??V,G]));Ta(x,b,M,p,0,v,!1);let z=await Ia(v,b,B,a);if(nt.insertArrowHead(x,e),nt.insertArrowCrossHead(x,e),nt.insertArrowFilledHead(x,e),nt.insertSequenceNumber(x,e),nt.insertSolidTopArrowHead(x,e),nt.insertSolidBottomArrowHead(x,e),nt.insertStickTopArrowHead(x,e),nt.insertStickBottomArrowHead(x,e),n==="neo")nt.insertDropShadow(x,T,e);function J(V,G){let yt=k.endActivation(V);if(yt.starty+18>G)yt.starty=G-6,G+=12;nt.drawActivation(x,yt,G,T,ne(V.from).length,a,q),k.insert(yt.startx,G-10,yt.stopx,G)}t(J,"activeEnd");let tt=1,rt=1,ot=[],lt=[],Et=0;for(let V of v){let G,yt,_t;switch(V.type){case a.db.LINETYPE.NOTE:k.resetVerticalPos(),yt=V.noteModel,await ha(x,yt,V.id);break;case a.db.LINETYPE.ACTIVE_START:k.newActivation(V,x,b);break;case a.db.LINETYPE.CENTRAL_CONNECTION:k.newActivation(V,x,b);break;case a.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:k.newActivation(V,x,b);break;case a.db.LINETYPE.ACTIVE_END:J(V,k.getVerticalPos());break;case a.db.LINETYPE.LOOP_START:Rt(z,V,T.boxMargin,T.boxMargin+T.boxTextMargin,(at)=>k.newLoop(at));break;case a.db.LINETYPE.LOOP_END:G=k.endLoop(),await nt.drawLoop(x,G,"loop",T,V),k.bumpVerticalPos(G.stopy-k.getVerticalPos()),k.models.addLoop(G);break;case a.db.LINETYPE.RECT_START:Rt(z,V,T.boxMargin,T.boxMargin,(at)=>{let Bt=at.message;if(!Bt)Bt=c?.rectBkgColor||c?.actorBkg||"rgba(128, 128, 128, 0.5)";k.newLoop(void 0,Bt)});break;case a.db.LINETYPE.RECT_END:G=k.endLoop(),lt.push(G),k.models.addLoop(G),k.bumpVerticalPos(G.stopy-k.getVerticalPos());break;case a.db.LINETYPE.OPT_START:Rt(z,V,T.boxMargin,T.boxMargin+T.boxTextMargin,(at)=>k.newLoop(at));break;case a.db.LINETYPE.OPT_END:G=k.endLoop(),await nt.drawLoop(x,G,"opt",T,V),k.bumpVerticalPos(G.stopy-k.getVerticalPos()),k.models.addLoop(G);break;case a.db.LINETYPE.ALT_START:Rt(z,V,T.boxMargin,T.boxMargin+T.boxTextMargin,(at)=>k.newLoop(at));break;case a.db.LINETYPE.ALT_ELSE:Rt(z,V,T.boxMargin+T.boxTextMargin,T.boxMargin,(at)=>k.addSectionToLoop(at));break;case a.db.LINETYPE.ALT_END:G=k.endLoop(),await nt.drawLoop(x,G,"alt",T,V),k.bumpVerticalPos(G.stopy-k.getVerticalPos()),k.models.addLoop(G);break;case a.db.LINETYPE.PAR_START:case a.db.LINETYPE.PAR_OVER_START:Rt(z,V,T.boxMargin,T.boxMargin+T.boxTextMargin,(at)=>k.newLoop(at)),k.saveVerticalPos();break;case a.db.LINETYPE.PAR_AND:Rt(z,V,T.boxMargin+T.boxTextMargin,T.boxMargin,(at)=>k.addSectionToLoop(at));break;case a.db.LINETYPE.PAR_END:G=k.endLoop(),await nt.drawLoop(x,G,"par",T,V),k.bumpVerticalPos(G.stopy-k.getVerticalPos()),k.models.addLoop(G);break;case a.db.LINETYPE.AUTONUMBER:if(tt=V.message.start||tt,rt=V.message.step||rt,V.message.visible)a.db.enableSequenceNumbers();else a.db.disableSequenceNumbers();break;case a.db.LINETYPE.CRITICAL_START:Rt(z,V,T.boxMargin,T.boxMargin+T.boxTextMargin,(at)=>k.newLoop(at));break;case a.db.LINETYPE.CRITICAL_OPTION:Rt(z,V,T.boxMargin+T.boxTextMargin,T.boxMargin,(at)=>k.addSectionToLoop(at));break;case a.db.LINETYPE.CRITICAL_END:G=k.endLoop(),await nt.drawLoop(x,G,"critical",T,V),k.bumpVerticalPos(G.stopy-k.getVerticalPos()),k.models.addLoop(G);break;case a.db.LINETYPE.BREAK_START:Rt(z,V,T.boxMargin,T.boxMargin+T.boxTextMargin,(at)=>k.newLoop(at));break;case a.db.LINETYPE.BREAK_END:G=k.endLoop(),await nt.drawLoop(x,G,"break",T,V),k.bumpVerticalPos(G.stopy-k.getVerticalPos()),k.models.addLoop(G);break;default:try{_t=V.msgModel,_t.starty=k.getVerticalPos(),_t.sequenceIndex=tt,_t.sequenceVisible=a.db.showSequenceNumbers(),_t.id=V.id,_t.from=V.from,_t.to=V.to;let at=await lr(x,_t);Er(V,_t,at,Et,b,M,y),ot.push({messageModel:_t,lineStartY:at,msg:V}),k.models.addMessage(_t)}catch(at){i.error("error while drawing message",at)}}if([a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN,a.db.LINETYPE.SOLID,a.db.LINETYPE.SOLID_TOP,a.db.LINETYPE.SOLID_BOTTOM,a.db.LINETYPE.STICK_TOP,a.db.LINETYPE.STICK_BOTTOM,a.db.LINETYPE.SOLID_TOP_DOTTED,a.db.LINETYPE.SOLID_BOTTOM_DOTTED,a.db.LINETYPE.STICK_TOP_DOTTED,a.db.LINETYPE.STICK_BOTTOM_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,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(V.type))tt=Math.round((tt+rt)*100)/100;Et++}i.debug("createdActors",M),i.debug("destroyedActors",y),await ge(x,b,p,!1,e,a,q);for(let V of ot)await da(x,V.messageModel,V.lineStartY,a,V.msg,e);if(T.mirrorActors)await ge(x,b,p,!0,e,a,q);lt.forEach((V)=>nt.drawBackgroundRect(x,V)),nr(x,b,p,T);for(let V of k.models.boxes){V.height=k.getVerticalPos()-V.y,k.insert(V.x,V.y,V.x+V.width,V.height);let G=T.boxMargin*2;V.startx=V.x-G,V.starty=V.y-G*0.25,V.stopx=V.startx+V.width+2*G,V.stopy=V.starty+V.height+G*0.75,V.stroke="rgb(0,0,0, 0.5)",nt.drawBox(x,V,T)}if(Y)k.bumpVerticalPos(T.boxMargin);let ut=hr(x,b,p,_),{bounds:ct}=k.getBounds();if(ct.startx===void 0)ct.startx=0;if(ct.starty===void 0)ct.starty=0;if(ct.stopx===void 0)ct.stopx=0;if(ct.stopy===void 0)ct.stopy=0;let gt=ct.stopy-ct.starty;if(gt<ut.maxHeight)gt=ut.maxHeight;let ft=gt+2*T.diagramMarginY;if(T.mirrorActors)ft=ft-T.boxMargin+T.bottomMarginAdj;let et=ct.stopx-ct.startx;if(et<ut.maxWidth)et=ut.maxWidth;let Q=et+2*T.diagramMarginX;if(m)x.append("text").text(m).attr("x",(ct.stopx-ct.startx)/2-2*T.diagramMarginX).attr("y",-25);W(x,ft,Q,T.useMaxWidth);let dt=m?40:0,Xt=b.size&&n==="neo"?30:0;x.attr("viewBox",ct.startx-T.diagramMarginX+" -"+(T.diagramMarginY+dt)+" "+Q+" "+(ft+dt+Xt)),i.debug("models:",k.models)},"draw");async function ur(r,e,s){let a={};for(let o of e)if(r.get(o.to)&&r.get(o.from)){let h=r.get(o.to);if(o.placement===s.db.PLACEMENT.LEFTOF&&!h.prevActor)continue;if(o.placement===s.db.PLACEMENT.RIGHTOF&&!h.nextActor)continue;let n=o.placement!==void 0,c=!n,f=n?Wt(T):Mt(T),E=o.wrap?H.wrapLabel(o.message,T.width-2*T.wrapPadding,f):o.message,x=($e(E)?await Va(o.message,d()):H.calculateTextDimensions(E,f)).width+2*T.wrapPadding;if(c&&o.from===h.nextActor)a[o.to]=C.getMax(a[o.to]||0,x);else if(c&&o.from===h.prevActor)a[o.from]=C.getMax(a[o.from]||0,x);else if(c&&o.from===o.to)a[o.from]=C.getMax(a[o.from]||0,x/2),a[o.to]=C.getMax(a[o.to]||0,x/2);else if(o.placement===s.db.PLACEMENT.RIGHTOF)a[o.from]=C.getMax(a[o.from]||0,x);else if(o.placement===s.db.PLACEMENT.LEFTOF)a[h.prevActor]=C.getMax(a[h.prevActor]||0,x);else if(o.placement===s.db.PLACEMENT.OVER){if(h.prevActor)a[h.prevActor]=C.getMax(a[h.prevActor]||0,x/2);if(h.nextActor)a[o.from]=C.getMax(a[o.from]||0,x/2)}}return i.debug("maxMessageWidthPerActor:",a),a}t(ur,"getMaxMessageWidthPerActor");var Ea=t(function(r){let e=0,s=_e(T);for(let a in r.links){let h=H.calculateTextDimensions(a,s).width+2*T.wrapPadding+2*T.boxMargin;if(e<h)e=h}return e},"getRequiredPopupWidth");async function _r(r,e,s){let a=0;for(let h of r.keys()){let n=r.get(h);if(n.wrap)n.description=H.wrapLabel(n.description,T.width-2*T.wrapPadding,_e(T));let c=$e(n.description)?await Va(n.description,d()):H.calculateTextDimensions(n.description,_e(T));if(n.width=n.wrap?T.width:C.getMax(T.width,c.width+2*T.wrapPadding),d().look==="neo")n.actorTextHeight=c.height,n.height=C.getMax(ar(c.height),T.height);else n.height=n.wrap?C.getMax(c.height,T.height):T.height;a=C.getMax(a,n.height)}for(let h in e){let n=r.get(h);if(!n)continue;let c=r.get(n.nextActor);if(!c){let x=e[h]+T.actorMargin-n.width/2;n.margin=C.getMax(x,T.actorMargin);continue}let E=e[h]+T.actorMargin-n.width/2-c.width/2;n.margin=C.getMax(E,T.actorMargin)}let o=0;return s.forEach((h)=>{let n=Mt(T),c=h.actorKeys.reduce((x,b)=>x+=r.get(b).width+(r.get(b).margin||0),0),f=T.boxMargin*8;if(c+=f,c-=2*T.boxTextMargin,h.wrap)h.name=H.wrapLabel(h.name,c-2*T.wrapPadding,n);let E=H.calculateTextDimensions(h.name,n);o=C.getMax(E.height,o);let _=C.getMax(c,E.width+2*T.wrapPadding);if(h.margin=T.boxTextMargin,c<_){let x=(_-c)/2;h.margin+=x}}),s.forEach((h)=>h.textMaxHeight=o),C.getMax(a,T.height)}t(_r,"calculateActorMargins");var ua=t(async function(r,e,s){let a=e.get(r.from),o=e.get(r.to),h=a.x,n=o.x,c=r.wrap&&r.message,f=$e(r.message)?await Va(r.message,d()):H.calculateTextDimensions(c?H.wrapLabel(r.message,T.width,Wt(T)):r.message,Wt(T)),E={width:c?T.width:C.getMax(T.width,f.width+2*T.noteMargin),height:0,startx:a.x,stopx:0,starty:0,stopy:0,message:r.message};if(r.placement===s.db.PLACEMENT.RIGHTOF)E.width=c?C.getMax(T.width,f.width):C.getMax(a.width/2+o.width/2,f.width+2*T.noteMargin),E.startx=h+(a.width+T.actorMargin)/2;else if(r.placement===s.db.PLACEMENT.LEFTOF)E.width=c?C.getMax(T.width,f.width+2*T.noteMargin):C.getMax(a.width/2+o.width/2,f.width+2*T.noteMargin),E.startx=h-E.width+(a.width-T.actorMargin)/2;else if(r.to===r.from)f=H.calculateTextDimensions(c?H.wrapLabel(r.message,C.getMax(T.width,a.width),Wt(T)):r.message,Wt(T)),E.width=c?C.getMax(T.width,a.width):C.getMax(a.width,T.width,f.width+2*T.noteMargin),E.startx=h+(a.width-E.width)/2;else E.width=Math.abs(h+a.width/2-(n+o.width/2))+T.actorMargin,E.startx=h<n?h+a.width/2-T.actorMargin/2:n+o.width/2-T.actorMargin/2;if(c)E.message=H.wrapLabel(r.message,E.width-2*T.wrapPadding,Wt(T));return i.debug(`NM:[${E.startx},${E.stopx},${E.starty},${E.stopy}:${E.width},${E.height}=${r.message}]`),E},"buildNoteModel"),fa=4,_a=6,ue=t(function(r,e){let{CENTRAL_CONNECTION:s,CENTRAL_CONNECTION_REVERSE:a,CENTRAL_CONNECTION_DUAL:o}=e.db.LINETYPE;return[s,a,o].includes(r.centralConnection)},"hasCentralConnection"),ga=t(function(r,e,s){let{CENTRAL_CONNECTION_REVERSE:a,CENTRAL_CONNECTION_DUAL:o,BIDIRECTIONAL_SOLID:h,BIDIRECTIONAL_DOTTED:n}=e.db.LINETYPE,c=0;if(r.centralConnection===a||r.centralConnection===o)c+=fa;if((r.centralConnection===a||r.centralConnection===o)&&(r.type===h||r.type===n))c+=s?0:-_a;return c},"calculateCentralConnectionOffset"),gr=t(function(r,e){let{SOLID_ARROW_TOP_REVERSE:s,SOLID_ARROW_TOP_REVERSE_DOTTED:a,SOLID_ARROW_BOTTOM_REVERSE:o,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:h,STICK_ARROW_TOP_REVERSE:n,STICK_ARROW_TOP_REVERSE_DOTTED:c,STICK_ARROW_BOTTOM_REVERSE:f,STICK_ARROW_BOTTOM_REVERSE_DOTTED:E}=e.db.LINETYPE;return[s,a,o,h,n,c,f,E].includes(r.type)},"isReverseArrowType"),xa=t(function(r,e){let{BIDIRECTIONAL_SOLID:s,BIDIRECTIONAL_DOTTED:a}=e.db.LINETYPE;return[s,a].includes(r.type)},"isBidirectionalArrowType"),ba=t(function(r,e,s){let{look:a}=d();if(![s.db.LINETYPE.SOLID_OPEN,s.db.LINETYPE.DOTTED_OPEN,s.db.LINETYPE.SOLID,s.db.LINETYPE.SOLID_TOP,s.db.LINETYPE.SOLID_BOTTOM,s.db.LINETYPE.STICK_TOP,s.db.LINETYPE.STICK_BOTTOM,s.db.LINETYPE.SOLID_TOP_DOTTED,s.db.LINETYPE.SOLID_BOTTOM_DOTTED,s.db.LINETYPE.STICK_TOP_DOTTED,s.db.LINETYPE.STICK_BOTTOM_DOTTED,s.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,s.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,s.db.LINETYPE.STICK_ARROW_TOP_REVERSE,s.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,s.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,s.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,s.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,s.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,s.db.LINETYPE.DOTTED,s.db.LINETYPE.SOLID_CROSS,s.db.LINETYPE.DOTTED_CROSS,s.db.LINETYPE.SOLID_POINT,s.db.LINETYPE.DOTTED_POINT,s.db.LINETYPE.BIDIRECTIONAL_SOLID,s.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(r.type))return{};let[o,h]=rr(r.from,e),[n,c]=rr(r.to,e),f=o<=n,E=f?h:o,_=f?n:c;if(a==="neo"){if(r.type!==s.db.LINETYPE.SOLID_OPEN)_+=f?-3:3;if(r.type===s.db.LINETYPE.BIDIRECTIONAL_SOLID||r.type===s.db.LINETYPE.BIDIRECTIONAL_DOTTED)E+=f?3:-3}E+=ga(r,s,f);let x=Math.abs(n-c)>2,b=t((p)=>f?-p:p,"adjustValue");if(r.from===r.to)_=E;else{if(r.activate&&!x)_+=b(T.activationWidth/2-1);if(![s.db.LINETYPE.SOLID_OPEN,s.db.LINETYPE.DOTTED_OPEN,s.db.LINETYPE.STICK_TOP,s.db.LINETYPE.STICK_BOTTOM,s.db.LINETYPE.STICK_TOP_DOTTED,s.db.LINETYPE.STICK_BOTTOM_DOTTED,s.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,s.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,s.db.LINETYPE.STICK_ARROW_TOP_REVERSE,s.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,s.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,s.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,s.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,s.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(r.type))_+=b(3);if([s.db.LINETYPE.BIDIRECTIONAL_SOLID,s.db.LINETYPE.BIDIRECTIONAL_DOTTED,s.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,s.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,s.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,s.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(r.type))E-=b(3)}let M=[o,h,n,c],y=Math.abs(E-_);if(r.wrap&&r.message)r.message=H.wrapLabel(r.message,C.getMax(y+2*T.wrapPadding,T.width),Mt(T));let w=H.calculateTextDimensions(r.message,Mt(T));return{width:C.getMax(r.wrap?0:w.width+2*T.wrapPadding,y+2*T.wrapPadding,T.width),height:0,startx:E,stopx:_,starty:0,stopy:0,message:r.message,type:r.type,wrap:r.wrap,fromBounds:Math.min.apply(null,M),toBounds:Math.max.apply(null,M)}},"buildMessageModel"),Ia=t(async function(r,e,s,a){let o={},h=[],n,c,f;for(let E of r){switch(E.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:h.push({id:E.id,msg:E.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case a.db.LINETYPE.ALT_ELSE:case a.db.LINETYPE.PAR_AND:case a.db.LINETYPE.CRITICAL_OPTION:if(E.message)n=h.pop(),o[n.id]=n,o[E.id]=n,h.push(n);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:n=h.pop(),o[n.id]=n;break;case a.db.LINETYPE.ACTIVE_START:{let x=e.get(E.from?E.from:E.to.actor),b=ne(E.from?E.from:E.to.actor).length,M=x.x+x.width/2+(b-1)*T.activationWidth/2,y={startx:M,stopx:M+T.activationWidth,actor:E.from,enabled:!0};k.activations.push(y)}break;case a.db.LINETYPE.ACTIVE_END:{let x=k.activations.map((b)=>b.actor).lastIndexOf(E.from);k.activations.splice(x,1).splice(0,1)}break}if(E.placement!==void 0)c=await ua(E,e,a),E.noteModel=c,h.forEach((x)=>{n=x,n.from=C.getMin(n.from,c.startx),n.to=C.getMax(n.to,c.startx+c.width),n.width=C.getMax(n.width,Math.abs(n.from-n.to))-T.labelBoxWidth});else if(f=ba(E,e,a),E.msgModel=f,f.startx&&f.stopx&&h.length>0)h.forEach((x)=>{if(n=x,f.startx===f.stopx){let b=e.get(E.from),M=e.get(E.to);n.from=C.getMin(b.x-f.width/2,b.x-b.width/2,n.from),n.to=C.getMax(M.x+f.width/2,M.x+b.width/2,n.to),n.width=C.getMax(n.width,Math.abs(n.to-n.from))-T.labelBoxWidth}else n.from=C.getMin(f.startx,n.from),n.to=C.getMax(f.stopx,n.to),n.width=C.getMax(n.width,f.width)-T.labelBoxWidth})}return k.activations=[],i.debug("Loop type widths:",o),o},"calculateLoopBounds"),ya={bounds:k,drawActors:ge,drawActorsPopup:hr,setConf:pr,draw:pa},Pa={parser:Or,get db(){return new Ar},renderer:ya,styles:Nr,init:t((r)=>{if(!r.sequence)r.sequence={};if(r.wrap)r.sequence.wrap=r.wrap,fr({sequence:{wrap:r.wrap}})},"init")};export{Pa as diagram};
161
+ `;if(K.append("path").attr("d",z),B.append("path").attr("d",`M ${p.x},${p.y+m}
162
+ a ${V},${m} 0 0 0 0,${p.height}`),K.attr("transform",`translate(${V}, ${-(p.height/2)})`),B.attr("transform",`translate(${p.width-V}, ${-p.height/2})`),e.rectData=p,E==="neo")K.attr("filter",`url(#${wt(o)})`);let U=h.get(e.name)??0;if(Lt.has(_))K.style("stroke",ht(M,U)),K.style("fill",ht(b,U)),B.style("stroke",ht(M,U)),B.style("fill",ht(b,U));if(e.properties?.icon){let rt=e.properties.icon.trim(),ot=p.x+p.width-20,lt=p.y+10;if(rt.charAt(0)==="@")eo(w,ot,lt,rt.substr(1));else Ji(w,ot,lt,rt)}mt(s,$e(e.description))(e.description,w,p.x,p.y,p.width,p.height,{class:`actor ${se}`},s);let Z=e.height,tt=K.select("path:last-child");if(tt.node()){let rt=tt.node().getBBox();if(s.look!=="neo")e.height=rt.height,Z=rt.height}if(!a)w.attr("data-et","participant"),w.attr("data-type","queue"),w.attr("data-id",e.name);return Z},"drawActorTypeQueue"),Vr=t(function(r,e,s,a,o,h){let n=a?e.stopy:e.starty,c=e.x+e.width/2,f=Gt(e,s,a,n),E=f?f.lifelineStartY:n+75,{look:_,theme:x,themeVariables:b}=s,{bkgColorArray:M,borderColorArray:y,actorBorder:w,actorBkg:p}=b,v=r.append("g").lower();if(!a)j++,v.append("line").attr("id","actor"+j).attr("x1",c).attr("y1",E).attr("x2",c).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=j;let m=r.append("g"),V=Ct;if(a)V+=` ${kt}`;else V+=` ${At}`;m.attr("class",V),m.attr("name",e.name);let K=Ht();K.x=e.x,K.y=n,K.fill="#eaeaea",K.width=e.width,K.height=e.height,K.class="actor";let B=e.x+e.width/2,z=f?f.glyphBottomY-22:n+32,U=22;m.append("defs").append("marker").attr("id",o+"-filled-head-control").attr("refX",11).attr("refY",5.8).attr("markerWidth",20).attr("markerHeight",28).attr("orient","172.5").attr("stroke-width",1.2).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"),m.append("circle").attr("cx",B).attr("cy",z).attr("r",U).attr("filter",`${_==="neo"?`url(#${wt(o)})`:""}`),m.append("line").attr("marker-end","url(#"+o+"-filled-head-control)").attr("transform",`translate(${B}, ${z-U})`);let Z=h.get(e.name)??0;if(Lt.has(x))m.style("stroke",ht(y,Z)),m.style("fill",ht(M,Z));else m.style("stroke",w),m.style("fill",p);if(!f){let tt=m.node().getBBox();e.height=tt.height+2*(s?.sequence?.labelBoxHeight??0)}if(mt(s,$e(e.description))(e.description,m,K.x,f?f.labelCenterY-K.height/2:K.y+U+(!a?12:5),K.width,K.height,{class:`actor ${Ct}`},s),!a)m.attr("data-et","participant"),m.attr("data-type","control"),m.attr("data-id",e.name);return e.height},"drawActorTypeControl"),Wr=t(function(r,e,s,a,o,h){let n=a?e.stopy:e.starty,c=e.x+e.width/2,f=Gt(e,s,a,n),E=f?f.lifelineStartY:n+75,{look:_,theme:x,themeVariables:b}=s,{bkgColorArray:M,borderColorArray:y}=b,w=r.append("g").lower(),p=r.append("g"),v="actor";if(a)v+=` ${kt}`;else v+=` ${At}`;p.attr("class",v),p.attr("name",e.name);let m=Ht();m.x=e.x,m.y=n,m.fill="#eaeaea",m.width=e.width,m.height=e.height,m.class="actor";let V=e.x+e.width/2,K=f?f.glyphBottomY-22:n+(!a?25:10),B=22;if(p.append("circle").attr("cx",V).attr("cy",K).attr("r",B).attr("width",e.width).attr("height",e.height),p.append("line").attr("x1",V-B).attr("x2",V+B).attr("y1",K+B).attr("y2",K+B).attr("stroke-width",2),_==="neo")p.attr("filter",`url(#${wt(o)})`);let z=h.get(e.name)??0;if(Lt.has(x))p.style("stroke",ht(y,z)),p.style("fill",ht(M,z));if(!f){let U=p.node().getBBox();e.height=U.height+(s?.sequence?.labelBoxHeight??0)}if(!a)j++,w.append("line").attr("id","actor"+j).attr("x1",c).attr("y1",E).attr("x2",c).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=j;if(mt(s,$e(e.description))(e.description,p,m.x,f?f.labelCenterY-m.height/2:m.y+(!a?30:15),m.width,m.height,{class:`actor ${Ct}`},s),!f)p.attr("transform",`translate(0, ${a?B:B/2-5})`);if(!a)p.attr("data-et","participant"),p.attr("data-type","entity"),p.attr("data-id",e.name);return e.height},"drawActorTypeEntity"),Kr=t(function(r,e,s,a,o,h){let n=a?e.stopy:e.starty,c=e.x+e.width/2,f=Gt(e,s,a,n),E=f?f.lifelineStartY:n+e.height+2*s.boxTextMargin,{theme:_,themeVariables:x,look:b}=s,{bkgColorArray:M,borderColorArray:y,actorBorder:w}=x,p=r.append("g").lower(),v=p;if(!a){if(j++,Object.keys(e.links||{}).length&&!s.forceMenus)v.attr("onclick",ie(`actor${j}_popup`)).attr("cursor","pointer");if(v.append("line").attr("id","actor"+j).attr("x1",c).attr("y1",E).attr("x2",c).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),v=p.append("g"),e.actorCnt=j,e.links!=null)v.attr("id","root-"+j);if(b==="neo")v.attr("data-look","neo")}let m=Ht(),V="actor";if(e.properties?.class)V=e.properties.class;else m.fill="#eaeaea";if(a)V+=` ${kt}`;else V+=` ${At}`;m.x=e.x,m.y=n,m.width=e.width,m.height=e.height,m.class=V,m.name=e.name,m.x=e.x,m.y=n;let K=m.width/3,B=K/2,z=B/(2.5+K/50),U=f?ae:m.width/3,Z=f?f.glyphBottomY-U-z:m.y,tt=v.append("g");tt.attr("class",V);let rt=`
163
+ M ${m.x},${Z+z}
164
+ a ${B},${z} 0 0 0 ${K},0
165
+ a ${B},${z} 0 0 0 -${K},0
166
+ l 0,${U-2*z}
167
+ a ${B},${z} 0 0 0 ${K},0
168
+ l 0,-${U-2*z}
169
+ `;if(tt.append("path").attr("d",rt),b==="neo")tt.attr("filter",`url(#${wt(o)})`);let ot=h.get(e.name)??0;if(Lt.has(_))tt.style("stroke",ht(y,ot)),tt.style("fill",ht(M,ot));else tt.style("stroke",w);if(tt.attr("transform",`translate(${K}, ${z})`),e.rectData=m,mt(s,$e(e.description))(e.description,v,m.x,f?f.labelCenterY-m.height/2:m.y+35,m.width,m.height,{class:`actor ${se}`},s),!f){let lt=tt.select("path:last-child");if(lt.node()){let Et=lt.node().getBBox();e.height=Et.height+(s.sequence.labelBoxHeight??0)}}if(!a)v.attr("data-et","participant"),v.attr("data-type","database"),v.attr("data-id",e.name);return e.height},"drawActorTypeDatabase"),Hr=t(function(r,e,s,a,o,h){let n=a?e.stopy:e.starty,c=e.x+e.width/2,f=Gt(e,s,a,n),E=f?f.lifelineStartY:n+80,_=22,x=f?f.glyphBottomY-22:n+12,b=r.append("g").lower(),{look:M,theme:y,themeVariables:w}=s,{bkgColorArray:p,borderColorArray:v,actorBorder:m}=w;if(!a)j++,b.append("line").attr("id","actor"+j).attr("x1",c).attr("y1",E).attr("x2",c).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=j;let V=r.append("g"),K=Ct;if(a)K+=` ${kt}`;else K+=` ${At}`;V.attr("class",K),V.attr("name",e.name);let B=Ht();if(B.x=e.x,B.y=n,B.fill="#eaeaea",B.width=e.width,B.height=e.height,B.class="actor",V.append("line").attr("id","actor-man-torso"+j).attr("x1",e.x+e.width/2-55).attr("y1",x).attr("x2",e.x+e.width/2-15).attr("y2",x),V.append("line").attr("id","actor-man-arms"+j).attr("x1",e.x+e.width/2-55).attr("y1",x-10).attr("x2",e.x+e.width/2-55).attr("y2",x+10),V.append("circle").attr("cx",e.x+e.width/2).attr("cy",x).attr("r",22),M==="neo")V.attr("filter",`url(#${wt(o)})`);let z=h.get(e.name)??0;if(Lt.has(y))V.style("stroke",ht(v,z)),V.style("fill",ht(p,z));else V.style("stroke",m);if(!f){let U=V.node().getBBox();e.height=U.height+(s.sequence.labelBoxHeight??0)}if(mt(s,$e(e.description))(e.description,V,B.x,f?f.labelCenterY-B.height/2:B.y+15,B.width,B.height,{class:`actor ${Ct}`},s),!f)V.attr("transform","translate(0,21)");if(!a)V.attr("data-et","participant"),V.attr("data-type","boundary"),V.attr("data-id",e.name);return e.height},"drawActorTypeBoundary"),Fr=t(function(r,e,s,a,o){let h=a?e.stopy:e.starty,n=e.x+e.width/2,c=Gt(e,s,a,h),f=c?c.lifelineStartY:h+80,{theme:E,themeVariables:_}=s,{bkgColorArray:x,borderColorArray:b,actorBorder:M}=_,y=r.append("g").lower();if(!a)j++,y.append("line").attr("id","actor"+j).attr("x1",n).attr("y1",f).attr("x2",n).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=j;let w=r.append("g"),p=Ct;if(a)p+=` ${kt}`;else p+=` ${At}`;if(w.attr("class",p),w.attr("name",e.name),!a)w.attr("data-et","participant").attr("data-type","actor").attr("data-id",e.name);let v=c?ae/tr:1,m=t((U)=>c?c.glyphBottomY-(sr-U)*v:h+U,"gy"),V=t((U)=>n+U*v,"gx");w.append("line").attr("id","actor-man-torso"+j).attr("x1",n).attr("y1",m(25)).attr("x2",n).attr("y2",m(45)),w.append("line").attr("id","actor-man-arms"+j).attr("x1",V(-vt/2)).attr("y1",m(33)).attr("x2",V(vt/2)).attr("y2",m(33)),w.append("line").attr("x1",V(-vt/2)).attr("y1",m(60)).attr("x2",n).attr("y2",m(45)),w.append("line").attr("x1",n).attr("y1",m(45)).attr("x2",V(vt/2-2)).attr("y2",m(60));let K=w.append("circle");if(K.attr("cx",e.x+e.width/2),K.attr("cy",m(10)),K.attr("r",15*v),K.attr("width",e.width),K.attr("height",e.height),!c)e.height=tr;let B=Ht();B.x=e.x,B.y=h,B.fill="#eaeaea",B.width=e.width,B.height=e.height,B.class="actor",B.rx=3,B.ry=3;let z=o.get(e.name)??0;if(Lt.has(E))w.style("stroke",ht(b,z)),w.style("fill",ht(x,z));else w.style("stroke",M);return mt(s,$e(e.description))(e.description,w,B.x,c?c.labelCenterY-B.height/2:h+35,B.width,B.height,{class:`actor ${Ct}`},s),e.height},"drawActorTypeActor"),qr=t(async function(r,e,s,a,o,h,n){let c=n??new Map([...h.db.getActors().values()].map((f,E)=>[f.name,E]));switch(e.type){case"actor":return await Fr(r,e,s,a,c);case"participant":return await Mr(r,e,s,a,o,c);case"boundary":return await Hr(r,e,s,a,o,c);case"control":return await Vr(r,e,s,a,o,c);case"entity":return await Wr(r,e,s,a,o,c);case"database":return await Kr(r,e,s,a,o,c);case"collections":return await Br(r,e,s,a,o,c);case"queue":return await Yr(r,e,s,a,o,c)}},"drawActor"),zr=t(function(r,e,s){let o=r.append("g");if(or(o,e),e.name)mt(s)(e.name,o,e.x,e.y+s.boxTextMargin+(e.textMaxHeight||0)/2,e.width,0,{class:"text"},s);o.lower()},"drawBox"),Ur=t(function(r){return r.append("g")},"anchorElement"),Gr=t(function(r,e,s,a,o,h,n){let{theme:c,themeVariables:f}=a,{bkgColorArray:E,borderColorArray:_,mainBkg:x}=f,b=Ht(),{anchored:M,actor:y}=e;b.x=e.startx,b.y=e.starty,b.class="activation"+o%3,b.width=e.stopx-e.startx,b.height=s-e.starty;let w=Ut(M,b),v=(n??new Map([...h.db.getActors().values()].map((m,V)=>[m.name,V]))).get(y)??0;if(Lt.has(c))w.style("stroke",ht(_,v)),w.style("fill",ht(E,v)??x)},"drawActivation"),Xr=t(async function(r,e,s,a,o){let{boxMargin:h,boxTextMargin:n,labelBoxHeight:c,labelBoxWidth:f,messageFontFamily:E,messageFontSize:_,messageFontWeight:x}=a,b=r.append("g").attr("data-et","control-structure").attr("data-id","i"+o.id),M=t(function(p,v,m,V){return b.append("line").attr("x1",p).attr("y1",v).attr("x2",m).attr("y2",V).attr("class","loopLine")},"drawLoopLine");if(M(e.startx,e.starty,e.stopx,e.starty),M(e.stopx,e.starty,e.stopx,e.stopy),M(e.startx,e.stopy,e.stopx,e.stopy),M(e.startx,e.starty,e.startx,e.stopy),e.sections!==void 0)e.sections.forEach(function(p){M(e.startx,p.y,e.stopx,p.y).style("stroke-dasharray","3, 3")});let y=to();y.text=s,y.x=e.startx,y.y=e.starty,y.fontFamily=E,y.fontSize=_,y.fontWeight=x,y.anchor="middle",y.valign="middle",y.tspan=!1,y.width=Math.max(f??0,50),y.height=c+(a.look==="neo"?15:0)||20,y.textMargin=n,y.class="labelText",ir(b,y),y=cr(),y.text=e.title,y.x=e.startx+f/2+(e.stopx-e.startx)/2,y.y=e.starty+h+n,y.anchor="middle",y.valign="middle",y.textMargin=n,y.class="loopText",y.fontFamily=E,y.fontSize=_,y.fontWeight=x,y.wrap=!0;let w=$e(y.text)?await re(b,y,e):Kt(b,y);if(e.sectionTitles!==void 0){for(let[p,v]of Object.entries(e.sectionTitles))if(v.message){if(y.text=v.message,y.x=e.startx+(e.stopx-e.startx)/2,y.y=e.sections[p].y+h+n,y.class="sectionTitle",y.anchor="middle",y.valign="middle",y.tspan=!1,y.fontFamily=E,y.fontSize=_,y.fontWeight=x,y.wrap=e.wrap,$e(y.text))e.starty=e.sections[p].y,await re(b,y,e);else Kt(b,y);let m=Math.round(w.map((V)=>(V._groups||V)[0][0].getBBox().height).reduce((V,K)=>V+K));e.sections[p].height+=m-(h+n)}}return e.height=Math.round(e.stopy-e.starty),b},"drawLoop"),or=t(function(r,e){ki(r,e)},"drawBackgroundRect"),Qr=t(function(r,e){r.append("defs").append("symbol").attr("id",e+"-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"),Jr=t(function(r,e){r.append("defs").append("symbol").attr("id",e+"-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"),Zr=t(function(r,e){r.append("defs").append("symbol").attr("id",e+"-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"),$r=t(function(r,e){r.append("defs").append("marker").attr("id",e+"-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"),jr=t(function(r,e){r.append("defs").append("marker").attr("id",e+"-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"),ta=t(function(r,e){r.append("defs").append("marker").attr("id",e+"-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"),ea=t(function(r,e){r.append("defs").append("marker").attr("id",e+"-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"),wt=t((r)=>r?`${r}-drop-shadow`:"drop-shadow","dropShadowId"),ra=t(function(r,e,s){let{theme:a}=e;r.append("defs").append("filter").attr("id",wt(s)).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${a==="redux"||a==="redux-color"?"#000000":"#FFFFFF"}`)},"insertDropShadow"),cr=t(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"),aa=t(function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),mt=function(){function r(h,n,c,f,E,_,x){let b=n.append("text").attr("x",c+E/2).attr("y",f+_/2+5).style("text-anchor","middle").text(h);o(b,x)}t(r,"byText");function e(h,n,c,f,E,_,x,b){let{actorFontSize:M,actorFontFamily:y,actorFontWeight:w}=b,[p,v]=Nt(M),m=h.split(C.lineBreakRegex);for(let V=0;V<m.length;V++){let K=V*p-p*(m.length-1)/2,B=n.append("text").attr("x",c+E/2).attr("y",f).style("text-anchor","middle").style("font-size",v).style("font-weight",w).style("font-family",y);B.append("tspan").attr("x",c+E/2).attr("dy",K).text(m[V]),B.attr("y",f+_/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),o(B,x)}}t(e,"byTspan");function s(h,n,c,f,E,_,x,b){let M=n.append("switch"),w=M.append("foreignObject").attr("x",c).attr("y",f).attr("width",E).attr("height",_).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");w.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(h),e(h,M,c,f,E,_,x,b),o(w,x)}t(s,"byFo");async function a(h,n,c,f,E,_,x,b){let M=await Va(h,A()),y=n.append("switch"),p=y.append("foreignObject").attr("x",c+E/2-M.width/2).attr("y",f+_/2-M.height/2).attr("width",M.width).attr("height",M.height).append("xhtml:div").style("height","100%").style("width","100%");p.append("div").style("text-align","center").style("vertical-align","middle").html(await Ga(h,A())),e(h,y,c,f,E,_,x,b),o(p,x)}t(a,"byKatex");function o(h,n){for(let c in n)if(n.hasOwnProperty(c))h.attr(c,n[c])}return t(o,"_setTextAttrs"),function(h,n=!1){if(n)return a;return h.textPlacement==="fo"?s:h.textPlacement==="old"?r:e}}(),sa=function(){function r(o,h,n,c,f,E,_){let x=h.append("text").attr("x",n).attr("y",c).style("text-anchor","start").text(o);a(x,_)}t(r,"byText");function e(o,h,n,c,f,E,_,x){let{actorFontSize:b,actorFontFamily:M,actorFontWeight:y}=x,w=o.split(C.lineBreakRegex);for(let p=0;p<w.length;p++){let v=p*b-b*(w.length-1)/2,m=h.append("text").attr("x",n).attr("y",c).style("text-anchor","start").style("font-size",b).style("font-weight",y).style("font-family",M);m.append("tspan").attr("x",n).attr("dy",v).text(w[p]),m.attr("y",c+E/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(m,_)}}t(e,"byTspan");function s(o,h,n,c,f,E,_,x){let b=h.append("switch"),y=b.append("foreignObject").attr("x",n).attr("y",c).attr("width",f).attr("height",E).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");y.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(o),e(o,b,n,c,f,E,_,x),a(y,_)}t(s,"byFo");function a(o,h){for(let n in h)if(h.hasOwnProperty(n))o.attr(n,h[n])}return t(a,"_setTextAttrs"),function(o){return o.textPlacement==="fo"?s:o.textPlacement==="old"?r:e}}(),ia=t(function(r,e){r.append("defs").append("marker").attr("id",e+"-solidTopArrowHead").attr("refX",7.9).attr("refY",7.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 8 L 0 8 z")},"insertSolidTopArrowHead"),na=t(function(r,e){r.append("defs").append("marker").attr("id",e+"-solidBottomArrowHead").attr("refX",7.9).attr("refY",0.75).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 0 L 0 8 z")},"insertSolidBottomArrowHead"),oa=t(function(r,e){r.append("defs").append("marker").attr("id",e+"-stickTopArrowHead").attr("refX",7.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 7 7").attr("stroke","black").attr("stroke-width",1.5).attr("fill","none")},"insertStickTopArrowHead"),ca=t(function(r,e){r.append("defs").append("marker").attr("id",e+"-stickBottomArrowHead").attr("refX",7.5).attr("refY",0).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 7 L 7 0").attr("stroke","black").attr("stroke-width",1.5).attr("fill","none")},"insertStickBottomArrowHead"),nt={drawRect:Ut,drawText:Kt,drawLabel:ir,drawActor:qr,drawBox:zr,drawPopup:Cr,anchorElement:Ur,drawActivation:Gr,drawLoop:Xr,drawBackgroundRect:or,insertArrowHead:$r,insertArrowFilledHead:jr,insertSequenceNumber:ta,insertArrowCrossHead:ea,insertDatabaseIcon:Qr,insertComputerIcon:Jr,insertClockIcon:Zr,getTextObj:cr,getNoteRect:aa,fixLifeLineHeights:nr,sanitizeUrl:xe.sanitizeUrl,insertDropShadow:ra,insertSolidTopArrowHead:ia,insertSolidBottomArrowHead:na,insertStickTopArrowHead:oa,insertStickBottomArrowHead:ca},T={},k={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:t(function(){return Math.max.apply(null,this.actors.length===0?[0]:this.actors.map((r)=>r.height||0))+(this.loops.length===0?0:this.loops.map((r)=>r.height||0).reduce((r,e)=>r+e))+(this.messages.length===0?0:this.messages.map((r)=>r.height||0).reduce((r,e)=>r+e))+(this.notes.length===0?0:this.notes.map((r)=>r.height||0).reduce((r,e)=>r+e))},"getHeight"),clear:t(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},"clear"),addBox:t(function(r){this.boxes.push(r)},"addBox"),addActor:t(function(r){this.actors.push(r)},"addActor"),addLoop:t(function(r){this.loops.push(r)},"addLoop"),addMessage:t(function(r){this.messages.push(r)},"addMessage"),addNote:t(function(r){this.notes.push(r)},"addNote"),lastActor:t(function(){return this.actors[this.actors.length-1]},"lastActor"),lastLoop:t(function(){return this.loops[this.loops.length-1]},"lastLoop"),lastMessage:t(function(){return this.messages[this.messages.length-1]},"lastMessage"),lastNote:t(function(){return this.notes[this.notes.length-1]},"lastNote"),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:t(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,pr(d())},"init"),updateVal:t(function(r,e,s,a){if(r[e]===void 0)r[e]=s;else r[e]=a(s,r[e])},"updateVal"),updateBounds:t(function(r,e,s,a){let o=this,h=0;function n(c){return t(function(E){h++;let _=o.sequenceItems.length-h+1;if(o.updateVal(E,"starty",e-_*T.boxMargin,Math.min),o.updateVal(E,"stopy",a+_*T.boxMargin,Math.max),o.updateVal(k.data,"startx",r-_*T.boxMargin,Math.min),o.updateVal(k.data,"stopx",s+_*T.boxMargin,Math.max),c!=="activation")o.updateVal(E,"startx",r-_*T.boxMargin,Math.min),o.updateVal(E,"stopx",s+_*T.boxMargin,Math.max),o.updateVal(k.data,"starty",e-_*T.boxMargin,Math.min),o.updateVal(k.data,"stopy",a+_*T.boxMargin,Math.max)},"updateItemBounds")}t(n,"updateFn"),this.sequenceItems.forEach(n()),this.activations.forEach(n("activation"))},"updateBounds"),insert:t(function(r,e,s,a){let o=C.getMin(r,s),h=C.getMax(r,s),n=C.getMin(e,a),c=C.getMax(e,a);this.updateVal(k.data,"startx",o,Math.min),this.updateVal(k.data,"starty",n,Math.min),this.updateVal(k.data,"stopx",h,Math.max),this.updateVal(k.data,"stopy",c,Math.max),this.updateBounds(o,n,h,c)},"insert"),newActivation:t(function(r,e,s){let a=s.get(r.from),o=ne(r.from).length||0,h=a.x+a.width/2+(o-1)*T.activationWidth/2;this.activations.push({startx:h,starty:this.verticalPos+2,stopx:h+T.activationWidth,stopy:void 0,actor:r.from,anchored:nt.anchorElement(e)})},"newActivation"),endActivation:t(function(r){let e=this.activations.map(function(s){return s.actor}).lastIndexOf(r.from);return this.activations.splice(e,1)[0]},"endActivation"),createLoop:t(function(r={message:void 0,wrap:!1,width:void 0},e){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:r.message,wrap:r.wrap,width:r.width,height:0,fill:e}},"createLoop"),newLoop:t(function(r={message:void 0,wrap:!1,width:void 0},e){this.sequenceItems.push(this.createLoop(r,e))},"newLoop"),endLoop:t(function(){return this.sequenceItems.pop()},"endLoop"),isLoopOverlap:t(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},"isLoopOverlap"),addSectionToLoop:t(function(r){let e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:k.getVerticalPos(),height:0}),e.sectionTitles.push(r),this.sequenceItems.push(e)},"addSectionToLoop"),saveVerticalPos:t(function(){if(this.isLoopOverlap())this.savedVerticalPos=this.verticalPos},"saveVerticalPos"),resetVerticalPos:t(function(){if(this.isLoopOverlap())this.verticalPos=this.savedVerticalPos},"resetVerticalPos"),bumpVerticalPos:t(function(r){this.verticalPos=this.verticalPos+r,this.data.stopy=C.getMax(this.data.stopy,this.verticalPos)},"bumpVerticalPos"),getVerticalPos:t(function(){return this.verticalPos},"getVerticalPos"),getBounds:t(function(){return{bounds:this.data,models:this.models}},"getBounds")},ha=t(async function(r,e,s){k.bumpVerticalPos(T.boxMargin),e.height=T.boxMargin,e.starty=k.getVerticalPos();let a=Ht();a.x=e.startx,a.y=e.starty,a.width=e.width||T.width,a.class="note";let o=r.append("g");o.attr("data-et","note"),o.attr("data-id","i"+s);let h=nt.drawRect(o,a),n=to();n.x=e.startx,n.y=e.starty,n.width=a.width,n.dy="1em",n.text=e.message,n.class="noteText",n.fontFamily=T.noteFontFamily,n.fontSize=T.noteFontSize,n.fontWeight=T.noteFontWeight,n.anchor=T.noteAlign,n.textMargin=T.noteMargin,n.valign="center";let c=$e(n.text)?await re(o,n):Kt(o,n),f=Math.round(c.map((E)=>(E._groups||E)[0][0].getBBox().height).reduce((E,_)=>E+_));h.attr("height",f+2*T.noteMargin),e.height+=f+2*T.noteMargin,k.bumpVerticalPos(f+2*T.noteMargin),e.stopy=e.starty+f+2*T.noteMargin,e.stopx=e.startx+a.width,k.insert(e.startx,e.starty,e.stopx,e.stopy),k.models.addNote(e)},"drawNote"),er=t(function(r,e,s,a,o,h,n){let c=a.db.getActors(),f=c.get(e.from),E=c.get(e.to),_=s.sequenceVisible,x=f.x+f.width/2,b=E.x+E.width/2,M=x<=b,y=gr(e,a),w=r.append("g"),p=16.5,v=t((z,U)=>{let Z=z?p:-p;return U?-Z:Z},"getCircleOffset"),m=t((z)=>{w.append("circle").attr("cx",z).attr("cy",n).attr("r",5).attr("width",10).attr("height",10)},"drawCircle"),{CENTRAL_CONNECTION:V,CENTRAL_CONNECTION_REVERSE:K,CENTRAL_CONNECTION_DUAL:B}=a.db.LINETYPE;if(_)switch(e.centralConnection){case V:if(y)b+=v(M,!0);break;case K:if(!y)x+=v(M,!1);break;case B:if(y)b+=v(M,!0);else x+=v(M,!1);break}switch(e.centralConnection){case V:m(b);break;case K:m(x);break;case B:m(x),m(b);break}},"drawCentralConnection"),Mt=t((r)=>({fontFamily:r.messageFontFamily,fontSize:r.messageFontSize,fontWeight:r.messageFontWeight}),"messageFont"),Wt=t((r)=>({fontFamily:r.noteFontFamily,fontSize:r.noteFontSize,fontWeight:r.noteFontWeight}),"noteFont"),_e=t((r)=>({fontFamily:r.actorFontFamily,fontSize:r.actorFontSize,fontWeight:r.actorFontWeight}),"actorFont");async function lr(r,e){k.bumpVerticalPos(10);let{startx:s,stopx:a,message:o}=e,h=C.splitBreaks(o).length,n=$e(o),c=n?await Va(o,d()):H.calculateTextDimensions(o,Mt(T));if(!n){let x=c.height/h;e.height+=x,k.bumpVerticalPos(x)}let f,E=c.height-10,_=c.width;if(s===a){if(f=k.getVerticalPos()+E,!T.rightAngles)E+=T.boxMargin,f=k.getVerticalPos()+E;E+=30;let x=C.getMax(_/2,T.width/2);k.insert(s-x,k.getVerticalPos()-10+E,a+x,k.getVerticalPos()+30+E)}else E+=T.boxMargin,f=k.getVerticalPos()+E,k.insert(s,f-10,a,f);return k.bumpVerticalPos(E),e.height+=E,e.stopy=e.starty+e.height,k.insert(e.fromBounds,e.starty,e.toBounds,e.stopy),f}t(lr,"boundMessage");var da=t(async function(r,e,s,a,o,h){let{startx:n,stopx:c,starty:f,message:E,type:_,sequenceIndex:x,sequenceVisible:b}=e,M=H.calculateTextDimensions(E,Mt(T)),y=to();if(y.x=Math.min(n,c),y.y=f+10,y.width=Math.abs(c-n),y.class="messageText",y.dy="1em",y.text=E,y.fontFamily=T.messageFontFamily,y.fontSize=T.messageFontSize,y.fontWeight=T.messageFontWeight,y.anchor=T.messageAlign,y.valign="center",y.textMargin=T.wrapPadding,y.tspan=!1,$e(y.text))await re(r,y,{startx:n,stopx:c,starty:s});else Kt(r,y);let w=M.width,p;if(n===c){let m=b||T.showSequenceNumbers,V=gr(o,a),K=xa(o,a),B=n+(m&&(V||K)?10:0);if(T.rightAngles)p=r.append("path").attr("d",`M ${B},${s} H ${n+C.getMax(T.width/2,w/2)} V ${s+25} H ${n}`);else p=r.append("path").attr("d","M "+B+","+s+" C "+(B+60)+","+(s-10)+" "+(n+60)+","+(s+30)+" "+n+","+(s+20));if(ue(o,a))er(r,o,e,a,n,c,s)}else if(p=r.append("line"),p.attr("x1",n),p.attr("y1",s),p.attr("x2",c),p.attr("y2",s),ue(o,a))er(r,o,e,a,n,c,s);if(_===a.db.LINETYPE.DOTTED||_===a.db.LINETYPE.DOTTED_CROSS||_===a.db.LINETYPE.DOTTED_POINT||_===a.db.LINETYPE.DOTTED_OPEN||_===a.db.LINETYPE.BIDIRECTIONAL_DOTTED||_===a.db.LINETYPE.SOLID_TOP_DOTTED||_===a.db.LINETYPE.SOLID_BOTTOM_DOTTED||_===a.db.LINETYPE.STICK_TOP_DOTTED||_===a.db.LINETYPE.STICK_BOTTOM_DOTTED||_===a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||_===a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||_===a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||_===a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)p.style("stroke-dasharray","3, 3"),p.attr("class","messageLine1");else p.attr("class","messageLine0");p.attr("data-et","message"),p.attr("data-id","i"+e.id),p.attr("data-from",e.from),p.attr("data-to",e.to);let v="";if(T.arrowMarkerAbsolute)v=Vs(!0);if(p.attr("stroke-width",2),p.attr("stroke","none"),p.style("fill","none"),_===a.db.LINETYPE.SOLID_TOP||_===a.db.LINETYPE.SOLID_TOP_DOTTED)p.attr("marker-end","url("+v+"#"+h+"-solidTopArrowHead)");if(_===a.db.LINETYPE.SOLID_BOTTOM||_===a.db.LINETYPE.SOLID_BOTTOM_DOTTED)p.attr("marker-end","url("+v+"#"+h+"-solidBottomArrowHead)");if(_===a.db.LINETYPE.STICK_TOP||_===a.db.LINETYPE.STICK_TOP_DOTTED)p.attr("marker-end","url("+v+"#"+h+"-stickTopArrowHead)");if(_===a.db.LINETYPE.STICK_BOTTOM||_===a.db.LINETYPE.STICK_BOTTOM_DOTTED)p.attr("marker-end","url("+v+"#"+h+"-stickBottomArrowHead)");if(_===a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||_===a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED)p.attr("marker-start","url("+v+"#"+h+"-solidBottomArrowHead)");if(_===a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||_===a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED)p.attr("marker-start","url("+v+"#"+h+"-solidTopArrowHead)");if(_===a.db.LINETYPE.STICK_ARROW_TOP_REVERSE||_===a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED)p.attr("marker-start","url("+v+"#"+h+"-stickBottomArrowHead)");if(_===a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||_===a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)p.attr("marker-start","url("+v+"#"+h+"-stickTopArrowHead)");if(_===a.db.LINETYPE.SOLID||_===a.db.LINETYPE.DOTTED)p.attr("marker-end","url("+v+"#"+h+"-arrowhead)");if(_===a.db.LINETYPE.BIDIRECTIONAL_SOLID||_===a.db.LINETYPE.BIDIRECTIONAL_DOTTED)p.attr("marker-start","url("+v+"#"+h+"-arrowhead)"),p.attr("marker-end","url("+v+"#"+h+"-arrowhead)");if(_===a.db.LINETYPE.SOLID_POINT||_===a.db.LINETYPE.DOTTED_POINT)p.attr("marker-end","url("+v+"#"+h+"-filled-head)");if(_===a.db.LINETYPE.SOLID_CROSS||_===a.db.LINETYPE.DOTTED_CROSS)p.attr("marker-end","url("+v+"#"+h+"-crosshead)");if(b||T.showSequenceNumbers){let m=_===a.db.LINETYPE.BIDIRECTIONAL_SOLID||_===a.db.LINETYPE.BIDIRECTIONAL_DOTTED,V=_===a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||_===a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||_===a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||_===a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||_===a.db.LINETYPE.STICK_ARROW_TOP_REVERSE||_===a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||_===a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||_===a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,K=6,B=ue(o,a),z=n,U=c;if(m){if(n<c)z=n+12;else z=n-6+(B?-5:0),z+=o?.centralConnection===a.db.LINETYPE.CENTRAL_CONNECTION_DUAL||o?.centralConnection===a.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0;p.attr("x1",z)}else if(V){if(c>n)U=c-12;else U=c-6,z+=o?.centralConnection===a.db.LINETYPE.CENTRAL_CONNECTION_DUAL||o?.centralConnection===a.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0;U+=B?15:0,p.attr("x2",U),p.attr("x1",z)}else p.attr("x1",n+6);let Z=0,tt=n===c,rt=n<=c;if(tt)Z=e.fromBounds+1;else if(V)Z=rt?e.toBounds-1:e.fromBounds+1;else Z=rt?e.fromBounds+1:e.toBounds-1;let ot="12px",lt=x.toString().length;if(lt>5)ot="7px";else if(lt>3)ot="9px";r.append("line").attr("x1",Z).attr("y1",s).attr("x2",Z).attr("y2",s).attr("stroke-width",0).attr("marker-start","url("+v+"#"+h+"-sequencenumber)"),r.append("text").attr("x",Z).attr("y",s+4).attr("font-family","sans-serif").attr("font-size",ot).attr("text-anchor","middle").attr("class","sequenceNumber").text(x)}},"drawMessage"),Ta=t(function(r,e,s,a,o,h,n){let c=0,f=0,E=void 0,_=0;for(let x of a){let b=e.get(x),M=b.box;if(E&&E!=M){if(!n)k.models.addBox(E);f+=T.boxMargin+E.margin}if(M&&M!=E){if(!n)M.x=c+f,M.y=o;f+=M.margin}if(b.width=C.getMax(b.width||T.width,T.width),b.height=C.getMax(b.height||T.height,T.height),b.margin=b.margin||T.actorMargin,_=C.getMax(_,b.height),s.get(b.name))f+=b.width/2;if(b.x=c+f,b.starty=k.getVerticalPos(),k.insert(b.x,o,b.x+b.width,b.height),c+=b.width+f,b.box)b.box.width=c+M.margin-b.box.x;f=b.margin,E=b.box,k.models.addActor(b)}if(E&&!n)k.models.addBox(E);k.bumpVerticalPos(_)},"addActorRenderingData"),ge=t(async function(r,e,s,a,o,h,n){if(!a)for(let c of s){let f=e.get(c);await nt.drawActor(r,f,T,!1,o,h,n)}else{let c=0;k.bumpVerticalPos(T.boxMargin*2);for(let f of s){let E=e.get(f);if(!E.stopy)E.stopy=k.getVerticalPos();let _=await nt.drawActor(r,E,T,!0,o,h,n);c=C.getMax(c,_)}k.bumpVerticalPos(c+T.boxMargin)}},"drawActors"),hr=t(function(r,e,s,a){let o=0,h=0;for(let n of s){let c=e.get(n),f=Ea(c),E=nt.drawPopup(r,c,f,T,T.forceMenus,a);if(E.height>o)o=E.height;if(E.width+c.x>h)h=E.width+c.x}return{maxHeight:o,maxWidth:h}},"drawActorsPopup"),pr=t(function(r){if(Ae(T,r),r.fontFamily)T.actorFontFamily=T.noteFontFamily=T.messageFontFamily=r.fontFamily;if(r.fontSize)T.actorFontSize=T.noteFontSize=T.messageFontSize=r.fontSize;if(r.fontWeight)T.actorFontWeight=T.noteFontWeight=T.messageFontWeight=r.fontWeight},"setConf"),ne=t(function(r){return k.activations.filter(function(e){return e.actor===r})},"actorActivations"),rr=t(function(r,e){let s=e.get(r),a=ne(r),o=a.reduce(function(n,c){return C.getMin(n,c.startx)},s.x+s.width/2-1),h=a.reduce(function(n,c){return C.getMax(n,c.stopx)},s.x+s.width/2+1);return[o,h]},"activationBounds");function Rt(r,e,s,a,o){k.bumpVerticalPos(s);let h=a;if(e.id&&e.message&&r[e.id]){let n=r[e.id].width,c=Mt(T);e.message=H.wrapLabel(`[${e.message}]`,n-2*T.wrapPadding,c),e.width=n,e.wrap=!0;let f=H.calculateTextDimensions(e.message,c),E=C.getMax(f.height,T.labelBoxHeight);h=a+E,i.debug(`${E} - ${e.message}`)}o(e),k.bumpVerticalPos(h)}t(Rt,"adjustLoopHeightForWrap");function Er(r,e,s,a,o,h,n){function c(_,x){if(_.x<o.get(r.from).x)k.insert(e.stopx-x,e.starty,e.startx,e.stopy+_.height/2+T.noteMargin),e.stopx=e.stopx+x;else k.insert(e.startx,e.starty,e.stopx+x,e.stopy+_.height/2+T.noteMargin),e.stopx=e.stopx-x}t(c,"receiverAdjustment");function f(_,x){if(_.x<o.get(r.to).x)k.insert(e.startx-x,e.starty,e.stopx,e.stopy+_.height/2+T.noteMargin),e.startx=e.startx+x;else k.insert(e.stopx,e.starty,e.startx+x,e.stopy+_.height/2+T.noteMargin),e.startx=e.startx-x}t(f,"senderAdjustment");let E=[te.ACTOR,te.CONTROL,te.ENTITY,te.DATABASE];if(h.get(r.to)==a){let _=o.get(r.to),x=E.includes(_.type)?vt/2+3:_.width/2+3;c(_,x),_.starty=s-_.height/2,k.bumpVerticalPos(_.height/2)}else if(n.get(r.from)==a){let _=o.get(r.from);if(T.mirrorActors){let x=E.includes(_.type)?vt/2:_.width/2;f(_,x)}_.stopy=s-_.height/2,k.bumpVerticalPos(_.height/2)}else if(n.get(r.to)==a){let _=o.get(r.to);if(T.mirrorActors){let x=E.includes(_.type)?vt/2+3:_.width/2+3;c(_,x)}_.stopy=s-_.height/2,k.bumpVerticalPos(_.height/2)}}t(Er,"adjustCreatedDestroyedData");var pa=t(async function(r,e,s,a){let{securityLevel:o,sequence:h,look:n,themeVariables:c}=d();T=h;let f;if(o==="sandbox")f=g("#i"+e);let E=o==="sandbox"?g(f.nodes()[0].contentDocument.body):g("body"),_=o==="sandbox"?f.nodes()[0].contentDocument:document;k.init(),i.debug(a.db);let x=o==="sandbox"?E.select(`[id="${e}"]`):g(`[id="${e}"]`),b=a.db.getActors(),M=a.db.getCreatedActors(),y=a.db.getDestroyedActors(),w=a.db.getBoxes(),p=a.db.getActorKeys(),v=a.db.getMessages(),m=a.db.getDiagramTitle(),V=a.db.hasAtLeastOneBox(),K=a.db.hasAtLeastOneBoxWithTitle(),B=await ur(b,v,a);if(T.height=await _r(b,B,w),nt.insertComputerIcon(x,e),nt.insertDatabaseIcon(x,e),nt.insertClockIcon(x,e),V){if(k.bumpVerticalPos(T.boxMargin),K)k.bumpVerticalPos(w[0].textMaxHeight)}if(T.hideUnusedParticipants===!0){let W=new Set;v.forEach((X)=>{W.add(X.from),W.add(X.to)}),p=p.filter((X)=>W.has(X))}let z=new Map(p.map((W,X)=>[b.get(W)?.name??W,X]));Ta(x,b,M,p,0,v,!1);let U=await Ia(v,b,B,a);if(nt.insertArrowHead(x,e),nt.insertArrowCrossHead(x,e),nt.insertArrowFilledHead(x,e),nt.insertSequenceNumber(x,e),nt.insertSolidTopArrowHead(x,e),nt.insertSolidBottomArrowHead(x,e),nt.insertStickTopArrowHead(x,e),nt.insertStickBottomArrowHead(x,e),n==="neo")nt.insertDropShadow(x,T,e);function Z(W,X){let yt=k.endActivation(W);if(yt.starty+18>X)yt.starty=X-6,X+=12;nt.drawActivation(x,yt,X,T,ne(W.from).length,a,z),k.insert(yt.startx,X-10,yt.stopx,X)}t(Z,"activeEnd");let tt=1,rt=1,ot=[],lt=[],Et=0;for(let W of v){let X,yt,_t;switch(W.type){case a.db.LINETYPE.NOTE:k.resetVerticalPos(),yt=W.noteModel,await ha(x,yt,W.id);break;case a.db.LINETYPE.ACTIVE_START:k.newActivation(W,x,b);break;case a.db.LINETYPE.CENTRAL_CONNECTION:k.newActivation(W,x,b);break;case a.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:k.newActivation(W,x,b);break;case a.db.LINETYPE.ACTIVE_END:Z(W,k.getVerticalPos());break;case a.db.LINETYPE.LOOP_START:Rt(U,W,T.boxMargin,T.boxMargin+T.boxTextMargin,(at)=>k.newLoop(at));break;case a.db.LINETYPE.LOOP_END:X=k.endLoop(),await nt.drawLoop(x,X,"loop",T,W),k.bumpVerticalPos(X.stopy-k.getVerticalPos()),k.models.addLoop(X);break;case a.db.LINETYPE.RECT_START:Rt(U,W,T.boxMargin,T.boxMargin,(at)=>{let Bt=at.message;if(!Bt)Bt=c?.rectBkgColor||c?.actorBkg||"rgba(128, 128, 128, 0.5)";k.newLoop(void 0,Bt)});break;case a.db.LINETYPE.RECT_END:X=k.endLoop(),lt.push(X),k.models.addLoop(X),k.bumpVerticalPos(X.stopy-k.getVerticalPos());break;case a.db.LINETYPE.OPT_START:Rt(U,W,T.boxMargin,T.boxMargin+T.boxTextMargin,(at)=>k.newLoop(at));break;case a.db.LINETYPE.OPT_END:X=k.endLoop(),await nt.drawLoop(x,X,"opt",T,W),k.bumpVerticalPos(X.stopy-k.getVerticalPos()),k.models.addLoop(X);break;case a.db.LINETYPE.ALT_START:Rt(U,W,T.boxMargin,T.boxMargin+T.boxTextMargin,(at)=>k.newLoop(at));break;case a.db.LINETYPE.ALT_ELSE:Rt(U,W,T.boxMargin+T.boxTextMargin,T.boxMargin,(at)=>k.addSectionToLoop(at));break;case a.db.LINETYPE.ALT_END:X=k.endLoop(),await nt.drawLoop(x,X,"alt",T,W),k.bumpVerticalPos(X.stopy-k.getVerticalPos()),k.models.addLoop(X);break;case a.db.LINETYPE.PAR_START:case a.db.LINETYPE.PAR_OVER_START:Rt(U,W,T.boxMargin,T.boxMargin+T.boxTextMargin,(at)=>k.newLoop(at)),k.saveVerticalPos();break;case a.db.LINETYPE.PAR_AND:Rt(U,W,T.boxMargin+T.boxTextMargin,T.boxMargin,(at)=>k.addSectionToLoop(at));break;case a.db.LINETYPE.PAR_END:X=k.endLoop(),await nt.drawLoop(x,X,"par",T,W),k.bumpVerticalPos(X.stopy-k.getVerticalPos()),k.models.addLoop(X);break;case a.db.LINETYPE.AUTONUMBER:if(tt=W.message.start||tt,rt=W.message.step||rt,W.message.visible)a.db.enableSequenceNumbers();else a.db.disableSequenceNumbers();break;case a.db.LINETYPE.CRITICAL_START:Rt(U,W,T.boxMargin,T.boxMargin+T.boxTextMargin,(at)=>k.newLoop(at));break;case a.db.LINETYPE.CRITICAL_OPTION:Rt(U,W,T.boxMargin+T.boxTextMargin,T.boxMargin,(at)=>k.addSectionToLoop(at));break;case a.db.LINETYPE.CRITICAL_END:X=k.endLoop(),await nt.drawLoop(x,X,"critical",T,W),k.bumpVerticalPos(X.stopy-k.getVerticalPos()),k.models.addLoop(X);break;case a.db.LINETYPE.BREAK_START:Rt(U,W,T.boxMargin,T.boxMargin+T.boxTextMargin,(at)=>k.newLoop(at));break;case a.db.LINETYPE.BREAK_END:X=k.endLoop(),await nt.drawLoop(x,X,"break",T,W),k.bumpVerticalPos(X.stopy-k.getVerticalPos()),k.models.addLoop(X);break;default:try{_t=W.msgModel,_t.starty=k.getVerticalPos(),_t.sequenceIndex=tt,_t.sequenceVisible=a.db.showSequenceNumbers(),_t.id=W.id,_t.from=W.from,_t.to=W.to;let at=await lr(x,_t);Er(W,_t,at,Et,b,M,y),ot.push({messageModel:_t,lineStartY:at,msg:W}),k.models.addMessage(_t)}catch(at){i.error("error while drawing message",at)}}if([a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN,a.db.LINETYPE.SOLID,a.db.LINETYPE.SOLID_TOP,a.db.LINETYPE.SOLID_BOTTOM,a.db.LINETYPE.STICK_TOP,a.db.LINETYPE.STICK_BOTTOM,a.db.LINETYPE.SOLID_TOP_DOTTED,a.db.LINETYPE.SOLID_BOTTOM_DOTTED,a.db.LINETYPE.STICK_TOP_DOTTED,a.db.LINETYPE.STICK_BOTTOM_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,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(W.type))tt=Math.round((tt+rt)*100)/100;Et++}i.debug("createdActors",M),i.debug("destroyedActors",y),await ge(x,b,p,!1,e,a,z);for(let W of ot)await da(x,W.messageModel,W.lineStartY,a,W.msg,e);if(T.mirrorActors)await ge(x,b,p,!0,e,a,z);lt.forEach((W)=>nt.drawBackgroundRect(x,W)),nr(x,b,p,T);for(let W of k.models.boxes){W.height=k.getVerticalPos()-W.y,k.insert(W.x,W.y,W.x+W.width,W.height);let X=T.boxMargin*2;W.startx=W.x-X,W.starty=W.y-X*0.25,W.stopx=W.startx+W.width+2*X,W.stopy=W.starty+W.height+X*0.75,W.stroke="rgb(0,0,0, 0.5)",nt.drawBox(x,W,T)}if(V)k.bumpVerticalPos(T.boxMargin);let ut=hr(x,b,p,_),{bounds:ct}=k.getBounds();if(ct.startx===void 0)ct.startx=0;if(ct.starty===void 0)ct.starty=0;if(ct.stopx===void 0)ct.stopx=0;if(ct.stopy===void 0)ct.stopy=0;let gt=ct.stopy-ct.starty;if(gt<ut.maxHeight)gt=ut.maxHeight;let ft=gt+2*T.diagramMarginY;if(T.mirrorActors)ft=ft-T.boxMargin+T.bottomMarginAdj;let et=ct.stopx-ct.startx;if(et<ut.maxWidth)et=ut.maxWidth;let J=et+2*T.diagramMarginX;if(m)x.append("text").text(m).attr("x",(ct.stopx-ct.startx)/2-2*T.diagramMarginX).attr("y",-25);Y(x,ft,J,T.useMaxWidth);let dt=m?40:0,Xt=b.size&&n==="neo"?30:0;x.attr("viewBox",ct.startx-T.diagramMarginX+" -"+(T.diagramMarginY+dt)+" "+J+" "+(ft+dt+Xt)),i.debug("models:",k.models)},"draw");async function ur(r,e,s){let a={};for(let o of e)if(r.get(o.to)&&r.get(o.from)){let h=r.get(o.to);if(o.placement===s.db.PLACEMENT.LEFTOF&&!h.prevActor)continue;if(o.placement===s.db.PLACEMENT.RIGHTOF&&!h.nextActor)continue;let n=o.placement!==void 0,c=!n,f=n?Wt(T):Mt(T),E=o.wrap?H.wrapLabel(o.message,T.width-2*T.wrapPadding,f):o.message,x=($e(E)?await Va(o.message,d()):H.calculateTextDimensions(E,f)).width+2*T.wrapPadding;if(c&&o.from===h.nextActor)a[o.to]=C.getMax(a[o.to]||0,x);else if(c&&o.from===h.prevActor)a[o.from]=C.getMax(a[o.from]||0,x);else if(c&&o.from===o.to)a[o.from]=C.getMax(a[o.from]||0,x/2),a[o.to]=C.getMax(a[o.to]||0,x/2);else if(o.placement===s.db.PLACEMENT.RIGHTOF)a[o.from]=C.getMax(a[o.from]||0,x);else if(o.placement===s.db.PLACEMENT.LEFTOF)a[h.prevActor]=C.getMax(a[h.prevActor]||0,x);else if(o.placement===s.db.PLACEMENT.OVER){if(h.prevActor)a[h.prevActor]=C.getMax(a[h.prevActor]||0,x/2);if(h.nextActor)a[o.from]=C.getMax(a[o.from]||0,x/2)}}return i.debug("maxMessageWidthPerActor:",a),a}t(ur,"getMaxMessageWidthPerActor");var Ea=t(function(r){let e=0,s=_e(T);for(let a in r.links){let h=H.calculateTextDimensions(a,s).width+2*T.wrapPadding+2*T.boxMargin;if(e<h)e=h}return e},"getRequiredPopupWidth");async function _r(r,e,s){let a=0;for(let h of r.keys()){let n=r.get(h);if(n.wrap)n.description=H.wrapLabel(n.description,T.width-2*T.wrapPadding,_e(T));let c=$e(n.description)?await Va(n.description,d()):H.calculateTextDimensions(n.description,_e(T));if(n.width=n.wrap?T.width:C.getMax(T.width,c.width+2*T.wrapPadding),d().look==="neo")n.actorTextHeight=c.height,n.height=C.getMax(ar(c.height),T.height);else n.height=n.wrap?C.getMax(c.height,T.height):T.height;a=C.getMax(a,n.height)}for(let h in e){let n=r.get(h);if(!n)continue;let c=r.get(n.nextActor);if(!c){let x=e[h]+T.actorMargin-n.width/2;n.margin=C.getMax(x,T.actorMargin);continue}let E=e[h]+T.actorMargin-n.width/2-c.width/2;n.margin=C.getMax(E,T.actorMargin)}let o=0;return s.forEach((h)=>{let n=Mt(T),c=h.actorKeys.reduce((x,b)=>x+=r.get(b).width+(r.get(b).margin||0),0),f=T.boxMargin*8;if(c+=f,c-=2*T.boxTextMargin,h.wrap)h.name=H.wrapLabel(h.name,c-2*T.wrapPadding,n);let E=H.calculateTextDimensions(h.name,n);o=C.getMax(E.height,o);let _=C.getMax(c,E.width+2*T.wrapPadding);if(h.margin=T.boxTextMargin,c<_){let x=(_-c)/2;h.margin+=x}}),s.forEach((h)=>h.textMaxHeight=o),C.getMax(a,T.height)}t(_r,"calculateActorMargins");var ua=t(async function(r,e,s){let a=e.get(r.from),o=e.get(r.to),h=a.x,n=o.x,c=r.wrap&&r.message,f=$e(r.message)?await Va(r.message,d()):H.calculateTextDimensions(c?H.wrapLabel(r.message,T.width,Wt(T)):r.message,Wt(T)),E={width:c?T.width:C.getMax(T.width,f.width+2*T.noteMargin),height:0,startx:a.x,stopx:0,starty:0,stopy:0,message:r.message};if(r.placement===s.db.PLACEMENT.RIGHTOF)E.width=c?C.getMax(T.width,f.width):C.getMax(a.width/2+o.width/2,f.width+2*T.noteMargin),E.startx=h+(a.width+T.actorMargin)/2;else if(r.placement===s.db.PLACEMENT.LEFTOF)E.width=c?C.getMax(T.width,f.width+2*T.noteMargin):C.getMax(a.width/2+o.width/2,f.width+2*T.noteMargin),E.startx=h-E.width+(a.width-T.actorMargin)/2;else if(r.to===r.from)f=H.calculateTextDimensions(c?H.wrapLabel(r.message,C.getMax(T.width,a.width),Wt(T)):r.message,Wt(T)),E.width=c?C.getMax(T.width,a.width):C.getMax(a.width,T.width,f.width+2*T.noteMargin),E.startx=h+(a.width-E.width)/2;else E.width=Math.abs(h+a.width/2-(n+o.width/2))+T.actorMargin,E.startx=h<n?h+a.width/2-T.actorMargin/2:n+o.width/2-T.actorMargin/2;if(c)E.message=H.wrapLabel(r.message,E.width-2*T.wrapPadding,Wt(T));return i.debug(`NM:[${E.startx},${E.stopx},${E.starty},${E.stopy}:${E.width},${E.height}=${r.message}]`),E},"buildNoteModel"),fa=4,_a=6,ue=t(function(r,e){let{CENTRAL_CONNECTION:s,CENTRAL_CONNECTION_REVERSE:a,CENTRAL_CONNECTION_DUAL:o}=e.db.LINETYPE;return[s,a,o].includes(r.centralConnection)},"hasCentralConnection"),ga=t(function(r,e,s){let{CENTRAL_CONNECTION_REVERSE:a,CENTRAL_CONNECTION_DUAL:o,BIDIRECTIONAL_SOLID:h,BIDIRECTIONAL_DOTTED:n}=e.db.LINETYPE,c=0;if(r.centralConnection===a||r.centralConnection===o)c+=fa;if((r.centralConnection===a||r.centralConnection===o)&&(r.type===h||r.type===n))c+=s?0:-_a;return c},"calculateCentralConnectionOffset"),gr=t(function(r,e){let{SOLID_ARROW_TOP_REVERSE:s,SOLID_ARROW_TOP_REVERSE_DOTTED:a,SOLID_ARROW_BOTTOM_REVERSE:o,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:h,STICK_ARROW_TOP_REVERSE:n,STICK_ARROW_TOP_REVERSE_DOTTED:c,STICK_ARROW_BOTTOM_REVERSE:f,STICK_ARROW_BOTTOM_REVERSE_DOTTED:E}=e.db.LINETYPE;return[s,a,o,h,n,c,f,E].includes(r.type)},"isReverseArrowType"),xa=t(function(r,e){let{BIDIRECTIONAL_SOLID:s,BIDIRECTIONAL_DOTTED:a}=e.db.LINETYPE;return[s,a].includes(r.type)},"isBidirectionalArrowType"),ba=t(function(r,e,s){let{look:a}=d();if(![s.db.LINETYPE.SOLID_OPEN,s.db.LINETYPE.DOTTED_OPEN,s.db.LINETYPE.SOLID,s.db.LINETYPE.SOLID_TOP,s.db.LINETYPE.SOLID_BOTTOM,s.db.LINETYPE.STICK_TOP,s.db.LINETYPE.STICK_BOTTOM,s.db.LINETYPE.SOLID_TOP_DOTTED,s.db.LINETYPE.SOLID_BOTTOM_DOTTED,s.db.LINETYPE.STICK_TOP_DOTTED,s.db.LINETYPE.STICK_BOTTOM_DOTTED,s.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,s.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,s.db.LINETYPE.STICK_ARROW_TOP_REVERSE,s.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,s.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,s.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,s.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,s.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,s.db.LINETYPE.DOTTED,s.db.LINETYPE.SOLID_CROSS,s.db.LINETYPE.DOTTED_CROSS,s.db.LINETYPE.SOLID_POINT,s.db.LINETYPE.DOTTED_POINT,s.db.LINETYPE.BIDIRECTIONAL_SOLID,s.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(r.type))return{};let[o,h]=rr(r.from,e),[n,c]=rr(r.to,e),f=o<=n,E=f?h:o,_=f?n:c;if(a==="neo"){if(r.type!==s.db.LINETYPE.SOLID_OPEN)_+=f?-3:3;if(r.type===s.db.LINETYPE.BIDIRECTIONAL_SOLID||r.type===s.db.LINETYPE.BIDIRECTIONAL_DOTTED)E+=f?3:-3}E+=ga(r,s,f);let x=Math.abs(n-c)>2,b=t((p)=>f?-p:p,"adjustValue");if(r.from===r.to)_=E;else{if(r.activate&&!x)_+=b(T.activationWidth/2-1);if(![s.db.LINETYPE.SOLID_OPEN,s.db.LINETYPE.DOTTED_OPEN,s.db.LINETYPE.STICK_TOP,s.db.LINETYPE.STICK_BOTTOM,s.db.LINETYPE.STICK_TOP_DOTTED,s.db.LINETYPE.STICK_BOTTOM_DOTTED,s.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,s.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,s.db.LINETYPE.STICK_ARROW_TOP_REVERSE,s.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,s.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,s.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,s.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,s.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(r.type))_+=b(3);if([s.db.LINETYPE.BIDIRECTIONAL_SOLID,s.db.LINETYPE.BIDIRECTIONAL_DOTTED,s.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,s.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,s.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,s.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(r.type))E-=b(3)}let M=[o,h,n,c],y=Math.abs(E-_);if(r.wrap&&r.message)r.message=H.wrapLabel(r.message,C.getMax(y+2*T.wrapPadding,T.width),Mt(T));let w=H.calculateTextDimensions(r.message,Mt(T));return{width:C.getMax(r.wrap?0:w.width+2*T.wrapPadding,y+2*T.wrapPadding,T.width),height:0,startx:E,stopx:_,starty:0,stopy:0,message:r.message,type:r.type,wrap:r.wrap,fromBounds:Math.min.apply(null,M),toBounds:Math.max.apply(null,M)}},"buildMessageModel"),Ia=t(async function(r,e,s,a){let o={},h=[],n,c,f;for(let E of r){switch(E.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:h.push({id:E.id,msg:E.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case a.db.LINETYPE.ALT_ELSE:case a.db.LINETYPE.PAR_AND:case a.db.LINETYPE.CRITICAL_OPTION:if(E.message)n=h.pop(),o[n.id]=n,o[E.id]=n,h.push(n);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:n=h.pop(),o[n.id]=n;break;case a.db.LINETYPE.ACTIVE_START:{let x=e.get(E.from?E.from:E.to.actor),b=ne(E.from?E.from:E.to.actor).length,M=x.x+x.width/2+(b-1)*T.activationWidth/2,y={startx:M,stopx:M+T.activationWidth,actor:E.from,enabled:!0};k.activations.push(y)}break;case a.db.LINETYPE.ACTIVE_END:{let x=k.activations.map((b)=>b.actor).lastIndexOf(E.from);k.activations.splice(x,1).splice(0,1)}break}if(E.placement!==void 0)c=await ua(E,e,a),E.noteModel=c,h.forEach((x)=>{n=x,n.from=C.getMin(n.from,c.startx),n.to=C.getMax(n.to,c.startx+c.width),n.width=C.getMax(n.width,Math.abs(n.from-n.to))-T.labelBoxWidth});else if(f=ba(E,e,a),E.msgModel=f,f.startx&&f.stopx&&h.length>0)h.forEach((x)=>{if(n=x,f.startx===f.stopx){let b=e.get(E.from),M=e.get(E.to);n.from=C.getMin(b.x-f.width/2,b.x-b.width/2,n.from),n.to=C.getMax(M.x+f.width/2,M.x+b.width/2,n.to),n.width=C.getMax(n.width,Math.abs(n.to-n.from))-T.labelBoxWidth}else n.from=C.getMin(f.startx,n.from),n.to=C.getMax(f.stopx,n.to),n.width=C.getMax(n.width,f.width)-T.labelBoxWidth})}return k.activations=[],i.debug("Loop type widths:",o),o},"calculateLoopBounds"),ya={bounds:k,drawActors:ge,drawActorsPopup:hr,setConf:pr,draw:pa},Pa={parser:Or,get db(){return new Ar},renderer:ya,styles:Nr,init:t((r)=>{if(!r.sequence)r.sequence={};if(r.wrap)r.sequence.wrap=r.wrap,fr({sequence:{wrap:r.wrap}})},"init")};export{Pa as diagram};