@marimo-team/islands 0.14.11-dev2 → 0.14.11-dev21
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/{ConnectedDataExplorerComponent-Dl7Gx8nj.js → ConnectedDataExplorerComponent-B98UAJGl.js} +4 -4
- package/dist/{ImageComparisonComponent-IsA0pccG.js → ImageComparisonComponent-3rx-X1eA.js} +1 -1
- package/dist/{VegaLite-C3jfIIJl.js → VegaLite-bssctYsi.js} +6961 -7180
- package/dist/{_baseUniq-DXGCzwrs.js → _baseUniq-n5nuGCm-.js} +36 -36
- package/dist/{any-language-editor-BbtP_crK.js → any-language-editor-CTuUQiXP.js} +1 -1
- package/dist/{architectureDiagram-IEHRJDOE-B5UTatfK.js → architectureDiagram-NQ2NVSRB-Ghs-gTjF.js} +897 -894
- package/dist/assets/{worker-BcyuOSTi.js → save-worker-fI5ofStJ.js} +1076 -1649
- package/dist/assets/{save-worker-BIDtxCd1.js → worker-Bfk1FrzG.js} +1627 -1747
- package/dist/assets/worker-BldghCZh.js +3752 -0
- package/dist/{blockDiagram-JOT3LUYC-BsdaPVqe.js → blockDiagram-PHRCVELO-BJrdpvE8.js} +534 -522
- package/dist/{c4Diagram-VJAJSXHY-mAt84R4z.js → c4Diagram-6F6E4RAY-C3mvzJPu.js} +4 -4
- package/dist/{channel-BQIWHLpc.js → channel-Dv_KwBSx.js} +1 -1
- package/dist/{chunk-4BMEZGHF-CKIxJWxP.js → chunk-353BL4L5-DE1uUKLI.js} +1 -1
- package/dist/{chunk-D6G4REZN-CgGV16Ao.js → chunk-67H74DCK-BSe-uUSS.js} +1 -1
- package/dist/chunk-6OLS64BW-lmSfyWue.js +1383 -0
- package/dist/{chunk-XZIHB7SX-Bwue5JjE.js → chunk-AACKK3MU-DAmuROVD.js} +1 -1
- package/dist/chunk-BFAMUDN2-D9C6R9UM.js +8 -0
- package/dist/chunk-E2GYISFI-BzFDmP6o.js +19 -0
- package/dist/{chunk-A2AXSNBT-wMvlVMnZ.js → chunk-QEP2MXWD-BILXx23p.js} +30 -27
- package/dist/chunk-SKB7J2MH-CxMkQppY.js +20 -0
- package/dist/{classDiagram-GIVACNV2-DOmcKRwM.js → classDiagram-BGRH5UQR-BbYr5aD9.js} +2 -2
- package/dist/{classDiagram-v2-COTLJTTW-DOmcKRwM.js → classDiagram-v2-O24JOBDK-BbYr5aD9.js} +2 -2
- package/dist/{clone-PHSHUhb-.js → clone-DuBujAk0.js} +1 -1
- package/dist/{dagre-OKDRZEBW-D5HNBllU.js → dagre-FFZHY6LT-DO5nLpLx.js} +8 -8
- package/dist/{data-editor-Coz_zrsX.js → data-editor-C8yM5wyh.js} +213 -201
- package/dist/diagram-3EMPZRKU-B1rYMJMS.js +313 -0
- package/dist/diagram-5UYTHUR4-BUu8PsmE.js +137 -0
- package/dist/{diagram-SSKATNLV-BsO89QJN.js → diagram-ZTM2IBQH-lz_uZrYh.js} +3 -3
- package/dist/{erDiagram-Q7BY3M3F-DWIMKTfS.js → erDiagram-R3QVA2FD-D_A2jrJV.js} +6 -5
- package/dist/{flowDiagram-4HSFHLVR-CnO0wmaL.js → flowDiagram-PKI6S5ZS-Bv6D_bIf.js} +283 -278
- package/dist/{ganttDiagram-APWFNJXF-otclLFL4.js → ganttDiagram-EK5VF46D-CbkaARm4.js} +453 -439
- package/dist/{gitGraphDiagram-7IBYFJ6S-C7F3RAja.js → gitGraphDiagram-GW3U2K7C-B8ZGoOT-.js} +35 -35
- package/dist/{graph-Btsdly6D.js → graph-txVVq_De.js} +3 -3
- package/dist/{index-BreCkhLm.js → index-BI6tloBb.js} +3 -3
- package/dist/{index-CcRF-HlA.js → index-CFJazcU-.js} +4 -4
- package/dist/{index-BGmzdYRo.js → index-OiR0LgXX.js} +6 -3
- package/dist/{index-z8OyYHEh.js → index-fJDj-gSp.js} +1 -1
- package/dist/index-pBmAzQJl.js +235 -0
- package/dist/{infoDiagram-PH2N3AL5-BwcXDzwE.js → infoDiagram-RLU2ROGC-DJw6nWp0.js} +5 -3
- package/dist/journeyDiagram-EWQZEKCU-1oCDdLcB.js +836 -0
- package/dist/{kanban-definition-NDS4AKOZ-3NJYjnpz.js → kanban-definition-ILFWEQ3N-nKJ02Ox0.js} +41 -39
- package/dist/{layout-qfivsCI_.js → layout-CbUwX9d6.js} +49 -49
- package/dist/{linear-D_Kojy5s.js → linear-sn9_bxtB.js} +22 -22
- package/dist/{main-DLuap1gp.js → main-D9-48wlP.js} +45053 -45130
- package/dist/main.js +1 -1
- package/dist/{mermaid-DCIbF0Rd.js → mermaid-CRRCnedu.js} +4925 -4853
- package/dist/min-CYaGuxZ4.js +80 -0
- package/dist/{mindmap-definition-ALO5MXBD-BtSBR7-c.js → mindmap-definition-CZNETY7S-CV62GMPJ.js} +3 -3
- package/dist/{pieDiagram-IB7DONF6-TiB_3g9z.js → pieDiagram-NIOCPIFQ-Bcs4p6kX.js} +3 -3
- package/dist/{quadrantDiagram-7GDLP6J5-B0DPjp7Z.js → quadrantDiagram-2OG54O6I-BlY5yea6.js} +2 -2
- package/dist/{react-plotly-BXWB3UQ5.js → react-plotly-B1SKP2B-.js} +1 -1
- package/dist/{requirementDiagram-KVF5MWMF-D_IlbRr_.js → requirementDiagram-SO3GGRV7-rmiJc5mh.js} +5 -4
- package/dist/{sankeyDiagram-QLVOVGJD-BHm9uvp_.js → sankeyDiagram-4UZDY2LN-TVzOLFCA.js} +11 -11
- package/dist/{sequenceDiagram-X6HHIX6F-3wcWWNtl.js → sequenceDiagram-ZIKVLSP4-POBNIgPB.js} +151 -149
- package/dist/{slides-component-JEGZbKgL.js → slides-component-5Y9DQzeV.js} +969 -962
- package/dist/stateDiagram-XX37X6EN-lR-7TG5f.js +264 -0
- package/dist/{stateDiagram-v2-YXO3MK2T-DTdt4vFc.js → stateDiagram-v2-GD6S3NHB-CYV2YCSY.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{time-DyZM4tB4.js → time-BytuUgXk.js} +2 -2
- package/dist/{timeline-definition-BDJGKUSR-Of4cvbYH.js → timeline-definition-RI47OAVP-DOrNrVHk.js} +99 -102
- package/dist/{radar-MK3ICKWK-BMSp8zaN.js → treemap-FKARHQ26-BOli4yXg.js} +2469 -2330
- package/dist/{vega-component-Dwc_9OTG.js → vega-component-KZ-3GH6H.js} +21 -21
- package/dist/{xychartDiagram-VJFVF3MP-5Jc993Va.js → xychartDiagram-H2YORKM3-CUOFDcIy.js} +409 -375
- package/package.json +37 -37
- package/dist/assets/worker-Dz6PPEGc.js +0 -4115
- package/dist/chunk-AEK57VVT-BAi7QtEw.js +0 -1416
- package/dist/chunk-RZ5BOZE2-D7Ag0UF8.js +0 -24
- package/dist/diagram-VNBRO52H-CA8VTm7L.js +0 -126
- package/dist/journeyDiagram-U35MCT3I-Co4hTdu9.js +0 -809
- package/dist/min-CQBZldos.js +0 -80
- package/dist/stateDiagram-DGXRK772-DbH3Rdz4.js +0 -271
|
@@ -1,216 +1,216 @@
|
|
|
1
1
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i2, _j;
|
|
2
|
-
import { _ as a, s as
|
|
3
|
-
import { i as
|
|
4
|
-
import { o as
|
|
2
|
+
import { _ as a, s as ei, g as si, t as Lt, q as ni, a as ai, b as oi, l as Et, K as ri, e as hi, z as li, G as xt, F as It, H as ci, M as ui, i as gi, ac as xi } from "./mermaid-CRRCnedu.js";
|
|
3
|
+
import { i as di } from "./init-DxzjmxYy.js";
|
|
4
|
+
import { o as fi } from "./ordinal-CYN5qNoq.js";
|
|
5
5
|
import { r as pi } from "./range-DdOGybNB.js";
|
|
6
|
-
import { l as
|
|
7
|
-
import { l as
|
|
8
|
-
function
|
|
9
|
-
var t =
|
|
6
|
+
import { l as Tt } from "./linear-sn9_bxtB.js";
|
|
7
|
+
import { l as Dt } from "./timer-BYwnU4DF.js";
|
|
8
|
+
function ht() {
|
|
9
|
+
var t = fi().unknown(void 0), i = t.domain, e = t.range, s = 0, n = 1, d, g, m = false, S = 0, D = 0, v = 0.5;
|
|
10
10
|
delete t.unknown;
|
|
11
|
-
function
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
var
|
|
15
|
-
return
|
|
11
|
+
function w() {
|
|
12
|
+
var y = i().length, E = n < s, T = E ? n : s, P = E ? s : n;
|
|
13
|
+
d = (P - T) / Math.max(1, y - S + D * 2), m && (d = Math.floor(d)), T += (P - T - d * (y - S)) * v, g = d * (1 - S), m && (T = Math.round(T), g = Math.round(g));
|
|
14
|
+
var I = pi(y).map(function(p) {
|
|
15
|
+
return T + d * p;
|
|
16
16
|
});
|
|
17
|
-
return e(
|
|
17
|
+
return e(E ? I.reverse() : I);
|
|
18
18
|
}
|
|
19
|
-
return t.domain = function(
|
|
20
|
-
return arguments.length ? (i(
|
|
21
|
-
}, t.range = function(
|
|
22
|
-
return arguments.length ? ([s, n] =
|
|
23
|
-
}, t.rangeRound = function(
|
|
24
|
-
return [s, n] =
|
|
19
|
+
return t.domain = function(y) {
|
|
20
|
+
return arguments.length ? (i(y), w()) : i();
|
|
21
|
+
}, t.range = function(y) {
|
|
22
|
+
return arguments.length ? ([s, n] = y, s = +s, n = +n, w()) : [s, n];
|
|
23
|
+
}, t.rangeRound = function(y) {
|
|
24
|
+
return [s, n] = y, s = +s, n = +n, m = true, w();
|
|
25
25
|
}, t.bandwidth = function() {
|
|
26
|
-
return
|
|
26
|
+
return g;
|
|
27
27
|
}, t.step = function() {
|
|
28
|
-
return
|
|
29
|
-
}, t.round = function(
|
|
30
|
-
return arguments.length ? (
|
|
31
|
-
}, t.padding = function(
|
|
32
|
-
return arguments.length ? (
|
|
33
|
-
}, t.paddingInner = function(
|
|
34
|
-
return arguments.length ? (
|
|
35
|
-
}, t.paddingOuter = function(
|
|
36
|
-
return arguments.length ? (
|
|
37
|
-
}, t.align = function(
|
|
38
|
-
return arguments.length ? (
|
|
28
|
+
return d;
|
|
29
|
+
}, t.round = function(y) {
|
|
30
|
+
return arguments.length ? (m = !!y, w()) : m;
|
|
31
|
+
}, t.padding = function(y) {
|
|
32
|
+
return arguments.length ? (S = Math.min(1, D = +y), w()) : S;
|
|
33
|
+
}, t.paddingInner = function(y) {
|
|
34
|
+
return arguments.length ? (S = Math.min(1, y), w()) : S;
|
|
35
|
+
}, t.paddingOuter = function(y) {
|
|
36
|
+
return arguments.length ? (D = +y, w()) : D;
|
|
37
|
+
}, t.align = function(y) {
|
|
38
|
+
return arguments.length ? (v = Math.max(0, Math.min(1, y)), w()) : v;
|
|
39
39
|
}, t.copy = function() {
|
|
40
|
-
return
|
|
41
|
-
},
|
|
40
|
+
return ht(i(), [s, n]).round(m).paddingInner(S).paddingOuter(D).align(v);
|
|
41
|
+
}, di.apply(w(), arguments);
|
|
42
42
|
}
|
|
43
|
-
var
|
|
44
|
-
var t = /* @__PURE__ */ a(function(
|
|
45
|
-
for (
|
|
46
|
-
return
|
|
47
|
-
}, "o"), i = [1, 10, 12, 14, 16, 18, 19, 21, 23], e = [2, 6], s = [1, 3], n = [1, 5],
|
|
43
|
+
var lt = function() {
|
|
44
|
+
var t = /* @__PURE__ */ a(function(F, r, c, u) {
|
|
45
|
+
for (c = c || {}, u = F.length; u--; c[F[u]] = r) ;
|
|
46
|
+
return c;
|
|
47
|
+
}, "o"), i = [1, 10, 12, 14, 16, 18, 19, 21, 23], e = [2, 6], s = [1, 3], n = [1, 5], d = [1, 6], g = [1, 7], m = [1, 5, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], S = [1, 25], D = [1, 26], v = [1, 28], w = [1, 29], y = [1, 30], E = [1, 31], T = [1, 32], P = [1, 33], I = [1, 34], p = [1, 35], _ = [1, 36], l = [1, 37], W = [1, 43], z = [1, 42], U = [1, 47], X = [1, 50], h = [1, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], L = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36], C = [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], k = [1, 64], $ = {
|
|
48
48
|
trace: /* @__PURE__ */ a(function() {
|
|
49
49
|
}, "trace"),
|
|
50
50
|
yy: {},
|
|
51
51
|
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 },
|
|
52
52
|
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" },
|
|
53
53
|
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]],
|
|
54
|
-
performAction: /* @__PURE__ */ a(function(r,
|
|
55
|
-
var
|
|
56
|
-
switch (
|
|
54
|
+
performAction: /* @__PURE__ */ a(function(r, c, u, x, A, o, j) {
|
|
55
|
+
var f = o.length - 1;
|
|
56
|
+
switch (A) {
|
|
57
57
|
case 5:
|
|
58
|
-
|
|
58
|
+
x.setOrientation(o[f]);
|
|
59
59
|
break;
|
|
60
60
|
case 9:
|
|
61
|
-
|
|
61
|
+
x.setDiagramTitle(o[f].text.trim());
|
|
62
62
|
break;
|
|
63
63
|
case 12:
|
|
64
|
-
|
|
64
|
+
x.setLineData({ text: "", type: "text" }, o[f]);
|
|
65
65
|
break;
|
|
66
66
|
case 13:
|
|
67
|
-
|
|
67
|
+
x.setLineData(o[f - 1], o[f]);
|
|
68
68
|
break;
|
|
69
69
|
case 14:
|
|
70
|
-
|
|
70
|
+
x.setBarData({ text: "", type: "text" }, o[f]);
|
|
71
71
|
break;
|
|
72
72
|
case 15:
|
|
73
|
-
|
|
73
|
+
x.setBarData(o[f - 1], o[f]);
|
|
74
74
|
break;
|
|
75
75
|
case 16:
|
|
76
|
-
this.$ = o[
|
|
76
|
+
this.$ = o[f].trim(), x.setAccTitle(this.$);
|
|
77
77
|
break;
|
|
78
78
|
case 17:
|
|
79
79
|
case 18:
|
|
80
|
-
this.$ = o[
|
|
80
|
+
this.$ = o[f].trim(), x.setAccDescription(this.$);
|
|
81
81
|
break;
|
|
82
82
|
case 19:
|
|
83
|
-
this.$ = o[
|
|
83
|
+
this.$ = o[f - 1];
|
|
84
84
|
break;
|
|
85
85
|
case 20:
|
|
86
|
-
this.$ = [Number(o[
|
|
86
|
+
this.$ = [Number(o[f - 2]), ...o[f]];
|
|
87
87
|
break;
|
|
88
88
|
case 21:
|
|
89
|
-
this.$ = [Number(o[
|
|
89
|
+
this.$ = [Number(o[f])];
|
|
90
90
|
break;
|
|
91
91
|
case 22:
|
|
92
|
-
|
|
92
|
+
x.setXAxisTitle(o[f]);
|
|
93
93
|
break;
|
|
94
94
|
case 23:
|
|
95
|
-
|
|
95
|
+
x.setXAxisTitle(o[f - 1]);
|
|
96
96
|
break;
|
|
97
97
|
case 24:
|
|
98
|
-
|
|
98
|
+
x.setXAxisTitle({ type: "text", text: "" });
|
|
99
99
|
break;
|
|
100
100
|
case 25:
|
|
101
|
-
|
|
101
|
+
x.setXAxisBand(o[f]);
|
|
102
102
|
break;
|
|
103
103
|
case 26:
|
|
104
|
-
|
|
104
|
+
x.setXAxisRangeData(Number(o[f - 2]), Number(o[f]));
|
|
105
105
|
break;
|
|
106
106
|
case 27:
|
|
107
|
-
this.$ = o[
|
|
107
|
+
this.$ = o[f - 1];
|
|
108
108
|
break;
|
|
109
109
|
case 28:
|
|
110
|
-
this.$ = [o[
|
|
110
|
+
this.$ = [o[f - 2], ...o[f]];
|
|
111
111
|
break;
|
|
112
112
|
case 29:
|
|
113
|
-
this.$ = [o[
|
|
113
|
+
this.$ = [o[f]];
|
|
114
114
|
break;
|
|
115
115
|
case 30:
|
|
116
|
-
|
|
116
|
+
x.setYAxisTitle(o[f]);
|
|
117
117
|
break;
|
|
118
118
|
case 31:
|
|
119
|
-
|
|
119
|
+
x.setYAxisTitle(o[f - 1]);
|
|
120
120
|
break;
|
|
121
121
|
case 32:
|
|
122
|
-
|
|
122
|
+
x.setYAxisTitle({ type: "text", text: "" });
|
|
123
123
|
break;
|
|
124
124
|
case 33:
|
|
125
|
-
|
|
125
|
+
x.setYAxisRangeData(Number(o[f - 2]), Number(o[f]));
|
|
126
126
|
break;
|
|
127
127
|
case 37:
|
|
128
|
-
this.$ = { text: o[
|
|
128
|
+
this.$ = { text: o[f], type: "text" };
|
|
129
129
|
break;
|
|
130
130
|
case 38:
|
|
131
|
-
this.$ = { text: o[
|
|
131
|
+
this.$ = { text: o[f], type: "text" };
|
|
132
132
|
break;
|
|
133
133
|
case 39:
|
|
134
|
-
this.$ = { text: o[
|
|
134
|
+
this.$ = { text: o[f], type: "markdown" };
|
|
135
135
|
break;
|
|
136
136
|
case 40:
|
|
137
|
-
this.$ = o[
|
|
137
|
+
this.$ = o[f];
|
|
138
138
|
break;
|
|
139
139
|
case 41:
|
|
140
|
-
this.$ = o[
|
|
140
|
+
this.$ = o[f - 1] + "" + o[f];
|
|
141
141
|
break;
|
|
142
142
|
}
|
|
143
143
|
}, "anonymous"),
|
|
144
|
-
table: [t(i, e, { 3: 1, 4: 2, 7: 4, 5: s, 34: n, 35:
|
|
144
|
+
table: [t(i, e, { 3: 1, 4: 2, 7: 4, 5: s, 34: n, 35: d, 36: g }), { 1: [3] }, t(i, e, { 4: 2, 7: 4, 3: 8, 5: s, 34: n, 35: d, 36: g }), t(i, e, { 4: 2, 7: 4, 6: 9, 3: 10, 5: s, 8: [1, 11], 34: n, 35: d, 36: g }), { 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(m, [2, 34]), t(m, [2, 35]), t(m, [2, 36]), { 1: [2, 1] }, t(i, e, { 4: 2, 7: 4, 3: 21, 5: s, 34: n, 35: d, 36: g }), { 1: [2, 3] }, t(m, [2, 5]), t(i, [2, 7], { 4: 22, 34: n, 35: d, 36: g }), { 11: 23, 37: 24, 38: S, 39: D, 40: 27, 41: v, 42: w, 43: y, 44: E, 45: T, 46: P, 47: I, 48: p, 49: _, 50: l }, { 11: 39, 13: 38, 24: W, 27: z, 29: 40, 30: 41, 37: 24, 38: S, 39: D, 40: 27, 41: v, 42: w, 43: y, 44: E, 45: T, 46: P, 47: I, 48: p, 49: _, 50: l }, { 11: 45, 15: 44, 27: U, 33: 46, 37: 24, 38: S, 39: D, 40: 27, 41: v, 42: w, 43: y, 44: E, 45: T, 46: P, 47: I, 48: p, 49: _, 50: l }, { 11: 49, 17: 48, 24: X, 37: 24, 38: S, 39: D, 40: 27, 41: v, 42: w, 43: y, 44: E, 45: T, 46: P, 47: I, 48: p, 49: _, 50: l }, { 11: 52, 17: 51, 24: X, 37: 24, 38: S, 39: D, 40: 27, 41: v, 42: w, 43: y, 44: E, 45: T, 46: P, 47: I, 48: p, 49: _, 50: l }, { 20: [1, 53] }, { 22: [1, 54] }, t(h, [2, 18]), { 1: [2, 2] }, t(h, [2, 8]), t(h, [2, 9]), t(L, [2, 37], { 40: 55, 41: v, 42: w, 43: y, 44: E, 45: T, 46: P, 47: I, 48: p, 49: _, 50: l }), t(L, [2, 38]), t(L, [2, 39]), t(C, [2, 40]), t(C, [2, 42]), t(C, [2, 43]), t(C, [2, 44]), t(C, [2, 45]), t(C, [2, 46]), t(C, [2, 47]), t(C, [2, 48]), t(C, [2, 49]), t(C, [2, 50]), t(C, [2, 51]), t(h, [2, 10]), t(h, [2, 22], { 30: 41, 29: 56, 24: W, 27: z }), t(h, [2, 24]), t(h, [2, 25]), { 31: [1, 57] }, { 11: 59, 32: 58, 37: 24, 38: S, 39: D, 40: 27, 41: v, 42: w, 43: y, 44: E, 45: T, 46: P, 47: I, 48: p, 49: _, 50: l }, t(h, [2, 11]), t(h, [2, 30], { 33: 60, 27: U }), t(h, [2, 32]), { 31: [1, 61] }, t(h, [2, 12]), { 17: 62, 24: X }, { 25: 63, 27: k }, t(h, [2, 14]), { 17: 65, 24: X }, t(h, [2, 16]), t(h, [2, 17]), t(C, [2, 41]), t(h, [2, 23]), { 27: [1, 66] }, { 26: [1, 67] }, { 26: [2, 29], 28: [1, 68] }, t(h, [2, 31]), { 27: [1, 69] }, t(h, [2, 13]), { 26: [1, 70] }, { 26: [2, 21], 28: [1, 71] }, t(h, [2, 15]), t(h, [2, 26]), t(h, [2, 27]), { 11: 59, 32: 72, 37: 24, 38: S, 39: D, 40: 27, 41: v, 42: w, 43: y, 44: E, 45: T, 46: P, 47: I, 48: p, 49: _, 50: l }, t(h, [2, 33]), t(h, [2, 19]), { 25: 73, 27: k }, { 26: [2, 28] }, { 26: [2, 20] }],
|
|
145
145
|
defaultActions: { 8: [2, 1], 10: [2, 3], 21: [2, 2], 72: [2, 28], 73: [2, 20] },
|
|
146
|
-
parseError: /* @__PURE__ */ a(function(r,
|
|
147
|
-
if (
|
|
146
|
+
parseError: /* @__PURE__ */ a(function(r, c) {
|
|
147
|
+
if (c.recoverable)
|
|
148
148
|
this.trace(r);
|
|
149
149
|
else {
|
|
150
|
-
var
|
|
151
|
-
throw
|
|
150
|
+
var u = new Error(r);
|
|
151
|
+
throw u.hash = c, u;
|
|
152
152
|
}
|
|
153
153
|
}, "parseError"),
|
|
154
154
|
parse: /* @__PURE__ */ a(function(r) {
|
|
155
|
-
var
|
|
156
|
-
for (var
|
|
157
|
-
Object.prototype.hasOwnProperty.call(this.yy,
|
|
158
|
-
R.setInput(r,
|
|
159
|
-
var
|
|
160
|
-
o.push(
|
|
161
|
-
var
|
|
162
|
-
typeof
|
|
163
|
-
function
|
|
164
|
-
|
|
155
|
+
var c = this, u = [0], x = [], A = [null], o = [], j = this.table, f = "", J = 0, St = 0, Zt = 2, _t = 1, Jt = o.slice.call(arguments, 1), R = Object.create(this.lexer), Y = { yy: {} };
|
|
156
|
+
for (var nt in this.yy)
|
|
157
|
+
Object.prototype.hasOwnProperty.call(this.yy, nt) && (Y.yy[nt] = this.yy[nt]);
|
|
158
|
+
R.setInput(r, Y.yy), Y.yy.lexer = R, Y.yy.parser = this, typeof R.yylloc > "u" && (R.yylloc = {});
|
|
159
|
+
var at = R.yylloc;
|
|
160
|
+
o.push(at);
|
|
161
|
+
var ti = R.options && R.options.ranges;
|
|
162
|
+
typeof Y.yy.parseError == "function" ? this.parseError = Y.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
163
|
+
function ii(V) {
|
|
164
|
+
u.length = u.length - 2 * V, A.length = A.length - V, o.length = o.length - V;
|
|
165
165
|
}
|
|
166
|
-
a(
|
|
167
|
-
function
|
|
168
|
-
var
|
|
169
|
-
return
|
|
166
|
+
a(ii, "popStack");
|
|
167
|
+
function kt() {
|
|
168
|
+
var V;
|
|
169
|
+
return V = x.pop() || R.lex() || _t, typeof V != "number" && (V instanceof Array && (x = V, V = x.pop()), V = c.symbols_[V] || V), V;
|
|
170
170
|
}
|
|
171
|
-
a(
|
|
172
|
-
for (var
|
|
173
|
-
if (
|
|
174
|
-
var
|
|
175
|
-
|
|
176
|
-
for (
|
|
177
|
-
this.terminals_[
|
|
178
|
-
R.showPosition ?
|
|
171
|
+
a(kt, "lex");
|
|
172
|
+
for (var M, H, B, ot, q = {}, tt, O, Rt, it; ; ) {
|
|
173
|
+
if (H = u[u.length - 1], this.defaultActions[H] ? B = this.defaultActions[H] : ((M === null || typeof M > "u") && (M = kt()), B = j[H] && j[H][M]), typeof B > "u" || !B.length || !B[0]) {
|
|
174
|
+
var rt = "";
|
|
175
|
+
it = [];
|
|
176
|
+
for (tt in j[H])
|
|
177
|
+
this.terminals_[tt] && tt > Zt && it.push("'" + this.terminals_[tt] + "'");
|
|
178
|
+
R.showPosition ? rt = "Parse error on line " + (J + 1) + `:
|
|
179
179
|
` + R.showPosition() + `
|
|
180
|
-
Expecting ` +
|
|
180
|
+
Expecting ` + it.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : rt = "Parse error on line " + (J + 1) + ": Unexpected " + (M == _t ? "end of input" : "'" + (this.terminals_[M] || M) + "'"), this.parseError(rt, {
|
|
181
181
|
text: R.match,
|
|
182
|
-
token: this.terminals_[
|
|
182
|
+
token: this.terminals_[M] || M,
|
|
183
183
|
line: R.yylineno,
|
|
184
|
-
loc:
|
|
185
|
-
expected:
|
|
184
|
+
loc: at,
|
|
185
|
+
expected: it
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
|
-
if (
|
|
189
|
-
throw new Error("Parse Error: multiple actions possible at state: " +
|
|
190
|
-
switch (
|
|
188
|
+
if (B[0] instanceof Array && B.length > 1)
|
|
189
|
+
throw new Error("Parse Error: multiple actions possible at state: " + H + ", token: " + M);
|
|
190
|
+
switch (B[0]) {
|
|
191
191
|
case 1:
|
|
192
|
-
|
|
192
|
+
u.push(M), A.push(R.yytext), o.push(R.yylloc), u.push(B[1]), M = null, St = R.yyleng, f = R.yytext, J = R.yylineno, at = R.yylloc;
|
|
193
193
|
break;
|
|
194
194
|
case 2:
|
|
195
|
-
if (
|
|
196
|
-
first_line: o[o.length - (
|
|
195
|
+
if (O = this.productions_[B[1]][1], q.$ = A[A.length - O], q._$ = {
|
|
196
|
+
first_line: o[o.length - (O || 1)].first_line,
|
|
197
197
|
last_line: o[o.length - 1].last_line,
|
|
198
|
-
first_column: o[o.length - (
|
|
198
|
+
first_column: o[o.length - (O || 1)].first_column,
|
|
199
199
|
last_column: o[o.length - 1].last_column
|
|
200
|
-
},
|
|
201
|
-
o[o.length - (
|
|
200
|
+
}, ti && (q._$.range = [
|
|
201
|
+
o[o.length - (O || 1)].range[0],
|
|
202
202
|
o[o.length - 1].range[1]
|
|
203
|
-
]),
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
203
|
+
]), ot = this.performAction.apply(q, [
|
|
204
|
+
f,
|
|
205
|
+
St,
|
|
206
|
+
J,
|
|
207
|
+
Y.yy,
|
|
208
|
+
B[1],
|
|
209
|
+
A,
|
|
210
210
|
o
|
|
211
|
-
].concat(
|
|
212
|
-
return
|
|
213
|
-
|
|
211
|
+
].concat(Jt)), typeof ot < "u")
|
|
212
|
+
return ot;
|
|
213
|
+
O && (u = u.slice(0, -1 * O * 2), A = A.slice(0, -1 * O), o = o.slice(0, -1 * O)), u.push(this.productions_[B[1]][0]), A.push(q.$), o.push(q._$), Rt = j[u[u.length - 2]][u[u.length - 1]], u.push(Rt);
|
|
214
214
|
break;
|
|
215
215
|
case 3:
|
|
216
216
|
return true;
|
|
@@ -218,18 +218,18 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : nt =
|
|
|
218
218
|
}
|
|
219
219
|
return true;
|
|
220
220
|
}, "parse")
|
|
221
|
-
},
|
|
222
|
-
var
|
|
221
|
+
}, Ct = /* @__PURE__ */ function() {
|
|
222
|
+
var F = {
|
|
223
223
|
EOF: 1,
|
|
224
|
-
parseError: /* @__PURE__ */ a(function(
|
|
224
|
+
parseError: /* @__PURE__ */ a(function(c, u) {
|
|
225
225
|
if (this.yy.parser)
|
|
226
|
-
this.yy.parser.parseError(
|
|
226
|
+
this.yy.parser.parseError(c, u);
|
|
227
227
|
else
|
|
228
|
-
throw new Error(
|
|
228
|
+
throw new Error(c);
|
|
229
229
|
}, "parseError"),
|
|
230
230
|
// resets the lexer, sets new input
|
|
231
|
-
setInput: /* @__PURE__ */ a(function(r,
|
|
232
|
-
return this.yy =
|
|
231
|
+
setInput: /* @__PURE__ */ a(function(r, c) {
|
|
232
|
+
return this.yy = c || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = false, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
233
233
|
first_line: 1,
|
|
234
234
|
first_column: 0,
|
|
235
235
|
last_line: 1,
|
|
@@ -240,22 +240,22 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : nt =
|
|
|
240
240
|
input: /* @__PURE__ */ a(function() {
|
|
241
241
|
var r = this._input[0];
|
|
242
242
|
this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
|
|
243
|
-
var
|
|
244
|
-
return
|
|
243
|
+
var c = r.match(/(?:\r\n?|\n).*/g);
|
|
244
|
+
return c ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
|
|
245
245
|
}, "input"),
|
|
246
246
|
// unshifts one char (or a string) into the input
|
|
247
247
|
unput: /* @__PURE__ */ a(function(r) {
|
|
248
|
-
var
|
|
249
|
-
this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length -
|
|
250
|
-
var
|
|
251
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1),
|
|
252
|
-
var
|
|
248
|
+
var c = r.length, u = r.split(/(?:\r\n?|\n)/g);
|
|
249
|
+
this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - c), this.offset -= c;
|
|
250
|
+
var x = this.match.split(/(?:\r\n?|\n)/g);
|
|
251
|
+
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);
|
|
252
|
+
var A = this.yylloc.range;
|
|
253
253
|
return this.yylloc = {
|
|
254
254
|
first_line: this.yylloc.first_line,
|
|
255
255
|
last_line: this.yylineno + 1,
|
|
256
256
|
first_column: this.yylloc.first_column,
|
|
257
|
-
last_column:
|
|
258
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
257
|
+
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 - c
|
|
258
|
+
}, this.options.ranges && (this.yylloc.range = [A[0], A[0] + this.yyleng - c]), this.yyleng = this.yytext.length, this;
|
|
259
259
|
}, "unput"),
|
|
260
260
|
// When called from action, caches matched text and appends it on next action
|
|
261
261
|
more: /* @__PURE__ */ a(function() {
|
|
@@ -290,14 +290,14 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : nt =
|
|
|
290
290
|
}, "upcomingInput"),
|
|
291
291
|
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
292
292
|
showPosition: /* @__PURE__ */ a(function() {
|
|
293
|
-
var r = this.pastInput(),
|
|
293
|
+
var r = this.pastInput(), c = new Array(r.length + 1).join("-");
|
|
294
294
|
return r + this.upcomingInput() + `
|
|
295
|
-
` +
|
|
295
|
+
` + c + "^";
|
|
296
296
|
}, "showPosition"),
|
|
297
297
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
298
|
-
test_match: /* @__PURE__ */ a(function(r,
|
|
299
|
-
var
|
|
300
|
-
if (this.options.backtrack_lexer && (
|
|
298
|
+
test_match: /* @__PURE__ */ a(function(r, c) {
|
|
299
|
+
var u, x, A;
|
|
300
|
+
if (this.options.backtrack_lexer && (A = {
|
|
301
301
|
yylineno: this.yylineno,
|
|
302
302
|
yylloc: {
|
|
303
303
|
first_line: this.yylloc.first_line,
|
|
@@ -316,16 +316,16 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : nt =
|
|
|
316
316
|
yy: this.yy,
|
|
317
317
|
conditionStack: this.conditionStack.slice(0),
|
|
318
318
|
done: this.done
|
|
319
|
-
}, this.options.ranges && (
|
|
319
|
+
}, this.options.ranges && (A.yylloc.range = this.yylloc.range.slice(0))), x = r[0].match(/(?:\r\n?|\n).*/g), x && (this.yylineno += x.length), this.yylloc = {
|
|
320
320
|
first_line: this.yylloc.last_line,
|
|
321
321
|
last_line: this.yylineno + 1,
|
|
322
322
|
first_column: this.yylloc.last_column,
|
|
323
|
-
last_column:
|
|
324
|
-
}, 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 = false, this._backtrack = false, this._input = this._input.slice(r[0].length), this.matched += r[0],
|
|
325
|
-
return
|
|
323
|
+
last_column: x ? x[x.length - 1].length - x[x.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
|
|
324
|
+
}, 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 = false, this._backtrack = false, this._input = this._input.slice(r[0].length), this.matched += r[0], u = this.performAction.call(this, this.yy, this, c, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = false), u)
|
|
325
|
+
return u;
|
|
326
326
|
if (this._backtrack) {
|
|
327
|
-
for (var o in
|
|
328
|
-
this[o] =
|
|
327
|
+
for (var o in A)
|
|
328
|
+
this[o] = A[o];
|
|
329
329
|
return false;
|
|
330
330
|
}
|
|
331
331
|
return false;
|
|
@@ -335,22 +335,22 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : nt =
|
|
|
335
335
|
if (this.done)
|
|
336
336
|
return this.EOF;
|
|
337
337
|
this._input || (this.done = true);
|
|
338
|
-
var r,
|
|
338
|
+
var r, c, u, x;
|
|
339
339
|
this._more || (this.yytext = "", this.match = "");
|
|
340
|
-
for (var
|
|
341
|
-
if (
|
|
342
|
-
if (
|
|
343
|
-
if (r = this.test_match(
|
|
340
|
+
for (var A = this._currentRules(), o = 0; o < A.length; o++)
|
|
341
|
+
if (u = this._input.match(this.rules[A[o]]), u && (!c || u[0].length > c[0].length)) {
|
|
342
|
+
if (c = u, x = o, this.options.backtrack_lexer) {
|
|
343
|
+
if (r = this.test_match(u, A[o]), r !== false)
|
|
344
344
|
return r;
|
|
345
345
|
if (this._backtrack) {
|
|
346
|
-
|
|
346
|
+
c = false;
|
|
347
347
|
continue;
|
|
348
348
|
} else
|
|
349
349
|
return false;
|
|
350
350
|
} else if (!this.options.flex)
|
|
351
351
|
break;
|
|
352
352
|
}
|
|
353
|
-
return
|
|
353
|
+
return c ? (r = this.test_match(c, A[x]), r !== false ? r : false) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
354
354
|
` + this.showPosition(), {
|
|
355
355
|
text: "",
|
|
356
356
|
token: null,
|
|
@@ -359,37 +359,37 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : nt =
|
|
|
359
359
|
}, "next"),
|
|
360
360
|
// return next match that has a token
|
|
361
361
|
lex: /* @__PURE__ */ a(function() {
|
|
362
|
-
var
|
|
363
|
-
return
|
|
362
|
+
var c = this.next();
|
|
363
|
+
return c || this.lex();
|
|
364
364
|
}, "lex"),
|
|
365
365
|
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
366
|
-
begin: /* @__PURE__ */ a(function(
|
|
367
|
-
this.conditionStack.push(
|
|
366
|
+
begin: /* @__PURE__ */ a(function(c) {
|
|
367
|
+
this.conditionStack.push(c);
|
|
368
368
|
}, "begin"),
|
|
369
369
|
// pop the previously active lexer condition state off the condition stack
|
|
370
370
|
popState: /* @__PURE__ */ a(function() {
|
|
371
|
-
var
|
|
372
|
-
return
|
|
371
|
+
var c = this.conditionStack.length - 1;
|
|
372
|
+
return c > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
373
373
|
}, "popState"),
|
|
374
374
|
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
375
375
|
_currentRules: /* @__PURE__ */ a(function() {
|
|
376
376
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
377
377
|
}, "_currentRules"),
|
|
378
378
|
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
379
|
-
topState: /* @__PURE__ */ a(function(
|
|
380
|
-
return
|
|
379
|
+
topState: /* @__PURE__ */ a(function(c) {
|
|
380
|
+
return c = this.conditionStack.length - 1 - Math.abs(c || 0), c >= 0 ? this.conditionStack[c] : "INITIAL";
|
|
381
381
|
}, "topState"),
|
|
382
382
|
// alias for begin(condition)
|
|
383
|
-
pushState: /* @__PURE__ */ a(function(
|
|
384
|
-
this.begin(
|
|
383
|
+
pushState: /* @__PURE__ */ a(function(c) {
|
|
384
|
+
this.begin(c);
|
|
385
385
|
}, "pushState"),
|
|
386
386
|
// return the number of states currently on the stack
|
|
387
387
|
stateStackSize: /* @__PURE__ */ a(function() {
|
|
388
388
|
return this.conditionStack.length;
|
|
389
389
|
}, "stateStackSize"),
|
|
390
390
|
options: { "case-insensitive": true },
|
|
391
|
-
performAction: /* @__PURE__ */ a(function(
|
|
392
|
-
switch (
|
|
391
|
+
performAction: /* @__PURE__ */ a(function(c, u, x, A) {
|
|
392
|
+
switch (x) {
|
|
393
393
|
case 0:
|
|
394
394
|
break;
|
|
395
395
|
case 1:
|
|
@@ -492,36 +492,36 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : nt =
|
|
|
492
492
|
rules: [/^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:(\r?\n))/i, /^(?:(\r?\n))/i, /^(?:[\n\r]+)/i, /^(?:%%[^\n]*)/i, /^(?:title\b)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:\{)/i, /^(?:[^\}]*)/i, /^(?:xychart-beta\b)/i, /^(?:(?:vertical|horizontal))/i, /^(?:x-axis\b)/i, /^(?:y-axis\b)/i, /^(?:\[)/i, /^(?:-->)/i, /^(?:line\b)/i, /^(?:bar\b)/i, /^(?:\[)/i, /^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i, /^(?:\])/i, /^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:\[)/i, /^(?:\])/i, /^(?:[A-Za-z]+)/i, /^(?::)/i, /^(?:\+)/i, /^(?:,)/i, /^(?:=)/i, /^(?:\*)/i, /^(?:#)/i, /^(?:[\_])/i, /^(?:\.)/i, /^(?:&)/i, /^(?:-)/i, /^(?:[0-9]+)/i, /^(?:\s+)/i, /^(?:;)/i, /^(?:$)/i],
|
|
493
493
|
conditions: { data_inner: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 20, 21, 23, 24, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: true }, data: { rules: [0, 1, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 20, 21, 22, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: true }, axis_band_data: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 20, 21, 24, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: true }, axis_data: { rules: [0, 1, 2, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 19, 20, 21, 23, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: true }, acc_descr_multiline: { rules: [12, 13], inclusive: false }, acc_descr: { rules: [10], inclusive: false }, acc_title: { rules: [8], inclusive: false }, title: { rules: [], inclusive: false }, md_string: { rules: [], inclusive: false }, string: { rules: [27, 28], inclusive: false }, INITIAL: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 20, 21, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: true } }
|
|
494
494
|
};
|
|
495
|
-
return
|
|
495
|
+
return F;
|
|
496
496
|
}();
|
|
497
|
-
|
|
498
|
-
function
|
|
497
|
+
$.lexer = Ct;
|
|
498
|
+
function N() {
|
|
499
499
|
this.yy = {};
|
|
500
500
|
}
|
|
501
|
-
return a(
|
|
501
|
+
return a(N, "Parser"), N.prototype = $, $.Parser = N, new N();
|
|
502
502
|
}();
|
|
503
|
-
|
|
504
|
-
var
|
|
505
|
-
function
|
|
503
|
+
lt.parser = lt;
|
|
504
|
+
var mi = lt;
|
|
505
|
+
function ct(t) {
|
|
506
506
|
return t.type === "bar";
|
|
507
507
|
}
|
|
508
|
-
a(
|
|
509
|
-
function
|
|
508
|
+
a(ct, "isBarPlot");
|
|
509
|
+
function dt(t) {
|
|
510
510
|
return t.type === "band";
|
|
511
511
|
}
|
|
512
|
-
a(
|
|
513
|
-
function
|
|
512
|
+
a(dt, "isBandAxisData");
|
|
513
|
+
function G(t) {
|
|
514
514
|
return t.type === "linear";
|
|
515
515
|
}
|
|
516
|
-
a(
|
|
517
|
-
var
|
|
516
|
+
a(G, "isLinearAxisData");
|
|
517
|
+
var Mt = (_a = class {
|
|
518
518
|
constructor(t) {
|
|
519
519
|
this.parentGroup = t;
|
|
520
520
|
}
|
|
521
521
|
getMaxDimension(t, i) {
|
|
522
522
|
if (!this.parentGroup)
|
|
523
523
|
return {
|
|
524
|
-
width: t.reduce((n,
|
|
524
|
+
width: t.reduce((n, d) => Math.max(d.length, n), 0) * i,
|
|
525
525
|
height: i
|
|
526
526
|
};
|
|
527
527
|
const e = {
|
|
@@ -529,12 +529,12 @@ var It = (_a = class {
|
|
|
529
529
|
height: 0
|
|
530
530
|
}, s = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", i);
|
|
531
531
|
for (const n of t) {
|
|
532
|
-
const
|
|
533
|
-
e.width = Math.max(e.width,
|
|
532
|
+
const d = xi(s, 1, n), g = d ? d.width : n.length * i, m = d ? d.height : i;
|
|
533
|
+
e.width = Math.max(e.width, g), e.height = Math.max(e.height, m);
|
|
534
534
|
}
|
|
535
535
|
return s.remove(), e;
|
|
536
536
|
}
|
|
537
|
-
}, a(_a, "TextDimensionCalculatorWithFont"), _a),
|
|
537
|
+
}, a(_a, "TextDimensionCalculatorWithFont"), _a), vt = 0.7, Pt = 0.2, Vt = (_b = class {
|
|
538
538
|
constructor(t, i, e, s) {
|
|
539
539
|
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 = false, this.showLabel = false, this.showTick = false, this.showAxisLine = false, 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";
|
|
540
540
|
}
|
|
@@ -561,12 +561,12 @@ var It = (_a = class {
|
|
|
561
561
|
);
|
|
562
562
|
}
|
|
563
563
|
recalculateOuterPaddingToDrawBar() {
|
|
564
|
-
|
|
564
|
+
vt * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(vt * this.getTickDistance() / 2)), this.recalculateScale();
|
|
565
565
|
}
|
|
566
566
|
calculateSpaceIfDrawnHorizontally(t) {
|
|
567
567
|
let i = t.height;
|
|
568
568
|
if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = true), this.axisConfig.showLabel) {
|
|
569
|
-
const e = this.getLabelDimension(), s =
|
|
569
|
+
const e = this.getLabelDimension(), s = Pt * t.width;
|
|
570
570
|
this.outerPadding = Math.min(e.width / 2, s);
|
|
571
571
|
const n = e.height + this.axisConfig.labelPadding * 2;
|
|
572
572
|
this.labelTextHeight = e.height, n <= i && (i -= n, this.showLabel = true);
|
|
@@ -583,7 +583,7 @@ var It = (_a = class {
|
|
|
583
583
|
calculateSpaceIfDrawnVertical(t) {
|
|
584
584
|
let i = t.width;
|
|
585
585
|
if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = true), this.axisConfig.showLabel) {
|
|
586
|
-
const e = this.getLabelDimension(), s =
|
|
586
|
+
const e = this.getLabelDimension(), s = Pt * t.height;
|
|
587
587
|
this.outerPadding = Math.min(e.height / 2, s);
|
|
588
588
|
const n = e.width + this.axisConfig.labelPadding * 2;
|
|
589
589
|
n <= i && (i -= n, this.showLabel = true);
|
|
@@ -787,15 +787,15 @@ var It = (_a = class {
|
|
|
787
787
|
throw Error("Drawing of right axis is not implemented");
|
|
788
788
|
return this.axisPosition === "bottom" ? this.getDrawableElementsForBottomAxis() : this.axisPosition === "top" ? this.getDrawableElementsForTopAxis() : [];
|
|
789
789
|
}
|
|
790
|
-
}, a(_b, "BaseAxis"), _b),
|
|
790
|
+
}, a(_b, "BaseAxis"), _b), yi = (_c = class extends Vt {
|
|
791
791
|
constructor(t, i, e, s, n) {
|
|
792
|
-
super(t, s, n, i), this.categories = e, this.scale =
|
|
792
|
+
super(t, s, n, i), this.categories = e, this.scale = ht().domain(this.categories).range(this.getRange());
|
|
793
793
|
}
|
|
794
794
|
setRange(t) {
|
|
795
795
|
super.setRange(t);
|
|
796
796
|
}
|
|
797
797
|
recalculateScale() {
|
|
798
|
-
this.scale =
|
|
798
|
+
this.scale = ht().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5), Et.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
|
|
799
799
|
}
|
|
800
800
|
getTickValues() {
|
|
801
801
|
return this.categories;
|
|
@@ -803,30 +803,30 @@ var It = (_a = class {
|
|
|
803
803
|
getScaleValue(t) {
|
|
804
804
|
return this.scale(t) ?? this.getRange()[0];
|
|
805
805
|
}
|
|
806
|
-
}, a(_c, "BandAxis"), _c),
|
|
806
|
+
}, a(_c, "BandAxis"), _c), bi = (_d = class extends Vt {
|
|
807
807
|
constructor(t, i, e, s, n) {
|
|
808
|
-
super(t, s, n, i), this.domain = e, this.scale =
|
|
808
|
+
super(t, s, n, i), this.domain = e, this.scale = Tt().domain(this.domain).range(this.getRange());
|
|
809
809
|
}
|
|
810
810
|
getTickValues() {
|
|
811
811
|
return this.scale.ticks();
|
|
812
812
|
}
|
|
813
813
|
recalculateScale() {
|
|
814
814
|
const t = [...this.domain];
|
|
815
|
-
this.axisPosition === "left" && t.reverse(), this.scale =
|
|
815
|
+
this.axisPosition === "left" && t.reverse(), this.scale = Tt().domain(t).range(this.getRange());
|
|
816
816
|
}
|
|
817
817
|
getScaleValue(t) {
|
|
818
818
|
return this.scale(t);
|
|
819
819
|
}
|
|
820
820
|
}, a(_d, "LinearAxis"), _d);
|
|
821
|
-
function
|
|
822
|
-
const n = new
|
|
823
|
-
return
|
|
821
|
+
function ut(t, i, e, s) {
|
|
822
|
+
const n = new Mt(s);
|
|
823
|
+
return dt(t) ? new yi(
|
|
824
824
|
i,
|
|
825
825
|
e,
|
|
826
826
|
t.categories,
|
|
827
827
|
t.title,
|
|
828
828
|
n
|
|
829
|
-
) : new
|
|
829
|
+
) : new bi(
|
|
830
830
|
i,
|
|
831
831
|
e,
|
|
832
832
|
[t.min, t.max],
|
|
@@ -834,8 +834,8 @@ function ht(t, i, e, s) {
|
|
|
834
834
|
n
|
|
835
835
|
);
|
|
836
836
|
}
|
|
837
|
-
a(
|
|
838
|
-
var
|
|
837
|
+
a(ut, "getAxis");
|
|
838
|
+
var Ai = (_e = class {
|
|
839
839
|
constructor(t, i, e, s) {
|
|
840
840
|
this.textDimensionCalculator = t, this.chartConfig = i, this.chartData = e, this.chartThemeConfig = s, this.boundingRect = {
|
|
841
841
|
x: 0,
|
|
@@ -877,12 +877,12 @@ var bi = (_e = class {
|
|
|
877
877
|
}), t;
|
|
878
878
|
}
|
|
879
879
|
}, a(_e, "ChartTitle"), _e);
|
|
880
|
-
function
|
|
881
|
-
const n = new
|
|
882
|
-
return new
|
|
880
|
+
function Bt(t, i, e, s) {
|
|
881
|
+
const n = new Mt(s);
|
|
882
|
+
return new Ai(n, t, i, e);
|
|
883
883
|
}
|
|
884
|
-
a(
|
|
885
|
-
var
|
|
884
|
+
a(Bt, "getChartTitleComponent");
|
|
885
|
+
var wi = (_f = class {
|
|
886
886
|
constructor(t, i, e, s, n) {
|
|
887
887
|
this.plotData = t, this.xAxis = i, this.yAxis = e, this.orientation = s, this.plotIndex = n;
|
|
888
888
|
}
|
|
@@ -892,7 +892,7 @@ var Ai = (_f = class {
|
|
|
892
892
|
this.yAxis.getScaleValue(e[1])
|
|
893
893
|
]);
|
|
894
894
|
let i;
|
|
895
|
-
return this.orientation === "horizontal" ? i =
|
|
895
|
+
return this.orientation === "horizontal" ? i = Dt().y((e) => e[0]).x((e) => e[1])(t) : i = Dt().x((e) => e[0]).y((e) => e[1])(t), i ? [
|
|
896
896
|
{
|
|
897
897
|
groupTexts: ["plot", `line-plot-${this.plotIndex}`],
|
|
898
898
|
type: "path",
|
|
@@ -906,9 +906,9 @@ var Ai = (_f = class {
|
|
|
906
906
|
}
|
|
907
907
|
] : [];
|
|
908
908
|
}
|
|
909
|
-
}, a(_f, "LinePlot"), _f),
|
|
910
|
-
constructor(t, i, e, s, n,
|
|
911
|
-
this.barData = t, this.boundingRect = i, this.xAxis = e, this.yAxis = s, this.orientation = n, this.plotIndex =
|
|
909
|
+
}, a(_f, "LinePlot"), _f), Ci = (_g = class {
|
|
910
|
+
constructor(t, i, e, s, n, d) {
|
|
911
|
+
this.barData = t, this.boundingRect = i, this.xAxis = e, this.yAxis = s, this.orientation = n, this.plotIndex = d;
|
|
912
912
|
}
|
|
913
913
|
getDrawableElement() {
|
|
914
914
|
const t = this.barData.data.map((n) => [
|
|
@@ -945,7 +945,7 @@ var Ai = (_f = class {
|
|
|
945
945
|
}
|
|
946
946
|
];
|
|
947
947
|
}
|
|
948
|
-
}, a(_g, "BarPlot"), _g),
|
|
948
|
+
}, a(_g, "BarPlot"), _g), Si = (_h = class {
|
|
949
949
|
constructor(t, i, e) {
|
|
950
950
|
this.chartConfig = t, this.chartData = i, this.chartThemeConfig = e, this.boundingRect = {
|
|
951
951
|
x: 0,
|
|
@@ -974,7 +974,7 @@ var Ai = (_f = class {
|
|
|
974
974
|
switch (e.type) {
|
|
975
975
|
case "line":
|
|
976
976
|
{
|
|
977
|
-
const s = new
|
|
977
|
+
const s = new wi(
|
|
978
978
|
e,
|
|
979
979
|
this.xAxis,
|
|
980
980
|
this.yAxis,
|
|
@@ -986,7 +986,7 @@ var Ai = (_f = class {
|
|
|
986
986
|
break;
|
|
987
987
|
case "bar":
|
|
988
988
|
{
|
|
989
|
-
const s = new
|
|
989
|
+
const s = new Ci(
|
|
990
990
|
e,
|
|
991
991
|
this.boundingRect,
|
|
992
992
|
this.xAxis,
|
|
@@ -1001,16 +1001,16 @@ var Ai = (_f = class {
|
|
|
1001
1001
|
return t;
|
|
1002
1002
|
}
|
|
1003
1003
|
}, a(_h, "BasePlot"), _h);
|
|
1004
|
-
function
|
|
1005
|
-
return new
|
|
1004
|
+
function Wt(t, i, e) {
|
|
1005
|
+
return new Si(t, i, e);
|
|
1006
1006
|
}
|
|
1007
|
-
a(
|
|
1008
|
-
var
|
|
1007
|
+
a(Wt, "getPlotComponent");
|
|
1008
|
+
var _i = (_i2 = class {
|
|
1009
1009
|
constructor(t, i, e, s) {
|
|
1010
1010
|
this.chartConfig = t, this.chartData = i, this.componentStore = {
|
|
1011
|
-
title:
|
|
1012
|
-
plot:
|
|
1013
|
-
xAxis:
|
|
1011
|
+
title: Bt(t, i, e, s),
|
|
1012
|
+
plot: Wt(t, i, e),
|
|
1013
|
+
xAxis: ut(
|
|
1014
1014
|
i.xAxis,
|
|
1015
1015
|
t.xAxis,
|
|
1016
1016
|
{
|
|
@@ -1021,7 +1021,7 @@ var Si = (_i2 = class {
|
|
|
1021
1021
|
},
|
|
1022
1022
|
s
|
|
1023
1023
|
),
|
|
1024
|
-
yAxis:
|
|
1024
|
+
yAxis: ut(
|
|
1025
1025
|
i.yAxis,
|
|
1026
1026
|
t.yAxis,
|
|
1027
1027
|
{
|
|
@@ -1035,46 +1035,46 @@ var Si = (_i2 = class {
|
|
|
1035
1035
|
};
|
|
1036
1036
|
}
|
|
1037
1037
|
calculateVerticalSpace() {
|
|
1038
|
-
let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, n = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100),
|
|
1038
|
+
let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, n = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), d = Math.floor(
|
|
1039
1039
|
i * this.chartConfig.plotReservedSpacePercent / 100
|
|
1040
|
-
),
|
|
1040
|
+
), g = this.componentStore.plot.calculateSpace({
|
|
1041
1041
|
width: n,
|
|
1042
|
-
height:
|
|
1042
|
+
height: d
|
|
1043
1043
|
});
|
|
1044
|
-
t -=
|
|
1044
|
+
t -= g.width, i -= g.height, g = this.componentStore.title.calculateSpace({
|
|
1045
1045
|
width: this.chartConfig.width,
|
|
1046
1046
|
height: i
|
|
1047
|
-
}), s =
|
|
1047
|
+
}), s = g.height, i -= g.height, this.componentStore.xAxis.setAxisPosition("bottom"), g = this.componentStore.xAxis.calculateSpace({
|
|
1048
1048
|
width: t,
|
|
1049
1049
|
height: i
|
|
1050
|
-
}), i -=
|
|
1050
|
+
}), i -= g.height, this.componentStore.yAxis.setAxisPosition("left"), g = this.componentStore.yAxis.calculateSpace({
|
|
1051
1051
|
width: t,
|
|
1052
1052
|
height: i
|
|
1053
|
-
}), e =
|
|
1053
|
+
}), e = g.width, t -= g.width, t > 0 && (n += t, t = 0), i > 0 && (d += i, i = 0), this.componentStore.plot.calculateSpace({
|
|
1054
1054
|
width: n,
|
|
1055
|
-
height:
|
|
1056
|
-
}), this.componentStore.plot.setBoundingBoxXY({ x: e, y: s }), this.componentStore.xAxis.setRange([e, e + n]), this.componentStore.xAxis.setBoundingBoxXY({ x: e, y: s +
|
|
1055
|
+
height: d
|
|
1056
|
+
}), this.componentStore.plot.setBoundingBoxXY({ x: e, y: s }), this.componentStore.xAxis.setRange([e, e + n]), this.componentStore.xAxis.setBoundingBoxXY({ x: e, y: s + d }), this.componentStore.yAxis.setRange([s, s + d]), this.componentStore.yAxis.setBoundingBoxXY({ x: 0, y: s }), this.chartData.plots.some((m) => ct(m)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
|
|
1057
1057
|
}
|
|
1058
1058
|
calculateHorizontalSpace() {
|
|
1059
|
-
let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, n = 0,
|
|
1059
|
+
let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, n = 0, d = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), g = Math.floor(
|
|
1060
1060
|
i * this.chartConfig.plotReservedSpacePercent / 100
|
|
1061
|
-
),
|
|
1062
|
-
width:
|
|
1063
|
-
height:
|
|
1061
|
+
), m = this.componentStore.plot.calculateSpace({
|
|
1062
|
+
width: d,
|
|
1063
|
+
height: g
|
|
1064
1064
|
});
|
|
1065
|
-
t -=
|
|
1065
|
+
t -= m.width, i -= m.height, m = this.componentStore.title.calculateSpace({
|
|
1066
1066
|
width: this.chartConfig.width,
|
|
1067
1067
|
height: i
|
|
1068
|
-
}), e =
|
|
1068
|
+
}), e = m.height, i -= m.height, this.componentStore.xAxis.setAxisPosition("left"), m = this.componentStore.xAxis.calculateSpace({
|
|
1069
1069
|
width: t,
|
|
1070
1070
|
height: i
|
|
1071
|
-
}), t -=
|
|
1071
|
+
}), t -= m.width, s = m.width, this.componentStore.yAxis.setAxisPosition("top"), m = this.componentStore.yAxis.calculateSpace({
|
|
1072
1072
|
width: t,
|
|
1073
1073
|
height: i
|
|
1074
|
-
}), i -=
|
|
1075
|
-
width:
|
|
1076
|
-
height:
|
|
1077
|
-
}), this.componentStore.plot.setBoundingBoxXY({ x: s, y: n }), this.componentStore.yAxis.setRange([s, s +
|
|
1074
|
+
}), i -= m.height, n = e + m.height, t > 0 && (d += t, t = 0), i > 0 && (g += i, i = 0), this.componentStore.plot.calculateSpace({
|
|
1075
|
+
width: d,
|
|
1076
|
+
height: g
|
|
1077
|
+
}), this.componentStore.plot.setBoundingBoxXY({ x: s, y: n }), this.componentStore.yAxis.setRange([s, s + d]), this.componentStore.yAxis.setBoundingBoxXY({ x: s, y: e }), this.componentStore.xAxis.setRange([n, n + g]), this.componentStore.xAxis.setBoundingBoxXY({ x: 0, y: n }), this.chartData.plots.some((S) => ct(S)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
|
|
1078
1078
|
}
|
|
1079
1079
|
calculateSpace() {
|
|
1080
1080
|
this.chartConfig.chartOrientation === "horizontal" ? this.calculateHorizontalSpace() : this.calculateVerticalSpace();
|
|
@@ -1087,25 +1087,25 @@ var Si = (_i2 = class {
|
|
|
1087
1087
|
t.push(...i.getDrawableElements());
|
|
1088
1088
|
return t;
|
|
1089
1089
|
}
|
|
1090
|
-
}, a(_i2, "Orchestrator"), _i2),
|
|
1090
|
+
}, a(_i2, "Orchestrator"), _i2), ki = (_j = class {
|
|
1091
1091
|
static build(t, i, e, s) {
|
|
1092
|
-
return new
|
|
1092
|
+
return new _i(t, i, e, s).getDrawableElement();
|
|
1093
1093
|
}
|
|
1094
|
-
}, a(_j, "XYChartBuilder"), _j),
|
|
1095
|
-
function
|
|
1096
|
-
const t =
|
|
1097
|
-
return
|
|
1094
|
+
}, a(_j, "XYChartBuilder"), _j), Q = 0, zt, K = mt(), Z = pt(), b = yt(), gt = Z.plotColorPalette.split(",").map((t) => t.trim()), et = false, ft = false;
|
|
1095
|
+
function pt() {
|
|
1096
|
+
const t = ui(), i = xt();
|
|
1097
|
+
return It(t.xyChart, i.themeVariables.xyChart);
|
|
1098
1098
|
}
|
|
1099
|
-
a(
|
|
1100
|
-
function
|
|
1101
|
-
const t =
|
|
1102
|
-
return
|
|
1103
|
-
|
|
1099
|
+
a(pt, "getChartDefaultThemeConfig");
|
|
1100
|
+
function mt() {
|
|
1101
|
+
const t = xt();
|
|
1102
|
+
return It(
|
|
1103
|
+
ci.xyChart,
|
|
1104
1104
|
t.xyChart
|
|
1105
1105
|
);
|
|
1106
1106
|
}
|
|
1107
|
-
a(
|
|
1108
|
-
function
|
|
1107
|
+
a(mt, "getChartDefaultConfig");
|
|
1108
|
+
function yt() {
|
|
1109
1109
|
return {
|
|
1110
1110
|
yAxis: {
|
|
1111
1111
|
type: "linear",
|
|
@@ -1122,180 +1122,214 @@ function pt() {
|
|
|
1122
1122
|
plots: []
|
|
1123
1123
|
};
|
|
1124
1124
|
}
|
|
1125
|
-
a(
|
|
1126
|
-
function
|
|
1127
|
-
const i =
|
|
1128
|
-
return
|
|
1129
|
-
}
|
|
1130
|
-
a(Z, "textSanitizer");
|
|
1131
|
-
function Ot(t) {
|
|
1132
|
-
Wt = t;
|
|
1133
|
-
}
|
|
1134
|
-
a(Ot, "setTmpSVGG");
|
|
1135
|
-
function zt(t) {
|
|
1136
|
-
t === "horizontal" ? H.chartOrientation = "horizontal" : H.chartOrientation = "vertical";
|
|
1125
|
+
a(yt, "getChartDefaultData");
|
|
1126
|
+
function st(t) {
|
|
1127
|
+
const i = xt();
|
|
1128
|
+
return gi(t.trim(), i);
|
|
1137
1129
|
}
|
|
1138
|
-
a(
|
|
1130
|
+
a(st, "textSanitizer");
|
|
1139
1131
|
function Ft(t) {
|
|
1140
|
-
|
|
1132
|
+
zt = t;
|
|
1141
1133
|
}
|
|
1142
|
-
a(Ft, "
|
|
1143
|
-
function
|
|
1144
|
-
|
|
1134
|
+
a(Ft, "setTmpSVGG");
|
|
1135
|
+
function Ot(t) {
|
|
1136
|
+
t === "horizontal" ? K.chartOrientation = "horizontal" : K.chartOrientation = "vertical";
|
|
1145
1137
|
}
|
|
1146
|
-
a(
|
|
1138
|
+
a(Ot, "setOrientation");
|
|
1147
1139
|
function Xt(t) {
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
},
|
|
1140
|
+
b.xAxis.title = st(t.text);
|
|
1141
|
+
}
|
|
1142
|
+
a(Xt, "setXAxisTitle");
|
|
1143
|
+
function bt(t, i) {
|
|
1144
|
+
b.xAxis = { type: "linear", title: b.xAxis.title, min: t, max: i }, et = true;
|
|
1153
1145
|
}
|
|
1154
|
-
a(
|
|
1146
|
+
a(bt, "setXAxisRangeData");
|
|
1155
1147
|
function Nt(t) {
|
|
1156
|
-
|
|
1148
|
+
b.xAxis = {
|
|
1149
|
+
type: "band",
|
|
1150
|
+
title: b.xAxis.title,
|
|
1151
|
+
categories: t.map((i) => st(i.text))
|
|
1152
|
+
}, et = true;
|
|
1153
|
+
}
|
|
1154
|
+
a(Nt, "setXAxisBand");
|
|
1155
|
+
function Yt(t) {
|
|
1156
|
+
b.yAxis.title = st(t.text);
|
|
1157
1157
|
}
|
|
1158
|
-
a(
|
|
1159
|
-
function
|
|
1160
|
-
|
|
1158
|
+
a(Yt, "setYAxisTitle");
|
|
1159
|
+
function Ht(t, i) {
|
|
1160
|
+
b.yAxis = { type: "linear", title: b.yAxis.title, min: t, max: i }, ft = true;
|
|
1161
1161
|
}
|
|
1162
|
-
a(
|
|
1163
|
-
function
|
|
1164
|
-
const i = Math.min(...t), e = Math.max(...t), s =
|
|
1165
|
-
|
|
1162
|
+
a(Ht, "setYAxisRangeData");
|
|
1163
|
+
function Ut(t) {
|
|
1164
|
+
const i = Math.min(...t), e = Math.max(...t), s = G(b.yAxis) ? b.yAxis.min : 1 / 0, n = G(b.yAxis) ? b.yAxis.max : -1 / 0;
|
|
1165
|
+
b.yAxis = {
|
|
1166
1166
|
type: "linear",
|
|
1167
|
-
title:
|
|
1167
|
+
title: b.yAxis.title,
|
|
1168
1168
|
min: Math.min(s, i),
|
|
1169
1169
|
max: Math.max(n, e)
|
|
1170
1170
|
};
|
|
1171
1171
|
}
|
|
1172
|
-
a(
|
|
1173
|
-
function
|
|
1172
|
+
a(Ut, "setYAxisRangeFromPlotData");
|
|
1173
|
+
function At(t) {
|
|
1174
1174
|
let i = [];
|
|
1175
1175
|
if (t.length === 0)
|
|
1176
1176
|
return i;
|
|
1177
|
-
if (!
|
|
1178
|
-
const e =
|
|
1179
|
-
|
|
1177
|
+
if (!et) {
|
|
1178
|
+
const e = G(b.xAxis) ? b.xAxis.min : 1 / 0, s = G(b.xAxis) ? b.xAxis.max : -1 / 0;
|
|
1179
|
+
bt(Math.min(e, 1), Math.max(s, t.length));
|
|
1180
1180
|
}
|
|
1181
|
-
if (
|
|
1182
|
-
const e =
|
|
1183
|
-
for (let
|
|
1184
|
-
|
|
1185
|
-
i =
|
|
1181
|
+
if (ft || Ut(t), dt(b.xAxis) && (i = b.xAxis.categories.map((e, s) => [e, t[s]])), G(b.xAxis)) {
|
|
1182
|
+
const e = b.xAxis.min, s = b.xAxis.max, n = (s - e) / (t.length - 1), d = [];
|
|
1183
|
+
for (let g = e; g <= s; g += n)
|
|
1184
|
+
d.push(`${g}`);
|
|
1185
|
+
i = d.map((g, m) => [g, t[m]]);
|
|
1186
1186
|
}
|
|
1187
1187
|
return i;
|
|
1188
1188
|
}
|
|
1189
|
-
a(
|
|
1190
|
-
function
|
|
1191
|
-
return
|
|
1189
|
+
a(At, "transformDataWithoutCategory");
|
|
1190
|
+
function wt(t) {
|
|
1191
|
+
return gt[t === 0 ? 0 : t % gt.length];
|
|
1192
1192
|
}
|
|
1193
|
-
a(
|
|
1194
|
-
function
|
|
1195
|
-
const e =
|
|
1196
|
-
|
|
1193
|
+
a(wt, "getPlotColorFromPalette");
|
|
1194
|
+
function $t(t, i) {
|
|
1195
|
+
const e = At(i);
|
|
1196
|
+
b.plots.push({
|
|
1197
1197
|
type: "line",
|
|
1198
|
-
strokeFill:
|
|
1198
|
+
strokeFill: wt(Q),
|
|
1199
1199
|
strokeWidth: 2,
|
|
1200
1200
|
data: e
|
|
1201
|
-
}),
|
|
1201
|
+
}), Q++;
|
|
1202
1202
|
}
|
|
1203
|
-
a(
|
|
1204
|
-
function
|
|
1205
|
-
const e =
|
|
1206
|
-
|
|
1203
|
+
a($t, "setLineData");
|
|
1204
|
+
function qt(t, i) {
|
|
1205
|
+
const e = At(i);
|
|
1206
|
+
b.plots.push({
|
|
1207
1207
|
type: "bar",
|
|
1208
|
-
fill:
|
|
1208
|
+
fill: wt(Q),
|
|
1209
1209
|
data: e
|
|
1210
|
-
}),
|
|
1211
|
-
}
|
|
1212
|
-
a($t, "setBarData");
|
|
1213
|
-
function qt() {
|
|
1214
|
-
if (y.plots.length === 0)
|
|
1215
|
-
throw Error("No Plot to render, please provide a plot with some data");
|
|
1216
|
-
return y.title = Pt(), _i.build(H, y, U, Wt);
|
|
1210
|
+
}), Q++;
|
|
1217
1211
|
}
|
|
1218
|
-
a(qt, "
|
|
1212
|
+
a(qt, "setBarData");
|
|
1219
1213
|
function Gt() {
|
|
1220
|
-
|
|
1214
|
+
if (b.plots.length === 0)
|
|
1215
|
+
throw Error("No Plot to render, please provide a plot with some data");
|
|
1216
|
+
return b.title = Lt(), ki.build(K, b, Z, zt);
|
|
1221
1217
|
}
|
|
1222
|
-
a(Gt, "
|
|
1218
|
+
a(Gt, "getDrawableElem");
|
|
1223
1219
|
function jt() {
|
|
1224
|
-
return
|
|
1220
|
+
return Z;
|
|
1221
|
+
}
|
|
1222
|
+
a(jt, "getChartThemeConfig");
|
|
1223
|
+
function Qt() {
|
|
1224
|
+
return K;
|
|
1225
1225
|
}
|
|
1226
|
-
a(
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
}
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1226
|
+
a(Qt, "getChartConfig");
|
|
1227
|
+
function Kt() {
|
|
1228
|
+
return b;
|
|
1229
|
+
}
|
|
1230
|
+
a(Kt, "getXYChartData");
|
|
1231
|
+
var Ri = /* @__PURE__ */ a(function() {
|
|
1232
|
+
li(), Q = 0, K = mt(), b = yt(), Z = pt(), gt = Z.plotColorPalette.split(",").map((t) => t.trim()), et = false, ft = false;
|
|
1233
|
+
}, "clear"), Ti = {
|
|
1234
|
+
getDrawableElem: Gt,
|
|
1235
|
+
clear: Ri,
|
|
1236
|
+
setAccTitle: oi,
|
|
1237
|
+
getAccTitle: ai,
|
|
1238
|
+
setDiagramTitle: ni,
|
|
1239
|
+
getDiagramTitle: Lt,
|
|
1240
|
+
getAccDescription: si,
|
|
1241
|
+
setAccDescription: ei,
|
|
1242
|
+
setOrientation: Ot,
|
|
1243
|
+
setXAxisTitle: Xt,
|
|
1244
|
+
setXAxisRangeData: bt,
|
|
1245
|
+
setXAxisBand: Nt,
|
|
1246
|
+
setYAxisTitle: Yt,
|
|
1247
|
+
setYAxisRangeData: Ht,
|
|
1248
|
+
setLineData: $t,
|
|
1249
|
+
setBarData: qt,
|
|
1250
|
+
setTmpSVGG: Ft,
|
|
1251
|
+
getChartThemeConfig: jt,
|
|
1252
|
+
getChartConfig: Qt,
|
|
1253
|
+
getXYChartData: Kt
|
|
1254
|
+
}, Di = /* @__PURE__ */ a((t, i, e, s) => {
|
|
1255
|
+
const n = s.db, d = n.getChartThemeConfig(), g = n.getChartConfig(), m = n.getXYChartData().plots[0].data.map((p) => p[1]);
|
|
1256
|
+
function S(p) {
|
|
1257
|
+
return p === "top" ? "text-before-edge" : "middle";
|
|
1253
1258
|
}
|
|
1254
|
-
a(
|
|
1255
|
-
function
|
|
1256
|
-
return
|
|
1259
|
+
a(S, "getDominantBaseLine");
|
|
1260
|
+
function D(p) {
|
|
1261
|
+
return p === "left" ? "start" : p === "right" ? "end" : "middle";
|
|
1257
1262
|
}
|
|
1258
|
-
a(
|
|
1259
|
-
function
|
|
1260
|
-
return `translate(${
|
|
1263
|
+
a(D, "getTextAnchor");
|
|
1264
|
+
function v(p) {
|
|
1265
|
+
return `translate(${p.x}, ${p.y}) rotate(${p.rotation || 0})`;
|
|
1261
1266
|
}
|
|
1262
|
-
a(
|
|
1267
|
+
a(v, "getTextTransformation"), Et.debug(`Rendering xychart chart
|
|
1263
1268
|
` + t);
|
|
1264
|
-
const
|
|
1265
|
-
|
|
1266
|
-
const
|
|
1267
|
-
function
|
|
1268
|
-
let _ =
|
|
1269
|
-
for (const [
|
|
1270
|
-
let
|
|
1271
|
-
|
|
1269
|
+
const w = ri(i), y = w.append("g").attr("class", "main"), E = y.append("rect").attr("width", g.width).attr("height", g.height).attr("class", "background");
|
|
1270
|
+
hi(w, g.height, g.width, true), w.attr("viewBox", `0 0 ${g.width} ${g.height}`), E.attr("fill", d.backgroundColor), n.setTmpSVGG(w.append("g").attr("class", "mermaid-tmp-group"));
|
|
1271
|
+
const T = n.getDrawableElem(), P = {};
|
|
1272
|
+
function I(p) {
|
|
1273
|
+
let _ = y, l = "";
|
|
1274
|
+
for (const [W] of p.entries()) {
|
|
1275
|
+
let z = y;
|
|
1276
|
+
W > 0 && P[l] && (z = P[l]), l += p[W], _ = P[l], _ || (_ = P[l] = z.append("g").attr("class", p[W]));
|
|
1272
1277
|
}
|
|
1273
1278
|
return _;
|
|
1274
1279
|
}
|
|
1275
|
-
a(
|
|
1276
|
-
for (const
|
|
1277
|
-
if (
|
|
1280
|
+
a(I, "getGroup");
|
|
1281
|
+
for (const p of T) {
|
|
1282
|
+
if (p.data.length === 0)
|
|
1278
1283
|
continue;
|
|
1279
|
-
const _ =
|
|
1280
|
-
switch (
|
|
1284
|
+
const _ = I(p.groupTexts);
|
|
1285
|
+
switch (p.type) {
|
|
1281
1286
|
case "rect":
|
|
1282
|
-
_.selectAll("rect").data(
|
|
1287
|
+
if (_.selectAll("rect").data(p.data).enter().append("rect").attr("x", (l) => l.x).attr("y", (l) => l.y).attr("width", (l) => l.width).attr("height", (l) => l.height).attr("fill", (l) => l.fill).attr("stroke", (l) => l.strokeFill).attr("stroke-width", (l) => l.strokeWidth), g.showDataLabel)
|
|
1288
|
+
if (g.chartOrientation === "horizontal") {
|
|
1289
|
+
let l = function(h, L) {
|
|
1290
|
+
const { data: C, label: k } = h;
|
|
1291
|
+
return L * k.length * W <= C.width - 10;
|
|
1292
|
+
};
|
|
1293
|
+
a(l, "fitsHorizontally");
|
|
1294
|
+
const W = 0.7, z = p.data.map((h, L) => ({ data: h, label: m[L].toString() })).filter((h) => h.data.width > 0 && h.data.height > 0), U = z.map((h) => {
|
|
1295
|
+
const { data: L } = h;
|
|
1296
|
+
let C = L.height * 0.7;
|
|
1297
|
+
for (; !l(h, C) && C > 0; )
|
|
1298
|
+
C -= 1;
|
|
1299
|
+
return C;
|
|
1300
|
+
}), X = Math.floor(Math.min(...U));
|
|
1301
|
+
_.selectAll("text").data(z).enter().append("text").attr("x", (h) => h.data.x + h.data.width - 10).attr("y", (h) => h.data.y + h.data.height / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").attr("fill", "black").attr("font-size", `${X}px`).text((h) => h.label);
|
|
1302
|
+
} else {
|
|
1303
|
+
let l = function(h, L, C) {
|
|
1304
|
+
const { data: k, label: $ } = h, N = L * $.length * 0.7, F = k.x + k.width / 2, r = F - N / 2, c = F + N / 2, u = r >= k.x && c <= k.x + k.width, x = k.y + C + L <= k.y + k.height;
|
|
1305
|
+
return u && x;
|
|
1306
|
+
};
|
|
1307
|
+
a(l, "fitsInBar");
|
|
1308
|
+
const W = 10, z = p.data.map((h, L) => ({ data: h, label: m[L].toString() })).filter((h) => h.data.width > 0 && h.data.height > 0), U = z.map((h) => {
|
|
1309
|
+
const { data: L, label: C } = h;
|
|
1310
|
+
let k = L.width / (C.length * 0.7);
|
|
1311
|
+
for (; !l(h, k, W) && k > 0; )
|
|
1312
|
+
k -= 1;
|
|
1313
|
+
return k;
|
|
1314
|
+
}), X = Math.floor(Math.min(...U));
|
|
1315
|
+
_.selectAll("text").data(z).enter().append("text").attr("x", (h) => h.data.x + h.data.width / 2).attr("y", (h) => h.data.y + W).attr("text-anchor", "middle").attr("dominant-baseline", "hanging").attr("fill", "black").attr("font-size", `${X}px`).text((h) => h.label);
|
|
1316
|
+
}
|
|
1283
1317
|
break;
|
|
1284
1318
|
case "text":
|
|
1285
|
-
_.selectAll("text").data(
|
|
1319
|
+
_.selectAll("text").data(p.data).enter().append("text").attr("x", 0).attr("y", 0).attr("fill", (l) => l.fill).attr("font-size", (l) => l.fontSize).attr("dominant-baseline", (l) => S(l.verticalPos)).attr("text-anchor", (l) => D(l.horizontalPos)).attr("transform", (l) => v(l)).text((l) => l.text);
|
|
1286
1320
|
break;
|
|
1287
1321
|
case "path":
|
|
1288
|
-
_.selectAll("path").data(
|
|
1322
|
+
_.selectAll("path").data(p.data).enter().append("path").attr("d", (l) => l.path).attr("fill", (l) => l.fill ? l.fill : "none").attr("stroke", (l) => l.strokeFill).attr("stroke-width", (l) => l.strokeWidth);
|
|
1289
1323
|
break;
|
|
1290
1324
|
}
|
|
1291
1325
|
}
|
|
1292
|
-
}, "draw"),
|
|
1293
|
-
draw:
|
|
1294
|
-
},
|
|
1295
|
-
parser:
|
|
1296
|
-
db:
|
|
1297
|
-
renderer:
|
|
1326
|
+
}, "draw"), vi = {
|
|
1327
|
+
draw: Di
|
|
1328
|
+
}, Bi = {
|
|
1329
|
+
parser: mi,
|
|
1330
|
+
db: Ti,
|
|
1331
|
+
renderer: vi
|
|
1298
1332
|
};
|
|
1299
1333
|
export {
|
|
1300
|
-
|
|
1334
|
+
Bi as diagram
|
|
1301
1335
|
};
|