@digipair/skill-web-chatbot 0.8.37 → 0.8.40

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 (129) hide show
  1. package/Tableau10-558cc280.cjs.js +9 -0
  2. package/Tableau10-558cc280.esm.js +7 -0
  3. package/arc-d1f6357e.cjs.js +88 -0
  4. package/arc-d1f6357e.esm.js +86 -0
  5. package/blockDiagram-5dc23a45.cjs.js +2921 -0
  6. package/blockDiagram-5dc23a45.esm.js +2919 -0
  7. package/{c4Diagram-1bdb45a8.cjs.js → c4Diagram-1e775db3.cjs.js} +1904 -2130
  8. package/{c4Diagram-1bdb45a8.esm.js → c4Diagram-1e775db3.esm.js} +1906 -2132
  9. package/channel-ebbc4130.cjs.js +9 -0
  10. package/channel-ebbc4130.esm.js +7 -0
  11. package/classDiagram-f52caa06.cjs.js +209 -0
  12. package/classDiagram-f52caa06.esm.js +207 -0
  13. package/{classDiagram-v2-6dc3b9c3.cjs.js → classDiagram-v2-640c694e.cjs.js} +74 -76
  14. package/{classDiagram-v2-6dc3b9c3.esm.js → classDiagram-v2-640c694e.esm.js} +75 -77
  15. package/clone-afc2f047.cjs.js +10 -0
  16. package/clone-afc2f047.esm.js +8 -0
  17. package/createText-03b82060.cjs.js +2936 -0
  18. package/createText-03b82060.esm.js +2933 -0
  19. package/edges-16357fde.cjs.js +1998 -0
  20. package/edges-16357fde.esm.js +1981 -0
  21. package/erDiagram-c7ff1bec.cjs.js +1807 -0
  22. package/erDiagram-c7ff1bec.esm.js +1805 -0
  23. package/flowDb-9a89ea33.cjs.js +5542 -0
  24. package/flowDb-9a89ea33.esm.js +5538 -0
  25. package/flowDiagram-aadb13b0.cjs.js +1351 -0
  26. package/flowDiagram-aadb13b0.esm.js +1349 -0
  27. package/flowDiagram-v2-f2119625.cjs.js +31 -0
  28. package/flowDiagram-v2-f2119625.esm.js +29 -0
  29. package/flowchart-elk-definition-cf813a97.cjs.js +50257 -0
  30. package/flowchart-elk-definition-cf813a97.esm.js +50255 -0
  31. package/ganttDiagram-3c2fde2b.cjs.js +3710 -0
  32. package/ganttDiagram-3c2fde2b.esm.js +3708 -0
  33. package/{gitGraphDiagram-c3fe571f.cjs.js → gitGraphDiagram-c3a0619c.cjs.js} +1608 -1651
  34. package/{gitGraphDiagram-c3fe571f.esm.js → gitGraphDiagram-c3a0619c.esm.js} +1609 -1652
  35. package/graph-0ee63739.cjs.js +961 -0
  36. package/graph-0ee63739.esm.js +938 -0
  37. package/index-bb6d8841.cjs.js +648 -0
  38. package/index-bb6d8841.esm.js +646 -0
  39. package/index.cjs2.js +5410 -4623
  40. package/index.esm.js +1 -1
  41. package/index.esm2.js +5291 -4527
  42. package/{infoDiagram-9c10eab1.cjs.js → infoDiagram-2f5c50c0.cjs.js} +63 -70
  43. package/{infoDiagram-9c10eab1.esm.js → infoDiagram-2f5c50c0.esm.js} +64 -71
  44. package/journeyDiagram-14fe341a.cjs.js +1061 -0
  45. package/journeyDiagram-14fe341a.esm.js +1059 -0
  46. package/katex-d90b6d29.cjs.js +25690 -0
  47. package/katex-d90b6d29.esm.js +25688 -0
  48. package/layout-fd473db2.cjs.js +1626 -0
  49. package/layout-fd473db2.esm.js +1619 -0
  50. package/libs/skill-web-chatbot/src/lib/pins/chatbot.actions.d.ts +0 -2
  51. package/line-24d93f1b.cjs.js +34 -0
  52. package/line-24d93f1b.esm.js +32 -0
  53. package/linear-9bcf74c4.cjs.js +537 -0
  54. package/linear-9bcf74c4.esm.js +531 -0
  55. package/{mindmap-definition-a9d0f378.cjs.js → mindmap-definition-9399c7e6.cjs.js} +7874 -7610
  56. package/{mindmap-definition-a9d0f378.esm.js → mindmap-definition-9399c7e6.esm.js} +7875 -7611
  57. package/package.json +1 -1
  58. package/path-428ebac9.cjs.js +317 -0
  59. package/path-428ebac9.esm.js +314 -0
  60. package/pieDiagram-828dae43.cjs.js +951 -0
  61. package/pieDiagram-828dae43.esm.js +949 -0
  62. package/{quadrantDiagram-1763608a.cjs.js → quadrantDiagram-5fa00455.cjs.js} +1117 -1340
  63. package/{quadrantDiagram-1763608a.esm.js → quadrantDiagram-5fa00455.esm.js} +1118 -1341
  64. package/{requirementDiagram-779d93b3.cjs.js → requirementDiagram-03163dc4.cjs.js} +1044 -1228
  65. package/{requirementDiagram-779d93b3.esm.js → requirementDiagram-03163dc4.esm.js} +1045 -1229
  66. package/{sankeyDiagram-86a66bae.cjs.js → sankeyDiagram-52ec8976.cjs.js} +337 -339
  67. package/{sankeyDiagram-86a66bae.esm.js → sankeyDiagram-52ec8976.esm.js} +338 -340
  68. package/sequenceDiagram-b517d154.cjs.js +5949 -0
  69. package/sequenceDiagram-b517d154.esm.js +5947 -0
  70. package/{stateDiagram-6f4bb19d.cjs.js → stateDiagram-fca82b5b.cjs.js} +62 -61
  71. package/{stateDiagram-6f4bb19d.esm.js → stateDiagram-fca82b5b.esm.js} +65 -64
  72. package/{stateDiagram-v2-d72c79bd.cjs.js → stateDiagram-v2-ed04200a.cjs.js} +96 -100
  73. package/{stateDiagram-v2-d72c79bd.esm.js → stateDiagram-v2-ed04200a.esm.js} +98 -102
  74. package/{styles-659d7242.cjs.js → styles-11e81fdd.cjs.js} +1990 -1965
  75. package/{styles-659d7242.esm.js → styles-11e81fdd.esm.js} +1989 -1964
  76. package/{styles-3fb7b9cf.cjs.js → styles-cacbff60.cjs.js} +935 -1192
  77. package/{styles-3fb7b9cf.esm.js → styles-cacbff60.esm.js} +929 -1186
  78. package/styles-e75131e4.cjs.js +671 -0
  79. package/styles-e75131e4.esm.js +661 -0
  80. package/svgDrawCommon-ecc5f780.cjs.js +68 -0
  81. package/svgDrawCommon-ecc5f780.esm.js +60 -0
  82. package/timeline-definition-4ee9bff4.cjs.js +1161 -0
  83. package/timeline-definition-4ee9bff4.esm.js +1159 -0
  84. package/xychartDiagram-e5e6b652.cjs.js +3150 -0
  85. package/xychartDiagram-e5e6b652.esm.js +3148 -0
  86. package/arc-da8fd8d8.cjs.js +0 -88
  87. package/arc-da8fd8d8.esm.js +0 -86
  88. package/classDiagram-185c1a10.cjs.js +0 -96
  89. package/classDiagram-185c1a10.esm.js +0 -94
  90. package/constant-2fe7eae5.cjs.js +0 -58
  91. package/constant-2fe7eae5.esm.js +0 -55
  92. package/createText-94e3ebbf.cjs.js +0 -2775
  93. package/createText-94e3ebbf.esm.js +0 -2773
  94. package/edges-558884ee.cjs.js +0 -1450
  95. package/edges-558884ee.esm.js +0 -1436
  96. package/erDiagram-97139f44.cjs.js +0 -1949
  97. package/erDiagram-97139f44.esm.js +0 -1947
  98. package/flowDb-a4faf166.cjs.js +0 -6918
  99. package/flowDb-a4faf166.esm.js +0 -6914
  100. package/flowDiagram-ccbbb58d.cjs.js +0 -999
  101. package/flowDiagram-ccbbb58d.esm.js +0 -997
  102. package/flowDiagram-v2-79ccd6da.cjs.js +0 -29
  103. package/flowDiagram-v2-79ccd6da.esm.js +0 -27
  104. package/flowchart-elk-definition-7863a61f.cjs.js +0 -48577
  105. package/flowchart-elk-definition-7863a61f.esm.js +0 -48575
  106. package/ganttDiagram-3eff0dd8.cjs.js +0 -3855
  107. package/ganttDiagram-3eff0dd8.esm.js +0 -3853
  108. package/index-d0b453e2.cjs.js +0 -609
  109. package/index-d0b453e2.esm.js +0 -607
  110. package/journeyDiagram-b6904cec.cjs.js +0 -1292
  111. package/journeyDiagram-b6904cec.esm.js +0 -1290
  112. package/layout-c5a37d74.cjs.js +0 -2808
  113. package/layout-c5a37d74.esm.js +0 -2795
  114. package/line-ce5d1152.cjs.js +0 -34
  115. package/line-ce5d1152.esm.js +0 -32
  116. package/linear-db016d0c.cjs.js +0 -485
  117. package/linear-db016d0c.esm.js +0 -479
  118. package/pieDiagram-fd367f1f.cjs.js +0 -1157
  119. package/pieDiagram-fd367f1f.esm.js +0 -1155
  120. package/sequenceDiagram-169f11ec.cjs.js +0 -4805
  121. package/sequenceDiagram-169f11ec.esm.js +0 -4803
  122. package/styles-3814544c.cjs.js +0 -534
  123. package/styles-3814544c.esm.js +0 -524
  124. package/svgDraw-af99a425.cjs.js +0 -144
  125. package/svgDraw-af99a425.esm.js +0 -141
  126. package/svgDrawCommon-ebe6c236.cjs.js +0 -70
  127. package/svgDrawCommon-ebe6c236.esm.js +0 -62
  128. package/timeline-definition-65183566.cjs.js +0 -1394
  129. package/timeline-definition-65183566.esm.js +0 -1392
@@ -1,1292 +0,0 @@
1
- 'use strict';
2
-
3
- var index = require('./index.cjs2.js');
4
- var svgDrawCommonEbe6c236 = require('./svgDrawCommon-ebe6c236.cjs.js');
5
- var arcDa8fd8d8 = require('./arc-da8fd8d8.cjs.js');
6
- require('./constant-2fe7eae5.cjs.js');
7
-
8
- function _array_like_to_array(arr, len) {
9
- if (len == null || len > arr.length) len = arr.length;
10
- for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
11
- return arr2;
12
- }
13
- function _array_with_holes(arr) {
14
- if (Array.isArray(arr)) return arr;
15
- }
16
- function _array_without_holes(arr) {
17
- if (Array.isArray(arr)) return _array_like_to_array(arr);
18
- }
19
- function _instanceof(left, right) {
20
- if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
21
- return !!right[Symbol.hasInstance](left);
22
- } else {
23
- return left instanceof right;
24
- }
25
- }
26
- function _iterable_to_array(iter) {
27
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
28
- }
29
- function _iterable_to_array_limit(arr, i) {
30
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
31
- if (_i == null) return;
32
- var _arr = [];
33
- var _n = true;
34
- var _d = false;
35
- var _s, _e;
36
- try {
37
- for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
38
- _arr.push(_s.value);
39
- if (i && _arr.length === i) break;
40
- }
41
- } catch (err) {
42
- _d = true;
43
- _e = err;
44
- } finally{
45
- try {
46
- if (!_n && _i["return"] != null) _i["return"]();
47
- } finally{
48
- if (_d) throw _e;
49
- }
50
- }
51
- return _arr;
52
- }
53
- function _non_iterable_rest() {
54
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
55
- }
56
- function _non_iterable_spread() {
57
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
58
- }
59
- function _sliced_to_array(arr, i) {
60
- return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
61
- }
62
- function _to_consumable_array(arr) {
63
- return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
64
- }
65
- function _type_of(obj) {
66
- "@swc/helpers - typeof";
67
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
68
- }
69
- function _unsupported_iterable_to_array(o, minLen) {
70
- if (!o) return;
71
- if (typeof o === "string") return _array_like_to_array(o, minLen);
72
- var n = Object.prototype.toString.call(o).slice(8, -1);
73
- if (n === "Object" && o.constructor) n = o.constructor.name;
74
- if (n === "Map" || n === "Set") return Array.from(n);
75
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
76
- }
77
- var Z = function() {
78
- var t = function t(_, n, a, h) {
79
- for(a = a || {}, h = _.length; h--; a[_[h]] = n);
80
- return a;
81
- }, e = [
82
- 1,
83
- 2
84
- ], s = [
85
- 1,
86
- 5
87
- ], r = [
88
- 6,
89
- 9,
90
- 11,
91
- 17,
92
- 18,
93
- 20,
94
- 22,
95
- 23,
96
- 24,
97
- 26
98
- ], i = [
99
- 1,
100
- 15
101
- ], l = [
102
- 1,
103
- 16
104
- ], c = [
105
- 1,
106
- 17
107
- ], y = [
108
- 1,
109
- 18
110
- ], u = [
111
- 1,
112
- 19
113
- ], x = [
114
- 1,
115
- 20
116
- ], g = [
117
- 1,
118
- 24
119
- ], f = [
120
- 4,
121
- 6,
122
- 9,
123
- 11,
124
- 17,
125
- 18,
126
- 20,
127
- 22,
128
- 23,
129
- 24,
130
- 26
131
- ], d = {
132
- trace: function trace() {},
133
- yy: {},
134
- symbols_: {
135
- error: 2,
136
- start: 3,
137
- journey: 4,
138
- document: 5,
139
- EOF: 6,
140
- directive: 7,
141
- line: 8,
142
- SPACE: 9,
143
- statement: 10,
144
- NEWLINE: 11,
145
- openDirective: 12,
146
- typeDirective: 13,
147
- closeDirective: 14,
148
- ":": 15,
149
- argDirective: 16,
150
- title: 17,
151
- acc_title: 18,
152
- acc_title_value: 19,
153
- acc_descr: 20,
154
- acc_descr_value: 21,
155
- acc_descr_multiline_value: 22,
156
- section: 23,
157
- taskName: 24,
158
- taskData: 25,
159
- open_directive: 26,
160
- type_directive: 27,
161
- arg_directive: 28,
162
- close_directive: 29,
163
- $accept: 0,
164
- $end: 1
165
- },
166
- terminals_: {
167
- 2: "error",
168
- 4: "journey",
169
- 6: "EOF",
170
- 9: "SPACE",
171
- 11: "NEWLINE",
172
- 15: ":",
173
- 17: "title",
174
- 18: "acc_title",
175
- 19: "acc_title_value",
176
- 20: "acc_descr",
177
- 21: "acc_descr_value",
178
- 22: "acc_descr_multiline_value",
179
- 23: "section",
180
- 24: "taskName",
181
- 25: "taskData",
182
- 26: "open_directive",
183
- 27: "type_directive",
184
- 28: "arg_directive",
185
- 29: "close_directive"
186
- },
187
- productions_: [
188
- 0,
189
- [
190
- 3,
191
- 3
192
- ],
193
- [
194
- 3,
195
- 2
196
- ],
197
- [
198
- 5,
199
- 0
200
- ],
201
- [
202
- 5,
203
- 2
204
- ],
205
- [
206
- 8,
207
- 2
208
- ],
209
- [
210
- 8,
211
- 1
212
- ],
213
- [
214
- 8,
215
- 1
216
- ],
217
- [
218
- 8,
219
- 1
220
- ],
221
- [
222
- 7,
223
- 4
224
- ],
225
- [
226
- 7,
227
- 6
228
- ],
229
- [
230
- 10,
231
- 1
232
- ],
233
- [
234
- 10,
235
- 2
236
- ],
237
- [
238
- 10,
239
- 2
240
- ],
241
- [
242
- 10,
243
- 1
244
- ],
245
- [
246
- 10,
247
- 1
248
- ],
249
- [
250
- 10,
251
- 2
252
- ],
253
- [
254
- 10,
255
- 1
256
- ],
257
- [
258
- 12,
259
- 1
260
- ],
261
- [
262
- 13,
263
- 1
264
- ],
265
- [
266
- 16,
267
- 1
268
- ],
269
- [
270
- 14,
271
- 1
272
- ]
273
- ],
274
- performAction: function performAction(n, a, h, p, m, o, R) {
275
- var k = o.length - 1;
276
- switch(m){
277
- case 1:
278
- return o[k - 1];
279
- case 3:
280
- this.$ = [];
281
- break;
282
- case 4:
283
- o[k - 1].push(o[k]), this.$ = o[k - 1];
284
- break;
285
- case 5:
286
- case 6:
287
- this.$ = o[k];
288
- break;
289
- case 7:
290
- case 8:
291
- this.$ = [];
292
- break;
293
- case 11:
294
- p.setDiagramTitle(o[k].substr(6)), this.$ = o[k].substr(6);
295
- break;
296
- case 12:
297
- this.$ = o[k].trim(), p.setAccTitle(this.$);
298
- break;
299
- case 13:
300
- case 14:
301
- this.$ = o[k].trim(), p.setAccDescription(this.$);
302
- break;
303
- case 15:
304
- p.addSection(o[k].substr(8)), this.$ = o[k].substr(8);
305
- break;
306
- case 16:
307
- p.addTask(o[k - 1], o[k]), this.$ = "task";
308
- break;
309
- case 18:
310
- p.parseDirective("%%{", "open_directive");
311
- break;
312
- case 19:
313
- p.parseDirective(o[k], "type_directive");
314
- break;
315
- case 20:
316
- o[k] = o[k].trim().replace(/'/g, '"'), p.parseDirective(o[k], "arg_directive");
317
- break;
318
- case 21:
319
- p.parseDirective("}%%", "close_directive", "journey");
320
- break;
321
- }
322
- },
323
- table: [
324
- {
325
- 3: 1,
326
- 4: e,
327
- 7: 3,
328
- 12: 4,
329
- 26: s
330
- },
331
- {
332
- 1: [
333
- 3
334
- ]
335
- },
336
- t(r, [
337
- 2,
338
- 3
339
- ], {
340
- 5: 6
341
- }),
342
- {
343
- 3: 7,
344
- 4: e,
345
- 7: 3,
346
- 12: 4,
347
- 26: s
348
- },
349
- {
350
- 13: 8,
351
- 27: [
352
- 1,
353
- 9
354
- ]
355
- },
356
- {
357
- 27: [
358
- 2,
359
- 18
360
- ]
361
- },
362
- {
363
- 6: [
364
- 1,
365
- 10
366
- ],
367
- 7: 21,
368
- 8: 11,
369
- 9: [
370
- 1,
371
- 12
372
- ],
373
- 10: 13,
374
- 11: [
375
- 1,
376
- 14
377
- ],
378
- 12: 4,
379
- 17: i,
380
- 18: l,
381
- 20: c,
382
- 22: y,
383
- 23: u,
384
- 24: x,
385
- 26: s
386
- },
387
- {
388
- 1: [
389
- 2,
390
- 2
391
- ]
392
- },
393
- {
394
- 14: 22,
395
- 15: [
396
- 1,
397
- 23
398
- ],
399
- 29: g
400
- },
401
- t([
402
- 15,
403
- 29
404
- ], [
405
- 2,
406
- 19
407
- ]),
408
- t(r, [
409
- 2,
410
- 8
411
- ], {
412
- 1: [
413
- 2,
414
- 1
415
- ]
416
- }),
417
- t(r, [
418
- 2,
419
- 4
420
- ]),
421
- {
422
- 7: 21,
423
- 10: 25,
424
- 12: 4,
425
- 17: i,
426
- 18: l,
427
- 20: c,
428
- 22: y,
429
- 23: u,
430
- 24: x,
431
- 26: s
432
- },
433
- t(r, [
434
- 2,
435
- 6
436
- ]),
437
- t(r, [
438
- 2,
439
- 7
440
- ]),
441
- t(r, [
442
- 2,
443
- 11
444
- ]),
445
- {
446
- 19: [
447
- 1,
448
- 26
449
- ]
450
- },
451
- {
452
- 21: [
453
- 1,
454
- 27
455
- ]
456
- },
457
- t(r, [
458
- 2,
459
- 14
460
- ]),
461
- t(r, [
462
- 2,
463
- 15
464
- ]),
465
- {
466
- 25: [
467
- 1,
468
- 28
469
- ]
470
- },
471
- t(r, [
472
- 2,
473
- 17
474
- ]),
475
- {
476
- 11: [
477
- 1,
478
- 29
479
- ]
480
- },
481
- {
482
- 16: 30,
483
- 28: [
484
- 1,
485
- 31
486
- ]
487
- },
488
- {
489
- 11: [
490
- 2,
491
- 21
492
- ]
493
- },
494
- t(r, [
495
- 2,
496
- 5
497
- ]),
498
- t(r, [
499
- 2,
500
- 12
501
- ]),
502
- t(r, [
503
- 2,
504
- 13
505
- ]),
506
- t(r, [
507
- 2,
508
- 16
509
- ]),
510
- t(f, [
511
- 2,
512
- 9
513
- ]),
514
- {
515
- 14: 32,
516
- 29: g
517
- },
518
- {
519
- 29: [
520
- 2,
521
- 20
522
- ]
523
- },
524
- {
525
- 11: [
526
- 1,
527
- 33
528
- ]
529
- },
530
- t(f, [
531
- 2,
532
- 10
533
- ])
534
- ],
535
- defaultActions: {
536
- 5: [
537
- 2,
538
- 18
539
- ],
540
- 7: [
541
- 2,
542
- 2
543
- ],
544
- 24: [
545
- 2,
546
- 21
547
- ],
548
- 31: [
549
- 2,
550
- 20
551
- ]
552
- },
553
- parseError: function parseError(n, a) {
554
- if (a.recoverable) this.trace(n);
555
- else {
556
- var h = new Error(n);
557
- throw h.hash = a, h;
558
- }
559
- },
560
- parse: function parse(n) {
561
- var a = this, h = [
562
- 0
563
- ], p = [], m = [
564
- null
565
- ], o = [], R = this.table, k = "", z = 0, Q = 0, yt = 2, tt = 1, dt = o.slice.call(arguments, 1), v = Object.create(this.lexer), I = {
566
- yy: {}
567
- };
568
- for(var D in this.yy)Object.prototype.hasOwnProperty.call(this.yy, D) && (I.yy[D] = this.yy[D]);
569
- v.setInput(n, I.yy), I.yy.lexer = v, I.yy.parser = this, _type_of(v.yylloc) > "u" && (v.yylloc = {});
570
- var W = v.yylloc;
571
- o.push(W);
572
- var pt = v.options && v.options.ranges;
573
- typeof I.yy.parseError == "function" ? this.parseError = I.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
574
- function ft() {
575
- var E;
576
- return E = p.pop() || v.lex() || tt, typeof E != "number" && (_instanceof(E, Array) && (p = E, E = p.pop()), E = a.symbols_[E] || E), E;
577
- }
578
- for(var w, A, S, X, F = {}, Y, $, et, O;;){
579
- if (A = h[h.length - 1], this.defaultActions[A] ? S = this.defaultActions[A] : ((w === null || (typeof w === "undefined" ? "undefined" : _type_of(w)) > "u") && (w = ft()), S = R[A] && R[A][w]), (typeof S === "undefined" ? "undefined" : _type_of(S)) > "u" || !S.length || !S[0]) {
580
- var G = "";
581
- O = [];
582
- for(Y in R[A])this.terminals_[Y] && Y > yt && O.push("'" + this.terminals_[Y] + "'");
583
- v.showPosition ? G = "Parse error on line " + (z + 1) + ":\n" + v.showPosition() + "\nExpecting " + O.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : G = "Parse error on line " + (z + 1) + ": Unexpected " + (w == tt ? "end of input" : "'" + (this.terminals_[w] || w) + "'"), this.parseError(G, {
584
- text: v.match,
585
- token: this.terminals_[w] || w,
586
- line: v.yylineno,
587
- loc: W,
588
- expected: O
589
- });
590
- }
591
- if (_instanceof(S[0], Array) && S.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + A + ", token: " + w);
592
- switch(S[0]){
593
- case 1:
594
- h.push(w), m.push(v.yytext), o.push(v.yylloc), h.push(S[1]), w = null, Q = v.yyleng, k = v.yytext, z = v.yylineno, W = v.yylloc;
595
- break;
596
- case 2:
597
- if ($ = this.productions_[S[1]][1], F.$ = m[m.length - $], F._$ = {
598
- first_line: o[o.length - ($ || 1)].first_line,
599
- last_line: o[o.length - 1].last_line,
600
- first_column: o[o.length - ($ || 1)].first_column,
601
- last_column: o[o.length - 1].last_column
602
- }, pt && (F._$.range = [
603
- o[o.length - ($ || 1)].range[0],
604
- o[o.length - 1].range[1]
605
- ]), X = this.performAction.apply(F, [
606
- k,
607
- Q,
608
- z,
609
- I.yy,
610
- S[1],
611
- m,
612
- o
613
- ].concat(dt)), (typeof X === "undefined" ? "undefined" : _type_of(X)) < "u") return X;
614
- $ && (h = h.slice(0, -1 * $ * 2), m = m.slice(0, -1 * $), o = o.slice(0, -1 * $)), h.push(this.productions_[S[1]][0]), m.push(F.$), o.push(F._$), et = R[h[h.length - 2]][h[h.length - 1]], h.push(et);
615
- break;
616
- case 3:
617
- return !0;
618
- }
619
- }
620
- return !0;
621
- }
622
- }, T = function() {
623
- var _ = {
624
- EOF: 1,
625
- parseError: function parseError(a, h) {
626
- if (this.yy.parser) this.yy.parser.parseError(a, h);
627
- else throw new Error(a);
628
- },
629
- // resets the lexer, sets new input
630
- setInput: function setInput(n, a) {
631
- return this.yy = a || this.yy || {}, this._input = n, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = [
632
- "INITIAL"
633
- ], this.yylloc = {
634
- first_line: 1,
635
- first_column: 0,
636
- last_line: 1,
637
- last_column: 0
638
- }, this.options.ranges && (this.yylloc.range = [
639
- 0,
640
- 0
641
- ]), this.offset = 0, this;
642
- },
643
- // consumes and returns one char from the input
644
- input: function input() {
645
- var n = this._input[0];
646
- this.yytext += n, this.yyleng++, this.offset++, this.match += n, this.matched += n;
647
- var a = n.match(/(?:\r\n?|\n).*/g);
648
- return a ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), n;
649
- },
650
- // unshifts one char (or a string) into the input
651
- unput: function unput(n) {
652
- var a = n.length, h = n.split(/(?:\r\n?|\n)/g);
653
- this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
654
- var p = this.match.split(/(?:\r\n?|\n)/g);
655
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), h.length - 1 && (this.yylineno -= h.length - 1);
656
- var m = this.yylloc.range;
657
- return this.yylloc = {
658
- first_line: this.yylloc.first_line,
659
- last_line: this.yylineno + 1,
660
- first_column: this.yylloc.first_column,
661
- last_column: h ? (h.length === p.length ? this.yylloc.first_column : 0) + p[p.length - h.length].length - h[0].length : this.yylloc.first_column - a
662
- }, this.options.ranges && (this.yylloc.range = [
663
- m[0],
664
- m[0] + this.yyleng - a
665
- ]), this.yyleng = this.yytext.length, this;
666
- },
667
- // When called from action, caches matched text and appends it on next action
668
- more: function more() {
669
- return this._more = !0, this;
670
- },
671
- // 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.
672
- reject: function reject() {
673
- if (this.options.backtrack_lexer) this._backtrack = !0;
674
- 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(), {
675
- text: "",
676
- token: null,
677
- line: this.yylineno
678
- });
679
- return this;
680
- },
681
- // retain first n characters of the match
682
- less: function less(n) {
683
- this.unput(this.match.slice(n));
684
- },
685
- // displays already matched input, i.e. for error messages
686
- pastInput: function pastInput() {
687
- var n = this.matched.substr(0, this.matched.length - this.match.length);
688
- return (n.length > 20 ? "..." : "") + n.substr(-20).replace(/\n/g, "");
689
- },
690
- // displays upcoming input, i.e. for error messages
691
- upcomingInput: function upcomingInput() {
692
- var n = this.match;
693
- return n.length < 20 && (n += this._input.substr(0, 20 - n.length)), (n.substr(0, 20) + (n.length > 20 ? "..." : "")).replace(/\n/g, "");
694
- },
695
- // displays the character position where the lexing error occurred, i.e. for error messages
696
- showPosition: function showPosition() {
697
- var n = this.pastInput(), a = new Array(n.length + 1).join("-");
698
- return n + this.upcomingInput() + "\n" + a + "^";
699
- },
700
- // test the lexed token: return FALSE when not a match, otherwise return token
701
- test_match: function test_match(n, a) {
702
- var h, p, m;
703
- if (this.options.backtrack_lexer && (m = {
704
- yylineno: this.yylineno,
705
- yylloc: {
706
- first_line: this.yylloc.first_line,
707
- last_line: this.last_line,
708
- first_column: this.yylloc.first_column,
709
- last_column: this.yylloc.last_column
710
- },
711
- yytext: this.yytext,
712
- match: this.match,
713
- matches: this.matches,
714
- matched: this.matched,
715
- yyleng: this.yyleng,
716
- offset: this.offset,
717
- _more: this._more,
718
- _input: this._input,
719
- yy: this.yy,
720
- conditionStack: this.conditionStack.slice(0),
721
- done: this.done
722
- }, this.options.ranges && (m.yylloc.range = this.yylloc.range.slice(0))), p = n[0].match(/(?:\r\n?|\n).*/g), p && (this.yylineno += p.length), this.yylloc = {
723
- first_line: this.yylloc.last_line,
724
- last_line: this.yylineno + 1,
725
- first_column: this.yylloc.last_column,
726
- last_column: p ? p[p.length - 1].length - p[p.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + n[0].length
727
- }, this.yytext += n[0], this.match += n[0], this.matches = n, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [
728
- this.offset,
729
- this.offset += this.yyleng
730
- ]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(n[0].length), this.matched += n[0], h = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), h) return h;
731
- if (this._backtrack) {
732
- for(var o in m)this[o] = m[o];
733
- return !1;
734
- }
735
- return !1;
736
- },
737
- // return next match in input
738
- next: function next() {
739
- if (this.done) return this.EOF;
740
- this._input || (this.done = !0);
741
- var n, a, h, p;
742
- this._more || (this.yytext = "", this.match = "");
743
- for(var m = this._currentRules(), o = 0; o < m.length; o++)if (h = this._input.match(this.rules[m[o]]), h && (!a || h[0].length > a[0].length)) {
744
- if (a = h, p = o, this.options.backtrack_lexer) {
745
- if (n = this.test_match(h, m[o]), n !== !1) return n;
746
- if (this._backtrack) {
747
- a = !1;
748
- continue;
749
- } else return !1;
750
- } else if (!this.options.flex) break;
751
- }
752
- return a ? (n = this.test_match(a, m[p]), n !== !1 ? n : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
753
- text: "",
754
- token: null,
755
- line: this.yylineno
756
- });
757
- },
758
- // return next match that has a token
759
- lex: function lex() {
760
- var a = this.next();
761
- return a || this.lex();
762
- },
763
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
764
- begin: function begin(a) {
765
- this.conditionStack.push(a);
766
- },
767
- // pop the previously active lexer condition state off the condition stack
768
- popState: function popState() {
769
- var a = this.conditionStack.length - 1;
770
- return a > 0 ? this.conditionStack.pop() : this.conditionStack[0];
771
- },
772
- // produce the lexer rule set which is active for the currently active lexer condition state
773
- _currentRules: function _currentRules() {
774
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
775
- },
776
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
777
- topState: function topState(a) {
778
- return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
779
- },
780
- // alias for begin(condition)
781
- pushState: function pushState(a) {
782
- this.begin(a);
783
- },
784
- // return the number of states currently on the stack
785
- stateStackSize: function stateStackSize() {
786
- return this.conditionStack.length;
787
- },
788
- options: {
789
- "case-insensitive": !0
790
- },
791
- performAction: function performAction(a, h, p, m) {
792
- switch(p){
793
- case 0:
794
- return this.begin("open_directive"), 26;
795
- case 1:
796
- return this.begin("type_directive"), 27;
797
- case 2:
798
- return this.popState(), this.begin("arg_directive"), 15;
799
- case 3:
800
- return this.popState(), this.popState(), 29;
801
- case 4:
802
- return 28;
803
- case 5:
804
- break;
805
- case 6:
806
- break;
807
- case 7:
808
- return 11;
809
- case 8:
810
- break;
811
- case 9:
812
- break;
813
- case 10:
814
- return 4;
815
- case 11:
816
- return 17;
817
- case 12:
818
- return this.begin("acc_title"), 18;
819
- case 13:
820
- return this.popState(), "acc_title_value";
821
- case 14:
822
- return this.begin("acc_descr"), 20;
823
- case 15:
824
- return this.popState(), "acc_descr_value";
825
- case 16:
826
- this.begin("acc_descr_multiline");
827
- break;
828
- case 17:
829
- this.popState();
830
- break;
831
- case 18:
832
- return "acc_descr_multiline_value";
833
- case 19:
834
- return 23;
835
- case 20:
836
- return 24;
837
- case 21:
838
- return 25;
839
- case 22:
840
- return 15;
841
- case 23:
842
- return 6;
843
- case 24:
844
- return "INVALID";
845
- }
846
- },
847
- rules: [
848
- /^(?:%%\{)/i,
849
- /^(?:((?:(?!\}%%)[^:.])*))/i,
850
- /^(?::)/i,
851
- /^(?:\}%%)/i,
852
- /^(?:((?:(?!\}%%).|\n)*))/i,
853
- /^(?:%(?!\{)[^\n]*)/i,
854
- /^(?:[^\}]%%[^\n]*)/i,
855
- /^(?:[\n]+)/i,
856
- /^(?:\s+)/i,
857
- /^(?:#[^\n]*)/i,
858
- /^(?:journey\b)/i,
859
- /^(?:title\s[^#\n;]+)/i,
860
- /^(?:accTitle\s*:\s*)/i,
861
- /^(?:(?!\n||)*[^\n]*)/i,
862
- /^(?:accDescr\s*:\s*)/i,
863
- /^(?:(?!\n||)*[^\n]*)/i,
864
- /^(?:accDescr\s*\{\s*)/i,
865
- /^(?:[\}])/i,
866
- /^(?:[^\}]*)/i,
867
- /^(?:section\s[^#:\n;]+)/i,
868
- /^(?:[^#:\n;]+)/i,
869
- /^(?::[^#\n;]+)/i,
870
- /^(?::)/i,
871
- /^(?:$)/i,
872
- /^(?:.)/i
873
- ],
874
- conditions: {
875
- open_directive: {
876
- rules: [
877
- 1
878
- ],
879
- inclusive: !1
880
- },
881
- type_directive: {
882
- rules: [
883
- 2,
884
- 3
885
- ],
886
- inclusive: !1
887
- },
888
- arg_directive: {
889
- rules: [
890
- 3,
891
- 4
892
- ],
893
- inclusive: !1
894
- },
895
- acc_descr_multiline: {
896
- rules: [
897
- 17,
898
- 18
899
- ],
900
- inclusive: !1
901
- },
902
- acc_descr: {
903
- rules: [
904
- 15
905
- ],
906
- inclusive: !1
907
- },
908
- acc_title: {
909
- rules: [
910
- 13
911
- ],
912
- inclusive: !1
913
- },
914
- INITIAL: {
915
- rules: [
916
- 0,
917
- 5,
918
- 6,
919
- 7,
920
- 8,
921
- 9,
922
- 10,
923
- 11,
924
- 12,
925
- 14,
926
- 16,
927
- 19,
928
- 20,
929
- 21,
930
- 22,
931
- 23,
932
- 24
933
- ],
934
- inclusive: !0
935
- }
936
- }
937
- };
938
- return _;
939
- }();
940
- d.lexer = T;
941
- function b() {
942
- this.yy = {};
943
- }
944
- return b.prototype = d, d.Parser = b, new b();
945
- }();
946
- Z.parser = Z;
947
- var Et = Z;
948
- var L = "";
949
- var J = [], N = [], B = [], Pt = function Pt(t, e, s) {
950
- index.de.parseDirective(this, t, e, s);
951
- }, It = function It() {
952
- J.length = 0, N.length = 0, L = "", B.length = 0, index.Fa();
953
- }, At = function At(t) {
954
- L = t, J.push(t);
955
- }, Ct = function Ct() {
956
- return J;
957
- }, Vt = function Vt() {
958
- var _N;
959
- var t = st();
960
- var e = 100;
961
- var s = 0;
962
- for(; !t && s < e;)t = st(), s++;
963
- return (_N = N).push.apply(_N, _to_consumable_array(B)), N;
964
- }, Ft = function Ft() {
965
- var t = [];
966
- return N.forEach(function(s) {
967
- var _$_t;
968
- s.people && (_$_t = t).push.apply(_$_t, _to_consumable_array(s.people));
969
- }), _to_consumable_array(new Set(t)).sort();
970
- }, Lt = function Lt(t, e) {
971
- var s = e.substr(1).split(":");
972
- var r = 0, i = [];
973
- s.length === 1 ? (r = Number(s[0]), i = []) : (r = Number(s[0]), i = s[1].split(","));
974
- var l = i.map(function(y) {
975
- return y.trim();
976
- }), c = {
977
- section: L,
978
- type: L,
979
- people: l,
980
- task: t,
981
- score: r
982
- };
983
- B.push(c);
984
- }, Rt = function Rt(t) {
985
- var e = {
986
- section: L,
987
- type: L,
988
- description: t,
989
- task: t,
990
- classes: []
991
- };
992
- N.push(e);
993
- }, st = function st() {
994
- var t = function t(s) {
995
- return B[s].processed;
996
- };
997
- var e = !0;
998
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
999
- try {
1000
- for(var _iterator = B.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1001
- var _step_value = _sliced_to_array(_step.value, 2), s = _step_value[0], r = _step_value[1];
1002
- t(s), e = e && r.processed;
1003
- }
1004
- } catch (err) {
1005
- _didIteratorError = true;
1006
- _iteratorError = err;
1007
- } finally{
1008
- try {
1009
- if (!_iteratorNormalCompletion && _iterator.return != null) {
1010
- _iterator.return();
1011
- }
1012
- } finally{
1013
- if (_didIteratorError) {
1014
- throw _iteratorError;
1015
- }
1016
- }
1017
- }
1018
- return e;
1019
- }, Nt = function Nt() {
1020
- return Ft();
1021
- }, nt = {
1022
- parseDirective: Pt,
1023
- getConfig: function() {
1024
- return index.Ut().journey;
1025
- },
1026
- clear: It,
1027
- setDiagramTitle: index.Oa,
1028
- getDiagramTitle: index.Ia,
1029
- setAccTitle: index.La,
1030
- getAccTitle: index.Aa,
1031
- setAccDescription: index.Ea,
1032
- getAccDescription: index.Ma,
1033
- addSection: At,
1034
- getSections: Ct,
1035
- getTasks: Vt,
1036
- addTask: Lt,
1037
- addTaskOrg: Rt,
1038
- getActors: Nt
1039
- }, Bt = function(t) {
1040
- return ".label {\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n color: ".concat(t.textColor, ";\n }\n .mouth {\n stroke: #666;\n }\n\n line {\n stroke: ").concat(t.textColor, "\n }\n\n .legend {\n fill: ").concat(t.textColor, ";\n }\n\n .label text {\n fill: #333;\n }\n .label {\n color: ").concat(t.textColor, "\n }\n\n .face {\n ").concat(t.faceColor ? "fill: ".concat(t.faceColor) : "fill: #FFF8DC", ";\n stroke: #999;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ").concat(t.mainBkg, ";\n stroke: ").concat(t.nodeBorder, ";\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ").concat(t.arrowheadColor, ";\n }\n\n .edgePath .path {\n stroke: ").concat(t.lineColor, ";\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ").concat(t.lineColor, ";\n fill: none;\n }\n\n .edgeLabel {\n background-color: ").concat(t.edgeLabelBackground, ";\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n }\n\n .cluster text {\n fill: ").concat(t.titleColor, ";\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n font-size: 12px;\n background: ").concat(t.tertiaryColor, ";\n border: 1px solid ").concat(t.border2, ";\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .task-type-0, .section-type-0 {\n ").concat(t.fillType0 ? "fill: ".concat(t.fillType0) : "", ";\n }\n .task-type-1, .section-type-1 {\n ").concat(t.fillType0 ? "fill: ".concat(t.fillType1) : "", ";\n }\n .task-type-2, .section-type-2 {\n ").concat(t.fillType0 ? "fill: ".concat(t.fillType2) : "", ";\n }\n .task-type-3, .section-type-3 {\n ").concat(t.fillType0 ? "fill: ".concat(t.fillType3) : "", ";\n }\n .task-type-4, .section-type-4 {\n ").concat(t.fillType0 ? "fill: ".concat(t.fillType4) : "", ";\n }\n .task-type-5, .section-type-5 {\n ").concat(t.fillType0 ? "fill: ".concat(t.fillType5) : "", ";\n }\n .task-type-6, .section-type-6 {\n ").concat(t.fillType0 ? "fill: ".concat(t.fillType6) : "", ";\n }\n .task-type-7, .section-type-7 {\n ").concat(t.fillType0 ? "fill: ".concat(t.fillType7) : "", ";\n }\n\n .actor-0 {\n ").concat(t.actor0 ? "fill: ".concat(t.actor0) : "", ";\n }\n .actor-1 {\n ").concat(t.actor1 ? "fill: ".concat(t.actor1) : "", ";\n }\n .actor-2 {\n ").concat(t.actor2 ? "fill: ".concat(t.actor2) : "", ";\n }\n .actor-3 {\n ").concat(t.actor3 ? "fill: ".concat(t.actor3) : "", ";\n }\n .actor-4 {\n ").concat(t.actor4 ? "fill: ".concat(t.actor4) : "", ";\n }\n .actor-5 {\n ").concat(t.actor5 ? "fill: ".concat(t.actor5) : "", ";\n }\n");
1041
- }, jt = Bt, K = function K(t, e) {
1042
- return svgDrawCommonEbe6c236.l(t, e);
1043
- }, zt = function zt(t, e) {
1044
- var r = t.append("circle").attr("cx", e.cx).attr("cy", e.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), i = t.append("g");
1045
- i.append("circle").attr("cx", e.cx - 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), i.append("circle").attr("cx", e.cx + 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
1046
- function l(u) {
1047
- var x = arcDa8fd8d8.hn().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
1048
- u.append("path").attr("class", "mouth").attr("d", x).attr("transform", "translate(" + e.cx + "," + (e.cy + 2) + ")");
1049
- }
1050
- function c(u) {
1051
- var x = arcDa8fd8d8.hn().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
1052
- u.append("path").attr("class", "mouth").attr("d", x).attr("transform", "translate(" + e.cx + "," + (e.cy + 7) + ")");
1053
- }
1054
- function y(u) {
1055
- u.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", e.cx - 5).attr("y1", e.cy + 7).attr("x2", e.cx + 5).attr("y2", e.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
1056
- }
1057
- return e.score > 3 ? l(i) : e.score < 3 ? c(i) : y(i), r;
1058
- }, lt = function lt(t, e) {
1059
- var s = t.append("circle");
1060
- return s.attr("cx", e.cx), s.attr("cy", e.cy), s.attr("class", "actor-" + e.pos), s.attr("fill", e.fill), s.attr("stroke", e.stroke), s.attr("r", e.r), s.class !== void 0 && s.attr("class", s.class), e.title !== void 0 && s.append("title").text(e.title), s;
1061
- }, ht = function ht(t, e) {
1062
- return svgDrawCommonEbe6c236.d(t, e);
1063
- }, Yt = function Yt(t, e) {
1064
- function s(i, l, c, y, u) {
1065
- return i + "," + l + " " + (i + c) + "," + l + " " + (i + c) + "," + (l + y - u) + " " + (i + c - u * 1.2) + "," + (l + y) + " " + i + "," + (l + y);
1066
- }
1067
- var r = t.append("polygon");
1068
- r.attr("points", s(e.x, e.y, 50, 20, 7)), r.attr("class", "labelBox"), e.y = e.y + e.labelMargin, e.x = e.x + 0.5 * e.labelMargin, ht(t, e);
1069
- }, Ot = function Ot(t, e, s) {
1070
- var r = t.append("g"), i = svgDrawCommonEbe6c236.h();
1071
- i.x = e.x, i.y = e.y, i.fill = e.fill, i.width = s.width * e.taskCount + // width of the tasks
1072
- s.diagramMarginX * (e.taskCount - 1), i.height = s.height, i.class = "journey-section section-type-" + e.num, i.rx = 3, i.ry = 3, K(r, i), ut(s)(e.text, r, i.x, i.y, i.width, i.height, {
1073
- class: "journey-section section-type-" + e.num
1074
- }, s, e.colour);
1075
- };
1076
- var rt = -1;
1077
- var qt = function qt(t, e, s) {
1078
- var r = e.x + s.width / 2, i = t.append("g");
1079
- rt++;
1080
- var l = 300 + 5 * 30;
1081
- i.append("line").attr("id", "task" + rt).attr("x1", r).attr("y1", e.y).attr("x2", r).attr("y2", l).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), zt(i, {
1082
- cx: r,
1083
- cy: 300 + (5 - e.score) * 30,
1084
- score: e.score
1085
- });
1086
- var c = svgDrawCommonEbe6c236.h();
1087
- c.x = e.x, c.y = e.y, c.fill = e.fill, c.width = s.width, c.height = s.height, c.class = "task task-type-" + e.num, c.rx = 3, c.ry = 3, K(i, c);
1088
- var y = e.x + 14;
1089
- e.people.forEach(function(u) {
1090
- var x = e.actors[u].color, g = {
1091
- cx: y,
1092
- cy: e.y,
1093
- r: 7,
1094
- fill: x,
1095
- stroke: "#000",
1096
- title: u,
1097
- pos: e.actors[u].position
1098
- };
1099
- lt(i, g), y += 10;
1100
- }), ut(s)(e.task, i, c.x, c.y, c.width, c.height, {
1101
- class: "task"
1102
- }, s, e.colour);
1103
- }, Dt = function Dt(t, e) {
1104
- svgDrawCommonEbe6c236.c(t, e);
1105
- }, ut = function() {
1106
- function t(i, l, c, y, u, x, g, f) {
1107
- var d = l.append("text").attr("x", c + u / 2).attr("y", y + x / 2 + 5).style("font-color", f).style("text-anchor", "middle").text(i);
1108
- r(d, g);
1109
- }
1110
- function e(i, l, c, y, u, x, g, f, d) {
1111
- var T = f.taskFontSize, b = f.taskFontFamily, _ = i.split(/<br\s*\/?>/gi);
1112
- for(var n = 0; n < _.length; n++){
1113
- var a = n * T - T * (_.length - 1) / 2, h = l.append("text").attr("x", c + u / 2).attr("y", y).attr("fill", d).style("text-anchor", "middle").style("font-size", T).style("font-family", b);
1114
- h.append("tspan").attr("x", c + u / 2).attr("dy", a).text(_[n]), h.attr("y", y + x / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), r(h, g);
1115
- }
1116
- }
1117
- function s(i, l, c, y, u, x, g, f) {
1118
- var d = l.append("switch"), b = d.append("foreignObject").attr("x", c).attr("y", y).attr("width", u).attr("height", x).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
1119
- b.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(i), e(i, d, c, y, u, x, g, f), r(b, g);
1120
- }
1121
- function r(i, l) {
1122
- for(var c in l)c in l && i.attr(c, l[c]);
1123
- }
1124
- return function(i) {
1125
- return i.textPlacement === "fo" ? s : i.textPlacement === "old" ? t : e;
1126
- };
1127
- }(), Wt = function Wt(t) {
1128
- t.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
1129
- }, j = {
1130
- drawRect: K,
1131
- drawCircle: lt,
1132
- drawSection: Ot,
1133
- drawText: ht,
1134
- drawLabel: Yt,
1135
- drawTask: qt,
1136
- drawBackgroundRect: Dt,
1137
- initGraphics: Wt
1138
- }, Xt = function Xt(t) {
1139
- Object.keys(t).forEach(function(s) {
1140
- q[s] = t[s];
1141
- });
1142
- }, P = {};
1143
- function Gt(t) {
1144
- var e = index.Ut().journey;
1145
- var s = 60;
1146
- Object.keys(P).forEach(function(r) {
1147
- var i = P[r].color, l = {
1148
- cx: 20,
1149
- cy: s,
1150
- r: 7,
1151
- fill: i,
1152
- stroke: "#000",
1153
- pos: P[r].position
1154
- };
1155
- j.drawCircle(t, l);
1156
- var c = {
1157
- x: 40,
1158
- y: s + 7,
1159
- fill: "#666",
1160
- text: r,
1161
- textMargin: e.boxTextMargin | 5
1162
- };
1163
- j.drawText(t, c), s += 20;
1164
- });
1165
- }
1166
- var q = index.Ut().journey, C = q.leftMargin, Ht = function Ht(t, e, s, r) {
1167
- var i = index.Ut().journey, l = index.Ut().securityLevel;
1168
- var c;
1169
- l === "sandbox" && (c = index.At("#i" + e));
1170
- var y = l === "sandbox" ? index.At(c.nodes()[0].contentDocument.body) : index.At("body");
1171
- M.init();
1172
- var u = y.select("#" + e);
1173
- j.initGraphics(u);
1174
- var x = r.db.getTasks(), g = r.db.getDiagramTitle(), f = r.db.getActors();
1175
- for(var a in P)delete P[a];
1176
- var d = 0;
1177
- f.forEach(function(a) {
1178
- P[a] = {
1179
- color: i.actorColours[d % i.actorColours.length],
1180
- position: d
1181
- }, d++;
1182
- }), Gt(u), M.insert(0, 0, C, Object.keys(P).length * 50), Ut(u, x, 0);
1183
- var T = M.getBounds();
1184
- g && u.append("text").text(g).attr("x", C).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 25);
1185
- var b = T.stopy - T.starty + 2 * i.diagramMarginY, _ = C + T.stopx + 2 * i.diagramMarginX;
1186
- index.Yg(u, b, _, i.useMaxWidth), u.append("line").attr("x1", C).attr("y1", i.height * 4).attr("x2", _ - C - 4).attr("y2", i.height * 4).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)");
1187
- var n = g ? 70 : 0;
1188
- u.attr("viewBox", "".concat(T.startx, " -25 ").concat(_, " ").concat(b + n)), u.attr("preserveAspectRatio", "xMinYMin meet"), u.attr("height", b + n + 25);
1189
- }, M = {
1190
- data: {
1191
- startx: void 0,
1192
- stopx: void 0,
1193
- starty: void 0,
1194
- stopy: void 0
1195
- },
1196
- verticalPos: 0,
1197
- sequenceItems: [],
1198
- init: function init() {
1199
- this.sequenceItems = [], this.data = {
1200
- startx: void 0,
1201
- stopx: void 0,
1202
- starty: void 0,
1203
- stopy: void 0
1204
- }, this.verticalPos = 0;
1205
- },
1206
- updateVal: function updateVal(t, e, s, r) {
1207
- t[e] === void 0 ? t[e] = s : t[e] = r(s, t[e]);
1208
- },
1209
- updateBounds: function updateBounds(t, e, s, r) {
1210
- var i = index.Ut().journey, l = this;
1211
- var c = 0;
1212
- function y(u) {
1213
- return function(g) {
1214
- c++;
1215
- var f = l.sequenceItems.length - c + 1;
1216
- l.updateVal(g, "starty", e - f * i.boxMargin, Math.min), l.updateVal(g, "stopy", r + f * i.boxMargin, Math.max), l.updateVal(M.data, "startx", t - f * i.boxMargin, Math.min), l.updateVal(M.data, "stopx", s + f * i.boxMargin, Math.max), u !== "activation" && (l.updateVal(g, "startx", t - f * i.boxMargin, Math.min), l.updateVal(g, "stopx", s + f * i.boxMargin, Math.max), l.updateVal(M.data, "starty", e - f * i.boxMargin, Math.min), l.updateVal(M.data, "stopy", r + f * i.boxMargin, Math.max));
1217
- };
1218
- }
1219
- this.sequenceItems.forEach(y());
1220
- },
1221
- insert: function insert(t, e, s, r) {
1222
- var i = Math.min(t, s), l = Math.max(t, s), c = Math.min(e, r), y = Math.max(e, r);
1223
- this.updateVal(M.data, "startx", i, Math.min), this.updateVal(M.data, "starty", c, Math.min), this.updateVal(M.data, "stopx", l, Math.max), this.updateVal(M.data, "stopy", y, Math.max), this.updateBounds(i, c, l, y);
1224
- },
1225
- bumpVerticalPos: function bumpVerticalPos(t) {
1226
- this.verticalPos = this.verticalPos + t, this.data.stopy = this.verticalPos;
1227
- },
1228
- getVerticalPos: function getVerticalPos() {
1229
- return this.verticalPos;
1230
- },
1231
- getBounds: function getBounds() {
1232
- return this.data;
1233
- }
1234
- }, U = q.sectionFills, at = q.sectionColours, Ut = function Ut(t, e, s) {
1235
- var r = index.Ut().journey;
1236
- var i = "";
1237
- var l = r.height * 2 + r.diagramMarginY, c = s + l;
1238
- var y = 0, u = "#CCC", x = "black", g = 0;
1239
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1240
- try {
1241
- var _loop = function() {
1242
- var _step_value = _sliced_to_array(_step.value, 2), f = _step_value[0], d = _step_value[1];
1243
- if (i !== d.section) {
1244
- u = U[y % U.length], g = y % U.length, x = at[y % at.length];
1245
- var b = 0;
1246
- var _ = d.section;
1247
- for(var a = f; a < e.length && e[a].section == _; a++)b = b + 1;
1248
- var n = {
1249
- x: f * r.taskMargin + f * r.width + C,
1250
- y: 50,
1251
- text: d.section,
1252
- fill: u,
1253
- num: g,
1254
- colour: x,
1255
- taskCount: b
1256
- };
1257
- j.drawSection(t, n, r), i = d.section, y++;
1258
- }
1259
- var T = d.people.reduce(function(b, _) {
1260
- return P[_] && (b[_] = P[_]), b;
1261
- }, {});
1262
- d.x = f * r.taskMargin + f * r.width + C, d.y = c, d.width = r.diagramMarginX, d.height = r.diagramMarginY, d.colour = x, d.fill = u, d.num = g, d.actors = T, j.drawTask(t, d, r), M.insert(d.x, d.y, d.x + d.width + r.taskMargin, 300 + 5 * 30);
1263
- };
1264
- for(var _iterator = e.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)_loop();
1265
- } catch (err) {
1266
- _didIteratorError = true;
1267
- _iteratorError = err;
1268
- } finally{
1269
- try {
1270
- if (!_iteratorNormalCompletion && _iterator.return != null) {
1271
- _iterator.return();
1272
- }
1273
- } finally{
1274
- if (_didIteratorError) {
1275
- throw _iteratorError;
1276
- }
1277
- }
1278
- }
1279
- }, ct = {
1280
- setConf: Xt,
1281
- draw: Ht
1282
- }, te = {
1283
- parser: Et,
1284
- db: nt,
1285
- renderer: ct,
1286
- styles: jt,
1287
- init: function(t) {
1288
- ct.setConf(t.journey), nt.clear();
1289
- }
1290
- };
1291
-
1292
- exports.diagram = te;