ranui 0.2.0-alpha.7 → 0.2.1-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (331) hide show
  1. package/README.md +1 -1
  2. package/README.zh-CN.md +1 -1
  3. package/dist/abnfDiagram-VRR7QNED-CH_pIv_l.cjs +1 -0
  4. package/dist/abnfDiagram-VRR7QNED-CTsqwzwi.js +95 -0
  5. package/dist/arc-D25LhgTs.cjs +1 -0
  6. package/dist/arc-DRPGof21.js +82 -0
  7. package/dist/architecture-TIHT7OUA-BbBd15_y.cjs +1 -0
  8. package/dist/architecture-TIHT7OUA-pbFO1xSx.js +5 -0
  9. package/dist/architectureDiagram-ZJ3FMSHR-8mjyXr-w.js +4279 -0
  10. package/dist/architectureDiagram-ZJ3FMSHR-D_jWFFZx.cjs +36 -0
  11. package/dist/array-By5736M5.js +7 -0
  12. package/dist/array-C3cbN3GY.cjs +1 -0
  13. package/dist/arrow-down-Bi5kqUrX.js +12 -0
  14. package/dist/blockDiagram-677ZJIJ3-3F79MOSt.js +3321 -0
  15. package/dist/blockDiagram-677ZJIJ3-Cx35khWe.cjs +132 -0
  16. package/dist/builder.d.ts +4 -4
  17. package/dist/builder.js +39 -30
  18. package/dist/builtin-BkM0LLof.js +416 -0
  19. package/dist/button-D0zcnKnG.js +117 -0
  20. package/dist/button.js +1 -1
  21. package/dist/c4Diagram-LMCZKHZV-Cxn_gqu_.js +3064 -0
  22. package/dist/c4Diagram-LMCZKHZV-TRNb3Gvl.cjs +10 -0
  23. package/dist/{card-BVvXX6KM.js → card-CygMndQS.js} +2 -2
  24. package/dist/card.js +1 -1
  25. package/dist/channel-C9WSNwcS.cjs +1 -0
  26. package/dist/channel-k5-UxdcV.js +5 -0
  27. package/dist/{checkbox-BtoX9X2Z.js → checkbox-D5om9aJO.js} +10 -10
  28. package/dist/checkbox.js +1 -1
  29. package/dist/chunk-2Q5K7J3B-CTMy5FII.cjs +1 -0
  30. package/dist/chunk-2Q5K7J3B-DlFVJRAn.js +15 -0
  31. package/dist/chunk-32BRIVSS-BXVdG_nV.cjs +1 -0
  32. package/dist/chunk-32BRIVSS-jAuAwMVV.js +68 -0
  33. package/dist/chunk-52WLFC77-BChUrU24.cjs +10 -0
  34. package/dist/chunk-52WLFC77-wpL7en7e.js +630 -0
  35. package/dist/chunk-5VM5RSS4-Cni2Ogq2.js +19 -0
  36. package/dist/chunk-5VM5RSS4-DudUFQ_Z.cjs +15 -0
  37. package/dist/chunk-7BUUIJ7U-9hiBbc7O.js +87 -0
  38. package/dist/chunk-7BUUIJ7U-DMv_UkjI.cjs +1 -0
  39. package/dist/chunk-C7G6YPKG-CA-DNpvI.js +71 -0
  40. package/dist/chunk-C7G6YPKG-CKEeW9TM.cjs +1 -0
  41. package/dist/chunk-EX3LRPZG-BCmf0iDq.js +2137 -0
  42. package/dist/chunk-EX3LRPZG-DbfbNdXo.cjs +231 -0
  43. package/dist/chunk-FWX5IMBZ-D11-gbhc.cjs +1 -0
  44. package/dist/chunk-FWX5IMBZ-DZ5VYvm5.js +60 -0
  45. package/dist/chunk-HOUHSVGY-BGB3dOvI.cjs +1 -0
  46. package/dist/chunk-HOUHSVGY-DRQcQeMT.js +268 -0
  47. package/dist/chunk-ICXQ74PX-BbT9JaEW.cjs +2 -0
  48. package/dist/chunk-ICXQ74PX-DR8rL-xF.js +1377 -0
  49. package/dist/chunk-JWPE2WC7-CGEmUMMZ.js +8 -0
  50. package/dist/chunk-JWPE2WC7-D8EnWK1B.cjs +1 -0
  51. package/dist/chunk-KEIR6QF5-B2Op7cFH.js +22155 -0
  52. package/dist/chunk-KEIR6QF5-C4fcHpY0.cjs +161 -0
  53. package/dist/chunk-MOJQB5TN-BC46HDyu.js +516 -0
  54. package/dist/chunk-MOJQB5TN-oOeq982_.cjs +88 -0
  55. package/dist/chunk-OGEWGWER-BV51ll2w.js +33 -0
  56. package/dist/chunk-OGEWGWER-DX8sW1dT.cjs +1 -0
  57. package/dist/chunk-PUDLZKDR-48YaqVoF.cjs +156 -0
  58. package/dist/chunk-PUDLZKDR-NdMR0Ft5.js +4282 -0
  59. package/dist/chunk-Q4XR5HBZ-3BHjjc9u.js +1709 -0
  60. package/dist/chunk-Q4XR5HBZ-aBnPq509.cjs +70 -0
  61. package/dist/chunk-RYQCIY6F-BER2T9t0.js +246 -0
  62. package/dist/chunk-RYQCIY6F-DVRzSnsI.cjs +1 -0
  63. package/dist/chunk-V7JOEXUC-Cr_hr02u.js +3467 -0
  64. package/dist/chunk-V7JOEXUC-DHizzTla.cjs +206 -0
  65. package/dist/chunk-VAUOI2AC-DfQf5L2_.cjs +1 -0
  66. package/dist/chunk-VAUOI2AC-izt0o4id.js +11 -0
  67. package/dist/chunk-VR4S4FIN-CJi5okl4.js +26 -0
  68. package/dist/chunk-VR4S4FIN-KiwnPF31.cjs +1 -0
  69. package/dist/chunk-WYO6CB5R-DDHkKowO.js +4535 -0
  70. package/dist/chunk-WYO6CB5R-u4mJNOcO.cjs +127 -0
  71. package/dist/chunk-XXDRQBXY-BB1i_53q.js +9 -0
  72. package/dist/chunk-XXDRQBXY-C8VGLZmt.cjs +1 -0
  73. package/dist/chunk-Y2CYZVJY-0JxdZxki.js +13 -0
  74. package/dist/chunk-Y2CYZVJY-DPaYLFFP.cjs +1 -0
  75. package/dist/chunk-ZGVPDNZ5-6uMbTJXy.js +3841 -0
  76. package/dist/chunk-ZGVPDNZ5-Cw5_HJba.cjs +62 -0
  77. package/dist/chunk-ZIRB5QZD-C7OH2FI2.js +1280 -0
  78. package/dist/chunk-ZIRB5QZD-aLu-4ITN.cjs +32 -0
  79. package/dist/classDiagram-OUVF2IWQ-D6rqYIh0.cjs +1 -0
  80. package/dist/classDiagram-OUVF2IWQ-Df0ghim9.js +30 -0
  81. package/dist/classDiagram-v2-EOCWNBFH-D6rqYIh0.cjs +1 -0
  82. package/dist/classDiagram-v2-EOCWNBFH-Df0ghim9.js +30 -0
  83. package/dist/{colorpicker-Dukms7ET.js → colorpicker-qWnaTlYX.js} +9 -10
  84. package/dist/colorpicker.js +1 -1
  85. package/dist/components/colorpicker/index.d.ts +3 -3
  86. package/dist/components/glass/index.d.ts +52 -0
  87. package/dist/components/icon/builtin.d.ts +9 -0
  88. package/dist/components/icon/core-icons.d.ts +13 -0
  89. package/dist/components/icon/index.d.ts +8 -0
  90. package/dist/components/mermaid/index.d.ts +52 -0
  91. package/dist/components/modal/index.d.ts +9 -0
  92. package/dist/components/route/index.d.ts +10 -4
  93. package/dist/components/router/index.d.ts +3 -0
  94. package/dist/content-Rry-U6ir.js +39 -0
  95. package/dist/content.js +5 -0
  96. package/dist/cose-bilkent-JH36ORCC-BUxFTdey.cjs +1 -0
  97. package/dist/cose-bilkent-JH36ORCC-DTwvJlGw.js +2353 -0
  98. package/dist/cynefin-VYW2F7L2-6c1GOGXW.cjs +1 -0
  99. package/dist/cynefin-VYW2F7L2-ALQKF7N6.js +5 -0
  100. package/dist/cynefinDiagram-TSTJHNR4-Bjt4QTVh.js +355 -0
  101. package/dist/cynefinDiagram-TSTJHNR4-ISDORSxO.cjs +62 -0
  102. package/dist/cytoscape.esm-CFq1_DTa.js +18906 -0
  103. package/dist/cytoscape.esm-pygMw4dR.cjs +321 -0
  104. package/dist/dagre-D1-W1tt6.cjs +1 -0
  105. package/dist/dagre-D8GLTwuf.js +1578 -0
  106. package/dist/dagre-VKFMJZFB-DXI69qAN.cjs +4 -0
  107. package/dist/dagre-VKFMJZFB-Dfku86Az.js +341 -0
  108. package/dist/defaultLocale-0M_kMcEH.js +184 -0
  109. package/dist/defaultLocale-DSqtvhxg.cjs +1 -0
  110. package/dist/diagram-FQU43EPY-BAiRt5eL.cjs +3 -0
  111. package/dist/diagram-FQU43EPY-BvQ5jmVn.js +452 -0
  112. package/dist/diagram-G47NLZAW-DGnmEa8u.cjs +24 -0
  113. package/dist/diagram-G47NLZAW-DT2BBA0T.js +498 -0
  114. package/dist/diagram-NH7WQ7WH-DxgkStA3.cjs +24 -0
  115. package/dist/diagram-NH7WQ7WH-W7jg4Vh8.js +135 -0
  116. package/dist/diagram-OA4YK3LP-DkvFII73.cjs +30 -0
  117. package/dist/diagram-OA4YK3LP-jU--aqQl.js +317 -0
  118. package/dist/diagram-WEI45ONY-C_Qhf4ny.js +215 -0
  119. package/dist/diagram-WEI45ONY-XvzRFmmY.cjs +41 -0
  120. package/dist/dist-C0Fwsvsq.js +70 -0
  121. package/dist/dist-C20XxSsP.cjs +1 -0
  122. package/dist/{dropdown-BYS1Trdu.js → dropdown-DzdAR1nI.js} +4 -4
  123. package/dist/dropdown.js +1 -1
  124. package/dist/ebnfDiagram-CCIWWBDH-Cu8bAlhC.cjs +1 -0
  125. package/dist/ebnfDiagram-CCIWWBDH-Gnr20Oc1.js +112 -0
  126. package/dist/erDiagram-Q63AITRT-CxLSa9Yv.cjs +85 -0
  127. package/dist/erDiagram-Q63AITRT-D0Hh9b-W.js +1822 -0
  128. package/dist/eventmodeling-45OFAUF4-C6VXxUn1.cjs +1 -0
  129. package/dist/eventmodeling-45OFAUF4-DMpGs2yI.js +5 -0
  130. package/dist/factory-BkvRcCOx.js +482 -0
  131. package/dist/flowDiagram-23GEKE2U-B6gASEYG.cjs +1 -0
  132. package/dist/flowDiagram-23GEKE2U-BY4wE2vw.js +19 -0
  133. package/dist/{form-BsB5JhS4.js → form-CUJpeQ7Q.js} +5 -5
  134. package/dist/form.js +1 -1
  135. package/dist/ganttDiagram-NO4QXBWP-B40Eabk0.js +3125 -0
  136. package/dist/ganttDiagram-NO4QXBWP-DZT79qJr.cjs +292 -0
  137. package/dist/gitGraph-TEB2WS4Q-BbtF3MDr.cjs +1 -0
  138. package/dist/gitGraph-TEB2WS4Q-D6Ru11Cs.js +5 -0
  139. package/dist/gitGraphDiagram-IHSO6WYX-BUJNSssA.js +754 -0
  140. package/dist/gitGraphDiagram-IHSO6WYX-DW06165m.cjs +106 -0
  141. package/dist/glass-Bj1Zf8Hy.js +115 -0
  142. package/dist/glass.js +5 -0
  143. package/dist/graphlib-CCKThIKP.js +1104 -0
  144. package/dist/graphlib-Du-578Js.cjs +1 -0
  145. package/dist/{icon-pfolda2m.js → icon-CtlZJISZ.js} +110 -21
  146. package/dist/icon.js +4 -3
  147. package/dist/icons.js +5 -0
  148. package/dist/iife/button.iife.js +1 -1
  149. package/dist/iife/card.iife.js +1 -1
  150. package/dist/iife/checkbox.iife.js +1 -1
  151. package/dist/iife/colorpicker.iife.js +2 -2
  152. package/dist/iife/content.iife.js +1 -0
  153. package/dist/iife/dropdown.iife.js +1 -1
  154. package/dist/iife/form.iife.js +1 -1
  155. package/dist/iife/glass.iife.js +1 -0
  156. package/dist/iife/icon.iife.js +1 -1
  157. package/dist/iife/image.iife.js +1 -1
  158. package/dist/iife/input.iife.js +1 -1
  159. package/dist/iife/loading.iife.js +1 -1
  160. package/dist/iife/math.iife.js +14 -14
  161. package/dist/iife/mermaid.iife.js +3535 -0
  162. package/dist/iife/message.iife.js +1 -1
  163. package/dist/iife/modal.iife.js +1 -1
  164. package/dist/iife/player.iife.js +8 -8
  165. package/dist/iife/popover.iife.js +1 -1
  166. package/dist/iife/progress.iife.js +1 -1
  167. package/dist/iife/radar.iife.js +1 -1
  168. package/dist/iife/route.iife.js +1 -1
  169. package/dist/iife/router.iife.js +1 -1
  170. package/dist/iife/scratch.iife.js +1 -1
  171. package/dist/iife/section.iife.js +1 -1
  172. package/dist/iife/select.iife.js +2 -2
  173. package/dist/iife/skeleton.iife.js +1 -1
  174. package/dist/iife/tab.iife.js +1 -1
  175. package/dist/iife/tabpane.iife.js +1 -1
  176. package/dist/{image-BXpKQ9sU.js → image-ILZNlaGc.js} +4 -4
  177. package/dist/image.js +1 -1
  178. package/dist/index.cjs +257 -23
  179. package/dist/index.d.ts +11 -1
  180. package/dist/index.iife.js +3842 -74
  181. package/dist/index.js +86 -78
  182. package/dist/info-DKCQHKI2-DNOtUIin.cjs +1 -0
  183. package/dist/info-DKCQHKI2-Df7h9MSE.js +5 -0
  184. package/dist/infoDiagram-FWYZ7A6U-C8dZc-Ki.cjs +2 -0
  185. package/dist/infoDiagram-FWYZ7A6U-Dc0m9qAx.js +21 -0
  186. package/dist/init-1VpIn1S3.js +16 -0
  187. package/dist/init-CbDwVtpO.cjs +1 -0
  188. package/dist/{input-BMMM60e6.js → input-CDH6zY9I.js} +6 -6
  189. package/dist/input.js +1 -1
  190. package/dist/ishikawaDiagram-FXEZZL3T-BugNyysB.cjs +70 -0
  191. package/dist/ishikawaDiagram-FXEZZL3T-DuFtHOmf.js +742 -0
  192. package/dist/journeyDiagram-5HDEW3XC-Bshelnhq.js +928 -0
  193. package/dist/journeyDiagram-5HDEW3XC-ItmURvA2.cjs +139 -0
  194. package/dist/kanban-definition-HUTT4EX6-BL512R2A.cjs +89 -0
  195. package/dist/kanban-definition-HUTT4EX6-Dogv2paU.js +1050 -0
  196. package/dist/katex-Cq3Y8cmK.cjs +257 -0
  197. package/dist/katex-Pg2EqTH0.js +23485 -0
  198. package/dist/line-BIPmUVxO.js +33 -0
  199. package/dist/line-CAB5QHC6.cjs +1 -0
  200. package/dist/linear-B2AM4ZBe.js +259 -0
  201. package/dist/linear-CSAfNEpl.cjs +1 -0
  202. package/dist/{link-DURZzd7u.js → link-BCrmHvXP.js} +3 -3
  203. package/dist/link.js +1 -1
  204. package/dist/{loading-BScjyeVm.js → loading-DJWGih1g.js} +4 -4
  205. package/dist/loading.js +1 -1
  206. package/dist/map-BC2bk_rV.cjs +1 -0
  207. package/dist/map-DMSWkcq6.js +208 -0
  208. package/dist/{math-IjzOAwnA.js → math-DRmkEDSQ.js} +4 -4
  209. package/dist/math.js +1 -1
  210. package/dist/mermaid-CMhm7npE.js +261 -0
  211. package/dist/mermaid-parser.core-DYumW1vq.cjs +6 -0
  212. package/dist/mermaid-parser.core-uIDZYuBu.js +654 -0
  213. package/dist/mermaid.core-B2d5lQW2.js +1085 -0
  214. package/dist/mermaid.core-a1hgpWfs.cjs +10 -0
  215. package/dist/mermaid.js +5 -0
  216. package/dist/{message-CLpuP8HY.js → message-BpYJBvYn.js} +36 -51
  217. package/dist/message.js +1 -1
  218. package/dist/mindmap-definition-LN4V7U3C-DYZgIZym.cjs +96 -0
  219. package/dist/mindmap-definition-LN4V7U3C-f7s5ZePP.js +1070 -0
  220. package/dist/{modal-DOTpABRe.js → modal-BeQlDYDP.js} +40 -24
  221. package/dist/modal.js +1 -1
  222. package/dist/ordinal-BMN81JG2.js +64 -0
  223. package/dist/ordinal-BplLHIij.cjs +1 -0
  224. package/dist/packet-7NZHBO7P-4PLslLZJ.js +5 -0
  225. package/dist/packet-7NZHBO7P-DeyLCrSn.cjs +1 -0
  226. package/dist/path-Bja5PoYn.js +82 -0
  227. package/dist/path-DmfWsuKi.cjs +1 -0
  228. package/dist/pegDiagram-2B236MQR-B-Xeh55J.js +107 -0
  229. package/dist/pegDiagram-2B236MQR-Bo5Nj40u.cjs +1 -0
  230. package/dist/pie-RZYD4A2V-DBE9a8Kz.js +5 -0
  231. package/dist/pie-RZYD4A2V-pDNZ2ZyB.cjs +1 -0
  232. package/dist/pieDiagram-ENE6RG2P-BkSiP4iu.cjs +39 -0
  233. package/dist/pieDiagram-ENE6RG2P-CVSE95zc.js +207 -0
  234. package/dist/{player-5olrw-qB.js → player-CQ4e3Yeo.js} +196 -195
  235. package/dist/player.js +1 -1
  236. package/dist/{popover-DRUQjdPs.js → popover-eZMnL1F3.js} +22 -54
  237. package/dist/popover.js +1 -1
  238. package/dist/{progress-BIEXYYd2.js → progress-DyHgW4Ep.js} +5 -5
  239. package/dist/progress.js +1 -1
  240. package/dist/quadrantDiagram-ABIIQ3AL-BDmdDGsh.cjs +7 -0
  241. package/dist/quadrantDiagram-ABIIQ3AL-TJ8FmqES.js +2058 -0
  242. package/dist/{radar-DAF95_Mj.js → radar-D21Rccap.js} +5 -5
  243. package/dist/radar-I7S5WNFK-CY5ycn2a.cjs +1 -0
  244. package/dist/radar-I7S5WNFK-DFTxtd_t.js +5 -0
  245. package/dist/radar.js +1 -1
  246. package/dist/railroad-3IZDKUUU-DALJwv16.js +5 -0
  247. package/dist/railroad-3IZDKUUU-DGzXHqt7.cjs +1 -0
  248. package/dist/railroad-abnf-AHOZXSZD-BCIHdSw6.cjs +1 -0
  249. package/dist/railroad-abnf-AHOZXSZD-CntW2udQ.js +5 -0
  250. package/dist/railroad-ebnf-EBAXGLYW-4vFZrfHF.cjs +1 -0
  251. package/dist/railroad-ebnf-EBAXGLYW-s_1ZOb_9.js +5 -0
  252. package/dist/railroad-peg-LSFZ7HO6-CaM5A0Ml.js +5 -0
  253. package/dist/railroad-peg-LSFZ7HO6-D_oFW1Bo.cjs +1 -0
  254. package/dist/railroadDiagram-RFXS5EU6-0lS5wYI7.js +83 -0
  255. package/dist/railroadDiagram-RFXS5EU6-DJKAtnQk.cjs +1 -0
  256. package/dist/ranui.css +1 -1
  257. package/dist/requirementDiagram-TGXJPOKE-Bg701bNl.cjs +84 -0
  258. package/dist/requirementDiagram-TGXJPOKE-viCQLyJd.js +2301 -0
  259. package/dist/rolldown-runtime-9ZSF5uba.js +16 -0
  260. package/dist/rolldown-runtime-CAnuVJ4g.cjs +1 -0
  261. package/dist/rough.esm-BWe9E0Nz.js +1387 -0
  262. package/dist/rough.esm-BfSi6CZE.cjs +1 -0
  263. package/dist/route-pR5P4ann.js +116 -0
  264. package/dist/route.js +1 -1
  265. package/dist/{router-B9rCrWXm.js → router-CewzSH7O.js} +23 -18
  266. package/dist/router.js +1 -1
  267. package/dist/sankeyDiagram-HTMAVEWB-CV6_AuMF.js +974 -0
  268. package/dist/sankeyDiagram-HTMAVEWB-K-nGMsuS.cjs +40 -0
  269. package/dist/{scratch-QlPyy1f4.js → scratch-BFVsgl-7.js} +2 -2
  270. package/dist/scratch.js +1 -1
  271. package/dist/{section-D0qMm9KM.js → section-DSPCsIxv.js} +2 -2
  272. package/dist/section.js +1 -1
  273. package/dist/{select-aAaWoveE.js → select-B58nMfB1.js} +16 -23
  274. package/dist/select.js +1 -1
  275. package/dist/sequenceDiagram-DBY2YBRQ-4GdkLnUr.cjs +162 -0
  276. package/dist/sequenceDiagram-DBY2YBRQ-B9WNesh2.js +4326 -0
  277. package/dist/sizeCapture-X5ZJPWSS-BUY3-n09.cjs +1 -0
  278. package/dist/sizeCapture-X5ZJPWSS-D7rGsqTl.js +48 -0
  279. package/dist/{skeleton-CFqQmKyt.js → skeleton-DoHYMsTn.js} +5 -5
  280. package/dist/skeleton.js +1 -1
  281. package/dist/src-C9EhKhbk.cjs +1 -0
  282. package/dist/src-DtRLxcYO.js +2104 -0
  283. package/dist/stateDiagram-2N3HPSRC-B7VpgjJu.cjs +1 -0
  284. package/dist/stateDiagram-2N3HPSRC-DxH4BMSh.js +237 -0
  285. package/dist/stateDiagram-v2-6OUMAXLB-CQv7GIaO.cjs +1 -0
  286. package/dist/stateDiagram-v2-6OUMAXLB-CWfn6e7n.js +30 -0
  287. package/dist/swimlanes-5IMT3BWC-DcADNGpg.js +5258 -0
  288. package/dist/swimlanes-5IMT3BWC-o-MjdPlw.cjs +1 -0
  289. package/dist/swimlanesDiagram-G3AALYLV-D-rmAGky.cjs +8 -0
  290. package/dist/swimlanesDiagram-G3AALYLV-DDtDtl1L.js +31 -0
  291. package/dist/{tab-CiF2YPck.js → tab-BRPdZ9Ws.js} +5 -5
  292. package/dist/tab.js +1 -1
  293. package/dist/{tabpane-B-m3xwqu.js → tabpane-Owf72hw_.js} +5 -5
  294. package/dist/tabpane.js +1 -1
  295. package/dist/test/unit/icon.builtin.test.d.ts +1 -0
  296. package/dist/test/unit/utils.colorpicker.reconnect.test.d.ts +1 -0
  297. package/dist/test/unit/utils.route.lazy.test.d.ts +1 -0
  298. package/dist/test/unit/utils.router.match.test.d.ts +1 -0
  299. package/dist/test/unit/utils.signal.owner.test.d.ts +1 -0
  300. package/dist/{theme-switch-B09egc6h.js → theme-switch-CZDIIonc.js} +4 -4
  301. package/dist/theme-switch.js +1 -1
  302. package/dist/timeline-definition-FHXFAJF6-C80VjPLh.js +1119 -0
  303. package/dist/timeline-definition-FHXFAJF6-DOwvOb3S.cjs +120 -0
  304. package/dist/treeView-QDETBFTQ-B1Ejxfpg.cjs +1 -0
  305. package/dist/treeView-QDETBFTQ-vTKOZls1.js +5 -0
  306. package/dist/treemap-6X3UGDF4-D0FeO_NX.cjs +1 -0
  307. package/dist/treemap-6X3UGDF4-Ddzv6Gqd.js +5 -0
  308. package/dist/utils/builder/core.d.ts +153 -16
  309. package/dist/utils/builder/factory.d.ts +1 -1
  310. package/dist/utils/builder/index.d.ts +3 -3
  311. package/dist/utils/builder/signal.d.ts +93 -64
  312. package/dist/utils/router/index.d.ts +13 -3
  313. package/dist/utils/router.js +95 -54
  314. package/dist/utils/theme.d.ts +1 -1
  315. package/dist/{utils-DBfrRFoE.js → utils-D1iZnChu.js} +38 -31
  316. package/dist/vennDiagram-L72KCM5P-BYHB7OW8.js +1955 -0
  317. package/dist/vennDiagram-L72KCM5P-CidVJK6y.cjs +34 -0
  318. package/dist/wardley-OPB4EBWU-C1hXbbD4.cjs +1 -0
  319. package/dist/wardley-OPB4EBWU-DBgFLc64.js +5 -0
  320. package/dist/wardleyDiagram-EHGQE667--ubmCaWM.js +652 -0
  321. package/dist/wardleyDiagram-EHGQE667-K6ckkRZS.cjs +78 -0
  322. package/dist/warning-circle-fill-Cz0qu7AH.js +23 -0
  323. package/dist/xychartDiagram-FW5EYKEG-CzdokxrM.cjs +7 -0
  324. package/dist/xychartDiagram-FW5EYKEG-DLqWcTPt.js +2154 -0
  325. package/docs/BUILDER.md +383 -0
  326. package/docs/COMPONENTS.md +21 -3
  327. package/package.json +31 -3
  328. package/dist/button-Be_uHDZG.js +0 -117
  329. package/dist/factory-BdsO0dEW.js +0 -165
  330. package/dist/route-MQZpn2BP.js +0 -88
  331. package/dist/signal-CSSZxlK5.js +0 -57
@@ -0,0 +1,4535 @@
1
+ import { n as d, t as De } from "./chunk-Y2CYZVJY-0JxdZxki.js";
2
+ import { h as ze, m as R } from "./src-DtRLxcYO.js";
3
+ var ai = {
4
+ min: {
5
+ r: 0,
6
+ g: 0,
7
+ b: 0,
8
+ s: 0,
9
+ l: 0,
10
+ a: 0
11
+ },
12
+ max: {
13
+ r: 255,
14
+ g: 255,
15
+ b: 255,
16
+ h: 360,
17
+ s: 100,
18
+ l: 100,
19
+ a: 1
20
+ },
21
+ clamp: {
22
+ r: (t) => t >= 255 ? 255 : t < 0 ? 0 : t,
23
+ g: (t) => t >= 255 ? 255 : t < 0 ? 0 : t,
24
+ b: (t) => t >= 255 ? 255 : t < 0 ? 0 : t,
25
+ h: (t) => t % 360,
26
+ s: (t) => t >= 100 ? 100 : t < 0 ? 0 : t,
27
+ l: (t) => t >= 100 ? 100 : t < 0 ? 0 : t,
28
+ a: (t) => t >= 1 ? 1 : t < 0 ? 0 : t
29
+ },
30
+ toLinear: (t) => {
31
+ const i = t / 255;
32
+ return t > 0.03928 ? Math.pow((i + 0.055) / 1.055, 2.4) : i / 12.92;
33
+ },
34
+ hue2rgb: (t, i, e) => (e < 0 && (e += 1), e > 1 && (e -= 1), e < 1 / 6 ? t + (i - t) * 6 * e : e < 1 / 2 ? i : e < 2 / 3 ? t + (i - t) * (2 / 3 - e) * 6 : t),
35
+ hsl2rgb: ({ h: t, s: i, l: e }, l) => {
36
+ if (!i) return e * 2.55;
37
+ t /= 360, i /= 100, e /= 100;
38
+ const s = e < 0.5 ? e * (1 + i) : e + i - e * i, u = 2 * e - s;
39
+ switch (l) {
40
+ case "r":
41
+ return ai.hue2rgb(u, s, t + 1 / 3) * 255;
42
+ case "g":
43
+ return ai.hue2rgb(u, s, t) * 255;
44
+ case "b":
45
+ return ai.hue2rgb(u, s, t - 1 / 3) * 255;
46
+ }
47
+ },
48
+ rgb2hsl: ({ r: t, g: i, b: e }, l) => {
49
+ t /= 255, i /= 255, e /= 255;
50
+ const s = Math.max(t, i, e), u = Math.min(t, i, e), T = (s + u) / 2;
51
+ if (l === "l") return T * 100;
52
+ if (s === u) return 0;
53
+ const B = s - u, S = T > 0.5 ? B / (2 - s - u) : B / (s + u);
54
+ if (l === "s") return S * 100;
55
+ switch (s) {
56
+ case t:
57
+ return ((i - e) / B + (i < e ? 6 : 0)) * 60;
58
+ case i:
59
+ return ((e - t) / B + 2) * 60;
60
+ case e:
61
+ return ((t - i) / B + 4) * 60;
62
+ default:
63
+ return -1;
64
+ }
65
+ }
66
+ }, We = {
67
+ clamp: (t, i, e) => i > e ? Math.min(i, Math.max(e, t)) : Math.min(e, Math.max(i, t)),
68
+ round: (t) => Math.round(t * 1e10) / 1e10
69
+ }, Re = { dec2hex: (t) => {
70
+ const i = Math.round(t).toString(16);
71
+ return i.length > 1 ? i : `0${i}`;
72
+ } }, y = {
73
+ channel: ai,
74
+ lang: We,
75
+ unit: Re
76
+ }, gt = {};
77
+ for (let t = 0; t <= 255; t++) gt[t] = y.unit.dec2hex(t);
78
+ var W = {
79
+ ALL: 0,
80
+ RGB: 1,
81
+ HSL: 2
82
+ }, Pe = class {
83
+ constructor() {
84
+ this.type = W.ALL;
85
+ }
86
+ get() {
87
+ return this.type;
88
+ }
89
+ set(t) {
90
+ if (this.type && this.type !== t) throw new Error("Cannot change both RGB and HSL channels at the same time");
91
+ this.type = t;
92
+ }
93
+ reset() {
94
+ this.type = W.ALL;
95
+ }
96
+ is(t) {
97
+ return this.type === t;
98
+ }
99
+ }, Ne = class {
100
+ constructor(t, i) {
101
+ this.color = i, this.changed = !1, this.data = t, this.type = new Pe();
102
+ }
103
+ set(t, i) {
104
+ return this.color = i, this.changed = !1, this.data = t, this.type.type = W.ALL, this;
105
+ }
106
+ _ensureHSL() {
107
+ const t = this.data, { h: i, s: e, l } = t;
108
+ i === void 0 && (t.h = y.channel.rgb2hsl(t, "h")), e === void 0 && (t.s = y.channel.rgb2hsl(t, "s")), l === void 0 && (t.l = y.channel.rgb2hsl(t, "l"));
109
+ }
110
+ _ensureRGB() {
111
+ const t = this.data, { r: i, g: e, b: l } = t;
112
+ i === void 0 && (t.r = y.channel.hsl2rgb(t, "r")), e === void 0 && (t.g = y.channel.hsl2rgb(t, "g")), l === void 0 && (t.b = y.channel.hsl2rgb(t, "b"));
113
+ }
114
+ get r() {
115
+ const t = this.data, i = t.r;
116
+ return !this.type.is(W.HSL) && i !== void 0 ? i : (this._ensureHSL(), y.channel.hsl2rgb(t, "r"));
117
+ }
118
+ get g() {
119
+ const t = this.data, i = t.g;
120
+ return !this.type.is(W.HSL) && i !== void 0 ? i : (this._ensureHSL(), y.channel.hsl2rgb(t, "g"));
121
+ }
122
+ get b() {
123
+ const t = this.data, i = t.b;
124
+ return !this.type.is(W.HSL) && i !== void 0 ? i : (this._ensureHSL(), y.channel.hsl2rgb(t, "b"));
125
+ }
126
+ get h() {
127
+ const t = this.data, i = t.h;
128
+ return !this.type.is(W.RGB) && i !== void 0 ? i : (this._ensureRGB(), y.channel.rgb2hsl(t, "h"));
129
+ }
130
+ get s() {
131
+ const t = this.data, i = t.s;
132
+ return !this.type.is(W.RGB) && i !== void 0 ? i : (this._ensureRGB(), y.channel.rgb2hsl(t, "s"));
133
+ }
134
+ get l() {
135
+ const t = this.data, i = t.l;
136
+ return !this.type.is(W.RGB) && i !== void 0 ? i : (this._ensureRGB(), y.channel.rgb2hsl(t, "l"));
137
+ }
138
+ get a() {
139
+ return this.data.a;
140
+ }
141
+ set r(t) {
142
+ this.type.set(W.RGB), this.changed = !0, this.data.r = t;
143
+ }
144
+ set g(t) {
145
+ this.type.set(W.RGB), this.changed = !0, this.data.g = t;
146
+ }
147
+ set b(t) {
148
+ this.type.set(W.RGB), this.changed = !0, this.data.b = t;
149
+ }
150
+ set h(t) {
151
+ this.type.set(W.HSL), this.changed = !0, this.data.h = t;
152
+ }
153
+ set s(t) {
154
+ this.type.set(W.HSL), this.changed = !0, this.data.s = t;
155
+ }
156
+ set l(t) {
157
+ this.type.set(W.HSL), this.changed = !0, this.data.l = t;
158
+ }
159
+ set a(t) {
160
+ this.changed = !0, this.data.a = t;
161
+ }
162
+ }, Ci = new Ne({
163
+ r: 0,
164
+ g: 0,
165
+ b: 0,
166
+ a: 0
167
+ }, "transparent"), Mt = {
168
+ re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,
169
+ parse: (t) => {
170
+ if (t.charCodeAt(0) !== 35) return;
171
+ const i = t.match(Mt.re);
172
+ if (!i) return;
173
+ const e = i[1], l = parseInt(e, 16), s = e.length, u = s % 4 === 0, T = s > 4, B = T ? 1 : 17, S = T ? 8 : 4, D = u ? 0 : -1, z = T ? 255 : 15;
174
+ return Ci.set({
175
+ r: (l >> S * (D + 3) & z) * B,
176
+ g: (l >> S * (D + 2) & z) * B,
177
+ b: (l >> S * (D + 1) & z) * B,
178
+ a: u ? (l & z) * B / 255 : 1
179
+ }, t);
180
+ },
181
+ stringify: (t) => {
182
+ const { r: i, g: e, b: l, a: s } = t;
183
+ return s < 1 ? `#${gt[Math.round(i)]}${gt[Math.round(e)]}${gt[Math.round(l)]}${gt[Math.round(s * 255)]}` : `#${gt[Math.round(i)]}${gt[Math.round(e)]}${gt[Math.round(l)]}`;
184
+ }
185
+ }, bt = {
186
+ 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,
187
+ hueRe: /^(.+?)(deg|grad|rad|turn)$/i,
188
+ _hue2deg: (t) => {
189
+ const i = t.match(bt.hueRe);
190
+ if (i) {
191
+ const [, e, l] = i;
192
+ switch (l) {
193
+ case "grad":
194
+ return y.channel.clamp.h(parseFloat(e) * 0.9);
195
+ case "rad":
196
+ return y.channel.clamp.h(parseFloat(e) * 180 / Math.PI);
197
+ case "turn":
198
+ return y.channel.clamp.h(parseFloat(e) * 360);
199
+ }
200
+ }
201
+ return y.channel.clamp.h(parseFloat(t));
202
+ },
203
+ parse: (t) => {
204
+ const i = t.charCodeAt(0);
205
+ if (i !== 104 && i !== 72) return;
206
+ const e = t.match(bt.re);
207
+ if (!e) return;
208
+ const [, l, s, u, T, B] = e;
209
+ return Ci.set({
210
+ h: bt._hue2deg(l),
211
+ s: y.channel.clamp.s(parseFloat(s)),
212
+ l: y.channel.clamp.l(parseFloat(u)),
213
+ a: T ? y.channel.clamp.a(B ? parseFloat(T) / 100 : parseFloat(T)) : 1
214
+ }, t);
215
+ },
216
+ stringify: (t) => {
217
+ const { h: i, s: e, l, a: s } = t;
218
+ return s < 1 ? `hsla(${y.lang.round(i)}, ${y.lang.round(e)}%, ${y.lang.round(l)}%, ${s})` : `hsl(${y.lang.round(i)}, ${y.lang.round(e)}%, ${y.lang.round(l)}%)`;
219
+ }
220
+ }, jt = {
221
+ colors: {
222
+ aliceblue: "#f0f8ff",
223
+ antiquewhite: "#faebd7",
224
+ aqua: "#00ffff",
225
+ aquamarine: "#7fffd4",
226
+ azure: "#f0ffff",
227
+ beige: "#f5f5dc",
228
+ bisque: "#ffe4c4",
229
+ black: "#000000",
230
+ blanchedalmond: "#ffebcd",
231
+ blue: "#0000ff",
232
+ blueviolet: "#8a2be2",
233
+ brown: "#a52a2a",
234
+ burlywood: "#deb887",
235
+ cadetblue: "#5f9ea0",
236
+ chartreuse: "#7fff00",
237
+ chocolate: "#d2691e",
238
+ coral: "#ff7f50",
239
+ cornflowerblue: "#6495ed",
240
+ cornsilk: "#fff8dc",
241
+ crimson: "#dc143c",
242
+ cyanaqua: "#00ffff",
243
+ darkblue: "#00008b",
244
+ darkcyan: "#008b8b",
245
+ darkgoldenrod: "#b8860b",
246
+ darkgray: "#a9a9a9",
247
+ darkgreen: "#006400",
248
+ darkgrey: "#a9a9a9",
249
+ darkkhaki: "#bdb76b",
250
+ darkmagenta: "#8b008b",
251
+ darkolivegreen: "#556b2f",
252
+ darkorange: "#ff8c00",
253
+ darkorchid: "#9932cc",
254
+ darkred: "#8b0000",
255
+ darksalmon: "#e9967a",
256
+ darkseagreen: "#8fbc8f",
257
+ darkslateblue: "#483d8b",
258
+ darkslategray: "#2f4f4f",
259
+ darkslategrey: "#2f4f4f",
260
+ darkturquoise: "#00ced1",
261
+ darkviolet: "#9400d3",
262
+ deeppink: "#ff1493",
263
+ deepskyblue: "#00bfff",
264
+ dimgray: "#696969",
265
+ dimgrey: "#696969",
266
+ dodgerblue: "#1e90ff",
267
+ firebrick: "#b22222",
268
+ floralwhite: "#fffaf0",
269
+ forestgreen: "#228b22",
270
+ fuchsia: "#ff00ff",
271
+ gainsboro: "#dcdcdc",
272
+ ghostwhite: "#f8f8ff",
273
+ gold: "#ffd700",
274
+ goldenrod: "#daa520",
275
+ gray: "#808080",
276
+ green: "#008000",
277
+ greenyellow: "#adff2f",
278
+ grey: "#808080",
279
+ honeydew: "#f0fff0",
280
+ hotpink: "#ff69b4",
281
+ indianred: "#cd5c5c",
282
+ indigo: "#4b0082",
283
+ ivory: "#fffff0",
284
+ khaki: "#f0e68c",
285
+ lavender: "#e6e6fa",
286
+ lavenderblush: "#fff0f5",
287
+ lawngreen: "#7cfc00",
288
+ lemonchiffon: "#fffacd",
289
+ lightblue: "#add8e6",
290
+ lightcoral: "#f08080",
291
+ lightcyan: "#e0ffff",
292
+ lightgoldenrodyellow: "#fafad2",
293
+ lightgray: "#d3d3d3",
294
+ lightgreen: "#90ee90",
295
+ lightgrey: "#d3d3d3",
296
+ lightpink: "#ffb6c1",
297
+ lightsalmon: "#ffa07a",
298
+ lightseagreen: "#20b2aa",
299
+ lightskyblue: "#87cefa",
300
+ lightslategray: "#778899",
301
+ lightslategrey: "#778899",
302
+ lightsteelblue: "#b0c4de",
303
+ lightyellow: "#ffffe0",
304
+ lime: "#00ff00",
305
+ limegreen: "#32cd32",
306
+ linen: "#faf0e6",
307
+ magenta: "#ff00ff",
308
+ maroon: "#800000",
309
+ mediumaquamarine: "#66cdaa",
310
+ mediumblue: "#0000cd",
311
+ mediumorchid: "#ba55d3",
312
+ mediumpurple: "#9370db",
313
+ mediumseagreen: "#3cb371",
314
+ mediumslateblue: "#7b68ee",
315
+ mediumspringgreen: "#00fa9a",
316
+ mediumturquoise: "#48d1cc",
317
+ mediumvioletred: "#c71585",
318
+ midnightblue: "#191970",
319
+ mintcream: "#f5fffa",
320
+ mistyrose: "#ffe4e1",
321
+ moccasin: "#ffe4b5",
322
+ navajowhite: "#ffdead",
323
+ navy: "#000080",
324
+ oldlace: "#fdf5e6",
325
+ olive: "#808000",
326
+ olivedrab: "#6b8e23",
327
+ orange: "#ffa500",
328
+ orangered: "#ff4500",
329
+ orchid: "#da70d6",
330
+ palegoldenrod: "#eee8aa",
331
+ palegreen: "#98fb98",
332
+ paleturquoise: "#afeeee",
333
+ palevioletred: "#db7093",
334
+ papayawhip: "#ffefd5",
335
+ peachpuff: "#ffdab9",
336
+ peru: "#cd853f",
337
+ pink: "#ffc0cb",
338
+ plum: "#dda0dd",
339
+ powderblue: "#b0e0e6",
340
+ purple: "#800080",
341
+ rebeccapurple: "#663399",
342
+ red: "#ff0000",
343
+ rosybrown: "#bc8f8f",
344
+ royalblue: "#4169e1",
345
+ saddlebrown: "#8b4513",
346
+ salmon: "#fa8072",
347
+ sandybrown: "#f4a460",
348
+ seagreen: "#2e8b57",
349
+ seashell: "#fff5ee",
350
+ sienna: "#a0522d",
351
+ silver: "#c0c0c0",
352
+ skyblue: "#87ceeb",
353
+ slateblue: "#6a5acd",
354
+ slategray: "#708090",
355
+ slategrey: "#708090",
356
+ snow: "#fffafa",
357
+ springgreen: "#00ff7f",
358
+ tan: "#d2b48c",
359
+ teal: "#008080",
360
+ thistle: "#d8bfd8",
361
+ transparent: "#00000000",
362
+ turquoise: "#40e0d0",
363
+ violet: "#ee82ee",
364
+ wheat: "#f5deb3",
365
+ white: "#ffffff",
366
+ whitesmoke: "#f5f5f5",
367
+ yellow: "#ffff00",
368
+ yellowgreen: "#9acd32"
369
+ },
370
+ parse: (t) => {
371
+ t = t.toLowerCase();
372
+ const i = jt.colors[t];
373
+ if (i)
374
+ return Mt.parse(i);
375
+ },
376
+ stringify: (t) => {
377
+ const i = Mt.stringify(t);
378
+ for (const e in jt.colors) if (jt.colors[e] === i) return e;
379
+ }
380
+ }, Gt = {
381
+ 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,
382
+ parse: (t) => {
383
+ const i = t.charCodeAt(0);
384
+ if (i !== 114 && i !== 82) return;
385
+ const e = t.match(Gt.re);
386
+ if (!e) return;
387
+ const [, l, s, u, T, B, S, D, z] = e;
388
+ return Ci.set({
389
+ r: y.channel.clamp.r(s ? parseFloat(l) * 2.55 : parseFloat(l)),
390
+ g: y.channel.clamp.g(T ? parseFloat(u) * 2.55 : parseFloat(u)),
391
+ b: y.channel.clamp.b(S ? parseFloat(B) * 2.55 : parseFloat(B)),
392
+ a: D ? y.channel.clamp.a(z ? parseFloat(D) / 100 : parseFloat(D)) : 1
393
+ }, t);
394
+ },
395
+ stringify: (t) => {
396
+ const { r: i, g: e, b: l, a: s } = t;
397
+ return s < 1 ? `rgba(${y.lang.round(i)}, ${y.lang.round(e)}, ${y.lang.round(l)}, ${y.lang.round(s)})` : `rgb(${y.lang.round(i)}, ${y.lang.round(e)}, ${y.lang.round(l)})`;
398
+ }
399
+ }, et = {
400
+ format: {
401
+ keyword: jt,
402
+ hex: Mt,
403
+ rgb: Gt,
404
+ rgba: Gt,
405
+ hsl: bt,
406
+ hsla: bt
407
+ },
408
+ parse: (t) => {
409
+ if (typeof t != "string") return t;
410
+ const i = Mt.parse(t) || Gt.parse(t) || bt.parse(t) || jt.parse(t);
411
+ if (i) return i;
412
+ throw new Error(`Unsupported color format: "${t}"`);
413
+ },
414
+ stringify: (t) => !t.changed && t.color ? t.color : t.type.is(W.HSL) || t.data.r === void 0 ? bt.stringify(t) : t.a < 1 || !Number.isInteger(t.r) || !Number.isInteger(t.g) || !Number.isInteger(t.b) ? Gt.stringify(t) : Mt.stringify(t)
415
+ }, $r = (t, i) => {
416
+ const e = et.parse(t);
417
+ for (const l in i) e[l] = y.channel.clamp[l](i[l]);
418
+ return et.stringify(e);
419
+ }, pt = (t, i, e = 0, l = 1) => {
420
+ if (typeof t != "number") return $r(t, { a: i });
421
+ const s = Ci.set({
422
+ r: y.channel.clamp.r(t),
423
+ g: y.channel.clamp.g(i),
424
+ b: y.channel.clamp.b(e),
425
+ a: y.channel.clamp.a(l)
426
+ });
427
+ return et.stringify(s);
428
+ }, He = (t) => {
429
+ const { r: i, g: e, b: l } = et.parse(t), s = 0.2126 * y.channel.toLinear(i) + 0.7152 * y.channel.toLinear(e) + 0.0722 * y.channel.toLinear(l);
430
+ return y.lang.round(s);
431
+ }, Ue = (t) => He(t) >= 0.5, K = (t) => !Ue(t), jr = (t, i, e) => {
432
+ const l = et.parse(t), s = l[i], u = y.channel.clamp[i](s + e);
433
+ return s !== u && (l[i] = u), et.stringify(l);
434
+ }, n = (t, i) => jr(t, "l", i), c = (t, i) => jr(t, "l", -i), r = (t, i) => {
435
+ const e = et.parse(t), l = {};
436
+ for (const s in i)
437
+ i[s] && (l[s] = e[s] + i[s]);
438
+ return $r(t, l);
439
+ }, Ge = (t, i, e = 50) => {
440
+ const { r: l, g: s, b: u, a: T } = et.parse(t), { r: B, g: S, b: D, a: z } = et.parse(i), Y = e / 100, St = Y * 2 - 1, mt = T - z, Ft = ((St * mt === -1 ? St : (St + mt) / (1 + St * mt)) + 1) / 2, Z = 1 - Ft;
441
+ return pt(l * Ft + B * Z, s * Ft + S * Z, u * Ft + D * Z, T * Y + z * (1 - Y));
442
+ }, a = (t, i = 100) => {
443
+ const e = et.parse(t);
444
+ return e.r = 255 - e.r, e.g = 255 - e.g, e.b = 255 - e.b, Ge(e, t, i);
445
+ };
446
+ function Fr(t, i) {
447
+ (i == null || i > t.length) && (i = t.length);
448
+ for (var e = 0, l = Array(i); e < i; e++) l[e] = t[e];
449
+ return l;
450
+ }
451
+ function $e(t) {
452
+ if (Array.isArray(t)) return t;
453
+ }
454
+ function je(t, i) {
455
+ var e = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
456
+ if (e != null) {
457
+ var l, s, u, T, B = [], S = !0, D = !1;
458
+ try {
459
+ if (u = (e = e.call(t)).next, i !== 0) for (; !(S = (l = u.call(e)).done) && (B.push(l.value), B.length !== i); S = !0) ;
460
+ } catch (z) {
461
+ D = !0, s = z;
462
+ } finally {
463
+ try {
464
+ if (!S && e.return != null && (T = e.return(), Object(T) !== T)) return;
465
+ } finally {
466
+ if (D) throw s;
467
+ }
468
+ }
469
+ return B;
470
+ }
471
+ }
472
+ function Ve() {
473
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
474
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
475
+ }
476
+ function Ye(t, i) {
477
+ return $e(t) || je(t, i) || Xe(t, i) || Ve();
478
+ }
479
+ function Xe(t, i) {
480
+ if (t) {
481
+ if (typeof t == "string") return Fr(t, i);
482
+ var e = {}.toString.call(t).slice(8, -1);
483
+ return e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set" ? Array.from(t) : e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e) ? Fr(t, i) : void 0;
484
+ }
485
+ }
486
+ var Vr = Object.entries, Lr = Object.setPrototypeOf, Ke = Object.isFrozen, Ze = Object.getPrototypeOf, Je = Object.getOwnPropertyDescriptor, I = Object.freeze, M = Object.seal, It = Object.create, Yr = typeof Reflect < "u" && Reflect, Pi = Yr.apply, Ni = Yr.construct;
487
+ I || (I = function(i) {
488
+ return i;
489
+ });
490
+ M || (M = function(i) {
491
+ return i;
492
+ });
493
+ Pi || (Pi = function(i, e) {
494
+ for (var l = arguments.length, s = new Array(l > 2 ? l - 2 : 0), u = 2; u < l; u++) s[u - 2] = arguments[u];
495
+ return i.apply(e, s);
496
+ });
497
+ Ni || (Ni = function(i) {
498
+ for (var e = arguments.length, l = new Array(e > 1 ? e - 1 : 0), s = 1; s < e; s++) l[s - 1] = arguments[s];
499
+ return new i(...l);
500
+ });
501
+ var Ot = A(Array.prototype.forEach), Qe = A(Array.prototype.lastIndexOf), vr = A(Array.prototype.pop), qt = A(Array.prototype.push), to = A(Array.prototype.splice), ut = Array.isArray, $t = A(String.prototype.toLowerCase), Mi = A(String.prototype.toString), _r = A(String.prototype.match), Ht = A(String.prototype.replace), Er = A(String.prototype.indexOf), io = A(String.prototype.trim), ro = A(Number.prototype.toString), eo = A(Boolean.prototype.toString), Ar = typeof BigInt > "u" ? null : A(BigInt.prototype.toString), wr = typeof Symbol > "u" ? null : A(Symbol.prototype.toString), O = A(Object.prototype.hasOwnProperty), Ut = A(Object.prototype.toString), w = A(RegExp.prototype.test), kt = oo(TypeError);
502
+ function A(t) {
503
+ return function(i) {
504
+ i instanceof RegExp && (i.lastIndex = 0);
505
+ for (var e = arguments.length, l = new Array(e > 1 ? e - 1 : 0), s = 1; s < e; s++) l[s - 1] = arguments[s];
506
+ return Pi(t, i, l);
507
+ };
508
+ }
509
+ function oo(t) {
510
+ return function() {
511
+ for (var i = arguments.length, e = new Array(i), l = 0; l < i; l++) e[l] = arguments[l];
512
+ return Ni(t, e);
513
+ };
514
+ }
515
+ function k(t, i) {
516
+ let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : $t;
517
+ if (Lr && Lr(t, null), !ut(i)) return t;
518
+ let l = i.length;
519
+ for (; l--; ) {
520
+ let s = i[l];
521
+ if (typeof s == "string") {
522
+ const u = e(s);
523
+ u !== s && (Ke(i) || (i[l] = u), s = u);
524
+ }
525
+ t[s] = !0;
526
+ }
527
+ return t;
528
+ }
529
+ function so(t) {
530
+ for (let i = 0; i < t.length; i++) O(t, i) || (t[i] = null);
531
+ return t;
532
+ }
533
+ function U(t) {
534
+ const i = It(null);
535
+ for (const l of Vr(t)) {
536
+ var e = Ye(l, 2);
537
+ const s = e[0], u = e[1];
538
+ O(t, s) && (ut(u) ? i[s] = so(u) : u && typeof u == "object" && u.constructor === Object ? i[s] = U(u) : i[s] = u);
539
+ }
540
+ return i;
541
+ }
542
+ function ao(t) {
543
+ switch (typeof t) {
544
+ case "string":
545
+ return t;
546
+ case "number":
547
+ return ro(t);
548
+ case "boolean":
549
+ return eo(t);
550
+ case "bigint":
551
+ return Ar ? Ar(t) : "0";
552
+ case "symbol":
553
+ return wr ? wr(t) : "Symbol()";
554
+ case "undefined":
555
+ return Ut(t);
556
+ case "function":
557
+ case "object": {
558
+ if (t === null) return Ut(t);
559
+ const i = t, e = rt(i, "toString");
560
+ if (typeof e == "function") {
561
+ const l = e(i);
562
+ return typeof l == "string" ? l : Ut(l);
563
+ }
564
+ return Ut(t);
565
+ }
566
+ default:
567
+ return Ut(t);
568
+ }
569
+ }
570
+ function rt(t, i) {
571
+ for (; t !== null; ) {
572
+ const l = Je(t, i);
573
+ if (l) {
574
+ if (l.get) return A(l.get);
575
+ if (typeof l.value == "function") return A(l.value);
576
+ }
577
+ t = Ze(t);
578
+ }
579
+ function e() {
580
+ return null;
581
+ }
582
+ return e;
583
+ }
584
+ function lo(t) {
585
+ try {
586
+ return w(t, ""), !0;
587
+ } catch {
588
+ return !1;
589
+ }
590
+ }
591
+ var Or = I([
592
+ "a",
593
+ "abbr",
594
+ "acronym",
595
+ "address",
596
+ "area",
597
+ "article",
598
+ "aside",
599
+ "audio",
600
+ "b",
601
+ "bdi",
602
+ "bdo",
603
+ "big",
604
+ "blink",
605
+ "blockquote",
606
+ "body",
607
+ "br",
608
+ "button",
609
+ "canvas",
610
+ "caption",
611
+ "center",
612
+ "cite",
613
+ "code",
614
+ "col",
615
+ "colgroup",
616
+ "content",
617
+ "data",
618
+ "datalist",
619
+ "dd",
620
+ "decorator",
621
+ "del",
622
+ "details",
623
+ "dfn",
624
+ "dialog",
625
+ "dir",
626
+ "div",
627
+ "dl",
628
+ "dt",
629
+ "element",
630
+ "em",
631
+ "fieldset",
632
+ "figcaption",
633
+ "figure",
634
+ "font",
635
+ "footer",
636
+ "form",
637
+ "h1",
638
+ "h2",
639
+ "h3",
640
+ "h4",
641
+ "h5",
642
+ "h6",
643
+ "head",
644
+ "header",
645
+ "hgroup",
646
+ "hr",
647
+ "html",
648
+ "i",
649
+ "img",
650
+ "input",
651
+ "ins",
652
+ "kbd",
653
+ "label",
654
+ "legend",
655
+ "li",
656
+ "main",
657
+ "map",
658
+ "mark",
659
+ "marquee",
660
+ "menu",
661
+ "menuitem",
662
+ "meter",
663
+ "nav",
664
+ "nobr",
665
+ "ol",
666
+ "optgroup",
667
+ "option",
668
+ "output",
669
+ "p",
670
+ "picture",
671
+ "pre",
672
+ "progress",
673
+ "q",
674
+ "rp",
675
+ "rt",
676
+ "ruby",
677
+ "s",
678
+ "samp",
679
+ "search",
680
+ "section",
681
+ "select",
682
+ "shadow",
683
+ "slot",
684
+ "small",
685
+ "source",
686
+ "spacer",
687
+ "span",
688
+ "strike",
689
+ "strong",
690
+ "style",
691
+ "sub",
692
+ "summary",
693
+ "sup",
694
+ "table",
695
+ "tbody",
696
+ "td",
697
+ "template",
698
+ "textarea",
699
+ "tfoot",
700
+ "th",
701
+ "thead",
702
+ "time",
703
+ "tr",
704
+ "track",
705
+ "tt",
706
+ "u",
707
+ "ul",
708
+ "var",
709
+ "video",
710
+ "wbr"
711
+ ]), Di = I([
712
+ "svg",
713
+ "a",
714
+ "altglyph",
715
+ "altglyphdef",
716
+ "altglyphitem",
717
+ "animatecolor",
718
+ "animatemotion",
719
+ "animatetransform",
720
+ "circle",
721
+ "clippath",
722
+ "defs",
723
+ "desc",
724
+ "ellipse",
725
+ "enterkeyhint",
726
+ "exportparts",
727
+ "filter",
728
+ "font",
729
+ "g",
730
+ "glyph",
731
+ "glyphref",
732
+ "hkern",
733
+ "image",
734
+ "inputmode",
735
+ "line",
736
+ "lineargradient",
737
+ "marker",
738
+ "mask",
739
+ "metadata",
740
+ "mpath",
741
+ "part",
742
+ "path",
743
+ "pattern",
744
+ "polygon",
745
+ "polyline",
746
+ "radialgradient",
747
+ "rect",
748
+ "stop",
749
+ "style",
750
+ "switch",
751
+ "symbol",
752
+ "text",
753
+ "textpath",
754
+ "title",
755
+ "tref",
756
+ "tspan",
757
+ "view",
758
+ "vkern"
759
+ ]), zi = I([
760
+ "feBlend",
761
+ "feColorMatrix",
762
+ "feComponentTransfer",
763
+ "feComposite",
764
+ "feConvolveMatrix",
765
+ "feDiffuseLighting",
766
+ "feDisplacementMap",
767
+ "feDistantLight",
768
+ "feDropShadow",
769
+ "feFlood",
770
+ "feFuncA",
771
+ "feFuncB",
772
+ "feFuncG",
773
+ "feFuncR",
774
+ "feGaussianBlur",
775
+ "feImage",
776
+ "feMerge",
777
+ "feMergeNode",
778
+ "feMorphology",
779
+ "feOffset",
780
+ "fePointLight",
781
+ "feSpecularLighting",
782
+ "feSpotLight",
783
+ "feTile",
784
+ "feTurbulence"
785
+ ]), ho = I([
786
+ "animate",
787
+ "color-profile",
788
+ "cursor",
789
+ "discard",
790
+ "font-face",
791
+ "font-face-format",
792
+ "font-face-name",
793
+ "font-face-src",
794
+ "font-face-uri",
795
+ "foreignobject",
796
+ "hatch",
797
+ "hatchpath",
798
+ "mesh",
799
+ "meshgradient",
800
+ "meshpatch",
801
+ "meshrow",
802
+ "missing-glyph",
803
+ "script",
804
+ "set",
805
+ "solidcolor",
806
+ "unknown",
807
+ "use"
808
+ ]), Wi = I([
809
+ "math",
810
+ "menclose",
811
+ "merror",
812
+ "mfenced",
813
+ "mfrac",
814
+ "mglyph",
815
+ "mi",
816
+ "mlabeledtr",
817
+ "mmultiscripts",
818
+ "mn",
819
+ "mo",
820
+ "mover",
821
+ "mpadded",
822
+ "mphantom",
823
+ "mroot",
824
+ "mrow",
825
+ "ms",
826
+ "mspace",
827
+ "msqrt",
828
+ "mstyle",
829
+ "msub",
830
+ "msup",
831
+ "msubsup",
832
+ "mtable",
833
+ "mtd",
834
+ "mtext",
835
+ "mtr",
836
+ "munder",
837
+ "munderover",
838
+ "mprescripts"
839
+ ]), no = I([
840
+ "maction",
841
+ "maligngroup",
842
+ "malignmark",
843
+ "mlongdiv",
844
+ "mscarries",
845
+ "mscarry",
846
+ "msgroup",
847
+ "mstack",
848
+ "msline",
849
+ "msrow",
850
+ "semantics",
851
+ "annotation",
852
+ "annotation-xml",
853
+ "mprescripts",
854
+ "none"
855
+ ]), qr = I(["#text"]), Ir = I([
856
+ "accept",
857
+ "action",
858
+ "align",
859
+ "alt",
860
+ "autocapitalize",
861
+ "autocomplete",
862
+ "autopictureinpicture",
863
+ "autoplay",
864
+ "background",
865
+ "bgcolor",
866
+ "border",
867
+ "capture",
868
+ "cellpadding",
869
+ "cellspacing",
870
+ "checked",
871
+ "cite",
872
+ "class",
873
+ "clear",
874
+ "color",
875
+ "cols",
876
+ "colspan",
877
+ "command",
878
+ "commandfor",
879
+ "controls",
880
+ "controlslist",
881
+ "coords",
882
+ "crossorigin",
883
+ "datetime",
884
+ "decoding",
885
+ "default",
886
+ "dir",
887
+ "disabled",
888
+ "disablepictureinpicture",
889
+ "disableremoteplayback",
890
+ "download",
891
+ "draggable",
892
+ "enctype",
893
+ "enterkeyhint",
894
+ "exportparts",
895
+ "face",
896
+ "for",
897
+ "headers",
898
+ "height",
899
+ "hidden",
900
+ "high",
901
+ "href",
902
+ "hreflang",
903
+ "id",
904
+ "inert",
905
+ "inputmode",
906
+ "integrity",
907
+ "ismap",
908
+ "kind",
909
+ "label",
910
+ "lang",
911
+ "list",
912
+ "loading",
913
+ "loop",
914
+ "low",
915
+ "max",
916
+ "maxlength",
917
+ "media",
918
+ "method",
919
+ "min",
920
+ "minlength",
921
+ "multiple",
922
+ "muted",
923
+ "name",
924
+ "nonce",
925
+ "noshade",
926
+ "novalidate",
927
+ "nowrap",
928
+ "open",
929
+ "optimum",
930
+ "part",
931
+ "pattern",
932
+ "placeholder",
933
+ "playsinline",
934
+ "popover",
935
+ "popovertarget",
936
+ "popovertargetaction",
937
+ "poster",
938
+ "preload",
939
+ "pubdate",
940
+ "radiogroup",
941
+ "readonly",
942
+ "rel",
943
+ "required",
944
+ "rev",
945
+ "reversed",
946
+ "role",
947
+ "rows",
948
+ "rowspan",
949
+ "spellcheck",
950
+ "scope",
951
+ "selected",
952
+ "shape",
953
+ "size",
954
+ "sizes",
955
+ "slot",
956
+ "span",
957
+ "srclang",
958
+ "start",
959
+ "src",
960
+ "srcset",
961
+ "step",
962
+ "style",
963
+ "summary",
964
+ "tabindex",
965
+ "title",
966
+ "translate",
967
+ "type",
968
+ "usemap",
969
+ "valign",
970
+ "value",
971
+ "width",
972
+ "wrap",
973
+ "xmlns"
974
+ ]), Ri = I([
975
+ "accent-height",
976
+ "accumulate",
977
+ "additive",
978
+ "alignment-baseline",
979
+ "amplitude",
980
+ "ascent",
981
+ "attributename",
982
+ "attributetype",
983
+ "azimuth",
984
+ "basefrequency",
985
+ "baseline-shift",
986
+ "begin",
987
+ "bias",
988
+ "by",
989
+ "class",
990
+ "clip",
991
+ "clippathunits",
992
+ "clip-path",
993
+ "clip-rule",
994
+ "color",
995
+ "color-interpolation",
996
+ "color-interpolation-filters",
997
+ "color-profile",
998
+ "color-rendering",
999
+ "cx",
1000
+ "cy",
1001
+ "d",
1002
+ "dx",
1003
+ "dy",
1004
+ "diffuseconstant",
1005
+ "direction",
1006
+ "display",
1007
+ "divisor",
1008
+ "dominant-baseline",
1009
+ "dur",
1010
+ "edgemode",
1011
+ "elevation",
1012
+ "end",
1013
+ "exponent",
1014
+ "fill",
1015
+ "fill-opacity",
1016
+ "fill-rule",
1017
+ "filter",
1018
+ "filterunits",
1019
+ "flood-color",
1020
+ "flood-opacity",
1021
+ "font-family",
1022
+ "font-size",
1023
+ "font-size-adjust",
1024
+ "font-stretch",
1025
+ "font-style",
1026
+ "font-variant",
1027
+ "font-weight",
1028
+ "fx",
1029
+ "fy",
1030
+ "g1",
1031
+ "g2",
1032
+ "glyph-name",
1033
+ "glyphref",
1034
+ "gradientunits",
1035
+ "gradienttransform",
1036
+ "height",
1037
+ "href",
1038
+ "id",
1039
+ "image-rendering",
1040
+ "in",
1041
+ "in2",
1042
+ "intercept",
1043
+ "k",
1044
+ "k1",
1045
+ "k2",
1046
+ "k3",
1047
+ "k4",
1048
+ "kerning",
1049
+ "keypoints",
1050
+ "keysplines",
1051
+ "keytimes",
1052
+ "lang",
1053
+ "lengthadjust",
1054
+ "letter-spacing",
1055
+ "kernelmatrix",
1056
+ "kernelunitlength",
1057
+ "lighting-color",
1058
+ "local",
1059
+ "marker-end",
1060
+ "marker-mid",
1061
+ "marker-start",
1062
+ "markerheight",
1063
+ "markerunits",
1064
+ "markerwidth",
1065
+ "maskcontentunits",
1066
+ "maskunits",
1067
+ "max",
1068
+ "mask",
1069
+ "mask-type",
1070
+ "media",
1071
+ "method",
1072
+ "mode",
1073
+ "min",
1074
+ "name",
1075
+ "numoctaves",
1076
+ "offset",
1077
+ "operator",
1078
+ "opacity",
1079
+ "order",
1080
+ "orient",
1081
+ "orientation",
1082
+ "origin",
1083
+ "overflow",
1084
+ "paint-order",
1085
+ "path",
1086
+ "pathlength",
1087
+ "patterncontentunits",
1088
+ "patterntransform",
1089
+ "patternunits",
1090
+ "points",
1091
+ "preservealpha",
1092
+ "preserveaspectratio",
1093
+ "primitiveunits",
1094
+ "r",
1095
+ "rx",
1096
+ "ry",
1097
+ "radius",
1098
+ "refx",
1099
+ "refy",
1100
+ "repeatcount",
1101
+ "repeatdur",
1102
+ "restart",
1103
+ "result",
1104
+ "rotate",
1105
+ "scale",
1106
+ "seed",
1107
+ "shape-rendering",
1108
+ "slope",
1109
+ "specularconstant",
1110
+ "specularexponent",
1111
+ "spreadmethod",
1112
+ "startoffset",
1113
+ "stddeviation",
1114
+ "stitchtiles",
1115
+ "stop-color",
1116
+ "stop-opacity",
1117
+ "stroke-dasharray",
1118
+ "stroke-dashoffset",
1119
+ "stroke-linecap",
1120
+ "stroke-linejoin",
1121
+ "stroke-miterlimit",
1122
+ "stroke-opacity",
1123
+ "stroke",
1124
+ "stroke-width",
1125
+ "style",
1126
+ "surfacescale",
1127
+ "systemlanguage",
1128
+ "tabindex",
1129
+ "tablevalues",
1130
+ "targetx",
1131
+ "targety",
1132
+ "transform",
1133
+ "transform-origin",
1134
+ "text-anchor",
1135
+ "text-decoration",
1136
+ "text-orientation",
1137
+ "text-rendering",
1138
+ "textlength",
1139
+ "type",
1140
+ "u1",
1141
+ "u2",
1142
+ "unicode",
1143
+ "values",
1144
+ "viewbox",
1145
+ "visibility",
1146
+ "version",
1147
+ "vert-adv-y",
1148
+ "vert-origin-x",
1149
+ "vert-origin-y",
1150
+ "width",
1151
+ "word-spacing",
1152
+ "wrap",
1153
+ "writing-mode",
1154
+ "xchannelselector",
1155
+ "ychannelselector",
1156
+ "x",
1157
+ "x1",
1158
+ "x2",
1159
+ "xmlns",
1160
+ "y",
1161
+ "y1",
1162
+ "y2",
1163
+ "z",
1164
+ "zoomandpan"
1165
+ ]), Mr = I([
1166
+ "accent",
1167
+ "accentunder",
1168
+ "align",
1169
+ "bevelled",
1170
+ "close",
1171
+ "columnalign",
1172
+ "columnlines",
1173
+ "columnspacing",
1174
+ "columnspan",
1175
+ "denomalign",
1176
+ "depth",
1177
+ "dir",
1178
+ "display",
1179
+ "displaystyle",
1180
+ "encoding",
1181
+ "fence",
1182
+ "frame",
1183
+ "height",
1184
+ "href",
1185
+ "id",
1186
+ "largeop",
1187
+ "length",
1188
+ "linethickness",
1189
+ "lquote",
1190
+ "lspace",
1191
+ "mathbackground",
1192
+ "mathcolor",
1193
+ "mathsize",
1194
+ "mathvariant",
1195
+ "maxsize",
1196
+ "minsize",
1197
+ "movablelimits",
1198
+ "notation",
1199
+ "numalign",
1200
+ "open",
1201
+ "rowalign",
1202
+ "rowlines",
1203
+ "rowspacing",
1204
+ "rowspan",
1205
+ "rspace",
1206
+ "rquote",
1207
+ "scriptlevel",
1208
+ "scriptminsize",
1209
+ "scriptsizemultiplier",
1210
+ "selection",
1211
+ "separator",
1212
+ "separators",
1213
+ "stretchy",
1214
+ "subscriptshift",
1215
+ "supscriptshift",
1216
+ "symmetric",
1217
+ "voffset",
1218
+ "width",
1219
+ "xmlns"
1220
+ ]), si = I([
1221
+ "xlink:href",
1222
+ "xml:id",
1223
+ "xlink:title",
1224
+ "xml:space",
1225
+ "xmlns:xlink"
1226
+ ]), co = M(/{{[\w\W]*|^[\w\W]*}}/g), Co = M(/<%[\w\W]*|^[\w\W]*%>/g), go = M(/\${[\w\W]*/g), uo = M(/^data-[\-\w.\u00B7-\uFFFF]+$/), po = M(/^aria-[\-\w]+$/), Dr = M(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), mo = M(/^(?:\w+script|data):/i), yo = M(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), xo = M(/^html$/i), fo = M(/^[a-z][.\w]*(-[.\w]+)+$/i), zr = M(/<[/\w!]/g), Wr = M(/<[/\w]/g), To = M(/<\/no(script|embed|frames)/i), ko = M(/\/>/i), V = {
1227
+ element: 1,
1228
+ attribute: 2,
1229
+ text: 3,
1230
+ cdataSection: 4,
1231
+ entityReference: 5,
1232
+ entityNode: 6,
1233
+ processingInstruction: 7,
1234
+ comment: 8,
1235
+ document: 9,
1236
+ documentType: 10,
1237
+ documentFragment: 11,
1238
+ notation: 12
1239
+ }, bo = function() {
1240
+ return typeof window > "u" ? null : window;
1241
+ }, Bo = function(i, e) {
1242
+ if (typeof i != "object" || typeof i.createPolicy != "function") return null;
1243
+ let l = null;
1244
+ const s = "data-tt-policy-suffix";
1245
+ e && e.hasAttribute(s) && (l = e.getAttribute(s));
1246
+ const u = "dompurify" + (l ? "#" + l : "");
1247
+ try {
1248
+ return i.createPolicy(u, {
1249
+ createHTML(T) {
1250
+ return T;
1251
+ },
1252
+ createScriptURL(T) {
1253
+ return T;
1254
+ }
1255
+ });
1256
+ } catch {
1257
+ return console.warn("TrustedTypes policy " + u + " could not be created."), null;
1258
+ }
1259
+ }, Rr = function() {
1260
+ return {
1261
+ afterSanitizeAttributes: [],
1262
+ afterSanitizeElements: [],
1263
+ afterSanitizeShadowDOM: [],
1264
+ beforeSanitizeAttributes: [],
1265
+ beforeSanitizeElements: [],
1266
+ beforeSanitizeShadowDOM: [],
1267
+ uponSanitizeAttribute: [],
1268
+ uponSanitizeElement: [],
1269
+ uponSanitizeShadowNode: []
1270
+ };
1271
+ }, Ct = function(i, e, l, s) {
1272
+ return O(i, e) && ut(i[e]) ? k(s.base ? U(s.base) : {}, i[e], s.transform) : l;
1273
+ };
1274
+ function Xr() {
1275
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : bo();
1276
+ const i = (g) => Xr(g);
1277
+ if (i.version = "3.4.12", i.removed = [], !t || !t.document || t.document.nodeType !== V.document || !t.Element)
1278
+ return i.isSupported = !1, i;
1279
+ let e = t.document;
1280
+ const l = e, s = l.currentScript;
1281
+ t.DocumentFragment;
1282
+ const u = t.HTMLTemplateElement, T = t.Node, B = t.Element, S = t.NodeFilter;
1283
+ t.NamedNodeMap === void 0 && (t.NamedNodeMap || t.MozNamedAttrMap), t.HTMLFormElement;
1284
+ const D = t.DOMParser, z = t.trustedTypes, Y = B.prototype, St = rt(Y, "cloneNode"), mt = rt(Y, "remove"), Ft = rt(Y, "nextSibling"), Z = rt(Y, "childNodes"), yt = rt(Y, "parentNode"), Ki = rt(Y, "shadowRoot"), pi = rt(Y, "attributes"), N = T && T.prototype ? rt(T.prototype, "nodeType") : null, J = T && T.prototype ? rt(T.prototype, "nodeName") : null;
1285
+ if (typeof u == "function") {
1286
+ const g = e.createElement("template");
1287
+ g.content && g.content.ownerDocument && (e = g.content.ownerDocument);
1288
+ }
1289
+ let G, xt = "", mi, Zi = !1, Wt = 0;
1290
+ const Ji = function() {
1291
+ if (Wt > 0) throw kt('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.');
1292
+ }, Lt = function(o) {
1293
+ Ji(), Wt++;
1294
+ try {
1295
+ return G.createHTML(o);
1296
+ } finally {
1297
+ Wt--;
1298
+ }
1299
+ }, he = function(o) {
1300
+ Ji(), Wt++;
1301
+ try {
1302
+ return G.createScriptURL(o);
1303
+ } finally {
1304
+ Wt--;
1305
+ }
1306
+ }, ne = function() {
1307
+ return Zi || (mi = Bo(z, s), Zi = !0), mi;
1308
+ }, Kt = e, yi = Kt.implementation, Qi = Kt.createNodeIterator, ce = Kt.createDocumentFragment, de = Kt.getElementsByTagName, Ce = l.importNode;
1309
+ let L = Rr();
1310
+ i.isSupported = typeof Vr == "function" && typeof yt == "function" && yi && yi.createHTMLDocument !== void 0;
1311
+ const ge = co, ue = Co, pe = go, me = uo, ye = po, xe = mo, tr = yo, fe = fo;
1312
+ let ir = Dr, v = null;
1313
+ const rr = k({}, [
1314
+ ...Or,
1315
+ ...Di,
1316
+ ...zi,
1317
+ ...Wi,
1318
+ ...qr
1319
+ ]);
1320
+ let _ = null;
1321
+ const er = k({}, [
1322
+ ...Ir,
1323
+ ...Ri,
1324
+ ...Mr,
1325
+ ...si
1326
+ ]);
1327
+ let E = Object.seal(It(null, {
1328
+ tagNameCheck: {
1329
+ writable: !0,
1330
+ configurable: !1,
1331
+ enumerable: !0,
1332
+ value: null
1333
+ },
1334
+ attributeNameCheck: {
1335
+ writable: !0,
1336
+ configurable: !1,
1337
+ enumerable: !0,
1338
+ value: null
1339
+ },
1340
+ allowCustomizedBuiltInElements: {
1341
+ writable: !0,
1342
+ configurable: !1,
1343
+ enumerable: !0,
1344
+ value: !1
1345
+ }
1346
+ })), Rt = null, or = null;
1347
+ const at = Object.seal(It(null, {
1348
+ tagCheck: {
1349
+ writable: !0,
1350
+ configurable: !1,
1351
+ enumerable: !0,
1352
+ value: null
1353
+ },
1354
+ attributeCheck: {
1355
+ writable: !0,
1356
+ configurable: !1,
1357
+ enumerable: !0,
1358
+ value: null
1359
+ }
1360
+ }));
1361
+ let sr = !0, xi = !0, ar = !1, lr = !0, lt = !1, ht = !0, ft = !1, fi = !1, Ti = null, ki = null, bi = !1, vt = !1, Zt = !1, Jt = !1, hr = !0, nr = !1;
1362
+ const cr = "user-content-";
1363
+ let Bi = !0, Si = !1, _t = {}, Q = null;
1364
+ const Fi = k({}, [
1365
+ "annotation-xml",
1366
+ "audio",
1367
+ "colgroup",
1368
+ "desc",
1369
+ "foreignobject",
1370
+ "head",
1371
+ "iframe",
1372
+ "math",
1373
+ "mi",
1374
+ "mn",
1375
+ "mo",
1376
+ "ms",
1377
+ "mtext",
1378
+ "noembed",
1379
+ "noframes",
1380
+ "noscript",
1381
+ "plaintext",
1382
+ "script",
1383
+ "selectedcontent",
1384
+ "style",
1385
+ "svg",
1386
+ "template",
1387
+ "thead",
1388
+ "title",
1389
+ "video",
1390
+ "xmp"
1391
+ ]);
1392
+ let dr = null;
1393
+ const Cr = k({}, [
1394
+ "audio",
1395
+ "video",
1396
+ "img",
1397
+ "source",
1398
+ "image",
1399
+ "track"
1400
+ ]);
1401
+ let Li = null;
1402
+ const gr = k({}, [
1403
+ "alt",
1404
+ "class",
1405
+ "for",
1406
+ "id",
1407
+ "label",
1408
+ "name",
1409
+ "pattern",
1410
+ "placeholder",
1411
+ "role",
1412
+ "summary",
1413
+ "title",
1414
+ "value",
1415
+ "style",
1416
+ "xmlns"
1417
+ ]), Qt = "http://www.w3.org/1998/Math/MathML", ti = "http://www.w3.org/2000/svg", tt = "http://www.w3.org/1999/xhtml";
1418
+ let Et = tt, vi = !1, _i = null;
1419
+ const Te = k({}, [
1420
+ Qt,
1421
+ ti,
1422
+ tt
1423
+ ], Mi), ur = I([
1424
+ "mi",
1425
+ "mo",
1426
+ "mn",
1427
+ "ms",
1428
+ "mtext"
1429
+ ]);
1430
+ let Ei = k({}, ur);
1431
+ const pr = I(["annotation-xml"]);
1432
+ let Ai = k({}, pr);
1433
+ const ke = k({}, [
1434
+ "title",
1435
+ "style",
1436
+ "font",
1437
+ "a",
1438
+ "script"
1439
+ ]);
1440
+ let Pt = null;
1441
+ const be = ["application/xhtml+xml", "text/html"], Be = "text/html";
1442
+ let F = null, At = null;
1443
+ const Se = e.createElement("form"), mr = function(o) {
1444
+ return o instanceof RegExp || o instanceof Function;
1445
+ }, wi = function() {
1446
+ let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1447
+ if (At && At === o) return;
1448
+ (!o || typeof o != "object") && (o = {}), o = U(o), Pt = be.indexOf(o.PARSER_MEDIA_TYPE) === -1 ? Be : o.PARSER_MEDIA_TYPE, F = Pt === "application/xhtml+xml" ? Mi : $t, v = Ct(o, "ALLOWED_TAGS", rr, { transform: F }), _ = Ct(o, "ALLOWED_ATTR", er, { transform: F }), _i = Ct(o, "ALLOWED_NAMESPACES", Te, { transform: Mi }), Li = Ct(o, "ADD_URI_SAFE_ATTR", gr, {
1449
+ transform: F,
1450
+ base: gr
1451
+ }), dr = Ct(o, "ADD_DATA_URI_TAGS", Cr, {
1452
+ transform: F,
1453
+ base: Cr
1454
+ }), Q = Ct(o, "FORBID_CONTENTS", Fi, { transform: F }), Rt = Ct(o, "FORBID_TAGS", U({}), { transform: F }), or = Ct(o, "FORBID_ATTR", U({}), { transform: F }), _t = O(o, "USE_PROFILES") ? o.USE_PROFILES && typeof o.USE_PROFILES == "object" ? U(o.USE_PROFILES) : o.USE_PROFILES : !1, sr = o.ALLOW_ARIA_ATTR !== !1, xi = o.ALLOW_DATA_ATTR !== !1, ar = o.ALLOW_UNKNOWN_PROTOCOLS || !1, lr = o.ALLOW_SELF_CLOSE_IN_ATTR !== !1, lt = o.SAFE_FOR_TEMPLATES || !1, ht = o.SAFE_FOR_XML !== !1, ft = o.WHOLE_DOCUMENT || !1, vt = o.RETURN_DOM || !1, Zt = o.RETURN_DOM_FRAGMENT || !1, Jt = o.RETURN_TRUSTED_TYPE || !1, bi = o.FORCE_BODY || !1, hr = o.SANITIZE_DOM !== !1, nr = o.SANITIZE_NAMED_PROPS || !1, Bi = o.KEEP_CONTENT !== !1, Si = o.IN_PLACE || !1, ir = lo(o.ALLOWED_URI_REGEXP) ? o.ALLOWED_URI_REGEXP : Dr, Et = typeof o.NAMESPACE == "string" ? o.NAMESPACE : tt, Ei = O(o, "MATHML_TEXT_INTEGRATION_POINTS") && o.MATHML_TEXT_INTEGRATION_POINTS && typeof o.MATHML_TEXT_INTEGRATION_POINTS == "object" ? U(o.MATHML_TEXT_INTEGRATION_POINTS) : k({}, ur), Ai = O(o, "HTML_INTEGRATION_POINTS") && o.HTML_INTEGRATION_POINTS && typeof o.HTML_INTEGRATION_POINTS == "object" ? U(o.HTML_INTEGRATION_POINTS) : k({}, pr);
1455
+ const h = O(o, "CUSTOM_ELEMENT_HANDLING") && o.CUSTOM_ELEMENT_HANDLING && typeof o.CUSTOM_ELEMENT_HANDLING == "object" ? U(o.CUSTOM_ELEMENT_HANDLING) : It(null);
1456
+ if (E = It(null), O(h, "tagNameCheck") && mr(h.tagNameCheck) && (E.tagNameCheck = h.tagNameCheck), O(h, "attributeNameCheck") && mr(h.attributeNameCheck) && (E.attributeNameCheck = h.attributeNameCheck), O(h, "allowCustomizedBuiltInElements") && typeof h.allowCustomizedBuiltInElements == "boolean" && (E.allowCustomizedBuiltInElements = h.allowCustomizedBuiltInElements), M(E), lt && (xi = !1), Zt && (vt = !0), _t && (v = k({}, qr), _ = It(null), _t.html === !0 && (k(v, Or), k(_, Ir)), _t.svg === !0 && (k(v, Di), k(_, Ri), k(_, si)), _t.svgFilters === !0 && (k(v, zi), k(_, Ri), k(_, si)), _t.mathMl === !0 && (k(v, Wi), k(_, Mr), k(_, si))), at.tagCheck = null, at.attributeCheck = null, O(o, "ADD_TAGS") && (typeof o.ADD_TAGS == "function" ? at.tagCheck = o.ADD_TAGS : ut(o.ADD_TAGS) && (v === rr && (v = U(v)), k(v, o.ADD_TAGS, F))), O(o, "ADD_ATTR") && (typeof o.ADD_ATTR == "function" ? at.attributeCheck = o.ADD_ATTR : ut(o.ADD_ATTR) && (_ === er && (_ = U(_)), k(_, o.ADD_ATTR, F))), O(o, "ADD_URI_SAFE_ATTR") && ut(o.ADD_URI_SAFE_ATTR) && k(Li, o.ADD_URI_SAFE_ATTR, F), O(o, "FORBID_CONTENTS") && ut(o.FORBID_CONTENTS) && (Q === Fi && (Q = U(Q)), k(Q, o.FORBID_CONTENTS, F)), O(o, "ADD_FORBID_CONTENTS") && ut(o.ADD_FORBID_CONTENTS) && (Q === Fi && (Q = U(Q)), k(Q, o.ADD_FORBID_CONTENTS, F)), Bi && (v["#text"] = !0), ft && k(v, [
1457
+ "html",
1458
+ "head",
1459
+ "body"
1460
+ ]), v.table && (k(v, ["tbody"]), delete Rt.tbody), o.TRUSTED_TYPES_POLICY) {
1461
+ if (typeof o.TRUSTED_TYPES_POLICY.createHTML != "function") throw kt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
1462
+ if (typeof o.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw kt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
1463
+ const C = G;
1464
+ G = o.TRUSTED_TYPES_POLICY;
1465
+ try {
1466
+ xt = Lt("");
1467
+ } catch (p) {
1468
+ throw G = C, p;
1469
+ }
1470
+ } else o.TRUSTED_TYPES_POLICY === null ? (G = void 0, xt = "") : (G === void 0 && (G = ne()), G && typeof xt == "string" && (xt = Lt("")));
1471
+ I && I(o), At = o;
1472
+ }, yr = k({}, [
1473
+ ...Di,
1474
+ ...zi,
1475
+ ...ho
1476
+ ]), xr = k({}, [...Wi, ...no]), Fe = function(o, h, C) {
1477
+ return h.namespaceURI === tt ? o === "svg" : h.namespaceURI === Qt ? o === "svg" && (C === "annotation-xml" || Ei[C]) : !!yr[o];
1478
+ }, Le = function(o, h, C) {
1479
+ return h.namespaceURI === tt ? o === "math" : h.namespaceURI === ti ? o === "math" && Ai[C] : !!xr[o];
1480
+ }, ve = function(o, h, C) {
1481
+ return h.namespaceURI === ti && !Ai[C] || h.namespaceURI === Qt && !Ei[C] ? !1 : !xr[o] && (ke[o] || !yr[o]);
1482
+ }, _e = function(o) {
1483
+ let h = yt(o);
1484
+ (!h || !h.tagName) && (h = {
1485
+ namespaceURI: Et,
1486
+ tagName: "template"
1487
+ });
1488
+ const C = $t(o.tagName), p = $t(h.tagName);
1489
+ return _i[o.namespaceURI] ? o.namespaceURI === ti ? Fe(C, h, p) : o.namespaceURI === Qt ? Le(C, h, p) : o.namespaceURI === tt ? ve(C, h, p) : !!(Pt === "application/xhtml+xml" && _i[o.namespaceURI]) : !1;
1490
+ }, nt = function(o) {
1491
+ qt(i.removed, { element: o });
1492
+ try {
1493
+ yt(o).removeChild(o);
1494
+ } catch {
1495
+ if (mt(o), !yt(o)) throw kt("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
1496
+ }
1497
+ }, ii = function(o) {
1498
+ Oi(o);
1499
+ const h = Z(o);
1500
+ if (h) {
1501
+ const p = [];
1502
+ Ot(h, (f) => {
1503
+ qt(p, f);
1504
+ }), Ot(p, (f) => {
1505
+ try {
1506
+ mt(f);
1507
+ } catch {
1508
+ }
1509
+ });
1510
+ }
1511
+ const C = pi(o);
1512
+ if (C) for (let p = C.length - 1; p >= 0; --p) {
1513
+ const f = C[p], x = f && f.name;
1514
+ if (typeof x == "string") try {
1515
+ o.removeAttribute(x);
1516
+ } catch {
1517
+ }
1518
+ }
1519
+ }, Tt = function(o, h) {
1520
+ try {
1521
+ qt(i.removed, {
1522
+ attribute: h.getAttributeNode(o),
1523
+ from: h
1524
+ });
1525
+ } catch {
1526
+ qt(i.removed, {
1527
+ attribute: null,
1528
+ from: h
1529
+ });
1530
+ }
1531
+ if (h.removeAttribute(o), o === "is") if (vt || Zt) try {
1532
+ nt(h);
1533
+ } catch {
1534
+ }
1535
+ else try {
1536
+ h.setAttribute(o, "");
1537
+ } catch {
1538
+ }
1539
+ }, Ee = function(o) {
1540
+ const h = pi(o);
1541
+ if (h)
1542
+ for (let C = h.length - 1; C >= 0; --C) {
1543
+ const p = h[C], f = p && p.name;
1544
+ if (!(typeof f != "string" || _[F(f)]))
1545
+ try {
1546
+ o.removeAttribute(f);
1547
+ } catch {
1548
+ }
1549
+ }
1550
+ }, Oi = function(o) {
1551
+ const h = [o];
1552
+ for (; h.length > 0; ) {
1553
+ const C = h.pop();
1554
+ (N ? N(C) : C.nodeType) === V.element && Ee(C);
1555
+ const p = Z(C);
1556
+ if (p) for (let f = p.length - 1; f >= 0; --f) h.push(p[f]);
1557
+ }
1558
+ }, Ae = function(o) {
1559
+ if (!ht) return;
1560
+ const h = [o];
1561
+ for (; h.length > 0; ) {
1562
+ const C = h.pop(), p = N ? N(C) : C.nodeType;
1563
+ if (p === V.processingInstruction || p === V.comment && w(Wr, C.data)) {
1564
+ try {
1565
+ mt(C);
1566
+ } catch {
1567
+ }
1568
+ continue;
1569
+ }
1570
+ if (p === V.element) {
1571
+ const x = C, b = F(J ? J(C) : C.nodeName);
1572
+ try {
1573
+ x.hasAttribute && x.hasAttribute("patchsrc") && x.removeAttribute("patchsrc"), x.hasAttribute && x.hasAttribute("for") && b !== "label" && b !== "output" && x.removeAttribute("for");
1574
+ } catch {
1575
+ }
1576
+ }
1577
+ const f = Z(C);
1578
+ if (f) for (let x = f.length - 1; x >= 0; --x) h.push(f[x]);
1579
+ }
1580
+ }, fr = function(o) {
1581
+ let h = null, C = null;
1582
+ if (bi) o = "<remove></remove>" + o;
1583
+ else {
1584
+ const x = _r(o, /^[\r\n\t ]+/);
1585
+ C = x && x[0];
1586
+ }
1587
+ Pt === "application/xhtml+xml" && Et === tt && (o = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + o + "</body></html>");
1588
+ const p = G ? Lt(o) : o;
1589
+ if (Et === tt) try {
1590
+ h = new D().parseFromString(p, Pt);
1591
+ } catch {
1592
+ }
1593
+ if (!h || !h.documentElement) {
1594
+ h = yi.createDocument(Et, "template", null);
1595
+ try {
1596
+ h.documentElement.innerHTML = vi ? xt : p;
1597
+ } catch {
1598
+ }
1599
+ }
1600
+ const f = h.body || h.documentElement;
1601
+ return o && C && f.insertBefore(e.createTextNode(C), f.childNodes[0] || null), Et === tt ? de.call(h, ft ? "html" : "body")[0] : ft ? h.documentElement : f;
1602
+ }, Tr = function(o) {
1603
+ return Qi.call(o.ownerDocument || o, o, S.SHOW_ELEMENT | S.SHOW_COMMENT | S.SHOW_TEXT | S.SHOW_PROCESSING_INSTRUCTION | S.SHOW_CDATA_SECTION, null);
1604
+ }, ri = function(o) {
1605
+ return o = Ht(o, ge, " "), o = Ht(o, ue, " "), o = Ht(o, pe, " "), o;
1606
+ }, qi = function(o) {
1607
+ var h;
1608
+ o.normalize();
1609
+ const C = Qi.call(o.ownerDocument || o, o, S.SHOW_TEXT | S.SHOW_COMMENT | S.SHOW_CDATA_SECTION | S.SHOW_PROCESSING_INSTRUCTION, null);
1610
+ let p = C.nextNode();
1611
+ for (; p; )
1612
+ p.data = ri(p.data), p = C.nextNode();
1613
+ const f = (h = o.querySelectorAll) === null || h === void 0 ? void 0 : h.call(o, "template");
1614
+ f && Ot(f, (x) => {
1615
+ wt(x.content) && qi(x.content);
1616
+ });
1617
+ }, ei = function(o) {
1618
+ const h = J ? J(o) : null;
1619
+ return typeof h != "string" || F(h) !== "form" ? !1 : typeof o.nodeName != "string" || typeof o.textContent != "string" || typeof o.removeChild != "function" || o.attributes !== pi(o) || typeof o.removeAttribute != "function" || typeof o.setAttribute != "function" || typeof o.namespaceURI != "string" || typeof o.insertBefore != "function" || typeof o.hasChildNodes != "function" || o.nodeType !== N(o) || o.childNodes !== Z(o);
1620
+ }, wt = function(o) {
1621
+ if (!N || typeof o != "object" || o === null) return !1;
1622
+ try {
1623
+ return N(o) === V.documentFragment;
1624
+ } catch {
1625
+ return !1;
1626
+ }
1627
+ }, Nt = function(o) {
1628
+ if (!N || typeof o != "object" || o === null) return !1;
1629
+ try {
1630
+ return typeof N(o) == "number";
1631
+ } catch {
1632
+ return !1;
1633
+ }
1634
+ };
1635
+ function it(g, o, h) {
1636
+ g.length !== 0 && Ot(g, (C) => {
1637
+ C.call(i, o, h, At);
1638
+ });
1639
+ }
1640
+ const we = function(o, h) {
1641
+ return !!(ht && o.hasChildNodes() && !Nt(o.firstElementChild) && w(zr, o.textContent) && w(zr, o.innerHTML) || ht && o.namespaceURI === tt && h === "style" && Nt(o.firstElementChild) || o.nodeType === V.processingInstruction || ht && o.nodeType === V.comment && w(Wr, o.data));
1642
+ }, Oe = function(o, h) {
1643
+ if (!Rt[h] && Br(h) && (E.tagNameCheck instanceof RegExp && w(E.tagNameCheck, h) || E.tagNameCheck instanceof Function && E.tagNameCheck(h)))
1644
+ return !1;
1645
+ if (Bi && !Q[h]) {
1646
+ const C = yt(o), p = Z(o);
1647
+ if (p && C) {
1648
+ const f = p.length;
1649
+ for (let x = f - 1; x >= 0; --x) {
1650
+ const b = Si ? p[x] : St(p[x], !0);
1651
+ C.insertBefore(b, Ft(o));
1652
+ }
1653
+ }
1654
+ }
1655
+ return nt(o), !0;
1656
+ }, kr = function(o, h) {
1657
+ if (it(L.beforeSanitizeElements, o, null), o !== h && yt(o) === null) return !0;
1658
+ if (ei(o))
1659
+ return nt(o), !0;
1660
+ const C = F(J ? J(o) : o.nodeName);
1661
+ if (it(L.uponSanitizeElement, o, {
1662
+ tagName: C,
1663
+ allowedTags: v
1664
+ }), o !== h && yt(o) === null) return !0;
1665
+ if (we(o, C))
1666
+ return nt(o), !0;
1667
+ if (Rt[C] || !(at.tagCheck instanceof Function && at.tagCheck(C)) && !v[C]) {
1668
+ const p = Oe(o, C);
1669
+ return p === !1 && it(L.afterSanitizeElements, o, null), p;
1670
+ }
1671
+ if ((N ? N(o) : o.nodeType) === V.element && !_e(o) || (C === "noscript" || C === "noembed" || C === "noframes") && w(To, o.innerHTML))
1672
+ return nt(o), !0;
1673
+ if (lt && o.nodeType === V.text) {
1674
+ const p = ri(o.textContent);
1675
+ o.textContent !== p && (qt(i.removed, { element: o.cloneNode() }), o.textContent = p);
1676
+ }
1677
+ return it(L.afterSanitizeElements, o, null), !1;
1678
+ }, br = function(o, h, C) {
1679
+ if (or[h] || ht && h === "patchsrc" || ht && h === "for" && o !== "label" && o !== "output" || hr && (h === "id" || h === "name") && (C in e || C in Se)) return !1;
1680
+ const p = _[h] || at.attributeCheck instanceof Function && at.attributeCheck(h, o);
1681
+ if (!(xi && w(me, h))) {
1682
+ if (!(sr && w(ye, h))) {
1683
+ if (p) {
1684
+ if (!Li[h]) {
1685
+ if (!w(ir, Ht(C, tr, ""))) {
1686
+ if (!((h === "src" || h === "xlink:href" || h === "href") && o !== "script" && Er(C, "data:") === 0 && dr[o])) {
1687
+ if (!(ar && !w(xe, Ht(C, tr, "")))) {
1688
+ if (C) return !1;
1689
+ }
1690
+ }
1691
+ }
1692
+ }
1693
+ } else if (!(Br(o) && (E.tagNameCheck instanceof RegExp && w(E.tagNameCheck, o) || E.tagNameCheck instanceof Function && E.tagNameCheck(o)) && (E.attributeNameCheck instanceof RegExp && w(E.attributeNameCheck, h) || E.attributeNameCheck instanceof Function && E.attributeNameCheck(h, o)) || h === "is" && E.allowCustomizedBuiltInElements && (E.tagNameCheck instanceof RegExp && w(E.tagNameCheck, C) || E.tagNameCheck instanceof Function && E.tagNameCheck(C)))) return !1;
1694
+ }
1695
+ }
1696
+ return !0;
1697
+ }, qe = k({}, [
1698
+ "annotation-xml",
1699
+ "color-profile",
1700
+ "font-face",
1701
+ "font-face-format",
1702
+ "font-face-name",
1703
+ "font-face-src",
1704
+ "font-face-uri",
1705
+ "missing-glyph"
1706
+ ]), Br = function(o) {
1707
+ return !qe[$t(o)] && w(fe, o);
1708
+ }, Ie = function(o, h, C, p) {
1709
+ if (G && typeof z == "object" && typeof z.getAttributeType == "function" && !C) switch (z.getAttributeType(o, h)) {
1710
+ case "TrustedHTML":
1711
+ return Lt(p);
1712
+ case "TrustedScriptURL":
1713
+ return he(p);
1714
+ }
1715
+ return p;
1716
+ }, Me = function(o, h, C, p) {
1717
+ try {
1718
+ C ? o.setAttributeNS(C, h, p) : o.setAttribute(h, p), ei(o) ? nt(o) : vr(i.removed);
1719
+ } catch {
1720
+ Tt(h, o);
1721
+ }
1722
+ }, Sr = function(o) {
1723
+ it(L.beforeSanitizeAttributes, o, null);
1724
+ const h = o.attributes;
1725
+ if (!h || ei(o)) return;
1726
+ const C = {
1727
+ attrName: "",
1728
+ attrValue: "",
1729
+ keepAttr: !0,
1730
+ allowedAttributes: _,
1731
+ forceKeepAttr: void 0
1732
+ };
1733
+ let p = h.length;
1734
+ const f = F(o.nodeName);
1735
+ for (; p--; ) {
1736
+ const x = h[p], b = x.name, ct = x.namespaceURI, dt = x.value, $ = F(b), X = dt;
1737
+ let H = b === "value" ? X : io(X);
1738
+ if (C.attrName = $, C.attrValue = H, C.keepAttr = !0, C.forceKeepAttr = void 0, it(L.uponSanitizeAttribute, o, C), H = C.attrValue, nr && ($ === "id" || $ === "name") && Er(H, cr) !== 0 && (Tt(b, o), H = cr + H), ht && w(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, H)) {
1739
+ Tt(b, o);
1740
+ continue;
1741
+ }
1742
+ if ($ === "attributename" && _r(H, "href")) {
1743
+ Tt(b, o);
1744
+ continue;
1745
+ }
1746
+ if (!C.forceKeepAttr) {
1747
+ if (!C.keepAttr) {
1748
+ Tt(b, o);
1749
+ continue;
1750
+ }
1751
+ if (!lr && w(ko, H)) {
1752
+ Tt(b, o);
1753
+ continue;
1754
+ }
1755
+ if (lt && (H = ri(H)), !br(f, $, H)) {
1756
+ Tt(b, o);
1757
+ continue;
1758
+ }
1759
+ H = Ie(f, $, ct, H), H !== X && Me(o, b, ct, H);
1760
+ }
1761
+ }
1762
+ it(L.afterSanitizeAttributes, o, null);
1763
+ }, oi = function(o) {
1764
+ let h = null;
1765
+ const C = Tr(o);
1766
+ for (it(L.beforeSanitizeShadowDOM, o, null); h = C.nextNode(); )
1767
+ if (it(L.uponSanitizeShadowNode, h, null), kr(h, o), Sr(h), wt(h.content) && oi(h.content), (N ? N(h) : h.nodeType) === V.element) {
1768
+ const p = Ki(h);
1769
+ wt(p) && (Ii(p), oi(p));
1770
+ }
1771
+ it(L.afterSanitizeShadowDOM, o, null);
1772
+ }, Ii = function(o) {
1773
+ const h = [{
1774
+ node: o,
1775
+ shadow: null
1776
+ }];
1777
+ for (; h.length > 0; ) {
1778
+ const C = h.pop();
1779
+ if (C.shadow) {
1780
+ oi(C.shadow);
1781
+ continue;
1782
+ }
1783
+ const p = C.node, f = (N ? N(p) : p.nodeType) === V.element, x = Z(p);
1784
+ if (x) for (let b = x.length - 1; b >= 0; --b) h.push({
1785
+ node: x[b],
1786
+ shadow: null
1787
+ });
1788
+ if (f) {
1789
+ const b = J ? J(p) : null;
1790
+ if (typeof b == "string" && F(b) === "template") {
1791
+ const ct = p.content;
1792
+ wt(ct) && h.push({
1793
+ node: ct,
1794
+ shadow: null
1795
+ });
1796
+ }
1797
+ }
1798
+ if (f) {
1799
+ const b = Ki(p);
1800
+ wt(b) && h.push({
1801
+ node: null,
1802
+ shadow: b
1803
+ }, {
1804
+ node: b,
1805
+ shadow: null
1806
+ });
1807
+ }
1808
+ }
1809
+ };
1810
+ return i.sanitize = function(g) {
1811
+ let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, h = null, C = null, p = null, f = null;
1812
+ if (vi = !g, vi && (g = "<!-->"), typeof g != "string" && !Nt(g) && (g = ao(g), typeof g != "string"))
1813
+ throw kt("dirty is not a string, aborting");
1814
+ if (!i.isSupported) return g;
1815
+ fi ? (v = Ti, _ = ki) : wi(o), (L.uponSanitizeElement.length > 0 || L.uponSanitizeAttribute.length > 0) && (v = U(v)), L.uponSanitizeAttribute.length > 0 && (_ = U(_)), i.removed = [];
1816
+ const x = Si && typeof g != "string" && Nt(g);
1817
+ if (x) {
1818
+ Ae(g);
1819
+ const $ = J ? J(g) : g.nodeName;
1820
+ if (typeof $ == "string") {
1821
+ const X = F($);
1822
+ if (!v[X] || Rt[X])
1823
+ throw ii(g), kt("root node is forbidden and cannot be sanitized in-place");
1824
+ }
1825
+ if (ei(g))
1826
+ throw ii(g), kt("root node is clobbered and cannot be sanitized in-place");
1827
+ try {
1828
+ Ii(g);
1829
+ } catch (X) {
1830
+ throw ii(g), X;
1831
+ }
1832
+ } else if (Nt(g))
1833
+ h = fr("<!---->"), C = h.ownerDocument.importNode(g, !0), C.nodeType === V.element && C.nodeName === "BODY" || C.nodeName === "HTML" ? h = C : h.appendChild(C), Ii(C);
1834
+ else {
1835
+ if (!vt && !lt && !ft && g.indexOf("<") === -1) return G && Jt ? Lt(g) : g;
1836
+ if (h = fr(g), !h) return vt ? null : Jt ? xt : "";
1837
+ }
1838
+ h && bi && nt(h.firstChild);
1839
+ const b = x ? g : h, ct = Tr(b);
1840
+ try {
1841
+ for (; p = ct.nextNode(); )
1842
+ kr(p, b), Sr(p), wt(p.content) && oi(p.content);
1843
+ } catch ($) {
1844
+ throw x && (ii(g), Ot(i.removed, (X) => {
1845
+ X.element && Oi(X.element);
1846
+ })), $;
1847
+ }
1848
+ if (x)
1849
+ return Ot(i.removed, ($) => {
1850
+ $.element && Oi($.element);
1851
+ }), lt && qi(g), g;
1852
+ if (vt) {
1853
+ if (lt && qi(h), Zt)
1854
+ for (f = ce.call(h.ownerDocument); h.firstChild; ) f.appendChild(h.firstChild);
1855
+ else f = h;
1856
+ return (_.shadowroot || _.shadowrootmode) && (f = Ce.call(l, f, !0)), f;
1857
+ }
1858
+ let dt = ft ? h.outerHTML : h.innerHTML;
1859
+ return ft && v["!doctype"] && h.ownerDocument && h.ownerDocument.doctype && h.ownerDocument.doctype.name && w(xo, h.ownerDocument.doctype.name) && (dt = "<!DOCTYPE " + h.ownerDocument.doctype.name + `>
1860
+ ` + dt), lt && (dt = ri(dt)), G && Jt ? Lt(dt) : dt;
1861
+ }, i.setConfig = function() {
1862
+ let g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1863
+ wi(g), fi = !0, Ti = v, ki = _;
1864
+ }, i.clearConfig = function() {
1865
+ At = null, fi = !1, Ti = null, ki = null, G = mi, xt = "";
1866
+ }, i.isValidAttribute = function(g, o, h) {
1867
+ At || wi({});
1868
+ const C = F(g), p = F(o);
1869
+ return br(C, p, h);
1870
+ }, i.addHook = function(g, o) {
1871
+ typeof o == "function" && O(L, g) && qt(L[g], o);
1872
+ }, i.removeHook = function(g, o) {
1873
+ if (O(L, g)) {
1874
+ if (o !== void 0) {
1875
+ const h = Qe(L[g], o);
1876
+ return h === -1 ? void 0 : to(L[g], h, 1)[0];
1877
+ }
1878
+ return vr(L[g]);
1879
+ }
1880
+ }, i.removeHooks = function(g) {
1881
+ O(L, g) && (L[g] = []);
1882
+ }, i.removeAllHooks = function() {
1883
+ L = Rr();
1884
+ }, i;
1885
+ }
1886
+ var Yt = Xr(), Hi = /* @__PURE__ */ d((t, i, { depth: e = 2, clobber: l = !1 } = {}) => {
1887
+ const s = {
1888
+ depth: e,
1889
+ clobber: l
1890
+ };
1891
+ return Array.isArray(i) && !Array.isArray(t) ? (i.forEach((u) => Hi(t, u, s)), t) : Array.isArray(i) && Array.isArray(t) ? (i.forEach((u) => {
1892
+ t.includes(u) || t.push(u);
1893
+ }), t) : t === void 0 || e <= 0 ? t != null && typeof t == "object" && typeof i == "object" ? Object.assign(t, i) : i : (i !== void 0 && typeof t == "object" && typeof i == "object" && Object.keys(i).forEach((u) => {
1894
+ typeof i[u] == "object" && i[u] !== null && (t[u] === void 0 || typeof t[u] == "object") ? (t[u] === void 0 && (t[u] = Array.isArray(i[u]) ? [] : {}), t[u] = Hi(t[u], i[u], {
1895
+ depth: e - 1,
1896
+ clobber: l
1897
+ })) : (l || typeof t[u] != "object" && typeof i[u] != "object") && (t[u] = i[u]);
1898
+ }), t);
1899
+ }, "assignWithDepth"), P = Hi, ot = "#ffffff", st = "#f2f2f2", m = /* @__PURE__ */ d((t, i) => i ? r(t, {
1900
+ s: -40,
1901
+ l: 10
1902
+ }) : r(t, {
1903
+ s: -40,
1904
+ l: -10
1905
+ }), "mkBorder"), So = class {
1906
+ static {
1907
+ d(this, "Theme");
1908
+ }
1909
+ constructor() {
1910
+ 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))";
1911
+ }
1912
+ updateColors() {
1913
+ if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || r(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || r(this.primaryColor, {
1914
+ h: 180,
1915
+ l: 5
1916
+ }), this.primaryBorderColor = this.primaryBorderColor || m(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || m(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || m(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || m(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || a(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || a(this.tertiaryColor), this.lineColor = this.lineColor || a(this.background), this.arrowheadColor = this.arrowheadColor || a(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 ? c(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 || c(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || a(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 || n(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 || c(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || c(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || n(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || n(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 || r(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || r(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || r(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || r(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || r(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || r(this.primaryColor, {
1917
+ h: 210,
1918
+ l: 150
1919
+ }), this.cScale9 = this.cScale9 || r(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || r(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || r(this.primaryColor, { h: 330 }), this.darkMode) for (let i = 0; i < this.THEME_COLOR_LIMIT; i++) this["cScale" + i] = c(this["cScale" + i], 75);
1920
+ else for (let i = 0; i < this.THEME_COLOR_LIMIT; i++) this["cScale" + i] = c(this["cScale" + i], 25);
1921
+ for (let i = 0; i < this.THEME_COLOR_LIMIT; i++) this["cScaleInv" + i] = this["cScaleInv" + i] || a(this["cScale" + i]);
1922
+ for (let i = 0; i < this.THEME_COLOR_LIMIT; i++) this.darkMode ? this["cScalePeer" + i] = this["cScalePeer" + i] || n(this["cScale" + i], 10) : this["cScalePeer" + i] = this["cScalePeer" + i] || c(this["cScale" + i], 10);
1923
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1924
+ for (let i = 0; i < this.THEME_COLOR_LIMIT; i++) this["cScaleLabel" + i] = this["cScaleLabel" + i] || this.scaleLabelColor;
1925
+ const t = this.darkMode ? -4 : -1;
1926
+ for (let i = 0; i < 5; i++)
1927
+ this["surface" + i] = this["surface" + i] || r(this.mainBkg, {
1928
+ h: 180,
1929
+ s: -15,
1930
+ l: t * (5 + i * 3)
1931
+ }), this["surfacePeer" + i] = this["surfacePeer" + i] || r(this.mainBkg, {
1932
+ h: 180,
1933
+ s: -15,
1934
+ l: t * (8 + i * 3)
1935
+ });
1936
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || r(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || r(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || r(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || r(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || r(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || r(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 || r(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || r(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || r(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || r(this.primaryColor, {
1937
+ h: 60,
1938
+ l: -10
1939
+ }), this.pie8 = this.pie8 || r(this.primaryColor, {
1940
+ h: -60,
1941
+ l: -10
1942
+ }), this.pie9 = this.pie9 || r(this.primaryColor, {
1943
+ h: 120,
1944
+ l: 0
1945
+ }), this.pie10 = this.pie10 || r(this.primaryColor, {
1946
+ h: 60,
1947
+ l: -20
1948
+ }), this.pie11 = this.pie11 || r(this.primaryColor, {
1949
+ h: -60,
1950
+ l: -20
1951
+ }), this.pie12 = this.pie12 || r(this.primaryColor, {
1952
+ h: 120,
1953
+ l: -10
1954
+ }), 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 ?? r(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? r(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? r(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? r(this.primaryColor, {
1955
+ h: 60,
1956
+ l: -30
1957
+ }), this.venn5 = this.venn5 ?? r(this.primaryColor, {
1958
+ h: -60,
1959
+ l: -30
1960
+ }), this.venn6 = this.venn6 ?? r(this.secondaryColor, {
1961
+ h: 60,
1962
+ l: -30
1963
+ }), this.venn7 = this.venn7 ?? r(this.primaryColor, {
1964
+ h: 120,
1965
+ l: -30
1966
+ }), this.venn8 = this.venn8 ?? r(this.secondaryColor, {
1967
+ h: 120,
1968
+ l: -30
1969
+ }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
1970
+ domainFontSize: this.cynefin?.domainFontSize || 16,
1971
+ itemFontSize: this.cynefin?.itemFontSize || 12,
1972
+ boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
1973
+ boundaryWidth: this.cynefin?.boundaryWidth || 2,
1974
+ cliffColor: this.cynefin?.cliffColor || "#8B0000",
1975
+ cliffWidth: this.cynefin?.cliffWidth || 4,
1976
+ arrowColor: this.cynefin?.arrowColor || this.lineColor,
1977
+ arrowWidth: this.cynefin?.arrowWidth || 2,
1978
+ complexBg: this.cynefin?.complexBg || "#E8F5E9",
1979
+ complicatedBg: this.cynefin?.complicatedBg || "#E3F2FD",
1980
+ chaoticBg: this.cynefin?.chaoticBg || "#FBE9E7",
1981
+ clearBg: this.cynefin?.clearBg || "#FFF8E1",
1982
+ confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
1983
+ textColor: this.cynefin?.textColor || this.textColor,
1984
+ labelColor: this.cynefin?.labelColor || this.primaryTextColor
1985
+ }, this.radar = {
1986
+ axisColor: this.radar?.axisColor || this.lineColor,
1987
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1988
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1989
+ curveOpacity: this.radar?.curveOpacity || 0.5,
1990
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1991
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1992
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1993
+ graticuleOpacity: this.radar?.graticuleOpacity || 0.3,
1994
+ legendBoxSize: this.radar?.legendBoxSize || 12,
1995
+ legendFontSize: this.radar?.legendFontSize || 12
1996
+ }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
1997
+ backgroundColor: this.wardley?.backgroundColor || this.background,
1998
+ axisColor: this.wardley?.axisColor || this.lineColor,
1999
+ axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
2000
+ gridColor: this.wardley?.gridColor || this.gridColor,
2001
+ componentFill: this.wardley?.componentFill || this.background,
2002
+ componentStroke: this.wardley?.componentStroke || this.lineColor,
2003
+ componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
2004
+ linkStroke: this.wardley?.linkStroke || this.lineColor,
2005
+ evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
2006
+ annotationStroke: this.wardley?.annotationStroke || this.lineColor,
2007
+ annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
2008
+ annotationFill: this.wardley?.annotationFill || this.background
2009
+ }, 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 || r(this.primaryColor, {
2010
+ r: 5,
2011
+ g: 5,
2012
+ b: 5
2013
+ }), this.quadrant3Fill = this.quadrant3Fill || r(this.primaryColor, {
2014
+ r: 10,
2015
+ g: 10,
2016
+ b: 10
2017
+ }), this.quadrant4Fill = this.quadrant4Fill || r(this.primaryColor, {
2018
+ r: 15,
2019
+ g: 15,
2020
+ b: 15
2021
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || r(this.primaryTextColor, {
2022
+ r: -5,
2023
+ g: -5,
2024
+ b: -5
2025
+ }), this.quadrant3TextFill = this.quadrant3TextFill || r(this.primaryTextColor, {
2026
+ r: -10,
2027
+ g: -10,
2028
+ b: -10
2029
+ }), this.quadrant4TextFill = this.quadrant4TextFill || r(this.primaryTextColor, {
2030
+ r: -15,
2031
+ g: -15,
2032
+ b: -15
2033
+ }), this.quadrantPointFill = this.quadrantPointFill || K(this.quadrant1Fill) ? n(this.quadrant1Fill) : c(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 = {
2034
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2035
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2036
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
2037
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2038
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2039
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2040
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2041
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2042
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2043
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2044
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2045
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2046
+ }, 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 ? c(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 || r(this.primaryColor, { h: -30 }), this.git4 = this.git4 || r(this.primaryColor, { h: -60 }), this.git5 = this.git5 || r(this.primaryColor, { h: -90 }), this.git6 = this.git6 || r(this.primaryColor, { h: 60 }), this.git7 = this.git7 || r(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = n(this.git0, 25), this.git1 = n(this.git1, 25), this.git2 = n(this.git2, 25), this.git3 = n(this.git3, 25), this.git4 = n(this.git4, 25), this.git5 = n(this.git5, 25), this.git6 = n(this.git6, 25), this.git7 = n(this.git7, 25)) : (this.git0 = c(this.git0, 25), this.git1 = c(this.git1, 25), this.git2 = c(this.git2, 25), this.git3 = c(this.git3, 25), this.git4 = c(this.git4, 25), this.git5 = c(this.git5, 25), this.git6 = c(this.git6, 25), this.git7 = c(this.git7, 25)), this.gitInv0 = this.gitInv0 || a(this.git0), this.gitInv1 = this.gitInv1 || a(this.git1), this.gitInv2 = this.gitInv2 || a(this.git2), this.gitInv3 = this.gitInv3 || a(this.git3), this.gitInv4 = this.gitInv4 || a(this.git4), this.gitInv5 = this.gitInv5 || a(this.git5), this.gitInv6 = this.gitInv6 || a(this.git6), this.gitInv7 = this.gitInv7 || a(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 || ot, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || st, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
2047
+ }
2048
+ calculate(t) {
2049
+ if (typeof t != "object") {
2050
+ this.updateColors();
2051
+ return;
2052
+ }
2053
+ const i = Object.keys(t);
2054
+ i.forEach((e) => {
2055
+ this[e] = t[e];
2056
+ }), this.updateColors(), i.forEach((e) => {
2057
+ this[e] = t[e];
2058
+ });
2059
+ }
2060
+ }, Fo = /* @__PURE__ */ d((t) => {
2061
+ const i = new So();
2062
+ return i.calculate(t), i;
2063
+ }, "getThemeVariables"), Lo = class {
2064
+ static {
2065
+ d(this, "Theme");
2066
+ }
2067
+ constructor() {
2068
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = n(this.primaryColor, 16), this.tertiaryColor = r(this.primaryColor, { h: -160 }), this.primaryBorderColor = a(this.background), this.secondaryBorderColor = m(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = m(this.tertiaryColor, this.darkMode), this.primaryTextColor = a(this.primaryColor), this.secondaryTextColor = a(this.secondaryColor), this.tertiaryTextColor = a(this.tertiaryColor), this.lineColor = a(this.background), this.textColor = a(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = n(a("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = pt(255, 255, 255, 0.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 = c("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = c(this.sectionBkgColor, 10), this.taskBorderColor = pt(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = pt(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 || n(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || c(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";
2069
+ }
2070
+ updateColors() {
2071
+ this.secondBkg = n(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 = n(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 = n(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 = a(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 = r(this.primaryColor, { h: 64 }), this.fillType3 = r(this.secondaryColor, { h: 64 }), this.fillType4 = r(this.primaryColor, { h: -64 }), this.fillType5 = r(this.secondaryColor, { h: -64 }), this.fillType6 = r(this.primaryColor, { h: 128 }), this.fillType7 = r(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 || r(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || r(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || r(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || r(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || r(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || r(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || r(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || r(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || r(this.primaryColor, { h: 330 });
2072
+ for (let t = 0; t < this.THEME_COLOR_LIMIT; t++) this["cScaleInv" + t] = this["cScaleInv" + t] || a(this["cScale" + t]);
2073
+ for (let t = 0; t < this.THEME_COLOR_LIMIT; t++) this["cScalePeer" + t] = this["cScalePeer" + t] || n(this["cScale" + t], 10);
2074
+ for (let t = 0; t < 5; t++)
2075
+ this["surface" + t] = this["surface" + t] || r(this.mainBkg, {
2076
+ h: 30,
2077
+ s: -30,
2078
+ l: -(-10 + t * 4)
2079
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || r(this.mainBkg, {
2080
+ h: 30,
2081
+ s: -30,
2082
+ l: -(-7 + t * 4)
2083
+ });
2084
+ this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor);
2085
+ for (let t = 0; t < this.THEME_COLOR_LIMIT; t++) this["cScaleLabel" + t] = this["cScaleLabel" + t] || this.scaleLabelColor;
2086
+ for (let t = 0; t < this.THEME_COLOR_LIMIT; t++) this["pie" + t] = this["cScale" + t];
2087
+ 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";
2088
+ for (let t = 0; t < 8; t++) this["venn" + (t + 1)] = this["venn" + (t + 1)] ?? n(this["cScale" + t], 30);
2089
+ this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
2090
+ domainFontSize: this.cynefin?.domainFontSize || 16,
2091
+ itemFontSize: this.cynefin?.itemFontSize || 12,
2092
+ boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
2093
+ boundaryWidth: this.cynefin?.boundaryWidth || 2,
2094
+ cliffColor: this.cynefin?.cliffColor || "#FF6B6B",
2095
+ cliffWidth: this.cynefin?.cliffWidth || 4,
2096
+ arrowColor: this.cynefin?.arrowColor || this.lineColor,
2097
+ arrowWidth: this.cynefin?.arrowWidth || 2,
2098
+ complexBg: this.cynefin?.complexBg || "#1B5E20",
2099
+ complicatedBg: this.cynefin?.complicatedBg || "#0D47A1",
2100
+ chaoticBg: this.cynefin?.chaoticBg || "#BF360C",
2101
+ clearBg: this.cynefin?.clearBg || "#F57F17",
2102
+ confusionBg: this.cynefin?.confusionBg || "#4A148C",
2103
+ textColor: this.cynefin?.textColor || this.textColor,
2104
+ labelColor: this.cynefin?.labelColor || this.primaryTextColor
2105
+ }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || r(this.primaryColor, {
2106
+ r: 5,
2107
+ g: 5,
2108
+ b: 5
2109
+ }), this.quadrant3Fill = this.quadrant3Fill || r(this.primaryColor, {
2110
+ r: 10,
2111
+ g: 10,
2112
+ b: 10
2113
+ }), this.quadrant4Fill = this.quadrant4Fill || r(this.primaryColor, {
2114
+ r: 15,
2115
+ g: 15,
2116
+ b: 15
2117
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || r(this.primaryTextColor, {
2118
+ r: -5,
2119
+ g: -5,
2120
+ b: -5
2121
+ }), this.quadrant3TextFill = this.quadrant3TextFill || r(this.primaryTextColor, {
2122
+ r: -10,
2123
+ g: -10,
2124
+ b: -10
2125
+ }), this.quadrant4TextFill = this.quadrant4TextFill || r(this.primaryTextColor, {
2126
+ r: -15,
2127
+ g: -15,
2128
+ b: -15
2129
+ }), this.quadrantPointFill = this.quadrantPointFill || K(this.quadrant1Fill) ? n(this.quadrant1Fill) : c(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 = {
2130
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2131
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2132
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
2133
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2134
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2135
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2136
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2137
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2138
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2139
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2140
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2141
+ plotColorPalette: this.xyChart?.plotColorPalette || "#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"
2142
+ }, this.packet = {
2143
+ startByteColor: this.primaryTextColor,
2144
+ endByteColor: this.primaryTextColor,
2145
+ labelColor: this.primaryTextColor,
2146
+ titleColor: this.primaryTextColor,
2147
+ blockStrokeColor: this.primaryTextColor,
2148
+ blockFillColor: this.background
2149
+ }, this.radar = {
2150
+ axisColor: this.radar?.axisColor || this.lineColor,
2151
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
2152
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
2153
+ curveOpacity: this.radar?.curveOpacity || 0.5,
2154
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
2155
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
2156
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
2157
+ graticuleOpacity: this.radar?.graticuleOpacity || 0.3,
2158
+ legendBoxSize: this.radar?.legendBoxSize || 12,
2159
+ legendFontSize: this.radar?.legendFontSize || 12
2160
+ }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#ff6b6b", this.wardley = {
2161
+ backgroundColor: this.wardley?.backgroundColor || this.background,
2162
+ axisColor: this.wardley?.axisColor || this.lineColor,
2163
+ axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
2164
+ gridColor: this.wardley?.gridColor || this.gridColor,
2165
+ componentFill: this.wardley?.componentFill || this.mainBkg,
2166
+ componentStroke: this.wardley?.componentStroke || this.lineColor,
2167
+ componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
2168
+ linkStroke: this.wardley?.linkStroke || this.lineColor,
2169
+ evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
2170
+ annotationStroke: this.wardley?.annotationStroke || this.lineColor,
2171
+ annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
2172
+ annotationFill: this.wardley?.annotationFill || this.mainBkg
2173
+ }, 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 ? c(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = n(this.secondaryColor, 20), this.git1 = n(this.pie2 || this.secondaryColor, 20), this.git2 = n(this.pie3 || this.tertiaryColor, 20), this.git3 = n(this.pie4 || r(this.primaryColor, { h: -30 }), 20), this.git4 = n(this.pie5 || r(this.primaryColor, { h: -60 }), 20), this.git5 = n(this.pie6 || r(this.primaryColor, { h: -90 }), 10), this.git6 = n(this.pie7 || r(this.primaryColor, { h: 60 }), 10), this.git7 = n(this.pie8 || r(this.primaryColor, { h: 120 }), 20), this.gitInv0 = this.gitInv0 || a(this.git0), this.gitInv1 = this.gitInv1 || a(this.git1), this.gitInv2 = this.gitInv2 || a(this.git2), this.gitInv3 = this.gitInv3 || a(this.git3), this.gitInv4 = this.gitInv4 || a(this.git4), this.gitInv5 = this.gitInv5 || a(this.git5), this.gitInv6 = this.gitInv6 || a(this.git6), this.gitInv7 = this.gitInv7 || a(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || a(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || a(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 || n("#5a3d5c", 10), this.emProcessorStroke = this.emProcessorStroke || "#8a6d8c", this.emReadModelFill = this.emReadModelFill || n("#3d5a2d", 10), this.emReadModelStroke = this.emReadModelStroke || "#6d8c5c", this.emCommandFill = this.emCommandFill || n("#2d3d5a", 10), this.emCommandStroke = this.emCommandStroke || "#5c6d8c", this.emEventFill = this.emEventFill || n("#5a452d", 10), this.emEventStroke = this.emEventStroke || "#8c755c", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || n(this.background, 5), this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || n(this.background, 12), this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || n(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || n(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
2174
+ }
2175
+ calculate(t) {
2176
+ if (typeof t != "object") {
2177
+ this.updateColors();
2178
+ return;
2179
+ }
2180
+ const i = Object.keys(t);
2181
+ i.forEach((e) => {
2182
+ this[e] = t[e];
2183
+ }), this.updateColors(), i.forEach((e) => {
2184
+ this[e] = t[e];
2185
+ });
2186
+ }
2187
+ }, vo = /* @__PURE__ */ d((t) => {
2188
+ const i = new Lo();
2189
+ return i.calculate(t), i;
2190
+ }, "getThemeVariables"), _o = class {
2191
+ static {
2192
+ d(this, "Theme");
2193
+ }
2194
+ constructor() {
2195
+ this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = r(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = r(this.primaryColor, { h: -160 }), this.primaryBorderColor = m(this.primaryColor, this.darkMode), this.secondaryBorderColor = m(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = m(this.tertiaryColor, this.darkMode), this.primaryTextColor = a(this.primaryColor), this.secondaryTextColor = a(this.secondaryColor), this.tertiaryTextColor = a(this.tertiaryColor), this.lineColor = a(this.background), this.textColor = a(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.primaryBorderColor = m(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 = pt(102, 102, 255, 0.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();
2196
+ }
2197
+ updateColors() {
2198
+ this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || r(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || r(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || r(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || r(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || r(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || r(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || r(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || r(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || r(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || c(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || c(this.tertiaryColor, 40);
2199
+ for (let t = 0; t < this.THEME_COLOR_LIMIT; t++)
2200
+ this["cScale" + t] = c(this["cScale" + t], 10), this["cScalePeer" + t] = this["cScalePeer" + t] || c(this["cScale" + t], 25);
2201
+ for (let t = 0; t < this.THEME_COLOR_LIMIT; t++) this["cScaleInv" + t] = this["cScaleInv" + t] || r(this["cScale" + t], { h: 180 });
2202
+ for (let t = 0; t < 5; t++)
2203
+ this["surface" + t] = this["surface" + t] || r(this.mainBkg, {
2204
+ h: 30,
2205
+ l: -(5 + t * 5)
2206
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || r(this.mainBkg, {
2207
+ h: 30,
2208
+ l: -(7 + t * 5)
2209
+ });
2210
+ if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
2211
+ this.cScaleLabel0 = this.cScaleLabel0 || a(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || a(this.labelTextColor);
2212
+ for (let t = 0; t < this.THEME_COLOR_LIMIT; t++) this["cScaleLabel" + t] = this["cScaleLabel" + t] || this.labelTextColor;
2213
+ }
2214
+ 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 || n(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || n(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 = r(this.primaryColor, { h: 64 }), this.fillType3 = r(this.secondaryColor, { h: 64 }), this.fillType4 = r(this.primaryColor, { h: -64 }), this.fillType5 = r(this.secondaryColor, { h: -64 }), this.fillType6 = r(this.primaryColor, { h: 128 }), this.fillType7 = r(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || r(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || r(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || r(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || r(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || r(this.primaryColor, {
2215
+ h: 60,
2216
+ l: -20
2217
+ }), this.pie8 = this.pie8 || r(this.primaryColor, {
2218
+ h: -60,
2219
+ l: -40
2220
+ }), this.pie9 = this.pie9 || r(this.primaryColor, {
2221
+ h: 120,
2222
+ l: -40
2223
+ }), this.pie10 = this.pie10 || r(this.primaryColor, {
2224
+ h: 60,
2225
+ l: -40
2226
+ }), this.pie11 = this.pie11 || r(this.primaryColor, {
2227
+ h: -90,
2228
+ l: -40
2229
+ }), this.pie12 = this.pie12 || r(this.primaryColor, {
2230
+ h: 120,
2231
+ l: -30
2232
+ }), 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 ?? r(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? r(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? r(this.tertiaryColor, { l: -40 }), this.venn4 = this.venn4 ?? r(this.primaryColor, {
2233
+ h: 60,
2234
+ l: -30
2235
+ }), this.venn5 = this.venn5 ?? r(this.primaryColor, {
2236
+ h: -60,
2237
+ l: -30
2238
+ }), this.venn6 = this.venn6 ?? r(this.secondaryColor, {
2239
+ h: 60,
2240
+ l: -30
2241
+ }), this.venn7 = this.venn7 ?? r(this.primaryColor, {
2242
+ h: 120,
2243
+ l: -30
2244
+ }), this.venn8 = this.venn8 ?? r(this.secondaryColor, {
2245
+ h: 120,
2246
+ l: -30
2247
+ }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
2248
+ domainFontSize: this.cynefin?.domainFontSize || 16,
2249
+ itemFontSize: this.cynefin?.itemFontSize || 12,
2250
+ boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
2251
+ boundaryWidth: this.cynefin?.boundaryWidth || 2,
2252
+ cliffColor: this.cynefin?.cliffColor || "#8B0000",
2253
+ cliffWidth: this.cynefin?.cliffWidth || 4,
2254
+ arrowColor: this.cynefin?.arrowColor || this.lineColor,
2255
+ arrowWidth: this.cynefin?.arrowWidth || 2,
2256
+ complexBg: this.cynefin?.complexBg || "#E8F5E9",
2257
+ complicatedBg: this.cynefin?.complicatedBg || "#E3F2FD",
2258
+ chaoticBg: this.cynefin?.chaoticBg || "#FBE9E7",
2259
+ clearBg: this.cynefin?.clearBg || "#FFF8E1",
2260
+ confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
2261
+ textColor: this.cynefin?.textColor || this.textColor,
2262
+ labelColor: this.cynefin?.labelColor || this.primaryTextColor
2263
+ }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || r(this.primaryColor, {
2264
+ r: 5,
2265
+ g: 5,
2266
+ b: 5
2267
+ }), this.quadrant3Fill = this.quadrant3Fill || r(this.primaryColor, {
2268
+ r: 10,
2269
+ g: 10,
2270
+ b: 10
2271
+ }), this.quadrant4Fill = this.quadrant4Fill || r(this.primaryColor, {
2272
+ r: 15,
2273
+ g: 15,
2274
+ b: 15
2275
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || r(this.primaryTextColor, {
2276
+ r: -5,
2277
+ g: -5,
2278
+ b: -5
2279
+ }), this.quadrant3TextFill = this.quadrant3TextFill || r(this.primaryTextColor, {
2280
+ r: -10,
2281
+ g: -10,
2282
+ b: -10
2283
+ }), this.quadrant4TextFill = this.quadrant4TextFill || r(this.primaryTextColor, {
2284
+ r: -15,
2285
+ g: -15,
2286
+ b: -15
2287
+ }), this.quadrantPointFill = this.quadrantPointFill || K(this.quadrant1Fill) ? n(this.quadrant1Fill) : c(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 = {
2288
+ axisColor: this.radar?.axisColor || this.lineColor,
2289
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
2290
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
2291
+ curveOpacity: this.radar?.curveOpacity || 0.5,
2292
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
2293
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
2294
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
2295
+ graticuleOpacity: this.radar?.graticuleOpacity || 0.3,
2296
+ legendBoxSize: this.radar?.legendBoxSize || 12,
2297
+ legendFontSize: this.radar?.legendFontSize || 12
2298
+ }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
2299
+ backgroundColor: this.wardley?.backgroundColor || this.background,
2300
+ axisColor: this.wardley?.axisColor || this.lineColor,
2301
+ axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
2302
+ gridColor: this.wardley?.gridColor || this.gridColor,
2303
+ componentFill: this.wardley?.componentFill || this.background,
2304
+ componentStroke: this.wardley?.componentStroke || this.lineColor,
2305
+ componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
2306
+ linkStroke: this.wardley?.linkStroke || this.lineColor,
2307
+ evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
2308
+ annotationStroke: this.wardley?.annotationStroke || this.lineColor,
2309
+ annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
2310
+ annotationFill: this.wardley?.annotationFill || this.background
2311
+ }, this.xyChart = {
2312
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2313
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2314
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
2315
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2316
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2317
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2318
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2319
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2320
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2321
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2322
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2323
+ plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
2324
+ }, 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 || r(this.primaryColor, { h: -30 }), this.git4 = this.git4 || r(this.primaryColor, { h: -60 }), this.git5 = this.git5 || r(this.primaryColor, { h: -90 }), this.git6 = this.git6 || r(this.primaryColor, { h: 60 }), this.git7 = this.git7 || r(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = n(this.git0, 25), this.git1 = n(this.git1, 25), this.git2 = n(this.git2, 25), this.git3 = n(this.git3, 25), this.git4 = n(this.git4, 25), this.git5 = n(this.git5, 25), this.git6 = n(this.git6, 25), this.git7 = n(this.git7, 25)) : (this.git0 = c(this.git0, 25), this.git1 = c(this.git1, 25), this.git2 = c(this.git2, 25), this.git3 = c(this.git3, 25), this.git4 = c(this.git4, 25), this.git5 = c(this.git5, 25), this.git6 = c(this.git6, 25), this.git7 = c(this.git7, 25)), this.gitInv0 = this.gitInv0 || c(a(this.git0), 25), this.gitInv1 = this.gitInv1 || a(this.git1), this.gitInv2 = this.gitInv2 || a(this.git2), this.gitInv3 = this.gitInv3 || a(this.git3), this.gitInv4 = this.gitInv4 || a(this.git4), this.gitInv5 = this.gitInv5 || a(this.git5), this.gitInv6 = this.gitInv6 || a(this.git6), this.gitInv7 = this.gitInv7 || a(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || a(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || a(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 || ot, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || st;
2325
+ }
2326
+ calculate(t) {
2327
+ if (Object.keys(this).forEach((e) => {
2328
+ this[e] === "calculated" && (this[e] = void 0);
2329
+ }), typeof t != "object") {
2330
+ this.updateColors();
2331
+ return;
2332
+ }
2333
+ const i = Object.keys(t);
2334
+ i.forEach((e) => {
2335
+ this[e] = t[e];
2336
+ }), this.updateColors(), i.forEach((e) => {
2337
+ this[e] = t[e];
2338
+ });
2339
+ }
2340
+ }, Eo = /* @__PURE__ */ d((t) => {
2341
+ const i = new _o();
2342
+ return i.calculate(t), i;
2343
+ }, "getThemeVariables"), Ao = class {
2344
+ static {
2345
+ d(this, "Theme");
2346
+ }
2347
+ constructor() {
2348
+ 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 = n("#cde498", 10), this.primaryBorderColor = m(this.primaryColor, this.darkMode), this.secondaryBorderColor = m(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = m(this.tertiaryColor, this.darkMode), this.primaryTextColor = a(this.primaryColor), this.secondaryTextColor = a(this.secondaryColor), this.tertiaryTextColor = a(this.primaryColor), this.lineColor = a(this.background), this.textColor = a(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))";
2349
+ }
2350
+ updateColors() {
2351
+ this.actorBorder = c(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 || r(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || r(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || r(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || r(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || r(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || r(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || r(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || r(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || r(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || c(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || c(this.tertiaryColor, 40);
2352
+ for (let t = 0; t < this.THEME_COLOR_LIMIT; t++)
2353
+ this["cScale" + t] = c(this["cScale" + t], 10), this["cScalePeer" + t] = this["cScalePeer" + t] || c(this["cScale" + t], 25);
2354
+ for (let t = 0; t < this.THEME_COLOR_LIMIT; t++) this["cScaleInv" + t] = this["cScaleInv" + t] || r(this["cScale" + t], { h: 180 });
2355
+ this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
2356
+ for (let t = 0; t < this.THEME_COLOR_LIMIT; t++) this["cScaleLabel" + t] = this["cScaleLabel" + t] || this.scaleLabelColor;
2357
+ for (let t = 0; t < 5; t++)
2358
+ this["surface" + t] = this["surface" + t] || r(this.mainBkg, {
2359
+ h: 30,
2360
+ s: -30,
2361
+ l: -(5 + t * 5)
2362
+ }), this["surfacePeer" + t] = this["surfacePeer" + t] || r(this.mainBkg, {
2363
+ h: 30,
2364
+ s: -30,
2365
+ l: -(8 + t * 5)
2366
+ });
2367
+ 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 || n(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || n(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 = r(this.primaryColor, { h: 64 }), this.fillType3 = r(this.secondaryColor, { h: 64 }), this.fillType4 = r(this.primaryColor, { h: -64 }), this.fillType5 = r(this.secondaryColor, { h: -64 }), this.fillType6 = r(this.primaryColor, { h: 128 }), this.fillType7 = r(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 || r(this.primaryColor, { l: -30 }), this.pie5 = this.pie5 || r(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || r(this.tertiaryColor, {
2368
+ h: 40,
2369
+ l: -40
2370
+ }), this.pie7 = this.pie7 || r(this.primaryColor, {
2371
+ h: 60,
2372
+ l: -10
2373
+ }), this.pie8 = this.pie8 || r(this.primaryColor, {
2374
+ h: -60,
2375
+ l: -10
2376
+ }), this.pie9 = this.pie9 || r(this.primaryColor, {
2377
+ h: 120,
2378
+ l: 0
2379
+ }), this.pie10 = this.pie10 || r(this.primaryColor, {
2380
+ h: 60,
2381
+ l: -50
2382
+ }), this.pie11 = this.pie11 || r(this.primaryColor, {
2383
+ h: -60,
2384
+ l: -50
2385
+ }), this.pie12 = this.pie12 || r(this.primaryColor, {
2386
+ h: 120,
2387
+ l: -50
2388
+ }), 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 ?? r(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? r(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? r(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? r(this.primaryColor, {
2389
+ h: 60,
2390
+ l: -30
2391
+ }), this.venn5 = this.venn5 ?? r(this.primaryColor, {
2392
+ h: -60,
2393
+ l: -30
2394
+ }), this.venn6 = this.venn6 ?? r(this.secondaryColor, {
2395
+ h: 60,
2396
+ l: -30
2397
+ }), this.venn7 = this.venn7 ?? r(this.primaryColor, {
2398
+ h: 120,
2399
+ l: -30
2400
+ }), this.venn8 = this.venn8 ?? r(this.secondaryColor, {
2401
+ h: 120,
2402
+ l: -30
2403
+ }), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
2404
+ domainFontSize: this.cynefin?.domainFontSize || 16,
2405
+ itemFontSize: this.cynefin?.itemFontSize || 12,
2406
+ boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
2407
+ boundaryWidth: this.cynefin?.boundaryWidth || 2,
2408
+ cliffColor: this.cynefin?.cliffColor || "#8B4513",
2409
+ cliffWidth: this.cynefin?.cliffWidth || 4,
2410
+ arrowColor: this.cynefin?.arrowColor || this.lineColor,
2411
+ arrowWidth: this.cynefin?.arrowWidth || 2,
2412
+ complexBg: this.cynefin?.complexBg || "#C8E6C9",
2413
+ complicatedBg: this.cynefin?.complicatedBg || "#DCEDC8",
2414
+ chaoticBg: this.cynefin?.chaoticBg || "#FFE0B2",
2415
+ clearBg: this.cynefin?.clearBg || "#FFF9C4",
2416
+ confusionBg: this.cynefin?.confusionBg || "#D7CCC8",
2417
+ textColor: this.cynefin?.textColor || this.textColor,
2418
+ labelColor: this.cynefin?.labelColor || this.primaryTextColor
2419
+ }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || r(this.primaryColor, {
2420
+ r: 5,
2421
+ g: 5,
2422
+ b: 5
2423
+ }), this.quadrant3Fill = this.quadrant3Fill || r(this.primaryColor, {
2424
+ r: 10,
2425
+ g: 10,
2426
+ b: 10
2427
+ }), this.quadrant4Fill = this.quadrant4Fill || r(this.primaryColor, {
2428
+ r: 15,
2429
+ g: 15,
2430
+ b: 15
2431
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || r(this.primaryTextColor, {
2432
+ r: -5,
2433
+ g: -5,
2434
+ b: -5
2435
+ }), this.quadrant3TextFill = this.quadrant3TextFill || r(this.primaryTextColor, {
2436
+ r: -10,
2437
+ g: -10,
2438
+ b: -10
2439
+ }), this.quadrant4TextFill = this.quadrant4TextFill || r(this.primaryTextColor, {
2440
+ r: -15,
2441
+ g: -15,
2442
+ b: -15
2443
+ }), this.quadrantPointFill = this.quadrantPointFill || K(this.quadrant1Fill) ? n(this.quadrant1Fill) : c(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 = {
2444
+ startByteColor: this.primaryTextColor,
2445
+ endByteColor: this.primaryTextColor,
2446
+ labelColor: this.primaryTextColor,
2447
+ titleColor: this.primaryTextColor,
2448
+ blockStrokeColor: this.primaryTextColor,
2449
+ blockFillColor: this.mainBkg
2450
+ }, this.radar = {
2451
+ axisColor: this.radar?.axisColor || this.lineColor,
2452
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
2453
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
2454
+ curveOpacity: this.radar?.curveOpacity || 0.5,
2455
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
2456
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
2457
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
2458
+ graticuleOpacity: this.radar?.graticuleOpacity || 0.3,
2459
+ legendBoxSize: this.radar?.legendBoxSize || 12,
2460
+ legendFontSize: this.radar?.legendFontSize || 12
2461
+ }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
2462
+ backgroundColor: this.wardley?.backgroundColor || this.background,
2463
+ axisColor: this.wardley?.axisColor || this.lineColor,
2464
+ axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
2465
+ gridColor: this.wardley?.gridColor || this.gridColor,
2466
+ componentFill: this.wardley?.componentFill || this.background,
2467
+ componentStroke: this.wardley?.componentStroke || this.lineColor,
2468
+ componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
2469
+ linkStroke: this.wardley?.linkStroke || this.lineColor,
2470
+ evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
2471
+ annotationStroke: this.wardley?.annotationStroke || this.lineColor,
2472
+ annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
2473
+ annotationFill: this.wardley?.annotationFill || this.background
2474
+ }, this.xyChart = {
2475
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2476
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2477
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
2478
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2479
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2480
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2481
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2482
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2483
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2484
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2485
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2486
+ plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
2487
+ }, 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 || r(this.primaryColor, { h: -30 }), this.git4 = this.git4 || r(this.primaryColor, { h: -60 }), this.git5 = this.git5 || r(this.primaryColor, { h: -90 }), this.git6 = this.git6 || r(this.primaryColor, { h: 60 }), this.git7 = this.git7 || r(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = n(this.git0, 25), this.git1 = n(this.git1, 25), this.git2 = n(this.git2, 25), this.git3 = n(this.git3, 25), this.git4 = n(this.git4, 25), this.git5 = n(this.git5, 25), this.git6 = n(this.git6, 25), this.git7 = n(this.git7, 25)) : (this.git0 = c(this.git0, 25), this.git1 = c(this.git1, 25), this.git2 = c(this.git2, 25), this.git3 = c(this.git3, 25), this.git4 = c(this.git4, 25), this.git5 = c(this.git5, 25), this.git6 = c(this.git6, 25), this.git7 = c(this.git7, 25)), this.gitInv0 = this.gitInv0 || a(this.git0), this.gitInv1 = this.gitInv1 || a(this.git1), this.gitInv2 = this.gitInv2 || a(this.git2), this.gitInv3 = this.gitInv3 || a(this.git3), this.gitInv4 = this.gitInv4 || a(this.git4), this.gitInv5 = this.gitInv5 || a(this.git5), this.gitInv6 = this.gitInv6 || a(this.git6), this.gitInv7 = this.gitInv7 || a(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || a(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || a(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 || ot, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || st;
2488
+ }
2489
+ calculate(t) {
2490
+ if (typeof t != "object") {
2491
+ this.updateColors();
2492
+ return;
2493
+ }
2494
+ const i = Object.keys(t);
2495
+ i.forEach((e) => {
2496
+ this[e] = t[e];
2497
+ }), this.updateColors(), i.forEach((e) => {
2498
+ this[e] = t[e];
2499
+ });
2500
+ }
2501
+ }, wo = /* @__PURE__ */ d((t) => {
2502
+ const i = new Ao();
2503
+ return i.calculate(t), i;
2504
+ }, "getThemeVariables"), Oo = class {
2505
+ static {
2506
+ d(this, "Theme");
2507
+ }
2508
+ constructor() {
2509
+ this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = n(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = r(this.primaryColor, { h: -160 }), this.primaryBorderColor = m(this.primaryColor, this.darkMode), this.secondaryBorderColor = m(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = m(this.tertiaryColor, this.darkMode), this.primaryTextColor = a(this.primaryColor), this.secondaryTextColor = a(this.secondaryColor), this.tertiaryTextColor = a(this.tertiaryColor), this.lineColor = a(this.background), this.textColor = a(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 || n(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))";
2510
+ }
2511
+ updateColors() {
2512
+ this.secondBkg = n(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = n(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";
2513
+ for (let t = 0; t < this.THEME_COLOR_LIMIT; t++) this["cScaleInv" + t] = this["cScaleInv" + t] || a(this["cScale" + t]);
2514
+ for (let t = 0; t < this.THEME_COLOR_LIMIT; t++) this.darkMode ? this["cScalePeer" + t] = this["cScalePeer" + t] || n(this["cScale" + t], 10) : this["cScalePeer" + t] = this["cScalePeer" + t] || c(this["cScale" + t], 10);
2515
+ this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
2516
+ for (let t = 0; t < this.THEME_COLOR_LIMIT; t++) this["cScaleLabel" + t] = this["cScaleLabel" + t] || this.scaleLabelColor;
2517
+ for (let t = 0; t < 5; t++)
2518
+ this["surface" + t] = this["surface" + t] || r(this.mainBkg, { l: -(5 + t * 5) }), this["surfacePeer" + t] = this["surfacePeer" + t] || r(this.mainBkg, { l: -(8 + t * 5) });
2519
+ 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 = n(this.contrast, 30), this.sectionBkgColor2 = n(this.contrast, 30), this.taskBorderColor = c(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 = n(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = c(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 = r(this.primaryColor, { h: 64 }), this.fillType3 = r(this.secondaryColor, { h: 64 }), this.fillType4 = r(this.primaryColor, { h: -64 }), this.fillType5 = r(this.secondaryColor, { h: -64 }), this.fillType6 = r(this.primaryColor, { h: 128 }), this.fillType7 = r(this.secondaryColor, { h: 128 });
2520
+ for (let t = 0; t < this.THEME_COLOR_LIMIT; t++) this["pie" + t] = this["cScale" + t];
2521
+ 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";
2522
+ for (let t = 0; t < 8; t++) this["venn" + (t + 1)] = this["venn" + (t + 1)] ?? this["cScale" + t];
2523
+ this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
2524
+ domainFontSize: this.cynefin?.domainFontSize || 16,
2525
+ itemFontSize: this.cynefin?.itemFontSize || 12,
2526
+ boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
2527
+ boundaryWidth: this.cynefin?.boundaryWidth || 2,
2528
+ cliffColor: this.cynefin?.cliffColor || "#8B0000",
2529
+ cliffWidth: this.cynefin?.cliffWidth || 4,
2530
+ arrowColor: this.cynefin?.arrowColor || this.lineColor,
2531
+ arrowWidth: this.cynefin?.arrowWidth || 2,
2532
+ complexBg: this.cynefin?.complexBg || "#E8F5E9",
2533
+ complicatedBg: this.cynefin?.complicatedBg || "#E3F2FD",
2534
+ chaoticBg: this.cynefin?.chaoticBg || "#FBE9E7",
2535
+ clearBg: this.cynefin?.clearBg || "#FFF8E1",
2536
+ confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
2537
+ textColor: this.cynefin?.textColor || this.textColor,
2538
+ labelColor: this.cynefin?.labelColor || this.primaryTextColor
2539
+ }, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || r(this.primaryColor, {
2540
+ r: 5,
2541
+ g: 5,
2542
+ b: 5
2543
+ }), this.quadrant3Fill = this.quadrant3Fill || r(this.primaryColor, {
2544
+ r: 10,
2545
+ g: 10,
2546
+ b: 10
2547
+ }), this.quadrant4Fill = this.quadrant4Fill || r(this.primaryColor, {
2548
+ r: 15,
2549
+ g: 15,
2550
+ b: 15
2551
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || r(this.primaryTextColor, {
2552
+ r: -5,
2553
+ g: -5,
2554
+ b: -5
2555
+ }), this.quadrant3TextFill = this.quadrant3TextFill || r(this.primaryTextColor, {
2556
+ r: -10,
2557
+ g: -10,
2558
+ b: -10
2559
+ }), this.quadrant4TextFill = this.quadrant4TextFill || r(this.primaryTextColor, {
2560
+ r: -15,
2561
+ g: -15,
2562
+ b: -15
2563
+ }), this.quadrantPointFill = this.quadrantPointFill || K(this.quadrant1Fill) ? n(this.quadrant1Fill) : c(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 = {
2564
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2565
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2566
+ dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
2567
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2568
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2569
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2570
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2571
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2572
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2573
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2574
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2575
+ plotColorPalette: this.xyChart?.plotColorPalette || "#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"
2576
+ }, this.radar = {
2577
+ axisColor: this.radar?.axisColor || this.lineColor,
2578
+ axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
2579
+ axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
2580
+ curveOpacity: this.radar?.curveOpacity || 0.5,
2581
+ curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
2582
+ graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
2583
+ graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
2584
+ graticuleOpacity: this.radar?.graticuleOpacity || 0.3,
2585
+ legendBoxSize: this.radar?.legendBoxSize || 12,
2586
+ legendFontSize: this.radar?.legendFontSize || 12
2587
+ }, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
2588
+ backgroundColor: this.wardley?.backgroundColor || this.background,
2589
+ axisColor: this.wardley?.axisColor || this.lineColor,
2590
+ axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
2591
+ gridColor: this.wardley?.gridColor || this.gridColor,
2592
+ componentFill: this.wardley?.componentFill || this.background,
2593
+ componentStroke: this.wardley?.componentStroke || this.lineColor,
2594
+ componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
2595
+ linkStroke: this.wardley?.linkStroke || this.lineColor,
2596
+ evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
2597
+ annotationStroke: this.wardley?.annotationStroke || this.lineColor,
2598
+ annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
2599
+ annotationFill: this.wardley?.annotationFill || this.background
2600
+ }, 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 = c(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || r(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || r(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || r(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || r(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || r(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || a(this.git0), this.gitInv1 = this.gitInv1 || a(this.git1), this.gitInv2 = this.gitInv2 || a(this.git2), this.gitInv3 = this.gitInv3 || a(this.git3), this.gitInv4 = this.gitInv4 || a(this.git4), this.gitInv5 = this.gitInv5 || a(this.git5), this.gitInv6 = this.gitInv6 || a(this.git6), this.gitInv7 = this.gitInv7 || a(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 || ot, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || st;
2601
+ }
2602
+ calculate(t) {
2603
+ if (typeof t != "object") {
2604
+ this.updateColors();
2605
+ return;
2606
+ }
2607
+ const i = Object.keys(t);
2608
+ i.forEach((e) => {
2609
+ this[e] = t[e];
2610
+ }), this.updateColors(), i.forEach((e) => {
2611
+ this[e] = t[e];
2612
+ });
2613
+ }
2614
+ }, qo = /* @__PURE__ */ d((t) => {
2615
+ const i = new Oo();
2616
+ return i.calculate(t), i;
2617
+ }, "getThemeVariables"), Io = class {
2618
+ static {
2619
+ d(this, "Theme");
2620
+ }
2621
+ constructor() {
2622
+ 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 = m(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";
2623
+ }
2624
+ updateColors() {
2625
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || r(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || r(this.primaryColor, {
2626
+ h: 180,
2627
+ l: 5
2628
+ }), this.primaryBorderColor = this.primaryBorderColor || m(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || m(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || m(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || m(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || a(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || a(this.tertiaryColor), this.lineColor = this.lineColor || a(this.background), this.arrowheadColor = this.arrowheadColor || a(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 ? c(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 || c(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || a(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
2629
+ const t = "#ECECFE", i = "#E9E9F1", e = r(t, {
2630
+ h: 180,
2631
+ l: 5
2632
+ });
2633
+ if (this.sectionBkgColor = this.sectionBkgColor || e, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || i, this.sectionBkgColor2 = this.sectionBkgColor2 || t, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || t, this.activeTaskBorderColor = this.activeTaskBorderColor || t, this.activeTaskBkgColor = this.activeTaskBkgColor || n(t, 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 || t, this.cScale1 = this.cScale1 || i, this.cScale2 = this.cScale2 || e, this.cScale3 = this.cScale3 || r(t, { h: 30 }), this.cScale4 = this.cScale4 || r(t, { h: 60 }), this.cScale5 = this.cScale5 || r(t, { h: 90 }), this.cScale6 = this.cScale6 || r(t, { h: 120 }), this.cScale7 = this.cScale7 || r(t, { h: 150 }), this.cScale8 = this.cScale8 || r(t, {
2634
+ h: 210,
2635
+ l: 150
2636
+ }), this.cScale9 = this.cScale9 || r(t, { h: 270 }), this.cScale10 = this.cScale10 || r(t, { h: 300 }), this.cScale11 = this.cScale11 || r(t, { h: 330 }), this.darkMode) for (let s = 0; s < this.THEME_COLOR_LIMIT; s++) this["cScale" + s] = c(this["cScale" + s], 75);
2637
+ else for (let s = 0; s < this.THEME_COLOR_LIMIT; s++) this["cScale" + s] = c(this["cScale" + s], 25);
2638
+ for (let s = 0; s < this.THEME_COLOR_LIMIT; s++) this["cScaleInv" + s] = this["cScaleInv" + s] || a(this["cScale" + s]);
2639
+ for (let s = 0; s < this.THEME_COLOR_LIMIT; s++) this.darkMode ? this["cScalePeer" + s] = this["cScalePeer" + s] || n(this["cScale" + s], 10) : this["cScalePeer" + s] = this["cScalePeer" + s] || c(this["cScale" + s], 10);
2640
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2641
+ for (let s = 0; s < this.THEME_COLOR_LIMIT; s++) this["cScaleLabel" + s] = this["cScaleLabel" + s] || this.scaleLabelColor;
2642
+ const l = this.darkMode ? -4 : -1;
2643
+ for (let s = 0; s < 5; s++)
2644
+ this["surface" + s] = this["surface" + s] || r(this.mainBkg, {
2645
+ h: 180,
2646
+ s: -15,
2647
+ l: l * (5 + s * 3)
2648
+ }), this["surfacePeer" + s] = this["surfacePeer" + s] || r(this.mainBkg, {
2649
+ h: 180,
2650
+ s: -15,
2651
+ l: l * (8 + s * 3)
2652
+ });
2653
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || t, this.fillType1 = this.fillType1 || i, this.fillType2 = this.fillType2 || r(t, { h: 64 }), this.fillType3 = this.fillType3 || r(i, { h: 64 }), this.fillType4 = this.fillType4 || r(t, { h: -64 }), this.fillType5 = this.fillType5 || r(i, { h: -64 }), this.fillType6 = this.fillType6 || r(t, { h: 128 }), this.fillType7 = this.fillType7 || r(i, { h: 128 }), this.pie1 = this.pie1 || t, this.pie2 = this.pie2 || i, this.pie3 = this.pie3 || e, this.pie4 = this.pie4 || r(t, { l: -10 }), this.pie5 = this.pie5 || r(i, { l: -10 }), this.pie6 = this.pie6 || r(e, { l: -10 }), this.pie7 = this.pie7 || r(t, {
2654
+ h: 60,
2655
+ l: -10
2656
+ }), this.pie8 = this.pie8 || r(t, {
2657
+ h: -60,
2658
+ l: -10
2659
+ }), this.pie9 = this.pie9 || r(t, {
2660
+ h: 120,
2661
+ l: 0
2662
+ }), this.pie10 = this.pie10 || r(t, {
2663
+ h: 60,
2664
+ l: -20
2665
+ }), this.pie11 = this.pie11 || r(t, {
2666
+ h: -60,
2667
+ l: -20
2668
+ }), this.pie12 = this.pie12 || r(t, {
2669
+ h: 120,
2670
+ l: -10
2671
+ }), 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 || t, this.quadrant2Fill = this.quadrant2Fill || r(t, {
2672
+ r: 5,
2673
+ g: 5,
2674
+ b: 5
2675
+ }), this.quadrant3Fill = this.quadrant3Fill || r(t, {
2676
+ r: 10,
2677
+ g: 10,
2678
+ b: 10
2679
+ }), this.quadrant4Fill = this.quadrant4Fill || r(t, {
2680
+ r: 15,
2681
+ g: 15,
2682
+ b: 15
2683
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || r(this.primaryTextColor, {
2684
+ r: -5,
2685
+ g: -5,
2686
+ b: -5
2687
+ }), this.quadrant3TextFill = this.quadrant3TextFill || r(this.primaryTextColor, {
2688
+ r: -10,
2689
+ g: -10,
2690
+ b: -10
2691
+ }), this.quadrant4TextFill = this.quadrant4TextFill || r(this.primaryTextColor, {
2692
+ r: -15,
2693
+ g: -15,
2694
+ b: -15
2695
+ }), this.quadrantPointFill = this.quadrantPointFill || K(this.quadrant1Fill) ? n(this.quadrant1Fill) : c(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 = {
2696
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2697
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2698
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2699
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2700
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2701
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2702
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2703
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2704
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2705
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2706
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2707
+ }, this.requirementBackground = this.requirementBackground || t, 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 ? c(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || t, this.git1 = this.git1 || i, this.git2 = this.git2 || e, this.git3 = this.git3 || r(t, { h: -30 }), this.git4 = this.git4 || r(t, { h: -60 }), this.git5 = this.git5 || r(t, { h: -90 }), this.git6 = this.git6 || r(t, { h: 60 }), this.git7 = this.git7 || r(t, { h: 120 }), this.darkMode ? (this.git0 = n(this.git0, 25), this.git1 = n(this.git1, 25), this.git2 = n(this.git2, 25), this.git3 = n(this.git3, 25), this.git4 = n(this.git4, 25), this.git5 = n(this.git5, 25), this.git6 = n(this.git6, 25), this.git7 = n(this.git7, 25)) : (this.git0 = c(this.git0, 25), this.git1 = c(this.git1, 25), this.git2 = c(this.git2, 25), this.git3 = c(this.git3, 25), this.git4 = c(this.git4, 25), this.git5 = c(this.git5, 25), this.git6 = c(this.git6, 25), this.git7 = c(this.git7, 25)), this.gitInv0 = this.gitInv0 || a(this.git0), this.gitInv1 = this.gitInv1 || a(this.git1), this.gitInv2 = this.gitInv2 || a(this.git2), this.gitInv3 = this.gitInv3 || a(this.git3), this.gitInv4 = this.gitInv4 || a(this.git4), this.gitInv5 = this.gitInv5 || a(this.git5), this.gitInv6 = this.gitInv6 || a(this.git6), this.gitInv7 = this.gitInv7 || a(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 || ot, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || st;
2708
+ }
2709
+ calculate(t) {
2710
+ if (typeof t != "object") {
2711
+ this.updateColors();
2712
+ return;
2713
+ }
2714
+ const i = Object.keys(t);
2715
+ i.forEach((e) => {
2716
+ this[e] = t[e];
2717
+ }), this.updateColors(), i.forEach((e) => {
2718
+ this[e] = t[e];
2719
+ });
2720
+ }
2721
+ }, Mo = /* @__PURE__ */ d((t) => {
2722
+ const i = new Io();
2723
+ return i.calculate(t), i;
2724
+ }, "getThemeVariables"), Do = class {
2725
+ static {
2726
+ d(this, "Theme");
2727
+ }
2728
+ constructor() {
2729
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = n(this.primaryColor, 16), this.tertiaryColor = r(this.primaryColor, { h: -160 }), this.primaryBorderColor = a(this.background), this.secondaryBorderColor = m(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = m(this.tertiaryColor, this.darkMode), this.primaryTextColor = a(this.primaryColor), this.secondaryTextColor = a(this.secondaryColor), this.tertiaryTextColor = a(this.tertiaryColor), this.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = n(a("#323D47"), 10), this.border1 = "#ccc", this.border2 = pt(255, 255, 255, 0.25), this.arrowheadColor = a(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";
2730
+ }
2731
+ updateColors() {
2732
+ if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || r(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || r(this.primaryColor, {
2733
+ h: 180,
2734
+ l: 5
2735
+ }), this.primaryBorderColor = this.primaryBorderColor || m(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || m(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || m(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || m(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || a(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || a(this.tertiaryColor), this.lineColor = this.lineColor || a(this.background), this.arrowheadColor = this.arrowheadColor || a(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 ? c(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 || c(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || a(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 || n(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 || r(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || r(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || r(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || r(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || r(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || r(this.primaryColor, {
2736
+ h: 210,
2737
+ l: 150
2738
+ }), this.cScale9 = this.cScale9 || r(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || r(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || r(this.primaryColor, { h: 330 }), this.darkMode) for (let i = 0; i < this.THEME_COLOR_LIMIT; i++) this["cScale" + i] = c(this["cScale" + i], 75);
2739
+ else for (let i = 0; i < this.THEME_COLOR_LIMIT; i++) this["cScale" + i] = c(this["cScale" + i], 25);
2740
+ for (let i = 0; i < this.THEME_COLOR_LIMIT; i++) this["cScaleInv" + i] = this["cScaleInv" + i] || a(this["cScale" + i]);
2741
+ for (let i = 0; i < this.THEME_COLOR_LIMIT; i++) this.darkMode ? this["cScalePeer" + i] = this["cScalePeer" + i] || n(this["cScale" + i], 10) : this["cScalePeer" + i] = this["cScalePeer" + i] || c(this["cScale" + i], 10);
2742
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2743
+ for (let i = 0; i < this.THEME_COLOR_LIMIT; i++) this["cScaleLabel" + i] = this["cScaleLabel" + i] || this.scaleLabelColor;
2744
+ const t = this.darkMode ? -4 : -1;
2745
+ for (let i = 0; i < 5; i++)
2746
+ this["surface" + i] = this["surface" + i] || r(this.mainBkg, {
2747
+ h: 180,
2748
+ s: -15,
2749
+ l: t * (5 + i * 3)
2750
+ }), this["surfacePeer" + i] = this["surfacePeer" + i] || r(this.mainBkg, {
2751
+ h: 180,
2752
+ s: -15,
2753
+ l: t * (8 + i * 3)
2754
+ });
2755
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || r(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || r(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || r(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || r(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || r(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || r(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 || r(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || r(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || r(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || r(this.primaryColor, {
2756
+ h: 60,
2757
+ l: -10
2758
+ }), this.pie8 = this.pie8 || r(this.primaryColor, {
2759
+ h: -60,
2760
+ l: -10
2761
+ }), this.pie9 = this.pie9 || r(this.primaryColor, {
2762
+ h: 120,
2763
+ l: 0
2764
+ }), this.pie10 = this.pie10 || r(this.primaryColor, {
2765
+ h: 60,
2766
+ l: -20
2767
+ }), this.pie11 = this.pie11 || r(this.primaryColor, {
2768
+ h: -60,
2769
+ l: -20
2770
+ }), this.pie12 = this.pie12 || r(this.primaryColor, {
2771
+ h: 120,
2772
+ l: -10
2773
+ }), 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 || r(this.primaryColor, {
2774
+ r: 5,
2775
+ g: 5,
2776
+ b: 5
2777
+ }), this.quadrant3Fill = this.quadrant3Fill || r(this.primaryColor, {
2778
+ r: 10,
2779
+ g: 10,
2780
+ b: 10
2781
+ }), this.quadrant4Fill = this.quadrant4Fill || r(this.primaryColor, {
2782
+ r: 15,
2783
+ g: 15,
2784
+ b: 15
2785
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || r(this.primaryTextColor, {
2786
+ r: -5,
2787
+ g: -5,
2788
+ b: -5
2789
+ }), this.quadrant3TextFill = this.quadrant3TextFill || r(this.primaryTextColor, {
2790
+ r: -10,
2791
+ g: -10,
2792
+ b: -10
2793
+ }), this.quadrant4TextFill = this.quadrant4TextFill || r(this.primaryTextColor, {
2794
+ r: -15,
2795
+ g: -15,
2796
+ b: -15
2797
+ }), this.quadrantPointFill = this.quadrantPointFill || K(this.quadrant1Fill) ? n(this.quadrant1Fill) : c(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 = {
2798
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2799
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2800
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2801
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2802
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2803
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2804
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2805
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2806
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2807
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2808
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2809
+ }, 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 ? c(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 = n(this.git0, 25), this.git1 = n(this.git1, 25), this.git2 = n(this.git2, 25), this.git3 = n(this.git3, 25), this.git4 = n(this.git4, 25), this.git5 = n(this.git5, 25), this.git6 = n(this.git6, 25), this.git7 = n(this.git7, 25)) : (this.git0 = c(this.git0, 25), this.git1 = c(this.git1, 25), this.git2 = c(this.git2, 25), this.git3 = c(this.git3, 25), this.git4 = c(this.git4, 25), this.git5 = c(this.git5, 25), this.git6 = c(this.git6, 25), this.git7 = c(this.git7, 25)), this.gitInv0 = this.gitInv0 || a(this.git0), this.gitInv1 = this.gitInv1 || a(this.git1), this.gitInv2 = this.gitInv2 || a(this.git2), this.gitInv3 = this.gitInv3 || a(this.git3), this.gitInv4 = this.gitInv4 || a(this.git4), this.gitInv5 = this.gitInv5 || a(this.git5), this.gitInv6 = this.gitInv6 || a(this.git6), this.gitInv7 = this.gitInv7 || a(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 || ot, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || st;
2810
+ }
2811
+ calculate(t) {
2812
+ if (typeof t != "object") {
2813
+ this.updateColors();
2814
+ return;
2815
+ }
2816
+ const i = Object.keys(t);
2817
+ i.forEach((e) => {
2818
+ this[e] = t[e];
2819
+ }), this.updateColors(), i.forEach((e) => {
2820
+ this[e] = t[e];
2821
+ });
2822
+ }
2823
+ }, zo = /* @__PURE__ */ d((t) => {
2824
+ const i = new Do();
2825
+ return i.calculate(t), i;
2826
+ }, "getThemeVariables"), Wo = class {
2827
+ static {
2828
+ d(this, "Theme");
2829
+ }
2830
+ constructor() {
2831
+ 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 = m("#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";
2832
+ }
2833
+ updateColors() {
2834
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || r(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || r(this.primaryColor, {
2835
+ h: 180,
2836
+ l: 5
2837
+ }), this.primaryBorderColor = this.primaryBorderColor || m(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || m(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || m(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || m(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || a(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || a(this.tertiaryColor), this.lineColor = this.lineColor || a(this.background), this.arrowheadColor = this.arrowheadColor || a(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 ? c(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 || c(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || a(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
2838
+ const t = "#ECECFE", i = "#E9E9F1", e = r(t, {
2839
+ h: 180,
2840
+ l: 5
2841
+ });
2842
+ this.sectionBkgColor = this.sectionBkgColor || e, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || i, this.sectionBkgColor2 = this.sectionBkgColor2 || t, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || t, this.activeTaskBorderColor = this.activeTaskBorderColor || t, this.activeTaskBkgColor = this.activeTaskBkgColor || n(t, 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;
2843
+ for (let s = 0; s < this.THEME_COLOR_LIMIT; s++) this["cScale" + s] = this.mainBkg;
2844
+ if (this.darkMode) for (let s = 0; s < this.THEME_COLOR_LIMIT; s++) this["cScale" + s] = c(this["cScale" + s], 75);
2845
+ else for (let s = 0; s < this.THEME_COLOR_LIMIT; s++) this["cScale" + s] = c(this["cScale" + s], 25);
2846
+ for (let s = 0; s < this.THEME_COLOR_LIMIT; s++) this["cScaleInv" + s] = this["cScaleInv" + s] || a(this["cScale" + s]);
2847
+ for (let s = 0; s < this.THEME_COLOR_LIMIT; s++) this.darkMode ? this["cScalePeer" + s] = this["cScalePeer" + s] || n(this["cScale" + s], 10) : this["cScalePeer" + s] = this["cScalePeer" + s] || c(this["cScale" + s], 10);
2848
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2849
+ for (let s = 0; s < this.THEME_COLOR_LIMIT; s++) this["cScaleLabel" + s] = this["cScaleLabel" + s] || this.scaleLabelColor;
2850
+ const l = this.darkMode ? -4 : -1;
2851
+ for (let s = 0; s < 5; s++)
2852
+ this["surface" + s] = this["surface" + s] || r(this.mainBkg, {
2853
+ h: 180,
2854
+ s: -15,
2855
+ l: l * (5 + s * 3)
2856
+ }), this["surfacePeer" + s] = this["surfacePeer" + s] || r(this.mainBkg, {
2857
+ h: 180,
2858
+ s: -15,
2859
+ l: l * (8 + s * 3)
2860
+ });
2861
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || t, this.fillType1 = this.fillType1 || i, this.fillType2 = this.fillType2 || r(t, { h: 64 }), this.fillType3 = this.fillType3 || r(i, { h: 64 }), this.fillType4 = this.fillType4 || r(t, { h: -64 }), this.fillType5 = this.fillType5 || r(i, { h: -64 }), this.fillType6 = this.fillType6 || r(t, { h: 128 }), this.fillType7 = this.fillType7 || r(i, { h: 128 }), this.pie1 = this.pie1 || t, this.pie2 = this.pie2 || i, this.pie3 = this.pie3 || e, this.pie4 = this.pie4 || r(t, { l: -10 }), this.pie5 = this.pie5 || r(i, { l: -10 }), this.pie6 = this.pie6 || r(e, { l: -10 }), this.pie7 = this.pie7 || r(t, {
2862
+ h: 60,
2863
+ l: -10
2864
+ }), this.pie8 = this.pie8 || r(t, {
2865
+ h: -60,
2866
+ l: -10
2867
+ }), this.pie9 = this.pie9 || r(t, {
2868
+ h: 120,
2869
+ l: 0
2870
+ }), this.pie10 = this.pie10 || r(t, {
2871
+ h: 60,
2872
+ l: -20
2873
+ }), this.pie11 = this.pie11 || r(t, {
2874
+ h: -60,
2875
+ l: -20
2876
+ }), this.pie12 = this.pie12 || r(t, {
2877
+ h: 120,
2878
+ l: -10
2879
+ }), 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 || t, this.quadrant2Fill = this.quadrant2Fill || r(t, {
2880
+ r: 5,
2881
+ g: 5,
2882
+ b: 5
2883
+ }), this.quadrant3Fill = this.quadrant3Fill || r(t, {
2884
+ r: 10,
2885
+ g: 10,
2886
+ b: 10
2887
+ }), this.quadrant4Fill = this.quadrant4Fill || r(t, {
2888
+ r: 15,
2889
+ g: 15,
2890
+ b: 15
2891
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || r(this.primaryTextColor, {
2892
+ r: -5,
2893
+ g: -5,
2894
+ b: -5
2895
+ }), this.quadrant3TextFill = this.quadrant3TextFill || r(this.primaryTextColor, {
2896
+ r: -10,
2897
+ g: -10,
2898
+ b: -10
2899
+ }), this.quadrant4TextFill = this.quadrant4TextFill || r(this.primaryTextColor, {
2900
+ r: -15,
2901
+ g: -15,
2902
+ b: -15
2903
+ }), this.quadrantPointFill = this.quadrantPointFill || K(this.quadrant1Fill) ? n(this.quadrant1Fill) : c(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 = {
2904
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
2905
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
2906
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
2907
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
2908
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
2909
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
2910
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
2911
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
2912
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2913
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2914
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2915
+ }, this.requirementBackground = this.requirementBackground || t, 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 ? c(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#FFFFFF", this.git0 = this.git0 || t, this.git1 = this.git1 || i, this.git2 = this.git2 || e, this.git3 = this.git3 || r(t, { h: -30 }), this.git4 = this.git4 || r(t, { h: -60 }), this.git5 = this.git5 || r(t, { h: -90 }), this.git6 = this.git6 || r(t, { h: 60 }), this.git7 = this.git7 || r(t, { h: 120 }), this.darkMode ? (this.git0 = n(this.git0, 25), this.git1 = n(this.git1, 25), this.git2 = n(this.git2, 25), this.git3 = n(this.git3, 25), this.git4 = n(this.git4, 25), this.git5 = n(this.git5, 25), this.git6 = n(this.git6, 25), this.git7 = n(this.git7, 25)) : (this.git0 = c(this.git0, 25), this.git1 = c(this.git1, 25), this.git2 = c(this.git2, 25), this.git3 = c(this.git3, 25), this.git4 = c(this.git4, 25), this.git5 = c(this.git5, 25), this.git6 = c(this.git6, 25), this.git7 = c(this.git7, 25)), this.gitInv0 = this.gitInv0 || a(this.git0), this.gitInv1 = this.gitInv1 || a(this.git1), this.gitInv2 = this.gitInv2 || a(this.git2), this.gitInv3 = this.gitInv3 || a(this.git3), this.gitInv4 = this.gitInv4 || a(this.git4), this.gitInv5 = this.gitInv5 || a(this.git5), this.gitInv6 = this.gitInv6 || a(this.git6), this.gitInv7 = this.gitInv7 || a(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 || ot, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || st;
2916
+ }
2917
+ calculate(t) {
2918
+ if (typeof t != "object") {
2919
+ this.updateColors();
2920
+ return;
2921
+ }
2922
+ const i = Object.keys(t);
2923
+ i.forEach((e) => {
2924
+ this[e] = t[e];
2925
+ }), this.updateColors(), i.forEach((e) => {
2926
+ this[e] = t[e];
2927
+ });
2928
+ }
2929
+ }, Ro = /* @__PURE__ */ d((t) => {
2930
+ const i = new Wo();
2931
+ return i.calculate(t), i;
2932
+ }, "getThemeVariables"), Po = class {
2933
+ static {
2934
+ d(this, "Theme");
2935
+ }
2936
+ constructor() {
2937
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = n(this.primaryColor, 16), this.tertiaryColor = r(this.primaryColor, { h: -160 }), this.primaryBorderColor = a(this.background), this.secondaryBorderColor = m(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = m(this.tertiaryColor, this.darkMode), this.primaryTextColor = a(this.primaryColor), this.secondaryTextColor = a(this.secondaryColor), this.tertiaryTextColor = a(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = n(a("#323D47"), 10), this.border1 = "#ccc", this.border2 = pt(255, 255, 255, 0.25), this.arrowheadColor = a(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";
2938
+ }
2939
+ updateColors() {
2940
+ if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || r(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || r(this.primaryColor, {
2941
+ h: 180,
2942
+ l: 5
2943
+ }), this.primaryBorderColor = this.primaryBorderColor || m(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || m(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || m(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || m(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || a(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || a(this.tertiaryColor), this.lineColor = this.lineColor || a(this.background), this.arrowheadColor = this.arrowheadColor || a(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 ? c(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 || c(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || a(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 || n(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 || r(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || r(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || r(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || r(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || r(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || r(this.primaryColor, {
2944
+ h: 210,
2945
+ l: 150
2946
+ }), this.cScale9 = this.cScale9 || r(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || r(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || r(this.primaryColor, { h: 330 }), this.darkMode) for (let i = 0; i < this.THEME_COLOR_LIMIT; i++) this["cScale" + i] = c(this["cScale" + i], 75);
2947
+ else for (let i = 0; i < this.THEME_COLOR_LIMIT; i++) this["cScale" + i] = c(this["cScale" + i], 25);
2948
+ for (let i = 0; i < this.THEME_COLOR_LIMIT; i++) this["cScaleInv" + i] = this["cScaleInv" + i] || a(this["cScale" + i]);
2949
+ for (let i = 0; i < this.THEME_COLOR_LIMIT; i++) this.darkMode ? this["cScalePeer" + i] = this["cScalePeer" + i] || n(this["cScale" + i], 10) : this["cScalePeer" + i] = this["cScalePeer" + i] || c(this["cScale" + i], 10);
2950
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2951
+ for (let i = 0; i < this.THEME_COLOR_LIMIT; i++) this["cScaleLabel" + i] = this["cScaleLabel" + i] || this.scaleLabelColor;
2952
+ const t = this.darkMode ? -4 : -1;
2953
+ for (let i = 0; i < 5; i++)
2954
+ this["surface" + i] = this["surface" + i] || r(this.mainBkg, {
2955
+ h: 180,
2956
+ s: -15,
2957
+ l: t * (5 + i * 3)
2958
+ }), this["surfacePeer" + i] = this["surfacePeer" + i] || r(this.mainBkg, {
2959
+ h: 180,
2960
+ s: -15,
2961
+ l: t * (8 + i * 3)
2962
+ });
2963
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || r(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || r(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || r(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || r(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || r(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || r(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 || r(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || r(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || r(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || r(this.primaryColor, {
2964
+ h: 60,
2965
+ l: -10
2966
+ }), this.pie8 = this.pie8 || r(this.primaryColor, {
2967
+ h: -60,
2968
+ l: -10
2969
+ }), this.pie9 = this.pie9 || r(this.primaryColor, {
2970
+ h: 120,
2971
+ l: 0
2972
+ }), this.pie10 = this.pie10 || r(this.primaryColor, {
2973
+ h: 60,
2974
+ l: -20
2975
+ }), this.pie11 = this.pie11 || r(this.primaryColor, {
2976
+ h: -60,
2977
+ l: -20
2978
+ }), this.pie12 = this.pie12 || r(this.primaryColor, {
2979
+ h: 120,
2980
+ l: -10
2981
+ }), 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 || r(this.primaryColor, {
2982
+ r: 5,
2983
+ g: 5,
2984
+ b: 5
2985
+ }), this.quadrant3Fill = this.quadrant3Fill || r(this.primaryColor, {
2986
+ r: 10,
2987
+ g: 10,
2988
+ b: 10
2989
+ }), this.quadrant4Fill = this.quadrant4Fill || r(this.primaryColor, {
2990
+ r: 15,
2991
+ g: 15,
2992
+ b: 15
2993
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || r(this.primaryTextColor, {
2994
+ r: -5,
2995
+ g: -5,
2996
+ b: -5
2997
+ }), this.quadrant3TextFill = this.quadrant3TextFill || r(this.primaryTextColor, {
2998
+ r: -10,
2999
+ g: -10,
3000
+ b: -10
3001
+ }), this.quadrant4TextFill = this.quadrant4TextFill || r(this.primaryTextColor, {
3002
+ r: -15,
3003
+ g: -15,
3004
+ b: -15
3005
+ }), this.quadrantPointFill = this.quadrantPointFill || K(this.quadrant1Fill) ? n(this.quadrant1Fill) : c(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 = {
3006
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
3007
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
3008
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
3009
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
3010
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
3011
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
3012
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
3013
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
3014
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
3015
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
3016
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
3017
+ }, 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 ? c(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 || r(this.primaryColor, { h: -30 }), this.git4 = this.git4 || r(this.primaryColor, { h: -60 }), this.git5 = this.git5 || r(this.primaryColor, { h: -90 }), this.git6 = this.git6 || r(this.primaryColor, { h: 60 }), this.git7 = this.git7 || r(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = n(this.git0, 25), this.git1 = n(this.git1, 25), this.git2 = n(this.git2, 25), this.git3 = n(this.git3, 25), this.git4 = n(this.git4, 25), this.git5 = n(this.git5, 25), this.git6 = n(this.git6, 25), this.git7 = n(this.git7, 25)) : (this.git0 = c(this.git0, 25), this.git1 = c(this.git1, 25), this.git2 = c(this.git2, 25), this.git3 = c(this.git3, 25), this.git4 = c(this.git4, 25), this.git5 = c(this.git5, 25), this.git6 = c(this.git6, 25), this.git7 = c(this.git7, 25)), this.gitInv0 = this.gitInv0 || a(this.git0), this.gitInv1 = this.gitInv1 || a(this.git1), this.gitInv2 = this.gitInv2 || a(this.git2), this.gitInv3 = this.gitInv3 || a(this.git3), this.gitInv4 = this.gitInv4 || a(this.git4), this.gitInv5 = this.gitInv5 || a(this.git5), this.gitInv6 = this.gitInv6 || a(this.git6), this.gitInv7 = this.gitInv7 || a(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 || ot, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || st;
3018
+ }
3019
+ calculate(t) {
3020
+ if (typeof t != "object") {
3021
+ this.updateColors();
3022
+ return;
3023
+ }
3024
+ const i = Object.keys(t);
3025
+ i.forEach((e) => {
3026
+ this[e] = t[e];
3027
+ }), this.updateColors(), i.forEach((e) => {
3028
+ this[e] = t[e];
3029
+ });
3030
+ }
3031
+ }, No = /* @__PURE__ */ d((t) => {
3032
+ const i = new Po();
3033
+ return i.calculate(t), i;
3034
+ }, "getThemeVariables"), Ho = class {
3035
+ static {
3036
+ d(this, "Theme");
3037
+ }
3038
+ constructor() {
3039
+ 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 = m(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 = [
3040
+ "#E879F9",
3041
+ "#2DD4BF",
3042
+ "#FB923C",
3043
+ "#22D3EE",
3044
+ "#4ADE80",
3045
+ "#A78BFA",
3046
+ "#F87171",
3047
+ "#FACC15",
3048
+ "#818CF8",
3049
+ "#A3E635 ",
3050
+ "#38BDF8",
3051
+ "#FB7185"
3052
+ ], this.bkgColorArray = [
3053
+ "#FDF4FF",
3054
+ "#F0FDFA",
3055
+ "#FFF7ED",
3056
+ "#ECFEFF",
3057
+ "#F0FDF4",
3058
+ "#F5F3FF",
3059
+ "#FEF2F2",
3060
+ "#FEFCE8",
3061
+ "#EEF2FF",
3062
+ "#F7FEE7",
3063
+ "#F0F9FF",
3064
+ "#FFF1F2"
3065
+ ], this.filterColor = "#000000";
3066
+ }
3067
+ updateColors() {
3068
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || r(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || r(this.primaryColor, {
3069
+ h: 180,
3070
+ l: 5
3071
+ }), this.primaryBorderColor = this.primaryBorderColor || m(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || m(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || m(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || m(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || a(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || a(this.tertiaryColor), this.lineColor = this.lineColor || a(this.background), this.arrowheadColor = this.arrowheadColor || a(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 ? c(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 || c(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || a(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
3072
+ const t = "#ECECFE", i = "#E9E9F1", e = r(t, {
3073
+ h: 180,
3074
+ l: 5
3075
+ });
3076
+ this.sectionBkgColor = this.sectionBkgColor || e, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || i, this.sectionBkgColor2 = this.sectionBkgColor2 || t, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || t, this.activeTaskBorderColor = this.activeTaskBorderColor || t, this.activeTaskBkgColor = this.activeTaskBkgColor || n(t, 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";
3077
+ for (let s = 0; s < this.THEME_COLOR_LIMIT; s++) this["cScaleInv" + s] = this["cScaleInv" + s] || a(this["cScale" + s]);
3078
+ for (let s = 0; s < this.THEME_COLOR_LIMIT; s++) this.darkMode ? this["cScalePeer" + s] = this["cScalePeer" + s] || n(this["cScale" + s], 10) : this["cScalePeer" + s] = this["cScalePeer" + s] || c(this["cScale" + s], 10);
3079
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
3080
+ for (let s = 0; s < this.THEME_COLOR_LIMIT; s++) this["cScaleLabel" + s] = this["cScaleLabel" + s] || this.scaleLabelColor;
3081
+ const l = this.darkMode ? -4 : -1;
3082
+ for (let s = 0; s < 5; s++)
3083
+ this["surface" + s] = this["surface" + s] || r(this.mainBkg, {
3084
+ h: 180,
3085
+ s: -15,
3086
+ l: l * (5 + s * 3)
3087
+ }), this["surfacePeer" + s] = this["surfacePeer" + s] || r(this.mainBkg, {
3088
+ h: 180,
3089
+ s: -15,
3090
+ l: l * (8 + s * 3)
3091
+ });
3092
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || t, this.fillType1 = this.fillType1 || i, this.fillType2 = this.fillType2 || r(t, { h: 64 }), this.fillType3 = this.fillType3 || r(i, { h: 64 }), this.fillType4 = this.fillType4 || r(t, { h: -64 }), this.fillType5 = this.fillType5 || r(i, { h: -64 }), this.fillType6 = this.fillType6 || r(t, { h: 128 }), this.fillType7 = this.fillType7 || r(i, { h: 128 }), this.pie1 = this.pie1 || t, this.pie2 = this.pie2 || i, this.pie3 = this.pie3 || e, this.pie4 = this.pie4 || r(t, { l: -10 }), this.pie5 = this.pie5 || r(i, { l: -10 }), this.pie6 = this.pie6 || r(e, { l: -10 }), this.pie7 = this.pie7 || r(t, {
3093
+ h: 60,
3094
+ l: -10
3095
+ }), this.pie8 = this.pie8 || r(t, {
3096
+ h: -60,
3097
+ l: -10
3098
+ }), this.pie9 = this.pie9 || r(t, {
3099
+ h: 120,
3100
+ l: 0
3101
+ }), this.pie10 = this.pie10 || r(t, {
3102
+ h: 60,
3103
+ l: -20
3104
+ }), this.pie11 = this.pie11 || r(t, {
3105
+ h: -60,
3106
+ l: -20
3107
+ }), this.pie12 = this.pie12 || r(t, {
3108
+ h: 120,
3109
+ l: -10
3110
+ }), 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 || t, this.quadrant2Fill = this.quadrant2Fill || r(t, {
3111
+ r: 5,
3112
+ g: 5,
3113
+ b: 5
3114
+ }), this.quadrant3Fill = this.quadrant3Fill || r(t, {
3115
+ r: 10,
3116
+ g: 10,
3117
+ b: 10
3118
+ }), this.quadrant4Fill = this.quadrant4Fill || r(t, {
3119
+ r: 15,
3120
+ g: 15,
3121
+ b: 15
3122
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || r(this.primaryTextColor, {
3123
+ r: -5,
3124
+ g: -5,
3125
+ b: -5
3126
+ }), this.quadrant3TextFill = this.quadrant3TextFill || r(this.primaryTextColor, {
3127
+ r: -10,
3128
+ g: -10,
3129
+ b: -10
3130
+ }), this.quadrant4TextFill = this.quadrant4TextFill || r(this.primaryTextColor, {
3131
+ r: -15,
3132
+ g: -15,
3133
+ b: -15
3134
+ }), this.quadrantPointFill = this.quadrantPointFill || K(this.quadrant1Fill) ? n(this.quadrant1Fill) : c(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 = {
3135
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
3136
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
3137
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
3138
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
3139
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
3140
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
3141
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
3142
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
3143
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
3144
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
3145
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
3146
+ }, this.requirementBackground = this.requirementBackground || t, 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 ? c(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || t, this.git1 = this.git1 || i, this.git2 = this.git2 || e, this.git3 = this.git3 || r(t, { h: -30 }), this.git4 = this.git4 || r(t, { h: -60 }), this.git5 = this.git5 || r(t, { h: -90 }), this.git6 = this.git6 || r(t, { h: 60 }), this.git7 = this.git7 || r(t, { h: 120 }), this.darkMode ? (this.git0 = n(this.git0, 25), this.git1 = n(this.git1, 25), this.git2 = n(this.git2, 25), this.git3 = n(this.git3, 25), this.git4 = n(this.git4, 25), this.git5 = n(this.git5, 25), this.git6 = n(this.git6, 25), this.git7 = n(this.git7, 25)) : (this.git0 = c(this.git0, 25), this.git1 = c(this.git1, 25), this.git2 = c(this.git2, 25), this.git3 = c(this.git3, 25), this.git4 = c(this.git4, 25), this.git5 = c(this.git5, 25), this.git6 = c(this.git6, 25), this.git7 = c(this.git7, 25)), this.gitInv0 = this.gitInv0 || a(this.git0), this.gitInv1 = this.gitInv1 || a(this.git1), this.gitInv2 = this.gitInv2 || a(this.git2), this.gitInv3 = this.gitInv3 || a(this.git3), this.gitInv4 = this.gitInv4 || a(this.git4), this.gitInv5 = this.gitInv5 || a(this.git5), this.gitInv6 = this.gitInv6 || a(this.git6), this.gitInv7 = this.gitInv7 || a(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 || ot, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || st;
3147
+ }
3148
+ calculate(t) {
3149
+ if (typeof t != "object") {
3150
+ this.updateColors();
3151
+ return;
3152
+ }
3153
+ const i = Object.keys(t);
3154
+ i.forEach((e) => {
3155
+ this[e] = t[e];
3156
+ }), this.updateColors(), i.forEach((e) => {
3157
+ this[e] = t[e];
3158
+ });
3159
+ }
3160
+ }, Uo = /* @__PURE__ */ d((t) => {
3161
+ const i = new Ho();
3162
+ return i.calculate(t), i;
3163
+ }, "getThemeVariables"), Go = class {
3164
+ static {
3165
+ d(this, "Theme");
3166
+ }
3167
+ constructor() {
3168
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = n(this.primaryColor, 16), this.tertiaryColor = r(this.primaryColor, { h: -160 }), this.primaryBorderColor = a(this.background), this.secondaryBorderColor = m(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = m(this.tertiaryColor, this.darkMode), this.primaryTextColor = a(this.primaryColor), this.secondaryTextColor = a(this.secondaryColor), this.tertiaryTextColor = a(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = n(a("#323D47"), 10), this.border1 = "#ccc", this.border2 = pt(255, 255, 255, 0.25), this.arrowheadColor = a(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 = [
3169
+ "#E879F9",
3170
+ "#2DD4BF",
3171
+ "#FB923C",
3172
+ "#22D3EE",
3173
+ "#4ADE80",
3174
+ "#A78BFA",
3175
+ "#F87171",
3176
+ "#FACC15",
3177
+ "#818CF8",
3178
+ "#A3E635 ",
3179
+ "#38BDF8",
3180
+ "#FB7185"
3181
+ ], this.bkgColorArray = [], this.filterColor = "#FFFFFF";
3182
+ }
3183
+ updateColors() {
3184
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || r(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || r(this.primaryColor, {
3185
+ h: 180,
3186
+ l: 5
3187
+ }), this.primaryBorderColor = this.primaryBorderColor || m(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || m(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || m(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || m(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || a(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || a(this.tertiaryColor), this.lineColor = this.lineColor || a(this.background), this.arrowheadColor = this.arrowheadColor || a(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 ? c(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 || c(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || a(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 || n(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";
3188
+ for (let i = 0; i < this.THEME_COLOR_LIMIT; i++) this["cScaleInv" + i] = this["cScaleInv" + i] || a(this["cScale" + i]);
3189
+ for (let i = 0; i < this.THEME_COLOR_LIMIT; i++) this.darkMode ? this["cScalePeer" + i] = this["cScalePeer" + i] || n(this["cScale" + i], 10) : this["cScalePeer" + i] = this["cScalePeer" + i] || c(this["cScale" + i], 10);
3190
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
3191
+ for (let i = 0; i < this.THEME_COLOR_LIMIT; i++) this["cScaleLabel" + i] = c(this["cScale" + i], 75);
3192
+ const t = this.darkMode ? -4 : -1;
3193
+ for (let i = 0; i < 5; i++)
3194
+ this["surface" + i] = this["surface" + i] || r(this.mainBkg, {
3195
+ h: 180,
3196
+ s: -15,
3197
+ l: t * (5 + i * 3)
3198
+ }), this["surfacePeer" + i] = this["surfacePeer" + i] || r(this.mainBkg, {
3199
+ h: 180,
3200
+ s: -15,
3201
+ l: t * (8 + i * 3)
3202
+ });
3203
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || r(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || r(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || r(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || r(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || r(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || r(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 || r(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || r(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || r(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || r(this.primaryColor, {
3204
+ h: 60,
3205
+ l: -10
3206
+ }), this.pie8 = this.pie8 || r(this.primaryColor, {
3207
+ h: -60,
3208
+ l: -10
3209
+ }), this.pie9 = this.pie9 || r(this.primaryColor, {
3210
+ h: 120,
3211
+ l: 0
3212
+ }), this.pie10 = this.pie10 || r(this.primaryColor, {
3213
+ h: 60,
3214
+ l: -20
3215
+ }), this.pie11 = this.pie11 || r(this.primaryColor, {
3216
+ h: -60,
3217
+ l: -20
3218
+ }), this.pie12 = this.pie12 || r(this.primaryColor, {
3219
+ h: 120,
3220
+ l: -10
3221
+ }), 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 || r(this.primaryColor, {
3222
+ r: 5,
3223
+ g: 5,
3224
+ b: 5
3225
+ }), this.quadrant3Fill = this.quadrant3Fill || r(this.primaryColor, {
3226
+ r: 10,
3227
+ g: 10,
3228
+ b: 10
3229
+ }), this.quadrant4Fill = this.quadrant4Fill || r(this.primaryColor, {
3230
+ r: 15,
3231
+ g: 15,
3232
+ b: 15
3233
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || r(this.primaryTextColor, {
3234
+ r: -5,
3235
+ g: -5,
3236
+ b: -5
3237
+ }), this.quadrant3TextFill = this.quadrant3TextFill || r(this.primaryTextColor, {
3238
+ r: -10,
3239
+ g: -10,
3240
+ b: -10
3241
+ }), this.quadrant4TextFill = this.quadrant4TextFill || r(this.primaryTextColor, {
3242
+ r: -15,
3243
+ g: -15,
3244
+ b: -15
3245
+ }), this.quadrantPointFill = this.quadrantPointFill || K(this.quadrant1Fill) ? n(this.quadrant1Fill) : c(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 = {
3246
+ backgroundColor: this.xyChart?.backgroundColor || this.background,
3247
+ titleColor: this.xyChart?.titleColor || this.primaryTextColor,
3248
+ xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
3249
+ xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
3250
+ xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
3251
+ xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
3252
+ yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
3253
+ yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
3254
+ yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
3255
+ yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
3256
+ plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
3257
+ }, 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 ? c(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 || r(this.primaryColor, { h: -30 }), this.git4 = this.git4 || r(this.primaryColor, { h: -60 }), this.git5 = this.git5 || r(this.primaryColor, { h: -90 }), this.git6 = this.git6 || r(this.primaryColor, { h: 60 }), this.git7 = this.git7 || r(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = n(this.git0, 25), this.git1 = n(this.git1, 25), this.git2 = n(this.git2, 25), this.git3 = n(this.git3, 25), this.git4 = n(this.git4, 25), this.git5 = n(this.git5, 25), this.git6 = n(this.git6, 25), this.git7 = n(this.git7, 25)) : (this.git0 = c(this.git0, 25), this.git1 = c(this.git1, 25), this.git2 = c(this.git2, 25), this.git3 = c(this.git3, 25), this.git4 = c(this.git4, 25), this.git5 = c(this.git5, 25), this.git6 = c(this.git6, 25), this.git7 = c(this.git7, 25)), this.gitInv0 = this.gitInv0 || a(this.git0), this.gitInv1 = this.gitInv1 || a(this.git1), this.gitInv2 = this.gitInv2 || a(this.git2), this.gitInv3 = this.gitInv3 || a(this.git3), this.gitInv4 = this.gitInv4 || a(this.git4), this.gitInv5 = this.gitInv5 || a(this.git5), this.gitInv6 = this.gitInv6 || a(this.git6), this.gitInv7 = this.gitInv7 || a(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 || ot, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || st;
3258
+ }
3259
+ calculate(t) {
3260
+ if (typeof t != "object") {
3261
+ this.updateColors();
3262
+ return;
3263
+ }
3264
+ const i = Object.keys(t);
3265
+ i.forEach((e) => {
3266
+ this[e] = t[e];
3267
+ }), this.updateColors(), i.forEach((e) => {
3268
+ this[e] = t[e];
3269
+ });
3270
+ }
3271
+ }, Dt = {
3272
+ base: { getThemeVariables: Fo },
3273
+ dark: { getThemeVariables: vo },
3274
+ default: { getThemeVariables: Eo },
3275
+ forest: { getThemeVariables: wo },
3276
+ neutral: { getThemeVariables: qo },
3277
+ neo: { getThemeVariables: Mo },
3278
+ "neo-dark": { getThemeVariables: zo },
3279
+ redux: { getThemeVariables: Ro },
3280
+ "redux-dark": { getThemeVariables: No },
3281
+ "redux-color": { getThemeVariables: Uo },
3282
+ "redux-dark-color": { getThemeVariables: /* @__PURE__ */ d((t) => {
3283
+ const i = new Go();
3284
+ return i.calculate(t), i;
3285
+ }, "getThemeVariables") }
3286
+ }, q = {
3287
+ flowchart: {
3288
+ useMaxWidth: !0,
3289
+ titleTopMargin: 25,
3290
+ subGraphTitleMargin: {
3291
+ top: 0,
3292
+ bottom: 0
3293
+ },
3294
+ diagramPadding: 8,
3295
+ htmlLabels: null,
3296
+ nodeSpacing: 50,
3297
+ rankSpacing: 50,
3298
+ curve: "basis",
3299
+ padding: 15,
3300
+ defaultRenderer: "dagre-wrapper",
3301
+ wrappingWidth: 200,
3302
+ inheritDir: !1
3303
+ },
3304
+ swimlane: {
3305
+ useMaxWidth: !0,
3306
+ lineHops: "arc",
3307
+ ignoreCrossLaneEdges: !0,
3308
+ optimizeRanksByCrossings: !0,
3309
+ automaticLaneOrdering: !1
3310
+ },
3311
+ sequence: {
3312
+ useMaxWidth: !0,
3313
+ hideUnusedParticipants: !1,
3314
+ activationWidth: 10,
3315
+ diagramMarginX: 50,
3316
+ diagramMarginY: 10,
3317
+ actorMargin: 50,
3318
+ width: 150,
3319
+ height: 65,
3320
+ boxMargin: 10,
3321
+ boxTextMargin: 5,
3322
+ noteMargin: 10,
3323
+ messageMargin: 35,
3324
+ messageAlign: "center",
3325
+ mirrorActors: !0,
3326
+ forceMenus: !1,
3327
+ bottomMarginAdj: 1,
3328
+ rightAngles: !1,
3329
+ showSequenceNumbers: !1,
3330
+ actorFontSize: 14,
3331
+ actorFontFamily: '"Open Sans", sans-serif',
3332
+ actorFontWeight: 400,
3333
+ noteFontSize: 14,
3334
+ noteFontFamily: '"trebuchet ms", verdana, arial, sans-serif',
3335
+ noteFontWeight: 400,
3336
+ noteAlign: "center",
3337
+ messageFontSize: 16,
3338
+ messageFontFamily: '"trebuchet ms", verdana, arial, sans-serif',
3339
+ messageFontWeight: 400,
3340
+ wrap: !1,
3341
+ wrapPadding: 10,
3342
+ labelBoxWidth: 50,
3343
+ labelBoxHeight: 20
3344
+ },
3345
+ gantt: {
3346
+ useMaxWidth: !0,
3347
+ titleTopMargin: 25,
3348
+ barHeight: 20,
3349
+ barGap: 4,
3350
+ topPadding: 50,
3351
+ rightPadding: 75,
3352
+ leftPadding: 75,
3353
+ gridLineStartPadding: 35,
3354
+ fontSize: 11,
3355
+ sectionFontSize: 11,
3356
+ numberSectionStyles: 4,
3357
+ axisFormat: "%Y-%m-%d",
3358
+ topAxis: !1,
3359
+ displayMode: "",
3360
+ weekday: "sunday"
3361
+ },
3362
+ journey: {
3363
+ useMaxWidth: !0,
3364
+ diagramMarginX: 50,
3365
+ diagramMarginY: 10,
3366
+ leftMargin: 150,
3367
+ maxLabelWidth: 360,
3368
+ width: 150,
3369
+ height: 50,
3370
+ boxMargin: 10,
3371
+ boxTextMargin: 5,
3372
+ noteMargin: 10,
3373
+ messageMargin: 35,
3374
+ messageAlign: "center",
3375
+ bottomMarginAdj: 1,
3376
+ rightAngles: !1,
3377
+ taskFontSize: 14,
3378
+ taskFontFamily: '"Open Sans", sans-serif',
3379
+ taskMargin: 50,
3380
+ activationWidth: 10,
3381
+ textPlacement: "fo",
3382
+ actorColours: [
3383
+ "#8FBC8F",
3384
+ "#7CFC00",
3385
+ "#00FFFF",
3386
+ "#20B2AA",
3387
+ "#B0E0E6",
3388
+ "#FFFFE0"
3389
+ ],
3390
+ sectionFills: [
3391
+ "#191970",
3392
+ "#8B008B",
3393
+ "#4B0082",
3394
+ "#2F4F4F",
3395
+ "#800000",
3396
+ "#8B4513",
3397
+ "#00008B"
3398
+ ],
3399
+ sectionColours: ["#fff"],
3400
+ titleColor: "",
3401
+ titleFontFamily: '"trebuchet ms", verdana, arial, sans-serif',
3402
+ titleFontSize: "4ex"
3403
+ },
3404
+ class: {
3405
+ useMaxWidth: !0,
3406
+ titleTopMargin: 25,
3407
+ arrowMarkerAbsolute: !1,
3408
+ dividerMargin: 10,
3409
+ padding: 5,
3410
+ textHeight: 10,
3411
+ defaultRenderer: "dagre-wrapper",
3412
+ htmlLabels: !1,
3413
+ hideEmptyMembersBox: !1,
3414
+ hierarchicalNamespaces: !0
3415
+ },
3416
+ state: {
3417
+ useMaxWidth: !0,
3418
+ titleTopMargin: 25,
3419
+ dividerMargin: 10,
3420
+ sizeUnit: 5,
3421
+ padding: 8,
3422
+ textHeight: 10,
3423
+ titleShift: -15,
3424
+ noteMargin: 10,
3425
+ forkWidth: 70,
3426
+ forkHeight: 7,
3427
+ miniPadding: 2,
3428
+ fontSizeFactor: 5.02,
3429
+ fontSize: 24,
3430
+ labelHeight: 16,
3431
+ edgeLengthFactor: "20",
3432
+ compositTitleSize: 35,
3433
+ radius: 5,
3434
+ defaultRenderer: "dagre-wrapper"
3435
+ },
3436
+ er: {
3437
+ useMaxWidth: !0,
3438
+ titleTopMargin: 25,
3439
+ diagramPadding: 20,
3440
+ layoutDirection: "TB",
3441
+ minEntityWidth: 100,
3442
+ minEntityHeight: 75,
3443
+ entityPadding: 15,
3444
+ nodeSpacing: 140,
3445
+ rankSpacing: 80,
3446
+ stroke: "gray",
3447
+ fill: "honeydew",
3448
+ fontSize: 12
3449
+ },
3450
+ pie: {
3451
+ useMaxWidth: !0,
3452
+ textPosition: 0.75,
3453
+ donutHole: 0,
3454
+ legendPosition: "right",
3455
+ highlightSlice: ""
3456
+ },
3457
+ quadrantChart: {
3458
+ useMaxWidth: !0,
3459
+ chartWidth: 500,
3460
+ chartHeight: 500,
3461
+ titleFontSize: 20,
3462
+ titlePadding: 10,
3463
+ quadrantPadding: 5,
3464
+ xAxisLabelPadding: 5,
3465
+ yAxisLabelPadding: 5,
3466
+ xAxisLabelFontSize: 16,
3467
+ yAxisLabelFontSize: 16,
3468
+ quadrantLabelFontSize: 16,
3469
+ quadrantTextTopPadding: 5,
3470
+ pointTextPadding: 5,
3471
+ pointLabelFontSize: 12,
3472
+ pointRadius: 5,
3473
+ xAxisPosition: "top",
3474
+ yAxisPosition: "left",
3475
+ quadrantInternalBorderStrokeWidth: 1,
3476
+ quadrantExternalBorderStrokeWidth: 2
3477
+ },
3478
+ xyChart: {
3479
+ useMaxWidth: !0,
3480
+ width: 700,
3481
+ height: 500,
3482
+ titleFontSize: 20,
3483
+ titlePadding: 10,
3484
+ showDataLabel: !1,
3485
+ showDataLabelOutsideBar: !1,
3486
+ showTitle: !0,
3487
+ xAxis: {
3488
+ $ref: "#/$defs/XYChartAxisConfig",
3489
+ showLabel: !0,
3490
+ labelFontSize: 14,
3491
+ labelPadding: 5,
3492
+ showTitle: !0,
3493
+ titleFontSize: 16,
3494
+ titlePadding: 5,
3495
+ showTick: !0,
3496
+ tickLength: 5,
3497
+ tickWidth: 2,
3498
+ showAxisLine: !0,
3499
+ axisLineWidth: 2,
3500
+ labelRotation: 0
3501
+ },
3502
+ yAxis: {
3503
+ $ref: "#/$defs/XYChartAxisConfig",
3504
+ showLabel: !0,
3505
+ labelFontSize: 14,
3506
+ labelPadding: 5,
3507
+ showTitle: !0,
3508
+ titleFontSize: 16,
3509
+ titlePadding: 5,
3510
+ showTick: !0,
3511
+ tickLength: 5,
3512
+ tickWidth: 2,
3513
+ showAxisLine: !0,
3514
+ axisLineWidth: 2,
3515
+ labelRotation: 0
3516
+ },
3517
+ chartOrientation: "vertical",
3518
+ plotReservedSpacePercent: 50
3519
+ },
3520
+ requirement: {
3521
+ useMaxWidth: !0,
3522
+ rect_fill: "#f9f9f9",
3523
+ text_color: "#333",
3524
+ rect_border_size: "0.5px",
3525
+ rect_border_color: "#bbb",
3526
+ rect_min_width: 200,
3527
+ rect_min_height: 200,
3528
+ fontSize: 14,
3529
+ rect_padding: 10,
3530
+ line_height: 20
3531
+ },
3532
+ mindmap: {
3533
+ useMaxWidth: !0,
3534
+ padding: 10,
3535
+ maxNodeWidth: 200,
3536
+ layoutAlgorithm: "cose-bilkent"
3537
+ },
3538
+ ishikawa: {
3539
+ useMaxWidth: !0,
3540
+ diagramPadding: 20
3541
+ },
3542
+ kanban: {
3543
+ useMaxWidth: !0,
3544
+ padding: 8,
3545
+ sectionWidth: 200,
3546
+ ticketBaseUrl: ""
3547
+ },
3548
+ timeline: {
3549
+ useMaxWidth: !0,
3550
+ diagramMarginX: 50,
3551
+ diagramMarginY: 10,
3552
+ leftMargin: 150,
3553
+ width: 150,
3554
+ height: 50,
3555
+ boxMargin: 10,
3556
+ boxTextMargin: 5,
3557
+ noteMargin: 10,
3558
+ messageMargin: 35,
3559
+ messageAlign: "center",
3560
+ bottomMarginAdj: 1,
3561
+ rightAngles: !1,
3562
+ taskFontSize: 14,
3563
+ taskFontFamily: '"Open Sans", sans-serif',
3564
+ taskMargin: 50,
3565
+ activationWidth: 10,
3566
+ textPlacement: "fo",
3567
+ actorColours: [
3568
+ "#8FBC8F",
3569
+ "#7CFC00",
3570
+ "#00FFFF",
3571
+ "#20B2AA",
3572
+ "#B0E0E6",
3573
+ "#FFFFE0"
3574
+ ],
3575
+ sectionFills: [
3576
+ "#191970",
3577
+ "#8B008B",
3578
+ "#4B0082",
3579
+ "#2F4F4F",
3580
+ "#800000",
3581
+ "#8B4513",
3582
+ "#00008B"
3583
+ ],
3584
+ sectionColours: ["#fff"],
3585
+ disableMulticolor: !1
3586
+ },
3587
+ gitGraph: {
3588
+ useMaxWidth: !0,
3589
+ titleTopMargin: 25,
3590
+ diagramPadding: 8,
3591
+ nodeLabel: {
3592
+ width: 75,
3593
+ height: 100,
3594
+ x: -25,
3595
+ y: 0
3596
+ },
3597
+ mainBranchName: "main",
3598
+ mainBranchOrder: 0,
3599
+ showCommitLabel: !0,
3600
+ showBranches: !0,
3601
+ rotateCommitLabel: !0,
3602
+ parallelCommits: !1,
3603
+ arrowMarkerAbsolute: !1
3604
+ },
3605
+ c4: {
3606
+ useMaxWidth: !0,
3607
+ diagramMarginX: 50,
3608
+ diagramMarginY: 10,
3609
+ c4ShapeMargin: 50,
3610
+ c4ShapePadding: 20,
3611
+ width: 216,
3612
+ height: 60,
3613
+ boxMargin: 10,
3614
+ c4ShapeInRow: 4,
3615
+ nextLinePaddingX: 0,
3616
+ c4BoundaryInRow: 2,
3617
+ personFontSize: 14,
3618
+ personFontFamily: '"Open Sans", sans-serif',
3619
+ personFontWeight: "normal",
3620
+ external_personFontSize: 14,
3621
+ external_personFontFamily: '"Open Sans", sans-serif',
3622
+ external_personFontWeight: "normal",
3623
+ systemFontSize: 14,
3624
+ systemFontFamily: '"Open Sans", sans-serif',
3625
+ systemFontWeight: "normal",
3626
+ external_systemFontSize: 14,
3627
+ external_systemFontFamily: '"Open Sans", sans-serif',
3628
+ external_systemFontWeight: "normal",
3629
+ system_dbFontSize: 14,
3630
+ system_dbFontFamily: '"Open Sans", sans-serif',
3631
+ system_dbFontWeight: "normal",
3632
+ external_system_dbFontSize: 14,
3633
+ external_system_dbFontFamily: '"Open Sans", sans-serif',
3634
+ external_system_dbFontWeight: "normal",
3635
+ system_queueFontSize: 14,
3636
+ system_queueFontFamily: '"Open Sans", sans-serif',
3637
+ system_queueFontWeight: "normal",
3638
+ external_system_queueFontSize: 14,
3639
+ external_system_queueFontFamily: '"Open Sans", sans-serif',
3640
+ external_system_queueFontWeight: "normal",
3641
+ boundaryFontSize: 14,
3642
+ boundaryFontFamily: '"Open Sans", sans-serif',
3643
+ boundaryFontWeight: "normal",
3644
+ messageFontSize: 12,
3645
+ messageFontFamily: '"Open Sans", sans-serif',
3646
+ messageFontWeight: "normal",
3647
+ containerFontSize: 14,
3648
+ containerFontFamily: '"Open Sans", sans-serif',
3649
+ containerFontWeight: "normal",
3650
+ external_containerFontSize: 14,
3651
+ external_containerFontFamily: '"Open Sans", sans-serif',
3652
+ external_containerFontWeight: "normal",
3653
+ container_dbFontSize: 14,
3654
+ container_dbFontFamily: '"Open Sans", sans-serif',
3655
+ container_dbFontWeight: "normal",
3656
+ external_container_dbFontSize: 14,
3657
+ external_container_dbFontFamily: '"Open Sans", sans-serif',
3658
+ external_container_dbFontWeight: "normal",
3659
+ container_queueFontSize: 14,
3660
+ container_queueFontFamily: '"Open Sans", sans-serif',
3661
+ container_queueFontWeight: "normal",
3662
+ external_container_queueFontSize: 14,
3663
+ external_container_queueFontFamily: '"Open Sans", sans-serif',
3664
+ external_container_queueFontWeight: "normal",
3665
+ componentFontSize: 14,
3666
+ componentFontFamily: '"Open Sans", sans-serif',
3667
+ componentFontWeight: "normal",
3668
+ external_componentFontSize: 14,
3669
+ external_componentFontFamily: '"Open Sans", sans-serif',
3670
+ external_componentFontWeight: "normal",
3671
+ component_dbFontSize: 14,
3672
+ component_dbFontFamily: '"Open Sans", sans-serif',
3673
+ component_dbFontWeight: "normal",
3674
+ external_component_dbFontSize: 14,
3675
+ external_component_dbFontFamily: '"Open Sans", sans-serif',
3676
+ external_component_dbFontWeight: "normal",
3677
+ component_queueFontSize: 14,
3678
+ component_queueFontFamily: '"Open Sans", sans-serif',
3679
+ component_queueFontWeight: "normal",
3680
+ external_component_queueFontSize: 14,
3681
+ external_component_queueFontFamily: '"Open Sans", sans-serif',
3682
+ external_component_queueFontWeight: "normal",
3683
+ wrap: !0,
3684
+ wrapPadding: 10,
3685
+ person_bg_color: "#08427B",
3686
+ person_border_color: "#073B6F",
3687
+ external_person_bg_color: "#686868",
3688
+ external_person_border_color: "#8A8A8A",
3689
+ system_bg_color: "#1168BD",
3690
+ system_border_color: "#3C7FC0",
3691
+ system_db_bg_color: "#1168BD",
3692
+ system_db_border_color: "#3C7FC0",
3693
+ system_queue_bg_color: "#1168BD",
3694
+ system_queue_border_color: "#3C7FC0",
3695
+ external_system_bg_color: "#999999",
3696
+ external_system_border_color: "#8A8A8A",
3697
+ external_system_db_bg_color: "#999999",
3698
+ external_system_db_border_color: "#8A8A8A",
3699
+ external_system_queue_bg_color: "#999999",
3700
+ external_system_queue_border_color: "#8A8A8A",
3701
+ container_bg_color: "#438DD5",
3702
+ container_border_color: "#3C7FC0",
3703
+ container_db_bg_color: "#438DD5",
3704
+ container_db_border_color: "#3C7FC0",
3705
+ container_queue_bg_color: "#438DD5",
3706
+ container_queue_border_color: "#3C7FC0",
3707
+ external_container_bg_color: "#B3B3B3",
3708
+ external_container_border_color: "#A6A6A6",
3709
+ external_container_db_bg_color: "#B3B3B3",
3710
+ external_container_db_border_color: "#A6A6A6",
3711
+ external_container_queue_bg_color: "#B3B3B3",
3712
+ external_container_queue_border_color: "#A6A6A6",
3713
+ component_bg_color: "#85BBF0",
3714
+ component_border_color: "#78A8D8",
3715
+ component_db_bg_color: "#85BBF0",
3716
+ component_db_border_color: "#78A8D8",
3717
+ component_queue_bg_color: "#85BBF0",
3718
+ component_queue_border_color: "#78A8D8",
3719
+ external_component_bg_color: "#CCCCCC",
3720
+ external_component_border_color: "#BFBFBF",
3721
+ external_component_db_bg_color: "#CCCCCC",
3722
+ external_component_db_border_color: "#BFBFBF",
3723
+ external_component_queue_bg_color: "#CCCCCC",
3724
+ external_component_queue_border_color: "#BFBFBF"
3725
+ },
3726
+ sankey: {
3727
+ useMaxWidth: !0,
3728
+ width: 600,
3729
+ height: 400,
3730
+ linkColor: "gradient",
3731
+ nodeAlignment: "justify",
3732
+ showValues: !0,
3733
+ prefix: "",
3734
+ suffix: "",
3735
+ nodeWidth: 10,
3736
+ nodePadding: 12,
3737
+ labelStyle: "legacy"
3738
+ },
3739
+ block: {
3740
+ useMaxWidth: !0,
3741
+ padding: 8
3742
+ },
3743
+ packet: {
3744
+ useMaxWidth: !0,
3745
+ rowHeight: 32,
3746
+ bitWidth: 32,
3747
+ bitsPerRow: 32,
3748
+ showBits: !0,
3749
+ paddingX: 5,
3750
+ paddingY: 5
3751
+ },
3752
+ treeView: {
3753
+ useMaxWidth: !0,
3754
+ rowIndent: 10,
3755
+ paddingX: 5,
3756
+ paddingY: 5,
3757
+ lineThickness: 1,
3758
+ showIcons: !1,
3759
+ defaultIconPack: "",
3760
+ filenameIcons: {},
3761
+ extensionIcons: {}
3762
+ },
3763
+ architecture: {
3764
+ useMaxWidth: !0,
3765
+ padding: 40,
3766
+ iconSize: 80,
3767
+ fontSize: 16,
3768
+ randomize: !1,
3769
+ nodeSeparation: 75,
3770
+ idealEdgeLengthMultiplier: 1.5,
3771
+ edgeElasticity: 0.45,
3772
+ numIter: 2500,
3773
+ seed: 1
3774
+ },
3775
+ eventmodeling: {
3776
+ useMaxWidth: !0,
3777
+ padding: 30,
3778
+ rowHeight: 32
3779
+ },
3780
+ radar: {
3781
+ useMaxWidth: !0,
3782
+ width: 600,
3783
+ height: 600,
3784
+ marginTop: 50,
3785
+ marginRight: 50,
3786
+ marginBottom: 50,
3787
+ marginLeft: 50,
3788
+ axisScaleFactor: 1,
3789
+ axisLabelFactor: 1.05,
3790
+ curveTension: 0.17
3791
+ },
3792
+ venn: {
3793
+ useMaxWidth: !0,
3794
+ width: 800,
3795
+ height: 450,
3796
+ padding: 8,
3797
+ useDebugLayout: !1
3798
+ },
3799
+ cynefin: {
3800
+ useMaxWidth: !0,
3801
+ width: 800,
3802
+ height: 600,
3803
+ padding: 40,
3804
+ showDomainDescriptions: !0,
3805
+ boundaryAmplitude: 8,
3806
+ seed: 0
3807
+ },
3808
+ theme: "default",
3809
+ look: "classic",
3810
+ handDrawnSeed: 0,
3811
+ layout: "dagre",
3812
+ maxTextSize: 5e4,
3813
+ maxEdges: 500,
3814
+ darkMode: !1,
3815
+ fontFamily: '"trebuchet ms", verdana, arial, sans-serif;',
3816
+ logLevel: 5,
3817
+ securityLevel: "strict",
3818
+ startOnLoad: !0,
3819
+ arrowMarkerAbsolute: !1,
3820
+ secure: [
3821
+ "secure",
3822
+ "securityLevel",
3823
+ "startOnLoad",
3824
+ "maxTextSize",
3825
+ "suppressErrorRendering",
3826
+ "maxEdges"
3827
+ ],
3828
+ legacyMathML: !1,
3829
+ forceLegacyMathML: !1,
3830
+ deterministicIds: !1,
3831
+ fontSize: 16,
3832
+ markdownAutoWrap: !0,
3833
+ suppressErrorRendering: !1
3834
+ }, Kr = {
3835
+ ...q,
3836
+ deterministicIDSeed: void 0,
3837
+ elk: {
3838
+ mergeEdges: !1,
3839
+ nodePlacementStrategy: "BRANDES_KOEPF",
3840
+ forceNodeModelOrder: !1,
3841
+ considerModelOrder: "NODES_AND_EDGES"
3842
+ },
3843
+ themeCSS: void 0,
3844
+ themeVariables: Dt.default.getThemeVariables(),
3845
+ sequence: {
3846
+ ...q.sequence,
3847
+ messageFont: /* @__PURE__ */ d(function() {
3848
+ return {
3849
+ fontFamily: this.messageFontFamily,
3850
+ fontSize: this.messageFontSize,
3851
+ fontWeight: this.messageFontWeight
3852
+ };
3853
+ }, "messageFont"),
3854
+ noteFont: /* @__PURE__ */ d(function() {
3855
+ return {
3856
+ fontFamily: this.noteFontFamily,
3857
+ fontSize: this.noteFontSize,
3858
+ fontWeight: this.noteFontWeight
3859
+ };
3860
+ }, "noteFont"),
3861
+ actorFont: /* @__PURE__ */ d(function() {
3862
+ return {
3863
+ fontFamily: this.actorFontFamily,
3864
+ fontSize: this.actorFontSize,
3865
+ fontWeight: this.actorFontWeight
3866
+ };
3867
+ }, "actorFont")
3868
+ },
3869
+ class: {
3870
+ hideEmptyMembersBox: !1,
3871
+ hierarchicalNamespaces: !0
3872
+ },
3873
+ gantt: {
3874
+ ...q.gantt,
3875
+ tickInterval: void 0,
3876
+ useWidth: void 0
3877
+ },
3878
+ c4: {
3879
+ ...q.c4,
3880
+ useWidth: void 0,
3881
+ personFont: /* @__PURE__ */ d(function() {
3882
+ return {
3883
+ fontFamily: this.personFontFamily,
3884
+ fontSize: this.personFontSize,
3885
+ fontWeight: this.personFontWeight
3886
+ };
3887
+ }, "personFont"),
3888
+ flowchart: {
3889
+ ...q.flowchart,
3890
+ inheritDir: !1
3891
+ },
3892
+ external_personFont: /* @__PURE__ */ d(function() {
3893
+ return {
3894
+ fontFamily: this.external_personFontFamily,
3895
+ fontSize: this.external_personFontSize,
3896
+ fontWeight: this.external_personFontWeight
3897
+ };
3898
+ }, "external_personFont"),
3899
+ systemFont: /* @__PURE__ */ d(function() {
3900
+ return {
3901
+ fontFamily: this.systemFontFamily,
3902
+ fontSize: this.systemFontSize,
3903
+ fontWeight: this.systemFontWeight
3904
+ };
3905
+ }, "systemFont"),
3906
+ external_systemFont: /* @__PURE__ */ d(function() {
3907
+ return {
3908
+ fontFamily: this.external_systemFontFamily,
3909
+ fontSize: this.external_systemFontSize,
3910
+ fontWeight: this.external_systemFontWeight
3911
+ };
3912
+ }, "external_systemFont"),
3913
+ system_dbFont: /* @__PURE__ */ d(function() {
3914
+ return {
3915
+ fontFamily: this.system_dbFontFamily,
3916
+ fontSize: this.system_dbFontSize,
3917
+ fontWeight: this.system_dbFontWeight
3918
+ };
3919
+ }, "system_dbFont"),
3920
+ external_system_dbFont: /* @__PURE__ */ d(function() {
3921
+ return {
3922
+ fontFamily: this.external_system_dbFontFamily,
3923
+ fontSize: this.external_system_dbFontSize,
3924
+ fontWeight: this.external_system_dbFontWeight
3925
+ };
3926
+ }, "external_system_dbFont"),
3927
+ system_queueFont: /* @__PURE__ */ d(function() {
3928
+ return {
3929
+ fontFamily: this.system_queueFontFamily,
3930
+ fontSize: this.system_queueFontSize,
3931
+ fontWeight: this.system_queueFontWeight
3932
+ };
3933
+ }, "system_queueFont"),
3934
+ external_system_queueFont: /* @__PURE__ */ d(function() {
3935
+ return {
3936
+ fontFamily: this.external_system_queueFontFamily,
3937
+ fontSize: this.external_system_queueFontSize,
3938
+ fontWeight: this.external_system_queueFontWeight
3939
+ };
3940
+ }, "external_system_queueFont"),
3941
+ containerFont: /* @__PURE__ */ d(function() {
3942
+ return {
3943
+ fontFamily: this.containerFontFamily,
3944
+ fontSize: this.containerFontSize,
3945
+ fontWeight: this.containerFontWeight
3946
+ };
3947
+ }, "containerFont"),
3948
+ external_containerFont: /* @__PURE__ */ d(function() {
3949
+ return {
3950
+ fontFamily: this.external_containerFontFamily,
3951
+ fontSize: this.external_containerFontSize,
3952
+ fontWeight: this.external_containerFontWeight
3953
+ };
3954
+ }, "external_containerFont"),
3955
+ container_dbFont: /* @__PURE__ */ d(function() {
3956
+ return {
3957
+ fontFamily: this.container_dbFontFamily,
3958
+ fontSize: this.container_dbFontSize,
3959
+ fontWeight: this.container_dbFontWeight
3960
+ };
3961
+ }, "container_dbFont"),
3962
+ external_container_dbFont: /* @__PURE__ */ d(function() {
3963
+ return {
3964
+ fontFamily: this.external_container_dbFontFamily,
3965
+ fontSize: this.external_container_dbFontSize,
3966
+ fontWeight: this.external_container_dbFontWeight
3967
+ };
3968
+ }, "external_container_dbFont"),
3969
+ container_queueFont: /* @__PURE__ */ d(function() {
3970
+ return {
3971
+ fontFamily: this.container_queueFontFamily,
3972
+ fontSize: this.container_queueFontSize,
3973
+ fontWeight: this.container_queueFontWeight
3974
+ };
3975
+ }, "container_queueFont"),
3976
+ external_container_queueFont: /* @__PURE__ */ d(function() {
3977
+ return {
3978
+ fontFamily: this.external_container_queueFontFamily,
3979
+ fontSize: this.external_container_queueFontSize,
3980
+ fontWeight: this.external_container_queueFontWeight
3981
+ };
3982
+ }, "external_container_queueFont"),
3983
+ componentFont: /* @__PURE__ */ d(function() {
3984
+ return {
3985
+ fontFamily: this.componentFontFamily,
3986
+ fontSize: this.componentFontSize,
3987
+ fontWeight: this.componentFontWeight
3988
+ };
3989
+ }, "componentFont"),
3990
+ external_componentFont: /* @__PURE__ */ d(function() {
3991
+ return {
3992
+ fontFamily: this.external_componentFontFamily,
3993
+ fontSize: this.external_componentFontSize,
3994
+ fontWeight: this.external_componentFontWeight
3995
+ };
3996
+ }, "external_componentFont"),
3997
+ component_dbFont: /* @__PURE__ */ d(function() {
3998
+ return {
3999
+ fontFamily: this.component_dbFontFamily,
4000
+ fontSize: this.component_dbFontSize,
4001
+ fontWeight: this.component_dbFontWeight
4002
+ };
4003
+ }, "component_dbFont"),
4004
+ external_component_dbFont: /* @__PURE__ */ d(function() {
4005
+ return {
4006
+ fontFamily: this.external_component_dbFontFamily,
4007
+ fontSize: this.external_component_dbFontSize,
4008
+ fontWeight: this.external_component_dbFontWeight
4009
+ };
4010
+ }, "external_component_dbFont"),
4011
+ component_queueFont: /* @__PURE__ */ d(function() {
4012
+ return {
4013
+ fontFamily: this.component_queueFontFamily,
4014
+ fontSize: this.component_queueFontSize,
4015
+ fontWeight: this.component_queueFontWeight
4016
+ };
4017
+ }, "component_queueFont"),
4018
+ external_component_queueFont: /* @__PURE__ */ d(function() {
4019
+ return {
4020
+ fontFamily: this.external_component_queueFontFamily,
4021
+ fontSize: this.external_component_queueFontSize,
4022
+ fontWeight: this.external_component_queueFontWeight
4023
+ };
4024
+ }, "external_component_queueFont"),
4025
+ boundaryFont: /* @__PURE__ */ d(function() {
4026
+ return {
4027
+ fontFamily: this.boundaryFontFamily,
4028
+ fontSize: this.boundaryFontSize,
4029
+ fontWeight: this.boundaryFontWeight
4030
+ };
4031
+ }, "boundaryFont"),
4032
+ messageFont: /* @__PURE__ */ d(function() {
4033
+ return {
4034
+ fontFamily: this.messageFontFamily,
4035
+ fontSize: this.messageFontSize,
4036
+ fontWeight: this.messageFontWeight
4037
+ };
4038
+ }, "messageFont")
4039
+ },
4040
+ pie: {
4041
+ ...q.pie,
4042
+ useWidth: 984
4043
+ },
4044
+ xyChart: {
4045
+ ...q.xyChart,
4046
+ useWidth: void 0
4047
+ },
4048
+ requirement: {
4049
+ ...q.requirement,
4050
+ useWidth: void 0
4051
+ },
4052
+ packet: { ...q.packet },
4053
+ eventmodeling: { ...q.eventmodeling },
4054
+ treeView: {
4055
+ ...q.treeView,
4056
+ useWidth: void 0
4057
+ },
4058
+ radar: { ...q.radar },
4059
+ railroad: {
4060
+ ...q.railroad,
4061
+ fontSize: void 0,
4062
+ fontFamily: void 0,
4063
+ terminalFill: void 0,
4064
+ terminalStroke: void 0,
4065
+ terminalTextColor: void 0,
4066
+ nonTerminalFill: void 0,
4067
+ nonTerminalStroke: void 0,
4068
+ nonTerminalTextColor: void 0,
4069
+ lineColor: void 0,
4070
+ markerFill: void 0,
4071
+ commentFill: void 0,
4072
+ commentStroke: void 0,
4073
+ commentTextColor: void 0,
4074
+ specialFill: void 0,
4075
+ specialStroke: void 0,
4076
+ ruleNameColor: void 0
4077
+ },
4078
+ ishikawa: { ...q.ishikawa },
4079
+ sankey: {
4080
+ ...q.sankey,
4081
+ nodeColors: void 0
4082
+ },
4083
+ treemap: {
4084
+ useMaxWidth: !0,
4085
+ padding: 10,
4086
+ diagramPadding: 8,
4087
+ showValues: !0,
4088
+ nodeWidth: 100,
4089
+ nodeHeight: 40,
4090
+ borderWidth: 1,
4091
+ valueFontSize: 12,
4092
+ labelFontSize: 14,
4093
+ valueFormat: ","
4094
+ },
4095
+ venn: { ...q.venn },
4096
+ cynefin: { ...q.cynefin }
4097
+ }, Zr = /* @__PURE__ */ d((t, i = "") => Object.keys(t).reduce((e, l) => Array.isArray(t[l]) ? e : typeof t[l] == "object" && t[l] !== null ? [
4098
+ ...e,
4099
+ i + l,
4100
+ ...Zr(t[l], "")
4101
+ ] : [...e, i + l], []), "keyify"), $o = new Set(Zr(Kr, "")), jo = Kr, Vo = {
4102
+ nodeColors: /^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,
4103
+ filenameIcons: /^[\w-]+(?::[\w-]+)?$/,
4104
+ extensionIcons: /^[\w-]+(?::[\w-]+)?$/
4105
+ }, Yo = /* @__PURE__ */ d((t, i) => {
4106
+ for (const e of Object.keys(t)) {
4107
+ const l = t[e];
4108
+ (e.startsWith("__") || e.includes("proto") || e.includes("constr") || typeof l != "string" || !i.test(l)) && (R.debug("sanitize deleting dictionary entry:", e, l), delete t[e]);
4109
+ }
4110
+ }, "sanitizeDictionaryConfig"), Ui = /* @__PURE__ */ d((t) => {
4111
+ if (R.debug("sanitizeDirective called with", t), !(typeof t != "object" || t == null)) {
4112
+ if (Array.isArray(t)) {
4113
+ t.forEach((i) => Ui(i));
4114
+ return;
4115
+ }
4116
+ for (const i of Object.keys(t)) {
4117
+ if (R.debug("Checking key", i), i.startsWith("__") || i.includes("proto") || i.includes("constr") || !$o.has(i) || t[i] == null) {
4118
+ R.debug("sanitize deleting key: ", i), delete t[i];
4119
+ continue;
4120
+ }
4121
+ if (typeof t[i] == "object") {
4122
+ const e = Vo[i];
4123
+ e ? Yo(t[i], e) : (R.debug("sanitizing object", i), Ui(t[i]));
4124
+ continue;
4125
+ }
4126
+ for (const e of [
4127
+ "themeCSS",
4128
+ "fontFamily",
4129
+ "altFontFamily"
4130
+ ]) i.includes(e) && (R.debug("sanitizing css option", i), t[i] = Xo(t[i]));
4131
+ }
4132
+ if (t.themeVariables) for (const i of Object.keys(t.themeVariables)) {
4133
+ const e = t.themeVariables[i];
4134
+ e?.match && !e.match(/^[\d "#%(),.;A-Za-z]+$/) && (t.themeVariables[i] = "");
4135
+ }
4136
+ R.debug("After sanitization", t);
4137
+ }
4138
+ }, "sanitizeDirective"), Xo = /* @__PURE__ */ d((t) => {
4139
+ let i = 0, e = 0;
4140
+ for (const l of t) {
4141
+ if (i < e) return "{ /* ERROR: Unbalanced CSS */ }";
4142
+ l === "{" ? i++ : l === "}" && e++;
4143
+ }
4144
+ return i !== e ? "{ /* ERROR: Unbalanced CSS */ }" : t;
4145
+ }, "sanitizeCss"), gi = Object.freeze(jo), Jr = /* @__PURE__ */ d((t) => !(t === !1 || [
4146
+ "false",
4147
+ "null",
4148
+ "0"
4149
+ ].includes(String(t).trim().toLowerCase())), "evaluate"), j = P({}, gi), ni, Bt = [], Vt = P({}, gi), ui = /* @__PURE__ */ d((t, i) => {
4150
+ let e = P({}, t), l = {};
4151
+ for (const s of i)
4152
+ Qr(s), l = P(l, s);
4153
+ if (e = P(e, l), l.theme && l.theme in Dt) {
4154
+ const s = P(P({}, ni).themeVariables || {}, l.themeVariables);
4155
+ e.theme && e.theme in Dt && (e.themeVariables = Dt[e.theme].getThemeVariables(s));
4156
+ }
4157
+ return Vt = e, ie(Vt), Vt;
4158
+ }, "updateCurrentConfig"), zs = /* @__PURE__ */ d((t) => (j = P({}, gi), j = P(j, t), t.theme && Dt[t.theme] && (j.themeVariables = Dt[t.theme].getThemeVariables(t.themeVariables)), ui(j, Bt), j), "setSiteConfig"), Ws = /* @__PURE__ */ d((t) => {
4159
+ ni = P({}, t);
4160
+ }, "saveConfigFromInitialize"), Rs = /* @__PURE__ */ d((t) => (j = P(j, t), ui(j, Bt), j), "updateSiteConfig"), Ps = /* @__PURE__ */ d(() => P({}, j), "getSiteConfig"), Ko = /* @__PURE__ */ d((t) => (ie(t), P(Vt, t), $i()), "setConfig"), $i = /* @__PURE__ */ d(() => P({}, Vt), "getConfig"), Qr = /* @__PURE__ */ d((t) => {
4161
+ t && (["secure", ...j.secure ?? []].forEach((i) => {
4162
+ Object.hasOwn(t, i) && (R.debug(`Denied attempt to modify a secure key ${i}`, t[i]), delete t[i]);
4163
+ }), Object.keys(t).forEach((i) => {
4164
+ i.startsWith("__") && delete t[i];
4165
+ }), Object.keys(t).forEach((i) => {
4166
+ typeof t[i] == "string" && (t[i].includes("<") || t[i].includes(">") || t[i].includes("url(data:")) && delete t[i], typeof t[i] == "object" && Qr(t[i]);
4167
+ }));
4168
+ }, "sanitize"), Ns = /* @__PURE__ */ d((t) => {
4169
+ Ui(t), t.fontFamily && !t.themeVariables?.fontFamily && (t.themeVariables = {
4170
+ ...t.themeVariables,
4171
+ fontFamily: t.fontFamily
4172
+ }), Bt.push(t), ui(j, Bt);
4173
+ }, "addDirective"), Hs = /* @__PURE__ */ d((t = j) => {
4174
+ Bt = [], ui(t, Bt);
4175
+ }, "reset"), Zo = {
4176
+ LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",
4177
+ FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
4178
+ }, Pr = {}, te = /* @__PURE__ */ d((t) => {
4179
+ Pr[t] || (R.warn(Zo[t]), Pr[t] = !0);
4180
+ }, "issueWarning"), ie = /* @__PURE__ */ d((t) => {
4181
+ t && (t.lazyLoadedDiagrams || t.loadExternalDiagramsAtStartup) && te("LAZY_LOAD_DEPRECATED");
4182
+ }, "checkConfig"), Us = /* @__PURE__ */ d(() => {
4183
+ let t = {};
4184
+ ni && (t = P(t, ni));
4185
+ for (const i of Bt) t = P(t, i);
4186
+ return t;
4187
+ }, "getUserDefinedConfig"), Jo = /* @__PURE__ */ d((t) => (t.flowchart?.htmlLabels != null && te("FLOWCHART_HTML_LABELS_DEPRECATED"), Jr(t.htmlLabels ?? t.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), Qo = /^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s, ts = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, is = /\s*%%.*\n/gm, rs = class extends Error {
4188
+ static {
4189
+ d(this, "UnknownDiagramError");
4190
+ }
4191
+ constructor(t) {
4192
+ super(t), this.name = "UnknownDiagramError";
4193
+ }
4194
+ }, ci = {}, Gs = /* @__PURE__ */ d(function(t, i) {
4195
+ t = t.replace(Qo, "").replace(ts, "").replace(is, `
4196
+ `);
4197
+ for (const [e, { detector: l }] of Object.entries(ci)) if (l(t, i)) return e;
4198
+ throw new rs(`No diagram type detected matching given configuration for text: ${t}`);
4199
+ }, "detectType"), $s = /* @__PURE__ */ d((...t) => {
4200
+ for (const { id: i, detector: e, loader: l } of t) re(i, e, l);
4201
+ }, "registerLazyLoadedDiagrams"), re = /* @__PURE__ */ d((t, i, e) => {
4202
+ ci[t] && R.warn(`Detector with key ${t} already exists. Overwriting.`), ci[t] = {
4203
+ detector: i,
4204
+ loader: e
4205
+ }, R.debug(`Detector with key ${t} added${e ? " with loader" : ""}`);
4206
+ }, "addDetector"), js = /* @__PURE__ */ d((t) => ci[t].loader, "getDiagramLoader"), Xt = /<br\s*\/?>/gi, es = /* @__PURE__ */ d((t) => t ? se(t).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), os = /* @__PURE__ */ (() => {
4207
+ let t = !1;
4208
+ return () => {
4209
+ t || (ee(), t = !0);
4210
+ };
4211
+ })();
4212
+ function ee() {
4213
+ const t = "data-temp-href-target";
4214
+ Yt.addHook("beforeSanitizeAttributes", (i) => {
4215
+ i.tagName === "A" && i.hasAttribute("target") && i.setAttribute(t, i.getAttribute("target") ?? "");
4216
+ }), Yt.addHook("afterSanitizeAttributes", (i) => {
4217
+ i.tagName === "A" && i.hasAttribute(t) && (i.setAttribute("target", i.getAttribute(t) ?? ""), i.removeAttribute(t), i.getAttribute("target") === "_blank" && i.setAttribute("rel", "noopener"));
4218
+ });
4219
+ }
4220
+ d(ee, "setupDompurifyHooks");
4221
+ var oe = /* @__PURE__ */ d((t) => (os(), Yt.sanitize(t)), "removeScript"), Nr = /* @__PURE__ */ d((t, i) => {
4222
+ if (Jo(i)) {
4223
+ const e = i.securityLevel;
4224
+ e === "antiscript" || e === "strict" || e === "sandbox" ? t = oe(t) : e !== "loose" && (t = se(t), t = t.replace(/</g, "&lt;").replace(/>/g, "&gt;"), t = t.replace(/=/g, "&equals;"), t = hs(t));
4225
+ }
4226
+ return t;
4227
+ }, "sanitizeMore"), zt = /* @__PURE__ */ d((t, i) => t && (i.dompurifyConfig ? t = Yt.sanitize(Nr(t, i), i.dompurifyConfig).toString() : t = Yt.sanitize(Nr(t, i), { FORBID_TAGS: ["style"] }).toString(), t), "sanitizeText"), ss = /* @__PURE__ */ d((t, i) => typeof t == "string" ? zt(t, i) : t.flat().map((e) => zt(e, i)), "sanitizeTextOrArray"), as = /* @__PURE__ */ d((t) => Xt.test(t), "hasBreaks"), ls = /* @__PURE__ */ d((t) => t.split(Xt), "splitBreaks"), hs = /* @__PURE__ */ d((t) => t.replace(/#br#/g, "<br/>"), "placeholderToBreak"), se = /* @__PURE__ */ d((t) => t.replace(Xt, "#br#"), "breakToPlaceholder"), ns = /* @__PURE__ */ d((t) => {
4228
+ let i = "";
4229
+ return t && (i = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, i = CSS.escape(i)), i;
4230
+ }, "getUrl"), cs = /* @__PURE__ */ d(function(...t) {
4231
+ const i = t.filter((e) => !isNaN(e));
4232
+ return Math.max(...i);
4233
+ }, "getMax"), ds = /* @__PURE__ */ d(function(...t) {
4234
+ const i = t.filter((e) => !isNaN(e));
4235
+ return Math.min(...i);
4236
+ }, "getMin"), Vs = /* @__PURE__ */ d(function(t) {
4237
+ const i = t.split(/(,)/), e = [];
4238
+ for (let l = 0; l < i.length; l++) {
4239
+ let s = i[l];
4240
+ if (s === "," && l > 0 && l + 1 < i.length) {
4241
+ const u = i[l - 1], T = i[l + 1];
4242
+ Cs(u, T) && (s = u + "," + T, l++, e.pop());
4243
+ }
4244
+ e.push(gs(s));
4245
+ }
4246
+ return e.join("");
4247
+ }, "parseGenericTypes"), Gi = /* @__PURE__ */ d((t, i) => Math.max(0, t.split(i).length - 1), "countOccurrence"), Cs = /* @__PURE__ */ d((t, i) => {
4248
+ const e = Gi(t, "~"), l = Gi(i, "~");
4249
+ return e === 1 && l === 1;
4250
+ }, "shouldCombineSets"), gs = /* @__PURE__ */ d((t) => {
4251
+ const i = Gi(t, "~");
4252
+ let e = !1;
4253
+ if (i <= 1) return t;
4254
+ i % 2 !== 0 && t.startsWith("~") && (t = t.substring(1), e = !0);
4255
+ const l = [...t];
4256
+ let s = l.indexOf("~"), u = l.lastIndexOf("~");
4257
+ for (; s !== -1 && u !== -1 && s !== u; )
4258
+ l[s] = "<", l[u] = ">", s = l.indexOf("~"), u = l.lastIndexOf("~");
4259
+ return e && l.unshift("~"), l.join("");
4260
+ }, "processSet"), Hr = /* @__PURE__ */ d(() => window.MathMLElement !== void 0, "isMathMLSupported"), li = /\$\$(.*?)\$\$/g, Ur = /* @__PURE__ */ d((t) => (t.match(li)?.length ?? 0) > 0, "hasKatex"), Ys = /* @__PURE__ */ d(async (t, i) => {
4261
+ const e = document.createElement("div");
4262
+ e.innerHTML = await ps(t, i), e.id = "katex-temp", e.style.visibility = "hidden", e.style.position = "absolute", e.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", e);
4263
+ const l = {
4264
+ width: e.clientWidth,
4265
+ height: e.clientHeight
4266
+ };
4267
+ return e.remove(), l;
4268
+ }, "calculateMathMLDimensions"), us = /* @__PURE__ */ d(async (t, i) => {
4269
+ if (!Ur(t)) return t;
4270
+ if (!(Hr() || i.legacyMathML || i.forceLegacyMathML)) return t.replace(li, "MathML is unsupported in this environment.");
4271
+ {
4272
+ const { default: e } = await import("./katex-Pg2EqTH0.js"), l = i.forceLegacyMathML || !Hr() && i.legacyMathML ? "htmlAndMathml" : "mathml";
4273
+ return t.split(Xt).map((s) => Ur(s) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${s}</div>` : `<div>${s}</div>`).join("").replace(li, (s, u) => e.renderToString(u, {
4274
+ throwOnError: !0,
4275
+ displayMode: !0,
4276
+ output: l
4277
+ }).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
4278
+ }
4279
+ return t.replace(li, "Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.");
4280
+ }, "renderKatexUnsanitized"), ps = /* @__PURE__ */ d(async (t, i) => zt(await us(t, i), i), "renderKatexSanitized"), Xs = {
4281
+ getRows: es,
4282
+ sanitizeText: zt,
4283
+ sanitizeTextOrArray: ss,
4284
+ hasBreaks: as,
4285
+ splitBreaks: ls,
4286
+ lineBreakRegex: Xt,
4287
+ removeScript: oe,
4288
+ getUrl: ns,
4289
+ evaluate: Jr,
4290
+ getMax: cs,
4291
+ getMin: ds
4292
+ }, ms = /* @__PURE__ */ d(function(t, i) {
4293
+ for (let e of i) t.attr(e[0], e[1]);
4294
+ }, "d3Attrs"), ys = /* @__PURE__ */ d(function(t, i, e) {
4295
+ let l = /* @__PURE__ */ new Map();
4296
+ return e ? (l.set("width", "100%"), l.set("style", `max-width: ${i}px;`)) : (l.set("height", t), l.set("width", i)), l;
4297
+ }, "calculateSvgSizeAttrs"), xs = /* @__PURE__ */ d(function(t, i, e, l) {
4298
+ ms(t, ys(i, e, l));
4299
+ }, "configureSvgSize"), fs = /* @__PURE__ */ d(function(t, i, e, l) {
4300
+ const s = i.node().getBBox(), u = s.width, T = s.height;
4301
+ R.info(`SVG bounds: ${u}x${T}`, s);
4302
+ let B = 0, S = 0;
4303
+ R.info(`Graph bounds: ${B}x${S}`, t), B = u + e * 2, S = T + e * 2, R.info(`Calculated bounds: ${B}x${S}`), xs(i, S, B, l);
4304
+ const D = `${s.x - e} ${s.y - e} ${s.width + 2 * e} ${s.height + 2 * e}`;
4305
+ i.attr("viewBox", D);
4306
+ }, "setupGraphViewbox"), hi = {};
4307
+ function Ts(t) {
4308
+ return [...t.cssRules].map((i) => i.cssText).join(`
4309
+ `);
4310
+ }
4311
+ d(Ts, "cssStyleSheetToString");
4312
+ var ks = /* @__PURE__ */ d((t, i, e, l) => {
4313
+ let s = "";
4314
+ return t in hi && hi[t] ? s = hi[t]({
4315
+ ...e,
4316
+ svgId: l
4317
+ }) : R.warn(`No theme found for ${t}`), ` & {
4318
+ font-family: ${e.fontFamily};
4319
+ font-size: ${e.fontSize};
4320
+ fill: ${e.textColor}
4321
+ }
4322
+ @keyframes edge-animation-frame {
4323
+ from {
4324
+ stroke-dashoffset: 0;
4325
+ }
4326
+ }
4327
+ @keyframes dash {
4328
+ to {
4329
+ stroke-dashoffset: 0;
4330
+ }
4331
+ }
4332
+ & .edge-animation-slow {
4333
+ stroke-dasharray: 9,5 !important;
4334
+ stroke-dashoffset: 900;
4335
+ animation: dash 50s linear infinite;
4336
+ stroke-linecap: round;
4337
+ }
4338
+ & .edge-animation-fast {
4339
+ stroke-dasharray: 9,5 !important;
4340
+ stroke-dashoffset: 900;
4341
+ animation: dash 20s linear infinite;
4342
+ stroke-linecap: round;
4343
+ }
4344
+ /* Classes common for multiple diagrams */
4345
+
4346
+ & .error-icon {
4347
+ fill: ${e.errorBkgColor};
4348
+ }
4349
+ & .error-text {
4350
+ fill: ${e.errorTextColor};
4351
+ stroke: ${e.errorTextColor};
4352
+ }
4353
+
4354
+ & .edge-thickness-normal {
4355
+ stroke-width: ${e.strokeWidth ?? 1}px;
4356
+ }
4357
+ & .edge-thickness-thick {
4358
+ stroke-width: 3.5px
4359
+ }
4360
+ & .edge-pattern-solid {
4361
+ stroke-dasharray: 0;
4362
+ }
4363
+ & .edge-thickness-invisible {
4364
+ stroke-width: 0;
4365
+ fill: none;
4366
+ }
4367
+ & .edge-pattern-dashed{
4368
+ stroke-dasharray: 3;
4369
+ }
4370
+ .edge-pattern-dotted {
4371
+ stroke-dasharray: 2;
4372
+ }
4373
+
4374
+ & .marker {
4375
+ fill: ${e.lineColor};
4376
+ stroke: ${e.lineColor};
4377
+ }
4378
+ & .marker.cross {
4379
+ stroke: ${e.lineColor};
4380
+ }
4381
+
4382
+ & svg {
4383
+ font-family: ${e.fontFamily};
4384
+ font-size: ${e.fontSize};
4385
+ }
4386
+ & p {
4387
+ margin: 0
4388
+ }
4389
+
4390
+ ${s}
4391
+ .node .neo-node {
4392
+ stroke: ${e.nodeBorder};
4393
+ }
4394
+
4395
+ [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
4396
+ stroke: ${e.useGradient ? "url(" + l + "-gradient)" : e.nodeBorder};
4397
+ filter: ${e.dropShadow ? e.dropShadow.replace("url(#drop-shadow)", `url(${l}-drop-shadow)`) : "none"};
4398
+ }
4399
+ [data-look="neo"].swimlane.cluster rect {
4400
+ filter: none;
4401
+ }
4402
+
4403
+
4404
+ [data-look="neo"].node path {
4405
+ stroke: ${e.useGradient ? "url(" + l + "-gradient)" : e.nodeBorder};
4406
+ stroke-width: ${e.strokeWidth ?? 1}px;
4407
+ }
4408
+
4409
+ [data-look="neo"].node .outer-path {
4410
+ filter: ${e.dropShadow ? e.dropShadow.replace("url(#drop-shadow)", `url(${l}-drop-shadow)`) : "none"};
4411
+ }
4412
+
4413
+ [data-look="neo"].node .neo-line path {
4414
+ stroke: ${e.nodeBorder};
4415
+ filter: none;
4416
+ }
4417
+
4418
+ [data-look="neo"].node circle{
4419
+ stroke: ${e.useGradient ? "url(" + l + "-gradient)" : e.nodeBorder};
4420
+ filter: ${e.dropShadow ? e.dropShadow.replace("url(#drop-shadow)", `url(${l}-drop-shadow)`) : "none"};
4421
+ }
4422
+
4423
+ [data-look="neo"].node circle .state-start{
4424
+ fill: #000000;
4425
+ }
4426
+
4427
+ [data-look="neo"].icon-shape .icon {
4428
+ fill: ${e.useGradient ? "url(" + l + "-gradient)" : e.nodeBorder};
4429
+ filter: ${e.dropShadow ? e.dropShadow.replace("url(#drop-shadow)", `url(${l}-drop-shadow)`) : "none"};
4430
+ }
4431
+
4432
+ [data-look="neo"].icon-shape .icon-neo path {
4433
+ stroke: ${e.useGradient ? "url(" + l + "-gradient)" : e.nodeBorder};
4434
+ filter: ${e.dropShadow ? e.dropShadow.replace("url(#drop-shadow)", `url(${l}-drop-shadow)`) : "none"};
4435
+ }
4436
+
4437
+ ${i}
4438
+ `;
4439
+ }, "getStyles"), bs = /* @__PURE__ */ d((t, i) => {
4440
+ i !== void 0 && (hi[t] = i);
4441
+ }, "addStylesForDiagram"), Ks = ks, ae = {};
4442
+ De(ae, {
4443
+ clear: () => Bs,
4444
+ getAccDescription: () => vs,
4445
+ getAccTitle: () => Fs,
4446
+ getDiagramTitle: () => Es,
4447
+ setAccDescription: () => Ls,
4448
+ setAccTitle: () => Ss,
4449
+ setDiagramTitle: () => _s
4450
+ });
4451
+ var ji = "", Vi = "", Yi = "", Xi = /* @__PURE__ */ d((t) => zt(t, $i()), "sanitizeText"), Bs = /* @__PURE__ */ d(() => {
4452
+ ji = "", Yi = "", Vi = "";
4453
+ }, "clear"), Ss = /* @__PURE__ */ d((t) => {
4454
+ ji = Xi(t).replace(/^\s+/g, "");
4455
+ }, "setAccTitle"), Fs = /* @__PURE__ */ d(() => ji, "getAccTitle"), Ls = /* @__PURE__ */ d((t) => {
4456
+ Yi = Xi(t).replace(/\n\s+/g, `
4457
+ `);
4458
+ }, "setAccDescription"), vs = /* @__PURE__ */ d(() => Yi, "getAccDescription"), _s = /* @__PURE__ */ d((t) => {
4459
+ Vi = Xi(t);
4460
+ }, "setDiagramTitle"), Es = /* @__PURE__ */ d(() => Vi, "getDiagramTitle"), Gr = R, As = ze, le = $i, Zs = Ko, Js = gi, ws = /* @__PURE__ */ d((t) => zt(t, le()), "sanitizeText"), Os = fs, qs = /* @__PURE__ */ d(() => ae, "getCommonDb"), di = {}, Qs = /* @__PURE__ */ d((t, i, e) => {
4461
+ di[t] && Gr.warn(`Diagram with id ${t} already registered. Overwriting.`), di[t] = i, e && re(t, e), bs(t, i.styles), i.injectUtils?.(Gr, As, le, ws, Os, qs(), () => {
4462
+ });
4463
+ }, "registerDiagram"), ta = /* @__PURE__ */ d((t) => {
4464
+ if (t in di) return di[t];
4465
+ throw new Is(t);
4466
+ }, "getDiagram"), Is = class extends Error {
4467
+ static {
4468
+ d(this, "DiagramNotFoundError");
4469
+ }
4470
+ constructor(t) {
4471
+ super(`Diagram ${t} not found.`);
4472
+ }
4473
+ };
4474
+ export {
4475
+ Yt as $,
4476
+ Ur as A,
4477
+ ws as B,
4478
+ js as C,
4479
+ Eo as D,
4480
+ Ps as E,
4481
+ ps as F,
4482
+ Zs as G,
4483
+ Ls as H,
4484
+ Hs as I,
4485
+ fs as J,
4486
+ _s as K,
4487
+ Xo as L,
4488
+ Vs as M,
4489
+ Qs as N,
4490
+ ns as O,
4491
+ $s as P,
4492
+ Rs as Q,
4493
+ Ui as R,
4494
+ ta as S,
4495
+ Jo as T,
4496
+ Ss as U,
4497
+ Ws as V,
4498
+ Ko as W,
4499
+ Ks as X,
4500
+ Os as Y,
4501
+ Dt as Z,
4502
+ Qo as _,
4503
+ Bs as a,
4504
+ et as at,
4505
+ $i as b,
4506
+ xs as c,
4507
+ Js as d,
4508
+ c as et,
4509
+ jo as f,
4510
+ Jr as g,
4511
+ ts as h,
4512
+ Ys as i,
4513
+ pt as it,
4514
+ Xt as j,
4515
+ Us as k,
4516
+ Ts as l,
4517
+ ci as m,
4518
+ Ns as n,
4519
+ jr as nt,
4520
+ ae as o,
4521
+ y as ot,
4522
+ Gs as p,
4523
+ zs as q,
4524
+ P as r,
4525
+ K as rt,
4526
+ Xs as s,
4527
+ rs as t,
4528
+ n as tt,
4529
+ gi as u,
4530
+ vs as v,
4531
+ Es as w,
4532
+ le as x,
4533
+ Fs as y,
4534
+ zt as z
4535
+ };