@pi-outpost/embed 0.6.5 → 0.6.6

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 (130) hide show
  1. package/dist/{abnfDiagram-VRR7QNED-BYiK127A.cjs → abnfDiagram-N423BO3Z-DOZfbvMH.cjs} +1 -1
  2. package/dist/{abnfDiagram-VRR7QNED-B7qtYi43.js → abnfDiagram-N423BO3Z-WMOVzCba.js} +4 -4
  3. package/dist/{architectureDiagram-ZJ3FMSHR-Dfn1Eluq.js → architectureDiagram-T3A2C74G-BH-F8FzB.js} +190 -164
  4. package/dist/architectureDiagram-T3A2C74G-RJUsi-Sx.cjs +36 -0
  5. package/dist/{blockDiagram-677ZJIJ3-5sBqwUmB.cjs → blockDiagram-VBNYF7ZC-Bz8oqXJQ.cjs} +1 -1
  6. package/dist/{blockDiagram-677ZJIJ3-DbAJu3k8.js → blockDiagram-VBNYF7ZC-DYMmF9bV.js} +8 -8
  7. package/dist/{c4Diagram-LMCZKHZV-thRhKJog.js → c4Diagram-5PPSVZJV-Cfnl6tZM.js} +4 -4
  8. package/dist/{c4Diagram-LMCZKHZV-DI1J-00k.cjs → c4Diagram-5PPSVZJV-DM6x-BYG.cjs} +1 -1
  9. package/dist/{channel-Ba6eou00.js → channel-Bq-0ENlK.js} +1 -1
  10. package/dist/channel-DoxF0tZj.cjs +1 -0
  11. package/dist/{chunk-32BRIVSS-CWVz3-4w.js → chunk-2GRJ4B5K-DXwE-yr5.js} +2 -2
  12. package/dist/{chunk-32BRIVSS-z7FKg2Pv.cjs → chunk-2GRJ4B5K-DzaxUd3W.cjs} +1 -1
  13. package/dist/{chunk-VAUOI2AC-CjcMRxtg.cjs → chunk-3NCLNEKW-CO28EZBG.cjs} +1 -1
  14. package/dist/{chunk-VAUOI2AC-CYw9chtc.js → chunk-3NCLNEKW-dTH67Ne_.js} +2 -2
  15. package/dist/{chunk-HOUHSVGY-DxW96-AB.js → chunk-4I5QYGJK-JZmvuONC.js} +2 -2
  16. package/dist/{chunk-HOUHSVGY-DV6Acnl8.cjs → chunk-4I5QYGJK-LCSWSJfh.cjs} +1 -1
  17. package/dist/{chunk-EX3LRPZG-BQIgFxoP.cjs → chunk-5RXB4S5H-B5b3tdRl.cjs} +1 -1
  18. package/dist/{chunk-EX3LRPZG-DbrJJGQa.js → chunk-5RXB4S5H-JthGygoA.js} +6 -6
  19. package/dist/{chunk-MOJQB5TN-BMWWOyJv.cjs → chunk-6Q2QTUOP-C5n08EA-.cjs} +1 -1
  20. package/dist/{chunk-MOJQB5TN-CEfcwUfx.js → chunk-6Q2QTUOP-DvJxCxMM.js} +3 -3
  21. package/dist/{chunk-52WLFC77-qxhAtY0M.js → chunk-7Z6QIM7H-CIoK8R3m.js} +8 -8
  22. package/dist/{chunk-52WLFC77-BQFqILl5.cjs → chunk-7Z6QIM7H-Ctljl7Vq.cjs} +1 -1
  23. package/dist/{chunk-V7JOEXUC-DmZ7gcnm.js → chunk-GF5L2VYU-BPBMCCz5.js} +6 -6
  24. package/dist/{chunk-V7JOEXUC-jX56MdQR.cjs → chunk-GF5L2VYU-DgG-wovM.cjs} +1 -1
  25. package/dist/chunk-I66GZJ75-CrpH-Rmq.cjs +127 -0
  26. package/dist/{chunk-WYO6CB5R-C9QlJ7t3.js → chunk-I66GZJ75-DexfhZwA.js} +386 -367
  27. package/dist/{chunk-FWX5IMBZ-BqwXqA9g.js → chunk-J7OUQ5F2-DhMpZbAr.js} +7 -7
  28. package/dist/{chunk-FWX5IMBZ-DuYeCVfe.cjs → chunk-J7OUQ5F2-b-MfW4O9.cjs} +1 -1
  29. package/dist/{chunk-PUDLZKDR-Bj0-QOjk.cjs → chunk-JQJVKLGR-2AQwaWbm.cjs} +1 -1
  30. package/dist/{chunk-PUDLZKDR-D0QWPoHn.js → chunk-JQJVKLGR-CZorbEP3.js} +8 -8
  31. package/dist/{chunk-VR4S4FIN-D-R-67xf.js → chunk-KBJHAD2P-BlQyFndF.js} +2 -2
  32. package/dist/{chunk-VR4S4FIN-C_53SlqF.cjs → chunk-KBJHAD2P-CthZVYG5.cjs} +1 -1
  33. package/dist/{chunk-ICXQ74PX-DtHODNRc.cjs → chunk-NSK5VX7P-D5CepZHI.cjs} +1 -1
  34. package/dist/{chunk-ICXQ74PX-C0c64VZJ.js → chunk-NSK5VX7P-DPxIxDdV.js} +2 -2
  35. package/dist/{chunk-ZGVPDNZ5-BXZklZiD.js → chunk-QR6OTTB3-CQ_jjYb-.js} +7 -7
  36. package/dist/{chunk-ZGVPDNZ5-DlOaIRV9.cjs → chunk-QR6OTTB3-DSg3ZWNW.cjs} +1 -1
  37. package/dist/{chunk-OGEWGWER-CmVjY0nN.js → chunk-UBXNYLIW-BBncokef.js} +3 -3
  38. package/dist/{chunk-OGEWGWER-DNcXwflY.cjs → chunk-UBXNYLIW-DlNyCWjj.cjs} +1 -1
  39. package/dist/{chunk-C7G6YPKG-D5RsHjmn.js → chunk-W5SLKNZC-Djmw_p6f.js} +2 -2
  40. package/dist/{chunk-C7G6YPKG-C0kXpvB9.cjs → chunk-W5SLKNZC-bHBkM2CL.cjs} +1 -1
  41. package/dist/{chunk-Q4XR5HBZ-DZp3iZyL.cjs → chunk-WRU74C26-9KZxhHnn.cjs} +1 -1
  42. package/dist/{chunk-Q4XR5HBZ-Do2IPcal.js → chunk-WRU74C26-D4huAZcy.js} +4 -4
  43. package/dist/classDiagram-JCYQIIEL-DeHc-x8i.cjs +1 -0
  44. package/dist/classDiagram-JCYQIIEL-DlHKjVPc.js +30 -0
  45. package/dist/classDiagram-v2-OCEON4UE-DeHc-x8i.cjs +1 -0
  46. package/dist/classDiagram-v2-OCEON4UE-DlhHN57j.js +30 -0
  47. package/dist/{cynefinDiagram-TSTJHNR4-BvOW3232.cjs → cynefinDiagram-MW4NZA55-By102s5I.cjs} +1 -1
  48. package/dist/{cynefinDiagram-TSTJHNR4-D0SwDPh4.js → cynefinDiagram-MW4NZA55-CB4ZzMEN.js} +4 -4
  49. package/dist/{dagre-VKFMJZFB-BFmNqGsf.js → dagre-VZM6K2ZE-5zrH2LqV.js} +9 -9
  50. package/dist/{dagre-VKFMJZFB-CviZfakU.cjs → dagre-VZM6K2ZE-CNe7-jhy.cjs} +1 -1
  51. package/dist/{diagram-OA4YK3LP-Bb-L6sPQ.cjs → diagram-7IWD3JNH-CSzLXhRw.cjs} +1 -1
  52. package/dist/{diagram-OA4YK3LP-P_wpH5Im.js → diagram-7IWD3JNH-Cschro8T.js} +5 -5
  53. package/dist/{diagram-FQU43EPY-ZkC_gGab.js → diagram-B4RE2ZJO-B94mhDmV.js} +3 -3
  54. package/dist/{diagram-FQU43EPY-BbpqeES9.cjs → diagram-B4RE2ZJO-DKbKOwkP.cjs} +1 -1
  55. package/dist/{diagram-NH7WQ7WH-DTxScPZq.js → diagram-LBJQPF4R-D0MEwBt6.js} +4 -4
  56. package/dist/{diagram-NH7WQ7WH-Bz4Neh4O.cjs → diagram-LBJQPF4R-DgD0a56I.cjs} +1 -1
  57. package/dist/{diagram-G47NLZAW-DkscVNSn.js → diagram-Q27KOJAE-Cqn3IliP.js} +6 -6
  58. package/dist/{diagram-G47NLZAW-Y1WmJnra.cjs → diagram-Q27KOJAE-DNWfiaD5.cjs} +1 -1
  59. package/dist/{diagram-WEI45ONY-Cywimh_Q.js → diagram-UB23O5K3-D-yL2fvd.js} +54 -54
  60. package/dist/diagram-UB23O5K3-DguyM6v_.cjs +41 -0
  61. package/dist/{ebnfDiagram-CCIWWBDH-pGpPnqYW.js → ebnfDiagram-BXEA7PRR-B2HDWFYF.js} +4 -4
  62. package/dist/{ebnfDiagram-CCIWWBDH-BfY9RE3m.cjs → ebnfDiagram-BXEA7PRR-DuJrkFn-.cjs} +1 -1
  63. package/dist/{erDiagram-Q63AITRT-C4mX2n9f.js → erDiagram-JOGREHBK-Badv_hu8.js} +12 -12
  64. package/dist/{erDiagram-Q63AITRT-Bu9iy-KQ.cjs → erDiagram-JOGREHBK-DtyaQROs.cjs} +1 -1
  65. package/dist/flowDiagram-UKHOOZJN-C7t5VpYH.js +17 -0
  66. package/dist/flowDiagram-UKHOOZJN-CdkElxh8.cjs +1 -0
  67. package/dist/{ganttDiagram-NO4QXBWP-DniUcCQY.js → ganttDiagram-PKOTCBZU-By0w7TmO.js} +2 -2
  68. package/dist/{ganttDiagram-NO4QXBWP-B23jdPRh.cjs → ganttDiagram-PKOTCBZU-CFgz4r57.cjs} +1 -1
  69. package/dist/{gitGraphDiagram-IHSO6WYX-C90HZKUb.js → gitGraphDiagram-DS77QQ5N-B1uJYchG.js} +3 -3
  70. package/dist/{gitGraphDiagram-IHSO6WYX-DWdu5n9P.cjs → gitGraphDiagram-DS77QQ5N-Fw8a66di.cjs} +1 -1
  71. package/dist/{infoDiagram-FWYZ7A6U-oZ8okdlc.cjs → infoDiagram-6WML65LV-CB6z_iKE.cjs} +1 -1
  72. package/dist/{infoDiagram-FWYZ7A6U-DYxiankl.js → infoDiagram-6WML65LV-CkWm_KTB.js} +4 -4
  73. package/dist/{ishikawaDiagram-FXEZZL3T-Duf4wJ7z.cjs → ishikawaDiagram-WSZJBQD7-CQWHhozU.cjs} +1 -1
  74. package/dist/{ishikawaDiagram-FXEZZL3T-DoLXsB43.js → ishikawaDiagram-WSZJBQD7-DTeFqC8L.js} +4 -4
  75. package/dist/{journeyDiagram-5HDEW3XC-AnP7Hgyg.js → journeyDiagram-NVQOT4AX-Cg6C3dFy.js} +3 -3
  76. package/dist/{journeyDiagram-5HDEW3XC-CtmpqS0G.cjs → journeyDiagram-NVQOT4AX-DLomv_vN.cjs} +1 -1
  77. package/dist/{kanban-definition-HUTT4EX6-U7vhLTXB.cjs → kanban-definition-27J2QSJJ-B9Fog3W7.cjs} +1 -1
  78. package/dist/{kanban-definition-HUTT4EX6-sNNSXAcc.js → kanban-definition-27J2QSJJ-Bb7nb0gX.js} +9 -9
  79. package/dist/{line-CzTN7vFx.cjs → line-pOZ7Sdj7.cjs} +1 -1
  80. package/dist/{line-BCC5VaQh.js → line-yqcJYv29.js} +1 -1
  81. package/dist/{mermaid.core-D4MSGV51.js → mermaid.core-BIq27e0A.js} +55 -51
  82. package/dist/{mermaid.core-DsQ2cTZb.cjs → mermaid.core-DpsSj3iy.cjs} +4 -4
  83. package/dist/{mindmap-definition-LN4V7U3C-BDXyXsYc.cjs → mindmap-definition-FAOFIHXS-9wa1P9NT.cjs} +1 -1
  84. package/dist/{mindmap-definition-LN4V7U3C-CDdi0CNr.js → mindmap-definition-FAOFIHXS-DFG0Zs_1.js} +11 -11
  85. package/dist/{pegDiagram-2B236MQR-PUegmPq4.cjs → pegDiagram-VL7TDLO6-B4FslsmM.cjs} +1 -1
  86. package/dist/{pegDiagram-2B236MQR-C2iFSdWA.js → pegDiagram-VL7TDLO6-XOjprD-j.js} +4 -4
  87. package/dist/pi-outpost-embed.cjs +59 -56
  88. package/dist/pi-outpost-embed.js +6411 -6332
  89. package/dist/{pieDiagram-ENE6RG2P-DdCURg8Z.cjs → pieDiagram-7S7Q4E2Y-CNzUVS2d.cjs} +1 -1
  90. package/dist/{pieDiagram-ENE6RG2P-BD4E9x3q.js → pieDiagram-7S7Q4E2Y-Cwe7fXgJ.js} +4 -4
  91. package/dist/{quadrantDiagram-ABIIQ3AL-D_HJfnw7.cjs → quadrantDiagram-CIZ2JOQS-CDfrU0dm.cjs} +1 -1
  92. package/dist/{quadrantDiagram-ABIIQ3AL-B29o3-5x.js → quadrantDiagram-CIZ2JOQS-CbaMHmYB.js} +2 -2
  93. package/dist/{railroadDiagram-RFXS5EU6-Eu2-eTxR.js → railroadDiagram-AXF67PYL-CVXAv-Uu.js} +4 -4
  94. package/dist/{railroadDiagram-RFXS5EU6-Bqz7Hmlf.cjs → railroadDiagram-AXF67PYL-EO1cBHEj.cjs} +1 -1
  95. package/dist/{requirementDiagram-TGXJPOKE-B7upMxNQ.cjs → requirementDiagram-LRYGKXZP-BGlGCftH.cjs} +1 -1
  96. package/dist/{requirementDiagram-TGXJPOKE-DE9BVZKg.js → requirementDiagram-LRYGKXZP-Bzik4kgS.js} +11 -11
  97. package/dist/{sankeyDiagram-HTMAVEWB-UgWMXgH0.cjs → sankeyDiagram-W5VNT64P-OeLUMuT6.cjs} +1 -1
  98. package/dist/{sankeyDiagram-HTMAVEWB-DWYscCb7.js → sankeyDiagram-W5VNT64P-_8xZpo45.js} +2 -2
  99. package/dist/{sequenceDiagram-DBY2YBRQ-B8Wj3FxL.cjs → sequenceDiagram-SI44F4Z6-CuaCFBtR.cjs} +1 -1
  100. package/dist/{sequenceDiagram-DBY2YBRQ-2Q8poJLj.js → sequenceDiagram-SI44F4Z6-X4mzY21C.js} +4 -4
  101. package/dist/{stateDiagram-2N3HPSRC-D5l36r9f.js → stateDiagram-OKZ733FA-CMM1orC_.js} +14 -14
  102. package/dist/{stateDiagram-2N3HPSRC-DdBm7zAq.cjs → stateDiagram-OKZ733FA-Dq6hI_pq.cjs} +1 -1
  103. package/dist/stateDiagram-v2-UEYNNEHI-BmWUstzl.js +30 -0
  104. package/dist/stateDiagram-v2-UEYNNEHI-DZULVhS9.cjs +1 -0
  105. package/dist/{swimlanes-5IMT3BWC-DLXSmhPP.cjs → swimlanes-SLNWSIFB-BMS6R0BK.cjs} +1 -1
  106. package/dist/{swimlanes-5IMT3BWC-C-d6S2T8.js → swimlanes-SLNWSIFB-C7LLK1V2.js} +9 -9
  107. package/dist/swimlanesDiagram-ULZ7WXOC-DxHKX_pj.cjs +8 -0
  108. package/dist/{swimlanesDiagram-G3AALYLV-yAL_7-lO.js → swimlanesDiagram-ULZ7WXOC-uXMuqsao.js} +13 -13
  109. package/dist/{timeline-definition-FHXFAJF6-M0fyTC2Q.js → timeline-definition-Z64GVDOM-Cgc-2OmU.js} +4 -4
  110. package/dist/{timeline-definition-FHXFAJF6-DjbbA72K.cjs → timeline-definition-Z64GVDOM-PPJqDdOy.cjs} +1 -1
  111. package/dist/{vennDiagram-L72KCM5P-PAy6Hi1U.js → vennDiagram-T6HMQDX7-BWj1BhMh.js} +4 -4
  112. package/dist/{vennDiagram-L72KCM5P-BzU_8gqp.cjs → vennDiagram-T6HMQDX7-DqY7YgNx.cjs} +1 -1
  113. package/dist/{wardleyDiagram-EHGQE667-DQgwqGGC.cjs → wardleyDiagram-T6FBY63Y-OomvVIFj.cjs} +1 -1
  114. package/dist/{wardleyDiagram-EHGQE667-KQfJDE49.js → wardleyDiagram-T6FBY63Y-d_t4oVLE.js} +4 -4
  115. package/dist/{xychartDiagram-FW5EYKEG-BJuIG0ER.cjs → xychartDiagram-ELKLHX3M-BOSOdubI.cjs} +2 -2
  116. package/dist/{xychartDiagram-FW5EYKEG-Cgi_Sfv1.js → xychartDiagram-ELKLHX3M-Ce-ai3a8.js} +13 -10
  117. package/package.json +10 -2
  118. package/dist/architectureDiagram-ZJ3FMSHR-CnEarI2q.cjs +0 -36
  119. package/dist/channel-G59is6ug.cjs +0 -1
  120. package/dist/chunk-WYO6CB5R-BeX_IRrv.cjs +0 -127
  121. package/dist/classDiagram-OUVF2IWQ-BXk_zmpX.cjs +0 -1
  122. package/dist/classDiagram-OUVF2IWQ-TuB0I2YU.js +0 -30
  123. package/dist/classDiagram-v2-EOCWNBFH-BXk_zmpX.cjs +0 -1
  124. package/dist/classDiagram-v2-EOCWNBFH-BwF0gRU-.js +0 -30
  125. package/dist/diagram-WEI45ONY-Xve-bzio.cjs +0 -41
  126. package/dist/flowDiagram-23GEKE2U-p9J8mqjX.js +0 -17
  127. package/dist/flowDiagram-23GEKE2U-qNQmKrgX.cjs +0 -1
  128. package/dist/stateDiagram-v2-6OUMAXLB-B32DzP9u.js +0 -30
  129. package/dist/stateDiagram-v2-6OUMAXLB-Dt4my2LB.cjs +0 -1
  130. package/dist/swimlanesDiagram-G3AALYLV-BFTabgJm.cjs +0 -8
@@ -473,33 +473,33 @@ function ce(e, t) {
473
473
  return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? re(e, t) : void 0;
474
474
  }
475
475
  }
476
- var le = Object.entries, ue = Object.setPrototypeOf, de = Object.isFrozen, fe = Object.getPrototypeOf, pe = Object.getOwnPropertyDescriptor, C = Object.freeze, w = Object.seal, me = Object.create, T = typeof Reflect < "u" && Reflect, he = T.apply, ge = T.construct;
476
+ var le = Object.entries, ue = Object.setPrototypeOf, de = Object.isFrozen, fe = Object.getPrototypeOf, pe = Object.getOwnPropertyDescriptor, C = Object.freeze, w = Object.seal, me = Object.create, he = typeof Reflect < "u" && Reflect, T = he.apply, ge = he.construct;
477
477
  C ||= function(e) {
478
478
  return e;
479
479
  }, w ||= function(e) {
480
480
  return e;
481
- }, he ||= function(e, t) {
481
+ }, T ||= function(e, t) {
482
482
  var n = [...arguments].slice(2);
483
483
  return e.apply(t, n);
484
484
  }, ge ||= function(e) {
485
485
  return new e(...[...arguments].slice(1));
486
486
  };
487
- var _e = O(Array.prototype.forEach), ve = O(Array.prototype.lastIndexOf), ye = O(Array.prototype.pop), be = O(Array.prototype.push), xe = O(Array.prototype.splice), Se = Array.isArray, Ce = O(String.prototype.toLowerCase), we = O(String.prototype.toString), Te = O(String.prototype.match), Ee = O(String.prototype.replace), De = O(String.prototype.indexOf), Oe = O(String.prototype.trim), ke = O(Number.prototype.toString), Ae = O(Boolean.prototype.toString), je = typeof BigInt > "u" ? null : O(BigInt.prototype.toString), Me = typeof Symbol > "u" ? null : O(Symbol.prototype.toString), E = O(Object.prototype.hasOwnProperty), Ne = O(Object.prototype.toString), D = O(RegExp.prototype.test), Pe = Fe(TypeError);
488
- function O(e) {
487
+ var _e = k(Array.prototype.forEach), ve = k(Array.prototype.lastIndexOf), ye = k(Array.prototype.pop), be = k(Array.prototype.push), xe = k(Array.prototype.splice), E = Array.isArray, Se = k(String.prototype.toLowerCase), Ce = k(String.prototype.toString), we = k(String.prototype.match), Te = k(String.prototype.replace), Ee = k(String.prototype.indexOf), De = k(String.prototype.trim), Oe = k(Number.prototype.toString), ke = k(Boolean.prototype.toString), Ae = typeof BigInt > "u" ? null : k(BigInt.prototype.toString), je = typeof Symbol > "u" ? null : k(Symbol.prototype.toString), D = k(Object.prototype.hasOwnProperty), Me = k(Object.prototype.toString), O = k(RegExp.prototype.test), Ne = Pe(TypeError);
488
+ function k(e) {
489
489
  return function(t) {
490
490
  t instanceof RegExp && (t.lastIndex = 0);
491
491
  var n = [...arguments].slice(1);
492
- return he(e, t, n);
492
+ return T(e, t, n);
493
493
  };
494
494
  }
495
- function Fe(e) {
495
+ function Pe(e) {
496
496
  return function() {
497
497
  return ge(e, [...arguments]);
498
498
  };
499
499
  }
500
- function k(e, t) {
501
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ce;
502
- if (ue && ue(e, null), !Se(t)) return e;
500
+ function A(e, t) {
501
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Se;
502
+ if (ue && ue(e, null), !E(t)) return e;
503
503
  let r = t.length;
504
504
  for (; r--;) {
505
505
  let i = t[r];
@@ -511,8 +511,8 @@ function k(e, t) {
511
511
  }
512
512
  return e;
513
513
  }
514
- function A(e) {
515
- for (let t = 0; t < e.length; t++) E(e, t) || (e[t] = null);
514
+ function Fe(e) {
515
+ for (let t = 0; t < e.length; t++) D(e, t) || (e[t] = null);
516
516
  return e;
517
517
  }
518
518
  function j(e) {
@@ -520,37 +520,37 @@ function j(e) {
520
520
  for (let r of le(e)) {
521
521
  var n = se(r, 2);
522
522
  let i = n[0], a = n[1];
523
- E(e, i) && (Se(a) ? t[i] = A(a) : a && typeof a == "object" && a.constructor === Object ? t[i] = j(a) : t[i] = a);
523
+ D(e, i) && (E(a) ? t[i] = Fe(a) : a && typeof a == "object" && a.constructor === Object ? t[i] = j(a) : t[i] = a);
524
524
  }
525
525
  return t;
526
526
  }
527
527
  function Ie(e) {
528
528
  switch (typeof e) {
529
529
  case "string": return e;
530
- case "number": return ke(e);
531
- case "boolean": return Ae(e);
532
- case "bigint": return je ? je(e) : "0";
533
- case "symbol": return Me ? Me(e) : "Symbol()";
534
- case "undefined": return Ne(e);
530
+ case "number": return Oe(e);
531
+ case "boolean": return ke(e);
532
+ case "bigint": return Ae ? Ae(e) : "0";
533
+ case "symbol": return je ? je(e) : "Symbol()";
534
+ case "undefined": return Me(e);
535
535
  case "function":
536
536
  case "object": {
537
- if (e === null) return Ne(e);
537
+ if (e === null) return Me(e);
538
538
  let t = e, n = M(t, "toString");
539
539
  if (typeof n == "function") {
540
540
  let e = n(t);
541
- return typeof e == "string" ? e : Ne(e);
541
+ return typeof e == "string" ? e : Me(e);
542
542
  }
543
- return Ne(e);
543
+ return Me(e);
544
544
  }
545
- default: return Ne(e);
545
+ default: return Me(e);
546
546
  }
547
547
  }
548
548
  function M(e, t) {
549
549
  for (; e !== null;) {
550
550
  let n = pe(e, t);
551
551
  if (n) {
552
- if (n.get) return O(n.get);
553
- if (typeof n.value == "function") return O(n.value);
552
+ if (n.get) return k(n.get);
553
+ if (typeof n.value == "function") return k(n.value);
554
554
  }
555
555
  e = fe(e);
556
556
  }
@@ -561,7 +561,7 @@ function M(e, t) {
561
561
  }
562
562
  function Le(e) {
563
563
  try {
564
- return D(e, ""), !0;
564
+ return O(e, ""), !0;
565
565
  } catch {
566
566
  return !1;
567
567
  }
@@ -681,48 +681,48 @@ var Re = C(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
681
681
  uponSanitizeElement: [],
682
682
  uponSanitizeShadowNode: []
683
683
  };
684
- }, P = function(e, t, n, r) {
685
- return E(e, t) && Se(e[t]) ? k(r.base ? j(r.base) : {}, e[t], r.transform) : n;
684
+ }, ft = function(e, t, n, r) {
685
+ return D(e, t) && E(e[t]) ? A(r.base ? j(r.base) : {}, e[t], r.transform) : n;
686
686
  };
687
- function ft() {
688
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : lt(), t = (e) => ft(e);
689
- if (t.version = "3.4.12", t.removed = [], !e || !e.document || e.document.nodeType !== N.document || !e.Element) return t.isSupported = !1, t;
687
+ function pt() {
688
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : lt(), t = (e) => pt(e);
689
+ if (t.version = "3.4.13", t.removed = [], !e || !e.document || e.document.nodeType !== N.document || !e.Element) return t.isSupported = !1, t;
690
690
  let n = e.document, r = n, i = r.currentScript;
691
691
  e.DocumentFragment;
692
692
  let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
693
693
  e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
694
- let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = M(d, "cloneNode"), p = M(d, "remove"), m = M(d, "nextSibling"), h = M(d, "childNodes"), g = M(d, "parentNode"), ee = M(d, "shadowRoot"), te = M(d, "attributes"), _ = o && o.prototype ? M(o.prototype, "nodeType") : null, v = o && o.prototype ? M(o.prototype, "nodeName") : null;
694
+ let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = M(d, "cloneNode"), p = M(d, "remove"), m = M(d, "nextSibling"), h = M(d, "childNodes"), g = M(d, "parentNode"), ee = M(d, "shadowRoot"), te = M(d, "attributes"), _ = o && o.prototype ? M(o.prototype, "nodeType") : null, v = o && o.prototype ? M(o.prototype, "nodeName") : null, y = o && o.prototype ? M(o.prototype, "ownerDocument") : null;
695
695
  if (typeof a == "function") {
696
696
  let e = n.createElement("template");
697
697
  e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
698
698
  }
699
- let y, b = "", x, ne = !1, S = 0, re = function() {
700
- if (S > 0) throw Pe("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
701
- }, ie = function(e) {
702
- re(), S++;
699
+ let b, x = "", ne, S = !1, re = 0, ie = function() {
700
+ if (re > 0) throw Ne("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
701
+ }, ae = function(e) {
702
+ ie(), re++;
703
703
  try {
704
- return y.createHTML(e);
704
+ return b.createHTML(e);
705
705
  } finally {
706
- S--;
706
+ re--;
707
707
  }
708
- }, ae = function(e) {
709
- re(), S++;
708
+ }, oe = function(e) {
709
+ ie(), re++;
710
710
  try {
711
- return y.createScriptURL(e);
711
+ return b.createScriptURL(e);
712
712
  } finally {
713
- S--;
713
+ re--;
714
714
  }
715
- }, oe = function() {
716
- return ne ||= (x = ut(u, i), !0), x;
717
- }, se = n, ce = se.implementation, ue = se.createNodeIterator, de = se.createDocumentFragment, fe = se.getElementsByTagName, pe = r.importNode, T = dt();
718
- t.isSupported = typeof le == "function" && typeof g == "function" && ce && ce.createHTMLDocument !== void 0;
719
- let he = Ye, ge = Xe, ke = Ze, Ae = Qe, je = $e, Me = tt, Ne = nt, O = it, Fe = et, A = null, pt = k({}, [
715
+ }, se = function() {
716
+ return S ||= (ne = ut(u, i), !0), ne;
717
+ }, ce = n, ue = ce.implementation, de = ce.createNodeIterator, fe = ce.createDocumentFragment, pe = ce.getElementsByTagName, he = r.importNode, T = dt();
718
+ t.isSupported = typeof le == "function" && typeof g == "function" && ue && ue.createHTMLDocument !== void 0;
719
+ let ge = Ye, Oe = Xe, ke = Ze, Ae = Qe, je = $e, Me = tt, k = nt, Pe = it, Fe = et, P = null, mt = A({}, [
720
720
  ...Re,
721
721
  ...ze,
722
722
  ...Be,
723
723
  ...He,
724
724
  ...We
725
- ]), F = null, I = k({}, [
725
+ ]), F = null, I = A({}, [
726
726
  ...Ge,
727
727
  ...Ke,
728
728
  ...qe,
@@ -746,7 +746,7 @@ function ft() {
746
746
  enumerable: !0,
747
747
  value: !1
748
748
  }
749
- })), R = null, z = null, B = Object.seal(me(null, {
749
+ })), R = null, ht = null, z = Object.seal(me(null, {
750
750
  tagCheck: {
751
751
  writable: !0,
752
752
  configurable: !1,
@@ -759,14 +759,14 @@ function ft() {
759
759
  enumerable: !0,
760
760
  value: null
761
761
  }
762
- })), mt = !0, ht = !0, gt = !1, _t = !0, V = !1, H = !0, vt = !1, yt = !1, bt = null, xt = null, St = !1, Ct = !1, wt = !1, Tt = !1, Et = !0, Dt = !1, Ot = "user-content-", kt = !0, At = !1, jt = {}, U = null, W = k({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Mt = null, Nt = k({}, [
762
+ })), gt = !0, _t = !0, vt = !1, yt = !0, B = !1, V = !0, bt = !1, xt = !1, St = null, Ct = null, wt = !1, Tt = !1, Et = !1, Dt = !1, Ot = !0, kt = !1, At = "user-content-", jt = !0, Mt = !1, H = {}, U = null, Nt = A({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Pt = null, Ft = A({}, [
763
763
  "audio",
764
764
  "video",
765
765
  "img",
766
766
  "source",
767
767
  "image",
768
768
  "track"
769
- ]), Pt = null, Ft = k({}, [
769
+ ]), It = null, Lt = A({}, [
770
770
  "alt",
771
771
  "class",
772
772
  "for",
@@ -781,78 +781,78 @@ function ft() {
781
781
  "value",
782
782
  "style",
783
783
  "xmlns"
784
- ]), It = "http://www.w3.org/1998/Math/MathML", Lt = "http://www.w3.org/2000/svg", G = "http://www.w3.org/1999/xhtml", Rt = G, zt = !1, Bt = null, K = k({}, [
785
- It,
786
- Lt,
787
- G
788
- ], we), Vt = C([
784
+ ]), Rt = "http://www.w3.org/1998/Math/MathML", zt = "http://www.w3.org/2000/svg", W = "http://www.w3.org/1999/xhtml", G = W, Bt = !1, K = null, Vt = A({}, [
785
+ Rt,
786
+ zt,
787
+ W
788
+ ], Ce), q = C([
789
789
  "mi",
790
790
  "mo",
791
791
  "mn",
792
792
  "ms",
793
793
  "mtext"
794
- ]), q = k({}, Vt), Ht = C(["annotation-xml"]), Ut = k({}, Ht), Wt = k({}, [
794
+ ]), Ht = A({}, q), Ut = C(["annotation-xml"]), Wt = A({}, Ut), Gt = A({}, [
795
795
  "title",
796
796
  "style",
797
797
  "font",
798
798
  "a",
799
799
  "script"
800
- ]), Gt = null, Kt = ["application/xhtml+xml", "text/html"], J = null, qt = null, Jt = n.createElement("form"), Yt = function(e) {
800
+ ]), Kt = null, qt = ["application/xhtml+xml", "text/html"], J = null, Y = null, Jt = n.createElement("form"), Yt = function(e) {
801
801
  return e instanceof RegExp || e instanceof Function;
802
802
  }, Xt = function() {
803
803
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
804
- if (qt && qt === e) return;
805
- (!e || typeof e != "object") && (e = {}), e = j(e), Gt = Kt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = Gt === "application/xhtml+xml" ? we : Ce, A = P(e, "ALLOWED_TAGS", pt, { transform: J }), F = P(e, "ALLOWED_ATTR", I, { transform: J }), Bt = P(e, "ALLOWED_NAMESPACES", K, { transform: we }), Pt = P(e, "ADD_URI_SAFE_ATTR", Ft, {
804
+ if (Y && Y === e) return;
805
+ (!e || typeof e != "object") && (e = {}), e = j(e), Kt = qt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = Kt === "application/xhtml+xml" ? Ce : Se, P = ft(e, "ALLOWED_TAGS", mt, { transform: J }), F = ft(e, "ALLOWED_ATTR", I, { transform: J }), K = ft(e, "ALLOWED_NAMESPACES", Vt, { transform: Ce }), It = ft(e, "ADD_URI_SAFE_ATTR", Lt, {
806
806
  transform: J,
807
- base: Ft
808
- }), Mt = P(e, "ADD_DATA_URI_TAGS", Nt, {
807
+ base: Lt
808
+ }), Pt = ft(e, "ADD_DATA_URI_TAGS", Ft, {
809
809
  transform: J,
810
- base: Nt
811
- }), U = P(e, "FORBID_CONTENTS", W, { transform: J }), R = P(e, "FORBID_TAGS", j({}), { transform: J }), z = P(e, "FORBID_ATTR", j({}), { transform: J }), jt = E(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? j(e.USE_PROFILES) : e.USE_PROFILES : !1, mt = e.ALLOW_ARIA_ATTR !== !1, ht = e.ALLOW_DATA_ATTR !== !1, gt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, _t = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, V = e.SAFE_FOR_TEMPLATES || !1, H = e.SAFE_FOR_XML !== !1, vt = e.WHOLE_DOCUMENT || !1, Ct = e.RETURN_DOM || !1, wt = e.RETURN_DOM_FRAGMENT || !1, Tt = e.RETURN_TRUSTED_TYPE || !1, St = e.FORCE_BODY || !1, Et = e.SANITIZE_DOM !== !1, Dt = e.SANITIZE_NAMED_PROPS || !1, kt = e.KEEP_CONTENT !== !1, At = e.IN_PLACE || !1, Fe = Le(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : et, Rt = typeof e.NAMESPACE == "string" ? e.NAMESPACE : G, q = E(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? j(e.MATHML_TEXT_INTEGRATION_POINTS) : k({}, Vt), Ut = E(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? j(e.HTML_INTEGRATION_POINTS) : k({}, Ht);
812
- let t = E(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? j(e.CUSTOM_ELEMENT_HANDLING) : me(null);
813
- if (L = me(null), E(t, "tagNameCheck") && Yt(t.tagNameCheck) && (L.tagNameCheck = t.tagNameCheck), E(t, "attributeNameCheck") && Yt(t.attributeNameCheck) && (L.attributeNameCheck = t.attributeNameCheck), E(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (L.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), w(L), V && (ht = !1), wt && (Ct = !0), jt && (A = k({}, We), F = me(null), jt.html === !0 && (k(A, Re), k(F, Ge)), jt.svg === !0 && (k(A, ze), k(F, Ke), k(F, Je)), jt.svgFilters === !0 && (k(A, Be), k(F, Ke), k(F, Je)), jt.mathMl === !0 && (k(A, He), k(F, qe), k(F, Je))), B.tagCheck = null, B.attributeCheck = null, E(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? B.tagCheck = e.ADD_TAGS : Se(e.ADD_TAGS) && (A === pt && (A = j(A)), k(A, e.ADD_TAGS, J))), E(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? B.attributeCheck = e.ADD_ATTR : Se(e.ADD_ATTR) && (F === I && (F = j(F)), k(F, e.ADD_ATTR, J))), E(e, "ADD_URI_SAFE_ATTR") && Se(e.ADD_URI_SAFE_ATTR) && k(Pt, e.ADD_URI_SAFE_ATTR, J), E(e, "FORBID_CONTENTS") && Se(e.FORBID_CONTENTS) && (U === W && (U = j(U)), k(U, e.FORBID_CONTENTS, J)), E(e, "ADD_FORBID_CONTENTS") && Se(e.ADD_FORBID_CONTENTS) && (U === W && (U = j(U)), k(U, e.ADD_FORBID_CONTENTS, J)), kt && (A["#text"] = !0), vt && k(A, [
810
+ base: Ft
811
+ }), U = ft(e, "FORBID_CONTENTS", Nt, { transform: J }), R = ft(e, "FORBID_TAGS", j({}), { transform: J }), ht = ft(e, "FORBID_ATTR", j({}), { transform: J }), H = D(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? j(e.USE_PROFILES) : e.USE_PROFILES : !1, gt = e.ALLOW_ARIA_ATTR !== !1, _t = e.ALLOW_DATA_ATTR !== !1, vt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, yt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, B = e.SAFE_FOR_TEMPLATES || !1, V = e.SAFE_FOR_XML !== !1, bt = e.WHOLE_DOCUMENT || !1, Tt = e.RETURN_DOM || !1, Et = e.RETURN_DOM_FRAGMENT || !1, Dt = e.RETURN_TRUSTED_TYPE || !1, wt = e.FORCE_BODY || !1, Ot = e.SANITIZE_DOM !== !1, kt = e.SANITIZE_NAMED_PROPS || !1, jt = e.KEEP_CONTENT !== !1, Mt = e.IN_PLACE || !1, Fe = Le(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : et, G = typeof e.NAMESPACE == "string" ? e.NAMESPACE : W, Ht = D(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? j(e.MATHML_TEXT_INTEGRATION_POINTS) : A({}, q), Wt = D(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? j(e.HTML_INTEGRATION_POINTS) : A({}, Ut);
812
+ let t = D(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? j(e.CUSTOM_ELEMENT_HANDLING) : me(null);
813
+ if (L = me(null), D(t, "tagNameCheck") && Yt(t.tagNameCheck) && (L.tagNameCheck = t.tagNameCheck), D(t, "attributeNameCheck") && Yt(t.attributeNameCheck) && (L.attributeNameCheck = t.attributeNameCheck), D(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (L.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), w(L), B && (_t = !1), Et && (Tt = !0), H && (P = A({}, We), F = me(null), H.html === !0 && (A(P, Re), A(F, Ge)), H.svg === !0 && (A(P, ze), A(F, Ke), A(F, Je)), H.svgFilters === !0 && (A(P, Be), A(F, Ke), A(F, Je)), H.mathMl === !0 && (A(P, He), A(F, qe), A(F, Je))), z.tagCheck = null, z.attributeCheck = null, D(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? z.tagCheck = e.ADD_TAGS : E(e.ADD_TAGS) && (P === mt && (P = j(P)), A(P, e.ADD_TAGS, J))), D(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? z.attributeCheck = e.ADD_ATTR : E(e.ADD_ATTR) && (F === I && (F = j(F)), A(F, e.ADD_ATTR, J))), D(e, "ADD_URI_SAFE_ATTR") && E(e.ADD_URI_SAFE_ATTR) && A(It, e.ADD_URI_SAFE_ATTR, J), D(e, "FORBID_CONTENTS") && E(e.FORBID_CONTENTS) && (U === Nt && (U = j(U)), A(U, e.FORBID_CONTENTS, J)), D(e, "ADD_FORBID_CONTENTS") && E(e.ADD_FORBID_CONTENTS) && (U === Nt && (U = j(U)), A(U, e.ADD_FORBID_CONTENTS, J)), jt && (P["#text"] = !0), bt && A(P, [
814
814
  "html",
815
815
  "head",
816
816
  "body"
817
- ]), A.table && (k(A, ["tbody"]), delete R.tbody), e.TRUSTED_TYPES_POLICY) {
818
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw Pe("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
819
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Pe("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
820
- let t = y;
821
- y = e.TRUSTED_TYPES_POLICY;
817
+ ]), P.table && (A(P, ["tbody"]), delete R.tbody), e.TRUSTED_TYPES_POLICY) {
818
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw Ne("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
819
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Ne("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
820
+ let t = b;
821
+ b = e.TRUSTED_TYPES_POLICY;
822
822
  try {
823
- b = ie("");
823
+ x = ae("");
824
824
  } catch (e) {
825
- throw y = t, e;
825
+ throw b = t, e;
826
826
  }
827
- } else e.TRUSTED_TYPES_POLICY === null ? (y = void 0, b = "") : (y === void 0 && (y = oe()), y && typeof b == "string" && (b = ie("")));
828
- C && C(e), qt = e;
829
- }, Zt = k({}, [
827
+ } else e.TRUSTED_TYPES_POLICY === null ? (b = void 0, x = "") : (b === void 0 && (b = se()), b && typeof x == "string" && (x = ae("")));
828
+ C && C(e), Y = e;
829
+ }, Zt = A({}, [
830
830
  ...ze,
831
831
  ...Be,
832
832
  ...Ve
833
- ]), Qt = k({}, [...He, ...Ue]), $t = function(e, t, n) {
834
- return t.namespaceURI === G ? e === "svg" : t.namespaceURI === It ? e === "svg" && (n === "annotation-xml" || q[n]) : !!Zt[e];
833
+ ]), Qt = A({}, [...He, ...Ue]), $t = function(e, t, n) {
834
+ return t.namespaceURI === W ? e === "svg" : t.namespaceURI === Rt ? e === "svg" && (n === "annotation-xml" || Ht[n]) : !!Zt[e];
835
835
  }, en = function(e, t, n) {
836
- return t.namespaceURI === G ? e === "math" : t.namespaceURI === Lt ? e === "math" && Ut[n] : !!Qt[e];
836
+ return t.namespaceURI === W ? e === "math" : t.namespaceURI === zt ? e === "math" && Wt[n] : !!Qt[e];
837
837
  }, tn = function(e, t, n) {
838
- return t.namespaceURI === Lt && !Ut[n] || t.namespaceURI === It && !q[n] ? !1 : !Qt[e] && (Wt[e] || !Zt[e]);
838
+ return t.namespaceURI === zt && !Wt[n] || t.namespaceURI === Rt && !Ht[n] ? !1 : !Qt[e] && (Gt[e] || !Zt[e]);
839
839
  }, nn = function(e) {
840
840
  let t = g(e);
841
841
  (!t || !t.tagName) && (t = {
842
- namespaceURI: Rt,
842
+ namespaceURI: G,
843
843
  tagName: "template"
844
844
  });
845
- let n = Ce(e.tagName), r = Ce(t.tagName);
846
- return Bt[e.namespaceURI] ? e.namespaceURI === Lt ? $t(n, t, r) : e.namespaceURI === It ? en(n, t, r) : e.namespaceURI === G ? tn(n, t, r) : !!(Gt === "application/xhtml+xml" && Bt[e.namespaceURI]) : !1;
847
- }, Y = function(e) {
845
+ let n = Se(e.tagName), r = Se(t.tagName);
846
+ return K[e.namespaceURI] ? e.namespaceURI === zt ? $t(n, t, r) : e.namespaceURI === Rt ? en(n, t, r) : e.namespaceURI === W ? tn(n, t, r) : !!(Kt === "application/xhtml+xml" && K[e.namespaceURI]) : !1;
847
+ }, X = function(e) {
848
848
  be(t.removed, { element: e });
849
849
  try {
850
850
  g(e).removeChild(e);
851
851
  } catch {
852
- if (p(e), !g(e)) throw Pe("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
852
+ if (p(e), !g(e)) throw Ne("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
853
853
  }
854
854
  }, rn = function(e) {
855
- on(e);
855
+ Z(e);
856
856
  let t = h(e);
857
857
  if (t) {
858
858
  let e = [];
@@ -871,7 +871,7 @@ function ft() {
871
871
  e.removeAttribute(i);
872
872
  } catch {}
873
873
  }
874
- }, X = function(e, n) {
874
+ }, an = function(e, n) {
875
875
  try {
876
876
  be(t.removed, {
877
877
  attribute: n.getAttributeNode(e),
@@ -883,13 +883,13 @@ function ft() {
883
883
  from: n
884
884
  });
885
885
  }
886
- if (n.removeAttribute(e), e === "is") if (Ct || wt) try {
887
- Y(n);
886
+ if (n.removeAttribute(e), e === "is") if (Tt || Et) try {
887
+ X(n);
888
888
  } catch {}
889
889
  else try {
890
890
  n.setAttribute(e, "");
891
891
  } catch {}
892
- }, an = function(e) {
892
+ }, on = function(e) {
893
893
  let t = te(e);
894
894
  if (t) for (let n = t.length - 1; n >= 0; --n) {
895
895
  let r = t[n], i = r && r.name;
@@ -897,20 +897,20 @@ function ft() {
897
897
  e.removeAttribute(i);
898
898
  } catch {}
899
899
  }
900
- }, on = function(e) {
900
+ }, Z = function(e) {
901
901
  let t = [e];
902
902
  for (; t.length > 0;) {
903
903
  let e = t.pop();
904
- (_ ? _(e) : e.nodeType) === N.element && an(e);
904
+ (_ ? _(e) : e.nodeType) === N.element && on(e);
905
905
  let n = h(e);
906
906
  if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
907
907
  }
908
908
  }, sn = function(e) {
909
- if (!H) return;
909
+ if (!V) return;
910
910
  let t = [e];
911
911
  for (; t.length > 0;) {
912
912
  let e = t.pop(), n = _ ? _(e) : e.nodeType;
913
- if (n === N.processingInstruction || n === N.comment && D(ot, e.data)) {
913
+ if (n === N.processingInstruction || n === N.comment && O(ot, e.data)) {
914
914
  try {
915
915
  p(e);
916
916
  } catch {}
@@ -927,37 +927,38 @@ function ft() {
927
927
  }
928
928
  }, cn = function(e) {
929
929
  let t = null, r = null;
930
- if (St) e = "<remove></remove>" + e;
930
+ if (wt) e = "<remove></remove>" + e;
931
931
  else {
932
- let t = Te(e, /^[\r\n\t ]+/);
932
+ let t = we(e, /^[\r\n\t ]+/);
933
933
  r = t && t[0];
934
934
  }
935
- Gt === "application/xhtml+xml" && Rt === G && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
936
- let i = y ? ie(e) : e;
937
- if (Rt === G) try {
938
- t = new l().parseFromString(i, Gt);
935
+ Kt === "application/xhtml+xml" && G === W && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
936
+ let i = b ? ae(e) : e;
937
+ if (G === W) try {
938
+ t = new l().parseFromString(i, Kt);
939
939
  } catch {}
940
940
  if (!t || !t.documentElement) {
941
- t = ce.createDocument(Rt, "template", null);
941
+ t = ue.createDocument(G, "template", null);
942
942
  try {
943
- t.documentElement.innerHTML = zt ? b : i;
943
+ t.documentElement.innerHTML = Bt ? x : i;
944
944
  } catch {}
945
945
  }
946
946
  let a = t.body || t.documentElement;
947
- return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Rt === G ? fe.call(t, vt ? "html" : "body")[0] : vt ? t.documentElement : a;
947
+ return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), G === W ? pe.call(t, bt ? "html" : "body")[0] : bt ? t.documentElement : a;
948
948
  }, ln = function(e) {
949
- return ue.call(e.ownerDocument || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
949
+ let t = y ? y(e) : e.ownerDocument;
950
+ return de.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
950
951
  }, un = function(e) {
951
- return e = Ee(e, he, " "), e = Ee(e, ge, " "), e = Ee(e, ke, " "), e;
952
- }, dn = function(e) {
952
+ return e = Te(e, ge, " "), e = Te(e, Oe, " "), e = Te(e, ke, " "), e;
953
+ }, Q = function(e) {
953
954
  e.normalize();
954
- let t = ue.call(e.ownerDocument || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), n = t.nextNode();
955
- for (; n;) n.data = un(n.data), n = t.nextNode();
956
- let r = e.querySelectorAll?.call(e, "template");
957
- r && _e(r, (e) => {
958
- fn(e.content) && dn(e.content);
955
+ let t = y ? y(e) : e.ownerDocument, n = de.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
956
+ for (; r;) r.data = un(r.data), r = n.nextNode();
957
+ let i = e.querySelectorAll?.call(e, "template");
958
+ i && _e(i, (e) => {
959
+ fn(e.content) && Q(e.content);
959
960
  });
960
- }, Z = function(e) {
961
+ }, dn = function(e) {
961
962
  let t = v ? v(e) : null;
962
963
  return typeof t != "string" || J(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== te(e) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== _(e) || e.childNodes !== h(e);
963
964
  }, fn = function(e) {
@@ -975,55 +976,57 @@ function ft() {
975
976
  return !1;
976
977
  }
977
978
  };
978
- function Q(e, n, r) {
979
+ function $(e, n, r) {
979
980
  e.length !== 0 && _e(e, (e) => {
980
- e.call(t, n, r, qt);
981
+ e.call(t, n, r, Y);
981
982
  });
982
983
  }
983
984
  let mn = function(e, t) {
984
- return !!(H && e.hasChildNodes() && !pn(e.firstElementChild) && D(at, e.textContent) && D(at, e.innerHTML) || H && e.namespaceURI === G && t === "style" && pn(e.firstElementChild) || e.nodeType === N.processingInstruction || H && e.nodeType === N.comment && D(ot, e.data));
985
- }, hn = function(e, t) {
986
- if (!R[t] && vn(t) && (L.tagNameCheck instanceof RegExp && D(L.tagNameCheck, t) || L.tagNameCheck instanceof Function && L.tagNameCheck(t))) return !1;
987
- if (kt && !U[t]) {
988
- let t = g(e), n = h(e);
989
- if (n && t) {
990
- let r = n.length;
991
- for (let i = r - 1; i >= 0; --i) {
992
- let r = At ? n[i] : f(n[i], !0);
993
- t.insertBefore(r, m(e));
985
+ return !!(V && e.hasChildNodes() && !pn(e.firstElementChild) && O(at, e.textContent) && O(at, e.innerHTML) || V && e.namespaceURI === W && t === "style" && pn(e.firstElementChild) || e.nodeType === N.processingInstruction || V && e.nodeType === N.comment && O(ot, e.data));
986
+ }, hn = function(e, t, n) {
987
+ if (!R[t] && bn(t) && (L.tagNameCheck instanceof RegExp && O(L.tagNameCheck, t) || L.tagNameCheck instanceof Function && L.tagNameCheck(t))) return !1;
988
+ if (jt && !U[t]) {
989
+ let t = g(e), r = h(e);
990
+ if (r && t) {
991
+ let i = r.length;
992
+ for (let a = i - 1; a >= 0; --a) {
993
+ let i = e === n ? f(r[a], !0) : r[a];
994
+ t.insertBefore(i, m(e));
994
995
  }
995
996
  }
996
997
  }
997
- return Y(e), !0;
998
- }, $ = function(e, n) {
999
- if (Q(T.beforeSanitizeElements, e, null), e !== n && g(e) === null) return !0;
1000
- if (Z(e)) return Y(e), !0;
998
+ return X(e), !0;
999
+ }, gn = function(e, t, n, r) {
1000
+ return e.length === 0 ? t : t === n || t === r ? j(t) : t;
1001
+ }, _n = function(e, n) {
1002
+ if ($(T.beforeSanitizeElements, e, null), e !== n && g(e) === null) return Mt && Z(e), !0;
1003
+ if (dn(e)) return X(e), !0;
1001
1004
  let r = J(v ? v(e) : e.nodeName);
1002
- if (Q(T.uponSanitizeElement, e, {
1005
+ if (P = gn(T.uponSanitizeElement, P, mt, St), $(T.uponSanitizeElement, e, {
1003
1006
  tagName: r,
1004
- allowedTags: A
1005
- }), e !== n && g(e) === null) return !0;
1006
- if (mn(e, r)) return Y(e), !0;
1007
- if (R[r] || !(B.tagCheck instanceof Function && B.tagCheck(r)) && !A[r]) {
1008
- let t = hn(e, r);
1009
- return t === !1 && Q(T.afterSanitizeElements, e, null), t;
1007
+ allowedTags: P
1008
+ }), e !== n && g(e) === null) return Mt && Z(e), !0;
1009
+ if (mn(e, r)) return X(e), !0;
1010
+ if (R[r] || !(z.tagCheck instanceof Function && z.tagCheck(r)) && !P[r]) {
1011
+ let t = hn(e, r, n);
1012
+ return t === !1 && $(T.afterSanitizeElements, e, null), t;
1010
1013
  }
1011
- if ((_ ? _(e) : e.nodeType) === N.element && !nn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && D(st, e.innerHTML)) return Y(e), !0;
1012
- if (V && e.nodeType === N.text) {
1014
+ if ((_ ? _(e) : e.nodeType) === N.element && !nn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && O(st, e.innerHTML)) return X(e), !0;
1015
+ if (B && e.nodeType === N.text) {
1013
1016
  let n = un(e.textContent);
1014
1017
  e.textContent !== n && (be(t.removed, { element: e.cloneNode() }), e.textContent = n);
1015
1018
  }
1016
- return Q(T.afterSanitizeElements, e, null), !1;
1017
- }, gn = function(e, t, r) {
1018
- if (z[t] || H && t === "patchsrc" || H && t === "for" && e !== "label" && e !== "output" || Et && (t === "id" || t === "name") && (r in n || r in Jt)) return !1;
1019
- let i = F[t] || B.attributeCheck instanceof Function && B.attributeCheck(t, e);
1020
- if (!(ht && D(Ae, t)) && !(mt && D(je, t))) {
1019
+ return $(T.afterSanitizeElements, e, null), !1;
1020
+ }, vn = function(e, t, r) {
1021
+ if (ht[t] || V && t === "patchsrc" || V && t === "for" && e !== "label" && e !== "output" || Ot && (t === "id" || t === "name") && (r in n || r in Jt)) return !1;
1022
+ let i = F[t] || z.attributeCheck instanceof Function && z.attributeCheck(t, e);
1023
+ if (!(_t && O(Ae, t)) && !(gt && O(je, t))) {
1021
1024
  if (!i) {
1022
- if (!(vn(e) && (L.tagNameCheck instanceof RegExp && D(L.tagNameCheck, e) || L.tagNameCheck instanceof Function && L.tagNameCheck(e)) && (L.attributeNameCheck instanceof RegExp && D(L.attributeNameCheck, t) || L.attributeNameCheck instanceof Function && L.attributeNameCheck(t, e)) || t === "is" && L.allowCustomizedBuiltInElements && (L.tagNameCheck instanceof RegExp && D(L.tagNameCheck, r) || L.tagNameCheck instanceof Function && L.tagNameCheck(r)))) return !1;
1023
- } else if (!Pt[t] && !D(Fe, Ee(r, Ne, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && De(r, "data:") === 0 && Mt[e]) && !(gt && !D(Me, Ee(r, Ne, ""))) && r) return !1;
1025
+ if (!(bn(e) && (L.tagNameCheck instanceof RegExp && O(L.tagNameCheck, e) || L.tagNameCheck instanceof Function && L.tagNameCheck(e)) && (L.attributeNameCheck instanceof RegExp && O(L.attributeNameCheck, t) || L.attributeNameCheck instanceof Function && L.attributeNameCheck(t, e)) || t === "is" && L.allowCustomizedBuiltInElements && (L.tagNameCheck instanceof RegExp && O(L.tagNameCheck, r) || L.tagNameCheck instanceof Function && L.tagNameCheck(r)))) return !1;
1026
+ } else if (!It[t] && !O(Fe, Te(r, k, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && Ee(r, "data:") === 0 && Pt[e]) && !(vt && !O(Me, Te(r, k, ""))) && r) return !1;
1024
1027
  }
1025
1028
  return !0;
1026
- }, _n = k({}, [
1029
+ }, yn = A({}, [
1027
1030
  "annotation-xml",
1028
1031
  "color-profile",
1029
1032
  "font-face",
@@ -1032,24 +1035,25 @@ function ft() {
1032
1035
  "font-face-src",
1033
1036
  "font-face-uri",
1034
1037
  "missing-glyph"
1035
- ]), vn = function(e) {
1036
- return !_n[Ce(e)] && D(O, e);
1037
- }, yn = function(e, t, n, r) {
1038
- if (y && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
1039
- case "TrustedHTML": return ie(r);
1040
- case "TrustedScriptURL": return ae(r);
1038
+ ]), bn = function(e) {
1039
+ return !yn[Se(e)] && O(Pe, e);
1040
+ }, xn = function(e, t, n, r) {
1041
+ if (b && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
1042
+ case "TrustedHTML": return ae(r);
1043
+ case "TrustedScriptURL": return oe(r);
1041
1044
  }
1042
1045
  return r;
1043
- }, bn = function(e, n, r, i) {
1046
+ }, Sn = function(e, n, r, i) {
1044
1047
  try {
1045
- r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), Z(e) ? Y(e) : ye(t.removed);
1048
+ r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), dn(e) ? X(e) : ye(t.removed);
1046
1049
  } catch {
1047
- X(n, e);
1050
+ an(n, e);
1048
1051
  }
1049
- }, xn = function(e) {
1050
- Q(T.beforeSanitizeAttributes, e, null);
1052
+ }, Cn = function(e) {
1053
+ $(T.beforeSanitizeAttributes, e, null);
1051
1054
  let t = e.attributes;
1052
- if (!t || Z(e)) return;
1055
+ if (!t || dn(e)) return;
1056
+ F = gn(T.uponSanitizeAttribute, F, I, Ct);
1053
1057
  let n = {
1054
1058
  attrName: "",
1055
1059
  attrValue: "",
@@ -1058,40 +1062,40 @@ function ft() {
1058
1062
  forceKeepAttr: void 0
1059
1063
  }, r = t.length, i = J(e.nodeName);
1060
1064
  for (; r--;) {
1061
- let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = J(o), u = c, d = o === "value" ? u : Oe(u);
1062
- if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, Q(T.uponSanitizeAttribute, e, n), d = n.attrValue, Dt && (l === "id" || l === "name") && De(d, Ot) !== 0 && (X(o, e), d = Ot + d), H && D(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
1063
- X(o, e);
1065
+ let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = J(o), u = c, d = o === "value" ? u : De(u);
1066
+ if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, $(T.uponSanitizeAttribute, e, n), d = n.attrValue, kt && (l === "id" || l === "name") && Ee(d, At) !== 0 && (an(o, e), d = At + d), V && O(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
1067
+ an(o, e);
1064
1068
  continue;
1065
1069
  }
1066
- if (l === "attributename" && Te(d, "href")) {
1067
- X(o, e);
1070
+ if (l === "attributename" && we(d, "href")) {
1071
+ an(o, e);
1068
1072
  continue;
1069
1073
  }
1070
1074
  if (!n.forceKeepAttr) {
1071
1075
  if (!n.keepAttr) {
1072
- X(o, e);
1076
+ an(o, e);
1073
1077
  continue;
1074
1078
  }
1075
- if (!_t && D(ct, d)) {
1076
- X(o, e);
1079
+ if (!yt && O(ct, d)) {
1080
+ an(o, e);
1077
1081
  continue;
1078
1082
  }
1079
- if (V && (d = un(d)), !gn(i, l, d)) {
1080
- X(o, e);
1083
+ if (B && (d = un(d)), !vn(i, l, d)) {
1084
+ an(o, e);
1081
1085
  continue;
1082
1086
  }
1083
- d = yn(i, l, s, d), d !== u && bn(e, o, s, d);
1087
+ d = xn(i, l, s, d), d !== u && Sn(e, o, s, d);
1084
1088
  }
1085
1089
  }
1086
- Q(T.afterSanitizeAttributes, e, null);
1087
- }, Sn = function(e) {
1090
+ $(T.afterSanitizeAttributes, e, null);
1091
+ }, wn = function(e) {
1088
1092
  let t = null, n = ln(e);
1089
- for (Q(T.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (Q(T.uponSanitizeShadowNode, t, null), $(t, e), xn(t), fn(t.content) && Sn(t.content), (_ ? _(t) : t.nodeType) === N.element) {
1093
+ for ($(T.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(T.uponSanitizeShadowNode, t, null), _n(t, e), Cn(t), fn(t.content) && wn(t.content), (_ ? _(t) : t.nodeType) === N.element) {
1090
1094
  let e = ee(t);
1091
- fn(e) && (Cn(e), Sn(e));
1095
+ fn(e) && (Tn(e), wn(e));
1092
1096
  }
1093
- Q(T.afterSanitizeShadowDOM, e, null);
1094
- }, Cn = function(e) {
1097
+ $(T.afterSanitizeShadowDOM, e, null);
1098
+ }, Tn = function(e) {
1095
1099
  let t = [{
1096
1100
  node: e,
1097
1101
  shadow: null
@@ -1099,7 +1103,7 @@ function ft() {
1099
1103
  for (; t.length > 0;) {
1100
1104
  let e = t.pop();
1101
1105
  if (e.shadow) {
1102
- Sn(e.shadow);
1106
+ wn(e.shadow);
1103
1107
  continue;
1104
1108
  }
1105
1109
  let n = e.node, r = (_ ? _(n) : n.nodeType) === N.element, i = h(n);
@@ -1131,60 +1135,61 @@ function ft() {
1131
1135
  };
1132
1136
  return t.sanitize = function(e) {
1133
1137
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
1134
- if (zt = !e, zt && (e = "<!-->"), typeof e != "string" && !pn(e) && (e = Ie(e), typeof e != "string")) throw Pe("dirty is not a string, aborting");
1138
+ if (Bt = !e, Bt && (e = "<!-->"), typeof e != "string" && !pn(e) && (e = Ie(e), typeof e != "string")) throw Ne("dirty is not a string, aborting");
1135
1139
  if (!t.isSupported) return e;
1136
- yt ? (A = bt, F = xt) : Xt(n), (T.uponSanitizeElement.length > 0 || T.uponSanitizeAttribute.length > 0) && (A = j(A)), T.uponSanitizeAttribute.length > 0 && (F = j(F)), t.removed = [];
1137
- let c = At && typeof e != "string" && pn(e);
1140
+ xt ? (P = St, F = Ct) : Xt(n), (T.uponSanitizeElement.length > 0 || T.uponSanitizeAttribute.length > 0) && (P = j(P)), T.uponSanitizeAttribute.length > 0 && (F = j(F)), t.removed = [];
1141
+ let c = Mt && typeof e != "string" && pn(e);
1138
1142
  if (c) {
1139
1143
  sn(e);
1140
1144
  let t = v ? v(e) : e.nodeName;
1141
1145
  if (typeof t == "string") {
1142
1146
  let n = J(t);
1143
- if (!A[n] || R[n]) throw rn(e), Pe("root node is forbidden and cannot be sanitized in-place");
1147
+ if (!P[n] || R[n]) throw rn(e), Ne("root node is forbidden and cannot be sanitized in-place");
1144
1148
  }
1145
- if (Z(e)) throw rn(e), Pe("root node is clobbered and cannot be sanitized in-place");
1149
+ if (dn(e)) throw rn(e), Ne("root node is clobbered and cannot be sanitized in-place");
1146
1150
  try {
1147
- Cn(e);
1151
+ Tn(e);
1148
1152
  } catch (t) {
1149
1153
  throw rn(e), t;
1150
1154
  }
1151
- } else if (pn(e)) i = cn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === N.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Cn(a);
1155
+ } else if (pn(e)) i = cn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === N.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Tn(a);
1152
1156
  else {
1153
- if (!Ct && !V && !vt && e.indexOf("<") === -1) return y && Tt ? ie(e) : e;
1154
- if (i = cn(e), !i) return Ct ? null : Tt ? b : "";
1157
+ if (!Tt && !B && !bt && e.indexOf("<") === -1) return b && Dt ? ae(e) : e;
1158
+ if (i = cn(e), !i) return Tt ? null : Dt ? x : "";
1155
1159
  }
1156
- i && St && Y(i.firstChild);
1157
- let l = c ? e : i, u = ln(l);
1160
+ i && wt && X(i.firstChild);
1161
+ let l = c ? e : i;
1158
1162
  try {
1159
- for (; o = u.nextNode();) $(o, l), xn(o), fn(o.content) && Sn(o.content);
1163
+ let e = ln(l);
1164
+ for (; o = e.nextNode();) _n(o, l), Cn(o), fn(o.content) && wn(o.content);
1160
1165
  } catch (n) {
1161
1166
  throw c && (rn(e), _e(t.removed, (e) => {
1162
- e.element && on(e.element);
1167
+ e.element && Z(e.element);
1163
1168
  })), n;
1164
1169
  }
1165
1170
  if (c) return _e(t.removed, (e) => {
1166
- e.element && on(e.element);
1167
- }), V && dn(e), e;
1168
- if (Ct) {
1169
- if (V && dn(i), wt) for (s = de.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
1171
+ e.element && Z(e.element);
1172
+ }), B && Q(e), e;
1173
+ if (Tt) {
1174
+ if (B && Q(i), Et) for (s = fe.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
1170
1175
  else s = i;
1171
- return (F.shadowroot || F.shadowrootmode) && (s = pe.call(r, s, !0)), s;
1176
+ return (F.shadowroot || F.shadowrootmode) && (s = he.call(r, s, !0)), s;
1172
1177
  }
1173
- let d = vt ? i.outerHTML : i.innerHTML;
1174
- return vt && A["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && D(rt, i.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + d), V && (d = un(d)), y && Tt ? ie(d) : d;
1178
+ let u = bt ? i.outerHTML : i.innerHTML;
1179
+ return bt && P["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && O(rt, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), B && (u = un(u)), b && Dt ? ae(u) : u;
1175
1180
  }, t.setConfig = function() {
1176
1181
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1177
- Xt(e), yt = !0, bt = A, xt = F;
1182
+ Xt(e), xt = !0, St = P, Ct = F;
1178
1183
  }, t.clearConfig = function() {
1179
- qt = null, yt = !1, bt = null, xt = null, y = x, b = "";
1184
+ Y = null, xt = !1, St = null, Ct = null, b = ne, x = "";
1180
1185
  }, t.isValidAttribute = function(e, t, n) {
1181
- qt || Xt({});
1186
+ Y || Xt({});
1182
1187
  let r = J(e), i = J(t);
1183
- return gn(r, i, n);
1188
+ return vn(r, i, n);
1184
1189
  }, t.addHook = function(e, t) {
1185
- typeof t == "function" && E(T, e) && be(T[e], t);
1190
+ typeof t == "function" && D(T, e) && be(T[e], t);
1186
1191
  }, t.removeHook = function(e, t) {
1187
- if (E(T, e)) {
1192
+ if (D(T, e)) {
1188
1193
  if (t !== void 0) {
1189
1194
  let n = ve(T[e], t);
1190
1195
  return n === -1 ? void 0 : xe(T[e], n, 1)[0];
@@ -1192,31 +1197,45 @@ function ft() {
1192
1197
  return ye(T[e]);
1193
1198
  }
1194
1199
  }, t.removeHooks = function(e) {
1195
- E(T, e) && (T[e] = []);
1200
+ D(T, e) && (T[e] = []);
1196
1201
  }, t.removeAllHooks = function() {
1197
1202
  T = dt();
1198
1203
  }, t;
1199
1204
  }
1200
- var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {}) => {
1201
- let i = {
1202
- depth: n,
1203
- clobber: r
1204
- };
1205
- return Array.isArray(t) && !Array.isArray(e) ? (t.forEach((t) => F(e, t, i)), e) : Array.isArray(t) && Array.isArray(e) ? (t.forEach((t) => {
1205
+ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
1206
+ let r = { depth: n };
1207
+ if (Array.isArray(t) && !Array.isArray(e)) return t.forEach((t) => mt(e, t, r)), e;
1208
+ if (Array.isArray(t) && Array.isArray(e)) return t.forEach((t) => {
1206
1209
  e.includes(t) || e.push(t);
1207
- }), 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) => {
1208
- 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] = F(e[i], t[i], {
1209
- depth: n - 1,
1210
- clobber: r
1211
- })) : (r || typeof e[i] != "object" && typeof t[i] != "object") && (e[i] = t[i]);
1212
- }), e);
1213
- }, "assignWithDepth"), I = F, L = "#ffffff", R = "#f2f2f2", z = /* @__PURE__ */ e((e, t) => t ? x(e, {
1210
+ }), e;
1211
+ if (e == null || n <= 0) return typeof e == "object" && e && typeof t == "object" ? Object.assign(e, t) : t;
1212
+ if (t != null && typeof e == "object" && typeof t == "object") {
1213
+ let r = e;
1214
+ Object.entries(t).forEach(([t, i]) => {
1215
+ if (typeof i == "object") {
1216
+ if (i === null) return;
1217
+ Object.hasOwn(e, t) || Object.defineProperty(e, t, {
1218
+ value: void 0,
1219
+ writable: !0,
1220
+ enumerable: !0,
1221
+ configurable: !0
1222
+ }), r[t] === void 0 && (r[t] = Array.isArray(i) ? [] : {}), typeof r[t] == "object" && (r[t] = mt(r[t], i, { depth: n - 1 }));
1223
+ } else typeof r[t] != "object" && (Object.hasOwn(e, t) ? r[t] = i : Object.defineProperty(e, t, {
1224
+ value: i,
1225
+ writable: !0,
1226
+ enumerable: !0,
1227
+ configurable: !0
1228
+ }));
1229
+ });
1230
+ }
1231
+ return e;
1232
+ }, "assignWithDepth"), F = mt, I = "#ffffff", L = "#f2f2f2", R = /* @__PURE__ */ e((e, t) => t ? x(e, {
1214
1233
  s: -40,
1215
1234
  l: 10
1216
1235
  }) : x(e, {
1217
1236
  s: -40,
1218
1237
  l: -10
1219
- }), "mkBorder"), B = class {
1238
+ }), "mkBorder"), ht = class {
1220
1239
  static {
1221
1240
  e(this, "Theme");
1222
1241
  }
@@ -1227,7 +1246,7 @@ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } =
1227
1246
  if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
1228
1247
  h: 180,
1229
1248
  l: 5
1230
- }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || y(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.vertLineColor = this.vertLineColor || "navy", this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal", this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.darkMode ? (this.rowOdd = this.rowOdd || b(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || b(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || y(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || y(this.mainBkg, 5)), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || this.tertiaryColor, this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
1249
+ }), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || y(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.vertLineColor = this.vertLineColor || "navy", this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal", this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.darkMode ? (this.rowOdd = this.rowOdd || b(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || b(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || y(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || y(this.mainBkg, 5)), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || this.tertiaryColor, this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
1231
1250
  h: 210,
1232
1251
  l: 150
1233
1252
  }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
@@ -1356,7 +1375,7 @@ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } =
1356
1375
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1357
1376
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1358
1377
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1359
- }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
1378
+ }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
1360
1379
  }
1361
1380
  calculate(e) {
1362
1381
  if (typeof e != "object") {
@@ -1370,15 +1389,15 @@ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } =
1370
1389
  this[t] = e[t];
1371
1390
  });
1372
1391
  }
1373
- }, mt = /* @__PURE__ */ e((e) => {
1374
- let t = new B();
1392
+ }, z = /* @__PURE__ */ e((e) => {
1393
+ let t = new ht();
1375
1394
  return t.calculate(e), t;
1376
- }, "getThemeVariables"), ht = class {
1395
+ }, "getThemeVariables"), gt = class {
1377
1396
  static {
1378
1397
  e(this, "Theme");
1379
1398
  }
1380
1399
  constructor() {
1381
- this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = g(255, 255, 255, .25), this.arrowheadColor = "calculated", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.labelBackground = "#181818", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#F9FFFE", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "calculated", this.activationBkgColor = "calculated", this.sequenceNumberColor = "black", this.clusterBkg = "#302F3D", this.sectionBkgColor = b("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = b(this.sectionBkgColor, 10), this.taskBorderColor = g(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = g(255, 255, 255, 50), this.activeTaskBkgColor = "#81B1DB", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "grey", this.critBorderColor = "#E83737", this.critBkgColor = "#E83737", this.taskTextDarkColor = "calculated", this.todayLineColor = "#DB5757", this.vertLineColor = "#00BFFF", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.rowOdd = this.rowOdd || y(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || b(this.mainBkg, 10), this.labelColor = "calculated", this.errorBkgColor = "#a44141", this.errorTextColor = "#ddd", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))", this.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal";
1400
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = R(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = g(255, 255, 255, .25), this.arrowheadColor = "calculated", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.labelBackground = "#181818", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#F9FFFE", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "calculated", this.activationBkgColor = "calculated", this.sequenceNumberColor = "black", this.clusterBkg = "#302F3D", this.sectionBkgColor = b("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = b(this.sectionBkgColor, 10), this.taskBorderColor = g(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = g(255, 255, 255, 50), this.activeTaskBkgColor = "#81B1DB", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "grey", this.critBorderColor = "#E83737", this.critBkgColor = "#E83737", this.taskTextDarkColor = "calculated", this.todayLineColor = "#DB5757", this.vertLineColor = "#00BFFF", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.rowOdd = this.rowOdd || y(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || b(this.mainBkg, 10), this.labelColor = "calculated", this.errorBkgColor = "#a44141", this.errorTextColor = "#ddd", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))", this.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal";
1382
1401
  }
1383
1402
  updateColors() {
1384
1403
  this.secondBkg = y(this.mainBkg, 16), this.lineColor = this.mainContrastColor, this.arrowheadColor = this.mainContrastColor, this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.edgeLabelBackground = y(this.labelBackground, 25), this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.actorTextColor = this.mainContrastColor, this.actorLineColor = this.actorBorder, this.signalColor = this.mainContrastColor, this.signalTextColor = this.mainContrastColor, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.mainContrastColor, this.loopTextColor = this.mainContrastColor, this.noteBorderColor = this.secondaryBorderColor, this.noteBkgColor = this.secondBkg, this.noteTextColor = this.secondaryTextColor, this.activationBorderColor = this.border1, this.activationBkgColor = this.secondBkg, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.background, this.taskBkgColor = y(this.mainBkg, 23), this.taskTextColor = this.darkTextColor, this.taskTextLightColor = this.mainContrastColor, this.taskTextOutsideColor = this.taskTextLightColor, this.gridColor = this.mainContrastColor, this.doneTaskBkgColor = this.mainContrastColor, this.taskTextDarkColor = S(this.doneTaskBkgColor), this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#555", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = "#f4f4f4", this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(this.secondaryColor, { h: 128 }), this.cScale1 = this.cScale1 || "#0b0000", this.cScale2 = this.cScale2 || "#4d1037", this.cScale3 = this.cScale3 || "#3f5258", this.cScale4 = this.cScale4 || "#4f2f1b", this.cScale5 = this.cScale5 || "#6e0a0a", this.cScale6 = this.cScale6 || "#3b0048", this.cScale7 = this.cScale7 || "#995a01", this.cScale8 = this.cScale8 || "#154706", this.cScale9 = this.cScale9 || "#161722", this.cScale10 = this.cScale10 || "#00296f", this.cScale11 = this.cScale11 || "#01629c", this.cScale12 = this.cScale12 || "#010029", this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 });
@@ -1496,15 +1515,15 @@ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } =
1496
1515
  this[t] = e[t];
1497
1516
  });
1498
1517
  }
1499
- }, gt = /* @__PURE__ */ e((e) => {
1500
- let t = new ht();
1518
+ }, _t = /* @__PURE__ */ e((e) => {
1519
+ let t = new gt();
1501
1520
  return t.calculate(e), t;
1502
- }, "getThemeVariables"), _t = class {
1521
+ }, "getThemeVariables"), vt = class {
1503
1522
  static {
1504
1523
  e(this, "Theme");
1505
1524
  }
1506
1525
  constructor() {
1507
- this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = x(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = z(this.primaryColor, this.darkMode), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.primaryBorderColor = z(this.primaryColor, this.darkMode), this.border2 = "#aaaa33", this.arrowheadColor = "#333333", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.labelBackground = "rgba(232,232,232, 0.8)", this.textColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.clusterBkg = "#FBFBFF", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = this.taskTextDarkColor, this.taskTextClickableColor = "calculated", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBorderColor = "calculated", this.critBkgColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.sectionBkgColor = g(102, 102, 255, .49), this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#fff400", this.taskBorderColor = "#534fbc", this.taskBkgColor = "#8a90dd", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "#534fbc", this.activeTaskBkgColor = "#bfc7ff", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.vertLineColor = "navy", this.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.rowOdd = "calculated", this.rowEven = "calculated", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !1, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))", this.updateColors();
1526
+ this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = x(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = R(this.primaryColor, this.darkMode), this.secondaryBorderColor = R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = R(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.primaryBorderColor = R(this.primaryColor, this.darkMode), this.border2 = "#aaaa33", this.arrowheadColor = "#333333", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.labelBackground = "rgba(232,232,232, 0.8)", this.textColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.clusterBkg = "#FBFBFF", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = this.taskTextDarkColor, this.taskTextClickableColor = "calculated", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBorderColor = "calculated", this.critBkgColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.sectionBkgColor = g(102, 102, 255, .49), this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#fff400", this.taskBorderColor = "#534fbc", this.taskBkgColor = "#8a90dd", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "#534fbc", this.activeTaskBkgColor = "#bfc7ff", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.vertLineColor = "navy", this.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.rowOdd = "calculated", this.rowEven = "calculated", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !1, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))", this.updateColors();
1508
1527
  }
1509
1528
  updateColors() {
1510
1529
  this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || b(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || b(this.tertiaryColor, 40);
@@ -1631,7 +1650,7 @@ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } =
1631
1650
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1632
1651
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1633
1652
  plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
1634
- }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.labelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || b(S(this.git0), 25), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || S(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || S(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
1653
+ }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.labelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || b(S(this.git0), 25), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || S(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || S(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
1635
1654
  }
1636
1655
  calculate(e) {
1637
1656
  if (Object.keys(this).forEach((e) => {
@@ -1647,15 +1666,15 @@ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } =
1647
1666
  this[t] = e[t];
1648
1667
  });
1649
1668
  }
1650
- }, V = /* @__PURE__ */ e((e) => {
1651
- let t = new _t();
1669
+ }, yt = /* @__PURE__ */ e((e) => {
1670
+ let t = new vt();
1652
1671
  return t.calculate(e), t;
1653
- }, "getThemeVariables"), H = class {
1672
+ }, "getThemeVariables"), B = class {
1654
1673
  static {
1655
1674
  e(this, "Theme");
1656
1675
  }
1657
1676
  constructor() {
1658
- this.background = "#f4f4f4", this.primaryColor = "#cde498", this.secondaryColor = "#cdffb2", this.background = "white", this.mainBkg = "#cde498", this.secondBkg = "#cdffb2", this.lineColor = "green", this.border1 = "#13540c", this.border2 = "#6eaa49", this.arrowheadColor = "green", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.tertiaryColor = y("#cde498", 10), this.primaryBorderColor = z(this.primaryColor, this.darkMode), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.primaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#333", this.edgeLabelBackground = "#e8e8e8", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "#333", this.signalTextColor = "#333", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "#326932", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "#6eaa49", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#6eaa49", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "#487e3a", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.vertLineColor = "#00BFFF", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))";
1677
+ this.background = "#f4f4f4", this.primaryColor = "#cde498", this.secondaryColor = "#cdffb2", this.background = "white", this.mainBkg = "#cde498", this.secondBkg = "#cdffb2", this.lineColor = "green", this.border1 = "#13540c", this.border2 = "#6eaa49", this.arrowheadColor = "green", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.tertiaryColor = y("#cde498", 10), this.primaryBorderColor = R(this.primaryColor, this.darkMode), this.secondaryBorderColor = R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = R(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.primaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#333", this.edgeLabelBackground = "#e8e8e8", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "#333", this.signalTextColor = "#333", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "#326932", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "#6eaa49", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#6eaa49", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "#487e3a", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.vertLineColor = "#00BFFF", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))";
1659
1678
  }
1660
1679
  updateColors() {
1661
1680
  this.actorBorder = b(this.mainBkg, 20), this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || b(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || b(this.tertiaryColor, 40);
@@ -1792,7 +1811,7 @@ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } =
1792
1811
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1793
1812
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1794
1813
  plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
1795
- }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || S(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || S(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
1814
+ }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || S(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || S(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
1796
1815
  }
1797
1816
  calculate(e) {
1798
1817
  if (typeof e != "object") {
@@ -1806,15 +1825,15 @@ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } =
1806
1825
  this[t] = e[t];
1807
1826
  });
1808
1827
  }
1809
- }, vt = /* @__PURE__ */ e((e) => {
1810
- let t = new H();
1828
+ }, V = /* @__PURE__ */ e((e) => {
1829
+ let t = new B();
1811
1830
  return t.calculate(e), t;
1812
- }, "getThemeVariables"), yt = class {
1831
+ }, "getThemeVariables"), bt = class {
1813
1832
  static {
1814
1833
  e(this, "Theme");
1815
1834
  }
1816
1835
  constructor() {
1817
- this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = y(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = z(this.primaryColor, this.darkMode), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.mainBkg = "#eee", this.secondBkg = "calculated", this.lineColor = "#666", this.border1 = "#999", this.border2 = "calculated", this.note = "#ffa", this.text = "#333", this.critical = "#d42", this.done = "#bbb", this.arrowheadColor = "#333333", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "white", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = this.actorBorder, this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "calculated", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBkgColor = "calculated", this.critBorderColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal", this.rowOdd = this.rowOdd || y(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || "#f4f4f4", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))";
1836
+ this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = y(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = R(this.primaryColor, this.darkMode), this.secondaryBorderColor = R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = R(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.mainBkg = "#eee", this.secondBkg = "calculated", this.lineColor = "#666", this.border1 = "#999", this.border2 = "calculated", this.note = "#ffa", this.text = "#333", this.critical = "#d42", this.done = "#bbb", this.arrowheadColor = "#333333", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "white", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = this.actorBorder, this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "calculated", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBkgColor = "calculated", this.critBorderColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal", this.rowOdd = this.rowOdd || y(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || "#f4f4f4", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))";
1818
1837
  }
1819
1838
  updateColors() {
1820
1839
  this.secondBkg = y(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = y(this.border1, 23), this.actorBkg = this.mainBkg, this.actorTextColor = this.text, this.actorLineColor = this.actorBorder, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.signalColor = this.text, this.signalTextColor = this.text, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.text, this.loopTextColor = this.text, this.noteBorderColor = "#999", this.noteBkgColor = "#666", this.noteTextColor = "#fff", this.cScale0 = this.cScale0 || "#555", this.cScale1 = this.cScale1 || "#F4F4F4", this.cScale2 = this.cScale2 || "#555", this.cScale3 = this.cScale3 || "#BBB", this.cScale4 = this.cScale4 || "#777", this.cScale5 = this.cScale5 || "#999", this.cScale6 = this.cScale6 || "#DDD", this.cScale7 = this.cScale7 || "#FFF", this.cScale8 = this.cScale8 || "#DDD", this.cScale9 = this.cScale9 || "#BBB", this.cScale10 = this.cScale10 || "#999", this.cScale11 = this.cScale11 || "#777";
@@ -1904,7 +1923,7 @@ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } =
1904
1923
  annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1905
1924
  annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1906
1925
  annotationFill: this.wardley?.annotationFill || this.background
1907
- }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = b(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || x(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || x(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || x(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || x(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || x(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || this.labelTextColor, this.gitBranchLabel0 = this.branchLabelColor, this.gitBranchLabel1 = "white", this.gitBranchLabel2 = this.branchLabelColor, this.gitBranchLabel3 = "white", this.gitBranchLabel4 = this.branchLabelColor, this.gitBranchLabel5 = this.branchLabelColor, this.gitBranchLabel6 = this.branchLabelColor, this.gitBranchLabel7 = this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
1926
+ }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = b(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || x(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || x(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || x(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || x(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || x(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || this.labelTextColor, this.gitBranchLabel0 = this.branchLabelColor, this.gitBranchLabel1 = "white", this.gitBranchLabel2 = this.branchLabelColor, this.gitBranchLabel3 = "white", this.gitBranchLabel4 = this.branchLabelColor, this.gitBranchLabel5 = this.branchLabelColor, this.gitBranchLabel6 = this.branchLabelColor, this.gitBranchLabel7 = this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
1908
1927
  }
1909
1928
  calculate(e) {
1910
1929
  if (typeof e != "object") {
@@ -1918,21 +1937,21 @@ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } =
1918
1937
  this[t] = e[t];
1919
1938
  });
1920
1939
  }
1921
- }, bt = /* @__PURE__ */ e((e) => {
1922
- let t = new yt();
1940
+ }, xt = /* @__PURE__ */ e((e) => {
1941
+ let t = new bt();
1923
1942
  return t.calculate(e), t;
1924
- }, "getThemeVariables"), xt = class {
1943
+ }, "getThemeVariables"), St = class {
1925
1944
  static {
1926
1945
  e(this, "Theme");
1927
1946
  }
1928
1947
  constructor() {
1929
- this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 3, this.strokeWidth = 2, this.primaryBorderColor = z(this.primaryColor, this.darkMode), this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#000000", this.stateBorder = "#000000", this.useGradient = !0, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));", this.tertiaryColor = "#ffffff", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal";
1948
+ 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 = R(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";
1930
1949
  }
1931
1950
  updateColors() {
1932
1951
  this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
1933
1952
  h: 180,
1934
1953
  l: 5
1935
- }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
1954
+ }), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
1936
1955
  let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
1937
1956
  h: 180,
1938
1957
  l: 5
@@ -2010,7 +2029,7 @@ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } =
2010
2029
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2011
2030
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2012
2031
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2013
- }, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
2032
+ }, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
2014
2033
  }
2015
2034
  calculate(e) {
2016
2035
  if (typeof e != "object") {
@@ -2024,21 +2043,21 @@ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } =
2024
2043
  this[t] = e[t];
2025
2044
  });
2026
2045
  }
2027
- }, St = /* @__PURE__ */ e((e) => {
2028
- let t = new xt();
2046
+ }, Ct = /* @__PURE__ */ e((e) => {
2047
+ let t = new St();
2029
2048
  return t.calculate(e), t;
2030
- }, "getThemeVariables"), Ct = class {
2049
+ }, "getThemeVariables"), wt = class {
2031
2050
  static {
2032
2051
  e(this, "Theme");
2033
2052
  }
2034
2053
  constructor() {
2035
- this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = g(255, 255, 255, .25), this.arrowheadColor = S(this.background), this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#181818", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 3, this.strokeWidth = 1, this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.useGradient = !0, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal";
2054
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = R(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = g(255, 255, 255, .25), this.arrowheadColor = S(this.background), this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#181818", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 3, this.strokeWidth = 1, this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.useGradient = !0, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal";
2036
2055
  }
2037
2056
  updateColors() {
2038
2057
  if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2039
2058
  h: 180,
2040
2059
  l: 5
2041
- }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || y(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
2060
+ }), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || y(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
2042
2061
  h: 210,
2043
2062
  l: 150
2044
2063
  }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
@@ -2111,7 +2130,7 @@ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } =
2111
2130
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2112
2131
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2113
2132
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2114
- }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || "#0b0000", this.git1 = this.git1 || "#4d1037", this.git2 = this.git2 || "#3f5258", this.git3 = this.git3 || "#4f2f1b", this.git4 = this.git4 || "#6e0a0a", this.git5 = this.git5 || "#3b0048", this.git6 = this.git6 || "#995a01", this.git7 = this.git7 || "#154706", this.gitDarkMode = !0, this.gitDarkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
2133
+ }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || "#0b0000", this.git1 = this.git1 || "#4d1037", this.git2 = this.git2 || "#3f5258", this.git3 = this.git3 || "#4f2f1b", this.git4 = this.git4 || "#6e0a0a", this.git5 = this.git5 || "#3b0048", this.git6 = this.git6 || "#995a01", this.git7 = this.git7 || "#154706", this.gitDarkMode = !0, this.gitDarkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
2115
2134
  }
2116
2135
  calculate(e) {
2117
2136
  if (typeof e != "object") {
@@ -2125,21 +2144,21 @@ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } =
2125
2144
  this[t] = e[t];
2126
2145
  });
2127
2146
  }
2128
- }, wt = /* @__PURE__ */ e((e) => {
2129
- let t = new Ct();
2147
+ }, Tt = /* @__PURE__ */ e((e) => {
2148
+ let t = new wt();
2130
2149
  return t.calculate(e), t;
2131
- }, "getThemeVariables"), Tt = class {
2150
+ }, "getThemeVariables"), Et = class {
2132
2151
  static {
2133
2152
  e(this, "Theme");
2134
2153
  }
2135
2154
  constructor() {
2136
- this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#28253D", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.primaryBorderColor = z("#28253D", this.darkMode), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#28253D", this.stateBorder = "#28253D", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.tertiaryColor = "#ffffff", this.clusterBkg = "#F9F9FB", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.actorBorder = "#28253D", this.filterColor = "#000000";
2155
+ 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 = R("#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";
2137
2156
  }
2138
2157
  updateColors() {
2139
2158
  this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2140
2159
  h: 180,
2141
2160
  l: 5
2142
- }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.noteFontWeight = 600, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
2161
+ }), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.noteFontWeight = 600, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
2143
2162
  let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
2144
2163
  h: 180,
2145
2164
  l: 5
@@ -2216,7 +2235,7 @@ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } =
2216
2235
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2217
2236
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2218
2237
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2219
- }, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#FFFFFF", this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
2238
+ }, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#FFFFFF", this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
2220
2239
  }
2221
2240
  calculate(e) {
2222
2241
  if (typeof e != "object") {
@@ -2230,21 +2249,21 @@ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } =
2230
2249
  this[t] = e[t];
2231
2250
  });
2232
2251
  }
2233
- }, Et = /* @__PURE__ */ e((e) => {
2234
- let t = new Tt();
2252
+ }, Dt = /* @__PURE__ */ e((e) => {
2253
+ let t = new Et();
2235
2254
  return t.calculate(e), t;
2236
- }, "getThemeVariables"), Dt = class {
2255
+ }, "getThemeVariables"), Ot = class {
2237
2256
  static {
2238
2257
  e(this, "Theme");
2239
2258
  }
2240
2259
  constructor() {
2241
- this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = g(255, 255, 255, .25), this.arrowheadColor = S(this.background), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#111113", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.noteBkgColor = this.noteBkgColor ?? "#FEF9C3", this.noteTextColor = this.noteTextColor ?? "#28253D", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#FFFFFF", this.stateBorder = "#FFFFFF", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.clusterBkg = "#1E1A2E", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.filterColor = "#FFFFFF";
2260
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = R(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = g(255, 255, 255, .25), this.arrowheadColor = S(this.background), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#111113", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.noteBkgColor = this.noteBkgColor ?? "#FEF9C3", this.noteTextColor = this.noteTextColor ?? "#28253D", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#FFFFFF", this.stateBorder = "#FFFFFF", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.clusterBkg = "#1E1A2E", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.filterColor = "#FFFFFF";
2242
2261
  }
2243
2262
  updateColors() {
2244
2263
  if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2245
2264
  h: 180,
2246
2265
  l: 5
2247
- }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = "#FFFFFF", this.signalColor = "#FFFFFF", this.labelBoxBorderColor = "#BDBCCC", this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || y(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.compositeBackground = "#16141F", this.altBackground = "#16141F", this.compositeTitleBackground = "#16141F", this.stateEdgeLabelBackground = "#16141F", this.fontWeight = 600, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
2266
+ }), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = "#FFFFFF", this.signalColor = "#FFFFFF", this.labelBoxBorderColor = "#BDBCCC", this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || y(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.compositeBackground = "#16141F", this.altBackground = "#16141F", this.compositeTitleBackground = "#16141F", this.stateEdgeLabelBackground = "#16141F", this.fontWeight = 600, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
2248
2267
  h: 210,
2249
2268
  l: 150
2250
2269
  }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
@@ -2317,7 +2336,7 @@ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } =
2317
2336
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2318
2337
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2319
2338
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2320
- }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#16141F", this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
2339
+ }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#16141F", this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
2321
2340
  }
2322
2341
  calculate(e) {
2323
2342
  if (typeof e != "object") {
@@ -2331,15 +2350,15 @@ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } =
2331
2350
  this[t] = e[t];
2332
2351
  });
2333
2352
  }
2334
- }, Ot = /* @__PURE__ */ e((e) => {
2335
- let t = new Dt();
2353
+ }, kt = /* @__PURE__ */ e((e) => {
2354
+ let t = new Ot();
2336
2355
  return t.calculate(e), t;
2337
- }, "getThemeVariables"), kt = class {
2356
+ }, "getThemeVariables"), At = class {
2338
2357
  static {
2339
2358
  e(this, "Theme");
2340
2359
  }
2341
2360
  constructor() {
2342
- this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#28253D", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.primaryBorderColor = z(this.primaryColor, this.darkMode), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#28253D", this.stateBorder = "#28253D", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.tertiaryColor = "#ffffff", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.actorBorder = "#28253D", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.borderColorArray = [
2361
+ 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 = R(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 = [
2343
2362
  "#E879F9",
2344
2363
  "#2DD4BF",
2345
2364
  "#FB923C",
@@ -2371,7 +2390,7 @@ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } =
2371
2390
  this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2372
2391
  h: 180,
2373
2392
  l: 5
2374
- }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
2393
+ }), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
2375
2394
  let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
2376
2395
  h: 180,
2377
2396
  l: 5
@@ -2445,7 +2464,7 @@ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } =
2445
2464
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2446
2465
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2447
2466
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2448
- }, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.fontWeight = 600, this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
2467
+ }, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.fontWeight = 600, this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
2449
2468
  }
2450
2469
  calculate(e) {
2451
2470
  if (typeof e != "object") {
@@ -2459,15 +2478,15 @@ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } =
2459
2478
  this[t] = e[t];
2460
2479
  });
2461
2480
  }
2462
- }, At = /* @__PURE__ */ e((e) => {
2463
- let t = new kt();
2481
+ }, jt = /* @__PURE__ */ e((e) => {
2482
+ let t = new At();
2464
2483
  return t.calculate(e), t;
2465
- }, "getThemeVariables"), jt = class {
2484
+ }, "getThemeVariables"), Mt = class {
2466
2485
  static {
2467
2486
  e(this, "Theme");
2468
2487
  }
2469
2488
  constructor() {
2470
- this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = z(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = g(255, 255, 255, .25), this.arrowheadColor = S(this.background), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#111113", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.noteBkgColor = this.noteBkgColor ?? "#FEF9C3", this.noteTextColor = this.noteTextColor ?? "#28253D", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#FFFFFF", this.stateBorder = "#FFFFFF", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.clusterBkg = "#1E1A2E", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.borderColorArray = [
2489
+ this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = R(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = g(255, 255, 255, .25), this.arrowheadColor = S(this.background), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#111113", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.noteBkgColor = this.noteBkgColor ?? "#FEF9C3", this.noteTextColor = this.noteTextColor ?? "#28253D", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#FFFFFF", this.stateBorder = "#FFFFFF", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.clusterBkg = "#1E1A2E", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.borderColorArray = [
2471
2490
  "#E879F9",
2472
2491
  "#2DD4BF",
2473
2492
  "#FB923C",
@@ -2486,7 +2505,7 @@ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } =
2486
2505
  this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
2487
2506
  h: 180,
2488
2507
  l: 5
2489
- }), this.primaryBorderColor = this.primaryBorderColor || z(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || z(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || z(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || z(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = "#FFFFFF", this.signalColor = "#FFFFFF", this.labelBoxBorderColor = "#BDBCCC", this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.rootLabelColor = "#FFFFFF", this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || y(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || "#f4a8ff", this.cScale1 = this.cScale1 || "#46ecd5", this.cScale2 = this.cScale2 || "#ffb86a", this.cScale3 = this.cScale3 || "#dab2ff", this.cScale4 = this.cScale4 || "#7bf1a8", this.cScale5 = this.cScale5 || "#c4b4ff", this.cScale6 = this.cScale6 || "#ffa2a2", this.cScale7 = this.cScale7 || "#ffdf20", this.cScale8 = this.cScale8 || "#a3b3ff", this.cScale9 = this.cScale9 || "#bbf451", this.cScale10 = this.cScale10 || "#74d4ff", this.cScale11 = this.cScale11 || "#ffa1ad";
2508
+ }), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = "#FFFFFF", this.signalColor = "#FFFFFF", this.labelBoxBorderColor = "#BDBCCC", this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.rootLabelColor = "#FFFFFF", this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || y(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || "#f4a8ff", this.cScale1 = this.cScale1 || "#46ecd5", this.cScale2 = this.cScale2 || "#ffb86a", this.cScale3 = this.cScale3 || "#dab2ff", this.cScale4 = this.cScale4 || "#7bf1a8", this.cScale5 = this.cScale5 || "#c4b4ff", this.cScale6 = this.cScale6 || "#ffa2a2", this.cScale7 = this.cScale7 || "#ffdf20", this.cScale8 = this.cScale8 || "#a3b3ff", this.cScale9 = this.cScale9 || "#bbf451", this.cScale10 = this.cScale10 || "#74d4ff", this.cScale11 = this.cScale11 || "#ffa1ad";
2490
2509
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2491
2510
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
2492
2511
  this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
@@ -2555,7 +2574,7 @@ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } =
2555
2574
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2556
2575
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2557
2576
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2558
- }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.fontWeight = 600, this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || L, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || R;
2577
+ }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.fontWeight = 600, this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
2559
2578
  }
2560
2579
  calculate(e) {
2561
2580
  if (typeof e != "object") {
@@ -2569,22 +2588,22 @@ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } =
2569
2588
  this[t] = e[t];
2570
2589
  });
2571
2590
  }
2572
- }, U = {
2573
- base: { getThemeVariables: mt },
2574
- dark: { getThemeVariables: gt },
2575
- default: { getThemeVariables: V },
2576
- forest: { getThemeVariables: vt },
2577
- neutral: { getThemeVariables: bt },
2578
- neo: { getThemeVariables: St },
2579
- "neo-dark": { getThemeVariables: wt },
2580
- redux: { getThemeVariables: Et },
2581
- "redux-dark": { getThemeVariables: Ot },
2582
- "redux-color": { getThemeVariables: At },
2591
+ }, H = {
2592
+ base: { getThemeVariables: z },
2593
+ dark: { getThemeVariables: _t },
2594
+ default: { getThemeVariables: yt },
2595
+ forest: { getThemeVariables: V },
2596
+ neutral: { getThemeVariables: xt },
2597
+ neo: { getThemeVariables: Ct },
2598
+ "neo-dark": { getThemeVariables: Tt },
2599
+ redux: { getThemeVariables: Dt },
2600
+ "redux-dark": { getThemeVariables: kt },
2601
+ "redux-color": { getThemeVariables: jt },
2583
2602
  "redux-dark-color": { getThemeVariables: /* @__PURE__ */ e((e) => {
2584
- let t = new jt();
2603
+ let t = new Mt();
2585
2604
  return t.calculate(e), t;
2586
2605
  }, "getThemeVariables") }
2587
- }, W = {
2606
+ }, U = {
2588
2607
  flowchart: {
2589
2608
  useMaxWidth: !0,
2590
2609
  titleTopMargin: 25,
@@ -3132,8 +3151,8 @@ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } =
3132
3151
  fontSize: 16,
3133
3152
  markdownAutoWrap: !0,
3134
3153
  suppressErrorRendering: !1
3135
- }, Mt = {
3136
- ...W,
3154
+ }, Nt = {
3155
+ ...U,
3137
3156
  deterministicIDSeed: void 0,
3138
3157
  elk: {
3139
3158
  mergeEdges: !1,
@@ -3142,9 +3161,9 @@ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } =
3142
3161
  considerModelOrder: "NODES_AND_EDGES"
3143
3162
  },
3144
3163
  themeCSS: void 0,
3145
- themeVariables: U.default.getThemeVariables(),
3164
+ themeVariables: H.default.getThemeVariables(),
3146
3165
  sequence: {
3147
- ...W.sequence,
3166
+ ...U.sequence,
3148
3167
  messageFont: /* @__PURE__ */ e(function() {
3149
3168
  return {
3150
3169
  fontFamily: this.messageFontFamily,
@@ -3172,12 +3191,12 @@ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } =
3172
3191
  hierarchicalNamespaces: !0
3173
3192
  },
3174
3193
  gantt: {
3175
- ...W.gantt,
3194
+ ...U.gantt,
3176
3195
  tickInterval: void 0,
3177
3196
  useWidth: void 0
3178
3197
  },
3179
3198
  c4: {
3180
- ...W.c4,
3199
+ ...U.c4,
3181
3200
  useWidth: void 0,
3182
3201
  personFont: /* @__PURE__ */ e(function() {
3183
3202
  return {
@@ -3187,7 +3206,7 @@ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } =
3187
3206
  };
3188
3207
  }, "personFont"),
3189
3208
  flowchart: {
3190
- ...W.flowchart,
3209
+ ...U.flowchart,
3191
3210
  inheritDir: !1
3192
3211
  },
3193
3212
  external_personFont: /* @__PURE__ */ e(function() {
@@ -3339,26 +3358,26 @@ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } =
3339
3358
  }, "messageFont")
3340
3359
  },
3341
3360
  pie: {
3342
- ...W.pie,
3361
+ ...U.pie,
3343
3362
  useWidth: 984
3344
3363
  },
3345
3364
  xyChart: {
3346
- ...W.xyChart,
3365
+ ...U.xyChart,
3347
3366
  useWidth: void 0
3348
3367
  },
3349
3368
  requirement: {
3350
- ...W.requirement,
3369
+ ...U.requirement,
3351
3370
  useWidth: void 0
3352
3371
  },
3353
- packet: { ...W.packet },
3354
- eventmodeling: { ...W.eventmodeling },
3372
+ packet: { ...U.packet },
3373
+ eventmodeling: { ...U.eventmodeling },
3355
3374
  treeView: {
3356
- ...W.treeView,
3375
+ ...U.treeView,
3357
3376
  useWidth: void 0
3358
3377
  },
3359
- radar: { ...W.radar },
3378
+ radar: { ...U.radar },
3360
3379
  railroad: {
3361
- ...W.railroad,
3380
+ ...U.railroad,
3362
3381
  fontSize: void 0,
3363
3382
  fontFamily: void 0,
3364
3383
  terminalFill: void 0,
@@ -3376,9 +3395,9 @@ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } =
3376
3395
  specialStroke: void 0,
3377
3396
  ruleNameColor: void 0
3378
3397
  },
3379
- ishikawa: { ...W.ishikawa },
3398
+ ishikawa: { ...U.ishikawa },
3380
3399
  sankey: {
3381
- ...W.sankey,
3400
+ ...U.sankey,
3382
3401
  nodeColors: void 0
3383
3402
  },
3384
3403
  treemap: {
@@ -3393,42 +3412,42 @@ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } =
3393
3412
  labelFontSize: 14,
3394
3413
  valueFormat: ","
3395
3414
  },
3396
- venn: { ...W.venn },
3397
- cynefin: { ...W.cynefin }
3398
- }, Nt = /* @__PURE__ */ e((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
3415
+ venn: { ...U.venn },
3416
+ cynefin: { ...U.cynefin }
3417
+ }, Pt = /* @__PURE__ */ e((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
3399
3418
  ...n,
3400
3419
  t + r,
3401
- ...Nt(e[r], "")
3402
- ] : [...n, t + r], []), "keyify"), Pt = new Set(Nt(Mt, "")), Ft = Mt, It = {
3420
+ ...Pt(e[r], "")
3421
+ ] : [...n, t + r], []), "keyify"), Ft = new Set(Pt(Nt, "")), It = Nt, Lt = {
3403
3422
  nodeColors: /^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,
3404
3423
  filenameIcons: /^[\w-]+(?::[\w-]+)?$/,
3405
3424
  extensionIcons: /^[\w-]+(?::[\w-]+)?$/
3406
- }, Lt = /* @__PURE__ */ e((e, t) => {
3425
+ }, Rt = /* @__PURE__ */ e((e, t) => {
3407
3426
  for (let n of Object.keys(e)) {
3408
3427
  let i = e[n];
3409
3428
  (n.startsWith("__") || n.includes("proto") || n.includes("constr") || typeof i != "string" || !t.test(i)) && (r.debug("sanitize deleting dictionary entry:", n, i), delete e[n]);
3410
3429
  }
3411
- }, "sanitizeDictionaryConfig"), G = /* @__PURE__ */ e((e) => {
3430
+ }, "sanitizeDictionaryConfig"), zt = /* @__PURE__ */ e((e) => {
3412
3431
  if (r.debug("sanitizeDirective called with", e), !(typeof e != "object" || !e)) {
3413
3432
  if (Array.isArray(e)) {
3414
- e.forEach((e) => G(e));
3433
+ e.forEach((e) => zt(e));
3415
3434
  return;
3416
3435
  }
3417
3436
  for (let t of Object.keys(e)) {
3418
- if (r.debug("Checking key", t), t.startsWith("__") || t.includes("proto") || t.includes("constr") || !Pt.has(t) || e[t] == null) {
3437
+ if (r.debug("Checking key", t), t.startsWith("__") || t.includes("proto") || t.includes("constr") || !Ft.has(t) || e[t] == null) {
3419
3438
  r.debug("sanitize deleting key: ", t), delete e[t];
3420
3439
  continue;
3421
3440
  }
3422
3441
  if (typeof e[t] == "object") {
3423
- let n = It[t];
3424
- n ? Lt(e[t], n) : (r.debug("sanitizing object", t), G(e[t]));
3442
+ let n = Lt[t];
3443
+ n ? Rt(e[t], n) : (r.debug("sanitizing object", t), zt(e[t]));
3425
3444
  continue;
3426
3445
  }
3427
3446
  for (let n of [
3428
3447
  "themeCSS",
3429
3448
  "fontFamily",
3430
3449
  "altFontFamily"
3431
- ]) t.includes(n) && (r.debug("sanitizing css option", t), e[t] = Rt(e[t]));
3450
+ ]) t.includes(n) && (r.debug("sanitizing css option", t), e[t] = W(e[t]));
3432
3451
  }
3433
3452
  if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
3434
3453
  let n = e.themeVariables[t];
@@ -3436,94 +3455,94 @@ var pt = ft(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } =
3436
3455
  }
3437
3456
  r.debug("After sanitization", e);
3438
3457
  }
3439
- }, "sanitizeDirective"), Rt = /* @__PURE__ */ e((e) => {
3458
+ }, "sanitizeDirective"), W = /* @__PURE__ */ e((e) => {
3440
3459
  let t = 0, n = 0;
3441
3460
  for (let r of e) {
3442
3461
  if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
3443
3462
  r === "{" ? t++ : r === "}" && n++;
3444
3463
  }
3445
3464
  return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
3446
- }, "sanitizeCss"), zt = Object.freeze(Ft), Bt = /* @__PURE__ */ e((e) => !(e === !1 || [
3465
+ }, "sanitizeCss"), G = Object.freeze(It), Bt = /* @__PURE__ */ e((e) => !(e === !1 || [
3447
3466
  "false",
3448
3467
  "null",
3449
3468
  "0"
3450
- ].includes(String(e).trim().toLowerCase())), "evaluate"), K = I({}, zt), Vt, q = [], Ht = I({}, zt), Ut = /* @__PURE__ */ e((e, t) => {
3451
- let n = I({}, e), r = {};
3452
- for (let e of t) Yt(e), r = I(r, e);
3453
- if (n = I(n, r), r.theme && r.theme in U) {
3454
- let e = I(I({}, Vt).themeVariables || {}, r.themeVariables);
3455
- n.theme && n.theme in U && (n.themeVariables = U[n.theme].getThemeVariables(e));
3456
- }
3457
- return Ht = n, tn(Ht), Ht;
3458
- }, "updateCurrentConfig"), Wt = /* @__PURE__ */ e((e) => (K = I({}, zt), K = I(K, e), e.theme && U[e.theme] && (K.themeVariables = U[e.theme].getThemeVariables(e.themeVariables)), Ut(K, q), K), "setSiteConfig"), Gt = /* @__PURE__ */ e((e) => {
3459
- Vt = I({}, e);
3460
- }, "saveConfigFromInitialize"), Kt = /* @__PURE__ */ e((e) => (K = I(K, e), Ut(K, q), K), "updateSiteConfig"), J = /* @__PURE__ */ e(() => I({}, K), "getSiteConfig"), qt = /* @__PURE__ */ e((e) => (tn(e), I(Ht, e), Jt()), "setConfig"), Jt = /* @__PURE__ */ e(() => I({}, Ht), "getConfig"), Yt = /* @__PURE__ */ e((e) => {
3469
+ ].includes(String(e).trim().toLowerCase())), "evaluate"), K = F({}, G), Vt, q = [], Ht = F({}, G), Ut = /* @__PURE__ */ e((e, t) => {
3470
+ let n = F({}, e), r = {};
3471
+ for (let e of t) Jt(e), r = F(r, e);
3472
+ if (n = F(n, r), r.theme && r.theme in H) {
3473
+ let e = F(F({}, Vt).themeVariables || {}, r.themeVariables);
3474
+ n.theme && n.theme in H && (n.themeVariables = H[n.theme].getThemeVariables(e));
3475
+ }
3476
+ return Ht = n, en(Ht), Ht;
3477
+ }, "updateCurrentConfig"), Wt = /* @__PURE__ */ e((e) => (K = F({}, G), K = F(K, e), e.theme && H[e.theme] && (K.themeVariables = H[e.theme].getThemeVariables(e.themeVariables)), Ut(K, q), K), "setSiteConfig"), Gt = /* @__PURE__ */ e((e) => {
3478
+ Vt = F({}, e);
3479
+ }, "saveConfigFromInitialize"), Kt = /* @__PURE__ */ e((e) => (K = F(K, e), Ut(K, q), K), "updateSiteConfig"), qt = /* @__PURE__ */ e(() => F({}, K), "getSiteConfig"), J = /* @__PURE__ */ e((e) => (Ut(Ht, [e]), Y()), "setConfig"), Y = /* @__PURE__ */ e(() => F({}, Ht), "getConfig"), Jt = /* @__PURE__ */ e((e) => {
3461
3480
  e && (["secure", ...K.secure ?? []].forEach((t) => {
3462
3481
  Object.hasOwn(e, t) && (r.debug(`Denied attempt to modify a secure key ${t}`, e[t]), delete e[t]);
3463
3482
  }), Object.keys(e).forEach((t) => {
3464
3483
  t.startsWith("__") && delete e[t];
3465
3484
  }), Object.keys(e).forEach((t) => {
3466
- typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && Yt(e[t]);
3485
+ typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && Jt(e[t]);
3467
3486
  }));
3468
- }, "sanitize"), Xt = /* @__PURE__ */ e((e) => {
3469
- G(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
3487
+ }, "sanitize"), Yt = /* @__PURE__ */ e((e) => {
3488
+ zt(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
3470
3489
  ...e.themeVariables,
3471
3490
  fontFamily: e.fontFamily
3472
3491
  }), q.push(e), Ut(K, q);
3473
- }, "addDirective"), Zt = /* @__PURE__ */ e((e = K) => {
3492
+ }, "addDirective"), Xt = /* @__PURE__ */ e((e = K) => {
3474
3493
  q = [], Ut(e, q);
3475
- }, "reset"), Qt = {
3494
+ }, "reset"), Zt = {
3476
3495
  LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",
3477
3496
  FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
3478
- }, $t = {}, en = /* @__PURE__ */ e((e) => {
3479
- $t[e] || (r.warn(Qt[e]), $t[e] = !0);
3480
- }, "issueWarning"), tn = /* @__PURE__ */ e((e) => {
3481
- e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && en("LAZY_LOAD_DEPRECATED");
3482
- }, "checkConfig"), nn = /* @__PURE__ */ e(() => {
3497
+ }, Qt = {}, $t = /* @__PURE__ */ e((e) => {
3498
+ Qt[e] || (r.warn(Zt[e]), Qt[e] = !0);
3499
+ }, "issueWarning"), en = /* @__PURE__ */ e((e) => {
3500
+ e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && $t("LAZY_LOAD_DEPRECATED");
3501
+ }, "checkConfig"), tn = /* @__PURE__ */ e(() => {
3483
3502
  let e = {};
3484
- Vt && (e = I(e, Vt));
3485
- for (let t of q) e = I(e, t);
3503
+ Vt && (e = F(e, Vt));
3504
+ for (let t of q) e = F(e, t);
3486
3505
  return e;
3487
- }, "getUserDefinedConfig"), Y = /* @__PURE__ */ e((e) => (e.flowchart?.htmlLabels != null && en("FLOWCHART_HTML_LABELS_DEPRECATED"), Bt(e.htmlLabels ?? e.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), rn = /^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s, X = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, an = /\s*%%.*\n/gm, on = class extends Error {
3506
+ }, "getUserDefinedConfig"), nn = /* @__PURE__ */ e((e) => (e.flowchart?.htmlLabels != null && $t("FLOWCHART_HTML_LABELS_DEPRECATED"), Bt(e.htmlLabels ?? e.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), X = /^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s, rn = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, an = /\s*%%.*\n/gm, on = class extends Error {
3488
3507
  static {
3489
3508
  e(this, "UnknownDiagramError");
3490
3509
  }
3491
3510
  constructor(e) {
3492
3511
  super(e), this.name = "UnknownDiagramError";
3493
3512
  }
3494
- }, sn = {}, cn = /* @__PURE__ */ e(function(e, t) {
3495
- e = e.replace(rn, "").replace(X, "").replace(an, "\n");
3496
- for (let [n, { detector: r }] of Object.entries(sn)) if (r(e, t)) return n;
3513
+ }, Z = {}, sn = /* @__PURE__ */ e(function(e, t) {
3514
+ e = e.replace(X, "").replace(rn, "").replace(an, "\n");
3515
+ for (let [n, { detector: r }] of Object.entries(Z)) if (r(e, t)) return n;
3497
3516
  throw new on(`No diagram type detected matching given configuration for text: ${e}`);
3498
- }, "detectType"), ln = /* @__PURE__ */ e((...e) => {
3499
- for (let { id: t, detector: n, loader: r } of e) un(t, n, r);
3500
- }, "registerLazyLoadedDiagrams"), un = /* @__PURE__ */ e((e, t, n) => {
3501
- sn[e] && r.warn(`Detector with key ${e} already exists. Overwriting.`), sn[e] = {
3517
+ }, "detectType"), cn = /* @__PURE__ */ e((...e) => {
3518
+ for (let { id: t, detector: n, loader: r } of e) ln(t, n, r);
3519
+ }, "registerLazyLoadedDiagrams"), ln = /* @__PURE__ */ e((e, t, n) => {
3520
+ Z[e] && r.warn(`Detector with key ${e} already exists. Overwriting.`), Z[e] = {
3502
3521
  detector: t,
3503
3522
  loader: n
3504
3523
  }, r.debug(`Detector with key ${e} added${n ? " with loader" : ""}`);
3505
- }, "addDetector"), dn = /* @__PURE__ */ e((e) => sn[e].loader, "getDiagramLoader"), Z = /<br\s*\/?>/gi, fn = /* @__PURE__ */ e((e) => e ? bn(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), pn = /* @__PURE__ */ (() => {
3524
+ }, "addDetector"), un = /* @__PURE__ */ e((e) => Z[e].loader, "getDiagramLoader"), Q = /<br\s*\/?>/gi, dn = /* @__PURE__ */ e((e) => e ? bn(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), fn = /* @__PURE__ */ (() => {
3506
3525
  let e = !1;
3507
3526
  return () => {
3508
- e ||= (Q(), !0);
3527
+ e ||= (pn(), !0);
3509
3528
  };
3510
3529
  })();
3511
- function Q() {
3530
+ function pn() {
3512
3531
  let e = "data-temp-href-target";
3513
- pt.addHook("beforeSanitizeAttributes", (t) => {
3532
+ P.addHook("beforeSanitizeAttributes", (t) => {
3514
3533
  t.tagName === "A" && t.hasAttribute("target") && t.setAttribute(e, t.getAttribute("target") ?? "");
3515
- }), pt.addHook("afterSanitizeAttributes", (t) => {
3534
+ }), P.addHook("afterSanitizeAttributes", (t) => {
3516
3535
  t.tagName === "A" && t.hasAttribute(e) && (t.setAttribute("target", t.getAttribute(e) ?? ""), t.removeAttribute(e), t.getAttribute("target") === "_blank" && t.setAttribute("rel", "noopener"));
3517
3536
  });
3518
3537
  }
3519
- e(Q, "setupDompurifyHooks");
3520
- var mn = /* @__PURE__ */ e((e) => (pn(), pt.sanitize(e)), "removeScript"), hn = /* @__PURE__ */ e((e, t) => {
3521
- if (Y(t)) {
3538
+ e(pn, "setupDompurifyHooks");
3539
+ var $ = /* @__PURE__ */ e((e) => (fn(), P.sanitize(e)), "removeScript"), mn = /* @__PURE__ */ e((e, t) => {
3540
+ if (nn(t)) {
3522
3541
  let n = t.securityLevel;
3523
- n === "antiscript" || n === "strict" || n === "sandbox" ? e = mn(e) : n !== "loose" && (e = bn(e), e = e.replace(/</g, "&lt;").replace(/>/g, "&gt;"), e = e.replace(/=/g, "&equals;"), e = yn(e));
3542
+ n === "antiscript" || n === "strict" || n === "sandbox" ? e = $(e) : n !== "loose" && (e = bn(e), e = e.replace(/</g, "&lt;").replace(/>/g, "&gt;"), e = e.replace(/=/g, "&equals;"), e = yn(e));
3524
3543
  }
3525
3544
  return e;
3526
- }, "sanitizeMore"), $ = /* @__PURE__ */ e((e, t) => e && (e = t.dompurifyConfig ? pt.sanitize(hn(e, t), t.dompurifyConfig).toString() : pt.sanitize(hn(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), gn = /* @__PURE__ */ e((e, t) => typeof e == "string" ? $(e, t) : e.flat().map((e) => $(e, t)), "sanitizeTextOrArray"), _n = /* @__PURE__ */ e((e) => Z.test(e), "hasBreaks"), vn = /* @__PURE__ */ e((e) => e.split(Z), "splitBreaks"), yn = /* @__PURE__ */ e((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), bn = /* @__PURE__ */ e((e) => e.replace(Z, "#br#"), "breakToPlaceholder"), xn = /* @__PURE__ */ e((e) => {
3545
+ }, "sanitizeMore"), hn = /* @__PURE__ */ e((e, t) => e && (e = t.dompurifyConfig ? P.sanitize(mn(e, t), t.dompurifyConfig).toString() : P.sanitize(mn(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), gn = /* @__PURE__ */ e((e, t) => typeof e == "string" ? hn(e, t) : e.flat().map((e) => hn(e, t)), "sanitizeTextOrArray"), _n = /* @__PURE__ */ e((e) => Q.test(e), "hasBreaks"), vn = /* @__PURE__ */ e((e) => e.split(Q), "splitBreaks"), yn = /* @__PURE__ */ e((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), bn = /* @__PURE__ */ e((e) => e.replace(Q, "#br#"), "breakToPlaceholder"), xn = /* @__PURE__ */ e((e) => {
3527
3546
  let t = "";
3528
3547
  return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
3529
3548
  }, "getUrl"), Sn = /* @__PURE__ */ e(function(...e) {
@@ -3566,21 +3585,21 @@ var mn = /* @__PURE__ */ e((e) => (pn(), pt.sanitize(e)), "removeScript"), hn =
3566
3585
  if (!(On() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(kn, "MathML is unsupported in this environment.");
3567
3586
  {
3568
3587
  let { default: n } = await import("./pi-outpost-embed.js").then((e) => e.t), r = t.forceLegacyMathML || !On() && t.legacyMathML ? "htmlAndMathml" : "mathml";
3569
- return e.split(Z).map((e) => An(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(kn, (e, t) => n.renderToString(t, {
3588
+ return e.split(Q).map((e) => An(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(kn, (e, t) => n.renderToString(t, {
3570
3589
  throwOnError: !0,
3571
3590
  displayMode: !0,
3572
3591
  output: r
3573
3592
  }).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
3574
3593
  }
3575
3594
  return e.replace(kn, "Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.");
3576
- }, "renderKatexUnsanitized"), Nn = /* @__PURE__ */ e(async (e, t) => $(await Mn(e, t), t), "renderKatexSanitized"), Pn = {
3577
- getRows: fn,
3578
- sanitizeText: $,
3595
+ }, "renderKatexUnsanitized"), Nn = /* @__PURE__ */ e(async (e, t) => hn(await Mn(e, t), t), "renderKatexSanitized"), Pn = {
3596
+ getRows: dn,
3597
+ sanitizeText: hn,
3579
3598
  sanitizeTextOrArray: gn,
3580
3599
  hasBreaks: _n,
3581
3600
  splitBreaks: vn,
3582
- lineBreakRegex: Z,
3583
- removeScript: mn,
3601
+ lineBreakRegex: Q,
3602
+ removeScript: $,
3584
3603
  getUrl: xn,
3585
3604
  evaluate: Bt,
3586
3605
  getMax: Sn,
@@ -3609,7 +3628,7 @@ var Vn = /* @__PURE__ */ e((e, t, n, i) => {
3609
3628
  return e in zn && zn[e] ? a = zn[e]({
3610
3629
  ...n,
3611
3630
  svgId: i
3612
- }) : r.warn(`No theme found for ${e}`), ` & {
3631
+ }) : r.warn(`No theme found for ${e}`), `& {
3613
3632
  font-family: ${n.fontFamily};
3614
3633
  font-size: ${n.fontSize};
3615
3634
  fill: ${n.textColor}
@@ -3743,7 +3762,7 @@ t(Wn, {
3743
3762
  setAccTitle: () => Xn,
3744
3763
  setDiagramTitle: () => er
3745
3764
  });
3746
- var Gn = "", Kn = "", qn = "", Jn = /* @__PURE__ */ e((e) => $(e, Jt()), "sanitizeText"), Yn = /* @__PURE__ */ e(() => {
3765
+ var Gn = "", Kn = "", qn = "", Jn = /* @__PURE__ */ e((e) => hn(e, Y()), "sanitizeText"), Yn = /* @__PURE__ */ e(() => {
3747
3766
  Gn = "", qn = "", Kn = "";
3748
3767
  }, "clear"), Xn = /* @__PURE__ */ e((e) => {
3749
3768
  Gn = Jn(e).replace(/^\s+/g, "");
@@ -3751,8 +3770,8 @@ var Gn = "", Kn = "", qn = "", Jn = /* @__PURE__ */ e((e) => $(e, Jt()), "saniti
3751
3770
  qn = Jn(e).replace(/\n\s+/g, "\n");
3752
3771
  }, "setAccDescription"), $n = /* @__PURE__ */ e(() => qn, "getAccDescription"), er = /* @__PURE__ */ e((e) => {
3753
3772
  Kn = Jn(e);
3754
- }, "setDiagramTitle"), tr = /* @__PURE__ */ e(() => Kn, "getDiagramTitle"), nr = r, rr = n, ir = Jt, ar = qt, or = zt, sr = /* @__PURE__ */ e((e) => $(e, ir()), "sanitizeText"), cr = Rn, lr = /* @__PURE__ */ e(() => Wn, "getCommonDb"), ur = {}, dr = /* @__PURE__ */ e((e, t, n) => {
3755
- ur[e] && nr.warn(`Diagram with id ${e} already registered. Overwriting.`), ur[e] = t, n && un(e, n), Hn(e, t.styles), t.injectUtils?.(nr, rr, ir, sr, cr, lr(), () => {});
3773
+ }, "setDiagramTitle"), tr = /* @__PURE__ */ e(() => Kn, "getDiagramTitle"), nr = r, rr = n, ir = Y, ar = J, or = G, sr = /* @__PURE__ */ e((e) => hn(e, ir()), "sanitizeText"), cr = Rn, lr = /* @__PURE__ */ e(() => Wn, "getCommonDb"), ur = {}, dr = /* @__PURE__ */ e((e, t, n) => {
3774
+ ur[e] && nr.warn(`Diagram with id ${e} already registered. Overwriting.`), ur[e] = t, n && ln(e, n), Hn(e, t.styles), t.injectUtils?.(nr, rr, ir, sr, cr, lr(), () => {});
3756
3775
  }, "registerDiagram"), fr = /* @__PURE__ */ e((e) => {
3757
3776
  if (e in ur) return ur[e];
3758
3777
  throw new pr(e);
@@ -3765,4 +3784,4 @@ var Gn = "", Kn = "", qn = "", Jn = /* @__PURE__ */ e((e) => $(e, Jt()), "saniti
3765
3784
  }
3766
3785
  };
3767
3786
  //#endregion
3768
- export { pt as $, An as A, sr as B, dn as C, V as D, J as E, Nn as F, ar as G, Qn as H, Zt as I, Rn as J, er as K, Rt as L, wn as M, dr as N, xn as O, ln as P, Kt as Q, G as R, fr as S, Y as T, Xn as U, Gt as V, qt as W, Un as X, cr as Y, U as Z, rn as _, Yn as a, m as at, Jt as b, Ln as c, or as d, b as et, Ft as f, Bt as g, X as h, jn as i, g as it, Z as j, nn as k, Bn as l, sn as m, Xt as n, v as nt, Wn as o, a as ot, cn as p, Wt as q, I as r, _ as rt, Pn as s, on as t, y as tt, zt as u, $n as v, tr as w, ir as x, Zn as y, $ as z };
3787
+ export { P as $, An as A, sr as B, un as C, yt as D, qt as E, Nn as F, ar as G, Qn as H, Xt as I, Rn as J, er as K, W as L, wn as M, dr as N, xn as O, cn as P, Kt as Q, zt as R, fr as S, nn as T, Xn as U, Gt as V, J as W, Un as X, cr as Y, H as Z, X as _, Yn as a, m as at, Y as b, Ln as c, or as d, b as et, It as f, Bt as g, rn as h, jn as i, g as it, Q as j, tn as k, Bn as l, Z as m, Yt as n, v as nt, Wn as o, a as ot, sn as p, Wt as q, F as r, _ as rt, Pn as s, on as t, y as tt, G as u, $n as v, tr as w, ir as x, Zn as y, hn as z };