@schmitech/chatbot-widget 0.5.3 → 0.5.4

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.
Files changed (47) hide show
  1. package/dist/Tableau10-D7jGxypv-BNlEL2G_.js +9 -0
  2. package/dist/arc-D-ZI5fuh-CvDHBzlN.js +84 -0
  3. package/dist/blockDiagram-c4efeb88-DUnNxfIR-Bhh-x1q6.js +1221 -0
  4. package/dist/c4Diagram-c83219d4-cC4OxfBG-DRTO_jy5.js +1580 -0
  5. package/dist/channel-hcYozyrT-BSOc2Hp-.js +6 -0
  6. package/dist/chatbot-widget.bundle.js +3881 -1586
  7. package/dist/chatbot-widget.css +1 -1
  8. package/dist/chatbot-widget.es.js +12 -63659
  9. package/dist/chatbot-widget.umd.js +3880 -1585
  10. package/dist/classDiagram-beda092f-BLYhf5Mr-vk4Ko58U.js +218 -0
  11. package/dist/classDiagram-v2-2358418a-VBkbF8mr-Ca0l1fEs.js +201 -0
  12. package/dist/clone-BZIkCMuw-B9owNq6E.js +9 -0
  13. package/dist/config/index.d.ts +2 -2
  14. package/dist/createText-1719965b-UejsQ47k-B1DYw0WW.js +2955 -0
  15. package/dist/edges-96097737-1M5QvjOd-BpQVVoQN.js +1088 -0
  16. package/dist/erDiagram-0228fc6a-CjBNxHoC-DXDVlH55.js +929 -0
  17. package/dist/flowDb-c6c81e3f-Q2aoOxdz-DfrfI3H1.js +1127 -0
  18. package/dist/flowDiagram-50d868cf-zizL6ppE-BAH-_juu.js +788 -0
  19. package/dist/flowDiagram-v2-4f6560a1-DVx_vlO5-bkcRE0UW.js +18 -0
  20. package/dist/flowchart-elk-definition-6af322e1-Eyez36go-B_lk3oHt.js +48132 -0
  21. package/dist/ganttDiagram-a2739b55-C82Jv-TO-DoS-s1Yu.js +1743 -0
  22. package/dist/gitGraphDiagram-82fe8481-D9o_9-U8-DJF-ZeR8.js +1265 -0
  23. package/dist/graph-BjmGDpTe-DgbYS1Ie.js +848 -0
  24. package/dist/index-5325376f-CJL5w-Sw-BXp44Ej5.js +374 -0
  25. package/dist/index-s6Yb6o1D.js +116386 -0
  26. package/dist/infoDiagram-8eee0895-FpS-TLK_-BnvO_wUe.js +320 -0
  27. package/dist/journeyDiagram-c64418c1-CMj1efQ9-CshcRDhm.js +802 -0
  28. package/dist/layout-D_6hdlf3-B7guhEBN.js +1470 -0
  29. package/dist/mindmap-definition-8da855dc-D4SxHjUd-jFZFomnk.js +21924 -0
  30. package/dist/pieDiagram-a8764435-BF5ZqOjB-Mqzg2J4Q.js +498 -0
  31. package/dist/quadrantDiagram-1e28029f-GtQb80VU-DCy1QjzW.js +903 -0
  32. package/dist/requirementDiagram-08caed73-CHtPj3FO-AHEP0cIt.js +767 -0
  33. package/dist/sankeyDiagram-a04cb91d-CBlXzOgd-CWJTc5AX.js +802 -0
  34. package/dist/sequenceDiagram-c5b8d532-Cs1iyw97-oayOJE8v.js +2235 -0
  35. package/dist/shared/styles.d.ts +1 -1
  36. package/dist/stateDiagram-1ecb1508-CpRKICMQ-C5OFJeRZ.js +266 -0
  37. package/dist/stateDiagram-v2-c2b004d7-BtkhFyQ5-DxzE8Je5.js +185 -0
  38. package/dist/styles-b4e223ce-D0oeHeKH-BmNvk4NR.js +1090 -0
  39. package/dist/styles-ca3715f6-BouNgl-L-_qXsPDP3.js +961 -0
  40. package/dist/styles-d45a18b0-Cvhb8Ltu-43I3Cd_I.js +437 -0
  41. package/dist/svgDrawCommon-b86b1483-mg-1NjZY-DrmnILcc.js +65 -0
  42. package/dist/timeline-definition-faaaa080-3olbep_P-BqKpgsPZ.js +793 -0
  43. package/dist/ui/Message.d.ts +1 -5
  44. package/dist/ui/MessagesList.d.ts +1 -5
  45. package/dist/xychartDiagram-f5964ef8-BN6HXpmW-C-g_F1w2.js +1238 -0
  46. package/package.json +3 -3
  47. package/dist/ui/TypingEffect.d.ts +0 -18
@@ -0,0 +1,320 @@
1
+ import { O as U, aa as W, W as X } from "./index-s6Yb6o1D.js";
2
+ typeof window < "u" && (window.global = window);
3
+ var O = function() {
4
+ var c = function(a, t, n, e) {
5
+ for (n = n || {}, e = a.length; e--; n[a[e]] = t)
6
+ ;
7
+ return n;
8
+ }, f = [6, 9, 10], _ = {
9
+ trace: function() {
10
+ },
11
+ yy: {},
12
+ symbols_: { error: 2, start: 3, info: 4, document: 5, EOF: 6, line: 7, statement: 8, NL: 9, showInfo: 10, $accept: 0, $end: 1 },
13
+ terminals_: { 2: "error", 4: "info", 6: "EOF", 9: "NL", 10: "showInfo" },
14
+ productions_: [0, [3, 3], [5, 0], [5, 2], [7, 1], [7, 1], [8, 1]],
15
+ performAction: function(a, t, n, e, s, i, o) {
16
+ switch (i.length - 1, s) {
17
+ case 1:
18
+ return e;
19
+ case 4:
20
+ break;
21
+ case 6:
22
+ e.setInfo(!0);
23
+ break;
24
+ }
25
+ },
26
+ table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, c(f, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: 6, 9: [1, 7], 10: [1, 8] }, { 1: [2, 1] }, c(f, [2, 3]), c(f, [2, 4]), c(f, [2, 5]), c(f, [2, 6])],
27
+ defaultActions: { 4: [2, 1] },
28
+ parseError: function(a, t) {
29
+ if (t.recoverable)
30
+ this.trace(a);
31
+ else {
32
+ var n = new Error(a);
33
+ throw n.hash = t, n;
34
+ }
35
+ },
36
+ parse: function(a) {
37
+ var t = this, n = [0], e = [], s = [null], i = [], o = this.table, P = "", k = 0, $ = 0, T = 2, L = 1, z = i.slice.call(arguments, 1), r = Object.create(this.lexer), p = { yy: {} };
38
+ for (var w in this.yy)
39
+ Object.prototype.hasOwnProperty.call(this.yy, w) && (p.yy[w] = this.yy[w]);
40
+ r.setInput(a, p.yy), p.yy.lexer = r, p.yy.parser = this, typeof r.yylloc > "u" && (r.yylloc = {});
41
+ var I = r.yylloc;
42
+ i.push(I);
43
+ var F = r.options && r.options.ranges;
44
+ typeof p.yy.parseError == "function" ? this.parseError = p.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
45
+ function R() {
46
+ var u;
47
+ return u = e.pop() || r.lex() || L, typeof u != "number" && (u instanceof Array && (e = u, u = e.pop()), u = t.symbols_[u] || u), u;
48
+ }
49
+ for (var h, g, l, E, m = {}, x, y, j, b; ; ) {
50
+ if (g = n[n.length - 1], this.defaultActions[g] ? l = this.defaultActions[g] : ((h === null || typeof h > "u") && (h = R()), l = o[g] && o[g][h]), typeof l > "u" || !l.length || !l[0]) {
51
+ var S = "";
52
+ b = [];
53
+ for (x in o[g])
54
+ this.terminals_[x] && x > T && b.push("'" + this.terminals_[x] + "'");
55
+ r.showPosition ? S = "Parse error on line " + (k + 1) + `:
56
+ ` + r.showPosition() + `
57
+ Expecting ` + b.join(", ") + ", got '" + (this.terminals_[h] || h) + "'" : S = "Parse error on line " + (k + 1) + ": Unexpected " + (h == L ? "end of input" : "'" + (this.terminals_[h] || h) + "'"), this.parseError(S, {
58
+ text: r.match,
59
+ token: this.terminals_[h] || h,
60
+ line: r.yylineno,
61
+ loc: I,
62
+ expected: b
63
+ });
64
+ }
65
+ if (l[0] instanceof Array && l.length > 1)
66
+ throw new Error("Parse Error: multiple actions possible at state: " + g + ", token: " + h);
67
+ switch (l[0]) {
68
+ case 1:
69
+ n.push(h), s.push(r.yytext), i.push(r.yylloc), n.push(l[1]), h = null, $ = r.yyleng, P = r.yytext, k = r.yylineno, I = r.yylloc;
70
+ break;
71
+ case 2:
72
+ if (y = this.productions_[l[1]][1], m.$ = s[s.length - y], m._$ = {
73
+ first_line: i[i.length - (y || 1)].first_line,
74
+ last_line: i[i.length - 1].last_line,
75
+ first_column: i[i.length - (y || 1)].first_column,
76
+ last_column: i[i.length - 1].last_column
77
+ }, F && (m._$.range = [
78
+ i[i.length - (y || 1)].range[0],
79
+ i[i.length - 1].range[1]
80
+ ]), E = this.performAction.apply(m, [
81
+ P,
82
+ $,
83
+ k,
84
+ p.yy,
85
+ l[1],
86
+ s,
87
+ i
88
+ ].concat(z)), typeof E < "u")
89
+ return E;
90
+ y && (n = n.slice(0, -1 * y * 2), s = s.slice(0, -1 * y), i = i.slice(0, -1 * y)), n.push(this.productions_[l[1]][0]), s.push(m.$), i.push(m._$), j = o[n[n.length - 2]][n[n.length - 1]], n.push(j);
91
+ break;
92
+ case 3:
93
+ return !0;
94
+ }
95
+ }
96
+ return !0;
97
+ }
98
+ }, d = /* @__PURE__ */ function() {
99
+ var a = {
100
+ EOF: 1,
101
+ parseError: function(t, n) {
102
+ if (this.yy.parser)
103
+ this.yy.parser.parseError(t, n);
104
+ else
105
+ throw new Error(t);
106
+ },
107
+ // resets the lexer, sets new input
108
+ setInput: function(t, n) {
109
+ return this.yy = n || 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 = ["INITIAL"], this.yylloc = {
110
+ first_line: 1,
111
+ first_column: 0,
112
+ last_line: 1,
113
+ last_column: 0
114
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
115
+ },
116
+ // consumes and returns one char from the input
117
+ input: function() {
118
+ var t = this._input[0];
119
+ this.yytext += t, this.yyleng++, this.offset++, this.match += t, this.matched += t;
120
+ var n = t.match(/(?:\r\n?|\n).*/g);
121
+ return n ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), t;
122
+ },
123
+ // unshifts one char (or a string) into the input
124
+ unput: function(t) {
125
+ var n = t.length, e = t.split(/(?:\r\n?|\n)/g);
126
+ this._input = t + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n;
127
+ var s = this.match.split(/(?:\r\n?|\n)/g);
128
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), e.length - 1 && (this.yylineno -= e.length - 1);
129
+ var i = this.yylloc.range;
130
+ return this.yylloc = {
131
+ first_line: this.yylloc.first_line,
132
+ last_line: this.yylineno + 1,
133
+ first_column: this.yylloc.first_column,
134
+ last_column: e ? (e.length === s.length ? this.yylloc.first_column : 0) + s[s.length - e.length].length - e[0].length : this.yylloc.first_column - n
135
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - n]), this.yyleng = this.yytext.length, this;
136
+ },
137
+ // When called from action, caches matched text and appends it on next action
138
+ more: function() {
139
+ return this._more = !0, this;
140
+ },
141
+ // 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.
142
+ reject: function() {
143
+ if (this.options.backtrack_lexer)
144
+ this._backtrack = !0;
145
+ else
146
+ 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).
147
+ ` + this.showPosition(), {
148
+ text: "",
149
+ token: null,
150
+ line: this.yylineno
151
+ });
152
+ return this;
153
+ },
154
+ // retain first n characters of the match
155
+ less: function(t) {
156
+ this.unput(this.match.slice(t));
157
+ },
158
+ // displays already matched input, i.e. for error messages
159
+ pastInput: function() {
160
+ var t = this.matched.substr(0, this.matched.length - this.match.length);
161
+ return (t.length > 20 ? "..." : "") + t.substr(-20).replace(/\n/g, "");
162
+ },
163
+ // displays upcoming input, i.e. for error messages
164
+ upcomingInput: function() {
165
+ var t = this.match;
166
+ return t.length < 20 && (t += this._input.substr(0, 20 - t.length)), (t.substr(0, 20) + (t.length > 20 ? "..." : "")).replace(/\n/g, "");
167
+ },
168
+ // displays the character position where the lexing error occurred, i.e. for error messages
169
+ showPosition: function() {
170
+ var t = this.pastInput(), n = new Array(t.length + 1).join("-");
171
+ return t + this.upcomingInput() + `
172
+ ` + n + "^";
173
+ },
174
+ // test the lexed token: return FALSE when not a match, otherwise return token
175
+ test_match: function(t, n) {
176
+ var e, s, i;
177
+ if (this.options.backtrack_lexer && (i = {
178
+ yylineno: this.yylineno,
179
+ yylloc: {
180
+ first_line: this.yylloc.first_line,
181
+ last_line: this.last_line,
182
+ first_column: this.yylloc.first_column,
183
+ last_column: this.yylloc.last_column
184
+ },
185
+ yytext: this.yytext,
186
+ match: this.match,
187
+ matches: this.matches,
188
+ matched: this.matched,
189
+ yyleng: this.yyleng,
190
+ offset: this.offset,
191
+ _more: this._more,
192
+ _input: this._input,
193
+ yy: this.yy,
194
+ conditionStack: this.conditionStack.slice(0),
195
+ done: this.done
196
+ }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), s = t[0].match(/(?:\r\n?|\n).*/g), s && (this.yylineno += s.length), this.yylloc = {
197
+ first_line: this.yylloc.last_line,
198
+ last_line: this.yylineno + 1,
199
+ first_column: this.yylloc.last_column,
200
+ last_column: s ? s[s.length - 1].length - s[s.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + t[0].length
201
+ }, this.yytext += t[0], this.match += t[0], this.matches = t, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(t[0].length), this.matched += t[0], e = this.performAction.call(this, this.yy, this, n, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), e)
202
+ return e;
203
+ if (this._backtrack) {
204
+ for (var o in i)
205
+ this[o] = i[o];
206
+ return !1;
207
+ }
208
+ return !1;
209
+ },
210
+ // return next match in input
211
+ next: function() {
212
+ if (this.done)
213
+ return this.EOF;
214
+ this._input || (this.done = !0);
215
+ var t, n, e, s;
216
+ this._more || (this.yytext = "", this.match = "");
217
+ for (var i = this._currentRules(), o = 0; o < i.length; o++)
218
+ if (e = this._input.match(this.rules[i[o]]), e && (!n || e[0].length > n[0].length)) {
219
+ if (n = e, s = o, this.options.backtrack_lexer) {
220
+ if (t = this.test_match(e, i[o]), t !== !1)
221
+ return t;
222
+ if (this._backtrack) {
223
+ n = !1;
224
+ continue;
225
+ } else
226
+ return !1;
227
+ } else if (!this.options.flex)
228
+ break;
229
+ }
230
+ return n ? (t = this.test_match(n, i[s]), t !== !1 ? t : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
231
+ ` + this.showPosition(), {
232
+ text: "",
233
+ token: null,
234
+ line: this.yylineno
235
+ });
236
+ },
237
+ // return next match that has a token
238
+ lex: function() {
239
+ var t = this.next();
240
+ return t || this.lex();
241
+ },
242
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
243
+ begin: function(t) {
244
+ this.conditionStack.push(t);
245
+ },
246
+ // pop the previously active lexer condition state off the condition stack
247
+ popState: function() {
248
+ var t = this.conditionStack.length - 1;
249
+ return t > 0 ? this.conditionStack.pop() : this.conditionStack[0];
250
+ },
251
+ // produce the lexer rule set which is active for the currently active lexer condition state
252
+ _currentRules: function() {
253
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
254
+ },
255
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
256
+ topState: function(t) {
257
+ return t = this.conditionStack.length - 1 - Math.abs(t || 0), t >= 0 ? this.conditionStack[t] : "INITIAL";
258
+ },
259
+ // alias for begin(condition)
260
+ pushState: function(t) {
261
+ this.begin(t);
262
+ },
263
+ // return the number of states currently on the stack
264
+ stateStackSize: function() {
265
+ return this.conditionStack.length;
266
+ },
267
+ options: { "case-insensitive": !0 },
268
+ performAction: function(t, n, e, s) {
269
+ switch (e) {
270
+ case 0:
271
+ return 4;
272
+ case 1:
273
+ return 9;
274
+ case 2:
275
+ return "space";
276
+ case 3:
277
+ return 10;
278
+ case 4:
279
+ return 6;
280
+ case 5:
281
+ return "TXT";
282
+ }
283
+ },
284
+ rules: [/^(?:info\b)/i, /^(?:[\s\n\r]+)/i, /^(?:[\s]+)/i, /^(?:showInfo\b)/i, /^(?:$)/i, /^(?:.)/i],
285
+ conditions: { INITIAL: { rules: [0, 1, 2, 3, 4, 5], inclusive: !0 } }
286
+ };
287
+ return a;
288
+ }();
289
+ _.lexer = d;
290
+ function v() {
291
+ this.yy = {};
292
+ }
293
+ return v.prototype = _, _.Parser = v, new v();
294
+ }();
295
+ O.parser = O;
296
+ const q = O, N = {
297
+ info: !1
298
+ };
299
+ let A = N.info;
300
+ const B = (c) => {
301
+ A = c;
302
+ }, C = () => A, G = () => {
303
+ A = N.info;
304
+ }, H = {
305
+ clear: G,
306
+ setInfo: B,
307
+ getInfo: C
308
+ }, K = (c, f, _) => {
309
+ U.debug(`rendering info diagram
310
+ ` + c);
311
+ const d = W(f);
312
+ X(d, 100, 400, !0), d.append("g").append("text").attr("x", 100).attr("y", 40).attr("class", "version").attr("font-size", 32).style("text-anchor", "middle").text(`v${_}`);
313
+ }, M = { draw: K }, Y = {
314
+ parser: q,
315
+ db: H,
316
+ renderer: M
317
+ };
318
+ export {
319
+ Y as diagram
320
+ };