@digipair/skill-web-chatbot 0.91.0-0 → 0.91.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SAP-icons.cjs.js +2489 -0
- package/SAP-icons.cjs2.js +2489 -0
- package/SAP-icons.esm.js +2482 -0
- package/SAP-icons.esm2.js +2482 -0
- package/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/array-2ff2c7a6.cjs.js +7 -0
- package/array-2ff2c7a6.esm.js +5 -0
- package/blockDiagram-5dc23a45.cjs.js +2921 -0
- package/blockDiagram-5dc23a45.esm.js +2919 -0
- package/c4Diagram-1e775db3.cjs.js +4387 -0
- package/c4Diagram-1e775db3.esm.js +4385 -0
- 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-640c694e.cjs.js +401 -0
- package/classDiagram-v2-640c694e.esm.js +399 -0
- 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-c3a0619c.cjs.js +3820 -0
- package/gitGraphDiagram-c3a0619c.esm.js +3818 -0
- 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.cjs.d.ts +1 -0
- package/index.cjs.js +17 -0
- package/index.cjs2.js +60723 -0
- package/index.esm.js +1 -0
- package/index.esm2.js +60574 -0
- package/infoDiagram-2f5c50c0.cjs.js +460 -0
- package/infoDiagram-2f5c50c0.esm.js +458 -0
- package/init-f9637058.cjs.js +17 -0
- package/init-f9637058.esm.js +15 -0
- 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/engine/src/index.d.ts +2 -0
- package/libs/engine/src/lib/alias.interface.d.ts +9 -0
- package/libs/engine/src/lib/engine.d.ts +13 -0
- package/libs/engine/src/lib/pins-settings.interface.d.ts +15 -0
- package/libs/skill-web-chatbot/src/lib/chat.element.d.ts +28 -0
- package/libs/skill-web-chatbot/src/lib/common.data.d.ts +1 -0
- package/libs/skill-web-chatbot/src/lib/config.d.ts +9 -0
- package/libs/skill-web-chatbot/src/lib/digipair-full.data.d.ts +1 -0
- package/libs/skill-web-chatbot/src/lib/digipair-full.element.d.ts +36 -0
- package/libs/skill-web-chatbot/src/lib/digipair.data.d.ts +1 -0
- package/libs/skill-web-chatbot/src/lib/digipair.element.d.ts +44 -0
- package/libs/skill-web-chatbot/src/lib/inputs.element.d.ts +10 -0
- package/libs/skill-web-chatbot/src/lib/message.interface.d.ts +10 -0
- package/libs/skill-web-chatbot/src/lib/pins/chatbot.actions.d.ts +1 -0
- package/libs/skill-web-chatbot/src/lib/tools/css-selector.d.ts +1 -0
- 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-9399c7e6.cjs.js +20489 -0
- package/mindmap-definition-9399c7e6.esm.js +20487 -0
- package/ordinal-5695958c.cjs.js +331 -0
- package/ordinal-5695958c.esm.js +329 -0
- package/package.json +7 -22
- 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-5fa00455.cjs.js +2410 -0
- package/quadrantDiagram-5fa00455.esm.js +2408 -0
- package/requirementDiagram-03163dc4.cjs.js +2267 -0
- package/requirementDiagram-03163dc4.esm.js +2265 -0
- package/sankeyDiagram-52ec8976.cjs.js +1848 -0
- package/sankeyDiagram-52ec8976.esm.js +1846 -0
- package/sequenceDiagram-b517d154.cjs.js +5949 -0
- package/sequenceDiagram-b517d154.esm.js +5947 -0
- package/stateDiagram-fca82b5b.cjs.js +283 -0
- package/stateDiagram-fca82b5b.esm.js +281 -0
- package/stateDiagram-v2-ed04200a.cjs.js +373 -0
- package/stateDiagram-v2-ed04200a.esm.js +371 -0
- package/styles-11e81fdd.cjs.js +3944 -0
- package/styles-11e81fdd.esm.js +3940 -0
- package/styles-cacbff60.cjs.js +2120 -0
- package/styles-cacbff60.esm.js +2111 -0
- 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/.swcrc +0 -28
- package/README.md +0 -7
- package/eslint.config.mjs +0 -22
- package/rollup.config.cjs +0 -28
- package/src/digipair__engine.d.ts +0 -2
- package/src/handlebars.d.ts +0 -1
- package/src/index.html +0 -18
- package/src/lib/chat.element.ts +0 -603
- package/src/lib/common.data.ts +0 -1
- package/src/lib/config.ts +0 -30
- package/src/lib/digipair-full.data.ts +0 -101
- package/src/lib/digipair-full.element.ts +0 -358
- package/src/lib/digipair.data.ts +0 -103
- package/src/lib/digipair.element.ts +0 -446
- package/src/lib/inputs.element.ts +0 -46
- package/src/lib/mermaid.d.ts +0 -1
- package/src/lib/message.interface.ts +0 -10
- package/src/lib/pins/chatbot.actions.ts +0 -32
- package/src/lib/tools/css-selector.ts +0 -12
- package/tsconfig.json +0 -13
- package/tsconfig.lib.json +0 -19
- /package/{src/index.d.ts → index.d.ts} +0 -0
- /package/{src/index.ts → libs/skill-web-chatbot/src/index.d.ts} +0 -0
- /package/{src/schema.fr.json → schema.fr.json} +0 -0
- /package/{src/schema.json → schema.json} +0 -0
|
@@ -0,0 +1,949 @@
|
|
|
1
|
+
import { aL as yp, M as M_, h as O_, F as F_, A as A_, L as L_, E as E_, j as B_, a as ai, V as Vn, c as L, aM as nl, aK as z_, aN as zn, O as Ol, aO as m1 } from './index.esm2.js';
|
|
2
|
+
import { v as vn } from './arc-d1f6357e.esm.js';
|
|
3
|
+
import { h } from './ordinal-5695958c.esm.js';
|
|
4
|
+
import { t } from './array-2ff2c7a6.esm.js';
|
|
5
|
+
import { P } from './path-428ebac9.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 _array_without_holes(arr) {
|
|
17
|
+
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
18
|
+
}
|
|
19
|
+
function _instanceof(left, right) {
|
|
20
|
+
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
21
|
+
return !!right[Symbol.hasInstance](left);
|
|
22
|
+
} else {
|
|
23
|
+
return left instanceof right;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function _iterable_to_array(iter) {
|
|
27
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
28
|
+
}
|
|
29
|
+
function _iterable_to_array_limit(arr, i) {
|
|
30
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
31
|
+
if (_i == null) return;
|
|
32
|
+
var _arr = [];
|
|
33
|
+
var _n = true;
|
|
34
|
+
var _d = false;
|
|
35
|
+
var _s, _e;
|
|
36
|
+
try {
|
|
37
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
38
|
+
_arr.push(_s.value);
|
|
39
|
+
if (i && _arr.length === i) break;
|
|
40
|
+
}
|
|
41
|
+
} catch (err) {
|
|
42
|
+
_d = true;
|
|
43
|
+
_e = err;
|
|
44
|
+
} finally{
|
|
45
|
+
try {
|
|
46
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
47
|
+
} finally{
|
|
48
|
+
if (_d) throw _e;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return _arr;
|
|
52
|
+
}
|
|
53
|
+
function _non_iterable_rest() {
|
|
54
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
55
|
+
}
|
|
56
|
+
function _non_iterable_spread() {
|
|
57
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
58
|
+
}
|
|
59
|
+
function _sliced_to_array(arr, i) {
|
|
60
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
61
|
+
}
|
|
62
|
+
function _to_consumable_array(arr) {
|
|
63
|
+
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
64
|
+
}
|
|
65
|
+
function _type_of(obj) {
|
|
66
|
+
"@swc/helpers - typeof";
|
|
67
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
68
|
+
}
|
|
69
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
70
|
+
if (!o) return;
|
|
71
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
72
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
73
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
74
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
75
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
76
|
+
}
|
|
77
|
+
function vt(e, u) {
|
|
78
|
+
return u < e ? -1 : u > e ? 1 : u >= e ? 0 : NaN;
|
|
79
|
+
}
|
|
80
|
+
function bt(e) {
|
|
81
|
+
return e;
|
|
82
|
+
}
|
|
83
|
+
function St() {
|
|
84
|
+
var e = bt, u = vt, E = null, p = P(0), g = P(m1), A = P(0);
|
|
85
|
+
function y(a) {
|
|
86
|
+
var l, d = (a = t(a)).length, m, I, $ = 0, _ = new Array(d), v = new Array(d), o = +p.apply(this, arguments), T = Math.min(m1, Math.max(-m1, g.apply(this, arguments) - o)), O, w = Math.min(Math.abs(T) / d, A.apply(this, arguments)), b = w * (T < 0 ? -1 : 1), t$1;
|
|
87
|
+
for(l = 0; l < d; ++l)(t$1 = v[_[l] = l] = +e(a[l], l, a)) > 0 && ($ += t$1);
|
|
88
|
+
for(u != null ? _.sort(function(i, n) {
|
|
89
|
+
return u(v[i], v[n]);
|
|
90
|
+
}) : E != null && _.sort(function(i, n) {
|
|
91
|
+
return E(a[i], a[n]);
|
|
92
|
+
}), l = 0, I = $ ? (T - d * b) / $ : 0; l < d; ++l, o = O)m = _[l], t$1 = v[m], O = o + (t$1 > 0 ? t$1 * I : 0) + b, v[m] = {
|
|
93
|
+
data: a[m],
|
|
94
|
+
index: l,
|
|
95
|
+
value: t$1,
|
|
96
|
+
startAngle: o,
|
|
97
|
+
endAngle: O,
|
|
98
|
+
padAngle: w
|
|
99
|
+
};
|
|
100
|
+
return v;
|
|
101
|
+
}
|
|
102
|
+
return y.value = function(a) {
|
|
103
|
+
return arguments.length ? (e = typeof a == "function" ? a : P(+a), y) : e;
|
|
104
|
+
}, y.sortValues = function(a) {
|
|
105
|
+
return arguments.length ? (u = a, E = null, y) : u;
|
|
106
|
+
}, y.sort = function(a) {
|
|
107
|
+
return arguments.length ? (E = a, u = null, y) : E;
|
|
108
|
+
}, y.startAngle = function(a) {
|
|
109
|
+
return arguments.length ? (p = typeof a == "function" ? a : P(+a), y) : p;
|
|
110
|
+
}, y.endAngle = function(a) {
|
|
111
|
+
return arguments.length ? (g = typeof a == "function" ? a : P(+a), y) : g;
|
|
112
|
+
}, y.padAngle = function(a) {
|
|
113
|
+
return arguments.length ? (A = typeof a == "function" ? a : P(+a), y) : A;
|
|
114
|
+
}, y;
|
|
115
|
+
}
|
|
116
|
+
var J = function() {
|
|
117
|
+
var e = function e(b, t, i, n) {
|
|
118
|
+
for(i = i || {}, n = b.length; n--; i[b[n]] = t);
|
|
119
|
+
return i;
|
|
120
|
+
}, u = [
|
|
121
|
+
1,
|
|
122
|
+
3
|
|
123
|
+
], E = [
|
|
124
|
+
1,
|
|
125
|
+
4
|
|
126
|
+
], p = [
|
|
127
|
+
1,
|
|
128
|
+
5
|
|
129
|
+
], g = [
|
|
130
|
+
1,
|
|
131
|
+
6
|
|
132
|
+
], A = [
|
|
133
|
+
1,
|
|
134
|
+
10,
|
|
135
|
+
12,
|
|
136
|
+
14,
|
|
137
|
+
16,
|
|
138
|
+
18,
|
|
139
|
+
19,
|
|
140
|
+
20,
|
|
141
|
+
21,
|
|
142
|
+
22
|
|
143
|
+
], y = [
|
|
144
|
+
2,
|
|
145
|
+
4
|
|
146
|
+
], a = [
|
|
147
|
+
1,
|
|
148
|
+
5,
|
|
149
|
+
10,
|
|
150
|
+
12,
|
|
151
|
+
14,
|
|
152
|
+
16,
|
|
153
|
+
18,
|
|
154
|
+
19,
|
|
155
|
+
20,
|
|
156
|
+
21,
|
|
157
|
+
22
|
|
158
|
+
], l = [
|
|
159
|
+
20,
|
|
160
|
+
21,
|
|
161
|
+
22
|
|
162
|
+
], d = [
|
|
163
|
+
2,
|
|
164
|
+
7
|
|
165
|
+
], m = [
|
|
166
|
+
1,
|
|
167
|
+
12
|
|
168
|
+
], I = [
|
|
169
|
+
1,
|
|
170
|
+
13
|
|
171
|
+
], $ = [
|
|
172
|
+
1,
|
|
173
|
+
14
|
|
174
|
+
], _ = [
|
|
175
|
+
1,
|
|
176
|
+
15
|
|
177
|
+
], v = [
|
|
178
|
+
1,
|
|
179
|
+
16
|
|
180
|
+
], o = [
|
|
181
|
+
1,
|
|
182
|
+
17
|
|
183
|
+
], T = {
|
|
184
|
+
trace: function trace() {},
|
|
185
|
+
yy: {},
|
|
186
|
+
symbols_: {
|
|
187
|
+
error: 2,
|
|
188
|
+
start: 3,
|
|
189
|
+
eol: 4,
|
|
190
|
+
PIE: 5,
|
|
191
|
+
document: 6,
|
|
192
|
+
showData: 7,
|
|
193
|
+
line: 8,
|
|
194
|
+
statement: 9,
|
|
195
|
+
txt: 10,
|
|
196
|
+
value: 11,
|
|
197
|
+
title: 12,
|
|
198
|
+
title_value: 13,
|
|
199
|
+
acc_title: 14,
|
|
200
|
+
acc_title_value: 15,
|
|
201
|
+
acc_descr: 16,
|
|
202
|
+
acc_descr_value: 17,
|
|
203
|
+
acc_descr_multiline_value: 18,
|
|
204
|
+
section: 19,
|
|
205
|
+
NEWLINE: 20,
|
|
206
|
+
";": 21,
|
|
207
|
+
EOF: 22,
|
|
208
|
+
$accept: 0,
|
|
209
|
+
$end: 1
|
|
210
|
+
},
|
|
211
|
+
terminals_: {
|
|
212
|
+
2: "error",
|
|
213
|
+
5: "PIE",
|
|
214
|
+
7: "showData",
|
|
215
|
+
10: "txt",
|
|
216
|
+
11: "value",
|
|
217
|
+
12: "title",
|
|
218
|
+
13: "title_value",
|
|
219
|
+
14: "acc_title",
|
|
220
|
+
15: "acc_title_value",
|
|
221
|
+
16: "acc_descr",
|
|
222
|
+
17: "acc_descr_value",
|
|
223
|
+
18: "acc_descr_multiline_value",
|
|
224
|
+
19: "section",
|
|
225
|
+
20: "NEWLINE",
|
|
226
|
+
21: ";",
|
|
227
|
+
22: "EOF"
|
|
228
|
+
},
|
|
229
|
+
productions_: [
|
|
230
|
+
0,
|
|
231
|
+
[
|
|
232
|
+
3,
|
|
233
|
+
2
|
|
234
|
+
],
|
|
235
|
+
[
|
|
236
|
+
3,
|
|
237
|
+
2
|
|
238
|
+
],
|
|
239
|
+
[
|
|
240
|
+
3,
|
|
241
|
+
3
|
|
242
|
+
],
|
|
243
|
+
[
|
|
244
|
+
6,
|
|
245
|
+
0
|
|
246
|
+
],
|
|
247
|
+
[
|
|
248
|
+
6,
|
|
249
|
+
2
|
|
250
|
+
],
|
|
251
|
+
[
|
|
252
|
+
8,
|
|
253
|
+
2
|
|
254
|
+
],
|
|
255
|
+
[
|
|
256
|
+
9,
|
|
257
|
+
0
|
|
258
|
+
],
|
|
259
|
+
[
|
|
260
|
+
9,
|
|
261
|
+
2
|
|
262
|
+
],
|
|
263
|
+
[
|
|
264
|
+
9,
|
|
265
|
+
2
|
|
266
|
+
],
|
|
267
|
+
[
|
|
268
|
+
9,
|
|
269
|
+
2
|
|
270
|
+
],
|
|
271
|
+
[
|
|
272
|
+
9,
|
|
273
|
+
2
|
|
274
|
+
],
|
|
275
|
+
[
|
|
276
|
+
9,
|
|
277
|
+
1
|
|
278
|
+
],
|
|
279
|
+
[
|
|
280
|
+
9,
|
|
281
|
+
1
|
|
282
|
+
],
|
|
283
|
+
[
|
|
284
|
+
4,
|
|
285
|
+
1
|
|
286
|
+
],
|
|
287
|
+
[
|
|
288
|
+
4,
|
|
289
|
+
1
|
|
290
|
+
],
|
|
291
|
+
[
|
|
292
|
+
4,
|
|
293
|
+
1
|
|
294
|
+
]
|
|
295
|
+
],
|
|
296
|
+
performAction: function performAction(t, i, n, r, c, s, V) {
|
|
297
|
+
var x = s.length - 1;
|
|
298
|
+
switch(c){
|
|
299
|
+
case 3:
|
|
300
|
+
r.setShowData(!0);
|
|
301
|
+
break;
|
|
302
|
+
case 6:
|
|
303
|
+
this.$ = s[x - 1];
|
|
304
|
+
break;
|
|
305
|
+
case 8:
|
|
306
|
+
r.addSection(s[x - 1], r.cleanupValue(s[x]));
|
|
307
|
+
break;
|
|
308
|
+
case 9:
|
|
309
|
+
this.$ = s[x].trim(), r.setDiagramTitle(this.$);
|
|
310
|
+
break;
|
|
311
|
+
case 10:
|
|
312
|
+
this.$ = s[x].trim(), r.setAccTitle(this.$);
|
|
313
|
+
break;
|
|
314
|
+
case 11:
|
|
315
|
+
case 12:
|
|
316
|
+
this.$ = s[x].trim(), r.setAccDescription(this.$);
|
|
317
|
+
break;
|
|
318
|
+
case 13:
|
|
319
|
+
r.addSection(s[x].substr(8)), this.$ = s[x].substr(8);
|
|
320
|
+
break;
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
table: [
|
|
324
|
+
{
|
|
325
|
+
3: 1,
|
|
326
|
+
4: 2,
|
|
327
|
+
5: u,
|
|
328
|
+
20: E,
|
|
329
|
+
21: p,
|
|
330
|
+
22: g
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
1: [
|
|
334
|
+
3
|
|
335
|
+
]
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
3: 7,
|
|
339
|
+
4: 2,
|
|
340
|
+
5: u,
|
|
341
|
+
20: E,
|
|
342
|
+
21: p,
|
|
343
|
+
22: g
|
|
344
|
+
},
|
|
345
|
+
e(A, y, {
|
|
346
|
+
6: 8,
|
|
347
|
+
7: [
|
|
348
|
+
1,
|
|
349
|
+
9
|
|
350
|
+
]
|
|
351
|
+
}),
|
|
352
|
+
e(a, [
|
|
353
|
+
2,
|
|
354
|
+
14
|
|
355
|
+
]),
|
|
356
|
+
e(a, [
|
|
357
|
+
2,
|
|
358
|
+
15
|
|
359
|
+
]),
|
|
360
|
+
e(a, [
|
|
361
|
+
2,
|
|
362
|
+
16
|
|
363
|
+
]),
|
|
364
|
+
{
|
|
365
|
+
1: [
|
|
366
|
+
2,
|
|
367
|
+
1
|
|
368
|
+
]
|
|
369
|
+
},
|
|
370
|
+
e(l, d, {
|
|
371
|
+
8: 10,
|
|
372
|
+
9: 11,
|
|
373
|
+
1: [
|
|
374
|
+
2,
|
|
375
|
+
2
|
|
376
|
+
],
|
|
377
|
+
10: m,
|
|
378
|
+
12: I,
|
|
379
|
+
14: $,
|
|
380
|
+
16: _,
|
|
381
|
+
18: v,
|
|
382
|
+
19: o
|
|
383
|
+
}),
|
|
384
|
+
e(A, y, {
|
|
385
|
+
6: 18
|
|
386
|
+
}),
|
|
387
|
+
e(A, [
|
|
388
|
+
2,
|
|
389
|
+
5
|
|
390
|
+
]),
|
|
391
|
+
{
|
|
392
|
+
4: 19,
|
|
393
|
+
20: E,
|
|
394
|
+
21: p,
|
|
395
|
+
22: g
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
11: [
|
|
399
|
+
1,
|
|
400
|
+
20
|
|
401
|
+
]
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
13: [
|
|
405
|
+
1,
|
|
406
|
+
21
|
|
407
|
+
]
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
15: [
|
|
411
|
+
1,
|
|
412
|
+
22
|
|
413
|
+
]
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
17: [
|
|
417
|
+
1,
|
|
418
|
+
23
|
|
419
|
+
]
|
|
420
|
+
},
|
|
421
|
+
e(l, [
|
|
422
|
+
2,
|
|
423
|
+
12
|
|
424
|
+
]),
|
|
425
|
+
e(l, [
|
|
426
|
+
2,
|
|
427
|
+
13
|
|
428
|
+
]),
|
|
429
|
+
e(l, d, {
|
|
430
|
+
8: 10,
|
|
431
|
+
9: 11,
|
|
432
|
+
1: [
|
|
433
|
+
2,
|
|
434
|
+
3
|
|
435
|
+
],
|
|
436
|
+
10: m,
|
|
437
|
+
12: I,
|
|
438
|
+
14: $,
|
|
439
|
+
16: _,
|
|
440
|
+
18: v,
|
|
441
|
+
19: o
|
|
442
|
+
}),
|
|
443
|
+
e(A, [
|
|
444
|
+
2,
|
|
445
|
+
6
|
|
446
|
+
]),
|
|
447
|
+
e(l, [
|
|
448
|
+
2,
|
|
449
|
+
8
|
|
450
|
+
]),
|
|
451
|
+
e(l, [
|
|
452
|
+
2,
|
|
453
|
+
9
|
|
454
|
+
]),
|
|
455
|
+
e(l, [
|
|
456
|
+
2,
|
|
457
|
+
10
|
|
458
|
+
]),
|
|
459
|
+
e(l, [
|
|
460
|
+
2,
|
|
461
|
+
11
|
|
462
|
+
])
|
|
463
|
+
],
|
|
464
|
+
defaultActions: {
|
|
465
|
+
7: [
|
|
466
|
+
2,
|
|
467
|
+
1
|
|
468
|
+
]
|
|
469
|
+
},
|
|
470
|
+
parseError: function parseError(t, i) {
|
|
471
|
+
if (i.recoverable) this.trace(t);
|
|
472
|
+
else {
|
|
473
|
+
var n = new Error(t);
|
|
474
|
+
throw n.hash = i, n;
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
parse: function parse(t) {
|
|
478
|
+
var i = this, n = [
|
|
479
|
+
0
|
|
480
|
+
], r = [], c = [
|
|
481
|
+
null
|
|
482
|
+
], s = [], V = this.table, x = "", f = 0, P = 0, R = 2, M = 1, Y = s.slice.call(arguments, 1), h = Object.create(this.lexer), N = {
|
|
483
|
+
yy: {}
|
|
484
|
+
};
|
|
485
|
+
for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy, B) && (N.yy[B] = this.yy[B]);
|
|
486
|
+
h.setInput(t, N.yy), N.yy.lexer = h, N.yy.parser = this, _type_of(h.yylloc) > "u" && (h.yylloc = {});
|
|
487
|
+
var X = h.yylloc;
|
|
488
|
+
s.push(X);
|
|
489
|
+
var st = h.options && h.options.ranges;
|
|
490
|
+
typeof N.yy.parseError == "function" ? this.parseError = N.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
491
|
+
function rt() {
|
|
492
|
+
var C;
|
|
493
|
+
return C = r.pop() || h.lex() || M, typeof C != "number" && (_instanceof(C, Array) && (r = C, C = r.pop()), C = i.symbols_[C] || C), C;
|
|
494
|
+
}
|
|
495
|
+
for(var k, L, S, Z, z = {}, W, D, Q, j;;){
|
|
496
|
+
if (L = n[n.length - 1], this.defaultActions[L] ? S = this.defaultActions[L] : ((k === null || (typeof k === "undefined" ? "undefined" : _type_of(k)) > "u") && (k = rt()), S = V[L] && V[L][k]), (typeof S === "undefined" ? "undefined" : _type_of(S)) > "u" || !S.length || !S[0]) {
|
|
497
|
+
var q = "";
|
|
498
|
+
j = [];
|
|
499
|
+
for(W in V[L])this.terminals_[W] && W > R && j.push("'" + this.terminals_[W] + "'");
|
|
500
|
+
h.showPosition ? q = "Parse error on line " + (f + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : q = "Parse error on line " + (f + 1) + ": Unexpected " + (k == M ? "end of input" : "'" + (this.terminals_[k] || k) + "'"), this.parseError(q, {
|
|
501
|
+
text: h.match,
|
|
502
|
+
token: this.terminals_[k] || k,
|
|
503
|
+
line: h.yylineno,
|
|
504
|
+
loc: X,
|
|
505
|
+
expected: j
|
|
506
|
+
});
|
|
507
|
+
}
|
|
508
|
+
if (_instanceof(S[0], Array) && S.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + L + ", token: " + k);
|
|
509
|
+
switch(S[0]){
|
|
510
|
+
case 1:
|
|
511
|
+
n.push(k), c.push(h.yytext), s.push(h.yylloc), n.push(S[1]), k = null, P = h.yyleng, x = h.yytext, f = h.yylineno, X = h.yylloc;
|
|
512
|
+
break;
|
|
513
|
+
case 2:
|
|
514
|
+
if (D = this.productions_[S[1]][1], z.$ = c[c.length - D], z._$ = {
|
|
515
|
+
first_line: s[s.length - (D || 1)].first_line,
|
|
516
|
+
last_line: s[s.length - 1].last_line,
|
|
517
|
+
first_column: s[s.length - (D || 1)].first_column,
|
|
518
|
+
last_column: s[s.length - 1].last_column
|
|
519
|
+
}, st && (z._$.range = [
|
|
520
|
+
s[s.length - (D || 1)].range[0],
|
|
521
|
+
s[s.length - 1].range[1]
|
|
522
|
+
]), Z = this.performAction.apply(z, [
|
|
523
|
+
x,
|
|
524
|
+
P,
|
|
525
|
+
f,
|
|
526
|
+
N.yy,
|
|
527
|
+
S[1],
|
|
528
|
+
c,
|
|
529
|
+
s
|
|
530
|
+
].concat(Y)), (typeof Z === "undefined" ? "undefined" : _type_of(Z)) < "u") return Z;
|
|
531
|
+
D && (n = n.slice(0, -1 * D * 2), c = c.slice(0, -1 * D), s = s.slice(0, -1 * D)), n.push(this.productions_[S[1]][0]), c.push(z.$), s.push(z._$), Q = V[n[n.length - 2]][n[n.length - 1]], n.push(Q);
|
|
532
|
+
break;
|
|
533
|
+
case 3:
|
|
534
|
+
return !0;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
return !0;
|
|
538
|
+
}
|
|
539
|
+
}, O = function() {
|
|
540
|
+
var b = {
|
|
541
|
+
EOF: 1,
|
|
542
|
+
parseError: function parseError(i, n) {
|
|
543
|
+
if (this.yy.parser) this.yy.parser.parseError(i, n);
|
|
544
|
+
else throw new Error(i);
|
|
545
|
+
},
|
|
546
|
+
// resets the lexer, sets new input
|
|
547
|
+
setInput: function setInput(t, i) {
|
|
548
|
+
return this.yy = i || this.yy || {}, this._input = t, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = [
|
|
549
|
+
"INITIAL"
|
|
550
|
+
], this.yylloc = {
|
|
551
|
+
first_line: 1,
|
|
552
|
+
first_column: 0,
|
|
553
|
+
last_line: 1,
|
|
554
|
+
last_column: 0
|
|
555
|
+
}, this.options.ranges && (this.yylloc.range = [
|
|
556
|
+
0,
|
|
557
|
+
0
|
|
558
|
+
]), this.offset = 0, this;
|
|
559
|
+
},
|
|
560
|
+
// consumes and returns one char from the input
|
|
561
|
+
input: function input() {
|
|
562
|
+
var t = this._input[0];
|
|
563
|
+
this.yytext += t, this.yyleng++, this.offset++, this.match += t, this.matched += t;
|
|
564
|
+
var i = t.match(/(?:\r\n?|\n).*/g);
|
|
565
|
+
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), t;
|
|
566
|
+
},
|
|
567
|
+
// unshifts one char (or a string) into the input
|
|
568
|
+
unput: function unput(t) {
|
|
569
|
+
var i = t.length, n = t.split(/(?:\r\n?|\n)/g);
|
|
570
|
+
this._input = t + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - i), this.offset -= i;
|
|
571
|
+
var r = this.match.split(/(?:\r\n?|\n)/g);
|
|
572
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
|
|
573
|
+
var c = this.yylloc.range;
|
|
574
|
+
return this.yylloc = {
|
|
575
|
+
first_line: this.yylloc.first_line,
|
|
576
|
+
last_line: this.yylineno + 1,
|
|
577
|
+
first_column: this.yylloc.first_column,
|
|
578
|
+
last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - i
|
|
579
|
+
}, this.options.ranges && (this.yylloc.range = [
|
|
580
|
+
c[0],
|
|
581
|
+
c[0] + this.yyleng - i
|
|
582
|
+
]), this.yyleng = this.yytext.length, this;
|
|
583
|
+
},
|
|
584
|
+
// When called from action, caches matched text and appends it on next action
|
|
585
|
+
more: function more() {
|
|
586
|
+
return this._more = !0, this;
|
|
587
|
+
},
|
|
588
|
+
// 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.
|
|
589
|
+
reject: function reject() {
|
|
590
|
+
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
591
|
+
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(), {
|
|
592
|
+
text: "",
|
|
593
|
+
token: null,
|
|
594
|
+
line: this.yylineno
|
|
595
|
+
});
|
|
596
|
+
return this;
|
|
597
|
+
},
|
|
598
|
+
// retain first n characters of the match
|
|
599
|
+
less: function less(t) {
|
|
600
|
+
this.unput(this.match.slice(t));
|
|
601
|
+
},
|
|
602
|
+
// displays already matched input, i.e. for error messages
|
|
603
|
+
pastInput: function pastInput() {
|
|
604
|
+
var t = this.matched.substr(0, this.matched.length - this.match.length);
|
|
605
|
+
return (t.length > 20 ? "..." : "") + t.substr(-20).replace(/\n/g, "");
|
|
606
|
+
},
|
|
607
|
+
// displays upcoming input, i.e. for error messages
|
|
608
|
+
upcomingInput: function upcomingInput() {
|
|
609
|
+
var t = this.match;
|
|
610
|
+
return t.length < 20 && (t += this._input.substr(0, 20 - t.length)), (t.substr(0, 20) + (t.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
611
|
+
},
|
|
612
|
+
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
613
|
+
showPosition: function showPosition() {
|
|
614
|
+
var t = this.pastInput(), i = new Array(t.length + 1).join("-");
|
|
615
|
+
return t + this.upcomingInput() + "\n" + i + "^";
|
|
616
|
+
},
|
|
617
|
+
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
618
|
+
test_match: function test_match(t, i) {
|
|
619
|
+
var n, r, c;
|
|
620
|
+
if (this.options.backtrack_lexer && (c = {
|
|
621
|
+
yylineno: this.yylineno,
|
|
622
|
+
yylloc: {
|
|
623
|
+
first_line: this.yylloc.first_line,
|
|
624
|
+
last_line: this.last_line,
|
|
625
|
+
first_column: this.yylloc.first_column,
|
|
626
|
+
last_column: this.yylloc.last_column
|
|
627
|
+
},
|
|
628
|
+
yytext: this.yytext,
|
|
629
|
+
match: this.match,
|
|
630
|
+
matches: this.matches,
|
|
631
|
+
matched: this.matched,
|
|
632
|
+
yyleng: this.yyleng,
|
|
633
|
+
offset: this.offset,
|
|
634
|
+
_more: this._more,
|
|
635
|
+
_input: this._input,
|
|
636
|
+
yy: this.yy,
|
|
637
|
+
conditionStack: this.conditionStack.slice(0),
|
|
638
|
+
done: this.done
|
|
639
|
+
}, this.options.ranges && (c.yylloc.range = this.yylloc.range.slice(0))), r = t[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
|
|
640
|
+
first_line: this.yylloc.last_line,
|
|
641
|
+
last_line: this.yylineno + 1,
|
|
642
|
+
first_column: this.yylloc.last_column,
|
|
643
|
+
last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + t[0].length
|
|
644
|
+
}, this.yytext += t[0], this.match += t[0], this.matches = t, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [
|
|
645
|
+
this.offset,
|
|
646
|
+
this.offset += this.yyleng
|
|
647
|
+
]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(t[0].length), this.matched += t[0], n = this.performAction.call(this, this.yy, this, i, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
|
|
648
|
+
if (this._backtrack) {
|
|
649
|
+
for(var s in c)this[s] = c[s];
|
|
650
|
+
return !1;
|
|
651
|
+
}
|
|
652
|
+
return !1;
|
|
653
|
+
},
|
|
654
|
+
// return next match in input
|
|
655
|
+
next: function next() {
|
|
656
|
+
if (this.done) return this.EOF;
|
|
657
|
+
this._input || (this.done = !0);
|
|
658
|
+
var t, i, n, r;
|
|
659
|
+
this._more || (this.yytext = "", this.match = "");
|
|
660
|
+
for(var c = this._currentRules(), s = 0; s < c.length; s++)if (n = this._input.match(this.rules[c[s]]), n && (!i || n[0].length > i[0].length)) {
|
|
661
|
+
if (i = n, r = s, this.options.backtrack_lexer) {
|
|
662
|
+
if (t = this.test_match(n, c[s]), t !== !1) return t;
|
|
663
|
+
if (this._backtrack) {
|
|
664
|
+
i = !1;
|
|
665
|
+
continue;
|
|
666
|
+
} else return !1;
|
|
667
|
+
} else if (!this.options.flex) break;
|
|
668
|
+
}
|
|
669
|
+
return i ? (t = this.test_match(i, c[r]), t !== !1 ? t : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
670
|
+
text: "",
|
|
671
|
+
token: null,
|
|
672
|
+
line: this.yylineno
|
|
673
|
+
});
|
|
674
|
+
},
|
|
675
|
+
// return next match that has a token
|
|
676
|
+
lex: function lex() {
|
|
677
|
+
var i = this.next();
|
|
678
|
+
return i || this.lex();
|
|
679
|
+
},
|
|
680
|
+
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
681
|
+
begin: function begin(i) {
|
|
682
|
+
this.conditionStack.push(i);
|
|
683
|
+
},
|
|
684
|
+
// pop the previously active lexer condition state off the condition stack
|
|
685
|
+
popState: function popState() {
|
|
686
|
+
var i = this.conditionStack.length - 1;
|
|
687
|
+
return i > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
688
|
+
},
|
|
689
|
+
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
690
|
+
_currentRules: function _currentRules() {
|
|
691
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
692
|
+
},
|
|
693
|
+
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
694
|
+
topState: function topState(i) {
|
|
695
|
+
return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
|
|
696
|
+
},
|
|
697
|
+
// alias for begin(condition)
|
|
698
|
+
pushState: function pushState(i) {
|
|
699
|
+
this.begin(i);
|
|
700
|
+
},
|
|
701
|
+
// return the number of states currently on the stack
|
|
702
|
+
stateStackSize: function stateStackSize() {
|
|
703
|
+
return this.conditionStack.length;
|
|
704
|
+
},
|
|
705
|
+
options: {
|
|
706
|
+
"case-insensitive": !0
|
|
707
|
+
},
|
|
708
|
+
performAction: function performAction(i, n, r, c) {
|
|
709
|
+
switch(r){
|
|
710
|
+
case 0:
|
|
711
|
+
break;
|
|
712
|
+
case 1:
|
|
713
|
+
break;
|
|
714
|
+
case 2:
|
|
715
|
+
return 20;
|
|
716
|
+
case 3:
|
|
717
|
+
break;
|
|
718
|
+
case 4:
|
|
719
|
+
break;
|
|
720
|
+
case 5:
|
|
721
|
+
return this.begin("title"), 12;
|
|
722
|
+
case 6:
|
|
723
|
+
return this.popState(), "title_value";
|
|
724
|
+
case 7:
|
|
725
|
+
return this.begin("acc_title"), 14;
|
|
726
|
+
case 8:
|
|
727
|
+
return this.popState(), "acc_title_value";
|
|
728
|
+
case 9:
|
|
729
|
+
return this.begin("acc_descr"), 16;
|
|
730
|
+
case 10:
|
|
731
|
+
return this.popState(), "acc_descr_value";
|
|
732
|
+
case 11:
|
|
733
|
+
this.begin("acc_descr_multiline");
|
|
734
|
+
break;
|
|
735
|
+
case 12:
|
|
736
|
+
this.popState();
|
|
737
|
+
break;
|
|
738
|
+
case 13:
|
|
739
|
+
return "acc_descr_multiline_value";
|
|
740
|
+
case 14:
|
|
741
|
+
this.begin("string");
|
|
742
|
+
break;
|
|
743
|
+
case 15:
|
|
744
|
+
this.popState();
|
|
745
|
+
break;
|
|
746
|
+
case 16:
|
|
747
|
+
return "txt";
|
|
748
|
+
case 17:
|
|
749
|
+
return 5;
|
|
750
|
+
case 18:
|
|
751
|
+
return 7;
|
|
752
|
+
case 19:
|
|
753
|
+
return "value";
|
|
754
|
+
case 20:
|
|
755
|
+
return 22;
|
|
756
|
+
}
|
|
757
|
+
},
|
|
758
|
+
rules: [
|
|
759
|
+
/^(?:%%(?!\{)[^\n]*)/i,
|
|
760
|
+
/^(?:[^\}]%%[^\n]*)/i,
|
|
761
|
+
/^(?:[\n\r]+)/i,
|
|
762
|
+
/^(?:%%[^\n]*)/i,
|
|
763
|
+
/^(?:[\s]+)/i,
|
|
764
|
+
/^(?:title\b)/i,
|
|
765
|
+
/^(?:(?!\n||)*[^\n]*)/i,
|
|
766
|
+
/^(?:accTitle\s*:\s*)/i,
|
|
767
|
+
/^(?:(?!\n||)*[^\n]*)/i,
|
|
768
|
+
/^(?:accDescr\s*:\s*)/i,
|
|
769
|
+
/^(?:(?!\n||)*[^\n]*)/i,
|
|
770
|
+
/^(?:accDescr\s*\{\s*)/i,
|
|
771
|
+
/^(?:[\}])/i,
|
|
772
|
+
/^(?:[^\}]*)/i,
|
|
773
|
+
/^(?:["])/i,
|
|
774
|
+
/^(?:["])/i,
|
|
775
|
+
/^(?:[^"]*)/i,
|
|
776
|
+
/^(?:pie\b)/i,
|
|
777
|
+
/^(?:showData\b)/i,
|
|
778
|
+
/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,
|
|
779
|
+
/^(?:$)/i
|
|
780
|
+
],
|
|
781
|
+
conditions: {
|
|
782
|
+
acc_descr_multiline: {
|
|
783
|
+
rules: [
|
|
784
|
+
12,
|
|
785
|
+
13
|
|
786
|
+
],
|
|
787
|
+
inclusive: !1
|
|
788
|
+
},
|
|
789
|
+
acc_descr: {
|
|
790
|
+
rules: [
|
|
791
|
+
10
|
|
792
|
+
],
|
|
793
|
+
inclusive: !1
|
|
794
|
+
},
|
|
795
|
+
acc_title: {
|
|
796
|
+
rules: [
|
|
797
|
+
8
|
|
798
|
+
],
|
|
799
|
+
inclusive: !1
|
|
800
|
+
},
|
|
801
|
+
title: {
|
|
802
|
+
rules: [
|
|
803
|
+
6
|
|
804
|
+
],
|
|
805
|
+
inclusive: !1
|
|
806
|
+
},
|
|
807
|
+
string: {
|
|
808
|
+
rules: [
|
|
809
|
+
15,
|
|
810
|
+
16
|
|
811
|
+
],
|
|
812
|
+
inclusive: !1
|
|
813
|
+
},
|
|
814
|
+
INITIAL: {
|
|
815
|
+
rules: [
|
|
816
|
+
0,
|
|
817
|
+
1,
|
|
818
|
+
2,
|
|
819
|
+
3,
|
|
820
|
+
4,
|
|
821
|
+
5,
|
|
822
|
+
7,
|
|
823
|
+
9,
|
|
824
|
+
11,
|
|
825
|
+
14,
|
|
826
|
+
17,
|
|
827
|
+
18,
|
|
828
|
+
19,
|
|
829
|
+
20
|
|
830
|
+
],
|
|
831
|
+
inclusive: !0
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
};
|
|
835
|
+
return b;
|
|
836
|
+
}();
|
|
837
|
+
T.lexer = O;
|
|
838
|
+
function w() {
|
|
839
|
+
this.yy = {};
|
|
840
|
+
}
|
|
841
|
+
return w.prototype = T, T.Parser = w, new w();
|
|
842
|
+
}();
|
|
843
|
+
J.parser = J;
|
|
844
|
+
var Et = J, nt = yp.pie, G = {
|
|
845
|
+
sections: {},
|
|
846
|
+
showData: !1,
|
|
847
|
+
config: nt
|
|
848
|
+
};
|
|
849
|
+
var U = G.sections, K = G.showData;
|
|
850
|
+
var At = structuredClone(nt), wt = function() {
|
|
851
|
+
return structuredClone(At);
|
|
852
|
+
}, $t = function() {
|
|
853
|
+
U = structuredClone(G.sections), K = G.showData, B_();
|
|
854
|
+
}, Tt = function(e, u) {
|
|
855
|
+
e = ai(e, Vn()), U[e] === void 0 && (U[e] = u, L.debug("added new section: ".concat(e, ", with value: ").concat(u)));
|
|
856
|
+
}, It = function() {
|
|
857
|
+
return U;
|
|
858
|
+
}, Dt = function(e) {
|
|
859
|
+
return e.substring(0, 1) === ":" && (e = e.substring(1).trim()), Number(e.trim());
|
|
860
|
+
}, Ct = function(e) {
|
|
861
|
+
K = e;
|
|
862
|
+
}, Ot = function() {
|
|
863
|
+
return K;
|
|
864
|
+
}, Vt = {
|
|
865
|
+
getConfig: wt,
|
|
866
|
+
clear: $t,
|
|
867
|
+
setDiagramTitle: M_,
|
|
868
|
+
getDiagramTitle: O_,
|
|
869
|
+
setAccTitle: F_,
|
|
870
|
+
getAccTitle: A_,
|
|
871
|
+
setAccDescription: L_,
|
|
872
|
+
getAccDescription: E_,
|
|
873
|
+
addSection: Tt,
|
|
874
|
+
getSections: It,
|
|
875
|
+
cleanupValue: Dt,
|
|
876
|
+
setShowData: Ct,
|
|
877
|
+
getShowData: Ot
|
|
878
|
+
}, Pt = function(e) {
|
|
879
|
+
return "\n .pieCircle{\n stroke: ".concat(e.pieStrokeColor, ";\n stroke-width : ").concat(e.pieStrokeWidth, ";\n opacity : ").concat(e.pieOpacity, ";\n }\n .pieOuterCircle{\n stroke: ").concat(e.pieOuterStrokeColor, ";\n stroke-width: ").concat(e.pieOuterStrokeWidth, ";\n fill: none;\n }\n .pieTitleText {\n text-anchor: middle;\n font-size: ").concat(e.pieTitleTextSize, ";\n fill: ").concat(e.pieTitleTextColor, ";\n font-family: ").concat(e.fontFamily, ";\n }\n .slice {\n font-family: ").concat(e.fontFamily, ";\n fill: ").concat(e.pieSectionTextColor, ";\n font-size:").concat(e.pieSectionTextSize, ";\n // fill: white;\n }\n .legend text {\n fill: ").concat(e.pieLegendTextColor, ";\n font-family: ").concat(e.fontFamily, ";\n font-size: ").concat(e.pieLegendTextSize, ";\n }\n");
|
|
880
|
+
}, Nt = Pt, Lt = function(e) {
|
|
881
|
+
var u = Object.entries(e).map(function(p) {
|
|
882
|
+
return {
|
|
883
|
+
label: p[0],
|
|
884
|
+
value: p[1]
|
|
885
|
+
};
|
|
886
|
+
}).sort(function(p, g) {
|
|
887
|
+
return g.value - p.value;
|
|
888
|
+
});
|
|
889
|
+
return St().value(function(p) {
|
|
890
|
+
return p.value;
|
|
891
|
+
})(u);
|
|
892
|
+
}, Ft = function(e, u, E, p) {
|
|
893
|
+
var _Math;
|
|
894
|
+
L.debug("rendering pie chart\n" + e);
|
|
895
|
+
var g = p.db, A = Vn(), y = nl(g.getConfig(), A.pie), a = 40, l = 18, d = 4, m = 450, I = m, $ = z_(u), _ = $.append("g"), v = g.getSections();
|
|
896
|
+
_.attr("transform", "translate(" + I / 2 + "," + m / 2 + ")");
|
|
897
|
+
var o = A.themeVariables;
|
|
898
|
+
var _mt = _sliced_to_array(zn(o.pieOuterStrokeWidth), 1), T = _mt[0];
|
|
899
|
+
T !== null && T !== void 0 ? T : T = 2;
|
|
900
|
+
var O = y.textPosition, w = Math.min(I, m) / 2 - a, b = vn().innerRadius(0).outerRadius(w), t = vn().innerRadius(w * O).outerRadius(w * O);
|
|
901
|
+
_.append("circle").attr("cx", 0).attr("cy", 0).attr("r", w + T / 2).attr("class", "pieOuterCircle");
|
|
902
|
+
var i = Lt(v), n = [
|
|
903
|
+
o.pie1,
|
|
904
|
+
o.pie2,
|
|
905
|
+
o.pie3,
|
|
906
|
+
o.pie4,
|
|
907
|
+
o.pie5,
|
|
908
|
+
o.pie6,
|
|
909
|
+
o.pie7,
|
|
910
|
+
o.pie8,
|
|
911
|
+
o.pie9,
|
|
912
|
+
o.pie10,
|
|
913
|
+
o.pie11,
|
|
914
|
+
o.pie12
|
|
915
|
+
], r = h(n);
|
|
916
|
+
_.selectAll("mySlices").data(i).enter().append("path").attr("d", b).attr("fill", function(f) {
|
|
917
|
+
return r(f.data.label);
|
|
918
|
+
}).attr("class", "pieCircle");
|
|
919
|
+
var c = 0;
|
|
920
|
+
Object.keys(v).forEach(function(f) {
|
|
921
|
+
c += v[f];
|
|
922
|
+
}), _.selectAll("mySlices").data(i).enter().append("text").text(function(f) {
|
|
923
|
+
return (f.data.value / c * 100).toFixed(0) + "%";
|
|
924
|
+
}).attr("transform", function(f) {
|
|
925
|
+
return "translate(" + t.centroid(f) + ")";
|
|
926
|
+
}).style("text-anchor", "middle").attr("class", "slice"), _.append("text").text(g.getDiagramTitle()).attr("x", 0).attr("y", -(m - 50) / 2).attr("class", "pieTitleText");
|
|
927
|
+
var s = _.selectAll(".legend").data(r.domain()).enter().append("g").attr("class", "legend").attr("transform", function(f, P) {
|
|
928
|
+
var R = l + d, M = R * r.domain().length / 2, Y = 12 * l, h = P * R - M;
|
|
929
|
+
return "translate(" + Y + "," + h + ")";
|
|
930
|
+
});
|
|
931
|
+
s.append("rect").attr("width", l).attr("height", l).style("fill", r).style("stroke", r), s.data(i).append("text").attr("x", l + d).attr("y", l - d).text(function(f) {
|
|
932
|
+
var _f_data = f.data, P = _f_data.label, R = _f_data.value;
|
|
933
|
+
return g.getShowData() ? "".concat(P, " [").concat(R, "]") : P;
|
|
934
|
+
});
|
|
935
|
+
var V = (_Math = Math).max.apply(_Math, _to_consumable_array(s.selectAll("text").nodes().map(function(f) {
|
|
936
|
+
var _ref;
|
|
937
|
+
return (_ref = f == null ? void 0 : f.getBoundingClientRect().width) !== null && _ref !== void 0 ? _ref : 0;
|
|
938
|
+
}))), x = I + a + l + d + V;
|
|
939
|
+
$.attr("viewBox", "0 0 ".concat(x, " ").concat(m)), Ol($, m, x, y.useMaxWidth);
|
|
940
|
+
}, Rt = {
|
|
941
|
+
draw: Ft
|
|
942
|
+
}, Yt = {
|
|
943
|
+
parser: Et,
|
|
944
|
+
db: Vt,
|
|
945
|
+
renderer: Rt,
|
|
946
|
+
styles: Nt
|
|
947
|
+
};
|
|
948
|
+
|
|
949
|
+
export { Yt as diagram };
|