@digipair/skill-web-chatbot 0.90.0 → 0.91.0-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/.swcrc +28 -0
- package/README.md +7 -0
- package/eslint.config.mjs +22 -0
- package/package.json +22 -7
- package/rollup.config.cjs +28 -0
- package/src/digipair__engine.d.ts +2 -0
- package/src/handlebars.d.ts +1 -0
- package/src/index.html +18 -0
- package/src/lib/chat.element.ts +603 -0
- package/src/lib/common.data.ts +1 -0
- package/src/lib/config.ts +30 -0
- package/src/lib/digipair-full.data.ts +101 -0
- package/src/lib/digipair-full.element.ts +358 -0
- package/src/lib/digipair.data.ts +103 -0
- package/src/lib/digipair.element.ts +446 -0
- package/src/lib/inputs.element.ts +46 -0
- package/src/lib/mermaid.d.ts +1 -0
- package/src/lib/message.interface.ts +10 -0
- package/src/lib/pins/chatbot.actions.ts +32 -0
- package/src/lib/tools/css-selector.ts +12 -0
- package/tsconfig.json +13 -0
- package/tsconfig.lib.json +19 -0
- package/SAP-icons.cjs.js +0 -2489
- package/SAP-icons.cjs2.js +0 -2489
- package/SAP-icons.esm.js +0 -2482
- package/SAP-icons.esm2.js +0 -2482
- package/Tableau10-558cc280.cjs.js +0 -9
- package/Tableau10-558cc280.esm.js +0 -7
- package/arc-d1f6357e.cjs.js +0 -88
- package/arc-d1f6357e.esm.js +0 -86
- package/array-2ff2c7a6.cjs.js +0 -7
- package/array-2ff2c7a6.esm.js +0 -5
- package/blockDiagram-5dc23a45.cjs.js +0 -2921
- package/blockDiagram-5dc23a45.esm.js +0 -2919
- package/c4Diagram-1e775db3.cjs.js +0 -4387
- package/c4Diagram-1e775db3.esm.js +0 -4385
- package/channel-ebbc4130.cjs.js +0 -9
- package/channel-ebbc4130.esm.js +0 -7
- package/classDiagram-f52caa06.cjs.js +0 -209
- package/classDiagram-f52caa06.esm.js +0 -207
- package/classDiagram-v2-640c694e.cjs.js +0 -401
- package/classDiagram-v2-640c694e.esm.js +0 -399
- package/clone-afc2f047.cjs.js +0 -10
- package/clone-afc2f047.esm.js +0 -8
- package/createText-03b82060.cjs.js +0 -2936
- package/createText-03b82060.esm.js +0 -2933
- package/edges-16357fde.cjs.js +0 -1998
- package/edges-16357fde.esm.js +0 -1981
- package/erDiagram-c7ff1bec.cjs.js +0 -1807
- package/erDiagram-c7ff1bec.esm.js +0 -1805
- package/flowDb-9a89ea33.cjs.js +0 -5542
- package/flowDb-9a89ea33.esm.js +0 -5538
- package/flowDiagram-aadb13b0.cjs.js +0 -1351
- package/flowDiagram-aadb13b0.esm.js +0 -1349
- package/flowDiagram-v2-f2119625.cjs.js +0 -31
- package/flowDiagram-v2-f2119625.esm.js +0 -29
- package/flowchart-elk-definition-cf813a97.cjs.js +0 -50257
- package/flowchart-elk-definition-cf813a97.esm.js +0 -50255
- package/ganttDiagram-3c2fde2b.cjs.js +0 -3710
- package/ganttDiagram-3c2fde2b.esm.js +0 -3708
- package/gitGraphDiagram-c3a0619c.cjs.js +0 -3820
- package/gitGraphDiagram-c3a0619c.esm.js +0 -3818
- package/graph-0ee63739.cjs.js +0 -961
- package/graph-0ee63739.esm.js +0 -938
- package/index-bb6d8841.cjs.js +0 -648
- package/index-bb6d8841.esm.js +0 -646
- package/index.cjs.d.ts +0 -1
- package/index.cjs.js +0 -17
- package/index.cjs2.js +0 -60723
- package/index.esm.js +0 -1
- package/index.esm2.js +0 -60574
- package/infoDiagram-2f5c50c0.cjs.js +0 -460
- package/infoDiagram-2f5c50c0.esm.js +0 -458
- package/init-f9637058.cjs.js +0 -17
- package/init-f9637058.esm.js +0 -15
- package/journeyDiagram-14fe341a.cjs.js +0 -1061
- package/journeyDiagram-14fe341a.esm.js +0 -1059
- package/katex-d90b6d29.cjs.js +0 -25690
- package/katex-d90b6d29.esm.js +0 -25688
- package/layout-fd473db2.cjs.js +0 -1626
- package/layout-fd473db2.esm.js +0 -1619
- package/libs/engine/src/index.d.ts +0 -2
- package/libs/engine/src/lib/alias.interface.d.ts +0 -9
- package/libs/engine/src/lib/engine.d.ts +0 -13
- package/libs/engine/src/lib/pins-settings.interface.d.ts +0 -15
- package/libs/skill-web-chatbot/src/lib/chat.element.d.ts +0 -28
- package/libs/skill-web-chatbot/src/lib/common.data.d.ts +0 -1
- package/libs/skill-web-chatbot/src/lib/config.d.ts +0 -9
- package/libs/skill-web-chatbot/src/lib/digipair-full.data.d.ts +0 -1
- package/libs/skill-web-chatbot/src/lib/digipair-full.element.d.ts +0 -36
- package/libs/skill-web-chatbot/src/lib/digipair.data.d.ts +0 -1
- package/libs/skill-web-chatbot/src/lib/digipair.element.d.ts +0 -44
- package/libs/skill-web-chatbot/src/lib/inputs.element.d.ts +0 -10
- package/libs/skill-web-chatbot/src/lib/message.interface.d.ts +0 -10
- package/libs/skill-web-chatbot/src/lib/pins/chatbot.actions.d.ts +0 -1
- package/libs/skill-web-chatbot/src/lib/tools/css-selector.d.ts +0 -1
- package/line-24d93f1b.cjs.js +0 -34
- package/line-24d93f1b.esm.js +0 -32
- package/linear-9bcf74c4.cjs.js +0 -537
- package/linear-9bcf74c4.esm.js +0 -531
- package/mindmap-definition-9399c7e6.cjs.js +0 -20489
- package/mindmap-definition-9399c7e6.esm.js +0 -20487
- package/ordinal-5695958c.cjs.js +0 -331
- package/ordinal-5695958c.esm.js +0 -329
- package/path-428ebac9.cjs.js +0 -317
- package/path-428ebac9.esm.js +0 -314
- package/pieDiagram-828dae43.cjs.js +0 -951
- package/pieDiagram-828dae43.esm.js +0 -949
- package/quadrantDiagram-5fa00455.cjs.js +0 -2410
- package/quadrantDiagram-5fa00455.esm.js +0 -2408
- package/requirementDiagram-03163dc4.cjs.js +0 -2267
- package/requirementDiagram-03163dc4.esm.js +0 -2265
- package/sankeyDiagram-52ec8976.cjs.js +0 -1848
- package/sankeyDiagram-52ec8976.esm.js +0 -1846
- package/sequenceDiagram-b517d154.cjs.js +0 -5949
- package/sequenceDiagram-b517d154.esm.js +0 -5947
- package/stateDiagram-fca82b5b.cjs.js +0 -283
- package/stateDiagram-fca82b5b.esm.js +0 -281
- package/stateDiagram-v2-ed04200a.cjs.js +0 -373
- package/stateDiagram-v2-ed04200a.esm.js +0 -371
- package/styles-11e81fdd.cjs.js +0 -3944
- package/styles-11e81fdd.esm.js +0 -3940
- package/styles-cacbff60.cjs.js +0 -2120
- package/styles-cacbff60.esm.js +0 -2111
- package/styles-e75131e4.cjs.js +0 -671
- package/styles-e75131e4.esm.js +0 -661
- package/svgDrawCommon-ecc5f780.cjs.js +0 -68
- package/svgDrawCommon-ecc5f780.esm.js +0 -60
- package/timeline-definition-4ee9bff4.cjs.js +0 -1161
- package/timeline-definition-4ee9bff4.esm.js +0 -1159
- package/xychartDiagram-e5e6b652.cjs.js +0 -3150
- package/xychartDiagram-e5e6b652.esm.js +0 -3148
- /package/{index.d.ts → src/index.d.ts} +0 -0
- /package/{libs/skill-web-chatbot/src/index.d.ts → src/index.ts} +0 -0
- /package/{schema.fr.json → src/schema.fr.json} +0 -0
- /package/{schema.json → src/schema.json} +0 -0
|
@@ -1,458 +0,0 @@
|
|
|
1
|
-
import { c as L, aK as z_, O as Ol } from './index.esm2.js';
|
|
2
|
-
|
|
3
|
-
function _instanceof(left, right) {
|
|
4
|
-
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
5
|
-
return !!right[Symbol.hasInstance](left);
|
|
6
|
-
} else {
|
|
7
|
-
return left instanceof right;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
function _type_of(obj) {
|
|
11
|
-
"@swc/helpers - typeof";
|
|
12
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
13
|
-
}
|
|
14
|
-
var O = function() {
|
|
15
|
-
var a = function a(u, t, e, n) {
|
|
16
|
-
for(e = e || {}, n = u.length; n--; e[u[n]] = t);
|
|
17
|
-
return e;
|
|
18
|
-
}, f = [
|
|
19
|
-
6,
|
|
20
|
-
9,
|
|
21
|
-
10
|
|
22
|
-
], m = {
|
|
23
|
-
trace: function trace() {},
|
|
24
|
-
yy: {},
|
|
25
|
-
symbols_: {
|
|
26
|
-
error: 2,
|
|
27
|
-
start: 3,
|
|
28
|
-
info: 4,
|
|
29
|
-
document: 5,
|
|
30
|
-
EOF: 6,
|
|
31
|
-
line: 7,
|
|
32
|
-
statement: 8,
|
|
33
|
-
NL: 9,
|
|
34
|
-
showInfo: 10,
|
|
35
|
-
$accept: 0,
|
|
36
|
-
$end: 1
|
|
37
|
-
},
|
|
38
|
-
terminals_: {
|
|
39
|
-
2: "error",
|
|
40
|
-
4: "info",
|
|
41
|
-
6: "EOF",
|
|
42
|
-
9: "NL",
|
|
43
|
-
10: "showInfo"
|
|
44
|
-
},
|
|
45
|
-
productions_: [
|
|
46
|
-
0,
|
|
47
|
-
[
|
|
48
|
-
3,
|
|
49
|
-
3
|
|
50
|
-
],
|
|
51
|
-
[
|
|
52
|
-
5,
|
|
53
|
-
0
|
|
54
|
-
],
|
|
55
|
-
[
|
|
56
|
-
5,
|
|
57
|
-
2
|
|
58
|
-
],
|
|
59
|
-
[
|
|
60
|
-
7,
|
|
61
|
-
1
|
|
62
|
-
],
|
|
63
|
-
[
|
|
64
|
-
7,
|
|
65
|
-
1
|
|
66
|
-
],
|
|
67
|
-
[
|
|
68
|
-
8,
|
|
69
|
-
1
|
|
70
|
-
]
|
|
71
|
-
],
|
|
72
|
-
performAction: function performAction(t, e, n, s, r, i, d) {
|
|
73
|
-
switch(i.length - 1, r){
|
|
74
|
-
case 1:
|
|
75
|
-
return s;
|
|
76
|
-
case 4:
|
|
77
|
-
break;
|
|
78
|
-
case 6:
|
|
79
|
-
s.setInfo(!0);
|
|
80
|
-
break;
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
table: [
|
|
84
|
-
{
|
|
85
|
-
3: 1,
|
|
86
|
-
4: [
|
|
87
|
-
1,
|
|
88
|
-
2
|
|
89
|
-
]
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
1: [
|
|
93
|
-
3
|
|
94
|
-
]
|
|
95
|
-
},
|
|
96
|
-
a(f, [
|
|
97
|
-
2,
|
|
98
|
-
2
|
|
99
|
-
], {
|
|
100
|
-
5: 3
|
|
101
|
-
}),
|
|
102
|
-
{
|
|
103
|
-
6: [
|
|
104
|
-
1,
|
|
105
|
-
4
|
|
106
|
-
],
|
|
107
|
-
7: 5,
|
|
108
|
-
8: 6,
|
|
109
|
-
9: [
|
|
110
|
-
1,
|
|
111
|
-
7
|
|
112
|
-
],
|
|
113
|
-
10: [
|
|
114
|
-
1,
|
|
115
|
-
8
|
|
116
|
-
]
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
1: [
|
|
120
|
-
2,
|
|
121
|
-
1
|
|
122
|
-
]
|
|
123
|
-
},
|
|
124
|
-
a(f, [
|
|
125
|
-
2,
|
|
126
|
-
3
|
|
127
|
-
]),
|
|
128
|
-
a(f, [
|
|
129
|
-
2,
|
|
130
|
-
4
|
|
131
|
-
]),
|
|
132
|
-
a(f, [
|
|
133
|
-
2,
|
|
134
|
-
5
|
|
135
|
-
]),
|
|
136
|
-
a(f, [
|
|
137
|
-
2,
|
|
138
|
-
6
|
|
139
|
-
])
|
|
140
|
-
],
|
|
141
|
-
defaultActions: {
|
|
142
|
-
4: [
|
|
143
|
-
2,
|
|
144
|
-
1
|
|
145
|
-
]
|
|
146
|
-
},
|
|
147
|
-
parseError: function parseError(t, e) {
|
|
148
|
-
if (e.recoverable) this.trace(t);
|
|
149
|
-
else {
|
|
150
|
-
var n = new Error(t);
|
|
151
|
-
throw n.hash = e, n;
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
parse: function parse(t) {
|
|
155
|
-
var e = this, n = [
|
|
156
|
-
0
|
|
157
|
-
], s = [], r = [
|
|
158
|
-
null
|
|
159
|
-
], i = [], d = this.table, $ = "", v = 0, L = 0, N = 2, T = 1, R = i.slice.call(arguments, 1), o = Object.create(this.lexer), p = {
|
|
160
|
-
yy: {}
|
|
161
|
-
};
|
|
162
|
-
for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy, E) && (p.yy[E] = this.yy[E]);
|
|
163
|
-
o.setInput(t, p.yy), p.yy.lexer = o, p.yy.parser = this, _type_of(o.yylloc) > "u" && (o.yylloc = {});
|
|
164
|
-
var I = o.yylloc;
|
|
165
|
-
i.push(I);
|
|
166
|
-
var z = o.options && o.options.ranges;
|
|
167
|
-
typeof p.yy.parseError == "function" ? this.parseError = p.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
168
|
-
function U() {
|
|
169
|
-
var y;
|
|
170
|
-
return y = s.pop() || o.lex() || T, typeof y != "number" && (_instanceof(y, Array) && (s = y, y = s.pop()), y = e.symbols_[y] || y), y;
|
|
171
|
-
}
|
|
172
|
-
for(var l, g, h, w, _ = {}, b, c, F, S;;){
|
|
173
|
-
if (g = n[n.length - 1], this.defaultActions[g] ? h = this.defaultActions[g] : ((l === null || (typeof l === "undefined" ? "undefined" : _type_of(l)) > "u") && (l = U()), h = d[g] && d[g][l]), (typeof h === "undefined" ? "undefined" : _type_of(h)) > "u" || !h.length || !h[0]) {
|
|
174
|
-
var A = "";
|
|
175
|
-
S = [];
|
|
176
|
-
for(b in d[g])this.terminals_[b] && b > N && S.push("'" + this.terminals_[b] + "'");
|
|
177
|
-
o.showPosition ? A = "Parse error on line " + (v + 1) + ":\n" + o.showPosition() + "\nExpecting " + S.join(", ") + ", got '" + (this.terminals_[l] || l) + "'" : A = "Parse error on line " + (v + 1) + ": Unexpected " + (l == T ? "end of input" : "'" + (this.terminals_[l] || l) + "'"), this.parseError(A, {
|
|
178
|
-
text: o.match,
|
|
179
|
-
token: this.terminals_[l] || l,
|
|
180
|
-
line: o.yylineno,
|
|
181
|
-
loc: I,
|
|
182
|
-
expected: S
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
|
-
if (_instanceof(h[0], Array) && h.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + g + ", token: " + l);
|
|
186
|
-
switch(h[0]){
|
|
187
|
-
case 1:
|
|
188
|
-
n.push(l), r.push(o.yytext), i.push(o.yylloc), n.push(h[1]), l = null, L = o.yyleng, $ = o.yytext, v = o.yylineno, I = o.yylloc;
|
|
189
|
-
break;
|
|
190
|
-
case 2:
|
|
191
|
-
if (c = this.productions_[h[1]][1], _.$ = r[r.length - c], _._$ = {
|
|
192
|
-
first_line: i[i.length - (c || 1)].first_line,
|
|
193
|
-
last_line: i[i.length - 1].last_line,
|
|
194
|
-
first_column: i[i.length - (c || 1)].first_column,
|
|
195
|
-
last_column: i[i.length - 1].last_column
|
|
196
|
-
}, z && (_._$.range = [
|
|
197
|
-
i[i.length - (c || 1)].range[0],
|
|
198
|
-
i[i.length - 1].range[1]
|
|
199
|
-
]), w = this.performAction.apply(_, [
|
|
200
|
-
$,
|
|
201
|
-
L,
|
|
202
|
-
v,
|
|
203
|
-
p.yy,
|
|
204
|
-
h[1],
|
|
205
|
-
r,
|
|
206
|
-
i
|
|
207
|
-
].concat(R)), (typeof w === "undefined" ? "undefined" : _type_of(w)) < "u") return w;
|
|
208
|
-
c && (n = n.slice(0, -1 * c * 2), r = r.slice(0, -1 * c), i = i.slice(0, -1 * c)), n.push(this.productions_[h[1]][0]), r.push(_.$), i.push(_._$), F = d[n[n.length - 2]][n[n.length - 1]], n.push(F);
|
|
209
|
-
break;
|
|
210
|
-
case 3:
|
|
211
|
-
return !0;
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
return !0;
|
|
215
|
-
}
|
|
216
|
-
}, k = function() {
|
|
217
|
-
var u = {
|
|
218
|
-
EOF: 1,
|
|
219
|
-
parseError: function parseError(e, n) {
|
|
220
|
-
if (this.yy.parser) this.yy.parser.parseError(e, n);
|
|
221
|
-
else throw new Error(e);
|
|
222
|
-
},
|
|
223
|
-
// resets the lexer, sets new input
|
|
224
|
-
setInput: function setInput(t, e) {
|
|
225
|
-
return this.yy = e || 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 = [
|
|
226
|
-
"INITIAL"
|
|
227
|
-
], this.yylloc = {
|
|
228
|
-
first_line: 1,
|
|
229
|
-
first_column: 0,
|
|
230
|
-
last_line: 1,
|
|
231
|
-
last_column: 0
|
|
232
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
233
|
-
0,
|
|
234
|
-
0
|
|
235
|
-
]), this.offset = 0, this;
|
|
236
|
-
},
|
|
237
|
-
// consumes and returns one char from the input
|
|
238
|
-
input: function input() {
|
|
239
|
-
var t = this._input[0];
|
|
240
|
-
this.yytext += t, this.yyleng++, this.offset++, this.match += t, this.matched += t;
|
|
241
|
-
var e = t.match(/(?:\r\n?|\n).*/g);
|
|
242
|
-
return e ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), t;
|
|
243
|
-
},
|
|
244
|
-
// unshifts one char (or a string) into the input
|
|
245
|
-
unput: function unput(t) {
|
|
246
|
-
var e = t.length, n = t.split(/(?:\r\n?|\n)/g);
|
|
247
|
-
this._input = t + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - e), this.offset -= e;
|
|
248
|
-
var s = this.match.split(/(?:\r\n?|\n)/g);
|
|
249
|
-
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);
|
|
250
|
-
var r = this.yylloc.range;
|
|
251
|
-
return this.yylloc = {
|
|
252
|
-
first_line: this.yylloc.first_line,
|
|
253
|
-
last_line: this.yylineno + 1,
|
|
254
|
-
first_column: this.yylloc.first_column,
|
|
255
|
-
last_column: n ? (n.length === s.length ? this.yylloc.first_column : 0) + s[s.length - n.length].length - n[0].length : this.yylloc.first_column - e
|
|
256
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
257
|
-
r[0],
|
|
258
|
-
r[0] + this.yyleng - e
|
|
259
|
-
]), this.yyleng = this.yytext.length, this;
|
|
260
|
-
},
|
|
261
|
-
// When called from action, caches matched text and appends it on next action
|
|
262
|
-
more: function more() {
|
|
263
|
-
return this._more = !0, this;
|
|
264
|
-
},
|
|
265
|
-
// 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.
|
|
266
|
-
reject: function reject() {
|
|
267
|
-
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
268
|
-
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(), {
|
|
269
|
-
text: "",
|
|
270
|
-
token: null,
|
|
271
|
-
line: this.yylineno
|
|
272
|
-
});
|
|
273
|
-
return this;
|
|
274
|
-
},
|
|
275
|
-
// retain first n characters of the match
|
|
276
|
-
less: function less(t) {
|
|
277
|
-
this.unput(this.match.slice(t));
|
|
278
|
-
},
|
|
279
|
-
// displays already matched input, i.e. for error messages
|
|
280
|
-
pastInput: function pastInput() {
|
|
281
|
-
var t = this.matched.substr(0, this.matched.length - this.match.length);
|
|
282
|
-
return (t.length > 20 ? "..." : "") + t.substr(-20).replace(/\n/g, "");
|
|
283
|
-
},
|
|
284
|
-
// displays upcoming input, i.e. for error messages
|
|
285
|
-
upcomingInput: function upcomingInput() {
|
|
286
|
-
var t = this.match;
|
|
287
|
-
return t.length < 20 && (t += this._input.substr(0, 20 - t.length)), (t.substr(0, 20) + (t.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
288
|
-
},
|
|
289
|
-
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
290
|
-
showPosition: function showPosition() {
|
|
291
|
-
var t = this.pastInput(), e = new Array(t.length + 1).join("-");
|
|
292
|
-
return t + this.upcomingInput() + "\n" + e + "^";
|
|
293
|
-
},
|
|
294
|
-
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
295
|
-
test_match: function test_match(t, e) {
|
|
296
|
-
var n, s, r;
|
|
297
|
-
if (this.options.backtrack_lexer && (r = {
|
|
298
|
-
yylineno: this.yylineno,
|
|
299
|
-
yylloc: {
|
|
300
|
-
first_line: this.yylloc.first_line,
|
|
301
|
-
last_line: this.last_line,
|
|
302
|
-
first_column: this.yylloc.first_column,
|
|
303
|
-
last_column: this.yylloc.last_column
|
|
304
|
-
},
|
|
305
|
-
yytext: this.yytext,
|
|
306
|
-
match: this.match,
|
|
307
|
-
matches: this.matches,
|
|
308
|
-
matched: this.matched,
|
|
309
|
-
yyleng: this.yyleng,
|
|
310
|
-
offset: this.offset,
|
|
311
|
-
_more: this._more,
|
|
312
|
-
_input: this._input,
|
|
313
|
-
yy: this.yy,
|
|
314
|
-
conditionStack: this.conditionStack.slice(0),
|
|
315
|
-
done: this.done
|
|
316
|
-
}, this.options.ranges && (r.yylloc.range = this.yylloc.range.slice(0))), s = t[0].match(/(?:\r\n?|\n).*/g), s && (this.yylineno += s.length), this.yylloc = {
|
|
317
|
-
first_line: this.yylloc.last_line,
|
|
318
|
-
last_line: this.yylineno + 1,
|
|
319
|
-
first_column: this.yylloc.last_column,
|
|
320
|
-
last_column: s ? s[s.length - 1].length - s[s.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + t[0].length
|
|
321
|
-
}, this.yytext += t[0], this.match += t[0], this.matches = t, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [
|
|
322
|
-
this.offset,
|
|
323
|
-
this.offset += this.yyleng
|
|
324
|
-
]), 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, e, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
|
|
325
|
-
if (this._backtrack) {
|
|
326
|
-
for(var i in r)this[i] = r[i];
|
|
327
|
-
return !1;
|
|
328
|
-
}
|
|
329
|
-
return !1;
|
|
330
|
-
},
|
|
331
|
-
// return next match in input
|
|
332
|
-
next: function next() {
|
|
333
|
-
if (this.done) return this.EOF;
|
|
334
|
-
this._input || (this.done = !0);
|
|
335
|
-
var t, e, n, s;
|
|
336
|
-
this._more || (this.yytext = "", this.match = "");
|
|
337
|
-
for(var r = this._currentRules(), i = 0; i < r.length; i++)if (n = this._input.match(this.rules[r[i]]), n && (!e || n[0].length > e[0].length)) {
|
|
338
|
-
if (e = n, s = i, this.options.backtrack_lexer) {
|
|
339
|
-
if (t = this.test_match(n, r[i]), t !== !1) return t;
|
|
340
|
-
if (this._backtrack) {
|
|
341
|
-
e = !1;
|
|
342
|
-
continue;
|
|
343
|
-
} else return !1;
|
|
344
|
-
} else if (!this.options.flex) break;
|
|
345
|
-
}
|
|
346
|
-
return e ? (t = this.test_match(e, r[s]), t !== !1 ? t : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
347
|
-
text: "",
|
|
348
|
-
token: null,
|
|
349
|
-
line: this.yylineno
|
|
350
|
-
});
|
|
351
|
-
},
|
|
352
|
-
// return next match that has a token
|
|
353
|
-
lex: function lex() {
|
|
354
|
-
var e = this.next();
|
|
355
|
-
return e || this.lex();
|
|
356
|
-
},
|
|
357
|
-
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
358
|
-
begin: function begin(e) {
|
|
359
|
-
this.conditionStack.push(e);
|
|
360
|
-
},
|
|
361
|
-
// pop the previously active lexer condition state off the condition stack
|
|
362
|
-
popState: function popState() {
|
|
363
|
-
var e = this.conditionStack.length - 1;
|
|
364
|
-
return e > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
365
|
-
},
|
|
366
|
-
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
367
|
-
_currentRules: function _currentRules() {
|
|
368
|
-
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
369
|
-
},
|
|
370
|
-
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
371
|
-
topState: function topState(e) {
|
|
372
|
-
return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
|
|
373
|
-
},
|
|
374
|
-
// alias for begin(condition)
|
|
375
|
-
pushState: function pushState(e) {
|
|
376
|
-
this.begin(e);
|
|
377
|
-
},
|
|
378
|
-
// return the number of states currently on the stack
|
|
379
|
-
stateStackSize: function stateStackSize() {
|
|
380
|
-
return this.conditionStack.length;
|
|
381
|
-
},
|
|
382
|
-
options: {
|
|
383
|
-
"case-insensitive": !0
|
|
384
|
-
},
|
|
385
|
-
performAction: function performAction(e, n, s, r) {
|
|
386
|
-
switch(s){
|
|
387
|
-
case 0:
|
|
388
|
-
return 4;
|
|
389
|
-
case 1:
|
|
390
|
-
return 9;
|
|
391
|
-
case 2:
|
|
392
|
-
return "space";
|
|
393
|
-
case 3:
|
|
394
|
-
return 10;
|
|
395
|
-
case 4:
|
|
396
|
-
return 6;
|
|
397
|
-
case 5:
|
|
398
|
-
return "TXT";
|
|
399
|
-
}
|
|
400
|
-
},
|
|
401
|
-
rules: [
|
|
402
|
-
/^(?:info\b)/i,
|
|
403
|
-
/^(?:[\s\n\r]+)/i,
|
|
404
|
-
/^(?:[\s]+)/i,
|
|
405
|
-
/^(?:showInfo\b)/i,
|
|
406
|
-
/^(?:$)/i,
|
|
407
|
-
/^(?:.)/i
|
|
408
|
-
],
|
|
409
|
-
conditions: {
|
|
410
|
-
INITIAL: {
|
|
411
|
-
rules: [
|
|
412
|
-
0,
|
|
413
|
-
1,
|
|
414
|
-
2,
|
|
415
|
-
3,
|
|
416
|
-
4,
|
|
417
|
-
5
|
|
418
|
-
],
|
|
419
|
-
inclusive: !0
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
};
|
|
423
|
-
return u;
|
|
424
|
-
}();
|
|
425
|
-
m.lexer = k;
|
|
426
|
-
function x() {
|
|
427
|
-
this.yy = {};
|
|
428
|
-
}
|
|
429
|
-
return x.prototype = m, m.Parser = x, new x();
|
|
430
|
-
}();
|
|
431
|
-
O.parser = O;
|
|
432
|
-
var B = O, j = {
|
|
433
|
-
info: !1
|
|
434
|
-
};
|
|
435
|
-
var P = j.info;
|
|
436
|
-
var V = function(a) {
|
|
437
|
-
P = a;
|
|
438
|
-
}, X = function() {
|
|
439
|
-
return P;
|
|
440
|
-
}, q = function() {
|
|
441
|
-
P = j.info;
|
|
442
|
-
}, C = {
|
|
443
|
-
clear: q,
|
|
444
|
-
setInfo: V,
|
|
445
|
-
getInfo: X
|
|
446
|
-
}, G = function(a, f, m) {
|
|
447
|
-
L.debug("rendering info diagram\n" + a);
|
|
448
|
-
var k = z_(f);
|
|
449
|
-
Ol(k, 100, 400, !0), k.append("g").append("text").attr("x", 100).attr("y", 40).attr("class", "version").attr("font-size", 32).style("text-anchor", "middle").text("v".concat(m));
|
|
450
|
-
}, H = {
|
|
451
|
-
draw: G
|
|
452
|
-
}, K = {
|
|
453
|
-
parser: B,
|
|
454
|
-
db: C,
|
|
455
|
-
renderer: H
|
|
456
|
-
};
|
|
457
|
-
|
|
458
|
-
export { K as diagram };
|
package/init-f9637058.cjs.js
DELETED