@belonguniverseai/react-sdk 0.1.0

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 (848) hide show
  1. package/README.md +47 -0
  2. package/dist/api/agent-grants.d.ts +61 -0
  3. package/dist/api/api-context.d.ts +9 -0
  4. package/dist/api/client.d.ts +2053 -0
  5. package/dist/api/mutations.d.ts +3 -0
  6. package/dist/api/queries.d.ts +21 -0
  7. package/dist/api/query-keys.d.ts +13 -0
  8. package/dist/api/report-client-error.d.ts +23 -0
  9. package/dist/api/skills.d.ts +23 -0
  10. package/dist/api/workspace-files.d.ts +9 -0
  11. package/dist/app/BelongDock.d.ts +29 -0
  12. package/dist/app/VoiceOverlay.d.ts +18 -0
  13. package/dist/app/providers.d.ts +12 -0
  14. package/dist/app/router.d.ts +2 -0
  15. package/dist/browser/control-channel.d.ts +29 -0
  16. package/dist/browser/dom-bridge.d.ts +6 -0
  17. package/dist/browser/spa-navigate.d.ts +87 -0
  18. package/dist/component/BelongWidget.d.ts +27 -0
  19. package/dist/component/abap-BqLfTM3_.js +9 -0
  20. package/dist/component/abap-Dosx9LfS.js +9 -0
  21. package/dist/component/actionscript-3-CFt6EqSB.js +9 -0
  22. package/dist/component/actionscript-3-CShGOdtT.js +9 -0
  23. package/dist/component/ada-8tCnwMXx.js +9 -0
  24. package/dist/component/ada-DaqFF2jd.js +9 -0
  25. package/dist/component/andromeeda-BxBtQ0rC.js +7 -0
  26. package/dist/component/andromeeda-Dx5fm3r-.js +7 -0
  27. package/dist/component/angular-html-CAoRrq6i.js +35 -0
  28. package/dist/component/angular-html-DG52iVg8.js +35 -0
  29. package/dist/component/angular-ts-BvOrReBc.js +24 -0
  30. package/dist/component/angular-ts-LQyiJZqb.js +24 -0
  31. package/dist/component/apache-HdVsAIQf.js +9 -0
  32. package/dist/component/apache-c3M5d5MN.js +9 -0
  33. package/dist/component/apex-B-y6HhVC.js +9 -0
  34. package/dist/component/apex-DXDfZUnb.js +9 -0
  35. package/dist/component/apl-BnXq3ZtQ.js +19 -0
  36. package/dist/component/apl-D7VFrOyT.js +19 -0
  37. package/dist/component/applescript-BZbrjHcY.js +9 -0
  38. package/dist/component/applescript-Bo1adDet.js +9 -0
  39. package/dist/component/ara-C1QNxHcU.js +9 -0
  40. package/dist/component/ara-ZjRpP-93.js +9 -0
  41. package/dist/component/arc-DGQIe3ON.js +86 -0
  42. package/dist/component/architectureDiagram-3BPJPVTR-C3uLEfb1.js +4697 -0
  43. package/dist/component/asciidoc-2fV_Cv2j.js +9 -0
  44. package/dist/component/asciidoc-D7PshqvO.js +9 -0
  45. package/dist/component/asm-ClEowkZP.js +9 -0
  46. package/dist/component/asm-DmyJawQj.js +9 -0
  47. package/dist/component/astro-9MHfKoOi.js +21 -0
  48. package/dist/component/astro-Bi3QRBCO.js +21 -0
  49. package/dist/component/aurora-x-BGO53J2I.js +7 -0
  50. package/dist/component/aurora-x-C98he-36.js +7 -0
  51. package/dist/component/awk-CIiDOfUC.js +9 -0
  52. package/dist/component/awk-DnzYQYUx.js +9 -0
  53. package/dist/component/ayu-dark-CK1VRikm.js +7 -0
  54. package/dist/component/ayu-dark-J6FX8oSr.js +7 -0
  55. package/dist/component/ayu-light-DIKBJiwH.js +7 -0
  56. package/dist/component/ayu-light-x4Q5N51d.js +7 -0
  57. package/dist/component/ayu-mirage-C5_fPLwf.js +7 -0
  58. package/dist/component/ayu-mirage-DhPHVcGJ.js +7 -0
  59. package/dist/component/ballerina-CeqVHW9D.js +9 -0
  60. package/dist/component/ballerina-epCf0_WV.js +9 -0
  61. package/dist/component/bat-Cuej7k1C.js +9 -0
  62. package/dist/component/bat-Dai7pznF.js +9 -0
  63. package/dist/component/beancount-CpREEZMl.js +9 -0
  64. package/dist/component/beancount-CwiYx9PE.js +9 -0
  65. package/dist/component/berry-BoYGiG42.js +9 -0
  66. package/dist/component/berry-DFo_i8CN.js +9 -0
  67. package/dist/component/bibtex-2bgmGv5w.js +9 -0
  68. package/dist/component/bibtex-BkTrlnvh.js +9 -0
  69. package/dist/component/bicep-C80YQkEm.js +9 -0
  70. package/dist/component/bicep-DYkQKpr8.js +9 -0
  71. package/dist/component/bird2-5AxdId5f.js +9 -0
  72. package/dist/component/bird2-CjcgWn0f.js +9 -0
  73. package/dist/component/blade-BdUlKesy.js +23 -0
  74. package/dist/component/blade-DNMMxdfa.js +23 -0
  75. package/dist/component/blockDiagram-GPEHLZMM-YerYvLm_.js +2421 -0
  76. package/dist/component/bsl-CYB_gPZn.js +11 -0
  77. package/dist/component/bsl-DJ4bR5oi.js +11 -0
  78. package/dist/component/c-C4AMyX3G.js +9 -0
  79. package/dist/component/c-C7DfT4H8.js +9 -0
  80. package/dist/component/c3-DDixCt0K.js +9 -0
  81. package/dist/component/c3-xeavH2G2.js +9 -0
  82. package/dist/component/c4Diagram-AAUBKEIU-p8UR34Zq.js +1586 -0
  83. package/dist/component/cadence-Cy8toSoU.js +9 -0
  84. package/dist/component/cadence-xq71MyIp.js +9 -0
  85. package/dist/component/cairo-B1qo5_uz.js +11 -0
  86. package/dist/component/cairo-CZSJv_Y_.js +11 -0
  87. package/dist/component/catppuccin-frappe-BGDzipYl.js +7 -0
  88. package/dist/component/catppuccin-frappe-DZ2VPnzg.js +7 -0
  89. package/dist/component/catppuccin-latte-9zQ0xneh.js +7 -0
  90. package/dist/component/catppuccin-latte-CK4XjBXq.js +7 -0
  91. package/dist/component/catppuccin-macchiato-CIKuiG5O.js +7 -0
  92. package/dist/component/catppuccin-macchiato-D1xBlgUI.js +7 -0
  93. package/dist/component/catppuccin-mocha-CQk3ku6b.js +7 -0
  94. package/dist/component/catppuccin-mocha-Dr22M_MR.js +7 -0
  95. package/dist/component/channel-ahmILYyG.js +8 -0
  96. package/dist/component/chunk-2J33WTMH-CGaAxoSO.js +22 -0
  97. package/dist/component/chunk-4BX2VUAB-gRTK7Di9.js +11 -0
  98. package/dist/component/chunk-55IACEB6-XfJuuv6Y.js +11 -0
  99. package/dist/component/chunk-727SXJPM-Cy0hXMuO.js +1537 -0
  100. package/dist/component/chunk-AQP2D5EJ-CZHGw4se.js +1396 -0
  101. package/dist/component/chunk-FMBD7UC4-CyqtPCO0.js +22 -0
  102. package/dist/component/chunk-ND2GUHAM-CzTviSBV.js +71 -0
  103. package/dist/component/chunk-QZHKN3VN-CHDEerWv.js +21 -0
  104. package/dist/component/clarity-Dmd3VcKv.js +9 -0
  105. package/dist/component/clarity-FR-MQPIo.js +9 -0
  106. package/dist/component/classDiagram-4FO5ZUOK-BDzl1OcC.js +19 -0
  107. package/dist/component/classDiagram-v2-Q7XG4LA2-BDzl1OcC.js +19 -0
  108. package/dist/component/clojure-CZ5pqCKI.js +9 -0
  109. package/dist/component/clojure-DUXXPerS.js +9 -0
  110. package/dist/component/cmake-DeSLuBit.js +9 -0
  111. package/dist/component/cmake-Dh5RXd_q.js +9 -0
  112. package/dist/component/cobol-B0R9veOS.js +13 -0
  113. package/dist/component/cobol-DayClXiO.js +13 -0
  114. package/dist/component/codeowners-C5Gg1qBb.js +9 -0
  115. package/dist/component/codeowners-RGJbf4XS.js +9 -0
  116. package/dist/component/codeql-1OtYEVEY.js +9 -0
  117. package/dist/component/codeql-CoCy8yp4.js +9 -0
  118. package/dist/component/coffee-kdLRO3eV.js +11 -0
  119. package/dist/component/coffee-tRjJZw7o.js +11 -0
  120. package/dist/component/common-lisp-BeJe0ab6.js +9 -0
  121. package/dist/component/common-lisp-GbfS1OBj.js +9 -0
  122. package/dist/component/coq-B0RJLsKz.js +9 -0
  123. package/dist/component/coq-DMlFNAl3.js +9 -0
  124. package/dist/component/cose-bilkent-S5V4N54A-4R0ErgrZ.js +2611 -0
  125. package/dist/component/cpp-BpiKH-9I.js +21 -0
  126. package/dist/component/cpp-BwGJQL2p.js +21 -0
  127. package/dist/component/crystal-Bb_LifhW.js +21 -0
  128. package/dist/component/crystal-D0cTXans.js +21 -0
  129. package/dist/component/csharp-5kMbpBNi.js +9 -0
  130. package/dist/component/csharp-UFMQzTVu.js +9 -0
  131. package/dist/component/css-B2ckPEoZ.js +9 -0
  132. package/dist/component/css-MDiv-Xmm.js +9 -0
  133. package/dist/component/csv-Ba1T94jM.js +9 -0
  134. package/dist/component/csv-DZ-mzuKa.js +9 -0
  135. package/dist/component/cue-CtGb6f31.js +9 -0
  136. package/dist/component/cue-DbYr629m.js +9 -0
  137. package/dist/component/cypher-7eGqJtNJ.js +9 -0
  138. package/dist/component/cypher-pD9MnYc_.js +9 -0
  139. package/dist/component/cytoscape.esm-C31R6JOv.js +18772 -0
  140. package/dist/component/d-BefBLeap.js +9 -0
  141. package/dist/component/d-Dij3nCx4.js +9 -0
  142. package/dist/component/dagre-BM42HDAG-BcJQXGn3.js +448 -0
  143. package/dist/component/dark-plus-C9nS7rhq.js +7 -0
  144. package/dist/component/dark-plus-L3JON0ir.js +7 -0
  145. package/dist/component/dart-BWNSliXX.js +9 -0
  146. package/dist/component/dart-DCRAsZQK.js +9 -0
  147. package/dist/component/dax-CWdGoxkM.js +9 -0
  148. package/dist/component/dax-pykceZLM.js +9 -0
  149. package/dist/component/defaultLocale-BXpxsZAK.js +174 -0
  150. package/dist/component/desktop-4j8jFU02.js +9 -0
  151. package/dist/component/desktop-B3AeStqn.js +9 -0
  152. package/dist/component/diagram-2AECGRRQ-Cld7-k7F.js +220 -0
  153. package/dist/component/diagram-5GNKFQAL-d7JtHVRK.js +126 -0
  154. package/dist/component/diagram-KO2AKTUF-Avxzz4xw.js +464 -0
  155. package/dist/component/diagram-LMA3HP47-Cy_E5-rU.js +148 -0
  156. package/dist/component/diagram-OG6HWLK6-DUsJK7Js.js +534 -0
  157. package/dist/component/diff-DuoPSmgL.js +9 -0
  158. package/dist/component/diff-IyCSM08A.js +9 -0
  159. package/dist/component/docker-BSrvy0o9.js +9 -0
  160. package/dist/component/docker-Ca4vT6OJ.js +9 -0
  161. package/dist/component/dotenv-CUP-PB19.js +9 -0
  162. package/dist/component/dotenv-aA3GGxJM.js +9 -0
  163. package/dist/component/dracula-2BaSCSav.js +7 -0
  164. package/dist/component/dracula-Lg7_DbOD.js +7 -0
  165. package/dist/component/dracula-soft-AsPqNBvZ.js +7 -0
  166. package/dist/component/dracula-soft-n6R-sBGM.js +7 -0
  167. package/dist/component/dream-maker-B2xERNvR.js +9 -0
  168. package/dist/component/dream-maker-Jadq_Ln7.js +9 -0
  169. package/dist/component/edge-B-amp2rn.js +15 -0
  170. package/dist/component/edge-Bol1lNG-.js +15 -0
  171. package/dist/component/elixir-DSzpv_bE.js +11 -0
  172. package/dist/component/elixir-t5YY_ese.js +11 -0
  173. package/dist/component/elm-DNaka8RZ.js +11 -0
  174. package/dist/component/elm-JLsvCHy1.js +11 -0
  175. package/dist/component/emacs-lisp-C6XZT609.js +9 -0
  176. package/dist/component/emacs-lisp-DWDtb5kD.js +9 -0
  177. package/dist/component/erDiagram-TEJ5UH35-DEdqrWqp.js +905 -0
  178. package/dist/component/erb-BJ95qgrJ.js +13 -0
  179. package/dist/component/erb-rGIYAeIa.js +13 -0
  180. package/dist/component/erlang-By5grfmz.js +11 -0
  181. package/dist/component/erlang-rAClsghX.js +11 -0
  182. package/dist/component/everforest-dark-DBhTz0Lt.js +7 -0
  183. package/dist/component/everforest-dark-_A43rkLf.js +7 -0
  184. package/dist/component/everforest-light-Bep_XOgu.js +7 -0
  185. package/dist/component/everforest-light-DHbrW2te.js +7 -0
  186. package/dist/component/fennel-CeQPNUU9.js +9 -0
  187. package/dist/component/fennel-QllfYze1.js +9 -0
  188. package/dist/component/fish-BXP1eRyz.js +9 -0
  189. package/dist/component/fish-DkfR0DRL.js +9 -0
  190. package/dist/component/flowDiagram-I6XJVG4X-BWzYDsjP.js +1634 -0
  191. package/dist/component/fluent-Ih0R99Ix.js +9 -0
  192. package/dist/component/fluent-RduSrzCZ.js +9 -0
  193. package/dist/component/fortran-fixed-form-C3I8YlEU.js +11 -0
  194. package/dist/component/fortran-fixed-form-D7OlW0lw.js +11 -0
  195. package/dist/component/fortran-free-form-CXj2ku4f.js +9 -0
  196. package/dist/component/fortran-free-form-DifCDW_P.js +9 -0
  197. package/dist/component/fsharp-65O4P3S5.js +11 -0
  198. package/dist/component/fsharp-CXzwUWsC.js +11 -0
  199. package/dist/component/ganttDiagram-6RSMTGT7-DzfeVIgF.js +2709 -0
  200. package/dist/component/gdresource-Bn5VhPaI.js +13 -0
  201. package/dist/component/gdresource-kUFIn9eK.js +13 -0
  202. package/dist/component/gdscript-BNGA6E65.js +9 -0
  203. package/dist/component/gdscript-LjKsfw3O.js +9 -0
  204. package/dist/component/gdshader-C-Gp5-Ot.js +9 -0
  205. package/dist/component/gdshader-C1lRZRQz.js +9 -0
  206. package/dist/component/genie-B8viIUNC.js +9 -0
  207. package/dist/component/genie-eR37RVXX.js +9 -0
  208. package/dist/component/gherkin-BVA-IOor.js +9 -0
  209. package/dist/component/gherkin-CuORnKvF.js +9 -0
  210. package/dist/component/git-commit-BNPqpLhi.js +11 -0
  211. package/dist/component/git-commit-Dh7BfmB9.js +11 -0
  212. package/dist/component/git-rebase-B5TXZutB.js +11 -0
  213. package/dist/component/git-rebase-DhwWS8MC.js +11 -0
  214. package/dist/component/gitGraphDiagram-PVQCEYII-CKzbGWcQ.js +818 -0
  215. package/dist/component/github-dark-5b4g_bOp.js +7 -0
  216. package/dist/component/github-dark-default-6zDGR7DJ.js +7 -0
  217. package/dist/component/github-dark-default-H56pGX_M.js +7 -0
  218. package/dist/component/github-dark-dimmed-B1iXBBmo.js +7 -0
  219. package/dist/component/github-dark-dimmed-DjYa1rhk.js +7 -0
  220. package/dist/component/github-dark-high-contrast-BuNi_Wj5.js +7 -0
  221. package/dist/component/github-dark-high-contrast-DvpYRI-4.js +7 -0
  222. package/dist/component/github-dark-mxHsWyJ4.js +7 -0
  223. package/dist/component/github-light-CTdjTVPf.js +7 -0
  224. package/dist/component/github-light-KqdY1rAV.js +7 -0
  225. package/dist/component/github-light-default-BlRYTBRQ.js +7 -0
  226. package/dist/component/github-light-default-Drw5Jl_p.js +7 -0
  227. package/dist/component/github-light-high-contrast-9d8ktz0h.js +7 -0
  228. package/dist/component/github-light-high-contrast-ColFVC7A.js +7 -0
  229. package/dist/component/gleam-BXQHq2ZT.js +9 -0
  230. package/dist/component/gleam-RfA2dpfH.js +9 -0
  231. package/dist/component/glimmer-js-BHZ1FuRp.js +17 -0
  232. package/dist/component/glimmer-js-Gdq_UYVf.js +17 -0
  233. package/dist/component/glimmer-ts-D6H7q5ls.js +17 -0
  234. package/dist/component/glimmer-ts-DdmgeZua.js +17 -0
  235. package/dist/component/glsl-D1RRylbk.js +11 -0
  236. package/dist/component/glsl-MDSU_3-y.js +11 -0
  237. package/dist/component/gn-D8VPrt1o.js +9 -0
  238. package/dist/component/gn-DJpTAp5e.js +9 -0
  239. package/dist/component/gnuplot-BNzwvBx5.js +9 -0
  240. package/dist/component/gnuplot-Iqvzplz-.js +9 -0
  241. package/dist/component/go-D-G7cxeA.js +9 -0
  242. package/dist/component/go-TNOI7pQc.js +9 -0
  243. package/dist/component/graph-BZLHvygk.js +1548 -0
  244. package/dist/component/graphql-CW6tYk7X.js +17 -0
  245. package/dist/component/graphql-DGugpl40.js +17 -0
  246. package/dist/component/groovy-5_UI-q3N.js +9 -0
  247. package/dist/component/groovy-D7GH48W8.js +9 -0
  248. package/dist/component/gruvbox-dark-hard-Ch2GYDcJ.js +7 -0
  249. package/dist/component/gruvbox-dark-hard-Dpxv_Il6.js +7 -0
  250. package/dist/component/gruvbox-dark-medium-DqoxKYPx.js +7 -0
  251. package/dist/component/gruvbox-dark-medium-eGVEUM8W.js +7 -0
  252. package/dist/component/gruvbox-dark-soft-BA9DdijB.js +7 -0
  253. package/dist/component/gruvbox-dark-soft-DRaJAZcW.js +7 -0
  254. package/dist/component/gruvbox-light-hard-BJXIrqpz.js +7 -0
  255. package/dist/component/gruvbox-light-hard-_qNpoYJy.js +7 -0
  256. package/dist/component/gruvbox-light-medium-39dkJwxv.js +7 -0
  257. package/dist/component/gruvbox-light-medium-IkDFQhcB.js +7 -0
  258. package/dist/component/gruvbox-light-soft-DWPQo7Dn.js +7 -0
  259. package/dist/component/gruvbox-light-soft-Dpz5D6wP.js +7 -0
  260. package/dist/component/hack-BSrzyV-l.js +13 -0
  261. package/dist/component/hack-CJNnfXZh.js +13 -0
  262. package/dist/component/haml-DL-NAYVg.js +13 -0
  263. package/dist/component/haml-DYkTKupK.js +13 -0
  264. package/dist/component/handlebars-B2Z6CWhc.js +17 -0
  265. package/dist/component/handlebars-Cwj0qzUo.js +17 -0
  266. package/dist/component/haskell-Cj3J4fKD.js +9 -0
  267. package/dist/component/haskell-h36TjJLk.js +9 -0
  268. package/dist/component/haxe-CcifGI6O.js +9 -0
  269. package/dist/component/haxe-Coqw0Tt8.js +9 -0
  270. package/dist/component/hcl-BPVqiZDb.js +9 -0
  271. package/dist/component/hcl-DaPl6lOC.js +9 -0
  272. package/dist/component/highlighted-body-OFNGDK62-BkGwwkHo.js +22 -0
  273. package/dist/component/hjson-CfcQXz3-.js +9 -0
  274. package/dist/component/hjson-DsTgWNxt.js +9 -0
  275. package/dist/component/hlsl-CLzjZIQL.js +9 -0
  276. package/dist/component/hlsl-DVyuzW8h.js +9 -0
  277. package/dist/component/horizon-DaNatiIz.js +7 -0
  278. package/dist/component/horizon-bright-CthJh1Qp.js +7 -0
  279. package/dist/component/horizon-bright-DMKA6ab6.js +7 -0
  280. package/dist/component/horizon-q20CuJTh.js +7 -0
  281. package/dist/component/houston-CjpgGYwZ.js +7 -0
  282. package/dist/component/houston-DnIZxOiF.js +7 -0
  283. package/dist/component/html-DSjghx6n.js +13 -0
  284. package/dist/component/html-derivative-CxizaS1Z.js +11 -0
  285. package/dist/component/html-derivative-DDrVhQXu.js +11 -0
  286. package/dist/component/html-tY6fNMOn.js +13 -0
  287. package/dist/component/http-CLvA54iU.js +17 -0
  288. package/dist/component/http-CPkD6MSf.js +17 -0
  289. package/dist/component/hurl-CuuCK9Id.js +15 -0
  290. package/dist/component/hurl-LcD0R7wh.js +15 -0
  291. package/dist/component/hxml-CJz9SfqN.js +11 -0
  292. package/dist/component/hxml-DLsAgg8X.js +11 -0
  293. package/dist/component/hy-CAEey4h7.js +9 -0
  294. package/dist/component/hy-Dm2IGIb-.js +9 -0
  295. package/dist/component/imba-5G9Fs_nr.js +9 -0
  296. package/dist/component/imba-CH2D1ce9.js +9 -0
  297. package/dist/component/index.d.ts +3 -0
  298. package/dist/component/index.js +8 -0
  299. package/dist/component/infoDiagram-5YYISTIA-D9xN-Pqc.js +27 -0
  300. package/dist/component/ini-Dt2l3RWi.js +9 -0
  301. package/dist/component/ini-kgvXisvj.js +9 -0
  302. package/dist/component/init-BOu0eQYQ.js +19 -0
  303. package/dist/component/ishikawaDiagram-YF4QCWOH--YDYWDwv.js +627 -0
  304. package/dist/component/java-BKLcvtEM.js +9 -0
  305. package/dist/component/java-oSN7P0Od.js +9 -0
  306. package/dist/component/javascript-CyaMmpOO.js +9 -0
  307. package/dist/component/javascript-DFm3DOoX.js +9 -0
  308. package/dist/component/jinja-Ch28RrFG.js +14 -0
  309. package/dist/component/jinja-CsTh8Ahj.js +14 -0
  310. package/dist/component/jison-Bu0o8a1Z.js +11 -0
  311. package/dist/component/jison-DLgrOJpy.js +11 -0
  312. package/dist/component/journeyDiagram-JHISSGLW-B9-CHfSv.js +837 -0
  313. package/dist/component/json-D-WsbO45.js +9 -0
  314. package/dist/component/json-rmrBoeO_.js +9 -0
  315. package/dist/component/json5-B1J6XVPd.js +9 -0
  316. package/dist/component/json5-B3-n7IrD.js +9 -0
  317. package/dist/component/jsonc-BgfI3zjg.js +9 -0
  318. package/dist/component/jsonc-HFvGREK8.js +9 -0
  319. package/dist/component/jsonl-DHttz8sH.js +9 -0
  320. package/dist/component/jsonl-l_eIcPip.js +9 -0
  321. package/dist/component/jsonnet-D6SNIhw0.js +9 -0
  322. package/dist/component/jsonnet-DO8Zfk6p.js +9 -0
  323. package/dist/component/jssm-CKRLojKZ.js +9 -0
  324. package/dist/component/jssm-Dy1zjXNg.js +9 -0
  325. package/dist/component/jsx-CpVvoVGp.js +9 -0
  326. package/dist/component/jsx-si2wS7pt.js +9 -0
  327. package/dist/component/julia-BPzvBJ4R.js +19 -0
  328. package/dist/component/julia-CfyFig21.js +19 -0
  329. package/dist/component/just-D5rIv9U4.js +21 -0
  330. package/dist/component/just-fRm_weEQ.js +21 -0
  331. package/dist/component/kanagawa-dragon-BOBo9JLg.js +7 -0
  332. package/dist/component/kanagawa-dragon-BWPCHB_7.js +7 -0
  333. package/dist/component/kanagawa-lotus-8m_3LhhF.js +7 -0
  334. package/dist/component/kanagawa-lotus-B5o1JCNj.js +7 -0
  335. package/dist/component/kanagawa-wave-BSP7z6KH.js +7 -0
  336. package/dist/component/kanagawa-wave-ClYLx7ql.js +7 -0
  337. package/dist/component/kanban-definition-UN3LZRKU-Cmh8twbq.js +727 -0
  338. package/dist/component/kdl-GafIF83C.js +9 -0
  339. package/dist/component/kdl-_X6wsgV0.js +9 -0
  340. package/dist/component/kotlin-B3jfEOcv.js +9 -0
  341. package/dist/component/kotlin-BWMoZeA3.js +9 -0
  342. package/dist/component/kusto-Bkz9eBch.js +9 -0
  343. package/dist/component/kusto-ohiqZ64l.js +9 -0
  344. package/dist/component/laserwave-BmajecBZ.js +7 -0
  345. package/dist/component/laserwave-Bp21zlIO.js +7 -0
  346. package/dist/component/latex-BYzveWoN.js +11 -0
  347. package/dist/component/latex-Bi4Lg68B.js +11 -0
  348. package/dist/component/layout-Bu6nRdWm.js +1731 -0
  349. package/dist/component/lean-BBkk0btj.js +9 -0
  350. package/dist/component/lean-DFmhzmny.js +9 -0
  351. package/dist/component/less-ChX34X5W.js +9 -0
  352. package/dist/component/less-kqPRXL1K.js +9 -0
  353. package/dist/component/light-plus-DFxAowZg.js +7 -0
  354. package/dist/component/light-plus-_t1yKirF.js +7 -0
  355. package/dist/component/linear-BDyEUcVD.js +262 -0
  356. package/dist/component/liquid-Bri_C9oi.js +17 -0
  357. package/dist/component/liquid-f2WMwCDi.js +17 -0
  358. package/dist/component/llvm-COuD10ql.js +9 -0
  359. package/dist/component/llvm-dub2631B.js +9 -0
  360. package/dist/component/log-A8St-vyh.js +9 -0
  361. package/dist/component/log-g58LFxM8.js +9 -0
  362. package/dist/component/logo-DZmThwvl.js +9 -0
  363. package/dist/component/logo-x6YxnKST.js +9 -0
  364. package/dist/component/lua-Bj2G8q-Z.js +11 -0
  365. package/dist/component/lua-CyXCKT0u.js +11 -0
  366. package/dist/component/luau-B8fyn01D.js +9 -0
  367. package/dist/component/luau-C5q2C4N6.js +9 -0
  368. package/dist/component/make-DOTJ8IeI.js +9 -0
  369. package/dist/component/make-DTiRnfNf.js +9 -0
  370. package/dist/component/markdown-D3u32LKS.js +9 -0
  371. package/dist/component/markdown-DHm1k_6p.js +9 -0
  372. package/dist/component/marko-CUgdvzuR.js +17 -0
  373. package/dist/component/marko-SwZmWzIv.js +17 -0
  374. package/dist/component/material-theme-BIfRQKI0.js +7 -0
  375. package/dist/component/material-theme-CxS7GniW.js +7 -0
  376. package/dist/component/material-theme-darker-DKP5DIOi.js +7 -0
  377. package/dist/component/material-theme-darker-DkNB3xjL.js +7 -0
  378. package/dist/component/material-theme-lighter-3I4JYnlq.js +7 -0
  379. package/dist/component/material-theme-lighter-D5xivCfx.js +7 -0
  380. package/dist/component/material-theme-ocean-B31yuEXO.js +7 -0
  381. package/dist/component/material-theme-ocean-rw0kJPZg.js +7 -0
  382. package/dist/component/material-theme-palenight-BfunK0Uo.js +7 -0
  383. package/dist/component/material-theme-palenight-COTbh91p.js +7 -0
  384. package/dist/component/matlab-CkKSQcnX.js +9 -0
  385. package/dist/component/matlab-DCF6d5YL.js +9 -0
  386. package/dist/component/mdc-D92XwdT9.js +15 -0
  387. package/dist/component/mdc-gb_v49HI.js +15 -0
  388. package/dist/component/mdx-C6kH9TSz.js +9 -0
  389. package/dist/component/mdx-Dqb5H0t-.js +9 -0
  390. package/dist/component/mermaid-0bkYzXfL.js +9 -0
  391. package/dist/component/mermaid-GHXKKRXX-C5Y3BZXR.js +107122 -0
  392. package/dist/component/mermaid-N7-yWHiu.js +9 -0
  393. package/dist/component/min-dark-CqEfelDe.js +7 -0
  394. package/dist/component/min-dark-FAglrjWz.js +7 -0
  395. package/dist/component/min-light-BmdYN58_.js +7 -0
  396. package/dist/component/min-light-CcJCxfWw.js +7 -0
  397. package/dist/component/mindmap-definition-RKZ34NQL-CnFpVFpl.js +833 -0
  398. package/dist/component/mipsasm-BYNReuUT.js +9 -0
  399. package/dist/component/mipsasm-CKzkMNWr.js +9 -0
  400. package/dist/component/mojo-0URGVph7.js +9 -0
  401. package/dist/component/mojo-C563AncR.js +9 -0
  402. package/dist/component/monokai-D3_c3OUm.js +7 -0
  403. package/dist/component/monokai-ugSJFofr.js +7 -0
  404. package/dist/component/moonbit-BkJk2kyS.js +9 -0
  405. package/dist/component/moonbit-DlIX78rk.js +9 -0
  406. package/dist/component/move-BQAHOJb2.js +9 -0
  407. package/dist/component/move-eiW4QYDW.js +9 -0
  408. package/dist/component/narrat-2oVindvn.js +9 -0
  409. package/dist/component/narrat-Dc4cTFeW.js +9 -0
  410. package/dist/component/nextflow-B4caLl5A.js +11 -0
  411. package/dist/component/nextflow-Bk0ryO1R.js +11 -0
  412. package/dist/component/nextflow-groovy-BnXf2WiC.js +9 -0
  413. package/dist/component/nextflow-groovy-DIMIAEOy.js +9 -0
  414. package/dist/component/nginx-BaGEfT9r.js +11 -0
  415. package/dist/component/nginx-Dprlne5J.js +11 -0
  416. package/dist/component/night-owl-B6L5FL5v.js +7 -0
  417. package/dist/component/night-owl-CB_IXuNH.js +7 -0
  418. package/dist/component/night-owl-light-BZxeyl5X.js +7 -0
  419. package/dist/component/night-owl-light-CoPr05P4.js +7 -0
  420. package/dist/component/nim-BKvvFCe_.js +23 -0
  421. package/dist/component/nim-CQZqLxeE.js +23 -0
  422. package/dist/component/nix-Cp8a0vy5.js +12 -0
  423. package/dist/component/nix-DEY1zukk.js +12 -0
  424. package/dist/component/nord-D3PAEvHH.js +7 -0
  425. package/dist/component/nord-DPPgRakM.js +7 -0
  426. package/dist/component/nushell-BdsblUId.js +9 -0
  427. package/dist/component/nushell-DUUbmBaO.js +9 -0
  428. package/dist/component/objective-c-CNN3tl1v.js +9 -0
  429. package/dist/component/objective-c-D_6I2dsG.js +9 -0
  430. package/dist/component/objective-cpp-BjicYcS7.js +9 -0
  431. package/dist/component/objective-cpp-z4LTaUcg.js +9 -0
  432. package/dist/component/ocaml-BnD9haV8.js +9 -0
  433. package/dist/component/ocaml-DZseEUty.js +9 -0
  434. package/dist/component/odin-CnsCKboc.js +9 -0
  435. package/dist/component/odin-P2WSXO4H.js +9 -0
  436. package/dist/component/one-dark-pro-C_eaQ16k.js +7 -0
  437. package/dist/component/one-dark-pro-OimEv0Ou.js +7 -0
  438. package/dist/component/one-light-B0ti6b9S.js +7 -0
  439. package/dist/component/one-light-j3UfPQB3.js +7 -0
  440. package/dist/component/openscad-2vaKslxR.js +9 -0
  441. package/dist/component/openscad-jE6oRbDv.js +9 -0
  442. package/dist/component/ordinal-D0x7izaa.js +64 -0
  443. package/dist/component/pascal-8jl8irAj.js +9 -0
  444. package/dist/component/pascal-d7SASCGO.js +9 -0
  445. package/dist/component/perl-DHC1BZ_5.js +19 -0
  446. package/dist/component/perl-DVm7Pq-D.js +19 -0
  447. package/dist/component/php-BF_l-EgM.js +21 -0
  448. package/dist/component/php-BtpW2-DO.js +21 -0
  449. package/dist/component/pieDiagram-4H26LBE5-u-blLkni.js +166 -0
  450. package/dist/component/pkl-CoBnC_8G.js +9 -0
  451. package/dist/component/pkl-DZdA2Trc.js +9 -0
  452. package/dist/component/plastic-3IjBbwNP.js +7 -0
  453. package/dist/component/plastic-CixB-AlW.js +7 -0
  454. package/dist/component/plsql-Cv-ZxhCL.js +9 -0
  455. package/dist/component/plsql-CzeGyK0m.js +9 -0
  456. package/dist/component/po-eb_Amfj2.js +9 -0
  457. package/dist/component/po-moSB12fi.js +9 -0
  458. package/dist/component/poimandres-C03Jy3KZ.js +7 -0
  459. package/dist/component/poimandres-CKZ3f48N.js +7 -0
  460. package/dist/component/polar-BKFAKBSA.js +9 -0
  461. package/dist/component/polar-CsPCUbKt.js +9 -0
  462. package/dist/component/postcss-CytNqPC0.js +9 -0
  463. package/dist/component/postcss-D3_LY2LH.js +9 -0
  464. package/dist/component/powerquery-CpTndMW_.js +9 -0
  465. package/dist/component/powerquery-f-cemdrG.js +9 -0
  466. package/dist/component/powershell-B-JkstDq.js +9 -0
  467. package/dist/component/powershell-BkDB3ZO9.js +9 -0
  468. package/dist/component/prisma-B4mlcaEB.js +9 -0
  469. package/dist/component/prisma-BX88wNNq.js +9 -0
  470. package/dist/component/prolog-ZYcjPjsY.js +9 -0
  471. package/dist/component/prolog-ftPRGVaT.js +9 -0
  472. package/dist/component/proto-B5SG7zCc.js +9 -0
  473. package/dist/component/proto-DpTcjJFH.js +9 -0
  474. package/dist/component/pug-BziTjzcZ.js +15 -0
  475. package/dist/component/pug-XUdLuJ2s.js +15 -0
  476. package/dist/component/puppet-BeyD5DhV.js +9 -0
  477. package/dist/component/puppet-DjFvC8zy.js +9 -0
  478. package/dist/component/purescript-BBRU0YyZ.js +9 -0
  479. package/dist/component/purescript-Bf3WPYAV.js +9 -0
  480. package/dist/component/python-C7yusFoO.js +9 -0
  481. package/dist/component/python-CuNbg5wx.js +9 -0
  482. package/dist/component/qml-Cu9RjXOs.js +11 -0
  483. package/dist/component/qml-Z-uvElxQ.js +11 -0
  484. package/dist/component/qmldir-BHp2usxt.js +9 -0
  485. package/dist/component/qmldir-C6P--W6X.js +9 -0
  486. package/dist/component/qss-CgcBaeYL.js +9 -0
  487. package/dist/component/qss-iWzt-Nzy.js +9 -0
  488. package/dist/component/quadrantDiagram-W4KKPZXB-Bpq-EoMM.js +1033 -0
  489. package/dist/component/r-8lH98zbN.js +9 -0
  490. package/dist/component/r-CyFkAlMF.js +9 -0
  491. package/dist/component/racket-DaWPCRlQ.js +9 -0
  492. package/dist/component/racket-effgGH8q.js +9 -0
  493. package/dist/component/raku-DXM7wT4g.js +9 -0
  494. package/dist/component/raku-GZVvT-nH.js +9 -0
  495. package/dist/component/razor-CYq4jbLW.js +13 -0
  496. package/dist/component/razor-DQFDiXM1.js +13 -0
  497. package/dist/component/red-B9TgEgRC.js +7 -0
  498. package/dist/component/red-BNC90Lxb.js +7 -0
  499. package/dist/component/reg-C62uOG3A.js +9 -0
  500. package/dist/component/reg-CQgRgzkw.js +9 -0
  501. package/dist/component/regexp-D8jeZrvm.js +9 -0
  502. package/dist/component/regexp-UNvxOND4.js +9 -0
  503. package/dist/component/rel-BRyuNjQD.js +9 -0
  504. package/dist/component/rel-Cyzm_Cno.js +9 -0
  505. package/dist/component/requirementDiagram-4Y6WPE33-B8V7mLRY.js +888 -0
  506. package/dist/component/riscv-BHdC-Wfh.js +9 -0
  507. package/dist/component/riscv-BZ9l50bA.js +9 -0
  508. package/dist/component/ron--0kZyCV0.js +9 -0
  509. package/dist/component/ron-CJx-eqt3.js +9 -0
  510. package/dist/component/rose-pine-XHcBRH-D.js +7 -0
  511. package/dist/component/rose-pine-dawn-Bz77Igqs.js +7 -0
  512. package/dist/component/rose-pine-dawn-RL42yTas.js +7 -0
  513. package/dist/component/rose-pine-ksWn8nuO.js +7 -0
  514. package/dist/component/rose-pine-moon-BtSW__9n.js +7 -0
  515. package/dist/component/rose-pine-moon-QJS0aJgR.js +7 -0
  516. package/dist/component/rosmsg-BPUqDEe2.js +9 -0
  517. package/dist/component/rosmsg-CM65NRE0.js +9 -0
  518. package/dist/component/rst-CqXkCW5F.js +25 -0
  519. package/dist/component/rst-DQATMrFw.js +25 -0
  520. package/dist/component/ruby-B09XKrLg.js +33 -0
  521. package/dist/component/ruby-BJtrPIFQ.js +33 -0
  522. package/dist/component/rust-3aEF0O7t.js +9 -0
  523. package/dist/component/rust-XKBJng8W.js +9 -0
  524. package/dist/component/sankeyDiagram-5OEKKPKP-C-TbMbsr.js +862 -0
  525. package/dist/component/sas-COkwgxe_.js +11 -0
  526. package/dist/component/sas-DDLczODn.js +11 -0
  527. package/dist/component/sass-BIT8Mghp.js +9 -0
  528. package/dist/component/sass-CbXM5obh.js +9 -0
  529. package/dist/component/scala-CWyCExvl.js +9 -0
  530. package/dist/component/scala-DmAjX8OM.js +9 -0
  531. package/dist/component/scheme-BLXiZF3M.js +9 -0
  532. package/dist/component/scheme-ERi8vGmO.js +9 -0
  533. package/dist/component/scss-BX4eQ0c3.js +11 -0
  534. package/dist/component/scss-Biq-xkEY.js +11 -0
  535. package/dist/component/sdbl-B4TEJKGi.js +9 -0
  536. package/dist/component/sdbl-tnLxE-ur.js +9 -0
  537. package/dist/component/sequenceDiagram-3UESZ5HK-UHhixLbD.js +2897 -0
  538. package/dist/component/shaderlab-DMYXUCqo.js +11 -0
  539. package/dist/component/shaderlab-DqcfJRqk.js +11 -0
  540. package/dist/component/shellscript-B533aeAq.js +9 -0
  541. package/dist/component/shellscript-B8M9FK6Q.js +9 -0
  542. package/dist/component/shellsession-CvrLJEnp.js +11 -0
  543. package/dist/component/shellsession-Cy0cdv3D.js +11 -0
  544. package/dist/component/slack-dark-9TBiD8mL.js +7 -0
  545. package/dist/component/slack-dark-DN-r2Kgp.js +7 -0
  546. package/dist/component/slack-ochin-9pgdwMdj.js +7 -0
  547. package/dist/component/slack-ochin-DoqPjNJD.js +7 -0
  548. package/dist/component/smalltalk-Bbm0pJzJ.js +9 -0
  549. package/dist/component/smalltalk-BgwWJ0LQ.js +9 -0
  550. package/dist/component/snazzy-light-CRiZMLw1.js +7 -0
  551. package/dist/component/snazzy-light-D2QxPpzI.js +7 -0
  552. package/dist/component/solarized-dark-CpiZBbF-.js +7 -0
  553. package/dist/component/solarized-dark-DrZ258Kz.js +7 -0
  554. package/dist/component/solarized-light-940Q0ET-.js +7 -0
  555. package/dist/component/solarized-light-CZjXGjG0.js +7 -0
  556. package/dist/component/solidity-BiVIJAyo.js +9 -0
  557. package/dist/component/solidity-DsGO0zKs.js +9 -0
  558. package/dist/component/soy-B8d9iNux.js +11 -0
  559. package/dist/component/soy-CrWxFFIL.js +11 -0
  560. package/dist/component/sparql-C9-sbVPb.js +11 -0
  561. package/dist/component/sparql-D4y9QLpW.js +11 -0
  562. package/dist/component/splunk-8ZGt17T1.js +9 -0
  563. package/dist/component/splunk-CoLR9YoS.js +9 -0
  564. package/dist/component/sql-kcHmCqqm.js +9 -0
  565. package/dist/component/sql-vg8sPfqQ.js +9 -0
  566. package/dist/component/ssh-config-CaXR5cZI.js +9 -0
  567. package/dist/component/ssh-config-DIPB8nWv.js +9 -0
  568. package/dist/component/stata-DTwlvRC-.js +11 -0
  569. package/dist/component/stata-wXDnjjLv.js +11 -0
  570. package/dist/component/stateDiagram-AJRCARHV-DBGVr_mf.js +266 -0
  571. package/dist/component/stateDiagram-v2-BHNVJYJU-BasSd11t.js +19 -0
  572. package/dist/component/stylus-BVi_fesw.js +9 -0
  573. package/dist/component/stylus-WAexVQ6f.js +9 -0
  574. package/dist/component/surrealql-BMPoOZ16.js +11 -0
  575. package/dist/component/surrealql-CoR3cmJl.js +11 -0
  576. package/dist/component/svelte-BXoajfvD.js +17 -0
  577. package/dist/component/svelte-CSNEH6tH.js +17 -0
  578. package/dist/component/swift-C1L5BrdG.js +9 -0
  579. package/dist/component/swift-DvqRLmJa.js +9 -0
  580. package/dist/component/synthwave-84-CjU0tbaA.js +7 -0
  581. package/dist/component/synthwave-84-D0HCetP1.js +7 -0
  582. package/dist/component/system-verilog-BlCQhLvC.js +9 -0
  583. package/dist/component/system-verilog-NfYSOS9X.js +9 -0
  584. package/dist/component/systemd-C-VULMOV.js +9 -0
  585. package/dist/component/systemd-DPQeba_a.js +9 -0
  586. package/dist/component/talonscript-0iKTliWA.js +9 -0
  587. package/dist/component/talonscript-Dcq0YJ69.js +9 -0
  588. package/dist/component/tasl-CBnjmw_u.js +9 -0
  589. package/dist/component/tasl-DPTcRLbU.js +9 -0
  590. package/dist/component/tcl-B8YZq0wg.js +9 -0
  591. package/dist/component/tcl-D3IfUIUn.js +9 -0
  592. package/dist/component/templ-BWrZoBOl.js +15 -0
  593. package/dist/component/templ-CNKcDxHw.js +15 -0
  594. package/dist/component/terraform-BBGJbbOd.js +9 -0
  595. package/dist/component/terraform-CpHfbII0.js +9 -0
  596. package/dist/component/tex-Do7cxq2n.js +11 -0
  597. package/dist/component/tex-DotwMf2L.js +11 -0
  598. package/dist/component/timeline-definition-PNZ67QCA-BTzUH3cf.js +1058 -0
  599. package/dist/component/tokyo-night-50KL4qXP.js +7 -0
  600. package/dist/component/tokyo-night-CFdInRHE.js +7 -0
  601. package/dist/component/toml-BgG8u2uy.js +9 -0
  602. package/dist/component/toml-Cdrl1XDU.js +9 -0
  603. package/dist/component/ts-tags-CZ_-X2Or.js +44 -0
  604. package/dist/component/ts-tags-JQGxDVZd.js +44 -0
  605. package/dist/component/tsv-CH-Gpfzn.js +9 -0
  606. package/dist/component/tsv-DXq61Z_y.js +9 -0
  607. package/dist/component/tsx-B6WYiHjH.js +9 -0
  608. package/dist/component/tsx-BI2vzHzF.js +9 -0
  609. package/dist/component/turtle-BLh3UAZ1.js +9 -0
  610. package/dist/component/turtle-DuS0HQ9p.js +9 -0
  611. package/dist/component/twig-BA9yPOhQ.js +21 -0
  612. package/dist/component/twig-F0j_PXgJ.js +21 -0
  613. package/dist/component/typescript-Bt_Em9TU.js +9 -0
  614. package/dist/component/typescript-BxspRrVw.js +9 -0
  615. package/dist/component/typespec-CBQfkfKg.js +9 -0
  616. package/dist/component/typespec-ChsG4DJP.js +9 -0
  617. package/dist/component/typst-CLNdxZpy.js +9 -0
  618. package/dist/component/typst-rCvFF3Ml.js +9 -0
  619. package/dist/component/v-Bc8b7HcA.js +9 -0
  620. package/dist/component/v-DkBTCxRz.js +9 -0
  621. package/dist/component/vala-Bf6duLsN.js +9 -0
  622. package/dist/component/vala-D3NFAJvZ.js +9 -0
  623. package/dist/component/vb-CbCKaE0V.js +9 -0
  624. package/dist/component/vb-DoG_86dU.js +9 -0
  625. package/dist/component/vennDiagram-CIIHVFJN-CVh3weJ2.js +1560 -0
  626. package/dist/component/verilog-BsnhA3AJ.js +9 -0
  627. package/dist/component/verilog-nZodAh2g.js +9 -0
  628. package/dist/component/vesper-C9xEuBGK.js +7 -0
  629. package/dist/component/vesper-DGjNIaCs.js +7 -0
  630. package/dist/component/vhdl-D19XVLHt.js +9 -0
  631. package/dist/component/vhdl-mXcQB2Fg.js +9 -0
  632. package/dist/component/viml-8k_5DKNK.js +9 -0
  633. package/dist/component/viml-COJbZm0U.js +9 -0
  634. package/dist/component/vitesse-black-Bct4R3m4.js +7 -0
  635. package/dist/component/vitesse-black-heVxAgDf.js +7 -0
  636. package/dist/component/vitesse-dark-DdWh6SFL.js +7 -0
  637. package/dist/component/vitesse-dark-DiXBkaTo.js +7 -0
  638. package/dist/component/vitesse-light-CerMU32A.js +7 -0
  639. package/dist/component/vitesse-light-Eee3KZAP.js +7 -0
  640. package/dist/component/vue-DjB6jmJ7.js +34 -0
  641. package/dist/component/vue-YqIdEku3.js +34 -0
  642. package/dist/component/vue-html-BkvRG1qx.js +11 -0
  643. package/dist/component/vue-html-CXFz0iVx.js +11 -0
  644. package/dist/component/vue-vine-CFD4nsF4.js +21 -0
  645. package/dist/component/vue-vine-lE-jUeB6.js +21 -0
  646. package/dist/component/vyper-DTCkLS2f.js +9 -0
  647. package/dist/component/vyper-_vSvOdCD.js +9 -0
  648. package/dist/component/wardley-L42UT6IY-HA1eSIS_.js +23141 -0
  649. package/dist/component/wardleyDiagram-YWT4CUSO-Uu5KXQum.js +681 -0
  650. package/dist/component/wasm-BEUtLzBq.js +10 -0
  651. package/dist/component/wasm-Bw9k5bmy.js +9 -0
  652. package/dist/component/wasm-NiufRxKC.js +9 -0
  653. package/dist/component/wasm-rA9i46L9.js +10 -0
  654. package/dist/component/wenyan-BAnK6VvJ.js +9 -0
  655. package/dist/component/wenyan-EBJbIPqf.js +9 -0
  656. package/dist/component/wgsl-B9MSpOv3.js +9 -0
  657. package/dist/component/wgsl-Dlg8zdV4.js +9 -0
  658. package/dist/component/wikitext-C8AvgBS7.js +9 -0
  659. package/dist/component/wikitext-sNd9wc1e.js +9 -0
  660. package/dist/component/wit-BM4EHoLb.js +9 -0
  661. package/dist/component/wit-BUXWAgVD.js +9 -0
  662. package/dist/component/wolfram-Ba-Qm5eW.js +9 -0
  663. package/dist/component/wolfram-CKRVXwGa.js +9 -0
  664. package/dist/component/xml-CE4MTCb-.js +11 -0
  665. package/dist/component/xml-DXvCmeFI.js +11 -0
  666. package/dist/component/xsl-BrFD-9o5.js +11 -0
  667. package/dist/component/xsl-CHBQO4kd.js +11 -0
  668. package/dist/component/xychartDiagram-2RQKCTM6-IkxwUbCF.js +1375 -0
  669. package/dist/component/yaml-CF4mYNnF.js +9 -0
  670. package/dist/component/yaml-XzfbPk1C.js +9 -0
  671. package/dist/component/zenscript-C0pvNsdh.js +9 -0
  672. package/dist/component/zenscript-xkkNgCqg.js +9 -0
  673. package/dist/component/zig-Bz6GLPWH.js +9 -0
  674. package/dist/component/zig-oixaTxav.js +9 -0
  675. package/dist/components/ai-elements/attachments.d.ts +54 -0
  676. package/dist/components/ai-elements/code-block.d.ts +46 -0
  677. package/dist/components/ai-elements/conversation.d.ts +23 -0
  678. package/dist/components/ai-elements/copy-button.d.ts +6 -0
  679. package/dist/components/ai-elements/file-tree.d.ts +26 -0
  680. package/dist/components/ai-elements/link-safety-modal.d.ts +8 -0
  681. package/dist/components/ai-elements/message.d.ts +38 -0
  682. package/dist/components/ai-elements/plan.d.ts +25 -0
  683. package/dist/components/ai-elements/prompt-input.d.ts +158 -0
  684. package/dist/components/ai-elements/reasoning.d.ts +26 -0
  685. package/dist/components/ai-elements/shell-highlight.d.ts +3 -0
  686. package/dist/components/ai-elements/shimmer.d.ts +9 -0
  687. package/dist/components/ai-elements/suggestion.d.ts +10 -0
  688. package/dist/components/ai-elements/task.d.ts +14 -0
  689. package/dist/components/ai-elements/terminal-task.d.ts +5 -0
  690. package/dist/components/ai-elements/tool.d.ts +31 -0
  691. package/dist/components/embed/AgentGrantCard.d.ts +25 -0
  692. package/dist/components/embed/AtMentionMenu.d.ts +13 -0
  693. package/dist/components/embed/BelongMark.d.ts +4 -0
  694. package/dist/components/embed/BrandMark.d.ts +11 -0
  695. package/dist/components/embed/CapabilityHints.d.ts +1 -0
  696. package/dist/components/embed/ComposerMenu.d.ts +36 -0
  697. package/dist/components/embed/CsvTable.d.ts +10 -0
  698. package/dist/components/embed/EmbedAvatar.d.ts +35 -0
  699. package/dist/components/embed/EmbedComposer.d.ts +31 -0
  700. package/dist/components/embed/EmbedConversation.d.ts +31 -0
  701. package/dist/components/embed/EmbedFiles.d.ts +28 -0
  702. package/dist/components/embed/EmbedHeader.d.ts +11 -0
  703. package/dist/components/embed/EmbedLogin.d.ts +11 -0
  704. package/dist/components/embed/EmbedRail.d.ts +49 -0
  705. package/dist/components/embed/EmbedSessions.d.ts +23 -0
  706. package/dist/components/embed/FilePreview.d.ts +12 -0
  707. package/dist/components/embed/FilePreviewDialog.d.ts +19 -0
  708. package/dist/components/embed/MentionInput.d.ts +23 -0
  709. package/dist/components/embed/MentionPill.d.ts +25 -0
  710. package/dist/components/embed/OnboardingOverlay.d.ts +21 -0
  711. package/dist/components/embed/OnboardingTour.d.ts +24 -0
  712. package/dist/components/embed/OnboardingWelcome.d.ts +23 -0
  713. package/dist/components/embed/PlanCue.d.ts +9 -0
  714. package/dist/components/embed/PlanPanel.d.ts +13 -0
  715. package/dist/components/embed/PlanView.d.ts +16 -0
  716. package/dist/components/embed/PoweredByBelong.d.ts +7 -0
  717. package/dist/components/embed/PreviewContent.d.ts +26 -0
  718. package/dist/components/embed/PreviewPanel.d.ts +17 -0
  719. package/dist/components/embed/ProgressRing.d.ts +13 -0
  720. package/dist/components/embed/SlashCommandMenu.d.ts +13 -0
  721. package/dist/components/embed/UploadedFiles.d.ts +9 -0
  722. package/dist/components/embed/UsageMeter.d.ts +9 -0
  723. package/dist/components/embed/WelcomeIntro.d.ts +10 -0
  724. package/dist/components/embed/WorkspaceTree.d.ts +22 -0
  725. package/dist/components/embed/__plan-test-utils__.d.ts +13 -0
  726. package/dist/components/embed/dev-runtime-bar.d.ts +21 -0
  727. package/dist/components/embed/embed-composer.fixtures.d.ts +3 -0
  728. package/dist/components/embed/embed-rail.fixtures.d.ts +3 -0
  729. package/dist/components/embed/file-preview-kind.d.ts +7 -0
  730. package/dist/components/embed/onboarding-story-dock.d.ts +20 -0
  731. package/dist/components/embed/onboarding.fixtures.d.ts +9 -0
  732. package/dist/components/embed/parse-csv.d.ts +10 -0
  733. package/dist/components/embed/preview-content-kind.d.ts +15 -0
  734. package/dist/components/embed/use-panel-resize.d.ts +4 -0
  735. package/dist/components/embed/use-preview-bytes.d.ts +39 -0
  736. package/dist/components/feedback/feedback-metadata.d.ts +37 -0
  737. package/dist/components/feedback/message-feedback.d.ts +9 -0
  738. package/dist/components/ui/accordion.d.ts +7 -0
  739. package/dist/components/ui/alert.d.ts +9 -0
  740. package/dist/components/ui/avatar.d.ts +11 -0
  741. package/dist/components/ui/badge.d.ts +9 -0
  742. package/dist/components/ui/button-group.d.ts +11 -0
  743. package/dist/components/ui/button.d.ts +10 -0
  744. package/dist/components/ui/card.d.ts +9 -0
  745. package/dist/components/ui/carousel.d.ts +19 -0
  746. package/dist/components/ui/checkbox.d.ts +4 -0
  747. package/dist/components/ui/collapsible.d.ts +5 -0
  748. package/dist/components/ui/command.d.ts +18 -0
  749. package/dist/components/ui/dialog.d.ts +17 -0
  750. package/dist/components/ui/dropdown-menu.d.ts +25 -0
  751. package/dist/components/ui/hover-card.d.ts +6 -0
  752. package/dist/components/ui/input-group.d.ts +16 -0
  753. package/dist/components/ui/input.d.ts +3 -0
  754. package/dist/components/ui/popover.d.ts +10 -0
  755. package/dist/components/ui/progress.d.ts +4 -0
  756. package/dist/components/ui/radio-group.d.ts +5 -0
  757. package/dist/components/ui/scroll-area.d.ts +5 -0
  758. package/dist/components/ui/select.d.ts +15 -0
  759. package/dist/components/ui/separator.d.ts +4 -0
  760. package/dist/components/ui/spinner.d.ts +2 -0
  761. package/dist/components/ui/switch.d.ts +6 -0
  762. package/dist/components/ui/tabs.d.ts +11 -0
  763. package/dist/components/ui/textarea.d.ts +3 -0
  764. package/dist/components/ui/tooltip.d.ts +7 -0
  765. package/dist/dev-main.d.ts +0 -0
  766. package/dist/embed/agent-grant-refresh.d.ts +37 -0
  767. package/dist/embed/at-mentions.d.ts +80 -0
  768. package/dist/embed/auth0-refresh.d.ts +78 -0
  769. package/dist/embed/auto-embed.d.ts +19 -0
  770. package/dist/embed/bootstrap.d.ts +10 -0
  771. package/dist/embed/brand-marks.d.ts +11 -0
  772. package/dist/embed/build-info.d.ts +30 -0
  773. package/dist/embed/build-version.d.ts +28 -0
  774. package/dist/embed/chat-mode.d.ts +46 -0
  775. package/dist/embed/composer-focus.d.ts +14 -0
  776. package/dist/embed/copy.d.ts +84 -0
  777. package/dist/embed/custom-css.d.ts +2 -0
  778. package/dist/embed/debug-overrides.d.ts +11 -0
  779. package/dist/embed/dev-mode.d.ts +56 -0
  780. package/dist/embed/dock-layout.d.ts +30 -0
  781. package/dist/embed/dock-state.d.ts +32 -0
  782. package/dist/embed/download-url.d.ts +9 -0
  783. package/dist/embed/file-type-icon.d.ts +29 -0
  784. package/dist/embed/format-bytes.d.ts +2 -0
  785. package/dist/embed/global.d.ts +79 -0
  786. package/dist/embed/locale.d.ts +18 -0
  787. package/dist/embed/logo.d.ts +1 -0
  788. package/dist/embed/mic-press.d.ts +27 -0
  789. package/dist/embed/onboarding-prefs.d.ts +52 -0
  790. package/dist/embed/onboarding-steps.d.ts +27 -0
  791. package/dist/embed/onboarding-store.d.ts +39 -0
  792. package/dist/embed/plan-auto-open.d.ts +8 -0
  793. package/dist/embed/plan-decision.d.ts +10 -0
  794. package/dist/embed/plan-intent.d.ts +17 -0
  795. package/dist/embed/portal-container.d.ts +23 -0
  796. package/dist/embed/presets.d.ts +29 -0
  797. package/dist/embed/session-record.d.ts +16 -0
  798. package/dist/embed/shadow-mount.d.ts +37 -0
  799. package/dist/embed/slash-commands.d.ts +49 -0
  800. package/dist/embed/theme.d.ts +40 -0
  801. package/dist/embed/universe-origin.d.ts +24 -0
  802. package/dist/embed/use-workspace-file-download.d.ts +16 -0
  803. package/dist/embed/voice/audio-forwarder.worklet.d.ts +22 -0
  804. package/dist/embed/voice/audio-utils.d.ts +38 -0
  805. package/dist/embed/voice/deepgram-stt.d.ts +69 -0
  806. package/dist/embed/voice/mic-capture.d.ts +34 -0
  807. package/dist/embed/voice/sentence-split.d.ts +11 -0
  808. package/dist/embed/voice/voice-http.d.ts +8 -0
  809. package/dist/embed/voice/voice-token.d.ts +40 -0
  810. package/dist/embed/voice-bus.d.ts +75 -0
  811. package/dist/embed/voice-config.d.ts +52 -0
  812. package/dist/embed/voice-fillers.d.ts +2 -0
  813. package/dist/embed/voice-prefs.d.ts +55 -0
  814. package/dist/embed/voice-tts.d.ts +101 -0
  815. package/dist/embed/workspace-paths.d.ts +9 -0
  816. package/dist/infrastructure/telemetry/session-span-processor.d.ts +11 -0
  817. package/dist/infrastructure/telemetry/web-sdk.d.ts +29 -0
  818. package/dist/lib/belong.d.ts +12 -0
  819. package/dist/lib/tab-leadership.d.ts +46 -0
  820. package/dist/lib/use-tab-leadership.d.ts +8 -0
  821. package/dist/lib/utils.d.ts +9 -0
  822. package/dist/public-api.d.ts +3 -0
  823. package/dist/routes/chat-attachment-chip.d.ts +9 -0
  824. package/dist/routes/chat.d.ts +29 -0
  825. package/dist/routes/documents.d.ts +16 -0
  826. package/dist/routes/files.d.ts +14 -0
  827. package/dist/routes/sample-artifact.d.ts +7 -0
  828. package/dist/routes/sessions.d.ts +4 -0
  829. package/dist/routes/static-chat-fixture.d.ts +26 -0
  830. package/dist/stream/ai-sdk-part-renderers.d.ts +66 -0
  831. package/dist/stream/belong-chat-transport.d.ts +679 -0
  832. package/dist/stream/belong-data-parts.d.ts +207 -0
  833. package/dist/stream/chat-upload.d.ts +35 -0
  834. package/dist/stream/plan-panel-store.d.ts +11 -0
  835. package/dist/stream/plan-progress-store.d.ts +4 -0
  836. package/dist/stream/plan-progress.d.ts +25 -0
  837. package/dist/stream/plan-store.d.ts +16 -0
  838. package/dist/stream/preview-panel-store.d.ts +50 -0
  839. package/dist/stream/sandbox-output.d.ts +32 -0
  840. package/dist/stream/select-latest-plan.d.ts +17 -0
  841. package/dist/stream/select-session-usage.d.ts +23 -0
  842. package/dist/stream/session-title.d.ts +15 -0
  843. package/dist/stream/stream-state-store.d.ts +67 -0
  844. package/dist/stream/tool-io.d.ts +7 -0
  845. package/dist/test/render.d.ts +23 -0
  846. package/dist/test-setup.d.ts +1 -0
  847. package/dist/types/public.d.ts +189 -0
  848. package/package.json +38 -0
@@ -0,0 +1,2897 @@
1
+ import { _ as g, o as tr, c as $, d as Mt, l as at, j as Ce, e as er, f as rr, k as P, b as ke, s as ar, q as sr, a as ir, g as nr, t as or, v as cr, J as lr, B as hr, i as Bt, u as Z, a5 as Q, a6 as wt, a7 as Me, a8 as dr, G as Yt, a9 as Tr, aa as Be } from "./mermaid-GHXKKRXX-C5Y3BZXR.js";
2
+ import { a as pr, b as ee, g as dt, d as Er, e as re, f as ae } from "./chunk-ND2GUHAM-CzTviSBV.js";
3
+ import { I as ur } from "./chunk-QZHKN3VN-CHDEerWv.js";
4
+ globalThis.process = globalThis.process || { env: {} };
5
+ globalThis.global = globalThis.global || globalThis;
6
+ var $t = (function() {
7
+ var e = /* @__PURE__ */ g(function(ut, w, v, k) {
8
+ for (v = v || {}, k = ut.length; k--; v[ut[k]] = w) ;
9
+ return v;
10
+ }, "o"), t = [1, 2], a = [1, 3], r = [1, 4], i = [2, 4], o = [1, 9], s = [1, 11], n = [1, 12], E = [1, 14], T = [1, 15], l = [1, 17], x = [1, 18], u = [1, 19], O = [1, 25], p = [1, 26], f = [1, 27], _ = [1, 28], I = [1, 29], L = [1, 30], b = [1, 31], S = [1, 32], A = [1, 33], N = [1, 34], B = [1, 35], V = [1, 36], q = [1, 37], U = [1, 38], G = [1, 39], X = [1, 40], j = [1, 42], H = [1, 43], st = [1, 44], tt = [1, 45], it = [1, 46], Y = [1, 47], C = [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], Nt = [1, 74], m = [1, 80], D = [1, 81], lt = [1, 82], et = [1, 83], W = [1, 84], se = [1, 85], ie = [1, 86], ne = [1, 87], oe = [1, 88], ce = [1, 89], le = [1, 90], he = [1, 91], de = [1, 92], Te = [1, 93], pe = [1, 94], Ee = [1, 95], ue = [1, 96], fe = [1, 97], _e = [1, 98], ge = [1, 99], xe = [1, 100], Ie = [1, 101], ye = [1, 102], Re = [1, 103], Oe = [1, 104], Le = [1, 105], be = [2, 78], mt = [4, 5, 17, 51, 53, 54], Pt = [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], me = [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], Ht = [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], Ae = [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], zt = [5, 52], K = [70, 71, 72, 73], ot = [1, 151], Ut = {
11
+ trace: /* @__PURE__ */ g(function() {
12
+ }, "trace"),
13
+ yy: {},
14
+ 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 },
15
+ 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" },
16
+ 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], [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]],
17
+ performAction: /* @__PURE__ */ g(function(w, v, k, y, z, c, At) {
18
+ var d = c.length - 1;
19
+ switch (z) {
20
+ case 3:
21
+ return y.apply(c[d]), c[d];
22
+ case 4:
23
+ case 10:
24
+ this.$ = [];
25
+ break;
26
+ case 5:
27
+ case 11:
28
+ c[d - 1].push(c[d]), this.$ = c[d - 1];
29
+ break;
30
+ case 6:
31
+ case 7:
32
+ case 12:
33
+ case 13:
34
+ this.$ = c[d];
35
+ break;
36
+ case 8:
37
+ case 9:
38
+ case 14:
39
+ this.$ = [];
40
+ break;
41
+ case 16:
42
+ c[d].type = "createParticipant", this.$ = c[d];
43
+ break;
44
+ case 17:
45
+ c[d - 1].unshift({ type: "boxStart", boxData: y.parseBoxData(c[d - 2]) }), c[d - 1].push({ type: "boxEnd", boxText: c[d - 2] }), this.$ = c[d - 1];
46
+ break;
47
+ case 19:
48
+ this.$ = { type: "sequenceIndex", sequenceIndex: Number(c[d - 2]), sequenceIndexStep: Number(c[d - 1]), sequenceVisible: !0, signalType: y.LINETYPE.AUTONUMBER };
49
+ break;
50
+ case 20:
51
+ this.$ = { type: "sequenceIndex", sequenceIndex: Number(c[d - 1]), sequenceIndexStep: 1, sequenceVisible: !0, signalType: y.LINETYPE.AUTONUMBER };
52
+ break;
53
+ case 21:
54
+ this.$ = { type: "sequenceIndex", sequenceVisible: !1, signalType: y.LINETYPE.AUTONUMBER };
55
+ break;
56
+ case 22:
57
+ this.$ = { type: "sequenceIndex", sequenceVisible: !0, signalType: y.LINETYPE.AUTONUMBER };
58
+ break;
59
+ case 23:
60
+ this.$ = { type: "activeStart", signalType: y.LINETYPE.ACTIVE_START, actor: c[d - 1].actor };
61
+ break;
62
+ case 24:
63
+ this.$ = { type: "activeEnd", signalType: y.LINETYPE.ACTIVE_END, actor: c[d - 1].actor };
64
+ break;
65
+ case 30:
66
+ y.setDiagramTitle(c[d].substring(6)), this.$ = c[d].substring(6);
67
+ break;
68
+ case 31:
69
+ y.setDiagramTitle(c[d].substring(7)), this.$ = c[d].substring(7);
70
+ break;
71
+ case 32:
72
+ this.$ = c[d].trim(), y.setAccTitle(this.$);
73
+ break;
74
+ case 33:
75
+ case 34:
76
+ this.$ = c[d].trim(), y.setAccDescription(this.$);
77
+ break;
78
+ case 35:
79
+ c[d - 1].unshift({ type: "loopStart", loopText: y.parseMessage(c[d - 2]), signalType: y.LINETYPE.LOOP_START }), c[d - 1].push({ type: "loopEnd", loopText: c[d - 2], signalType: y.LINETYPE.LOOP_END }), this.$ = c[d - 1];
80
+ break;
81
+ case 36:
82
+ c[d - 1].unshift({ type: "rectStart", color: y.parseMessage(c[d - 2]), signalType: y.LINETYPE.RECT_START }), c[d - 1].push({ type: "rectEnd", color: y.parseMessage(c[d - 2]), signalType: y.LINETYPE.RECT_END }), this.$ = c[d - 1];
83
+ break;
84
+ case 37:
85
+ c[d - 1].unshift({ type: "optStart", optText: y.parseMessage(c[d - 2]), signalType: y.LINETYPE.OPT_START }), c[d - 1].push({ type: "optEnd", optText: y.parseMessage(c[d - 2]), signalType: y.LINETYPE.OPT_END }), this.$ = c[d - 1];
86
+ break;
87
+ case 38:
88
+ c[d - 1].unshift({ type: "altStart", altText: y.parseMessage(c[d - 2]), signalType: y.LINETYPE.ALT_START }), c[d - 1].push({ type: "altEnd", signalType: y.LINETYPE.ALT_END }), this.$ = c[d - 1];
89
+ break;
90
+ case 39:
91
+ c[d - 1].unshift({ type: "parStart", parText: y.parseMessage(c[d - 2]), signalType: y.LINETYPE.PAR_START }), c[d - 1].push({ type: "parEnd", signalType: y.LINETYPE.PAR_END }), this.$ = c[d - 1];
92
+ break;
93
+ case 40:
94
+ c[d - 1].unshift({ type: "parStart", parText: y.parseMessage(c[d - 2]), signalType: y.LINETYPE.PAR_OVER_START }), c[d - 1].push({ type: "parEnd", signalType: y.LINETYPE.PAR_END }), this.$ = c[d - 1];
95
+ break;
96
+ case 41:
97
+ c[d - 1].unshift({ type: "criticalStart", criticalText: y.parseMessage(c[d - 2]), signalType: y.LINETYPE.CRITICAL_START }), c[d - 1].push({ type: "criticalEnd", signalType: y.LINETYPE.CRITICAL_END }), this.$ = c[d - 1];
98
+ break;
99
+ case 42:
100
+ c[d - 1].unshift({ type: "breakStart", breakText: y.parseMessage(c[d - 2]), signalType: y.LINETYPE.BREAK_START }), c[d - 1].push({ type: "breakEnd", optText: y.parseMessage(c[d - 2]), signalType: y.LINETYPE.BREAK_END }), this.$ = c[d - 1];
101
+ break;
102
+ case 44:
103
+ this.$ = c[d - 3].concat([{ type: "option", optionText: y.parseMessage(c[d - 1]), signalType: y.LINETYPE.CRITICAL_OPTION }, c[d]]);
104
+ break;
105
+ case 46:
106
+ this.$ = c[d - 3].concat([{ type: "and", parText: y.parseMessage(c[d - 1]), signalType: y.LINETYPE.PAR_AND }, c[d]]);
107
+ break;
108
+ case 48:
109
+ this.$ = c[d - 3].concat([{ type: "else", altText: y.parseMessage(c[d - 1]), signalType: y.LINETYPE.ALT_ELSE }, c[d]]);
110
+ break;
111
+ case 49:
112
+ c[d - 3].draw = "participant", c[d - 3].type = "addParticipant", c[d - 3].description = y.parseMessage(c[d - 1]), this.$ = c[d - 3];
113
+ break;
114
+ case 50:
115
+ c[d - 1].draw = "participant", c[d - 1].type = "addParticipant", this.$ = c[d - 1];
116
+ break;
117
+ case 51:
118
+ c[d - 3].draw = "actor", c[d - 3].type = "addParticipant", c[d - 3].description = y.parseMessage(c[d - 1]), this.$ = c[d - 3];
119
+ break;
120
+ case 52:
121
+ case 57:
122
+ c[d - 1].draw = "actor", c[d - 1].type = "addParticipant", this.$ = c[d - 1];
123
+ break;
124
+ case 53:
125
+ c[d - 1].type = "destroyParticipant", this.$ = c[d - 1];
126
+ break;
127
+ case 54:
128
+ c[d - 3].draw = "participant", c[d - 3].type = "addParticipant", c[d - 3].description = y.parseMessage(c[d - 1]), this.$ = c[d - 3];
129
+ break;
130
+ case 55:
131
+ c[d - 1].draw = "participant", c[d - 1].type = "addParticipant", this.$ = c[d - 1];
132
+ break;
133
+ case 56:
134
+ c[d - 3].draw = "actor", c[d - 3].type = "addParticipant", c[d - 3].description = y.parseMessage(c[d - 1]), this.$ = c[d - 3];
135
+ break;
136
+ case 58:
137
+ this.$ = [c[d - 1], { type: "addNote", placement: c[d - 2], actor: c[d - 1].actor, text: c[d] }];
138
+ break;
139
+ case 59:
140
+ c[d - 2] = [].concat(c[d - 1], c[d - 1]).slice(0, 2), c[d - 2][0] = c[d - 2][0].actor, c[d - 2][1] = c[d - 2][1].actor, this.$ = [c[d - 1], { type: "addNote", placement: y.PLACEMENT.OVER, actor: c[d - 2].slice(0, 2), text: c[d] }];
141
+ break;
142
+ case 60:
143
+ this.$ = [c[d - 1], { type: "addLinks", actor: c[d - 1].actor, text: c[d] }];
144
+ break;
145
+ case 61:
146
+ this.$ = [c[d - 1], { type: "addALink", actor: c[d - 1].actor, text: c[d] }];
147
+ break;
148
+ case 62:
149
+ this.$ = [c[d - 1], { type: "addProperties", actor: c[d - 1].actor, text: c[d] }];
150
+ break;
151
+ case 63:
152
+ this.$ = [c[d - 1], { type: "addDetails", actor: c[d - 1].actor, text: c[d] }];
153
+ break;
154
+ case 66:
155
+ this.$ = [c[d - 2], c[d]];
156
+ break;
157
+ case 67:
158
+ this.$ = c[d];
159
+ break;
160
+ case 68:
161
+ this.$ = y.PLACEMENT.LEFTOF;
162
+ break;
163
+ case 69:
164
+ this.$ = y.PLACEMENT.RIGHTOF;
165
+ break;
166
+ case 70:
167
+ this.$ = [
168
+ c[d - 4],
169
+ c[d - 1],
170
+ { type: "addMessage", from: c[d - 4].actor, to: c[d - 1].actor, signalType: c[d - 3], msg: c[d], activate: !0 },
171
+ { type: "activeStart", signalType: y.LINETYPE.ACTIVE_START, actor: c[d - 1].actor }
172
+ ];
173
+ break;
174
+ case 71:
175
+ this.$ = [
176
+ c[d - 4],
177
+ c[d - 1],
178
+ { type: "addMessage", from: c[d - 4].actor, to: c[d - 1].actor, signalType: c[d - 3], msg: c[d] },
179
+ { type: "activeEnd", signalType: y.LINETYPE.ACTIVE_END, actor: c[d - 4].actor }
180
+ ];
181
+ break;
182
+ case 72:
183
+ this.$ = [
184
+ c[d - 4],
185
+ c[d - 1],
186
+ { type: "addMessage", from: c[d - 4].actor, to: c[d - 1].actor, signalType: c[d - 3], msg: c[d], activate: !0, centralConnection: y.LINETYPE.CENTRAL_CONNECTION },
187
+ { type: "centralConnection", signalType: y.LINETYPE.CENTRAL_CONNECTION, actor: c[d - 1].actor }
188
+ ];
189
+ break;
190
+ case 73:
191
+ this.$ = [
192
+ c[d - 4],
193
+ c[d - 1],
194
+ { type: "addMessage", from: c[d - 4].actor, to: c[d - 1].actor, signalType: c[d - 2], msg: c[d], activate: !1, centralConnection: y.LINETYPE.CENTRAL_CONNECTION_REVERSE },
195
+ { type: "centralConnectionReverse", signalType: y.LINETYPE.CENTRAL_CONNECTION_REVERSE, actor: c[d - 4].actor }
196
+ ];
197
+ break;
198
+ case 74:
199
+ this.$ = [
200
+ c[d - 5],
201
+ c[d - 1],
202
+ { type: "addMessage", from: c[d - 5].actor, to: c[d - 1].actor, signalType: c[d - 3], msg: c[d], activate: !0, centralConnection: y.LINETYPE.CENTRAL_CONNECTION_DUAL },
203
+ { type: "centralConnection", signalType: y.LINETYPE.CENTRAL_CONNECTION, actor: c[d - 1].actor },
204
+ { type: "centralConnectionReverse", signalType: y.LINETYPE.CENTRAL_CONNECTION_REVERSE, actor: c[d - 5].actor }
205
+ ];
206
+ break;
207
+ case 75:
208
+ this.$ = [c[d - 3], c[d - 1], { type: "addMessage", from: c[d - 3].actor, to: c[d - 1].actor, signalType: c[d - 2], msg: c[d] }];
209
+ break;
210
+ case 76:
211
+ this.$ = {
212
+ type: "addParticipant",
213
+ actor: c[d - 1],
214
+ config: c[d]
215
+ };
216
+ break;
217
+ case 77:
218
+ this.$ = c[d - 1].trim();
219
+ break;
220
+ case 78:
221
+ this.$ = { type: "addParticipant", actor: c[d] };
222
+ break;
223
+ case 79:
224
+ this.$ = y.LINETYPE.SOLID_OPEN;
225
+ break;
226
+ case 80:
227
+ this.$ = y.LINETYPE.DOTTED_OPEN;
228
+ break;
229
+ case 81:
230
+ this.$ = y.LINETYPE.SOLID;
231
+ break;
232
+ case 82:
233
+ this.$ = y.LINETYPE.SOLID_TOP;
234
+ break;
235
+ case 83:
236
+ this.$ = y.LINETYPE.SOLID_BOTTOM;
237
+ break;
238
+ case 84:
239
+ this.$ = y.LINETYPE.STICK_TOP;
240
+ break;
241
+ case 85:
242
+ this.$ = y.LINETYPE.STICK_BOTTOM;
243
+ break;
244
+ case 86:
245
+ this.$ = y.LINETYPE.SOLID_TOP_DOTTED;
246
+ break;
247
+ case 87:
248
+ this.$ = y.LINETYPE.SOLID_BOTTOM_DOTTED;
249
+ break;
250
+ case 88:
251
+ this.$ = y.LINETYPE.STICK_TOP_DOTTED;
252
+ break;
253
+ case 89:
254
+ this.$ = y.LINETYPE.STICK_BOTTOM_DOTTED;
255
+ break;
256
+ case 90:
257
+ this.$ = y.LINETYPE.SOLID_ARROW_TOP_REVERSE;
258
+ break;
259
+ case 91:
260
+ this.$ = y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;
261
+ break;
262
+ case 92:
263
+ this.$ = y.LINETYPE.STICK_ARROW_TOP_REVERSE;
264
+ break;
265
+ case 93:
266
+ this.$ = y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;
267
+ break;
268
+ case 94:
269
+ this.$ = y.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;
270
+ break;
271
+ case 95:
272
+ this.$ = y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;
273
+ break;
274
+ case 96:
275
+ this.$ = y.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;
276
+ break;
277
+ case 97:
278
+ this.$ = y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;
279
+ break;
280
+ case 98:
281
+ this.$ = y.LINETYPE.BIDIRECTIONAL_SOLID;
282
+ break;
283
+ case 99:
284
+ this.$ = y.LINETYPE.DOTTED;
285
+ break;
286
+ case 100:
287
+ this.$ = y.LINETYPE.BIDIRECTIONAL_DOTTED;
288
+ break;
289
+ case 101:
290
+ this.$ = y.LINETYPE.SOLID_CROSS;
291
+ break;
292
+ case 102:
293
+ this.$ = y.LINETYPE.DOTTED_CROSS;
294
+ break;
295
+ case 103:
296
+ this.$ = y.LINETYPE.SOLID_POINT;
297
+ break;
298
+ case 104:
299
+ this.$ = y.LINETYPE.DOTTED_POINT;
300
+ break;
301
+ case 105:
302
+ this.$ = y.parseMessage(c[d].trim().substring(1));
303
+ break;
304
+ }
305
+ }, "anonymous"),
306
+ table: [{ 3: 1, 4: t, 5: a, 6: r }, { 1: [3] }, { 3: 5, 4: t, 5: a, 6: r }, { 3: 6, 4: t, 5: a, 6: r }, e([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], i, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: o, 5: s, 8: 8, 9: 10, 10: n, 13: 13, 14: E, 15: T, 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: q, 51: U, 53: G, 54: X, 56: j, 61: H, 62: st, 63: tt, 64: it, 73: Y }, e(C, [2, 5]), { 9: 48, 13: 13, 14: E, 15: T, 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: q, 51: U, 53: G, 54: X, 56: j, 61: H, 62: st, 63: tt, 64: it, 73: Y }, e(C, [2, 7]), e(C, [2, 8]), e(C, [2, 9]), e(C, [2, 15]), { 13: 49, 51: U, 53: G, 54: X }, { 16: [1, 50] }, { 5: [1, 51] }, { 5: [1, 54], 20: [1, 52], 21: [1, 53] }, { 23: 55, 73: Y }, { 23: 56, 73: Y }, { 5: [1, 57] }, { 5: [1, 58] }, { 5: [1, 59] }, { 5: [1, 60] }, { 5: [1, 61] }, e(C, [2, 30]), e(C, [2, 31]), { 33: [1, 62] }, { 35: [1, 63] }, e(C, [2, 34]), { 16: [1, 64] }, { 16: [1, 65] }, { 16: [1, 66] }, { 16: [1, 67] }, { 16: [1, 68] }, { 16: [1, 69] }, { 16: [1, 70] }, { 16: [1, 71] }, { 23: 72, 55: 73, 73: Nt }, { 23: 75, 55: 76, 73: Nt }, { 23: 77, 73: Y }, { 69: 78, 72: [1, 79], 78: m, 79: D, 80: lt, 81: et, 82: W, 83: se, 84: ie, 85: ne, 86: oe, 87: ce, 88: le, 89: he, 90: de, 91: Te, 92: pe, 93: Ee, 94: ue, 95: fe, 96: _e, 97: ge, 98: xe, 99: Ie, 100: ye, 101: Re, 102: Oe, 103: Le }, { 57: 106, 59: [1, 107], 67: [1, 108], 68: [1, 109] }, { 23: 110, 73: Y }, { 23: 111, 73: Y }, { 23: 112, 73: Y }, { 23: 113, 73: Y }, e([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], be), e(C, [2, 6]), e(C, [2, 16]), e(mt, [2, 10], { 11: 114 }), e(C, [2, 18]), { 5: [1, 116], 20: [1, 115] }, { 5: [1, 117] }, e(C, [2, 22]), { 5: [1, 118] }, { 5: [1, 119] }, e(C, [2, 25]), e(C, [2, 26]), e(C, [2, 27]), e(C, [2, 28]), e(C, [2, 29]), e(C, [2, 32]), e(C, [2, 33]), e(Pt, i, { 7: 120 }), e(Pt, i, { 7: 121 }), e(Pt, i, { 7: 122 }), e(me, i, { 41: 123, 7: 124 }), e(Ht, i, { 43: 125, 7: 126 }), e(Ht, i, { 7: 126, 43: 127 }), e(Ae, i, { 46: 128, 7: 129 }), e(Pt, i, { 7: 130 }), { 5: [1, 132], 52: [1, 131] }, { 5: [1, 134], 52: [1, 133] }, e(zt, be, { 74: 135, 75: [1, 136] }), { 5: [1, 138], 52: [1, 137] }, { 5: [1, 140], 52: [1, 139] }, { 5: [1, 141] }, { 23: 145, 70: [1, 142], 71: [1, 143], 72: [1, 144], 73: Y }, { 69: 146, 78: m, 79: D, 80: lt, 81: et, 82: W, 83: se, 84: ie, 85: ne, 86: oe, 87: ce, 88: le, 89: he, 90: de, 91: Te, 92: pe, 93: Ee, 94: ue, 95: fe, 96: _e, 97: ge, 98: xe, 99: Ie, 100: ye, 101: Re, 102: Oe, 103: Le }, e(K, [2, 79]), e(K, [2, 80]), e(K, [2, 81]), e(K, [2, 82]), e(K, [2, 83]), e(K, [2, 84]), e(K, [2, 85]), e(K, [2, 86]), e(K, [2, 87]), e(K, [2, 88]), e(K, [2, 89]), e(K, [2, 90]), e(K, [2, 91]), e(K, [2, 92]), e(K, [2, 93]), e(K, [2, 94]), e(K, [2, 95]), e(K, [2, 96]), e(K, [2, 97]), e(K, [2, 98]), e(K, [2, 99]), e(K, [2, 100]), e(K, [2, 101]), e(K, [2, 102]), e(K, [2, 103]), e(K, [2, 104]), { 23: 147, 73: Y }, { 23: 149, 60: 148, 73: Y }, { 73: [2, 68] }, { 73: [2, 69] }, { 58: 150, 104: ot }, { 58: 152, 104: ot }, { 58: 153, 104: ot }, { 58: 154, 104: ot }, { 4: [1, 157], 5: [1, 159], 12: 156, 13: 158, 17: [1, 155], 51: U, 53: G, 54: X }, { 5: [1, 160] }, e(C, [2, 20]), e(C, [2, 21]), e(C, [2, 23]), e(C, [2, 24]), { 4: o, 5: s, 8: 8, 9: 10, 10: n, 13: 13, 14: E, 15: T, 17: [1, 161], 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: q, 51: U, 53: G, 54: X, 56: j, 61: H, 62: st, 63: tt, 64: it, 73: Y }, { 4: o, 5: s, 8: 8, 9: 10, 10: n, 13: 13, 14: E, 15: T, 17: [1, 162], 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: q, 51: U, 53: G, 54: X, 56: j, 61: H, 62: st, 63: tt, 64: it, 73: Y }, { 4: o, 5: s, 8: 8, 9: 10, 10: n, 13: 13, 14: E, 15: T, 17: [1, 163], 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: q, 51: U, 53: G, 54: X, 56: j, 61: H, 62: st, 63: tt, 64: it, 73: Y }, { 17: [1, 164] }, { 4: o, 5: s, 8: 8, 9: 10, 10: n, 13: 13, 14: E, 15: T, 17: [2, 47], 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: q, 50: [1, 165], 51: U, 53: G, 54: X, 56: j, 61: H, 62: st, 63: tt, 64: it, 73: Y }, { 17: [1, 166] }, { 4: o, 5: s, 8: 8, 9: 10, 10: n, 13: 13, 14: E, 15: T, 17: [2, 45], 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: q, 49: [1, 167], 51: U, 53: G, 54: X, 56: j, 61: H, 62: st, 63: tt, 64: it, 73: Y }, { 17: [1, 168] }, { 17: [1, 169] }, { 4: o, 5: s, 8: 8, 9: 10, 10: n, 13: 13, 14: E, 15: T, 17: [2, 43], 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: q, 48: [1, 170], 51: U, 53: G, 54: X, 56: j, 61: H, 62: st, 63: tt, 64: it, 73: Y }, { 4: o, 5: s, 8: 8, 9: 10, 10: n, 13: 13, 14: E, 15: T, 17: [1, 171], 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: q, 51: U, 53: G, 54: X, 56: j, 61: H, 62: st, 63: tt, 64: it, 73: Y }, { 16: [1, 172] }, e(C, [2, 50]), { 16: [1, 173] }, e(C, [2, 55]), e(zt, [2, 76]), { 76: [1, 174] }, { 16: [1, 175] }, e(C, [2, 52]), { 16: [1, 176] }, e(C, [2, 57]), e(C, [2, 53]), { 23: 177, 73: Y }, { 23: 178, 73: Y }, { 23: 179, 73: Y }, { 58: 180, 104: ot }, { 23: 181, 72: [1, 182], 73: Y }, { 58: 183, 104: ot }, { 58: 184, 104: ot }, { 66: [1, 185], 104: [2, 67] }, { 5: [2, 60] }, { 5: [2, 105] }, { 5: [2, 61] }, { 5: [2, 62] }, { 5: [2, 63] }, e(C, [2, 17]), e(mt, [2, 11]), { 13: 186, 51: U, 53: G, 54: X }, e(mt, [2, 13]), e(mt, [2, 14]), e(C, [2, 19]), e(C, [2, 35]), e(C, [2, 36]), e(C, [2, 37]), e(C, [2, 38]), { 16: [1, 187] }, e(C, [2, 39]), { 16: [1, 188] }, e(C, [2, 40]), e(C, [2, 41]), { 16: [1, 189] }, e(C, [2, 42]), { 5: [1, 190] }, { 5: [1, 191] }, { 77: [1, 192] }, { 5: [1, 193] }, { 5: [1, 194] }, { 58: 195, 104: ot }, { 58: 196, 104: ot }, { 58: 197, 104: ot }, { 5: [2, 75] }, { 58: 198, 104: ot }, { 23: 199, 73: Y }, { 5: [2, 58] }, { 5: [2, 59] }, { 23: 200, 73: Y }, e(mt, [2, 12]), e(me, i, { 7: 124, 41: 201 }), e(Ht, i, { 7: 126, 43: 202 }), e(Ae, i, { 7: 129, 46: 203 }), e(C, [2, 49]), e(C, [2, 54]), e(zt, [2, 77]), e(C, [2, 51]), e(C, [2, 56]), { 5: [2, 70] }, { 5: [2, 71] }, { 5: [2, 72] }, { 5: [2, 73] }, { 58: 204, 104: ot }, { 104: [2, 66] }, { 17: [2, 48] }, { 17: [2, 46] }, { 17: [2, 44] }, { 5: [2, 74] }],
307
+ defaultActions: { 5: [2, 1], 6: [2, 2], 108: [2, 68], 109: [2, 69], 150: [2, 60], 151: [2, 105], 152: [2, 61], 153: [2, 62], 154: [2, 63], 180: [2, 75], 183: [2, 58], 184: [2, 59], 195: [2, 70], 196: [2, 71], 197: [2, 72], 198: [2, 73], 200: [2, 66], 201: [2, 48], 202: [2, 46], 203: [2, 44], 204: [2, 74] },
308
+ parseError: /* @__PURE__ */ g(function(w, v) {
309
+ if (v.recoverable)
310
+ this.trace(w);
311
+ else {
312
+ var k = new Error(w);
313
+ throw k.hash = v, k;
314
+ }
315
+ }, "parseError"),
316
+ parse: /* @__PURE__ */ g(function(w) {
317
+ var v = this, k = [0], y = [], z = [null], c = [], At = this.table, d = "", Dt = 0, Se = 0, Ze = 2, we = 1, Qe = c.slice.call(arguments, 1), J = Object.create(this.lexer), gt = { yy: {} };
318
+ for (var Gt in this.yy)
319
+ Object.prototype.hasOwnProperty.call(this.yy, Gt) && (gt.yy[Gt] = this.yy[Gt]);
320
+ J.setInput(w, gt.yy), gt.yy.lexer = J, gt.yy.parser = this, typeof J.yylloc > "u" && (J.yylloc = {});
321
+ var Xt = J.yylloc;
322
+ c.push(Xt);
323
+ var $e = J.options && J.options.ranges;
324
+ typeof gt.yy.parseError == "function" ? this.parseError = gt.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
325
+ function je(nt) {
326
+ k.length = k.length - 2 * nt, z.length = z.length - nt, c.length = c.length - nt;
327
+ }
328
+ g(je, "popStack");
329
+ function Ne() {
330
+ var nt;
331
+ return nt = y.pop() || J.lex() || we, typeof nt != "number" && (nt instanceof Array && (y = nt, nt = y.pop()), nt = v.symbols_[nt] || nt), nt;
332
+ }
333
+ g(Ne, "lex");
334
+ for (var rt, xt, ct, Jt, Ot = {}, vt, Tt, Pe, Ct; ; ) {
335
+ if (xt = k[k.length - 1], this.defaultActions[xt] ? ct = this.defaultActions[xt] : ((rt === null || typeof rt > "u") && (rt = Ne()), ct = At[xt] && At[xt][rt]), typeof ct > "u" || !ct.length || !ct[0]) {
336
+ var Zt = "";
337
+ Ct = [];
338
+ for (vt in At[xt])
339
+ this.terminals_[vt] && vt > Ze && Ct.push("'" + this.terminals_[vt] + "'");
340
+ J.showPosition ? Zt = "Parse error on line " + (Dt + 1) + `:
341
+ ` + J.showPosition() + `
342
+ Expecting ` + Ct.join(", ") + ", got '" + (this.terminals_[rt] || rt) + "'" : Zt = "Parse error on line " + (Dt + 1) + ": Unexpected " + (rt == we ? "end of input" : "'" + (this.terminals_[rt] || rt) + "'"), this.parseError(Zt, {
343
+ text: J.match,
344
+ token: this.terminals_[rt] || rt,
345
+ line: J.yylineno,
346
+ loc: Xt,
347
+ expected: Ct
348
+ });
349
+ }
350
+ if (ct[0] instanceof Array && ct.length > 1)
351
+ throw new Error("Parse Error: multiple actions possible at state: " + xt + ", token: " + rt);
352
+ switch (ct[0]) {
353
+ case 1:
354
+ k.push(rt), z.push(J.yytext), c.push(J.yylloc), k.push(ct[1]), rt = null, Se = J.yyleng, d = J.yytext, Dt = J.yylineno, Xt = J.yylloc;
355
+ break;
356
+ case 2:
357
+ if (Tt = this.productions_[ct[1]][1], Ot.$ = z[z.length - Tt], Ot._$ = {
358
+ first_line: c[c.length - (Tt || 1)].first_line,
359
+ last_line: c[c.length - 1].last_line,
360
+ first_column: c[c.length - (Tt || 1)].first_column,
361
+ last_column: c[c.length - 1].last_column
362
+ }, $e && (Ot._$.range = [
363
+ c[c.length - (Tt || 1)].range[0],
364
+ c[c.length - 1].range[1]
365
+ ]), Jt = this.performAction.apply(Ot, [
366
+ d,
367
+ Se,
368
+ Dt,
369
+ gt.yy,
370
+ ct[1],
371
+ z,
372
+ c
373
+ ].concat(Qe)), typeof Jt < "u")
374
+ return Jt;
375
+ Tt && (k = k.slice(0, -1 * Tt * 2), z = z.slice(0, -1 * Tt), c = c.slice(0, -1 * Tt)), k.push(this.productions_[ct[1]][0]), z.push(Ot.$), c.push(Ot._$), Pe = At[k[k.length - 2]][k[k.length - 1]], k.push(Pe);
376
+ break;
377
+ case 3:
378
+ return !0;
379
+ }
380
+ }
381
+ return !0;
382
+ }, "parse")
383
+ }, Je = /* @__PURE__ */ (function() {
384
+ var ut = {
385
+ EOF: 1,
386
+ parseError: /* @__PURE__ */ g(function(v, k) {
387
+ if (this.yy.parser)
388
+ this.yy.parser.parseError(v, k);
389
+ else
390
+ throw new Error(v);
391
+ }, "parseError"),
392
+ // resets the lexer, sets new input
393
+ setInput: /* @__PURE__ */ g(function(w, v) {
394
+ return this.yy = v || this.yy || {}, this._input = w, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
395
+ first_line: 1,
396
+ first_column: 0,
397
+ last_line: 1,
398
+ last_column: 0
399
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
400
+ }, "setInput"),
401
+ // consumes and returns one char from the input
402
+ input: /* @__PURE__ */ g(function() {
403
+ var w = this._input[0];
404
+ this.yytext += w, this.yyleng++, this.offset++, this.match += w, this.matched += w;
405
+ var v = w.match(/(?:\r\n?|\n).*/g);
406
+ return v ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), w;
407
+ }, "input"),
408
+ // unshifts one char (or a string) into the input
409
+ unput: /* @__PURE__ */ g(function(w) {
410
+ var v = w.length, k = w.split(/(?:\r\n?|\n)/g);
411
+ this._input = w + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - v), this.offset -= v;
412
+ var y = this.match.split(/(?:\r\n?|\n)/g);
413
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), k.length - 1 && (this.yylineno -= k.length - 1);
414
+ var z = this.yylloc.range;
415
+ return this.yylloc = {
416
+ first_line: this.yylloc.first_line,
417
+ last_line: this.yylineno + 1,
418
+ first_column: this.yylloc.first_column,
419
+ last_column: k ? (k.length === y.length ? this.yylloc.first_column : 0) + y[y.length - k.length].length - k[0].length : this.yylloc.first_column - v
420
+ }, this.options.ranges && (this.yylloc.range = [z[0], z[0] + this.yyleng - v]), this.yyleng = this.yytext.length, this;
421
+ }, "unput"),
422
+ // When called from action, caches matched text and appends it on next action
423
+ more: /* @__PURE__ */ g(function() {
424
+ return this._more = !0, this;
425
+ }, "more"),
426
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
427
+ reject: /* @__PURE__ */ g(function() {
428
+ if (this.options.backtrack_lexer)
429
+ this._backtrack = !0;
430
+ else
431
+ 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).
432
+ ` + this.showPosition(), {
433
+ text: "",
434
+ token: null,
435
+ line: this.yylineno
436
+ });
437
+ return this;
438
+ }, "reject"),
439
+ // retain first n characters of the match
440
+ less: /* @__PURE__ */ g(function(w) {
441
+ this.unput(this.match.slice(w));
442
+ }, "less"),
443
+ // displays already matched input, i.e. for error messages
444
+ pastInput: /* @__PURE__ */ g(function() {
445
+ var w = this.matched.substr(0, this.matched.length - this.match.length);
446
+ return (w.length > 20 ? "..." : "") + w.substr(-20).replace(/\n/g, "");
447
+ }, "pastInput"),
448
+ // displays upcoming input, i.e. for error messages
449
+ upcomingInput: /* @__PURE__ */ g(function() {
450
+ var w = this.match;
451
+ return w.length < 20 && (w += this._input.substr(0, 20 - w.length)), (w.substr(0, 20) + (w.length > 20 ? "..." : "")).replace(/\n/g, "");
452
+ }, "upcomingInput"),
453
+ // displays the character position where the lexing error occurred, i.e. for error messages
454
+ showPosition: /* @__PURE__ */ g(function() {
455
+ var w = this.pastInput(), v = new Array(w.length + 1).join("-");
456
+ return w + this.upcomingInput() + `
457
+ ` + v + "^";
458
+ }, "showPosition"),
459
+ // test the lexed token: return FALSE when not a match, otherwise return token
460
+ test_match: /* @__PURE__ */ g(function(w, v) {
461
+ var k, y, z;
462
+ if (this.options.backtrack_lexer && (z = {
463
+ yylineno: this.yylineno,
464
+ yylloc: {
465
+ first_line: this.yylloc.first_line,
466
+ last_line: this.last_line,
467
+ first_column: this.yylloc.first_column,
468
+ last_column: this.yylloc.last_column
469
+ },
470
+ yytext: this.yytext,
471
+ match: this.match,
472
+ matches: this.matches,
473
+ matched: this.matched,
474
+ yyleng: this.yyleng,
475
+ offset: this.offset,
476
+ _more: this._more,
477
+ _input: this._input,
478
+ yy: this.yy,
479
+ conditionStack: this.conditionStack.slice(0),
480
+ done: this.done
481
+ }, this.options.ranges && (z.yylloc.range = this.yylloc.range.slice(0))), y = w[0].match(/(?:\r\n?|\n).*/g), y && (this.yylineno += y.length), this.yylloc = {
482
+ first_line: this.yylloc.last_line,
483
+ last_line: this.yylineno + 1,
484
+ first_column: this.yylloc.last_column,
485
+ last_column: y ? y[y.length - 1].length - y[y.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + w[0].length
486
+ }, this.yytext += w[0], this.match += w[0], this.matches = w, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(w[0].length), this.matched += w[0], k = this.performAction.call(this, this.yy, this, v, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), k)
487
+ return k;
488
+ if (this._backtrack) {
489
+ for (var c in z)
490
+ this[c] = z[c];
491
+ return !1;
492
+ }
493
+ return !1;
494
+ }, "test_match"),
495
+ // return next match in input
496
+ next: /* @__PURE__ */ g(function() {
497
+ if (this.done)
498
+ return this.EOF;
499
+ this._input || (this.done = !0);
500
+ var w, v, k, y;
501
+ this._more || (this.yytext = "", this.match = "");
502
+ for (var z = this._currentRules(), c = 0; c < z.length; c++)
503
+ if (k = this._input.match(this.rules[z[c]]), k && (!v || k[0].length > v[0].length)) {
504
+ if (v = k, y = c, this.options.backtrack_lexer) {
505
+ if (w = this.test_match(k, z[c]), w !== !1)
506
+ return w;
507
+ if (this._backtrack) {
508
+ v = !1;
509
+ continue;
510
+ } else
511
+ return !1;
512
+ } else if (!this.options.flex)
513
+ break;
514
+ }
515
+ return v ? (w = this.test_match(v, z[y]), w !== !1 ? w : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
516
+ ` + this.showPosition(), {
517
+ text: "",
518
+ token: null,
519
+ line: this.yylineno
520
+ });
521
+ }, "next"),
522
+ // return next match that has a token
523
+ lex: /* @__PURE__ */ g(function() {
524
+ var v = this.next();
525
+ return v || this.lex();
526
+ }, "lex"),
527
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
528
+ begin: /* @__PURE__ */ g(function(v) {
529
+ this.conditionStack.push(v);
530
+ }, "begin"),
531
+ // pop the previously active lexer condition state off the condition stack
532
+ popState: /* @__PURE__ */ g(function() {
533
+ var v = this.conditionStack.length - 1;
534
+ return v > 0 ? this.conditionStack.pop() : this.conditionStack[0];
535
+ }, "popState"),
536
+ // produce the lexer rule set which is active for the currently active lexer condition state
537
+ _currentRules: /* @__PURE__ */ g(function() {
538
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
539
+ }, "_currentRules"),
540
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
541
+ topState: /* @__PURE__ */ g(function(v) {
542
+ return v = this.conditionStack.length - 1 - Math.abs(v || 0), v >= 0 ? this.conditionStack[v] : "INITIAL";
543
+ }, "topState"),
544
+ // alias for begin(condition)
545
+ pushState: /* @__PURE__ */ g(function(v) {
546
+ this.begin(v);
547
+ }, "pushState"),
548
+ // return the number of states currently on the stack
549
+ stateStackSize: /* @__PURE__ */ g(function() {
550
+ return this.conditionStack.length;
551
+ }, "stateStackSize"),
552
+ options: { "case-insensitive": !0 },
553
+ performAction: /* @__PURE__ */ g(function(v, k, y, z) {
554
+ switch (y) {
555
+ case 0:
556
+ return 5;
557
+ case 1:
558
+ break;
559
+ case 2:
560
+ break;
561
+ case 3:
562
+ break;
563
+ case 4:
564
+ break;
565
+ case 5:
566
+ break;
567
+ case 6:
568
+ return 20;
569
+ case 7:
570
+ return this.begin("CONFIG"), 75;
571
+ case 8:
572
+ return 76;
573
+ case 9:
574
+ return this.popState(), this.begin("ALIAS"), 77;
575
+ case 10:
576
+ return this.popState(), this.popState(), 77;
577
+ case 11:
578
+ return k.yytext = k.yytext.trim(), 73;
579
+ case 12:
580
+ return k.yytext = k.yytext.trim(), this.begin("ALIAS"), 73;
581
+ case 13:
582
+ return k.yytext = k.yytext.trim(), this.popState(), 73;
583
+ case 14:
584
+ return this.popState(), 10;
585
+ case 15:
586
+ return k.yytext = k.yytext.trim(), this.popState(), 10;
587
+ case 16:
588
+ return this.begin("LINE"), 15;
589
+ case 17:
590
+ return this.begin("ID"), 51;
591
+ case 18:
592
+ return this.begin("ID"), 53;
593
+ case 19:
594
+ return 14;
595
+ case 20:
596
+ return this.begin("ID"), 54;
597
+ case 21:
598
+ return this.popState(), this.popState(), this.begin("LINE"), 52;
599
+ case 22:
600
+ return this.popState(), this.popState(), 5;
601
+ case 23:
602
+ return this.begin("LINE"), 37;
603
+ case 24:
604
+ return this.begin("LINE"), 38;
605
+ case 25:
606
+ return this.begin("LINE"), 39;
607
+ case 26:
608
+ return this.begin("LINE"), 40;
609
+ case 27:
610
+ return this.begin("LINE"), 50;
611
+ case 28:
612
+ return this.begin("LINE"), 42;
613
+ case 29:
614
+ return this.begin("LINE"), 44;
615
+ case 30:
616
+ return this.begin("LINE"), 49;
617
+ case 31:
618
+ return this.begin("LINE"), 45;
619
+ case 32:
620
+ return this.begin("LINE"), 48;
621
+ case 33:
622
+ return this.begin("LINE"), 47;
623
+ case 34:
624
+ return this.popState(), 16;
625
+ case 35:
626
+ return 17;
627
+ case 36:
628
+ return 67;
629
+ case 37:
630
+ return 68;
631
+ case 38:
632
+ return 61;
633
+ case 39:
634
+ return 62;
635
+ case 40:
636
+ return 63;
637
+ case 41:
638
+ return 64;
639
+ case 42:
640
+ return 59;
641
+ case 43:
642
+ return 56;
643
+ case 44:
644
+ return this.begin("ID"), 22;
645
+ case 45:
646
+ return this.begin("ID"), 24;
647
+ case 46:
648
+ return 30;
649
+ case 47:
650
+ return 31;
651
+ case 48:
652
+ return this.begin("acc_title"), 32;
653
+ case 49:
654
+ return this.popState(), "acc_title_value";
655
+ case 50:
656
+ return this.begin("acc_descr"), 34;
657
+ case 51:
658
+ return this.popState(), "acc_descr_value";
659
+ case 52:
660
+ this.begin("acc_descr_multiline");
661
+ break;
662
+ case 53:
663
+ this.popState();
664
+ break;
665
+ case 54:
666
+ return "acc_descr_multiline_value";
667
+ case 55:
668
+ return 6;
669
+ case 56:
670
+ return 19;
671
+ case 57:
672
+ return 21;
673
+ case 58:
674
+ return 66;
675
+ case 59:
676
+ return 5;
677
+ case 60:
678
+ return k.yytext = k.yytext.trim(), 73;
679
+ case 61:
680
+ return 80;
681
+ case 62:
682
+ return 97;
683
+ case 63:
684
+ return 98;
685
+ case 64:
686
+ return 99;
687
+ case 65:
688
+ return 78;
689
+ case 66:
690
+ return 79;
691
+ case 67:
692
+ return 100;
693
+ case 68:
694
+ return 101;
695
+ case 69:
696
+ return 102;
697
+ case 70:
698
+ return 103;
699
+ case 71:
700
+ return 85;
701
+ case 72:
702
+ return 86;
703
+ case 73:
704
+ return 87;
705
+ case 74:
706
+ return 88;
707
+ case 75:
708
+ return 93;
709
+ case 76:
710
+ return 94;
711
+ case 77:
712
+ return 95;
713
+ case 78:
714
+ return 96;
715
+ case 79:
716
+ return 81;
717
+ case 80:
718
+ return 82;
719
+ case 81:
720
+ return 83;
721
+ case 82:
722
+ return 84;
723
+ case 83:
724
+ return 89;
725
+ case 84:
726
+ return 90;
727
+ case 85:
728
+ return 91;
729
+ case 86:
730
+ return 92;
731
+ case 87:
732
+ return 104;
733
+ case 88:
734
+ return 104;
735
+ case 89:
736
+ return 70;
737
+ case 90:
738
+ return 71;
739
+ case 91:
740
+ return 72;
741
+ case 92:
742
+ return 5;
743
+ case 93:
744
+ return 10;
745
+ }
746
+ }, "anonymous"),
747
+ 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]+(?=@\{))/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\b)/i, /^(?:link\b)/i, /^(?:properties\b)/i, /^(?:details\b)/i, /^(?:over\b)/i, /^(?:note\b)/i, /^(?:activate\b)/i, /^(?:deactivate\b)/i, /^(?:title\s[^#\n;]+)/i, /^(?:title:\s[^#\n;]+)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:sequenceDiagram\b)/i, /^(?:autonumber\b)/i, /^(?:off\b)/i, /^(?:,)/i, /^(?:;)/i, /^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i, /^(?:->>)/i, /^(?:<<->>)/i, /^(?:-->>)/i, /^(?:<<-->>)/i, /^(?:->)/i, /^(?:-->)/i, /^(?:-[x])/i, /^(?:--[x])/i, /^(?:-[\)])/i, /^(?:--[\)])/i, /^(?:--\|\\)/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],
748
+ 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 } }
749
+ };
750
+ return ut;
751
+ })();
752
+ Ut.lexer = Je;
753
+ function kt() {
754
+ this.yy = {};
755
+ }
756
+ return g(kt, "Parser"), kt.prototype = Ut, Ut.Parser = kt, new kt();
757
+ })();
758
+ $t.parser = $t;
759
+ var fr = $t, _r = {
760
+ SOLID: 0,
761
+ DOTTED: 1,
762
+ NOTE: 2,
763
+ SOLID_CROSS: 3,
764
+ DOTTED_CROSS: 4,
765
+ SOLID_OPEN: 5,
766
+ DOTTED_OPEN: 6,
767
+ LOOP_START: 10,
768
+ LOOP_END: 11,
769
+ ALT_START: 12,
770
+ ALT_ELSE: 13,
771
+ ALT_END: 14,
772
+ OPT_START: 15,
773
+ OPT_END: 16,
774
+ ACTIVE_START: 17,
775
+ ACTIVE_END: 18,
776
+ PAR_START: 19,
777
+ PAR_AND: 20,
778
+ PAR_END: 21,
779
+ RECT_START: 22,
780
+ RECT_END: 23,
781
+ SOLID_POINT: 24,
782
+ DOTTED_POINT: 25,
783
+ AUTONUMBER: 26,
784
+ CRITICAL_START: 27,
785
+ CRITICAL_OPTION: 28,
786
+ CRITICAL_END: 29,
787
+ BREAK_START: 30,
788
+ BREAK_END: 31,
789
+ PAR_OVER_START: 32,
790
+ BIDIRECTIONAL_SOLID: 33,
791
+ BIDIRECTIONAL_DOTTED: 34,
792
+ SOLID_TOP: 41,
793
+ SOLID_BOTTOM: 42,
794
+ STICK_TOP: 43,
795
+ STICK_BOTTOM: 44,
796
+ SOLID_ARROW_TOP_REVERSE: 45,
797
+ SOLID_ARROW_BOTTOM_REVERSE: 46,
798
+ STICK_ARROW_TOP_REVERSE: 47,
799
+ STICK_ARROW_BOTTOM_REVERSE: 48,
800
+ SOLID_TOP_DOTTED: 51,
801
+ SOLID_BOTTOM_DOTTED: 52,
802
+ STICK_TOP_DOTTED: 53,
803
+ STICK_BOTTOM_DOTTED: 54,
804
+ SOLID_ARROW_TOP_REVERSE_DOTTED: 55,
805
+ SOLID_ARROW_BOTTOM_REVERSE_DOTTED: 56,
806
+ STICK_ARROW_TOP_REVERSE_DOTTED: 57,
807
+ STICK_ARROW_BOTTOM_REVERSE_DOTTED: 58,
808
+ CENTRAL_CONNECTION: 59,
809
+ CENTRAL_CONNECTION_REVERSE: 60,
810
+ CENTRAL_CONNECTION_DUAL: 61
811
+ }, gr = {
812
+ FILLED: 0,
813
+ OPEN: 1
814
+ }, xr = {
815
+ LEFTOF: 0,
816
+ RIGHTOF: 1,
817
+ OVER: 2
818
+ }, Vt = {
819
+ ACTOR: "actor",
820
+ CONTROL: "control",
821
+ DATABASE: "database",
822
+ ENTITY: "entity"
823
+ }, Ir = class {
824
+ constructor() {
825
+ this.state = new ur(() => ({
826
+ prevActor: void 0,
827
+ actors: /* @__PURE__ */ new Map(),
828
+ createdActors: /* @__PURE__ */ new Map(),
829
+ destroyedActors: /* @__PURE__ */ new Map(),
830
+ boxes: [],
831
+ messages: [],
832
+ notes: [],
833
+ sequenceNumbersEnabled: !1,
834
+ wrapEnabled: void 0,
835
+ currentBox: void 0,
836
+ lastCreated: void 0,
837
+ lastDestroyed: void 0
838
+ })), this.setAccTitle = ke, this.setAccDescription = ar, this.setDiagramTitle = sr, this.getAccTitle = ir, this.getAccDescription = nr, this.getDiagramTitle = or, this.apply = this.apply.bind(this), this.parseBoxData = this.parseBoxData.bind(this), this.parseMessage = this.parseMessage.bind(this), this.clear(), this.setWrap($().wrap), this.LINETYPE = _r, this.ARROWTYPE = gr, this.PLACEMENT = xr;
839
+ }
840
+ static {
841
+ g(this, "SequenceDB");
842
+ }
843
+ addBox(e) {
844
+ this.state.records.boxes.push({
845
+ name: e.text,
846
+ wrap: e.wrap ?? this.autoWrap(),
847
+ fill: e.color,
848
+ actorKeys: []
849
+ }), this.state.records.currentBox = this.state.records.boxes.slice(-1)[0];
850
+ }
851
+ addActor(e, t, a, r, i) {
852
+ let o = this.state.records.currentBox, s;
853
+ if (i !== void 0) {
854
+ let E;
855
+ i.includes(`
856
+ `) ? E = i + `
857
+ ` : E = `{
858
+ ` + i + `
859
+ }`, s = cr(E, { schema: lr });
860
+ }
861
+ r = s?.type ?? r, s?.alias && (!a || a.text === t) && (a = { text: s.alias, wrap: a?.wrap, type: r });
862
+ const n = this.state.records.actors.get(e);
863
+ if (n) {
864
+ if (this.state.records.currentBox && n.box && this.state.records.currentBox !== n.box)
865
+ throw new Error(
866
+ `A same participant should only be defined in one Box: ${n.name} can't be in '${n.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`
867
+ );
868
+ if (o = n.box ? n.box : this.state.records.currentBox, n.box = o, n && t === n.name && a == null)
869
+ return;
870
+ }
871
+ if (a?.text == null && (a = { text: t, type: r }), (r == null || a.text == null) && (a = { text: t, type: r }), this.state.records.actors.set(e, {
872
+ box: o,
873
+ name: t,
874
+ description: a.text,
875
+ wrap: a.wrap ?? this.autoWrap(),
876
+ prevActor: this.state.records.prevActor,
877
+ links: {},
878
+ properties: {},
879
+ actorCnt: null,
880
+ rectData: null,
881
+ type: r ?? "participant"
882
+ }), this.state.records.prevActor) {
883
+ const E = this.state.records.actors.get(this.state.records.prevActor);
884
+ E && (E.nextActor = e);
885
+ }
886
+ this.state.records.currentBox && this.state.records.currentBox.actorKeys.push(e), this.state.records.prevActor = e;
887
+ }
888
+ activationCount(e) {
889
+ let t, a = 0;
890
+ if (!e)
891
+ return 0;
892
+ for (t = 0; t < this.state.records.messages.length; t++)
893
+ this.state.records.messages[t].type === this.LINETYPE.ACTIVE_START && this.state.records.messages[t].from === e && a++, this.state.records.messages[t].type === this.LINETYPE.ACTIVE_END && this.state.records.messages[t].from === e && a--;
894
+ return a;
895
+ }
896
+ addMessage(e, t, a, r) {
897
+ this.state.records.messages.push({
898
+ id: this.state.records.messages.length.toString(),
899
+ from: e,
900
+ to: t,
901
+ message: a.text,
902
+ wrap: a.wrap ?? this.autoWrap(),
903
+ answer: r
904
+ });
905
+ }
906
+ addSignal(e, t, a, r, i = !1, o) {
907
+ if (r === this.LINETYPE.ACTIVE_END && this.activationCount(e ?? "") < 1) {
908
+ const n = new Error("Trying to inactivate an inactive participant (" + e + ")");
909
+ throw n.hash = {
910
+ text: "->>-",
911
+ token: "->>-",
912
+ line: "1",
913
+ loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
914
+ expected: ["'ACTIVE_PARTICIPANT'"]
915
+ }, n;
916
+ }
917
+ return this.state.records.messages.push({
918
+ id: this.state.records.messages.length.toString(),
919
+ from: e,
920
+ to: t,
921
+ message: a?.text ?? "",
922
+ wrap: a?.wrap ?? this.autoWrap(),
923
+ type: r,
924
+ activate: i,
925
+ centralConnection: o ?? 0
926
+ }), !0;
927
+ }
928
+ hasAtLeastOneBox() {
929
+ return this.state.records.boxes.length > 0;
930
+ }
931
+ hasAtLeastOneBoxWithTitle() {
932
+ return this.state.records.boxes.some((e) => e.name);
933
+ }
934
+ getMessages() {
935
+ return this.state.records.messages;
936
+ }
937
+ getBoxes() {
938
+ return this.state.records.boxes;
939
+ }
940
+ getActors() {
941
+ return this.state.records.actors;
942
+ }
943
+ getCreatedActors() {
944
+ return this.state.records.createdActors;
945
+ }
946
+ getDestroyedActors() {
947
+ return this.state.records.destroyedActors;
948
+ }
949
+ getActor(e) {
950
+ return this.state.records.actors.get(e);
951
+ }
952
+ getActorKeys() {
953
+ return [...this.state.records.actors.keys()];
954
+ }
955
+ enableSequenceNumbers() {
956
+ this.state.records.sequenceNumbersEnabled = !0;
957
+ }
958
+ disableSequenceNumbers() {
959
+ this.state.records.sequenceNumbersEnabled = !1;
960
+ }
961
+ showSequenceNumbers() {
962
+ return this.state.records.sequenceNumbersEnabled;
963
+ }
964
+ setWrap(e) {
965
+ this.state.records.wrapEnabled = e;
966
+ }
967
+ extractWrap(e) {
968
+ if (e === void 0)
969
+ return {};
970
+ e = e.trim();
971
+ const t = /^:?wrap:/.exec(e) !== null ? !0 : /^:?nowrap:/.exec(e) !== null ? !1 : void 0;
972
+ return { cleanedText: (t === void 0 ? e : e.replace(/^:?(?:no)?wrap:/, "")).trim(), wrap: t };
973
+ }
974
+ autoWrap() {
975
+ return this.state.records.wrapEnabled !== void 0 ? this.state.records.wrapEnabled : $().sequence?.wrap ?? !1;
976
+ }
977
+ clear() {
978
+ this.state.reset(), hr();
979
+ }
980
+ parseMessage(e) {
981
+ const t = e.trim(), { wrap: a, cleanedText: r } = this.extractWrap(t), i = {
982
+ text: r,
983
+ wrap: a
984
+ };
985
+ return at.debug(`parseMessage: ${JSON.stringify(i)}`), i;
986
+ }
987
+ // We expect the box statement to be color first then description
988
+ // The color can be rgb,rgba,hsl,hsla, or css code names #hex codes are not supported for now because of the way the char # is handled
989
+ // We extract first segment as color, the rest of the line is considered as text
990
+ parseBoxData(e) {
991
+ const t = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e);
992
+ let a = t?.[1] ? t[1].trim() : "transparent", r = t?.[2] ? t[2].trim() : void 0;
993
+ if (window?.CSS)
994
+ window.CSS.supports("color", a) || (a = "transparent", r = e.trim());
995
+ else {
996
+ const s = new Option().style;
997
+ s.color = a, s.color !== a && (a = "transparent", r = e.trim());
998
+ }
999
+ const { wrap: i, cleanedText: o } = this.extractWrap(r);
1000
+ return {
1001
+ text: o ? Bt(o, $()) : void 0,
1002
+ color: a,
1003
+ wrap: i
1004
+ };
1005
+ }
1006
+ addNote(e, t, a) {
1007
+ const r = {
1008
+ actor: e,
1009
+ placement: t,
1010
+ message: a.text,
1011
+ wrap: a.wrap ?? this.autoWrap()
1012
+ }, i = [].concat(e, e);
1013
+ this.state.records.notes.push(r), this.state.records.messages.push({
1014
+ id: this.state.records.messages.length.toString(),
1015
+ from: i[0],
1016
+ to: i[1],
1017
+ message: a.text,
1018
+ wrap: a.wrap ?? this.autoWrap(),
1019
+ type: this.LINETYPE.NOTE,
1020
+ placement: t
1021
+ });
1022
+ }
1023
+ addLinks(e, t) {
1024
+ const a = this.getActor(e);
1025
+ try {
1026
+ let r = Bt(t.text, $());
1027
+ r = r.replace(/&equals;/g, "="), r = r.replace(/&amp;/g, "&");
1028
+ const i = JSON.parse(r);
1029
+ this.insertLinks(a, i);
1030
+ } catch (r) {
1031
+ at.error("error while parsing actor link text", r);
1032
+ }
1033
+ }
1034
+ addALink(e, t) {
1035
+ const a = this.getActor(e);
1036
+ try {
1037
+ const r = {};
1038
+ let i = Bt(t.text, $());
1039
+ const o = i.indexOf("@");
1040
+ i = i.replace(/&equals;/g, "="), i = i.replace(/&amp;/g, "&");
1041
+ const s = i.slice(0, o - 1).trim(), n = i.slice(o + 1).trim();
1042
+ r[s] = n, this.insertLinks(a, r);
1043
+ } catch (r) {
1044
+ at.error("error while parsing actor link text", r);
1045
+ }
1046
+ }
1047
+ insertLinks(e, t) {
1048
+ if (e.links == null)
1049
+ e.links = t;
1050
+ else
1051
+ for (const a in t)
1052
+ e.links[a] = t[a];
1053
+ }
1054
+ addProperties(e, t) {
1055
+ const a = this.getActor(e);
1056
+ try {
1057
+ const r = Bt(t.text, $()), i = JSON.parse(r);
1058
+ this.insertProperties(a, i);
1059
+ } catch (r) {
1060
+ at.error("error while parsing actor properties text", r);
1061
+ }
1062
+ }
1063
+ insertProperties(e, t) {
1064
+ if (e.properties == null)
1065
+ e.properties = t;
1066
+ else
1067
+ for (const a in t)
1068
+ e.properties[a] = t[a];
1069
+ }
1070
+ boxEnd() {
1071
+ this.state.records.currentBox = void 0;
1072
+ }
1073
+ addDetails(e, t) {
1074
+ const a = this.getActor(e), r = document.getElementById(t.text);
1075
+ try {
1076
+ const i = r.innerHTML, o = JSON.parse(i);
1077
+ o.properties && this.insertProperties(a, o.properties), o.links && this.insertLinks(a, o.links);
1078
+ } catch (i) {
1079
+ at.error("error while parsing actor details text", i);
1080
+ }
1081
+ }
1082
+ getActorProperty(e, t) {
1083
+ if (e?.properties !== void 0)
1084
+ return e.properties[t];
1085
+ }
1086
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-redundant-type-constituents
1087
+ apply(e) {
1088
+ if (Array.isArray(e))
1089
+ e.forEach((t) => {
1090
+ this.apply(t);
1091
+ });
1092
+ else
1093
+ switch (e.type) {
1094
+ case "sequenceIndex":
1095
+ this.state.records.messages.push({
1096
+ id: this.state.records.messages.length.toString(),
1097
+ from: void 0,
1098
+ to: void 0,
1099
+ message: {
1100
+ start: e.sequenceIndex,
1101
+ step: e.sequenceIndexStep,
1102
+ visible: e.sequenceVisible
1103
+ },
1104
+ wrap: !1,
1105
+ type: e.signalType
1106
+ });
1107
+ break;
1108
+ case "addParticipant":
1109
+ this.addActor(e.actor, e.actor, e.description, e.draw, e.config);
1110
+ break;
1111
+ case "createParticipant":
1112
+ if (this.state.records.actors.has(e.actor))
1113
+ throw new Error(
1114
+ "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"
1115
+ );
1116
+ this.state.records.lastCreated = e.actor, this.addActor(e.actor, e.actor, e.description, e.draw, e.config), this.state.records.createdActors.set(e.actor, this.state.records.messages.length);
1117
+ break;
1118
+ case "destroyParticipant":
1119
+ this.state.records.lastDestroyed = e.actor, this.state.records.destroyedActors.set(e.actor, this.state.records.messages.length);
1120
+ break;
1121
+ case "activeStart":
1122
+ this.addSignal(e.actor, void 0, void 0, e.signalType);
1123
+ break;
1124
+ case "centralConnection":
1125
+ this.addSignal(e.actor, void 0, void 0, e.signalType);
1126
+ break;
1127
+ case "centralConnectionReverse":
1128
+ this.addSignal(e.actor, void 0, void 0, e.signalType);
1129
+ break;
1130
+ case "activeEnd":
1131
+ this.addSignal(e.actor, void 0, void 0, e.signalType);
1132
+ break;
1133
+ case "addNote":
1134
+ this.addNote(e.actor, e.placement, e.text);
1135
+ break;
1136
+ case "addLinks":
1137
+ this.addLinks(e.actor, e.text);
1138
+ break;
1139
+ case "addALink":
1140
+ this.addALink(e.actor, e.text);
1141
+ break;
1142
+ case "addProperties":
1143
+ this.addProperties(e.actor, e.text);
1144
+ break;
1145
+ case "addDetails":
1146
+ this.addDetails(e.actor, e.text);
1147
+ break;
1148
+ case "addMessage":
1149
+ if (this.state.records.lastCreated) {
1150
+ if (e.to !== this.state.records.lastCreated)
1151
+ throw new Error(
1152
+ "The created participant " + this.state.records.lastCreated.name + " does not have an associated creating message after its declaration. Please check the sequence diagram."
1153
+ );
1154
+ this.state.records.lastCreated = void 0;
1155
+ } else if (this.state.records.lastDestroyed) {
1156
+ if (e.to !== this.state.records.lastDestroyed && e.from !== this.state.records.lastDestroyed)
1157
+ throw new Error(
1158
+ "The destroyed participant " + this.state.records.lastDestroyed.name + " does not have an associated destroying message after its declaration. Please check the sequence diagram."
1159
+ );
1160
+ this.state.records.lastDestroyed = void 0;
1161
+ }
1162
+ this.addSignal(
1163
+ e.from,
1164
+ e.to,
1165
+ e.msg,
1166
+ e.signalType,
1167
+ e.activate,
1168
+ e.centralConnection
1169
+ );
1170
+ break;
1171
+ case "boxStart":
1172
+ this.addBox(e.boxData);
1173
+ break;
1174
+ case "boxEnd":
1175
+ this.boxEnd();
1176
+ break;
1177
+ case "loopStart":
1178
+ this.addSignal(void 0, void 0, e.loopText, e.signalType);
1179
+ break;
1180
+ case "loopEnd":
1181
+ this.addSignal(void 0, void 0, void 0, e.signalType);
1182
+ break;
1183
+ case "rectStart":
1184
+ this.addSignal(void 0, void 0, e.color, e.signalType);
1185
+ break;
1186
+ case "rectEnd":
1187
+ this.addSignal(void 0, void 0, void 0, e.signalType);
1188
+ break;
1189
+ case "optStart":
1190
+ this.addSignal(void 0, void 0, e.optText, e.signalType);
1191
+ break;
1192
+ case "optEnd":
1193
+ this.addSignal(void 0, void 0, void 0, e.signalType);
1194
+ break;
1195
+ case "altStart":
1196
+ this.addSignal(void 0, void 0, e.altText, e.signalType);
1197
+ break;
1198
+ case "else":
1199
+ this.addSignal(void 0, void 0, e.altText, e.signalType);
1200
+ break;
1201
+ case "altEnd":
1202
+ this.addSignal(void 0, void 0, void 0, e.signalType);
1203
+ break;
1204
+ case "setAccTitle":
1205
+ ke(e.text);
1206
+ break;
1207
+ case "parStart":
1208
+ this.addSignal(void 0, void 0, e.parText, e.signalType);
1209
+ break;
1210
+ case "and":
1211
+ this.addSignal(void 0, void 0, e.parText, e.signalType);
1212
+ break;
1213
+ case "parEnd":
1214
+ this.addSignal(void 0, void 0, void 0, e.signalType);
1215
+ break;
1216
+ case "criticalStart":
1217
+ this.addSignal(void 0, void 0, e.criticalText, e.signalType);
1218
+ break;
1219
+ case "option":
1220
+ this.addSignal(void 0, void 0, e.optionText, e.signalType);
1221
+ break;
1222
+ case "criticalEnd":
1223
+ this.addSignal(void 0, void 0, void 0, e.signalType);
1224
+ break;
1225
+ case "breakStart":
1226
+ this.addSignal(void 0, void 0, e.breakText, e.signalType);
1227
+ break;
1228
+ case "breakEnd":
1229
+ this.addSignal(void 0, void 0, void 0, e.signalType);
1230
+ break;
1231
+ }
1232
+ }
1233
+ getConfig() {
1234
+ return $().sequence;
1235
+ }
1236
+ }, yr = /* @__PURE__ */ g((e) => {
1237
+ const t = e.dropShadow ?? "none", { look: a } = $();
1238
+ return `.actor {
1239
+ stroke: ${e.actorBorder};
1240
+ fill: ${e.actorBkg};
1241
+ stroke-width: ${e.strokeWidth ?? 1};
1242
+ }
1243
+
1244
+ rect.actor.outer-path[data-look="neo"] {
1245
+ filter: ${t};
1246
+ }
1247
+
1248
+ rect.note[data-look="neo"] {
1249
+ stroke:${e.noteBorderColor};
1250
+ fill:${e.noteBkgColor};
1251
+ filter: ${t};
1252
+ }
1253
+
1254
+ text.actor > tspan {
1255
+ fill: ${e.actorTextColor};
1256
+ stroke: none;
1257
+ }
1258
+
1259
+ .actor-line {
1260
+ stroke: ${e.actorLineColor};
1261
+ }
1262
+
1263
+ .innerArc {
1264
+ stroke-width: 1.5;
1265
+ stroke-dasharray: none;
1266
+ }
1267
+
1268
+ .messageLine0 {
1269
+ stroke-width: 1.5;
1270
+ stroke-dasharray: none;
1271
+ stroke: ${e.signalColor};
1272
+ }
1273
+
1274
+ .messageLine1 {
1275
+ stroke-width: 1.5;
1276
+ stroke-dasharray: 2, 2;
1277
+ stroke: ${e.signalColor};
1278
+ }
1279
+
1280
+ [id$="-arrowhead"] path {
1281
+ fill: ${e.signalColor};
1282
+ stroke: ${e.signalColor};
1283
+ }
1284
+
1285
+ .sequenceNumber {
1286
+ fill: ${e.sequenceNumberColor};
1287
+ }
1288
+
1289
+ [id$="-sequencenumber"] {
1290
+ fill: ${e.signalColor};
1291
+ }
1292
+
1293
+ [id$="-crosshead"] path {
1294
+ fill: ${e.signalColor};
1295
+ stroke: ${e.signalColor};
1296
+ }
1297
+
1298
+ .messageText {
1299
+ fill: ${e.signalTextColor};
1300
+ stroke: none;
1301
+ }
1302
+
1303
+ .labelBox {
1304
+ stroke: ${e.labelBoxBorderColor};
1305
+ fill: ${e.labelBoxBkgColor};
1306
+ filter: ${a === "neo" ? t : "none"};
1307
+ }
1308
+
1309
+ .labelText, .labelText > tspan {
1310
+ fill: ${e.labelTextColor};
1311
+ stroke: none;
1312
+ }
1313
+
1314
+ .loopText, .loopText > tspan {
1315
+ fill: ${e.loopTextColor};
1316
+ stroke: none;
1317
+ }
1318
+
1319
+ .sectionTitle, .sectionTitle > tspan {
1320
+ fill: ${e.loopTextColor};
1321
+ stroke: none;
1322
+ }
1323
+
1324
+ .loopLine {
1325
+ stroke-width: 2px;
1326
+ stroke-dasharray: 2, 2;
1327
+ stroke: ${e.labelBoxBorderColor};
1328
+ fill: ${e.labelBoxBorderColor};
1329
+ }
1330
+
1331
+ .note {
1332
+ //stroke: #decc93;
1333
+ stroke: ${e.noteBorderColor};
1334
+ fill: ${e.noteBkgColor};
1335
+ }
1336
+
1337
+ .noteText, .noteText > tspan {
1338
+ fill: ${e.noteTextColor};
1339
+ stroke: none;
1340
+ ${e.noteFontWeight ? `font-weight: ${e.noteFontWeight};` : ""}
1341
+ }
1342
+
1343
+ .activation0 {
1344
+ fill: ${e.activationBkgColor};
1345
+ stroke: ${e.activationBorderColor};
1346
+ }
1347
+
1348
+ .activation1 {
1349
+ fill: ${e.activationBkgColor};
1350
+ stroke: ${e.activationBorderColor};
1351
+ }
1352
+
1353
+ .activation2 {
1354
+ fill: ${e.activationBkgColor};
1355
+ stroke: ${e.activationBorderColor};
1356
+ }
1357
+
1358
+ .actorPopupMenu {
1359
+ position: absolute;
1360
+ }
1361
+
1362
+ .actorPopupMenuPanel {
1363
+ position: absolute;
1364
+ fill: ${e.actorBkg};
1365
+ box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
1366
+ filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
1367
+ }
1368
+ .actor-man circle, line {
1369
+ fill: ${e.actorBkg};
1370
+ stroke-width: 2px;
1371
+ }
1372
+
1373
+ g rect.rect {
1374
+ filter: ${t};
1375
+ stroke: ${e.nodeBorder};
1376
+ }
1377
+ `;
1378
+ }, "getStyles"), Rr = yr, It = 36, ft = "actor-top", _t = "actor-bottom", Kt = "actor-box", yt = "actor-man", pt = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), St = /* @__PURE__ */ g(function(e, t) {
1379
+ const a = Er(e, t);
1380
+ return Yt().look === "neo" && a.attr("data-look", "neo"), a;
1381
+ }, "drawRect"), Or = /* @__PURE__ */ g(function(e, t, a, r, i) {
1382
+ if (t.links === void 0 || t.links === null || Object.keys(t.links).length === 0)
1383
+ return { height: 0, width: 0 };
1384
+ const o = t.links, s = t.actorCnt, n = t.rectData;
1385
+ var E = "none";
1386
+ i && (E = "block !important");
1387
+ const T = e.append("g");
1388
+ T.attr("id", "actor" + s + "_popup"), T.attr("class", "actorPopupMenu"), T.attr("display", E);
1389
+ var l = "";
1390
+ n.class !== void 0 && (l = " " + n.class);
1391
+ let x = n.width > a ? n.width : a;
1392
+ const u = T.append("rect");
1393
+ if (u.attr("class", "actorPopupMenuPanel" + l), u.attr("x", n.x), u.attr("y", n.height), u.attr("fill", n.fill), u.attr("stroke", n.stroke), u.attr("width", x), u.attr("height", n.height), u.attr("rx", n.rx), u.attr("ry", n.ry), o != null) {
1394
+ var O = 20;
1395
+ for (let _ in o) {
1396
+ var p = T.append("a"), f = Ce.sanitizeUrl(o[_]);
1397
+ p.attr("xlink:href", f), p.attr("target", "_blank"), Ur(r)(
1398
+ _,
1399
+ p,
1400
+ n.x + 10,
1401
+ n.height + O,
1402
+ x,
1403
+ 20,
1404
+ { class: "actor" },
1405
+ r
1406
+ ), O += 30;
1407
+ }
1408
+ }
1409
+ return u.attr("height", O), { height: n.height + O, width: x };
1410
+ }, "drawPopup"), Ft = /* @__PURE__ */ g(function(e) {
1411
+ return "var pu = document.getElementById('" + e + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
1412
+ }, "popupMenuToggle"), Wt = /* @__PURE__ */ g(async function(e, t, a = null) {
1413
+ let r = e.append("foreignObject");
1414
+ const i = await Be(t.text, Yt()), s = r.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();
1415
+ if (r.attr("height", Math.round(s.height)).attr("width", Math.round(s.width)), t.class === "noteText") {
1416
+ const n = e.node().firstChild;
1417
+ n.setAttribute("height", s.height + 2 * t.textMargin);
1418
+ const E = n.getBBox();
1419
+ r.attr("x", Math.round(E.x + E.width / 2 - s.width / 2)).attr("y", Math.round(E.y + E.height / 2 - s.height / 2));
1420
+ } else if (a) {
1421
+ let { startx: n, stopx: E, starty: T } = a;
1422
+ if (n > E) {
1423
+ const l = n;
1424
+ n = E, E = l;
1425
+ }
1426
+ r.attr("x", Math.round(n + Math.abs(n - E) / 2 - s.width / 2)), t.class === "loopText" ? r.attr("y", Math.round(T)) : r.attr("y", Math.round(T - s.height));
1427
+ }
1428
+ return [r];
1429
+ }, "drawKatex"), bt = /* @__PURE__ */ g(function(e, t) {
1430
+ let a = 0, r = 0;
1431
+ const i = t.text.split(P.lineBreakRegex), [o, s] = Me(t.fontSize);
1432
+ let n = [], E = 0, T = /* @__PURE__ */ g(() => t.y, "yfunc");
1433
+ if (t.valign !== void 0 && t.textMargin !== void 0 && t.textMargin > 0)
1434
+ switch (t.valign) {
1435
+ case "top":
1436
+ case "start":
1437
+ T = /* @__PURE__ */ g(() => Math.round(t.y + t.textMargin), "yfunc");
1438
+ break;
1439
+ case "middle":
1440
+ case "center":
1441
+ T = /* @__PURE__ */ g(() => Math.round(t.y + (a + r + t.textMargin) / 2), "yfunc");
1442
+ break;
1443
+ case "bottom":
1444
+ case "end":
1445
+ T = /* @__PURE__ */ g(() => Math.round(
1446
+ t.y + (a + r + 2 * t.textMargin) - t.textMargin
1447
+ ), "yfunc");
1448
+ break;
1449
+ }
1450
+ if (t.anchor !== void 0 && t.textMargin !== void 0 && t.width !== void 0)
1451
+ switch (t.anchor) {
1452
+ case "left":
1453
+ case "start":
1454
+ t.x = Math.round(t.x + t.textMargin), t.anchor = "start", t.dominantBaseline = "middle", t.alignmentBaseline = "middle";
1455
+ break;
1456
+ case "middle":
1457
+ case "center":
1458
+ t.x = Math.round(t.x + t.width / 2), t.anchor = "middle", t.dominantBaseline = "middle", t.alignmentBaseline = "middle";
1459
+ break;
1460
+ case "right":
1461
+ case "end":
1462
+ t.x = Math.round(t.x + t.width - t.textMargin), t.anchor = "end", t.dominantBaseline = "middle", t.alignmentBaseline = "middle";
1463
+ break;
1464
+ }
1465
+ for (let [l, x] of i.entries()) {
1466
+ t.textMargin !== void 0 && t.textMargin === 0 && o !== void 0 && (E = l * o);
1467
+ const u = e.append("text");
1468
+ u.attr("x", t.x), u.attr("y", T()), t.anchor !== void 0 && u.attr("text-anchor", t.anchor).attr("dominant-baseline", t.dominantBaseline).attr("alignment-baseline", t.alignmentBaseline), t.fontFamily !== void 0 && u.style("font-family", t.fontFamily), s !== void 0 && u.style("font-size", s), t.fontWeight !== void 0 && u.style("font-weight", t.fontWeight), t.fill !== void 0 && u.attr("fill", t.fill), t.class !== void 0 && u.attr("class", t.class), t.dy !== void 0 ? u.attr("dy", t.dy) : E !== 0 && u.attr("dy", E);
1469
+ const O = x || dr;
1470
+ if (t.tspan) {
1471
+ const p = u.append("tspan");
1472
+ p.attr("x", t.x), t.fill !== void 0 && p.attr("fill", t.fill), p.text(O);
1473
+ } else
1474
+ u.text(O);
1475
+ t.valign !== void 0 && t.textMargin !== void 0 && t.textMargin > 0 && (r += (u._groups || u)[0][0].getBBox().height, a = r), n.push(u);
1476
+ }
1477
+ return n;
1478
+ }, "drawText"), Ve = /* @__PURE__ */ g(function(e, t) {
1479
+ function a(i, o, s, n, E) {
1480
+ return i + "," + o + " " + (i + s) + "," + o + " " + (i + s) + "," + (o + n - E) + " " + (i + s - E * 1.2) + "," + (o + n) + " " + i + "," + (o + n);
1481
+ }
1482
+ g(a, "genPoints");
1483
+ const r = e.append("polygon");
1484
+ return r.attr("points", a(t.x, t.y, t.width, t.height, 7)), r.attr("class", "labelBox"), t.y = t.y + t.height / 2, bt(e, t), r;
1485
+ }, "drawLabel"), M = -1, Ye = /* @__PURE__ */ g((e, t, a, r) => {
1486
+ e.select && a.forEach((i) => {
1487
+ const o = t.get(i), s = e.select("#actor" + o.actorCnt);
1488
+ !r.mirrorActors && o.stopy ? s.attr("y2", o.stopy + o.height / 2) : r.mirrorActors && s.attr("y2", o.stopy);
1489
+ });
1490
+ }, "fixLifeLineHeights"), Lr = /* @__PURE__ */ g(function(e, t, a, r, i) {
1491
+ const o = r ? t.stopy : t.starty, s = t.x + t.width / 2, n = o + t.height, { look: E, theme: T, themeVariables: l } = a, { bkgColorArray: x, borderColorArray: u } = l, O = e.append("g").lower();
1492
+ var p = O;
1493
+ r || (M++, Object.keys(t.links || {}).length && !a.forceMenus && p.attr("onclick", Ft(`actor${M}_popup`)).attr("cursor", "pointer"), p.append("line").attr("id", "actor" + M).attr("x1", s).attr("y1", n).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), p = O.append("g"), t.actorCnt = M, t.links != null && p.attr("id", "root-" + M), E === "neo" && p.attr("data-look", "neo"));
1494
+ const f = dt();
1495
+ var _ = "actor";
1496
+ t.properties?.class ? _ = t.properties.class : f.fill = "#eaeaea", r ? _ += ` ${_t}` : _ += ` ${ft}`, f.x = t.x, f.y = o, f.width = t.width, f.height = t.height, f.class = _, f.rx = 3, f.ry = 3, f.name = t.name, E === "neo" && (f.rx = 6, f.ry = 6);
1497
+ const I = St(p, f), L = i.get(t.name) ?? 0;
1498
+ if (pt.has(T) && (I.style("stroke", u[L % u.length]), I.style("fill", x[L % u.length])), E === "neo" && I.attr("filter", "url(#drop-shadow)"), t.rectData = f, t.properties?.icon) {
1499
+ const S = t.properties.icon.trim();
1500
+ S.charAt(0) === "@" ? re(p, f.x + f.width - 20, f.y + 10, S.substr(1)) : ae(p, f.x + f.width - 20, f.y + 10, S);
1501
+ }
1502
+ r || (p.attr("data-et", "participant"), p.attr("data-type", "participant"), p.attr("data-id", t.name)), Et(a, Q(t.description))(
1503
+ t.description,
1504
+ p,
1505
+ f.x,
1506
+ f.y,
1507
+ f.width,
1508
+ f.height,
1509
+ { class: `actor ${Kt}` },
1510
+ a
1511
+ );
1512
+ let b = t.height;
1513
+ if (I.node) {
1514
+ const S = I.node().getBBox();
1515
+ t.height = S.height, b = S.height;
1516
+ }
1517
+ return b;
1518
+ }, "drawActorTypeParticipant"), br = /* @__PURE__ */ g(function(e, t, a, r, i) {
1519
+ const o = r ? t.stopy : t.starty, s = t.x + t.width / 2, n = o + t.height, { look: E, theme: T, themeVariables: l } = a, { bkgColorArray: x, borderColorArray: u } = l, O = e.append("g").lower();
1520
+ var p = O;
1521
+ r || (M++, Object.keys(t.links || {}).length && !a.forceMenus && p.attr("onclick", Ft(`actor${M}_popup`)).attr("cursor", "pointer"), p.append("line").attr("id", "actor" + M).attr("x1", s).attr("y1", n).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), p = O.append("g"), t.actorCnt = M, t.links != null && p.attr("id", "root-" + M), E === "neo" && p.attr("data-look", "neo"));
1522
+ const f = dt();
1523
+ var _ = "actor";
1524
+ t.properties?.class ? _ = t.properties.class : f.fill = "#eaeaea", r ? _ += ` ${_t}` : _ += ` ${ft}`, f.x = t.x, f.y = o, f.width = t.width, f.height = t.height, f.class = _, f.name = t.name;
1525
+ const I = 6, L = {
1526
+ ...f,
1527
+ x: f.x + -I,
1528
+ y: f.y + +I,
1529
+ class: "actor"
1530
+ }, b = St(p, f), S = St(p, L);
1531
+ t.rectData = f, E === "neo" && p.attr("filter", "url(#drop-shadow)");
1532
+ const A = i.get(t.name) ?? 0;
1533
+ if (pt.has(T) && (b.style("stroke", u[A % u.length]), b.style("fill", x[A % u.length]), S.style("stroke", u[A % u.length]), S.style("fill", x[A % u.length])), t.properties?.icon) {
1534
+ const B = t.properties.icon.trim();
1535
+ B.charAt(0) === "@" ? re(p, f.x + f.width - 20, f.y + 10, B.substr(1)) : ae(p, f.x + f.width - 20, f.y + 10, B);
1536
+ }
1537
+ Et(a, Q(t.description))(
1538
+ t.description,
1539
+ p,
1540
+ f.x - I,
1541
+ f.y + I,
1542
+ f.width,
1543
+ f.height,
1544
+ { class: `actor ${Kt}` },
1545
+ a
1546
+ );
1547
+ let N = t.height;
1548
+ if (b.node) {
1549
+ const B = b.node().getBBox();
1550
+ t.height = B.height, N = B.height;
1551
+ }
1552
+ return r || (p.attr("data-et", "participant"), p.attr("data-type", "collections"), p.attr("data-id", t.name)), N;
1553
+ }, "drawActorTypeCollections"), mr = /* @__PURE__ */ g(function(e, t, a, r, i) {
1554
+ const o = r ? t.stopy : t.starty, s = t.x + t.width / 2, n = o + t.height, { look: E, theme: T, themeVariables: l } = a, { bkgColorArray: x, borderColorArray: u } = l, O = e.append("g").lower();
1555
+ let p = O;
1556
+ r || (M++, Object.keys(t.links || {}).length && !a.forceMenus && p.attr("onclick", Ft(`actor${M}_popup`)).attr("cursor", "pointer"), p.append("line").attr("id", "actor" + M).attr("x1", s).attr("y1", n).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), p = O.append("g"), t.actorCnt = M, t.links != null && p.attr("id", "root-" + M), E === "neo" && p.attr("data-look", "neo"));
1557
+ const f = dt();
1558
+ let _ = "actor";
1559
+ t.properties?.class ? _ = t.properties.class : f.fill = "#eaeaea", r ? _ += ` ${_t}` : _ += ` ${ft}`, p.attr("class", _), f.x = t.x, f.y = o, f.width = t.width, f.height = t.height, f.name = t.name;
1560
+ const I = f.height / 2, L = I / (2.5 + f.height / 50), b = p.append("g"), S = p.append("g"), A = `M ${f.x},${f.y + I}
1561
+ a ${L},${I} 0 0 0 0,${f.height}
1562
+ h ${f.width - 2 * L}
1563
+ a ${L},${I} 0 0 0 0,-${f.height}
1564
+ Z
1565
+ `;
1566
+ b.append("path").attr("d", A), S.append("path").attr(
1567
+ "d",
1568
+ `M ${f.x},${f.y + I}
1569
+ a ${L},${I} 0 0 0 0,${f.height}`
1570
+ ), b.attr("transform", `translate(${L}, ${-(f.height / 2)})`), S.attr("transform", `translate(${f.width - L}, ${-f.height / 2})`), t.rectData = f, E === "neo" && b.attr("filter", "url(#drop-shadow)");
1571
+ const N = i.get(t.name) ?? 0;
1572
+ if (pt.has(T) && (b.style("stroke", u[N % u.length]), b.style("fill", x[N % u.length]), S.style("stroke", u[N % u.length]), S.style("fill", x[N % u.length])), t.properties?.icon) {
1573
+ const q = t.properties.icon.trim(), U = f.x + f.width - 20, G = f.y + 10;
1574
+ q.charAt(0) === "@" ? re(p, U, G, q.substr(1)) : ae(p, U, G, q);
1575
+ }
1576
+ Et(a, Q(t.description))(
1577
+ t.description,
1578
+ p,
1579
+ f.x,
1580
+ f.y,
1581
+ f.width,
1582
+ f.height,
1583
+ { class: `actor ${Kt}` },
1584
+ a
1585
+ );
1586
+ let B = t.height;
1587
+ const V = b.select("path:last-child");
1588
+ if (V.node()) {
1589
+ const q = V.node().getBBox();
1590
+ t.height = q.height, B = q.height;
1591
+ }
1592
+ return r || (p.attr("data-et", "participant"), p.attr("data-type", "queue"), p.attr("data-id", t.name)), B;
1593
+ }, "drawActorTypeQueue"), Ar = /* @__PURE__ */ g(function(e, t, a, r, i, o) {
1594
+ const s = r ? t.stopy : t.starty, n = t.x + t.width / 2, E = s + 75, { look: T, theme: l, themeVariables: x } = a, { bkgColorArray: u, borderColorArray: O, actorBorder: p, actorBkg: f } = x, _ = e.append("g").lower();
1595
+ r || (M++, _.append("line").attr("id", "actor" + M).attr("x1", n).attr("y1", E).attr("x2", n).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = M);
1596
+ const I = e.append("g");
1597
+ let L = yt;
1598
+ r ? L += ` ${_t}` : L += ` ${ft}`, I.attr("class", L), I.attr("name", t.name);
1599
+ const b = dt();
1600
+ b.x = t.x, b.y = s, b.fill = "#eaeaea", b.width = t.width, b.height = t.height, b.class = "actor";
1601
+ const S = t.x + t.width / 2, A = s + 32, N = 22;
1602
+ I.append("defs").append("marker").attr("id", i + "-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"), I.append("circle").attr("cx", S).attr("cy", A).attr("r", N).attr("filter", `${T === "neo" ? "url(#drop-shadow)" : ""}`), I.append("line").attr("marker-end", "url(#" + i + "-filled-head-control)").attr("transform", `translate(${S}, ${A - N})`);
1603
+ const B = o.get(t.name) ?? 0;
1604
+ pt.has(l) ? (I.style("stroke", O[B % O.length]), I.style("fill", u[B % O.length])) : (I.style("stroke", p), I.style("fill", f));
1605
+ const V = I.node().getBBox();
1606
+ return t.height = V.height + 2 * (a?.sequence?.labelBoxHeight ?? 0), Et(a, Q(t.description))(
1607
+ t.description,
1608
+ I,
1609
+ b.x,
1610
+ b.y + N + (r ? 5 : 12),
1611
+ b.width,
1612
+ b.height,
1613
+ { class: `actor ${yt}` },
1614
+ a
1615
+ ), r || (I.attr("data-et", "participant"), I.attr("data-type", "control"), I.attr("data-id", t.name)), t.height;
1616
+ }, "drawActorTypeControl"), Sr = /* @__PURE__ */ g(function(e, t, a, r, i) {
1617
+ const o = r ? t.stopy : t.starty, s = t.x + t.width / 2, n = o + 75, { look: E, theme: T, themeVariables: l } = a, { bkgColorArray: x, borderColorArray: u } = l, O = e.append("g").lower(), p = e.append("g");
1618
+ let f = "actor";
1619
+ r ? f += ` ${_t}` : f += ` ${ft}`, p.attr("class", f), p.attr("name", t.name);
1620
+ const _ = dt();
1621
+ _.x = t.x, _.y = o, _.fill = "#eaeaea", _.width = t.width, _.height = t.height, _.class = "actor";
1622
+ const I = t.x + t.width / 2, L = o + (r ? 10 : 25), b = 22;
1623
+ p.append("circle").attr("cx", I).attr("cy", L).attr("r", b).attr("width", t.width).attr("height", t.height), p.append("line").attr("x1", I - b).attr("x2", I + b).attr("y1", L + b).attr("y2", L + b).attr("stroke-width", 2), E === "neo" && p.attr("filter", "url(#drop-shadow)");
1624
+ const S = i.get(t.name) ?? 0;
1625
+ pt.has(T) && (p.style("stroke", u[S % u.length]), p.style("fill", x[S % u.length]));
1626
+ const A = p.node().getBBox();
1627
+ return t.height = A.height + (a?.sequence?.labelBoxHeight ?? 0), r || (M++, O.append("line").attr("id", "actor" + M).attr("x1", s).attr("y1", n).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = M), Et(a, Q(t.description))(
1628
+ t.description,
1629
+ p,
1630
+ _.x,
1631
+ _.y + (r ? 15 : 30),
1632
+ _.width,
1633
+ _.height,
1634
+ { class: `actor ${yt}` },
1635
+ a
1636
+ ), r ? p.attr("transform", `translate(0, ${b})`) : (p.attr("transform", `translate(0, ${b / 2 - 5})`), p.attr("data-et", "participant"), p.attr("data-type", "entity"), p.attr("data-id", t.name)), t.height;
1637
+ }, "drawActorTypeEntity"), wr = /* @__PURE__ */ g(function(e, t, a, r, i) {
1638
+ const o = r ? t.stopy : t.starty, s = t.x + t.width / 2, n = o + t.height + 2 * a.boxTextMargin, { theme: E, themeVariables: T, look: l } = a, { bkgColorArray: x, borderColorArray: u, actorBorder: O } = T, p = e.append("g").lower();
1639
+ let f = p;
1640
+ r || (M++, Object.keys(t.links || {}).length && !a.forceMenus && f.attr("onclick", Ft(`actor${M}_popup`)).attr("cursor", "pointer"), f.append("line").attr("id", "actor" + M).attr("x1", s).attr("y1", n).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), f = p.append("g"), t.actorCnt = M, t.links != null && f.attr("id", "root-" + M), l === "neo" && f.attr("data-look", "neo"));
1641
+ const _ = dt();
1642
+ let I = "actor";
1643
+ t.properties?.class ? I = t.properties.class : _.fill = "#eaeaea", r ? I += ` ${_t}` : I += ` ${ft}`, _.x = t.x, _.y = o, _.width = t.width, _.height = t.height, _.class = I, _.name = t.name, _.x = t.x, _.y = o;
1644
+ const L = _.width / 3, b = _.width / 3, S = L / 2, A = S / (2.5 + L / 50), N = f.append("g");
1645
+ N.attr("class", I);
1646
+ const B = `
1647
+ M ${_.x},${_.y + A}
1648
+ a ${S},${A} 0 0 0 ${L},0
1649
+ a ${S},${A} 0 0 0 -${L},0
1650
+ l 0,${b - 2 * A}
1651
+ a ${S},${A} 0 0 0 ${L},0
1652
+ l 0,-${b - 2 * A}
1653
+ `;
1654
+ N.append("path").attr("d", B), l === "neo" && N.attr("filter", "url(#drop-shadow)");
1655
+ const V = i.get(t.name) ?? 0;
1656
+ pt.has(E) ? (N.style("stroke", u[V % u.length]), N.style("fill", x[V % u.length])) : N.style("stroke", O), N.attr("transform", `translate(${L}, ${A})`), t.rectData = _, Et(a, Q(t.description))(
1657
+ t.description,
1658
+ f,
1659
+ _.x,
1660
+ _.y + 35,
1661
+ _.width,
1662
+ _.height,
1663
+ { class: `actor ${Kt}` },
1664
+ a
1665
+ );
1666
+ const q = N.select("path:last-child");
1667
+ if (q.node()) {
1668
+ const U = q.node().getBBox();
1669
+ t.height = U.height + (a.sequence.labelBoxHeight ?? 0);
1670
+ }
1671
+ return r || (f.attr("data-et", "participant"), f.attr("data-type", "database"), f.attr("data-id", t.name)), t.height;
1672
+ }, "drawActorTypeDatabase"), Nr = /* @__PURE__ */ g(function(e, t, a, r, i) {
1673
+ const o = r ? t.stopy : t.starty, s = t.x + t.width / 2, n = o + 80, E = 22, T = e.append("g").lower(), { look: l, theme: x, themeVariables: u } = a, { bkgColorArray: O, borderColorArray: p, actorBorder: f } = u;
1674
+ r || (M++, T.append("line").attr("id", "actor" + M).attr("x1", s).attr("y1", n).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = M);
1675
+ const _ = e.append("g");
1676
+ let I = yt;
1677
+ r ? I += ` ${_t}` : I += ` ${ft}`, _.attr("class", I), _.attr("name", t.name);
1678
+ const L = dt();
1679
+ L.x = t.x, L.y = o, L.fill = "#eaeaea", L.width = t.width, L.height = t.height, L.class = "actor", _.append("line").attr("id", "actor-man-torso" + M).attr("x1", t.x + t.width / 2 - E * 2.5).attr("y1", o + 12).attr("x2", t.x + t.width / 2 - 15).attr("y2", o + 12), _.append("line").attr("id", "actor-man-arms" + M).attr("x1", t.x + t.width / 2 - E * 2.5).attr("y1", o + 2).attr("x2", t.x + t.width / 2 - E * 2.5).attr("y2", o + 22), _.append("circle").attr("cx", t.x + t.width / 2).attr("cy", o + 12).attr("r", E), l === "neo" && _.attr("filter", "url(#drop-shadow)");
1680
+ const b = i.get(t.name) ?? 0;
1681
+ pt.has(x) ? (_.style("stroke", p[b % p.length]), _.style("fill", O[b % p.length])) : _.style("stroke", f);
1682
+ const S = _.node().getBBox();
1683
+ return t.height = S.height + (a.sequence.labelBoxHeight ?? 0), Et(a, Q(t.description))(
1684
+ t.description,
1685
+ _,
1686
+ L.x,
1687
+ L.y + 15,
1688
+ L.width,
1689
+ L.height,
1690
+ { class: `actor ${yt}` },
1691
+ a
1692
+ ), _.attr("transform", `translate(0,${E / 2 + 10})`), r || (_.attr("data-et", "participant"), _.attr("data-type", "boundary"), _.attr("data-id", t.name)), t.height;
1693
+ }, "drawActorTypeBoundary"), Pr = /* @__PURE__ */ g(function(e, t, a, r, i) {
1694
+ const o = r ? t.stopy : t.starty, s = t.x + t.width / 2, n = o + 80, { look: E, theme: T, themeVariables: l } = a, { bkgColorArray: x, borderColorArray: u, actorBorder: O } = l, p = e.append("g").lower();
1695
+ r || (M++, p.append("line").attr("id", "actor" + M).attr("x1", s).attr("y1", n).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = M);
1696
+ const f = e.append("g");
1697
+ let _ = yt;
1698
+ r ? _ += ` ${_t}` : _ += ` ${ft}`, f.attr("class", _), f.attr("name", t.name), r || f.attr("data-et", "participant").attr("data-type", "actor").attr("data-id", t.name);
1699
+ const I = E === "neo" ? 0.5 : 1, L = E === "neo" ? o + (1 - I) * 30 : o;
1700
+ f.append("line").attr("id", "actor-man-torso" + M).attr("x1", s).attr("y1", L + 25 * I).attr("x2", s).attr("y2", L + 45 * I), f.append("line").attr("id", "actor-man-arms" + M).attr("x1", s - It / 2 * I).attr("y1", L + 33 * I).attr("x2", s + It / 2 * I).attr("y2", L + 33 * I), f.append("line").attr("x1", s - It / 2 * I).attr("y1", L + 60 * I).attr("x2", s).attr("y2", L + 45 * I), f.append("line").attr("x1", s).attr("y1", L + 45 * I).attr("x2", s + (It / 2 - 2) * I).attr("y2", L + 60 * I);
1701
+ const b = f.append("circle");
1702
+ b.attr("cx", t.x + t.width / 2), b.attr("cy", L + 10 * I), b.attr("r", 15 * I), b.attr("width", t.width * I), b.attr("height", t.height * I);
1703
+ const S = f.node().getBBox();
1704
+ t.height = S.height;
1705
+ const A = dt();
1706
+ A.x = t.x, A.y = L, A.fill = "#eaeaea", A.width = t.width, A.height = t.height / I, A.class = "actor", A.rx = 3, A.ry = 3;
1707
+ const N = i.get(t.name) ?? 0;
1708
+ return pt.has(T) ? (f.style("stroke", u[N % u.length]), f.style("fill", x[N % u.length])) : f.style("stroke", O), Et(a, Q(t.description))(
1709
+ t.description,
1710
+ f,
1711
+ A.x,
1712
+ L + 35 * I - (E === "neo" ? 10 : 0),
1713
+ A.width,
1714
+ A.height,
1715
+ { class: `actor ${yt}` },
1716
+ a
1717
+ ), t.height;
1718
+ }, "drawActorTypeActor"), kr = /* @__PURE__ */ g(async function(e, t, a, r, i, o, s) {
1719
+ const n = s ?? new Map(
1720
+ [...o.db.getActors().values()].map((E, T) => [E.name, T])
1721
+ );
1722
+ switch (t.type) {
1723
+ case "actor":
1724
+ return await Pr(e, t, a, r, n);
1725
+ case "participant":
1726
+ return await Lr(e, t, a, r, n);
1727
+ case "boundary":
1728
+ return await Nr(e, t, a, r, n);
1729
+ case "control":
1730
+ return await Ar(
1731
+ e,
1732
+ t,
1733
+ a,
1734
+ r,
1735
+ i,
1736
+ n
1737
+ );
1738
+ case "entity":
1739
+ return await Sr(e, t, a, r, n);
1740
+ case "database":
1741
+ return await wr(e, t, a, r, n);
1742
+ case "collections":
1743
+ return await br(e, t, a, r, n);
1744
+ case "queue":
1745
+ return await mr(e, t, a, r, n);
1746
+ }
1747
+ }, "drawActor"), Dr = /* @__PURE__ */ g(function(e, t, a) {
1748
+ const i = e.append("g");
1749
+ We(i, t), t.name && Et(a)(
1750
+ t.name,
1751
+ i,
1752
+ t.x,
1753
+ t.y + a.boxTextMargin + (t.textMaxHeight || 0) / 2,
1754
+ t.width,
1755
+ 0,
1756
+ { class: "text" },
1757
+ a
1758
+ ), i.lower();
1759
+ }, "drawBox"), vr = /* @__PURE__ */ g(function(e) {
1760
+ return e.append("g");
1761
+ }, "anchorElement"), Cr = /* @__PURE__ */ g(function(e, t, a, r, i, o, s) {
1762
+ const { theme: n, themeVariables: E } = r, { bkgColorArray: T, borderColorArray: l, mainBkg: x } = E, u = dt(), O = t.anchored, p = t.actor;
1763
+ u.x = t.startx, u.y = t.starty, u.class = "activation" + i % 3, u.width = t.stopx - t.startx, u.height = a - t.starty;
1764
+ const f = St(O, u), I = (s ?? new Map(
1765
+ [...o.db.getActors().values()].map((L, b) => [L.name, b])
1766
+ )).get(p) ?? 0;
1767
+ pt.has(n) && (f.style("stroke", l[I % l.length]), f.style("fill", T[I % l.length] ?? x));
1768
+ }, "drawActivation"), Mr = /* @__PURE__ */ g(async function(e, t, a, r, i) {
1769
+ const {
1770
+ boxMargin: o,
1771
+ boxTextMargin: s,
1772
+ labelBoxHeight: n,
1773
+ labelBoxWidth: E,
1774
+ messageFontFamily: T,
1775
+ messageFontSize: l,
1776
+ messageFontWeight: x
1777
+ } = r, u = e.append("g").attr("data-et", "control-structure").attr("data-id", "i" + i.id), O = /* @__PURE__ */ g(function(_, I, L, b) {
1778
+ return u.append("line").attr("x1", _).attr("y1", I).attr("x2", L).attr("y2", b).attr("class", "loopLine");
1779
+ }, "drawLoopLine");
1780
+ O(t.startx, t.starty, t.stopx, t.starty), O(t.stopx, t.starty, t.stopx, t.stopy), O(t.startx, t.stopy, t.stopx, t.stopy), O(t.startx, t.starty, t.startx, t.stopy), t.sections !== void 0 && t.sections.forEach(function(_) {
1781
+ O(t.startx, _.y, t.stopx, _.y).style(
1782
+ "stroke-dasharray",
1783
+ "3, 3"
1784
+ );
1785
+ });
1786
+ let p = ee();
1787
+ p.text = a, p.x = t.startx, p.y = t.starty, p.fontFamily = T, p.fontSize = l, p.fontWeight = x, p.anchor = "middle", p.valign = "middle", p.tspan = !1, p.width = Math.max(E ?? 0, 50), p.height = n + (r.look === "neo" ? 15 : 0) || 20, p.textMargin = s, p.class = "labelText", Ve(u, p), p = Ke(), p.text = t.title, p.x = t.startx + E / 2 + (t.stopx - t.startx) / 2, p.y = t.starty + o + s, p.anchor = "middle", p.valign = "middle", p.textMargin = s, p.class = "loopText", p.fontFamily = T, p.fontSize = l, p.fontWeight = x, p.wrap = !0;
1788
+ let f = Q(p.text) ? await Wt(u, p, t) : bt(u, p);
1789
+ if (t.sectionTitles !== void 0) {
1790
+ for (const [_, I] of Object.entries(t.sectionTitles))
1791
+ if (I.message) {
1792
+ p.text = I.message, p.x = t.startx + (t.stopx - t.startx) / 2, p.y = t.sections[_].y + o + s, p.class = "sectionTitle", p.anchor = "middle", p.valign = "middle", p.tspan = !1, p.fontFamily = T, p.fontSize = l, p.fontWeight = x, p.wrap = t.wrap, Q(p.text) ? (t.starty = t.sections[_].y, await Wt(u, p, t)) : bt(u, p);
1793
+ let L = Math.round(
1794
+ f.map((b) => (b._groups || b)[0][0].getBBox().height).reduce((b, S) => b + S)
1795
+ );
1796
+ t.sections[_].height += L - (o + s);
1797
+ }
1798
+ }
1799
+ return t.height = Math.round(t.stopy - t.starty), u;
1800
+ }, "drawLoop"), We = /* @__PURE__ */ g(function(e, t) {
1801
+ pr(e, t);
1802
+ }, "drawBackgroundRect"), Br = /* @__PURE__ */ g(function(e, t) {
1803
+ e.append("defs").append("symbol").attr("id", t + "-database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr(
1804
+ "d",
1805
+ "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"
1806
+ );
1807
+ }, "insertDatabaseIcon"), Vr = /* @__PURE__ */ g(function(e, t) {
1808
+ e.append("defs").append("symbol").attr("id", t + "-computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
1809
+ "d",
1810
+ "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"
1811
+ );
1812
+ }, "insertComputerIcon"), Yr = /* @__PURE__ */ g(function(e, t) {
1813
+ e.append("defs").append("symbol").attr("id", t + "-clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
1814
+ "d",
1815
+ "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"
1816
+ );
1817
+ }, "insertClockIcon"), Wr = /* @__PURE__ */ g(function(e, t) {
1818
+ e.append("defs").append("marker").attr("id", t + "-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");
1819
+ }, "insertArrowHead"), Kr = /* @__PURE__ */ g(function(e, t) {
1820
+ e.append("defs").append("marker").attr("id", t + "-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");
1821
+ }, "insertArrowFilledHead"), Fr = /* @__PURE__ */ g(function(e, t) {
1822
+ e.append("defs").append("marker").attr("id", t + "-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);
1823
+ }, "insertSequenceNumber"), qr = /* @__PURE__ */ g(function(e, t) {
1824
+ e.append("defs").append("marker").attr("id", t + "-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");
1825
+ }, "insertArrowCrossHead"), Hr = /* @__PURE__ */ g(function(e, t) {
1826
+ const { theme: a } = t;
1827
+ e.append("defs").append("filter").attr("id", "drop-shadow").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"}`);
1828
+ }, "insertDropShadow"), Ke = /* @__PURE__ */ g(function() {
1829
+ return {
1830
+ x: 0,
1831
+ y: 0,
1832
+ fill: void 0,
1833
+ anchor: void 0,
1834
+ style: "#666",
1835
+ width: void 0,
1836
+ height: void 0,
1837
+ textMargin: 0,
1838
+ rx: 0,
1839
+ ry: 0,
1840
+ tspan: !0,
1841
+ valign: void 0
1842
+ };
1843
+ }, "getTextObj"), zr = /* @__PURE__ */ g(function() {
1844
+ return {
1845
+ x: 0,
1846
+ y: 0,
1847
+ fill: "#EDF2AE",
1848
+ stroke: "#666",
1849
+ width: 100,
1850
+ anchor: "start",
1851
+ height: 100,
1852
+ rx: 0,
1853
+ ry: 0
1854
+ };
1855
+ }, "getNoteRect"), Et = /* @__PURE__ */ (function() {
1856
+ function e(o, s, n, E, T, l, x) {
1857
+ const u = s.append("text").attr("x", n + T / 2).attr("y", E + l / 2 + 5).style("text-anchor", "middle").text(o);
1858
+ i(u, x);
1859
+ }
1860
+ g(e, "byText");
1861
+ function t(o, s, n, E, T, l, x, u) {
1862
+ const { actorFontSize: O, actorFontFamily: p, actorFontWeight: f } = u, [_, I] = Me(O), L = o.split(P.lineBreakRegex);
1863
+ for (let b = 0; b < L.length; b++) {
1864
+ const S = b * _ - _ * (L.length - 1) / 2, A = s.append("text").attr("x", n + T / 2).attr("y", E).style("text-anchor", "middle").style("font-size", I).style("font-weight", f).style("font-family", p);
1865
+ A.append("tspan").attr("x", n + T / 2).attr("dy", S).text(L[b]), A.attr("y", E + l / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), i(A, x);
1866
+ }
1867
+ }
1868
+ g(t, "byTspan");
1869
+ function a(o, s, n, E, T, l, x, u) {
1870
+ const O = s.append("switch"), f = O.append("foreignObject").attr("x", n).attr("y", E).attr("width", T).attr("height", l).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
1871
+ f.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(o), t(o, O, n, E, T, l, x, u), i(f, x);
1872
+ }
1873
+ g(a, "byFo");
1874
+ async function r(o, s, n, E, T, l, x, u) {
1875
+ const O = await wt(o, Yt()), p = s.append("switch"), _ = p.append("foreignObject").attr("x", n + T / 2 - O.width / 2).attr("y", E + l / 2 - O.height / 2).attr("width", O.width).attr("height", O.height).append("xhtml:div").style("height", "100%").style("width", "100%");
1876
+ _.append("div").style("text-align", "center").style("vertical-align", "middle").html(await Be(o, Yt())), t(o, p, n, E, T, l, x, u), i(_, x);
1877
+ }
1878
+ g(r, "byKatex");
1879
+ function i(o, s) {
1880
+ for (const n in s)
1881
+ s.hasOwnProperty(n) && o.attr(n, s[n]);
1882
+ }
1883
+ return g(i, "_setTextAttrs"), function(o, s = !1) {
1884
+ return s ? r : o.textPlacement === "fo" ? a : o.textPlacement === "old" ? e : t;
1885
+ };
1886
+ })(), Ur = /* @__PURE__ */ (function() {
1887
+ function e(i, o, s, n, E, T, l) {
1888
+ const x = o.append("text").attr("x", s).attr("y", n).style("text-anchor", "start").text(i);
1889
+ r(x, l);
1890
+ }
1891
+ g(e, "byText");
1892
+ function t(i, o, s, n, E, T, l, x) {
1893
+ const { actorFontSize: u, actorFontFamily: O, actorFontWeight: p } = x, f = i.split(P.lineBreakRegex);
1894
+ for (let _ = 0; _ < f.length; _++) {
1895
+ const I = _ * u - u * (f.length - 1) / 2, L = o.append("text").attr("x", s).attr("y", n).style("text-anchor", "start").style("font-size", u).style("font-weight", p).style("font-family", O);
1896
+ L.append("tspan").attr("x", s).attr("dy", I).text(f[_]), L.attr("y", n + T / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), r(L, l);
1897
+ }
1898
+ }
1899
+ g(t, "byTspan");
1900
+ function a(i, o, s, n, E, T, l, x) {
1901
+ const u = o.append("switch"), p = u.append("foreignObject").attr("x", s).attr("y", n).attr("width", E).attr("height", T).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
1902
+ p.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(i), t(i, u, s, n, E, T, l, x), r(p, l);
1903
+ }
1904
+ g(a, "byFo");
1905
+ function r(i, o) {
1906
+ for (const s in o)
1907
+ o.hasOwnProperty(s) && i.attr(s, o[s]);
1908
+ }
1909
+ return g(r, "_setTextAttrs"), function(i) {
1910
+ return i.textPlacement === "fo" ? a : i.textPlacement === "old" ? e : t;
1911
+ };
1912
+ })(), Gr = /* @__PURE__ */ g(function(e, t) {
1913
+ e.append("defs").append("marker").attr("id", t + "-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");
1914
+ }, "insertSolidTopArrowHead"), Xr = /* @__PURE__ */ g(function(e, t) {
1915
+ e.append("defs").append("marker").attr("id", t + "-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");
1916
+ }, "insertSolidBottomArrowHead"), Jr = /* @__PURE__ */ g(function(e, t) {
1917
+ e.append("defs").append("marker").attr("id", t + "-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");
1918
+ }, "insertStickTopArrowHead"), Zr = /* @__PURE__ */ g(function(e, t) {
1919
+ e.append("defs").append("marker").attr("id", t + "-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");
1920
+ }, "insertStickBottomArrowHead"), F = {
1921
+ drawRect: St,
1922
+ drawText: bt,
1923
+ drawLabel: Ve,
1924
+ drawActor: kr,
1925
+ drawBox: Dr,
1926
+ drawPopup: Or,
1927
+ anchorElement: vr,
1928
+ drawActivation: Cr,
1929
+ drawLoop: Mr,
1930
+ drawBackgroundRect: We,
1931
+ insertArrowHead: Wr,
1932
+ insertArrowFilledHead: Kr,
1933
+ insertSequenceNumber: Fr,
1934
+ insertArrowCrossHead: qr,
1935
+ insertDatabaseIcon: Br,
1936
+ insertComputerIcon: Vr,
1937
+ insertClockIcon: Yr,
1938
+ getTextObj: Ke,
1939
+ getNoteRect: zr,
1940
+ fixLifeLineHeights: Ye,
1941
+ sanitizeUrl: Ce.sanitizeUrl,
1942
+ insertDropShadow: Hr,
1943
+ insertSolidTopArrowHead: Gr,
1944
+ insertSolidBottomArrowHead: Xr,
1945
+ insertStickTopArrowHead: Jr,
1946
+ insertStickBottomArrowHead: Zr
1947
+ }, h = {}, R = {
1948
+ data: {
1949
+ startx: void 0,
1950
+ stopx: void 0,
1951
+ starty: void 0,
1952
+ stopy: void 0
1953
+ },
1954
+ verticalPos: 0,
1955
+ sequenceItems: [],
1956
+ activations: [],
1957
+ models: {
1958
+ getHeight: /* @__PURE__ */ g(function() {
1959
+ return Math.max.apply(
1960
+ null,
1961
+ this.actors.length === 0 ? [0] : this.actors.map((e) => e.height || 0)
1962
+ ) + (this.loops.length === 0 ? 0 : this.loops.map((e) => e.height || 0).reduce((e, t) => e + t)) + (this.messages.length === 0 ? 0 : this.messages.map((e) => e.height || 0).reduce((e, t) => e + t)) + (this.notes.length === 0 ? 0 : this.notes.map((e) => e.height || 0).reduce((e, t) => e + t));
1963
+ }, "getHeight"),
1964
+ clear: /* @__PURE__ */ g(function() {
1965
+ this.actors = [], this.boxes = [], this.loops = [], this.messages = [], this.notes = [];
1966
+ }, "clear"),
1967
+ addBox: /* @__PURE__ */ g(function(e) {
1968
+ this.boxes.push(e);
1969
+ }, "addBox"),
1970
+ addActor: /* @__PURE__ */ g(function(e) {
1971
+ this.actors.push(e);
1972
+ }, "addActor"),
1973
+ addLoop: /* @__PURE__ */ g(function(e) {
1974
+ this.loops.push(e);
1975
+ }, "addLoop"),
1976
+ addMessage: /* @__PURE__ */ g(function(e) {
1977
+ this.messages.push(e);
1978
+ }, "addMessage"),
1979
+ addNote: /* @__PURE__ */ g(function(e) {
1980
+ this.notes.push(e);
1981
+ }, "addNote"),
1982
+ lastActor: /* @__PURE__ */ g(function() {
1983
+ return this.actors[this.actors.length - 1];
1984
+ }, "lastActor"),
1985
+ lastLoop: /* @__PURE__ */ g(function() {
1986
+ return this.loops[this.loops.length - 1];
1987
+ }, "lastLoop"),
1988
+ lastMessage: /* @__PURE__ */ g(function() {
1989
+ return this.messages[this.messages.length - 1];
1990
+ }, "lastMessage"),
1991
+ lastNote: /* @__PURE__ */ g(function() {
1992
+ return this.notes[this.notes.length - 1];
1993
+ }, "lastNote"),
1994
+ actors: [],
1995
+ boxes: [],
1996
+ loops: [],
1997
+ messages: [],
1998
+ notes: []
1999
+ },
2000
+ init: /* @__PURE__ */ g(function() {
2001
+ this.sequenceItems = [], this.activations = [], this.models.clear(), this.data = {
2002
+ startx: void 0,
2003
+ stopx: void 0,
2004
+ starty: void 0,
2005
+ stopy: void 0
2006
+ }, this.verticalPos = 0, He($());
2007
+ }, "init"),
2008
+ updateVal: /* @__PURE__ */ g(function(e, t, a, r) {
2009
+ e[t] === void 0 ? e[t] = a : e[t] = r(a, e[t]);
2010
+ }, "updateVal"),
2011
+ updateBounds: /* @__PURE__ */ g(function(e, t, a, r) {
2012
+ const i = this;
2013
+ let o = 0;
2014
+ function s(n) {
2015
+ return /* @__PURE__ */ g(function(T) {
2016
+ o++;
2017
+ const l = i.sequenceItems.length - o + 1;
2018
+ i.updateVal(T, "starty", t - l * h.boxMargin, Math.min), i.updateVal(T, "stopy", r + l * h.boxMargin, Math.max), i.updateVal(R.data, "startx", e - l * h.boxMargin, Math.min), i.updateVal(R.data, "stopx", a + l * h.boxMargin, Math.max), n !== "activation" && (i.updateVal(T, "startx", e - l * h.boxMargin, Math.min), i.updateVal(T, "stopx", a + l * h.boxMargin, Math.max), i.updateVal(R.data, "starty", t - l * h.boxMargin, Math.min), i.updateVal(R.data, "stopy", r + l * h.boxMargin, Math.max));
2019
+ }, "updateItemBounds");
2020
+ }
2021
+ g(s, "updateFn"), this.sequenceItems.forEach(s()), this.activations.forEach(s("activation"));
2022
+ }, "updateBounds"),
2023
+ insert: /* @__PURE__ */ g(function(e, t, a, r) {
2024
+ const i = P.getMin(e, a), o = P.getMax(e, a), s = P.getMin(t, r), n = P.getMax(t, r);
2025
+ this.updateVal(R.data, "startx", i, Math.min), this.updateVal(R.data, "starty", s, Math.min), this.updateVal(R.data, "stopx", o, Math.max), this.updateVal(R.data, "stopy", n, Math.max), this.updateBounds(i, s, o, n);
2026
+ }, "insert"),
2027
+ newActivation: /* @__PURE__ */ g(function(e, t, a) {
2028
+ const r = a.get(e.from), i = qt(e.from).length || 0, o = r.x + r.width / 2 + (i - 1) * h.activationWidth / 2;
2029
+ this.activations.push({
2030
+ startx: o,
2031
+ starty: this.verticalPos + 2,
2032
+ stopx: o + h.activationWidth,
2033
+ stopy: void 0,
2034
+ actor: e.from,
2035
+ anchored: F.anchorElement(t)
2036
+ });
2037
+ }, "newActivation"),
2038
+ endActivation: /* @__PURE__ */ g(function(e) {
2039
+ const t = this.activations.map(function(a) {
2040
+ return a.actor;
2041
+ }).lastIndexOf(e.from);
2042
+ return this.activations.splice(t, 1)[0];
2043
+ }, "endActivation"),
2044
+ createLoop: /* @__PURE__ */ g(function(e = { message: void 0, wrap: !1, width: void 0 }, t) {
2045
+ return {
2046
+ startx: void 0,
2047
+ starty: this.verticalPos,
2048
+ stopx: void 0,
2049
+ stopy: void 0,
2050
+ title: e.message,
2051
+ wrap: e.wrap,
2052
+ width: e.width,
2053
+ height: 0,
2054
+ fill: t
2055
+ };
2056
+ }, "createLoop"),
2057
+ newLoop: /* @__PURE__ */ g(function(e = { message: void 0, wrap: !1, width: void 0 }, t) {
2058
+ this.sequenceItems.push(this.createLoop(e, t));
2059
+ }, "newLoop"),
2060
+ endLoop: /* @__PURE__ */ g(function() {
2061
+ return this.sequenceItems.pop();
2062
+ }, "endLoop"),
2063
+ isLoopOverlap: /* @__PURE__ */ g(function() {
2064
+ return this.sequenceItems.length ? this.sequenceItems[this.sequenceItems.length - 1].overlap : !1;
2065
+ }, "isLoopOverlap"),
2066
+ addSectionToLoop: /* @__PURE__ */ g(function(e) {
2067
+ const t = this.sequenceItems.pop();
2068
+ t.sections = t.sections || [], t.sectionTitles = t.sectionTitles || [], t.sections.push({ y: R.getVerticalPos(), height: 0 }), t.sectionTitles.push(e), this.sequenceItems.push(t);
2069
+ }, "addSectionToLoop"),
2070
+ saveVerticalPos: /* @__PURE__ */ g(function() {
2071
+ this.isLoopOverlap() && (this.savedVerticalPos = this.verticalPos);
2072
+ }, "saveVerticalPos"),
2073
+ resetVerticalPos: /* @__PURE__ */ g(function() {
2074
+ this.isLoopOverlap() && (this.verticalPos = this.savedVerticalPos);
2075
+ }, "resetVerticalPos"),
2076
+ bumpVerticalPos: /* @__PURE__ */ g(function(e) {
2077
+ this.verticalPos = this.verticalPos + e, this.data.stopy = P.getMax(this.data.stopy, this.verticalPos);
2078
+ }, "bumpVerticalPos"),
2079
+ getVerticalPos: /* @__PURE__ */ g(function() {
2080
+ return this.verticalPos;
2081
+ }, "getVerticalPos"),
2082
+ getBounds: /* @__PURE__ */ g(function() {
2083
+ return { bounds: this.data, models: this.models };
2084
+ }, "getBounds")
2085
+ }, Qr = /* @__PURE__ */ g(async function(e, t, a) {
2086
+ R.bumpVerticalPos(h.boxMargin), t.height = h.boxMargin, t.starty = R.getVerticalPos();
2087
+ const r = dt();
2088
+ r.x = t.startx, r.y = t.starty, r.width = t.width || h.width, r.class = "note";
2089
+ const i = e.append("g");
2090
+ i.attr("data-et", "note"), i.attr("data-id", "i" + a);
2091
+ const o = F.drawRect(i, r), s = ee();
2092
+ s.x = t.startx, s.y = t.starty, s.width = r.width, s.dy = "1em", s.text = t.message, s.class = "noteText", s.fontFamily = h.noteFontFamily, s.fontSize = h.noteFontSize, s.fontWeight = h.noteFontWeight, s.anchor = h.noteAlign, s.textMargin = h.noteMargin, s.valign = "center";
2093
+ const n = Q(s.text) ? await Wt(i, s) : bt(i, s), E = Math.round(
2094
+ n.map((T) => (T._groups || T)[0][0].getBBox().height).reduce((T, l) => T + l)
2095
+ );
2096
+ o.attr("height", E + 2 * h.noteMargin), t.height += E + 2 * h.noteMargin, R.bumpVerticalPos(E + 2 * h.noteMargin), t.stopy = t.starty + E + 2 * h.noteMargin, t.stopx = t.startx + r.width, R.insert(t.startx, t.starty, t.stopx, t.stopy), R.models.addNote(t);
2097
+ }, "drawNote"), De = /* @__PURE__ */ g(function(e, t, a, r, i, o, s) {
2098
+ const n = r.db.getActors(), E = n.get(t.from), T = n.get(t.to), l = a.sequenceVisible;
2099
+ let x = E.x + E.width / 2, u = T.x + T.width / 2;
2100
+ const O = x <= u, p = Xe(t, r), f = e.append("g"), _ = 16.5, I = /* @__PURE__ */ g((N, B) => {
2101
+ const V = N ? _ : -_;
2102
+ return B ? -V : V;
2103
+ }, "getCircleOffset"), L = /* @__PURE__ */ g((N) => {
2104
+ f.append("circle").attr("cx", N).attr("cy", s).attr("r", 5).attr("width", 10).attr("height", 10);
2105
+ }, "drawCircle"), { CENTRAL_CONNECTION: b, CENTRAL_CONNECTION_REVERSE: S, CENTRAL_CONNECTION_DUAL: A } = r.db.LINETYPE;
2106
+ if (l)
2107
+ switch (t.centralConnection) {
2108
+ case b:
2109
+ p && (u += I(O, !0));
2110
+ break;
2111
+ case S:
2112
+ p || (x += I(O, !1));
2113
+ break;
2114
+ case A:
2115
+ p ? u += I(O, !0) : x += I(O, !1);
2116
+ break;
2117
+ }
2118
+ switch (t.centralConnection) {
2119
+ case b:
2120
+ L(u);
2121
+ break;
2122
+ case S:
2123
+ L(x);
2124
+ break;
2125
+ case A:
2126
+ L(x), L(u);
2127
+ break;
2128
+ }
2129
+ }, "drawCentralConnection"), Rt = /* @__PURE__ */ g((e) => ({
2130
+ fontFamily: e.messageFontFamily,
2131
+ fontSize: e.messageFontSize,
2132
+ fontWeight: e.messageFontWeight
2133
+ }), "messageFont"), Lt = /* @__PURE__ */ g((e) => ({
2134
+ fontFamily: e.noteFontFamily,
2135
+ fontSize: e.noteFontSize,
2136
+ fontWeight: e.noteFontWeight
2137
+ }), "noteFont"), jt = /* @__PURE__ */ g((e) => ({
2138
+ fontFamily: e.actorFontFamily,
2139
+ fontSize: e.actorFontSize,
2140
+ fontWeight: e.actorFontWeight
2141
+ }), "actorFont");
2142
+ async function Fe(e, t) {
2143
+ R.bumpVerticalPos(10);
2144
+ const { startx: a, stopx: r, message: i } = t, o = P.splitBreaks(i).length, s = Q(i), n = s ? await wt(i, $()) : Z.calculateTextDimensions(i, Rt(h));
2145
+ if (!s) {
2146
+ const x = n.height / o;
2147
+ t.height += x, R.bumpVerticalPos(x);
2148
+ }
2149
+ let E, T = n.height - 10;
2150
+ const l = n.width;
2151
+ if (a === r) {
2152
+ E = R.getVerticalPos() + T, h.rightAngles || (T += h.boxMargin, E = R.getVerticalPos() + T), T += 30;
2153
+ const x = P.getMax(l / 2, h.width / 2);
2154
+ R.insert(
2155
+ a - x,
2156
+ R.getVerticalPos() - 10 + T,
2157
+ r + x,
2158
+ R.getVerticalPos() + 30 + T
2159
+ );
2160
+ } else
2161
+ T += h.boxMargin, E = R.getVerticalPos() + T, R.insert(a, E - 10, r, E);
2162
+ return R.bumpVerticalPos(T), t.height += T, t.stopy = t.starty + t.height, R.insert(t.fromBounds, t.starty, t.toBounds, t.stopy), E;
2163
+ }
2164
+ g(Fe, "boundMessage");
2165
+ var $r = /* @__PURE__ */ g(async function(e, t, a, r, i, o) {
2166
+ const { startx: s, stopx: n, starty: E, message: T, type: l, sequenceIndex: x, sequenceVisible: u } = t, O = Z.calculateTextDimensions(T, Rt(h)), p = ee();
2167
+ p.x = Math.min(s, n), p.y = E + 10, p.width = Math.abs(n - s), p.class = "messageText", p.dy = "1em", p.text = T, p.fontFamily = h.messageFontFamily, p.fontSize = h.messageFontSize, p.fontWeight = h.messageFontWeight, p.anchor = h.messageAlign, p.valign = "center", p.textMargin = h.wrapPadding, p.tspan = !1, Q(p.text) ? await Wt(e, p, { startx: s, stopx: n, starty: a }) : bt(e, p);
2168
+ const f = O.width;
2169
+ let _;
2170
+ if (s === n) {
2171
+ const L = u || h.showSequenceNumbers, b = Xe(i, r), S = ia(i, r), A = s + (L && (b || S) ? 10 : 0);
2172
+ h.rightAngles ? _ = e.append("path").attr(
2173
+ "d",
2174
+ `M ${A},${a} H ${s + P.getMax(h.width / 2, f / 2)} V ${a + 25} H ${s}`
2175
+ ) : _ = e.append("path").attr(
2176
+ "d",
2177
+ "M " + A + "," + a + " C " + (A + 60) + "," + (a - 10) + " " + (s + 60) + "," + (a + 30) + " " + s + "," + (a + 20)
2178
+ ), Qt(i, r) && De(e, i, t, r, s, n, a);
2179
+ } else
2180
+ _ = e.append("line"), _.attr("x1", s), _.attr("y1", a), _.attr("x2", n), _.attr("y2", a), Qt(i, r) && De(e, i, t, r, s, n, a);
2181
+ l === r.db.LINETYPE.DOTTED || l === r.db.LINETYPE.DOTTED_CROSS || l === r.db.LINETYPE.DOTTED_POINT || l === r.db.LINETYPE.DOTTED_OPEN || l === r.db.LINETYPE.BIDIRECTIONAL_DOTTED || l === r.db.LINETYPE.SOLID_TOP_DOTTED || l === r.db.LINETYPE.SOLID_BOTTOM_DOTTED || l === r.db.LINETYPE.STICK_TOP_DOTTED || l === r.db.LINETYPE.STICK_BOTTOM_DOTTED || l === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || l === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || l === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || l === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED ? (_.style("stroke-dasharray", "3, 3"), _.attr("class", "messageLine1")) : _.attr("class", "messageLine0"), _.attr("data-et", "message"), _.attr("data-id", "i" + t.id), _.attr("data-from", t.from), _.attr("data-to", t.to);
2182
+ let I = "";
2183
+ if (h.arrowMarkerAbsolute && (I = Tr(!0)), _.attr("stroke-width", 2), _.attr("stroke", "none"), _.style("fill", "none"), (l === r.db.LINETYPE.SOLID_TOP || l === r.db.LINETYPE.SOLID_TOP_DOTTED) && _.attr("marker-end", "url(" + I + "#" + o + "-solidTopArrowHead)"), (l === r.db.LINETYPE.SOLID_BOTTOM || l === r.db.LINETYPE.SOLID_BOTTOM_DOTTED) && _.attr("marker-end", "url(" + I + "#" + o + "-solidBottomArrowHead)"), (l === r.db.LINETYPE.STICK_TOP || l === r.db.LINETYPE.STICK_TOP_DOTTED) && _.attr("marker-end", "url(" + I + "#" + o + "-stickTopArrowHead)"), (l === r.db.LINETYPE.STICK_BOTTOM || l === r.db.LINETYPE.STICK_BOTTOM_DOTTED) && _.attr("marker-end", "url(" + I + "#" + o + "-stickBottomArrowHead)"), (l === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || l === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED) && _.attr("marker-start", "url(" + I + "#" + o + "-solidBottomArrowHead)"), (l === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || l === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED) && _.attr("marker-start", "url(" + I + "#" + o + "-solidTopArrowHead)"), (l === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE || l === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED) && _.attr("marker-start", "url(" + I + "#" + o + "-stickBottomArrowHead)"), (l === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || l === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED) && _.attr("marker-start", "url(" + I + "#" + o + "-stickTopArrowHead)"), (l === r.db.LINETYPE.SOLID || l === r.db.LINETYPE.DOTTED) && _.attr("marker-end", "url(" + I + "#" + o + "-arrowhead)"), (l === r.db.LINETYPE.BIDIRECTIONAL_SOLID || l === r.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (_.attr("marker-start", "url(" + I + "#" + o + "-arrowhead)"), _.attr("marker-end", "url(" + I + "#" + o + "-arrowhead)")), (l === r.db.LINETYPE.SOLID_POINT || l === r.db.LINETYPE.DOTTED_POINT) && _.attr("marker-end", "url(" + I + "#" + o + "-filled-head)"), (l === r.db.LINETYPE.SOLID_CROSS || l === r.db.LINETYPE.DOTTED_CROSS) && _.attr("marker-end", "url(" + I + "#" + o + "-crosshead)"), u || h.showSequenceNumbers) {
2184
+ const L = l === r.db.LINETYPE.BIDIRECTIONAL_SOLID || l === r.db.LINETYPE.BIDIRECTIONAL_DOTTED, b = l === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || l === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || l === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || l === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || l === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE || l === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || l === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || l === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED, S = 6, A = Qt(i, r);
2185
+ let N = s, B = n;
2186
+ L ? (s < n ? N = s + S * 2 : (N = s - S + (A ? -5 : 0), N += i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_DUAL || i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), _.attr("x1", N)) : b ? (n > s ? B = n - 2 * S : (B = n - S, N += i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_DUAL || i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), B += A ? 15 : 0, _.attr("x2", B), _.attr("x1", N)) : _.attr("x1", s + S);
2187
+ let V = 0;
2188
+ const q = s === n, U = s <= n;
2189
+ q ? V = t.fromBounds + 1 : b ? V = U ? t.toBounds - 1 : t.fromBounds + 1 : V = U ? t.fromBounds + 1 : t.toBounds - 1;
2190
+ let G = "12px";
2191
+ const X = x.toString().length;
2192
+ X > 5 ? G = "7px" : X > 3 && (G = "9px"), e.append("line").attr("x1", V).attr("y1", a).attr("x2", V).attr("y2", a).attr("stroke-width", 0).attr("marker-start", "url(" + I + "#" + o + "-sequencenumber)"), e.append("text").attr("x", V).attr("y", a + 4).attr("font-family", "sans-serif").attr("font-size", G).attr("text-anchor", "middle").attr("class", "sequenceNumber").text(x);
2193
+ }
2194
+ }, "drawMessage"), jr = /* @__PURE__ */ g(function(e, t, a, r, i, o, s) {
2195
+ let n = 0, E = 0, T, l = 0;
2196
+ for (const x of r) {
2197
+ const u = t.get(x), O = u.box;
2198
+ T && T != O && (s || R.models.addBox(T), E += h.boxMargin + T.margin), O && O != T && (s || (O.x = n + E, O.y = i), E += O.margin), u.width = P.getMax(u.width || h.width, h.width), u.height = P.getMax(u.height || h.height, h.height), u.margin = u.margin || h.actorMargin, l = P.getMax(l, u.height), a.get(u.name) && (E += u.width / 2), u.x = n + E, u.starty = R.getVerticalPos(), R.insert(u.x, i, u.x + u.width, u.height), n += u.width + E, u.box && (u.box.width = n + O.margin - u.box.x), E = u.margin, T = u.box, R.models.addActor(u);
2199
+ }
2200
+ T && !s && R.models.addBox(T), R.bumpVerticalPos(l);
2201
+ }, "addActorRenderingData"), te = /* @__PURE__ */ g(async function(e, t, a, r, i, o, s) {
2202
+ if (r) {
2203
+ let n = 0;
2204
+ R.bumpVerticalPos(h.boxMargin * 2);
2205
+ for (const E of a) {
2206
+ const T = t.get(E);
2207
+ T.stopy || (T.stopy = R.getVerticalPos());
2208
+ const l = await F.drawActor(
2209
+ e,
2210
+ T,
2211
+ h,
2212
+ !0,
2213
+ i,
2214
+ o,
2215
+ s
2216
+ );
2217
+ n = P.getMax(n, l);
2218
+ }
2219
+ R.bumpVerticalPos(n + h.boxMargin);
2220
+ } else
2221
+ for (const n of a) {
2222
+ const E = t.get(n);
2223
+ await F.drawActor(e, E, h, !1, i, o, s);
2224
+ }
2225
+ }, "drawActors"), qe = /* @__PURE__ */ g(function(e, t, a, r) {
2226
+ let i = 0, o = 0;
2227
+ for (const s of a) {
2228
+ const n = t.get(s), E = ea(n), T = F.drawPopup(
2229
+ e,
2230
+ n,
2231
+ E,
2232
+ h,
2233
+ h.forceMenus,
2234
+ r
2235
+ );
2236
+ T.height > i && (i = T.height), T.width + n.x > o && (o = T.width + n.x);
2237
+ }
2238
+ return { maxHeight: i, maxWidth: o };
2239
+ }, "drawActorsPopup"), He = /* @__PURE__ */ g(function(e) {
2240
+ rr(h, e), e.fontFamily && (h.actorFontFamily = h.noteFontFamily = h.messageFontFamily = e.fontFamily), e.fontSize && (h.actorFontSize = h.noteFontSize = h.messageFontSize = e.fontSize), e.fontWeight && (h.actorFontWeight = h.noteFontWeight = h.messageFontWeight = e.fontWeight);
2241
+ }, "setConf"), qt = /* @__PURE__ */ g(function(e) {
2242
+ return R.activations.filter(function(t) {
2243
+ return t.actor === e;
2244
+ });
2245
+ }, "actorActivations"), ve = /* @__PURE__ */ g(function(e, t) {
2246
+ const a = t.get(e), r = qt(e), i = r.reduce(
2247
+ function(s, n) {
2248
+ return P.getMin(s, n.startx);
2249
+ },
2250
+ a.x + a.width / 2 - 1
2251
+ ), o = r.reduce(
2252
+ function(s, n) {
2253
+ return P.getMax(s, n.stopx);
2254
+ },
2255
+ a.x + a.width / 2 + 1
2256
+ );
2257
+ return [i, o];
2258
+ }, "activationBounds");
2259
+ function ht(e, t, a, r, i) {
2260
+ R.bumpVerticalPos(a);
2261
+ let o = r;
2262
+ if (t.id && t.message && e[t.id]) {
2263
+ const s = e[t.id].width, n = Rt(h);
2264
+ t.message = Z.wrapLabel(`[${t.message}]`, s - 2 * h.wrapPadding, n), t.width = s, t.wrap = !0;
2265
+ const E = Z.calculateTextDimensions(t.message, n), T = P.getMax(E.height, h.labelBoxHeight);
2266
+ o = r + T, at.debug(`${T} - ${t.message}`);
2267
+ }
2268
+ i(t), R.bumpVerticalPos(o);
2269
+ }
2270
+ g(ht, "adjustLoopHeightForWrap");
2271
+ function ze(e, t, a, r, i, o, s) {
2272
+ function n(l, x) {
2273
+ l.x < i.get(e.from).x ? (R.insert(
2274
+ t.stopx - x,
2275
+ t.starty,
2276
+ t.startx,
2277
+ t.stopy + l.height / 2 + h.noteMargin
2278
+ ), t.stopx = t.stopx + x) : (R.insert(
2279
+ t.startx,
2280
+ t.starty,
2281
+ t.stopx + x,
2282
+ t.stopy + l.height / 2 + h.noteMargin
2283
+ ), t.stopx = t.stopx - x);
2284
+ }
2285
+ g(n, "receiverAdjustment");
2286
+ function E(l, x) {
2287
+ l.x < i.get(e.to).x ? (R.insert(
2288
+ t.startx - x,
2289
+ t.starty,
2290
+ t.stopx,
2291
+ t.stopy + l.height / 2 + h.noteMargin
2292
+ ), t.startx = t.startx + x) : (R.insert(
2293
+ t.stopx,
2294
+ t.starty,
2295
+ t.startx + x,
2296
+ t.stopy + l.height / 2 + h.noteMargin
2297
+ ), t.startx = t.startx - x);
2298
+ }
2299
+ g(E, "senderAdjustment");
2300
+ const T = [
2301
+ Vt.ACTOR,
2302
+ Vt.CONTROL,
2303
+ Vt.ENTITY,
2304
+ Vt.DATABASE
2305
+ ];
2306
+ if (o.get(e.to) == r) {
2307
+ const l = i.get(e.to), x = T.includes(l.type) ? It / 2 + 3 : l.width / 2 + 3;
2308
+ n(l, x), l.starty = a - l.height / 2, R.bumpVerticalPos(l.height / 2);
2309
+ } else if (s.get(e.from) == r) {
2310
+ const l = i.get(e.from);
2311
+ if (h.mirrorActors) {
2312
+ const x = T.includes(l.type) ? It / 2 : l.width / 2;
2313
+ E(l, x);
2314
+ }
2315
+ l.stopy = a - l.height / 2, R.bumpVerticalPos(l.height / 2);
2316
+ } else if (s.get(e.to) == r) {
2317
+ const l = i.get(e.to);
2318
+ if (h.mirrorActors) {
2319
+ const x = T.includes(l.type) ? It / 2 + 3 : l.width / 2 + 3;
2320
+ n(l, x);
2321
+ }
2322
+ l.stopy = a - l.height / 2, R.bumpVerticalPos(l.height / 2);
2323
+ }
2324
+ }
2325
+ g(ze, "adjustCreatedDestroyedData");
2326
+ var ta = /* @__PURE__ */ g(async function(e, t, a, r) {
2327
+ const { securityLevel: i, sequence: o, look: s } = $();
2328
+ h = o;
2329
+ let n;
2330
+ i === "sandbox" && (n = Mt("#i" + t));
2331
+ const E = i === "sandbox" ? Mt(n.nodes()[0].contentDocument.body) : Mt("body"), T = i === "sandbox" ? n.nodes()[0].contentDocument : document;
2332
+ R.init(), at.debug(r.db);
2333
+ const l = i === "sandbox" ? E.select(`[id="${t}"]`) : Mt(`[id="${t}"]`), x = r.db.getActors(), u = r.db.getCreatedActors(), O = r.db.getDestroyedActors(), p = r.db.getBoxes();
2334
+ let f = r.db.getActorKeys();
2335
+ const _ = r.db.getMessages(), I = r.db.getDiagramTitle(), L = r.db.hasAtLeastOneBox(), b = r.db.hasAtLeastOneBoxWithTitle(), S = await Ue(x, _, r);
2336
+ if (h.height = await Ge(x, S, p), F.insertComputerIcon(l, t), F.insertDatabaseIcon(l, t), F.insertClockIcon(l, t), L && (R.bumpVerticalPos(h.boxMargin), b && R.bumpVerticalPos(p[0].textMaxHeight)), h.hideUnusedParticipants === !0) {
2337
+ const m = /* @__PURE__ */ new Set();
2338
+ _.forEach((D) => {
2339
+ m.add(D.from), m.add(D.to);
2340
+ }), f = f.filter((D) => m.has(D));
2341
+ }
2342
+ const A = new Map(
2343
+ f.map((m, D) => [x.get(m)?.name ?? m, D])
2344
+ );
2345
+ jr(l, x, u, f, 0, _, !1);
2346
+ const N = await oa(_, x, S, r);
2347
+ F.insertArrowHead(l, t), F.insertArrowCrossHead(l, t), F.insertArrowFilledHead(l, t), F.insertSequenceNumber(l, t), F.insertSolidTopArrowHead(l, t), F.insertSolidBottomArrowHead(l, t), F.insertStickTopArrowHead(l, t), F.insertStickBottomArrowHead(l, t), s === "neo" && F.insertDropShadow(l, h);
2348
+ function B(m, D) {
2349
+ const lt = R.endActivation(m);
2350
+ lt.starty + 18 > D && (lt.starty = D - 6, D += 12), F.drawActivation(
2351
+ l,
2352
+ lt,
2353
+ D,
2354
+ h,
2355
+ qt(m.from).length,
2356
+ r,
2357
+ A
2358
+ ), R.insert(lt.startx, D - 10, lt.stopx, D);
2359
+ }
2360
+ g(B, "activeEnd");
2361
+ let V = 1, q = 1;
2362
+ const U = [], G = [];
2363
+ let X = 0;
2364
+ for (const m of _) {
2365
+ let D, lt, et;
2366
+ switch (m.type) {
2367
+ case r.db.LINETYPE.NOTE:
2368
+ R.resetVerticalPos(), lt = m.noteModel, await Qr(l, lt, m.id);
2369
+ break;
2370
+ case r.db.LINETYPE.ACTIVE_START:
2371
+ R.newActivation(m, l, x);
2372
+ break;
2373
+ case r.db.LINETYPE.CENTRAL_CONNECTION:
2374
+ R.newActivation(m, l, x);
2375
+ break;
2376
+ case r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:
2377
+ R.newActivation(m, l, x);
2378
+ break;
2379
+ case r.db.LINETYPE.ACTIVE_END:
2380
+ B(m, R.getVerticalPos());
2381
+ break;
2382
+ case r.db.LINETYPE.LOOP_START:
2383
+ ht(
2384
+ N,
2385
+ m,
2386
+ h.boxMargin,
2387
+ h.boxMargin + h.boxTextMargin,
2388
+ (W) => R.newLoop(W)
2389
+ );
2390
+ break;
2391
+ case r.db.LINETYPE.LOOP_END:
2392
+ D = R.endLoop(), await F.drawLoop(l, D, "loop", h, m), R.bumpVerticalPos(D.stopy - R.getVerticalPos()), R.models.addLoop(D);
2393
+ break;
2394
+ case r.db.LINETYPE.RECT_START:
2395
+ ht(
2396
+ N,
2397
+ m,
2398
+ h.boxMargin,
2399
+ h.boxMargin,
2400
+ (W) => R.newLoop(void 0, W.message)
2401
+ );
2402
+ break;
2403
+ case r.db.LINETYPE.RECT_END:
2404
+ D = R.endLoop(), G.push(D), R.models.addLoop(D), R.bumpVerticalPos(D.stopy - R.getVerticalPos());
2405
+ break;
2406
+ case r.db.LINETYPE.OPT_START:
2407
+ ht(
2408
+ N,
2409
+ m,
2410
+ h.boxMargin,
2411
+ h.boxMargin + h.boxTextMargin,
2412
+ (W) => R.newLoop(W)
2413
+ );
2414
+ break;
2415
+ case r.db.LINETYPE.OPT_END:
2416
+ D = R.endLoop(), await F.drawLoop(l, D, "opt", h, m), R.bumpVerticalPos(D.stopy - R.getVerticalPos()), R.models.addLoop(D);
2417
+ break;
2418
+ case r.db.LINETYPE.ALT_START:
2419
+ ht(
2420
+ N,
2421
+ m,
2422
+ h.boxMargin,
2423
+ h.boxMargin + h.boxTextMargin,
2424
+ (W) => R.newLoop(W)
2425
+ );
2426
+ break;
2427
+ case r.db.LINETYPE.ALT_ELSE:
2428
+ ht(
2429
+ N,
2430
+ m,
2431
+ h.boxMargin + h.boxTextMargin,
2432
+ h.boxMargin,
2433
+ (W) => R.addSectionToLoop(W)
2434
+ );
2435
+ break;
2436
+ case r.db.LINETYPE.ALT_END:
2437
+ D = R.endLoop(), await F.drawLoop(l, D, "alt", h, m), R.bumpVerticalPos(D.stopy - R.getVerticalPos()), R.models.addLoop(D);
2438
+ break;
2439
+ case r.db.LINETYPE.PAR_START:
2440
+ case r.db.LINETYPE.PAR_OVER_START:
2441
+ ht(
2442
+ N,
2443
+ m,
2444
+ h.boxMargin,
2445
+ h.boxMargin + h.boxTextMargin,
2446
+ (W) => R.newLoop(W)
2447
+ ), R.saveVerticalPos();
2448
+ break;
2449
+ case r.db.LINETYPE.PAR_AND:
2450
+ ht(
2451
+ N,
2452
+ m,
2453
+ h.boxMargin + h.boxTextMargin,
2454
+ h.boxMargin,
2455
+ (W) => R.addSectionToLoop(W)
2456
+ );
2457
+ break;
2458
+ case r.db.LINETYPE.PAR_END:
2459
+ D = R.endLoop(), await F.drawLoop(l, D, "par", h, m), R.bumpVerticalPos(D.stopy - R.getVerticalPos()), R.models.addLoop(D);
2460
+ break;
2461
+ case r.db.LINETYPE.AUTONUMBER:
2462
+ V = m.message.start || V, q = m.message.step || q, m.message.visible ? r.db.enableSequenceNumbers() : r.db.disableSequenceNumbers();
2463
+ break;
2464
+ case r.db.LINETYPE.CRITICAL_START:
2465
+ ht(
2466
+ N,
2467
+ m,
2468
+ h.boxMargin,
2469
+ h.boxMargin + h.boxTextMargin,
2470
+ (W) => R.newLoop(W)
2471
+ );
2472
+ break;
2473
+ case r.db.LINETYPE.CRITICAL_OPTION:
2474
+ ht(
2475
+ N,
2476
+ m,
2477
+ h.boxMargin + h.boxTextMargin,
2478
+ h.boxMargin,
2479
+ (W) => R.addSectionToLoop(W)
2480
+ );
2481
+ break;
2482
+ case r.db.LINETYPE.CRITICAL_END:
2483
+ D = R.endLoop(), await F.drawLoop(l, D, "critical", h, m), R.bumpVerticalPos(D.stopy - R.getVerticalPos()), R.models.addLoop(D);
2484
+ break;
2485
+ case r.db.LINETYPE.BREAK_START:
2486
+ ht(
2487
+ N,
2488
+ m,
2489
+ h.boxMargin,
2490
+ h.boxMargin + h.boxTextMargin,
2491
+ (W) => R.newLoop(W)
2492
+ );
2493
+ break;
2494
+ case r.db.LINETYPE.BREAK_END:
2495
+ D = R.endLoop(), await F.drawLoop(l, D, "break", h, m), R.bumpVerticalPos(D.stopy - R.getVerticalPos()), R.models.addLoop(D);
2496
+ break;
2497
+ default:
2498
+ try {
2499
+ et = m.msgModel, et.starty = R.getVerticalPos(), et.sequenceIndex = V, et.sequenceVisible = r.db.showSequenceNumbers(), et.id = m.id, et.from = m.from, et.to = m.to;
2500
+ const W = await Fe(l, et);
2501
+ ze(
2502
+ m,
2503
+ et,
2504
+ W,
2505
+ X,
2506
+ x,
2507
+ u,
2508
+ O
2509
+ ), U.push({ messageModel: et, lineStartY: W, msg: m }), R.models.addMessage(et);
2510
+ } catch (W) {
2511
+ at.error("error while drawing message", W);
2512
+ }
2513
+ }
2514
+ [
2515
+ r.db.LINETYPE.SOLID_OPEN,
2516
+ r.db.LINETYPE.DOTTED_OPEN,
2517
+ r.db.LINETYPE.SOLID,
2518
+ r.db.LINETYPE.SOLID_TOP,
2519
+ r.db.LINETYPE.SOLID_BOTTOM,
2520
+ r.db.LINETYPE.STICK_TOP,
2521
+ r.db.LINETYPE.STICK_BOTTOM,
2522
+ r.db.LINETYPE.SOLID_TOP_DOTTED,
2523
+ r.db.LINETYPE.SOLID_BOTTOM_DOTTED,
2524
+ r.db.LINETYPE.STICK_TOP_DOTTED,
2525
+ r.db.LINETYPE.STICK_BOTTOM_DOTTED,
2526
+ r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
2527
+ r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,
2528
+ r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
2529
+ r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
2530
+ r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
2531
+ r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
2532
+ r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
2533
+ r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
2534
+ r.db.LINETYPE.DOTTED,
2535
+ r.db.LINETYPE.SOLID_CROSS,
2536
+ r.db.LINETYPE.DOTTED_CROSS,
2537
+ r.db.LINETYPE.SOLID_POINT,
2538
+ r.db.LINETYPE.DOTTED_POINT,
2539
+ r.db.LINETYPE.BIDIRECTIONAL_SOLID,
2540
+ r.db.LINETYPE.BIDIRECTIONAL_DOTTED
2541
+ ].includes(m.type) && (V = Math.round((V + q) * 100) / 100), X++;
2542
+ }
2543
+ at.debug("createdActors", u), at.debug("destroyedActors", O), await te(l, x, f, !1, t, r, A);
2544
+ for (const m of U)
2545
+ await $r(l, m.messageModel, m.lineStartY, r, m.msg, t);
2546
+ h.mirrorActors && await te(l, x, f, !0, t, r, A), G.forEach((m) => F.drawBackgroundRect(l, m)), Ye(l, x, f, h);
2547
+ for (const m of R.models.boxes) {
2548
+ m.height = R.getVerticalPos() - m.y, R.insert(m.x, m.y, m.x + m.width, m.height);
2549
+ const D = h.boxMargin * 2;
2550
+ m.startx = m.x - D, m.starty = m.y - D * 0.25, m.stopx = m.startx + m.width + 2 * D, m.stopy = m.starty + m.height + D * 0.75, m.stroke = "rgb(0,0,0, 0.5)", F.drawBox(l, m, h);
2551
+ }
2552
+ L && R.bumpVerticalPos(h.boxMargin);
2553
+ const j = qe(l, x, f, T), { bounds: H } = R.getBounds();
2554
+ H.startx === void 0 && (H.startx = 0), H.starty === void 0 && (H.starty = 0), H.stopx === void 0 && (H.stopx = 0), H.stopy === void 0 && (H.stopy = 0);
2555
+ let st = H.stopy - H.starty;
2556
+ st < j.maxHeight && (st = j.maxHeight);
2557
+ let tt = st + 2 * h.diagramMarginY;
2558
+ h.mirrorActors && (tt = tt - h.boxMargin + h.bottomMarginAdj);
2559
+ let it = H.stopx - H.startx;
2560
+ it < j.maxWidth && (it = j.maxWidth);
2561
+ const Y = it + 2 * h.diagramMarginX;
2562
+ I && l.append("text").text(I).attr("x", (H.stopx - H.startx) / 2 - 2 * h.diagramMarginX).attr("y", -25), er(l, tt, Y, h.useMaxWidth);
2563
+ const C = I ? 40 : 0, Nt = x.size && s === "neo" ? 30 : 0;
2564
+ l.attr(
2565
+ "viewBox",
2566
+ H.startx - h.diagramMarginX + " -" + (h.diagramMarginY + C) + " " + Y + " " + (tt + C + Nt)
2567
+ ), at.debug("models:", R.models);
2568
+ }, "draw");
2569
+ async function Ue(e, t, a) {
2570
+ const r = {};
2571
+ for (const i of t)
2572
+ if (e.get(i.to) && e.get(i.from)) {
2573
+ const o = e.get(i.to);
2574
+ if (i.placement === a.db.PLACEMENT.LEFTOF && !o.prevActor || i.placement === a.db.PLACEMENT.RIGHTOF && !o.nextActor)
2575
+ continue;
2576
+ const s = i.placement !== void 0, n = !s, E = s ? Lt(h) : Rt(h), T = i.wrap ? Z.wrapLabel(i.message, h.width - 2 * h.wrapPadding, E) : i.message, x = (Q(T) ? await wt(i.message, $()) : Z.calculateTextDimensions(T, E)).width + 2 * h.wrapPadding;
2577
+ n && i.from === o.nextActor ? r[i.to] = P.getMax(
2578
+ r[i.to] || 0,
2579
+ x
2580
+ ) : n && i.from === o.prevActor ? r[i.from] = P.getMax(
2581
+ r[i.from] || 0,
2582
+ x
2583
+ ) : n && i.from === i.to ? (r[i.from] = P.getMax(
2584
+ r[i.from] || 0,
2585
+ x / 2
2586
+ ), r[i.to] = P.getMax(
2587
+ r[i.to] || 0,
2588
+ x / 2
2589
+ )) : i.placement === a.db.PLACEMENT.RIGHTOF ? r[i.from] = P.getMax(
2590
+ r[i.from] || 0,
2591
+ x
2592
+ ) : i.placement === a.db.PLACEMENT.LEFTOF ? r[o.prevActor] = P.getMax(
2593
+ r[o.prevActor] || 0,
2594
+ x
2595
+ ) : i.placement === a.db.PLACEMENT.OVER && (o.prevActor && (r[o.prevActor] = P.getMax(
2596
+ r[o.prevActor] || 0,
2597
+ x / 2
2598
+ )), o.nextActor && (r[i.from] = P.getMax(
2599
+ r[i.from] || 0,
2600
+ x / 2
2601
+ )));
2602
+ }
2603
+ return at.debug("maxMessageWidthPerActor:", r), r;
2604
+ }
2605
+ g(Ue, "getMaxMessageWidthPerActor");
2606
+ var ea = /* @__PURE__ */ g(function(e) {
2607
+ let t = 0;
2608
+ const a = jt(h);
2609
+ for (const r in e.links) {
2610
+ const o = Z.calculateTextDimensions(r, a).width + 2 * h.wrapPadding + 2 * h.boxMargin;
2611
+ t < o && (t = o);
2612
+ }
2613
+ return t;
2614
+ }, "getRequiredPopupWidth");
2615
+ async function Ge(e, t, a) {
2616
+ let r = 0;
2617
+ for (const o of e.keys()) {
2618
+ const s = e.get(o);
2619
+ s.wrap && (s.description = Z.wrapLabel(
2620
+ s.description,
2621
+ h.width - 2 * h.wrapPadding,
2622
+ jt(h)
2623
+ ));
2624
+ const n = Q(s.description) ? await wt(s.description, $()) : Z.calculateTextDimensions(s.description, jt(h));
2625
+ s.width = s.wrap ? h.width : P.getMax(h.width, n.width + 2 * h.wrapPadding), s.height = s.wrap ? P.getMax(n.height, h.height) : h.height, r = P.getMax(r, s.height);
2626
+ }
2627
+ for (const o in t) {
2628
+ const s = e.get(o);
2629
+ if (!s)
2630
+ continue;
2631
+ const n = e.get(s.nextActor);
2632
+ if (!n) {
2633
+ const x = t[o] + h.actorMargin - s.width / 2;
2634
+ s.margin = P.getMax(x, h.actorMargin);
2635
+ continue;
2636
+ }
2637
+ const T = t[o] + h.actorMargin - s.width / 2 - n.width / 2;
2638
+ s.margin = P.getMax(T, h.actorMargin);
2639
+ }
2640
+ let i = 0;
2641
+ return a.forEach((o) => {
2642
+ const s = Rt(h);
2643
+ let n = o.actorKeys.reduce((x, u) => x += e.get(u).width + (e.get(u).margin || 0), 0);
2644
+ const E = h.boxMargin * 8;
2645
+ n += E, n -= 2 * h.boxTextMargin, o.wrap && (o.name = Z.wrapLabel(o.name, n - 2 * h.wrapPadding, s));
2646
+ const T = Z.calculateTextDimensions(o.name, s);
2647
+ i = P.getMax(T.height, i);
2648
+ const l = P.getMax(n, T.width + 2 * h.wrapPadding);
2649
+ if (o.margin = h.boxTextMargin, n < l) {
2650
+ const x = (l - n) / 2;
2651
+ o.margin += x;
2652
+ }
2653
+ }), a.forEach((o) => o.textMaxHeight = i), P.getMax(r, h.height);
2654
+ }
2655
+ g(Ge, "calculateActorMargins");
2656
+ var ra = /* @__PURE__ */ g(async function(e, t, a) {
2657
+ const r = t.get(e.from), i = t.get(e.to), o = r.x, s = i.x, n = e.wrap && e.message;
2658
+ let E = Q(e.message) ? await wt(e.message, $()) : Z.calculateTextDimensions(
2659
+ n ? Z.wrapLabel(e.message, h.width, Lt(h)) : e.message,
2660
+ Lt(h)
2661
+ );
2662
+ const T = {
2663
+ width: n ? h.width : P.getMax(h.width, E.width + 2 * h.noteMargin),
2664
+ height: 0,
2665
+ startx: r.x,
2666
+ stopx: 0,
2667
+ starty: 0,
2668
+ stopy: 0,
2669
+ message: e.message
2670
+ };
2671
+ return e.placement === a.db.PLACEMENT.RIGHTOF ? (T.width = n ? P.getMax(h.width, E.width) : P.getMax(
2672
+ r.width / 2 + i.width / 2,
2673
+ E.width + 2 * h.noteMargin
2674
+ ), T.startx = o + (r.width + h.actorMargin) / 2) : e.placement === a.db.PLACEMENT.LEFTOF ? (T.width = n ? P.getMax(h.width, E.width + 2 * h.noteMargin) : P.getMax(
2675
+ r.width / 2 + i.width / 2,
2676
+ E.width + 2 * h.noteMargin
2677
+ ), T.startx = o - T.width + (r.width - h.actorMargin) / 2) : e.to === e.from ? (E = Z.calculateTextDimensions(
2678
+ n ? Z.wrapLabel(e.message, P.getMax(h.width, r.width), Lt(h)) : e.message,
2679
+ Lt(h)
2680
+ ), T.width = n ? P.getMax(h.width, r.width) : P.getMax(r.width, h.width, E.width + 2 * h.noteMargin), T.startx = o + (r.width - T.width) / 2) : (T.width = Math.abs(o + r.width / 2 - (s + i.width / 2)) + h.actorMargin, T.startx = o < s ? o + r.width / 2 - h.actorMargin / 2 : s + i.width / 2 - h.actorMargin / 2), n && (T.message = Z.wrapLabel(
2681
+ e.message,
2682
+ T.width - 2 * h.wrapPadding,
2683
+ Lt(h)
2684
+ )), at.debug(
2685
+ `NM:[${T.startx},${T.stopx},${T.starty},${T.stopy}:${T.width},${T.height}=${e.message}]`
2686
+ ), T;
2687
+ }, "buildNoteModel"), aa = 4, Qt = /* @__PURE__ */ g(function(e, t) {
2688
+ const { CENTRAL_CONNECTION: a, CENTRAL_CONNECTION_REVERSE: r, CENTRAL_CONNECTION_DUAL: i } = t.db.LINETYPE;
2689
+ return [a, r, i].includes(
2690
+ e.centralConnection
2691
+ );
2692
+ }, "hasCentralConnection"), sa = /* @__PURE__ */ g(function(e, t, a) {
2693
+ const {
2694
+ CENTRAL_CONNECTION_REVERSE: r,
2695
+ CENTRAL_CONNECTION_DUAL: i,
2696
+ BIDIRECTIONAL_SOLID: o,
2697
+ BIDIRECTIONAL_DOTTED: s
2698
+ } = t.db.LINETYPE;
2699
+ let n = 0;
2700
+ return (e.centralConnection === r || e.centralConnection === i) && (n += aa), (e.centralConnection === r || e.centralConnection === i) && (e.type === o || e.type === s) && (n += a ? 0 : -6), n;
2701
+ }, "calculateCentralConnectionOffset"), Xe = /* @__PURE__ */ g(function(e, t) {
2702
+ const {
2703
+ SOLID_ARROW_TOP_REVERSE: a,
2704
+ SOLID_ARROW_TOP_REVERSE_DOTTED: r,
2705
+ SOLID_ARROW_BOTTOM_REVERSE: i,
2706
+ SOLID_ARROW_BOTTOM_REVERSE_DOTTED: o,
2707
+ STICK_ARROW_TOP_REVERSE: s,
2708
+ STICK_ARROW_TOP_REVERSE_DOTTED: n,
2709
+ STICK_ARROW_BOTTOM_REVERSE: E,
2710
+ STICK_ARROW_BOTTOM_REVERSE_DOTTED: T
2711
+ } = t.db.LINETYPE;
2712
+ return [
2713
+ a,
2714
+ r,
2715
+ i,
2716
+ o,
2717
+ s,
2718
+ n,
2719
+ E,
2720
+ T
2721
+ ].includes(e.type);
2722
+ }, "isReverseArrowType"), ia = /* @__PURE__ */ g(function(e, t) {
2723
+ const { BIDIRECTIONAL_SOLID: a, BIDIRECTIONAL_DOTTED: r } = t.db.LINETYPE;
2724
+ return [a, r].includes(e.type);
2725
+ }, "isBidirectionalArrowType"), na = /* @__PURE__ */ g(function(e, t, a) {
2726
+ const { look: r } = $();
2727
+ if (![
2728
+ a.db.LINETYPE.SOLID_OPEN,
2729
+ a.db.LINETYPE.DOTTED_OPEN,
2730
+ a.db.LINETYPE.SOLID,
2731
+ a.db.LINETYPE.SOLID_TOP,
2732
+ a.db.LINETYPE.SOLID_BOTTOM,
2733
+ a.db.LINETYPE.STICK_TOP,
2734
+ a.db.LINETYPE.STICK_BOTTOM,
2735
+ a.db.LINETYPE.SOLID_TOP_DOTTED,
2736
+ a.db.LINETYPE.SOLID_BOTTOM_DOTTED,
2737
+ a.db.LINETYPE.STICK_TOP_DOTTED,
2738
+ a.db.LINETYPE.STICK_BOTTOM_DOTTED,
2739
+ a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
2740
+ a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,
2741
+ a.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
2742
+ a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
2743
+ a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
2744
+ a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
2745
+ a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
2746
+ a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
2747
+ a.db.LINETYPE.DOTTED,
2748
+ a.db.LINETYPE.SOLID_CROSS,
2749
+ a.db.LINETYPE.DOTTED_CROSS,
2750
+ a.db.LINETYPE.SOLID_POINT,
2751
+ a.db.LINETYPE.DOTTED_POINT,
2752
+ a.db.LINETYPE.BIDIRECTIONAL_SOLID,
2753
+ a.db.LINETYPE.BIDIRECTIONAL_DOTTED
2754
+ ].includes(e.type))
2755
+ return {};
2756
+ const [i, o] = ve(e.from, t), [s, n] = ve(e.to, t), E = i <= s;
2757
+ let T = E ? o : i, l = E ? s : n;
2758
+ r === "neo" && (e.type !== a.db.LINETYPE.SOLID_OPEN && (l += E ? -3 : 3), (e.type === a.db.LINETYPE.BIDIRECTIONAL_SOLID || e.type === a.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (T += E ? 3 : -3)), T += sa(e, a, E);
2759
+ const x = Math.abs(s - n) > 2, u = /* @__PURE__ */ g((_) => E ? -_ : _, "adjustValue");
2760
+ e.from === e.to ? l = T : (e.activate && !x && (l += u(h.activationWidth / 2 - 1)), [
2761
+ a.db.LINETYPE.SOLID_OPEN,
2762
+ a.db.LINETYPE.DOTTED_OPEN,
2763
+ a.db.LINETYPE.STICK_TOP,
2764
+ a.db.LINETYPE.STICK_BOTTOM,
2765
+ a.db.LINETYPE.STICK_TOP_DOTTED,
2766
+ a.db.LINETYPE.STICK_BOTTOM_DOTTED,
2767
+ a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
2768
+ a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
2769
+ a.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
2770
+ a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
2771
+ a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
2772
+ a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
2773
+ a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
2774
+ a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
2775
+ ].includes(e.type) || (l += u(3)), [
2776
+ a.db.LINETYPE.BIDIRECTIONAL_SOLID,
2777
+ a.db.LINETYPE.BIDIRECTIONAL_DOTTED,
2778
+ a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
2779
+ a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
2780
+ a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
2781
+ a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
2782
+ ].includes(e.type) && (T -= u(3)));
2783
+ const O = [i, o, s, n], p = Math.abs(T - l);
2784
+ e.wrap && e.message && (e.message = Z.wrapLabel(
2785
+ e.message,
2786
+ P.getMax(p + 2 * h.wrapPadding, h.width),
2787
+ Rt(h)
2788
+ ));
2789
+ const f = Z.calculateTextDimensions(e.message, Rt(h));
2790
+ return {
2791
+ width: P.getMax(
2792
+ e.wrap ? 0 : f.width + 2 * h.wrapPadding,
2793
+ p + 2 * h.wrapPadding,
2794
+ h.width
2795
+ ),
2796
+ height: 0,
2797
+ startx: T,
2798
+ stopx: l,
2799
+ starty: 0,
2800
+ stopy: 0,
2801
+ message: e.message,
2802
+ type: e.type,
2803
+ wrap: e.wrap,
2804
+ fromBounds: Math.min.apply(null, O),
2805
+ toBounds: Math.max.apply(null, O)
2806
+ };
2807
+ }, "buildMessageModel"), oa = /* @__PURE__ */ g(async function(e, t, a, r) {
2808
+ const i = {}, o = [];
2809
+ let s, n, E;
2810
+ for (const T of e) {
2811
+ switch (T.type) {
2812
+ case r.db.LINETYPE.LOOP_START:
2813
+ case r.db.LINETYPE.ALT_START:
2814
+ case r.db.LINETYPE.OPT_START:
2815
+ case r.db.LINETYPE.PAR_START:
2816
+ case r.db.LINETYPE.PAR_OVER_START:
2817
+ case r.db.LINETYPE.CRITICAL_START:
2818
+ case r.db.LINETYPE.BREAK_START:
2819
+ o.push({
2820
+ id: T.id,
2821
+ msg: T.message,
2822
+ from: Number.MAX_SAFE_INTEGER,
2823
+ to: Number.MIN_SAFE_INTEGER,
2824
+ width: 0
2825
+ });
2826
+ break;
2827
+ case r.db.LINETYPE.ALT_ELSE:
2828
+ case r.db.LINETYPE.PAR_AND:
2829
+ case r.db.LINETYPE.CRITICAL_OPTION:
2830
+ T.message && (s = o.pop(), i[s.id] = s, i[T.id] = s, o.push(s));
2831
+ break;
2832
+ case r.db.LINETYPE.LOOP_END:
2833
+ case r.db.LINETYPE.ALT_END:
2834
+ case r.db.LINETYPE.OPT_END:
2835
+ case r.db.LINETYPE.PAR_END:
2836
+ case r.db.LINETYPE.CRITICAL_END:
2837
+ case r.db.LINETYPE.BREAK_END:
2838
+ s = o.pop(), i[s.id] = s;
2839
+ break;
2840
+ case r.db.LINETYPE.ACTIVE_START:
2841
+ {
2842
+ const x = t.get(T.from ? T.from : T.to.actor), u = qt(T.from ? T.from : T.to.actor).length, O = x.x + x.width / 2 + (u - 1) * h.activationWidth / 2, p = {
2843
+ startx: O,
2844
+ stopx: O + h.activationWidth,
2845
+ actor: T.from,
2846
+ enabled: !0
2847
+ };
2848
+ R.activations.push(p);
2849
+ }
2850
+ break;
2851
+ case r.db.LINETYPE.ACTIVE_END:
2852
+ {
2853
+ const x = R.activations.map((u) => u.actor).lastIndexOf(T.from);
2854
+ R.activations.splice(x, 1).splice(0, 1);
2855
+ }
2856
+ break;
2857
+ }
2858
+ T.placement !== void 0 ? (n = await ra(T, t, r), T.noteModel = n, o.forEach((x) => {
2859
+ s = x, s.from = P.getMin(s.from, n.startx), s.to = P.getMax(s.to, n.startx + n.width), s.width = P.getMax(s.width, Math.abs(s.from - s.to)) - h.labelBoxWidth;
2860
+ })) : (E = na(T, t, r), T.msgModel = E, E.startx && E.stopx && o.length > 0 && o.forEach((x) => {
2861
+ if (s = x, E.startx === E.stopx) {
2862
+ const u = t.get(T.from), O = t.get(T.to);
2863
+ s.from = P.getMin(
2864
+ u.x - E.width / 2,
2865
+ u.x - u.width / 2,
2866
+ s.from
2867
+ ), s.to = P.getMax(
2868
+ O.x + E.width / 2,
2869
+ O.x + u.width / 2,
2870
+ s.to
2871
+ ), s.width = P.getMax(s.width, Math.abs(s.to - s.from)) - h.labelBoxWidth;
2872
+ } else
2873
+ s.from = P.getMin(E.startx, s.from), s.to = P.getMax(E.stopx, s.to), s.width = P.getMax(s.width, E.width) - h.labelBoxWidth;
2874
+ }));
2875
+ }
2876
+ return R.activations = [], at.debug("Loop type widths:", i), i;
2877
+ }, "calculateLoopBounds"), ca = {
2878
+ bounds: R,
2879
+ drawActors: te,
2880
+ drawActorsPopup: qe,
2881
+ setConf: He,
2882
+ draw: ta
2883
+ }, Ta = {
2884
+ parser: fr,
2885
+ get db() {
2886
+ return new Ir();
2887
+ },
2888
+ renderer: ca,
2889
+ styles: Rr,
2890
+ init: /* @__PURE__ */ g((e) => {
2891
+ e.sequence || (e.sequence = {}), e.wrap && (e.sequence.wrap = e.wrap, tr({ sequence: { wrap: e.wrap } }));
2892
+ }, "init")
2893
+ };
2894
+ export {
2895
+ Ta as diagram
2896
+ };
2897
+ //# sourceMappingURL=sequenceDiagram-3UESZ5HK-UHhixLbD.js.map