@digipair/skill-web-chatbot 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/SAP-icons.cjs.js +2489 -0
  2. package/SAP-icons.cjs2.js +2489 -0
  3. package/SAP-icons.esm.js +2482 -0
  4. package/SAP-icons.esm2.js +2482 -0
  5. package/arc-da8fd8d8.cjs.js +88 -0
  6. package/arc-da8fd8d8.esm.js +86 -0
  7. package/array-2ff2c7a6.cjs.js +7 -0
  8. package/array-2ff2c7a6.esm.js +5 -0
  9. package/c4Diagram-1bdb45a8.cjs.js +4613 -0
  10. package/c4Diagram-1bdb45a8.esm.js +4611 -0
  11. package/classDiagram-185c1a10.cjs.js +96 -0
  12. package/classDiagram-185c1a10.esm.js +94 -0
  13. package/classDiagram-v2-6dc3b9c3.cjs.js +403 -0
  14. package/classDiagram-v2-6dc3b9c3.esm.js +401 -0
  15. package/constant-2fe7eae5.cjs.js +58 -0
  16. package/constant-2fe7eae5.esm.js +55 -0
  17. package/createText-94e3ebbf.cjs.js +2775 -0
  18. package/createText-94e3ebbf.esm.js +2773 -0
  19. package/debug.html +18 -0
  20. package/edges-558884ee.cjs.js +1450 -0
  21. package/edges-558884ee.esm.js +1436 -0
  22. package/erDiagram-97139f44.cjs.js +1949 -0
  23. package/erDiagram-97139f44.esm.js +1947 -0
  24. package/flowDb-a4faf166.cjs.js +6918 -0
  25. package/flowDb-a4faf166.esm.js +6914 -0
  26. package/flowDiagram-ccbbb58d.cjs.js +999 -0
  27. package/flowDiagram-ccbbb58d.esm.js +997 -0
  28. package/flowDiagram-v2-79ccd6da.cjs.js +29 -0
  29. package/flowDiagram-v2-79ccd6da.esm.js +27 -0
  30. package/flowchart-elk-definition-7863a61f.cjs.js +48577 -0
  31. package/flowchart-elk-definition-7863a61f.esm.js +48575 -0
  32. package/ganttDiagram-3eff0dd8.cjs.js +3855 -0
  33. package/ganttDiagram-3eff0dd8.esm.js +3853 -0
  34. package/gitGraphDiagram-c3fe571f.cjs.js +3863 -0
  35. package/gitGraphDiagram-c3fe571f.esm.js +3861 -0
  36. package/index-d0b453e2.cjs.js +609 -0
  37. package/index-d0b453e2.esm.js +607 -0
  38. package/index.cjs.d.ts +1 -0
  39. package/index.cjs.js +17 -0
  40. package/index.cjs2.js +43619 -0
  41. package/index.d.ts +1 -0
  42. package/index.esm.js +1 -0
  43. package/index.esm2.js +43493 -0
  44. package/infoDiagram-9c10eab1.cjs.js +467 -0
  45. package/infoDiagram-9c10eab1.esm.js +465 -0
  46. package/init-f9637058.cjs.js +17 -0
  47. package/init-f9637058.esm.js +15 -0
  48. package/journeyDiagram-b6904cec.cjs.js +1292 -0
  49. package/journeyDiagram-b6904cec.esm.js +1290 -0
  50. package/layout-c5a37d74.cjs.js +2808 -0
  51. package/layout-c5a37d74.esm.js +2795 -0
  52. package/libs/engine/src/index.d.ts +2 -0
  53. package/libs/engine/src/lib/engine.d.ts +27 -0
  54. package/libs/engine/src/lib/pins-settings.interface.d.ts +20 -0
  55. package/libs/skill-web-chatbot/src/index.d.ts +3 -0
  56. package/libs/skill-web-chatbot/src/lib/chat.element.d.ts +23 -0
  57. package/libs/skill-web-chatbot/src/lib/common.data.d.ts +1 -0
  58. package/libs/skill-web-chatbot/src/lib/config.d.ts +9 -0
  59. package/libs/skill-web-chatbot/src/lib/digipair-full.data.d.ts +1 -0
  60. package/libs/skill-web-chatbot/src/lib/digipair-full.element.d.ts +32 -0
  61. package/libs/skill-web-chatbot/src/lib/digipair.data.d.ts +1 -0
  62. package/libs/skill-web-chatbot/src/lib/digipair.element.d.ts +39 -0
  63. package/libs/skill-web-chatbot/src/lib/inputs.element.d.ts +9 -0
  64. package/libs/skill-web-chatbot/src/lib/pins/chatbot.actions.d.ts +5 -0
  65. package/libs/skill-web-chatbot/src/lib/tools/css-selector.d.ts +1 -0
  66. package/line-ce5d1152.cjs.js +34 -0
  67. package/line-ce5d1152.esm.js +32 -0
  68. package/linear-db016d0c.cjs.js +485 -0
  69. package/linear-db016d0c.esm.js +479 -0
  70. package/mindmap-definition-a9d0f378.cjs.js +20225 -0
  71. package/mindmap-definition-a9d0f378.esm.js +20223 -0
  72. package/ordinal-5695958c.cjs.js +331 -0
  73. package/ordinal-5695958c.esm.js +329 -0
  74. package/package.json +8 -0
  75. package/pieDiagram-fd367f1f.cjs.js +1157 -0
  76. package/pieDiagram-fd367f1f.esm.js +1155 -0
  77. package/quadrantDiagram-1763608a.cjs.js +2633 -0
  78. package/quadrantDiagram-1763608a.esm.js +2631 -0
  79. package/requirementDiagram-779d93b3.cjs.js +2451 -0
  80. package/requirementDiagram-779d93b3.esm.js +2449 -0
  81. package/sankeyDiagram-86a66bae.cjs.js +1850 -0
  82. package/sankeyDiagram-86a66bae.esm.js +1848 -0
  83. package/sequenceDiagram-169f11ec.cjs.js +4805 -0
  84. package/sequenceDiagram-169f11ec.esm.js +4803 -0
  85. package/stateDiagram-6f4bb19d.cjs.js +282 -0
  86. package/stateDiagram-6f4bb19d.esm.js +280 -0
  87. package/stateDiagram-v2-d72c79bd.cjs.js +377 -0
  88. package/stateDiagram-v2-d72c79bd.esm.js +375 -0
  89. package/styles-3814544c.cjs.js +534 -0
  90. package/styles-3814544c.esm.js +524 -0
  91. package/styles-3fb7b9cf.cjs.js +2377 -0
  92. package/styles-3fb7b9cf.esm.js +2368 -0
  93. package/styles-659d7242.cjs.js +3919 -0
  94. package/styles-659d7242.esm.js +3915 -0
  95. package/svgDraw-af99a425.cjs.js +144 -0
  96. package/svgDraw-af99a425.esm.js +141 -0
  97. package/svgDrawCommon-ebe6c236.cjs.js +70 -0
  98. package/svgDrawCommon-ebe6c236.esm.js +62 -0
  99. package/timeline-definition-65183566.cjs.js +1394 -0
  100. package/timeline-definition-65183566.esm.js +1392 -0
@@ -0,0 +1,4803 @@
1
+ import { A as Aa, I as Ia, c as Oa, U as Ut$1, L as La, E as Ea, M as Ma, d as de$1, F as Fa, S, J as Je$1, B as Bn, n as nt, a as At, Y as Yg, f as Oi, u as us, ar as Dn, aH as d0$1, aI as Wx } from './index.esm2.js';
2
+ import { h, g, l, c, x, f as f$1 } from './svgDrawCommon-ebe6c236.esm.js';
3
+
4
+ function _array_like_to_array(arr, len) {
5
+ if (len == null || len > arr.length) len = arr.length;
6
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
7
+ return arr2;
8
+ }
9
+ function _array_with_holes(arr) {
10
+ if (Array.isArray(arr)) return arr;
11
+ }
12
+ function _array_without_holes(arr) {
13
+ if (Array.isArray(arr)) return _array_like_to_array(arr);
14
+ }
15
+ function _instanceof(left, right) {
16
+ if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
17
+ return !!right[Symbol.hasInstance](left);
18
+ } else {
19
+ return left instanceof right;
20
+ }
21
+ }
22
+ function _iterable_to_array(iter) {
23
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
24
+ }
25
+ function _iterable_to_array_limit(arr, i) {
26
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
27
+ if (_i == null) return;
28
+ var _arr = [];
29
+ var _n = true;
30
+ var _d = false;
31
+ var _s, _e;
32
+ try {
33
+ for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
34
+ _arr.push(_s.value);
35
+ if (i && _arr.length === i) break;
36
+ }
37
+ } catch (err) {
38
+ _d = true;
39
+ _e = err;
40
+ } finally{
41
+ try {
42
+ if (!_n && _i["return"] != null) _i["return"]();
43
+ } finally{
44
+ if (_d) throw _e;
45
+ }
46
+ }
47
+ return _arr;
48
+ }
49
+ function _non_iterable_rest() {
50
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
51
+ }
52
+ function _non_iterable_spread() {
53
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
54
+ }
55
+ function _sliced_to_array(arr, i) {
56
+ return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
57
+ }
58
+ function _to_consumable_array(arr) {
59
+ return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
60
+ }
61
+ function _type_of(obj) {
62
+ "@swc/helpers - typeof";
63
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
64
+ }
65
+ function _unsupported_iterable_to_array(o, minLen) {
66
+ if (!o) return;
67
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
68
+ var n = Object.prototype.toString.call(o).slice(8, -1);
69
+ if (n === "Object" && o.constructor) n = o.constructor.name;
70
+ if (n === "Map" || n === "Set") return Array.from(n);
71
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
72
+ }
73
+ var zt = function() {
74
+ var t = function t(dt, m, _, k) {
75
+ for(_ = _ || {}, k = dt.length; k--; _[dt[k]] = m);
76
+ return _;
77
+ }, e = [
78
+ 1,
79
+ 2
80
+ ], o = [
81
+ 1,
82
+ 3
83
+ ], n = [
84
+ 1,
85
+ 5
86
+ ], i = [
87
+ 1,
88
+ 7
89
+ ], s = [
90
+ 2,
91
+ 5
92
+ ], l = [
93
+ 1,
94
+ 15
95
+ ], h = [
96
+ 1,
97
+ 17
98
+ ], u = [
99
+ 1,
100
+ 19
101
+ ], r = [
102
+ 1,
103
+ 20
104
+ ], g = [
105
+ 1,
106
+ 22
107
+ ], y = [
108
+ 1,
109
+ 23
110
+ ], p = [
111
+ 1,
112
+ 24
113
+ ], x = [
114
+ 1,
115
+ 30
116
+ ], b = [
117
+ 1,
118
+ 31
119
+ ], P = [
120
+ 1,
121
+ 32
122
+ ], v = [
123
+ 1,
124
+ 33
125
+ ], D = [
126
+ 1,
127
+ 34
128
+ ], S = [
129
+ 1,
130
+ 35
131
+ ], W = [
132
+ 1,
133
+ 36
134
+ ], M = [
135
+ 1,
136
+ 37
137
+ ], nt = [
138
+ 1,
139
+ 38
140
+ ], z = [
141
+ 1,
142
+ 39
143
+ ], X = [
144
+ 1,
145
+ 40
146
+ ], Q = [
147
+ 1,
148
+ 41
149
+ ], j = [
150
+ 1,
151
+ 42
152
+ ], F = [
153
+ 1,
154
+ 44
155
+ ], O = [
156
+ 1,
157
+ 45
158
+ ], q = [
159
+ 1,
160
+ 46
161
+ ], H = [
162
+ 1,
163
+ 48
164
+ ], J = [
165
+ 1,
166
+ 49
167
+ ], $ = [
168
+ 1,
169
+ 50
170
+ ], tt = [
171
+ 1,
172
+ 51
173
+ ], E = [
174
+ 1,
175
+ 52
176
+ ], I = [
177
+ 1,
178
+ 53
179
+ ], A = [
180
+ 1,
181
+ 56
182
+ ], L = [
183
+ 1,
184
+ 4,
185
+ 5,
186
+ 19,
187
+ 20,
188
+ 22,
189
+ 24,
190
+ 27,
191
+ 29,
192
+ 35,
193
+ 36,
194
+ 37,
195
+ 39,
196
+ 41,
197
+ 42,
198
+ 43,
199
+ 44,
200
+ 45,
201
+ 47,
202
+ 49,
203
+ 50,
204
+ 52,
205
+ 53,
206
+ 54,
207
+ 55,
208
+ 56,
209
+ 58,
210
+ 59,
211
+ 60,
212
+ 65,
213
+ 66,
214
+ 67,
215
+ 68,
216
+ 76,
217
+ 86
218
+ ], U = [
219
+ 4,
220
+ 5,
221
+ 22,
222
+ 56,
223
+ 58,
224
+ 59
225
+ ], N = [
226
+ 4,
227
+ 5,
228
+ 19,
229
+ 20,
230
+ 22,
231
+ 24,
232
+ 27,
233
+ 29,
234
+ 35,
235
+ 36,
236
+ 37,
237
+ 39,
238
+ 41,
239
+ 42,
240
+ 43,
241
+ 44,
242
+ 45,
243
+ 47,
244
+ 49,
245
+ 50,
246
+ 52,
247
+ 56,
248
+ 58,
249
+ 59,
250
+ 60,
251
+ 65,
252
+ 66,
253
+ 67,
254
+ 68,
255
+ 76,
256
+ 86
257
+ ], te = [
258
+ 4,
259
+ 5,
260
+ 19,
261
+ 20,
262
+ 22,
263
+ 24,
264
+ 27,
265
+ 29,
266
+ 35,
267
+ 36,
268
+ 37,
269
+ 39,
270
+ 41,
271
+ 42,
272
+ 43,
273
+ 44,
274
+ 45,
275
+ 47,
276
+ 49,
277
+ 50,
278
+ 52,
279
+ 55,
280
+ 56,
281
+ 58,
282
+ 59,
283
+ 60,
284
+ 65,
285
+ 66,
286
+ 67,
287
+ 68,
288
+ 76,
289
+ 86
290
+ ], Ct = [
291
+ 4,
292
+ 5,
293
+ 19,
294
+ 20,
295
+ 22,
296
+ 24,
297
+ 27,
298
+ 29,
299
+ 35,
300
+ 36,
301
+ 37,
302
+ 39,
303
+ 41,
304
+ 42,
305
+ 43,
306
+ 44,
307
+ 45,
308
+ 47,
309
+ 49,
310
+ 50,
311
+ 52,
312
+ 54,
313
+ 56,
314
+ 58,
315
+ 59,
316
+ 60,
317
+ 65,
318
+ 66,
319
+ 67,
320
+ 68,
321
+ 76,
322
+ 86
323
+ ], ee = [
324
+ 4,
325
+ 5,
326
+ 19,
327
+ 20,
328
+ 22,
329
+ 24,
330
+ 27,
331
+ 29,
332
+ 35,
333
+ 36,
334
+ 37,
335
+ 39,
336
+ 41,
337
+ 42,
338
+ 43,
339
+ 44,
340
+ 45,
341
+ 47,
342
+ 49,
343
+ 50,
344
+ 52,
345
+ 53,
346
+ 56,
347
+ 58,
348
+ 59,
349
+ 60,
350
+ 65,
351
+ 66,
352
+ 67,
353
+ 68,
354
+ 76,
355
+ 86
356
+ ], ht = [
357
+ 74,
358
+ 75,
359
+ 76
360
+ ], rt = [
361
+ 1,
362
+ 133
363
+ ], ne = [
364
+ 1,
365
+ 4,
366
+ 5,
367
+ 7,
368
+ 19,
369
+ 20,
370
+ 22,
371
+ 24,
372
+ 27,
373
+ 29,
374
+ 35,
375
+ 36,
376
+ 37,
377
+ 39,
378
+ 41,
379
+ 42,
380
+ 43,
381
+ 44,
382
+ 45,
383
+ 47,
384
+ 49,
385
+ 50,
386
+ 52,
387
+ 53,
388
+ 54,
389
+ 55,
390
+ 56,
391
+ 58,
392
+ 59,
393
+ 60,
394
+ 65,
395
+ 66,
396
+ 67,
397
+ 68,
398
+ 76,
399
+ 86
400
+ ], Ot = {
401
+ trace: function trace() {},
402
+ yy: {},
403
+ symbols_: {
404
+ error: 2,
405
+ start: 3,
406
+ SPACE: 4,
407
+ NEWLINE: 5,
408
+ directive: 6,
409
+ SD: 7,
410
+ document: 8,
411
+ line: 9,
412
+ statement: 10,
413
+ box_section: 11,
414
+ box_line: 12,
415
+ participant_statement: 13,
416
+ openDirective: 14,
417
+ typeDirective: 15,
418
+ closeDirective: 16,
419
+ ":": 17,
420
+ argDirective: 18,
421
+ create: 19,
422
+ box: 20,
423
+ restOfLine: 21,
424
+ end: 22,
425
+ signal: 23,
426
+ autonumber: 24,
427
+ NUM: 25,
428
+ off: 26,
429
+ activate: 27,
430
+ actor: 28,
431
+ deactivate: 29,
432
+ note_statement: 30,
433
+ links_statement: 31,
434
+ link_statement: 32,
435
+ properties_statement: 33,
436
+ details_statement: 34,
437
+ title: 35,
438
+ legacy_title: 36,
439
+ acc_title: 37,
440
+ acc_title_value: 38,
441
+ acc_descr: 39,
442
+ acc_descr_value: 40,
443
+ acc_descr_multiline_value: 41,
444
+ loop: 42,
445
+ rect: 43,
446
+ opt: 44,
447
+ alt: 45,
448
+ else_sections: 46,
449
+ par: 47,
450
+ par_sections: 48,
451
+ par_over: 49,
452
+ critical: 50,
453
+ option_sections: 51,
454
+ break: 52,
455
+ option: 53,
456
+ and: 54,
457
+ else: 55,
458
+ participant: 56,
459
+ AS: 57,
460
+ participant_actor: 58,
461
+ destroy: 59,
462
+ note: 60,
463
+ placement: 61,
464
+ text2: 62,
465
+ over: 63,
466
+ actor_pair: 64,
467
+ links: 65,
468
+ link: 66,
469
+ properties: 67,
470
+ details: 68,
471
+ spaceList: 69,
472
+ ",": 70,
473
+ left_of: 71,
474
+ right_of: 72,
475
+ signaltype: 73,
476
+ "+": 74,
477
+ "-": 75,
478
+ ACTOR: 76,
479
+ SOLID_OPEN_ARROW: 77,
480
+ DOTTED_OPEN_ARROW: 78,
481
+ SOLID_ARROW: 79,
482
+ DOTTED_ARROW: 80,
483
+ SOLID_CROSS: 81,
484
+ DOTTED_CROSS: 82,
485
+ SOLID_POINT: 83,
486
+ DOTTED_POINT: 84,
487
+ TXT: 85,
488
+ open_directive: 86,
489
+ type_directive: 87,
490
+ arg_directive: 88,
491
+ close_directive: 89,
492
+ $accept: 0,
493
+ $end: 1
494
+ },
495
+ terminals_: {
496
+ 2: "error",
497
+ 4: "SPACE",
498
+ 5: "NEWLINE",
499
+ 7: "SD",
500
+ 17: ":",
501
+ 19: "create",
502
+ 20: "box",
503
+ 21: "restOfLine",
504
+ 22: "end",
505
+ 24: "autonumber",
506
+ 25: "NUM",
507
+ 26: "off",
508
+ 27: "activate",
509
+ 29: "deactivate",
510
+ 35: "title",
511
+ 36: "legacy_title",
512
+ 37: "acc_title",
513
+ 38: "acc_title_value",
514
+ 39: "acc_descr",
515
+ 40: "acc_descr_value",
516
+ 41: "acc_descr_multiline_value",
517
+ 42: "loop",
518
+ 43: "rect",
519
+ 44: "opt",
520
+ 45: "alt",
521
+ 47: "par",
522
+ 49: "par_over",
523
+ 50: "critical",
524
+ 52: "break",
525
+ 53: "option",
526
+ 54: "and",
527
+ 55: "else",
528
+ 56: "participant",
529
+ 57: "AS",
530
+ 58: "participant_actor",
531
+ 59: "destroy",
532
+ 60: "note",
533
+ 63: "over",
534
+ 65: "links",
535
+ 66: "link",
536
+ 67: "properties",
537
+ 68: "details",
538
+ 70: ",",
539
+ 71: "left_of",
540
+ 72: "right_of",
541
+ 74: "+",
542
+ 75: "-",
543
+ 76: "ACTOR",
544
+ 77: "SOLID_OPEN_ARROW",
545
+ 78: "DOTTED_OPEN_ARROW",
546
+ 79: "SOLID_ARROW",
547
+ 80: "DOTTED_ARROW",
548
+ 81: "SOLID_CROSS",
549
+ 82: "DOTTED_CROSS",
550
+ 83: "SOLID_POINT",
551
+ 84: "DOTTED_POINT",
552
+ 85: "TXT",
553
+ 86: "open_directive",
554
+ 87: "type_directive",
555
+ 88: "arg_directive",
556
+ 89: "close_directive"
557
+ },
558
+ productions_: [
559
+ 0,
560
+ [
561
+ 3,
562
+ 2
563
+ ],
564
+ [
565
+ 3,
566
+ 2
567
+ ],
568
+ [
569
+ 3,
570
+ 2
571
+ ],
572
+ [
573
+ 3,
574
+ 2
575
+ ],
576
+ [
577
+ 8,
578
+ 0
579
+ ],
580
+ [
581
+ 8,
582
+ 2
583
+ ],
584
+ [
585
+ 9,
586
+ 2
587
+ ],
588
+ [
589
+ 9,
590
+ 1
591
+ ],
592
+ [
593
+ 9,
594
+ 1
595
+ ],
596
+ [
597
+ 11,
598
+ 0
599
+ ],
600
+ [
601
+ 11,
602
+ 2
603
+ ],
604
+ [
605
+ 12,
606
+ 2
607
+ ],
608
+ [
609
+ 12,
610
+ 1
611
+ ],
612
+ [
613
+ 12,
614
+ 1
615
+ ],
616
+ [
617
+ 6,
618
+ 4
619
+ ],
620
+ [
621
+ 6,
622
+ 6
623
+ ],
624
+ [
625
+ 10,
626
+ 1
627
+ ],
628
+ [
629
+ 10,
630
+ 2
631
+ ],
632
+ [
633
+ 10,
634
+ 4
635
+ ],
636
+ [
637
+ 10,
638
+ 2
639
+ ],
640
+ [
641
+ 10,
642
+ 4
643
+ ],
644
+ [
645
+ 10,
646
+ 3
647
+ ],
648
+ [
649
+ 10,
650
+ 3
651
+ ],
652
+ [
653
+ 10,
654
+ 2
655
+ ],
656
+ [
657
+ 10,
658
+ 3
659
+ ],
660
+ [
661
+ 10,
662
+ 3
663
+ ],
664
+ [
665
+ 10,
666
+ 2
667
+ ],
668
+ [
669
+ 10,
670
+ 2
671
+ ],
672
+ [
673
+ 10,
674
+ 2
675
+ ],
676
+ [
677
+ 10,
678
+ 2
679
+ ],
680
+ [
681
+ 10,
682
+ 2
683
+ ],
684
+ [
685
+ 10,
686
+ 1
687
+ ],
688
+ [
689
+ 10,
690
+ 1
691
+ ],
692
+ [
693
+ 10,
694
+ 2
695
+ ],
696
+ [
697
+ 10,
698
+ 2
699
+ ],
700
+ [
701
+ 10,
702
+ 1
703
+ ],
704
+ [
705
+ 10,
706
+ 4
707
+ ],
708
+ [
709
+ 10,
710
+ 4
711
+ ],
712
+ [
713
+ 10,
714
+ 4
715
+ ],
716
+ [
717
+ 10,
718
+ 4
719
+ ],
720
+ [
721
+ 10,
722
+ 4
723
+ ],
724
+ [
725
+ 10,
726
+ 4
727
+ ],
728
+ [
729
+ 10,
730
+ 4
731
+ ],
732
+ [
733
+ 10,
734
+ 4
735
+ ],
736
+ [
737
+ 10,
738
+ 1
739
+ ],
740
+ [
741
+ 51,
742
+ 1
743
+ ],
744
+ [
745
+ 51,
746
+ 4
747
+ ],
748
+ [
749
+ 48,
750
+ 1
751
+ ],
752
+ [
753
+ 48,
754
+ 4
755
+ ],
756
+ [
757
+ 46,
758
+ 1
759
+ ],
760
+ [
761
+ 46,
762
+ 4
763
+ ],
764
+ [
765
+ 13,
766
+ 5
767
+ ],
768
+ [
769
+ 13,
770
+ 3
771
+ ],
772
+ [
773
+ 13,
774
+ 5
775
+ ],
776
+ [
777
+ 13,
778
+ 3
779
+ ],
780
+ [
781
+ 13,
782
+ 3
783
+ ],
784
+ [
785
+ 30,
786
+ 4
787
+ ],
788
+ [
789
+ 30,
790
+ 4
791
+ ],
792
+ [
793
+ 31,
794
+ 3
795
+ ],
796
+ [
797
+ 32,
798
+ 3
799
+ ],
800
+ [
801
+ 33,
802
+ 3
803
+ ],
804
+ [
805
+ 34,
806
+ 3
807
+ ],
808
+ [
809
+ 69,
810
+ 2
811
+ ],
812
+ [
813
+ 69,
814
+ 1
815
+ ],
816
+ [
817
+ 64,
818
+ 3
819
+ ],
820
+ [
821
+ 64,
822
+ 1
823
+ ],
824
+ [
825
+ 61,
826
+ 1
827
+ ],
828
+ [
829
+ 61,
830
+ 1
831
+ ],
832
+ [
833
+ 23,
834
+ 5
835
+ ],
836
+ [
837
+ 23,
838
+ 5
839
+ ],
840
+ [
841
+ 23,
842
+ 4
843
+ ],
844
+ [
845
+ 28,
846
+ 1
847
+ ],
848
+ [
849
+ 73,
850
+ 1
851
+ ],
852
+ [
853
+ 73,
854
+ 1
855
+ ],
856
+ [
857
+ 73,
858
+ 1
859
+ ],
860
+ [
861
+ 73,
862
+ 1
863
+ ],
864
+ [
865
+ 73,
866
+ 1
867
+ ],
868
+ [
869
+ 73,
870
+ 1
871
+ ],
872
+ [
873
+ 73,
874
+ 1
875
+ ],
876
+ [
877
+ 73,
878
+ 1
879
+ ],
880
+ [
881
+ 62,
882
+ 1
883
+ ],
884
+ [
885
+ 14,
886
+ 1
887
+ ],
888
+ [
889
+ 15,
890
+ 1
891
+ ],
892
+ [
893
+ 18,
894
+ 1
895
+ ],
896
+ [
897
+ 16,
898
+ 1
899
+ ]
900
+ ],
901
+ performAction: function performAction(m, _, k, T, R, c, _t) {
902
+ var d = c.length - 1;
903
+ switch(R){
904
+ case 4:
905
+ return T.apply(c[d]), c[d];
906
+ case 5:
907
+ case 10:
908
+ this.$ = [];
909
+ break;
910
+ case 6:
911
+ case 11:
912
+ c[d - 1].push(c[d]), this.$ = c[d - 1];
913
+ break;
914
+ case 7:
915
+ case 8:
916
+ case 12:
917
+ case 13:
918
+ this.$ = c[d];
919
+ break;
920
+ case 9:
921
+ case 14:
922
+ this.$ = [];
923
+ break;
924
+ case 18:
925
+ c[d].type = "createParticipant", this.$ = c[d];
926
+ break;
927
+ case 19:
928
+ c[d - 1].unshift({
929
+ type: "boxStart",
930
+ boxData: T.parseBoxData(c[d - 2])
931
+ }), c[d - 1].push({
932
+ type: "boxEnd",
933
+ boxText: c[d - 2]
934
+ }), this.$ = c[d - 1];
935
+ break;
936
+ case 21:
937
+ this.$ = {
938
+ type: "sequenceIndex",
939
+ sequenceIndex: Number(c[d - 2]),
940
+ sequenceIndexStep: Number(c[d - 1]),
941
+ sequenceVisible: !0,
942
+ signalType: T.LINETYPE.AUTONUMBER
943
+ };
944
+ break;
945
+ case 22:
946
+ this.$ = {
947
+ type: "sequenceIndex",
948
+ sequenceIndex: Number(c[d - 1]),
949
+ sequenceIndexStep: 1,
950
+ sequenceVisible: !0,
951
+ signalType: T.LINETYPE.AUTONUMBER
952
+ };
953
+ break;
954
+ case 23:
955
+ this.$ = {
956
+ type: "sequenceIndex",
957
+ sequenceVisible: !1,
958
+ signalType: T.LINETYPE.AUTONUMBER
959
+ };
960
+ break;
961
+ case 24:
962
+ this.$ = {
963
+ type: "sequenceIndex",
964
+ sequenceVisible: !0,
965
+ signalType: T.LINETYPE.AUTONUMBER
966
+ };
967
+ break;
968
+ case 25:
969
+ this.$ = {
970
+ type: "activeStart",
971
+ signalType: T.LINETYPE.ACTIVE_START,
972
+ actor: c[d - 1]
973
+ };
974
+ break;
975
+ case 26:
976
+ this.$ = {
977
+ type: "activeEnd",
978
+ signalType: T.LINETYPE.ACTIVE_END,
979
+ actor: c[d - 1]
980
+ };
981
+ break;
982
+ case 32:
983
+ T.setDiagramTitle(c[d].substring(6)), this.$ = c[d].substring(6);
984
+ break;
985
+ case 33:
986
+ T.setDiagramTitle(c[d].substring(7)), this.$ = c[d].substring(7);
987
+ break;
988
+ case 34:
989
+ this.$ = c[d].trim(), T.setAccTitle(this.$);
990
+ break;
991
+ case 35:
992
+ case 36:
993
+ this.$ = c[d].trim(), T.setAccDescription(this.$);
994
+ break;
995
+ case 37:
996
+ c[d - 1].unshift({
997
+ type: "loopStart",
998
+ loopText: T.parseMessage(c[d - 2]),
999
+ signalType: T.LINETYPE.LOOP_START
1000
+ }), c[d - 1].push({
1001
+ type: "loopEnd",
1002
+ loopText: c[d - 2],
1003
+ signalType: T.LINETYPE.LOOP_END
1004
+ }), this.$ = c[d - 1];
1005
+ break;
1006
+ case 38:
1007
+ c[d - 1].unshift({
1008
+ type: "rectStart",
1009
+ color: T.parseMessage(c[d - 2]),
1010
+ signalType: T.LINETYPE.RECT_START
1011
+ }), c[d - 1].push({
1012
+ type: "rectEnd",
1013
+ color: T.parseMessage(c[d - 2]),
1014
+ signalType: T.LINETYPE.RECT_END
1015
+ }), this.$ = c[d - 1];
1016
+ break;
1017
+ case 39:
1018
+ c[d - 1].unshift({
1019
+ type: "optStart",
1020
+ optText: T.parseMessage(c[d - 2]),
1021
+ signalType: T.LINETYPE.OPT_START
1022
+ }), c[d - 1].push({
1023
+ type: "optEnd",
1024
+ optText: T.parseMessage(c[d - 2]),
1025
+ signalType: T.LINETYPE.OPT_END
1026
+ }), this.$ = c[d - 1];
1027
+ break;
1028
+ case 40:
1029
+ c[d - 1].unshift({
1030
+ type: "altStart",
1031
+ altText: T.parseMessage(c[d - 2]),
1032
+ signalType: T.LINETYPE.ALT_START
1033
+ }), c[d - 1].push({
1034
+ type: "altEnd",
1035
+ signalType: T.LINETYPE.ALT_END
1036
+ }), this.$ = c[d - 1];
1037
+ break;
1038
+ case 41:
1039
+ c[d - 1].unshift({
1040
+ type: "parStart",
1041
+ parText: T.parseMessage(c[d - 2]),
1042
+ signalType: T.LINETYPE.PAR_START
1043
+ }), c[d - 1].push({
1044
+ type: "parEnd",
1045
+ signalType: T.LINETYPE.PAR_END
1046
+ }), this.$ = c[d - 1];
1047
+ break;
1048
+ case 42:
1049
+ c[d - 1].unshift({
1050
+ type: "parStart",
1051
+ parText: T.parseMessage(c[d - 2]),
1052
+ signalType: T.LINETYPE.PAR_OVER_START
1053
+ }), c[d - 1].push({
1054
+ type: "parEnd",
1055
+ signalType: T.LINETYPE.PAR_END
1056
+ }), this.$ = c[d - 1];
1057
+ break;
1058
+ case 43:
1059
+ c[d - 1].unshift({
1060
+ type: "criticalStart",
1061
+ criticalText: T.parseMessage(c[d - 2]),
1062
+ signalType: T.LINETYPE.CRITICAL_START
1063
+ }), c[d - 1].push({
1064
+ type: "criticalEnd",
1065
+ signalType: T.LINETYPE.CRITICAL_END
1066
+ }), this.$ = c[d - 1];
1067
+ break;
1068
+ case 44:
1069
+ c[d - 1].unshift({
1070
+ type: "breakStart",
1071
+ breakText: T.parseMessage(c[d - 2]),
1072
+ signalType: T.LINETYPE.BREAK_START
1073
+ }), c[d - 1].push({
1074
+ type: "breakEnd",
1075
+ optText: T.parseMessage(c[d - 2]),
1076
+ signalType: T.LINETYPE.BREAK_END
1077
+ }), this.$ = c[d - 1];
1078
+ break;
1079
+ case 47:
1080
+ this.$ = c[d - 3].concat([
1081
+ {
1082
+ type: "option",
1083
+ optionText: T.parseMessage(c[d - 1]),
1084
+ signalType: T.LINETYPE.CRITICAL_OPTION
1085
+ },
1086
+ c[d]
1087
+ ]);
1088
+ break;
1089
+ case 49:
1090
+ this.$ = c[d - 3].concat([
1091
+ {
1092
+ type: "and",
1093
+ parText: T.parseMessage(c[d - 1]),
1094
+ signalType: T.LINETYPE.PAR_AND
1095
+ },
1096
+ c[d]
1097
+ ]);
1098
+ break;
1099
+ case 51:
1100
+ this.$ = c[d - 3].concat([
1101
+ {
1102
+ type: "else",
1103
+ altText: T.parseMessage(c[d - 1]),
1104
+ signalType: T.LINETYPE.ALT_ELSE
1105
+ },
1106
+ c[d]
1107
+ ]);
1108
+ break;
1109
+ case 52:
1110
+ c[d - 3].draw = "participant", c[d - 3].type = "addParticipant", c[d - 3].description = T.parseMessage(c[d - 1]), this.$ = c[d - 3];
1111
+ break;
1112
+ case 53:
1113
+ c[d - 1].draw = "participant", c[d - 1].type = "addParticipant", this.$ = c[d - 1];
1114
+ break;
1115
+ case 54:
1116
+ c[d - 3].draw = "actor", c[d - 3].type = "addParticipant", c[d - 3].description = T.parseMessage(c[d - 1]), this.$ = c[d - 3];
1117
+ break;
1118
+ case 55:
1119
+ c[d - 1].draw = "actor", c[d - 1].type = "addParticipant", this.$ = c[d - 1];
1120
+ break;
1121
+ case 56:
1122
+ c[d - 1].type = "destroyParticipant", this.$ = c[d - 1];
1123
+ break;
1124
+ case 57:
1125
+ this.$ = [
1126
+ c[d - 1],
1127
+ {
1128
+ type: "addNote",
1129
+ placement: c[d - 2],
1130
+ actor: c[d - 1].actor,
1131
+ text: c[d]
1132
+ }
1133
+ ];
1134
+ break;
1135
+ case 58:
1136
+ c[d - 2] = [].concat(c[d - 1], c[d - 1]).slice(0, 2), c[d - 2][0] = c[d - 2][0].actor, c[d - 2][1] = c[d - 2][1].actor, this.$ = [
1137
+ c[d - 1],
1138
+ {
1139
+ type: "addNote",
1140
+ placement: T.PLACEMENT.OVER,
1141
+ actor: c[d - 2].slice(0, 2),
1142
+ text: c[d]
1143
+ }
1144
+ ];
1145
+ break;
1146
+ case 59:
1147
+ this.$ = [
1148
+ c[d - 1],
1149
+ {
1150
+ type: "addLinks",
1151
+ actor: c[d - 1].actor,
1152
+ text: c[d]
1153
+ }
1154
+ ];
1155
+ break;
1156
+ case 60:
1157
+ this.$ = [
1158
+ c[d - 1],
1159
+ {
1160
+ type: "addALink",
1161
+ actor: c[d - 1].actor,
1162
+ text: c[d]
1163
+ }
1164
+ ];
1165
+ break;
1166
+ case 61:
1167
+ this.$ = [
1168
+ c[d - 1],
1169
+ {
1170
+ type: "addProperties",
1171
+ actor: c[d - 1].actor,
1172
+ text: c[d]
1173
+ }
1174
+ ];
1175
+ break;
1176
+ case 62:
1177
+ this.$ = [
1178
+ c[d - 1],
1179
+ {
1180
+ type: "addDetails",
1181
+ actor: c[d - 1].actor,
1182
+ text: c[d]
1183
+ }
1184
+ ];
1185
+ break;
1186
+ case 65:
1187
+ this.$ = [
1188
+ c[d - 2],
1189
+ c[d]
1190
+ ];
1191
+ break;
1192
+ case 66:
1193
+ this.$ = c[d];
1194
+ break;
1195
+ case 67:
1196
+ this.$ = T.PLACEMENT.LEFTOF;
1197
+ break;
1198
+ case 68:
1199
+ this.$ = T.PLACEMENT.RIGHTOF;
1200
+ break;
1201
+ case 69:
1202
+ this.$ = [
1203
+ c[d - 4],
1204
+ c[d - 1],
1205
+ {
1206
+ type: "addMessage",
1207
+ from: c[d - 4].actor,
1208
+ to: c[d - 1].actor,
1209
+ signalType: c[d - 3],
1210
+ msg: c[d]
1211
+ },
1212
+ {
1213
+ type: "activeStart",
1214
+ signalType: T.LINETYPE.ACTIVE_START,
1215
+ actor: c[d - 1]
1216
+ }
1217
+ ];
1218
+ break;
1219
+ case 70:
1220
+ this.$ = [
1221
+ c[d - 4],
1222
+ c[d - 1],
1223
+ {
1224
+ type: "addMessage",
1225
+ from: c[d - 4].actor,
1226
+ to: c[d - 1].actor,
1227
+ signalType: c[d - 3],
1228
+ msg: c[d]
1229
+ },
1230
+ {
1231
+ type: "activeEnd",
1232
+ signalType: T.LINETYPE.ACTIVE_END,
1233
+ actor: c[d - 4]
1234
+ }
1235
+ ];
1236
+ break;
1237
+ case 71:
1238
+ this.$ = [
1239
+ c[d - 3],
1240
+ c[d - 1],
1241
+ {
1242
+ type: "addMessage",
1243
+ from: c[d - 3].actor,
1244
+ to: c[d - 1].actor,
1245
+ signalType: c[d - 2],
1246
+ msg: c[d]
1247
+ }
1248
+ ];
1249
+ break;
1250
+ case 72:
1251
+ this.$ = {
1252
+ type: "addParticipant",
1253
+ actor: c[d]
1254
+ };
1255
+ break;
1256
+ case 73:
1257
+ this.$ = T.LINETYPE.SOLID_OPEN;
1258
+ break;
1259
+ case 74:
1260
+ this.$ = T.LINETYPE.DOTTED_OPEN;
1261
+ break;
1262
+ case 75:
1263
+ this.$ = T.LINETYPE.SOLID;
1264
+ break;
1265
+ case 76:
1266
+ this.$ = T.LINETYPE.DOTTED;
1267
+ break;
1268
+ case 77:
1269
+ this.$ = T.LINETYPE.SOLID_CROSS;
1270
+ break;
1271
+ case 78:
1272
+ this.$ = T.LINETYPE.DOTTED_CROSS;
1273
+ break;
1274
+ case 79:
1275
+ this.$ = T.LINETYPE.SOLID_POINT;
1276
+ break;
1277
+ case 80:
1278
+ this.$ = T.LINETYPE.DOTTED_POINT;
1279
+ break;
1280
+ case 81:
1281
+ this.$ = T.parseMessage(c[d].trim().substring(1));
1282
+ break;
1283
+ case 82:
1284
+ T.parseDirective("%%{", "open_directive");
1285
+ break;
1286
+ case 83:
1287
+ T.parseDirective(c[d], "type_directive");
1288
+ break;
1289
+ case 84:
1290
+ c[d] = c[d].trim().replace(/'/g, '"'), T.parseDirective(c[d], "arg_directive");
1291
+ break;
1292
+ case 85:
1293
+ T.parseDirective("}%%", "close_directive", "sequence");
1294
+ break;
1295
+ }
1296
+ },
1297
+ table: [
1298
+ {
1299
+ 3: 1,
1300
+ 4: e,
1301
+ 5: o,
1302
+ 6: 4,
1303
+ 7: n,
1304
+ 14: 6,
1305
+ 86: i
1306
+ },
1307
+ {
1308
+ 1: [
1309
+ 3
1310
+ ]
1311
+ },
1312
+ {
1313
+ 3: 8,
1314
+ 4: e,
1315
+ 5: o,
1316
+ 6: 4,
1317
+ 7: n,
1318
+ 14: 6,
1319
+ 86: i
1320
+ },
1321
+ {
1322
+ 3: 9,
1323
+ 4: e,
1324
+ 5: o,
1325
+ 6: 4,
1326
+ 7: n,
1327
+ 14: 6,
1328
+ 86: i
1329
+ },
1330
+ {
1331
+ 3: 10,
1332
+ 4: e,
1333
+ 5: o,
1334
+ 6: 4,
1335
+ 7: n,
1336
+ 14: 6,
1337
+ 86: i
1338
+ },
1339
+ t([
1340
+ 1,
1341
+ 4,
1342
+ 5,
1343
+ 19,
1344
+ 20,
1345
+ 24,
1346
+ 27,
1347
+ 29,
1348
+ 35,
1349
+ 36,
1350
+ 37,
1351
+ 39,
1352
+ 41,
1353
+ 42,
1354
+ 43,
1355
+ 44,
1356
+ 45,
1357
+ 47,
1358
+ 49,
1359
+ 50,
1360
+ 52,
1361
+ 56,
1362
+ 58,
1363
+ 59,
1364
+ 60,
1365
+ 65,
1366
+ 66,
1367
+ 67,
1368
+ 68,
1369
+ 76,
1370
+ 86
1371
+ ], s, {
1372
+ 8: 11
1373
+ }),
1374
+ {
1375
+ 15: 12,
1376
+ 87: [
1377
+ 1,
1378
+ 13
1379
+ ]
1380
+ },
1381
+ {
1382
+ 87: [
1383
+ 2,
1384
+ 82
1385
+ ]
1386
+ },
1387
+ {
1388
+ 1: [
1389
+ 2,
1390
+ 1
1391
+ ]
1392
+ },
1393
+ {
1394
+ 1: [
1395
+ 2,
1396
+ 2
1397
+ ]
1398
+ },
1399
+ {
1400
+ 1: [
1401
+ 2,
1402
+ 3
1403
+ ]
1404
+ },
1405
+ {
1406
+ 1: [
1407
+ 2,
1408
+ 4
1409
+ ],
1410
+ 4: l,
1411
+ 5: h,
1412
+ 6: 43,
1413
+ 9: 14,
1414
+ 10: 16,
1415
+ 13: 18,
1416
+ 14: 6,
1417
+ 19: u,
1418
+ 20: r,
1419
+ 23: 21,
1420
+ 24: g,
1421
+ 27: y,
1422
+ 28: 47,
1423
+ 29: p,
1424
+ 30: 25,
1425
+ 31: 26,
1426
+ 32: 27,
1427
+ 33: 28,
1428
+ 34: 29,
1429
+ 35: x,
1430
+ 36: b,
1431
+ 37: P,
1432
+ 39: v,
1433
+ 41: D,
1434
+ 42: S,
1435
+ 43: W,
1436
+ 44: M,
1437
+ 45: nt,
1438
+ 47: z,
1439
+ 49: X,
1440
+ 50: Q,
1441
+ 52: j,
1442
+ 56: F,
1443
+ 58: O,
1444
+ 59: q,
1445
+ 60: H,
1446
+ 65: J,
1447
+ 66: $,
1448
+ 67: tt,
1449
+ 68: E,
1450
+ 76: I,
1451
+ 86: i
1452
+ },
1453
+ {
1454
+ 16: 54,
1455
+ 17: [
1456
+ 1,
1457
+ 55
1458
+ ],
1459
+ 89: A
1460
+ },
1461
+ t([
1462
+ 17,
1463
+ 89
1464
+ ], [
1465
+ 2,
1466
+ 83
1467
+ ]),
1468
+ t(L, [
1469
+ 2,
1470
+ 6
1471
+ ]),
1472
+ {
1473
+ 6: 43,
1474
+ 10: 57,
1475
+ 13: 18,
1476
+ 14: 6,
1477
+ 19: u,
1478
+ 20: r,
1479
+ 23: 21,
1480
+ 24: g,
1481
+ 27: y,
1482
+ 28: 47,
1483
+ 29: p,
1484
+ 30: 25,
1485
+ 31: 26,
1486
+ 32: 27,
1487
+ 33: 28,
1488
+ 34: 29,
1489
+ 35: x,
1490
+ 36: b,
1491
+ 37: P,
1492
+ 39: v,
1493
+ 41: D,
1494
+ 42: S,
1495
+ 43: W,
1496
+ 44: M,
1497
+ 45: nt,
1498
+ 47: z,
1499
+ 49: X,
1500
+ 50: Q,
1501
+ 52: j,
1502
+ 56: F,
1503
+ 58: O,
1504
+ 59: q,
1505
+ 60: H,
1506
+ 65: J,
1507
+ 66: $,
1508
+ 67: tt,
1509
+ 68: E,
1510
+ 76: I,
1511
+ 86: i
1512
+ },
1513
+ t(L, [
1514
+ 2,
1515
+ 8
1516
+ ]),
1517
+ t(L, [
1518
+ 2,
1519
+ 9
1520
+ ]),
1521
+ t(L, [
1522
+ 2,
1523
+ 17
1524
+ ]),
1525
+ {
1526
+ 13: 58,
1527
+ 56: F,
1528
+ 58: O,
1529
+ 59: q
1530
+ },
1531
+ {
1532
+ 21: [
1533
+ 1,
1534
+ 59
1535
+ ]
1536
+ },
1537
+ {
1538
+ 5: [
1539
+ 1,
1540
+ 60
1541
+ ]
1542
+ },
1543
+ {
1544
+ 5: [
1545
+ 1,
1546
+ 63
1547
+ ],
1548
+ 25: [
1549
+ 1,
1550
+ 61
1551
+ ],
1552
+ 26: [
1553
+ 1,
1554
+ 62
1555
+ ]
1556
+ },
1557
+ {
1558
+ 28: 64,
1559
+ 76: I
1560
+ },
1561
+ {
1562
+ 28: 65,
1563
+ 76: I
1564
+ },
1565
+ {
1566
+ 5: [
1567
+ 1,
1568
+ 66
1569
+ ]
1570
+ },
1571
+ {
1572
+ 5: [
1573
+ 1,
1574
+ 67
1575
+ ]
1576
+ },
1577
+ {
1578
+ 5: [
1579
+ 1,
1580
+ 68
1581
+ ]
1582
+ },
1583
+ {
1584
+ 5: [
1585
+ 1,
1586
+ 69
1587
+ ]
1588
+ },
1589
+ {
1590
+ 5: [
1591
+ 1,
1592
+ 70
1593
+ ]
1594
+ },
1595
+ t(L, [
1596
+ 2,
1597
+ 32
1598
+ ]),
1599
+ t(L, [
1600
+ 2,
1601
+ 33
1602
+ ]),
1603
+ {
1604
+ 38: [
1605
+ 1,
1606
+ 71
1607
+ ]
1608
+ },
1609
+ {
1610
+ 40: [
1611
+ 1,
1612
+ 72
1613
+ ]
1614
+ },
1615
+ t(L, [
1616
+ 2,
1617
+ 36
1618
+ ]),
1619
+ {
1620
+ 21: [
1621
+ 1,
1622
+ 73
1623
+ ]
1624
+ },
1625
+ {
1626
+ 21: [
1627
+ 1,
1628
+ 74
1629
+ ]
1630
+ },
1631
+ {
1632
+ 21: [
1633
+ 1,
1634
+ 75
1635
+ ]
1636
+ },
1637
+ {
1638
+ 21: [
1639
+ 1,
1640
+ 76
1641
+ ]
1642
+ },
1643
+ {
1644
+ 21: [
1645
+ 1,
1646
+ 77
1647
+ ]
1648
+ },
1649
+ {
1650
+ 21: [
1651
+ 1,
1652
+ 78
1653
+ ]
1654
+ },
1655
+ {
1656
+ 21: [
1657
+ 1,
1658
+ 79
1659
+ ]
1660
+ },
1661
+ {
1662
+ 21: [
1663
+ 1,
1664
+ 80
1665
+ ]
1666
+ },
1667
+ t(L, [
1668
+ 2,
1669
+ 45
1670
+ ]),
1671
+ {
1672
+ 28: 81,
1673
+ 76: I
1674
+ },
1675
+ {
1676
+ 28: 82,
1677
+ 76: I
1678
+ },
1679
+ {
1680
+ 28: 83,
1681
+ 76: I
1682
+ },
1683
+ {
1684
+ 73: 84,
1685
+ 77: [
1686
+ 1,
1687
+ 85
1688
+ ],
1689
+ 78: [
1690
+ 1,
1691
+ 86
1692
+ ],
1693
+ 79: [
1694
+ 1,
1695
+ 87
1696
+ ],
1697
+ 80: [
1698
+ 1,
1699
+ 88
1700
+ ],
1701
+ 81: [
1702
+ 1,
1703
+ 89
1704
+ ],
1705
+ 82: [
1706
+ 1,
1707
+ 90
1708
+ ],
1709
+ 83: [
1710
+ 1,
1711
+ 91
1712
+ ],
1713
+ 84: [
1714
+ 1,
1715
+ 92
1716
+ ]
1717
+ },
1718
+ {
1719
+ 61: 93,
1720
+ 63: [
1721
+ 1,
1722
+ 94
1723
+ ],
1724
+ 71: [
1725
+ 1,
1726
+ 95
1727
+ ],
1728
+ 72: [
1729
+ 1,
1730
+ 96
1731
+ ]
1732
+ },
1733
+ {
1734
+ 28: 97,
1735
+ 76: I
1736
+ },
1737
+ {
1738
+ 28: 98,
1739
+ 76: I
1740
+ },
1741
+ {
1742
+ 28: 99,
1743
+ 76: I
1744
+ },
1745
+ {
1746
+ 28: 100,
1747
+ 76: I
1748
+ },
1749
+ t([
1750
+ 5,
1751
+ 57,
1752
+ 70,
1753
+ 77,
1754
+ 78,
1755
+ 79,
1756
+ 80,
1757
+ 81,
1758
+ 82,
1759
+ 83,
1760
+ 84,
1761
+ 85
1762
+ ], [
1763
+ 2,
1764
+ 72
1765
+ ]),
1766
+ {
1767
+ 5: [
1768
+ 1,
1769
+ 101
1770
+ ]
1771
+ },
1772
+ {
1773
+ 18: 102,
1774
+ 88: [
1775
+ 1,
1776
+ 103
1777
+ ]
1778
+ },
1779
+ {
1780
+ 5: [
1781
+ 2,
1782
+ 85
1783
+ ]
1784
+ },
1785
+ t(L, [
1786
+ 2,
1787
+ 7
1788
+ ]),
1789
+ t(L, [
1790
+ 2,
1791
+ 18
1792
+ ]),
1793
+ t(U, [
1794
+ 2,
1795
+ 10
1796
+ ], {
1797
+ 11: 104
1798
+ }),
1799
+ t(L, [
1800
+ 2,
1801
+ 20
1802
+ ]),
1803
+ {
1804
+ 5: [
1805
+ 1,
1806
+ 106
1807
+ ],
1808
+ 25: [
1809
+ 1,
1810
+ 105
1811
+ ]
1812
+ },
1813
+ {
1814
+ 5: [
1815
+ 1,
1816
+ 107
1817
+ ]
1818
+ },
1819
+ t(L, [
1820
+ 2,
1821
+ 24
1822
+ ]),
1823
+ {
1824
+ 5: [
1825
+ 1,
1826
+ 108
1827
+ ]
1828
+ },
1829
+ {
1830
+ 5: [
1831
+ 1,
1832
+ 109
1833
+ ]
1834
+ },
1835
+ t(L, [
1836
+ 2,
1837
+ 27
1838
+ ]),
1839
+ t(L, [
1840
+ 2,
1841
+ 28
1842
+ ]),
1843
+ t(L, [
1844
+ 2,
1845
+ 29
1846
+ ]),
1847
+ t(L, [
1848
+ 2,
1849
+ 30
1850
+ ]),
1851
+ t(L, [
1852
+ 2,
1853
+ 31
1854
+ ]),
1855
+ t(L, [
1856
+ 2,
1857
+ 34
1858
+ ]),
1859
+ t(L, [
1860
+ 2,
1861
+ 35
1862
+ ]),
1863
+ t(N, s, {
1864
+ 8: 110
1865
+ }),
1866
+ t(N, s, {
1867
+ 8: 111
1868
+ }),
1869
+ t(N, s, {
1870
+ 8: 112
1871
+ }),
1872
+ t(te, s, {
1873
+ 46: 113,
1874
+ 8: 114
1875
+ }),
1876
+ t(Ct, s, {
1877
+ 48: 115,
1878
+ 8: 116
1879
+ }),
1880
+ t(Ct, s, {
1881
+ 8: 116,
1882
+ 48: 117
1883
+ }),
1884
+ t(ee, s, {
1885
+ 51: 118,
1886
+ 8: 119
1887
+ }),
1888
+ t(N, s, {
1889
+ 8: 120
1890
+ }),
1891
+ {
1892
+ 5: [
1893
+ 1,
1894
+ 122
1895
+ ],
1896
+ 57: [
1897
+ 1,
1898
+ 121
1899
+ ]
1900
+ },
1901
+ {
1902
+ 5: [
1903
+ 1,
1904
+ 124
1905
+ ],
1906
+ 57: [
1907
+ 1,
1908
+ 123
1909
+ ]
1910
+ },
1911
+ {
1912
+ 5: [
1913
+ 1,
1914
+ 125
1915
+ ]
1916
+ },
1917
+ {
1918
+ 28: 128,
1919
+ 74: [
1920
+ 1,
1921
+ 126
1922
+ ],
1923
+ 75: [
1924
+ 1,
1925
+ 127
1926
+ ],
1927
+ 76: I
1928
+ },
1929
+ t(ht, [
1930
+ 2,
1931
+ 73
1932
+ ]),
1933
+ t(ht, [
1934
+ 2,
1935
+ 74
1936
+ ]),
1937
+ t(ht, [
1938
+ 2,
1939
+ 75
1940
+ ]),
1941
+ t(ht, [
1942
+ 2,
1943
+ 76
1944
+ ]),
1945
+ t(ht, [
1946
+ 2,
1947
+ 77
1948
+ ]),
1949
+ t(ht, [
1950
+ 2,
1951
+ 78
1952
+ ]),
1953
+ t(ht, [
1954
+ 2,
1955
+ 79
1956
+ ]),
1957
+ t(ht, [
1958
+ 2,
1959
+ 80
1960
+ ]),
1961
+ {
1962
+ 28: 129,
1963
+ 76: I
1964
+ },
1965
+ {
1966
+ 28: 131,
1967
+ 64: 130,
1968
+ 76: I
1969
+ },
1970
+ {
1971
+ 76: [
1972
+ 2,
1973
+ 67
1974
+ ]
1975
+ },
1976
+ {
1977
+ 76: [
1978
+ 2,
1979
+ 68
1980
+ ]
1981
+ },
1982
+ {
1983
+ 62: 132,
1984
+ 85: rt
1985
+ },
1986
+ {
1987
+ 62: 134,
1988
+ 85: rt
1989
+ },
1990
+ {
1991
+ 62: 135,
1992
+ 85: rt
1993
+ },
1994
+ {
1995
+ 62: 136,
1996
+ 85: rt
1997
+ },
1998
+ t(ne, [
1999
+ 2,
2000
+ 15
2001
+ ]),
2002
+ {
2003
+ 16: 137,
2004
+ 89: A
2005
+ },
2006
+ {
2007
+ 89: [
2008
+ 2,
2009
+ 84
2010
+ ]
2011
+ },
2012
+ {
2013
+ 4: [
2014
+ 1,
2015
+ 140
2016
+ ],
2017
+ 5: [
2018
+ 1,
2019
+ 142
2020
+ ],
2021
+ 12: 139,
2022
+ 13: 141,
2023
+ 22: [
2024
+ 1,
2025
+ 138
2026
+ ],
2027
+ 56: F,
2028
+ 58: O,
2029
+ 59: q
2030
+ },
2031
+ {
2032
+ 5: [
2033
+ 1,
2034
+ 143
2035
+ ]
2036
+ },
2037
+ t(L, [
2038
+ 2,
2039
+ 22
2040
+ ]),
2041
+ t(L, [
2042
+ 2,
2043
+ 23
2044
+ ]),
2045
+ t(L, [
2046
+ 2,
2047
+ 25
2048
+ ]),
2049
+ t(L, [
2050
+ 2,
2051
+ 26
2052
+ ]),
2053
+ {
2054
+ 4: l,
2055
+ 5: h,
2056
+ 6: 43,
2057
+ 9: 14,
2058
+ 10: 16,
2059
+ 13: 18,
2060
+ 14: 6,
2061
+ 19: u,
2062
+ 20: r,
2063
+ 22: [
2064
+ 1,
2065
+ 144
2066
+ ],
2067
+ 23: 21,
2068
+ 24: g,
2069
+ 27: y,
2070
+ 28: 47,
2071
+ 29: p,
2072
+ 30: 25,
2073
+ 31: 26,
2074
+ 32: 27,
2075
+ 33: 28,
2076
+ 34: 29,
2077
+ 35: x,
2078
+ 36: b,
2079
+ 37: P,
2080
+ 39: v,
2081
+ 41: D,
2082
+ 42: S,
2083
+ 43: W,
2084
+ 44: M,
2085
+ 45: nt,
2086
+ 47: z,
2087
+ 49: X,
2088
+ 50: Q,
2089
+ 52: j,
2090
+ 56: F,
2091
+ 58: O,
2092
+ 59: q,
2093
+ 60: H,
2094
+ 65: J,
2095
+ 66: $,
2096
+ 67: tt,
2097
+ 68: E,
2098
+ 76: I,
2099
+ 86: i
2100
+ },
2101
+ {
2102
+ 4: l,
2103
+ 5: h,
2104
+ 6: 43,
2105
+ 9: 14,
2106
+ 10: 16,
2107
+ 13: 18,
2108
+ 14: 6,
2109
+ 19: u,
2110
+ 20: r,
2111
+ 22: [
2112
+ 1,
2113
+ 145
2114
+ ],
2115
+ 23: 21,
2116
+ 24: g,
2117
+ 27: y,
2118
+ 28: 47,
2119
+ 29: p,
2120
+ 30: 25,
2121
+ 31: 26,
2122
+ 32: 27,
2123
+ 33: 28,
2124
+ 34: 29,
2125
+ 35: x,
2126
+ 36: b,
2127
+ 37: P,
2128
+ 39: v,
2129
+ 41: D,
2130
+ 42: S,
2131
+ 43: W,
2132
+ 44: M,
2133
+ 45: nt,
2134
+ 47: z,
2135
+ 49: X,
2136
+ 50: Q,
2137
+ 52: j,
2138
+ 56: F,
2139
+ 58: O,
2140
+ 59: q,
2141
+ 60: H,
2142
+ 65: J,
2143
+ 66: $,
2144
+ 67: tt,
2145
+ 68: E,
2146
+ 76: I,
2147
+ 86: i
2148
+ },
2149
+ {
2150
+ 4: l,
2151
+ 5: h,
2152
+ 6: 43,
2153
+ 9: 14,
2154
+ 10: 16,
2155
+ 13: 18,
2156
+ 14: 6,
2157
+ 19: u,
2158
+ 20: r,
2159
+ 22: [
2160
+ 1,
2161
+ 146
2162
+ ],
2163
+ 23: 21,
2164
+ 24: g,
2165
+ 27: y,
2166
+ 28: 47,
2167
+ 29: p,
2168
+ 30: 25,
2169
+ 31: 26,
2170
+ 32: 27,
2171
+ 33: 28,
2172
+ 34: 29,
2173
+ 35: x,
2174
+ 36: b,
2175
+ 37: P,
2176
+ 39: v,
2177
+ 41: D,
2178
+ 42: S,
2179
+ 43: W,
2180
+ 44: M,
2181
+ 45: nt,
2182
+ 47: z,
2183
+ 49: X,
2184
+ 50: Q,
2185
+ 52: j,
2186
+ 56: F,
2187
+ 58: O,
2188
+ 59: q,
2189
+ 60: H,
2190
+ 65: J,
2191
+ 66: $,
2192
+ 67: tt,
2193
+ 68: E,
2194
+ 76: I,
2195
+ 86: i
2196
+ },
2197
+ {
2198
+ 22: [
2199
+ 1,
2200
+ 147
2201
+ ]
2202
+ },
2203
+ {
2204
+ 4: l,
2205
+ 5: h,
2206
+ 6: 43,
2207
+ 9: 14,
2208
+ 10: 16,
2209
+ 13: 18,
2210
+ 14: 6,
2211
+ 19: u,
2212
+ 20: r,
2213
+ 22: [
2214
+ 2,
2215
+ 50
2216
+ ],
2217
+ 23: 21,
2218
+ 24: g,
2219
+ 27: y,
2220
+ 28: 47,
2221
+ 29: p,
2222
+ 30: 25,
2223
+ 31: 26,
2224
+ 32: 27,
2225
+ 33: 28,
2226
+ 34: 29,
2227
+ 35: x,
2228
+ 36: b,
2229
+ 37: P,
2230
+ 39: v,
2231
+ 41: D,
2232
+ 42: S,
2233
+ 43: W,
2234
+ 44: M,
2235
+ 45: nt,
2236
+ 47: z,
2237
+ 49: X,
2238
+ 50: Q,
2239
+ 52: j,
2240
+ 55: [
2241
+ 1,
2242
+ 148
2243
+ ],
2244
+ 56: F,
2245
+ 58: O,
2246
+ 59: q,
2247
+ 60: H,
2248
+ 65: J,
2249
+ 66: $,
2250
+ 67: tt,
2251
+ 68: E,
2252
+ 76: I,
2253
+ 86: i
2254
+ },
2255
+ {
2256
+ 22: [
2257
+ 1,
2258
+ 149
2259
+ ]
2260
+ },
2261
+ {
2262
+ 4: l,
2263
+ 5: h,
2264
+ 6: 43,
2265
+ 9: 14,
2266
+ 10: 16,
2267
+ 13: 18,
2268
+ 14: 6,
2269
+ 19: u,
2270
+ 20: r,
2271
+ 22: [
2272
+ 2,
2273
+ 48
2274
+ ],
2275
+ 23: 21,
2276
+ 24: g,
2277
+ 27: y,
2278
+ 28: 47,
2279
+ 29: p,
2280
+ 30: 25,
2281
+ 31: 26,
2282
+ 32: 27,
2283
+ 33: 28,
2284
+ 34: 29,
2285
+ 35: x,
2286
+ 36: b,
2287
+ 37: P,
2288
+ 39: v,
2289
+ 41: D,
2290
+ 42: S,
2291
+ 43: W,
2292
+ 44: M,
2293
+ 45: nt,
2294
+ 47: z,
2295
+ 49: X,
2296
+ 50: Q,
2297
+ 52: j,
2298
+ 54: [
2299
+ 1,
2300
+ 150
2301
+ ],
2302
+ 56: F,
2303
+ 58: O,
2304
+ 59: q,
2305
+ 60: H,
2306
+ 65: J,
2307
+ 66: $,
2308
+ 67: tt,
2309
+ 68: E,
2310
+ 76: I,
2311
+ 86: i
2312
+ },
2313
+ {
2314
+ 22: [
2315
+ 1,
2316
+ 151
2317
+ ]
2318
+ },
2319
+ {
2320
+ 22: [
2321
+ 1,
2322
+ 152
2323
+ ]
2324
+ },
2325
+ {
2326
+ 4: l,
2327
+ 5: h,
2328
+ 6: 43,
2329
+ 9: 14,
2330
+ 10: 16,
2331
+ 13: 18,
2332
+ 14: 6,
2333
+ 19: u,
2334
+ 20: r,
2335
+ 22: [
2336
+ 2,
2337
+ 46
2338
+ ],
2339
+ 23: 21,
2340
+ 24: g,
2341
+ 27: y,
2342
+ 28: 47,
2343
+ 29: p,
2344
+ 30: 25,
2345
+ 31: 26,
2346
+ 32: 27,
2347
+ 33: 28,
2348
+ 34: 29,
2349
+ 35: x,
2350
+ 36: b,
2351
+ 37: P,
2352
+ 39: v,
2353
+ 41: D,
2354
+ 42: S,
2355
+ 43: W,
2356
+ 44: M,
2357
+ 45: nt,
2358
+ 47: z,
2359
+ 49: X,
2360
+ 50: Q,
2361
+ 52: j,
2362
+ 53: [
2363
+ 1,
2364
+ 153
2365
+ ],
2366
+ 56: F,
2367
+ 58: O,
2368
+ 59: q,
2369
+ 60: H,
2370
+ 65: J,
2371
+ 66: $,
2372
+ 67: tt,
2373
+ 68: E,
2374
+ 76: I,
2375
+ 86: i
2376
+ },
2377
+ {
2378
+ 4: l,
2379
+ 5: h,
2380
+ 6: 43,
2381
+ 9: 14,
2382
+ 10: 16,
2383
+ 13: 18,
2384
+ 14: 6,
2385
+ 19: u,
2386
+ 20: r,
2387
+ 22: [
2388
+ 1,
2389
+ 154
2390
+ ],
2391
+ 23: 21,
2392
+ 24: g,
2393
+ 27: y,
2394
+ 28: 47,
2395
+ 29: p,
2396
+ 30: 25,
2397
+ 31: 26,
2398
+ 32: 27,
2399
+ 33: 28,
2400
+ 34: 29,
2401
+ 35: x,
2402
+ 36: b,
2403
+ 37: P,
2404
+ 39: v,
2405
+ 41: D,
2406
+ 42: S,
2407
+ 43: W,
2408
+ 44: M,
2409
+ 45: nt,
2410
+ 47: z,
2411
+ 49: X,
2412
+ 50: Q,
2413
+ 52: j,
2414
+ 56: F,
2415
+ 58: O,
2416
+ 59: q,
2417
+ 60: H,
2418
+ 65: J,
2419
+ 66: $,
2420
+ 67: tt,
2421
+ 68: E,
2422
+ 76: I,
2423
+ 86: i
2424
+ },
2425
+ {
2426
+ 21: [
2427
+ 1,
2428
+ 155
2429
+ ]
2430
+ },
2431
+ t(L, [
2432
+ 2,
2433
+ 53
2434
+ ]),
2435
+ {
2436
+ 21: [
2437
+ 1,
2438
+ 156
2439
+ ]
2440
+ },
2441
+ t(L, [
2442
+ 2,
2443
+ 55
2444
+ ]),
2445
+ t(L, [
2446
+ 2,
2447
+ 56
2448
+ ]),
2449
+ {
2450
+ 28: 157,
2451
+ 76: I
2452
+ },
2453
+ {
2454
+ 28: 158,
2455
+ 76: I
2456
+ },
2457
+ {
2458
+ 62: 159,
2459
+ 85: rt
2460
+ },
2461
+ {
2462
+ 62: 160,
2463
+ 85: rt
2464
+ },
2465
+ {
2466
+ 62: 161,
2467
+ 85: rt
2468
+ },
2469
+ {
2470
+ 70: [
2471
+ 1,
2472
+ 162
2473
+ ],
2474
+ 85: [
2475
+ 2,
2476
+ 66
2477
+ ]
2478
+ },
2479
+ {
2480
+ 5: [
2481
+ 2,
2482
+ 59
2483
+ ]
2484
+ },
2485
+ {
2486
+ 5: [
2487
+ 2,
2488
+ 81
2489
+ ]
2490
+ },
2491
+ {
2492
+ 5: [
2493
+ 2,
2494
+ 60
2495
+ ]
2496
+ },
2497
+ {
2498
+ 5: [
2499
+ 2,
2500
+ 61
2501
+ ]
2502
+ },
2503
+ {
2504
+ 5: [
2505
+ 2,
2506
+ 62
2507
+ ]
2508
+ },
2509
+ {
2510
+ 5: [
2511
+ 1,
2512
+ 163
2513
+ ]
2514
+ },
2515
+ t(L, [
2516
+ 2,
2517
+ 19
2518
+ ]),
2519
+ t(U, [
2520
+ 2,
2521
+ 11
2522
+ ]),
2523
+ {
2524
+ 13: 164,
2525
+ 56: F,
2526
+ 58: O,
2527
+ 59: q
2528
+ },
2529
+ t(U, [
2530
+ 2,
2531
+ 13
2532
+ ]),
2533
+ t(U, [
2534
+ 2,
2535
+ 14
2536
+ ]),
2537
+ t(L, [
2538
+ 2,
2539
+ 21
2540
+ ]),
2541
+ t(L, [
2542
+ 2,
2543
+ 37
2544
+ ]),
2545
+ t(L, [
2546
+ 2,
2547
+ 38
2548
+ ]),
2549
+ t(L, [
2550
+ 2,
2551
+ 39
2552
+ ]),
2553
+ t(L, [
2554
+ 2,
2555
+ 40
2556
+ ]),
2557
+ {
2558
+ 21: [
2559
+ 1,
2560
+ 165
2561
+ ]
2562
+ },
2563
+ t(L, [
2564
+ 2,
2565
+ 41
2566
+ ]),
2567
+ {
2568
+ 21: [
2569
+ 1,
2570
+ 166
2571
+ ]
2572
+ },
2573
+ t(L, [
2574
+ 2,
2575
+ 42
2576
+ ]),
2577
+ t(L, [
2578
+ 2,
2579
+ 43
2580
+ ]),
2581
+ {
2582
+ 21: [
2583
+ 1,
2584
+ 167
2585
+ ]
2586
+ },
2587
+ t(L, [
2588
+ 2,
2589
+ 44
2590
+ ]),
2591
+ {
2592
+ 5: [
2593
+ 1,
2594
+ 168
2595
+ ]
2596
+ },
2597
+ {
2598
+ 5: [
2599
+ 1,
2600
+ 169
2601
+ ]
2602
+ },
2603
+ {
2604
+ 62: 170,
2605
+ 85: rt
2606
+ },
2607
+ {
2608
+ 62: 171,
2609
+ 85: rt
2610
+ },
2611
+ {
2612
+ 5: [
2613
+ 2,
2614
+ 71
2615
+ ]
2616
+ },
2617
+ {
2618
+ 5: [
2619
+ 2,
2620
+ 57
2621
+ ]
2622
+ },
2623
+ {
2624
+ 5: [
2625
+ 2,
2626
+ 58
2627
+ ]
2628
+ },
2629
+ {
2630
+ 28: 172,
2631
+ 76: I
2632
+ },
2633
+ t(ne, [
2634
+ 2,
2635
+ 16
2636
+ ]),
2637
+ t(U, [
2638
+ 2,
2639
+ 12
2640
+ ]),
2641
+ t(te, s, {
2642
+ 8: 114,
2643
+ 46: 173
2644
+ }),
2645
+ t(Ct, s, {
2646
+ 8: 116,
2647
+ 48: 174
2648
+ }),
2649
+ t(ee, s, {
2650
+ 8: 119,
2651
+ 51: 175
2652
+ }),
2653
+ t(L, [
2654
+ 2,
2655
+ 52
2656
+ ]),
2657
+ t(L, [
2658
+ 2,
2659
+ 54
2660
+ ]),
2661
+ {
2662
+ 5: [
2663
+ 2,
2664
+ 69
2665
+ ]
2666
+ },
2667
+ {
2668
+ 5: [
2669
+ 2,
2670
+ 70
2671
+ ]
2672
+ },
2673
+ {
2674
+ 85: [
2675
+ 2,
2676
+ 65
2677
+ ]
2678
+ },
2679
+ {
2680
+ 22: [
2681
+ 2,
2682
+ 51
2683
+ ]
2684
+ },
2685
+ {
2686
+ 22: [
2687
+ 2,
2688
+ 49
2689
+ ]
2690
+ },
2691
+ {
2692
+ 22: [
2693
+ 2,
2694
+ 47
2695
+ ]
2696
+ }
2697
+ ],
2698
+ defaultActions: {
2699
+ 7: [
2700
+ 2,
2701
+ 82
2702
+ ],
2703
+ 8: [
2704
+ 2,
2705
+ 1
2706
+ ],
2707
+ 9: [
2708
+ 2,
2709
+ 2
2710
+ ],
2711
+ 10: [
2712
+ 2,
2713
+ 3
2714
+ ],
2715
+ 56: [
2716
+ 2,
2717
+ 85
2718
+ ],
2719
+ 95: [
2720
+ 2,
2721
+ 67
2722
+ ],
2723
+ 96: [
2724
+ 2,
2725
+ 68
2726
+ ],
2727
+ 103: [
2728
+ 2,
2729
+ 84
2730
+ ],
2731
+ 132: [
2732
+ 2,
2733
+ 59
2734
+ ],
2735
+ 133: [
2736
+ 2,
2737
+ 81
2738
+ ],
2739
+ 134: [
2740
+ 2,
2741
+ 60
2742
+ ],
2743
+ 135: [
2744
+ 2,
2745
+ 61
2746
+ ],
2747
+ 136: [
2748
+ 2,
2749
+ 62
2750
+ ],
2751
+ 159: [
2752
+ 2,
2753
+ 71
2754
+ ],
2755
+ 160: [
2756
+ 2,
2757
+ 57
2758
+ ],
2759
+ 161: [
2760
+ 2,
2761
+ 58
2762
+ ],
2763
+ 170: [
2764
+ 2,
2765
+ 69
2766
+ ],
2767
+ 171: [
2768
+ 2,
2769
+ 70
2770
+ ],
2771
+ 172: [
2772
+ 2,
2773
+ 65
2774
+ ],
2775
+ 173: [
2776
+ 2,
2777
+ 51
2778
+ ],
2779
+ 174: [
2780
+ 2,
2781
+ 49
2782
+ ],
2783
+ 175: [
2784
+ 2,
2785
+ 47
2786
+ ]
2787
+ },
2788
+ parseError: function parseError(m, _) {
2789
+ if (_.recoverable) this.trace(m);
2790
+ else {
2791
+ var k = new Error(m);
2792
+ throw k.hash = _, k;
2793
+ }
2794
+ },
2795
+ parse: function parse(m) {
2796
+ var _ = this, k = [
2797
+ 0
2798
+ ], T = [], R = [
2799
+ null
2800
+ ], c = [], _t = this.table, d = "", At = 0, ie = 0, ke = 2, se = 1, Pe = c.slice.call(arguments, 1), Y = Object.create(this.lexer), pt = {
2801
+ yy: {}
2802
+ };
2803
+ for(var Yt in this.yy)Object.prototype.hasOwnProperty.call(this.yy, Yt) && (pt.yy[Yt] = this.yy[Yt]);
2804
+ Y.setInput(m, pt.yy), pt.yy.lexer = Y, pt.yy.parser = this, _type_of(Y.yylloc) > "u" && (Y.yylloc = {});
2805
+ var Ft = Y.yylloc;
2806
+ c.push(Ft);
2807
+ var Le = Y.options && Y.options.ranges;
2808
+ typeof pt.yy.parseError == "function" ? this.parseError = pt.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
2809
+ function Ie() {
2810
+ var ot;
2811
+ return ot = T.pop() || Y.lex() || se, typeof ot != "number" && (_instanceof(ot, Array) && (T = ot, ot = T.pop()), ot = _.symbols_[ot] || ot), ot;
2812
+ }
2813
+ for(var K, ft, et, Wt, yt = {}, Nt, at, re, vt;;){
2814
+ if (ft = k[k.length - 1], this.defaultActions[ft] ? et = this.defaultActions[ft] : ((K === null || (typeof K === "undefined" ? "undefined" : _type_of(K)) > "u") && (K = Ie()), et = _t[ft] && _t[ft][K]), (typeof et === "undefined" ? "undefined" : _type_of(et)) > "u" || !et.length || !et[0]) {
2815
+ var qt = "";
2816
+ vt = [];
2817
+ for(Nt in _t[ft])this.terminals_[Nt] && Nt > ke && vt.push("'" + this.terminals_[Nt] + "'");
2818
+ Y.showPosition ? qt = "Parse error on line " + (At + 1) + ":\n" + Y.showPosition() + "\nExpecting " + vt.join(", ") + ", got '" + (this.terminals_[K] || K) + "'" : qt = "Parse error on line " + (At + 1) + ": Unexpected " + (K == se ? "end of input" : "'" + (this.terminals_[K] || K) + "'"), this.parseError(qt, {
2819
+ text: Y.match,
2820
+ token: this.terminals_[K] || K,
2821
+ line: Y.yylineno,
2822
+ loc: Ft,
2823
+ expected: vt
2824
+ });
2825
+ }
2826
+ if (_instanceof(et[0], Array) && et.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + ft + ", token: " + K);
2827
+ switch(et[0]){
2828
+ case 1:
2829
+ k.push(K), R.push(Y.yytext), c.push(Y.yylloc), k.push(et[1]), K = null, ie = Y.yyleng, d = Y.yytext, At = Y.yylineno, Ft = Y.yylloc;
2830
+ break;
2831
+ case 2:
2832
+ if (at = this.productions_[et[1]][1], yt.$ = R[R.length - at], yt._$ = {
2833
+ first_line: c[c.length - (at || 1)].first_line,
2834
+ last_line: c[c.length - 1].last_line,
2835
+ first_column: c[c.length - (at || 1)].first_column,
2836
+ last_column: c[c.length - 1].last_column
2837
+ }, Le && (yt._$.range = [
2838
+ c[c.length - (at || 1)].range[0],
2839
+ c[c.length - 1].range[1]
2840
+ ]), Wt = this.performAction.apply(yt, [
2841
+ d,
2842
+ ie,
2843
+ At,
2844
+ pt.yy,
2845
+ et[1],
2846
+ R,
2847
+ c
2848
+ ].concat(Pe)), (typeof Wt === "undefined" ? "undefined" : _type_of(Wt)) < "u") return Wt;
2849
+ at && (k = k.slice(0, -1 * at * 2), R = R.slice(0, -1 * at), c = c.slice(0, -1 * at)), k.push(this.productions_[et[1]][0]), R.push(yt.$), c.push(yt._$), re = _t[k[k.length - 2]][k[k.length - 1]], k.push(re);
2850
+ break;
2851
+ case 3:
2852
+ return !0;
2853
+ }
2854
+ }
2855
+ return !0;
2856
+ }
2857
+ }, _e = function() {
2858
+ var dt = {
2859
+ EOF: 1,
2860
+ parseError: function parseError(_, k) {
2861
+ if (this.yy.parser) this.yy.parser.parseError(_, k);
2862
+ else throw new Error(_);
2863
+ },
2864
+ // resets the lexer, sets new input
2865
+ setInput: function setInput(m, _) {
2866
+ 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 = [
2867
+ "INITIAL"
2868
+ ], this.yylloc = {
2869
+ first_line: 1,
2870
+ first_column: 0,
2871
+ last_line: 1,
2872
+ last_column: 0
2873
+ }, this.options.ranges && (this.yylloc.range = [
2874
+ 0,
2875
+ 0
2876
+ ]), this.offset = 0, this;
2877
+ },
2878
+ // consumes and returns one char from the input
2879
+ input: function input() {
2880
+ var m = this._input[0];
2881
+ this.yytext += m, this.yyleng++, this.offset++, this.match += m, this.matched += m;
2882
+ var _ = m.match(/(?:\r\n?|\n).*/g);
2883
+ 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;
2884
+ },
2885
+ // unshifts one char (or a string) into the input
2886
+ unput: function unput(m) {
2887
+ var _ = m.length, k = m.split(/(?:\r\n?|\n)/g);
2888
+ this._input = m + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - _), this.offset -= _;
2889
+ var T = this.match.split(/(?:\r\n?|\n)/g);
2890
+ 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);
2891
+ var R = this.yylloc.range;
2892
+ return this.yylloc = {
2893
+ first_line: this.yylloc.first_line,
2894
+ last_line: this.yylineno + 1,
2895
+ first_column: this.yylloc.first_column,
2896
+ 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 - _
2897
+ }, this.options.ranges && (this.yylloc.range = [
2898
+ R[0],
2899
+ R[0] + this.yyleng - _
2900
+ ]), this.yyleng = this.yytext.length, this;
2901
+ },
2902
+ // When called from action, caches matched text and appends it on next action
2903
+ more: function more() {
2904
+ return this._more = !0, this;
2905
+ },
2906
+ // 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.
2907
+ reject: function reject() {
2908
+ if (this.options.backtrack_lexer) this._backtrack = !0;
2909
+ else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
2910
+ text: "",
2911
+ token: null,
2912
+ line: this.yylineno
2913
+ });
2914
+ return this;
2915
+ },
2916
+ // retain first n characters of the match
2917
+ less: function less(m) {
2918
+ this.unput(this.match.slice(m));
2919
+ },
2920
+ // displays already matched input, i.e. for error messages
2921
+ pastInput: function pastInput() {
2922
+ var m = this.matched.substr(0, this.matched.length - this.match.length);
2923
+ return (m.length > 20 ? "..." : "") + m.substr(-20).replace(/\n/g, "");
2924
+ },
2925
+ // displays upcoming input, i.e. for error messages
2926
+ upcomingInput: function upcomingInput() {
2927
+ var m = this.match;
2928
+ return m.length < 20 && (m += this._input.substr(0, 20 - m.length)), (m.substr(0, 20) + (m.length > 20 ? "..." : "")).replace(/\n/g, "");
2929
+ },
2930
+ // displays the character position where the lexing error occurred, i.e. for error messages
2931
+ showPosition: function showPosition() {
2932
+ var m = this.pastInput(), _ = new Array(m.length + 1).join("-");
2933
+ return m + this.upcomingInput() + "\n" + _ + "^";
2934
+ },
2935
+ // test the lexed token: return FALSE when not a match, otherwise return token
2936
+ test_match: function test_match(m, _) {
2937
+ var k, T, R;
2938
+ if (this.options.backtrack_lexer && (R = {
2939
+ yylineno: this.yylineno,
2940
+ yylloc: {
2941
+ first_line: this.yylloc.first_line,
2942
+ last_line: this.last_line,
2943
+ first_column: this.yylloc.first_column,
2944
+ last_column: this.yylloc.last_column
2945
+ },
2946
+ yytext: this.yytext,
2947
+ match: this.match,
2948
+ matches: this.matches,
2949
+ matched: this.matched,
2950
+ yyleng: this.yyleng,
2951
+ offset: this.offset,
2952
+ _more: this._more,
2953
+ _input: this._input,
2954
+ yy: this.yy,
2955
+ conditionStack: this.conditionStack.slice(0),
2956
+ done: this.done
2957
+ }, this.options.ranges && (R.yylloc.range = this.yylloc.range.slice(0))), T = m[0].match(/(?:\r\n?|\n).*/g), T && (this.yylineno += T.length), this.yylloc = {
2958
+ first_line: this.yylloc.last_line,
2959
+ last_line: this.yylineno + 1,
2960
+ first_column: this.yylloc.last_column,
2961
+ last_column: T ? T[T.length - 1].length - T[T.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + m[0].length
2962
+ }, this.yytext += m[0], this.match += m[0], this.matches = m, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [
2963
+ this.offset,
2964
+ this.offset += this.yyleng
2965
+ ]), 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) return k;
2966
+ if (this._backtrack) {
2967
+ for(var c in R)this[c] = R[c];
2968
+ return !1;
2969
+ }
2970
+ return !1;
2971
+ },
2972
+ // return next match in input
2973
+ next: function next() {
2974
+ if (this.done) return this.EOF;
2975
+ this._input || (this.done = !0);
2976
+ var m, _, k, T;
2977
+ this._more || (this.yytext = "", this.match = "");
2978
+ for(var R = this._currentRules(), c = 0; c < R.length; c++)if (k = this._input.match(this.rules[R[c]]), k && (!_ || k[0].length > _[0].length)) {
2979
+ if (_ = k, T = c, this.options.backtrack_lexer) {
2980
+ if (m = this.test_match(k, R[c]), m !== !1) return m;
2981
+ if (this._backtrack) {
2982
+ _ = !1;
2983
+ continue;
2984
+ } else return !1;
2985
+ } else if (!this.options.flex) break;
2986
+ }
2987
+ return _ ? (m = this.test_match(_, R[T]), m !== !1 ? m : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
2988
+ text: "",
2989
+ token: null,
2990
+ line: this.yylineno
2991
+ });
2992
+ },
2993
+ // return next match that has a token
2994
+ lex: function lex() {
2995
+ var _ = this.next();
2996
+ return _ || this.lex();
2997
+ },
2998
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
2999
+ begin: function begin(_) {
3000
+ this.conditionStack.push(_);
3001
+ },
3002
+ // pop the previously active lexer condition state off the condition stack
3003
+ popState: function popState() {
3004
+ var _ = this.conditionStack.length - 1;
3005
+ return _ > 0 ? this.conditionStack.pop() : this.conditionStack[0];
3006
+ },
3007
+ // produce the lexer rule set which is active for the currently active lexer condition state
3008
+ _currentRules: function _currentRules() {
3009
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
3010
+ },
3011
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
3012
+ topState: function topState(_) {
3013
+ return _ = this.conditionStack.length - 1 - Math.abs(_ || 0), _ >= 0 ? this.conditionStack[_] : "INITIAL";
3014
+ },
3015
+ // alias for begin(condition)
3016
+ pushState: function pushState(_) {
3017
+ this.begin(_);
3018
+ },
3019
+ // return the number of states currently on the stack
3020
+ stateStackSize: function stateStackSize() {
3021
+ return this.conditionStack.length;
3022
+ },
3023
+ options: {
3024
+ "case-insensitive": !0
3025
+ },
3026
+ performAction: function performAction(_, k, T, R) {
3027
+ switch(T){
3028
+ case 0:
3029
+ return this.begin("open_directive"), 86;
3030
+ case 1:
3031
+ return this.begin("type_directive"), 87;
3032
+ case 2:
3033
+ return this.popState(), this.begin("arg_directive"), 17;
3034
+ case 3:
3035
+ return this.popState(), this.popState(), 89;
3036
+ case 4:
3037
+ return 88;
3038
+ case 5:
3039
+ return 5;
3040
+ case 6:
3041
+ break;
3042
+ case 7:
3043
+ break;
3044
+ case 8:
3045
+ break;
3046
+ case 9:
3047
+ break;
3048
+ case 10:
3049
+ break;
3050
+ case 11:
3051
+ return 25;
3052
+ case 12:
3053
+ return this.begin("LINE"), 20;
3054
+ case 13:
3055
+ return this.begin("ID"), 56;
3056
+ case 14:
3057
+ return this.begin("ID"), 58;
3058
+ case 15:
3059
+ return 19;
3060
+ case 16:
3061
+ return this.begin("ID"), 59;
3062
+ case 17:
3063
+ return k.yytext = k.yytext.trim(), this.begin("ALIAS"), 76;
3064
+ case 18:
3065
+ return this.popState(), this.popState(), this.begin("LINE"), 57;
3066
+ case 19:
3067
+ return this.popState(), this.popState(), 5;
3068
+ case 20:
3069
+ return this.begin("LINE"), 42;
3070
+ case 21:
3071
+ return this.begin("LINE"), 43;
3072
+ case 22:
3073
+ return this.begin("LINE"), 44;
3074
+ case 23:
3075
+ return this.begin("LINE"), 45;
3076
+ case 24:
3077
+ return this.begin("LINE"), 55;
3078
+ case 25:
3079
+ return this.begin("LINE"), 47;
3080
+ case 26:
3081
+ return this.begin("LINE"), 49;
3082
+ case 27:
3083
+ return this.begin("LINE"), 54;
3084
+ case 28:
3085
+ return this.begin("LINE"), 50;
3086
+ case 29:
3087
+ return this.begin("LINE"), 53;
3088
+ case 30:
3089
+ return this.begin("LINE"), 52;
3090
+ case 31:
3091
+ return this.popState(), 21;
3092
+ case 32:
3093
+ return 22;
3094
+ case 33:
3095
+ return 71;
3096
+ case 34:
3097
+ return 72;
3098
+ case 35:
3099
+ return 65;
3100
+ case 36:
3101
+ return 66;
3102
+ case 37:
3103
+ return 67;
3104
+ case 38:
3105
+ return 68;
3106
+ case 39:
3107
+ return 63;
3108
+ case 40:
3109
+ return 60;
3110
+ case 41:
3111
+ return this.begin("ID"), 27;
3112
+ case 42:
3113
+ return this.begin("ID"), 29;
3114
+ case 43:
3115
+ return 35;
3116
+ case 44:
3117
+ return 36;
3118
+ case 45:
3119
+ return this.begin("acc_title"), 37;
3120
+ case 46:
3121
+ return this.popState(), "acc_title_value";
3122
+ case 47:
3123
+ return this.begin("acc_descr"), 39;
3124
+ case 48:
3125
+ return this.popState(), "acc_descr_value";
3126
+ case 49:
3127
+ this.begin("acc_descr_multiline");
3128
+ break;
3129
+ case 50:
3130
+ this.popState();
3131
+ break;
3132
+ case 51:
3133
+ return "acc_descr_multiline_value";
3134
+ case 52:
3135
+ return 7;
3136
+ case 53:
3137
+ return 24;
3138
+ case 54:
3139
+ return 26;
3140
+ case 55:
3141
+ return 70;
3142
+ case 56:
3143
+ return 5;
3144
+ case 57:
3145
+ return k.yytext = k.yytext.trim(), 76;
3146
+ case 58:
3147
+ return 79;
3148
+ case 59:
3149
+ return 80;
3150
+ case 60:
3151
+ return 77;
3152
+ case 61:
3153
+ return 78;
3154
+ case 62:
3155
+ return 81;
3156
+ case 63:
3157
+ return 82;
3158
+ case 64:
3159
+ return 83;
3160
+ case 65:
3161
+ return 84;
3162
+ case 66:
3163
+ return 85;
3164
+ case 67:
3165
+ return 74;
3166
+ case 68:
3167
+ return 75;
3168
+ case 69:
3169
+ return 5;
3170
+ case 70:
3171
+ return "INVALID";
3172
+ }
3173
+ },
3174
+ rules: [
3175
+ /^(?:%%\{)/i,
3176
+ /^(?:((?:(?!\}%%)[^:.])*))/i,
3177
+ /^(?::)/i,
3178
+ /^(?:\}%%)/i,
3179
+ /^(?:((?:(?!\}%%).|\n)*))/i,
3180
+ /^(?:[\n]+)/i,
3181
+ /^(?:\s+)/i,
3182
+ /^(?:((?!\n)\s)+)/i,
3183
+ /^(?:#[^\n]*)/i,
3184
+ /^(?:%(?!\{)[^\n]*)/i,
3185
+ /^(?:[^\}]%%[^\n]*)/i,
3186
+ /^(?:[0-9]+(?=[ \n]+))/i,
3187
+ /^(?:box\b)/i,
3188
+ /^(?:participant\b)/i,
3189
+ /^(?:actor\b)/i,
3190
+ /^(?:create\b)/i,
3191
+ /^(?:destroy\b)/i,
3192
+ /^(?:[^\->:\n,;]+?([\-]*[^\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,
3193
+ /^(?:as\b)/i,
3194
+ /^(?:(?:))/i,
3195
+ /^(?:loop\b)/i,
3196
+ /^(?:rect\b)/i,
3197
+ /^(?:opt\b)/i,
3198
+ /^(?:alt\b)/i,
3199
+ /^(?:else\b)/i,
3200
+ /^(?:par\b)/i,
3201
+ /^(?:par_over\b)/i,
3202
+ /^(?:and\b)/i,
3203
+ /^(?:critical\b)/i,
3204
+ /^(?:option\b)/i,
3205
+ /^(?:break\b)/i,
3206
+ /^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,
3207
+ /^(?:end\b)/i,
3208
+ /^(?:left of\b)/i,
3209
+ /^(?:right of\b)/i,
3210
+ /^(?:links\b)/i,
3211
+ /^(?:link\b)/i,
3212
+ /^(?:properties\b)/i,
3213
+ /^(?:details\b)/i,
3214
+ /^(?:over\b)/i,
3215
+ /^(?:note\b)/i,
3216
+ /^(?:activate\b)/i,
3217
+ /^(?:deactivate\b)/i,
3218
+ /^(?:title\s[^#\n;]+)/i,
3219
+ /^(?:title:\s[^#\n;]+)/i,
3220
+ /^(?:accTitle\s*:\s*)/i,
3221
+ /^(?:(?!\n||)*[^\n]*)/i,
3222
+ /^(?:accDescr\s*:\s*)/i,
3223
+ /^(?:(?!\n||)*[^\n]*)/i,
3224
+ /^(?:accDescr\s*\{\s*)/i,
3225
+ /^(?:[\}])/i,
3226
+ /^(?:[^\}]*)/i,
3227
+ /^(?:sequenceDiagram\b)/i,
3228
+ /^(?:autonumber\b)/i,
3229
+ /^(?:off\b)/i,
3230
+ /^(?:,)/i,
3231
+ /^(?:;)/i,
3232
+ /^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,
3233
+ /^(?:->>)/i,
3234
+ /^(?:-->>)/i,
3235
+ /^(?:->)/i,
3236
+ /^(?:-->)/i,
3237
+ /^(?:-[x])/i,
3238
+ /^(?:--[x])/i,
3239
+ /^(?:-[\)])/i,
3240
+ /^(?:--[\)])/i,
3241
+ /^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,
3242
+ /^(?:\+)/i,
3243
+ /^(?:-)/i,
3244
+ /^(?:$)/i,
3245
+ /^(?:.)/i
3246
+ ],
3247
+ conditions: {
3248
+ acc_descr_multiline: {
3249
+ rules: [
3250
+ 50,
3251
+ 51
3252
+ ],
3253
+ inclusive: !1
3254
+ },
3255
+ acc_descr: {
3256
+ rules: [
3257
+ 48
3258
+ ],
3259
+ inclusive: !1
3260
+ },
3261
+ acc_title: {
3262
+ rules: [
3263
+ 46
3264
+ ],
3265
+ inclusive: !1
3266
+ },
3267
+ open_directive: {
3268
+ rules: [
3269
+ 1,
3270
+ 8
3271
+ ],
3272
+ inclusive: !1
3273
+ },
3274
+ type_directive: {
3275
+ rules: [
3276
+ 2,
3277
+ 3,
3278
+ 8
3279
+ ],
3280
+ inclusive: !1
3281
+ },
3282
+ arg_directive: {
3283
+ rules: [
3284
+ 3,
3285
+ 4,
3286
+ 8
3287
+ ],
3288
+ inclusive: !1
3289
+ },
3290
+ ID: {
3291
+ rules: [
3292
+ 7,
3293
+ 8,
3294
+ 17
3295
+ ],
3296
+ inclusive: !1
3297
+ },
3298
+ ALIAS: {
3299
+ rules: [
3300
+ 7,
3301
+ 8,
3302
+ 18,
3303
+ 19
3304
+ ],
3305
+ inclusive: !1
3306
+ },
3307
+ LINE: {
3308
+ rules: [
3309
+ 7,
3310
+ 8,
3311
+ 31
3312
+ ],
3313
+ inclusive: !1
3314
+ },
3315
+ INITIAL: {
3316
+ rules: [
3317
+ 0,
3318
+ 5,
3319
+ 6,
3320
+ 8,
3321
+ 9,
3322
+ 10,
3323
+ 11,
3324
+ 12,
3325
+ 13,
3326
+ 14,
3327
+ 15,
3328
+ 16,
3329
+ 20,
3330
+ 21,
3331
+ 22,
3332
+ 23,
3333
+ 24,
3334
+ 25,
3335
+ 26,
3336
+ 27,
3337
+ 28,
3338
+ 29,
3339
+ 30,
3340
+ 32,
3341
+ 33,
3342
+ 34,
3343
+ 35,
3344
+ 36,
3345
+ 37,
3346
+ 38,
3347
+ 39,
3348
+ 40,
3349
+ 41,
3350
+ 42,
3351
+ 43,
3352
+ 44,
3353
+ 45,
3354
+ 47,
3355
+ 49,
3356
+ 52,
3357
+ 53,
3358
+ 54,
3359
+ 55,
3360
+ 56,
3361
+ 57,
3362
+ 58,
3363
+ 59,
3364
+ 60,
3365
+ 61,
3366
+ 62,
3367
+ 63,
3368
+ 64,
3369
+ 65,
3370
+ 66,
3371
+ 67,
3372
+ 68,
3373
+ 69,
3374
+ 70
3375
+ ],
3376
+ inclusive: !0
3377
+ }
3378
+ }
3379
+ };
3380
+ return dt;
3381
+ }();
3382
+ Ot.lexer = _e;
3383
+ function Bt() {
3384
+ this.yy = {};
3385
+ }
3386
+ return Bt.prototype = Ot, Ot.Parser = Bt, new Bt();
3387
+ }();
3388
+ zt.parser = zt;
3389
+ var ze = zt;
3390
+ var kt, lt = {}, Jt = {}, Zt = {}, mt = [], Z = [], Dt = !1, Ht, ct, Pt, Et;
3391
+ var He = function He(t, e, o) {
3392
+ de$1.parseDirective(this, t, e, o);
3393
+ }, Ue = function Ue(t) {
3394
+ mt.push({
3395
+ name: t.text,
3396
+ wrap: t.wrap === void 0 && xt() || !!t.wrap,
3397
+ fill: t.color,
3398
+ actorKeys: []
3399
+ }), ct = mt.slice(-1)[0];
3400
+ }, Ut = function Ut(t, e, o, n) {
3401
+ var i = ct;
3402
+ var s = lt[t];
3403
+ if (s) {
3404
+ if (ct && s.box && ct !== s.box) throw new Error("A same participant should only be defined in one Box: " + s.name + " can't be in '" + s.box.name + "' and in '" + ct.name + "' at the same time.");
3405
+ if (i = s.box ? s.box : ct, s.box = i, s && e === s.name && o == null) return;
3406
+ }
3407
+ (o == null || o.text == null) && (o = {
3408
+ text: e,
3409
+ wrap: null,
3410
+ type: n
3411
+ }), (n == null || o.text == null) && (o = {
3412
+ text: e,
3413
+ wrap: null,
3414
+ type: n
3415
+ }), lt[t] = {
3416
+ box: i,
3417
+ name: e,
3418
+ description: o.text,
3419
+ wrap: o.wrap === void 0 && xt() || !!o.wrap,
3420
+ prevActor: kt,
3421
+ links: {},
3422
+ properties: {},
3423
+ actorCnt: null,
3424
+ rectData: null,
3425
+ type: n || "participant"
3426
+ }, kt && lt[kt] && (lt[kt].nextActor = t), ct && ct.actorKeys.push(t), kt = t;
3427
+ }, Ke = function(t) {
3428
+ var e, o = 0;
3429
+ for(e = 0; e < Z.length; e++)Z[e].type === Lt.ACTIVE_START && Z[e].from.actor === t && o++, Z[e].type === Lt.ACTIVE_END && Z[e].from.actor === t && o--;
3430
+ return o;
3431
+ }, Ge = function Ge(t, e, o, n) {
3432
+ Z.push({
3433
+ from: t,
3434
+ to: e,
3435
+ message: o.text,
3436
+ wrap: o.wrap === void 0 && xt() || !!o.wrap,
3437
+ answer: n
3438
+ });
3439
+ }, V = function V(t, e) {
3440
+ var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
3441
+ text: void 0,
3442
+ wrap: void 0
3443
+ }, n = arguments.length > 3 ? arguments[3] : void 0;
3444
+ if (n === Lt.ACTIVE_END && Ke(t.actor) < 1) {
3445
+ var s = new Error("Trying to inactivate an inactive participant (" + t.actor + ")");
3446
+ throw s.hash = {
3447
+ text: "->>-",
3448
+ token: "->>-",
3449
+ line: "1",
3450
+ loc: {
3451
+ first_line: 1,
3452
+ last_line: 1,
3453
+ first_column: 1,
3454
+ last_column: 1
3455
+ },
3456
+ expected: [
3457
+ "'ACTIVE_PARTICIPANT'"
3458
+ ]
3459
+ }, s;
3460
+ }
3461
+ return Z.push({
3462
+ from: t,
3463
+ to: e,
3464
+ message: o.text,
3465
+ wrap: o.wrap === void 0 && xt() || !!o.wrap,
3466
+ type: n
3467
+ }), !0;
3468
+ }, Xe = function Xe() {
3469
+ return mt.length > 0;
3470
+ }, Je = function Je() {
3471
+ return mt.some(function(t) {
3472
+ return t.name;
3473
+ });
3474
+ }, Ze = function Ze() {
3475
+ return Z;
3476
+ }, Qe = function Qe() {
3477
+ return mt;
3478
+ }, je = function je() {
3479
+ return lt;
3480
+ }, $e = function $e() {
3481
+ return Jt;
3482
+ }, t0 = function t0() {
3483
+ return Zt;
3484
+ }, It = function It(t) {
3485
+ return lt[t];
3486
+ }, e0 = function e0() {
3487
+ return Object.keys(lt);
3488
+ }, n0 = function n0() {
3489
+ Dt = !0;
3490
+ }, i0 = function i0() {
3491
+ Dt = !1;
3492
+ }, s0 = function() {
3493
+ return Dt;
3494
+ }, r0 = function r0(t) {
3495
+ Ht = t;
3496
+ }, xt = function() {
3497
+ return Ht !== void 0 ? Ht : Ut$1().sequence.wrap;
3498
+ }, a0 = function a0() {
3499
+ lt = {}, Jt = {}, Zt = {}, mt = [], Z = [], Dt = !1, Fa();
3500
+ }, o0 = function o0(t) {
3501
+ var e = t.trim(), o = {
3502
+ text: e.replace(/^:?(?:no)?wrap:/, "").trim(),
3503
+ wrap: e.match(/^:?wrap:/) !== null ? !0 : e.match(/^:?nowrap:/) !== null ? !1 : void 0
3504
+ };
3505
+ return S.debug("parseMessage:", o), o;
3506
+ }, c0 = function c0(t) {
3507
+ var e = t.match(/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/);
3508
+ var o = e != null && e[1] ? e[1].trim() : "transparent", n = e != null && e[2] ? e[2].trim() : void 0;
3509
+ if (window && window.CSS) window.CSS.supports("color", o) || (o = "transparent", n = t.trim());
3510
+ else {
3511
+ var s = new Option().style;
3512
+ s.color = o, s.color !== o && (o = "transparent", n = t.trim());
3513
+ }
3514
+ return {
3515
+ color: o,
3516
+ text: n !== void 0 ? Je$1(n.replace(/^:?(?:no)?wrap:/, ""), Ut$1()) : void 0,
3517
+ wrap: n !== void 0 ? n.match(/^:?wrap:/) !== null ? !0 : n.match(/^:?nowrap:/) !== null ? !1 : void 0 : void 0
3518
+ };
3519
+ }, Lt = {
3520
+ SOLID: 0,
3521
+ DOTTED: 1,
3522
+ NOTE: 2,
3523
+ SOLID_CROSS: 3,
3524
+ DOTTED_CROSS: 4,
3525
+ SOLID_OPEN: 5,
3526
+ DOTTED_OPEN: 6,
3527
+ LOOP_START: 10,
3528
+ LOOP_END: 11,
3529
+ ALT_START: 12,
3530
+ ALT_ELSE: 13,
3531
+ ALT_END: 14,
3532
+ OPT_START: 15,
3533
+ OPT_END: 16,
3534
+ ACTIVE_START: 17,
3535
+ ACTIVE_END: 18,
3536
+ PAR_START: 19,
3537
+ PAR_AND: 20,
3538
+ PAR_END: 21,
3539
+ RECT_START: 22,
3540
+ RECT_END: 23,
3541
+ SOLID_POINT: 24,
3542
+ DOTTED_POINT: 25,
3543
+ AUTONUMBER: 26,
3544
+ CRITICAL_START: 27,
3545
+ CRITICAL_OPTION: 28,
3546
+ CRITICAL_END: 29,
3547
+ BREAK_START: 30,
3548
+ BREAK_END: 31,
3549
+ PAR_OVER_START: 32
3550
+ }, l0 = {
3551
+ FILLED: 0,
3552
+ OPEN: 1
3553
+ }, h0 = {
3554
+ LEFTOF: 0,
3555
+ RIGHTOF: 1,
3556
+ OVER: 2
3557
+ }, he = function he(t, e, o) {
3558
+ o.text, o.wrap === void 0 && xt() || o.wrap;
3559
+ var n = [].concat(t, t);
3560
+ Z.push({
3561
+ from: n[0],
3562
+ to: n[1],
3563
+ message: o.text,
3564
+ wrap: o.wrap === void 0 && xt() || !!o.wrap,
3565
+ type: Lt.NOTE,
3566
+ placement: e
3567
+ });
3568
+ }, de = function de(t, e) {
3569
+ var o = It(t);
3570
+ try {
3571
+ var _$n = Je$1(e.text, Ut$1());
3572
+ _$n = _$n.replace(/&amp;/g, "&"), _$n = _$n.replace(/&equals;/g, "=");
3573
+ var i = JSON.parse(_$n);
3574
+ Qt(o, i);
3575
+ } catch (n) {
3576
+ S.error("error while parsing actor link text", n);
3577
+ }
3578
+ }, d0 = function d0(t, e) {
3579
+ var o = It(t);
3580
+ try {
3581
+ var _$l = {};
3582
+ var h = Je$1(e.text, Ut$1());
3583
+ var n = h.indexOf("@");
3584
+ h = h.replace(/&amp;/g, "&"), h = h.replace(/&equals;/g, "=");
3585
+ var i = h.slice(0, n - 1).trim(), s = h.slice(n + 1).trim();
3586
+ _$l[i] = s, Qt(o, _$l);
3587
+ } catch (l) {
3588
+ S.error("error while parsing actor link text", l);
3589
+ }
3590
+ };
3591
+ function Qt(t, e) {
3592
+ if (t.links == null) t.links = e;
3593
+ else for(var o in e)t.links[o] = e[o];
3594
+ }
3595
+ var ue = function ue(t, e) {
3596
+ var o = It(t);
3597
+ try {
3598
+ var _$n = Je$1(e.text, Ut$1());
3599
+ var i = JSON.parse(_$n);
3600
+ pe(o, i);
3601
+ } catch (n) {
3602
+ S.error("error while parsing actor properties text", n);
3603
+ }
3604
+ };
3605
+ function pe(t, e) {
3606
+ if (t.properties == null) t.properties = e;
3607
+ else for(var o in e)t.properties[o] = e[o];
3608
+ }
3609
+ function u0() {
3610
+ ct = void 0;
3611
+ }
3612
+ var fe = function fe(t, e) {
3613
+ var o = It(t), n = document.getElementById(e.text);
3614
+ try {
3615
+ var _$i = n.innerHTML, s = JSON.parse(_$i);
3616
+ s.properties && pe(o, s.properties), s.links && Qt(o, s.links);
3617
+ } catch (i) {
3618
+ S.error("error while parsing actor details text", i);
3619
+ }
3620
+ }, p0 = function p0(t, e) {
3621
+ if (t !== void 0 && t.properties !== void 0) return t.properties[e];
3622
+ }, ge = function ge1(t) {
3623
+ if (Array.isArray(t)) t.forEach(function(e) {
3624
+ ge(e);
3625
+ });
3626
+ else switch(t.type){
3627
+ case "sequenceIndex":
3628
+ Z.push({
3629
+ from: void 0,
3630
+ to: void 0,
3631
+ message: {
3632
+ start: t.sequenceIndex,
3633
+ step: t.sequenceIndexStep,
3634
+ visible: t.sequenceVisible
3635
+ },
3636
+ wrap: !1,
3637
+ type: t.signalType
3638
+ });
3639
+ break;
3640
+ case "addParticipant":
3641
+ Ut(t.actor, t.actor, t.description, t.draw);
3642
+ break;
3643
+ case "createParticipant":
3644
+ if (lt[t.actor]) throw new Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");
3645
+ Pt = t.actor, Ut(t.actor, t.actor, t.description, t.draw), Jt[t.actor] = Z.length;
3646
+ break;
3647
+ case "destroyParticipant":
3648
+ Et = t.actor, Zt[t.actor] = Z.length;
3649
+ break;
3650
+ case "activeStart":
3651
+ V(t.actor, void 0, void 0, t.signalType);
3652
+ break;
3653
+ case "activeEnd":
3654
+ V(t.actor, void 0, void 0, t.signalType);
3655
+ break;
3656
+ case "addNote":
3657
+ he(t.actor, t.placement, t.text);
3658
+ break;
3659
+ case "addLinks":
3660
+ de(t.actor, t.text);
3661
+ break;
3662
+ case "addALink":
3663
+ d0(t.actor, t.text);
3664
+ break;
3665
+ case "addProperties":
3666
+ ue(t.actor, t.text);
3667
+ break;
3668
+ case "addDetails":
3669
+ fe(t.actor, t.text);
3670
+ break;
3671
+ case "addMessage":
3672
+ if (Pt) {
3673
+ if (t.to !== Pt) throw new Error("The created participant " + Pt + " does not have an associated creating message after its declaration. Please check the sequence diagram.");
3674
+ Pt = void 0;
3675
+ } else if (Et) {
3676
+ if (t.to !== Et && t.from !== Et) throw new Error("The destroyed participant " + Et + " does not have an associated destroying message after its declaration. Please check the sequence diagram.");
3677
+ Et = void 0;
3678
+ }
3679
+ V(t.from, t.to, t.msg, t.signalType);
3680
+ break;
3681
+ case "boxStart":
3682
+ Ue(t.boxData);
3683
+ break;
3684
+ case "boxEnd":
3685
+ u0();
3686
+ break;
3687
+ case "loopStart":
3688
+ V(void 0, void 0, t.loopText, t.signalType);
3689
+ break;
3690
+ case "loopEnd":
3691
+ V(void 0, void 0, void 0, t.signalType);
3692
+ break;
3693
+ case "rectStart":
3694
+ V(void 0, void 0, t.color, t.signalType);
3695
+ break;
3696
+ case "rectEnd":
3697
+ V(void 0, void 0, void 0, t.signalType);
3698
+ break;
3699
+ case "optStart":
3700
+ V(void 0, void 0, t.optText, t.signalType);
3701
+ break;
3702
+ case "optEnd":
3703
+ V(void 0, void 0, void 0, t.signalType);
3704
+ break;
3705
+ case "altStart":
3706
+ V(void 0, void 0, t.altText, t.signalType);
3707
+ break;
3708
+ case "else":
3709
+ V(void 0, void 0, t.altText, t.signalType);
3710
+ break;
3711
+ case "altEnd":
3712
+ V(void 0, void 0, void 0, t.signalType);
3713
+ break;
3714
+ case "setAccTitle":
3715
+ La(t.text);
3716
+ break;
3717
+ case "parStart":
3718
+ V(void 0, void 0, t.parText, t.signalType);
3719
+ break;
3720
+ case "and":
3721
+ V(void 0, void 0, t.parText, t.signalType);
3722
+ break;
3723
+ case "parEnd":
3724
+ V(void 0, void 0, void 0, t.signalType);
3725
+ break;
3726
+ case "criticalStart":
3727
+ V(void 0, void 0, t.criticalText, t.signalType);
3728
+ break;
3729
+ case "option":
3730
+ V(void 0, void 0, t.optionText, t.signalType);
3731
+ break;
3732
+ case "criticalEnd":
3733
+ V(void 0, void 0, void 0, t.signalType);
3734
+ break;
3735
+ case "breakStart":
3736
+ V(void 0, void 0, t.breakText, t.signalType);
3737
+ break;
3738
+ case "breakEnd":
3739
+ V(void 0, void 0, void 0, t.signalType);
3740
+ break;
3741
+ }
3742
+ }, f0 = {
3743
+ addActor: Ut,
3744
+ addMessage: Ge,
3745
+ addSignal: V,
3746
+ addLinks: de,
3747
+ addDetails: fe,
3748
+ addProperties: ue,
3749
+ autoWrap: xt,
3750
+ setWrap: r0,
3751
+ enableSequenceNumbers: n0,
3752
+ disableSequenceNumbers: i0,
3753
+ showSequenceNumbers: s0,
3754
+ getMessages: Ze,
3755
+ getActors: je,
3756
+ getCreatedActors: $e,
3757
+ getDestroyedActors: t0,
3758
+ getActor: It,
3759
+ getActorKeys: e0,
3760
+ getActorProperty: p0,
3761
+ getAccTitle: Aa,
3762
+ getBoxes: Qe,
3763
+ getDiagramTitle: Ia,
3764
+ setDiagramTitle: Oa,
3765
+ parseDirective: He,
3766
+ getConfig: function() {
3767
+ return Ut$1().sequence;
3768
+ },
3769
+ clear: a0,
3770
+ parseMessage: o0,
3771
+ parseBoxData: c0,
3772
+ LINETYPE: Lt,
3773
+ ARROWTYPE: l0,
3774
+ PLACEMENT: h0,
3775
+ addNote: he,
3776
+ setAccTitle: La,
3777
+ apply: ge,
3778
+ setAccDescription: Ea,
3779
+ getAccDescription: Ma,
3780
+ hasAtLeastOneBox: Xe,
3781
+ hasAtLeastOneBoxWithTitle: Je
3782
+ }, g0 = function(t) {
3783
+ return ".actor {\n stroke: ".concat(t.actorBorder, ";\n fill: ").concat(t.actorBkg, ";\n }\n\n text.actor > tspan {\n fill: ").concat(t.actorTextColor, ";\n stroke: none;\n }\n\n .actor-line {\n stroke: ").concat(t.actorLineColor, ";\n }\n\n .messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: ").concat(t.signalColor, ";\n }\n\n .messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: ").concat(t.signalColor, ";\n }\n\n #arrowhead path {\n fill: ").concat(t.signalColor, ";\n stroke: ").concat(t.signalColor, ";\n }\n\n .sequenceNumber {\n fill: ").concat(t.sequenceNumberColor, ";\n }\n\n #sequencenumber {\n fill: ").concat(t.signalColor, ";\n }\n\n #crosshead path {\n fill: ").concat(t.signalColor, ";\n stroke: ").concat(t.signalColor, ";\n }\n\n .messageText {\n fill: ").concat(t.signalTextColor, ";\n stroke: none;\n }\n\n .labelBox {\n stroke: ").concat(t.labelBoxBorderColor, ";\n fill: ").concat(t.labelBoxBkgColor, ";\n }\n\n .labelText, .labelText > tspan {\n fill: ").concat(t.labelTextColor, ";\n stroke: none;\n }\n\n .loopText, .loopText > tspan {\n fill: ").concat(t.loopTextColor, ";\n stroke: none;\n }\n\n .loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: ").concat(t.labelBoxBorderColor, ";\n fill: ").concat(t.labelBoxBorderColor, ";\n }\n\n .note {\n //stroke: #decc93;\n stroke: ").concat(t.noteBorderColor, ";\n fill: ").concat(t.noteBkgColor, ";\n }\n\n .noteText, .noteText > tspan {\n fill: ").concat(t.noteTextColor, ";\n stroke: none;\n }\n\n .activation0 {\n fill: ").concat(t.activationBkgColor, ";\n stroke: ").concat(t.activationBorderColor, ";\n }\n\n .activation1 {\n fill: ").concat(t.activationBkgColor, ";\n stroke: ").concat(t.activationBorderColor, ";\n }\n\n .activation2 {\n fill: ").concat(t.activationBkgColor, ";\n stroke: ").concat(t.activationBorderColor, ";\n }\n\n .actorPopupMenu {\n position: absolute;\n }\n\n .actorPopupMenuPanel {\n position: absolute;\n fill: ").concat(t.actorBkg, ";\n box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);\n filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));\n}\n .actor-man line {\n stroke: ").concat(t.actorBorder, ";\n fill: ").concat(t.actorBkg, ";\n }\n .actor-man circle, line {\n stroke: ").concat(t.actorBorder, ";\n fill: ").concat(t.actorBkg, ";\n stroke-width: 2px;\n }\n");
3784
+ }, x0 = g0, gt = 18 * 2, jt = function jt(t, e) {
3785
+ return l(t, e);
3786
+ }, xe = function(t, e) {
3787
+ Wx(function() {
3788
+ var o = document.querySelectorAll(t);
3789
+ o.length !== 0 && (o[0].addEventListener("mouseover", function() {
3790
+ b0("actor" + e + "_popup");
3791
+ }), o[0].addEventListener("mouseout", function() {
3792
+ m0("actor" + e + "_popup");
3793
+ }));
3794
+ });
3795
+ }, T0 = function T0(t, e, o, n, i) {
3796
+ if (e.links === void 0 || e.links === null || Object.keys(e.links).length === 0) return {
3797
+ height: 0,
3798
+ width: 0
3799
+ };
3800
+ var s = e.links, l = e.actorCnt, h = e.rectData;
3801
+ var u = "none";
3802
+ i && (u = "block !important");
3803
+ var r = t.append("g");
3804
+ r.attr("id", "actor" + l + "_popup"), r.attr("class", "actorPopupMenu"), r.attr("display", u), xe("#actor" + l + "_popup", l);
3805
+ var g = "";
3806
+ h.class !== void 0 && (g = " " + h.class);
3807
+ var y = h.width > o ? h.width : o;
3808
+ var p = r.append("rect");
3809
+ if (p.attr("class", "actorPopupMenuPanel" + g), p.attr("x", h.x), p.attr("y", h.height), p.attr("fill", h.fill), p.attr("stroke", h.stroke), p.attr("width", y), p.attr("height", h.height), p.attr("rx", h.rx), p.attr("ry", h.ry), s != null) {
3810
+ var x = 20;
3811
+ for(var v in s){
3812
+ var b = r.append("a"), P = us(s[v]);
3813
+ b.attr("xlink:href", P), b.attr("target", "_blank"), O0(n)(v, b, h.x + 10, h.height + x, y, 20, {
3814
+ class: "actor"
3815
+ }, n), x += 30;
3816
+ }
3817
+ }
3818
+ return p.attr("height", x), {
3819
+ height: h.height + x,
3820
+ width: y
3821
+ };
3822
+ }, y0 = function y0(t) {
3823
+ return "var pu = document.getElementById('" + t + "'); if (pu != null) { pu.style.display = 'block'; }";
3824
+ }, E0 = function E0(t) {
3825
+ return "var pu = document.getElementById('" + t + "'); if (pu != null) { pu.style.display = 'none'; }";
3826
+ }, b0 = function b0(t) {
3827
+ var e = document.getElementById(t);
3828
+ e != null && (e.style.display = "block");
3829
+ }, m0 = function m0(t) {
3830
+ var e = document.getElementById(t);
3831
+ e != null && (e.style.display = "none");
3832
+ }, wt = function wt(t, e) {
3833
+ var o = 0, n = 0;
3834
+ var i = e.text.split(Bn.lineBreakRegex), _le = _sliced_to_array(Dn(e.fontSize), 2), s = _le[0], l = _le[1];
3835
+ var h = [], u = 0, r = function() {
3836
+ return e.y;
3837
+ };
3838
+ if (e.valign !== void 0 && e.textMargin !== void 0 && e.textMargin > 0) switch(e.valign){
3839
+ case "top":
3840
+ case "start":
3841
+ r = function() {
3842
+ return Math.round(e.y + e.textMargin);
3843
+ };
3844
+ break;
3845
+ case "middle":
3846
+ case "center":
3847
+ r = function() {
3848
+ return Math.round(e.y + (o + n + e.textMargin) / 2);
3849
+ };
3850
+ break;
3851
+ case "bottom":
3852
+ case "end":
3853
+ r = function() {
3854
+ return Math.round(e.y + (o + n + 2 * e.textMargin) - e.textMargin);
3855
+ };
3856
+ break;
3857
+ }
3858
+ if (e.anchor !== void 0 && e.textMargin !== void 0 && e.width !== void 0) switch(e.anchor){
3859
+ case "left":
3860
+ case "start":
3861
+ e.x = Math.round(e.x + e.textMargin), e.anchor = "start", e.dominantBaseline = "middle", e.alignmentBaseline = "middle";
3862
+ break;
3863
+ case "middle":
3864
+ case "center":
3865
+ e.x = Math.round(e.x + e.width / 2), e.anchor = "middle", e.dominantBaseline = "middle", e.alignmentBaseline = "middle";
3866
+ break;
3867
+ case "right":
3868
+ case "end":
3869
+ e.x = Math.round(e.x + e.width - e.textMargin), e.anchor = "end", e.dominantBaseline = "middle", e.alignmentBaseline = "middle";
3870
+ break;
3871
+ }
3872
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
3873
+ try {
3874
+ for(var _iterator = i.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
3875
+ var _step_value = _sliced_to_array(_step.value, 2), g = _step_value[0], y = _step_value[1];
3876
+ e.textMargin !== void 0 && e.textMargin === 0 && s !== void 0 && (u = g * s);
3877
+ var p = t.append("text");
3878
+ p.attr("x", e.x), p.attr("y", r()), e.anchor !== void 0 && p.attr("text-anchor", e.anchor).attr("dominant-baseline", e.dominantBaseline).attr("alignment-baseline", e.alignmentBaseline), e.fontFamily !== void 0 && p.style("font-family", e.fontFamily), l !== void 0 && p.style("font-size", l), e.fontWeight !== void 0 && p.style("font-weight", e.fontWeight), e.fill !== void 0 && p.attr("fill", e.fill), e.class !== void 0 && p.attr("class", e.class), e.dy !== void 0 ? p.attr("dy", e.dy) : u !== 0 && p.attr("dy", u);
3879
+ var x = y || d0$1;
3880
+ if (e.tspan) {
3881
+ var b = p.append("tspan");
3882
+ b.attr("x", e.x), e.fill !== void 0 && b.attr("fill", e.fill), b.text(x);
3883
+ } else p.text(x);
3884
+ e.valign !== void 0 && e.textMargin !== void 0 && e.textMargin > 0 && (n += (p._groups || p)[0][0].getBBox().height, o = n), h.push(p);
3885
+ }
3886
+ } catch (err) {
3887
+ _didIteratorError = true;
3888
+ _iteratorError = err;
3889
+ } finally{
3890
+ try {
3891
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
3892
+ _iterator.return();
3893
+ }
3894
+ } finally{
3895
+ if (_didIteratorError) {
3896
+ throw _iteratorError;
3897
+ }
3898
+ }
3899
+ }
3900
+ return h;
3901
+ }, Te = function Te(t, e) {
3902
+ function o(i, s, l, h, u) {
3903
+ return i + "," + s + " " + (i + l) + "," + s + " " + (i + l) + "," + (s + h - u) + " " + (i + l - u * 1.2) + "," + (s + h) + " " + i + "," + (s + h);
3904
+ }
3905
+ var n = t.append("polygon");
3906
+ return n.attr("points", o(e.x, e.y, e.width, e.height, 7)), n.attr("class", "labelBox"), e.y = e.y + e.height / 2, wt(t, e), n;
3907
+ };
3908
+ var it = -1;
3909
+ var ye = function(t, e, o, n) {
3910
+ t.select && o.forEach(function(i) {
3911
+ var s = e[i], l = t.select("#actor" + s.actorCnt);
3912
+ !n.mirrorActors && s.stopy ? l.attr("y2", s.stopy + s.height / 2) : n.mirrorActors && l.attr("y2", s.stopy);
3913
+ });
3914
+ }, w0 = function w0(t, e, o, n) {
3915
+ var i = n ? e.stopy : e.starty, s = e.x + e.width / 2, l = i + 5, h$1 = t.append("g").lower();
3916
+ var u = h$1;
3917
+ n || (it++, u.append("line").attr("id", "actor" + it).attr("x1", s).attr("y1", l).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line").attr("class", "200").attr("stroke-width", "0.5px").attr("stroke", "#999"), u = h$1.append("g"), e.actorCnt = it, e.links != null && (u.attr("id", "root-" + it), xe("#root-" + it, it)));
3918
+ var r = h();
3919
+ var g = "actor";
3920
+ e.properties != null && e.properties.class ? g = e.properties.class : r.fill = "#eaeaea", r.x = e.x, r.y = i, r.width = e.width, r.height = e.height, r.class = g, r.rx = 3, r.ry = 3;
3921
+ var y = jt(u, r);
3922
+ if (e.rectData = r, e.properties != null && e.properties.icon) {
3923
+ var x$1 = e.properties.icon.trim();
3924
+ x$1.charAt(0) === "@" ? x(u, r.x + r.width - 20, r.y + 10, x$1.substr(1)) : f$1(u, r.x + r.width - 20, r.y + 10, x$1);
3925
+ }
3926
+ $t(o)(e.description, u, r.x, r.y, r.width, r.height, {
3927
+ class: "actor"
3928
+ }, o);
3929
+ var p = e.height;
3930
+ if (y.node) {
3931
+ var x1 = y.node().getBBox();
3932
+ e.height = x1.height, p = x1.height;
3933
+ }
3934
+ return p;
3935
+ }, _0 = function _0(t, e, o, n) {
3936
+ var i = n ? e.stopy : e.starty, s = e.x + e.width / 2, l = i + 80;
3937
+ t.lower(), n || (it++, t.append("line").attr("id", "actor" + it).attr("x1", s).attr("y1", l).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line").attr("class", "200").attr("stroke-width", "0.5px").attr("stroke", "#999"), e.actorCnt = it);
3938
+ var h$1 = t.append("g");
3939
+ h$1.attr("class", "actor-man");
3940
+ var u = h();
3941
+ u.x = e.x, u.y = i, u.fill = "#eaeaea", u.width = e.width, u.height = e.height, u.class = "actor", u.rx = 3, u.ry = 3, h$1.append("line").attr("id", "actor-man-torso" + it).attr("x1", s).attr("y1", i + 25).attr("x2", s).attr("y2", i + 45), h$1.append("line").attr("id", "actor-man-arms" + it).attr("x1", s - gt / 2).attr("y1", i + 33).attr("x2", s + gt / 2).attr("y2", i + 33), h$1.append("line").attr("x1", s - gt / 2).attr("y1", i + 60).attr("x2", s).attr("y2", i + 45), h$1.append("line").attr("x1", s).attr("y1", i + 45).attr("x2", s + gt / 2 - 2).attr("y2", i + 60);
3942
+ var r = h$1.append("circle");
3943
+ r.attr("cx", e.x + e.width / 2), r.attr("cy", i + 10), r.attr("r", 15), r.attr("width", e.width), r.attr("height", e.height);
3944
+ var g = h$1.node().getBBox();
3945
+ return e.height = g.height, $t(o)(e.description, h$1, u.x, u.y + 35, u.width, u.height, {
3946
+ class: "actor"
3947
+ }, o), e.height;
3948
+ }, k0 = function k0(t, e, o, n) {
3949
+ switch(e.type){
3950
+ case "actor":
3951
+ return _0(t, e, o, n);
3952
+ case "participant":
3953
+ return w0(t, e, o, n);
3954
+ }
3955
+ }, P0 = function P0(t, e, o) {
3956
+ var i = t.append("g");
3957
+ Ee(i, e), e.name && $t(o)(e.name, i, e.x, e.y + (e.textMaxHeight || 0) / 2, e.width, 0, {
3958
+ class: "text"
3959
+ }, o), i.lower();
3960
+ }, L0 = function L0(t) {
3961
+ return t.append("g");
3962
+ }, I0 = function I0(t, e, o, n, i) {
3963
+ var s = h(), l = e.anchored;
3964
+ s.x = e.startx, s.y = e.starty, s.class = "activation" + i % 3, s.width = e.stopx - e.startx, s.height = o - e.starty, jt(l, s);
3965
+ }, A0 = function A0(t, e, o, n) {
3966
+ var i = n.boxMargin, s = n.boxTextMargin, l = n.labelBoxHeight, h = n.labelBoxWidth, u = n.messageFontFamily, r = n.messageFontSize, g$1 = n.messageFontWeight, y = t.append("g"), p = function p(P, v, D, S) {
3967
+ return y.append("line").attr("x1", P).attr("y1", v).attr("x2", D).attr("y2", S).attr("class", "loopLine");
3968
+ };
3969
+ p(e.startx, e.starty, e.stopx, e.starty), p(e.stopx, e.starty, e.stopx, e.stopy), p(e.startx, e.stopy, e.stopx, e.stopy), p(e.startx, e.starty, e.startx, e.stopy), e.sections !== void 0 && e.sections.forEach(function(P) {
3970
+ p(e.startx, P.y, e.stopx, P.y).style("stroke-dasharray", "3, 3");
3971
+ });
3972
+ var x = g();
3973
+ x.text = o, x.x = e.startx, x.y = e.starty, x.fontFamily = u, x.fontSize = r, x.fontWeight = g$1, x.anchor = "middle", x.valign = "middle", x.tspan = !1, x.width = h || 50, x.height = l || 20, x.textMargin = s, x.class = "labelText", Te(y, x), x = be(), x.text = e.title, x.x = e.startx + h / 2 + (e.stopx - e.startx) / 2, x.y = e.starty + i + s, x.anchor = "middle", x.valign = "middle", x.textMargin = s, x.class = "loopText", x.fontFamily = u, x.fontSize = r, x.fontWeight = g$1, x.wrap = !0;
3974
+ var b = wt(y, x);
3975
+ return e.sectionTitles !== void 0 && e.sectionTitles.forEach(function(P, v) {
3976
+ if (P.message) {
3977
+ x.text = P.message, x.x = e.startx + (e.stopx - e.startx) / 2, x.y = e.sections[v].y + i + s, x.class = "loopText", x.anchor = "middle", x.valign = "middle", x.tspan = !1, x.fontFamily = u, x.fontSize = r, x.fontWeight = g$1, x.wrap = e.wrap, b = wt(y, x);
3978
+ var D = Math.round(b.map(function(S) {
3979
+ return (S._groups || S)[0][0].getBBox().height;
3980
+ }).reduce(function(S, W) {
3981
+ return S + W;
3982
+ }));
3983
+ e.sections[v].height += D - (i + s);
3984
+ }
3985
+ }), e.height = Math.round(e.stopy - e.starty), y;
3986
+ }, Ee = function Ee(t, e) {
3987
+ c(t, e);
3988
+ }, N0 = function N0(t) {
3989
+ t.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr("d", "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z");
3990
+ }, v0 = function v0(t) {
3991
+ t.append("defs").append("symbol").attr("id", "computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z");
3992
+ }, S0 = function S0(t) {
3993
+ t.append("defs").append("symbol").attr("id", "clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z");
3994
+ }, M0 = function M0(t) {
3995
+ t.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 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");
3996
+ }, R0 = function R0(t) {
3997
+ t.append("defs").append("marker").attr("id", "filled-head").attr("refX", 18).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");
3998
+ }, D0 = function D0(t) {
3999
+ 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);
4000
+ }, V0 = function V0(t) {
4001
+ t.append("defs").append("marker").attr("id", "crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 4).attr("refY", 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");
4002
+ }, be = function be() {
4003
+ return {
4004
+ x: 0,
4005
+ y: 0,
4006
+ fill: void 0,
4007
+ anchor: void 0,
4008
+ style: "#666",
4009
+ width: void 0,
4010
+ height: void 0,
4011
+ textMargin: 0,
4012
+ rx: 0,
4013
+ ry: 0,
4014
+ tspan: !0,
4015
+ valign: void 0
4016
+ };
4017
+ }, C0 = function C0() {
4018
+ return {
4019
+ x: 0,
4020
+ y: 0,
4021
+ fill: "#EDF2AE",
4022
+ stroke: "#666",
4023
+ width: 100,
4024
+ anchor: "start",
4025
+ height: 100,
4026
+ rx: 0,
4027
+ ry: 0
4028
+ };
4029
+ }, $t = function() {
4030
+ function t(i, s, l, h, u, r, g) {
4031
+ var y = s.append("text").attr("x", l + u / 2).attr("y", h + r / 2 + 5).style("text-anchor", "middle").text(i);
4032
+ n(y, g);
4033
+ }
4034
+ function e(i, s, l, h, u, r, g, y) {
4035
+ var p = y.actorFontSize, x = y.actorFontFamily, b = y.actorFontWeight, _le = _sliced_to_array(Dn(p), 2), P = _le[0], v = _le[1], D = i.split(Bn.lineBreakRegex);
4036
+ for(var S = 0; S < D.length; S++){
4037
+ var W = S * P - P * (D.length - 1) / 2, M = s.append("text").attr("x", l + u / 2).attr("y", h).style("text-anchor", "middle").style("font-size", v).style("font-weight", b).style("font-family", x);
4038
+ M.append("tspan").attr("x", l + u / 2).attr("dy", W).text(D[S]), M.attr("y", h + r / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), n(M, g);
4039
+ }
4040
+ }
4041
+ function o(i, s, l, h, u, r, g, y) {
4042
+ var p = s.append("switch"), b = p.append("foreignObject").attr("x", l).attr("y", h).attr("width", u).attr("height", r).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
4043
+ b.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(i), e(i, p, l, h, u, r, g, y), n(b, g);
4044
+ }
4045
+ function n(i, s) {
4046
+ for(var l in s)s.hasOwnProperty(l) && i.attr(l, s[l]);
4047
+ }
4048
+ return function(i) {
4049
+ return i.textPlacement === "fo" ? o : i.textPlacement === "old" ? t : e;
4050
+ };
4051
+ }(), O0 = function() {
4052
+ function t(i, s, l, h, u, r, g) {
4053
+ var y = s.append("text").attr("x", l).attr("y", h).style("text-anchor", "start").text(i);
4054
+ n(y, g);
4055
+ }
4056
+ function e(i, s, l, h, u, r, g, y) {
4057
+ var p = y.actorFontSize, x = y.actorFontFamily, b = y.actorFontWeight, P = i.split(Bn.lineBreakRegex);
4058
+ for(var v = 0; v < P.length; v++){
4059
+ var D = v * p - p * (P.length - 1) / 2, S = s.append("text").attr("x", l).attr("y", h).style("text-anchor", "start").style("font-size", p).style("font-weight", b).style("font-family", x);
4060
+ S.append("tspan").attr("x", l).attr("dy", D).text(P[v]), S.attr("y", h + r / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), n(S, g);
4061
+ }
4062
+ }
4063
+ function o(i, s, l, h, u, r, g, y) {
4064
+ var p = s.append("switch"), b = p.append("foreignObject").attr("x", l).attr("y", h).attr("width", u).attr("height", r).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
4065
+ b.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(i), e(i, p, l, h, u, r, g, y), n(b, g);
4066
+ }
4067
+ function n(i, s) {
4068
+ for(var l in s)s.hasOwnProperty(l) && i.attr(l, s[l]);
4069
+ }
4070
+ return function(i) {
4071
+ return i.textPlacement === "fo" ? o : i.textPlacement === "old" ? t : e;
4072
+ };
4073
+ }(), C = {
4074
+ drawRect: jt,
4075
+ drawText: wt,
4076
+ drawLabel: Te,
4077
+ drawActor: k0,
4078
+ drawBox: P0,
4079
+ drawPopup: T0,
4080
+ anchorElement: L0,
4081
+ drawActivation: I0,
4082
+ drawLoop: A0,
4083
+ drawBackgroundRect: Ee,
4084
+ insertArrowHead: M0,
4085
+ insertArrowFilledHead: R0,
4086
+ insertSequenceNumber: D0,
4087
+ insertArrowCrossHead: V0,
4088
+ insertDatabaseIcon: N0,
4089
+ insertComputerIcon: v0,
4090
+ insertClockIcon: S0,
4091
+ getTextObj: be,
4092
+ getNoteRect: C0,
4093
+ popupMenu: y0,
4094
+ popdownMenu: E0,
4095
+ fixLifeLineHeights: ye,
4096
+ sanitizeUrl: us
4097
+ };
4098
+ var a = {};
4099
+ var f = {
4100
+ data: {
4101
+ startx: void 0,
4102
+ stopx: void 0,
4103
+ starty: void 0,
4104
+ stopy: void 0
4105
+ },
4106
+ verticalPos: 0,
4107
+ sequenceItems: [],
4108
+ activations: [],
4109
+ models: {
4110
+ getHeight: function getHeight() {
4111
+ return Math.max.apply(null, this.actors.length === 0 ? [
4112
+ 0
4113
+ ] : this.actors.map(function(t) {
4114
+ return t.height || 0;
4115
+ })) + (this.loops.length === 0 ? 0 : this.loops.map(function(t) {
4116
+ return t.height || 0;
4117
+ }).reduce(function(t, e) {
4118
+ return t + e;
4119
+ })) + (this.messages.length === 0 ? 0 : this.messages.map(function(t) {
4120
+ return t.height || 0;
4121
+ }).reduce(function(t, e) {
4122
+ return t + e;
4123
+ })) + (this.notes.length === 0 ? 0 : this.notes.map(function(t) {
4124
+ return t.height || 0;
4125
+ }).reduce(function(t, e) {
4126
+ return t + e;
4127
+ }));
4128
+ },
4129
+ clear: function clear() {
4130
+ this.actors = [], this.boxes = [], this.loops = [], this.messages = [], this.notes = [];
4131
+ },
4132
+ addBox: function addBox(t) {
4133
+ this.boxes.push(t);
4134
+ },
4135
+ addActor: function addActor(t) {
4136
+ this.actors.push(t);
4137
+ },
4138
+ addLoop: function addLoop(t) {
4139
+ this.loops.push(t);
4140
+ },
4141
+ addMessage: function addMessage(t) {
4142
+ this.messages.push(t);
4143
+ },
4144
+ addNote: function addNote(t) {
4145
+ this.notes.push(t);
4146
+ },
4147
+ lastActor: function lastActor() {
4148
+ return this.actors[this.actors.length - 1];
4149
+ },
4150
+ lastLoop: function lastLoop() {
4151
+ return this.loops[this.loops.length - 1];
4152
+ },
4153
+ lastMessage: function lastMessage() {
4154
+ return this.messages[this.messages.length - 1];
4155
+ },
4156
+ lastNote: function lastNote() {
4157
+ return this.notes[this.notes.length - 1];
4158
+ },
4159
+ actors: [],
4160
+ boxes: [],
4161
+ loops: [],
4162
+ messages: [],
4163
+ notes: []
4164
+ },
4165
+ init: function init() {
4166
+ this.sequenceItems = [], this.activations = [], this.models.clear(), this.data = {
4167
+ startx: void 0,
4168
+ stopx: void 0,
4169
+ starty: void 0,
4170
+ stopy: void 0
4171
+ }, this.verticalPos = 0, we(Ut$1());
4172
+ },
4173
+ updateVal: function updateVal(t, e, o, n) {
4174
+ t[e] === void 0 ? t[e] = o : t[e] = n(o, t[e]);
4175
+ },
4176
+ updateBounds: function updateBounds(t, e, o, n) {
4177
+ var i = this;
4178
+ var s = 0;
4179
+ function l(h) {
4180
+ return function(r) {
4181
+ s++;
4182
+ var g = i.sequenceItems.length - s + 1;
4183
+ i.updateVal(r, "starty", e - g * a.boxMargin, Math.min), i.updateVal(r, "stopy", n + g * a.boxMargin, Math.max), i.updateVal(f.data, "startx", t - g * a.boxMargin, Math.min), i.updateVal(f.data, "stopx", o + g * a.boxMargin, Math.max), h !== "activation" && (i.updateVal(r, "startx", t - g * a.boxMargin, Math.min), i.updateVal(r, "stopx", o + g * a.boxMargin, Math.max), i.updateVal(f.data, "starty", e - g * a.boxMargin, Math.min), i.updateVal(f.data, "stopy", n + g * a.boxMargin, Math.max));
4184
+ };
4185
+ }
4186
+ this.sequenceItems.forEach(l()), this.activations.forEach(l("activation"));
4187
+ },
4188
+ insert: function insert(t, e, o, n) {
4189
+ var i = Bn.getMin(t, o), s = Bn.getMax(t, o), l = Bn.getMin(e, n), h = Bn.getMax(e, n);
4190
+ this.updateVal(f.data, "startx", i, Math.min), this.updateVal(f.data, "starty", l, Math.min), this.updateVal(f.data, "stopx", s, Math.max), this.updateVal(f.data, "stopy", h, Math.max), this.updateBounds(i, l, s, h);
4191
+ },
4192
+ newActivation: function newActivation(t, e, o) {
4193
+ var n = o[t.from.actor], i = Vt(t.from.actor).length || 0, s = n.x + n.width / 2 + (i - 1) * a.activationWidth / 2;
4194
+ this.activations.push({
4195
+ startx: s,
4196
+ starty: this.verticalPos + 2,
4197
+ stopx: s + a.activationWidth,
4198
+ stopy: void 0,
4199
+ actor: t.from.actor,
4200
+ anchored: C.anchorElement(e)
4201
+ });
4202
+ },
4203
+ endActivation: function endActivation(t) {
4204
+ var e = this.activations.map(function(o) {
4205
+ return o.actor;
4206
+ }).lastIndexOf(t.from.actor);
4207
+ return this.activations.splice(e, 1)[0];
4208
+ },
4209
+ createLoop: function createLoop() {
4210
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
4211
+ message: void 0,
4212
+ wrap: !1,
4213
+ width: void 0
4214
+ }, e = arguments.length > 1 ? arguments[1] : void 0;
4215
+ return {
4216
+ startx: void 0,
4217
+ starty: this.verticalPos,
4218
+ stopx: void 0,
4219
+ stopy: void 0,
4220
+ title: t.message,
4221
+ wrap: t.wrap,
4222
+ width: t.width,
4223
+ height: 0,
4224
+ fill: e
4225
+ };
4226
+ },
4227
+ newLoop: function newLoop() {
4228
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
4229
+ message: void 0,
4230
+ wrap: !1,
4231
+ width: void 0
4232
+ }, e = arguments.length > 1 ? arguments[1] : void 0;
4233
+ this.sequenceItems.push(this.createLoop(t, e));
4234
+ },
4235
+ endLoop: function endLoop() {
4236
+ return this.sequenceItems.pop();
4237
+ },
4238
+ isLoopOverlap: function isLoopOverlap() {
4239
+ return this.sequenceItems.length ? this.sequenceItems[this.sequenceItems.length - 1].overlap : !1;
4240
+ },
4241
+ addSectionToLoop: function addSectionToLoop(t) {
4242
+ var e = this.sequenceItems.pop();
4243
+ e.sections = e.sections || [], e.sectionTitles = e.sectionTitles || [], e.sections.push({
4244
+ y: f.getVerticalPos(),
4245
+ height: 0
4246
+ }), e.sectionTitles.push(t), this.sequenceItems.push(e);
4247
+ },
4248
+ saveVerticalPos: function saveVerticalPos() {
4249
+ this.isLoopOverlap() && (this.savedVerticalPos = this.verticalPos);
4250
+ },
4251
+ resetVerticalPos: function resetVerticalPos() {
4252
+ this.isLoopOverlap() && (this.verticalPos = this.savedVerticalPos);
4253
+ },
4254
+ bumpVerticalPos: function bumpVerticalPos(t) {
4255
+ this.verticalPos = this.verticalPos + t, this.data.stopy = Bn.getMax(this.data.stopy, this.verticalPos);
4256
+ },
4257
+ getVerticalPos: function getVerticalPos() {
4258
+ return this.verticalPos;
4259
+ },
4260
+ getBounds: function getBounds() {
4261
+ return {
4262
+ bounds: this.data,
4263
+ models: this.models
4264
+ };
4265
+ }
4266
+ }, B0 = function B0(t, e) {
4267
+ f.bumpVerticalPos(a.boxMargin), e.height = a.boxMargin, e.starty = f.getVerticalPos();
4268
+ var o = h();
4269
+ o.x = e.startx, o.y = e.starty, o.width = e.width || a.width, o.class = "note";
4270
+ var n = t.append("g"), i = C.drawRect(n, o), s = g();
4271
+ s.x = e.startx, s.y = e.starty, s.width = o.width, s.dy = "1em", s.text = e.message, s.class = "noteText", s.fontFamily = a.noteFontFamily, s.fontSize = a.noteFontSize, s.fontWeight = a.noteFontWeight, s.anchor = a.noteAlign, s.textMargin = a.noteMargin, s.valign = "center";
4272
+ var l = wt(n, s), h$1 = Math.round(l.map(function(u) {
4273
+ return (u._groups || u)[0][0].getBBox().height;
4274
+ }).reduce(function(u, r) {
4275
+ return u + r;
4276
+ }));
4277
+ i.attr("height", h$1 + 2 * a.noteMargin), e.height += h$1 + 2 * a.noteMargin, f.bumpVerticalPos(h$1 + 2 * a.noteMargin), e.stopy = e.starty + h$1 + 2 * a.noteMargin, e.stopx = e.startx + o.width, f.insert(e.startx, e.starty, e.stopx, e.stopy), f.models.addNote(e);
4278
+ }, Tt = function(t) {
4279
+ return {
4280
+ fontFamily: t.messageFontFamily,
4281
+ fontSize: t.messageFontSize,
4282
+ fontWeight: t.messageFontWeight
4283
+ };
4284
+ }, bt = function(t) {
4285
+ return {
4286
+ fontFamily: t.noteFontFamily,
4287
+ fontSize: t.noteFontSize,
4288
+ fontWeight: t.noteFontWeight
4289
+ };
4290
+ }, Kt = function(t) {
4291
+ return {
4292
+ fontFamily: t.actorFontFamily,
4293
+ fontSize: t.actorFontSize,
4294
+ fontWeight: t.actorFontWeight
4295
+ };
4296
+ };
4297
+ function Y0(t, e) {
4298
+ f.bumpVerticalPos(10);
4299
+ var o = e.startx, n = e.stopx, i = e.message, s = Bn.splitBreaks(i).length, l = Oi.calculateTextDimensions(i, Tt(a)), h = l.height / s;
4300
+ e.height += h, f.bumpVerticalPos(h);
4301
+ var u, r = l.height - 10;
4302
+ var g = l.width;
4303
+ if (o === n) {
4304
+ u = f.getVerticalPos() + r, a.rightAngles || (r += a.boxMargin, u = f.getVerticalPos() + r), r += 30;
4305
+ var y = Bn.getMax(g / 2, a.width / 2);
4306
+ f.insert(o - y, f.getVerticalPos() - 10 + r, n + y, f.getVerticalPos() + 30 + r);
4307
+ } else r += a.boxMargin, u = f.getVerticalPos() + r, f.insert(o, u - 10, n, u);
4308
+ return f.bumpVerticalPos(r), e.height += r, e.stopy = e.starty + e.height, f.insert(e.fromBounds, e.starty, e.toBounds, e.stopy), u;
4309
+ }
4310
+ var F0 = function F0(t, e, o, n) {
4311
+ var i = e.startx, s = e.stopx, l = e.starty, h = e.message, u = e.type, r = e.sequenceIndex, g$1 = e.sequenceVisible, y = Oi.calculateTextDimensions(h, Tt(a)), p = g();
4312
+ p.x = i, p.y = l + 10, p.width = s - i, p.class = "messageText", p.dy = "1em", p.text = h, p.fontFamily = a.messageFontFamily, p.fontSize = a.messageFontSize, p.fontWeight = a.messageFontWeight, p.anchor = a.messageAlign, p.valign = "center", p.textMargin = a.wrapPadding, p.tspan = !1, wt(t, p);
4313
+ var x = y.width;
4314
+ var b;
4315
+ i === s ? a.rightAngles ? b = t.append("path").attr("d", "M ".concat(i, ",").concat(o, " H ").concat(i + Bn.getMax(a.width / 2, x / 2), " V ").concat(o + 25, " H ").concat(i)) : b = t.append("path").attr("d", "M " + i + "," + o + " C " + (i + 60) + "," + (o - 10) + " " + (i + 60) + "," + (o + 30) + " " + i + "," + (o + 20)) : (b = t.append("line"), b.attr("x1", i), b.attr("y1", o), b.attr("x2", s), b.attr("y2", o)), u === n.db.LINETYPE.DOTTED || u === n.db.LINETYPE.DOTTED_CROSS || u === n.db.LINETYPE.DOTTED_POINT || u === n.db.LINETYPE.DOTTED_OPEN ? (b.style("stroke-dasharray", "3, 3"), b.attr("class", "messageLine1")) : b.attr("class", "messageLine0");
4316
+ var P = "";
4317
+ a.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"), (u === n.db.LINETYPE.SOLID || u === n.db.LINETYPE.DOTTED) && b.attr("marker-end", "url(" + P + "#arrowhead)"), (u === n.db.LINETYPE.SOLID_POINT || u === n.db.LINETYPE.DOTTED_POINT) && b.attr("marker-end", "url(" + P + "#filled-head)"), (u === n.db.LINETYPE.SOLID_CROSS || u === n.db.LINETYPE.DOTTED_CROSS) && b.attr("marker-end", "url(" + P + "#crosshead)"), (g$1 || a.showSequenceNumbers) && (b.attr("marker-start", "url(" + P + "#sequencenumber)"), t.append("text").attr("x", i).attr("y", o + 4).attr("font-family", "sans-serif").attr("font-size", "12px").attr("text-anchor", "middle").attr("class", "sequenceNumber").text(r));
4318
+ }, W0 = function W0(t, e, o, n, i, s, l) {
4319
+ var h = 0, u = 0, r, g = 0;
4320
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
4321
+ try {
4322
+ for(var _iterator = n[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
4323
+ var y = _step.value;
4324
+ var p = e[y], x = p.box;
4325
+ r && r != x && (l || f.models.addBox(r), u += a.boxMargin + r.margin), x && x != r && (l || (x.x = h + u, x.y = i), u += x.margin), p.width = p.width || a.width, p.height = Bn.getMax(p.height || a.height, a.height), p.margin = p.margin || a.actorMargin, g = Bn.getMax(g, p.height), o[p.name] && (u += p.width / 2), p.x = h + u, p.starty = f.getVerticalPos(), f.insert(p.x, i, p.x + p.width, p.height), h += p.width + u, p.box && (p.box.width = h + x.margin - p.box.x), u = p.margin, r = p.box, f.models.addActor(p);
4326
+ }
4327
+ } catch (err) {
4328
+ _didIteratorError = true;
4329
+ _iteratorError = err;
4330
+ } finally{
4331
+ try {
4332
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
4333
+ _iterator.return();
4334
+ }
4335
+ } finally{
4336
+ if (_didIteratorError) {
4337
+ throw _iteratorError;
4338
+ }
4339
+ }
4340
+ }
4341
+ r && !l && f.models.addBox(r), f.bumpVerticalPos(g);
4342
+ }, Gt = function Gt(t, e, o, n) {
4343
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
4344
+ if (n) {
4345
+ var i = 0;
4346
+ f.bumpVerticalPos(a.boxMargin * 2);
4347
+ var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
4348
+ try {
4349
+ for(var _iterator = o[Symbol.iterator](), _step; !(_iteratorNormalCompletion1 = (_step = _iterator.next()).done); _iteratorNormalCompletion1 = true){
4350
+ var s = _step.value;
4351
+ var l = e[s];
4352
+ l.stopy || (l.stopy = f.getVerticalPos());
4353
+ var h = C.drawActor(t, l, a, !0);
4354
+ i = Bn.getMax(i, h);
4355
+ }
4356
+ } catch (err) {
4357
+ _didIteratorError1 = true;
4358
+ _iteratorError1 = err;
4359
+ } finally{
4360
+ try {
4361
+ if (!_iteratorNormalCompletion1 && _iterator.return != null) {
4362
+ _iterator.return();
4363
+ }
4364
+ } finally{
4365
+ if (_didIteratorError1) {
4366
+ throw _iteratorError1;
4367
+ }
4368
+ }
4369
+ }
4370
+ f.bumpVerticalPos(i + a.boxMargin);
4371
+ } else try {
4372
+ for(var _iterator1 = o[Symbol.iterator](), _step1; !(_iteratorNormalCompletion = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion = true){
4373
+ var i1 = _step1.value;
4374
+ var s1 = e[i1];
4375
+ C.drawActor(t, s1, a, !1);
4376
+ }
4377
+ } catch (err) {
4378
+ _didIteratorError = true;
4379
+ _iteratorError = err;
4380
+ } finally{
4381
+ try {
4382
+ if (!_iteratorNormalCompletion && _iterator1.return != null) {
4383
+ _iterator1.return();
4384
+ }
4385
+ } finally{
4386
+ if (_didIteratorError) {
4387
+ throw _iteratorError;
4388
+ }
4389
+ }
4390
+ }
4391
+ }, me = function me(t, e, o, n) {
4392
+ var i = 0, s = 0;
4393
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
4394
+ try {
4395
+ for(var _iterator = o[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
4396
+ var l = _step.value;
4397
+ var h = e[l], u = U0(h), r = C.drawPopup(t, h, u, a, a.forceMenus, n);
4398
+ r.height > i && (i = r.height), r.width + h.x > s && (s = r.width + h.x);
4399
+ }
4400
+ } catch (err) {
4401
+ _didIteratorError = true;
4402
+ _iteratorError = err;
4403
+ } finally{
4404
+ try {
4405
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
4406
+ _iterator.return();
4407
+ }
4408
+ } finally{
4409
+ if (_didIteratorError) {
4410
+ throw _iteratorError;
4411
+ }
4412
+ }
4413
+ }
4414
+ return {
4415
+ maxHeight: i,
4416
+ maxWidth: s
4417
+ };
4418
+ }, we = function we(t) {
4419
+ nt(a, t), t.fontFamily && (a.actorFontFamily = a.noteFontFamily = a.messageFontFamily = t.fontFamily), t.fontSize && (a.actorFontSize = a.noteFontSize = a.messageFontSize = t.fontSize), t.fontWeight && (a.actorFontWeight = a.noteFontWeight = a.messageFontWeight = t.fontWeight);
4420
+ }, Vt = function Vt(t) {
4421
+ return f.activations.filter(function(e) {
4422
+ return e.actor === t;
4423
+ });
4424
+ }, ae = function ae(t, e) {
4425
+ var o = e[t], n = Vt(t), i = n.reduce(function(l, h) {
4426
+ return Bn.getMin(l, h.startx);
4427
+ }, o.x + o.width / 2), s = n.reduce(function(l, h) {
4428
+ return Bn.getMax(l, h.stopx);
4429
+ }, o.x + o.width / 2);
4430
+ return [
4431
+ i,
4432
+ s
4433
+ ];
4434
+ };
4435
+ function st(t, e, o, n, i) {
4436
+ f.bumpVerticalPos(o);
4437
+ var s = n;
4438
+ if (e.id && e.message && t[e.id]) {
4439
+ var l = t[e.id].width, h = Tt(a);
4440
+ e.message = Oi.wrapLabel("[".concat(e.message, "]"), l - 2 * a.wrapPadding, h), e.width = l, e.wrap = !0;
4441
+ var u = Oi.calculateTextDimensions(e.message, h), r = Bn.getMax(u.height, a.labelBoxHeight);
4442
+ s = n + r, S.debug("".concat(r, " - ").concat(e.message));
4443
+ }
4444
+ i(e), f.bumpVerticalPos(s);
4445
+ }
4446
+ function q0(t, e, o, n, i, s, l) {
4447
+ function h(r, g) {
4448
+ r.x < i[t.from].x ? (f.insert(e.stopx - g, e.starty, e.startx, e.stopy + r.height / 2 + a.noteMargin), e.stopx = e.stopx + g) : (f.insert(e.startx, e.starty, e.stopx + g, e.stopy + r.height / 2 + a.noteMargin), e.stopx = e.stopx - g);
4449
+ }
4450
+ function u(r, g) {
4451
+ r.x < i[t.to].x ? (f.insert(e.startx - g, e.starty, e.stopx, e.stopy + r.height / 2 + a.noteMargin), e.startx = e.startx + g) : (f.insert(e.stopx, e.starty, e.startx + g, e.stopy + r.height / 2 + a.noteMargin), e.startx = e.startx - g);
4452
+ }
4453
+ if (s[t.to] == n) {
4454
+ var r = i[t.to], g = r.type == "actor" ? gt / 2 + 3 : r.width / 2 + 3;
4455
+ h(r, g), r.starty = o - r.height / 2, f.bumpVerticalPos(r.height / 2);
4456
+ } else if (l[t.from] == n) {
4457
+ var r1 = i[t.from];
4458
+ if (a.mirrorActors) {
4459
+ var g1 = r1.type == "actor" ? gt / 2 : r1.width / 2;
4460
+ u(r1, g1);
4461
+ }
4462
+ r1.stopy = o - r1.height / 2, f.bumpVerticalPos(r1.height / 2);
4463
+ } else if (l[t.to] == n) {
4464
+ var r2 = i[t.to];
4465
+ if (a.mirrorActors) {
4466
+ var g2 = r2.type == "actor" ? gt / 2 + 3 : r2.width / 2 + 3;
4467
+ h(r2, g2);
4468
+ }
4469
+ r2.stopy = o - r2.height / 2, f.bumpVerticalPos(r2.height / 2);
4470
+ }
4471
+ }
4472
+ var z0 = function z0(t, e, o, n) {
4473
+ var _ut = Ut$1(), i = _ut.securityLevel, s = _ut.sequence;
4474
+ a = s, n.db.clear(), n.parser.parse(t);
4475
+ var l;
4476
+ i === "sandbox" && (l = At("#i" + e));
4477
+ var h = i === "sandbox" ? At(l.nodes()[0].contentDocument.body) : At("body"), u = i === "sandbox" ? l.nodes()[0].contentDocument : document;
4478
+ f.init(), S.debug(n.db);
4479
+ var r = i === "sandbox" ? h.select('[id="'.concat(e, '"]')) : At('[id="'.concat(e, '"]')), g = n.db.getActors(), y = n.db.getCreatedActors(), p = n.db.getDestroyedActors(), x = n.db.getBoxes();
4480
+ var b = n.db.getActorKeys();
4481
+ var P = n.db.getMessages(), v = n.db.getDiagramTitle(), D = n.db.hasAtLeastOneBox(), S$1 = n.db.hasAtLeastOneBoxWithTitle(), W = H0(g, P, n);
4482
+ if (a.height = K0(g, W, x), C.insertComputerIcon(r), C.insertDatabaseIcon(r), C.insertClockIcon(r), D && (f.bumpVerticalPos(a.boxMargin), S$1 && f.bumpVerticalPos(x[0].textMaxHeight)), a.hideUnusedParticipants === !0) {
4483
+ var E = /* @__PURE__ */ new Set();
4484
+ P.forEach(function(I) {
4485
+ E.add(I.from), E.add(I.to);
4486
+ }), b = b.filter(function(I) {
4487
+ return E.has(I);
4488
+ });
4489
+ }
4490
+ W0(r, g, y, b, 0, P, !1);
4491
+ var M = J0(P, g, W, n);
4492
+ C.insertArrowHead(r), C.insertArrowCrossHead(r), C.insertArrowFilledHead(r), C.insertSequenceNumber(r);
4493
+ function nt(E, I) {
4494
+ var A = f.endActivation(E);
4495
+ A.starty + 18 > I && (A.starty = I - 6, I += 12), C.drawActivation(r, A, I, a, Vt(E.from.actor).length), f.insert(A.startx, I - 10, A.stopx, I);
4496
+ }
4497
+ var z = 1, X = 1;
4498
+ var Q = [], j = [];
4499
+ P.forEach(function(E, I) {
4500
+ var A, L, U;
4501
+ switch(E.type){
4502
+ case n.db.LINETYPE.NOTE:
4503
+ f.resetVerticalPos(), L = E.noteModel, B0(r, L);
4504
+ break;
4505
+ case n.db.LINETYPE.ACTIVE_START:
4506
+ f.newActivation(E, r, g);
4507
+ break;
4508
+ case n.db.LINETYPE.ACTIVE_END:
4509
+ nt(E, f.getVerticalPos());
4510
+ break;
4511
+ case n.db.LINETYPE.LOOP_START:
4512
+ st(M, E, a.boxMargin, a.boxMargin + a.boxTextMargin, function(N) {
4513
+ return f.newLoop(N);
4514
+ });
4515
+ break;
4516
+ case n.db.LINETYPE.LOOP_END:
4517
+ A = f.endLoop(), C.drawLoop(r, A, "loop", a), f.bumpVerticalPos(A.stopy - f.getVerticalPos()), f.models.addLoop(A);
4518
+ break;
4519
+ case n.db.LINETYPE.RECT_START:
4520
+ st(M, E, a.boxMargin, a.boxMargin, function(N) {
4521
+ return f.newLoop(void 0, N.message);
4522
+ });
4523
+ break;
4524
+ case n.db.LINETYPE.RECT_END:
4525
+ A = f.endLoop(), j.push(A), f.models.addLoop(A), f.bumpVerticalPos(A.stopy - f.getVerticalPos());
4526
+ break;
4527
+ case n.db.LINETYPE.OPT_START:
4528
+ st(M, E, a.boxMargin, a.boxMargin + a.boxTextMargin, function(N) {
4529
+ return f.newLoop(N);
4530
+ });
4531
+ break;
4532
+ case n.db.LINETYPE.OPT_END:
4533
+ A = f.endLoop(), C.drawLoop(r, A, "opt", a), f.bumpVerticalPos(A.stopy - f.getVerticalPos()), f.models.addLoop(A);
4534
+ break;
4535
+ case n.db.LINETYPE.ALT_START:
4536
+ st(M, E, a.boxMargin, a.boxMargin + a.boxTextMargin, function(N) {
4537
+ return f.newLoop(N);
4538
+ });
4539
+ break;
4540
+ case n.db.LINETYPE.ALT_ELSE:
4541
+ st(M, E, a.boxMargin + a.boxTextMargin, a.boxMargin, function(N) {
4542
+ return f.addSectionToLoop(N);
4543
+ });
4544
+ break;
4545
+ case n.db.LINETYPE.ALT_END:
4546
+ A = f.endLoop(), C.drawLoop(r, A, "alt", a), f.bumpVerticalPos(A.stopy - f.getVerticalPos()), f.models.addLoop(A);
4547
+ break;
4548
+ case n.db.LINETYPE.PAR_START:
4549
+ case n.db.LINETYPE.PAR_OVER_START:
4550
+ st(M, E, a.boxMargin, a.boxMargin + a.boxTextMargin, function(N) {
4551
+ return f.newLoop(N);
4552
+ }), f.saveVerticalPos();
4553
+ break;
4554
+ case n.db.LINETYPE.PAR_AND:
4555
+ st(M, E, a.boxMargin + a.boxTextMargin, a.boxMargin, function(N) {
4556
+ return f.addSectionToLoop(N);
4557
+ });
4558
+ break;
4559
+ case n.db.LINETYPE.PAR_END:
4560
+ A = f.endLoop(), C.drawLoop(r, A, "par", a), f.bumpVerticalPos(A.stopy - f.getVerticalPos()), f.models.addLoop(A);
4561
+ break;
4562
+ case n.db.LINETYPE.AUTONUMBER:
4563
+ z = E.message.start || z, X = E.message.step || X, E.message.visible ? n.db.enableSequenceNumbers() : n.db.disableSequenceNumbers();
4564
+ break;
4565
+ case n.db.LINETYPE.CRITICAL_START:
4566
+ st(M, E, a.boxMargin, a.boxMargin + a.boxTextMargin, function(N) {
4567
+ return f.newLoop(N);
4568
+ });
4569
+ break;
4570
+ case n.db.LINETYPE.CRITICAL_OPTION:
4571
+ st(M, E, a.boxMargin + a.boxTextMargin, a.boxMargin, function(N) {
4572
+ return f.addSectionToLoop(N);
4573
+ });
4574
+ break;
4575
+ case n.db.LINETYPE.CRITICAL_END:
4576
+ A = f.endLoop(), C.drawLoop(r, A, "critical", a), f.bumpVerticalPos(A.stopy - f.getVerticalPos()), f.models.addLoop(A);
4577
+ break;
4578
+ case n.db.LINETYPE.BREAK_START:
4579
+ st(M, E, a.boxMargin, a.boxMargin + a.boxTextMargin, function(N) {
4580
+ return f.newLoop(N);
4581
+ });
4582
+ break;
4583
+ case n.db.LINETYPE.BREAK_END:
4584
+ A = f.endLoop(), C.drawLoop(r, A, "break", a), f.bumpVerticalPos(A.stopy - f.getVerticalPos()), f.models.addLoop(A);
4585
+ break;
4586
+ default:
4587
+ try {
4588
+ U = E.msgModel, U.starty = f.getVerticalPos(), U.sequenceIndex = z, U.sequenceVisible = n.db.showSequenceNumbers();
4589
+ var _$N = Y0(r, U);
4590
+ q0(E, U, _$N, I, g, y, p), Q.push({
4591
+ messageModel: U,
4592
+ lineStartY: _$N
4593
+ }), f.models.addMessage(U);
4594
+ } catch (N) {
4595
+ S.error("error while drawing message", N);
4596
+ }
4597
+ }
4598
+ [
4599
+ n.db.LINETYPE.SOLID_OPEN,
4600
+ n.db.LINETYPE.DOTTED_OPEN,
4601
+ n.db.LINETYPE.SOLID,
4602
+ n.db.LINETYPE.DOTTED,
4603
+ n.db.LINETYPE.SOLID_CROSS,
4604
+ n.db.LINETYPE.DOTTED_CROSS,
4605
+ n.db.LINETYPE.SOLID_POINT,
4606
+ n.db.LINETYPE.DOTTED_POINT
4607
+ ].includes(E.type) && (z = z + X);
4608
+ }), S.debug("createdActors", y), S.debug("destroyedActors", p), Gt(r, g, b, !1), Q.forEach(function(E) {
4609
+ return F0(r, E.messageModel, E.lineStartY, n);
4610
+ }), a.mirrorActors && Gt(r, g, b, !0), j.forEach(function(E) {
4611
+ return C.drawBackgroundRect(r, E);
4612
+ }), ye(r, g, b, a), f.models.boxes.forEach(function(E) {
4613
+ E.height = f.getVerticalPos() - E.y, f.insert(E.x, E.y, E.x + E.width, E.height), E.startx = E.x, E.starty = E.y, E.stopx = E.startx + E.width, E.stopy = E.starty + E.height, E.stroke = "rgb(0,0,0, 0.5)", C.drawBox(r, E, a);
4614
+ }), D && f.bumpVerticalPos(a.boxMargin);
4615
+ var F = me(r, g, b, u), _f_getBounds = f.getBounds(), O = _f_getBounds.bounds;
4616
+ var q = O.stopy - O.starty;
4617
+ q < F.maxHeight && (q = F.maxHeight);
4618
+ var H = q + 2 * a.diagramMarginY;
4619
+ a.mirrorActors && (H = H - a.boxMargin + a.bottomMarginAdj);
4620
+ var J = O.stopx - O.startx;
4621
+ J < F.maxWidth && (J = F.maxWidth);
4622
+ var $ = J + 2 * a.diagramMarginX;
4623
+ v && r.append("text").text(v).attr("x", (O.stopx - O.startx) / 2 - 2 * a.diagramMarginX).attr("y", -25), Yg(r, H, $, a.useMaxWidth);
4624
+ var tt = v ? 40 : 0;
4625
+ r.attr("viewBox", O.startx - a.diagramMarginX + " -" + (a.diagramMarginY + tt) + " " + $ + " " + (H + tt)), S.debug("models:", f.models);
4626
+ };
4627
+ function H0(t, e, o) {
4628
+ var n = {};
4629
+ return e.forEach(function(i) {
4630
+ if (t[i.to] && t[i.from]) {
4631
+ var s = t[i.to];
4632
+ if (i.placement === o.db.PLACEMENT.LEFTOF && !s.prevActor || i.placement === o.db.PLACEMENT.RIGHTOF && !s.nextActor) return;
4633
+ var l = i.placement !== void 0, h = !l, u = l ? bt(a) : Tt(a), r = i.wrap ? Oi.wrapLabel(i.message, a.width - 2 * a.wrapPadding, u) : i.message, y = Oi.calculateTextDimensions(r, u).width + 2 * a.wrapPadding;
4634
+ h && i.from === s.nextActor ? n[i.to] = Bn.getMax(n[i.to] || 0, y) : h && i.from === s.prevActor ? n[i.from] = Bn.getMax(n[i.from] || 0, y) : h && i.from === i.to ? (n[i.from] = Bn.getMax(n[i.from] || 0, y / 2), n[i.to] = Bn.getMax(n[i.to] || 0, y / 2)) : i.placement === o.db.PLACEMENT.RIGHTOF ? n[i.from] = Bn.getMax(n[i.from] || 0, y) : i.placement === o.db.PLACEMENT.LEFTOF ? n[s.prevActor] = Bn.getMax(n[s.prevActor] || 0, y) : i.placement === o.db.PLACEMENT.OVER && (s.prevActor && (n[s.prevActor] = Bn.getMax(n[s.prevActor] || 0, y / 2)), s.nextActor && (n[i.from] = Bn.getMax(n[i.from] || 0, y / 2)));
4635
+ }
4636
+ }), S.debug("maxMessageWidthPerActor:", n), n;
4637
+ }
4638
+ var U0 = function U0(t) {
4639
+ var e = 0;
4640
+ var o = Kt(a);
4641
+ for(var n in t.links){
4642
+ var s = Oi.calculateTextDimensions(n, o).width + 2 * a.wrapPadding + 2 * a.boxMargin;
4643
+ e < s && (e = s);
4644
+ }
4645
+ return e;
4646
+ };
4647
+ function K0(t, e, o) {
4648
+ var n = 0;
4649
+ Object.keys(t).forEach(function(s) {
4650
+ var l = t[s];
4651
+ l.wrap && (l.description = Oi.wrapLabel(l.description, a.width - 2 * a.wrapPadding, Kt(a)));
4652
+ var h = Oi.calculateTextDimensions(l.description, Kt(a));
4653
+ l.width = l.wrap ? a.width : Bn.getMax(a.width, h.width + 2 * a.wrapPadding), l.height = l.wrap ? Bn.getMax(h.height, a.height) : a.height, n = Bn.getMax(n, l.height);
4654
+ });
4655
+ for(var s in e){
4656
+ var l = t[s];
4657
+ if (!l) continue;
4658
+ var h = t[l.nextActor];
4659
+ if (!h) {
4660
+ var y = e[s] + a.actorMargin - l.width / 2;
4661
+ l.margin = Bn.getMax(y, a.actorMargin);
4662
+ continue;
4663
+ }
4664
+ var r = e[s] + a.actorMargin - l.width / 2 - h.width / 2;
4665
+ l.margin = Bn.getMax(r, a.actorMargin);
4666
+ }
4667
+ var i = 0;
4668
+ return o.forEach(function(s) {
4669
+ var l = Tt(a);
4670
+ var h = s.actorKeys.reduce(function(g, y) {
4671
+ return g += t[y].width + (t[y].margin || 0);
4672
+ }, 0);
4673
+ h -= 2 * a.boxTextMargin, s.wrap && (s.name = Oi.wrapLabel(s.name, h - 2 * a.wrapPadding, l));
4674
+ var u = Oi.calculateTextDimensions(s.name, l);
4675
+ i = Bn.getMax(u.height, i);
4676
+ var r = Bn.getMax(h, u.width + 2 * a.wrapPadding);
4677
+ if (s.margin = a.boxTextMargin, h < r) {
4678
+ var g = (r - h) / 2;
4679
+ s.margin += g;
4680
+ }
4681
+ }), o.forEach(function(s) {
4682
+ return s.textMaxHeight = i;
4683
+ }), Bn.getMax(n, a.height);
4684
+ }
4685
+ var G0 = function G0(t, e, o) {
4686
+ var n = e[t.from].x, i = e[t.to].x, s = t.wrap && t.message;
4687
+ var l = Oi.calculateTextDimensions(s ? Oi.wrapLabel(t.message, a.width, bt(a)) : t.message, bt(a));
4688
+ var h = {
4689
+ width: s ? a.width : Bn.getMax(a.width, l.width + 2 * a.noteMargin),
4690
+ height: 0,
4691
+ startx: e[t.from].x,
4692
+ stopx: 0,
4693
+ starty: 0,
4694
+ stopy: 0,
4695
+ message: t.message
4696
+ };
4697
+ return t.placement === o.db.PLACEMENT.RIGHTOF ? (h.width = s ? Bn.getMax(a.width, l.width) : Bn.getMax(e[t.from].width / 2 + e[t.to].width / 2, l.width + 2 * a.noteMargin), h.startx = n + (e[t.from].width + a.actorMargin) / 2) : t.placement === o.db.PLACEMENT.LEFTOF ? (h.width = s ? Bn.getMax(a.width, l.width + 2 * a.noteMargin) : Bn.getMax(e[t.from].width / 2 + e[t.to].width / 2, l.width + 2 * a.noteMargin), h.startx = n - h.width + (e[t.from].width - a.actorMargin) / 2) : t.to === t.from ? (l = Oi.calculateTextDimensions(s ? Oi.wrapLabel(t.message, Bn.getMax(a.width, e[t.from].width), bt(a)) : t.message, bt(a)), h.width = s ? Bn.getMax(a.width, e[t.from].width) : Bn.getMax(e[t.from].width, a.width, l.width + 2 * a.noteMargin), h.startx = n + (e[t.from].width - h.width) / 2) : (h.width = Math.abs(n + e[t.from].width / 2 - (i + e[t.to].width / 2)) + a.actorMargin, h.startx = n < i ? n + e[t.from].width / 2 - a.actorMargin / 2 : i + e[t.to].width / 2 - a.actorMargin / 2), s && (h.message = Oi.wrapLabel(t.message, h.width - 2 * a.wrapPadding, bt(a))), S.debug("NM:[".concat(h.startx, ",").concat(h.stopx, ",").concat(h.starty, ",").concat(h.stopy, ":").concat(h.width, ",").concat(h.height, "=").concat(t.message, "]")), h;
4698
+ }, X0 = function X0(t, e, o) {
4699
+ var n = !1;
4700
+ if ([
4701
+ o.db.LINETYPE.SOLID_OPEN,
4702
+ o.db.LINETYPE.DOTTED_OPEN,
4703
+ o.db.LINETYPE.SOLID,
4704
+ o.db.LINETYPE.DOTTED,
4705
+ o.db.LINETYPE.SOLID_CROSS,
4706
+ o.db.LINETYPE.DOTTED_CROSS,
4707
+ o.db.LINETYPE.SOLID_POINT,
4708
+ o.db.LINETYPE.DOTTED_POINT
4709
+ ].includes(t.type) && (n = !0), !n) return {};
4710
+ var i = ae(t.from, e), s = ae(t.to, e), l = i[0] <= s[0] ? 1 : 0, h = i[0] < s[0] ? 0 : 1, u = _to_consumable_array(i).concat(_to_consumable_array(s)), r = Math.abs(s[h] - i[l]);
4711
+ t.wrap && t.message && (t.message = Oi.wrapLabel(t.message, Bn.getMax(r + 2 * a.wrapPadding, a.width), Tt(a)));
4712
+ var g = Oi.calculateTextDimensions(t.message, Tt(a));
4713
+ return {
4714
+ width: Bn.getMax(t.wrap ? 0 : g.width + 2 * a.wrapPadding, r + 2 * a.wrapPadding, a.width),
4715
+ height: 0,
4716
+ startx: i[l],
4717
+ stopx: s[h],
4718
+ starty: 0,
4719
+ stopy: 0,
4720
+ message: t.message,
4721
+ type: t.type,
4722
+ wrap: t.wrap,
4723
+ fromBounds: Math.min.apply(null, u),
4724
+ toBounds: Math.max.apply(null, u)
4725
+ };
4726
+ }, J0 = function J0(t, e, o, n) {
4727
+ var i = {}, s = [];
4728
+ var l, h, u;
4729
+ return t.forEach(function(r) {
4730
+ switch(r.id = Oi.random({
4731
+ length: 10
4732
+ }), r.type){
4733
+ case n.db.LINETYPE.LOOP_START:
4734
+ case n.db.LINETYPE.ALT_START:
4735
+ case n.db.LINETYPE.OPT_START:
4736
+ case n.db.LINETYPE.PAR_START:
4737
+ case n.db.LINETYPE.PAR_OVER_START:
4738
+ case n.db.LINETYPE.CRITICAL_START:
4739
+ case n.db.LINETYPE.BREAK_START:
4740
+ s.push({
4741
+ id: r.id,
4742
+ msg: r.message,
4743
+ from: Number.MAX_SAFE_INTEGER,
4744
+ to: Number.MIN_SAFE_INTEGER,
4745
+ width: 0
4746
+ });
4747
+ break;
4748
+ case n.db.LINETYPE.ALT_ELSE:
4749
+ case n.db.LINETYPE.PAR_AND:
4750
+ case n.db.LINETYPE.CRITICAL_OPTION:
4751
+ r.message && (l = s.pop(), i[l.id] = l, i[r.id] = l, s.push(l));
4752
+ break;
4753
+ case n.db.LINETYPE.LOOP_END:
4754
+ case n.db.LINETYPE.ALT_END:
4755
+ case n.db.LINETYPE.OPT_END:
4756
+ case n.db.LINETYPE.PAR_END:
4757
+ case n.db.LINETYPE.CRITICAL_END:
4758
+ case n.db.LINETYPE.BREAK_END:
4759
+ l = s.pop(), i[l.id] = l;
4760
+ break;
4761
+ case n.db.LINETYPE.ACTIVE_START:
4762
+ {
4763
+ var y = e[r.from ? r.from.actor : r.to.actor], p = Vt(r.from ? r.from.actor : r.to.actor).length, x = y.x + y.width / 2 + (p - 1) * a.activationWidth / 2, b = {
4764
+ startx: x,
4765
+ stopx: x + a.activationWidth,
4766
+ actor: r.from.actor,
4767
+ enabled: !0
4768
+ };
4769
+ f.activations.push(b);
4770
+ }
4771
+ break;
4772
+ case n.db.LINETYPE.ACTIVE_END:
4773
+ {
4774
+ var y1 = f.activations.map(function(p) {
4775
+ return p.actor;
4776
+ }).lastIndexOf(r.from.actor);
4777
+ delete f.activations.splice(y1, 1)[0];
4778
+ }
4779
+ break;
4780
+ }
4781
+ r.placement !== void 0 ? (h = G0(r, e, n), r.noteModel = h, s.forEach(function(y) {
4782
+ l = y, l.from = Bn.getMin(l.from, h.startx), l.to = Bn.getMax(l.to, h.startx + h.width), l.width = Bn.getMax(l.width, Math.abs(l.from - l.to)) - a.labelBoxWidth;
4783
+ })) : (u = X0(r, e, n), r.msgModel = u, u.startx && u.stopx && s.length > 0 && s.forEach(function(y) {
4784
+ if (l = y, u.startx === u.stopx) {
4785
+ var p = e[r.from], x = e[r.to];
4786
+ l.from = Bn.getMin(p.x - u.width / 2, p.x - p.width / 2, l.from), l.to = Bn.getMax(x.x + u.width / 2, x.x + p.width / 2, l.to), l.width = Bn.getMax(l.width, Math.abs(l.to - l.from)) - a.labelBoxWidth;
4787
+ } else l.from = Bn.getMin(u.startx, l.from), l.to = Bn.getMax(u.stopx, l.to), l.width = Bn.getMax(l.width, u.width) - a.labelBoxWidth;
4788
+ }));
4789
+ }), f.activations = [], S.debug("Loop type widths:", i), i;
4790
+ }, Z0 = {
4791
+ bounds: f,
4792
+ drawActors: Gt,
4793
+ drawActorsPopup: me,
4794
+ setConf: we,
4795
+ draw: z0
4796
+ }, $0 = {
4797
+ parser: ze,
4798
+ db: f0,
4799
+ renderer: Z0,
4800
+ styles: x0
4801
+ };
4802
+
4803
+ export { $0 as diagram };