@ucap-llm/ai-ui 1.1.13 → 1.1.15

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 (111) hide show
  1. package/_basePickBy-DMehTBs0-8955b30b.mjs +151 -0
  2. package/_basePickBy-e7598e72.mjs +153 -0
  3. package/{_baseUniq-2bcae05e.mjs → _baseUniq-8cd7fbc4.mjs} +150 -150
  4. package/_baseUniq-DPnX6tpB-5eb6efbd.mjs +615 -0
  5. package/ai-ui.es.js +9 -8
  6. package/ai-ui.umd.js +3425 -923
  7. package/arc-8909f880.mjs +85 -0
  8. package/arc-qimaJRLH-591a6072.mjs +85 -0
  9. package/architecture-4AB2E3PP-DFmEpUnA-62fe65dd.mjs +10 -0
  10. package/architecture-4AB2E3PP-b04ae9dd.mjs +10 -0
  11. package/{architectureDiagram-IEHRJDOE-e4684ef3.mjs → architectureDiagram-IEHRJDOE-1ccc2c64.mjs} +123 -123
  12. package/architectureDiagram-IEHRJDOE-BRVAVUEE-c068faae.mjs +4641 -0
  13. package/{blockDiagram-JOT3LUYC-504ee31e.mjs → blockDiagram-JOT3LUYC-63569de5.mjs} +5 -5
  14. package/blockDiagram-JOT3LUYC-Cs4tSRey-54d8e29b.mjs +2251 -0
  15. package/{c4Diagram-VJAJSXHY-c5ba6af4.mjs → c4Diagram-VJAJSXHY-355a4170.mjs} +23 -23
  16. package/c4Diagram-VJAJSXHY-C3F9fO0L-0df97cd8.mjs +1583 -0
  17. package/channel-CuHzivgY-bb3d765a.mjs +5 -0
  18. package/channel-a1f4f18c.mjs +5 -0
  19. package/{chunk-4BMEZGHF-8d9a2e4f.mjs → chunk-4BMEZGHF-705995af.mjs} +1 -1
  20. package/chunk-4BMEZGHF-btTOjzEX-c9c5432c.mjs +9 -0
  21. package/{chunk-A2AXSNBT-41ae29f2.mjs → chunk-A2AXSNBT-3a857566.mjs} +10 -10
  22. package/chunk-A2AXSNBT-CPBZRsS7-a80df701.mjs +1373 -0
  23. package/{chunk-AEK57VVT-69e121d6.mjs → chunk-AEK57VVT-6c60e1ee.mjs} +45 -45
  24. package/chunk-AEK57VVT-D62Iwyam-238a3d85.mjs +1361 -0
  25. package/{chunk-D6G4REZN-472adc5b.mjs → chunk-D6G4REZN-11c52918.mjs} +5 -5
  26. package/chunk-D6G4REZN-HlFmQTJy-20704636.mjs +64 -0
  27. package/chunk-RZ5BOZE2-DIFgOqDt-495bec03.mjs +24 -0
  28. package/{chunk-RZ5BOZE2-b7d5d4f5.mjs → chunk-RZ5BOZE2-d6db8103.mjs} +9 -9
  29. package/chunk-XZIHB7SX-CCrbsG0u-f30e4124.mjs +15 -0
  30. package/{chunk-XZIHB7SX-56c08d07.mjs → chunk-XZIHB7SX-fafd3ca2.mjs} +1 -1
  31. package/classDiagram-GIVACNV2-Bv5U0XPL-622b22ed.mjs +18 -0
  32. package/{classDiagram-v2-COTLJTTW-1deea5cc.mjs → classDiagram-GIVACNV2-eca9aeb6.mjs} +5 -5
  33. package/classDiagram-v2-COTLJTTW-Bv5U0XPL-622b22ed.mjs +18 -0
  34. package/{classDiagram-GIVACNV2-1deea5cc.mjs → classDiagram-v2-COTLJTTW-eca9aeb6.mjs} +5 -5
  35. package/{clone-1f18a17f.mjs → clone-327a1426.mjs} +1 -1
  36. package/clone-Csc9uFbU-6c4f28bd.mjs +8 -0
  37. package/cytoscape.esm-Swd9B-1A-3101f241.mjs +18730 -0
  38. package/{dagre-OKDRZEBW-74e73dcf.mjs → dagre-OKDRZEBW-9059bb36.mjs} +81 -81
  39. package/dagre-OKDRZEBW-CoMQYlxF-96274fb0.mjs +448 -0
  40. package/{diagram-SSKATNLV-1a562cb0.mjs → diagram-SSKATNLV-70f68e72.mjs} +34 -34
  41. package/diagram-SSKATNLV-CPuZUaGP-50edcaa0.mjs +225 -0
  42. package/{diagram-VNBRO52H-b765e46f.mjs → diagram-VNBRO52H-39273710.mjs} +35 -35
  43. package/diagram-VNBRO52H-DIIZ-Sll-969266e6.mjs +130 -0
  44. package/{erDiagram-Q7BY3M3F-022c4343.mjs → erDiagram-Q7BY3M3F-96ba3906.mjs} +3 -3
  45. package/erDiagram-Q7BY3M3F-ZKWAM_uE-41c0350d.mjs +843 -0
  46. package/{flowDiagram-4HSFHLVR-6036e284.mjs → flowDiagram-4HSFHLVR-795e3830.mjs} +29 -29
  47. package/flowDiagram-4HSFHLVR-CUJXGEG3-801dde13.mjs +1624 -0
  48. package/{ganttDiagram-APWFNJXF-be871387.mjs → ganttDiagram-APWFNJXF-736e67b6.mjs} +398 -398
  49. package/ganttDiagram-APWFNJXF-C1pgubbs-20beffc3.mjs +2527 -0
  50. package/gitGraph-O2Q2CXLX-00465db9.mjs +10 -0
  51. package/gitGraph-O2Q2CXLX-BYavwGzs-e5f1990e.mjs +10 -0
  52. package/{gitGraphDiagram-7IBYFJ6S-da63c888.mjs → gitGraphDiagram-7IBYFJ6S-115329ab.mjs} +88 -88
  53. package/gitGraphDiagram-7IBYFJ6S-CndxirR4-b39d4089.mjs +716 -0
  54. package/{graph-e71f0e3e.mjs → graph-9e073c5f.mjs} +8 -8
  55. package/graph-DOmtxVvg-727f4e14.mjs +247 -0
  56. package/index-433e2395.mjs +168385 -0
  57. package/info-4N47QTOZ-688db415.mjs +10 -0
  58. package/info-4N47QTOZ-DPyDFN1Z-821cf2f7.mjs +10 -0
  59. package/{infoDiagram-PH2N3AL5-3e1c1c1f.mjs → infoDiagram-PH2N3AL5-29e9585a.mjs} +9 -9
  60. package/infoDiagram-PH2N3AL5-BkSS3vpU-ef4bf66d.mjs +26 -0
  61. package/init-DjUOC4st-87c930f1.mjs +16 -0
  62. package/{journeyDiagram-U35MCT3I-6d29748d.mjs → journeyDiagram-U35MCT3I-7c5644d1.mjs} +41 -41
  63. package/journeyDiagram-U35MCT3I-BN-kCDeJ-ac350902.mjs +811 -0
  64. package/{kanban-definition-NDS4AKOZ-c231ae4c.mjs → kanban-definition-NDS4AKOZ-eff441f9.mjs} +47 -47
  65. package/kanban-definition-NDS4AKOZ-gaDUOiKt-efdba942.mjs +720 -0
  66. package/{layout-b9b9e407.mjs → layout-501d22f0.mjs} +19 -19
  67. package/layout-8X5HiOVA-b6e13cf9.mjs +1323 -0
  68. package/linear-BgV5F0PU-8137edad.mjs +447 -0
  69. package/{linear-99040ddc.mjs → linear-fd3cd932.mjs} +56 -56
  70. package/{mermaid-parser.core-55f134dc.mjs → mermaid-parser.core-6eb44241.mjs} +160 -160
  71. package/mermaid-parser.core-BTS3sfcL-8c80284a.mjs +12810 -0
  72. package/{mindmap-definition-ALO5MXBD-938e2e65.mjs → mindmap-definition-ALO5MXBD-2fe3c748.mjs} +1 -1
  73. package/mindmap-definition-ALO5MXBD-B8q_1sIj-c3599d3c.mjs +3225 -0
  74. package/ordinal-DfAQgscy-1c8e46a9.mjs +65 -0
  75. package/package.json +2 -2
  76. package/packet-KVYON367-DcfdOX-U-afac932a.mjs +10 -0
  77. package/packet-KVYON367-c82af3fe.mjs +10 -0
  78. package/pie-R6RNRRYF-DKruFncB-d07f60c2.mjs +10 -0
  79. package/pie-R6RNRRYF-eb27797b.mjs +10 -0
  80. package/pieDiagram-IB7DONF6-Bijui6_Q-db9fdf3a.mjs +166 -0
  81. package/{pieDiagram-IB7DONF6-6a11673b.mjs → pieDiagram-IB7DONF6-e6863984.mjs} +36 -36
  82. package/{quadrantDiagram-7GDLP6J5-a4a4d9ac.mjs → quadrantDiagram-7GDLP6J5-88df12c2.mjs} +15 -15
  83. package/quadrantDiagram-7GDLP6J5-DzIzViUj-b13add98.mjs +1027 -0
  84. package/radar-MK3ICKWK-723229d0.mjs +10 -0
  85. package/radar-MK3ICKWK-D8wbkmr5-3165faf6.mjs +10 -0
  86. package/{requirementDiagram-KVF5MWMF-a7093c74.mjs → requirementDiagram-KVF5MWMF-7228051c.mjs} +50 -50
  87. package/requirementDiagram-KVF5MWMF-Hqsbdpfq-23374f24.mjs +853 -0
  88. package/{sankeyDiagram-QLVOVGJD-f4bcbb2d.mjs → sankeyDiagram-QLVOVGJD-00a31a99.mjs} +87 -87
  89. package/sankeyDiagram-QLVOVGJD-DGCeusqJ-8ca7e64d.mjs +826 -0
  90. package/{sequenceDiagram-X6HHIX6F-9071cfff.mjs → sequenceDiagram-X6HHIX6F-de203309.mjs} +3 -3
  91. package/sequenceDiagram-X6HHIX6F-kuEE9wSd-5f0ec5cd.mjs +2283 -0
  92. package/{stateDiagram-DGXRK772-fb22a7a5.mjs → stateDiagram-DGXRK772-2341237a.mjs} +48 -48
  93. package/stateDiagram-DGXRK772-Cq-Ce3WP-266efa7f.mjs +274 -0
  94. package/{stateDiagram-v2-YXO3MK2T-67326b76.mjs → stateDiagram-v2-YXO3MK2T-8c81deed.mjs} +5 -5
  95. package/stateDiagram-v2-YXO3MK2T-CplwFWn1-c0024e4e.mjs +18 -0
  96. package/style.css +10 -1
  97. package/timeline-definition-BDJGKUSR-USv5sZzx-22548912.mjs +806 -0
  98. package/{timeline-definition-BDJGKUSR-44f50d45.mjs → timeline-definition-BDJGKUSR-e615901b.mjs} +79 -79
  99. package/{xychartDiagram-VJFVF3MP-2df503f6.mjs → xychartDiagram-VJFVF3MP-9ad66a6b.mjs} +28 -28
  100. package/xychartDiagram-VJFVF3MP-CXCfFZBM-e5ca151e.mjs +1306 -0
  101. package/_basePickBy-12958109.mjs +0 -153
  102. package/arc-14f9a207.mjs +0 -85
  103. package/architecture-4AB2E3PP-bb512ddb.mjs +0 -10
  104. package/channel-7bd711b4.mjs +0 -5
  105. package/gitGraph-O2Q2CXLX-83cfcbef.mjs +0 -10
  106. package/index-f83d4b07.mjs +0 -97448
  107. package/info-4N47QTOZ-20cf90f5.mjs +0 -10
  108. package/katex-2e45926a.mjs +0 -11700
  109. package/packet-KVYON367-453a49e8.mjs +0 -10
  110. package/pie-R6RNRRYF-4d95c8dc.mjs +0 -10
  111. package/radar-MK3ICKWK-100e8fa4.mjs +0 -10
@@ -0,0 +1,1027 @@
1
+ import { v as o, a9 as be, l as zt, A as D, J as qt, w as _e, k as ee, j as Se, G as ke, i as Fe, K as Pe, Y as ve, r as Ce, e as vt, X as Le } from "./index-433e2395.mjs";
2
+ import { Z as te } from "./linear-BgV5F0PU-8137edad.mjs";
3
+ import "vue";
4
+ import "./init-DjUOC4st-87c930f1.mjs";
5
+ var Et = function() {
6
+ var t = /* @__PURE__ */ o(function(Q, n, d, c) {
7
+ for (d = d || {}, c = Q.length; c--; d[Q[c]] = n)
8
+ ;
9
+ return d;
10
+ }, "o"), a = [1, 3], g = [1, 4], u = [1, 5], l = [1, 6], x = [1, 7], b = [1, 4, 5, 10, 12, 13, 14, 18, 25, 35, 37, 39, 41, 42, 48, 50, 51, 52, 53, 54, 55, 56, 57, 60, 61, 63, 64, 65, 66, 67], h = [1, 4, 5, 10, 12, 13, 14, 18, 25, 28, 35, 37, 39, 41, 42, 48, 50, 51, 52, 53, 54, 55, 56, 57, 60, 61, 63, 64, 65, 66, 67], s = [55, 56, 57], _ = [2, 36], p = [1, 37], m = [1, 36], T = [1, 38], y = [1, 35], f = [1, 43], q = [1, 41], H = [1, 14], C = [1, 23], ct = [1, 18], dt = [1, 19], ut = [1, 20], xt = [1, 21], gt = [1, 22], lt = [1, 24], ht = [1, 25], i = [1, 26], It = [1, 27], Wt = [1, 28], wt = [1, 29], N = [1, 32], O = [1, 33], S = [1, 34], k = [1, 39], F = [1, 40], P = [1, 42], v = [1, 44], Y = [1, 62], M = [1, 61], L = [4, 5, 8, 10, 12, 13, 14, 18, 44, 47, 49, 55, 56, 57, 63, 64, 65, 66, 67], Rt = [1, 65], Bt = [1, 66], $t = [1, 67], Ut = [1, 68], Nt = [1, 69], Ot = [1, 70], Qt = [1, 71], Xt = [1, 72], Ht = [1, 73], Yt = [1, 74], Mt = [1, 75], jt = [1, 76], W = [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 18], V = [1, 90], J = [1, 91], Z = [1, 92], tt = [1, 99], et = [1, 93], it = [1, 96], at = [1, 94], nt = [1, 95], st = [1, 97], rt = [1, 98], bt = [1, 102], Gt = [10, 55, 56, 57], $ = [4, 5, 6, 8, 10, 11, 13, 17, 18, 19, 20, 55, 56, 57], _t = {
11
+ trace: /* @__PURE__ */ o(function() {
12
+ }, "trace"),
13
+ yy: {},
14
+ symbols_: { error: 2, idStringToken: 3, ALPHA: 4, NUM: 5, NODE_STRING: 6, DOWN: 7, MINUS: 8, DEFAULT: 9, COMMA: 10, COLON: 11, AMP: 12, BRKT: 13, MULT: 14, UNICODE_TEXT: 15, styleComponent: 16, UNIT: 17, SPACE: 18, STYLE: 19, PCT: 20, idString: 21, style: 22, stylesOpt: 23, classDefStatement: 24, CLASSDEF: 25, start: 26, eol: 27, QUADRANT: 28, document: 29, line: 30, statement: 31, axisDetails: 32, quadrantDetails: 33, points: 34, title: 35, title_value: 36, acc_title: 37, acc_title_value: 38, acc_descr: 39, acc_descr_value: 40, acc_descr_multiline_value: 41, section: 42, text: 43, point_start: 44, point_x: 45, point_y: 46, class_name: 47, "X-AXIS": 48, "AXIS-TEXT-DELIMITER": 49, "Y-AXIS": 50, QUADRANT_1: 51, QUADRANT_2: 52, QUADRANT_3: 53, QUADRANT_4: 54, NEWLINE: 55, SEMI: 56, EOF: 57, alphaNumToken: 58, textNoTagsToken: 59, STR: 60, MD_STR: 61, alphaNum: 62, PUNCTUATION: 63, PLUS: 64, EQUALS: 65, DOT: 66, UNDERSCORE: 67, $accept: 0, $end: 1 },
15
+ terminals_: { 2: "error", 4: "ALPHA", 5: "NUM", 6: "NODE_STRING", 7: "DOWN", 8: "MINUS", 9: "DEFAULT", 10: "COMMA", 11: "COLON", 12: "AMP", 13: "BRKT", 14: "MULT", 15: "UNICODE_TEXT", 17: "UNIT", 18: "SPACE", 19: "STYLE", 20: "PCT", 25: "CLASSDEF", 28: "QUADRANT", 35: "title", 36: "title_value", 37: "acc_title", 38: "acc_title_value", 39: "acc_descr", 40: "acc_descr_value", 41: "acc_descr_multiline_value", 42: "section", 44: "point_start", 45: "point_x", 46: "point_y", 47: "class_name", 48: "X-AXIS", 49: "AXIS-TEXT-DELIMITER", 50: "Y-AXIS", 51: "QUADRANT_1", 52: "QUADRANT_2", 53: "QUADRANT_3", 54: "QUADRANT_4", 55: "NEWLINE", 56: "SEMI", 57: "EOF", 60: "STR", 61: "MD_STR", 63: "PUNCTUATION", 64: "PLUS", 65: "EQUALS", 66: "DOT", 67: "UNDERSCORE" },
16
+ productions_: [0, [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [21, 1], [21, 2], [22, 1], [22, 2], [23, 1], [23, 3], [24, 5], [26, 2], [26, 2], [26, 2], [29, 0], [29, 2], [30, 2], [31, 0], [31, 1], [31, 2], [31, 1], [31, 1], [31, 1], [31, 2], [31, 2], [31, 2], [31, 1], [31, 1], [34, 4], [34, 5], [34, 5], [34, 6], [32, 4], [32, 3], [32, 2], [32, 4], [32, 3], [32, 2], [33, 2], [33, 2], [33, 2], [33, 2], [27, 1], [27, 1], [27, 1], [43, 1], [43, 2], [43, 1], [43, 1], [62, 1], [62, 2], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [59, 1], [59, 1], [59, 1]],
17
+ performAction: /* @__PURE__ */ o(function(Q, n, d, c, A, e, w) {
18
+ var r = e.length - 1;
19
+ switch (A) {
20
+ case 23:
21
+ this.$ = e[r];
22
+ break;
23
+ case 24:
24
+ this.$ = e[r - 1] + "" + e[r];
25
+ break;
26
+ case 26:
27
+ this.$ = e[r - 1] + e[r];
28
+ break;
29
+ case 27:
30
+ this.$ = [e[r].trim()];
31
+ break;
32
+ case 28:
33
+ e[r - 2].push(e[r].trim()), this.$ = e[r - 2];
34
+ break;
35
+ case 29:
36
+ this.$ = e[r - 4], c.addClass(e[r - 2], e[r]);
37
+ break;
38
+ case 37:
39
+ this.$ = [];
40
+ break;
41
+ case 42:
42
+ this.$ = e[r].trim(), c.setDiagramTitle(this.$);
43
+ break;
44
+ case 43:
45
+ this.$ = e[r].trim(), c.setAccTitle(this.$);
46
+ break;
47
+ case 44:
48
+ case 45:
49
+ this.$ = e[r].trim(), c.setAccDescription(this.$);
50
+ break;
51
+ case 46:
52
+ c.addSection(e[r].substr(8)), this.$ = e[r].substr(8);
53
+ break;
54
+ case 47:
55
+ c.addPoint(e[r - 3], "", e[r - 1], e[r], []);
56
+ break;
57
+ case 48:
58
+ c.addPoint(e[r - 4], e[r - 3], e[r - 1], e[r], []);
59
+ break;
60
+ case 49:
61
+ c.addPoint(e[r - 4], "", e[r - 2], e[r - 1], e[r]);
62
+ break;
63
+ case 50:
64
+ c.addPoint(e[r - 5], e[r - 4], e[r - 2], e[r - 1], e[r]);
65
+ break;
66
+ case 51:
67
+ c.setXAxisLeftText(e[r - 2]), c.setXAxisRightText(e[r]);
68
+ break;
69
+ case 52:
70
+ e[r - 1].text += " \u27F6 ", c.setXAxisLeftText(e[r - 1]);
71
+ break;
72
+ case 53:
73
+ c.setXAxisLeftText(e[r]);
74
+ break;
75
+ case 54:
76
+ c.setYAxisBottomText(e[r - 2]), c.setYAxisTopText(e[r]);
77
+ break;
78
+ case 55:
79
+ e[r - 1].text += " \u27F6 ", c.setYAxisBottomText(e[r - 1]);
80
+ break;
81
+ case 56:
82
+ c.setYAxisBottomText(e[r]);
83
+ break;
84
+ case 57:
85
+ c.setQuadrant1Text(e[r]);
86
+ break;
87
+ case 58:
88
+ c.setQuadrant2Text(e[r]);
89
+ break;
90
+ case 59:
91
+ c.setQuadrant3Text(e[r]);
92
+ break;
93
+ case 60:
94
+ c.setQuadrant4Text(e[r]);
95
+ break;
96
+ case 64:
97
+ this.$ = { text: e[r], type: "text" };
98
+ break;
99
+ case 65:
100
+ this.$ = { text: e[r - 1].text + "" + e[r], type: e[r - 1].type };
101
+ break;
102
+ case 66:
103
+ this.$ = { text: e[r], type: "text" };
104
+ break;
105
+ case 67:
106
+ this.$ = { text: e[r], type: "markdown" };
107
+ break;
108
+ case 68:
109
+ this.$ = e[r];
110
+ break;
111
+ case 69:
112
+ this.$ = e[r - 1] + "" + e[r];
113
+ break;
114
+ }
115
+ }, "anonymous"),
116
+ table: [{ 18: a, 26: 1, 27: 2, 28: g, 55: u, 56: l, 57: x }, { 1: [3] }, { 18: a, 26: 8, 27: 2, 28: g, 55: u, 56: l, 57: x }, { 18: a, 26: 9, 27: 2, 28: g, 55: u, 56: l, 57: x }, t(b, [2, 33], { 29: 10 }), t(h, [2, 61]), t(h, [2, 62]), t(h, [2, 63]), { 1: [2, 30] }, { 1: [2, 31] }, t(s, _, { 30: 11, 31: 12, 24: 13, 32: 15, 33: 16, 34: 17, 43: 30, 58: 31, 1: [2, 32], 4: p, 5: m, 10: T, 12: y, 13: f, 14: q, 18: H, 25: C, 35: ct, 37: dt, 39: ut, 41: xt, 42: gt, 48: lt, 50: ht, 51: i, 52: It, 53: Wt, 54: wt, 60: N, 61: O, 63: S, 64: k, 65: F, 66: P, 67: v }), t(b, [2, 34]), { 27: 45, 55: u, 56: l, 57: x }, t(s, [2, 37]), t(s, _, { 24: 13, 32: 15, 33: 16, 34: 17, 43: 30, 58: 31, 31: 46, 4: p, 5: m, 10: T, 12: y, 13: f, 14: q, 18: H, 25: C, 35: ct, 37: dt, 39: ut, 41: xt, 42: gt, 48: lt, 50: ht, 51: i, 52: It, 53: Wt, 54: wt, 60: N, 61: O, 63: S, 64: k, 65: F, 66: P, 67: v }), t(s, [2, 39]), t(s, [2, 40]), t(s, [2, 41]), { 36: [1, 47] }, { 38: [1, 48] }, { 40: [1, 49] }, t(s, [2, 45]), t(s, [2, 46]), { 18: [1, 50] }, { 4: p, 5: m, 10: T, 12: y, 13: f, 14: q, 43: 51, 58: 31, 60: N, 61: O, 63: S, 64: k, 65: F, 66: P, 67: v }, { 4: p, 5: m, 10: T, 12: y, 13: f, 14: q, 43: 52, 58: 31, 60: N, 61: O, 63: S, 64: k, 65: F, 66: P, 67: v }, { 4: p, 5: m, 10: T, 12: y, 13: f, 14: q, 43: 53, 58: 31, 60: N, 61: O, 63: S, 64: k, 65: F, 66: P, 67: v }, { 4: p, 5: m, 10: T, 12: y, 13: f, 14: q, 43: 54, 58: 31, 60: N, 61: O, 63: S, 64: k, 65: F, 66: P, 67: v }, { 4: p, 5: m, 10: T, 12: y, 13: f, 14: q, 43: 55, 58: 31, 60: N, 61: O, 63: S, 64: k, 65: F, 66: P, 67: v }, { 4: p, 5: m, 10: T, 12: y, 13: f, 14: q, 43: 56, 58: 31, 60: N, 61: O, 63: S, 64: k, 65: F, 66: P, 67: v }, { 4: p, 5: m, 8: Y, 10: T, 12: y, 13: f, 14: q, 18: M, 44: [1, 57], 47: [1, 58], 58: 60, 59: 59, 63: S, 64: k, 65: F, 66: P, 67: v }, t(L, [2, 64]), t(L, [2, 66]), t(L, [2, 67]), t(L, [2, 70]), t(L, [2, 71]), t(L, [2, 72]), t(L, [2, 73]), t(L, [2, 74]), t(L, [2, 75]), t(L, [2, 76]), t(L, [2, 77]), t(L, [2, 78]), t(L, [2, 79]), t(L, [2, 80]), t(b, [2, 35]), t(s, [2, 38]), t(s, [2, 42]), t(s, [2, 43]), t(s, [2, 44]), { 3: 64, 4: Rt, 5: Bt, 6: $t, 7: Ut, 8: Nt, 9: Ot, 10: Qt, 11: Xt, 12: Ht, 13: Yt, 14: Mt, 15: jt, 21: 63 }, t(s, [2, 53], { 59: 59, 58: 60, 4: p, 5: m, 8: Y, 10: T, 12: y, 13: f, 14: q, 18: M, 49: [1, 77], 63: S, 64: k, 65: F, 66: P, 67: v }), t(s, [2, 56], { 59: 59, 58: 60, 4: p, 5: m, 8: Y, 10: T, 12: y, 13: f, 14: q, 18: M, 49: [1, 78], 63: S, 64: k, 65: F, 66: P, 67: v }), t(s, [2, 57], { 59: 59, 58: 60, 4: p, 5: m, 8: Y, 10: T, 12: y, 13: f, 14: q, 18: M, 63: S, 64: k, 65: F, 66: P, 67: v }), t(s, [2, 58], { 59: 59, 58: 60, 4: p, 5: m, 8: Y, 10: T, 12: y, 13: f, 14: q, 18: M, 63: S, 64: k, 65: F, 66: P, 67: v }), t(s, [2, 59], { 59: 59, 58: 60, 4: p, 5: m, 8: Y, 10: T, 12: y, 13: f, 14: q, 18: M, 63: S, 64: k, 65: F, 66: P, 67: v }), t(s, [2, 60], { 59: 59, 58: 60, 4: p, 5: m, 8: Y, 10: T, 12: y, 13: f, 14: q, 18: M, 63: S, 64: k, 65: F, 66: P, 67: v }), { 45: [1, 79] }, { 44: [1, 80] }, t(L, [2, 65]), t(L, [2, 81]), t(L, [2, 82]), t(L, [2, 83]), { 3: 82, 4: Rt, 5: Bt, 6: $t, 7: Ut, 8: Nt, 9: Ot, 10: Qt, 11: Xt, 12: Ht, 13: Yt, 14: Mt, 15: jt, 18: [1, 81] }, t(W, [2, 23]), t(W, [2, 1]), t(W, [2, 2]), t(W, [2, 3]), t(W, [2, 4]), t(W, [2, 5]), t(W, [2, 6]), t(W, [2, 7]), t(W, [2, 8]), t(W, [2, 9]), t(W, [2, 10]), t(W, [2, 11]), t(W, [2, 12]), t(s, [2, 52], { 58: 31, 43: 83, 4: p, 5: m, 10: T, 12: y, 13: f, 14: q, 60: N, 61: O, 63: S, 64: k, 65: F, 66: P, 67: v }), t(s, [2, 55], { 58: 31, 43: 84, 4: p, 5: m, 10: T, 12: y, 13: f, 14: q, 60: N, 61: O, 63: S, 64: k, 65: F, 66: P, 67: v }), { 46: [1, 85] }, { 45: [1, 86] }, { 4: V, 5: J, 6: Z, 8: tt, 11: et, 13: it, 16: 89, 17: at, 18: nt, 19: st, 20: rt, 22: 88, 23: 87 }, t(W, [2, 24]), t(s, [2, 51], { 59: 59, 58: 60, 4: p, 5: m, 8: Y, 10: T, 12: y, 13: f, 14: q, 18: M, 63: S, 64: k, 65: F, 66: P, 67: v }), t(s, [2, 54], { 59: 59, 58: 60, 4: p, 5: m, 8: Y, 10: T, 12: y, 13: f, 14: q, 18: M, 63: S, 64: k, 65: F, 66: P, 67: v }), t(s, [2, 47], { 22: 88, 16: 89, 23: 100, 4: V, 5: J, 6: Z, 8: tt, 11: et, 13: it, 17: at, 18: nt, 19: st, 20: rt }), { 46: [1, 101] }, t(s, [2, 29], { 10: bt }), t(Gt, [2, 27], { 16: 103, 4: V, 5: J, 6: Z, 8: tt, 11: et, 13: it, 17: at, 18: nt, 19: st, 20: rt }), t($, [2, 25]), t($, [2, 13]), t($, [2, 14]), t($, [2, 15]), t($, [2, 16]), t($, [2, 17]), t($, [2, 18]), t($, [2, 19]), t($, [2, 20]), t($, [2, 21]), t($, [2, 22]), t(s, [2, 49], { 10: bt }), t(s, [2, 48], { 22: 88, 16: 89, 23: 104, 4: V, 5: J, 6: Z, 8: tt, 11: et, 13: it, 17: at, 18: nt, 19: st, 20: rt }), { 4: V, 5: J, 6: Z, 8: tt, 11: et, 13: it, 16: 89, 17: at, 18: nt, 19: st, 20: rt, 22: 105 }, t($, [2, 26]), t(s, [2, 50], { 10: bt }), t(Gt, [2, 28], { 16: 103, 4: V, 5: J, 6: Z, 8: tt, 11: et, 13: it, 17: at, 18: nt, 19: st, 20: rt })],
117
+ defaultActions: { 8: [2, 30], 9: [2, 31] },
118
+ parseError: /* @__PURE__ */ o(function(Q, n) {
119
+ if (n.recoverable)
120
+ this.trace(Q);
121
+ else {
122
+ var d = new Error(Q);
123
+ throw d.hash = n, d;
124
+ }
125
+ }, "parseError"),
126
+ parse: /* @__PURE__ */ o(function(Q) {
127
+ var n = this, d = [0], c = [], A = [null], e = [], w = this.table, r = "", pt = 0, Kt = 0, Te = 2, Vt = 1, me = e.slice.call(arguments, 1), E = Object.create(this.lexer), G = { yy: {} };
128
+ for (var St in this.yy)
129
+ Object.prototype.hasOwnProperty.call(this.yy, St) && (G.yy[St] = this.yy[St]);
130
+ E.setInput(Q, G.yy), G.yy.lexer = E, G.yy.parser = this, typeof E.yylloc > "u" && (E.yylloc = {});
131
+ var kt = E.yylloc;
132
+ e.push(kt);
133
+ var qe = E.options && E.options.ranges;
134
+ typeof G.yy.parseError == "function" ? this.parseError = G.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
135
+ function Ae(B) {
136
+ d.length = d.length - 2 * B, A.length = A.length - B, e.length = e.length - B;
137
+ }
138
+ o(Ae, "popStack");
139
+ function Jt() {
140
+ var B;
141
+ return B = c.pop() || E.lex() || Vt, typeof B != "number" && (B instanceof Array && (c = B, B = c.pop()), B = n.symbols_[B] || B), B;
142
+ }
143
+ o(Jt, "lex");
144
+ for (var R, K, U, Ft, ot = {}, yt, j, Zt, Tt; ; ) {
145
+ if (K = d[d.length - 1], this.defaultActions[K] ? U = this.defaultActions[K] : ((R === null || typeof R > "u") && (R = Jt()), U = w[K] && w[K][R]), typeof U > "u" || !U.length || !U[0]) {
146
+ var Pt = "";
147
+ Tt = [];
148
+ for (yt in w[K])
149
+ this.terminals_[yt] && yt > Te && Tt.push("'" + this.terminals_[yt] + "'");
150
+ E.showPosition ? Pt = "Parse error on line " + (pt + 1) + `:
151
+ ` + E.showPosition() + `
152
+ Expecting ` + Tt.join(", ") + ", got '" + (this.terminals_[R] || R) + "'" : Pt = "Parse error on line " + (pt + 1) + ": Unexpected " + (R == Vt ? "end of input" : "'" + (this.terminals_[R] || R) + "'"), this.parseError(Pt, {
153
+ text: E.match,
154
+ token: this.terminals_[R] || R,
155
+ line: E.yylineno,
156
+ loc: kt,
157
+ expected: Tt
158
+ });
159
+ }
160
+ if (U[0] instanceof Array && U.length > 1)
161
+ throw new Error("Parse Error: multiple actions possible at state: " + K + ", token: " + R);
162
+ switch (U[0]) {
163
+ case 1:
164
+ d.push(R), A.push(E.yytext), e.push(E.yylloc), d.push(U[1]), R = null, Kt = E.yyleng, r = E.yytext, pt = E.yylineno, kt = E.yylloc;
165
+ break;
166
+ case 2:
167
+ if (j = this.productions_[U[1]][1], ot.$ = A[A.length - j], ot._$ = {
168
+ first_line: e[e.length - (j || 1)].first_line,
169
+ last_line: e[e.length - 1].last_line,
170
+ first_column: e[e.length - (j || 1)].first_column,
171
+ last_column: e[e.length - 1].last_column
172
+ }, qe && (ot._$.range = [
173
+ e[e.length - (j || 1)].range[0],
174
+ e[e.length - 1].range[1]
175
+ ]), Ft = this.performAction.apply(ot, [
176
+ r,
177
+ Kt,
178
+ pt,
179
+ G.yy,
180
+ U[1],
181
+ A,
182
+ e
183
+ ].concat(me)), typeof Ft < "u")
184
+ return Ft;
185
+ j && (d = d.slice(0, -1 * j * 2), A = A.slice(0, -1 * j), e = e.slice(0, -1 * j)), d.push(this.productions_[U[1]][0]), A.push(ot.$), e.push(ot._$), Zt = w[d[d.length - 2]][d[d.length - 1]], d.push(Zt);
186
+ break;
187
+ case 3:
188
+ return !0;
189
+ }
190
+ }
191
+ return !0;
192
+ }, "parse")
193
+ }, ye = /* @__PURE__ */ function() {
194
+ var Q = {
195
+ EOF: 1,
196
+ parseError: /* @__PURE__ */ o(function(n, d) {
197
+ if (this.yy.parser)
198
+ this.yy.parser.parseError(n, d);
199
+ else
200
+ throw new Error(n);
201
+ }, "parseError"),
202
+ // resets the lexer, sets new input
203
+ setInput: /* @__PURE__ */ o(function(n, d) {
204
+ return this.yy = d || this.yy || {}, this._input = n, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
205
+ first_line: 1,
206
+ first_column: 0,
207
+ last_line: 1,
208
+ last_column: 0
209
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
210
+ }, "setInput"),
211
+ // consumes and returns one char from the input
212
+ input: /* @__PURE__ */ o(function() {
213
+ var n = this._input[0];
214
+ this.yytext += n, this.yyleng++, this.offset++, this.match += n, this.matched += n;
215
+ var d = n.match(/(?:\r\n?|\n).*/g);
216
+ return d ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), n;
217
+ }, "input"),
218
+ // unshifts one char (or a string) into the input
219
+ unput: /* @__PURE__ */ o(function(n) {
220
+ var d = n.length, c = n.split(/(?:\r\n?|\n)/g);
221
+ this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - d), this.offset -= d;
222
+ var A = this.match.split(/(?:\r\n?|\n)/g);
223
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), c.length - 1 && (this.yylineno -= c.length - 1);
224
+ var e = this.yylloc.range;
225
+ return this.yylloc = {
226
+ first_line: this.yylloc.first_line,
227
+ last_line: this.yylineno + 1,
228
+ first_column: this.yylloc.first_column,
229
+ last_column: c ? (c.length === A.length ? this.yylloc.first_column : 0) + A[A.length - c.length].length - c[0].length : this.yylloc.first_column - d
230
+ }, this.options.ranges && (this.yylloc.range = [e[0], e[0] + this.yyleng - d]), this.yyleng = this.yytext.length, this;
231
+ }, "unput"),
232
+ // When called from action, caches matched text and appends it on next action
233
+ more: /* @__PURE__ */ o(function() {
234
+ return this._more = !0, this;
235
+ }, "more"),
236
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
237
+ reject: /* @__PURE__ */ o(function() {
238
+ if (this.options.backtrack_lexer)
239
+ this._backtrack = !0;
240
+ else
241
+ 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).
242
+ ` + this.showPosition(), {
243
+ text: "",
244
+ token: null,
245
+ line: this.yylineno
246
+ });
247
+ return this;
248
+ }, "reject"),
249
+ // retain first n characters of the match
250
+ less: /* @__PURE__ */ o(function(n) {
251
+ this.unput(this.match.slice(n));
252
+ }, "less"),
253
+ // displays already matched input, i.e. for error messages
254
+ pastInput: /* @__PURE__ */ o(function() {
255
+ var n = this.matched.substr(0, this.matched.length - this.match.length);
256
+ return (n.length > 20 ? "..." : "") + n.substr(-20).replace(/\n/g, "");
257
+ }, "pastInput"),
258
+ // displays upcoming input, i.e. for error messages
259
+ upcomingInput: /* @__PURE__ */ o(function() {
260
+ var n = this.match;
261
+ return n.length < 20 && (n += this._input.substr(0, 20 - n.length)), (n.substr(0, 20) + (n.length > 20 ? "..." : "")).replace(/\n/g, "");
262
+ }, "upcomingInput"),
263
+ // displays the character position where the lexing error occurred, i.e. for error messages
264
+ showPosition: /* @__PURE__ */ o(function() {
265
+ var n = this.pastInput(), d = new Array(n.length + 1).join("-");
266
+ return n + this.upcomingInput() + `
267
+ ` + d + "^";
268
+ }, "showPosition"),
269
+ // test the lexed token: return FALSE when not a match, otherwise return token
270
+ test_match: /* @__PURE__ */ o(function(n, d) {
271
+ var c, A, e;
272
+ if (this.options.backtrack_lexer && (e = {
273
+ yylineno: this.yylineno,
274
+ yylloc: {
275
+ first_line: this.yylloc.first_line,
276
+ last_line: this.last_line,
277
+ first_column: this.yylloc.first_column,
278
+ last_column: this.yylloc.last_column
279
+ },
280
+ yytext: this.yytext,
281
+ match: this.match,
282
+ matches: this.matches,
283
+ matched: this.matched,
284
+ yyleng: this.yyleng,
285
+ offset: this.offset,
286
+ _more: this._more,
287
+ _input: this._input,
288
+ yy: this.yy,
289
+ conditionStack: this.conditionStack.slice(0),
290
+ done: this.done
291
+ }, this.options.ranges && (e.yylloc.range = this.yylloc.range.slice(0))), A = n[0].match(/(?:\r\n?|\n).*/g), A && (this.yylineno += A.length), this.yylloc = {
292
+ first_line: this.yylloc.last_line,
293
+ last_line: this.yylineno + 1,
294
+ first_column: this.yylloc.last_column,
295
+ last_column: A ? A[A.length - 1].length - A[A.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + n[0].length
296
+ }, this.yytext += n[0], this.match += n[0], this.matches = n, 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(n[0].length), this.matched += n[0], c = this.performAction.call(this, this.yy, this, d, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), c)
297
+ return c;
298
+ if (this._backtrack) {
299
+ for (var w in e)
300
+ this[w] = e[w];
301
+ return !1;
302
+ }
303
+ return !1;
304
+ }, "test_match"),
305
+ // return next match in input
306
+ next: /* @__PURE__ */ o(function() {
307
+ if (this.done)
308
+ return this.EOF;
309
+ this._input || (this.done = !0);
310
+ var n, d, c, A;
311
+ this._more || (this.yytext = "", this.match = "");
312
+ for (var e = this._currentRules(), w = 0; w < e.length; w++)
313
+ if (c = this._input.match(this.rules[e[w]]), c && (!d || c[0].length > d[0].length)) {
314
+ if (d = c, A = w, this.options.backtrack_lexer) {
315
+ if (n = this.test_match(c, e[w]), n !== !1)
316
+ return n;
317
+ if (this._backtrack) {
318
+ d = !1;
319
+ continue;
320
+ } else
321
+ return !1;
322
+ } else if (!this.options.flex)
323
+ break;
324
+ }
325
+ return d ? (n = this.test_match(d, e[A]), n !== !1 ? n : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
326
+ ` + this.showPosition(), {
327
+ text: "",
328
+ token: null,
329
+ line: this.yylineno
330
+ });
331
+ }, "next"),
332
+ // return next match that has a token
333
+ lex: /* @__PURE__ */ o(function() {
334
+ var n = this.next();
335
+ return n || this.lex();
336
+ }, "lex"),
337
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
338
+ begin: /* @__PURE__ */ o(function(n) {
339
+ this.conditionStack.push(n);
340
+ }, "begin"),
341
+ // pop the previously active lexer condition state off the condition stack
342
+ popState: /* @__PURE__ */ o(function() {
343
+ var n = this.conditionStack.length - 1;
344
+ return n > 0 ? this.conditionStack.pop() : this.conditionStack[0];
345
+ }, "popState"),
346
+ // produce the lexer rule set which is active for the currently active lexer condition state
347
+ _currentRules: /* @__PURE__ */ o(function() {
348
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
349
+ }, "_currentRules"),
350
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
351
+ topState: /* @__PURE__ */ o(function(n) {
352
+ return n = this.conditionStack.length - 1 - Math.abs(n || 0), n >= 0 ? this.conditionStack[n] : "INITIAL";
353
+ }, "topState"),
354
+ // alias for begin(condition)
355
+ pushState: /* @__PURE__ */ o(function(n) {
356
+ this.begin(n);
357
+ }, "pushState"),
358
+ // return the number of states currently on the stack
359
+ stateStackSize: /* @__PURE__ */ o(function() {
360
+ return this.conditionStack.length;
361
+ }, "stateStackSize"),
362
+ options: { "case-insensitive": !0 },
363
+ performAction: /* @__PURE__ */ o(function(n, d, c, A) {
364
+ switch (c) {
365
+ case 0:
366
+ break;
367
+ case 1:
368
+ break;
369
+ case 2:
370
+ return 55;
371
+ case 3:
372
+ break;
373
+ case 4:
374
+ return this.begin("title"), 35;
375
+ case 5:
376
+ return this.popState(), "title_value";
377
+ case 6:
378
+ return this.begin("acc_title"), 37;
379
+ case 7:
380
+ return this.popState(), "acc_title_value";
381
+ case 8:
382
+ return this.begin("acc_descr"), 39;
383
+ case 9:
384
+ return this.popState(), "acc_descr_value";
385
+ case 10:
386
+ this.begin("acc_descr_multiline");
387
+ break;
388
+ case 11:
389
+ this.popState();
390
+ break;
391
+ case 12:
392
+ return "acc_descr_multiline_value";
393
+ case 13:
394
+ return 48;
395
+ case 14:
396
+ return 50;
397
+ case 15:
398
+ return 49;
399
+ case 16:
400
+ return 51;
401
+ case 17:
402
+ return 52;
403
+ case 18:
404
+ return 53;
405
+ case 19:
406
+ return 54;
407
+ case 20:
408
+ return 25;
409
+ case 21:
410
+ this.begin("md_string");
411
+ break;
412
+ case 22:
413
+ return "MD_STR";
414
+ case 23:
415
+ this.popState();
416
+ break;
417
+ case 24:
418
+ this.begin("string");
419
+ break;
420
+ case 25:
421
+ this.popState();
422
+ break;
423
+ case 26:
424
+ return "STR";
425
+ case 27:
426
+ this.begin("class_name");
427
+ break;
428
+ case 28:
429
+ return this.popState(), 47;
430
+ case 29:
431
+ return this.begin("point_start"), 44;
432
+ case 30:
433
+ return this.begin("point_x"), 45;
434
+ case 31:
435
+ this.popState();
436
+ break;
437
+ case 32:
438
+ this.popState(), this.begin("point_y");
439
+ break;
440
+ case 33:
441
+ return this.popState(), 46;
442
+ case 34:
443
+ return 28;
444
+ case 35:
445
+ return 4;
446
+ case 36:
447
+ return 11;
448
+ case 37:
449
+ return 64;
450
+ case 38:
451
+ return 10;
452
+ case 39:
453
+ return 65;
454
+ case 40:
455
+ return 65;
456
+ case 41:
457
+ return 14;
458
+ case 42:
459
+ return 13;
460
+ case 43:
461
+ return 67;
462
+ case 44:
463
+ return 66;
464
+ case 45:
465
+ return 12;
466
+ case 46:
467
+ return 8;
468
+ case 47:
469
+ return 5;
470
+ case 48:
471
+ return 18;
472
+ case 49:
473
+ return 56;
474
+ case 50:
475
+ return 63;
476
+ case 51:
477
+ return 57;
478
+ }
479
+ }, "anonymous"),
480
+ rules: [/^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n\r]+)/i, /^(?:%%[^\n]*)/i, /^(?:title\b)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?: *x-axis *)/i, /^(?: *y-axis *)/i, /^(?: *--+> *)/i, /^(?: *quadrant-1 *)/i, /^(?: *quadrant-2 *)/i, /^(?: *quadrant-3 *)/i, /^(?: *quadrant-4 *)/i, /^(?:classDef\b)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?::::)/i, /^(?:^\w+)/i, /^(?:\s*:\s*\[\s*)/i, /^(?:(1)|(0(.\d+)?))/i, /^(?:\s*\] *)/i, /^(?:\s*,\s*)/i, /^(?:(1)|(0(.\d+)?))/i, /^(?: *quadrantChart *)/i, /^(?:[A-Za-z]+)/i, /^(?::)/i, /^(?:\+)/i, /^(?:,)/i, /^(?:=)/i, /^(?:=)/i, /^(?:\*)/i, /^(?:#)/i, /^(?:[\_])/i, /^(?:\.)/i, /^(?:&)/i, /^(?:-)/i, /^(?:[0-9]+)/i, /^(?:\s)/i, /^(?:;)/i, /^(?:[!"#$%&'*+,-.`?\\_/])/i, /^(?:$)/i],
481
+ conditions: { class_name: { rules: [28], inclusive: !1 }, point_y: { rules: [33], inclusive: !1 }, point_x: { rules: [32], inclusive: !1 }, point_start: { rules: [30, 31], inclusive: !1 }, acc_descr_multiline: { rules: [11, 12], inclusive: !1 }, acc_descr: { rules: [9], inclusive: !1 }, acc_title: { rules: [7], inclusive: !1 }, title: { rules: [5], inclusive: !1 }, md_string: { rules: [22, 23], inclusive: !1 }, string: { rules: [25, 26], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 6, 8, 10, 13, 14, 15, 16, 17, 18, 19, 20, 21, 24, 27, 29, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51], inclusive: !0 } }
482
+ };
483
+ return Q;
484
+ }();
485
+ _t.lexer = ye;
486
+ function ft() {
487
+ this.yy = {};
488
+ }
489
+ return o(ft, "Parser"), ft.prototype = _t, _t.Parser = ft, new ft();
490
+ }();
491
+ Et.parser = Et;
492
+ var Ee = Et, I = be(), Ct, De = (Ct = class {
493
+ constructor() {
494
+ this.classes = /* @__PURE__ */ new Map(), this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData();
495
+ }
496
+ getDefaultData() {
497
+ return {
498
+ titleText: "",
499
+ quadrant1Text: "",
500
+ quadrant2Text: "",
501
+ quadrant3Text: "",
502
+ quadrant4Text: "",
503
+ xAxisLeftText: "",
504
+ xAxisRightText: "",
505
+ yAxisBottomText: "",
506
+ yAxisTopText: "",
507
+ points: []
508
+ };
509
+ }
510
+ getDefaultConfig() {
511
+ var t, a, g, u, l, x, b, h, s, _, p, m, T, y, f, q, H, C;
512
+ return {
513
+ showXAxis: !0,
514
+ showYAxis: !0,
515
+ showTitle: !0,
516
+ chartHeight: ((t = D.quadrantChart) == null ? void 0 : t.chartWidth) || 500,
517
+ chartWidth: ((a = D.quadrantChart) == null ? void 0 : a.chartHeight) || 500,
518
+ titlePadding: ((g = D.quadrantChart) == null ? void 0 : g.titlePadding) || 10,
519
+ titleFontSize: ((u = D.quadrantChart) == null ? void 0 : u.titleFontSize) || 20,
520
+ quadrantPadding: ((l = D.quadrantChart) == null ? void 0 : l.quadrantPadding) || 5,
521
+ xAxisLabelPadding: ((x = D.quadrantChart) == null ? void 0 : x.xAxisLabelPadding) || 5,
522
+ yAxisLabelPadding: ((b = D.quadrantChart) == null ? void 0 : b.yAxisLabelPadding) || 5,
523
+ xAxisLabelFontSize: ((h = D.quadrantChart) == null ? void 0 : h.xAxisLabelFontSize) || 16,
524
+ yAxisLabelFontSize: ((s = D.quadrantChart) == null ? void 0 : s.yAxisLabelFontSize) || 16,
525
+ quadrantLabelFontSize: ((_ = D.quadrantChart) == null ? void 0 : _.quadrantLabelFontSize) || 16,
526
+ quadrantTextTopPadding: ((p = D.quadrantChart) == null ? void 0 : p.quadrantTextTopPadding) || 5,
527
+ pointTextPadding: ((m = D.quadrantChart) == null ? void 0 : m.pointTextPadding) || 5,
528
+ pointLabelFontSize: ((T = D.quadrantChart) == null ? void 0 : T.pointLabelFontSize) || 12,
529
+ pointRadius: ((y = D.quadrantChart) == null ? void 0 : y.pointRadius) || 5,
530
+ xAxisPosition: ((f = D.quadrantChart) == null ? void 0 : f.xAxisPosition) || "top",
531
+ yAxisPosition: ((q = D.quadrantChart) == null ? void 0 : q.yAxisPosition) || "left",
532
+ quadrantInternalBorderStrokeWidth: ((H = D.quadrantChart) == null ? void 0 : H.quadrantInternalBorderStrokeWidth) || 1,
533
+ quadrantExternalBorderStrokeWidth: ((C = D.quadrantChart) == null ? void 0 : C.quadrantExternalBorderStrokeWidth) || 2
534
+ };
535
+ }
536
+ getDefaultThemeConfig() {
537
+ return {
538
+ quadrant1Fill: I.quadrant1Fill,
539
+ quadrant2Fill: I.quadrant2Fill,
540
+ quadrant3Fill: I.quadrant3Fill,
541
+ quadrant4Fill: I.quadrant4Fill,
542
+ quadrant1TextFill: I.quadrant1TextFill,
543
+ quadrant2TextFill: I.quadrant2TextFill,
544
+ quadrant3TextFill: I.quadrant3TextFill,
545
+ quadrant4TextFill: I.quadrant4TextFill,
546
+ quadrantPointFill: I.quadrantPointFill,
547
+ quadrantPointTextFill: I.quadrantPointTextFill,
548
+ quadrantXAxisTextFill: I.quadrantXAxisTextFill,
549
+ quadrantYAxisTextFill: I.quadrantYAxisTextFill,
550
+ quadrantTitleFill: I.quadrantTitleFill,
551
+ quadrantInternalBorderStrokeFill: I.quadrantInternalBorderStrokeFill,
552
+ quadrantExternalBorderStrokeFill: I.quadrantExternalBorderStrokeFill
553
+ };
554
+ }
555
+ clear() {
556
+ this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData(), this.classes = /* @__PURE__ */ new Map(), qt.info("clear called");
557
+ }
558
+ setData(t) {
559
+ this.data = { ...this.data, ...t };
560
+ }
561
+ addPoints(t) {
562
+ this.data.points = [...t, ...this.data.points];
563
+ }
564
+ addClass(t, a) {
565
+ this.classes.set(t, a);
566
+ }
567
+ setConfig(t) {
568
+ qt.trace("setConfig called with: ", t), this.config = { ...this.config, ...t };
569
+ }
570
+ setThemeConfig(t) {
571
+ qt.trace("setThemeConfig called with: ", t), this.themeConfig = { ...this.themeConfig, ...t };
572
+ }
573
+ calculateSpace(t, a, g, u) {
574
+ const l = this.config.xAxisLabelPadding * 2 + this.config.xAxisLabelFontSize, x = {
575
+ top: t === "top" && a ? l : 0,
576
+ bottom: t === "bottom" && a ? l : 0
577
+ }, b = this.config.yAxisLabelPadding * 2 + this.config.yAxisLabelFontSize, h = {
578
+ left: this.config.yAxisPosition === "left" && g ? b : 0,
579
+ right: this.config.yAxisPosition === "right" && g ? b : 0
580
+ }, s = this.config.titleFontSize + this.config.titlePadding * 2, _ = {
581
+ top: u ? s : 0
582
+ }, p = this.config.quadrantPadding + h.left, m = this.config.quadrantPadding + x.top + _.top, T = this.config.chartWidth - this.config.quadrantPadding * 2 - h.left - h.right, y = this.config.chartHeight - this.config.quadrantPadding * 2 - x.top - x.bottom - _.top, f = T / 2, q = y / 2;
583
+ return {
584
+ xAxisSpace: x,
585
+ yAxisSpace: h,
586
+ titleSpace: _,
587
+ quadrantSpace: {
588
+ quadrantLeft: p,
589
+ quadrantTop: m,
590
+ quadrantWidth: T,
591
+ quadrantHalfWidth: f,
592
+ quadrantHeight: y,
593
+ quadrantHalfHeight: q
594
+ }
595
+ };
596
+ }
597
+ getAxisLabels(t, a, g, u) {
598
+ const { quadrantSpace: l, titleSpace: x } = u, {
599
+ quadrantHalfHeight: b,
600
+ quadrantHeight: h,
601
+ quadrantLeft: s,
602
+ quadrantHalfWidth: _,
603
+ quadrantTop: p,
604
+ quadrantWidth: m
605
+ } = l, T = !!this.data.xAxisRightText, y = !!this.data.yAxisTopText, f = [];
606
+ return this.data.xAxisLeftText && a && f.push({
607
+ text: this.data.xAxisLeftText,
608
+ fill: this.themeConfig.quadrantXAxisTextFill,
609
+ x: s + (T ? _ / 2 : 0),
610
+ y: t === "top" ? this.config.xAxisLabelPadding + x.top : this.config.xAxisLabelPadding + p + h + this.config.quadrantPadding,
611
+ fontSize: this.config.xAxisLabelFontSize,
612
+ verticalPos: T ? "center" : "left",
613
+ horizontalPos: "top",
614
+ rotation: 0
615
+ }), this.data.xAxisRightText && a && f.push({
616
+ text: this.data.xAxisRightText,
617
+ fill: this.themeConfig.quadrantXAxisTextFill,
618
+ x: s + _ + (T ? _ / 2 : 0),
619
+ y: t === "top" ? this.config.xAxisLabelPadding + x.top : this.config.xAxisLabelPadding + p + h + this.config.quadrantPadding,
620
+ fontSize: this.config.xAxisLabelFontSize,
621
+ verticalPos: T ? "center" : "left",
622
+ horizontalPos: "top",
623
+ rotation: 0
624
+ }), this.data.yAxisBottomText && g && f.push({
625
+ text: this.data.yAxisBottomText,
626
+ fill: this.themeConfig.quadrantYAxisTextFill,
627
+ x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + s + m + this.config.quadrantPadding,
628
+ y: p + h - (y ? b / 2 : 0),
629
+ fontSize: this.config.yAxisLabelFontSize,
630
+ verticalPos: y ? "center" : "left",
631
+ horizontalPos: "top",
632
+ rotation: -90
633
+ }), this.data.yAxisTopText && g && f.push({
634
+ text: this.data.yAxisTopText,
635
+ fill: this.themeConfig.quadrantYAxisTextFill,
636
+ x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + s + m + this.config.quadrantPadding,
637
+ y: p + b - (y ? b / 2 : 0),
638
+ fontSize: this.config.yAxisLabelFontSize,
639
+ verticalPos: y ? "center" : "left",
640
+ horizontalPos: "top",
641
+ rotation: -90
642
+ }), f;
643
+ }
644
+ getQuadrants(t) {
645
+ const { quadrantSpace: a } = t, { quadrantHalfHeight: g, quadrantLeft: u, quadrantHalfWidth: l, quadrantTop: x } = a, b = [
646
+ {
647
+ text: {
648
+ text: this.data.quadrant1Text,
649
+ fill: this.themeConfig.quadrant1TextFill,
650
+ x: 0,
651
+ y: 0,
652
+ fontSize: this.config.quadrantLabelFontSize,
653
+ verticalPos: "center",
654
+ horizontalPos: "middle",
655
+ rotation: 0
656
+ },
657
+ x: u + l,
658
+ y: x,
659
+ width: l,
660
+ height: g,
661
+ fill: this.themeConfig.quadrant1Fill
662
+ },
663
+ {
664
+ text: {
665
+ text: this.data.quadrant2Text,
666
+ fill: this.themeConfig.quadrant2TextFill,
667
+ x: 0,
668
+ y: 0,
669
+ fontSize: this.config.quadrantLabelFontSize,
670
+ verticalPos: "center",
671
+ horizontalPos: "middle",
672
+ rotation: 0
673
+ },
674
+ x: u,
675
+ y: x,
676
+ width: l,
677
+ height: g,
678
+ fill: this.themeConfig.quadrant2Fill
679
+ },
680
+ {
681
+ text: {
682
+ text: this.data.quadrant3Text,
683
+ fill: this.themeConfig.quadrant3TextFill,
684
+ x: 0,
685
+ y: 0,
686
+ fontSize: this.config.quadrantLabelFontSize,
687
+ verticalPos: "center",
688
+ horizontalPos: "middle",
689
+ rotation: 0
690
+ },
691
+ x: u,
692
+ y: x + g,
693
+ width: l,
694
+ height: g,
695
+ fill: this.themeConfig.quadrant3Fill
696
+ },
697
+ {
698
+ text: {
699
+ text: this.data.quadrant4Text,
700
+ fill: this.themeConfig.quadrant4TextFill,
701
+ x: 0,
702
+ y: 0,
703
+ fontSize: this.config.quadrantLabelFontSize,
704
+ verticalPos: "center",
705
+ horizontalPos: "middle",
706
+ rotation: 0
707
+ },
708
+ x: u + l,
709
+ y: x + g,
710
+ width: l,
711
+ height: g,
712
+ fill: this.themeConfig.quadrant4Fill
713
+ }
714
+ ];
715
+ for (const h of b)
716
+ h.text.x = h.x + h.width / 2, this.data.points.length === 0 ? (h.text.y = h.y + h.height / 2, h.text.horizontalPos = "middle") : (h.text.y = h.y + this.config.quadrantTextTopPadding, h.text.horizontalPos = "top");
717
+ return b;
718
+ }
719
+ getQuadrantPoints(t) {
720
+ const { quadrantSpace: a } = t, { quadrantHeight: g, quadrantLeft: u, quadrantTop: l, quadrantWidth: x } = a, b = te().domain([0, 1]).range([u, x + u]), h = te().domain([0, 1]).range([g + l, l]);
721
+ return this.data.points.map((s) => {
722
+ const _ = this.classes.get(s.className);
723
+ return _ && (s = { ..._, ...s }), {
724
+ x: b(s.x),
725
+ y: h(s.y),
726
+ fill: s.color ?? this.themeConfig.quadrantPointFill,
727
+ radius: s.radius ?? this.config.pointRadius,
728
+ text: {
729
+ text: s.text,
730
+ fill: this.themeConfig.quadrantPointTextFill,
731
+ x: b(s.x),
732
+ y: h(s.y) + this.config.pointTextPadding,
733
+ verticalPos: "center",
734
+ horizontalPos: "top",
735
+ fontSize: this.config.pointLabelFontSize,
736
+ rotation: 0
737
+ },
738
+ strokeColor: s.strokeColor ?? this.themeConfig.quadrantPointFill,
739
+ strokeWidth: s.strokeWidth ?? "0px"
740
+ };
741
+ });
742
+ }
743
+ getBorders(t) {
744
+ const a = this.config.quadrantExternalBorderStrokeWidth / 2, { quadrantSpace: g } = t, {
745
+ quadrantHalfHeight: u,
746
+ quadrantHeight: l,
747
+ quadrantLeft: x,
748
+ quadrantHalfWidth: b,
749
+ quadrantTop: h,
750
+ quadrantWidth: s
751
+ } = g;
752
+ return [
753
+ // top border
754
+ {
755
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
756
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
757
+ x1: x - a,
758
+ y1: h,
759
+ x2: x + s + a,
760
+ y2: h
761
+ },
762
+ // right border
763
+ {
764
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
765
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
766
+ x1: x + s,
767
+ y1: h + a,
768
+ x2: x + s,
769
+ y2: h + l - a
770
+ },
771
+ // bottom border
772
+ {
773
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
774
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
775
+ x1: x - a,
776
+ y1: h + l,
777
+ x2: x + s + a,
778
+ y2: h + l
779
+ },
780
+ // left border
781
+ {
782
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
783
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
784
+ x1: x,
785
+ y1: h + a,
786
+ x2: x,
787
+ y2: h + l - a
788
+ },
789
+ // vertical inner border
790
+ {
791
+ strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
792
+ strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
793
+ x1: x + b,
794
+ y1: h + a,
795
+ x2: x + b,
796
+ y2: h + l - a
797
+ },
798
+ // horizontal inner border
799
+ {
800
+ strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
801
+ strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
802
+ x1: x + a,
803
+ y1: h + u,
804
+ x2: x + s - a,
805
+ y2: h + u
806
+ }
807
+ ];
808
+ }
809
+ getTitle(t) {
810
+ if (t)
811
+ return {
812
+ text: this.data.titleText,
813
+ fill: this.themeConfig.quadrantTitleFill,
814
+ fontSize: this.config.titleFontSize,
815
+ horizontalPos: "top",
816
+ verticalPos: "center",
817
+ rotation: 0,
818
+ y: this.config.titlePadding,
819
+ x: this.config.chartWidth / 2
820
+ };
821
+ }
822
+ build() {
823
+ const t = this.config.showXAxis && !!(this.data.xAxisLeftText || this.data.xAxisRightText), a = this.config.showYAxis && !!(this.data.yAxisTopText || this.data.yAxisBottomText), g = this.config.showTitle && !!this.data.titleText, u = this.data.points.length > 0 ? "bottom" : this.config.xAxisPosition, l = this.calculateSpace(u, t, a, g);
824
+ return {
825
+ points: this.getQuadrantPoints(l),
826
+ quadrants: this.getQuadrants(l),
827
+ axisLabels: this.getAxisLabels(u, t, a, l),
828
+ borderLines: this.getBorders(l),
829
+ title: this.getTitle(g)
830
+ };
831
+ }
832
+ }, o(Ct, "QuadrantBuilder"), Ct), Lt, mt = (Lt = class extends Error {
833
+ constructor(t, a, g) {
834
+ super(`value for ${t} ${a} is invalid, please use a valid ${g}`), this.name = "InvalidStyleError";
835
+ }
836
+ }, o(Lt, "InvalidStyleError"), Lt);
837
+ function Dt(t) {
838
+ return !/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t);
839
+ }
840
+ o(Dt, "validateHexCode");
841
+ function ie(t) {
842
+ return !/^\d+$/.test(t);
843
+ }
844
+ o(ie, "validateNumber");
845
+ function ae(t) {
846
+ return !/^\d+px$/.test(t);
847
+ }
848
+ o(ae, "validateSizeInPixels");
849
+ var ze = zt();
850
+ function X(t) {
851
+ return _e(t.trim(), ze);
852
+ }
853
+ o(X, "textSanitizer");
854
+ var z = new De();
855
+ function ne(t) {
856
+ z.setData({ quadrant1Text: X(t.text) });
857
+ }
858
+ o(ne, "setQuadrant1Text");
859
+ function se(t) {
860
+ z.setData({ quadrant2Text: X(t.text) });
861
+ }
862
+ o(se, "setQuadrant2Text");
863
+ function re(t) {
864
+ z.setData({ quadrant3Text: X(t.text) });
865
+ }
866
+ o(re, "setQuadrant3Text");
867
+ function oe(t) {
868
+ z.setData({ quadrant4Text: X(t.text) });
869
+ }
870
+ o(oe, "setQuadrant4Text");
871
+ function le(t) {
872
+ z.setData({ xAxisLeftText: X(t.text) });
873
+ }
874
+ o(le, "setXAxisLeftText");
875
+ function he(t) {
876
+ z.setData({ xAxisRightText: X(t.text) });
877
+ }
878
+ o(he, "setXAxisRightText");
879
+ function ce(t) {
880
+ z.setData({ yAxisTopText: X(t.text) });
881
+ }
882
+ o(ce, "setYAxisTopText");
883
+ function de(t) {
884
+ z.setData({ yAxisBottomText: X(t.text) });
885
+ }
886
+ o(de, "setYAxisBottomText");
887
+ function At(t) {
888
+ const a = {};
889
+ for (const g of t) {
890
+ const [u, l] = g.trim().split(/\s*:\s*/);
891
+ if (u === "radius") {
892
+ if (ie(l))
893
+ throw new mt(u, l, "number");
894
+ a.radius = parseInt(l);
895
+ } else if (u === "color") {
896
+ if (Dt(l))
897
+ throw new mt(u, l, "hex code");
898
+ a.color = l;
899
+ } else if (u === "stroke-color") {
900
+ if (Dt(l))
901
+ throw new mt(u, l, "hex code");
902
+ a.strokeColor = l;
903
+ } else if (u === "stroke-width") {
904
+ if (ae(l))
905
+ throw new mt(u, l, "number of pixels (eg. 10px)");
906
+ a.strokeWidth = l;
907
+ } else
908
+ throw new Error(`style named ${u} is not supported.`);
909
+ }
910
+ return a;
911
+ }
912
+ o(At, "parseStyles");
913
+ function ue(t, a, g, u, l) {
914
+ const x = At(l);
915
+ z.addPoints([
916
+ {
917
+ x: g,
918
+ y: u,
919
+ text: X(t.text),
920
+ className: a,
921
+ ...x
922
+ }
923
+ ]);
924
+ }
925
+ o(ue, "addPoint");
926
+ function xe(t, a) {
927
+ z.addClass(t, At(a));
928
+ }
929
+ o(xe, "addClass");
930
+ function ge(t) {
931
+ z.setConfig({ chartWidth: t });
932
+ }
933
+ o(ge, "setWidth");
934
+ function fe(t) {
935
+ z.setConfig({ chartHeight: t });
936
+ }
937
+ o(fe, "setHeight");
938
+ function pe() {
939
+ const t = zt(), { themeVariables: a, quadrantChart: g } = t;
940
+ return g && z.setConfig(g), z.setThemeConfig({
941
+ quadrant1Fill: a.quadrant1Fill,
942
+ quadrant2Fill: a.quadrant2Fill,
943
+ quadrant3Fill: a.quadrant3Fill,
944
+ quadrant4Fill: a.quadrant4Fill,
945
+ quadrant1TextFill: a.quadrant1TextFill,
946
+ quadrant2TextFill: a.quadrant2TextFill,
947
+ quadrant3TextFill: a.quadrant3TextFill,
948
+ quadrant4TextFill: a.quadrant4TextFill,
949
+ quadrantPointFill: a.quadrantPointFill,
950
+ quadrantPointTextFill: a.quadrantPointTextFill,
951
+ quadrantXAxisTextFill: a.quadrantXAxisTextFill,
952
+ quadrantYAxisTextFill: a.quadrantYAxisTextFill,
953
+ quadrantExternalBorderStrokeFill: a.quadrantExternalBorderStrokeFill,
954
+ quadrantInternalBorderStrokeFill: a.quadrantInternalBorderStrokeFill,
955
+ quadrantTitleFill: a.quadrantTitleFill
956
+ }), z.setData({ titleText: ee() }), z.build();
957
+ }
958
+ o(pe, "getQuadrantData");
959
+ var Ie = /* @__PURE__ */ o(function() {
960
+ z.clear(), Ce();
961
+ }, "clear"), We = {
962
+ setWidth: ge,
963
+ setHeight: fe,
964
+ setQuadrant1Text: ne,
965
+ setQuadrant2Text: se,
966
+ setQuadrant3Text: re,
967
+ setQuadrant4Text: oe,
968
+ setXAxisLeftText: le,
969
+ setXAxisRightText: he,
970
+ setYAxisTopText: ce,
971
+ setYAxisBottomText: de,
972
+ parseStyles: At,
973
+ addPoint: ue,
974
+ addClass: xe,
975
+ getQuadrantData: pe,
976
+ clear: Ie,
977
+ setAccTitle: Se,
978
+ getAccTitle: ke,
979
+ setDiagramTitle: Fe,
980
+ getDiagramTitle: ee,
981
+ getAccDescription: Pe,
982
+ setAccDescription: ve
983
+ }, we = /* @__PURE__ */ o((t, a, g, u) => {
984
+ var l, x, b;
985
+ function h(i) {
986
+ return i === "top" ? "hanging" : "middle";
987
+ }
988
+ o(h, "getDominantBaseLine");
989
+ function s(i) {
990
+ return i === "left" ? "start" : "middle";
991
+ }
992
+ o(s, "getTextAnchor");
993
+ function _(i) {
994
+ return `translate(${i.x}, ${i.y}) rotate(${i.rotation || 0})`;
995
+ }
996
+ o(_, "getTransformation");
997
+ const p = zt();
998
+ qt.debug(`Rendering quadrant chart
999
+ ` + t);
1000
+ const m = p.securityLevel;
1001
+ let T;
1002
+ m === "sandbox" && (T = vt("#i" + a));
1003
+ const y = (m === "sandbox" ? vt(T.nodes()[0].contentDocument.body) : vt("body")).select(`[id="${a}"]`), f = y.append("g").attr("class", "main"), q = ((l = p.quadrantChart) == null ? void 0 : l.chartWidth) ?? 500, H = ((x = p.quadrantChart) == null ? void 0 : x.chartHeight) ?? 500;
1004
+ Le(y, H, q, ((b = p.quadrantChart) == null ? void 0 : b.useMaxWidth) ?? !0), y.attr("viewBox", "0 0 " + q + " " + H), u.db.setHeight(H), u.db.setWidth(q);
1005
+ const C = u.db.getQuadrantData(), ct = f.append("g").attr("class", "quadrants"), dt = f.append("g").attr("class", "border"), ut = f.append("g").attr("class", "data-points"), xt = f.append("g").attr("class", "labels"), gt = f.append("g").attr("class", "title");
1006
+ C.title && gt.append("text").attr("x", 0).attr("y", 0).attr("fill", C.title.fill).attr("font-size", C.title.fontSize).attr("dominant-baseline", h(C.title.horizontalPos)).attr("text-anchor", s(C.title.verticalPos)).attr("transform", _(C.title)).text(C.title.text), C.borderLines && dt.selectAll("line").data(C.borderLines).enter().append("line").attr("x1", (i) => i.x1).attr("y1", (i) => i.y1).attr("x2", (i) => i.x2).attr("y2", (i) => i.y2).style("stroke", (i) => i.strokeFill).style("stroke-width", (i) => i.strokeWidth);
1007
+ const lt = ct.selectAll("g.quadrant").data(C.quadrants).enter().append("g").attr("class", "quadrant");
1008
+ lt.append("rect").attr("x", (i) => i.x).attr("y", (i) => i.y).attr("width", (i) => i.width).attr("height", (i) => i.height).attr("fill", (i) => i.fill), lt.append("text").attr("x", 0).attr("y", 0).attr("fill", (i) => i.text.fill).attr("font-size", (i) => i.text.fontSize).attr(
1009
+ "dominant-baseline",
1010
+ (i) => h(i.text.horizontalPos)
1011
+ ).attr("text-anchor", (i) => s(i.text.verticalPos)).attr("transform", (i) => _(i.text)).text((i) => i.text.text), xt.selectAll("g.label").data(C.axisLabels).enter().append("g").attr("class", "label").append("text").attr("x", 0).attr("y", 0).text((i) => i.text).attr("fill", (i) => i.fill).attr("font-size", (i) => i.fontSize).attr("dominant-baseline", (i) => h(i.horizontalPos)).attr("text-anchor", (i) => s(i.verticalPos)).attr("transform", (i) => _(i));
1012
+ const ht = ut.selectAll("g.data-point").data(C.points).enter().append("g").attr("class", "data-point");
1013
+ ht.append("circle").attr("cx", (i) => i.x).attr("cy", (i) => i.y).attr("r", (i) => i.radius).attr("fill", (i) => i.fill).attr("stroke", (i) => i.strokeColor).attr("stroke-width", (i) => i.strokeWidth), ht.append("text").attr("x", 0).attr("y", 0).text((i) => i.text.text).attr("fill", (i) => i.text.fill).attr("font-size", (i) => i.text.fontSize).attr(
1014
+ "dominant-baseline",
1015
+ (i) => h(i.text.horizontalPos)
1016
+ ).attr("text-anchor", (i) => s(i.text.verticalPos)).attr("transform", (i) => _(i.text));
1017
+ }, "draw"), Re = {
1018
+ draw: we
1019
+ }, Oe = {
1020
+ parser: Ee,
1021
+ db: We,
1022
+ renderer: Re,
1023
+ styles: /* @__PURE__ */ o(() => "", "styles")
1024
+ };
1025
+ export {
1026
+ Oe as diagram
1027
+ };