@jackuait/blok 0.10.0-beta.6 → 0.10.0-beta.7

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 (409) hide show
  1. package/codemod/migrate-editorjs-to-blok.js +0 -2
  2. package/codemod/test.js +0 -6
  3. package/dist/blok.mjs +2 -2
  4. package/dist/chunks/_basePickBy-BHRNO12X.mjs +410 -0
  5. package/dist/chunks/_baseUniq-DtFPDBML.mjs +1045 -0
  6. package/dist/chunks/_getTag-ozrhqxk_.mjs +26 -0
  7. package/dist/chunks/arc-BEqJP9HX.mjs +80 -0
  8. package/dist/chunks/architecture-YZFGNWBL-Bcu-90pi.mjs +3 -0
  9. package/dist/chunks/architectureDiagram-Q4EWVU46-BMno5LCn.mjs +4066 -0
  10. package/dist/chunks/array-Cyf-61SV.mjs +6 -0
  11. package/dist/chunks/blockDiagram-DXYQGD6D-DlP_cPth.mjs +3259 -0
  12. package/dist/chunks/{blok-BdlR_lX6.mjs → blok-CiLRmoHI.mjs} +850 -855
  13. package/dist/chunks/c4Diagram-AHTNJAMY-BbVV8EXj.mjs +2956 -0
  14. package/dist/chunks/channel-DPcniO2B.mjs +5 -0
  15. package/dist/chunks/chunk-2KRD3SAO-CazES4VS.mjs +20 -0
  16. package/dist/chunks/chunk-336JU56O-heO72r_k.mjs +49 -0
  17. package/dist/chunks/chunk-426QAEUC-CmCcml1z.mjs +13 -0
  18. package/dist/chunks/chunk-4BX2VUAB-B10DxOza.mjs +19 -0
  19. package/dist/chunks/chunk-4TB4RGXK-B0snhZOU.mjs +3250 -0
  20. package/dist/chunks/chunk-55IACEB6-CGkn5ABd.mjs +8 -0
  21. package/dist/chunks/chunk-5FUZZQ4R-USdumo_u.mjs +3786 -0
  22. package/dist/chunks/chunk-5PVQY5BW-CxUGVzQL.mjs +1692 -0
  23. package/dist/chunks/chunk-67CJDMHE-Bvw55oRa.mjs +20 -0
  24. package/dist/chunks/chunk-7N4EOEYR-Bs2qDy88.mjs +29 -0
  25. package/dist/chunks/chunk-AA7GKIK3-Bss0LgrN.mjs +24 -0
  26. package/dist/chunks/chunk-BSJP7CBP-CpUW7gi5.mjs +83 -0
  27. package/dist/chunks/chunk-CIAEETIT-DlRbLLf3.mjs +20 -0
  28. package/dist/chunks/{chunk-Byubey_H.mjs → chunk-D6kmoKXy.mjs} +5 -5
  29. package/dist/chunks/chunk-EDXVE4YY-DEcX4XWm.mjs +26 -0
  30. package/dist/chunks/chunk-ENJZ2VHE-B4THRZkR.mjs +566 -0
  31. package/dist/chunks/chunk-FMBD7UC4-CF6BKEiV.mjs +5 -0
  32. package/dist/chunks/chunk-FOC6F5B3--xuza7Yn.mjs +20 -0
  33. package/dist/chunks/chunk-ICPOFSXX-BMja8cuy.mjs +3290 -0
  34. package/dist/chunks/chunk-K5T4RW27-CHEqGHFS.mjs +16370 -0
  35. package/dist/chunks/chunk-KGLVRYIC-DHYYpR8v.mjs +20 -0
  36. package/dist/chunks/chunk-LIHQZDEY-AvbOvyLE.mjs +55 -0
  37. package/dist/chunks/chunk-ORNJ4GCN-38fbR5OS.mjs +25 -0
  38. package/dist/chunks/chunk-OYMX7WX6-BiqlATPA.mjs +2038 -0
  39. package/dist/chunks/chunk-QZHKN3VN-DitZIvj8.mjs +12 -0
  40. package/dist/chunks/chunk-U2HBQHQK-DJytnHmZ.mjs +1875 -0
  41. package/dist/chunks/chunk-X2U36JSP-DlOifw1K.mjs +68 -0
  42. package/dist/chunks/chunk-XPW4576I-s4fsi4XO.mjs +1146 -0
  43. package/dist/chunks/chunk-YZCP3GAM-Ch258bXC.mjs +60 -0
  44. package/dist/chunks/chunk-ZZ45TVLE-DWziaKxP.mjs +33 -0
  45. package/dist/chunks/classDiagram-6PBFFD2Q-BOkAe08u.mjs +30 -0
  46. package/dist/chunks/classDiagram-v2-HSJHXN6E-DeKatSvh.mjs +30 -0
  47. package/dist/chunks/clone-CJCz7VRp.mjs +8 -0
  48. package/dist/chunks/{constants-Cp8O0UfP.mjs → constants-DFS8l39Y.mjs} +49 -50
  49. package/dist/chunks/cose-bilkent-S5V4N54A-CzLGVqvr.mjs +2246 -0
  50. package/dist/chunks/cytoscape.esm-D0iglm-M.mjs +18108 -0
  51. package/dist/chunks/dagre-KV5264BT-XbHSjleO.mjs +298 -0
  52. package/dist/chunks/dagre-XY8CZ1sg.mjs +1536 -0
  53. package/dist/chunks/defaultLocale-DFhS1600.mjs +201 -0
  54. package/dist/chunks/diagram-5BDNPKRD-CM7c3UTI.mjs +112 -0
  55. package/dist/chunks/diagram-G4DWMVQ6-Bhg4ps6b.mjs +546 -0
  56. package/dist/chunks/diagram-MMDJMWI5-C-UCVaxB.mjs +234 -0
  57. package/dist/chunks/diagram-TYMM5635-BOHSujSD.mjs +144 -0
  58. package/dist/chunks/dist-DHsXIYdd.mjs +59 -0
  59. package/dist/chunks/erDiagram-SMLLAGMA-CwKxXFMB.mjs +1712 -0
  60. package/dist/chunks/flowDiagram-DWJPFMVM-rQJKfyuO.mjs +4175 -0
  61. package/dist/chunks/ganttDiagram-T4ZO3ILL-DfaZirLX.mjs +3083 -0
  62. package/dist/chunks/gitGraph-7Q5UKJZL-BKG8cHGz.mjs +3 -0
  63. package/dist/chunks/gitGraphDiagram-UUTBAWPF-CRa-ymsI.mjs +792 -0
  64. package/dist/chunks/graphlib-CuDElSdG.mjs +223 -0
  65. package/dist/chunks/{i18next-loader-oDO9ZKUV.mjs → i18next-loader-CasQQb5s.mjs} +2 -2
  66. package/dist/chunks/info-OMHHGYJF-FKqYyUn9.mjs +3 -0
  67. package/dist/chunks/infoDiagram-42DDH7IO-CvyJU2nE.mjs +29 -0
  68. package/dist/chunks/init-JlKGZtuT.mjs +15 -0
  69. package/dist/chunks/ishikawaDiagram-UXIWVN3A-CIpbw1BK.mjs +719 -0
  70. package/dist/chunks/journeyDiagram-VCZTEJTY-H96UcUK9.mjs +885 -0
  71. package/dist/chunks/kanban-definition-6JOO6SKY-BYZT3srA.mjs +980 -0
  72. package/dist/chunks/{katex-NjLaA6AJ.mjs → katex-JyOgX6MW.mjs} +1 -1
  73. package/dist/chunks/{lightweight-i18n-DTySD6f6.mjs → lightweight-i18n-Cvv8CWh4.mjs} +13 -0
  74. package/dist/chunks/line-B9xUUA7k.mjs +34 -0
  75. package/dist/chunks/linear-Dj-1yA_B.mjs +289 -0
  76. package/dist/chunks/mermaid-parser.core-D6OPAUtM.mjs +57 -0
  77. package/dist/chunks/mermaid.core-BPN9ZHKQ.mjs +989 -0
  78. package/dist/{messages-B4lhNMKm2.mjs → chunks/messages--YKhFEDE.mjs} +28 -3
  79. package/dist/chunks/{messages-CF_PfacZ.mjs → messages-0Uwu1AMJ2.mjs} +26 -1
  80. package/dist/{messages-Bug6Du35.mjs → chunks/messages-1__0Ph4Q.mjs} +26 -1
  81. package/dist/chunks/{messages-CnQydQJd2.mjs → messages-4sm9Pb0C.mjs} +26 -1
  82. package/dist/chunks/{messages-BDXl53cy2.mjs → messages-4uxjtzKW.mjs} +26 -1
  83. package/dist/{messages-DQN1y6E9.mjs → chunks/messages-B-SwLgkQ.mjs} +28 -3
  84. package/dist/chunks/{messages-BlcRm2I3.mjs → messages-B1ylBxXQ.mjs} +26 -1
  85. package/dist/{messages-12_eyAo-.mjs → chunks/messages-B5m3dhKc.mjs} +26 -1
  86. package/dist/chunks/{messages-D8-N0FmU.mjs → messages-B6n2zDtv.mjs} +27 -2
  87. package/dist/chunks/{messages-BMq9k_lI.mjs → messages-BC9w4zAT.mjs} +26 -1
  88. package/dist/{messages-CsiGzUSP2.mjs → chunks/messages-BOj-7N3p.mjs} +26 -1
  89. package/dist/chunks/{messages-CvlMT1e62.mjs → messages-BRYHTS18.mjs} +26 -1
  90. package/dist/{messages-hrSlVSHp.mjs → chunks/messages-BSBbVjor.mjs} +33 -8
  91. package/dist/{messages-uCsQjz7M.mjs → chunks/messages-BUUkmUGc.mjs} +26 -1
  92. package/dist/chunks/{messages-DopbvJlg.mjs → messages-Bb3YEV2P.mjs} +31 -6
  93. package/dist/{messages-KqWQKmIu2.mjs → chunks/messages-Be_6YLzJ.mjs} +27 -2
  94. package/dist/chunks/{messages-BXn9Vzbx2.mjs → messages-BevRhv5d.mjs} +26 -1
  95. package/dist/chunks/{messages-DQ5ng0_t2.mjs → messages-Bhqr7Im2.mjs} +26 -1
  96. package/dist/{messages-B3Yhiycb2.mjs → chunks/messages-BpJFjSKa.mjs} +27 -2
  97. package/dist/chunks/{messages-BaoJwsEZ.mjs → messages-BqYlq_Bn.mjs} +26 -1
  98. package/dist/chunks/{messages-vN4T4r67.mjs → messages-BtAwCUfD.mjs} +26 -1
  99. package/dist/{messages-Cb3wXGnc.mjs → chunks/messages-Bthbp65G.mjs} +27 -2
  100. package/dist/{messages-x353UCBI.mjs → chunks/messages-BvHMZ8Pi2.mjs} +26 -1
  101. package/dist/{messages-BOE2mzCj2.mjs → chunks/messages-Bw1BE9jW.mjs} +26 -1
  102. package/dist/chunks/{messages-C5aCWL7B.mjs → messages-Bx6Wt285.mjs} +26 -1
  103. package/dist/{messages-C8f1I5EQ2.mjs → chunks/messages-BzslJRYv.mjs} +27 -2
  104. package/dist/chunks/{messages-CZ5Sbf8U.mjs → messages-C02M0Tpw.mjs} +26 -1
  105. package/dist/chunks/{messages-DN-194c32.mjs → messages-C1u3E9qg.mjs} +26 -1
  106. package/dist/chunks/{messages-DdmWzF5M.mjs → messages-C68WgSKk.mjs} +27 -2
  107. package/dist/chunks/{messages-Dgng6KN8.mjs → messages-C8w8JCP0.mjs} +28 -3
  108. package/dist/chunks/{messages-B5fKJXd6.mjs → messages-CFOZdSk4.mjs} +26 -1
  109. package/dist/chunks/{messages-5ArOv8cj.mjs → messages-CGOY79lr.mjs} +26 -1
  110. package/dist/{messages-mipkPgwQ2.mjs → chunks/messages-CGaSMZPu.mjs} +26 -1
  111. package/dist/{messages-Dq_v7slw2.mjs → chunks/messages-CJJgQ0BH.mjs} +26 -1
  112. package/dist/chunks/{messages-DUGEqDEG.mjs → messages-CTD6rtQj2.mjs} +26 -1
  113. package/dist/{messages-DIKCwGog.mjs → chunks/messages-CZymJML9.mjs} +30 -5
  114. package/dist/chunks/{messages-CcyIKgGU.mjs → messages-CfeFJbiv.mjs} +30 -5
  115. package/dist/chunks/{messages-BXSXk3oS2.mjs → messages-Cgatzu_z.mjs} +28 -3
  116. package/dist/{messages-CBPiFbEf2.mjs → chunks/messages-Ch2zBI602.mjs} +26 -1
  117. package/dist/chunks/{messages-yszqJukE.mjs → messages-CiAHsUfO.mjs} +26 -1
  118. package/dist/chunks/{messages-bmwto4UV.mjs → messages-Cuzq-tNW.mjs} +26 -1
  119. package/dist/{messages-JK9Okzsy2.mjs → chunks/messages-Cw4qiMwb.mjs} +26 -1
  120. package/dist/chunks/{messages-DSO2U-ul.mjs → messages-Cyh-mz40.mjs} +26 -1
  121. package/dist/{messages-DbZsJAff.mjs → chunks/messages-D-I2QO8H.mjs} +26 -1
  122. package/dist/chunks/{messages-BhcYsC_M2.mjs → messages-D0D2gruy.mjs} +26 -1
  123. package/dist/{messages-X80Nh0ib.mjs → chunks/messages-D1BKxfLD.mjs} +27 -2
  124. package/dist/chunks/{messages-CjVPwkVy.mjs → messages-D4eDs6R_.mjs} +26 -1
  125. package/dist/{messages-C5Uufygq.mjs → chunks/messages-D9Xr-hES.mjs} +26 -1
  126. package/dist/{messages-DkvQ-6HC2.mjs → chunks/messages-D9eJPHia.mjs} +28 -3
  127. package/dist/chunks/{messages-DRv4g-IA.mjs → messages-DBFWSzKY2.mjs} +26 -1
  128. package/dist/chunks/{messages-SSDr5fGF2.mjs → messages-DC0wu2S7.mjs} +26 -1
  129. package/dist/{messages-Bdk4ocMI.mjs → chunks/messages-DF9o19rG.mjs} +26 -1
  130. package/dist/chunks/{messages-DVKifYlq.mjs → messages-DFS_n986.mjs} +49 -24
  131. package/dist/{messages-CvvbLyTy2.mjs → chunks/messages-DGS4H30T.mjs} +26 -1
  132. package/dist/{messages-PvMdmlxI.mjs → chunks/messages-DKjddpzJ.mjs} +28 -3
  133. package/dist/chunks/{messages-DGD6BiGd.mjs → messages-DMvTdUXC.mjs} +28 -3
  134. package/dist/{messages-CD8K1g_t2.mjs → chunks/messages-DQUX-QYI2.mjs} +26 -1
  135. package/dist/chunks/{messages-CqgEz7C5.mjs → messages-DUigq8FO2.mjs} +26 -1
  136. package/dist/chunks/{messages-ByAqzAhB.mjs → messages-DY0FJdpH.mjs} +26 -1
  137. package/dist/{messages-DACg1XAu.mjs → chunks/messages-DfVXiqt-2.mjs} +26 -1
  138. package/dist/{messages-BYQ769S5.mjs → chunks/messages-DgZc9TJw.mjs} +26 -1
  139. package/dist/{messages-Dj79y02X.mjs → chunks/messages-QD4BCUDP.mjs} +26 -1
  140. package/dist/{messages-BeI2HORe2.mjs → chunks/messages-USmweex9.mjs} +26 -1
  141. package/dist/{messages-CEEzfqMO2.mjs → chunks/messages-a1JTi0Qm.mjs} +29 -4
  142. package/dist/chunks/{messages-Dz3UhEco2.mjs → messages-jcgCHPRn.mjs} +26 -1
  143. package/dist/{messages--cUQf9JX.mjs → chunks/messages-tnnqHpbd.mjs} +27 -2
  144. package/dist/chunks/{messages-DZwCufSb.mjs → messages-vzWKPLJO.mjs} +26 -1
  145. package/dist/chunks/{micromark-extension-math-CCEGWpdz.mjs → micromark-extension-math-Cz_ZZ_0Y.mjs} +1 -1
  146. package/dist/chunks/mindmap-definition-QFDTVHPH-BswFuNN6.mjs +1013 -0
  147. package/dist/chunks/ordinal-D1_lEgAO.mjs +65 -0
  148. package/dist/chunks/packet-4T2RLAQJ-DTUW2U0C.mjs +3 -0
  149. package/dist/chunks/path-6nYPAvNb.mjs +85 -0
  150. package/dist/chunks/pie-ZZUOXDRM-D-umqvEM.mjs +3 -0
  151. package/dist/chunks/pieDiagram-DEJITSTG-1WJgvK1w.mjs +179 -0
  152. package/dist/chunks/quadrantDiagram-34T5L4WZ-B_YH8QGl.mjs +1960 -0
  153. package/dist/chunks/radar-PYXPWWZC-DkQelf08.mjs +3 -0
  154. package/dist/chunks/requirementDiagram-MS252O5E-DRl0YJRI.mjs +2224 -0
  155. package/dist/chunks/rough.esm-CSWJruu5.mjs +1353 -0
  156. package/dist/chunks/sankeyDiagram-XADWPNL6-B-8IrknH.mjs +909 -0
  157. package/dist/chunks/sequenceDiagram-FGHM5R23-DTLb8qmO.mjs +4181 -0
  158. package/dist/chunks/src-CRgEHLPW.mjs +2149 -0
  159. package/dist/chunks/stateDiagram-FHFEXIEX-B0JFjLFy.mjs +218 -0
  160. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-Co9CUU_z.mjs +28 -0
  161. package/dist/chunks/timeline-definition-GMOUNBTQ-CS9KTh-Q.mjs +1084 -0
  162. package/dist/chunks/{tools-DGOsJbHH.mjs → tools-CSYsrnud.mjs} +2116 -1268
  163. package/dist/chunks/treeView-SZITEDCU-DOOoyNP9.mjs +3 -0
  164. package/dist/chunks/treemap-W4RFUUIX-CsOoUA-u.mjs +3 -0
  165. package/dist/chunks/vennDiagram-DHZGUBPP-0BNu5Wna.mjs +1876 -0
  166. package/dist/chunks/wardley-RL74JXVD-CCzZcmEk.mjs +3 -0
  167. package/dist/chunks/wardleyDiagram-NUSXRM2D-Ca9XByNH.mjs +594 -0
  168. package/dist/chunks/xychartDiagram-5P7HB3ND-C8AyKUAE.mjs +2017 -0
  169. package/dist/cli.mjs +1 -1
  170. package/dist/full.mjs +3 -3
  171. package/dist/locales.mjs +80 -67
  172. package/dist/markdown.mjs +2 -2
  173. package/dist/{chunks/messages-9l49jauY.mjs → messages-5jvKxQNu2.mjs} +26 -1
  174. package/dist/{messages-CkySRhtd2.mjs → messages-7QD-X6XT2.mjs} +26 -1
  175. package/dist/{chunks/messages-Btr121zI2.mjs → messages-96iaAUds2.mjs} +27 -2
  176. package/dist/{chunks/messages-BAP2OAQk.mjs → messages-B19o-Teb.mjs} +28 -3
  177. package/dist/{messages-DJU4YLij.mjs → messages-B1ZUQagA.mjs} +26 -1
  178. package/dist/{messages-Dg2CDXZi2.mjs → messages-B7ieAJBd2.mjs} +26 -1
  179. package/dist/{messages-CByBLxWk.mjs → messages-BECMxmfX.mjs} +26 -1
  180. package/dist/{messages-CwCEcbWG.mjs → messages-BIHc0KHY.mjs} +27 -2
  181. package/dist/{messages-D8WvwU42.mjs → messages-BIoeoik5.mjs} +26 -1
  182. package/dist/{messages-D38h5XlF.mjs → messages-BJeGJksD.mjs} +26 -1
  183. package/dist/{messages-Cd23UgLV2.mjs → messages-BRZX964b2.mjs} +27 -2
  184. package/dist/{chunks/messages-B9N__q552.mjs → messages-BTQPpoM42.mjs} +29 -4
  185. package/dist/{messages-CUzBNjnc.mjs → messages-BYNcD6uR.mjs} +26 -1
  186. package/dist/{messages-DjWfVYHS2.mjs → messages-BYmmMDrN2.mjs} +26 -1
  187. package/dist/{chunks/messages-DkTxBa1V.mjs → messages-BbYq1pk-.mjs} +26 -1
  188. package/dist/{chunks/messages-BHhbHLoq.mjs → messages-BiUGXvYr2.mjs} +26 -1
  189. package/dist/{messages-So3SHdIc2.mjs → messages-BiiongNz2.mjs} +26 -1
  190. package/dist/{chunks/messages-BxBID_0B.mjs → messages-Bm0Feca1.mjs} +30 -5
  191. package/dist/{messages-C2veeQpU.mjs → messages-BmAn22OX.mjs} +26 -1
  192. package/dist/{messages-KbYSpNrE.mjs → messages-Bq3F2Tp_.mjs} +26 -1
  193. package/dist/{chunks/messages-Dux1S0-D2.mjs → messages-BsycN_JI2.mjs} +26 -1
  194. package/dist/{messages-DRU_IgoW.mjs → messages-BwHs4cm1.mjs} +30 -5
  195. package/dist/{messages-Cv-DKlZd.mjs → messages-CJTy6JZt.mjs} +26 -1
  196. package/dist/{chunks/messages-D7n_wJK7.mjs → messages-CR_L_UtK.mjs} +26 -1
  197. package/dist/{messages-DnhEzmXJ2.mjs → messages-CSUHBs4c2.mjs} +26 -1
  198. package/dist/{messages-C_HmWyXc2.mjs → messages-CWIXvnDf2.mjs} +26 -1
  199. package/dist/{messages-KSxF8eib.mjs → messages-CcF4y-E4.mjs} +26 -1
  200. package/dist/{chunks/messages-CL3mCbi6.mjs → messages-Ce6KVEbT.mjs} +27 -2
  201. package/dist/{chunks/messages-C-jA6Rf7.mjs → messages-Ci0KqX-J.mjs} +33 -8
  202. package/dist/{chunks/messages-DMyRdafk2.mjs → messages-CjbnogEC.mjs} +26 -1
  203. package/dist/{chunks/messages-BlO_37l_.mjs → messages-CmB406HW.mjs} +28 -3
  204. package/dist/{messages-Cho2VTAX.mjs → messages-CqXtJTpU.mjs} +26 -1
  205. package/dist/{messages-CWEL1WDy2.mjs → messages-D0aw5_0k2.mjs} +28 -3
  206. package/dist/{messages-CgEDVri-2.mjs → messages-D8FQWulF2.mjs} +26 -1
  207. package/dist/{chunks/messages-B5aAzExz.mjs → messages-DBiVgUs2.mjs} +27 -2
  208. package/dist/{chunks/messages-DYizZHT2.mjs → messages-DIJlIqlQ2.mjs} +26 -1
  209. package/dist/{messages-BPL7riv-.mjs → messages-DLX_iBDJ.mjs} +26 -1
  210. package/dist/{messages-vptt-pVF.mjs → messages-DLlc9QPw.mjs} +26 -1
  211. package/dist/{chunks/messages-876bKyUj2.mjs → messages-DMr62KiO2.mjs} +26 -1
  212. package/dist/{chunks/messages-CgedvWCf.mjs → messages-DPA-mMWC2.mjs} +27 -2
  213. package/dist/{messages-vcoib5Ga.mjs → messages-DTh9a8mR.mjs} +26 -1
  214. package/dist/{chunks/messages-DgEGJECT.mjs → messages-DY4IqlhY.mjs} +26 -1
  215. package/dist/{chunks/messages-CdzF0Hvl.mjs → messages-DYTTu0O12.mjs} +26 -1
  216. package/dist/{messages-rbox5gSb2.mjs → messages-DbySKTKt2.mjs} +28 -3
  217. package/dist/{chunks/messages-BGCQCeWd.mjs → messages-Ddnj2iTG2.mjs} +26 -1
  218. package/dist/{chunks/messages-CNEJxD8q2.mjs → messages-DkLU_rWm.mjs} +26 -1
  219. package/dist/{chunks/messages-FYl9woii2.mjs → messages-Dl3Sv6Rq2.mjs} +27 -2
  220. package/dist/{messages-Clsh86WQ.mjs → messages-Dl5Y2-Ia.mjs} +49 -24
  221. package/dist/{chunks/messages-CKRJDX0K2.mjs → messages-DnG0ef8t2.mjs} +28 -3
  222. package/dist/{chunks/messages-CyxDkx8a.mjs → messages-DnGJD4TL.mjs} +26 -1
  223. package/dist/{chunks/messages-DnJHflSh.mjs → messages-Dnp9N6RU2.mjs} +26 -1
  224. package/dist/{chunks/messages-Jps5Tc77.mjs → messages-Dvn35ksS.mjs} +26 -1
  225. package/dist/{messages-ChTWmxS8.mjs → messages-Dw__BcTj.mjs} +26 -1
  226. package/dist/{messages-D7juvhHp.mjs → messages-Dy-Y_nEI.mjs} +26 -1
  227. package/dist/{messages-CNNcKuGH.mjs → messages-E_ZuzGDt.mjs} +26 -1
  228. package/dist/{chunks/messages-DJO0ERQT.mjs → messages-F2xRoY1w.mjs} +26 -1
  229. package/dist/{messages-DqJTZbwt.mjs → messages-Smt4GBbj.mjs} +31 -6
  230. package/dist/{chunks/messages-D8dKkyII2.mjs → messages-aMXpHt5X2.mjs} +26 -1
  231. package/dist/{chunks/messages-DWD0ry9x.mjs → messages-aWZH50vu2.mjs} +28 -3
  232. package/dist/{chunks/messages-BbfLRqLh2.mjs → messages-dv19AkyJ.mjs} +26 -1
  233. package/dist/{chunks/messages-Dw2rmKMi2.mjs → messages-hWwSRF-2.mjs} +26 -1
  234. package/dist/{messages-En8LDjUB.mjs → messages-j7o5rT9s.mjs} +26 -1
  235. package/dist/{chunks/messages-NJsvFwJj.mjs → messages-nUVjeh7K.mjs} +27 -2
  236. package/dist/{messages-Cg1CF4pw.mjs → messages-nlhESX9t.mjs} +26 -1
  237. package/dist/{messages-CSl0Wla62.mjs → messages-rk-A1Wa42.mjs} +28 -3
  238. package/dist/{messages-nOe1gJYu.mjs → messages-xh2eOLvs.mjs} +26 -1
  239. package/dist/{messages-B_sKqaeK.mjs → messages-ynAe7ewZ.mjs} +26 -1
  240. package/dist/react.mjs +2 -2
  241. package/dist/tools.mjs +2 -2
  242. package/dist/vendor.LICENSE.txt +3254 -297
  243. package/package.json +7 -2
  244. package/src/components/constants/data-attributes.ts +0 -2
  245. package/src/components/i18n/locales/am/messages.json +26 -1
  246. package/src/components/i18n/locales/ar/messages.json +26 -1
  247. package/src/components/i18n/locales/az/messages.json +26 -1
  248. package/src/components/i18n/locales/bg/messages.json +26 -1
  249. package/src/components/i18n/locales/bn/messages.json +26 -1
  250. package/src/components/i18n/locales/bs/messages.json +28 -3
  251. package/src/components/i18n/locales/cs/messages.json +30 -5
  252. package/src/components/i18n/locales/da/messages.json +33 -8
  253. package/src/components/i18n/locales/de/messages.json +31 -6
  254. package/src/components/i18n/locales/dv/messages.json +26 -1
  255. package/src/components/i18n/locales/el/messages.json +26 -1
  256. package/src/components/i18n/locales/en/messages.json +13 -0
  257. package/src/components/i18n/locales/es/messages.json +27 -2
  258. package/src/components/i18n/locales/et/messages.json +30 -5
  259. package/src/components/i18n/locales/fa/messages.json +26 -1
  260. package/src/components/i18n/locales/fi/messages.json +26 -1
  261. package/src/components/i18n/locales/fil/messages.json +49 -24
  262. package/src/components/i18n/locales/fr/messages.json +27 -2
  263. package/src/components/i18n/locales/gu/messages.json +26 -1
  264. package/src/components/i18n/locales/he/messages.json +26 -1
  265. package/src/components/i18n/locales/hi/messages.json +26 -1
  266. package/src/components/i18n/locales/hr/messages.json +28 -3
  267. package/src/components/i18n/locales/hu/messages.json +27 -2
  268. package/src/components/i18n/locales/hy/messages.json +26 -1
  269. package/src/components/i18n/locales/id/messages.json +26 -1
  270. package/src/components/i18n/locales/it/messages.json +27 -2
  271. package/src/components/i18n/locales/ja/messages.json +26 -1
  272. package/src/components/i18n/locales/ka/messages.json +26 -1
  273. package/src/components/i18n/locales/km/messages.json +26 -1
  274. package/src/components/i18n/locales/kn/messages.json +26 -1
  275. package/src/components/i18n/locales/ko/messages.json +26 -1
  276. package/src/components/i18n/locales/ku/messages.json +26 -1
  277. package/src/components/i18n/locales/lo/messages.json +26 -1
  278. package/src/components/i18n/locales/lt/messages.json +26 -1
  279. package/src/components/i18n/locales/lv/messages.json +26 -1
  280. package/src/components/i18n/locales/mk/messages.json +26 -1
  281. package/src/components/i18n/locales/ml/messages.json +26 -1
  282. package/src/components/i18n/locales/mn/messages.json +26 -1
  283. package/src/components/i18n/locales/mr/messages.json +26 -1
  284. package/src/components/i18n/locales/ms/messages.json +28 -3
  285. package/src/components/i18n/locales/my/messages.json +26 -1
  286. package/src/components/i18n/locales/ne/messages.json +26 -1
  287. package/src/components/i18n/locales/nl/messages.json +28 -3
  288. package/src/components/i18n/locales/no/messages.json +29 -4
  289. package/src/components/i18n/locales/pa/messages.json +26 -1
  290. package/src/components/i18n/locales/pl/messages.json +27 -2
  291. package/src/components/i18n/locales/ps/messages.json +26 -1
  292. package/src/components/i18n/locales/pt/messages.json +27 -2
  293. package/src/components/i18n/locales/ro/messages.json +27 -2
  294. package/src/components/i18n/locales/ru/messages.json +26 -1
  295. package/src/components/i18n/locales/sd/messages.json +26 -1
  296. package/src/components/i18n/locales/si/messages.json +26 -1
  297. package/src/components/i18n/locales/sk/messages.json +28 -3
  298. package/src/components/i18n/locales/sl/messages.json +28 -3
  299. package/src/components/i18n/locales/sq/messages.json +27 -2
  300. package/src/components/i18n/locales/sr/messages.json +26 -1
  301. package/src/components/i18n/locales/sv/messages.json +28 -3
  302. package/src/components/i18n/locales/sw/messages.json +26 -1
  303. package/src/components/i18n/locales/ta/messages.json +26 -1
  304. package/src/components/i18n/locales/te/messages.json +26 -1
  305. package/src/components/i18n/locales/th/messages.json +26 -1
  306. package/src/components/i18n/locales/tr/messages.json +26 -1
  307. package/src/components/i18n/locales/ug/messages.json +26 -1
  308. package/src/components/i18n/locales/uk/messages.json +26 -1
  309. package/src/components/i18n/locales/ur/messages.json +26 -1
  310. package/src/components/i18n/locales/vi/messages.json +26 -1
  311. package/src/components/i18n/locales/yi/messages.json +26 -1
  312. package/src/components/i18n/locales/zh/messages.json +26 -1
  313. package/src/components/icons/index.ts +38 -0
  314. package/src/components/modules/ui.ts +0 -13
  315. package/src/stories/EditorModes.stories.ts +0 -60
  316. package/src/styles/main.css +39 -1
  317. package/src/tools/callout/emoji-picker/index.ts +3 -2
  318. package/src/tools/code/code-keyboard.ts +16 -9
  319. package/src/tools/code/constants.ts +26 -3
  320. package/src/tools/code/dom-builder.ts +40 -5
  321. package/src/tools/code/highlight-applier.ts +229 -0
  322. package/src/tools/code/index.ts +141 -1
  323. package/src/tools/code/mermaid-loader.ts +45 -0
  324. package/src/tools/code/shiki-loader.ts +135 -0
  325. package/src/tools/table/core/table-commands.ts +16 -0
  326. package/src/tools/table/core/table-controller.ts +29 -0
  327. package/src/tools/table/core/table-events.ts +17 -0
  328. package/src/tools/table/index.ts +194 -11
  329. package/src/tools/table/table-cell-blocks.ts +9 -6
  330. package/src/tools/table/table-cell-clipboard.ts +6 -1
  331. package/src/tools/table/table-cell-placement-picker.ts +133 -0
  332. package/src/tools/table/table-cell-selection.ts +174 -19
  333. package/src/tools/table/table-core.ts +321 -113
  334. package/src/tools/table/table-map.ts +279 -0
  335. package/src/tools/table/table-model.ts +901 -1
  336. package/src/tools/table/table-operations.ts +78 -44
  337. package/src/tools/table/table-resize.ts +19 -17
  338. package/src/tools/table/table-row-col-drag.ts +24 -10
  339. package/src/tools/table/types.ts +24 -2
  340. package/types/data-attributes.d.ts +0 -1
  341. package/types/tools/code.d.ts +2 -0
  342. /package/dist/chunks/{am-CS-JjQ0N.mjs → am-rVzV1W41.mjs} +0 -0
  343. /package/dist/chunks/{ar-Dt4XzR5U.mjs → ar-C710lkoH.mjs} +0 -0
  344. /package/dist/chunks/{az-CaDTXby8.mjs → az-BOp1pgua.mjs} +0 -0
  345. /package/dist/chunks/{bg-D1pLog-R.mjs → bg-CL9p09ZD.mjs} +0 -0
  346. /package/dist/chunks/{bn-Db_ae60m.mjs → bn-CNmSeyAy.mjs} +0 -0
  347. /package/dist/chunks/{bs-DJTg1R9e.mjs → bs-BRzMGqzk.mjs} +0 -0
  348. /package/dist/chunks/{cs-_Gc21gSL.mjs → cs-BYPBLmnF.mjs} +0 -0
  349. /package/dist/chunks/{da-xDB8uhCd.mjs → da-CBC_LR1c.mjs} +0 -0
  350. /package/dist/chunks/{de-B6gVjh1Z.mjs → de-DxRFMoAj.mjs} +0 -0
  351. /package/dist/chunks/{el-ClbRSnOs.mjs → el-Bk6YbySf.mjs} +0 -0
  352. /package/dist/chunks/{es-CuY9rnLK.mjs → es-DpT3FCMR.mjs} +0 -0
  353. /package/dist/chunks/{et-BLu5lDVc.mjs → et-DE9Dr_g9.mjs} +0 -0
  354. /package/dist/chunks/{fa-P3gnrZH8.mjs → fa-Banj1QUE.mjs} +0 -0
  355. /package/dist/chunks/{fi-B8PVHLjq.mjs → fi-DfN3M5ER.mjs} +0 -0
  356. /package/dist/chunks/{fil-B9JII5iF.mjs → fil-DbCsRS1d.mjs} +0 -0
  357. /package/dist/chunks/{fr-BWLDZdcc.mjs → fr-D1clKhgt.mjs} +0 -0
  358. /package/dist/chunks/{gu-BH3R_s4c.mjs → gu-1CsZyRwT.mjs} +0 -0
  359. /package/dist/chunks/{he-CCmeCVR_.mjs → he-qQdnL6eK.mjs} +0 -0
  360. /package/dist/chunks/{hi-BBav00DN.mjs → hi-DxM0Nff1.mjs} +0 -0
  361. /package/dist/chunks/{hr-B5ZX0r9G.mjs → hr-Onldyi-u.mjs} +0 -0
  362. /package/dist/chunks/{hu-1jgDa3YU.mjs → hu-CAn3pBuY.mjs} +0 -0
  363. /package/dist/chunks/{hy-LX4Kp2PE.mjs → hy-D43q7NxE.mjs} +0 -0
  364. /package/dist/chunks/{i18next-KNC_XV5x.mjs → i18next-BBGW2sDE.mjs} +0 -0
  365. /package/dist/chunks/{id-CcG40D1H.mjs → id-Xrw5Dd0Y.mjs} +0 -0
  366. /package/dist/chunks/{it-Cb8_K72W.mjs → it-CA9ZDMSc.mjs} +0 -0
  367. /package/dist/chunks/{ja-ipCH91mv.mjs → ja-D0J6WRFh.mjs} +0 -0
  368. /package/dist/chunks/{ka-BRvREIgq.mjs → ka-BZL7xDuY.mjs} +0 -0
  369. /package/dist/chunks/{km-BJwVw7Fg.mjs → km-BimgQZVU.mjs} +0 -0
  370. /package/dist/chunks/{kn-BPgUazCC.mjs → kn-C2n2cPHK.mjs} +0 -0
  371. /package/dist/chunks/{ko-CQLzxe7k.mjs → ko-n4Cn93D3.mjs} +0 -0
  372. /package/dist/chunks/{ku-BHhHu8Iz.mjs → ku-BYZCgT44.mjs} +0 -0
  373. /package/dist/chunks/{lo-DsTgYblY.mjs → lo-DVXiAE4N.mjs} +0 -0
  374. /package/dist/chunks/{lt-CDzHJm71.mjs → lt-B9KlQFnY.mjs} +0 -0
  375. /package/dist/chunks/{lv-MLLIAnIX.mjs → lv-BINeOdyx.mjs} +0 -0
  376. /package/dist/chunks/{mdast-util-math-yS0EygZV.mjs → mdast-util-math-CHYUxOHk.mjs} +0 -0
  377. /package/dist/chunks/{mk-DQdmUquZ.mjs → mk-_-QrPrLN.mjs} +0 -0
  378. /package/dist/chunks/{ml-DqehZnra.mjs → ml-KvJSC1KT.mjs} +0 -0
  379. /package/dist/chunks/{mn-4cFkKFjW.mjs → mn-CjFjWnRG.mjs} +0 -0
  380. /package/dist/chunks/{mr-DWiztOP4.mjs → mr-DqAZ7FRX.mjs} +0 -0
  381. /package/dist/chunks/{ms-BSz-iSnc.mjs → ms-BZcV4UG_.mjs} +0 -0
  382. /package/dist/chunks/{my-DbtbM1MW.mjs → my-97SC9jYN.mjs} +0 -0
  383. /package/dist/chunks/{ne-CqALWw_f.mjs → ne-Bs-M2TyF.mjs} +0 -0
  384. /package/dist/chunks/{nl-D_ra6RvH.mjs → nl-2ZwQilo-.mjs} +0 -0
  385. /package/dist/chunks/{no-Cg_kz_jl.mjs → no-fOQTpFq1.mjs} +0 -0
  386. /package/dist/chunks/{notifier-BOwxj_Ok.mjs → notifier-B1zCi9G1.mjs} +0 -0
  387. /package/dist/chunks/{pa-NLAsNqwY.mjs → pa-DLOqkMi0.mjs} +0 -0
  388. /package/dist/chunks/{pl-NHKp4YDg.mjs → pl-FYs9QrXU.mjs} +0 -0
  389. /package/dist/chunks/{ps-D1zEqNeg.mjs → ps-CTXe6pSe.mjs} +0 -0
  390. /package/dist/chunks/{pt-DBtqbUEB.mjs → pt-B1X4x7d1.mjs} +0 -0
  391. /package/dist/chunks/{ro-lqr63ai5.mjs → ro-Bf7S2FaR.mjs} +0 -0
  392. /package/dist/chunks/{ru-BycNnDyN.mjs → ru-B8lqnu_j.mjs} +0 -0
  393. /package/dist/chunks/{sd-DpHpIN9Z.mjs → sd-CHRYJm2r.mjs} +0 -0
  394. /package/dist/chunks/{si-BwiwaC7N.mjs → si-CI0Hs6vH.mjs} +0 -0
  395. /package/dist/chunks/{sk-CqRHT2Gp.mjs → sk-Bdvq1Kb_.mjs} +0 -0
  396. /package/dist/chunks/{sl-DA348uQ_.mjs → sl-B_qiFTV5.mjs} +0 -0
  397. /package/dist/chunks/{sq-D7JNgve1.mjs → sq-E0j1hysP.mjs} +0 -0
  398. /package/dist/chunks/{sr-D8RK6Kwp.mjs → sr-VPpVNTZw.mjs} +0 -0
  399. /package/dist/chunks/{sv-dwgT67ZG.mjs → sv-gKmDSR3d.mjs} +0 -0
  400. /package/dist/chunks/{sw-ZRRJnkem.mjs → sw-zeFLiO23.mjs} +0 -0
  401. /package/dist/chunks/{ta-5x4L5Krl.mjs → ta-Ci-j89hR.mjs} +0 -0
  402. /package/dist/chunks/{te-BZpEimwA.mjs → te-qyMI0M7a.mjs} +0 -0
  403. /package/dist/chunks/{th-Bhr-33kv.mjs → th-DPxHtpdb.mjs} +0 -0
  404. /package/dist/chunks/{tr-6tSNKGNB.mjs → tr-CRV6GS-G.mjs} +0 -0
  405. /package/dist/chunks/{ug-_e-jvr2b.mjs → ug-DW0YFpo5.mjs} +0 -0
  406. /package/dist/chunks/{uk-DooSc2Ja.mjs → uk-ssteuphK.mjs} +0 -0
  407. /package/dist/chunks/{ur-rb-krkIO.mjs → ur-qhY3-jY7.mjs} +0 -0
  408. /package/dist/chunks/{vi-CQkLn2AQ.mjs → vi-CHriMMC8.mjs} +0 -0
  409. /package/dist/chunks/{zh-CXQ40Q2_.mjs → zh-BJktawVN.mjs} +0 -0
@@ -0,0 +1,3290 @@
1
+ import { t as e } from "./objectSpread2-CWwMYL_U.mjs";
2
+ import { _ as t, g as n, h as r, m as i } from "./src-CRgEHLPW.mjs";
3
+ //#region node_modules/khroma/dist/utils/channel.js
4
+ var a = {
5
+ min: {
6
+ r: 0,
7
+ g: 0,
8
+ b: 0,
9
+ s: 0,
10
+ l: 0,
11
+ a: 0
12
+ },
13
+ max: {
14
+ r: 255,
15
+ g: 255,
16
+ b: 255,
17
+ h: 360,
18
+ s: 100,
19
+ l: 100,
20
+ a: 1
21
+ },
22
+ clamp: {
23
+ r: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
24
+ g: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
25
+ b: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
26
+ h: (e) => e % 360,
27
+ s: (e) => e >= 100 ? 100 : e < 0 ? 0 : e,
28
+ l: (e) => e >= 100 ? 100 : e < 0 ? 0 : e,
29
+ a: (e) => e >= 1 ? 1 : e < 0 ? 0 : e
30
+ },
31
+ toLinear: (e) => {
32
+ let t = e / 255;
33
+ return e > .03928 ? ((t + .055) / 1.055) ** 2.4 : t / 12.92;
34
+ },
35
+ hue2rgb: (e, t, n) => (n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e),
36
+ hsl2rgb: ({ h: e, s: t, l: n }, r) => {
37
+ if (!t) return n * 2.55;
38
+ e /= 360, t /= 100, n /= 100;
39
+ let i = n < .5 ? n * (1 + t) : n + t - n * t, o = 2 * n - i;
40
+ switch (r) {
41
+ case "r": return a.hue2rgb(o, i, e + 1 / 3) * 255;
42
+ case "g": return a.hue2rgb(o, i, e) * 255;
43
+ case "b": return a.hue2rgb(o, i, e - 1 / 3) * 255;
44
+ }
45
+ },
46
+ rgb2hsl: ({ r: e, g: t, b: n }, r) => {
47
+ e /= 255, t /= 255, n /= 255;
48
+ let i = Math.max(e, t, n), a = Math.min(e, t, n), o = (i + a) / 2;
49
+ if (r === "l") return o * 100;
50
+ if (i === a) return 0;
51
+ let s = i - a, c = o > .5 ? s / (2 - i - a) : s / (i + a);
52
+ if (r === "s") return c * 100;
53
+ switch (i) {
54
+ case e: return ((t - n) / s + (t < n ? 6 : 0)) * 60;
55
+ case t: return ((n - e) / s + 2) * 60;
56
+ case n: return ((e - t) / s + 4) * 60;
57
+ default: return -1;
58
+ }
59
+ }
60
+ }, o = {
61
+ channel: a,
62
+ lang: {
63
+ clamp: (e, t, n) => t > n ? Math.min(t, Math.max(n, e)) : Math.min(n, Math.max(t, e)),
64
+ round: (e) => Math.round(e * 1e10) / 1e10
65
+ },
66
+ unit: { dec2hex: (e) => {
67
+ let t = Math.round(e).toString(16);
68
+ return t.length > 1 ? t : `0${t}`;
69
+ } }
70
+ }, s = {};
71
+ for (let e = 0; e <= 255; e++) s[e] = o.unit.dec2hex(e);
72
+ var c = {
73
+ ALL: 0,
74
+ RGB: 1,
75
+ HSL: 2
76
+ }, l = class {
77
+ constructor() {
78
+ this.type = c.ALL;
79
+ }
80
+ get() {
81
+ return this.type;
82
+ }
83
+ set(e) {
84
+ if (this.type && this.type !== e) throw Error("Cannot change both RGB and HSL channels at the same time");
85
+ this.type = e;
86
+ }
87
+ reset() {
88
+ this.type = c.ALL;
89
+ }
90
+ is(e) {
91
+ return this.type === e;
92
+ }
93
+ }, u = new class {
94
+ constructor(e, t) {
95
+ this.color = t, this.changed = !1, this.data = e, this.type = new l();
96
+ }
97
+ set(e, t) {
98
+ return this.color = t, this.changed = !1, this.data = e, this.type.type = c.ALL, this;
99
+ }
100
+ _ensureHSL() {
101
+ let e = this.data, { h: t, s: n, l: r } = e;
102
+ t === void 0 && (e.h = o.channel.rgb2hsl(e, "h")), n === void 0 && (e.s = o.channel.rgb2hsl(e, "s")), r === void 0 && (e.l = o.channel.rgb2hsl(e, "l"));
103
+ }
104
+ _ensureRGB() {
105
+ let e = this.data, { r: t, g: n, b: r } = e;
106
+ t === void 0 && (e.r = o.channel.hsl2rgb(e, "r")), n === void 0 && (e.g = o.channel.hsl2rgb(e, "g")), r === void 0 && (e.b = o.channel.hsl2rgb(e, "b"));
107
+ }
108
+ get r() {
109
+ let e = this.data, t = e.r;
110
+ return !this.type.is(c.HSL) && t !== void 0 ? t : (this._ensureHSL(), o.channel.hsl2rgb(e, "r"));
111
+ }
112
+ get g() {
113
+ let e = this.data, t = e.g;
114
+ return !this.type.is(c.HSL) && t !== void 0 ? t : (this._ensureHSL(), o.channel.hsl2rgb(e, "g"));
115
+ }
116
+ get b() {
117
+ let e = this.data, t = e.b;
118
+ return !this.type.is(c.HSL) && t !== void 0 ? t : (this._ensureHSL(), o.channel.hsl2rgb(e, "b"));
119
+ }
120
+ get h() {
121
+ let e = this.data, t = e.h;
122
+ return !this.type.is(c.RGB) && t !== void 0 ? t : (this._ensureRGB(), o.channel.rgb2hsl(e, "h"));
123
+ }
124
+ get s() {
125
+ let e = this.data, t = e.s;
126
+ return !this.type.is(c.RGB) && t !== void 0 ? t : (this._ensureRGB(), o.channel.rgb2hsl(e, "s"));
127
+ }
128
+ get l() {
129
+ let e = this.data, t = e.l;
130
+ return !this.type.is(c.RGB) && t !== void 0 ? t : (this._ensureRGB(), o.channel.rgb2hsl(e, "l"));
131
+ }
132
+ get a() {
133
+ return this.data.a;
134
+ }
135
+ set r(e) {
136
+ this.type.set(c.RGB), this.changed = !0, this.data.r = e;
137
+ }
138
+ set g(e) {
139
+ this.type.set(c.RGB), this.changed = !0, this.data.g = e;
140
+ }
141
+ set b(e) {
142
+ this.type.set(c.RGB), this.changed = !0, this.data.b = e;
143
+ }
144
+ set h(e) {
145
+ this.type.set(c.HSL), this.changed = !0, this.data.h = e;
146
+ }
147
+ set s(e) {
148
+ this.type.set(c.HSL), this.changed = !0, this.data.s = e;
149
+ }
150
+ set l(e) {
151
+ this.type.set(c.HSL), this.changed = !0, this.data.l = e;
152
+ }
153
+ set a(e) {
154
+ this.changed = !0, this.data.a = e;
155
+ }
156
+ }({
157
+ r: 0,
158
+ g: 0,
159
+ b: 0,
160
+ a: 0
161
+ }, "transparent"), d = {
162
+ re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,
163
+ parse: (e) => {
164
+ if (e.charCodeAt(0) !== 35) return;
165
+ let t = e.match(d.re);
166
+ if (!t) return;
167
+ let n = t[1], r = parseInt(n, 16), i = n.length, a = i % 4 == 0, o = i > 4, s = o ? 1 : 17, c = o ? 8 : 4, l = a ? 0 : -1, f = o ? 255 : 15;
168
+ return u.set({
169
+ r: (r >> c * (l + 3) & f) * s,
170
+ g: (r >> c * (l + 2) & f) * s,
171
+ b: (r >> c * (l + 1) & f) * s,
172
+ a: a ? (r & f) * s / 255 : 1
173
+ }, e);
174
+ },
175
+ stringify: (e) => {
176
+ let { r: t, g: n, b: r, a: i } = e;
177
+ return i < 1 ? `#${s[Math.round(t)]}${s[Math.round(n)]}${s[Math.round(r)]}${s[Math.round(i * 255)]}` : `#${s[Math.round(t)]}${s[Math.round(n)]}${s[Math.round(r)]}`;
178
+ }
179
+ }, f = {
180
+ re: /^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,
181
+ hueRe: /^(.+?)(deg|grad|rad|turn)$/i,
182
+ _hue2deg: (e) => {
183
+ let t = e.match(f.hueRe);
184
+ if (t) {
185
+ let [, e, n] = t;
186
+ switch (n) {
187
+ case "grad": return o.channel.clamp.h(parseFloat(e) * .9);
188
+ case "rad": return o.channel.clamp.h(parseFloat(e) * 180 / Math.PI);
189
+ case "turn": return o.channel.clamp.h(parseFloat(e) * 360);
190
+ }
191
+ }
192
+ return o.channel.clamp.h(parseFloat(e));
193
+ },
194
+ parse: (e) => {
195
+ let t = e.charCodeAt(0);
196
+ if (t !== 104 && t !== 72) return;
197
+ let n = e.match(f.re);
198
+ if (!n) return;
199
+ let [, r, i, a, s, c] = n;
200
+ return u.set({
201
+ h: f._hue2deg(r),
202
+ s: o.channel.clamp.s(parseFloat(i)),
203
+ l: o.channel.clamp.l(parseFloat(a)),
204
+ a: s ? o.channel.clamp.a(c ? parseFloat(s) / 100 : parseFloat(s)) : 1
205
+ }, e);
206
+ },
207
+ stringify: (e) => {
208
+ let { h: t, s: n, l: r, a: i } = e;
209
+ return i < 1 ? `hsla(${o.lang.round(t)}, ${o.lang.round(n)}%, ${o.lang.round(r)}%, ${i})` : `hsl(${o.lang.round(t)}, ${o.lang.round(n)}%, ${o.lang.round(r)}%)`;
210
+ }
211
+ }, p = {
212
+ colors: {
213
+ aliceblue: "#f0f8ff",
214
+ antiquewhite: "#faebd7",
215
+ aqua: "#00ffff",
216
+ aquamarine: "#7fffd4",
217
+ azure: "#f0ffff",
218
+ beige: "#f5f5dc",
219
+ bisque: "#ffe4c4",
220
+ black: "#000000",
221
+ blanchedalmond: "#ffebcd",
222
+ blue: "#0000ff",
223
+ blueviolet: "#8a2be2",
224
+ brown: "#a52a2a",
225
+ burlywood: "#deb887",
226
+ cadetblue: "#5f9ea0",
227
+ chartreuse: "#7fff00",
228
+ chocolate: "#d2691e",
229
+ coral: "#ff7f50",
230
+ cornflowerblue: "#6495ed",
231
+ cornsilk: "#fff8dc",
232
+ crimson: "#dc143c",
233
+ cyanaqua: "#00ffff",
234
+ darkblue: "#00008b",
235
+ darkcyan: "#008b8b",
236
+ darkgoldenrod: "#b8860b",
237
+ darkgray: "#a9a9a9",
238
+ darkgreen: "#006400",
239
+ darkgrey: "#a9a9a9",
240
+ darkkhaki: "#bdb76b",
241
+ darkmagenta: "#8b008b",
242
+ darkolivegreen: "#556b2f",
243
+ darkorange: "#ff8c00",
244
+ darkorchid: "#9932cc",
245
+ darkred: "#8b0000",
246
+ darksalmon: "#e9967a",
247
+ darkseagreen: "#8fbc8f",
248
+ darkslateblue: "#483d8b",
249
+ darkslategray: "#2f4f4f",
250
+ darkslategrey: "#2f4f4f",
251
+ darkturquoise: "#00ced1",
252
+ darkviolet: "#9400d3",
253
+ deeppink: "#ff1493",
254
+ deepskyblue: "#00bfff",
255
+ dimgray: "#696969",
256
+ dimgrey: "#696969",
257
+ dodgerblue: "#1e90ff",
258
+ firebrick: "#b22222",
259
+ floralwhite: "#fffaf0",
260
+ forestgreen: "#228b22",
261
+ fuchsia: "#ff00ff",
262
+ gainsboro: "#dcdcdc",
263
+ ghostwhite: "#f8f8ff",
264
+ gold: "#ffd700",
265
+ goldenrod: "#daa520",
266
+ gray: "#808080",
267
+ green: "#008000",
268
+ greenyellow: "#adff2f",
269
+ grey: "#808080",
270
+ honeydew: "#f0fff0",
271
+ hotpink: "#ff69b4",
272
+ indianred: "#cd5c5c",
273
+ indigo: "#4b0082",
274
+ ivory: "#fffff0",
275
+ khaki: "#f0e68c",
276
+ lavender: "#e6e6fa",
277
+ lavenderblush: "#fff0f5",
278
+ lawngreen: "#7cfc00",
279
+ lemonchiffon: "#fffacd",
280
+ lightblue: "#add8e6",
281
+ lightcoral: "#f08080",
282
+ lightcyan: "#e0ffff",
283
+ lightgoldenrodyellow: "#fafad2",
284
+ lightgray: "#d3d3d3",
285
+ lightgreen: "#90ee90",
286
+ lightgrey: "#d3d3d3",
287
+ lightpink: "#ffb6c1",
288
+ lightsalmon: "#ffa07a",
289
+ lightseagreen: "#20b2aa",
290
+ lightskyblue: "#87cefa",
291
+ lightslategray: "#778899",
292
+ lightslategrey: "#778899",
293
+ lightsteelblue: "#b0c4de",
294
+ lightyellow: "#ffffe0",
295
+ lime: "#00ff00",
296
+ limegreen: "#32cd32",
297
+ linen: "#faf0e6",
298
+ magenta: "#ff00ff",
299
+ maroon: "#800000",
300
+ mediumaquamarine: "#66cdaa",
301
+ mediumblue: "#0000cd",
302
+ mediumorchid: "#ba55d3",
303
+ mediumpurple: "#9370db",
304
+ mediumseagreen: "#3cb371",
305
+ mediumslateblue: "#7b68ee",
306
+ mediumspringgreen: "#00fa9a",
307
+ mediumturquoise: "#48d1cc",
308
+ mediumvioletred: "#c71585",
309
+ midnightblue: "#191970",
310
+ mintcream: "#f5fffa",
311
+ mistyrose: "#ffe4e1",
312
+ moccasin: "#ffe4b5",
313
+ navajowhite: "#ffdead",
314
+ navy: "#000080",
315
+ oldlace: "#fdf5e6",
316
+ olive: "#808000",
317
+ olivedrab: "#6b8e23",
318
+ orange: "#ffa500",
319
+ orangered: "#ff4500",
320
+ orchid: "#da70d6",
321
+ palegoldenrod: "#eee8aa",
322
+ palegreen: "#98fb98",
323
+ paleturquoise: "#afeeee",
324
+ palevioletred: "#db7093",
325
+ papayawhip: "#ffefd5",
326
+ peachpuff: "#ffdab9",
327
+ peru: "#cd853f",
328
+ pink: "#ffc0cb",
329
+ plum: "#dda0dd",
330
+ powderblue: "#b0e0e6",
331
+ purple: "#800080",
332
+ rebeccapurple: "#663399",
333
+ red: "#ff0000",
334
+ rosybrown: "#bc8f8f",
335
+ royalblue: "#4169e1",
336
+ saddlebrown: "#8b4513",
337
+ salmon: "#fa8072",
338
+ sandybrown: "#f4a460",
339
+ seagreen: "#2e8b57",
340
+ seashell: "#fff5ee",
341
+ sienna: "#a0522d",
342
+ silver: "#c0c0c0",
343
+ skyblue: "#87ceeb",
344
+ slateblue: "#6a5acd",
345
+ slategray: "#708090",
346
+ slategrey: "#708090",
347
+ snow: "#fffafa",
348
+ springgreen: "#00ff7f",
349
+ tan: "#d2b48c",
350
+ teal: "#008080",
351
+ thistle: "#d8bfd8",
352
+ transparent: "#00000000",
353
+ turquoise: "#40e0d0",
354
+ violet: "#ee82ee",
355
+ wheat: "#f5deb3",
356
+ white: "#ffffff",
357
+ whitesmoke: "#f5f5f5",
358
+ yellow: "#ffff00",
359
+ yellowgreen: "#9acd32"
360
+ },
361
+ parse: (e) => {
362
+ e = e.toLowerCase();
363
+ let t = p.colors[e];
364
+ if (t) return d.parse(t);
365
+ },
366
+ stringify: (e) => {
367
+ let t = d.stringify(e);
368
+ for (let e in p.colors) if (p.colors[e] === t) return e;
369
+ }
370
+ }, m = {
371
+ re: /^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,
372
+ parse: (e) => {
373
+ let t = e.charCodeAt(0);
374
+ if (t !== 114 && t !== 82) return;
375
+ let n = e.match(m.re);
376
+ if (!n) return;
377
+ let [, r, i, a, s, c, l, d, f] = n;
378
+ return u.set({
379
+ r: o.channel.clamp.r(i ? parseFloat(r) * 2.55 : parseFloat(r)),
380
+ g: o.channel.clamp.g(s ? parseFloat(a) * 2.55 : parseFloat(a)),
381
+ b: o.channel.clamp.b(l ? parseFloat(c) * 2.55 : parseFloat(c)),
382
+ a: d ? o.channel.clamp.a(f ? parseFloat(d) / 100 : parseFloat(d)) : 1
383
+ }, e);
384
+ },
385
+ stringify: (e) => {
386
+ let { r: t, g: n, b: r, a: i } = e;
387
+ return i < 1 ? `rgba(${o.lang.round(t)}, ${o.lang.round(n)}, ${o.lang.round(r)}, ${o.lang.round(i)})` : `rgb(${o.lang.round(t)}, ${o.lang.round(n)}, ${o.lang.round(r)})`;
388
+ }
389
+ }, h = {
390
+ format: {
391
+ keyword: p,
392
+ hex: d,
393
+ rgb: m,
394
+ rgba: m,
395
+ hsl: f,
396
+ hsla: f
397
+ },
398
+ parse: (e) => {
399
+ if (typeof e != "string") return e;
400
+ let t = d.parse(e) || m.parse(e) || f.parse(e) || p.parse(e);
401
+ if (t) return t;
402
+ throw Error(`Unsupported color format: "${e}"`);
403
+ },
404
+ stringify: (e) => !e.changed && e.color ? e.color : e.type.is(c.HSL) || e.data.r === void 0 ? f.stringify(e) : e.a < 1 || !Number.isInteger(e.r) || !Number.isInteger(e.g) || !Number.isInteger(e.b) ? m.stringify(e) : d.stringify(e)
405
+ }, g = (e, t) => {
406
+ let n = h.parse(e);
407
+ for (let e in t) n[e] = o.channel.clamp[e](t[e]);
408
+ return h.stringify(n);
409
+ }, _ = (e, t, n = 0, r = 1) => {
410
+ if (typeof e != "number") return g(e, { a: t });
411
+ let i = u.set({
412
+ r: o.channel.clamp.r(e),
413
+ g: o.channel.clamp.g(t),
414
+ b: o.channel.clamp.b(n),
415
+ a: o.channel.clamp.a(r)
416
+ });
417
+ return h.stringify(i);
418
+ }, v = (e) => {
419
+ let { r: t, g: n, b: r } = h.parse(e), i = .2126 * o.channel.toLinear(t) + .7152 * o.channel.toLinear(n) + .0722 * o.channel.toLinear(r);
420
+ return o.lang.round(i);
421
+ }, y = (e) => v(e) >= .5, b = (e) => !y(e), x = (e, t, n) => {
422
+ let r = h.parse(e), i = r[t], a = o.channel.clamp[t](i + n);
423
+ return i !== a && (r[t] = a), h.stringify(r);
424
+ }, S = (e, t) => x(e, "l", t), C = (e, t) => x(e, "l", -t), w = (e, t) => {
425
+ let n = h.parse(e), r = {};
426
+ for (let e in t) t[e] && (r[e] = n[e] + t[e]);
427
+ return g(e, r);
428
+ }, T = (e, t, n = 50) => {
429
+ let { r, g: i, b: a, a: o } = h.parse(e), { r: s, g: c, b: l, a: u } = h.parse(t), d = n / 100, f = d * 2 - 1, p = o - u, m = ((f * p === -1 ? f : (f + p) / (1 + f * p)) + 1) / 2, g = 1 - m;
430
+ return _(r * m + s * g, i * m + c * g, a * m + l * g, o * d + u * (1 - d));
431
+ }, E = (e, t = 100) => {
432
+ let n = h.parse(e);
433
+ return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b, T(n, e, t);
434
+ }, { entries: D, setPrototypeOf: O, isFrozen: k, getPrototypeOf: A, getOwnPropertyDescriptor: j } = Object, { freeze: M, seal: N, create: P } = Object, { apply: F, construct: I } = typeof Reflect < "u" && Reflect;
435
+ M || (M = function(e) {
436
+ return e;
437
+ }), N || (N = function(e) {
438
+ return e;
439
+ }), F || (F = function(e, t) {
440
+ var n = [...arguments].slice(2);
441
+ return e.apply(t, n);
442
+ }), I || (I = function(e) {
443
+ return new e(...[...arguments].slice(1));
444
+ });
445
+ var ee = z(Array.prototype.forEach), te = z(Array.prototype.lastIndexOf), ne = z(Array.prototype.pop), re = z(Array.prototype.push), ie = z(Array.prototype.splice), ae = z(String.prototype.toLowerCase), oe = z(String.prototype.toString), se = z(String.prototype.match), ce = z(String.prototype.replace), le = z(String.prototype.indexOf), ue = z(String.prototype.trim), L = z(Object.prototype.hasOwnProperty), R = z(RegExp.prototype.test), de = fe(TypeError);
446
+ function z(e) {
447
+ return function(t) {
448
+ t instanceof RegExp && (t.lastIndex = 0);
449
+ var n = [...arguments].slice(1);
450
+ return F(e, t, n);
451
+ };
452
+ }
453
+ function fe(e) {
454
+ return function() {
455
+ return I(e, [...arguments]);
456
+ };
457
+ }
458
+ function B(e, t) {
459
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ae;
460
+ O && O(e, null);
461
+ let r = t.length;
462
+ for (; r--;) {
463
+ let i = t[r];
464
+ if (typeof i == "string") {
465
+ let e = n(i);
466
+ e !== i && (k(t) || (t[r] = e), i = e);
467
+ }
468
+ e[i] = !0;
469
+ }
470
+ return e;
471
+ }
472
+ function pe(e) {
473
+ for (let t = 0; t < e.length; t++) L(e, t) || (e[t] = null);
474
+ return e;
475
+ }
476
+ function me(e) {
477
+ let t = P(null);
478
+ for (let [n, r] of D(e)) L(e, n) && (Array.isArray(r) ? t[n] = pe(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = me(r) : t[n] = r);
479
+ return t;
480
+ }
481
+ function he(e, t) {
482
+ for (; e !== null;) {
483
+ let n = j(e, t);
484
+ if (n) {
485
+ if (n.get) return z(n.get);
486
+ if (typeof n.value == "function") return z(n.value);
487
+ }
488
+ e = A(e);
489
+ }
490
+ function n() {
491
+ return null;
492
+ }
493
+ return n;
494
+ }
495
+ var ge = M(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), _e = M(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), ve = M([
496
+ "feBlend",
497
+ "feColorMatrix",
498
+ "feComponentTransfer",
499
+ "feComposite",
500
+ "feConvolveMatrix",
501
+ "feDiffuseLighting",
502
+ "feDisplacementMap",
503
+ "feDistantLight",
504
+ "feDropShadow",
505
+ "feFlood",
506
+ "feFuncA",
507
+ "feFuncB",
508
+ "feFuncG",
509
+ "feFuncR",
510
+ "feGaussianBlur",
511
+ "feImage",
512
+ "feMerge",
513
+ "feMergeNode",
514
+ "feMorphology",
515
+ "feOffset",
516
+ "fePointLight",
517
+ "feSpecularLighting",
518
+ "feSpotLight",
519
+ "feTile",
520
+ "feTurbulence"
521
+ ]), ye = M([
522
+ "animate",
523
+ "color-profile",
524
+ "cursor",
525
+ "discard",
526
+ "font-face",
527
+ "font-face-format",
528
+ "font-face-name",
529
+ "font-face-src",
530
+ "font-face-uri",
531
+ "foreignobject",
532
+ "hatch",
533
+ "hatchpath",
534
+ "mesh",
535
+ "meshgradient",
536
+ "meshpatch",
537
+ "meshrow",
538
+ "missing-glyph",
539
+ "script",
540
+ "set",
541
+ "solidcolor",
542
+ "unknown",
543
+ "use"
544
+ ]), be = M(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), xe = M([
545
+ "maction",
546
+ "maligngroup",
547
+ "malignmark",
548
+ "mlongdiv",
549
+ "mscarries",
550
+ "mscarry",
551
+ "msgroup",
552
+ "mstack",
553
+ "msline",
554
+ "msrow",
555
+ "semantics",
556
+ "annotation",
557
+ "annotation-xml",
558
+ "mprescripts",
559
+ "none"
560
+ ]), Se = M(["#text"]), Ce = M(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot".split(".")), we = M(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), Te = M(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), Ee = M([
561
+ "xlink:href",
562
+ "xml:id",
563
+ "xlink:title",
564
+ "xml:space",
565
+ "xmlns:xlink"
566
+ ]), V = N(/\{\{[\w\W]*|[\w\W]*\}\}/gm), De = N(/<%[\w\W]*|[\w\W]*%>/gm), H = N(/\$\{[\w\W]*/gm), Oe = N(/^data-[\-\w.\u00B7-\uFFFF]+$/), U = N(/^aria-[\-\w]+$/), ke = N(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Ae = N(/^(?:\w+script|data):/i), je = N(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Me = N(/^html$/i), Ne = N(/^[a-z][.\w]*(-[.\w]+)+$/i), Pe = /* @__PURE__ */ Object.freeze({
567
+ __proto__: null,
568
+ ARIA_ATTR: U,
569
+ ATTR_WHITESPACE: je,
570
+ CUSTOM_ELEMENT: Ne,
571
+ DATA_ATTR: Oe,
572
+ DOCTYPE_NAME: Me,
573
+ ERB_EXPR: De,
574
+ IS_ALLOWED_URI: ke,
575
+ IS_SCRIPT_OR_DATA: Ae,
576
+ MUSTACHE_EXPR: V,
577
+ TMPLIT_EXPR: H
578
+ }), Fe = {
579
+ element: 1,
580
+ attribute: 2,
581
+ text: 3,
582
+ cdataSection: 4,
583
+ entityReference: 5,
584
+ entityNode: 6,
585
+ progressingInstruction: 7,
586
+ comment: 8,
587
+ document: 9,
588
+ documentType: 10,
589
+ documentFragment: 11,
590
+ notation: 12
591
+ }, Ie = function() {
592
+ return typeof window > "u" ? null : window;
593
+ }, Le = function(e, t) {
594
+ if (typeof e != "object" || typeof e.createPolicy != "function") return null;
595
+ let n = null, r = "data-tt-policy-suffix";
596
+ t && t.hasAttribute(r) && (n = t.getAttribute(r));
597
+ let i = "dompurify" + (n ? "#" + n : "");
598
+ try {
599
+ return e.createPolicy(i, {
600
+ createHTML(e) {
601
+ return e;
602
+ },
603
+ createScriptURL(e) {
604
+ return e;
605
+ }
606
+ });
607
+ } catch (e) {
608
+ return console.warn("TrustedTypes policy " + i + " could not be created."), null;
609
+ }
610
+ }, Re = function() {
611
+ return {
612
+ afterSanitizeAttributes: [],
613
+ afterSanitizeElements: [],
614
+ afterSanitizeShadowDOM: [],
615
+ beforeSanitizeAttributes: [],
616
+ beforeSanitizeElements: [],
617
+ beforeSanitizeShadowDOM: [],
618
+ uponSanitizeAttribute: [],
619
+ uponSanitizeElement: [],
620
+ uponSanitizeShadowNode: []
621
+ };
622
+ };
623
+ function ze() {
624
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ie(), t = (e) => ze(e);
625
+ if (t.version = "3.3.3", t.removed = [], !e || !e.document || e.document.nodeType !== Fe.document || !e.Element) return t.isSupported = !1, t;
626
+ let { document: n } = e, r = n, i = r.currentScript, { DocumentFragment: a, HTMLTemplateElement: o, Node: s, Element: c, NodeFilter: l, NamedNodeMap: u = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: d, DOMParser: f, trustedTypes: p } = e, m = c.prototype, h = he(m, "cloneNode"), g = he(m, "remove"), _ = he(m, "nextSibling"), v = he(m, "childNodes"), y = he(m, "parentNode");
627
+ if (typeof o == "function") {
628
+ let e = n.createElement("template");
629
+ e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
630
+ }
631
+ let b, x = "", { implementation: S, createNodeIterator: C, createDocumentFragment: w, getElementsByTagName: T } = n, { importNode: E } = r, O = Re();
632
+ t.isSupported = typeof D == "function" && typeof y == "function" && S && S.createHTMLDocument !== void 0;
633
+ let { MUSTACHE_EXPR: k, ERB_EXPR: A, TMPLIT_EXPR: j, DATA_ATTR: N, ARIA_ATTR: F, IS_SCRIPT_OR_DATA: I, ATTR_WHITESPACE: z, CUSTOM_ELEMENT: fe } = Pe, { IS_ALLOWED_URI: pe } = Pe, V = null, De = B({}, [
634
+ ...ge,
635
+ ..._e,
636
+ ...ve,
637
+ ...be,
638
+ ...Se
639
+ ]), H = null, Oe = B({}, [
640
+ ...Ce,
641
+ ...we,
642
+ ...Te,
643
+ ...Ee
644
+ ]), U = Object.seal(P(null, {
645
+ tagNameCheck: {
646
+ writable: !0,
647
+ configurable: !1,
648
+ enumerable: !0,
649
+ value: null
650
+ },
651
+ attributeNameCheck: {
652
+ writable: !0,
653
+ configurable: !1,
654
+ enumerable: !0,
655
+ value: null
656
+ },
657
+ allowCustomizedBuiltInElements: {
658
+ writable: !0,
659
+ configurable: !1,
660
+ enumerable: !0,
661
+ value: !1
662
+ }
663
+ })), Ae = null, je = null, Ne = Object.seal(P(null, {
664
+ tagCheck: {
665
+ writable: !0,
666
+ configurable: !1,
667
+ enumerable: !0,
668
+ value: null
669
+ },
670
+ attributeCheck: {
671
+ writable: !0,
672
+ configurable: !1,
673
+ enumerable: !0,
674
+ value: null
675
+ }
676
+ })), Be = !0, Ve = !0, He = !1, Ue = !0, We = !1, Ge = !0, W = !1, Ke = !1, qe = !1, Je = !1, Ye = !1, Xe = !1, Ze = !0, Qe = !1, $e = !0, et = !1, tt = {}, G = null, nt = B({}, [
677
+ "annotation-xml",
678
+ "audio",
679
+ "colgroup",
680
+ "desc",
681
+ "foreignobject",
682
+ "head",
683
+ "iframe",
684
+ "math",
685
+ "mi",
686
+ "mn",
687
+ "mo",
688
+ "ms",
689
+ "mtext",
690
+ "noembed",
691
+ "noframes",
692
+ "noscript",
693
+ "plaintext",
694
+ "script",
695
+ "style",
696
+ "svg",
697
+ "template",
698
+ "thead",
699
+ "title",
700
+ "video",
701
+ "xmp"
702
+ ]), rt = null, it = B({}, [
703
+ "audio",
704
+ "video",
705
+ "img",
706
+ "source",
707
+ "image",
708
+ "track"
709
+ ]), at = null, ot = B({}, [
710
+ "alt",
711
+ "class",
712
+ "for",
713
+ "id",
714
+ "label",
715
+ "name",
716
+ "pattern",
717
+ "placeholder",
718
+ "role",
719
+ "summary",
720
+ "title",
721
+ "value",
722
+ "style",
723
+ "xmlns"
724
+ ]), st = "http://www.w3.org/1998/Math/MathML", K = "http://www.w3.org/2000/svg", q = "http://www.w3.org/1999/xhtml", J = q, Y = !1, ct = null, lt = B({}, [
725
+ st,
726
+ K,
727
+ q
728
+ ], oe), ut = B({}, [
729
+ "mi",
730
+ "mo",
731
+ "mn",
732
+ "ms",
733
+ "mtext"
734
+ ]), dt = B({}, ["annotation-xml"]), ft = B({}, [
735
+ "title",
736
+ "style",
737
+ "font",
738
+ "a",
739
+ "script"
740
+ ]), pt = null, mt = ["application/xhtml+xml", "text/html"], X = null, ht = null, gt = n.createElement("form"), _t = function(e) {
741
+ return e instanceof RegExp || e instanceof Function;
742
+ }, vt = function() {
743
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
744
+ if (!(ht && ht === e)) {
745
+ if ((!e || typeof e != "object") && (e = {}), e = me(e), pt = mt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, X = pt === "application/xhtml+xml" ? oe : ae, V = L(e, "ALLOWED_TAGS") ? B({}, e.ALLOWED_TAGS, X) : De, H = L(e, "ALLOWED_ATTR") ? B({}, e.ALLOWED_ATTR, X) : Oe, ct = L(e, "ALLOWED_NAMESPACES") ? B({}, e.ALLOWED_NAMESPACES, oe) : lt, at = L(e, "ADD_URI_SAFE_ATTR") ? B(me(ot), e.ADD_URI_SAFE_ATTR, X) : ot, rt = L(e, "ADD_DATA_URI_TAGS") ? B(me(it), e.ADD_DATA_URI_TAGS, X) : it, G = L(e, "FORBID_CONTENTS") ? B({}, e.FORBID_CONTENTS, X) : nt, Ae = L(e, "FORBID_TAGS") ? B({}, e.FORBID_TAGS, X) : me({}), je = L(e, "FORBID_ATTR") ? B({}, e.FORBID_ATTR, X) : me({}), tt = L(e, "USE_PROFILES") ? e.USE_PROFILES : !1, Be = e.ALLOW_ARIA_ATTR !== !1, Ve = e.ALLOW_DATA_ATTR !== !1, He = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Ue = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, We = e.SAFE_FOR_TEMPLATES || !1, Ge = e.SAFE_FOR_XML !== !1, W = e.WHOLE_DOCUMENT || !1, Je = e.RETURN_DOM || !1, Ye = e.RETURN_DOM_FRAGMENT || !1, Xe = e.RETURN_TRUSTED_TYPE || !1, qe = e.FORCE_BODY || !1, Ze = e.SANITIZE_DOM !== !1, Qe = e.SANITIZE_NAMED_PROPS || !1, $e = e.KEEP_CONTENT !== !1, et = e.IN_PLACE || !1, pe = e.ALLOWED_URI_REGEXP || ke, J = e.NAMESPACE || q, ut = e.MATHML_TEXT_INTEGRATION_POINTS || ut, dt = e.HTML_INTEGRATION_POINTS || dt, U = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && _t(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (U.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && _t(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (U.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (U.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), We && (Ve = !1), Ye && (Je = !0), tt && (V = B({}, Se), H = P(null), tt.html === !0 && (B(V, ge), B(H, Ce)), tt.svg === !0 && (B(V, _e), B(H, we), B(H, Ee)), tt.svgFilters === !0 && (B(V, ve), B(H, we), B(H, Ee)), tt.mathMl === !0 && (B(V, be), B(H, Te), B(H, Ee))), L(e, "ADD_TAGS") || (Ne.tagCheck = null), L(e, "ADD_ATTR") || (Ne.attributeCheck = null), e.ADD_TAGS && (typeof e.ADD_TAGS == "function" ? Ne.tagCheck = e.ADD_TAGS : (V === De && (V = me(V)), B(V, e.ADD_TAGS, X))), e.ADD_ATTR && (typeof e.ADD_ATTR == "function" ? Ne.attributeCheck = e.ADD_ATTR : (H === Oe && (H = me(H)), B(H, e.ADD_ATTR, X))), e.ADD_URI_SAFE_ATTR && B(at, e.ADD_URI_SAFE_ATTR, X), e.FORBID_CONTENTS && (G === nt && (G = me(G)), B(G, e.FORBID_CONTENTS, X)), e.ADD_FORBID_CONTENTS && (G === nt && (G = me(G)), B(G, e.ADD_FORBID_CONTENTS, X)), $e && (V["#text"] = !0), W && B(V, [
746
+ "html",
747
+ "head",
748
+ "body"
749
+ ]), V.table && (B(V, ["tbody"]), delete Ae.tbody), e.TRUSTED_TYPES_POLICY) {
750
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw de("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
751
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw de("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
752
+ b = e.TRUSTED_TYPES_POLICY, x = b.createHTML("");
753
+ } else b === void 0 && (b = Le(p, i)), b !== null && typeof x == "string" && (x = b.createHTML(""));
754
+ M && M(e), ht = e;
755
+ }
756
+ }, yt = B({}, [
757
+ ..._e,
758
+ ...ve,
759
+ ...ye
760
+ ]), bt = B({}, [...be, ...xe]), xt = function(e) {
761
+ let t = y(e);
762
+ (!t || !t.tagName) && (t = {
763
+ namespaceURI: J,
764
+ tagName: "template"
765
+ });
766
+ let n = ae(e.tagName), r = ae(t.tagName);
767
+ return ct[e.namespaceURI] ? e.namespaceURI === K ? t.namespaceURI === q ? n === "svg" : t.namespaceURI === st ? n === "svg" && (r === "annotation-xml" || ut[r]) : !!yt[n] : e.namespaceURI === st ? t.namespaceURI === q ? n === "math" : t.namespaceURI === K ? n === "math" && dt[r] : !!bt[n] : e.namespaceURI === q ? t.namespaceURI === K && !dt[r] || t.namespaceURI === st && !ut[r] ? !1 : !bt[n] && (ft[n] || !yt[n]) : !!(pt === "application/xhtml+xml" && ct[e.namespaceURI]) : !1;
768
+ }, St = function(e) {
769
+ re(t.removed, { element: e });
770
+ try {
771
+ y(e).removeChild(e);
772
+ } catch (t) {
773
+ g(e);
774
+ }
775
+ }, Ct = function(e, n) {
776
+ try {
777
+ re(t.removed, {
778
+ attribute: n.getAttributeNode(e),
779
+ from: n
780
+ });
781
+ } catch (e) {
782
+ re(t.removed, {
783
+ attribute: null,
784
+ from: n
785
+ });
786
+ }
787
+ if (n.removeAttribute(e), e === "is") if (Je || Ye) try {
788
+ St(n);
789
+ } catch (e) {}
790
+ else try {
791
+ n.setAttribute(e, "");
792
+ } catch (e) {}
793
+ }, wt = function(e) {
794
+ let t = null, r = null;
795
+ if (qe) e = "<remove></remove>" + e;
796
+ else {
797
+ let t = se(e, /^[\r\n\t ]+/);
798
+ r = t && t[0];
799
+ }
800
+ pt === "application/xhtml+xml" && J === q && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
801
+ let i = b ? b.createHTML(e) : e;
802
+ if (J === q) try {
803
+ t = new f().parseFromString(i, pt);
804
+ } catch (e) {}
805
+ if (!t || !t.documentElement) {
806
+ t = S.createDocument(J, "template", null);
807
+ try {
808
+ t.documentElement.innerHTML = Y ? x : i;
809
+ } catch (e) {}
810
+ }
811
+ let a = t.body || t.documentElement;
812
+ return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), J === q ? T.call(t, W ? "html" : "body")[0] : W ? t.documentElement : a;
813
+ }, Tt = function(e) {
814
+ return C.call(e.ownerDocument || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
815
+ }, Et = function(e) {
816
+ return e instanceof d && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof u) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
817
+ }, Dt = function(e) {
818
+ return typeof s == "function" && e instanceof s;
819
+ };
820
+ function Z(e, n, r) {
821
+ ee(e, (e) => {
822
+ e.call(t, n, r, ht);
823
+ });
824
+ }
825
+ let Ot = function(e) {
826
+ let n = null;
827
+ if (Z(O.beforeSanitizeElements, e, null), Et(e)) return St(e), !0;
828
+ let r = X(e.nodeName);
829
+ if (Z(O.uponSanitizeElement, e, {
830
+ tagName: r,
831
+ allowedTags: V
832
+ }), Ge && e.hasChildNodes() && !Dt(e.firstElementChild) && R(/<[/\w!]/g, e.innerHTML) && R(/<[/\w!]/g, e.textContent) || e.nodeType === Fe.progressingInstruction || Ge && e.nodeType === Fe.comment && R(/<[/\w]/g, e.data)) return St(e), !0;
833
+ if (!(Ne.tagCheck instanceof Function && Ne.tagCheck(r)) && (!V[r] || Ae[r])) {
834
+ if (!Ae[r] && kt(r) && (U.tagNameCheck instanceof RegExp && R(U.tagNameCheck, r) || U.tagNameCheck instanceof Function && U.tagNameCheck(r))) return !1;
835
+ if ($e && !G[r]) {
836
+ let t = y(e) || e.parentNode, n = v(e) || e.childNodes;
837
+ if (n && t) {
838
+ let r = n.length;
839
+ for (let i = r - 1; i >= 0; --i) {
840
+ let r = h(n[i], !0);
841
+ r.__removalCount = (e.__removalCount || 0) + 1, t.insertBefore(r, _(e));
842
+ }
843
+ }
844
+ }
845
+ return St(e), !0;
846
+ }
847
+ return e instanceof c && !xt(e) || (r === "noscript" || r === "noembed" || r === "noframes") && R(/<\/no(script|embed|frames)/i, e.innerHTML) ? (St(e), !0) : (We && e.nodeType === Fe.text && (n = e.textContent, ee([
848
+ k,
849
+ A,
850
+ j
851
+ ], (e) => {
852
+ n = ce(n, e, " ");
853
+ }), e.textContent !== n && (re(t.removed, { element: e.cloneNode() }), e.textContent = n)), Z(O.afterSanitizeElements, e, null), !1);
854
+ }, Q = function(e, t, r) {
855
+ if (je[t] || Ze && (t === "id" || t === "name") && (r in n || r in gt)) return !1;
856
+ if (!(Ve && !je[t] && R(N, t)) && !(Be && R(F, t)) && !(Ne.attributeCheck instanceof Function && Ne.attributeCheck(t, e))) {
857
+ if (!H[t] || je[t]) {
858
+ if (!(kt(e) && (U.tagNameCheck instanceof RegExp && R(U.tagNameCheck, e) || U.tagNameCheck instanceof Function && U.tagNameCheck(e)) && (U.attributeNameCheck instanceof RegExp && R(U.attributeNameCheck, t) || U.attributeNameCheck instanceof Function && U.attributeNameCheck(t, e)) || t === "is" && U.allowCustomizedBuiltInElements && (U.tagNameCheck instanceof RegExp && R(U.tagNameCheck, r) || U.tagNameCheck instanceof Function && U.tagNameCheck(r)))) return !1;
859
+ } else if (!at[t] && !R(pe, ce(r, z, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && le(r, "data:") === 0 && rt[e]) && !(He && !R(I, ce(r, z, ""))) && r) return !1;
860
+ }
861
+ return !0;
862
+ }, kt = function(e) {
863
+ return e !== "annotation-xml" && se(e, fe);
864
+ }, At = function(e) {
865
+ Z(O.beforeSanitizeAttributes, e, null);
866
+ let { attributes: n } = e;
867
+ if (!n || Et(e)) return;
868
+ let r = {
869
+ attrName: "",
870
+ attrValue: "",
871
+ keepAttr: !0,
872
+ allowedAttributes: H,
873
+ forceKeepAttr: void 0
874
+ }, i = n.length;
875
+ for (; i--;) {
876
+ let { name: a, namespaceURI: o, value: s } = n[i], c = X(a), l = s, u = a === "value" ? l : ue(l);
877
+ if (r.attrName = c, r.attrValue = u, r.keepAttr = !0, r.forceKeepAttr = void 0, Z(O.uponSanitizeAttribute, e, r), u = r.attrValue, Qe && (c === "id" || c === "name") && (Ct(a, e), u = "user-content-" + u), Ge && R(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, u)) {
878
+ Ct(a, e);
879
+ continue;
880
+ }
881
+ if (c === "attributename" && se(u, "href")) {
882
+ Ct(a, e);
883
+ continue;
884
+ }
885
+ if (r.forceKeepAttr) continue;
886
+ if (!r.keepAttr) {
887
+ Ct(a, e);
888
+ continue;
889
+ }
890
+ if (!Ue && R(/\/>/i, u)) {
891
+ Ct(a, e);
892
+ continue;
893
+ }
894
+ We && ee([
895
+ k,
896
+ A,
897
+ j
898
+ ], (e) => {
899
+ u = ce(u, e, " ");
900
+ });
901
+ let d = X(e.nodeName);
902
+ if (!Q(d, c, u)) {
903
+ Ct(a, e);
904
+ continue;
905
+ }
906
+ if (b && typeof p == "object" && typeof p.getAttributeType == "function" && !o) switch (p.getAttributeType(d, c)) {
907
+ case "TrustedHTML":
908
+ u = b.createHTML(u);
909
+ break;
910
+ case "TrustedScriptURL":
911
+ u = b.createScriptURL(u);
912
+ break;
913
+ }
914
+ if (u !== l) try {
915
+ o ? e.setAttributeNS(o, a, u) : e.setAttribute(a, u), Et(e) ? St(e) : ne(t.removed);
916
+ } catch (t) {
917
+ Ct(a, e);
918
+ }
919
+ }
920
+ Z(O.afterSanitizeAttributes, e, null);
921
+ }, jt = function e(t) {
922
+ let n = null, r = Tt(t);
923
+ for (Z(O.beforeSanitizeShadowDOM, t, null); n = r.nextNode();) Z(O.uponSanitizeShadowNode, n, null), Ot(n), At(n), n.content instanceof a && e(n.content);
924
+ Z(O.afterSanitizeShadowDOM, t, null);
925
+ };
926
+ return t.sanitize = function(e) {
927
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, o = null, c = null, l = null;
928
+ if (Y = !e, Y && (e = "<!-->"), typeof e != "string" && !Dt(e)) if (typeof e.toString == "function") {
929
+ if (e = e.toString(), typeof e != "string") throw de("dirty is not a string, aborting");
930
+ } else throw de("toString is not a function");
931
+ if (!t.isSupported) return e;
932
+ if (Ke || vt(n), t.removed = [], typeof e == "string" && (et = !1), et) {
933
+ if (e.nodeName) {
934
+ let t = X(e.nodeName);
935
+ if (!V[t] || Ae[t]) throw de("root node is forbidden and cannot be sanitized in-place");
936
+ }
937
+ } else if (e instanceof s) i = wt("<!---->"), o = i.ownerDocument.importNode(e, !0), o.nodeType === Fe.element && o.nodeName === "BODY" || o.nodeName === "HTML" ? i = o : i.appendChild(o);
938
+ else {
939
+ if (!Je && !We && !W && e.indexOf("<") === -1) return b && Xe ? b.createHTML(e) : e;
940
+ if (i = wt(e), !i) return Je ? null : Xe ? x : "";
941
+ }
942
+ i && qe && St(i.firstChild);
943
+ let u = Tt(et ? e : i);
944
+ for (; c = u.nextNode();) Ot(c), At(c), c.content instanceof a && jt(c.content);
945
+ if (et) return e;
946
+ if (Je) {
947
+ if (Ye) for (l = w.call(i.ownerDocument); i.firstChild;) l.appendChild(i.firstChild);
948
+ else l = i;
949
+ return (H.shadowroot || H.shadowrootmode) && (l = E.call(r, l, !0)), l;
950
+ }
951
+ let d = W ? i.outerHTML : i.innerHTML;
952
+ return W && V["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && R(Me, i.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + d), We && ee([
953
+ k,
954
+ A,
955
+ j
956
+ ], (e) => {
957
+ d = ce(d, e, " ");
958
+ }), b && Xe ? b.createHTML(d) : d;
959
+ }, t.setConfig = function() {
960
+ vt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), Ke = !0;
961
+ }, t.clearConfig = function() {
962
+ ht = null, Ke = !1;
963
+ }, t.isValidAttribute = function(e, t, n) {
964
+ return ht || vt({}), Q(X(e), X(t), n);
965
+ }, t.addHook = function(e, t) {
966
+ typeof t == "function" && re(O[e], t);
967
+ }, t.removeHook = function(e, t) {
968
+ if (t !== void 0) {
969
+ let n = te(O[e], t);
970
+ return n === -1 ? void 0 : ie(O[e], n, 1)[0];
971
+ }
972
+ return ne(O[e]);
973
+ }, t.removeHooks = function(e) {
974
+ O[e] = [];
975
+ }, t.removeAllHooks = function() {
976
+ O = Re();
977
+ }, t;
978
+ }
979
+ var Be = ze(), Ve, He, Ue, We, Ge, W, Ke, qe, Je, Ye, Xe, Ze, Qe, $e = /* @__PURE__ */ RegExp("^-{3}\\s*[\\n\\r](.*?)[\\n\\r]-{3}\\s*[\\n\\r]+", "s"), et = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, tt = /\s*%%.*\n/gm, G = (Ve = class extends Error {
980
+ constructor(e) {
981
+ super(e), this.name = "UnknownDiagramError";
982
+ }
983
+ }, r(Ve, "UnknownDiagramError"), Ve), nt = {}, rt = /* @__PURE__ */ r(function(e, t) {
984
+ e = e.replace($e, "").replace(et, "").replace(tt, "\n");
985
+ for (let [n, { detector: r }] of Object.entries(nt)) if (r(e, t)) return n;
986
+ throw new G(`No diagram type detected matching given configuration for text: ${e}`);
987
+ }, "detectType"), it = /* @__PURE__ */ r((...e) => {
988
+ for (let { id: t, detector: n, loader: r } of e) at(t, n, r);
989
+ }, "registerLazyLoadedDiagrams"), at = /* @__PURE__ */ r((e, t, r) => {
990
+ nt[e] && n.warn(`Detector with key ${e} already exists. Overwriting.`), nt[e] = {
991
+ detector: t,
992
+ loader: r
993
+ }, n.debug(`Detector with key ${e} added${r ? " with loader" : ""}`);
994
+ }, "addDetector"), ot = /* @__PURE__ */ r((e) => nt[e].loader, "getDiagramLoader"), st = /* @__PURE__ */ r((e, t, { depth: n = 2, clobber: r = !1 } = {}) => {
995
+ let i = {
996
+ depth: n,
997
+ clobber: r
998
+ };
999
+ return Array.isArray(t) && !Array.isArray(e) ? (t.forEach((t) => st(e, t, i)), e) : Array.isArray(t) && Array.isArray(e) ? (t.forEach((t) => {
1000
+ e.includes(t) || e.push(t);
1001
+ }), e) : e === void 0 || n <= 0 ? typeof e == "object" && e && typeof t == "object" ? Object.assign(e, t) : t : (t !== void 0 && typeof e == "object" && typeof t == "object" && Object.keys(t).forEach((i) => {
1002
+ typeof t[i] == "object" && t[i] !== null && (e[i] === void 0 || typeof e[i] == "object") ? (e[i] === void 0 && (e[i] = Array.isArray(t[i]) ? [] : {}), e[i] = st(e[i], t[i], {
1003
+ depth: n - 1,
1004
+ clobber: r
1005
+ })) : (r || typeof e[i] != "object" && typeof t[i] != "object") && (e[i] = t[i]);
1006
+ }), e);
1007
+ }, "assignWithDepth"), K = st, q = "#ffffff", J = "#f2f2f2", Y = /* @__PURE__ */ r((e, t) => t ? w(e, {
1008
+ s: -40,
1009
+ l: 10
1010
+ }) : w(e, {
1011
+ s: -40,
1012
+ l: -10
1013
+ }), "mkBorder"), ct = (He = class {
1014
+ constructor() {
1015
+ 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))";
1016
+ }
1017
+ updateColors() {
1018
+ var e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, x, T, D, O, k, A, j, M, N, P, F, I;
1019
+ if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || w(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || w(this.primaryColor, {
1020
+ h: 180,
1021
+ l: 5
1022
+ }), this.primaryBorderColor = this.primaryBorderColor || Y(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || Y(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || Y(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || Y(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || E(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || E(this.tertiaryColor), this.lineColor = this.lineColor || E(this.background), this.arrowheadColor = this.arrowheadColor || E(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 || E(this.lineColor), this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || S(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 || S(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || S(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 || w(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || w(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || w(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || w(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || w(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || w(this.primaryColor, {
1023
+ h: 210,
1024
+ l: 150
1025
+ }), this.cScale9 = this.cScale9 || w(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || w(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || w(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = C(this["cScale" + e], 75);
1026
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = C(this["cScale" + e], 25);
1027
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || E(this["cScale" + e]);
1028
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || S(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || C(this["cScale" + e], 10);
1029
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1030
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1031
+ let ee = this.darkMode ? -4 : -1;
1032
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || w(this.mainBkg, {
1033
+ h: 180,
1034
+ s: -15,
1035
+ l: ee * (5 + e * 3)
1036
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || w(this.mainBkg, {
1037
+ h: 180,
1038
+ s: -15,
1039
+ l: ee * (8 + e * 3)
1040
+ });
1041
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || w(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || w(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || w(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || w(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || w(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || w(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 || w(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || w(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || w(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || w(this.primaryColor, {
1042
+ h: 60,
1043
+ l: -10
1044
+ }), this.pie8 = this.pie8 || w(this.primaryColor, {
1045
+ h: -60,
1046
+ l: -10
1047
+ }), this.pie9 = this.pie9 || w(this.primaryColor, {
1048
+ h: 120,
1049
+ l: 0
1050
+ }), this.pie10 = this.pie10 || w(this.primaryColor, {
1051
+ h: 60,
1052
+ l: -20
1053
+ }), this.pie11 = this.pie11 || w(this.primaryColor, {
1054
+ h: -60,
1055
+ l: -20
1056
+ }), this.pie12 = this.pie12 || w(this.primaryColor, {
1057
+ h: 120,
1058
+ l: -10
1059
+ }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.venn1 = (e = this.venn1) == null ? w(this.primaryColor, { l: -30 }) : e, this.venn2 = (t = this.venn2) == null ? w(this.secondaryColor, { l: -30 }) : t, this.venn3 = (n = this.venn3) == null ? w(this.tertiaryColor, { l: -30 }) : n, this.venn4 = (r = this.venn4) == null ? w(this.primaryColor, {
1060
+ h: 60,
1061
+ l: -30
1062
+ }) : r, this.venn5 = (i = this.venn5) == null ? w(this.primaryColor, {
1063
+ h: -60,
1064
+ l: -30
1065
+ }) : i, this.venn6 = (a = this.venn6) == null ? w(this.secondaryColor, {
1066
+ h: 60,
1067
+ l: -30
1068
+ }) : a, this.venn7 = (o = this.venn7) == null ? w(this.primaryColor, {
1069
+ h: 120,
1070
+ l: -30
1071
+ }) : o, this.venn8 = (s = this.venn8) == null ? w(this.secondaryColor, {
1072
+ h: 120,
1073
+ l: -30
1074
+ }) : s, this.vennTitleTextColor = (c = this.vennTitleTextColor) == null ? this.titleColor : c, this.vennSetTextColor = (l = this.vennSetTextColor) == null ? this.textColor : l, this.radar = {
1075
+ axisColor: ((u = this.radar) == null ? void 0 : u.axisColor) || this.lineColor,
1076
+ axisStrokeWidth: ((d = this.radar) == null ? void 0 : d.axisStrokeWidth) || 2,
1077
+ axisLabelFontSize: ((f = this.radar) == null ? void 0 : f.axisLabelFontSize) || 12,
1078
+ curveOpacity: ((p = this.radar) == null ? void 0 : p.curveOpacity) || .5,
1079
+ curveStrokeWidth: ((m = this.radar) == null ? void 0 : m.curveStrokeWidth) || 2,
1080
+ graticuleColor: ((h = this.radar) == null ? void 0 : h.graticuleColor) || "#DEDEDE",
1081
+ graticuleStrokeWidth: ((g = this.radar) == null ? void 0 : g.graticuleStrokeWidth) || 1,
1082
+ graticuleOpacity: ((_ = this.radar) == null ? void 0 : _.graticuleOpacity) || .3,
1083
+ legendBoxSize: ((v = this.radar) == null ? void 0 : v.legendBoxSize) || 12,
1084
+ legendFontSize: ((y = this.radar) == null ? void 0 : y.legendFontSize) || 12
1085
+ }, 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 || w(this.primaryColor, {
1086
+ r: 5,
1087
+ g: 5,
1088
+ b: 5
1089
+ }), this.quadrant3Fill = this.quadrant3Fill || w(this.primaryColor, {
1090
+ r: 10,
1091
+ g: 10,
1092
+ b: 10
1093
+ }), this.quadrant4Fill = this.quadrant4Fill || w(this.primaryColor, {
1094
+ r: 15,
1095
+ g: 15,
1096
+ b: 15
1097
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || w(this.primaryTextColor, {
1098
+ r: -5,
1099
+ g: -5,
1100
+ b: -5
1101
+ }), this.quadrant3TextFill = this.quadrant3TextFill || w(this.primaryTextColor, {
1102
+ r: -10,
1103
+ g: -10,
1104
+ b: -10
1105
+ }), this.quadrant4TextFill = this.quadrant4TextFill || w(this.primaryTextColor, {
1106
+ r: -15,
1107
+ g: -15,
1108
+ b: -15
1109
+ }), this.quadrantPointFill = this.quadrantPointFill || b(this.quadrant1Fill) ? S(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 = {
1110
+ backgroundColor: ((x = this.xyChart) == null ? void 0 : x.backgroundColor) || this.background,
1111
+ titleColor: ((T = this.xyChart) == null ? void 0 : T.titleColor) || this.primaryTextColor,
1112
+ dataLabelColor: ((D = this.xyChart) == null ? void 0 : D.dataLabelColor) || this.primaryTextColor,
1113
+ xAxisTitleColor: ((O = this.xyChart) == null ? void 0 : O.xAxisTitleColor) || this.primaryTextColor,
1114
+ xAxisLabelColor: ((k = this.xyChart) == null ? void 0 : k.xAxisLabelColor) || this.primaryTextColor,
1115
+ xAxisTickColor: ((A = this.xyChart) == null ? void 0 : A.xAxisTickColor) || this.primaryTextColor,
1116
+ xAxisLineColor: ((j = this.xyChart) == null ? void 0 : j.xAxisLineColor) || this.primaryTextColor,
1117
+ yAxisTitleColor: ((M = this.xyChart) == null ? void 0 : M.yAxisTitleColor) || this.primaryTextColor,
1118
+ yAxisLabelColor: ((N = this.xyChart) == null ? void 0 : N.yAxisLabelColor) || this.primaryTextColor,
1119
+ yAxisTickColor: ((P = this.xyChart) == null ? void 0 : P.yAxisTickColor) || this.primaryTextColor,
1120
+ yAxisLineColor: ((F = this.xyChart) == null ? void 0 : F.yAxisLineColor) || this.primaryTextColor,
1121
+ plotColorPalette: ((I = this.xyChart) == null ? void 0 : I.plotColorPalette) || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1122
+ }, 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 || w(this.primaryColor, { h: -30 }), this.git4 = this.git4 || w(this.primaryColor, { h: -60 }), this.git5 = this.git5 || w(this.primaryColor, { h: -90 }), this.git6 = this.git6 || w(this.primaryColor, { h: 60 }), this.git7 = this.git7 || w(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = S(this.git0, 25), this.git1 = S(this.git1, 25), this.git2 = S(this.git2, 25), this.git3 = S(this.git3, 25), this.git4 = S(this.git4, 25), this.git5 = S(this.git5, 25), this.git6 = S(this.git6, 25), this.git7 = S(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 || E(this.git0), this.gitInv1 = this.gitInv1 || E(this.git1), this.gitInv2 = this.gitInv2 || E(this.git2), this.gitInv3 = this.gitInv3 || E(this.git3), this.gitInv4 = this.gitInv4 || E(this.git4), this.gitInv5 = this.gitInv5 || E(this.git5), this.gitInv6 = this.gitInv6 || E(this.git6), this.gitInv7 = this.gitInv7 || E(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 || q, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || J, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
1123
+ }
1124
+ calculate(e) {
1125
+ if (typeof e != "object") {
1126
+ this.updateColors();
1127
+ return;
1128
+ }
1129
+ let t = Object.keys(e);
1130
+ t.forEach((t) => {
1131
+ this[t] = e[t];
1132
+ }), this.updateColors(), t.forEach((t) => {
1133
+ this[t] = e[t];
1134
+ });
1135
+ }
1136
+ }, r(He, "Theme"), He), lt = /* @__PURE__ */ r((e) => {
1137
+ let t = new ct();
1138
+ return t.calculate(e), t;
1139
+ }, "getThemeVariables"), ut = (Ue = class {
1140
+ constructor() {
1141
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = S(this.primaryColor, 16), this.tertiaryColor = w(this.primaryColor, { h: -160 }), this.primaryBorderColor = E(this.background), this.secondaryBorderColor = Y(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = Y(this.tertiaryColor, this.darkMode), this.primaryTextColor = E(this.primaryColor), this.secondaryTextColor = E(this.secondaryColor), this.tertiaryTextColor = E(this.tertiaryColor), this.lineColor = E(this.background), this.textColor = E(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = S(E("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = _(255, 255, 255, .25), this.arrowheadColor = "calculated", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.labelBackground = "#181818", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#F9FFFE", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "calculated", this.activationBkgColor = "calculated", this.sequenceNumberColor = "black", this.clusterBkg = "#302F3D", this.sectionBkgColor = C("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = C(this.sectionBkgColor, 10), this.taskBorderColor = _(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = _(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 || S(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";
1142
+ }
1143
+ updateColors() {
1144
+ var e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, x, T, D, O;
1145
+ this.secondBkg = S(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 = S(this.labelBackground, 25), this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.actorTextColor = this.mainContrastColor, this.actorLineColor = this.actorBorder, this.signalColor = this.mainContrastColor, this.signalTextColor = this.mainContrastColor, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.mainContrastColor, this.loopTextColor = this.mainContrastColor, this.noteBorderColor = this.secondaryBorderColor, this.noteBkgColor = this.secondBkg, this.noteTextColor = this.secondaryTextColor, this.activationBorderColor = this.border1, this.activationBkgColor = this.secondBkg, this.altSectionBkgColor = this.background, this.taskBkgColor = S(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 = E(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 = w(this.primaryColor, { h: 64 }), this.fillType3 = w(this.secondaryColor, { h: 64 }), this.fillType4 = w(this.primaryColor, { h: -64 }), this.fillType5 = w(this.secondaryColor, { h: -64 }), this.fillType6 = w(this.primaryColor, { h: 128 }), this.fillType7 = w(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 || w(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || w(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || w(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || w(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || w(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || w(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || w(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || w(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || w(this.primaryColor, { h: 330 });
1146
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || E(this["cScale" + e]);
1147
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || S(this["cScale" + e], 10);
1148
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || w(this.mainBkg, {
1149
+ h: 30,
1150
+ s: -30,
1151
+ l: -(-10 + e * 4)
1152
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || w(this.mainBkg, {
1153
+ h: 30,
1154
+ s: -30,
1155
+ l: -(-7 + e * 4)
1156
+ });
1157
+ this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor);
1158
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1159
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1160
+ 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";
1161
+ for (let e = 0; e < 8; e++) {
1162
+ var k;
1163
+ this["venn" + (e + 1)] = (k = this["venn" + (e + 1)]) == null ? S(this["cScale" + e], 30) : k;
1164
+ }
1165
+ this.vennTitleTextColor = (e = this.vennTitleTextColor) == null ? this.titleColor : e, this.vennSetTextColor = (t = this.vennSetTextColor) == null ? this.textColor : t, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || w(this.primaryColor, {
1166
+ r: 5,
1167
+ g: 5,
1168
+ b: 5
1169
+ }), this.quadrant3Fill = this.quadrant3Fill || w(this.primaryColor, {
1170
+ r: 10,
1171
+ g: 10,
1172
+ b: 10
1173
+ }), this.quadrant4Fill = this.quadrant4Fill || w(this.primaryColor, {
1174
+ r: 15,
1175
+ g: 15,
1176
+ b: 15
1177
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || w(this.primaryTextColor, {
1178
+ r: -5,
1179
+ g: -5,
1180
+ b: -5
1181
+ }), this.quadrant3TextFill = this.quadrant3TextFill || w(this.primaryTextColor, {
1182
+ r: -10,
1183
+ g: -10,
1184
+ b: -10
1185
+ }), this.quadrant4TextFill = this.quadrant4TextFill || w(this.primaryTextColor, {
1186
+ r: -15,
1187
+ g: -15,
1188
+ b: -15
1189
+ }), this.quadrantPointFill = this.quadrantPointFill || b(this.quadrant1Fill) ? S(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 = {
1190
+ backgroundColor: ((n = this.xyChart) == null ? void 0 : n.backgroundColor) || this.background,
1191
+ titleColor: ((r = this.xyChart) == null ? void 0 : r.titleColor) || this.primaryTextColor,
1192
+ dataLabelColor: ((i = this.xyChart) == null ? void 0 : i.dataLabelColor) || this.primaryTextColor,
1193
+ xAxisTitleColor: ((a = this.xyChart) == null ? void 0 : a.xAxisTitleColor) || this.primaryTextColor,
1194
+ xAxisLabelColor: ((o = this.xyChart) == null ? void 0 : o.xAxisLabelColor) || this.primaryTextColor,
1195
+ xAxisTickColor: ((s = this.xyChart) == null ? void 0 : s.xAxisTickColor) || this.primaryTextColor,
1196
+ xAxisLineColor: ((c = this.xyChart) == null ? void 0 : c.xAxisLineColor) || this.primaryTextColor,
1197
+ yAxisTitleColor: ((l = this.xyChart) == null ? void 0 : l.yAxisTitleColor) || this.primaryTextColor,
1198
+ yAxisLabelColor: ((u = this.xyChart) == null ? void 0 : u.yAxisLabelColor) || this.primaryTextColor,
1199
+ yAxisTickColor: ((d = this.xyChart) == null ? void 0 : d.yAxisTickColor) || this.primaryTextColor,
1200
+ yAxisLineColor: ((f = this.xyChart) == null ? void 0 : f.yAxisLineColor) || this.primaryTextColor,
1201
+ plotColorPalette: ((p = this.xyChart) == null ? void 0 : p.plotColorPalette) || "#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"
1202
+ }, this.packet = {
1203
+ startByteColor: this.primaryTextColor,
1204
+ endByteColor: this.primaryTextColor,
1205
+ labelColor: this.primaryTextColor,
1206
+ titleColor: this.primaryTextColor,
1207
+ blockStrokeColor: this.primaryTextColor,
1208
+ blockFillColor: this.background
1209
+ }, this.radar = {
1210
+ axisColor: ((m = this.radar) == null ? void 0 : m.axisColor) || this.lineColor,
1211
+ axisStrokeWidth: ((h = this.radar) == null ? void 0 : h.axisStrokeWidth) || 2,
1212
+ axisLabelFontSize: ((g = this.radar) == null ? void 0 : g.axisLabelFontSize) || 12,
1213
+ curveOpacity: ((_ = this.radar) == null ? void 0 : _.curveOpacity) || .5,
1214
+ curveStrokeWidth: ((v = this.radar) == null ? void 0 : v.curveStrokeWidth) || 2,
1215
+ graticuleColor: ((y = this.radar) == null ? void 0 : y.graticuleColor) || "#DEDEDE",
1216
+ graticuleStrokeWidth: ((x = this.radar) == null ? void 0 : x.graticuleStrokeWidth) || 1,
1217
+ graticuleOpacity: ((T = this.radar) == null ? void 0 : T.graticuleOpacity) || .3,
1218
+ legendBoxSize: ((D = this.radar) == null ? void 0 : D.legendBoxSize) || 12,
1219
+ legendFontSize: ((O = this.radar) == null ? void 0 : O.legendFontSize) || 12
1220
+ }, 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 = S(this.secondaryColor, 20), this.git1 = S(this.pie2 || this.secondaryColor, 20), this.git2 = S(this.pie3 || this.tertiaryColor, 20), this.git3 = S(this.pie4 || w(this.primaryColor, { h: -30 }), 20), this.git4 = S(this.pie5 || w(this.primaryColor, { h: -60 }), 20), this.git5 = S(this.pie6 || w(this.primaryColor, { h: -90 }), 10), this.git6 = S(this.pie7 || w(this.primaryColor, { h: 60 }), 10), this.git7 = S(this.pie8 || w(this.primaryColor, { h: 120 }), 20), this.gitInv0 = this.gitInv0 || E(this.git0), this.gitInv1 = this.gitInv1 || E(this.git1), this.gitInv2 = this.gitInv2 || E(this.git2), this.gitInv3 = this.gitInv3 || E(this.git3), this.gitInv4 = this.gitInv4 || E(this.git4), this.gitInv5 = this.gitInv5 || E(this.git5), this.gitInv6 = this.gitInv6 || E(this.git6), this.gitInv7 = this.gitInv7 || E(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || E(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || E(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || S(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || S(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
1221
+ }
1222
+ calculate(e) {
1223
+ if (typeof e != "object") {
1224
+ this.updateColors();
1225
+ return;
1226
+ }
1227
+ let t = Object.keys(e);
1228
+ t.forEach((t) => {
1229
+ this[t] = e[t];
1230
+ }), this.updateColors(), t.forEach((t) => {
1231
+ this[t] = e[t];
1232
+ });
1233
+ }
1234
+ }, r(Ue, "Theme"), Ue), dt = /* @__PURE__ */ r((e) => {
1235
+ let t = new ut();
1236
+ return t.calculate(e), t;
1237
+ }, "getThemeVariables"), ft = (We = class {
1238
+ constructor() {
1239
+ this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = w(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = w(this.primaryColor, { h: -160 }), this.primaryBorderColor = Y(this.primaryColor, this.darkMode), this.secondaryBorderColor = Y(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = Y(this.tertiaryColor, this.darkMode), this.primaryTextColor = E(this.primaryColor), this.secondaryTextColor = E(this.secondaryColor), this.tertiaryTextColor = E(this.tertiaryColor), this.lineColor = E(this.background), this.textColor = E(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.primaryBorderColor = Y(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 = _(102, 102, 255, .49), this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#fff400", this.taskBorderColor = "#534fbc", this.taskBkgColor = "#8a90dd", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "#534fbc", this.activeTaskBkgColor = "#bfc7ff", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.vertLineColor = "navy", this.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.rowOdd = "calculated", this.rowEven = "calculated", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !1, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))", this.updateColors();
1240
+ }
1241
+ updateColors() {
1242
+ var e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, x, T, D, O, k, A, j, M, N, P, F, I;
1243
+ this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || w(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || w(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || w(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || w(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || w(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || w(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || w(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || w(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || w(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || C(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || C(this.tertiaryColor, 40);
1244
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = C(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || C(this["cScale" + e], 25);
1245
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || w(this["cScale" + e], { h: 180 });
1246
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || w(this.mainBkg, {
1247
+ h: 30,
1248
+ l: -(5 + e * 5)
1249
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || w(this.mainBkg, {
1250
+ h: 30,
1251
+ l: -(7 + e * 5)
1252
+ });
1253
+ if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
1254
+ this.cScaleLabel0 = this.cScaleLabel0 || E(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || E(this.labelTextColor);
1255
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.labelTextColor;
1256
+ }
1257
+ 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.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || S(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || S(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 = w(this.primaryColor, { h: 64 }), this.fillType3 = w(this.secondaryColor, { h: 64 }), this.fillType4 = w(this.primaryColor, { h: -64 }), this.fillType5 = w(this.secondaryColor, { h: -64 }), this.fillType6 = w(this.primaryColor, { h: 128 }), this.fillType7 = w(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || w(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || w(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || w(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || w(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || w(this.primaryColor, {
1258
+ h: 60,
1259
+ l: -20
1260
+ }), this.pie8 = this.pie8 || w(this.primaryColor, {
1261
+ h: -60,
1262
+ l: -40
1263
+ }), this.pie9 = this.pie9 || w(this.primaryColor, {
1264
+ h: 120,
1265
+ l: -40
1266
+ }), this.pie10 = this.pie10 || w(this.primaryColor, {
1267
+ h: 60,
1268
+ l: -40
1269
+ }), this.pie11 = this.pie11 || w(this.primaryColor, {
1270
+ h: -90,
1271
+ l: -40
1272
+ }), this.pie12 = this.pie12 || w(this.primaryColor, {
1273
+ h: 120,
1274
+ l: -30
1275
+ }), 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 = (e = this.venn1) == null ? w(this.primaryColor, { l: -30 }) : e, this.venn2 = (t = this.venn2) == null ? w(this.secondaryColor, { l: -30 }) : t, this.venn3 = (n = this.venn3) == null ? w(this.tertiaryColor, { l: -40 }) : n, this.venn4 = (r = this.venn4) == null ? w(this.primaryColor, {
1276
+ h: 60,
1277
+ l: -30
1278
+ }) : r, this.venn5 = (i = this.venn5) == null ? w(this.primaryColor, {
1279
+ h: -60,
1280
+ l: -30
1281
+ }) : i, this.venn6 = (a = this.venn6) == null ? w(this.secondaryColor, {
1282
+ h: 60,
1283
+ l: -30
1284
+ }) : a, this.venn7 = (o = this.venn7) == null ? w(this.primaryColor, {
1285
+ h: 120,
1286
+ l: -30
1287
+ }) : o, this.venn8 = (s = this.venn8) == null ? w(this.secondaryColor, {
1288
+ h: 120,
1289
+ l: -30
1290
+ }) : s, this.vennTitleTextColor = (c = this.vennTitleTextColor) == null ? this.titleColor : c, this.vennSetTextColor = (l = this.vennSetTextColor) == null ? this.textColor : l, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || w(this.primaryColor, {
1291
+ r: 5,
1292
+ g: 5,
1293
+ b: 5
1294
+ }), this.quadrant3Fill = this.quadrant3Fill || w(this.primaryColor, {
1295
+ r: 10,
1296
+ g: 10,
1297
+ b: 10
1298
+ }), this.quadrant4Fill = this.quadrant4Fill || w(this.primaryColor, {
1299
+ r: 15,
1300
+ g: 15,
1301
+ b: 15
1302
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || w(this.primaryTextColor, {
1303
+ r: -5,
1304
+ g: -5,
1305
+ b: -5
1306
+ }), this.quadrant3TextFill = this.quadrant3TextFill || w(this.primaryTextColor, {
1307
+ r: -10,
1308
+ g: -10,
1309
+ b: -10
1310
+ }), this.quadrant4TextFill = this.quadrant4TextFill || w(this.primaryTextColor, {
1311
+ r: -15,
1312
+ g: -15,
1313
+ b: -15
1314
+ }), this.quadrantPointFill = this.quadrantPointFill || b(this.quadrant1Fill) ? S(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 = {
1315
+ axisColor: ((u = this.radar) == null ? void 0 : u.axisColor) || this.lineColor,
1316
+ axisStrokeWidth: ((d = this.radar) == null ? void 0 : d.axisStrokeWidth) || 2,
1317
+ axisLabelFontSize: ((f = this.radar) == null ? void 0 : f.axisLabelFontSize) || 12,
1318
+ curveOpacity: ((p = this.radar) == null ? void 0 : p.curveOpacity) || .5,
1319
+ curveStrokeWidth: ((m = this.radar) == null ? void 0 : m.curveStrokeWidth) || 2,
1320
+ graticuleColor: ((h = this.radar) == null ? void 0 : h.graticuleColor) || "#DEDEDE",
1321
+ graticuleStrokeWidth: ((g = this.radar) == null ? void 0 : g.graticuleStrokeWidth) || 1,
1322
+ graticuleOpacity: ((_ = this.radar) == null ? void 0 : _.graticuleOpacity) || .3,
1323
+ legendBoxSize: ((v = this.radar) == null ? void 0 : v.legendBoxSize) || 12,
1324
+ legendFontSize: ((y = this.radar) == null ? void 0 : y.legendFontSize) || 12
1325
+ }, this.xyChart = {
1326
+ backgroundColor: ((x = this.xyChart) == null ? void 0 : x.backgroundColor) || this.background,
1327
+ titleColor: ((T = this.xyChart) == null ? void 0 : T.titleColor) || this.primaryTextColor,
1328
+ dataLabelColor: ((D = this.xyChart) == null ? void 0 : D.dataLabelColor) || this.primaryTextColor,
1329
+ xAxisTitleColor: ((O = this.xyChart) == null ? void 0 : O.xAxisTitleColor) || this.primaryTextColor,
1330
+ xAxisLabelColor: ((k = this.xyChart) == null ? void 0 : k.xAxisLabelColor) || this.primaryTextColor,
1331
+ xAxisTickColor: ((A = this.xyChart) == null ? void 0 : A.xAxisTickColor) || this.primaryTextColor,
1332
+ xAxisLineColor: ((j = this.xyChart) == null ? void 0 : j.xAxisLineColor) || this.primaryTextColor,
1333
+ yAxisTitleColor: ((M = this.xyChart) == null ? void 0 : M.yAxisTitleColor) || this.primaryTextColor,
1334
+ yAxisLabelColor: ((N = this.xyChart) == null ? void 0 : N.yAxisLabelColor) || this.primaryTextColor,
1335
+ yAxisTickColor: ((P = this.xyChart) == null ? void 0 : P.yAxisTickColor) || this.primaryTextColor,
1336
+ yAxisLineColor: ((F = this.xyChart) == null ? void 0 : F.yAxisLineColor) || this.primaryTextColor,
1337
+ plotColorPalette: ((I = this.xyChart) == null ? void 0 : I.plotColorPalette) || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
1338
+ }, 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 || w(this.primaryColor, { h: -30 }), this.git4 = this.git4 || w(this.primaryColor, { h: -60 }), this.git5 = this.git5 || w(this.primaryColor, { h: -90 }), this.git6 = this.git6 || w(this.primaryColor, { h: 60 }), this.git7 = this.git7 || w(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = S(this.git0, 25), this.git1 = S(this.git1, 25), this.git2 = S(this.git2, 25), this.git3 = S(this.git3, 25), this.git4 = S(this.git4, 25), this.git5 = S(this.git5, 25), this.git6 = S(this.git6, 25), this.git7 = S(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(E(this.git0), 25), this.gitInv1 = this.gitInv1 || E(this.git1), this.gitInv2 = this.gitInv2 || E(this.git2), this.gitInv3 = this.gitInv3 || E(this.git3), this.gitInv4 = this.gitInv4 || E(this.git4), this.gitInv5 = this.gitInv5 || E(this.git5), this.gitInv6 = this.gitInv6 || E(this.git6), this.gitInv7 = this.gitInv7 || E(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || E(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || E(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || q, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || J;
1339
+ }
1340
+ calculate(e) {
1341
+ if (Object.keys(this).forEach((e) => {
1342
+ this[e] === "calculated" && (this[e] = void 0);
1343
+ }), typeof e != "object") {
1344
+ this.updateColors();
1345
+ return;
1346
+ }
1347
+ let t = Object.keys(e);
1348
+ t.forEach((t) => {
1349
+ this[t] = e[t];
1350
+ }), this.updateColors(), t.forEach((t) => {
1351
+ this[t] = e[t];
1352
+ });
1353
+ }
1354
+ }, r(We, "Theme"), We), pt = /* @__PURE__ */ r((e) => {
1355
+ let t = new ft();
1356
+ return t.calculate(e), t;
1357
+ }, "getThemeVariables"), mt = (Ge = class {
1358
+ constructor() {
1359
+ 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 = S("#cde498", 10), this.primaryBorderColor = Y(this.primaryColor, this.darkMode), this.secondaryBorderColor = Y(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = Y(this.tertiaryColor, this.darkMode), this.primaryTextColor = E(this.primaryColor), this.secondaryTextColor = E(this.secondaryColor), this.tertiaryTextColor = E(this.primaryColor), this.lineColor = E(this.background), this.textColor = E(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))";
1360
+ }
1361
+ updateColors() {
1362
+ var e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, x, T, D, O, k, A, j, M, N, P, F, I;
1363
+ 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.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || w(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || w(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || w(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || w(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || w(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || w(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || w(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || w(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || w(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || C(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || C(this.tertiaryColor, 40);
1364
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = C(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || C(this["cScale" + e], 25);
1365
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || w(this["cScale" + e], { h: 180 });
1366
+ this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
1367
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1368
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || w(this.mainBkg, {
1369
+ h: 30,
1370
+ s: -30,
1371
+ l: -(5 + e * 5)
1372
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || w(this.mainBkg, {
1373
+ h: 30,
1374
+ s: -30,
1375
+ l: -(8 + e * 5)
1376
+ });
1377
+ 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 || S(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || S(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 = w(this.primaryColor, { h: 64 }), this.fillType3 = w(this.secondaryColor, { h: 64 }), this.fillType4 = w(this.primaryColor, { h: -64 }), this.fillType5 = w(this.secondaryColor, { h: -64 }), this.fillType6 = w(this.primaryColor, { h: 128 }), this.fillType7 = w(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 || w(this.primaryColor, { l: -30 }), this.pie5 = this.pie5 || w(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || w(this.tertiaryColor, {
1378
+ h: 40,
1379
+ l: -40
1380
+ }), this.pie7 = this.pie7 || w(this.primaryColor, {
1381
+ h: 60,
1382
+ l: -10
1383
+ }), this.pie8 = this.pie8 || w(this.primaryColor, {
1384
+ h: -60,
1385
+ l: -10
1386
+ }), this.pie9 = this.pie9 || w(this.primaryColor, {
1387
+ h: 120,
1388
+ l: 0
1389
+ }), this.pie10 = this.pie10 || w(this.primaryColor, {
1390
+ h: 60,
1391
+ l: -50
1392
+ }), this.pie11 = this.pie11 || w(this.primaryColor, {
1393
+ h: -60,
1394
+ l: -50
1395
+ }), this.pie12 = this.pie12 || w(this.primaryColor, {
1396
+ h: 120,
1397
+ l: -50
1398
+ }), 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 = (e = this.venn1) == null ? w(this.primaryColor, { l: -30 }) : e, this.venn2 = (t = this.venn2) == null ? w(this.secondaryColor, { l: -30 }) : t, this.venn3 = (n = this.venn3) == null ? w(this.tertiaryColor, { l: -30 }) : n, this.venn4 = (r = this.venn4) == null ? w(this.primaryColor, {
1399
+ h: 60,
1400
+ l: -30
1401
+ }) : r, this.venn5 = (i = this.venn5) == null ? w(this.primaryColor, {
1402
+ h: -60,
1403
+ l: -30
1404
+ }) : i, this.venn6 = (a = this.venn6) == null ? w(this.secondaryColor, {
1405
+ h: 60,
1406
+ l: -30
1407
+ }) : a, this.venn7 = (o = this.venn7) == null ? w(this.primaryColor, {
1408
+ h: 120,
1409
+ l: -30
1410
+ }) : o, this.venn8 = (s = this.venn8) == null ? w(this.secondaryColor, {
1411
+ h: 120,
1412
+ l: -30
1413
+ }) : s, this.vennTitleTextColor = (c = this.vennTitleTextColor) == null ? this.titleColor : c, this.vennSetTextColor = (l = this.vennSetTextColor) == null ? this.textColor : l, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || w(this.primaryColor, {
1414
+ r: 5,
1415
+ g: 5,
1416
+ b: 5
1417
+ }), this.quadrant3Fill = this.quadrant3Fill || w(this.primaryColor, {
1418
+ r: 10,
1419
+ g: 10,
1420
+ b: 10
1421
+ }), this.quadrant4Fill = this.quadrant4Fill || w(this.primaryColor, {
1422
+ r: 15,
1423
+ g: 15,
1424
+ b: 15
1425
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || w(this.primaryTextColor, {
1426
+ r: -5,
1427
+ g: -5,
1428
+ b: -5
1429
+ }), this.quadrant3TextFill = this.quadrant3TextFill || w(this.primaryTextColor, {
1430
+ r: -10,
1431
+ g: -10,
1432
+ b: -10
1433
+ }), this.quadrant4TextFill = this.quadrant4TextFill || w(this.primaryTextColor, {
1434
+ r: -15,
1435
+ g: -15,
1436
+ b: -15
1437
+ }), this.quadrantPointFill = this.quadrantPointFill || b(this.quadrant1Fill) ? S(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 = {
1438
+ startByteColor: this.primaryTextColor,
1439
+ endByteColor: this.primaryTextColor,
1440
+ labelColor: this.primaryTextColor,
1441
+ titleColor: this.primaryTextColor,
1442
+ blockStrokeColor: this.primaryTextColor,
1443
+ blockFillColor: this.mainBkg
1444
+ }, this.radar = {
1445
+ axisColor: ((u = this.radar) == null ? void 0 : u.axisColor) || this.lineColor,
1446
+ axisStrokeWidth: ((d = this.radar) == null ? void 0 : d.axisStrokeWidth) || 2,
1447
+ axisLabelFontSize: ((f = this.radar) == null ? void 0 : f.axisLabelFontSize) || 12,
1448
+ curveOpacity: ((p = this.radar) == null ? void 0 : p.curveOpacity) || .5,
1449
+ curveStrokeWidth: ((m = this.radar) == null ? void 0 : m.curveStrokeWidth) || 2,
1450
+ graticuleColor: ((h = this.radar) == null ? void 0 : h.graticuleColor) || "#DEDEDE",
1451
+ graticuleStrokeWidth: ((g = this.radar) == null ? void 0 : g.graticuleStrokeWidth) || 1,
1452
+ graticuleOpacity: ((_ = this.radar) == null ? void 0 : _.graticuleOpacity) || .3,
1453
+ legendBoxSize: ((v = this.radar) == null ? void 0 : v.legendBoxSize) || 12,
1454
+ legendFontSize: ((y = this.radar) == null ? void 0 : y.legendFontSize) || 12
1455
+ }, this.xyChart = {
1456
+ backgroundColor: ((x = this.xyChart) == null ? void 0 : x.backgroundColor) || this.background,
1457
+ titleColor: ((T = this.xyChart) == null ? void 0 : T.titleColor) || this.primaryTextColor,
1458
+ dataLabelColor: ((D = this.xyChart) == null ? void 0 : D.dataLabelColor) || this.primaryTextColor,
1459
+ xAxisTitleColor: ((O = this.xyChart) == null ? void 0 : O.xAxisTitleColor) || this.primaryTextColor,
1460
+ xAxisLabelColor: ((k = this.xyChart) == null ? void 0 : k.xAxisLabelColor) || this.primaryTextColor,
1461
+ xAxisTickColor: ((A = this.xyChart) == null ? void 0 : A.xAxisTickColor) || this.primaryTextColor,
1462
+ xAxisLineColor: ((j = this.xyChart) == null ? void 0 : j.xAxisLineColor) || this.primaryTextColor,
1463
+ yAxisTitleColor: ((M = this.xyChart) == null ? void 0 : M.yAxisTitleColor) || this.primaryTextColor,
1464
+ yAxisLabelColor: ((N = this.xyChart) == null ? void 0 : N.yAxisLabelColor) || this.primaryTextColor,
1465
+ yAxisTickColor: ((P = this.xyChart) == null ? void 0 : P.yAxisTickColor) || this.primaryTextColor,
1466
+ yAxisLineColor: ((F = this.xyChart) == null ? void 0 : F.yAxisLineColor) || this.primaryTextColor,
1467
+ plotColorPalette: ((I = this.xyChart) == null ? void 0 : I.plotColorPalette) || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
1468
+ }, 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 || w(this.primaryColor, { h: -30 }), this.git4 = this.git4 || w(this.primaryColor, { h: -60 }), this.git5 = this.git5 || w(this.primaryColor, { h: -90 }), this.git6 = this.git6 || w(this.primaryColor, { h: 60 }), this.git7 = this.git7 || w(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = S(this.git0, 25), this.git1 = S(this.git1, 25), this.git2 = S(this.git2, 25), this.git3 = S(this.git3, 25), this.git4 = S(this.git4, 25), this.git5 = S(this.git5, 25), this.git6 = S(this.git6, 25), this.git7 = S(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 || E(this.git0), this.gitInv1 = this.gitInv1 || E(this.git1), this.gitInv2 = this.gitInv2 || E(this.git2), this.gitInv3 = this.gitInv3 || E(this.git3), this.gitInv4 = this.gitInv4 || E(this.git4), this.gitInv5 = this.gitInv5 || E(this.git5), this.gitInv6 = this.gitInv6 || E(this.git6), this.gitInv7 = this.gitInv7 || E(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || E(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || E(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || q, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || J;
1469
+ }
1470
+ calculate(e) {
1471
+ if (typeof e != "object") {
1472
+ this.updateColors();
1473
+ return;
1474
+ }
1475
+ let t = Object.keys(e);
1476
+ t.forEach((t) => {
1477
+ this[t] = e[t];
1478
+ }), this.updateColors(), t.forEach((t) => {
1479
+ this[t] = e[t];
1480
+ });
1481
+ }
1482
+ }, r(Ge, "Theme"), Ge), X = /* @__PURE__ */ r((e) => {
1483
+ let t = new mt();
1484
+ return t.calculate(e), t;
1485
+ }, "getThemeVariables"), ht = (W = class {
1486
+ constructor() {
1487
+ this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = S(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = w(this.primaryColor, { h: -160 }), this.primaryBorderColor = Y(this.primaryColor, this.darkMode), this.secondaryBorderColor = Y(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = Y(this.tertiaryColor, this.darkMode), this.primaryTextColor = E(this.primaryColor), this.secondaryTextColor = E(this.secondaryColor), this.tertiaryTextColor = E(this.tertiaryColor), this.lineColor = E(this.background), this.textColor = E(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 || S(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))";
1488
+ }
1489
+ updateColors() {
1490
+ var e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, x, T, D, O;
1491
+ this.secondBkg = S(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = S(this.border1, 23), this.actorBkg = this.mainBkg, this.actorTextColor = this.text, this.actorLineColor = this.actorBorder, this.signalColor = this.text, this.signalTextColor = this.text, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.text, this.loopTextColor = this.text, this.noteBorderColor = "#999", this.noteBkgColor = "#666", this.noteTextColor = "#fff", this.cScale0 = this.cScale0 || "#555", this.cScale1 = this.cScale1 || "#F4F4F4", this.cScale2 = this.cScale2 || "#555", this.cScale3 = this.cScale3 || "#BBB", this.cScale4 = this.cScale4 || "#777", this.cScale5 = this.cScale5 || "#999", this.cScale6 = this.cScale6 || "#DDD", this.cScale7 = this.cScale7 || "#FFF", this.cScale8 = this.cScale8 || "#DDD", this.cScale9 = this.cScale9 || "#BBB", this.cScale10 = this.cScale10 || "#999", this.cScale11 = this.cScale11 || "#777";
1492
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || E(this["cScale" + e]);
1493
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || S(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || C(this["cScale" + e], 10);
1494
+ this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
1495
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1496
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || w(this.mainBkg, { l: -(5 + e * 5) }), this["surfacePeer" + e] = this["surfacePeer" + e] || w(this.mainBkg, { l: -(8 + e * 5) });
1497
+ 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 = S(this.contrast, 30), this.sectionBkgColor2 = S(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 = S(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 = w(this.primaryColor, { h: 64 }), this.fillType3 = w(this.secondaryColor, { h: 64 }), this.fillType4 = w(this.primaryColor, { h: -64 }), this.fillType5 = w(this.secondaryColor, { h: -64 }), this.fillType6 = w(this.primaryColor, { h: 128 }), this.fillType7 = w(this.secondaryColor, { h: 128 });
1498
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1499
+ 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";
1500
+ for (let e = 0; e < 8; e++) {
1501
+ var k;
1502
+ this["venn" + (e + 1)] = (k = this["venn" + (e + 1)]) == null ? this["cScale" + e] : k;
1503
+ }
1504
+ this.vennTitleTextColor = (e = this.vennTitleTextColor) == null ? this.titleColor : e, this.vennSetTextColor = (t = this.vennSetTextColor) == null ? this.textColor : t, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || w(this.primaryColor, {
1505
+ r: 5,
1506
+ g: 5,
1507
+ b: 5
1508
+ }), this.quadrant3Fill = this.quadrant3Fill || w(this.primaryColor, {
1509
+ r: 10,
1510
+ g: 10,
1511
+ b: 10
1512
+ }), this.quadrant4Fill = this.quadrant4Fill || w(this.primaryColor, {
1513
+ r: 15,
1514
+ g: 15,
1515
+ b: 15
1516
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || w(this.primaryTextColor, {
1517
+ r: -5,
1518
+ g: -5,
1519
+ b: -5
1520
+ }), this.quadrant3TextFill = this.quadrant3TextFill || w(this.primaryTextColor, {
1521
+ r: -10,
1522
+ g: -10,
1523
+ b: -10
1524
+ }), this.quadrant4TextFill = this.quadrant4TextFill || w(this.primaryTextColor, {
1525
+ r: -15,
1526
+ g: -15,
1527
+ b: -15
1528
+ }), this.quadrantPointFill = this.quadrantPointFill || b(this.quadrant1Fill) ? S(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 = {
1529
+ backgroundColor: ((n = this.xyChart) == null ? void 0 : n.backgroundColor) || this.background,
1530
+ titleColor: ((r = this.xyChart) == null ? void 0 : r.titleColor) || this.primaryTextColor,
1531
+ dataLabelColor: ((i = this.xyChart) == null ? void 0 : i.dataLabelColor) || this.primaryTextColor,
1532
+ xAxisTitleColor: ((a = this.xyChart) == null ? void 0 : a.xAxisTitleColor) || this.primaryTextColor,
1533
+ xAxisLabelColor: ((o = this.xyChart) == null ? void 0 : o.xAxisLabelColor) || this.primaryTextColor,
1534
+ xAxisTickColor: ((s = this.xyChart) == null ? void 0 : s.xAxisTickColor) || this.primaryTextColor,
1535
+ xAxisLineColor: ((c = this.xyChart) == null ? void 0 : c.xAxisLineColor) || this.primaryTextColor,
1536
+ yAxisTitleColor: ((l = this.xyChart) == null ? void 0 : l.yAxisTitleColor) || this.primaryTextColor,
1537
+ yAxisLabelColor: ((u = this.xyChart) == null ? void 0 : u.yAxisLabelColor) || this.primaryTextColor,
1538
+ yAxisTickColor: ((d = this.xyChart) == null ? void 0 : d.yAxisTickColor) || this.primaryTextColor,
1539
+ yAxisLineColor: ((f = this.xyChart) == null ? void 0 : f.yAxisLineColor) || this.primaryTextColor,
1540
+ plotColorPalette: ((p = this.xyChart) == null ? void 0 : p.plotColorPalette) || "#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"
1541
+ }, this.radar = {
1542
+ axisColor: ((m = this.radar) == null ? void 0 : m.axisColor) || this.lineColor,
1543
+ axisStrokeWidth: ((h = this.radar) == null ? void 0 : h.axisStrokeWidth) || 2,
1544
+ axisLabelFontSize: ((g = this.radar) == null ? void 0 : g.axisLabelFontSize) || 12,
1545
+ curveOpacity: ((_ = this.radar) == null ? void 0 : _.curveOpacity) || .5,
1546
+ curveStrokeWidth: ((v = this.radar) == null ? void 0 : v.curveStrokeWidth) || 2,
1547
+ graticuleColor: ((y = this.radar) == null ? void 0 : y.graticuleColor) || "#DEDEDE",
1548
+ graticuleStrokeWidth: ((x = this.radar) == null ? void 0 : x.graticuleStrokeWidth) || 1,
1549
+ graticuleOpacity: ((T = this.radar) == null ? void 0 : T.graticuleOpacity) || .3,
1550
+ legendBoxSize: ((D = this.radar) == null ? void 0 : D.legendBoxSize) || 12,
1551
+ legendFontSize: ((O = this.radar) == null ? void 0 : O.legendFontSize) || 12
1552
+ }, 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 || w(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || w(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || w(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || w(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || w(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || E(this.git0), this.gitInv1 = this.gitInv1 || E(this.git1), this.gitInv2 = this.gitInv2 || E(this.git2), this.gitInv3 = this.gitInv3 || E(this.git3), this.gitInv4 = this.gitInv4 || E(this.git4), this.gitInv5 = this.gitInv5 || E(this.git5), this.gitInv6 = this.gitInv6 || E(this.git6), this.gitInv7 = this.gitInv7 || E(this.git7), this.branchLabelColor = this.branchLabelColor || this.labelTextColor, this.gitBranchLabel0 = this.branchLabelColor, this.gitBranchLabel1 = "white", this.gitBranchLabel2 = this.branchLabelColor, this.gitBranchLabel3 = "white", this.gitBranchLabel4 = this.branchLabelColor, this.gitBranchLabel5 = this.branchLabelColor, this.gitBranchLabel6 = this.branchLabelColor, this.gitBranchLabel7 = this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || q, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || J;
1553
+ }
1554
+ calculate(e) {
1555
+ if (typeof e != "object") {
1556
+ this.updateColors();
1557
+ return;
1558
+ }
1559
+ let t = Object.keys(e);
1560
+ t.forEach((t) => {
1561
+ this[t] = e[t];
1562
+ }), this.updateColors(), t.forEach((t) => {
1563
+ this[t] = e[t];
1564
+ });
1565
+ }
1566
+ }, r(W, "Theme"), W), gt = /* @__PURE__ */ r((e) => {
1567
+ let t = new ht();
1568
+ return t.calculate(e), t;
1569
+ }, "getThemeVariables"), _t = (Ke = class {
1570
+ constructor() {
1571
+ 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 = Y(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";
1572
+ }
1573
+ updateColors() {
1574
+ var e, t, n, r, i, a, o, s, c, l, u, d, f;
1575
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || w(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || w(this.primaryColor, {
1576
+ h: 180,
1577
+ l: 5
1578
+ }), this.primaryBorderColor = this.primaryBorderColor || Y(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || Y(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || Y(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || Y(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || E(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || E(this.tertiaryColor), this.lineColor = this.lineColor || E(this.background), this.arrowheadColor = this.arrowheadColor || E(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 || E(this.lineColor);
1579
+ let p = "#ECECFE", m = "#E9E9F1", h = w(p, {
1580
+ h: 180,
1581
+ l: 5
1582
+ });
1583
+ if (this.sectionBkgColor = this.sectionBkgColor || h, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || m, this.sectionBkgColor2 = this.sectionBkgColor2 || p, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || p, this.activeTaskBorderColor = this.activeTaskBorderColor || p, this.activeTaskBkgColor = this.activeTaskBkgColor || S(p, 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 || p, this.cScale1 = this.cScale1 || m, this.cScale2 = this.cScale2 || h, this.cScale3 = this.cScale3 || w(p, { h: 30 }), this.cScale4 = this.cScale4 || w(p, { h: 60 }), this.cScale5 = this.cScale5 || w(p, { h: 90 }), this.cScale6 = this.cScale6 || w(p, { h: 120 }), this.cScale7 = this.cScale7 || w(p, { h: 150 }), this.cScale8 = this.cScale8 || w(p, {
1584
+ h: 210,
1585
+ l: 150
1586
+ }), this.cScale9 = this.cScale9 || w(p, { h: 270 }), this.cScale10 = this.cScale10 || w(p, { h: 300 }), this.cScale11 = this.cScale11 || w(p, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = C(this["cScale" + e], 75);
1587
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = C(this["cScale" + e], 25);
1588
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || E(this["cScale" + e]);
1589
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || S(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || C(this["cScale" + e], 10);
1590
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1591
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1592
+ let g = this.darkMode ? -4 : -1;
1593
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || w(this.mainBkg, {
1594
+ h: 180,
1595
+ s: -15,
1596
+ l: g * (5 + e * 3)
1597
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || w(this.mainBkg, {
1598
+ h: 180,
1599
+ s: -15,
1600
+ l: g * (8 + e * 3)
1601
+ });
1602
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || p, this.fillType1 = this.fillType1 || m, this.fillType2 = this.fillType2 || w(p, { h: 64 }), this.fillType3 = this.fillType3 || w(m, { h: 64 }), this.fillType4 = this.fillType4 || w(p, { h: -64 }), this.fillType5 = this.fillType5 || w(m, { h: -64 }), this.fillType6 = this.fillType6 || w(p, { h: 128 }), this.fillType7 = this.fillType7 || w(m, { h: 128 }), this.pie1 = this.pie1 || p, this.pie2 = this.pie2 || m, this.pie3 = this.pie3 || h, this.pie4 = this.pie4 || w(p, { l: -10 }), this.pie5 = this.pie5 || w(m, { l: -10 }), this.pie6 = this.pie6 || w(h, { l: -10 }), this.pie7 = this.pie7 || w(p, {
1603
+ h: 60,
1604
+ l: -10
1605
+ }), this.pie8 = this.pie8 || w(p, {
1606
+ h: -60,
1607
+ l: -10
1608
+ }), this.pie9 = this.pie9 || w(p, {
1609
+ h: 120,
1610
+ l: 0
1611
+ }), this.pie10 = this.pie10 || w(p, {
1612
+ h: 60,
1613
+ l: -20
1614
+ }), this.pie11 = this.pie11 || w(p, {
1615
+ h: -60,
1616
+ l: -20
1617
+ }), this.pie12 = this.pie12 || w(p, {
1618
+ h: 120,
1619
+ l: -10
1620
+ }), 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 = (e = this.vennTitleTextColor) == null ? this.titleColor : e, this.vennSetTextColor = (t = this.vennSetTextColor) == null ? this.textColor : t, this.quadrant1Fill = this.quadrant1Fill || p, this.quadrant2Fill = this.quadrant2Fill || w(p, {
1621
+ r: 5,
1622
+ g: 5,
1623
+ b: 5
1624
+ }), this.quadrant3Fill = this.quadrant3Fill || w(p, {
1625
+ r: 10,
1626
+ g: 10,
1627
+ b: 10
1628
+ }), this.quadrant4Fill = this.quadrant4Fill || w(p, {
1629
+ r: 15,
1630
+ g: 15,
1631
+ b: 15
1632
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || w(this.primaryTextColor, {
1633
+ r: -5,
1634
+ g: -5,
1635
+ b: -5
1636
+ }), this.quadrant3TextFill = this.quadrant3TextFill || w(this.primaryTextColor, {
1637
+ r: -10,
1638
+ g: -10,
1639
+ b: -10
1640
+ }), this.quadrant4TextFill = this.quadrant4TextFill || w(this.primaryTextColor, {
1641
+ r: -15,
1642
+ g: -15,
1643
+ b: -15
1644
+ }), this.quadrantPointFill = this.quadrantPointFill || b(this.quadrant1Fill) ? S(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 = {
1645
+ backgroundColor: ((n = this.xyChart) == null ? void 0 : n.backgroundColor) || this.background,
1646
+ titleColor: ((r = this.xyChart) == null ? void 0 : r.titleColor) || this.primaryTextColor,
1647
+ xAxisTitleColor: ((i = this.xyChart) == null ? void 0 : i.xAxisTitleColor) || this.primaryTextColor,
1648
+ xAxisLabelColor: ((a = this.xyChart) == null ? void 0 : a.xAxisLabelColor) || this.primaryTextColor,
1649
+ xAxisTickColor: ((o = this.xyChart) == null ? void 0 : o.xAxisTickColor) || this.primaryTextColor,
1650
+ xAxisLineColor: ((s = this.xyChart) == null ? void 0 : s.xAxisLineColor) || this.primaryTextColor,
1651
+ yAxisTitleColor: ((c = this.xyChart) == null ? void 0 : c.yAxisTitleColor) || this.primaryTextColor,
1652
+ yAxisLabelColor: ((l = this.xyChart) == null ? void 0 : l.yAxisLabelColor) || this.primaryTextColor,
1653
+ yAxisTickColor: ((u = this.xyChart) == null ? void 0 : u.yAxisTickColor) || this.primaryTextColor,
1654
+ yAxisLineColor: ((d = this.xyChart) == null ? void 0 : d.yAxisLineColor) || this.primaryTextColor,
1655
+ plotColorPalette: ((f = this.xyChart) == null ? void 0 : f.plotColorPalette) || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1656
+ }, this.requirementBackground = this.requirementBackground || p, 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 || p, this.git1 = this.git1 || m, this.git2 = this.git2 || h, this.git3 = this.git3 || w(p, { h: -30 }), this.git4 = this.git4 || w(p, { h: -60 }), this.git5 = this.git5 || w(p, { h: -90 }), this.git6 = this.git6 || w(p, { h: 60 }), this.git7 = this.git7 || w(p, { h: 120 }), this.darkMode ? (this.git0 = S(this.git0, 25), this.git1 = S(this.git1, 25), this.git2 = S(this.git2, 25), this.git3 = S(this.git3, 25), this.git4 = S(this.git4, 25), this.git5 = S(this.git5, 25), this.git6 = S(this.git6, 25), this.git7 = S(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 || E(this.git0), this.gitInv1 = this.gitInv1 || E(this.git1), this.gitInv2 = this.gitInv2 || E(this.git2), this.gitInv3 = this.gitInv3 || E(this.git3), this.gitInv4 = this.gitInv4 || E(this.git4), this.gitInv5 = this.gitInv5 || E(this.git5), this.gitInv6 = this.gitInv6 || E(this.git6), this.gitInv7 = this.gitInv7 || E(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 || q, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || J;
1657
+ }
1658
+ calculate(e) {
1659
+ if (typeof e != "object") {
1660
+ this.updateColors();
1661
+ return;
1662
+ }
1663
+ let t = Object.keys(e);
1664
+ t.forEach((t) => {
1665
+ this[t] = e[t];
1666
+ }), this.updateColors(), t.forEach((t) => {
1667
+ this[t] = e[t];
1668
+ });
1669
+ }
1670
+ }, r(Ke, "Theme"), Ke), vt = /* @__PURE__ */ r((e) => {
1671
+ let t = new _t();
1672
+ return t.calculate(e), t;
1673
+ }, "getThemeVariables"), yt = (qe = class {
1674
+ constructor() {
1675
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = S(this.primaryColor, 16), this.tertiaryColor = w(this.primaryColor, { h: -160 }), this.primaryBorderColor = E(this.background), this.secondaryBorderColor = Y(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = Y(this.tertiaryColor, this.darkMode), this.primaryTextColor = E(this.primaryColor), this.secondaryTextColor = E(this.secondaryColor), this.tertiaryTextColor = E(this.tertiaryColor), this.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = S(E("#323D47"), 10), this.border1 = "#ccc", this.border2 = _(255, 255, 255, .25), this.arrowheadColor = E(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";
1676
+ }
1677
+ updateColors() {
1678
+ var e, t, n, r, i, a, o, s, c, l, u, d, f;
1679
+ if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || w(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || w(this.primaryColor, {
1680
+ h: 180,
1681
+ l: 5
1682
+ }), this.primaryBorderColor = this.primaryBorderColor || Y(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || Y(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || Y(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || Y(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || E(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || E(this.tertiaryColor), this.lineColor = this.lineColor || E(this.background), this.arrowheadColor = this.arrowheadColor || E(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 || E(this.lineColor), this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || S(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 || w(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || w(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || w(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || w(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || w(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || w(this.primaryColor, {
1683
+ h: 210,
1684
+ l: 150
1685
+ }), this.cScale9 = this.cScale9 || w(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || w(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || w(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = C(this["cScale" + e], 75);
1686
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = C(this["cScale" + e], 25);
1687
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || E(this["cScale" + e]);
1688
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || S(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || C(this["cScale" + e], 10);
1689
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1690
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1691
+ let p = this.darkMode ? -4 : -1;
1692
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || w(this.mainBkg, {
1693
+ h: 180,
1694
+ s: -15,
1695
+ l: p * (5 + e * 3)
1696
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || w(this.mainBkg, {
1697
+ h: 180,
1698
+ s: -15,
1699
+ l: p * (8 + e * 3)
1700
+ });
1701
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || w(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || w(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || w(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || w(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || w(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || w(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 || w(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || w(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || w(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || w(this.primaryColor, {
1702
+ h: 60,
1703
+ l: -10
1704
+ }), this.pie8 = this.pie8 || w(this.primaryColor, {
1705
+ h: -60,
1706
+ l: -10
1707
+ }), this.pie9 = this.pie9 || w(this.primaryColor, {
1708
+ h: 120,
1709
+ l: 0
1710
+ }), this.pie10 = this.pie10 || w(this.primaryColor, {
1711
+ h: 60,
1712
+ l: -20
1713
+ }), this.pie11 = this.pie11 || w(this.primaryColor, {
1714
+ h: -60,
1715
+ l: -20
1716
+ }), this.pie12 = this.pie12 || w(this.primaryColor, {
1717
+ h: 120,
1718
+ l: -10
1719
+ }), 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 = (e = this.vennTitleTextColor) == null ? this.titleColor : e, this.vennSetTextColor = (t = this.vennSetTextColor) == null ? this.textColor : t, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || w(this.primaryColor, {
1720
+ r: 5,
1721
+ g: 5,
1722
+ b: 5
1723
+ }), this.quadrant3Fill = this.quadrant3Fill || w(this.primaryColor, {
1724
+ r: 10,
1725
+ g: 10,
1726
+ b: 10
1727
+ }), this.quadrant4Fill = this.quadrant4Fill || w(this.primaryColor, {
1728
+ r: 15,
1729
+ g: 15,
1730
+ b: 15
1731
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || w(this.primaryTextColor, {
1732
+ r: -5,
1733
+ g: -5,
1734
+ b: -5
1735
+ }), this.quadrant3TextFill = this.quadrant3TextFill || w(this.primaryTextColor, {
1736
+ r: -10,
1737
+ g: -10,
1738
+ b: -10
1739
+ }), this.quadrant4TextFill = this.quadrant4TextFill || w(this.primaryTextColor, {
1740
+ r: -15,
1741
+ g: -15,
1742
+ b: -15
1743
+ }), this.quadrantPointFill = this.quadrantPointFill || b(this.quadrant1Fill) ? S(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 = {
1744
+ backgroundColor: ((n = this.xyChart) == null ? void 0 : n.backgroundColor) || this.background,
1745
+ titleColor: ((r = this.xyChart) == null ? void 0 : r.titleColor) || this.primaryTextColor,
1746
+ xAxisTitleColor: ((i = this.xyChart) == null ? void 0 : i.xAxisTitleColor) || this.primaryTextColor,
1747
+ xAxisLabelColor: ((a = this.xyChart) == null ? void 0 : a.xAxisLabelColor) || this.primaryTextColor,
1748
+ xAxisTickColor: ((o = this.xyChart) == null ? void 0 : o.xAxisTickColor) || this.primaryTextColor,
1749
+ xAxisLineColor: ((s = this.xyChart) == null ? void 0 : s.xAxisLineColor) || this.primaryTextColor,
1750
+ yAxisTitleColor: ((c = this.xyChart) == null ? void 0 : c.yAxisTitleColor) || this.primaryTextColor,
1751
+ yAxisLabelColor: ((l = this.xyChart) == null ? void 0 : l.yAxisLabelColor) || this.primaryTextColor,
1752
+ yAxisTickColor: ((u = this.xyChart) == null ? void 0 : u.yAxisTickColor) || this.primaryTextColor,
1753
+ yAxisLineColor: ((d = this.xyChart) == null ? void 0 : d.yAxisLineColor) || this.primaryTextColor,
1754
+ plotColorPalette: ((f = this.xyChart) == null ? void 0 : f.plotColorPalette) || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1755
+ }, 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 = S(this.git0, 25), this.git1 = S(this.git1, 25), this.git2 = S(this.git2, 25), this.git3 = S(this.git3, 25), this.git4 = S(this.git4, 25), this.git5 = S(this.git5, 25), this.git6 = S(this.git6, 25), this.git7 = S(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 || E(this.git0), this.gitInv1 = this.gitInv1 || E(this.git1), this.gitInv2 = this.gitInv2 || E(this.git2), this.gitInv3 = this.gitInv3 || E(this.git3), this.gitInv4 = this.gitInv4 || E(this.git4), this.gitInv5 = this.gitInv5 || E(this.git5), this.gitInv6 = this.gitInv6 || E(this.git6), this.gitInv7 = this.gitInv7 || E(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 || q, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || J;
1756
+ }
1757
+ calculate(e) {
1758
+ if (typeof e != "object") {
1759
+ this.updateColors();
1760
+ return;
1761
+ }
1762
+ let t = Object.keys(e);
1763
+ t.forEach((t) => {
1764
+ this[t] = e[t];
1765
+ }), this.updateColors(), t.forEach((t) => {
1766
+ this[t] = e[t];
1767
+ });
1768
+ }
1769
+ }, r(qe, "Theme"), qe), bt = /* @__PURE__ */ r((e) => {
1770
+ let t = new yt();
1771
+ return t.calculate(e), t;
1772
+ }, "getThemeVariables"), xt = (Je = class {
1773
+ constructor() {
1774
+ 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 = Y("#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";
1775
+ }
1776
+ updateColors() {
1777
+ var e, t, n, r, i, a, o, s, c, l, u, d, f, p;
1778
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || w(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || w(this.primaryColor, {
1779
+ h: 180,
1780
+ l: 5
1781
+ }), this.primaryBorderColor = this.primaryBorderColor || Y(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || Y(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || Y(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || Y(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || E(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || E(this.tertiaryColor), this.lineColor = this.lineColor || E(this.background), this.arrowheadColor = this.arrowheadColor || E(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 || E(this.lineColor);
1782
+ let m = "#ECECFE", h = "#E9E9F1", g = w(m, {
1783
+ h: 180,
1784
+ l: 5
1785
+ });
1786
+ this.sectionBkgColor = this.sectionBkgColor || g, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || h, this.sectionBkgColor2 = this.sectionBkgColor2 || m, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || m, this.activeTaskBorderColor = this.activeTaskBorderColor || m, this.activeTaskBkgColor = this.activeTaskBkgColor || S(m, 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;
1787
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = this.mainBkg;
1788
+ if (this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = C(this["cScale" + e], 75);
1789
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = C(this["cScale" + e], 25);
1790
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || E(this["cScale" + e]);
1791
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || S(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || C(this["cScale" + e], 10);
1792
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1793
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1794
+ let _ = this.darkMode ? -4 : -1;
1795
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || w(this.mainBkg, {
1796
+ h: 180,
1797
+ s: -15,
1798
+ l: _ * (5 + e * 3)
1799
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || w(this.mainBkg, {
1800
+ h: 180,
1801
+ s: -15,
1802
+ l: _ * (8 + e * 3)
1803
+ });
1804
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || m, this.fillType1 = this.fillType1 || h, this.fillType2 = this.fillType2 || w(m, { h: 64 }), this.fillType3 = this.fillType3 || w(h, { h: 64 }), this.fillType4 = this.fillType4 || w(m, { h: -64 }), this.fillType5 = this.fillType5 || w(h, { h: -64 }), this.fillType6 = this.fillType6 || w(m, { h: 128 }), this.fillType7 = this.fillType7 || w(h, { h: 128 }), this.pie1 = this.pie1 || m, this.pie2 = this.pie2 || h, this.pie3 = this.pie3 || g, this.pie4 = this.pie4 || w(m, { l: -10 }), this.pie5 = this.pie5 || w(h, { l: -10 }), this.pie6 = this.pie6 || w(g, { l: -10 }), this.pie7 = this.pie7 || w(m, {
1805
+ h: 60,
1806
+ l: -10
1807
+ }), this.pie8 = this.pie8 || w(m, {
1808
+ h: -60,
1809
+ l: -10
1810
+ }), this.pie9 = this.pie9 || w(m, {
1811
+ h: 120,
1812
+ l: 0
1813
+ }), this.pie10 = this.pie10 || w(m, {
1814
+ h: 60,
1815
+ l: -20
1816
+ }), this.pie11 = this.pie11 || w(m, {
1817
+ h: -60,
1818
+ l: -20
1819
+ }), this.pie12 = this.pie12 || w(m, {
1820
+ h: 120,
1821
+ l: -10
1822
+ }), 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 = (e = this.vennTitleTextColor) == null ? this.titleColor : e, this.vennSetTextColor = (t = this.vennSetTextColor) == null ? this.textColor : t, this.quadrant1Fill = this.quadrant1Fill || m, this.quadrant2Fill = this.quadrant2Fill || w(m, {
1823
+ r: 5,
1824
+ g: 5,
1825
+ b: 5
1826
+ }), this.quadrant3Fill = this.quadrant3Fill || w(m, {
1827
+ r: 10,
1828
+ g: 10,
1829
+ b: 10
1830
+ }), this.quadrant4Fill = this.quadrant4Fill || w(m, {
1831
+ r: 15,
1832
+ g: 15,
1833
+ b: 15
1834
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || w(this.primaryTextColor, {
1835
+ r: -5,
1836
+ g: -5,
1837
+ b: -5
1838
+ }), this.quadrant3TextFill = this.quadrant3TextFill || w(this.primaryTextColor, {
1839
+ r: -10,
1840
+ g: -10,
1841
+ b: -10
1842
+ }), this.quadrant4TextFill = this.quadrant4TextFill || w(this.primaryTextColor, {
1843
+ r: -15,
1844
+ g: -15,
1845
+ b: -15
1846
+ }), this.quadrantPointFill = this.quadrantPointFill || b(this.quadrant1Fill) ? S(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 = {
1847
+ backgroundColor: ((n = this.xyChart) == null ? void 0 : n.backgroundColor) || this.background,
1848
+ titleColor: ((r = this.xyChart) == null ? void 0 : r.titleColor) || this.primaryTextColor,
1849
+ xAxisTitleColor: ((i = this.xyChart) == null ? void 0 : i.xAxisTitleColor) || this.primaryTextColor,
1850
+ xAxisLabelColor: ((a = this.xyChart) == null ? void 0 : a.xAxisLabelColor) || this.primaryTextColor,
1851
+ xAxisTickColor: ((o = this.xyChart) == null ? void 0 : o.xAxisTickColor) || this.primaryTextColor,
1852
+ xAxisLineColor: ((s = this.xyChart) == null ? void 0 : s.xAxisLineColor) || this.primaryTextColor,
1853
+ yAxisTitleColor: ((c = this.xyChart) == null ? void 0 : c.yAxisTitleColor) || this.primaryTextColor,
1854
+ yAxisLabelColor: ((l = this.xyChart) == null ? void 0 : l.yAxisLabelColor) || this.primaryTextColor,
1855
+ yAxisTickColor: ((u = this.xyChart) == null ? void 0 : u.yAxisTickColor) || this.primaryTextColor,
1856
+ yAxisLineColor: ((d = this.xyChart) == null ? void 0 : d.yAxisLineColor) || this.primaryTextColor,
1857
+ plotColorPalette: ((f = this.xyChart) == null ? void 0 : f.plotColorPalette) || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1858
+ }, this.requirementBackground = this.requirementBackground || m, 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 || m, this.git1 = this.git1 || h, this.git2 = this.git2 || g, this.git3 = this.git3 || w(m, { h: -30 }), this.git4 = this.git4 || w(m, { h: -60 }), this.git5 = this.git5 || w(m, { h: -90 }), this.git6 = this.git6 || w(m, { h: 60 }), this.git7 = this.git7 || w(m, { h: 120 }), this.darkMode ? (this.git0 = S(this.git0, 25), this.git1 = S(this.git1, 25), this.git2 = S(this.git2, 25), this.git3 = S(this.git3, 25), this.git4 = S(this.git4, 25), this.git5 = S(this.git5, 25), this.git6 = S(this.git6, 25), this.git7 = S(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 || E(this.git0), this.gitInv1 = this.gitInv1 || E(this.git1), this.gitInv2 = this.gitInv2 || E(this.git2), this.gitInv3 = this.gitInv3 || E(this.git3), this.gitInv4 = this.gitInv4 || E(this.git4), this.gitInv5 = this.gitInv5 || E(this.git5), this.gitInv6 = this.gitInv6 || E(this.git6), this.gitInv7 = this.gitInv7 || E(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 = (p = this.commitLineColor) == null ? "#BDBCCC" : p, this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || q, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || J;
1859
+ }
1860
+ calculate(e) {
1861
+ if (typeof e != "object") {
1862
+ this.updateColors();
1863
+ return;
1864
+ }
1865
+ let t = Object.keys(e);
1866
+ t.forEach((t) => {
1867
+ this[t] = e[t];
1868
+ }), this.updateColors(), t.forEach((t) => {
1869
+ this[t] = e[t];
1870
+ });
1871
+ }
1872
+ }, r(Je, "Theme"), Je), St = /* @__PURE__ */ r((e) => {
1873
+ let t = new xt();
1874
+ return t.calculate(e), t;
1875
+ }, "getThemeVariables"), Ct = (Ye = class {
1876
+ constructor() {
1877
+ var e, t;
1878
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = S(this.primaryColor, 16), this.tertiaryColor = w(this.primaryColor, { h: -160 }), this.primaryBorderColor = E(this.background), this.secondaryBorderColor = Y(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = Y(this.tertiaryColor, this.darkMode), this.primaryTextColor = E(this.primaryColor), this.secondaryTextColor = E(this.secondaryColor), this.tertiaryTextColor = E(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = S(E("#323D47"), 10), this.border1 = "#ccc", this.border2 = _(255, 255, 255, .25), this.arrowheadColor = E(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 = (e = this.noteBkgColor) == null ? "#FEF9C3" : e, this.noteTextColor = (t = this.noteTextColor) == null ? "#28253D" : t, 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";
1879
+ }
1880
+ updateColors() {
1881
+ var e, t, n, r, i, a, o, s, c, l, u, d, f, p;
1882
+ if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || w(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || w(this.primaryColor, {
1883
+ h: 180,
1884
+ l: 5
1885
+ }), this.primaryBorderColor = this.primaryBorderColor || Y(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || Y(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || Y(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || Y(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || E(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || E(this.tertiaryColor), this.lineColor = this.lineColor || E(this.background), this.arrowheadColor = this.arrowheadColor || E(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 || E(this.lineColor), this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || S(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 || w(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || w(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || w(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || w(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || w(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || w(this.primaryColor, {
1886
+ h: 210,
1887
+ l: 150
1888
+ }), this.cScale9 = this.cScale9 || w(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || w(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || w(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = C(this["cScale" + e], 75);
1889
+ else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = C(this["cScale" + e], 25);
1890
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || E(this["cScale" + e]);
1891
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || S(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || C(this["cScale" + e], 10);
1892
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1893
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1894
+ let m = this.darkMode ? -4 : -1;
1895
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || w(this.mainBkg, {
1896
+ h: 180,
1897
+ s: -15,
1898
+ l: m * (5 + e * 3)
1899
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || w(this.mainBkg, {
1900
+ h: 180,
1901
+ s: -15,
1902
+ l: m * (8 + e * 3)
1903
+ });
1904
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || w(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || w(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || w(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || w(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || w(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || w(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 || w(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || w(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || w(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || w(this.primaryColor, {
1905
+ h: 60,
1906
+ l: -10
1907
+ }), this.pie8 = this.pie8 || w(this.primaryColor, {
1908
+ h: -60,
1909
+ l: -10
1910
+ }), this.pie9 = this.pie9 || w(this.primaryColor, {
1911
+ h: 120,
1912
+ l: 0
1913
+ }), this.pie10 = this.pie10 || w(this.primaryColor, {
1914
+ h: 60,
1915
+ l: -20
1916
+ }), this.pie11 = this.pie11 || w(this.primaryColor, {
1917
+ h: -60,
1918
+ l: -20
1919
+ }), this.pie12 = this.pie12 || w(this.primaryColor, {
1920
+ h: 120,
1921
+ l: -10
1922
+ }), 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 = (e = this.vennTitleTextColor) == null ? this.titleColor : e, this.vennSetTextColor = (t = this.vennSetTextColor) == null ? this.textColor : t, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || w(this.primaryColor, {
1923
+ r: 5,
1924
+ g: 5,
1925
+ b: 5
1926
+ }), this.quadrant3Fill = this.quadrant3Fill || w(this.primaryColor, {
1927
+ r: 10,
1928
+ g: 10,
1929
+ b: 10
1930
+ }), this.quadrant4Fill = this.quadrant4Fill || w(this.primaryColor, {
1931
+ r: 15,
1932
+ g: 15,
1933
+ b: 15
1934
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || w(this.primaryTextColor, {
1935
+ r: -5,
1936
+ g: -5,
1937
+ b: -5
1938
+ }), this.quadrant3TextFill = this.quadrant3TextFill || w(this.primaryTextColor, {
1939
+ r: -10,
1940
+ g: -10,
1941
+ b: -10
1942
+ }), this.quadrant4TextFill = this.quadrant4TextFill || w(this.primaryTextColor, {
1943
+ r: -15,
1944
+ g: -15,
1945
+ b: -15
1946
+ }), this.quadrantPointFill = this.quadrantPointFill || b(this.quadrant1Fill) ? S(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 = {
1947
+ backgroundColor: ((n = this.xyChart) == null ? void 0 : n.backgroundColor) || this.background,
1948
+ titleColor: ((r = this.xyChart) == null ? void 0 : r.titleColor) || this.primaryTextColor,
1949
+ xAxisTitleColor: ((i = this.xyChart) == null ? void 0 : i.xAxisTitleColor) || this.primaryTextColor,
1950
+ xAxisLabelColor: ((a = this.xyChart) == null ? void 0 : a.xAxisLabelColor) || this.primaryTextColor,
1951
+ xAxisTickColor: ((o = this.xyChart) == null ? void 0 : o.xAxisTickColor) || this.primaryTextColor,
1952
+ xAxisLineColor: ((s = this.xyChart) == null ? void 0 : s.xAxisLineColor) || this.primaryTextColor,
1953
+ yAxisTitleColor: ((c = this.xyChart) == null ? void 0 : c.yAxisTitleColor) || this.primaryTextColor,
1954
+ yAxisLabelColor: ((l = this.xyChart) == null ? void 0 : l.yAxisLabelColor) || this.primaryTextColor,
1955
+ yAxisTickColor: ((u = this.xyChart) == null ? void 0 : u.yAxisTickColor) || this.primaryTextColor,
1956
+ yAxisLineColor: ((d = this.xyChart) == null ? void 0 : d.yAxisLineColor) || this.primaryTextColor,
1957
+ plotColorPalette: ((f = this.xyChart) == null ? void 0 : f.plotColorPalette) || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1958
+ }, 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 || w(this.primaryColor, { h: -30 }), this.git4 = this.git4 || w(this.primaryColor, { h: -60 }), this.git5 = this.git5 || w(this.primaryColor, { h: -90 }), this.git6 = this.git6 || w(this.primaryColor, { h: 60 }), this.git7 = this.git7 || w(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = S(this.git0, 25), this.git1 = S(this.git1, 25), this.git2 = S(this.git2, 25), this.git3 = S(this.git3, 25), this.git4 = S(this.git4, 25), this.git5 = S(this.git5, 25), this.git6 = S(this.git6, 25), this.git7 = S(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 || E(this.git0), this.gitInv1 = this.gitInv1 || E(this.git1), this.gitInv2 = this.gitInv2 || E(this.git2), this.gitInv3 = this.gitInv3 || E(this.git3), this.gitInv4 = this.gitInv4 || E(this.git4), this.gitInv5 = this.gitInv5 || E(this.git5), this.gitInv6 = this.gitInv6 || E(this.git6), this.gitInv7 = this.gitInv7 || E(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 = (p = this.commitLineColor) == null ? "#BDBCCC" : p, this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || q, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || J;
1959
+ }
1960
+ calculate(e) {
1961
+ if (typeof e != "object") {
1962
+ this.updateColors();
1963
+ return;
1964
+ }
1965
+ let t = Object.keys(e);
1966
+ t.forEach((t) => {
1967
+ this[t] = e[t];
1968
+ }), this.updateColors(), t.forEach((t) => {
1969
+ this[t] = e[t];
1970
+ });
1971
+ }
1972
+ }, r(Ye, "Theme"), Ye), wt = /* @__PURE__ */ r((e) => {
1973
+ let t = new Ct();
1974
+ return t.calculate(e), t;
1975
+ }, "getThemeVariables"), Tt = (Xe = class {
1976
+ constructor() {
1977
+ 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 = Y(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 = [
1978
+ "#E879F9",
1979
+ "#2DD4BF",
1980
+ "#FB923C",
1981
+ "#22D3EE",
1982
+ "#4ADE80",
1983
+ "#A78BFA",
1984
+ "#F87171",
1985
+ "#FACC15",
1986
+ "#818CF8",
1987
+ "#A3E635 ",
1988
+ "#38BDF8",
1989
+ "#FB7185"
1990
+ ], this.bkgColorArray = [
1991
+ "#FDF4FF",
1992
+ "#F0FDFA",
1993
+ "#FFF7ED",
1994
+ "#ECFEFF",
1995
+ "#F0FDF4",
1996
+ "#F5F3FF",
1997
+ "#FEF2F2",
1998
+ "#FEFCE8",
1999
+ "#EEF2FF",
2000
+ "#F7FEE7",
2001
+ "#F0F9FF",
2002
+ "#FFF1F2"
2003
+ ], this.filterColor = "#000000";
2004
+ }
2005
+ updateColors() {
2006
+ var e, t, n, r, i, a, o, s, c, l, u, d, f, p;
2007
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || w(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || w(this.primaryColor, {
2008
+ h: 180,
2009
+ l: 5
2010
+ }), this.primaryBorderColor = this.primaryBorderColor || Y(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || Y(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || Y(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || Y(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || E(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || E(this.tertiaryColor), this.lineColor = this.lineColor || E(this.background), this.arrowheadColor = this.arrowheadColor || E(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 || E(this.lineColor);
2011
+ let m = "#ECECFE", h = "#E9E9F1", g = w(m, {
2012
+ h: 180,
2013
+ l: 5
2014
+ });
2015
+ this.sectionBkgColor = this.sectionBkgColor || g, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || h, this.sectionBkgColor2 = this.sectionBkgColor2 || m, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || m, this.activeTaskBorderColor = this.activeTaskBorderColor || m, this.activeTaskBkgColor = this.activeTaskBkgColor || S(m, 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";
2016
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || E(this["cScale" + e]);
2017
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || S(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || C(this["cScale" + e], 10);
2018
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2019
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
2020
+ let _ = this.darkMode ? -4 : -1;
2021
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || w(this.mainBkg, {
2022
+ h: 180,
2023
+ s: -15,
2024
+ l: _ * (5 + e * 3)
2025
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || w(this.mainBkg, {
2026
+ h: 180,
2027
+ s: -15,
2028
+ l: _ * (8 + e * 3)
2029
+ });
2030
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || m, this.fillType1 = this.fillType1 || h, this.fillType2 = this.fillType2 || w(m, { h: 64 }), this.fillType3 = this.fillType3 || w(h, { h: 64 }), this.fillType4 = this.fillType4 || w(m, { h: -64 }), this.fillType5 = this.fillType5 || w(h, { h: -64 }), this.fillType6 = this.fillType6 || w(m, { h: 128 }), this.fillType7 = this.fillType7 || w(h, { h: 128 }), this.pie1 = this.pie1 || m, this.pie2 = this.pie2 || h, this.pie3 = this.pie3 || g, this.pie4 = this.pie4 || w(m, { l: -10 }), this.pie5 = this.pie5 || w(h, { l: -10 }), this.pie6 = this.pie6 || w(g, { l: -10 }), this.pie7 = this.pie7 || w(m, {
2031
+ h: 60,
2032
+ l: -10
2033
+ }), this.pie8 = this.pie8 || w(m, {
2034
+ h: -60,
2035
+ l: -10
2036
+ }), this.pie9 = this.pie9 || w(m, {
2037
+ h: 120,
2038
+ l: 0
2039
+ }), this.pie10 = this.pie10 || w(m, {
2040
+ h: 60,
2041
+ l: -20
2042
+ }), this.pie11 = this.pie11 || w(m, {
2043
+ h: -60,
2044
+ l: -20
2045
+ }), this.pie12 = this.pie12 || w(m, {
2046
+ h: 120,
2047
+ l: -10
2048
+ }), 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 = (e = this.vennTitleTextColor) == null ? this.titleColor : e, this.vennSetTextColor = (t = this.vennSetTextColor) == null ? this.textColor : t, this.quadrant1Fill = this.quadrant1Fill || m, this.quadrant2Fill = this.quadrant2Fill || w(m, {
2049
+ r: 5,
2050
+ g: 5,
2051
+ b: 5
2052
+ }), this.quadrant3Fill = this.quadrant3Fill || w(m, {
2053
+ r: 10,
2054
+ g: 10,
2055
+ b: 10
2056
+ }), this.quadrant4Fill = this.quadrant4Fill || w(m, {
2057
+ r: 15,
2058
+ g: 15,
2059
+ b: 15
2060
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || w(this.primaryTextColor, {
2061
+ r: -5,
2062
+ g: -5,
2063
+ b: -5
2064
+ }), this.quadrant3TextFill = this.quadrant3TextFill || w(this.primaryTextColor, {
2065
+ r: -10,
2066
+ g: -10,
2067
+ b: -10
2068
+ }), this.quadrant4TextFill = this.quadrant4TextFill || w(this.primaryTextColor, {
2069
+ r: -15,
2070
+ g: -15,
2071
+ b: -15
2072
+ }), this.quadrantPointFill = this.quadrantPointFill || b(this.quadrant1Fill) ? S(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 = {
2073
+ backgroundColor: ((n = this.xyChart) == null ? void 0 : n.backgroundColor) || this.background,
2074
+ titleColor: ((r = this.xyChart) == null ? void 0 : r.titleColor) || this.primaryTextColor,
2075
+ xAxisTitleColor: ((i = this.xyChart) == null ? void 0 : i.xAxisTitleColor) || this.primaryTextColor,
2076
+ xAxisLabelColor: ((a = this.xyChart) == null ? void 0 : a.xAxisLabelColor) || this.primaryTextColor,
2077
+ xAxisTickColor: ((o = this.xyChart) == null ? void 0 : o.xAxisTickColor) || this.primaryTextColor,
2078
+ xAxisLineColor: ((s = this.xyChart) == null ? void 0 : s.xAxisLineColor) || this.primaryTextColor,
2079
+ yAxisTitleColor: ((c = this.xyChart) == null ? void 0 : c.yAxisTitleColor) || this.primaryTextColor,
2080
+ yAxisLabelColor: ((l = this.xyChart) == null ? void 0 : l.yAxisLabelColor) || this.primaryTextColor,
2081
+ yAxisTickColor: ((u = this.xyChart) == null ? void 0 : u.yAxisTickColor) || this.primaryTextColor,
2082
+ yAxisLineColor: ((d = this.xyChart) == null ? void 0 : d.yAxisLineColor) || this.primaryTextColor,
2083
+ plotColorPalette: ((f = this.xyChart) == null ? void 0 : f.plotColorPalette) || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2084
+ }, this.requirementBackground = this.requirementBackground || m, 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 || m, this.git1 = this.git1 || h, this.git2 = this.git2 || g, this.git3 = this.git3 || w(m, { h: -30 }), this.git4 = this.git4 || w(m, { h: -60 }), this.git5 = this.git5 || w(m, { h: -90 }), this.git6 = this.git6 || w(m, { h: 60 }), this.git7 = this.git7 || w(m, { h: 120 }), this.darkMode ? (this.git0 = S(this.git0, 25), this.git1 = S(this.git1, 25), this.git2 = S(this.git2, 25), this.git3 = S(this.git3, 25), this.git4 = S(this.git4, 25), this.git5 = S(this.git5, 25), this.git6 = S(this.git6, 25), this.git7 = S(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 || E(this.git0), this.gitInv1 = this.gitInv1 || E(this.git1), this.gitInv2 = this.gitInv2 || E(this.git2), this.gitInv3 = this.gitInv3 || E(this.git3), this.gitInv4 = this.gitInv4 || E(this.git4), this.gitInv5 = this.gitInv5 || E(this.git5), this.gitInv6 = this.gitInv6 || E(this.git6), this.gitInv7 = this.gitInv7 || E(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 = (p = this.commitLineColor) == null ? "#BDBCCC" : p, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.fontWeight = 600, this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || q, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || J;
2085
+ }
2086
+ calculate(e) {
2087
+ if (typeof e != "object") {
2088
+ this.updateColors();
2089
+ return;
2090
+ }
2091
+ let t = Object.keys(e);
2092
+ t.forEach((t) => {
2093
+ this[t] = e[t];
2094
+ }), this.updateColors(), t.forEach((t) => {
2095
+ this[t] = e[t];
2096
+ });
2097
+ }
2098
+ }, r(Xe, "Theme"), Xe), Et = /* @__PURE__ */ r((e) => {
2099
+ let t = new Tt();
2100
+ return t.calculate(e), t;
2101
+ }, "getThemeVariables"), Dt = (Ze = class {
2102
+ constructor() {
2103
+ var e, t;
2104
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = S(this.primaryColor, 16), this.tertiaryColor = w(this.primaryColor, { h: -160 }), this.primaryBorderColor = E(this.background), this.secondaryBorderColor = Y(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = Y(this.tertiaryColor, this.darkMode), this.primaryTextColor = E(this.primaryColor), this.secondaryTextColor = E(this.secondaryColor), this.tertiaryTextColor = E(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = S(E("#323D47"), 10), this.border1 = "#ccc", this.border2 = _(255, 255, 255, .25), this.arrowheadColor = E(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 = (e = this.noteBkgColor) == null ? "#FEF9C3" : e, this.noteTextColor = (t = this.noteTextColor) == null ? "#28253D" : t, 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 = [
2105
+ "#E879F9",
2106
+ "#2DD4BF",
2107
+ "#FB923C",
2108
+ "#22D3EE",
2109
+ "#4ADE80",
2110
+ "#A78BFA",
2111
+ "#F87171",
2112
+ "#FACC15",
2113
+ "#818CF8",
2114
+ "#A3E635 ",
2115
+ "#38BDF8",
2116
+ "#FB7185"
2117
+ ], this.bkgColorArray = [], this.filterColor = "#FFFFFF";
2118
+ }
2119
+ updateColors() {
2120
+ var e, t, n, r, i, a, o, s, c, l, u, d, f, p;
2121
+ this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || w(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || w(this.primaryColor, {
2122
+ h: 180,
2123
+ l: 5
2124
+ }), this.primaryBorderColor = this.primaryBorderColor || Y(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || Y(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || Y(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || Y(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || E(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || E(this.tertiaryColor), this.lineColor = this.lineColor || E(this.background), this.arrowheadColor = this.arrowheadColor || E(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 || E(this.lineColor), 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 || S(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";
2125
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || E(this["cScale" + e]);
2126
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || S(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || C(this["cScale" + e], 10);
2127
+ this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
2128
+ for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = C(this["cScale" + e], 75);
2129
+ let m = this.darkMode ? -4 : -1;
2130
+ for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || w(this.mainBkg, {
2131
+ h: 180,
2132
+ s: -15,
2133
+ l: m * (5 + e * 3)
2134
+ }), this["surfacePeer" + e] = this["surfacePeer" + e] || w(this.mainBkg, {
2135
+ h: 180,
2136
+ s: -15,
2137
+ l: m * (8 + e * 3)
2138
+ });
2139
+ this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || w(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || w(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || w(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || w(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || w(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || w(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 || w(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || w(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || w(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || w(this.primaryColor, {
2140
+ h: 60,
2141
+ l: -10
2142
+ }), this.pie8 = this.pie8 || w(this.primaryColor, {
2143
+ h: -60,
2144
+ l: -10
2145
+ }), this.pie9 = this.pie9 || w(this.primaryColor, {
2146
+ h: 120,
2147
+ l: 0
2148
+ }), this.pie10 = this.pie10 || w(this.primaryColor, {
2149
+ h: 60,
2150
+ l: -20
2151
+ }), this.pie11 = this.pie11 || w(this.primaryColor, {
2152
+ h: -60,
2153
+ l: -20
2154
+ }), this.pie12 = this.pie12 || w(this.primaryColor, {
2155
+ h: 120,
2156
+ l: -10
2157
+ }), 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 = (e = this.vennTitleTextColor) == null ? this.titleColor : e, this.vennSetTextColor = (t = this.vennSetTextColor) == null ? this.textColor : t, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || w(this.primaryColor, {
2158
+ r: 5,
2159
+ g: 5,
2160
+ b: 5
2161
+ }), this.quadrant3Fill = this.quadrant3Fill || w(this.primaryColor, {
2162
+ r: 10,
2163
+ g: 10,
2164
+ b: 10
2165
+ }), this.quadrant4Fill = this.quadrant4Fill || w(this.primaryColor, {
2166
+ r: 15,
2167
+ g: 15,
2168
+ b: 15
2169
+ }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || w(this.primaryTextColor, {
2170
+ r: -5,
2171
+ g: -5,
2172
+ b: -5
2173
+ }), this.quadrant3TextFill = this.quadrant3TextFill || w(this.primaryTextColor, {
2174
+ r: -10,
2175
+ g: -10,
2176
+ b: -10
2177
+ }), this.quadrant4TextFill = this.quadrant4TextFill || w(this.primaryTextColor, {
2178
+ r: -15,
2179
+ g: -15,
2180
+ b: -15
2181
+ }), this.quadrantPointFill = this.quadrantPointFill || b(this.quadrant1Fill) ? S(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 = {
2182
+ backgroundColor: ((n = this.xyChart) == null ? void 0 : n.backgroundColor) || this.background,
2183
+ titleColor: ((r = this.xyChart) == null ? void 0 : r.titleColor) || this.primaryTextColor,
2184
+ xAxisTitleColor: ((i = this.xyChart) == null ? void 0 : i.xAxisTitleColor) || this.primaryTextColor,
2185
+ xAxisLabelColor: ((a = this.xyChart) == null ? void 0 : a.xAxisLabelColor) || this.primaryTextColor,
2186
+ xAxisTickColor: ((o = this.xyChart) == null ? void 0 : o.xAxisTickColor) || this.primaryTextColor,
2187
+ xAxisLineColor: ((s = this.xyChart) == null ? void 0 : s.xAxisLineColor) || this.primaryTextColor,
2188
+ yAxisTitleColor: ((c = this.xyChart) == null ? void 0 : c.yAxisTitleColor) || this.primaryTextColor,
2189
+ yAxisLabelColor: ((l = this.xyChart) == null ? void 0 : l.yAxisLabelColor) || this.primaryTextColor,
2190
+ yAxisTickColor: ((u = this.xyChart) == null ? void 0 : u.yAxisTickColor) || this.primaryTextColor,
2191
+ yAxisLineColor: ((d = this.xyChart) == null ? void 0 : d.yAxisLineColor) || this.primaryTextColor,
2192
+ plotColorPalette: ((f = this.xyChart) == null ? void 0 : f.plotColorPalette) || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2193
+ }, 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 || w(this.primaryColor, { h: -30 }), this.git4 = this.git4 || w(this.primaryColor, { h: -60 }), this.git5 = this.git5 || w(this.primaryColor, { h: -90 }), this.git6 = this.git6 || w(this.primaryColor, { h: 60 }), this.git7 = this.git7 || w(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = S(this.git0, 25), this.git1 = S(this.git1, 25), this.git2 = S(this.git2, 25), this.git3 = S(this.git3, 25), this.git4 = S(this.git4, 25), this.git5 = S(this.git5, 25), this.git6 = S(this.git6, 25), this.git7 = S(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 || E(this.git0), this.gitInv1 = this.gitInv1 || E(this.git1), this.gitInv2 = this.gitInv2 || E(this.git2), this.gitInv3 = this.gitInv3 || E(this.git3), this.gitInv4 = this.gitInv4 || E(this.git4), this.gitInv5 = this.gitInv5 || E(this.git5), this.gitInv6 = this.gitInv6 || E(this.git6), this.gitInv7 = this.gitInv7 || E(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 = (p = this.commitLineColor) == null ? "#BDBCCC" : p, this.fontWeight = 600, this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || q, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || J;
2194
+ }
2195
+ calculate(e) {
2196
+ if (typeof e != "object") {
2197
+ this.updateColors();
2198
+ return;
2199
+ }
2200
+ let t = Object.keys(e);
2201
+ t.forEach((t) => {
2202
+ this[t] = e[t];
2203
+ }), this.updateColors(), t.forEach((t) => {
2204
+ this[t] = e[t];
2205
+ });
2206
+ }
2207
+ }, r(Ze, "Theme"), Ze), Z = /* @__PURE__ */ r((e) => {
2208
+ let t = new Dt();
2209
+ return t.calculate(e), t;
2210
+ }, "getThemeVariables"), Ot = {
2211
+ base: { getThemeVariables: lt },
2212
+ dark: { getThemeVariables: dt },
2213
+ default: { getThemeVariables: pt },
2214
+ forest: { getThemeVariables: X },
2215
+ neutral: { getThemeVariables: gt },
2216
+ neo: { getThemeVariables: vt },
2217
+ "neo-dark": { getThemeVariables: bt },
2218
+ redux: { getThemeVariables: St },
2219
+ "redux-dark": { getThemeVariables: wt },
2220
+ "redux-color": { getThemeVariables: Et },
2221
+ "redux-dark-color": { getThemeVariables: Z }
2222
+ }, Q = {
2223
+ flowchart: {
2224
+ useMaxWidth: !0,
2225
+ titleTopMargin: 25,
2226
+ subGraphTitleMargin: {
2227
+ top: 0,
2228
+ bottom: 0
2229
+ },
2230
+ diagramPadding: 8,
2231
+ htmlLabels: null,
2232
+ nodeSpacing: 50,
2233
+ rankSpacing: 50,
2234
+ curve: "basis",
2235
+ padding: 15,
2236
+ defaultRenderer: "dagre-wrapper",
2237
+ wrappingWidth: 200,
2238
+ inheritDir: !1
2239
+ },
2240
+ sequence: {
2241
+ useMaxWidth: !0,
2242
+ hideUnusedParticipants: !1,
2243
+ activationWidth: 10,
2244
+ diagramMarginX: 50,
2245
+ diagramMarginY: 10,
2246
+ actorMargin: 50,
2247
+ width: 150,
2248
+ height: 65,
2249
+ boxMargin: 10,
2250
+ boxTextMargin: 5,
2251
+ noteMargin: 10,
2252
+ messageMargin: 35,
2253
+ messageAlign: "center",
2254
+ mirrorActors: !0,
2255
+ forceMenus: !1,
2256
+ bottomMarginAdj: 1,
2257
+ rightAngles: !1,
2258
+ showSequenceNumbers: !1,
2259
+ actorFontSize: 14,
2260
+ actorFontFamily: "\"Open Sans\", sans-serif",
2261
+ actorFontWeight: 400,
2262
+ noteFontSize: 14,
2263
+ noteFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2264
+ noteFontWeight: 400,
2265
+ noteAlign: "center",
2266
+ messageFontSize: 16,
2267
+ messageFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2268
+ messageFontWeight: 400,
2269
+ wrap: !1,
2270
+ wrapPadding: 10,
2271
+ labelBoxWidth: 50,
2272
+ labelBoxHeight: 20
2273
+ },
2274
+ gantt: {
2275
+ useMaxWidth: !0,
2276
+ titleTopMargin: 25,
2277
+ barHeight: 20,
2278
+ barGap: 4,
2279
+ topPadding: 50,
2280
+ rightPadding: 75,
2281
+ leftPadding: 75,
2282
+ gridLineStartPadding: 35,
2283
+ fontSize: 11,
2284
+ sectionFontSize: 11,
2285
+ numberSectionStyles: 4,
2286
+ axisFormat: "%Y-%m-%d",
2287
+ topAxis: !1,
2288
+ displayMode: "",
2289
+ weekday: "sunday"
2290
+ },
2291
+ journey: {
2292
+ useMaxWidth: !0,
2293
+ diagramMarginX: 50,
2294
+ diagramMarginY: 10,
2295
+ leftMargin: 150,
2296
+ maxLabelWidth: 360,
2297
+ width: 150,
2298
+ height: 50,
2299
+ boxMargin: 10,
2300
+ boxTextMargin: 5,
2301
+ noteMargin: 10,
2302
+ messageMargin: 35,
2303
+ messageAlign: "center",
2304
+ bottomMarginAdj: 1,
2305
+ rightAngles: !1,
2306
+ taskFontSize: 14,
2307
+ taskFontFamily: "\"Open Sans\", sans-serif",
2308
+ taskMargin: 50,
2309
+ activationWidth: 10,
2310
+ textPlacement: "fo",
2311
+ actorColours: [
2312
+ "#8FBC8F",
2313
+ "#7CFC00",
2314
+ "#00FFFF",
2315
+ "#20B2AA",
2316
+ "#B0E0E6",
2317
+ "#FFFFE0"
2318
+ ],
2319
+ sectionFills: [
2320
+ "#191970",
2321
+ "#8B008B",
2322
+ "#4B0082",
2323
+ "#2F4F4F",
2324
+ "#800000",
2325
+ "#8B4513",
2326
+ "#00008B"
2327
+ ],
2328
+ sectionColours: ["#fff"],
2329
+ titleColor: "",
2330
+ titleFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
2331
+ titleFontSize: "4ex"
2332
+ },
2333
+ class: {
2334
+ useMaxWidth: !0,
2335
+ titleTopMargin: 25,
2336
+ arrowMarkerAbsolute: !1,
2337
+ dividerMargin: 10,
2338
+ padding: 5,
2339
+ textHeight: 10,
2340
+ defaultRenderer: "dagre-wrapper",
2341
+ htmlLabels: !1,
2342
+ hideEmptyMembersBox: !1
2343
+ },
2344
+ state: {
2345
+ useMaxWidth: !0,
2346
+ titleTopMargin: 25,
2347
+ dividerMargin: 10,
2348
+ sizeUnit: 5,
2349
+ padding: 8,
2350
+ textHeight: 10,
2351
+ titleShift: -15,
2352
+ noteMargin: 10,
2353
+ forkWidth: 70,
2354
+ forkHeight: 7,
2355
+ miniPadding: 2,
2356
+ fontSizeFactor: 5.02,
2357
+ fontSize: 24,
2358
+ labelHeight: 16,
2359
+ edgeLengthFactor: "20",
2360
+ compositTitleSize: 35,
2361
+ radius: 5,
2362
+ defaultRenderer: "dagre-wrapper"
2363
+ },
2364
+ er: {
2365
+ useMaxWidth: !0,
2366
+ titleTopMargin: 25,
2367
+ diagramPadding: 20,
2368
+ layoutDirection: "TB",
2369
+ minEntityWidth: 100,
2370
+ minEntityHeight: 75,
2371
+ entityPadding: 15,
2372
+ nodeSpacing: 140,
2373
+ rankSpacing: 80,
2374
+ stroke: "gray",
2375
+ fill: "honeydew",
2376
+ fontSize: 12
2377
+ },
2378
+ pie: {
2379
+ useMaxWidth: !0,
2380
+ textPosition: .75
2381
+ },
2382
+ quadrantChart: {
2383
+ useMaxWidth: !0,
2384
+ chartWidth: 500,
2385
+ chartHeight: 500,
2386
+ titleFontSize: 20,
2387
+ titlePadding: 10,
2388
+ quadrantPadding: 5,
2389
+ xAxisLabelPadding: 5,
2390
+ yAxisLabelPadding: 5,
2391
+ xAxisLabelFontSize: 16,
2392
+ yAxisLabelFontSize: 16,
2393
+ quadrantLabelFontSize: 16,
2394
+ quadrantTextTopPadding: 5,
2395
+ pointTextPadding: 5,
2396
+ pointLabelFontSize: 12,
2397
+ pointRadius: 5,
2398
+ xAxisPosition: "top",
2399
+ yAxisPosition: "left",
2400
+ quadrantInternalBorderStrokeWidth: 1,
2401
+ quadrantExternalBorderStrokeWidth: 2
2402
+ },
2403
+ xyChart: {
2404
+ useMaxWidth: !0,
2405
+ width: 700,
2406
+ height: 500,
2407
+ titleFontSize: 20,
2408
+ titlePadding: 10,
2409
+ showDataLabel: !1,
2410
+ showDataLabelOutsideBar: !1,
2411
+ showTitle: !0,
2412
+ xAxis: {
2413
+ $ref: "#/$defs/XYChartAxisConfig",
2414
+ showLabel: !0,
2415
+ labelFontSize: 14,
2416
+ labelPadding: 5,
2417
+ showTitle: !0,
2418
+ titleFontSize: 16,
2419
+ titlePadding: 5,
2420
+ showTick: !0,
2421
+ tickLength: 5,
2422
+ tickWidth: 2,
2423
+ showAxisLine: !0,
2424
+ axisLineWidth: 2
2425
+ },
2426
+ yAxis: {
2427
+ $ref: "#/$defs/XYChartAxisConfig",
2428
+ showLabel: !0,
2429
+ labelFontSize: 14,
2430
+ labelPadding: 5,
2431
+ showTitle: !0,
2432
+ titleFontSize: 16,
2433
+ titlePadding: 5,
2434
+ showTick: !0,
2435
+ tickLength: 5,
2436
+ tickWidth: 2,
2437
+ showAxisLine: !0,
2438
+ axisLineWidth: 2
2439
+ },
2440
+ chartOrientation: "vertical",
2441
+ plotReservedSpacePercent: 50
2442
+ },
2443
+ requirement: {
2444
+ useMaxWidth: !0,
2445
+ rect_fill: "#f9f9f9",
2446
+ text_color: "#333",
2447
+ rect_border_size: "0.5px",
2448
+ rect_border_color: "#bbb",
2449
+ rect_min_width: 200,
2450
+ rect_min_height: 200,
2451
+ fontSize: 14,
2452
+ rect_padding: 10,
2453
+ line_height: 20
2454
+ },
2455
+ mindmap: {
2456
+ useMaxWidth: !0,
2457
+ padding: 10,
2458
+ maxNodeWidth: 200,
2459
+ layoutAlgorithm: "cose-bilkent"
2460
+ },
2461
+ ishikawa: {
2462
+ useMaxWidth: !0,
2463
+ diagramPadding: 20
2464
+ },
2465
+ kanban: {
2466
+ useMaxWidth: !0,
2467
+ padding: 8,
2468
+ sectionWidth: 200,
2469
+ ticketBaseUrl: ""
2470
+ },
2471
+ timeline: {
2472
+ useMaxWidth: !0,
2473
+ diagramMarginX: 50,
2474
+ diagramMarginY: 10,
2475
+ leftMargin: 150,
2476
+ width: 150,
2477
+ height: 50,
2478
+ boxMargin: 10,
2479
+ boxTextMargin: 5,
2480
+ noteMargin: 10,
2481
+ messageMargin: 35,
2482
+ messageAlign: "center",
2483
+ bottomMarginAdj: 1,
2484
+ rightAngles: !1,
2485
+ taskFontSize: 14,
2486
+ taskFontFamily: "\"Open Sans\", sans-serif",
2487
+ taskMargin: 50,
2488
+ activationWidth: 10,
2489
+ textPlacement: "fo",
2490
+ actorColours: [
2491
+ "#8FBC8F",
2492
+ "#7CFC00",
2493
+ "#00FFFF",
2494
+ "#20B2AA",
2495
+ "#B0E0E6",
2496
+ "#FFFFE0"
2497
+ ],
2498
+ sectionFills: [
2499
+ "#191970",
2500
+ "#8B008B",
2501
+ "#4B0082",
2502
+ "#2F4F4F",
2503
+ "#800000",
2504
+ "#8B4513",
2505
+ "#00008B"
2506
+ ],
2507
+ sectionColours: ["#fff"],
2508
+ disableMulticolor: !1
2509
+ },
2510
+ gitGraph: {
2511
+ useMaxWidth: !0,
2512
+ titleTopMargin: 25,
2513
+ diagramPadding: 8,
2514
+ nodeLabel: {
2515
+ width: 75,
2516
+ height: 100,
2517
+ x: -25,
2518
+ y: 0
2519
+ },
2520
+ mainBranchName: "main",
2521
+ mainBranchOrder: 0,
2522
+ showCommitLabel: !0,
2523
+ showBranches: !0,
2524
+ rotateCommitLabel: !0,
2525
+ parallelCommits: !1,
2526
+ arrowMarkerAbsolute: !1
2527
+ },
2528
+ c4: {
2529
+ useMaxWidth: !0,
2530
+ diagramMarginX: 50,
2531
+ diagramMarginY: 10,
2532
+ c4ShapeMargin: 50,
2533
+ c4ShapePadding: 20,
2534
+ width: 216,
2535
+ height: 60,
2536
+ boxMargin: 10,
2537
+ c4ShapeInRow: 4,
2538
+ nextLinePaddingX: 0,
2539
+ c4BoundaryInRow: 2,
2540
+ personFontSize: 14,
2541
+ personFontFamily: "\"Open Sans\", sans-serif",
2542
+ personFontWeight: "normal",
2543
+ external_personFontSize: 14,
2544
+ external_personFontFamily: "\"Open Sans\", sans-serif",
2545
+ external_personFontWeight: "normal",
2546
+ systemFontSize: 14,
2547
+ systemFontFamily: "\"Open Sans\", sans-serif",
2548
+ systemFontWeight: "normal",
2549
+ external_systemFontSize: 14,
2550
+ external_systemFontFamily: "\"Open Sans\", sans-serif",
2551
+ external_systemFontWeight: "normal",
2552
+ system_dbFontSize: 14,
2553
+ system_dbFontFamily: "\"Open Sans\", sans-serif",
2554
+ system_dbFontWeight: "normal",
2555
+ external_system_dbFontSize: 14,
2556
+ external_system_dbFontFamily: "\"Open Sans\", sans-serif",
2557
+ external_system_dbFontWeight: "normal",
2558
+ system_queueFontSize: 14,
2559
+ system_queueFontFamily: "\"Open Sans\", sans-serif",
2560
+ system_queueFontWeight: "normal",
2561
+ external_system_queueFontSize: 14,
2562
+ external_system_queueFontFamily: "\"Open Sans\", sans-serif",
2563
+ external_system_queueFontWeight: "normal",
2564
+ boundaryFontSize: 14,
2565
+ boundaryFontFamily: "\"Open Sans\", sans-serif",
2566
+ boundaryFontWeight: "normal",
2567
+ messageFontSize: 12,
2568
+ messageFontFamily: "\"Open Sans\", sans-serif",
2569
+ messageFontWeight: "normal",
2570
+ containerFontSize: 14,
2571
+ containerFontFamily: "\"Open Sans\", sans-serif",
2572
+ containerFontWeight: "normal",
2573
+ external_containerFontSize: 14,
2574
+ external_containerFontFamily: "\"Open Sans\", sans-serif",
2575
+ external_containerFontWeight: "normal",
2576
+ container_dbFontSize: 14,
2577
+ container_dbFontFamily: "\"Open Sans\", sans-serif",
2578
+ container_dbFontWeight: "normal",
2579
+ external_container_dbFontSize: 14,
2580
+ external_container_dbFontFamily: "\"Open Sans\", sans-serif",
2581
+ external_container_dbFontWeight: "normal",
2582
+ container_queueFontSize: 14,
2583
+ container_queueFontFamily: "\"Open Sans\", sans-serif",
2584
+ container_queueFontWeight: "normal",
2585
+ external_container_queueFontSize: 14,
2586
+ external_container_queueFontFamily: "\"Open Sans\", sans-serif",
2587
+ external_container_queueFontWeight: "normal",
2588
+ componentFontSize: 14,
2589
+ componentFontFamily: "\"Open Sans\", sans-serif",
2590
+ componentFontWeight: "normal",
2591
+ external_componentFontSize: 14,
2592
+ external_componentFontFamily: "\"Open Sans\", sans-serif",
2593
+ external_componentFontWeight: "normal",
2594
+ component_dbFontSize: 14,
2595
+ component_dbFontFamily: "\"Open Sans\", sans-serif",
2596
+ component_dbFontWeight: "normal",
2597
+ external_component_dbFontSize: 14,
2598
+ external_component_dbFontFamily: "\"Open Sans\", sans-serif",
2599
+ external_component_dbFontWeight: "normal",
2600
+ component_queueFontSize: 14,
2601
+ component_queueFontFamily: "\"Open Sans\", sans-serif",
2602
+ component_queueFontWeight: "normal",
2603
+ external_component_queueFontSize: 14,
2604
+ external_component_queueFontFamily: "\"Open Sans\", sans-serif",
2605
+ external_component_queueFontWeight: "normal",
2606
+ wrap: !0,
2607
+ wrapPadding: 10,
2608
+ person_bg_color: "#08427B",
2609
+ person_border_color: "#073B6F",
2610
+ external_person_bg_color: "#686868",
2611
+ external_person_border_color: "#8A8A8A",
2612
+ system_bg_color: "#1168BD",
2613
+ system_border_color: "#3C7FC0",
2614
+ system_db_bg_color: "#1168BD",
2615
+ system_db_border_color: "#3C7FC0",
2616
+ system_queue_bg_color: "#1168BD",
2617
+ system_queue_border_color: "#3C7FC0",
2618
+ external_system_bg_color: "#999999",
2619
+ external_system_border_color: "#8A8A8A",
2620
+ external_system_db_bg_color: "#999999",
2621
+ external_system_db_border_color: "#8A8A8A",
2622
+ external_system_queue_bg_color: "#999999",
2623
+ external_system_queue_border_color: "#8A8A8A",
2624
+ container_bg_color: "#438DD5",
2625
+ container_border_color: "#3C7FC0",
2626
+ container_db_bg_color: "#438DD5",
2627
+ container_db_border_color: "#3C7FC0",
2628
+ container_queue_bg_color: "#438DD5",
2629
+ container_queue_border_color: "#3C7FC0",
2630
+ external_container_bg_color: "#B3B3B3",
2631
+ external_container_border_color: "#A6A6A6",
2632
+ external_container_db_bg_color: "#B3B3B3",
2633
+ external_container_db_border_color: "#A6A6A6",
2634
+ external_container_queue_bg_color: "#B3B3B3",
2635
+ external_container_queue_border_color: "#A6A6A6",
2636
+ component_bg_color: "#85BBF0",
2637
+ component_border_color: "#78A8D8",
2638
+ component_db_bg_color: "#85BBF0",
2639
+ component_db_border_color: "#78A8D8",
2640
+ component_queue_bg_color: "#85BBF0",
2641
+ component_queue_border_color: "#78A8D8",
2642
+ external_component_bg_color: "#CCCCCC",
2643
+ external_component_border_color: "#BFBFBF",
2644
+ external_component_db_bg_color: "#CCCCCC",
2645
+ external_component_db_border_color: "#BFBFBF",
2646
+ external_component_queue_bg_color: "#CCCCCC",
2647
+ external_component_queue_border_color: "#BFBFBF"
2648
+ },
2649
+ sankey: {
2650
+ useMaxWidth: !0,
2651
+ width: 600,
2652
+ height: 400,
2653
+ linkColor: "gradient",
2654
+ nodeAlignment: "justify",
2655
+ showValues: !0,
2656
+ prefix: "",
2657
+ suffix: ""
2658
+ },
2659
+ block: {
2660
+ useMaxWidth: !0,
2661
+ padding: 8
2662
+ },
2663
+ packet: {
2664
+ useMaxWidth: !0,
2665
+ rowHeight: 32,
2666
+ bitWidth: 32,
2667
+ bitsPerRow: 32,
2668
+ showBits: !0,
2669
+ paddingX: 5,
2670
+ paddingY: 5
2671
+ },
2672
+ treeView: {
2673
+ useMaxWidth: !0,
2674
+ rowIndent: 10,
2675
+ paddingX: 5,
2676
+ paddingY: 5,
2677
+ lineThickness: 1
2678
+ },
2679
+ architecture: {
2680
+ useMaxWidth: !0,
2681
+ padding: 40,
2682
+ iconSize: 80,
2683
+ fontSize: 16,
2684
+ randomize: !1
2685
+ },
2686
+ radar: {
2687
+ useMaxWidth: !0,
2688
+ width: 600,
2689
+ height: 600,
2690
+ marginTop: 50,
2691
+ marginRight: 50,
2692
+ marginBottom: 50,
2693
+ marginLeft: 50,
2694
+ axisScaleFactor: 1,
2695
+ axisLabelFactor: 1.05,
2696
+ curveTension: .17
2697
+ },
2698
+ venn: {
2699
+ useMaxWidth: !0,
2700
+ width: 800,
2701
+ height: 450,
2702
+ padding: 8,
2703
+ useDebugLayout: !1
2704
+ },
2705
+ theme: "default",
2706
+ look: "classic",
2707
+ handDrawnSeed: 0,
2708
+ layout: "dagre",
2709
+ maxTextSize: 5e4,
2710
+ maxEdges: 500,
2711
+ darkMode: !1,
2712
+ fontFamily: "\"trebuchet ms\", verdana, arial, sans-serif;",
2713
+ logLevel: 5,
2714
+ securityLevel: "strict",
2715
+ startOnLoad: !0,
2716
+ arrowMarkerAbsolute: !1,
2717
+ secure: [
2718
+ "secure",
2719
+ "securityLevel",
2720
+ "startOnLoad",
2721
+ "maxTextSize",
2722
+ "suppressErrorRendering",
2723
+ "maxEdges"
2724
+ ],
2725
+ legacyMathML: !1,
2726
+ forceLegacyMathML: !1,
2727
+ deterministicIds: !1,
2728
+ fontSize: 16,
2729
+ markdownAutoWrap: !0,
2730
+ suppressErrorRendering: !1
2731
+ }, kt = e(e({}, Q), {}, {
2732
+ deterministicIDSeed: void 0,
2733
+ elk: {
2734
+ mergeEdges: !1,
2735
+ nodePlacementStrategy: "BRANDES_KOEPF",
2736
+ forceNodeModelOrder: !1,
2737
+ considerModelOrder: "NODES_AND_EDGES"
2738
+ },
2739
+ themeCSS: void 0,
2740
+ themeVariables: Ot.default.getThemeVariables(),
2741
+ sequence: e(e({}, Q.sequence), {}, {
2742
+ messageFont: /* @__PURE__ */ r(function() {
2743
+ return {
2744
+ fontFamily: this.messageFontFamily,
2745
+ fontSize: this.messageFontSize,
2746
+ fontWeight: this.messageFontWeight
2747
+ };
2748
+ }, "messageFont"),
2749
+ noteFont: /* @__PURE__ */ r(function() {
2750
+ return {
2751
+ fontFamily: this.noteFontFamily,
2752
+ fontSize: this.noteFontSize,
2753
+ fontWeight: this.noteFontWeight
2754
+ };
2755
+ }, "noteFont"),
2756
+ actorFont: /* @__PURE__ */ r(function() {
2757
+ return {
2758
+ fontFamily: this.actorFontFamily,
2759
+ fontSize: this.actorFontSize,
2760
+ fontWeight: this.actorFontWeight
2761
+ };
2762
+ }, "actorFont")
2763
+ }),
2764
+ class: { hideEmptyMembersBox: !1 },
2765
+ gantt: e(e({}, Q.gantt), {}, {
2766
+ tickInterval: void 0,
2767
+ useWidth: void 0
2768
+ }),
2769
+ c4: e(e({}, Q.c4), {}, {
2770
+ useWidth: void 0,
2771
+ personFont: /* @__PURE__ */ r(function() {
2772
+ return {
2773
+ fontFamily: this.personFontFamily,
2774
+ fontSize: this.personFontSize,
2775
+ fontWeight: this.personFontWeight
2776
+ };
2777
+ }, "personFont"),
2778
+ flowchart: e(e({}, Q.flowchart), {}, { inheritDir: !1 }),
2779
+ external_personFont: /* @__PURE__ */ r(function() {
2780
+ return {
2781
+ fontFamily: this.external_personFontFamily,
2782
+ fontSize: this.external_personFontSize,
2783
+ fontWeight: this.external_personFontWeight
2784
+ };
2785
+ }, "external_personFont"),
2786
+ systemFont: /* @__PURE__ */ r(function() {
2787
+ return {
2788
+ fontFamily: this.systemFontFamily,
2789
+ fontSize: this.systemFontSize,
2790
+ fontWeight: this.systemFontWeight
2791
+ };
2792
+ }, "systemFont"),
2793
+ external_systemFont: /* @__PURE__ */ r(function() {
2794
+ return {
2795
+ fontFamily: this.external_systemFontFamily,
2796
+ fontSize: this.external_systemFontSize,
2797
+ fontWeight: this.external_systemFontWeight
2798
+ };
2799
+ }, "external_systemFont"),
2800
+ system_dbFont: /* @__PURE__ */ r(function() {
2801
+ return {
2802
+ fontFamily: this.system_dbFontFamily,
2803
+ fontSize: this.system_dbFontSize,
2804
+ fontWeight: this.system_dbFontWeight
2805
+ };
2806
+ }, "system_dbFont"),
2807
+ external_system_dbFont: /* @__PURE__ */ r(function() {
2808
+ return {
2809
+ fontFamily: this.external_system_dbFontFamily,
2810
+ fontSize: this.external_system_dbFontSize,
2811
+ fontWeight: this.external_system_dbFontWeight
2812
+ };
2813
+ }, "external_system_dbFont"),
2814
+ system_queueFont: /* @__PURE__ */ r(function() {
2815
+ return {
2816
+ fontFamily: this.system_queueFontFamily,
2817
+ fontSize: this.system_queueFontSize,
2818
+ fontWeight: this.system_queueFontWeight
2819
+ };
2820
+ }, "system_queueFont"),
2821
+ external_system_queueFont: /* @__PURE__ */ r(function() {
2822
+ return {
2823
+ fontFamily: this.external_system_queueFontFamily,
2824
+ fontSize: this.external_system_queueFontSize,
2825
+ fontWeight: this.external_system_queueFontWeight
2826
+ };
2827
+ }, "external_system_queueFont"),
2828
+ containerFont: /* @__PURE__ */ r(function() {
2829
+ return {
2830
+ fontFamily: this.containerFontFamily,
2831
+ fontSize: this.containerFontSize,
2832
+ fontWeight: this.containerFontWeight
2833
+ };
2834
+ }, "containerFont"),
2835
+ external_containerFont: /* @__PURE__ */ r(function() {
2836
+ return {
2837
+ fontFamily: this.external_containerFontFamily,
2838
+ fontSize: this.external_containerFontSize,
2839
+ fontWeight: this.external_containerFontWeight
2840
+ };
2841
+ }, "external_containerFont"),
2842
+ container_dbFont: /* @__PURE__ */ r(function() {
2843
+ return {
2844
+ fontFamily: this.container_dbFontFamily,
2845
+ fontSize: this.container_dbFontSize,
2846
+ fontWeight: this.container_dbFontWeight
2847
+ };
2848
+ }, "container_dbFont"),
2849
+ external_container_dbFont: /* @__PURE__ */ r(function() {
2850
+ return {
2851
+ fontFamily: this.external_container_dbFontFamily,
2852
+ fontSize: this.external_container_dbFontSize,
2853
+ fontWeight: this.external_container_dbFontWeight
2854
+ };
2855
+ }, "external_container_dbFont"),
2856
+ container_queueFont: /* @__PURE__ */ r(function() {
2857
+ return {
2858
+ fontFamily: this.container_queueFontFamily,
2859
+ fontSize: this.container_queueFontSize,
2860
+ fontWeight: this.container_queueFontWeight
2861
+ };
2862
+ }, "container_queueFont"),
2863
+ external_container_queueFont: /* @__PURE__ */ r(function() {
2864
+ return {
2865
+ fontFamily: this.external_container_queueFontFamily,
2866
+ fontSize: this.external_container_queueFontSize,
2867
+ fontWeight: this.external_container_queueFontWeight
2868
+ };
2869
+ }, "external_container_queueFont"),
2870
+ componentFont: /* @__PURE__ */ r(function() {
2871
+ return {
2872
+ fontFamily: this.componentFontFamily,
2873
+ fontSize: this.componentFontSize,
2874
+ fontWeight: this.componentFontWeight
2875
+ };
2876
+ }, "componentFont"),
2877
+ external_componentFont: /* @__PURE__ */ r(function() {
2878
+ return {
2879
+ fontFamily: this.external_componentFontFamily,
2880
+ fontSize: this.external_componentFontSize,
2881
+ fontWeight: this.external_componentFontWeight
2882
+ };
2883
+ }, "external_componentFont"),
2884
+ component_dbFont: /* @__PURE__ */ r(function() {
2885
+ return {
2886
+ fontFamily: this.component_dbFontFamily,
2887
+ fontSize: this.component_dbFontSize,
2888
+ fontWeight: this.component_dbFontWeight
2889
+ };
2890
+ }, "component_dbFont"),
2891
+ external_component_dbFont: /* @__PURE__ */ r(function() {
2892
+ return {
2893
+ fontFamily: this.external_component_dbFontFamily,
2894
+ fontSize: this.external_component_dbFontSize,
2895
+ fontWeight: this.external_component_dbFontWeight
2896
+ };
2897
+ }, "external_component_dbFont"),
2898
+ component_queueFont: /* @__PURE__ */ r(function() {
2899
+ return {
2900
+ fontFamily: this.component_queueFontFamily,
2901
+ fontSize: this.component_queueFontSize,
2902
+ fontWeight: this.component_queueFontWeight
2903
+ };
2904
+ }, "component_queueFont"),
2905
+ external_component_queueFont: /* @__PURE__ */ r(function() {
2906
+ return {
2907
+ fontFamily: this.external_component_queueFontFamily,
2908
+ fontSize: this.external_component_queueFontSize,
2909
+ fontWeight: this.external_component_queueFontWeight
2910
+ };
2911
+ }, "external_component_queueFont"),
2912
+ boundaryFont: /* @__PURE__ */ r(function() {
2913
+ return {
2914
+ fontFamily: this.boundaryFontFamily,
2915
+ fontSize: this.boundaryFontSize,
2916
+ fontWeight: this.boundaryFontWeight
2917
+ };
2918
+ }, "boundaryFont"),
2919
+ messageFont: /* @__PURE__ */ r(function() {
2920
+ return {
2921
+ fontFamily: this.messageFontFamily,
2922
+ fontSize: this.messageFontSize,
2923
+ fontWeight: this.messageFontWeight
2924
+ };
2925
+ }, "messageFont")
2926
+ }),
2927
+ pie: e(e({}, Q.pie), {}, { useWidth: 984 }),
2928
+ xyChart: e(e({}, Q.xyChart), {}, { useWidth: void 0 }),
2929
+ requirement: e(e({}, Q.requirement), {}, { useWidth: void 0 }),
2930
+ packet: e({}, Q.packet),
2931
+ treeView: e(e({}, Q.treeView), {}, { useWidth: void 0 }),
2932
+ radar: e({}, Q.radar),
2933
+ ishikawa: e({}, Q.ishikawa),
2934
+ treemap: {
2935
+ useMaxWidth: !0,
2936
+ padding: 10,
2937
+ diagramPadding: 8,
2938
+ showValues: !0,
2939
+ nodeWidth: 100,
2940
+ nodeHeight: 40,
2941
+ borderWidth: 1,
2942
+ valueFontSize: 12,
2943
+ labelFontSize: 14,
2944
+ valueFormat: ","
2945
+ },
2946
+ venn: e({}, Q.venn)
2947
+ }), At = /* @__PURE__ */ r((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
2948
+ ...n,
2949
+ t + r,
2950
+ ...At(e[r], "")
2951
+ ] : [...n, t + r], []), "keyify"), jt = new Set(At(kt, "")), Mt = kt, Nt = /* @__PURE__ */ r((e) => {
2952
+ if (n.debug("sanitizeDirective called with", e), !(typeof e != "object" || !e)) {
2953
+ if (Array.isArray(e)) {
2954
+ e.forEach((e) => Nt(e));
2955
+ return;
2956
+ }
2957
+ for (let t of Object.keys(e)) {
2958
+ if (n.debug("Checking key", t), t.startsWith("__") || t.includes("proto") || t.includes("constr") || !jt.has(t) || e[t] == null) {
2959
+ n.debug("sanitize deleting key: ", t), delete e[t];
2960
+ continue;
2961
+ }
2962
+ if (typeof e[t] == "object") {
2963
+ n.debug("sanitizing object", t), Nt(e[t]);
2964
+ continue;
2965
+ }
2966
+ for (let r of [
2967
+ "themeCSS",
2968
+ "fontFamily",
2969
+ "altFontFamily"
2970
+ ]) t.includes(r) && (n.debug("sanitizing css option", t), e[t] = Pt(e[t]));
2971
+ }
2972
+ if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
2973
+ let n = e.themeVariables[t];
2974
+ n != null && n.match && !n.match(/^[\d "#%(),.;A-Za-z]+$/) && (e.themeVariables[t] = "");
2975
+ }
2976
+ n.debug("After sanitization", e);
2977
+ }
2978
+ }, "sanitizeDirective"), Pt = /* @__PURE__ */ r((e) => {
2979
+ let t = 0, n = 0;
2980
+ for (let r of e) {
2981
+ if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
2982
+ r === "{" ? t++ : r === "}" && n++;
2983
+ }
2984
+ return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
2985
+ }, "sanitizeCss"), Ft = Object.freeze(Mt), It = /* @__PURE__ */ r((e) => !(e === !1 || [
2986
+ "false",
2987
+ "null",
2988
+ "0"
2989
+ ].includes(String(e).trim().toLowerCase())), "evaluate"), $ = K({}, Ft), Lt, Rt = [], zt = K({}, Ft), Bt = /* @__PURE__ */ r((e, t) => {
2990
+ let n = K({}, e), r = {};
2991
+ for (let e of t) qt(e), r = K(r, e);
2992
+ if (n = K(n, r), r.theme && r.theme in Ot) {
2993
+ let e = K(K({}, Lt).themeVariables || {}, r.themeVariables);
2994
+ n.theme && n.theme in Ot && (n.themeVariables = Ot[n.theme].getThemeVariables(e));
2995
+ }
2996
+ return zt = n, $t(zt), zt;
2997
+ }, "updateCurrentConfig"), Vt = /* @__PURE__ */ r((e) => ($ = K({}, Ft), $ = K($, e), e.theme && Ot[e.theme] && ($.themeVariables = Ot[e.theme].getThemeVariables(e.themeVariables)), Bt($, Rt), $), "setSiteConfig"), Ht = /* @__PURE__ */ r((e) => {
2998
+ Lt = K({}, e);
2999
+ }, "saveConfigFromInitialize"), Ut = /* @__PURE__ */ r((e) => ($ = K($, e), Bt($, Rt), $), "updateSiteConfig"), Wt = /* @__PURE__ */ r(() => K({}, $), "getSiteConfig"), Gt = /* @__PURE__ */ r((e) => ($t(e), K(zt, e), Kt()), "setConfig"), Kt = /* @__PURE__ */ r(() => K({}, zt), "getConfig"), qt = /* @__PURE__ */ r((e) => {
3000
+ var t;
3001
+ e && (["secure", ...(t = $.secure) == null ? [] : t].forEach((t) => {
3002
+ Object.hasOwn(e, t) && (n.debug(`Denied attempt to modify a secure key ${t}`, e[t]), delete e[t]);
3003
+ }), Object.keys(e).forEach((t) => {
3004
+ t.startsWith("__") && delete e[t];
3005
+ }), Object.keys(e).forEach((t) => {
3006
+ typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && qt(e[t]);
3007
+ }));
3008
+ }, "sanitize"), Jt = /* @__PURE__ */ r((t) => {
3009
+ var n;
3010
+ Nt(t), t.fontFamily && !((n = t.themeVariables) != null && n.fontFamily) && (t.themeVariables = e(e({}, t.themeVariables), {}, { fontFamily: t.fontFamily })), Rt.push(t), Bt($, Rt);
3011
+ }, "addDirective"), Yt = /* @__PURE__ */ r((e = $) => {
3012
+ Rt = [], Bt(e, Rt);
3013
+ }, "reset"), Xt = {
3014
+ LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",
3015
+ FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
3016
+ }, Zt = {}, Qt = /* @__PURE__ */ r((e) => {
3017
+ Zt[e] || (n.warn(Xt[e]), Zt[e] = !0);
3018
+ }, "issueWarning"), $t = /* @__PURE__ */ r((e) => {
3019
+ e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && Qt("LAZY_LOAD_DEPRECATED");
3020
+ }, "checkConfig"), en = /* @__PURE__ */ r(() => {
3021
+ let e = {};
3022
+ Lt && (e = K(e, Lt));
3023
+ for (let t of Rt) e = K(e, t);
3024
+ return e;
3025
+ }, "getUserDefinedConfig"), tn = /* @__PURE__ */ r((e) => {
3026
+ var t, n, r, i;
3027
+ return ((t = e.flowchart) == null ? void 0 : t.htmlLabels) != null && Qt("FLOWCHART_HTML_LABELS_DEPRECATED"), It((n = (r = e.htmlLabels) == null ? (i = e.flowchart) == null ? void 0 : i.htmlLabels : r) == null ? !0 : n);
3028
+ }, "getEffectiveHtmlLabels"), nn = /<br\s*\/?>/gi, rn = /* @__PURE__ */ r((e) => e ? mn(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), an = /* @__PURE__ */ (() => {
3029
+ let e = !1;
3030
+ return () => {
3031
+ e || (on(), e = !0);
3032
+ };
3033
+ })();
3034
+ function on() {
3035
+ let e = "data-temp-href-target";
3036
+ Be.addHook("beforeSanitizeAttributes", (t) => {
3037
+ if (t.tagName === "A" && t.hasAttribute("target")) {
3038
+ var n;
3039
+ t.setAttribute(e, (n = t.getAttribute("target")) == null ? "" : n);
3040
+ }
3041
+ }), Be.addHook("afterSanitizeAttributes", (t) => {
3042
+ if (t.tagName === "A" && t.hasAttribute(e)) {
3043
+ var n;
3044
+ t.setAttribute("target", (n = t.getAttribute(e)) == null ? "" : n), t.removeAttribute(e), t.getAttribute("target") === "_blank" && t.setAttribute("rel", "noopener");
3045
+ }
3046
+ });
3047
+ }
3048
+ r(on, "setupDompurifyHooks");
3049
+ var sn = /* @__PURE__ */ r((e) => (an(), Be.sanitize(e)), "removeScript"), cn = /* @__PURE__ */ r((e, t) => {
3050
+ if (tn(t)) {
3051
+ let n = t.securityLevel;
3052
+ n === "antiscript" || n === "strict" || n === "sandbox" ? e = sn(e) : n !== "loose" && (e = mn(e), e = e.replace(/</g, "&lt;").replace(/>/g, "&gt;"), e = e.replace(/=/g, "&equals;"), e = pn(e));
3053
+ }
3054
+ return e;
3055
+ }, "sanitizeMore"), ln = /* @__PURE__ */ r((e, t) => e && (e = t.dompurifyConfig ? Be.sanitize(cn(e, t), t.dompurifyConfig).toString() : Be.sanitize(cn(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), un = /* @__PURE__ */ r((e, t) => typeof e == "string" ? ln(e, t) : e.flat().map((e) => ln(e, t)), "sanitizeTextOrArray"), dn = /* @__PURE__ */ r((e) => nn.test(e), "hasBreaks"), fn = /* @__PURE__ */ r((e) => e.split(nn), "splitBreaks"), pn = /* @__PURE__ */ r((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), mn = /* @__PURE__ */ r((e) => e.replace(nn, "#br#"), "breakToPlaceholder"), hn = /* @__PURE__ */ r((e) => {
3056
+ let t = "";
3057
+ return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
3058
+ }, "getUrl"), gn = /* @__PURE__ */ r(function(...e) {
3059
+ let t = e.filter((e) => !isNaN(e));
3060
+ return Math.max(...t);
3061
+ }, "getMax"), _n = /* @__PURE__ */ r(function(...e) {
3062
+ let t = e.filter((e) => !isNaN(e));
3063
+ return Math.min(...t);
3064
+ }, "getMin"), vn = /* @__PURE__ */ r(function(e) {
3065
+ let t = e.split(/(,)/), n = [];
3066
+ for (let e = 0; e < t.length; e++) {
3067
+ let r = t[e];
3068
+ if (r === "," && e > 0 && e + 1 < t.length) {
3069
+ let i = t[e - 1], a = t[e + 1];
3070
+ bn(i, a) && (r = i + "," + a, e++, n.pop());
3071
+ }
3072
+ n.push(xn(r));
3073
+ }
3074
+ return n.join("");
3075
+ }, "parseGenericTypes"), yn = /* @__PURE__ */ r((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), bn = /* @__PURE__ */ r((e, t) => {
3076
+ let n = yn(e, "~"), r = yn(t, "~");
3077
+ return n === 1 && r === 1;
3078
+ }, "shouldCombineSets"), xn = /* @__PURE__ */ r((e) => {
3079
+ let t = yn(e, "~"), n = !1;
3080
+ if (t <= 1) return e;
3081
+ t % 2 != 0 && e.startsWith("~") && (e = e.substring(1), n = !0);
3082
+ let r = [...e], i = r.indexOf("~"), a = r.lastIndexOf("~");
3083
+ for (; i !== -1 && a !== -1 && i !== a;) r[i] = "<", r[a] = ">", i = r.indexOf("~"), a = r.lastIndexOf("~");
3084
+ return n && r.unshift("~"), r.join("");
3085
+ }, "processSet"), Sn = /* @__PURE__ */ r(() => window.MathMLElement !== void 0, "isMathMLSupported"), Cn = /\$\$(.*)\$\$/g, wn = /* @__PURE__ */ r((e) => {
3086
+ var t, n;
3087
+ return ((t = (n = e.match(Cn)) == null ? void 0 : n.length) == null ? 0 : t) > 0;
3088
+ }, "hasKatex"), Tn = /* @__PURE__ */ r(async (e, t) => {
3089
+ let n = document.createElement("div");
3090
+ n.innerHTML = await Dn(e, t), n.id = "katex-temp", n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "0";
3091
+ let r = document.querySelector("body");
3092
+ r == null || r.insertAdjacentElement("beforeend", n);
3093
+ let i = {
3094
+ width: n.clientWidth,
3095
+ height: n.clientHeight
3096
+ };
3097
+ return n.remove(), i;
3098
+ }, "calculateMathMLDimensions"), En = /* @__PURE__ */ r(async (e, t) => {
3099
+ if (!wn(e)) return e;
3100
+ if (!(Sn() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(Cn, "MathML is unsupported in this environment.");
3101
+ {
3102
+ let { default: n } = await import("./katex-JyOgX6MW.mjs").then((e) => e.n), r = t.forceLegacyMathML || !Sn() && t.legacyMathML ? "htmlAndMathml" : "mathml";
3103
+ return e.split(nn).map((e) => wn(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(Cn, (e, t) => n.renderToString(t, {
3104
+ throwOnError: !0,
3105
+ displayMode: !0,
3106
+ output: r
3107
+ }).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
3108
+ }
3109
+ return e.replace(Cn, "Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.");
3110
+ }, "renderKatexUnsanitized"), Dn = /* @__PURE__ */ r(async (e, t) => ln(await En(e, t), t), "renderKatexSanitized"), On = {
3111
+ getRows: rn,
3112
+ sanitizeText: ln,
3113
+ sanitizeTextOrArray: un,
3114
+ hasBreaks: dn,
3115
+ splitBreaks: fn,
3116
+ lineBreakRegex: nn,
3117
+ removeScript: sn,
3118
+ getUrl: hn,
3119
+ evaluate: It,
3120
+ getMax: gn,
3121
+ getMin: _n
3122
+ }, kn = /* @__PURE__ */ r(function(e, t) {
3123
+ for (let n of t) e.attr(n[0], n[1]);
3124
+ }, "d3Attrs"), An = /* @__PURE__ */ r(function(e, t, n) {
3125
+ let r = /* @__PURE__ */ new Map();
3126
+ return n ? (r.set("width", "100%"), r.set("style", `max-width: ${t}px;`)) : (r.set("height", e), r.set("width", t)), r;
3127
+ }, "calculateSvgSizeAttrs"), jn = /* @__PURE__ */ r(function(e, t, n, r) {
3128
+ kn(e, An(t, n, r));
3129
+ }, "configureSvgSize"), Mn = /* @__PURE__ */ r(function(e, t, r, i) {
3130
+ let a = t.node().getBBox(), o = a.width, s = a.height;
3131
+ n.info(`SVG bounds: ${o}x${s}`, a);
3132
+ let c = 0, l = 0;
3133
+ n.info(`Graph bounds: ${c}x${l}`, e), c = o + r * 2, l = s + r * 2, n.info(`Calculated bounds: ${c}x${l}`), jn(t, l, c, i);
3134
+ let u = `${a.x - r} ${a.y - r} ${a.width + 2 * r} ${a.height + 2 * r}`;
3135
+ t.attr("viewBox", u);
3136
+ }, "setupGraphViewbox"), Nn = {}, Pn = /* @__PURE__ */ r((t, r, i, a) => {
3137
+ var o, s;
3138
+ let c = "";
3139
+ return t in Nn && Nn[t] ? c = Nn[t](e(e({}, i), {}, { svgId: a })) : n.warn(`No theme found for ${t}`), ` & {
3140
+ font-family: ${i.fontFamily};
3141
+ font-size: ${i.fontSize};
3142
+ fill: ${i.textColor}
3143
+ }
3144
+ @keyframes edge-animation-frame {
3145
+ from {
3146
+ stroke-dashoffset: 0;
3147
+ }
3148
+ }
3149
+ @keyframes dash {
3150
+ to {
3151
+ stroke-dashoffset: 0;
3152
+ }
3153
+ }
3154
+ & .edge-animation-slow {
3155
+ stroke-dasharray: 9,5 !important;
3156
+ stroke-dashoffset: 900;
3157
+ animation: dash 50s linear infinite;
3158
+ stroke-linecap: round;
3159
+ }
3160
+ & .edge-animation-fast {
3161
+ stroke-dasharray: 9,5 !important;
3162
+ stroke-dashoffset: 900;
3163
+ animation: dash 20s linear infinite;
3164
+ stroke-linecap: round;
3165
+ }
3166
+ /* Classes common for multiple diagrams */
3167
+
3168
+ & .error-icon {
3169
+ fill: ${i.errorBkgColor};
3170
+ }
3171
+ & .error-text {
3172
+ fill: ${i.errorTextColor};
3173
+ stroke: ${i.errorTextColor};
3174
+ }
3175
+
3176
+ & .edge-thickness-normal {
3177
+ stroke-width: ${(o = i.strokeWidth) == null ? 1 : o}px;
3178
+ }
3179
+ & .edge-thickness-thick {
3180
+ stroke-width: 3.5px
3181
+ }
3182
+ & .edge-pattern-solid {
3183
+ stroke-dasharray: 0;
3184
+ }
3185
+ & .edge-thickness-invisible {
3186
+ stroke-width: 0;
3187
+ fill: none;
3188
+ }
3189
+ & .edge-pattern-dashed{
3190
+ stroke-dasharray: 3;
3191
+ }
3192
+ .edge-pattern-dotted {
3193
+ stroke-dasharray: 2;
3194
+ }
3195
+
3196
+ & .marker {
3197
+ fill: ${i.lineColor};
3198
+ stroke: ${i.lineColor};
3199
+ }
3200
+ & .marker.cross {
3201
+ stroke: ${i.lineColor};
3202
+ }
3203
+
3204
+ & svg {
3205
+ font-family: ${i.fontFamily};
3206
+ font-size: ${i.fontSize};
3207
+ }
3208
+ & p {
3209
+ margin: 0
3210
+ }
3211
+
3212
+ ${c}
3213
+ .node .neo-node {
3214
+ stroke: ${i.nodeBorder};
3215
+ }
3216
+
3217
+ [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
3218
+ stroke: ${i.useGradient ? "url(" + a + "-gradient)" : i.nodeBorder};
3219
+ filter: ${i.dropShadow ? i.dropShadow.replace("url(#drop-shadow)", `url(${a}-drop-shadow)`) : "none"};
3220
+ }
3221
+
3222
+
3223
+ [data-look="neo"].node path {
3224
+ stroke: ${i.useGradient ? "url(" + a + "-gradient)" : i.nodeBorder};
3225
+ stroke-width: ${(s = i.strokeWidth) == null ? 1 : s}px;
3226
+ }
3227
+
3228
+ [data-look="neo"].node .outer-path {
3229
+ filter: ${i.dropShadow ? i.dropShadow.replace("url(#drop-shadow)", `url(${a}-drop-shadow)`) : "none"};
3230
+ }
3231
+
3232
+ [data-look="neo"].node .neo-line path {
3233
+ stroke: ${i.nodeBorder};
3234
+ filter: none;
3235
+ }
3236
+
3237
+ [data-look="neo"].node circle{
3238
+ stroke: ${i.useGradient ? "url(" + a + "-gradient)" : i.nodeBorder};
3239
+ filter: ${i.dropShadow ? i.dropShadow.replace("url(#drop-shadow)", `url(${a}-drop-shadow)`) : "none"};
3240
+ }
3241
+
3242
+ [data-look="neo"].node circle .state-start{
3243
+ fill: #000000;
3244
+ }
3245
+
3246
+ [data-look="neo"].icon-shape .icon {
3247
+ fill: ${i.useGradient ? "url(" + a + "-gradient)" : i.nodeBorder};
3248
+ filter: ${i.dropShadow ? i.dropShadow.replace("url(#drop-shadow)", `url(${a}-drop-shadow)`) : "none"};
3249
+ }
3250
+
3251
+ [data-look="neo"].icon-shape .icon-neo path {
3252
+ stroke: ${i.useGradient ? "url(" + a + "-gradient)" : i.nodeBorder};
3253
+ filter: ${i.dropShadow ? i.dropShadow.replace("url(#drop-shadow)", `url(${a}-drop-shadow)`) : "none"};
3254
+ }
3255
+
3256
+ ${r}
3257
+ `;
3258
+ }, "getStyles"), Fn = /* @__PURE__ */ r((e, t) => {
3259
+ t !== void 0 && (Nn[e] = t);
3260
+ }, "addStylesForDiagram"), In = Pn, Ln = {};
3261
+ i(Ln, {
3262
+ clear: () => Hn,
3263
+ getAccDescription: () => Kn,
3264
+ getAccTitle: () => Wn,
3265
+ getDiagramTitle: () => Jn,
3266
+ setAccDescription: () => Gn,
3267
+ setAccTitle: () => Un,
3268
+ setDiagramTitle: () => qn
3269
+ });
3270
+ var Rn = "", zn = "", Bn = "", Vn = /* @__PURE__ */ r((e) => ln(e, Kt()), "sanitizeText"), Hn = /* @__PURE__ */ r(() => {
3271
+ Rn = "", Bn = "", zn = "";
3272
+ }, "clear"), Un = /* @__PURE__ */ r((e) => {
3273
+ Rn = Vn(e).replace(/^\s+/g, "");
3274
+ }, "setAccTitle"), Wn = /* @__PURE__ */ r(() => Rn, "getAccTitle"), Gn = /* @__PURE__ */ r((e) => {
3275
+ Bn = Vn(e).replace(/\n\s+/g, "\n");
3276
+ }, "setAccDescription"), Kn = /* @__PURE__ */ r(() => Bn, "getAccDescription"), qn = /* @__PURE__ */ r((e) => {
3277
+ zn = Vn(e);
3278
+ }, "setDiagramTitle"), Jn = /* @__PURE__ */ r(() => zn, "getDiagramTitle"), Yn = n, Xn = t, Zn = Kt, Qn = Gt, $n = Ft, er = /* @__PURE__ */ r((e) => ln(e, Zn()), "sanitizeText"), tr = Mn, nr = /* @__PURE__ */ r(() => Ln, "getCommonDb"), rr = {}, ir = /* @__PURE__ */ r((e, t, n) => {
3279
+ var r;
3280
+ rr[e] && Yn.warn(`Diagram with id ${e} already registered. Overwriting.`), rr[e] = t, n && at(e, n), Fn(e, t.styles), (r = t.injectUtils) == null || r.call(t, Yn, Xn, Zn, er, tr, nr(), () => {});
3281
+ }, "registerDiagram"), ar = /* @__PURE__ */ r((e) => {
3282
+ if (e in rr) return rr[e];
3283
+ throw new or(e);
3284
+ }, "getDiagram"), or = (Qe = class extends Error {
3285
+ constructor(e) {
3286
+ super(`Diagram ${e} not found.`);
3287
+ }
3288
+ }, r(Qe, "DiagramNotFoundError"), Qe);
3289
+ //#endregion
3290
+ export { S as $, nn as A, Gn as B, Jn as C, hn as D, pt as E, Yt as F, Vt as G, Gt as H, Nt as I, In as J, Mn as K, ln as L, ir as M, it as N, en as O, Dn as P, C as Q, er as R, ot as S, Wt as T, Qn as U, Un as V, qn as W, Ut as X, Ot as Y, Be as Z, Kn as _, Hn as a, Zn as b, jn as c, Mt as d, x as et, rt as f, $e as g, It as h, Tn as i, o as it, vn as j, wn as k, Ft as l, et as m, Jt as n, _ as nt, Ln as o, nt as p, tr as q, K as r, h as rt, On as s, G as t, b as tt, $n as u, Wn as v, tn as w, ar as x, Kt as y, Ht as z };