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