smart-chat-asp 2.11.1

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 (57) hide show
  1. package/README.md +364 -0
  2. package/README.zh.md +367 -0
  3. package/lib/Tableau10-2ff7471d.mjs +9 -0
  4. package/lib/arc-33fcfaff.mjs +86 -0
  5. package/lib/array-2ff2c7a6.mjs +6 -0
  6. package/lib/blockDiagram-38ab4fdb-3c912e88.mjs +1230 -0
  7. package/lib/c4Diagram-3d4e48cf-49908d37.mjs +1580 -0
  8. package/lib/channel-890a888a.mjs +5 -0
  9. package/lib/classDiagram-70f12bd4-ace7b178.mjs +221 -0
  10. package/lib/classDiagram-v2-f2320105-5848085d.mjs +207 -0
  11. package/lib/clone-59a3b16a.mjs +8 -0
  12. package/lib/createText-2e5e7dd3-898a4de3.mjs +2966 -0
  13. package/lib/edges-e0da2a9e-91b210e9.mjs +1083 -0
  14. package/lib/erDiagram-9861fffd-c13b7611.mjs +933 -0
  15. package/lib/favicon.ico +0 -0
  16. package/lib/favicon.svg +1 -0
  17. package/lib/flowDb-956e92f1-56fdcb20.mjs +1126 -0
  18. package/lib/flowDiagram-66a62f08-4023035a.mjs +798 -0
  19. package/lib/flowDiagram-v2-96b9c2cf-d28d8b17.mjs +26 -0
  20. package/lib/flowchart-elk-definition-4a651766-ab5b1391.mjs +48407 -0
  21. package/lib/ganttDiagram-c361ad54-ae59a5e3.mjs +2504 -0
  22. package/lib/gitGraphDiagram-72cf32ee-5bdf46bb.mjs +1265 -0
  23. package/lib/graph-9ea4e80a.mjs +512 -0
  24. package/lib/index-3862675e-b7177fa1.mjs +373 -0
  25. package/lib/index-958a220b.mjs +1470 -0
  26. package/lib/index-c42b0ff4.mjs +40 -0
  27. package/lib/index-f76d9453.mjs +28 -0
  28. package/lib/infoDiagram-f8f76790-5f3835f9.mjs +320 -0
  29. package/lib/init-f9637058.mjs +16 -0
  30. package/lib/journeyDiagram-49397b02-df06b21d.mjs +805 -0
  31. package/lib/layout-d3bc02b9.mjs +1495 -0
  32. package/lib/line-b044df13.mjs +34 -0
  33. package/lib/linear-e60140ad.mjs +447 -0
  34. package/lib/main-740da2e1.mjs +117801 -0
  35. package/lib/mindmap-definition-fc14e90a-3bfaf2a6.mjs +19384 -0
  36. package/lib/ordinal-980380c7.mjs +65 -0
  37. package/lib/path-428ebac9.mjs +91 -0
  38. package/lib/pieDiagram-8a3498a8-a8359c54.mjs +503 -0
  39. package/lib/pwa-192x192.png +0 -0
  40. package/lib/pwa-512x512.png +0 -0
  41. package/lib/quadrantDiagram-120e2f19-367eeae7.mjs +905 -0
  42. package/lib/requirementDiagram-deff3bca-27d1e96b.mjs +770 -0
  43. package/lib/sankeyDiagram-04a897e0-a9e993ee.mjs +818 -0
  44. package/lib/sequenceDiagram-704730f1-05f9d7b1.mjs +2235 -0
  45. package/lib/smart-chat.es.js +5 -0
  46. package/lib/smart-chat.umd.js +5444 -0
  47. package/lib/stateDiagram-587899a1-f3e4a81e.mjs +269 -0
  48. package/lib/stateDiagram-v2-d93cdb3a-763ad0ff.mjs +191 -0
  49. package/lib/style.css +1 -0
  50. package/lib/styles-6aaf32cf-e32ec570.mjs +960 -0
  51. package/lib/styles-9a916d00-18b5fd0d.mjs +1089 -0
  52. package/lib/styles-c10674c1-134300a0.mjs +433 -0
  53. package/lib/svgDrawCommon-08f97a94-f04d54dc.mjs +64 -0
  54. package/lib/timeline-definition-85554ec2-1989252c.mjs +796 -0
  55. package/lib/xychartDiagram-e933f94c-f7d5a550.mjs +1285 -0
  56. package/license +21 -0
  57. package/package.json +79 -0
@@ -0,0 +1,1285 @@
1
+ import { aI as zt, aJ as ot, aG as wt, aF as Ft, T as Nt, U as Xt, am as Yt, an as St, W as Ht, X as $t, ao as Ut, a2 as Ct, aD as qt, a3 as jt, Z as Gt } from "./main-740da2e1.mjs";
2
+ import { c as Qt } from "./createText-2e5e7dd3-898a4de3.mjs";
3
+ import { i as Kt } from "./init-f9637058.mjs";
4
+ import { o as Zt } from "./ordinal-980380c7.mjs";
5
+ import { l as ft } from "./linear-e60140ad.mjs";
6
+ import { l as pt } from "./line-b044df13.mjs";
7
+ import "vue";
8
+ import "./array-2ff2c7a6.mjs";
9
+ import "./path-428ebac9.mjs";
10
+ function Jt(e, t, i) {
11
+ e = +e, t = +t, i = (n = arguments.length) < 2 ? (t = e, e = 0, 1) : n < 3 ? 1 : +i;
12
+ for (var s = -1, n = Math.max(0, Math.ceil((t - e) / i)) | 0, o = new Array(n); ++s < n; )
13
+ o[s] = e + s * i;
14
+ return o;
15
+ }
16
+ function st() {
17
+ var e = Zt().unknown(void 0), t = e.domain, i = e.range, s = 0, n = 1, o, c, f = !1, d = 0, R = 0, _ = 0.5;
18
+ delete e.unknown;
19
+ function A() {
20
+ var m = t().length, T = n < s, S = T ? n : s, P = T ? s : n;
21
+ o = (P - S) / Math.max(1, m - d + R * 2), f && (o = Math.floor(o)), S += (P - S - o * (m - d)) * _, c = o * (1 - d), f && (S = Math.round(S), c = Math.round(c));
22
+ var p = Jt(m).map(function(C) {
23
+ return S + o * C;
24
+ });
25
+ return i(T ? p.reverse() : p);
26
+ }
27
+ return e.domain = function(m) {
28
+ return arguments.length ? (t(m), A()) : t();
29
+ }, e.range = function(m) {
30
+ return arguments.length ? ([s, n] = m, s = +s, n = +n, A()) : [s, n];
31
+ }, e.rangeRound = function(m) {
32
+ return [s, n] = m, s = +s, n = +n, f = !0, A();
33
+ }, e.bandwidth = function() {
34
+ return c;
35
+ }, e.step = function() {
36
+ return o;
37
+ }, e.round = function(m) {
38
+ return arguments.length ? (f = !!m, A()) : f;
39
+ }, e.padding = function(m) {
40
+ return arguments.length ? (d = Math.min(1, R = +m), A()) : d;
41
+ }, e.paddingInner = function(m) {
42
+ return arguments.length ? (d = Math.min(1, m), A()) : d;
43
+ }, e.paddingOuter = function(m) {
44
+ return arguments.length ? (R = +m, A()) : R;
45
+ }, e.align = function(m) {
46
+ return arguments.length ? (_ = Math.max(0, Math.min(1, m)), A()) : _;
47
+ }, e.copy = function() {
48
+ return st(t(), [s, n]).round(f).paddingInner(d).paddingOuter(R).align(_);
49
+ }, Kt.apply(A(), arguments);
50
+ }
51
+ var nt = function() {
52
+ var e = function(V, r, l, u) {
53
+ for (l = l || {}, u = V.length; u--; l[V[u]] = r)
54
+ ;
55
+ return l;
56
+ }, t = [1, 10, 12, 14, 16, 18, 19, 21, 23], i = [2, 6], s = [1, 3], n = [1, 5], o = [1, 6], c = [1, 7], f = [1, 5, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], d = [1, 25], R = [1, 26], _ = [1, 28], A = [1, 29], m = [1, 30], T = [1, 31], S = [1, 32], P = [1, 33], p = [1, 34], C = [1, 35], h = [1, 36], L = [1, 37], z = [1, 43], lt = [1, 42], ct = [1, 47], $ = [1, 50], w = [1, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], Q = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36], E = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50], ut = [1, 64], K = {
57
+ trace: function() {
58
+ },
59
+ yy: {},
60
+ symbols_: { error: 2, start: 3, eol: 4, XYCHART: 5, chartConfig: 6, document: 7, CHART_ORIENTATION: 8, statement: 9, title: 10, text: 11, X_AXIS: 12, parseXAxis: 13, Y_AXIS: 14, parseYAxis: 15, LINE: 16, plotData: 17, BAR: 18, acc_title: 19, acc_title_value: 20, acc_descr: 21, acc_descr_value: 22, acc_descr_multiline_value: 23, SQUARE_BRACES_START: 24, commaSeparatedNumbers: 25, SQUARE_BRACES_END: 26, NUMBER_WITH_DECIMAL: 27, COMMA: 28, xAxisData: 29, bandData: 30, ARROW_DELIMITER: 31, commaSeparatedTexts: 32, yAxisData: 33, NEWLINE: 34, SEMI: 35, EOF: 36, alphaNum: 37, STR: 38, MD_STR: 39, alphaNumToken: 40, AMP: 41, NUM: 42, ALPHA: 43, PLUS: 44, EQUALS: 45, MULT: 46, DOT: 47, BRKT: 48, MINUS: 49, UNDERSCORE: 50, $accept: 0, $end: 1 },
61
+ terminals_: { 2: "error", 5: "XYCHART", 8: "CHART_ORIENTATION", 10: "title", 12: "X_AXIS", 14: "Y_AXIS", 16: "LINE", 18: "BAR", 19: "acc_title", 20: "acc_title_value", 21: "acc_descr", 22: "acc_descr_value", 23: "acc_descr_multiline_value", 24: "SQUARE_BRACES_START", 26: "SQUARE_BRACES_END", 27: "NUMBER_WITH_DECIMAL", 28: "COMMA", 31: "ARROW_DELIMITER", 34: "NEWLINE", 35: "SEMI", 36: "EOF", 38: "STR", 39: "MD_STR", 41: "AMP", 42: "NUM", 43: "ALPHA", 44: "PLUS", 45: "EQUALS", 46: "MULT", 47: "DOT", 48: "BRKT", 49: "MINUS", 50: "UNDERSCORE" },
62
+ productions_: [0, [3, 2], [3, 3], [3, 2], [3, 1], [6, 1], [7, 0], [7, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 3], [9, 2], [9, 3], [9, 2], [9, 2], [9, 1], [17, 3], [25, 3], [25, 1], [13, 1], [13, 2], [13, 1], [29, 1], [29, 3], [30, 3], [32, 3], [32, 1], [15, 1], [15, 2], [15, 1], [33, 3], [4, 1], [4, 1], [4, 1], [11, 1], [11, 1], [11, 1], [37, 1], [37, 2], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1]],
63
+ performAction: function(r, l, u, g, b, a, F) {
64
+ var x = a.length - 1;
65
+ switch (b) {
66
+ case 5:
67
+ g.setOrientation(a[x]);
68
+ break;
69
+ case 9:
70
+ g.setDiagramTitle(a[x].text.trim());
71
+ break;
72
+ case 12:
73
+ g.setLineData({ text: "", type: "text" }, a[x]);
74
+ break;
75
+ case 13:
76
+ g.setLineData(a[x - 1], a[x]);
77
+ break;
78
+ case 14:
79
+ g.setBarData({ text: "", type: "text" }, a[x]);
80
+ break;
81
+ case 15:
82
+ g.setBarData(a[x - 1], a[x]);
83
+ break;
84
+ case 16:
85
+ this.$ = a[x].trim(), g.setAccTitle(this.$);
86
+ break;
87
+ case 17:
88
+ case 18:
89
+ this.$ = a[x].trim(), g.setAccDescription(this.$);
90
+ break;
91
+ case 19:
92
+ this.$ = a[x - 1];
93
+ break;
94
+ case 20:
95
+ this.$ = [Number(a[x - 2]), ...a[x]];
96
+ break;
97
+ case 21:
98
+ this.$ = [Number(a[x])];
99
+ break;
100
+ case 22:
101
+ g.setXAxisTitle(a[x]);
102
+ break;
103
+ case 23:
104
+ g.setXAxisTitle(a[x - 1]);
105
+ break;
106
+ case 24:
107
+ g.setXAxisTitle({ type: "text", text: "" });
108
+ break;
109
+ case 25:
110
+ g.setXAxisBand(a[x]);
111
+ break;
112
+ case 26:
113
+ g.setXAxisRangeData(Number(a[x - 2]), Number(a[x]));
114
+ break;
115
+ case 27:
116
+ this.$ = a[x - 1];
117
+ break;
118
+ case 28:
119
+ this.$ = [a[x - 2], ...a[x]];
120
+ break;
121
+ case 29:
122
+ this.$ = [a[x]];
123
+ break;
124
+ case 30:
125
+ g.setYAxisTitle(a[x]);
126
+ break;
127
+ case 31:
128
+ g.setYAxisTitle(a[x - 1]);
129
+ break;
130
+ case 32:
131
+ g.setYAxisTitle({ type: "text", text: "" });
132
+ break;
133
+ case 33:
134
+ g.setYAxisRangeData(Number(a[x - 2]), Number(a[x]));
135
+ break;
136
+ case 37:
137
+ this.$ = { text: a[x], type: "text" };
138
+ break;
139
+ case 38:
140
+ this.$ = { text: a[x], type: "text" };
141
+ break;
142
+ case 39:
143
+ this.$ = { text: a[x], type: "markdown" };
144
+ break;
145
+ case 40:
146
+ this.$ = a[x];
147
+ break;
148
+ case 41:
149
+ this.$ = a[x - 1] + "" + a[x];
150
+ break;
151
+ }
152
+ },
153
+ table: [e(t, i, { 3: 1, 4: 2, 7: 4, 5: s, 34: n, 35: o, 36: c }), { 1: [3] }, e(t, i, { 4: 2, 7: 4, 3: 8, 5: s, 34: n, 35: o, 36: c }), e(t, i, { 4: 2, 7: 4, 6: 9, 3: 10, 5: s, 8: [1, 11], 34: n, 35: o, 36: c }), { 1: [2, 4], 9: 12, 10: [1, 13], 12: [1, 14], 14: [1, 15], 16: [1, 16], 18: [1, 17], 19: [1, 18], 21: [1, 19], 23: [1, 20] }, e(f, [2, 34]), e(f, [2, 35]), e(f, [2, 36]), { 1: [2, 1] }, e(t, i, { 4: 2, 7: 4, 3: 21, 5: s, 34: n, 35: o, 36: c }), { 1: [2, 3] }, e(f, [2, 5]), e(t, [2, 7], { 4: 22, 34: n, 35: o, 36: c }), { 11: 23, 37: 24, 38: d, 39: R, 40: 27, 41: _, 42: A, 43: m, 44: T, 45: S, 46: P, 47: p, 48: C, 49: h, 50: L }, { 11: 39, 13: 38, 24: z, 27: lt, 29: 40, 30: 41, 37: 24, 38: d, 39: R, 40: 27, 41: _, 42: A, 43: m, 44: T, 45: S, 46: P, 47: p, 48: C, 49: h, 50: L }, { 11: 45, 15: 44, 27: ct, 33: 46, 37: 24, 38: d, 39: R, 40: 27, 41: _, 42: A, 43: m, 44: T, 45: S, 46: P, 47: p, 48: C, 49: h, 50: L }, { 11: 49, 17: 48, 24: $, 37: 24, 38: d, 39: R, 40: 27, 41: _, 42: A, 43: m, 44: T, 45: S, 46: P, 47: p, 48: C, 49: h, 50: L }, { 11: 52, 17: 51, 24: $, 37: 24, 38: d, 39: R, 40: 27, 41: _, 42: A, 43: m, 44: T, 45: S, 46: P, 47: p, 48: C, 49: h, 50: L }, { 20: [1, 53] }, { 22: [1, 54] }, e(w, [2, 18]), { 1: [2, 2] }, e(w, [2, 8]), e(w, [2, 9]), e(Q, [2, 37], { 40: 55, 41: _, 42: A, 43: m, 44: T, 45: S, 46: P, 47: p, 48: C, 49: h, 50: L }), e(Q, [2, 38]), e(Q, [2, 39]), e(E, [2, 40]), e(E, [2, 42]), e(E, [2, 43]), e(E, [2, 44]), e(E, [2, 45]), e(E, [2, 46]), e(E, [2, 47]), e(E, [2, 48]), e(E, [2, 49]), e(E, [2, 50]), e(E, [2, 51]), e(w, [2, 10]), e(w, [2, 22], { 30: 41, 29: 56, 24: z, 27: lt }), e(w, [2, 24]), e(w, [2, 25]), { 31: [1, 57] }, { 11: 59, 32: 58, 37: 24, 38: d, 39: R, 40: 27, 41: _, 42: A, 43: m, 44: T, 45: S, 46: P, 47: p, 48: C, 49: h, 50: L }, e(w, [2, 11]), e(w, [2, 30], { 33: 60, 27: ct }), e(w, [2, 32]), { 31: [1, 61] }, e(w, [2, 12]), { 17: 62, 24: $ }, { 25: 63, 27: ut }, e(w, [2, 14]), { 17: 65, 24: $ }, e(w, [2, 16]), e(w, [2, 17]), e(E, [2, 41]), e(w, [2, 23]), { 27: [1, 66] }, { 26: [1, 67] }, { 26: [2, 29], 28: [1, 68] }, e(w, [2, 31]), { 27: [1, 69] }, e(w, [2, 13]), { 26: [1, 70] }, { 26: [2, 21], 28: [1, 71] }, e(w, [2, 15]), e(w, [2, 26]), e(w, [2, 27]), { 11: 59, 32: 72, 37: 24, 38: d, 39: R, 40: 27, 41: _, 42: A, 43: m, 44: T, 45: S, 46: P, 47: p, 48: C, 49: h, 50: L }, e(w, [2, 33]), e(w, [2, 19]), { 25: 73, 27: ut }, { 26: [2, 28] }, { 26: [2, 20] }],
154
+ defaultActions: { 8: [2, 1], 10: [2, 3], 21: [2, 2], 72: [2, 28], 73: [2, 20] },
155
+ parseError: function(r, l) {
156
+ if (l.recoverable)
157
+ this.trace(r);
158
+ else {
159
+ var u = new Error(r);
160
+ throw u.hash = l, u;
161
+ }
162
+ },
163
+ parse: function(r) {
164
+ var l = this, u = [0], g = [], b = [null], a = [], F = this.table, x = "", U = 0, gt = 0, Vt = 2, xt = 1, Wt = a.slice.call(arguments, 1), k = Object.create(this.lexer), W = { yy: {} };
165
+ for (var J in this.yy)
166
+ Object.prototype.hasOwnProperty.call(this.yy, J) && (W.yy[J] = this.yy[J]);
167
+ k.setInput(r, W.yy), W.yy.lexer = k, W.yy.parser = this, typeof k.yylloc > "u" && (k.yylloc = {});
168
+ var tt = k.yylloc;
169
+ a.push(tt);
170
+ var Bt = k.options && k.options.ranges;
171
+ typeof W.yy.parseError == "function" ? this.parseError = W.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
172
+ function Ot() {
173
+ var I;
174
+ return I = g.pop() || k.lex() || xt, typeof I != "number" && (I instanceof Array && (g = I, I = g.pop()), I = l.symbols_[I] || I), I;
175
+ }
176
+ for (var D, B, v, it, O = {}, q, M, dt, j; ; ) {
177
+ if (B = u[u.length - 1], this.defaultActions[B] ? v = this.defaultActions[B] : ((D === null || typeof D > "u") && (D = Ot()), v = F[B] && F[B][D]), typeof v > "u" || !v.length || !v[0]) {
178
+ var et = "";
179
+ j = [];
180
+ for (q in F[B])
181
+ this.terminals_[q] && q > Vt && j.push("'" + this.terminals_[q] + "'");
182
+ k.showPosition ? et = "Parse error on line " + (U + 1) + `:
183
+ ` + k.showPosition() + `
184
+ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[D] || D) + "'" : et = "Parse error on line " + (U + 1) + ": Unexpected " + (D == xt ? "end of input" : "'" + (this.terminals_[D] || D) + "'"), this.parseError(et, {
185
+ text: k.match,
186
+ token: this.terminals_[D] || D,
187
+ line: k.yylineno,
188
+ loc: tt,
189
+ expected: j
190
+ });
191
+ }
192
+ if (v[0] instanceof Array && v.length > 1)
193
+ throw new Error("Parse Error: multiple actions possible at state: " + B + ", token: " + D);
194
+ switch (v[0]) {
195
+ case 1:
196
+ u.push(D), b.push(k.yytext), a.push(k.yylloc), u.push(v[1]), D = null, gt = k.yyleng, x = k.yytext, U = k.yylineno, tt = k.yylloc;
197
+ break;
198
+ case 2:
199
+ if (M = this.productions_[v[1]][1], O.$ = b[b.length - M], O._$ = {
200
+ first_line: a[a.length - (M || 1)].first_line,
201
+ last_line: a[a.length - 1].last_line,
202
+ first_column: a[a.length - (M || 1)].first_column,
203
+ last_column: a[a.length - 1].last_column
204
+ }, Bt && (O._$.range = [
205
+ a[a.length - (M || 1)].range[0],
206
+ a[a.length - 1].range[1]
207
+ ]), it = this.performAction.apply(O, [
208
+ x,
209
+ gt,
210
+ U,
211
+ W.yy,
212
+ v[1],
213
+ b,
214
+ a
215
+ ].concat(Wt)), typeof it < "u")
216
+ return it;
217
+ M && (u = u.slice(0, -1 * M * 2), b = b.slice(0, -1 * M), a = a.slice(0, -1 * M)), u.push(this.productions_[v[1]][0]), b.push(O.$), a.push(O._$), dt = F[u[u.length - 2]][u[u.length - 1]], u.push(dt);
218
+ break;
219
+ case 3:
220
+ return !0;
221
+ }
222
+ }
223
+ return !0;
224
+ }
225
+ }, It = function() {
226
+ var V = {
227
+ EOF: 1,
228
+ parseError: function(l, u) {
229
+ if (this.yy.parser)
230
+ this.yy.parser.parseError(l, u);
231
+ else
232
+ throw new Error(l);
233
+ },
234
+ // resets the lexer, sets new input
235
+ setInput: function(r, l) {
236
+ return this.yy = l || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
237
+ first_line: 1,
238
+ first_column: 0,
239
+ last_line: 1,
240
+ last_column: 0
241
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
242
+ },
243
+ // consumes and returns one char from the input
244
+ input: function() {
245
+ var r = this._input[0];
246
+ this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
247
+ var l = r.match(/(?:\r\n?|\n).*/g);
248
+ return l ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
249
+ },
250
+ // unshifts one char (or a string) into the input
251
+ unput: function(r) {
252
+ var l = r.length, u = r.split(/(?:\r\n?|\n)/g);
253
+ this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - l), this.offset -= l;
254
+ var g = this.match.split(/(?:\r\n?|\n)/g);
255
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), u.length - 1 && (this.yylineno -= u.length - 1);
256
+ var b = this.yylloc.range;
257
+ return this.yylloc = {
258
+ first_line: this.yylloc.first_line,
259
+ last_line: this.yylineno + 1,
260
+ first_column: this.yylloc.first_column,
261
+ last_column: u ? (u.length === g.length ? this.yylloc.first_column : 0) + g[g.length - u.length].length - u[0].length : this.yylloc.first_column - l
262
+ }, this.options.ranges && (this.yylloc.range = [b[0], b[0] + this.yyleng - l]), this.yyleng = this.yytext.length, this;
263
+ },
264
+ // When called from action, caches matched text and appends it on next action
265
+ more: function() {
266
+ return this._more = !0, this;
267
+ },
268
+ // 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.
269
+ reject: function() {
270
+ if (this.options.backtrack_lexer)
271
+ this._backtrack = !0;
272
+ else
273
+ 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).
274
+ ` + this.showPosition(), {
275
+ text: "",
276
+ token: null,
277
+ line: this.yylineno
278
+ });
279
+ return this;
280
+ },
281
+ // retain first n characters of the match
282
+ less: function(r) {
283
+ this.unput(this.match.slice(r));
284
+ },
285
+ // displays already matched input, i.e. for error messages
286
+ pastInput: function() {
287
+ var r = this.matched.substr(0, this.matched.length - this.match.length);
288
+ return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
289
+ },
290
+ // displays upcoming input, i.e. for error messages
291
+ upcomingInput: function() {
292
+ var r = this.match;
293
+ return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
294
+ },
295
+ // displays the character position where the lexing error occurred, i.e. for error messages
296
+ showPosition: function() {
297
+ var r = this.pastInput(), l = new Array(r.length + 1).join("-");
298
+ return r + this.upcomingInput() + `
299
+ ` + l + "^";
300
+ },
301
+ // test the lexed token: return FALSE when not a match, otherwise return token
302
+ test_match: function(r, l) {
303
+ var u, g, b;
304
+ if (this.options.backtrack_lexer && (b = {
305
+ yylineno: this.yylineno,
306
+ yylloc: {
307
+ first_line: this.yylloc.first_line,
308
+ last_line: this.last_line,
309
+ first_column: this.yylloc.first_column,
310
+ last_column: this.yylloc.last_column
311
+ },
312
+ yytext: this.yytext,
313
+ match: this.match,
314
+ matches: this.matches,
315
+ matched: this.matched,
316
+ yyleng: this.yyleng,
317
+ offset: this.offset,
318
+ _more: this._more,
319
+ _input: this._input,
320
+ yy: this.yy,
321
+ conditionStack: this.conditionStack.slice(0),
322
+ done: this.done
323
+ }, this.options.ranges && (b.yylloc.range = this.yylloc.range.slice(0))), g = r[0].match(/(?:\r\n?|\n).*/g), g && (this.yylineno += g.length), this.yylloc = {
324
+ first_line: this.yylloc.last_line,
325
+ last_line: this.yylineno + 1,
326
+ first_column: this.yylloc.last_column,
327
+ last_column: g ? g[g.length - 1].length - g[g.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
328
+ }, this.yytext += r[0], this.match += r[0], this.matches = r, 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(r[0].length), this.matched += r[0], u = this.performAction.call(this, this.yy, this, l, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), u)
329
+ return u;
330
+ if (this._backtrack) {
331
+ for (var a in b)
332
+ this[a] = b[a];
333
+ return !1;
334
+ }
335
+ return !1;
336
+ },
337
+ // return next match in input
338
+ next: function() {
339
+ if (this.done)
340
+ return this.EOF;
341
+ this._input || (this.done = !0);
342
+ var r, l, u, g;
343
+ this._more || (this.yytext = "", this.match = "");
344
+ for (var b = this._currentRules(), a = 0; a < b.length; a++)
345
+ if (u = this._input.match(this.rules[b[a]]), u && (!l || u[0].length > l[0].length)) {
346
+ if (l = u, g = a, this.options.backtrack_lexer) {
347
+ if (r = this.test_match(u, b[a]), r !== !1)
348
+ return r;
349
+ if (this._backtrack) {
350
+ l = !1;
351
+ continue;
352
+ } else
353
+ return !1;
354
+ } else if (!this.options.flex)
355
+ break;
356
+ }
357
+ return l ? (r = this.test_match(l, b[g]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
358
+ ` + this.showPosition(), {
359
+ text: "",
360
+ token: null,
361
+ line: this.yylineno
362
+ });
363
+ },
364
+ // return next match that has a token
365
+ lex: function() {
366
+ var l = this.next();
367
+ return l || this.lex();
368
+ },
369
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
370
+ begin: function(l) {
371
+ this.conditionStack.push(l);
372
+ },
373
+ // pop the previously active lexer condition state off the condition stack
374
+ popState: function() {
375
+ var l = this.conditionStack.length - 1;
376
+ return l > 0 ? this.conditionStack.pop() : this.conditionStack[0];
377
+ },
378
+ // produce the lexer rule set which is active for the currently active lexer condition state
379
+ _currentRules: function() {
380
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
381
+ },
382
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
383
+ topState: function(l) {
384
+ return l = this.conditionStack.length - 1 - Math.abs(l || 0), l >= 0 ? this.conditionStack[l] : "INITIAL";
385
+ },
386
+ // alias for begin(condition)
387
+ pushState: function(l) {
388
+ this.begin(l);
389
+ },
390
+ // return the number of states currently on the stack
391
+ stateStackSize: function() {
392
+ return this.conditionStack.length;
393
+ },
394
+ options: { "case-insensitive": !0 },
395
+ performAction: function(l, u, g, b) {
396
+ switch (g) {
397
+ case 0:
398
+ break;
399
+ case 1:
400
+ break;
401
+ case 2:
402
+ return this.popState(), 34;
403
+ case 3:
404
+ return this.popState(), 34;
405
+ case 4:
406
+ return 34;
407
+ case 5:
408
+ break;
409
+ case 6:
410
+ return 10;
411
+ case 7:
412
+ return this.pushState("acc_title"), 19;
413
+ case 8:
414
+ return this.popState(), "acc_title_value";
415
+ case 9:
416
+ return this.pushState("acc_descr"), 21;
417
+ case 10:
418
+ return this.popState(), "acc_descr_value";
419
+ case 11:
420
+ this.pushState("acc_descr_multiline");
421
+ break;
422
+ case 12:
423
+ this.popState();
424
+ break;
425
+ case 13:
426
+ return "acc_descr_multiline_value";
427
+ case 14:
428
+ return 5;
429
+ case 15:
430
+ return 8;
431
+ case 16:
432
+ return this.pushState("axis_data"), "X_AXIS";
433
+ case 17:
434
+ return this.pushState("axis_data"), "Y_AXIS";
435
+ case 18:
436
+ return this.pushState("axis_band_data"), 24;
437
+ case 19:
438
+ return 31;
439
+ case 20:
440
+ return this.pushState("data"), 16;
441
+ case 21:
442
+ return this.pushState("data"), 18;
443
+ case 22:
444
+ return this.pushState("data_inner"), 24;
445
+ case 23:
446
+ return 27;
447
+ case 24:
448
+ return this.popState(), 26;
449
+ case 25:
450
+ this.popState();
451
+ break;
452
+ case 26:
453
+ this.pushState("string");
454
+ break;
455
+ case 27:
456
+ this.popState();
457
+ break;
458
+ case 28:
459
+ return "STR";
460
+ case 29:
461
+ return 24;
462
+ case 30:
463
+ return 26;
464
+ case 31:
465
+ return 43;
466
+ case 32:
467
+ return "COLON";
468
+ case 33:
469
+ return 44;
470
+ case 34:
471
+ return 28;
472
+ case 35:
473
+ return 45;
474
+ case 36:
475
+ return 46;
476
+ case 37:
477
+ return 48;
478
+ case 38:
479
+ return 50;
480
+ case 39:
481
+ return 47;
482
+ case 40:
483
+ return 41;
484
+ case 41:
485
+ return 49;
486
+ case 42:
487
+ return 42;
488
+ case 43:
489
+ break;
490
+ case 44:
491
+ return 35;
492
+ case 45:
493
+ return 36;
494
+ }
495
+ },
496
+ rules: [/^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:(\r?\n))/i, /^(?:(\r?\n))/i, /^(?:[\n\r]+)/i, /^(?:%%[^\n]*)/i, /^(?:title\b)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:\{)/i, /^(?:[^\}]*)/i, /^(?:xychart-beta\b)/i, /^(?:(?:vertical|horizontal))/i, /^(?:x-axis\b)/i, /^(?:y-axis\b)/i, /^(?:\[)/i, /^(?:-->)/i, /^(?:line\b)/i, /^(?:bar\b)/i, /^(?:\[)/i, /^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i, /^(?:\])/i, /^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:\[)/i, /^(?:\])/i, /^(?:[A-Za-z]+)/i, /^(?::)/i, /^(?:\+)/i, /^(?:,)/i, /^(?:=)/i, /^(?:\*)/i, /^(?:#)/i, /^(?:[\_])/i, /^(?:\.)/i, /^(?:&)/i, /^(?:-)/i, /^(?:[0-9]+)/i, /^(?:\s+)/i, /^(?:;)/i, /^(?:$)/i],
497
+ conditions: { data_inner: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 20, 21, 23, 24, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: !0 }, data: { rules: [0, 1, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 20, 21, 22, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: !0 }, axis_band_data: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 20, 21, 24, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: !0 }, axis_data: { rules: [0, 1, 2, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 19, 20, 21, 23, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: !0 }, acc_descr_multiline: { rules: [12, 13], inclusive: !1 }, acc_descr: { rules: [10], inclusive: !1 }, acc_title: { rules: [8], inclusive: !1 }, title: { rules: [], inclusive: !1 }, md_string: { rules: [], inclusive: !1 }, string: { rules: [27, 28], inclusive: !1 }, INITIAL: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 20, 21, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: !0 } }
498
+ };
499
+ return V;
500
+ }();
501
+ K.lexer = It;
502
+ function Z() {
503
+ this.yy = {};
504
+ }
505
+ return Z.prototype = K, K.Parser = Z, new Z();
506
+ }();
507
+ nt.parser = nt;
508
+ const ti = nt;
509
+ function mt(e) {
510
+ return e.type === "bar";
511
+ }
512
+ function _t(e) {
513
+ return e.type === "band";
514
+ }
515
+ function N(e) {
516
+ return e.type === "linear";
517
+ }
518
+ class kt {
519
+ constructor(t) {
520
+ this.parentGroup = t;
521
+ }
522
+ getMaxDimension(t, i) {
523
+ if (!this.parentGroup)
524
+ return {
525
+ width: t.reduce((o, c) => Math.max(c.length, o), 0) * i,
526
+ height: i
527
+ };
528
+ const s = {
529
+ width: 0,
530
+ height: 0
531
+ }, n = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", i);
532
+ for (const o of t) {
533
+ const c = Qt(n, 1, o), f = c ? c.width : o.length * i, d = c ? c.height : i;
534
+ s.width = Math.max(s.width, f), s.height = Math.max(s.height, d);
535
+ }
536
+ return n.remove(), s;
537
+ }
538
+ }
539
+ const yt = 0.7, bt = 0.2;
540
+ class Rt {
541
+ constructor(t, i, s, n) {
542
+ this.axisConfig = t, this.title = i, this.textDimensionCalculator = s, this.axisThemeConfig = n, this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left", this.showTitle = !1, this.showLabel = !1, this.showTick = !1, this.showAxisLine = !1, this.outerPadding = 0, this.titleTextHeight = 0, this.labelTextHeight = 0, this.range = [0, 10], this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left";
543
+ }
544
+ setRange(t) {
545
+ this.range = t, this.axisPosition === "left" || this.axisPosition === "right" ? this.boundingRect.height = t[1] - t[0] : this.boundingRect.width = t[1] - t[0], this.recalculateScale();
546
+ }
547
+ getRange() {
548
+ return [this.range[0] + this.outerPadding, this.range[1] - this.outerPadding];
549
+ }
550
+ setAxisPosition(t) {
551
+ this.axisPosition = t, this.setRange(this.range);
552
+ }
553
+ getTickDistance() {
554
+ const t = this.getRange();
555
+ return Math.abs(t[0] - t[1]) / this.getTickValues().length;
556
+ }
557
+ getAxisOuterPadding() {
558
+ return this.outerPadding;
559
+ }
560
+ getLabelDimension() {
561
+ return this.textDimensionCalculator.getMaxDimension(
562
+ this.getTickValues().map((t) => t.toString()),
563
+ this.axisConfig.labelFontSize
564
+ );
565
+ }
566
+ recalculateOuterPaddingToDrawBar() {
567
+ yt * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(yt * this.getTickDistance() / 2)), this.recalculateScale();
568
+ }
569
+ calculateSpaceIfDrawnHorizontally(t) {
570
+ let i = t.height;
571
+ if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
572
+ const s = this.getLabelDimension(), n = bt * t.width;
573
+ this.outerPadding = Math.min(s.width / 2, n);
574
+ const o = s.height + this.axisConfig.labelPadding * 2;
575
+ this.labelTextHeight = s.height, o <= i && (i -= o, this.showLabel = !0);
576
+ }
577
+ if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
578
+ const s = this.textDimensionCalculator.getMaxDimension(
579
+ [this.title],
580
+ this.axisConfig.titleFontSize
581
+ ), n = s.height + this.axisConfig.titlePadding * 2;
582
+ this.titleTextHeight = s.height, n <= i && (i -= n, this.showTitle = !0);
583
+ }
584
+ this.boundingRect.width = t.width, this.boundingRect.height = t.height - i;
585
+ }
586
+ calculateSpaceIfDrawnVertical(t) {
587
+ let i = t.width;
588
+ if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
589
+ const s = this.getLabelDimension(), n = bt * t.height;
590
+ this.outerPadding = Math.min(s.height / 2, n);
591
+ const o = s.width + this.axisConfig.labelPadding * 2;
592
+ o <= i && (i -= o, this.showLabel = !0);
593
+ }
594
+ if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
595
+ const s = this.textDimensionCalculator.getMaxDimension(
596
+ [this.title],
597
+ this.axisConfig.titleFontSize
598
+ ), n = s.height + this.axisConfig.titlePadding * 2;
599
+ this.titleTextHeight = s.height, n <= i && (i -= n, this.showTitle = !0);
600
+ }
601
+ this.boundingRect.width = t.width - i, this.boundingRect.height = t.height;
602
+ }
603
+ calculateSpace(t) {
604
+ return this.axisPosition === "left" || this.axisPosition === "right" ? this.calculateSpaceIfDrawnVertical(t) : this.calculateSpaceIfDrawnHorizontally(t), this.recalculateScale(), {
605
+ width: this.boundingRect.width,
606
+ height: this.boundingRect.height
607
+ };
608
+ }
609
+ setBoundingBoxXY(t) {
610
+ this.boundingRect.x = t.x, this.boundingRect.y = t.y;
611
+ }
612
+ getDrawableElementsForLeftAxis() {
613
+ const t = [];
614
+ if (this.showAxisLine) {
615
+ const i = this.boundingRect.x + this.boundingRect.width - this.axisConfig.axisLineWidth / 2;
616
+ t.push({
617
+ type: "path",
618
+ groupTexts: ["left-axis", "axisl-line"],
619
+ data: [
620
+ {
621
+ path: `M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y + this.boundingRect.height} `,
622
+ strokeFill: this.axisThemeConfig.axisLineColor,
623
+ strokeWidth: this.axisConfig.axisLineWidth
624
+ }
625
+ ]
626
+ });
627
+ }
628
+ if (this.showLabel && t.push({
629
+ type: "text",
630
+ groupTexts: ["left-axis", "label"],
631
+ data: this.getTickValues().map((i) => ({
632
+ text: i.toString(),
633
+ x: this.boundingRect.x + this.boundingRect.width - (this.showLabel ? this.axisConfig.labelPadding : 0) - (this.showTick ? this.axisConfig.tickLength : 0) - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0),
634
+ y: this.getScaleValue(i),
635
+ fill: this.axisThemeConfig.labelColor,
636
+ fontSize: this.axisConfig.labelFontSize,
637
+ rotation: 0,
638
+ verticalPos: "middle",
639
+ horizontalPos: "right"
640
+ }))
641
+ }), this.showTick) {
642
+ const i = this.boundingRect.x + this.boundingRect.width - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0);
643
+ t.push({
644
+ type: "path",
645
+ groupTexts: ["left-axis", "ticks"],
646
+ data: this.getTickValues().map((s) => ({
647
+ path: `M ${i},${this.getScaleValue(s)} L ${i - this.axisConfig.tickLength},${this.getScaleValue(s)}`,
648
+ strokeFill: this.axisThemeConfig.tickColor,
649
+ strokeWidth: this.axisConfig.tickWidth
650
+ }))
651
+ });
652
+ }
653
+ return this.showTitle && t.push({
654
+ type: "text",
655
+ groupTexts: ["left-axis", "title"],
656
+ data: [
657
+ {
658
+ text: this.title,
659
+ x: this.boundingRect.x + this.axisConfig.titlePadding,
660
+ y: this.boundingRect.y + this.boundingRect.height / 2,
661
+ fill: this.axisThemeConfig.titleColor,
662
+ fontSize: this.axisConfig.titleFontSize,
663
+ rotation: 270,
664
+ verticalPos: "top",
665
+ horizontalPos: "center"
666
+ }
667
+ ]
668
+ }), t;
669
+ }
670
+ getDrawableElementsForBottomAxis() {
671
+ const t = [];
672
+ if (this.showAxisLine) {
673
+ const i = this.boundingRect.y + this.axisConfig.axisLineWidth / 2;
674
+ t.push({
675
+ type: "path",
676
+ groupTexts: ["bottom-axis", "axis-line"],
677
+ data: [
678
+ {
679
+ path: `M ${this.boundingRect.x},${i} L ${this.boundingRect.x + this.boundingRect.width},${i}`,
680
+ strokeFill: this.axisThemeConfig.axisLineColor,
681
+ strokeWidth: this.axisConfig.axisLineWidth
682
+ }
683
+ ]
684
+ });
685
+ }
686
+ if (this.showLabel && t.push({
687
+ type: "text",
688
+ groupTexts: ["bottom-axis", "label"],
689
+ data: this.getTickValues().map((i) => ({
690
+ text: i.toString(),
691
+ x: this.getScaleValue(i),
692
+ y: this.boundingRect.y + this.axisConfig.labelPadding + (this.showTick ? this.axisConfig.tickLength : 0) + (this.showAxisLine ? this.axisConfig.axisLineWidth : 0),
693
+ fill: this.axisThemeConfig.labelColor,
694
+ fontSize: this.axisConfig.labelFontSize,
695
+ rotation: 0,
696
+ verticalPos: "top",
697
+ horizontalPos: "center"
698
+ }))
699
+ }), this.showTick) {
700
+ const i = this.boundingRect.y + (this.showAxisLine ? this.axisConfig.axisLineWidth : 0);
701
+ t.push({
702
+ type: "path",
703
+ groupTexts: ["bottom-axis", "ticks"],
704
+ data: this.getTickValues().map((s) => ({
705
+ path: `M ${this.getScaleValue(s)},${i} L ${this.getScaleValue(s)},${i + this.axisConfig.tickLength}`,
706
+ strokeFill: this.axisThemeConfig.tickColor,
707
+ strokeWidth: this.axisConfig.tickWidth
708
+ }))
709
+ });
710
+ }
711
+ return this.showTitle && t.push({
712
+ type: "text",
713
+ groupTexts: ["bottom-axis", "title"],
714
+ data: [
715
+ {
716
+ text: this.title,
717
+ x: this.range[0] + (this.range[1] - this.range[0]) / 2,
718
+ y: this.boundingRect.y + this.boundingRect.height - this.axisConfig.titlePadding - this.titleTextHeight,
719
+ fill: this.axisThemeConfig.titleColor,
720
+ fontSize: this.axisConfig.titleFontSize,
721
+ rotation: 0,
722
+ verticalPos: "top",
723
+ horizontalPos: "center"
724
+ }
725
+ ]
726
+ }), t;
727
+ }
728
+ getDrawableElementsForTopAxis() {
729
+ const t = [];
730
+ if (this.showAxisLine) {
731
+ const i = this.boundingRect.y + this.boundingRect.height - this.axisConfig.axisLineWidth / 2;
732
+ t.push({
733
+ type: "path",
734
+ groupTexts: ["top-axis", "axis-line"],
735
+ data: [
736
+ {
737
+ path: `M ${this.boundingRect.x},${i} L ${this.boundingRect.x + this.boundingRect.width},${i}`,
738
+ strokeFill: this.axisThemeConfig.axisLineColor,
739
+ strokeWidth: this.axisConfig.axisLineWidth
740
+ }
741
+ ]
742
+ });
743
+ }
744
+ if (this.showLabel && t.push({
745
+ type: "text",
746
+ groupTexts: ["top-axis", "label"],
747
+ data: this.getTickValues().map((i) => ({
748
+ text: i.toString(),
749
+ x: this.getScaleValue(i),
750
+ y: this.boundingRect.y + (this.showTitle ? this.titleTextHeight + this.axisConfig.titlePadding * 2 : 0) + this.axisConfig.labelPadding,
751
+ fill: this.axisThemeConfig.labelColor,
752
+ fontSize: this.axisConfig.labelFontSize,
753
+ rotation: 0,
754
+ verticalPos: "top",
755
+ horizontalPos: "center"
756
+ }))
757
+ }), this.showTick) {
758
+ const i = this.boundingRect.y;
759
+ t.push({
760
+ type: "path",
761
+ groupTexts: ["top-axis", "ticks"],
762
+ data: this.getTickValues().map((s) => ({
763
+ path: `M ${this.getScaleValue(s)},${i + this.boundingRect.height - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)} L ${this.getScaleValue(s)},${i + this.boundingRect.height - this.axisConfig.tickLength - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)}`,
764
+ strokeFill: this.axisThemeConfig.tickColor,
765
+ strokeWidth: this.axisConfig.tickWidth
766
+ }))
767
+ });
768
+ }
769
+ return this.showTitle && t.push({
770
+ type: "text",
771
+ groupTexts: ["top-axis", "title"],
772
+ data: [
773
+ {
774
+ text: this.title,
775
+ x: this.boundingRect.x + this.boundingRect.width / 2,
776
+ y: this.boundingRect.y + this.axisConfig.titlePadding,
777
+ fill: this.axisThemeConfig.titleColor,
778
+ fontSize: this.axisConfig.titleFontSize,
779
+ rotation: 0,
780
+ verticalPos: "top",
781
+ horizontalPos: "center"
782
+ }
783
+ ]
784
+ }), t;
785
+ }
786
+ getDrawableElements() {
787
+ if (this.axisPosition === "left")
788
+ return this.getDrawableElementsForLeftAxis();
789
+ if (this.axisPosition === "right")
790
+ throw Error("Drawing of right axis is not implemented");
791
+ return this.axisPosition === "bottom" ? this.getDrawableElementsForBottomAxis() : this.axisPosition === "top" ? this.getDrawableElementsForTopAxis() : [];
792
+ }
793
+ }
794
+ class ii extends Rt {
795
+ constructor(t, i, s, n, o) {
796
+ super(t, n, o, i), this.categories = s, this.scale = st().domain(this.categories).range(this.getRange());
797
+ }
798
+ setRange(t) {
799
+ super.setRange(t);
800
+ }
801
+ recalculateScale() {
802
+ this.scale = st().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5), Ct.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
803
+ }
804
+ getTickValues() {
805
+ return this.categories;
806
+ }
807
+ getScaleValue(t) {
808
+ return this.scale(t) || this.getRange()[0];
809
+ }
810
+ }
811
+ class ei extends Rt {
812
+ constructor(t, i, s, n, o) {
813
+ super(t, n, o, i), this.domain = s, this.scale = ft().domain(this.domain).range(this.getRange());
814
+ }
815
+ getTickValues() {
816
+ return this.scale.ticks();
817
+ }
818
+ recalculateScale() {
819
+ const t = [...this.domain];
820
+ this.axisPosition === "left" && t.reverse(), this.scale = ft().domain(t).range(this.getRange());
821
+ }
822
+ getScaleValue(t) {
823
+ return this.scale(t);
824
+ }
825
+ }
826
+ function At(e, t, i, s) {
827
+ const n = new kt(s);
828
+ return _t(e) ? new ii(
829
+ t,
830
+ i,
831
+ e.categories,
832
+ e.title,
833
+ n
834
+ ) : new ei(
835
+ t,
836
+ i,
837
+ [e.min, e.max],
838
+ e.title,
839
+ n
840
+ );
841
+ }
842
+ class si {
843
+ constructor(t, i, s, n) {
844
+ this.textDimensionCalculator = t, this.chartConfig = i, this.chartData = s, this.chartThemeConfig = n, this.boundingRect = {
845
+ x: 0,
846
+ y: 0,
847
+ width: 0,
848
+ height: 0
849
+ }, this.showChartTitle = !1;
850
+ }
851
+ setBoundingBoxXY(t) {
852
+ this.boundingRect.x = t.x, this.boundingRect.y = t.y;
853
+ }
854
+ calculateSpace(t) {
855
+ const i = this.textDimensionCalculator.getMaxDimension(
856
+ [this.chartData.title],
857
+ this.chartConfig.titleFontSize
858
+ ), s = Math.max(i.width, t.width), n = i.height + 2 * this.chartConfig.titlePadding;
859
+ return i.width <= s && i.height <= n && this.chartConfig.showTitle && this.chartData.title && (this.boundingRect.width = s, this.boundingRect.height = n, this.showChartTitle = !0), {
860
+ width: this.boundingRect.width,
861
+ height: this.boundingRect.height
862
+ };
863
+ }
864
+ getDrawableElements() {
865
+ const t = [];
866
+ return this.showChartTitle && t.push({
867
+ groupTexts: ["chart-title"],
868
+ type: "text",
869
+ data: [
870
+ {
871
+ fontSize: this.chartConfig.titleFontSize,
872
+ text: this.chartData.title,
873
+ verticalPos: "middle",
874
+ horizontalPos: "center",
875
+ x: this.boundingRect.x + this.boundingRect.width / 2,
876
+ y: this.boundingRect.y + this.boundingRect.height / 2,
877
+ fill: this.chartThemeConfig.titleColor,
878
+ rotation: 0
879
+ }
880
+ ]
881
+ }), t;
882
+ }
883
+ }
884
+ function ni(e, t, i, s) {
885
+ const n = new kt(s);
886
+ return new si(n, e, t, i);
887
+ }
888
+ class ai {
889
+ constructor(t, i, s, n, o) {
890
+ this.plotData = t, this.xAxis = i, this.yAxis = s, this.orientation = n, this.plotIndex = o;
891
+ }
892
+ getDrawableElement() {
893
+ const t = this.plotData.data.map((s) => [
894
+ this.xAxis.getScaleValue(s[0]),
895
+ this.yAxis.getScaleValue(s[1])
896
+ ]);
897
+ let i;
898
+ return this.orientation === "horizontal" ? i = pt().y((s) => s[0]).x((s) => s[1])(t) : i = pt().x((s) => s[0]).y((s) => s[1])(t), i ? [
899
+ {
900
+ groupTexts: ["plot", `line-plot-${this.plotIndex}`],
901
+ type: "path",
902
+ data: [
903
+ {
904
+ path: i,
905
+ strokeFill: this.plotData.strokeFill,
906
+ strokeWidth: this.plotData.strokeWidth
907
+ }
908
+ ]
909
+ }
910
+ ] : [];
911
+ }
912
+ }
913
+ class oi {
914
+ constructor(t, i, s, n, o, c) {
915
+ this.barData = t, this.boundingRect = i, this.xAxis = s, this.yAxis = n, this.orientation = o, this.plotIndex = c;
916
+ }
917
+ getDrawableElement() {
918
+ const t = this.barData.data.map((o) => [
919
+ this.xAxis.getScaleValue(o[0]),
920
+ this.yAxis.getScaleValue(o[1])
921
+ ]), i = 0.05, s = Math.min(this.xAxis.getAxisOuterPadding() * 2, this.xAxis.getTickDistance()) * (1 - i), n = s / 2;
922
+ return this.orientation === "horizontal" ? [
923
+ {
924
+ groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
925
+ type: "rect",
926
+ data: t.map((o) => ({
927
+ x: this.boundingRect.x,
928
+ y: o[0] - n,
929
+ height: s,
930
+ width: o[1] - this.boundingRect.x,
931
+ fill: this.barData.fill,
932
+ strokeWidth: 0,
933
+ strokeFill: this.barData.fill
934
+ }))
935
+ }
936
+ ] : [
937
+ {
938
+ groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
939
+ type: "rect",
940
+ data: t.map((o) => ({
941
+ x: o[0] - n,
942
+ y: o[1],
943
+ width: s,
944
+ height: this.boundingRect.y + this.boundingRect.height - o[1],
945
+ fill: this.barData.fill,
946
+ strokeWidth: 0,
947
+ strokeFill: this.barData.fill
948
+ }))
949
+ }
950
+ ];
951
+ }
952
+ }
953
+ class ri {
954
+ constructor(t, i, s) {
955
+ this.chartConfig = t, this.chartData = i, this.chartThemeConfig = s, this.boundingRect = {
956
+ x: 0,
957
+ y: 0,
958
+ width: 0,
959
+ height: 0
960
+ };
961
+ }
962
+ setAxes(t, i) {
963
+ this.xAxis = t, this.yAxis = i;
964
+ }
965
+ setBoundingBoxXY(t) {
966
+ this.boundingRect.x = t.x, this.boundingRect.y = t.y;
967
+ }
968
+ calculateSpace(t) {
969
+ return this.boundingRect.width = t.width, this.boundingRect.height = t.height, {
970
+ width: this.boundingRect.width,
971
+ height: this.boundingRect.height
972
+ };
973
+ }
974
+ getDrawableElements() {
975
+ if (!(this.xAxis && this.yAxis))
976
+ throw Error("Axes must be passed to render Plots");
977
+ const t = [];
978
+ for (const [i, s] of this.chartData.plots.entries())
979
+ switch (s.type) {
980
+ case "line":
981
+ {
982
+ const n = new ai(
983
+ s,
984
+ this.xAxis,
985
+ this.yAxis,
986
+ this.chartConfig.chartOrientation,
987
+ i
988
+ );
989
+ t.push(...n.getDrawableElement());
990
+ }
991
+ break;
992
+ case "bar":
993
+ {
994
+ const n = new oi(
995
+ s,
996
+ this.boundingRect,
997
+ this.xAxis,
998
+ this.yAxis,
999
+ this.chartConfig.chartOrientation,
1000
+ i
1001
+ );
1002
+ t.push(...n.getDrawableElement());
1003
+ }
1004
+ break;
1005
+ }
1006
+ return t;
1007
+ }
1008
+ }
1009
+ function hi(e, t, i) {
1010
+ return new ri(e, t, i);
1011
+ }
1012
+ class li {
1013
+ constructor(t, i, s, n) {
1014
+ this.chartConfig = t, this.chartData = i, this.componentStore = {
1015
+ title: ni(t, i, s, n),
1016
+ plot: hi(t, i, s),
1017
+ xAxis: At(
1018
+ i.xAxis,
1019
+ t.xAxis,
1020
+ {
1021
+ titleColor: s.xAxisTitleColor,
1022
+ labelColor: s.xAxisLabelColor,
1023
+ tickColor: s.xAxisTickColor,
1024
+ axisLineColor: s.xAxisLineColor
1025
+ },
1026
+ n
1027
+ ),
1028
+ yAxis: At(
1029
+ i.yAxis,
1030
+ t.yAxis,
1031
+ {
1032
+ titleColor: s.yAxisTitleColor,
1033
+ labelColor: s.yAxisLabelColor,
1034
+ tickColor: s.yAxisTickColor,
1035
+ axisLineColor: s.yAxisLineColor
1036
+ },
1037
+ n
1038
+ )
1039
+ };
1040
+ }
1041
+ calculateVerticalSpace() {
1042
+ let t = this.chartConfig.width, i = this.chartConfig.height, s = 0, n = 0, o = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), c = Math.floor(
1043
+ i * this.chartConfig.plotReservedSpacePercent / 100
1044
+ ), f = this.componentStore.plot.calculateSpace({
1045
+ width: o,
1046
+ height: c
1047
+ });
1048
+ t -= f.width, i -= f.height, f = this.componentStore.title.calculateSpace({
1049
+ width: this.chartConfig.width,
1050
+ height: i
1051
+ }), n = f.height, i -= f.height, this.componentStore.xAxis.setAxisPosition("bottom"), f = this.componentStore.xAxis.calculateSpace({
1052
+ width: t,
1053
+ height: i
1054
+ }), i -= f.height, this.componentStore.yAxis.setAxisPosition("left"), f = this.componentStore.yAxis.calculateSpace({
1055
+ width: t,
1056
+ height: i
1057
+ }), s = f.width, t -= f.width, t > 0 && (o += t, t = 0), i > 0 && (c += i, i = 0), this.componentStore.plot.calculateSpace({
1058
+ width: o,
1059
+ height: c
1060
+ }), this.componentStore.plot.setBoundingBoxXY({ x: s, y: n }), this.componentStore.xAxis.setRange([s, s + o]), this.componentStore.xAxis.setBoundingBoxXY({ x: s, y: n + c }), this.componentStore.yAxis.setRange([n, n + c]), this.componentStore.yAxis.setBoundingBoxXY({ x: 0, y: n }), this.chartData.plots.some((d) => mt(d)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1061
+ }
1062
+ calculateHorizontalSpace() {
1063
+ let t = this.chartConfig.width, i = this.chartConfig.height, s = 0, n = 0, o = 0, c = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), f = Math.floor(
1064
+ i * this.chartConfig.plotReservedSpacePercent / 100
1065
+ ), d = this.componentStore.plot.calculateSpace({
1066
+ width: c,
1067
+ height: f
1068
+ });
1069
+ t -= d.width, i -= d.height, d = this.componentStore.title.calculateSpace({
1070
+ width: this.chartConfig.width,
1071
+ height: i
1072
+ }), s = d.height, i -= d.height, this.componentStore.xAxis.setAxisPosition("left"), d = this.componentStore.xAxis.calculateSpace({
1073
+ width: t,
1074
+ height: i
1075
+ }), t -= d.width, n = d.width, this.componentStore.yAxis.setAxisPosition("top"), d = this.componentStore.yAxis.calculateSpace({
1076
+ width: t,
1077
+ height: i
1078
+ }), i -= d.height, o = s + d.height, t > 0 && (c += t, t = 0), i > 0 && (f += i, i = 0), this.componentStore.plot.calculateSpace({
1079
+ width: c,
1080
+ height: f
1081
+ }), this.componentStore.plot.setBoundingBoxXY({ x: n, y: o }), this.componentStore.yAxis.setRange([n, n + c]), this.componentStore.yAxis.setBoundingBoxXY({ x: n, y: s }), this.componentStore.xAxis.setRange([o, o + f]), this.componentStore.xAxis.setBoundingBoxXY({ x: 0, y: o }), this.chartData.plots.some((R) => mt(R)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1082
+ }
1083
+ calculateSpace() {
1084
+ this.chartConfig.chartOrientation === "horizontal" ? this.calculateHorizontalSpace() : this.calculateVerticalSpace();
1085
+ }
1086
+ getDrawableElement() {
1087
+ this.calculateSpace();
1088
+ const t = [];
1089
+ this.componentStore.plot.setAxes(this.componentStore.xAxis, this.componentStore.yAxis);
1090
+ for (const i of Object.values(this.componentStore))
1091
+ t.push(...i.getDrawableElements());
1092
+ return t;
1093
+ }
1094
+ }
1095
+ class ci {
1096
+ static build(t, i, s, n) {
1097
+ return new li(t, i, s, n).getDrawableElement();
1098
+ }
1099
+ }
1100
+ let X = 0, Tt, Y = Pt(), H = Dt(), y = Lt(), at = H.plotColorPalette.split(",").map((e) => e.trim()), G = !1, rt = !1;
1101
+ function Dt() {
1102
+ const e = zt(), t = ot();
1103
+ return wt(e.xyChart, t.themeVariables.xyChart);
1104
+ }
1105
+ function Pt() {
1106
+ const e = ot();
1107
+ return wt(
1108
+ Ft.xyChart,
1109
+ e.xyChart
1110
+ );
1111
+ }
1112
+ function Lt() {
1113
+ return {
1114
+ yAxis: {
1115
+ type: "linear",
1116
+ title: "",
1117
+ min: 1 / 0,
1118
+ max: -1 / 0
1119
+ },
1120
+ xAxis: {
1121
+ type: "band",
1122
+ title: "",
1123
+ categories: []
1124
+ },
1125
+ title: "",
1126
+ plots: []
1127
+ };
1128
+ }
1129
+ function ht(e) {
1130
+ const t = ot();
1131
+ return Gt(e.trim(), t);
1132
+ }
1133
+ function ui(e) {
1134
+ Tt = e;
1135
+ }
1136
+ function gi(e) {
1137
+ e === "horizontal" ? Y.chartOrientation = "horizontal" : Y.chartOrientation = "vertical";
1138
+ }
1139
+ function xi(e) {
1140
+ y.xAxis.title = ht(e.text);
1141
+ }
1142
+ function Et(e, t) {
1143
+ y.xAxis = { type: "linear", title: y.xAxis.title, min: e, max: t }, G = !0;
1144
+ }
1145
+ function di(e) {
1146
+ y.xAxis = {
1147
+ type: "band",
1148
+ title: y.xAxis.title,
1149
+ categories: e.map((t) => ht(t.text))
1150
+ }, G = !0;
1151
+ }
1152
+ function fi(e) {
1153
+ y.yAxis.title = ht(e.text);
1154
+ }
1155
+ function pi(e, t) {
1156
+ y.yAxis = { type: "linear", title: y.yAxis.title, min: e, max: t }, rt = !0;
1157
+ }
1158
+ function mi(e) {
1159
+ const t = Math.min(...e), i = Math.max(...e), s = N(y.yAxis) ? y.yAxis.min : 1 / 0, n = N(y.yAxis) ? y.yAxis.max : -1 / 0;
1160
+ y.yAxis = {
1161
+ type: "linear",
1162
+ title: y.yAxis.title,
1163
+ min: Math.min(s, t),
1164
+ max: Math.max(n, i)
1165
+ };
1166
+ }
1167
+ function vt(e) {
1168
+ let t = [];
1169
+ if (e.length === 0)
1170
+ return t;
1171
+ if (!G) {
1172
+ const i = N(y.xAxis) ? y.xAxis.min : 1 / 0, s = N(y.xAxis) ? y.xAxis.max : -1 / 0;
1173
+ Et(Math.min(i, 1), Math.max(s, e.length));
1174
+ }
1175
+ if (rt || mi(e), _t(y.xAxis) && (t = y.xAxis.categories.map((i, s) => [i, e[s]])), N(y.xAxis)) {
1176
+ const i = y.xAxis.min, s = y.xAxis.max, n = (s - i + 1) / e.length, o = [];
1177
+ for (let c = i; c <= s; c += n)
1178
+ o.push(`${c}`);
1179
+ t = o.map((c, f) => [c, e[f]]);
1180
+ }
1181
+ return t;
1182
+ }
1183
+ function Mt(e) {
1184
+ return at[e === 0 ? 0 : e % at.length];
1185
+ }
1186
+ function yi(e, t) {
1187
+ const i = vt(t);
1188
+ y.plots.push({
1189
+ type: "line",
1190
+ strokeFill: Mt(X),
1191
+ strokeWidth: 2,
1192
+ data: i
1193
+ }), X++;
1194
+ }
1195
+ function bi(e, t) {
1196
+ const i = vt(t);
1197
+ y.plots.push({
1198
+ type: "bar",
1199
+ fill: Mt(X),
1200
+ data: i
1201
+ }), X++;
1202
+ }
1203
+ function Ai() {
1204
+ if (y.plots.length === 0)
1205
+ throw Error("No Plot to render, please provide a plot with some data");
1206
+ return y.title = St(), ci.build(Y, y, H, Tt);
1207
+ }
1208
+ function wi() {
1209
+ return H;
1210
+ }
1211
+ function Si() {
1212
+ return Y;
1213
+ }
1214
+ const Ci = function() {
1215
+ Ut(), X = 0, Y = Pt(), y = Lt(), H = Dt(), at = H.plotColorPalette.split(",").map((e) => e.trim()), G = !1, rt = !1;
1216
+ }, _i = {
1217
+ getDrawableElem: Ai,
1218
+ clear: Ci,
1219
+ setAccTitle: Nt,
1220
+ getAccTitle: Xt,
1221
+ setDiagramTitle: Yt,
1222
+ getDiagramTitle: St,
1223
+ getAccDescription: Ht,
1224
+ setAccDescription: $t,
1225
+ setOrientation: gi,
1226
+ setXAxisTitle: xi,
1227
+ setXAxisRangeData: Et,
1228
+ setXAxisBand: di,
1229
+ setYAxisTitle: fi,
1230
+ setYAxisRangeData: pi,
1231
+ setLineData: yi,
1232
+ setBarData: bi,
1233
+ setTmpSVGG: ui,
1234
+ getChartThemeConfig: wi,
1235
+ getChartConfig: Si
1236
+ }, ki = (e, t, i, s) => {
1237
+ const n = s.db, o = n.getChartThemeConfig(), c = n.getChartConfig();
1238
+ function f(p) {
1239
+ return p === "top" ? "text-before-edge" : "middle";
1240
+ }
1241
+ function d(p) {
1242
+ return p === "left" ? "start" : p === "right" ? "end" : "middle";
1243
+ }
1244
+ function R(p) {
1245
+ return `translate(${p.x}, ${p.y}) rotate(${p.rotation || 0})`;
1246
+ }
1247
+ Ct.debug(`Rendering xychart chart
1248
+ ` + e);
1249
+ const _ = qt(t), A = _.append("g").attr("class", "main"), m = A.append("rect").attr("width", c.width).attr("height", c.height).attr("class", "background");
1250
+ jt(_, c.height, c.width, !0), _.attr("viewBox", `0 0 ${c.width} ${c.height}`), m.attr("fill", o.backgroundColor), n.setTmpSVGG(_.append("g").attr("class", "mermaid-tmp-group"));
1251
+ const T = n.getDrawableElem(), S = {};
1252
+ function P(p) {
1253
+ let C = A, h = "";
1254
+ for (const [L] of p.entries()) {
1255
+ let z = A;
1256
+ L > 0 && S[h] && (z = S[h]), h += p[L], C = S[h], C || (C = S[h] = z.append("g").attr("class", p[L]));
1257
+ }
1258
+ return C;
1259
+ }
1260
+ for (const p of T) {
1261
+ if (p.data.length === 0)
1262
+ continue;
1263
+ const C = P(p.groupTexts);
1264
+ switch (p.type) {
1265
+ case "rect":
1266
+ C.selectAll("rect").data(p.data).enter().append("rect").attr("x", (h) => h.x).attr("y", (h) => h.y).attr("width", (h) => h.width).attr("height", (h) => h.height).attr("fill", (h) => h.fill).attr("stroke", (h) => h.strokeFill).attr("stroke-width", (h) => h.strokeWidth);
1267
+ break;
1268
+ case "text":
1269
+ C.selectAll("text").data(p.data).enter().append("text").attr("x", 0).attr("y", 0).attr("fill", (h) => h.fill).attr("font-size", (h) => h.fontSize).attr("dominant-baseline", (h) => f(h.verticalPos)).attr("text-anchor", (h) => d(h.horizontalPos)).attr("transform", (h) => R(h)).text((h) => h.text);
1270
+ break;
1271
+ case "path":
1272
+ C.selectAll("path").data(p.data).enter().append("path").attr("d", (h) => h.path).attr("fill", (h) => h.fill ? h.fill : "none").attr("stroke", (h) => h.strokeFill).attr("stroke-width", (h) => h.strokeWidth);
1273
+ break;
1274
+ }
1275
+ }
1276
+ }, Ri = {
1277
+ draw: ki
1278
+ }, Wi = {
1279
+ parser: ti,
1280
+ db: _i,
1281
+ renderer: Ri
1282
+ };
1283
+ export {
1284
+ Wi as diagram
1285
+ };