@belonguniverseai/react-sdk 0.6.2 → 0.6.3

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 (78) hide show
  1. package/dist/api/agent-grants.d.ts +6 -0
  2. package/dist/api/client.d.ts +30 -1
  3. package/dist/app/call-summary.d.ts +30 -0
  4. package/dist/component/abnfDiagram-N423BO3Z-C1O9dfJJ.js +90 -0
  5. package/dist/component/arc-Cpnt_LFj.js +86 -0
  6. package/dist/component/{architectureDiagram-3BPJPVTR-DYcaPx2M.js → architectureDiagram-T3A2C74G-iakL6yUj.js} +1872 -1785
  7. package/dist/component/{blockDiagram-GPEHLZMM-BdjruLO5.js → blockDiagram-VBNYF7ZC-D7t0jIvW.js} +895 -894
  8. package/dist/component/{c4Diagram-AAUBKEIU-Bd2ebSgB.js → c4Diagram-5PPSVZJV-CRX1o0CJ.js} +3 -3
  9. package/dist/component/{channel-CYFijF_t.js → channel-DnM50Ep0.js} +2 -2
  10. package/dist/component/{chunk-ND2GUHAM-OX1-DIU1.js → chunk-2GRJ4B5K-ChTMjM-v.js} +5 -5
  11. package/dist/component/{chunk-QZHKN3VN-DLQ8oUCc.js → chunk-2Q5K7J3B-F2Rpvtwm.js} +2 -2
  12. package/dist/component/{chunk-AQP2D5EJ-D4G4syYu.js → chunk-5RXB4S5H-B1WLx-ex.js} +399 -378
  13. package/dist/component/{chunk-FMBD7UC4-CbRxWx_A.js → chunk-5VM5RSS4-D35VMAuN.js} +2 -2
  14. package/dist/component/chunk-6Q2QTUOP-DGVp_gyk.js +673 -0
  15. package/dist/component/{chunk-727SXJPM-A5r5oL1_.js → chunk-GF5L2VYU-CZOQEv_q.js} +244 -239
  16. package/dist/component/{chunk-4BX2VUAB-DVpS0I_p.js → chunk-JWPE2WC7-BbwyDj9g.js} +2 -2
  17. package/dist/component/{chunk-2J33WTMH-B06Y_xVy.js → chunk-KBJHAD2P-B9qL0VLM.js} +2 -2
  18. package/dist/component/chunk-RYQCIY6F-5eaMbXXL.js +316 -0
  19. package/dist/component/{chunk-55IACEB6-DmZctFkK.js → chunk-XXDRQBXY-XJadTIK5.js} +2 -2
  20. package/dist/component/{classDiagram-4FO5ZUOK-4S9mdFC1.js → classDiagram-JCYQIIEL-DVaEk7uT.js} +3 -3
  21. package/dist/component/{classDiagram-v2-Q7XG4LA2-4S9mdFC1.js → classDiagram-v2-OCEON4UE-DVaEk7uT.js} +3 -3
  22. package/dist/component/{cose-bilkent-S5V4N54A-BIrVaakt.js → cose-bilkent-JH36ORCC-DZA30AqI.js} +2 -2
  23. package/dist/component/{wardley-L42UT6IY-HA1eSIS_.js → cynefin-VYW2F7L2-DAyxamLw.js} +9199 -7918
  24. package/dist/component/cynefinDiagram-MW4NZA55-CutZScTQ.js +302 -0
  25. package/dist/component/dagre-VZM6K2ZE-CelPLP8N.js +343 -0
  26. package/dist/component/diagram-7IWD3JNH-Cr5piwKc.js +353 -0
  27. package/dist/component/{diagram-KO2AKTUF-Da1E68Eo.js → diagram-B4RE2ZJO-DgLNdZkh.js} +24 -24
  28. package/dist/component/{diagram-LMA3HP47-dRbk5sBa.js → diagram-LBJQPF4R-DxeIMTjN.js} +23 -23
  29. package/dist/component/{diagram-OG6HWLK6-CcKT8mhn.js → diagram-Q27KOJAE-WACyk_gr.js} +197 -197
  30. package/dist/component/diagram-UB23O5K3-DbhVYU5T.js +222 -0
  31. package/dist/component/ebnfDiagram-BXEA7PRR-DoGrYW10.js +112 -0
  32. package/dist/component/{erDiagram-TEJ5UH35-3ATYT9J-.js → erDiagram-JOGREHBK-BgewA6fH.js} +142 -131
  33. package/dist/component/{flowDiagram-I6XJVG4X-D9PLm9Od.js → flowDiagram-UKHOOZJN-1YmYJYcE.js} +268 -258
  34. package/dist/component/ganttDiagram-PKOTCBZU-BFAEPYkH.js +2714 -0
  35. package/dist/component/{gitGraphDiagram-PVQCEYII-13gVhAGc.js → gitGraphDiagram-DS77QQ5N-CSiPuE-l.js} +33 -33
  36. package/dist/component/{graph-BZLHvygk.js → graph-CWpEkm4G.js} +35 -35
  37. package/dist/component/{highlighted-body-OFNGDK62-DCxRI4UV.js → highlighted-body-OFNGDK62-CSJNGt18.js} +2 -2
  38. package/dist/component/index.js +2 -2
  39. package/dist/component/{infoDiagram-5YYISTIA-DymxA7AN.js → infoDiagram-6WML65LV-CoMVfONe.js} +4 -4
  40. package/dist/component/{ishikawaDiagram-YF4QCWOH-C3sTn76C.js → ishikawaDiagram-WSZJBQD7-B2YEkQ4b.js} +27 -27
  41. package/dist/component/{journeyDiagram-JHISSGLW-Cq0hOAfJ.js → journeyDiagram-NVQOT4AX-B7b5ZwlF.js} +5 -5
  42. package/dist/component/{kanban-definition-UN3LZRKU-5tBWjkp7.js → kanban-definition-27J2QSJJ-C9GPAsBR.js} +35 -35
  43. package/dist/component/layout-Br2UjHRU.js +1522 -0
  44. package/dist/component/{linear-BT4blD8s.js → linear-Bi0C-9d1.js} +13 -13
  45. package/dist/component/map-CdwokNh2.js +227 -0
  46. package/dist/component/{mermaid-GHXKKRXX-DXPXjnb7.js → mermaid-GHXKKRXX-BaBCeViM.js} +25220 -24784
  47. package/dist/component/{mindmap-definition-RKZ34NQL-DO-OuAQQ.js → mindmap-definition-FAOFIHXS-tHIAo7Ms.js} +26 -26
  48. package/dist/component/pegDiagram-VL7TDLO6-Db_7lLRV.js +98 -0
  49. package/dist/component/pieDiagram-7S7Q4E2Y-C4fs4XCK.js +210 -0
  50. package/dist/component/{quadrantDiagram-W4KKPZXB-CaJWg9ep.js → quadrantDiagram-CIZ2JOQS-Bw7vXO0q.js} +14 -15
  51. package/dist/component/railroadDiagram-AXF67PYL-kY0VoZEg.js +80 -0
  52. package/dist/component/{requirementDiagram-4Y6WPE33-CmZrtZqe.js → requirementDiagram-LRYGKXZP-BkNtSZm5.js} +15 -15
  53. package/dist/component/{sankeyDiagram-5OEKKPKP-Cp95M1aj.js → sankeyDiagram-W5VNT64P-BK_C1BYE.js} +2 -2
  54. package/dist/component/{sequenceDiagram-3UESZ5HK-C0x0WvhR.js → sequenceDiagram-SI44F4Z6-CEmgVZaE.js} +960 -963
  55. package/dist/component/sizeCapture-X5ZJPWSS-J5ZNXT4c.js +49 -0
  56. package/dist/component/{stateDiagram-AJRCARHV-H10vaGL3.js → stateDiagram-OKZ733FA-DrwrNuNs.js} +5 -5
  57. package/dist/component/{stateDiagram-v2-BHNVJYJU-rj7ljkc-.js → stateDiagram-v2-UEYNNEHI-DHD85VTD.js} +3 -3
  58. package/dist/component/swimlanes-SLNWSIFB-FOK5tys1.js +5335 -0
  59. package/dist/component/swimlanesDiagram-ULZ7WXOC-edTvZTge.js +16 -0
  60. package/dist/component/{timeline-definition-PNZ67QCA-Cil1QaqZ.js → timeline-definition-Z64GVDOM-Cc4fTsjY.js} +15 -15
  61. package/dist/component/vennDiagram-T6HMQDX7-DYZl8srI.js +1581 -0
  62. package/dist/component/{wardleyDiagram-YWT4CUSO-Xq5Hnmio.js → wardleyDiagram-T6FBY63Y-BEvv3PjS.js} +15 -15
  63. package/dist/component/{xychartDiagram-2RQKCTM6-dinwR4Zm.js → xychartDiagram-ELKLHX3M-79AgTtk-.js} +464 -418
  64. package/dist/embed/voice/line-slots.d.ts +37 -2
  65. package/dist/embed/voice-call.d.ts +12 -0
  66. package/dist/i18n/messages/en.d.ts +1 -2
  67. package/dist/lib/web-storage.d.ts +8 -0
  68. package/dist/stream/stream-state-store.d.ts +13 -0
  69. package/dist/types/public.d.ts +3 -0
  70. package/package.json +1 -1
  71. package/dist/component/arc-TLcl3N8_.js +0 -86
  72. package/dist/component/dagre-BM42HDAG-BoPUzTvD.js +0 -448
  73. package/dist/component/diagram-2AECGRRQ-PIXCGxIt.js +0 -220
  74. package/dist/component/diagram-5GNKFQAL-CbJxbGBh.js +0 -126
  75. package/dist/component/ganttDiagram-6RSMTGT7-F_XUzD1p.js +0 -2709
  76. package/dist/component/layout-Bu6nRdWm.js +0 -1731
  77. package/dist/component/pieDiagram-4H26LBE5-BkEktPwZ.js +0 -166
  78. package/dist/component/vennDiagram-CIIHVFJN-Dk8PKmfb.js +0 -1560
@@ -1,62 +1,62 @@
1
- import { s as ei, g as si, t as Lt, q as ni, a as ai, b as oi, _ as a, l as Et, N as ri, e as hi, B as li, G as dt, i as ci, I as It, K as ui, a4 as gi, ap as xi, ac as Rt } from "./mermaid-GHXKKRXX-DXPXjnb7.js";
2
- import { i as di } from "./init-BOu0eQYQ.js";
3
- import { o as fi } from "./ordinal-D0x7izaa.js";
4
- import { l as Dt } from "./linear-BT4blD8s.js";
1
+ import { s as si, g as ai, p as Et, o as ni, a as oi, b as ri, _ as n, l as It, G as hi, e as li, q as ci, z as pt, i as ui, D as Mt, E as gi, Z as xi, aC as di, aa as Dt } from "./mermaid-GHXKKRXX-BaBCeViM.js";
2
+ import { i as fi } from "./init-BOu0eQYQ.js";
3
+ import { o as pi } from "./ordinal-D0x7izaa.js";
4
+ import { l as vt } from "./linear-Bi0C-9d1.js";
5
5
  globalThis.process = globalThis.process || { env: {} };
6
6
  globalThis.global = globalThis.global || globalThis;
7
- function pi(t, i, e) {
8
- t = +t, i = +i, e = (n = arguments.length) < 2 ? (i = t, t = 0, 1) : n < 3 ? 1 : +e;
9
- for (var s = -1, n = Math.max(0, Math.ceil((i - t) / e)) | 0, g = new Array(n); ++s < n; )
10
- g[s] = t + s * e;
11
- return g;
7
+ function mi(t, i, e) {
8
+ t = +t, i = +i, e = (a = arguments.length) < 2 ? (i = t, t = 0, 1) : a < 3 ? 1 : +e;
9
+ for (var s = -1, a = Math.max(0, Math.ceil((i - t) / e)) | 0, c = new Array(a); ++s < a; )
10
+ c[s] = t + s * e;
11
+ return c;
12
12
  }
13
- function lt() {
14
- var t = fi().unknown(void 0), i = t.domain, e = t.range, s = 0, n = 1, g, c, p = !1, k = 0, v = 0, P = 0.5;
13
+ function ut() {
14
+ var t = pi().unknown(void 0), i = t.domain, e = t.range, s = 0, a = 1, c, u, p = !1, S = 0, k = 0, L = 0.5;
15
15
  delete t.unknown;
16
- function S() {
17
- var m = i().length, E = n < s, D = E ? n : s, L = E ? s : n;
18
- g = (L - D) / Math.max(1, m - k + v * 2), p && (g = Math.floor(g)), D += (L - D - g * (m - k)) * P, c = g * (1 - k), p && (D = Math.round(D), c = Math.round(c));
19
- var I = pi(m).map(function(f) {
20
- return D + g * f;
16
+ function _() {
17
+ var y = i().length, E = a < s, v = E ? a : s, P = E ? s : a;
18
+ c = (P - v) / Math.max(1, y - S + k * 2), p && (c = Math.floor(c)), v += (P - v - c * (y - S)) * L, u = c * (1 - S), p && (v = Math.round(v), u = Math.round(u));
19
+ var I = mi(y).map(function(f) {
20
+ return v + c * f;
21
21
  });
22
22
  return e(E ? I.reverse() : I);
23
23
  }
24
- return t.domain = function(m) {
25
- return arguments.length ? (i(m), S()) : i();
26
- }, t.range = function(m) {
27
- return arguments.length ? ([s, n] = m, s = +s, n = +n, S()) : [s, n];
28
- }, t.rangeRound = function(m) {
29
- return [s, n] = m, s = +s, n = +n, p = !0, S();
24
+ return t.domain = function(y) {
25
+ return arguments.length ? (i(y), _()) : i();
26
+ }, t.range = function(y) {
27
+ return arguments.length ? ([s, a] = y, s = +s, a = +a, _()) : [s, a];
28
+ }, t.rangeRound = function(y) {
29
+ return [s, a] = y, s = +s, a = +a, p = !0, _();
30
30
  }, t.bandwidth = function() {
31
- return c;
31
+ return u;
32
32
  }, t.step = function() {
33
- return g;
34
- }, t.round = function(m) {
35
- return arguments.length ? (p = !!m, S()) : p;
36
- }, t.padding = function(m) {
37
- return arguments.length ? (k = Math.min(1, v = +m), S()) : k;
38
- }, t.paddingInner = function(m) {
39
- return arguments.length ? (k = Math.min(1, m), S()) : k;
40
- }, t.paddingOuter = function(m) {
41
- return arguments.length ? (v = +m, S()) : v;
42
- }, t.align = function(m) {
43
- return arguments.length ? (P = Math.max(0, Math.min(1, m)), S()) : P;
33
+ return c;
34
+ }, t.round = function(y) {
35
+ return arguments.length ? (p = !!y, _()) : p;
36
+ }, t.padding = function(y) {
37
+ return arguments.length ? (S = Math.min(1, k = +y), _()) : S;
38
+ }, t.paddingInner = function(y) {
39
+ return arguments.length ? (S = Math.min(1, y), _()) : S;
40
+ }, t.paddingOuter = function(y) {
41
+ return arguments.length ? (k = +y, _()) : k;
42
+ }, t.align = function(y) {
43
+ return arguments.length ? (L = Math.max(0, Math.min(1, y)), _()) : L;
44
44
  }, t.copy = function() {
45
- return lt(i(), [s, n]).round(p).paddingInner(k).paddingOuter(v).align(P);
46
- }, di.apply(S(), arguments);
45
+ return ut(i(), [s, a]).round(p).paddingInner(S).paddingOuter(k).align(L);
46
+ }, fi.apply(_(), arguments);
47
47
  }
48
- var ct = (function() {
49
- var t = /* @__PURE__ */ a(function(F, r, l, u) {
50
- for (l = l || {}, u = F.length; u--; l[F[u]] = r) ;
48
+ var gt = (function() {
49
+ var t = /* @__PURE__ */ n(function(F, r, l, g) {
50
+ for (l = l || {}, g = F.length; g--; l[F[g]] = r) ;
51
51
  return l;
52
- }, "o"), i = [1, 10, 12, 14, 16, 18, 19, 21, 23], e = [2, 6], s = [1, 3], n = [1, 5], g = [1, 6], c = [1, 7], p = [1, 5, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], k = [1, 25], v = [1, 26], P = [1, 28], S = [1, 29], m = [1, 30], E = [1, 31], D = [1, 32], L = [1, 33], I = [1, 34], f = [1, 35], T = [1, 36], h = [1, 37], W = [1, 43], O = [1, 42], X = [1, 47], Y = [1, 50], C = [1, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], U = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36], y = [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], A = [1, 64], V = {
53
- trace: /* @__PURE__ */ a(function() {
52
+ }, "o"), i = [1, 10, 12, 14, 16, 18, 19, 21, 23], e = [2, 6], s = [1, 3], a = [1, 5], c = [1, 6], u = [1, 7], p = [1, 5, 10, 12, 14, 16, 18, 19, 21, 23, 36, 37, 38], S = [1, 25], k = [1, 26], L = [1, 28], _ = [1, 29], y = [1, 30], E = [1, 31], v = [1, 32], P = [1, 33], I = [1, 34], f = [1, 35], T = [1, 36], h = [1, 37], V = [1, 43], W = [1, 42], X = [1, 47], Y = [1, 50], C = [1, 10, 12, 14, 16, 18, 19, 21, 23, 36, 37, 38], H = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 28, 29, 36, 37, 38], b = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 28, 29, 36, 37, 38, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51], A = [1, 65], B = [26, 28], R = {
53
+ trace: /* @__PURE__ */ n(function() {
54
54
  }, "trace"),
55
55
  yy: {},
56
- 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 },
57
- 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" },
58
- 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]],
59
- performAction: /* @__PURE__ */ a(function(r, l, u, x, w, o, Q) {
56
+ 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, dataPoints: 25, SQUARE_BRACES_END: 26, dataPoint: 27, COMMA: 28, NUMBER_WITH_DECIMAL: 29, STR: 30, xAxisData: 31, bandData: 32, ARROW_DELIMITER: 33, commaSeparatedTexts: 34, yAxisData: 35, NEWLINE: 36, SEMI: 37, EOF: 38, alphaNum: 39, MD_STR: 40, alphaNumToken: 41, AMP: 42, NUM: 43, ALPHA: 44, PLUS: 45, EQUALS: 46, MULT: 47, DOT: 48, BRKT: 49, MINUS: 50, UNDERSCORE: 51, $accept: 0, $end: 1 },
57
+ 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", 28: "COMMA", 29: "NUMBER_WITH_DECIMAL", 30: "STR", 33: "ARROW_DELIMITER", 36: "NEWLINE", 37: "SEMI", 38: "EOF", 40: "MD_STR", 42: "AMP", 43: "NUM", 44: "ALPHA", 45: "PLUS", 46: "EQUALS", 47: "MULT", 48: "DOT", 49: "BRKT", 50: "MINUS", 51: "UNDERSCORE" },
58
+ 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], [27, 2], [27, 1], [13, 1], [13, 2], [13, 1], [31, 1], [31, 3], [32, 3], [34, 3], [34, 1], [15, 1], [15, 2], [15, 1], [35, 3], [4, 1], [4, 1], [4, 1], [11, 1], [11, 1], [11, 1], [39, 1], [39, 2], [41, 1], [41, 1], [41, 1], [41, 1], [41, 1], [41, 1], [41, 1], [41, 1], [41, 1], [41, 1]],
59
+ performAction: /* @__PURE__ */ n(function(r, l, g, x, w, o, K) {
60
60
  var d = o.length - 1;
61
61
  switch (w) {
62
62
  case 5:
@@ -88,134 +88,136 @@ var ct = (function() {
88
88
  this.$ = o[d - 1];
89
89
  break;
90
90
  case 20:
91
- this.$ = [Number(o[d - 2]), ...o[d]];
91
+ case 30:
92
+ this.$ = [o[d - 2], ...o[d]];
92
93
  break;
93
94
  case 21:
94
- this.$ = [Number(o[d])];
95
+ case 31:
96
+ this.$ = [o[d]];
95
97
  break;
96
98
  case 22:
97
- x.setXAxisTitle(o[d]);
99
+ this.$ = { value: Number(o[d - 1]), label: o[d] };
98
100
  break;
99
101
  case 23:
100
- x.setXAxisTitle(o[d - 1]);
102
+ this.$ = { value: Number(o[d]), label: "" };
101
103
  break;
102
104
  case 24:
103
- x.setXAxisTitle({ type: "text", text: "" });
105
+ x.setXAxisTitle(o[d]);
104
106
  break;
105
107
  case 25:
106
- x.setXAxisBand(o[d]);
108
+ x.setXAxisTitle(o[d - 1]);
107
109
  break;
108
110
  case 26:
109
- x.setXAxisRangeData(Number(o[d - 2]), Number(o[d]));
111
+ x.setXAxisTitle({ type: "text", text: "" });
110
112
  break;
111
113
  case 27:
112
- this.$ = o[d - 1];
114
+ x.setXAxisBand(o[d]);
113
115
  break;
114
116
  case 28:
115
- this.$ = [o[d - 2], ...o[d]];
117
+ x.setXAxisRangeData(Number(o[d - 2]), Number(o[d]));
116
118
  break;
117
119
  case 29:
118
- this.$ = [o[d]];
120
+ this.$ = o[d - 1];
119
121
  break;
120
- case 30:
122
+ case 32:
121
123
  x.setYAxisTitle(o[d]);
122
124
  break;
123
- case 31:
125
+ case 33:
124
126
  x.setYAxisTitle(o[d - 1]);
125
127
  break;
126
- case 32:
128
+ case 34:
127
129
  x.setYAxisTitle({ type: "text", text: "" });
128
130
  break;
129
- case 33:
131
+ case 35:
130
132
  x.setYAxisRangeData(Number(o[d - 2]), Number(o[d]));
131
133
  break;
132
- case 37:
134
+ case 39:
133
135
  this.$ = { text: o[d], type: "text" };
134
136
  break;
135
- case 38:
137
+ case 40:
136
138
  this.$ = { text: o[d], type: "text" };
137
139
  break;
138
- case 39:
140
+ case 41:
139
141
  this.$ = { text: o[d], type: "markdown" };
140
142
  break;
141
- case 40:
143
+ case 42:
142
144
  this.$ = o[d];
143
145
  break;
144
- case 41:
146
+ case 43:
145
147
  this.$ = o[d - 1] + "" + o[d];
146
148
  break;
147
149
  }
148
150
  }, "anonymous"),
149
- table: [t(i, e, { 3: 1, 4: 2, 7: 4, 5: s, 34: n, 35: g, 36: c }), { 1: [3] }, t(i, e, { 4: 2, 7: 4, 3: 8, 5: s, 34: n, 35: g, 36: c }), t(i, e, { 4: 2, 7: 4, 6: 9, 3: 10, 5: s, 8: [1, 11], 34: n, 35: g, 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] }, t(p, [2, 34]), t(p, [2, 35]), t(p, [2, 36]), { 1: [2, 1] }, t(i, e, { 4: 2, 7: 4, 3: 21, 5: s, 34: n, 35: g, 36: c }), { 1: [2, 3] }, t(p, [2, 5]), t(i, [2, 7], { 4: 22, 34: n, 35: g, 36: c }), { 11: 23, 37: 24, 38: k, 39: v, 40: 27, 41: P, 42: S, 43: m, 44: E, 45: D, 46: L, 47: I, 48: f, 49: T, 50: h }, { 11: 39, 13: 38, 24: W, 27: O, 29: 40, 30: 41, 37: 24, 38: k, 39: v, 40: 27, 41: P, 42: S, 43: m, 44: E, 45: D, 46: L, 47: I, 48: f, 49: T, 50: h }, { 11: 45, 15: 44, 27: X, 33: 46, 37: 24, 38: k, 39: v, 40: 27, 41: P, 42: S, 43: m, 44: E, 45: D, 46: L, 47: I, 48: f, 49: T, 50: h }, { 11: 49, 17: 48, 24: Y, 37: 24, 38: k, 39: v, 40: 27, 41: P, 42: S, 43: m, 44: E, 45: D, 46: L, 47: I, 48: f, 49: T, 50: h }, { 11: 52, 17: 51, 24: Y, 37: 24, 38: k, 39: v, 40: 27, 41: P, 42: S, 43: m, 44: E, 45: D, 46: L, 47: I, 48: f, 49: T, 50: h }, { 20: [1, 53] }, { 22: [1, 54] }, t(C, [2, 18]), { 1: [2, 2] }, t(C, [2, 8]), t(C, [2, 9]), t(U, [2, 37], { 40: 55, 41: P, 42: S, 43: m, 44: E, 45: D, 46: L, 47: I, 48: f, 49: T, 50: h }), t(U, [2, 38]), t(U, [2, 39]), t(y, [2, 40]), t(y, [2, 42]), t(y, [2, 43]), t(y, [2, 44]), t(y, [2, 45]), t(y, [2, 46]), t(y, [2, 47]), t(y, [2, 48]), t(y, [2, 49]), t(y, [2, 50]), t(y, [2, 51]), t(C, [2, 10]), t(C, [2, 22], { 30: 41, 29: 56, 24: W, 27: O }), t(C, [2, 24]), t(C, [2, 25]), { 31: [1, 57] }, { 11: 59, 32: 58, 37: 24, 38: k, 39: v, 40: 27, 41: P, 42: S, 43: m, 44: E, 45: D, 46: L, 47: I, 48: f, 49: T, 50: h }, t(C, [2, 11]), t(C, [2, 30], { 33: 60, 27: X }), t(C, [2, 32]), { 31: [1, 61] }, t(C, [2, 12]), { 17: 62, 24: Y }, { 25: 63, 27: A }, t(C, [2, 14]), { 17: 65, 24: Y }, t(C, [2, 16]), t(C, [2, 17]), t(y, [2, 41]), t(C, [2, 23]), { 27: [1, 66] }, { 26: [1, 67] }, { 26: [2, 29], 28: [1, 68] }, t(C, [2, 31]), { 27: [1, 69] }, t(C, [2, 13]), { 26: [1, 70] }, { 26: [2, 21], 28: [1, 71] }, t(C, [2, 15]), t(C, [2, 26]), t(C, [2, 27]), { 11: 59, 32: 72, 37: 24, 38: k, 39: v, 40: 27, 41: P, 42: S, 43: m, 44: E, 45: D, 46: L, 47: I, 48: f, 49: T, 50: h }, t(C, [2, 33]), t(C, [2, 19]), { 25: 73, 27: A }, { 26: [2, 28] }, { 26: [2, 20] }],
150
- defaultActions: { 8: [2, 1], 10: [2, 3], 21: [2, 2], 72: [2, 28], 73: [2, 20] },
151
- parseError: /* @__PURE__ */ a(function(r, l) {
151
+ table: [t(i, e, { 3: 1, 4: 2, 7: 4, 5: s, 36: a, 37: c, 38: u }), { 1: [3] }, t(i, e, { 4: 2, 7: 4, 3: 8, 5: s, 36: a, 37: c, 38: u }), t(i, e, { 4: 2, 7: 4, 6: 9, 3: 10, 5: s, 8: [1, 11], 36: a, 37: c, 38: u }), { 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] }, t(p, [2, 36]), t(p, [2, 37]), t(p, [2, 38]), { 1: [2, 1] }, t(i, e, { 4: 2, 7: 4, 3: 21, 5: s, 36: a, 37: c, 38: u }), { 1: [2, 3] }, t(p, [2, 5]), t(i, [2, 7], { 4: 22, 36: a, 37: c, 38: u }), { 11: 23, 30: S, 39: 24, 40: k, 41: 27, 42: L, 43: _, 44: y, 45: E, 46: v, 47: P, 48: I, 49: f, 50: T, 51: h }, { 11: 39, 13: 38, 24: V, 29: W, 30: S, 31: 40, 32: 41, 39: 24, 40: k, 41: 27, 42: L, 43: _, 44: y, 45: E, 46: v, 47: P, 48: I, 49: f, 50: T, 51: h }, { 11: 45, 15: 44, 29: X, 30: S, 35: 46, 39: 24, 40: k, 41: 27, 42: L, 43: _, 44: y, 45: E, 46: v, 47: P, 48: I, 49: f, 50: T, 51: h }, { 11: 49, 17: 48, 24: Y, 30: S, 39: 24, 40: k, 41: 27, 42: L, 43: _, 44: y, 45: E, 46: v, 47: P, 48: I, 49: f, 50: T, 51: h }, { 11: 52, 17: 51, 24: Y, 30: S, 39: 24, 40: k, 41: 27, 42: L, 43: _, 44: y, 45: E, 46: v, 47: P, 48: I, 49: f, 50: T, 51: h }, { 20: [1, 53] }, { 22: [1, 54] }, t(C, [2, 18]), { 1: [2, 2] }, t(C, [2, 8]), t(C, [2, 9]), t(H, [2, 39], { 41: 55, 42: L, 43: _, 44: y, 45: E, 46: v, 47: P, 48: I, 49: f, 50: T, 51: h }), t(H, [2, 40]), t(H, [2, 41]), t(b, [2, 42]), t(b, [2, 44]), t(b, [2, 45]), t(b, [2, 46]), t(b, [2, 47]), t(b, [2, 48]), t(b, [2, 49]), t(b, [2, 50]), t(b, [2, 51]), t(b, [2, 52]), t(b, [2, 53]), t(C, [2, 10]), t(C, [2, 24], { 32: 41, 31: 56, 24: V, 29: W }), t(C, [2, 26]), t(C, [2, 27]), { 33: [1, 57] }, { 11: 59, 30: S, 34: 58, 39: 24, 40: k, 41: 27, 42: L, 43: _, 44: y, 45: E, 46: v, 47: P, 48: I, 49: f, 50: T, 51: h }, t(C, [2, 11]), t(C, [2, 32], { 35: 60, 29: X }), t(C, [2, 34]), { 33: [1, 61] }, t(C, [2, 12]), { 17: 62, 24: Y }, { 25: 63, 27: 64, 29: A }, t(C, [2, 14]), { 17: 66, 24: Y }, t(C, [2, 16]), t(C, [2, 17]), t(b, [2, 43]), t(C, [2, 25]), { 29: [1, 67] }, { 26: [1, 68] }, { 26: [2, 31], 28: [1, 69] }, t(C, [2, 33]), { 29: [1, 70] }, t(C, [2, 13]), { 26: [1, 71] }, { 26: [2, 21], 28: [1, 72] }, t(B, [2, 23], { 30: [1, 73] }), t(C, [2, 15]), t(C, [2, 28]), t(C, [2, 29]), { 11: 59, 30: S, 34: 74, 39: 24, 40: k, 41: 27, 42: L, 43: _, 44: y, 45: E, 46: v, 47: P, 48: I, 49: f, 50: T, 51: h }, t(C, [2, 35]), t(C, [2, 19]), { 25: 75, 27: 64, 29: A }, t(B, [2, 22]), { 26: [2, 30] }, { 26: [2, 20] }],
152
+ defaultActions: { 8: [2, 1], 10: [2, 3], 21: [2, 2], 74: [2, 30], 75: [2, 20] },
153
+ parseError: /* @__PURE__ */ n(function(r, l) {
152
154
  if (l.recoverable)
153
155
  this.trace(r);
154
156
  else {
155
- var u = new Error(r);
156
- throw u.hash = l, u;
157
+ var g = new Error(r);
158
+ throw g.hash = l, g;
157
159
  }
158
160
  }, "parseError"),
159
- parse: /* @__PURE__ */ a(function(r) {
160
- var l = this, u = [0], x = [], w = [null], o = [], Q = this.table, d = "", tt = 0, St = 0, Zt = 2, _t = 1, Jt = o.slice.call(arguments, 1), R = Object.create(this.lexer), $ = { yy: {} };
161
- for (var at in this.yy)
162
- Object.prototype.hasOwnProperty.call(this.yy, at) && ($.yy[at] = this.yy[at]);
163
- R.setInput(r, $.yy), $.yy.lexer = R, $.yy.parser = this, typeof R.yylloc > "u" && (R.yylloc = {});
164
- var ot = R.yylloc;
165
- o.push(ot);
166
- var ti = R.options && R.options.ranges;
161
+ parse: /* @__PURE__ */ n(function(r) {
162
+ var l = this, g = [0], x = [], w = [null], o = [], K = this.table, d = "", et = 0, Rt = 0, Jt = 2, _t = 1, ti = o.slice.call(arguments, 1), D = Object.create(this.lexer), $ = { yy: {} };
163
+ for (var rt in this.yy)
164
+ Object.prototype.hasOwnProperty.call(this.yy, rt) && ($.yy[rt] = this.yy[rt]);
165
+ D.setInput(r, $.yy), $.yy.lexer = D, $.yy.parser = this, typeof D.yylloc > "u" && (D.yylloc = {});
166
+ var ht = D.yylloc;
167
+ o.push(ht);
168
+ var ii = D.options && D.options.ranges;
167
169
  typeof $.yy.parseError == "function" ? this.parseError = $.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
168
- function ii(B) {
169
- u.length = u.length - 2 * B, w.length = w.length - B, o.length = o.length - B;
170
+ function ei(z) {
171
+ g.length = g.length - 2 * z, w.length = w.length - z, o.length = o.length - z;
170
172
  }
171
- a(ii, "popStack");
173
+ n(ei, "popStack");
172
174
  function kt() {
173
- var B;
174
- return B = x.pop() || R.lex() || _t, typeof B != "number" && (B instanceof Array && (x = B, B = x.pop()), B = l.symbols_[B] || B), B;
175
+ var z;
176
+ return z = x.pop() || D.lex() || _t, typeof z != "number" && (z instanceof Array && (x = z, z = x.pop()), z = l.symbols_[z] || z), z;
175
177
  }
176
- a(kt, "lex");
177
- for (var M, q, z, rt, G = {}, it, N, Tt, et; ; ) {
178
- if (q = u[u.length - 1], this.defaultActions[q] ? z = this.defaultActions[q] : ((M === null || typeof M > "u") && (M = kt()), z = Q[q] && Q[q][M]), typeof z > "u" || !z.length || !z[0]) {
179
- var ht = "";
180
- et = [];
181
- for (it in Q[q])
182
- this.terminals_[it] && it > Zt && et.push("'" + this.terminals_[it] + "'");
183
- R.showPosition ? ht = "Parse error on line " + (tt + 1) + `:
184
- ` + R.showPosition() + `
185
- Expecting ` + et.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : ht = "Parse error on line " + (tt + 1) + ": Unexpected " + (M == _t ? "end of input" : "'" + (this.terminals_[M] || M) + "'"), this.parseError(ht, {
186
- text: R.match,
178
+ n(kt, "lex");
179
+ for (var M, U, O, lt, G = {}, st, N, Tt, at; ; ) {
180
+ if (U = g[g.length - 1], this.defaultActions[U] ? O = this.defaultActions[U] : ((M === null || typeof M > "u") && (M = kt()), O = K[U] && K[U][M]), typeof O > "u" || !O.length || !O[0]) {
181
+ var ct = "";
182
+ at = [];
183
+ for (st in K[U])
184
+ this.terminals_[st] && st > Jt && at.push("'" + this.terminals_[st] + "'");
185
+ D.showPosition ? ct = "Parse error on line " + (et + 1) + `:
186
+ ` + D.showPosition() + `
187
+ Expecting ` + at.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : ct = "Parse error on line " + (et + 1) + ": Unexpected " + (M == _t ? "end of input" : "'" + (this.terminals_[M] || M) + "'"), this.parseError(ct, {
188
+ text: D.match,
187
189
  token: this.terminals_[M] || M,
188
- line: R.yylineno,
189
- loc: ot,
190
- expected: et
190
+ line: D.yylineno,
191
+ loc: ht,
192
+ expected: at
191
193
  });
192
194
  }
193
- if (z[0] instanceof Array && z.length > 1)
194
- throw new Error("Parse Error: multiple actions possible at state: " + q + ", token: " + M);
195
- switch (z[0]) {
195
+ if (O[0] instanceof Array && O.length > 1)
196
+ throw new Error("Parse Error: multiple actions possible at state: " + U + ", token: " + M);
197
+ switch (O[0]) {
196
198
  case 1:
197
- u.push(M), w.push(R.yytext), o.push(R.yylloc), u.push(z[1]), M = null, St = R.yyleng, d = R.yytext, tt = R.yylineno, ot = R.yylloc;
199
+ g.push(M), w.push(D.yytext), o.push(D.yylloc), g.push(O[1]), M = null, Rt = D.yyleng, d = D.yytext, et = D.yylineno, ht = D.yylloc;
198
200
  break;
199
201
  case 2:
200
- if (N = this.productions_[z[1]][1], G.$ = w[w.length - N], G._$ = {
202
+ if (N = this.productions_[O[1]][1], G.$ = w[w.length - N], G._$ = {
201
203
  first_line: o[o.length - (N || 1)].first_line,
202
204
  last_line: o[o.length - 1].last_line,
203
205
  first_column: o[o.length - (N || 1)].first_column,
204
206
  last_column: o[o.length - 1].last_column
205
- }, ti && (G._$.range = [
207
+ }, ii && (G._$.range = [
206
208
  o[o.length - (N || 1)].range[0],
207
209
  o[o.length - 1].range[1]
208
- ]), rt = this.performAction.apply(G, [
210
+ ]), lt = this.performAction.apply(G, [
209
211
  d,
210
- St,
211
- tt,
212
+ Rt,
213
+ et,
212
214
  $.yy,
213
- z[1],
215
+ O[1],
214
216
  w,
215
217
  o
216
- ].concat(Jt)), typeof rt < "u")
217
- return rt;
218
- N && (u = u.slice(0, -1 * N * 2), w = w.slice(0, -1 * N), o = o.slice(0, -1 * N)), u.push(this.productions_[z[1]][0]), w.push(G.$), o.push(G._$), Tt = Q[u[u.length - 2]][u[u.length - 1]], u.push(Tt);
218
+ ].concat(ti)), typeof lt < "u")
219
+ return lt;
220
+ N && (g = g.slice(0, -1 * N * 2), w = w.slice(0, -1 * N), o = o.slice(0, -1 * N)), g.push(this.productions_[O[1]][0]), w.push(G.$), o.push(G._$), Tt = K[g[g.length - 2]][g[g.length - 1]], g.push(Tt);
219
221
  break;
220
222
  case 3:
221
223
  return !0;
@@ -223,17 +225,17 @@ Expecting ` + et.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : ht =
223
225
  }
224
226
  return !0;
225
227
  }, "parse")
226
- }, _ = /* @__PURE__ */ (function() {
228
+ }, Q = /* @__PURE__ */ (function() {
227
229
  var F = {
228
230
  EOF: 1,
229
- parseError: /* @__PURE__ */ a(function(l, u) {
231
+ parseError: /* @__PURE__ */ n(function(l, g) {
230
232
  if (this.yy.parser)
231
- this.yy.parser.parseError(l, u);
233
+ this.yy.parser.parseError(l, g);
232
234
  else
233
235
  throw new Error(l);
234
236
  }, "parseError"),
235
237
  // resets the lexer, sets new input
236
- setInput: /* @__PURE__ */ a(function(r, l) {
238
+ setInput: /* @__PURE__ */ n(function(r, l) {
237
239
  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 = {
238
240
  first_line: 1,
239
241
  first_column: 0,
@@ -242,32 +244,32 @@ Expecting ` + et.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : ht =
242
244
  }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
243
245
  }, "setInput"),
244
246
  // consumes and returns one char from the input
245
- input: /* @__PURE__ */ a(function() {
247
+ input: /* @__PURE__ */ n(function() {
246
248
  var r = this._input[0];
247
249
  this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
248
250
  var l = r.match(/(?:\r\n?|\n).*/g);
249
251
  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;
250
252
  }, "input"),
251
253
  // unshifts one char (or a string) into the input
252
- unput: /* @__PURE__ */ a(function(r) {
253
- var l = r.length, u = r.split(/(?:\r\n?|\n)/g);
254
+ unput: /* @__PURE__ */ n(function(r) {
255
+ var l = r.length, g = r.split(/(?:\r\n?|\n)/g);
254
256
  this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - l), this.offset -= l;
255
257
  var x = this.match.split(/(?:\r\n?|\n)/g);
256
- 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);
258
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), g.length - 1 && (this.yylineno -= g.length - 1);
257
259
  var w = this.yylloc.range;
258
260
  return this.yylloc = {
259
261
  first_line: this.yylloc.first_line,
260
262
  last_line: this.yylineno + 1,
261
263
  first_column: this.yylloc.first_column,
262
- last_column: u ? (u.length === x.length ? this.yylloc.first_column : 0) + x[x.length - u.length].length - u[0].length : this.yylloc.first_column - l
264
+ last_column: g ? (g.length === x.length ? this.yylloc.first_column : 0) + x[x.length - g.length].length - g[0].length : this.yylloc.first_column - l
263
265
  }, this.options.ranges && (this.yylloc.range = [w[0], w[0] + this.yyleng - l]), this.yyleng = this.yytext.length, this;
264
266
  }, "unput"),
265
267
  // When called from action, caches matched text and appends it on next action
266
- more: /* @__PURE__ */ a(function() {
268
+ more: /* @__PURE__ */ n(function() {
267
269
  return this._more = !0, this;
268
270
  }, "more"),
269
271
  // 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.
270
- reject: /* @__PURE__ */ a(function() {
272
+ reject: /* @__PURE__ */ n(function() {
271
273
  if (this.options.backtrack_lexer)
272
274
  this._backtrack = !0;
273
275
  else
@@ -280,28 +282,28 @@ Expecting ` + et.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : ht =
280
282
  return this;
281
283
  }, "reject"),
282
284
  // retain first n characters of the match
283
- less: /* @__PURE__ */ a(function(r) {
285
+ less: /* @__PURE__ */ n(function(r) {
284
286
  this.unput(this.match.slice(r));
285
287
  }, "less"),
286
288
  // displays already matched input, i.e. for error messages
287
- pastInput: /* @__PURE__ */ a(function() {
289
+ pastInput: /* @__PURE__ */ n(function() {
288
290
  var r = this.matched.substr(0, this.matched.length - this.match.length);
289
291
  return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
290
292
  }, "pastInput"),
291
293
  // displays upcoming input, i.e. for error messages
292
- upcomingInput: /* @__PURE__ */ a(function() {
294
+ upcomingInput: /* @__PURE__ */ n(function() {
293
295
  var r = this.match;
294
296
  return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
295
297
  }, "upcomingInput"),
296
298
  // displays the character position where the lexing error occurred, i.e. for error messages
297
- showPosition: /* @__PURE__ */ a(function() {
299
+ showPosition: /* @__PURE__ */ n(function() {
298
300
  var r = this.pastInput(), l = new Array(r.length + 1).join("-");
299
301
  return r + this.upcomingInput() + `
300
302
  ` + l + "^";
301
303
  }, "showPosition"),
302
304
  // test the lexed token: return FALSE when not a match, otherwise return token
303
- test_match: /* @__PURE__ */ a(function(r, l) {
304
- var u, x, w;
305
+ test_match: /* @__PURE__ */ n(function(r, l) {
306
+ var g, x, w;
305
307
  if (this.options.backtrack_lexer && (w = {
306
308
  yylineno: this.yylineno,
307
309
  yylloc: {
@@ -326,8 +328,8 @@ Expecting ` + et.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : ht =
326
328
  last_line: this.yylineno + 1,
327
329
  first_column: this.yylloc.last_column,
328
330
  last_column: x ? x[x.length - 1].length - x[x.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
329
- }, 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)
330
- return u;
331
+ }, 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], g = this.performAction.call(this, this.yy, this, l, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), g)
332
+ return g;
331
333
  if (this._backtrack) {
332
334
  for (var o in w)
333
335
  this[o] = w[o];
@@ -336,16 +338,16 @@ Expecting ` + et.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : ht =
336
338
  return !1;
337
339
  }, "test_match"),
338
340
  // return next match in input
339
- next: /* @__PURE__ */ a(function() {
341
+ next: /* @__PURE__ */ n(function() {
340
342
  if (this.done)
341
343
  return this.EOF;
342
344
  this._input || (this.done = !0);
343
- var r, l, u, x;
345
+ var r, l, g, x;
344
346
  this._more || (this.yytext = "", this.match = "");
345
347
  for (var w = this._currentRules(), o = 0; o < w.length; o++)
346
- if (u = this._input.match(this.rules[w[o]]), u && (!l || u[0].length > l[0].length)) {
347
- if (l = u, x = o, this.options.backtrack_lexer) {
348
- if (r = this.test_match(u, w[o]), r !== !1)
348
+ if (g = this._input.match(this.rules[w[o]]), g && (!l || g[0].length > l[0].length)) {
349
+ if (l = g, x = o, this.options.backtrack_lexer) {
350
+ if (r = this.test_match(g, w[o]), r !== !1)
349
351
  return r;
350
352
  if (this._backtrack) {
351
353
  l = !1;
@@ -363,48 +365,48 @@ Expecting ` + et.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : ht =
363
365
  });
364
366
  }, "next"),
365
367
  // return next match that has a token
366
- lex: /* @__PURE__ */ a(function() {
368
+ lex: /* @__PURE__ */ n(function() {
367
369
  var l = this.next();
368
370
  return l || this.lex();
369
371
  }, "lex"),
370
372
  // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
371
- begin: /* @__PURE__ */ a(function(l) {
373
+ begin: /* @__PURE__ */ n(function(l) {
372
374
  this.conditionStack.push(l);
373
375
  }, "begin"),
374
376
  // pop the previously active lexer condition state off the condition stack
375
- popState: /* @__PURE__ */ a(function() {
377
+ popState: /* @__PURE__ */ n(function() {
376
378
  var l = this.conditionStack.length - 1;
377
379
  return l > 0 ? this.conditionStack.pop() : this.conditionStack[0];
378
380
  }, "popState"),
379
381
  // produce the lexer rule set which is active for the currently active lexer condition state
380
- _currentRules: /* @__PURE__ */ a(function() {
382
+ _currentRules: /* @__PURE__ */ n(function() {
381
383
  return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
382
384
  }, "_currentRules"),
383
385
  // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
384
- topState: /* @__PURE__ */ a(function(l) {
386
+ topState: /* @__PURE__ */ n(function(l) {
385
387
  return l = this.conditionStack.length - 1 - Math.abs(l || 0), l >= 0 ? this.conditionStack[l] : "INITIAL";
386
388
  }, "topState"),
387
389
  // alias for begin(condition)
388
- pushState: /* @__PURE__ */ a(function(l) {
390
+ pushState: /* @__PURE__ */ n(function(l) {
389
391
  this.begin(l);
390
392
  }, "pushState"),
391
393
  // return the number of states currently on the stack
392
- stateStackSize: /* @__PURE__ */ a(function() {
394
+ stateStackSize: /* @__PURE__ */ n(function() {
393
395
  return this.conditionStack.length;
394
396
  }, "stateStackSize"),
395
397
  options: { "case-insensitive": !0 },
396
- performAction: /* @__PURE__ */ a(function(l, u, x, w) {
398
+ performAction: /* @__PURE__ */ n(function(l, g, x, w) {
397
399
  switch (x) {
398
400
  case 0:
399
401
  break;
400
402
  case 1:
401
403
  break;
402
404
  case 2:
403
- return this.popState(), 34;
405
+ return this.popState(), 36;
404
406
  case 3:
405
- return this.popState(), 34;
407
+ return this.popState(), 36;
406
408
  case 4:
407
- return 34;
409
+ return 36;
408
410
  case 5:
409
411
  break;
410
412
  case 6:
@@ -438,7 +440,7 @@ Expecting ` + et.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : ht =
438
440
  case 19:
439
441
  return this.pushState("axis_band_data"), 24;
440
442
  case 20:
441
- return 31;
443
+ return 33;
442
444
  case 21:
443
445
  return this.pushState("data"), 16;
444
446
  case 22:
@@ -446,7 +448,7 @@ Expecting ` + et.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : ht =
446
448
  case 23:
447
449
  return this.pushState("data_inner"), 24;
448
450
  case 24:
449
- return 27;
451
+ return 29;
450
452
  case 25:
451
453
  return this.popState(), 26;
452
454
  case 26:
@@ -465,35 +467,35 @@ Expecting ` + et.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : ht =
465
467
  case 31:
466
468
  return 26;
467
469
  case 32:
468
- return 43;
470
+ return 44;
469
471
  case 33:
470
472
  return "COLON";
471
473
  case 34:
472
- return 44;
474
+ return 45;
473
475
  case 35:
474
476
  return 28;
475
477
  case 36:
476
- return 45;
477
- case 37:
478
478
  return 46;
479
+ case 37:
480
+ return 47;
479
481
  case 38:
480
- return 48;
482
+ return 49;
481
483
  case 39:
482
- return 50;
484
+ return 51;
483
485
  case 40:
484
- return 47;
486
+ return 48;
485
487
  case 41:
486
- return 41;
488
+ return 42;
487
489
  case 42:
488
- return 49;
490
+ return 50;
489
491
  case 43:
490
- return 42;
492
+ return 43;
491
493
  case 44:
492
494
  break;
493
495
  case 45:
494
- return 35;
496
+ return 37;
495
497
  case 46:
496
- return 36;
498
+ return 38;
497
499
  }
498
500
  }, "anonymous"),
499
501
  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, /^(?:xychart\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],
@@ -501,55 +503,55 @@ Expecting ` + et.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : ht =
501
503
  };
502
504
  return F;
503
505
  })();
504
- V.lexer = _;
505
- function H() {
506
+ R.lexer = Q;
507
+ function q() {
506
508
  this.yy = {};
507
509
  }
508
- return a(H, "Parser"), H.prototype = V, V.Parser = H, new H();
510
+ return n(q, "Parser"), q.prototype = R, R.Parser = q, new q();
509
511
  })();
510
- ct.parser = ct;
511
- var mi = ct;
512
- function ut(t) {
512
+ gt.parser = gt;
513
+ var yi = gt;
514
+ function xt(t) {
513
515
  return t.type === "bar";
514
516
  }
515
- a(ut, "isBarPlot");
516
- function ft(t) {
517
+ n(xt, "isBarPlot");
518
+ function nt(t) {
517
519
  return t.type === "band";
518
520
  }
519
- a(ft, "isBandAxisData");
521
+ n(nt, "isBandAxisData");
520
522
  function j(t) {
521
523
  return t.type === "linear";
522
524
  }
523
- a(j, "isLinearAxisData");
524
- var Mt = class {
525
+ n(j, "isLinearAxisData");
526
+ var zt = class {
525
527
  constructor(t) {
526
528
  this.parentGroup = t;
527
529
  }
528
530
  static {
529
- a(this, "TextDimensionCalculatorWithFont");
531
+ n(this, "TextDimensionCalculatorWithFont");
530
532
  }
531
533
  getMaxDimension(t, i) {
532
534
  if (!this.parentGroup)
533
535
  return {
534
- width: t.reduce((n, g) => Math.max(g.length, n), 0) * i,
536
+ width: t.reduce((a, c) => Math.max(c.length, a), 0) * i,
535
537
  height: i
536
538
  };
537
539
  const e = {
538
540
  width: 0,
539
541
  height: 0
540
542
  }, s = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", i);
541
- for (const n of t) {
542
- const g = xi(s, 1, n), c = g ? g.width : n.length * i, p = g ? g.height : i;
543
- e.width = Math.max(e.width, c), e.height = Math.max(e.height, p);
543
+ for (const a of t) {
544
+ const c = di(s, 1, a), u = c ? c.width : a.length * i, p = c ? c.height : i;
545
+ e.width = Math.max(e.width, u), e.height = Math.max(e.height, p);
544
546
  }
545
547
  return s.remove(), e;
546
548
  }
547
- }, vt = 0.7, Pt = 0.2, Vt = class {
549
+ }, Lt = 0.7, Pt = 0.2, Vt = class {
548
550
  constructor(t, i, e, s) {
549
- this.axisConfig = t, this.title = i, this.textDimensionCalculator = e, this.axisThemeConfig = s, 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";
551
+ this.axisConfig = t, this.title = i, this.textDimensionCalculator = e, this.axisThemeConfig = s, 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.normalizedLabelRotationInRad = 0, this.range = [0, 10], this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left", this.normalizedLabelRotationInRad = this.axisConfig.labelRotation >= -90 && this.axisConfig.labelRotation <= 90 ? this.axisConfig.labelRotation * Math.PI / 180 : 0;
550
552
  }
551
553
  static {
552
- a(this, "BaseAxis");
554
+ n(this, "BaseAxis");
553
555
  }
554
556
  setRange(t) {
555
557
  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();
@@ -574,15 +576,18 @@ var Mt = class {
574
576
  );
575
577
  }
576
578
  recalculateOuterPaddingToDrawBar() {
577
- vt * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(vt * this.getTickDistance() / 2)), this.recalculateScale();
579
+ Lt * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(Lt * this.getTickDistance() / 2)), this.recalculateScale();
578
580
  }
579
581
  calculateSpaceIfDrawnHorizontally(t) {
580
582
  let i = t.height;
581
583
  if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
582
584
  const e = this.getLabelDimension(), s = Pt * t.width;
583
585
  this.outerPadding = Math.min(e.width / 2, s);
584
- const n = e.height + this.axisConfig.labelPadding * 2;
585
- this.labelTextHeight = e.height, n <= i && (i -= n, this.showLabel = !0);
586
+ let a = e.height;
587
+ this.axisPosition === "bottom" && this.normalizedLabelRotationInRad !== 0 && (a = Math.max(
588
+ a,
589
+ Math.abs(Math.sin(this.normalizedLabelRotationInRad) * e.width) + Math.abs(Math.cos(this.normalizedLabelRotationInRad) * e.height)
590
+ )), a += this.axisConfig.labelPadding * 2, this.labelTextHeight = e.height, a <= i && (i -= a, this.showLabel = !0);
586
591
  }
587
592
  if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
588
593
  const e = this.textDimensionCalculator.getMaxDimension(
@@ -598,8 +603,8 @@ var Mt = class {
598
603
  if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
599
604
  const e = this.getLabelDimension(), s = Pt * t.height;
600
605
  this.outerPadding = Math.min(e.height / 2, s);
601
- const n = e.width + this.axisConfig.labelPadding * 2;
602
- n <= i && (i -= n, this.showLabel = !0);
606
+ const a = e.width + this.axisConfig.labelPadding * 2;
607
+ a <= i && (i -= a, this.showLabel = !0);
603
608
  }
604
609
  if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
605
610
  const e = this.textDimensionCalculator.getMaxDimension(
@@ -619,6 +624,10 @@ var Mt = class {
619
624
  setBoundingBoxXY(t) {
620
625
  this.boundingRect.x = t.x, this.boundingRect.y = t.y;
621
626
  }
627
+ calculateOffsetByRotation(t) {
628
+ const i = this.normalizedLabelRotationInRad;
629
+ return i === 0 ? 0 : Math.sin(i) * this.getLabelDimension()[t] / 2;
630
+ }
622
631
  getDrawableElementsForLeftAxis() {
623
632
  const t = [];
624
633
  if (this.showAxisLine) {
@@ -698,11 +707,11 @@ var Mt = class {
698
707
  groupTexts: ["bottom-axis", "label"],
699
708
  data: this.getTickValues().map((i) => ({
700
709
  text: i.toString(),
701
- x: this.getScaleValue(i),
702
- y: this.boundingRect.y + this.axisConfig.labelPadding + (this.showTick ? this.axisConfig.tickLength : 0) + (this.showAxisLine ? this.axisConfig.axisLineWidth : 0),
710
+ x: this.getScaleValue(i) + this.calculateOffsetByRotation("height"),
711
+ y: this.boundingRect.y + this.axisConfig.labelPadding + (this.showTick ? this.axisConfig.tickLength : 0) + (this.showAxisLine ? this.axisConfig.axisLineWidth : 0) + Math.abs(this.calculateOffsetByRotation("width")),
703
712
  fill: this.axisThemeConfig.labelColor,
704
713
  fontSize: this.axisConfig.labelFontSize,
705
- rotation: 0,
714
+ rotation: this.normalizedLabelRotationInRad * 180 / Math.PI,
706
715
  verticalPos: "top",
707
716
  horizontalPos: "center"
708
717
  }))
@@ -800,18 +809,18 @@ var Mt = class {
800
809
  throw Error("Drawing of right axis is not implemented");
801
810
  return this.axisPosition === "bottom" ? this.getDrawableElementsForBottomAxis() : this.axisPosition === "top" ? this.getDrawableElementsForTopAxis() : [];
802
811
  }
803
- }, yi = class extends Vt {
812
+ }, bi = class extends Vt {
804
813
  static {
805
- a(this, "BandAxis");
814
+ n(this, "BandAxis");
806
815
  }
807
- constructor(t, i, e, s, n) {
808
- super(t, s, n, i), this.categories = e, this.scale = lt().domain(this.categories).range(this.getRange());
816
+ constructor(t, i, e, s, a) {
817
+ super(t, s, a, i), this.categories = e, this.scale = ut().domain(this.categories).range(this.getRange());
809
818
  }
810
819
  setRange(t) {
811
820
  super.setRange(t);
812
821
  }
813
822
  recalculateScale() {
814
- this.scale = lt().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5), Et.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
823
+ this.scale = ut().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5), It.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
815
824
  }
816
825
  getTickValues() {
817
826
  return this.categories;
@@ -819,42 +828,42 @@ var Mt = class {
819
828
  getScaleValue(t) {
820
829
  return this.scale(t) ?? this.getRange()[0];
821
830
  }
822
- }, bi = class extends Vt {
831
+ }, Ai = class extends Vt {
823
832
  static {
824
- a(this, "LinearAxis");
833
+ n(this, "LinearAxis");
825
834
  }
826
- constructor(t, i, e, s, n) {
827
- super(t, s, n, i), this.domain = e, this.scale = Dt().domain(this.domain).range(this.getRange());
835
+ constructor(t, i, e, s, a) {
836
+ super(t, s, a, i), this.domain = e, this.scale = vt().domain(this.domain).range(this.getRange());
828
837
  }
829
838
  getTickValues() {
830
839
  return this.scale.ticks();
831
840
  }
832
841
  recalculateScale() {
833
842
  const t = [...this.domain];
834
- this.axisPosition === "left" && t.reverse(), this.scale = Dt().domain(t).range(this.getRange());
843
+ this.axisPosition === "left" && t.reverse(), this.scale = vt().domain(t).range(this.getRange());
835
844
  }
836
845
  getScaleValue(t) {
837
846
  return this.scale(t);
838
847
  }
839
848
  };
840
- function gt(t, i, e, s) {
841
- const n = new Mt(s);
842
- return ft(t) ? new yi(
849
+ function dt(t, i, e, s) {
850
+ const a = new zt(s);
851
+ return nt(t) ? new bi(
843
852
  i,
844
853
  e,
845
854
  t.categories,
846
855
  t.title,
847
- n
848
- ) : new bi(
856
+ a
857
+ ) : new Ai(
849
858
  i,
850
859
  e,
851
860
  [t.min, t.max],
852
861
  t.title,
853
- n
862
+ a
854
863
  );
855
864
  }
856
- a(gt, "getAxis");
857
- var Ai = class {
865
+ n(dt, "getAxis");
866
+ var wi = class {
858
867
  constructor(t, i, e, s) {
859
868
  this.textDimensionCalculator = t, this.chartConfig = i, this.chartData = e, this.chartThemeConfig = s, this.boundingRect = {
860
869
  x: 0,
@@ -864,7 +873,7 @@ var Ai = class {
864
873
  }, this.showChartTitle = !1;
865
874
  }
866
875
  static {
867
- a(this, "ChartTitle");
876
+ n(this, "ChartTitle");
868
877
  }
869
878
  setBoundingBoxXY(t) {
870
879
  this.boundingRect.x = t.x, this.boundingRect.y = t.y;
@@ -900,24 +909,26 @@ var Ai = class {
900
909
  }
901
910
  };
902
911
  function Bt(t, i, e, s) {
903
- const n = new Mt(s);
904
- return new Ai(n, t, i, e);
912
+ const a = new zt(s);
913
+ return new wi(a, t, i, e);
905
914
  }
906
- a(Bt, "getChartTitleComponent");
907
- var wi = class {
908
- constructor(t, i, e, s, n) {
909
- this.plotData = t, this.xAxis = i, this.yAxis = e, this.orientation = s, this.plotIndex = n;
915
+ n(Bt, "getChartTitleComponent");
916
+ var Ci = class {
917
+ constructor(t, i, e, s, a) {
918
+ this.plotData = t, this.xAxis = i, this.yAxis = e, this.orientation = s, this.plotIndex = a;
910
919
  }
911
920
  static {
912
- a(this, "LinePlot");
921
+ n(this, "LinePlot");
913
922
  }
914
923
  getDrawableElement() {
915
- const t = this.plotData.data.map((e) => [
916
- this.xAxis.getScaleValue(e[0]),
917
- this.yAxis.getScaleValue(e[1])
924
+ const t = this.plotData.data.map((s) => [
925
+ this.xAxis.getScaleValue(s[0]),
926
+ this.yAxis.getScaleValue(s[1])
918
927
  ]);
919
928
  let i;
920
- return this.orientation === "horizontal" ? i = Rt().y((e) => e[0]).x((e) => e[1])(t) : i = Rt().x((e) => e[0]).y((e) => e[1])(t), i ? [
929
+ if (this.orientation === "horizontal" ? i = Dt().y((s) => s[0]).x((s) => s[1])(t) : i = Dt().x((s) => s[0]).y((s) => s[1])(t), !i)
930
+ return [];
931
+ const e = [
921
932
  {
922
933
  groupTexts: ["plot", `line-plot-${this.plotIndex}`],
923
934
  type: "path",
@@ -929,29 +940,60 @@ var wi = class {
929
940
  }
930
941
  ]
931
942
  }
932
- ] : [];
943
+ ];
944
+ if (this.plotData.pointLabels && this.plotData.pointLabels.length > 0) {
945
+ const c = [];
946
+ for (const [u, [p, S]] of t.entries()) {
947
+ const k = this.plotData.pointLabels[u];
948
+ k && (this.orientation === "horizontal" ? c.push({
949
+ x: S + 10,
950
+ y: p,
951
+ text: k,
952
+ fill: this.plotData.strokeFill,
953
+ verticalPos: "middle",
954
+ horizontalPos: "left",
955
+ fontSize: 12,
956
+ rotation: 0
957
+ }) : c.push({
958
+ x: p,
959
+ y: S - 10,
960
+ text: k,
961
+ fill: this.plotData.strokeFill,
962
+ verticalPos: "middle",
963
+ horizontalPos: "center",
964
+ fontSize: 12,
965
+ rotation: 0
966
+ }));
967
+ }
968
+ c.length > 0 && e.push({
969
+ groupTexts: ["plot", `line-plot-${this.plotIndex}`, "labels"],
970
+ type: "text",
971
+ data: c
972
+ });
973
+ }
974
+ return e;
933
975
  }
934
- }, Ci = class {
935
- constructor(t, i, e, s, n, g) {
936
- this.barData = t, this.boundingRect = i, this.xAxis = e, this.yAxis = s, this.orientation = n, this.plotIndex = g;
976
+ }, Si = class {
977
+ constructor(t, i, e, s, a, c) {
978
+ this.barData = t, this.boundingRect = i, this.xAxis = e, this.yAxis = s, this.orientation = a, this.plotIndex = c;
937
979
  }
938
980
  static {
939
- a(this, "BarPlot");
981
+ n(this, "BarPlot");
940
982
  }
941
983
  getDrawableElement() {
942
- const t = this.barData.data.map((n) => [
943
- this.xAxis.getScaleValue(n[0]),
944
- this.yAxis.getScaleValue(n[1])
984
+ const t = this.barData.data.map((a) => [
985
+ this.xAxis.getScaleValue(a[0]),
986
+ this.yAxis.getScaleValue(a[1])
945
987
  ]), e = Math.min(this.xAxis.getAxisOuterPadding() * 2, this.xAxis.getTickDistance()) * (1 - 0.05), s = e / 2;
946
988
  return this.orientation === "horizontal" ? [
947
989
  {
948
990
  groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
949
991
  type: "rect",
950
- data: t.map((n) => ({
992
+ data: t.map((a) => ({
951
993
  x: this.boundingRect.x,
952
- y: n[0] - s,
994
+ y: a[0] - s,
953
995
  height: e,
954
- width: n[1] - this.boundingRect.x,
996
+ width: a[1] - this.boundingRect.x,
955
997
  fill: this.barData.fill,
956
998
  strokeWidth: 0,
957
999
  strokeFill: this.barData.fill
@@ -961,11 +1003,11 @@ var wi = class {
961
1003
  {
962
1004
  groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
963
1005
  type: "rect",
964
- data: t.map((n) => ({
965
- x: n[0] - s,
966
- y: n[1],
1006
+ data: t.map((a) => ({
1007
+ x: a[0] - s,
1008
+ y: a[1],
967
1009
  width: e,
968
- height: this.boundingRect.y + this.boundingRect.height - n[1],
1010
+ height: this.boundingRect.y + this.boundingRect.height - a[1],
969
1011
  fill: this.barData.fill,
970
1012
  strokeWidth: 0,
971
1013
  strokeFill: this.barData.fill
@@ -973,7 +1015,7 @@ var wi = class {
973
1015
  }
974
1016
  ];
975
1017
  }
976
- }, Si = class {
1018
+ }, Ri = class {
977
1019
  constructor(t, i, e) {
978
1020
  this.chartConfig = t, this.chartData = i, this.chartThemeConfig = e, this.boundingRect = {
979
1021
  x: 0,
@@ -983,7 +1025,7 @@ var wi = class {
983
1025
  };
984
1026
  }
985
1027
  static {
986
- a(this, "BasePlot");
1028
+ n(this, "BasePlot");
987
1029
  }
988
1030
  setAxes(t, i) {
989
1031
  this.xAxis = t, this.yAxis = i;
@@ -1005,7 +1047,7 @@ var wi = class {
1005
1047
  switch (e.type) {
1006
1048
  case "line":
1007
1049
  {
1008
- const s = new wi(
1050
+ const s = new Ci(
1009
1051
  e,
1010
1052
  this.xAxis,
1011
1053
  this.yAxis,
@@ -1017,7 +1059,7 @@ var wi = class {
1017
1059
  break;
1018
1060
  case "bar":
1019
1061
  {
1020
- const s = new Ci(
1062
+ const s = new Si(
1021
1063
  e,
1022
1064
  this.boundingRect,
1023
1065
  this.xAxis,
@@ -1032,16 +1074,16 @@ var wi = class {
1032
1074
  return t;
1033
1075
  }
1034
1076
  };
1035
- function Wt(t, i, e) {
1036
- return new Si(t, i, e);
1077
+ function Ot(t, i, e) {
1078
+ return new Ri(t, i, e);
1037
1079
  }
1038
- a(Wt, "getPlotComponent");
1080
+ n(Ot, "getPlotComponent");
1039
1081
  var _i = class {
1040
1082
  constructor(t, i, e, s) {
1041
1083
  this.chartConfig = t, this.chartData = i, this.componentStore = {
1042
1084
  title: Bt(t, i, e, s),
1043
- plot: Wt(t, i, e),
1044
- xAxis: gt(
1085
+ plot: Ot(t, i, e),
1086
+ xAxis: dt(
1045
1087
  i.xAxis,
1046
1088
  t.xAxis,
1047
1089
  {
@@ -1052,7 +1094,7 @@ var _i = class {
1052
1094
  },
1053
1095
  s
1054
1096
  ),
1055
- yAxis: gt(
1097
+ yAxis: dt(
1056
1098
  i.yAxis,
1057
1099
  t.yAxis,
1058
1100
  {
@@ -1066,35 +1108,35 @@ var _i = class {
1066
1108
  };
1067
1109
  }
1068
1110
  static {
1069
- a(this, "Orchestrator");
1111
+ n(this, "Orchestrator");
1070
1112
  }
1071
1113
  calculateVerticalSpace() {
1072
- let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, n = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), g = Math.floor(
1114
+ let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, a = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), c = Math.floor(
1073
1115
  i * this.chartConfig.plotReservedSpacePercent / 100
1074
- ), c = this.componentStore.plot.calculateSpace({
1075
- width: n,
1076
- height: g
1116
+ ), u = this.componentStore.plot.calculateSpace({
1117
+ width: a,
1118
+ height: c
1077
1119
  });
1078
- t -= c.width, i -= c.height, c = this.componentStore.title.calculateSpace({
1120
+ t -= u.width, i -= u.height, u = this.componentStore.title.calculateSpace({
1079
1121
  width: this.chartConfig.width,
1080
1122
  height: i
1081
- }), s = c.height, i -= c.height, this.componentStore.xAxis.setAxisPosition("bottom"), c = this.componentStore.xAxis.calculateSpace({
1123
+ }), s = u.height, i -= u.height, this.componentStore.xAxis.setAxisPosition("bottom"), u = this.componentStore.xAxis.calculateSpace({
1082
1124
  width: t,
1083
1125
  height: i
1084
- }), i -= c.height, this.componentStore.yAxis.setAxisPosition("left"), c = this.componentStore.yAxis.calculateSpace({
1126
+ }), i -= u.height, this.componentStore.yAxis.setAxisPosition("left"), u = this.componentStore.yAxis.calculateSpace({
1085
1127
  width: t,
1086
1128
  height: i
1087
- }), e = c.width, t -= c.width, t > 0 && (n += t, t = 0), i > 0 && (g += i, i = 0), this.componentStore.plot.calculateSpace({
1088
- width: n,
1089
- height: g
1090
- }), this.componentStore.plot.setBoundingBoxXY({ x: e, y: s }), this.componentStore.xAxis.setRange([e, e + n]), this.componentStore.xAxis.setBoundingBoxXY({ x: e, y: s + g }), this.componentStore.yAxis.setRange([s, s + g]), this.componentStore.yAxis.setBoundingBoxXY({ x: 0, y: s }), this.chartData.plots.some((p) => ut(p)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1129
+ }), e = u.width, t -= u.width, t > 0 && (a += t, t = 0), i > 0 && (c += i, i = 0), this.componentStore.plot.calculateSpace({
1130
+ width: a,
1131
+ height: c
1132
+ }), this.componentStore.plot.setBoundingBoxXY({ x: e, y: s }), this.componentStore.xAxis.setRange([e, e + a]), this.componentStore.xAxis.setBoundingBoxXY({ x: e, y: s + c }), this.componentStore.yAxis.setRange([s, s + c]), this.componentStore.yAxis.setBoundingBoxXY({ x: 0, y: s }), this.chartData.plots.some((p) => xt(p)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1091
1133
  }
1092
1134
  calculateHorizontalSpace() {
1093
- let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, n = 0, g = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), c = Math.floor(
1135
+ let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, a = 0, c = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), u = Math.floor(
1094
1136
  i * this.chartConfig.plotReservedSpacePercent / 100
1095
1137
  ), p = this.componentStore.plot.calculateSpace({
1096
- width: g,
1097
- height: c
1138
+ width: c,
1139
+ height: u
1098
1140
  });
1099
1141
  t -= p.width, i -= p.height, p = this.componentStore.title.calculateSpace({
1100
1142
  width: this.chartConfig.width,
@@ -1105,10 +1147,10 @@ var _i = class {
1105
1147
  }), t -= p.width, s = p.width, this.componentStore.yAxis.setAxisPosition("top"), p = this.componentStore.yAxis.calculateSpace({
1106
1148
  width: t,
1107
1149
  height: i
1108
- }), i -= p.height, n = e + p.height, t > 0 && (g += t, t = 0), i > 0 && (c += i, i = 0), this.componentStore.plot.calculateSpace({
1109
- width: g,
1110
- height: c
1111
- }), this.componentStore.plot.setBoundingBoxXY({ x: s, y: n }), this.componentStore.yAxis.setRange([s, s + g]), this.componentStore.yAxis.setBoundingBoxXY({ x: s, y: e }), this.componentStore.xAxis.setRange([n, n + c]), this.componentStore.xAxis.setBoundingBoxXY({ x: 0, y: n }), this.chartData.plots.some((k) => ut(k)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1150
+ }), i -= p.height, a = e + p.height, t > 0 && (c += t, t = 0), i > 0 && (u += i, i = 0), this.componentStore.plot.calculateSpace({
1151
+ width: c,
1152
+ height: u
1153
+ }), this.componentStore.plot.setBoundingBoxXY({ x: s, y: a }), this.componentStore.yAxis.setRange([s, s + c]), this.componentStore.yAxis.setBoundingBoxXY({ x: s, y: e }), this.componentStore.xAxis.setRange([a, a + u]), this.componentStore.xAxis.setBoundingBoxXY({ x: 0, y: a }), this.chartData.plots.some((S) => xt(S)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1112
1154
  }
1113
1155
  calculateSpace() {
1114
1156
  this.chartConfig.chartOrientation === "horizontal" ? this.calculateHorizontalSpace() : this.calculateVerticalSpace();
@@ -1123,26 +1165,26 @@ var _i = class {
1123
1165
  }
1124
1166
  }, ki = class {
1125
1167
  static {
1126
- a(this, "XYChartBuilder");
1168
+ n(this, "XYChartBuilder");
1127
1169
  }
1128
1170
  static build(t, i, e, s) {
1129
1171
  return new _i(t, i, e, s).getDrawableElement();
1130
1172
  }
1131
- }, K = 0, zt, Z = yt(), J = mt(), b = bt(), xt = J.plotColorPalette.split(",").map((t) => t.trim()), st = !1, pt = !1;
1132
- function mt() {
1133
- const t = gi(), i = dt();
1134
- return It(t.xyChart, i.themeVariables.xyChart);
1135
- }
1136
- a(mt, "getChartDefaultThemeConfig");
1173
+ }, Z = 0, Wt, J = bt(), tt = yt(), m = At(), ft = tt.plotColorPalette.split(",").map((t) => t.trim()), ot = !1, mt = !1;
1137
1174
  function yt() {
1138
- const t = dt();
1139
- return It(
1140
- ui.xyChart,
1175
+ const t = xi(), i = pt();
1176
+ return Mt(t.xyChart, i.themeVariables.xyChart);
1177
+ }
1178
+ n(yt, "getChartDefaultThemeConfig");
1179
+ function bt() {
1180
+ const t = pt();
1181
+ return Mt(
1182
+ gi.xyChart,
1141
1183
  t.xyChart
1142
1184
  );
1143
1185
  }
1144
- a(yt, "getChartDefaultConfig");
1145
- function bt() {
1186
+ n(bt, "getChartDefaultConfig");
1187
+ function At() {
1146
1188
  return {
1147
1189
  yAxis: {
1148
1190
  type: "linear",
@@ -1159,217 +1201,221 @@ function bt() {
1159
1201
  plots: []
1160
1202
  };
1161
1203
  }
1162
- a(bt, "getChartDefaultData");
1163
- function nt(t) {
1164
- const i = dt();
1165
- return ci(t.trim(), i);
1204
+ n(At, "getChartDefaultData");
1205
+ function it(t) {
1206
+ const i = pt();
1207
+ return ui(t.trim(), i);
1166
1208
  }
1167
- a(nt, "textSanitizer");
1168
- function Ot(t) {
1169
- zt = t;
1170
- }
1171
- a(Ot, "setTmpSVGG");
1209
+ n(it, "textSanitizer");
1172
1210
  function Ft(t) {
1173
- t === "horizontal" ? Z.chartOrientation = "horizontal" : Z.chartOrientation = "vertical";
1211
+ Wt = t;
1174
1212
  }
1175
- a(Ft, "setOrientation");
1213
+ n(Ft, "setTmpSVGG");
1176
1214
  function Xt(t) {
1177
- b.xAxis.title = nt(t.text);
1178
- }
1179
- a(Xt, "setXAxisTitle");
1180
- function At(t, i) {
1181
- b.xAxis = { type: "linear", title: b.xAxis.title, min: t, max: i }, st = !0;
1215
+ t === "horizontal" ? J.chartOrientation = "horizontal" : J.chartOrientation = "vertical";
1182
1216
  }
1183
- a(At, "setXAxisRangeData");
1217
+ n(Xt, "setOrientation");
1184
1218
  function Yt(t) {
1185
- b.xAxis = {
1186
- type: "band",
1187
- title: b.xAxis.title,
1188
- categories: t.map((i) => nt(i.text))
1189
- }, st = !0;
1219
+ m.xAxis.title = it(t.text);
1190
1220
  }
1191
- a(Yt, "setXAxisBand");
1221
+ n(Yt, "setXAxisTitle");
1222
+ function wt(t, i) {
1223
+ m.xAxis = { type: "linear", title: m.xAxis.title, min: t, max: i }, ot = !0;
1224
+ }
1225
+ n(wt, "setXAxisRangeData");
1192
1226
  function Nt(t) {
1193
- b.yAxis.title = nt(t.text);
1227
+ m.xAxis = {
1228
+ type: "band",
1229
+ title: m.xAxis.title,
1230
+ categories: t.map((i) => it(i.text))
1231
+ }, ot = !0;
1232
+ }
1233
+ n(Nt, "setXAxisBand");
1234
+ function Ht(t) {
1235
+ m.yAxis.title = it(t.text);
1194
1236
  }
1195
- a(Nt, "setYAxisTitle");
1196
- function Ht(t, i) {
1197
- b.yAxis = { type: "linear", title: b.yAxis.title, min: t, max: i }, pt = !0;
1237
+ n(Ht, "setYAxisTitle");
1238
+ function $t(t, i) {
1239
+ m.yAxis = { type: "linear", title: m.yAxis.title, min: t, max: i }, mt = !0;
1198
1240
  }
1199
- a(Ht, "setYAxisRangeData");
1241
+ n($t, "setYAxisRangeData");
1200
1242
  function Ut(t) {
1201
- const i = Math.min(...t), e = Math.max(...t), s = j(b.yAxis) ? b.yAxis.min : 1 / 0, n = j(b.yAxis) ? b.yAxis.max : -1 / 0;
1202
- b.yAxis = {
1243
+ const i = Math.min(...t), e = Math.max(...t), s = j(m.yAxis) ? m.yAxis.min : 1 / 0, a = j(m.yAxis) ? m.yAxis.max : -1 / 0;
1244
+ m.yAxis = {
1203
1245
  type: "linear",
1204
- title: b.yAxis.title,
1246
+ title: m.yAxis.title,
1205
1247
  min: Math.min(s, i),
1206
- max: Math.max(n, e)
1248
+ max: Math.max(a, e)
1207
1249
  };
1208
1250
  }
1209
- a(Ut, "setYAxisRangeFromPlotData");
1210
- function wt(t) {
1251
+ n(Ut, "setYAxisRangeFromPlotData");
1252
+ function Ct(t) {
1211
1253
  let i = [];
1212
1254
  if (t.length === 0)
1213
1255
  return i;
1214
- if (!st) {
1215
- const e = j(b.xAxis) ? b.xAxis.min : 1 / 0, s = j(b.xAxis) ? b.xAxis.max : -1 / 0;
1216
- At(Math.min(e, 1), Math.max(s, t.length));
1217
- }
1218
- if (pt || Ut(t), ft(b.xAxis) && (i = b.xAxis.categories.map((e, s) => [e, t[s]])), j(b.xAxis)) {
1219
- const e = b.xAxis.min, s = b.xAxis.max, n = (s - e) / (t.length - 1), g = [];
1220
- for (let c = e; c <= s; c += n)
1221
- g.push(`${c}`);
1222
- i = g.map((c, p) => [c, t[p]]);
1256
+ if (!ot) {
1257
+ const e = j(m.xAxis) ? m.xAxis.min : 1 / 0, s = j(m.xAxis) ? m.xAxis.max : -1 / 0;
1258
+ wt(Math.min(e, 1), Math.max(s, t.length));
1259
+ }
1260
+ if (nt(m.xAxis) && t.length > m.xAxis.categories.length && (t = t.slice(0, m.xAxis.categories.length)), mt || Ut(t), nt(m.xAxis) && (i = m.xAxis.categories.map((e, s) => [e, t[s]])), j(m.xAxis)) {
1261
+ const e = m.xAxis.min, s = m.xAxis.max;
1262
+ if (t.length === 1)
1263
+ i = [[`${e}`, t[0]]];
1264
+ else {
1265
+ const a = (s - e) / (t.length - 1);
1266
+ i = t.map((c, u) => [`${e + u * a}`, c]);
1267
+ }
1223
1268
  }
1224
1269
  return i;
1225
1270
  }
1226
- a(wt, "transformDataWithoutCategory");
1227
- function Ct(t) {
1228
- return xt[t === 0 ? 0 : t % xt.length];
1271
+ n(Ct, "transformDataWithoutCategory");
1272
+ function St(t) {
1273
+ return ft[t === 0 ? 0 : t % ft.length];
1229
1274
  }
1230
- a(Ct, "getPlotColorFromPalette");
1231
- function $t(t, i) {
1232
- const e = wt(i);
1233
- b.plots.push({
1275
+ n(St, "getPlotColorFromPalette");
1276
+ function qt(t, i) {
1277
+ const e = i.map((u) => u.value), s = i.map((u) => u.label ? it(u.label) : ""), a = Ct(e), c = s.some((u) => u !== "");
1278
+ m.plots.push({
1234
1279
  type: "line",
1235
- strokeFill: Ct(K),
1280
+ strokeFill: St(Z),
1236
1281
  strokeWidth: 2,
1237
- data: e
1238
- }), K++;
1282
+ data: a,
1283
+ ...c ? { pointLabels: s } : {}
1284
+ }), Z++;
1239
1285
  }
1240
- a($t, "setLineData");
1241
- function qt(t, i) {
1242
- const e = wt(i);
1243
- b.plots.push({
1286
+ n(qt, "setLineData");
1287
+ function Gt(t, i) {
1288
+ const e = i.map((a) => a.value), s = Ct(e);
1289
+ m.plots.push({
1244
1290
  type: "bar",
1245
- fill: Ct(K),
1246
- data: e
1247
- }), K++;
1248
- }
1249
- a(qt, "setBarData");
1250
- function Gt() {
1251
- if (b.plots.length === 0)
1252
- throw Error("No Plot to render, please provide a plot with some data");
1253
- return b.title = Lt(), ki.build(Z, b, J, zt);
1291
+ fill: St(Z),
1292
+ data: s
1293
+ }), Z++;
1254
1294
  }
1255
- a(Gt, "getDrawableElem");
1295
+ n(Gt, "setBarData");
1256
1296
  function jt() {
1257
- return J;
1297
+ if (m.plots.length === 0)
1298
+ throw Error("No Plot to render, please provide a plot with some data");
1299
+ return m.title = Et(), ki.build(J, m, tt, Wt);
1258
1300
  }
1259
- a(jt, "getChartThemeConfig");
1301
+ n(jt, "getDrawableElem");
1260
1302
  function Qt() {
1261
- return Z;
1303
+ return tt;
1262
1304
  }
1263
- a(Qt, "getChartConfig");
1305
+ n(Qt, "getChartThemeConfig");
1264
1306
  function Kt() {
1265
- return b;
1307
+ return J;
1266
1308
  }
1267
- a(Kt, "getXYChartData");
1268
- var Ti = /* @__PURE__ */ a(function() {
1269
- li(), K = 0, Z = yt(), b = bt(), J = mt(), xt = J.plotColorPalette.split(",").map((t) => t.trim()), st = !1, pt = !1;
1270
- }, "clear"), Ri = {
1271
- getDrawableElem: Gt,
1309
+ n(Kt, "getChartConfig");
1310
+ function Zt() {
1311
+ return m;
1312
+ }
1313
+ n(Zt, "getXYChartData");
1314
+ var Ti = /* @__PURE__ */ n(function() {
1315
+ ci(), Z = 0, J = bt(), m = At(), tt = yt(), ft = tt.plotColorPalette.split(",").map((t) => t.trim()), ot = !1, mt = !1;
1316
+ }, "clear"), Di = {
1317
+ getDrawableElem: jt,
1272
1318
  clear: Ti,
1273
- setAccTitle: oi,
1274
- getAccTitle: ai,
1319
+ setAccTitle: ri,
1320
+ getAccTitle: oi,
1275
1321
  setDiagramTitle: ni,
1276
- getDiagramTitle: Lt,
1277
- getAccDescription: si,
1278
- setAccDescription: ei,
1279
- setOrientation: Ft,
1280
- setXAxisTitle: Xt,
1281
- setXAxisRangeData: At,
1282
- setXAxisBand: Yt,
1283
- setYAxisTitle: Nt,
1284
- setYAxisRangeData: Ht,
1285
- setLineData: $t,
1286
- setBarData: qt,
1287
- setTmpSVGG: Ot,
1288
- getChartThemeConfig: jt,
1289
- getChartConfig: Qt,
1290
- getXYChartData: Kt
1291
- }, Di = /* @__PURE__ */ a((t, i, e, s) => {
1292
- const n = s.db, g = n.getChartThemeConfig(), c = n.getChartConfig(), p = n.getXYChartData().plots[0].data.map((f) => f[1]);
1293
- function k(f) {
1322
+ getDiagramTitle: Et,
1323
+ getAccDescription: ai,
1324
+ setAccDescription: si,
1325
+ setOrientation: Xt,
1326
+ setXAxisTitle: Yt,
1327
+ setXAxisRangeData: wt,
1328
+ setXAxisBand: Nt,
1329
+ setYAxisTitle: Ht,
1330
+ setYAxisRangeData: $t,
1331
+ setLineData: qt,
1332
+ setBarData: Gt,
1333
+ setTmpSVGG: Ft,
1334
+ getChartThemeConfig: Qt,
1335
+ getChartConfig: Kt,
1336
+ getXYChartData: Zt
1337
+ }, vi = /* @__PURE__ */ n((t, i, e, s) => {
1338
+ const a = s.db, c = a.getChartThemeConfig(), u = a.getChartConfig(), p = a.getXYChartData().plots[0].data.map((f) => f[1]);
1339
+ function S(f) {
1294
1340
  return f === "top" ? "text-before-edge" : "middle";
1295
1341
  }
1296
- a(k, "getDominantBaseLine");
1297
- function v(f) {
1342
+ n(S, "getDominantBaseLine");
1343
+ function k(f) {
1298
1344
  return f === "left" ? "start" : f === "right" ? "end" : "middle";
1299
1345
  }
1300
- a(v, "getTextAnchor");
1301
- function P(f) {
1346
+ n(k, "getTextAnchor");
1347
+ function L(f) {
1302
1348
  return `translate(${f.x}, ${f.y}) rotate(${f.rotation || 0})`;
1303
1349
  }
1304
- a(P, "getTextTransformation"), Et.debug(`Rendering xychart chart
1350
+ n(L, "getTextTransformation"), It.debug(`Rendering xychart chart
1305
1351
  ` + t);
1306
- const S = ri(i), m = S.append("g").attr("class", "main"), E = m.append("rect").attr("width", c.width).attr("height", c.height).attr("class", "background");
1307
- hi(S, c.height, c.width, !0), S.attr("viewBox", `0 0 ${c.width} ${c.height}`), E.attr("fill", g.backgroundColor), n.setTmpSVGG(S.append("g").attr("class", "mermaid-tmp-group"));
1308
- const D = n.getDrawableElem(), L = {};
1352
+ const _ = hi(i), y = _.append("g").attr("class", "main"), E = y.append("rect").attr("width", u.width).attr("height", u.height).attr("class", "background");
1353
+ li(_, u.height, u.width, !0), _.attr("viewBox", `0 0 ${u.width} ${u.height}`), E.attr("fill", c.backgroundColor), a.setTmpSVGG(_.append("g").attr("class", "mermaid-tmp-group"));
1354
+ const v = a.getDrawableElem(), P = {};
1309
1355
  function I(f) {
1310
- let T = m, h = "";
1311
- for (const [W] of f.entries()) {
1312
- let O = m;
1313
- W > 0 && L[h] && (O = L[h]), h += f[W], T = L[h], T || (T = L[h] = O.append("g").attr("class", f[W]));
1356
+ let T = y, h = "";
1357
+ for (const [V] of f.entries()) {
1358
+ let W = y;
1359
+ V > 0 && P[h] && (W = P[h]), h += f[V], T = P[h], T || (T = P[h] = W.append("g").attr("class", f[V]));
1314
1360
  }
1315
1361
  return T;
1316
1362
  }
1317
- a(I, "getGroup");
1318
- for (const f of D) {
1363
+ n(I, "getGroup");
1364
+ for (const f of v) {
1319
1365
  if (f.data.length === 0)
1320
1366
  continue;
1321
1367
  const T = I(f.groupTexts);
1322
1368
  switch (f.type) {
1323
1369
  case "rect":
1324
- if (T.selectAll("rect").data(f.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), c.showDataLabel) {
1325
- const h = c.showDataLabelOutsideBar;
1326
- if (c.chartOrientation === "horizontal") {
1327
- let W = function(A, V) {
1328
- const { data: _, label: H } = A;
1329
- return V * H.length * O <= _.width - X;
1370
+ if (T.selectAll("rect").data(f.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), u.showDataLabel) {
1371
+ const h = u.showDataLabelOutsideBar;
1372
+ if (u.chartOrientation === "horizontal") {
1373
+ let V = function(A, B) {
1374
+ const { data: R, label: Q } = A;
1375
+ return B * Q.length * W <= R.width - X;
1330
1376
  };
1331
- a(W, "fitsHorizontally");
1332
- const O = 0.7, X = 10, Y = f.data.map((A, V) => ({ data: A, label: p[V].toString() })).filter((A) => A.data.width > 0 && A.data.height > 0), C = Y.map((A) => {
1333
- const { data: V } = A;
1334
- let _ = V.height * 0.7;
1335
- for (; !W(A, _) && _ > 0; )
1336
- _ -= 1;
1337
- return _;
1338
- }), U = Math.floor(Math.min(...C)), y = /* @__PURE__ */ a((A) => h ? A.data.x + A.data.width + X : A.data.x + A.data.width - X, "determineLabelXPosition");
1339
- T.selectAll("text").data(Y).enter().append("text").attr("x", y).attr("y", (A) => A.data.y + A.data.height / 2).attr("text-anchor", h ? "start" : "end").attr("dominant-baseline", "middle").attr("fill", g.dataLabelColor).attr("font-size", `${U}px`).text((A) => A.label);
1377
+ n(V, "fitsHorizontally");
1378
+ const W = 0.7, X = 10, Y = f.data.map((A, B) => ({ data: A, label: p[B].toString() })).filter((A) => A.data.width > 0 && A.data.height > 0), C = Y.map((A) => {
1379
+ const { data: B } = A;
1380
+ let R = B.height * 0.7;
1381
+ for (; !V(A, R) && R > 0; )
1382
+ R -= 1;
1383
+ return R;
1384
+ }), H = Math.floor(Math.min(...C)), b = /* @__PURE__ */ n((A) => h ? A.data.x + A.data.width + X : A.data.x + A.data.width - X, "determineLabelXPosition");
1385
+ T.selectAll("text").data(Y).enter().append("text").attr("x", b).attr("y", (A) => A.data.y + A.data.height / 2).attr("text-anchor", h ? "start" : "end").attr("dominant-baseline", "middle").attr("fill", c.dataLabelColor).attr("font-size", `${H}px`).text((A) => A.label);
1340
1386
  } else {
1341
- let W = function(y, A, V) {
1342
- const { data: _, label: H } = y, r = A * H.length * 0.7, l = _.x + _.width / 2, u = l - r / 2, x = l + r / 2, w = u >= _.x && x <= _.x + _.width, o = _.y + V + A <= _.y + _.height;
1343
- return w && o;
1387
+ let V = function(b, A, B) {
1388
+ const { data: R, label: Q } = b, F = A * Q.length * 0.7, r = R.x + R.width / 2, l = r - F / 2, g = r + F / 2, x = l >= R.x && g <= R.x + R.width, w = R.y + B + A <= R.y + R.height;
1389
+ return x && w;
1344
1390
  };
1345
- a(W, "fitsInBar");
1346
- const O = 10, X = f.data.map((y, A) => ({ data: y, label: p[A].toString() })).filter((y) => y.data.width > 0 && y.data.height > 0), Y = X.map((y) => {
1347
- const { data: A, label: V } = y;
1348
- let _ = A.width / (V.length * 0.7);
1349
- for (; !W(y, _, O) && _ > 0; )
1350
- _ -= 1;
1351
- return _;
1352
- }), C = Math.floor(Math.min(...Y)), U = /* @__PURE__ */ a((y) => h ? y.data.y - O : y.data.y + O, "determineLabelYPosition");
1353
- T.selectAll("text").data(X).enter().append("text").attr("x", (y) => y.data.x + y.data.width / 2).attr("y", U).attr("text-anchor", "middle").attr("dominant-baseline", h ? "auto" : "hanging").attr("fill", g.dataLabelColor).attr("font-size", `${C}px`).text((y) => y.label);
1391
+ n(V, "fitsInBar");
1392
+ const W = 10, X = f.data.map((b, A) => ({ data: b, label: p[A].toString() })).filter((b) => b.data.width > 0 && b.data.height > 0), Y = X.map((b) => {
1393
+ const { data: A, label: B } = b;
1394
+ let R = A.width / (B.length * 0.7);
1395
+ for (; !V(b, R, W) && R > 0; )
1396
+ R -= 1;
1397
+ return R;
1398
+ }), C = Math.floor(Math.min(...Y)), H = /* @__PURE__ */ n((b) => h ? b.data.y - W : b.data.y + W, "determineLabelYPosition");
1399
+ T.selectAll("text").data(X).enter().append("text").attr("x", (b) => b.data.x + b.data.width / 2).attr("y", H).attr("text-anchor", "middle").attr("dominant-baseline", h ? "auto" : "hanging").attr("fill", c.dataLabelColor).attr("font-size", `${C}px`).text((b) => b.label);
1354
1400
  }
1355
1401
  }
1356
1402
  break;
1357
1403
  case "text":
1358
- T.selectAll("text").data(f.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) => k(h.verticalPos)).attr("text-anchor", (h) => v(h.horizontalPos)).attr("transform", (h) => P(h)).text((h) => h.text);
1404
+ T.selectAll("text").data(f.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) => S(h.verticalPos)).attr("text-anchor", (h) => k(h.horizontalPos)).attr("transform", (h) => L(h)).text((h) => h.text);
1359
1405
  break;
1360
1406
  case "path":
1361
1407
  T.selectAll("path").data(f.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);
1362
1408
  break;
1363
1409
  }
1364
1410
  }
1365
- }, "draw"), vi = {
1366
- draw: Di
1367
- }, Mi = {
1368
- parser: mi,
1369
- db: Ri,
1370
- renderer: vi
1411
+ }, "draw"), Li = {
1412
+ draw: vi
1413
+ }, zi = {
1414
+ parser: yi,
1415
+ db: Di,
1416
+ renderer: Li
1371
1417
  };
1372
1418
  export {
1373
- Mi as diagram
1419
+ zi as diagram
1374
1420
  };
1375
- //# sourceMappingURL=xychartDiagram-2RQKCTM6-dinwR4Zm.js.map
1421
+ //# sourceMappingURL=xychartDiagram-ELKLHX3M-79AgTtk-.js.map