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