@n8n-zengchao/chat 0.62.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 (151) hide show
  1. package/README.md +289 -0
  2. package/dist/App.vue.d.ts +2 -0
  3. package/dist/__stories__/App.stories.d.ts +18 -0
  4. package/dist/__tests__/Input.spec.d.ts +1 -0
  5. package/dist/__tests__/api/generic.spec.d.ts +1 -0
  6. package/dist/__tests__/api/message.spec.d.ts +1 -0
  7. package/dist/__tests__/index.spec.d.ts +1 -0
  8. package/dist/__tests__/plugins/chat.spec.d.ts +1 -0
  9. package/dist/__tests__/plugins/chat.test.d.ts +1 -0
  10. package/dist/__tests__/setup.d.ts +0 -0
  11. package/dist/__tests__/utils/create.d.ts +5 -0
  12. package/dist/__tests__/utils/fetch.d.ts +13 -0
  13. package/dist/__tests__/utils/index.d.ts +3 -0
  14. package/dist/__tests__/utils/selectors.d.ts +12 -0
  15. package/dist/__tests__/utils/streaming.spec.d.ts +1 -0
  16. package/dist/__tests__/utils/streamingHandlers.spec.d.ts +1 -0
  17. package/dist/_basePickBy-aQilsjEs.mjs +106 -0
  18. package/dist/_baseUniq-Agc10qFQ.mjs +232 -0
  19. package/dist/api/generic.d.ts +7 -0
  20. package/dist/api/index.d.ts +2 -0
  21. package/dist/api/message.d.ts +11 -0
  22. package/dist/arc-EhYU_DB1.mjs +79 -0
  23. package/dist/architecture-U656AL7Q-B1STlXpR.mjs +10 -0
  24. package/dist/architectureDiagram-VXUJARFQ-DOVAbXSw.mjs +4054 -0
  25. package/dist/array-B5w981Vk.mjs +5 -0
  26. package/dist/blockDiagram-VD42YOAC-BsX3Fkg3.mjs +3013 -0
  27. package/dist/c4Diagram-YG6GDRKO-B5JaLuX6.mjs +2957 -0
  28. package/dist/channel-CqrIo07y.mjs +4 -0
  29. package/dist/chat.bundle.es.js +37656 -0
  30. package/dist/chat.bundle.umd.js +2784 -0
  31. package/dist/chat.es.js +35738 -0
  32. package/dist/chat.umd.js +2776 -0
  33. package/dist/chunk-4BX2VUAB-dn0RXIrC.mjs +7 -0
  34. package/dist/chunk-55IACEB6-DrIttNoL.mjs +7 -0
  35. package/dist/chunk-76Q3JFCE-D7DMbWeQ.mjs +20 -0
  36. package/dist/chunk-ABZYJK2D-_NXv778f.mjs +2516 -0
  37. package/dist/chunk-ATLVNIR6-CBnG7Ev9.mjs +66 -0
  38. package/dist/chunk-B4BG7PRW-DElmmAse.mjs +3109 -0
  39. package/dist/chunk-CVBHYZKI-kPsSw5G9.mjs +11 -0
  40. package/dist/chunk-DI55MBZ5-Bw6uFFfD.mjs +1995 -0
  41. package/dist/chunk-DZXZ2BO8.mjs +19 -0
  42. package/dist/chunk-EXTU4WIE-DWzncOZf.mjs +8 -0
  43. package/dist/chunk-FMBD7UC4-CQf-nVrj.mjs +4 -0
  44. package/dist/chunk-FPAJGGOC-HRc6DGju.mjs +12254 -0
  45. package/dist/chunk-FWNWRKHM-CGiJVNMo.mjs +57 -0
  46. package/dist/chunk-HN2XXSSU-DMfVdeUE.mjs +75 -0
  47. package/dist/chunk-JA3XYJ7Z-b0Li4NN8.mjs +1834 -0
  48. package/dist/chunk-JZLCHNYA-C_4MLySW.mjs +4862 -0
  49. package/dist/chunk-KS23V3DP-BRKOfbU6.mjs +136 -0
  50. package/dist/chunk-LBM3YZW2-JIQK8wiH.mjs +20 -0
  51. package/dist/chunk-LHMN2FUI-PNCyIUgu.mjs +20 -0
  52. package/dist/chunk-MI3HLSF2-B9GTCmLp.mjs +1146 -0
  53. package/dist/chunk-N4CR4FBY-CjlmnCPD.mjs +40 -0
  54. package/dist/chunk-O7ZBX7Z2-DmJUfqJj.mjs +27 -0
  55. package/dist/chunk-QN33PNHL-nN1zLFSf.mjs +24 -0
  56. package/dist/chunk-QXUST7PY-CY78Btj9.mjs +487 -0
  57. package/dist/chunk-QZHKN3VN-BF5N1pfB.mjs +12 -0
  58. package/dist/chunk-S3R3BYOJ-BhFsv0Go.mjs +1076 -0
  59. package/dist/chunk-S6J4BHB3-BvrWTdbl.mjs +20 -0
  60. package/dist/chunk-T53DSG4Q-XzY06amw.mjs +25 -0
  61. package/dist/chunk-TZMSLE5B-DVmJQ8eg.mjs +57 -0
  62. package/dist/classDiagram-2ON5EDUG-CKxiEVX9.mjs +33 -0
  63. package/dist/classDiagram-v2-WZHVMYZB-sAa_2keq.mjs +33 -0
  64. package/dist/clone-nkGlb0Gn.mjs +8 -0
  65. package/dist/components/Button.vue.d.ts +17 -0
  66. package/dist/components/Chat.vue.d.ts +2 -0
  67. package/dist/components/ChatFile.vue.d.ts +11 -0
  68. package/dist/components/ChatWindow.vue.d.ts +2 -0
  69. package/dist/components/GetStarted.vue.d.ts +2 -0
  70. package/dist/components/GetStartedFooter.vue.d.ts +2 -0
  71. package/dist/components/Input.vue.d.ts +39 -0
  72. package/dist/components/Layout.vue.d.ts +23 -0
  73. package/dist/components/Message.vue.d.ts +39 -0
  74. package/dist/components/MessageTyping.vue.d.ts +76 -0
  75. package/dist/components/MessagesList.vue.d.ts +164 -0
  76. package/dist/components/PoweredBy.vue.d.ts +2 -0
  77. package/dist/components/index.d.ts +10 -0
  78. package/dist/composables/index.d.ts +3 -0
  79. package/dist/composables/useChat.d.ts +2 -0
  80. package/dist/composables/useI18n.d.ts +4 -0
  81. package/dist/composables/useOptions.d.ts +4 -0
  82. package/dist/constants/defaults.d.ts +3 -0
  83. package/dist/constants/index.d.ts +3 -0
  84. package/dist/constants/localStorage.d.ts +2 -0
  85. package/dist/constants/symbols.d.ts +4 -0
  86. package/dist/cose-bilkent-S5V4N54A-1lKG2PUg.mjs +2251 -0
  87. package/dist/cytoscape.esm-Dls1_mGy.mjs +18108 -0
  88. package/dist/dagre-6UL2VRFP-CbWFu9xQ.mjs +300 -0
  89. package/dist/dagre-DEdOheHq.mjs +1385 -0
  90. package/dist/defaultLocale-CyoQm63E.mjs +178 -0
  91. package/dist/diagram-PSM6KHXK-CJcHbrJH.mjs +499 -0
  92. package/dist/diagram-QEK2KX5R-XQ9XOVL4.mjs +228 -0
  93. package/dist/diagram-S2PKOQOG-CmRfaeSf.mjs +146 -0
  94. package/dist/dist-BT0fjU7K.mjs +50 -0
  95. package/dist/erDiagram-Q2GNP2WA-iuoUWHwm.mjs +1603 -0
  96. package/dist/event-buses/chatEventBus.d.ts +1 -0
  97. package/dist/event-buses/index.d.ts +1 -0
  98. package/dist/favicon.ico +0 -0
  99. package/dist/flowDiagram-NV44I4VS-D3GMS8-G.mjs +4132 -0
  100. package/dist/ganttDiagram-LVOFAZNH-DMTZVZDR.mjs +2832 -0
  101. package/dist/gitGraph-F6HP7TQM-CrdUzURw.mjs +10 -0
  102. package/dist/gitGraphDiagram-NY62KEGX-DipP5Fgt.mjs +636 -0
  103. package/dist/graphlib-D9eH5icd.mjs +224 -0
  104. package/dist/index.d.ts +2 -0
  105. package/dist/info-NVLQJR56-C-93Yf3U.mjs +10 -0
  106. package/dist/infoDiagram-F6ZHWCRC-jM50s26K.mjs +33 -0
  107. package/dist/init-CYeu4QfE.mjs +14 -0
  108. package/dist/isArrayLikeObject-BPcFdnyK.mjs +459 -0
  109. package/dist/isUndefined-BvarJ1wS.mjs +374 -0
  110. package/dist/journeyDiagram-XKPGCS4Q-BEEO_0Bh.mjs +885 -0
  111. package/dist/kanban-definition-3W4ZIXB7-B8u_HDmL.mjs +971 -0
  112. package/dist/katex-Dc1vXbUC.mjs +22094 -0
  113. package/dist/line-BJxACIPZ.mjs +31 -0
  114. package/dist/linear-DHHVI-cj.mjs +251 -0
  115. package/dist/math-Byg0NvhS.mjs +9 -0
  116. package/dist/mermaid-parser.core-YT4qvimq.mjs +49 -0
  117. package/dist/mindmap-definition-VGOIOE7T-ah41V88S.mjs +960 -0
  118. package/dist/now-DsJMgI1z.mjs +6 -0
  119. package/dist/ordinal-L0-EVPg8.mjs +62 -0
  120. package/dist/packet-BFZMPI3H-Cs4kRHct.mjs +10 -0
  121. package/dist/path-BcDHwjEr.mjs +80 -0
  122. package/dist/pie-7BOR55EZ-YZ5Xu4o6.mjs +10 -0
  123. package/dist/pieDiagram-ADFJNKIX-CqI33m1a.mjs +174 -0
  124. package/dist/plugins/chat.d.ts +3 -0
  125. package/dist/plugins/index.d.ts +1 -0
  126. package/dist/quadrantDiagram-AYHSOK5B-DDv2X9c1.mjs +1971 -0
  127. package/dist/radar-NHE76QYJ-TpirOFtv.mjs +10 -0
  128. package/dist/requirementDiagram-UZGBJVZJ-DXa77VzO.mjs +2194 -0
  129. package/dist/sankeyDiagram-TZEHDZUN--B9DInJC.mjs +885 -0
  130. package/dist/sequenceDiagram-WL72ISMW-Dqn9jJ3g.mjs +3562 -0
  131. package/dist/src-DdwtiGjk.mjs +1976 -0
  132. package/dist/stateDiagram-FKZM4ZOC-D3eEcVjS.mjs +226 -0
  133. package/dist/stateDiagram-v2-4FDKWEC3-dzwJ4caL.mjs +32 -0
  134. package/dist/style.css +3 -0
  135. package/dist/timeline-definition-IT6M3QCI-z93ry7RN.mjs +831 -0
  136. package/dist/toInteger-1S_4Byef.mjs +36 -0
  137. package/dist/treemap-KMMF4GRG-BlF0Ev1z.mjs +10 -0
  138. package/dist/types/chat.d.ts +13 -0
  139. package/dist/types/index.d.ts +5 -0
  140. package/dist/types/messages.d.ts +17 -0
  141. package/dist/types/options.d.ts +33 -0
  142. package/dist/types/streaming.d.ts +18 -0
  143. package/dist/types/webhook.d.ts +19 -0
  144. package/dist/utils/event-bus.d.ts +8 -0
  145. package/dist/utils/index.d.ts +3 -0
  146. package/dist/utils/mount.d.ts +1 -0
  147. package/dist/utils/streaming.d.ts +26 -0
  148. package/dist/utils/streamingHandlers.d.ts +6 -0
  149. package/dist/utils/utils.d.ts +1 -0
  150. package/dist/xychartDiagram-PRI3JC2R-C3aDcgBz.mjs +2022 -0
  151. package/package.json +78 -0
@@ -0,0 +1,2516 @@
1
+ /*! Package version @n8n/chat@0.62.0 */
2
+ import { _ as setLogLevel, g as log, h as __name, m as __export } from "./src-DdwtiGjk.mjs";
3
+ var Channel = {
4
+ min: {
5
+ r: 0,
6
+ g: 0,
7
+ b: 0,
8
+ s: 0,
9
+ l: 0,
10
+ a: 0
11
+ },
12
+ max: {
13
+ r: 255,
14
+ g: 255,
15
+ b: 255,
16
+ h: 360,
17
+ s: 100,
18
+ l: 100,
19
+ a: 1
20
+ },
21
+ clamp: {
22
+ r: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
23
+ g: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
24
+ b: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
25
+ h: (e) => e % 360,
26
+ s: (e) => e >= 100 ? 100 : e < 0 ? 0 : e,
27
+ l: (e) => e >= 100 ? 100 : e < 0 ? 0 : e,
28
+ a: (e) => e >= 1 ? 1 : e < 0 ? 0 : e
29
+ },
30
+ toLinear: (e) => {
31
+ let t = e / 255;
32
+ return e > .03928 ? ((t + .055) / 1.055) ** 2.4 : t / 12.92;
33
+ },
34
+ hue2rgb: (e, t, n) => (n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e),
35
+ hsl2rgb: ({ h: e, s: t, l: n }, r) => {
36
+ if (!t) return n * 2.55;
37
+ e /= 360, t /= 100, n /= 100;
38
+ let a = n < .5 ? n * (1 + t) : n + t - n * t, o = 2 * n - a;
39
+ switch (r) {
40
+ case "r": return Channel.hue2rgb(o, a, e + 1 / 3) * 255;
41
+ case "g": return Channel.hue2rgb(o, a, e) * 255;
42
+ case "b": return Channel.hue2rgb(o, a, e - 1 / 3) * 255;
43
+ }
44
+ },
45
+ rgb2hsl: ({ r: e, g: t, b: n }, r) => {
46
+ e /= 255, t /= 255, n /= 255;
47
+ let i = Math.max(e, t, n), a = Math.min(e, t, n), o = (i + a) / 2;
48
+ if (r === "l") return o * 100;
49
+ if (i === a) return 0;
50
+ let s = i - a, c = o > .5 ? s / (2 - i - a) : s / (i + a);
51
+ if (r === "s") return c * 100;
52
+ switch (i) {
53
+ case e: return ((t - n) / s + (t < n ? 6 : 0)) * 60;
54
+ case t: return ((n - e) / s + 2) * 60;
55
+ case n: return ((e - t) / s + 4) * 60;
56
+ default: return -1;
57
+ }
58
+ }
59
+ }, utils_default = {
60
+ channel: Channel,
61
+ lang: {
62
+ clamp: (e, t, n) => t > n ? Math.min(t, Math.max(n, e)) : Math.min(n, Math.max(t, e)),
63
+ round: (e) => Math.round(e * 1e10) / 1e10
64
+ },
65
+ unit: { dec2hex: (e) => {
66
+ let t = Math.round(e).toString(16);
67
+ return t.length > 1 ? t : `0${t}`;
68
+ } }
69
+ }, DEC2HEX = {};
70
+ for (let e = 0; e <= 255; e++) DEC2HEX[e] = utils_default.unit.dec2hex(e);
71
+ var TYPE = {
72
+ ALL: 0,
73
+ RGB: 1,
74
+ HSL: 2
75
+ }, type_default = class {
76
+ constructor() {
77
+ this.type = TYPE.ALL;
78
+ }
79
+ get() {
80
+ return this.type;
81
+ }
82
+ set(e) {
83
+ if (this.type && this.type !== e) throw Error("Cannot change both RGB and HSL channels at the same time");
84
+ this.type = e;
85
+ }
86
+ reset() {
87
+ this.type = TYPE.ALL;
88
+ }
89
+ is(e) {
90
+ return this.type === e;
91
+ }
92
+ }, reusable_default = new class {
93
+ constructor(e, t) {
94
+ this.color = t, this.changed = !1, this.data = e, this.type = new type_default();
95
+ }
96
+ set(e, t) {
97
+ return this.color = t, this.changed = !1, this.data = e, this.type.type = TYPE.ALL, this;
98
+ }
99
+ _ensureHSL() {
100
+ let e = this.data, { h: t, s: n, l: r } = e;
101
+ t === void 0 && (e.h = utils_default.channel.rgb2hsl(e, "h")), n === void 0 && (e.s = utils_default.channel.rgb2hsl(e, "s")), r === void 0 && (e.l = utils_default.channel.rgb2hsl(e, "l"));
102
+ }
103
+ _ensureRGB() {
104
+ let e = this.data, { r: t, g: n, b: r } = e;
105
+ t === void 0 && (e.r = utils_default.channel.hsl2rgb(e, "r")), n === void 0 && (e.g = utils_default.channel.hsl2rgb(e, "g")), r === void 0 && (e.b = utils_default.channel.hsl2rgb(e, "b"));
106
+ }
107
+ get r() {
108
+ let e = this.data, t = e.r;
109
+ return !this.type.is(TYPE.HSL) && t !== void 0 ? t : (this._ensureHSL(), utils_default.channel.hsl2rgb(e, "r"));
110
+ }
111
+ get g() {
112
+ let e = this.data, t = e.g;
113
+ return !this.type.is(TYPE.HSL) && t !== void 0 ? t : (this._ensureHSL(), utils_default.channel.hsl2rgb(e, "g"));
114
+ }
115
+ get b() {
116
+ let e = this.data, t = e.b;
117
+ return !this.type.is(TYPE.HSL) && t !== void 0 ? t : (this._ensureHSL(), utils_default.channel.hsl2rgb(e, "b"));
118
+ }
119
+ get h() {
120
+ let e = this.data, t = e.h;
121
+ return !this.type.is(TYPE.RGB) && t !== void 0 ? t : (this._ensureRGB(), utils_default.channel.rgb2hsl(e, "h"));
122
+ }
123
+ get s() {
124
+ let e = this.data, t = e.s;
125
+ return !this.type.is(TYPE.RGB) && t !== void 0 ? t : (this._ensureRGB(), utils_default.channel.rgb2hsl(e, "s"));
126
+ }
127
+ get l() {
128
+ let e = this.data, t = e.l;
129
+ return !this.type.is(TYPE.RGB) && t !== void 0 ? t : (this._ensureRGB(), utils_default.channel.rgb2hsl(e, "l"));
130
+ }
131
+ get a() {
132
+ return this.data.a;
133
+ }
134
+ set r(e) {
135
+ this.type.set(TYPE.RGB), this.changed = !0, this.data.r = e;
136
+ }
137
+ set g(e) {
138
+ this.type.set(TYPE.RGB), this.changed = !0, this.data.g = e;
139
+ }
140
+ set b(e) {
141
+ this.type.set(TYPE.RGB), this.changed = !0, this.data.b = e;
142
+ }
143
+ set h(e) {
144
+ this.type.set(TYPE.HSL), this.changed = !0, this.data.h = e;
145
+ }
146
+ set s(e) {
147
+ this.type.set(TYPE.HSL), this.changed = !0, this.data.s = e;
148
+ }
149
+ set l(e) {
150
+ this.type.set(TYPE.HSL), this.changed = !0, this.data.l = e;
151
+ }
152
+ set a(e) {
153
+ this.changed = !0, this.data.a = e;
154
+ }
155
+ }({
156
+ r: 0,
157
+ g: 0,
158
+ b: 0,
159
+ a: 0
160
+ }, "transparent"), Hex = {
161
+ re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,
162
+ parse: (e) => {
163
+ if (e.charCodeAt(0) !== 35) return;
164
+ let t = e.match(Hex.re);
165
+ if (!t) return;
166
+ let n = t[1], r = parseInt(n, 16), i = n.length, a = i % 4 == 0, o = i > 4, s = o ? 1 : 17, c = o ? 8 : 4, d = a ? 0 : -1, f = o ? 255 : 15;
167
+ return reusable_default.set({
168
+ r: (r >> c * (d + 3) & f) * s,
169
+ g: (r >> c * (d + 2) & f) * s,
170
+ b: (r >> c * (d + 1) & f) * s,
171
+ a: a ? (r & f) * s / 255 : 1
172
+ }, e);
173
+ },
174
+ stringify: (e) => {
175
+ let { r: t, g: n, b: r, a: i } = e;
176
+ return i < 1 ? `#${DEC2HEX[Math.round(t)]}${DEC2HEX[Math.round(n)]}${DEC2HEX[Math.round(r)]}${DEC2HEX[Math.round(i * 255)]}` : `#${DEC2HEX[Math.round(t)]}${DEC2HEX[Math.round(n)]}${DEC2HEX[Math.round(r)]}`;
177
+ }
178
+ }, hex_default = Hex, HSL = {
179
+ re: /^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,
180
+ hueRe: /^(.+?)(deg|grad|rad|turn)$/i,
181
+ _hue2deg: (e) => {
182
+ let t = e.match(HSL.hueRe);
183
+ if (t) {
184
+ let [, e, n] = t;
185
+ switch (n) {
186
+ case "grad": return utils_default.channel.clamp.h(parseFloat(e) * .9);
187
+ case "rad": return utils_default.channel.clamp.h(parseFloat(e) * 180 / Math.PI);
188
+ case "turn": return utils_default.channel.clamp.h(parseFloat(e) * 360);
189
+ }
190
+ }
191
+ return utils_default.channel.clamp.h(parseFloat(e));
192
+ },
193
+ parse: (e) => {
194
+ let t = e.charCodeAt(0);
195
+ if (t !== 104 && t !== 72) return;
196
+ let n = e.match(HSL.re);
197
+ if (!n) return;
198
+ let [, r, i, o, s, c] = n;
199
+ return reusable_default.set({
200
+ h: HSL._hue2deg(r),
201
+ s: utils_default.channel.clamp.s(parseFloat(i)),
202
+ l: utils_default.channel.clamp.l(parseFloat(o)),
203
+ a: s ? utils_default.channel.clamp.a(c ? parseFloat(s) / 100 : parseFloat(s)) : 1
204
+ }, e);
205
+ },
206
+ stringify: (e) => {
207
+ let { h: t, s: n, l: r, a: i } = e;
208
+ return i < 1 ? `hsla(${utils_default.lang.round(t)}, ${utils_default.lang.round(n)}%, ${utils_default.lang.round(r)}%, ${i})` : `hsl(${utils_default.lang.round(t)}, ${utils_default.lang.round(n)}%, ${utils_default.lang.round(r)}%)`;
209
+ }
210
+ }, hsl_default = HSL, Keyword = {
211
+ colors: {
212
+ aliceblue: "#f0f8ff",
213
+ antiquewhite: "#faebd7",
214
+ aqua: "#00ffff",
215
+ aquamarine: "#7fffd4",
216
+ azure: "#f0ffff",
217
+ beige: "#f5f5dc",
218
+ bisque: "#ffe4c4",
219
+ black: "#000000",
220
+ blanchedalmond: "#ffebcd",
221
+ blue: "#0000ff",
222
+ blueviolet: "#8a2be2",
223
+ brown: "#a52a2a",
224
+ burlywood: "#deb887",
225
+ cadetblue: "#5f9ea0",
226
+ chartreuse: "#7fff00",
227
+ chocolate: "#d2691e",
228
+ coral: "#ff7f50",
229
+ cornflowerblue: "#6495ed",
230
+ cornsilk: "#fff8dc",
231
+ crimson: "#dc143c",
232
+ cyanaqua: "#00ffff",
233
+ darkblue: "#00008b",
234
+ darkcyan: "#008b8b",
235
+ darkgoldenrod: "#b8860b",
236
+ darkgray: "#a9a9a9",
237
+ darkgreen: "#006400",
238
+ darkgrey: "#a9a9a9",
239
+ darkkhaki: "#bdb76b",
240
+ darkmagenta: "#8b008b",
241
+ darkolivegreen: "#556b2f",
242
+ darkorange: "#ff8c00",
243
+ darkorchid: "#9932cc",
244
+ darkred: "#8b0000",
245
+ darksalmon: "#e9967a",
246
+ darkseagreen: "#8fbc8f",
247
+ darkslateblue: "#483d8b",
248
+ darkslategray: "#2f4f4f",
249
+ darkslategrey: "#2f4f4f",
250
+ darkturquoise: "#00ced1",
251
+ darkviolet: "#9400d3",
252
+ deeppink: "#ff1493",
253
+ deepskyblue: "#00bfff",
254
+ dimgray: "#696969",
255
+ dimgrey: "#696969",
256
+ dodgerblue: "#1e90ff",
257
+ firebrick: "#b22222",
258
+ floralwhite: "#fffaf0",
259
+ forestgreen: "#228b22",
260
+ fuchsia: "#ff00ff",
261
+ gainsboro: "#dcdcdc",
262
+ ghostwhite: "#f8f8ff",
263
+ gold: "#ffd700",
264
+ goldenrod: "#daa520",
265
+ gray: "#808080",
266
+ green: "#008000",
267
+ greenyellow: "#adff2f",
268
+ grey: "#808080",
269
+ honeydew: "#f0fff0",
270
+ hotpink: "#ff69b4",
271
+ indianred: "#cd5c5c",
272
+ indigo: "#4b0082",
273
+ ivory: "#fffff0",
274
+ khaki: "#f0e68c",
275
+ lavender: "#e6e6fa",
276
+ lavenderblush: "#fff0f5",
277
+ lawngreen: "#7cfc00",
278
+ lemonchiffon: "#fffacd",
279
+ lightblue: "#add8e6",
280
+ lightcoral: "#f08080",
281
+ lightcyan: "#e0ffff",
282
+ lightgoldenrodyellow: "#fafad2",
283
+ lightgray: "#d3d3d3",
284
+ lightgreen: "#90ee90",
285
+ lightgrey: "#d3d3d3",
286
+ lightpink: "#ffb6c1",
287
+ lightsalmon: "#ffa07a",
288
+ lightseagreen: "#20b2aa",
289
+ lightskyblue: "#87cefa",
290
+ lightslategray: "#778899",
291
+ lightslategrey: "#778899",
292
+ lightsteelblue: "#b0c4de",
293
+ lightyellow: "#ffffe0",
294
+ lime: "#00ff00",
295
+ limegreen: "#32cd32",
296
+ linen: "#faf0e6",
297
+ magenta: "#ff00ff",
298
+ maroon: "#800000",
299
+ mediumaquamarine: "#66cdaa",
300
+ mediumblue: "#0000cd",
301
+ mediumorchid: "#ba55d3",
302
+ mediumpurple: "#9370db",
303
+ mediumseagreen: "#3cb371",
304
+ mediumslateblue: "#7b68ee",
305
+ mediumspringgreen: "#00fa9a",
306
+ mediumturquoise: "#48d1cc",
307
+ mediumvioletred: "#c71585",
308
+ midnightblue: "#191970",
309
+ mintcream: "#f5fffa",
310
+ mistyrose: "#ffe4e1",
311
+ moccasin: "#ffe4b5",
312
+ navajowhite: "#ffdead",
313
+ navy: "#000080",
314
+ oldlace: "#fdf5e6",
315
+ olive: "#808000",
316
+ olivedrab: "#6b8e23",
317
+ orange: "#ffa500",
318
+ orangered: "#ff4500",
319
+ orchid: "#da70d6",
320
+ palegoldenrod: "#eee8aa",
321
+ palegreen: "#98fb98",
322
+ paleturquoise: "#afeeee",
323
+ palevioletred: "#db7093",
324
+ papayawhip: "#ffefd5",
325
+ peachpuff: "#ffdab9",
326
+ peru: "#cd853f",
327
+ pink: "#ffc0cb",
328
+ plum: "#dda0dd",
329
+ powderblue: "#b0e0e6",
330
+ purple: "#800080",
331
+ rebeccapurple: "#663399",
332
+ red: "#ff0000",
333
+ rosybrown: "#bc8f8f",
334
+ royalblue: "#4169e1",
335
+ saddlebrown: "#8b4513",
336
+ salmon: "#fa8072",
337
+ sandybrown: "#f4a460",
338
+ seagreen: "#2e8b57",
339
+ seashell: "#fff5ee",
340
+ sienna: "#a0522d",
341
+ silver: "#c0c0c0",
342
+ skyblue: "#87ceeb",
343
+ slateblue: "#6a5acd",
344
+ slategray: "#708090",
345
+ slategrey: "#708090",
346
+ snow: "#fffafa",
347
+ springgreen: "#00ff7f",
348
+ tan: "#d2b48c",
349
+ teal: "#008080",
350
+ thistle: "#d8bfd8",
351
+ transparent: "#00000000",
352
+ turquoise: "#40e0d0",
353
+ violet: "#ee82ee",
354
+ wheat: "#f5deb3",
355
+ white: "#ffffff",
356
+ whitesmoke: "#f5f5f5",
357
+ yellow: "#ffff00",
358
+ yellowgreen: "#9acd32"
359
+ },
360
+ parse: (e) => {
361
+ e = e.toLowerCase();
362
+ let t = Keyword.colors[e];
363
+ if (t) return hex_default.parse(t);
364
+ },
365
+ stringify: (e) => {
366
+ let t = hex_default.stringify(e);
367
+ for (let e in Keyword.colors) if (Keyword.colors[e] === t) return e;
368
+ }
369
+ }, keyword_default = Keyword, RGB = {
370
+ re: /^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,
371
+ parse: (e) => {
372
+ let t = e.charCodeAt(0);
373
+ if (t !== 114 && t !== 82) return;
374
+ let n = e.match(RGB.re);
375
+ if (!n) return;
376
+ let [, r, i, o, s, c, u, d, f] = n;
377
+ return reusable_default.set({
378
+ r: utils_default.channel.clamp.r(i ? parseFloat(r) * 2.55 : parseFloat(r)),
379
+ g: utils_default.channel.clamp.g(s ? parseFloat(o) * 2.55 : parseFloat(o)),
380
+ b: utils_default.channel.clamp.b(u ? parseFloat(c) * 2.55 : parseFloat(c)),
381
+ a: d ? utils_default.channel.clamp.a(f ? parseFloat(d) / 100 : parseFloat(d)) : 1
382
+ }, e);
383
+ },
384
+ stringify: (e) => {
385
+ let { r: t, g: n, b: r, a: i } = e;
386
+ return i < 1 ? `rgba(${utils_default.lang.round(t)}, ${utils_default.lang.round(n)}, ${utils_default.lang.round(r)}, ${utils_default.lang.round(i)})` : `rgb(${utils_default.lang.round(t)}, ${utils_default.lang.round(n)}, ${utils_default.lang.round(r)})`;
387
+ }
388
+ }, rgb_default = RGB, color_default = {
389
+ format: {
390
+ keyword: keyword_default,
391
+ hex: hex_default,
392
+ rgb: rgb_default,
393
+ rgba: rgb_default,
394
+ hsl: hsl_default,
395
+ hsla: hsl_default
396
+ },
397
+ parse: (e) => {
398
+ if (typeof e != "string") return e;
399
+ let t = hex_default.parse(e) || rgb_default.parse(e) || hsl_default.parse(e) || keyword_default.parse(e);
400
+ if (t) return t;
401
+ throw Error(`Unsupported color format: "${e}"`);
402
+ },
403
+ stringify: (e) => !e.changed && e.color ? e.color : e.type.is(TYPE.HSL) || e.data.r === void 0 ? hsl_default.stringify(e) : e.a < 1 || !Number.isInteger(e.r) || !Number.isInteger(e.g) || !Number.isInteger(e.b) ? rgb_default.stringify(e) : hex_default.stringify(e)
404
+ }, change_default = (e, t) => {
405
+ let n = color_default.parse(e);
406
+ for (let e in t) n[e] = utils_default.channel.clamp[e](t[e]);
407
+ return color_default.stringify(n);
408
+ }, rgba_default = (e, t, n = 0, r = 1) => {
409
+ if (typeof e != "number") return change_default(e, { a: t });
410
+ let i = reusable_default.set({
411
+ r: utils_default.channel.clamp.r(e),
412
+ g: utils_default.channel.clamp.g(t),
413
+ b: utils_default.channel.clamp.b(n),
414
+ a: utils_default.channel.clamp.a(r)
415
+ });
416
+ return color_default.stringify(i);
417
+ }, luminance_default = (e) => {
418
+ let { r: t, g: n, b: r } = color_default.parse(e), i = .2126 * utils_default.channel.toLinear(t) + .7152 * utils_default.channel.toLinear(n) + .0722 * utils_default.channel.toLinear(r);
419
+ return utils_default.lang.round(i);
420
+ }, is_light_default = (e) => luminance_default(e) >= .5, is_dark_default = (e) => !is_light_default(e), adjust_channel_default = (e, t, n) => {
421
+ let r = color_default.parse(e), i = r[t], o = utils_default.channel.clamp[t](i + n);
422
+ return i !== o && (r[t] = o), color_default.stringify(r);
423
+ }, lighten_default = (e, t) => adjust_channel_default(e, "l", t), darken_default = (e, t) => adjust_channel_default(e, "l", -t), adjust_default = (e, t) => {
424
+ let n = color_default.parse(e), r = {};
425
+ for (let e in t) t[e] && (r[e] = n[e] + t[e]);
426
+ return change_default(e, r);
427
+ }, mix_default = (e, t, n = 50) => {
428
+ let { r, g: i, b: a, a: o } = color_default.parse(e), { r: s, g: c, b: l, a: u } = color_default.parse(t), d = n / 100, f = d * 2 - 1, p = o - u, m = ((f * p === -1 ? f : (f + p) / (1 + f * p)) + 1) / 2, h = 1 - m;
429
+ return rgba_default(r * m + s * h, i * m + c * h, a * m + l * h, o * d + u * (1 - d));
430
+ }, invert_default = (e, t = 100) => {
431
+ let n = color_default.parse(e);
432
+ return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b, mix_default(n, e, t);
433
+ }, { entries, setPrototypeOf, isFrozen, getPrototypeOf, getOwnPropertyDescriptor } = Object, { freeze, seal, create } = Object, { apply, construct } = typeof Reflect < "u" && Reflect;
434
+ freeze ||= function(e) {
435
+ return e;
436
+ }, seal ||= function(e) {
437
+ return e;
438
+ }, apply ||= function(e, t) {
439
+ var n = [...arguments].slice(2);
440
+ return e.apply(t, n);
441
+ }, construct ||= function(e) {
442
+ return new e(...[...arguments].slice(1));
443
+ };
444
+ var arrayForEach = unapply(Array.prototype.forEach), arrayLastIndexOf = unapply(Array.prototype.lastIndexOf), arrayPop = unapply(Array.prototype.pop), arrayPush = unapply(Array.prototype.push), arraySplice = unapply(Array.prototype.splice), stringToLowerCase = unapply(String.prototype.toLowerCase), stringToString = unapply(String.prototype.toString), stringMatch = unapply(String.prototype.match), stringReplace = unapply(String.prototype.replace), stringIndexOf = unapply(String.prototype.indexOf), stringTrim = unapply(String.prototype.trim), objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty), regExpTest = unapply(RegExp.prototype.test), typeErrorCreate = unconstruct(TypeError);
445
+ function unapply(e) {
446
+ return function(t) {
447
+ t instanceof RegExp && (t.lastIndex = 0);
448
+ var n = [...arguments].slice(1);
449
+ return apply(e, t, n);
450
+ };
451
+ }
452
+ function unconstruct(e) {
453
+ return function() {
454
+ return construct(e, [...arguments]);
455
+ };
456
+ }
457
+ function addToSet(e, t) {
458
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : stringToLowerCase;
459
+ setPrototypeOf && setPrototypeOf(e, null);
460
+ let r = t.length;
461
+ for (; r--;) {
462
+ let i = t[r];
463
+ if (typeof i == "string") {
464
+ let e = n(i);
465
+ e !== i && (isFrozen(t) || (t[r] = e), i = e);
466
+ }
467
+ e[i] = !0;
468
+ }
469
+ return e;
470
+ }
471
+ function cleanArray(e) {
472
+ for (let t = 0; t < e.length; t++) objectHasOwnProperty(e, t) || (e[t] = null);
473
+ return e;
474
+ }
475
+ function clone(e) {
476
+ let t = create(null);
477
+ for (let [n, r] of entries(e)) objectHasOwnProperty(e, n) && (Array.isArray(r) ? t[n] = cleanArray(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = clone(r) : t[n] = r);
478
+ return t;
479
+ }
480
+ function lookupGetter(e, t) {
481
+ for (; e !== null;) {
482
+ let n = getOwnPropertyDescriptor(e, t);
483
+ if (n) {
484
+ if (n.get) return unapply(n.get);
485
+ if (typeof n.value == "function") return unapply(n.value);
486
+ }
487
+ e = getPrototypeOf(e);
488
+ }
489
+ function n() {
490
+ return null;
491
+ }
492
+ return n;
493
+ }
494
+ var html$1 = freeze(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), svg$1 = freeze(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), svgFilters = freeze([
495
+ "feBlend",
496
+ "feColorMatrix",
497
+ "feComponentTransfer",
498
+ "feComposite",
499
+ "feConvolveMatrix",
500
+ "feDiffuseLighting",
501
+ "feDisplacementMap",
502
+ "feDistantLight",
503
+ "feDropShadow",
504
+ "feFlood",
505
+ "feFuncA",
506
+ "feFuncB",
507
+ "feFuncG",
508
+ "feFuncR",
509
+ "feGaussianBlur",
510
+ "feImage",
511
+ "feMerge",
512
+ "feMergeNode",
513
+ "feMorphology",
514
+ "feOffset",
515
+ "fePointLight",
516
+ "feSpecularLighting",
517
+ "feSpotLight",
518
+ "feTile",
519
+ "feTurbulence"
520
+ ]), svgDisallowed = freeze([
521
+ "animate",
522
+ "color-profile",
523
+ "cursor",
524
+ "discard",
525
+ "font-face",
526
+ "font-face-format",
527
+ "font-face-name",
528
+ "font-face-src",
529
+ "font-face-uri",
530
+ "foreignobject",
531
+ "hatch",
532
+ "hatchpath",
533
+ "mesh",
534
+ "meshgradient",
535
+ "meshpatch",
536
+ "meshrow",
537
+ "missing-glyph",
538
+ "script",
539
+ "set",
540
+ "solidcolor",
541
+ "unknown",
542
+ "use"
543
+ ]), mathMl$1 = freeze(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), mathMlDisallowed = freeze([
544
+ "maction",
545
+ "maligngroup",
546
+ "malignmark",
547
+ "mlongdiv",
548
+ "mscarries",
549
+ "mscarry",
550
+ "msgroup",
551
+ "mstack",
552
+ "msline",
553
+ "msrow",
554
+ "semantics",
555
+ "annotation",
556
+ "annotation-xml",
557
+ "mprescripts",
558
+ "none"
559
+ ]), text = freeze(["#text"]), html = freeze(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot".split(".")), svg = freeze(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), mathMl = freeze(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), xml = freeze([
560
+ "xlink:href",
561
+ "xml:id",
562
+ "xlink:title",
563
+ "xml:space",
564
+ "xmlns:xlink"
565
+ ]), MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm), TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm), DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/), ARIA_ATTR = seal(/^aria-[\-\w]+$/), IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i), ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), DOCTYPE_NAME = seal(/^html$/i), CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i), EXPRESSIONS = /* @__PURE__ */ Object.freeze({
566
+ __proto__: null,
567
+ ARIA_ATTR,
568
+ ATTR_WHITESPACE,
569
+ CUSTOM_ELEMENT,
570
+ DATA_ATTR,
571
+ DOCTYPE_NAME,
572
+ ERB_EXPR,
573
+ IS_ALLOWED_URI,
574
+ IS_SCRIPT_OR_DATA,
575
+ MUSTACHE_EXPR,
576
+ TMPLIT_EXPR
577
+ }), NODE_TYPE = {
578
+ element: 1,
579
+ attribute: 2,
580
+ text: 3,
581
+ cdataSection: 4,
582
+ entityReference: 5,
583
+ entityNode: 6,
584
+ progressingInstruction: 7,
585
+ comment: 8,
586
+ document: 9,
587
+ documentType: 10,
588
+ documentFragment: 11,
589
+ notation: 12
590
+ }, getGlobal = function() {
591
+ return typeof window > "u" ? null : window;
592
+ }, _createTrustedTypesPolicy = function(e, t) {
593
+ if (typeof e != "object" || typeof e.createPolicy != "function") return null;
594
+ let n = null, r = "data-tt-policy-suffix";
595
+ t && t.hasAttribute(r) && (n = t.getAttribute(r));
596
+ let i = "dompurify" + (n ? "#" + n : "");
597
+ try {
598
+ return e.createPolicy(i, {
599
+ createHTML(e) {
600
+ return e;
601
+ },
602
+ createScriptURL(e) {
603
+ return e;
604
+ }
605
+ });
606
+ } catch {
607
+ return console.warn("TrustedTypes policy " + i + " could not be created."), null;
608
+ }
609
+ }, _createHooksMap = function() {
610
+ return {
611
+ afterSanitizeAttributes: [],
612
+ afterSanitizeElements: [],
613
+ afterSanitizeShadowDOM: [],
614
+ beforeSanitizeAttributes: [],
615
+ beforeSanitizeElements: [],
616
+ beforeSanitizeShadowDOM: [],
617
+ uponSanitizeAttribute: [],
618
+ uponSanitizeElement: [],
619
+ uponSanitizeShadowNode: []
620
+ };
621
+ };
622
+ function createDOMPurify() {
623
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal(), t = (e) => createDOMPurify(e);
624
+ if (t.version = "3.3.0", t.removed = [], !e || !e.document || e.document.nodeType !== NODE_TYPE.document || !e.Element) return t.isSupported = !1, t;
625
+ let { document: n } = e, r = n, i = r.currentScript, { DocumentFragment: a, HTMLTemplateElement: o, Node: s, Element: c, NodeFilter: l, NamedNodeMap: u = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: d, DOMParser: f, trustedTypes: p } = e, m = c.prototype, h = lookupGetter(m, "cloneNode"), Wt = lookupGetter(m, "remove"), Gt = lookupGetter(m, "nextSibling"), Kt = lookupGetter(m, "childNodes"), g = lookupGetter(m, "parentNode");
626
+ if (typeof o == "function") {
627
+ let e = n.createElement("template");
628
+ e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
629
+ }
630
+ let _, v = "", { implementation: y, createNodeIterator: qt, createDocumentFragment: Jt, getElementsByTagName: Yt } = n, { importNode: Xt } = r, b = _createHooksMap();
631
+ t.isSupported = typeof entries == "function" && typeof g == "function" && y && y.createHTMLDocument !== void 0;
632
+ let { MUSTACHE_EXPR: x, ERB_EXPR: Zt, TMPLIT_EXPR: Qt, DATA_ATTR: $t, ARIA_ATTR: en, IS_SCRIPT_OR_DATA: tn, ATTR_WHITESPACE: nn, CUSTOM_ELEMENT: rn } = EXPRESSIONS, { IS_ALLOWED_URI: an } = EXPRESSIONS, S = null, on = addToSet({}, [
633
+ ...html$1,
634
+ ...svg$1,
635
+ ...svgFilters,
636
+ ...mathMl$1,
637
+ ...text
638
+ ]), C = null, sn = addToSet({}, [
639
+ ...html,
640
+ ...svg,
641
+ ...mathMl,
642
+ ...xml
643
+ ]), w = Object.seal(create(null, {
644
+ tagNameCheck: {
645
+ writable: !0,
646
+ configurable: !1,
647
+ enumerable: !0,
648
+ value: null
649
+ },
650
+ attributeNameCheck: {
651
+ writable: !0,
652
+ configurable: !1,
653
+ enumerable: !0,
654
+ value: null
655
+ },
656
+ allowCustomizedBuiltInElements: {
657
+ writable: !0,
658
+ configurable: !1,
659
+ enumerable: !0,
660
+ value: !1
661
+ }
662
+ })), T = null, E = null, D = Object.seal(create(null, {
663
+ tagCheck: {
664
+ writable: !0,
665
+ configurable: !1,
666
+ enumerable: !0,
667
+ value: null
668
+ },
669
+ attributeCheck: {
670
+ writable: !0,
671
+ configurable: !1,
672
+ enumerable: !0,
673
+ value: null
674
+ }
675
+ })), cn = !0, O = !0, ln = !1, un = !0, k = !1, A = !0, j = !1, M = !1, N = !1, P = !1, F = !1, I = !1, dn = !0, fn = !1, L = !0, R = !1, z = {}, B = null, pn = addToSet({}, [
676
+ "annotation-xml",
677
+ "audio",
678
+ "colgroup",
679
+ "desc",
680
+ "foreignobject",
681
+ "head",
682
+ "iframe",
683
+ "math",
684
+ "mi",
685
+ "mn",
686
+ "mo",
687
+ "ms",
688
+ "mtext",
689
+ "noembed",
690
+ "noframes",
691
+ "noscript",
692
+ "plaintext",
693
+ "script",
694
+ "style",
695
+ "svg",
696
+ "template",
697
+ "thead",
698
+ "title",
699
+ "video",
700
+ "xmp"
701
+ ]), mn = null, hn = addToSet({}, [
702
+ "audio",
703
+ "video",
704
+ "img",
705
+ "source",
706
+ "image",
707
+ "track"
708
+ ]), gn = null, _n = addToSet({}, [
709
+ "alt",
710
+ "class",
711
+ "for",
712
+ "id",
713
+ "label",
714
+ "name",
715
+ "pattern",
716
+ "placeholder",
717
+ "role",
718
+ "summary",
719
+ "title",
720
+ "value",
721
+ "style",
722
+ "xmlns"
723
+ ]), V = "http://www.w3.org/1998/Math/MathML", H = "http://www.w3.org/2000/svg", U = "http://www.w3.org/1999/xhtml", W = U, vn = !1, yn = null, bn = addToSet({}, [
724
+ V,
725
+ H,
726
+ U
727
+ ], stringToString), G = addToSet({}, [
728
+ "mi",
729
+ "mo",
730
+ "mn",
731
+ "ms",
732
+ "mtext"
733
+ ]), K = addToSet({}, ["annotation-xml"]), xn = addToSet({}, [
734
+ "title",
735
+ "style",
736
+ "font",
737
+ "a",
738
+ "script"
739
+ ]), q = null, Sn = ["application/xhtml+xml", "text/html"], J = null, Y = null, Cn = n.createElement("form"), wn = function(e) {
740
+ return e instanceof RegExp || e instanceof Function;
741
+ }, Tn = function() {
742
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
743
+ if (!(Y && Y === e)) {
744
+ if ((!e || typeof e != "object") && (e = {}), e = clone(e), q = Sn.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = q === "application/xhtml+xml" ? stringToString : stringToLowerCase, S = objectHasOwnProperty(e, "ALLOWED_TAGS") ? addToSet({}, e.ALLOWED_TAGS, J) : on, C = objectHasOwnProperty(e, "ALLOWED_ATTR") ? addToSet({}, e.ALLOWED_ATTR, J) : sn, yn = objectHasOwnProperty(e, "ALLOWED_NAMESPACES") ? addToSet({}, e.ALLOWED_NAMESPACES, stringToString) : bn, gn = objectHasOwnProperty(e, "ADD_URI_SAFE_ATTR") ? addToSet(clone(_n), e.ADD_URI_SAFE_ATTR, J) : _n, mn = objectHasOwnProperty(e, "ADD_DATA_URI_TAGS") ? addToSet(clone(hn), e.ADD_DATA_URI_TAGS, J) : hn, B = objectHasOwnProperty(e, "FORBID_CONTENTS") ? addToSet({}, e.FORBID_CONTENTS, J) : pn, T = objectHasOwnProperty(e, "FORBID_TAGS") ? addToSet({}, e.FORBID_TAGS, J) : clone({}), E = objectHasOwnProperty(e, "FORBID_ATTR") ? addToSet({}, e.FORBID_ATTR, J) : clone({}), z = objectHasOwnProperty(e, "USE_PROFILES") ? e.USE_PROFILES : !1, cn = e.ALLOW_ARIA_ATTR !== !1, O = e.ALLOW_DATA_ATTR !== !1, ln = e.ALLOW_UNKNOWN_PROTOCOLS || !1, un = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, k = e.SAFE_FOR_TEMPLATES || !1, A = e.SAFE_FOR_XML !== !1, j = e.WHOLE_DOCUMENT || !1, P = e.RETURN_DOM || !1, F = e.RETURN_DOM_FRAGMENT || !1, I = e.RETURN_TRUSTED_TYPE || !1, N = e.FORCE_BODY || !1, dn = e.SANITIZE_DOM !== !1, fn = e.SANITIZE_NAMED_PROPS || !1, L = e.KEEP_CONTENT !== !1, R = e.IN_PLACE || !1, an = e.ALLOWED_URI_REGEXP || IS_ALLOWED_URI, W = e.NAMESPACE || U, G = e.MATHML_TEXT_INTEGRATION_POINTS || G, K = e.HTML_INTEGRATION_POINTS || K, w = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && wn(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (w.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && wn(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (w.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (w.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), k && (O = !1), F && (P = !0), z && (S = addToSet({}, text), C = [], z.html === !0 && (addToSet(S, html$1), addToSet(C, html)), z.svg === !0 && (addToSet(S, svg$1), addToSet(C, svg), addToSet(C, xml)), z.svgFilters === !0 && (addToSet(S, svgFilters), addToSet(C, svg), addToSet(C, xml)), z.mathMl === !0 && (addToSet(S, mathMl$1), addToSet(C, mathMl), addToSet(C, xml))), e.ADD_TAGS && (typeof e.ADD_TAGS == "function" ? D.tagCheck = e.ADD_TAGS : (S === on && (S = clone(S)), addToSet(S, e.ADD_TAGS, J))), e.ADD_ATTR && (typeof e.ADD_ATTR == "function" ? D.attributeCheck = e.ADD_ATTR : (C === sn && (C = clone(C)), addToSet(C, e.ADD_ATTR, J))), e.ADD_URI_SAFE_ATTR && addToSet(gn, e.ADD_URI_SAFE_ATTR, J), e.FORBID_CONTENTS && (B === pn && (B = clone(B)), addToSet(B, e.FORBID_CONTENTS, J)), L && (S["#text"] = !0), j && addToSet(S, [
745
+ "html",
746
+ "head",
747
+ "body"
748
+ ]), S.table && (addToSet(S, ["tbody"]), delete T.tbody), e.TRUSTED_TYPES_POLICY) {
749
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw typeErrorCreate("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
750
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw typeErrorCreate("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
751
+ _ = e.TRUSTED_TYPES_POLICY, v = _.createHTML("");
752
+ } else _ === void 0 && (_ = _createTrustedTypesPolicy(p, i)), _ !== null && typeof v == "string" && (v = _.createHTML(""));
753
+ freeze && freeze(e), Y = e;
754
+ }
755
+ }, En = addToSet({}, [
756
+ ...svg$1,
757
+ ...svgFilters,
758
+ ...svgDisallowed
759
+ ]), Dn = addToSet({}, [...mathMl$1, ...mathMlDisallowed]), On = function(e) {
760
+ let t = g(e);
761
+ (!t || !t.tagName) && (t = {
762
+ namespaceURI: W,
763
+ tagName: "template"
764
+ });
765
+ let n = stringToLowerCase(e.tagName), r = stringToLowerCase(t.tagName);
766
+ return yn[e.namespaceURI] ? e.namespaceURI === H ? t.namespaceURI === U ? n === "svg" : t.namespaceURI === V ? n === "svg" && (r === "annotation-xml" || G[r]) : !!En[n] : e.namespaceURI === V ? t.namespaceURI === U ? n === "math" : t.namespaceURI === H ? n === "math" && K[r] : !!Dn[n] : e.namespaceURI === U ? t.namespaceURI === H && !K[r] || t.namespaceURI === V && !G[r] ? !1 : !Dn[n] && (xn[n] || !En[n]) : !!(q === "application/xhtml+xml" && yn[e.namespaceURI]) : !1;
767
+ }, X = function(e) {
768
+ arrayPush(t.removed, { element: e });
769
+ try {
770
+ g(e).removeChild(e);
771
+ } catch {
772
+ Wt(e);
773
+ }
774
+ }, Z = function(e, n) {
775
+ try {
776
+ arrayPush(t.removed, {
777
+ attribute: n.getAttributeNode(e),
778
+ from: n
779
+ });
780
+ } catch {
781
+ arrayPush(t.removed, {
782
+ attribute: null,
783
+ from: n
784
+ });
785
+ }
786
+ if (n.removeAttribute(e), e === "is") if (P || F) try {
787
+ X(n);
788
+ } catch {}
789
+ else try {
790
+ n.setAttribute(e, "");
791
+ } catch {}
792
+ }, kn = function(e) {
793
+ let t = null, r = null;
794
+ if (N) e = "<remove></remove>" + e;
795
+ else {
796
+ let t = stringMatch(e, /^[\r\n\t ]+/);
797
+ r = t && t[0];
798
+ }
799
+ q === "application/xhtml+xml" && W === U && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
800
+ let i = _ ? _.createHTML(e) : e;
801
+ if (W === U) try {
802
+ t = new f().parseFromString(i, q);
803
+ } catch {}
804
+ if (!t || !t.documentElement) {
805
+ t = y.createDocument(W, "template", null);
806
+ try {
807
+ t.documentElement.innerHTML = vn ? v : i;
808
+ } catch {}
809
+ }
810
+ let a = t.body || t.documentElement;
811
+ return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), W === U ? Yt.call(t, j ? "html" : "body")[0] : j ? t.documentElement : a;
812
+ }, An = function(e) {
813
+ return qt.call(e.ownerDocument || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
814
+ }, Q = function(e) {
815
+ return e instanceof d && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof u) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
816
+ }, jn = function(e) {
817
+ return typeof s == "function" && e instanceof s;
818
+ };
819
+ function $(e, n, r) {
820
+ arrayForEach(e, (e) => {
821
+ e.call(t, n, r, Y);
822
+ });
823
+ }
824
+ let Mn = function(e) {
825
+ let n = null;
826
+ if ($(b.beforeSanitizeElements, e, null), Q(e)) return X(e), !0;
827
+ let r = J(e.nodeName);
828
+ if ($(b.uponSanitizeElement, e, {
829
+ tagName: r,
830
+ allowedTags: S
831
+ }), A && e.hasChildNodes() && !jn(e.firstElementChild) && regExpTest(/<[/\w!]/g, e.innerHTML) && regExpTest(/<[/\w!]/g, e.textContent) || e.nodeType === NODE_TYPE.progressingInstruction || A && e.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, e.data)) return X(e), !0;
832
+ if (!(D.tagCheck instanceof Function && D.tagCheck(r)) && (!S[r] || T[r])) {
833
+ if (!T[r] && Pn(r) && (w.tagNameCheck instanceof RegExp && regExpTest(w.tagNameCheck, r) || w.tagNameCheck instanceof Function && w.tagNameCheck(r))) return !1;
834
+ if (L && !B[r]) {
835
+ let t = g(e) || e.parentNode, n = Kt(e) || e.childNodes;
836
+ if (n && t) {
837
+ let r = n.length;
838
+ for (let i = r - 1; i >= 0; --i) {
839
+ let r = h(n[i], !0);
840
+ r.__removalCount = (e.__removalCount || 0) + 1, t.insertBefore(r, Gt(e));
841
+ }
842
+ }
843
+ }
844
+ return X(e), !0;
845
+ }
846
+ return e instanceof c && !On(e) || (r === "noscript" || r === "noembed" || r === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, e.innerHTML) ? (X(e), !0) : (k && e.nodeType === NODE_TYPE.text && (n = e.textContent, arrayForEach([
847
+ x,
848
+ Zt,
849
+ Qt
850
+ ], (e) => {
851
+ n = stringReplace(n, e, " ");
852
+ }), e.textContent !== n && (arrayPush(t.removed, { element: e.cloneNode() }), e.textContent = n)), $(b.afterSanitizeElements, e, null), !1);
853
+ }, Nn = function(e, t, r) {
854
+ if (dn && (t === "id" || t === "name") && (r in n || r in Cn)) return !1;
855
+ if (!(O && !E[t] && regExpTest($t, t)) && !(cn && regExpTest(en, t)) && !(D.attributeCheck instanceof Function && D.attributeCheck(t, e))) {
856
+ if (!C[t] || E[t]) {
857
+ if (!(Pn(e) && (w.tagNameCheck instanceof RegExp && regExpTest(w.tagNameCheck, e) || w.tagNameCheck instanceof Function && w.tagNameCheck(e)) && (w.attributeNameCheck instanceof RegExp && regExpTest(w.attributeNameCheck, t) || w.attributeNameCheck instanceof Function && w.attributeNameCheck(t, e)) || t === "is" && w.allowCustomizedBuiltInElements && (w.tagNameCheck instanceof RegExp && regExpTest(w.tagNameCheck, r) || w.tagNameCheck instanceof Function && w.tagNameCheck(r)))) return !1;
858
+ } else if (!gn[t] && !regExpTest(an, stringReplace(r, nn, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && stringIndexOf(r, "data:") === 0 && mn[e]) && !(ln && !regExpTest(tn, stringReplace(r, nn, ""))) && r) return !1;
859
+ }
860
+ return !0;
861
+ }, Pn = function(e) {
862
+ return e !== "annotation-xml" && stringMatch(e, rn);
863
+ }, Fn = function(e) {
864
+ $(b.beforeSanitizeAttributes, e, null);
865
+ let { attributes: n } = e;
866
+ if (!n || Q(e)) return;
867
+ let r = {
868
+ attrName: "",
869
+ attrValue: "",
870
+ keepAttr: !0,
871
+ allowedAttributes: C,
872
+ forceKeepAttr: void 0
873
+ }, i = n.length;
874
+ for (; i--;) {
875
+ let { name: a, namespaceURI: o, value: s } = n[i], c = J(a), l = s, u = a === "value" ? l : stringTrim(l);
876
+ if (r.attrName = c, r.attrValue = u, r.keepAttr = !0, r.forceKeepAttr = void 0, $(b.uponSanitizeAttribute, e, r), u = r.attrValue, fn && (c === "id" || c === "name") && (Z(a, e), u = "user-content-" + u), A && regExpTest(/((--!?|])>)|<\/(style|title|textarea)/i, u)) {
877
+ Z(a, e);
878
+ continue;
879
+ }
880
+ if (c === "attributename" && stringMatch(u, "href")) {
881
+ Z(a, e);
882
+ continue;
883
+ }
884
+ if (r.forceKeepAttr) continue;
885
+ if (!r.keepAttr) {
886
+ Z(a, e);
887
+ continue;
888
+ }
889
+ if (!un && regExpTest(/\/>/i, u)) {
890
+ Z(a, e);
891
+ continue;
892
+ }
893
+ k && arrayForEach([
894
+ x,
895
+ Zt,
896
+ Qt
897
+ ], (e) => {
898
+ u = stringReplace(u, e, " ");
899
+ });
900
+ let d = J(e.nodeName);
901
+ if (!Nn(d, c, u)) {
902
+ Z(a, e);
903
+ continue;
904
+ }
905
+ if (_ && typeof p == "object" && typeof p.getAttributeType == "function" && !o) switch (p.getAttributeType(d, c)) {
906
+ case "TrustedHTML":
907
+ u = _.createHTML(u);
908
+ break;
909
+ case "TrustedScriptURL":
910
+ u = _.createScriptURL(u);
911
+ break;
912
+ }
913
+ if (u !== l) try {
914
+ o ? e.setAttributeNS(o, a, u) : e.setAttribute(a, u), Q(e) ? X(e) : arrayPop(t.removed);
915
+ } catch {
916
+ Z(a, e);
917
+ }
918
+ }
919
+ $(b.afterSanitizeAttributes, e, null);
920
+ }, In = function e(t) {
921
+ let n = null, r = An(t);
922
+ for ($(b.beforeSanitizeShadowDOM, t, null); n = r.nextNode();) $(b.uponSanitizeShadowNode, n, null), Mn(n), Fn(n), n.content instanceof a && e(n.content);
923
+ $(b.afterSanitizeShadowDOM, t, null);
924
+ };
925
+ return t.sanitize = function(e) {
926
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, o = null, c = null, l = null;
927
+ if (vn = !e, vn && (e = "<!-->"), typeof e != "string" && !jn(e)) if (typeof e.toString == "function") {
928
+ if (e = e.toString(), typeof e != "string") throw typeErrorCreate("dirty is not a string, aborting");
929
+ } else throw typeErrorCreate("toString is not a function");
930
+ if (!t.isSupported) return e;
931
+ if (M || Tn(n), t.removed = [], typeof e == "string" && (R = !1), R) {
932
+ if (e.nodeName) {
933
+ let t = J(e.nodeName);
934
+ if (!S[t] || T[t]) throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
935
+ }
936
+ } else if (e instanceof s) i = kn("<!---->"), o = i.ownerDocument.importNode(e, !0), o.nodeType === NODE_TYPE.element && o.nodeName === "BODY" || o.nodeName === "HTML" ? i = o : i.appendChild(o);
937
+ else {
938
+ if (!P && !k && !j && e.indexOf("<") === -1) return _ && I ? _.createHTML(e) : e;
939
+ if (i = kn(e), !i) return P ? null : I ? v : "";
940
+ }
941
+ i && N && X(i.firstChild);
942
+ let u = An(R ? e : i);
943
+ for (; c = u.nextNode();) Mn(c), Fn(c), c.content instanceof a && In(c.content);
944
+ if (R) return e;
945
+ if (P) {
946
+ if (F) for (l = Jt.call(i.ownerDocument); i.firstChild;) l.appendChild(i.firstChild);
947
+ else l = i;
948
+ return (C.shadowroot || C.shadowrootmode) && (l = Xt.call(r, l, !0)), l;
949
+ }
950
+ let d = j ? i.outerHTML : i.innerHTML;
951
+ return j && S["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, i.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + d), k && arrayForEach([
952
+ x,
953
+ Zt,
954
+ Qt
955
+ ], (e) => {
956
+ d = stringReplace(d, e, " ");
957
+ }), _ && I ? _.createHTML(d) : d;
958
+ }, t.setConfig = function() {
959
+ Tn(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), M = !0;
960
+ }, t.clearConfig = function() {
961
+ Y = null, M = !1;
962
+ }, t.isValidAttribute = function(e, t, n) {
963
+ return Y || Tn({}), Nn(J(e), J(t), n);
964
+ }, t.addHook = function(e, t) {
965
+ typeof t == "function" && arrayPush(b[e], t);
966
+ }, t.removeHook = function(e, t) {
967
+ if (t !== void 0) {
968
+ let n = arrayLastIndexOf(b[e], t);
969
+ return n === -1 ? void 0 : arraySplice(b[e], n, 1)[0];
970
+ }
971
+ return arrayPop(b[e]);
972
+ }, t.removeHooks = function(e) {
973
+ b[e] = [];
974
+ }, t.removeAllHooks = function() {
975
+ b = _createHooksMap();
976
+ }, t;
977
+ }
978
+ var purify = createDOMPurify(), frontMatterRegex = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, directiveRegex = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, anyCommentRegex = /\s*%%.*\n/gm, UnknownDiagramError = class extends Error {
979
+ static #_ = __name(this, "UnknownDiagramError");
980
+ constructor(e) {
981
+ super(e), this.name = "UnknownDiagramError";
982
+ }
983
+ }, detectors = {}, detectType = /* @__PURE__ */ __name(function(e, t) {
984
+ e = e.replace(frontMatterRegex, "").replace(directiveRegex, "").replace(anyCommentRegex, "\n");
985
+ for (let [n, { detector: r }] of Object.entries(detectors)) if (r(e, t)) return n;
986
+ throw new UnknownDiagramError(`No diagram type detected matching given configuration for text: ${e}`);
987
+ }, "detectType"), registerLazyLoadedDiagrams = /* @__PURE__ */ __name((...e) => {
988
+ for (let { id: t, detector: n, loader: r } of e) addDetector(t, n, r);
989
+ }, "registerLazyLoadedDiagrams"), addDetector = /* @__PURE__ */ __name((e, n, r) => {
990
+ detectors[e] && log.warn(`Detector with key ${e} already exists. Overwriting.`), detectors[e] = {
991
+ detector: n,
992
+ loader: r
993
+ }, log.debug(`Detector with key ${e} added${r ? " with loader" : ""}`);
994
+ }, "addDetector"), getDiagramLoader = /* @__PURE__ */ __name((e) => detectors[e].loader, "getDiagramLoader"), assignWithDepth = /* @__PURE__ */ __name((e, t, { depth: n = 2, clobber: r = !1 } = {}) => {
995
+ let i = {
996
+ depth: n,
997
+ clobber: r
998
+ };
999
+ return Array.isArray(t) && !Array.isArray(e) ? (t.forEach((t) => assignWithDepth(e, t, i)), e) : Array.isArray(t) && Array.isArray(e) ? (t.forEach((t) => {
1000
+ e.includes(t) || e.push(t);
1001
+ }), e) : e === void 0 || n <= 0 ? typeof e == "object" && e && typeof t == "object" ? Object.assign(e, t) : t : (t !== void 0 && typeof e == "object" && typeof t == "object" && Object.keys(t).forEach((i) => {
1002
+ typeof t[i] == "object" && (e[i] === void 0 || typeof e[i] == "object") ? (e[i] === void 0 && (e[i] = Array.isArray(t[i]) ? [] : {}), e[i] = assignWithDepth(e[i], t[i], {
1003
+ depth: n - 1,
1004
+ clobber: r
1005
+ })) : (r || typeof e[i] != "object" && typeof t[i] != "object") && (e[i] = t[i]);
1006
+ }), e);
1007
+ }, "assignWithDepth"), assignWithDepth_default = assignWithDepth, oldAttributeBackgroundColorOdd = "#ffffff", oldAttributeBackgroundColorEven = "#f2f2f2", mkBorder = /* @__PURE__ */ __name((e, t) => t ? adjust_default(e, {
1008
+ s: -40,
1009
+ l: 10
1010
+ }) : adjust_default(e, {
1011
+ s: -40,
1012
+ l: -10
1013
+ }), "mkBorder"), Theme = class {
1014
+ static #_ = __name(this, "Theme");
1015
+ constructor() {
1016
+ this.background = "#f4f4f4", this.primaryColor = "#fff4dd", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px";
1017
+ }
1018
+ updateColors() {
1019
+ if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || adjust_default(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || adjust_default(this.primaryColor, {
1020
+ h: 180,
1021
+ l: 5
1022
+ }), this.primaryBorderColor = this.primaryBorderColor || mkBorder(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || mkBorder(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || mkBorder(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || invert_default(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || invert_default(this.tertiaryColor), this.lineColor = this.lineColor || invert_default(this.background), this.arrowheadColor = this.arrowheadColor || invert_default(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? darken_default(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || darken_default(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || invert_default(this.lineColor), this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || lighten_default(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.vertLineColor = this.vertLineColor || "navy", this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.darkMode ? (this.rowOdd = this.rowOdd || darken_default(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || darken_default(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || lighten_default(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || lighten_default(this.mainBkg, 5)), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || this.tertiaryColor, this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || adjust_default(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || adjust_default(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || adjust_default(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || adjust_default(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || adjust_default(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || adjust_default(this.primaryColor, {
1023
+ h: 210,
1024
+ l: 150
1025
+ }), this.cScale9 = this.cScale9 || adjust_default(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || adjust_default(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = darken_default(this["cScale" + e], 75);
1026
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = darken_default(this["cScale" + e], 25);
1027
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || invert_default(this["cScale" + e]);
1028
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || lighten_default(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || darken_default(this["cScale" + e], 10);
1029
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1030
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1031
+ let e = this.darkMode ? -4 : -1;
1032
+ for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || adjust_default(this.mainBkg, {
1033
+ h: 180,
1034
+ s: -15,
1035
+ l: e * (5 + t * 3)
1036
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || adjust_default(this.mainBkg, {
1037
+ h: 180,
1038
+ s: -15,
1039
+ l: e * (8 + t * 3)
1040
+ });
1041
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || adjust_default(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || adjust_default(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || adjust_default(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || adjust_default(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || adjust_default(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || adjust_default(this.primaryColor, {
1042
+ h: 60,
1043
+ l: -10
1044
+ }), this.pie8 = this.pie8 || adjust_default(this.primaryColor, {
1045
+ h: -60,
1046
+ l: -10
1047
+ }), this.pie9 = this.pie9 || adjust_default(this.primaryColor, {
1048
+ h: 120,
1049
+ l: 0
1050
+ }), this.pie10 = this.pie10 || adjust_default(this.primaryColor, {
1051
+ h: 60,
1052
+ l: -20
1053
+ }), this.pie11 = this.pie11 || adjust_default(this.primaryColor, {
1054
+ h: -60,
1055
+ l: -20
1056
+ }), this.pie12 = this.pie12 || adjust_default(this.primaryColor, {
1057
+ h: 120,
1058
+ l: -10
1059
+ }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.radar = {
1060
+ axisColor: this.radar?.axisColor || this.lineColor,
1061
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1062
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1063
+ curveOpacity: this.radar?.curveOpacity || .5,
1064
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1065
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1066
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1067
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1068
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1069
+ legendFontSize: this.radar?.legendFontSize || 12
1070
+ }, this.archEdgeColor = this.archEdgeColor || "#777", this.archEdgeArrowColor = this.archEdgeArrowColor || "#777", this.archEdgeWidth = this.archEdgeWidth || "3", this.archGroupBorderColor = this.archGroupBorderColor || "#000", this.archGroupBorderWidth = this.archGroupBorderWidth || "2px", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
1071
+ r: 5,
1072
+ g: 5,
1073
+ b: 5
1074
+ }), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
1075
+ r: 10,
1076
+ g: 10,
1077
+ b: 10
1078
+ }), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
1079
+ r: 15,
1080
+ g: 15,
1081
+ b: 15
1082
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
1083
+ r: -5,
1084
+ g: -5,
1085
+ b: -5
1086
+ }), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
1087
+ r: -10,
1088
+ g: -10,
1089
+ b: -10
1090
+ }), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
1091
+ r: -15,
1092
+ g: -15,
1093
+ b: -15
1094
+ }), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
1095
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1096
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1097
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1098
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1099
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1100
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1101
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1102
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1103
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1104
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1105
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1106
+ }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? darken_default(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || adjust_default(this.primaryColor, { h: -30 }), this.git4 = this.git4 || adjust_default(this.primaryColor, { h: -60 }), this.git5 = this.git5 || adjust_default(this.primaryColor, { h: -90 }), this.git6 = this.git6 || adjust_default(this.primaryColor, { h: 60 }), this.git7 = this.git7 || adjust_default(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = lighten_default(this.git0, 25), this.git1 = lighten_default(this.git1, 25), this.git2 = lighten_default(this.git2, 25), this.git3 = lighten_default(this.git3, 25), this.git4 = lighten_default(this.git4, 25), this.git5 = lighten_default(this.git5, 25), this.git6 = lighten_default(this.git6, 25), this.git7 = lighten_default(this.git7, 25)) : (this.git0 = darken_default(this.git0, 25), this.git1 = darken_default(this.git1, 25), this.git2 = darken_default(this.git2, 25), this.git3 = darken_default(this.git3, 25), this.git4 = darken_default(this.git4, 25), this.git5 = darken_default(this.git5, 25), this.git6 = darken_default(this.git6, 25), this.git7 = darken_default(this.git7, 25)), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
1107
+ }
1108
+ calculate(e) {
1109
+ if (typeof e != "object") {
1110
+ this.updateColors();
1111
+ return;
1112
+ }
1113
+ let t = Object.keys(e);
1114
+ t.forEach((t) => {
1115
+ this[t] = e[t];
1116
+ }), this.updateColors(), t.forEach((t) => {
1117
+ this[t] = e[t];
1118
+ });
1119
+ }
1120
+ }, getThemeVariables = /* @__PURE__ */ __name((e) => {
1121
+ let t = new Theme();
1122
+ return t.calculate(e), t;
1123
+ }, "getThemeVariables"), Theme2 = class {
1124
+ static #_ = __name(this, "Theme");
1125
+ constructor() {
1126
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = lighten_default(this.primaryColor, 16), this.tertiaryColor = adjust_default(this.primaryColor, { h: -160 }), this.primaryBorderColor = invert_default(this.background), this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode), this.primaryTextColor = invert_default(this.primaryColor), this.secondaryTextColor = invert_default(this.secondaryColor), this.tertiaryTextColor = invert_default(this.tertiaryColor), this.lineColor = invert_default(this.background), this.textColor = invert_default(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = lighten_default(invert_default("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = rgba_default(255, 255, 255, .25), this.arrowheadColor = "calculated", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.labelBackground = "#181818", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#F9FFFE", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "calculated", this.activationBkgColor = "calculated", this.sequenceNumberColor = "black", this.sectionBkgColor = darken_default("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = darken_default(this.sectionBkgColor, 10), this.taskBorderColor = rgba_default(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = rgba_default(255, 255, 255, 50), this.activeTaskBkgColor = "#81B1DB", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "grey", this.critBorderColor = "#E83737", this.critBkgColor = "#E83737", this.taskTextDarkColor = "calculated", this.todayLineColor = "#DB5757", this.vertLineColor = "#00BFFF", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.rowOdd = this.rowOdd || lighten_default(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || darken_default(this.mainBkg, 10), this.labelColor = "calculated", this.errorBkgColor = "#a44141", this.errorTextColor = "#ddd";
1127
+ }
1128
+ updateColors() {
1129
+ this.secondBkg = lighten_default(this.mainBkg, 16), this.lineColor = this.mainContrastColor, this.arrowheadColor = this.mainContrastColor, this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.edgeLabelBackground = lighten_default(this.labelBackground, 25), this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.actorTextColor = this.mainContrastColor, this.actorLineColor = this.actorBorder, this.signalColor = this.mainContrastColor, this.signalTextColor = this.mainContrastColor, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.mainContrastColor, this.loopTextColor = this.mainContrastColor, this.noteBorderColor = this.secondaryBorderColor, this.noteBkgColor = this.secondBkg, this.noteTextColor = this.secondaryTextColor, this.activationBorderColor = this.border1, this.activationBkgColor = this.secondBkg, this.altSectionBkgColor = this.background, this.taskBkgColor = lighten_default(this.mainBkg, 23), this.taskTextColor = this.darkTextColor, this.taskTextLightColor = this.mainContrastColor, this.taskTextOutsideColor = this.taskTextLightColor, this.gridColor = this.mainContrastColor, this.doneTaskBkgColor = this.mainContrastColor, this.taskTextDarkColor = this.darkTextColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#555", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = "#f4f4f4", this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = adjust_default(this.primaryColor, { h: 64 }), this.fillType3 = adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = adjust_default(this.secondaryColor, { h: 128 }), this.cScale1 = this.cScale1 || "#0b0000", this.cScale2 = this.cScale2 || "#4d1037", this.cScale3 = this.cScale3 || "#3f5258", this.cScale4 = this.cScale4 || "#4f2f1b", this.cScale5 = this.cScale5 || "#6e0a0a", this.cScale6 = this.cScale6 || "#3b0048", this.cScale7 = this.cScale7 || "#995a01", this.cScale8 = this.cScale8 || "#154706", this.cScale9 = this.cScale9 || "#161722", this.cScale10 = this.cScale10 || "#00296f", this.cScale11 = this.cScale11 || "#01629c", this.cScale12 = this.cScale12 || "#010029", this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || adjust_default(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || adjust_default(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || adjust_default(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || adjust_default(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || adjust_default(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || adjust_default(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || adjust_default(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || adjust_default(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, { h: 330 });
1130
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || invert_default(this["cScale" + e]);
1131
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || lighten_default(this["cScale" + e], 10);
1132
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || adjust_default(this.mainBkg, {
1133
+ h: 30,
1134
+ s: -30,
1135
+ l: -(-10 + e * 4)
1136
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || adjust_default(this.mainBkg, {
1137
+ h: 30,
1138
+ s: -30,
1139
+ l: -(-7 + e * 4)
1140
+ });
1141
+ this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor);
1142
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1143
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1144
+ this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
1145
+ r: 5,
1146
+ g: 5,
1147
+ b: 5
1148
+ }), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
1149
+ r: 10,
1150
+ g: 10,
1151
+ b: 10
1152
+ }), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
1153
+ r: 15,
1154
+ g: 15,
1155
+ b: 15
1156
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
1157
+ r: -5,
1158
+ g: -5,
1159
+ b: -5
1160
+ }), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
1161
+ r: -10,
1162
+ g: -10,
1163
+ b: -10
1164
+ }), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
1165
+ r: -15,
1166
+ g: -15,
1167
+ b: -15
1168
+ }), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
1169
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1170
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1171
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1172
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1173
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1174
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1175
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1176
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1177
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1178
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1179
+ plotColorPalette: this.xyChart?.plotColorPalette || "#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"
1180
+ }, this.packet = {
1181
+ startByteColor: this.primaryTextColor,
1182
+ endByteColor: this.primaryTextColor,
1183
+ labelColor: this.primaryTextColor,
1184
+ titleColor: this.primaryTextColor,
1185
+ blockStrokeColor: this.primaryTextColor,
1186
+ blockFillColor: this.background
1187
+ }, this.radar = {
1188
+ axisColor: this.radar?.axisColor || this.lineColor,
1189
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1190
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1191
+ curveOpacity: this.radar?.curveOpacity || .5,
1192
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1193
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1194
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1195
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1196
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1197
+ legendFontSize: this.radar?.legendFontSize || 12
1198
+ }, this.classText = this.primaryTextColor, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? darken_default(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = lighten_default(this.secondaryColor, 20), this.git1 = lighten_default(this.pie2 || this.secondaryColor, 20), this.git2 = lighten_default(this.pie3 || this.tertiaryColor, 20), this.git3 = lighten_default(this.pie4 || adjust_default(this.primaryColor, { h: -30 }), 20), this.git4 = lighten_default(this.pie5 || adjust_default(this.primaryColor, { h: -60 }), 20), this.git5 = lighten_default(this.pie6 || adjust_default(this.primaryColor, { h: -90 }), 10), this.git6 = lighten_default(this.pie7 || adjust_default(this.primaryColor, { h: 60 }), 10), this.git7 = lighten_default(this.pie8 || adjust_default(this.primaryColor, { h: 120 }), 20), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || invert_default(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || invert_default(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || lighten_default(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || lighten_default(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
1199
+ }
1200
+ calculate(e) {
1201
+ if (typeof e != "object") {
1202
+ this.updateColors();
1203
+ return;
1204
+ }
1205
+ let t = Object.keys(e);
1206
+ t.forEach((t) => {
1207
+ this[t] = e[t];
1208
+ }), this.updateColors(), t.forEach((t) => {
1209
+ this[t] = e[t];
1210
+ });
1211
+ }
1212
+ }, getThemeVariables2 = /* @__PURE__ */ __name((e) => {
1213
+ let t = new Theme2();
1214
+ return t.calculate(e), t;
1215
+ }, "getThemeVariables"), Theme3 = class {
1216
+ static #_ = __name(this, "Theme");
1217
+ constructor() {
1218
+ this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = adjust_default(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = adjust_default(this.primaryColor, { h: -160 }), this.primaryBorderColor = mkBorder(this.primaryColor, this.darkMode), this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode), this.primaryTextColor = invert_default(this.primaryColor), this.secondaryTextColor = invert_default(this.secondaryColor), this.tertiaryTextColor = invert_default(this.tertiaryColor), this.lineColor = invert_default(this.background), this.textColor = invert_default(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.border2 = "#aaaa33", this.arrowheadColor = "#333333", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.labelBackground = "rgba(232,232,232, 0.8)", this.textColor = "#333", this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = this.taskTextDarkColor, this.taskTextClickableColor = "calculated", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBorderColor = "calculated", this.critBkgColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.sectionBkgColor = rgba_default(102, 102, 255, .49), this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#fff400", this.taskBorderColor = "#534fbc", this.taskBkgColor = "#8a90dd", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "#534fbc", this.activeTaskBkgColor = "#bfc7ff", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.vertLineColor = "navy", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.rowOdd = "calculated", this.rowEven = "calculated", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.updateColors();
1219
+ }
1220
+ updateColors() {
1221
+ this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || adjust_default(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || adjust_default(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || adjust_default(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || adjust_default(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || adjust_default(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || adjust_default(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || adjust_default(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || adjust_default(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || darken_default(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || darken_default(this.tertiaryColor, 40);
1222
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = darken_default(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || darken_default(this["cScale" + e], 25);
1223
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || adjust_default(this["cScale" + e], { h: 180 });
1224
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || adjust_default(this.mainBkg, {
1225
+ h: 30,
1226
+ l: -(5 + e * 5)
1227
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || adjust_default(this.mainBkg, {
1228
+ h: 30,
1229
+ l: -(7 + e * 5)
1230
+ });
1231
+ if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
1232
+ this.cScaleLabel0 = this.cScaleLabel0 || invert_default(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || invert_default(this.labelTextColor);
1233
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.labelTextColor;
1234
+ }
1235
+ this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.textColor, this.edgeLabelBackground = this.labelBackground, this.actorBorder = lighten_default(this.border1, 23), this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.signalColor = this.textColor, this.signalTextColor = this.textColor, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || lighten_default(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || lighten_default(this.primaryColor, 1), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.specialStateColor = this.lineColor, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = adjust_default(this.primaryColor, { h: 64 }), this.fillType3 = adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = adjust_default(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || adjust_default(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || adjust_default(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || adjust_default(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || adjust_default(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || adjust_default(this.primaryColor, {
1236
+ h: 60,
1237
+ l: -20
1238
+ }), this.pie8 = this.pie8 || adjust_default(this.primaryColor, {
1239
+ h: -60,
1240
+ l: -40
1241
+ }), this.pie9 = this.pie9 || adjust_default(this.primaryColor, {
1242
+ h: 120,
1243
+ l: -40
1244
+ }), this.pie10 = this.pie10 || adjust_default(this.primaryColor, {
1245
+ h: 60,
1246
+ l: -40
1247
+ }), this.pie11 = this.pie11 || adjust_default(this.primaryColor, {
1248
+ h: -90,
1249
+ l: -40
1250
+ }), this.pie12 = this.pie12 || adjust_default(this.primaryColor, {
1251
+ h: 120,
1252
+ l: -30
1253
+ }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
1254
+ r: 5,
1255
+ g: 5,
1256
+ b: 5
1257
+ }), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
1258
+ r: 10,
1259
+ g: 10,
1260
+ b: 10
1261
+ }), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
1262
+ r: 15,
1263
+ g: 15,
1264
+ b: 15
1265
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
1266
+ r: -5,
1267
+ g: -5,
1268
+ b: -5
1269
+ }), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
1270
+ r: -10,
1271
+ g: -10,
1272
+ b: -10
1273
+ }), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
1274
+ r: -15,
1275
+ g: -15,
1276
+ b: -15
1277
+ }), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.radar = {
1278
+ axisColor: this.radar?.axisColor || this.lineColor,
1279
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1280
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1281
+ curveOpacity: this.radar?.curveOpacity || .5,
1282
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1283
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1284
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1285
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1286
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1287
+ legendFontSize: this.radar?.legendFontSize || 12
1288
+ }, this.xyChart = {
1289
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1290
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1291
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1292
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1293
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1294
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1295
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1296
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1297
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1298
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1299
+ plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
1300
+ }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.labelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || adjust_default(this.primaryColor, { h: -30 }), this.git4 = this.git4 || adjust_default(this.primaryColor, { h: -60 }), this.git5 = this.git5 || adjust_default(this.primaryColor, { h: -90 }), this.git6 = this.git6 || adjust_default(this.primaryColor, { h: 60 }), this.git7 = this.git7 || adjust_default(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = lighten_default(this.git0, 25), this.git1 = lighten_default(this.git1, 25), this.git2 = lighten_default(this.git2, 25), this.git3 = lighten_default(this.git3, 25), this.git4 = lighten_default(this.git4, 25), this.git5 = lighten_default(this.git5, 25), this.git6 = lighten_default(this.git6, 25), this.git7 = lighten_default(this.git7, 25)) : (this.git0 = darken_default(this.git0, 25), this.git1 = darken_default(this.git1, 25), this.git2 = darken_default(this.git2, 25), this.git3 = darken_default(this.git3, 25), this.git4 = darken_default(this.git4, 25), this.git5 = darken_default(this.git5, 25), this.git6 = darken_default(this.git6, 25), this.git7 = darken_default(this.git7, 25)), this.gitInv0 = this.gitInv0 || darken_default(invert_default(this.git0), 25), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || invert_default(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || invert_default(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
1301
+ }
1302
+ calculate(e) {
1303
+ if (Object.keys(this).forEach((e) => {
1304
+ this[e] === "calculated" && (this[e] = void 0);
1305
+ }), typeof e != "object") {
1306
+ this.updateColors();
1307
+ return;
1308
+ }
1309
+ let t = Object.keys(e);
1310
+ t.forEach((t) => {
1311
+ this[t] = e[t];
1312
+ }), this.updateColors(), t.forEach((t) => {
1313
+ this[t] = e[t];
1314
+ });
1315
+ }
1316
+ }, getThemeVariables3 = /* @__PURE__ */ __name((e) => {
1317
+ let t = new Theme3();
1318
+ return t.calculate(e), t;
1319
+ }, "getThemeVariables"), Theme4 = class {
1320
+ static #_ = __name(this, "Theme");
1321
+ constructor() {
1322
+ this.background = "#f4f4f4", this.primaryColor = "#cde498", this.secondaryColor = "#cdffb2", this.background = "white", this.mainBkg = "#cde498", this.secondBkg = "#cdffb2", this.lineColor = "green", this.border1 = "#13540c", this.border2 = "#6eaa49", this.arrowheadColor = "green", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.tertiaryColor = lighten_default("#cde498", 10), this.primaryBorderColor = mkBorder(this.primaryColor, this.darkMode), this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode), this.primaryTextColor = invert_default(this.primaryColor), this.secondaryTextColor = invert_default(this.secondaryColor), this.tertiaryTextColor = invert_default(this.primaryColor), this.lineColor = invert_default(this.background), this.textColor = invert_default(this.background), this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#333", this.edgeLabelBackground = "#e8e8e8", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "#333", this.signalTextColor = "#333", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "#326932", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "#6eaa49", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#6eaa49", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "#487e3a", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.vertLineColor = "#00BFFF", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222";
1323
+ }
1324
+ updateColors() {
1325
+ this.actorBorder = darken_default(this.mainBkg, 20), this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || adjust_default(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || adjust_default(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || adjust_default(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || adjust_default(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || adjust_default(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || adjust_default(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || adjust_default(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || adjust_default(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || darken_default(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || darken_default(this.tertiaryColor, 40);
1326
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = darken_default(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || darken_default(this["cScale" + e], 25);
1327
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || adjust_default(this["cScale" + e], { h: 180 });
1328
+ this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
1329
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1330
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || adjust_default(this.mainBkg, {
1331
+ h: 30,
1332
+ s: -30,
1333
+ l: -(5 + e * 5)
1334
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || adjust_default(this.mainBkg, {
1335
+ h: 30,
1336
+ s: -30,
1337
+ l: -(8 + e * 5)
1338
+ });
1339
+ this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.taskBorderColor = this.border1, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.activeTaskBorderColor = this.taskBorderColor, this.activeTaskBkgColor = this.mainBkg, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || lighten_default(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || lighten_default(this.mainBkg, 20), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = this.lineColor, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = adjust_default(this.primaryColor, { h: 64 }), this.fillType3 = adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = adjust_default(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || adjust_default(this.primaryColor, { l: -30 }), this.pie5 = this.pie5 || adjust_default(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || adjust_default(this.tertiaryColor, {
1340
+ h: 40,
1341
+ l: -40
1342
+ }), this.pie7 = this.pie7 || adjust_default(this.primaryColor, {
1343
+ h: 60,
1344
+ l: -10
1345
+ }), this.pie8 = this.pie8 || adjust_default(this.primaryColor, {
1346
+ h: -60,
1347
+ l: -10
1348
+ }), this.pie9 = this.pie9 || adjust_default(this.primaryColor, {
1349
+ h: 120,
1350
+ l: 0
1351
+ }), this.pie10 = this.pie10 || adjust_default(this.primaryColor, {
1352
+ h: 60,
1353
+ l: -50
1354
+ }), this.pie11 = this.pie11 || adjust_default(this.primaryColor, {
1355
+ h: -60,
1356
+ l: -50
1357
+ }), this.pie12 = this.pie12 || adjust_default(this.primaryColor, {
1358
+ h: 120,
1359
+ l: -50
1360
+ }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
1361
+ r: 5,
1362
+ g: 5,
1363
+ b: 5
1364
+ }), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
1365
+ r: 10,
1366
+ g: 10,
1367
+ b: 10
1368
+ }), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
1369
+ r: 15,
1370
+ g: 15,
1371
+ b: 15
1372
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
1373
+ r: -5,
1374
+ g: -5,
1375
+ b: -5
1376
+ }), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
1377
+ r: -10,
1378
+ g: -10,
1379
+ b: -10
1380
+ }), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
1381
+ r: -15,
1382
+ g: -15,
1383
+ b: -15
1384
+ }), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.packet = {
1385
+ startByteColor: this.primaryTextColor,
1386
+ endByteColor: this.primaryTextColor,
1387
+ labelColor: this.primaryTextColor,
1388
+ titleColor: this.primaryTextColor,
1389
+ blockStrokeColor: this.primaryTextColor,
1390
+ blockFillColor: this.mainBkg
1391
+ }, this.radar = {
1392
+ axisColor: this.radar?.axisColor || this.lineColor,
1393
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1394
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1395
+ curveOpacity: this.radar?.curveOpacity || .5,
1396
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1397
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1398
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1399
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1400
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1401
+ legendFontSize: this.radar?.legendFontSize || 12
1402
+ }, this.xyChart = {
1403
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1404
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1405
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1406
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1407
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1408
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1409
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1410
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1411
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1412
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1413
+ plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
1414
+ }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || adjust_default(this.primaryColor, { h: -30 }), this.git4 = this.git4 || adjust_default(this.primaryColor, { h: -60 }), this.git5 = this.git5 || adjust_default(this.primaryColor, { h: -90 }), this.git6 = this.git6 || adjust_default(this.primaryColor, { h: 60 }), this.git7 = this.git7 || adjust_default(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = lighten_default(this.git0, 25), this.git1 = lighten_default(this.git1, 25), this.git2 = lighten_default(this.git2, 25), this.git3 = lighten_default(this.git3, 25), this.git4 = lighten_default(this.git4, 25), this.git5 = lighten_default(this.git5, 25), this.git6 = lighten_default(this.git6, 25), this.git7 = lighten_default(this.git7, 25)) : (this.git0 = darken_default(this.git0, 25), this.git1 = darken_default(this.git1, 25), this.git2 = darken_default(this.git2, 25), this.git3 = darken_default(this.git3, 25), this.git4 = darken_default(this.git4, 25), this.git5 = darken_default(this.git5, 25), this.git6 = darken_default(this.git6, 25), this.git7 = darken_default(this.git7, 25)), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || invert_default(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || invert_default(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
1415
+ }
1416
+ calculate(e) {
1417
+ if (typeof e != "object") {
1418
+ this.updateColors();
1419
+ return;
1420
+ }
1421
+ let t = Object.keys(e);
1422
+ t.forEach((t) => {
1423
+ this[t] = e[t];
1424
+ }), this.updateColors(), t.forEach((t) => {
1425
+ this[t] = e[t];
1426
+ });
1427
+ }
1428
+ }, getThemeVariables4 = /* @__PURE__ */ __name((e) => {
1429
+ let t = new Theme4();
1430
+ return t.calculate(e), t;
1431
+ }, "getThemeVariables"), Theme5 = class {
1432
+ static #_ = __name(this, "Theme");
1433
+ constructor() {
1434
+ this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = lighten_default(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = adjust_default(this.primaryColor, { h: -160 }), this.primaryBorderColor = mkBorder(this.primaryColor, this.darkMode), this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode), this.primaryTextColor = invert_default(this.primaryColor), this.secondaryTextColor = invert_default(this.secondaryColor), this.tertiaryTextColor = invert_default(this.tertiaryColor), this.lineColor = invert_default(this.background), this.textColor = invert_default(this.background), this.mainBkg = "#eee", this.secondBkg = "calculated", this.lineColor = "#666", this.border1 = "#999", this.border2 = "calculated", this.note = "#ffa", this.text = "#333", this.critical = "#d42", this.done = "#bbb", this.arrowheadColor = "#333333", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "white", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = this.actorBorder, this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "calculated", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBkgColor = "calculated", this.critBorderColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.rowOdd = this.rowOdd || lighten_default(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || "#f4f4f4", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222";
1435
+ }
1436
+ updateColors() {
1437
+ this.secondBkg = lighten_default(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = lighten_default(this.border1, 23), this.actorBkg = this.mainBkg, this.actorTextColor = this.text, this.actorLineColor = this.actorBorder, this.signalColor = this.text, this.signalTextColor = this.text, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.text, this.loopTextColor = this.text, this.noteBorderColor = "#999", this.noteBkgColor = "#666", this.noteTextColor = "#fff", this.cScale0 = this.cScale0 || "#555", this.cScale1 = this.cScale1 || "#F4F4F4", this.cScale2 = this.cScale2 || "#555", this.cScale3 = this.cScale3 || "#BBB", this.cScale4 = this.cScale4 || "#777", this.cScale5 = this.cScale5 || "#999", this.cScale6 = this.cScale6 || "#DDD", this.cScale7 = this.cScale7 || "#FFF", this.cScale8 = this.cScale8 || "#DDD", this.cScale9 = this.cScale9 || "#BBB", this.cScale10 = this.cScale10 || "#999", this.cScale11 = this.cScale11 || "#777";
1438
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || invert_default(this["cScale" + e]);
1439
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || lighten_default(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || darken_default(this["cScale" + e], 10);
1440
+ this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
1441
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1442
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || adjust_default(this.mainBkg, { l: -(5 + e * 5) }), this["surfacePeer" + e] = this["surfacePeer" + e] || adjust_default(this.mainBkg, { l: -(8 + e * 5) });
1443
+ this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.text, this.sectionBkgColor = lighten_default(this.contrast, 30), this.sectionBkgColor2 = lighten_default(this.contrast, 30), this.taskBorderColor = darken_default(this.contrast, 10), this.taskBkgColor = this.contrast, this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = this.text, this.taskTextOutsideColor = this.taskTextDarkColor, this.activeTaskBorderColor = this.taskBorderColor, this.activeTaskBkgColor = this.mainBkg, this.gridColor = lighten_default(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = darken_default(this.critBkgColor, 10), this.todayLineColor = this.critBkgColor, this.vertLineColor = this.critBkgColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.transitionColor = this.transitionColor || "#000", this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f4f4f4", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.stateBorder = this.stateBorder || "#000", this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = "#222", this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = adjust_default(this.primaryColor, { h: 64 }), this.fillType3 = adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = adjust_default(this.secondaryColor, { h: 128 });
1444
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1445
+ this.pie12 = this.pie0, this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
1446
+ r: 5,
1447
+ g: 5,
1448
+ b: 5
1449
+ }), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
1450
+ r: 10,
1451
+ g: 10,
1452
+ b: 10
1453
+ }), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
1454
+ r: 15,
1455
+ g: 15,
1456
+ b: 15
1457
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
1458
+ r: -5,
1459
+ g: -5,
1460
+ b: -5
1461
+ }), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
1462
+ r: -10,
1463
+ g: -10,
1464
+ b: -10
1465
+ }), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
1466
+ r: -15,
1467
+ g: -15,
1468
+ b: -15
1469
+ }), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
1470
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
1471
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1472
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1473
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1474
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1475
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1476
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1477
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1478
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1479
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1480
+ plotColorPalette: this.xyChart?.plotColorPalette || "#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"
1481
+ }, this.radar = {
1482
+ axisColor: this.radar?.axisColor || this.lineColor,
1483
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1484
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1485
+ curveOpacity: this.radar?.curveOpacity || .5,
1486
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1487
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1488
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1489
+ graticuleOpacity: this.radar?.graticuleOpacity || .3,
1490
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1491
+ legendFontSize: this.radar?.legendFontSize || 12
1492
+ }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = darken_default(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || adjust_default(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || adjust_default(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || adjust_default(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || adjust_default(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || adjust_default(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.branchLabelColor = this.branchLabelColor || this.labelTextColor, this.gitBranchLabel0 = this.branchLabelColor, this.gitBranchLabel1 = "white", this.gitBranchLabel2 = this.branchLabelColor, this.gitBranchLabel3 = "white", this.gitBranchLabel4 = this.branchLabelColor, this.gitBranchLabel5 = this.branchLabelColor, this.gitBranchLabel6 = this.branchLabelColor, this.gitBranchLabel7 = this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
1493
+ }
1494
+ calculate(e) {
1495
+ if (typeof e != "object") {
1496
+ this.updateColors();
1497
+ return;
1498
+ }
1499
+ let t = Object.keys(e);
1500
+ t.forEach((t) => {
1501
+ this[t] = e[t];
1502
+ }), this.updateColors(), t.forEach((t) => {
1503
+ this[t] = e[t];
1504
+ });
1505
+ }
1506
+ }, themes_default = {
1507
+ base: { getThemeVariables },
1508
+ dark: { getThemeVariables: getThemeVariables2 },
1509
+ default: { getThemeVariables: getThemeVariables3 },
1510
+ forest: { getThemeVariables: getThemeVariables4 },
1511
+ neutral: { getThemeVariables: /* @__PURE__ */ __name((e) => {
1512
+ let t = new Theme5();
1513
+ return t.calculate(e), t;
1514
+ }, "getThemeVariables") }
1515
+ }, config_schema_default = {
1516
+ flowchart: {
1517
+ useMaxWidth: !0,
1518
+ titleTopMargin: 25,
1519
+ subGraphTitleMargin: {
1520
+ top: 0,
1521
+ bottom: 0
1522
+ },
1523
+ diagramPadding: 8,
1524
+ htmlLabels: !0,
1525
+ nodeSpacing: 50,
1526
+ rankSpacing: 50,
1527
+ curve: "basis",
1528
+ padding: 15,
1529
+ defaultRenderer: "dagre-wrapper",
1530
+ wrappingWidth: 200,
1531
+ inheritDir: !1
1532
+ },
1533
+ sequence: {
1534
+ useMaxWidth: !0,
1535
+ hideUnusedParticipants: !1,
1536
+ activationWidth: 10,
1537
+ diagramMarginX: 50,
1538
+ diagramMarginY: 10,
1539
+ actorMargin: 50,
1540
+ width: 150,
1541
+ height: 65,
1542
+ boxMargin: 10,
1543
+ boxTextMargin: 5,
1544
+ noteMargin: 10,
1545
+ messageMargin: 35,
1546
+ messageAlign: "center",
1547
+ mirrorActors: !0,
1548
+ forceMenus: !1,
1549
+ bottomMarginAdj: 1,
1550
+ rightAngles: !1,
1551
+ showSequenceNumbers: !1,
1552
+ actorFontSize: 14,
1553
+ actorFontFamily: "\"Open Sans\", sans-serif",
1554
+ actorFontWeight: 400,
1555
+ noteFontSize: 14,
1556
+ noteFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
1557
+ noteFontWeight: 400,
1558
+ noteAlign: "center",
1559
+ messageFontSize: 16,
1560
+ messageFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
1561
+ messageFontWeight: 400,
1562
+ wrap: !1,
1563
+ wrapPadding: 10,
1564
+ labelBoxWidth: 50,
1565
+ labelBoxHeight: 20
1566
+ },
1567
+ gantt: {
1568
+ useMaxWidth: !0,
1569
+ titleTopMargin: 25,
1570
+ barHeight: 20,
1571
+ barGap: 4,
1572
+ topPadding: 50,
1573
+ rightPadding: 75,
1574
+ leftPadding: 75,
1575
+ gridLineStartPadding: 35,
1576
+ fontSize: 11,
1577
+ sectionFontSize: 11,
1578
+ numberSectionStyles: 4,
1579
+ axisFormat: "%Y-%m-%d",
1580
+ topAxis: !1,
1581
+ displayMode: "",
1582
+ weekday: "sunday"
1583
+ },
1584
+ journey: {
1585
+ useMaxWidth: !0,
1586
+ diagramMarginX: 50,
1587
+ diagramMarginY: 10,
1588
+ leftMargin: 150,
1589
+ maxLabelWidth: 360,
1590
+ width: 150,
1591
+ height: 50,
1592
+ boxMargin: 10,
1593
+ boxTextMargin: 5,
1594
+ noteMargin: 10,
1595
+ messageMargin: 35,
1596
+ messageAlign: "center",
1597
+ bottomMarginAdj: 1,
1598
+ rightAngles: !1,
1599
+ taskFontSize: 14,
1600
+ taskFontFamily: "\"Open Sans\", sans-serif",
1601
+ taskMargin: 50,
1602
+ activationWidth: 10,
1603
+ textPlacement: "fo",
1604
+ actorColours: [
1605
+ "#8FBC8F",
1606
+ "#7CFC00",
1607
+ "#00FFFF",
1608
+ "#20B2AA",
1609
+ "#B0E0E6",
1610
+ "#FFFFE0"
1611
+ ],
1612
+ sectionFills: [
1613
+ "#191970",
1614
+ "#8B008B",
1615
+ "#4B0082",
1616
+ "#2F4F4F",
1617
+ "#800000",
1618
+ "#8B4513",
1619
+ "#00008B"
1620
+ ],
1621
+ sectionColours: ["#fff"],
1622
+ titleColor: "",
1623
+ titleFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
1624
+ titleFontSize: "4ex"
1625
+ },
1626
+ class: {
1627
+ useMaxWidth: !0,
1628
+ titleTopMargin: 25,
1629
+ arrowMarkerAbsolute: !1,
1630
+ dividerMargin: 10,
1631
+ padding: 5,
1632
+ textHeight: 10,
1633
+ defaultRenderer: "dagre-wrapper",
1634
+ htmlLabels: !1,
1635
+ hideEmptyMembersBox: !1
1636
+ },
1637
+ state: {
1638
+ useMaxWidth: !0,
1639
+ titleTopMargin: 25,
1640
+ dividerMargin: 10,
1641
+ sizeUnit: 5,
1642
+ padding: 8,
1643
+ textHeight: 10,
1644
+ titleShift: -15,
1645
+ noteMargin: 10,
1646
+ forkWidth: 70,
1647
+ forkHeight: 7,
1648
+ miniPadding: 2,
1649
+ fontSizeFactor: 5.02,
1650
+ fontSize: 24,
1651
+ labelHeight: 16,
1652
+ edgeLengthFactor: "20",
1653
+ compositTitleSize: 35,
1654
+ radius: 5,
1655
+ defaultRenderer: "dagre-wrapper"
1656
+ },
1657
+ er: {
1658
+ useMaxWidth: !0,
1659
+ titleTopMargin: 25,
1660
+ diagramPadding: 20,
1661
+ layoutDirection: "TB",
1662
+ minEntityWidth: 100,
1663
+ minEntityHeight: 75,
1664
+ entityPadding: 15,
1665
+ nodeSpacing: 140,
1666
+ rankSpacing: 80,
1667
+ stroke: "gray",
1668
+ fill: "honeydew",
1669
+ fontSize: 12
1670
+ },
1671
+ pie: {
1672
+ useMaxWidth: !0,
1673
+ textPosition: .75
1674
+ },
1675
+ quadrantChart: {
1676
+ useMaxWidth: !0,
1677
+ chartWidth: 500,
1678
+ chartHeight: 500,
1679
+ titleFontSize: 20,
1680
+ titlePadding: 10,
1681
+ quadrantPadding: 5,
1682
+ xAxisLabelPadding: 5,
1683
+ yAxisLabelPadding: 5,
1684
+ xAxisLabelFontSize: 16,
1685
+ yAxisLabelFontSize: 16,
1686
+ quadrantLabelFontSize: 16,
1687
+ quadrantTextTopPadding: 5,
1688
+ pointTextPadding: 5,
1689
+ pointLabelFontSize: 12,
1690
+ pointRadius: 5,
1691
+ xAxisPosition: "top",
1692
+ yAxisPosition: "left",
1693
+ quadrantInternalBorderStrokeWidth: 1,
1694
+ quadrantExternalBorderStrokeWidth: 2
1695
+ },
1696
+ xyChart: {
1697
+ useMaxWidth: !0,
1698
+ width: 700,
1699
+ height: 500,
1700
+ titleFontSize: 20,
1701
+ titlePadding: 10,
1702
+ showDataLabel: !1,
1703
+ showTitle: !0,
1704
+ xAxis: {
1705
+ $ref: "#/$defs/XYChartAxisConfig",
1706
+ showLabel: !0,
1707
+ labelFontSize: 14,
1708
+ labelPadding: 5,
1709
+ showTitle: !0,
1710
+ titleFontSize: 16,
1711
+ titlePadding: 5,
1712
+ showTick: !0,
1713
+ tickLength: 5,
1714
+ tickWidth: 2,
1715
+ showAxisLine: !0,
1716
+ axisLineWidth: 2
1717
+ },
1718
+ yAxis: {
1719
+ $ref: "#/$defs/XYChartAxisConfig",
1720
+ showLabel: !0,
1721
+ labelFontSize: 14,
1722
+ labelPadding: 5,
1723
+ showTitle: !0,
1724
+ titleFontSize: 16,
1725
+ titlePadding: 5,
1726
+ showTick: !0,
1727
+ tickLength: 5,
1728
+ tickWidth: 2,
1729
+ showAxisLine: !0,
1730
+ axisLineWidth: 2
1731
+ },
1732
+ chartOrientation: "vertical",
1733
+ plotReservedSpacePercent: 50
1734
+ },
1735
+ requirement: {
1736
+ useMaxWidth: !0,
1737
+ rect_fill: "#f9f9f9",
1738
+ text_color: "#333",
1739
+ rect_border_size: "0.5px",
1740
+ rect_border_color: "#bbb",
1741
+ rect_min_width: 200,
1742
+ rect_min_height: 200,
1743
+ fontSize: 14,
1744
+ rect_padding: 10,
1745
+ line_height: 20
1746
+ },
1747
+ mindmap: {
1748
+ useMaxWidth: !0,
1749
+ padding: 10,
1750
+ maxNodeWidth: 200,
1751
+ layoutAlgorithm: "cose-bilkent"
1752
+ },
1753
+ kanban: {
1754
+ useMaxWidth: !0,
1755
+ padding: 8,
1756
+ sectionWidth: 200,
1757
+ ticketBaseUrl: ""
1758
+ },
1759
+ timeline: {
1760
+ useMaxWidth: !0,
1761
+ diagramMarginX: 50,
1762
+ diagramMarginY: 10,
1763
+ leftMargin: 150,
1764
+ width: 150,
1765
+ height: 50,
1766
+ boxMargin: 10,
1767
+ boxTextMargin: 5,
1768
+ noteMargin: 10,
1769
+ messageMargin: 35,
1770
+ messageAlign: "center",
1771
+ bottomMarginAdj: 1,
1772
+ rightAngles: !1,
1773
+ taskFontSize: 14,
1774
+ taskFontFamily: "\"Open Sans\", sans-serif",
1775
+ taskMargin: 50,
1776
+ activationWidth: 10,
1777
+ textPlacement: "fo",
1778
+ actorColours: [
1779
+ "#8FBC8F",
1780
+ "#7CFC00",
1781
+ "#00FFFF",
1782
+ "#20B2AA",
1783
+ "#B0E0E6",
1784
+ "#FFFFE0"
1785
+ ],
1786
+ sectionFills: [
1787
+ "#191970",
1788
+ "#8B008B",
1789
+ "#4B0082",
1790
+ "#2F4F4F",
1791
+ "#800000",
1792
+ "#8B4513",
1793
+ "#00008B"
1794
+ ],
1795
+ sectionColours: ["#fff"],
1796
+ disableMulticolor: !1
1797
+ },
1798
+ gitGraph: {
1799
+ useMaxWidth: !0,
1800
+ titleTopMargin: 25,
1801
+ diagramPadding: 8,
1802
+ nodeLabel: {
1803
+ width: 75,
1804
+ height: 100,
1805
+ x: -25,
1806
+ y: 0
1807
+ },
1808
+ mainBranchName: "main",
1809
+ mainBranchOrder: 0,
1810
+ showCommitLabel: !0,
1811
+ showBranches: !0,
1812
+ rotateCommitLabel: !0,
1813
+ parallelCommits: !1,
1814
+ arrowMarkerAbsolute: !1
1815
+ },
1816
+ c4: {
1817
+ useMaxWidth: !0,
1818
+ diagramMarginX: 50,
1819
+ diagramMarginY: 10,
1820
+ c4ShapeMargin: 50,
1821
+ c4ShapePadding: 20,
1822
+ width: 216,
1823
+ height: 60,
1824
+ boxMargin: 10,
1825
+ c4ShapeInRow: 4,
1826
+ nextLinePaddingX: 0,
1827
+ c4BoundaryInRow: 2,
1828
+ personFontSize: 14,
1829
+ personFontFamily: "\"Open Sans\", sans-serif",
1830
+ personFontWeight: "normal",
1831
+ external_personFontSize: 14,
1832
+ external_personFontFamily: "\"Open Sans\", sans-serif",
1833
+ external_personFontWeight: "normal",
1834
+ systemFontSize: 14,
1835
+ systemFontFamily: "\"Open Sans\", sans-serif",
1836
+ systemFontWeight: "normal",
1837
+ external_systemFontSize: 14,
1838
+ external_systemFontFamily: "\"Open Sans\", sans-serif",
1839
+ external_systemFontWeight: "normal",
1840
+ system_dbFontSize: 14,
1841
+ system_dbFontFamily: "\"Open Sans\", sans-serif",
1842
+ system_dbFontWeight: "normal",
1843
+ external_system_dbFontSize: 14,
1844
+ external_system_dbFontFamily: "\"Open Sans\", sans-serif",
1845
+ external_system_dbFontWeight: "normal",
1846
+ system_queueFontSize: 14,
1847
+ system_queueFontFamily: "\"Open Sans\", sans-serif",
1848
+ system_queueFontWeight: "normal",
1849
+ external_system_queueFontSize: 14,
1850
+ external_system_queueFontFamily: "\"Open Sans\", sans-serif",
1851
+ external_system_queueFontWeight: "normal",
1852
+ boundaryFontSize: 14,
1853
+ boundaryFontFamily: "\"Open Sans\", sans-serif",
1854
+ boundaryFontWeight: "normal",
1855
+ messageFontSize: 12,
1856
+ messageFontFamily: "\"Open Sans\", sans-serif",
1857
+ messageFontWeight: "normal",
1858
+ containerFontSize: 14,
1859
+ containerFontFamily: "\"Open Sans\", sans-serif",
1860
+ containerFontWeight: "normal",
1861
+ external_containerFontSize: 14,
1862
+ external_containerFontFamily: "\"Open Sans\", sans-serif",
1863
+ external_containerFontWeight: "normal",
1864
+ container_dbFontSize: 14,
1865
+ container_dbFontFamily: "\"Open Sans\", sans-serif",
1866
+ container_dbFontWeight: "normal",
1867
+ external_container_dbFontSize: 14,
1868
+ external_container_dbFontFamily: "\"Open Sans\", sans-serif",
1869
+ external_container_dbFontWeight: "normal",
1870
+ container_queueFontSize: 14,
1871
+ container_queueFontFamily: "\"Open Sans\", sans-serif",
1872
+ container_queueFontWeight: "normal",
1873
+ external_container_queueFontSize: 14,
1874
+ external_container_queueFontFamily: "\"Open Sans\", sans-serif",
1875
+ external_container_queueFontWeight: "normal",
1876
+ componentFontSize: 14,
1877
+ componentFontFamily: "\"Open Sans\", sans-serif",
1878
+ componentFontWeight: "normal",
1879
+ external_componentFontSize: 14,
1880
+ external_componentFontFamily: "\"Open Sans\", sans-serif",
1881
+ external_componentFontWeight: "normal",
1882
+ component_dbFontSize: 14,
1883
+ component_dbFontFamily: "\"Open Sans\", sans-serif",
1884
+ component_dbFontWeight: "normal",
1885
+ external_component_dbFontSize: 14,
1886
+ external_component_dbFontFamily: "\"Open Sans\", sans-serif",
1887
+ external_component_dbFontWeight: "normal",
1888
+ component_queueFontSize: 14,
1889
+ component_queueFontFamily: "\"Open Sans\", sans-serif",
1890
+ component_queueFontWeight: "normal",
1891
+ external_component_queueFontSize: 14,
1892
+ external_component_queueFontFamily: "\"Open Sans\", sans-serif",
1893
+ external_component_queueFontWeight: "normal",
1894
+ wrap: !0,
1895
+ wrapPadding: 10,
1896
+ person_bg_color: "#08427B",
1897
+ person_border_color: "#073B6F",
1898
+ external_person_bg_color: "#686868",
1899
+ external_person_border_color: "#8A8A8A",
1900
+ system_bg_color: "#1168BD",
1901
+ system_border_color: "#3C7FC0",
1902
+ system_db_bg_color: "#1168BD",
1903
+ system_db_border_color: "#3C7FC0",
1904
+ system_queue_bg_color: "#1168BD",
1905
+ system_queue_border_color: "#3C7FC0",
1906
+ external_system_bg_color: "#999999",
1907
+ external_system_border_color: "#8A8A8A",
1908
+ external_system_db_bg_color: "#999999",
1909
+ external_system_db_border_color: "#8A8A8A",
1910
+ external_system_queue_bg_color: "#999999",
1911
+ external_system_queue_border_color: "#8A8A8A",
1912
+ container_bg_color: "#438DD5",
1913
+ container_border_color: "#3C7FC0",
1914
+ container_db_bg_color: "#438DD5",
1915
+ container_db_border_color: "#3C7FC0",
1916
+ container_queue_bg_color: "#438DD5",
1917
+ container_queue_border_color: "#3C7FC0",
1918
+ external_container_bg_color: "#B3B3B3",
1919
+ external_container_border_color: "#A6A6A6",
1920
+ external_container_db_bg_color: "#B3B3B3",
1921
+ external_container_db_border_color: "#A6A6A6",
1922
+ external_container_queue_bg_color: "#B3B3B3",
1923
+ external_container_queue_border_color: "#A6A6A6",
1924
+ component_bg_color: "#85BBF0",
1925
+ component_border_color: "#78A8D8",
1926
+ component_db_bg_color: "#85BBF0",
1927
+ component_db_border_color: "#78A8D8",
1928
+ component_queue_bg_color: "#85BBF0",
1929
+ component_queue_border_color: "#78A8D8",
1930
+ external_component_bg_color: "#CCCCCC",
1931
+ external_component_border_color: "#BFBFBF",
1932
+ external_component_db_bg_color: "#CCCCCC",
1933
+ external_component_db_border_color: "#BFBFBF",
1934
+ external_component_queue_bg_color: "#CCCCCC",
1935
+ external_component_queue_border_color: "#BFBFBF"
1936
+ },
1937
+ sankey: {
1938
+ useMaxWidth: !0,
1939
+ width: 600,
1940
+ height: 400,
1941
+ linkColor: "gradient",
1942
+ nodeAlignment: "justify",
1943
+ showValues: !0,
1944
+ prefix: "",
1945
+ suffix: ""
1946
+ },
1947
+ block: {
1948
+ useMaxWidth: !0,
1949
+ padding: 8
1950
+ },
1951
+ packet: {
1952
+ useMaxWidth: !0,
1953
+ rowHeight: 32,
1954
+ bitWidth: 32,
1955
+ bitsPerRow: 32,
1956
+ showBits: !0,
1957
+ paddingX: 5,
1958
+ paddingY: 5
1959
+ },
1960
+ architecture: {
1961
+ useMaxWidth: !0,
1962
+ padding: 40,
1963
+ iconSize: 80,
1964
+ fontSize: 16
1965
+ },
1966
+ radar: {
1967
+ useMaxWidth: !0,
1968
+ width: 600,
1969
+ height: 600,
1970
+ marginTop: 50,
1971
+ marginRight: 50,
1972
+ marginBottom: 50,
1973
+ marginLeft: 50,
1974
+ axisScaleFactor: 1,
1975
+ axisLabelFactor: 1.05,
1976
+ curveTension: .17
1977
+ },
1978
+ theme: "default",
1979
+ look: "classic",
1980
+ handDrawnSeed: 0,
1981
+ layout: "dagre",
1982
+ maxTextSize: 5e4,
1983
+ maxEdges: 500,
1984
+ darkMode: !1,
1985
+ fontFamily: "\"trebuchet ms\", verdana, arial, sans-serif;",
1986
+ logLevel: 5,
1987
+ securityLevel: "strict",
1988
+ startOnLoad: !0,
1989
+ arrowMarkerAbsolute: !1,
1990
+ secure: [
1991
+ "secure",
1992
+ "securityLevel",
1993
+ "startOnLoad",
1994
+ "maxTextSize",
1995
+ "suppressErrorRendering",
1996
+ "maxEdges"
1997
+ ],
1998
+ legacyMathML: !1,
1999
+ forceLegacyMathML: !1,
2000
+ deterministicIds: !1,
2001
+ fontSize: 16,
2002
+ markdownAutoWrap: !0,
2003
+ suppressErrorRendering: !1
2004
+ }, config = {
2005
+ ...config_schema_default,
2006
+ deterministicIDSeed: void 0,
2007
+ elk: {
2008
+ mergeEdges: !1,
2009
+ nodePlacementStrategy: "BRANDES_KOEPF",
2010
+ forceNodeModelOrder: !1,
2011
+ considerModelOrder: "NODES_AND_EDGES"
2012
+ },
2013
+ themeCSS: void 0,
2014
+ themeVariables: themes_default.default.getThemeVariables(),
2015
+ sequence: {
2016
+ ...config_schema_default.sequence,
2017
+ messageFont: /* @__PURE__ */ __name(function() {
2018
+ return {
2019
+ fontFamily: this.messageFontFamily,
2020
+ fontSize: this.messageFontSize,
2021
+ fontWeight: this.messageFontWeight
2022
+ };
2023
+ }, "messageFont"),
2024
+ noteFont: /* @__PURE__ */ __name(function() {
2025
+ return {
2026
+ fontFamily: this.noteFontFamily,
2027
+ fontSize: this.noteFontSize,
2028
+ fontWeight: this.noteFontWeight
2029
+ };
2030
+ }, "noteFont"),
2031
+ actorFont: /* @__PURE__ */ __name(function() {
2032
+ return {
2033
+ fontFamily: this.actorFontFamily,
2034
+ fontSize: this.actorFontSize,
2035
+ fontWeight: this.actorFontWeight
2036
+ };
2037
+ }, "actorFont")
2038
+ },
2039
+ class: { hideEmptyMembersBox: !1 },
2040
+ gantt: {
2041
+ ...config_schema_default.gantt,
2042
+ tickInterval: void 0,
2043
+ useWidth: void 0
2044
+ },
2045
+ c4: {
2046
+ ...config_schema_default.c4,
2047
+ useWidth: void 0,
2048
+ personFont: /* @__PURE__ */ __name(function() {
2049
+ return {
2050
+ fontFamily: this.personFontFamily,
2051
+ fontSize: this.personFontSize,
2052
+ fontWeight: this.personFontWeight
2053
+ };
2054
+ }, "personFont"),
2055
+ flowchart: {
2056
+ ...config_schema_default.flowchart,
2057
+ inheritDir: !1
2058
+ },
2059
+ external_personFont: /* @__PURE__ */ __name(function() {
2060
+ return {
2061
+ fontFamily: this.external_personFontFamily,
2062
+ fontSize: this.external_personFontSize,
2063
+ fontWeight: this.external_personFontWeight
2064
+ };
2065
+ }, "external_personFont"),
2066
+ systemFont: /* @__PURE__ */ __name(function() {
2067
+ return {
2068
+ fontFamily: this.systemFontFamily,
2069
+ fontSize: this.systemFontSize,
2070
+ fontWeight: this.systemFontWeight
2071
+ };
2072
+ }, "systemFont"),
2073
+ external_systemFont: /* @__PURE__ */ __name(function() {
2074
+ return {
2075
+ fontFamily: this.external_systemFontFamily,
2076
+ fontSize: this.external_systemFontSize,
2077
+ fontWeight: this.external_systemFontWeight
2078
+ };
2079
+ }, "external_systemFont"),
2080
+ system_dbFont: /* @__PURE__ */ __name(function() {
2081
+ return {
2082
+ fontFamily: this.system_dbFontFamily,
2083
+ fontSize: this.system_dbFontSize,
2084
+ fontWeight: this.system_dbFontWeight
2085
+ };
2086
+ }, "system_dbFont"),
2087
+ external_system_dbFont: /* @__PURE__ */ __name(function() {
2088
+ return {
2089
+ fontFamily: this.external_system_dbFontFamily,
2090
+ fontSize: this.external_system_dbFontSize,
2091
+ fontWeight: this.external_system_dbFontWeight
2092
+ };
2093
+ }, "external_system_dbFont"),
2094
+ system_queueFont: /* @__PURE__ */ __name(function() {
2095
+ return {
2096
+ fontFamily: this.system_queueFontFamily,
2097
+ fontSize: this.system_queueFontSize,
2098
+ fontWeight: this.system_queueFontWeight
2099
+ };
2100
+ }, "system_queueFont"),
2101
+ external_system_queueFont: /* @__PURE__ */ __name(function() {
2102
+ return {
2103
+ fontFamily: this.external_system_queueFontFamily,
2104
+ fontSize: this.external_system_queueFontSize,
2105
+ fontWeight: this.external_system_queueFontWeight
2106
+ };
2107
+ }, "external_system_queueFont"),
2108
+ containerFont: /* @__PURE__ */ __name(function() {
2109
+ return {
2110
+ fontFamily: this.containerFontFamily,
2111
+ fontSize: this.containerFontSize,
2112
+ fontWeight: this.containerFontWeight
2113
+ };
2114
+ }, "containerFont"),
2115
+ external_containerFont: /* @__PURE__ */ __name(function() {
2116
+ return {
2117
+ fontFamily: this.external_containerFontFamily,
2118
+ fontSize: this.external_containerFontSize,
2119
+ fontWeight: this.external_containerFontWeight
2120
+ };
2121
+ }, "external_containerFont"),
2122
+ container_dbFont: /* @__PURE__ */ __name(function() {
2123
+ return {
2124
+ fontFamily: this.container_dbFontFamily,
2125
+ fontSize: this.container_dbFontSize,
2126
+ fontWeight: this.container_dbFontWeight
2127
+ };
2128
+ }, "container_dbFont"),
2129
+ external_container_dbFont: /* @__PURE__ */ __name(function() {
2130
+ return {
2131
+ fontFamily: this.external_container_dbFontFamily,
2132
+ fontSize: this.external_container_dbFontSize,
2133
+ fontWeight: this.external_container_dbFontWeight
2134
+ };
2135
+ }, "external_container_dbFont"),
2136
+ container_queueFont: /* @__PURE__ */ __name(function() {
2137
+ return {
2138
+ fontFamily: this.container_queueFontFamily,
2139
+ fontSize: this.container_queueFontSize,
2140
+ fontWeight: this.container_queueFontWeight
2141
+ };
2142
+ }, "container_queueFont"),
2143
+ external_container_queueFont: /* @__PURE__ */ __name(function() {
2144
+ return {
2145
+ fontFamily: this.external_container_queueFontFamily,
2146
+ fontSize: this.external_container_queueFontSize,
2147
+ fontWeight: this.external_container_queueFontWeight
2148
+ };
2149
+ }, "external_container_queueFont"),
2150
+ componentFont: /* @__PURE__ */ __name(function() {
2151
+ return {
2152
+ fontFamily: this.componentFontFamily,
2153
+ fontSize: this.componentFontSize,
2154
+ fontWeight: this.componentFontWeight
2155
+ };
2156
+ }, "componentFont"),
2157
+ external_componentFont: /* @__PURE__ */ __name(function() {
2158
+ return {
2159
+ fontFamily: this.external_componentFontFamily,
2160
+ fontSize: this.external_componentFontSize,
2161
+ fontWeight: this.external_componentFontWeight
2162
+ };
2163
+ }, "external_componentFont"),
2164
+ component_dbFont: /* @__PURE__ */ __name(function() {
2165
+ return {
2166
+ fontFamily: this.component_dbFontFamily,
2167
+ fontSize: this.component_dbFontSize,
2168
+ fontWeight: this.component_dbFontWeight
2169
+ };
2170
+ }, "component_dbFont"),
2171
+ external_component_dbFont: /* @__PURE__ */ __name(function() {
2172
+ return {
2173
+ fontFamily: this.external_component_dbFontFamily,
2174
+ fontSize: this.external_component_dbFontSize,
2175
+ fontWeight: this.external_component_dbFontWeight
2176
+ };
2177
+ }, "external_component_dbFont"),
2178
+ component_queueFont: /* @__PURE__ */ __name(function() {
2179
+ return {
2180
+ fontFamily: this.component_queueFontFamily,
2181
+ fontSize: this.component_queueFontSize,
2182
+ fontWeight: this.component_queueFontWeight
2183
+ };
2184
+ }, "component_queueFont"),
2185
+ external_component_queueFont: /* @__PURE__ */ __name(function() {
2186
+ return {
2187
+ fontFamily: this.external_component_queueFontFamily,
2188
+ fontSize: this.external_component_queueFontSize,
2189
+ fontWeight: this.external_component_queueFontWeight
2190
+ };
2191
+ }, "external_component_queueFont"),
2192
+ boundaryFont: /* @__PURE__ */ __name(function() {
2193
+ return {
2194
+ fontFamily: this.boundaryFontFamily,
2195
+ fontSize: this.boundaryFontSize,
2196
+ fontWeight: this.boundaryFontWeight
2197
+ };
2198
+ }, "boundaryFont"),
2199
+ messageFont: /* @__PURE__ */ __name(function() {
2200
+ return {
2201
+ fontFamily: this.messageFontFamily,
2202
+ fontSize: this.messageFontSize,
2203
+ fontWeight: this.messageFontWeight
2204
+ };
2205
+ }, "messageFont")
2206
+ },
2207
+ pie: {
2208
+ ...config_schema_default.pie,
2209
+ useWidth: 984
2210
+ },
2211
+ xyChart: {
2212
+ ...config_schema_default.xyChart,
2213
+ useWidth: void 0
2214
+ },
2215
+ requirement: {
2216
+ ...config_schema_default.requirement,
2217
+ useWidth: void 0
2218
+ },
2219
+ packet: { ...config_schema_default.packet },
2220
+ radar: { ...config_schema_default.radar },
2221
+ treemap: {
2222
+ useMaxWidth: !0,
2223
+ padding: 10,
2224
+ diagramPadding: 8,
2225
+ showValues: !0,
2226
+ nodeWidth: 100,
2227
+ nodeHeight: 40,
2228
+ borderWidth: 1,
2229
+ valueFontSize: 12,
2230
+ labelFontSize: 14,
2231
+ valueFormat: ","
2232
+ }
2233
+ }, keyify = /* @__PURE__ */ __name((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
2234
+ ...n,
2235
+ t + r,
2236
+ ...keyify(e[r], "")
2237
+ ] : [...n, t + r], []), "keyify"), configKeys = new Set(keyify(config, "")), defaultConfig_default = config, sanitizeDirective = /* @__PURE__ */ __name((e) => {
2238
+ if (log.debug("sanitizeDirective called with", e), !(typeof e != "object" || !e)) {
2239
+ if (Array.isArray(e)) {
2240
+ e.forEach((e) => sanitizeDirective(e));
2241
+ return;
2242
+ }
2243
+ for (let n of Object.keys(e)) {
2244
+ if (log.debug("Checking key", n), n.startsWith("__") || n.includes("proto") || n.includes("constr") || !configKeys.has(n) || e[n] == null) {
2245
+ log.debug("sanitize deleting key: ", n), delete e[n];
2246
+ continue;
2247
+ }
2248
+ if (typeof e[n] == "object") {
2249
+ log.debug("sanitizing object", n), sanitizeDirective(e[n]);
2250
+ continue;
2251
+ }
2252
+ for (let r of [
2253
+ "themeCSS",
2254
+ "fontFamily",
2255
+ "altFontFamily"
2256
+ ]) n.includes(r) && (log.debug("sanitizing css option", n), e[n] = sanitizeCss(e[n]));
2257
+ }
2258
+ if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
2259
+ let n = e.themeVariables[t];
2260
+ n?.match && !n.match(/^[\d "#%(),.;A-Za-z]+$/) && (e.themeVariables[t] = "");
2261
+ }
2262
+ log.debug("After sanitization", e);
2263
+ }
2264
+ }, "sanitizeDirective"), sanitizeCss = /* @__PURE__ */ __name((e) => {
2265
+ let t = 0, n = 0;
2266
+ for (let r of e) {
2267
+ if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
2268
+ r === "{" ? t++ : r === "}" && n++;
2269
+ }
2270
+ return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
2271
+ }, "sanitizeCss"), defaultConfig = Object.freeze(defaultConfig_default), siteConfig = assignWithDepth_default({}, defaultConfig), configFromInitialize, directives = [], currentConfig = assignWithDepth_default({}, defaultConfig), updateCurrentConfig = /* @__PURE__ */ __name((e, t) => {
2272
+ let n = assignWithDepth_default({}, e), r = {};
2273
+ for (let e of t) sanitize(e), r = assignWithDepth_default(r, e);
2274
+ if (n = assignWithDepth_default(n, r), r.theme && r.theme in themes_default) {
2275
+ let e = assignWithDepth_default(assignWithDepth_default({}, configFromInitialize).themeVariables || {}, r.themeVariables);
2276
+ n.theme && n.theme in themes_default && (n.themeVariables = themes_default[n.theme].getThemeVariables(e));
2277
+ }
2278
+ return currentConfig = n, checkConfig(currentConfig), currentConfig;
2279
+ }, "updateCurrentConfig"), setSiteConfig = /* @__PURE__ */ __name((e) => (siteConfig = assignWithDepth_default({}, defaultConfig), siteConfig = assignWithDepth_default(siteConfig, e), e.theme && themes_default[e.theme] && (siteConfig.themeVariables = themes_default[e.theme].getThemeVariables(e.themeVariables)), updateCurrentConfig(siteConfig, directives), siteConfig), "setSiteConfig"), saveConfigFromInitialize = /* @__PURE__ */ __name((e) => {
2280
+ configFromInitialize = assignWithDepth_default({}, e);
2281
+ }, "saveConfigFromInitialize"), updateSiteConfig = /* @__PURE__ */ __name((e) => (siteConfig = assignWithDepth_default(siteConfig, e), updateCurrentConfig(siteConfig, directives), siteConfig), "updateSiteConfig"), getSiteConfig = /* @__PURE__ */ __name(() => assignWithDepth_default({}, siteConfig), "getSiteConfig"), setConfig = /* @__PURE__ */ __name((e) => (checkConfig(e), assignWithDepth_default(currentConfig, e), getConfig()), "setConfig"), getConfig = /* @__PURE__ */ __name(() => assignWithDepth_default({}, currentConfig), "getConfig"), sanitize = /* @__PURE__ */ __name((e) => {
2282
+ e && (["secure", ...siteConfig.secure ?? []].forEach((n) => {
2283
+ Object.hasOwn(e, n) && (log.debug(`Denied attempt to modify a secure key ${n}`, e[n]), delete e[n]);
2284
+ }), Object.keys(e).forEach((t) => {
2285
+ t.startsWith("__") && delete e[t];
2286
+ }), Object.keys(e).forEach((t) => {
2287
+ typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && sanitize(e[t]);
2288
+ }));
2289
+ }, "sanitize"), addDirective = /* @__PURE__ */ __name((e) => {
2290
+ sanitizeDirective(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
2291
+ ...e.themeVariables,
2292
+ fontFamily: e.fontFamily
2293
+ }), directives.push(e), updateCurrentConfig(siteConfig, directives);
2294
+ }, "addDirective"), reset = /* @__PURE__ */ __name((e = siteConfig) => {
2295
+ directives = [], updateCurrentConfig(e, directives);
2296
+ }, "reset"), ConfigWarning = { LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead." }, issuedWarnings = {}, issueWarning = /* @__PURE__ */ __name((e) => {
2297
+ issuedWarnings[e] || (log.warn(ConfigWarning[e]), issuedWarnings[e] = !0);
2298
+ }, "issueWarning"), checkConfig = /* @__PURE__ */ __name((e) => {
2299
+ e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && issueWarning("LAZY_LOAD_DEPRECATED");
2300
+ }, "checkConfig"), getUserDefinedConfig = /* @__PURE__ */ __name(() => {
2301
+ let e = {};
2302
+ configFromInitialize && (e = assignWithDepth_default(e, configFromInitialize));
2303
+ for (let t of directives) e = assignWithDepth_default(e, t);
2304
+ return e;
2305
+ }, "getUserDefinedConfig"), lineBreakRegex = /<br\s*\/?>/gi, getRows = /* @__PURE__ */ __name((e) => e ? breakToPlaceholder(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), setupDompurifyHooksIfNotSetup = /* @__PURE__ */ (() => {
2306
+ let e = !1;
2307
+ return () => {
2308
+ e ||= (setupDompurifyHooks(), !0);
2309
+ };
2310
+ })();
2311
+ function setupDompurifyHooks() {
2312
+ let e = "data-temp-href-target";
2313
+ purify.addHook("beforeSanitizeAttributes", (t) => {
2314
+ t.tagName === "A" && t.hasAttribute("target") && t.setAttribute(e, t.getAttribute("target") ?? "");
2315
+ }), purify.addHook("afterSanitizeAttributes", (t) => {
2316
+ t.tagName === "A" && t.hasAttribute(e) && (t.setAttribute("target", t.getAttribute(e) ?? ""), t.removeAttribute(e), t.getAttribute("target") === "_blank" && t.setAttribute("rel", "noopener"));
2317
+ });
2318
+ }
2319
+ __name(setupDompurifyHooks, "setupDompurifyHooks");
2320
+ var removeScript = /* @__PURE__ */ __name((e) => (setupDompurifyHooksIfNotSetup(), purify.sanitize(e)), "removeScript"), sanitizeMore = /* @__PURE__ */ __name((e, t) => {
2321
+ if (t.flowchart?.htmlLabels !== !1) {
2322
+ let n = t.securityLevel;
2323
+ n === "antiscript" || n === "strict" ? e = removeScript(e) : n !== "loose" && (e = breakToPlaceholder(e), e = e.replace(/</g, "&lt;").replace(/>/g, "&gt;"), e = e.replace(/=/g, "&equals;"), e = placeholderToBreak(e));
2324
+ }
2325
+ return e;
2326
+ }, "sanitizeMore"), sanitizeText = /* @__PURE__ */ __name((e, t) => e && (e = t.dompurifyConfig ? purify.sanitize(sanitizeMore(e, t), t.dompurifyConfig).toString() : purify.sanitize(sanitizeMore(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), sanitizeTextOrArray = /* @__PURE__ */ __name((e, t) => typeof e == "string" ? sanitizeText(e, t) : e.flat().map((e) => sanitizeText(e, t)), "sanitizeTextOrArray"), hasBreaks = /* @__PURE__ */ __name((e) => lineBreakRegex.test(e), "hasBreaks"), splitBreaks = /* @__PURE__ */ __name((e) => e.split(lineBreakRegex), "splitBreaks"), placeholderToBreak = /* @__PURE__ */ __name((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), breakToPlaceholder = /* @__PURE__ */ __name((e) => e.replace(lineBreakRegex, "#br#"), "breakToPlaceholder"), getUrl = /* @__PURE__ */ __name((e) => {
2327
+ let t = "";
2328
+ return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
2329
+ }, "getUrl"), evaluate = /* @__PURE__ */ __name((e) => !(e === !1 || [
2330
+ "false",
2331
+ "null",
2332
+ "0"
2333
+ ].includes(String(e).trim().toLowerCase())), "evaluate"), getMax = /* @__PURE__ */ __name(function(...e) {
2334
+ let t = e.filter((e) => !isNaN(e));
2335
+ return Math.max(...t);
2336
+ }, "getMax"), getMin = /* @__PURE__ */ __name(function(...e) {
2337
+ let t = e.filter((e) => !isNaN(e));
2338
+ return Math.min(...t);
2339
+ }, "getMin"), parseGenericTypes = /* @__PURE__ */ __name(function(e) {
2340
+ let t = e.split(/(,)/), n = [];
2341
+ for (let e = 0; e < t.length; e++) {
2342
+ let r = t[e];
2343
+ if (r === "," && e > 0 && e + 1 < t.length) {
2344
+ let i = t[e - 1], a = t[e + 1];
2345
+ shouldCombineSets(i, a) && (r = i + "," + a, e++, n.pop());
2346
+ }
2347
+ n.push(processSet(r));
2348
+ }
2349
+ return n.join("");
2350
+ }, "parseGenericTypes"), countOccurrence = /* @__PURE__ */ __name((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), shouldCombineSets = /* @__PURE__ */ __name((e, t) => {
2351
+ let n = countOccurrence(e, "~"), r = countOccurrence(t, "~");
2352
+ return n === 1 && r === 1;
2353
+ }, "shouldCombineSets"), processSet = /* @__PURE__ */ __name((e) => {
2354
+ let t = countOccurrence(e, "~"), n = !1;
2355
+ if (t <= 1) return e;
2356
+ t % 2 != 0 && e.startsWith("~") && (e = e.substring(1), n = !0);
2357
+ let r = [...e], i = r.indexOf("~"), a = r.lastIndexOf("~");
2358
+ for (; i !== -1 && a !== -1 && i !== a;) r[i] = "<", r[a] = ">", i = r.indexOf("~"), a = r.lastIndexOf("~");
2359
+ return n && r.unshift("~"), r.join("");
2360
+ }, "processSet"), isMathMLSupported = /* @__PURE__ */ __name(() => window.MathMLElement !== void 0, "isMathMLSupported"), katexRegex = /\$\$(.*)\$\$/g, hasKatex = /* @__PURE__ */ __name((e) => (e.match(katexRegex)?.length ?? 0) > 0, "hasKatex"), calculateMathMLDimensions = /* @__PURE__ */ __name(async (e, t) => {
2361
+ let n = document.createElement("div");
2362
+ n.innerHTML = await renderKatexSanitized(e, t), n.id = "katex-temp", n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", n);
2363
+ let r = {
2364
+ width: n.clientWidth,
2365
+ height: n.clientHeight
2366
+ };
2367
+ return n.remove(), r;
2368
+ }, "calculateMathMLDimensions"), renderKatexUnsanitized = /* @__PURE__ */ __name(async (e, t) => {
2369
+ if (!hasKatex(e)) return e;
2370
+ if (!(isMathMLSupported() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(katexRegex, "MathML is unsupported in this environment.");
2371
+ {
2372
+ let { default: n } = await import("./katex-Dc1vXbUC.mjs"), r = t.forceLegacyMathML || !isMathMLSupported() && t.legacyMathML ? "htmlAndMathml" : "mathml";
2373
+ return e.split(lineBreakRegex).map((e) => hasKatex(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(katexRegex, (e, t) => n.renderToString(t, {
2374
+ throwOnError: !0,
2375
+ displayMode: !0,
2376
+ output: r
2377
+ }).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
2378
+ }
2379
+ return e.replace(katexRegex, "Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.");
2380
+ }, "renderKatexUnsanitized"), renderKatexSanitized = /* @__PURE__ */ __name(async (e, t) => sanitizeText(await renderKatexUnsanitized(e, t), t), "renderKatexSanitized"), common_default = {
2381
+ getRows,
2382
+ sanitizeText,
2383
+ sanitizeTextOrArray,
2384
+ hasBreaks,
2385
+ splitBreaks,
2386
+ lineBreakRegex,
2387
+ removeScript,
2388
+ getUrl,
2389
+ evaluate,
2390
+ getMax,
2391
+ getMin
2392
+ }, d3Attrs = /* @__PURE__ */ __name(function(e, t) {
2393
+ for (let n of t) e.attr(n[0], n[1]);
2394
+ }, "d3Attrs"), calculateSvgSizeAttrs = /* @__PURE__ */ __name(function(e, t, n) {
2395
+ let r = /* @__PURE__ */ new Map();
2396
+ return n ? (r.set("width", "100%"), r.set("style", `max-width: ${t}px;`)) : (r.set("height", e), r.set("width", t)), r;
2397
+ }, "calculateSvgSizeAttrs"), configureSvgSize = /* @__PURE__ */ __name(function(e, t, n, r) {
2398
+ d3Attrs(e, calculateSvgSizeAttrs(t, n, r));
2399
+ }, "configureSvgSize"), setupGraphViewbox = /* @__PURE__ */ __name(function(e, n, r, i) {
2400
+ let a = n.node().getBBox(), o = a.width, s = a.height;
2401
+ log.info(`SVG bounds: ${o}x${s}`, a);
2402
+ let c = 0, l = 0;
2403
+ log.info(`Graph bounds: ${c}x${l}`, e), c = o + r * 2, l = s + r * 2, log.info(`Calculated bounds: ${c}x${l}`), configureSvgSize(n, l, c, i);
2404
+ let u = `${a.x - r} ${a.y - r} ${a.width + 2 * r} ${a.height + 2 * r}`;
2405
+ n.attr("viewBox", u);
2406
+ }, "setupGraphViewbox"), themes = {}, getStyles = /* @__PURE__ */ __name((e, n, r) => {
2407
+ let i = "";
2408
+ return e in themes && themes[e] ? i = themes[e](r) : log.warn(`No theme found for ${e}`), ` & {
2409
+ font-family: ${r.fontFamily};
2410
+ font-size: ${r.fontSize};
2411
+ fill: ${r.textColor}
2412
+ }
2413
+ @keyframes edge-animation-frame {
2414
+ from {
2415
+ stroke-dashoffset: 0;
2416
+ }
2417
+ }
2418
+ @keyframes dash {
2419
+ to {
2420
+ stroke-dashoffset: 0;
2421
+ }
2422
+ }
2423
+ & .edge-animation-slow {
2424
+ stroke-dasharray: 9,5 !important;
2425
+ stroke-dashoffset: 900;
2426
+ animation: dash 50s linear infinite;
2427
+ stroke-linecap: round;
2428
+ }
2429
+ & .edge-animation-fast {
2430
+ stroke-dasharray: 9,5 !important;
2431
+ stroke-dashoffset: 900;
2432
+ animation: dash 20s linear infinite;
2433
+ stroke-linecap: round;
2434
+ }
2435
+ /* Classes common for multiple diagrams */
2436
+
2437
+ & .error-icon {
2438
+ fill: ${r.errorBkgColor};
2439
+ }
2440
+ & .error-text {
2441
+ fill: ${r.errorTextColor};
2442
+ stroke: ${r.errorTextColor};
2443
+ }
2444
+
2445
+ & .edge-thickness-normal {
2446
+ stroke-width: 1px;
2447
+ }
2448
+ & .edge-thickness-thick {
2449
+ stroke-width: 3.5px
2450
+ }
2451
+ & .edge-pattern-solid {
2452
+ stroke-dasharray: 0;
2453
+ }
2454
+ & .edge-thickness-invisible {
2455
+ stroke-width: 0;
2456
+ fill: none;
2457
+ }
2458
+ & .edge-pattern-dashed{
2459
+ stroke-dasharray: 3;
2460
+ }
2461
+ .edge-pattern-dotted {
2462
+ stroke-dasharray: 2;
2463
+ }
2464
+
2465
+ & .marker {
2466
+ fill: ${r.lineColor};
2467
+ stroke: ${r.lineColor};
2468
+ }
2469
+ & .marker.cross {
2470
+ stroke: ${r.lineColor};
2471
+ }
2472
+
2473
+ & svg {
2474
+ font-family: ${r.fontFamily};
2475
+ font-size: ${r.fontSize};
2476
+ }
2477
+ & p {
2478
+ margin: 0
2479
+ }
2480
+
2481
+ ${i}
2482
+
2483
+ ${n}
2484
+ `;
2485
+ }, "getStyles"), addStylesForDiagram = /* @__PURE__ */ __name((e, t) => {
2486
+ t !== void 0 && (themes[e] = t);
2487
+ }, "addStylesForDiagram"), styles_default = getStyles, commonDb_exports = {};
2488
+ __export(commonDb_exports, {
2489
+ clear: () => clear,
2490
+ getAccDescription: () => getAccDescription,
2491
+ getAccTitle: () => getAccTitle,
2492
+ getDiagramTitle: () => getDiagramTitle,
2493
+ setAccDescription: () => setAccDescription,
2494
+ setAccTitle: () => setAccTitle,
2495
+ setDiagramTitle: () => setDiagramTitle
2496
+ });
2497
+ var accTitle = "", diagramTitle = "", accDescription = "", sanitizeText2 = /* @__PURE__ */ __name((e) => sanitizeText(e, getConfig()), "sanitizeText"), clear = /* @__PURE__ */ __name(() => {
2498
+ accTitle = "", accDescription = "", diagramTitle = "";
2499
+ }, "clear"), setAccTitle = /* @__PURE__ */ __name((e) => {
2500
+ accTitle = sanitizeText2(e).replace(/^\s+/g, "");
2501
+ }, "setAccTitle"), getAccTitle = /* @__PURE__ */ __name(() => accTitle, "getAccTitle"), setAccDescription = /* @__PURE__ */ __name((e) => {
2502
+ accDescription = sanitizeText2(e).replace(/\n\s+/g, "\n");
2503
+ }, "setAccDescription"), getAccDescription = /* @__PURE__ */ __name(() => accDescription, "getAccDescription"), setDiagramTitle = /* @__PURE__ */ __name((e) => {
2504
+ diagramTitle = sanitizeText2(e);
2505
+ }, "setDiagramTitle"), getDiagramTitle = /* @__PURE__ */ __name(() => diagramTitle, "getDiagramTitle"), log2 = log, setLogLevel2 = setLogLevel, getConfig2 = getConfig, setConfig2 = setConfig, defaultConfig2 = defaultConfig, sanitizeText3 = /* @__PURE__ */ __name((e) => sanitizeText(e, getConfig2()), "sanitizeText"), setupGraphViewbox2 = setupGraphViewbox, getCommonDb = /* @__PURE__ */ __name(() => commonDb_exports, "getCommonDb"), diagrams = {}, registerDiagram = /* @__PURE__ */ __name((e, t, n) => {
2506
+ diagrams[e] && log2.warn(`Diagram with id ${e} already registered. Overwriting.`), diagrams[e] = t, n && addDetector(e, n), addStylesForDiagram(e, t.styles), t.injectUtils?.(log2, setLogLevel2, getConfig2, sanitizeText3, setupGraphViewbox2, getCommonDb(), () => {});
2507
+ }, "registerDiagram"), getDiagram = /* @__PURE__ */ __name((e) => {
2508
+ if (e in diagrams) return diagrams[e];
2509
+ throw new DiagramNotFoundError(e);
2510
+ }, "getDiagram"), DiagramNotFoundError = class extends Error {
2511
+ static #_ = __name(this, "DiagramNotFoundError");
2512
+ constructor(e) {
2513
+ super(`Diagram ${e} not found.`);
2514
+ }
2515
+ };
2516
+ export { is_dark_default as $, parseGenericTypes as A, setAccTitle as B, getDiagramTitle as C, getUserDefinedConfig as D, getUrl as E, sanitizeDirective as F, setupGraphViewbox as G, setConfig2 as H, sanitizeText as I, themes_default as J, setupGraphViewbox2 as K, sanitizeText3 as L, registerLazyLoadedDiagrams as M, renderKatexSanitized as N, hasKatex as O, reset as P, lighten_default as Q, saveConfigFromInitialize as R, getDiagramLoader as S, getThemeVariables3 as T, setDiagramTitle as U, setConfig as V, setSiteConfig as W, purify as X, updateSiteConfig as Y, darken_default as Z, getAccDescription as _, clear as a, getConfig2 as b, configureSvgSize as c, defaultConfig_default as d, rgba_default as et, detectType as f, frontMatterRegex as g, evaluate as h, calculateMathMLDimensions as i, registerDiagram as j, lineBreakRegex as k, defaultConfig as l, directiveRegex as m, addDirective as n, utils_default as nt, commonDb_exports as o, detectors as p, styles_default as q, assignWithDepth_default as r, common_default as s, UnknownDiagramError as t, color_default as tt, defaultConfig2 as u, getAccTitle as v, getSiteConfig as w, getDiagram as x, getConfig as y, setAccDescription as z };