@readme/markdown 9.3.0 → 9.3.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 (122) hide show
  1. package/dist/10.node.js +20064 -19229
  2. package/dist/10.node.js.map +1 -1
  3. package/dist/122.node.js +23 -0
  4. package/dist/122.node.js.map +1 -0
  5. package/dist/{17.node.js → 135.node.js} +109 -110
  6. package/dist/135.node.js.map +1 -0
  7. package/dist/136.node.js +23 -0
  8. package/dist/136.node.js.map +1 -0
  9. package/dist/{52.node.js → 188.node.js} +211 -196
  10. package/dist/188.node.js.map +1 -0
  11. package/dist/214.node.js +1280 -0
  12. package/dist/214.node.js.map +1 -0
  13. package/dist/23.node.js +2563 -0
  14. package/dist/23.node.js.map +1 -0
  15. package/dist/{867.node.js → 311.node.js} +95 -95
  16. package/dist/{867.node.js.map → 311.node.js.map} +1 -1
  17. package/dist/{940.node.js → 339.node.js} +3 -75
  18. package/dist/339.node.js.map +1 -0
  19. package/dist/354.node.js +23 -0
  20. package/dist/354.node.js.map +1 -0
  21. package/dist/359.node.js +2001 -0
  22. package/dist/359.node.js.map +1 -0
  23. package/dist/364.node.js +4435 -0
  24. package/dist/364.node.js.map +1 -0
  25. package/dist/{429.node.js → 371.node.js} +196 -139
  26. package/dist/371.node.js.map +1 -0
  27. package/dist/{687.node.js → 38.node.js} +761 -761
  28. package/dist/38.node.js.map +1 -0
  29. package/dist/391.node.js +522 -0
  30. package/dist/391.node.js.map +1 -0
  31. package/dist/462.node.js +23 -0
  32. package/dist/462.node.js.map +1 -0
  33. package/dist/48.node.js +57 -0
  34. package/dist/48.node.js.map +1 -0
  35. package/dist/486.node.js +16267 -14851
  36. package/dist/486.node.js.map +1 -1
  37. package/dist/537.node.js +59 -0
  38. package/dist/537.node.js.map +1 -0
  39. package/dist/550.node.js +201 -1408
  40. package/dist/550.node.js.map +1 -1
  41. package/dist/{403.node.js → 572.node.js} +118 -118
  42. package/dist/572.node.js.map +1 -0
  43. package/dist/580.node.js +1324 -0
  44. package/dist/580.node.js.map +1 -0
  45. package/dist/{952.node.js → 649.node.js} +39 -39
  46. package/dist/{952.node.js.map → 649.node.js.map} +1 -1
  47. package/dist/740.node.js +23 -0
  48. package/dist/740.node.js.map +1 -0
  49. package/dist/741.node.js +23 -0
  50. package/dist/741.node.js.map +1 -0
  51. package/dist/779.node.js +57 -0
  52. package/dist/779.node.js.map +1 -0
  53. package/dist/805.node.js +1355 -0
  54. package/dist/805.node.js.map +1 -0
  55. package/dist/{246.node.js → 855.node.js} +671 -495
  56. package/dist/855.node.js.map +1 -0
  57. package/dist/{11.node.js → 870.node.js} +70 -63
  58. package/dist/870.node.js.map +1 -0
  59. package/dist/874.node.js +57 -0
  60. package/dist/874.node.js.map +1 -0
  61. package/dist/881.node.js +1344 -720
  62. package/dist/881.node.js.map +1 -1
  63. package/dist/{906.node.js → 890.node.js} +147 -147
  64. package/dist/{906.node.js.map → 890.node.js.map} +1 -1
  65. package/dist/898.node.js +361 -0
  66. package/dist/898.node.js.map +1 -0
  67. package/dist/{551.node.js → 912.node.js} +133 -133
  68. package/dist/{551.node.js.map → 912.node.js.map} +1 -1
  69. package/dist/{745.node.js → 915.node.js} +86 -85
  70. package/dist/915.node.js.map +1 -0
  71. package/dist/982.node.js +1132 -0
  72. package/dist/982.node.js.map +1 -0
  73. package/dist/995.node.js +189 -159
  74. package/dist/995.node.js.map +1 -1
  75. package/dist/lib/plain.d.ts +1 -1
  76. package/dist/main.js +1881 -331
  77. package/dist/main.node.js +1872 -332
  78. package/dist/main.node.js.map +1 -1
  79. package/package.json +1 -2
  80. package/dist/11.node.js.map +0 -1
  81. package/dist/120.node.js +0 -23
  82. package/dist/120.node.js.map +0 -1
  83. package/dist/134.node.js +0 -23
  84. package/dist/134.node.js.map +0 -1
  85. package/dist/150.node.js +0 -1892
  86. package/dist/150.node.js.map +0 -1
  87. package/dist/17.node.js.map +0 -1
  88. package/dist/246.node.js.map +0 -1
  89. package/dist/351.node.js +0 -2404
  90. package/dist/351.node.js.map +0 -1
  91. package/dist/366.node.js +0 -1185
  92. package/dist/366.node.js.map +0 -1
  93. package/dist/403.node.js.map +0 -1
  94. package/dist/429.node.js.map +0 -1
  95. package/dist/485.node.js +0 -518
  96. package/dist/485.node.js.map +0 -1
  97. package/dist/488.node.js +0 -59
  98. package/dist/488.node.js.map +0 -1
  99. package/dist/510.node.js +0 -250
  100. package/dist/510.node.js.map +0 -1
  101. package/dist/52.node.js.map +0 -1
  102. package/dist/617.node.js +0 -23
  103. package/dist/617.node.js.map +0 -1
  104. package/dist/687.node.js.map +0 -1
  105. package/dist/745.node.js.map +0 -1
  106. package/dist/775.node.js +0 -1904
  107. package/dist/775.node.js.map +0 -1
  108. package/dist/788.node.js +0 -1025
  109. package/dist/788.node.js.map +0 -1
  110. package/dist/81.node.js +0 -386
  111. package/dist/81.node.js.map +0 -1
  112. package/dist/849.node.js +0 -2590
  113. package/dist/849.node.js.map +0 -1
  114. package/dist/863.node.js +0 -23
  115. package/dist/863.node.js.map +0 -1
  116. package/dist/885.node.js +0 -52
  117. package/dist/885.node.js.map +0 -1
  118. package/dist/896.node.js +0 -1617
  119. package/dist/896.node.js.map +0 -1
  120. package/dist/91.node.js +0 -23
  121. package/dist/91.node.js.map +0 -1
  122. package/dist/940.node.js.map +0 -1
@@ -1,40 +1,9 @@
1
1
  "use strict";
2
- exports.id = 687;
3
- exports.ids = [687];
2
+ exports.id = 38;
3
+ exports.ids = [38];
4
4
  exports.modules = {
5
5
 
6
- /***/ 6509:
7
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8
-
9
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10
- /* harmony export */ m: () => (/* binding */ ImperativeState)
11
- /* harmony export */ });
12
- /* harmony import */ var _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6322);
13
-
14
-
15
- // src/utils/imperativeState.ts
16
- var ImperativeState = class {
17
- /**
18
- * @param init - Function that creates the default state.
19
- */
20
- constructor(init) {
21
- this.init = init;
22
- this.records = this.init();
23
- }
24
- static {
25
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(this, "ImperativeState");
26
- }
27
- reset() {
28
- this.records = this.init();
29
- }
30
- };
31
-
32
-
33
-
34
-
35
- /***/ }),
36
-
37
- /***/ 242:
6
+ /***/ 148:
38
7
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
39
8
 
40
9
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
@@ -46,13 +15,13 @@ var ImperativeState = class {
46
15
  /* harmony export */ m: () => (/* binding */ drawText),
47
16
  /* harmony export */ tk: () => (/* binding */ drawRect)
48
17
  /* harmony export */ });
49
- /* harmony import */ var _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6322);
18
+ /* harmony import */ var _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3804);
50
19
  /* harmony import */ var _braintree_sanitize_url__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6750);
51
20
 
52
21
 
53
22
  // src/diagrams/common/svgDrawCommon.ts
54
23
 
55
- var drawRect = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)((element, rectData) => {
24
+ var drawRect = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)((element, rectData) => {
56
25
  const rectElement = element.append("rect");
57
26
  rectElement.attr("x", rectData.x);
58
27
  rectElement.attr("y", rectData.y);
@@ -79,7 +48,7 @@ var drawRect = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_0
79
48
  }
80
49
  return rectElement;
81
50
  }, "drawRect");
82
- var drawBackgroundRect = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)((element, bounds) => {
51
+ var drawBackgroundRect = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)((element, bounds) => {
83
52
  const rectData = {
84
53
  x: bounds.startx,
85
54
  y: bounds.starty,
@@ -92,8 +61,8 @@ var drawBackgroundRect = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTE
92
61
  const rectElement = drawRect(element, rectData);
93
62
  rectElement.lower();
94
63
  }, "drawBackgroundRect");
95
- var drawText = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)((element, textData) => {
96
- const nText = textData.text.replace(_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_0__/* .lineBreakRegex */ .H1, " ");
64
+ var drawText = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)((element, textData) => {
65
+ const nText = textData.text.replace(_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .lineBreakRegex */ .H1, " ");
97
66
  const textElem = element.append("text");
98
67
  textElem.attr("x", textData.x);
99
68
  textElem.attr("y", textData.y);
@@ -107,21 +76,21 @@ var drawText = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_0
107
76
  tspan.text(nText);
108
77
  return textElem;
109
78
  }, "drawText");
110
- var drawImage = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)((elem, x, y, link) => {
79
+ var drawImage = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)((elem, x, y, link) => {
111
80
  const imageElement = elem.append("image");
112
81
  imageElement.attr("x", x);
113
82
  imageElement.attr("y", y);
114
83
  const sanitizedLink = (0,_braintree_sanitize_url__WEBPACK_IMPORTED_MODULE_1__/* .sanitizeUrl */ .J)(link);
115
84
  imageElement.attr("xlink:href", sanitizedLink);
116
85
  }, "drawImage");
117
- var drawEmbeddedImage = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)((element, x, y, link) => {
86
+ var drawEmbeddedImage = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)((element, x, y, link) => {
118
87
  const imageElement = element.append("use");
119
88
  imageElement.attr("x", x);
120
89
  imageElement.attr("y", y);
121
90
  const sanitizedLink = (0,_braintree_sanitize_url__WEBPACK_IMPORTED_MODULE_1__/* .sanitizeUrl */ .J)(link);
122
91
  imageElement.attr("xlink:href", `#${sanitizedLink}`);
123
92
  }, "drawEmbeddedImage");
124
- var getNoteRect = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(() => {
93
+ var getNoteRect = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(() => {
125
94
  const noteRectData = {
126
95
  x: 0,
127
96
  y: 0,
@@ -135,7 +104,7 @@ var getNoteRect = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODUL
135
104
  };
136
105
  return noteRectData;
137
106
  }, "getNoteRect");
138
- var getTextObj = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(() => {
107
+ var getTextObj = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(() => {
139
108
  const testObject = {
140
109
  x: 0,
141
110
  y: 0,
@@ -156,16 +125,47 @@ var getTextObj = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE
156
125
 
157
126
  /***/ }),
158
127
 
159
- /***/ 6687:
128
+ /***/ 3249:
129
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
130
+
131
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
132
+ /* harmony export */ m: () => (/* binding */ ImperativeState)
133
+ /* harmony export */ });
134
+ /* harmony import */ var _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3804);
135
+
136
+
137
+ // src/utils/imperativeState.ts
138
+ var ImperativeState = class {
139
+ /**
140
+ * @param init - Function that creates the default state.
141
+ */
142
+ constructor(init) {
143
+ this.init = init;
144
+ this.records = this.init();
145
+ }
146
+ static {
147
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)(this, "ImperativeState");
148
+ }
149
+ reset() {
150
+ this.records = this.init();
151
+ }
152
+ };
153
+
154
+
155
+
156
+
157
+ /***/ }),
158
+
159
+ /***/ 8038:
160
160
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
161
161
 
162
162
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
163
163
  /* harmony export */ diagram: () => (/* binding */ diagram)
164
164
  /* harmony export */ });
165
- /* harmony import */ var _chunk_V35ELUW5_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(242);
166
- /* harmony import */ var _chunk_6JKP7OK7_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6509);
167
- /* harmony import */ var _chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2843);
168
- /* harmony import */ var _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6322);
165
+ /* harmony import */ var _chunk_D6G4REZN_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(148);
166
+ /* harmony import */ var _chunk_XZIHB7SX_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3249);
167
+ /* harmony import */ var _chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8430);
168
+ /* harmony import */ var _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3804);
169
169
  /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8066);
170
170
  /* harmony import */ var _braintree_sanitize_url__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6750);
171
171
 
@@ -175,18 +175,18 @@ var getTextObj = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE
175
175
 
176
176
  // src/diagrams/sequence/parser/sequenceDiagram.jison
177
177
  var parser = function() {
178
- var o = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(k, v, o2, l) {
178
+ var o = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(k, v, o2, l) {
179
179
  for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
180
180
  return o2;
181
181
  }, "o"), $V0 = [1, 2], $V1 = [1, 3], $V2 = [1, 4], $V3 = [2, 4], $V4 = [1, 9], $V5 = [1, 11], $V6 = [1, 13], $V7 = [1, 14], $V8 = [1, 16], $V9 = [1, 17], $Va = [1, 18], $Vb = [1, 24], $Vc = [1, 25], $Vd = [1, 26], $Ve = [1, 27], $Vf = [1, 28], $Vg = [1, 29], $Vh = [1, 30], $Vi = [1, 31], $Vj = [1, 32], $Vk = [1, 33], $Vl = [1, 34], $Vm = [1, 35], $Vn = [1, 36], $Vo = [1, 37], $Vp = [1, 38], $Vq = [1, 39], $Vr = [1, 41], $Vs = [1, 42], $Vt = [1, 43], $Vu = [1, 44], $Vv = [1, 45], $Vw = [1, 46], $Vx = [1, 4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 47, 48, 49, 50, 52, 53, 54, 59, 60, 61, 62, 70], $Vy = [4, 5, 16, 50, 52, 53], $Vz = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 50, 52, 53, 54, 59, 60, 61, 62, 70], $VA = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 49, 50, 52, 53, 54, 59, 60, 61, 62, 70], $VB = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 48, 50, 52, 53, 54, 59, 60, 61, 62, 70], $VC = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 47, 50, 52, 53, 54, 59, 60, 61, 62, 70], $VD = [68, 69, 70], $VE = [1, 122];
182
182
  var parser2 = {
183
- trace: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function trace() {
183
+ trace: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function trace() {
184
184
  }, "trace"),
185
185
  yy: {},
186
186
  symbols_: { "error": 2, "start": 3, "SPACE": 4, "NEWLINE": 5, "SD": 6, "document": 7, "line": 8, "statement": 9, "box_section": 10, "box_line": 11, "participant_statement": 12, "create": 13, "box": 14, "restOfLine": 15, "end": 16, "signal": 17, "autonumber": 18, "NUM": 19, "off": 20, "activate": 21, "actor": 22, "deactivate": 23, "note_statement": 24, "links_statement": 25, "link_statement": 26, "properties_statement": 27, "details_statement": 28, "title": 29, "legacy_title": 30, "acc_title": 31, "acc_title_value": 32, "acc_descr": 33, "acc_descr_value": 34, "acc_descr_multiline_value": 35, "loop": 36, "rect": 37, "opt": 38, "alt": 39, "else_sections": 40, "par": 41, "par_sections": 42, "par_over": 43, "critical": 44, "option_sections": 45, "break": 46, "option": 47, "and": 48, "else": 49, "participant": 50, "AS": 51, "participant_actor": 52, "destroy": 53, "note": 54, "placement": 55, "text2": 56, "over": 57, "actor_pair": 58, "links": 59, "link": 60, "properties": 61, "details": 62, "spaceList": 63, ",": 64, "left_of": 65, "right_of": 66, "signaltype": 67, "+": 68, "-": 69, "ACTOR": 70, "SOLID_OPEN_ARROW": 71, "DOTTED_OPEN_ARROW": 72, "SOLID_ARROW": 73, "BIDIRECTIONAL_SOLID_ARROW": 74, "DOTTED_ARROW": 75, "BIDIRECTIONAL_DOTTED_ARROW": 76, "SOLID_CROSS": 77, "DOTTED_CROSS": 78, "SOLID_POINT": 79, "DOTTED_POINT": 80, "TXT": 81, "$accept": 0, "$end": 1 },
187
187
  terminals_: { 2: "error", 4: "SPACE", 5: "NEWLINE", 6: "SD", 13: "create", 14: "box", 15: "restOfLine", 16: "end", 18: "autonumber", 19: "NUM", 20: "off", 21: "activate", 23: "deactivate", 29: "title", 30: "legacy_title", 31: "acc_title", 32: "acc_title_value", 33: "acc_descr", 34: "acc_descr_value", 35: "acc_descr_multiline_value", 36: "loop", 37: "rect", 38: "opt", 39: "alt", 41: "par", 43: "par_over", 44: "critical", 46: "break", 47: "option", 48: "and", 49: "else", 50: "participant", 51: "AS", 52: "participant_actor", 53: "destroy", 54: "note", 57: "over", 59: "links", 60: "link", 61: "properties", 62: "details", 64: ",", 65: "left_of", 66: "right_of", 68: "+", 69: "-", 70: "ACTOR", 71: "SOLID_OPEN_ARROW", 72: "DOTTED_OPEN_ARROW", 73: "SOLID_ARROW", 74: "BIDIRECTIONAL_SOLID_ARROW", 75: "DOTTED_ARROW", 76: "BIDIRECTIONAL_DOTTED_ARROW", 77: "SOLID_CROSS", 78: "DOTTED_CROSS", 79: "SOLID_POINT", 80: "DOTTED_POINT", 81: "TXT" },
188
188
  productions_: [0, [3, 2], [3, 2], [3, 2], [7, 0], [7, 2], [8, 2], [8, 1], [8, 1], [10, 0], [10, 2], [11, 2], [11, 1], [11, 1], [9, 1], [9, 2], [9, 4], [9, 2], [9, 4], [9, 3], [9, 3], [9, 2], [9, 3], [9, 3], [9, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [45, 1], [45, 4], [42, 1], [42, 4], [40, 1], [40, 4], [12, 5], [12, 3], [12, 5], [12, 3], [12, 3], [24, 4], [24, 4], [25, 3], [26, 3], [27, 3], [28, 3], [63, 2], [63, 1], [58, 3], [58, 1], [55, 1], [55, 1], [17, 5], [17, 5], [17, 4], [22, 1], [67, 1], [67, 1], [67, 1], [67, 1], [67, 1], [67, 1], [67, 1], [67, 1], [67, 1], [67, 1], [56, 1]],
189
- performAction: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
189
+ performAction: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
190
190
  var $0 = $$.length - 1;
191
191
  switch (yystate) {
192
192
  case 3:
@@ -423,7 +423,7 @@ var parser = function() {
423
423
  }, "anonymous"),
424
424
  table: [{ 3: 1, 4: $V0, 5: $V1, 6: $V2 }, { 1: [3] }, { 3: 5, 4: $V0, 5: $V1, 6: $V2 }, { 3: 6, 4: $V0, 5: $V1, 6: $V2 }, o([1, 4, 5, 13, 14, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 50, 52, 53, 54, 59, 60, 61, 62, 70], $V3, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 50: $Vo, 52: $Vp, 53: $Vq, 54: $Vr, 59: $Vs, 60: $Vt, 61: $Vu, 62: $Vv, 70: $Vw }, o($Vx, [2, 5]), { 9: 47, 12: 12, 13: $V6, 14: $V7, 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 50: $Vo, 52: $Vp, 53: $Vq, 54: $Vr, 59: $Vs, 60: $Vt, 61: $Vu, 62: $Vv, 70: $Vw }, o($Vx, [2, 7]), o($Vx, [2, 8]), o($Vx, [2, 14]), { 12: 48, 50: $Vo, 52: $Vp, 53: $Vq }, { 15: [1, 49] }, { 5: [1, 50] }, { 5: [1, 53], 19: [1, 51], 20: [1, 52] }, { 22: 54, 70: $Vw }, { 22: 55, 70: $Vw }, { 5: [1, 56] }, { 5: [1, 57] }, { 5: [1, 58] }, { 5: [1, 59] }, { 5: [1, 60] }, o($Vx, [2, 29]), o($Vx, [2, 30]), { 32: [1, 61] }, { 34: [1, 62] }, o($Vx, [2, 33]), { 15: [1, 63] }, { 15: [1, 64] }, { 15: [1, 65] }, { 15: [1, 66] }, { 15: [1, 67] }, { 15: [1, 68] }, { 15: [1, 69] }, { 15: [1, 70] }, { 22: 71, 70: $Vw }, { 22: 72, 70: $Vw }, { 22: 73, 70: $Vw }, { 67: 74, 71: [1, 75], 72: [1, 76], 73: [1, 77], 74: [1, 78], 75: [1, 79], 76: [1, 80], 77: [1, 81], 78: [1, 82], 79: [1, 83], 80: [1, 84] }, { 55: 85, 57: [1, 86], 65: [1, 87], 66: [1, 88] }, { 22: 89, 70: $Vw }, { 22: 90, 70: $Vw }, { 22: 91, 70: $Vw }, { 22: 92, 70: $Vw }, o([5, 51, 64, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81], [2, 68]), o($Vx, [2, 6]), o($Vx, [2, 15]), o($Vy, [2, 9], { 10: 93 }), o($Vx, [2, 17]), { 5: [1, 95], 19: [1, 94] }, { 5: [1, 96] }, o($Vx, [2, 21]), { 5: [1, 97] }, { 5: [1, 98] }, o($Vx, [2, 24]), o($Vx, [2, 25]), o($Vx, [2, 26]), o($Vx, [2, 27]), o($Vx, [2, 28]), o($Vx, [2, 31]), o($Vx, [2, 32]), o($Vz, $V3, { 7: 99 }), o($Vz, $V3, { 7: 100 }), o($Vz, $V3, { 7: 101 }), o($VA, $V3, { 40: 102, 7: 103 }), o($VB, $V3, { 42: 104, 7: 105 }), o($VB, $V3, { 7: 105, 42: 106 }), o($VC, $V3, { 45: 107, 7: 108 }), o($Vz, $V3, { 7: 109 }), { 5: [1, 111], 51: [1, 110] }, { 5: [1, 113], 51: [1, 112] }, { 5: [1, 114] }, { 22: 117, 68: [1, 115], 69: [1, 116], 70: $Vw }, o($VD, [2, 69]), o($VD, [2, 70]), o($VD, [2, 71]), o($VD, [2, 72]), o($VD, [2, 73]), o($VD, [2, 74]), o($VD, [2, 75]), o($VD, [2, 76]), o($VD, [2, 77]), o($VD, [2, 78]), { 22: 118, 70: $Vw }, { 22: 120, 58: 119, 70: $Vw }, { 70: [2, 63] }, { 70: [2, 64] }, { 56: 121, 81: $VE }, { 56: 123, 81: $VE }, { 56: 124, 81: $VE }, { 56: 125, 81: $VE }, { 4: [1, 128], 5: [1, 130], 11: 127, 12: 129, 16: [1, 126], 50: $Vo, 52: $Vp, 53: $Vq }, { 5: [1, 131] }, o($Vx, [2, 19]), o($Vx, [2, 20]), o($Vx, [2, 22]), o($Vx, [2, 23]), { 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 16: [1, 132], 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 50: $Vo, 52: $Vp, 53: $Vq, 54: $Vr, 59: $Vs, 60: $Vt, 61: $Vu, 62: $Vv, 70: $Vw }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 16: [1, 133], 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 50: $Vo, 52: $Vp, 53: $Vq, 54: $Vr, 59: $Vs, 60: $Vt, 61: $Vu, 62: $Vv, 70: $Vw }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 16: [1, 134], 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 50: $Vo, 52: $Vp, 53: $Vq, 54: $Vr, 59: $Vs, 60: $Vt, 61: $Vu, 62: $Vv, 70: $Vw }, { 16: [1, 135] }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 16: [2, 46], 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 49: [1, 136], 50: $Vo, 52: $Vp, 53: $Vq, 54: $Vr, 59: $Vs, 60: $Vt, 61: $Vu, 62: $Vv, 70: $Vw }, { 16: [1, 137] }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 16: [2, 44], 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 48: [1, 138], 50: $Vo, 52: $Vp, 53: $Vq, 54: $Vr, 59: $Vs, 60: $Vt, 61: $Vu, 62: $Vv, 70: $Vw }, { 16: [1, 139] }, { 16: [1, 140] }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 16: [2, 42], 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 47: [1, 141], 50: $Vo, 52: $Vp, 53: $Vq, 54: $Vr, 59: $Vs, 60: $Vt, 61: $Vu, 62: $Vv, 70: $Vw }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 16: [1, 142], 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 50: $Vo, 52: $Vp, 53: $Vq, 54: $Vr, 59: $Vs, 60: $Vt, 61: $Vu, 62: $Vv, 70: $Vw }, { 15: [1, 143] }, o($Vx, [2, 49]), { 15: [1, 144] }, o($Vx, [2, 51]), o($Vx, [2, 52]), { 22: 145, 70: $Vw }, { 22: 146, 70: $Vw }, { 56: 147, 81: $VE }, { 56: 148, 81: $VE }, { 56: 149, 81: $VE }, { 64: [1, 150], 81: [2, 62] }, { 5: [2, 55] }, { 5: [2, 79] }, { 5: [2, 56] }, { 5: [2, 57] }, { 5: [2, 58] }, o($Vx, [2, 16]), o($Vy, [2, 10]), { 12: 151, 50: $Vo, 52: $Vp, 53: $Vq }, o($Vy, [2, 12]), o($Vy, [2, 13]), o($Vx, [2, 18]), o($Vx, [2, 34]), o($Vx, [2, 35]), o($Vx, [2, 36]), o($Vx, [2, 37]), { 15: [1, 152] }, o($Vx, [2, 38]), { 15: [1, 153] }, o($Vx, [2, 39]), o($Vx, [2, 40]), { 15: [1, 154] }, o($Vx, [2, 41]), { 5: [1, 155] }, { 5: [1, 156] }, { 56: 157, 81: $VE }, { 56: 158, 81: $VE }, { 5: [2, 67] }, { 5: [2, 53] }, { 5: [2, 54] }, { 22: 159, 70: $Vw }, o($Vy, [2, 11]), o($VA, $V3, { 7: 103, 40: 160 }), o($VB, $V3, { 7: 105, 42: 161 }), o($VC, $V3, { 7: 108, 45: 162 }), o($Vx, [2, 48]), o($Vx, [2, 50]), { 5: [2, 65] }, { 5: [2, 66] }, { 81: [2, 61] }, { 16: [2, 47] }, { 16: [2, 45] }, { 16: [2, 43] }],
425
425
  defaultActions: { 5: [2, 1], 6: [2, 2], 87: [2, 63], 88: [2, 64], 121: [2, 55], 122: [2, 79], 123: [2, 56], 124: [2, 57], 125: [2, 58], 147: [2, 67], 148: [2, 53], 149: [2, 54], 157: [2, 65], 158: [2, 66], 159: [2, 61], 160: [2, 47], 161: [2, 45], 162: [2, 43] },
426
- parseError: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function parseError(str, hash) {
426
+ parseError: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function parseError(str, hash) {
427
427
  if (hash.recoverable) {
428
428
  this.trace(str);
429
429
  } else {
@@ -432,7 +432,7 @@ var parser = function() {
432
432
  throw error;
433
433
  }
434
434
  }, "parseError"),
435
- parse: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function parse(input) {
435
+ parse: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function parse(input) {
436
436
  var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
437
437
  var args = lstack.slice.call(arguments, 1);
438
438
  var lexer2 = Object.create(this.lexer);
@@ -461,7 +461,7 @@ var parser = function() {
461
461
  vstack.length = vstack.length - n;
462
462
  lstack.length = lstack.length - n;
463
463
  }
464
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(popStack, "popStack");
464
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(popStack, "popStack");
465
465
  function lex() {
466
466
  var token;
467
467
  token = tstack.pop() || lexer2.lex() || EOF;
@@ -474,22 +474,22 @@ var parser = function() {
474
474
  }
475
475
  return token;
476
476
  }
477
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(lex, "lex");
478
- var symbol, preErrorSymbol, state2, action, a, r, yyval = {}, p, len, newState, expected;
477
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(lex, "lex");
478
+ var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
479
479
  while (true) {
480
- state2 = stack[stack.length - 1];
481
- if (this.defaultActions[state2]) {
482
- action = this.defaultActions[state2];
480
+ state = stack[stack.length - 1];
481
+ if (this.defaultActions[state]) {
482
+ action = this.defaultActions[state];
483
483
  } else {
484
484
  if (symbol === null || typeof symbol == "undefined") {
485
485
  symbol = lex();
486
486
  }
487
- action = table[state2] && table[state2][symbol];
487
+ action = table[state] && table[state][symbol];
488
488
  }
489
489
  if (typeof action === "undefined" || !action.length || !action[0]) {
490
490
  var errStr = "";
491
491
  expected = [];
492
- for (p in table[state2]) {
492
+ for (p in table[state]) {
493
493
  if (this.terminals_[p] && p > TERROR) {
494
494
  expected.push("'" + this.terminals_[p] + "'");
495
495
  }
@@ -508,7 +508,7 @@ var parser = function() {
508
508
  });
509
509
  }
510
510
  if (action[0] instanceof Array && action.length > 1) {
511
- throw new Error("Parse Error: multiple actions possible at state: " + state2 + ", token: " + symbol);
511
+ throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
512
512
  }
513
513
  switch (action[0]) {
514
514
  case 1:
@@ -578,7 +578,7 @@ var parser = function() {
578
578
  var lexer = /* @__PURE__ */ function() {
579
579
  var lexer2 = {
580
580
  EOF: 1,
581
- parseError: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function parseError(str, hash) {
581
+ parseError: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function parseError(str, hash) {
582
582
  if (this.yy.parser) {
583
583
  this.yy.parser.parseError(str, hash);
584
584
  } else {
@@ -586,7 +586,7 @@ var parser = function() {
586
586
  }
587
587
  }, "parseError"),
588
588
  // resets the lexer, sets new input
589
- setInput: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(input, yy) {
589
+ setInput: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(input, yy) {
590
590
  this.yy = yy || this.yy || {};
591
591
  this._input = input;
592
592
  this._more = this._backtrack = this.done = false;
@@ -606,7 +606,7 @@ var parser = function() {
606
606
  return this;
607
607
  }, "setInput"),
608
608
  // consumes and returns one char from the input
609
- input: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
609
+ input: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
610
610
  var ch = this._input[0];
611
611
  this.yytext += ch;
612
612
  this.yyleng++;
@@ -627,7 +627,7 @@ var parser = function() {
627
627
  return ch;
628
628
  }, "input"),
629
629
  // unshifts one char (or a string) into the input
630
- unput: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(ch) {
630
+ unput: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(ch) {
631
631
  var len = ch.length;
632
632
  var lines = ch.split(/(?:\r\n?|\n)/g);
633
633
  this._input = ch + this._input;
@@ -653,12 +653,12 @@ var parser = function() {
653
653
  return this;
654
654
  }, "unput"),
655
655
  // When called from action, caches matched text and appends it on next action
656
- more: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
656
+ more: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
657
657
  this._more = true;
658
658
  return this;
659
659
  }, "more"),
660
660
  // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
661
- reject: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
661
+ reject: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
662
662
  if (this.options.backtrack_lexer) {
663
663
  this._backtrack = true;
664
664
  } else {
@@ -671,16 +671,16 @@ var parser = function() {
671
671
  return this;
672
672
  }, "reject"),
673
673
  // retain first n characters of the match
674
- less: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(n) {
674
+ less: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(n) {
675
675
  this.unput(this.match.slice(n));
676
676
  }, "less"),
677
677
  // displays already matched input, i.e. for error messages
678
- pastInput: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
678
+ pastInput: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
679
679
  var past = this.matched.substr(0, this.matched.length - this.match.length);
680
680
  return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
681
681
  }, "pastInput"),
682
682
  // displays upcoming input, i.e. for error messages
683
- upcomingInput: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
683
+ upcomingInput: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
684
684
  var next = this.match;
685
685
  if (next.length < 20) {
686
686
  next += this._input.substr(0, 20 - next.length);
@@ -688,13 +688,13 @@ var parser = function() {
688
688
  return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
689
689
  }, "upcomingInput"),
690
690
  // displays the character position where the lexing error occurred, i.e. for error messages
691
- showPosition: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
691
+ showPosition: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
692
692
  var pre = this.pastInput();
693
693
  var c = new Array(pre.length + 1).join("-");
694
694
  return pre + this.upcomingInput() + "\n" + c + "^";
695
695
  }, "showPosition"),
696
696
  // test the lexed token: return FALSE when not a match, otherwise return token
697
- test_match: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(match, indexed_rule) {
697
+ test_match: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(match, indexed_rule) {
698
698
  var token, lines, backup;
699
699
  if (this.options.backtrack_lexer) {
700
700
  backup = {
@@ -757,7 +757,7 @@ var parser = function() {
757
757
  return false;
758
758
  }, "test_match"),
759
759
  // return next match in input
760
- next: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
760
+ next: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
761
761
  if (this.done) {
762
762
  return this.EOF;
763
763
  }
@@ -808,7 +808,7 @@ var parser = function() {
808
808
  }
809
809
  }, "next"),
810
810
  // return next match that has a token
811
- lex: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function lex() {
811
+ lex: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function lex() {
812
812
  var r = this.next();
813
813
  if (r) {
814
814
  return r;
@@ -817,11 +817,11 @@ var parser = function() {
817
817
  }
818
818
  }, "lex"),
819
819
  // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
820
- begin: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function begin(condition) {
820
+ begin: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function begin(condition) {
821
821
  this.conditionStack.push(condition);
822
822
  }, "begin"),
823
823
  // pop the previously active lexer condition state off the condition stack
824
- popState: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function popState() {
824
+ popState: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function popState() {
825
825
  var n = this.conditionStack.length - 1;
826
826
  if (n > 0) {
827
827
  return this.conditionStack.pop();
@@ -830,7 +830,7 @@ var parser = function() {
830
830
  }
831
831
  }, "popState"),
832
832
  // produce the lexer rule set which is active for the currently active lexer condition state
833
- _currentRules: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function _currentRules() {
833
+ _currentRules: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function _currentRules() {
834
834
  if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
835
835
  return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
836
836
  } else {
@@ -838,7 +838,7 @@ var parser = function() {
838
838
  }
839
839
  }, "_currentRules"),
840
840
  // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
841
- topState: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function topState(n) {
841
+ topState: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function topState(n) {
842
842
  n = this.conditionStack.length - 1 - Math.abs(n || 0);
843
843
  if (n >= 0) {
844
844
  return this.conditionStack[n];
@@ -847,15 +847,15 @@ var parser = function() {
847
847
  }
848
848
  }, "topState"),
849
849
  // alias for begin(condition)
850
- pushState: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function pushState(condition) {
850
+ pushState: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function pushState(condition) {
851
851
  this.begin(condition);
852
852
  }, "pushState"),
853
853
  // return the number of states currently on the stack
854
- stateStackSize: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function stateStackSize() {
854
+ stateStackSize: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function stateStackSize() {
855
855
  return this.conditionStack.length;
856
856
  }, "stateStackSize"),
857
857
  options: { "case-insensitive": true },
858
- performAction: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
858
+ performAction: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
859
859
  var YYSTATE = YY_START;
860
860
  switch ($avoiding_name_collisions) {
861
861
  case 0:
@@ -1098,7 +1098,7 @@ var parser = function() {
1098
1098
  function Parser() {
1099
1099
  this.yy = {};
1100
1100
  }
1101
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(Parser, "Parser");
1101
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(Parser, "Parser");
1102
1102
  Parser.prototype = parser2;
1103
1103
  parser2.Parser = Parser;
1104
1104
  return new Parser();
@@ -1107,213 +1107,6 @@ parser.parser = parser;
1107
1107
  var sequenceDiagram_default = parser;
1108
1108
 
1109
1109
  // src/diagrams/sequence/sequenceDb.ts
1110
- var state = new _chunk_6JKP7OK7_mjs__WEBPACK_IMPORTED_MODULE_1__/* .ImperativeState */ .m(() => ({
1111
- prevActor: void 0,
1112
- actors: /* @__PURE__ */ new Map(),
1113
- createdActors: /* @__PURE__ */ new Map(),
1114
- destroyedActors: /* @__PURE__ */ new Map(),
1115
- boxes: [],
1116
- messages: [],
1117
- notes: [],
1118
- sequenceNumbersEnabled: false,
1119
- wrapEnabled: void 0,
1120
- currentBox: void 0,
1121
- lastCreated: void 0,
1122
- lastDestroyed: void 0
1123
- }));
1124
- var addBox = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(data) {
1125
- state.records.boxes.push({
1126
- name: data.text,
1127
- wrap: data.wrap ?? autoWrap(),
1128
- fill: data.color,
1129
- actorKeys: []
1130
- });
1131
- state.records.currentBox = state.records.boxes.slice(-1)[0];
1132
- }, "addBox");
1133
- var addActor = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(id, name, description, type) {
1134
- let assignedBox = state.records.currentBox;
1135
- const old = state.records.actors.get(id);
1136
- if (old) {
1137
- if (state.records.currentBox && old.box && state.records.currentBox !== old.box) {
1138
- throw new Error(
1139
- `A same participant should only be defined in one Box: ${old.name} can't be in '${old.box.name}' and in '${state.records.currentBox.name}' at the same time.`
1140
- );
1141
- }
1142
- assignedBox = old.box ? old.box : state.records.currentBox;
1143
- old.box = assignedBox;
1144
- if (old && name === old.name && description == null) {
1145
- return;
1146
- }
1147
- }
1148
- if (description?.text == null) {
1149
- description = { text: name, type };
1150
- }
1151
- if (type == null || description.text == null) {
1152
- description = { text: name, type };
1153
- }
1154
- state.records.actors.set(id, {
1155
- box: assignedBox,
1156
- name,
1157
- description: description.text,
1158
- wrap: description.wrap ?? autoWrap(),
1159
- prevActor: state.records.prevActor,
1160
- links: {},
1161
- properties: {},
1162
- actorCnt: null,
1163
- rectData: null,
1164
- type: type ?? "participant"
1165
- });
1166
- if (state.records.prevActor) {
1167
- const prevActorInRecords = state.records.actors.get(state.records.prevActor);
1168
- if (prevActorInRecords) {
1169
- prevActorInRecords.nextActor = id;
1170
- }
1171
- }
1172
- if (state.records.currentBox) {
1173
- state.records.currentBox.actorKeys.push(id);
1174
- }
1175
- state.records.prevActor = id;
1176
- }, "addActor");
1177
- var activationCount = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)((part) => {
1178
- let i;
1179
- let count = 0;
1180
- if (!part) {
1181
- return 0;
1182
- }
1183
- for (i = 0; i < state.records.messages.length; i++) {
1184
- if (state.records.messages[i].type === LINETYPE.ACTIVE_START && state.records.messages[i].from === part) {
1185
- count++;
1186
- }
1187
- if (state.records.messages[i].type === LINETYPE.ACTIVE_END && state.records.messages[i].from === part) {
1188
- count--;
1189
- }
1190
- }
1191
- return count;
1192
- }, "activationCount");
1193
- var addMessage = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(idFrom, idTo, message, answer) {
1194
- state.records.messages.push({
1195
- from: idFrom,
1196
- to: idTo,
1197
- message: message.text,
1198
- wrap: message.wrap ?? autoWrap(),
1199
- answer
1200
- });
1201
- }, "addMessage");
1202
- var addSignal = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(idFrom, idTo, message, messageType, activate = false) {
1203
- if (messageType === LINETYPE.ACTIVE_END) {
1204
- const cnt = activationCount(idFrom ?? "");
1205
- if (cnt < 1) {
1206
- const error = new Error("Trying to inactivate an inactive participant (" + idFrom + ")");
1207
- error.hash = {
1208
- text: "->>-",
1209
- token: "->>-",
1210
- line: "1",
1211
- loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
1212
- expected: ["'ACTIVE_PARTICIPANT'"]
1213
- };
1214
- throw error;
1215
- }
1216
- }
1217
- state.records.messages.push({
1218
- from: idFrom,
1219
- to: idTo,
1220
- message: message?.text ?? "",
1221
- wrap: message?.wrap ?? autoWrap(),
1222
- type: messageType,
1223
- activate
1224
- });
1225
- return true;
1226
- }, "addSignal");
1227
- var hasAtLeastOneBox = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
1228
- return state.records.boxes.length > 0;
1229
- }, "hasAtLeastOneBox");
1230
- var hasAtLeastOneBoxWithTitle = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
1231
- return state.records.boxes.some((b) => b.name);
1232
- }, "hasAtLeastOneBoxWithTitle");
1233
- var getMessages = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
1234
- return state.records.messages;
1235
- }, "getMessages");
1236
- var getBoxes = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
1237
- return state.records.boxes;
1238
- }, "getBoxes");
1239
- var getActors = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
1240
- return state.records.actors;
1241
- }, "getActors");
1242
- var getCreatedActors = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
1243
- return state.records.createdActors;
1244
- }, "getCreatedActors");
1245
- var getDestroyedActors = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
1246
- return state.records.destroyedActors;
1247
- }, "getDestroyedActors");
1248
- var getActor = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(id) {
1249
- return state.records.actors.get(id);
1250
- }, "getActor");
1251
- var getActorKeys = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
1252
- return [...state.records.actors.keys()];
1253
- }, "getActorKeys");
1254
- var enableSequenceNumbers = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
1255
- state.records.sequenceNumbersEnabled = true;
1256
- }, "enableSequenceNumbers");
1257
- var disableSequenceNumbers = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
1258
- state.records.sequenceNumbersEnabled = false;
1259
- }, "disableSequenceNumbers");
1260
- var showSequenceNumbers = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(() => state.records.sequenceNumbersEnabled, "showSequenceNumbers");
1261
- var setWrap = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(wrapSetting) {
1262
- state.records.wrapEnabled = wrapSetting;
1263
- }, "setWrap");
1264
- var extractWrap = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)((text) => {
1265
- if (text === void 0) {
1266
- return {};
1267
- }
1268
- text = text.trim();
1269
- const wrap = /^:?wrap:/.exec(text) !== null ? true : /^:?nowrap:/.exec(text) !== null ? false : void 0;
1270
- const cleanedText = (wrap === void 0 ? text : text.replace(/^:?(?:no)?wrap:/, "")).trim();
1271
- return { cleanedText, wrap };
1272
- }, "extractWrap");
1273
- var autoWrap = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(() => {
1274
- if (state.records.wrapEnabled !== void 0) {
1275
- return state.records.wrapEnabled;
1276
- }
1277
- return (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)().sequence?.wrap ?? false;
1278
- }, "autoWrap");
1279
- var clear2 = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
1280
- state.reset();
1281
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .clear */ .IU)();
1282
- }, "clear");
1283
- var parseMessage = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(str) {
1284
- const trimmedStr = str.trim();
1285
- const { wrap, cleanedText } = extractWrap(trimmedStr);
1286
- const message = {
1287
- text: cleanedText,
1288
- wrap
1289
- };
1290
- _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.debug(`parseMessage: ${JSON.stringify(message)}`);
1291
- return message;
1292
- }, "parseMessage");
1293
- var parseBoxData = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(str) {
1294
- const match = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(str);
1295
- let color = match?.[1] ? match[1].trim() : "transparent";
1296
- let title = match?.[2] ? match[2].trim() : void 0;
1297
- if (window?.CSS) {
1298
- if (!window.CSS.supports("color", color)) {
1299
- color = "transparent";
1300
- title = str.trim();
1301
- }
1302
- } else {
1303
- const style = new Option().style;
1304
- style.color = color;
1305
- if (style.color !== color) {
1306
- color = "transparent";
1307
- title = str.trim();
1308
- }
1309
- }
1310
- const { wrap, cleanedText } = extractWrap(title);
1311
- return {
1312
- text: cleanedText ? (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .sanitizeText */ .jZ)(cleanedText, (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)()) : void 0,
1313
- color,
1314
- wrap
1315
- };
1316
- }, "parseBoxData");
1317
1110
  var LINETYPE = {
1318
1111
  SOLID: 0,
1319
1112
  DOTTED: 1,
@@ -1357,290 +1150,490 @@ var PLACEMENT = {
1357
1150
  RIGHTOF: 1,
1358
1151
  OVER: 2
1359
1152
  };
1360
- var addNote = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(actor, placement, message) {
1361
- const note = {
1362
- actor,
1363
- placement,
1364
- message: message.text,
1365
- wrap: message.wrap ?? autoWrap()
1366
- };
1367
- const actors = [].concat(actor, actor);
1368
- state.records.notes.push(note);
1369
- state.records.messages.push({
1370
- from: actors[0],
1371
- to: actors[1],
1372
- message: message.text,
1373
- wrap: message.wrap ?? autoWrap(),
1374
- type: LINETYPE.NOTE,
1375
- placement
1376
- });
1377
- }, "addNote");
1378
- var addLinks = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(actorId, text) {
1379
- const actor = getActor(actorId);
1380
- try {
1381
- let sanitizedText = (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .sanitizeText */ .jZ)(text.text, (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)());
1382
- sanitizedText = sanitizedText.replace(/&amp;/g, "&");
1383
- sanitizedText = sanitizedText.replace(/&equals;/g, "=");
1384
- const links = JSON.parse(sanitizedText);
1385
- insertLinks(actor, links);
1386
- } catch (e) {
1387
- _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.error("error while parsing actor link text", e);
1388
- }
1389
- }, "addLinks");
1390
- var addALink = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(actorId, text) {
1391
- const actor = getActor(actorId);
1392
- try {
1393
- const links = {};
1394
- let sanitizedText = (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .sanitizeText */ .jZ)(text.text, (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)());
1395
- const sep = sanitizedText.indexOf("@");
1396
- sanitizedText = sanitizedText.replace(/&amp;/g, "&");
1397
- sanitizedText = sanitizedText.replace(/&equals;/g, "=");
1398
- const label = sanitizedText.slice(0, sep - 1).trim();
1399
- const link = sanitizedText.slice(sep + 1).trim();
1400
- links[label] = link;
1401
- insertLinks(actor, links);
1402
- } catch (e) {
1403
- _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.error("error while parsing actor link text", e);
1404
- }
1405
- }, "addALink");
1406
- function insertLinks(actor, links) {
1407
- if (actor.links == null) {
1408
- actor.links = links;
1409
- } else {
1410
- for (const key in links) {
1411
- actor.links[key] = links[key];
1153
+ var SequenceDB = class {
1154
+ constructor() {
1155
+ this.state = new _chunk_XZIHB7SX_mjs__WEBPACK_IMPORTED_MODULE_1__/* .ImperativeState */ .m(() => ({
1156
+ prevActor: void 0,
1157
+ actors: /* @__PURE__ */ new Map(),
1158
+ createdActors: /* @__PURE__ */ new Map(),
1159
+ destroyedActors: /* @__PURE__ */ new Map(),
1160
+ boxes: [],
1161
+ messages: [],
1162
+ notes: [],
1163
+ sequenceNumbersEnabled: false,
1164
+ wrapEnabled: void 0,
1165
+ currentBox: void 0,
1166
+ lastCreated: void 0,
1167
+ lastDestroyed: void 0
1168
+ }));
1169
+ this.setAccTitle = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .setAccTitle */ .SV;
1170
+ this.setAccDescription = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .setAccDescription */ .EI;
1171
+ this.setDiagramTitle = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .setDiagramTitle */ .ke;
1172
+ this.getAccTitle = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getAccTitle */ .iN;
1173
+ this.getAccDescription = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getAccDescription */ .m7;
1174
+ this.getDiagramTitle = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getDiagramTitle */ .ab;
1175
+ this.apply = this.apply.bind(this);
1176
+ this.parseBoxData = this.parseBoxData.bind(this);
1177
+ this.parseMessage = this.parseMessage.bind(this);
1178
+ this.clear();
1179
+ this.setWrap((0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)().wrap);
1180
+ this.LINETYPE = LINETYPE;
1181
+ this.ARROWTYPE = ARROWTYPE;
1182
+ this.PLACEMENT = PLACEMENT;
1183
+ }
1184
+ static {
1185
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(this, "SequenceDB");
1186
+ }
1187
+ addBox(data) {
1188
+ this.state.records.boxes.push({
1189
+ name: data.text,
1190
+ wrap: data.wrap ?? this.autoWrap(),
1191
+ fill: data.color,
1192
+ actorKeys: []
1193
+ });
1194
+ this.state.records.currentBox = this.state.records.boxes.slice(-1)[0];
1195
+ }
1196
+ addActor(id, name, description, type) {
1197
+ let assignedBox = this.state.records.currentBox;
1198
+ const old = this.state.records.actors.get(id);
1199
+ if (old) {
1200
+ if (this.state.records.currentBox && old.box && this.state.records.currentBox !== old.box) {
1201
+ throw new Error(
1202
+ `A same participant should only be defined in one Box: ${old.name} can't be in '${old.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`
1203
+ );
1204
+ }
1205
+ assignedBox = old.box ? old.box : this.state.records.currentBox;
1206
+ old.box = assignedBox;
1207
+ if (old && name === old.name && description == null) {
1208
+ return;
1209
+ }
1412
1210
  }
1211
+ if (description?.text == null) {
1212
+ description = { text: name, type };
1213
+ }
1214
+ if (type == null || description.text == null) {
1215
+ description = { text: name, type };
1216
+ }
1217
+ this.state.records.actors.set(id, {
1218
+ box: assignedBox,
1219
+ name,
1220
+ description: description.text,
1221
+ wrap: description.wrap ?? this.autoWrap(),
1222
+ prevActor: this.state.records.prevActor,
1223
+ links: {},
1224
+ properties: {},
1225
+ actorCnt: null,
1226
+ rectData: null,
1227
+ type: type ?? "participant"
1228
+ });
1229
+ if (this.state.records.prevActor) {
1230
+ const prevActorInRecords = this.state.records.actors.get(this.state.records.prevActor);
1231
+ if (prevActorInRecords) {
1232
+ prevActorInRecords.nextActor = id;
1233
+ }
1234
+ }
1235
+ if (this.state.records.currentBox) {
1236
+ this.state.records.currentBox.actorKeys.push(id);
1237
+ }
1238
+ this.state.records.prevActor = id;
1413
1239
  }
1414
- }
1415
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(insertLinks, "insertLinks");
1416
- var addProperties = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(actorId, text) {
1417
- const actor = getActor(actorId);
1418
- try {
1419
- const sanitizedText = (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .sanitizeText */ .jZ)(text.text, (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)());
1420
- const properties = JSON.parse(sanitizedText);
1421
- insertProperties(actor, properties);
1422
- } catch (e) {
1423
- _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.error("error while parsing actor properties text", e);
1424
- }
1425
- }, "addProperties");
1426
- function insertProperties(actor, properties) {
1427
- if (actor.properties == null) {
1428
- actor.properties = properties;
1429
- } else {
1430
- for (const key in properties) {
1431
- actor.properties[key] = properties[key];
1240
+ activationCount(part) {
1241
+ let i;
1242
+ let count = 0;
1243
+ if (!part) {
1244
+ return 0;
1245
+ }
1246
+ for (i = 0; i < this.state.records.messages.length; i++) {
1247
+ if (this.state.records.messages[i].type === this.LINETYPE.ACTIVE_START && this.state.records.messages[i].from === part) {
1248
+ count++;
1249
+ }
1250
+ if (this.state.records.messages[i].type === this.LINETYPE.ACTIVE_END && this.state.records.messages[i].from === part) {
1251
+ count--;
1252
+ }
1432
1253
  }
1254
+ return count;
1433
1255
  }
1434
- }
1435
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(insertProperties, "insertProperties");
1436
- function boxEnd() {
1437
- state.records.currentBox = void 0;
1438
- }
1439
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(boxEnd, "boxEnd");
1440
- var addDetails = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(actorId, text) {
1441
- const actor = getActor(actorId);
1442
- const elem = document.getElementById(text.text);
1443
- try {
1444
- const text2 = elem.innerHTML;
1445
- const details = JSON.parse(text2);
1446
- if (details.properties) {
1447
- insertProperties(actor, details.properties);
1448
- }
1449
- if (details.links) {
1450
- insertLinks(actor, details.links);
1451
- }
1452
- } catch (e) {
1453
- _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.error("error while parsing actor details text", e);
1454
- }
1455
- }, "addDetails");
1456
- var getActorProperty = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(actor, key) {
1457
- if (actor?.properties !== void 0) {
1458
- return actor.properties[key];
1459
- }
1460
- return void 0;
1461
- }, "getActorProperty");
1462
- var apply = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(param) {
1463
- if (Array.isArray(param)) {
1464
- param.forEach(function(item) {
1465
- apply(item);
1256
+ addMessage(idFrom, idTo, message, answer) {
1257
+ this.state.records.messages.push({
1258
+ id: this.state.records.messages.length.toString(),
1259
+ from: idFrom,
1260
+ to: idTo,
1261
+ message: message.text,
1262
+ wrap: message.wrap ?? this.autoWrap(),
1263
+ answer
1466
1264
  });
1467
- } else {
1468
- switch (param.type) {
1469
- case "sequenceIndex":
1470
- state.records.messages.push({
1471
- from: void 0,
1472
- to: void 0,
1473
- message: {
1474
- start: param.sequenceIndex,
1475
- step: param.sequenceIndexStep,
1476
- visible: param.sequenceVisible
1477
- },
1478
- wrap: false,
1479
- type: param.signalType
1480
- });
1481
- break;
1482
- case "addParticipant":
1483
- addActor(param.actor, param.actor, param.description, param.draw);
1484
- break;
1485
- case "createParticipant":
1486
- if (state.records.actors.has(param.actor)) {
1487
- throw new Error(
1488
- "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"
1489
- );
1490
- }
1491
- state.records.lastCreated = param.actor;
1492
- addActor(param.actor, param.actor, param.description, param.draw);
1493
- state.records.createdActors.set(param.actor, state.records.messages.length);
1494
- break;
1495
- case "destroyParticipant":
1496
- state.records.lastDestroyed = param.actor;
1497
- state.records.destroyedActors.set(param.actor, state.records.messages.length);
1498
- break;
1499
- case "activeStart":
1500
- addSignal(param.actor, void 0, void 0, param.signalType);
1501
- break;
1502
- case "activeEnd":
1503
- addSignal(param.actor, void 0, void 0, param.signalType);
1504
- break;
1505
- case "addNote":
1506
- addNote(param.actor, param.placement, param.text);
1507
- break;
1508
- case "addLinks":
1509
- addLinks(param.actor, param.text);
1510
- break;
1511
- case "addALink":
1512
- addALink(param.actor, param.text);
1513
- break;
1514
- case "addProperties":
1515
- addProperties(param.actor, param.text);
1516
- break;
1517
- case "addDetails":
1518
- addDetails(param.actor, param.text);
1519
- break;
1520
- case "addMessage":
1521
- if (state.records.lastCreated) {
1522
- if (param.to !== state.records.lastCreated) {
1265
+ }
1266
+ addSignal(idFrom, idTo, message, messageType, activate = false) {
1267
+ if (messageType === this.LINETYPE.ACTIVE_END) {
1268
+ const cnt = this.activationCount(idFrom ?? "");
1269
+ if (cnt < 1) {
1270
+ const error = new Error("Trying to inactivate an inactive participant (" + idFrom + ")");
1271
+ error.hash = {
1272
+ text: "->>-",
1273
+ token: "->>-",
1274
+ line: "1",
1275
+ loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
1276
+ expected: ["'ACTIVE_PARTICIPANT'"]
1277
+ };
1278
+ throw error;
1279
+ }
1280
+ }
1281
+ this.state.records.messages.push({
1282
+ id: this.state.records.messages.length.toString(),
1283
+ from: idFrom,
1284
+ to: idTo,
1285
+ message: message?.text ?? "",
1286
+ wrap: message?.wrap ?? this.autoWrap(),
1287
+ type: messageType,
1288
+ activate
1289
+ });
1290
+ return true;
1291
+ }
1292
+ hasAtLeastOneBox() {
1293
+ return this.state.records.boxes.length > 0;
1294
+ }
1295
+ hasAtLeastOneBoxWithTitle() {
1296
+ return this.state.records.boxes.some((b) => b.name);
1297
+ }
1298
+ getMessages() {
1299
+ return this.state.records.messages;
1300
+ }
1301
+ getBoxes() {
1302
+ return this.state.records.boxes;
1303
+ }
1304
+ getActors() {
1305
+ return this.state.records.actors;
1306
+ }
1307
+ getCreatedActors() {
1308
+ return this.state.records.createdActors;
1309
+ }
1310
+ getDestroyedActors() {
1311
+ return this.state.records.destroyedActors;
1312
+ }
1313
+ getActor(id) {
1314
+ return this.state.records.actors.get(id);
1315
+ }
1316
+ getActorKeys() {
1317
+ return [...this.state.records.actors.keys()];
1318
+ }
1319
+ enableSequenceNumbers() {
1320
+ this.state.records.sequenceNumbersEnabled = true;
1321
+ }
1322
+ disableSequenceNumbers() {
1323
+ this.state.records.sequenceNumbersEnabled = false;
1324
+ }
1325
+ showSequenceNumbers() {
1326
+ return this.state.records.sequenceNumbersEnabled;
1327
+ }
1328
+ setWrap(wrapSetting) {
1329
+ this.state.records.wrapEnabled = wrapSetting;
1330
+ }
1331
+ extractWrap(text) {
1332
+ if (text === void 0) {
1333
+ return {};
1334
+ }
1335
+ text = text.trim();
1336
+ const wrap = /^:?wrap:/.exec(text) !== null ? true : /^:?nowrap:/.exec(text) !== null ? false : void 0;
1337
+ const cleanedText = (wrap === void 0 ? text : text.replace(/^:?(?:no)?wrap:/, "")).trim();
1338
+ return { cleanedText, wrap };
1339
+ }
1340
+ autoWrap() {
1341
+ if (this.state.records.wrapEnabled !== void 0) {
1342
+ return this.state.records.wrapEnabled;
1343
+ }
1344
+ return (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)().sequence?.wrap ?? false;
1345
+ }
1346
+ clear() {
1347
+ this.state.reset();
1348
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .clear */ .IU)();
1349
+ }
1350
+ parseMessage(str) {
1351
+ const trimmedStr = str.trim();
1352
+ const { wrap, cleanedText } = this.extractWrap(trimmedStr);
1353
+ const message = {
1354
+ text: cleanedText,
1355
+ wrap
1356
+ };
1357
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.debug(`parseMessage: ${JSON.stringify(message)}`);
1358
+ return message;
1359
+ }
1360
+ // We expect the box statement to be color first then description
1361
+ // The color can be rgb,rgba,hsl,hsla, or css code names #hex codes are not supported for now because of the way the char # is handled
1362
+ // We extract first segment as color, the rest of the line is considered as text
1363
+ parseBoxData(str) {
1364
+ const match = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(str);
1365
+ let color = match?.[1] ? match[1].trim() : "transparent";
1366
+ let title = match?.[2] ? match[2].trim() : void 0;
1367
+ if (window?.CSS) {
1368
+ if (!window.CSS.supports("color", color)) {
1369
+ color = "transparent";
1370
+ title = str.trim();
1371
+ }
1372
+ } else {
1373
+ const style = new Option().style;
1374
+ style.color = color;
1375
+ if (style.color !== color) {
1376
+ color = "transparent";
1377
+ title = str.trim();
1378
+ }
1379
+ }
1380
+ const { wrap, cleanedText } = this.extractWrap(title);
1381
+ return {
1382
+ text: cleanedText ? (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .sanitizeText */ .jZ)(cleanedText, (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)()) : void 0,
1383
+ color,
1384
+ wrap
1385
+ };
1386
+ }
1387
+ addNote(actor, placement, message) {
1388
+ const note = {
1389
+ actor,
1390
+ placement,
1391
+ message: message.text,
1392
+ wrap: message.wrap ?? this.autoWrap()
1393
+ };
1394
+ const actors = [].concat(actor, actor);
1395
+ this.state.records.notes.push(note);
1396
+ this.state.records.messages.push({
1397
+ id: this.state.records.messages.length.toString(),
1398
+ from: actors[0],
1399
+ to: actors[1],
1400
+ message: message.text,
1401
+ wrap: message.wrap ?? this.autoWrap(),
1402
+ type: this.LINETYPE.NOTE,
1403
+ placement
1404
+ });
1405
+ }
1406
+ addLinks(actorId, text) {
1407
+ const actor = this.getActor(actorId);
1408
+ try {
1409
+ let sanitizedText = (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .sanitizeText */ .jZ)(text.text, (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)());
1410
+ sanitizedText = sanitizedText.replace(/&equals;/g, "=");
1411
+ sanitizedText = sanitizedText.replace(/&amp;/g, "&");
1412
+ const links = JSON.parse(sanitizedText);
1413
+ this.insertLinks(actor, links);
1414
+ } catch (e) {
1415
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.error("error while parsing actor link text", e);
1416
+ }
1417
+ }
1418
+ addALink(actorId, text) {
1419
+ const actor = this.getActor(actorId);
1420
+ try {
1421
+ const links = {};
1422
+ let sanitizedText = (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .sanitizeText */ .jZ)(text.text, (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)());
1423
+ const sep = sanitizedText.indexOf("@");
1424
+ sanitizedText = sanitizedText.replace(/&equals;/g, "=");
1425
+ sanitizedText = sanitizedText.replace(/&amp;/g, "&");
1426
+ const label = sanitizedText.slice(0, sep - 1).trim();
1427
+ const link = sanitizedText.slice(sep + 1).trim();
1428
+ links[label] = link;
1429
+ this.insertLinks(actor, links);
1430
+ } catch (e) {
1431
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.error("error while parsing actor link text", e);
1432
+ }
1433
+ }
1434
+ insertLinks(actor, links) {
1435
+ if (actor.links == null) {
1436
+ actor.links = links;
1437
+ } else {
1438
+ for (const key in links) {
1439
+ actor.links[key] = links[key];
1440
+ }
1441
+ }
1442
+ }
1443
+ addProperties(actorId, text) {
1444
+ const actor = this.getActor(actorId);
1445
+ try {
1446
+ const sanitizedText = (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .sanitizeText */ .jZ)(text.text, (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)());
1447
+ const properties = JSON.parse(sanitizedText);
1448
+ this.insertProperties(actor, properties);
1449
+ } catch (e) {
1450
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.error("error while parsing actor properties text", e);
1451
+ }
1452
+ }
1453
+ insertProperties(actor, properties) {
1454
+ if (actor.properties == null) {
1455
+ actor.properties = properties;
1456
+ } else {
1457
+ for (const key in properties) {
1458
+ actor.properties[key] = properties[key];
1459
+ }
1460
+ }
1461
+ }
1462
+ boxEnd() {
1463
+ this.state.records.currentBox = void 0;
1464
+ }
1465
+ addDetails(actorId, text) {
1466
+ const actor = this.getActor(actorId);
1467
+ const elem = document.getElementById(text.text);
1468
+ try {
1469
+ const text2 = elem.innerHTML;
1470
+ const details = JSON.parse(text2);
1471
+ if (details.properties) {
1472
+ this.insertProperties(actor, details.properties);
1473
+ }
1474
+ if (details.links) {
1475
+ this.insertLinks(actor, details.links);
1476
+ }
1477
+ } catch (e) {
1478
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.error("error while parsing actor details text", e);
1479
+ }
1480
+ }
1481
+ getActorProperty(actor, key) {
1482
+ if (actor?.properties !== void 0) {
1483
+ return actor.properties[key];
1484
+ }
1485
+ return void 0;
1486
+ }
1487
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-redundant-type-constituents
1488
+ apply(param) {
1489
+ if (Array.isArray(param)) {
1490
+ param.forEach((item) => {
1491
+ this.apply(item);
1492
+ });
1493
+ } else {
1494
+ switch (param.type) {
1495
+ case "sequenceIndex":
1496
+ this.state.records.messages.push({
1497
+ id: this.state.records.messages.length.toString(),
1498
+ from: void 0,
1499
+ to: void 0,
1500
+ message: {
1501
+ start: param.sequenceIndex,
1502
+ step: param.sequenceIndexStep,
1503
+ visible: param.sequenceVisible
1504
+ },
1505
+ wrap: false,
1506
+ type: param.signalType
1507
+ });
1508
+ break;
1509
+ case "addParticipant":
1510
+ this.addActor(param.actor, param.actor, param.description, param.draw);
1511
+ break;
1512
+ case "createParticipant":
1513
+ if (this.state.records.actors.has(param.actor)) {
1523
1514
  throw new Error(
1524
- "The created participant " + state.records.lastCreated.name + " does not have an associated creating message after its declaration. Please check the sequence diagram."
1515
+ "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"
1525
1516
  );
1526
- } else {
1527
- state.records.lastCreated = void 0;
1528
1517
  }
1529
- } else if (state.records.lastDestroyed) {
1530
- if (param.to !== state.records.lastDestroyed && param.from !== state.records.lastDestroyed) {
1531
- throw new Error(
1532
- "The destroyed participant " + state.records.lastDestroyed.name + " does not have an associated destroying message after its declaration. Please check the sequence diagram."
1533
- );
1534
- } else {
1535
- state.records.lastDestroyed = void 0;
1518
+ this.state.records.lastCreated = param.actor;
1519
+ this.addActor(param.actor, param.actor, param.description, param.draw);
1520
+ this.state.records.createdActors.set(param.actor, this.state.records.messages.length);
1521
+ break;
1522
+ case "destroyParticipant":
1523
+ this.state.records.lastDestroyed = param.actor;
1524
+ this.state.records.destroyedActors.set(param.actor, this.state.records.messages.length);
1525
+ break;
1526
+ case "activeStart":
1527
+ this.addSignal(param.actor, void 0, void 0, param.signalType);
1528
+ break;
1529
+ case "activeEnd":
1530
+ this.addSignal(param.actor, void 0, void 0, param.signalType);
1531
+ break;
1532
+ case "addNote":
1533
+ this.addNote(param.actor, param.placement, param.text);
1534
+ break;
1535
+ case "addLinks":
1536
+ this.addLinks(param.actor, param.text);
1537
+ break;
1538
+ case "addALink":
1539
+ this.addALink(param.actor, param.text);
1540
+ break;
1541
+ case "addProperties":
1542
+ this.addProperties(param.actor, param.text);
1543
+ break;
1544
+ case "addDetails":
1545
+ this.addDetails(param.actor, param.text);
1546
+ break;
1547
+ case "addMessage":
1548
+ if (this.state.records.lastCreated) {
1549
+ if (param.to !== this.state.records.lastCreated) {
1550
+ throw new Error(
1551
+ "The created participant " + this.state.records.lastCreated.name + " does not have an associated creating message after its declaration. Please check the sequence diagram."
1552
+ );
1553
+ } else {
1554
+ this.state.records.lastCreated = void 0;
1555
+ }
1556
+ } else if (this.state.records.lastDestroyed) {
1557
+ if (param.to !== this.state.records.lastDestroyed && param.from !== this.state.records.lastDestroyed) {
1558
+ throw new Error(
1559
+ "The destroyed participant " + this.state.records.lastDestroyed.name + " does not have an associated destroying message after its declaration. Please check the sequence diagram."
1560
+ );
1561
+ } else {
1562
+ this.state.records.lastDestroyed = void 0;
1563
+ }
1536
1564
  }
1537
- }
1538
- addSignal(param.from, param.to, param.msg, param.signalType, param.activate);
1539
- break;
1540
- case "boxStart":
1541
- addBox(param.boxData);
1542
- break;
1543
- case "boxEnd":
1544
- boxEnd();
1545
- break;
1546
- case "loopStart":
1547
- addSignal(void 0, void 0, param.loopText, param.signalType);
1548
- break;
1549
- case "loopEnd":
1550
- addSignal(void 0, void 0, void 0, param.signalType);
1551
- break;
1552
- case "rectStart":
1553
- addSignal(void 0, void 0, param.color, param.signalType);
1554
- break;
1555
- case "rectEnd":
1556
- addSignal(void 0, void 0, void 0, param.signalType);
1557
- break;
1558
- case "optStart":
1559
- addSignal(void 0, void 0, param.optText, param.signalType);
1560
- break;
1561
- case "optEnd":
1562
- addSignal(void 0, void 0, void 0, param.signalType);
1563
- break;
1564
- case "altStart":
1565
- addSignal(void 0, void 0, param.altText, param.signalType);
1566
- break;
1567
- case "else":
1568
- addSignal(void 0, void 0, param.altText, param.signalType);
1569
- break;
1570
- case "altEnd":
1571
- addSignal(void 0, void 0, void 0, param.signalType);
1572
- break;
1573
- case "setAccTitle":
1574
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .setAccTitle */ .SV)(param.text);
1575
- break;
1576
- case "parStart":
1577
- addSignal(void 0, void 0, param.parText, param.signalType);
1578
- break;
1579
- case "and":
1580
- addSignal(void 0, void 0, param.parText, param.signalType);
1581
- break;
1582
- case "parEnd":
1583
- addSignal(void 0, void 0, void 0, param.signalType);
1584
- break;
1585
- case "criticalStart":
1586
- addSignal(void 0, void 0, param.criticalText, param.signalType);
1587
- break;
1588
- case "option":
1589
- addSignal(void 0, void 0, param.optionText, param.signalType);
1590
- break;
1591
- case "criticalEnd":
1592
- addSignal(void 0, void 0, void 0, param.signalType);
1593
- break;
1594
- case "breakStart":
1595
- addSignal(void 0, void 0, param.breakText, param.signalType);
1596
- break;
1597
- case "breakEnd":
1598
- addSignal(void 0, void 0, void 0, param.signalType);
1599
- break;
1565
+ this.addSignal(param.from, param.to, param.msg, param.signalType, param.activate);
1566
+ break;
1567
+ case "boxStart":
1568
+ this.addBox(param.boxData);
1569
+ break;
1570
+ case "boxEnd":
1571
+ this.boxEnd();
1572
+ break;
1573
+ case "loopStart":
1574
+ this.addSignal(void 0, void 0, param.loopText, param.signalType);
1575
+ break;
1576
+ case "loopEnd":
1577
+ this.addSignal(void 0, void 0, void 0, param.signalType);
1578
+ break;
1579
+ case "rectStart":
1580
+ this.addSignal(void 0, void 0, param.color, param.signalType);
1581
+ break;
1582
+ case "rectEnd":
1583
+ this.addSignal(void 0, void 0, void 0, param.signalType);
1584
+ break;
1585
+ case "optStart":
1586
+ this.addSignal(void 0, void 0, param.optText, param.signalType);
1587
+ break;
1588
+ case "optEnd":
1589
+ this.addSignal(void 0, void 0, void 0, param.signalType);
1590
+ break;
1591
+ case "altStart":
1592
+ this.addSignal(void 0, void 0, param.altText, param.signalType);
1593
+ break;
1594
+ case "else":
1595
+ this.addSignal(void 0, void 0, param.altText, param.signalType);
1596
+ break;
1597
+ case "altEnd":
1598
+ this.addSignal(void 0, void 0, void 0, param.signalType);
1599
+ break;
1600
+ case "setAccTitle":
1601
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .setAccTitle */ .SV)(param.text);
1602
+ break;
1603
+ case "parStart":
1604
+ this.addSignal(void 0, void 0, param.parText, param.signalType);
1605
+ break;
1606
+ case "and":
1607
+ this.addSignal(void 0, void 0, param.parText, param.signalType);
1608
+ break;
1609
+ case "parEnd":
1610
+ this.addSignal(void 0, void 0, void 0, param.signalType);
1611
+ break;
1612
+ case "criticalStart":
1613
+ this.addSignal(void 0, void 0, param.criticalText, param.signalType);
1614
+ break;
1615
+ case "option":
1616
+ this.addSignal(void 0, void 0, param.optionText, param.signalType);
1617
+ break;
1618
+ case "criticalEnd":
1619
+ this.addSignal(void 0, void 0, void 0, param.signalType);
1620
+ break;
1621
+ case "breakStart":
1622
+ this.addSignal(void 0, void 0, param.breakText, param.signalType);
1623
+ break;
1624
+ case "breakEnd":
1625
+ this.addSignal(void 0, void 0, void 0, param.signalType);
1626
+ break;
1627
+ }
1600
1628
  }
1601
1629
  }
1602
- }, "apply");
1603
- var sequenceDb_default = {
1604
- addActor,
1605
- addMessage,
1606
- addSignal,
1607
- addLinks,
1608
- addDetails,
1609
- addProperties,
1610
- autoWrap,
1611
- setWrap,
1612
- enableSequenceNumbers,
1613
- disableSequenceNumbers,
1614
- showSequenceNumbers,
1615
- getMessages,
1616
- getActors,
1617
- getCreatedActors,
1618
- getDestroyedActors,
1619
- getActor,
1620
- getActorKeys,
1621
- getActorProperty,
1622
- getAccTitle: _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getAccTitle */ .iN,
1623
- getBoxes,
1624
- getDiagramTitle: _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getDiagramTitle */ .ab,
1625
- setDiagramTitle: _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .setDiagramTitle */ .ke,
1626
- getConfig: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(() => (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)().sequence, "getConfig"),
1627
- clear: clear2,
1628
- parseMessage,
1629
- parseBoxData,
1630
- LINETYPE,
1631
- ARROWTYPE,
1632
- PLACEMENT,
1633
- addNote,
1634
- setAccTitle: _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .setAccTitle */ .SV,
1635
- apply,
1636
- setAccDescription: _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .setAccDescription */ .EI,
1637
- getAccDescription: _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getAccDescription */ .m7,
1638
- hasAtLeastOneBox,
1639
- hasAtLeastOneBoxWithTitle
1630
+ getConfig() {
1631
+ return (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)().sequence;
1632
+ }
1640
1633
  };
1641
1634
 
1642
1635
  // src/diagrams/sequence/styles.js
1643
- var getStyles = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)((options) => `.actor {
1636
+ var getStyles = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)((options) => `.actor {
1644
1637
  stroke: ${options.actorBorder};
1645
1638
  fill: ${options.actorBkg};
1646
1639
  }
@@ -1769,10 +1762,10 @@ var TOP_ACTOR_CLASS = "actor-top";
1769
1762
  var BOTTOM_ACTOR_CLASS = "actor-bottom";
1770
1763
  var ACTOR_BOX_CLASS = "actor-box";
1771
1764
  var ACTOR_MAN_FIGURE_CLASS = "actor-man";
1772
- var drawRect2 = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem, rectData) {
1773
- return (0,_chunk_V35ELUW5_mjs__WEBPACK_IMPORTED_MODULE_0__/* .drawRect */ .tk)(elem, rectData);
1765
+ var drawRect2 = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem, rectData) {
1766
+ return (0,_chunk_D6G4REZN_mjs__WEBPACK_IMPORTED_MODULE_0__/* .drawRect */ .tk)(elem, rectData);
1774
1767
  }, "drawRect");
1775
- var drawPopup = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem, actor, minMenuWidth, textAttrs, forceMenus) {
1768
+ var drawPopup = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem, actor, minMenuWidth, textAttrs, forceMenus) {
1776
1769
  if (actor.links === void 0 || actor.links === null || Object.keys(actor.links).length === 0) {
1777
1770
  return { height: 0, width: 0 };
1778
1771
  }
@@ -1825,12 +1818,12 @@ var drawPopup = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_
1825
1818
  rectElem.attr("height", linkY);
1826
1819
  return { height: rectData.height + linkY, width: menuWidth };
1827
1820
  }, "drawPopup");
1828
- var popupMenuToggle = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(popId) {
1821
+ var popupMenuToggle = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(popId) {
1829
1822
  return "var pu = document.getElementById('" + popId + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
1830
1823
  }, "popupMenuToggle");
1831
- var drawKatex = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(async function(elem, textData, msgModel = null) {
1824
+ var drawKatex = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(async function(elem, textData, msgModel = null) {
1832
1825
  let textElem = elem.append("foreignObject");
1833
- const lines = await (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .renderKatex */ .VJ)(textData.text, (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig */ .zj)());
1826
+ const lines = await (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .renderKatex */ .VJ)(textData.text, (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig */ .zj)());
1834
1827
  const divElem = textElem.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(lines);
1835
1828
  const dim = divElem.node().getBoundingClientRect();
1836
1829
  textElem.attr("height", Math.round(dim.height)).attr("width", Math.round(dim.width));
@@ -1855,27 +1848,27 @@ var drawKatex = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_
1855
1848
  }
1856
1849
  return [textElem];
1857
1850
  }, "drawKatex");
1858
- var drawText = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem, textData) {
1851
+ var drawText = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem, textData) {
1859
1852
  let prevTextHeight = 0;
1860
1853
  let textHeight = 0;
1861
- const lines = textData.text.split(_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.lineBreakRegex);
1862
- const [_textFontSize, _textFontSizePx] = (0,_chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_2__/* .parseFontSize */ .I5)(textData.fontSize);
1854
+ const lines = textData.text.split(_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.lineBreakRegex);
1855
+ const [_textFontSize, _textFontSizePx] = (0,_chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_2__/* .parseFontSize */ .I5)(textData.fontSize);
1863
1856
  let textElems = [];
1864
1857
  let dy = 0;
1865
- let yfunc = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(() => textData.y, "yfunc");
1858
+ let yfunc = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(() => textData.y, "yfunc");
1866
1859
  if (textData.valign !== void 0 && textData.textMargin !== void 0 && textData.textMargin > 0) {
1867
1860
  switch (textData.valign) {
1868
1861
  case "top":
1869
1862
  case "start":
1870
- yfunc = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(() => Math.round(textData.y + textData.textMargin), "yfunc");
1863
+ yfunc = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(() => Math.round(textData.y + textData.textMargin), "yfunc");
1871
1864
  break;
1872
1865
  case "middle":
1873
1866
  case "center":
1874
- yfunc = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(() => Math.round(textData.y + (prevTextHeight + textHeight + textData.textMargin) / 2), "yfunc");
1867
+ yfunc = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(() => Math.round(textData.y + (prevTextHeight + textHeight + textData.textMargin) / 2), "yfunc");
1875
1868
  break;
1876
1869
  case "bottom":
1877
1870
  case "end":
1878
- yfunc = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(() => Math.round(
1871
+ yfunc = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(() => Math.round(
1879
1872
  textData.y + (prevTextHeight + textHeight + 2 * textData.textMargin) - textData.textMargin
1880
1873
  ), "yfunc");
1881
1874
  break;
@@ -1936,7 +1929,7 @@ var drawText = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3
1936
1929
  } else if (dy !== 0) {
1937
1930
  textElem.attr("dy", dy);
1938
1931
  }
1939
- const text = line || _chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_2__/* .ZERO_WIDTH_SPACE */ .pe;
1932
+ const text = line || _chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_2__/* .ZERO_WIDTH_SPACE */ .pe;
1940
1933
  if (textData.tspan) {
1941
1934
  const span = textElem.append("tspan");
1942
1935
  span.attr("x", textData.x);
@@ -1955,11 +1948,11 @@ var drawText = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3
1955
1948
  }
1956
1949
  return textElems;
1957
1950
  }, "drawText");
1958
- var drawLabel = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem, txtObject) {
1951
+ var drawLabel = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem, txtObject) {
1959
1952
  function genPoints(x, y, width, height, cut) {
1960
1953
  return x + "," + y + " " + (x + width) + "," + y + " " + (x + width) + "," + (y + height - cut) + " " + (x + width - cut * 1.2) + "," + (y + height) + " " + x + "," + (y + height);
1961
1954
  }
1962
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(genPoints, "genPoints");
1955
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(genPoints, "genPoints");
1963
1956
  const polygon = elem.append("polygon");
1964
1957
  polygon.attr("points", genPoints(txtObject.x, txtObject.y, txtObject.width, txtObject.height, 7));
1965
1958
  polygon.attr("class", "labelBox");
@@ -1968,7 +1961,7 @@ var drawLabel = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_
1968
1961
  return polygon;
1969
1962
  }, "drawLabel");
1970
1963
  var actorCnt = -1;
1971
- var fixLifeLineHeights = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)((diagram2, actors, actorKeys, conf2) => {
1964
+ var fixLifeLineHeights = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)((diagram2, actors, actorKeys, conf2) => {
1972
1965
  if (!diagram2.select) {
1973
1966
  return;
1974
1967
  }
@@ -1982,7 +1975,7 @@ var fixLifeLineHeights = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTE
1982
1975
  }
1983
1976
  });
1984
1977
  }, "fixLifeLineHeights");
1985
- var drawActorTypeParticipant = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem, actor, conf2, isFooter) {
1978
+ var drawActorTypeParticipant = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem, actor, conf2, isFooter) {
1986
1979
  const actorY = isFooter ? actor.stopy : actor.starty;
1987
1980
  const center = actor.x + actor.width / 2;
1988
1981
  const centerY = actorY + actor.height;
@@ -2000,7 +1993,7 @@ var drawActorTypeParticipant = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_I
2000
1993
  g.attr("id", "root-" + actorCnt);
2001
1994
  }
2002
1995
  }
2003
- const rect = (0,_chunk_V35ELUW5_mjs__WEBPACK_IMPORTED_MODULE_0__/* .getNoteRect */ .PB)();
1996
+ const rect = (0,_chunk_D6G4REZN_mjs__WEBPACK_IMPORTED_MODULE_0__/* .getNoteRect */ .PB)();
2004
1997
  var cssclass = "actor";
2005
1998
  if (actor.properties?.class) {
2006
1999
  cssclass = actor.properties.class;
@@ -2025,12 +2018,12 @@ var drawActorTypeParticipant = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_I
2025
2018
  if (actor.properties?.icon) {
2026
2019
  const iconSrc = actor.properties.icon.trim();
2027
2020
  if (iconSrc.charAt(0) === "@") {
2028
- (0,_chunk_V35ELUW5_mjs__WEBPACK_IMPORTED_MODULE_0__/* .drawEmbeddedImage */ .CP)(g, rect.x + rect.width - 20, rect.y + 10, iconSrc.substr(1));
2021
+ (0,_chunk_D6G4REZN_mjs__WEBPACK_IMPORTED_MODULE_0__/* .drawEmbeddedImage */ .CP)(g, rect.x + rect.width - 20, rect.y + 10, iconSrc.substr(1));
2029
2022
  } else {
2030
- (0,_chunk_V35ELUW5_mjs__WEBPACK_IMPORTED_MODULE_0__/* .drawImage */ .aC)(g, rect.x + rect.width - 20, rect.y + 10, iconSrc);
2023
+ (0,_chunk_D6G4REZN_mjs__WEBPACK_IMPORTED_MODULE_0__/* .drawImage */ .aC)(g, rect.x + rect.width - 20, rect.y + 10, iconSrc);
2031
2024
  }
2032
2025
  }
2033
- _drawTextCandidateFunc(conf2, (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .hasKatex */ .Wi)(actor.description))(
2026
+ _drawTextCandidateFunc(conf2, (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .hasKatex */ .Wi)(actor.description))(
2034
2027
  actor.description,
2035
2028
  g,
2036
2029
  rect.x,
@@ -2048,7 +2041,7 @@ var drawActorTypeParticipant = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_I
2048
2041
  }
2049
2042
  return height;
2050
2043
  }, "drawActorTypeParticipant");
2051
- var drawActorTypeActor = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem, actor, conf2, isFooter) {
2044
+ var drawActorTypeActor = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem, actor, conf2, isFooter) {
2052
2045
  const actorY = isFooter ? actor.stopy : actor.starty;
2053
2046
  const center = actor.x + actor.width / 2;
2054
2047
  const centerY = actorY + 80;
@@ -2067,7 +2060,7 @@ var drawActorTypeActor = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTE
2067
2060
  }
2068
2061
  actElem.attr("class", cssClass);
2069
2062
  actElem.attr("name", actor.name);
2070
- const rect = (0,_chunk_V35ELUW5_mjs__WEBPACK_IMPORTED_MODULE_0__/* .getNoteRect */ .PB)();
2063
+ const rect = (0,_chunk_D6G4REZN_mjs__WEBPACK_IMPORTED_MODULE_0__/* .getNoteRect */ .PB)();
2071
2064
  rect.x = actor.x;
2072
2065
  rect.y = actorY;
2073
2066
  rect.fill = "#eaeaea";
@@ -2088,7 +2081,7 @@ var drawActorTypeActor = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTE
2088
2081
  circle.attr("height", actor.height);
2089
2082
  const bounds2 = actElem.node().getBBox();
2090
2083
  actor.height = bounds2.height;
2091
- _drawTextCandidateFunc(conf2, (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .hasKatex */ .Wi)(actor.description))(
2084
+ _drawTextCandidateFunc(conf2, (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .hasKatex */ .Wi)(actor.description))(
2092
2085
  actor.description,
2093
2086
  actElem,
2094
2087
  rect.x,
@@ -2100,7 +2093,7 @@ var drawActorTypeActor = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTE
2100
2093
  );
2101
2094
  return actor.height;
2102
2095
  }, "drawActorTypeActor");
2103
- var drawActor = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(async function(elem, actor, conf2, isFooter) {
2096
+ var drawActor = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(async function(elem, actor, conf2, isFooter) {
2104
2097
  switch (actor.type) {
2105
2098
  case "actor":
2106
2099
  return await drawActorTypeActor(elem, actor, conf2, isFooter);
@@ -2108,7 +2101,7 @@ var drawActor = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_
2108
2101
  return await drawActorTypeParticipant(elem, actor, conf2, isFooter);
2109
2102
  }
2110
2103
  }, "drawActor");
2111
- var drawBox = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem, box, conf2) {
2104
+ var drawBox = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem, box, conf2) {
2112
2105
  const boxplusTextGroup = elem.append("g");
2113
2106
  const g = boxplusTextGroup;
2114
2107
  drawBackgroundRect2(g, box);
@@ -2126,11 +2119,11 @@ var drawBox = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3_
2126
2119
  }
2127
2120
  g.lower();
2128
2121
  }, "drawBox");
2129
- var anchorElement = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem) {
2122
+ var anchorElement = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem) {
2130
2123
  return elem.append("g");
2131
2124
  }, "anchorElement");
2132
- var drawActivation = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem, bounds2, verticalPos, conf2, actorActivations2) {
2133
- const rect = (0,_chunk_V35ELUW5_mjs__WEBPACK_IMPORTED_MODULE_0__/* .getNoteRect */ .PB)();
2125
+ var drawActivation = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem, bounds2, verticalPos, conf2, actorActivations2) {
2126
+ const rect = (0,_chunk_D6G4REZN_mjs__WEBPACK_IMPORTED_MODULE_0__/* .getNoteRect */ .PB)();
2134
2127
  const g = bounds2.anchored;
2135
2128
  rect.x = bounds2.startx;
2136
2129
  rect.y = bounds2.starty;
@@ -2139,7 +2132,7 @@ var drawActivation = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MO
2139
2132
  rect.height = verticalPos - bounds2.starty;
2140
2133
  drawRect2(g, rect);
2141
2134
  }, "drawActivation");
2142
- var drawLoop = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(async function(elem, loopModel, labelText, conf2) {
2135
+ var drawLoop = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(async function(elem, loopModel, labelText, conf2) {
2143
2136
  const {
2144
2137
  boxMargin,
2145
2138
  boxTextMargin,
@@ -2150,7 +2143,7 @@ var drawLoop = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3
2150
2143
  messageFontWeight: fontWeight
2151
2144
  } = conf2;
2152
2145
  const g = elem.append("g");
2153
- const drawLoopLine = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(startx, starty, stopx, stopy) {
2146
+ const drawLoopLine = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(startx, starty, stopx, stopy) {
2154
2147
  return g.append("line").attr("x1", startx).attr("y1", starty).attr("x2", stopx).attr("y2", stopy).attr("class", "loopLine");
2155
2148
  }, "drawLoopLine");
2156
2149
  drawLoopLine(loopModel.startx, loopModel.starty, loopModel.stopx, loopModel.starty);
@@ -2165,7 +2158,7 @@ var drawLoop = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3
2165
2158
  );
2166
2159
  });
2167
2160
  }
2168
- let txt = (0,_chunk_V35ELUW5_mjs__WEBPACK_IMPORTED_MODULE_0__/* .getTextObj */ .HT)();
2161
+ let txt = (0,_chunk_D6G4REZN_mjs__WEBPACK_IMPORTED_MODULE_0__/* .getTextObj */ .HT)();
2169
2162
  txt.text = labelText;
2170
2163
  txt.x = loopModel.startx;
2171
2164
  txt.y = loopModel.starty;
@@ -2192,7 +2185,7 @@ var drawLoop = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3
2192
2185
  txt.fontSize = fontSize;
2193
2186
  txt.fontWeight = fontWeight;
2194
2187
  txt.wrap = true;
2195
- let textElem = (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .hasKatex */ .Wi)(txt.text) ? await drawKatex(g, txt, loopModel) : drawText(g, txt);
2188
+ let textElem = (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .hasKatex */ .Wi)(txt.text) ? await drawKatex(g, txt, loopModel) : drawText(g, txt);
2196
2189
  if (loopModel.sectionTitles !== void 0) {
2197
2190
  for (const [idx, item] of Object.entries(loopModel.sectionTitles)) {
2198
2191
  if (item.message) {
@@ -2207,7 +2200,7 @@ var drawLoop = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3
2207
2200
  txt.fontSize = fontSize;
2208
2201
  txt.fontWeight = fontWeight;
2209
2202
  txt.wrap = loopModel.wrap;
2210
- if ((0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .hasKatex */ .Wi)(txt.text)) {
2203
+ if ((0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .hasKatex */ .Wi)(txt.text)) {
2211
2204
  loopModel.starty = loopModel.sections[idx].y;
2212
2205
  await drawKatex(g, txt, loopModel);
2213
2206
  } else {
@@ -2223,42 +2216,42 @@ var drawLoop = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3
2223
2216
  loopModel.height = Math.round(loopModel.stopy - loopModel.starty);
2224
2217
  return g;
2225
2218
  }, "drawLoop");
2226
- var drawBackgroundRect2 = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem, bounds2) {
2227
- (0,_chunk_V35ELUW5_mjs__WEBPACK_IMPORTED_MODULE_0__/* .drawBackgroundRect */ .lC)(elem, bounds2);
2219
+ var drawBackgroundRect2 = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem, bounds2) {
2220
+ (0,_chunk_D6G4REZN_mjs__WEBPACK_IMPORTED_MODULE_0__/* .drawBackgroundRect */ .lC)(elem, bounds2);
2228
2221
  }, "drawBackgroundRect");
2229
- var insertDatabaseIcon = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem) {
2222
+ var insertDatabaseIcon = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem) {
2230
2223
  elem.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr(
2231
2224
  "d",
2232
2225
  "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"
2233
2226
  );
2234
2227
  }, "insertDatabaseIcon");
2235
- var insertComputerIcon = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem) {
2228
+ var insertComputerIcon = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem) {
2236
2229
  elem.append("defs").append("symbol").attr("id", "computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
2237
2230
  "d",
2238
2231
  "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"
2239
2232
  );
2240
2233
  }, "insertComputerIcon");
2241
- var insertClockIcon = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem) {
2234
+ var insertClockIcon = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem) {
2242
2235
  elem.append("defs").append("symbol").attr("id", "clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
2243
2236
  "d",
2244
2237
  "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"
2245
2238
  );
2246
2239
  }, "insertClockIcon");
2247
- var insertArrowHead = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem) {
2240
+ var insertArrowHead = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem) {
2248
2241
  elem.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 7.9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M -1 0 L 10 5 L 0 10 z");
2249
2242
  }, "insertArrowHead");
2250
- var insertArrowFilledHead = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem) {
2243
+ var insertArrowFilledHead = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem) {
2251
2244
  elem.append("defs").append("marker").attr("id", "filled-head").attr("refX", 15.5).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
2252
2245
  }, "insertArrowFilledHead");
2253
- var insertSequenceNumber = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem) {
2246
+ var insertSequenceNumber = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem) {
2254
2247
  elem.append("defs").append("marker").attr("id", "sequencenumber").attr("refX", 15).attr("refY", 15).attr("markerWidth", 60).attr("markerHeight", 40).attr("orient", "auto").append("circle").attr("cx", 15).attr("cy", 15).attr("r", 6);
2255
2248
  }, "insertSequenceNumber");
2256
- var insertArrowCrossHead = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem) {
2249
+ var insertArrowCrossHead = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(elem) {
2257
2250
  const defs = elem.append("defs");
2258
2251
  const marker = defs.append("marker").attr("id", "crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 4).attr("refY", 4.5);
2259
2252
  marker.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");
2260
2253
  }, "insertArrowCrossHead");
2261
- var getTextObj2 = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
2254
+ var getTextObj2 = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
2262
2255
  return {
2263
2256
  x: 0,
2264
2257
  y: 0,
@@ -2274,7 +2267,7 @@ var getTextObj2 = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODUL
2274
2267
  valign: void 0
2275
2268
  };
2276
2269
  }, "getTextObj");
2277
- var getNoteRect2 = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
2270
+ var getNoteRect2 = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
2278
2271
  return {
2279
2272
  x: 0,
2280
2273
  y: 0,
@@ -2292,11 +2285,11 @@ var _drawTextCandidateFunc = /* @__PURE__ */ function() {
2292
2285
  const text = g.append("text").attr("x", x + width / 2).attr("y", y + height / 2 + 5).style("text-anchor", "middle").text(content);
2293
2286
  _setTextAttrs(text, textAttrs);
2294
2287
  }
2295
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(byText, "byText");
2288
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(byText, "byText");
2296
2289
  function byTspan(content, g, x, y, width, height, textAttrs, conf2) {
2297
2290
  const { actorFontSize, actorFontFamily, actorFontWeight } = conf2;
2298
- const [_actorFontSize, _actorFontSizePx] = (0,_chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_2__/* .parseFontSize */ .I5)(actorFontSize);
2299
- const lines = content.split(_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.lineBreakRegex);
2291
+ const [_actorFontSize, _actorFontSizePx] = (0,_chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_2__/* .parseFontSize */ .I5)(actorFontSize);
2292
+ const lines = content.split(_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.lineBreakRegex);
2300
2293
  for (let i = 0; i < lines.length; i++) {
2301
2294
  const dy = i * _actorFontSize - _actorFontSize * (lines.length - 1) / 2;
2302
2295
  const text = g.append("text").attr("x", x + width / 2).attr("y", y).style("text-anchor", "middle").style("font-size", _actorFontSizePx).style("font-weight", actorFontWeight).style("font-family", actorFontFamily);
@@ -2305,7 +2298,7 @@ var _drawTextCandidateFunc = /* @__PURE__ */ function() {
2305
2298
  _setTextAttrs(text, textAttrs);
2306
2299
  }
2307
2300
  }
2308
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(byTspan, "byTspan");
2301
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(byTspan, "byTspan");
2309
2302
  function byFo(content, g, x, y, width, height, textAttrs, conf2) {
2310
2303
  const s = g.append("switch");
2311
2304
  const f = s.append("foreignObject").attr("x", x).attr("y", y).attr("width", width).attr("height", height);
@@ -2314,17 +2307,17 @@ var _drawTextCandidateFunc = /* @__PURE__ */ function() {
2314
2307
  byTspan(content, s, x, y, width, height, textAttrs, conf2);
2315
2308
  _setTextAttrs(text, textAttrs);
2316
2309
  }
2317
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(byFo, "byFo");
2310
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(byFo, "byFo");
2318
2311
  async function byKatex(content, g, x, y, width, height, textAttrs, conf2) {
2319
- const dim = await (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .calculateMathMLDimensions */ .Dl)(content, (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig */ .zj)());
2312
+ const dim = await (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .calculateMathMLDimensions */ .Dl)(content, (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig */ .zj)());
2320
2313
  const s = g.append("switch");
2321
2314
  const f = s.append("foreignObject").attr("x", x + width / 2 - dim.width / 2).attr("y", y + height / 2 - dim.height / 2).attr("width", dim.width).attr("height", dim.height);
2322
2315
  const text = f.append("xhtml:div").style("height", "100%").style("width", "100%");
2323
- text.append("div").style("text-align", "center").style("vertical-align", "middle").html(await (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .renderKatex */ .VJ)(content, (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig */ .zj)()));
2316
+ text.append("div").style("text-align", "center").style("vertical-align", "middle").html(await (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .renderKatex */ .VJ)(content, (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig */ .zj)()));
2324
2317
  byTspan(content, s, x, y, width, height, textAttrs, conf2);
2325
2318
  _setTextAttrs(text, textAttrs);
2326
2319
  }
2327
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(byKatex, "byKatex");
2320
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(byKatex, "byKatex");
2328
2321
  function _setTextAttrs(toText, fromTextAttrsDict) {
2329
2322
  for (const key in fromTextAttrsDict) {
2330
2323
  if (fromTextAttrsDict.hasOwnProperty(key)) {
@@ -2332,7 +2325,7 @@ var _drawTextCandidateFunc = /* @__PURE__ */ function() {
2332
2325
  }
2333
2326
  }
2334
2327
  }
2335
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(_setTextAttrs, "_setTextAttrs");
2328
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(_setTextAttrs, "_setTextAttrs");
2336
2329
  return function(conf2, hasKatex2 = false) {
2337
2330
  if (hasKatex2) {
2338
2331
  return byKatex;
@@ -2345,10 +2338,10 @@ var _drawMenuItemTextCandidateFunc = /* @__PURE__ */ function() {
2345
2338
  const text = g.append("text").attr("x", x).attr("y", y).style("text-anchor", "start").text(content);
2346
2339
  _setTextAttrs(text, textAttrs);
2347
2340
  }
2348
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(byText, "byText");
2341
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(byText, "byText");
2349
2342
  function byTspan(content, g, x, y, width, height, textAttrs, conf2) {
2350
2343
  const { actorFontSize, actorFontFamily, actorFontWeight } = conf2;
2351
- const lines = content.split(_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.lineBreakRegex);
2344
+ const lines = content.split(_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.lineBreakRegex);
2352
2345
  for (let i = 0; i < lines.length; i++) {
2353
2346
  const dy = i * actorFontSize - actorFontSize * (lines.length - 1) / 2;
2354
2347
  const text = g.append("text").attr("x", x).attr("y", y).style("text-anchor", "start").style("font-size", actorFontSize).style("font-weight", actorFontWeight).style("font-family", actorFontFamily);
@@ -2357,7 +2350,7 @@ var _drawMenuItemTextCandidateFunc = /* @__PURE__ */ function() {
2357
2350
  _setTextAttrs(text, textAttrs);
2358
2351
  }
2359
2352
  }
2360
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(byTspan, "byTspan");
2353
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(byTspan, "byTspan");
2361
2354
  function byFo(content, g, x, y, width, height, textAttrs, conf2) {
2362
2355
  const s = g.append("switch");
2363
2356
  const f = s.append("foreignObject").attr("x", x).attr("y", y).attr("width", width).attr("height", height);
@@ -2366,7 +2359,7 @@ var _drawMenuItemTextCandidateFunc = /* @__PURE__ */ function() {
2366
2359
  byTspan(content, s, x, y, width, height, textAttrs, conf2);
2367
2360
  _setTextAttrs(text, textAttrs);
2368
2361
  }
2369
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(byFo, "byFo");
2362
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(byFo, "byFo");
2370
2363
  function _setTextAttrs(toText, fromTextAttrsDict) {
2371
2364
  for (const key in fromTextAttrsDict) {
2372
2365
  if (fromTextAttrsDict.hasOwnProperty(key)) {
@@ -2374,7 +2367,7 @@ var _drawMenuItemTextCandidateFunc = /* @__PURE__ */ function() {
2374
2367
  }
2375
2368
  }
2376
2369
  }
2377
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(_setTextAttrs, "_setTextAttrs");
2370
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(_setTextAttrs, "_setTextAttrs");
2378
2371
  return function(conf2) {
2379
2372
  return conf2.textPlacement === "fo" ? byFo : conf2.textPlacement === "old" ? byText : byTspan;
2380
2373
  };
@@ -2416,44 +2409,44 @@ var bounds = {
2416
2409
  sequenceItems: [],
2417
2410
  activations: [],
2418
2411
  models: {
2419
- getHeight: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
2412
+ getHeight: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
2420
2413
  return Math.max.apply(
2421
2414
  null,
2422
2415
  this.actors.length === 0 ? [0] : this.actors.map((actor) => actor.height || 0)
2423
2416
  ) + (this.loops.length === 0 ? 0 : this.loops.map((it) => it.height || 0).reduce((acc, h) => acc + h)) + (this.messages.length === 0 ? 0 : this.messages.map((it) => it.height || 0).reduce((acc, h) => acc + h)) + (this.notes.length === 0 ? 0 : this.notes.map((it) => it.height || 0).reduce((acc, h) => acc + h));
2424
2417
  }, "getHeight"),
2425
- clear: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
2418
+ clear: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
2426
2419
  this.actors = [];
2427
2420
  this.boxes = [];
2428
2421
  this.loops = [];
2429
2422
  this.messages = [];
2430
2423
  this.notes = [];
2431
2424
  }, "clear"),
2432
- addBox: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(boxModel) {
2425
+ addBox: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(boxModel) {
2433
2426
  this.boxes.push(boxModel);
2434
2427
  }, "addBox"),
2435
- addActor: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(actorModel) {
2428
+ addActor: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(actorModel) {
2436
2429
  this.actors.push(actorModel);
2437
2430
  }, "addActor"),
2438
- addLoop: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(loopModel) {
2431
+ addLoop: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(loopModel) {
2439
2432
  this.loops.push(loopModel);
2440
2433
  }, "addLoop"),
2441
- addMessage: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(msgModel) {
2434
+ addMessage: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(msgModel) {
2442
2435
  this.messages.push(msgModel);
2443
2436
  }, "addMessage"),
2444
- addNote: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(noteModel) {
2437
+ addNote: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(noteModel) {
2445
2438
  this.notes.push(noteModel);
2446
2439
  }, "addNote"),
2447
- lastActor: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
2440
+ lastActor: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
2448
2441
  return this.actors[this.actors.length - 1];
2449
2442
  }, "lastActor"),
2450
- lastLoop: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
2443
+ lastLoop: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
2451
2444
  return this.loops[this.loops.length - 1];
2452
2445
  }, "lastLoop"),
2453
- lastMessage: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
2446
+ lastMessage: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
2454
2447
  return this.messages[this.messages.length - 1];
2455
2448
  }, "lastMessage"),
2456
- lastNote: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
2449
+ lastNote: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
2457
2450
  return this.notes[this.notes.length - 1];
2458
2451
  }, "lastNote"),
2459
2452
  actors: [],
@@ -2462,7 +2455,7 @@ var bounds = {
2462
2455
  messages: [],
2463
2456
  notes: []
2464
2457
  },
2465
- init: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
2458
+ init: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
2466
2459
  this.sequenceItems = [];
2467
2460
  this.activations = [];
2468
2461
  this.models.clear();
@@ -2473,20 +2466,20 @@ var bounds = {
2473
2466
  stopy: void 0
2474
2467
  };
2475
2468
  this.verticalPos = 0;
2476
- setConf((0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)());
2469
+ setConf((0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)());
2477
2470
  }, "init"),
2478
- updateVal: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(obj, key, val, fun) {
2471
+ updateVal: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(obj, key, val, fun) {
2479
2472
  if (obj[key] === void 0) {
2480
2473
  obj[key] = val;
2481
2474
  } else {
2482
2475
  obj[key] = fun(val, obj[key]);
2483
2476
  }
2484
2477
  }, "updateVal"),
2485
- updateBounds: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(startx, starty, stopx, stopy) {
2478
+ updateBounds: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(startx, starty, stopx, stopy) {
2486
2479
  const _self = this;
2487
2480
  let cnt = 0;
2488
2481
  function updateFn(type) {
2489
- return /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function updateItemBounds(item) {
2482
+ return /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function updateItemBounds(item) {
2490
2483
  cnt++;
2491
2484
  const n = _self.sequenceItems.length - cnt + 1;
2492
2485
  _self.updateVal(item, "starty", starty - n * conf.boxMargin, Math.min);
@@ -2501,22 +2494,22 @@ var bounds = {
2501
2494
  }
2502
2495
  }, "updateItemBounds");
2503
2496
  }
2504
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(updateFn, "updateFn");
2497
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(updateFn, "updateFn");
2505
2498
  this.sequenceItems.forEach(updateFn());
2506
2499
  this.activations.forEach(updateFn("activation"));
2507
2500
  }, "updateBounds"),
2508
- insert: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(startx, starty, stopx, stopy) {
2509
- const _startx = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMin(startx, stopx);
2510
- const _stopx = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(startx, stopx);
2511
- const _starty = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMin(starty, stopy);
2512
- const _stopy = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(starty, stopy);
2501
+ insert: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(startx, starty, stopx, stopy) {
2502
+ const _startx = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMin(startx, stopx);
2503
+ const _stopx = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(startx, stopx);
2504
+ const _starty = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMin(starty, stopy);
2505
+ const _stopy = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(starty, stopy);
2513
2506
  this.updateVal(bounds.data, "startx", _startx, Math.min);
2514
2507
  this.updateVal(bounds.data, "starty", _starty, Math.min);
2515
2508
  this.updateVal(bounds.data, "stopx", _stopx, Math.max);
2516
2509
  this.updateVal(bounds.data, "stopy", _stopy, Math.max);
2517
2510
  this.updateBounds(_startx, _starty, _stopx, _stopy);
2518
2511
  }, "insert"),
2519
- newActivation: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(message, diagram2, actors) {
2512
+ newActivation: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(message, diagram2, actors) {
2520
2513
  const actorRect = actors.get(message.from);
2521
2514
  const stackedSize = actorActivations(message.from).length || 0;
2522
2515
  const x = actorRect.x + actorRect.width / 2 + (stackedSize - 1) * conf.activationWidth / 2;
@@ -2529,13 +2522,13 @@ var bounds = {
2529
2522
  anchored: svgDraw_default.anchorElement(diagram2)
2530
2523
  });
2531
2524
  }, "newActivation"),
2532
- endActivation: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(message) {
2525
+ endActivation: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(message) {
2533
2526
  const lastActorActivationIdx = this.activations.map(function(activation) {
2534
2527
  return activation.actor;
2535
2528
  }).lastIndexOf(message.from);
2536
2529
  return this.activations.splice(lastActorActivationIdx, 1)[0];
2537
2530
  }, "endActivation"),
2538
- createLoop: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(title = { message: void 0, wrap: false, width: void 0 }, fill) {
2531
+ createLoop: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(title = { message: void 0, wrap: false, width: void 0 }, fill) {
2539
2532
  return {
2540
2533
  startx: void 0,
2541
2534
  starty: this.verticalPos,
@@ -2548,16 +2541,16 @@ var bounds = {
2548
2541
  fill
2549
2542
  };
2550
2543
  }, "createLoop"),
2551
- newLoop: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(title = { message: void 0, wrap: false, width: void 0 }, fill) {
2544
+ newLoop: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(title = { message: void 0, wrap: false, width: void 0 }, fill) {
2552
2545
  this.sequenceItems.push(this.createLoop(title, fill));
2553
2546
  }, "newLoop"),
2554
- endLoop: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
2547
+ endLoop: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
2555
2548
  return this.sequenceItems.pop();
2556
2549
  }, "endLoop"),
2557
- isLoopOverlap: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
2550
+ isLoopOverlap: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
2558
2551
  return this.sequenceItems.length ? this.sequenceItems[this.sequenceItems.length - 1].overlap : false;
2559
2552
  }, "isLoopOverlap"),
2560
- addSectionToLoop: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(message) {
2553
+ addSectionToLoop: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(message) {
2561
2554
  const loop = this.sequenceItems.pop();
2562
2555
  loop.sections = loop.sections || [];
2563
2556
  loop.sectionTitles = loop.sectionTitles || [];
@@ -2565,39 +2558,39 @@ var bounds = {
2565
2558
  loop.sectionTitles.push(message);
2566
2559
  this.sequenceItems.push(loop);
2567
2560
  }, "addSectionToLoop"),
2568
- saveVerticalPos: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
2561
+ saveVerticalPos: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
2569
2562
  if (this.isLoopOverlap()) {
2570
2563
  this.savedVerticalPos = this.verticalPos;
2571
2564
  }
2572
2565
  }, "saveVerticalPos"),
2573
- resetVerticalPos: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
2566
+ resetVerticalPos: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
2574
2567
  if (this.isLoopOverlap()) {
2575
2568
  this.verticalPos = this.savedVerticalPos;
2576
2569
  }
2577
2570
  }, "resetVerticalPos"),
2578
- bumpVerticalPos: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(bump) {
2571
+ bumpVerticalPos: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(bump) {
2579
2572
  this.verticalPos = this.verticalPos + bump;
2580
- this.data.stopy = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(this.data.stopy, this.verticalPos);
2573
+ this.data.stopy = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(this.data.stopy, this.verticalPos);
2581
2574
  }, "bumpVerticalPos"),
2582
- getVerticalPos: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
2575
+ getVerticalPos: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
2583
2576
  return this.verticalPos;
2584
2577
  }, "getVerticalPos"),
2585
- getBounds: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
2578
+ getBounds: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
2586
2579
  return { bounds: this.data, models: this.models };
2587
2580
  }, "getBounds")
2588
2581
  };
2589
- var drawNote = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(async function(elem, noteModel) {
2582
+ var drawNote = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(async function(elem, noteModel) {
2590
2583
  bounds.bumpVerticalPos(conf.boxMargin);
2591
2584
  noteModel.height = conf.boxMargin;
2592
2585
  noteModel.starty = bounds.getVerticalPos();
2593
- const rect = (0,_chunk_V35ELUW5_mjs__WEBPACK_IMPORTED_MODULE_0__/* .getNoteRect */ .PB)();
2586
+ const rect = (0,_chunk_D6G4REZN_mjs__WEBPACK_IMPORTED_MODULE_0__/* .getNoteRect */ .PB)();
2594
2587
  rect.x = noteModel.startx;
2595
2588
  rect.y = noteModel.starty;
2596
2589
  rect.width = noteModel.width || conf.width;
2597
2590
  rect.class = "note";
2598
2591
  const g = elem.append("g");
2599
2592
  const rectElem = svgDraw_default.drawRect(g, rect);
2600
- const textObj = (0,_chunk_V35ELUW5_mjs__WEBPACK_IMPORTED_MODULE_0__/* .getTextObj */ .HT)();
2593
+ const textObj = (0,_chunk_D6G4REZN_mjs__WEBPACK_IMPORTED_MODULE_0__/* .getTextObj */ .HT)();
2601
2594
  textObj.x = noteModel.startx;
2602
2595
  textObj.y = noteModel.starty;
2603
2596
  textObj.width = rect.width;
@@ -2610,7 +2603,7 @@ var drawNote = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3
2610
2603
  textObj.anchor = conf.noteAlign;
2611
2604
  textObj.textMargin = conf.noteMargin;
2612
2605
  textObj.valign = "center";
2613
- const textElem = (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .hasKatex */ .Wi)(textObj.text) ? await drawKatex(g, textObj) : drawText(g, textObj);
2606
+ const textElem = (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .hasKatex */ .Wi)(textObj.text) ? await drawKatex(g, textObj) : drawText(g, textObj);
2614
2607
  const textHeight = Math.round(
2615
2608
  textElem.map((te) => (te._groups || te)[0][0].getBBox().height).reduce((acc, curr) => acc + curr)
2616
2609
  );
@@ -2622,21 +2615,21 @@ var drawNote = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3
2622
2615
  bounds.insert(noteModel.startx, noteModel.starty, noteModel.stopx, noteModel.stopy);
2623
2616
  bounds.models.addNote(noteModel);
2624
2617
  }, "drawNote");
2625
- var messageFont = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)((cnf) => {
2618
+ var messageFont = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)((cnf) => {
2626
2619
  return {
2627
2620
  fontFamily: cnf.messageFontFamily,
2628
2621
  fontSize: cnf.messageFontSize,
2629
2622
  fontWeight: cnf.messageFontWeight
2630
2623
  };
2631
2624
  }, "messageFont");
2632
- var noteFont = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)((cnf) => {
2625
+ var noteFont = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)((cnf) => {
2633
2626
  return {
2634
2627
  fontFamily: cnf.noteFontFamily,
2635
2628
  fontSize: cnf.noteFontSize,
2636
2629
  fontWeight: cnf.noteFontWeight
2637
2630
  };
2638
2631
  }, "noteFont");
2639
- var actorFont = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)((cnf) => {
2632
+ var actorFont = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)((cnf) => {
2640
2633
  return {
2641
2634
  fontFamily: cnf.actorFontFamily,
2642
2635
  fontSize: cnf.actorFontSize,
@@ -2646,9 +2639,9 @@ var actorFont = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_
2646
2639
  async function boundMessage(_diagram, msgModel) {
2647
2640
  bounds.bumpVerticalPos(10);
2648
2641
  const { startx, stopx, message } = msgModel;
2649
- const lines = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.splitBreaks(message).length;
2650
- const isKatexMsg = (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .hasKatex */ .Wi)(message);
2651
- const textDims = isKatexMsg ? await (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .calculateMathMLDimensions */ .Dl)(message, (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)()) : _chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.calculateTextDimensions(message, messageFont(conf));
2642
+ const lines = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.splitBreaks(message).length;
2643
+ const isKatexMsg = (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .hasKatex */ .Wi)(message);
2644
+ const textDims = isKatexMsg ? await (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .calculateMathMLDimensions */ .Dl)(message, (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)()) : _chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.calculateTextDimensions(message, messageFont(conf));
2652
2645
  if (!isKatexMsg) {
2653
2646
  const lineHeight = textDims.height / lines;
2654
2647
  msgModel.height += lineHeight;
@@ -2664,7 +2657,7 @@ async function boundMessage(_diagram, msgModel) {
2664
2657
  lineStartY = bounds.getVerticalPos() + totalOffset;
2665
2658
  }
2666
2659
  totalOffset += 30;
2667
- const dx = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(textWidth / 2, conf.width / 2);
2660
+ const dx = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(textWidth / 2, conf.width / 2);
2668
2661
  bounds.insert(
2669
2662
  startx - dx,
2670
2663
  bounds.getVerticalPos() - 10 + totalOffset,
@@ -2682,11 +2675,11 @@ async function boundMessage(_diagram, msgModel) {
2682
2675
  bounds.insert(msgModel.fromBounds, msgModel.starty, msgModel.toBounds, msgModel.stopy);
2683
2676
  return lineStartY;
2684
2677
  }
2685
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(boundMessage, "boundMessage");
2686
- var drawMessage = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(async function(diagram2, msgModel, lineStartY, diagObj) {
2678
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(boundMessage, "boundMessage");
2679
+ var drawMessage = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(async function(diagram2, msgModel, lineStartY, diagObj) {
2687
2680
  const { startx, stopx, starty, message, type, sequenceIndex, sequenceVisible } = msgModel;
2688
- const textDims = _chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.calculateTextDimensions(message, messageFont(conf));
2689
- const textObj = (0,_chunk_V35ELUW5_mjs__WEBPACK_IMPORTED_MODULE_0__/* .getTextObj */ .HT)();
2681
+ const textDims = _chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.calculateTextDimensions(message, messageFont(conf));
2682
+ const textObj = (0,_chunk_D6G4REZN_mjs__WEBPACK_IMPORTED_MODULE_0__/* .getTextObj */ .HT)();
2690
2683
  textObj.x = startx;
2691
2684
  textObj.y = starty + 10;
2692
2685
  textObj.width = stopx - startx;
@@ -2700,7 +2693,7 @@ var drawMessage = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODUL
2700
2693
  textObj.valign = "center";
2701
2694
  textObj.textMargin = conf.wrapPadding;
2702
2695
  textObj.tspan = false;
2703
- if ((0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .hasKatex */ .Wi)(textObj.text)) {
2696
+ if ((0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .hasKatex */ .Wi)(textObj.text)) {
2704
2697
  await drawKatex(diagram2, textObj, { startx, stopx, starty: lineStartY });
2705
2698
  } else {
2706
2699
  drawText(diagram2, textObj);
@@ -2711,7 +2704,7 @@ var drawMessage = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODUL
2711
2704
  if (conf.rightAngles) {
2712
2705
  line = diagram2.append("path").attr(
2713
2706
  "d",
2714
- `M ${startx},${lineStartY} H ${startx + _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(conf.width / 2, textWidth / 2)} V ${lineStartY + 25} H ${startx}`
2707
+ `M ${startx},${lineStartY} H ${startx + _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(conf.width / 2, textWidth / 2)} V ${lineStartY + 25} H ${startx}`
2715
2708
  );
2716
2709
  } else {
2717
2710
  line = diagram2.append("path").attr(
@@ -2759,7 +2752,7 @@ var drawMessage = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODUL
2759
2752
  diagram2.append("text").attr("x", startx).attr("y", lineStartY + 4).attr("font-family", "sans-serif").attr("font-size", "12px").attr("text-anchor", "middle").attr("class", "sequenceNumber").text(sequenceIndex);
2760
2753
  }
2761
2754
  }, "drawMessage");
2762
- var addActorRenderingData = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(diagram2, actors, createdActors, actorKeys, verticalPos, messages, isFooter) {
2755
+ var addActorRenderingData = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(diagram2, actors, createdActors, actorKeys, verticalPos, messages, isFooter) {
2763
2756
  let prevWidth = 0;
2764
2757
  let prevMargin = 0;
2765
2758
  let prevBox = void 0;
@@ -2781,9 +2774,9 @@ var addActorRenderingData = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPO
2781
2774
  prevMargin += box.margin;
2782
2775
  }
2783
2776
  actor.width = actor.width || conf.width;
2784
- actor.height = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(actor.height || conf.height, conf.height);
2777
+ actor.height = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(actor.height || conf.height, conf.height);
2785
2778
  actor.margin = actor.margin || conf.actorMargin;
2786
- maxHeight = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(maxHeight, actor.height);
2779
+ maxHeight = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(maxHeight, actor.height);
2787
2780
  if (createdActors.get(actor.name)) {
2788
2781
  prevMargin += actor.width / 2;
2789
2782
  }
@@ -2803,7 +2796,7 @@ var addActorRenderingData = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPO
2803
2796
  }
2804
2797
  bounds.bumpVerticalPos(maxHeight);
2805
2798
  }, "addActorRenderingData");
2806
- var drawActors = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(async function(diagram2, actors, actorKeys, isFooter) {
2799
+ var drawActors = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(async function(diagram2, actors, actorKeys, isFooter) {
2807
2800
  if (!isFooter) {
2808
2801
  for (const actorKey of actorKeys) {
2809
2802
  const actor = actors.get(actorKey);
@@ -2818,12 +2811,12 @@ var drawActors = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE
2818
2811
  actor.stopy = bounds.getVerticalPos();
2819
2812
  }
2820
2813
  const height = await svgDraw_default.drawActor(diagram2, actor, conf, true);
2821
- maxHeight = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(maxHeight, height);
2814
+ maxHeight = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(maxHeight, height);
2822
2815
  }
2823
2816
  bounds.bumpVerticalPos(maxHeight + conf.boxMargin);
2824
2817
  }
2825
2818
  }, "drawActors");
2826
- var drawActorsPopup = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(diagram2, actors, actorKeys, doc) {
2819
+ var drawActorsPopup = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(diagram2, actors, actorKeys, doc) {
2827
2820
  let maxHeight = 0;
2828
2821
  let maxWidth = 0;
2829
2822
  for (const actorKey of actorKeys) {
@@ -2846,8 +2839,8 @@ var drawActorsPopup = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_M
2846
2839
  }
2847
2840
  return { maxHeight, maxWidth };
2848
2841
  }, "drawActorsPopup");
2849
- var setConf = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(cnf) {
2850
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .assignWithDepth_default */ .hH)(conf, cnf);
2842
+ var setConf = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(cnf) {
2843
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .assignWithDepth_default */ .hH)(conf, cnf);
2851
2844
  if (cnf.fontFamily) {
2852
2845
  conf.actorFontFamily = conf.noteFontFamily = conf.messageFontFamily = cnf.fontFamily;
2853
2846
  }
@@ -2858,23 +2851,23 @@ var setConf = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3_
2858
2851
  conf.actorFontWeight = conf.noteFontWeight = conf.messageFontWeight = cnf.fontWeight;
2859
2852
  }
2860
2853
  }, "setConf");
2861
- var actorActivations = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(actor) {
2854
+ var actorActivations = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(actor) {
2862
2855
  return bounds.activations.filter(function(activation) {
2863
2856
  return activation.actor === actor;
2864
2857
  });
2865
2858
  }, "actorActivations");
2866
- var activationBounds = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(actor, actors) {
2859
+ var activationBounds = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(actor, actors) {
2867
2860
  const actorObj = actors.get(actor);
2868
2861
  const activations = actorActivations(actor);
2869
2862
  const left = activations.reduce(
2870
2863
  function(acc, activation) {
2871
- return _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMin(acc, activation.startx);
2864
+ return _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMin(acc, activation.startx);
2872
2865
  },
2873
2866
  actorObj.x + actorObj.width / 2 - 1
2874
2867
  );
2875
2868
  const right = activations.reduce(
2876
2869
  function(acc, activation) {
2877
- return _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(acc, activation.stopx);
2870
+ return _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(acc, activation.stopx);
2878
2871
  },
2879
2872
  actorObj.x + actorObj.width / 2 + 1
2880
2873
  );
@@ -2886,18 +2879,18 @@ function adjustLoopHeightForWrap(loopWidths, msg, preMargin, postMargin, addLoop
2886
2879
  if (msg.id && msg.message && loopWidths[msg.id]) {
2887
2880
  const loopWidth = loopWidths[msg.id].width;
2888
2881
  const textConf = messageFont(conf);
2889
- msg.message = _chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.wrapLabel(`[${msg.message}]`, loopWidth - 2 * conf.wrapPadding, textConf);
2882
+ msg.message = _chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.wrapLabel(`[${msg.message}]`, loopWidth - 2 * conf.wrapPadding, textConf);
2890
2883
  msg.width = loopWidth;
2891
2884
  msg.wrap = true;
2892
- const textDims = _chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.calculateTextDimensions(msg.message, textConf);
2893
- const totalOffset = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(textDims.height, conf.labelBoxHeight);
2885
+ const textDims = _chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.calculateTextDimensions(msg.message, textConf);
2886
+ const totalOffset = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(textDims.height, conf.labelBoxHeight);
2894
2887
  heightAdjust = postMargin + totalOffset;
2895
- _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.debug(`${totalOffset} - ${msg.message}`);
2888
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.debug(`${totalOffset} - ${msg.message}`);
2896
2889
  }
2897
2890
  addLoopFn(msg);
2898
2891
  bounds.bumpVerticalPos(heightAdjust);
2899
2892
  }
2900
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(adjustLoopHeightForWrap, "adjustLoopHeightForWrap");
2893
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(adjustLoopHeightForWrap, "adjustLoopHeightForWrap");
2901
2894
  function adjustCreatedDestroyedData(msg, msgModel, lineStartY, index, actors, createdActors, destroyedActors) {
2902
2895
  function receiverAdjustment(actor, adjustment) {
2903
2896
  if (actor.x < actors.get(msg.from).x) {
@@ -2918,7 +2911,7 @@ function adjustCreatedDestroyedData(msg, msgModel, lineStartY, index, actors, cr
2918
2911
  msgModel.stopx = msgModel.stopx - adjustment;
2919
2912
  }
2920
2913
  }
2921
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(receiverAdjustment, "receiverAdjustment");
2914
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(receiverAdjustment, "receiverAdjustment");
2922
2915
  function senderAdjustment(actor, adjustment) {
2923
2916
  if (actor.x < actors.get(msg.to).x) {
2924
2917
  bounds.insert(
@@ -2938,7 +2931,7 @@ function adjustCreatedDestroyedData(msg, msgModel, lineStartY, index, actors, cr
2938
2931
  msgModel.startx = msgModel.startx - adjustment;
2939
2932
  }
2940
2933
  }
2941
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(senderAdjustment, "senderAdjustment");
2934
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(senderAdjustment, "senderAdjustment");
2942
2935
  if (createdActors.get(msg.to) == index) {
2943
2936
  const actor = actors.get(msg.to);
2944
2937
  const adjustment = actor.type == "actor" ? ACTOR_TYPE_WIDTH / 2 + 3 : actor.width / 2 + 3;
@@ -2963,9 +2956,9 @@ function adjustCreatedDestroyedData(msg, msgModel, lineStartY, index, actors, cr
2963
2956
  bounds.bumpVerticalPos(actor.height / 2);
2964
2957
  }
2965
2958
  }
2966
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(adjustCreatedDestroyedData, "adjustCreatedDestroyedData");
2967
- var draw = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(async function(_text, id, _version, diagObj) {
2968
- const { securityLevel, sequence } = (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)();
2959
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(adjustCreatedDestroyedData, "adjustCreatedDestroyedData");
2960
+ var draw = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(async function(_text, id, _version, diagObj) {
2961
+ const { securityLevel, sequence } = (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)();
2969
2962
  conf = sequence;
2970
2963
  let sandboxElement;
2971
2964
  if (securityLevel === "sandbox") {
@@ -2974,7 +2967,7 @@ var draw = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/*
2974
2967
  const root = securityLevel === "sandbox" ? (0,d3__WEBPACK_IMPORTED_MODULE_4__/* .select */ .Ltv)(sandboxElement.nodes()[0].contentDocument.body) : (0,d3__WEBPACK_IMPORTED_MODULE_4__/* .select */ .Ltv)("body");
2975
2968
  const doc = securityLevel === "sandbox" ? sandboxElement.nodes()[0].contentDocument : document;
2976
2969
  bounds.init();
2977
- _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.debug(diagObj.db);
2970
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.debug(diagObj.db);
2978
2971
  const diagram2 = securityLevel === "sandbox" ? root.select(`[id="${id}"]`) : (0,d3__WEBPACK_IMPORTED_MODULE_4__/* .select */ .Ltv)(`[id="${id}"]`);
2979
2972
  const actors = diagObj.db.getActors();
2980
2973
  const createdActors = diagObj.db.getCreatedActors();
@@ -3025,7 +3018,7 @@ var draw = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/*
3025
3018
  );
3026
3019
  bounds.insert(activationData.startx, verticalPos - 10, activationData.stopx, verticalPos);
3027
3020
  }
3028
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(activeEnd, "activeEnd");
3021
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(activeEnd, "activeEnd");
3029
3022
  let sequenceIndex = 1;
3030
3023
  let sequenceIndexStep = 1;
3031
3024
  const messagesToDraw = [];
@@ -3207,7 +3200,7 @@ var draw = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/*
3207
3200
  messagesToDraw.push({ messageModel: msgModel, lineStartY });
3208
3201
  bounds.models.addMessage(msgModel);
3209
3202
  } catch (e) {
3210
- _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.error("error while drawing message", e);
3203
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.error("error while drawing message", e);
3211
3204
  }
3212
3205
  }
3213
3206
  if ([
@@ -3226,8 +3219,8 @@ var draw = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/*
3226
3219
  }
3227
3220
  index++;
3228
3221
  }
3229
- _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.debug("createdActors", createdActors);
3230
- _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.debug("destroyedActors", destroyedActors);
3222
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.debug("createdActors", createdActors);
3223
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.debug("destroyedActors", destroyedActors);
3231
3224
  await drawActors(diagram2, actors, actorKeys, false);
3232
3225
  for (const e of messagesToDraw) {
3233
3226
  await drawMessage(diagram2, e.messageModel, e.lineStartY, diagObj);
@@ -3280,13 +3273,13 @@ var draw = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/*
3280
3273
  if (title) {
3281
3274
  diagram2.append("text").text(title).attr("x", (box.stopx - box.startx) / 2 - 2 * conf.diagramMarginX).attr("y", -25);
3282
3275
  }
3283
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .configureSvgSize */ .a$)(diagram2, height, width, conf.useMaxWidth);
3276
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .configureSvgSize */ .a$)(diagram2, height, width, conf.useMaxWidth);
3284
3277
  const extraVertForTitle = title ? 40 : 0;
3285
3278
  diagram2.attr(
3286
3279
  "viewBox",
3287
3280
  box.startx - conf.diagramMarginX + " -" + (conf.diagramMarginY + extraVertForTitle) + " " + width + " " + (height + extraVertForTitle)
3288
3281
  );
3289
- _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.debug(`models:`, bounds.models);
3282
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.debug(`models:`, bounds.models);
3290
3283
  }, "draw");
3291
3284
  async function getMaxMessageWidthPerActor(actors, messages, diagObj) {
3292
3285
  const maxMessageWidthPerActor = {};
@@ -3302,47 +3295,47 @@ async function getMaxMessageWidthPerActor(actors, messages, diagObj) {
3302
3295
  const isNote = msg.placement !== void 0;
3303
3296
  const isMessage = !isNote;
3304
3297
  const textFont = isNote ? noteFont(conf) : messageFont(conf);
3305
- const wrappedMessage = msg.wrap ? _chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.wrapLabel(msg.message, conf.width - 2 * conf.wrapPadding, textFont) : msg.message;
3306
- const messageDimensions = (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .hasKatex */ .Wi)(wrappedMessage) ? await (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .calculateMathMLDimensions */ .Dl)(msg.message, (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)()) : _chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.calculateTextDimensions(wrappedMessage, textFont);
3298
+ const wrappedMessage = msg.wrap ? _chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.wrapLabel(msg.message, conf.width - 2 * conf.wrapPadding, textFont) : msg.message;
3299
+ const messageDimensions = (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .hasKatex */ .Wi)(wrappedMessage) ? await (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .calculateMathMLDimensions */ .Dl)(msg.message, (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)()) : _chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.calculateTextDimensions(wrappedMessage, textFont);
3307
3300
  const messageWidth = messageDimensions.width + 2 * conf.wrapPadding;
3308
3301
  if (isMessage && msg.from === actor.nextActor) {
3309
- maxMessageWidthPerActor[msg.to] = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(
3302
+ maxMessageWidthPerActor[msg.to] = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(
3310
3303
  maxMessageWidthPerActor[msg.to] || 0,
3311
3304
  messageWidth
3312
3305
  );
3313
3306
  } else if (isMessage && msg.from === actor.prevActor) {
3314
- maxMessageWidthPerActor[msg.from] = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(
3307
+ maxMessageWidthPerActor[msg.from] = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(
3315
3308
  maxMessageWidthPerActor[msg.from] || 0,
3316
3309
  messageWidth
3317
3310
  );
3318
3311
  } else if (isMessage && msg.from === msg.to) {
3319
- maxMessageWidthPerActor[msg.from] = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(
3312
+ maxMessageWidthPerActor[msg.from] = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(
3320
3313
  maxMessageWidthPerActor[msg.from] || 0,
3321
3314
  messageWidth / 2
3322
3315
  );
3323
- maxMessageWidthPerActor[msg.to] = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(
3316
+ maxMessageWidthPerActor[msg.to] = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(
3324
3317
  maxMessageWidthPerActor[msg.to] || 0,
3325
3318
  messageWidth / 2
3326
3319
  );
3327
3320
  } else if (msg.placement === diagObj.db.PLACEMENT.RIGHTOF) {
3328
- maxMessageWidthPerActor[msg.from] = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(
3321
+ maxMessageWidthPerActor[msg.from] = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(
3329
3322
  maxMessageWidthPerActor[msg.from] || 0,
3330
3323
  messageWidth
3331
3324
  );
3332
3325
  } else if (msg.placement === diagObj.db.PLACEMENT.LEFTOF) {
3333
- maxMessageWidthPerActor[actor.prevActor] = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(
3326
+ maxMessageWidthPerActor[actor.prevActor] = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(
3334
3327
  maxMessageWidthPerActor[actor.prevActor] || 0,
3335
3328
  messageWidth
3336
3329
  );
3337
3330
  } else if (msg.placement === diagObj.db.PLACEMENT.OVER) {
3338
3331
  if (actor.prevActor) {
3339
- maxMessageWidthPerActor[actor.prevActor] = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(
3332
+ maxMessageWidthPerActor[actor.prevActor] = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(
3340
3333
  maxMessageWidthPerActor[actor.prevActor] || 0,
3341
3334
  messageWidth / 2
3342
3335
  );
3343
3336
  }
3344
3337
  if (actor.nextActor) {
3345
- maxMessageWidthPerActor[msg.from] = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(
3338
+ maxMessageWidthPerActor[msg.from] = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(
3346
3339
  maxMessageWidthPerActor[msg.from] || 0,
3347
3340
  messageWidth / 2
3348
3341
  );
@@ -3350,15 +3343,15 @@ async function getMaxMessageWidthPerActor(actors, messages, diagObj) {
3350
3343
  }
3351
3344
  }
3352
3345
  }
3353
- _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.debug("maxMessageWidthPerActor:", maxMessageWidthPerActor);
3346
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.debug("maxMessageWidthPerActor:", maxMessageWidthPerActor);
3354
3347
  return maxMessageWidthPerActor;
3355
3348
  }
3356
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(getMaxMessageWidthPerActor, "getMaxMessageWidthPerActor");
3357
- var getRequiredPopupWidth = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(actor) {
3349
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(getMaxMessageWidthPerActor, "getMaxMessageWidthPerActor");
3350
+ var getRequiredPopupWidth = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(actor) {
3358
3351
  let requiredPopupWidth = 0;
3359
3352
  const textFont = actorFont(conf);
3360
3353
  for (const key in actor.links) {
3361
- const labelDimensions = _chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.calculateTextDimensions(key, textFont);
3354
+ const labelDimensions = _chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.calculateTextDimensions(key, textFont);
3362
3355
  const labelWidth = labelDimensions.width + 2 * conf.wrapPadding + 2 * conf.boxMargin;
3363
3356
  if (requiredPopupWidth < labelWidth) {
3364
3357
  requiredPopupWidth = labelWidth;
@@ -3371,16 +3364,16 @@ async function calculateActorMargins(actors, actorToMessageWidth, boxes) {
3371
3364
  for (const prop of actors.keys()) {
3372
3365
  const actor = actors.get(prop);
3373
3366
  if (actor.wrap) {
3374
- actor.description = _chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.wrapLabel(
3367
+ actor.description = _chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.wrapLabel(
3375
3368
  actor.description,
3376
3369
  conf.width - 2 * conf.wrapPadding,
3377
3370
  actorFont(conf)
3378
3371
  );
3379
3372
  }
3380
- const actDims = (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .hasKatex */ .Wi)(actor.description) ? await (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .calculateMathMLDimensions */ .Dl)(actor.description, (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)()) : _chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.calculateTextDimensions(actor.description, actorFont(conf));
3381
- actor.width = actor.wrap ? conf.width : _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(conf.width, actDims.width + 2 * conf.wrapPadding);
3382
- actor.height = actor.wrap ? _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(actDims.height, conf.height) : conf.height;
3383
- maxHeight = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(maxHeight, actor.height);
3373
+ const actDims = (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .hasKatex */ .Wi)(actor.description) ? await (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .calculateMathMLDimensions */ .Dl)(actor.description, (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)()) : _chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.calculateTextDimensions(actor.description, actorFont(conf));
3374
+ actor.width = actor.wrap ? conf.width : _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(conf.width, actDims.width + 2 * conf.wrapPadding);
3375
+ actor.height = actor.wrap ? _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(actDims.height, conf.height) : conf.height;
3376
+ maxHeight = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(maxHeight, actor.height);
3384
3377
  }
3385
3378
  for (const actorKey in actorToMessageWidth) {
3386
3379
  const actor = actors.get(actorKey);
@@ -3391,12 +3384,12 @@ async function calculateActorMargins(actors, actorToMessageWidth, boxes) {
3391
3384
  if (!nextActor) {
3392
3385
  const messageWidth2 = actorToMessageWidth[actorKey];
3393
3386
  const actorWidth2 = messageWidth2 + conf.actorMargin - actor.width / 2;
3394
- actor.margin = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(actorWidth2, conf.actorMargin);
3387
+ actor.margin = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(actorWidth2, conf.actorMargin);
3395
3388
  continue;
3396
3389
  }
3397
3390
  const messageWidth = actorToMessageWidth[actorKey];
3398
3391
  const actorWidth = messageWidth + conf.actorMargin - actor.width / 2 - nextActor.width / 2;
3399
- actor.margin = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(actorWidth, conf.actorMargin);
3392
+ actor.margin = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(actorWidth, conf.actorMargin);
3400
3393
  }
3401
3394
  let maxBoxHeight = 0;
3402
3395
  boxes.forEach((box) => {
@@ -3406,11 +3399,11 @@ async function calculateActorMargins(actors, actorToMessageWidth, boxes) {
3406
3399
  }, 0);
3407
3400
  totalWidth -= 2 * conf.boxTextMargin;
3408
3401
  if (box.wrap) {
3409
- box.name = _chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.wrapLabel(box.name, totalWidth - 2 * conf.wrapPadding, textFont);
3402
+ box.name = _chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.wrapLabel(box.name, totalWidth - 2 * conf.wrapPadding, textFont);
3410
3403
  }
3411
- const boxMsgDimensions = _chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.calculateTextDimensions(box.name, textFont);
3412
- maxBoxHeight = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(boxMsgDimensions.height, maxBoxHeight);
3413
- const minWidth = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(totalWidth, boxMsgDimensions.width + 2 * conf.wrapPadding);
3404
+ const boxMsgDimensions = _chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.calculateTextDimensions(box.name, textFont);
3405
+ maxBoxHeight = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(boxMsgDimensions.height, maxBoxHeight);
3406
+ const minWidth = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(totalWidth, boxMsgDimensions.width + 2 * conf.wrapPadding);
3414
3407
  box.margin = conf.boxTextMargin;
3415
3408
  if (totalWidth < minWidth) {
3416
3409
  const missing = (minWidth - totalWidth) / 2;
@@ -3418,21 +3411,21 @@ async function calculateActorMargins(actors, actorToMessageWidth, boxes) {
3418
3411
  }
3419
3412
  });
3420
3413
  boxes.forEach((box) => box.textMaxHeight = maxBoxHeight);
3421
- return _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(maxHeight, conf.height);
3414
+ return _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(maxHeight, conf.height);
3422
3415
  }
3423
- (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(calculateActorMargins, "calculateActorMargins");
3424
- var buildNoteModel = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(async function(msg, actors, diagObj) {
3416
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(calculateActorMargins, "calculateActorMargins");
3417
+ var buildNoteModel = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(async function(msg, actors, diagObj) {
3425
3418
  const fromActor = actors.get(msg.from);
3426
3419
  const toActor = actors.get(msg.to);
3427
3420
  const startx = fromActor.x;
3428
3421
  const stopx = toActor.x;
3429
3422
  const shouldWrap = msg.wrap && msg.message;
3430
- let textDimensions = (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .hasKatex */ .Wi)(msg.message) ? await (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .calculateMathMLDimensions */ .Dl)(msg.message, (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)()) : _chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.calculateTextDimensions(
3431
- shouldWrap ? _chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.wrapLabel(msg.message, conf.width, noteFont(conf)) : msg.message,
3423
+ let textDimensions = (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .hasKatex */ .Wi)(msg.message) ? await (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .calculateMathMLDimensions */ .Dl)(msg.message, (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)()) : _chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.calculateTextDimensions(
3424
+ shouldWrap ? _chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.wrapLabel(msg.message, conf.width, noteFont(conf)) : msg.message,
3432
3425
  noteFont(conf)
3433
3426
  );
3434
3427
  const noteModel = {
3435
- width: shouldWrap ? conf.width : _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(conf.width, textDimensions.width + 2 * conf.noteMargin),
3428
+ width: shouldWrap ? conf.width : _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(conf.width, textDimensions.width + 2 * conf.noteMargin),
3436
3429
  height: 0,
3437
3430
  startx: fromActor.x,
3438
3431
  stopx: 0,
@@ -3441,41 +3434,41 @@ var buildNoteModel = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MO
3441
3434
  message: msg.message
3442
3435
  };
3443
3436
  if (msg.placement === diagObj.db.PLACEMENT.RIGHTOF) {
3444
- noteModel.width = shouldWrap ? _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(conf.width, textDimensions.width) : _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(
3437
+ noteModel.width = shouldWrap ? _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(conf.width, textDimensions.width) : _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(
3445
3438
  fromActor.width / 2 + toActor.width / 2,
3446
3439
  textDimensions.width + 2 * conf.noteMargin
3447
3440
  );
3448
3441
  noteModel.startx = startx + (fromActor.width + conf.actorMargin) / 2;
3449
3442
  } else if (msg.placement === diagObj.db.PLACEMENT.LEFTOF) {
3450
- noteModel.width = shouldWrap ? _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(conf.width, textDimensions.width + 2 * conf.noteMargin) : _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(
3443
+ noteModel.width = shouldWrap ? _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(conf.width, textDimensions.width + 2 * conf.noteMargin) : _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(
3451
3444
  fromActor.width / 2 + toActor.width / 2,
3452
3445
  textDimensions.width + 2 * conf.noteMargin
3453
3446
  );
3454
3447
  noteModel.startx = startx - noteModel.width + (fromActor.width - conf.actorMargin) / 2;
3455
3448
  } else if (msg.to === msg.from) {
3456
- textDimensions = _chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.calculateTextDimensions(
3457
- shouldWrap ? _chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.wrapLabel(msg.message, _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(conf.width, fromActor.width), noteFont(conf)) : msg.message,
3449
+ textDimensions = _chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.calculateTextDimensions(
3450
+ shouldWrap ? _chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.wrapLabel(msg.message, _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(conf.width, fromActor.width), noteFont(conf)) : msg.message,
3458
3451
  noteFont(conf)
3459
3452
  );
3460
- noteModel.width = shouldWrap ? _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(conf.width, fromActor.width) : _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(fromActor.width, conf.width, textDimensions.width + 2 * conf.noteMargin);
3453
+ noteModel.width = shouldWrap ? _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(conf.width, fromActor.width) : _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(fromActor.width, conf.width, textDimensions.width + 2 * conf.noteMargin);
3461
3454
  noteModel.startx = startx + (fromActor.width - noteModel.width) / 2;
3462
3455
  } else {
3463
3456
  noteModel.width = Math.abs(startx + fromActor.width / 2 - (stopx + toActor.width / 2)) + conf.actorMargin;
3464
3457
  noteModel.startx = startx < stopx ? startx + fromActor.width / 2 - conf.actorMargin / 2 : stopx + toActor.width / 2 - conf.actorMargin / 2;
3465
3458
  }
3466
3459
  if (shouldWrap) {
3467
- noteModel.message = _chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.wrapLabel(
3460
+ noteModel.message = _chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.wrapLabel(
3468
3461
  msg.message,
3469
3462
  noteModel.width - 2 * conf.wrapPadding,
3470
3463
  noteFont(conf)
3471
3464
  );
3472
3465
  }
3473
- _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.debug(
3466
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.debug(
3474
3467
  `NM:[${noteModel.startx},${noteModel.stopx},${noteModel.starty},${noteModel.stopy}:${noteModel.width},${noteModel.height}=${msg.message}]`
3475
3468
  );
3476
3469
  return noteModel;
3477
3470
  }, "buildNoteModel");
3478
- var buildMessageModel = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(msg, actors, diagObj) {
3471
+ var buildMessageModel = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(msg, actors, diagObj) {
3479
3472
  if (![
3480
3473
  diagObj.db.LINETYPE.SOLID_OPEN,
3481
3474
  diagObj.db.LINETYPE.DOTTED_OPEN,
@@ -3496,7 +3489,7 @@ var buildMessageModel = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED
3496
3489
  let startx = isArrowToRight ? fromRight : fromLeft;
3497
3490
  let stopx = isArrowToRight ? toLeft : toRight;
3498
3491
  const isArrowToActivation = Math.abs(toLeft - toRight) > 2;
3499
- const adjustValue = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)((value) => {
3492
+ const adjustValue = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)((value) => {
3500
3493
  return isArrowToRight ? -value : value;
3501
3494
  }, "adjustValue");
3502
3495
  if (msg.from === msg.to) {
@@ -3517,15 +3510,15 @@ var buildMessageModel = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED
3517
3510
  const allBounds = [fromLeft, fromRight, toLeft, toRight];
3518
3511
  const boundedWidth = Math.abs(startx - stopx);
3519
3512
  if (msg.wrap && msg.message) {
3520
- msg.message = _chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.wrapLabel(
3513
+ msg.message = _chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.wrapLabel(
3521
3514
  msg.message,
3522
- _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(boundedWidth + 2 * conf.wrapPadding, conf.width),
3515
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(boundedWidth + 2 * conf.wrapPadding, conf.width),
3523
3516
  messageFont(conf)
3524
3517
  );
3525
3518
  }
3526
- const msgDims = _chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.calculateTextDimensions(msg.message, messageFont(conf));
3519
+ const msgDims = _chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.calculateTextDimensions(msg.message, messageFont(conf));
3527
3520
  return {
3528
- width: _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(
3521
+ width: _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(
3529
3522
  msg.wrap ? 0 : msgDims.width + 2 * conf.wrapPadding,
3530
3523
  boundedWidth + 2 * conf.wrapPadding,
3531
3524
  conf.width
@@ -3542,12 +3535,11 @@ var buildMessageModel = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED
3542
3535
  toBounds: Math.max.apply(null, allBounds)
3543
3536
  };
3544
3537
  }, "buildMessageModel");
3545
- var calculateLoopBounds = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(async function(messages, actors, _maxWidthPerActor, diagObj) {
3538
+ var calculateLoopBounds = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(async function(messages, actors, _maxWidthPerActor, diagObj) {
3546
3539
  const loops = {};
3547
3540
  const stack = [];
3548
3541
  let current, noteModel, msgModel;
3549
3542
  for (const msg of messages) {
3550
- msg.id = _chunk_TLUHKHBO_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.random({ length: 10 });
3551
3543
  switch (msg.type) {
3552
3544
  case diagObj.db.LINETYPE.LOOP_START:
3553
3545
  case diagObj.db.LINETYPE.ALT_START:
@@ -3610,9 +3602,9 @@ var calculateLoopBounds = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORT
3610
3602
  msg.noteModel = noteModel;
3611
3603
  stack.forEach((stk) => {
3612
3604
  current = stk;
3613
- current.from = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMin(current.from, noteModel.startx);
3614
- current.to = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(current.to, noteModel.startx + noteModel.width);
3615
- current.width = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(current.width, Math.abs(current.from - current.to)) - conf.labelBoxWidth;
3605
+ current.from = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMin(current.from, noteModel.startx);
3606
+ current.to = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(current.to, noteModel.startx + noteModel.width);
3607
+ current.width = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(current.width, Math.abs(current.from - current.to)) - conf.labelBoxWidth;
3616
3608
  });
3617
3609
  } else {
3618
3610
  msgModel = buildMessageModel(msg, actors, diagObj);
@@ -3623,28 +3615,28 @@ var calculateLoopBounds = /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORT
3623
3615
  if (msgModel.startx === msgModel.stopx) {
3624
3616
  const from = actors.get(msg.from);
3625
3617
  const to = actors.get(msg.to);
3626
- current.from = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMin(
3618
+ current.from = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMin(
3627
3619
  from.x - msgModel.width / 2,
3628
3620
  from.x - from.width / 2,
3629
3621
  current.from
3630
3622
  );
3631
- current.to = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(
3623
+ current.to = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(
3632
3624
  to.x + msgModel.width / 2,
3633
3625
  to.x + from.width / 2,
3634
3626
  current.to
3635
3627
  );
3636
- current.width = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(current.width, Math.abs(current.to - current.from)) - conf.labelBoxWidth;
3628
+ current.width = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(current.width, Math.abs(current.to - current.from)) - conf.labelBoxWidth;
3637
3629
  } else {
3638
- current.from = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMin(msgModel.startx, current.from);
3639
- current.to = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(msgModel.stopx, current.to);
3640
- current.width = _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(current.width, msgModel.width) - conf.labelBoxWidth;
3630
+ current.from = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMin(msgModel.startx, current.from);
3631
+ current.to = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(msgModel.stopx, current.to);
3632
+ current.width = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.getMax(current.width, msgModel.width) - conf.labelBoxWidth;
3641
3633
  }
3642
3634
  });
3643
3635
  }
3644
3636
  }
3645
3637
  }
3646
3638
  bounds.activations = [];
3647
- _chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.debug("Loop type widths:", loops);
3639
+ _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.debug("Loop type widths:", loops);
3648
3640
  return loops;
3649
3641
  }, "calculateLoopBounds");
3650
3642
  var sequenceRenderer_default = {
@@ -3658,11 +3650,19 @@ var sequenceRenderer_default = {
3658
3650
  // src/diagrams/sequence/sequenceDiagram.ts
3659
3651
  var diagram = {
3660
3652
  parser: sequenceDiagram_default,
3661
- db: sequenceDb_default,
3653
+ get db() {
3654
+ return new SequenceDB();
3655
+ },
3662
3656
  renderer: sequenceRenderer_default,
3663
3657
  styles: styles_default,
3664
- init: /* @__PURE__ */ (0,_chunk_S24QXQKS_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(({ wrap }) => {
3665
- sequenceDb_default.setWrap(wrap);
3658
+ init: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)((cnf) => {
3659
+ if (!cnf.sequence) {
3660
+ cnf.sequence = {};
3661
+ }
3662
+ if (cnf.wrap) {
3663
+ cnf.sequence.wrap = cnf.wrap;
3664
+ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .setConfig2 */ .XV)({ sequence: { wrap: cnf.wrap } });
3665
+ }
3666
3666
  }, "init")
3667
3667
  };
3668
3668
 
@@ -3672,4 +3672,4 @@ var diagram = {
3672
3672
 
3673
3673
  };
3674
3674
  ;
3675
- //# sourceMappingURL=687.node.js.map
3675
+ //# sourceMappingURL=38.node.js.map