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