@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,2001 +0,0 @@
1
- import { m as e, p as t } from "./src-Dcy0zUZH.js";
2
- import { n } from "./chunk-Y2CYZVJY-BYzrzvCI.js";
3
- import { C as r, E as i, H as a, U as o, _ as s, a as c, b as l, c as u, f as d, q as f, v as p, z as m } from "./chunk-DSNLSHJZ-CpA9d2CJ.js";
4
- import { t as h } from "./linear-Cvilv3OA.js";
5
- //#region node_modules/.pnpm/mermaid@12.2.0/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-D57K4MC3.mjs
6
- var g = (function() {
7
- var e = /* @__PURE__ */ n(function(e, t, n, r) {
8
- for (n ||= {}, r = e.length; r--; n[e[r]] = t);
9
- return n;
10
- }, "o"), t = [1, 3], r = [1, 4], i = [1, 5], a = [1, 6], o = [1, 7], s = [
11
- 1,
12
- 4,
13
- 5,
14
- 10,
15
- 12,
16
- 13,
17
- 14,
18
- 15,
19
- 18,
20
- 25,
21
- 35,
22
- 37,
23
- 39,
24
- 41,
25
- 42,
26
- 48,
27
- 50,
28
- 51,
29
- 52,
30
- 53,
31
- 54,
32
- 55,
33
- 56,
34
- 57,
35
- 60,
36
- 61,
37
- 63,
38
- 64,
39
- 65,
40
- 66,
41
- 67
42
- ], c = [
43
- 1,
44
- 4,
45
- 5,
46
- 10,
47
- 12,
48
- 13,
49
- 14,
50
- 15,
51
- 18,
52
- 25,
53
- 28,
54
- 35,
55
- 37,
56
- 39,
57
- 41,
58
- 42,
59
- 48,
60
- 50,
61
- 51,
62
- 52,
63
- 53,
64
- 54,
65
- 55,
66
- 56,
67
- 57,
68
- 60,
69
- 61,
70
- 63,
71
- 64,
72
- 65,
73
- 66,
74
- 67
75
- ], l = [
76
- 55,
77
- 56,
78
- 57
79
- ], u = [2, 36], d = [1, 37], f = [1, 36], p = [1, 38], m = [1, 35], h = [1, 43], g = [1, 41], _ = [1, 45], v = [1, 14], y = [1, 23], b = [1, 18], x = [1, 19], S = [1, 20], C = [1, 21], w = [1, 22], T = [1, 24], E = [1, 25], D = [1, 26], O = [1, 27], k = [1, 28], A = [1, 29], j = [1, 32], M = [1, 33], N = [1, 34], P = [1, 39], F = [1, 40], I = [1, 42], L = [1, 44], R = [1, 63], z = [1, 62], B = [
80
- 4,
81
- 5,
82
- 8,
83
- 10,
84
- 12,
85
- 13,
86
- 14,
87
- 15,
88
- 18,
89
- 44,
90
- 47,
91
- 49,
92
- 55,
93
- 56,
94
- 57,
95
- 63,
96
- 64,
97
- 65,
98
- 66,
99
- 67
100
- ], ee = [1, 66], te = [1, 67], ne = [1, 68], re = [1, 69], ie = [1, 70], ae = [1, 71], oe = [1, 72], se = [1, 73], ce = [1, 74], le = [1, 75], ue = [1, 76], de = [1, 77], V = [
101
- 4,
102
- 5,
103
- 6,
104
- 7,
105
- 8,
106
- 9,
107
- 10,
108
- 11,
109
- 12,
110
- 13,
111
- 14,
112
- 15,
113
- 18
114
- ], H = [1, 91], U = [1, 92], W = [1, 93], G = [1, 100], K = [1, 94], q = [1, 97], J = [1, 95], Y = [1, 96], X = [1, 98], Z = [1, 99], fe = [1, 103], pe = [
115
- 10,
116
- 55,
117
- 56,
118
- 57
119
- ], Q = [
120
- 4,
121
- 5,
122
- 6,
123
- 8,
124
- 10,
125
- 11,
126
- 13,
127
- 17,
128
- 18,
129
- 19,
130
- 20,
131
- 55,
132
- 56,
133
- 57
134
- ], me = {
135
- trace: /* @__PURE__ */ n(function() {}, "trace"),
136
- yy: {},
137
- symbols_: {
138
- error: 2,
139
- idStringToken: 3,
140
- ALPHA: 4,
141
- NUM: 5,
142
- NODE_STRING: 6,
143
- DOWN: 7,
144
- MINUS: 8,
145
- DEFAULT: 9,
146
- COMMA: 10,
147
- COLON: 11,
148
- AMP: 12,
149
- BRKT: 13,
150
- MULT: 14,
151
- UNICODE_TEXT: 15,
152
- styleComponent: 16,
153
- UNIT: 17,
154
- SPACE: 18,
155
- STYLE: 19,
156
- PCT: 20,
157
- idString: 21,
158
- style: 22,
159
- stylesOpt: 23,
160
- classDefStatement: 24,
161
- CLASSDEF: 25,
162
- start: 26,
163
- eol: 27,
164
- QUADRANT: 28,
165
- document: 29,
166
- line: 30,
167
- statement: 31,
168
- axisDetails: 32,
169
- quadrantDetails: 33,
170
- points: 34,
171
- title: 35,
172
- title_value: 36,
173
- acc_title: 37,
174
- acc_title_value: 38,
175
- acc_descr: 39,
176
- acc_descr_value: 40,
177
- acc_descr_multiline_value: 41,
178
- section: 42,
179
- text: 43,
180
- point_start: 44,
181
- point_x: 45,
182
- point_y: 46,
183
- class_name: 47,
184
- "X-AXIS": 48,
185
- "AXIS-TEXT-DELIMITER": 49,
186
- "Y-AXIS": 50,
187
- QUADRANT_1: 51,
188
- QUADRANT_2: 52,
189
- QUADRANT_3: 53,
190
- QUADRANT_4: 54,
191
- NEWLINE: 55,
192
- SEMI: 56,
193
- EOF: 57,
194
- alphaNumToken: 58,
195
- textNoTagsToken: 59,
196
- STR: 60,
197
- MD_STR: 61,
198
- alphaNum: 62,
199
- PUNCTUATION: 63,
200
- PLUS: 64,
201
- EQUALS: 65,
202
- DOT: 66,
203
- UNDERSCORE: 67,
204
- $accept: 0,
205
- $end: 1
206
- },
207
- terminals_: {
208
- 2: "error",
209
- 4: "ALPHA",
210
- 5: "NUM",
211
- 6: "NODE_STRING",
212
- 7: "DOWN",
213
- 8: "MINUS",
214
- 9: "DEFAULT",
215
- 10: "COMMA",
216
- 11: "COLON",
217
- 12: "AMP",
218
- 13: "BRKT",
219
- 14: "MULT",
220
- 15: "UNICODE_TEXT",
221
- 17: "UNIT",
222
- 18: "SPACE",
223
- 19: "STYLE",
224
- 20: "PCT",
225
- 25: "CLASSDEF",
226
- 28: "QUADRANT",
227
- 35: "title",
228
- 36: "title_value",
229
- 37: "acc_title",
230
- 38: "acc_title_value",
231
- 39: "acc_descr",
232
- 40: "acc_descr_value",
233
- 41: "acc_descr_multiline_value",
234
- 42: "section",
235
- 44: "point_start",
236
- 45: "point_x",
237
- 46: "point_y",
238
- 47: "class_name",
239
- 48: "X-AXIS",
240
- 49: "AXIS-TEXT-DELIMITER",
241
- 50: "Y-AXIS",
242
- 51: "QUADRANT_1",
243
- 52: "QUADRANT_2",
244
- 53: "QUADRANT_3",
245
- 54: "QUADRANT_4",
246
- 55: "NEWLINE",
247
- 56: "SEMI",
248
- 57: "EOF",
249
- 60: "STR",
250
- 61: "MD_STR",
251
- 63: "PUNCTUATION",
252
- 64: "PLUS",
253
- 65: "EQUALS",
254
- 66: "DOT",
255
- 67: "UNDERSCORE"
256
- },
257
- productions_: [
258
- 0,
259
- [3, 1],
260
- [3, 1],
261
- [3, 1],
262
- [3, 1],
263
- [3, 1],
264
- [3, 1],
265
- [3, 1],
266
- [3, 1],
267
- [3, 1],
268
- [3, 1],
269
- [3, 1],
270
- [3, 1],
271
- [16, 1],
272
- [16, 1],
273
- [16, 1],
274
- [16, 1],
275
- [16, 1],
276
- [16, 1],
277
- [16, 1],
278
- [16, 1],
279
- [16, 1],
280
- [16, 1],
281
- [21, 1],
282
- [21, 2],
283
- [22, 1],
284
- [22, 2],
285
- [23, 1],
286
- [23, 3],
287
- [24, 5],
288
- [26, 2],
289
- [26, 2],
290
- [26, 2],
291
- [29, 0],
292
- [29, 2],
293
- [30, 2],
294
- [31, 0],
295
- [31, 1],
296
- [31, 2],
297
- [31, 1],
298
- [31, 1],
299
- [31, 1],
300
- [31, 2],
301
- [31, 2],
302
- [31, 2],
303
- [31, 1],
304
- [31, 1],
305
- [34, 4],
306
- [34, 5],
307
- [34, 5],
308
- [34, 6],
309
- [32, 4],
310
- [32, 3],
311
- [32, 2],
312
- [32, 4],
313
- [32, 3],
314
- [32, 2],
315
- [33, 2],
316
- [33, 2],
317
- [33, 2],
318
- [33, 2],
319
- [27, 1],
320
- [27, 1],
321
- [27, 1],
322
- [43, 1],
323
- [43, 2],
324
- [43, 1],
325
- [43, 1],
326
- [62, 1],
327
- [62, 2],
328
- [58, 1],
329
- [58, 1],
330
- [58, 1],
331
- [58, 1],
332
- [58, 1],
333
- [58, 1],
334
- [58, 1],
335
- [58, 1],
336
- [58, 1],
337
- [58, 1],
338
- [58, 1],
339
- [58, 1],
340
- [59, 1],
341
- [59, 1],
342
- [59, 1]
343
- ],
344
- performAction: /* @__PURE__ */ n(function(e, t, n, r, i, a, o) {
345
- var s = a.length - 1;
346
- switch (i) {
347
- case 23:
348
- this.$ = a[s];
349
- break;
350
- case 24:
351
- this.$ = a[s - 1] + "" + a[s];
352
- break;
353
- case 26:
354
- this.$ = a[s - 1] + a[s];
355
- break;
356
- case 27:
357
- this.$ = [a[s].trim()];
358
- break;
359
- case 28:
360
- a[s - 2].push(a[s].trim()), this.$ = a[s - 2];
361
- break;
362
- case 29:
363
- this.$ = a[s - 4], r.addClass(a[s - 2], a[s]);
364
- break;
365
- case 37:
366
- this.$ = [];
367
- break;
368
- case 42:
369
- this.$ = a[s].trim(), r.setDiagramTitle(this.$);
370
- break;
371
- case 43:
372
- this.$ = a[s].trim(), r.setAccTitle(this.$);
373
- break;
374
- case 44:
375
- case 45:
376
- this.$ = a[s].trim(), r.setAccDescription(this.$);
377
- break;
378
- case 46:
379
- r.addSection(a[s].substr(8)), this.$ = a[s].substr(8);
380
- break;
381
- case 47:
382
- r.addPoint(a[s - 3], "", a[s - 1], a[s], []);
383
- break;
384
- case 48:
385
- r.addPoint(a[s - 4], a[s - 3], a[s - 1], a[s], []);
386
- break;
387
- case 49:
388
- r.addPoint(a[s - 4], "", a[s - 2], a[s - 1], a[s]);
389
- break;
390
- case 50:
391
- r.addPoint(a[s - 5], a[s - 4], a[s - 2], a[s - 1], a[s]);
392
- break;
393
- case 51:
394
- r.setXAxisLeftText(a[s - 2]), r.setXAxisRightText(a[s]);
395
- break;
396
- case 52:
397
- a[s - 1].text += " ⟶ ", r.setXAxisLeftText(a[s - 1]);
398
- break;
399
- case 53:
400
- r.setXAxisLeftText(a[s]);
401
- break;
402
- case 54:
403
- r.setYAxisBottomText(a[s - 2]), r.setYAxisTopText(a[s]);
404
- break;
405
- case 55:
406
- a[s - 1].text += " ⟶ ", r.setYAxisBottomText(a[s - 1]);
407
- break;
408
- case 56:
409
- r.setYAxisBottomText(a[s]);
410
- break;
411
- case 57:
412
- r.setQuadrant1Text(a[s]);
413
- break;
414
- case 58:
415
- r.setQuadrant2Text(a[s]);
416
- break;
417
- case 59:
418
- r.setQuadrant3Text(a[s]);
419
- break;
420
- case 60:
421
- r.setQuadrant4Text(a[s]);
422
- break;
423
- case 64:
424
- this.$ = {
425
- text: a[s],
426
- type: "text"
427
- };
428
- break;
429
- case 65:
430
- this.$ = {
431
- text: a[s - 1].text + "" + a[s],
432
- type: a[s - 1].type
433
- };
434
- break;
435
- case 66:
436
- this.$ = {
437
- text: a[s],
438
- type: "text"
439
- };
440
- break;
441
- case 67:
442
- this.$ = {
443
- text: a[s],
444
- type: "markdown"
445
- };
446
- break;
447
- case 68:
448
- this.$ = a[s];
449
- break;
450
- case 69:
451
- this.$ = a[s - 1] + "" + a[s];
452
- break;
453
- }
454
- }, "anonymous"),
455
- table: [
456
- {
457
- 18: t,
458
- 26: 1,
459
- 27: 2,
460
- 28: r,
461
- 55: i,
462
- 56: a,
463
- 57: o
464
- },
465
- { 1: [3] },
466
- {
467
- 18: t,
468
- 26: 8,
469
- 27: 2,
470
- 28: r,
471
- 55: i,
472
- 56: a,
473
- 57: o
474
- },
475
- {
476
- 18: t,
477
- 26: 9,
478
- 27: 2,
479
- 28: r,
480
- 55: i,
481
- 56: a,
482
- 57: o
483
- },
484
- e(s, [2, 33], { 29: 10 }),
485
- e(c, [2, 61]),
486
- e(c, [2, 62]),
487
- e(c, [2, 63]),
488
- { 1: [2, 30] },
489
- { 1: [2, 31] },
490
- e(l, u, {
491
- 30: 11,
492
- 31: 12,
493
- 24: 13,
494
- 32: 15,
495
- 33: 16,
496
- 34: 17,
497
- 43: 30,
498
- 58: 31,
499
- 1: [2, 32],
500
- 4: d,
501
- 5: f,
502
- 10: p,
503
- 12: m,
504
- 13: h,
505
- 14: g,
506
- 15: _,
507
- 18: v,
508
- 25: y,
509
- 35: b,
510
- 37: x,
511
- 39: S,
512
- 41: C,
513
- 42: w,
514
- 48: T,
515
- 50: E,
516
- 51: D,
517
- 52: O,
518
- 53: k,
519
- 54: A,
520
- 60: j,
521
- 61: M,
522
- 63: N,
523
- 64: P,
524
- 65: F,
525
- 66: I,
526
- 67: L
527
- }),
528
- e(s, [2, 34]),
529
- {
530
- 27: 46,
531
- 55: i,
532
- 56: a,
533
- 57: o
534
- },
535
- e(l, [2, 37]),
536
- e(l, u, {
537
- 24: 13,
538
- 32: 15,
539
- 33: 16,
540
- 34: 17,
541
- 43: 30,
542
- 58: 31,
543
- 31: 47,
544
- 4: d,
545
- 5: f,
546
- 10: p,
547
- 12: m,
548
- 13: h,
549
- 14: g,
550
- 15: _,
551
- 18: v,
552
- 25: y,
553
- 35: b,
554
- 37: x,
555
- 39: S,
556
- 41: C,
557
- 42: w,
558
- 48: T,
559
- 50: E,
560
- 51: D,
561
- 52: O,
562
- 53: k,
563
- 54: A,
564
- 60: j,
565
- 61: M,
566
- 63: N,
567
- 64: P,
568
- 65: F,
569
- 66: I,
570
- 67: L
571
- }),
572
- e(l, [2, 39]),
573
- e(l, [2, 40]),
574
- e(l, [2, 41]),
575
- { 36: [1, 48] },
576
- { 38: [1, 49] },
577
- { 40: [1, 50] },
578
- e(l, [2, 45]),
579
- e(l, [2, 46]),
580
- { 18: [1, 51] },
581
- {
582
- 4: d,
583
- 5: f,
584
- 10: p,
585
- 12: m,
586
- 13: h,
587
- 14: g,
588
- 15: _,
589
- 43: 52,
590
- 58: 31,
591
- 60: j,
592
- 61: M,
593
- 63: N,
594
- 64: P,
595
- 65: F,
596
- 66: I,
597
- 67: L
598
- },
599
- {
600
- 4: d,
601
- 5: f,
602
- 10: p,
603
- 12: m,
604
- 13: h,
605
- 14: g,
606
- 15: _,
607
- 43: 53,
608
- 58: 31,
609
- 60: j,
610
- 61: M,
611
- 63: N,
612
- 64: P,
613
- 65: F,
614
- 66: I,
615
- 67: L
616
- },
617
- {
618
- 4: d,
619
- 5: f,
620
- 10: p,
621
- 12: m,
622
- 13: h,
623
- 14: g,
624
- 15: _,
625
- 43: 54,
626
- 58: 31,
627
- 60: j,
628
- 61: M,
629
- 63: N,
630
- 64: P,
631
- 65: F,
632
- 66: I,
633
- 67: L
634
- },
635
- {
636
- 4: d,
637
- 5: f,
638
- 10: p,
639
- 12: m,
640
- 13: h,
641
- 14: g,
642
- 15: _,
643
- 43: 55,
644
- 58: 31,
645
- 60: j,
646
- 61: M,
647
- 63: N,
648
- 64: P,
649
- 65: F,
650
- 66: I,
651
- 67: L
652
- },
653
- {
654
- 4: d,
655
- 5: f,
656
- 10: p,
657
- 12: m,
658
- 13: h,
659
- 14: g,
660
- 15: _,
661
- 43: 56,
662
- 58: 31,
663
- 60: j,
664
- 61: M,
665
- 63: N,
666
- 64: P,
667
- 65: F,
668
- 66: I,
669
- 67: L
670
- },
671
- {
672
- 4: d,
673
- 5: f,
674
- 10: p,
675
- 12: m,
676
- 13: h,
677
- 14: g,
678
- 15: _,
679
- 43: 57,
680
- 58: 31,
681
- 60: j,
682
- 61: M,
683
- 63: N,
684
- 64: P,
685
- 65: F,
686
- 66: I,
687
- 67: L
688
- },
689
- {
690
- 4: d,
691
- 5: f,
692
- 8: R,
693
- 10: p,
694
- 12: m,
695
- 13: h,
696
- 14: g,
697
- 15: _,
698
- 18: z,
699
- 44: [1, 58],
700
- 47: [1, 59],
701
- 58: 61,
702
- 59: 60,
703
- 63: N,
704
- 64: P,
705
- 65: F,
706
- 66: I,
707
- 67: L
708
- },
709
- e(B, [2, 64]),
710
- e(B, [2, 66]),
711
- e(B, [2, 67]),
712
- e(B, [2, 70]),
713
- e(B, [2, 71]),
714
- e(B, [2, 72]),
715
- e(B, [2, 73]),
716
- e(B, [2, 74]),
717
- e(B, [2, 75]),
718
- e(B, [2, 76]),
719
- e(B, [2, 77]),
720
- e(B, [2, 78]),
721
- e(B, [2, 79]),
722
- e(B, [2, 80]),
723
- e(B, [2, 81]),
724
- e(s, [2, 35]),
725
- e(l, [2, 38]),
726
- e(l, [2, 42]),
727
- e(l, [2, 43]),
728
- e(l, [2, 44]),
729
- {
730
- 3: 65,
731
- 4: ee,
732
- 5: te,
733
- 6: ne,
734
- 7: re,
735
- 8: ie,
736
- 9: ae,
737
- 10: oe,
738
- 11: se,
739
- 12: ce,
740
- 13: le,
741
- 14: ue,
742
- 15: de,
743
- 21: 64
744
- },
745
- e(l, [2, 53], {
746
- 59: 60,
747
- 58: 61,
748
- 4: d,
749
- 5: f,
750
- 8: R,
751
- 10: p,
752
- 12: m,
753
- 13: h,
754
- 14: g,
755
- 15: _,
756
- 18: z,
757
- 49: [1, 78],
758
- 63: N,
759
- 64: P,
760
- 65: F,
761
- 66: I,
762
- 67: L
763
- }),
764
- e(l, [2, 56], {
765
- 59: 60,
766
- 58: 61,
767
- 4: d,
768
- 5: f,
769
- 8: R,
770
- 10: p,
771
- 12: m,
772
- 13: h,
773
- 14: g,
774
- 15: _,
775
- 18: z,
776
- 49: [1, 79],
777
- 63: N,
778
- 64: P,
779
- 65: F,
780
- 66: I,
781
- 67: L
782
- }),
783
- e(l, [2, 57], {
784
- 59: 60,
785
- 58: 61,
786
- 4: d,
787
- 5: f,
788
- 8: R,
789
- 10: p,
790
- 12: m,
791
- 13: h,
792
- 14: g,
793
- 15: _,
794
- 18: z,
795
- 63: N,
796
- 64: P,
797
- 65: F,
798
- 66: I,
799
- 67: L
800
- }),
801
- e(l, [2, 58], {
802
- 59: 60,
803
- 58: 61,
804
- 4: d,
805
- 5: f,
806
- 8: R,
807
- 10: p,
808
- 12: m,
809
- 13: h,
810
- 14: g,
811
- 15: _,
812
- 18: z,
813
- 63: N,
814
- 64: P,
815
- 65: F,
816
- 66: I,
817
- 67: L
818
- }),
819
- e(l, [2, 59], {
820
- 59: 60,
821
- 58: 61,
822
- 4: d,
823
- 5: f,
824
- 8: R,
825
- 10: p,
826
- 12: m,
827
- 13: h,
828
- 14: g,
829
- 15: _,
830
- 18: z,
831
- 63: N,
832
- 64: P,
833
- 65: F,
834
- 66: I,
835
- 67: L
836
- }),
837
- e(l, [2, 60], {
838
- 59: 60,
839
- 58: 61,
840
- 4: d,
841
- 5: f,
842
- 8: R,
843
- 10: p,
844
- 12: m,
845
- 13: h,
846
- 14: g,
847
- 15: _,
848
- 18: z,
849
- 63: N,
850
- 64: P,
851
- 65: F,
852
- 66: I,
853
- 67: L
854
- }),
855
- { 45: [1, 80] },
856
- { 44: [1, 81] },
857
- e(B, [2, 65]),
858
- e(B, [2, 82]),
859
- e(B, [2, 83]),
860
- e(B, [2, 84]),
861
- {
862
- 3: 83,
863
- 4: ee,
864
- 5: te,
865
- 6: ne,
866
- 7: re,
867
- 8: ie,
868
- 9: ae,
869
- 10: oe,
870
- 11: se,
871
- 12: ce,
872
- 13: le,
873
- 14: ue,
874
- 15: de,
875
- 18: [1, 82]
876
- },
877
- e(V, [2, 23]),
878
- e(V, [2, 1]),
879
- e(V, [2, 2]),
880
- e(V, [2, 3]),
881
- e(V, [2, 4]),
882
- e(V, [2, 5]),
883
- e(V, [2, 6]),
884
- e(V, [2, 7]),
885
- e(V, [2, 8]),
886
- e(V, [2, 9]),
887
- e(V, [2, 10]),
888
- e(V, [2, 11]),
889
- e(V, [2, 12]),
890
- e(l, [2, 52], {
891
- 58: 31,
892
- 43: 84,
893
- 4: d,
894
- 5: f,
895
- 10: p,
896
- 12: m,
897
- 13: h,
898
- 14: g,
899
- 15: _,
900
- 60: j,
901
- 61: M,
902
- 63: N,
903
- 64: P,
904
- 65: F,
905
- 66: I,
906
- 67: L
907
- }),
908
- e(l, [2, 55], {
909
- 58: 31,
910
- 43: 85,
911
- 4: d,
912
- 5: f,
913
- 10: p,
914
- 12: m,
915
- 13: h,
916
- 14: g,
917
- 15: _,
918
- 60: j,
919
- 61: M,
920
- 63: N,
921
- 64: P,
922
- 65: F,
923
- 66: I,
924
- 67: L
925
- }),
926
- { 46: [1, 86] },
927
- { 45: [1, 87] },
928
- {
929
- 4: H,
930
- 5: U,
931
- 6: W,
932
- 8: G,
933
- 11: K,
934
- 13: q,
935
- 16: 90,
936
- 17: J,
937
- 18: Y,
938
- 19: X,
939
- 20: Z,
940
- 22: 89,
941
- 23: 88
942
- },
943
- e(V, [2, 24]),
944
- e(l, [2, 51], {
945
- 59: 60,
946
- 58: 61,
947
- 4: d,
948
- 5: f,
949
- 8: R,
950
- 10: p,
951
- 12: m,
952
- 13: h,
953
- 14: g,
954
- 15: _,
955
- 18: z,
956
- 63: N,
957
- 64: P,
958
- 65: F,
959
- 66: I,
960
- 67: L
961
- }),
962
- e(l, [2, 54], {
963
- 59: 60,
964
- 58: 61,
965
- 4: d,
966
- 5: f,
967
- 8: R,
968
- 10: p,
969
- 12: m,
970
- 13: h,
971
- 14: g,
972
- 15: _,
973
- 18: z,
974
- 63: N,
975
- 64: P,
976
- 65: F,
977
- 66: I,
978
- 67: L
979
- }),
980
- e(l, [2, 47], {
981
- 22: 89,
982
- 16: 90,
983
- 23: 101,
984
- 4: H,
985
- 5: U,
986
- 6: W,
987
- 8: G,
988
- 11: K,
989
- 13: q,
990
- 17: J,
991
- 18: Y,
992
- 19: X,
993
- 20: Z
994
- }),
995
- { 46: [1, 102] },
996
- e(l, [2, 29], { 10: fe }),
997
- e(pe, [2, 27], {
998
- 16: 104,
999
- 4: H,
1000
- 5: U,
1001
- 6: W,
1002
- 8: G,
1003
- 11: K,
1004
- 13: q,
1005
- 17: J,
1006
- 18: Y,
1007
- 19: X,
1008
- 20: Z
1009
- }),
1010
- e(Q, [2, 25]),
1011
- e(Q, [2, 13]),
1012
- e(Q, [2, 14]),
1013
- e(Q, [2, 15]),
1014
- e(Q, [2, 16]),
1015
- e(Q, [2, 17]),
1016
- e(Q, [2, 18]),
1017
- e(Q, [2, 19]),
1018
- e(Q, [2, 20]),
1019
- e(Q, [2, 21]),
1020
- e(Q, [2, 22]),
1021
- e(l, [2, 49], { 10: fe }),
1022
- e(l, [2, 48], {
1023
- 22: 89,
1024
- 16: 90,
1025
- 23: 105,
1026
- 4: H,
1027
- 5: U,
1028
- 6: W,
1029
- 8: G,
1030
- 11: K,
1031
- 13: q,
1032
- 17: J,
1033
- 18: Y,
1034
- 19: X,
1035
- 20: Z
1036
- }),
1037
- {
1038
- 4: H,
1039
- 5: U,
1040
- 6: W,
1041
- 8: G,
1042
- 11: K,
1043
- 13: q,
1044
- 16: 90,
1045
- 17: J,
1046
- 18: Y,
1047
- 19: X,
1048
- 20: Z,
1049
- 22: 106
1050
- },
1051
- e(Q, [2, 26]),
1052
- e(l, [2, 50], { 10: fe }),
1053
- e(pe, [2, 28], {
1054
- 16: 104,
1055
- 4: H,
1056
- 5: U,
1057
- 6: W,
1058
- 8: G,
1059
- 11: K,
1060
- 13: q,
1061
- 17: J,
1062
- 18: Y,
1063
- 19: X,
1064
- 20: Z
1065
- })
1066
- ],
1067
- defaultActions: {
1068
- 8: [2, 30],
1069
- 9: [2, 31]
1070
- },
1071
- parseError: /* @__PURE__ */ n(function(e, t) {
1072
- if (t.recoverable) this.trace(e);
1073
- else {
1074
- var n = Error(e);
1075
- throw n.hash = t, n;
1076
- }
1077
- }, "parseError"),
1078
- parse: /* @__PURE__ */ n(function(e) {
1079
- var t = 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: {} };
1080
- for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
1081
- h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
1082
- var v = h.yylloc;
1083
- o.push(v);
1084
- var y = h.options && h.options.ranges;
1085
- typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1086
- function b(e) {
1087
- r.length -= 2 * e, a.length -= e, o.length -= e;
1088
- }
1089
- n(b, "popStack");
1090
- function x() {
1091
- var e = i.pop() || h.lex() || p;
1092
- return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = t.symbols_[e] || e), e;
1093
- }
1094
- n(x, "lex");
1095
- for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
1096
- 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]) {
1097
- var M = "";
1098
- for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
1099
- 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, {
1100
- text: h.match,
1101
- token: this.terminals_[S] || S,
1102
- line: h.yylineno,
1103
- loc: v,
1104
- expected: j
1105
- });
1106
- }
1107
- if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
1108
- switch (T[0]) {
1109
- case 1:
1110
- 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--);
1111
- break;
1112
- case 2:
1113
- if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
1114
- first_line: o[o.length - (k || 1)].first_line,
1115
- last_line: o[o.length - 1].last_line,
1116
- first_column: o[o.length - (k || 1)].first_column,
1117
- last_column: o[o.length - 1].last_column
1118
- }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
1119
- c,
1120
- u,
1121
- l,
1122
- g.yy,
1123
- T[1],
1124
- a,
1125
- o
1126
- ].concat(m)), E !== void 0) return E;
1127
- 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);
1128
- break;
1129
- case 3: return !0;
1130
- }
1131
- }
1132
- return !0;
1133
- }, "parse")
1134
- };
1135
- me.lexer = /* @__PURE__ */ (function() {
1136
- return {
1137
- EOF: 1,
1138
- parseError: /* @__PURE__ */ n(function(e, t) {
1139
- if (this.yy.parser) this.yy.parser.parseError(e, t);
1140
- else throw Error(e);
1141
- }, "parseError"),
1142
- setInput: /* @__PURE__ */ n(function(e, t) {
1143
- 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 = {
1144
- first_line: 1,
1145
- first_column: 0,
1146
- last_line: 1,
1147
- last_column: 0
1148
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1149
- }, "setInput"),
1150
- input: /* @__PURE__ */ n(function() {
1151
- var e = this._input[0];
1152
- 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;
1153
- }, "input"),
1154
- unput: /* @__PURE__ */ n(function(e) {
1155
- var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
1156
- this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
1157
- var r = this.match.split(/(?:\r\n?|\n)/g);
1158
- 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);
1159
- var i = this.yylloc.range;
1160
- return this.yylloc = {
1161
- first_line: this.yylloc.first_line,
1162
- last_line: this.yylineno + 1,
1163
- first_column: this.yylloc.first_column,
1164
- 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
1165
- }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
1166
- }, "unput"),
1167
- more: /* @__PURE__ */ n(function() {
1168
- return this._more = !0, this;
1169
- }, "more"),
1170
- reject: /* @__PURE__ */ n(function() {
1171
- if (this.options.backtrack_lexer) this._backtrack = !0;
1172
- 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(), {
1173
- text: "",
1174
- token: null,
1175
- line: this.yylineno
1176
- });
1177
- return this;
1178
- }, "reject"),
1179
- less: /* @__PURE__ */ n(function(e) {
1180
- this.unput(this.match.slice(e));
1181
- }, "less"),
1182
- pastInput: /* @__PURE__ */ n(function() {
1183
- var e = this.matched.substr(0, this.matched.length - this.match.length);
1184
- return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
1185
- }, "pastInput"),
1186
- upcomingInput: /* @__PURE__ */ n(function() {
1187
- var e = this.match;
1188
- return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
1189
- }, "upcomingInput"),
1190
- showPosition: /* @__PURE__ */ n(function() {
1191
- var e = this.pastInput(), t = Array(e.length + 1).join("-");
1192
- return e + this.upcomingInput() + "\n" + t + "^";
1193
- }, "showPosition"),
1194
- test_match: /* @__PURE__ */ n(function(e, t) {
1195
- var n, r, i;
1196
- if (this.options.backtrack_lexer && (i = {
1197
- yylineno: this.yylineno,
1198
- yylloc: {
1199
- first_line: this.yylloc.first_line,
1200
- last_line: this.last_line,
1201
- first_column: this.yylloc.first_column,
1202
- last_column: this.yylloc.last_column
1203
- },
1204
- yytext: this.yytext,
1205
- match: this.match,
1206
- matches: this.matches,
1207
- matched: this.matched,
1208
- yyleng: this.yyleng,
1209
- offset: this.offset,
1210
- _more: this._more,
1211
- _input: this._input,
1212
- yy: this.yy,
1213
- conditionStack: this.conditionStack.slice(0),
1214
- done: this.done
1215
- }, 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 = {
1216
- first_line: this.yylloc.last_line,
1217
- last_line: this.yylineno + 1,
1218
- first_column: this.yylloc.last_column,
1219
- last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
1220
- }, 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;
1221
- if (this._backtrack) {
1222
- for (var a in i) this[a] = i[a];
1223
- return !1;
1224
- }
1225
- return !1;
1226
- }, "test_match"),
1227
- next: /* @__PURE__ */ n(function() {
1228
- if (this.done) return this.EOF;
1229
- this._input || (this.done = !0);
1230
- var e, t, n, r;
1231
- this._more || (this.yytext = "", this.match = "");
1232
- 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)) {
1233
- if (t = n, r = a, this.options.backtrack_lexer) {
1234
- if (e = this.test_match(n, i[a]), e !== !1) return e;
1235
- if (this._backtrack) {
1236
- t = !1;
1237
- continue;
1238
- } else return !1;
1239
- } else if (!this.options.flex) break;
1240
- }
1241
- 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(), {
1242
- text: "",
1243
- token: null,
1244
- line: this.yylineno
1245
- });
1246
- }, "next"),
1247
- lex: /* @__PURE__ */ n(function() {
1248
- return this.next() || this.lex();
1249
- }, "lex"),
1250
- begin: /* @__PURE__ */ n(function(e) {
1251
- this.conditionStack.push(e);
1252
- }, "begin"),
1253
- popState: /* @__PURE__ */ n(function() {
1254
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1255
- }, "popState"),
1256
- _currentRules: /* @__PURE__ */ n(function() {
1257
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1258
- }, "_currentRules"),
1259
- topState: /* @__PURE__ */ n(function(e) {
1260
- return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
1261
- }, "topState"),
1262
- pushState: /* @__PURE__ */ n(function(e) {
1263
- this.begin(e);
1264
- }, "pushState"),
1265
- stateStackSize: /* @__PURE__ */ n(function() {
1266
- return this.conditionStack.length;
1267
- }, "stateStackSize"),
1268
- options: { "case-insensitive": !0 },
1269
- performAction: /* @__PURE__ */ n(function(e, t, n, r) {
1270
- switch (n) {
1271
- case 0: break;
1272
- case 1: break;
1273
- case 2: return 55;
1274
- case 3: break;
1275
- case 4: return this.begin("title"), 35;
1276
- case 5: return this.popState(), "title_value";
1277
- case 6: return this.begin("acc_title"), 37;
1278
- case 7: return this.popState(), "acc_title_value";
1279
- case 8: return this.begin("acc_descr"), 39;
1280
- case 9: return this.popState(), "acc_descr_value";
1281
- case 10:
1282
- this.begin("acc_descr_multiline");
1283
- break;
1284
- case 11:
1285
- this.popState();
1286
- break;
1287
- case 12: return "acc_descr_multiline_value";
1288
- case 13: return 48;
1289
- case 14: return 50;
1290
- case 15: return 49;
1291
- case 16: return 51;
1292
- case 17: return 52;
1293
- case 18: return 53;
1294
- case 19: return 54;
1295
- case 20: return 25;
1296
- case 21:
1297
- this.begin("md_string");
1298
- break;
1299
- case 22: return "MD_STR";
1300
- case 23:
1301
- this.popState();
1302
- break;
1303
- case 24:
1304
- this.begin("string");
1305
- break;
1306
- case 25:
1307
- this.popState();
1308
- break;
1309
- case 26: return "STR";
1310
- case 27:
1311
- this.begin("class_name");
1312
- break;
1313
- case 28: return this.popState(), 47;
1314
- case 29: return this.begin("point_start"), 44;
1315
- case 30: return this.begin("point_x"), 45;
1316
- case 31:
1317
- this.popState();
1318
- break;
1319
- case 32:
1320
- this.popState(), this.begin("point_y");
1321
- break;
1322
- case 33: return this.popState(), 46;
1323
- case 34: return 28;
1324
- case 35: return 4;
1325
- case 36: return 15;
1326
- case 37: return 11;
1327
- case 38: return 64;
1328
- case 39: return 10;
1329
- case 40: return 65;
1330
- case 41: return 65;
1331
- case 42: return 14;
1332
- case 43: return 13;
1333
- case 44: return 67;
1334
- case 45: return 66;
1335
- case 46: return 12;
1336
- case 47: return 8;
1337
- case 48: return 5;
1338
- case 49: return 18;
1339
- case 50: return 56;
1340
- case 51: return 63;
1341
- case 52: return 57;
1342
- }
1343
- }, "anonymous"),
1344
- rules: [
1345
- /^(?:%%(?!\{)[^\n]*)/i,
1346
- /^(?:[^\}]%%[^\n]*)/i,
1347
- /^(?:[\n\r]+)/i,
1348
- /^(?:%%[^\n]*)/i,
1349
- /^(?:title\b)/i,
1350
- /^(?:(?!\n||)*[^\n]*)/i,
1351
- /^(?:accTitle\s*:\s*)/i,
1352
- /^(?:(?!\n||)*[^\n]*)/i,
1353
- /^(?:accDescr\s*:\s*)/i,
1354
- /^(?:(?!\n||)*[^\n]*)/i,
1355
- /^(?:accDescr\s*\{\s*)/i,
1356
- /^(?:[\}])/i,
1357
- /^(?:[^\}]*)/i,
1358
- /^(?: *x-axis *)/i,
1359
- /^(?: *y-axis *)/i,
1360
- /^(?: *--+> *)/i,
1361
- /^(?: *quadrant-1 *)/i,
1362
- /^(?: *quadrant-2 *)/i,
1363
- /^(?: *quadrant-3 *)/i,
1364
- /^(?: *quadrant-4 *)/i,
1365
- /^(?:classDef\b)/i,
1366
- /^(?:["][`])/i,
1367
- /^(?:[^`"]+)/i,
1368
- /^(?:[`]["])/i,
1369
- /^(?:["])/i,
1370
- /^(?:["])/i,
1371
- /^(?:[^"]*)/i,
1372
- /^(?::::)/i,
1373
- /^(?:^\w+)/i,
1374
- /^(?:\s*:\s*\[\s*)/i,
1375
- /^(?:(1)|(0(.\d+)?))/i,
1376
- /^(?:\s*\] *)/i,
1377
- /^(?:\s*,\s*)/i,
1378
- /^(?:(1)|(0(.\d+)?))/i,
1379
- /^(?: *quadrantChart *)/i,
1380
- /^(?:[A-Za-z]+)/i,
1381
- /^(?:[^\x00-\x7F]+)/i,
1382
- /^(?::)/i,
1383
- /^(?:\+)/i,
1384
- /^(?:,)/i,
1385
- /^(?:=)/i,
1386
- /^(?:=)/i,
1387
- /^(?:\*)/i,
1388
- /^(?:#)/i,
1389
- /^(?:[\_])/i,
1390
- /^(?:\.)/i,
1391
- /^(?:&)/i,
1392
- /^(?:-)/i,
1393
- /^(?:[0-9]+)/i,
1394
- /^(?:\s)/i,
1395
- /^(?:;)/i,
1396
- /^(?:[!"#$%&'*+,-.`?\\_/])/i,
1397
- /^(?:$)/i
1398
- ],
1399
- conditions: {
1400
- class_name: {
1401
- rules: [28],
1402
- inclusive: !1
1403
- },
1404
- point_y: {
1405
- rules: [33],
1406
- inclusive: !1
1407
- },
1408
- point_x: {
1409
- rules: [32],
1410
- inclusive: !1
1411
- },
1412
- point_start: {
1413
- rules: [30, 31],
1414
- inclusive: !1
1415
- },
1416
- acc_descr_multiline: {
1417
- rules: [11, 12],
1418
- inclusive: !1
1419
- },
1420
- acc_descr: {
1421
- rules: [9],
1422
- inclusive: !1
1423
- },
1424
- acc_title: {
1425
- rules: [7],
1426
- inclusive: !1
1427
- },
1428
- title: {
1429
- rules: [5],
1430
- inclusive: !1
1431
- },
1432
- md_string: {
1433
- rules: [22, 23],
1434
- inclusive: !1
1435
- },
1436
- string: {
1437
- rules: [25, 26],
1438
- inclusive: !1
1439
- },
1440
- INITIAL: {
1441
- rules: [
1442
- 0,
1443
- 1,
1444
- 2,
1445
- 3,
1446
- 4,
1447
- 6,
1448
- 8,
1449
- 10,
1450
- 13,
1451
- 14,
1452
- 15,
1453
- 16,
1454
- 17,
1455
- 18,
1456
- 19,
1457
- 20,
1458
- 21,
1459
- 24,
1460
- 27,
1461
- 29,
1462
- 34,
1463
- 35,
1464
- 36,
1465
- 37,
1466
- 38,
1467
- 39,
1468
- 40,
1469
- 41,
1470
- 42,
1471
- 43,
1472
- 44,
1473
- 45,
1474
- 46,
1475
- 47,
1476
- 48,
1477
- 49,
1478
- 50,
1479
- 51,
1480
- 52
1481
- ],
1482
- inclusive: !0
1483
- }
1484
- }
1485
- };
1486
- })();
1487
- function $() {
1488
- this.yy = {};
1489
- }
1490
- return n($, "Parser"), $.prototype = me, me.Parser = $, new $();
1491
- })();
1492
- g.parser = g;
1493
- var _ = g, v = i(), y = class {
1494
- constructor() {
1495
- this.classes = /* @__PURE__ */ new Map(), this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData();
1496
- }
1497
- static {
1498
- n(this, "QuadrantBuilder");
1499
- }
1500
- getDefaultData() {
1501
- return {
1502
- titleText: "",
1503
- quadrant1Text: "",
1504
- quadrant2Text: "",
1505
- quadrant3Text: "",
1506
- quadrant4Text: "",
1507
- xAxisLeftText: "",
1508
- xAxisRightText: "",
1509
- yAxisBottomText: "",
1510
- yAxisTopText: "",
1511
- points: []
1512
- };
1513
- }
1514
- getDefaultConfig() {
1515
- return {
1516
- showXAxis: !0,
1517
- showYAxis: !0,
1518
- showTitle: !0,
1519
- chartHeight: d.quadrantChart?.chartWidth || 500,
1520
- chartWidth: d.quadrantChart?.chartHeight || 500,
1521
- titlePadding: d.quadrantChart?.titlePadding || 10,
1522
- titleFontSize: d.quadrantChart?.titleFontSize || 20,
1523
- quadrantPadding: d.quadrantChart?.quadrantPadding || 5,
1524
- xAxisLabelPadding: d.quadrantChart?.xAxisLabelPadding || 5,
1525
- yAxisLabelPadding: d.quadrantChart?.yAxisLabelPadding || 5,
1526
- xAxisLabelFontSize: d.quadrantChart?.xAxisLabelFontSize || 16,
1527
- yAxisLabelFontSize: d.quadrantChart?.yAxisLabelFontSize || 16,
1528
- quadrantLabelFontSize: d.quadrantChart?.quadrantLabelFontSize || 16,
1529
- quadrantTextTopPadding: d.quadrantChart?.quadrantTextTopPadding || 5,
1530
- pointTextPadding: d.quadrantChart?.pointTextPadding || 5,
1531
- pointLabelFontSize: d.quadrantChart?.pointLabelFontSize || 12,
1532
- pointRadius: d.quadrantChart?.pointRadius || 5,
1533
- xAxisPosition: d.quadrantChart?.xAxisPosition || "top",
1534
- yAxisPosition: d.quadrantChart?.yAxisPosition || "left",
1535
- quadrantInternalBorderStrokeWidth: d.quadrantChart?.quadrantInternalBorderStrokeWidth || 1,
1536
- quadrantExternalBorderStrokeWidth: d.quadrantChart?.quadrantExternalBorderStrokeWidth || 2
1537
- };
1538
- }
1539
- getDefaultThemeConfig() {
1540
- return {
1541
- quadrant1Fill: v.quadrant1Fill,
1542
- quadrant2Fill: v.quadrant2Fill,
1543
- quadrant3Fill: v.quadrant3Fill,
1544
- quadrant4Fill: v.quadrant4Fill,
1545
- quadrant1TextFill: v.quadrant1TextFill,
1546
- quadrant2TextFill: v.quadrant2TextFill,
1547
- quadrant3TextFill: v.quadrant3TextFill,
1548
- quadrant4TextFill: v.quadrant4TextFill,
1549
- quadrantPointFill: v.quadrantPointFill,
1550
- quadrantPointTextFill: v.quadrantPointTextFill,
1551
- quadrantXAxisTextFill: v.quadrantXAxisTextFill,
1552
- quadrantYAxisTextFill: v.quadrantYAxisTextFill,
1553
- quadrantTitleFill: v.quadrantTitleFill,
1554
- quadrantInternalBorderStrokeFill: v.quadrantInternalBorderStrokeFill,
1555
- quadrantExternalBorderStrokeFill: v.quadrantExternalBorderStrokeFill
1556
- };
1557
- }
1558
- clear() {
1559
- this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData(), this.classes = /* @__PURE__ */ new Map(), e.info("clear called");
1560
- }
1561
- setData(e) {
1562
- this.data = {
1563
- ...this.data,
1564
- ...e
1565
- };
1566
- }
1567
- addPoints(e) {
1568
- this.data.points = [...e, ...this.data.points];
1569
- }
1570
- addClass(e, t) {
1571
- this.classes.set(e, t);
1572
- }
1573
- setConfig(t) {
1574
- e.trace("setConfig called with: ", t), this.config = {
1575
- ...this.config,
1576
- ...t
1577
- };
1578
- }
1579
- setThemeConfig(t) {
1580
- e.trace("setThemeConfig called with: ", t), this.themeConfig = {
1581
- ...this.themeConfig,
1582
- ...t
1583
- };
1584
- }
1585
- calculateSpace(e, t, n, r) {
1586
- let i = this.config.xAxisLabelPadding * 2 + this.config.xAxisLabelFontSize, a = {
1587
- top: e === "top" && t ? i : 0,
1588
- bottom: e === "bottom" && t ? i : 0
1589
- }, o = this.config.yAxisLabelPadding * 2 + this.config.yAxisLabelFontSize, s = {
1590
- left: this.config.yAxisPosition === "left" && n ? o : 0,
1591
- right: this.config.yAxisPosition === "right" && n ? o : 0
1592
- }, c = this.config.titleFontSize + this.config.titlePadding * 2, l = { top: r ? c : 0 }, u = this.config.quadrantPadding + s.left, d = this.config.quadrantPadding + a.top + l.top, f = this.config.chartWidth - this.config.quadrantPadding * 2 - s.left - s.right, p = this.config.chartHeight - this.config.quadrantPadding * 2 - a.top - a.bottom - l.top;
1593
- return {
1594
- xAxisSpace: a,
1595
- yAxisSpace: s,
1596
- titleSpace: l,
1597
- quadrantSpace: {
1598
- quadrantLeft: u,
1599
- quadrantTop: d,
1600
- quadrantWidth: f,
1601
- quadrantHalfWidth: f / 2,
1602
- quadrantHeight: p,
1603
- quadrantHalfHeight: p / 2
1604
- }
1605
- };
1606
- }
1607
- getAxisLabels(e, t, n, r) {
1608
- let { quadrantSpace: i, titleSpace: a } = r, { quadrantHalfHeight: o, quadrantHeight: s, quadrantLeft: c, quadrantHalfWidth: l, quadrantTop: u, quadrantWidth: d } = i, f = !!this.data.xAxisRightText, p = !!this.data.yAxisTopText, m = [];
1609
- return this.data.xAxisLeftText && t && m.push({
1610
- text: this.data.xAxisLeftText,
1611
- fill: this.themeConfig.quadrantXAxisTextFill,
1612
- x: c + (f ? l / 2 : 0),
1613
- y: e === "top" ? this.config.xAxisLabelPadding + a.top : this.config.xAxisLabelPadding + u + s + this.config.quadrantPadding,
1614
- fontSize: this.config.xAxisLabelFontSize,
1615
- verticalPos: f ? "center" : "left",
1616
- horizontalPos: "top",
1617
- rotation: 0
1618
- }), this.data.xAxisRightText && t && m.push({
1619
- text: this.data.xAxisRightText,
1620
- fill: this.themeConfig.quadrantXAxisTextFill,
1621
- x: c + l + (f ? l / 2 : 0),
1622
- y: e === "top" ? this.config.xAxisLabelPadding + a.top : this.config.xAxisLabelPadding + u + s + this.config.quadrantPadding,
1623
- fontSize: this.config.xAxisLabelFontSize,
1624
- verticalPos: f ? "center" : "left",
1625
- horizontalPos: "top",
1626
- rotation: 0
1627
- }), this.data.yAxisBottomText && n && m.push({
1628
- text: this.data.yAxisBottomText,
1629
- fill: this.themeConfig.quadrantYAxisTextFill,
1630
- x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + c + d + this.config.quadrantPadding,
1631
- y: u + s - (p ? o / 2 : 0),
1632
- fontSize: this.config.yAxisLabelFontSize,
1633
- verticalPos: p ? "center" : "left",
1634
- horizontalPos: "top",
1635
- rotation: -90
1636
- }), this.data.yAxisTopText && n && m.push({
1637
- text: this.data.yAxisTopText,
1638
- fill: this.themeConfig.quadrantYAxisTextFill,
1639
- x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + c + d + this.config.quadrantPadding,
1640
- y: u + o - (p ? o / 2 : 0),
1641
- fontSize: this.config.yAxisLabelFontSize,
1642
- verticalPos: p ? "center" : "left",
1643
- horizontalPos: "top",
1644
- rotation: -90
1645
- }), m;
1646
- }
1647
- getQuadrants(e) {
1648
- let { quadrantSpace: t } = e, { quadrantHalfHeight: n, quadrantLeft: r, quadrantHalfWidth: i, quadrantTop: a } = t, o = [
1649
- {
1650
- text: {
1651
- text: this.data.quadrant1Text,
1652
- fill: this.themeConfig.quadrant1TextFill,
1653
- x: 0,
1654
- y: 0,
1655
- fontSize: this.config.quadrantLabelFontSize,
1656
- verticalPos: "center",
1657
- horizontalPos: "middle",
1658
- rotation: 0
1659
- },
1660
- x: r + i,
1661
- y: a,
1662
- width: i,
1663
- height: n,
1664
- fill: this.themeConfig.quadrant1Fill
1665
- },
1666
- {
1667
- text: {
1668
- text: this.data.quadrant2Text,
1669
- fill: this.themeConfig.quadrant2TextFill,
1670
- x: 0,
1671
- y: 0,
1672
- fontSize: this.config.quadrantLabelFontSize,
1673
- verticalPos: "center",
1674
- horizontalPos: "middle",
1675
- rotation: 0
1676
- },
1677
- x: r,
1678
- y: a,
1679
- width: i,
1680
- height: n,
1681
- fill: this.themeConfig.quadrant2Fill
1682
- },
1683
- {
1684
- text: {
1685
- text: this.data.quadrant3Text,
1686
- fill: this.themeConfig.quadrant3TextFill,
1687
- x: 0,
1688
- y: 0,
1689
- fontSize: this.config.quadrantLabelFontSize,
1690
- verticalPos: "center",
1691
- horizontalPos: "middle",
1692
- rotation: 0
1693
- },
1694
- x: r,
1695
- y: a + n,
1696
- width: i,
1697
- height: n,
1698
- fill: this.themeConfig.quadrant3Fill
1699
- },
1700
- {
1701
- text: {
1702
- text: this.data.quadrant4Text,
1703
- fill: this.themeConfig.quadrant4TextFill,
1704
- x: 0,
1705
- y: 0,
1706
- fontSize: this.config.quadrantLabelFontSize,
1707
- verticalPos: "center",
1708
- horizontalPos: "middle",
1709
- rotation: 0
1710
- },
1711
- x: r + i,
1712
- y: a + n,
1713
- width: i,
1714
- height: n,
1715
- fill: this.themeConfig.quadrant4Fill
1716
- }
1717
- ];
1718
- for (let e of o) e.text.x = e.x + e.width / 2, this.data.points.length === 0 ? (e.text.y = e.y + e.height / 2, e.text.horizontalPos = "middle") : (e.text.y = e.y + this.config.quadrantTextTopPadding, e.text.horizontalPos = "top");
1719
- return o;
1720
- }
1721
- getQuadrantPoints(e) {
1722
- let { quadrantSpace: t } = e, { quadrantHeight: n, quadrantLeft: r, quadrantTop: i, quadrantWidth: a } = t, o = h().domain([0, 1]).range([r, a + r]), s = h().domain([0, 1]).range([n + i, i]);
1723
- return this.data.points.map((e) => {
1724
- let t = this.classes.get(e.className);
1725
- return t && (e = {
1726
- ...t,
1727
- ...e
1728
- }), {
1729
- x: o(e.x),
1730
- y: s(e.y),
1731
- fill: e.color ?? this.themeConfig.quadrantPointFill,
1732
- radius: e.radius ?? this.config.pointRadius,
1733
- text: {
1734
- text: e.text,
1735
- fill: this.themeConfig.quadrantPointTextFill,
1736
- x: o(e.x),
1737
- y: s(e.y) + this.config.pointTextPadding,
1738
- verticalPos: "center",
1739
- horizontalPos: "top",
1740
- fontSize: this.config.pointLabelFontSize,
1741
- rotation: 0
1742
- },
1743
- strokeColor: e.strokeColor ?? this.themeConfig.quadrantPointFill,
1744
- strokeWidth: e.strokeWidth ?? "0px"
1745
- };
1746
- });
1747
- }
1748
- getBorders(e) {
1749
- let t = this.config.quadrantExternalBorderStrokeWidth / 2, { quadrantSpace: n } = e, { quadrantHalfHeight: r, quadrantHeight: i, quadrantLeft: a, quadrantHalfWidth: o, quadrantTop: s, quadrantWidth: c } = n;
1750
- return [
1751
- {
1752
- strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
1753
- strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
1754
- x1: a - t,
1755
- y1: s,
1756
- x2: a + c + t,
1757
- y2: s
1758
- },
1759
- {
1760
- strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
1761
- strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
1762
- x1: a + c,
1763
- y1: s + t,
1764
- x2: a + c,
1765
- y2: s + i - t
1766
- },
1767
- {
1768
- strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
1769
- strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
1770
- x1: a - t,
1771
- y1: s + i,
1772
- x2: a + c + t,
1773
- y2: s + i
1774
- },
1775
- {
1776
- strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
1777
- strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
1778
- x1: a,
1779
- y1: s + t,
1780
- x2: a,
1781
- y2: s + i - t
1782
- },
1783
- {
1784
- strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
1785
- strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
1786
- x1: a + o,
1787
- y1: s + t,
1788
- x2: a + o,
1789
- y2: s + i - t
1790
- },
1791
- {
1792
- strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
1793
- strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
1794
- x1: a + t,
1795
- y1: s + r,
1796
- x2: a + c - t,
1797
- y2: s + r
1798
- }
1799
- ];
1800
- }
1801
- getTitle(e) {
1802
- if (e) return {
1803
- text: this.data.titleText,
1804
- fill: this.themeConfig.quadrantTitleFill,
1805
- fontSize: this.config.titleFontSize,
1806
- horizontalPos: "top",
1807
- verticalPos: "center",
1808
- rotation: 0,
1809
- y: this.config.titlePadding,
1810
- x: this.config.chartWidth / 2
1811
- };
1812
- }
1813
- build() {
1814
- let e = this.config.showXAxis && !!(this.data.xAxisLeftText || this.data.xAxisRightText), t = this.config.showYAxis && !!(this.data.yAxisTopText || this.data.yAxisBottomText), n = this.config.showTitle && !!this.data.titleText, r = this.data.points.length > 0 ? "bottom" : this.config.xAxisPosition, i = this.calculateSpace(r, e, t, n);
1815
- return {
1816
- points: this.getQuadrantPoints(i),
1817
- quadrants: this.getQuadrants(i),
1818
- axisLabels: this.getAxisLabels(r, e, t, i),
1819
- borderLines: this.getBorders(i),
1820
- title: this.getTitle(n)
1821
- };
1822
- }
1823
- }, b = class extends Error {
1824
- static {
1825
- n(this, "InvalidStyleError");
1826
- }
1827
- constructor(e, t, n) {
1828
- super(`value for ${e} ${t} is invalid, please use a valid ${n}`), this.name = "InvalidStyleError";
1829
- }
1830
- };
1831
- function x(e) {
1832
- return !/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e);
1833
- }
1834
- n(x, "validateHexCode");
1835
- function S(e) {
1836
- return !/^\d+$/.test(e);
1837
- }
1838
- n(S, "validateNumber");
1839
- function C(e) {
1840
- return !/^\d+px$/.test(e);
1841
- }
1842
- n(C, "validateSizeInPixels");
1843
- function w(e) {
1844
- return m(e.trim(), l());
1845
- }
1846
- n(w, "textSanitizer");
1847
- var T = new y();
1848
- function E(e) {
1849
- T.setData({ quadrant1Text: w(e.text) });
1850
- }
1851
- n(E, "setQuadrant1Text");
1852
- function D(e) {
1853
- T.setData({ quadrant2Text: w(e.text) });
1854
- }
1855
- n(D, "setQuadrant2Text");
1856
- function O(e) {
1857
- T.setData({ quadrant3Text: w(e.text) });
1858
- }
1859
- n(O, "setQuadrant3Text");
1860
- function k(e) {
1861
- T.setData({ quadrant4Text: w(e.text) });
1862
- }
1863
- n(k, "setQuadrant4Text");
1864
- function A(e) {
1865
- T.setData({ xAxisLeftText: w(e.text) });
1866
- }
1867
- n(A, "setXAxisLeftText");
1868
- function j(e) {
1869
- T.setData({ xAxisRightText: w(e.text) });
1870
- }
1871
- n(j, "setXAxisRightText");
1872
- function M(e) {
1873
- T.setData({ yAxisTopText: w(e.text) });
1874
- }
1875
- n(M, "setYAxisTopText");
1876
- function N(e) {
1877
- T.setData({ yAxisBottomText: w(e.text) });
1878
- }
1879
- n(N, "setYAxisBottomText");
1880
- function P(e) {
1881
- let t = {};
1882
- for (let n of e) {
1883
- let [e, r] = n.trim().split(/\s*:\s*/);
1884
- if (e === "radius") {
1885
- if (S(r)) throw new b(e, r, "number");
1886
- t.radius = parseInt(r);
1887
- } else if (e === "color") {
1888
- if (x(r)) throw new b(e, r, "hex code");
1889
- t.color = r;
1890
- } else if (e === "stroke-color") {
1891
- if (x(r)) throw new b(e, r, "hex code");
1892
- t.strokeColor = r;
1893
- } else if (e === "stroke-width") {
1894
- if (C(r)) throw new b(e, r, "number of pixels (eg. 10px)");
1895
- t.strokeWidth = r;
1896
- } else throw Error(`style named ${e} is not supported.`);
1897
- }
1898
- return t;
1899
- }
1900
- n(P, "parseStyles");
1901
- function F(e, t, n, r, i) {
1902
- let a = P(i);
1903
- T.addPoints([{
1904
- x: n,
1905
- y: r,
1906
- text: w(e.text),
1907
- className: t,
1908
- ...a
1909
- }]);
1910
- }
1911
- n(F, "addPoint");
1912
- function I(e, t) {
1913
- T.addClass(e, P(t));
1914
- }
1915
- n(I, "addClass");
1916
- function L(e) {
1917
- T.setConfig({ chartWidth: e });
1918
- }
1919
- n(L, "setWidth");
1920
- function R(e) {
1921
- T.setConfig({ chartHeight: e });
1922
- }
1923
- n(R, "setHeight");
1924
- function z() {
1925
- let { themeVariables: e, quadrantChart: t } = l();
1926
- return t && T.setConfig(t), T.setThemeConfig({
1927
- quadrant1Fill: e.quadrant1Fill,
1928
- quadrant2Fill: e.quadrant2Fill,
1929
- quadrant3Fill: e.quadrant3Fill,
1930
- quadrant4Fill: e.quadrant4Fill,
1931
- quadrant1TextFill: e.quadrant1TextFill,
1932
- quadrant2TextFill: e.quadrant2TextFill,
1933
- quadrant3TextFill: e.quadrant3TextFill,
1934
- quadrant4TextFill: e.quadrant4TextFill,
1935
- quadrantPointFill: e.quadrantPointFill,
1936
- quadrantPointTextFill: e.quadrantPointTextFill,
1937
- quadrantXAxisTextFill: e.quadrantXAxisTextFill,
1938
- quadrantYAxisTextFill: e.quadrantYAxisTextFill,
1939
- quadrantExternalBorderStrokeFill: e.quadrantExternalBorderStrokeFill,
1940
- quadrantInternalBorderStrokeFill: e.quadrantInternalBorderStrokeFill,
1941
- quadrantTitleFill: e.quadrantTitleFill
1942
- }), T.setData({ titleText: r() }), T.build();
1943
- }
1944
- n(z, "getQuadrantData");
1945
- var B = {
1946
- parser: _,
1947
- db: {
1948
- setWidth: L,
1949
- setHeight: R,
1950
- setQuadrant1Text: E,
1951
- setQuadrant2Text: D,
1952
- setQuadrant3Text: O,
1953
- setQuadrant4Text: k,
1954
- setXAxisLeftText: A,
1955
- setXAxisRightText: j,
1956
- setYAxisTopText: M,
1957
- setYAxisBottomText: N,
1958
- parseStyles: P,
1959
- addPoint: F,
1960
- addClass: I,
1961
- getQuadrantData: z,
1962
- clear: /* @__PURE__ */ n(function() {
1963
- T.clear(), c();
1964
- }, "clear"),
1965
- setAccTitle: o,
1966
- getAccTitle: p,
1967
- setDiagramTitle: f,
1968
- getDiagramTitle: r,
1969
- getAccDescription: s,
1970
- setAccDescription: a
1971
- },
1972
- renderer: { draw: /* @__PURE__ */ n((r, i, a, o) => {
1973
- function s(e) {
1974
- return e === "top" ? "hanging" : "middle";
1975
- }
1976
- n(s, "getDominantBaseLine");
1977
- function c(e) {
1978
- return e === "left" ? "start" : "middle";
1979
- }
1980
- n(c, "getTextAnchor");
1981
- function d(e) {
1982
- return `translate(${e.x}, ${e.y}) rotate(${e.rotation || 0})`;
1983
- }
1984
- n(d, "getTransformation");
1985
- let f = l();
1986
- e.debug("Rendering quadrant chart\n" + r);
1987
- let p = f.securityLevel, m;
1988
- p === "sandbox" && (m = t("#i" + i));
1989
- let h = t(p === "sandbox" ? m.nodes()[0].contentDocument.body : "body").select(`[id="${i}"]`), g = h.append("g").attr("class", "main"), _ = f.quadrantChart?.chartWidth ?? 500, v = f.quadrantChart?.chartHeight ?? 500;
1990
- u(h, v, _, f.quadrantChart?.useMaxWidth ?? !0), h.attr("viewBox", "0 0 " + _ + " " + v), o.db.setHeight(v), o.db.setWidth(_);
1991
- let y = o.db.getQuadrantData(), b = g.append("g").attr("class", "quadrants"), x = g.append("g").attr("class", "border"), S = g.append("g").attr("class", "data-points"), C = g.append("g").attr("class", "labels"), w = g.append("g").attr("class", "title");
1992
- y.title && w.append("text").attr("x", 0).attr("y", 0).attr("fill", y.title.fill).attr("font-size", y.title.fontSize).attr("dominant-baseline", s(y.title.horizontalPos)).attr("text-anchor", c(y.title.verticalPos)).attr("transform", d(y.title)).text(y.title.text), y.borderLines && x.selectAll("line").data(y.borderLines).enter().append("line").attr("x1", (e) => e.x1).attr("y1", (e) => e.y1).attr("x2", (e) => e.x2).attr("y2", (e) => e.y2).style("stroke", (e) => e.strokeFill).style("stroke-width", (e) => e.strokeWidth);
1993
- let T = b.selectAll("g.quadrant").data(y.quadrants).enter().append("g").attr("class", "quadrant");
1994
- T.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), T.append("text").attr("x", 0).attr("y", 0).attr("fill", (e) => e.text.fill).attr("font-size", (e) => e.text.fontSize).attr("dominant-baseline", (e) => s(e.text.horizontalPos)).attr("text-anchor", (e) => c(e.text.verticalPos)).attr("transform", (e) => d(e.text)).text((e) => e.text.text), C.selectAll("g.label").data(y.axisLabels).enter().append("g").attr("class", "label").append("text").attr("x", 0).attr("y", 0).text((e) => e.text).attr("fill", (e) => e.fill).attr("font-size", (e) => e.fontSize).attr("dominant-baseline", (e) => s(e.horizontalPos)).attr("text-anchor", (e) => c(e.verticalPos)).attr("transform", (e) => d(e));
1995
- let E = S.selectAll("g.data-point").data(y.points).enter().append("g").attr("class", "data-point");
1996
- E.append("circle").attr("cx", (e) => e.x).attr("cy", (e) => e.y).attr("r", (e) => e.radius).attr("fill", (e) => e.fill).attr("stroke", (e) => e.strokeColor).attr("stroke-width", (e) => e.strokeWidth), E.append("text").attr("x", 0).attr("y", 0).text((e) => e.text.text).attr("fill", (e) => e.text.fill).attr("font-size", (e) => e.text.fontSize).attr("dominant-baseline", (e) => s(e.text.horizontalPos)).attr("text-anchor", (e) => c(e.text.verticalPos)).attr("transform", (e) => d(e.text));
1997
- }, "draw") },
1998
- styles: /* @__PURE__ */ n(() => "", "styles")
1999
- };
2000
- //#endregion
2001
- export { B as diagram };