lowcoder-comps 0.0.26 → 0.0.28

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 (56) hide show
  1. package/000297fb.js +5 -0
  2. package/{92fb34a2.js → 0205ce17.js} +27 -27
  3. package/{3f63d12d.js → 1269154d.js} +32711 -34763
  4. package/{6fbc4c21.js → 1f088099.js} +18 -18
  5. package/{2b3b3386.js → 2ae47d58.js} +548 -548
  6. package/2ff7471d.js +9 -0
  7. package/{44cd1a62.js → 42b75267.js} +11 -11
  8. package/{ed8c376c.js → 45a7c119.js} +286 -293
  9. package/4bc5ef7f.js +881 -0
  10. package/{90d3581f.js → 4c822e6b.js} +133 -132
  11. package/5bb002c8.js +64 -0
  12. package/{82c8e71b.js → 6517e88b.js} +12 -10
  13. package/65d3daa9.js +391 -0
  14. package/{87b4699c.js → 6909d829.js} +1 -1
  15. package/{b28dda80.js → 711961f8.js} +13 -12
  16. package/77491f00.js +86 -0
  17. package/7805c934.js +455 -0
  18. package/7dc7ce37.js +19104 -0
  19. package/{c3caea77.js → 83feec48.js} +45 -43
  20. package/{c66d9114.js → 8c8fb30b.js} +25 -24
  21. package/{3220cb2e.js → 945d7302.js} +2 -1
  22. package/{4891fa68.js → 9a9b397d.js} +6 -5
  23. package/{3ebbaeae.js → a2d32dbb.js} +18 -18
  24. package/{2c0287e1.js → a39d3869.js} +2 -2
  25. package/a40faea7.js +11624 -0
  26. package/b7bda09a.js +237 -0
  27. package/{5f138044.js → b99f5b2a.js} +158 -147
  28. package/bcc07d29.js +1536 -0
  29. package/c2bf7d82.js +819 -0
  30. package/c4bd6ed7.js +1269 -0
  31. package/c4c5f13b.js +8 -0
  32. package/d2bae1f4.js +2284 -0
  33. package/d4b9d281.js +1089 -0
  34. package/{11b36d97.js → d4ba48b2.js} +148 -145
  35. package/dd0ec77a.js +48428 -0
  36. package/{c889073f.js → e0bacb89.js} +1 -1
  37. package/{b70abaaf.js → e437d53e.js} +1 -1
  38. package/e95fa522.js +1102 -0
  39. package/ed46c11a.js +1276 -0
  40. package/f2b8cbc8.js +25 -0
  41. package/index.js +2 -2
  42. package/package.json +1 -1
  43. package/33035c6f.js +0 -86
  44. package/3f82489c.js +0 -2396
  45. package/454ca826.js +0 -46724
  46. package/4938ecf8.js +0 -22
  47. package/558b96ef.js +0 -18798
  48. package/596b7f71.js +0 -365
  49. package/637a168a.js +0 -235
  50. package/765a2a38.js +0 -1055
  51. package/8ed940ee.js +0 -786
  52. package/9c1ceb2f.js +0 -448
  53. package/aad4f2fa.js +0 -1235
  54. package/b053e17f.js +0 -1000
  55. package/bed24264.js +0 -2192
  56. package/d3478475.js +0 -64
package/bed24264.js DELETED
@@ -1,2192 +0,0 @@
1
- import { g as ke, D as Le, B as Ie, c as dt, s as ae, b as Ae, a as Ne, E as Se, l as U, d as Mt, j as w, e as Me, h as St, i as Re, z as O, m as re, X as oe, a4 as De, a5 as Ve } from "./3f63d12d.js";
2
- import { d as Ce, a as Oe, g as Rt, b as Be, c as Ye, e as Xt } from "./d3478475.js";
3
- var qt = function() {
4
- var t = function(ht, m, _, k) {
5
- for (_ = _ || {}, k = ht.length; k--; _[ht[k]] = m)
6
- ;
7
- return _;
8
- }, e = [1, 2], o = [1, 3], i = [1, 4], s = [2, 4], n = [1, 9], c = [1, 11], h = [1, 13], p = [1, 14], a = [1, 16], x = [1, 17], E = [1, 18], u = [1, 24], g = [1, 25], b = [1, 26], P = [1, 27], I = [1, 28], R = [1, 29], N = [1, 30], F = [1, 31], S = [1, 32], tt = [1, 33], W = [1, 34], K = [1, 35], Z = [1, 36], q = [1, 37], Y = [1, 38], C = [1, 39], X = [1, 41], z = [1, 42], G = [1, 43], Q = [1, 44], j = [1, 45], y = [1, 46], v = [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], L = [4, 5, 16, 50, 52, 53], pt = [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], et = [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], A = [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], $t = [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], lt = [68, 69, 70], nt = [1, 120], Ct = {
9
- trace: function() {
10
- },
11
- yy: {},
12
- 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, DOTTED_ARROW: 74, SOLID_CROSS: 75, DOTTED_CROSS: 76, SOLID_POINT: 77, DOTTED_POINT: 78, TXT: 79, $accept: 0, $end: 1 },
13
- 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: "DOTTED_ARROW", 75: "SOLID_CROSS", 76: "DOTTED_CROSS", 77: "SOLID_POINT", 78: "DOTTED_POINT", 79: "TXT" },
14
- 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], [56, 1]],
15
- performAction: function(m, _, k, T, M, l, vt) {
16
- var d = l.length - 1;
17
- switch (M) {
18
- case 3:
19
- return T.apply(l[d]), l[d];
20
- case 4:
21
- case 9:
22
- this.$ = [];
23
- break;
24
- case 5:
25
- case 10:
26
- l[d - 1].push(l[d]), this.$ = l[d - 1];
27
- break;
28
- case 6:
29
- case 7:
30
- case 11:
31
- case 12:
32
- this.$ = l[d];
33
- break;
34
- case 8:
35
- case 13:
36
- this.$ = [];
37
- break;
38
- case 15:
39
- l[d].type = "createParticipant", this.$ = l[d];
40
- break;
41
- case 16:
42
- l[d - 1].unshift({ type: "boxStart", boxData: T.parseBoxData(l[d - 2]) }), l[d - 1].push({ type: "boxEnd", boxText: l[d - 2] }), this.$ = l[d - 1];
43
- break;
44
- case 18:
45
- this.$ = { type: "sequenceIndex", sequenceIndex: Number(l[d - 2]), sequenceIndexStep: Number(l[d - 1]), sequenceVisible: !0, signalType: T.LINETYPE.AUTONUMBER };
46
- break;
47
- case 19:
48
- this.$ = { type: "sequenceIndex", sequenceIndex: Number(l[d - 1]), sequenceIndexStep: 1, sequenceVisible: !0, signalType: T.LINETYPE.AUTONUMBER };
49
- break;
50
- case 20:
51
- this.$ = { type: "sequenceIndex", sequenceVisible: !1, signalType: T.LINETYPE.AUTONUMBER };
52
- break;
53
- case 21:
54
- this.$ = { type: "sequenceIndex", sequenceVisible: !0, signalType: T.LINETYPE.AUTONUMBER };
55
- break;
56
- case 22:
57
- this.$ = { type: "activeStart", signalType: T.LINETYPE.ACTIVE_START, actor: l[d - 1] };
58
- break;
59
- case 23:
60
- this.$ = { type: "activeEnd", signalType: T.LINETYPE.ACTIVE_END, actor: l[d - 1] };
61
- break;
62
- case 29:
63
- T.setDiagramTitle(l[d].substring(6)), this.$ = l[d].substring(6);
64
- break;
65
- case 30:
66
- T.setDiagramTitle(l[d].substring(7)), this.$ = l[d].substring(7);
67
- break;
68
- case 31:
69
- this.$ = l[d].trim(), T.setAccTitle(this.$);
70
- break;
71
- case 32:
72
- case 33:
73
- this.$ = l[d].trim(), T.setAccDescription(this.$);
74
- break;
75
- case 34:
76
- l[d - 1].unshift({ type: "loopStart", loopText: T.parseMessage(l[d - 2]), signalType: T.LINETYPE.LOOP_START }), l[d - 1].push({ type: "loopEnd", loopText: l[d - 2], signalType: T.LINETYPE.LOOP_END }), this.$ = l[d - 1];
77
- break;
78
- case 35:
79
- l[d - 1].unshift({ type: "rectStart", color: T.parseMessage(l[d - 2]), signalType: T.LINETYPE.RECT_START }), l[d - 1].push({ type: "rectEnd", color: T.parseMessage(l[d - 2]), signalType: T.LINETYPE.RECT_END }), this.$ = l[d - 1];
80
- break;
81
- case 36:
82
- l[d - 1].unshift({ type: "optStart", optText: T.parseMessage(l[d - 2]), signalType: T.LINETYPE.OPT_START }), l[d - 1].push({ type: "optEnd", optText: T.parseMessage(l[d - 2]), signalType: T.LINETYPE.OPT_END }), this.$ = l[d - 1];
83
- break;
84
- case 37:
85
- l[d - 1].unshift({ type: "altStart", altText: T.parseMessage(l[d - 2]), signalType: T.LINETYPE.ALT_START }), l[d - 1].push({ type: "altEnd", signalType: T.LINETYPE.ALT_END }), this.$ = l[d - 1];
86
- break;
87
- case 38:
88
- l[d - 1].unshift({ type: "parStart", parText: T.parseMessage(l[d - 2]), signalType: T.LINETYPE.PAR_START }), l[d - 1].push({ type: "parEnd", signalType: T.LINETYPE.PAR_END }), this.$ = l[d - 1];
89
- break;
90
- case 39:
91
- l[d - 1].unshift({ type: "parStart", parText: T.parseMessage(l[d - 2]), signalType: T.LINETYPE.PAR_OVER_START }), l[d - 1].push({ type: "parEnd", signalType: T.LINETYPE.PAR_END }), this.$ = l[d - 1];
92
- break;
93
- case 40:
94
- l[d - 1].unshift({ type: "criticalStart", criticalText: T.parseMessage(l[d - 2]), signalType: T.LINETYPE.CRITICAL_START }), l[d - 1].push({ type: "criticalEnd", signalType: T.LINETYPE.CRITICAL_END }), this.$ = l[d - 1];
95
- break;
96
- case 41:
97
- l[d - 1].unshift({ type: "breakStart", breakText: T.parseMessage(l[d - 2]), signalType: T.LINETYPE.BREAK_START }), l[d - 1].push({ type: "breakEnd", optText: T.parseMessage(l[d - 2]), signalType: T.LINETYPE.BREAK_END }), this.$ = l[d - 1];
98
- break;
99
- case 43:
100
- this.$ = l[d - 3].concat([{ type: "option", optionText: T.parseMessage(l[d - 1]), signalType: T.LINETYPE.CRITICAL_OPTION }, l[d]]);
101
- break;
102
- case 45:
103
- this.$ = l[d - 3].concat([{ type: "and", parText: T.parseMessage(l[d - 1]), signalType: T.LINETYPE.PAR_AND }, l[d]]);
104
- break;
105
- case 47:
106
- this.$ = l[d - 3].concat([{ type: "else", altText: T.parseMessage(l[d - 1]), signalType: T.LINETYPE.ALT_ELSE }, l[d]]);
107
- break;
108
- case 48:
109
- l[d - 3].draw = "participant", l[d - 3].type = "addParticipant", l[d - 3].description = T.parseMessage(l[d - 1]), this.$ = l[d - 3];
110
- break;
111
- case 49:
112
- l[d - 1].draw = "participant", l[d - 1].type = "addParticipant", this.$ = l[d - 1];
113
- break;
114
- case 50:
115
- l[d - 3].draw = "actor", l[d - 3].type = "addParticipant", l[d - 3].description = T.parseMessage(l[d - 1]), this.$ = l[d - 3];
116
- break;
117
- case 51:
118
- l[d - 1].draw = "actor", l[d - 1].type = "addParticipant", this.$ = l[d - 1];
119
- break;
120
- case 52:
121
- l[d - 1].type = "destroyParticipant", this.$ = l[d - 1];
122
- break;
123
- case 53:
124
- this.$ = [l[d - 1], { type: "addNote", placement: l[d - 2], actor: l[d - 1].actor, text: l[d] }];
125
- break;
126
- case 54:
127
- l[d - 2] = [].concat(l[d - 1], l[d - 1]).slice(0, 2), l[d - 2][0] = l[d - 2][0].actor, l[d - 2][1] = l[d - 2][1].actor, this.$ = [l[d - 1], { type: "addNote", placement: T.PLACEMENT.OVER, actor: l[d - 2].slice(0, 2), text: l[d] }];
128
- break;
129
- case 55:
130
- this.$ = [l[d - 1], { type: "addLinks", actor: l[d - 1].actor, text: l[d] }];
131
- break;
132
- case 56:
133
- this.$ = [l[d - 1], { type: "addALink", actor: l[d - 1].actor, text: l[d] }];
134
- break;
135
- case 57:
136
- this.$ = [l[d - 1], { type: "addProperties", actor: l[d - 1].actor, text: l[d] }];
137
- break;
138
- case 58:
139
- this.$ = [l[d - 1], { type: "addDetails", actor: l[d - 1].actor, text: l[d] }];
140
- break;
141
- case 61:
142
- this.$ = [l[d - 2], l[d]];
143
- break;
144
- case 62:
145
- this.$ = l[d];
146
- break;
147
- case 63:
148
- this.$ = T.PLACEMENT.LEFTOF;
149
- break;
150
- case 64:
151
- this.$ = T.PLACEMENT.RIGHTOF;
152
- break;
153
- case 65:
154
- this.$ = [
155
- l[d - 4],
156
- l[d - 1],
157
- { type: "addMessage", from: l[d - 4].actor, to: l[d - 1].actor, signalType: l[d - 3], msg: l[d], activate: !0 },
158
- { type: "activeStart", signalType: T.LINETYPE.ACTIVE_START, actor: l[d - 1] }
159
- ];
160
- break;
161
- case 66:
162
- this.$ = [
163
- l[d - 4],
164
- l[d - 1],
165
- { type: "addMessage", from: l[d - 4].actor, to: l[d - 1].actor, signalType: l[d - 3], msg: l[d] },
166
- { type: "activeEnd", signalType: T.LINETYPE.ACTIVE_END, actor: l[d - 4] }
167
- ];
168
- break;
169
- case 67:
170
- this.$ = [l[d - 3], l[d - 1], { type: "addMessage", from: l[d - 3].actor, to: l[d - 1].actor, signalType: l[d - 2], msg: l[d] }];
171
- break;
172
- case 68:
173
- this.$ = { type: "addParticipant", actor: l[d] };
174
- break;
175
- case 69:
176
- this.$ = T.LINETYPE.SOLID_OPEN;
177
- break;
178
- case 70:
179
- this.$ = T.LINETYPE.DOTTED_OPEN;
180
- break;
181
- case 71:
182
- this.$ = T.LINETYPE.SOLID;
183
- break;
184
- case 72:
185
- this.$ = T.LINETYPE.DOTTED;
186
- break;
187
- case 73:
188
- this.$ = T.LINETYPE.SOLID_CROSS;
189
- break;
190
- case 74:
191
- this.$ = T.LINETYPE.DOTTED_CROSS;
192
- break;
193
- case 75:
194
- this.$ = T.LINETYPE.SOLID_POINT;
195
- break;
196
- case 76:
197
- this.$ = T.LINETYPE.DOTTED_POINT;
198
- break;
199
- case 77:
200
- this.$ = T.parseMessage(l[d].trim().substring(1));
201
- break;
202
- }
203
- },
204
- table: [{ 3: 1, 4: e, 5: o, 6: i }, { 1: [3] }, { 3: 5, 4: e, 5: o, 6: i }, { 3: 6, 4: e, 5: o, 6: i }, t([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], s, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: n, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: p, 17: 15, 18: a, 21: x, 22: 40, 23: E, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: u, 30: g, 31: b, 33: P, 35: I, 36: R, 37: N, 38: F, 39: S, 41: tt, 43: W, 44: K, 46: Z, 50: q, 52: Y, 53: C, 54: X, 59: z, 60: G, 61: Q, 62: j, 70: y }, t(v, [2, 5]), { 9: 47, 12: 12, 13: h, 14: p, 17: 15, 18: a, 21: x, 22: 40, 23: E, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: u, 30: g, 31: b, 33: P, 35: I, 36: R, 37: N, 38: F, 39: S, 41: tt, 43: W, 44: K, 46: Z, 50: q, 52: Y, 53: C, 54: X, 59: z, 60: G, 61: Q, 62: j, 70: y }, t(v, [2, 7]), t(v, [2, 8]), t(v, [2, 14]), { 12: 48, 50: q, 52: Y, 53: C }, { 15: [1, 49] }, { 5: [1, 50] }, { 5: [1, 53], 19: [1, 51], 20: [1, 52] }, { 22: 54, 70: y }, { 22: 55, 70: y }, { 5: [1, 56] }, { 5: [1, 57] }, { 5: [1, 58] }, { 5: [1, 59] }, { 5: [1, 60] }, t(v, [2, 29]), t(v, [2, 30]), { 32: [1, 61] }, { 34: [1, 62] }, t(v, [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: y }, { 22: 72, 70: y }, { 22: 73, 70: y }, { 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] }, { 55: 83, 57: [1, 84], 65: [1, 85], 66: [1, 86] }, { 22: 87, 70: y }, { 22: 88, 70: y }, { 22: 89, 70: y }, { 22: 90, 70: y }, t([5, 51, 64, 71, 72, 73, 74, 75, 76, 77, 78, 79], [2, 68]), t(v, [2, 6]), t(v, [2, 15]), t(L, [2, 9], { 10: 91 }), t(v, [2, 17]), { 5: [1, 93], 19: [1, 92] }, { 5: [1, 94] }, t(v, [2, 21]), { 5: [1, 95] }, { 5: [1, 96] }, t(v, [2, 24]), t(v, [2, 25]), t(v, [2, 26]), t(v, [2, 27]), t(v, [2, 28]), t(v, [2, 31]), t(v, [2, 32]), t(pt, s, { 7: 97 }), t(pt, s, { 7: 98 }), t(pt, s, { 7: 99 }), t(et, s, { 40: 100, 7: 101 }), t(A, s, { 42: 102, 7: 103 }), t(A, s, { 7: 103, 42: 104 }), t($t, s, { 45: 105, 7: 106 }), t(pt, s, { 7: 107 }), { 5: [1, 109], 51: [1, 108] }, { 5: [1, 111], 51: [1, 110] }, { 5: [1, 112] }, { 22: 115, 68: [1, 113], 69: [1, 114], 70: y }, t(lt, [2, 69]), t(lt, [2, 70]), t(lt, [2, 71]), t(lt, [2, 72]), t(lt, [2, 73]), t(lt, [2, 74]), t(lt, [2, 75]), t(lt, [2, 76]), { 22: 116, 70: y }, { 22: 118, 58: 117, 70: y }, { 70: [2, 63] }, { 70: [2, 64] }, { 56: 119, 79: nt }, { 56: 121, 79: nt }, { 56: 122, 79: nt }, { 56: 123, 79: nt }, { 4: [1, 126], 5: [1, 128], 11: 125, 12: 127, 16: [1, 124], 50: q, 52: Y, 53: C }, { 5: [1, 129] }, t(v, [2, 19]), t(v, [2, 20]), t(v, [2, 22]), t(v, [2, 23]), { 4: n, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: p, 16: [1, 130], 17: 15, 18: a, 21: x, 22: 40, 23: E, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: u, 30: g, 31: b, 33: P, 35: I, 36: R, 37: N, 38: F, 39: S, 41: tt, 43: W, 44: K, 46: Z, 50: q, 52: Y, 53: C, 54: X, 59: z, 60: G, 61: Q, 62: j, 70: y }, { 4: n, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: p, 16: [1, 131], 17: 15, 18: a, 21: x, 22: 40, 23: E, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: u, 30: g, 31: b, 33: P, 35: I, 36: R, 37: N, 38: F, 39: S, 41: tt, 43: W, 44: K, 46: Z, 50: q, 52: Y, 53: C, 54: X, 59: z, 60: G, 61: Q, 62: j, 70: y }, { 4: n, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: p, 16: [1, 132], 17: 15, 18: a, 21: x, 22: 40, 23: E, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: u, 30: g, 31: b, 33: P, 35: I, 36: R, 37: N, 38: F, 39: S, 41: tt, 43: W, 44: K, 46: Z, 50: q, 52: Y, 53: C, 54: X, 59: z, 60: G, 61: Q, 62: j, 70: y }, { 16: [1, 133] }, { 4: n, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: p, 16: [2, 46], 17: 15, 18: a, 21: x, 22: 40, 23: E, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: u, 30: g, 31: b, 33: P, 35: I, 36: R, 37: N, 38: F, 39: S, 41: tt, 43: W, 44: K, 46: Z, 49: [1, 134], 50: q, 52: Y, 53: C, 54: X, 59: z, 60: G, 61: Q, 62: j, 70: y }, { 16: [1, 135] }, { 4: n, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: p, 16: [2, 44], 17: 15, 18: a, 21: x, 22: 40, 23: E, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: u, 30: g, 31: b, 33: P, 35: I, 36: R, 37: N, 38: F, 39: S, 41: tt, 43: W, 44: K, 46: Z, 48: [1, 136], 50: q, 52: Y, 53: C, 54: X, 59: z, 60: G, 61: Q, 62: j, 70: y }, { 16: [1, 137] }, { 16: [1, 138] }, { 4: n, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: p, 16: [2, 42], 17: 15, 18: a, 21: x, 22: 40, 23: E, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: u, 30: g, 31: b, 33: P, 35: I, 36: R, 37: N, 38: F, 39: S, 41: tt, 43: W, 44: K, 46: Z, 47: [1, 139], 50: q, 52: Y, 53: C, 54: X, 59: z, 60: G, 61: Q, 62: j, 70: y }, { 4: n, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: p, 16: [1, 140], 17: 15, 18: a, 21: x, 22: 40, 23: E, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: u, 30: g, 31: b, 33: P, 35: I, 36: R, 37: N, 38: F, 39: S, 41: tt, 43: W, 44: K, 46: Z, 50: q, 52: Y, 53: C, 54: X, 59: z, 60: G, 61: Q, 62: j, 70: y }, { 15: [1, 141] }, t(v, [2, 49]), { 15: [1, 142] }, t(v, [2, 51]), t(v, [2, 52]), { 22: 143, 70: y }, { 22: 144, 70: y }, { 56: 145, 79: nt }, { 56: 146, 79: nt }, { 56: 147, 79: nt }, { 64: [1, 148], 79: [2, 62] }, { 5: [2, 55] }, { 5: [2, 77] }, { 5: [2, 56] }, { 5: [2, 57] }, { 5: [2, 58] }, t(v, [2, 16]), t(L, [2, 10]), { 12: 149, 50: q, 52: Y, 53: C }, t(L, [2, 12]), t(L, [2, 13]), t(v, [2, 18]), t(v, [2, 34]), t(v, [2, 35]), t(v, [2, 36]), t(v, [2, 37]), { 15: [1, 150] }, t(v, [2, 38]), { 15: [1, 151] }, t(v, [2, 39]), t(v, [2, 40]), { 15: [1, 152] }, t(v, [2, 41]), { 5: [1, 153] }, { 5: [1, 154] }, { 56: 155, 79: nt }, { 56: 156, 79: nt }, { 5: [2, 67] }, { 5: [2, 53] }, { 5: [2, 54] }, { 22: 157, 70: y }, t(L, [2, 11]), t(et, s, { 7: 101, 40: 158 }), t(A, s, { 7: 103, 42: 159 }), t($t, s, { 7: 106, 45: 160 }), t(v, [2, 48]), t(v, [2, 50]), { 5: [2, 65] }, { 5: [2, 66] }, { 79: [2, 61] }, { 16: [2, 47] }, { 16: [2, 45] }, { 16: [2, 43] }],
205
- defaultActions: { 5: [2, 1], 6: [2, 2], 85: [2, 63], 86: [2, 64], 119: [2, 55], 120: [2, 77], 121: [2, 56], 122: [2, 57], 123: [2, 58], 145: [2, 67], 146: [2, 53], 147: [2, 54], 155: [2, 65], 156: [2, 66], 157: [2, 61], 158: [2, 47], 159: [2, 45], 160: [2, 43] },
206
- parseError: function(m, _) {
207
- if (_.recoverable)
208
- this.trace(m);
209
- else {
210
- var k = new Error(m);
211
- throw k.hash = _, k;
212
- }
213
- },
214
- parse: function(m) {
215
- var _ = this, k = [0], T = [], M = [null], l = [], vt = this.table, d = "", It = 0, te = 0, we = 2, ee = 1, ve = l.slice.call(arguments, 1), B = Object.create(this.lexer), ut = { yy: {} };
216
- for (var Bt in this.yy)
217
- Object.prototype.hasOwnProperty.call(this.yy, Bt) && (ut.yy[Bt] = this.yy[Bt]);
218
- B.setInput(m, ut.yy), ut.yy.lexer = B, ut.yy.parser = this, typeof B.yylloc == "undefined" && (B.yylloc = {});
219
- var Yt = B.yylloc;
220
- l.push(Yt);
221
- var _e = B.options && B.options.ranges;
222
- typeof ut.yy.parseError == "function" ? this.parseError = ut.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
223
- function Pe() {
224
- var rt;
225
- return rt = T.pop() || B.lex() || ee, typeof rt != "number" && (rt instanceof Array && (T = rt, rt = T.pop()), rt = _.symbols_[rt] || rt), rt;
226
- }
227
- for (var H, ft, $, Ft, yt = {}, At, at, ie, Nt; ; ) {
228
- if (ft = k[k.length - 1], this.defaultActions[ft] ? $ = this.defaultActions[ft] : ((H === null || typeof H == "undefined") && (H = Pe()), $ = vt[ft] && vt[ft][H]), typeof $ == "undefined" || !$.length || !$[0]) {
229
- var Wt = "";
230
- Nt = [];
231
- for (At in vt[ft])
232
- this.terminals_[At] && At > we && Nt.push("'" + this.terminals_[At] + "'");
233
- B.showPosition ? Wt = "Parse error on line " + (It + 1) + `:
234
- ` + B.showPosition() + `
235
- Expecting ` + Nt.join(", ") + ", got '" + (this.terminals_[H] || H) + "'" : Wt = "Parse error on line " + (It + 1) + ": Unexpected " + (H == ee ? "end of input" : "'" + (this.terminals_[H] || H) + "'"), this.parseError(Wt, {
236
- text: B.match,
237
- token: this.terminals_[H] || H,
238
- line: B.yylineno,
239
- loc: Yt,
240
- expected: Nt
241
- });
242
- }
243
- if ($[0] instanceof Array && $.length > 1)
244
- throw new Error("Parse Error: multiple actions possible at state: " + ft + ", token: " + H);
245
- switch ($[0]) {
246
- case 1:
247
- k.push(H), M.push(B.yytext), l.push(B.yylloc), k.push($[1]), H = null, te = B.yyleng, d = B.yytext, It = B.yylineno, Yt = B.yylloc;
248
- break;
249
- case 2:
250
- if (at = this.productions_[$[1]][1], yt.$ = M[M.length - at], yt._$ = {
251
- first_line: l[l.length - (at || 1)].first_line,
252
- last_line: l[l.length - 1].last_line,
253
- first_column: l[l.length - (at || 1)].first_column,
254
- last_column: l[l.length - 1].last_column
255
- }, _e && (yt._$.range = [
256
- l[l.length - (at || 1)].range[0],
257
- l[l.length - 1].range[1]
258
- ]), Ft = this.performAction.apply(yt, [
259
- d,
260
- te,
261
- It,
262
- ut.yy,
263
- $[1],
264
- M,
265
- l
266
- ].concat(ve)), typeof Ft != "undefined")
267
- return Ft;
268
- at && (k = k.slice(0, -1 * at * 2), M = M.slice(0, -1 * at), l = l.slice(0, -1 * at)), k.push(this.productions_[$[1]][0]), M.push(yt.$), l.push(yt._$), ie = vt[k[k.length - 2]][k[k.length - 1]], k.push(ie);
269
- break;
270
- case 3:
271
- return !0;
272
- }
273
- }
274
- return !0;
275
- }
276
- }, me = function() {
277
- var ht = {
278
- EOF: 1,
279
- parseError: function(_, k) {
280
- if (this.yy.parser)
281
- this.yy.parser.parseError(_, k);
282
- else
283
- throw new Error(_);
284
- },
285
- // resets the lexer, sets new input
286
- setInput: function(m, _) {
287
- return this.yy = _ || this.yy || {}, this._input = m, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
288
- first_line: 1,
289
- first_column: 0,
290
- last_line: 1,
291
- last_column: 0
292
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
293
- },
294
- // consumes and returns one char from the input
295
- input: function() {
296
- var m = this._input[0];
297
- this.yytext += m, this.yyleng++, this.offset++, this.match += m, this.matched += m;
298
- var _ = m.match(/(?:\r\n?|\n).*/g);
299
- return _ ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), m;
300
- },
301
- // unshifts one char (or a string) into the input
302
- unput: function(m) {
303
- var _ = m.length, k = m.split(/(?:\r\n?|\n)/g);
304
- this._input = m + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - _), this.offset -= _;
305
- var T = this.match.split(/(?:\r\n?|\n)/g);
306
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), k.length - 1 && (this.yylineno -= k.length - 1);
307
- var M = this.yylloc.range;
308
- return this.yylloc = {
309
- first_line: this.yylloc.first_line,
310
- last_line: this.yylineno + 1,
311
- first_column: this.yylloc.first_column,
312
- last_column: k ? (k.length === T.length ? this.yylloc.first_column : 0) + T[T.length - k.length].length - k[0].length : this.yylloc.first_column - _
313
- }, this.options.ranges && (this.yylloc.range = [M[0], M[0] + this.yyleng - _]), this.yyleng = this.yytext.length, this;
314
- },
315
- // When called from action, caches matched text and appends it on next action
316
- more: function() {
317
- return this._more = !0, this;
318
- },
319
- // 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.
320
- reject: function() {
321
- if (this.options.backtrack_lexer)
322
- this._backtrack = !0;
323
- else
324
- return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
325
- ` + this.showPosition(), {
326
- text: "",
327
- token: null,
328
- line: this.yylineno
329
- });
330
- return this;
331
- },
332
- // retain first n characters of the match
333
- less: function(m) {
334
- this.unput(this.match.slice(m));
335
- },
336
- // displays already matched input, i.e. for error messages
337
- pastInput: function() {
338
- var m = this.matched.substr(0, this.matched.length - this.match.length);
339
- return (m.length > 20 ? "..." : "") + m.substr(-20).replace(/\n/g, "");
340
- },
341
- // displays upcoming input, i.e. for error messages
342
- upcomingInput: function() {
343
- var m = this.match;
344
- return m.length < 20 && (m += this._input.substr(0, 20 - m.length)), (m.substr(0, 20) + (m.length > 20 ? "..." : "")).replace(/\n/g, "");
345
- },
346
- // displays the character position where the lexing error occurred, i.e. for error messages
347
- showPosition: function() {
348
- var m = this.pastInput(), _ = new Array(m.length + 1).join("-");
349
- return m + this.upcomingInput() + `
350
- ` + _ + "^";
351
- },
352
- // test the lexed token: return FALSE when not a match, otherwise return token
353
- test_match: function(m, _) {
354
- var k, T, M;
355
- if (this.options.backtrack_lexer && (M = {
356
- yylineno: this.yylineno,
357
- yylloc: {
358
- first_line: this.yylloc.first_line,
359
- last_line: this.last_line,
360
- first_column: this.yylloc.first_column,
361
- last_column: this.yylloc.last_column
362
- },
363
- yytext: this.yytext,
364
- match: this.match,
365
- matches: this.matches,
366
- matched: this.matched,
367
- yyleng: this.yyleng,
368
- offset: this.offset,
369
- _more: this._more,
370
- _input: this._input,
371
- yy: this.yy,
372
- conditionStack: this.conditionStack.slice(0),
373
- done: this.done
374
- }, this.options.ranges && (M.yylloc.range = this.yylloc.range.slice(0))), T = m[0].match(/(?:\r\n?|\n).*/g), T && (this.yylineno += T.length), this.yylloc = {
375
- first_line: this.yylloc.last_line,
376
- last_line: this.yylineno + 1,
377
- first_column: this.yylloc.last_column,
378
- last_column: T ? T[T.length - 1].length - T[T.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + m[0].length
379
- }, this.yytext += m[0], this.match += m[0], this.matches = m, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(m[0].length), this.matched += m[0], k = this.performAction.call(this, this.yy, this, _, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), k)
380
- return k;
381
- if (this._backtrack) {
382
- for (var l in M)
383
- this[l] = M[l];
384
- return !1;
385
- }
386
- return !1;
387
- },
388
- // return next match in input
389
- next: function() {
390
- if (this.done)
391
- return this.EOF;
392
- this._input || (this.done = !0);
393
- var m, _, k, T;
394
- this._more || (this.yytext = "", this.match = "");
395
- for (var M = this._currentRules(), l = 0; l < M.length; l++)
396
- if (k = this._input.match(this.rules[M[l]]), k && (!_ || k[0].length > _[0].length)) {
397
- if (_ = k, T = l, this.options.backtrack_lexer) {
398
- if (m = this.test_match(k, M[l]), m !== !1)
399
- return m;
400
- if (this._backtrack) {
401
- _ = !1;
402
- continue;
403
- } else
404
- return !1;
405
- } else if (!this.options.flex)
406
- break;
407
- }
408
- return _ ? (m = this.test_match(_, M[T]), m !== !1 ? m : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
409
- ` + this.showPosition(), {
410
- text: "",
411
- token: null,
412
- line: this.yylineno
413
- });
414
- },
415
- // return next match that has a token
416
- lex: function() {
417
- var _ = this.next();
418
- return _ || this.lex();
419
- },
420
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
421
- begin: function(_) {
422
- this.conditionStack.push(_);
423
- },
424
- // pop the previously active lexer condition state off the condition stack
425
- popState: function() {
426
- var _ = this.conditionStack.length - 1;
427
- return _ > 0 ? this.conditionStack.pop() : this.conditionStack[0];
428
- },
429
- // produce the lexer rule set which is active for the currently active lexer condition state
430
- _currentRules: function() {
431
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
432
- },
433
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
434
- topState: function(_) {
435
- return _ = this.conditionStack.length - 1 - Math.abs(_ || 0), _ >= 0 ? this.conditionStack[_] : "INITIAL";
436
- },
437
- // alias for begin(condition)
438
- pushState: function(_) {
439
- this.begin(_);
440
- },
441
- // return the number of states currently on the stack
442
- stateStackSize: function() {
443
- return this.conditionStack.length;
444
- },
445
- options: { "case-insensitive": !0 },
446
- performAction: function(_, k, T, M) {
447
- switch (T) {
448
- case 0:
449
- return 5;
450
- case 1:
451
- break;
452
- case 2:
453
- break;
454
- case 3:
455
- break;
456
- case 4:
457
- break;
458
- case 5:
459
- break;
460
- case 6:
461
- return 19;
462
- case 7:
463
- return this.begin("LINE"), 14;
464
- case 8:
465
- return this.begin("ID"), 50;
466
- case 9:
467
- return this.begin("ID"), 52;
468
- case 10:
469
- return 13;
470
- case 11:
471
- return this.begin("ID"), 53;
472
- case 12:
473
- return k.yytext = k.yytext.trim(), this.begin("ALIAS"), 70;
474
- case 13:
475
- return this.popState(), this.popState(), this.begin("LINE"), 51;
476
- case 14:
477
- return this.popState(), this.popState(), 5;
478
- case 15:
479
- return this.begin("LINE"), 36;
480
- case 16:
481
- return this.begin("LINE"), 37;
482
- case 17:
483
- return this.begin("LINE"), 38;
484
- case 18:
485
- return this.begin("LINE"), 39;
486
- case 19:
487
- return this.begin("LINE"), 49;
488
- case 20:
489
- return this.begin("LINE"), 41;
490
- case 21:
491
- return this.begin("LINE"), 43;
492
- case 22:
493
- return this.begin("LINE"), 48;
494
- case 23:
495
- return this.begin("LINE"), 44;
496
- case 24:
497
- return this.begin("LINE"), 47;
498
- case 25:
499
- return this.begin("LINE"), 46;
500
- case 26:
501
- return this.popState(), 15;
502
- case 27:
503
- return 16;
504
- case 28:
505
- return 65;
506
- case 29:
507
- return 66;
508
- case 30:
509
- return 59;
510
- case 31:
511
- return 60;
512
- case 32:
513
- return 61;
514
- case 33:
515
- return 62;
516
- case 34:
517
- return 57;
518
- case 35:
519
- return 54;
520
- case 36:
521
- return this.begin("ID"), 21;
522
- case 37:
523
- return this.begin("ID"), 23;
524
- case 38:
525
- return 29;
526
- case 39:
527
- return 30;
528
- case 40:
529
- return this.begin("acc_title"), 31;
530
- case 41:
531
- return this.popState(), "acc_title_value";
532
- case 42:
533
- return this.begin("acc_descr"), 33;
534
- case 43:
535
- return this.popState(), "acc_descr_value";
536
- case 44:
537
- this.begin("acc_descr_multiline");
538
- break;
539
- case 45:
540
- this.popState();
541
- break;
542
- case 46:
543
- return "acc_descr_multiline_value";
544
- case 47:
545
- return 6;
546
- case 48:
547
- return 18;
548
- case 49:
549
- return 20;
550
- case 50:
551
- return 64;
552
- case 51:
553
- return 5;
554
- case 52:
555
- return k.yytext = k.yytext.trim(), 70;
556
- case 53:
557
- return 73;
558
- case 54:
559
- return 74;
560
- case 55:
561
- return 71;
562
- case 56:
563
- return 72;
564
- case 57:
565
- return 75;
566
- case 58:
567
- return 76;
568
- case 59:
569
- return 77;
570
- case 60:
571
- return 78;
572
- case 61:
573
- return 79;
574
- case 62:
575
- return 68;
576
- case 63:
577
- return 69;
578
- case 64:
579
- return 5;
580
- case 65:
581
- return "INVALID";
582
- }
583
- },
584
- rules: [/^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:((?!\n)\s)+)/i, /^(?:#[^\n]*)/i, /^(?:%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[0-9]+(?=[ \n]+))/i, /^(?:box\b)/i, /^(?:participant\b)/i, /^(?:actor\b)/i, /^(?:create\b)/i, /^(?:destroy\b)/i, /^(?:[^\->:\n,;]+?([\-]*[^\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i, /^(?:as\b)/i, /^(?:(?:))/i, /^(?:loop\b)/i, /^(?:rect\b)/i, /^(?:opt\b)/i, /^(?:alt\b)/i, /^(?:else\b)/i, /^(?:par\b)/i, /^(?:par_over\b)/i, /^(?:and\b)/i, /^(?:critical\b)/i, /^(?:option\b)/i, /^(?:break\b)/i, /^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i, /^(?:end\b)/i, /^(?:left of\b)/i, /^(?:right of\b)/i, /^(?:links\b)/i, /^(?:link\b)/i, /^(?:properties\b)/i, /^(?:details\b)/i, /^(?:over\b)/i, /^(?:note\b)/i, /^(?:activate\b)/i, /^(?:deactivate\b)/i, /^(?:title\s[^#\n;]+)/i, /^(?:title:\s[^#\n;]+)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:sequenceDiagram\b)/i, /^(?:autonumber\b)/i, /^(?:off\b)/i, /^(?:,)/i, /^(?:;)/i, /^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i, /^(?:->>)/i, /^(?:-->>)/i, /^(?:->)/i, /^(?:-->)/i, /^(?:-[x])/i, /^(?:--[x])/i, /^(?:-[\)])/i, /^(?:--[\)])/i, /^(?::(?:(?:no)?wrap)?[^#\n;]+)/i, /^(?:\+)/i, /^(?:-)/i, /^(?:$)/i, /^(?:.)/i],
585
- conditions: { acc_descr_multiline: { rules: [45, 46], inclusive: !1 }, acc_descr: { rules: [43], inclusive: !1 }, acc_title: { rules: [41], inclusive: !1 }, ID: { rules: [2, 3, 12], inclusive: !1 }, ALIAS: { rules: [2, 3, 13, 14], inclusive: !1 }, LINE: { rules: [2, 3, 26], inclusive: !1 }, INITIAL: { rules: [0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 42, 44, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65], inclusive: !0 } }
586
- };
587
- return ht;
588
- }();
589
- Ct.lexer = me;
590
- function Ot() {
591
- this.yy = {};
592
- }
593
- return Ot.prototype = Ct, Ct.Parser = Ot, new Ot();
594
- }();
595
- qt.parser = qt;
596
- const Fe = qt;
597
- let _t, ct = {}, Gt = {}, Jt = {}, mt = [], J = [], Dt = !1, zt, ot, Pt, Et;
598
- const We = function(t) {
599
- mt.push({
600
- name: t.text,
601
- wrap: t.wrap === void 0 && xt() || !!t.wrap,
602
- fill: t.color,
603
- actorKeys: []
604
- }), ot = mt.slice(-1)[0];
605
- }, Ht = function(t, e, o, i) {
606
- let s = ot;
607
- const n = ct[t];
608
- if (n) {
609
- if (ot && n.box && ot !== n.box)
610
- throw new Error(
611
- "A same participant should only be defined in one Box: " + n.name + " can't be in '" + n.box.name + "' and in '" + ot.name + "' at the same time."
612
- );
613
- if (s = n.box ? n.box : ot, n.box = s, n && e === n.name && o == null)
614
- return;
615
- }
616
- (o == null || o.text == null) && (o = { text: e, wrap: null, type: i }), (i == null || o.text == null) && (o = { text: e, wrap: null, type: i }), ct[t] = {
617
- box: s,
618
- name: e,
619
- description: o.text,
620
- wrap: o.wrap === void 0 && xt() || !!o.wrap,
621
- prevActor: _t,
622
- links: {},
623
- properties: {},
624
- actorCnt: null,
625
- rectData: null,
626
- type: i || "participant"
627
- }, _t && ct[_t] && (ct[_t].nextActor = t), ot && ot.actorKeys.push(t), _t = t;
628
- }, qe = (t) => {
629
- let e, o = 0;
630
- for (e = 0; e < J.length; e++)
631
- J[e].type === kt.ACTIVE_START && J[e].from.actor === t && o++, J[e].type === kt.ACTIVE_END && J[e].from.actor === t && o--;
632
- return o;
633
- }, ze = function(t, e, o, i) {
634
- J.push({
635
- from: t,
636
- to: e,
637
- message: o.text,
638
- wrap: o.wrap === void 0 && xt() || !!o.wrap,
639
- answer: i
640
- });
641
- }, D = function(t, e, o = { text: void 0, wrap: void 0 }, i, s = !1) {
642
- if (i === kt.ACTIVE_END && qe(t.actor) < 1) {
643
- let c = new Error("Trying to inactivate an inactive participant (" + t.actor + ")");
644
- throw c.hash = {
645
- text: "->>-",
646
- token: "->>-",
647
- line: "1",
648
- loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
649
- expected: ["'ACTIVE_PARTICIPANT'"]
650
- }, c;
651
- }
652
- return J.push({
653
- from: t,
654
- to: e,
655
- message: o.text,
656
- wrap: o.wrap === void 0 && xt() || !!o.wrap,
657
- type: i,
658
- activate: s
659
- }), !0;
660
- }, He = function() {
661
- return mt.length > 0;
662
- }, Ue = function() {
663
- return mt.some((t) => t.name);
664
- }, Ke = function() {
665
- return J;
666
- }, Xe = function() {
667
- return mt;
668
- }, Ge = function() {
669
- return ct;
670
- }, Je = function() {
671
- return Gt;
672
- }, Ze = function() {
673
- return Jt;
674
- }, Lt = function(t) {
675
- return ct[t];
676
- }, Qe = function() {
677
- return Object.keys(ct);
678
- }, je = function() {
679
- Dt = !0;
680
- }, $e = function() {
681
- Dt = !1;
682
- }, t0 = () => Dt, e0 = function(t) {
683
- zt = t;
684
- }, xt = () => zt !== void 0 ? zt : dt().sequence.wrap, i0 = function() {
685
- ct = {}, Gt = {}, Jt = {}, mt = [], J = [], Dt = !1, Se();
686
- }, s0 = function(t) {
687
- const e = t.trim(), o = {
688
- text: e.replace(/^:?(?:no)?wrap:/, "").trim(),
689
- wrap: e.match(/^:?wrap:/) !== null ? !0 : e.match(/^:?nowrap:/) !== null ? !1 : void 0
690
- };
691
- return U.debug("parseMessage:", o), o;
692
- }, n0 = function(t) {
693
- const e = t.match(/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/);
694
- let o = e != null && e[1] ? e[1].trim() : "transparent", i = e != null && e[2] ? e[2].trim() : void 0;
695
- if (window && window.CSS)
696
- window.CSS.supports("color", o) || (o = "transparent", i = t.trim());
697
- else {
698
- const n = new Option().style;
699
- n.color = o, n.color !== o && (o = "transparent", i = t.trim());
700
- }
701
- return {
702
- color: o,
703
- text: i !== void 0 ? Mt(i.replace(/^:?(?:no)?wrap:/, ""), dt()) : void 0,
704
- wrap: i !== void 0 ? i.match(/^:?wrap:/) !== null ? !0 : i.match(/^:?nowrap:/) !== null ? !1 : void 0 : void 0
705
- };
706
- }, kt = {
707
- SOLID: 0,
708
- DOTTED: 1,
709
- NOTE: 2,
710
- SOLID_CROSS: 3,
711
- DOTTED_CROSS: 4,
712
- SOLID_OPEN: 5,
713
- DOTTED_OPEN: 6,
714
- LOOP_START: 10,
715
- LOOP_END: 11,
716
- ALT_START: 12,
717
- ALT_ELSE: 13,
718
- ALT_END: 14,
719
- OPT_START: 15,
720
- OPT_END: 16,
721
- ACTIVE_START: 17,
722
- ACTIVE_END: 18,
723
- PAR_START: 19,
724
- PAR_AND: 20,
725
- PAR_END: 21,
726
- RECT_START: 22,
727
- RECT_END: 23,
728
- SOLID_POINT: 24,
729
- DOTTED_POINT: 25,
730
- AUTONUMBER: 26,
731
- CRITICAL_START: 27,
732
- CRITICAL_OPTION: 28,
733
- CRITICAL_END: 29,
734
- BREAK_START: 30,
735
- BREAK_END: 31,
736
- PAR_OVER_START: 32
737
- }, a0 = {
738
- FILLED: 0,
739
- OPEN: 1
740
- }, r0 = {
741
- LEFTOF: 0,
742
- RIGHTOF: 1,
743
- OVER: 2
744
- }, ce = function(t, e, o) {
745
- o.text, o.wrap === void 0 && xt() || o.wrap;
746
- const i = [].concat(t, t);
747
- J.push({
748
- from: i[0],
749
- to: i[1],
750
- message: o.text,
751
- wrap: o.wrap === void 0 && xt() || !!o.wrap,
752
- type: kt.NOTE,
753
- placement: e
754
- });
755
- }, le = function(t, e) {
756
- const o = Lt(t);
757
- try {
758
- let i = Mt(e.text, dt());
759
- i = i.replace(/&amp;/g, "&"), i = i.replace(/&equals;/g, "=");
760
- const s = JSON.parse(i);
761
- Zt(o, s);
762
- } catch (i) {
763
- U.error("error while parsing actor link text", i);
764
- }
765
- }, o0 = function(t, e) {
766
- const o = Lt(t);
767
- try {
768
- const c = {};
769
- let h = Mt(e.text, dt());
770
- var i = h.indexOf("@");
771
- h = h.replace(/&amp;/g, "&"), h = h.replace(/&equals;/g, "=");
772
- var s = h.slice(0, i - 1).trim(), n = h.slice(i + 1).trim();
773
- c[s] = n, Zt(o, c);
774
- } catch (c) {
775
- U.error("error while parsing actor link text", c);
776
- }
777
- };
778
- function Zt(t, e) {
779
- if (t.links == null)
780
- t.links = e;
781
- else
782
- for (let o in e)
783
- t.links[o] = e[o];
784
- }
785
- const he = function(t, e) {
786
- const o = Lt(t);
787
- try {
788
- let i = Mt(e.text, dt());
789
- const s = JSON.parse(i);
790
- de(o, s);
791
- } catch (i) {
792
- U.error("error while parsing actor properties text", i);
793
- }
794
- };
795
- function de(t, e) {
796
- if (t.properties == null)
797
- t.properties = e;
798
- else
799
- for (let o in e)
800
- t.properties[o] = e[o];
801
- }
802
- function c0() {
803
- ot = void 0;
804
- }
805
- const pe = function(t, e) {
806
- const o = Lt(t), i = document.getElementById(e.text);
807
- try {
808
- const s = i.innerHTML, n = JSON.parse(s);
809
- n.properties && de(o, n.properties), n.links && Zt(o, n.links);
810
- } catch (s) {
811
- U.error("error while parsing actor details text", s);
812
- }
813
- }, l0 = function(t, e) {
814
- if (t !== void 0 && t.properties !== void 0)
815
- return t.properties[e];
816
- }, ue = function(t) {
817
- if (Array.isArray(t))
818
- t.forEach(function(e) {
819
- ue(e);
820
- });
821
- else
822
- switch (t.type) {
823
- case "sequenceIndex":
824
- J.push({
825
- from: void 0,
826
- to: void 0,
827
- message: {
828
- start: t.sequenceIndex,
829
- step: t.sequenceIndexStep,
830
- visible: t.sequenceVisible
831
- },
832
- wrap: !1,
833
- type: t.signalType
834
- });
835
- break;
836
- case "addParticipant":
837
- Ht(t.actor, t.actor, t.description, t.draw);
838
- break;
839
- case "createParticipant":
840
- if (ct[t.actor])
841
- throw new Error(
842
- "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"
843
- );
844
- Pt = t.actor, Ht(t.actor, t.actor, t.description, t.draw), Gt[t.actor] = J.length;
845
- break;
846
- case "destroyParticipant":
847
- Et = t.actor, Jt[t.actor] = J.length;
848
- break;
849
- case "activeStart":
850
- D(t.actor, void 0, void 0, t.signalType);
851
- break;
852
- case "activeEnd":
853
- D(t.actor, void 0, void 0, t.signalType);
854
- break;
855
- case "addNote":
856
- ce(t.actor, t.placement, t.text);
857
- break;
858
- case "addLinks":
859
- le(t.actor, t.text);
860
- break;
861
- case "addALink":
862
- o0(t.actor, t.text);
863
- break;
864
- case "addProperties":
865
- he(t.actor, t.text);
866
- break;
867
- case "addDetails":
868
- pe(t.actor, t.text);
869
- break;
870
- case "addMessage":
871
- if (Pt) {
872
- if (t.to !== Pt)
873
- throw new Error(
874
- "The created participant " + Pt + " does not have an associated creating message after its declaration. Please check the sequence diagram."
875
- );
876
- Pt = void 0;
877
- } else if (Et) {
878
- if (t.to !== Et && t.from !== Et)
879
- throw new Error(
880
- "The destroyed participant " + Et + " does not have an associated destroying message after its declaration. Please check the sequence diagram."
881
- );
882
- Et = void 0;
883
- }
884
- D(t.from, t.to, t.msg, t.signalType, t.activate);
885
- break;
886
- case "boxStart":
887
- We(t.boxData);
888
- break;
889
- case "boxEnd":
890
- c0();
891
- break;
892
- case "loopStart":
893
- D(void 0, void 0, t.loopText, t.signalType);
894
- break;
895
- case "loopEnd":
896
- D(void 0, void 0, void 0, t.signalType);
897
- break;
898
- case "rectStart":
899
- D(void 0, void 0, t.color, t.signalType);
900
- break;
901
- case "rectEnd":
902
- D(void 0, void 0, void 0, t.signalType);
903
- break;
904
- case "optStart":
905
- D(void 0, void 0, t.optText, t.signalType);
906
- break;
907
- case "optEnd":
908
- D(void 0, void 0, void 0, t.signalType);
909
- break;
910
- case "altStart":
911
- D(void 0, void 0, t.altText, t.signalType);
912
- break;
913
- case "else":
914
- D(void 0, void 0, t.altText, t.signalType);
915
- break;
916
- case "altEnd":
917
- D(void 0, void 0, void 0, t.signalType);
918
- break;
919
- case "setAccTitle":
920
- ae(t.text);
921
- break;
922
- case "parStart":
923
- D(void 0, void 0, t.parText, t.signalType);
924
- break;
925
- case "and":
926
- D(void 0, void 0, t.parText, t.signalType);
927
- break;
928
- case "parEnd":
929
- D(void 0, void 0, void 0, t.signalType);
930
- break;
931
- case "criticalStart":
932
- D(void 0, void 0, t.criticalText, t.signalType);
933
- break;
934
- case "option":
935
- D(void 0, void 0, t.optionText, t.signalType);
936
- break;
937
- case "criticalEnd":
938
- D(void 0, void 0, void 0, t.signalType);
939
- break;
940
- case "breakStart":
941
- D(void 0, void 0, t.breakText, t.signalType);
942
- break;
943
- case "breakEnd":
944
- D(void 0, void 0, void 0, t.signalType);
945
- break;
946
- }
947
- }, se = {
948
- addActor: Ht,
949
- addMessage: ze,
950
- addSignal: D,
951
- addLinks: le,
952
- addDetails: pe,
953
- addProperties: he,
954
- autoWrap: xt,
955
- setWrap: e0,
956
- enableSequenceNumbers: je,
957
- disableSequenceNumbers: $e,
958
- showSequenceNumbers: t0,
959
- getMessages: Ke,
960
- getActors: Ge,
961
- getCreatedActors: Je,
962
- getDestroyedActors: Ze,
963
- getActor: Lt,
964
- getActorKeys: Qe,
965
- getActorProperty: l0,
966
- getAccTitle: ke,
967
- getBoxes: Xe,
968
- getDiagramTitle: Le,
969
- setDiagramTitle: Ie,
970
- getConfig: () => dt().sequence,
971
- clear: i0,
972
- parseMessage: s0,
973
- parseBoxData: n0,
974
- LINETYPE: kt,
975
- ARROWTYPE: a0,
976
- PLACEMENT: r0,
977
- addNote: ce,
978
- setAccTitle: ae,
979
- apply: ue,
980
- setAccDescription: Ae,
981
- getAccDescription: Ne,
982
- hasAtLeastOneBox: He,
983
- hasAtLeastOneBoxWithTitle: Ue
984
- }, h0 = (t) => `.actor {
985
- stroke: ${t.actorBorder};
986
- fill: ${t.actorBkg};
987
- }
988
-
989
- text.actor > tspan {
990
- fill: ${t.actorTextColor};
991
- stroke: none;
992
- }
993
-
994
- .actor-line {
995
- stroke: ${t.actorLineColor};
996
- }
997
-
998
- .messageLine0 {
999
- stroke-width: 1.5;
1000
- stroke-dasharray: none;
1001
- stroke: ${t.signalColor};
1002
- }
1003
-
1004
- .messageLine1 {
1005
- stroke-width: 1.5;
1006
- stroke-dasharray: 2, 2;
1007
- stroke: ${t.signalColor};
1008
- }
1009
-
1010
- #arrowhead path {
1011
- fill: ${t.signalColor};
1012
- stroke: ${t.signalColor};
1013
- }
1014
-
1015
- .sequenceNumber {
1016
- fill: ${t.sequenceNumberColor};
1017
- }
1018
-
1019
- #sequencenumber {
1020
- fill: ${t.signalColor};
1021
- }
1022
-
1023
- #crosshead path {
1024
- fill: ${t.signalColor};
1025
- stroke: ${t.signalColor};
1026
- }
1027
-
1028
- .messageText {
1029
- fill: ${t.signalTextColor};
1030
- stroke: none;
1031
- }
1032
-
1033
- .labelBox {
1034
- stroke: ${t.labelBoxBorderColor};
1035
- fill: ${t.labelBoxBkgColor};
1036
- }
1037
-
1038
- .labelText, .labelText > tspan {
1039
- fill: ${t.labelTextColor};
1040
- stroke: none;
1041
- }
1042
-
1043
- .loopText, .loopText > tspan {
1044
- fill: ${t.loopTextColor};
1045
- stroke: none;
1046
- }
1047
-
1048
- .loopLine {
1049
- stroke-width: 2px;
1050
- stroke-dasharray: 2, 2;
1051
- stroke: ${t.labelBoxBorderColor};
1052
- fill: ${t.labelBoxBorderColor};
1053
- }
1054
-
1055
- .note {
1056
- //stroke: #decc93;
1057
- stroke: ${t.noteBorderColor};
1058
- fill: ${t.noteBkgColor};
1059
- }
1060
-
1061
- .noteText, .noteText > tspan {
1062
- fill: ${t.noteTextColor};
1063
- stroke: none;
1064
- }
1065
-
1066
- .activation0 {
1067
- fill: ${t.activationBkgColor};
1068
- stroke: ${t.activationBorderColor};
1069
- }
1070
-
1071
- .activation1 {
1072
- fill: ${t.activationBkgColor};
1073
- stroke: ${t.activationBorderColor};
1074
- }
1075
-
1076
- .activation2 {
1077
- fill: ${t.activationBkgColor};
1078
- stroke: ${t.activationBorderColor};
1079
- }
1080
-
1081
- .actorPopupMenu {
1082
- position: absolute;
1083
- }
1084
-
1085
- .actorPopupMenuPanel {
1086
- position: absolute;
1087
- fill: ${t.actorBkg};
1088
- box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
1089
- filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
1090
- }
1091
- .actor-man line {
1092
- stroke: ${t.actorBorder};
1093
- fill: ${t.actorBkg};
1094
- }
1095
- .actor-man circle, line {
1096
- stroke: ${t.actorBorder};
1097
- fill: ${t.actorBkg};
1098
- stroke-width: 2px;
1099
- }
1100
- `, d0 = h0, gt = 18 * 2, Qt = function(t, e) {
1101
- return Ce(t, e);
1102
- }, fe = (t, e) => {
1103
- De(() => {
1104
- const o = document.querySelectorAll(t);
1105
- o.length !== 0 && (o[0].addEventListener("mouseover", function() {
1106
- g0("actor" + e + "_popup");
1107
- }), o[0].addEventListener("mouseout", function() {
1108
- x0("actor" + e + "_popup");
1109
- }));
1110
- });
1111
- }, p0 = function(t, e, o, i, s) {
1112
- if (e.links === void 0 || e.links === null || Object.keys(e.links).length === 0)
1113
- return { height: 0, width: 0 };
1114
- const n = e.links, c = e.actorCnt, h = e.rectData;
1115
- var p = "none";
1116
- s && (p = "block !important");
1117
- const a = t.append("g");
1118
- a.attr("id", "actor" + c + "_popup"), a.attr("class", "actorPopupMenu"), a.attr("display", p), fe("#actor" + c + "_popup", c);
1119
- var x = "";
1120
- h.class !== void 0 && (x = " " + h.class);
1121
- let E = h.width > o ? h.width : o;
1122
- const u = a.append("rect");
1123
- if (u.attr("class", "actorPopupMenuPanel" + x), u.attr("x", h.x), u.attr("y", h.height), u.attr("fill", h.fill), u.attr("stroke", h.stroke), u.attr("width", E), u.attr("height", h.height), u.attr("rx", h.rx), u.attr("ry", h.ry), n != null) {
1124
- var g = 20;
1125
- for (let I in n) {
1126
- var b = a.append("a"), P = re.sanitizeUrl(n[I]);
1127
- b.attr("xlink:href", P), b.attr("target", "_blank"), M0(i)(
1128
- I,
1129
- b,
1130
- h.x + 10,
1131
- h.height + g,
1132
- E,
1133
- 20,
1134
- { class: "actor" },
1135
- i
1136
- ), g += 30;
1137
- }
1138
- }
1139
- return u.attr("height", g), { height: h.height + g, width: E };
1140
- }, u0 = function(t) {
1141
- return "var pu = document.getElementById('" + t + "'); if (pu != null) { pu.style.display = 'block'; }";
1142
- }, f0 = function(t) {
1143
- return "var pu = document.getElementById('" + t + "'); if (pu != null) { pu.style.display = 'none'; }";
1144
- }, g0 = function(t) {
1145
- var e = document.getElementById(t);
1146
- e != null && (e.style.display = "block");
1147
- }, x0 = function(t) {
1148
- var e = document.getElementById(t);
1149
- e != null && (e.style.display = "none");
1150
- }, wt = function(t, e) {
1151
- let o = 0, i = 0;
1152
- const s = e.text.split(w.lineBreakRegex), [n, c] = oe(e.fontSize);
1153
- let h = [], p = 0, a = () => e.y;
1154
- if (e.valign !== void 0 && e.textMargin !== void 0 && e.textMargin > 0)
1155
- switch (e.valign) {
1156
- case "top":
1157
- case "start":
1158
- a = () => Math.round(e.y + e.textMargin);
1159
- break;
1160
- case "middle":
1161
- case "center":
1162
- a = () => Math.round(e.y + (o + i + e.textMargin) / 2);
1163
- break;
1164
- case "bottom":
1165
- case "end":
1166
- a = () => Math.round(
1167
- e.y + (o + i + 2 * e.textMargin) - e.textMargin
1168
- );
1169
- break;
1170
- }
1171
- if (e.anchor !== void 0 && e.textMargin !== void 0 && e.width !== void 0)
1172
- switch (e.anchor) {
1173
- case "left":
1174
- case "start":
1175
- e.x = Math.round(e.x + e.textMargin), e.anchor = "start", e.dominantBaseline = "middle", e.alignmentBaseline = "middle";
1176
- break;
1177
- case "middle":
1178
- case "center":
1179
- e.x = Math.round(e.x + e.width / 2), e.anchor = "middle", e.dominantBaseline = "middle", e.alignmentBaseline = "middle";
1180
- break;
1181
- case "right":
1182
- case "end":
1183
- e.x = Math.round(e.x + e.width - e.textMargin), e.anchor = "end", e.dominantBaseline = "middle", e.alignmentBaseline = "middle";
1184
- break;
1185
- }
1186
- for (let [x, E] of s.entries()) {
1187
- e.textMargin !== void 0 && e.textMargin === 0 && n !== void 0 && (p = x * n);
1188
- const u = t.append("text");
1189
- u.attr("x", e.x), u.attr("y", a()), e.anchor !== void 0 && u.attr("text-anchor", e.anchor).attr("dominant-baseline", e.dominantBaseline).attr("alignment-baseline", e.alignmentBaseline), e.fontFamily !== void 0 && u.style("font-family", e.fontFamily), c !== void 0 && u.style("font-size", c), e.fontWeight !== void 0 && u.style("font-weight", e.fontWeight), e.fill !== void 0 && u.attr("fill", e.fill), e.class !== void 0 && u.attr("class", e.class), e.dy !== void 0 ? u.attr("dy", e.dy) : p !== 0 && u.attr("dy", p);
1190
- const g = E || Ve;
1191
- if (e.tspan) {
1192
- const b = u.append("tspan");
1193
- b.attr("x", e.x), e.fill !== void 0 && b.attr("fill", e.fill), b.text(g);
1194
- } else
1195
- u.text(g);
1196
- e.valign !== void 0 && e.textMargin !== void 0 && e.textMargin > 0 && (i += (u._groups || u)[0][0].getBBox().height, o = i), h.push(u);
1197
- }
1198
- return h;
1199
- }, ge = function(t, e) {
1200
- function o(s, n, c, h, p) {
1201
- return s + "," + n + " " + (s + c) + "," + n + " " + (s + c) + "," + (n + h - p) + " " + (s + c - p * 1.2) + "," + (n + h) + " " + s + "," + (n + h);
1202
- }
1203
- const i = t.append("polygon");
1204
- return i.attr("points", o(e.x, e.y, e.width, e.height, 7)), i.attr("class", "labelBox"), e.y = e.y + e.height / 2, wt(t, e), i;
1205
- };
1206
- let it = -1;
1207
- const xe = (t, e, o, i) => {
1208
- t.select && o.forEach((s) => {
1209
- const n = e[s], c = t.select("#actor" + n.actorCnt);
1210
- !i.mirrorActors && n.stopy ? c.attr("y2", n.stopy + n.height / 2) : i.mirrorActors && c.attr("y2", n.stopy);
1211
- });
1212
- }, T0 = function(t, e, o, i) {
1213
- const s = i ? e.stopy : e.starty, n = e.x + e.width / 2, c = s + 5, h = t.append("g").lower();
1214
- var p = h;
1215
- i || (it++, p.append("line").attr("id", "actor" + it).attr("x1", n).attr("y1", c).attr("x2", n).attr("y2", 2e3).attr("class", "actor-line").attr("class", "200").attr("stroke-width", "0.5px").attr("stroke", "#999"), p = h.append("g"), e.actorCnt = it, e.links != null && (p.attr("id", "root-" + it), fe("#root-" + it, it)));
1216
- const a = Rt();
1217
- var x = "actor";
1218
- e.properties != null && e.properties.class ? x = e.properties.class : a.fill = "#eaeaea", a.x = e.x, a.y = s, a.width = e.width, a.height = e.height, a.class = x, a.rx = 3, a.ry = 3;
1219
- const E = Qt(p, a);
1220
- if (e.rectData = a, e.properties != null && e.properties.icon) {
1221
- const g = e.properties.icon.trim();
1222
- g.charAt(0) === "@" ? Be(p, a.x + a.width - 20, a.y + 10, g.substr(1)) : Ye(p, a.x + a.width - 20, a.y + 10, g);
1223
- }
1224
- jt(o)(
1225
- e.description,
1226
- p,
1227
- a.x,
1228
- a.y,
1229
- a.width,
1230
- a.height,
1231
- { class: "actor" },
1232
- o
1233
- );
1234
- let u = e.height;
1235
- if (E.node) {
1236
- const g = E.node().getBBox();
1237
- e.height = g.height, u = g.height;
1238
- }
1239
- return u;
1240
- }, y0 = function(t, e, o, i) {
1241
- const s = i ? e.stopy : e.starty, n = e.x + e.width / 2, c = s + 80;
1242
- t.lower(), i || (it++, t.append("line").attr("id", "actor" + it).attr("x1", n).attr("y1", c).attr("x2", n).attr("y2", 2e3).attr("class", "actor-line").attr("class", "200").attr("stroke-width", "0.5px").attr("stroke", "#999"), e.actorCnt = it);
1243
- const h = t.append("g");
1244
- h.attr("class", "actor-man");
1245
- const p = Rt();
1246
- p.x = e.x, p.y = s, p.fill = "#eaeaea", p.width = e.width, p.height = e.height, p.class = "actor", p.rx = 3, p.ry = 3, h.append("line").attr("id", "actor-man-torso" + it).attr("x1", n).attr("y1", s + 25).attr("x2", n).attr("y2", s + 45), h.append("line").attr("id", "actor-man-arms" + it).attr("x1", n - gt / 2).attr("y1", s + 33).attr("x2", n + gt / 2).attr("y2", s + 33), h.append("line").attr("x1", n - gt / 2).attr("y1", s + 60).attr("x2", n).attr("y2", s + 45), h.append("line").attr("x1", n).attr("y1", s + 45).attr("x2", n + gt / 2 - 2).attr("y2", s + 60);
1247
- const a = h.append("circle");
1248
- a.attr("cx", e.x + e.width / 2), a.attr("cy", s + 10), a.attr("r", 15), a.attr("width", e.width), a.attr("height", e.height);
1249
- const x = h.node().getBBox();
1250
- return e.height = x.height, jt(o)(
1251
- e.description,
1252
- h,
1253
- p.x,
1254
- p.y + 35,
1255
- p.width,
1256
- p.height,
1257
- { class: "actor" },
1258
- o
1259
- ), e.height;
1260
- }, E0 = function(t, e, o, i) {
1261
- switch (e.type) {
1262
- case "actor":
1263
- return y0(t, e, o, i);
1264
- case "participant":
1265
- return T0(t, e, o, i);
1266
- }
1267
- }, b0 = function(t, e, o) {
1268
- const s = t.append("g");
1269
- Te(s, e), e.name && jt(o)(
1270
- e.name,
1271
- s,
1272
- e.x,
1273
- e.y + (e.textMaxHeight || 0) / 2,
1274
- e.width,
1275
- 0,
1276
- { class: "text" },
1277
- o
1278
- ), s.lower();
1279
- }, m0 = function(t) {
1280
- return t.append("g");
1281
- }, w0 = function(t, e, o, i, s) {
1282
- const n = Rt(), c = e.anchored;
1283
- n.x = e.startx, n.y = e.starty, n.class = "activation" + s % 3, n.width = e.stopx - e.startx, n.height = o - e.starty, Qt(c, n);
1284
- }, v0 = function(t, e, o, i) {
1285
- const {
1286
- boxMargin: s,
1287
- boxTextMargin: n,
1288
- labelBoxHeight: c,
1289
- labelBoxWidth: h,
1290
- messageFontFamily: p,
1291
- messageFontSize: a,
1292
- messageFontWeight: x
1293
- } = i, E = t.append("g"), u = function(P, I, R, N) {
1294
- return E.append("line").attr("x1", P).attr("y1", I).attr("x2", R).attr("y2", N).attr("class", "loopLine");
1295
- };
1296
- u(e.startx, e.starty, e.stopx, e.starty), u(e.stopx, e.starty, e.stopx, e.stopy), u(e.startx, e.stopy, e.stopx, e.stopy), u(e.startx, e.starty, e.startx, e.stopy), e.sections !== void 0 && e.sections.forEach(function(P) {
1297
- u(e.startx, P.y, e.stopx, P.y).style(
1298
- "stroke-dasharray",
1299
- "3, 3"
1300
- );
1301
- });
1302
- let g = Xt();
1303
- g.text = o, g.x = e.startx, g.y = e.starty, g.fontFamily = p, g.fontSize = a, g.fontWeight = x, g.anchor = "middle", g.valign = "middle", g.tspan = !1, g.width = h || 50, g.height = c || 20, g.textMargin = n, g.class = "labelText", ge(E, g), g = ye(), g.text = e.title, g.x = e.startx + h / 2 + (e.stopx - e.startx) / 2, g.y = e.starty + s + n, g.anchor = "middle", g.valign = "middle", g.textMargin = n, g.class = "loopText", g.fontFamily = p, g.fontSize = a, g.fontWeight = x, g.wrap = !0;
1304
- let b = wt(E, g);
1305
- return e.sectionTitles !== void 0 && e.sectionTitles.forEach(function(P, I) {
1306
- if (P.message) {
1307
- g.text = P.message, g.x = e.startx + (e.stopx - e.startx) / 2, g.y = e.sections[I].y + s + n, g.class = "loopText", g.anchor = "middle", g.valign = "middle", g.tspan = !1, g.fontFamily = p, g.fontSize = a, g.fontWeight = x, g.wrap = e.wrap, b = wt(E, g);
1308
- let R = Math.round(
1309
- b.map((N) => (N._groups || N)[0][0].getBBox().height).reduce((N, F) => N + F)
1310
- );
1311
- e.sections[I].height += R - (s + n);
1312
- }
1313
- }), e.height = Math.round(e.stopy - e.starty), E;
1314
- }, Te = function(t, e) {
1315
- Oe(t, e);
1316
- }, _0 = function(t) {
1317
- t.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr(
1318
- "d",
1319
- "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"
1320
- );
1321
- }, P0 = function(t) {
1322
- t.append("defs").append("symbol").attr("id", "computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
1323
- "d",
1324
- "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"
1325
- );
1326
- }, k0 = function(t) {
1327
- t.append("defs").append("symbol").attr("id", "clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
1328
- "d",
1329
- "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"
1330
- );
1331
- }, L0 = function(t) {
1332
- t.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").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z");
1333
- }, I0 = function(t) {
1334
- t.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");
1335
- }, A0 = function(t) {
1336
- t.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);
1337
- }, N0 = function(t) {
1338
- t.append("defs").append("marker").attr("id", "crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 4).attr("refY", 4.5).append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1pt").attr("d", "M 1,2 L 6,7 M 6,2 L 1,7");
1339
- }, ye = function() {
1340
- return {
1341
- x: 0,
1342
- y: 0,
1343
- fill: void 0,
1344
- anchor: void 0,
1345
- style: "#666",
1346
- width: void 0,
1347
- height: void 0,
1348
- textMargin: 0,
1349
- rx: 0,
1350
- ry: 0,
1351
- tspan: !0,
1352
- valign: void 0
1353
- };
1354
- }, S0 = function() {
1355
- return {
1356
- x: 0,
1357
- y: 0,
1358
- fill: "#EDF2AE",
1359
- stroke: "#666",
1360
- width: 100,
1361
- anchor: "start",
1362
- height: 100,
1363
- rx: 0,
1364
- ry: 0
1365
- };
1366
- }, jt = function() {
1367
- function t(s, n, c, h, p, a, x) {
1368
- const E = n.append("text").attr("x", c + p / 2).attr("y", h + a / 2 + 5).style("text-anchor", "middle").text(s);
1369
- i(E, x);
1370
- }
1371
- function e(s, n, c, h, p, a, x, E) {
1372
- const { actorFontSize: u, actorFontFamily: g, actorFontWeight: b } = E, [P, I] = oe(u), R = s.split(w.lineBreakRegex);
1373
- for (let N = 0; N < R.length; N++) {
1374
- const F = N * P - P * (R.length - 1) / 2, S = n.append("text").attr("x", c + p / 2).attr("y", h).style("text-anchor", "middle").style("font-size", I).style("font-weight", b).style("font-family", g);
1375
- S.append("tspan").attr("x", c + p / 2).attr("dy", F).text(R[N]), S.attr("y", h + a / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), i(S, x);
1376
- }
1377
- }
1378
- function o(s, n, c, h, p, a, x, E) {
1379
- const u = n.append("switch"), b = u.append("foreignObject").attr("x", c).attr("y", h).attr("width", p).attr("height", a).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
1380
- b.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(s), e(s, u, c, h, p, a, x, E), i(b, x);
1381
- }
1382
- function i(s, n) {
1383
- for (const c in n)
1384
- n.hasOwnProperty(c) && s.attr(c, n[c]);
1385
- }
1386
- return function(s) {
1387
- return s.textPlacement === "fo" ? o : s.textPlacement === "old" ? t : e;
1388
- };
1389
- }(), M0 = function() {
1390
- function t(s, n, c, h, p, a, x) {
1391
- const E = n.append("text").attr("x", c).attr("y", h).style("text-anchor", "start").text(s);
1392
- i(E, x);
1393
- }
1394
- function e(s, n, c, h, p, a, x, E) {
1395
- const { actorFontSize: u, actorFontFamily: g, actorFontWeight: b } = E, P = s.split(w.lineBreakRegex);
1396
- for (let I = 0; I < P.length; I++) {
1397
- const R = I * u - u * (P.length - 1) / 2, N = n.append("text").attr("x", c).attr("y", h).style("text-anchor", "start").style("font-size", u).style("font-weight", b).style("font-family", g);
1398
- N.append("tspan").attr("x", c).attr("dy", R).text(P[I]), N.attr("y", h + a / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), i(N, x);
1399
- }
1400
- }
1401
- function o(s, n, c, h, p, a, x, E) {
1402
- const u = n.append("switch"), b = u.append("foreignObject").attr("x", c).attr("y", h).attr("width", p).attr("height", a).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
1403
- b.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(s), e(s, u, c, h, p, a, x, E), i(b, x);
1404
- }
1405
- function i(s, n) {
1406
- for (const c in n)
1407
- n.hasOwnProperty(c) && s.attr(c, n[c]);
1408
- }
1409
- return function(s) {
1410
- return s.textPlacement === "fo" ? o : s.textPlacement === "old" ? t : e;
1411
- };
1412
- }(), V = {
1413
- drawRect: Qt,
1414
- drawText: wt,
1415
- drawLabel: ge,
1416
- drawActor: E0,
1417
- drawBox: b0,
1418
- drawPopup: p0,
1419
- anchorElement: m0,
1420
- drawActivation: w0,
1421
- drawLoop: v0,
1422
- drawBackgroundRect: Te,
1423
- insertArrowHead: L0,
1424
- insertArrowFilledHead: I0,
1425
- insertSequenceNumber: A0,
1426
- insertArrowCrossHead: N0,
1427
- insertDatabaseIcon: _0,
1428
- insertComputerIcon: P0,
1429
- insertClockIcon: k0,
1430
- getTextObj: ye,
1431
- getNoteRect: S0,
1432
- popupMenu: u0,
1433
- popdownMenu: f0,
1434
- fixLifeLineHeights: xe,
1435
- sanitizeUrl: re.sanitizeUrl
1436
- };
1437
- let r = {};
1438
- const f = {
1439
- data: {
1440
- startx: void 0,
1441
- stopx: void 0,
1442
- starty: void 0,
1443
- stopy: void 0
1444
- },
1445
- verticalPos: 0,
1446
- sequenceItems: [],
1447
- activations: [],
1448
- models: {
1449
- getHeight: function() {
1450
- return Math.max.apply(
1451
- null,
1452
- this.actors.length === 0 ? [0] : this.actors.map((t) => t.height || 0)
1453
- ) + (this.loops.length === 0 ? 0 : this.loops.map((t) => t.height || 0).reduce((t, e) => t + e)) + (this.messages.length === 0 ? 0 : this.messages.map((t) => t.height || 0).reduce((t, e) => t + e)) + (this.notes.length === 0 ? 0 : this.notes.map((t) => t.height || 0).reduce((t, e) => t + e));
1454
- },
1455
- clear: function() {
1456
- this.actors = [], this.boxes = [], this.loops = [], this.messages = [], this.notes = [];
1457
- },
1458
- addBox: function(t) {
1459
- this.boxes.push(t);
1460
- },
1461
- addActor: function(t) {
1462
- this.actors.push(t);
1463
- },
1464
- addLoop: function(t) {
1465
- this.loops.push(t);
1466
- },
1467
- addMessage: function(t) {
1468
- this.messages.push(t);
1469
- },
1470
- addNote: function(t) {
1471
- this.notes.push(t);
1472
- },
1473
- lastActor: function() {
1474
- return this.actors[this.actors.length - 1];
1475
- },
1476
- lastLoop: function() {
1477
- return this.loops[this.loops.length - 1];
1478
- },
1479
- lastMessage: function() {
1480
- return this.messages[this.messages.length - 1];
1481
- },
1482
- lastNote: function() {
1483
- return this.notes[this.notes.length - 1];
1484
- },
1485
- actors: [],
1486
- boxes: [],
1487
- loops: [],
1488
- messages: [],
1489
- notes: []
1490
- },
1491
- init: function() {
1492
- this.sequenceItems = [], this.activations = [], this.models.clear(), this.data = {
1493
- startx: void 0,
1494
- stopx: void 0,
1495
- starty: void 0,
1496
- stopy: void 0
1497
- }, this.verticalPos = 0, be(dt());
1498
- },
1499
- updateVal: function(t, e, o, i) {
1500
- t[e] === void 0 ? t[e] = o : t[e] = i(o, t[e]);
1501
- },
1502
- updateBounds: function(t, e, o, i) {
1503
- const s = this;
1504
- let n = 0;
1505
- function c(h) {
1506
- return function(a) {
1507
- n++;
1508
- const x = s.sequenceItems.length - n + 1;
1509
- s.updateVal(a, "starty", e - x * r.boxMargin, Math.min), s.updateVal(a, "stopy", i + x * r.boxMargin, Math.max), s.updateVal(f.data, "startx", t - x * r.boxMargin, Math.min), s.updateVal(f.data, "stopx", o + x * r.boxMargin, Math.max), h !== "activation" && (s.updateVal(a, "startx", t - x * r.boxMargin, Math.min), s.updateVal(a, "stopx", o + x * r.boxMargin, Math.max), s.updateVal(f.data, "starty", e - x * r.boxMargin, Math.min), s.updateVal(f.data, "stopy", i + x * r.boxMargin, Math.max));
1510
- };
1511
- }
1512
- this.sequenceItems.forEach(c()), this.activations.forEach(c("activation"));
1513
- },
1514
- insert: function(t, e, o, i) {
1515
- const s = w.getMin(t, o), n = w.getMax(t, o), c = w.getMin(e, i), h = w.getMax(e, i);
1516
- this.updateVal(f.data, "startx", s, Math.min), this.updateVal(f.data, "starty", c, Math.min), this.updateVal(f.data, "stopx", n, Math.max), this.updateVal(f.data, "stopy", h, Math.max), this.updateBounds(s, c, n, h);
1517
- },
1518
- newActivation: function(t, e, o) {
1519
- const i = o[t.from.actor], s = Vt(t.from.actor).length || 0, n = i.x + i.width / 2 + (s - 1) * r.activationWidth / 2;
1520
- this.activations.push({
1521
- startx: n,
1522
- starty: this.verticalPos + 2,
1523
- stopx: n + r.activationWidth,
1524
- stopy: void 0,
1525
- actor: t.from.actor,
1526
- anchored: V.anchorElement(e)
1527
- });
1528
- },
1529
- endActivation: function(t) {
1530
- const e = this.activations.map(function(o) {
1531
- return o.actor;
1532
- }).lastIndexOf(t.from.actor);
1533
- return this.activations.splice(e, 1)[0];
1534
- },
1535
- createLoop: function(t = { message: void 0, wrap: !1, width: void 0 }, e) {
1536
- return {
1537
- startx: void 0,
1538
- starty: this.verticalPos,
1539
- stopx: void 0,
1540
- stopy: void 0,
1541
- title: t.message,
1542
- wrap: t.wrap,
1543
- width: t.width,
1544
- height: 0,
1545
- fill: e
1546
- };
1547
- },
1548
- newLoop: function(t = { message: void 0, wrap: !1, width: void 0 }, e) {
1549
- this.sequenceItems.push(this.createLoop(t, e));
1550
- },
1551
- endLoop: function() {
1552
- return this.sequenceItems.pop();
1553
- },
1554
- isLoopOverlap: function() {
1555
- return this.sequenceItems.length ? this.sequenceItems[this.sequenceItems.length - 1].overlap : !1;
1556
- },
1557
- addSectionToLoop: function(t) {
1558
- const e = this.sequenceItems.pop();
1559
- e.sections = e.sections || [], e.sectionTitles = e.sectionTitles || [], e.sections.push({ y: f.getVerticalPos(), height: 0 }), e.sectionTitles.push(t), this.sequenceItems.push(e);
1560
- },
1561
- saveVerticalPos: function() {
1562
- this.isLoopOverlap() && (this.savedVerticalPos = this.verticalPos);
1563
- },
1564
- resetVerticalPos: function() {
1565
- this.isLoopOverlap() && (this.verticalPos = this.savedVerticalPos);
1566
- },
1567
- bumpVerticalPos: function(t) {
1568
- this.verticalPos = this.verticalPos + t, this.data.stopy = w.getMax(this.data.stopy, this.verticalPos);
1569
- },
1570
- getVerticalPos: function() {
1571
- return this.verticalPos;
1572
- },
1573
- getBounds: function() {
1574
- return { bounds: this.data, models: this.models };
1575
- }
1576
- }, R0 = function(t, e) {
1577
- f.bumpVerticalPos(r.boxMargin), e.height = r.boxMargin, e.starty = f.getVerticalPos();
1578
- const o = Rt();
1579
- o.x = e.startx, o.y = e.starty, o.width = e.width || r.width, o.class = "note";
1580
- const i = t.append("g"), s = V.drawRect(i, o), n = Xt();
1581
- n.x = e.startx, n.y = e.starty, n.width = o.width, n.dy = "1em", n.text = e.message, n.class = "noteText", n.fontFamily = r.noteFontFamily, n.fontSize = r.noteFontSize, n.fontWeight = r.noteFontWeight, n.anchor = r.noteAlign, n.textMargin = r.noteMargin, n.valign = "center";
1582
- const c = wt(i, n), h = Math.round(
1583
- c.map((p) => (p._groups || p)[0][0].getBBox().height).reduce((p, a) => p + a)
1584
- );
1585
- s.attr("height", h + 2 * r.noteMargin), e.height += h + 2 * r.noteMargin, f.bumpVerticalPos(h + 2 * r.noteMargin), e.stopy = e.starty + h + 2 * r.noteMargin, e.stopx = e.startx + o.width, f.insert(e.startx, e.starty, e.stopx, e.stopy), f.models.addNote(e);
1586
- }, Tt = (t) => ({
1587
- fontFamily: t.messageFontFamily,
1588
- fontSize: t.messageFontSize,
1589
- fontWeight: t.messageFontWeight
1590
- }), bt = (t) => ({
1591
- fontFamily: t.noteFontFamily,
1592
- fontSize: t.noteFontSize,
1593
- fontWeight: t.noteFontWeight
1594
- }), Ut = (t) => ({
1595
- fontFamily: t.actorFontFamily,
1596
- fontSize: t.actorFontSize,
1597
- fontWeight: t.actorFontWeight
1598
- });
1599
- function D0(t, e) {
1600
- f.bumpVerticalPos(10);
1601
- const { startx: o, stopx: i, message: s } = e, n = w.splitBreaks(s).length, c = O.calculateTextDimensions(s, Tt(r)), h = c.height / n;
1602
- e.height += h, f.bumpVerticalPos(h);
1603
- let p, a = c.height - 10;
1604
- const x = c.width;
1605
- if (o === i) {
1606
- p = f.getVerticalPos() + a, r.rightAngles || (a += r.boxMargin, p = f.getVerticalPos() + a), a += 30;
1607
- const E = w.getMax(x / 2, r.width / 2);
1608
- f.insert(
1609
- o - E,
1610
- f.getVerticalPos() - 10 + a,
1611
- i + E,
1612
- f.getVerticalPos() + 30 + a
1613
- );
1614
- } else
1615
- a += r.boxMargin, p = f.getVerticalPos() + a, f.insert(o, p - 10, i, p);
1616
- return f.bumpVerticalPos(a), e.height += a, e.stopy = e.starty + e.height, f.insert(e.fromBounds, e.starty, e.toBounds, e.stopy), p;
1617
- }
1618
- const V0 = function(t, e, o, i) {
1619
- const { startx: s, stopx: n, starty: c, message: h, type: p, sequenceIndex: a, sequenceVisible: x } = e, E = O.calculateTextDimensions(h, Tt(r)), u = Xt();
1620
- u.x = s, u.y = c + 10, u.width = n - s, u.class = "messageText", u.dy = "1em", u.text = h, u.fontFamily = r.messageFontFamily, u.fontSize = r.messageFontSize, u.fontWeight = r.messageFontWeight, u.anchor = r.messageAlign, u.valign = "center", u.textMargin = r.wrapPadding, u.tspan = !1, wt(t, u);
1621
- const g = E.width;
1622
- let b;
1623
- s === n ? r.rightAngles ? b = t.append("path").attr(
1624
- "d",
1625
- `M ${s},${o} H ${s + w.getMax(r.width / 2, g / 2)} V ${o + 25} H ${s}`
1626
- ) : b = t.append("path").attr(
1627
- "d",
1628
- "M " + s + "," + o + " C " + (s + 60) + "," + (o - 10) + " " + (s + 60) + "," + (o + 30) + " " + s + "," + (o + 20)
1629
- ) : (b = t.append("line"), b.attr("x1", s), b.attr("y1", o), b.attr("x2", n), b.attr("y2", o)), p === i.db.LINETYPE.DOTTED || p === i.db.LINETYPE.DOTTED_CROSS || p === i.db.LINETYPE.DOTTED_POINT || p === i.db.LINETYPE.DOTTED_OPEN ? (b.style("stroke-dasharray", "3, 3"), b.attr("class", "messageLine1")) : b.attr("class", "messageLine0");
1630
- let P = "";
1631
- r.arrowMarkerAbsolute && (P = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, P = P.replace(/\(/g, "\\("), P = P.replace(/\)/g, "\\)")), b.attr("stroke-width", 2), b.attr("stroke", "none"), b.style("fill", "none"), (p === i.db.LINETYPE.SOLID || p === i.db.LINETYPE.DOTTED) && b.attr("marker-end", "url(" + P + "#arrowhead)"), (p === i.db.LINETYPE.SOLID_POINT || p === i.db.LINETYPE.DOTTED_POINT) && b.attr("marker-end", "url(" + P + "#filled-head)"), (p === i.db.LINETYPE.SOLID_CROSS || p === i.db.LINETYPE.DOTTED_CROSS) && b.attr("marker-end", "url(" + P + "#crosshead)"), (x || r.showSequenceNumbers) && (b.attr("marker-start", "url(" + P + "#sequencenumber)"), t.append("text").attr("x", s).attr("y", o + 4).attr("font-family", "sans-serif").attr("font-size", "12px").attr("text-anchor", "middle").attr("class", "sequenceNumber").text(a));
1632
- }, C0 = function(t, e, o, i, s, n, c) {
1633
- let h = 0, p = 0, a, x = 0;
1634
- for (const E of i) {
1635
- const u = e[E], g = u.box;
1636
- a && a != g && (c || f.models.addBox(a), p += r.boxMargin + a.margin), g && g != a && (c || (g.x = h + p, g.y = s), p += g.margin), u.width = u.width || r.width, u.height = w.getMax(u.height || r.height, r.height), u.margin = u.margin || r.actorMargin, x = w.getMax(x, u.height), o[u.name] && (p += u.width / 2), u.x = h + p, u.starty = f.getVerticalPos(), f.insert(u.x, s, u.x + u.width, u.height), h += u.width + p, u.box && (u.box.width = h + g.margin - u.box.x), p = u.margin, a = u.box, f.models.addActor(u);
1637
- }
1638
- a && !c && f.models.addBox(a), f.bumpVerticalPos(x);
1639
- }, Kt = function(t, e, o, i) {
1640
- if (i) {
1641
- let s = 0;
1642
- f.bumpVerticalPos(r.boxMargin * 2);
1643
- for (const n of o) {
1644
- const c = e[n];
1645
- c.stopy || (c.stopy = f.getVerticalPos());
1646
- const h = V.drawActor(t, c, r, !0);
1647
- s = w.getMax(s, h);
1648
- }
1649
- f.bumpVerticalPos(s + r.boxMargin);
1650
- } else
1651
- for (const s of o) {
1652
- const n = e[s];
1653
- V.drawActor(t, n, r, !1);
1654
- }
1655
- }, Ee = function(t, e, o, i) {
1656
- let s = 0, n = 0;
1657
- for (const c of o) {
1658
- const h = e[c], p = F0(h), a = V.drawPopup(
1659
- t,
1660
- h,
1661
- p,
1662
- r,
1663
- r.forceMenus,
1664
- i
1665
- );
1666
- a.height > s && (s = a.height), a.width + h.x > n && (n = a.width + h.x);
1667
- }
1668
- return { maxHeight: s, maxWidth: n };
1669
- }, be = function(t) {
1670
- Me(r, t), t.fontFamily && (r.actorFontFamily = r.noteFontFamily = r.messageFontFamily = t.fontFamily), t.fontSize && (r.actorFontSize = r.noteFontSize = r.messageFontSize = t.fontSize), t.fontWeight && (r.actorFontWeight = r.noteFontWeight = r.messageFontWeight = t.fontWeight);
1671
- }, Vt = function(t) {
1672
- return f.activations.filter(function(e) {
1673
- return e.actor === t;
1674
- });
1675
- }, ne = function(t, e) {
1676
- const o = e[t], i = Vt(t), s = i.reduce(function(c, h) {
1677
- return w.getMin(c, h.startx);
1678
- }, o.x + o.width / 2 - 1), n = i.reduce(function(c, h) {
1679
- return w.getMax(c, h.stopx);
1680
- }, o.x + o.width / 2 + 1);
1681
- return [s, n];
1682
- };
1683
- function st(t, e, o, i, s) {
1684
- f.bumpVerticalPos(o);
1685
- let n = i;
1686
- if (e.id && e.message && t[e.id]) {
1687
- const c = t[e.id].width, h = Tt(r);
1688
- e.message = O.wrapLabel(`[${e.message}]`, c - 2 * r.wrapPadding, h), e.width = c, e.wrap = !0;
1689
- const p = O.calculateTextDimensions(e.message, h), a = w.getMax(p.height, r.labelBoxHeight);
1690
- n = i + a, U.debug(`${a} - ${e.message}`);
1691
- }
1692
- s(e), f.bumpVerticalPos(n);
1693
- }
1694
- function O0(t, e, o, i, s, n, c) {
1695
- function h(a, x) {
1696
- a.x < s[t.from].x ? (f.insert(
1697
- e.stopx - x,
1698
- e.starty,
1699
- e.startx,
1700
- e.stopy + a.height / 2 + r.noteMargin
1701
- ), e.stopx = e.stopx + x) : (f.insert(
1702
- e.startx,
1703
- e.starty,
1704
- e.stopx + x,
1705
- e.stopy + a.height / 2 + r.noteMargin
1706
- ), e.stopx = e.stopx - x);
1707
- }
1708
- function p(a, x) {
1709
- a.x < s[t.to].x ? (f.insert(
1710
- e.startx - x,
1711
- e.starty,
1712
- e.stopx,
1713
- e.stopy + a.height / 2 + r.noteMargin
1714
- ), e.startx = e.startx + x) : (f.insert(
1715
- e.stopx,
1716
- e.starty,
1717
- e.startx + x,
1718
- e.stopy + a.height / 2 + r.noteMargin
1719
- ), e.startx = e.startx - x);
1720
- }
1721
- if (n[t.to] == i) {
1722
- const a = s[t.to], x = a.type == "actor" ? gt / 2 + 3 : a.width / 2 + 3;
1723
- h(a, x), a.starty = o - a.height / 2, f.bumpVerticalPos(a.height / 2);
1724
- } else if (c[t.from] == i) {
1725
- const a = s[t.from];
1726
- if (r.mirrorActors) {
1727
- const x = a.type == "actor" ? gt / 2 : a.width / 2;
1728
- p(a, x);
1729
- }
1730
- a.stopy = o - a.height / 2, f.bumpVerticalPos(a.height / 2);
1731
- } else if (c[t.to] == i) {
1732
- const a = s[t.to];
1733
- if (r.mirrorActors) {
1734
- const x = a.type == "actor" ? gt / 2 + 3 : a.width / 2 + 3;
1735
- h(a, x);
1736
- }
1737
- a.stopy = o - a.height / 2, f.bumpVerticalPos(a.height / 2);
1738
- }
1739
- }
1740
- const B0 = function(t, e, o, i) {
1741
- const { securityLevel: s, sequence: n } = dt();
1742
- r = n;
1743
- let c;
1744
- s === "sandbox" && (c = St("#i" + e));
1745
- const h = s === "sandbox" ? St(c.nodes()[0].contentDocument.body) : St("body"), p = s === "sandbox" ? c.nodes()[0].contentDocument : document;
1746
- f.init(), U.debug(i.db);
1747
- const a = s === "sandbox" ? h.select(`[id="${e}"]`) : St(`[id="${e}"]`), x = i.db.getActors(), E = i.db.getCreatedActors(), u = i.db.getDestroyedActors(), g = i.db.getBoxes();
1748
- let b = i.db.getActorKeys();
1749
- const P = i.db.getMessages(), I = i.db.getDiagramTitle(), R = i.db.hasAtLeastOneBox(), N = i.db.hasAtLeastOneBoxWithTitle(), F = Y0(x, P, i);
1750
- if (r.height = W0(x, F, g), V.insertComputerIcon(a), V.insertDatabaseIcon(a), V.insertClockIcon(a), R && (f.bumpVerticalPos(r.boxMargin), N && f.bumpVerticalPos(g[0].textMaxHeight)), r.hideUnusedParticipants === !0) {
1751
- const y = /* @__PURE__ */ new Set();
1752
- P.forEach((v) => {
1753
- y.add(v.from), y.add(v.to);
1754
- }), b = b.filter((v) => y.has(v));
1755
- }
1756
- C0(a, x, E, b, 0, P, !1);
1757
- const S = H0(P, x, F, i);
1758
- V.insertArrowHead(a), V.insertArrowCrossHead(a), V.insertArrowFilledHead(a), V.insertSequenceNumber(a);
1759
- function tt(y, v) {
1760
- const L = f.endActivation(y);
1761
- L.starty + 18 > v && (L.starty = v - 6, v += 12), V.drawActivation(
1762
- a,
1763
- L,
1764
- v,
1765
- r,
1766
- Vt(y.from.actor).length
1767
- ), f.insert(L.startx, v - 10, L.stopx, v);
1768
- }
1769
- let W = 1, K = 1;
1770
- const Z = [], q = [];
1771
- P.forEach(function(y, v) {
1772
- let L, pt, et;
1773
- switch (y.type) {
1774
- case i.db.LINETYPE.NOTE:
1775
- f.resetVerticalPos(), pt = y.noteModel, R0(a, pt);
1776
- break;
1777
- case i.db.LINETYPE.ACTIVE_START:
1778
- f.newActivation(y, a, x);
1779
- break;
1780
- case i.db.LINETYPE.ACTIVE_END:
1781
- tt(y, f.getVerticalPos());
1782
- break;
1783
- case i.db.LINETYPE.LOOP_START:
1784
- st(
1785
- S,
1786
- y,
1787
- r.boxMargin,
1788
- r.boxMargin + r.boxTextMargin,
1789
- (A) => f.newLoop(A)
1790
- );
1791
- break;
1792
- case i.db.LINETYPE.LOOP_END:
1793
- L = f.endLoop(), V.drawLoop(a, L, "loop", r), f.bumpVerticalPos(L.stopy - f.getVerticalPos()), f.models.addLoop(L);
1794
- break;
1795
- case i.db.LINETYPE.RECT_START:
1796
- st(
1797
- S,
1798
- y,
1799
- r.boxMargin,
1800
- r.boxMargin,
1801
- (A) => f.newLoop(void 0, A.message)
1802
- );
1803
- break;
1804
- case i.db.LINETYPE.RECT_END:
1805
- L = f.endLoop(), q.push(L), f.models.addLoop(L), f.bumpVerticalPos(L.stopy - f.getVerticalPos());
1806
- break;
1807
- case i.db.LINETYPE.OPT_START:
1808
- st(
1809
- S,
1810
- y,
1811
- r.boxMargin,
1812
- r.boxMargin + r.boxTextMargin,
1813
- (A) => f.newLoop(A)
1814
- );
1815
- break;
1816
- case i.db.LINETYPE.OPT_END:
1817
- L = f.endLoop(), V.drawLoop(a, L, "opt", r), f.bumpVerticalPos(L.stopy - f.getVerticalPos()), f.models.addLoop(L);
1818
- break;
1819
- case i.db.LINETYPE.ALT_START:
1820
- st(
1821
- S,
1822
- y,
1823
- r.boxMargin,
1824
- r.boxMargin + r.boxTextMargin,
1825
- (A) => f.newLoop(A)
1826
- );
1827
- break;
1828
- case i.db.LINETYPE.ALT_ELSE:
1829
- st(
1830
- S,
1831
- y,
1832
- r.boxMargin + r.boxTextMargin,
1833
- r.boxMargin,
1834
- (A) => f.addSectionToLoop(A)
1835
- );
1836
- break;
1837
- case i.db.LINETYPE.ALT_END:
1838
- L = f.endLoop(), V.drawLoop(a, L, "alt", r), f.bumpVerticalPos(L.stopy - f.getVerticalPos()), f.models.addLoop(L);
1839
- break;
1840
- case i.db.LINETYPE.PAR_START:
1841
- case i.db.LINETYPE.PAR_OVER_START:
1842
- st(
1843
- S,
1844
- y,
1845
- r.boxMargin,
1846
- r.boxMargin + r.boxTextMargin,
1847
- (A) => f.newLoop(A)
1848
- ), f.saveVerticalPos();
1849
- break;
1850
- case i.db.LINETYPE.PAR_AND:
1851
- st(
1852
- S,
1853
- y,
1854
- r.boxMargin + r.boxTextMargin,
1855
- r.boxMargin,
1856
- (A) => f.addSectionToLoop(A)
1857
- );
1858
- break;
1859
- case i.db.LINETYPE.PAR_END:
1860
- L = f.endLoop(), V.drawLoop(a, L, "par", r), f.bumpVerticalPos(L.stopy - f.getVerticalPos()), f.models.addLoop(L);
1861
- break;
1862
- case i.db.LINETYPE.AUTONUMBER:
1863
- W = y.message.start || W, K = y.message.step || K, y.message.visible ? i.db.enableSequenceNumbers() : i.db.disableSequenceNumbers();
1864
- break;
1865
- case i.db.LINETYPE.CRITICAL_START:
1866
- st(
1867
- S,
1868
- y,
1869
- r.boxMargin,
1870
- r.boxMargin + r.boxTextMargin,
1871
- (A) => f.newLoop(A)
1872
- );
1873
- break;
1874
- case i.db.LINETYPE.CRITICAL_OPTION:
1875
- st(
1876
- S,
1877
- y,
1878
- r.boxMargin + r.boxTextMargin,
1879
- r.boxMargin,
1880
- (A) => f.addSectionToLoop(A)
1881
- );
1882
- break;
1883
- case i.db.LINETYPE.CRITICAL_END:
1884
- L = f.endLoop(), V.drawLoop(a, L, "critical", r), f.bumpVerticalPos(L.stopy - f.getVerticalPos()), f.models.addLoop(L);
1885
- break;
1886
- case i.db.LINETYPE.BREAK_START:
1887
- st(
1888
- S,
1889
- y,
1890
- r.boxMargin,
1891
- r.boxMargin + r.boxTextMargin,
1892
- (A) => f.newLoop(A)
1893
- );
1894
- break;
1895
- case i.db.LINETYPE.BREAK_END:
1896
- L = f.endLoop(), V.drawLoop(a, L, "break", r), f.bumpVerticalPos(L.stopy - f.getVerticalPos()), f.models.addLoop(L);
1897
- break;
1898
- default:
1899
- try {
1900
- et = y.msgModel, et.starty = f.getVerticalPos(), et.sequenceIndex = W, et.sequenceVisible = i.db.showSequenceNumbers();
1901
- const A = D0(a, et);
1902
- O0(
1903
- y,
1904
- et,
1905
- A,
1906
- v,
1907
- x,
1908
- E,
1909
- u
1910
- ), Z.push({ messageModel: et, lineStartY: A }), f.models.addMessage(et);
1911
- } catch (A) {
1912
- U.error("error while drawing message", A);
1913
- }
1914
- }
1915
- [
1916
- i.db.LINETYPE.SOLID_OPEN,
1917
- i.db.LINETYPE.DOTTED_OPEN,
1918
- i.db.LINETYPE.SOLID,
1919
- i.db.LINETYPE.DOTTED,
1920
- i.db.LINETYPE.SOLID_CROSS,
1921
- i.db.LINETYPE.DOTTED_CROSS,
1922
- i.db.LINETYPE.SOLID_POINT,
1923
- i.db.LINETYPE.DOTTED_POINT
1924
- ].includes(y.type) && (W = W + K);
1925
- }), U.debug("createdActors", E), U.debug("destroyedActors", u), Kt(a, x, b, !1), Z.forEach((y) => V0(a, y.messageModel, y.lineStartY, i)), r.mirrorActors && Kt(a, x, b, !0), q.forEach((y) => V.drawBackgroundRect(a, y)), xe(a, x, b, r), f.models.boxes.forEach(function(y) {
1926
- y.height = f.getVerticalPos() - y.y, f.insert(y.x, y.y, y.x + y.width, y.height), y.startx = y.x, y.starty = y.y, y.stopx = y.startx + y.width, y.stopy = y.starty + y.height, y.stroke = "rgb(0,0,0, 0.5)", V.drawBox(a, y, r);
1927
- }), R && f.bumpVerticalPos(r.boxMargin);
1928
- const Y = Ee(a, x, b, p), { bounds: C } = f.getBounds();
1929
- let X = C.stopy - C.starty;
1930
- X < Y.maxHeight && (X = Y.maxHeight);
1931
- let z = X + 2 * r.diagramMarginY;
1932
- r.mirrorActors && (z = z - r.boxMargin + r.bottomMarginAdj);
1933
- let G = C.stopx - C.startx;
1934
- G < Y.maxWidth && (G = Y.maxWidth);
1935
- const Q = G + 2 * r.diagramMarginX;
1936
- I && a.append("text").text(I).attr("x", (C.stopx - C.startx) / 2 - 2 * r.diagramMarginX).attr("y", -25), Re(a, z, Q, r.useMaxWidth);
1937
- const j = I ? 40 : 0;
1938
- a.attr(
1939
- "viewBox",
1940
- C.startx - r.diagramMarginX + " -" + (r.diagramMarginY + j) + " " + Q + " " + (z + j)
1941
- ), U.debug("models:", f.models);
1942
- };
1943
- function Y0(t, e, o) {
1944
- const i = {};
1945
- return e.forEach(function(s) {
1946
- if (t[s.to] && t[s.from]) {
1947
- const n = t[s.to];
1948
- if (s.placement === o.db.PLACEMENT.LEFTOF && !n.prevActor || s.placement === o.db.PLACEMENT.RIGHTOF && !n.nextActor)
1949
- return;
1950
- const c = s.placement !== void 0, h = !c, p = c ? bt(r) : Tt(r), a = s.wrap ? O.wrapLabel(s.message, r.width - 2 * r.wrapPadding, p) : s.message, E = O.calculateTextDimensions(a, p).width + 2 * r.wrapPadding;
1951
- h && s.from === n.nextActor ? i[s.to] = w.getMax(
1952
- i[s.to] || 0,
1953
- E
1954
- ) : h && s.from === n.prevActor ? i[s.from] = w.getMax(
1955
- i[s.from] || 0,
1956
- E
1957
- ) : h && s.from === s.to ? (i[s.from] = w.getMax(
1958
- i[s.from] || 0,
1959
- E / 2
1960
- ), i[s.to] = w.getMax(
1961
- i[s.to] || 0,
1962
- E / 2
1963
- )) : s.placement === o.db.PLACEMENT.RIGHTOF ? i[s.from] = w.getMax(
1964
- i[s.from] || 0,
1965
- E
1966
- ) : s.placement === o.db.PLACEMENT.LEFTOF ? i[n.prevActor] = w.getMax(
1967
- i[n.prevActor] || 0,
1968
- E
1969
- ) : s.placement === o.db.PLACEMENT.OVER && (n.prevActor && (i[n.prevActor] = w.getMax(
1970
- i[n.prevActor] || 0,
1971
- E / 2
1972
- )), n.nextActor && (i[s.from] = w.getMax(
1973
- i[s.from] || 0,
1974
- E / 2
1975
- )));
1976
- }
1977
- }), U.debug("maxMessageWidthPerActor:", i), i;
1978
- }
1979
- const F0 = function(t) {
1980
- let e = 0;
1981
- const o = Ut(r);
1982
- for (const i in t.links) {
1983
- const n = O.calculateTextDimensions(i, o).width + 2 * r.wrapPadding + 2 * r.boxMargin;
1984
- e < n && (e = n);
1985
- }
1986
- return e;
1987
- };
1988
- function W0(t, e, o) {
1989
- let i = 0;
1990
- Object.keys(t).forEach((n) => {
1991
- const c = t[n];
1992
- c.wrap && (c.description = O.wrapLabel(
1993
- c.description,
1994
- r.width - 2 * r.wrapPadding,
1995
- Ut(r)
1996
- ));
1997
- const h = O.calculateTextDimensions(c.description, Ut(r));
1998
- c.width = c.wrap ? r.width : w.getMax(r.width, h.width + 2 * r.wrapPadding), c.height = c.wrap ? w.getMax(h.height, r.height) : r.height, i = w.getMax(i, c.height);
1999
- });
2000
- for (const n in e) {
2001
- const c = t[n];
2002
- if (!c)
2003
- continue;
2004
- const h = t[c.nextActor];
2005
- if (!h) {
2006
- const E = e[n] + r.actorMargin - c.width / 2;
2007
- c.margin = w.getMax(E, r.actorMargin);
2008
- continue;
2009
- }
2010
- const a = e[n] + r.actorMargin - c.width / 2 - h.width / 2;
2011
- c.margin = w.getMax(a, r.actorMargin);
2012
- }
2013
- let s = 0;
2014
- return o.forEach((n) => {
2015
- const c = Tt(r);
2016
- let h = n.actorKeys.reduce((x, E) => x += t[E].width + (t[E].margin || 0), 0);
2017
- h -= 2 * r.boxTextMargin, n.wrap && (n.name = O.wrapLabel(n.name, h - 2 * r.wrapPadding, c));
2018
- const p = O.calculateTextDimensions(n.name, c);
2019
- s = w.getMax(p.height, s);
2020
- const a = w.getMax(h, p.width + 2 * r.wrapPadding);
2021
- if (n.margin = r.boxTextMargin, h < a) {
2022
- const x = (a - h) / 2;
2023
- n.margin += x;
2024
- }
2025
- }), o.forEach((n) => n.textMaxHeight = s), w.getMax(i, r.height);
2026
- }
2027
- const q0 = function(t, e, o) {
2028
- const i = e[t.from].x, s = e[t.to].x, n = t.wrap && t.message;
2029
- let c = O.calculateTextDimensions(
2030
- n ? O.wrapLabel(t.message, r.width, bt(r)) : t.message,
2031
- bt(r)
2032
- );
2033
- const h = {
2034
- width: n ? r.width : w.getMax(r.width, c.width + 2 * r.noteMargin),
2035
- height: 0,
2036
- startx: e[t.from].x,
2037
- stopx: 0,
2038
- starty: 0,
2039
- stopy: 0,
2040
- message: t.message
2041
- };
2042
- return t.placement === o.db.PLACEMENT.RIGHTOF ? (h.width = n ? w.getMax(r.width, c.width) : w.getMax(
2043
- e[t.from].width / 2 + e[t.to].width / 2,
2044
- c.width + 2 * r.noteMargin
2045
- ), h.startx = i + (e[t.from].width + r.actorMargin) / 2) : t.placement === o.db.PLACEMENT.LEFTOF ? (h.width = n ? w.getMax(r.width, c.width + 2 * r.noteMargin) : w.getMax(
2046
- e[t.from].width / 2 + e[t.to].width / 2,
2047
- c.width + 2 * r.noteMargin
2048
- ), h.startx = i - h.width + (e[t.from].width - r.actorMargin) / 2) : t.to === t.from ? (c = O.calculateTextDimensions(
2049
- n ? O.wrapLabel(
2050
- t.message,
2051
- w.getMax(r.width, e[t.from].width),
2052
- bt(r)
2053
- ) : t.message,
2054
- bt(r)
2055
- ), h.width = n ? w.getMax(r.width, e[t.from].width) : w.getMax(
2056
- e[t.from].width,
2057
- r.width,
2058
- c.width + 2 * r.noteMargin
2059
- ), h.startx = i + (e[t.from].width - h.width) / 2) : (h.width = Math.abs(i + e[t.from].width / 2 - (s + e[t.to].width / 2)) + r.actorMargin, h.startx = i < s ? i + e[t.from].width / 2 - r.actorMargin / 2 : s + e[t.to].width / 2 - r.actorMargin / 2), n && (h.message = O.wrapLabel(
2060
- t.message,
2061
- h.width - 2 * r.wrapPadding,
2062
- bt(r)
2063
- )), U.debug(
2064
- `NM:[${h.startx},${h.stopx},${h.starty},${h.stopy}:${h.width},${h.height}=${t.message}]`
2065
- ), h;
2066
- }, z0 = function(t, e, o) {
2067
- if (![
2068
- o.db.LINETYPE.SOLID_OPEN,
2069
- o.db.LINETYPE.DOTTED_OPEN,
2070
- o.db.LINETYPE.SOLID,
2071
- o.db.LINETYPE.DOTTED,
2072
- o.db.LINETYPE.SOLID_CROSS,
2073
- o.db.LINETYPE.DOTTED_CROSS,
2074
- o.db.LINETYPE.SOLID_POINT,
2075
- o.db.LINETYPE.DOTTED_POINT
2076
- ].includes(t.type))
2077
- return {};
2078
- const [i, s] = ne(t.from, e), [n, c] = ne(t.to, e), h = i <= n, p = h ? s : i;
2079
- let a = h ? n : c;
2080
- const x = Math.abs(n - c) > 2, E = (P) => h ? -P : P;
2081
- t.from === t.to ? a = p : (t.activate && !x && (a += E(r.activationWidth / 2 - 1)), [o.db.LINETYPE.SOLID_OPEN, o.db.LINETYPE.DOTTED_OPEN].includes(t.type) || (a += E(3)));
2082
- const u = [i, s, n, c], g = Math.abs(p - a);
2083
- t.wrap && t.message && (t.message = O.wrapLabel(
2084
- t.message,
2085
- w.getMax(g + 2 * r.wrapPadding, r.width),
2086
- Tt(r)
2087
- ));
2088
- const b = O.calculateTextDimensions(t.message, Tt(r));
2089
- return {
2090
- width: w.getMax(
2091
- t.wrap ? 0 : b.width + 2 * r.wrapPadding,
2092
- g + 2 * r.wrapPadding,
2093
- r.width
2094
- ),
2095
- height: 0,
2096
- startx: p,
2097
- stopx: a,
2098
- starty: 0,
2099
- stopy: 0,
2100
- message: t.message,
2101
- type: t.type,
2102
- wrap: t.wrap,
2103
- fromBounds: Math.min.apply(null, u),
2104
- toBounds: Math.max.apply(null, u)
2105
- };
2106
- }, H0 = function(t, e, o, i) {
2107
- const s = {}, n = [];
2108
- let c, h, p;
2109
- return t.forEach(function(a) {
2110
- switch (a.id = O.random({ length: 10 }), a.type) {
2111
- case i.db.LINETYPE.LOOP_START:
2112
- case i.db.LINETYPE.ALT_START:
2113
- case i.db.LINETYPE.OPT_START:
2114
- case i.db.LINETYPE.PAR_START:
2115
- case i.db.LINETYPE.PAR_OVER_START:
2116
- case i.db.LINETYPE.CRITICAL_START:
2117
- case i.db.LINETYPE.BREAK_START:
2118
- n.push({
2119
- id: a.id,
2120
- msg: a.message,
2121
- from: Number.MAX_SAFE_INTEGER,
2122
- to: Number.MIN_SAFE_INTEGER,
2123
- width: 0
2124
- });
2125
- break;
2126
- case i.db.LINETYPE.ALT_ELSE:
2127
- case i.db.LINETYPE.PAR_AND:
2128
- case i.db.LINETYPE.CRITICAL_OPTION:
2129
- a.message && (c = n.pop(), s[c.id] = c, s[a.id] = c, n.push(c));
2130
- break;
2131
- case i.db.LINETYPE.LOOP_END:
2132
- case i.db.LINETYPE.ALT_END:
2133
- case i.db.LINETYPE.OPT_END:
2134
- case i.db.LINETYPE.PAR_END:
2135
- case i.db.LINETYPE.CRITICAL_END:
2136
- case i.db.LINETYPE.BREAK_END:
2137
- c = n.pop(), s[c.id] = c;
2138
- break;
2139
- case i.db.LINETYPE.ACTIVE_START:
2140
- {
2141
- const E = e[a.from ? a.from.actor : a.to.actor], u = Vt(a.from ? a.from.actor : a.to.actor).length, g = E.x + E.width / 2 + (u - 1) * r.activationWidth / 2, b = {
2142
- startx: g,
2143
- stopx: g + r.activationWidth,
2144
- actor: a.from.actor,
2145
- enabled: !0
2146
- };
2147
- f.activations.push(b);
2148
- }
2149
- break;
2150
- case i.db.LINETYPE.ACTIVE_END:
2151
- {
2152
- const E = f.activations.map((u) => u.actor).lastIndexOf(a.from.actor);
2153
- delete f.activations.splice(E, 1)[0];
2154
- }
2155
- break;
2156
- }
2157
- a.placement !== void 0 ? (h = q0(a, e, i), a.noteModel = h, n.forEach((E) => {
2158
- c = E, c.from = w.getMin(c.from, h.startx), c.to = w.getMax(c.to, h.startx + h.width), c.width = w.getMax(c.width, Math.abs(c.from - c.to)) - r.labelBoxWidth;
2159
- })) : (p = z0(a, e, i), a.msgModel = p, p.startx && p.stopx && n.length > 0 && n.forEach((E) => {
2160
- if (c = E, p.startx === p.stopx) {
2161
- const u = e[a.from], g = e[a.to];
2162
- c.from = w.getMin(
2163
- u.x - p.width / 2,
2164
- u.x - u.width / 2,
2165
- c.from
2166
- ), c.to = w.getMax(
2167
- g.x + p.width / 2,
2168
- g.x + u.width / 2,
2169
- c.to
2170
- ), c.width = w.getMax(c.width, Math.abs(c.to - c.from)) - r.labelBoxWidth;
2171
- } else
2172
- c.from = w.getMin(p.startx, c.from), c.to = w.getMax(p.stopx, c.to), c.width = w.getMax(c.width, p.width) - r.labelBoxWidth;
2173
- }));
2174
- }), f.activations = [], U.debug("Loop type widths:", s), s;
2175
- }, U0 = {
2176
- bounds: f,
2177
- drawActors: Kt,
2178
- drawActorsPopup: Ee,
2179
- setConf: be,
2180
- draw: B0
2181
- }, G0 = {
2182
- parser: Fe,
2183
- db: se,
2184
- renderer: U0,
2185
- styles: d0,
2186
- init: ({ wrap: t }) => {
2187
- se.setWrap(t);
2188
- }
2189
- };
2190
- export {
2191
- G0 as diagram
2192
- };