@life-exe/wiki-engine 0.1.0

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 (89) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +180 -0
  3. package/dist/analytics/index.d.ts +10 -0
  4. package/dist/chunks/abnfDiagram-VCTEODGH-DyAP6Aua.js +87 -0
  5. package/dist/chunks/arc-OroUeRL_.js +83 -0
  6. package/dist/chunks/architectureDiagram-5GKGNRK7-FjmrDCl4.js +4784 -0
  7. package/dist/chunks/blockDiagram-I7D4REHJ-BF3oIDlI.js +1416 -0
  8. package/dist/chunks/c4Diagram-7LVT6UL2-Cmdq0LZr.js +1511 -0
  9. package/dist/chunks/channel-Bdy1QZHo.js +5 -0
  10. package/dist/chunks/chunk-2Q5K7J3B-BwxRSEKd.js +15 -0
  11. package/dist/chunks/chunk-5VM5RSS4-BtHwUU4T.js +19 -0
  12. package/dist/chunks/chunk-F27PBJKO-DF4TGftR.js +68 -0
  13. package/dist/chunks/chunk-IMKFNOWR-DkBQ-1aV.js +1421 -0
  14. package/dist/chunks/chunk-JWPE2WC7-BIokdAUW.js +9 -0
  15. package/dist/chunks/chunk-POPQ4Y6H-CcjOsf9X.js +20 -0
  16. package/dist/chunks/chunk-SHT3W25Y-lYp5BdEg.js +1695 -0
  17. package/dist/chunks/chunk-SVP7TREG-DN-ravNt.js +664 -0
  18. package/dist/chunks/chunk-TICWLB2K-CtTJ0xaY.js +1534 -0
  19. package/dist/chunks/chunk-XXDRQBXY-BovkWFC0.js +8 -0
  20. package/dist/chunks/classDiagram-ZZMXUADV-CMYS0pHw.js +16 -0
  21. package/dist/chunks/classDiagram-v2-VYDZK3BY-CMYS0pHw.js +16 -0
  22. package/dist/chunks/common-BJ4q25wy.js +12633 -0
  23. package/dist/chunks/cose-bilkent-JH36ORCC-CaMqpJY7.js +2608 -0
  24. package/dist/chunks/cynefin-OW5HDTMX-Bzjecpt-.js +23853 -0
  25. package/dist/chunks/cynefinDiagram-5FMLGOSQ-C0NuKLt0.js +299 -0
  26. package/dist/chunks/cytoscape.esm-DmPrb1GM.js +18787 -0
  27. package/dist/chunks/dagre-GXQ25YYZ-Ds09_NdN.js +461 -0
  28. package/dist/chunks/defaultLocale-BgPVtth8.js +171 -0
  29. package/dist/chunks/diagram-S7CK7UJ4-IvSazk1O.js +349 -0
  30. package/dist/chunks/diagram-UQ7AKVKN-58epdx5V.js +223 -0
  31. package/dist/chunks/diagram-VSXAHHWV-BrzRGMeV.js +466 -0
  32. package/dist/chunks/diagram-VX7I27RA-DPL0Nw6d.js +530 -0
  33. package/dist/chunks/diagram-Z3DM3KII-8VWVu0I5.js +143 -0
  34. package/dist/chunks/ebnfDiagram-PWID7BFC-DeByR_ze.js +109 -0
  35. package/dist/chunks/erDiagram-RLTQ6QDP-C9uo9iE1.js +1060 -0
  36. package/dist/chunks/flowDiagram-HODETNUW-BpoY3OMp.js +7 -0
  37. package/dist/chunks/ganttDiagram-EL5Y4UJY-psdwnC-T.js +2711 -0
  38. package/dist/chunks/gitGraphDiagram-WWUBYQGX-vsDfkn_Q.js +828 -0
  39. package/dist/chunks/index-f7Uzykhj.js +38262 -0
  40. package/dist/chunks/infoDiagram-27XIBGKW-8K-eQZiU.js +24 -0
  41. package/dist/chunks/init-DjUOC4st.js +16 -0
  42. package/dist/chunks/ishikawaDiagram-5VMMS53U-CuqR1k5i.js +622 -0
  43. package/dist/chunks/journeyDiagram-3NMN7TZE-BPW1nmwZ.js +834 -0
  44. package/dist/chunks/kanban-definition-UXKFOSKX-iY6-d6jO.js +726 -0
  45. package/dist/chunks/katex-jHfnQmlp.js +11682 -0
  46. package/dist/chunks/layout-CgV9vOdp.js +1704 -0
  47. package/dist/chunks/linear-BzcaSMTS.js +259 -0
  48. package/dist/chunks/mindmap-definition-YA3MSWOX-CaLfHyv0.js +831 -0
  49. package/dist/chunks/ordinal-DfAQgscy.js +61 -0
  50. package/dist/chunks/pegDiagram-XKGWAZYB-6Y28VvVh.js +95 -0
  51. package/dist/chunks/pieDiagram-E7YTZNPT-OrjeRxhs.js +209 -0
  52. package/dist/chunks/quadrantDiagram-AXDQQJYC-rgw2lV2J.js +1025 -0
  53. package/dist/chunks/railroadDiagram-O6MQD6OU-D6QNO5r1.js +77 -0
  54. package/dist/chunks/requirementDiagram-BXWQKSXE-a8tNRSuE.js +884 -0
  55. package/dist/chunks/sankeyDiagram-P5KCCOFB-CdaC8rLw.js +847 -0
  56. package/dist/chunks/sequenceDiagram-WJ2MYXX4-CGLi38Hj.js +2898 -0
  57. package/dist/chunks/sizeCapture-INFHLROL-g5RJXnik.js +47 -0
  58. package/dist/chunks/stateDiagram-D77RDMKH-Cou0eVl1.js +262 -0
  59. package/dist/chunks/stateDiagram-v2-MP3YSRHH-BHQspnUg.js +16 -0
  60. package/dist/chunks/swimlanes-42K2YHIH-BU7S1WgJ.js +5239 -0
  61. package/dist/chunks/swimlanesDiagram-VR7AAH4N-BsEplbno.js +13 -0
  62. package/dist/chunks/timeline-definition-24CTP7MA-BB-IyxWL.js +1066 -0
  63. package/dist/chunks/vennDiagram-4TSXK5OY-BToYolPI.js +1585 -0
  64. package/dist/chunks/wardleyDiagram-VM6X3IG4-BgoueOw_.js +684 -0
  65. package/dist/chunks/xychartDiagram-S5SC5T6Z-CF0fWv-W.js +1492 -0
  66. package/dist/components/CodeBlock.d.ts +5 -0
  67. package/dist/components/CommunityLinks.d.ts +21 -0
  68. package/dist/components/CookieConsent.d.ts +2 -0
  69. package/dist/components/DocLinkCard.d.ts +6 -0
  70. package/dist/components/LecturePageView.d.ts +3 -0
  71. package/dist/components/MermaidDiagram.d.ts +3 -0
  72. package/dist/components/SearchPopup.d.ts +6 -0
  73. package/dist/components/WikiApp.d.ts +9 -0
  74. package/dist/components/WikiLayout.d.ts +2 -0
  75. package/dist/components/WikiPageView.d.ts +6 -0
  76. package/dist/components/ZoomableImage.d.ts +2 -0
  77. package/dist/context/LangContext.d.ts +2 -0
  78. package/dist/context/WikiContext.d.ts +18 -0
  79. package/dist/data.d.ts +8 -0
  80. package/dist/hooks/useLanguage.d.ts +4 -0
  81. package/dist/hooks/useTheme.d.ts +5 -0
  82. package/dist/hooks/useWiki.d.ts +2 -0
  83. package/dist/index.d.ts +24 -0
  84. package/dist/index.js +45 -0
  85. package/dist/languages/ue-cpp.d.ts +7 -0
  86. package/dist/languages/ue-cpp.js +21 -0
  87. package/dist/types.d.ts +119 -0
  88. package/dist/wiki-engine.css +1 -0
  89. package/package.json +76 -0
@@ -0,0 +1,1025 @@
1
+ import { s as Ae, g as ke, t as ae, q as Fe, a as Pe, b as ve, _ as o, c as wt, l as At, j as zt, d as Ce, A as Le, H as z, i as Ee, L as De } from "./index-f7Uzykhj.js";
2
+ import { l as ie } from "./linear-BzcaSMTS.js";
3
+ var Vt = (function() {
4
+ var t = /* @__PURE__ */ o(function(j, r, l, g) {
5
+ for (l = l || {}, g = j.length; g--; l[j[g]] = r) ;
6
+ return l;
7
+ }, "o"), n = [1, 3], u = [1, 4], c = [1, 5], h = [1, 6], p = [1, 7], y = [1, 4, 5, 10, 12, 13, 14, 15, 18, 25, 35, 37, 39, 41, 42, 48, 50, 51, 52, 53, 54, 55, 56, 57, 60, 61, 63, 64, 65, 66, 67], S = [1, 4, 5, 10, 12, 13, 14, 15, 18, 25, 28, 35, 37, 39, 41, 42, 48, 50, 51, 52, 53, 54, 55, 56, 57, 60, 61, 63, 64, 65, 66, 67], a = [55, 56, 57], k = [2, 36], d = [1, 37], T = [1, 36], q = [1, 38], m = [1, 35], b = [1, 43], x = [1, 41], _ = [1, 45], Y = [1, 14], G = [1, 23], yt = [1, 18], Tt = [1, 19], dt = [1, 20], Ft = [1, 21], ut = [1, 22], xt = [1, 24], ft = [1, 25], gt = [1, 26], i = [1, 27], Bt = [1, 28], Rt = [1, 29], U = [1, 32], Q = [1, 33], F = [1, 34], P = [1, 39], v = [1, 40], C = [1, 42], L = [1, 44], H = [1, 63], X = [1, 62], E = [4, 5, 8, 10, 12, 13, 14, 15, 18, 44, 47, 49, 55, 56, 57, 63, 64, 65, 66, 67], Nt = [1, 66], Wt = [1, 67], Ut = [1, 68], Qt = [1, 69], Ot = [1, 70], Ht = [1, 71], Xt = [1, 72], Mt = [1, 73], Yt = [1, 74], jt = [1, 75], Gt = [1, 76], Kt = [1, 77], w = [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 18], J = [1, 91], $ = [1, 92], tt = [1, 93], et = [1, 100], it = [1, 94], at = [1, 97], nt = [1, 95], st = [1, 96], rt = [1, 98], ot = [1, 99], Pt = [1, 103], Zt = [10, 55, 56, 57], N = [4, 5, 6, 8, 10, 11, 13, 17, 18, 19, 20, 55, 56, 57], vt = {
8
+ trace: /* @__PURE__ */ o(function() {
9
+ }, "trace"),
10
+ yy: {},
11
+ 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 },
12
+ 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" },
13
+ 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], [58, 1], [59, 1], [59, 1], [59, 1]],
14
+ performAction: /* @__PURE__ */ o(function(r, l, g, f, A, e, pt) {
15
+ var s = e.length - 1;
16
+ switch (A) {
17
+ case 23:
18
+ this.$ = e[s];
19
+ break;
20
+ case 24:
21
+ this.$ = e[s - 1] + "" + e[s];
22
+ break;
23
+ case 26:
24
+ this.$ = e[s - 1] + e[s];
25
+ break;
26
+ case 27:
27
+ this.$ = [e[s].trim()];
28
+ break;
29
+ case 28:
30
+ e[s - 2].push(e[s].trim()), this.$ = e[s - 2];
31
+ break;
32
+ case 29:
33
+ this.$ = e[s - 4], f.addClass(e[s - 2], e[s]);
34
+ break;
35
+ case 37:
36
+ this.$ = [];
37
+ break;
38
+ case 42:
39
+ this.$ = e[s].trim(), f.setDiagramTitle(this.$);
40
+ break;
41
+ case 43:
42
+ this.$ = e[s].trim(), f.setAccTitle(this.$);
43
+ break;
44
+ case 44:
45
+ case 45:
46
+ this.$ = e[s].trim(), f.setAccDescription(this.$);
47
+ break;
48
+ case 46:
49
+ f.addSection(e[s].substr(8)), this.$ = e[s].substr(8);
50
+ break;
51
+ case 47:
52
+ f.addPoint(e[s - 3], "", e[s - 1], e[s], []);
53
+ break;
54
+ case 48:
55
+ f.addPoint(e[s - 4], e[s - 3], e[s - 1], e[s], []);
56
+ break;
57
+ case 49:
58
+ f.addPoint(e[s - 4], "", e[s - 2], e[s - 1], e[s]);
59
+ break;
60
+ case 50:
61
+ f.addPoint(e[s - 5], e[s - 4], e[s - 2], e[s - 1], e[s]);
62
+ break;
63
+ case 51:
64
+ f.setXAxisLeftText(e[s - 2]), f.setXAxisRightText(e[s]);
65
+ break;
66
+ case 52:
67
+ e[s - 1].text += " ⟶ ", f.setXAxisLeftText(e[s - 1]);
68
+ break;
69
+ case 53:
70
+ f.setXAxisLeftText(e[s]);
71
+ break;
72
+ case 54:
73
+ f.setYAxisBottomText(e[s - 2]), f.setYAxisTopText(e[s]);
74
+ break;
75
+ case 55:
76
+ e[s - 1].text += " ⟶ ", f.setYAxisBottomText(e[s - 1]);
77
+ break;
78
+ case 56:
79
+ f.setYAxisBottomText(e[s]);
80
+ break;
81
+ case 57:
82
+ f.setQuadrant1Text(e[s]);
83
+ break;
84
+ case 58:
85
+ f.setQuadrant2Text(e[s]);
86
+ break;
87
+ case 59:
88
+ f.setQuadrant3Text(e[s]);
89
+ break;
90
+ case 60:
91
+ f.setQuadrant4Text(e[s]);
92
+ break;
93
+ case 64:
94
+ this.$ = { text: e[s], type: "text" };
95
+ break;
96
+ case 65:
97
+ this.$ = { text: e[s - 1].text + "" + e[s], type: e[s - 1].type };
98
+ break;
99
+ case 66:
100
+ this.$ = { text: e[s], type: "text" };
101
+ break;
102
+ case 67:
103
+ this.$ = { text: e[s], type: "markdown" };
104
+ break;
105
+ case 68:
106
+ this.$ = e[s];
107
+ break;
108
+ case 69:
109
+ this.$ = e[s - 1] + "" + e[s];
110
+ break;
111
+ }
112
+ }, "anonymous"),
113
+ table: [{ 18: n, 26: 1, 27: 2, 28: u, 55: c, 56: h, 57: p }, { 1: [3] }, { 18: n, 26: 8, 27: 2, 28: u, 55: c, 56: h, 57: p }, { 18: n, 26: 9, 27: 2, 28: u, 55: c, 56: h, 57: p }, t(y, [2, 33], { 29: 10 }), t(S, [2, 61]), t(S, [2, 62]), t(S, [2, 63]), { 1: [2, 30] }, { 1: [2, 31] }, t(a, k, { 30: 11, 31: 12, 24: 13, 32: 15, 33: 16, 34: 17, 43: 30, 58: 31, 1: [2, 32], 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 15: _, 18: Y, 25: G, 35: yt, 37: Tt, 39: dt, 41: Ft, 42: ut, 48: xt, 50: ft, 51: gt, 52: i, 53: Bt, 54: Rt, 60: U, 61: Q, 63: F, 64: P, 65: v, 66: C, 67: L }), t(y, [2, 34]), { 27: 46, 55: c, 56: h, 57: p }, t(a, [2, 37]), t(a, k, { 24: 13, 32: 15, 33: 16, 34: 17, 43: 30, 58: 31, 31: 47, 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 15: _, 18: Y, 25: G, 35: yt, 37: Tt, 39: dt, 41: Ft, 42: ut, 48: xt, 50: ft, 51: gt, 52: i, 53: Bt, 54: Rt, 60: U, 61: Q, 63: F, 64: P, 65: v, 66: C, 67: L }), t(a, [2, 39]), t(a, [2, 40]), t(a, [2, 41]), { 36: [1, 48] }, { 38: [1, 49] }, { 40: [1, 50] }, t(a, [2, 45]), t(a, [2, 46]), { 18: [1, 51] }, { 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 15: _, 43: 52, 58: 31, 60: U, 61: Q, 63: F, 64: P, 65: v, 66: C, 67: L }, { 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 15: _, 43: 53, 58: 31, 60: U, 61: Q, 63: F, 64: P, 65: v, 66: C, 67: L }, { 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 15: _, 43: 54, 58: 31, 60: U, 61: Q, 63: F, 64: P, 65: v, 66: C, 67: L }, { 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 15: _, 43: 55, 58: 31, 60: U, 61: Q, 63: F, 64: P, 65: v, 66: C, 67: L }, { 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 15: _, 43: 56, 58: 31, 60: U, 61: Q, 63: F, 64: P, 65: v, 66: C, 67: L }, { 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 15: _, 43: 57, 58: 31, 60: U, 61: Q, 63: F, 64: P, 65: v, 66: C, 67: L }, { 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 15: _, 18: X, 44: [1, 58], 47: [1, 59], 58: 61, 59: 60, 63: F, 64: P, 65: v, 66: C, 67: L }, t(E, [2, 64]), t(E, [2, 66]), t(E, [2, 67]), t(E, [2, 70]), t(E, [2, 71]), t(E, [2, 72]), t(E, [2, 73]), t(E, [2, 74]), t(E, [2, 75]), t(E, [2, 76]), t(E, [2, 77]), t(E, [2, 78]), t(E, [2, 79]), t(E, [2, 80]), t(E, [2, 81]), t(y, [2, 35]), t(a, [2, 38]), t(a, [2, 42]), t(a, [2, 43]), t(a, [2, 44]), { 3: 65, 4: Nt, 5: Wt, 6: Ut, 7: Qt, 8: Ot, 9: Ht, 10: Xt, 11: Mt, 12: Yt, 13: jt, 14: Gt, 15: Kt, 21: 64 }, t(a, [2, 53], { 59: 60, 58: 61, 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 15: _, 18: X, 49: [1, 78], 63: F, 64: P, 65: v, 66: C, 67: L }), t(a, [2, 56], { 59: 60, 58: 61, 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 15: _, 18: X, 49: [1, 79], 63: F, 64: P, 65: v, 66: C, 67: L }), t(a, [2, 57], { 59: 60, 58: 61, 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 15: _, 18: X, 63: F, 64: P, 65: v, 66: C, 67: L }), t(a, [2, 58], { 59: 60, 58: 61, 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 15: _, 18: X, 63: F, 64: P, 65: v, 66: C, 67: L }), t(a, [2, 59], { 59: 60, 58: 61, 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 15: _, 18: X, 63: F, 64: P, 65: v, 66: C, 67: L }), t(a, [2, 60], { 59: 60, 58: 61, 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 15: _, 18: X, 63: F, 64: P, 65: v, 66: C, 67: L }), { 45: [1, 80] }, { 44: [1, 81] }, t(E, [2, 65]), t(E, [2, 82]), t(E, [2, 83]), t(E, [2, 84]), { 3: 83, 4: Nt, 5: Wt, 6: Ut, 7: Qt, 8: Ot, 9: Ht, 10: Xt, 11: Mt, 12: Yt, 13: jt, 14: Gt, 15: Kt, 18: [1, 82] }, 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(a, [2, 52], { 58: 31, 43: 84, 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 15: _, 60: U, 61: Q, 63: F, 64: P, 65: v, 66: C, 67: L }), t(a, [2, 55], { 58: 31, 43: 85, 4: d, 5: T, 10: q, 12: m, 13: b, 14: x, 15: _, 60: U, 61: Q, 63: F, 64: P, 65: v, 66: C, 67: L }), { 46: [1, 86] }, { 45: [1, 87] }, { 4: J, 5: $, 6: tt, 8: et, 11: it, 13: at, 16: 90, 17: nt, 18: st, 19: rt, 20: ot, 22: 89, 23: 88 }, t(w, [2, 24]), t(a, [2, 51], { 59: 60, 58: 61, 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 15: _, 18: X, 63: F, 64: P, 65: v, 66: C, 67: L }), t(a, [2, 54], { 59: 60, 58: 61, 4: d, 5: T, 8: H, 10: q, 12: m, 13: b, 14: x, 15: _, 18: X, 63: F, 64: P, 65: v, 66: C, 67: L }), t(a, [2, 47], { 22: 89, 16: 90, 23: 101, 4: J, 5: $, 6: tt, 8: et, 11: it, 13: at, 17: nt, 18: st, 19: rt, 20: ot }), { 46: [1, 102] }, t(a, [2, 29], { 10: Pt }), t(Zt, [2, 27], { 16: 104, 4: J, 5: $, 6: tt, 8: et, 11: it, 13: at, 17: nt, 18: st, 19: rt, 20: ot }), t(N, [2, 25]), t(N, [2, 13]), t(N, [2, 14]), t(N, [2, 15]), t(N, [2, 16]), t(N, [2, 17]), t(N, [2, 18]), t(N, [2, 19]), t(N, [2, 20]), t(N, [2, 21]), t(N, [2, 22]), t(a, [2, 49], { 10: Pt }), t(a, [2, 48], { 22: 89, 16: 90, 23: 105, 4: J, 5: $, 6: tt, 8: et, 11: it, 13: at, 17: nt, 18: st, 19: rt, 20: ot }), { 4: J, 5: $, 6: tt, 8: et, 11: it, 13: at, 16: 90, 17: nt, 18: st, 19: rt, 20: ot, 22: 106 }, t(N, [2, 26]), t(a, [2, 50], { 10: Pt }), t(Zt, [2, 28], { 16: 104, 4: J, 5: $, 6: tt, 8: et, 11: it, 13: at, 17: nt, 18: st, 19: rt, 20: ot })],
114
+ defaultActions: { 8: [2, 30], 9: [2, 31] },
115
+ parseError: /* @__PURE__ */ o(function(r, l) {
116
+ if (l.recoverable)
117
+ this.trace(r);
118
+ else {
119
+ var g = new Error(r);
120
+ throw g.hash = l, g;
121
+ }
122
+ }, "parseError"),
123
+ parse: /* @__PURE__ */ o(function(r) {
124
+ var l = this, g = [0], f = [], A = [null], e = [], pt = this.table, s = "", mt = 0, Jt = 0, me = 2, $t = 1, be = e.slice.call(arguments, 1), D = Object.create(this.lexer), K = { yy: {} };
125
+ for (var Ct in this.yy)
126
+ Object.prototype.hasOwnProperty.call(this.yy, Ct) && (K.yy[Ct] = this.yy[Ct]);
127
+ D.setInput(r, K.yy), K.yy.lexer = D, K.yy.parser = this, typeof D.yylloc > "u" && (D.yylloc = {});
128
+ var Lt = D.yylloc;
129
+ e.push(Lt);
130
+ var Se = D.options && D.options.ranges;
131
+ typeof K.yy.parseError == "function" ? this.parseError = K.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
132
+ function _e(R) {
133
+ g.length = g.length - 2 * R, A.length = A.length - R, e.length = e.length - R;
134
+ }
135
+ o(_e, "popStack");
136
+ function te() {
137
+ var R;
138
+ return R = f.pop() || D.lex() || $t, typeof R != "number" && (R instanceof Array && (f = R, R = f.pop()), R = l.symbols_[R] || R), R;
139
+ }
140
+ o(te, "lex");
141
+ for (var B, Z, W, Et, lt = {}, bt, M, ee, St; ; ) {
142
+ if (Z = g[g.length - 1], this.defaultActions[Z] ? W = this.defaultActions[Z] : ((B === null || typeof B > "u") && (B = te()), W = pt[Z] && pt[Z][B]), typeof W > "u" || !W.length || !W[0]) {
143
+ var Dt = "";
144
+ St = [];
145
+ for (bt in pt[Z])
146
+ this.terminals_[bt] && bt > me && St.push("'" + this.terminals_[bt] + "'");
147
+ D.showPosition ? Dt = "Parse error on line " + (mt + 1) + `:
148
+ ` + D.showPosition() + `
149
+ Expecting ` + St.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Dt = "Parse error on line " + (mt + 1) + ": Unexpected " + (B == $t ? "end of input" : "'" + (this.terminals_[B] || B) + "'"), this.parseError(Dt, {
150
+ text: D.match,
151
+ token: this.terminals_[B] || B,
152
+ line: D.yylineno,
153
+ loc: Lt,
154
+ expected: St
155
+ });
156
+ }
157
+ if (W[0] instanceof Array && W.length > 1)
158
+ throw new Error("Parse Error: multiple actions possible at state: " + Z + ", token: " + B);
159
+ switch (W[0]) {
160
+ case 1:
161
+ g.push(B), A.push(D.yytext), e.push(D.yylloc), g.push(W[1]), B = null, Jt = D.yyleng, s = D.yytext, mt = D.yylineno, Lt = D.yylloc;
162
+ break;
163
+ case 2:
164
+ if (M = this.productions_[W[1]][1], lt.$ = A[A.length - M], lt._$ = {
165
+ first_line: e[e.length - (M || 1)].first_line,
166
+ last_line: e[e.length - 1].last_line,
167
+ first_column: e[e.length - (M || 1)].first_column,
168
+ last_column: e[e.length - 1].last_column
169
+ }, Se && (lt._$.range = [
170
+ e[e.length - (M || 1)].range[0],
171
+ e[e.length - 1].range[1]
172
+ ]), Et = this.performAction.apply(lt, [
173
+ s,
174
+ Jt,
175
+ mt,
176
+ K.yy,
177
+ W[1],
178
+ A,
179
+ e
180
+ ].concat(be)), typeof Et < "u")
181
+ return Et;
182
+ M && (g = g.slice(0, -1 * M * 2), A = A.slice(0, -1 * M), e = e.slice(0, -1 * M)), g.push(this.productions_[W[1]][0]), A.push(lt.$), e.push(lt._$), ee = pt[g[g.length - 2]][g[g.length - 1]], g.push(ee);
183
+ break;
184
+ case 3:
185
+ return !0;
186
+ }
187
+ }
188
+ return !0;
189
+ }, "parse")
190
+ }, qe = /* @__PURE__ */ (function() {
191
+ var j = {
192
+ EOF: 1,
193
+ parseError: /* @__PURE__ */ o(function(l, g) {
194
+ if (this.yy.parser)
195
+ this.yy.parser.parseError(l, g);
196
+ else
197
+ throw new Error(l);
198
+ }, "parseError"),
199
+ // resets the lexer, sets new input
200
+ setInput: /* @__PURE__ */ o(function(r, l) {
201
+ return this.yy = l || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
202
+ first_line: 1,
203
+ first_column: 0,
204
+ last_line: 1,
205
+ last_column: 0
206
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
207
+ }, "setInput"),
208
+ // consumes and returns one char from the input
209
+ input: /* @__PURE__ */ o(function() {
210
+ var r = this._input[0];
211
+ this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
212
+ var l = r.match(/(?:\r\n?|\n).*/g);
213
+ return l ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
214
+ }, "input"),
215
+ // unshifts one char (or a string) into the input
216
+ unput: /* @__PURE__ */ o(function(r) {
217
+ var l = r.length, g = r.split(/(?:\r\n?|\n)/g);
218
+ this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - l), this.offset -= l;
219
+ var f = this.match.split(/(?:\r\n?|\n)/g);
220
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), g.length - 1 && (this.yylineno -= g.length - 1);
221
+ var A = this.yylloc.range;
222
+ return this.yylloc = {
223
+ first_line: this.yylloc.first_line,
224
+ last_line: this.yylineno + 1,
225
+ first_column: this.yylloc.first_column,
226
+ last_column: g ? (g.length === f.length ? this.yylloc.first_column : 0) + f[f.length - g.length].length - g[0].length : this.yylloc.first_column - l
227
+ }, this.options.ranges && (this.yylloc.range = [A[0], A[0] + this.yyleng - l]), this.yyleng = this.yytext.length, this;
228
+ }, "unput"),
229
+ // When called from action, caches matched text and appends it on next action
230
+ more: /* @__PURE__ */ o(function() {
231
+ return this._more = !0, this;
232
+ }, "more"),
233
+ // 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.
234
+ reject: /* @__PURE__ */ o(function() {
235
+ if (this.options.backtrack_lexer)
236
+ this._backtrack = !0;
237
+ else
238
+ 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).
239
+ ` + this.showPosition(), {
240
+ text: "",
241
+ token: null,
242
+ line: this.yylineno
243
+ });
244
+ return this;
245
+ }, "reject"),
246
+ // retain first n characters of the match
247
+ less: /* @__PURE__ */ o(function(r) {
248
+ this.unput(this.match.slice(r));
249
+ }, "less"),
250
+ // displays already matched input, i.e. for error messages
251
+ pastInput: /* @__PURE__ */ o(function() {
252
+ var r = this.matched.substr(0, this.matched.length - this.match.length);
253
+ return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
254
+ }, "pastInput"),
255
+ // displays upcoming input, i.e. for error messages
256
+ upcomingInput: /* @__PURE__ */ o(function() {
257
+ var r = this.match;
258
+ return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
259
+ }, "upcomingInput"),
260
+ // displays the character position where the lexing error occurred, i.e. for error messages
261
+ showPosition: /* @__PURE__ */ o(function() {
262
+ var r = this.pastInput(), l = new Array(r.length + 1).join("-");
263
+ return r + this.upcomingInput() + `
264
+ ` + l + "^";
265
+ }, "showPosition"),
266
+ // test the lexed token: return FALSE when not a match, otherwise return token
267
+ test_match: /* @__PURE__ */ o(function(r, l) {
268
+ var g, f, A;
269
+ if (this.options.backtrack_lexer && (A = {
270
+ yylineno: this.yylineno,
271
+ yylloc: {
272
+ first_line: this.yylloc.first_line,
273
+ last_line: this.last_line,
274
+ first_column: this.yylloc.first_column,
275
+ last_column: this.yylloc.last_column
276
+ },
277
+ yytext: this.yytext,
278
+ match: this.match,
279
+ matches: this.matches,
280
+ matched: this.matched,
281
+ yyleng: this.yyleng,
282
+ offset: this.offset,
283
+ _more: this._more,
284
+ _input: this._input,
285
+ yy: this.yy,
286
+ conditionStack: this.conditionStack.slice(0),
287
+ done: this.done
288
+ }, this.options.ranges && (A.yylloc.range = this.yylloc.range.slice(0))), f = r[0].match(/(?:\r\n?|\n).*/g), f && (this.yylineno += f.length), this.yylloc = {
289
+ first_line: this.yylloc.last_line,
290
+ last_line: this.yylineno + 1,
291
+ first_column: this.yylloc.last_column,
292
+ last_column: f ? f[f.length - 1].length - f[f.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
293
+ }, this.yytext += r[0], this.match += r[0], this.matches = r, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(r[0].length), this.matched += r[0], g = this.performAction.call(this, this.yy, this, l, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), g)
294
+ return g;
295
+ if (this._backtrack) {
296
+ for (var e in A)
297
+ this[e] = A[e];
298
+ return !1;
299
+ }
300
+ return !1;
301
+ }, "test_match"),
302
+ // return next match in input
303
+ next: /* @__PURE__ */ o(function() {
304
+ if (this.done)
305
+ return this.EOF;
306
+ this._input || (this.done = !0);
307
+ var r, l, g, f;
308
+ this._more || (this.yytext = "", this.match = "");
309
+ for (var A = this._currentRules(), e = 0; e < A.length; e++)
310
+ if (g = this._input.match(this.rules[A[e]]), g && (!l || g[0].length > l[0].length)) {
311
+ if (l = g, f = e, this.options.backtrack_lexer) {
312
+ if (r = this.test_match(g, A[e]), r !== !1)
313
+ return r;
314
+ if (this._backtrack) {
315
+ l = !1;
316
+ continue;
317
+ } else
318
+ return !1;
319
+ } else if (!this.options.flex)
320
+ break;
321
+ }
322
+ return l ? (r = this.test_match(l, A[f]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
323
+ ` + this.showPosition(), {
324
+ text: "",
325
+ token: null,
326
+ line: this.yylineno
327
+ });
328
+ }, "next"),
329
+ // return next match that has a token
330
+ lex: /* @__PURE__ */ o(function() {
331
+ var l = this.next();
332
+ return l || this.lex();
333
+ }, "lex"),
334
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
335
+ begin: /* @__PURE__ */ o(function(l) {
336
+ this.conditionStack.push(l);
337
+ }, "begin"),
338
+ // pop the previously active lexer condition state off the condition stack
339
+ popState: /* @__PURE__ */ o(function() {
340
+ var l = this.conditionStack.length - 1;
341
+ return l > 0 ? this.conditionStack.pop() : this.conditionStack[0];
342
+ }, "popState"),
343
+ // produce the lexer rule set which is active for the currently active lexer condition state
344
+ _currentRules: /* @__PURE__ */ o(function() {
345
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
346
+ }, "_currentRules"),
347
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
348
+ topState: /* @__PURE__ */ o(function(l) {
349
+ return l = this.conditionStack.length - 1 - Math.abs(l || 0), l >= 0 ? this.conditionStack[l] : "INITIAL";
350
+ }, "topState"),
351
+ // alias for begin(condition)
352
+ pushState: /* @__PURE__ */ o(function(l) {
353
+ this.begin(l);
354
+ }, "pushState"),
355
+ // return the number of states currently on the stack
356
+ stateStackSize: /* @__PURE__ */ o(function() {
357
+ return this.conditionStack.length;
358
+ }, "stateStackSize"),
359
+ options: { "case-insensitive": !0 },
360
+ performAction: /* @__PURE__ */ o(function(l, g, f, A) {
361
+ switch (f) {
362
+ case 0:
363
+ break;
364
+ case 1:
365
+ break;
366
+ case 2:
367
+ return 55;
368
+ case 3:
369
+ break;
370
+ case 4:
371
+ return this.begin("title"), 35;
372
+ case 5:
373
+ return this.popState(), "title_value";
374
+ case 6:
375
+ return this.begin("acc_title"), 37;
376
+ case 7:
377
+ return this.popState(), "acc_title_value";
378
+ case 8:
379
+ return this.begin("acc_descr"), 39;
380
+ case 9:
381
+ return this.popState(), "acc_descr_value";
382
+ case 10:
383
+ this.begin("acc_descr_multiline");
384
+ break;
385
+ case 11:
386
+ this.popState();
387
+ break;
388
+ case 12:
389
+ return "acc_descr_multiline_value";
390
+ case 13:
391
+ return 48;
392
+ case 14:
393
+ return 50;
394
+ case 15:
395
+ return 49;
396
+ case 16:
397
+ return 51;
398
+ case 17:
399
+ return 52;
400
+ case 18:
401
+ return 53;
402
+ case 19:
403
+ return 54;
404
+ case 20:
405
+ return 25;
406
+ case 21:
407
+ this.begin("md_string");
408
+ break;
409
+ case 22:
410
+ return "MD_STR";
411
+ case 23:
412
+ this.popState();
413
+ break;
414
+ case 24:
415
+ this.begin("string");
416
+ break;
417
+ case 25:
418
+ this.popState();
419
+ break;
420
+ case 26:
421
+ return "STR";
422
+ case 27:
423
+ this.begin("class_name");
424
+ break;
425
+ case 28:
426
+ return this.popState(), 47;
427
+ case 29:
428
+ return this.begin("point_start"), 44;
429
+ case 30:
430
+ return this.begin("point_x"), 45;
431
+ case 31:
432
+ this.popState();
433
+ break;
434
+ case 32:
435
+ this.popState(), this.begin("point_y");
436
+ break;
437
+ case 33:
438
+ return this.popState(), 46;
439
+ case 34:
440
+ return 28;
441
+ case 35:
442
+ return 4;
443
+ case 36:
444
+ return 15;
445
+ case 37:
446
+ return 11;
447
+ case 38:
448
+ return 64;
449
+ case 39:
450
+ return 10;
451
+ case 40:
452
+ return 65;
453
+ case 41:
454
+ return 65;
455
+ case 42:
456
+ return 14;
457
+ case 43:
458
+ return 13;
459
+ case 44:
460
+ return 67;
461
+ case 45:
462
+ return 66;
463
+ case 46:
464
+ return 12;
465
+ case 47:
466
+ return 8;
467
+ case 48:
468
+ return 5;
469
+ case 49:
470
+ return 18;
471
+ case 50:
472
+ return 56;
473
+ case 51:
474
+ return 63;
475
+ case 52:
476
+ return 57;
477
+ }
478
+ }, "anonymous"),
479
+ 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, /^(?:[^\x00-\x7F]+)/i, /^(?::)/i, /^(?:\+)/i, /^(?:,)/i, /^(?:=)/i, /^(?:=)/i, /^(?:\*)/i, /^(?:#)/i, /^(?:[\_])/i, /^(?:\.)/i, /^(?:&)/i, /^(?:-)/i, /^(?:[0-9]+)/i, /^(?:\s)/i, /^(?:;)/i, /^(?:[!"#$%&'*+,-.`?\\_/])/i, /^(?:$)/i],
480
+ 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, 52], inclusive: !0 } }
481
+ };
482
+ return j;
483
+ })();
484
+ vt.lexer = qe;
485
+ function qt() {
486
+ this.yy = {};
487
+ }
488
+ return o(qt, "Parser"), qt.prototype = vt, vt.Parser = qt, new qt();
489
+ })();
490
+ Vt.parser = Vt;
491
+ var ze = Vt, I = De(), ht, Ve = (ht = class {
492
+ constructor() {
493
+ this.classes = /* @__PURE__ */ new Map(), this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData();
494
+ }
495
+ getDefaultData() {
496
+ return {
497
+ titleText: "",
498
+ quadrant1Text: "",
499
+ quadrant2Text: "",
500
+ quadrant3Text: "",
501
+ quadrant4Text: "",
502
+ xAxisLeftText: "",
503
+ xAxisRightText: "",
504
+ yAxisBottomText: "",
505
+ yAxisTopText: "",
506
+ points: []
507
+ };
508
+ }
509
+ getDefaultConfig() {
510
+ var n, u, c, h, p, y, S, a, k, d, T, q, m, b, x, _, Y, G;
511
+ return {
512
+ showXAxis: !0,
513
+ showYAxis: !0,
514
+ showTitle: !0,
515
+ chartHeight: ((n = z.quadrantChart) == null ? void 0 : n.chartWidth) || 500,
516
+ chartWidth: ((u = z.quadrantChart) == null ? void 0 : u.chartHeight) || 500,
517
+ titlePadding: ((c = z.quadrantChart) == null ? void 0 : c.titlePadding) || 10,
518
+ titleFontSize: ((h = z.quadrantChart) == null ? void 0 : h.titleFontSize) || 20,
519
+ quadrantPadding: ((p = z.quadrantChart) == null ? void 0 : p.quadrantPadding) || 5,
520
+ xAxisLabelPadding: ((y = z.quadrantChart) == null ? void 0 : y.xAxisLabelPadding) || 5,
521
+ yAxisLabelPadding: ((S = z.quadrantChart) == null ? void 0 : S.yAxisLabelPadding) || 5,
522
+ xAxisLabelFontSize: ((a = z.quadrantChart) == null ? void 0 : a.xAxisLabelFontSize) || 16,
523
+ yAxisLabelFontSize: ((k = z.quadrantChart) == null ? void 0 : k.yAxisLabelFontSize) || 16,
524
+ quadrantLabelFontSize: ((d = z.quadrantChart) == null ? void 0 : d.quadrantLabelFontSize) || 16,
525
+ quadrantTextTopPadding: ((T = z.quadrantChart) == null ? void 0 : T.quadrantTextTopPadding) || 5,
526
+ pointTextPadding: ((q = z.quadrantChart) == null ? void 0 : q.pointTextPadding) || 5,
527
+ pointLabelFontSize: ((m = z.quadrantChart) == null ? void 0 : m.pointLabelFontSize) || 12,
528
+ pointRadius: ((b = z.quadrantChart) == null ? void 0 : b.pointRadius) || 5,
529
+ xAxisPosition: ((x = z.quadrantChart) == null ? void 0 : x.xAxisPosition) || "top",
530
+ yAxisPosition: ((_ = z.quadrantChart) == null ? void 0 : _.yAxisPosition) || "left",
531
+ quadrantInternalBorderStrokeWidth: ((Y = z.quadrantChart) == null ? void 0 : Y.quadrantInternalBorderStrokeWidth) || 1,
532
+ quadrantExternalBorderStrokeWidth: ((G = z.quadrantChart) == null ? void 0 : G.quadrantExternalBorderStrokeWidth) || 2
533
+ };
534
+ }
535
+ getDefaultThemeConfig() {
536
+ return {
537
+ quadrant1Fill: I.quadrant1Fill,
538
+ quadrant2Fill: I.quadrant2Fill,
539
+ quadrant3Fill: I.quadrant3Fill,
540
+ quadrant4Fill: I.quadrant4Fill,
541
+ quadrant1TextFill: I.quadrant1TextFill,
542
+ quadrant2TextFill: I.quadrant2TextFill,
543
+ quadrant3TextFill: I.quadrant3TextFill,
544
+ quadrant4TextFill: I.quadrant4TextFill,
545
+ quadrantPointFill: I.quadrantPointFill,
546
+ quadrantPointTextFill: I.quadrantPointTextFill,
547
+ quadrantXAxisTextFill: I.quadrantXAxisTextFill,
548
+ quadrantYAxisTextFill: I.quadrantYAxisTextFill,
549
+ quadrantTitleFill: I.quadrantTitleFill,
550
+ quadrantInternalBorderStrokeFill: I.quadrantInternalBorderStrokeFill,
551
+ quadrantExternalBorderStrokeFill: I.quadrantExternalBorderStrokeFill
552
+ };
553
+ }
554
+ clear() {
555
+ this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData(), this.classes = /* @__PURE__ */ new Map(), At.info("clear called");
556
+ }
557
+ setData(n) {
558
+ this.data = { ...this.data, ...n };
559
+ }
560
+ addPoints(n) {
561
+ this.data.points = [...n, ...this.data.points];
562
+ }
563
+ addClass(n, u) {
564
+ this.classes.set(n, u);
565
+ }
566
+ setConfig(n) {
567
+ At.trace("setConfig called with: ", n), this.config = { ...this.config, ...n };
568
+ }
569
+ setThemeConfig(n) {
570
+ At.trace("setThemeConfig called with: ", n), this.themeConfig = { ...this.themeConfig, ...n };
571
+ }
572
+ calculateSpace(n, u, c, h) {
573
+ const p = this.config.xAxisLabelPadding * 2 + this.config.xAxisLabelFontSize, y = {
574
+ top: n === "top" && u ? p : 0,
575
+ bottom: n === "bottom" && u ? p : 0
576
+ }, S = this.config.yAxisLabelPadding * 2 + this.config.yAxisLabelFontSize, a = {
577
+ left: this.config.yAxisPosition === "left" && c ? S : 0,
578
+ right: this.config.yAxisPosition === "right" && c ? S : 0
579
+ }, k = this.config.titleFontSize + this.config.titlePadding * 2, d = {
580
+ top: h ? k : 0
581
+ }, T = this.config.quadrantPadding + a.left, q = this.config.quadrantPadding + y.top + d.top, m = this.config.chartWidth - this.config.quadrantPadding * 2 - a.left - a.right, b = this.config.chartHeight - this.config.quadrantPadding * 2 - y.top - y.bottom - d.top, x = m / 2, _ = b / 2;
582
+ return {
583
+ xAxisSpace: y,
584
+ yAxisSpace: a,
585
+ titleSpace: d,
586
+ quadrantSpace: {
587
+ quadrantLeft: T,
588
+ quadrantTop: q,
589
+ quadrantWidth: m,
590
+ quadrantHalfWidth: x,
591
+ quadrantHeight: b,
592
+ quadrantHalfHeight: _
593
+ }
594
+ };
595
+ }
596
+ getAxisLabels(n, u, c, h) {
597
+ const { quadrantSpace: p, titleSpace: y } = h, {
598
+ quadrantHalfHeight: S,
599
+ quadrantHeight: a,
600
+ quadrantLeft: k,
601
+ quadrantHalfWidth: d,
602
+ quadrantTop: T,
603
+ quadrantWidth: q
604
+ } = p, m = !!this.data.xAxisRightText, b = !!this.data.yAxisTopText, x = [];
605
+ return this.data.xAxisLeftText && u && x.push({
606
+ text: this.data.xAxisLeftText,
607
+ fill: this.themeConfig.quadrantXAxisTextFill,
608
+ x: k + (m ? d / 2 : 0),
609
+ y: n === "top" ? this.config.xAxisLabelPadding + y.top : this.config.xAxisLabelPadding + T + a + this.config.quadrantPadding,
610
+ fontSize: this.config.xAxisLabelFontSize,
611
+ verticalPos: m ? "center" : "left",
612
+ horizontalPos: "top",
613
+ rotation: 0
614
+ }), this.data.xAxisRightText && u && x.push({
615
+ text: this.data.xAxisRightText,
616
+ fill: this.themeConfig.quadrantXAxisTextFill,
617
+ x: k + d + (m ? d / 2 : 0),
618
+ y: n === "top" ? this.config.xAxisLabelPadding + y.top : this.config.xAxisLabelPadding + T + a + this.config.quadrantPadding,
619
+ fontSize: this.config.xAxisLabelFontSize,
620
+ verticalPos: m ? "center" : "left",
621
+ horizontalPos: "top",
622
+ rotation: 0
623
+ }), this.data.yAxisBottomText && c && x.push({
624
+ text: this.data.yAxisBottomText,
625
+ fill: this.themeConfig.quadrantYAxisTextFill,
626
+ x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + k + q + this.config.quadrantPadding,
627
+ y: T + a - (b ? S / 2 : 0),
628
+ fontSize: this.config.yAxisLabelFontSize,
629
+ verticalPos: b ? "center" : "left",
630
+ horizontalPos: "top",
631
+ rotation: -90
632
+ }), this.data.yAxisTopText && c && x.push({
633
+ text: this.data.yAxisTopText,
634
+ fill: this.themeConfig.quadrantYAxisTextFill,
635
+ x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + k + q + this.config.quadrantPadding,
636
+ y: T + S - (b ? S / 2 : 0),
637
+ fontSize: this.config.yAxisLabelFontSize,
638
+ verticalPos: b ? "center" : "left",
639
+ horizontalPos: "top",
640
+ rotation: -90
641
+ }), x;
642
+ }
643
+ getQuadrants(n) {
644
+ const { quadrantSpace: u } = n, { quadrantHalfHeight: c, quadrantLeft: h, quadrantHalfWidth: p, quadrantTop: y } = u, S = [
645
+ {
646
+ text: {
647
+ text: this.data.quadrant1Text,
648
+ fill: this.themeConfig.quadrant1TextFill,
649
+ x: 0,
650
+ y: 0,
651
+ fontSize: this.config.quadrantLabelFontSize,
652
+ verticalPos: "center",
653
+ horizontalPos: "middle",
654
+ rotation: 0
655
+ },
656
+ x: h + p,
657
+ y,
658
+ width: p,
659
+ height: c,
660
+ fill: this.themeConfig.quadrant1Fill
661
+ },
662
+ {
663
+ text: {
664
+ text: this.data.quadrant2Text,
665
+ fill: this.themeConfig.quadrant2TextFill,
666
+ x: 0,
667
+ y: 0,
668
+ fontSize: this.config.quadrantLabelFontSize,
669
+ verticalPos: "center",
670
+ horizontalPos: "middle",
671
+ rotation: 0
672
+ },
673
+ x: h,
674
+ y,
675
+ width: p,
676
+ height: c,
677
+ fill: this.themeConfig.quadrant2Fill
678
+ },
679
+ {
680
+ text: {
681
+ text: this.data.quadrant3Text,
682
+ fill: this.themeConfig.quadrant3TextFill,
683
+ x: 0,
684
+ y: 0,
685
+ fontSize: this.config.quadrantLabelFontSize,
686
+ verticalPos: "center",
687
+ horizontalPos: "middle",
688
+ rotation: 0
689
+ },
690
+ x: h,
691
+ y: y + c,
692
+ width: p,
693
+ height: c,
694
+ fill: this.themeConfig.quadrant3Fill
695
+ },
696
+ {
697
+ text: {
698
+ text: this.data.quadrant4Text,
699
+ fill: this.themeConfig.quadrant4TextFill,
700
+ x: 0,
701
+ y: 0,
702
+ fontSize: this.config.quadrantLabelFontSize,
703
+ verticalPos: "center",
704
+ horizontalPos: "middle",
705
+ rotation: 0
706
+ },
707
+ x: h + p,
708
+ y: y + c,
709
+ width: p,
710
+ height: c,
711
+ fill: this.themeConfig.quadrant4Fill
712
+ }
713
+ ];
714
+ for (const a of S)
715
+ a.text.x = a.x + a.width / 2, this.data.points.length === 0 ? (a.text.y = a.y + a.height / 2, a.text.horizontalPos = "middle") : (a.text.y = a.y + this.config.quadrantTextTopPadding, a.text.horizontalPos = "top");
716
+ return S;
717
+ }
718
+ getQuadrantPoints(n) {
719
+ const { quadrantSpace: u } = n, { quadrantHeight: c, quadrantLeft: h, quadrantTop: p, quadrantWidth: y } = u, S = ie().domain([0, 1]).range([h, y + h]), a = ie().domain([0, 1]).range([c + p, p]);
720
+ return this.data.points.map((d) => {
721
+ const T = this.classes.get(d.className);
722
+ return T && (d = { ...T, ...d }), {
723
+ x: S(d.x),
724
+ y: a(d.y),
725
+ fill: d.color ?? this.themeConfig.quadrantPointFill,
726
+ radius: d.radius ?? this.config.pointRadius,
727
+ text: {
728
+ text: d.text,
729
+ fill: this.themeConfig.quadrantPointTextFill,
730
+ x: S(d.x),
731
+ y: a(d.y) + this.config.pointTextPadding,
732
+ verticalPos: "center",
733
+ horizontalPos: "top",
734
+ fontSize: this.config.pointLabelFontSize,
735
+ rotation: 0
736
+ },
737
+ strokeColor: d.strokeColor ?? this.themeConfig.quadrantPointFill,
738
+ strokeWidth: d.strokeWidth ?? "0px"
739
+ };
740
+ });
741
+ }
742
+ getBorders(n) {
743
+ const u = this.config.quadrantExternalBorderStrokeWidth / 2, { quadrantSpace: c } = n, {
744
+ quadrantHalfHeight: h,
745
+ quadrantHeight: p,
746
+ quadrantLeft: y,
747
+ quadrantHalfWidth: S,
748
+ quadrantTop: a,
749
+ quadrantWidth: k
750
+ } = c;
751
+ return [
752
+ // top border
753
+ {
754
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
755
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
756
+ x1: y - u,
757
+ y1: a,
758
+ x2: y + k + u,
759
+ y2: a
760
+ },
761
+ // right border
762
+ {
763
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
764
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
765
+ x1: y + k,
766
+ y1: a + u,
767
+ x2: y + k,
768
+ y2: a + p - u
769
+ },
770
+ // bottom border
771
+ {
772
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
773
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
774
+ x1: y - u,
775
+ y1: a + p,
776
+ x2: y + k + u,
777
+ y2: a + p
778
+ },
779
+ // left border
780
+ {
781
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
782
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
783
+ x1: y,
784
+ y1: a + u,
785
+ x2: y,
786
+ y2: a + p - u
787
+ },
788
+ // vertical inner border
789
+ {
790
+ strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
791
+ strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
792
+ x1: y + S,
793
+ y1: a + u,
794
+ x2: y + S,
795
+ y2: a + p - u
796
+ },
797
+ // horizontal inner border
798
+ {
799
+ strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
800
+ strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
801
+ x1: y + u,
802
+ y1: a + h,
803
+ x2: y + k - u,
804
+ y2: a + h
805
+ }
806
+ ];
807
+ }
808
+ getTitle(n) {
809
+ if (n)
810
+ return {
811
+ text: this.data.titleText,
812
+ fill: this.themeConfig.quadrantTitleFill,
813
+ fontSize: this.config.titleFontSize,
814
+ horizontalPos: "top",
815
+ verticalPos: "center",
816
+ rotation: 0,
817
+ y: this.config.titlePadding,
818
+ x: this.config.chartWidth / 2
819
+ };
820
+ }
821
+ build() {
822
+ const n = this.config.showXAxis && !!(this.data.xAxisLeftText || this.data.xAxisRightText), u = this.config.showYAxis && !!(this.data.yAxisTopText || this.data.yAxisBottomText), c = this.config.showTitle && !!this.data.titleText, h = this.data.points.length > 0 ? "bottom" : this.config.xAxisPosition, p = this.calculateSpace(h, n, u, c);
823
+ return {
824
+ points: this.getQuadrantPoints(p),
825
+ quadrants: this.getQuadrants(p),
826
+ axisLabels: this.getAxisLabels(h, n, u, p),
827
+ borderLines: this.getBorders(p),
828
+ title: this.getTitle(c)
829
+ };
830
+ }
831
+ }, o(ht, "QuadrantBuilder"), ht), ct, _t = (ct = class extends Error {
832
+ constructor(n, u, c) {
833
+ super(`value for ${n} ${u} is invalid, please use a valid ${c}`), this.name = "InvalidStyleError";
834
+ }
835
+ }, o(ct, "InvalidStyleError"), ct);
836
+ function It(t) {
837
+ return !/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t);
838
+ }
839
+ o(It, "validateHexCode");
840
+ function ne(t) {
841
+ return !/^\d+$/.test(t);
842
+ }
843
+ o(ne, "validateNumber");
844
+ function se(t) {
845
+ return !/^\d+px$/.test(t);
846
+ }
847
+ o(se, "validateSizeInPixels");
848
+ function O(t) {
849
+ return Ee(t.trim(), wt());
850
+ }
851
+ o(O, "textSanitizer");
852
+ var V = new Ve();
853
+ function re(t) {
854
+ V.setData({ quadrant1Text: O(t.text) });
855
+ }
856
+ o(re, "setQuadrant1Text");
857
+ function oe(t) {
858
+ V.setData({ quadrant2Text: O(t.text) });
859
+ }
860
+ o(oe, "setQuadrant2Text");
861
+ function le(t) {
862
+ V.setData({ quadrant3Text: O(t.text) });
863
+ }
864
+ o(le, "setQuadrant3Text");
865
+ function he(t) {
866
+ V.setData({ quadrant4Text: O(t.text) });
867
+ }
868
+ o(he, "setQuadrant4Text");
869
+ function ce(t) {
870
+ V.setData({ xAxisLeftText: O(t.text) });
871
+ }
872
+ o(ce, "setXAxisLeftText");
873
+ function de(t) {
874
+ V.setData({ xAxisRightText: O(t.text) });
875
+ }
876
+ o(de, "setXAxisRightText");
877
+ function ue(t) {
878
+ V.setData({ yAxisTopText: O(t.text) });
879
+ }
880
+ o(ue, "setYAxisTopText");
881
+ function xe(t) {
882
+ V.setData({ yAxisBottomText: O(t.text) });
883
+ }
884
+ o(xe, "setYAxisBottomText");
885
+ function kt(t) {
886
+ const n = {};
887
+ for (const u of t) {
888
+ const [c, h] = u.trim().split(/\s*:\s*/);
889
+ if (c === "radius") {
890
+ if (ne(h))
891
+ throw new _t(c, h, "number");
892
+ n.radius = parseInt(h);
893
+ } else if (c === "color") {
894
+ if (It(h))
895
+ throw new _t(c, h, "hex code");
896
+ n.color = h;
897
+ } else if (c === "stroke-color") {
898
+ if (It(h))
899
+ throw new _t(c, h, "hex code");
900
+ n.strokeColor = h;
901
+ } else if (c === "stroke-width") {
902
+ if (se(h))
903
+ throw new _t(c, h, "number of pixels (eg. 10px)");
904
+ n.strokeWidth = h;
905
+ } else
906
+ throw new Error(`style named ${c} is not supported.`);
907
+ }
908
+ return n;
909
+ }
910
+ o(kt, "parseStyles");
911
+ function fe(t, n, u, c, h) {
912
+ const p = kt(h);
913
+ V.addPoints([
914
+ {
915
+ x: u,
916
+ y: c,
917
+ text: O(t.text),
918
+ className: n,
919
+ ...p
920
+ }
921
+ ]);
922
+ }
923
+ o(fe, "addPoint");
924
+ function ge(t, n) {
925
+ V.addClass(t, kt(n));
926
+ }
927
+ o(ge, "addClass");
928
+ function pe(t) {
929
+ V.setConfig({ chartWidth: t });
930
+ }
931
+ o(pe, "setWidth");
932
+ function ye(t) {
933
+ V.setConfig({ chartHeight: t });
934
+ }
935
+ o(ye, "setHeight");
936
+ function Te() {
937
+ const t = wt(), { themeVariables: n, quadrantChart: u } = t;
938
+ return u && V.setConfig(u), V.setThemeConfig({
939
+ quadrant1Fill: n.quadrant1Fill,
940
+ quadrant2Fill: n.quadrant2Fill,
941
+ quadrant3Fill: n.quadrant3Fill,
942
+ quadrant4Fill: n.quadrant4Fill,
943
+ quadrant1TextFill: n.quadrant1TextFill,
944
+ quadrant2TextFill: n.quadrant2TextFill,
945
+ quadrant3TextFill: n.quadrant3TextFill,
946
+ quadrant4TextFill: n.quadrant4TextFill,
947
+ quadrantPointFill: n.quadrantPointFill,
948
+ quadrantPointTextFill: n.quadrantPointTextFill,
949
+ quadrantXAxisTextFill: n.quadrantXAxisTextFill,
950
+ quadrantYAxisTextFill: n.quadrantYAxisTextFill,
951
+ quadrantExternalBorderStrokeFill: n.quadrantExternalBorderStrokeFill,
952
+ quadrantInternalBorderStrokeFill: n.quadrantInternalBorderStrokeFill,
953
+ quadrantTitleFill: n.quadrantTitleFill
954
+ }), V.setData({ titleText: ae() }), V.build();
955
+ }
956
+ o(Te, "getQuadrantData");
957
+ var Ie = /* @__PURE__ */ o(function() {
958
+ V.clear(), Le();
959
+ }, "clear"), we = {
960
+ setWidth: pe,
961
+ setHeight: ye,
962
+ setQuadrant1Text: re,
963
+ setQuadrant2Text: oe,
964
+ setQuadrant3Text: le,
965
+ setQuadrant4Text: he,
966
+ setXAxisLeftText: ce,
967
+ setXAxisRightText: de,
968
+ setYAxisTopText: ue,
969
+ setYAxisBottomText: xe,
970
+ parseStyles: kt,
971
+ addPoint: fe,
972
+ addClass: ge,
973
+ getQuadrantData: Te,
974
+ clear: Ie,
975
+ setAccTitle: ve,
976
+ getAccTitle: Pe,
977
+ setDiagramTitle: Fe,
978
+ getDiagramTitle: ae,
979
+ getAccDescription: ke,
980
+ setAccDescription: Ae
981
+ }, Be = /* @__PURE__ */ o((t, n, u, c) => {
982
+ var xt, ft, gt;
983
+ function h(i) {
984
+ return i === "top" ? "hanging" : "middle";
985
+ }
986
+ o(h, "getDominantBaseLine");
987
+ function p(i) {
988
+ return i === "left" ? "start" : "middle";
989
+ }
990
+ o(p, "getTextAnchor");
991
+ function y(i) {
992
+ return `translate(${i.x}, ${i.y}) rotate(${i.rotation || 0})`;
993
+ }
994
+ o(y, "getTransformation");
995
+ const S = wt();
996
+ At.debug(`Rendering quadrant chart
997
+ ` + t);
998
+ const a = S.securityLevel;
999
+ let k;
1000
+ a === "sandbox" && (k = zt("#i" + n));
1001
+ const T = (a === "sandbox" ? zt(k.nodes()[0].contentDocument.body) : zt("body")).select(`[id="${n}"]`), q = T.append("g").attr("class", "main"), m = ((xt = S.quadrantChart) == null ? void 0 : xt.chartWidth) ?? 500, b = ((ft = S.quadrantChart) == null ? void 0 : ft.chartHeight) ?? 500;
1002
+ Ce(T, b, m, ((gt = S.quadrantChart) == null ? void 0 : gt.useMaxWidth) ?? !0), T.attr("viewBox", "0 0 " + m + " " + b), c.db.setHeight(b), c.db.setWidth(m);
1003
+ const x = c.db.getQuadrantData(), _ = q.append("g").attr("class", "quadrants"), Y = q.append("g").attr("class", "border"), G = q.append("g").attr("class", "data-points"), yt = q.append("g").attr("class", "labels"), Tt = q.append("g").attr("class", "title");
1004
+ x.title && Tt.append("text").attr("x", 0).attr("y", 0).attr("fill", x.title.fill).attr("font-size", x.title.fontSize).attr("dominant-baseline", h(x.title.horizontalPos)).attr("text-anchor", p(x.title.verticalPos)).attr("transform", y(x.title)).text(x.title.text), x.borderLines && Y.selectAll("line").data(x.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);
1005
+ const dt = _.selectAll("g.quadrant").data(x.quadrants).enter().append("g").attr("class", "quadrant");
1006
+ dt.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), dt.append("text").attr("x", 0).attr("y", 0).attr("fill", (i) => i.text.fill).attr("font-size", (i) => i.text.fontSize).attr(
1007
+ "dominant-baseline",
1008
+ (i) => h(i.text.horizontalPos)
1009
+ ).attr("text-anchor", (i) => p(i.text.verticalPos)).attr("transform", (i) => y(i.text)).text((i) => i.text.text), yt.selectAll("g.label").data(x.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) => p(i.verticalPos)).attr("transform", (i) => y(i));
1010
+ const ut = G.selectAll("g.data-point").data(x.points).enter().append("g").attr("class", "data-point");
1011
+ ut.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), ut.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(
1012
+ "dominant-baseline",
1013
+ (i) => h(i.text.horizontalPos)
1014
+ ).attr("text-anchor", (i) => p(i.text.verticalPos)).attr("transform", (i) => y(i.text));
1015
+ }, "draw"), Re = {
1016
+ draw: Be
1017
+ }, Ue = {
1018
+ parser: ze,
1019
+ db: we,
1020
+ renderer: Re,
1021
+ styles: /* @__PURE__ */ o(() => "", "styles")
1022
+ };
1023
+ export {
1024
+ Ue as diagram
1025
+ };