@belonguniverseai/react-sdk 0.6.2 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/agent-grants.d.ts +23 -8
- package/dist/api/client.d.ts +53 -4
- package/dist/api/queries.d.ts +2 -0
- package/dist/app/call-summary.d.ts +30 -0
- package/dist/component/abnfDiagram-N423BO3Z-DR3fMT7g.js +90 -0
- package/dist/component/arc-DJkYOSuJ.js +86 -0
- package/dist/component/{architectureDiagram-3BPJPVTR-DYcaPx2M.js → architectureDiagram-T3A2C74G-BIp4IBPk.js} +1872 -1785
- package/dist/component/{blockDiagram-GPEHLZMM-BdjruLO5.js → blockDiagram-VBNYF7ZC-BqryGqC6.js} +895 -894
- package/dist/component/{c4Diagram-AAUBKEIU-Bd2ebSgB.js → c4Diagram-5PPSVZJV-GktlF-Di.js} +3 -3
- package/dist/component/{channel-CYFijF_t.js → channel-3CusDaXb.js} +2 -2
- package/dist/component/{chunk-ND2GUHAM-OX1-DIU1.js → chunk-2GRJ4B5K-DMTs6j_c.js} +5 -5
- package/dist/component/{chunk-QZHKN3VN-DLQ8oUCc.js → chunk-2Q5K7J3B-CIU34hPH.js} +2 -2
- package/dist/component/{chunk-AQP2D5EJ-D4G4syYu.js → chunk-5RXB4S5H-Ds3vF1Mv.js} +399 -378
- package/dist/component/{chunk-FMBD7UC4-CbRxWx_A.js → chunk-5VM5RSS4-DGxDkIm6.js} +2 -2
- package/dist/component/chunk-6Q2QTUOP-BI8oZt98.js +673 -0
- package/dist/component/{chunk-727SXJPM-A5r5oL1_.js → chunk-GF5L2VYU-D-36xUd5.js} +244 -239
- package/dist/component/{chunk-4BX2VUAB-DVpS0I_p.js → chunk-JWPE2WC7-8N_wQ762.js} +2 -2
- package/dist/component/{chunk-2J33WTMH-B06Y_xVy.js → chunk-KBJHAD2P-ChxxpkWc.js} +2 -2
- package/dist/component/chunk-RYQCIY6F-CSY-95OP.js +316 -0
- package/dist/component/{chunk-55IACEB6-DmZctFkK.js → chunk-XXDRQBXY-BQd9yyE1.js} +2 -2
- package/dist/component/{classDiagram-4FO5ZUOK-4S9mdFC1.js → classDiagram-JCYQIIEL-BOq63iUL.js} +3 -3
- package/dist/component/{classDiagram-v2-Q7XG4LA2-4S9mdFC1.js → classDiagram-v2-OCEON4UE-BOq63iUL.js} +3 -3
- package/dist/component/{cose-bilkent-S5V4N54A-BIrVaakt.js → cose-bilkent-JH36ORCC-B9x8cp5w.js} +2 -2
- package/dist/component/{wardley-L42UT6IY-HA1eSIS_.js → cynefin-VYW2F7L2-DAyxamLw.js} +9199 -7918
- package/dist/component/cynefinDiagram-MW4NZA55-OF6l99SS.js +302 -0
- package/dist/component/dagre-VZM6K2ZE-CELO1hFb.js +343 -0
- package/dist/component/diagram-7IWD3JNH-COzvm6E2.js +353 -0
- package/dist/component/{diagram-KO2AKTUF-Da1E68Eo.js → diagram-B4RE2ZJO-DR9KMRGw.js} +24 -24
- package/dist/component/{diagram-LMA3HP47-dRbk5sBa.js → diagram-LBJQPF4R-D47Zqm-k.js} +23 -23
- package/dist/component/{diagram-OG6HWLK6-CcKT8mhn.js → diagram-Q27KOJAE-Key1bw_Y.js} +197 -197
- package/dist/component/diagram-UB23O5K3-Cxf-sZnK.js +222 -0
- package/dist/component/ebnfDiagram-BXEA7PRR-C8uURt_x.js +112 -0
- package/dist/component/{erDiagram-TEJ5UH35-3ATYT9J-.js → erDiagram-JOGREHBK-CpCxe8Ib.js} +142 -131
- package/dist/component/{flowDiagram-I6XJVG4X-D9PLm9Od.js → flowDiagram-UKHOOZJN-urFG2I71.js} +268 -258
- package/dist/component/ganttDiagram-PKOTCBZU-8nA9faYf.js +2714 -0
- package/dist/component/{gitGraphDiagram-PVQCEYII-13gVhAGc.js → gitGraphDiagram-DS77QQ5N-u4cbNW8o.js} +33 -33
- package/dist/component/{graph-BZLHvygk.js → graph-CWpEkm4G.js} +35 -35
- package/dist/component/{highlighted-body-OFNGDK62-DCxRI4UV.js → highlighted-body-OFNGDK62-Bo-15uvJ.js} +2 -2
- package/dist/component/index.js +2 -2
- package/dist/component/{infoDiagram-5YYISTIA-DymxA7AN.js → infoDiagram-6WML65LV-ZAv4gZpA.js} +4 -4
- package/dist/component/{ishikawaDiagram-YF4QCWOH-C3sTn76C.js → ishikawaDiagram-WSZJBQD7-CvB6evSz.js} +27 -27
- package/dist/component/{journeyDiagram-JHISSGLW-Cq0hOAfJ.js → journeyDiagram-NVQOT4AX-M5BRYuPr.js} +5 -5
- package/dist/component/{kanban-definition-UN3LZRKU-5tBWjkp7.js → kanban-definition-27J2QSJJ-LL6GkmVe.js} +35 -35
- package/dist/component/layout-Br2UjHRU.js +1522 -0
- package/dist/component/{linear-BT4blD8s.js → linear-DVg61V66.js} +13 -13
- package/dist/component/map-CdwokNh2.js +227 -0
- package/dist/component/{mermaid-GHXKKRXX-DXPXjnb7.js → mermaid-GHXKKRXX-C2L7fCIM.js} +29577 -29128
- package/dist/component/{mindmap-definition-RKZ34NQL-DO-OuAQQ.js → mindmap-definition-FAOFIHXS-BBZzsLh7.js} +26 -26
- package/dist/component/pegDiagram-VL7TDLO6-BEG86cY8.js +98 -0
- package/dist/component/pieDiagram-7S7Q4E2Y-BTkrNjAi.js +210 -0
- package/dist/component/{quadrantDiagram-W4KKPZXB-CaJWg9ep.js → quadrantDiagram-CIZ2JOQS-BsjBAd4w.js} +14 -15
- package/dist/component/railroadDiagram-AXF67PYL-DuE0ZFxj.js +80 -0
- package/dist/component/{requirementDiagram-4Y6WPE33-CmZrtZqe.js → requirementDiagram-LRYGKXZP-CcshEEMy.js} +15 -15
- package/dist/component/{sankeyDiagram-5OEKKPKP-Cp95M1aj.js → sankeyDiagram-W5VNT64P-CFn011ig.js} +2 -2
- package/dist/component/{sequenceDiagram-3UESZ5HK-C0x0WvhR.js → sequenceDiagram-SI44F4Z6-DmMZNJDw.js} +960 -963
- package/dist/component/sizeCapture-X5ZJPWSS-Ce4PhIAO.js +49 -0
- package/dist/component/{stateDiagram-AJRCARHV-H10vaGL3.js → stateDiagram-OKZ733FA-DDVzQKaO.js} +5 -5
- package/dist/component/{stateDiagram-v2-BHNVJYJU-rj7ljkc-.js → stateDiagram-v2-UEYNNEHI-DeeW8PDA.js} +3 -3
- package/dist/component/swimlanes-SLNWSIFB-CZh2_vzg.js +5335 -0
- package/dist/component/swimlanesDiagram-ULZ7WXOC-Wb0Ri7qR.js +16 -0
- package/dist/component/{timeline-definition-PNZ67QCA-Cil1QaqZ.js → timeline-definition-Z64GVDOM-rfiLwdTR.js} +15 -15
- package/dist/component/vennDiagram-T6HMQDX7-D8l7hqNb.js +1581 -0
- package/dist/component/{wardleyDiagram-YWT4CUSO-Xq5Hnmio.js → wardleyDiagram-T6FBY63Y-7YqmpmtC.js} +15 -15
- package/dist/component/{xychartDiagram-2RQKCTM6-dinwR4Zm.js → xychartDiagram-ELKLHX3M-Dx2ECqt8.js} +464 -418
- package/dist/embed/voice/line-slots.d.ts +37 -2
- package/dist/embed/voice-call.d.ts +12 -0
- package/dist/i18n/messages/en.d.ts +1 -2
- package/dist/lib/web-storage.d.ts +8 -0
- package/dist/stream/belong-chat-transport.d.ts +1 -0
- package/dist/stream/belong-data-parts.d.ts +2 -0
- package/dist/stream/stream-state-store.d.ts +13 -0
- package/dist/types/public.d.ts +3 -0
- package/package.json +1 -1
- package/dist/component/arc-TLcl3N8_.js +0 -86
- package/dist/component/dagre-BM42HDAG-BoPUzTvD.js +0 -448
- package/dist/component/diagram-2AECGRRQ-PIXCGxIt.js +0 -220
- package/dist/component/diagram-5GNKFQAL-CbJxbGBh.js +0 -126
- package/dist/component/ganttDiagram-6RSMTGT7-F_XUzD1p.js +0 -2709
- package/dist/component/layout-Bu6nRdWm.js +0 -1731
- package/dist/component/pieDiagram-4H26LBE5-BkEktPwZ.js +0 -166
- package/dist/component/vennDiagram-CIIHVFJN-Dk8PKmfb.js +0 -1560
package/dist/component/{xychartDiagram-2RQKCTM6-dinwR4Zm.js → xychartDiagram-ELKLHX3M-Dx2ECqt8.js}
RENAMED
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import { s as
|
|
2
|
-
import { i as
|
|
3
|
-
import { o as
|
|
4
|
-
import { l as
|
|
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-C2L7fCIM.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-DVg61V66.js";
|
|
5
5
|
globalThis.process = globalThis.process || { env: {} };
|
|
6
6
|
globalThis.global = globalThis.global || globalThis;
|
|
7
|
-
function
|
|
8
|
-
t = +t, i = +i, e = (
|
|
9
|
-
for (var s = -1,
|
|
10
|
-
|
|
11
|
-
return
|
|
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
|
|
14
|
-
var t =
|
|
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
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
var I =
|
|
20
|
-
return
|
|
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(
|
|
25
|
-
return arguments.length ? (i(
|
|
26
|
-
}, t.range = function(
|
|
27
|
-
return arguments.length ? ([s,
|
|
28
|
-
}, t.rangeRound = function(
|
|
29
|
-
return [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
|
|
31
|
+
return u;
|
|
32
32
|
}, t.step = function() {
|
|
33
|
-
return
|
|
34
|
-
}, t.round = function(
|
|
35
|
-
return arguments.length ? (p = !!
|
|
36
|
-
}, t.padding = function(
|
|
37
|
-
return arguments.length ? (
|
|
38
|
-
}, t.paddingInner = function(
|
|
39
|
-
return arguments.length ? (
|
|
40
|
-
}, t.paddingOuter = function(
|
|
41
|
-
return arguments.length ? (
|
|
42
|
-
}, t.align = function(
|
|
43
|
-
return arguments.length ? (
|
|
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
|
|
46
|
-
},
|
|
45
|
+
return ut(i(), [s, a]).round(p).paddingInner(S).paddingOuter(k).align(L);
|
|
46
|
+
}, fi.apply(_(), arguments);
|
|
47
47
|
}
|
|
48
|
-
var
|
|
49
|
-
var t = /* @__PURE__ */
|
|
50
|
-
for (l = l || {},
|
|
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],
|
|
53
|
-
trace: /* @__PURE__ */
|
|
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,
|
|
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",
|
|
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], [
|
|
59
|
-
performAction: /* @__PURE__ */
|
|
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
|
-
|
|
91
|
+
case 30:
|
|
92
|
+
this.$ = [o[d - 2], ...o[d]];
|
|
92
93
|
break;
|
|
93
94
|
case 21:
|
|
94
|
-
|
|
95
|
+
case 31:
|
|
96
|
+
this.$ = [o[d]];
|
|
95
97
|
break;
|
|
96
98
|
case 22:
|
|
97
|
-
|
|
99
|
+
this.$ = { value: Number(o[d - 1]), label: o[d] };
|
|
98
100
|
break;
|
|
99
101
|
case 23:
|
|
100
|
-
|
|
102
|
+
this.$ = { value: Number(o[d]), label: "" };
|
|
101
103
|
break;
|
|
102
104
|
case 24:
|
|
103
|
-
x.setXAxisTitle(
|
|
105
|
+
x.setXAxisTitle(o[d]);
|
|
104
106
|
break;
|
|
105
107
|
case 25:
|
|
106
|
-
x.
|
|
108
|
+
x.setXAxisTitle(o[d - 1]);
|
|
107
109
|
break;
|
|
108
110
|
case 26:
|
|
109
|
-
x.
|
|
111
|
+
x.setXAxisTitle({ type: "text", text: "" });
|
|
110
112
|
break;
|
|
111
113
|
case 27:
|
|
112
|
-
|
|
114
|
+
x.setXAxisBand(o[d]);
|
|
113
115
|
break;
|
|
114
116
|
case 28:
|
|
115
|
-
|
|
117
|
+
x.setXAxisRangeData(Number(o[d - 2]), Number(o[d]));
|
|
116
118
|
break;
|
|
117
119
|
case 29:
|
|
118
|
-
this.$ =
|
|
120
|
+
this.$ = o[d - 1];
|
|
119
121
|
break;
|
|
120
|
-
case
|
|
122
|
+
case 32:
|
|
121
123
|
x.setYAxisTitle(o[d]);
|
|
122
124
|
break;
|
|
123
|
-
case
|
|
125
|
+
case 33:
|
|
124
126
|
x.setYAxisTitle(o[d - 1]);
|
|
125
127
|
break;
|
|
126
|
-
case
|
|
128
|
+
case 34:
|
|
127
129
|
x.setYAxisTitle({ type: "text", text: "" });
|
|
128
130
|
break;
|
|
129
|
-
case
|
|
131
|
+
case 35:
|
|
130
132
|
x.setYAxisRangeData(Number(o[d - 2]), Number(o[d]));
|
|
131
133
|
break;
|
|
132
|
-
case
|
|
134
|
+
case 39:
|
|
133
135
|
this.$ = { text: o[d], type: "text" };
|
|
134
136
|
break;
|
|
135
|
-
case
|
|
137
|
+
case 40:
|
|
136
138
|
this.$ = { text: o[d], type: "text" };
|
|
137
139
|
break;
|
|
138
|
-
case
|
|
140
|
+
case 41:
|
|
139
141
|
this.$ = { text: o[d], type: "markdown" };
|
|
140
142
|
break;
|
|
141
|
-
case
|
|
143
|
+
case 42:
|
|
142
144
|
this.$ = o[d];
|
|
143
145
|
break;
|
|
144
|
-
case
|
|
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,
|
|
150
|
-
defaultActions: { 8: [2, 1], 10: [2, 3], 21: [2, 2],
|
|
151
|
-
parseError: /* @__PURE__ */
|
|
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
|
|
156
|
-
throw
|
|
157
|
+
var g = new Error(r);
|
|
158
|
+
throw g.hash = l, g;
|
|
157
159
|
}
|
|
158
160
|
}, "parseError"),
|
|
159
|
-
parse: /* @__PURE__ */
|
|
160
|
-
var l = this,
|
|
161
|
-
for (var
|
|
162
|
-
Object.prototype.hasOwnProperty.call(this.yy,
|
|
163
|
-
|
|
164
|
-
var
|
|
165
|
-
o.push(
|
|
166
|
-
var
|
|
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
|
|
169
|
-
|
|
170
|
+
function ei(z) {
|
|
171
|
+
g.length = g.length - 2 * z, w.length = w.length - z, o.length = o.length - z;
|
|
170
172
|
}
|
|
171
|
-
|
|
173
|
+
n(ei, "popStack");
|
|
172
174
|
function kt() {
|
|
173
|
-
var
|
|
174
|
-
return
|
|
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
|
-
|
|
177
|
-
for (var M,
|
|
178
|
-
if (
|
|
179
|
-
var
|
|
180
|
-
|
|
181
|
-
for (
|
|
182
|
-
this.terminals_[
|
|
183
|
-
|
|
184
|
-
` +
|
|
185
|
-
Expecting ` +
|
|
186
|
-
text:
|
|
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:
|
|
189
|
-
loc:
|
|
190
|
-
expected:
|
|
190
|
+
line: D.yylineno,
|
|
191
|
+
loc: ht,
|
|
192
|
+
expected: at
|
|
191
193
|
});
|
|
192
194
|
}
|
|
193
|
-
if (
|
|
194
|
-
throw new Error("Parse Error: multiple actions possible at state: " +
|
|
195
|
-
switch (
|
|
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
|
-
|
|
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_[
|
|
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
|
-
},
|
|
207
|
+
}, ii && (G._$.range = [
|
|
206
208
|
o[o.length - (N || 1)].range[0],
|
|
207
209
|
o[o.length - 1].range[1]
|
|
208
|
-
]),
|
|
210
|
+
]), lt = this.performAction.apply(G, [
|
|
209
211
|
d,
|
|
210
|
-
|
|
211
|
-
|
|
212
|
+
Rt,
|
|
213
|
+
et,
|
|
212
214
|
$.yy,
|
|
213
|
-
|
|
215
|
+
O[1],
|
|
214
216
|
w,
|
|
215
217
|
o
|
|
216
|
-
].concat(
|
|
217
|
-
return
|
|
218
|
-
N && (
|
|
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
|
-
},
|
|
228
|
+
}, Q = /* @__PURE__ */ (function() {
|
|
227
229
|
var F = {
|
|
228
230
|
EOF: 1,
|
|
229
|
-
parseError: /* @__PURE__ */
|
|
231
|
+
parseError: /* @__PURE__ */ n(function(l, g) {
|
|
230
232
|
if (this.yy.parser)
|
|
231
|
-
this.yy.parser.parseError(l,
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
253
|
-
var l = r.length,
|
|
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),
|
|
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:
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
304
|
-
var
|
|
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],
|
|
330
|
-
return
|
|
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__ */
|
|
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,
|
|
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 (
|
|
347
|
-
if (l =
|
|
348
|
-
if (r = this.test_match(
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
394
|
+
stateStackSize: /* @__PURE__ */ n(function() {
|
|
393
395
|
return this.conditionStack.length;
|
|
394
396
|
}, "stateStackSize"),
|
|
395
397
|
options: { "case-insensitive": !0 },
|
|
396
|
-
performAction: /* @__PURE__ */
|
|
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(),
|
|
405
|
+
return this.popState(), 36;
|
|
404
406
|
case 3:
|
|
405
|
-
return this.popState(),
|
|
407
|
+
return this.popState(), 36;
|
|
406
408
|
case 4:
|
|
407
|
-
return
|
|
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
|
|
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
|
|
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
|
|
470
|
+
return 44;
|
|
469
471
|
case 33:
|
|
470
472
|
return "COLON";
|
|
471
473
|
case 34:
|
|
472
|
-
return
|
|
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
|
|
482
|
+
return 49;
|
|
481
483
|
case 39:
|
|
482
|
-
return
|
|
484
|
+
return 51;
|
|
483
485
|
case 40:
|
|
484
|
-
return
|
|
486
|
+
return 48;
|
|
485
487
|
case 41:
|
|
486
|
-
return
|
|
488
|
+
return 42;
|
|
487
489
|
case 42:
|
|
488
|
-
return
|
|
490
|
+
return 50;
|
|
489
491
|
case 43:
|
|
490
|
-
return
|
|
492
|
+
return 43;
|
|
491
493
|
case 44:
|
|
492
494
|
break;
|
|
493
495
|
case 45:
|
|
494
|
-
return
|
|
496
|
+
return 37;
|
|
495
497
|
case 46:
|
|
496
|
-
return
|
|
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
|
-
|
|
505
|
-
function
|
|
506
|
+
R.lexer = Q;
|
|
507
|
+
function q() {
|
|
506
508
|
this.yy = {};
|
|
507
509
|
}
|
|
508
|
-
return
|
|
510
|
+
return n(q, "Parser"), q.prototype = R, R.Parser = q, new q();
|
|
509
511
|
})();
|
|
510
|
-
|
|
511
|
-
var
|
|
512
|
-
function
|
|
512
|
+
gt.parser = gt;
|
|
513
|
+
var yi = gt;
|
|
514
|
+
function xt(t) {
|
|
513
515
|
return t.type === "bar";
|
|
514
516
|
}
|
|
515
|
-
|
|
516
|
-
function
|
|
517
|
+
n(xt, "isBarPlot");
|
|
518
|
+
function nt(t) {
|
|
517
519
|
return t.type === "band";
|
|
518
520
|
}
|
|
519
|
-
|
|
521
|
+
n(nt, "isBandAxisData");
|
|
520
522
|
function j(t) {
|
|
521
523
|
return t.type === "linear";
|
|
522
524
|
}
|
|
523
|
-
|
|
524
|
-
var
|
|
525
|
+
n(j, "isLinearAxisData");
|
|
526
|
+
var zt = class {
|
|
525
527
|
constructor(t) {
|
|
526
528
|
this.parentGroup = t;
|
|
527
529
|
}
|
|
528
530
|
static {
|
|
529
|
-
|
|
531
|
+
n(this, "TextDimensionCalculatorWithFont");
|
|
530
532
|
}
|
|
531
533
|
getMaxDimension(t, i) {
|
|
532
534
|
if (!this.parentGroup)
|
|
533
535
|
return {
|
|
534
|
-
width: t.reduce((
|
|
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
|
|
542
|
-
const
|
|
543
|
-
e.width = Math.max(e.width,
|
|
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
|
-
},
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
585
|
-
this.
|
|
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
|
|
602
|
-
|
|
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:
|
|
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
|
-
},
|
|
812
|
+
}, bi = class extends Vt {
|
|
804
813
|
static {
|
|
805
|
-
|
|
814
|
+
n(this, "BandAxis");
|
|
806
815
|
}
|
|
807
|
-
constructor(t, i, e, s,
|
|
808
|
-
super(t, s,
|
|
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 =
|
|
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
|
-
},
|
|
831
|
+
}, Ai = class extends Vt {
|
|
823
832
|
static {
|
|
824
|
-
|
|
833
|
+
n(this, "LinearAxis");
|
|
825
834
|
}
|
|
826
|
-
constructor(t, i, e, s,
|
|
827
|
-
super(t, s,
|
|
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 =
|
|
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
|
|
841
|
-
const
|
|
842
|
-
return
|
|
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
|
-
|
|
848
|
-
) : new
|
|
856
|
+
a
|
|
857
|
+
) : new Ai(
|
|
849
858
|
i,
|
|
850
859
|
e,
|
|
851
860
|
[t.min, t.max],
|
|
852
861
|
t.title,
|
|
853
|
-
|
|
862
|
+
a
|
|
854
863
|
);
|
|
855
864
|
}
|
|
856
|
-
|
|
857
|
-
var
|
|
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
|
-
|
|
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
|
|
904
|
-
return new
|
|
912
|
+
const a = new zt(s);
|
|
913
|
+
return new wi(a, t, i, e);
|
|
905
914
|
}
|
|
906
|
-
|
|
907
|
-
var
|
|
908
|
-
constructor(t, i, e, s,
|
|
909
|
-
this.plotData = t, this.xAxis = i, this.yAxis = e, this.orientation = s, this.plotIndex =
|
|
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
|
-
|
|
921
|
+
n(this, "LinePlot");
|
|
913
922
|
}
|
|
914
923
|
getDrawableElement() {
|
|
915
|
-
const t = this.plotData.data.map((
|
|
916
|
-
this.xAxis.getScaleValue(
|
|
917
|
-
this.yAxis.getScaleValue(
|
|
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
|
-
|
|
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
|
-
},
|
|
935
|
-
constructor(t, i, e, s,
|
|
936
|
-
this.barData = t, this.boundingRect = i, this.xAxis = e, this.yAxis = s, this.orientation =
|
|
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
|
-
|
|
981
|
+
n(this, "BarPlot");
|
|
940
982
|
}
|
|
941
983
|
getDrawableElement() {
|
|
942
|
-
const t = this.barData.data.map((
|
|
943
|
-
this.xAxis.getScaleValue(
|
|
944
|
-
this.yAxis.getScaleValue(
|
|
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((
|
|
992
|
+
data: t.map((a) => ({
|
|
951
993
|
x: this.boundingRect.x,
|
|
952
|
-
y:
|
|
994
|
+
y: a[0] - s,
|
|
953
995
|
height: e,
|
|
954
|
-
width:
|
|
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((
|
|
965
|
-
x:
|
|
966
|
-
y:
|
|
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 -
|
|
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
|
-
},
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
1036
|
-
return new
|
|
1077
|
+
function Ot(t, i, e) {
|
|
1078
|
+
return new Ri(t, i, e);
|
|
1037
1079
|
}
|
|
1038
|
-
|
|
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:
|
|
1044
|
-
xAxis:
|
|
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:
|
|
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
|
-
|
|
1111
|
+
n(this, "Orchestrator");
|
|
1070
1112
|
}
|
|
1071
1113
|
calculateVerticalSpace() {
|
|
1072
|
-
let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0,
|
|
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
|
-
),
|
|
1075
|
-
width:
|
|
1076
|
-
height:
|
|
1116
|
+
), u = this.componentStore.plot.calculateSpace({
|
|
1117
|
+
width: a,
|
|
1118
|
+
height: c
|
|
1077
1119
|
});
|
|
1078
|
-
t -=
|
|
1120
|
+
t -= u.width, i -= u.height, u = this.componentStore.title.calculateSpace({
|
|
1079
1121
|
width: this.chartConfig.width,
|
|
1080
1122
|
height: i
|
|
1081
|
-
}), s =
|
|
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 -=
|
|
1126
|
+
}), i -= u.height, this.componentStore.yAxis.setAxisPosition("left"), u = this.componentStore.yAxis.calculateSpace({
|
|
1085
1127
|
width: t,
|
|
1086
1128
|
height: i
|
|
1087
|
-
}), e =
|
|
1088
|
-
width:
|
|
1089
|
-
height:
|
|
1090
|
-
}), this.componentStore.plot.setBoundingBoxXY({ x: e, y: s }), this.componentStore.xAxis.setRange([e, e +
|
|
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,
|
|
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:
|
|
1097
|
-
height:
|
|
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,
|
|
1109
|
-
width:
|
|
1110
|
-
height:
|
|
1111
|
-
}), this.componentStore.plot.setBoundingBoxXY({ x: s, y:
|
|
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
|
-
|
|
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
|
-
},
|
|
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 =
|
|
1139
|
-
return
|
|
1140
|
-
|
|
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
|
-
|
|
1145
|
-
function
|
|
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
|
-
|
|
1163
|
-
function
|
|
1164
|
-
const i =
|
|
1165
|
-
return
|
|
1204
|
+
n(At, "getChartDefaultData");
|
|
1205
|
+
function it(t) {
|
|
1206
|
+
const i = pt();
|
|
1207
|
+
return ui(t.trim(), i);
|
|
1166
1208
|
}
|
|
1167
|
-
|
|
1168
|
-
function Ot(t) {
|
|
1169
|
-
zt = t;
|
|
1170
|
-
}
|
|
1171
|
-
a(Ot, "setTmpSVGG");
|
|
1209
|
+
n(it, "textSanitizer");
|
|
1172
1210
|
function Ft(t) {
|
|
1173
|
-
|
|
1211
|
+
Wt = t;
|
|
1174
1212
|
}
|
|
1175
|
-
|
|
1213
|
+
n(Ft, "setTmpSVGG");
|
|
1176
1214
|
function Xt(t) {
|
|
1177
|
-
|
|
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
|
-
|
|
1217
|
+
n(Xt, "setOrientation");
|
|
1184
1218
|
function Yt(t) {
|
|
1185
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1196
|
-
function
|
|
1197
|
-
|
|
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
|
-
|
|
1241
|
+
n($t, "setYAxisRangeData");
|
|
1200
1242
|
function Ut(t) {
|
|
1201
|
-
const i = Math.min(...t), e = Math.max(...t), s = j(
|
|
1202
|
-
|
|
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:
|
|
1246
|
+
title: m.yAxis.title,
|
|
1205
1247
|
min: Math.min(s, i),
|
|
1206
|
-
max: Math.max(
|
|
1248
|
+
max: Math.max(a, e)
|
|
1207
1249
|
};
|
|
1208
1250
|
}
|
|
1209
|
-
|
|
1210
|
-
function
|
|
1251
|
+
n(Ut, "setYAxisRangeFromPlotData");
|
|
1252
|
+
function Ct(t) {
|
|
1211
1253
|
let i = [];
|
|
1212
1254
|
if (t.length === 0)
|
|
1213
1255
|
return i;
|
|
1214
|
-
if (!
|
|
1215
|
-
const e = j(
|
|
1216
|
-
|
|
1217
|
-
}
|
|
1218
|
-
if (
|
|
1219
|
-
const e =
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
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
|
-
|
|
1227
|
-
function
|
|
1228
|
-
return
|
|
1271
|
+
n(Ct, "transformDataWithoutCategory");
|
|
1272
|
+
function St(t) {
|
|
1273
|
+
return ft[t === 0 ? 0 : t % ft.length];
|
|
1229
1274
|
}
|
|
1230
|
-
|
|
1231
|
-
function
|
|
1232
|
-
const e =
|
|
1233
|
-
|
|
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:
|
|
1280
|
+
strokeFill: St(Z),
|
|
1236
1281
|
strokeWidth: 2,
|
|
1237
|
-
data:
|
|
1238
|
-
|
|
1282
|
+
data: a,
|
|
1283
|
+
...c ? { pointLabels: s } : {}
|
|
1284
|
+
}), Z++;
|
|
1239
1285
|
}
|
|
1240
|
-
|
|
1241
|
-
function
|
|
1242
|
-
const e =
|
|
1243
|
-
|
|
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:
|
|
1246
|
-
data:
|
|
1247
|
-
}),
|
|
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
|
-
|
|
1295
|
+
n(Gt, "setBarData");
|
|
1256
1296
|
function jt() {
|
|
1257
|
-
|
|
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
|
-
|
|
1301
|
+
n(jt, "getDrawableElem");
|
|
1260
1302
|
function Qt() {
|
|
1261
|
-
return
|
|
1303
|
+
return tt;
|
|
1262
1304
|
}
|
|
1263
|
-
|
|
1305
|
+
n(Qt, "getChartThemeConfig");
|
|
1264
1306
|
function Kt() {
|
|
1265
|
-
return
|
|
1307
|
+
return J;
|
|
1266
1308
|
}
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
}
|
|
1271
|
-
|
|
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:
|
|
1274
|
-
getAccTitle:
|
|
1319
|
+
setAccTitle: ri,
|
|
1320
|
+
getAccTitle: oi,
|
|
1275
1321
|
setDiagramTitle: ni,
|
|
1276
|
-
getDiagramTitle:
|
|
1277
|
-
getAccDescription:
|
|
1278
|
-
setAccDescription:
|
|
1279
|
-
setOrientation:
|
|
1280
|
-
setXAxisTitle:
|
|
1281
|
-
setXAxisRangeData:
|
|
1282
|
-
setXAxisBand:
|
|
1283
|
-
setYAxisTitle:
|
|
1284
|
-
setYAxisRangeData:
|
|
1285
|
-
setLineData:
|
|
1286
|
-
setBarData:
|
|
1287
|
-
setTmpSVGG:
|
|
1288
|
-
getChartThemeConfig:
|
|
1289
|
-
getChartConfig:
|
|
1290
|
-
getXYChartData:
|
|
1291
|
-
},
|
|
1292
|
-
const
|
|
1293
|
-
function
|
|
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
|
-
|
|
1297
|
-
function
|
|
1342
|
+
n(S, "getDominantBaseLine");
|
|
1343
|
+
function k(f) {
|
|
1298
1344
|
return f === "left" ? "start" : f === "right" ? "end" : "middle";
|
|
1299
1345
|
}
|
|
1300
|
-
|
|
1301
|
-
function
|
|
1346
|
+
n(k, "getTextAnchor");
|
|
1347
|
+
function L(f) {
|
|
1302
1348
|
return `translate(${f.x}, ${f.y}) rotate(${f.rotation || 0})`;
|
|
1303
1349
|
}
|
|
1304
|
-
|
|
1350
|
+
n(L, "getTextTransformation"), It.debug(`Rendering xychart chart
|
|
1305
1351
|
` + t);
|
|
1306
|
-
const
|
|
1307
|
-
|
|
1308
|
-
const
|
|
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 =
|
|
1311
|
-
for (const [
|
|
1312
|
-
let
|
|
1313
|
-
|
|
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
|
-
|
|
1318
|
-
for (const f of
|
|
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),
|
|
1325
|
-
const h =
|
|
1326
|
-
if (
|
|
1327
|
-
let
|
|
1328
|
-
const { data:
|
|
1329
|
-
return
|
|
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
|
-
|
|
1332
|
-
const
|
|
1333
|
-
const { data:
|
|
1334
|
-
let
|
|
1335
|
-
for (; !
|
|
1336
|
-
|
|
1337
|
-
return
|
|
1338
|
-
}),
|
|
1339
|
-
T.selectAll("text").data(Y).enter().append("text").attr("x",
|
|
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
|
|
1342
|
-
const { data:
|
|
1343
|
-
return
|
|
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
|
-
|
|
1346
|
-
const
|
|
1347
|
-
const { data: A, label:
|
|
1348
|
-
let
|
|
1349
|
-
for (; !
|
|
1350
|
-
|
|
1351
|
-
return
|
|
1352
|
-
}), C = Math.floor(Math.min(...Y)),
|
|
1353
|
-
T.selectAll("text").data(X).enter().append("text").attr("x", (
|
|
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) =>
|
|
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"),
|
|
1366
|
-
draw:
|
|
1367
|
-
},
|
|
1368
|
-
parser:
|
|
1369
|
-
db:
|
|
1370
|
-
renderer:
|
|
1411
|
+
}, "draw"), Li = {
|
|
1412
|
+
draw: vi
|
|
1413
|
+
}, zi = {
|
|
1414
|
+
parser: yi,
|
|
1415
|
+
db: Di,
|
|
1416
|
+
renderer: Li
|
|
1371
1417
|
};
|
|
1372
1418
|
export {
|
|
1373
|
-
|
|
1419
|
+
zi as diagram
|
|
1374
1420
|
};
|
|
1375
|
-
//# sourceMappingURL=xychartDiagram-
|
|
1421
|
+
//# sourceMappingURL=xychartDiagram-ELKLHX3M-Dx2ECqt8.js.map
|