lowcoder-comps 2.4.13 → 2.4.15

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 (51) hide show
  1. package/{0fa873f8.js → 0bb0c92e.js} +4 -4
  2. package/{1d0578cc.js → 0cc36377.js} +919 -969
  3. package/{4ee1107f.js → 0fa86771.js} +411 -451
  4. package/{7ceb1a86.js → 19a2ee87.js} +1067 -1085
  5. package/{62a4e802.js → 1b41afb7.js} +6 -6
  6. package/{140d1965.js → 1e5b4466.js} +1 -1
  7. package/21ce624b.js +433 -0
  8. package/247d363c.js +797 -0
  9. package/{66d40f47.js → 2dc10e5c.js} +96 -99
  10. package/{48262065.js → 3a91cb5c.js} +8 -8
  11. package/{bfff0c9e.js → 3ebe8123.js} +26 -27
  12. package/{e60eb1d6.js → 3f2bde45.js} +1 -1
  13. package/{08ce8965.js → 4046c39a.js} +247 -258
  14. package/{256b619e.js → 428ebac9.js} +14 -15
  15. package/{f85b9955.js → 4b8936b0.js} +68 -69
  16. package/{722d14f3.js → 4d48e6df.js} +6 -6
  17. package/{93e77b54.js → 558e8ee5.js} +4 -4
  18. package/{d2b89014.js → 56f6e990.js} +92 -92
  19. package/{6c5168e9.js → 5a31cef7.js} +2 -2
  20. package/{7873457c.js → 5d41cf38.js} +6 -6
  21. package/{5d259708.js → 5fd9a898.js} +4 -5
  22. package/{2c7a98c7.js → 63a771ab.js} +8 -8
  23. package/6a32f1c1.js +206 -0
  24. package/{e7717e30.js → 7035666f.js} +7 -7
  25. package/{c840f94c.js → 74ef17ae.js} +140 -141
  26. package/{eeeac330.js → 7cc252e4.js} +65540 -59868
  27. package/81d6ce63.js +817 -0
  28. package/{c8211b18.js → 832e744b.js} +1 -1
  29. package/{81a0d6f1.js → 8718dc59.js} +12 -12
  30. package/{7a22ada0.js → 88953f96.js} +18 -18
  31. package/a8d4a50e.js +373 -0
  32. package/aa88392e.js +190 -0
  33. package/b0862b2f.js +1083 -0
  34. package/{62c4dc6e.js → c1b710aa.js} +5 -5
  35. package/{4cf9b6b3.js → d72b57c8.js} +12713 -12735
  36. package/{629dfdca.js → e441921a.js} +4 -4
  37. package/{47848c42.js → e5b014a9.js} +5 -5
  38. package/{b7fefb34.js → eb3bf879.js} +2 -2
  39. package/{febae45b.js → eb5cf40c.js} +2 -2
  40. package/{ddee0e99.js → edc74d11.js} +3 -3
  41. package/f0f41787.js +1264 -0
  42. package/index.js +2 -2
  43. package/package.json +1 -1
  44. package/1de1a3c9.js +0 -1102
  45. package/2510669f.js +0 -237
  46. package/68ee7280.js +0 -1276
  47. package/89baa2e6.js +0 -391
  48. package/9dc6adcd.js +0 -819
  49. package/ab55adad.js +0 -818
  50. package/c459c043.js +0 -208
  51. package/e47dc9ca.js +0 -455
@@ -1,8 +1,8 @@
1
- import { V as q, W as at, F as lt, G as ct, s as ot, a as ht, d as ut, b as yt, H as ft, f as pt, e as et, l as it, X as gt, U as dt, Y as mt, k as _t } from "./eeeac330.js";
2
- import { a as tt } from "./ddee0e99.js";
1
+ import { V as q, W as at, F as lt, G as ot, s as ct, a as ht, d as ut, b as yt, H as ft, f as pt, e as et, l as it, X as gt, U as dt, Y as mt, k as _t } from "./7cc252e4.js";
2
+ import { a as tt } from "./edc74d11.js";
3
3
  import { o as xt } from "./92e85b65.js";
4
4
  import { a as kt } from "./2ff2c7a6.js";
5
- import { c as L } from "./256b619e.js";
5
+ import { c as L } from "./428ebac9.js";
6
6
  import "./f9637058.js";
7
7
  function vt(e, u) {
8
8
  return u < e ? -1 : u > e ? 1 : u >= e ? 0 : NaN;
@@ -11,22 +11,22 @@ function bt(e) {
11
11
  return e;
12
12
  }
13
13
  function St() {
14
- var e = bt, u = vt, A = null, p = L(0), g = L(q), E = L(0);
14
+ var e = bt, u = vt, $ = null, p = L(0), g = L(q), A = L(0);
15
15
  function y(a) {
16
- var l, d = (a = kt(a)).length, m, D, T = 0, _ = new Array(d), v = new Array(d), o = +p.apply(this, arguments), b = Math.min(q, Math.max(-q, g.apply(this, arguments) - o)), V, w = Math.min(Math.abs(b) / d, E.apply(this, arguments)), S = w * (b < 0 ? -1 : 1), t;
16
+ var l, d = (a = kt(a)).length, m, I, T = 0, _ = new Array(d), v = new Array(d), c = +p.apply(this, arguments), E = Math.min(q, Math.max(-q, g.apply(this, arguments) - c)), O, w = Math.min(Math.abs(E) / d, A.apply(this, arguments)), b = w * (E < 0 ? -1 : 1), t;
17
17
  for (l = 0; l < d; ++l)
18
18
  (t = v[_[l] = l] = +e(a[l], l, a)) > 0 && (T += t);
19
19
  for (u != null ? _.sort(function(i, n) {
20
20
  return u(v[i], v[n]);
21
- }) : A != null && _.sort(function(i, n) {
22
- return A(a[i], a[n]);
23
- }), l = 0, D = T ? (b - d * S) / T : 0; l < d; ++l, o = V)
24
- m = _[l], t = v[m], V = o + (t > 0 ? t * D : 0) + S, v[m] = {
21
+ }) : $ != null && _.sort(function(i, n) {
22
+ return $(a[i], a[n]);
23
+ }), l = 0, I = T ? (E - d * b) / T : 0; l < d; ++l, c = O)
24
+ m = _[l], t = v[m], O = c + (t > 0 ? t * I : 0) + b, v[m] = {
25
25
  data: a[m],
26
26
  index: l,
27
27
  value: t,
28
- startAngle: o,
29
- endAngle: V,
28
+ startAngle: c,
29
+ endAngle: O,
30
30
  padAngle: w
31
31
  };
32
32
  return v;
@@ -34,32 +34,32 @@ function St() {
34
34
  return y.value = function(a) {
35
35
  return arguments.length ? (e = typeof a == "function" ? a : L(+a), y) : e;
36
36
  }, y.sortValues = function(a) {
37
- return arguments.length ? (u = a, A = null, y) : u;
37
+ return arguments.length ? (u = a, $ = null, y) : u;
38
38
  }, y.sort = function(a) {
39
- return arguments.length ? (A = a, u = null, y) : A;
39
+ return arguments.length ? ($ = a, u = null, y) : $;
40
40
  }, y.startAngle = function(a) {
41
41
  return arguments.length ? (p = typeof a == "function" ? a : L(+a), y) : p;
42
42
  }, y.endAngle = function(a) {
43
43
  return arguments.length ? (g = typeof a == "function" ? a : L(+a), y) : g;
44
44
  }, y.padAngle = function(a) {
45
- return arguments.length ? (E = typeof a == "function" ? a : L(+a), y) : E;
45
+ return arguments.length ? (A = typeof a == "function" ? a : L(+a), y) : A;
46
46
  }, y;
47
47
  }
48
48
  var J = function() {
49
- var e = function(S, t, i, n) {
50
- for (i = i || {}, n = S.length; n--; i[S[n]] = t)
49
+ var e = function(b, t, i, n) {
50
+ for (i = i || {}, n = b.length; n--; i[b[n]] = t)
51
51
  ;
52
52
  return i;
53
- }, u = [1, 3], A = [1, 4], p = [1, 5], g = [1, 6], E = [1, 10, 12, 14, 16, 18, 19, 20, 21, 22], y = [2, 4], a = [1, 5, 10, 12, 14, 16, 18, 19, 20, 21, 22], l = [20, 21, 22], d = [2, 7], m = [1, 12], D = [1, 13], T = [1, 14], _ = [1, 15], v = [1, 16], o = [1, 17], b = {
53
+ }, u = [1, 3], $ = [1, 4], p = [1, 5], g = [1, 6], A = [1, 10, 12, 14, 16, 18, 19, 20, 21, 22], y = [2, 4], a = [1, 5, 10, 12, 14, 16, 18, 19, 20, 21, 22], l = [20, 21, 22], d = [2, 7], m = [1, 12], I = [1, 13], T = [1, 14], _ = [1, 15], v = [1, 16], c = [1, 17], E = {
54
54
  trace: function() {
55
55
  },
56
56
  yy: {},
57
57
  symbols_: { error: 2, start: 3, eol: 4, PIE: 5, document: 6, showData: 7, line: 8, statement: 9, txt: 10, value: 11, title: 12, title_value: 13, acc_title: 14, acc_title_value: 15, acc_descr: 16, acc_descr_value: 17, acc_descr_multiline_value: 18, section: 19, NEWLINE: 20, ";": 21, EOF: 22, $accept: 0, $end: 1 },
58
58
  terminals_: { 2: "error", 5: "PIE", 7: "showData", 10: "txt", 11: "value", 12: "title", 13: "title_value", 14: "acc_title", 15: "acc_title_value", 16: "acc_descr", 17: "acc_descr_value", 18: "acc_descr_multiline_value", 19: "section", 20: "NEWLINE", 21: ";", 22: "EOF" },
59
59
  productions_: [0, [3, 2], [3, 2], [3, 3], [6, 0], [6, 2], [8, 2], [9, 0], [9, 2], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [4, 1], [4, 1], [4, 1]],
60
- performAction: function(t, i, n, r, c, s, P) {
60
+ performAction: function(t, i, n, r, o, s, V) {
61
61
  var x = s.length - 1;
62
- switch (c) {
62
+ switch (o) {
63
63
  case 3:
64
64
  r.setShowData(!0);
65
65
  break;
@@ -84,7 +84,7 @@ var J = function() {
84
84
  break;
85
85
  }
86
86
  },
87
- table: [{ 3: 1, 4: 2, 5: u, 20: A, 21: p, 22: g }, { 1: [3] }, { 3: 7, 4: 2, 5: u, 20: A, 21: p, 22: g }, e(E, y, { 6: 8, 7: [1, 9] }), e(a, [2, 14]), e(a, [2, 15]), e(a, [2, 16]), { 1: [2, 1] }, e(l, d, { 8: 10, 9: 11, 1: [2, 2], 10: m, 12: D, 14: T, 16: _, 18: v, 19: o }), e(E, y, { 6: 18 }), e(E, [2, 5]), { 4: 19, 20: A, 21: p, 22: g }, { 11: [1, 20] }, { 13: [1, 21] }, { 15: [1, 22] }, { 17: [1, 23] }, e(l, [2, 12]), e(l, [2, 13]), e(l, d, { 8: 10, 9: 11, 1: [2, 3], 10: m, 12: D, 14: T, 16: _, 18: v, 19: o }), e(E, [2, 6]), e(l, [2, 8]), e(l, [2, 9]), e(l, [2, 10]), e(l, [2, 11])],
87
+ table: [{ 3: 1, 4: 2, 5: u, 20: $, 21: p, 22: g }, { 1: [3] }, { 3: 7, 4: 2, 5: u, 20: $, 21: p, 22: g }, e(A, y, { 6: 8, 7: [1, 9] }), e(a, [2, 14]), e(a, [2, 15]), e(a, [2, 16]), { 1: [2, 1] }, e(l, d, { 8: 10, 9: 11, 1: [2, 2], 10: m, 12: I, 14: T, 16: _, 18: v, 19: c }), e(A, y, { 6: 18 }), e(A, [2, 5]), { 4: 19, 20: $, 21: p, 22: g }, { 11: [1, 20] }, { 13: [1, 21] }, { 15: [1, 22] }, { 17: [1, 23] }, e(l, [2, 12]), e(l, [2, 13]), e(l, d, { 8: 10, 9: 11, 1: [2, 3], 10: m, 12: I, 14: T, 16: _, 18: v, 19: c }), e(A, [2, 6]), e(l, [2, 8]), e(l, [2, 9]), e(l, [2, 10]), e(l, [2, 11])],
88
88
  defaultActions: { 7: [2, 1] },
89
89
  parseError: function(t, i) {
90
90
  if (i.recoverable)
@@ -95,60 +95,60 @@ var J = function() {
95
95
  }
96
96
  },
97
97
  parse: function(t) {
98
- var i = this, n = [0], r = [], c = [null], s = [], P = this.table, x = "", f = 0, I = 0, R = 2, M = 1, Y = s.slice.call(arguments, 1), h = Object.create(this.lexer), N = { yy: {} };
98
+ var i = this, n = [0], r = [], o = [null], s = [], V = this.table, x = "", f = 0, P = 0, R = 2, M = 1, Y = s.slice.call(arguments, 1), h = Object.create(this.lexer), N = { yy: {} };
99
99
  for (var B in this.yy)
100
100
  Object.prototype.hasOwnProperty.call(this.yy, B) && (N.yy[B] = this.yy[B]);
101
- h.setInput(t, N.yy), N.yy.lexer = h, N.yy.parser = this, typeof h.yylloc == "undefined" && (h.yylloc = {});
101
+ h.setInput(t, N.yy), N.yy.lexer = h, N.yy.parser = this, typeof h.yylloc > "u" && (h.yylloc = {});
102
102
  var H = h.yylloc;
103
103
  s.push(H);
104
104
  var st = h.options && h.options.ranges;
105
105
  typeof N.yy.parseError == "function" ? this.parseError = N.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
106
106
  function rt() {
107
- var O;
108
- return O = r.pop() || h.lex() || M, typeof O != "number" && (O instanceof Array && (r = O, O = r.pop()), O = i.symbols_[O] || O), O;
107
+ var C;
108
+ return C = r.pop() || h.lex() || M, typeof C != "number" && (C instanceof Array && (r = C, C = r.pop()), C = i.symbols_[C] || C), C;
109
109
  }
110
- for (var k, F, $, X, z = {}, j, C, Q, G; ; ) {
111
- if (F = n[n.length - 1], this.defaultActions[F] ? $ = this.defaultActions[F] : ((k === null || typeof k == "undefined") && (k = rt()), $ = P[F] && P[F][k]), typeof $ == "undefined" || !$.length || !$[0]) {
110
+ for (var k, F, S, X, z = {}, W, D, Q, j; ; ) {
111
+ if (F = n[n.length - 1], this.defaultActions[F] ? S = this.defaultActions[F] : ((k === null || typeof k > "u") && (k = rt()), S = V[F] && V[F][k]), typeof S > "u" || !S.length || !S[0]) {
112
112
  var Z = "";
113
- G = [];
114
- for (j in P[F])
115
- this.terminals_[j] && j > R && G.push("'" + this.terminals_[j] + "'");
113
+ j = [];
114
+ for (W in V[F])
115
+ this.terminals_[W] && W > R && j.push("'" + this.terminals_[W] + "'");
116
116
  h.showPosition ? Z = "Parse error on line " + (f + 1) + `:
117
117
  ` + h.showPosition() + `
118
- Expecting ` + G.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "Parse error on line " + (f + 1) + ": Unexpected " + (k == M ? "end of input" : "'" + (this.terminals_[k] || k) + "'"), this.parseError(Z, {
118
+ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "Parse error on line " + (f + 1) + ": Unexpected " + (k == M ? "end of input" : "'" + (this.terminals_[k] || k) + "'"), this.parseError(Z, {
119
119
  text: h.match,
120
120
  token: this.terminals_[k] || k,
121
121
  line: h.yylineno,
122
122
  loc: H,
123
- expected: G
123
+ expected: j
124
124
  });
125
125
  }
126
- if ($[0] instanceof Array && $.length > 1)
126
+ if (S[0] instanceof Array && S.length > 1)
127
127
  throw new Error("Parse Error: multiple actions possible at state: " + F + ", token: " + k);
128
- switch ($[0]) {
128
+ switch (S[0]) {
129
129
  case 1:
130
- n.push(k), c.push(h.yytext), s.push(h.yylloc), n.push($[1]), k = null, I = h.yyleng, x = h.yytext, f = h.yylineno, H = h.yylloc;
130
+ n.push(k), o.push(h.yytext), s.push(h.yylloc), n.push(S[1]), k = null, P = h.yyleng, x = h.yytext, f = h.yylineno, H = h.yylloc;
131
131
  break;
132
132
  case 2:
133
- if (C = this.productions_[$[1]][1], z.$ = c[c.length - C], z._$ = {
134
- first_line: s[s.length - (C || 1)].first_line,
133
+ if (D = this.productions_[S[1]][1], z.$ = o[o.length - D], z._$ = {
134
+ first_line: s[s.length - (D || 1)].first_line,
135
135
  last_line: s[s.length - 1].last_line,
136
- first_column: s[s.length - (C || 1)].first_column,
136
+ first_column: s[s.length - (D || 1)].first_column,
137
137
  last_column: s[s.length - 1].last_column
138
138
  }, st && (z._$.range = [
139
- s[s.length - (C || 1)].range[0],
139
+ s[s.length - (D || 1)].range[0],
140
140
  s[s.length - 1].range[1]
141
141
  ]), X = this.performAction.apply(z, [
142
142
  x,
143
- I,
143
+ P,
144
144
  f,
145
145
  N.yy,
146
- $[1],
147
- c,
146
+ S[1],
147
+ o,
148
148
  s
149
- ].concat(Y)), typeof X != "undefined")
149
+ ].concat(Y)), typeof X < "u")
150
150
  return X;
151
- C && (n = n.slice(0, -1 * C * 2), c = c.slice(0, -1 * C), s = s.slice(0, -1 * C)), n.push(this.productions_[$[1]][0]), c.push(z.$), s.push(z._$), Q = P[n[n.length - 2]][n[n.length - 1]], n.push(Q);
151
+ D && (n = n.slice(0, -1 * D * 2), o = o.slice(0, -1 * D), s = s.slice(0, -1 * D)), n.push(this.productions_[S[1]][0]), o.push(z.$), s.push(z._$), Q = V[n[n.length - 2]][n[n.length - 1]], n.push(Q);
152
152
  break;
153
153
  case 3:
154
154
  return !0;
@@ -156,8 +156,8 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "
156
156
  }
157
157
  return !0;
158
158
  }
159
- }, V = function() {
160
- var S = {
159
+ }, O = function() {
160
+ var b = {
161
161
  EOF: 1,
162
162
  parseError: function(i, n) {
163
163
  if (this.yy.parser)
@@ -187,13 +187,13 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "
187
187
  this._input = t + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - i), this.offset -= i;
188
188
  var r = this.match.split(/(?:\r\n?|\n)/g);
189
189
  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);
190
- var c = this.yylloc.range;
190
+ var o = this.yylloc.range;
191
191
  return this.yylloc = {
192
192
  first_line: this.yylloc.first_line,
193
193
  last_line: this.yylineno + 1,
194
194
  first_column: this.yylloc.first_column,
195
195
  last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - i
196
- }, this.options.ranges && (this.yylloc.range = [c[0], c[0] + this.yyleng - i]), this.yyleng = this.yytext.length, this;
196
+ }, this.options.ranges && (this.yylloc.range = [o[0], o[0] + this.yyleng - i]), this.yyleng = this.yytext.length, this;
197
197
  },
198
198
  // When called from action, caches matched text and appends it on next action
199
199
  more: function() {
@@ -234,8 +234,8 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "
234
234
  },
235
235
  // test the lexed token: return FALSE when not a match, otherwise return token
236
236
  test_match: function(t, i) {
237
- var n, r, c;
238
- if (this.options.backtrack_lexer && (c = {
237
+ var n, r, o;
238
+ if (this.options.backtrack_lexer && (o = {
239
239
  yylineno: this.yylineno,
240
240
  yylloc: {
241
241
  first_line: this.yylloc.first_line,
@@ -254,7 +254,7 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "
254
254
  yy: this.yy,
255
255
  conditionStack: this.conditionStack.slice(0),
256
256
  done: this.done
257
- }, this.options.ranges && (c.yylloc.range = this.yylloc.range.slice(0))), r = t[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
257
+ }, this.options.ranges && (o.yylloc.range = this.yylloc.range.slice(0))), r = t[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
258
258
  first_line: this.yylloc.last_line,
259
259
  last_line: this.yylineno + 1,
260
260
  first_column: this.yylloc.last_column,
@@ -262,8 +262,8 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "
262
262
  }, 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], n = this.performAction.call(this, this.yy, this, i, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n)
263
263
  return n;
264
264
  if (this._backtrack) {
265
- for (var s in c)
266
- this[s] = c[s];
265
+ for (var s in o)
266
+ this[s] = o[s];
267
267
  return !1;
268
268
  }
269
269
  return !1;
@@ -275,10 +275,10 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "
275
275
  this._input || (this.done = !0);
276
276
  var t, i, n, r;
277
277
  this._more || (this.yytext = "", this.match = "");
278
- for (var c = this._currentRules(), s = 0; s < c.length; s++)
279
- if (n = this._input.match(this.rules[c[s]]), n && (!i || n[0].length > i[0].length)) {
278
+ for (var o = this._currentRules(), s = 0; s < o.length; s++)
279
+ if (n = this._input.match(this.rules[o[s]]), n && (!i || n[0].length > i[0].length)) {
280
280
  if (i = n, r = s, this.options.backtrack_lexer) {
281
- if (t = this.test_match(n, c[s]), t !== !1)
281
+ if (t = this.test_match(n, o[s]), t !== !1)
282
282
  return t;
283
283
  if (this._backtrack) {
284
284
  i = !1;
@@ -288,7 +288,7 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "
288
288
  } else if (!this.options.flex)
289
289
  break;
290
290
  }
291
- return i ? (t = this.test_match(i, c[r]), t !== !1 ? t : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
291
+ return i ? (t = this.test_match(i, o[r]), t !== !1 ? t : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
292
292
  ` + this.showPosition(), {
293
293
  text: "",
294
294
  token: null,
@@ -326,7 +326,7 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "
326
326
  return this.conditionStack.length;
327
327
  },
328
328
  options: { "case-insensitive": !0 },
329
- performAction: function(i, n, r, c) {
329
+ performAction: function(i, n, r, o) {
330
330
  switch (r) {
331
331
  case 0:
332
332
  break;
@@ -379,23 +379,23 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "
379
379
  rules: [/^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n\r]+)/i, /^(?:%%[^\n]*)/i, /^(?:[\s]+)/i, /^(?:title\b)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:pie\b)/i, /^(?:showData\b)/i, /^(?::[\s]*[\d]+(?:\.[\d]+)?)/i, /^(?:$)/i],
380
380
  conditions: { acc_descr_multiline: { rules: [12, 13], inclusive: !1 }, acc_descr: { rules: [10], inclusive: !1 }, acc_title: { rules: [8], inclusive: !1 }, title: { rules: [6], inclusive: !1 }, string: { rules: [15, 16], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 7, 9, 11, 14, 17, 18, 19, 20], inclusive: !0 } }
381
381
  };
382
- return S;
382
+ return b;
383
383
  }();
384
- b.lexer = V;
384
+ E.lexer = O;
385
385
  function w() {
386
386
  this.yy = {};
387
387
  }
388
- return w.prototype = b, b.Parser = w, new w();
388
+ return w.prototype = E, E.Parser = w, new w();
389
389
  }();
390
390
  J.parser = J;
391
- const $t = J, nt = at.pie, W = {
391
+ const $t = J, nt = at.pie, G = {
392
392
  sections: {},
393
393
  showData: !1,
394
394
  config: nt
395
395
  };
396
- let U = W.sections, K = W.showData;
396
+ let U = G.sections, K = G.showData;
397
397
  const At = structuredClone(nt), Et = () => structuredClone(At), wt = () => {
398
- U = structuredClone(W.sections), K = W.showData, ft();
398
+ U = structuredClone(G.sections), K = G.showData, ft();
399
399
  }, Tt = (e, u) => {
400
400
  e = pt(e, et()), U[e] === void 0 && (U[e] = u, it.debug(`added new section: ${e}, with value: ${u}`));
401
401
  }, It = () => U, Dt = (e) => (e.substring(0, 1) === ":" && (e = e.substring(1).trim()), Number(e.trim())), Ct = (e) => {
@@ -404,8 +404,8 @@ const At = structuredClone(nt), Et = () => structuredClone(At), wt = () => {
404
404
  getConfig: Et,
405
405
  clear: wt,
406
406
  setDiagramTitle: lt,
407
- getDiagramTitle: ct,
408
- setAccTitle: ot,
407
+ getDiagramTitle: ot,
408
+ setAccTitle: ct,
409
409
  getAccTitle: ht,
410
410
  setAccDescription: ut,
411
411
  getAccDescription: yt,
@@ -450,49 +450,46 @@ const At = structuredClone(nt), Et = () => structuredClone(At), wt = () => {
450
450
  return St().value(
451
451
  (p) => p.value
452
452
  )(u);
453
- }, Lt = (e, u, A, p) => {
453
+ }, Lt = (e, u, $, p) => {
454
454
  it.debug(`rendering pie chart
455
455
  ` + e);
456
- const g = p.db, E = et(), y = gt(g.getConfig(), E.pie), a = 40, l = 18, d = 4, m = 450, D = m, T = dt(u), _ = T.append("g"), v = g.getSections();
457
- _.attr("transform", "translate(" + D / 2 + "," + m / 2 + ")");
458
- const { themeVariables: o } = E;
459
- let [b] = mt(o.pieOuterStrokeWidth);
460
- b != null || (b = 2);
461
- const V = y.textPosition, w = Math.min(D, m) / 2 - a, S = tt().innerRadius(0).outerRadius(w), t = tt().innerRadius(w * V).outerRadius(w * V);
462
- _.append("circle").attr("cx", 0).attr("cy", 0).attr("r", w + b / 2).attr("class", "pieOuterCircle");
456
+ const g = p.db, A = et(), y = gt(g.getConfig(), A.pie), a = 40, l = 18, d = 4, m = 450, I = m, T = dt(u), _ = T.append("g"), v = g.getSections();
457
+ _.attr("transform", "translate(" + I / 2 + "," + m / 2 + ")");
458
+ const { themeVariables: c } = A;
459
+ let [E] = mt(c.pieOuterStrokeWidth);
460
+ E ?? (E = 2);
461
+ const O = y.textPosition, w = Math.min(I, m) / 2 - a, b = tt().innerRadius(0).outerRadius(w), t = tt().innerRadius(w * O).outerRadius(w * O);
462
+ _.append("circle").attr("cx", 0).attr("cy", 0).attr("r", w + E / 2).attr("class", "pieOuterCircle");
463
463
  const i = Ft(v), n = [
464
- o.pie1,
465
- o.pie2,
466
- o.pie3,
467
- o.pie4,
468
- o.pie5,
469
- o.pie6,
470
- o.pie7,
471
- o.pie8,
472
- o.pie9,
473
- o.pie10,
474
- o.pie11,
475
- o.pie12
464
+ c.pie1,
465
+ c.pie2,
466
+ c.pie3,
467
+ c.pie4,
468
+ c.pie5,
469
+ c.pie6,
470
+ c.pie7,
471
+ c.pie8,
472
+ c.pie9,
473
+ c.pie10,
474
+ c.pie11,
475
+ c.pie12
476
476
  ], r = xt(n);
477
- _.selectAll("mySlices").data(i).enter().append("path").attr("d", S).attr("fill", (f) => r(f.data.label)).attr("class", "pieCircle");
478
- let c = 0;
477
+ _.selectAll("mySlices").data(i).enter().append("path").attr("d", b).attr("fill", (f) => r(f.data.label)).attr("class", "pieCircle");
478
+ let o = 0;
479
479
  Object.keys(v).forEach((f) => {
480
- c += v[f];
481
- }), _.selectAll("mySlices").data(i).enter().append("text").text((f) => (f.data.value / c * 100).toFixed(0) + "%").attr("transform", (f) => "translate(" + t.centroid(f) + ")").style("text-anchor", "middle").attr("class", "slice"), _.append("text").text(g.getDiagramTitle()).attr("x", 0).attr("y", -(m - 50) / 2).attr("class", "pieTitleText");
482
- const s = _.selectAll(".legend").data(r.domain()).enter().append("g").attr("class", "legend").attr("transform", (f, I) => {
483
- const R = l + d, M = R * r.domain().length / 2, Y = 12 * l, h = I * R - M;
480
+ o += v[f];
481
+ }), _.selectAll("mySlices").data(i).enter().append("text").text((f) => (f.data.value / o * 100).toFixed(0) + "%").attr("transform", (f) => "translate(" + t.centroid(f) + ")").style("text-anchor", "middle").attr("class", "slice"), _.append("text").text(g.getDiagramTitle()).attr("x", 0).attr("y", -(m - 50) / 2).attr("class", "pieTitleText");
482
+ const s = _.selectAll(".legend").data(r.domain()).enter().append("g").attr("class", "legend").attr("transform", (f, P) => {
483
+ const R = l + d, M = R * r.domain().length / 2, Y = 12 * l, h = P * R - M;
484
484
  return "translate(" + Y + "," + h + ")";
485
485
  });
486
486
  s.append("rect").attr("width", l).attr("height", l).style("fill", r).style("stroke", r), s.data(i).append("text").attr("x", l + d).attr("y", l - d).text((f) => {
487
- const { label: I, value: R } = f.data;
488
- return g.getShowData() ? `${I} [${R}]` : I;
487
+ const { label: P, value: R } = f.data;
488
+ return g.getShowData() ? `${P} [${R}]` : P;
489
489
  });
490
- const P = Math.max(
491
- ...s.selectAll("text").nodes().map((f) => {
492
- var I;
493
- return (I = f == null ? void 0 : f.getBoundingClientRect().width) != null ? I : 0;
494
- })
495
- ), x = D + a + l + d + P;
490
+ const V = Math.max(
491
+ ...s.selectAll("text").nodes().map((f) => f?.getBoundingClientRect().width ?? 0)
492
+ ), x = I + a + l + d + V;
496
493
  T.attr("viewBox", `0 0 ${x} ${m}`), _t(T, m, x, y.useMaxWidth);
497
494
  }, Rt = { draw: Lt }, Yt = {
498
495
  parser: $t,
@@ -1,11 +1,11 @@
1
- import { Z as zt, _ as ot, X as wt, W as Ft, s as Nt, a as Xt, F as Yt, G as St, b as Ht, d as $t, H as Ut, l as _t, U as qt, k as jt, f as Gt } from "./eeeac330.js";
2
- import { c as Qt } from "./5d259708.js";
1
+ import { Z as zt, _ as ot, X as wt, W as Ft, s as Nt, a as Xt, F as Yt, G as St, b as Ht, d as $t, H as Ut, l as _t, U as qt, k as jt, f as Gt } from "./7cc252e4.js";
2
+ import { c as Qt } from "./5fd9a898.js";
3
3
  import { i as Kt } from "./f9637058.js";
4
4
  import { o as Zt } from "./92e85b65.js";
5
- import { l as ft } from "./93e77b54.js";
6
- import { l as pt } from "./6c5168e9.js";
5
+ import { l as ft } from "./558e8ee5.js";
6
+ import { l as pt } from "./5a31cef7.js";
7
7
  import "./2ff2c7a6.js";
8
- import "./256b619e.js";
8
+ import "./428ebac9.js";
9
9
  function Jt(e, t, i) {
10
10
  e = +e, t = +t, i = (n = arguments.length) < 2 ? (t = e, e = 0, 1) : n < 3 ? 1 : +i;
11
11
  for (var s = -1, n = Math.max(0, Math.ceil((t - e) / i)) | 0, o = new Array(n); ++s < n; )
@@ -163,7 +163,7 @@ var nt = function() {
163
163
  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: {} };
164
164
  for (var J in this.yy)
165
165
  Object.prototype.hasOwnProperty.call(this.yy, J) && (W.yy[J] = this.yy[J]);
166
- k.setInput(r, W.yy), W.yy.lexer = k, W.yy.parser = this, typeof k.yylloc == "undefined" && (k.yylloc = {});
166
+ k.setInput(r, W.yy), W.yy.lexer = k, W.yy.parser = this, typeof k.yylloc > "u" && (k.yylloc = {});
167
167
  var tt = k.yylloc;
168
168
  a.push(tt);
169
169
  var Bt = k.options && k.options.ranges;
@@ -173,7 +173,7 @@ var nt = function() {
173
173
  return I = g.pop() || k.lex() || xt, typeof I != "number" && (I instanceof Array && (g = I, I = g.pop()), I = l.symbols_[I] || I), I;
174
174
  }
175
175
  for (var D, B, v, it, O = {}, q, M, dt, j; ; ) {
176
- if (B = u[u.length - 1], this.defaultActions[B] ? v = this.defaultActions[B] : ((D === null || typeof D == "undefined") && (D = Ot()), v = F[B] && F[B][D]), typeof v == "undefined" || !v.length || !v[0]) {
176
+ 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]) {
177
177
  var et = "";
178
178
  j = [];
179
179
  for (q in F[B])
@@ -211,7 +211,7 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[D] || D) + "'" : et =
211
211
  v[1],
212
212
  b,
213
213
  a
214
- ].concat(Wt)), typeof it != "undefined")
214
+ ].concat(Wt)), typeof it < "u")
215
215
  return it;
216
216
  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);
217
217
  break;