@peasant-labs/fairtrade 0.0.51 → 0.0.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/dist/lib/base.css +1 -1
  2. package/dist/lib/commons.js +544 -522
  3. package/dist/lib/components.css +1 -1
  4. package/dist/lib/share.js +2 -2
  5. package/dist/lib/tokens.css +2 -2
  6. package/dist/lib/tokens.json +2 -2
  7. package/dist/lib/types/AppSidebar.d.ts +9 -11
  8. package/dist/lib/types/Avatar.d.ts +2 -2
  9. package/dist/lib/types/Breadcrumb.d.ts +12 -5
  10. package/dist/lib/types/Dialog.d.ts +1 -1
  11. package/dist/lib/types/Input.d.ts +3 -3
  12. package/dist/lib/types/OverflowList.d.ts +1 -1
  13. package/dist/lib/types/RepoPicker.d.ts +3 -1
  14. package/dist/lib/types/Switch.d.ts +3 -3
  15. package/dist/lib/types/commons/Explore.d.ts +1 -1
  16. package/dist/lib/types/commons/types.d.ts +12 -0
  17. package/dist/lib/{ui-Do7A_I-0.js → ui-suNzomre.js} +1682 -1623
  18. package/dist/lib/ui.js +1 -1
  19. package/package.json +1 -1
  20. package/dist/lib/abnfDiagram-WEYOIA3C-D4LMNFIJ.js +0 -89
  21. package/dist/lib/arc-1xTxsoRi.js +0 -80
  22. package/dist/lib/architecture-WOLXFQ4H-c6RsZuzu.js +0 -3
  23. package/dist/lib/architectureDiagram-ZHVYKT53-DTINqD5R.js +0 -4145
  24. package/dist/lib/array-CApNbSU9.js +0 -6
  25. package/dist/lib/blockDiagram-RJAE7QA3-CUYHoR3g.js +0 -1946
  26. package/dist/lib/c4Diagram-XDPPPE54-Cdx6_DsI.js +0 -2990
  27. package/dist/lib/channel-DagAO2vE.js +0 -5
  28. package/dist/lib/chunk-2E7WHVMD-BzhgXW3b.js +0 -490
  29. package/dist/lib/chunk-2Q5K7J3B-DWNwIK5Y.js +0 -15
  30. package/dist/lib/chunk-4EMNKR2T-DhFrQz9k.js +0 -236
  31. package/dist/lib/chunk-55XCU76K-CI0GXDkJ.js +0 -61
  32. package/dist/lib/chunk-5VM5RSS4-BAQ-46g4.js +0 -5
  33. package/dist/lib/chunk-7S6XSTFO-CMt_p-O6.js +0 -1373
  34. package/dist/lib/chunk-AQDTSKZB-DrZccIQa.js +0 -1847
  35. package/dist/lib/chunk-DSNLSHJZ-CpA9d2CJ.js +0 -4044
  36. package/dist/lib/chunk-DUW6YSOI-C-tN4Kiv.js +0 -10
  37. package/dist/lib/chunk-EJLWFMJV-B30MNYvY.js +0 -75
  38. package/dist/lib/chunk-HAGFOTED-DMU2JNZM.js +0 -4487
  39. package/dist/lib/chunk-HNE4Q36P-BIA0n2gA.js +0 -363
  40. package/dist/lib/chunk-J5ZVWO5B-CA_-jk8G.js +0 -12
  41. package/dist/lib/chunk-JWPE2WC7-KRpHbrIX.js +0 -8
  42. package/dist/lib/chunk-LNGE3PJU-CMGaAEAh.js +0 -1513
  43. package/dist/lib/chunk-NGNAAXSQ-D7Dvct7J.js +0 -19774
  44. package/dist/lib/chunk-NQOKRVIF-MK9F46y3.js +0 -4258
  45. package/dist/lib/chunk-OYAV6JZA-B1yICcbU.js +0 -10
  46. package/dist/lib/chunk-UHW7PFBP-CLrOaA0y.js +0 -67
  47. package/dist/lib/chunk-VQ5W62QI-_ZR3gKe4.js +0 -26
  48. package/dist/lib/chunk-WQQL4CDK-DFtyhYZq.js +0 -693
  49. package/dist/lib/chunk-XXDRQBXY-uzyNBbgx.js +0 -9
  50. package/dist/lib/chunk-Y2CYZVJY-BYzrzvCI.js +0 -12
  51. package/dist/lib/chunk-YZO67HFG-D1jKt78p.js +0 -275
  52. package/dist/lib/chunk-ZAUX2LTX-7XO0Yj1z.js +0 -37
  53. package/dist/lib/chunk-ZCHMQSOR-CxoKltfF.js +0 -349
  54. package/dist/lib/classDiagram-v2-4MYWR3UA-BPvwhZqw.js +0 -3397
  55. package/dist/lib/cose-bilkent-JH36ORCC-Oj79uOIQ.js +0 -2250
  56. package/dist/lib/cynefin-EF2NZ3EQ-COX3NRum.js +0 -3
  57. package/dist/lib/cynefinDiagram-WF24UDRP-UzTptNAX.js +0 -349
  58. package/dist/lib/cytoscape.esm-0ojxgO9x.js +0 -18161
  59. package/dist/lib/dagre-NK4GIZVX-DWZr-NGm.js +0 -2356
  60. package/dist/lib/defaultLocale-BbgDuMnp.js +0 -201
  61. package/dist/lib/diagram-CBK3MWTC-CsyKuv-w.js +0 -525
  62. package/dist/lib/diagram-I5XIIV2D-DWY2JSPC.js +0 -134
  63. package/dist/lib/diagram-ODIL2UCW-DUptj0JZ.js +0 -301
  64. package/dist/lib/diagram-PFBEJUXE-N5XnIBqM.js +0 -447
  65. package/dist/lib/diagram-RJA3I4VV-B9XgohYo.js +0 -214
  66. package/dist/lib/diagram-TYUNFSNR-XnsJIeAd.js +0 -5084
  67. package/dist/lib/dist-AMlsjiDX.js +0 -59
  68. package/dist/lib/ebnfDiagram-V4P3TTPT-BssHqFox.js +0 -100
  69. package/dist/lib/elk-QONTBCTQ-DwmwqYgP.js +0 -47944
  70. package/dist/lib/erDiagram-KYQIGQAA-BQiXw1Tw.js +0 -1970
  71. package/dist/lib/eventmodeling-K75KTNOO-DDb--yMc.js +0 -3
  72. package/dist/lib/flowDiagram-IUGLLWBU-BEqqF1y2.js +0 -17
  73. package/dist/lib/ganttDiagram-R7GPNTJY-BWtGXxEF.js +0 -3094
  74. package/dist/lib/gitGraph-VSP46ZUC-BSwOaak_.js +0 -3
  75. package/dist/lib/gitGraphDiagram-PDYL7XHY-CHGNuGbk.js +0 -729
  76. package/dist/lib/graphlib-Dndp26xU.js +0 -1267
  77. package/dist/lib/info-OHQRW6UA-Dk06sZRe.js +0 -3
  78. package/dist/lib/infoDiagram-MVDRKAX5-Cdhxnjmi.js +0 -20
  79. package/dist/lib/init-Bwwdo3M6.js +0 -15
  80. package/dist/lib/ishikawaDiagram-HPEHV2GE-Dzhti-GJ.js +0 -719
  81. package/dist/lib/journeyDiagram-BOSHW7O7-C3_vsSjw.js +0 -884
  82. package/dist/lib/kanban-definition-FNSA4HC5-XsfCEsjn.js +0 -976
  83. package/dist/lib/katex-Dw0PnoPU.js +0 -21850
  84. package/dist/lib/line-C9krU3Sv.js +0 -34
  85. package/dist/lib/linear-Cvilv3OA.js +0 -289
  86. package/dist/lib/mermaid-parser.core-I7qQ_fxz.js +0 -638
  87. package/dist/lib/mermaid.core-UNHMAbBP.js +0 -1126
  88. package/dist/lib/mindmap-definition-6OY57UG3-CAua-JvB.js +0 -1011
  89. package/dist/lib/ordinal-C55HfHHp.js +0 -65
  90. package/dist/lib/packet-JDAUHWVQ-DZ-MKx4I.js +0 -3
  91. package/dist/lib/path-DNvJyUE8.js +0 -85
  92. package/dist/lib/pegDiagram-ECIUJNBX-BCxa_IO0.js +0 -94
  93. package/dist/lib/pie-XZMESJXO-DpCa-Nnq.js +0 -3
  94. package/dist/lib/pieDiagram-GNMPY74T-CE_C3dCB.js +0 -205
  95. package/dist/lib/quadrantDiagram-D57K4MC3-CDgzdMoL.js +0 -2001
  96. package/dist/lib/radar-ABXABTNO-BOVK7L9p.js +0 -3
  97. package/dist/lib/railroad-I3PHUGI6-B6spKM0Z.js +0 -3
  98. package/dist/lib/railroad-abnf-LNEFI6M7-DEWqfByZ.js +0 -3
  99. package/dist/lib/railroad-ebnf-DWYD2UWJ-CWRLtxHB.js +0 -3
  100. package/dist/lib/railroad-peg-JR7BVNR7-C-3NHSsk.js +0 -3
  101. package/dist/lib/railroadDiagram-Y72NRBL7-a8YVk8LT.js +0 -76
  102. package/dist/lib/requirementDiagram-EQYSW5RA-B9HolqxU.js +0 -2228
  103. package/dist/lib/rough.esm-a8mysczE.js +0 -1352
  104. package/dist/lib/sankeyDiagram-SY24JHO5-CLFMtMJG.js +0 -970
  105. package/dist/lib/sequenceDiagram-BLEHNHQU-B5wfSV85.js +0 -4253
  106. package/dist/lib/sizeCapture-INFHLROL-BWGCc9aa.js +0 -46
  107. package/dist/lib/src-Dcy0zUZH.js +0 -2153
  108. package/dist/lib/stateDiagram-v2-A6IESKWZ-C92vye4N.js +0 -2143
  109. package/dist/lib/swimlanes-B3ENRKFQ-B6-i-tPc.js +0 -4764
  110. package/dist/lib/swimlanesDiagram-AYQRV4AK-CbkBeql-.js +0 -28
  111. package/dist/lib/timeline-definition-JXYKGLGB-D2Ip4r72.js +0 -1073
  112. package/dist/lib/treeView-D4JQ5SDB-CFaKQ_2T.js +0 -3
  113. package/dist/lib/treemap-SAJKECNS-BQ6z7Z3g.js +0 -3
  114. package/dist/lib/usecaseDiagram-WPOLBNNX-BK1Anch1.js +0 -7190
  115. package/dist/lib/vennDiagram-Q3Y3IDCW-B6YTBqTS.js +0 -1880
  116. package/dist/lib/wardley-7MLQ67FV-DChYwu4i.js +0 -3
  117. package/dist/lib/wardleyDiagram-IVAIDKWA-D5I1qLUK.js +0 -645
  118. package/dist/lib/xychartDiagram-4URNHDU4-B6RXyhTO.js +0 -2218
@@ -1,2218 +0,0 @@
1
- import { m as e } from "./src-Dcy0zUZH.js";
2
- import { n as t } from "./chunk-Y2CYZVJY-BYzrzvCI.js";
3
- import { C as n, E as r, H as i, U as a, _ as o, a as s, c, f as l, q as u, v as d, y as f, z as p } from "./chunk-DSNLSHJZ-CpA9d2CJ.js";
4
- import { t as m } from "./linear-Cvilv3OA.js";
5
- import { t as h } from "./ordinal-C55HfHHp.js";
6
- import { t as g } from "./init-Bwwdo3M6.js";
7
- import { i as _ } from "./chunk-7S6XSTFO-CMt_p-O6.js";
8
- import { t as v } from "./line-C9krU3Sv.js";
9
- import { t as y } from "./chunk-OYAV6JZA-B1yICcbU.js";
10
- import "./chunk-YZO67HFG-D1jKt78p.js";
11
- import { t as b } from "./chunk-AQDTSKZB-DrZccIQa.js";
12
- //#region node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/range.js
13
- function x(e, t, n) {
14
- e = +e, t = +t, n = (i = arguments.length) < 2 ? (t = e, e = 0, 1) : i < 3 ? 1 : +n;
15
- for (var r = -1, i = Math.max(0, Math.ceil((t - e) / n)) | 0, a = Array(i); ++r < i;) a[r] = e + r * n;
16
- return a;
17
- }
18
- //#endregion
19
- //#region node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/band.js
20
- function S() {
21
- var e = h().unknown(void 0), t = e.domain, n = e.range, r = 0, i = 1, a, o, s = !1, c = 0, l = 0, u = .5;
22
- delete e.unknown;
23
- function d() {
24
- var e = t().length, d = i < r, f = d ? i : r, p = d ? r : i;
25
- a = (p - f) / Math.max(1, e - c + l * 2), s && (a = Math.floor(a)), f += (p - f - a * (e - c)) * u, o = a * (1 - c), s && (f = Math.round(f), o = Math.round(o));
26
- var m = x(e).map(function(e) {
27
- return f + a * e;
28
- });
29
- return n(d ? m.reverse() : m);
30
- }
31
- return e.domain = function(e) {
32
- return arguments.length ? (t(e), d()) : t();
33
- }, e.range = function(e) {
34
- return arguments.length ? ([r, i] = e, r = +r, i = +i, d()) : [r, i];
35
- }, e.rangeRound = function(e) {
36
- return [r, i] = e, r = +r, i = +i, s = !0, d();
37
- }, e.bandwidth = function() {
38
- return o;
39
- }, e.step = function() {
40
- return a;
41
- }, e.round = function(e) {
42
- return arguments.length ? (s = !!e, d()) : s;
43
- }, e.padding = function(e) {
44
- return arguments.length ? (c = Math.min(1, l = +e), d()) : c;
45
- }, e.paddingInner = function(e) {
46
- return arguments.length ? (c = Math.min(1, e), d()) : c;
47
- }, e.paddingOuter = function(e) {
48
- return arguments.length ? (l = +e, d()) : l;
49
- }, e.align = function(e) {
50
- return arguments.length ? (u = Math.max(0, Math.min(1, e)), d()) : u;
51
- }, e.copy = function() {
52
- return S(t(), [r, i]).round(s).paddingInner(c).paddingOuter(l).align(u);
53
- }, g.apply(d(), arguments);
54
- }
55
- //#endregion
56
- //#region node_modules/.pnpm/mermaid@12.2.0/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-4URNHDU4.mjs
57
- var C = (function() {
58
- var e = /* @__PURE__ */ t(function(e, t, n, r) {
59
- for (n ||= {}, r = e.length; r--; n[e[r]] = t);
60
- return n;
61
- }, "o"), n = [
62
- 1,
63
- 10,
64
- 12,
65
- 14,
66
- 16,
67
- 18,
68
- 19,
69
- 21,
70
- 23
71
- ], r = [2, 6], i = [1, 3], a = [1, 5], o = [1, 6], s = [1, 7], c = [
72
- 1,
73
- 5,
74
- 10,
75
- 12,
76
- 14,
77
- 16,
78
- 18,
79
- 19,
80
- 21,
81
- 23,
82
- 36,
83
- 37,
84
- 38
85
- ], l = [1, 25], u = [1, 26], d = [1, 28], f = [1, 29], p = [1, 30], m = [1, 31], h = [1, 32], g = [1, 33], _ = [1, 34], v = [1, 35], y = [1, 36], b = [1, 37], x = [1, 43], S = [1, 42], C = [1, 47], w = [1, 50], T = [
86
- 1,
87
- 10,
88
- 12,
89
- 14,
90
- 16,
91
- 18,
92
- 19,
93
- 21,
94
- 23,
95
- 36,
96
- 37,
97
- 38
98
- ], E = [
99
- 1,
100
- 10,
101
- 12,
102
- 14,
103
- 16,
104
- 18,
105
- 19,
106
- 21,
107
- 23,
108
- 24,
109
- 26,
110
- 28,
111
- 29,
112
- 36,
113
- 37,
114
- 38
115
- ], D = [
116
- 1,
117
- 10,
118
- 12,
119
- 14,
120
- 16,
121
- 18,
122
- 19,
123
- 21,
124
- 23,
125
- 24,
126
- 26,
127
- 28,
128
- 29,
129
- 36,
130
- 37,
131
- 38,
132
- 42,
133
- 43,
134
- 44,
135
- 45,
136
- 46,
137
- 47,
138
- 48,
139
- 49,
140
- 50,
141
- 51
142
- ], O = [1, 65], k = [26, 28], A = {
143
- trace: /* @__PURE__ */ t(function() {}, "trace"),
144
- yy: {},
145
- symbols_: {
146
- error: 2,
147
- start: 3,
148
- eol: 4,
149
- XYCHART: 5,
150
- chartConfig: 6,
151
- document: 7,
152
- CHART_ORIENTATION: 8,
153
- statement: 9,
154
- title: 10,
155
- text: 11,
156
- X_AXIS: 12,
157
- parseXAxis: 13,
158
- Y_AXIS: 14,
159
- parseYAxis: 15,
160
- LINE: 16,
161
- plotData: 17,
162
- BAR: 18,
163
- acc_title: 19,
164
- acc_title_value: 20,
165
- acc_descr: 21,
166
- acc_descr_value: 22,
167
- acc_descr_multiline_value: 23,
168
- SQUARE_BRACES_START: 24,
169
- dataPoints: 25,
170
- SQUARE_BRACES_END: 26,
171
- dataPoint: 27,
172
- COMMA: 28,
173
- NUMBER_WITH_DECIMAL: 29,
174
- STR: 30,
175
- xAxisData: 31,
176
- bandData: 32,
177
- ARROW_DELIMITER: 33,
178
- commaSeparatedTexts: 34,
179
- yAxisData: 35,
180
- NEWLINE: 36,
181
- SEMI: 37,
182
- EOF: 38,
183
- alphaNum: 39,
184
- MD_STR: 40,
185
- alphaNumToken: 41,
186
- AMP: 42,
187
- NUM: 43,
188
- ALPHA: 44,
189
- PLUS: 45,
190
- EQUALS: 46,
191
- MULT: 47,
192
- DOT: 48,
193
- BRKT: 49,
194
- MINUS: 50,
195
- UNDERSCORE: 51,
196
- $accept: 0,
197
- $end: 1
198
- },
199
- terminals_: {
200
- 2: "error",
201
- 5: "XYCHART",
202
- 8: "CHART_ORIENTATION",
203
- 10: "title",
204
- 12: "X_AXIS",
205
- 14: "Y_AXIS",
206
- 16: "LINE",
207
- 18: "BAR",
208
- 19: "acc_title",
209
- 20: "acc_title_value",
210
- 21: "acc_descr",
211
- 22: "acc_descr_value",
212
- 23: "acc_descr_multiline_value",
213
- 24: "SQUARE_BRACES_START",
214
- 26: "SQUARE_BRACES_END",
215
- 28: "COMMA",
216
- 29: "NUMBER_WITH_DECIMAL",
217
- 30: "STR",
218
- 33: "ARROW_DELIMITER",
219
- 36: "NEWLINE",
220
- 37: "SEMI",
221
- 38: "EOF",
222
- 40: "MD_STR",
223
- 42: "AMP",
224
- 43: "NUM",
225
- 44: "ALPHA",
226
- 45: "PLUS",
227
- 46: "EQUALS",
228
- 47: "MULT",
229
- 48: "DOT",
230
- 49: "BRKT",
231
- 50: "MINUS",
232
- 51: "UNDERSCORE"
233
- },
234
- productions_: [
235
- 0,
236
- [3, 2],
237
- [3, 3],
238
- [3, 2],
239
- [3, 1],
240
- [6, 1],
241
- [7, 0],
242
- [7, 2],
243
- [9, 2],
244
- [9, 2],
245
- [9, 2],
246
- [9, 2],
247
- [9, 2],
248
- [9, 3],
249
- [9, 2],
250
- [9, 3],
251
- [9, 2],
252
- [9, 2],
253
- [9, 1],
254
- [17, 3],
255
- [25, 3],
256
- [25, 1],
257
- [27, 2],
258
- [27, 1],
259
- [13, 1],
260
- [13, 2],
261
- [13, 1],
262
- [31, 1],
263
- [31, 3],
264
- [32, 3],
265
- [34, 3],
266
- [34, 1],
267
- [15, 1],
268
- [15, 2],
269
- [15, 1],
270
- [35, 3],
271
- [4, 1],
272
- [4, 1],
273
- [4, 1],
274
- [11, 1],
275
- [11, 1],
276
- [11, 1],
277
- [39, 1],
278
- [39, 2],
279
- [41, 1],
280
- [41, 1],
281
- [41, 1],
282
- [41, 1],
283
- [41, 1],
284
- [41, 1],
285
- [41, 1],
286
- [41, 1],
287
- [41, 1],
288
- [41, 1]
289
- ],
290
- performAction: /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
291
- var s = a.length - 1;
292
- switch (i) {
293
- case 5:
294
- r.setOrientation(a[s]);
295
- break;
296
- case 9:
297
- r.setDiagramTitle(a[s].text.trim());
298
- break;
299
- case 12:
300
- r.setLineData({
301
- text: "",
302
- type: "text"
303
- }, a[s]);
304
- break;
305
- case 13:
306
- r.setLineData(a[s - 1], a[s]);
307
- break;
308
- case 14:
309
- r.setBarData({
310
- text: "",
311
- type: "text"
312
- }, a[s]);
313
- break;
314
- case 15:
315
- r.setBarData(a[s - 1], a[s]);
316
- break;
317
- case 16:
318
- this.$ = a[s].trim(), r.setAccTitle(this.$);
319
- break;
320
- case 17:
321
- case 18:
322
- this.$ = a[s].trim(), r.setAccDescription(this.$);
323
- break;
324
- case 19:
325
- this.$ = a[s - 1];
326
- break;
327
- case 20:
328
- case 30:
329
- this.$ = [a[s - 2], ...a[s]];
330
- break;
331
- case 21:
332
- case 31:
333
- this.$ = [a[s]];
334
- break;
335
- case 22:
336
- this.$ = {
337
- value: Number(a[s - 1]),
338
- label: a[s]
339
- };
340
- break;
341
- case 23:
342
- this.$ = {
343
- value: Number(a[s]),
344
- label: ""
345
- };
346
- break;
347
- case 24:
348
- r.setXAxisTitle(a[s]);
349
- break;
350
- case 25:
351
- r.setXAxisTitle(a[s - 1]);
352
- break;
353
- case 26:
354
- r.setXAxisTitle({
355
- type: "text",
356
- text: ""
357
- });
358
- break;
359
- case 27:
360
- r.setXAxisBand(a[s]);
361
- break;
362
- case 28:
363
- r.setXAxisRangeData(Number(a[s - 2]), Number(a[s]));
364
- break;
365
- case 29:
366
- this.$ = a[s - 1];
367
- break;
368
- case 32:
369
- r.setYAxisTitle(a[s]);
370
- break;
371
- case 33:
372
- r.setYAxisTitle(a[s - 1]);
373
- break;
374
- case 34:
375
- r.setYAxisTitle({
376
- type: "text",
377
- text: ""
378
- });
379
- break;
380
- case 35:
381
- r.setYAxisRangeData(Number(a[s - 2]), Number(a[s]));
382
- break;
383
- case 39:
384
- this.$ = {
385
- text: a[s],
386
- type: "text"
387
- };
388
- break;
389
- case 40:
390
- this.$ = {
391
- text: a[s],
392
- type: "text"
393
- };
394
- break;
395
- case 41:
396
- this.$ = {
397
- text: a[s],
398
- type: "markdown"
399
- };
400
- break;
401
- case 42:
402
- this.$ = a[s];
403
- break;
404
- case 43:
405
- this.$ = a[s - 1] + "" + a[s];
406
- break;
407
- }
408
- }, "anonymous"),
409
- table: [
410
- e(n, r, {
411
- 3: 1,
412
- 4: 2,
413
- 7: 4,
414
- 5: i,
415
- 36: a,
416
- 37: o,
417
- 38: s
418
- }),
419
- { 1: [3] },
420
- e(n, r, {
421
- 4: 2,
422
- 7: 4,
423
- 3: 8,
424
- 5: i,
425
- 36: a,
426
- 37: o,
427
- 38: s
428
- }),
429
- e(n, r, {
430
- 4: 2,
431
- 7: 4,
432
- 6: 9,
433
- 3: 10,
434
- 5: i,
435
- 8: [1, 11],
436
- 36: a,
437
- 37: o,
438
- 38: s
439
- }),
440
- {
441
- 1: [2, 4],
442
- 9: 12,
443
- 10: [1, 13],
444
- 12: [1, 14],
445
- 14: [1, 15],
446
- 16: [1, 16],
447
- 18: [1, 17],
448
- 19: [1, 18],
449
- 21: [1, 19],
450
- 23: [1, 20]
451
- },
452
- e(c, [2, 36]),
453
- e(c, [2, 37]),
454
- e(c, [2, 38]),
455
- { 1: [2, 1] },
456
- e(n, r, {
457
- 4: 2,
458
- 7: 4,
459
- 3: 21,
460
- 5: i,
461
- 36: a,
462
- 37: o,
463
- 38: s
464
- }),
465
- { 1: [2, 3] },
466
- e(c, [2, 5]),
467
- e(n, [2, 7], {
468
- 4: 22,
469
- 36: a,
470
- 37: o,
471
- 38: s
472
- }),
473
- {
474
- 11: 23,
475
- 30: l,
476
- 39: 24,
477
- 40: u,
478
- 41: 27,
479
- 42: d,
480
- 43: f,
481
- 44: p,
482
- 45: m,
483
- 46: h,
484
- 47: g,
485
- 48: _,
486
- 49: v,
487
- 50: y,
488
- 51: b
489
- },
490
- {
491
- 11: 39,
492
- 13: 38,
493
- 24: x,
494
- 29: S,
495
- 30: l,
496
- 31: 40,
497
- 32: 41,
498
- 39: 24,
499
- 40: u,
500
- 41: 27,
501
- 42: d,
502
- 43: f,
503
- 44: p,
504
- 45: m,
505
- 46: h,
506
- 47: g,
507
- 48: _,
508
- 49: v,
509
- 50: y,
510
- 51: b
511
- },
512
- {
513
- 11: 45,
514
- 15: 44,
515
- 29: C,
516
- 30: l,
517
- 35: 46,
518
- 39: 24,
519
- 40: u,
520
- 41: 27,
521
- 42: d,
522
- 43: f,
523
- 44: p,
524
- 45: m,
525
- 46: h,
526
- 47: g,
527
- 48: _,
528
- 49: v,
529
- 50: y,
530
- 51: b
531
- },
532
- {
533
- 11: 49,
534
- 17: 48,
535
- 24: w,
536
- 30: l,
537
- 39: 24,
538
- 40: u,
539
- 41: 27,
540
- 42: d,
541
- 43: f,
542
- 44: p,
543
- 45: m,
544
- 46: h,
545
- 47: g,
546
- 48: _,
547
- 49: v,
548
- 50: y,
549
- 51: b
550
- },
551
- {
552
- 11: 52,
553
- 17: 51,
554
- 24: w,
555
- 30: l,
556
- 39: 24,
557
- 40: u,
558
- 41: 27,
559
- 42: d,
560
- 43: f,
561
- 44: p,
562
- 45: m,
563
- 46: h,
564
- 47: g,
565
- 48: _,
566
- 49: v,
567
- 50: y,
568
- 51: b
569
- },
570
- { 20: [1, 53] },
571
- { 22: [1, 54] },
572
- e(T, [2, 18]),
573
- { 1: [2, 2] },
574
- e(T, [2, 8]),
575
- e(T, [2, 9]),
576
- e(E, [2, 39], {
577
- 41: 55,
578
- 42: d,
579
- 43: f,
580
- 44: p,
581
- 45: m,
582
- 46: h,
583
- 47: g,
584
- 48: _,
585
- 49: v,
586
- 50: y,
587
- 51: b
588
- }),
589
- e(E, [2, 40]),
590
- e(E, [2, 41]),
591
- e(D, [2, 42]),
592
- e(D, [2, 44]),
593
- e(D, [2, 45]),
594
- e(D, [2, 46]),
595
- e(D, [2, 47]),
596
- e(D, [2, 48]),
597
- e(D, [2, 49]),
598
- e(D, [2, 50]),
599
- e(D, [2, 51]),
600
- e(D, [2, 52]),
601
- e(D, [2, 53]),
602
- e(T, [2, 10]),
603
- e(T, [2, 24], {
604
- 32: 41,
605
- 31: 56,
606
- 24: x,
607
- 29: S
608
- }),
609
- e(T, [2, 26]),
610
- e(T, [2, 27]),
611
- { 33: [1, 57] },
612
- {
613
- 11: 59,
614
- 30: l,
615
- 34: 58,
616
- 39: 24,
617
- 40: u,
618
- 41: 27,
619
- 42: d,
620
- 43: f,
621
- 44: p,
622
- 45: m,
623
- 46: h,
624
- 47: g,
625
- 48: _,
626
- 49: v,
627
- 50: y,
628
- 51: b
629
- },
630
- e(T, [2, 11]),
631
- e(T, [2, 32], {
632
- 35: 60,
633
- 29: C
634
- }),
635
- e(T, [2, 34]),
636
- { 33: [1, 61] },
637
- e(T, [2, 12]),
638
- {
639
- 17: 62,
640
- 24: w
641
- },
642
- {
643
- 25: 63,
644
- 27: 64,
645
- 29: O
646
- },
647
- e(T, [2, 14]),
648
- {
649
- 17: 66,
650
- 24: w
651
- },
652
- e(T, [2, 16]),
653
- e(T, [2, 17]),
654
- e(D, [2, 43]),
655
- e(T, [2, 25]),
656
- { 29: [1, 67] },
657
- { 26: [1, 68] },
658
- {
659
- 26: [2, 31],
660
- 28: [1, 69]
661
- },
662
- e(T, [2, 33]),
663
- { 29: [1, 70] },
664
- e(T, [2, 13]),
665
- { 26: [1, 71] },
666
- {
667
- 26: [2, 21],
668
- 28: [1, 72]
669
- },
670
- e(k, [2, 23], { 30: [1, 73] }),
671
- e(T, [2, 15]),
672
- e(T, [2, 28]),
673
- e(T, [2, 29]),
674
- {
675
- 11: 59,
676
- 30: l,
677
- 34: 74,
678
- 39: 24,
679
- 40: u,
680
- 41: 27,
681
- 42: d,
682
- 43: f,
683
- 44: p,
684
- 45: m,
685
- 46: h,
686
- 47: g,
687
- 48: _,
688
- 49: v,
689
- 50: y,
690
- 51: b
691
- },
692
- e(T, [2, 35]),
693
- e(T, [2, 19]),
694
- {
695
- 25: 75,
696
- 27: 64,
697
- 29: O
698
- },
699
- e(k, [2, 22]),
700
- { 26: [2, 30] },
701
- { 26: [2, 20] }
702
- ],
703
- defaultActions: {
704
- 8: [2, 1],
705
- 10: [2, 3],
706
- 21: [2, 2],
707
- 74: [2, 30],
708
- 75: [2, 20]
709
- },
710
- parseError: /* @__PURE__ */ t(function(e, t) {
711
- if (t.recoverable) this.trace(e);
712
- else {
713
- var n = Error(e);
714
- throw n.hash = t, n;
715
- }
716
- }, "parseError"),
717
- parse: /* @__PURE__ */ t(function(e) {
718
- var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
719
- for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
720
- h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
721
- var v = h.yylloc;
722
- o.push(v);
723
- var y = h.options && h.options.ranges;
724
- typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
725
- function b(e) {
726
- r.length -= 2 * e, a.length -= e, o.length -= e;
727
- }
728
- t(b, "popStack");
729
- function x() {
730
- var e = i.pop() || h.lex() || p;
731
- return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
732
- }
733
- t(x, "lex");
734
- for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
735
- if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
736
- var M = "";
737
- for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
738
- M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
739
- text: h.match,
740
- token: this.terminals_[S] || S,
741
- line: h.yylineno,
742
- loc: v,
743
- expected: j
744
- });
745
- }
746
- if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
747
- switch (T[0]) {
748
- case 1:
749
- r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
750
- break;
751
- case 2:
752
- if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
753
- first_line: o[o.length - (k || 1)].first_line,
754
- last_line: o[o.length - 1].last_line,
755
- first_column: o[o.length - (k || 1)].first_column,
756
- last_column: o[o.length - 1].last_column
757
- }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
758
- c,
759
- u,
760
- l,
761
- g.yy,
762
- T[1],
763
- a,
764
- o
765
- ].concat(m)), E !== void 0) return E;
766
- k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
767
- break;
768
- case 3: return !0;
769
- }
770
- }
771
- return !0;
772
- }, "parse")
773
- };
774
- A.lexer = /* @__PURE__ */ (function() {
775
- return {
776
- EOF: 1,
777
- parseError: /* @__PURE__ */ t(function(e, t) {
778
- if (this.yy.parser) this.yy.parser.parseError(e, t);
779
- else throw Error(e);
780
- }, "parseError"),
781
- setInput: /* @__PURE__ */ t(function(e, t) {
782
- return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
783
- first_line: 1,
784
- first_column: 0,
785
- last_line: 1,
786
- last_column: 0
787
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
788
- }, "setInput"),
789
- input: /* @__PURE__ */ t(function() {
790
- var e = this._input[0];
791
- return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
792
- }, "input"),
793
- unput: /* @__PURE__ */ t(function(e) {
794
- var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
795
- this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
796
- var r = this.match.split(/(?:\r\n?|\n)/g);
797
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
798
- var i = this.yylloc.range;
799
- return this.yylloc = {
800
- first_line: this.yylloc.first_line,
801
- last_line: this.yylineno + 1,
802
- first_column: this.yylloc.first_column,
803
- last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
804
- }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
805
- }, "unput"),
806
- more: /* @__PURE__ */ t(function() {
807
- return this._more = !0, this;
808
- }, "more"),
809
- reject: /* @__PURE__ */ t(function() {
810
- if (this.options.backtrack_lexer) this._backtrack = !0;
811
- else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
812
- text: "",
813
- token: null,
814
- line: this.yylineno
815
- });
816
- return this;
817
- }, "reject"),
818
- less: /* @__PURE__ */ t(function(e) {
819
- this.unput(this.match.slice(e));
820
- }, "less"),
821
- pastInput: /* @__PURE__ */ t(function() {
822
- var e = this.matched.substr(0, this.matched.length - this.match.length);
823
- return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
824
- }, "pastInput"),
825
- upcomingInput: /* @__PURE__ */ t(function() {
826
- var e = this.match;
827
- return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
828
- }, "upcomingInput"),
829
- showPosition: /* @__PURE__ */ t(function() {
830
- var e = this.pastInput(), t = Array(e.length + 1).join("-");
831
- return e + this.upcomingInput() + "\n" + t + "^";
832
- }, "showPosition"),
833
- test_match: /* @__PURE__ */ t(function(e, t) {
834
- var n, r, i;
835
- if (this.options.backtrack_lexer && (i = {
836
- yylineno: this.yylineno,
837
- yylloc: {
838
- first_line: this.yylloc.first_line,
839
- last_line: this.last_line,
840
- first_column: this.yylloc.first_column,
841
- last_column: this.yylloc.last_column
842
- },
843
- yytext: this.yytext,
844
- match: this.match,
845
- matches: this.matches,
846
- matched: this.matched,
847
- yyleng: this.yyleng,
848
- offset: this.offset,
849
- _more: this._more,
850
- _input: this._input,
851
- yy: this.yy,
852
- conditionStack: this.conditionStack.slice(0),
853
- done: this.done
854
- }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
855
- first_line: this.yylloc.last_line,
856
- last_line: this.yylineno + 1,
857
- first_column: this.yylloc.last_column,
858
- last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
859
- }, this.yytext += e[0], this.match += e[0], this.matches = e, 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(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
860
- if (this._backtrack) {
861
- for (var a in i) this[a] = i[a];
862
- return !1;
863
- }
864
- return !1;
865
- }, "test_match"),
866
- next: /* @__PURE__ */ t(function() {
867
- if (this.done) return this.EOF;
868
- this._input || (this.done = !0);
869
- var e, t, n, r;
870
- this._more || (this.yytext = "", this.match = "");
871
- for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
872
- if (t = n, r = a, this.options.backtrack_lexer) {
873
- if (e = this.test_match(n, i[a]), e !== !1) return e;
874
- if (this._backtrack) {
875
- t = !1;
876
- continue;
877
- } else return !1;
878
- } else if (!this.options.flex) break;
879
- }
880
- return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
881
- text: "",
882
- token: null,
883
- line: this.yylineno
884
- });
885
- }, "next"),
886
- lex: /* @__PURE__ */ t(function() {
887
- return this.next() || this.lex();
888
- }, "lex"),
889
- begin: /* @__PURE__ */ t(function(e) {
890
- this.conditionStack.push(e);
891
- }, "begin"),
892
- popState: /* @__PURE__ */ t(function() {
893
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
894
- }, "popState"),
895
- _currentRules: /* @__PURE__ */ t(function() {
896
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
897
- }, "_currentRules"),
898
- topState: /* @__PURE__ */ t(function(e) {
899
- return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
900
- }, "topState"),
901
- pushState: /* @__PURE__ */ t(function(e) {
902
- this.begin(e);
903
- }, "pushState"),
904
- stateStackSize: /* @__PURE__ */ t(function() {
905
- return this.conditionStack.length;
906
- }, "stateStackSize"),
907
- options: { "case-insensitive": !0 },
908
- performAction: /* @__PURE__ */ t(function(e, t, n, r) {
909
- switch (n) {
910
- case 0: break;
911
- case 1: break;
912
- case 2: return this.popState(), 36;
913
- case 3: return this.popState(), 36;
914
- case 4: return 36;
915
- case 5: break;
916
- case 6: return 10;
917
- case 7: return this.pushState("acc_title"), 19;
918
- case 8: return this.popState(), "acc_title_value";
919
- case 9: return this.pushState("acc_descr"), 21;
920
- case 10: return this.popState(), "acc_descr_value";
921
- case 11:
922
- this.pushState("acc_descr_multiline");
923
- break;
924
- case 12:
925
- this.popState();
926
- break;
927
- case 13: return "acc_descr_multiline_value";
928
- case 14: return 5;
929
- case 15: return 5;
930
- case 16: return 8;
931
- case 17: return this.pushState("axis_data"), "X_AXIS";
932
- case 18: return this.pushState("axis_data"), "Y_AXIS";
933
- case 19: return this.pushState("axis_band_data"), 24;
934
- case 20: return 33;
935
- case 21: return this.pushState("data"), 16;
936
- case 22: return this.pushState("data"), 18;
937
- case 23: return this.pushState("data_inner"), 24;
938
- case 24: return 29;
939
- case 25: return this.popState(), 26;
940
- case 26:
941
- this.popState();
942
- break;
943
- case 27:
944
- this.pushState("string");
945
- break;
946
- case 28:
947
- this.popState();
948
- break;
949
- case 29: return "STR";
950
- case 30: return 24;
951
- case 31: return 26;
952
- case 32: return 44;
953
- case 33: return "COLON";
954
- case 34: return 45;
955
- case 35: return 28;
956
- case 36: return 46;
957
- case 37: return 47;
958
- case 38: return 49;
959
- case 39: return 51;
960
- case 40: return 48;
961
- case 41: return 42;
962
- case 42: return 50;
963
- case 43: return 43;
964
- case 44: break;
965
- case 45: return 37;
966
- case 46: return 38;
967
- }
968
- }, "anonymous"),
969
- rules: [
970
- /^(?:%%(?!\{)[^\n]*)/i,
971
- /^(?:[^\}]%%[^\n]*)/i,
972
- /^(?:(\r?\n))/i,
973
- /^(?:(\r?\n))/i,
974
- /^(?:[\n\r]+)/i,
975
- /^(?:%%[^\n]*)/i,
976
- /^(?:title\b)/i,
977
- /^(?:accTitle\s*:\s*)/i,
978
- /^(?:(?!\n||)*[^\n]*)/i,
979
- /^(?:accDescr\s*:\s*)/i,
980
- /^(?:(?!\n||)*[^\n]*)/i,
981
- /^(?:accDescr\s*\{\s*)/i,
982
- /^(?:\})/i,
983
- /^(?:[^\}]*)/i,
984
- /^(?:xychart-beta\b)/i,
985
- /^(?:xychart\b)/i,
986
- /^(?:(?:vertical|horizontal))/i,
987
- /^(?:x-axis\b)/i,
988
- /^(?:y-axis\b)/i,
989
- /^(?:\[)/i,
990
- /^(?:-->)/i,
991
- /^(?:line\b)/i,
992
- /^(?:bar\b)/i,
993
- /^(?:\[)/i,
994
- /^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,
995
- /^(?:\])/i,
996
- /^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,
997
- /^(?:["])/i,
998
- /^(?:["])/i,
999
- /^(?:[^"]*)/i,
1000
- /^(?:\[)/i,
1001
- /^(?:\])/i,
1002
- /^(?:[A-Za-z]+)/i,
1003
- /^(?::)/i,
1004
- /^(?:\+)/i,
1005
- /^(?:,)/i,
1006
- /^(?:=)/i,
1007
- /^(?:\*)/i,
1008
- /^(?:#)/i,
1009
- /^(?:[\_])/i,
1010
- /^(?:\.)/i,
1011
- /^(?:&)/i,
1012
- /^(?:-)/i,
1013
- /^(?:[0-9]+)/i,
1014
- /^(?:\s+)/i,
1015
- /^(?:;)/i,
1016
- /^(?:$)/i
1017
- ],
1018
- conditions: {
1019
- data_inner: {
1020
- rules: [
1021
- 0,
1022
- 1,
1023
- 4,
1024
- 5,
1025
- 6,
1026
- 7,
1027
- 9,
1028
- 11,
1029
- 14,
1030
- 15,
1031
- 16,
1032
- 17,
1033
- 18,
1034
- 21,
1035
- 22,
1036
- 24,
1037
- 25,
1038
- 26,
1039
- 27,
1040
- 30,
1041
- 31,
1042
- 32,
1043
- 33,
1044
- 34,
1045
- 35,
1046
- 36,
1047
- 37,
1048
- 38,
1049
- 39,
1050
- 40,
1051
- 41,
1052
- 42,
1053
- 43,
1054
- 44,
1055
- 45,
1056
- 46
1057
- ],
1058
- inclusive: !0
1059
- },
1060
- data: {
1061
- rules: [
1062
- 0,
1063
- 1,
1064
- 3,
1065
- 4,
1066
- 5,
1067
- 6,
1068
- 7,
1069
- 9,
1070
- 11,
1071
- 14,
1072
- 15,
1073
- 16,
1074
- 17,
1075
- 18,
1076
- 21,
1077
- 22,
1078
- 23,
1079
- 26,
1080
- 27,
1081
- 30,
1082
- 31,
1083
- 32,
1084
- 33,
1085
- 34,
1086
- 35,
1087
- 36,
1088
- 37,
1089
- 38,
1090
- 39,
1091
- 40,
1092
- 41,
1093
- 42,
1094
- 43,
1095
- 44,
1096
- 45,
1097
- 46
1098
- ],
1099
- inclusive: !0
1100
- },
1101
- axis_band_data: {
1102
- rules: [
1103
- 0,
1104
- 1,
1105
- 4,
1106
- 5,
1107
- 6,
1108
- 7,
1109
- 9,
1110
- 11,
1111
- 14,
1112
- 15,
1113
- 16,
1114
- 17,
1115
- 18,
1116
- 21,
1117
- 22,
1118
- 25,
1119
- 26,
1120
- 27,
1121
- 30,
1122
- 31,
1123
- 32,
1124
- 33,
1125
- 34,
1126
- 35,
1127
- 36,
1128
- 37,
1129
- 38,
1130
- 39,
1131
- 40,
1132
- 41,
1133
- 42,
1134
- 43,
1135
- 44,
1136
- 45,
1137
- 46
1138
- ],
1139
- inclusive: !0
1140
- },
1141
- axis_data: {
1142
- rules: [
1143
- 0,
1144
- 1,
1145
- 2,
1146
- 4,
1147
- 5,
1148
- 6,
1149
- 7,
1150
- 9,
1151
- 11,
1152
- 14,
1153
- 15,
1154
- 16,
1155
- 17,
1156
- 18,
1157
- 19,
1158
- 20,
1159
- 21,
1160
- 22,
1161
- 24,
1162
- 26,
1163
- 27,
1164
- 30,
1165
- 31,
1166
- 32,
1167
- 33,
1168
- 34,
1169
- 35,
1170
- 36,
1171
- 37,
1172
- 38,
1173
- 39,
1174
- 40,
1175
- 41,
1176
- 42,
1177
- 43,
1178
- 44,
1179
- 45,
1180
- 46
1181
- ],
1182
- inclusive: !0
1183
- },
1184
- acc_descr_multiline: {
1185
- rules: [12, 13],
1186
- inclusive: !1
1187
- },
1188
- acc_descr: {
1189
- rules: [10],
1190
- inclusive: !1
1191
- },
1192
- acc_title: {
1193
- rules: [8],
1194
- inclusive: !1
1195
- },
1196
- title: {
1197
- rules: [],
1198
- inclusive: !1
1199
- },
1200
- md_string: {
1201
- rules: [],
1202
- inclusive: !1
1203
- },
1204
- string: {
1205
- rules: [28, 29],
1206
- inclusive: !1
1207
- },
1208
- INITIAL: {
1209
- rules: [
1210
- 0,
1211
- 1,
1212
- 4,
1213
- 5,
1214
- 6,
1215
- 7,
1216
- 9,
1217
- 11,
1218
- 14,
1219
- 15,
1220
- 16,
1221
- 17,
1222
- 18,
1223
- 21,
1224
- 22,
1225
- 26,
1226
- 27,
1227
- 30,
1228
- 31,
1229
- 32,
1230
- 33,
1231
- 34,
1232
- 35,
1233
- 36,
1234
- 37,
1235
- 38,
1236
- 39,
1237
- 40,
1238
- 41,
1239
- 42,
1240
- 43,
1241
- 44,
1242
- 45,
1243
- 46
1244
- ],
1245
- inclusive: !0
1246
- }
1247
- }
1248
- };
1249
- })();
1250
- function j() {
1251
- this.yy = {};
1252
- }
1253
- return t(j, "Parser"), j.prototype = A, A.Parser = j, new j();
1254
- })();
1255
- C.parser = C;
1256
- var w = C;
1257
- function T(e) {
1258
- return e.type === "bar";
1259
- }
1260
- t(T, "isBarPlot");
1261
- function E(e) {
1262
- return e.type === "band";
1263
- }
1264
- t(E, "isBandAxisData");
1265
- function D(e) {
1266
- return e.type === "linear";
1267
- }
1268
- t(D, "isLinearAxisData");
1269
- var O = class {
1270
- constructor(e) {
1271
- this.parentGroup = e;
1272
- }
1273
- static {
1274
- t(this, "TextDimensionCalculatorWithFont");
1275
- }
1276
- getMaxDimension(e, n) {
1277
- if (!this.parentGroup) return {
1278
- width: e.reduce((e, t) => Math.max(t.length, e), 0) * n,
1279
- height: n
1280
- };
1281
- let r = {
1282
- width: 0,
1283
- height: 0
1284
- }, i = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", n), a = i.node()?.getScreenCTM?.(), o = /* @__PURE__ */ t((e) => e && e > 0 ? e : 1, "toScale"), s = o(a?.a), c = o(a?.d);
1285
- for (let t of e) {
1286
- let e = b(i, 1, t), a = e ? e.width / s : t.length * n, o = e ? e.height / c : n;
1287
- r.width = Math.max(r.width, a), r.height = Math.max(r.height, o);
1288
- }
1289
- return i.remove(), r;
1290
- }
1291
- }, k = .7, A = .2, j = class {
1292
- constructor(e, t, n, r) {
1293
- this.axisConfig = e, this.title = t, this.textDimensionCalculator = n, this.axisThemeConfig = r, this.boundingRect = {
1294
- x: 0,
1295
- y: 0,
1296
- width: 0,
1297
- height: 0
1298
- }, 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 = {
1299
- x: 0,
1300
- y: 0,
1301
- width: 0,
1302
- height: 0
1303
- }, this.axisPosition = "left", this.normalizedLabelRotationInRad = this.axisConfig.labelRotation >= -90 && this.axisConfig.labelRotation <= 90 ? this.axisConfig.labelRotation * Math.PI / 180 : 0;
1304
- }
1305
- static {
1306
- t(this, "BaseAxis");
1307
- }
1308
- setRange(e) {
1309
- this.range = e, this.axisPosition === "left" || this.axisPosition === "right" ? this.boundingRect.height = e[1] - e[0] : this.boundingRect.width = e[1] - e[0], this.recalculateScale();
1310
- }
1311
- getRange() {
1312
- return [this.range[0] + this.outerPadding, this.range[1] - this.outerPadding];
1313
- }
1314
- setAxisPosition(e) {
1315
- this.axisPosition = e, this.setRange(this.range);
1316
- }
1317
- getTickDistance() {
1318
- let e = this.getRange();
1319
- return Math.abs(e[0] - e[1]) / this.getTickValues().length;
1320
- }
1321
- getAxisOuterPadding() {
1322
- return this.outerPadding;
1323
- }
1324
- getLabelDimension() {
1325
- return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map((e) => e.toString()), this.axisConfig.labelFontSize);
1326
- }
1327
- recalculateOuterPaddingToDrawBar() {
1328
- k * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(k * this.getTickDistance() / 2)), this.recalculateScale();
1329
- }
1330
- calculateSpaceIfDrawnHorizontally(e) {
1331
- let t = e.height;
1332
- if (this.axisConfig.showAxisLine && t > this.axisConfig.axisLineWidth && (t -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
1333
- let n = this.getLabelDimension(), r = A * e.width;
1334
- this.outerPadding = Math.min(n.width / 2, r);
1335
- let i = n.height;
1336
- this.axisPosition === "bottom" && this.normalizedLabelRotationInRad !== 0 && (i = Math.max(i, Math.abs(Math.sin(this.normalizedLabelRotationInRad) * n.width) + Math.abs(Math.cos(this.normalizedLabelRotationInRad) * n.height))), i += this.axisConfig.labelPadding * 2, this.labelTextHeight = n.height, i <= t && (t -= i, this.showLabel = !0);
1337
- }
1338
- if (this.axisConfig.showTick && t >= this.axisConfig.tickLength && (this.showTick = !0, t -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
1339
- let e = this.textDimensionCalculator.getMaxDimension([this.title], this.axisConfig.titleFontSize), n = e.height + this.axisConfig.titlePadding * 2;
1340
- this.titleTextHeight = e.height, n <= t && (t -= n, this.showTitle = !0);
1341
- }
1342
- this.boundingRect.width = e.width, this.boundingRect.height = e.height - t;
1343
- }
1344
- calculateSpaceIfDrawnVertical(e) {
1345
- let t = e.width;
1346
- if (this.axisConfig.showAxisLine && t > this.axisConfig.axisLineWidth && (t -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
1347
- let n = this.getLabelDimension(), r = A * e.height;
1348
- this.outerPadding = Math.min(n.height / 2, r);
1349
- let i = n.width + this.axisConfig.labelPadding * 2;
1350
- i <= t && (t -= i, this.showLabel = !0);
1351
- }
1352
- if (this.axisConfig.showTick && t >= this.axisConfig.tickLength && (this.showTick = !0, t -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
1353
- let e = this.textDimensionCalculator.getMaxDimension([this.title], this.axisConfig.titleFontSize), n = e.height + this.axisConfig.titlePadding * 2;
1354
- this.titleTextHeight = e.height, n <= t && (t -= n, this.showTitle = !0);
1355
- }
1356
- this.boundingRect.width = e.width - t, this.boundingRect.height = e.height;
1357
- }
1358
- calculateSpace(e) {
1359
- return this.axisPosition === "left" || this.axisPosition === "right" ? this.calculateSpaceIfDrawnVertical(e) : this.calculateSpaceIfDrawnHorizontally(e), this.recalculateScale(), {
1360
- width: this.boundingRect.width,
1361
- height: this.boundingRect.height
1362
- };
1363
- }
1364
- setBoundingBoxXY(e) {
1365
- this.boundingRect.x = e.x, this.boundingRect.y = e.y;
1366
- }
1367
- calculateOffsetByRotation(e) {
1368
- let t = this.normalizedLabelRotationInRad;
1369
- return t === 0 ? 0 : Math.sin(t) * this.getLabelDimension()[e] / 2;
1370
- }
1371
- getDrawableElementsForLeftAxis() {
1372
- let e = [];
1373
- if (this.showAxisLine) {
1374
- let t = this.boundingRect.x + this.boundingRect.width - this.axisConfig.axisLineWidth / 2;
1375
- e.push({
1376
- type: "path",
1377
- groupTexts: ["left-axis", "axisl-line"],
1378
- data: [{
1379
- path: `M ${t},${this.boundingRect.y} L ${t},${this.boundingRect.y + this.boundingRect.height} `,
1380
- strokeFill: this.axisThemeConfig.axisLineColor,
1381
- strokeWidth: this.axisConfig.axisLineWidth
1382
- }]
1383
- });
1384
- }
1385
- if (this.showLabel && e.push({
1386
- type: "text",
1387
- groupTexts: ["left-axis", "label"],
1388
- data: this.getTickValues().map((e) => ({
1389
- text: e.toString(),
1390
- x: this.boundingRect.x + this.boundingRect.width - (this.showLabel ? this.axisConfig.labelPadding : 0) - (this.showTick ? this.axisConfig.tickLength : 0) - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0),
1391
- y: this.getScaleValue(e),
1392
- fill: this.axisThemeConfig.labelColor,
1393
- fontSize: this.axisConfig.labelFontSize,
1394
- rotation: 0,
1395
- verticalPos: "middle",
1396
- horizontalPos: "right"
1397
- }))
1398
- }), this.showTick) {
1399
- let t = this.boundingRect.x + this.boundingRect.width - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0);
1400
- e.push({
1401
- type: "path",
1402
- groupTexts: ["left-axis", "ticks"],
1403
- data: this.getTickValues().map((e) => ({
1404
- path: `M ${t},${this.getScaleValue(e)} L ${t - this.axisConfig.tickLength},${this.getScaleValue(e)}`,
1405
- strokeFill: this.axisThemeConfig.tickColor,
1406
- strokeWidth: this.axisConfig.tickWidth
1407
- }))
1408
- });
1409
- }
1410
- return this.showTitle && e.push({
1411
- type: "text",
1412
- groupTexts: ["left-axis", "title"],
1413
- data: [{
1414
- text: this.title,
1415
- x: this.boundingRect.x + this.axisConfig.titlePadding,
1416
- y: this.boundingRect.y + this.boundingRect.height / 2,
1417
- fill: this.axisThemeConfig.titleColor,
1418
- fontSize: this.axisConfig.titleFontSize,
1419
- rotation: 270,
1420
- verticalPos: "top",
1421
- horizontalPos: "center"
1422
- }]
1423
- }), e;
1424
- }
1425
- getDrawableElementsForBottomAxis() {
1426
- let e = [];
1427
- if (this.showAxisLine) {
1428
- let t = this.boundingRect.y + this.axisConfig.axisLineWidth / 2;
1429
- e.push({
1430
- type: "path",
1431
- groupTexts: ["bottom-axis", "axis-line"],
1432
- data: [{
1433
- path: `M ${this.boundingRect.x},${t} L ${this.boundingRect.x + this.boundingRect.width},${t}`,
1434
- strokeFill: this.axisThemeConfig.axisLineColor,
1435
- strokeWidth: this.axisConfig.axisLineWidth
1436
- }]
1437
- });
1438
- }
1439
- if (this.showLabel && e.push({
1440
- type: "text",
1441
- groupTexts: ["bottom-axis", "label"],
1442
- data: this.getTickValues().map((e) => ({
1443
- text: e.toString(),
1444
- x: this.getScaleValue(e) + this.calculateOffsetByRotation("height"),
1445
- y: this.boundingRect.y + this.axisConfig.labelPadding + (this.showTick ? this.axisConfig.tickLength : 0) + (this.showAxisLine ? this.axisConfig.axisLineWidth : 0) + Math.abs(this.calculateOffsetByRotation("width")),
1446
- fill: this.axisThemeConfig.labelColor,
1447
- fontSize: this.axisConfig.labelFontSize,
1448
- rotation: this.normalizedLabelRotationInRad * 180 / Math.PI,
1449
- verticalPos: "top",
1450
- horizontalPos: "center"
1451
- }))
1452
- }), this.showTick) {
1453
- let t = this.boundingRect.y + (this.showAxisLine ? this.axisConfig.axisLineWidth : 0);
1454
- e.push({
1455
- type: "path",
1456
- groupTexts: ["bottom-axis", "ticks"],
1457
- data: this.getTickValues().map((e) => ({
1458
- path: `M ${this.getScaleValue(e)},${t} L ${this.getScaleValue(e)},${t + this.axisConfig.tickLength}`,
1459
- strokeFill: this.axisThemeConfig.tickColor,
1460
- strokeWidth: this.axisConfig.tickWidth
1461
- }))
1462
- });
1463
- }
1464
- return this.showTitle && e.push({
1465
- type: "text",
1466
- groupTexts: ["bottom-axis", "title"],
1467
- data: [{
1468
- text: this.title,
1469
- x: this.range[0] + (this.range[1] - this.range[0]) / 2,
1470
- y: this.boundingRect.y + this.boundingRect.height - this.axisConfig.titlePadding - this.titleTextHeight,
1471
- fill: this.axisThemeConfig.titleColor,
1472
- fontSize: this.axisConfig.titleFontSize,
1473
- rotation: 0,
1474
- verticalPos: "top",
1475
- horizontalPos: "center"
1476
- }]
1477
- }), e;
1478
- }
1479
- getDrawableElementsForTopAxis() {
1480
- let e = [];
1481
- if (this.showAxisLine) {
1482
- let t = this.boundingRect.y + this.boundingRect.height - this.axisConfig.axisLineWidth / 2;
1483
- e.push({
1484
- type: "path",
1485
- groupTexts: ["top-axis", "axis-line"],
1486
- data: [{
1487
- path: `M ${this.boundingRect.x},${t} L ${this.boundingRect.x + this.boundingRect.width},${t}`,
1488
- strokeFill: this.axisThemeConfig.axisLineColor,
1489
- strokeWidth: this.axisConfig.axisLineWidth
1490
- }]
1491
- });
1492
- }
1493
- if (this.showLabel && e.push({
1494
- type: "text",
1495
- groupTexts: ["top-axis", "label"],
1496
- data: this.getTickValues().map((e) => ({
1497
- text: e.toString(),
1498
- x: this.getScaleValue(e),
1499
- y: this.boundingRect.y + (this.showTitle ? this.titleTextHeight + this.axisConfig.titlePadding * 2 : 0) + this.axisConfig.labelPadding,
1500
- fill: this.axisThemeConfig.labelColor,
1501
- fontSize: this.axisConfig.labelFontSize,
1502
- rotation: 0,
1503
- verticalPos: "top",
1504
- horizontalPos: "center"
1505
- }))
1506
- }), this.showTick) {
1507
- let t = this.boundingRect.y;
1508
- e.push({
1509
- type: "path",
1510
- groupTexts: ["top-axis", "ticks"],
1511
- data: this.getTickValues().map((e) => ({
1512
- path: `M ${this.getScaleValue(e)},${t + this.boundingRect.height - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)} L ${this.getScaleValue(e)},${t + this.boundingRect.height - this.axisConfig.tickLength - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)}`,
1513
- strokeFill: this.axisThemeConfig.tickColor,
1514
- strokeWidth: this.axisConfig.tickWidth
1515
- }))
1516
- });
1517
- }
1518
- return this.showTitle && e.push({
1519
- type: "text",
1520
- groupTexts: ["top-axis", "title"],
1521
- data: [{
1522
- text: this.title,
1523
- x: this.boundingRect.x + this.boundingRect.width / 2,
1524
- y: this.boundingRect.y + this.axisConfig.titlePadding,
1525
- fill: this.axisThemeConfig.titleColor,
1526
- fontSize: this.axisConfig.titleFontSize,
1527
- rotation: 0,
1528
- verticalPos: "top",
1529
- horizontalPos: "center"
1530
- }]
1531
- }), e;
1532
- }
1533
- getDrawableElements() {
1534
- if (this.axisPosition === "left") return this.getDrawableElementsForLeftAxis();
1535
- if (this.axisPosition === "right") throw Error("Drawing of right axis is not implemented");
1536
- return this.axisPosition === "bottom" ? this.getDrawableElementsForBottomAxis() : this.axisPosition === "top" ? this.getDrawableElementsForTopAxis() : [];
1537
- }
1538
- }, M = class extends j {
1539
- static {
1540
- t(this, "BandAxis");
1541
- }
1542
- constructor(e, t, n, r, i) {
1543
- super(e, r, i, t), this.categories = n, this.scale = S().domain(this.categories).range(this.getRange());
1544
- }
1545
- setRange(e) {
1546
- super.setRange(e);
1547
- }
1548
- recalculateScale() {
1549
- this.scale = S().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5), e.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
1550
- }
1551
- getTickValues() {
1552
- return this.categories;
1553
- }
1554
- getScaleValue(e) {
1555
- return this.scale(e) ?? this.getRange()[0];
1556
- }
1557
- }, ee = class extends j {
1558
- static {
1559
- t(this, "LinearAxis");
1560
- }
1561
- constructor(e, t, n, r, i) {
1562
- super(e, r, i, t), this.domain = n, this.scale = m().domain(this.domain).range(this.getRange());
1563
- }
1564
- getTickValues() {
1565
- return this.scale.ticks();
1566
- }
1567
- recalculateScale() {
1568
- let e = [...this.domain];
1569
- this.axisPosition === "left" && e.reverse(), this.scale = m().domain(e).range(this.getRange());
1570
- }
1571
- getScaleValue(e) {
1572
- return this.scale(e);
1573
- }
1574
- };
1575
- function N(e, t, n, r) {
1576
- let i = new O(r);
1577
- return E(e) ? new M(t, n, e.categories, e.title, i) : new ee(t, n, [e.min, e.max], e.title, i);
1578
- }
1579
- t(N, "getAxis");
1580
- var te = class {
1581
- constructor(e, t, n, r) {
1582
- this.textDimensionCalculator = e, this.chartConfig = t, this.chartData = n, this.chartThemeConfig = r, this.titleWidth = 0, this.boundingRect = {
1583
- x: 0,
1584
- y: 0,
1585
- width: 0,
1586
- height: 0
1587
- }, this.showChartTitle = !1;
1588
- }
1589
- static {
1590
- t(this, "ChartTitle");
1591
- }
1592
- setBoundingBoxXY(e) {
1593
- this.boundingRect.x = e.x, this.boundingRect.y = e.y;
1594
- }
1595
- calculateSpace(e) {
1596
- let t = this.textDimensionCalculator.getMaxDimension([this.chartData.title], this.chartConfig.titleFontSize), n = Math.max(t.width, e.width), r = t.height + 2 * this.chartConfig.titlePadding;
1597
- return r <= e.height && this.chartConfig.showTitle && this.chartData.title && (this.boundingRect.width = n, this.boundingRect.height = r, this.titleWidth = t.width, this.showChartTitle = !0), {
1598
- width: this.boundingRect.width,
1599
- height: this.boundingRect.height
1600
- };
1601
- }
1602
- alignTo(e, t) {
1603
- let n = Math.min(this.titleWidth, this.chartConfig.width) / 2, r = Math.min(Math.max((e + t) / 2, n), this.chartConfig.width - n);
1604
- this.boundingRect.x = r - n, this.boundingRect.width = n * 2;
1605
- }
1606
- getDrawableElements() {
1607
- let e = [];
1608
- return this.showChartTitle && e.push({
1609
- groupTexts: ["chart-title"],
1610
- type: "text",
1611
- data: [{
1612
- fontSize: this.chartConfig.titleFontSize,
1613
- text: this.chartData.title,
1614
- verticalPos: "middle",
1615
- horizontalPos: "center",
1616
- x: this.boundingRect.x + this.boundingRect.width / 2,
1617
- y: this.boundingRect.y + this.boundingRect.height / 2,
1618
- fill: this.chartThemeConfig.titleColor,
1619
- rotation: 0
1620
- }]
1621
- }), e;
1622
- }
1623
- };
1624
- function P(e, t, n, r) {
1625
- return new te(new O(r), e, t, n);
1626
- }
1627
- t(P, "getChartTitleComponent");
1628
- var ne = .75, re = .5, ie = .35;
1629
- function F(e) {
1630
- return {
1631
- fontSize: e,
1632
- markerSize: e * ne,
1633
- markerSpacing: e * ie,
1634
- itemSpacing: e * re
1635
- };
1636
- }
1637
- t(F, "getLegendLayout");
1638
- var ae = class {
1639
- constructor(e, t, n, r) {
1640
- this.textDimensionCalculator = e, this.chartConfig = t, this.chartData = n, this.chartThemeConfig = r, this.boundingRect = {
1641
- x: 0,
1642
- y: 0,
1643
- width: 0,
1644
- height: 0
1645
- }, this.visiblePlots = [];
1646
- }
1647
- static {
1648
- t(this, "ChartLegend");
1649
- }
1650
- setBoundingBoxXY(e) {
1651
- this.boundingRect.x = e.x, this.boundingRect.y = e.y;
1652
- }
1653
- calculateSpace(e) {
1654
- if (this.visiblePlots = this.chartConfig.showLegend ? this.chartData.plots.filter((e) => e.title) : [], this.visiblePlots.length === 0) return this.boundingRect.width = 0, this.boundingRect.height = 0, {
1655
- width: 0,
1656
- height: 0
1657
- };
1658
- let { fontSize: t, markerSize: n, markerSpacing: r, itemSpacing: i } = F(this.chartConfig.legendFontSize), a = this.textDimensionCalculator.getMaxDimension(this.visiblePlots.map((e) => e.title), t), o = this.chartConfig.legendPadding * 2 + n + r + a.width, s = this.chartConfig.legendPadding * 2 + this.visiblePlots.length * t + (this.visiblePlots.length - 1) * i;
1659
- return o <= e.width && s <= e.height ? (this.boundingRect.width = o, this.boundingRect.height = s) : (this.visiblePlots = [], this.boundingRect.width = 0, this.boundingRect.height = 0), {
1660
- width: this.boundingRect.width,
1661
- height: this.boundingRect.height
1662
- };
1663
- }
1664
- getDrawableElements() {
1665
- if (this.visiblePlots.length === 0) return [];
1666
- let { fontSize: e, markerSize: t, markerSpacing: n, itemSpacing: r } = F(this.chartConfig.legendFontSize), i = e + r, a = this.boundingRect.x + this.chartConfig.legendPadding, o = this.boundingRect.y + this.chartConfig.legendPadding, s = [], c = [];
1667
- for (let [e, n] of this.visiblePlots.entries()) if (T(n)) s.push({
1668
- x: a,
1669
- y: o + e * i,
1670
- width: t,
1671
- height: t,
1672
- fill: n.fill,
1673
- strokeFill: n.fill,
1674
- strokeWidth: 0
1675
- });
1676
- else {
1677
- let r = o + e * i + t / 2;
1678
- c.push({
1679
- path: `M ${a},${r} L ${a + t},${r}`,
1680
- strokeFill: n.strokeFill,
1681
- strokeWidth: n.strokeWidth
1682
- });
1683
- }
1684
- return [
1685
- {
1686
- groupTexts: ["legend", "markers"],
1687
- type: "rect",
1688
- data: s
1689
- },
1690
- {
1691
- groupTexts: ["legend", "markers"],
1692
- type: "path",
1693
- data: c
1694
- },
1695
- {
1696
- groupTexts: ["legend", "label"],
1697
- type: "text",
1698
- data: this.visiblePlots.map((r, s) => ({
1699
- text: r.title,
1700
- x: a + t + n,
1701
- y: o + s * i + t / 2,
1702
- fill: this.chartThemeConfig.legendTextColor,
1703
- fontSize: e,
1704
- rotation: 0,
1705
- verticalPos: "middle",
1706
- horizontalPos: "left"
1707
- }))
1708
- }
1709
- ];
1710
- }
1711
- };
1712
- function I(e, t, n, r) {
1713
- return new ae(new O(r), e, t, n);
1714
- }
1715
- t(I, "getChartLegendComponent");
1716
- var oe = class {
1717
- constructor(e, t, n, r, i) {
1718
- this.plotData = e, this.xAxis = t, this.yAxis = n, this.orientation = r, this.plotIndex = i;
1719
- }
1720
- static {
1721
- t(this, "LinePlot");
1722
- }
1723
- getDrawableElement() {
1724
- let e = this.plotData.data.map((e) => [this.xAxis.getScaleValue(e[0]), this.yAxis.getScaleValue(e[1])]), t;
1725
- if (t = this.orientation === "horizontal" ? v().y((e) => e[0]).x((e) => e[1])(e) : v().x((e) => e[0]).y((e) => e[1])(e), !t) return [];
1726
- let n = [{
1727
- groupTexts: ["plot", `line-plot-${this.plotIndex}`],
1728
- type: "path",
1729
- data: [{
1730
- path: t,
1731
- strokeFill: this.plotData.strokeFill,
1732
- strokeWidth: this.plotData.strokeWidth
1733
- }]
1734
- }];
1735
- if (this.plotData.pointLabels && this.plotData.pointLabels.length > 0) {
1736
- let t = [];
1737
- for (let [n, [r, i]] of e.entries()) {
1738
- let e = this.plotData.pointLabels[n];
1739
- e && (this.orientation === "horizontal" ? t.push({
1740
- x: i + 10,
1741
- y: r,
1742
- text: e,
1743
- fill: this.plotData.strokeFill,
1744
- verticalPos: "middle",
1745
- horizontalPos: "left",
1746
- fontSize: 12,
1747
- rotation: 0
1748
- }) : t.push({
1749
- x: r,
1750
- y: i - 10,
1751
- text: e,
1752
- fill: this.plotData.strokeFill,
1753
- verticalPos: "middle",
1754
- horizontalPos: "center",
1755
- fontSize: 12,
1756
- rotation: 0
1757
- }));
1758
- }
1759
- t.length > 0 && n.push({
1760
- groupTexts: [
1761
- "plot",
1762
- `line-plot-${this.plotIndex}`,
1763
- "labels"
1764
- ],
1765
- type: "text",
1766
- data: t
1767
- });
1768
- }
1769
- return n;
1770
- }
1771
- }, se = class {
1772
- constructor(e, t, n, r, i, a) {
1773
- this.barData = e, this.boundingRect = t, this.xAxis = n, this.yAxis = r, this.orientation = i, this.plotIndex = a;
1774
- }
1775
- static {
1776
- t(this, "BarPlot");
1777
- }
1778
- getDrawableElement() {
1779
- let e = this.barData.data.map((e) => [this.xAxis.getScaleValue(e[0]), this.yAxis.getScaleValue(e[1])]), t = Math.min(this.xAxis.getAxisOuterPadding() * 2, this.xAxis.getTickDistance()) * .95, n = t / 2;
1780
- return this.orientation === "horizontal" ? [{
1781
- groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
1782
- type: "rect",
1783
- data: e.map((e) => ({
1784
- x: this.boundingRect.x,
1785
- y: e[0] - n,
1786
- height: t,
1787
- width: e[1] - this.boundingRect.x,
1788
- fill: this.barData.fill,
1789
- strokeWidth: 0,
1790
- strokeFill: this.barData.fill
1791
- }))
1792
- }] : [{
1793
- groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
1794
- type: "rect",
1795
- data: e.map((e) => ({
1796
- x: e[0] - n,
1797
- y: e[1],
1798
- width: t,
1799
- height: this.boundingRect.y + this.boundingRect.height - e[1],
1800
- fill: this.barData.fill,
1801
- strokeWidth: 0,
1802
- strokeFill: this.barData.fill
1803
- }))
1804
- }];
1805
- }
1806
- }, ce = class {
1807
- constructor(e, t, n) {
1808
- this.chartConfig = e, this.chartData = t, this.chartThemeConfig = n, this.boundingRect = {
1809
- x: 0,
1810
- y: 0,
1811
- width: 0,
1812
- height: 0
1813
- };
1814
- }
1815
- static {
1816
- t(this, "BasePlot");
1817
- }
1818
- setAxes(e, t) {
1819
- this.xAxis = e, this.yAxis = t;
1820
- }
1821
- setBoundingBoxXY(e) {
1822
- this.boundingRect.x = e.x, this.boundingRect.y = e.y;
1823
- }
1824
- calculateSpace(e) {
1825
- return this.boundingRect.width = e.width, this.boundingRect.height = e.height, {
1826
- width: this.boundingRect.width,
1827
- height: this.boundingRect.height
1828
- };
1829
- }
1830
- getDrawableElements() {
1831
- if (!(this.xAxis && this.yAxis)) throw Error("Axes must be passed to render Plots");
1832
- let e = [];
1833
- for (let [t, n] of this.chartData.plots.entries()) switch (n.type) {
1834
- case "line":
1835
- {
1836
- let r = new oe(n, this.xAxis, this.yAxis, this.chartConfig.chartOrientation, t);
1837
- e.push(...r.getDrawableElement());
1838
- }
1839
- break;
1840
- case "bar":
1841
- {
1842
- let r = new se(n, this.boundingRect, this.xAxis, this.yAxis, this.chartConfig.chartOrientation, t);
1843
- e.push(...r.getDrawableElement());
1844
- }
1845
- break;
1846
- }
1847
- return e;
1848
- }
1849
- };
1850
- function le(e, t, n) {
1851
- return new ce(e, t, n);
1852
- }
1853
- t(le, "getPlotComponent");
1854
- var ue = class {
1855
- constructor(e, t, n, r) {
1856
- this.chartConfig = e, this.chartData = t, this.componentStore = {
1857
- title: P(e, t, n, r),
1858
- plot: le(e, t, n),
1859
- legend: I(e, t, n, r),
1860
- xAxis: N(t.xAxis, e.xAxis, {
1861
- titleColor: n.xAxisTitleColor,
1862
- labelColor: n.xAxisLabelColor,
1863
- tickColor: n.xAxisTickColor,
1864
- axisLineColor: n.xAxisLineColor
1865
- }, r),
1866
- yAxis: N(t.yAxis, e.yAxis, {
1867
- titleColor: n.yAxisTitleColor,
1868
- labelColor: n.yAxisLabelColor,
1869
- tickColor: n.yAxisTickColor,
1870
- axisLineColor: n.yAxisLineColor
1871
- }, r)
1872
- };
1873
- }
1874
- static {
1875
- t(this, "Orchestrator");
1876
- }
1877
- calculateVerticalSpace() {
1878
- let e = this.chartConfig.width, t = this.chartConfig.height, n = 0, r = 0, i = {
1879
- width: 0,
1880
- height: 0
1881
- }, a = Math.floor(e * this.chartConfig.plotReservedSpacePercent / 100), o = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), s = this.componentStore.plot.calculateSpace({
1882
- width: a,
1883
- height: o
1884
- });
1885
- e -= s.width, t -= s.height, s = this.componentStore.title.calculateSpace({
1886
- width: this.chartConfig.width,
1887
- height: t
1888
- }), r = s.height, t -= s.height, this.componentStore.xAxis.setAxisPosition("bottom"), s = this.componentStore.xAxis.calculateSpace({
1889
- width: e,
1890
- height: t
1891
- }), t -= s.height, this.componentStore.yAxis.setAxisPosition("left"), s = this.componentStore.yAxis.calculateSpace({
1892
- width: e,
1893
- height: t
1894
- }), n = s.width, e -= s.width, i = this.componentStore.legend.calculateSpace({
1895
- width: e,
1896
- height: o
1897
- }), e -= i.width, e > 0 && (a += e, e = 0), t > 0 && (o += t, t = 0), this.componentStore.plot.calculateSpace({
1898
- width: a,
1899
- height: o
1900
- }), this.componentStore.plot.setBoundingBoxXY({
1901
- x: n,
1902
- y: r
1903
- }), this.componentStore.title.alignTo(n, n + a), this.componentStore.legend.setBoundingBoxXY({
1904
- x: n + a,
1905
- y: r + Math.max((o - i.height) / 2, 0)
1906
- }), this.componentStore.xAxis.setRange([n, n + a]), this.componentStore.xAxis.setBoundingBoxXY({
1907
- x: n,
1908
- y: r + o
1909
- }), this.componentStore.yAxis.setRange([r, r + o]), this.componentStore.yAxis.setBoundingBoxXY({
1910
- x: 0,
1911
- y: r
1912
- }), this.chartData.plots.some((e) => T(e)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1913
- }
1914
- calculateHorizontalSpace() {
1915
- let e = this.chartConfig.width, t = this.chartConfig.height, n = 0, r = 0, i = 0, a = {
1916
- width: 0,
1917
- height: 0
1918
- }, o = Math.floor(e * this.chartConfig.plotReservedSpacePercent / 100), s = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), c = this.componentStore.plot.calculateSpace({
1919
- width: o,
1920
- height: s
1921
- });
1922
- e -= c.width, t -= c.height, c = this.componentStore.title.calculateSpace({
1923
- width: this.chartConfig.width,
1924
- height: t
1925
- }), n = c.height, t -= c.height, this.componentStore.xAxis.setAxisPosition("left"), c = this.componentStore.xAxis.calculateSpace({
1926
- width: e,
1927
- height: t
1928
- }), e -= c.width, r = c.width, this.componentStore.yAxis.setAxisPosition("top"), c = this.componentStore.yAxis.calculateSpace({
1929
- width: e,
1930
- height: t
1931
- }), t -= c.height, i = n + c.height, a = this.componentStore.legend.calculateSpace({
1932
- width: e,
1933
- height: s
1934
- }), e -= a.width, e > 0 && (o += e, e = 0), t > 0 && (s += t, t = 0), this.componentStore.plot.calculateSpace({
1935
- width: o,
1936
- height: s
1937
- }), this.componentStore.plot.setBoundingBoxXY({
1938
- x: r,
1939
- y: i
1940
- }), this.componentStore.title.alignTo(r, r + o), this.componentStore.legend.setBoundingBoxXY({
1941
- x: r + o,
1942
- y: i + Math.max((s - a.height) / 2, 0)
1943
- }), this.componentStore.yAxis.setRange([r, r + o]), this.componentStore.yAxis.setBoundingBoxXY({
1944
- x: r,
1945
- y: n
1946
- }), this.componentStore.xAxis.setRange([i, i + s]), this.componentStore.xAxis.setBoundingBoxXY({
1947
- x: 0,
1948
- y: i
1949
- }), this.chartData.plots.some((e) => T(e)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1950
- }
1951
- calculateSpace() {
1952
- this.chartConfig.chartOrientation === "horizontal" ? this.calculateHorizontalSpace() : this.calculateVerticalSpace();
1953
- }
1954
- getDrawableElement() {
1955
- this.calculateSpace();
1956
- let e = [];
1957
- this.componentStore.plot.setAxes(this.componentStore.xAxis, this.componentStore.yAxis);
1958
- for (let t of Object.values(this.componentStore)) e.push(...t.getDrawableElements());
1959
- return e;
1960
- }
1961
- }, de = class {
1962
- static {
1963
- t(this, "XYChartBuilder");
1964
- }
1965
- static build(e, t, n, r) {
1966
- return new ue(e, t, n, r).getDrawableElement();
1967
- }
1968
- }, L = 0, R, z = K(), B = G(), V = q(), H = B.plotColorPalette.split(",").map((e) => e.trim()), U = !1, W = !1;
1969
- function G() {
1970
- let e = r(), t = f();
1971
- return _(e.xyChart, t.themeVariables.xyChart);
1972
- }
1973
- t(G, "getChartDefaultThemeConfig");
1974
- function K() {
1975
- let e = f();
1976
- return _(l.xyChart, e.xyChart);
1977
- }
1978
- t(K, "getChartDefaultConfig");
1979
- function q() {
1980
- return {
1981
- yAxis: {
1982
- type: "linear",
1983
- title: "",
1984
- min: Infinity,
1985
- max: -Infinity
1986
- },
1987
- xAxis: {
1988
- type: "band",
1989
- title: "",
1990
- categories: []
1991
- },
1992
- title: "",
1993
- plots: []
1994
- };
1995
- }
1996
- t(q, "getChartDefaultData");
1997
- function J(e) {
1998
- let t = f();
1999
- return p(e.trim(), t);
2000
- }
2001
- t(J, "textSanitizer");
2002
- function Y(e) {
2003
- R = e;
2004
- }
2005
- t(Y, "setTmpSVGG");
2006
- function fe(e) {
2007
- e === "horizontal" ? z.chartOrientation = "horizontal" : z.chartOrientation = "vertical";
2008
- }
2009
- t(fe, "setOrientation");
2010
- function pe(e) {
2011
- V.xAxis.title = J(e.text);
2012
- }
2013
- t(pe, "setXAxisTitle");
2014
- function X(e, t) {
2015
- V.xAxis = {
2016
- type: "linear",
2017
- title: V.xAxis.title,
2018
- min: e,
2019
- max: t
2020
- }, U = !0;
2021
- }
2022
- t(X, "setXAxisRangeData");
2023
- function me(e) {
2024
- V.xAxis = {
2025
- type: "band",
2026
- title: V.xAxis.title,
2027
- categories: e.map((e) => J(e.text))
2028
- }, U = !0;
2029
- }
2030
- t(me, "setXAxisBand");
2031
- function he(e) {
2032
- V.yAxis.title = J(e.text);
2033
- }
2034
- t(he, "setYAxisTitle");
2035
- function Z(e, t) {
2036
- V.yAxis = {
2037
- type: "linear",
2038
- title: V.yAxis.title,
2039
- min: e,
2040
- max: t
2041
- }, W = !0;
2042
- }
2043
- t(Z, "setYAxisRangeData");
2044
- function ge(e) {
2045
- let t = Math.min(...e), n = Math.max(...e), r = D(V.yAxis) ? V.yAxis.min : Infinity, i = D(V.yAxis) ? V.yAxis.max : -Infinity;
2046
- V.yAxis = {
2047
- type: "linear",
2048
- title: V.yAxis.title,
2049
- min: Math.min(r, t),
2050
- max: Math.max(i, n)
2051
- };
2052
- }
2053
- t(ge, "setYAxisRangeFromPlotData");
2054
- function Q(e) {
2055
- let t = [];
2056
- if (e.length === 0) return t;
2057
- if (!U) {
2058
- let t = D(V.xAxis) ? V.xAxis.min : Infinity, n = D(V.xAxis) ? V.xAxis.max : -Infinity;
2059
- X(Math.min(t, 1), Math.max(n, e.length));
2060
- }
2061
- if (E(V.xAxis) && e.length > V.xAxis.categories.length && (e = e.slice(0, V.xAxis.categories.length)), W || ge(e), E(V.xAxis) && (t = V.xAxis.categories.map((t, n) => [t, e[n]])), D(V.xAxis)) {
2062
- let n = V.xAxis.min, r = V.xAxis.max;
2063
- if (e.length === 1) t = [[`${n}`, e[0]]];
2064
- else {
2065
- let i = (r - n) / (e.length - 1);
2066
- t = e.map((e, t) => [`${n + t * i}`, e]);
2067
- }
2068
- }
2069
- return t;
2070
- }
2071
- t(Q, "transformDataWithoutCategory");
2072
- function $(e) {
2073
- return H[e === 0 ? 0 : e % H.length];
2074
- }
2075
- t($, "getPlotColorFromPalette");
2076
- function _e(e, t) {
2077
- let n = t.map((e) => e.value), r = t.map((e) => e.label ? J(e.label) : ""), i = Q(n), a = r.some((e) => e !== "");
2078
- V.plots.push({
2079
- type: "line",
2080
- title: J(e.text),
2081
- strokeFill: $(L),
2082
- strokeWidth: 2,
2083
- data: i,
2084
- ...a ? { pointLabels: r } : {}
2085
- }), L++;
2086
- }
2087
- t(_e, "setLineData");
2088
- function ve(e, t) {
2089
- let n = Q(t.map((e) => e.value));
2090
- V.plots.push({
2091
- type: "bar",
2092
- title: J(e.text),
2093
- fill: $(L),
2094
- data: n
2095
- }), L++;
2096
- }
2097
- t(ve, "setBarData");
2098
- function ye() {
2099
- if (V.plots.length === 0) throw Error("No Plot to render, please provide a plot with some data");
2100
- return V.title = n(), de.build(z, V, B, R);
2101
- }
2102
- t(ye, "getDrawableElem");
2103
- function be() {
2104
- return B;
2105
- }
2106
- t(be, "getChartThemeConfig");
2107
- function xe() {
2108
- return z;
2109
- }
2110
- t(xe, "getChartConfig");
2111
- function Se() {
2112
- return V;
2113
- }
2114
- t(Se, "getXYChartData");
2115
- var Ce = {
2116
- parser: w,
2117
- db: {
2118
- getDrawableElem: ye,
2119
- clear: /* @__PURE__ */ t(function() {
2120
- s(), L = 0, z = K(), V = q(), B = G(), H = B.plotColorPalette.split(",").map((e) => e.trim()), U = !1, W = !1;
2121
- }, "clear"),
2122
- setAccTitle: a,
2123
- getAccTitle: d,
2124
- setDiagramTitle: u,
2125
- getDiagramTitle: n,
2126
- getAccDescription: o,
2127
- setAccDescription: i,
2128
- setOrientation: fe,
2129
- setXAxisTitle: pe,
2130
- setXAxisRangeData: X,
2131
- setXAxisBand: me,
2132
- setYAxisTitle: he,
2133
- setYAxisRangeData: Z,
2134
- setLineData: _e,
2135
- setBarData: ve,
2136
- setTmpSVGG: Y,
2137
- getChartThemeConfig: be,
2138
- getChartConfig: xe,
2139
- getXYChartData: Se
2140
- },
2141
- renderer: { draw: /* @__PURE__ */ t((n, r, i, a) => {
2142
- let o = a.db, s = o.getChartThemeConfig(), l = o.getChartConfig(), u = o.getXYChartData().plots[0].data.map((e) => e[1]);
2143
- function d(e) {
2144
- return e === "top" ? "text-before-edge" : "middle";
2145
- }
2146
- t(d, "getDominantBaseLine");
2147
- function f(e) {
2148
- return e === "left" ? "start" : e === "right" ? "end" : "middle";
2149
- }
2150
- t(f, "getTextAnchor");
2151
- function p(e) {
2152
- return `translate(${e.x}, ${e.y}) rotate(${e.rotation || 0})`;
2153
- }
2154
- t(p, "getTextTransformation"), e.debug("Rendering xychart chart\n" + n);
2155
- let m = y(r), h = m.append("g").attr("class", "main"), g = h.append("rect").attr("width", l.width).attr("height", l.height).attr("class", "background");
2156
- c(m, l.height, l.width, !0), m.attr("viewBox", `0 0 ${l.width} ${l.height}`), g.attr("fill", s.backgroundColor), o.setTmpSVGG(m.append("g").attr("class", "mermaid-tmp-group"));
2157
- let _ = o.getDrawableElem(), v = {};
2158
- function b(e) {
2159
- let t = h, n = "";
2160
- for (let [r] of e.entries()) {
2161
- let i = h;
2162
- r > 0 && v[n] && (i = v[n]), n += e[r], t = v[n], t ||= v[n] = i.append("g").attr("class", e[r]);
2163
- }
2164
- return t;
2165
- }
2166
- t(b, "getGroup");
2167
- for (let e of _) {
2168
- if (e.data.length === 0) continue;
2169
- let n = b(e.groupTexts);
2170
- switch (e.type) {
2171
- case "rect":
2172
- if (n.selectAll("rect").data(e.data).enter().append("rect").attr("x", (e) => e.x).attr("y", (e) => e.y).attr("width", (e) => e.width).attr("height", (e) => e.height).attr("fill", (e) => e.fill).attr("stroke", (e) => e.strokeFill).attr("stroke-width", (e) => e.strokeWidth), l.showDataLabel) {
2173
- let r = l.showDataLabelOutsideBar;
2174
- if (l.chartOrientation === "horizontal") {
2175
- let i = function(e, t) {
2176
- let { data: n, label: r } = e;
2177
- return t * r.length * a <= n.width - o;
2178
- };
2179
- t(i, "fitsHorizontally");
2180
- let a = .7, o = 10, c = e.data.map((e, t) => ({
2181
- data: e,
2182
- label: u[t].toString()
2183
- })).filter((e) => e.data.width > 0 && e.data.height > 0), l = c.map((e) => {
2184
- let { data: t } = e, n = t.height * .7;
2185
- for (; !i(e, n) && n > 0;) --n;
2186
- return n;
2187
- }), d = Math.floor(Math.min(...l)), f = /* @__PURE__ */ t((e) => r ? e.data.x + e.data.width + 10 : e.data.x + e.data.width - 10, "determineLabelXPosition");
2188
- n.selectAll("text").data(c).enter().append("text").attr("x", f).attr("y", (e) => e.data.y + e.data.height / 2).attr("text-anchor", r ? "start" : "end").attr("dominant-baseline", "middle").attr("fill", s.dataLabelColor).attr("font-size", `${d}px`).text((e) => e.label);
2189
- } else {
2190
- let i = function(e, t, n) {
2191
- let { data: r, label: i } = e, a = t * i.length * .7, o = r.x + r.width / 2, s = o - a / 2, c = o + a / 2, l = s >= r.x && c <= r.x + r.width, u = r.y + n + t <= r.y + r.height;
2192
- return l && u;
2193
- };
2194
- t(i, "fitsInBar");
2195
- let a = e.data.map((e, t) => ({
2196
- data: e,
2197
- label: u[t].toString()
2198
- })).filter((e) => e.data.width > 0 && e.data.height > 0), o = a.map((e) => {
2199
- let { data: t, label: n } = e, r = t.width / (n.length * .7);
2200
- for (; !i(e, r, 10) && r > 0;) --r;
2201
- return r;
2202
- }), c = Math.floor(Math.min(...o)), l = /* @__PURE__ */ t((e) => r ? e.data.y - 10 : e.data.y + 10, "determineLabelYPosition");
2203
- n.selectAll("text").data(a).enter().append("text").attr("x", (e) => e.data.x + e.data.width / 2).attr("y", l).attr("text-anchor", "middle").attr("dominant-baseline", r ? "auto" : "hanging").attr("fill", s.dataLabelColor).attr("font-size", `${c}px`).text((e) => e.label);
2204
- }
2205
- }
2206
- break;
2207
- case "text":
2208
- n.selectAll("text").data(e.data).enter().append("text").attr("x", 0).attr("y", 0).attr("fill", (e) => e.fill).attr("font-size", (e) => e.fontSize).attr("dominant-baseline", (e) => d(e.verticalPos)).attr("text-anchor", (e) => f(e.horizontalPos)).attr("transform", (e) => p(e)).text((e) => e.text);
2209
- break;
2210
- case "path":
2211
- n.selectAll("path").data(e.data).enter().append("path").attr("d", (e) => e.path).attr("fill", (e) => e.fill ? e.fill : "none").attr("stroke", (e) => e.strokeFill).attr("stroke-width", (e) => e.strokeWidth);
2212
- break;
2213
- }
2214
- }
2215
- }, "draw") }
2216
- };
2217
- //#endregion
2218
- export { Ce as diagram };