@blueking/ai-blueking 2.0.0-dev.2 → 2.0.0-dev.3

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