@toimc/markdown 0.0.1 → 0.0.2

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 (237) hide show
  1. package/dist/{CodeBlock.vue.d.ts → components/CodeBlock.vue.d.ts} +10 -1
  2. package/dist/components/CodeBlock.vue.d.ts.map +1 -0
  3. package/dist/components/LatexBlock.vue.d.ts.map +1 -0
  4. package/dist/components/MarkdownRenderer.vue.d.ts.map +1 -0
  5. package/dist/components/MermaidBlock.vue.d.ts.map +1 -0
  6. package/dist/composables/useMarkdownIt.d.ts.map +1 -1
  7. package/dist/index.cjs +62 -59
  8. package/dist/index.d.ts +4 -4
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.mjs +4536 -4331
  11. package/dist/markdown.css +1 -1
  12. package/dist/utils/formula-guard.d.ts +13 -0
  13. package/dist/utils/formula-guard.d.ts.map +1 -0
  14. package/dist/utils/split-lines.d.ts +10 -0
  15. package/dist/utils/split-lines.d.ts.map +1 -0
  16. package/package.json +6 -3
  17. package/dist/CodeBlock.test.d.ts +0 -2
  18. package/dist/CodeBlock.test.d.ts.map +0 -1
  19. package/dist/CodeBlock.vue.d.ts.map +0 -1
  20. package/dist/LatexBlock.test.d.ts +0 -2
  21. package/dist/LatexBlock.test.d.ts.map +0 -1
  22. package/dist/LatexBlock.vue.d.ts.map +0 -1
  23. package/dist/MarkdownRenderer.test.d.ts +0 -2
  24. package/dist/MarkdownRenderer.test.d.ts.map +0 -1
  25. package/dist/MarkdownRenderer.vue.d.ts.map +0 -1
  26. package/dist/MermaidBlock.test.d.ts +0 -2
  27. package/dist/MermaidBlock.test.d.ts.map +0 -1
  28. package/dist/MermaidBlock.vue.d.ts.map +0 -1
  29. package/dist/abnfDiagram-N423BO3Z-CpvDGmAd.cjs +0 -1
  30. package/dist/abnfDiagram-N423BO3Z-DuAPsGBR.js +0 -89
  31. package/dist/arc-CFxpoaLu.js +0 -82
  32. package/dist/arc-Dh2Zrypi.cjs +0 -1
  33. package/dist/architecture-TIHT7OUA-CUym9zMN.cjs +0 -1
  34. package/dist/architecture-TIHT7OUA-DDwCCw0y.js +0 -3
  35. package/dist/architectureDiagram-T3A2C74G-CS6-PQjR.cjs +0 -36
  36. package/dist/architectureDiagram-T3A2C74G-d7xzbLJQ.js +0 -4155
  37. package/dist/array-CApNbSU9.js +0 -6
  38. package/dist/array-DZSRzHA_.cjs +0 -1
  39. package/dist/blockDiagram-VBNYF7ZC-CnvNE8Hq.js +0 -3157
  40. package/dist/blockDiagram-VBNYF7ZC-DVl7vKmv.cjs +0 -132
  41. package/dist/c4Diagram-5PPSVZJV-B1RTcquO.js +0 -2982
  42. package/dist/c4Diagram-5PPSVZJV-Djkk0hzr.cjs +0 -10
  43. package/dist/channel-CNZiSge7.cjs +0 -1
  44. package/dist/channel-CqlbSsMQ.js +0 -5
  45. package/dist/chunk-2GRJ4B5K-BgeLbn06.cjs +0 -1
  46. package/dist/chunk-2GRJ4B5K-C5VToU5T.js +0 -61
  47. package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +0 -1
  48. package/dist/chunk-2Q5K7J3B-C3WfnuyI.js +0 -15
  49. package/dist/chunk-4I5QYGJK-Bs8S-Wfu.js +0 -275
  50. package/dist/chunk-4I5QYGJK-CBqJO_mi.cjs +0 -1
  51. package/dist/chunk-5RXB4S5H-BnJ1P9K2.js +0 -2042
  52. package/dist/chunk-5RXB4S5H-BtEDiC1U.cjs +0 -231
  53. package/dist/chunk-5VM5RSS4-BsUXY5k9.js +0 -5
  54. package/dist/chunk-5VM5RSS4-CwDmQ9T_.cjs +0 -15
  55. package/dist/chunk-6Q2QTUOP-C0P-wtth.js +0 -490
  56. package/dist/chunk-6Q2QTUOP-UC-G8b3B.cjs +0 -88
  57. package/dist/chunk-7BUUIJ7U-CZdUK2qY.js +0 -82
  58. package/dist/chunk-7BUUIJ7U-MzS1pW_S.cjs +0 -1
  59. package/dist/chunk-7Z6QIM7H-CJdupq9f.js +0 -593
  60. package/dist/chunk-7Z6QIM7H-CUGcycR0.cjs +0 -10
  61. package/dist/chunk-GF5L2VYU-CDGpCl8Z.js +0 -3357
  62. package/dist/chunk-GF5L2VYU-DWhSvqYP.cjs +0 -206
  63. package/dist/chunk-I66GZJ75-D8wVRUgw.cjs +0 -127
  64. package/dist/chunk-I66GZJ75-xmbkwRyp.js +0 -3754
  65. package/dist/chunk-JQJVKLGR-B-jNEb9r.js +0 -4135
  66. package/dist/chunk-JQJVKLGR-CbhQdRxu.cjs +0 -156
  67. package/dist/chunk-JWPE2WC7-B8JIODrM.js +0 -8
  68. package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +0 -1
  69. package/dist/chunk-KBJHAD2P-BMuT9eJO.cjs +0 -1
  70. package/dist/chunk-KBJHAD2P-CCpB6hWQ.js +0 -26
  71. package/dist/chunk-KEIR6QF5-RwFi50en.js +0 -21456
  72. package/dist/chunk-KEIR6QF5-rUKzMPy0.cjs +0 -161
  73. package/dist/chunk-NSK5VX7P-BO1SrWAL.js +0 -1335
  74. package/dist/chunk-NSK5VX7P-BiC_63US.cjs +0 -2
  75. package/dist/chunk-QR6OTTB3-BSxbyKp_.cjs +0 -62
  76. package/dist/chunk-QR6OTTB3-CGxJcV-X.js +0 -3738
  77. package/dist/chunk-RYQCIY6F-Lf2oVMMh.cjs +0 -1
  78. package/dist/chunk-RYQCIY6F-UBebC0ib.js +0 -241
  79. package/dist/chunk-UBXNYLIW-BURVNZm2.cjs +0 -1
  80. package/dist/chunk-UBXNYLIW-fOGkdEwd.js +0 -32
  81. package/dist/chunk-W5SLKNZC-BLFqePZ1.cjs +0 -1
  82. package/dist/chunk-W5SLKNZC-C2SYjJjL.js +0 -67
  83. package/dist/chunk-WRU74C26-Cr4HTCc1.cjs +0 -70
  84. package/dist/chunk-WRU74C26-UGtU6H2a.js +0 -1636
  85. package/dist/chunk-XXDRQBXY-GENMsCHk.js +0 -9
  86. package/dist/chunk-XXDRQBXY-yMT3rT5Y.cjs +0 -1
  87. package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +0 -1
  88. package/dist/chunk-Y2CYZVJY-DO9UHHon.js +0 -12
  89. package/dist/classDiagram-JCYQIIEL-DUjWUDYG.cjs +0 -1
  90. package/dist/classDiagram-JCYQIIEL-Dm9anlJw.js +0 -30
  91. package/dist/classDiagram-v2-OCEON4UE-Bl-vyFyz.js +0 -30
  92. package/dist/classDiagram-v2-OCEON4UE-DUjWUDYG.cjs +0 -1
  93. package/dist/composables/useHighlighter.test.d.ts +0 -2
  94. package/dist/composables/useHighlighter.test.d.ts.map +0 -1
  95. package/dist/composables/useMarkdownIt.test.d.ts +0 -2
  96. package/dist/composables/useMarkdownIt.test.d.ts.map +0 -1
  97. package/dist/composables/useShikiTokenizer.test.d.ts +0 -2
  98. package/dist/composables/useShikiTokenizer.test.d.ts.map +0 -1
  99. package/dist/composables/useStreamingMarkdown.test.d.ts +0 -2
  100. package/dist/composables/useStreamingMarkdown.test.d.ts.map +0 -1
  101. package/dist/cose-bilkent-JH36ORCC-C1RCVzVZ.cjs +0 -1
  102. package/dist/cose-bilkent-JH36ORCC-C5FbROLY.js +0 -2254
  103. package/dist/cynefin-VYW2F7L2-CMgnLl46.js +0 -3
  104. package/dist/cynefin-VYW2F7L2-DVi1CF5b.cjs +0 -1
  105. package/dist/cynefinDiagram-MW4NZA55-CkZY080C.cjs +0 -62
  106. package/dist/cynefinDiagram-MW4NZA55-DbAAx9CC.js +0 -355
  107. package/dist/cytoscape.esm-BKhIYxsH.cjs +0 -321
  108. package/dist/cytoscape.esm-DMXbtFI-.js +0 -18145
  109. package/dist/dagre-DarAkhy1.cjs +0 -1
  110. package/dist/dagre-VZM6K2ZE-CpL0s3GG.js +0 -328
  111. package/dist/dagre-VZM6K2ZE-D1_S1oSj.cjs +0 -4
  112. package/dist/dagre-x4cMb6gU.js +0 -1699
  113. package/dist/defaultLocale-ybN1Vtvg.cjs +0 -1
  114. package/dist/defaultLocale-yzzuPw6P.js +0 -198
  115. package/dist/diagram-7IWD3JNH-BXvOBw2z.js +0 -300
  116. package/dist/diagram-7IWD3JNH-W-Kjft6l.cjs +0 -30
  117. package/dist/diagram-B4RE2ZJO-C4lLgW4X.cjs +0 -3
  118. package/dist/diagram-B4RE2ZJO-DyAAD_bR.js +0 -432
  119. package/dist/diagram-LBJQPF4R-BTgCWP5o.cjs +0 -24
  120. package/dist/diagram-LBJQPF4R-BbMQOpt2.js +0 -134
  121. package/dist/diagram-Q27KOJAE-ink_R6qE.js +0 -527
  122. package/dist/diagram-Q27KOJAE-v-ZMzCxs.cjs +0 -24
  123. package/dist/diagram-UB23O5K3-BXTm2BG0.cjs +0 -41
  124. package/dist/diagram-UB23O5K3-C6rqCJBb.js +0 -214
  125. package/dist/dist-BP2me-br.js +0 -59
  126. package/dist/dist-Dwv2VYAL.cjs +0 -1
  127. package/dist/ebnfDiagram-BXEA7PRR-C80cjdjP.js +0 -100
  128. package/dist/ebnfDiagram-BXEA7PRR-lKO9XwUp.cjs +0 -1
  129. package/dist/erDiagram-JOGREHBK-Blwfr6w3.js +0 -1727
  130. package/dist/erDiagram-JOGREHBK-ChgcmULa.cjs +0 -85
  131. package/dist/eventmodeling-45OFAUF4-BDhzj03B.js +0 -3
  132. package/dist/eventmodeling-45OFAUF4-BtU19idK.cjs +0 -1
  133. package/dist/flowDiagram-UKHOOZJN-Co0JpKUU.js +0 -16
  134. package/dist/flowDiagram-UKHOOZJN-db1Ur2LI.cjs +0 -1
  135. package/dist/ganttDiagram-PKOTCBZU-Byi4E8Ye.js +0 -3073
  136. package/dist/ganttDiagram-PKOTCBZU-C_Vwv1o8.cjs +0 -292
  137. package/dist/gitGraph-TEB2WS4Q-CAeGPNFR.cjs +0 -1
  138. package/dist/gitGraph-TEB2WS4Q-DJA_hE4G.js +0 -3
  139. package/dist/gitGraphDiagram-DS77QQ5N-BG8AQVtP.js +0 -733
  140. package/dist/gitGraphDiagram-DS77QQ5N-DK9VJTjf.cjs +0 -106
  141. package/dist/graphlib-BaETKKSa.cjs +0 -1
  142. package/dist/graphlib-DoD0LnUK.js +0 -1267
  143. package/dist/info-DKCQHKI2-BD_vOCz6.js +0 -3
  144. package/dist/info-DKCQHKI2-p0Lazone.cjs +0 -1
  145. package/dist/infoDiagram-6WML65LV-B6PBOy7T.js +0 -20
  146. package/dist/infoDiagram-6WML65LV-nBSrP53Z.cjs +0 -2
  147. package/dist/init-BJdqMO10.cjs +0 -1
  148. package/dist/init-sjaVZO3f.js +0 -13
  149. package/dist/ishikawaDiagram-WSZJBQD7-BxEkaF2A.js +0 -719
  150. package/dist/ishikawaDiagram-WSZJBQD7-CjyKQ_N6.cjs +0 -70
  151. package/dist/journeyDiagram-NVQOT4AX-BPCuqjbW.js +0 -884
  152. package/dist/journeyDiagram-NVQOT4AX-DKgEeNcy.cjs +0 -139
  153. package/dist/kanban-definition-27J2QSJJ-BeKnR9zB.cjs +0 -89
  154. package/dist/kanban-definition-27J2QSJJ-D1pVuCv2.js +0 -974
  155. package/dist/katex-BfeHGk4M.js +0 -21977
  156. package/dist/katex-CEF6MvLx.cjs +0 -257
  157. package/dist/line-8EHPtDZA.cjs +0 -1
  158. package/dist/line-BifI9Y7j.js +0 -34
  159. package/dist/linear-Nt9BuHfn.cjs +0 -1
  160. package/dist/linear-l8AD1ib_.js +0 -288
  161. package/dist/map-CCpPjiU9.cjs +0 -1
  162. package/dist/map-DUk1uXZC.js +0 -241
  163. package/dist/mermaid-parser.core-BupC9XGF.js +0 -638
  164. package/dist/mermaid-parser.core-aXxW1VLR.cjs +0 -6
  165. package/dist/mermaid.core-C05C5gh_.cjs +0 -41
  166. package/dist/mermaid.core-CxM-VhZd.js +0 -2297
  167. package/dist/mindmap-definition-FAOFIHXS-B_k8KOvw.js +0 -1006
  168. package/dist/mindmap-definition-FAOFIHXS-CKPAiVKf.cjs +0 -96
  169. package/dist/ordinal-Bm_chml2.cjs +0 -1
  170. package/dist/ordinal-CNQzPcrr.js +0 -65
  171. package/dist/packet-7NZHBO7P-CVdRavgo.cjs +0 -1
  172. package/dist/packet-7NZHBO7P-CgBlALV1.js +0 -3
  173. package/dist/path-DIS6ck99.cjs +0 -1
  174. package/dist/path-DVvH25eQ.js +0 -84
  175. package/dist/pegDiagram-VL7TDLO6-B5Jhedbv.cjs +0 -1
  176. package/dist/pegDiagram-VL7TDLO6-PP-A-3Lv.js +0 -94
  177. package/dist/pie-RZYD4A2V-CryPC-P_.js +0 -3
  178. package/dist/pie-RZYD4A2V-CwDJ0bEW.cjs +0 -1
  179. package/dist/pieDiagram-7S7Q4E2Y-CgDU9E10.cjs +0 -39
  180. package/dist/pieDiagram-7S7Q4E2Y-CxNt1xaN.js +0 -203
  181. package/dist/quadrantDiagram-CIZ2JOQS-CMUanfcR.js +0 -2001
  182. package/dist/quadrantDiagram-CIZ2JOQS-vybEBK1o.cjs +0 -7
  183. package/dist/radar-I7S5WNFK-DaVgEjvC.cjs +0 -1
  184. package/dist/radar-I7S5WNFK-DgzJDRy3.js +0 -3
  185. package/dist/railroad-3IZDKUUU-BPsrMjqz.cjs +0 -1
  186. package/dist/railroad-3IZDKUUU-DFp3mbpB.js +0 -3
  187. package/dist/railroad-abnf-AHOZXSZD-BRjidKH0.js +0 -3
  188. package/dist/railroad-abnf-AHOZXSZD-ZpHq_KEy.cjs +0 -1
  189. package/dist/railroad-ebnf-EBAXGLYW-B45niwuq.cjs +0 -1
  190. package/dist/railroad-ebnf-EBAXGLYW-PgrDWact.js +0 -3
  191. package/dist/railroad-peg-LSFZ7HO6-CMKir81Y.js +0 -3
  192. package/dist/railroad-peg-LSFZ7HO6-DUsuEX2Z.cjs +0 -1
  193. package/dist/railroadDiagram-AXF67PYL-D7y_2yAa.cjs +0 -1
  194. package/dist/railroadDiagram-AXF67PYL-iLkvx2oU.js +0 -76
  195. package/dist/renderers/tokensToHtml.test.d.ts +0 -2
  196. package/dist/renderers/tokensToHtml.test.d.ts.map +0 -1
  197. package/dist/requirementDiagram-LRYGKXZP-Bs2mCDzB.js +0 -2223
  198. package/dist/requirementDiagram-LRYGKXZP-lA2nVr6h.cjs +0 -84
  199. package/dist/rolldown-runtime-B0aSnxlc.js +0 -20
  200. package/dist/rolldown-runtime-DF3sbh8G.cjs +0 -1
  201. package/dist/rough.esm-B2w_aYoc.js +0 -1361
  202. package/dist/rough.esm-ChRLLRha.cjs +0 -1
  203. package/dist/sankeyDiagram-W5VNT64P-BxYQllhE.js +0 -972
  204. package/dist/sankeyDiagram-W5VNT64P-vPci5pOT.cjs +0 -40
  205. package/dist/sequenceDiagram-SI44F4Z6-BNu1-3EN.cjs +0 -162
  206. package/dist/sequenceDiagram-SI44F4Z6-E6AoYU_R.js +0 -4156
  207. package/dist/sizeCapture-X5ZJPWSS-8gbZlYqg.js +0 -46
  208. package/dist/sizeCapture-X5ZJPWSS-bJ2ZX4Du.cjs +0 -1
  209. package/dist/src-C7bjHtAI.js +0 -2139
  210. package/dist/src-D9o9TOtH.cjs +0 -1
  211. package/dist/stateDiagram-OKZ733FA-B7ITlY91.cjs +0 -1
  212. package/dist/stateDiagram-OKZ733FA-BfcOAK65.js +0 -220
  213. package/dist/stateDiagram-v2-UEYNNEHI-BHO-uUPG.js +0 -30
  214. package/dist/stateDiagram-v2-UEYNNEHI-lgGjJyRM.cjs +0 -1
  215. package/dist/swimlanes-SLNWSIFB-BHIPInzG.js +0 -5069
  216. package/dist/swimlanes-SLNWSIFB-C-Z31wMl.cjs +0 -1
  217. package/dist/swimlanesDiagram-ULZ7WXOC-C8pvRoyc.cjs +0 -8
  218. package/dist/swimlanesDiagram-ULZ7WXOC-CK6AVyRM.js +0 -30
  219. package/dist/timeline-definition-Z64GVDOM-C31otJwb.cjs +0 -120
  220. package/dist/timeline-definition-Z64GVDOM-rUKJY7cp.js +0 -1069
  221. package/dist/treeView-QDETBFTQ-BkNUN560.cjs +0 -1
  222. package/dist/treeView-QDETBFTQ-DVp4aTZQ.js +0 -3
  223. package/dist/treemap-6X3UGDF4-BbBnHMHJ.js +0 -3
  224. package/dist/treemap-6X3UGDF4-BcO657a2.cjs +0 -1
  225. package/dist/utils/extractCompleteMarkdown.test.d.ts +0 -2
  226. package/dist/utils/extractCompleteMarkdown.test.d.ts.map +0 -1
  227. package/dist/vennDiagram-T6HMQDX7-DjlTuTEH.cjs +0 -34
  228. package/dist/vennDiagram-T6HMQDX7-vxMe-3nF.js +0 -1880
  229. package/dist/wardley-OPB4EBWU-B-RXhnoN.js +0 -3
  230. package/dist/wardley-OPB4EBWU-CiILNYeL.cjs +0 -1
  231. package/dist/wardleyDiagram-T6FBY63Y-BMQLZV1W.cjs +0 -78
  232. package/dist/wardleyDiagram-T6FBY63Y-C_Q2NmJu.js +0 -645
  233. package/dist/xychartDiagram-ELKLHX3M-Bsa_zeyd.cjs +0 -7
  234. package/dist/xychartDiagram-ELKLHX3M-OcVmrPL6.js +0 -2101
  235. /package/dist/{LatexBlock.vue.d.ts → components/LatexBlock.vue.d.ts} +0 -0
  236. /package/dist/{MarkdownRenderer.vue.d.ts → components/MarkdownRenderer.vue.d.ts} +0 -0
  237. /package/dist/{MermaidBlock.vue.d.ts → components/MermaidBlock.vue.d.ts} +0 -0
@@ -1,3754 +0,0 @@
1
- import { n as e, t } from "./chunk-Y2CYZVJY-DO9UHHon.js";
2
- import { h as n, m as r } from "./src-C7bjHtAI.js";
3
- //#region ../../node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/utils/channel.js
4
- var i = {
5
- min: {
6
- r: 0,
7
- g: 0,
8
- b: 0,
9
- s: 0,
10
- l: 0,
11
- a: 0
12
- },
13
- max: {
14
- r: 255,
15
- g: 255,
16
- b: 255,
17
- h: 360,
18
- s: 100,
19
- l: 100,
20
- a: 1
21
- },
22
- clamp: {
23
- r: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
24
- g: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
25
- b: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
26
- h: (e) => e % 360,
27
- s: (e) => e >= 100 ? 100 : e < 0 ? 0 : e,
28
- l: (e) => e >= 100 ? 100 : e < 0 ? 0 : e,
29
- a: (e) => e >= 1 ? 1 : e < 0 ? 0 : e
30
- },
31
- toLinear: (e) => {
32
- let t = e / 255;
33
- return e > .03928 ? ((t + .055) / 1.055) ** 2.4 : t / 12.92;
34
- },
35
- 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),
36
- hsl2rgb: ({ h: e, s: t, l: n }, r) => {
37
- if (!t) return n * 2.55;
38
- e /= 360, t /= 100, n /= 100;
39
- let a = n < .5 ? n * (1 + t) : n + t - n * t, o = 2 * n - a;
40
- switch (r) {
41
- case "r": return i.hue2rgb(o, a, e + 1 / 3) * 255;
42
- case "g": return i.hue2rgb(o, a, e) * 255;
43
- case "b": return i.hue2rgb(o, a, e - 1 / 3) * 255;
44
- }
45
- },
46
- rgb2hsl: ({ r: e, g: t, b: n }, r) => {
47
- e /= 255, t /= 255, n /= 255;
48
- let i = Math.max(e, t, n), a = Math.min(e, t, n), o = (i + a) / 2;
49
- if (r === "l") return o * 100;
50
- if (i === a) return 0;
51
- let s = i - a, c = o > .5 ? s / (2 - i - a) : s / (i + a);
52
- if (r === "s") return c * 100;
53
- switch (i) {
54
- case e: return ((t - n) / s + (t < n ? 6 : 0)) * 60;
55
- case t: return ((n - e) / s + 2) * 60;
56
- case n: return ((e - t) / s + 4) * 60;
57
- default: return -1;
58
- }
59
- }
60
- }, a = {
61
- channel: i,
62
- lang: {
63
- clamp: (e, t, n) => t > n ? Math.min(t, Math.max(n, e)) : Math.min(n, Math.max(t, e)),
64
- round: (e) => Math.round(e * 1e10) / 1e10
65
- },
66
- unit: { dec2hex: (e) => {
67
- let t = Math.round(e).toString(16);
68
- return t.length > 1 ? t : `0${t}`;
69
- } }
70
- }, o = {};
71
- for (let e = 0; e <= 255; e++) o[e] = a.unit.dec2hex(e);
72
- var s = {
73
- ALL: 0,
74
- RGB: 1,
75
- HSL: 2
76
- }, c = class {
77
- constructor() {
78
- this.type = s.ALL;
79
- }
80
- get() {
81
- return this.type;
82
- }
83
- set(e) {
84
- if (this.type && this.type !== e) throw Error("Cannot change both RGB and HSL channels at the same time");
85
- this.type = e;
86
- }
87
- reset() {
88
- this.type = s.ALL;
89
- }
90
- is(e) {
91
- return this.type === e;
92
- }
93
- }, l = new class {
94
- constructor(e, t) {
95
- this.color = t, this.changed = !1, this.data = e, this.type = new c();
96
- }
97
- set(e, t) {
98
- return this.color = t, this.changed = !1, this.data = e, this.type.type = s.ALL, this;
99
- }
100
- _ensureHSL() {
101
- let e = this.data, { h: t, s: n, l: r } = e;
102
- t === void 0 && (e.h = a.channel.rgb2hsl(e, "h")), n === void 0 && (e.s = a.channel.rgb2hsl(e, "s")), r === void 0 && (e.l = a.channel.rgb2hsl(e, "l"));
103
- }
104
- _ensureRGB() {
105
- let e = this.data, { r: t, g: n, b: r } = e;
106
- t === void 0 && (e.r = a.channel.hsl2rgb(e, "r")), n === void 0 && (e.g = a.channel.hsl2rgb(e, "g")), r === void 0 && (e.b = a.channel.hsl2rgb(e, "b"));
107
- }
108
- get r() {
109
- let e = this.data, t = e.r;
110
- return !this.type.is(s.HSL) && t !== void 0 ? t : (this._ensureHSL(), a.channel.hsl2rgb(e, "r"));
111
- }
112
- get g() {
113
- let e = this.data, t = e.g;
114
- return !this.type.is(s.HSL) && t !== void 0 ? t : (this._ensureHSL(), a.channel.hsl2rgb(e, "g"));
115
- }
116
- get b() {
117
- let e = this.data, t = e.b;
118
- return !this.type.is(s.HSL) && t !== void 0 ? t : (this._ensureHSL(), a.channel.hsl2rgb(e, "b"));
119
- }
120
- get h() {
121
- let e = this.data, t = e.h;
122
- return !this.type.is(s.RGB) && t !== void 0 ? t : (this._ensureRGB(), a.channel.rgb2hsl(e, "h"));
123
- }
124
- get s() {
125
- let e = this.data, t = e.s;
126
- return !this.type.is(s.RGB) && t !== void 0 ? t : (this._ensureRGB(), a.channel.rgb2hsl(e, "s"));
127
- }
128
- get l() {
129
- let e = this.data, t = e.l;
130
- return !this.type.is(s.RGB) && t !== void 0 ? t : (this._ensureRGB(), a.channel.rgb2hsl(e, "l"));
131
- }
132
- get a() {
133
- return this.data.a;
134
- }
135
- set r(e) {
136
- this.type.set(s.RGB), this.changed = !0, this.data.r = e;
137
- }
138
- set g(e) {
139
- this.type.set(s.RGB), this.changed = !0, this.data.g = e;
140
- }
141
- set b(e) {
142
- this.type.set(s.RGB), this.changed = !0, this.data.b = e;
143
- }
144
- set h(e) {
145
- this.type.set(s.HSL), this.changed = !0, this.data.h = e;
146
- }
147
- set s(e) {
148
- this.type.set(s.HSL), this.changed = !0, this.data.s = e;
149
- }
150
- set l(e) {
151
- this.type.set(s.HSL), this.changed = !0, this.data.l = e;
152
- }
153
- set a(e) {
154
- this.changed = !0, this.data.a = e;
155
- }
156
- }({
157
- r: 0,
158
- g: 0,
159
- b: 0,
160
- a: 0
161
- }, "transparent"), u = {
162
- re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,
163
- parse: (e) => {
164
- if (e.charCodeAt(0) !== 35) return;
165
- let t = e.match(u.re);
166
- if (!t) return;
167
- 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;
168
- return l.set({
169
- r: (r >> c * (d + 3) & f) * s,
170
- g: (r >> c * (d + 2) & f) * s,
171
- b: (r >> c * (d + 1) & f) * s,
172
- a: a ? (r & f) * s / 255 : 1
173
- }, e);
174
- },
175
- stringify: (e) => {
176
- let { r: t, g: n, b: r, a: i } = e;
177
- return i < 1 ? `#${o[Math.round(t)]}${o[Math.round(n)]}${o[Math.round(r)]}${o[Math.round(i * 255)]}` : `#${o[Math.round(t)]}${o[Math.round(n)]}${o[Math.round(r)]}`;
178
- }
179
- }, d = {
180
- 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,
181
- hueRe: /^(.+?)(deg|grad|rad|turn)$/i,
182
- _hue2deg: (e) => {
183
- let t = e.match(d.hueRe);
184
- if (t) {
185
- let [, e, n] = t;
186
- switch (n) {
187
- case "grad": return a.channel.clamp.h(parseFloat(e) * .9);
188
- case "rad": return a.channel.clamp.h(parseFloat(e) * 180 / Math.PI);
189
- case "turn": return a.channel.clamp.h(parseFloat(e) * 360);
190
- }
191
- }
192
- return a.channel.clamp.h(parseFloat(e));
193
- },
194
- parse: (e) => {
195
- let t = e.charCodeAt(0);
196
- if (t !== 104 && t !== 72) return;
197
- let n = e.match(d.re);
198
- if (!n) return;
199
- let [, r, i, o, s, c] = n;
200
- return l.set({
201
- h: d._hue2deg(r),
202
- s: a.channel.clamp.s(parseFloat(i)),
203
- l: a.channel.clamp.l(parseFloat(o)),
204
- a: s ? a.channel.clamp.a(c ? parseFloat(s) / 100 : parseFloat(s)) : 1
205
- }, e);
206
- },
207
- stringify: (e) => {
208
- let { h: t, s: n, l: r, a: i } = e;
209
- return i < 1 ? `hsla(${a.lang.round(t)}, ${a.lang.round(n)}%, ${a.lang.round(r)}%, ${i})` : `hsl(${a.lang.round(t)}, ${a.lang.round(n)}%, ${a.lang.round(r)}%)`;
210
- }
211
- }, f = {
212
- colors: {
213
- aliceblue: "#f0f8ff",
214
- antiquewhite: "#faebd7",
215
- aqua: "#00ffff",
216
- aquamarine: "#7fffd4",
217
- azure: "#f0ffff",
218
- beige: "#f5f5dc",
219
- bisque: "#ffe4c4",
220
- black: "#000000",
221
- blanchedalmond: "#ffebcd",
222
- blue: "#0000ff",
223
- blueviolet: "#8a2be2",
224
- brown: "#a52a2a",
225
- burlywood: "#deb887",
226
- cadetblue: "#5f9ea0",
227
- chartreuse: "#7fff00",
228
- chocolate: "#d2691e",
229
- coral: "#ff7f50",
230
- cornflowerblue: "#6495ed",
231
- cornsilk: "#fff8dc",
232
- crimson: "#dc143c",
233
- cyanaqua: "#00ffff",
234
- darkblue: "#00008b",
235
- darkcyan: "#008b8b",
236
- darkgoldenrod: "#b8860b",
237
- darkgray: "#a9a9a9",
238
- darkgreen: "#006400",
239
- darkgrey: "#a9a9a9",
240
- darkkhaki: "#bdb76b",
241
- darkmagenta: "#8b008b",
242
- darkolivegreen: "#556b2f",
243
- darkorange: "#ff8c00",
244
- darkorchid: "#9932cc",
245
- darkred: "#8b0000",
246
- darksalmon: "#e9967a",
247
- darkseagreen: "#8fbc8f",
248
- darkslateblue: "#483d8b",
249
- darkslategray: "#2f4f4f",
250
- darkslategrey: "#2f4f4f",
251
- darkturquoise: "#00ced1",
252
- darkviolet: "#9400d3",
253
- deeppink: "#ff1493",
254
- deepskyblue: "#00bfff",
255
- dimgray: "#696969",
256
- dimgrey: "#696969",
257
- dodgerblue: "#1e90ff",
258
- firebrick: "#b22222",
259
- floralwhite: "#fffaf0",
260
- forestgreen: "#228b22",
261
- fuchsia: "#ff00ff",
262
- gainsboro: "#dcdcdc",
263
- ghostwhite: "#f8f8ff",
264
- gold: "#ffd700",
265
- goldenrod: "#daa520",
266
- gray: "#808080",
267
- green: "#008000",
268
- greenyellow: "#adff2f",
269
- grey: "#808080",
270
- honeydew: "#f0fff0",
271
- hotpink: "#ff69b4",
272
- indianred: "#cd5c5c",
273
- indigo: "#4b0082",
274
- ivory: "#fffff0",
275
- khaki: "#f0e68c",
276
- lavender: "#e6e6fa",
277
- lavenderblush: "#fff0f5",
278
- lawngreen: "#7cfc00",
279
- lemonchiffon: "#fffacd",
280
- lightblue: "#add8e6",
281
- lightcoral: "#f08080",
282
- lightcyan: "#e0ffff",
283
- lightgoldenrodyellow: "#fafad2",
284
- lightgray: "#d3d3d3",
285
- lightgreen: "#90ee90",
286
- lightgrey: "#d3d3d3",
287
- lightpink: "#ffb6c1",
288
- lightsalmon: "#ffa07a",
289
- lightseagreen: "#20b2aa",
290
- lightskyblue: "#87cefa",
291
- lightslategray: "#778899",
292
- lightslategrey: "#778899",
293
- lightsteelblue: "#b0c4de",
294
- lightyellow: "#ffffe0",
295
- lime: "#00ff00",
296
- limegreen: "#32cd32",
297
- linen: "#faf0e6",
298
- magenta: "#ff00ff",
299
- maroon: "#800000",
300
- mediumaquamarine: "#66cdaa",
301
- mediumblue: "#0000cd",
302
- mediumorchid: "#ba55d3",
303
- mediumpurple: "#9370db",
304
- mediumseagreen: "#3cb371",
305
- mediumslateblue: "#7b68ee",
306
- mediumspringgreen: "#00fa9a",
307
- mediumturquoise: "#48d1cc",
308
- mediumvioletred: "#c71585",
309
- midnightblue: "#191970",
310
- mintcream: "#f5fffa",
311
- mistyrose: "#ffe4e1",
312
- moccasin: "#ffe4b5",
313
- navajowhite: "#ffdead",
314
- navy: "#000080",
315
- oldlace: "#fdf5e6",
316
- olive: "#808000",
317
- olivedrab: "#6b8e23",
318
- orange: "#ffa500",
319
- orangered: "#ff4500",
320
- orchid: "#da70d6",
321
- palegoldenrod: "#eee8aa",
322
- palegreen: "#98fb98",
323
- paleturquoise: "#afeeee",
324
- palevioletred: "#db7093",
325
- papayawhip: "#ffefd5",
326
- peachpuff: "#ffdab9",
327
- peru: "#cd853f",
328
- pink: "#ffc0cb",
329
- plum: "#dda0dd",
330
- powderblue: "#b0e0e6",
331
- purple: "#800080",
332
- rebeccapurple: "#663399",
333
- red: "#ff0000",
334
- rosybrown: "#bc8f8f",
335
- royalblue: "#4169e1",
336
- saddlebrown: "#8b4513",
337
- salmon: "#fa8072",
338
- sandybrown: "#f4a460",
339
- seagreen: "#2e8b57",
340
- seashell: "#fff5ee",
341
- sienna: "#a0522d",
342
- silver: "#c0c0c0",
343
- skyblue: "#87ceeb",
344
- slateblue: "#6a5acd",
345
- slategray: "#708090",
346
- slategrey: "#708090",
347
- snow: "#fffafa",
348
- springgreen: "#00ff7f",
349
- tan: "#d2b48c",
350
- teal: "#008080",
351
- thistle: "#d8bfd8",
352
- transparent: "#00000000",
353
- turquoise: "#40e0d0",
354
- violet: "#ee82ee",
355
- wheat: "#f5deb3",
356
- white: "#ffffff",
357
- whitesmoke: "#f5f5f5",
358
- yellow: "#ffff00",
359
- yellowgreen: "#9acd32"
360
- },
361
- parse: (e) => {
362
- e = e.toLowerCase();
363
- let t = f.colors[e];
364
- if (t) return u.parse(t);
365
- },
366
- stringify: (e) => {
367
- let t = u.stringify(e);
368
- for (let e in f.colors) if (f.colors[e] === t) return e;
369
- }
370
- }, p = {
371
- 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,
372
- parse: (e) => {
373
- let t = e.charCodeAt(0);
374
- if (t !== 114 && t !== 82) return;
375
- let n = e.match(p.re);
376
- if (!n) return;
377
- let [, r, i, o, s, c, u, d, f] = n;
378
- return l.set({
379
- r: a.channel.clamp.r(i ? parseFloat(r) * 2.55 : parseFloat(r)),
380
- g: a.channel.clamp.g(s ? parseFloat(o) * 2.55 : parseFloat(o)),
381
- b: a.channel.clamp.b(u ? parseFloat(c) * 2.55 : parseFloat(c)),
382
- a: d ? a.channel.clamp.a(f ? parseFloat(d) / 100 : parseFloat(d)) : 1
383
- }, e);
384
- },
385
- stringify: (e) => {
386
- let { r: t, g: n, b: r, a: i } = e;
387
- return i < 1 ? `rgba(${a.lang.round(t)}, ${a.lang.round(n)}, ${a.lang.round(r)}, ${a.lang.round(i)})` : `rgb(${a.lang.round(t)}, ${a.lang.round(n)}, ${a.lang.round(r)})`;
388
- }
389
- }, m = {
390
- format: {
391
- keyword: f,
392
- hex: u,
393
- rgb: p,
394
- rgba: p,
395
- hsl: d,
396
- hsla: d
397
- },
398
- parse: (e) => {
399
- if (typeof e != "string") return e;
400
- let t = u.parse(e) || p.parse(e) || d.parse(e) || f.parse(e);
401
- if (t) return t;
402
- throw Error(`Unsupported color format: "${e}"`);
403
- },
404
- stringify: (e) => !e.changed && e.color ? e.color : e.type.is(s.HSL) || e.data.r === void 0 ? d.stringify(e) : e.a < 1 || !Number.isInteger(e.r) || !Number.isInteger(e.g) || !Number.isInteger(e.b) ? p.stringify(e) : u.stringify(e)
405
- }, h = (e, t) => {
406
- let n = m.parse(e);
407
- for (let e in t) n[e] = a.channel.clamp[e](t[e]);
408
- return m.stringify(n);
409
- }, g = (e, t, n = 0, r = 1) => {
410
- if (typeof e != "number") return h(e, { a: t });
411
- let i = l.set({
412
- r: a.channel.clamp.r(e),
413
- g: a.channel.clamp.g(t),
414
- b: a.channel.clamp.b(n),
415
- a: a.channel.clamp.a(r)
416
- });
417
- return m.stringify(i);
418
- }, ee = (e) => {
419
- let { r: t, g: n, b: r } = m.parse(e), i = .2126 * a.channel.toLinear(t) + .7152 * a.channel.toLinear(n) + .0722 * a.channel.toLinear(r);
420
- return a.lang.round(i);
421
- }, te = (e) => ee(e) >= .5, _ = (e) => !te(e), v = (e, t, n) => {
422
- let r = m.parse(e), i = r[t], o = a.channel.clamp[t](i + n);
423
- return i !== o && (r[t] = o), m.stringify(r);
424
- }, y = (e, t) => v(e, "l", t), b = (e, t) => v(e, "l", -t), x = (e, t) => {
425
- let n = m.parse(e), r = {};
426
- for (let e in t) t[e] && (r[e] = n[e] + t[e]);
427
- return h(e, r);
428
- }, ne = (e, t, n = 50) => {
429
- let { r, g: i, b: a, a: o } = m.parse(e), { r: s, g: c, b: l, a: u } = m.parse(t), d = n / 100, f = d * 2 - 1, p = o - u, h = ((f * p === -1 ? f : (f + p) / (1 + f * p)) + 1) / 2, ee = 1 - h;
430
- return g(r * h + s * ee, i * h + c * ee, a * h + l * ee, o * d + u * (1 - d));
431
- }, S = (e, t = 100) => {
432
- let n = m.parse(e);
433
- return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b, ne(n, e, t);
434
- };
435
- //#endregion
436
- //#region ../../node_modules/.pnpm/dompurify@3.4.11/node_modules/dompurify/dist/purify.es.mjs
437
- function re(e, t) {
438
- (t == null || t > e.length) && (t = e.length);
439
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
440
- return r;
441
- }
442
- function ie(e) {
443
- if (Array.isArray(e)) return e;
444
- }
445
- function ae(e, t) {
446
- var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
447
- if (n != null) {
448
- var r, i, a, o, s = [], c = !0, l = !1;
449
- try {
450
- if (a = (n = n.call(e)).next, t !== 0) for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
451
- } catch (e) {
452
- l = !0, i = e;
453
- } finally {
454
- try {
455
- if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
456
- } finally {
457
- if (l) throw i;
458
- }
459
- }
460
- return s;
461
- }
462
- }
463
- function oe() {
464
- throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
465
- }
466
- function se(e, t) {
467
- return ie(e) || ae(e, t) || ce(e, t) || oe();
468
- }
469
- function ce(e, t) {
470
- if (e) {
471
- if (typeof e == "string") return re(e, t);
472
- var n = {}.toString.call(e).slice(8, -1);
473
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? re(e, t) : void 0;
474
- }
475
- }
476
- var le = Object.entries, ue = Object.setPrototypeOf, de = Object.isFrozen, fe = Object.getPrototypeOf, pe = Object.getOwnPropertyDescriptor, C = Object.freeze, w = Object.seal, me = Object.create, T = typeof Reflect < "u" && Reflect, he = T.apply, ge = T.construct;
477
- C ||= function(e) {
478
- return e;
479
- }, w ||= function(e) {
480
- return e;
481
- }, he ||= function(e, t) {
482
- var n = [...arguments].slice(2);
483
- return e.apply(t, n);
484
- }, ge ||= function(e) {
485
- return new e(...[...arguments].slice(1));
486
- };
487
- var _e = O(Array.prototype.forEach), ve = O(Array.prototype.lastIndexOf), ye = O(Array.prototype.pop), be = O(Array.prototype.push), xe = O(Array.prototype.splice), Se = Array.isArray, Ce = O(String.prototype.toLowerCase), we = O(String.prototype.toString), Te = O(String.prototype.match), Ee = O(String.prototype.replace), De = O(String.prototype.indexOf), Oe = O(String.prototype.trim), ke = O(Number.prototype.toString), Ae = O(Boolean.prototype.toString), je = typeof BigInt > "u" ? null : O(BigInt.prototype.toString), Me = typeof Symbol > "u" ? null : O(Symbol.prototype.toString), E = O(Object.prototype.hasOwnProperty), Ne = O(Object.prototype.toString), D = O(RegExp.prototype.test), Pe = Fe(TypeError);
488
- function O(e) {
489
- return function(t) {
490
- t instanceof RegExp && (t.lastIndex = 0);
491
- var n = [...arguments].slice(1);
492
- return he(e, t, n);
493
- };
494
- }
495
- function Fe(e) {
496
- return function() {
497
- return ge(e, [...arguments]);
498
- };
499
- }
500
- function k(e, t) {
501
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ce;
502
- if (ue && ue(e, null), !Se(t)) return e;
503
- let r = t.length;
504
- for (; r--;) {
505
- let i = t[r];
506
- if (typeof i == "string") {
507
- let e = n(i);
508
- e !== i && (de(t) || (t[r] = e), i = e);
509
- }
510
- e[i] = !0;
511
- }
512
- return e;
513
- }
514
- function A(e) {
515
- for (let t = 0; t < e.length; t++) E(e, t) || (e[t] = null);
516
- return e;
517
- }
518
- function j(e) {
519
- let t = me(null);
520
- for (let r of le(e)) {
521
- var n = se(r, 2);
522
- let i = n[0], a = n[1];
523
- E(e, i) && (t[i] = Se(a) ? A(a) : a && typeof a == "object" && a.constructor === Object ? j(a) : a);
524
- }
525
- return t;
526
- }
527
- function Ie(e) {
528
- switch (typeof e) {
529
- case "string": return e;
530
- case "number": return ke(e);
531
- case "boolean": return Ae(e);
532
- case "bigint": return je ? je(e) : "0";
533
- case "symbol": return Me ? Me(e) : "Symbol()";
534
- case "undefined": return Ne(e);
535
- case "function":
536
- case "object": {
537
- if (e === null) return Ne(e);
538
- let t = e, n = M(t, "toString");
539
- if (typeof n == "function") {
540
- let e = n(t);
541
- return typeof e == "string" ? e : Ne(e);
542
- }
543
- return Ne(e);
544
- }
545
- default: return Ne(e);
546
- }
547
- }
548
- function M(e, t) {
549
- for (; e !== null;) {
550
- let n = pe(e, t);
551
- if (n) {
552
- if (n.get) return O(n.get);
553
- if (typeof n.value == "function") return O(n.value);
554
- }
555
- e = fe(e);
556
- }
557
- function n() {
558
- return null;
559
- }
560
- return n;
561
- }
562
- function Le(e) {
563
- try {
564
- return D(e, ""), !0;
565
- } catch {
566
- return !1;
567
- }
568
- }
569
- var Re = C(/* @__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(".")), ze = C(/* @__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(".")), Be = C([
570
- "feBlend",
571
- "feColorMatrix",
572
- "feComponentTransfer",
573
- "feComposite",
574
- "feConvolveMatrix",
575
- "feDiffuseLighting",
576
- "feDisplacementMap",
577
- "feDistantLight",
578
- "feDropShadow",
579
- "feFlood",
580
- "feFuncA",
581
- "feFuncB",
582
- "feFuncG",
583
- "feFuncR",
584
- "feGaussianBlur",
585
- "feImage",
586
- "feMerge",
587
- "feMergeNode",
588
- "feMorphology",
589
- "feOffset",
590
- "fePointLight",
591
- "feSpecularLighting",
592
- "feSpotLight",
593
- "feTile",
594
- "feTurbulence"
595
- ]), Ve = C([
596
- "animate",
597
- "color-profile",
598
- "cursor",
599
- "discard",
600
- "font-face",
601
- "font-face-format",
602
- "font-face-name",
603
- "font-face-src",
604
- "font-face-uri",
605
- "foreignobject",
606
- "hatch",
607
- "hatchpath",
608
- "mesh",
609
- "meshgradient",
610
- "meshpatch",
611
- "meshrow",
612
- "missing-glyph",
613
- "script",
614
- "set",
615
- "solidcolor",
616
- "unknown",
617
- "use"
618
- ]), He = C(/* @__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(".")), Ue = C([
619
- "maction",
620
- "maligngroup",
621
- "malignmark",
622
- "mlongdiv",
623
- "mscarries",
624
- "mscarry",
625
- "msgroup",
626
- "mstack",
627
- "msline",
628
- "msrow",
629
- "semantics",
630
- "annotation",
631
- "annotation-xml",
632
- "mprescripts",
633
- "none"
634
- ]), We = C(["#text"]), Ge = C(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.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".split(".")), Ke = C(/* @__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(".")), qe = C(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.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(".")), Je = C([
635
- "xlink:href",
636
- "xml:id",
637
- "xlink:title",
638
- "xml:space",
639
- "xmlns:xlink"
640
- ]), Ye = w(/{{[\w\W]*|^[\w\W]*}}/g), Xe = w(/<%[\w\W]*|^[\w\W]*%>/g), Ze = w(/\${[\w\W]*/g), Qe = w(/^data-[\-\w.\u00B7-\uFFFF]+$/), $e = w(/^aria-[\-\w]+$/), et = w(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), tt = w(/^(?:\w+script|data):/i), nt = w(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), rt = w(/^html$/i), it = w(/^[a-z][.\w]*(-[.\w]+)+$/i), at = w(/<[/\w!]/g), ot = w(/<[/\w]/g), st = w(/<\/no(script|embed|frames)/i), ct = w(/\/>/i), N = {
641
- element: 1,
642
- attribute: 2,
643
- text: 3,
644
- cdataSection: 4,
645
- entityReference: 5,
646
- entityNode: 6,
647
- processingInstruction: 7,
648
- comment: 8,
649
- document: 9,
650
- documentType: 10,
651
- documentFragment: 11,
652
- notation: 12
653
- }, lt = function() {
654
- return typeof window > "u" ? null : window;
655
- }, ut = function(e, t) {
656
- if (typeof e != "object" || typeof e.createPolicy != "function") return null;
657
- let n = null, r = "data-tt-policy-suffix";
658
- t && t.hasAttribute(r) && (n = t.getAttribute(r));
659
- let i = "dompurify" + (n ? "#" + n : "");
660
- try {
661
- return e.createPolicy(i, {
662
- createHTML(e) {
663
- return e;
664
- },
665
- createScriptURL(e) {
666
- return e;
667
- }
668
- });
669
- } catch {
670
- return console.warn("TrustedTypes policy " + i + " could not be created."), null;
671
- }
672
- }, dt = function() {
673
- return {
674
- afterSanitizeAttributes: [],
675
- afterSanitizeElements: [],
676
- afterSanitizeShadowDOM: [],
677
- beforeSanitizeAttributes: [],
678
- beforeSanitizeElements: [],
679
- beforeSanitizeShadowDOM: [],
680
- uponSanitizeAttribute: [],
681
- uponSanitizeElement: [],
682
- uponSanitizeShadowNode: []
683
- };
684
- }, ft = function(e, t, n, r) {
685
- return E(e, t) && Se(e[t]) ? k(r.base ? j(r.base) : {}, e[t], r.transform) : n;
686
- };
687
- function pt() {
688
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : lt(), t = (e) => pt(e);
689
- if (t.version = "3.4.11", t.removed = [], !e || !e.document || e.document.nodeType !== N.document || !e.Element) return t.isSupported = !1, t;
690
- let n = e.document, r = n, i = r.currentScript;
691
- e.DocumentFragment;
692
- let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
693
- e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
694
- let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = M(d, "cloneNode"), p = M(d, "remove"), m = M(d, "nextSibling"), h = M(d, "childNodes"), g = M(d, "parentNode"), ee = M(d, "shadowRoot"), te = M(d, "attributes"), _ = o && o.prototype ? M(o.prototype, "nodeType") : null, v = o && o.prototype ? M(o.prototype, "nodeName") : null;
695
- if (typeof a == "function") {
696
- let e = n.createElement("template");
697
- e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
698
- }
699
- let y, b = "", x, ne = !1, S = 0, re = function() {
700
- if (S > 0) throw Pe("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
701
- }, ie = function(e) {
702
- re(), S++;
703
- try {
704
- return y.createHTML(e);
705
- } finally {
706
- S--;
707
- }
708
- }, ae = function(e) {
709
- re(), S++;
710
- try {
711
- return y.createScriptURL(e);
712
- } finally {
713
- S--;
714
- }
715
- }, oe = function() {
716
- return ne ||= (x = ut(u, i), !0), x;
717
- }, se = n, ce = se.implementation, ue = se.createNodeIterator, de = se.createDocumentFragment, fe = se.getElementsByTagName, pe = r.importNode, T = dt();
718
- t.isSupported = typeof le == "function" && typeof g == "function" && ce && ce.createHTMLDocument !== void 0;
719
- let he = Ye, ge = Xe, ke = Ze, Ae = Qe, je = $e, Me = tt, Ne = nt, O = it, Fe = et, A = null, P = k({}, [
720
- ...Re,
721
- ...ze,
722
- ...Be,
723
- ...He,
724
- ...We
725
- ]), F = null, I = k({}, [
726
- ...Ge,
727
- ...Ke,
728
- ...qe,
729
- ...Je
730
- ]), L = Object.seal(me(null, {
731
- tagNameCheck: {
732
- writable: !0,
733
- configurable: !1,
734
- enumerable: !0,
735
- value: null
736
- },
737
- attributeNameCheck: {
738
- writable: !0,
739
- configurable: !1,
740
- enumerable: !0,
741
- value: null
742
- },
743
- allowCustomizedBuiltInElements: {
744
- writable: !0,
745
- configurable: !1,
746
- enumerable: !0,
747
- value: !1
748
- }
749
- })), R = null, z = null, B = Object.seal(me(null, {
750
- tagCheck: {
751
- writable: !0,
752
- configurable: !1,
753
- enumerable: !0,
754
- value: null
755
- },
756
- attributeCheck: {
757
- writable: !0,
758
- configurable: !1,
759
- enumerable: !0,
760
- value: null
761
- }
762
- })), mt = !0, ht = !0, gt = !1, _t = !0, V = !1, vt = !0, H = !1, yt = !1, bt = null, xt = null, St = !1, Ct = !1, wt = !1, Tt = !1, Et = !0, Dt = !1, Ot = "user-content-", kt = !0, At = !1, jt = {}, U = null, W = k({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Mt = null, Nt = k({}, [
763
- "audio",
764
- "video",
765
- "img",
766
- "source",
767
- "image",
768
- "track"
769
- ]), Pt = null, Ft = k({}, [
770
- "alt",
771
- "class",
772
- "for",
773
- "id",
774
- "label",
775
- "name",
776
- "pattern",
777
- "placeholder",
778
- "role",
779
- "summary",
780
- "title",
781
- "value",
782
- "style",
783
- "xmlns"
784
- ]), It = "http://www.w3.org/1998/Math/MathML", Lt = "http://www.w3.org/2000/svg", G = "http://www.w3.org/1999/xhtml", Rt = G, zt = !1, Bt = null, K = k({}, [
785
- It,
786
- Lt,
787
- G
788
- ], we), Vt = C([
789
- "mi",
790
- "mo",
791
- "mn",
792
- "ms",
793
- "mtext"
794
- ]), q = k({}, Vt), Ht = C(["annotation-xml"]), Ut = k({}, Ht), Wt = k({}, [
795
- "title",
796
- "style",
797
- "font",
798
- "a",
799
- "script"
800
- ]), Gt = null, Kt = ["application/xhtml+xml", "text/html"], J = null, qt = null, Jt = n.createElement("form"), Yt = function(e) {
801
- return e instanceof RegExp || e instanceof Function;
802
- }, Xt = function() {
803
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
804
- if (qt && qt === e) return;
805
- (!e || typeof e != "object") && (e = {}), e = j(e), Gt = Kt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = Gt === "application/xhtml+xml" ? we : Ce, A = ft(e, "ALLOWED_TAGS", P, { transform: J }), F = ft(e, "ALLOWED_ATTR", I, { transform: J }), Bt = ft(e, "ALLOWED_NAMESPACES", K, { transform: we }), Pt = ft(e, "ADD_URI_SAFE_ATTR", Ft, {
806
- transform: J,
807
- base: Ft
808
- }), Mt = ft(e, "ADD_DATA_URI_TAGS", Nt, {
809
- transform: J,
810
- base: Nt
811
- }), U = ft(e, "FORBID_CONTENTS", W, { transform: J }), R = ft(e, "FORBID_TAGS", j({}), { transform: J }), z = ft(e, "FORBID_ATTR", j({}), { transform: J }), jt = E(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? j(e.USE_PROFILES) : e.USE_PROFILES : !1, mt = e.ALLOW_ARIA_ATTR !== !1, ht = e.ALLOW_DATA_ATTR !== !1, gt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, _t = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, V = e.SAFE_FOR_TEMPLATES || !1, vt = e.SAFE_FOR_XML !== !1, H = e.WHOLE_DOCUMENT || !1, Ct = e.RETURN_DOM || !1, wt = e.RETURN_DOM_FRAGMENT || !1, Tt = e.RETURN_TRUSTED_TYPE || !1, St = e.FORCE_BODY || !1, Et = e.SANITIZE_DOM !== !1, Dt = e.SANITIZE_NAMED_PROPS || !1, kt = e.KEEP_CONTENT !== !1, At = e.IN_PLACE || !1, Fe = Le(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : et, Rt = typeof e.NAMESPACE == "string" ? e.NAMESPACE : G, q = E(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? j(e.MATHML_TEXT_INTEGRATION_POINTS) : k({}, Vt), Ut = E(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? j(e.HTML_INTEGRATION_POINTS) : k({}, Ht);
812
- let t = E(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? j(e.CUSTOM_ELEMENT_HANDLING) : me(null);
813
- if (L = me(null), E(t, "tagNameCheck") && Yt(t.tagNameCheck) && (L.tagNameCheck = t.tagNameCheck), E(t, "attributeNameCheck") && Yt(t.attributeNameCheck) && (L.attributeNameCheck = t.attributeNameCheck), E(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (L.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), w(L), V && (ht = !1), wt && (Ct = !0), jt && (A = k({}, We), F = me(null), jt.html === !0 && (k(A, Re), k(F, Ge)), jt.svg === !0 && (k(A, ze), k(F, Ke), k(F, Je)), jt.svgFilters === !0 && (k(A, Be), k(F, Ke), k(F, Je)), jt.mathMl === !0 && (k(A, He), k(F, qe), k(F, Je))), B.tagCheck = null, B.attributeCheck = null, E(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? B.tagCheck = e.ADD_TAGS : Se(e.ADD_TAGS) && (A === P && (A = j(A)), k(A, e.ADD_TAGS, J))), E(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? B.attributeCheck = e.ADD_ATTR : Se(e.ADD_ATTR) && (F === I && (F = j(F)), k(F, e.ADD_ATTR, J))), E(e, "ADD_URI_SAFE_ATTR") && Se(e.ADD_URI_SAFE_ATTR) && k(Pt, e.ADD_URI_SAFE_ATTR, J), E(e, "FORBID_CONTENTS") && Se(e.FORBID_CONTENTS) && (U === W && (U = j(U)), k(U, e.FORBID_CONTENTS, J)), E(e, "ADD_FORBID_CONTENTS") && Se(e.ADD_FORBID_CONTENTS) && (U === W && (U = j(U)), k(U, e.ADD_FORBID_CONTENTS, J)), kt && (A["#text"] = !0), H && k(A, [
814
- "html",
815
- "head",
816
- "body"
817
- ]), A.table && (k(A, ["tbody"]), delete R.tbody), e.TRUSTED_TYPES_POLICY) {
818
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw Pe("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
819
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Pe("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
820
- let t = y;
821
- y = e.TRUSTED_TYPES_POLICY;
822
- try {
823
- b = ie("");
824
- } catch (e) {
825
- throw y = t, e;
826
- }
827
- } else e.TRUSTED_TYPES_POLICY === null ? (y = void 0, b = "") : (y === void 0 && (y = oe()), y && typeof b == "string" && (b = ie("")));
828
- C && C(e), qt = e;
829
- }, Zt = k({}, [
830
- ...ze,
831
- ...Be,
832
- ...Ve
833
- ]), Qt = k({}, [...He, ...Ue]), $t = function(e, t, n) {
834
- return t.namespaceURI === G ? e === "svg" : t.namespaceURI === It ? e === "svg" && (n === "annotation-xml" || q[n]) : !!Zt[e];
835
- }, en = function(e, t, n) {
836
- return t.namespaceURI === G ? e === "math" : t.namespaceURI === Lt ? e === "math" && Ut[n] : !!Qt[e];
837
- }, tn = function(e, t, n) {
838
- return t.namespaceURI === Lt && !Ut[n] || t.namespaceURI === It && !q[n] ? !1 : !Qt[e] && (Wt[e] || !Zt[e]);
839
- }, nn = function(e) {
840
- let t = g(e);
841
- (!t || !t.tagName) && (t = {
842
- namespaceURI: Rt,
843
- tagName: "template"
844
- });
845
- let n = Ce(e.tagName), r = Ce(t.tagName);
846
- return Bt[e.namespaceURI] ? e.namespaceURI === Lt ? $t(n, t, r) : e.namespaceURI === It ? en(n, t, r) : e.namespaceURI === G ? tn(n, t, r) : !!(Gt === "application/xhtml+xml" && Bt[e.namespaceURI]) : !1;
847
- }, Y = function(e) {
848
- be(t.removed, { element: e });
849
- try {
850
- g(e).removeChild(e);
851
- } catch {
852
- if (p(e), !g(e)) throw Pe("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
853
- }
854
- }, rn = function(e) {
855
- let t = h(e);
856
- if (t) {
857
- let e = [];
858
- _e(t, (t) => {
859
- be(e, t);
860
- }), _e(e, (e) => {
861
- try {
862
- p(e);
863
- } catch {}
864
- });
865
- }
866
- let n = te(e);
867
- if (n) for (let t = n.length - 1; t >= 0; --t) {
868
- let r = n[t], i = r && r.name;
869
- if (typeof i == "string") try {
870
- e.removeAttribute(i);
871
- } catch {}
872
- }
873
- }, X = function(e, n) {
874
- try {
875
- be(t.removed, {
876
- attribute: n.getAttributeNode(e),
877
- from: n
878
- });
879
- } catch {
880
- be(t.removed, {
881
- attribute: null,
882
- from: n
883
- });
884
- }
885
- if (n.removeAttribute(e), e === "is") {
886
- if (Ct || wt) try {
887
- Y(n);
888
- } catch {}
889
- else try {
890
- n.setAttribute(e, "");
891
- } catch {}
892
- }
893
- }, an = function(e) {
894
- let t = te(e);
895
- if (t) for (let n = t.length - 1; n >= 0; --n) {
896
- let r = t[n], i = r && r.name;
897
- if (!(typeof i != "string" || F[J(i)])) try {
898
- e.removeAttribute(i);
899
- } catch {}
900
- }
901
- }, on = function(e) {
902
- let t = [e];
903
- for (; t.length > 0;) {
904
- let e = t.pop();
905
- (_ ? _(e) : e.nodeType) === N.element && an(e);
906
- let n = h(e);
907
- if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
908
- }
909
- }, sn = function(e) {
910
- let t = null, r = null;
911
- if (St) e = "<remove></remove>" + e;
912
- else {
913
- let t = Te(e, /^[\r\n\t ]+/);
914
- r = t && t[0];
915
- }
916
- Gt === "application/xhtml+xml" && Rt === G && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
917
- let i = y ? ie(e) : e;
918
- if (Rt === G) try {
919
- t = new l().parseFromString(i, Gt);
920
- } catch {}
921
- if (!t || !t.documentElement) {
922
- t = ce.createDocument(Rt, "template", null);
923
- try {
924
- t.documentElement.innerHTML = zt ? b : i;
925
- } catch {}
926
- }
927
- let a = t.body || t.documentElement;
928
- return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Rt === G ? fe.call(t, H ? "html" : "body")[0] : H ? t.documentElement : a;
929
- }, cn = function(e) {
930
- return ue.call(e.ownerDocument || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
931
- }, ln = function(e) {
932
- return e = Ee(e, he, " "), e = Ee(e, ge, " "), e = Ee(e, ke, " "), e;
933
- }, un = function(e) {
934
- e.normalize();
935
- let t = ue.call(e.ownerDocument || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), n = t.nextNode();
936
- for (; n;) n.data = ln(n.data), n = t.nextNode();
937
- let r = e.querySelectorAll?.call(e, "template");
938
- r && _e(r, (e) => {
939
- Z(e.content) && un(e.content);
940
- });
941
- }, dn = function(e) {
942
- let t = v ? v(e) : null;
943
- return typeof t != "string" || J(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== te(e) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== _(e) || e.childNodes !== h(e);
944
- }, Z = function(e) {
945
- if (!_ || typeof e != "object" || !e) return !1;
946
- try {
947
- return _(e) === N.documentFragment;
948
- } catch {
949
- return !1;
950
- }
951
- }, fn = function(e) {
952
- if (!_ || typeof e != "object" || !e) return !1;
953
- try {
954
- return typeof _(e) == "number";
955
- } catch {
956
- return !1;
957
- }
958
- };
959
- function Q(e, n, r) {
960
- e.length !== 0 && _e(e, (e) => {
961
- e.call(t, n, r, qt);
962
- });
963
- }
964
- let pn = function(e, t) {
965
- return !!(vt && e.hasChildNodes() && !fn(e.firstElementChild) && D(at, e.textContent) && D(at, e.innerHTML) || vt && e.namespaceURI === G && t === "style" && fn(e.firstElementChild) || e.nodeType === N.processingInstruction || vt && e.nodeType === N.comment && D(ot, e.data));
966
- }, mn = function(e, t) {
967
- if (!R[t] && _n(t) && (L.tagNameCheck instanceof RegExp && D(L.tagNameCheck, t) || L.tagNameCheck instanceof Function && L.tagNameCheck(t))) return !1;
968
- if (kt && !U[t]) {
969
- let t = g(e), n = h(e);
970
- if (n && t) {
971
- let r = n.length;
972
- for (let i = r - 1; i >= 0; --i) {
973
- let r = At ? n[i] : f(n[i], !0);
974
- t.insertBefore(r, m(e));
975
- }
976
- }
977
- }
978
- return Y(e), !0;
979
- }, hn = function(e) {
980
- if (Q(T.beforeSanitizeElements, e, null), dn(e)) return Y(e), !0;
981
- let n = J(v ? v(e) : e.nodeName);
982
- if (Q(T.uponSanitizeElement, e, {
983
- tagName: n,
984
- allowedTags: A
985
- }), pn(e, n)) return Y(e), !0;
986
- if (R[n] || !(B.tagCheck instanceof Function && B.tagCheck(n)) && !A[n]) return mn(e, n);
987
- if ((_ ? _(e) : e.nodeType) === N.element && !nn(e) || (n === "noscript" || n === "noembed" || n === "noframes") && D(st, e.innerHTML)) return Y(e), !0;
988
- if (V && e.nodeType === N.text) {
989
- let n = ln(e.textContent);
990
- e.textContent !== n && (be(t.removed, { element: e.cloneNode() }), e.textContent = n);
991
- }
992
- return Q(T.afterSanitizeElements, e, null), !1;
993
- }, $ = function(e, t, r) {
994
- if (z[t] || Et && (t === "id" || t === "name") && (r in n || r in Jt)) return !1;
995
- let i = F[t] || B.attributeCheck instanceof Function && B.attributeCheck(t, e);
996
- if (!(ht && D(Ae, t)) && !(mt && D(je, t))) {
997
- if (!i) {
998
- if (!(_n(e) && (L.tagNameCheck instanceof RegExp && D(L.tagNameCheck, e) || L.tagNameCheck instanceof Function && L.tagNameCheck(e)) && (L.attributeNameCheck instanceof RegExp && D(L.attributeNameCheck, t) || L.attributeNameCheck instanceof Function && L.attributeNameCheck(t, e)) || t === "is" && L.allowCustomizedBuiltInElements && (L.tagNameCheck instanceof RegExp && D(L.tagNameCheck, r) || L.tagNameCheck instanceof Function && L.tagNameCheck(r)))) return !1;
999
- } else if (!Pt[t] && !D(Fe, Ee(r, Ne, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && De(r, "data:") === 0 && Mt[e]) && !(gt && !D(Me, Ee(r, Ne, ""))) && r) return !1;
1000
- }
1001
- return !0;
1002
- }, gn = k({}, [
1003
- "annotation-xml",
1004
- "color-profile",
1005
- "font-face",
1006
- "font-face-format",
1007
- "font-face-name",
1008
- "font-face-src",
1009
- "font-face-uri",
1010
- "missing-glyph"
1011
- ]), _n = function(e) {
1012
- return !gn[Ce(e)] && D(O, e);
1013
- }, vn = function(e, t, n, r) {
1014
- if (y && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
1015
- case "TrustedHTML": return ie(r);
1016
- case "TrustedScriptURL": return ae(r);
1017
- }
1018
- return r;
1019
- }, yn = function(e, n, r, i) {
1020
- try {
1021
- r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), dn(e) ? Y(e) : ye(t.removed);
1022
- } catch {
1023
- X(n, e);
1024
- }
1025
- }, bn = function(e) {
1026
- Q(T.beforeSanitizeAttributes, e, null);
1027
- let t = e.attributes;
1028
- if (!t || dn(e)) return;
1029
- let n = {
1030
- attrName: "",
1031
- attrValue: "",
1032
- keepAttr: !0,
1033
- allowedAttributes: F,
1034
- forceKeepAttr: void 0
1035
- }, r = t.length, i = J(e.nodeName);
1036
- for (; r--;) {
1037
- let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = J(o), u = c, d = o === "value" ? u : Oe(u);
1038
- if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, Q(T.uponSanitizeAttribute, e, n), d = n.attrValue, Dt && (l === "id" || l === "name") && De(d, Ot) !== 0 && (X(o, e), d = Ot + d), vt && D(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
1039
- X(o, e);
1040
- continue;
1041
- }
1042
- if (l === "attributename" && Te(d, "href")) {
1043
- X(o, e);
1044
- continue;
1045
- }
1046
- if (!n.forceKeepAttr) {
1047
- if (!n.keepAttr) {
1048
- X(o, e);
1049
- continue;
1050
- }
1051
- if (!_t && D(ct, d)) {
1052
- X(o, e);
1053
- continue;
1054
- }
1055
- if (V && (d = ln(d)), !$(i, l, d)) {
1056
- X(o, e);
1057
- continue;
1058
- }
1059
- d = vn(i, l, s, d), d !== u && yn(e, o, s, d);
1060
- }
1061
- }
1062
- Q(T.afterSanitizeAttributes, e, null);
1063
- }, xn = function(e) {
1064
- let t = null, n = cn(e);
1065
- for (Q(T.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (Q(T.uponSanitizeShadowNode, t, null), hn(t), bn(t), Z(t.content) && xn(t.content), (_ ? _(t) : t.nodeType) === N.element) {
1066
- let e = ee(t);
1067
- Z(e) && (Sn(e), xn(e));
1068
- }
1069
- Q(T.afterSanitizeShadowDOM, e, null);
1070
- }, Sn = function(e) {
1071
- let t = [{
1072
- node: e,
1073
- shadow: null
1074
- }];
1075
- for (; t.length > 0;) {
1076
- let e = t.pop();
1077
- if (e.shadow) {
1078
- xn(e.shadow);
1079
- continue;
1080
- }
1081
- let n = e.node, r = (_ ? _(n) : n.nodeType) === N.element, i = h(n);
1082
- if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
1083
- node: i[e],
1084
- shadow: null
1085
- });
1086
- if (r) {
1087
- let e = v ? v(n) : null;
1088
- if (typeof e == "string" && J(e) === "template") {
1089
- let e = n.content;
1090
- Z(e) && t.push({
1091
- node: e,
1092
- shadow: null
1093
- });
1094
- }
1095
- }
1096
- if (r) {
1097
- let e = ee(n);
1098
- Z(e) && t.push({
1099
- node: null,
1100
- shadow: e
1101
- }, {
1102
- node: e,
1103
- shadow: null
1104
- });
1105
- }
1106
- }
1107
- };
1108
- return t.sanitize = function(e) {
1109
- let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
1110
- if (zt = !e, zt && (e = "<!-->"), typeof e != "string" && !fn(e) && (e = Ie(e), typeof e != "string")) throw Pe("dirty is not a string, aborting");
1111
- if (!t.isSupported) return e;
1112
- yt ? (A = bt, F = xt) : Xt(n), (T.uponSanitizeElement.length > 0 || T.uponSanitizeAttribute.length > 0) && (A = j(A)), T.uponSanitizeAttribute.length > 0 && (F = j(F)), t.removed = [];
1113
- let c = At && typeof e != "string" && fn(e);
1114
- if (c) {
1115
- let t = v ? v(e) : e.nodeName;
1116
- if (typeof t == "string") {
1117
- let e = J(t);
1118
- if (!A[e] || R[e]) throw Pe("root node is forbidden and cannot be sanitized in-place");
1119
- }
1120
- if (dn(e)) throw Pe("root node is clobbered and cannot be sanitized in-place");
1121
- try {
1122
- Sn(e);
1123
- } catch (t) {
1124
- throw rn(e), t;
1125
- }
1126
- } else if (fn(e)) i = sn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === N.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Sn(a);
1127
- else {
1128
- if (!Ct && !V && !H && e.indexOf("<") === -1) return y && Tt ? ie(e) : e;
1129
- if (i = sn(e), !i) return Ct ? null : Tt ? b : "";
1130
- }
1131
- i && St && Y(i.firstChild);
1132
- let l = cn(c ? e : i);
1133
- try {
1134
- for (; o = l.nextNode();) hn(o), bn(o), Z(o.content) && xn(o.content);
1135
- } catch (t) {
1136
- throw c && rn(e), t;
1137
- }
1138
- if (c) return _e(t.removed, (e) => {
1139
- e.element && on(e.element);
1140
- }), V && un(e), e;
1141
- if (Ct) {
1142
- if (V && un(i), wt) for (s = de.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
1143
- else s = i;
1144
- return (F.shadowroot || F.shadowrootmode) && (s = pe.call(r, s, !0)), s;
1145
- }
1146
- let u = H ? i.outerHTML : i.innerHTML;
1147
- return H && A["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && D(rt, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), V && (u = ln(u)), y && Tt ? ie(u) : u;
1148
- }, t.setConfig = function() {
1149
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1150
- Xt(e), yt = !0, bt = A, xt = F;
1151
- }, t.clearConfig = function() {
1152
- qt = null, yt = !1, bt = null, xt = null, y = x, b = "";
1153
- }, t.isValidAttribute = function(e, t, n) {
1154
- qt || Xt({});
1155
- let r = J(e), i = J(t);
1156
- return $(r, i, n);
1157
- }, t.addHook = function(e, t) {
1158
- typeof t == "function" && E(T, e) && be(T[e], t);
1159
- }, t.removeHook = function(e, t) {
1160
- if (E(T, e)) {
1161
- if (t !== void 0) {
1162
- let n = ve(T[e], t);
1163
- return n === -1 ? void 0 : xe(T[e], n, 1)[0];
1164
- }
1165
- return ye(T[e]);
1166
- }
1167
- }, t.removeHooks = function(e) {
1168
- E(T, e) && (T[e] = []);
1169
- }, t.removeAllHooks = function() {
1170
- T = dt();
1171
- }, t;
1172
- }
1173
- var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
1174
- let r = { depth: n };
1175
- if (Array.isArray(t) && !Array.isArray(e)) return t.forEach((t) => F(e, t, r)), e;
1176
- if (Array.isArray(t) && Array.isArray(e)) return t.forEach((t) => {
1177
- e.includes(t) || e.push(t);
1178
- }), e;
1179
- if (e == null || n <= 0) return typeof e == "object" && e && typeof t == "object" ? Object.assign(e, t) : t;
1180
- if (t != null && typeof e == "object" && typeof t == "object") {
1181
- let r = e;
1182
- Object.entries(t).forEach(([t, i]) => {
1183
- if (typeof i == "object") {
1184
- if (i === null) return;
1185
- Object.hasOwn(e, t) || Object.defineProperty(e, t, {
1186
- value: void 0,
1187
- writable: !0,
1188
- enumerable: !0,
1189
- configurable: !0
1190
- }), r[t] === void 0 && (r[t] = Array.isArray(i) ? [] : {}), typeof r[t] == "object" && (r[t] = F(r[t], i, { depth: n - 1 }));
1191
- } else typeof r[t] != "object" && (Object.hasOwn(e, t) ? r[t] = i : Object.defineProperty(e, t, {
1192
- value: i,
1193
- writable: !0,
1194
- enumerable: !0,
1195
- configurable: !0
1196
- }));
1197
- });
1198
- }
1199
- return e;
1200
- }, "assignWithDepth"), I = F, L = "#ffffff", R = "#f2f2f2", z = /* @__PURE__ */ e((e, t) => t ? x(e, {
1201
- s: -40,
1202
- l: 10
1203
- }) : x(e, {
1204
- s: -40,
1205
- l: -10
1206
- }), "mkBorder"), B = class {
1207
- static {
1208
- e(this, "Theme");
1209
- }
1210
- constructor() {
1211
- this.background = "#f4f4f4", this.primaryColor = "#fff4dd", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.useGradient = !0, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))";
1212
- }
1213
- updateColors() {
1214
- if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
1215
- h: 180,
1216
- l: 5
1217
- }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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 ? b(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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, 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 || y(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.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal", this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.darkMode ? (this.rowOdd = this.rowOdd || b(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || b(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || y(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || y(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 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
1218
- h: 210,
1219
- l: 150
1220
- }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
1221
- else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
1222
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
1223
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
1224
- this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1225
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1226
- let e = this.darkMode ? -4 : -1;
1227
- for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || x(this.mainBkg, {
1228
- h: 180,
1229
- s: -15,
1230
- l: e * (5 + t * 3)
1231
- }), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, {
1232
- h: 180,
1233
- s: -15,
1234
- l: e * (8 + t * 3)
1235
- });
1236
- this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || x(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || x(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || x(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || x(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || x(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || x(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 || x(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || x(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || x(this.primaryColor, {
1237
- h: 60,
1238
- l: -10
1239
- }), this.pie8 = this.pie8 || x(this.primaryColor, {
1240
- h: -60,
1241
- l: -10
1242
- }), this.pie9 = this.pie9 || x(this.primaryColor, {
1243
- h: 120,
1244
- l: 0
1245
- }), this.pie10 = this.pie10 || x(this.primaryColor, {
1246
- h: 60,
1247
- l: -20
1248
- }), this.pie11 = this.pie11 || x(this.primaryColor, {
1249
- h: -60,
1250
- l: -20
1251
- }), this.pie12 = this.pie12 || x(this.primaryColor, {
1252
- h: 120,
1253
- l: -10
1254
- }), 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.venn1 = this.venn1 ?? x(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? x(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? x(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? x(this.primaryColor, {
1255
- h: 60,
1256
- l: -30
1257
- }), this.venn5 = this.venn5 ?? x(this.primaryColor, {
1258
- h: -60,
1259
- l: -30
1260
- }), this.venn6 = this.venn6 ?? x(this.secondaryColor, {
1261
- h: 60,
1262
- l: -30
1263
- }), this.venn7 = this.venn7 ?? x(this.primaryColor, {
1264
- h: 120,
1265
- l: -30
1266
- }), this.venn8 = this.venn8 ?? x(this.secondaryColor, {
1267
- h: 120,
1268
- l: -30
1269
- }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
1270
- domainFontSize: this.cynefin?.domainFontSize || 16,
1271
- itemFontSize: this.cynefin?.itemFontSize || 12,
1272
- boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
1273
- boundaryWidth: this.cynefin?.boundaryWidth || 2,
1274
- cliffColor: this.cynefin?.cliffColor || "#8B0000",
1275
- cliffWidth: this.cynefin?.cliffWidth || 4,
1276
- arrowColor: this.cynefin?.arrowColor || this.lineColor,
1277
- arrowWidth: this.cynefin?.arrowWidth || 2,
1278
- complexBg: this.cynefin?.complexBg || "#E8F5E9",
1279
- complicatedBg: this.cynefin?.complicatedBg || "#E3F2FD",
1280
- chaoticBg: this.cynefin?.chaoticBg || "#FBE9E7",
1281
- clearBg: this.cynefin?.clearBg || "#FFF8E1",
1282
- confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
1283
- textColor: this.cynefin?.textColor || this.textColor,
1284
- labelColor: this.cynefin?.labelColor || this.primaryTextColor
1285
- }, this.radar = {
1286
- axisColor: this.radar?.axisColor || this.lineColor,
1287
- axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1288
- axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1289
- curveOpacity: this.radar?.curveOpacity || .5,
1290
- curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1291
- graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1292
- graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1293
- graticuleOpacity: this.radar?.graticuleOpacity || .3,
1294
- legendBoxSize: this.radar?.legendBoxSize || 12,
1295
- legendFontSize: this.radar?.legendFontSize || 12
1296
- }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
1297
- backgroundColor: this.wardley?.backgroundColor || this.background,
1298
- axisColor: this.wardley?.axisColor || this.lineColor,
1299
- axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
1300
- gridColor: this.wardley?.gridColor || this.gridColor,
1301
- componentFill: this.wardley?.componentFill || this.background,
1302
- componentStroke: this.wardley?.componentStroke || this.lineColor,
1303
- componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
1304
- linkStroke: this.wardley?.linkStroke || this.lineColor,
1305
- evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
1306
- annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1307
- annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1308
- annotationFill: this.wardley?.annotationFill || this.background
1309
- }, 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 || x(this.primaryColor, {
1310
- r: 5,
1311
- g: 5,
1312
- b: 5
1313
- }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1314
- r: 10,
1315
- g: 10,
1316
- b: 10
1317
- }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1318
- r: 15,
1319
- g: 15,
1320
- b: 15
1321
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1322
- r: -5,
1323
- g: -5,
1324
- b: -5
1325
- }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1326
- r: -10,
1327
- g: -10,
1328
- b: -10
1329
- }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1330
- r: -15,
1331
- g: -15,
1332
- b: -15
1333
- }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
1334
- backgroundColor: this.xyChart?.backgroundColor || this.background,
1335
- titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1336
- dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1337
- xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1338
- xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1339
- xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1340
- xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1341
- yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1342
- yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1343
- yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1344
- yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1345
- plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1346
- }, 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 ? b(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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(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.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
1347
- }
1348
- calculate(e) {
1349
- if (typeof e != "object") {
1350
- this.updateColors();
1351
- return;
1352
- }
1353
- let t = Object.keys(e);
1354
- t.forEach((t) => {
1355
- this[t] = e[t];
1356
- }), this.updateColors(), t.forEach((t) => {
1357
- this[t] = e[t];
1358
- });
1359
- }
1360
- }, mt = /* @__PURE__ */ e((e) => {
1361
- let t = new B();
1362
- return t.calculate(e), t;
1363
- }, "getThemeVariables"), ht = class {
1364
- static {
1365
- e(this, "Theme");
1366
- }
1367
- constructor() {
1368
- this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = g(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.radius = 5, this.strokeWidth = 1, 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.clusterBkg = "#302F3D", this.sectionBkgColor = b("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = b(this.sectionBkgColor, 10), this.taskBorderColor = g(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = g(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 || y(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || b(this.mainBkg, 10), this.labelColor = "calculated", this.errorBkgColor = "#a44141", this.errorTextColor = "#ddd", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))", this.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal";
1369
- }
1370
- updateColors() {
1371
- this.secondBkg = y(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 = y(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.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.background, this.taskBkgColor = y(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 = S(this.doneTaskBkgColor), 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 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(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 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 });
1372
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
1373
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10);
1374
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
1375
- h: 30,
1376
- s: -30,
1377
- l: -(-10 + e * 4)
1378
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
1379
- h: 30,
1380
- s: -30,
1381
- l: -(-7 + e * 4)
1382
- });
1383
- this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor);
1384
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1385
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1386
- this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.mainContrastColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.mainContrastColor, 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";
1387
- for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? y(this["cScale" + e], 30);
1388
- this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
1389
- domainFontSize: this.cynefin?.domainFontSize || 16,
1390
- itemFontSize: this.cynefin?.itemFontSize || 12,
1391
- boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
1392
- boundaryWidth: this.cynefin?.boundaryWidth || 2,
1393
- cliffColor: this.cynefin?.cliffColor || "#FF6B6B",
1394
- cliffWidth: this.cynefin?.cliffWidth || 4,
1395
- arrowColor: this.cynefin?.arrowColor || this.lineColor,
1396
- arrowWidth: this.cynefin?.arrowWidth || 2,
1397
- complexBg: this.cynefin?.complexBg || "#1B5E20",
1398
- complicatedBg: this.cynefin?.complicatedBg || "#0D47A1",
1399
- chaoticBg: this.cynefin?.chaoticBg || "#BF360C",
1400
- clearBg: this.cynefin?.clearBg || "#F57F17",
1401
- confusionBg: this.cynefin?.confusionBg || "#4A148C",
1402
- textColor: this.cynefin?.textColor || this.textColor,
1403
- labelColor: this.cynefin?.labelColor || this.primaryTextColor
1404
- }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
1405
- r: 5,
1406
- g: 5,
1407
- b: 5
1408
- }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1409
- r: 10,
1410
- g: 10,
1411
- b: 10
1412
- }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1413
- r: 15,
1414
- g: 15,
1415
- b: 15
1416
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1417
- r: -5,
1418
- g: -5,
1419
- b: -5
1420
- }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1421
- r: -10,
1422
- g: -10,
1423
- b: -10
1424
- }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1425
- r: -15,
1426
- g: -15,
1427
- b: -15
1428
- }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
1429
- backgroundColor: this.xyChart?.backgroundColor || this.background,
1430
- titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1431
- dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1432
- xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1433
- xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1434
- xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1435
- xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1436
- yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1437
- yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1438
- yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1439
- yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1440
- plotColorPalette: this.xyChart?.plotColorPalette || "#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"
1441
- }, this.packet = {
1442
- startByteColor: this.primaryTextColor,
1443
- endByteColor: this.primaryTextColor,
1444
- labelColor: this.primaryTextColor,
1445
- titleColor: this.primaryTextColor,
1446
- blockStrokeColor: this.primaryTextColor,
1447
- blockFillColor: this.background
1448
- }, this.radar = {
1449
- axisColor: this.radar?.axisColor || this.lineColor,
1450
- axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1451
- axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1452
- curveOpacity: this.radar?.curveOpacity || .5,
1453
- curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1454
- graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1455
- graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1456
- graticuleOpacity: this.radar?.graticuleOpacity || .3,
1457
- legendBoxSize: this.radar?.legendBoxSize || 12,
1458
- legendFontSize: this.radar?.legendFontSize || 12
1459
- }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#ff6b6b", this.wardley = {
1460
- backgroundColor: this.wardley?.backgroundColor || this.background,
1461
- axisColor: this.wardley?.axisColor || this.lineColor,
1462
- axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
1463
- gridColor: this.wardley?.gridColor || this.gridColor,
1464
- componentFill: this.wardley?.componentFill || this.mainBkg,
1465
- componentStroke: this.wardley?.componentStroke || this.lineColor,
1466
- componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
1467
- linkStroke: this.wardley?.linkStroke || this.lineColor,
1468
- evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
1469
- annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1470
- annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1471
- annotationFill: this.wardley?.annotationFill || this.mainBkg
1472
- }, 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 ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = y(this.secondaryColor, 20), this.git1 = y(this.pie2 || this.secondaryColor, 20), this.git2 = y(this.pie3 || this.tertiaryColor, 20), this.git3 = y(this.pie4 || x(this.primaryColor, { h: -30 }), 20), this.git4 = y(this.pie5 || x(this.primaryColor, { h: -60 }), 20), this.git5 = y(this.pie6 || x(this.primaryColor, { h: -90 }), 10), this.git6 = y(this.pie7 || x(this.primaryColor, { h: 60 }), 10), this.git7 = y(this.pie8 || x(this.primaryColor, { h: 120 }), 20), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || S(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || S(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.emUiFill = this.emUiFill || "#2d2d2d", this.emUiStroke = this.emUiStroke || "#555", this.emProcessorFill = this.emProcessorFill || y("#5a3d5c", 10), this.emProcessorStroke = this.emProcessorStroke || "#8a6d8c", this.emReadModelFill = this.emReadModelFill || y("#3d5a2d", 10), this.emReadModelStroke = this.emReadModelStroke || "#6d8c5c", this.emCommandFill = this.emCommandFill || y("#2d3d5a", 10), this.emCommandStroke = this.emCommandStroke || "#5c6d8c", this.emEventFill = this.emEventFill || y("#5a452d", 10), this.emEventStroke = this.emEventStroke || "#8c755c", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || y(this.background, 5), this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || y(this.background, 12), this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || y(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || y(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
1473
- }
1474
- calculate(e) {
1475
- if (typeof e != "object") {
1476
- this.updateColors();
1477
- return;
1478
- }
1479
- let t = Object.keys(e);
1480
- t.forEach((t) => {
1481
- this[t] = e[t];
1482
- }), this.updateColors(), t.forEach((t) => {
1483
- this[t] = e[t];
1484
- });
1485
- }
1486
- }, gt = /* @__PURE__ */ e((e) => {
1487
- let t = new ht();
1488
- return t.calculate(e), t;
1489
- }, "getThemeVariables"), _t = class {
1490
- static {
1491
- e(this, "Theme");
1492
- }
1493
- constructor() {
1494
- this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = x(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = z(this.primaryColor, this.darkMode), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.primaryBorderColor = z(this.primaryColor, this.darkMode), 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.radius = 5, this.strokeWidth = 1, 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.clusterBkg = "#FBFBFF", 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 = g(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.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal", 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.useGradient = !1, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))", this.updateColors();
1495
- }
1496
- updateColors() {
1497
- this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || b(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || b(this.tertiaryColor, 40);
1498
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 25);
1499
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || x(this["cScale" + e], { h: 180 });
1500
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
1501
- h: 30,
1502
- l: -(5 + e * 5)
1503
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
1504
- h: 30,
1505
- l: -(7 + e * 5)
1506
- });
1507
- if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
1508
- this.cScaleLabel0 = this.cScaleLabel0 || S(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || S(this.labelTextColor);
1509
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.labelTextColor;
1510
- }
1511
- 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 = this.border1, 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.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || y(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || y(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 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || x(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || x(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || x(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || x(this.primaryColor, {
1512
- h: 60,
1513
- l: -20
1514
- }), this.pie8 = this.pie8 || x(this.primaryColor, {
1515
- h: -60,
1516
- l: -40
1517
- }), this.pie9 = this.pie9 || x(this.primaryColor, {
1518
- h: 120,
1519
- l: -40
1520
- }), this.pie10 = this.pie10 || x(this.primaryColor, {
1521
- h: 60,
1522
- l: -40
1523
- }), this.pie11 = this.pie11 || x(this.primaryColor, {
1524
- h: -90,
1525
- l: -40
1526
- }), this.pie12 = this.pie12 || x(this.primaryColor, {
1527
- h: 120,
1528
- l: -30
1529
- }), 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.venn1 = this.venn1 ?? x(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? x(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? x(this.tertiaryColor, { l: -40 }), this.venn4 = this.venn4 ?? x(this.primaryColor, {
1530
- h: 60,
1531
- l: -30
1532
- }), this.venn5 = this.venn5 ?? x(this.primaryColor, {
1533
- h: -60,
1534
- l: -30
1535
- }), this.venn6 = this.venn6 ?? x(this.secondaryColor, {
1536
- h: 60,
1537
- l: -30
1538
- }), this.venn7 = this.venn7 ?? x(this.primaryColor, {
1539
- h: 120,
1540
- l: -30
1541
- }), this.venn8 = this.venn8 ?? x(this.secondaryColor, {
1542
- h: 120,
1543
- l: -30
1544
- }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
1545
- domainFontSize: this.cynefin?.domainFontSize || 16,
1546
- itemFontSize: this.cynefin?.itemFontSize || 12,
1547
- boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
1548
- boundaryWidth: this.cynefin?.boundaryWidth || 2,
1549
- cliffColor: this.cynefin?.cliffColor || "#8B0000",
1550
- cliffWidth: this.cynefin?.cliffWidth || 4,
1551
- arrowColor: this.cynefin?.arrowColor || this.lineColor,
1552
- arrowWidth: this.cynefin?.arrowWidth || 2,
1553
- complexBg: this.cynefin?.complexBg || "#E8F5E9",
1554
- complicatedBg: this.cynefin?.complicatedBg || "#E3F2FD",
1555
- chaoticBg: this.cynefin?.chaoticBg || "#FBE9E7",
1556
- clearBg: this.cynefin?.clearBg || "#FFF8E1",
1557
- confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
1558
- textColor: this.cynefin?.textColor || this.textColor,
1559
- labelColor: this.cynefin?.labelColor || this.primaryTextColor
1560
- }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
1561
- r: 5,
1562
- g: 5,
1563
- b: 5
1564
- }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1565
- r: 10,
1566
- g: 10,
1567
- b: 10
1568
- }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1569
- r: 15,
1570
- g: 15,
1571
- b: 15
1572
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1573
- r: -5,
1574
- g: -5,
1575
- b: -5
1576
- }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1577
- r: -10,
1578
- g: -10,
1579
- b: -10
1580
- }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1581
- r: -15,
1582
- g: -15,
1583
- b: -15
1584
- }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
1585
- axisColor: this.radar?.axisColor || this.lineColor,
1586
- axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1587
- axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1588
- curveOpacity: this.radar?.curveOpacity || .5,
1589
- curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1590
- graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1591
- graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1592
- graticuleOpacity: this.radar?.graticuleOpacity || .3,
1593
- legendBoxSize: this.radar?.legendBoxSize || 12,
1594
- legendFontSize: this.radar?.legendFontSize || 12
1595
- }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
1596
- backgroundColor: this.wardley?.backgroundColor || this.background,
1597
- axisColor: this.wardley?.axisColor || this.lineColor,
1598
- axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
1599
- gridColor: this.wardley?.gridColor || this.gridColor,
1600
- componentFill: this.wardley?.componentFill || this.background,
1601
- componentStroke: this.wardley?.componentStroke || this.lineColor,
1602
- componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
1603
- linkStroke: this.wardley?.linkStroke || this.lineColor,
1604
- evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
1605
- annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1606
- annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1607
- annotationFill: this.wardley?.annotationFill || this.background
1608
- }, this.xyChart = {
1609
- backgroundColor: this.xyChart?.backgroundColor || this.background,
1610
- titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1611
- dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1612
- xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1613
- xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1614
- xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1615
- xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1616
- yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1617
- yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1618
- yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1619
- yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1620
- plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
1621
- }, 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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || b(S(this.git0), 25), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || S(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || S(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.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
1622
- }
1623
- calculate(e) {
1624
- if (Object.keys(this).forEach((e) => {
1625
- this[e] === "calculated" && (this[e] = void 0);
1626
- }), typeof e != "object") {
1627
- this.updateColors();
1628
- return;
1629
- }
1630
- let t = Object.keys(e);
1631
- t.forEach((t) => {
1632
- this[t] = e[t];
1633
- }), this.updateColors(), t.forEach((t) => {
1634
- this[t] = e[t];
1635
- });
1636
- }
1637
- }, V = /* @__PURE__ */ e((e) => {
1638
- let t = new _t();
1639
- return t.calculate(e), t;
1640
- }, "getThemeVariables"), vt = class {
1641
- static {
1642
- e(this, "Theme");
1643
- }
1644
- constructor() {
1645
- 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 = y("#cde498", 10), this.primaryBorderColor = z(this.primaryColor, this.darkMode), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.primaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, 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.noteFontWeight = "normal", this.fontWeight = "normal", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))";
1646
- }
1647
- updateColors() {
1648
- this.actorBorder = b(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.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || b(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || b(this.tertiaryColor, 40);
1649
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 25);
1650
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || x(this["cScale" + e], { h: 180 });
1651
- this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
1652
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1653
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
1654
- h: 30,
1655
- s: -30,
1656
- l: -(5 + e * 5)
1657
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
1658
- h: 30,
1659
- s: -30,
1660
- l: -(8 + e * 5)
1661
- });
1662
- 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 || y(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || y(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 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(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 || x(this.primaryColor, { l: -30 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || x(this.tertiaryColor, {
1663
- h: 40,
1664
- l: -40
1665
- }), this.pie7 = this.pie7 || x(this.primaryColor, {
1666
- h: 60,
1667
- l: -10
1668
- }), this.pie8 = this.pie8 || x(this.primaryColor, {
1669
- h: -60,
1670
- l: -10
1671
- }), this.pie9 = this.pie9 || x(this.primaryColor, {
1672
- h: 120,
1673
- l: 0
1674
- }), this.pie10 = this.pie10 || x(this.primaryColor, {
1675
- h: 60,
1676
- l: -50
1677
- }), this.pie11 = this.pie11 || x(this.primaryColor, {
1678
- h: -60,
1679
- l: -50
1680
- }), this.pie12 = this.pie12 || x(this.primaryColor, {
1681
- h: 120,
1682
- l: -50
1683
- }), 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.venn1 = this.venn1 ?? x(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? x(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? x(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? x(this.primaryColor, {
1684
- h: 60,
1685
- l: -30
1686
- }), this.venn5 = this.venn5 ?? x(this.primaryColor, {
1687
- h: -60,
1688
- l: -30
1689
- }), this.venn6 = this.venn6 ?? x(this.secondaryColor, {
1690
- h: 60,
1691
- l: -30
1692
- }), this.venn7 = this.venn7 ?? x(this.primaryColor, {
1693
- h: 120,
1694
- l: -30
1695
- }), this.venn8 = this.venn8 ?? x(this.secondaryColor, {
1696
- h: 120,
1697
- l: -30
1698
- }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
1699
- domainFontSize: this.cynefin?.domainFontSize || 16,
1700
- itemFontSize: this.cynefin?.itemFontSize || 12,
1701
- boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
1702
- boundaryWidth: this.cynefin?.boundaryWidth || 2,
1703
- cliffColor: this.cynefin?.cliffColor || "#8B4513",
1704
- cliffWidth: this.cynefin?.cliffWidth || 4,
1705
- arrowColor: this.cynefin?.arrowColor || this.lineColor,
1706
- arrowWidth: this.cynefin?.arrowWidth || 2,
1707
- complexBg: this.cynefin?.complexBg || "#C8E6C9",
1708
- complicatedBg: this.cynefin?.complicatedBg || "#DCEDC8",
1709
- chaoticBg: this.cynefin?.chaoticBg || "#FFE0B2",
1710
- clearBg: this.cynefin?.clearBg || "#FFF9C4",
1711
- confusionBg: this.cynefin?.confusionBg || "#D7CCC8",
1712
- textColor: this.cynefin?.textColor || this.textColor,
1713
- labelColor: this.cynefin?.labelColor || this.primaryTextColor
1714
- }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
1715
- r: 5,
1716
- g: 5,
1717
- b: 5
1718
- }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1719
- r: 10,
1720
- g: 10,
1721
- b: 10
1722
- }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1723
- r: 15,
1724
- g: 15,
1725
- b: 15
1726
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1727
- r: -5,
1728
- g: -5,
1729
- b: -5
1730
- }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1731
- r: -10,
1732
- g: -10,
1733
- b: -10
1734
- }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1735
- r: -15,
1736
- g: -15,
1737
- b: -15
1738
- }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
1739
- startByteColor: this.primaryTextColor,
1740
- endByteColor: this.primaryTextColor,
1741
- labelColor: this.primaryTextColor,
1742
- titleColor: this.primaryTextColor,
1743
- blockStrokeColor: this.primaryTextColor,
1744
- blockFillColor: this.mainBkg
1745
- }, this.radar = {
1746
- axisColor: this.radar?.axisColor || this.lineColor,
1747
- axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1748
- axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1749
- curveOpacity: this.radar?.curveOpacity || .5,
1750
- curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1751
- graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1752
- graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1753
- graticuleOpacity: this.radar?.graticuleOpacity || .3,
1754
- legendBoxSize: this.radar?.legendBoxSize || 12,
1755
- legendFontSize: this.radar?.legendFontSize || 12
1756
- }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
1757
- backgroundColor: this.wardley?.backgroundColor || this.background,
1758
- axisColor: this.wardley?.axisColor || this.lineColor,
1759
- axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
1760
- gridColor: this.wardley?.gridColor || this.gridColor,
1761
- componentFill: this.wardley?.componentFill || this.background,
1762
- componentStroke: this.wardley?.componentStroke || this.lineColor,
1763
- componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
1764
- linkStroke: this.wardley?.linkStroke || this.lineColor,
1765
- evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
1766
- annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1767
- annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1768
- annotationFill: this.wardley?.annotationFill || this.background
1769
- }, this.xyChart = {
1770
- backgroundColor: this.xyChart?.backgroundColor || this.background,
1771
- titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1772
- dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1773
- xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1774
- xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1775
- xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1776
- xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1777
- yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1778
- yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1779
- yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1780
- yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1781
- plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
1782
- }, 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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || S(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || S(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.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
1783
- }
1784
- calculate(e) {
1785
- if (typeof e != "object") {
1786
- this.updateColors();
1787
- return;
1788
- }
1789
- let t = Object.keys(e);
1790
- t.forEach((t) => {
1791
- this[t] = e[t];
1792
- }), this.updateColors(), t.forEach((t) => {
1793
- this[t] = e[t];
1794
- });
1795
- }
1796
- }, H = /* @__PURE__ */ e((e) => {
1797
- let t = new vt();
1798
- return t.calculate(e), t;
1799
- }, "getThemeVariables"), yt = class {
1800
- static {
1801
- e(this, "Theme");
1802
- }
1803
- constructor() {
1804
- this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = y(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = z(this.primaryColor, this.darkMode), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(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.radius = 5, this.strokeWidth = 1, 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.noteFontWeight = "normal", this.fontWeight = "normal", this.rowOdd = this.rowOdd || y(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || "#f4f4f4", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))";
1805
- }
1806
- updateColors() {
1807
- this.secondBkg = y(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = y(this.border1, 23), this.actorBkg = this.mainBkg, this.actorTextColor = this.text, this.actorLineColor = this.actorBorder, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, 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";
1808
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
1809
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
1810
- this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
1811
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1812
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, { l: -(5 + e * 5) }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, { l: -(8 + e * 5) });
1813
- 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 = y(this.contrast, 30), this.sectionBkgColor2 = y(this.contrast, 30), this.taskBorderColor = b(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 = y(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = b(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 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(this.secondaryColor, { h: 128 });
1814
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1815
- 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";
1816
- for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this["cScale" + e];
1817
- this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
1818
- domainFontSize: this.cynefin?.domainFontSize || 16,
1819
- itemFontSize: this.cynefin?.itemFontSize || 12,
1820
- boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
1821
- boundaryWidth: this.cynefin?.boundaryWidth || 2,
1822
- cliffColor: this.cynefin?.cliffColor || "#8B0000",
1823
- cliffWidth: this.cynefin?.cliffWidth || 4,
1824
- arrowColor: this.cynefin?.arrowColor || this.lineColor,
1825
- arrowWidth: this.cynefin?.arrowWidth || 2,
1826
- complexBg: this.cynefin?.complexBg || "#E8F5E9",
1827
- complicatedBg: this.cynefin?.complicatedBg || "#E3F2FD",
1828
- chaoticBg: this.cynefin?.chaoticBg || "#FBE9E7",
1829
- clearBg: this.cynefin?.clearBg || "#FFF8E1",
1830
- confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
1831
- textColor: this.cynefin?.textColor || this.textColor,
1832
- labelColor: this.cynefin?.labelColor || this.primaryTextColor
1833
- }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
1834
- r: 5,
1835
- g: 5,
1836
- b: 5
1837
- }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
1838
- r: 10,
1839
- g: 10,
1840
- b: 10
1841
- }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
1842
- r: 15,
1843
- g: 15,
1844
- b: 15
1845
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1846
- r: -5,
1847
- g: -5,
1848
- b: -5
1849
- }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1850
- r: -10,
1851
- g: -10,
1852
- b: -10
1853
- }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1854
- r: -15,
1855
- g: -15,
1856
- b: -15
1857
- }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
1858
- backgroundColor: this.xyChart?.backgroundColor || this.background,
1859
- titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1860
- dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
1861
- xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1862
- xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1863
- xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1864
- xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1865
- yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1866
- yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1867
- yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1868
- yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1869
- plotColorPalette: this.xyChart?.plotColorPalette || "#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"
1870
- }, this.radar = {
1871
- axisColor: this.radar?.axisColor || this.lineColor,
1872
- axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1873
- axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1874
- curveOpacity: this.radar?.curveOpacity || .5,
1875
- curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1876
- graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1877
- graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1878
- graticuleOpacity: this.radar?.graticuleOpacity || .3,
1879
- legendBoxSize: this.radar?.legendBoxSize || 12,
1880
- legendFontSize: this.radar?.legendFontSize || 12
1881
- }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
1882
- backgroundColor: this.wardley?.backgroundColor || this.background,
1883
- axisColor: this.wardley?.axisColor || this.lineColor,
1884
- axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
1885
- gridColor: this.wardley?.gridColor || this.gridColor,
1886
- componentFill: this.wardley?.componentFill || this.background,
1887
- componentStroke: this.wardley?.componentStroke || this.lineColor,
1888
- componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
1889
- linkStroke: this.wardley?.linkStroke || this.lineColor,
1890
- evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
1891
- annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1892
- annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1893
- annotationFill: this.wardley?.annotationFill || this.background
1894
- }, 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 = b(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || x(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || x(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || x(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || x(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || x(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(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.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
1895
- }
1896
- calculate(e) {
1897
- if (typeof e != "object") {
1898
- this.updateColors();
1899
- return;
1900
- }
1901
- let t = Object.keys(e);
1902
- t.forEach((t) => {
1903
- this[t] = e[t];
1904
- }), this.updateColors(), t.forEach((t) => {
1905
- this[t] = e[t];
1906
- });
1907
- }
1908
- }, bt = /* @__PURE__ */ e((e) => {
1909
- let t = new yt();
1910
- return t.calculate(e), t;
1911
- }, "getThemeVariables"), xt = class {
1912
- static {
1913
- e(this, "Theme");
1914
- }
1915
- constructor() {
1916
- this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 3, this.strokeWidth = 2, this.primaryBorderColor = z(this.primaryColor, this.darkMode), this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#000000", this.stateBorder = "#000000", this.useGradient = !0, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));", this.tertiaryColor = "#ffffff", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal";
1917
- }
1918
- updateColors() {
1919
- this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
1920
- h: 180,
1921
- l: 5
1922
- }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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 ? b(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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
1923
- let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
1924
- h: 180,
1925
- l: 5
1926
- });
1927
- if (this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || y(e, 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.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, 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.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 || e, this.cScale1 = this.cScale1 || t, this.cScale2 = this.cScale2 || n, this.cScale3 = this.cScale3 || x(e, { h: 30 }), this.cScale4 = this.cScale4 || x(e, { h: 60 }), this.cScale5 = this.cScale5 || x(e, { h: 90 }), this.cScale6 = this.cScale6 || x(e, { h: 120 }), this.cScale7 = this.cScale7 || x(e, { h: 150 }), this.cScale8 = this.cScale8 || x(e, {
1928
- h: 210,
1929
- l: 150
1930
- }), this.cScale9 = this.cScale9 || x(e, { h: 270 }), this.cScale10 = this.cScale10 || x(e, { h: 300 }), this.cScale11 = this.cScale11 || x(e, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
1931
- else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
1932
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
1933
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
1934
- this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1935
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1936
- let r = this.darkMode ? -4 : -1;
1937
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
1938
- h: 180,
1939
- s: -15,
1940
- l: r * (5 + e * 3)
1941
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
1942
- h: 180,
1943
- s: -15,
1944
- l: r * (8 + e * 3)
1945
- });
1946
- this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || x(e, { h: 64 }), this.fillType3 = this.fillType3 || x(t, { h: 64 }), this.fillType4 = this.fillType4 || x(e, { h: -64 }), this.fillType5 = this.fillType5 || x(t, { h: -64 }), this.fillType6 = this.fillType6 || x(e, { h: 128 }), this.fillType7 = this.fillType7 || x(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || x(e, { l: -10 }), this.pie5 = this.pie5 || x(t, { l: -10 }), this.pie6 = this.pie6 || x(n, { l: -10 }), this.pie7 = this.pie7 || x(e, {
1947
- h: 60,
1948
- l: -10
1949
- }), this.pie8 = this.pie8 || x(e, {
1950
- h: -60,
1951
- l: -10
1952
- }), this.pie9 = this.pie9 || x(e, {
1953
- h: 120,
1954
- l: 0
1955
- }), this.pie10 = this.pie10 || x(e, {
1956
- h: 60,
1957
- l: -20
1958
- }), this.pie11 = this.pie11 || x(e, {
1959
- h: -60,
1960
- l: -20
1961
- }), this.pie12 = this.pie12 || x(e, {
1962
- h: 120,
1963
- l: -10
1964
- }), 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.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || x(e, {
1965
- r: 5,
1966
- g: 5,
1967
- b: 5
1968
- }), this.quadrant3Fill = this.quadrant3Fill || x(e, {
1969
- r: 10,
1970
- g: 10,
1971
- b: 10
1972
- }), this.quadrant4Fill = this.quadrant4Fill || x(e, {
1973
- r: 15,
1974
- g: 15,
1975
- b: 15
1976
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
1977
- r: -5,
1978
- g: -5,
1979
- b: -5
1980
- }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
1981
- r: -10,
1982
- g: -10,
1983
- b: -10
1984
- }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
1985
- r: -15,
1986
- g: -15,
1987
- b: -15
1988
- }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
1989
- backgroundColor: this.xyChart?.backgroundColor || this.background,
1990
- titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1991
- xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1992
- xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1993
- xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1994
- xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1995
- yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1996
- yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1997
- yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1998
- yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1999
- plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2000
- }, this.requirementBackground = this.requirementBackground || e, 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 ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(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 || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
2001
- }
2002
- calculate(e) {
2003
- if (typeof e != "object") {
2004
- this.updateColors();
2005
- return;
2006
- }
2007
- let t = Object.keys(e);
2008
- t.forEach((t) => {
2009
- this[t] = e[t];
2010
- }), this.updateColors(), t.forEach((t) => {
2011
- this[t] = e[t];
2012
- });
2013
- }
2014
- }, St = /* @__PURE__ */ e((e) => {
2015
- let t = new xt();
2016
- return t.calculate(e), t;
2017
- }, "getThemeVariables"), Ct = class {
2018
- static {
2019
- e(this, "Theme");
2020
- }
2021
- constructor() {
2022
- this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = g(255, 255, 255, .25), this.arrowheadColor = S(this.background), this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#181818", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 3, this.strokeWidth = 1, this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.useGradient = !0, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal";
2023
- }
2024
- updateColors() {
2025
- if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2026
- h: 180,
2027
- l: 5
2028
- }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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.border1, 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 ? b(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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, 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 || y(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 || this.primaryBorderColor, 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.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, 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.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 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
2029
- h: 210,
2030
- l: 150
2031
- }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
2032
- else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
2033
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2034
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
2035
- this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2036
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2037
- let e = this.darkMode ? -4 : -1;
2038
- for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || x(this.mainBkg, {
2039
- h: 180,
2040
- s: -15,
2041
- l: e * (5 + t * 3)
2042
- }), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, {
2043
- h: 180,
2044
- s: -15,
2045
- l: e * (8 + t * 3)
2046
- });
2047
- this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || x(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || x(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || x(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || x(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || x(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || x(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 || x(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || x(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || x(this.primaryColor, {
2048
- h: 60,
2049
- l: -10
2050
- }), this.pie8 = this.pie8 || x(this.primaryColor, {
2051
- h: -60,
2052
- l: -10
2053
- }), this.pie9 = this.pie9 || x(this.primaryColor, {
2054
- h: 120,
2055
- l: 0
2056
- }), this.pie10 = this.pie10 || x(this.primaryColor, {
2057
- h: 60,
2058
- l: -20
2059
- }), this.pie11 = this.pie11 || x(this.primaryColor, {
2060
- h: -60,
2061
- l: -20
2062
- }), this.pie12 = this.pie12 || x(this.primaryColor, {
2063
- h: 120,
2064
- l: -10
2065
- }), 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.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
2066
- r: 5,
2067
- g: 5,
2068
- b: 5
2069
- }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
2070
- r: 10,
2071
- g: 10,
2072
- b: 10
2073
- }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
2074
- r: 15,
2075
- g: 15,
2076
- b: 15
2077
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2078
- r: -5,
2079
- g: -5,
2080
- b: -5
2081
- }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2082
- r: -10,
2083
- g: -10,
2084
- b: -10
2085
- }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2086
- r: -15,
2087
- g: -15,
2088
- b: -15
2089
- }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
2090
- backgroundColor: this.xyChart?.backgroundColor || this.background,
2091
- titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2092
- xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2093
- xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2094
- xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2095
- xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2096
- yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2097
- yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2098
- yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2099
- yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2100
- plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2101
- }, 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 ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || "#0b0000", this.git1 = this.git1 || "#4d1037", this.git2 = this.git2 || "#3f5258", this.git3 = this.git3 || "#4f2f1b", this.git4 = this.git4 || "#6e0a0a", this.git5 = this.git5 || "#3b0048", this.git6 = this.git6 || "#995a01", this.git7 = this.git7 || "#154706", this.gitDarkMode = !0, this.gitDarkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(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 || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
2102
- }
2103
- calculate(e) {
2104
- if (typeof e != "object") {
2105
- this.updateColors();
2106
- return;
2107
- }
2108
- let t = Object.keys(e);
2109
- t.forEach((t) => {
2110
- this[t] = e[t];
2111
- }), this.updateColors(), t.forEach((t) => {
2112
- this[t] = e[t];
2113
- });
2114
- }
2115
- }, wt = /* @__PURE__ */ e((e) => {
2116
- let t = new Ct();
2117
- return t.calculate(e), t;
2118
- }, "getThemeVariables"), Tt = class {
2119
- static {
2120
- e(this, "Theme");
2121
- }
2122
- constructor() {
2123
- this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#28253D", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.primaryBorderColor = z("#28253D", this.darkMode), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#28253D", this.stateBorder = "#28253D", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.tertiaryColor = "#ffffff", this.clusterBkg = "#F9F9FB", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.actorBorder = "#28253D", this.filterColor = "#000000";
2124
- }
2125
- updateColors() {
2126
- this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2127
- h: 180,
2128
- l: 5
2129
- }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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 ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.noteFontWeight = 600, 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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
2130
- let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
2131
- h: 180,
2132
- l: 5
2133
- });
2134
- this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || y(e, 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.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, 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.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.compositeTitleBackground = "#F9F9FB", this.altBackground = "#F9F9FB", this.stateEdgeLabelBackground = "#FFFFFF", this.fontWeight = 600, 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.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor;
2135
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = this.mainBkg;
2136
- if (this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
2137
- else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
2138
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2139
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
2140
- this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2141
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2142
- let r = this.darkMode ? -4 : -1;
2143
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
2144
- h: 180,
2145
- s: -15,
2146
- l: r * (5 + e * 3)
2147
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
2148
- h: 180,
2149
- s: -15,
2150
- l: r * (8 + e * 3)
2151
- });
2152
- this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || x(e, { h: 64 }), this.fillType3 = this.fillType3 || x(t, { h: 64 }), this.fillType4 = this.fillType4 || x(e, { h: -64 }), this.fillType5 = this.fillType5 || x(t, { h: -64 }), this.fillType6 = this.fillType6 || x(e, { h: 128 }), this.fillType7 = this.fillType7 || x(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || x(e, { l: -10 }), this.pie5 = this.pie5 || x(t, { l: -10 }), this.pie6 = this.pie6 || x(n, { l: -10 }), this.pie7 = this.pie7 || x(e, {
2153
- h: 60,
2154
- l: -10
2155
- }), this.pie8 = this.pie8 || x(e, {
2156
- h: -60,
2157
- l: -10
2158
- }), this.pie9 = this.pie9 || x(e, {
2159
- h: 120,
2160
- l: 0
2161
- }), this.pie10 = this.pie10 || x(e, {
2162
- h: 60,
2163
- l: -20
2164
- }), this.pie11 = this.pie11 || x(e, {
2165
- h: -60,
2166
- l: -20
2167
- }), this.pie12 = this.pie12 || x(e, {
2168
- h: 120,
2169
- l: -10
2170
- }), 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.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || x(e, {
2171
- r: 5,
2172
- g: 5,
2173
- b: 5
2174
- }), this.quadrant3Fill = this.quadrant3Fill || x(e, {
2175
- r: 10,
2176
- g: 10,
2177
- b: 10
2178
- }), this.quadrant4Fill = this.quadrant4Fill || x(e, {
2179
- r: 15,
2180
- g: 15,
2181
- b: 15
2182
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2183
- r: -5,
2184
- g: -5,
2185
- b: -5
2186
- }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2187
- r: -10,
2188
- g: -10,
2189
- b: -10
2190
- }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2191
- r: -15,
2192
- g: -15,
2193
- b: -15
2194
- }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
2195
- backgroundColor: this.xyChart?.backgroundColor || this.background,
2196
- titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2197
- xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2198
- xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2199
- xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2200
- xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2201
- yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2202
- yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2203
- yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2204
- yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2205
- plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2206
- }, this.requirementBackground = this.requirementBackground || e, 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 ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#FFFFFF", this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(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.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
2207
- }
2208
- calculate(e) {
2209
- if (typeof e != "object") {
2210
- this.updateColors();
2211
- return;
2212
- }
2213
- let t = Object.keys(e);
2214
- t.forEach((t) => {
2215
- this[t] = e[t];
2216
- }), this.updateColors(), t.forEach((t) => {
2217
- this[t] = e[t];
2218
- });
2219
- }
2220
- }, Et = /* @__PURE__ */ e((e) => {
2221
- let t = new Tt();
2222
- return t.calculate(e), t;
2223
- }, "getThemeVariables"), Dt = class {
2224
- static {
2225
- e(this, "Theme");
2226
- }
2227
- constructor() {
2228
- this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = g(255, 255, 255, .25), this.arrowheadColor = S(this.background), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#111113", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.noteBkgColor = this.noteBkgColor ?? "#FEF9C3", this.noteTextColor = this.noteTextColor ?? "#28253D", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#FFFFFF", this.stateBorder = "#FFFFFF", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.clusterBkg = "#1E1A2E", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.filterColor = "#FFFFFF";
2229
- }
2230
- updateColors() {
2231
- if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2232
- h: 180,
2233
- l: 5
2234
- }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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.border1, 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 ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = "#FFFFFF", this.signalColor = "#FFFFFF", this.labelBoxBorderColor = "#BDBCCC", 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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, 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 || y(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.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.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.compositeBackground = "#16141F", this.altBackground = "#16141F", this.compositeTitleBackground = "#16141F", this.stateEdgeLabelBackground = "#16141F", this.fontWeight = 600, 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.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 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
2235
- h: 210,
2236
- l: 150
2237
- }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
2238
- else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
2239
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2240
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
2241
- this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2242
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2243
- let e = this.darkMode ? -4 : -1;
2244
- for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || x(this.mainBkg, {
2245
- h: 180,
2246
- s: -15,
2247
- l: e * (5 + t * 3)
2248
- }), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, {
2249
- h: 180,
2250
- s: -15,
2251
- l: e * (8 + t * 3)
2252
- });
2253
- this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || x(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || x(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || x(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || x(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || x(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || x(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 || x(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || x(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || x(this.primaryColor, {
2254
- h: 60,
2255
- l: -10
2256
- }), this.pie8 = this.pie8 || x(this.primaryColor, {
2257
- h: -60,
2258
- l: -10
2259
- }), this.pie9 = this.pie9 || x(this.primaryColor, {
2260
- h: 120,
2261
- l: 0
2262
- }), this.pie10 = this.pie10 || x(this.primaryColor, {
2263
- h: 60,
2264
- l: -20
2265
- }), this.pie11 = this.pie11 || x(this.primaryColor, {
2266
- h: -60,
2267
- l: -20
2268
- }), this.pie12 = this.pie12 || x(this.primaryColor, {
2269
- h: 120,
2270
- l: -10
2271
- }), 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.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
2272
- r: 5,
2273
- g: 5,
2274
- b: 5
2275
- }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
2276
- r: 10,
2277
- g: 10,
2278
- b: 10
2279
- }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
2280
- r: 15,
2281
- g: 15,
2282
- b: 15
2283
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2284
- r: -5,
2285
- g: -5,
2286
- b: -5
2287
- }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2288
- r: -10,
2289
- g: -10,
2290
- b: -10
2291
- }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2292
- r: -15,
2293
- g: -15,
2294
- b: -15
2295
- }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
2296
- backgroundColor: this.xyChart?.backgroundColor || this.background,
2297
- titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2298
- xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2299
- xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2300
- xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2301
- xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2302
- yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2303
- yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2304
- yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2305
- yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2306
- plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2307
- }, 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 ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#16141F", this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(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.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
2308
- }
2309
- calculate(e) {
2310
- if (typeof e != "object") {
2311
- this.updateColors();
2312
- return;
2313
- }
2314
- let t = Object.keys(e);
2315
- t.forEach((t) => {
2316
- this[t] = e[t];
2317
- }), this.updateColors(), t.forEach((t) => {
2318
- this[t] = e[t];
2319
- });
2320
- }
2321
- }, Ot = /* @__PURE__ */ e((e) => {
2322
- let t = new Dt();
2323
- return t.calculate(e), t;
2324
- }, "getThemeVariables"), kt = class {
2325
- static {
2326
- e(this, "Theme");
2327
- }
2328
- constructor() {
2329
- this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#28253D", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.primaryBorderColor = z(this.primaryColor, this.darkMode), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#28253D", this.stateBorder = "#28253D", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.tertiaryColor = "#ffffff", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.actorBorder = "#28253D", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.borderColorArray = [
2330
- "#E879F9",
2331
- "#2DD4BF",
2332
- "#FB923C",
2333
- "#22D3EE",
2334
- "#4ADE80",
2335
- "#A78BFA",
2336
- "#F87171",
2337
- "#FACC15",
2338
- "#818CF8",
2339
- "#A3E635 ",
2340
- "#38BDF8",
2341
- "#FB7185"
2342
- ], this.bkgColorArray = [
2343
- "#FDF4FF",
2344
- "#F0FDFA",
2345
- "#FFF7ED",
2346
- "#ECFEFF",
2347
- "#F0FDF4",
2348
- "#F5F3FF",
2349
- "#FEF2F2",
2350
- "#FEFCE8",
2351
- "#EEF2FF",
2352
- "#F7FEE7",
2353
- "#F0F9FF",
2354
- "#FFF1F2"
2355
- ], this.filterColor = "#000000";
2356
- }
2357
- updateColors() {
2358
- this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2359
- h: 180,
2360
- l: 5
2361
- }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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 ? b(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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
2362
- let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
2363
- h: 180,
2364
- l: 5
2365
- });
2366
- this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || y(e, 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.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, 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.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, 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.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 || "#f4a8ff", this.cScale1 = this.cScale1 || "#46ecd5", this.cScale2 = this.cScale2 || "#ffb86a", this.cScale3 = this.cScale3 || "#dab2ff", this.cScale4 = this.cScale4 || "#7bf1a8", this.cScale5 = this.cScale5 || "#c4b4ff", this.cScale6 = this.cScale6 || "#ffa2a2", this.cScale7 = this.cScale7 || "#ffdf20", this.cScale8 = this.cScale8 || "#a3b3ff", this.cScale9 = this.cScale9 || "#bbf451", this.cScale10 = this.cScale10 || "#74d4ff", this.cScale11 = this.cScale11 || "#ffa1ad";
2367
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2368
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
2369
- this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2370
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2371
- let r = this.darkMode ? -4 : -1;
2372
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
2373
- h: 180,
2374
- s: -15,
2375
- l: r * (5 + e * 3)
2376
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || x(this.mainBkg, {
2377
- h: 180,
2378
- s: -15,
2379
- l: r * (8 + e * 3)
2380
- });
2381
- this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || x(e, { h: 64 }), this.fillType3 = this.fillType3 || x(t, { h: 64 }), this.fillType4 = this.fillType4 || x(e, { h: -64 }), this.fillType5 = this.fillType5 || x(t, { h: -64 }), this.fillType6 = this.fillType6 || x(e, { h: 128 }), this.fillType7 = this.fillType7 || x(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || x(e, { l: -10 }), this.pie5 = this.pie5 || x(t, { l: -10 }), this.pie6 = this.pie6 || x(n, { l: -10 }), this.pie7 = this.pie7 || x(e, {
2382
- h: 60,
2383
- l: -10
2384
- }), this.pie8 = this.pie8 || x(e, {
2385
- h: -60,
2386
- l: -10
2387
- }), this.pie9 = this.pie9 || x(e, {
2388
- h: 120,
2389
- l: 0
2390
- }), this.pie10 = this.pie10 || x(e, {
2391
- h: 60,
2392
- l: -20
2393
- }), this.pie11 = this.pie11 || x(e, {
2394
- h: -60,
2395
- l: -20
2396
- }), this.pie12 = this.pie12 || x(e, {
2397
- h: 120,
2398
- l: -10
2399
- }), 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.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || x(e, {
2400
- r: 5,
2401
- g: 5,
2402
- b: 5
2403
- }), this.quadrant3Fill = this.quadrant3Fill || x(e, {
2404
- r: 10,
2405
- g: 10,
2406
- b: 10
2407
- }), this.quadrant4Fill = this.quadrant4Fill || x(e, {
2408
- r: 15,
2409
- g: 15,
2410
- b: 15
2411
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2412
- r: -5,
2413
- g: -5,
2414
- b: -5
2415
- }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2416
- r: -10,
2417
- g: -10,
2418
- b: -10
2419
- }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2420
- r: -15,
2421
- g: -15,
2422
- b: -15
2423
- }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
2424
- backgroundColor: this.xyChart?.backgroundColor || this.background,
2425
- titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2426
- xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2427
- xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2428
- xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2429
- xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2430
- yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2431
- yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2432
- yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2433
- yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2434
- plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2435
- }, this.requirementBackground = this.requirementBackground || e, 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 ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(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.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.fontWeight = 600, this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
2436
- }
2437
- calculate(e) {
2438
- if (typeof e != "object") {
2439
- this.updateColors();
2440
- return;
2441
- }
2442
- let t = Object.keys(e);
2443
- t.forEach((t) => {
2444
- this[t] = e[t];
2445
- }), this.updateColors(), t.forEach((t) => {
2446
- this[t] = e[t];
2447
- });
2448
- }
2449
- }, At = /* @__PURE__ */ e((e) => {
2450
- let t = new kt();
2451
- return t.calculate(e), t;
2452
- }, "getThemeVariables"), jt = class {
2453
- static {
2454
- e(this, "Theme");
2455
- }
2456
- constructor() {
2457
- this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = g(255, 255, 255, .25), this.arrowheadColor = S(this.background), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#111113", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.noteBkgColor = this.noteBkgColor ?? "#FEF9C3", this.noteTextColor = this.noteTextColor ?? "#28253D", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#FFFFFF", this.stateBorder = "#FFFFFF", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.clusterBkg = "#1E1A2E", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.borderColorArray = [
2458
- "#E879F9",
2459
- "#2DD4BF",
2460
- "#FB923C",
2461
- "#22D3EE",
2462
- "#4ADE80",
2463
- "#A78BFA",
2464
- "#F87171",
2465
- "#FACC15",
2466
- "#818CF8",
2467
- "#A3E635 ",
2468
- "#38BDF8",
2469
- "#FB7185"
2470
- ], this.bkgColorArray = [], this.filterColor = "#FFFFFF";
2471
- }
2472
- updateColors() {
2473
- this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2474
- h: 180,
2475
- l: 5
2476
- }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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.border1, 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 ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = "#FFFFFF", this.signalColor = "#FFFFFF", this.labelBoxBorderColor = "#BDBCCC", 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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.rootLabelColor = "#FFFFFF", 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 || y(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.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, 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.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, 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.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 || "#f4a8ff", this.cScale1 = this.cScale1 || "#46ecd5", this.cScale2 = this.cScale2 || "#ffb86a", this.cScale3 = this.cScale3 || "#dab2ff", this.cScale4 = this.cScale4 || "#7bf1a8", this.cScale5 = this.cScale5 || "#c4b4ff", this.cScale6 = this.cScale6 || "#ffa2a2", this.cScale7 = this.cScale7 || "#ffdf20", this.cScale8 = this.cScale8 || "#a3b3ff", this.cScale9 = this.cScale9 || "#bbf451", this.cScale10 = this.cScale10 || "#74d4ff", this.cScale11 = this.cScale11 || "#ffa1ad";
2477
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2478
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
2479
- this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2480
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = b(this["cScale" + e], 75);
2481
- let e = this.darkMode ? -4 : -1;
2482
- for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || x(this.mainBkg, {
2483
- h: 180,
2484
- s: -15,
2485
- l: e * (5 + t * 3)
2486
- }), this["surfacePeer" + t] = this["surfacePeer" + t] || x(this.mainBkg, {
2487
- h: 180,
2488
- s: -15,
2489
- l: e * (8 + t * 3)
2490
- });
2491
- this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || x(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || x(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || x(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || x(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || x(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || x(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 || x(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || x(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || x(this.primaryColor, {
2492
- h: 60,
2493
- l: -10
2494
- }), this.pie8 = this.pie8 || x(this.primaryColor, {
2495
- h: -60,
2496
- l: -10
2497
- }), this.pie9 = this.pie9 || x(this.primaryColor, {
2498
- h: 120,
2499
- l: 0
2500
- }), this.pie10 = this.pie10 || x(this.primaryColor, {
2501
- h: 60,
2502
- l: -20
2503
- }), this.pie11 = this.pie11 || x(this.primaryColor, {
2504
- h: -60,
2505
- l: -20
2506
- }), this.pie12 = this.pie12 || x(this.primaryColor, {
2507
- h: 120,
2508
- l: -10
2509
- }), 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.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || x(this.primaryColor, {
2510
- r: 5,
2511
- g: 5,
2512
- b: 5
2513
- }), this.quadrant3Fill = this.quadrant3Fill || x(this.primaryColor, {
2514
- r: 10,
2515
- g: 10,
2516
- b: 10
2517
- }), this.quadrant4Fill = this.quadrant4Fill || x(this.primaryColor, {
2518
- r: 15,
2519
- g: 15,
2520
- b: 15
2521
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || x(this.primaryTextColor, {
2522
- r: -5,
2523
- g: -5,
2524
- b: -5
2525
- }), this.quadrant3TextFill = this.quadrant3TextFill || x(this.primaryTextColor, {
2526
- r: -10,
2527
- g: -10,
2528
- b: -10
2529
- }), this.quadrant4TextFill = this.quadrant4TextFill || x(this.primaryTextColor, {
2530
- r: -15,
2531
- g: -15,
2532
- b: -15
2533
- }), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(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 = {
2534
- backgroundColor: this.xyChart?.backgroundColor || this.background,
2535
- titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2536
- xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2537
- xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2538
- xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2539
- xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2540
- yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2541
- yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2542
- yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2543
- yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2544
- plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2545
- }, 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 ? b(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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(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.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.fontWeight = 600, this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
2546
- }
2547
- calculate(e) {
2548
- if (typeof e != "object") {
2549
- this.updateColors();
2550
- return;
2551
- }
2552
- let t = Object.keys(e);
2553
- t.forEach((t) => {
2554
- this[t] = e[t];
2555
- }), this.updateColors(), t.forEach((t) => {
2556
- this[t] = e[t];
2557
- });
2558
- }
2559
- }, U = {
2560
- base: { getThemeVariables: mt },
2561
- dark: { getThemeVariables: gt },
2562
- default: { getThemeVariables: V },
2563
- forest: { getThemeVariables: H },
2564
- neutral: { getThemeVariables: bt },
2565
- neo: { getThemeVariables: St },
2566
- "neo-dark": { getThemeVariables: wt },
2567
- redux: { getThemeVariables: Et },
2568
- "redux-dark": { getThemeVariables: Ot },
2569
- "redux-color": { getThemeVariables: At },
2570
- "redux-dark-color": { getThemeVariables: /* @__PURE__ */ e((e) => {
2571
- let t = new jt();
2572
- return t.calculate(e), t;
2573
- }, "getThemeVariables") }
2574
- }, W = {
2575
- flowchart: {
2576
- useMaxWidth: !0,
2577
- titleTopMargin: 25,
2578
- subGraphTitleMargin: {
2579
- top: 0,
2580
- bottom: 0
2581
- },
2582
- diagramPadding: 8,
2583
- htmlLabels: null,
2584
- nodeSpacing: 50,
2585
- rankSpacing: 50,
2586
- curve: "basis",
2587
- padding: 15,
2588
- defaultRenderer: "dagre-wrapper",
2589
- wrappingWidth: 200,
2590
- inheritDir: !1
2591
- },
2592
- swimlane: {
2593
- useMaxWidth: !0,
2594
- lineHops: "arc",
2595
- ignoreCrossLaneEdges: !0,
2596
- optimizeRanksByCrossings: !0,
2597
- automaticLaneOrdering: !1
2598
- },
2599
- sequence: {
2600
- useMaxWidth: !0,
2601
- hideUnusedParticipants: !1,
2602
- activationWidth: 10,
2603
- diagramMarginX: 50,
2604
- diagramMarginY: 10,
2605
- actorMargin: 50,
2606
- width: 150,
2607
- height: 65,
2608
- boxMargin: 10,
2609
- boxTextMargin: 5,
2610
- noteMargin: 10,
2611
- messageMargin: 35,
2612
- messageAlign: "center",
2613
- mirrorActors: !0,
2614
- forceMenus: !1,
2615
- bottomMarginAdj: 1,
2616
- rightAngles: !1,
2617
- showSequenceNumbers: !1,
2618
- actorFontSize: 14,
2619
- actorFontFamily: "\"Open Sans\", sans-serif",
2620
- actorFontWeight: 400,
2621
- noteFontSize: 14,
2622
- noteFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2623
- noteFontWeight: 400,
2624
- noteAlign: "center",
2625
- messageFontSize: 16,
2626
- messageFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2627
- messageFontWeight: 400,
2628
- wrap: !1,
2629
- wrapPadding: 10,
2630
- labelBoxWidth: 50,
2631
- labelBoxHeight: 20
2632
- },
2633
- gantt: {
2634
- useMaxWidth: !0,
2635
- titleTopMargin: 25,
2636
- barHeight: 20,
2637
- barGap: 4,
2638
- topPadding: 50,
2639
- rightPadding: 75,
2640
- leftPadding: 75,
2641
- gridLineStartPadding: 35,
2642
- fontSize: 11,
2643
- sectionFontSize: 11,
2644
- numberSectionStyles: 4,
2645
- axisFormat: "%Y-%m-%d",
2646
- topAxis: !1,
2647
- displayMode: "",
2648
- weekday: "sunday"
2649
- },
2650
- journey: {
2651
- useMaxWidth: !0,
2652
- diagramMarginX: 50,
2653
- diagramMarginY: 10,
2654
- leftMargin: 150,
2655
- maxLabelWidth: 360,
2656
- width: 150,
2657
- height: 50,
2658
- boxMargin: 10,
2659
- boxTextMargin: 5,
2660
- noteMargin: 10,
2661
- messageMargin: 35,
2662
- messageAlign: "center",
2663
- bottomMarginAdj: 1,
2664
- rightAngles: !1,
2665
- taskFontSize: 14,
2666
- taskFontFamily: "\"Open Sans\", sans-serif",
2667
- taskMargin: 50,
2668
- activationWidth: 10,
2669
- textPlacement: "fo",
2670
- actorColours: [
2671
- "#8FBC8F",
2672
- "#7CFC00",
2673
- "#00FFFF",
2674
- "#20B2AA",
2675
- "#B0E0E6",
2676
- "#FFFFE0"
2677
- ],
2678
- sectionFills: [
2679
- "#191970",
2680
- "#8B008B",
2681
- "#4B0082",
2682
- "#2F4F4F",
2683
- "#800000",
2684
- "#8B4513",
2685
- "#00008B"
2686
- ],
2687
- sectionColours: ["#fff"],
2688
- titleColor: "",
2689
- titleFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2690
- titleFontSize: "4ex"
2691
- },
2692
- class: {
2693
- useMaxWidth: !0,
2694
- titleTopMargin: 25,
2695
- arrowMarkerAbsolute: !1,
2696
- dividerMargin: 10,
2697
- padding: 5,
2698
- textHeight: 10,
2699
- defaultRenderer: "dagre-wrapper",
2700
- htmlLabels: !1,
2701
- hideEmptyMembersBox: !1,
2702
- hierarchicalNamespaces: !0
2703
- },
2704
- state: {
2705
- useMaxWidth: !0,
2706
- titleTopMargin: 25,
2707
- dividerMargin: 10,
2708
- sizeUnit: 5,
2709
- padding: 8,
2710
- textHeight: 10,
2711
- titleShift: -15,
2712
- noteMargin: 10,
2713
- forkWidth: 70,
2714
- forkHeight: 7,
2715
- miniPadding: 2,
2716
- fontSizeFactor: 5.02,
2717
- fontSize: 24,
2718
- labelHeight: 16,
2719
- edgeLengthFactor: "20",
2720
- compositTitleSize: 35,
2721
- radius: 5,
2722
- defaultRenderer: "dagre-wrapper"
2723
- },
2724
- er: {
2725
- useMaxWidth: !0,
2726
- titleTopMargin: 25,
2727
- diagramPadding: 20,
2728
- layoutDirection: "TB",
2729
- minEntityWidth: 100,
2730
- minEntityHeight: 75,
2731
- entityPadding: 15,
2732
- nodeSpacing: 140,
2733
- rankSpacing: 80,
2734
- stroke: "gray",
2735
- fill: "honeydew",
2736
- fontSize: 12
2737
- },
2738
- pie: {
2739
- useMaxWidth: !0,
2740
- textPosition: .75,
2741
- donutHole: 0,
2742
- legendPosition: "right",
2743
- highlightSlice: ""
2744
- },
2745
- quadrantChart: {
2746
- useMaxWidth: !0,
2747
- chartWidth: 500,
2748
- chartHeight: 500,
2749
- titleFontSize: 20,
2750
- titlePadding: 10,
2751
- quadrantPadding: 5,
2752
- xAxisLabelPadding: 5,
2753
- yAxisLabelPadding: 5,
2754
- xAxisLabelFontSize: 16,
2755
- yAxisLabelFontSize: 16,
2756
- quadrantLabelFontSize: 16,
2757
- quadrantTextTopPadding: 5,
2758
- pointTextPadding: 5,
2759
- pointLabelFontSize: 12,
2760
- pointRadius: 5,
2761
- xAxisPosition: "top",
2762
- yAxisPosition: "left",
2763
- quadrantInternalBorderStrokeWidth: 1,
2764
- quadrantExternalBorderStrokeWidth: 2
2765
- },
2766
- xyChart: {
2767
- useMaxWidth: !0,
2768
- width: 700,
2769
- height: 500,
2770
- titleFontSize: 20,
2771
- titlePadding: 10,
2772
- showDataLabel: !1,
2773
- showDataLabelOutsideBar: !1,
2774
- showTitle: !0,
2775
- xAxis: {
2776
- $ref: "#/$defs/XYChartAxisConfig",
2777
- showLabel: !0,
2778
- labelFontSize: 14,
2779
- labelPadding: 5,
2780
- showTitle: !0,
2781
- titleFontSize: 16,
2782
- titlePadding: 5,
2783
- showTick: !0,
2784
- tickLength: 5,
2785
- tickWidth: 2,
2786
- showAxisLine: !0,
2787
- axisLineWidth: 2,
2788
- labelRotation: 0
2789
- },
2790
- yAxis: {
2791
- $ref: "#/$defs/XYChartAxisConfig",
2792
- showLabel: !0,
2793
- labelFontSize: 14,
2794
- labelPadding: 5,
2795
- showTitle: !0,
2796
- titleFontSize: 16,
2797
- titlePadding: 5,
2798
- showTick: !0,
2799
- tickLength: 5,
2800
- tickWidth: 2,
2801
- showAxisLine: !0,
2802
- axisLineWidth: 2,
2803
- labelRotation: 0
2804
- },
2805
- chartOrientation: "vertical",
2806
- plotReservedSpacePercent: 50
2807
- },
2808
- requirement: {
2809
- useMaxWidth: !0,
2810
- rect_fill: "#f9f9f9",
2811
- text_color: "#333",
2812
- rect_border_size: "0.5px",
2813
- rect_border_color: "#bbb",
2814
- rect_min_width: 200,
2815
- rect_min_height: 200,
2816
- fontSize: 14,
2817
- rect_padding: 10,
2818
- line_height: 20
2819
- },
2820
- mindmap: {
2821
- useMaxWidth: !0,
2822
- padding: 10,
2823
- maxNodeWidth: 200,
2824
- layoutAlgorithm: "cose-bilkent"
2825
- },
2826
- ishikawa: {
2827
- useMaxWidth: !0,
2828
- diagramPadding: 20
2829
- },
2830
- kanban: {
2831
- useMaxWidth: !0,
2832
- padding: 8,
2833
- sectionWidth: 200,
2834
- ticketBaseUrl: ""
2835
- },
2836
- timeline: {
2837
- useMaxWidth: !0,
2838
- diagramMarginX: 50,
2839
- diagramMarginY: 10,
2840
- leftMargin: 150,
2841
- width: 150,
2842
- height: 50,
2843
- boxMargin: 10,
2844
- boxTextMargin: 5,
2845
- noteMargin: 10,
2846
- messageMargin: 35,
2847
- messageAlign: "center",
2848
- bottomMarginAdj: 1,
2849
- rightAngles: !1,
2850
- taskFontSize: 14,
2851
- taskFontFamily: "\"Open Sans\", sans-serif",
2852
- taskMargin: 50,
2853
- activationWidth: 10,
2854
- textPlacement: "fo",
2855
- actorColours: [
2856
- "#8FBC8F",
2857
- "#7CFC00",
2858
- "#00FFFF",
2859
- "#20B2AA",
2860
- "#B0E0E6",
2861
- "#FFFFE0"
2862
- ],
2863
- sectionFills: [
2864
- "#191970",
2865
- "#8B008B",
2866
- "#4B0082",
2867
- "#2F4F4F",
2868
- "#800000",
2869
- "#8B4513",
2870
- "#00008B"
2871
- ],
2872
- sectionColours: ["#fff"],
2873
- disableMulticolor: !1
2874
- },
2875
- gitGraph: {
2876
- useMaxWidth: !0,
2877
- titleTopMargin: 25,
2878
- diagramPadding: 8,
2879
- nodeLabel: {
2880
- width: 75,
2881
- height: 100,
2882
- x: -25,
2883
- y: 0
2884
- },
2885
- mainBranchName: "main",
2886
- mainBranchOrder: 0,
2887
- showCommitLabel: !0,
2888
- showBranches: !0,
2889
- rotateCommitLabel: !0,
2890
- parallelCommits: !1,
2891
- arrowMarkerAbsolute: !1
2892
- },
2893
- c4: {
2894
- useMaxWidth: !0,
2895
- diagramMarginX: 50,
2896
- diagramMarginY: 10,
2897
- c4ShapeMargin: 50,
2898
- c4ShapePadding: 20,
2899
- width: 216,
2900
- height: 60,
2901
- boxMargin: 10,
2902
- c4ShapeInRow: 4,
2903
- nextLinePaddingX: 0,
2904
- c4BoundaryInRow: 2,
2905
- personFontSize: 14,
2906
- personFontFamily: "\"Open Sans\", sans-serif",
2907
- personFontWeight: "normal",
2908
- external_personFontSize: 14,
2909
- external_personFontFamily: "\"Open Sans\", sans-serif",
2910
- external_personFontWeight: "normal",
2911
- systemFontSize: 14,
2912
- systemFontFamily: "\"Open Sans\", sans-serif",
2913
- systemFontWeight: "normal",
2914
- external_systemFontSize: 14,
2915
- external_systemFontFamily: "\"Open Sans\", sans-serif",
2916
- external_systemFontWeight: "normal",
2917
- system_dbFontSize: 14,
2918
- system_dbFontFamily: "\"Open Sans\", sans-serif",
2919
- system_dbFontWeight: "normal",
2920
- external_system_dbFontSize: 14,
2921
- external_system_dbFontFamily: "\"Open Sans\", sans-serif",
2922
- external_system_dbFontWeight: "normal",
2923
- system_queueFontSize: 14,
2924
- system_queueFontFamily: "\"Open Sans\", sans-serif",
2925
- system_queueFontWeight: "normal",
2926
- external_system_queueFontSize: 14,
2927
- external_system_queueFontFamily: "\"Open Sans\", sans-serif",
2928
- external_system_queueFontWeight: "normal",
2929
- boundaryFontSize: 14,
2930
- boundaryFontFamily: "\"Open Sans\", sans-serif",
2931
- boundaryFontWeight: "normal",
2932
- messageFontSize: 12,
2933
- messageFontFamily: "\"Open Sans\", sans-serif",
2934
- messageFontWeight: "normal",
2935
- containerFontSize: 14,
2936
- containerFontFamily: "\"Open Sans\", sans-serif",
2937
- containerFontWeight: "normal",
2938
- external_containerFontSize: 14,
2939
- external_containerFontFamily: "\"Open Sans\", sans-serif",
2940
- external_containerFontWeight: "normal",
2941
- container_dbFontSize: 14,
2942
- container_dbFontFamily: "\"Open Sans\", sans-serif",
2943
- container_dbFontWeight: "normal",
2944
- external_container_dbFontSize: 14,
2945
- external_container_dbFontFamily: "\"Open Sans\", sans-serif",
2946
- external_container_dbFontWeight: "normal",
2947
- container_queueFontSize: 14,
2948
- container_queueFontFamily: "\"Open Sans\", sans-serif",
2949
- container_queueFontWeight: "normal",
2950
- external_container_queueFontSize: 14,
2951
- external_container_queueFontFamily: "\"Open Sans\", sans-serif",
2952
- external_container_queueFontWeight: "normal",
2953
- componentFontSize: 14,
2954
- componentFontFamily: "\"Open Sans\", sans-serif",
2955
- componentFontWeight: "normal",
2956
- external_componentFontSize: 14,
2957
- external_componentFontFamily: "\"Open Sans\", sans-serif",
2958
- external_componentFontWeight: "normal",
2959
- component_dbFontSize: 14,
2960
- component_dbFontFamily: "\"Open Sans\", sans-serif",
2961
- component_dbFontWeight: "normal",
2962
- external_component_dbFontSize: 14,
2963
- external_component_dbFontFamily: "\"Open Sans\", sans-serif",
2964
- external_component_dbFontWeight: "normal",
2965
- component_queueFontSize: 14,
2966
- component_queueFontFamily: "\"Open Sans\", sans-serif",
2967
- component_queueFontWeight: "normal",
2968
- external_component_queueFontSize: 14,
2969
- external_component_queueFontFamily: "\"Open Sans\", sans-serif",
2970
- external_component_queueFontWeight: "normal",
2971
- wrap: !0,
2972
- wrapPadding: 10,
2973
- person_bg_color: "#08427B",
2974
- person_border_color: "#073B6F",
2975
- external_person_bg_color: "#686868",
2976
- external_person_border_color: "#8A8A8A",
2977
- system_bg_color: "#1168BD",
2978
- system_border_color: "#3C7FC0",
2979
- system_db_bg_color: "#1168BD",
2980
- system_db_border_color: "#3C7FC0",
2981
- system_queue_bg_color: "#1168BD",
2982
- system_queue_border_color: "#3C7FC0",
2983
- external_system_bg_color: "#999999",
2984
- external_system_border_color: "#8A8A8A",
2985
- external_system_db_bg_color: "#999999",
2986
- external_system_db_border_color: "#8A8A8A",
2987
- external_system_queue_bg_color: "#999999",
2988
- external_system_queue_border_color: "#8A8A8A",
2989
- container_bg_color: "#438DD5",
2990
- container_border_color: "#3C7FC0",
2991
- container_db_bg_color: "#438DD5",
2992
- container_db_border_color: "#3C7FC0",
2993
- container_queue_bg_color: "#438DD5",
2994
- container_queue_border_color: "#3C7FC0",
2995
- external_container_bg_color: "#B3B3B3",
2996
- external_container_border_color: "#A6A6A6",
2997
- external_container_db_bg_color: "#B3B3B3",
2998
- external_container_db_border_color: "#A6A6A6",
2999
- external_container_queue_bg_color: "#B3B3B3",
3000
- external_container_queue_border_color: "#A6A6A6",
3001
- component_bg_color: "#85BBF0",
3002
- component_border_color: "#78A8D8",
3003
- component_db_bg_color: "#85BBF0",
3004
- component_db_border_color: "#78A8D8",
3005
- component_queue_bg_color: "#85BBF0",
3006
- component_queue_border_color: "#78A8D8",
3007
- external_component_bg_color: "#CCCCCC",
3008
- external_component_border_color: "#BFBFBF",
3009
- external_component_db_bg_color: "#CCCCCC",
3010
- external_component_db_border_color: "#BFBFBF",
3011
- external_component_queue_bg_color: "#CCCCCC",
3012
- external_component_queue_border_color: "#BFBFBF"
3013
- },
3014
- sankey: {
3015
- useMaxWidth: !0,
3016
- width: 600,
3017
- height: 400,
3018
- linkColor: "gradient",
3019
- nodeAlignment: "justify",
3020
- showValues: !0,
3021
- prefix: "",
3022
- suffix: "",
3023
- nodeWidth: 10,
3024
- nodePadding: 12,
3025
- labelStyle: "legacy"
3026
- },
3027
- block: {
3028
- useMaxWidth: !0,
3029
- padding: 8
3030
- },
3031
- packet: {
3032
- useMaxWidth: !0,
3033
- rowHeight: 32,
3034
- bitWidth: 32,
3035
- bitsPerRow: 32,
3036
- showBits: !0,
3037
- paddingX: 5,
3038
- paddingY: 5
3039
- },
3040
- treeView: {
3041
- useMaxWidth: !0,
3042
- rowIndent: 10,
3043
- paddingX: 5,
3044
- paddingY: 5,
3045
- lineThickness: 1,
3046
- showIcons: !1,
3047
- defaultIconPack: "",
3048
- filenameIcons: {},
3049
- extensionIcons: {}
3050
- },
3051
- architecture: {
3052
- useMaxWidth: !0,
3053
- padding: 40,
3054
- iconSize: 80,
3055
- fontSize: 16,
3056
- randomize: !1,
3057
- nodeSeparation: 75,
3058
- idealEdgeLengthMultiplier: 1.5,
3059
- edgeElasticity: .45,
3060
- numIter: 2500,
3061
- seed: 1
3062
- },
3063
- eventmodeling: {
3064
- useMaxWidth: !0,
3065
- padding: 30,
3066
- rowHeight: 32
3067
- },
3068
- radar: {
3069
- useMaxWidth: !0,
3070
- width: 600,
3071
- height: 600,
3072
- marginTop: 50,
3073
- marginRight: 50,
3074
- marginBottom: 50,
3075
- marginLeft: 50,
3076
- axisScaleFactor: 1,
3077
- axisLabelFactor: 1.05,
3078
- curveTension: .17
3079
- },
3080
- venn: {
3081
- useMaxWidth: !0,
3082
- width: 800,
3083
- height: 450,
3084
- padding: 8,
3085
- useDebugLayout: !1
3086
- },
3087
- cynefin: {
3088
- useMaxWidth: !0,
3089
- width: 800,
3090
- height: 600,
3091
- padding: 40,
3092
- showDomainDescriptions: !0,
3093
- boundaryAmplitude: 8,
3094
- seed: 0
3095
- },
3096
- theme: "default",
3097
- look: "classic",
3098
- handDrawnSeed: 0,
3099
- layout: "dagre",
3100
- maxTextSize: 5e4,
3101
- maxEdges: 500,
3102
- darkMode: !1,
3103
- fontFamily: "\"trebuchet ms\", verdana, arial, sans-serif;",
3104
- logLevel: 5,
3105
- securityLevel: "strict",
3106
- startOnLoad: !0,
3107
- arrowMarkerAbsolute: !1,
3108
- secure: [
3109
- "secure",
3110
- "securityLevel",
3111
- "startOnLoad",
3112
- "maxTextSize",
3113
- "suppressErrorRendering",
3114
- "maxEdges"
3115
- ],
3116
- legacyMathML: !1,
3117
- forceLegacyMathML: !1,
3118
- deterministicIds: !1,
3119
- fontSize: 16,
3120
- markdownAutoWrap: !0,
3121
- suppressErrorRendering: !1
3122
- }, Mt = {
3123
- ...W,
3124
- deterministicIDSeed: void 0,
3125
- elk: {
3126
- mergeEdges: !1,
3127
- nodePlacementStrategy: "BRANDES_KOEPF",
3128
- forceNodeModelOrder: !1,
3129
- considerModelOrder: "NODES_AND_EDGES"
3130
- },
3131
- themeCSS: void 0,
3132
- themeVariables: U.default.getThemeVariables(),
3133
- sequence: {
3134
- ...W.sequence,
3135
- messageFont: /* @__PURE__ */ e(function() {
3136
- return {
3137
- fontFamily: this.messageFontFamily,
3138
- fontSize: this.messageFontSize,
3139
- fontWeight: this.messageFontWeight
3140
- };
3141
- }, "messageFont"),
3142
- noteFont: /* @__PURE__ */ e(function() {
3143
- return {
3144
- fontFamily: this.noteFontFamily,
3145
- fontSize: this.noteFontSize,
3146
- fontWeight: this.noteFontWeight
3147
- };
3148
- }, "noteFont"),
3149
- actorFont: /* @__PURE__ */ e(function() {
3150
- return {
3151
- fontFamily: this.actorFontFamily,
3152
- fontSize: this.actorFontSize,
3153
- fontWeight: this.actorFontWeight
3154
- };
3155
- }, "actorFont")
3156
- },
3157
- class: {
3158
- hideEmptyMembersBox: !1,
3159
- hierarchicalNamespaces: !0
3160
- },
3161
- gantt: {
3162
- ...W.gantt,
3163
- tickInterval: void 0,
3164
- useWidth: void 0
3165
- },
3166
- c4: {
3167
- ...W.c4,
3168
- useWidth: void 0,
3169
- personFont: /* @__PURE__ */ e(function() {
3170
- return {
3171
- fontFamily: this.personFontFamily,
3172
- fontSize: this.personFontSize,
3173
- fontWeight: this.personFontWeight
3174
- };
3175
- }, "personFont"),
3176
- flowchart: {
3177
- ...W.flowchart,
3178
- inheritDir: !1
3179
- },
3180
- external_personFont: /* @__PURE__ */ e(function() {
3181
- return {
3182
- fontFamily: this.external_personFontFamily,
3183
- fontSize: this.external_personFontSize,
3184
- fontWeight: this.external_personFontWeight
3185
- };
3186
- }, "external_personFont"),
3187
- systemFont: /* @__PURE__ */ e(function() {
3188
- return {
3189
- fontFamily: this.systemFontFamily,
3190
- fontSize: this.systemFontSize,
3191
- fontWeight: this.systemFontWeight
3192
- };
3193
- }, "systemFont"),
3194
- external_systemFont: /* @__PURE__ */ e(function() {
3195
- return {
3196
- fontFamily: this.external_systemFontFamily,
3197
- fontSize: this.external_systemFontSize,
3198
- fontWeight: this.external_systemFontWeight
3199
- };
3200
- }, "external_systemFont"),
3201
- system_dbFont: /* @__PURE__ */ e(function() {
3202
- return {
3203
- fontFamily: this.system_dbFontFamily,
3204
- fontSize: this.system_dbFontSize,
3205
- fontWeight: this.system_dbFontWeight
3206
- };
3207
- }, "system_dbFont"),
3208
- external_system_dbFont: /* @__PURE__ */ e(function() {
3209
- return {
3210
- fontFamily: this.external_system_dbFontFamily,
3211
- fontSize: this.external_system_dbFontSize,
3212
- fontWeight: this.external_system_dbFontWeight
3213
- };
3214
- }, "external_system_dbFont"),
3215
- system_queueFont: /* @__PURE__ */ e(function() {
3216
- return {
3217
- fontFamily: this.system_queueFontFamily,
3218
- fontSize: this.system_queueFontSize,
3219
- fontWeight: this.system_queueFontWeight
3220
- };
3221
- }, "system_queueFont"),
3222
- external_system_queueFont: /* @__PURE__ */ e(function() {
3223
- return {
3224
- fontFamily: this.external_system_queueFontFamily,
3225
- fontSize: this.external_system_queueFontSize,
3226
- fontWeight: this.external_system_queueFontWeight
3227
- };
3228
- }, "external_system_queueFont"),
3229
- containerFont: /* @__PURE__ */ e(function() {
3230
- return {
3231
- fontFamily: this.containerFontFamily,
3232
- fontSize: this.containerFontSize,
3233
- fontWeight: this.containerFontWeight
3234
- };
3235
- }, "containerFont"),
3236
- external_containerFont: /* @__PURE__ */ e(function() {
3237
- return {
3238
- fontFamily: this.external_containerFontFamily,
3239
- fontSize: this.external_containerFontSize,
3240
- fontWeight: this.external_containerFontWeight
3241
- };
3242
- }, "external_containerFont"),
3243
- container_dbFont: /* @__PURE__ */ e(function() {
3244
- return {
3245
- fontFamily: this.container_dbFontFamily,
3246
- fontSize: this.container_dbFontSize,
3247
- fontWeight: this.container_dbFontWeight
3248
- };
3249
- }, "container_dbFont"),
3250
- external_container_dbFont: /* @__PURE__ */ e(function() {
3251
- return {
3252
- fontFamily: this.external_container_dbFontFamily,
3253
- fontSize: this.external_container_dbFontSize,
3254
- fontWeight: this.external_container_dbFontWeight
3255
- };
3256
- }, "external_container_dbFont"),
3257
- container_queueFont: /* @__PURE__ */ e(function() {
3258
- return {
3259
- fontFamily: this.container_queueFontFamily,
3260
- fontSize: this.container_queueFontSize,
3261
- fontWeight: this.container_queueFontWeight
3262
- };
3263
- }, "container_queueFont"),
3264
- external_container_queueFont: /* @__PURE__ */ e(function() {
3265
- return {
3266
- fontFamily: this.external_container_queueFontFamily,
3267
- fontSize: this.external_container_queueFontSize,
3268
- fontWeight: this.external_container_queueFontWeight
3269
- };
3270
- }, "external_container_queueFont"),
3271
- componentFont: /* @__PURE__ */ e(function() {
3272
- return {
3273
- fontFamily: this.componentFontFamily,
3274
- fontSize: this.componentFontSize,
3275
- fontWeight: this.componentFontWeight
3276
- };
3277
- }, "componentFont"),
3278
- external_componentFont: /* @__PURE__ */ e(function() {
3279
- return {
3280
- fontFamily: this.external_componentFontFamily,
3281
- fontSize: this.external_componentFontSize,
3282
- fontWeight: this.external_componentFontWeight
3283
- };
3284
- }, "external_componentFont"),
3285
- component_dbFont: /* @__PURE__ */ e(function() {
3286
- return {
3287
- fontFamily: this.component_dbFontFamily,
3288
- fontSize: this.component_dbFontSize,
3289
- fontWeight: this.component_dbFontWeight
3290
- };
3291
- }, "component_dbFont"),
3292
- external_component_dbFont: /* @__PURE__ */ e(function() {
3293
- return {
3294
- fontFamily: this.external_component_dbFontFamily,
3295
- fontSize: this.external_component_dbFontSize,
3296
- fontWeight: this.external_component_dbFontWeight
3297
- };
3298
- }, "external_component_dbFont"),
3299
- component_queueFont: /* @__PURE__ */ e(function() {
3300
- return {
3301
- fontFamily: this.component_queueFontFamily,
3302
- fontSize: this.component_queueFontSize,
3303
- fontWeight: this.component_queueFontWeight
3304
- };
3305
- }, "component_queueFont"),
3306
- external_component_queueFont: /* @__PURE__ */ e(function() {
3307
- return {
3308
- fontFamily: this.external_component_queueFontFamily,
3309
- fontSize: this.external_component_queueFontSize,
3310
- fontWeight: this.external_component_queueFontWeight
3311
- };
3312
- }, "external_component_queueFont"),
3313
- boundaryFont: /* @__PURE__ */ e(function() {
3314
- return {
3315
- fontFamily: this.boundaryFontFamily,
3316
- fontSize: this.boundaryFontSize,
3317
- fontWeight: this.boundaryFontWeight
3318
- };
3319
- }, "boundaryFont"),
3320
- messageFont: /* @__PURE__ */ e(function() {
3321
- return {
3322
- fontFamily: this.messageFontFamily,
3323
- fontSize: this.messageFontSize,
3324
- fontWeight: this.messageFontWeight
3325
- };
3326
- }, "messageFont")
3327
- },
3328
- pie: {
3329
- ...W.pie,
3330
- useWidth: 984
3331
- },
3332
- xyChart: {
3333
- ...W.xyChart,
3334
- useWidth: void 0
3335
- },
3336
- requirement: {
3337
- ...W.requirement,
3338
- useWidth: void 0
3339
- },
3340
- packet: { ...W.packet },
3341
- eventmodeling: { ...W.eventmodeling },
3342
- treeView: {
3343
- ...W.treeView,
3344
- useWidth: void 0
3345
- },
3346
- radar: { ...W.radar },
3347
- railroad: {
3348
- ...W.railroad,
3349
- fontSize: void 0,
3350
- fontFamily: void 0,
3351
- terminalFill: void 0,
3352
- terminalStroke: void 0,
3353
- terminalTextColor: void 0,
3354
- nonTerminalFill: void 0,
3355
- nonTerminalStroke: void 0,
3356
- nonTerminalTextColor: void 0,
3357
- lineColor: void 0,
3358
- markerFill: void 0,
3359
- commentFill: void 0,
3360
- commentStroke: void 0,
3361
- commentTextColor: void 0,
3362
- specialFill: void 0,
3363
- specialStroke: void 0,
3364
- ruleNameColor: void 0
3365
- },
3366
- ishikawa: { ...W.ishikawa },
3367
- sankey: {
3368
- ...W.sankey,
3369
- nodeColors: void 0
3370
- },
3371
- treemap: {
3372
- useMaxWidth: !0,
3373
- padding: 10,
3374
- diagramPadding: 8,
3375
- showValues: !0,
3376
- nodeWidth: 100,
3377
- nodeHeight: 40,
3378
- borderWidth: 1,
3379
- valueFontSize: 12,
3380
- labelFontSize: 14,
3381
- valueFormat: ","
3382
- },
3383
- venn: { ...W.venn },
3384
- cynefin: { ...W.cynefin }
3385
- }, Nt = /* @__PURE__ */ e((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
3386
- ...n,
3387
- t + r,
3388
- ...Nt(e[r], "")
3389
- ] : [...n, t + r], []), "keyify"), Pt = new Set(Nt(Mt, "")), Ft = Mt, It = {
3390
- nodeColors: /^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,
3391
- filenameIcons: /^[\w-]+(?::[\w-]+)?$/,
3392
- extensionIcons: /^[\w-]+(?::[\w-]+)?$/
3393
- }, Lt = /* @__PURE__ */ e((e, t) => {
3394
- for (let n of Object.keys(e)) {
3395
- let i = e[n];
3396
- (n.startsWith("__") || n.includes("proto") || n.includes("constr") || typeof i != "string" || !t.test(i)) && (r.debug("sanitize deleting dictionary entry:", n, i), delete e[n]);
3397
- }
3398
- }, "sanitizeDictionaryConfig"), G = /* @__PURE__ */ e((e) => {
3399
- if (r.debug("sanitizeDirective called with", e), !(typeof e != "object" || !e)) {
3400
- if (Array.isArray(e)) {
3401
- e.forEach((e) => G(e));
3402
- return;
3403
- }
3404
- for (let t of Object.keys(e)) {
3405
- if (r.debug("Checking key", t), t.startsWith("__") || t.includes("proto") || t.includes("constr") || !Pt.has(t) || e[t] == null) {
3406
- r.debug("sanitize deleting key: ", t), delete e[t];
3407
- continue;
3408
- }
3409
- if (typeof e[t] == "object") {
3410
- let n = It[t];
3411
- n ? Lt(e[t], n) : (r.debug("sanitizing object", t), G(e[t]));
3412
- continue;
3413
- }
3414
- for (let n of [
3415
- "themeCSS",
3416
- "fontFamily",
3417
- "altFontFamily"
3418
- ]) t.includes(n) && (r.debug("sanitizing css option", t), e[t] = Rt(e[t]));
3419
- }
3420
- if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
3421
- let n = e.themeVariables[t];
3422
- n?.match && !n.match(/^[\d "#%(),.;A-Za-z]+$/) && (e.themeVariables[t] = "");
3423
- }
3424
- r.debug("After sanitization", e);
3425
- }
3426
- }, "sanitizeDirective"), Rt = /* @__PURE__ */ e((e) => {
3427
- let t = 0, n = 0;
3428
- for (let r of e) {
3429
- if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
3430
- r === "{" ? t++ : r === "}" && n++;
3431
- }
3432
- return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
3433
- }, "sanitizeCss"), zt = Object.freeze(Ft), Bt = /* @__PURE__ */ e((e) => !(e === !1 || [
3434
- "false",
3435
- "null",
3436
- "0"
3437
- ].includes(String(e).trim().toLowerCase())), "evaluate"), K = I({}, zt), Vt, q = [], Ht = I({}, zt), Ut = /* @__PURE__ */ e((e, t) => {
3438
- let n = I({}, e), r = {};
3439
- for (let e of t) Yt(e), r = I(r, e);
3440
- if (n = I(n, r), r.theme && r.theme in U) {
3441
- let e = I(I({}, Vt).themeVariables || {}, r.themeVariables);
3442
- n.theme && n.theme in U && (n.themeVariables = U[n.theme].getThemeVariables(e));
3443
- }
3444
- return Ht = n, tn(Ht), Ht;
3445
- }, "updateCurrentConfig"), Wt = /* @__PURE__ */ e((e) => (K = I({}, zt), K = I(K, e), e.theme && U[e.theme] && (K.themeVariables = U[e.theme].getThemeVariables(e.themeVariables)), Ut(K, q), K), "setSiteConfig"), Gt = /* @__PURE__ */ e((e) => {
3446
- Vt = I({}, e);
3447
- }, "saveConfigFromInitialize"), Kt = /* @__PURE__ */ e((e) => (K = I(K, e), Ut(K, q), K), "updateSiteConfig"), J = /* @__PURE__ */ e(() => I({}, K), "getSiteConfig"), qt = /* @__PURE__ */ e((e) => (Ut(Ht, [e]), Jt()), "setConfig"), Jt = /* @__PURE__ */ e(() => I({}, Ht), "getConfig"), Yt = /* @__PURE__ */ e((e) => {
3448
- e && (["secure", ...K.secure ?? []].forEach((t) => {
3449
- Object.hasOwn(e, t) && (r.debug(`Denied attempt to modify a secure key ${t}`, e[t]), delete e[t]);
3450
- }), Object.keys(e).forEach((t) => {
3451
- t.startsWith("__") && delete e[t];
3452
- }), Object.keys(e).forEach((t) => {
3453
- typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && Yt(e[t]);
3454
- }));
3455
- }, "sanitize"), Xt = /* @__PURE__ */ e((e) => {
3456
- G(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
3457
- ...e.themeVariables,
3458
- fontFamily: e.fontFamily
3459
- }), q.push(e), Ut(K, q);
3460
- }, "addDirective"), Zt = /* @__PURE__ */ e((e = K) => {
3461
- q = [], Ut(e, q);
3462
- }, "reset"), Qt = {
3463
- LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",
3464
- FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
3465
- }, $t = {}, en = /* @__PURE__ */ e((e) => {
3466
- $t[e] || (r.warn(Qt[e]), $t[e] = !0);
3467
- }, "issueWarning"), tn = /* @__PURE__ */ e((e) => {
3468
- e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && en("LAZY_LOAD_DEPRECATED");
3469
- }, "checkConfig"), nn = /* @__PURE__ */ e(() => {
3470
- let e = {};
3471
- Vt && (e = I(e, Vt));
3472
- for (let t of q) e = I(e, t);
3473
- return e;
3474
- }, "getUserDefinedConfig"), Y = /* @__PURE__ */ e((e) => (e.flowchart?.htmlLabels != null && en("FLOWCHART_HTML_LABELS_DEPRECATED"), Bt(e.htmlLabels ?? e.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), rn = /^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s, X = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, an = /\s*%%.*\n/gm, on = class extends Error {
3475
- static {
3476
- e(this, "UnknownDiagramError");
3477
- }
3478
- constructor(e) {
3479
- super(e), this.name = "UnknownDiagramError";
3480
- }
3481
- }, sn = {}, cn = /* @__PURE__ */ e(function(e, t) {
3482
- e = e.replace(rn, "").replace(X, "").replace(an, "\n");
3483
- for (let [n, { detector: r }] of Object.entries(sn)) if (r(e, t)) return n;
3484
- throw new on(`No diagram type detected matching given configuration for text: ${e}`);
3485
- }, "detectType"), ln = /* @__PURE__ */ e((...e) => {
3486
- for (let { id: t, detector: n, loader: r } of e) un(t, n, r);
3487
- }, "registerLazyLoadedDiagrams"), un = /* @__PURE__ */ e((e, t, n) => {
3488
- sn[e] && r.warn(`Detector with key ${e} already exists. Overwriting.`), sn[e] = {
3489
- detector: t,
3490
- loader: n
3491
- }, r.debug(`Detector with key ${e} added${n ? " with loader" : ""}`);
3492
- }, "addDetector"), dn = /* @__PURE__ */ e((e) => sn[e].loader, "getDiagramLoader"), Z = /<br\s*\/?>/gi, fn = /* @__PURE__ */ e((e) => e ? bn(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), Q = /* @__PURE__ */ (() => {
3493
- let e = !1;
3494
- return () => {
3495
- e ||= (pn(), !0);
3496
- };
3497
- })();
3498
- function pn() {
3499
- let e = "data-temp-href-target";
3500
- P.addHook("beforeSanitizeAttributes", (t) => {
3501
- t.tagName === "A" && t.hasAttribute("target") && t.setAttribute(e, t.getAttribute("target") ?? "");
3502
- }), P.addHook("afterSanitizeAttributes", (t) => {
3503
- t.tagName === "A" && t.hasAttribute(e) && (t.setAttribute("target", t.getAttribute(e) ?? ""), t.removeAttribute(e), t.getAttribute("target") === "_blank" && t.setAttribute("rel", "noopener"));
3504
- });
3505
- }
3506
- e(pn, "setupDompurifyHooks");
3507
- var mn = /* @__PURE__ */ e((e) => (Q(), P.sanitize(e)), "removeScript"), hn = /* @__PURE__ */ e((e, t) => {
3508
- if (Y(t)) {
3509
- let n = t.securityLevel;
3510
- n === "antiscript" || n === "strict" || n === "sandbox" ? e = mn(e) : n !== "loose" && (e = bn(e), e = e.replace(/</g, "&lt;").replace(/>/g, "&gt;"), e = e.replace(/=/g, "&equals;"), e = yn(e));
3511
- }
3512
- return e;
3513
- }, "sanitizeMore"), $ = /* @__PURE__ */ e((e, t) => e && (e = t.dompurifyConfig ? P.sanitize(hn(e, t), t.dompurifyConfig).toString() : P.sanitize(hn(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), gn = /* @__PURE__ */ e((e, t) => typeof e == "string" ? $(e, t) : e.flat().map((e) => $(e, t)), "sanitizeTextOrArray"), _n = /* @__PURE__ */ e((e) => Z.test(e), "hasBreaks"), vn = /* @__PURE__ */ e((e) => e.split(Z), "splitBreaks"), yn = /* @__PURE__ */ e((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), bn = /* @__PURE__ */ e((e) => e.replace(Z, "#br#"), "breakToPlaceholder"), xn = /* @__PURE__ */ e((e) => {
3514
- let t = "";
3515
- return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
3516
- }, "getUrl"), Sn = /* @__PURE__ */ e(function(...e) {
3517
- let t = e.filter((e) => !isNaN(e));
3518
- return Math.max(...t);
3519
- }, "getMax"), Cn = /* @__PURE__ */ e(function(...e) {
3520
- let t = e.filter((e) => !isNaN(e));
3521
- return Math.min(...t);
3522
- }, "getMin"), wn = /* @__PURE__ */ e(function(e) {
3523
- let t = e.split(/(,)/), n = [];
3524
- for (let e = 0; e < t.length; e++) {
3525
- let r = t[e];
3526
- if (r === "," && e > 0 && e + 1 < t.length) {
3527
- let i = t[e - 1], a = t[e + 1];
3528
- En(i, a) && (r = i + "," + a, e++, n.pop());
3529
- }
3530
- n.push(Dn(r));
3531
- }
3532
- return n.join("");
3533
- }, "parseGenericTypes"), Tn = /* @__PURE__ */ e((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), En = /* @__PURE__ */ e((e, t) => {
3534
- let n = Tn(e, "~"), r = Tn(t, "~");
3535
- return n === 1 && r === 1;
3536
- }, "shouldCombineSets"), Dn = /* @__PURE__ */ e((e) => {
3537
- let t = Tn(e, "~"), n = !1;
3538
- if (t <= 1) return e;
3539
- t % 2 != 0 && e.startsWith("~") && (e = e.substring(1), n = !0);
3540
- let r = [...e], i = r.indexOf("~"), a = r.lastIndexOf("~");
3541
- for (; i !== -1 && a !== -1 && i !== a;) r[i] = "<", r[a] = ">", i = r.indexOf("~"), a = r.lastIndexOf("~");
3542
- return n && r.unshift("~"), r.join("");
3543
- }, "processSet"), On = /* @__PURE__ */ e(() => window.MathMLElement !== void 0, "isMathMLSupported"), kn = /\$\$(.*?)\$\$/g, An = /* @__PURE__ */ e((e) => (e.match(kn)?.length ?? 0) > 0, "hasKatex"), jn = /* @__PURE__ */ e(async (e, t) => {
3544
- let n = document.createElement("div");
3545
- n.innerHTML = await Nn(e, t), n.id = "katex-temp", n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", n);
3546
- let r = {
3547
- width: n.clientWidth,
3548
- height: n.clientHeight
3549
- };
3550
- return n.remove(), r;
3551
- }, "calculateMathMLDimensions"), Mn = /* @__PURE__ */ e(async (e, t) => {
3552
- if (!An(e)) return e;
3553
- if (!(On() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(kn, "MathML is unsupported in this environment.");
3554
- {
3555
- let { default: n } = await import("./katex-BfeHGk4M.js"), r = t.forceLegacyMathML || !On() && t.legacyMathML ? "htmlAndMathml" : "mathml";
3556
- return e.split(Z).map((e) => An(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(kn, (e, t) => n.renderToString(t, {
3557
- throwOnError: !0,
3558
- displayMode: !0,
3559
- output: r
3560
- }).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
3561
- }
3562
- }, "renderKatexUnsanitized"), Nn = /* @__PURE__ */ e(async (e, t) => $(await Mn(e, t), t), "renderKatexSanitized"), Pn = {
3563
- getRows: fn,
3564
- sanitizeText: $,
3565
- sanitizeTextOrArray: gn,
3566
- hasBreaks: _n,
3567
- splitBreaks: vn,
3568
- lineBreakRegex: Z,
3569
- removeScript: mn,
3570
- getUrl: xn,
3571
- evaluate: Bt,
3572
- getMax: Sn,
3573
- getMin: Cn
3574
- }, Fn = /* @__PURE__ */ e(function(e, t) {
3575
- for (let n of t) e.attr(n[0], n[1]);
3576
- }, "d3Attrs"), In = /* @__PURE__ */ e(function(e, t, n) {
3577
- let r = /* @__PURE__ */ new Map();
3578
- return n ? (r.set("width", "100%"), r.set("style", `max-width: ${t}px;`)) : (r.set("height", e), r.set("width", t)), r;
3579
- }, "calculateSvgSizeAttrs"), Ln = /* @__PURE__ */ e(function(e, t, n, r) {
3580
- Fn(e, In(t, n, r));
3581
- }, "configureSvgSize"), Rn = /* @__PURE__ */ e(function(e, t, n, i) {
3582
- let a = t.node().getBBox(), o = a.width, s = a.height;
3583
- r.info(`SVG bounds: ${o}x${s}`, a);
3584
- let c = 0, l = 0;
3585
- r.info(`Graph bounds: ${c}x${l}`, e), c = o + n * 2, l = s + n * 2, r.info(`Calculated bounds: ${c}x${l}`), Ln(t, l, c, i);
3586
- let u = `${a.x - n} ${a.y - n} ${a.width + 2 * n} ${a.height + 2 * n}`;
3587
- t.attr("viewBox", u);
3588
- }, "setupGraphViewbox"), zn = {};
3589
- function Bn(e) {
3590
- return [...e.cssRules].map((e) => e.cssText).join("\n");
3591
- }
3592
- e(Bn, "cssStyleSheetToString");
3593
- var Vn = /* @__PURE__ */ e((e, t, n, i) => {
3594
- let a = "";
3595
- return e in zn && zn[e] ? a = zn[e]({
3596
- ...n,
3597
- svgId: i
3598
- }) : r.warn(`No theme found for ${e}`), `& {
3599
- font-family: ${n.fontFamily};
3600
- font-size: ${n.fontSize};
3601
- fill: ${n.textColor}
3602
- }
3603
- @keyframes edge-animation-frame {
3604
- from {
3605
- stroke-dashoffset: 0;
3606
- }
3607
- }
3608
- @keyframes dash {
3609
- to {
3610
- stroke-dashoffset: 0;
3611
- }
3612
- }
3613
- & .edge-animation-slow {
3614
- stroke-dasharray: 9,5 !important;
3615
- stroke-dashoffset: 900;
3616
- animation: dash 50s linear infinite;
3617
- stroke-linecap: round;
3618
- }
3619
- & .edge-animation-fast {
3620
- stroke-dasharray: 9,5 !important;
3621
- stroke-dashoffset: 900;
3622
- animation: dash 20s linear infinite;
3623
- stroke-linecap: round;
3624
- }
3625
- /* Classes common for multiple diagrams */
3626
-
3627
- & .error-icon {
3628
- fill: ${n.errorBkgColor};
3629
- }
3630
- & .error-text {
3631
- fill: ${n.errorTextColor};
3632
- stroke: ${n.errorTextColor};
3633
- }
3634
-
3635
- & .edge-thickness-normal {
3636
- stroke-width: ${n.strokeWidth ?? 1}px;
3637
- }
3638
- & .edge-thickness-thick {
3639
- stroke-width: 3.5px
3640
- }
3641
- & .edge-pattern-solid {
3642
- stroke-dasharray: 0;
3643
- }
3644
- & .edge-thickness-invisible {
3645
- stroke-width: 0;
3646
- fill: none;
3647
- }
3648
- & .edge-pattern-dashed{
3649
- stroke-dasharray: 3;
3650
- }
3651
- .edge-pattern-dotted {
3652
- stroke-dasharray: 2;
3653
- }
3654
-
3655
- & .marker {
3656
- fill: ${n.lineColor};
3657
- stroke: ${n.lineColor};
3658
- }
3659
- & .marker.cross {
3660
- stroke: ${n.lineColor};
3661
- }
3662
-
3663
- & svg {
3664
- font-family: ${n.fontFamily};
3665
- font-size: ${n.fontSize};
3666
- }
3667
- & p {
3668
- margin: 0
3669
- }
3670
-
3671
- ${a}
3672
- .node .neo-node {
3673
- stroke: ${n.nodeBorder};
3674
- }
3675
-
3676
- [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
3677
- stroke: ${n.useGradient ? "url(" + i + "-gradient)" : n.nodeBorder};
3678
- filter: ${n.dropShadow ? n.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3679
- }
3680
- [data-look="neo"].swimlane.cluster rect {
3681
- filter: none;
3682
- }
3683
-
3684
-
3685
- [data-look="neo"].node path {
3686
- stroke: ${n.useGradient ? "url(" + i + "-gradient)" : n.nodeBorder};
3687
- stroke-width: ${n.strokeWidth ?? 1}px;
3688
- }
3689
-
3690
- [data-look="neo"].node .outer-path {
3691
- filter: ${n.dropShadow ? n.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3692
- }
3693
-
3694
- [data-look="neo"].node .neo-line path {
3695
- stroke: ${n.nodeBorder};
3696
- filter: none;
3697
- }
3698
-
3699
- [data-look="neo"].node circle{
3700
- stroke: ${n.useGradient ? "url(" + i + "-gradient)" : n.nodeBorder};
3701
- filter: ${n.dropShadow ? n.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3702
- }
3703
-
3704
- [data-look="neo"].node circle .state-start{
3705
- fill: #000000;
3706
- }
3707
-
3708
- [data-look="neo"].icon-shape .icon {
3709
- fill: ${n.useGradient ? "url(" + i + "-gradient)" : n.nodeBorder};
3710
- filter: ${n.dropShadow ? n.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3711
- }
3712
-
3713
- [data-look="neo"].icon-shape .icon-neo path {
3714
- stroke: ${n.useGradient ? "url(" + i + "-gradient)" : n.nodeBorder};
3715
- filter: ${n.dropShadow ? n.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
3716
- }
3717
-
3718
- ${t}
3719
- `;
3720
- }, "getStyles"), Hn = /* @__PURE__ */ e((e, t) => {
3721
- t !== void 0 && (zn[e] = t);
3722
- }, "addStylesForDiagram"), Un = Vn, Wn = {};
3723
- t(Wn, {
3724
- clear: () => Yn,
3725
- getAccDescription: () => $n,
3726
- getAccTitle: () => Zn,
3727
- getDiagramTitle: () => tr,
3728
- setAccDescription: () => Qn,
3729
- setAccTitle: () => Xn,
3730
- setDiagramTitle: () => er
3731
- });
3732
- var Gn = "", Kn = "", qn = "", Jn = /* @__PURE__ */ e((e) => $(e, Jt()), "sanitizeText"), Yn = /* @__PURE__ */ e(() => {
3733
- Gn = "", qn = "", Kn = "";
3734
- }, "clear"), Xn = /* @__PURE__ */ e((e) => {
3735
- Gn = Jn(e).replace(/^\s+/g, "");
3736
- }, "setAccTitle"), Zn = /* @__PURE__ */ e(() => Gn, "getAccTitle"), Qn = /* @__PURE__ */ e((e) => {
3737
- qn = Jn(e).replace(/\n\s+/g, "\n");
3738
- }, "setAccDescription"), $n = /* @__PURE__ */ e(() => qn, "getAccDescription"), er = /* @__PURE__ */ e((e) => {
3739
- Kn = Jn(e);
3740
- }, "setDiagramTitle"), tr = /* @__PURE__ */ e(() => Kn, "getDiagramTitle"), nr = r, rr = n, ir = Jt, ar = qt, or = zt, sr = /* @__PURE__ */ e((e) => $(e, ir()), "sanitizeText"), cr = Rn, lr = /* @__PURE__ */ e(() => Wn, "getCommonDb"), ur = {}, dr = /* @__PURE__ */ e((e, t, n) => {
3741
- ur[e] && nr.warn(`Diagram with id ${e} already registered. Overwriting.`), ur[e] = t, n && un(e, n), Hn(e, t.styles), t.injectUtils?.(nr, rr, ir, sr, cr, lr(), () => {});
3742
- }, "registerDiagram"), fr = /* @__PURE__ */ e((e) => {
3743
- if (e in ur) return ur[e];
3744
- throw new pr(e);
3745
- }, "getDiagram"), pr = class extends Error {
3746
- static {
3747
- e(this, "DiagramNotFoundError");
3748
- }
3749
- constructor(e) {
3750
- super(`Diagram ${e} not found.`);
3751
- }
3752
- };
3753
- //#endregion
3754
- export { P as $, An as A, sr as B, dn as C, V as D, J as E, Nn as F, ar as G, Qn as H, Zt as I, Rn as J, er as K, Rt as L, wn as M, dr as N, xn as O, ln as P, Kt as Q, G as R, fr as S, Y as T, Xn as U, Gt as V, qt as W, Un as X, cr as Y, U as Z, rn as _, Yn as a, m as at, Jt as b, Ln as c, or as d, b as et, Ft as f, Bt as g, X as h, jn as i, g as it, Z as j, nn as k, Bn as l, sn as m, Xt as n, v as nt, Wn as o, a as ot, cn as p, Wt as q, I as r, _ as rt, Pn as s, on as t, y as tt, zt as u, $n as v, tr as w, ir as x, Zn as y, $ as z };