@digipair/skill-web-chatbot 0.114.2 → 0.114.6
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/dist/index.cjs.js +2118 -8
- package/package.json +6 -2
- package/dist/SAP-icons.cjs.js +0 -2489
- package/dist/SAP-icons.cjs2.js +0 -2489
- package/dist/Tableau10-558cc280.cjs.js +0 -9
- package/dist/arc-d1f6357e.cjs.js +0 -88
- package/dist/array-2ff2c7a6.cjs.js +0 -11
- package/dist/blockDiagram-5dc23a45.cjs.js +0 -2916
- package/dist/c4Diagram-1e775db3.cjs.js +0 -4386
- package/dist/channel-ebbc4130.cjs.js +0 -9
- package/dist/classDiagram-f52caa06.cjs.js +0 -209
- package/dist/classDiagram-v2-640c694e.cjs.js +0 -401
- package/dist/clone-afc2f047.cjs.js +0 -10
- package/dist/createText-03b82060.cjs.js +0 -2940
- package/dist/edges-16357fde.cjs.js +0 -2002
- package/dist/erDiagram-c7ff1bec.cjs.js +0 -1807
- package/dist/flowDb-9a89ea33.cjs.js +0 -5542
- package/dist/flowDiagram-aadb13b0.cjs.js +0 -1351
- package/dist/flowDiagram-v2-f2119625.cjs.js +0 -31
- package/dist/flowchart-elk-definition-cf813a97.cjs.js +0 -50248
- package/dist/ganttDiagram-3c2fde2b.cjs.js +0 -3710
- package/dist/gitGraphDiagram-c3a0619c.cjs.js +0 -3815
- package/dist/graph-0ee63739.cjs.js +0 -954
- package/dist/index-bb6d8841.cjs.js +0 -648
- package/dist/index.cjs2.js +0 -76743
- package/dist/infoDiagram-2f5c50c0.cjs.js +0 -460
- package/dist/init-f9637058.cjs.js +0 -17
- package/dist/journeyDiagram-14fe341a.cjs.js +0 -1061
- package/dist/katex-d90b6d29.cjs.js +0 -25690
- package/dist/layout-fd473db2.cjs.js +0 -1613
- package/dist/line-24d93f1b.cjs.js +0 -34
- package/dist/linear-9bcf74c4.cjs.js +0 -537
- package/dist/mindmap-definition-9399c7e6.cjs.js +0 -20488
- package/dist/ordinal-5695958c.cjs.js +0 -330
- package/dist/path-428ebac9.cjs.js +0 -316
- package/dist/pieDiagram-828dae43.cjs.js +0 -949
- package/dist/quadrantDiagram-5fa00455.cjs.js +0 -2409
- package/dist/requirementDiagram-03163dc4.cjs.js +0 -2267
- package/dist/sankeyDiagram-52ec8976.cjs.js +0 -1848
- package/dist/sequenceDiagram-b517d154.cjs.js +0 -5948
- package/dist/stateDiagram-fca82b5b.cjs.js +0 -283
- package/dist/stateDiagram-v2-ed04200a.cjs.js +0 -373
- package/dist/styles-11e81fdd.cjs.js +0 -3943
- package/dist/styles-cacbff60.cjs.js +0 -2120
- package/dist/styles-e75131e4.cjs.js +0 -671
- package/dist/svgDrawCommon-ecc5f780.cjs.js +0 -68
- package/dist/timeline-definition-4ee9bff4.cjs.js +0 -1161
- package/dist/xychartDiagram-e5e6b652.cjs.js +0 -3150
|
@@ -1,2916 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index.cjs2.js');
|
|
4
|
-
var cloneAfc2f047 = require('./clone-afc2f047.cjs.js');
|
|
5
|
-
var channelEbbc4130 = require('./channel-ebbc4130.cjs.js');
|
|
6
|
-
var edges16357fde = require('./edges-16357fde.cjs.js');
|
|
7
|
-
var graph0ee63739 = require('./graph-0ee63739.cjs.js');
|
|
8
|
-
var ordinal5695958c = require('./ordinal-5695958c.cjs.js');
|
|
9
|
-
var Tableau10558cc280 = require('./Tableau10-558cc280.cjs.js');
|
|
10
|
-
require('./createText-03b82060.cjs.js');
|
|
11
|
-
require('./line-24d93f1b.cjs.js');
|
|
12
|
-
require('./array-2ff2c7a6.cjs.js');
|
|
13
|
-
require('./path-428ebac9.cjs.js');
|
|
14
|
-
require('./init-f9637058.cjs.js');
|
|
15
|
-
|
|
16
|
-
function _array_like_to_array(arr, len) {
|
|
17
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
18
|
-
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
19
|
-
return arr2;
|
|
20
|
-
}
|
|
21
|
-
function _array_without_holes(arr) {
|
|
22
|
-
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
23
|
-
}
|
|
24
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
25
|
-
try {
|
|
26
|
-
var info = gen[key](arg);
|
|
27
|
-
var value = info.value;
|
|
28
|
-
} catch (error) {
|
|
29
|
-
reject(error);
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
if (info.done) {
|
|
33
|
-
resolve(value);
|
|
34
|
-
} else {
|
|
35
|
-
Promise.resolve(value).then(_next, _throw);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
function _async_to_generator(fn) {
|
|
39
|
-
return function() {
|
|
40
|
-
var self = this, args = arguments;
|
|
41
|
-
return new Promise(function(resolve, reject) {
|
|
42
|
-
var gen = fn.apply(self, args);
|
|
43
|
-
function _next(value) {
|
|
44
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
45
|
-
}
|
|
46
|
-
function _throw(err) {
|
|
47
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
48
|
-
}
|
|
49
|
-
_next(undefined);
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
function _define_property(obj, key, value) {
|
|
54
|
-
if (key in obj) {
|
|
55
|
-
Object.defineProperty(obj, key, {
|
|
56
|
-
value: value,
|
|
57
|
-
enumerable: true,
|
|
58
|
-
configurable: true,
|
|
59
|
-
writable: true
|
|
60
|
-
});
|
|
61
|
-
} else {
|
|
62
|
-
obj[key] = value;
|
|
63
|
-
}
|
|
64
|
-
return obj;
|
|
65
|
-
}
|
|
66
|
-
function _instanceof(left, right) {
|
|
67
|
-
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
68
|
-
return !!right[Symbol.hasInstance](left);
|
|
69
|
-
} else {
|
|
70
|
-
return left instanceof right;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
function _iterable_to_array(iter) {
|
|
74
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
75
|
-
}
|
|
76
|
-
function _non_iterable_spread() {
|
|
77
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
78
|
-
}
|
|
79
|
-
function _object_spread(target) {
|
|
80
|
-
for(var i = 1; i < arguments.length; i++){
|
|
81
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
82
|
-
var ownKeys = Object.keys(source);
|
|
83
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
84
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
85
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
86
|
-
}));
|
|
87
|
-
}
|
|
88
|
-
ownKeys.forEach(function(key) {
|
|
89
|
-
_define_property(target, key, source[key]);
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
return target;
|
|
93
|
-
}
|
|
94
|
-
function ownKeys(object, enumerableOnly) {
|
|
95
|
-
var keys = Object.keys(object);
|
|
96
|
-
if (Object.getOwnPropertySymbols) {
|
|
97
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
98
|
-
keys.push.apply(keys, symbols);
|
|
99
|
-
}
|
|
100
|
-
return keys;
|
|
101
|
-
}
|
|
102
|
-
function _object_spread_props(target, source) {
|
|
103
|
-
source = source != null ? source : {};
|
|
104
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
105
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
106
|
-
} else {
|
|
107
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
108
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
return target;
|
|
112
|
-
}
|
|
113
|
-
function _to_consumable_array(arr) {
|
|
114
|
-
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
115
|
-
}
|
|
116
|
-
function _type_of(obj) {
|
|
117
|
-
"@swc/helpers - typeof";
|
|
118
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
119
|
-
}
|
|
120
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
121
|
-
if (!o) return;
|
|
122
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
123
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
124
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
125
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
126
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
127
|
-
}
|
|
128
|
-
function _ts_generator(thisArg, body) {
|
|
129
|
-
var f, y, t, g, _ = {
|
|
130
|
-
label: 0,
|
|
131
|
-
sent: function() {
|
|
132
|
-
if (t[0] & 1) throw t[1];
|
|
133
|
-
return t[1];
|
|
134
|
-
},
|
|
135
|
-
trys: [],
|
|
136
|
-
ops: []
|
|
137
|
-
};
|
|
138
|
-
return g = {
|
|
139
|
-
next: verb(0),
|
|
140
|
-
"throw": verb(1),
|
|
141
|
-
"return": verb(2)
|
|
142
|
-
}, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
143
|
-
return this;
|
|
144
|
-
}), g;
|
|
145
|
-
function verb(n) {
|
|
146
|
-
return function(v) {
|
|
147
|
-
return step([
|
|
148
|
-
n,
|
|
149
|
-
v
|
|
150
|
-
]);
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
function step(op) {
|
|
154
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
155
|
-
while(_)try {
|
|
156
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
157
|
-
if (y = 0, t) op = [
|
|
158
|
-
op[0] & 2,
|
|
159
|
-
t.value
|
|
160
|
-
];
|
|
161
|
-
switch(op[0]){
|
|
162
|
-
case 0:
|
|
163
|
-
case 1:
|
|
164
|
-
t = op;
|
|
165
|
-
break;
|
|
166
|
-
case 4:
|
|
167
|
-
_.label++;
|
|
168
|
-
return {
|
|
169
|
-
value: op[1],
|
|
170
|
-
done: false
|
|
171
|
-
};
|
|
172
|
-
case 5:
|
|
173
|
-
_.label++;
|
|
174
|
-
y = op[1];
|
|
175
|
-
op = [
|
|
176
|
-
0
|
|
177
|
-
];
|
|
178
|
-
continue;
|
|
179
|
-
case 7:
|
|
180
|
-
op = _.ops.pop();
|
|
181
|
-
_.trys.pop();
|
|
182
|
-
continue;
|
|
183
|
-
default:
|
|
184
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
185
|
-
_ = 0;
|
|
186
|
-
continue;
|
|
187
|
-
}
|
|
188
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
189
|
-
_.label = op[1];
|
|
190
|
-
break;
|
|
191
|
-
}
|
|
192
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
193
|
-
_.label = t[1];
|
|
194
|
-
t = op;
|
|
195
|
-
break;
|
|
196
|
-
}
|
|
197
|
-
if (t && _.label < t[2]) {
|
|
198
|
-
_.label = t[2];
|
|
199
|
-
_.ops.push(op);
|
|
200
|
-
break;
|
|
201
|
-
}
|
|
202
|
-
if (t[2]) _.ops.pop();
|
|
203
|
-
_.trys.pop();
|
|
204
|
-
continue;
|
|
205
|
-
}
|
|
206
|
-
op = body.call(thisArg, _);
|
|
207
|
-
} catch (e) {
|
|
208
|
-
op = [
|
|
209
|
-
6,
|
|
210
|
-
e
|
|
211
|
-
];
|
|
212
|
-
y = 0;
|
|
213
|
-
} finally{
|
|
214
|
-
f = t = 0;
|
|
215
|
-
}
|
|
216
|
-
if (op[0] & 5) throw op[1];
|
|
217
|
-
return {
|
|
218
|
-
value: op[0] ? op[1] : void 0,
|
|
219
|
-
done: true
|
|
220
|
-
};
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
var ee = function() {
|
|
224
|
-
var e = function e(D, l, s, r) {
|
|
225
|
-
for(s = s || {}, r = D.length; r--; s[D[r]] = l);
|
|
226
|
-
return s;
|
|
227
|
-
}, c = [
|
|
228
|
-
1,
|
|
229
|
-
7
|
|
230
|
-
], u = [
|
|
231
|
-
1,
|
|
232
|
-
13
|
|
233
|
-
], a = [
|
|
234
|
-
1,
|
|
235
|
-
14
|
|
236
|
-
], i = [
|
|
237
|
-
1,
|
|
238
|
-
15
|
|
239
|
-
], g = [
|
|
240
|
-
1,
|
|
241
|
-
19
|
|
242
|
-
], o = [
|
|
243
|
-
1,
|
|
244
|
-
16
|
|
245
|
-
], p = [
|
|
246
|
-
1,
|
|
247
|
-
17
|
|
248
|
-
], f = [
|
|
249
|
-
1,
|
|
250
|
-
18
|
|
251
|
-
], m = [
|
|
252
|
-
8,
|
|
253
|
-
30
|
|
254
|
-
], S = [
|
|
255
|
-
8,
|
|
256
|
-
21,
|
|
257
|
-
28,
|
|
258
|
-
29,
|
|
259
|
-
30,
|
|
260
|
-
31,
|
|
261
|
-
32,
|
|
262
|
-
40,
|
|
263
|
-
44,
|
|
264
|
-
47
|
|
265
|
-
], y = [
|
|
266
|
-
1,
|
|
267
|
-
23
|
|
268
|
-
], z = [
|
|
269
|
-
1,
|
|
270
|
-
24
|
|
271
|
-
], I = [
|
|
272
|
-
8,
|
|
273
|
-
15,
|
|
274
|
-
16,
|
|
275
|
-
21,
|
|
276
|
-
28,
|
|
277
|
-
29,
|
|
278
|
-
30,
|
|
279
|
-
31,
|
|
280
|
-
32,
|
|
281
|
-
40,
|
|
282
|
-
44,
|
|
283
|
-
47
|
|
284
|
-
], w = [
|
|
285
|
-
8,
|
|
286
|
-
15,
|
|
287
|
-
16,
|
|
288
|
-
21,
|
|
289
|
-
27,
|
|
290
|
-
28,
|
|
291
|
-
29,
|
|
292
|
-
30,
|
|
293
|
-
31,
|
|
294
|
-
32,
|
|
295
|
-
40,
|
|
296
|
-
44,
|
|
297
|
-
47
|
|
298
|
-
], C = [
|
|
299
|
-
1,
|
|
300
|
-
49
|
|
301
|
-
], E = {
|
|
302
|
-
trace: function trace() {},
|
|
303
|
-
yy: {},
|
|
304
|
-
symbols_: {
|
|
305
|
-
error: 2,
|
|
306
|
-
spaceLines: 3,
|
|
307
|
-
SPACELINE: 4,
|
|
308
|
-
NL: 5,
|
|
309
|
-
separator: 6,
|
|
310
|
-
SPACE: 7,
|
|
311
|
-
EOF: 8,
|
|
312
|
-
start: 9,
|
|
313
|
-
BLOCK_DIAGRAM_KEY: 10,
|
|
314
|
-
document: 11,
|
|
315
|
-
stop: 12,
|
|
316
|
-
statement: 13,
|
|
317
|
-
link: 14,
|
|
318
|
-
LINK: 15,
|
|
319
|
-
START_LINK: 16,
|
|
320
|
-
LINK_LABEL: 17,
|
|
321
|
-
STR: 18,
|
|
322
|
-
nodeStatement: 19,
|
|
323
|
-
columnsStatement: 20,
|
|
324
|
-
SPACE_BLOCK: 21,
|
|
325
|
-
blockStatement: 22,
|
|
326
|
-
classDefStatement: 23,
|
|
327
|
-
cssClassStatement: 24,
|
|
328
|
-
styleStatement: 25,
|
|
329
|
-
node: 26,
|
|
330
|
-
SIZE: 27,
|
|
331
|
-
COLUMNS: 28,
|
|
332
|
-
"id-block": 29,
|
|
333
|
-
end: 30,
|
|
334
|
-
block: 31,
|
|
335
|
-
NODE_ID: 32,
|
|
336
|
-
nodeShapeNLabel: 33,
|
|
337
|
-
dirList: 34,
|
|
338
|
-
DIR: 35,
|
|
339
|
-
NODE_DSTART: 36,
|
|
340
|
-
NODE_DEND: 37,
|
|
341
|
-
BLOCK_ARROW_START: 38,
|
|
342
|
-
BLOCK_ARROW_END: 39,
|
|
343
|
-
classDef: 40,
|
|
344
|
-
CLASSDEF_ID: 41,
|
|
345
|
-
CLASSDEF_STYLEOPTS: 42,
|
|
346
|
-
DEFAULT: 43,
|
|
347
|
-
class: 44,
|
|
348
|
-
CLASSENTITY_IDS: 45,
|
|
349
|
-
STYLECLASS: 46,
|
|
350
|
-
style: 47,
|
|
351
|
-
STYLE_ENTITY_IDS: 48,
|
|
352
|
-
STYLE_DEFINITION_DATA: 49,
|
|
353
|
-
$accept: 0,
|
|
354
|
-
$end: 1
|
|
355
|
-
},
|
|
356
|
-
terminals_: {
|
|
357
|
-
2: "error",
|
|
358
|
-
4: "SPACELINE",
|
|
359
|
-
5: "NL",
|
|
360
|
-
7: "SPACE",
|
|
361
|
-
8: "EOF",
|
|
362
|
-
10: "BLOCK_DIAGRAM_KEY",
|
|
363
|
-
15: "LINK",
|
|
364
|
-
16: "START_LINK",
|
|
365
|
-
17: "LINK_LABEL",
|
|
366
|
-
18: "STR",
|
|
367
|
-
21: "SPACE_BLOCK",
|
|
368
|
-
27: "SIZE",
|
|
369
|
-
28: "COLUMNS",
|
|
370
|
-
29: "id-block",
|
|
371
|
-
30: "end",
|
|
372
|
-
31: "block",
|
|
373
|
-
32: "NODE_ID",
|
|
374
|
-
35: "DIR",
|
|
375
|
-
36: "NODE_DSTART",
|
|
376
|
-
37: "NODE_DEND",
|
|
377
|
-
38: "BLOCK_ARROW_START",
|
|
378
|
-
39: "BLOCK_ARROW_END",
|
|
379
|
-
40: "classDef",
|
|
380
|
-
41: "CLASSDEF_ID",
|
|
381
|
-
42: "CLASSDEF_STYLEOPTS",
|
|
382
|
-
43: "DEFAULT",
|
|
383
|
-
44: "class",
|
|
384
|
-
45: "CLASSENTITY_IDS",
|
|
385
|
-
46: "STYLECLASS",
|
|
386
|
-
47: "style",
|
|
387
|
-
48: "STYLE_ENTITY_IDS",
|
|
388
|
-
49: "STYLE_DEFINITION_DATA"
|
|
389
|
-
},
|
|
390
|
-
productions_: [
|
|
391
|
-
0,
|
|
392
|
-
[
|
|
393
|
-
3,
|
|
394
|
-
1
|
|
395
|
-
],
|
|
396
|
-
[
|
|
397
|
-
3,
|
|
398
|
-
2
|
|
399
|
-
],
|
|
400
|
-
[
|
|
401
|
-
3,
|
|
402
|
-
2
|
|
403
|
-
],
|
|
404
|
-
[
|
|
405
|
-
6,
|
|
406
|
-
1
|
|
407
|
-
],
|
|
408
|
-
[
|
|
409
|
-
6,
|
|
410
|
-
1
|
|
411
|
-
],
|
|
412
|
-
[
|
|
413
|
-
6,
|
|
414
|
-
1
|
|
415
|
-
],
|
|
416
|
-
[
|
|
417
|
-
9,
|
|
418
|
-
3
|
|
419
|
-
],
|
|
420
|
-
[
|
|
421
|
-
12,
|
|
422
|
-
1
|
|
423
|
-
],
|
|
424
|
-
[
|
|
425
|
-
12,
|
|
426
|
-
1
|
|
427
|
-
],
|
|
428
|
-
[
|
|
429
|
-
12,
|
|
430
|
-
2
|
|
431
|
-
],
|
|
432
|
-
[
|
|
433
|
-
12,
|
|
434
|
-
2
|
|
435
|
-
],
|
|
436
|
-
[
|
|
437
|
-
11,
|
|
438
|
-
1
|
|
439
|
-
],
|
|
440
|
-
[
|
|
441
|
-
11,
|
|
442
|
-
2
|
|
443
|
-
],
|
|
444
|
-
[
|
|
445
|
-
14,
|
|
446
|
-
1
|
|
447
|
-
],
|
|
448
|
-
[
|
|
449
|
-
14,
|
|
450
|
-
4
|
|
451
|
-
],
|
|
452
|
-
[
|
|
453
|
-
13,
|
|
454
|
-
1
|
|
455
|
-
],
|
|
456
|
-
[
|
|
457
|
-
13,
|
|
458
|
-
1
|
|
459
|
-
],
|
|
460
|
-
[
|
|
461
|
-
13,
|
|
462
|
-
1
|
|
463
|
-
],
|
|
464
|
-
[
|
|
465
|
-
13,
|
|
466
|
-
1
|
|
467
|
-
],
|
|
468
|
-
[
|
|
469
|
-
13,
|
|
470
|
-
1
|
|
471
|
-
],
|
|
472
|
-
[
|
|
473
|
-
13,
|
|
474
|
-
1
|
|
475
|
-
],
|
|
476
|
-
[
|
|
477
|
-
13,
|
|
478
|
-
1
|
|
479
|
-
],
|
|
480
|
-
[
|
|
481
|
-
19,
|
|
482
|
-
3
|
|
483
|
-
],
|
|
484
|
-
[
|
|
485
|
-
19,
|
|
486
|
-
2
|
|
487
|
-
],
|
|
488
|
-
[
|
|
489
|
-
19,
|
|
490
|
-
1
|
|
491
|
-
],
|
|
492
|
-
[
|
|
493
|
-
20,
|
|
494
|
-
1
|
|
495
|
-
],
|
|
496
|
-
[
|
|
497
|
-
22,
|
|
498
|
-
4
|
|
499
|
-
],
|
|
500
|
-
[
|
|
501
|
-
22,
|
|
502
|
-
3
|
|
503
|
-
],
|
|
504
|
-
[
|
|
505
|
-
26,
|
|
506
|
-
1
|
|
507
|
-
],
|
|
508
|
-
[
|
|
509
|
-
26,
|
|
510
|
-
2
|
|
511
|
-
],
|
|
512
|
-
[
|
|
513
|
-
34,
|
|
514
|
-
1
|
|
515
|
-
],
|
|
516
|
-
[
|
|
517
|
-
34,
|
|
518
|
-
2
|
|
519
|
-
],
|
|
520
|
-
[
|
|
521
|
-
33,
|
|
522
|
-
3
|
|
523
|
-
],
|
|
524
|
-
[
|
|
525
|
-
33,
|
|
526
|
-
4
|
|
527
|
-
],
|
|
528
|
-
[
|
|
529
|
-
23,
|
|
530
|
-
3
|
|
531
|
-
],
|
|
532
|
-
[
|
|
533
|
-
23,
|
|
534
|
-
3
|
|
535
|
-
],
|
|
536
|
-
[
|
|
537
|
-
24,
|
|
538
|
-
3
|
|
539
|
-
],
|
|
540
|
-
[
|
|
541
|
-
25,
|
|
542
|
-
3
|
|
543
|
-
]
|
|
544
|
-
],
|
|
545
|
-
performAction: function performAction(l, s, r, h, d, t, x) {
|
|
546
|
-
var n = t.length - 1;
|
|
547
|
-
switch(d){
|
|
548
|
-
case 4:
|
|
549
|
-
h.getLogger().debug("Rule: separator (NL) ");
|
|
550
|
-
break;
|
|
551
|
-
case 5:
|
|
552
|
-
h.getLogger().debug("Rule: separator (Space) ");
|
|
553
|
-
break;
|
|
554
|
-
case 6:
|
|
555
|
-
h.getLogger().debug("Rule: separator (EOF) ");
|
|
556
|
-
break;
|
|
557
|
-
case 7:
|
|
558
|
-
h.getLogger().debug("Rule: hierarchy: ", t[n - 1]), h.setHierarchy(t[n - 1]);
|
|
559
|
-
break;
|
|
560
|
-
case 8:
|
|
561
|
-
h.getLogger().debug("Stop NL ");
|
|
562
|
-
break;
|
|
563
|
-
case 9:
|
|
564
|
-
h.getLogger().debug("Stop EOF ");
|
|
565
|
-
break;
|
|
566
|
-
case 10:
|
|
567
|
-
h.getLogger().debug("Stop NL2 ");
|
|
568
|
-
break;
|
|
569
|
-
case 11:
|
|
570
|
-
h.getLogger().debug("Stop EOF2 ");
|
|
571
|
-
break;
|
|
572
|
-
case 12:
|
|
573
|
-
h.getLogger().debug("Rule: statement: ", t[n]), typeof t[n].length == "number" ? this.$ = t[n] : this.$ = [
|
|
574
|
-
t[n]
|
|
575
|
-
];
|
|
576
|
-
break;
|
|
577
|
-
case 13:
|
|
578
|
-
h.getLogger().debug("Rule: statement #2: ", t[n - 1]), this.$ = [
|
|
579
|
-
t[n - 1]
|
|
580
|
-
].concat(t[n]);
|
|
581
|
-
break;
|
|
582
|
-
case 14:
|
|
583
|
-
h.getLogger().debug("Rule: link: ", t[n], l), this.$ = {
|
|
584
|
-
edgeTypeStr: t[n],
|
|
585
|
-
label: ""
|
|
586
|
-
};
|
|
587
|
-
break;
|
|
588
|
-
case 15:
|
|
589
|
-
h.getLogger().debug("Rule: LABEL link: ", t[n - 3], t[n - 1], t[n]), this.$ = {
|
|
590
|
-
edgeTypeStr: t[n],
|
|
591
|
-
label: t[n - 1]
|
|
592
|
-
};
|
|
593
|
-
break;
|
|
594
|
-
case 18:
|
|
595
|
-
var B = parseInt(t[n]), Y = h.generateId();
|
|
596
|
-
this.$ = {
|
|
597
|
-
id: Y,
|
|
598
|
-
type: "space",
|
|
599
|
-
label: "",
|
|
600
|
-
width: B,
|
|
601
|
-
children: []
|
|
602
|
-
};
|
|
603
|
-
break;
|
|
604
|
-
case 23:
|
|
605
|
-
h.getLogger().debug("Rule: (nodeStatement link node) ", t[n - 2], t[n - 1], t[n], " typestr: ", t[n - 1].edgeTypeStr);
|
|
606
|
-
var F = h.edgeStrToEdgeData(t[n - 1].edgeTypeStr);
|
|
607
|
-
this.$ = [
|
|
608
|
-
{
|
|
609
|
-
id: t[n - 2].id,
|
|
610
|
-
label: t[n - 2].label,
|
|
611
|
-
type: t[n - 2].type,
|
|
612
|
-
directions: t[n - 2].directions
|
|
613
|
-
},
|
|
614
|
-
{
|
|
615
|
-
id: t[n - 2].id + "-" + t[n].id,
|
|
616
|
-
start: t[n - 2].id,
|
|
617
|
-
end: t[n].id,
|
|
618
|
-
label: t[n - 1].label,
|
|
619
|
-
type: "edge",
|
|
620
|
-
directions: t[n].directions,
|
|
621
|
-
arrowTypeEnd: F,
|
|
622
|
-
arrowTypeStart: "arrow_open"
|
|
623
|
-
},
|
|
624
|
-
{
|
|
625
|
-
id: t[n].id,
|
|
626
|
-
label: t[n].label,
|
|
627
|
-
type: h.typeStr2Type(t[n].typeStr),
|
|
628
|
-
directions: t[n].directions
|
|
629
|
-
}
|
|
630
|
-
];
|
|
631
|
-
break;
|
|
632
|
-
case 24:
|
|
633
|
-
h.getLogger().debug("Rule: nodeStatement (abc88 node size) ", t[n - 1], t[n]), this.$ = {
|
|
634
|
-
id: t[n - 1].id,
|
|
635
|
-
label: t[n - 1].label,
|
|
636
|
-
type: h.typeStr2Type(t[n - 1].typeStr),
|
|
637
|
-
directions: t[n - 1].directions,
|
|
638
|
-
widthInColumns: parseInt(t[n], 10)
|
|
639
|
-
};
|
|
640
|
-
break;
|
|
641
|
-
case 25:
|
|
642
|
-
h.getLogger().debug("Rule: nodeStatement (node) ", t[n]), this.$ = {
|
|
643
|
-
id: t[n].id,
|
|
644
|
-
label: t[n].label,
|
|
645
|
-
type: h.typeStr2Type(t[n].typeStr),
|
|
646
|
-
directions: t[n].directions,
|
|
647
|
-
widthInColumns: 1
|
|
648
|
-
};
|
|
649
|
-
break;
|
|
650
|
-
case 26:
|
|
651
|
-
h.getLogger().debug("APA123", this ? this : "na"), h.getLogger().debug("COLUMNS: ", t[n]), this.$ = {
|
|
652
|
-
type: "column-setting",
|
|
653
|
-
columns: t[n] === "auto" ? -1 : parseInt(t[n])
|
|
654
|
-
};
|
|
655
|
-
break;
|
|
656
|
-
case 27:
|
|
657
|
-
h.getLogger().debug("Rule: id-block statement : ", t[n - 2], t[n - 1]), h.generateId(), this.$ = _object_spread_props(_object_spread({}, t[n - 2]), {
|
|
658
|
-
type: "composite",
|
|
659
|
-
children: t[n - 1]
|
|
660
|
-
});
|
|
661
|
-
break;
|
|
662
|
-
case 28:
|
|
663
|
-
h.getLogger().debug("Rule: blockStatement : ", t[n - 2], t[n - 1], t[n]);
|
|
664
|
-
var R = h.generateId();
|
|
665
|
-
this.$ = {
|
|
666
|
-
id: R,
|
|
667
|
-
type: "composite",
|
|
668
|
-
label: "",
|
|
669
|
-
children: t[n - 1]
|
|
670
|
-
};
|
|
671
|
-
break;
|
|
672
|
-
case 29:
|
|
673
|
-
h.getLogger().debug("Rule: node (NODE_ID separator): ", t[n]), this.$ = {
|
|
674
|
-
id: t[n]
|
|
675
|
-
};
|
|
676
|
-
break;
|
|
677
|
-
case 30:
|
|
678
|
-
h.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ", t[n - 1], t[n]), this.$ = {
|
|
679
|
-
id: t[n - 1],
|
|
680
|
-
label: t[n].label,
|
|
681
|
-
typeStr: t[n].typeStr,
|
|
682
|
-
directions: t[n].directions
|
|
683
|
-
};
|
|
684
|
-
break;
|
|
685
|
-
case 31:
|
|
686
|
-
h.getLogger().debug("Rule: dirList: ", t[n]), this.$ = [
|
|
687
|
-
t[n]
|
|
688
|
-
];
|
|
689
|
-
break;
|
|
690
|
-
case 32:
|
|
691
|
-
h.getLogger().debug("Rule: dirList: ", t[n - 1], t[n]), this.$ = [
|
|
692
|
-
t[n - 1]
|
|
693
|
-
].concat(t[n]);
|
|
694
|
-
break;
|
|
695
|
-
case 33:
|
|
696
|
-
h.getLogger().debug("Rule: nodeShapeNLabel: ", t[n - 2], t[n - 1], t[n]), this.$ = {
|
|
697
|
-
typeStr: t[n - 2] + t[n],
|
|
698
|
-
label: t[n - 1]
|
|
699
|
-
};
|
|
700
|
-
break;
|
|
701
|
-
case 34:
|
|
702
|
-
h.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ", t[n - 3], t[n - 2], " #3:", t[n - 1], t[n]), this.$ = {
|
|
703
|
-
typeStr: t[n - 3] + t[n],
|
|
704
|
-
label: t[n - 2],
|
|
705
|
-
directions: t[n - 1]
|
|
706
|
-
};
|
|
707
|
-
break;
|
|
708
|
-
case 35:
|
|
709
|
-
case 36:
|
|
710
|
-
this.$ = {
|
|
711
|
-
type: "classDef",
|
|
712
|
-
id: t[n - 1].trim(),
|
|
713
|
-
css: t[n].trim()
|
|
714
|
-
};
|
|
715
|
-
break;
|
|
716
|
-
case 37:
|
|
717
|
-
this.$ = {
|
|
718
|
-
type: "applyClass",
|
|
719
|
-
id: t[n - 1].trim(),
|
|
720
|
-
styleClass: t[n].trim()
|
|
721
|
-
};
|
|
722
|
-
break;
|
|
723
|
-
case 38:
|
|
724
|
-
this.$ = {
|
|
725
|
-
type: "applyStyles",
|
|
726
|
-
id: t[n - 1].trim(),
|
|
727
|
-
stylesStr: t[n].trim()
|
|
728
|
-
};
|
|
729
|
-
break;
|
|
730
|
-
}
|
|
731
|
-
},
|
|
732
|
-
table: [
|
|
733
|
-
{
|
|
734
|
-
9: 1,
|
|
735
|
-
10: [
|
|
736
|
-
1,
|
|
737
|
-
2
|
|
738
|
-
]
|
|
739
|
-
},
|
|
740
|
-
{
|
|
741
|
-
1: [
|
|
742
|
-
3
|
|
743
|
-
]
|
|
744
|
-
},
|
|
745
|
-
{
|
|
746
|
-
11: 3,
|
|
747
|
-
13: 4,
|
|
748
|
-
19: 5,
|
|
749
|
-
20: 6,
|
|
750
|
-
21: c,
|
|
751
|
-
22: 8,
|
|
752
|
-
23: 9,
|
|
753
|
-
24: 10,
|
|
754
|
-
25: 11,
|
|
755
|
-
26: 12,
|
|
756
|
-
28: u,
|
|
757
|
-
29: a,
|
|
758
|
-
31: i,
|
|
759
|
-
32: g,
|
|
760
|
-
40: o,
|
|
761
|
-
44: p,
|
|
762
|
-
47: f
|
|
763
|
-
},
|
|
764
|
-
{
|
|
765
|
-
8: [
|
|
766
|
-
1,
|
|
767
|
-
20
|
|
768
|
-
]
|
|
769
|
-
},
|
|
770
|
-
e(m, [
|
|
771
|
-
2,
|
|
772
|
-
12
|
|
773
|
-
], {
|
|
774
|
-
13: 4,
|
|
775
|
-
19: 5,
|
|
776
|
-
20: 6,
|
|
777
|
-
22: 8,
|
|
778
|
-
23: 9,
|
|
779
|
-
24: 10,
|
|
780
|
-
25: 11,
|
|
781
|
-
26: 12,
|
|
782
|
-
11: 21,
|
|
783
|
-
21: c,
|
|
784
|
-
28: u,
|
|
785
|
-
29: a,
|
|
786
|
-
31: i,
|
|
787
|
-
32: g,
|
|
788
|
-
40: o,
|
|
789
|
-
44: p,
|
|
790
|
-
47: f
|
|
791
|
-
}),
|
|
792
|
-
e(S, [
|
|
793
|
-
2,
|
|
794
|
-
16
|
|
795
|
-
], {
|
|
796
|
-
14: 22,
|
|
797
|
-
15: y,
|
|
798
|
-
16: z
|
|
799
|
-
}),
|
|
800
|
-
e(S, [
|
|
801
|
-
2,
|
|
802
|
-
17
|
|
803
|
-
]),
|
|
804
|
-
e(S, [
|
|
805
|
-
2,
|
|
806
|
-
18
|
|
807
|
-
]),
|
|
808
|
-
e(S, [
|
|
809
|
-
2,
|
|
810
|
-
19
|
|
811
|
-
]),
|
|
812
|
-
e(S, [
|
|
813
|
-
2,
|
|
814
|
-
20
|
|
815
|
-
]),
|
|
816
|
-
e(S, [
|
|
817
|
-
2,
|
|
818
|
-
21
|
|
819
|
-
]),
|
|
820
|
-
e(S, [
|
|
821
|
-
2,
|
|
822
|
-
22
|
|
823
|
-
]),
|
|
824
|
-
e(I, [
|
|
825
|
-
2,
|
|
826
|
-
25
|
|
827
|
-
], {
|
|
828
|
-
27: [
|
|
829
|
-
1,
|
|
830
|
-
25
|
|
831
|
-
]
|
|
832
|
-
}),
|
|
833
|
-
e(S, [
|
|
834
|
-
2,
|
|
835
|
-
26
|
|
836
|
-
]),
|
|
837
|
-
{
|
|
838
|
-
19: 26,
|
|
839
|
-
26: 12,
|
|
840
|
-
32: g
|
|
841
|
-
},
|
|
842
|
-
{
|
|
843
|
-
11: 27,
|
|
844
|
-
13: 4,
|
|
845
|
-
19: 5,
|
|
846
|
-
20: 6,
|
|
847
|
-
21: c,
|
|
848
|
-
22: 8,
|
|
849
|
-
23: 9,
|
|
850
|
-
24: 10,
|
|
851
|
-
25: 11,
|
|
852
|
-
26: 12,
|
|
853
|
-
28: u,
|
|
854
|
-
29: a,
|
|
855
|
-
31: i,
|
|
856
|
-
32: g,
|
|
857
|
-
40: o,
|
|
858
|
-
44: p,
|
|
859
|
-
47: f
|
|
860
|
-
},
|
|
861
|
-
{
|
|
862
|
-
41: [
|
|
863
|
-
1,
|
|
864
|
-
28
|
|
865
|
-
],
|
|
866
|
-
43: [
|
|
867
|
-
1,
|
|
868
|
-
29
|
|
869
|
-
]
|
|
870
|
-
},
|
|
871
|
-
{
|
|
872
|
-
45: [
|
|
873
|
-
1,
|
|
874
|
-
30
|
|
875
|
-
]
|
|
876
|
-
},
|
|
877
|
-
{
|
|
878
|
-
48: [
|
|
879
|
-
1,
|
|
880
|
-
31
|
|
881
|
-
]
|
|
882
|
-
},
|
|
883
|
-
e(w, [
|
|
884
|
-
2,
|
|
885
|
-
29
|
|
886
|
-
], {
|
|
887
|
-
33: 32,
|
|
888
|
-
36: [
|
|
889
|
-
1,
|
|
890
|
-
33
|
|
891
|
-
],
|
|
892
|
-
38: [
|
|
893
|
-
1,
|
|
894
|
-
34
|
|
895
|
-
]
|
|
896
|
-
}),
|
|
897
|
-
{
|
|
898
|
-
1: [
|
|
899
|
-
2,
|
|
900
|
-
7
|
|
901
|
-
]
|
|
902
|
-
},
|
|
903
|
-
e(m, [
|
|
904
|
-
2,
|
|
905
|
-
13
|
|
906
|
-
]),
|
|
907
|
-
{
|
|
908
|
-
26: 35,
|
|
909
|
-
32: g
|
|
910
|
-
},
|
|
911
|
-
{
|
|
912
|
-
32: [
|
|
913
|
-
2,
|
|
914
|
-
14
|
|
915
|
-
]
|
|
916
|
-
},
|
|
917
|
-
{
|
|
918
|
-
17: [
|
|
919
|
-
1,
|
|
920
|
-
36
|
|
921
|
-
]
|
|
922
|
-
},
|
|
923
|
-
e(I, [
|
|
924
|
-
2,
|
|
925
|
-
24
|
|
926
|
-
]),
|
|
927
|
-
{
|
|
928
|
-
11: 37,
|
|
929
|
-
13: 4,
|
|
930
|
-
14: 22,
|
|
931
|
-
15: y,
|
|
932
|
-
16: z,
|
|
933
|
-
19: 5,
|
|
934
|
-
20: 6,
|
|
935
|
-
21: c,
|
|
936
|
-
22: 8,
|
|
937
|
-
23: 9,
|
|
938
|
-
24: 10,
|
|
939
|
-
25: 11,
|
|
940
|
-
26: 12,
|
|
941
|
-
28: u,
|
|
942
|
-
29: a,
|
|
943
|
-
31: i,
|
|
944
|
-
32: g,
|
|
945
|
-
40: o,
|
|
946
|
-
44: p,
|
|
947
|
-
47: f
|
|
948
|
-
},
|
|
949
|
-
{
|
|
950
|
-
30: [
|
|
951
|
-
1,
|
|
952
|
-
38
|
|
953
|
-
]
|
|
954
|
-
},
|
|
955
|
-
{
|
|
956
|
-
42: [
|
|
957
|
-
1,
|
|
958
|
-
39
|
|
959
|
-
]
|
|
960
|
-
},
|
|
961
|
-
{
|
|
962
|
-
42: [
|
|
963
|
-
1,
|
|
964
|
-
40
|
|
965
|
-
]
|
|
966
|
-
},
|
|
967
|
-
{
|
|
968
|
-
46: [
|
|
969
|
-
1,
|
|
970
|
-
41
|
|
971
|
-
]
|
|
972
|
-
},
|
|
973
|
-
{
|
|
974
|
-
49: [
|
|
975
|
-
1,
|
|
976
|
-
42
|
|
977
|
-
]
|
|
978
|
-
},
|
|
979
|
-
e(w, [
|
|
980
|
-
2,
|
|
981
|
-
30
|
|
982
|
-
]),
|
|
983
|
-
{
|
|
984
|
-
18: [
|
|
985
|
-
1,
|
|
986
|
-
43
|
|
987
|
-
]
|
|
988
|
-
},
|
|
989
|
-
{
|
|
990
|
-
18: [
|
|
991
|
-
1,
|
|
992
|
-
44
|
|
993
|
-
]
|
|
994
|
-
},
|
|
995
|
-
e(I, [
|
|
996
|
-
2,
|
|
997
|
-
23
|
|
998
|
-
]),
|
|
999
|
-
{
|
|
1000
|
-
18: [
|
|
1001
|
-
1,
|
|
1002
|
-
45
|
|
1003
|
-
]
|
|
1004
|
-
},
|
|
1005
|
-
{
|
|
1006
|
-
30: [
|
|
1007
|
-
1,
|
|
1008
|
-
46
|
|
1009
|
-
]
|
|
1010
|
-
},
|
|
1011
|
-
e(S, [
|
|
1012
|
-
2,
|
|
1013
|
-
28
|
|
1014
|
-
]),
|
|
1015
|
-
e(S, [
|
|
1016
|
-
2,
|
|
1017
|
-
35
|
|
1018
|
-
]),
|
|
1019
|
-
e(S, [
|
|
1020
|
-
2,
|
|
1021
|
-
36
|
|
1022
|
-
]),
|
|
1023
|
-
e(S, [
|
|
1024
|
-
2,
|
|
1025
|
-
37
|
|
1026
|
-
]),
|
|
1027
|
-
e(S, [
|
|
1028
|
-
2,
|
|
1029
|
-
38
|
|
1030
|
-
]),
|
|
1031
|
-
{
|
|
1032
|
-
37: [
|
|
1033
|
-
1,
|
|
1034
|
-
47
|
|
1035
|
-
]
|
|
1036
|
-
},
|
|
1037
|
-
{
|
|
1038
|
-
34: 48,
|
|
1039
|
-
35: C
|
|
1040
|
-
},
|
|
1041
|
-
{
|
|
1042
|
-
15: [
|
|
1043
|
-
1,
|
|
1044
|
-
50
|
|
1045
|
-
]
|
|
1046
|
-
},
|
|
1047
|
-
e(S, [
|
|
1048
|
-
2,
|
|
1049
|
-
27
|
|
1050
|
-
]),
|
|
1051
|
-
e(w, [
|
|
1052
|
-
2,
|
|
1053
|
-
33
|
|
1054
|
-
]),
|
|
1055
|
-
{
|
|
1056
|
-
39: [
|
|
1057
|
-
1,
|
|
1058
|
-
51
|
|
1059
|
-
]
|
|
1060
|
-
},
|
|
1061
|
-
{
|
|
1062
|
-
34: 52,
|
|
1063
|
-
35: C,
|
|
1064
|
-
39: [
|
|
1065
|
-
2,
|
|
1066
|
-
31
|
|
1067
|
-
]
|
|
1068
|
-
},
|
|
1069
|
-
{
|
|
1070
|
-
32: [
|
|
1071
|
-
2,
|
|
1072
|
-
15
|
|
1073
|
-
]
|
|
1074
|
-
},
|
|
1075
|
-
e(w, [
|
|
1076
|
-
2,
|
|
1077
|
-
34
|
|
1078
|
-
]),
|
|
1079
|
-
{
|
|
1080
|
-
39: [
|
|
1081
|
-
2,
|
|
1082
|
-
32
|
|
1083
|
-
]
|
|
1084
|
-
}
|
|
1085
|
-
],
|
|
1086
|
-
defaultActions: {
|
|
1087
|
-
20: [
|
|
1088
|
-
2,
|
|
1089
|
-
7
|
|
1090
|
-
],
|
|
1091
|
-
23: [
|
|
1092
|
-
2,
|
|
1093
|
-
14
|
|
1094
|
-
],
|
|
1095
|
-
50: [
|
|
1096
|
-
2,
|
|
1097
|
-
15
|
|
1098
|
-
],
|
|
1099
|
-
52: [
|
|
1100
|
-
2,
|
|
1101
|
-
32
|
|
1102
|
-
]
|
|
1103
|
-
},
|
|
1104
|
-
parseError: function parseError(l, s) {
|
|
1105
|
-
if (s.recoverable) this.trace(l);
|
|
1106
|
-
else {
|
|
1107
|
-
var r = new Error(l);
|
|
1108
|
-
throw r.hash = s, r;
|
|
1109
|
-
}
|
|
1110
|
-
},
|
|
1111
|
-
parse: function parse(l) {
|
|
1112
|
-
var s = this, r = [
|
|
1113
|
-
0
|
|
1114
|
-
], h = [], d = [
|
|
1115
|
-
null
|
|
1116
|
-
], t = [], x = this.table, n = "", B = 0, Y = 0, F = 2, R = 1, me = t.slice.call(arguments, 1), _ = Object.create(this.lexer), K = {
|
|
1117
|
-
yy: {}
|
|
1118
|
-
};
|
|
1119
|
-
for(var Z in this.yy)Object.prototype.hasOwnProperty.call(this.yy, Z) && (K.yy[Z] = this.yy[Z]);
|
|
1120
|
-
_.setInput(l, K.yy), K.yy.lexer = _, K.yy.parser = this, _type_of(_.yylloc) > "u" && (_.yylloc = {});
|
|
1121
|
-
var J = _.yylloc;
|
|
1122
|
-
t.push(J);
|
|
1123
|
-
var be = _.options && _.options.ranges;
|
|
1124
|
-
typeof K.yy.parseError == "function" ? this.parseError = K.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
1125
|
-
function Ee() {
|
|
1126
|
-
var P;
|
|
1127
|
-
return P = h.pop() || _.lex() || R, typeof P != "number" && (_instanceof(P, Array) && (h = P, P = h.pop()), P = s.symbols_[P] || P), P;
|
|
1128
|
-
}
|
|
1129
|
-
for(var O, M, A, Q, W = {}, X, k, ae, G;;){
|
|
1130
|
-
if (M = r[r.length - 1], this.defaultActions[M] ? A = this.defaultActions[M] : ((O === null || (typeof O === "undefined" ? "undefined" : _type_of(O)) > "u") && (O = Ee()), A = x[M] && x[M][O]), (typeof A === "undefined" ? "undefined" : _type_of(A)) > "u" || !A.length || !A[0]) {
|
|
1131
|
-
var $ = "";
|
|
1132
|
-
G = [];
|
|
1133
|
-
for(X in x[M])this.terminals_[X] && X > F && G.push("'" + this.terminals_[X] + "'");
|
|
1134
|
-
_.showPosition ? $ = "Parse error on line " + (B + 1) + ":\n" + _.showPosition() + "\nExpecting " + G.join(", ") + ", got '" + (this.terminals_[O] || O) + "'" : $ = "Parse error on line " + (B + 1) + ": Unexpected " + (O == R ? "end of input" : "'" + (this.terminals_[O] || O) + "'"), this.parseError($, {
|
|
1135
|
-
text: _.match,
|
|
1136
|
-
token: this.terminals_[O] || O,
|
|
1137
|
-
line: _.yylineno,
|
|
1138
|
-
loc: J,
|
|
1139
|
-
expected: G
|
|
1140
|
-
});
|
|
1141
|
-
}
|
|
1142
|
-
if (_instanceof(A[0], Array) && A.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + M + ", token: " + O);
|
|
1143
|
-
switch(A[0]){
|
|
1144
|
-
case 1:
|
|
1145
|
-
r.push(O), d.push(_.yytext), t.push(_.yylloc), r.push(A[1]), O = null, Y = _.yyleng, n = _.yytext, B = _.yylineno, J = _.yylloc;
|
|
1146
|
-
break;
|
|
1147
|
-
case 2:
|
|
1148
|
-
if (k = this.productions_[A[1]][1], W.$ = d[d.length - k], W._$ = {
|
|
1149
|
-
first_line: t[t.length - (k || 1)].first_line,
|
|
1150
|
-
last_line: t[t.length - 1].last_line,
|
|
1151
|
-
first_column: t[t.length - (k || 1)].first_column,
|
|
1152
|
-
last_column: t[t.length - 1].last_column
|
|
1153
|
-
}, be && (W._$.range = [
|
|
1154
|
-
t[t.length - (k || 1)].range[0],
|
|
1155
|
-
t[t.length - 1].range[1]
|
|
1156
|
-
]), Q = this.performAction.apply(W, [
|
|
1157
|
-
n,
|
|
1158
|
-
Y,
|
|
1159
|
-
B,
|
|
1160
|
-
K.yy,
|
|
1161
|
-
A[1],
|
|
1162
|
-
d,
|
|
1163
|
-
t
|
|
1164
|
-
].concat(me)), (typeof Q === "undefined" ? "undefined" : _type_of(Q)) < "u") return Q;
|
|
1165
|
-
k && (r = r.slice(0, -1 * k * 2), d = d.slice(0, -1 * k), t = t.slice(0, -1 * k)), r.push(this.productions_[A[1]][0]), d.push(W.$), t.push(W._$), ae = x[r[r.length - 2]][r[r.length - 1]], r.push(ae);
|
|
1166
|
-
break;
|
|
1167
|
-
case 3:
|
|
1168
|
-
return true;
|
|
1169
|
-
}
|
|
1170
|
-
}
|
|
1171
|
-
return true;
|
|
1172
|
-
}
|
|
1173
|
-
}, v = function() {
|
|
1174
|
-
var D = {
|
|
1175
|
-
EOF: 1,
|
|
1176
|
-
parseError: function parseError(s, r) {
|
|
1177
|
-
if (this.yy.parser) this.yy.parser.parseError(s, r);
|
|
1178
|
-
else throw new Error(s);
|
|
1179
|
-
},
|
|
1180
|
-
// resets the lexer, sets new input
|
|
1181
|
-
setInput: function setInput(l, s) {
|
|
1182
|
-
return this.yy = s || this.yy || {}, this._input = l, this._more = this._backtrack = this.done = false, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = [
|
|
1183
|
-
"INITIAL"
|
|
1184
|
-
], this.yylloc = {
|
|
1185
|
-
first_line: 1,
|
|
1186
|
-
first_column: 0,
|
|
1187
|
-
last_line: 1,
|
|
1188
|
-
last_column: 0
|
|
1189
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
1190
|
-
0,
|
|
1191
|
-
0
|
|
1192
|
-
]), this.offset = 0, this;
|
|
1193
|
-
},
|
|
1194
|
-
// consumes and returns one char from the input
|
|
1195
|
-
input: function input() {
|
|
1196
|
-
var l = this._input[0];
|
|
1197
|
-
this.yytext += l, this.yyleng++, this.offset++, this.match += l, this.matched += l;
|
|
1198
|
-
var s = l.match(/(?:\r\n?|\n).*/g);
|
|
1199
|
-
return s ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), l;
|
|
1200
|
-
},
|
|
1201
|
-
// unshifts one char (or a string) into the input
|
|
1202
|
-
unput: function unput(l) {
|
|
1203
|
-
var s = l.length, r = l.split(/(?:\r\n?|\n)/g);
|
|
1204
|
-
this._input = l + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - s), this.offset -= s;
|
|
1205
|
-
var h = this.match.split(/(?:\r\n?|\n)/g);
|
|
1206
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), r.length - 1 && (this.yylineno -= r.length - 1);
|
|
1207
|
-
var d = this.yylloc.range;
|
|
1208
|
-
return this.yylloc = {
|
|
1209
|
-
first_line: this.yylloc.first_line,
|
|
1210
|
-
last_line: this.yylineno + 1,
|
|
1211
|
-
first_column: this.yylloc.first_column,
|
|
1212
|
-
last_column: r ? (r.length === h.length ? this.yylloc.first_column : 0) + h[h.length - r.length].length - r[0].length : this.yylloc.first_column - s
|
|
1213
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
1214
|
-
d[0],
|
|
1215
|
-
d[0] + this.yyleng - s
|
|
1216
|
-
]), this.yyleng = this.yytext.length, this;
|
|
1217
|
-
},
|
|
1218
|
-
// When called from action, caches matched text and appends it on next action
|
|
1219
|
-
more: function more() {
|
|
1220
|
-
return this._more = true, this;
|
|
1221
|
-
},
|
|
1222
|
-
// 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.
|
|
1223
|
-
reject: function reject() {
|
|
1224
|
-
if (this.options.backtrack_lexer) this._backtrack = true;
|
|
1225
|
-
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(), {
|
|
1226
|
-
text: "",
|
|
1227
|
-
token: null,
|
|
1228
|
-
line: this.yylineno
|
|
1229
|
-
});
|
|
1230
|
-
return this;
|
|
1231
|
-
},
|
|
1232
|
-
// retain first n characters of the match
|
|
1233
|
-
less: function less(l) {
|
|
1234
|
-
this.unput(this.match.slice(l));
|
|
1235
|
-
},
|
|
1236
|
-
// displays already matched input, i.e. for error messages
|
|
1237
|
-
pastInput: function pastInput() {
|
|
1238
|
-
var l = this.matched.substr(0, this.matched.length - this.match.length);
|
|
1239
|
-
return (l.length > 20 ? "..." : "") + l.substr(-20).replace(/\n/g, "");
|
|
1240
|
-
},
|
|
1241
|
-
// displays upcoming input, i.e. for error messages
|
|
1242
|
-
upcomingInput: function upcomingInput() {
|
|
1243
|
-
var l = this.match;
|
|
1244
|
-
return l.length < 20 && (l += this._input.substr(0, 20 - l.length)), (l.substr(0, 20) + (l.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
1245
|
-
},
|
|
1246
|
-
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
1247
|
-
showPosition: function showPosition() {
|
|
1248
|
-
var l = this.pastInput(), s = new Array(l.length + 1).join("-");
|
|
1249
|
-
return l + this.upcomingInput() + "\n" + s + "^";
|
|
1250
|
-
},
|
|
1251
|
-
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
1252
|
-
test_match: function test_match(l, s) {
|
|
1253
|
-
var r, h, d;
|
|
1254
|
-
if (this.options.backtrack_lexer && (d = {
|
|
1255
|
-
yylineno: this.yylineno,
|
|
1256
|
-
yylloc: {
|
|
1257
|
-
first_line: this.yylloc.first_line,
|
|
1258
|
-
last_line: this.last_line,
|
|
1259
|
-
first_column: this.yylloc.first_column,
|
|
1260
|
-
last_column: this.yylloc.last_column
|
|
1261
|
-
},
|
|
1262
|
-
yytext: this.yytext,
|
|
1263
|
-
match: this.match,
|
|
1264
|
-
matches: this.matches,
|
|
1265
|
-
matched: this.matched,
|
|
1266
|
-
yyleng: this.yyleng,
|
|
1267
|
-
offset: this.offset,
|
|
1268
|
-
_more: this._more,
|
|
1269
|
-
_input: this._input,
|
|
1270
|
-
yy: this.yy,
|
|
1271
|
-
conditionStack: this.conditionStack.slice(0),
|
|
1272
|
-
done: this.done
|
|
1273
|
-
}, this.options.ranges && (d.yylloc.range = this.yylloc.range.slice(0))), h = l[0].match(/(?:\r\n?|\n).*/g), h && (this.yylineno += h.length), this.yylloc = {
|
|
1274
|
-
first_line: this.yylloc.last_line,
|
|
1275
|
-
last_line: this.yylineno + 1,
|
|
1276
|
-
first_column: this.yylloc.last_column,
|
|
1277
|
-
last_column: h ? h[h.length - 1].length - h[h.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + l[0].length
|
|
1278
|
-
}, this.yytext += l[0], this.match += l[0], this.matches = l, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [
|
|
1279
|
-
this.offset,
|
|
1280
|
-
this.offset += this.yyleng
|
|
1281
|
-
]), this._more = false, this._backtrack = false, this._input = this._input.slice(l[0].length), this.matched += l[0], r = this.performAction.call(this, this.yy, this, s, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = false), r) return r;
|
|
1282
|
-
if (this._backtrack) {
|
|
1283
|
-
for(var t in d)this[t] = d[t];
|
|
1284
|
-
return false;
|
|
1285
|
-
}
|
|
1286
|
-
return false;
|
|
1287
|
-
},
|
|
1288
|
-
// return next match in input
|
|
1289
|
-
next: function next() {
|
|
1290
|
-
if (this.done) return this.EOF;
|
|
1291
|
-
this._input || (this.done = true);
|
|
1292
|
-
var l, s, r, h;
|
|
1293
|
-
this._more || (this.yytext = "", this.match = "");
|
|
1294
|
-
for(var d = this._currentRules(), t = 0; t < d.length; t++)if (r = this._input.match(this.rules[d[t]]), r && (!s || r[0].length > s[0].length)) {
|
|
1295
|
-
if (s = r, h = t, this.options.backtrack_lexer) {
|
|
1296
|
-
if (l = this.test_match(r, d[t]), l !== false) return l;
|
|
1297
|
-
if (this._backtrack) {
|
|
1298
|
-
s = false;
|
|
1299
|
-
continue;
|
|
1300
|
-
} else return false;
|
|
1301
|
-
} else if (!this.options.flex) break;
|
|
1302
|
-
}
|
|
1303
|
-
return s ? (l = this.test_match(s, d[h]), l !== false ? l : false) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
1304
|
-
text: "",
|
|
1305
|
-
token: null,
|
|
1306
|
-
line: this.yylineno
|
|
1307
|
-
});
|
|
1308
|
-
},
|
|
1309
|
-
// return next match that has a token
|
|
1310
|
-
lex: function lex() {
|
|
1311
|
-
var s = this.next();
|
|
1312
|
-
return s || this.lex();
|
|
1313
|
-
},
|
|
1314
|
-
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
1315
|
-
begin: function begin(s) {
|
|
1316
|
-
this.conditionStack.push(s);
|
|
1317
|
-
},
|
|
1318
|
-
// pop the previously active lexer condition state off the condition stack
|
|
1319
|
-
popState: function popState() {
|
|
1320
|
-
var s = this.conditionStack.length - 1;
|
|
1321
|
-
return s > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
1322
|
-
},
|
|
1323
|
-
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
1324
|
-
_currentRules: function _currentRules() {
|
|
1325
|
-
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
1326
|
-
},
|
|
1327
|
-
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
1328
|
-
topState: function topState(s) {
|
|
1329
|
-
return s = this.conditionStack.length - 1 - Math.abs(s || 0), s >= 0 ? this.conditionStack[s] : "INITIAL";
|
|
1330
|
-
},
|
|
1331
|
-
// alias for begin(condition)
|
|
1332
|
-
pushState: function pushState(s) {
|
|
1333
|
-
this.begin(s);
|
|
1334
|
-
},
|
|
1335
|
-
// return the number of states currently on the stack
|
|
1336
|
-
stateStackSize: function stateStackSize() {
|
|
1337
|
-
return this.conditionStack.length;
|
|
1338
|
-
},
|
|
1339
|
-
options: {},
|
|
1340
|
-
performAction: function performAction(s, r, h, d) {
|
|
1341
|
-
switch(h){
|
|
1342
|
-
case 0:
|
|
1343
|
-
return 10;
|
|
1344
|
-
case 1:
|
|
1345
|
-
return s.getLogger().debug("Found space-block"), 31;
|
|
1346
|
-
case 2:
|
|
1347
|
-
return s.getLogger().debug("Found nl-block"), 31;
|
|
1348
|
-
case 3:
|
|
1349
|
-
return s.getLogger().debug("Found space-block"), 29;
|
|
1350
|
-
case 4:
|
|
1351
|
-
s.getLogger().debug(".", r.yytext);
|
|
1352
|
-
break;
|
|
1353
|
-
case 5:
|
|
1354
|
-
s.getLogger().debug("_", r.yytext);
|
|
1355
|
-
break;
|
|
1356
|
-
case 6:
|
|
1357
|
-
return 5;
|
|
1358
|
-
case 7:
|
|
1359
|
-
return r.yytext = -1, 28;
|
|
1360
|
-
case 8:
|
|
1361
|
-
return r.yytext = r.yytext.replace(/columns\s+/, ""), s.getLogger().debug("COLUMNS (LEX)", r.yytext), 28;
|
|
1362
|
-
case 9:
|
|
1363
|
-
this.pushState("md_string");
|
|
1364
|
-
break;
|
|
1365
|
-
case 10:
|
|
1366
|
-
return "MD_STR";
|
|
1367
|
-
case 11:
|
|
1368
|
-
this.popState();
|
|
1369
|
-
break;
|
|
1370
|
-
case 12:
|
|
1371
|
-
this.pushState("string");
|
|
1372
|
-
break;
|
|
1373
|
-
case 13:
|
|
1374
|
-
s.getLogger().debug("LEX: POPPING STR:", r.yytext), this.popState();
|
|
1375
|
-
break;
|
|
1376
|
-
case 14:
|
|
1377
|
-
return s.getLogger().debug("LEX: STR end:", r.yytext), "STR";
|
|
1378
|
-
case 15:
|
|
1379
|
-
return r.yytext = r.yytext.replace(/space\:/, ""), s.getLogger().debug("SPACE NUM (LEX)", r.yytext), 21;
|
|
1380
|
-
case 16:
|
|
1381
|
-
return r.yytext = "1", s.getLogger().debug("COLUMNS (LEX)", r.yytext), 21;
|
|
1382
|
-
case 17:
|
|
1383
|
-
return 43;
|
|
1384
|
-
case 18:
|
|
1385
|
-
return "LINKSTYLE";
|
|
1386
|
-
case 19:
|
|
1387
|
-
return "INTERPOLATE";
|
|
1388
|
-
case 20:
|
|
1389
|
-
return this.pushState("CLASSDEF"), 40;
|
|
1390
|
-
case 21:
|
|
1391
|
-
return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
|
|
1392
|
-
case 22:
|
|
1393
|
-
return this.popState(), this.pushState("CLASSDEFID"), 41;
|
|
1394
|
-
case 23:
|
|
1395
|
-
return this.popState(), 42;
|
|
1396
|
-
case 24:
|
|
1397
|
-
return this.pushState("CLASS"), 44;
|
|
1398
|
-
case 25:
|
|
1399
|
-
return this.popState(), this.pushState("CLASS_STYLE"), 45;
|
|
1400
|
-
case 26:
|
|
1401
|
-
return this.popState(), 46;
|
|
1402
|
-
case 27:
|
|
1403
|
-
return this.pushState("STYLE_STMNT"), 47;
|
|
1404
|
-
case 28:
|
|
1405
|
-
return this.popState(), this.pushState("STYLE_DEFINITION"), 48;
|
|
1406
|
-
case 29:
|
|
1407
|
-
return this.popState(), 49;
|
|
1408
|
-
case 30:
|
|
1409
|
-
return this.pushState("acc_title"), "acc_title";
|
|
1410
|
-
case 31:
|
|
1411
|
-
return this.popState(), "acc_title_value";
|
|
1412
|
-
case 32:
|
|
1413
|
-
return this.pushState("acc_descr"), "acc_descr";
|
|
1414
|
-
case 33:
|
|
1415
|
-
return this.popState(), "acc_descr_value";
|
|
1416
|
-
case 34:
|
|
1417
|
-
this.pushState("acc_descr_multiline");
|
|
1418
|
-
break;
|
|
1419
|
-
case 35:
|
|
1420
|
-
this.popState();
|
|
1421
|
-
break;
|
|
1422
|
-
case 36:
|
|
1423
|
-
return "acc_descr_multiline_value";
|
|
1424
|
-
case 37:
|
|
1425
|
-
return 30;
|
|
1426
|
-
case 38:
|
|
1427
|
-
return this.popState(), s.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
1428
|
-
case 39:
|
|
1429
|
-
return this.popState(), s.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
1430
|
-
case 40:
|
|
1431
|
-
return this.popState(), s.getLogger().debug("Lex: ))"), "NODE_DEND";
|
|
1432
|
-
case 41:
|
|
1433
|
-
return this.popState(), s.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
1434
|
-
case 42:
|
|
1435
|
-
return this.popState(), s.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
1436
|
-
case 43:
|
|
1437
|
-
return this.popState(), s.getLogger().debug("Lex: (-"), "NODE_DEND";
|
|
1438
|
-
case 44:
|
|
1439
|
-
return this.popState(), s.getLogger().debug("Lex: -)"), "NODE_DEND";
|
|
1440
|
-
case 45:
|
|
1441
|
-
return this.popState(), s.getLogger().debug("Lex: (("), "NODE_DEND";
|
|
1442
|
-
case 46:
|
|
1443
|
-
return this.popState(), s.getLogger().debug("Lex: ]]"), "NODE_DEND";
|
|
1444
|
-
case 47:
|
|
1445
|
-
return this.popState(), s.getLogger().debug("Lex: ("), "NODE_DEND";
|
|
1446
|
-
case 48:
|
|
1447
|
-
return this.popState(), s.getLogger().debug("Lex: ])"), "NODE_DEND";
|
|
1448
|
-
case 49:
|
|
1449
|
-
return this.popState(), s.getLogger().debug("Lex: /]"), "NODE_DEND";
|
|
1450
|
-
case 50:
|
|
1451
|
-
return this.popState(), s.getLogger().debug("Lex: /]"), "NODE_DEND";
|
|
1452
|
-
case 51:
|
|
1453
|
-
return this.popState(), s.getLogger().debug("Lex: )]"), "NODE_DEND";
|
|
1454
|
-
case 52:
|
|
1455
|
-
return this.popState(), s.getLogger().debug("Lex: )"), "NODE_DEND";
|
|
1456
|
-
case 53:
|
|
1457
|
-
return this.popState(), s.getLogger().debug("Lex: ]>"), "NODE_DEND";
|
|
1458
|
-
case 54:
|
|
1459
|
-
return this.popState(), s.getLogger().debug("Lex: ]"), "NODE_DEND";
|
|
1460
|
-
case 55:
|
|
1461
|
-
return s.getLogger().debug("Lexa: -)"), this.pushState("NODE"), 36;
|
|
1462
|
-
case 56:
|
|
1463
|
-
return s.getLogger().debug("Lexa: (-"), this.pushState("NODE"), 36;
|
|
1464
|
-
case 57:
|
|
1465
|
-
return s.getLogger().debug("Lexa: ))"), this.pushState("NODE"), 36;
|
|
1466
|
-
case 58:
|
|
1467
|
-
return s.getLogger().debug("Lexa: )"), this.pushState("NODE"), 36;
|
|
1468
|
-
case 59:
|
|
1469
|
-
return s.getLogger().debug("Lex: ((("), this.pushState("NODE"), 36;
|
|
1470
|
-
case 60:
|
|
1471
|
-
return s.getLogger().debug("Lexa: )"), this.pushState("NODE"), 36;
|
|
1472
|
-
case 61:
|
|
1473
|
-
return s.getLogger().debug("Lexa: )"), this.pushState("NODE"), 36;
|
|
1474
|
-
case 62:
|
|
1475
|
-
return s.getLogger().debug("Lexa: )"), this.pushState("NODE"), 36;
|
|
1476
|
-
case 63:
|
|
1477
|
-
return s.getLogger().debug("Lexc: >"), this.pushState("NODE"), 36;
|
|
1478
|
-
case 64:
|
|
1479
|
-
return s.getLogger().debug("Lexa: (["), this.pushState("NODE"), 36;
|
|
1480
|
-
case 65:
|
|
1481
|
-
return s.getLogger().debug("Lexa: )"), this.pushState("NODE"), 36;
|
|
1482
|
-
case 66:
|
|
1483
|
-
return this.pushState("NODE"), 36;
|
|
1484
|
-
case 67:
|
|
1485
|
-
return this.pushState("NODE"), 36;
|
|
1486
|
-
case 68:
|
|
1487
|
-
return this.pushState("NODE"), 36;
|
|
1488
|
-
case 69:
|
|
1489
|
-
return this.pushState("NODE"), 36;
|
|
1490
|
-
case 70:
|
|
1491
|
-
return this.pushState("NODE"), 36;
|
|
1492
|
-
case 71:
|
|
1493
|
-
return this.pushState("NODE"), 36;
|
|
1494
|
-
case 72:
|
|
1495
|
-
return this.pushState("NODE"), 36;
|
|
1496
|
-
case 73:
|
|
1497
|
-
return s.getLogger().debug("Lexa: ["), this.pushState("NODE"), 36;
|
|
1498
|
-
case 74:
|
|
1499
|
-
return this.pushState("BLOCK_ARROW"), s.getLogger().debug("LEX ARR START"), 38;
|
|
1500
|
-
case 75:
|
|
1501
|
-
return s.getLogger().debug("Lex: NODE_ID", r.yytext), 32;
|
|
1502
|
-
case 76:
|
|
1503
|
-
return s.getLogger().debug("Lex: EOF", r.yytext), 8;
|
|
1504
|
-
case 77:
|
|
1505
|
-
this.pushState("md_string");
|
|
1506
|
-
break;
|
|
1507
|
-
case 78:
|
|
1508
|
-
this.pushState("md_string");
|
|
1509
|
-
break;
|
|
1510
|
-
case 79:
|
|
1511
|
-
return "NODE_DESCR";
|
|
1512
|
-
case 80:
|
|
1513
|
-
this.popState();
|
|
1514
|
-
break;
|
|
1515
|
-
case 81:
|
|
1516
|
-
s.getLogger().debug("Lex: Starting string"), this.pushState("string");
|
|
1517
|
-
break;
|
|
1518
|
-
case 82:
|
|
1519
|
-
s.getLogger().debug("LEX ARR: Starting string"), this.pushState("string");
|
|
1520
|
-
break;
|
|
1521
|
-
case 83:
|
|
1522
|
-
return s.getLogger().debug("LEX: NODE_DESCR:", r.yytext), "NODE_DESCR";
|
|
1523
|
-
case 84:
|
|
1524
|
-
s.getLogger().debug("LEX POPPING"), this.popState();
|
|
1525
|
-
break;
|
|
1526
|
-
case 85:
|
|
1527
|
-
s.getLogger().debug("Lex: =>BAE"), this.pushState("ARROW_DIR");
|
|
1528
|
-
break;
|
|
1529
|
-
case 86:
|
|
1530
|
-
return r.yytext = r.yytext.replace(/^,\s*/, ""), s.getLogger().debug("Lex (right): dir:", r.yytext), "DIR";
|
|
1531
|
-
case 87:
|
|
1532
|
-
return r.yytext = r.yytext.replace(/^,\s*/, ""), s.getLogger().debug("Lex (left):", r.yytext), "DIR";
|
|
1533
|
-
case 88:
|
|
1534
|
-
return r.yytext = r.yytext.replace(/^,\s*/, ""), s.getLogger().debug("Lex (x):", r.yytext), "DIR";
|
|
1535
|
-
case 89:
|
|
1536
|
-
return r.yytext = r.yytext.replace(/^,\s*/, ""), s.getLogger().debug("Lex (y):", r.yytext), "DIR";
|
|
1537
|
-
case 90:
|
|
1538
|
-
return r.yytext = r.yytext.replace(/^,\s*/, ""), s.getLogger().debug("Lex (up):", r.yytext), "DIR";
|
|
1539
|
-
case 91:
|
|
1540
|
-
return r.yytext = r.yytext.replace(/^,\s*/, ""), s.getLogger().debug("Lex (down):", r.yytext), "DIR";
|
|
1541
|
-
case 92:
|
|
1542
|
-
return r.yytext = "]>", s.getLogger().debug("Lex (ARROW_DIR end):", r.yytext), this.popState(), this.popState(), "BLOCK_ARROW_END";
|
|
1543
|
-
case 93:
|
|
1544
|
-
return s.getLogger().debug("Lex: LINK", "#" + r.yytext + "#"), 15;
|
|
1545
|
-
case 94:
|
|
1546
|
-
return s.getLogger().debug("Lex: LINK", r.yytext), 15;
|
|
1547
|
-
case 95:
|
|
1548
|
-
return s.getLogger().debug("Lex: LINK", r.yytext), 15;
|
|
1549
|
-
case 96:
|
|
1550
|
-
return s.getLogger().debug("Lex: LINK", r.yytext), 15;
|
|
1551
|
-
case 97:
|
|
1552
|
-
return s.getLogger().debug("Lex: START_LINK", r.yytext), this.pushState("LLABEL"), 16;
|
|
1553
|
-
case 98:
|
|
1554
|
-
return s.getLogger().debug("Lex: START_LINK", r.yytext), this.pushState("LLABEL"), 16;
|
|
1555
|
-
case 99:
|
|
1556
|
-
return s.getLogger().debug("Lex: START_LINK", r.yytext), this.pushState("LLABEL"), 16;
|
|
1557
|
-
case 100:
|
|
1558
|
-
this.pushState("md_string");
|
|
1559
|
-
break;
|
|
1560
|
-
case 101:
|
|
1561
|
-
return s.getLogger().debug("Lex: Starting string"), this.pushState("string"), "LINK_LABEL";
|
|
1562
|
-
case 102:
|
|
1563
|
-
return this.popState(), s.getLogger().debug("Lex: LINK", "#" + r.yytext + "#"), 15;
|
|
1564
|
-
case 103:
|
|
1565
|
-
return this.popState(), s.getLogger().debug("Lex: LINK", r.yytext), 15;
|
|
1566
|
-
case 104:
|
|
1567
|
-
return this.popState(), s.getLogger().debug("Lex: LINK", r.yytext), 15;
|
|
1568
|
-
case 105:
|
|
1569
|
-
return s.getLogger().debug("Lex: COLON", r.yytext), r.yytext = r.yytext.slice(1), 27;
|
|
1570
|
-
}
|
|
1571
|
-
},
|
|
1572
|
-
rules: [
|
|
1573
|
-
/^(?:block-beta\b)/,
|
|
1574
|
-
/^(?:block\s+)/,
|
|
1575
|
-
/^(?:block\n+)/,
|
|
1576
|
-
/^(?:block:)/,
|
|
1577
|
-
/^(?:[\s]+)/,
|
|
1578
|
-
/^(?:[\n]+)/,
|
|
1579
|
-
/^(?:((\u000D\u000A)|(\u000A)))/,
|
|
1580
|
-
/^(?:columns\s+auto\b)/,
|
|
1581
|
-
/^(?:columns\s+[\d]+)/,
|
|
1582
|
-
/^(?:["][`])/,
|
|
1583
|
-
/^(?:[^`"]+)/,
|
|
1584
|
-
/^(?:[`]["])/,
|
|
1585
|
-
/^(?:["])/,
|
|
1586
|
-
/^(?:["])/,
|
|
1587
|
-
/^(?:[^"]*)/,
|
|
1588
|
-
/^(?:space[:]\d+)/,
|
|
1589
|
-
/^(?:space\b)/,
|
|
1590
|
-
/^(?:default\b)/,
|
|
1591
|
-
/^(?:linkStyle\b)/,
|
|
1592
|
-
/^(?:interpolate\b)/,
|
|
1593
|
-
/^(?:classDef\s+)/,
|
|
1594
|
-
/^(?:DEFAULT\s+)/,
|
|
1595
|
-
/^(?:\w+\s+)/,
|
|
1596
|
-
/^(?:[^\n]*)/,
|
|
1597
|
-
/^(?:class\s+)/,
|
|
1598
|
-
/^(?:(\w+)+((,\s*\w+)*))/,
|
|
1599
|
-
/^(?:[^\n]*)/,
|
|
1600
|
-
/^(?:style\s+)/,
|
|
1601
|
-
/^(?:(\w+)+((,\s*\w+)*))/,
|
|
1602
|
-
/^(?:[^\n]*)/,
|
|
1603
|
-
/^(?:accTitle\s*:\s*)/,
|
|
1604
|
-
/^(?:(?!\n||)*[^\n]*)/,
|
|
1605
|
-
/^(?:accDescr\s*:\s*)/,
|
|
1606
|
-
/^(?:(?!\n||)*[^\n]*)/,
|
|
1607
|
-
/^(?:accDescr\s*\{\s*)/,
|
|
1608
|
-
/^(?:[\}])/,
|
|
1609
|
-
/^(?:[^\}]*)/,
|
|
1610
|
-
/^(?:end\b\s*)/,
|
|
1611
|
-
/^(?:\(\(\()/,
|
|
1612
|
-
/^(?:\)\)\))/,
|
|
1613
|
-
/^(?:[\)]\))/,
|
|
1614
|
-
/^(?:\}\})/,
|
|
1615
|
-
/^(?:\})/,
|
|
1616
|
-
/^(?:\(-)/,
|
|
1617
|
-
/^(?:-\))/,
|
|
1618
|
-
/^(?:\(\()/,
|
|
1619
|
-
/^(?:\]\])/,
|
|
1620
|
-
/^(?:\()/,
|
|
1621
|
-
/^(?:\]\))/,
|
|
1622
|
-
/^(?:\\\])/,
|
|
1623
|
-
/^(?:\/\])/,
|
|
1624
|
-
/^(?:\)\])/,
|
|
1625
|
-
/^(?:[\)])/,
|
|
1626
|
-
/^(?:\]>)/,
|
|
1627
|
-
/^(?:[\]])/,
|
|
1628
|
-
/^(?:-\))/,
|
|
1629
|
-
/^(?:\(-)/,
|
|
1630
|
-
/^(?:\)\))/,
|
|
1631
|
-
/^(?:\))/,
|
|
1632
|
-
/^(?:\(\(\()/,
|
|
1633
|
-
/^(?:\(\()/,
|
|
1634
|
-
/^(?:\{\{)/,
|
|
1635
|
-
/^(?:\{)/,
|
|
1636
|
-
/^(?:>)/,
|
|
1637
|
-
/^(?:\(\[)/,
|
|
1638
|
-
/^(?:\()/,
|
|
1639
|
-
/^(?:\[\[)/,
|
|
1640
|
-
/^(?:\[\|)/,
|
|
1641
|
-
/^(?:\[\()/,
|
|
1642
|
-
/^(?:\)\)\))/,
|
|
1643
|
-
/^(?:\[\\)/,
|
|
1644
|
-
/^(?:\[\/)/,
|
|
1645
|
-
/^(?:\[\\)/,
|
|
1646
|
-
/^(?:\[)/,
|
|
1647
|
-
/^(?:<\[)/,
|
|
1648
|
-
/^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,
|
|
1649
|
-
/^(?:$)/,
|
|
1650
|
-
/^(?:["][`])/,
|
|
1651
|
-
/^(?:["][`])/,
|
|
1652
|
-
/^(?:[^`"]+)/,
|
|
1653
|
-
/^(?:[`]["])/,
|
|
1654
|
-
/^(?:["])/,
|
|
1655
|
-
/^(?:["])/,
|
|
1656
|
-
/^(?:[^"]+)/,
|
|
1657
|
-
/^(?:["])/,
|
|
1658
|
-
/^(?:\]>\s*\()/,
|
|
1659
|
-
/^(?:,?\s*right\s*)/,
|
|
1660
|
-
/^(?:,?\s*left\s*)/,
|
|
1661
|
-
/^(?:,?\s*x\s*)/,
|
|
1662
|
-
/^(?:,?\s*y\s*)/,
|
|
1663
|
-
/^(?:,?\s*up\s*)/,
|
|
1664
|
-
/^(?:,?\s*down\s*)/,
|
|
1665
|
-
/^(?:\)\s*)/,
|
|
1666
|
-
/^(?:\s*[xo<]?--+[-xo>]\s*)/,
|
|
1667
|
-
/^(?:\s*[xo<]?==+[=xo>]\s*)/,
|
|
1668
|
-
/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,
|
|
1669
|
-
/^(?:\s*~~[\~]+\s*)/,
|
|
1670
|
-
/^(?:\s*[xo<]?--\s*)/,
|
|
1671
|
-
/^(?:\s*[xo<]?==\s*)/,
|
|
1672
|
-
/^(?:\s*[xo<]?-\.\s*)/,
|
|
1673
|
-
/^(?:["][`])/,
|
|
1674
|
-
/^(?:["])/,
|
|
1675
|
-
/^(?:\s*[xo<]?--+[-xo>]\s*)/,
|
|
1676
|
-
/^(?:\s*[xo<]?==+[=xo>]\s*)/,
|
|
1677
|
-
/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,
|
|
1678
|
-
/^(?::\d+)/
|
|
1679
|
-
],
|
|
1680
|
-
conditions: {
|
|
1681
|
-
STYLE_DEFINITION: {
|
|
1682
|
-
rules: [
|
|
1683
|
-
29
|
|
1684
|
-
],
|
|
1685
|
-
inclusive: false
|
|
1686
|
-
},
|
|
1687
|
-
STYLE_STMNT: {
|
|
1688
|
-
rules: [
|
|
1689
|
-
28
|
|
1690
|
-
],
|
|
1691
|
-
inclusive: false
|
|
1692
|
-
},
|
|
1693
|
-
CLASSDEFID: {
|
|
1694
|
-
rules: [
|
|
1695
|
-
23
|
|
1696
|
-
],
|
|
1697
|
-
inclusive: false
|
|
1698
|
-
},
|
|
1699
|
-
CLASSDEF: {
|
|
1700
|
-
rules: [
|
|
1701
|
-
21,
|
|
1702
|
-
22
|
|
1703
|
-
],
|
|
1704
|
-
inclusive: false
|
|
1705
|
-
},
|
|
1706
|
-
CLASS_STYLE: {
|
|
1707
|
-
rules: [
|
|
1708
|
-
26
|
|
1709
|
-
],
|
|
1710
|
-
inclusive: false
|
|
1711
|
-
},
|
|
1712
|
-
CLASS: {
|
|
1713
|
-
rules: [
|
|
1714
|
-
25
|
|
1715
|
-
],
|
|
1716
|
-
inclusive: false
|
|
1717
|
-
},
|
|
1718
|
-
LLABEL: {
|
|
1719
|
-
rules: [
|
|
1720
|
-
100,
|
|
1721
|
-
101,
|
|
1722
|
-
102,
|
|
1723
|
-
103,
|
|
1724
|
-
104
|
|
1725
|
-
],
|
|
1726
|
-
inclusive: false
|
|
1727
|
-
},
|
|
1728
|
-
ARROW_DIR: {
|
|
1729
|
-
rules: [
|
|
1730
|
-
86,
|
|
1731
|
-
87,
|
|
1732
|
-
88,
|
|
1733
|
-
89,
|
|
1734
|
-
90,
|
|
1735
|
-
91,
|
|
1736
|
-
92
|
|
1737
|
-
],
|
|
1738
|
-
inclusive: false
|
|
1739
|
-
},
|
|
1740
|
-
BLOCK_ARROW: {
|
|
1741
|
-
rules: [
|
|
1742
|
-
77,
|
|
1743
|
-
82,
|
|
1744
|
-
85
|
|
1745
|
-
],
|
|
1746
|
-
inclusive: false
|
|
1747
|
-
},
|
|
1748
|
-
NODE: {
|
|
1749
|
-
rules: [
|
|
1750
|
-
38,
|
|
1751
|
-
39,
|
|
1752
|
-
40,
|
|
1753
|
-
41,
|
|
1754
|
-
42,
|
|
1755
|
-
43,
|
|
1756
|
-
44,
|
|
1757
|
-
45,
|
|
1758
|
-
46,
|
|
1759
|
-
47,
|
|
1760
|
-
48,
|
|
1761
|
-
49,
|
|
1762
|
-
50,
|
|
1763
|
-
51,
|
|
1764
|
-
52,
|
|
1765
|
-
53,
|
|
1766
|
-
54,
|
|
1767
|
-
78,
|
|
1768
|
-
81
|
|
1769
|
-
],
|
|
1770
|
-
inclusive: false
|
|
1771
|
-
},
|
|
1772
|
-
md_string: {
|
|
1773
|
-
rules: [
|
|
1774
|
-
10,
|
|
1775
|
-
11,
|
|
1776
|
-
79,
|
|
1777
|
-
80
|
|
1778
|
-
],
|
|
1779
|
-
inclusive: false
|
|
1780
|
-
},
|
|
1781
|
-
space: {
|
|
1782
|
-
rules: [],
|
|
1783
|
-
inclusive: false
|
|
1784
|
-
},
|
|
1785
|
-
string: {
|
|
1786
|
-
rules: [
|
|
1787
|
-
13,
|
|
1788
|
-
14,
|
|
1789
|
-
83,
|
|
1790
|
-
84
|
|
1791
|
-
],
|
|
1792
|
-
inclusive: false
|
|
1793
|
-
},
|
|
1794
|
-
acc_descr_multiline: {
|
|
1795
|
-
rules: [
|
|
1796
|
-
35,
|
|
1797
|
-
36
|
|
1798
|
-
],
|
|
1799
|
-
inclusive: false
|
|
1800
|
-
},
|
|
1801
|
-
acc_descr: {
|
|
1802
|
-
rules: [
|
|
1803
|
-
33
|
|
1804
|
-
],
|
|
1805
|
-
inclusive: false
|
|
1806
|
-
},
|
|
1807
|
-
acc_title: {
|
|
1808
|
-
rules: [
|
|
1809
|
-
31
|
|
1810
|
-
],
|
|
1811
|
-
inclusive: false
|
|
1812
|
-
},
|
|
1813
|
-
INITIAL: {
|
|
1814
|
-
rules: [
|
|
1815
|
-
0,
|
|
1816
|
-
1,
|
|
1817
|
-
2,
|
|
1818
|
-
3,
|
|
1819
|
-
4,
|
|
1820
|
-
5,
|
|
1821
|
-
6,
|
|
1822
|
-
7,
|
|
1823
|
-
8,
|
|
1824
|
-
9,
|
|
1825
|
-
12,
|
|
1826
|
-
15,
|
|
1827
|
-
16,
|
|
1828
|
-
17,
|
|
1829
|
-
18,
|
|
1830
|
-
19,
|
|
1831
|
-
20,
|
|
1832
|
-
24,
|
|
1833
|
-
27,
|
|
1834
|
-
30,
|
|
1835
|
-
32,
|
|
1836
|
-
34,
|
|
1837
|
-
37,
|
|
1838
|
-
55,
|
|
1839
|
-
56,
|
|
1840
|
-
57,
|
|
1841
|
-
58,
|
|
1842
|
-
59,
|
|
1843
|
-
60,
|
|
1844
|
-
61,
|
|
1845
|
-
62,
|
|
1846
|
-
63,
|
|
1847
|
-
64,
|
|
1848
|
-
65,
|
|
1849
|
-
66,
|
|
1850
|
-
67,
|
|
1851
|
-
68,
|
|
1852
|
-
69,
|
|
1853
|
-
70,
|
|
1854
|
-
71,
|
|
1855
|
-
72,
|
|
1856
|
-
73,
|
|
1857
|
-
74,
|
|
1858
|
-
75,
|
|
1859
|
-
76,
|
|
1860
|
-
93,
|
|
1861
|
-
94,
|
|
1862
|
-
95,
|
|
1863
|
-
96,
|
|
1864
|
-
97,
|
|
1865
|
-
98,
|
|
1866
|
-
99,
|
|
1867
|
-
105
|
|
1868
|
-
],
|
|
1869
|
-
inclusive: true
|
|
1870
|
-
}
|
|
1871
|
-
}
|
|
1872
|
-
};
|
|
1873
|
-
return D;
|
|
1874
|
-
}();
|
|
1875
|
-
E.lexer = v;
|
|
1876
|
-
function N() {
|
|
1877
|
-
this.yy = {};
|
|
1878
|
-
}
|
|
1879
|
-
return N.prototype = E, E.Parser = N, new N();
|
|
1880
|
-
}();
|
|
1881
|
-
ee.parser = ee;
|
|
1882
|
-
var Pe = ee;
|
|
1883
|
-
var T = {}, ie = [], V = {};
|
|
1884
|
-
var oe = "color", ce = "fill", Fe = "bgFill", pe = ",", Ke = index.Vn();
|
|
1885
|
-
var j = {};
|
|
1886
|
-
var Me = function(e) {
|
|
1887
|
-
return index.$n.sanitizeText(e, Ke);
|
|
1888
|
-
}, Ye = function Ye(e) {
|
|
1889
|
-
var c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
1890
|
-
j[e] === void 0 && (j[e] = {
|
|
1891
|
-
id: e,
|
|
1892
|
-
styles: [],
|
|
1893
|
-
textStyles: []
|
|
1894
|
-
});
|
|
1895
|
-
var u = j[e];
|
|
1896
|
-
c != null && c.split(pe).forEach(function(a) {
|
|
1897
|
-
var i = a.replace(/([^;]*);/, "$1").trim();
|
|
1898
|
-
if (a.match(oe)) {
|
|
1899
|
-
var o = i.replace(ce, Fe).replace(oe, ce);
|
|
1900
|
-
u.textStyles.push(o);
|
|
1901
|
-
}
|
|
1902
|
-
u.styles.push(i);
|
|
1903
|
-
});
|
|
1904
|
-
}, We = function We(e) {
|
|
1905
|
-
var c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
1906
|
-
var u = T[e];
|
|
1907
|
-
c != null && (u.styles = c.split(pe));
|
|
1908
|
-
}, Ve = function Ve(e, c) {
|
|
1909
|
-
e.split(",").forEach(function(u) {
|
|
1910
|
-
var a = T[u];
|
|
1911
|
-
if (a === void 0) {
|
|
1912
|
-
var i = u.trim();
|
|
1913
|
-
T[i] = {
|
|
1914
|
-
id: i,
|
|
1915
|
-
type: "na",
|
|
1916
|
-
children: []
|
|
1917
|
-
}, a = T[i];
|
|
1918
|
-
}
|
|
1919
|
-
a.classes || (a.classes = []), a.classes.push(c);
|
|
1920
|
-
});
|
|
1921
|
-
}, fe = function(e, c) {
|
|
1922
|
-
var u = e.flat(), a = [];
|
|
1923
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1924
|
-
try {
|
|
1925
|
-
for(var _iterator = u[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
1926
|
-
var i = _step.value;
|
|
1927
|
-
if (i.label && (i.label = Me(i.label)), i.type === "classDef") {
|
|
1928
|
-
Ye(i.id, i.css);
|
|
1929
|
-
continue;
|
|
1930
|
-
}
|
|
1931
|
-
if (i.type === "applyClass") {
|
|
1932
|
-
Ve(i.id, (i == null ? void 0 : i.styleClass) || "");
|
|
1933
|
-
continue;
|
|
1934
|
-
}
|
|
1935
|
-
if (i.type === "applyStyles") {
|
|
1936
|
-
i != null && i.stylesStr && We(i.id, i == null ? void 0 : i.stylesStr);
|
|
1937
|
-
continue;
|
|
1938
|
-
}
|
|
1939
|
-
if (i.type === "column-setting") c.columns = i.columns || -1;
|
|
1940
|
-
else if (i.type === "edge") V[i.id] ? V[i.id]++ : V[i.id] = 1, i.id = V[i.id] + "-" + i.id, ie.push(i);
|
|
1941
|
-
else {
|
|
1942
|
-
i.label || (i.type === "composite" ? i.label = "" : i.label = i.id);
|
|
1943
|
-
var g = !T[i.id];
|
|
1944
|
-
if (g ? T[i.id] = i : (i.type !== "na" && (T[i.id].type = i.type), i.label !== i.id && (T[i.id].label = i.label)), i.children && fe(i.children, i), i.type === "space") {
|
|
1945
|
-
var o = i.width || 1;
|
|
1946
|
-
for(var p = 0; p < o; p++){
|
|
1947
|
-
var f = cloneAfc2f047.a(i);
|
|
1948
|
-
f.id = f.id + "-" + p, T[f.id] = f, a.push(f);
|
|
1949
|
-
}
|
|
1950
|
-
} else g && a.push(i);
|
|
1951
|
-
}
|
|
1952
|
-
}
|
|
1953
|
-
} catch (err) {
|
|
1954
|
-
_didIteratorError = true;
|
|
1955
|
-
_iteratorError = err;
|
|
1956
|
-
} finally{
|
|
1957
|
-
try {
|
|
1958
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
1959
|
-
_iterator.return();
|
|
1960
|
-
}
|
|
1961
|
-
} finally{
|
|
1962
|
-
if (_didIteratorError) {
|
|
1963
|
-
throw _iteratorError;
|
|
1964
|
-
}
|
|
1965
|
-
}
|
|
1966
|
-
}
|
|
1967
|
-
c.children = a;
|
|
1968
|
-
};
|
|
1969
|
-
var re = [], U = {
|
|
1970
|
-
id: "root",
|
|
1971
|
-
type: "composite",
|
|
1972
|
-
children: [],
|
|
1973
|
-
columns: -1
|
|
1974
|
-
};
|
|
1975
|
-
var je = function() {
|
|
1976
|
-
index.L.debug("Clear called"), index.B_(), U = {
|
|
1977
|
-
id: "root",
|
|
1978
|
-
type: "composite",
|
|
1979
|
-
children: [],
|
|
1980
|
-
columns: -1
|
|
1981
|
-
}, T = {
|
|
1982
|
-
root: U
|
|
1983
|
-
}, re = [], j = {}, ie = [], V = {};
|
|
1984
|
-
};
|
|
1985
|
-
function Ue(e) {
|
|
1986
|
-
switch(index.L.debug("typeStr2Type", e), e){
|
|
1987
|
-
case "[]":
|
|
1988
|
-
return "square";
|
|
1989
|
-
case "()":
|
|
1990
|
-
return index.L.debug("we have a round"), "round";
|
|
1991
|
-
case "(())":
|
|
1992
|
-
return "circle";
|
|
1993
|
-
case ">]":
|
|
1994
|
-
return "rect_left_inv_arrow";
|
|
1995
|
-
case "{}":
|
|
1996
|
-
return "diamond";
|
|
1997
|
-
case "{{}}":
|
|
1998
|
-
return "hexagon";
|
|
1999
|
-
case "([])":
|
|
2000
|
-
return "stadium";
|
|
2001
|
-
case "[[]]":
|
|
2002
|
-
return "subroutine";
|
|
2003
|
-
case "[()]":
|
|
2004
|
-
return "cylinder";
|
|
2005
|
-
case "((()))":
|
|
2006
|
-
return "doublecircle";
|
|
2007
|
-
case "[//]":
|
|
2008
|
-
return "lean_right";
|
|
2009
|
-
case "[\\\\]":
|
|
2010
|
-
return "lean_left";
|
|
2011
|
-
case "[/\\]":
|
|
2012
|
-
return "trapezoid";
|
|
2013
|
-
case "[\\/]":
|
|
2014
|
-
return "inv_trapezoid";
|
|
2015
|
-
case "<[]>":
|
|
2016
|
-
return "block_arrow";
|
|
2017
|
-
default:
|
|
2018
|
-
return "na";
|
|
2019
|
-
}
|
|
2020
|
-
}
|
|
2021
|
-
function Xe(e) {
|
|
2022
|
-
switch(index.L.debug("typeStr2Type", e), e){
|
|
2023
|
-
case "==":
|
|
2024
|
-
return "thick";
|
|
2025
|
-
default:
|
|
2026
|
-
return "normal";
|
|
2027
|
-
}
|
|
2028
|
-
}
|
|
2029
|
-
function Ge(e) {
|
|
2030
|
-
switch(e.trim()){
|
|
2031
|
-
case "--x":
|
|
2032
|
-
return "arrow_cross";
|
|
2033
|
-
case "--o":
|
|
2034
|
-
return "arrow_circle";
|
|
2035
|
-
default:
|
|
2036
|
-
return "arrow_point";
|
|
2037
|
-
}
|
|
2038
|
-
}
|
|
2039
|
-
var le = 0;
|
|
2040
|
-
var He = function() {
|
|
2041
|
-
return le++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + le;
|
|
2042
|
-
}, qe = function(e) {
|
|
2043
|
-
U.children = e, fe(e, U), re = U.children;
|
|
2044
|
-
}, Ze = function(e) {
|
|
2045
|
-
var c = T[e];
|
|
2046
|
-
return c ? c.columns ? c.columns : c.children ? c.children.length : -1 : -1;
|
|
2047
|
-
}, Je = function() {
|
|
2048
|
-
return _to_consumable_array(Object.values(T));
|
|
2049
|
-
}, Qe = function() {
|
|
2050
|
-
return re || [];
|
|
2051
|
-
}, $e = function() {
|
|
2052
|
-
return ie;
|
|
2053
|
-
}, et = function(e) {
|
|
2054
|
-
return T[e];
|
|
2055
|
-
}, tt = function(e) {
|
|
2056
|
-
T[e.id] = e;
|
|
2057
|
-
}, st = function() {
|
|
2058
|
-
return console;
|
|
2059
|
-
}, it = function it() {
|
|
2060
|
-
return j;
|
|
2061
|
-
}, rt = {
|
|
2062
|
-
getConfig: function() {
|
|
2063
|
-
return index.$t().block;
|
|
2064
|
-
},
|
|
2065
|
-
typeStr2Type: Ue,
|
|
2066
|
-
edgeTypeStr2Type: Xe,
|
|
2067
|
-
edgeStrToEdgeData: Ge,
|
|
2068
|
-
getLogger: st,
|
|
2069
|
-
getBlocksFlat: Je,
|
|
2070
|
-
getBlocks: Qe,
|
|
2071
|
-
getEdges: $e,
|
|
2072
|
-
setHierarchy: qe,
|
|
2073
|
-
getBlock: et,
|
|
2074
|
-
setBlock: tt,
|
|
2075
|
-
getColumns: Ze,
|
|
2076
|
-
getClasses: it,
|
|
2077
|
-
clear: je,
|
|
2078
|
-
generateId: He
|
|
2079
|
-
}, nt = rt, q = function(e, c) {
|
|
2080
|
-
var u = channelEbbc4130.e, a = u(e, "r"), i = u(e, "g"), g = u(e, "b");
|
|
2081
|
-
return index.Je(a, i, g, c);
|
|
2082
|
-
}, at = function(e) {
|
|
2083
|
-
return ".label {\n font-family: ".concat(e.fontFamily, ";\n color: ").concat(e.nodeTextColor || e.textColor, ";\n }\n .cluster-label text {\n fill: ").concat(e.titleColor, ";\n }\n .cluster-label span,p {\n color: ").concat(e.titleColor, ";\n }\n\n\n\n .label text,span,p {\n fill: ").concat(e.nodeTextColor || e.textColor, ";\n color: ").concat(e.nodeTextColor || e.textColor, ";\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ").concat(e.mainBkg, ";\n stroke: ").concat(e.nodeBorder, ";\n stroke-width: 1px;\n }\n .flowchart-label text {\n text-anchor: middle;\n }\n // .flowchart-label .text-outer-tspan {\n // text-anchor: middle;\n // }\n // .flowchart-label .text-inner-tspan {\n // text-anchor: start;\n // }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ").concat(e.arrowheadColor, ";\n }\n\n .edgePath .path {\n stroke: ").concat(e.lineColor, ";\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ").concat(e.lineColor, ";\n fill: none;\n }\n\n .edgeLabel {\n background-color: ").concat(e.edgeLabelBackground, ";\n rect {\n opacity: 0.5;\n background-color: ").concat(e.edgeLabelBackground, ";\n fill: ").concat(e.edgeLabelBackground, ";\n }\n text-align: center;\n }\n\n /* For html labels only */\n .labelBkg {\n background-color: ").concat(q(e.edgeLabelBackground, 0.5), ";\n // background-color:\n }\n\n .node .cluster {\n // fill: ").concat(q(e.mainBkg, 0.5), ";\n fill: ").concat(q(e.clusterBkg, 0.5), ";\n stroke: ").concat(q(e.clusterBorder, 0.2), ";\n box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ").concat(e.titleColor, ";\n }\n\n .cluster span,p {\n color: ").concat(e.titleColor, ";\n }\n /* .cluster div {\n color: ").concat(e.titleColor, ";\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ").concat(e.fontFamily, ";\n font-size: 12px;\n background: ").concat(e.tertiaryColor, ";\n border: 1px solid ").concat(e.border2, ";\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ").concat(e.textColor, ";\n }\n");
|
|
2084
|
-
}, ot = at;
|
|
2085
|
-
function Se(e, c) {
|
|
2086
|
-
var u = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
|
|
2087
|
-
var z, I, w;
|
|
2088
|
-
var a = e;
|
|
2089
|
-
var i = "default";
|
|
2090
|
-
(((z = a == null ? void 0 : a.classes) == null ? void 0 : z.length) || 0) > 0 && (i = ((a == null ? void 0 : a.classes) || []).join(" ")), i = i + " flowchart-label";
|
|
2091
|
-
var g = 0, o = "", p;
|
|
2092
|
-
switch(a.type){
|
|
2093
|
-
case "round":
|
|
2094
|
-
g = 5, o = "rect";
|
|
2095
|
-
break;
|
|
2096
|
-
case "composite":
|
|
2097
|
-
g = 0, o = "composite", p = 0;
|
|
2098
|
-
break;
|
|
2099
|
-
case "square":
|
|
2100
|
-
o = "rect";
|
|
2101
|
-
break;
|
|
2102
|
-
case "diamond":
|
|
2103
|
-
o = "question";
|
|
2104
|
-
break;
|
|
2105
|
-
case "hexagon":
|
|
2106
|
-
o = "hexagon";
|
|
2107
|
-
break;
|
|
2108
|
-
case "block_arrow":
|
|
2109
|
-
o = "block_arrow";
|
|
2110
|
-
break;
|
|
2111
|
-
case "odd":
|
|
2112
|
-
o = "rect_left_inv_arrow";
|
|
2113
|
-
break;
|
|
2114
|
-
case "lean_right":
|
|
2115
|
-
o = "lean_right";
|
|
2116
|
-
break;
|
|
2117
|
-
case "lean_left":
|
|
2118
|
-
o = "lean_left";
|
|
2119
|
-
break;
|
|
2120
|
-
case "trapezoid":
|
|
2121
|
-
o = "trapezoid";
|
|
2122
|
-
break;
|
|
2123
|
-
case "inv_trapezoid":
|
|
2124
|
-
o = "inv_trapezoid";
|
|
2125
|
-
break;
|
|
2126
|
-
case "rect_left_inv_arrow":
|
|
2127
|
-
o = "rect_left_inv_arrow";
|
|
2128
|
-
break;
|
|
2129
|
-
case "circle":
|
|
2130
|
-
o = "circle";
|
|
2131
|
-
break;
|
|
2132
|
-
case "ellipse":
|
|
2133
|
-
o = "ellipse";
|
|
2134
|
-
break;
|
|
2135
|
-
case "stadium":
|
|
2136
|
-
o = "stadium";
|
|
2137
|
-
break;
|
|
2138
|
-
case "subroutine":
|
|
2139
|
-
o = "subroutine";
|
|
2140
|
-
break;
|
|
2141
|
-
case "cylinder":
|
|
2142
|
-
o = "cylinder";
|
|
2143
|
-
break;
|
|
2144
|
-
case "group":
|
|
2145
|
-
o = "rect";
|
|
2146
|
-
break;
|
|
2147
|
-
case "doublecircle":
|
|
2148
|
-
o = "doublecircle";
|
|
2149
|
-
break;
|
|
2150
|
-
default:
|
|
2151
|
-
o = "rect";
|
|
2152
|
-
}
|
|
2153
|
-
var f = index.B0((a == null ? void 0 : a.styles) || []), m = a.label, S = a.size || {
|
|
2154
|
-
width: 0,
|
|
2155
|
-
height: 0,
|
|
2156
|
-
x: 0,
|
|
2157
|
-
y: 0
|
|
2158
|
-
};
|
|
2159
|
-
return {
|
|
2160
|
-
labelStyle: f.labelStyle,
|
|
2161
|
-
shape: o,
|
|
2162
|
-
labelText: m,
|
|
2163
|
-
rx: g,
|
|
2164
|
-
ry: g,
|
|
2165
|
-
class: i,
|
|
2166
|
-
style: f.style,
|
|
2167
|
-
id: a.id,
|
|
2168
|
-
directions: a.directions,
|
|
2169
|
-
width: S.width,
|
|
2170
|
-
height: S.height,
|
|
2171
|
-
x: S.x,
|
|
2172
|
-
y: S.y,
|
|
2173
|
-
positioned: u,
|
|
2174
|
-
intersect: void 0,
|
|
2175
|
-
type: a.type,
|
|
2176
|
-
padding: p !== null && p !== void 0 ? p : ((w = (I = index.$t()) == null ? void 0 : I.block) == null ? void 0 : w.padding) || 0
|
|
2177
|
-
};
|
|
2178
|
-
}
|
|
2179
|
-
function ct(e, c, u) {
|
|
2180
|
-
return _ct.apply(this, arguments);
|
|
2181
|
-
}
|
|
2182
|
-
function _ct() {
|
|
2183
|
-
_ct = _async_to_generator(function(e, c, u) {
|
|
2184
|
-
var a, i, g, o;
|
|
2185
|
-
return _ts_generator(this, function(_state) {
|
|
2186
|
-
switch(_state.label){
|
|
2187
|
-
case 0:
|
|
2188
|
-
a = Se(c, u, false);
|
|
2189
|
-
if (a.type === "group") return [
|
|
2190
|
-
2
|
|
2191
|
-
];
|
|
2192
|
-
return [
|
|
2193
|
-
4,
|
|
2194
|
-
edges16357fde.or(e, a)
|
|
2195
|
-
];
|
|
2196
|
-
case 1:
|
|
2197
|
-
i = _state.sent(), g = i.node().getBBox(), o = u.getBlock(a.id);
|
|
2198
|
-
o.size = {
|
|
2199
|
-
width: g.width,
|
|
2200
|
-
height: g.height,
|
|
2201
|
-
x: 0,
|
|
2202
|
-
y: 0,
|
|
2203
|
-
node: i
|
|
2204
|
-
}, u.setBlock(o), i.remove();
|
|
2205
|
-
return [
|
|
2206
|
-
2
|
|
2207
|
-
];
|
|
2208
|
-
}
|
|
2209
|
-
});
|
|
2210
|
-
});
|
|
2211
|
-
return _ct.apply(this, arguments);
|
|
2212
|
-
}
|
|
2213
|
-
function lt(e, c, u) {
|
|
2214
|
-
return _lt.apply(this, arguments);
|
|
2215
|
-
}
|
|
2216
|
-
function _lt() {
|
|
2217
|
-
_lt = _async_to_generator(function(e, c, u) {
|
|
2218
|
-
var a, _tmp;
|
|
2219
|
-
return _ts_generator(this, function(_state) {
|
|
2220
|
-
switch(_state.label){
|
|
2221
|
-
case 0:
|
|
2222
|
-
a = Se(c, u, true);
|
|
2223
|
-
_tmp = u.getBlock(a.id).type !== "space";
|
|
2224
|
-
if (!_tmp) return [
|
|
2225
|
-
3,
|
|
2226
|
-
2
|
|
2227
|
-
];
|
|
2228
|
-
return [
|
|
2229
|
-
4,
|
|
2230
|
-
edges16357fde.or(e, a)
|
|
2231
|
-
];
|
|
2232
|
-
case 1:
|
|
2233
|
-
_tmp = (_state.sent(), c.intersect = a == null ? void 0 : a.intersect, edges16357fde.pr(a));
|
|
2234
|
-
_state.label = 2;
|
|
2235
|
-
case 2:
|
|
2236
|
-
return [
|
|
2237
|
-
2
|
|
2238
|
-
];
|
|
2239
|
-
}
|
|
2240
|
-
});
|
|
2241
|
-
});
|
|
2242
|
-
return _lt.apply(this, arguments);
|
|
2243
|
-
}
|
|
2244
|
-
function ne(e, c, u, a) {
|
|
2245
|
-
return _ne.apply(this, arguments);
|
|
2246
|
-
}
|
|
2247
|
-
function _ne() {
|
|
2248
|
-
_ne = _async_to_generator(function(e, c, u, a) {
|
|
2249
|
-
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, i, _tmp, err;
|
|
2250
|
-
return _ts_generator(this, function(_state) {
|
|
2251
|
-
switch(_state.label){
|
|
2252
|
-
case 0:
|
|
2253
|
-
_iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
2254
|
-
_state.label = 1;
|
|
2255
|
-
case 1:
|
|
2256
|
-
_state.trys.push([
|
|
2257
|
-
1,
|
|
2258
|
-
8,
|
|
2259
|
-
9,
|
|
2260
|
-
10
|
|
2261
|
-
]);
|
|
2262
|
-
_iterator = c[Symbol.iterator]();
|
|
2263
|
-
_state.label = 2;
|
|
2264
|
-
case 2:
|
|
2265
|
-
if (!!(_iteratorNormalCompletion = (_step = _iterator.next()).done)) return [
|
|
2266
|
-
3,
|
|
2267
|
-
7
|
|
2268
|
-
];
|
|
2269
|
-
i = _step.value;
|
|
2270
|
-
return [
|
|
2271
|
-
4,
|
|
2272
|
-
a(e, i, u)
|
|
2273
|
-
];
|
|
2274
|
-
case 3:
|
|
2275
|
-
_state.sent();
|
|
2276
|
-
_tmp = i.children;
|
|
2277
|
-
if (!_tmp) return [
|
|
2278
|
-
3,
|
|
2279
|
-
5
|
|
2280
|
-
];
|
|
2281
|
-
return [
|
|
2282
|
-
4,
|
|
2283
|
-
ne(e, i.children, u, a)
|
|
2284
|
-
];
|
|
2285
|
-
case 4:
|
|
2286
|
-
_tmp = _state.sent();
|
|
2287
|
-
_state.label = 5;
|
|
2288
|
-
case 5:
|
|
2289
|
-
_state.label = 6;
|
|
2290
|
-
case 6:
|
|
2291
|
-
_iteratorNormalCompletion = true;
|
|
2292
|
-
return [
|
|
2293
|
-
3,
|
|
2294
|
-
2
|
|
2295
|
-
];
|
|
2296
|
-
case 7:
|
|
2297
|
-
return [
|
|
2298
|
-
3,
|
|
2299
|
-
10
|
|
2300
|
-
];
|
|
2301
|
-
case 8:
|
|
2302
|
-
err = _state.sent();
|
|
2303
|
-
_didIteratorError = true;
|
|
2304
|
-
_iteratorError = err;
|
|
2305
|
-
return [
|
|
2306
|
-
3,
|
|
2307
|
-
10
|
|
2308
|
-
];
|
|
2309
|
-
case 9:
|
|
2310
|
-
try {
|
|
2311
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
2312
|
-
_iterator.return();
|
|
2313
|
-
}
|
|
2314
|
-
} finally{
|
|
2315
|
-
if (_didIteratorError) {
|
|
2316
|
-
throw _iteratorError;
|
|
2317
|
-
}
|
|
2318
|
-
}
|
|
2319
|
-
return [
|
|
2320
|
-
7
|
|
2321
|
-
];
|
|
2322
|
-
case 10:
|
|
2323
|
-
return [
|
|
2324
|
-
2
|
|
2325
|
-
];
|
|
2326
|
-
}
|
|
2327
|
-
});
|
|
2328
|
-
});
|
|
2329
|
-
return _ne.apply(this, arguments);
|
|
2330
|
-
}
|
|
2331
|
-
function ht(e, c, u) {
|
|
2332
|
-
return _ht.apply(this, arguments);
|
|
2333
|
-
}
|
|
2334
|
-
function _ht() {
|
|
2335
|
-
_ht = _async_to_generator(function(e, c, u) {
|
|
2336
|
-
return _ts_generator(this, function(_state) {
|
|
2337
|
-
switch(_state.label){
|
|
2338
|
-
case 0:
|
|
2339
|
-
return [
|
|
2340
|
-
4,
|
|
2341
|
-
ne(e, c, u, ct)
|
|
2342
|
-
];
|
|
2343
|
-
case 1:
|
|
2344
|
-
_state.sent();
|
|
2345
|
-
return [
|
|
2346
|
-
2
|
|
2347
|
-
];
|
|
2348
|
-
}
|
|
2349
|
-
});
|
|
2350
|
-
});
|
|
2351
|
-
return _ht.apply(this, arguments);
|
|
2352
|
-
}
|
|
2353
|
-
function ut(e, c, u) {
|
|
2354
|
-
return _ut.apply(this, arguments);
|
|
2355
|
-
}
|
|
2356
|
-
function _ut() {
|
|
2357
|
-
_ut = _async_to_generator(function(e, c, u) {
|
|
2358
|
-
return _ts_generator(this, function(_state) {
|
|
2359
|
-
switch(_state.label){
|
|
2360
|
-
case 0:
|
|
2361
|
-
return [
|
|
2362
|
-
4,
|
|
2363
|
-
ne(e, c, u, lt)
|
|
2364
|
-
];
|
|
2365
|
-
case 1:
|
|
2366
|
-
_state.sent();
|
|
2367
|
-
return [
|
|
2368
|
-
2
|
|
2369
|
-
];
|
|
2370
|
-
}
|
|
2371
|
-
});
|
|
2372
|
-
});
|
|
2373
|
-
return _ut.apply(this, arguments);
|
|
2374
|
-
}
|
|
2375
|
-
function gt(e, c, u, a, i) {
|
|
2376
|
-
return _gt.apply(this, arguments);
|
|
2377
|
-
}
|
|
2378
|
-
function _gt() {
|
|
2379
|
-
_gt = _async_to_generator(function(e, c, u, a, i) {
|
|
2380
|
-
var g, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, o, _iteratorNormalCompletion1, _didIteratorError1, _iteratorError1, _iterator1, _step1, o1, p, f, m, S, y, _tmp, err;
|
|
2381
|
-
return _ts_generator(this, function(_state) {
|
|
2382
|
-
switch(_state.label){
|
|
2383
|
-
case 0:
|
|
2384
|
-
g = new graph0ee63739.Ze({
|
|
2385
|
-
multigraph: true,
|
|
2386
|
-
compound: true
|
|
2387
|
-
});
|
|
2388
|
-
g.setGraph({
|
|
2389
|
-
rankdir: "TB",
|
|
2390
|
-
nodesep: 10,
|
|
2391
|
-
ranksep: 10,
|
|
2392
|
-
marginx: 8,
|
|
2393
|
-
marginy: 8
|
|
2394
|
-
});
|
|
2395
|
-
_iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
2396
|
-
try {
|
|
2397
|
-
for(_iterator = u[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
2398
|
-
o = _step.value;
|
|
2399
|
-
o.size && g.setNode(o.id, {
|
|
2400
|
-
width: o.size.width,
|
|
2401
|
-
height: o.size.height,
|
|
2402
|
-
intersect: o.intersect
|
|
2403
|
-
});
|
|
2404
|
-
}
|
|
2405
|
-
} catch (err) {
|
|
2406
|
-
_didIteratorError = true;
|
|
2407
|
-
_iteratorError = err;
|
|
2408
|
-
} finally{
|
|
2409
|
-
try {
|
|
2410
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
2411
|
-
_iterator.return();
|
|
2412
|
-
}
|
|
2413
|
-
} finally{
|
|
2414
|
-
if (_didIteratorError) {
|
|
2415
|
-
throw _iteratorError;
|
|
2416
|
-
}
|
|
2417
|
-
}
|
|
2418
|
-
}
|
|
2419
|
-
_iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
|
|
2420
|
-
_state.label = 1;
|
|
2421
|
-
case 1:
|
|
2422
|
-
_state.trys.push([
|
|
2423
|
-
1,
|
|
2424
|
-
9,
|
|
2425
|
-
10,
|
|
2426
|
-
11
|
|
2427
|
-
]);
|
|
2428
|
-
_iterator1 = c[Symbol.iterator]();
|
|
2429
|
-
_state.label = 2;
|
|
2430
|
-
case 2:
|
|
2431
|
-
if (!!(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done)) return [
|
|
2432
|
-
3,
|
|
2433
|
-
8
|
|
2434
|
-
];
|
|
2435
|
-
o1 = _step1.value;
|
|
2436
|
-
if (!(o1.start && o1.end)) return [
|
|
2437
|
-
3,
|
|
2438
|
-
7
|
|
2439
|
-
];
|
|
2440
|
-
p = a.getBlock(o1.start), f = a.getBlock(o1.end);
|
|
2441
|
-
if (!(p != null && p.size && f != null && f.size)) return [
|
|
2442
|
-
3,
|
|
2443
|
-
7
|
|
2444
|
-
];
|
|
2445
|
-
m = p.size, S = f.size, y = [
|
|
2446
|
-
{
|
|
2447
|
-
x: m.x,
|
|
2448
|
-
y: m.y
|
|
2449
|
-
},
|
|
2450
|
-
{
|
|
2451
|
-
x: m.x + (S.x - m.x) / 2,
|
|
2452
|
-
y: m.y + (S.y - m.y) / 2
|
|
2453
|
-
},
|
|
2454
|
-
{
|
|
2455
|
-
x: S.x,
|
|
2456
|
-
y: S.y
|
|
2457
|
-
}
|
|
2458
|
-
];
|
|
2459
|
-
return [
|
|
2460
|
-
4,
|
|
2461
|
-
edges16357fde.ur(e, {
|
|
2462
|
-
v: o1.start,
|
|
2463
|
-
w: o1.end,
|
|
2464
|
-
name: o1.id
|
|
2465
|
-
}, _object_spread_props(_object_spread({}, o1), {
|
|
2466
|
-
arrowTypeEnd: o1.arrowTypeEnd,
|
|
2467
|
-
arrowTypeStart: o1.arrowTypeStart,
|
|
2468
|
-
points: y,
|
|
2469
|
-
classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
|
|
2470
|
-
}), void 0, "block", g, i)
|
|
2471
|
-
];
|
|
2472
|
-
case 3:
|
|
2473
|
-
_state.sent();
|
|
2474
|
-
_tmp = o1.label;
|
|
2475
|
-
if (!_tmp) return [
|
|
2476
|
-
3,
|
|
2477
|
-
6
|
|
2478
|
-
];
|
|
2479
|
-
return [
|
|
2480
|
-
4,
|
|
2481
|
-
edges16357fde.xr(e, _object_spread_props(_object_spread({}, o1), {
|
|
2482
|
-
label: o1.label,
|
|
2483
|
-
labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
|
|
2484
|
-
arrowTypeEnd: o1.arrowTypeEnd,
|
|
2485
|
-
arrowTypeStart: o1.arrowTypeStart,
|
|
2486
|
-
points: y,
|
|
2487
|
-
classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
|
|
2488
|
-
}))
|
|
2489
|
-
];
|
|
2490
|
-
case 4:
|
|
2491
|
-
_state.sent();
|
|
2492
|
-
return [
|
|
2493
|
-
4,
|
|
2494
|
-
edges16357fde.gr(_object_spread_props(_object_spread({}, o1), {
|
|
2495
|
-
x: y[1].x,
|
|
2496
|
-
y: y[1].y
|
|
2497
|
-
}), {
|
|
2498
|
-
originalPath: y
|
|
2499
|
-
})
|
|
2500
|
-
];
|
|
2501
|
-
case 5:
|
|
2502
|
-
_tmp = _state.sent();
|
|
2503
|
-
_state.label = 6;
|
|
2504
|
-
case 6:
|
|
2505
|
-
_state.label = 7;
|
|
2506
|
-
case 7:
|
|
2507
|
-
_iteratorNormalCompletion1 = true;
|
|
2508
|
-
return [
|
|
2509
|
-
3,
|
|
2510
|
-
2
|
|
2511
|
-
];
|
|
2512
|
-
case 8:
|
|
2513
|
-
return [
|
|
2514
|
-
3,
|
|
2515
|
-
11
|
|
2516
|
-
];
|
|
2517
|
-
case 9:
|
|
2518
|
-
err = _state.sent();
|
|
2519
|
-
_didIteratorError1 = true;
|
|
2520
|
-
_iteratorError1 = err;
|
|
2521
|
-
return [
|
|
2522
|
-
3,
|
|
2523
|
-
11
|
|
2524
|
-
];
|
|
2525
|
-
case 10:
|
|
2526
|
-
try {
|
|
2527
|
-
if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
|
|
2528
|
-
_iterator1.return();
|
|
2529
|
-
}
|
|
2530
|
-
} finally{
|
|
2531
|
-
if (_didIteratorError1) {
|
|
2532
|
-
throw _iteratorError1;
|
|
2533
|
-
}
|
|
2534
|
-
}
|
|
2535
|
-
return [
|
|
2536
|
-
7
|
|
2537
|
-
];
|
|
2538
|
-
case 11:
|
|
2539
|
-
return [
|
|
2540
|
-
2
|
|
2541
|
-
];
|
|
2542
|
-
}
|
|
2543
|
-
});
|
|
2544
|
-
});
|
|
2545
|
-
return _gt.apply(this, arguments);
|
|
2546
|
-
}
|
|
2547
|
-
var he, ue;
|
|
2548
|
-
var b = ((ue = (he = index.Vn()) == null ? void 0 : he.block) == null ? void 0 : ue.padding) || 8;
|
|
2549
|
-
function dt(e, c) {
|
|
2550
|
-
if (e === 0 || !Number.isInteger(e)) throw new Error("Columns must be an integer !== 0.");
|
|
2551
|
-
if (c < 0 || !Number.isInteger(c)) throw new Error("Position must be a non-negative integer." + c);
|
|
2552
|
-
if (e < 0) return {
|
|
2553
|
-
px: c,
|
|
2554
|
-
py: 0
|
|
2555
|
-
};
|
|
2556
|
-
if (e === 1) return {
|
|
2557
|
-
px: 0,
|
|
2558
|
-
py: c
|
|
2559
|
-
};
|
|
2560
|
-
var u = c % e, a = Math.floor(c / e);
|
|
2561
|
-
return {
|
|
2562
|
-
px: u,
|
|
2563
|
-
py: a
|
|
2564
|
-
};
|
|
2565
|
-
}
|
|
2566
|
-
var pt = function(e) {
|
|
2567
|
-
var c = 0, u = 0;
|
|
2568
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
2569
|
-
try {
|
|
2570
|
-
for(var _iterator = e.children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
2571
|
-
var a = _step.value;
|
|
2572
|
-
var _ref = a.size || {
|
|
2573
|
-
width: 0,
|
|
2574
|
-
height: 0,
|
|
2575
|
-
x: 0,
|
|
2576
|
-
y: 0
|
|
2577
|
-
}, i = _ref.width, g = _ref.height, o = _ref.x, p = _ref.y;
|
|
2578
|
-
index.L.debug("getMaxChildSize abc95 child:", a.id, "width:", i, "height:", g, "x:", o, "y:", p, a.type), a.type !== "space" && (i > c && (c = i / (e.widthInColumns || 1)), g > u && (u = g));
|
|
2579
|
-
}
|
|
2580
|
-
} catch (err) {
|
|
2581
|
-
_didIteratorError = true;
|
|
2582
|
-
_iteratorError = err;
|
|
2583
|
-
} finally{
|
|
2584
|
-
try {
|
|
2585
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
2586
|
-
_iterator.return();
|
|
2587
|
-
}
|
|
2588
|
-
} finally{
|
|
2589
|
-
if (_didIteratorError) {
|
|
2590
|
-
throw _iteratorError;
|
|
2591
|
-
}
|
|
2592
|
-
}
|
|
2593
|
-
}
|
|
2594
|
-
return {
|
|
2595
|
-
width: c,
|
|
2596
|
-
height: u
|
|
2597
|
-
};
|
|
2598
|
-
};
|
|
2599
|
-
function te(e, c) {
|
|
2600
|
-
var u = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0;
|
|
2601
|
-
var o, p, f, m, S, y, z, I, w, C, E;
|
|
2602
|
-
index.L.debug("setBlockSizes abc95 (start)", e.id, (o = e == null ? void 0 : e.size) == null ? void 0 : o.x, "block width =", e == null ? void 0 : e.size, "sieblingWidth", u), (p = e == null ? void 0 : e.size) != null && p.width || (e.size = {
|
|
2603
|
-
width: u,
|
|
2604
|
-
height: a,
|
|
2605
|
-
x: 0,
|
|
2606
|
-
y: 0
|
|
2607
|
-
});
|
|
2608
|
-
var i = 0, g = 0;
|
|
2609
|
-
if (((f = e.children) == null ? void 0 : f.length) > 0) {
|
|
2610
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
2611
|
-
try {
|
|
2612
|
-
for(var _iterator = e.children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
2613
|
-
var d = _step.value;
|
|
2614
|
-
te(d, c);
|
|
2615
|
-
}
|
|
2616
|
-
} catch (err) {
|
|
2617
|
-
_didIteratorError = true;
|
|
2618
|
-
_iteratorError = err;
|
|
2619
|
-
} finally{
|
|
2620
|
-
try {
|
|
2621
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
2622
|
-
_iterator.return();
|
|
2623
|
-
}
|
|
2624
|
-
} finally{
|
|
2625
|
-
if (_didIteratorError) {
|
|
2626
|
-
throw _iteratorError;
|
|
2627
|
-
}
|
|
2628
|
-
}
|
|
2629
|
-
}
|
|
2630
|
-
var v = pt(e);
|
|
2631
|
-
i = v.width, g = v.height, index.L.debug("setBlockSizes abc95 maxWidth of", e.id, ":s children is ", i, g);
|
|
2632
|
-
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
|
|
2633
|
-
try {
|
|
2634
|
-
for(var _iterator1 = e.children[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
|
|
2635
|
-
var d1 = _step1.value;
|
|
2636
|
-
d1.size && (index.L.debug("abc95 Setting size of children of ".concat(e.id, " id=").concat(d1.id, " ").concat(i, " ").concat(g, " ").concat(d1.size)), d1.size.width = i * (d1.widthInColumns || 1) + b * ((d1.widthInColumns || 1) - 1), d1.size.height = g, d1.size.x = 0, d1.size.y = 0, index.L.debug("abc95 updating size of ".concat(e.id, " children child:").concat(d1.id, " maxWidth:").concat(i, " maxHeight:").concat(g)));
|
|
2637
|
-
}
|
|
2638
|
-
} catch (err) {
|
|
2639
|
-
_didIteratorError1 = true;
|
|
2640
|
-
_iteratorError1 = err;
|
|
2641
|
-
} finally{
|
|
2642
|
-
try {
|
|
2643
|
-
if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
|
|
2644
|
-
_iterator1.return();
|
|
2645
|
-
}
|
|
2646
|
-
} finally{
|
|
2647
|
-
if (_didIteratorError1) {
|
|
2648
|
-
throw _iteratorError1;
|
|
2649
|
-
}
|
|
2650
|
-
}
|
|
2651
|
-
}
|
|
2652
|
-
var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = undefined;
|
|
2653
|
-
try {
|
|
2654
|
-
for(var _iterator2 = e.children[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true){
|
|
2655
|
-
var d2 = _step2.value;
|
|
2656
|
-
te(d2, c, i, g);
|
|
2657
|
-
}
|
|
2658
|
-
} catch (err) {
|
|
2659
|
-
_didIteratorError2 = true;
|
|
2660
|
-
_iteratorError2 = err;
|
|
2661
|
-
} finally{
|
|
2662
|
-
try {
|
|
2663
|
-
if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
|
|
2664
|
-
_iterator2.return();
|
|
2665
|
-
}
|
|
2666
|
-
} finally{
|
|
2667
|
-
if (_didIteratorError2) {
|
|
2668
|
-
throw _iteratorError2;
|
|
2669
|
-
}
|
|
2670
|
-
}
|
|
2671
|
-
}
|
|
2672
|
-
var N = e.columns || -1;
|
|
2673
|
-
var D = 0;
|
|
2674
|
-
var _iteratorNormalCompletion3 = true, _didIteratorError3 = false, _iteratorError3 = undefined;
|
|
2675
|
-
try {
|
|
2676
|
-
for(var _iterator3 = e.children[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true){
|
|
2677
|
-
var d3 = _step3.value;
|
|
2678
|
-
D += d3.widthInColumns || 1;
|
|
2679
|
-
}
|
|
2680
|
-
} catch (err) {
|
|
2681
|
-
_didIteratorError3 = true;
|
|
2682
|
-
_iteratorError3 = err;
|
|
2683
|
-
} finally{
|
|
2684
|
-
try {
|
|
2685
|
-
if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
|
|
2686
|
-
_iterator3.return();
|
|
2687
|
-
}
|
|
2688
|
-
} finally{
|
|
2689
|
-
if (_didIteratorError3) {
|
|
2690
|
-
throw _iteratorError3;
|
|
2691
|
-
}
|
|
2692
|
-
}
|
|
2693
|
-
}
|
|
2694
|
-
var l = e.children.length;
|
|
2695
|
-
N > 0 && N < D && (l = N), e.widthInColumns;
|
|
2696
|
-
var s = Math.ceil(D / l);
|
|
2697
|
-
var r = l * (i + b) + b, h = s * (g + b) + b;
|
|
2698
|
-
if (r < u) {
|
|
2699
|
-
index.L.debug("Detected to small siebling: abc95 ".concat(e.id, " sieblingWidth ").concat(u, " sieblingHeight ").concat(a, " width ").concat(r)), r = u, h = a;
|
|
2700
|
-
var d4 = (u - l * b - b) / l, t = (a - s * b - b) / s;
|
|
2701
|
-
index.L.debug("Size indata abc88", e.id, "childWidth", d4, "maxWidth", i), index.L.debug("Size indata abc88", e.id, "childHeight", t, "maxHeight", g), index.L.debug("Size indata abc88 xSize", l, "padding", b);
|
|
2702
|
-
var _iteratorNormalCompletion4 = true, _didIteratorError4 = false, _iteratorError4 = undefined;
|
|
2703
|
-
try {
|
|
2704
|
-
for(var _iterator4 = e.children[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true){
|
|
2705
|
-
var x = _step4.value;
|
|
2706
|
-
x.size && (x.size.width = d4, x.size.height = t, x.size.x = 0, x.size.y = 0);
|
|
2707
|
-
}
|
|
2708
|
-
} catch (err) {
|
|
2709
|
-
_didIteratorError4 = true;
|
|
2710
|
-
_iteratorError4 = err;
|
|
2711
|
-
} finally{
|
|
2712
|
-
try {
|
|
2713
|
-
if (!_iteratorNormalCompletion4 && _iterator4.return != null) {
|
|
2714
|
-
_iterator4.return();
|
|
2715
|
-
}
|
|
2716
|
-
} finally{
|
|
2717
|
-
if (_didIteratorError4) {
|
|
2718
|
-
throw _iteratorError4;
|
|
2719
|
-
}
|
|
2720
|
-
}
|
|
2721
|
-
}
|
|
2722
|
-
}
|
|
2723
|
-
if (index.L.debug("abc95 (finale calc) ".concat(e.id, " xSize ").concat(l, " ySize ").concat(s, " columns ").concat(N).concat(e.children.length, " width=").concat(Math.max(r, ((m = e.size) == null ? void 0 : m.width) || 0))), r < (((S = e == null ? void 0 : e.size) == null ? void 0 : S.width) || 0)) {
|
|
2724
|
-
r = ((y = e == null ? void 0 : e.size) == null ? void 0 : y.width) || 0;
|
|
2725
|
-
var d5 = N > 0 ? Math.min(e.children.length, N) : e.children.length;
|
|
2726
|
-
if (d5 > 0) {
|
|
2727
|
-
var t1 = (r - d5 * b - b) / d5;
|
|
2728
|
-
index.L.debug("abc95 (growing to fit) width", e.id, r, (z = e.size) == null ? void 0 : z.width, t1);
|
|
2729
|
-
var _iteratorNormalCompletion5 = true, _didIteratorError5 = false, _iteratorError5 = undefined;
|
|
2730
|
-
try {
|
|
2731
|
-
for(var _iterator5 = e.children[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true){
|
|
2732
|
-
var x1 = _step5.value;
|
|
2733
|
-
x1.size && (x1.size.width = t1);
|
|
2734
|
-
}
|
|
2735
|
-
} catch (err) {
|
|
2736
|
-
_didIteratorError5 = true;
|
|
2737
|
-
_iteratorError5 = err;
|
|
2738
|
-
} finally{
|
|
2739
|
-
try {
|
|
2740
|
-
if (!_iteratorNormalCompletion5 && _iterator5.return != null) {
|
|
2741
|
-
_iterator5.return();
|
|
2742
|
-
}
|
|
2743
|
-
} finally{
|
|
2744
|
-
if (_didIteratorError5) {
|
|
2745
|
-
throw _iteratorError5;
|
|
2746
|
-
}
|
|
2747
|
-
}
|
|
2748
|
-
}
|
|
2749
|
-
}
|
|
2750
|
-
}
|
|
2751
|
-
e.size = {
|
|
2752
|
-
width: r,
|
|
2753
|
-
height: h,
|
|
2754
|
-
x: 0,
|
|
2755
|
-
y: 0
|
|
2756
|
-
};
|
|
2757
|
-
}
|
|
2758
|
-
index.L.debug("setBlockSizes abc94 (done)", e.id, (I = e == null ? void 0 : e.size) == null ? void 0 : I.x, (w = e == null ? void 0 : e.size) == null ? void 0 : w.width, (C = e == null ? void 0 : e.size) == null ? void 0 : C.y, (E = e == null ? void 0 : e.size) == null ? void 0 : E.height);
|
|
2759
|
-
}
|
|
2760
|
-
function Le(e, c) {
|
|
2761
|
-
var a, i, g, o, p, f, m, S, y, z, I, w, C, E, v, N, D;
|
|
2762
|
-
index.L.debug("abc85 layout blocks (=>layoutBlocks) ".concat(e.id, " x: ").concat((a = e == null ? void 0 : e.size) == null ? void 0 : a.x, " y: ").concat((i = e == null ? void 0 : e.size) == null ? void 0 : i.y, " width: ").concat((g = e == null ? void 0 : e.size) == null ? void 0 : g.width));
|
|
2763
|
-
var u = e.columns || -1;
|
|
2764
|
-
if (index.L.debug("layoutBlocks columns abc95", e.id, "=>", u, e), e.children && // find max width of children
|
|
2765
|
-
e.children.length > 0) {
|
|
2766
|
-
var l = ((p = (o = e == null ? void 0 : e.children[0]) == null ? void 0 : o.size) == null ? void 0 : p.width) || 0, s = e.children.length * l + (e.children.length - 1) * b;
|
|
2767
|
-
index.L.debug("widthOfChildren 88", s, "posX");
|
|
2768
|
-
var r = 0;
|
|
2769
|
-
index.L.debug("abc91 block?.size?.x", e.id, (f = e == null ? void 0 : e.size) == null ? void 0 : f.x);
|
|
2770
|
-
var h = (m = e == null ? void 0 : e.size) != null && m.x ? ((S = e == null ? void 0 : e.size) == null ? void 0 : S.x) + (-((y = e == null ? void 0 : e.size) == null ? void 0 : y.width) / 2 || 0) : -b, d = 0;
|
|
2771
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
2772
|
-
try {
|
|
2773
|
-
for(var _iterator = e.children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
2774
|
-
var t = _step.value;
|
|
2775
|
-
var x = e;
|
|
2776
|
-
if (!t.size) continue;
|
|
2777
|
-
var _t_size = t.size, n = _t_size.width, B = _t_size.height, _dt = dt(u, r), Y = _dt.px, F = _dt.py;
|
|
2778
|
-
if (F != d && (d = F, h = (z = e == null ? void 0 : e.size) != null && z.x ? ((I = e == null ? void 0 : e.size) == null ? void 0 : I.x) + (-((w = e == null ? void 0 : e.size) == null ? void 0 : w.width) / 2 || 0) : -b, index.L.debug("New row in layout for block", e.id, " and child ", t.id, d)), index.L.debug("abc89 layout blocks (child) id: ".concat(t.id, " Pos: ").concat(r, " (px, py) ").concat(Y, ",").concat(F, " (").concat((C = x == null ? void 0 : x.size) == null ? void 0 : C.x, ",").concat((E = x == null ? void 0 : x.size) == null ? void 0 : E.y, ") parent: ").concat(x.id, " width: ").concat(n).concat(b)), x.size) {
|
|
2779
|
-
var R = n / 2;
|
|
2780
|
-
t.size.x = h + b + R, index.L.debug("abc91 layout blocks (calc) px, pyid:".concat(t.id, " startingPos=X").concat(h, " new startingPosX").concat(t.size.x, " ").concat(R, " padding=").concat(b, " width=").concat(n, " halfWidth=").concat(R, " => x:").concat(t.size.x, " y:").concat(t.size.y, " ").concat(t.widthInColumns, " (width * (child?.w || 1)) / 2 ").concat(n * ((t == null ? void 0 : t.widthInColumns) || 1) / 2)), h = t.size.x + R, t.size.y = x.size.y - x.size.height / 2 + F * (B + b) + B / 2 + b, index.L.debug("abc88 layout blocks (calc) px, pyid:".concat(t.id, "startingPosX").concat(h).concat(b).concat(R, "=>x:").concat(t.size.x, "y:").concat(t.size.y).concat(t.widthInColumns, "(width * (child?.w || 1)) / 2").concat(n * ((t == null ? void 0 : t.widthInColumns) || 1) / 2));
|
|
2781
|
-
}
|
|
2782
|
-
t.children && Le(t), r += (t == null ? void 0 : t.widthInColumns) || 1, index.L.debug("abc88 columnsPos", t, r);
|
|
2783
|
-
}
|
|
2784
|
-
} catch (err) {
|
|
2785
|
-
_didIteratorError = true;
|
|
2786
|
-
_iteratorError = err;
|
|
2787
|
-
} finally{
|
|
2788
|
-
try {
|
|
2789
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
2790
|
-
_iterator.return();
|
|
2791
|
-
}
|
|
2792
|
-
} finally{
|
|
2793
|
-
if (_didIteratorError) {
|
|
2794
|
-
throw _iteratorError;
|
|
2795
|
-
}
|
|
2796
|
-
}
|
|
2797
|
-
}
|
|
2798
|
-
}
|
|
2799
|
-
index.L.debug("layout blocks (<==layoutBlocks) ".concat(e.id, " x: ").concat((v = e == null ? void 0 : e.size) == null ? void 0 : v.x, " y: ").concat((N = e == null ? void 0 : e.size) == null ? void 0 : N.y, " width: ").concat((D = e == null ? void 0 : e.size) == null ? void 0 : D.width));
|
|
2800
|
-
}
|
|
2801
|
-
function xe(e) {
|
|
2802
|
-
var _ref = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
2803
|
-
minX: 0,
|
|
2804
|
-
minY: 0,
|
|
2805
|
-
maxX: 0,
|
|
2806
|
-
maxY: 0
|
|
2807
|
-
}, c = _ref.minX, u = _ref.minY, a = _ref.maxX, i = _ref.maxY;
|
|
2808
|
-
if (e.size && e.id !== "root") {
|
|
2809
|
-
var _e_size = e.size, g = _e_size.x, o = _e_size.y, p = _e_size.width, f = _e_size.height;
|
|
2810
|
-
g - p / 2 < c && (c = g - p / 2), o - f / 2 < u && (u = o - f / 2), g + p / 2 > a && (a = g + p / 2), o + f / 2 > i && (i = o + f / 2);
|
|
2811
|
-
}
|
|
2812
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
2813
|
-
if (e.children) try {
|
|
2814
|
-
for(var _iterator = e.children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
2815
|
-
var g1 = _step.value;
|
|
2816
|
-
var ref;
|
|
2817
|
-
ref = xe(g1, {
|
|
2818
|
-
minX: c,
|
|
2819
|
-
minY: u,
|
|
2820
|
-
maxX: a,
|
|
2821
|
-
maxY: i
|
|
2822
|
-
}), c = ref.minX, u = ref.minY, a = ref.maxX, i = ref.maxY, ref;
|
|
2823
|
-
}
|
|
2824
|
-
} catch (err) {
|
|
2825
|
-
_didIteratorError = true;
|
|
2826
|
-
_iteratorError = err;
|
|
2827
|
-
} finally{
|
|
2828
|
-
try {
|
|
2829
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
2830
|
-
_iterator.return();
|
|
2831
|
-
}
|
|
2832
|
-
} finally{
|
|
2833
|
-
if (_didIteratorError) {
|
|
2834
|
-
throw _iteratorError;
|
|
2835
|
-
}
|
|
2836
|
-
}
|
|
2837
|
-
}
|
|
2838
|
-
return {
|
|
2839
|
-
minX: c,
|
|
2840
|
-
minY: u,
|
|
2841
|
-
maxX: a,
|
|
2842
|
-
maxY: i
|
|
2843
|
-
};
|
|
2844
|
-
}
|
|
2845
|
-
function ft(e) {
|
|
2846
|
-
var c = e.getBlock("root");
|
|
2847
|
-
if (!c) return;
|
|
2848
|
-
te(c, e, 0, 0), Le(c), index.L.debug("getBlocks", JSON.stringify(c, null, 2));
|
|
2849
|
-
var _xe = xe(c), u = _xe.minX, a = _xe.minY, i = _xe.maxX, g = _xe.maxY, o = g - a, p = i - u;
|
|
2850
|
-
return {
|
|
2851
|
-
x: u,
|
|
2852
|
-
y: a,
|
|
2853
|
-
width: p,
|
|
2854
|
-
height: o
|
|
2855
|
-
};
|
|
2856
|
-
}
|
|
2857
|
-
var St = function St(e, c) {
|
|
2858
|
-
return c.db.getClasses();
|
|
2859
|
-
}, Lt = function() {
|
|
2860
|
-
var _ref = _async_to_generator(function(e, c, u, a) {
|
|
2861
|
-
var _se, i, g, o, p, f, m, y, z, I, w, C, E, v, N, D, l;
|
|
2862
|
-
return _ts_generator(this, function(_state) {
|
|
2863
|
-
switch(_state.label){
|
|
2864
|
-
case 0:
|
|
2865
|
-
_se = index.$t(), i = _se.securityLevel, g = _se.block, o = a.db;
|
|
2866
|
-
i === "sandbox" && (p = index.bt("#i" + c));
|
|
2867
|
-
f = i === "sandbox" ? index.bt(p.nodes()[0].contentDocument.body) : index.bt("body"), m = i === "sandbox" ? f.select('[id="'.concat(c, '"]')) : index.bt('[id="'.concat(c, '"]'));
|
|
2868
|
-
edges16357fde.hr(m, [
|
|
2869
|
-
"point",
|
|
2870
|
-
"circle",
|
|
2871
|
-
"cross"
|
|
2872
|
-
], a.type, c);
|
|
2873
|
-
y = o.getBlocks(), z = o.getBlocksFlat(), I = o.getEdges(), w = m.insert("g").attr("class", "block");
|
|
2874
|
-
return [
|
|
2875
|
-
4,
|
|
2876
|
-
ht(w, y, o)
|
|
2877
|
-
];
|
|
2878
|
-
case 1:
|
|
2879
|
-
_state.sent();
|
|
2880
|
-
C = ft(o);
|
|
2881
|
-
return [
|
|
2882
|
-
4,
|
|
2883
|
-
ut(w, y, o)
|
|
2884
|
-
];
|
|
2885
|
-
case 2:
|
|
2886
|
-
_state.sent();
|
|
2887
|
-
return [
|
|
2888
|
-
4,
|
|
2889
|
-
gt(w, I, z, o, c)
|
|
2890
|
-
];
|
|
2891
|
-
case 3:
|
|
2892
|
-
if (_state.sent(), C) {
|
|
2893
|
-
E = C, v = Math.max(1, Math.round(0.125 * (E.width / E.height))), N = E.height + v + 10, D = E.width + 10, l = g.useMaxWidth;
|
|
2894
|
-
index.Ol(m, N, D, !!l), index.L.debug("Here Bounds", C, E), m.attr("viewBox", "".concat(E.x - 5, " ").concat(E.y - 5, " ").concat(E.width + 10, " ").concat(E.height + 10));
|
|
2895
|
-
}
|
|
2896
|
-
ordinal5695958c.h(Tableau10558cc280.r);
|
|
2897
|
-
return [
|
|
2898
|
-
2
|
|
2899
|
-
];
|
|
2900
|
-
}
|
|
2901
|
-
});
|
|
2902
|
-
});
|
|
2903
|
-
return function Lt(e, c, u, a) {
|
|
2904
|
-
return _ref.apply(this, arguments);
|
|
2905
|
-
};
|
|
2906
|
-
}(), xt = {
|
|
2907
|
-
draw: Lt,
|
|
2908
|
-
getClasses: St
|
|
2909
|
-
}, Ct = {
|
|
2910
|
-
parser: Pe,
|
|
2911
|
-
db: nt,
|
|
2912
|
-
renderer: xt,
|
|
2913
|
-
styles: ot
|
|
2914
|
-
};
|
|
2915
|
-
|
|
2916
|
-
exports.diagram = Ct;
|