@countermeasure-platform/web-components 1.2.1-dev.6.1 → 1.2.2-dev.7.1

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 (302) hide show
  1. package/dist/{arc-jVbrWVYZ.js → arc-DOJ9myHo.js} +21 -21
  2. package/dist/{arc-jVbrWVYZ.js.map → arc-DOJ9myHo.js.map} +1 -1
  3. package/dist/architecture-7EHR7CIX-RjIwnEbG.js +3 -0
  4. package/dist/{architectureDiagram-2XIMDMQ5-D5q0ma9h.js → architectureDiagram-3BPJPVTR-cYFnhp15.js} +165 -152
  5. package/dist/{architectureDiagram-2XIMDMQ5-D5q0ma9h.js.map → architectureDiagram-3BPJPVTR-cYFnhp15.js.map} +1 -1
  6. package/dist/{array-DXadUs1s.js → array-BLp0zq5K.js} +1 -1
  7. package/dist/{array-DXadUs1s.js.map → array-BLp0zq5K.js.map} +1 -1
  8. package/dist/{blockDiagram-WCTKOSBZ-BH3jwWeU.js → blockDiagram-GPEHLZMM-DNLPMFXL.js} +994 -864
  9. package/dist/blockDiagram-GPEHLZMM-DNLPMFXL.js.map +1 -0
  10. package/dist/{c4Diagram-IC4MRINW-OFLrunYI.js → c4Diagram-AAUBKEIU-G8g3OBBg.js} +232 -235
  11. package/dist/c4Diagram-AAUBKEIU-G8g3OBBg.js.map +1 -0
  12. package/dist/channel-MTYqUJFm.js +7 -0
  13. package/dist/{channel-LRbq43st.js.map → channel-MTYqUJFm.js.map} +1 -1
  14. package/dist/{chunk-KX2RTZJC-d9jFqUAY.js → chunk-2J33WTMH-BKsVIUnb.js} +4 -4
  15. package/dist/{chunk-KX2RTZJC-d9jFqUAY.js.map → chunk-2J33WTMH-BKsVIUnb.js.map} +1 -1
  16. package/dist/chunk-3OPIFGDE-CcNRL44h.js +3669 -0
  17. package/dist/chunk-3OPIFGDE-CcNRL44h.js.map +1 -0
  18. package/dist/{chunk-4BX2VUAB-BS9gpN-y.js → chunk-4BX2VUAB-BeLKo9Pn.js} +2 -2
  19. package/dist/{chunk-4BX2VUAB-BS9gpN-y.js.map → chunk-4BX2VUAB-BeLKo9Pn.js.map} +1 -1
  20. package/dist/{chunk-R5LLSJPH-c1IfaK5D.js → chunk-4EGX6M5U-Bh9as06l.js} +13 -13
  21. package/dist/chunk-4EGX6M5U-Bh9as06l.js.map +1 -0
  22. package/dist/{chunk-55IACEB6-DZ-UBhHX.js → chunk-55IACEB6-CuKbiO89.js} +3 -3
  23. package/dist/{chunk-55IACEB6-DZ-UBhHX.js.map → chunk-55IACEB6-CuKbiO89.js.map} +1 -1
  24. package/dist/chunk-5DO6E6H7-CAB8pWf5.js +25 -0
  25. package/dist/chunk-5DO6E6H7-CAB8pWf5.js.map +1 -0
  26. package/dist/{chunk-GEFDOKGD-DGJJEGSm.js → chunk-5ZQYHXKU-CjOcwRY6.js} +570 -326
  27. package/dist/chunk-5ZQYHXKU-CjOcwRY6.js.map +1 -0
  28. package/dist/{chunk-WL4C6EOR-BV-op7zg.js → chunk-727SXJPM-kowsFLrz.js} +724 -569
  29. package/dist/chunk-727SXJPM-kowsFLrz.js.map +1 -0
  30. package/dist/{chunk-NQ4KR5QH-C0nWShNk.js → chunk-AQP2D5EJ-Bc1gUIeA.js} +384 -362
  31. package/dist/chunk-AQP2D5EJ-Bc1gUIeA.js.map +1 -0
  32. package/dist/{chunk-OZEHJAEY-BsQ56PV-.js → chunk-BR22UD5L-BCFxmd5-.js} +16 -16
  33. package/dist/chunk-BR22UD5L-BCFxmd5-.js.map +1 -0
  34. package/dist/{chunk-MX3YWQON-D43mcq1f.js → chunk-BSJP7CBP-Bl94i3-1.js} +7 -5
  35. package/dist/chunk-BSJP7CBP-Bl94i3-1.js.map +1 -0
  36. package/dist/chunk-CSCIHK7Q-DyRIc27i.js +2868 -0
  37. package/dist/chunk-CSCIHK7Q-DyRIc27i.js.map +1 -0
  38. package/dist/chunk-FHYWG6QK-kLWdRarG.js +25 -0
  39. package/dist/chunk-FHYWG6QK-kLWdRarG.js.map +1 -0
  40. package/dist/{chunk-FMBD7UC4-1IxrpdPX.js → chunk-FMBD7UC4-IdpWVRCU.js} +2 -2
  41. package/dist/{chunk-FMBD7UC4-1IxrpdPX.js.map → chunk-FMBD7UC4-IdpWVRCU.js.map} +1 -1
  42. package/dist/chunk-KSCS5N6A-CVcDS9QV.js +563 -0
  43. package/dist/chunk-KSCS5N6A-CVcDS9QV.js.map +1 -0
  44. package/dist/{chunk-YBOYWFTD-DkjEOcgZ.js → chunk-L5ZTLDWV-Day0EgsR.js} +9 -9
  45. package/dist/{chunk-YBOYWFTD-DkjEOcgZ.js.map → chunk-L5ZTLDWV-Day0EgsR.js.map} +1 -1
  46. package/dist/chunk-LZXEDZCA-BO_GpQSR.js +51 -0
  47. package/dist/chunk-LZXEDZCA-BO_GpQSR.js.map +1 -0
  48. package/dist/chunk-MPE355IW-BkN6MrMO.js +25 -0
  49. package/dist/chunk-MPE355IW-BkN6MrMO.js.map +1 -0
  50. package/dist/chunk-MZUSXYTE-94iWO-dh.js +32 -0
  51. package/dist/chunk-MZUSXYTE-94iWO-dh.js.map +1 -0
  52. package/dist/chunk-N66VUXT2-QbIUkiJZ.js +56 -0
  53. package/dist/chunk-N66VUXT2-QbIUkiJZ.js.map +1 -0
  54. package/dist/{chunk-JSJVCQXG-Do17yYig.js → chunk-ND2GUHAM-Boh7GenS.js} +6 -6
  55. package/dist/{chunk-JSJVCQXG-Do17yYig.js.map → chunk-ND2GUHAM-Boh7GenS.js.map} +1 -1
  56. package/dist/chunk-NNHCCRGN-CNU0zvRn.js +20603 -0
  57. package/dist/chunk-NNHCCRGN-CNU0zvRn.js.map +1 -0
  58. package/dist/{chunk-PQ6SQG4A-Cpfc5F4u.js → chunk-NZK2D7GU-D4Ird7wv.js} +4 -4
  59. package/dist/{chunk-PQ6SQG4A-Cpfc5F4u.js.map → chunk-NZK2D7GU-D4Ird7wv.js.map} +1 -1
  60. package/dist/{chunk-PU5JKC2W-DNpn_Yik.js → chunk-O5CBEL6O-DThtyjPO.js} +85 -74
  61. package/dist/{chunk-PU5JKC2W-DNpn_Yik.js.map → chunk-O5CBEL6O-DThtyjPO.js.map} +1 -1
  62. package/dist/chunk-PUPMXCY4-DsO2K8st.js +25 -0
  63. package/dist/chunk-PUPMXCY4-DsO2K8st.js.map +1 -0
  64. package/dist/{chunk-QZHKN3VN-kDNdTVLo.js → chunk-QZHKN3VN-DC5aJQQT.js} +2 -2
  65. package/dist/{chunk-QZHKN3VN-kDNdTVLo.js.map → chunk-QZHKN3VN-DC5aJQQT.js.map} +1 -1
  66. package/dist/chunk-UIBZB4QT-Cu3IcTk1.js +25 -0
  67. package/dist/chunk-UIBZB4QT-Cu3IcTk1.js.map +1 -0
  68. package/dist/chunk-WCWK7LTN-DpMt57Ty.js +33 -0
  69. package/dist/chunk-WCWK7LTN-DpMt57Ty.js.map +1 -0
  70. package/dist/chunk-WU5MYG2G-mzocEmS2.js +12 -0
  71. package/dist/{chunk-HHEYEP7N-DJ1b-gA8.js.map → chunk-WU5MYG2G-mzocEmS2.js.map} +1 -1
  72. package/dist/{chunk-XPW4576I-BqiPnb3d.js → chunk-XPW4576I-BwxN5U1_.js} +2 -2
  73. package/dist/{chunk-XPW4576I-BqiPnb3d.js.map → chunk-XPW4576I-BwxN5U1_.js.map} +1 -1
  74. package/dist/classDiagram-4FO5ZUOK-CZv04EX-.js +31 -0
  75. package/dist/{classDiagram-VBA2DB6C-DZfC0xPM.js.map → classDiagram-4FO5ZUOK-CZv04EX-.js.map} +1 -1
  76. package/dist/classDiagram-v2-Q7XG4LA2-aOPSPoxt.js +31 -0
  77. package/dist/{classDiagram-v2-RAHNMMFH-CtWRD1ax.js.map → classDiagram-v2-Q7XG4LA2-aOPSPoxt.js.map} +1 -1
  78. package/dist/component-Dye0I6sO.js +145 -0
  79. package/dist/component-Dye0I6sO.js.map +1 -0
  80. package/dist/components/brand/index.d.ts +8 -2
  81. package/dist/components/brand/index.d.ts.map +1 -1
  82. package/dist/components/brand/index.js +58 -31
  83. package/dist/components/brand/index.js.map +1 -1
  84. package/dist/components/brand/types.d.ts +8 -0
  85. package/dist/components/brand/types.d.ts.map +1 -1
  86. package/dist/{cose-bilkent-S5V4N54A-DxM02fly.js → cose-bilkent-S5V4N54A-D_hwzCJc.js} +7 -8
  87. package/dist/{cose-bilkent-S5V4N54A-DxM02fly.js.map → cose-bilkent-S5V4N54A-D_hwzCJc.js.map} +1 -1
  88. package/dist/{cytoscape.esm-2vKMh7AJ.js → cytoscape.esm-C85eXBIz.js} +1 -1
  89. package/dist/{cytoscape.esm-2vKMh7AJ.js.map → cytoscape.esm-C85eXBIz.js.map} +1 -1
  90. package/dist/dagre-BM42HDAG-DBqY2dVf.js +299 -0
  91. package/dist/dagre-BM42HDAG-DBqY2dVf.js.map +1 -0
  92. package/dist/dagre-IxFkiJHF.js +1938 -0
  93. package/dist/dagre-IxFkiJHF.js.map +1 -0
  94. package/dist/{defaultLocale-PLHpRrsr.js → defaultLocale-DSDxELFN.js} +1 -1
  95. package/dist/{defaultLocale-PLHpRrsr.js.map → defaultLocale-DSDxELFN.js.map} +1 -1
  96. package/dist/{diagram-IFDJBPK2-D-Enf1mK.js → diagram-2AECGRRQ-BwC5Qbme.js} +39 -39
  97. package/dist/{diagram-IFDJBPK2-D-Enf1mK.js.map → diagram-2AECGRRQ-BwC5Qbme.js.map} +1 -1
  98. package/dist/diagram-5GNKFQAL-BpJ9oZ4s.js +103 -0
  99. package/dist/diagram-5GNKFQAL-BpJ9oZ4s.js.map +1 -0
  100. package/dist/diagram-KO2AKTUF-kSLn21uw.js +434 -0
  101. package/dist/diagram-KO2AKTUF-kSLn21uw.js.map +1 -0
  102. package/dist/{diagram-P4PSJMXO-O8g_RIkM.js → diagram-LMA3HP47-BRqyGMLP.js} +43 -43
  103. package/dist/{diagram-P4PSJMXO-O8g_RIkM.js.map → diagram-LMA3HP47-BRqyGMLP.js.map} +1 -1
  104. package/dist/{diagram-E7M64L7V-Co7O3gub.js → diagram-OG6HWLK6-BsskLXHm.js} +171 -174
  105. package/dist/diagram-OG6HWLK6-BsskLXHm.js.map +1 -0
  106. package/dist/{dist-BrNloUiz.js → dist-BScrlPBC.js} +32 -23
  107. package/dist/dist-BScrlPBC.js.map +1 -0
  108. package/dist/{erDiagram-INFDFZHY-C42JeR9I.js → erDiagram-TEJ5UH35-DzB7hnCi.js} +198 -164
  109. package/dist/erDiagram-TEJ5UH35-DzB7hnCi.js.map +1 -0
  110. package/dist/eventmodeling-FCH6USID-HcA67HMu.js +3 -0
  111. package/dist/{flowDiagram-PKNHOUZH-DInJjOz3.js → flowDiagram-I6XJVG4X-RYkPtPRG.js} +453 -469
  112. package/dist/flowDiagram-I6XJVG4X-RYkPtPRG.js.map +1 -0
  113. package/dist/{ganttDiagram-A5KZAMGK-Dgp-4Yss.js → ganttDiagram-6RSMTGT7-BfjlFVNd.js} +340 -333
  114. package/dist/ganttDiagram-6RSMTGT7-BfjlFVNd.js.map +1 -0
  115. package/dist/gitGraph-WXDBUCRP-D60yP8mT.js +3 -0
  116. package/dist/gitGraphDiagram-PVQCEYII-DbUp_ElG.js +731 -0
  117. package/dist/gitGraphDiagram-PVQCEYII-DbUp_ElG.js.map +1 -0
  118. package/dist/graphlib-k-wJtbbK.js +1268 -0
  119. package/dist/graphlib-k-wJtbbK.js.map +1 -0
  120. package/dist/info-J43DQDTF-DDmtkMBG.js +3 -0
  121. package/dist/{infoDiagram-LFFYTUFH-DajJJRvc.js → infoDiagram-5YYISTIA-C0TqWTrr.js} +7 -7
  122. package/dist/{infoDiagram-LFFYTUFH-DajJJRvc.js.map → infoDiagram-5YYISTIA-C0TqWTrr.js.map} +1 -1
  123. package/dist/{init-DcLTaNW1.js → init-CGzIZb6J.js} +1 -1
  124. package/dist/{init-DcLTaNW1.js.map → init-CGzIZb6J.js.map} +1 -1
  125. package/dist/{ishikawaDiagram-PHBUUO56-qHBJm2LT.js → ishikawaDiagram-YF4QCWOH-Cyk_Antz.js} +98 -97
  126. package/dist/ishikawaDiagram-YF4QCWOH-Cyk_Antz.js.map +1 -0
  127. package/dist/{journeyDiagram-4ABVD52K-PgfYdoDM.js → journeyDiagram-JHISSGLW-CTl8eDDe.js} +78 -78
  128. package/dist/journeyDiagram-JHISSGLW-CTl8eDDe.js.map +1 -0
  129. package/dist/{kanban-definition-K7BYSVSG-DFRT8j7A.js → kanban-definition-UN3LZRKU-homeDoHF.js} +46 -44
  130. package/dist/{kanban-definition-K7BYSVSG-DFRT8j7A.js.map → kanban-definition-UN3LZRKU-homeDoHF.js.map} +1 -1
  131. package/dist/{katex-BZdHnXin.js → katex-CgkxVokH.js} +1 -1
  132. package/dist/{katex-BZdHnXin.js.map → katex-CgkxVokH.js.map} +1 -1
  133. package/dist/line-k_aZSToM.js +36 -0
  134. package/dist/{line-Cq1AZT4f.js.map → line-k_aZSToM.js.map} +1 -1
  135. package/dist/{linear-BnJD01Xn.js → linear-Dpcbf4VP.js} +5 -5
  136. package/dist/{linear-BnJD01Xn.js.map → linear-Dpcbf4VP.js.map} +1 -1
  137. package/dist/{mermaid-parser.core-Dz5qv4CI.js → mermaid-parser.core-B_q76LYz.js} +32 -17
  138. package/dist/mermaid-parser.core-B_q76LYz.js.map +1 -0
  139. package/dist/mermaid.core-DAh-gNcn.js +997 -0
  140. package/dist/mermaid.core-DAh-gNcn.js.map +1 -0
  141. package/dist/{mindmap-definition-YRQLILUH-D95OPRMh.js → mindmap-definition-RKZ34NQL-Cjglmmr7.js} +153 -108
  142. package/dist/mindmap-definition-RKZ34NQL-Cjglmmr7.js.map +1 -0
  143. package/dist/{ordinal-CC9tfh_g.js → ordinal-DHGdAr1Y.js} +2 -2
  144. package/dist/{ordinal-CC9tfh_g.js.map → ordinal-DHGdAr1Y.js.map} +1 -1
  145. package/dist/packet-YPE3B663-Bo9N32Mb.js +3 -0
  146. package/dist/{path-y0uQCOMW.js → path-D-DDb3Wo.js} +1 -1
  147. package/dist/{path-y0uQCOMW.js.map → path-D-DDb3Wo.js.map} +1 -1
  148. package/dist/pie-LRSECV5Y-DndCyILX.js +3 -0
  149. package/dist/pieDiagram-4H26LBE5-Swbny_uk.js +167 -0
  150. package/dist/pieDiagram-4H26LBE5-Swbny_uk.js.map +1 -0
  151. package/dist/{quadrantDiagram-337W2JSQ-CcKc-h2o.js → quadrantDiagram-W4KKPZXB-kyt1iJkC.js} +359 -332
  152. package/dist/quadrantDiagram-W4KKPZXB-kyt1iJkC.js.map +1 -0
  153. package/dist/radar-GUYGQ44K-DpLG1fRN.js +3 -0
  154. package/dist/react/brand/index.d.ts +13 -1
  155. package/dist/react/brand/index.d.ts.map +1 -1
  156. package/dist/react/brand.js +28 -3
  157. package/dist/react/brand.js.map +1 -1
  158. package/dist/react/sidebar.d.ts +22 -1
  159. package/dist/react/sidebar.d.ts.map +1 -1
  160. package/dist/react/sidebar.js +26 -2
  161. package/dist/react/sidebar.js.map +1 -1
  162. package/dist/react/topology.js +1 -1
  163. package/dist/react.js +100 -100
  164. package/dist/{requirementDiagram-Z7DCOOCP-aPcaPduF.js → requirementDiagram-4Y6WPE33-DWRks7dz.js} +153 -133
  165. package/dist/requirementDiagram-4Y6WPE33-DWRks7dz.js.map +1 -0
  166. package/dist/{rough.esm-C9rQ9YkE.js → rough.esm-C7tiDdBn.js} +1 -1
  167. package/dist/{rough.esm-C9rQ9YkE.js.map → rough.esm-C7tiDdBn.js.map} +1 -1
  168. package/dist/{sankeyDiagram-WA2Y5GQK-CO_lUqQX.js → sankeyDiagram-5OEKKPKP-J_SVMd-0.js} +125 -76
  169. package/dist/{sankeyDiagram-WA2Y5GQK-CO_lUqQX.js.map → sankeyDiagram-5OEKKPKP-J_SVMd-0.js.map} +1 -1
  170. package/dist/sequenceDiagram-3UESZ5HK-BMhjbe8U.js +4167 -0
  171. package/dist/sequenceDiagram-3UESZ5HK-BMhjbe8U.js.map +1 -0
  172. package/dist/sidebar/component.d.ts +4 -0
  173. package/dist/sidebar/component.d.ts.map +1 -1
  174. package/dist/sidebar/index.d.ts +1 -1
  175. package/dist/sidebar/index.d.ts.map +1 -1
  176. package/dist/sidebar/index.js +1 -1
  177. package/dist/sidebar/index.js.map +1 -1
  178. package/dist/sidebar/types.d.ts +39 -0
  179. package/dist/sidebar/types.d.ts.map +1 -1
  180. package/dist/{src-D1EMXotX.js → src-CWnvxuyh.js} +603 -591
  181. package/dist/{src-D1EMXotX.js.map → src-CWnvxuyh.js.map} +1 -1
  182. package/dist/{src-BhNgmpel.js → src-DngnQkx_.js} +4 -5
  183. package/dist/{src-BhNgmpel.js.map → src-DngnQkx_.js.map} +1 -1
  184. package/dist/stateDiagram-AJRCARHV-x4JHehDk.js +220 -0
  185. package/dist/stateDiagram-AJRCARHV-x4JHehDk.js.map +1 -0
  186. package/dist/stateDiagram-v2-BHNVJYJU-CO93vpHl.js +29 -0
  187. package/dist/{stateDiagram-v2-FVOUBMTO-CAWy0Pkh.js.map → stateDiagram-v2-BHNVJYJU-CO93vpHl.js.map} +1 -1
  188. package/dist/styles/components/brand.css +30 -0
  189. package/dist/styles/sidebar.css +495 -0
  190. package/dist/{timeline-definition-YZTLITO2-CjxxCuOg.js → timeline-definition-PNZ67QCA-rsiMN1-p.js} +517 -279
  191. package/dist/timeline-definition-PNZ67QCA-rsiMN1-p.js.map +1 -0
  192. package/dist/{topology-C8cyIHlB.js → topology-B9Lv-y1-.js} +181 -182
  193. package/dist/{topology-C8cyIHlB.js.map → topology-B9Lv-y1-.js.map} +1 -1
  194. package/dist/treeView-BLDUP644-mJdM3Q6x.js +3 -0
  195. package/dist/treemap-LRROVOQU-BbNMhR6z.js +3 -0
  196. package/dist/{value-gSPnIECy.js → value-CnwEagIg.js} +2 -2
  197. package/dist/{value-gSPnIECy.js.map → value-CnwEagIg.js.map} +1 -1
  198. package/dist/{vennDiagram-LZ73GAT5-FqpGoq2s.js → vennDiagram-CIIHVFJN-JUCgWboO.js} +98 -98
  199. package/dist/{vennDiagram-LZ73GAT5-FqpGoq2s.js.map → vennDiagram-CIIHVFJN-JUCgWboO.js.map} +1 -1
  200. package/dist/visualization/mermaid-diagram/index.js +1 -1
  201. package/dist/wardley-L42UT6IY-DB53GwcN.js +3 -0
  202. package/dist/wardleyDiagram-YWT4CUSO-D9ZPcSHL.js +646 -0
  203. package/dist/wardleyDiagram-YWT4CUSO-D9ZPcSHL.js.map +1 -0
  204. package/dist/{xychartDiagram-JWTSCODW-BNEAK79X.js → xychartDiagram-2RQKCTM6-D3ufsY0S.js} +146 -143
  205. package/dist/{xychartDiagram-JWTSCODW-BNEAK79X.js.map → xychartDiagram-2RQKCTM6-D3ufsY0S.js.map} +1 -1
  206. package/package.json +1 -1
  207. package/src/components/brand/index.ts +63 -0
  208. package/src/components/brand/types.ts +9 -0
  209. package/src/react/brand/index.test.tsx +28 -0
  210. package/src/react/brand/index.tsx +38 -0
  211. package/src/react/sidebar.test.tsx +30 -0
  212. package/src/react/sidebar.tsx +52 -1
  213. package/src/sidebar/component.test.ts +109 -0
  214. package/src/sidebar/component.ts +136 -4
  215. package/src/sidebar/index.ts +1 -0
  216. package/src/sidebar/types.ts +40 -0
  217. package/src/styles/components/brand.css +30 -0
  218. package/src/styles/sidebar.css +495 -0
  219. package/dist/_basePickBy-BQMPE4-n.js +0 -168
  220. package/dist/_basePickBy-BQMPE4-n.js.map +0 -1
  221. package/dist/_baseUniq-Bdp_vFUv.js +0 -684
  222. package/dist/_baseUniq-Bdp_vFUv.js.map +0 -1
  223. package/dist/architecture-PBZL5I3N-Zk3GmKE8.js +0 -3
  224. package/dist/blockDiagram-WCTKOSBZ-BH3jwWeU.js.map +0 -1
  225. package/dist/c4Diagram-IC4MRINW-OFLrunYI.js.map +0 -1
  226. package/dist/channel-LRbq43st.js +0 -7
  227. package/dist/chunk-7E7YKBS2-BsywoVTt.js +0 -25
  228. package/dist/chunk-7E7YKBS2-BsywoVTt.js.map +0 -1
  229. package/dist/chunk-7R4GIKGN-DJmroLCH.js +0 -2054
  230. package/dist/chunk-7R4GIKGN-DJmroLCH.js.map +0 -1
  231. package/dist/chunk-C72U2L5F-BwPwVDcP.js +0 -25
  232. package/dist/chunk-C72U2L5F-BwPwVDcP.js.map +0 -1
  233. package/dist/chunk-EGIJ26TM-DKd5cEgn.js +0 -25
  234. package/dist/chunk-EGIJ26TM-DKd5cEgn.js.map +0 -1
  235. package/dist/chunk-GEFDOKGD-DGJJEGSm.js.map +0 -1
  236. package/dist/chunk-GLR3WWYH-BDwmgwCA.js +0 -43
  237. package/dist/chunk-GLR3WWYH-BDwmgwCA.js.map +0 -1
  238. package/dist/chunk-HHEYEP7N-DJ1b-gA8.js +0 -12
  239. package/dist/chunk-KYZI473N-BXYCe83A.js +0 -3437
  240. package/dist/chunk-KYZI473N-BXYCe83A.js.map +0 -1
  241. package/dist/chunk-L3YUKLVL-Y5k8UNMf.js +0 -25
  242. package/dist/chunk-L3YUKLVL-Y5k8UNMf.js.map +0 -1
  243. package/dist/chunk-MX3YWQON-D43mcq1f.js.map +0 -1
  244. package/dist/chunk-NBPlniwU.js +0 -23
  245. package/dist/chunk-NQ4KR5QH-C0nWShNk.js.map +0 -1
  246. package/dist/chunk-O4XLMI2P-DtGEm9QX.js +0 -514
  247. package/dist/chunk-O4XLMI2P-DtGEm9QX.js.map +0 -1
  248. package/dist/chunk-OZEHJAEY-BsQ56PV-.js.map +0 -1
  249. package/dist/chunk-R5LLSJPH-c1IfaK5D.js.map +0 -1
  250. package/dist/chunk-WL4C6EOR-BV-op7zg.js.map +0 -1
  251. package/dist/chunk-XIRO2GV7-Bv1hlNLi.js +0 -32
  252. package/dist/chunk-XIRO2GV7-Bv1hlNLi.js.map +0 -1
  253. package/dist/chunk-XZSTWKYB-C7maKWEr.js +0 -15799
  254. package/dist/chunk-XZSTWKYB-C7maKWEr.js.map +0 -1
  255. package/dist/classDiagram-VBA2DB6C-DZfC0xPM.js +0 -31
  256. package/dist/classDiagram-v2-RAHNMMFH-CtWRD1ax.js +0 -31
  257. package/dist/clone-CliVdNc8.js +0 -10
  258. package/dist/clone-CliVdNc8.js.map +0 -1
  259. package/dist/component-C1Jiz1Ki.js +0 -103
  260. package/dist/component-C1Jiz1Ki.js.map +0 -1
  261. package/dist/dagre-BqC9mhMk.js +0 -1485
  262. package/dist/dagre-BqC9mhMk.js.map +0 -1
  263. package/dist/dagre-KLK3FWXG-DTKcsol6.js +0 -296
  264. package/dist/dagre-KLK3FWXG-DTKcsol6.js.map +0 -1
  265. package/dist/diagram-E7M64L7V-Co7O3gub.js.map +0 -1
  266. package/dist/dist-BrNloUiz.js.map +0 -1
  267. package/dist/erDiagram-INFDFZHY-C42JeR9I.js.map +0 -1
  268. package/dist/flowDiagram-PKNHOUZH-DInJjOz3.js.map +0 -1
  269. package/dist/ganttDiagram-A5KZAMGK-Dgp-4Yss.js.map +0 -1
  270. package/dist/gitGraph-HDMCJU4V-D_QsK6Rt.js +0 -3
  271. package/dist/gitGraphDiagram-K3NZZRJ6-Dr_X0dND.js +0 -628
  272. package/dist/gitGraphDiagram-K3NZZRJ6-Dr_X0dND.js.map +0 -1
  273. package/dist/graphlib-ecencZTG.js +0 -227
  274. package/dist/graphlib-ecencZTG.js.map +0 -1
  275. package/dist/info-3K5VOQVL-BbLiZXwn.js +0 -3
  276. package/dist/isArrayLikeObject-Bjsxaqj7.js +0 -580
  277. package/dist/isArrayLikeObject-Bjsxaqj7.js.map +0 -1
  278. package/dist/isEmpty-CeZZUVts.js +0 -37
  279. package/dist/isEmpty-CeZZUVts.js.map +0 -1
  280. package/dist/ishikawaDiagram-PHBUUO56-qHBJm2LT.js.map +0 -1
  281. package/dist/journeyDiagram-4ABVD52K-PgfYdoDM.js.map +0 -1
  282. package/dist/line-Cq1AZT4f.js +0 -36
  283. package/dist/math-D4gdAuwG.js +0 -12
  284. package/dist/math-D4gdAuwG.js.map +0 -1
  285. package/dist/mermaid-parser.core-Dz5qv4CI.js.map +0 -1
  286. package/dist/mermaid.core-DTiIXVKa.js +0 -923
  287. package/dist/mermaid.core-DTiIXVKa.js.map +0 -1
  288. package/dist/mindmap-definition-YRQLILUH-D95OPRMh.js.map +0 -1
  289. package/dist/packet-RMMSAZCW-D72DRs1N.js +0 -3
  290. package/dist/pie-UPGHQEXC-C8RDLrEi.js +0 -3
  291. package/dist/pieDiagram-SKSYHLDU-BREEn_Sk.js +0 -167
  292. package/dist/pieDiagram-SKSYHLDU-BREEn_Sk.js.map +0 -1
  293. package/dist/quadrantDiagram-337W2JSQ-CcKc-h2o.js.map +0 -1
  294. package/dist/radar-KQ55EAFF-DhmvjiyN.js +0 -3
  295. package/dist/requirementDiagram-Z7DCOOCP-aPcaPduF.js.map +0 -1
  296. package/dist/sequenceDiagram-2WXFIKYE-D7Vh1Zld.js +0 -4112
  297. package/dist/sequenceDiagram-2WXFIKYE-D7Vh1Zld.js.map +0 -1
  298. package/dist/stateDiagram-RAJIS63D-DdiY5cf3.js +0 -220
  299. package/dist/stateDiagram-RAJIS63D-DdiY5cf3.js.map +0 -1
  300. package/dist/stateDiagram-v2-FVOUBMTO-CAWy0Pkh.js +0 -29
  301. package/dist/timeline-definition-YZTLITO2-CjxxCuOg.js.map +0 -1
  302. package/dist/treemap-KZPCXAKY-BvLvHb2t.js +0 -3
@@ -0,0 +1,4167 @@
1
+ import { w as e } from "./src-CWnvxuyh.js";
2
+ import { n as t, r as n } from "./src-DngnQkx_.js";
3
+ import { A as r, F as i, G as a, H as o, K as s, O as c, U as l, a as u, b as d, c as f, i as p, r as m, s as h, v as g, w as _, x as v, y, z as b } from "./chunk-CSCIHK7Q-DyRIc27i.js";
4
+ import { t as x } from "./dist-BScrlPBC.js";
5
+ import { g as S, p as C } from "./chunk-5ZQYHXKU-CjOcwRY6.js";
6
+ import { a as w, c as T, i as E, n as D, r as O, s as k } from "./chunk-ND2GUHAM-Boh7GenS.js";
7
+ import { t as A } from "./chunk-QZHKN3VN-DC5aJQQT.js";
8
+ import { n as j, t as M } from "./chunk-XPW4576I-BwxN5U1_.js";
9
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-3UESZ5HK.mjs
10
+ var N = x(), P = (function() {
11
+ var e = /* @__PURE__ */ t(function(e, t, n, r) {
12
+ for (n ||= {}, r = e.length; r--; n[e[r]] = t);
13
+ return n;
14
+ }, "o"), n = [1, 2], r = [1, 3], i = [1, 4], a = [2, 4], o = [1, 9], s = [1, 11], c = [1, 12], l = [1, 14], u = [1, 15], d = [1, 17], f = [1, 18], p = [1, 19], m = [1, 25], h = [1, 26], g = [1, 27], _ = [1, 28], v = [1, 29], y = [1, 30], b = [1, 31], x = [1, 32], S = [1, 33], C = [1, 34], w = [1, 35], T = [1, 36], E = [1, 37], D = [1, 38], O = [1, 39], k = [1, 40], A = [1, 42], j = [1, 43], M = [1, 44], N = [1, 45], P = [1, 46], F = [1, 47], I = [
15
+ 1,
16
+ 4,
17
+ 5,
18
+ 10,
19
+ 14,
20
+ 15,
21
+ 17,
22
+ 19,
23
+ 22,
24
+ 24,
25
+ 30,
26
+ 31,
27
+ 32,
28
+ 34,
29
+ 36,
30
+ 37,
31
+ 38,
32
+ 39,
33
+ 40,
34
+ 42,
35
+ 44,
36
+ 45,
37
+ 47,
38
+ 48,
39
+ 49,
40
+ 50,
41
+ 51,
42
+ 53,
43
+ 54,
44
+ 56,
45
+ 61,
46
+ 62,
47
+ 63,
48
+ 64,
49
+ 73
50
+ ], L = [1, 74], ee = [1, 80], R = [1, 81], te = [1, 82], ne = [1, 83], z = [1, 84], B = [1, 85], V = [1, 86], re = [1, 87], H = [1, 88], U = [1, 89], W = [1, 90], ie = [1, 91], ae = [1, 92], oe = [1, 93], G = [1, 94], se = [1, 95], K = [1, 96], ce = [1, 97], le = [1, 98], ue = [1, 99], de = [1, 100], fe = [1, 101], pe = [1, 102], me = [1, 103], he = [1, 104], ge = [1, 105], _e = [2, 78], ve = [
51
+ 4,
52
+ 5,
53
+ 17,
54
+ 51,
55
+ 53,
56
+ 54
57
+ ], ye = [
58
+ 4,
59
+ 5,
60
+ 10,
61
+ 14,
62
+ 15,
63
+ 17,
64
+ 19,
65
+ 22,
66
+ 24,
67
+ 30,
68
+ 31,
69
+ 32,
70
+ 34,
71
+ 36,
72
+ 37,
73
+ 38,
74
+ 39,
75
+ 40,
76
+ 42,
77
+ 44,
78
+ 45,
79
+ 47,
80
+ 51,
81
+ 53,
82
+ 54,
83
+ 56,
84
+ 61,
85
+ 62,
86
+ 63,
87
+ 64,
88
+ 73
89
+ ], be = [
90
+ 4,
91
+ 5,
92
+ 10,
93
+ 14,
94
+ 15,
95
+ 17,
96
+ 19,
97
+ 22,
98
+ 24,
99
+ 30,
100
+ 31,
101
+ 32,
102
+ 34,
103
+ 36,
104
+ 37,
105
+ 38,
106
+ 39,
107
+ 40,
108
+ 42,
109
+ 44,
110
+ 45,
111
+ 47,
112
+ 50,
113
+ 51,
114
+ 53,
115
+ 54,
116
+ 56,
117
+ 61,
118
+ 62,
119
+ 63,
120
+ 64,
121
+ 73
122
+ ], xe = [
123
+ 4,
124
+ 5,
125
+ 10,
126
+ 14,
127
+ 15,
128
+ 17,
129
+ 19,
130
+ 22,
131
+ 24,
132
+ 30,
133
+ 31,
134
+ 32,
135
+ 34,
136
+ 36,
137
+ 37,
138
+ 38,
139
+ 39,
140
+ 40,
141
+ 42,
142
+ 44,
143
+ 45,
144
+ 47,
145
+ 49,
146
+ 51,
147
+ 53,
148
+ 54,
149
+ 56,
150
+ 61,
151
+ 62,
152
+ 63,
153
+ 64,
154
+ 73
155
+ ], Se = [
156
+ 4,
157
+ 5,
158
+ 10,
159
+ 14,
160
+ 15,
161
+ 17,
162
+ 19,
163
+ 22,
164
+ 24,
165
+ 30,
166
+ 31,
167
+ 32,
168
+ 34,
169
+ 36,
170
+ 37,
171
+ 38,
172
+ 39,
173
+ 40,
174
+ 42,
175
+ 44,
176
+ 45,
177
+ 47,
178
+ 48,
179
+ 51,
180
+ 53,
181
+ 54,
182
+ 56,
183
+ 61,
184
+ 62,
185
+ 63,
186
+ 64,
187
+ 73
188
+ ], Ce = [5, 52], q = [
189
+ 70,
190
+ 71,
191
+ 72,
192
+ 73
193
+ ], J = [1, 151], we = {
194
+ trace: /* @__PURE__ */ t(function() {}, "trace"),
195
+ yy: {},
196
+ symbols_: {
197
+ error: 2,
198
+ start: 3,
199
+ SPACE: 4,
200
+ NEWLINE: 5,
201
+ SD: 6,
202
+ document: 7,
203
+ line: 8,
204
+ statement: 9,
205
+ INVALID: 10,
206
+ box_section: 11,
207
+ box_line: 12,
208
+ participant_statement: 13,
209
+ create: 14,
210
+ box: 15,
211
+ restOfLine: 16,
212
+ end: 17,
213
+ signal: 18,
214
+ autonumber: 19,
215
+ NUM: 20,
216
+ off: 21,
217
+ activate: 22,
218
+ actor: 23,
219
+ deactivate: 24,
220
+ note_statement: 25,
221
+ links_statement: 26,
222
+ link_statement: 27,
223
+ properties_statement: 28,
224
+ details_statement: 29,
225
+ title: 30,
226
+ legacy_title: 31,
227
+ acc_title: 32,
228
+ acc_title_value: 33,
229
+ acc_descr: 34,
230
+ acc_descr_value: 35,
231
+ acc_descr_multiline_value: 36,
232
+ loop: 37,
233
+ rect: 38,
234
+ opt: 39,
235
+ alt: 40,
236
+ else_sections: 41,
237
+ par: 42,
238
+ par_sections: 43,
239
+ par_over: 44,
240
+ critical: 45,
241
+ option_sections: 46,
242
+ break: 47,
243
+ option: 48,
244
+ and: 49,
245
+ else: 50,
246
+ participant: 51,
247
+ AS: 52,
248
+ participant_actor: 53,
249
+ destroy: 54,
250
+ actor_with_config: 55,
251
+ note: 56,
252
+ placement: 57,
253
+ text2: 58,
254
+ over: 59,
255
+ actor_pair: 60,
256
+ links: 61,
257
+ link: 62,
258
+ properties: 63,
259
+ details: 64,
260
+ spaceList: 65,
261
+ ",": 66,
262
+ left_of: 67,
263
+ right_of: 68,
264
+ signaltype: 69,
265
+ "+": 70,
266
+ "-": 71,
267
+ "()": 72,
268
+ ACTOR: 73,
269
+ config_object: 74,
270
+ CONFIG_START: 75,
271
+ CONFIG_CONTENT: 76,
272
+ CONFIG_END: 77,
273
+ SOLID_OPEN_ARROW: 78,
274
+ DOTTED_OPEN_ARROW: 79,
275
+ SOLID_ARROW: 80,
276
+ SOLID_ARROW_TOP: 81,
277
+ SOLID_ARROW_BOTTOM: 82,
278
+ STICK_ARROW_TOP: 83,
279
+ STICK_ARROW_BOTTOM: 84,
280
+ SOLID_ARROW_TOP_DOTTED: 85,
281
+ SOLID_ARROW_BOTTOM_DOTTED: 86,
282
+ STICK_ARROW_TOP_DOTTED: 87,
283
+ STICK_ARROW_BOTTOM_DOTTED: 88,
284
+ SOLID_ARROW_TOP_REVERSE: 89,
285
+ SOLID_ARROW_BOTTOM_REVERSE: 90,
286
+ STICK_ARROW_TOP_REVERSE: 91,
287
+ STICK_ARROW_BOTTOM_REVERSE: 92,
288
+ SOLID_ARROW_TOP_REVERSE_DOTTED: 93,
289
+ SOLID_ARROW_BOTTOM_REVERSE_DOTTED: 94,
290
+ STICK_ARROW_TOP_REVERSE_DOTTED: 95,
291
+ STICK_ARROW_BOTTOM_REVERSE_DOTTED: 96,
292
+ BIDIRECTIONAL_SOLID_ARROW: 97,
293
+ DOTTED_ARROW: 98,
294
+ BIDIRECTIONAL_DOTTED_ARROW: 99,
295
+ SOLID_CROSS: 100,
296
+ DOTTED_CROSS: 101,
297
+ SOLID_POINT: 102,
298
+ DOTTED_POINT: 103,
299
+ TXT: 104,
300
+ $accept: 0,
301
+ $end: 1
302
+ },
303
+ terminals_: {
304
+ 2: "error",
305
+ 4: "SPACE",
306
+ 5: "NEWLINE",
307
+ 6: "SD",
308
+ 10: "INVALID",
309
+ 14: "create",
310
+ 15: "box",
311
+ 16: "restOfLine",
312
+ 17: "end",
313
+ 19: "autonumber",
314
+ 20: "NUM",
315
+ 21: "off",
316
+ 22: "activate",
317
+ 24: "deactivate",
318
+ 30: "title",
319
+ 31: "legacy_title",
320
+ 32: "acc_title",
321
+ 33: "acc_title_value",
322
+ 34: "acc_descr",
323
+ 35: "acc_descr_value",
324
+ 36: "acc_descr_multiline_value",
325
+ 37: "loop",
326
+ 38: "rect",
327
+ 39: "opt",
328
+ 40: "alt",
329
+ 42: "par",
330
+ 44: "par_over",
331
+ 45: "critical",
332
+ 47: "break",
333
+ 48: "option",
334
+ 49: "and",
335
+ 50: "else",
336
+ 51: "participant",
337
+ 52: "AS",
338
+ 53: "participant_actor",
339
+ 54: "destroy",
340
+ 56: "note",
341
+ 59: "over",
342
+ 61: "links",
343
+ 62: "link",
344
+ 63: "properties",
345
+ 64: "details",
346
+ 66: ",",
347
+ 67: "left_of",
348
+ 68: "right_of",
349
+ 70: "+",
350
+ 71: "-",
351
+ 72: "()",
352
+ 73: "ACTOR",
353
+ 75: "CONFIG_START",
354
+ 76: "CONFIG_CONTENT",
355
+ 77: "CONFIG_END",
356
+ 78: "SOLID_OPEN_ARROW",
357
+ 79: "DOTTED_OPEN_ARROW",
358
+ 80: "SOLID_ARROW",
359
+ 81: "SOLID_ARROW_TOP",
360
+ 82: "SOLID_ARROW_BOTTOM",
361
+ 83: "STICK_ARROW_TOP",
362
+ 84: "STICK_ARROW_BOTTOM",
363
+ 85: "SOLID_ARROW_TOP_DOTTED",
364
+ 86: "SOLID_ARROW_BOTTOM_DOTTED",
365
+ 87: "STICK_ARROW_TOP_DOTTED",
366
+ 88: "STICK_ARROW_BOTTOM_DOTTED",
367
+ 89: "SOLID_ARROW_TOP_REVERSE",
368
+ 90: "SOLID_ARROW_BOTTOM_REVERSE",
369
+ 91: "STICK_ARROW_TOP_REVERSE",
370
+ 92: "STICK_ARROW_BOTTOM_REVERSE",
371
+ 93: "SOLID_ARROW_TOP_REVERSE_DOTTED",
372
+ 94: "SOLID_ARROW_BOTTOM_REVERSE_DOTTED",
373
+ 95: "STICK_ARROW_TOP_REVERSE_DOTTED",
374
+ 96: "STICK_ARROW_BOTTOM_REVERSE_DOTTED",
375
+ 97: "BIDIRECTIONAL_SOLID_ARROW",
376
+ 98: "DOTTED_ARROW",
377
+ 99: "BIDIRECTIONAL_DOTTED_ARROW",
378
+ 100: "SOLID_CROSS",
379
+ 101: "DOTTED_CROSS",
380
+ 102: "SOLID_POINT",
381
+ 103: "DOTTED_POINT",
382
+ 104: "TXT"
383
+ },
384
+ productions_: [
385
+ 0,
386
+ [3, 2],
387
+ [3, 2],
388
+ [3, 2],
389
+ [7, 0],
390
+ [7, 2],
391
+ [8, 2],
392
+ [8, 1],
393
+ [8, 1],
394
+ [8, 1],
395
+ [11, 0],
396
+ [11, 2],
397
+ [12, 2],
398
+ [12, 1],
399
+ [12, 1],
400
+ [9, 1],
401
+ [9, 2],
402
+ [9, 4],
403
+ [9, 2],
404
+ [9, 4],
405
+ [9, 3],
406
+ [9, 3],
407
+ [9, 2],
408
+ [9, 3],
409
+ [9, 3],
410
+ [9, 2],
411
+ [9, 2],
412
+ [9, 2],
413
+ [9, 2],
414
+ [9, 2],
415
+ [9, 1],
416
+ [9, 1],
417
+ [9, 2],
418
+ [9, 2],
419
+ [9, 1],
420
+ [9, 4],
421
+ [9, 4],
422
+ [9, 4],
423
+ [9, 4],
424
+ [9, 4],
425
+ [9, 4],
426
+ [9, 4],
427
+ [9, 4],
428
+ [46, 1],
429
+ [46, 4],
430
+ [43, 1],
431
+ [43, 4],
432
+ [41, 1],
433
+ [41, 4],
434
+ [13, 5],
435
+ [13, 3],
436
+ [13, 5],
437
+ [13, 3],
438
+ [13, 3],
439
+ [13, 5],
440
+ [13, 3],
441
+ [13, 5],
442
+ [13, 3],
443
+ [25, 4],
444
+ [25, 4],
445
+ [26, 3],
446
+ [27, 3],
447
+ [28, 3],
448
+ [29, 3],
449
+ [65, 2],
450
+ [65, 1],
451
+ [60, 3],
452
+ [60, 1],
453
+ [57, 1],
454
+ [57, 1],
455
+ [18, 5],
456
+ [18, 5],
457
+ [18, 5],
458
+ [18, 5],
459
+ [18, 6],
460
+ [18, 4],
461
+ [55, 2],
462
+ [74, 3],
463
+ [23, 1],
464
+ [69, 1],
465
+ [69, 1],
466
+ [69, 1],
467
+ [69, 1],
468
+ [69, 1],
469
+ [69, 1],
470
+ [69, 1],
471
+ [69, 1],
472
+ [69, 1],
473
+ [69, 1],
474
+ [69, 1],
475
+ [69, 1],
476
+ [69, 1],
477
+ [69, 1],
478
+ [69, 1],
479
+ [69, 1],
480
+ [69, 1],
481
+ [69, 1],
482
+ [69, 1],
483
+ [69, 1],
484
+ [69, 1],
485
+ [69, 1],
486
+ [69, 1],
487
+ [69, 1],
488
+ [69, 1],
489
+ [69, 1],
490
+ [58, 1]
491
+ ],
492
+ performAction: /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
493
+ var s = a.length - 1;
494
+ switch (i) {
495
+ case 3: return r.apply(a[s]), a[s];
496
+ case 4:
497
+ case 10:
498
+ this.$ = [];
499
+ break;
500
+ case 5:
501
+ case 11:
502
+ a[s - 1].push(a[s]), this.$ = a[s - 1];
503
+ break;
504
+ case 6:
505
+ case 7:
506
+ case 12:
507
+ case 13:
508
+ this.$ = a[s];
509
+ break;
510
+ case 8:
511
+ case 9:
512
+ case 14:
513
+ this.$ = [];
514
+ break;
515
+ case 16:
516
+ a[s].type = "createParticipant", this.$ = a[s];
517
+ break;
518
+ case 17:
519
+ a[s - 1].unshift({
520
+ type: "boxStart",
521
+ boxData: r.parseBoxData(a[s - 2])
522
+ }), a[s - 1].push({
523
+ type: "boxEnd",
524
+ boxText: a[s - 2]
525
+ }), this.$ = a[s - 1];
526
+ break;
527
+ case 19:
528
+ this.$ = {
529
+ type: "sequenceIndex",
530
+ sequenceIndex: Number(a[s - 2]),
531
+ sequenceIndexStep: Number(a[s - 1]),
532
+ sequenceVisible: !0,
533
+ signalType: r.LINETYPE.AUTONUMBER
534
+ };
535
+ break;
536
+ case 20:
537
+ this.$ = {
538
+ type: "sequenceIndex",
539
+ sequenceIndex: Number(a[s - 1]),
540
+ sequenceIndexStep: 1,
541
+ sequenceVisible: !0,
542
+ signalType: r.LINETYPE.AUTONUMBER
543
+ };
544
+ break;
545
+ case 21:
546
+ this.$ = {
547
+ type: "sequenceIndex",
548
+ sequenceVisible: !1,
549
+ signalType: r.LINETYPE.AUTONUMBER
550
+ };
551
+ break;
552
+ case 22:
553
+ this.$ = {
554
+ type: "sequenceIndex",
555
+ sequenceVisible: !0,
556
+ signalType: r.LINETYPE.AUTONUMBER
557
+ };
558
+ break;
559
+ case 23:
560
+ this.$ = {
561
+ type: "activeStart",
562
+ signalType: r.LINETYPE.ACTIVE_START,
563
+ actor: a[s - 1].actor
564
+ };
565
+ break;
566
+ case 24:
567
+ this.$ = {
568
+ type: "activeEnd",
569
+ signalType: r.LINETYPE.ACTIVE_END,
570
+ actor: a[s - 1].actor
571
+ };
572
+ break;
573
+ case 30:
574
+ r.setDiagramTitle(a[s].substring(6)), this.$ = a[s].substring(6);
575
+ break;
576
+ case 31:
577
+ r.setDiagramTitle(a[s].substring(7)), this.$ = a[s].substring(7);
578
+ break;
579
+ case 32:
580
+ this.$ = a[s].trim(), r.setAccTitle(this.$);
581
+ break;
582
+ case 33:
583
+ case 34:
584
+ this.$ = a[s].trim(), r.setAccDescription(this.$);
585
+ break;
586
+ case 35:
587
+ a[s - 1].unshift({
588
+ type: "loopStart",
589
+ loopText: r.parseMessage(a[s - 2]),
590
+ signalType: r.LINETYPE.LOOP_START
591
+ }), a[s - 1].push({
592
+ type: "loopEnd",
593
+ loopText: a[s - 2],
594
+ signalType: r.LINETYPE.LOOP_END
595
+ }), this.$ = a[s - 1];
596
+ break;
597
+ case 36:
598
+ a[s - 1].unshift({
599
+ type: "rectStart",
600
+ color: r.parseMessage(a[s - 2]),
601
+ signalType: r.LINETYPE.RECT_START
602
+ }), a[s - 1].push({
603
+ type: "rectEnd",
604
+ color: r.parseMessage(a[s - 2]),
605
+ signalType: r.LINETYPE.RECT_END
606
+ }), this.$ = a[s - 1];
607
+ break;
608
+ case 37:
609
+ a[s - 1].unshift({
610
+ type: "optStart",
611
+ optText: r.parseMessage(a[s - 2]),
612
+ signalType: r.LINETYPE.OPT_START
613
+ }), a[s - 1].push({
614
+ type: "optEnd",
615
+ optText: r.parseMessage(a[s - 2]),
616
+ signalType: r.LINETYPE.OPT_END
617
+ }), this.$ = a[s - 1];
618
+ break;
619
+ case 38:
620
+ a[s - 1].unshift({
621
+ type: "altStart",
622
+ altText: r.parseMessage(a[s - 2]),
623
+ signalType: r.LINETYPE.ALT_START
624
+ }), a[s - 1].push({
625
+ type: "altEnd",
626
+ signalType: r.LINETYPE.ALT_END
627
+ }), this.$ = a[s - 1];
628
+ break;
629
+ case 39:
630
+ a[s - 1].unshift({
631
+ type: "parStart",
632
+ parText: r.parseMessage(a[s - 2]),
633
+ signalType: r.LINETYPE.PAR_START
634
+ }), a[s - 1].push({
635
+ type: "parEnd",
636
+ signalType: r.LINETYPE.PAR_END
637
+ }), this.$ = a[s - 1];
638
+ break;
639
+ case 40:
640
+ a[s - 1].unshift({
641
+ type: "parStart",
642
+ parText: r.parseMessage(a[s - 2]),
643
+ signalType: r.LINETYPE.PAR_OVER_START
644
+ }), a[s - 1].push({
645
+ type: "parEnd",
646
+ signalType: r.LINETYPE.PAR_END
647
+ }), this.$ = a[s - 1];
648
+ break;
649
+ case 41:
650
+ a[s - 1].unshift({
651
+ type: "criticalStart",
652
+ criticalText: r.parseMessage(a[s - 2]),
653
+ signalType: r.LINETYPE.CRITICAL_START
654
+ }), a[s - 1].push({
655
+ type: "criticalEnd",
656
+ signalType: r.LINETYPE.CRITICAL_END
657
+ }), this.$ = a[s - 1];
658
+ break;
659
+ case 42:
660
+ a[s - 1].unshift({
661
+ type: "breakStart",
662
+ breakText: r.parseMessage(a[s - 2]),
663
+ signalType: r.LINETYPE.BREAK_START
664
+ }), a[s - 1].push({
665
+ type: "breakEnd",
666
+ optText: r.parseMessage(a[s - 2]),
667
+ signalType: r.LINETYPE.BREAK_END
668
+ }), this.$ = a[s - 1];
669
+ break;
670
+ case 44:
671
+ this.$ = a[s - 3].concat([{
672
+ type: "option",
673
+ optionText: r.parseMessage(a[s - 1]),
674
+ signalType: r.LINETYPE.CRITICAL_OPTION
675
+ }, a[s]]);
676
+ break;
677
+ case 46:
678
+ this.$ = a[s - 3].concat([{
679
+ type: "and",
680
+ parText: r.parseMessage(a[s - 1]),
681
+ signalType: r.LINETYPE.PAR_AND
682
+ }, a[s]]);
683
+ break;
684
+ case 48:
685
+ this.$ = a[s - 3].concat([{
686
+ type: "else",
687
+ altText: r.parseMessage(a[s - 1]),
688
+ signalType: r.LINETYPE.ALT_ELSE
689
+ }, a[s]]);
690
+ break;
691
+ case 49:
692
+ a[s - 3].draw = "participant", a[s - 3].type = "addParticipant", a[s - 3].description = r.parseMessage(a[s - 1]), this.$ = a[s - 3];
693
+ break;
694
+ case 50:
695
+ a[s - 1].draw = "participant", a[s - 1].type = "addParticipant", this.$ = a[s - 1];
696
+ break;
697
+ case 51:
698
+ a[s - 3].draw = "actor", a[s - 3].type = "addParticipant", a[s - 3].description = r.parseMessage(a[s - 1]), this.$ = a[s - 3];
699
+ break;
700
+ case 52:
701
+ case 57:
702
+ a[s - 1].draw = "actor", a[s - 1].type = "addParticipant", this.$ = a[s - 1];
703
+ break;
704
+ case 53:
705
+ a[s - 1].type = "destroyParticipant", this.$ = a[s - 1];
706
+ break;
707
+ case 54:
708
+ a[s - 3].draw = "participant", a[s - 3].type = "addParticipant", a[s - 3].description = r.parseMessage(a[s - 1]), this.$ = a[s - 3];
709
+ break;
710
+ case 55:
711
+ a[s - 1].draw = "participant", a[s - 1].type = "addParticipant", this.$ = a[s - 1];
712
+ break;
713
+ case 56:
714
+ a[s - 3].draw = "actor", a[s - 3].type = "addParticipant", a[s - 3].description = r.parseMessage(a[s - 1]), this.$ = a[s - 3];
715
+ break;
716
+ case 58:
717
+ this.$ = [a[s - 1], {
718
+ type: "addNote",
719
+ placement: a[s - 2],
720
+ actor: a[s - 1].actor,
721
+ text: a[s]
722
+ }];
723
+ break;
724
+ case 59:
725
+ a[s - 2] = [].concat(a[s - 1], a[s - 1]).slice(0, 2), a[s - 2][0] = a[s - 2][0].actor, a[s - 2][1] = a[s - 2][1].actor, this.$ = [a[s - 1], {
726
+ type: "addNote",
727
+ placement: r.PLACEMENT.OVER,
728
+ actor: a[s - 2].slice(0, 2),
729
+ text: a[s]
730
+ }];
731
+ break;
732
+ case 60:
733
+ this.$ = [a[s - 1], {
734
+ type: "addLinks",
735
+ actor: a[s - 1].actor,
736
+ text: a[s]
737
+ }];
738
+ break;
739
+ case 61:
740
+ this.$ = [a[s - 1], {
741
+ type: "addALink",
742
+ actor: a[s - 1].actor,
743
+ text: a[s]
744
+ }];
745
+ break;
746
+ case 62:
747
+ this.$ = [a[s - 1], {
748
+ type: "addProperties",
749
+ actor: a[s - 1].actor,
750
+ text: a[s]
751
+ }];
752
+ break;
753
+ case 63:
754
+ this.$ = [a[s - 1], {
755
+ type: "addDetails",
756
+ actor: a[s - 1].actor,
757
+ text: a[s]
758
+ }];
759
+ break;
760
+ case 66:
761
+ this.$ = [a[s - 2], a[s]];
762
+ break;
763
+ case 67:
764
+ this.$ = a[s];
765
+ break;
766
+ case 68:
767
+ this.$ = r.PLACEMENT.LEFTOF;
768
+ break;
769
+ case 69:
770
+ this.$ = r.PLACEMENT.RIGHTOF;
771
+ break;
772
+ case 70:
773
+ this.$ = [
774
+ a[s - 4],
775
+ a[s - 1],
776
+ {
777
+ type: "addMessage",
778
+ from: a[s - 4].actor,
779
+ to: a[s - 1].actor,
780
+ signalType: a[s - 3],
781
+ msg: a[s],
782
+ activate: !0
783
+ },
784
+ {
785
+ type: "activeStart",
786
+ signalType: r.LINETYPE.ACTIVE_START,
787
+ actor: a[s - 1].actor
788
+ }
789
+ ];
790
+ break;
791
+ case 71:
792
+ this.$ = [
793
+ a[s - 4],
794
+ a[s - 1],
795
+ {
796
+ type: "addMessage",
797
+ from: a[s - 4].actor,
798
+ to: a[s - 1].actor,
799
+ signalType: a[s - 3],
800
+ msg: a[s]
801
+ },
802
+ {
803
+ type: "activeEnd",
804
+ signalType: r.LINETYPE.ACTIVE_END,
805
+ actor: a[s - 4].actor
806
+ }
807
+ ];
808
+ break;
809
+ case 72:
810
+ this.$ = [
811
+ a[s - 4],
812
+ a[s - 1],
813
+ {
814
+ type: "addMessage",
815
+ from: a[s - 4].actor,
816
+ to: a[s - 1].actor,
817
+ signalType: a[s - 3],
818
+ msg: a[s],
819
+ activate: !0,
820
+ centralConnection: r.LINETYPE.CENTRAL_CONNECTION
821
+ },
822
+ {
823
+ type: "centralConnection",
824
+ signalType: r.LINETYPE.CENTRAL_CONNECTION,
825
+ actor: a[s - 1].actor
826
+ }
827
+ ];
828
+ break;
829
+ case 73:
830
+ this.$ = [
831
+ a[s - 4],
832
+ a[s - 1],
833
+ {
834
+ type: "addMessage",
835
+ from: a[s - 4].actor,
836
+ to: a[s - 1].actor,
837
+ signalType: a[s - 2],
838
+ msg: a[s],
839
+ activate: !1,
840
+ centralConnection: r.LINETYPE.CENTRAL_CONNECTION_REVERSE
841
+ },
842
+ {
843
+ type: "centralConnectionReverse",
844
+ signalType: r.LINETYPE.CENTRAL_CONNECTION_REVERSE,
845
+ actor: a[s - 4].actor
846
+ }
847
+ ];
848
+ break;
849
+ case 74:
850
+ this.$ = [
851
+ a[s - 5],
852
+ a[s - 1],
853
+ {
854
+ type: "addMessage",
855
+ from: a[s - 5].actor,
856
+ to: a[s - 1].actor,
857
+ signalType: a[s - 3],
858
+ msg: a[s],
859
+ activate: !0,
860
+ centralConnection: r.LINETYPE.CENTRAL_CONNECTION_DUAL
861
+ },
862
+ {
863
+ type: "centralConnection",
864
+ signalType: r.LINETYPE.CENTRAL_CONNECTION,
865
+ actor: a[s - 1].actor
866
+ },
867
+ {
868
+ type: "centralConnectionReverse",
869
+ signalType: r.LINETYPE.CENTRAL_CONNECTION_REVERSE,
870
+ actor: a[s - 5].actor
871
+ }
872
+ ];
873
+ break;
874
+ case 75:
875
+ this.$ = [
876
+ a[s - 3],
877
+ a[s - 1],
878
+ {
879
+ type: "addMessage",
880
+ from: a[s - 3].actor,
881
+ to: a[s - 1].actor,
882
+ signalType: a[s - 2],
883
+ msg: a[s]
884
+ }
885
+ ];
886
+ break;
887
+ case 76:
888
+ this.$ = {
889
+ type: "addParticipant",
890
+ actor: a[s - 1],
891
+ config: a[s]
892
+ };
893
+ break;
894
+ case 77:
895
+ this.$ = a[s - 1].trim();
896
+ break;
897
+ case 78:
898
+ this.$ = {
899
+ type: "addParticipant",
900
+ actor: a[s]
901
+ };
902
+ break;
903
+ case 79:
904
+ this.$ = r.LINETYPE.SOLID_OPEN;
905
+ break;
906
+ case 80:
907
+ this.$ = r.LINETYPE.DOTTED_OPEN;
908
+ break;
909
+ case 81:
910
+ this.$ = r.LINETYPE.SOLID;
911
+ break;
912
+ case 82:
913
+ this.$ = r.LINETYPE.SOLID_TOP;
914
+ break;
915
+ case 83:
916
+ this.$ = r.LINETYPE.SOLID_BOTTOM;
917
+ break;
918
+ case 84:
919
+ this.$ = r.LINETYPE.STICK_TOP;
920
+ break;
921
+ case 85:
922
+ this.$ = r.LINETYPE.STICK_BOTTOM;
923
+ break;
924
+ case 86:
925
+ this.$ = r.LINETYPE.SOLID_TOP_DOTTED;
926
+ break;
927
+ case 87:
928
+ this.$ = r.LINETYPE.SOLID_BOTTOM_DOTTED;
929
+ break;
930
+ case 88:
931
+ this.$ = r.LINETYPE.STICK_TOP_DOTTED;
932
+ break;
933
+ case 89:
934
+ this.$ = r.LINETYPE.STICK_BOTTOM_DOTTED;
935
+ break;
936
+ case 90:
937
+ this.$ = r.LINETYPE.SOLID_ARROW_TOP_REVERSE;
938
+ break;
939
+ case 91:
940
+ this.$ = r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;
941
+ break;
942
+ case 92:
943
+ this.$ = r.LINETYPE.STICK_ARROW_TOP_REVERSE;
944
+ break;
945
+ case 93:
946
+ this.$ = r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;
947
+ break;
948
+ case 94:
949
+ this.$ = r.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;
950
+ break;
951
+ case 95:
952
+ this.$ = r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;
953
+ break;
954
+ case 96:
955
+ this.$ = r.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;
956
+ break;
957
+ case 97:
958
+ this.$ = r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;
959
+ break;
960
+ case 98:
961
+ this.$ = r.LINETYPE.BIDIRECTIONAL_SOLID;
962
+ break;
963
+ case 99:
964
+ this.$ = r.LINETYPE.DOTTED;
965
+ break;
966
+ case 100:
967
+ this.$ = r.LINETYPE.BIDIRECTIONAL_DOTTED;
968
+ break;
969
+ case 101:
970
+ this.$ = r.LINETYPE.SOLID_CROSS;
971
+ break;
972
+ case 102:
973
+ this.$ = r.LINETYPE.DOTTED_CROSS;
974
+ break;
975
+ case 103:
976
+ this.$ = r.LINETYPE.SOLID_POINT;
977
+ break;
978
+ case 104:
979
+ this.$ = r.LINETYPE.DOTTED_POINT;
980
+ break;
981
+ case 105:
982
+ this.$ = r.parseMessage(a[s].trim().substring(1));
983
+ break;
984
+ }
985
+ }, "anonymous"),
986
+ table: [
987
+ {
988
+ 3: 1,
989
+ 4: n,
990
+ 5: r,
991
+ 6: i
992
+ },
993
+ { 1: [3] },
994
+ {
995
+ 3: 5,
996
+ 4: n,
997
+ 5: r,
998
+ 6: i
999
+ },
1000
+ {
1001
+ 3: 6,
1002
+ 4: n,
1003
+ 5: r,
1004
+ 6: i
1005
+ },
1006
+ e([
1007
+ 1,
1008
+ 4,
1009
+ 5,
1010
+ 10,
1011
+ 14,
1012
+ 15,
1013
+ 19,
1014
+ 22,
1015
+ 24,
1016
+ 30,
1017
+ 31,
1018
+ 32,
1019
+ 34,
1020
+ 36,
1021
+ 37,
1022
+ 38,
1023
+ 39,
1024
+ 40,
1025
+ 42,
1026
+ 44,
1027
+ 45,
1028
+ 47,
1029
+ 51,
1030
+ 53,
1031
+ 54,
1032
+ 56,
1033
+ 61,
1034
+ 62,
1035
+ 63,
1036
+ 64,
1037
+ 73
1038
+ ], a, { 7: 7 }),
1039
+ { 1: [2, 1] },
1040
+ { 1: [2, 2] },
1041
+ {
1042
+ 1: [2, 3],
1043
+ 4: o,
1044
+ 5: s,
1045
+ 8: 8,
1046
+ 9: 10,
1047
+ 10: c,
1048
+ 13: 13,
1049
+ 14: l,
1050
+ 15: u,
1051
+ 18: 16,
1052
+ 19: d,
1053
+ 22: f,
1054
+ 23: 41,
1055
+ 24: p,
1056
+ 25: 20,
1057
+ 26: 21,
1058
+ 27: 22,
1059
+ 28: 23,
1060
+ 29: 24,
1061
+ 30: m,
1062
+ 31: h,
1063
+ 32: g,
1064
+ 34: _,
1065
+ 36: v,
1066
+ 37: y,
1067
+ 38: b,
1068
+ 39: x,
1069
+ 40: S,
1070
+ 42: C,
1071
+ 44: w,
1072
+ 45: T,
1073
+ 47: E,
1074
+ 51: D,
1075
+ 53: O,
1076
+ 54: k,
1077
+ 56: A,
1078
+ 61: j,
1079
+ 62: M,
1080
+ 63: N,
1081
+ 64: P,
1082
+ 73: F
1083
+ },
1084
+ e(I, [2, 5]),
1085
+ {
1086
+ 9: 48,
1087
+ 13: 13,
1088
+ 14: l,
1089
+ 15: u,
1090
+ 18: 16,
1091
+ 19: d,
1092
+ 22: f,
1093
+ 23: 41,
1094
+ 24: p,
1095
+ 25: 20,
1096
+ 26: 21,
1097
+ 27: 22,
1098
+ 28: 23,
1099
+ 29: 24,
1100
+ 30: m,
1101
+ 31: h,
1102
+ 32: g,
1103
+ 34: _,
1104
+ 36: v,
1105
+ 37: y,
1106
+ 38: b,
1107
+ 39: x,
1108
+ 40: S,
1109
+ 42: C,
1110
+ 44: w,
1111
+ 45: T,
1112
+ 47: E,
1113
+ 51: D,
1114
+ 53: O,
1115
+ 54: k,
1116
+ 56: A,
1117
+ 61: j,
1118
+ 62: M,
1119
+ 63: N,
1120
+ 64: P,
1121
+ 73: F
1122
+ },
1123
+ e(I, [2, 7]),
1124
+ e(I, [2, 8]),
1125
+ e(I, [2, 9]),
1126
+ e(I, [2, 15]),
1127
+ {
1128
+ 13: 49,
1129
+ 51: D,
1130
+ 53: O,
1131
+ 54: k
1132
+ },
1133
+ { 16: [1, 50] },
1134
+ { 5: [1, 51] },
1135
+ {
1136
+ 5: [1, 54],
1137
+ 20: [1, 52],
1138
+ 21: [1, 53]
1139
+ },
1140
+ {
1141
+ 23: 55,
1142
+ 73: F
1143
+ },
1144
+ {
1145
+ 23: 56,
1146
+ 73: F
1147
+ },
1148
+ { 5: [1, 57] },
1149
+ { 5: [1, 58] },
1150
+ { 5: [1, 59] },
1151
+ { 5: [1, 60] },
1152
+ { 5: [1, 61] },
1153
+ e(I, [2, 30]),
1154
+ e(I, [2, 31]),
1155
+ { 33: [1, 62] },
1156
+ { 35: [1, 63] },
1157
+ e(I, [2, 34]),
1158
+ { 16: [1, 64] },
1159
+ { 16: [1, 65] },
1160
+ { 16: [1, 66] },
1161
+ { 16: [1, 67] },
1162
+ { 16: [1, 68] },
1163
+ { 16: [1, 69] },
1164
+ { 16: [1, 70] },
1165
+ { 16: [1, 71] },
1166
+ {
1167
+ 23: 72,
1168
+ 55: 73,
1169
+ 73: L
1170
+ },
1171
+ {
1172
+ 23: 75,
1173
+ 55: 76,
1174
+ 73: L
1175
+ },
1176
+ {
1177
+ 23: 77,
1178
+ 73: F
1179
+ },
1180
+ {
1181
+ 69: 78,
1182
+ 72: [1, 79],
1183
+ 78: ee,
1184
+ 79: R,
1185
+ 80: te,
1186
+ 81: ne,
1187
+ 82: z,
1188
+ 83: B,
1189
+ 84: V,
1190
+ 85: re,
1191
+ 86: H,
1192
+ 87: U,
1193
+ 88: W,
1194
+ 89: ie,
1195
+ 90: ae,
1196
+ 91: oe,
1197
+ 92: G,
1198
+ 93: se,
1199
+ 94: K,
1200
+ 95: ce,
1201
+ 96: le,
1202
+ 97: ue,
1203
+ 98: de,
1204
+ 99: fe,
1205
+ 100: pe,
1206
+ 101: me,
1207
+ 102: he,
1208
+ 103: ge
1209
+ },
1210
+ {
1211
+ 57: 106,
1212
+ 59: [1, 107],
1213
+ 67: [1, 108],
1214
+ 68: [1, 109]
1215
+ },
1216
+ {
1217
+ 23: 110,
1218
+ 73: F
1219
+ },
1220
+ {
1221
+ 23: 111,
1222
+ 73: F
1223
+ },
1224
+ {
1225
+ 23: 112,
1226
+ 73: F
1227
+ },
1228
+ {
1229
+ 23: 113,
1230
+ 73: F
1231
+ },
1232
+ e([
1233
+ 5,
1234
+ 66,
1235
+ 72,
1236
+ 78,
1237
+ 79,
1238
+ 80,
1239
+ 81,
1240
+ 82,
1241
+ 83,
1242
+ 84,
1243
+ 85,
1244
+ 86,
1245
+ 87,
1246
+ 88,
1247
+ 89,
1248
+ 90,
1249
+ 91,
1250
+ 92,
1251
+ 93,
1252
+ 94,
1253
+ 95,
1254
+ 96,
1255
+ 97,
1256
+ 98,
1257
+ 99,
1258
+ 100,
1259
+ 101,
1260
+ 102,
1261
+ 103,
1262
+ 104
1263
+ ], _e),
1264
+ e(I, [2, 6]),
1265
+ e(I, [2, 16]),
1266
+ e(ve, [2, 10], { 11: 114 }),
1267
+ e(I, [2, 18]),
1268
+ {
1269
+ 5: [1, 116],
1270
+ 20: [1, 115]
1271
+ },
1272
+ { 5: [1, 117] },
1273
+ e(I, [2, 22]),
1274
+ { 5: [1, 118] },
1275
+ { 5: [1, 119] },
1276
+ e(I, [2, 25]),
1277
+ e(I, [2, 26]),
1278
+ e(I, [2, 27]),
1279
+ e(I, [2, 28]),
1280
+ e(I, [2, 29]),
1281
+ e(I, [2, 32]),
1282
+ e(I, [2, 33]),
1283
+ e(ye, a, { 7: 120 }),
1284
+ e(ye, a, { 7: 121 }),
1285
+ e(ye, a, { 7: 122 }),
1286
+ e(be, a, {
1287
+ 41: 123,
1288
+ 7: 124
1289
+ }),
1290
+ e(xe, a, {
1291
+ 43: 125,
1292
+ 7: 126
1293
+ }),
1294
+ e(xe, a, {
1295
+ 7: 126,
1296
+ 43: 127
1297
+ }),
1298
+ e(Se, a, {
1299
+ 46: 128,
1300
+ 7: 129
1301
+ }),
1302
+ e(ye, a, { 7: 130 }),
1303
+ {
1304
+ 5: [1, 132],
1305
+ 52: [1, 131]
1306
+ },
1307
+ {
1308
+ 5: [1, 134],
1309
+ 52: [1, 133]
1310
+ },
1311
+ e(Ce, _e, {
1312
+ 74: 135,
1313
+ 75: [1, 136]
1314
+ }),
1315
+ {
1316
+ 5: [1, 138],
1317
+ 52: [1, 137]
1318
+ },
1319
+ {
1320
+ 5: [1, 140],
1321
+ 52: [1, 139]
1322
+ },
1323
+ { 5: [1, 141] },
1324
+ {
1325
+ 23: 145,
1326
+ 70: [1, 142],
1327
+ 71: [1, 143],
1328
+ 72: [1, 144],
1329
+ 73: F
1330
+ },
1331
+ {
1332
+ 69: 146,
1333
+ 78: ee,
1334
+ 79: R,
1335
+ 80: te,
1336
+ 81: ne,
1337
+ 82: z,
1338
+ 83: B,
1339
+ 84: V,
1340
+ 85: re,
1341
+ 86: H,
1342
+ 87: U,
1343
+ 88: W,
1344
+ 89: ie,
1345
+ 90: ae,
1346
+ 91: oe,
1347
+ 92: G,
1348
+ 93: se,
1349
+ 94: K,
1350
+ 95: ce,
1351
+ 96: le,
1352
+ 97: ue,
1353
+ 98: de,
1354
+ 99: fe,
1355
+ 100: pe,
1356
+ 101: me,
1357
+ 102: he,
1358
+ 103: ge
1359
+ },
1360
+ e(q, [2, 79]),
1361
+ e(q, [2, 80]),
1362
+ e(q, [2, 81]),
1363
+ e(q, [2, 82]),
1364
+ e(q, [2, 83]),
1365
+ e(q, [2, 84]),
1366
+ e(q, [2, 85]),
1367
+ e(q, [2, 86]),
1368
+ e(q, [2, 87]),
1369
+ e(q, [2, 88]),
1370
+ e(q, [2, 89]),
1371
+ e(q, [2, 90]),
1372
+ e(q, [2, 91]),
1373
+ e(q, [2, 92]),
1374
+ e(q, [2, 93]),
1375
+ e(q, [2, 94]),
1376
+ e(q, [2, 95]),
1377
+ e(q, [2, 96]),
1378
+ e(q, [2, 97]),
1379
+ e(q, [2, 98]),
1380
+ e(q, [2, 99]),
1381
+ e(q, [2, 100]),
1382
+ e(q, [2, 101]),
1383
+ e(q, [2, 102]),
1384
+ e(q, [2, 103]),
1385
+ e(q, [2, 104]),
1386
+ {
1387
+ 23: 147,
1388
+ 73: F
1389
+ },
1390
+ {
1391
+ 23: 149,
1392
+ 60: 148,
1393
+ 73: F
1394
+ },
1395
+ { 73: [2, 68] },
1396
+ { 73: [2, 69] },
1397
+ {
1398
+ 58: 150,
1399
+ 104: J
1400
+ },
1401
+ {
1402
+ 58: 152,
1403
+ 104: J
1404
+ },
1405
+ {
1406
+ 58: 153,
1407
+ 104: J
1408
+ },
1409
+ {
1410
+ 58: 154,
1411
+ 104: J
1412
+ },
1413
+ {
1414
+ 4: [1, 157],
1415
+ 5: [1, 159],
1416
+ 12: 156,
1417
+ 13: 158,
1418
+ 17: [1, 155],
1419
+ 51: D,
1420
+ 53: O,
1421
+ 54: k
1422
+ },
1423
+ { 5: [1, 160] },
1424
+ e(I, [2, 20]),
1425
+ e(I, [2, 21]),
1426
+ e(I, [2, 23]),
1427
+ e(I, [2, 24]),
1428
+ {
1429
+ 4: o,
1430
+ 5: s,
1431
+ 8: 8,
1432
+ 9: 10,
1433
+ 10: c,
1434
+ 13: 13,
1435
+ 14: l,
1436
+ 15: u,
1437
+ 17: [1, 161],
1438
+ 18: 16,
1439
+ 19: d,
1440
+ 22: f,
1441
+ 23: 41,
1442
+ 24: p,
1443
+ 25: 20,
1444
+ 26: 21,
1445
+ 27: 22,
1446
+ 28: 23,
1447
+ 29: 24,
1448
+ 30: m,
1449
+ 31: h,
1450
+ 32: g,
1451
+ 34: _,
1452
+ 36: v,
1453
+ 37: y,
1454
+ 38: b,
1455
+ 39: x,
1456
+ 40: S,
1457
+ 42: C,
1458
+ 44: w,
1459
+ 45: T,
1460
+ 47: E,
1461
+ 51: D,
1462
+ 53: O,
1463
+ 54: k,
1464
+ 56: A,
1465
+ 61: j,
1466
+ 62: M,
1467
+ 63: N,
1468
+ 64: P,
1469
+ 73: F
1470
+ },
1471
+ {
1472
+ 4: o,
1473
+ 5: s,
1474
+ 8: 8,
1475
+ 9: 10,
1476
+ 10: c,
1477
+ 13: 13,
1478
+ 14: l,
1479
+ 15: u,
1480
+ 17: [1, 162],
1481
+ 18: 16,
1482
+ 19: d,
1483
+ 22: f,
1484
+ 23: 41,
1485
+ 24: p,
1486
+ 25: 20,
1487
+ 26: 21,
1488
+ 27: 22,
1489
+ 28: 23,
1490
+ 29: 24,
1491
+ 30: m,
1492
+ 31: h,
1493
+ 32: g,
1494
+ 34: _,
1495
+ 36: v,
1496
+ 37: y,
1497
+ 38: b,
1498
+ 39: x,
1499
+ 40: S,
1500
+ 42: C,
1501
+ 44: w,
1502
+ 45: T,
1503
+ 47: E,
1504
+ 51: D,
1505
+ 53: O,
1506
+ 54: k,
1507
+ 56: A,
1508
+ 61: j,
1509
+ 62: M,
1510
+ 63: N,
1511
+ 64: P,
1512
+ 73: F
1513
+ },
1514
+ {
1515
+ 4: o,
1516
+ 5: s,
1517
+ 8: 8,
1518
+ 9: 10,
1519
+ 10: c,
1520
+ 13: 13,
1521
+ 14: l,
1522
+ 15: u,
1523
+ 17: [1, 163],
1524
+ 18: 16,
1525
+ 19: d,
1526
+ 22: f,
1527
+ 23: 41,
1528
+ 24: p,
1529
+ 25: 20,
1530
+ 26: 21,
1531
+ 27: 22,
1532
+ 28: 23,
1533
+ 29: 24,
1534
+ 30: m,
1535
+ 31: h,
1536
+ 32: g,
1537
+ 34: _,
1538
+ 36: v,
1539
+ 37: y,
1540
+ 38: b,
1541
+ 39: x,
1542
+ 40: S,
1543
+ 42: C,
1544
+ 44: w,
1545
+ 45: T,
1546
+ 47: E,
1547
+ 51: D,
1548
+ 53: O,
1549
+ 54: k,
1550
+ 56: A,
1551
+ 61: j,
1552
+ 62: M,
1553
+ 63: N,
1554
+ 64: P,
1555
+ 73: F
1556
+ },
1557
+ { 17: [1, 164] },
1558
+ {
1559
+ 4: o,
1560
+ 5: s,
1561
+ 8: 8,
1562
+ 9: 10,
1563
+ 10: c,
1564
+ 13: 13,
1565
+ 14: l,
1566
+ 15: u,
1567
+ 17: [2, 47],
1568
+ 18: 16,
1569
+ 19: d,
1570
+ 22: f,
1571
+ 23: 41,
1572
+ 24: p,
1573
+ 25: 20,
1574
+ 26: 21,
1575
+ 27: 22,
1576
+ 28: 23,
1577
+ 29: 24,
1578
+ 30: m,
1579
+ 31: h,
1580
+ 32: g,
1581
+ 34: _,
1582
+ 36: v,
1583
+ 37: y,
1584
+ 38: b,
1585
+ 39: x,
1586
+ 40: S,
1587
+ 42: C,
1588
+ 44: w,
1589
+ 45: T,
1590
+ 47: E,
1591
+ 50: [1, 165],
1592
+ 51: D,
1593
+ 53: O,
1594
+ 54: k,
1595
+ 56: A,
1596
+ 61: j,
1597
+ 62: M,
1598
+ 63: N,
1599
+ 64: P,
1600
+ 73: F
1601
+ },
1602
+ { 17: [1, 166] },
1603
+ {
1604
+ 4: o,
1605
+ 5: s,
1606
+ 8: 8,
1607
+ 9: 10,
1608
+ 10: c,
1609
+ 13: 13,
1610
+ 14: l,
1611
+ 15: u,
1612
+ 17: [2, 45],
1613
+ 18: 16,
1614
+ 19: d,
1615
+ 22: f,
1616
+ 23: 41,
1617
+ 24: p,
1618
+ 25: 20,
1619
+ 26: 21,
1620
+ 27: 22,
1621
+ 28: 23,
1622
+ 29: 24,
1623
+ 30: m,
1624
+ 31: h,
1625
+ 32: g,
1626
+ 34: _,
1627
+ 36: v,
1628
+ 37: y,
1629
+ 38: b,
1630
+ 39: x,
1631
+ 40: S,
1632
+ 42: C,
1633
+ 44: w,
1634
+ 45: T,
1635
+ 47: E,
1636
+ 49: [1, 167],
1637
+ 51: D,
1638
+ 53: O,
1639
+ 54: k,
1640
+ 56: A,
1641
+ 61: j,
1642
+ 62: M,
1643
+ 63: N,
1644
+ 64: P,
1645
+ 73: F
1646
+ },
1647
+ { 17: [1, 168] },
1648
+ { 17: [1, 169] },
1649
+ {
1650
+ 4: o,
1651
+ 5: s,
1652
+ 8: 8,
1653
+ 9: 10,
1654
+ 10: c,
1655
+ 13: 13,
1656
+ 14: l,
1657
+ 15: u,
1658
+ 17: [2, 43],
1659
+ 18: 16,
1660
+ 19: d,
1661
+ 22: f,
1662
+ 23: 41,
1663
+ 24: p,
1664
+ 25: 20,
1665
+ 26: 21,
1666
+ 27: 22,
1667
+ 28: 23,
1668
+ 29: 24,
1669
+ 30: m,
1670
+ 31: h,
1671
+ 32: g,
1672
+ 34: _,
1673
+ 36: v,
1674
+ 37: y,
1675
+ 38: b,
1676
+ 39: x,
1677
+ 40: S,
1678
+ 42: C,
1679
+ 44: w,
1680
+ 45: T,
1681
+ 47: E,
1682
+ 48: [1, 170],
1683
+ 51: D,
1684
+ 53: O,
1685
+ 54: k,
1686
+ 56: A,
1687
+ 61: j,
1688
+ 62: M,
1689
+ 63: N,
1690
+ 64: P,
1691
+ 73: F
1692
+ },
1693
+ {
1694
+ 4: o,
1695
+ 5: s,
1696
+ 8: 8,
1697
+ 9: 10,
1698
+ 10: c,
1699
+ 13: 13,
1700
+ 14: l,
1701
+ 15: u,
1702
+ 17: [1, 171],
1703
+ 18: 16,
1704
+ 19: d,
1705
+ 22: f,
1706
+ 23: 41,
1707
+ 24: p,
1708
+ 25: 20,
1709
+ 26: 21,
1710
+ 27: 22,
1711
+ 28: 23,
1712
+ 29: 24,
1713
+ 30: m,
1714
+ 31: h,
1715
+ 32: g,
1716
+ 34: _,
1717
+ 36: v,
1718
+ 37: y,
1719
+ 38: b,
1720
+ 39: x,
1721
+ 40: S,
1722
+ 42: C,
1723
+ 44: w,
1724
+ 45: T,
1725
+ 47: E,
1726
+ 51: D,
1727
+ 53: O,
1728
+ 54: k,
1729
+ 56: A,
1730
+ 61: j,
1731
+ 62: M,
1732
+ 63: N,
1733
+ 64: P,
1734
+ 73: F
1735
+ },
1736
+ { 16: [1, 172] },
1737
+ e(I, [2, 50]),
1738
+ { 16: [1, 173] },
1739
+ e(I, [2, 55]),
1740
+ e(Ce, [2, 76]),
1741
+ { 76: [1, 174] },
1742
+ { 16: [1, 175] },
1743
+ e(I, [2, 52]),
1744
+ { 16: [1, 176] },
1745
+ e(I, [2, 57]),
1746
+ e(I, [2, 53]),
1747
+ {
1748
+ 23: 177,
1749
+ 73: F
1750
+ },
1751
+ {
1752
+ 23: 178,
1753
+ 73: F
1754
+ },
1755
+ {
1756
+ 23: 179,
1757
+ 73: F
1758
+ },
1759
+ {
1760
+ 58: 180,
1761
+ 104: J
1762
+ },
1763
+ {
1764
+ 23: 181,
1765
+ 72: [1, 182],
1766
+ 73: F
1767
+ },
1768
+ {
1769
+ 58: 183,
1770
+ 104: J
1771
+ },
1772
+ {
1773
+ 58: 184,
1774
+ 104: J
1775
+ },
1776
+ {
1777
+ 66: [1, 185],
1778
+ 104: [2, 67]
1779
+ },
1780
+ { 5: [2, 60] },
1781
+ { 5: [2, 105] },
1782
+ { 5: [2, 61] },
1783
+ { 5: [2, 62] },
1784
+ { 5: [2, 63] },
1785
+ e(I, [2, 17]),
1786
+ e(ve, [2, 11]),
1787
+ {
1788
+ 13: 186,
1789
+ 51: D,
1790
+ 53: O,
1791
+ 54: k
1792
+ },
1793
+ e(ve, [2, 13]),
1794
+ e(ve, [2, 14]),
1795
+ e(I, [2, 19]),
1796
+ e(I, [2, 35]),
1797
+ e(I, [2, 36]),
1798
+ e(I, [2, 37]),
1799
+ e(I, [2, 38]),
1800
+ { 16: [1, 187] },
1801
+ e(I, [2, 39]),
1802
+ { 16: [1, 188] },
1803
+ e(I, [2, 40]),
1804
+ e(I, [2, 41]),
1805
+ { 16: [1, 189] },
1806
+ e(I, [2, 42]),
1807
+ { 5: [1, 190] },
1808
+ { 5: [1, 191] },
1809
+ { 77: [1, 192] },
1810
+ { 5: [1, 193] },
1811
+ { 5: [1, 194] },
1812
+ {
1813
+ 58: 195,
1814
+ 104: J
1815
+ },
1816
+ {
1817
+ 58: 196,
1818
+ 104: J
1819
+ },
1820
+ {
1821
+ 58: 197,
1822
+ 104: J
1823
+ },
1824
+ { 5: [2, 75] },
1825
+ {
1826
+ 58: 198,
1827
+ 104: J
1828
+ },
1829
+ {
1830
+ 23: 199,
1831
+ 73: F
1832
+ },
1833
+ { 5: [2, 58] },
1834
+ { 5: [2, 59] },
1835
+ {
1836
+ 23: 200,
1837
+ 73: F
1838
+ },
1839
+ e(ve, [2, 12]),
1840
+ e(be, a, {
1841
+ 7: 124,
1842
+ 41: 201
1843
+ }),
1844
+ e(xe, a, {
1845
+ 7: 126,
1846
+ 43: 202
1847
+ }),
1848
+ e(Se, a, {
1849
+ 7: 129,
1850
+ 46: 203
1851
+ }),
1852
+ e(I, [2, 49]),
1853
+ e(I, [2, 54]),
1854
+ e(Ce, [2, 77]),
1855
+ e(I, [2, 51]),
1856
+ e(I, [2, 56]),
1857
+ { 5: [2, 70] },
1858
+ { 5: [2, 71] },
1859
+ { 5: [2, 72] },
1860
+ { 5: [2, 73] },
1861
+ {
1862
+ 58: 204,
1863
+ 104: J
1864
+ },
1865
+ { 104: [2, 66] },
1866
+ { 17: [2, 48] },
1867
+ { 17: [2, 46] },
1868
+ { 17: [2, 44] },
1869
+ { 5: [2, 74] }
1870
+ ],
1871
+ defaultActions: {
1872
+ 5: [2, 1],
1873
+ 6: [2, 2],
1874
+ 108: [2, 68],
1875
+ 109: [2, 69],
1876
+ 150: [2, 60],
1877
+ 151: [2, 105],
1878
+ 152: [2, 61],
1879
+ 153: [2, 62],
1880
+ 154: [2, 63],
1881
+ 180: [2, 75],
1882
+ 183: [2, 58],
1883
+ 184: [2, 59],
1884
+ 195: [2, 70],
1885
+ 196: [2, 71],
1886
+ 197: [2, 72],
1887
+ 198: [2, 73],
1888
+ 200: [2, 66],
1889
+ 201: [2, 48],
1890
+ 202: [2, 46],
1891
+ 203: [2, 44],
1892
+ 204: [2, 74]
1893
+ },
1894
+ parseError: /* @__PURE__ */ t(function(e, t) {
1895
+ if (t.recoverable) this.trace(e);
1896
+ else {
1897
+ var n = Error(e);
1898
+ throw n.hash = t, n;
1899
+ }
1900
+ }, "parseError"),
1901
+ parse: /* @__PURE__ */ t(function(e) {
1902
+ var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
1903
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
1904
+ h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
1905
+ var v = h.yylloc;
1906
+ o.push(v);
1907
+ var y = h.options && h.options.ranges;
1908
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1909
+ function b(e) {
1910
+ r.length -= 2 * e, a.length -= e, o.length -= e;
1911
+ }
1912
+ t(b, "popStack");
1913
+ function x() {
1914
+ var e = i.pop() || h.lex() || p;
1915
+ return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
1916
+ }
1917
+ t(x, "lex");
1918
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
1919
+ if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
1920
+ var M = "";
1921
+ for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
1922
+ M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
1923
+ text: h.match,
1924
+ token: this.terminals_[S] || S,
1925
+ line: h.yylineno,
1926
+ loc: v,
1927
+ expected: j
1928
+ });
1929
+ }
1930
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
1931
+ switch (T[0]) {
1932
+ case 1:
1933
+ r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
1934
+ break;
1935
+ case 2:
1936
+ if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
1937
+ first_line: o[o.length - (k || 1)].first_line,
1938
+ last_line: o[o.length - 1].last_line,
1939
+ first_column: o[o.length - (k || 1)].first_column,
1940
+ last_column: o[o.length - 1].last_column
1941
+ }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
1942
+ c,
1943
+ u,
1944
+ l,
1945
+ g.yy,
1946
+ T[1],
1947
+ a,
1948
+ o
1949
+ ].concat(m)), E !== void 0) return E;
1950
+ k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
1951
+ break;
1952
+ case 3: return !0;
1953
+ }
1954
+ }
1955
+ return !0;
1956
+ }, "parse")
1957
+ };
1958
+ we.lexer = /* @__PURE__ */ (function() {
1959
+ return {
1960
+ EOF: 1,
1961
+ parseError: /* @__PURE__ */ t(function(e, t) {
1962
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
1963
+ else throw Error(e);
1964
+ }, "parseError"),
1965
+ setInput: /* @__PURE__ */ t(function(e, t) {
1966
+ return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1967
+ first_line: 1,
1968
+ first_column: 0,
1969
+ last_line: 1,
1970
+ last_column: 0
1971
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1972
+ }, "setInput"),
1973
+ input: /* @__PURE__ */ t(function() {
1974
+ var e = this._input[0];
1975
+ return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
1976
+ }, "input"),
1977
+ unput: /* @__PURE__ */ t(function(e) {
1978
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
1979
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
1980
+ var r = this.match.split(/(?:\r\n?|\n)/g);
1981
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
1982
+ var i = this.yylloc.range;
1983
+ return this.yylloc = {
1984
+ first_line: this.yylloc.first_line,
1985
+ last_line: this.yylineno + 1,
1986
+ first_column: this.yylloc.first_column,
1987
+ last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
1988
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
1989
+ }, "unput"),
1990
+ more: /* @__PURE__ */ t(function() {
1991
+ return this._more = !0, this;
1992
+ }, "more"),
1993
+ reject: /* @__PURE__ */ t(function() {
1994
+ if (this.options.backtrack_lexer) this._backtrack = !0;
1995
+ else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
1996
+ text: "",
1997
+ token: null,
1998
+ line: this.yylineno
1999
+ });
2000
+ return this;
2001
+ }, "reject"),
2002
+ less: /* @__PURE__ */ t(function(e) {
2003
+ this.unput(this.match.slice(e));
2004
+ }, "less"),
2005
+ pastInput: /* @__PURE__ */ t(function() {
2006
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
2007
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
2008
+ }, "pastInput"),
2009
+ upcomingInput: /* @__PURE__ */ t(function() {
2010
+ var e = this.match;
2011
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
2012
+ }, "upcomingInput"),
2013
+ showPosition: /* @__PURE__ */ t(function() {
2014
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
2015
+ return e + this.upcomingInput() + "\n" + t + "^";
2016
+ }, "showPosition"),
2017
+ test_match: /* @__PURE__ */ t(function(e, t) {
2018
+ var n, r, i;
2019
+ if (this.options.backtrack_lexer && (i = {
2020
+ yylineno: this.yylineno,
2021
+ yylloc: {
2022
+ first_line: this.yylloc.first_line,
2023
+ last_line: this.last_line,
2024
+ first_column: this.yylloc.first_column,
2025
+ last_column: this.yylloc.last_column
2026
+ },
2027
+ yytext: this.yytext,
2028
+ match: this.match,
2029
+ matches: this.matches,
2030
+ matched: this.matched,
2031
+ yyleng: this.yyleng,
2032
+ offset: this.offset,
2033
+ _more: this._more,
2034
+ _input: this._input,
2035
+ yy: this.yy,
2036
+ conditionStack: this.conditionStack.slice(0),
2037
+ done: this.done
2038
+ }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
2039
+ first_line: this.yylloc.last_line,
2040
+ last_line: this.yylineno + 1,
2041
+ first_column: this.yylloc.last_column,
2042
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
2043
+ }, this.yytext += e[0], this.match += e[0], this.matches = e, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
2044
+ if (this._backtrack) {
2045
+ for (var a in i) this[a] = i[a];
2046
+ return !1;
2047
+ }
2048
+ return !1;
2049
+ }, "test_match"),
2050
+ next: /* @__PURE__ */ t(function() {
2051
+ if (this.done) return this.EOF;
2052
+ this._input || (this.done = !0);
2053
+ var e, t, n, r;
2054
+ this._more || (this.yytext = "", this.match = "");
2055
+ for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
2056
+ if (t = n, r = a, this.options.backtrack_lexer) {
2057
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
2058
+ if (this._backtrack) {
2059
+ t = !1;
2060
+ continue;
2061
+ } else return !1;
2062
+ } else if (!this.options.flex) break;
2063
+ }
2064
+ return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
2065
+ text: "",
2066
+ token: null,
2067
+ line: this.yylineno
2068
+ });
2069
+ }, "next"),
2070
+ lex: /* @__PURE__ */ t(function() {
2071
+ return this.next() || this.lex();
2072
+ }, "lex"),
2073
+ begin: /* @__PURE__ */ t(function(e) {
2074
+ this.conditionStack.push(e);
2075
+ }, "begin"),
2076
+ popState: /* @__PURE__ */ t(function() {
2077
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
2078
+ }, "popState"),
2079
+ _currentRules: /* @__PURE__ */ t(function() {
2080
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
2081
+ }, "_currentRules"),
2082
+ topState: /* @__PURE__ */ t(function(e) {
2083
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
2084
+ }, "topState"),
2085
+ pushState: /* @__PURE__ */ t(function(e) {
2086
+ this.begin(e);
2087
+ }, "pushState"),
2088
+ stateStackSize: /* @__PURE__ */ t(function() {
2089
+ return this.conditionStack.length;
2090
+ }, "stateStackSize"),
2091
+ options: { "case-insensitive": !0 },
2092
+ performAction: /* @__PURE__ */ t(function(e, t, n, r) {
2093
+ switch (n) {
2094
+ case 0: return 5;
2095
+ case 1: break;
2096
+ case 2: break;
2097
+ case 3: break;
2098
+ case 4: break;
2099
+ case 5: break;
2100
+ case 6: return 20;
2101
+ case 7: return this.begin("CONFIG"), 75;
2102
+ case 8: return 76;
2103
+ case 9: return this.popState(), this.begin("ALIAS"), 77;
2104
+ case 10: return this.popState(), this.popState(), 77;
2105
+ case 11: return t.yytext = t.yytext.trim(), 73;
2106
+ case 12: return t.yytext = t.yytext.trim(), this.begin("ALIAS"), 73;
2107
+ case 13: return t.yytext = t.yytext.trim(), this.popState(), 73;
2108
+ case 14: return this.popState(), 10;
2109
+ case 15: return t.yytext = t.yytext.trim(), this.popState(), 10;
2110
+ case 16: return this.begin("LINE"), 15;
2111
+ case 17: return this.begin("ID"), 51;
2112
+ case 18: return this.begin("ID"), 53;
2113
+ case 19: return 14;
2114
+ case 20: return this.begin("ID"), 54;
2115
+ case 21: return this.popState(), this.popState(), this.begin("LINE"), 52;
2116
+ case 22: return this.popState(), this.popState(), 5;
2117
+ case 23: return this.begin("LINE"), 37;
2118
+ case 24: return this.begin("LINE"), 38;
2119
+ case 25: return this.begin("LINE"), 39;
2120
+ case 26: return this.begin("LINE"), 40;
2121
+ case 27: return this.begin("LINE"), 50;
2122
+ case 28: return this.begin("LINE"), 42;
2123
+ case 29: return this.begin("LINE"), 44;
2124
+ case 30: return this.begin("LINE"), 49;
2125
+ case 31: return this.begin("LINE"), 45;
2126
+ case 32: return this.begin("LINE"), 48;
2127
+ case 33: return this.begin("LINE"), 47;
2128
+ case 34: return this.popState(), 16;
2129
+ case 35: return 17;
2130
+ case 36: return 67;
2131
+ case 37: return 68;
2132
+ case 38: return 61;
2133
+ case 39: return 62;
2134
+ case 40: return 63;
2135
+ case 41: return 64;
2136
+ case 42: return 59;
2137
+ case 43: return 56;
2138
+ case 44: return this.begin("ID"), 22;
2139
+ case 45: return this.begin("ID"), 24;
2140
+ case 46: return 30;
2141
+ case 47: return 31;
2142
+ case 48: return this.begin("acc_title"), 32;
2143
+ case 49: return this.popState(), "acc_title_value";
2144
+ case 50: return this.begin("acc_descr"), 34;
2145
+ case 51: return this.popState(), "acc_descr_value";
2146
+ case 52:
2147
+ this.begin("acc_descr_multiline");
2148
+ break;
2149
+ case 53:
2150
+ this.popState();
2151
+ break;
2152
+ case 54: return "acc_descr_multiline_value";
2153
+ case 55: return 6;
2154
+ case 56: return 19;
2155
+ case 57: return 21;
2156
+ case 58: return 66;
2157
+ case 59: return 5;
2158
+ case 60: return t.yytext = t.yytext.trim(), 73;
2159
+ case 61: return 80;
2160
+ case 62: return 97;
2161
+ case 63: return 98;
2162
+ case 64: return 99;
2163
+ case 65: return 78;
2164
+ case 66: return 79;
2165
+ case 67: return 100;
2166
+ case 68: return 101;
2167
+ case 69: return 102;
2168
+ case 70: return 103;
2169
+ case 71: return 85;
2170
+ case 72: return 86;
2171
+ case 73: return 87;
2172
+ case 74: return 88;
2173
+ case 75: return 93;
2174
+ case 76: return 94;
2175
+ case 77: return 95;
2176
+ case 78: return 96;
2177
+ case 79: return 81;
2178
+ case 80: return 82;
2179
+ case 81: return 83;
2180
+ case 82: return 84;
2181
+ case 83: return 89;
2182
+ case 84: return 90;
2183
+ case 85: return 91;
2184
+ case 86: return 92;
2185
+ case 87: return 104;
2186
+ case 88: return 104;
2187
+ case 89: return 70;
2188
+ case 90: return 71;
2189
+ case 91: return 72;
2190
+ case 92: return 5;
2191
+ case 93: return 10;
2192
+ }
2193
+ }, "anonymous"),
2194
+ rules: [
2195
+ /^(?:[\n]+)/i,
2196
+ /^(?:\s+)/i,
2197
+ /^(?:((?!\n)\s)+)/i,
2198
+ /^(?:#[^\n]*)/i,
2199
+ /^(?:%(?!\{)[^\n]*)/i,
2200
+ /^(?:[^\}]%%[^\n]*)/i,
2201
+ /^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,
2202
+ /^(?:@\{)/i,
2203
+ /^(?:[^\}]+)/i,
2204
+ /^(?:\}(?=\s+as\s))/i,
2205
+ /^(?:\})/i,
2206
+ /^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,
2207
+ /^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,
2208
+ /^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,
2209
+ /^(?:[^<>:\n,;@]*<[^\n]*)/i,
2210
+ /^(?:[^\n]+)/i,
2211
+ /^(?:box\b)/i,
2212
+ /^(?:participant\b)/i,
2213
+ /^(?:actor\b)/i,
2214
+ /^(?:create\b)/i,
2215
+ /^(?:destroy\b)/i,
2216
+ /^(?:as\b)/i,
2217
+ /^(?:(?:))/i,
2218
+ /^(?:loop\b)/i,
2219
+ /^(?:rect\b)/i,
2220
+ /^(?:opt\b)/i,
2221
+ /^(?:alt\b)/i,
2222
+ /^(?:else\b)/i,
2223
+ /^(?:par\b)/i,
2224
+ /^(?:par_over\b)/i,
2225
+ /^(?:and\b)/i,
2226
+ /^(?:critical\b)/i,
2227
+ /^(?:option\b)/i,
2228
+ /^(?:break\b)/i,
2229
+ /^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,
2230
+ /^(?:end\b)/i,
2231
+ /^(?:left of\b)/i,
2232
+ /^(?:right of\b)/i,
2233
+ /^(?:links\b)/i,
2234
+ /^(?:link\b)/i,
2235
+ /^(?:properties\b)/i,
2236
+ /^(?:details\b)/i,
2237
+ /^(?:over\b)/i,
2238
+ /^(?:note\b)/i,
2239
+ /^(?:activate\b)/i,
2240
+ /^(?:deactivate\b)/i,
2241
+ /^(?:title\s[^#\n;]+)/i,
2242
+ /^(?:title:\s[^#\n;]+)/i,
2243
+ /^(?:accTitle\s*:\s*)/i,
2244
+ /^(?:(?!\n||)*[^\n]*)/i,
2245
+ /^(?:accDescr\s*:\s*)/i,
2246
+ /^(?:(?!\n||)*[^\n]*)/i,
2247
+ /^(?:accDescr\s*\{\s*)/i,
2248
+ /^(?:[\}])/i,
2249
+ /^(?:[^\}]*)/i,
2250
+ /^(?:sequenceDiagram\b)/i,
2251
+ /^(?:autonumber\b)/i,
2252
+ /^(?:off\b)/i,
2253
+ /^(?:,)/i,
2254
+ /^(?:;)/i,
2255
+ /^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,
2256
+ /^(?:->>)/i,
2257
+ /^(?:<<->>)/i,
2258
+ /^(?:-->>)/i,
2259
+ /^(?:<<-->>)/i,
2260
+ /^(?:->)/i,
2261
+ /^(?:-->)/i,
2262
+ /^(?:-[x])/i,
2263
+ /^(?:--[x])/i,
2264
+ /^(?:-[\)])/i,
2265
+ /^(?:--[\)])/i,
2266
+ /^(?:--\|\\)/i,
2267
+ /^(?:--\|\/)/i,
2268
+ /^(?:--\\\\)/i,
2269
+ /^(?:--\/\/)/i,
2270
+ /^(?:\/\|--)/i,
2271
+ /^(?:\\\|--)/i,
2272
+ /^(?:\/\/--)/i,
2273
+ /^(?:\\\\--)/i,
2274
+ /^(?:-\|\\)/i,
2275
+ /^(?:-\|\/)/i,
2276
+ /^(?:-\\\\)/i,
2277
+ /^(?:-\/\/)/i,
2278
+ /^(?:\/\|-)/i,
2279
+ /^(?:\\\|-)/i,
2280
+ /^(?:\/\/-)/i,
2281
+ /^(?:\\\\-)/i,
2282
+ /^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,
2283
+ /^(?::)/i,
2284
+ /^(?:\+)/i,
2285
+ /^(?:-)/i,
2286
+ /^(?:\(\))/i,
2287
+ /^(?:$)/i,
2288
+ /^(?:.)/i
2289
+ ],
2290
+ conditions: {
2291
+ acc_descr_multiline: {
2292
+ rules: [53, 54],
2293
+ inclusive: !1
2294
+ },
2295
+ acc_descr: {
2296
+ rules: [51],
2297
+ inclusive: !1
2298
+ },
2299
+ acc_title: {
2300
+ rules: [49],
2301
+ inclusive: !1
2302
+ },
2303
+ ID: {
2304
+ rules: [
2305
+ 2,
2306
+ 3,
2307
+ 7,
2308
+ 11,
2309
+ 12,
2310
+ 13,
2311
+ 14,
2312
+ 15
2313
+ ],
2314
+ inclusive: !1
2315
+ },
2316
+ ALIAS: {
2317
+ rules: [
2318
+ 2,
2319
+ 3,
2320
+ 21,
2321
+ 22
2322
+ ],
2323
+ inclusive: !1
2324
+ },
2325
+ LINE: {
2326
+ rules: [
2327
+ 2,
2328
+ 3,
2329
+ 34
2330
+ ],
2331
+ inclusive: !1
2332
+ },
2333
+ CONFIG: {
2334
+ rules: [
2335
+ 8,
2336
+ 9,
2337
+ 10
2338
+ ],
2339
+ inclusive: !1
2340
+ },
2341
+ CONFIG_DATA: {
2342
+ rules: [],
2343
+ inclusive: !1
2344
+ },
2345
+ INITIAL: {
2346
+ rules: [
2347
+ 0,
2348
+ 1,
2349
+ 3,
2350
+ 4,
2351
+ 5,
2352
+ 6,
2353
+ 16,
2354
+ 17,
2355
+ 18,
2356
+ 19,
2357
+ 20,
2358
+ 23,
2359
+ 24,
2360
+ 25,
2361
+ 26,
2362
+ 27,
2363
+ 28,
2364
+ 29,
2365
+ 30,
2366
+ 31,
2367
+ 32,
2368
+ 33,
2369
+ 35,
2370
+ 36,
2371
+ 37,
2372
+ 38,
2373
+ 39,
2374
+ 40,
2375
+ 41,
2376
+ 42,
2377
+ 43,
2378
+ 44,
2379
+ 45,
2380
+ 46,
2381
+ 47,
2382
+ 48,
2383
+ 50,
2384
+ 52,
2385
+ 55,
2386
+ 56,
2387
+ 57,
2388
+ 58,
2389
+ 59,
2390
+ 60,
2391
+ 61,
2392
+ 62,
2393
+ 63,
2394
+ 64,
2395
+ 65,
2396
+ 66,
2397
+ 67,
2398
+ 68,
2399
+ 69,
2400
+ 70,
2401
+ 71,
2402
+ 72,
2403
+ 73,
2404
+ 74,
2405
+ 75,
2406
+ 76,
2407
+ 77,
2408
+ 78,
2409
+ 79,
2410
+ 80,
2411
+ 81,
2412
+ 82,
2413
+ 83,
2414
+ 84,
2415
+ 85,
2416
+ 86,
2417
+ 87,
2418
+ 88,
2419
+ 89,
2420
+ 90,
2421
+ 91,
2422
+ 92,
2423
+ 93
2424
+ ],
2425
+ inclusive: !0
2426
+ }
2427
+ }
2428
+ };
2429
+ })();
2430
+ function Te() {
2431
+ this.yy = {};
2432
+ }
2433
+ return t(Te, "Parser"), Te.prototype = we, we.Parser = Te, new Te();
2434
+ })();
2435
+ P.parser = P;
2436
+ var F = P, I = {
2437
+ SOLID: 0,
2438
+ DOTTED: 1,
2439
+ NOTE: 2,
2440
+ SOLID_CROSS: 3,
2441
+ DOTTED_CROSS: 4,
2442
+ SOLID_OPEN: 5,
2443
+ DOTTED_OPEN: 6,
2444
+ LOOP_START: 10,
2445
+ LOOP_END: 11,
2446
+ ALT_START: 12,
2447
+ ALT_ELSE: 13,
2448
+ ALT_END: 14,
2449
+ OPT_START: 15,
2450
+ OPT_END: 16,
2451
+ ACTIVE_START: 17,
2452
+ ACTIVE_END: 18,
2453
+ PAR_START: 19,
2454
+ PAR_AND: 20,
2455
+ PAR_END: 21,
2456
+ RECT_START: 22,
2457
+ RECT_END: 23,
2458
+ SOLID_POINT: 24,
2459
+ DOTTED_POINT: 25,
2460
+ AUTONUMBER: 26,
2461
+ CRITICAL_START: 27,
2462
+ CRITICAL_OPTION: 28,
2463
+ CRITICAL_END: 29,
2464
+ BREAK_START: 30,
2465
+ BREAK_END: 31,
2466
+ PAR_OVER_START: 32,
2467
+ BIDIRECTIONAL_SOLID: 33,
2468
+ BIDIRECTIONAL_DOTTED: 34,
2469
+ SOLID_TOP: 41,
2470
+ SOLID_BOTTOM: 42,
2471
+ STICK_TOP: 43,
2472
+ STICK_BOTTOM: 44,
2473
+ SOLID_ARROW_TOP_REVERSE: 45,
2474
+ SOLID_ARROW_BOTTOM_REVERSE: 46,
2475
+ STICK_ARROW_TOP_REVERSE: 47,
2476
+ STICK_ARROW_BOTTOM_REVERSE: 48,
2477
+ SOLID_TOP_DOTTED: 51,
2478
+ SOLID_BOTTOM_DOTTED: 52,
2479
+ STICK_TOP_DOTTED: 53,
2480
+ STICK_BOTTOM_DOTTED: 54,
2481
+ SOLID_ARROW_TOP_REVERSE_DOTTED: 55,
2482
+ SOLID_ARROW_BOTTOM_REVERSE_DOTTED: 56,
2483
+ STICK_ARROW_TOP_REVERSE_DOTTED: 57,
2484
+ STICK_ARROW_BOTTOM_REVERSE_DOTTED: 58,
2485
+ CENTRAL_CONNECTION: 59,
2486
+ CENTRAL_CONNECTION_REVERSE: 60,
2487
+ CENTRAL_CONNECTION_DUAL: 61
2488
+ }, L = {
2489
+ FILLED: 0,
2490
+ OPEN: 1
2491
+ }, ee = {
2492
+ LEFTOF: 0,
2493
+ RIGHTOF: 1,
2494
+ OVER: 2
2495
+ }, R = {
2496
+ ACTOR: "actor",
2497
+ BOUNDARY: "boundary",
2498
+ COLLECTIONS: "collections",
2499
+ CONTROL: "control",
2500
+ DATABASE: "database",
2501
+ ENTITY: "entity",
2502
+ PARTICIPANT: "participant",
2503
+ QUEUE: "queue"
2504
+ }, te = class {
2505
+ constructor() {
2506
+ this.state = new A(() => ({
2507
+ prevActor: void 0,
2508
+ actors: /* @__PURE__ */ new Map(),
2509
+ createdActors: /* @__PURE__ */ new Map(),
2510
+ destroyedActors: /* @__PURE__ */ new Map(),
2511
+ boxes: [],
2512
+ messages: [],
2513
+ notes: [],
2514
+ sequenceNumbersEnabled: !1,
2515
+ wrapEnabled: void 0,
2516
+ currentBox: void 0,
2517
+ lastCreated: void 0,
2518
+ lastDestroyed: void 0
2519
+ })), this.setAccTitle = l, this.setAccDescription = o, this.setDiagramTitle = s, this.getAccTitle = y, this.getAccDescription = g, this.getDiagramTitle = _, this.apply = this.apply.bind(this), this.parseBoxData = this.parseBoxData.bind(this), this.parseMessage = this.parseMessage.bind(this), this.clear(), this.setWrap(v().wrap), this.LINETYPE = I, this.ARROWTYPE = L, this.PLACEMENT = ee;
2520
+ }
2521
+ static {
2522
+ t(this, "SequenceDB");
2523
+ }
2524
+ addBox(e) {
2525
+ this.state.records.boxes.push({
2526
+ name: e.text,
2527
+ wrap: e.wrap ?? this.autoWrap(),
2528
+ fill: e.color,
2529
+ actorKeys: []
2530
+ }), this.state.records.currentBox = this.state.records.boxes.slice(-1)[0];
2531
+ }
2532
+ addActor(e, t, n, r, i) {
2533
+ let a = this.state.records.currentBox, o;
2534
+ if (i !== void 0) {
2535
+ let e;
2536
+ e = i.includes("\n") ? i + "\n" : "{\n" + i + "\n}", o = j(e, { schema: M });
2537
+ }
2538
+ r = o?.type ?? r, o?.alias && (!n || n.text === t) && (n = {
2539
+ text: o.alias,
2540
+ wrap: n?.wrap,
2541
+ type: r
2542
+ });
2543
+ let s = this.state.records.actors.get(e);
2544
+ if (s) {
2545
+ if (this.state.records.currentBox && s.box && this.state.records.currentBox !== s.box) throw Error(`A same participant should only be defined in one Box: ${s.name} can't be in '${s.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);
2546
+ if (a = s.box ? s.box : this.state.records.currentBox, s.box = a, s && t === s.name && n == null) return;
2547
+ }
2548
+ if (n?.text ?? (n = {
2549
+ text: t,
2550
+ type: r
2551
+ }), (r == null || n.text == null) && (n = {
2552
+ text: t,
2553
+ type: r
2554
+ }), this.state.records.actors.set(e, {
2555
+ box: a,
2556
+ name: t,
2557
+ description: n.text,
2558
+ wrap: n.wrap ?? this.autoWrap(),
2559
+ prevActor: this.state.records.prevActor,
2560
+ links: {},
2561
+ properties: {},
2562
+ actorCnt: null,
2563
+ rectData: null,
2564
+ type: r ?? "participant"
2565
+ }), this.state.records.prevActor) {
2566
+ let t = this.state.records.actors.get(this.state.records.prevActor);
2567
+ t && (t.nextActor = e);
2568
+ }
2569
+ this.state.records.currentBox && this.state.records.currentBox.actorKeys.push(e), this.state.records.prevActor = e;
2570
+ }
2571
+ activationCount(e) {
2572
+ let t, n = 0;
2573
+ if (!e) return 0;
2574
+ for (t = 0; t < this.state.records.messages.length; t++) this.state.records.messages[t].type === this.LINETYPE.ACTIVE_START && this.state.records.messages[t].from === e && n++, this.state.records.messages[t].type === this.LINETYPE.ACTIVE_END && this.state.records.messages[t].from === e && n--;
2575
+ return n;
2576
+ }
2577
+ addMessage(e, t, n, r) {
2578
+ this.state.records.messages.push({
2579
+ id: this.state.records.messages.length.toString(),
2580
+ from: e,
2581
+ to: t,
2582
+ message: n.text,
2583
+ wrap: n.wrap ?? this.autoWrap(),
2584
+ answer: r
2585
+ });
2586
+ }
2587
+ addSignal(e, t, n, r, i = !1, a) {
2588
+ if (r === this.LINETYPE.ACTIVE_END && this.activationCount(e ?? "") < 1) {
2589
+ let t = /* @__PURE__ */ Error("Trying to inactivate an inactive participant (" + e + ")");
2590
+ throw t.hash = {
2591
+ text: "->>-",
2592
+ token: "->>-",
2593
+ line: "1",
2594
+ loc: {
2595
+ first_line: 1,
2596
+ last_line: 1,
2597
+ first_column: 1,
2598
+ last_column: 1
2599
+ },
2600
+ expected: ["'ACTIVE_PARTICIPANT'"]
2601
+ }, t;
2602
+ }
2603
+ return this.state.records.messages.push({
2604
+ id: this.state.records.messages.length.toString(),
2605
+ from: e,
2606
+ to: t,
2607
+ message: n?.text ?? "",
2608
+ wrap: n?.wrap ?? this.autoWrap(),
2609
+ type: r,
2610
+ activate: i,
2611
+ centralConnection: a ?? 0
2612
+ }), !0;
2613
+ }
2614
+ hasAtLeastOneBox() {
2615
+ return this.state.records.boxes.length > 0;
2616
+ }
2617
+ hasAtLeastOneBoxWithTitle() {
2618
+ return this.state.records.boxes.some((e) => e.name);
2619
+ }
2620
+ getMessages() {
2621
+ return this.state.records.messages;
2622
+ }
2623
+ getBoxes() {
2624
+ return this.state.records.boxes;
2625
+ }
2626
+ getActors() {
2627
+ return this.state.records.actors;
2628
+ }
2629
+ getCreatedActors() {
2630
+ return this.state.records.createdActors;
2631
+ }
2632
+ getDestroyedActors() {
2633
+ return this.state.records.destroyedActors;
2634
+ }
2635
+ getActor(e) {
2636
+ return this.state.records.actors.get(e);
2637
+ }
2638
+ getActorKeys() {
2639
+ return [...this.state.records.actors.keys()];
2640
+ }
2641
+ enableSequenceNumbers() {
2642
+ this.state.records.sequenceNumbersEnabled = !0;
2643
+ }
2644
+ disableSequenceNumbers() {
2645
+ this.state.records.sequenceNumbersEnabled = !1;
2646
+ }
2647
+ showSequenceNumbers() {
2648
+ return this.state.records.sequenceNumbersEnabled;
2649
+ }
2650
+ setWrap(e) {
2651
+ this.state.records.wrapEnabled = e;
2652
+ }
2653
+ extractWrap(e) {
2654
+ if (e === void 0) return {};
2655
+ e = e.trim();
2656
+ let t = /^:?wrap:/.exec(e) === null ? /^:?nowrap:/.exec(e) === null ? void 0 : !1 : !0;
2657
+ return {
2658
+ cleanedText: (t === void 0 ? e : e.replace(/^:?(?:no)?wrap:/, "")).trim(),
2659
+ wrap: t
2660
+ };
2661
+ }
2662
+ autoWrap() {
2663
+ return this.state.records.wrapEnabled === void 0 ? v().sequence?.wrap ?? !1 : this.state.records.wrapEnabled;
2664
+ }
2665
+ clear() {
2666
+ this.state.reset(), u();
2667
+ }
2668
+ parseMessage(e) {
2669
+ let t = e.trim(), { wrap: r, cleanedText: i } = this.extractWrap(t), a = {
2670
+ text: i,
2671
+ wrap: r
2672
+ };
2673
+ return n.debug(`parseMessage: ${JSON.stringify(a)}`), a;
2674
+ }
2675
+ parseBoxData(e) {
2676
+ let t = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e), n = t?.[1] ? t[1].trim() : "transparent", r = t?.[2] ? t[2].trim() : void 0;
2677
+ if (window?.CSS) window.CSS.supports("color", n) || (n = "transparent", r = e.trim());
2678
+ else {
2679
+ let t = new Option().style;
2680
+ t.color = n, t.color !== n && (n = "transparent", r = e.trim());
2681
+ }
2682
+ let { wrap: i, cleanedText: a } = this.extractWrap(r);
2683
+ return {
2684
+ text: a ? b(a, v()) : void 0,
2685
+ color: n,
2686
+ wrap: i
2687
+ };
2688
+ }
2689
+ addNote(e, t, n) {
2690
+ let r = {
2691
+ actor: e,
2692
+ placement: t,
2693
+ message: n.text,
2694
+ wrap: n.wrap ?? this.autoWrap()
2695
+ }, i = [].concat(e, e);
2696
+ this.state.records.notes.push(r), this.state.records.messages.push({
2697
+ id: this.state.records.messages.length.toString(),
2698
+ from: i[0],
2699
+ to: i[1],
2700
+ message: n.text,
2701
+ wrap: n.wrap ?? this.autoWrap(),
2702
+ type: this.LINETYPE.NOTE,
2703
+ placement: t
2704
+ });
2705
+ }
2706
+ addLinks(e, t) {
2707
+ let r = this.getActor(e);
2708
+ try {
2709
+ let e = b(t.text, v());
2710
+ e = e.replace(/&equals;/g, "="), e = e.replace(/&amp;/g, "&");
2711
+ let n = JSON.parse(e);
2712
+ this.insertLinks(r, n);
2713
+ } catch (e) {
2714
+ n.error("error while parsing actor link text", e);
2715
+ }
2716
+ }
2717
+ addALink(e, t) {
2718
+ let r = this.getActor(e);
2719
+ try {
2720
+ let e = {}, n = b(t.text, v()), i = n.indexOf("@");
2721
+ n = n.replace(/&equals;/g, "="), n = n.replace(/&amp;/g, "&");
2722
+ let a = n.slice(0, i - 1).trim();
2723
+ e[a] = n.slice(i + 1).trim(), this.insertLinks(r, e);
2724
+ } catch (e) {
2725
+ n.error("error while parsing actor link text", e);
2726
+ }
2727
+ }
2728
+ insertLinks(e, t) {
2729
+ if (e.links == null) e.links = t;
2730
+ else for (let n in t) e.links[n] = t[n];
2731
+ }
2732
+ addProperties(e, t) {
2733
+ let r = this.getActor(e);
2734
+ try {
2735
+ let e = b(t.text, v()), n = JSON.parse(e);
2736
+ this.insertProperties(r, n);
2737
+ } catch (e) {
2738
+ n.error("error while parsing actor properties text", e);
2739
+ }
2740
+ }
2741
+ insertProperties(e, t) {
2742
+ if (e.properties == null) e.properties = t;
2743
+ else for (let n in t) e.properties[n] = t[n];
2744
+ }
2745
+ boxEnd() {
2746
+ this.state.records.currentBox = void 0;
2747
+ }
2748
+ addDetails(e, t) {
2749
+ let r = this.getActor(e), i = document.getElementById(t.text);
2750
+ try {
2751
+ let e = i.innerHTML, t = JSON.parse(e);
2752
+ t.properties && this.insertProperties(r, t.properties), t.links && this.insertLinks(r, t.links);
2753
+ } catch (e) {
2754
+ n.error("error while parsing actor details text", e);
2755
+ }
2756
+ }
2757
+ getActorProperty(e, t) {
2758
+ if (e?.properties !== void 0) return e.properties[t];
2759
+ }
2760
+ apply(e) {
2761
+ if (Array.isArray(e)) e.forEach((e) => {
2762
+ this.apply(e);
2763
+ });
2764
+ else switch (e.type) {
2765
+ case "sequenceIndex":
2766
+ this.state.records.messages.push({
2767
+ id: this.state.records.messages.length.toString(),
2768
+ from: void 0,
2769
+ to: void 0,
2770
+ message: {
2771
+ start: e.sequenceIndex,
2772
+ step: e.sequenceIndexStep,
2773
+ visible: e.sequenceVisible
2774
+ },
2775
+ wrap: !1,
2776
+ type: e.signalType
2777
+ });
2778
+ break;
2779
+ case "addParticipant":
2780
+ this.addActor(e.actor, e.actor, e.description, e.draw, e.config);
2781
+ break;
2782
+ case "createParticipant":
2783
+ if (this.state.records.actors.has(e.actor)) throw Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");
2784
+ 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);
2785
+ break;
2786
+ case "destroyParticipant":
2787
+ this.state.records.lastDestroyed = e.actor, this.state.records.destroyedActors.set(e.actor, this.state.records.messages.length);
2788
+ break;
2789
+ case "activeStart":
2790
+ this.addSignal(e.actor, void 0, void 0, e.signalType);
2791
+ break;
2792
+ case "centralConnection":
2793
+ this.addSignal(e.actor, void 0, void 0, e.signalType);
2794
+ break;
2795
+ case "centralConnectionReverse":
2796
+ this.addSignal(e.actor, void 0, void 0, e.signalType);
2797
+ break;
2798
+ case "activeEnd":
2799
+ this.addSignal(e.actor, void 0, void 0, e.signalType);
2800
+ break;
2801
+ case "addNote":
2802
+ this.addNote(e.actor, e.placement, e.text);
2803
+ break;
2804
+ case "addLinks":
2805
+ this.addLinks(e.actor, e.text);
2806
+ break;
2807
+ case "addALink":
2808
+ this.addALink(e.actor, e.text);
2809
+ break;
2810
+ case "addProperties":
2811
+ this.addProperties(e.actor, e.text);
2812
+ break;
2813
+ case "addDetails":
2814
+ this.addDetails(e.actor, e.text);
2815
+ break;
2816
+ case "addMessage":
2817
+ if (this.state.records.lastCreated) {
2818
+ if (e.to !== this.state.records.lastCreated) throw Error("The created participant " + this.state.records.lastCreated.name + " does not have an associated creating message after its declaration. Please check the sequence diagram.");
2819
+ this.state.records.lastCreated = void 0;
2820
+ } else if (this.state.records.lastDestroyed) {
2821
+ if (e.to !== this.state.records.lastDestroyed && e.from !== this.state.records.lastDestroyed) throw Error("The destroyed participant " + this.state.records.lastDestroyed.name + " does not have an associated destroying message after its declaration. Please check the sequence diagram.");
2822
+ this.state.records.lastDestroyed = void 0;
2823
+ }
2824
+ this.addSignal(e.from, e.to, e.msg, e.signalType, e.activate, e.centralConnection);
2825
+ break;
2826
+ case "boxStart":
2827
+ this.addBox(e.boxData);
2828
+ break;
2829
+ case "boxEnd":
2830
+ this.boxEnd();
2831
+ break;
2832
+ case "loopStart":
2833
+ this.addSignal(void 0, void 0, e.loopText, e.signalType);
2834
+ break;
2835
+ case "loopEnd":
2836
+ this.addSignal(void 0, void 0, void 0, e.signalType);
2837
+ break;
2838
+ case "rectStart":
2839
+ this.addSignal(void 0, void 0, e.color, e.signalType);
2840
+ break;
2841
+ case "rectEnd":
2842
+ this.addSignal(void 0, void 0, void 0, e.signalType);
2843
+ break;
2844
+ case "optStart":
2845
+ this.addSignal(void 0, void 0, e.optText, e.signalType);
2846
+ break;
2847
+ case "optEnd":
2848
+ this.addSignal(void 0, void 0, void 0, e.signalType);
2849
+ break;
2850
+ case "altStart":
2851
+ this.addSignal(void 0, void 0, e.altText, e.signalType);
2852
+ break;
2853
+ case "else":
2854
+ this.addSignal(void 0, void 0, e.altText, e.signalType);
2855
+ break;
2856
+ case "altEnd":
2857
+ this.addSignal(void 0, void 0, void 0, e.signalType);
2858
+ break;
2859
+ case "setAccTitle":
2860
+ l(e.text);
2861
+ break;
2862
+ case "parStart":
2863
+ this.addSignal(void 0, void 0, e.parText, e.signalType);
2864
+ break;
2865
+ case "and":
2866
+ this.addSignal(void 0, void 0, e.parText, e.signalType);
2867
+ break;
2868
+ case "parEnd":
2869
+ this.addSignal(void 0, void 0, void 0, e.signalType);
2870
+ break;
2871
+ case "criticalStart":
2872
+ this.addSignal(void 0, void 0, e.criticalText, e.signalType);
2873
+ break;
2874
+ case "option":
2875
+ this.addSignal(void 0, void 0, e.optionText, e.signalType);
2876
+ break;
2877
+ case "criticalEnd":
2878
+ this.addSignal(void 0, void 0, void 0, e.signalType);
2879
+ break;
2880
+ case "breakStart":
2881
+ this.addSignal(void 0, void 0, e.breakText, e.signalType);
2882
+ break;
2883
+ case "breakEnd":
2884
+ this.addSignal(void 0, void 0, void 0, e.signalType);
2885
+ break;
2886
+ }
2887
+ }
2888
+ getConfig() {
2889
+ return v().sequence;
2890
+ }
2891
+ }, ne = /* @__PURE__ */ t((e) => {
2892
+ let t = e.dropShadow ?? "none", { look: n } = v();
2893
+ return `.actor {
2894
+ stroke: ${e.actorBorder};
2895
+ fill: ${e.actorBkg};
2896
+ stroke-width: ${e.strokeWidth ?? 1};
2897
+ }
2898
+
2899
+ rect.actor.outer-path[data-look="neo"] {
2900
+ filter: ${t};
2901
+ }
2902
+
2903
+ rect.note[data-look="neo"] {
2904
+ stroke:${e.noteBorderColor};
2905
+ fill:${e.noteBkgColor};
2906
+ filter: ${t};
2907
+ }
2908
+
2909
+ text.actor > tspan {
2910
+ fill: ${e.actorTextColor};
2911
+ stroke: none;
2912
+ }
2913
+
2914
+ .actor-line {
2915
+ stroke: ${e.actorLineColor};
2916
+ }
2917
+
2918
+ .innerArc {
2919
+ stroke-width: 1.5;
2920
+ stroke-dasharray: none;
2921
+ }
2922
+
2923
+ .messageLine0 {
2924
+ stroke-width: 1.5;
2925
+ stroke-dasharray: none;
2926
+ stroke: ${e.signalColor};
2927
+ }
2928
+
2929
+ .messageLine1 {
2930
+ stroke-width: 1.5;
2931
+ stroke-dasharray: 2, 2;
2932
+ stroke: ${e.signalColor};
2933
+ }
2934
+
2935
+ [id$="-arrowhead"] path {
2936
+ fill: ${e.signalColor};
2937
+ stroke: ${e.signalColor};
2938
+ }
2939
+
2940
+ .sequenceNumber {
2941
+ fill: ${e.sequenceNumberColor};
2942
+ }
2943
+
2944
+ [id$="-sequencenumber"] {
2945
+ fill: ${e.signalColor};
2946
+ }
2947
+
2948
+ [id$="-crosshead"] path {
2949
+ fill: ${e.signalColor};
2950
+ stroke: ${e.signalColor};
2951
+ }
2952
+
2953
+ .messageText {
2954
+ fill: ${e.signalTextColor};
2955
+ stroke: none;
2956
+ }
2957
+
2958
+ .labelBox {
2959
+ stroke: ${e.labelBoxBorderColor};
2960
+ fill: ${e.labelBoxBkgColor};
2961
+ filter: ${n === "neo" ? t : "none"};
2962
+ }
2963
+
2964
+ .labelText, .labelText > tspan {
2965
+ fill: ${e.labelTextColor};
2966
+ stroke: none;
2967
+ }
2968
+
2969
+ .loopText, .loopText > tspan {
2970
+ fill: ${e.loopTextColor};
2971
+ stroke: none;
2972
+ }
2973
+
2974
+ .sectionTitle, .sectionTitle > tspan {
2975
+ fill: ${e.loopTextColor};
2976
+ stroke: none;
2977
+ }
2978
+
2979
+ .loopLine {
2980
+ stroke-width: 2px;
2981
+ stroke-dasharray: 2, 2;
2982
+ stroke: ${e.labelBoxBorderColor};
2983
+ fill: ${e.labelBoxBorderColor};
2984
+ }
2985
+
2986
+ .note {
2987
+ //stroke: #decc93;
2988
+ stroke: ${e.noteBorderColor};
2989
+ fill: ${e.noteBkgColor};
2990
+ }
2991
+
2992
+ .noteText, .noteText > tspan {
2993
+ fill: ${e.noteTextColor};
2994
+ stroke: none;
2995
+ ${e.noteFontWeight ? `font-weight: ${e.noteFontWeight};` : ""}
2996
+ }
2997
+
2998
+ .activation0 {
2999
+ fill: ${e.activationBkgColor};
3000
+ stroke: ${e.activationBorderColor};
3001
+ }
3002
+
3003
+ .activation1 {
3004
+ fill: ${e.activationBkgColor};
3005
+ stroke: ${e.activationBorderColor};
3006
+ }
3007
+
3008
+ .activation2 {
3009
+ fill: ${e.activationBkgColor};
3010
+ stroke: ${e.activationBorderColor};
3011
+ }
3012
+
3013
+ .actorPopupMenu {
3014
+ position: absolute;
3015
+ }
3016
+
3017
+ .actorPopupMenuPanel {
3018
+ position: absolute;
3019
+ fill: ${e.actorBkg};
3020
+ box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
3021
+ filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
3022
+ }
3023
+ .actor-man circle, line {
3024
+ fill: ${e.actorBkg};
3025
+ stroke-width: 2px;
3026
+ }
3027
+
3028
+ g rect.rect {
3029
+ filter: ${t};
3030
+ stroke: ${e.nodeBorder};
3031
+ }
3032
+ `;
3033
+ }, "getStyles"), z = 36, B = "actor-top", V = "actor-bottom", re = "actor-box", H = "actor-man", U = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), W = /* @__PURE__ */ t(function(e, t) {
3034
+ let n = w(e, t);
3035
+ return d().look === "neo" && n.attr("data-look", "neo"), n;
3036
+ }, "drawRect"), ie = /* @__PURE__ */ t(function(e, t, n, r, i) {
3037
+ if (t.links === void 0 || t.links === null || Object.keys(t.links).length === 0) return {
3038
+ height: 0,
3039
+ width: 0
3040
+ };
3041
+ let a = t.links, o = t.actorCnt, s = t.rectData;
3042
+ var c = "none";
3043
+ i && (c = "block !important");
3044
+ let l = e.append("g");
3045
+ l.attr("id", "actor" + o + "_popup"), l.attr("class", "actorPopupMenu"), l.attr("display", c);
3046
+ var u = "";
3047
+ s.class !== void 0 && (u = " " + s.class);
3048
+ let d = s.width > n ? s.width : n, f = l.append("rect");
3049
+ if (f.attr("class", "actorPopupMenuPanel" + u), f.attr("x", s.x), f.attr("y", s.height), f.attr("fill", s.fill), f.attr("stroke", s.stroke), f.attr("width", d), f.attr("height", s.height), f.attr("rx", s.rx), f.attr("ry", s.ry), a != null) {
3050
+ var p = 20;
3051
+ for (let e in a) {
3052
+ var m = l.append("a"), h = (0, N.sanitizeUrl)(a[e]);
3053
+ m.attr("xlink:href", h), m.attr("target", "_blank"), je(r)(e, m, s.x + 10, s.height + p, d, 20, { class: "actor" }, r), p += 30;
3054
+ }
3055
+ }
3056
+ return f.attr("height", p), {
3057
+ height: s.height + p,
3058
+ width: d
3059
+ };
3060
+ }, "drawPopup"), ae = /* @__PURE__ */ t(function(e) {
3061
+ return "var pu = document.getElementById('" + e + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
3062
+ }, "popupMenuToggle"), oe = /* @__PURE__ */ t(async function(e, t, n = null) {
3063
+ let r = e.append("foreignObject"), a = await i(t.text, d()), o = r.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(a).node().getBoundingClientRect();
3064
+ if (r.attr("height", Math.round(o.height)).attr("width", Math.round(o.width)), t.class === "noteText") {
3065
+ let n = e.node().firstChild;
3066
+ n.setAttribute("height", o.height + 2 * t.textMargin);
3067
+ let i = n.getBBox();
3068
+ r.attr("x", Math.round(i.x + i.width / 2 - o.width / 2)).attr("y", Math.round(i.y + i.height / 2 - o.height / 2));
3069
+ } else if (n) {
3070
+ let { startx: e, stopx: i, starty: a } = n;
3071
+ if (e > i) {
3072
+ let t = e;
3073
+ e = i, i = t;
3074
+ }
3075
+ r.attr("x", Math.round(e + Math.abs(e - i) / 2 - o.width / 2)), t.class === "loopText" ? r.attr("y", Math.round(a)) : r.attr("y", Math.round(a - o.height));
3076
+ }
3077
+ return [r];
3078
+ }, "drawKatex"), G = /* @__PURE__ */ t(function(e, n) {
3079
+ let r = 0, i = 0, a = n.text.split(h.lineBreakRegex), [o, s] = C(n.fontSize), c = [], l = 0, u = /* @__PURE__ */ t(() => n.y, "yfunc");
3080
+ if (n.valign !== void 0 && n.textMargin !== void 0 && n.textMargin > 0) switch (n.valign) {
3081
+ case "top":
3082
+ case "start":
3083
+ u = /* @__PURE__ */ t(() => Math.round(n.y + n.textMargin), "yfunc");
3084
+ break;
3085
+ case "middle":
3086
+ case "center":
3087
+ u = /* @__PURE__ */ t(() => Math.round(n.y + (r + i + n.textMargin) / 2), "yfunc");
3088
+ break;
3089
+ case "bottom":
3090
+ case "end":
3091
+ u = /* @__PURE__ */ t(() => Math.round(n.y + (r + i + 2 * n.textMargin) - n.textMargin), "yfunc");
3092
+ break;
3093
+ }
3094
+ if (n.anchor !== void 0 && n.textMargin !== void 0 && n.width !== void 0) switch (n.anchor) {
3095
+ case "left":
3096
+ case "start":
3097
+ n.x = Math.round(n.x + n.textMargin), n.anchor = "start", n.dominantBaseline = "middle", n.alignmentBaseline = "middle";
3098
+ break;
3099
+ case "middle":
3100
+ case "center":
3101
+ n.x = Math.round(n.x + n.width / 2), n.anchor = "middle", n.dominantBaseline = "middle", n.alignmentBaseline = "middle";
3102
+ break;
3103
+ case "right":
3104
+ case "end":
3105
+ n.x = Math.round(n.x + n.width - n.textMargin), n.anchor = "end", n.dominantBaseline = "middle", n.alignmentBaseline = "middle";
3106
+ break;
3107
+ }
3108
+ for (let [t, d] of a.entries()) {
3109
+ n.textMargin !== void 0 && n.textMargin === 0 && o !== void 0 && (l = t * o);
3110
+ let a = e.append("text");
3111
+ a.attr("x", n.x), a.attr("y", u()), n.anchor !== void 0 && a.attr("text-anchor", n.anchor).attr("dominant-baseline", n.dominantBaseline).attr("alignment-baseline", n.alignmentBaseline), n.fontFamily !== void 0 && a.style("font-family", n.fontFamily), s !== void 0 && a.style("font-size", s), n.fontWeight !== void 0 && a.style("font-weight", n.fontWeight), n.fill !== void 0 && a.attr("fill", n.fill), n.class !== void 0 && a.attr("class", n.class), n.dy === void 0 ? l !== 0 && a.attr("dy", l) : a.attr("dy", n.dy);
3112
+ let f = d || "​";
3113
+ if (n.tspan) {
3114
+ let e = a.append("tspan");
3115
+ e.attr("x", n.x), n.fill !== void 0 && e.attr("fill", n.fill), e.text(f);
3116
+ } else a.text(f);
3117
+ n.valign !== void 0 && n.textMargin !== void 0 && n.textMargin > 0 && (i += (a._groups || a)[0][0].getBBox().height, r = i), c.push(a);
3118
+ }
3119
+ return c;
3120
+ }, "drawText"), se = /* @__PURE__ */ t(function(e, n) {
3121
+ function r(e, t, n, r, i) {
3122
+ return e + "," + t + " " + (e + n) + "," + t + " " + (e + n) + "," + (t + r - i) + " " + (e + n - i * 1.2) + "," + (t + r) + " " + e + "," + (t + r);
3123
+ }
3124
+ t(r, "genPoints");
3125
+ let i = e.append("polygon");
3126
+ return i.attr("points", r(n.x, n.y, n.width, n.height, 7)), i.attr("class", "labelBox"), n.y += n.height / 2, G(e, n), i;
3127
+ }, "drawLabel"), K = -1, ce = /* @__PURE__ */ t((e, t, n, r) => {
3128
+ e.select && n.forEach((n) => {
3129
+ let i = t.get(n), a = e.select("#actor" + i.actorCnt);
3130
+ !r.mirrorActors && i.stopy ? a.attr("y2", i.stopy + i.height / 2) : r.mirrorActors && a.attr("y2", i.stopy);
3131
+ });
3132
+ }, "fixLifeLineHeights"), le = /* @__PURE__ */ t(function(e, t, n, i, a) {
3133
+ let o = i ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + t.height, { look: l, theme: u, themeVariables: d } = n, { bkgColorArray: f, borderColorArray: p } = d, m = e.append("g").lower();
3134
+ var h = m;
3135
+ i || (K++, Object.keys(t.links || {}).length && !n.forceMenus && h.attr("onclick", ae(`actor${K}_popup`)).attr("cursor", "pointer"), h.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), h = m.append("g"), t.actorCnt = K, t.links != null && h.attr("id", "root-" + K), l === "neo" && h.attr("data-look", "neo"));
3136
+ let g = k();
3137
+ var _ = "actor";
3138
+ t.properties?.class ? _ = t.properties.class : g.fill = "#eaeaea", i ? _ += ` ${V}` : _ += ` ${B}`, g.x = t.x, g.y = o, g.width = t.width, g.height = t.height, g.class = _, g.rx = 3, g.ry = 3, g.name = t.name, l === "neo" && (g.rx = 6, g.ry = 6);
3139
+ let v = W(h, g), y = a.get(t.name) ?? 0;
3140
+ if (U.has(u) && (v.style("stroke", p[y % p.length]), v.style("fill", f[y % p.length])), l === "neo" && v.attr("filter", "url(#drop-shadow)"), t.rectData = g, t.properties?.icon) {
3141
+ let e = t.properties.icon.trim();
3142
+ e.charAt(0) === "@" ? O(h, g.x + g.width - 20, g.y + 10, e.substr(1)) : E(h, g.x + g.width - 20, g.y + 10, e);
3143
+ }
3144
+ i || (h.attr("data-et", "participant"), h.attr("data-type", "participant"), h.attr("data-id", t.name)), Y(n, r(t.description))(t.description, h, g.x, g.y, g.width, g.height, { class: `actor ${re}` }, n);
3145
+ let b = t.height;
3146
+ if (v.node) {
3147
+ let e = v.node().getBBox();
3148
+ t.height = e.height, b = e.height;
3149
+ }
3150
+ return b;
3151
+ }, "drawActorTypeParticipant"), ue = /* @__PURE__ */ t(function(e, t, n, i, a) {
3152
+ let o = i ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + t.height, { look: l, theme: u, themeVariables: d } = n, { bkgColorArray: f, borderColorArray: p } = d, m = e.append("g").lower();
3153
+ var h = m;
3154
+ i || (K++, Object.keys(t.links || {}).length && !n.forceMenus && h.attr("onclick", ae(`actor${K}_popup`)).attr("cursor", "pointer"), h.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), h = m.append("g"), t.actorCnt = K, t.links != null && h.attr("id", "root-" + K), l === "neo" && h.attr("data-look", "neo"));
3155
+ let g = k();
3156
+ var _ = "actor";
3157
+ t.properties?.class ? _ = t.properties.class : g.fill = "#eaeaea", i ? _ += ` ${V}` : _ += ` ${B}`, g.x = t.x, g.y = o, g.width = t.width, g.height = t.height, g.class = _, g.name = t.name;
3158
+ let v = {
3159
+ ...g,
3160
+ x: g.x + -6,
3161
+ y: g.y + 6,
3162
+ class: "actor"
3163
+ }, y = W(h, g), b = W(h, v);
3164
+ t.rectData = g, l === "neo" && h.attr("filter", "url(#drop-shadow)");
3165
+ let x = a.get(t.name) ?? 0;
3166
+ if (U.has(u) && (y.style("stroke", p[x % p.length]), y.style("fill", f[x % p.length]), b.style("stroke", p[x % p.length]), b.style("fill", f[x % p.length])), t.properties?.icon) {
3167
+ let e = t.properties.icon.trim();
3168
+ e.charAt(0) === "@" ? O(h, g.x + g.width - 20, g.y + 10, e.substr(1)) : E(h, g.x + g.width - 20, g.y + 10, e);
3169
+ }
3170
+ Y(n, r(t.description))(t.description, h, g.x - 6, g.y + 6, g.width, g.height, { class: `actor ${re}` }, n);
3171
+ let S = t.height;
3172
+ if (y.node) {
3173
+ let e = y.node().getBBox();
3174
+ t.height = e.height, S = e.height;
3175
+ }
3176
+ return i || (h.attr("data-et", "participant"), h.attr("data-type", "collections"), h.attr("data-id", t.name)), S;
3177
+ }, "drawActorTypeCollections"), de = /* @__PURE__ */ t(function(e, t, n, i, a) {
3178
+ let o = i ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + t.height, { look: l, theme: u, themeVariables: d } = n, { bkgColorArray: f, borderColorArray: p } = d, m = e.append("g").lower(), h = m;
3179
+ i || (K++, Object.keys(t.links || {}).length && !n.forceMenus && h.attr("onclick", ae(`actor${K}_popup`)).attr("cursor", "pointer"), h.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), h = m.append("g"), t.actorCnt = K, t.links != null && h.attr("id", "root-" + K), l === "neo" && h.attr("data-look", "neo"));
3180
+ let g = k(), _ = "actor";
3181
+ t.properties?.class ? _ = t.properties.class : g.fill = "#eaeaea", i ? _ += ` ${V}` : _ += ` ${B}`, h.attr("class", _), g.x = t.x, g.y = o, g.width = t.width, g.height = t.height, g.name = t.name;
3182
+ let v = g.height / 2, y = v / (2.5 + g.height / 50), b = h.append("g"), x = h.append("g"), S = `M ${g.x},${g.y + v}
3183
+ a ${y},${v} 0 0 0 0,${g.height}
3184
+ h ${g.width - 2 * y}
3185
+ a ${y},${v} 0 0 0 0,-${g.height}
3186
+ Z
3187
+ `;
3188
+ b.append("path").attr("d", S), x.append("path").attr("d", `M ${g.x},${g.y + v}
3189
+ a ${y},${v} 0 0 0 0,${g.height}`), b.attr("transform", `translate(${y}, ${-(g.height / 2)})`), x.attr("transform", `translate(${g.width - y}, ${-g.height / 2})`), t.rectData = g, l === "neo" && b.attr("filter", "url(#drop-shadow)");
3190
+ let C = a.get(t.name) ?? 0;
3191
+ if (U.has(u) && (b.style("stroke", p[C % p.length]), b.style("fill", f[C % p.length]), x.style("stroke", p[C % p.length]), x.style("fill", f[C % p.length])), t.properties?.icon) {
3192
+ let e = t.properties.icon.trim(), n = g.x + g.width - 20, r = g.y + 10;
3193
+ e.charAt(0) === "@" ? O(h, n, r, e.substr(1)) : E(h, n, r, e);
3194
+ }
3195
+ Y(n, r(t.description))(t.description, h, g.x, g.y, g.width, g.height, { class: `actor ${re}` }, n);
3196
+ let w = t.height, T = b.select("path:last-child");
3197
+ if (T.node()) {
3198
+ let e = T.node().getBBox();
3199
+ t.height = e.height, w = e.height;
3200
+ }
3201
+ return i || (h.attr("data-et", "participant"), h.attr("data-type", "queue"), h.attr("data-id", t.name)), w;
3202
+ }, "drawActorTypeQueue"), fe = /* @__PURE__ */ t(function(e, t, n, i, a, o) {
3203
+ let s = i ? t.stopy : t.starty, c = t.x + t.width / 2, l = s + 75, { look: u, theme: d, themeVariables: f } = n, { bkgColorArray: p, borderColorArray: m, actorBorder: h, actorBkg: g } = f, _ = e.append("g").lower();
3204
+ i || (K++, _.append("line").attr("id", "actor" + K).attr("x1", c).attr("y1", l).attr("x2", c).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 = K);
3205
+ let v = e.append("g"), y = H;
3206
+ i ? y += ` ${V}` : y += ` ${B}`, v.attr("class", y), v.attr("name", t.name);
3207
+ let b = k();
3208
+ b.x = t.x, b.y = s, b.fill = "#eaeaea", b.width = t.width, b.height = t.height, b.class = "actor";
3209
+ let x = t.x + t.width / 2, S = s + 32;
3210
+ v.append("defs").append("marker").attr("id", a + "-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"), v.append("circle").attr("cx", x).attr("cy", S).attr("r", 22).attr("filter", `${u === "neo" ? "url(#drop-shadow)" : ""}`), v.append("line").attr("marker-end", "url(#" + a + "-filled-head-control)").attr("transform", `translate(${x}, ${S - 22})`);
3211
+ let C = o.get(t.name) ?? 0;
3212
+ return U.has(d) ? (v.style("stroke", m[C % m.length]), v.style("fill", p[C % m.length])) : (v.style("stroke", h), v.style("fill", g)), t.height = v.node().getBBox().height + 2 * (n?.sequence?.labelBoxHeight ?? 0), Y(n, r(t.description))(t.description, v, b.x, b.y + 22 + (i ? 5 : 12), b.width, b.height, { class: `actor ${H}` }, n), i || (v.attr("data-et", "participant"), v.attr("data-type", "control"), v.attr("data-id", t.name)), t.height;
3213
+ }, "drawActorTypeControl"), pe = /* @__PURE__ */ t(function(e, t, n, i, a) {
3214
+ let o = i ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + 75, { look: l, theme: u, themeVariables: d } = n, { bkgColorArray: f, borderColorArray: p } = d, m = e.append("g").lower(), h = e.append("g"), g = "actor";
3215
+ i ? g += ` ${V}` : g += ` ${B}`, h.attr("class", g), h.attr("name", t.name);
3216
+ let _ = k();
3217
+ _.x = t.x, _.y = o, _.fill = "#eaeaea", _.width = t.width, _.height = t.height, _.class = "actor";
3218
+ let v = t.x + t.width / 2, y = o + (i ? 10 : 25);
3219
+ h.append("circle").attr("cx", v).attr("cy", y).attr("r", 22).attr("width", t.width).attr("height", t.height), h.append("line").attr("x1", v - 22).attr("x2", v + 22).attr("y1", y + 22).attr("y2", y + 22).attr("stroke-width", 2), l === "neo" && h.attr("filter", "url(#drop-shadow)");
3220
+ let b = a.get(t.name) ?? 0;
3221
+ return U.has(u) && (h.style("stroke", p[b % p.length]), h.style("fill", f[b % p.length])), t.height = h.node().getBBox().height + (n?.sequence?.labelBoxHeight ?? 0), i || (K++, m.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = K), Y(n, r(t.description))(t.description, h, _.x, _.y + (i ? 15 : 30), _.width, _.height, { class: `actor ${H}` }, n), i ? h.attr("transform", "translate(0, 22)") : (h.attr("transform", `translate(0, ${22 / 2 - 5})`), h.attr("data-et", "participant"), h.attr("data-type", "entity"), h.attr("data-id", t.name)), t.height;
3222
+ }, "drawActorTypeEntity"), me = /* @__PURE__ */ t(function(e, t, n, i, a) {
3223
+ let o = i ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + t.height + 2 * n.boxTextMargin, { theme: l, themeVariables: u, look: d } = n, { bkgColorArray: f, borderColorArray: p, actorBorder: m } = u, h = e.append("g").lower(), g = h;
3224
+ i || (K++, Object.keys(t.links || {}).length && !n.forceMenus && g.attr("onclick", ae(`actor${K}_popup`)).attr("cursor", "pointer"), g.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), g = h.append("g"), t.actorCnt = K, t.links != null && g.attr("id", "root-" + K), d === "neo" && g.attr("data-look", "neo"));
3225
+ let _ = k(), v = "actor";
3226
+ t.properties?.class ? v = t.properties.class : _.fill = "#eaeaea", i ? v += ` ${V}` : v += ` ${B}`, _.x = t.x, _.y = o, _.width = t.width, _.height = t.height, _.class = v, _.name = t.name, _.x = t.x, _.y = o;
3227
+ let y = _.width / 3, b = _.width / 3, x = y / 2, S = x / (2.5 + y / 50), C = g.append("g");
3228
+ C.attr("class", v);
3229
+ let w = `
3230
+ M ${_.x},${_.y + S}
3231
+ a ${x},${S} 0 0 0 ${y},0
3232
+ a ${x},${S} 0 0 0 -${y},0
3233
+ l 0,${b - 2 * S}
3234
+ a ${x},${S} 0 0 0 ${y},0
3235
+ l 0,-${b - 2 * S}
3236
+ `;
3237
+ C.append("path").attr("d", w), d === "neo" && C.attr("filter", "url(#drop-shadow)");
3238
+ let T = a.get(t.name) ?? 0;
3239
+ U.has(l) ? (C.style("stroke", p[T % p.length]), C.style("fill", f[T % p.length])) : C.style("stroke", m), C.attr("transform", `translate(${y}, ${S})`), t.rectData = _, Y(n, r(t.description))(t.description, g, _.x, _.y + 35, _.width, _.height, { class: `actor ${re}` }, n);
3240
+ let E = C.select("path:last-child");
3241
+ return E.node() && (t.height = E.node().getBBox().height + (n.sequence.labelBoxHeight ?? 0)), i || (g.attr("data-et", "participant"), g.attr("data-type", "database"), g.attr("data-id", t.name)), t.height;
3242
+ }, "drawActorTypeDatabase"), he = /* @__PURE__ */ t(function(e, t, n, i, a) {
3243
+ let o = i ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + 80, l = e.append("g").lower(), { look: u, theme: d, themeVariables: f } = n, { bkgColorArray: p, borderColorArray: m, actorBorder: h } = f;
3244
+ i || (K++, l.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = K);
3245
+ let g = e.append("g"), _ = H;
3246
+ i ? _ += ` ${V}` : _ += ` ${B}`, g.attr("class", _), g.attr("name", t.name);
3247
+ let v = k();
3248
+ v.x = t.x, v.y = o, v.fill = "#eaeaea", v.width = t.width, v.height = t.height, v.class = "actor", g.append("line").attr("id", "actor-man-torso" + K).attr("x1", t.x + t.width / 2 - 22 * 2.5).attr("y1", o + 12).attr("x2", t.x + t.width / 2 - 15).attr("y2", o + 12), g.append("line").attr("id", "actor-man-arms" + K).attr("x1", t.x + t.width / 2 - 22 * 2.5).attr("y1", o + 2).attr("x2", t.x + t.width / 2 - 22 * 2.5).attr("y2", o + 22), g.append("circle").attr("cx", t.x + t.width / 2).attr("cy", o + 12).attr("r", 22), u === "neo" && g.attr("filter", "url(#drop-shadow)");
3249
+ let y = a.get(t.name) ?? 0;
3250
+ return U.has(d) ? (g.style("stroke", m[y % m.length]), g.style("fill", p[y % m.length])) : g.style("stroke", h), t.height = g.node().getBBox().height + (n.sequence.labelBoxHeight ?? 0), Y(n, r(t.description))(t.description, g, v.x, v.y + 15, v.width, v.height, { class: `actor ${H}` }, n), g.attr("transform", "translate(0,21)"), i || (g.attr("data-et", "participant"), g.attr("data-type", "boundary"), g.attr("data-id", t.name)), t.height;
3251
+ }, "drawActorTypeBoundary"), ge = /* @__PURE__ */ t(function(e, t, n, i, a) {
3252
+ let o = i ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + 80, { look: l, theme: u, themeVariables: d } = n, { bkgColorArray: f, borderColorArray: p, actorBorder: m } = d, h = e.append("g").lower();
3253
+ i || (K++, h.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = K);
3254
+ let g = e.append("g"), _ = H;
3255
+ i ? _ += ` ${V}` : _ += ` ${B}`, g.attr("class", _), g.attr("name", t.name), i || g.attr("data-et", "participant").attr("data-type", "actor").attr("data-id", t.name);
3256
+ let v = l === "neo" ? .5 : 1, y = l === "neo" ? o + (1 - v) * 30 : o;
3257
+ g.append("line").attr("id", "actor-man-torso" + K).attr("x1", s).attr("y1", y + 25 * v).attr("x2", s).attr("y2", y + 45 * v), g.append("line").attr("id", "actor-man-arms" + K).attr("x1", s - z / 2 * v).attr("y1", y + 33 * v).attr("x2", s + z / 2 * v).attr("y2", y + 33 * v), g.append("line").attr("x1", s - z / 2 * v).attr("y1", y + 60 * v).attr("x2", s).attr("y2", y + 45 * v), g.append("line").attr("x1", s).attr("y1", y + 45 * v).attr("x2", s + (z / 2 - 2) * v).attr("y2", y + 60 * v);
3258
+ let b = g.append("circle");
3259
+ b.attr("cx", t.x + t.width / 2), b.attr("cy", y + 10 * v), b.attr("r", 15 * v), b.attr("width", t.width * v), b.attr("height", t.height * v), t.height = g.node().getBBox().height;
3260
+ let x = k();
3261
+ x.x = t.x, x.y = y, x.fill = "#eaeaea", x.width = t.width, x.height = t.height / v, x.class = "actor", x.rx = 3, x.ry = 3;
3262
+ let S = a.get(t.name) ?? 0;
3263
+ return U.has(u) ? (g.style("stroke", p[S % p.length]), g.style("fill", f[S % p.length])) : g.style("stroke", m), Y(n, r(t.description))(t.description, g, x.x, y + 35 * v - (l === "neo" ? 10 : 0), x.width, x.height, { class: `actor ${H}` }, n), t.height;
3264
+ }, "drawActorTypeActor"), _e = /* @__PURE__ */ t(async function(e, t, n, r, i, a, o) {
3265
+ let s = o ?? new Map([...a.db.getActors().values()].map((e, t) => [e.name, t]));
3266
+ switch (t.type) {
3267
+ case "actor": return await ge(e, t, n, r, s);
3268
+ case "participant": return await le(e, t, n, r, s);
3269
+ case "boundary": return await he(e, t, n, r, s);
3270
+ case "control": return await fe(e, t, n, r, i, s);
3271
+ case "entity": return await pe(e, t, n, r, s);
3272
+ case "database": return await me(e, t, n, r, s);
3273
+ case "collections": return await ue(e, t, n, r, s);
3274
+ case "queue": return await de(e, t, n, r, s);
3275
+ }
3276
+ }, "drawActor"), ve = /* @__PURE__ */ t(function(e, t, n) {
3277
+ let r = e.append("g");
3278
+ Se(r, t), t.name && Y(n)(t.name, r, t.x, t.y + n.boxTextMargin + (t.textMaxHeight || 0) / 2, t.width, 0, { class: "text" }, n), r.lower();
3279
+ }, "drawBox"), ye = /* @__PURE__ */ t(function(e) {
3280
+ return e.append("g");
3281
+ }, "anchorElement"), be = /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
3282
+ let { theme: s, themeVariables: c } = r, { bkgColorArray: l, borderColorArray: u, mainBkg: d } = c, f = k(), p = t.anchored, m = t.actor;
3283
+ f.x = t.startx, f.y = t.starty, f.class = "activation" + i % 3, f.width = t.stopx - t.startx, f.height = n - t.starty;
3284
+ let h = W(p, f), g = (o ?? new Map([...a.db.getActors().values()].map((e, t) => [e.name, t]))).get(m) ?? 0;
3285
+ U.has(s) && (h.style("stroke", u[g % u.length]), h.style("fill", l[g % u.length] ?? d));
3286
+ }, "drawActivation"), xe = /* @__PURE__ */ t(async function(e, n, i, a, o) {
3287
+ let { boxMargin: s, boxTextMargin: c, labelBoxHeight: l, labelBoxWidth: u, messageFontFamily: d, messageFontSize: f, messageFontWeight: p } = a, m = e.append("g").attr("data-et", "control-structure").attr("data-id", "i" + o.id), h = /* @__PURE__ */ t(function(e, t, n, r) {
3288
+ return m.append("line").attr("x1", e).attr("y1", t).attr("x2", n).attr("y2", r).attr("class", "loopLine");
3289
+ }, "drawLoopLine");
3290
+ h(n.startx, n.starty, n.stopx, n.starty), h(n.stopx, n.starty, n.stopx, n.stopy), h(n.startx, n.stopy, n.stopx, n.stopy), h(n.startx, n.starty, n.startx, n.stopy), n.sections !== void 0 && n.sections.forEach(function(e) {
3291
+ h(n.startx, e.y, n.stopx, e.y).style("stroke-dasharray", "3, 3");
3292
+ });
3293
+ let g = T();
3294
+ g.text = i, g.x = n.startx, g.y = n.starty, g.fontFamily = d, g.fontSize = f, g.fontWeight = p, g.anchor = "middle", g.valign = "middle", g.tspan = !1, g.width = Math.max(u ?? 0, 50), g.height = l + (a.look === "neo" ? 15 : 0) || 20, g.textMargin = c, g.class = "labelText", se(m, g), g = ke(), g.text = n.title, g.x = n.startx + u / 2 + (n.stopx - n.startx) / 2, g.y = n.starty + s + c, g.anchor = "middle", g.valign = "middle", g.textMargin = c, g.class = "loopText", g.fontFamily = d, g.fontSize = f, g.fontWeight = p, g.wrap = !0;
3295
+ let _ = r(g.text) ? await oe(m, g, n) : G(m, g);
3296
+ if (n.sectionTitles !== void 0) {
3297
+ for (let [e, t] of Object.entries(n.sectionTitles)) if (t.message) {
3298
+ g.text = t.message, g.x = n.startx + (n.stopx - n.startx) / 2, g.y = n.sections[e].y + s + c, g.class = "sectionTitle", g.anchor = "middle", g.valign = "middle", g.tspan = !1, g.fontFamily = d, g.fontSize = f, g.fontWeight = p, g.wrap = n.wrap, r(g.text) ? (n.starty = n.sections[e].y, await oe(m, g, n)) : G(m, g);
3299
+ let i = Math.round(_.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
3300
+ n.sections[e].height += i - (s + c);
3301
+ }
3302
+ }
3303
+ return n.height = Math.round(n.stopy - n.starty), m;
3304
+ }, "drawLoop"), Se = /* @__PURE__ */ t(function(e, t) {
3305
+ D(e, t);
3306
+ }, "drawBackgroundRect"), Ce = /* @__PURE__ */ t(function(e, t) {
3307
+ e.append("defs").append("symbol").attr("id", t + "-database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr("d", "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z");
3308
+ }, "insertDatabaseIcon"), q = /* @__PURE__ */ t(function(e, t) {
3309
+ e.append("defs").append("symbol").attr("id", t + "-computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z");
3310
+ }, "insertComputerIcon"), J = /* @__PURE__ */ t(function(e, t) {
3311
+ e.append("defs").append("symbol").attr("id", t + "-clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z");
3312
+ }, "insertClockIcon"), we = /* @__PURE__ */ t(function(e, t) {
3313
+ 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");
3314
+ }, "insertArrowHead"), Te = /* @__PURE__ */ t(function(e, t) {
3315
+ 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");
3316
+ }, "insertArrowFilledHead"), Ee = /* @__PURE__ */ t(function(e, t) {
3317
+ 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);
3318
+ }, "insertSequenceNumber"), De = /* @__PURE__ */ t(function(e, t) {
3319
+ 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");
3320
+ }, "insertArrowCrossHead"), Oe = /* @__PURE__ */ t(function(e, t) {
3321
+ let { theme: n } = t;
3322
+ 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", `${n === "redux" || n === "redux-color" ? "#000000" : "#FFFFFF"}`);
3323
+ }, "insertDropShadow"), ke = /* @__PURE__ */ t(function() {
3324
+ return {
3325
+ x: 0,
3326
+ y: 0,
3327
+ fill: void 0,
3328
+ anchor: void 0,
3329
+ style: "#666",
3330
+ width: void 0,
3331
+ height: void 0,
3332
+ textMargin: 0,
3333
+ rx: 0,
3334
+ ry: 0,
3335
+ tspan: !0,
3336
+ valign: void 0
3337
+ };
3338
+ }, "getTextObj"), Ae = /* @__PURE__ */ t(function() {
3339
+ return {
3340
+ x: 0,
3341
+ y: 0,
3342
+ fill: "#EDF2AE",
3343
+ stroke: "#666",
3344
+ width: 100,
3345
+ anchor: "start",
3346
+ height: 100,
3347
+ rx: 0,
3348
+ ry: 0
3349
+ };
3350
+ }, "getNoteRect"), Y = /* @__PURE__ */ (function() {
3351
+ function e(e, t, n, r, i, a, s) {
3352
+ o(t.append("text").attr("x", n + i / 2).attr("y", r + a / 2 + 5).style("text-anchor", "middle").text(e), s);
3353
+ }
3354
+ t(e, "byText");
3355
+ function n(e, t, n, r, i, a, s, c) {
3356
+ let { actorFontSize: l, actorFontFamily: u, actorFontWeight: d } = c, [f, p] = C(l), m = e.split(h.lineBreakRegex);
3357
+ for (let e = 0; e < m.length; e++) {
3358
+ let c = e * f - f * (m.length - 1) / 2, l = t.append("text").attr("x", n + i / 2).attr("y", r).style("text-anchor", "middle").style("font-size", p).style("font-weight", d).style("font-family", u);
3359
+ l.append("tspan").attr("x", n + i / 2).attr("dy", c).text(m[e]), l.attr("y", r + a / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), o(l, s);
3360
+ }
3361
+ }
3362
+ t(n, "byTspan");
3363
+ function r(e, t, r, i, a, s, c, l) {
3364
+ let u = t.append("switch"), d = u.append("foreignObject").attr("x", r).attr("y", i).attr("width", a).attr("height", s).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
3365
+ d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), n(e, u, r, i, a, s, c, l), o(d, c);
3366
+ }
3367
+ t(r, "byFo");
3368
+ async function a(e, t, r, a, s, c, l, u) {
3369
+ let f = await p(e, d()), m = t.append("switch"), h = m.append("foreignObject").attr("x", r + s / 2 - f.width / 2).attr("y", a + c / 2 - f.height / 2).attr("width", f.width).attr("height", f.height).append("xhtml:div").style("height", "100%").style("width", "100%");
3370
+ h.append("div").style("text-align", "center").style("vertical-align", "middle").html(await i(e, d())), n(e, m, r, a, s, c, l, u), o(h, l);
3371
+ }
3372
+ t(a, "byKatex");
3373
+ function o(e, t) {
3374
+ for (let n in t) t.hasOwnProperty(n) && e.attr(n, t[n]);
3375
+ }
3376
+ return t(o, "_setTextAttrs"), function(t, i = !1) {
3377
+ return i ? a : t.textPlacement === "fo" ? r : t.textPlacement === "old" ? e : n;
3378
+ };
3379
+ })(), je = /* @__PURE__ */ (function() {
3380
+ function e(e, t, n, r, a, o, s) {
3381
+ i(t.append("text").attr("x", n).attr("y", r).style("text-anchor", "start").text(e), s);
3382
+ }
3383
+ t(e, "byText");
3384
+ function n(e, t, n, r, a, o, s, c) {
3385
+ let { actorFontSize: l, actorFontFamily: u, actorFontWeight: d } = c, f = e.split(h.lineBreakRegex);
3386
+ for (let e = 0; e < f.length; e++) {
3387
+ let a = e * l - l * (f.length - 1) / 2, c = t.append("text").attr("x", n).attr("y", r).style("text-anchor", "start").style("font-size", l).style("font-weight", d).style("font-family", u);
3388
+ c.append("tspan").attr("x", n).attr("dy", a).text(f[e]), c.attr("y", r + o / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), i(c, s);
3389
+ }
3390
+ }
3391
+ t(n, "byTspan");
3392
+ function r(e, t, r, a, o, s, c, l) {
3393
+ let u = t.append("switch"), d = u.append("foreignObject").attr("x", r).attr("y", a).attr("width", o).attr("height", s).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
3394
+ d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), n(e, u, r, a, o, s, c, l), i(d, c);
3395
+ }
3396
+ t(r, "byFo");
3397
+ function i(e, t) {
3398
+ for (let n in t) t.hasOwnProperty(n) && e.attr(n, t[n]);
3399
+ }
3400
+ return t(i, "_setTextAttrs"), function(t) {
3401
+ return t.textPlacement === "fo" ? r : t.textPlacement === "old" ? e : n;
3402
+ };
3403
+ })(), X = {
3404
+ drawRect: W,
3405
+ drawText: G,
3406
+ drawLabel: se,
3407
+ drawActor: _e,
3408
+ drawBox: ve,
3409
+ drawPopup: ie,
3410
+ anchorElement: ye,
3411
+ drawActivation: be,
3412
+ drawLoop: xe,
3413
+ drawBackgroundRect: Se,
3414
+ insertArrowHead: we,
3415
+ insertArrowFilledHead: Te,
3416
+ insertSequenceNumber: Ee,
3417
+ insertArrowCrossHead: De,
3418
+ insertDatabaseIcon: Ce,
3419
+ insertComputerIcon: q,
3420
+ insertClockIcon: J,
3421
+ getTextObj: ke,
3422
+ getNoteRect: Ae,
3423
+ fixLifeLineHeights: ce,
3424
+ sanitizeUrl: N.sanitizeUrl,
3425
+ insertDropShadow: Oe,
3426
+ insertSolidTopArrowHead: /* @__PURE__ */ t(function(e, t) {
3427
+ 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");
3428
+ }, "insertSolidTopArrowHead"),
3429
+ insertSolidBottomArrowHead: /* @__PURE__ */ t(function(e, t) {
3430
+ e.append("defs").append("marker").attr("id", t + "-solidBottomArrowHead").attr("refX", 7.9).attr("refY", .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");
3431
+ }, "insertSolidBottomArrowHead"),
3432
+ insertStickTopArrowHead: /* @__PURE__ */ t(function(e, t) {
3433
+ 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");
3434
+ }, "insertStickTopArrowHead"),
3435
+ insertStickBottomArrowHead: /* @__PURE__ */ t(function(e, t) {
3436
+ 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");
3437
+ }, "insertStickBottomArrowHead")
3438
+ }, Z = {}, Q = {
3439
+ data: {
3440
+ startx: void 0,
3441
+ stopx: void 0,
3442
+ starty: void 0,
3443
+ stopy: void 0
3444
+ },
3445
+ verticalPos: 0,
3446
+ sequenceItems: [],
3447
+ activations: [],
3448
+ models: {
3449
+ getHeight: /* @__PURE__ */ t(function() {
3450
+ return Math.max.apply(null, this.actors.length === 0 ? [0] : this.actors.map((e) => e.height || 0)) + (this.loops.length === 0 ? 0 : this.loops.map((e) => e.height || 0).reduce((e, t) => e + t)) + (this.messages.length === 0 ? 0 : this.messages.map((e) => e.height || 0).reduce((e, t) => e + t)) + (this.notes.length === 0 ? 0 : this.notes.map((e) => e.height || 0).reduce((e, t) => e + t));
3451
+ }, "getHeight"),
3452
+ clear: /* @__PURE__ */ t(function() {
3453
+ this.actors = [], this.boxes = [], this.loops = [], this.messages = [], this.notes = [];
3454
+ }, "clear"),
3455
+ addBox: /* @__PURE__ */ t(function(e) {
3456
+ this.boxes.push(e);
3457
+ }, "addBox"),
3458
+ addActor: /* @__PURE__ */ t(function(e) {
3459
+ this.actors.push(e);
3460
+ }, "addActor"),
3461
+ addLoop: /* @__PURE__ */ t(function(e) {
3462
+ this.loops.push(e);
3463
+ }, "addLoop"),
3464
+ addMessage: /* @__PURE__ */ t(function(e) {
3465
+ this.messages.push(e);
3466
+ }, "addMessage"),
3467
+ addNote: /* @__PURE__ */ t(function(e) {
3468
+ this.notes.push(e);
3469
+ }, "addNote"),
3470
+ lastActor: /* @__PURE__ */ t(function() {
3471
+ return this.actors[this.actors.length - 1];
3472
+ }, "lastActor"),
3473
+ lastLoop: /* @__PURE__ */ t(function() {
3474
+ return this.loops[this.loops.length - 1];
3475
+ }, "lastLoop"),
3476
+ lastMessage: /* @__PURE__ */ t(function() {
3477
+ return this.messages[this.messages.length - 1];
3478
+ }, "lastMessage"),
3479
+ lastNote: /* @__PURE__ */ t(function() {
3480
+ return this.notes[this.notes.length - 1];
3481
+ }, "lastNote"),
3482
+ actors: [],
3483
+ boxes: [],
3484
+ loops: [],
3485
+ messages: [],
3486
+ notes: []
3487
+ },
3488
+ init: /* @__PURE__ */ t(function() {
3489
+ this.sequenceItems = [], this.activations = [], this.models.clear(), this.data = {
3490
+ startx: void 0,
3491
+ stopx: void 0,
3492
+ starty: void 0,
3493
+ stopy: void 0
3494
+ }, this.verticalPos = 0, He(v());
3495
+ }, "init"),
3496
+ updateVal: /* @__PURE__ */ t(function(e, t, n, r) {
3497
+ e[t] === void 0 ? e[t] = n : e[t] = r(n, e[t]);
3498
+ }, "updateVal"),
3499
+ updateBounds: /* @__PURE__ */ t(function(e, n, r, i) {
3500
+ let a = this, o = 0;
3501
+ function s(s) {
3502
+ return /* @__PURE__ */ t(function(t) {
3503
+ o++;
3504
+ let c = a.sequenceItems.length - o + 1;
3505
+ a.updateVal(t, "starty", n - c * Z.boxMargin, Math.min), a.updateVal(t, "stopy", i + c * Z.boxMargin, Math.max), a.updateVal(Q.data, "startx", e - c * Z.boxMargin, Math.min), a.updateVal(Q.data, "stopx", r + c * Z.boxMargin, Math.max), s !== "activation" && (a.updateVal(t, "startx", e - c * Z.boxMargin, Math.min), a.updateVal(t, "stopx", r + c * Z.boxMargin, Math.max), a.updateVal(Q.data, "starty", n - c * Z.boxMargin, Math.min), a.updateVal(Q.data, "stopy", i + c * Z.boxMargin, Math.max));
3506
+ }, "updateItemBounds");
3507
+ }
3508
+ t(s, "updateFn"), this.sequenceItems.forEach(s()), this.activations.forEach(s("activation"));
3509
+ }, "updateBounds"),
3510
+ insert: /* @__PURE__ */ t(function(e, t, n, r) {
3511
+ let i = h.getMin(e, n), a = h.getMax(e, n), o = h.getMin(t, r), s = h.getMax(t, r);
3512
+ this.updateVal(Q.data, "startx", i, Math.min), this.updateVal(Q.data, "starty", o, Math.min), this.updateVal(Q.data, "stopx", a, Math.max), this.updateVal(Q.data, "stopy", s, Math.max), this.updateBounds(i, o, a, s);
3513
+ }, "insert"),
3514
+ newActivation: /* @__PURE__ */ t(function(e, t, n) {
3515
+ let r = n.get(e.from), i = Ue(e.from).length || 0, a = r.x + r.width / 2 + (i - 1) * Z.activationWidth / 2;
3516
+ this.activations.push({
3517
+ startx: a,
3518
+ starty: this.verticalPos + 2,
3519
+ stopx: a + Z.activationWidth,
3520
+ stopy: void 0,
3521
+ actor: e.from,
3522
+ anchored: X.anchorElement(t)
3523
+ });
3524
+ }, "newActivation"),
3525
+ endActivation: /* @__PURE__ */ t(function(e) {
3526
+ let t = this.activations.map(function(e) {
3527
+ return e.actor;
3528
+ }).lastIndexOf(e.from);
3529
+ return this.activations.splice(t, 1)[0];
3530
+ }, "endActivation"),
3531
+ createLoop: /* @__PURE__ */ t(function(e = {
3532
+ message: void 0,
3533
+ wrap: !1,
3534
+ width: void 0
3535
+ }, t) {
3536
+ return {
3537
+ startx: void 0,
3538
+ starty: this.verticalPos,
3539
+ stopx: void 0,
3540
+ stopy: void 0,
3541
+ title: e.message,
3542
+ wrap: e.wrap,
3543
+ width: e.width,
3544
+ height: 0,
3545
+ fill: t
3546
+ };
3547
+ }, "createLoop"),
3548
+ newLoop: /* @__PURE__ */ t(function(e = {
3549
+ message: void 0,
3550
+ wrap: !1,
3551
+ width: void 0
3552
+ }, t) {
3553
+ this.sequenceItems.push(this.createLoop(e, t));
3554
+ }, "newLoop"),
3555
+ endLoop: /* @__PURE__ */ t(function() {
3556
+ return this.sequenceItems.pop();
3557
+ }, "endLoop"),
3558
+ isLoopOverlap: /* @__PURE__ */ t(function() {
3559
+ return this.sequenceItems.length ? this.sequenceItems[this.sequenceItems.length - 1].overlap : !1;
3560
+ }, "isLoopOverlap"),
3561
+ addSectionToLoop: /* @__PURE__ */ t(function(e) {
3562
+ let t = this.sequenceItems.pop();
3563
+ t.sections = t.sections || [], t.sectionTitles = t.sectionTitles || [], t.sections.push({
3564
+ y: Q.getVerticalPos(),
3565
+ height: 0
3566
+ }), t.sectionTitles.push(e), this.sequenceItems.push(t);
3567
+ }, "addSectionToLoop"),
3568
+ saveVerticalPos: /* @__PURE__ */ t(function() {
3569
+ this.isLoopOverlap() && (this.savedVerticalPos = this.verticalPos);
3570
+ }, "saveVerticalPos"),
3571
+ resetVerticalPos: /* @__PURE__ */ t(function() {
3572
+ this.isLoopOverlap() && (this.verticalPos = this.savedVerticalPos);
3573
+ }, "resetVerticalPos"),
3574
+ bumpVerticalPos: /* @__PURE__ */ t(function(e) {
3575
+ this.verticalPos += e, this.data.stopy = h.getMax(this.data.stopy, this.verticalPos);
3576
+ }, "bumpVerticalPos"),
3577
+ getVerticalPos: /* @__PURE__ */ t(function() {
3578
+ return this.verticalPos;
3579
+ }, "getVerticalPos"),
3580
+ getBounds: /* @__PURE__ */ t(function() {
3581
+ return {
3582
+ bounds: this.data,
3583
+ models: this.models
3584
+ };
3585
+ }, "getBounds")
3586
+ }, Me = /* @__PURE__ */ t(async function(e, t, n) {
3587
+ Q.bumpVerticalPos(Z.boxMargin), t.height = Z.boxMargin, t.starty = Q.getVerticalPos();
3588
+ let i = k();
3589
+ i.x = t.startx, i.y = t.starty, i.width = t.width || Z.width, i.class = "note";
3590
+ let a = e.append("g");
3591
+ a.attr("data-et", "note"), a.attr("data-id", "i" + n);
3592
+ let o = X.drawRect(a, i), s = T();
3593
+ s.x = t.startx, s.y = t.starty, s.width = i.width, s.dy = "1em", s.text = t.message, s.class = "noteText", s.fontFamily = Z.noteFontFamily, s.fontSize = Z.noteFontSize, s.fontWeight = Z.noteFontWeight, s.anchor = Z.noteAlign, s.textMargin = Z.noteMargin, s.valign = "center";
3594
+ let c = r(s.text) ? await oe(a, s) : G(a, s), l = Math.round(c.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
3595
+ o.attr("height", l + 2 * Z.noteMargin), t.height += l + 2 * Z.noteMargin, Q.bumpVerticalPos(l + 2 * Z.noteMargin), t.stopy = t.starty + l + 2 * Z.noteMargin, t.stopx = t.startx + i.width, Q.insert(t.startx, t.starty, t.stopx, t.stopy), Q.models.addNote(t);
3596
+ }, "drawNote"), Ne = /* @__PURE__ */ t(function(e, n, r, i, a, o, s) {
3597
+ let c = i.db.getActors(), l = c.get(n.from), u = c.get(n.to), d = r.sequenceVisible, f = l.x + l.width / 2, p = u.x + u.width / 2, m = f <= p, h = tt(n, i), g = e.append("g"), _ = 16.5, v = /* @__PURE__ */ t((e, t) => {
3598
+ let n = e ? _ : -_;
3599
+ return t ? -n : n;
3600
+ }, "getCircleOffset"), y = /* @__PURE__ */ t((e) => {
3601
+ g.append("circle").attr("cx", e).attr("cy", s).attr("r", 5).attr("width", 10).attr("height", 10);
3602
+ }, "drawCircle"), { CENTRAL_CONNECTION: b, CENTRAL_CONNECTION_REVERSE: x, CENTRAL_CONNECTION_DUAL: S } = i.db.LINETYPE;
3603
+ if (d) switch (n.centralConnection) {
3604
+ case b:
3605
+ h && (p += v(m, !0));
3606
+ break;
3607
+ case x:
3608
+ h || (f += v(m, !1));
3609
+ break;
3610
+ case S:
3611
+ h ? p += v(m, !0) : f += v(m, !1);
3612
+ break;
3613
+ }
3614
+ switch (n.centralConnection) {
3615
+ case b:
3616
+ y(p);
3617
+ break;
3618
+ case x:
3619
+ y(f);
3620
+ break;
3621
+ case S:
3622
+ y(f), y(p);
3623
+ break;
3624
+ }
3625
+ }, "drawCentralConnection"), Pe = /* @__PURE__ */ t((e) => ({
3626
+ fontFamily: e.messageFontFamily,
3627
+ fontSize: e.messageFontSize,
3628
+ fontWeight: e.messageFontWeight
3629
+ }), "messageFont"), Fe = /* @__PURE__ */ t((e) => ({
3630
+ fontFamily: e.noteFontFamily,
3631
+ fontSize: e.noteFontSize,
3632
+ fontWeight: e.noteFontWeight
3633
+ }), "noteFont"), Ie = /* @__PURE__ */ t((e) => ({
3634
+ fontFamily: e.actorFontFamily,
3635
+ fontSize: e.actorFontSize,
3636
+ fontWeight: e.actorFontWeight
3637
+ }), "actorFont");
3638
+ async function Le(e, t) {
3639
+ Q.bumpVerticalPos(10);
3640
+ let { startx: n, stopx: i, message: a } = t, o = h.splitBreaks(a).length, s = r(a), c = s ? await p(a, v()) : S.calculateTextDimensions(a, Pe(Z));
3641
+ if (!s) {
3642
+ let e = c.height / o;
3643
+ t.height += e, Q.bumpVerticalPos(e);
3644
+ }
3645
+ let l, u = c.height - 10, d = c.width;
3646
+ if (n === i) {
3647
+ l = Q.getVerticalPos() + u, Z.rightAngles || (u += Z.boxMargin, l = Q.getVerticalPos() + u), u += 30;
3648
+ let e = h.getMax(d / 2, Z.width / 2);
3649
+ Q.insert(n - e, Q.getVerticalPos() - 10 + u, i + e, Q.getVerticalPos() + 30 + u);
3650
+ } else u += Z.boxMargin, l = Q.getVerticalPos() + u, Q.insert(n, l - 10, i, l);
3651
+ return Q.bumpVerticalPos(u), t.height += u, t.stopy = t.starty + t.height, Q.insert(t.fromBounds, t.starty, t.toBounds, t.stopy), l;
3652
+ }
3653
+ t(Le, "boundMessage");
3654
+ var Re = /* @__PURE__ */ t(async function(e, t, n, i, a, o) {
3655
+ let { startx: s, stopx: l, starty: u, message: d, type: f, sequenceIndex: p, sequenceVisible: m } = t, g = S.calculateTextDimensions(d, Pe(Z)), _ = T();
3656
+ _.x = Math.min(s, l), _.y = u + 10, _.width = Math.abs(l - s), _.class = "messageText", _.dy = "1em", _.text = d, _.fontFamily = Z.messageFontFamily, _.fontSize = Z.messageFontSize, _.fontWeight = Z.messageFontWeight, _.anchor = Z.messageAlign, _.valign = "center", _.textMargin = Z.wrapPadding, _.tspan = !1, r(_.text) ? await oe(e, _, {
3657
+ startx: s,
3658
+ stopx: l,
3659
+ starty: n
3660
+ }) : G(e, _);
3661
+ let v = g.width, y;
3662
+ if (s === l) {
3663
+ let r = m || Z.showSequenceNumbers, o = tt(a, i), c = nt(a, i), u = s + (r && (o || c) ? 10 : 0);
3664
+ y = Z.rightAngles ? e.append("path").attr("d", `M ${u},${n} H ${s + h.getMax(Z.width / 2, v / 2)} V ${n + 25} H ${s}`) : e.append("path").attr("d", "M " + u + "," + n + " C " + (u + 60) + "," + (n - 10) + " " + (s + 60) + "," + (n + 30) + " " + s + "," + (n + 20)), $e(a, i) && Ne(e, a, t, i, s, l, n);
3665
+ } else y = e.append("line"), y.attr("x1", s), y.attr("y1", n), y.attr("x2", l), y.attr("y2", n), $e(a, i) && Ne(e, a, t, i, s, l, n);
3666
+ f === i.db.LINETYPE.DOTTED || f === i.db.LINETYPE.DOTTED_CROSS || f === i.db.LINETYPE.DOTTED_POINT || f === i.db.LINETYPE.DOTTED_OPEN || f === i.db.LINETYPE.BIDIRECTIONAL_DOTTED || f === i.db.LINETYPE.SOLID_TOP_DOTTED || f === i.db.LINETYPE.SOLID_BOTTOM_DOTTED || f === i.db.LINETYPE.STICK_TOP_DOTTED || f === i.db.LINETYPE.STICK_BOTTOM_DOTTED || f === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || f === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || f === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || f === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED ? (y.style("stroke-dasharray", "3, 3"), y.attr("class", "messageLine1")) : y.attr("class", "messageLine0"), y.attr("data-et", "message"), y.attr("data-id", "i" + t.id), y.attr("data-from", t.from), y.attr("data-to", t.to);
3667
+ let b = "";
3668
+ if (Z.arrowMarkerAbsolute && (b = c(!0)), y.attr("stroke-width", 2), y.attr("stroke", "none"), y.style("fill", "none"), (f === i.db.LINETYPE.SOLID_TOP || f === i.db.LINETYPE.SOLID_TOP_DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-solidTopArrowHead)"), (f === i.db.LINETYPE.SOLID_BOTTOM || f === i.db.LINETYPE.SOLID_BOTTOM_DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-solidBottomArrowHead)"), (f === i.db.LINETYPE.STICK_TOP || f === i.db.LINETYPE.STICK_TOP_DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-stickTopArrowHead)"), (f === i.db.LINETYPE.STICK_BOTTOM || f === i.db.LINETYPE.STICK_BOTTOM_DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-stickBottomArrowHead)"), (f === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || f === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED) && y.attr("marker-start", "url(" + b + "#" + o + "-solidBottomArrowHead)"), (f === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || f === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED) && y.attr("marker-start", "url(" + b + "#" + o + "-solidTopArrowHead)"), (f === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE || f === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED) && y.attr("marker-start", "url(" + b + "#" + o + "-stickBottomArrowHead)"), (f === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || f === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED) && y.attr("marker-start", "url(" + b + "#" + o + "-stickTopArrowHead)"), (f === i.db.LINETYPE.SOLID || f === i.db.LINETYPE.DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-arrowhead)"), (f === i.db.LINETYPE.BIDIRECTIONAL_SOLID || f === i.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (y.attr("marker-start", "url(" + b + "#" + o + "-arrowhead)"), y.attr("marker-end", "url(" + b + "#" + o + "-arrowhead)")), (f === i.db.LINETYPE.SOLID_POINT || f === i.db.LINETYPE.DOTTED_POINT) && y.attr("marker-end", "url(" + b + "#" + o + "-filled-head)"), (f === i.db.LINETYPE.SOLID_CROSS || f === i.db.LINETYPE.DOTTED_CROSS) && y.attr("marker-end", "url(" + b + "#" + o + "-crosshead)"), m || Z.showSequenceNumbers) {
3669
+ let r = f === i.db.LINETYPE.BIDIRECTIONAL_SOLID || f === i.db.LINETYPE.BIDIRECTIONAL_DOTTED, c = f === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || f === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || f === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || f === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || f === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE || f === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || f === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || f === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED, u = $e(a, i), d = s, m = l;
3670
+ r ? (s < l ? d = s + 12 : (d = s - 6 + (u ? -5 : 0), d += a?.centralConnection === i.db.LINETYPE.CENTRAL_CONNECTION_DUAL || a?.centralConnection === i.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), y.attr("x1", d)) : c ? (l > s ? m = l - 12 : (m = l - 6, d += a?.centralConnection === i.db.LINETYPE.CENTRAL_CONNECTION_DUAL || a?.centralConnection === i.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), m += u ? 15 : 0, y.attr("x2", m), y.attr("x1", d)) : y.attr("x1", s + 6);
3671
+ let h = 0, g = s === l, _ = s <= l;
3672
+ h = g ? t.fromBounds + 1 : c ? _ ? t.toBounds - 1 : t.fromBounds + 1 : _ ? t.fromBounds + 1 : t.toBounds - 1;
3673
+ let v = "12px", x = p.toString().length;
3674
+ x > 5 ? v = "7px" : x > 3 && (v = "9px"), e.append("line").attr("x1", h).attr("y1", n).attr("x2", h).attr("y2", n).attr("stroke-width", 0).attr("marker-start", "url(" + b + "#" + o + "-sequencenumber)"), e.append("text").attr("x", h).attr("y", n + 4).attr("font-family", "sans-serif").attr("font-size", v).attr("text-anchor", "middle").attr("class", "sequenceNumber").text(p);
3675
+ }
3676
+ }, "drawMessage"), ze = /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
3677
+ let s = 0, c = 0, l, u = 0;
3678
+ for (let e of r) {
3679
+ let r = t.get(e), a = r.box;
3680
+ l && l != a && (o || Q.models.addBox(l), c += Z.boxMargin + l.margin), a && a != l && (o || (a.x = s + c, a.y = i), c += a.margin), r.width = h.getMax(r.width || Z.width, Z.width), r.height = h.getMax(r.height || Z.height, Z.height), r.margin = r.margin || Z.actorMargin, u = h.getMax(u, r.height), n.get(r.name) && (c += r.width / 2), r.x = s + c, r.starty = Q.getVerticalPos(), Q.insert(r.x, i, r.x + r.width, r.height), s += r.width + c, r.box && (r.box.width = s + a.margin - r.box.x), c = r.margin, l = r.box, Q.models.addActor(r);
3681
+ }
3682
+ l && !o && Q.models.addBox(l), Q.bumpVerticalPos(u);
3683
+ }, "addActorRenderingData"), Be = /* @__PURE__ */ t(async function(e, t, n, r, i, a, o) {
3684
+ if (r) {
3685
+ let r = 0;
3686
+ Q.bumpVerticalPos(Z.boxMargin * 2);
3687
+ for (let s of n) {
3688
+ let n = t.get(s);
3689
+ n.stopy ||= Q.getVerticalPos();
3690
+ let c = await X.drawActor(e, n, Z, !0, i, a, o);
3691
+ r = h.getMax(r, c);
3692
+ }
3693
+ Q.bumpVerticalPos(r + Z.boxMargin);
3694
+ } else for (let r of n) {
3695
+ let n = t.get(r);
3696
+ await X.drawActor(e, n, Z, !1, i, a, o);
3697
+ }
3698
+ }, "drawActors"), Ve = /* @__PURE__ */ t(function(e, t, n, r) {
3699
+ let i = 0, a = 0;
3700
+ for (let o of n) {
3701
+ let n = t.get(o), s = Je(n), c = X.drawPopup(e, n, s, Z, Z.forceMenus, r);
3702
+ c.height > i && (i = c.height), c.width + n.x > a && (a = c.width + n.x);
3703
+ }
3704
+ return {
3705
+ maxHeight: i,
3706
+ maxWidth: a
3707
+ };
3708
+ }, "drawActorsPopup"), He = /* @__PURE__ */ t(function(e) {
3709
+ m(Z, e), e.fontFamily && (Z.actorFontFamily = Z.noteFontFamily = Z.messageFontFamily = e.fontFamily), e.fontSize && (Z.actorFontSize = Z.noteFontSize = Z.messageFontSize = e.fontSize), e.fontWeight && (Z.actorFontWeight = Z.noteFontWeight = Z.messageFontWeight = e.fontWeight);
3710
+ }, "setConf"), Ue = /* @__PURE__ */ t(function(e) {
3711
+ return Q.activations.filter(function(t) {
3712
+ return t.actor === e;
3713
+ });
3714
+ }, "actorActivations"), We = /* @__PURE__ */ t(function(e, t) {
3715
+ let n = t.get(e), r = Ue(e);
3716
+ return [r.reduce(function(e, t) {
3717
+ return h.getMin(e, t.startx);
3718
+ }, n.x + n.width / 2 - 1), r.reduce(function(e, t) {
3719
+ return h.getMax(e, t.stopx);
3720
+ }, n.x + n.width / 2 + 1)];
3721
+ }, "activationBounds");
3722
+ function $(e, t, r, i, a) {
3723
+ Q.bumpVerticalPos(r);
3724
+ let o = i;
3725
+ if (t.id && t.message && e[t.id]) {
3726
+ let r = e[t.id].width, a = Pe(Z);
3727
+ t.message = S.wrapLabel(`[${t.message}]`, r - 2 * Z.wrapPadding, a), t.width = r, t.wrap = !0;
3728
+ let s = S.calculateTextDimensions(t.message, a), c = h.getMax(s.height, Z.labelBoxHeight);
3729
+ o = i + c, n.debug(`${c} - ${t.message}`);
3730
+ }
3731
+ a(t), Q.bumpVerticalPos(o);
3732
+ }
3733
+ t($, "adjustLoopHeightForWrap");
3734
+ function Ge(e, n, r, i, a, o, s) {
3735
+ function c(t, r) {
3736
+ t.x < a.get(e.from).x ? (Q.insert(n.stopx - r, n.starty, n.startx, n.stopy + t.height / 2 + Z.noteMargin), n.stopx += r) : (Q.insert(n.startx, n.starty, n.stopx + r, n.stopy + t.height / 2 + Z.noteMargin), n.stopx -= r);
3737
+ }
3738
+ t(c, "receiverAdjustment");
3739
+ function l(t, r) {
3740
+ t.x < a.get(e.to).x ? (Q.insert(n.startx - r, n.starty, n.stopx, n.stopy + t.height / 2 + Z.noteMargin), n.startx += r) : (Q.insert(n.stopx, n.starty, n.startx + r, n.stopy + t.height / 2 + Z.noteMargin), n.startx -= r);
3741
+ }
3742
+ t(l, "senderAdjustment");
3743
+ let u = [
3744
+ R.ACTOR,
3745
+ R.CONTROL,
3746
+ R.ENTITY,
3747
+ R.DATABASE
3748
+ ];
3749
+ if (o.get(e.to) == i) {
3750
+ let t = a.get(e.to);
3751
+ c(t, u.includes(t.type) ? z / 2 + 3 : t.width / 2 + 3), t.starty = r - t.height / 2, Q.bumpVerticalPos(t.height / 2);
3752
+ } else if (s.get(e.from) == i) {
3753
+ let t = a.get(e.from);
3754
+ Z.mirrorActors && l(t, u.includes(t.type) ? z / 2 : t.width / 2), t.stopy = r - t.height / 2, Q.bumpVerticalPos(t.height / 2);
3755
+ } else if (s.get(e.to) == i) {
3756
+ let t = a.get(e.to);
3757
+ Z.mirrorActors && c(t, u.includes(t.type) ? z / 2 + 3 : t.width / 2 + 3), t.stopy = r - t.height / 2, Q.bumpVerticalPos(t.height / 2);
3758
+ }
3759
+ }
3760
+ t(Ge, "adjustCreatedDestroyedData");
3761
+ var Ke = /* @__PURE__ */ t(async function(r, i, a, o) {
3762
+ let { securityLevel: s, sequence: c, look: l } = v();
3763
+ Z = c;
3764
+ let u;
3765
+ s === "sandbox" && (u = e("#i" + i));
3766
+ let d = e(s === "sandbox" ? u.nodes()[0].contentDocument.body : "body"), p = s === "sandbox" ? u.nodes()[0].contentDocument : document;
3767
+ Q.init(), n.debug(o.db);
3768
+ let m = s === "sandbox" ? d.select(`[id="${i}"]`) : e(`[id="${i}"]`), h = o.db.getActors(), g = o.db.getCreatedActors(), _ = o.db.getDestroyedActors(), y = o.db.getBoxes(), b = o.db.getActorKeys(), x = o.db.getMessages(), S = o.db.getDiagramTitle(), C = o.db.hasAtLeastOneBox(), w = o.db.hasAtLeastOneBoxWithTitle(), T = await qe(h, x, o);
3769
+ if (Z.height = await Ye(h, T, y), X.insertComputerIcon(m, i), X.insertDatabaseIcon(m, i), X.insertClockIcon(m, i), C && (Q.bumpVerticalPos(Z.boxMargin), w && Q.bumpVerticalPos(y[0].textMaxHeight)), Z.hideUnusedParticipants === !0) {
3770
+ let e = /* @__PURE__ */ new Set();
3771
+ x.forEach((t) => {
3772
+ e.add(t.from), e.add(t.to);
3773
+ }), b = b.filter((t) => e.has(t));
3774
+ }
3775
+ let E = new Map(b.map((e, t) => [h.get(e)?.name ?? e, t]));
3776
+ ze(m, h, g, b, 0, x, !1);
3777
+ let D = await it(x, h, T, o);
3778
+ X.insertArrowHead(m, i), X.insertArrowCrossHead(m, i), X.insertArrowFilledHead(m, i), X.insertSequenceNumber(m, i), X.insertSolidTopArrowHead(m, i), X.insertSolidBottomArrowHead(m, i), X.insertStickTopArrowHead(m, i), X.insertStickBottomArrowHead(m, i), l === "neo" && X.insertDropShadow(m, Z);
3779
+ function O(e, t) {
3780
+ let n = Q.endActivation(e);
3781
+ n.starty + 18 > t && (n.starty = t - 6, t += 12), X.drawActivation(m, n, t, Z, Ue(e.from).length, o, E), Q.insert(n.startx, t - 10, n.stopx, t);
3782
+ }
3783
+ t(O, "activeEnd");
3784
+ let k = 1, A = 1, j = [], M = [], N = 0;
3785
+ for (let e of x) {
3786
+ let t, r, i;
3787
+ switch (e.type) {
3788
+ case o.db.LINETYPE.NOTE:
3789
+ Q.resetVerticalPos(), r = e.noteModel, await Me(m, r, e.id);
3790
+ break;
3791
+ case o.db.LINETYPE.ACTIVE_START:
3792
+ Q.newActivation(e, m, h);
3793
+ break;
3794
+ case o.db.LINETYPE.CENTRAL_CONNECTION:
3795
+ Q.newActivation(e, m, h);
3796
+ break;
3797
+ case o.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:
3798
+ Q.newActivation(e, m, h);
3799
+ break;
3800
+ case o.db.LINETYPE.ACTIVE_END:
3801
+ O(e, Q.getVerticalPos());
3802
+ break;
3803
+ case o.db.LINETYPE.LOOP_START:
3804
+ $(D, e, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
3805
+ break;
3806
+ case o.db.LINETYPE.LOOP_END:
3807
+ t = Q.endLoop(), await X.drawLoop(m, t, "loop", Z, e), Q.bumpVerticalPos(t.stopy - Q.getVerticalPos()), Q.models.addLoop(t);
3808
+ break;
3809
+ case o.db.LINETYPE.RECT_START:
3810
+ $(D, e, Z.boxMargin, Z.boxMargin, (e) => Q.newLoop(void 0, e.message));
3811
+ break;
3812
+ case o.db.LINETYPE.RECT_END:
3813
+ t = Q.endLoop(), M.push(t), Q.models.addLoop(t), Q.bumpVerticalPos(t.stopy - Q.getVerticalPos());
3814
+ break;
3815
+ case o.db.LINETYPE.OPT_START:
3816
+ $(D, e, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
3817
+ break;
3818
+ case o.db.LINETYPE.OPT_END:
3819
+ t = Q.endLoop(), await X.drawLoop(m, t, "opt", Z, e), Q.bumpVerticalPos(t.stopy - Q.getVerticalPos()), Q.models.addLoop(t);
3820
+ break;
3821
+ case o.db.LINETYPE.ALT_START:
3822
+ $(D, e, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
3823
+ break;
3824
+ case o.db.LINETYPE.ALT_ELSE:
3825
+ $(D, e, Z.boxMargin + Z.boxTextMargin, Z.boxMargin, (e) => Q.addSectionToLoop(e));
3826
+ break;
3827
+ case o.db.LINETYPE.ALT_END:
3828
+ t = Q.endLoop(), await X.drawLoop(m, t, "alt", Z, e), Q.bumpVerticalPos(t.stopy - Q.getVerticalPos()), Q.models.addLoop(t);
3829
+ break;
3830
+ case o.db.LINETYPE.PAR_START:
3831
+ case o.db.LINETYPE.PAR_OVER_START:
3832
+ $(D, e, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e)), Q.saveVerticalPos();
3833
+ break;
3834
+ case o.db.LINETYPE.PAR_AND:
3835
+ $(D, e, Z.boxMargin + Z.boxTextMargin, Z.boxMargin, (e) => Q.addSectionToLoop(e));
3836
+ break;
3837
+ case o.db.LINETYPE.PAR_END:
3838
+ t = Q.endLoop(), await X.drawLoop(m, t, "par", Z, e), Q.bumpVerticalPos(t.stopy - Q.getVerticalPos()), Q.models.addLoop(t);
3839
+ break;
3840
+ case o.db.LINETYPE.AUTONUMBER:
3841
+ k = e.message.start || k, A = e.message.step || A, e.message.visible ? o.db.enableSequenceNumbers() : o.db.disableSequenceNumbers();
3842
+ break;
3843
+ case o.db.LINETYPE.CRITICAL_START:
3844
+ $(D, e, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
3845
+ break;
3846
+ case o.db.LINETYPE.CRITICAL_OPTION:
3847
+ $(D, e, Z.boxMargin + Z.boxTextMargin, Z.boxMargin, (e) => Q.addSectionToLoop(e));
3848
+ break;
3849
+ case o.db.LINETYPE.CRITICAL_END:
3850
+ t = Q.endLoop(), await X.drawLoop(m, t, "critical", Z, e), Q.bumpVerticalPos(t.stopy - Q.getVerticalPos()), Q.models.addLoop(t);
3851
+ break;
3852
+ case o.db.LINETYPE.BREAK_START:
3853
+ $(D, e, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
3854
+ break;
3855
+ case o.db.LINETYPE.BREAK_END:
3856
+ t = Q.endLoop(), await X.drawLoop(m, t, "break", Z, e), Q.bumpVerticalPos(t.stopy - Q.getVerticalPos()), Q.models.addLoop(t);
3857
+ break;
3858
+ default: try {
3859
+ i = e.msgModel, i.starty = Q.getVerticalPos(), i.sequenceIndex = k, i.sequenceVisible = o.db.showSequenceNumbers(), i.id = e.id, i.from = e.from, i.to = e.to;
3860
+ let t = await Le(m, i);
3861
+ Ge(e, i, t, N, h, g, _), j.push({
3862
+ messageModel: i,
3863
+ lineStartY: t,
3864
+ msg: e
3865
+ }), Q.models.addMessage(i);
3866
+ } catch (e) {
3867
+ n.error("error while drawing message", e);
3868
+ }
3869
+ }
3870
+ [
3871
+ o.db.LINETYPE.SOLID_OPEN,
3872
+ o.db.LINETYPE.DOTTED_OPEN,
3873
+ o.db.LINETYPE.SOLID,
3874
+ o.db.LINETYPE.SOLID_TOP,
3875
+ o.db.LINETYPE.SOLID_BOTTOM,
3876
+ o.db.LINETYPE.STICK_TOP,
3877
+ o.db.LINETYPE.STICK_BOTTOM,
3878
+ o.db.LINETYPE.SOLID_TOP_DOTTED,
3879
+ o.db.LINETYPE.SOLID_BOTTOM_DOTTED,
3880
+ o.db.LINETYPE.STICK_TOP_DOTTED,
3881
+ o.db.LINETYPE.STICK_BOTTOM_DOTTED,
3882
+ o.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
3883
+ o.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,
3884
+ o.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
3885
+ o.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
3886
+ o.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
3887
+ o.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
3888
+ o.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
3889
+ o.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
3890
+ o.db.LINETYPE.DOTTED,
3891
+ o.db.LINETYPE.SOLID_CROSS,
3892
+ o.db.LINETYPE.DOTTED_CROSS,
3893
+ o.db.LINETYPE.SOLID_POINT,
3894
+ o.db.LINETYPE.DOTTED_POINT,
3895
+ o.db.LINETYPE.BIDIRECTIONAL_SOLID,
3896
+ o.db.LINETYPE.BIDIRECTIONAL_DOTTED
3897
+ ].includes(e.type) && (k = Math.round((k + A) * 100) / 100), N++;
3898
+ }
3899
+ n.debug("createdActors", g), n.debug("destroyedActors", _), await Be(m, h, b, !1, i, o, E);
3900
+ for (let e of j) await Re(m, e.messageModel, e.lineStartY, o, e.msg, i);
3901
+ Z.mirrorActors && await Be(m, h, b, !0, i, o, E), M.forEach((e) => X.drawBackgroundRect(m, e)), ce(m, h, b, Z);
3902
+ for (let e of Q.models.boxes) {
3903
+ e.height = Q.getVerticalPos() - e.y, Q.insert(e.x, e.y, e.x + e.width, e.height);
3904
+ let t = Z.boxMargin * 2;
3905
+ e.startx = e.x - t, e.starty = e.y - t * .25, e.stopx = e.startx + e.width + 2 * t, e.stopy = e.starty + e.height + t * .75, e.stroke = "rgb(0,0,0, 0.5)", X.drawBox(m, e, Z);
3906
+ }
3907
+ C && Q.bumpVerticalPos(Z.boxMargin);
3908
+ let P = Ve(m, h, b, p), { bounds: F } = Q.getBounds();
3909
+ F.startx === void 0 && (F.startx = 0), F.starty === void 0 && (F.starty = 0), F.stopx === void 0 && (F.stopx = 0), F.stopy === void 0 && (F.stopy = 0);
3910
+ let I = F.stopy - F.starty;
3911
+ I < P.maxHeight && (I = P.maxHeight);
3912
+ let L = I + 2 * Z.diagramMarginY;
3913
+ Z.mirrorActors && (L = L - Z.boxMargin + Z.bottomMarginAdj);
3914
+ let ee = F.stopx - F.startx;
3915
+ ee < P.maxWidth && (ee = P.maxWidth);
3916
+ let R = ee + 2 * Z.diagramMarginX;
3917
+ S && m.append("text").text(S).attr("x", (F.stopx - F.startx) / 2 - 2 * Z.diagramMarginX).attr("y", -25), f(m, L, R, Z.useMaxWidth);
3918
+ let te = S ? 40 : 0, ne = h.size && l === "neo" ? 30 : 0;
3919
+ m.attr("viewBox", F.startx - Z.diagramMarginX + " -" + (Z.diagramMarginY + te) + " " + R + " " + (L + te + ne)), n.debug("models:", Q.models);
3920
+ }, "draw");
3921
+ async function qe(e, t, i) {
3922
+ let a = {};
3923
+ for (let n of t) if (e.get(n.to) && e.get(n.from)) {
3924
+ let t = e.get(n.to);
3925
+ if (n.placement === i.db.PLACEMENT.LEFTOF && !t.prevActor || n.placement === i.db.PLACEMENT.RIGHTOF && !t.nextActor) continue;
3926
+ let o = n.placement !== void 0, s = !o, c = o ? Fe(Z) : Pe(Z), l = n.wrap ? S.wrapLabel(n.message, Z.width - 2 * Z.wrapPadding, c) : n.message, u = (r(l) ? await p(n.message, v()) : S.calculateTextDimensions(l, c)).width + 2 * Z.wrapPadding;
3927
+ s && n.from === t.nextActor ? a[n.to] = h.getMax(a[n.to] || 0, u) : s && n.from === t.prevActor ? a[n.from] = h.getMax(a[n.from] || 0, u) : s && n.from === n.to ? (a[n.from] = h.getMax(a[n.from] || 0, u / 2), a[n.to] = h.getMax(a[n.to] || 0, u / 2)) : n.placement === i.db.PLACEMENT.RIGHTOF ? a[n.from] = h.getMax(a[n.from] || 0, u) : n.placement === i.db.PLACEMENT.LEFTOF ? a[t.prevActor] = h.getMax(a[t.prevActor] || 0, u) : n.placement === i.db.PLACEMENT.OVER && (t.prevActor && (a[t.prevActor] = h.getMax(a[t.prevActor] || 0, u / 2)), t.nextActor && (a[n.from] = h.getMax(a[n.from] || 0, u / 2)));
3928
+ }
3929
+ return n.debug("maxMessageWidthPerActor:", a), a;
3930
+ }
3931
+ t(qe, "getMaxMessageWidthPerActor");
3932
+ var Je = /* @__PURE__ */ t(function(e) {
3933
+ let t = 0, n = Ie(Z);
3934
+ for (let r in e.links) {
3935
+ let e = S.calculateTextDimensions(r, n).width + 2 * Z.wrapPadding + 2 * Z.boxMargin;
3936
+ t < e && (t = e);
3937
+ }
3938
+ return t;
3939
+ }, "getRequiredPopupWidth");
3940
+ async function Ye(e, t, n) {
3941
+ let i = 0;
3942
+ for (let t of e.keys()) {
3943
+ let n = e.get(t);
3944
+ n.wrap && (n.description = S.wrapLabel(n.description, Z.width - 2 * Z.wrapPadding, Ie(Z)));
3945
+ let a = r(n.description) ? await p(n.description, v()) : S.calculateTextDimensions(n.description, Ie(Z));
3946
+ n.width = n.wrap ? Z.width : h.getMax(Z.width, a.width + 2 * Z.wrapPadding), n.height = n.wrap ? h.getMax(a.height, Z.height) : Z.height, i = h.getMax(i, n.height);
3947
+ }
3948
+ for (let n in t) {
3949
+ let r = e.get(n);
3950
+ if (!r) continue;
3951
+ let i = e.get(r.nextActor);
3952
+ if (!i) {
3953
+ let e = t[n] + Z.actorMargin - r.width / 2;
3954
+ r.margin = h.getMax(e, Z.actorMargin);
3955
+ continue;
3956
+ }
3957
+ let a = t[n] + Z.actorMargin - r.width / 2 - i.width / 2;
3958
+ r.margin = h.getMax(a, Z.actorMargin);
3959
+ }
3960
+ let a = 0;
3961
+ return n.forEach((t) => {
3962
+ let n = Pe(Z), r = t.actorKeys.reduce((t, n) => t += e.get(n).width + (e.get(n).margin || 0), 0), i = Z.boxMargin * 8;
3963
+ r += i, r -= 2 * Z.boxTextMargin, t.wrap && (t.name = S.wrapLabel(t.name, r - 2 * Z.wrapPadding, n));
3964
+ let o = S.calculateTextDimensions(t.name, n);
3965
+ a = h.getMax(o.height, a);
3966
+ let s = h.getMax(r, o.width + 2 * Z.wrapPadding);
3967
+ if (t.margin = Z.boxTextMargin, r < s) {
3968
+ let e = (s - r) / 2;
3969
+ t.margin += e;
3970
+ }
3971
+ }), n.forEach((e) => e.textMaxHeight = a), h.getMax(i, Z.height);
3972
+ }
3973
+ t(Ye, "calculateActorMargins");
3974
+ var Xe = /* @__PURE__ */ t(async function(e, t, i) {
3975
+ let a = t.get(e.from), o = t.get(e.to), s = a.x, c = o.x, l = e.wrap && e.message, u = r(e.message) ? await p(e.message, v()) : S.calculateTextDimensions(l ? S.wrapLabel(e.message, Z.width, Fe(Z)) : e.message, Fe(Z)), d = {
3976
+ width: l ? Z.width : h.getMax(Z.width, u.width + 2 * Z.noteMargin),
3977
+ height: 0,
3978
+ startx: a.x,
3979
+ stopx: 0,
3980
+ starty: 0,
3981
+ stopy: 0,
3982
+ message: e.message
3983
+ };
3984
+ return e.placement === i.db.PLACEMENT.RIGHTOF ? (d.width = l ? h.getMax(Z.width, u.width) : h.getMax(a.width / 2 + o.width / 2, u.width + 2 * Z.noteMargin), d.startx = s + (a.width + Z.actorMargin) / 2) : e.placement === i.db.PLACEMENT.LEFTOF ? (d.width = l ? h.getMax(Z.width, u.width + 2 * Z.noteMargin) : h.getMax(a.width / 2 + o.width / 2, u.width + 2 * Z.noteMargin), d.startx = s - d.width + (a.width - Z.actorMargin) / 2) : e.to === e.from ? (u = S.calculateTextDimensions(l ? S.wrapLabel(e.message, h.getMax(Z.width, a.width), Fe(Z)) : e.message, Fe(Z)), d.width = l ? h.getMax(Z.width, a.width) : h.getMax(a.width, Z.width, u.width + 2 * Z.noteMargin), d.startx = s + (a.width - d.width) / 2) : (d.width = Math.abs(s + a.width / 2 - (c + o.width / 2)) + Z.actorMargin, d.startx = s < c ? s + a.width / 2 - Z.actorMargin / 2 : c + o.width / 2 - Z.actorMargin / 2), l && (d.message = S.wrapLabel(e.message, d.width - 2 * Z.wrapPadding, Fe(Z))), n.debug(`NM:[${d.startx},${d.stopx},${d.starty},${d.stopy}:${d.width},${d.height}=${e.message}]`), d;
3985
+ }, "buildNoteModel"), Ze = 4, Qe = 6, $e = /* @__PURE__ */ t(function(e, t) {
3986
+ let { CENTRAL_CONNECTION: n, CENTRAL_CONNECTION_REVERSE: r, CENTRAL_CONNECTION_DUAL: i } = t.db.LINETYPE;
3987
+ return [
3988
+ n,
3989
+ r,
3990
+ i
3991
+ ].includes(e.centralConnection);
3992
+ }, "hasCentralConnection"), et = /* @__PURE__ */ t(function(e, t, n) {
3993
+ let { CENTRAL_CONNECTION_REVERSE: r, CENTRAL_CONNECTION_DUAL: i, BIDIRECTIONAL_SOLID: a, BIDIRECTIONAL_DOTTED: o } = t.db.LINETYPE, s = 0;
3994
+ return (e.centralConnection === r || e.centralConnection === i) && (s += Ze), (e.centralConnection === r || e.centralConnection === i) && (e.type === a || e.type === o) && (s += n ? 0 : -Qe), s;
3995
+ }, "calculateCentralConnectionOffset"), tt = /* @__PURE__ */ t(function(e, t) {
3996
+ let { SOLID_ARROW_TOP_REVERSE: n, SOLID_ARROW_TOP_REVERSE_DOTTED: r, SOLID_ARROW_BOTTOM_REVERSE: i, SOLID_ARROW_BOTTOM_REVERSE_DOTTED: a, STICK_ARROW_TOP_REVERSE: o, STICK_ARROW_TOP_REVERSE_DOTTED: s, STICK_ARROW_BOTTOM_REVERSE: c, STICK_ARROW_BOTTOM_REVERSE_DOTTED: l } = t.db.LINETYPE;
3997
+ return [
3998
+ n,
3999
+ r,
4000
+ i,
4001
+ a,
4002
+ o,
4003
+ s,
4004
+ c,
4005
+ l
4006
+ ].includes(e.type);
4007
+ }, "isReverseArrowType"), nt = /* @__PURE__ */ t(function(e, t) {
4008
+ let { BIDIRECTIONAL_SOLID: n, BIDIRECTIONAL_DOTTED: r } = t.db.LINETYPE;
4009
+ return [n, r].includes(e.type);
4010
+ }, "isBidirectionalArrowType"), rt = /* @__PURE__ */ t(function(e, n, r) {
4011
+ let { look: i } = v();
4012
+ if (![
4013
+ r.db.LINETYPE.SOLID_OPEN,
4014
+ r.db.LINETYPE.DOTTED_OPEN,
4015
+ r.db.LINETYPE.SOLID,
4016
+ r.db.LINETYPE.SOLID_TOP,
4017
+ r.db.LINETYPE.SOLID_BOTTOM,
4018
+ r.db.LINETYPE.STICK_TOP,
4019
+ r.db.LINETYPE.STICK_BOTTOM,
4020
+ r.db.LINETYPE.SOLID_TOP_DOTTED,
4021
+ r.db.LINETYPE.SOLID_BOTTOM_DOTTED,
4022
+ r.db.LINETYPE.STICK_TOP_DOTTED,
4023
+ r.db.LINETYPE.STICK_BOTTOM_DOTTED,
4024
+ r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4025
+ r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,
4026
+ r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
4027
+ r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
4028
+ r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
4029
+ r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4030
+ r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
4031
+ r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
4032
+ r.db.LINETYPE.DOTTED,
4033
+ r.db.LINETYPE.SOLID_CROSS,
4034
+ r.db.LINETYPE.DOTTED_CROSS,
4035
+ r.db.LINETYPE.SOLID_POINT,
4036
+ r.db.LINETYPE.DOTTED_POINT,
4037
+ r.db.LINETYPE.BIDIRECTIONAL_SOLID,
4038
+ r.db.LINETYPE.BIDIRECTIONAL_DOTTED
4039
+ ].includes(e.type)) return {};
4040
+ let [a, o] = We(e.from, n), [s, c] = We(e.to, n), l = a <= s, u = l ? o : a, d = l ? s : c;
4041
+ i === "neo" && (e.type !== r.db.LINETYPE.SOLID_OPEN && (d += l ? -3 : 3), (e.type === r.db.LINETYPE.BIDIRECTIONAL_SOLID || e.type === r.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (u += l ? 3 : -3)), u += et(e, r, l);
4042
+ let f = Math.abs(s - c) > 2, p = /* @__PURE__ */ t((e) => l ? -e : e, "adjustValue");
4043
+ e.from === e.to ? d = u : (e.activate && !f && (d += p(Z.activationWidth / 2 - 1)), [
4044
+ r.db.LINETYPE.SOLID_OPEN,
4045
+ r.db.LINETYPE.DOTTED_OPEN,
4046
+ r.db.LINETYPE.STICK_TOP,
4047
+ r.db.LINETYPE.STICK_BOTTOM,
4048
+ r.db.LINETYPE.STICK_TOP_DOTTED,
4049
+ r.db.LINETYPE.STICK_BOTTOM_DOTTED,
4050
+ r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
4051
+ r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4052
+ r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
4053
+ r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
4054
+ r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
4055
+ r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
4056
+ r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4057
+ r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
4058
+ ].includes(e.type) || (d += p(3)), [
4059
+ r.db.LINETYPE.BIDIRECTIONAL_SOLID,
4060
+ r.db.LINETYPE.BIDIRECTIONAL_DOTTED,
4061
+ r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
4062
+ r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4063
+ r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4064
+ r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
4065
+ ].includes(e.type) && (u -= p(3)));
4066
+ let m = [
4067
+ a,
4068
+ o,
4069
+ s,
4070
+ c
4071
+ ], g = Math.abs(u - d);
4072
+ e.wrap && e.message && (e.message = S.wrapLabel(e.message, h.getMax(g + 2 * Z.wrapPadding, Z.width), Pe(Z)));
4073
+ let _ = S.calculateTextDimensions(e.message, Pe(Z));
4074
+ return {
4075
+ width: h.getMax(e.wrap ? 0 : _.width + 2 * Z.wrapPadding, g + 2 * Z.wrapPadding, Z.width),
4076
+ height: 0,
4077
+ startx: u,
4078
+ stopx: d,
4079
+ starty: 0,
4080
+ stopy: 0,
4081
+ message: e.message,
4082
+ type: e.type,
4083
+ wrap: e.wrap,
4084
+ fromBounds: Math.min.apply(null, m),
4085
+ toBounds: Math.max.apply(null, m)
4086
+ };
4087
+ }, "buildMessageModel"), it = /* @__PURE__ */ t(async function(e, t, r, i) {
4088
+ let a = {}, o = [], s, c, l;
4089
+ for (let n of e) {
4090
+ switch (n.type) {
4091
+ case i.db.LINETYPE.LOOP_START:
4092
+ case i.db.LINETYPE.ALT_START:
4093
+ case i.db.LINETYPE.OPT_START:
4094
+ case i.db.LINETYPE.PAR_START:
4095
+ case i.db.LINETYPE.PAR_OVER_START:
4096
+ case i.db.LINETYPE.CRITICAL_START:
4097
+ case i.db.LINETYPE.BREAK_START:
4098
+ o.push({
4099
+ id: n.id,
4100
+ msg: n.message,
4101
+ from: 2 ** 53 - 1,
4102
+ to: -(2 ** 53 - 1),
4103
+ width: 0
4104
+ });
4105
+ break;
4106
+ case i.db.LINETYPE.ALT_ELSE:
4107
+ case i.db.LINETYPE.PAR_AND:
4108
+ case i.db.LINETYPE.CRITICAL_OPTION:
4109
+ n.message && (s = o.pop(), a[s.id] = s, a[n.id] = s, o.push(s));
4110
+ break;
4111
+ case i.db.LINETYPE.LOOP_END:
4112
+ case i.db.LINETYPE.ALT_END:
4113
+ case i.db.LINETYPE.OPT_END:
4114
+ case i.db.LINETYPE.PAR_END:
4115
+ case i.db.LINETYPE.CRITICAL_END:
4116
+ case i.db.LINETYPE.BREAK_END:
4117
+ s = o.pop(), a[s.id] = s;
4118
+ break;
4119
+ case i.db.LINETYPE.ACTIVE_START:
4120
+ {
4121
+ let e = t.get(n.from ? n.from : n.to.actor), r = Ue(n.from ? n.from : n.to.actor).length, i = e.x + e.width / 2 + (r - 1) * Z.activationWidth / 2, a = {
4122
+ startx: i,
4123
+ stopx: i + Z.activationWidth,
4124
+ actor: n.from,
4125
+ enabled: !0
4126
+ };
4127
+ Q.activations.push(a);
4128
+ }
4129
+ break;
4130
+ case i.db.LINETYPE.ACTIVE_END:
4131
+ {
4132
+ let e = Q.activations.map((e) => e.actor).lastIndexOf(n.from);
4133
+ Q.activations.splice(e, 1).splice(0, 1);
4134
+ }
4135
+ break;
4136
+ }
4137
+ n.placement === void 0 ? (l = rt(n, t, i), n.msgModel = l, l.startx && l.stopx && o.length > 0 && o.forEach((e) => {
4138
+ if (s = e, l.startx === l.stopx) {
4139
+ let e = t.get(n.from), r = t.get(n.to);
4140
+ s.from = h.getMin(e.x - l.width / 2, e.x - e.width / 2, s.from), s.to = h.getMax(r.x + l.width / 2, r.x + e.width / 2, s.to), s.width = h.getMax(s.width, Math.abs(s.to - s.from)) - Z.labelBoxWidth;
4141
+ } else s.from = h.getMin(l.startx, s.from), s.to = h.getMax(l.stopx, s.to), s.width = h.getMax(s.width, l.width) - Z.labelBoxWidth;
4142
+ })) : (c = await Xe(n, t, i), n.noteModel = c, o.forEach((e) => {
4143
+ s = e, s.from = h.getMin(s.from, c.startx), s.to = h.getMax(s.to, c.startx + c.width), s.width = h.getMax(s.width, Math.abs(s.from - s.to)) - Z.labelBoxWidth;
4144
+ }));
4145
+ }
4146
+ return Q.activations = [], n.debug("Loop type widths:", a), a;
4147
+ }, "calculateLoopBounds"), at = {
4148
+ parser: F,
4149
+ get db() {
4150
+ return new te();
4151
+ },
4152
+ renderer: {
4153
+ bounds: Q,
4154
+ drawActors: Be,
4155
+ drawActorsPopup: Ve,
4156
+ setConf: He,
4157
+ draw: Ke
4158
+ },
4159
+ styles: ne,
4160
+ init: /* @__PURE__ */ t((e) => {
4161
+ e.sequence ||= {}, e.wrap && (e.sequence.wrap = e.wrap, a({ sequence: { wrap: e.wrap } }));
4162
+ }, "init")
4163
+ };
4164
+ //#endregion
4165
+ export { at as diagram };
4166
+
4167
+ //# sourceMappingURL=sequenceDiagram-3UESZ5HK-BMhjbe8U.js.map