@pi-outpost/embed 0.6.4 → 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 (132) hide show
  1. package/dist/{abnfDiagram-VRR7QNED-BPTALLb_.cjs → abnfDiagram-N423BO3Z-DOZfbvMH.cjs} +1 -1
  2. package/dist/{abnfDiagram-VRR7QNED-DlAvVtuC.js → abnfDiagram-N423BO3Z-WMOVzCba.js} +4 -4
  3. package/dist/{architectureDiagram-ZJ3FMSHR-D7UsY5ua.js → architectureDiagram-T3A2C74G-BH-F8FzB.js} +190 -164
  4. package/dist/architectureDiagram-T3A2C74G-RJUsi-Sx.cjs +36 -0
  5. package/dist/{blockDiagram-677ZJIJ3-BrXgigdO.cjs → blockDiagram-VBNYF7ZC-Bz8oqXJQ.cjs} +1 -1
  6. package/dist/{blockDiagram-677ZJIJ3-s-fanRPN.js → blockDiagram-VBNYF7ZC-DYMmF9bV.js} +8 -8
  7. package/dist/{c4Diagram-LMCZKHZV-BbZFAi_K.js → c4Diagram-5PPSVZJV-Cfnl6tZM.js} +4 -4
  8. package/dist/{c4Diagram-LMCZKHZV-DFBVQ9Uo.cjs → c4Diagram-5PPSVZJV-DM6x-BYG.cjs} +1 -1
  9. package/dist/{channel-DV0ST12Z.js → channel-Bq-0ENlK.js} +1 -1
  10. package/dist/channel-DoxF0tZj.cjs +1 -0
  11. package/dist/{chunk-32BRIVSS-Byu3FrKX.js → chunk-2GRJ4B5K-DXwE-yr5.js} +2 -2
  12. package/dist/{chunk-32BRIVSS-oWSJWk-u.cjs → chunk-2GRJ4B5K-DzaxUd3W.cjs} +1 -1
  13. package/dist/{chunk-VAUOI2AC-CBXi4Di2.cjs → chunk-3NCLNEKW-CO28EZBG.cjs} +1 -1
  14. package/dist/{chunk-VAUOI2AC-05FwamOA.js → chunk-3NCLNEKW-dTH67Ne_.js} +2 -2
  15. package/dist/{chunk-HOUHSVGY-CtRCnz1G.js → chunk-4I5QYGJK-JZmvuONC.js} +2 -2
  16. package/dist/{chunk-HOUHSVGY-CgfXy94u.cjs → chunk-4I5QYGJK-LCSWSJfh.cjs} +1 -1
  17. package/dist/{chunk-EX3LRPZG-u-BKCEWO.cjs → chunk-5RXB4S5H-B5b3tdRl.cjs} +1 -1
  18. package/dist/{chunk-EX3LRPZG-BBldDxGh.js → chunk-5RXB4S5H-JthGygoA.js} +6 -6
  19. package/dist/{chunk-MOJQB5TN-H2vwz-oQ.cjs → chunk-6Q2QTUOP-C5n08EA-.cjs} +1 -1
  20. package/dist/{chunk-MOJQB5TN-D6YxvkUY.js → chunk-6Q2QTUOP-DvJxCxMM.js} +3 -3
  21. package/dist/{chunk-52WLFC77-C9zQbcGs.js → chunk-7Z6QIM7H-CIoK8R3m.js} +8 -8
  22. package/dist/{chunk-52WLFC77-D9PTsiCj.cjs → chunk-7Z6QIM7H-Ctljl7Vq.cjs} +1 -1
  23. package/dist/{chunk-V7JOEXUC-BROsdKzY.js → chunk-GF5L2VYU-BPBMCCz5.js} +6 -6
  24. package/dist/{chunk-V7JOEXUC-Cfrm5GQn.cjs → chunk-GF5L2VYU-DgG-wovM.cjs} +1 -1
  25. package/dist/chunk-I66GZJ75-CrpH-Rmq.cjs +127 -0
  26. package/dist/{chunk-WYO6CB5R-Y9HJHB3Q.js → chunk-I66GZJ75-DexfhZwA.js} +410 -362
  27. package/dist/{chunk-FWX5IMBZ-h3GfgkP2.js → chunk-J7OUQ5F2-DhMpZbAr.js} +7 -7
  28. package/dist/{chunk-FWX5IMBZ-nqBth1J9.cjs → chunk-J7OUQ5F2-b-MfW4O9.cjs} +1 -1
  29. package/dist/{chunk-PUDLZKDR-DtzwSdxX.cjs → chunk-JQJVKLGR-2AQwaWbm.cjs} +1 -1
  30. package/dist/{chunk-PUDLZKDR-C8jMDFq6.js → chunk-JQJVKLGR-CZorbEP3.js} +8 -8
  31. package/dist/{chunk-VR4S4FIN-Ci491c8N.js → chunk-KBJHAD2P-BlQyFndF.js} +2 -2
  32. package/dist/{chunk-VR4S4FIN-CSU_1xTZ.cjs → chunk-KBJHAD2P-CthZVYG5.cjs} +1 -1
  33. package/dist/{chunk-ICXQ74PX-BmEfYj-r.cjs → chunk-NSK5VX7P-D5CepZHI.cjs} +1 -1
  34. package/dist/{chunk-ICXQ74PX-CC59NQmW.js → chunk-NSK5VX7P-DPxIxDdV.js} +2 -2
  35. package/dist/{chunk-ZGVPDNZ5-CDTkXY1G.js → chunk-QR6OTTB3-CQ_jjYb-.js} +7 -7
  36. package/dist/{chunk-ZGVPDNZ5-COEQX4AZ.cjs → chunk-QR6OTTB3-DSg3ZWNW.cjs} +1 -1
  37. package/dist/{chunk-OGEWGWER-BGdqgMza.js → chunk-UBXNYLIW-BBncokef.js} +3 -3
  38. package/dist/{chunk-OGEWGWER-BP4o8A-v.cjs → chunk-UBXNYLIW-DlNyCWjj.cjs} +1 -1
  39. package/dist/{chunk-C7G6YPKG-GTlyrFFt.js → chunk-W5SLKNZC-Djmw_p6f.js} +2 -2
  40. package/dist/{chunk-C7G6YPKG-CDjkH_UW.cjs → chunk-W5SLKNZC-bHBkM2CL.cjs} +1 -1
  41. package/dist/{chunk-Q4XR5HBZ-COrrWZzi.cjs → chunk-WRU74C26-9KZxhHnn.cjs} +1 -1
  42. package/dist/{chunk-Q4XR5HBZ-Bk18cMuk.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-rKPqxFde.cjs → cynefinDiagram-MW4NZA55-By102s5I.cjs} +1 -1
  48. package/dist/{cynefinDiagram-TSTJHNR4-BRUl09PN.js → cynefinDiagram-MW4NZA55-CB4ZzMEN.js} +4 -4
  49. package/dist/{dagre-VKFMJZFB-ChTkS14y.js → dagre-VZM6K2ZE-5zrH2LqV.js} +9 -9
  50. package/dist/{dagre-VKFMJZFB-BsfMZfPu.cjs → dagre-VZM6K2ZE-CNe7-jhy.cjs} +1 -1
  51. package/dist/{diagram-OA4YK3LP-Drq_GA6o.cjs → diagram-7IWD3JNH-CSzLXhRw.cjs} +1 -1
  52. package/dist/{diagram-OA4YK3LP-B7avlqjG.js → diagram-7IWD3JNH-Cschro8T.js} +5 -5
  53. package/dist/{diagram-FQU43EPY-BnAYoLDy.js → diagram-B4RE2ZJO-B94mhDmV.js} +3 -3
  54. package/dist/{diagram-FQU43EPY-CdbwLZpm.cjs → diagram-B4RE2ZJO-DKbKOwkP.cjs} +1 -1
  55. package/dist/{diagram-NH7WQ7WH-Be0KXo6w.js → diagram-LBJQPF4R-D0MEwBt6.js} +4 -4
  56. package/dist/{diagram-NH7WQ7WH-CG6VWVza.cjs → diagram-LBJQPF4R-DgD0a56I.cjs} +1 -1
  57. package/dist/{diagram-G47NLZAW-C1ZiELQG.js → diagram-Q27KOJAE-Cqn3IliP.js} +7 -7
  58. package/dist/{diagram-G47NLZAW-CtWKuxkf.cjs → diagram-Q27KOJAE-DNWfiaD5.cjs} +1 -1
  59. package/dist/{diagram-WEI45ONY-CoPX6-sx.js → diagram-UB23O5K3-D-yL2fvd.js} +54 -54
  60. package/dist/diagram-UB23O5K3-DguyM6v_.cjs +41 -0
  61. package/dist/{ebnfDiagram-CCIWWBDH-B-T4_JnX.js → ebnfDiagram-BXEA7PRR-B2HDWFYF.js} +4 -4
  62. package/dist/{ebnfDiagram-CCIWWBDH-BY7L3HVQ.cjs → ebnfDiagram-BXEA7PRR-DuJrkFn-.cjs} +1 -1
  63. package/dist/{erDiagram-Q63AITRT-DPgZpeaH.js → erDiagram-JOGREHBK-Badv_hu8.js} +12 -12
  64. package/dist/{erDiagram-Q63AITRT-w4C1PxYd.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-Cf12fLfa.js → ganttDiagram-PKOTCBZU-By0w7TmO.js} +2 -2
  68. package/dist/{ganttDiagram-NO4QXBWP-BcBp028S.cjs → ganttDiagram-PKOTCBZU-CFgz4r57.cjs} +1 -1
  69. package/dist/{gitGraphDiagram-IHSO6WYX-13ahKewT.js → gitGraphDiagram-DS77QQ5N-B1uJYchG.js} +3 -3
  70. package/dist/{gitGraphDiagram-IHSO6WYX-BTtNkGkN.cjs → gitGraphDiagram-DS77QQ5N-Fw8a66di.cjs} +1 -1
  71. package/dist/{infoDiagram-FWYZ7A6U-20rh0VNL.cjs → infoDiagram-6WML65LV-CB6z_iKE.cjs} +1 -1
  72. package/dist/{infoDiagram-FWYZ7A6U-DcV-eSsb.js → infoDiagram-6WML65LV-CkWm_KTB.js} +4 -4
  73. package/dist/{ishikawaDiagram-FXEZZL3T-BUq5kcFI.cjs → ishikawaDiagram-WSZJBQD7-CQWHhozU.cjs} +1 -1
  74. package/dist/{ishikawaDiagram-FXEZZL3T-BTaBCHIG.js → ishikawaDiagram-WSZJBQD7-DTeFqC8L.js} +4 -4
  75. package/dist/{journeyDiagram-5HDEW3XC-Cl9Z4b58.js → journeyDiagram-NVQOT4AX-Cg6C3dFy.js} +3 -3
  76. package/dist/{journeyDiagram-5HDEW3XC-XQa-rhY_.cjs → journeyDiagram-NVQOT4AX-DLomv_vN.cjs} +1 -1
  77. package/dist/{kanban-definition-HUTT4EX6-DVHXUPOt.cjs → kanban-definition-27J2QSJJ-B9Fog3W7.cjs} +1 -1
  78. package/dist/{kanban-definition-HUTT4EX6-CtWnZ0nS.js → kanban-definition-27J2QSJJ-Bb7nb0gX.js} +9 -9
  79. package/dist/{line-Ca8dE_lT.cjs → line-pOZ7Sdj7.cjs} +1 -1
  80. package/dist/{line-O2xx2vVQ.js → line-yqcJYv29.js} +1 -1
  81. package/dist/{mermaid.core-BR-iKb2Q.js → mermaid.core-BIq27e0A.js} +55 -51
  82. package/dist/{mermaid.core-DQrbAA--.cjs → mermaid.core-DpsSj3iy.cjs} +4 -4
  83. package/dist/{mindmap-definition-LN4V7U3C-C0I9iWmq.cjs → mindmap-definition-FAOFIHXS-9wa1P9NT.cjs} +1 -1
  84. package/dist/{mindmap-definition-LN4V7U3C-lkSmRsIC.js → mindmap-definition-FAOFIHXS-DFG0Zs_1.js} +11 -11
  85. package/dist/{ordinal-CCTD6_le.js → ordinal-C1oQzsBn.js} +1 -1
  86. package/dist/{ordinal-CUPR-p0T.cjs → ordinal-D0iNZ43g.cjs} +1 -1
  87. package/dist/{pegDiagram-2B236MQR-hlmRl_PA.cjs → pegDiagram-VL7TDLO6-B4FslsmM.cjs} +1 -1
  88. package/dist/{pegDiagram-2B236MQR-BgRCQTZd.js → pegDiagram-VL7TDLO6-XOjprD-j.js} +4 -4
  89. package/dist/pi-outpost-embed.cjs +59 -56
  90. package/dist/pi-outpost-embed.js +6411 -6332
  91. package/dist/{pieDiagram-ENE6RG2P-Buuvrs-h.cjs → pieDiagram-7S7Q4E2Y-CNzUVS2d.cjs} +1 -1
  92. package/dist/{pieDiagram-ENE6RG2P-BVi7ck2I.js → pieDiagram-7S7Q4E2Y-Cwe7fXgJ.js} +5 -5
  93. package/dist/{quadrantDiagram-ABIIQ3AL-LCbC0LEt.cjs → quadrantDiagram-CIZ2JOQS-CDfrU0dm.cjs} +1 -1
  94. package/dist/{quadrantDiagram-ABIIQ3AL-DeU97c2B.js → quadrantDiagram-CIZ2JOQS-CbaMHmYB.js} +2 -2
  95. package/dist/{railroadDiagram-RFXS5EU6-DNSNpLmQ.js → railroadDiagram-AXF67PYL-CVXAv-Uu.js} +4 -4
  96. package/dist/{railroadDiagram-RFXS5EU6-CMTDNjsw.cjs → railroadDiagram-AXF67PYL-EO1cBHEj.cjs} +1 -1
  97. package/dist/{requirementDiagram-TGXJPOKE-irImpO8w.cjs → requirementDiagram-LRYGKXZP-BGlGCftH.cjs} +1 -1
  98. package/dist/{requirementDiagram-TGXJPOKE-CdspXMgv.js → requirementDiagram-LRYGKXZP-Bzik4kgS.js} +11 -11
  99. package/dist/{sankeyDiagram-HTMAVEWB-B0ZJBVpN.cjs → sankeyDiagram-W5VNT64P-OeLUMuT6.cjs} +1 -1
  100. package/dist/{sankeyDiagram-HTMAVEWB-BQcvUCMA.js → sankeyDiagram-W5VNT64P-_8xZpo45.js} +3 -3
  101. package/dist/{sequenceDiagram-DBY2YBRQ-C5WukkcA.cjs → sequenceDiagram-SI44F4Z6-CuaCFBtR.cjs} +1 -1
  102. package/dist/{sequenceDiagram-DBY2YBRQ-BQFP2DGs.js → sequenceDiagram-SI44F4Z6-X4mzY21C.js} +4 -4
  103. package/dist/{stateDiagram-2N3HPSRC-4aBQt5dk.js → stateDiagram-OKZ733FA-CMM1orC_.js} +14 -14
  104. package/dist/{stateDiagram-2N3HPSRC-YbRd67eD.cjs → stateDiagram-OKZ733FA-Dq6hI_pq.cjs} +1 -1
  105. package/dist/stateDiagram-v2-UEYNNEHI-BmWUstzl.js +30 -0
  106. package/dist/stateDiagram-v2-UEYNNEHI-DZULVhS9.cjs +1 -0
  107. package/dist/{swimlanes-5IMT3BWC-C8zkS7yx.cjs → swimlanes-SLNWSIFB-BMS6R0BK.cjs} +1 -1
  108. package/dist/{swimlanes-5IMT3BWC-aKH3Xgob.js → swimlanes-SLNWSIFB-C7LLK1V2.js} +9 -9
  109. package/dist/swimlanesDiagram-ULZ7WXOC-DxHKX_pj.cjs +8 -0
  110. package/dist/{swimlanesDiagram-G3AALYLV-BcgsG1in.js → swimlanesDiagram-ULZ7WXOC-uXMuqsao.js} +13 -13
  111. package/dist/{timeline-definition-FHXFAJF6-Lnag6wiw.js → timeline-definition-Z64GVDOM-Cgc-2OmU.js} +4 -4
  112. package/dist/{timeline-definition-FHXFAJF6-DS-X0FCl.cjs → timeline-definition-Z64GVDOM-PPJqDdOy.cjs} +1 -1
  113. package/dist/{vennDiagram-L72KCM5P-CF7lC7jn.js → vennDiagram-T6HMQDX7-BWj1BhMh.js} +4 -4
  114. package/dist/{vennDiagram-L72KCM5P-DYZP8jT_.cjs → vennDiagram-T6HMQDX7-DqY7YgNx.cjs} +1 -1
  115. package/dist/{wardleyDiagram-EHGQE667-Dxewrpeh.cjs → wardleyDiagram-T6FBY63Y-OomvVIFj.cjs} +1 -1
  116. package/dist/{wardleyDiagram-EHGQE667-CbtWlMOa.js → wardleyDiagram-T6FBY63Y-d_t4oVLE.js} +4 -4
  117. package/dist/{xychartDiagram-FW5EYKEG-BAnVfMdN.cjs → xychartDiagram-ELKLHX3M-BOSOdubI.cjs} +2 -2
  118. package/dist/{xychartDiagram-FW5EYKEG-DmdGPSi6.js → xychartDiagram-ELKLHX3M-Ce-ai3a8.js} +14 -11
  119. package/package.json +10 -2
  120. package/dist/architectureDiagram-ZJ3FMSHR-Bh5-VPPg.cjs +0 -36
  121. package/dist/channel-DkMGzfUR.cjs +0 -1
  122. package/dist/chunk-WYO6CB5R-BTvDzbWd.cjs +0 -127
  123. package/dist/classDiagram-OUVF2IWQ-Avsu6OKn.cjs +0 -1
  124. package/dist/classDiagram-OUVF2IWQ-eC72Wwol.js +0 -30
  125. package/dist/classDiagram-v2-EOCWNBFH-Avsu6OKn.cjs +0 -1
  126. package/dist/classDiagram-v2-EOCWNBFH-DsRoQgCt.js +0 -30
  127. package/dist/diagram-WEI45ONY-SJmgVL59.cjs +0 -41
  128. package/dist/flowDiagram-23GEKE2U-CQxPdUX4.cjs +0 -1
  129. package/dist/flowDiagram-23GEKE2U-ClCSBl2p.js +0 -17
  130. package/dist/stateDiagram-v2-6OUMAXLB-D-c6D5za.js +0 -30
  131. package/dist/stateDiagram-v2-6OUMAXLB-ciXN_270.cjs +0 -1
  132. package/dist/swimlanesDiagram-G3AALYLV-CBjVJdH0.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
  }
@@ -631,7 +631,7 @@ var Re = C(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
631
631
  "annotation-xml",
632
632
  "mprescripts",
633
633
  "none"
634
- ]), We = C(["#text"]), Ge = C(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), Ke = C(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), qe = C(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), Je = C([
634
+ ]), We = C(["#text"]), Ge = C(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), Ke = C(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), qe = C(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), Je = C([
635
635
  "xlink:href",
636
636
  "xml:id",
637
637
  "xlink:title",
@@ -682,47 +682,47 @@ var Re = C(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
682
682
  uponSanitizeShadowNode: []
683
683
  };
684
684
  }, ft = function(e, t, n, r) {
685
- return E(e, t) && Se(e[t]) ? k(r.base ? j(r.base) : {}, e[t], r.transform) : n;
685
+ return D(e, t) && E(e[t]) ? A(r.base ? j(r.base) : {}, e[t], r.transform) : n;
686
686
  };
687
687
  function pt() {
688
688
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : lt(), t = (e) => pt(e);
689
- if (t.version = "3.4.11", t.removed = [], !e || !e.document || e.document.nodeType !== N.document || !e.Element) return t.isSupported = !1, t;
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, P = 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 pt() {
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 pt() {
759
759
  enumerable: !0,
760
760
  value: null
761
761
  }
762
- })), mt = !0, ht = !0, gt = !1, _t = !0, V = !1, vt = !0, H = !1, yt = !1, bt = null, xt = null, St = !1, Ct = !1, wt = !1, Tt = !1, Et = !0, Dt = !1, Ot = "user-content-", kt = !0, At = !1, jt = {}, U = null, W = k({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Mt = null, Nt = k({}, [
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,77 +781,78 @@ function pt() {
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 = ft(e, "ALLOWED_TAGS", P, { transform: J }), F = ft(e, "ALLOWED_ATTR", I, { transform: J }), Bt = ft(e, "ALLOWED_NAMESPACES", K, { transform: we }), Pt = ft(e, "ADD_URI_SAFE_ATTR", Ft, {
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 = ft(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 = ft(e, "FORBID_CONTENTS", W, { transform: J }), R = ft(e, "FORBID_TAGS", j({}), { transform: J }), z = ft(e, "FORBID_ATTR", j({}), { transform: J }), jt = E(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? j(e.USE_PROFILES) : e.USE_PROFILES : !1, mt = e.ALLOW_ARIA_ATTR !== !1, ht = e.ALLOW_DATA_ATTR !== !1, gt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, _t = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, V = e.SAFE_FOR_TEMPLATES || !1, vt = e.SAFE_FOR_XML !== !1, H = e.WHOLE_DOCUMENT || !1, Ct = e.RETURN_DOM || !1, wt = e.RETURN_DOM_FRAGMENT || !1, Tt = e.RETURN_TRUSTED_TYPE || !1, St = e.FORCE_BODY || !1, Et = e.SANITIZE_DOM !== !1, Dt = e.SANITIZE_NAMED_PROPS || !1, kt = e.KEEP_CONTENT !== !1, At = e.IN_PLACE || !1, Fe = Le(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : et, Rt = typeof e.NAMESPACE == "string" ? e.NAMESPACE : G, q = E(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? j(e.MATHML_TEXT_INTEGRATION_POINTS) : k({}, Vt), Ut = E(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? j(e.HTML_INTEGRATION_POINTS) : k({}, Ht);
812
- let t = E(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? j(e.CUSTOM_ELEMENT_HANDLING) : me(null);
813
- if (L = me(null), E(t, "tagNameCheck") && Yt(t.tagNameCheck) && (L.tagNameCheck = t.tagNameCheck), E(t, "attributeNameCheck") && Yt(t.attributeNameCheck) && (L.attributeNameCheck = t.attributeNameCheck), E(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (L.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), w(L), V && (ht = !1), wt && (Ct = !0), jt && (A = k({}, We), F = me(null), jt.html === !0 && (k(A, Re), k(F, Ge)), jt.svg === !0 && (k(A, ze), k(F, Ke), k(F, Je)), jt.svgFilters === !0 && (k(A, Be), k(F, Ke), k(F, Je)), jt.mathMl === !0 && (k(A, He), k(F, qe), k(F, Je))), B.tagCheck = null, B.attributeCheck = null, E(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? B.tagCheck = e.ADD_TAGS : Se(e.ADD_TAGS) && (A === P && (A = j(A)), k(A, e.ADD_TAGS, J))), E(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? B.attributeCheck = e.ADD_ATTR : Se(e.ADD_ATTR) && (F === I && (F = j(F)), k(F, e.ADD_ATTR, J))), E(e, "ADD_URI_SAFE_ATTR") && Se(e.ADD_URI_SAFE_ATTR) && k(Pt, e.ADD_URI_SAFE_ATTR, J), E(e, "FORBID_CONTENTS") && Se(e.FORBID_CONTENTS) && (U === W && (U = j(U)), k(U, e.FORBID_CONTENTS, J)), E(e, "ADD_FORBID_CONTENTS") && Se(e.ADD_FORBID_CONTENTS) && (U === W && (U = j(U)), k(U, e.ADD_FORBID_CONTENTS, J)), kt && (A["#text"] = !0), H && k(A, [
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
+ Z(e);
855
856
  let t = h(e);
856
857
  if (t) {
857
858
  let e = [];
@@ -870,7 +871,7 @@ function pt() {
870
871
  e.removeAttribute(i);
871
872
  } catch {}
872
873
  }
873
- }, X = function(e, n) {
874
+ }, an = function(e, n) {
874
875
  try {
875
876
  be(t.removed, {
876
877
  attribute: n.getAttributeNode(e),
@@ -882,13 +883,13 @@ function pt() {
882
883
  from: n
883
884
  });
884
885
  }
885
- if (n.removeAttribute(e), e === "is") if (Ct || wt) try {
886
- Y(n);
886
+ if (n.removeAttribute(e), e === "is") if (Tt || Et) try {
887
+ X(n);
887
888
  } catch {}
888
889
  else try {
889
890
  n.setAttribute(e, "");
890
891
  } catch {}
891
- }, an = function(e) {
892
+ }, on = function(e) {
892
893
  let t = te(e);
893
894
  if (t) for (let n = t.length - 1; n >= 0; --n) {
894
895
  let r = t[n], i = r && r.name;
@@ -896,57 +897,78 @@ function pt() {
896
897
  e.removeAttribute(i);
897
898
  } catch {}
898
899
  }
899
- }, on = function(e) {
900
+ }, Z = function(e) {
900
901
  let t = [e];
901
902
  for (; t.length > 0;) {
902
903
  let e = t.pop();
903
- (_ ? _(e) : e.nodeType) === N.element && an(e);
904
+ (_ ? _(e) : e.nodeType) === N.element && on(e);
904
905
  let n = h(e);
905
906
  if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
906
907
  }
907
908
  }, sn = function(e) {
909
+ if (!V) return;
910
+ let t = [e];
911
+ for (; t.length > 0;) {
912
+ let e = t.pop(), n = _ ? _(e) : e.nodeType;
913
+ if (n === N.processingInstruction || n === N.comment && O(ot, e.data)) {
914
+ try {
915
+ p(e);
916
+ } catch {}
917
+ continue;
918
+ }
919
+ if (n === N.element) {
920
+ let t = e, n = J(v ? v(e) : e.nodeName);
921
+ try {
922
+ t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && n !== "label" && n !== "output" && t.removeAttribute("for");
923
+ } catch {}
924
+ }
925
+ let r = h(e);
926
+ if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
927
+ }
928
+ }, cn = function(e) {
908
929
  let t = null, r = null;
909
- if (St) e = "<remove></remove>" + e;
930
+ if (wt) e = "<remove></remove>" + e;
910
931
  else {
911
- let t = Te(e, /^[\r\n\t ]+/);
932
+ let t = we(e, /^[\r\n\t ]+/);
912
933
  r = t && t[0];
913
934
  }
914
- Gt === "application/xhtml+xml" && Rt === G && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
915
- let i = y ? ie(e) : e;
916
- if (Rt === G) try {
917
- 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);
918
939
  } catch {}
919
940
  if (!t || !t.documentElement) {
920
- t = ce.createDocument(Rt, "template", null);
941
+ t = ue.createDocument(G, "template", null);
921
942
  try {
922
- t.documentElement.innerHTML = zt ? b : i;
943
+ t.documentElement.innerHTML = Bt ? x : i;
923
944
  } catch {}
924
945
  }
925
946
  let a = t.body || t.documentElement;
926
- return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Rt === G ? fe.call(t, H ? "html" : "body")[0] : H ? t.documentElement : a;
927
- }, cn = function(e) {
928
- 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);
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;
929
948
  }, ln = function(e) {
930
- return e = Ee(e, he, " "), e = Ee(e, ge, " "), e = Ee(e, ke, " "), e;
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);
931
951
  }, un = function(e) {
952
+ return e = Te(e, ge, " "), e = Te(e, Oe, " "), e = Te(e, ke, " "), e;
953
+ }, Q = function(e) {
932
954
  e.normalize();
933
- 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();
934
- for (; n;) n.data = ln(n.data), n = t.nextNode();
935
- let r = e.querySelectorAll?.call(e, "template");
936
- r && _e(r, (e) => {
937
- Z(e.content) && un(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);
938
960
  });
939
961
  }, dn = function(e) {
940
962
  let t = v ? v(e) : null;
941
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);
942
- }, Z = function(e) {
964
+ }, fn = function(e) {
943
965
  if (!_ || typeof e != "object" || !e) return !1;
944
966
  try {
945
967
  return _(e) === N.documentFragment;
946
968
  } catch {
947
969
  return !1;
948
970
  }
949
- }, fn = function(e) {
971
+ }, pn = function(e) {
950
972
  if (!_ || typeof e != "object" || !e) return !1;
951
973
  try {
952
974
  return typeof _(e) == "number";
@@ -954,50 +976,57 @@ function pt() {
954
976
  return !1;
955
977
  }
956
978
  };
957
- function Q(e, n, r) {
979
+ function $(e, n, r) {
958
980
  e.length !== 0 && _e(e, (e) => {
959
- e.call(t, n, r, qt);
981
+ e.call(t, n, r, Y);
960
982
  });
961
983
  }
962
- let pn = function(e, t) {
963
- return !!(vt && e.hasChildNodes() && !fn(e.firstElementChild) && D(at, e.textContent) && D(at, e.innerHTML) || vt && e.namespaceURI === G && t === "style" && fn(e.firstElementChild) || e.nodeType === N.processingInstruction || vt && e.nodeType === N.comment && D(ot, e.data));
964
- }, mn = function(e, t) {
965
- if (!R[t] && _n(t) && (L.tagNameCheck instanceof RegExp && D(L.tagNameCheck, t) || L.tagNameCheck instanceof Function && L.tagNameCheck(t))) return !1;
966
- if (kt && !U[t]) {
967
- let t = g(e), n = h(e);
968
- if (n && t) {
969
- let r = n.length;
970
- for (let i = r - 1; i >= 0; --i) {
971
- let r = At ? n[i] : f(n[i], !0);
972
- t.insertBefore(r, m(e));
984
+ let mn = function(e, t) {
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));
973
995
  }
974
996
  }
975
997
  }
976
- return Y(e), !0;
977
- }, hn = function(e) {
978
- if (Q(T.beforeSanitizeElements, e, null), dn(e)) return Y(e), !0;
979
- let n = J(v ? v(e) : e.nodeName);
980
- if (Q(T.uponSanitizeElement, e, {
981
- tagName: n,
982
- allowedTags: A
983
- }), pn(e, n)) return Y(e), !0;
984
- if (R[n] || !(B.tagCheck instanceof Function && B.tagCheck(n)) && !A[n]) return mn(e, n);
985
- if ((_ ? _(e) : e.nodeType) === N.element && !nn(e) || (n === "noscript" || n === "noembed" || n === "noframes") && D(st, e.innerHTML)) return Y(e), !0;
986
- if (V && e.nodeType === N.text) {
987
- let n = ln(e.textContent);
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;
1004
+ let r = J(v ? v(e) : e.nodeName);
1005
+ if (P = gn(T.uponSanitizeElement, P, mt, St), $(T.uponSanitizeElement, e, {
1006
+ tagName: r,
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;
1013
+ }
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) {
1016
+ let n = un(e.textContent);
988
1017
  e.textContent !== n && (be(t.removed, { element: e.cloneNode() }), e.textContent = n);
989
1018
  }
990
- return Q(T.afterSanitizeElements, e, null), !1;
991
- }, $ = function(e, t, r) {
992
- if (z[t] || Et && (t === "id" || t === "name") && (r in n || r in Jt)) return !1;
993
- let i = F[t] || B.attributeCheck instanceof Function && B.attributeCheck(t, e);
994
- 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))) {
995
1024
  if (!i) {
996
- if (!(_n(e) && (L.tagNameCheck instanceof RegExp && D(L.tagNameCheck, e) || L.tagNameCheck instanceof Function && L.tagNameCheck(e)) && (L.attributeNameCheck instanceof RegExp && D(L.attributeNameCheck, t) || L.attributeNameCheck instanceof Function && L.attributeNameCheck(t, e)) || t === "is" && L.allowCustomizedBuiltInElements && (L.tagNameCheck instanceof RegExp && D(L.tagNameCheck, r) || L.tagNameCheck instanceof Function && L.tagNameCheck(r)))) return !1;
997
- } 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;
998
1027
  }
999
1028
  return !0;
1000
- }, gn = k({}, [
1029
+ }, yn = A({}, [
1001
1030
  "annotation-xml",
1002
1031
  "color-profile",
1003
1032
  "font-face",
@@ -1006,24 +1035,25 @@ function pt() {
1006
1035
  "font-face-src",
1007
1036
  "font-face-uri",
1008
1037
  "missing-glyph"
1009
- ]), _n = function(e) {
1010
- return !gn[Ce(e)] && D(O, e);
1011
- }, vn = function(e, t, n, r) {
1012
- if (y && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
1013
- case "TrustedHTML": return ie(r);
1014
- 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);
1015
1044
  }
1016
1045
  return r;
1017
- }, yn = function(e, n, r, i) {
1046
+ }, Sn = function(e, n, r, i) {
1018
1047
  try {
1019
- r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), dn(e) ? Y(e) : ye(t.removed);
1048
+ r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), dn(e) ? X(e) : ye(t.removed);
1020
1049
  } catch {
1021
- X(n, e);
1050
+ an(n, e);
1022
1051
  }
1023
- }, bn = function(e) {
1024
- Q(T.beforeSanitizeAttributes, e, null);
1052
+ }, Cn = function(e) {
1053
+ $(T.beforeSanitizeAttributes, e, null);
1025
1054
  let t = e.attributes;
1026
1055
  if (!t || dn(e)) return;
1056
+ F = gn(T.uponSanitizeAttribute, F, I, Ct);
1027
1057
  let n = {
1028
1058
  attrName: "",
1029
1059
  attrValue: "",
@@ -1032,40 +1062,40 @@ function pt() {
1032
1062
  forceKeepAttr: void 0
1033
1063
  }, r = t.length, i = J(e.nodeName);
1034
1064
  for (; r--;) {
1035
- let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = J(o), u = c, d = o === "value" ? u : Oe(u);
1036
- if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, Q(T.uponSanitizeAttribute, e, n), d = n.attrValue, Dt && (l === "id" || l === "name") && De(d, Ot) !== 0 && (X(o, e), d = Ot + d), vt && D(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
1037
- 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);
1038
1068
  continue;
1039
1069
  }
1040
- if (l === "attributename" && Te(d, "href")) {
1041
- X(o, e);
1070
+ if (l === "attributename" && we(d, "href")) {
1071
+ an(o, e);
1042
1072
  continue;
1043
1073
  }
1044
1074
  if (!n.forceKeepAttr) {
1045
1075
  if (!n.keepAttr) {
1046
- X(o, e);
1076
+ an(o, e);
1047
1077
  continue;
1048
1078
  }
1049
- if (!_t && D(ct, d)) {
1050
- X(o, e);
1079
+ if (!yt && O(ct, d)) {
1080
+ an(o, e);
1051
1081
  continue;
1052
1082
  }
1053
- if (V && (d = ln(d)), !$(i, l, d)) {
1054
- X(o, e);
1083
+ if (B && (d = un(d)), !vn(i, l, d)) {
1084
+ an(o, e);
1055
1085
  continue;
1056
1086
  }
1057
- d = vn(i, l, s, d), d !== u && yn(e, o, s, d);
1087
+ d = xn(i, l, s, d), d !== u && Sn(e, o, s, d);
1058
1088
  }
1059
1089
  }
1060
- Q(T.afterSanitizeAttributes, e, null);
1061
- }, xn = function(e) {
1062
- let t = null, n = cn(e);
1063
- for (Q(T.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (Q(T.uponSanitizeShadowNode, t, null), hn(t), bn(t), Z(t.content) && xn(t.content), (_ ? _(t) : t.nodeType) === N.element) {
1090
+ $(T.afterSanitizeAttributes, e, null);
1091
+ }, wn = function(e) {
1092
+ let t = null, n = ln(e);
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) {
1064
1094
  let e = ee(t);
1065
- Z(e) && (Sn(e), xn(e));
1095
+ fn(e) && (Tn(e), wn(e));
1066
1096
  }
1067
- Q(T.afterSanitizeShadowDOM, e, null);
1068
- }, Sn = function(e) {
1097
+ $(T.afterSanitizeShadowDOM, e, null);
1098
+ }, Tn = function(e) {
1069
1099
  let t = [{
1070
1100
  node: e,
1071
1101
  shadow: null
@@ -1073,7 +1103,7 @@ function pt() {
1073
1103
  for (; t.length > 0;) {
1074
1104
  let e = t.pop();
1075
1105
  if (e.shadow) {
1076
- xn(e.shadow);
1106
+ wn(e.shadow);
1077
1107
  continue;
1078
1108
  }
1079
1109
  let n = e.node, r = (_ ? _(n) : n.nodeType) === N.element, i = h(n);
@@ -1085,7 +1115,7 @@ function pt() {
1085
1115
  let e = v ? v(n) : null;
1086
1116
  if (typeof e == "string" && J(e) === "template") {
1087
1117
  let e = n.content;
1088
- Z(e) && t.push({
1118
+ fn(e) && t.push({
1089
1119
  node: e,
1090
1120
  shadow: null
1091
1121
  });
@@ -1093,7 +1123,7 @@ function pt() {
1093
1123
  }
1094
1124
  if (r) {
1095
1125
  let e = ee(n);
1096
- Z(e) && t.push({
1126
+ fn(e) && t.push({
1097
1127
  node: null,
1098
1128
  shadow: e
1099
1129
  }, {
@@ -1105,57 +1135,61 @@ function pt() {
1105
1135
  };
1106
1136
  return t.sanitize = function(e) {
1107
1137
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
1108
- if (zt = !e, zt && (e = "<!-->"), typeof e != "string" && !fn(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");
1109
1139
  if (!t.isSupported) return e;
1110
- 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 = [];
1111
- let c = At && typeof e != "string" && fn(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);
1112
1142
  if (c) {
1143
+ sn(e);
1113
1144
  let t = v ? v(e) : e.nodeName;
1114
1145
  if (typeof t == "string") {
1115
- let e = J(t);
1116
- if (!A[e] || R[e]) throw Pe("root node is forbidden and cannot be sanitized in-place");
1146
+ let n = J(t);
1147
+ if (!P[n] || R[n]) throw rn(e), Ne("root node is forbidden and cannot be sanitized in-place");
1117
1148
  }
1118
- if (dn(e)) throw 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");
1119
1150
  try {
1120
- Sn(e);
1151
+ Tn(e);
1121
1152
  } catch (t) {
1122
1153
  throw rn(e), t;
1123
1154
  }
1124
- } else if (fn(e)) i = sn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === N.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Sn(a);
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);
1125
1156
  else {
1126
- if (!Ct && !V && !H && e.indexOf("<") === -1) return y && Tt ? ie(e) : e;
1127
- if (i = sn(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 : "";
1128
1159
  }
1129
- i && St && Y(i.firstChild);
1130
- let l = cn(c ? e : i);
1160
+ i && wt && X(i.firstChild);
1161
+ let l = c ? e : i;
1131
1162
  try {
1132
- for (; o = l.nextNode();) hn(o), bn(o), Z(o.content) && xn(o.content);
1133
- } catch (t) {
1134
- throw c && rn(e), t;
1163
+ let e = ln(l);
1164
+ for (; o = e.nextNode();) _n(o, l), Cn(o), fn(o.content) && wn(o.content);
1165
+ } catch (n) {
1166
+ throw c && (rn(e), _e(t.removed, (e) => {
1167
+ e.element && Z(e.element);
1168
+ })), n;
1135
1169
  }
1136
1170
  if (c) return _e(t.removed, (e) => {
1137
- e.element && on(e.element);
1138
- }), V && un(e), e;
1139
- if (Ct) {
1140
- if (V && un(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);
1141
1175
  else s = i;
1142
- 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;
1143
1177
  }
1144
- let u = H ? i.outerHTML : i.innerHTML;
1145
- return H && A["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && D(rt, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), V && (u = ln(u)), y && Tt ? ie(u) : u;
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;
1146
1180
  }, t.setConfig = function() {
1147
1181
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1148
- Xt(e), yt = !0, bt = A, xt = F;
1182
+ Xt(e), xt = !0, St = P, Ct = F;
1149
1183
  }, t.clearConfig = function() {
1150
- qt = null, yt = !1, bt = null, xt = null, y = x, b = "";
1184
+ Y = null, xt = !1, St = null, Ct = null, b = ne, x = "";
1151
1185
  }, t.isValidAttribute = function(e, t, n) {
1152
- qt || Xt({});
1186
+ Y || Xt({});
1153
1187
  let r = J(e), i = J(t);
1154
- return $(r, i, n);
1188
+ return vn(r, i, n);
1155
1189
  }, t.addHook = function(e, t) {
1156
- typeof t == "function" && E(T, e) && be(T[e], t);
1190
+ typeof t == "function" && D(T, e) && be(T[e], t);
1157
1191
  }, t.removeHook = function(e, t) {
1158
- if (E(T, e)) {
1192
+ if (D(T, e)) {
1159
1193
  if (t !== void 0) {
1160
1194
  let n = ve(T[e], t);
1161
1195
  return n === -1 ? void 0 : xe(T[e], n, 1)[0];
@@ -1163,31 +1197,45 @@ function pt() {
1163
1197
  return ye(T[e]);
1164
1198
  }
1165
1199
  }, t.removeHooks = function(e) {
1166
- E(T, e) && (T[e] = []);
1200
+ D(T, e) && (T[e] = []);
1167
1201
  }, t.removeAllHooks = function() {
1168
1202
  T = dt();
1169
1203
  }, t;
1170
1204
  }
1171
- var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {}) => {
1172
- let i = {
1173
- depth: n,
1174
- clobber: r
1175
- };
1176
- 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) => {
1177
1209
  e.includes(t) || e.push(t);
1178
- }), 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) => {
1179
- 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], {
1180
- depth: n - 1,
1181
- clobber: r
1182
- })) : (r || typeof e[i] != "object" && typeof t[i] != "object") && (e[i] = t[i]);
1183
- }), e);
1184
- }, "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, {
1185
1233
  s: -40,
1186
1234
  l: 10
1187
1235
  }) : x(e, {
1188
1236
  s: -40,
1189
1237
  l: -10
1190
- }), "mkBorder"), B = class {
1238
+ }), "mkBorder"), ht = class {
1191
1239
  static {
1192
1240
  e(this, "Theme");
1193
1241
  }
@@ -1198,7 +1246,7 @@ var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {
1198
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, {
1199
1247
  h: 180,
1200
1248
  l: 5
1201
- }), 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, {
1202
1250
  h: 210,
1203
1251
  l: 150
1204
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);
@@ -1327,7 +1375,7 @@ var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {
1327
1375
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1328
1376
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1329
1377
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1330
- }, 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;
1331
1379
  }
1332
1380
  calculate(e) {
1333
1381
  if (typeof e != "object") {
@@ -1341,15 +1389,15 @@ var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {
1341
1389
  this[t] = e[t];
1342
1390
  });
1343
1391
  }
1344
- }, mt = /* @__PURE__ */ e((e) => {
1345
- let t = new B();
1392
+ }, z = /* @__PURE__ */ e((e) => {
1393
+ let t = new ht();
1346
1394
  return t.calculate(e), t;
1347
- }, "getThemeVariables"), ht = class {
1395
+ }, "getThemeVariables"), gt = class {
1348
1396
  static {
1349
1397
  e(this, "Theme");
1350
1398
  }
1351
1399
  constructor() {
1352
- 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";
1353
1401
  }
1354
1402
  updateColors() {
1355
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 });
@@ -1467,15 +1515,15 @@ var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {
1467
1515
  this[t] = e[t];
1468
1516
  });
1469
1517
  }
1470
- }, gt = /* @__PURE__ */ e((e) => {
1471
- let t = new ht();
1518
+ }, _t = /* @__PURE__ */ e((e) => {
1519
+ let t = new gt();
1472
1520
  return t.calculate(e), t;
1473
- }, "getThemeVariables"), _t = class {
1521
+ }, "getThemeVariables"), vt = class {
1474
1522
  static {
1475
1523
  e(this, "Theme");
1476
1524
  }
1477
1525
  constructor() {
1478
- 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();
1479
1527
  }
1480
1528
  updateColors() {
1481
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);
@@ -1602,7 +1650,7 @@ var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {
1602
1650
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1603
1651
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1604
1652
  plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
1605
- }, 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;
1606
1654
  }
1607
1655
  calculate(e) {
1608
1656
  if (Object.keys(this).forEach((e) => {
@@ -1618,15 +1666,15 @@ var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {
1618
1666
  this[t] = e[t];
1619
1667
  });
1620
1668
  }
1621
- }, V = /* @__PURE__ */ e((e) => {
1622
- let t = new _t();
1669
+ }, yt = /* @__PURE__ */ e((e) => {
1670
+ let t = new vt();
1623
1671
  return t.calculate(e), t;
1624
- }, "getThemeVariables"), vt = class {
1672
+ }, "getThemeVariables"), B = class {
1625
1673
  static {
1626
1674
  e(this, "Theme");
1627
1675
  }
1628
1676
  constructor() {
1629
- 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))";
1630
1678
  }
1631
1679
  updateColors() {
1632
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);
@@ -1763,7 +1811,7 @@ var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {
1763
1811
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1764
1812
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1765
1813
  plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
1766
- }, 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;
1767
1815
  }
1768
1816
  calculate(e) {
1769
1817
  if (typeof e != "object") {
@@ -1777,15 +1825,15 @@ var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {
1777
1825
  this[t] = e[t];
1778
1826
  });
1779
1827
  }
1780
- }, H = /* @__PURE__ */ e((e) => {
1781
- let t = new vt();
1828
+ }, V = /* @__PURE__ */ e((e) => {
1829
+ let t = new B();
1782
1830
  return t.calculate(e), t;
1783
- }, "getThemeVariables"), yt = class {
1831
+ }, "getThemeVariables"), bt = class {
1784
1832
  static {
1785
1833
  e(this, "Theme");
1786
1834
  }
1787
1835
  constructor() {
1788
- 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))";
1789
1837
  }
1790
1838
  updateColors() {
1791
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";
@@ -1875,7 +1923,7 @@ var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {
1875
1923
  annotationStroke: this.wardley?.annotationStroke || this.lineColor,
1876
1924
  annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
1877
1925
  annotationFill: this.wardley?.annotationFill || this.background
1878
- }, 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;
1879
1927
  }
1880
1928
  calculate(e) {
1881
1929
  if (typeof e != "object") {
@@ -1889,21 +1937,21 @@ var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {
1889
1937
  this[t] = e[t];
1890
1938
  });
1891
1939
  }
1892
- }, bt = /* @__PURE__ */ e((e) => {
1893
- let t = new yt();
1940
+ }, xt = /* @__PURE__ */ e((e) => {
1941
+ let t = new bt();
1894
1942
  return t.calculate(e), t;
1895
- }, "getThemeVariables"), xt = class {
1943
+ }, "getThemeVariables"), St = class {
1896
1944
  static {
1897
1945
  e(this, "Theme");
1898
1946
  }
1899
1947
  constructor() {
1900
- 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";
1901
1949
  }
1902
1950
  updateColors() {
1903
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, {
1904
1952
  h: 180,
1905
1953
  l: 5
1906
- }), 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;
1907
1955
  let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
1908
1956
  h: 180,
1909
1957
  l: 5
@@ -1981,7 +2029,7 @@ var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {
1981
2029
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1982
2030
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1983
2031
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1984
- }, 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;
1985
2033
  }
1986
2034
  calculate(e) {
1987
2035
  if (typeof e != "object") {
@@ -1995,21 +2043,21 @@ var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {
1995
2043
  this[t] = e[t];
1996
2044
  });
1997
2045
  }
1998
- }, St = /* @__PURE__ */ e((e) => {
1999
- let t = new xt();
2046
+ }, Ct = /* @__PURE__ */ e((e) => {
2047
+ let t = new St();
2000
2048
  return t.calculate(e), t;
2001
- }, "getThemeVariables"), Ct = class {
2049
+ }, "getThemeVariables"), wt = class {
2002
2050
  static {
2003
2051
  e(this, "Theme");
2004
2052
  }
2005
2053
  constructor() {
2006
- 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";
2007
2055
  }
2008
2056
  updateColors() {
2009
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, {
2010
2058
  h: 180,
2011
2059
  l: 5
2012
- }), 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, {
2013
2061
  h: 210,
2014
2062
  l: 150
2015
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);
@@ -2082,7 +2130,7 @@ var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {
2082
2130
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2083
2131
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2084
2132
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2085
- }, 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;
2086
2134
  }
2087
2135
  calculate(e) {
2088
2136
  if (typeof e != "object") {
@@ -2096,21 +2144,21 @@ var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {
2096
2144
  this[t] = e[t];
2097
2145
  });
2098
2146
  }
2099
- }, wt = /* @__PURE__ */ e((e) => {
2100
- let t = new Ct();
2147
+ }, Tt = /* @__PURE__ */ e((e) => {
2148
+ let t = new wt();
2101
2149
  return t.calculate(e), t;
2102
- }, "getThemeVariables"), Tt = class {
2150
+ }, "getThemeVariables"), Et = class {
2103
2151
  static {
2104
2152
  e(this, "Theme");
2105
2153
  }
2106
2154
  constructor() {
2107
- 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";
2108
2156
  }
2109
2157
  updateColors() {
2110
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, {
2111
2159
  h: 180,
2112
2160
  l: 5
2113
- }), 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;
2114
2162
  let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
2115
2163
  h: 180,
2116
2164
  l: 5
@@ -2187,7 +2235,7 @@ var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {
2187
2235
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2188
2236
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2189
2237
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2190
- }, 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;
2191
2239
  }
2192
2240
  calculate(e) {
2193
2241
  if (typeof e != "object") {
@@ -2201,21 +2249,21 @@ var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {
2201
2249
  this[t] = e[t];
2202
2250
  });
2203
2251
  }
2204
- }, Et = /* @__PURE__ */ e((e) => {
2205
- let t = new Tt();
2252
+ }, Dt = /* @__PURE__ */ e((e) => {
2253
+ let t = new Et();
2206
2254
  return t.calculate(e), t;
2207
- }, "getThemeVariables"), Dt = class {
2255
+ }, "getThemeVariables"), Ot = class {
2208
2256
  static {
2209
2257
  e(this, "Theme");
2210
2258
  }
2211
2259
  constructor() {
2212
- 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";
2213
2261
  }
2214
2262
  updateColors() {
2215
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, {
2216
2264
  h: 180,
2217
2265
  l: 5
2218
- }), 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, {
2219
2267
  h: 210,
2220
2268
  l: 150
2221
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);
@@ -2288,7 +2336,7 @@ var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {
2288
2336
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2289
2337
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2290
2338
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2291
- }, 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;
2292
2340
  }
2293
2341
  calculate(e) {
2294
2342
  if (typeof e != "object") {
@@ -2302,15 +2350,15 @@ var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {
2302
2350
  this[t] = e[t];
2303
2351
  });
2304
2352
  }
2305
- }, Ot = /* @__PURE__ */ e((e) => {
2306
- let t = new Dt();
2353
+ }, kt = /* @__PURE__ */ e((e) => {
2354
+ let t = new Ot();
2307
2355
  return t.calculate(e), t;
2308
- }, "getThemeVariables"), kt = class {
2356
+ }, "getThemeVariables"), At = class {
2309
2357
  static {
2310
2358
  e(this, "Theme");
2311
2359
  }
2312
2360
  constructor() {
2313
- 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 = [
2314
2362
  "#E879F9",
2315
2363
  "#2DD4BF",
2316
2364
  "#FB923C",
@@ -2342,7 +2390,7 @@ var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {
2342
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, {
2343
2391
  h: 180,
2344
2392
  l: 5
2345
- }), 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;
2346
2394
  let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
2347
2395
  h: 180,
2348
2396
  l: 5
@@ -2416,7 +2464,7 @@ var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {
2416
2464
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2417
2465
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2418
2466
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2419
- }, 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;
2420
2468
  }
2421
2469
  calculate(e) {
2422
2470
  if (typeof e != "object") {
@@ -2430,15 +2478,15 @@ var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {
2430
2478
  this[t] = e[t];
2431
2479
  });
2432
2480
  }
2433
- }, At = /* @__PURE__ */ e((e) => {
2434
- let t = new kt();
2481
+ }, jt = /* @__PURE__ */ e((e) => {
2482
+ let t = new At();
2435
2483
  return t.calculate(e), t;
2436
- }, "getThemeVariables"), jt = class {
2484
+ }, "getThemeVariables"), Mt = class {
2437
2485
  static {
2438
2486
  e(this, "Theme");
2439
2487
  }
2440
2488
  constructor() {
2441
- 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 = [
2442
2490
  "#E879F9",
2443
2491
  "#2DD4BF",
2444
2492
  "#FB923C",
@@ -2457,7 +2505,7 @@ var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {
2457
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, {
2458
2506
  h: 180,
2459
2507
  l: 5
2460
- }), 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";
2461
2509
  for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
2462
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);
2463
2511
  this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
@@ -2526,7 +2574,7 @@ var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {
2526
2574
  yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
2527
2575
  yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
2528
2576
  plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
2529
- }, 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;
2530
2578
  }
2531
2579
  calculate(e) {
2532
2580
  if (typeof e != "object") {
@@ -2540,22 +2588,22 @@ var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {
2540
2588
  this[t] = e[t];
2541
2589
  });
2542
2590
  }
2543
- }, U = {
2544
- base: { getThemeVariables: mt },
2545
- dark: { getThemeVariables: gt },
2546
- default: { getThemeVariables: V },
2547
- forest: { getThemeVariables: H },
2548
- neutral: { getThemeVariables: bt },
2549
- neo: { getThemeVariables: St },
2550
- "neo-dark": { getThemeVariables: wt },
2551
- redux: { getThemeVariables: Et },
2552
- "redux-dark": { getThemeVariables: Ot },
2553
- "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 },
2554
2602
  "redux-dark-color": { getThemeVariables: /* @__PURE__ */ e((e) => {
2555
- let t = new jt();
2603
+ let t = new Mt();
2556
2604
  return t.calculate(e), t;
2557
2605
  }, "getThemeVariables") }
2558
- }, W = {
2606
+ }, U = {
2559
2607
  flowchart: {
2560
2608
  useMaxWidth: !0,
2561
2609
  titleTopMargin: 25,
@@ -3103,8 +3151,8 @@ var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {
3103
3151
  fontSize: 16,
3104
3152
  markdownAutoWrap: !0,
3105
3153
  suppressErrorRendering: !1
3106
- }, Mt = {
3107
- ...W,
3154
+ }, Nt = {
3155
+ ...U,
3108
3156
  deterministicIDSeed: void 0,
3109
3157
  elk: {
3110
3158
  mergeEdges: !1,
@@ -3113,9 +3161,9 @@ var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {
3113
3161
  considerModelOrder: "NODES_AND_EDGES"
3114
3162
  },
3115
3163
  themeCSS: void 0,
3116
- themeVariables: U.default.getThemeVariables(),
3164
+ themeVariables: H.default.getThemeVariables(),
3117
3165
  sequence: {
3118
- ...W.sequence,
3166
+ ...U.sequence,
3119
3167
  messageFont: /* @__PURE__ */ e(function() {
3120
3168
  return {
3121
3169
  fontFamily: this.messageFontFamily,
@@ -3143,12 +3191,12 @@ var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {
3143
3191
  hierarchicalNamespaces: !0
3144
3192
  },
3145
3193
  gantt: {
3146
- ...W.gantt,
3194
+ ...U.gantt,
3147
3195
  tickInterval: void 0,
3148
3196
  useWidth: void 0
3149
3197
  },
3150
3198
  c4: {
3151
- ...W.c4,
3199
+ ...U.c4,
3152
3200
  useWidth: void 0,
3153
3201
  personFont: /* @__PURE__ */ e(function() {
3154
3202
  return {
@@ -3158,7 +3206,7 @@ var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {
3158
3206
  };
3159
3207
  }, "personFont"),
3160
3208
  flowchart: {
3161
- ...W.flowchart,
3209
+ ...U.flowchart,
3162
3210
  inheritDir: !1
3163
3211
  },
3164
3212
  external_personFont: /* @__PURE__ */ e(function() {
@@ -3310,26 +3358,26 @@ var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {
3310
3358
  }, "messageFont")
3311
3359
  },
3312
3360
  pie: {
3313
- ...W.pie,
3361
+ ...U.pie,
3314
3362
  useWidth: 984
3315
3363
  },
3316
3364
  xyChart: {
3317
- ...W.xyChart,
3365
+ ...U.xyChart,
3318
3366
  useWidth: void 0
3319
3367
  },
3320
3368
  requirement: {
3321
- ...W.requirement,
3369
+ ...U.requirement,
3322
3370
  useWidth: void 0
3323
3371
  },
3324
- packet: { ...W.packet },
3325
- eventmodeling: { ...W.eventmodeling },
3372
+ packet: { ...U.packet },
3373
+ eventmodeling: { ...U.eventmodeling },
3326
3374
  treeView: {
3327
- ...W.treeView,
3375
+ ...U.treeView,
3328
3376
  useWidth: void 0
3329
3377
  },
3330
- radar: { ...W.radar },
3378
+ radar: { ...U.radar },
3331
3379
  railroad: {
3332
- ...W.railroad,
3380
+ ...U.railroad,
3333
3381
  fontSize: void 0,
3334
3382
  fontFamily: void 0,
3335
3383
  terminalFill: void 0,
@@ -3347,9 +3395,9 @@ var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {
3347
3395
  specialStroke: void 0,
3348
3396
  ruleNameColor: void 0
3349
3397
  },
3350
- ishikawa: { ...W.ishikawa },
3398
+ ishikawa: { ...U.ishikawa },
3351
3399
  sankey: {
3352
- ...W.sankey,
3400
+ ...U.sankey,
3353
3401
  nodeColors: void 0
3354
3402
  },
3355
3403
  treemap: {
@@ -3364,42 +3412,42 @@ var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {
3364
3412
  labelFontSize: 14,
3365
3413
  valueFormat: ","
3366
3414
  },
3367
- venn: { ...W.venn },
3368
- cynefin: { ...W.cynefin }
3369
- }, 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 ? [
3370
3418
  ...n,
3371
3419
  t + r,
3372
- ...Nt(e[r], "")
3373
- ] : [...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 = {
3374
3422
  nodeColors: /^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,
3375
3423
  filenameIcons: /^[\w-]+(?::[\w-]+)?$/,
3376
3424
  extensionIcons: /^[\w-]+(?::[\w-]+)?$/
3377
- }, Lt = /* @__PURE__ */ e((e, t) => {
3425
+ }, Rt = /* @__PURE__ */ e((e, t) => {
3378
3426
  for (let n of Object.keys(e)) {
3379
3427
  let i = e[n];
3380
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]);
3381
3429
  }
3382
- }, "sanitizeDictionaryConfig"), G = /* @__PURE__ */ e((e) => {
3430
+ }, "sanitizeDictionaryConfig"), zt = /* @__PURE__ */ e((e) => {
3383
3431
  if (r.debug("sanitizeDirective called with", e), !(typeof e != "object" || !e)) {
3384
3432
  if (Array.isArray(e)) {
3385
- e.forEach((e) => G(e));
3433
+ e.forEach((e) => zt(e));
3386
3434
  return;
3387
3435
  }
3388
3436
  for (let t of Object.keys(e)) {
3389
- 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) {
3390
3438
  r.debug("sanitize deleting key: ", t), delete e[t];
3391
3439
  continue;
3392
3440
  }
3393
3441
  if (typeof e[t] == "object") {
3394
- let n = It[t];
3395
- 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]));
3396
3444
  continue;
3397
3445
  }
3398
3446
  for (let n of [
3399
3447
  "themeCSS",
3400
3448
  "fontFamily",
3401
3449
  "altFontFamily"
3402
- ]) 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]));
3403
3451
  }
3404
3452
  if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
3405
3453
  let n = e.themeVariables[t];
@@ -3407,73 +3455,73 @@ var P = pt(), F = /* @__PURE__ */ e((e, t, { depth: n = 2, clobber: r = !1 } = {
3407
3455
  }
3408
3456
  r.debug("After sanitization", e);
3409
3457
  }
3410
- }, "sanitizeDirective"), Rt = /* @__PURE__ */ e((e) => {
3458
+ }, "sanitizeDirective"), W = /* @__PURE__ */ e((e) => {
3411
3459
  let t = 0, n = 0;
3412
3460
  for (let r of e) {
3413
3461
  if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
3414
3462
  r === "{" ? t++ : r === "}" && n++;
3415
3463
  }
3416
3464
  return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
3417
- }, "sanitizeCss"), zt = Object.freeze(Ft), Bt = /* @__PURE__ */ e((e) => !(e === !1 || [
3465
+ }, "sanitizeCss"), G = Object.freeze(It), Bt = /* @__PURE__ */ e((e) => !(e === !1 || [
3418
3466
  "false",
3419
3467
  "null",
3420
3468
  "0"
3421
- ].includes(String(e).trim().toLowerCase())), "evaluate"), K = I({}, zt), Vt, q = [], Ht = I({}, zt), Ut = /* @__PURE__ */ e((e, t) => {
3422
- let n = I({}, e), r = {};
3423
- for (let e of t) Yt(e), r = I(r, e);
3424
- if (n = I(n, r), r.theme && r.theme in U) {
3425
- let e = I(I({}, Vt).themeVariables || {}, r.themeVariables);
3426
- n.theme && n.theme in U && (n.themeVariables = U[n.theme].getThemeVariables(e));
3427
- }
3428
- return Ht = n, tn(Ht), Ht;
3429
- }, "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) => {
3430
- Vt = I({}, e);
3431
- }, "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) => {
3432
3480
  e && (["secure", ...K.secure ?? []].forEach((t) => {
3433
3481
  Object.hasOwn(e, t) && (r.debug(`Denied attempt to modify a secure key ${t}`, e[t]), delete e[t]);
3434
3482
  }), Object.keys(e).forEach((t) => {
3435
3483
  t.startsWith("__") && delete e[t];
3436
3484
  }), Object.keys(e).forEach((t) => {
3437
- 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]);
3438
3486
  }));
3439
- }, "sanitize"), Xt = /* @__PURE__ */ e((e) => {
3440
- 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 = {
3441
3489
  ...e.themeVariables,
3442
3490
  fontFamily: e.fontFamily
3443
3491
  }), q.push(e), Ut(K, q);
3444
- }, "addDirective"), Zt = /* @__PURE__ */ e((e = K) => {
3492
+ }, "addDirective"), Xt = /* @__PURE__ */ e((e = K) => {
3445
3493
  q = [], Ut(e, q);
3446
- }, "reset"), Qt = {
3494
+ }, "reset"), Zt = {
3447
3495
  LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",
3448
3496
  FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
3449
- }, $t = {}, en = /* @__PURE__ */ e((e) => {
3450
- $t[e] || (r.warn(Qt[e]), $t[e] = !0);
3451
- }, "issueWarning"), tn = /* @__PURE__ */ e((e) => {
3452
- e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && en("LAZY_LOAD_DEPRECATED");
3453
- }, "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(() => {
3454
3502
  let e = {};
3455
- Vt && (e = I(e, Vt));
3456
- 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);
3457
3505
  return e;
3458
- }, "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 {
3459
3507
  static {
3460
3508
  e(this, "UnknownDiagramError");
3461
3509
  }
3462
3510
  constructor(e) {
3463
3511
  super(e), this.name = "UnknownDiagramError";
3464
3512
  }
3465
- }, sn = {}, cn = /* @__PURE__ */ e(function(e, t) {
3466
- e = e.replace(rn, "").replace(X, "").replace(an, "\n");
3467
- 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;
3468
3516
  throw new on(`No diagram type detected matching given configuration for text: ${e}`);
3469
- }, "detectType"), ln = /* @__PURE__ */ e((...e) => {
3470
- for (let { id: t, detector: n, loader: r } of e) un(t, n, r);
3471
- }, "registerLazyLoadedDiagrams"), un = /* @__PURE__ */ e((e, t, n) => {
3472
- 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] = {
3473
3521
  detector: t,
3474
3522
  loader: n
3475
3523
  }, r.debug(`Detector with key ${e} added${n ? " with loader" : ""}`);
3476
- }, "addDetector"), dn = /* @__PURE__ */ e((e) => sn[e].loader, "getDiagramLoader"), Z = /<br\s*\/?>/gi, fn = /* @__PURE__ */ e((e) => e ? bn(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), Q = /* @__PURE__ */ (() => {
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__ */ (() => {
3477
3525
  let e = !1;
3478
3526
  return () => {
3479
3527
  e ||= (pn(), !0);
@@ -3488,13 +3536,13 @@ function pn() {
3488
3536
  });
3489
3537
  }
3490
3538
  e(pn, "setupDompurifyHooks");
3491
- var mn = /* @__PURE__ */ e((e) => (Q(), P.sanitize(e)), "removeScript"), hn = /* @__PURE__ */ e((e, t) => {
3492
- if (Y(t)) {
3539
+ var $ = /* @__PURE__ */ e((e) => (fn(), P.sanitize(e)), "removeScript"), mn = /* @__PURE__ */ e((e, t) => {
3540
+ if (nn(t)) {
3493
3541
  let n = t.securityLevel;
3494
- 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));
3495
3543
  }
3496
3544
  return e;
3497
- }, "sanitizeMore"), $ = /* @__PURE__ */ e((e, t) => e && (e = t.dompurifyConfig ? P.sanitize(hn(e, t), t.dompurifyConfig).toString() : P.sanitize(hn(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), gn = /* @__PURE__ */ e((e, t) => typeof e == "string" ? $(e, t) : e.flat().map((e) => $(e, t)), "sanitizeTextOrArray"), _n = /* @__PURE__ */ e((e) => Z.test(e), "hasBreaks"), vn = /* @__PURE__ */ e((e) => e.split(Z), "splitBreaks"), yn = /* @__PURE__ */ e((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), bn = /* @__PURE__ */ e((e) => e.replace(Z, "#br#"), "breakToPlaceholder"), xn = /* @__PURE__ */ e((e) => {
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) => {
3498
3546
  let t = "";
3499
3547
  return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
3500
3548
  }, "getUrl"), Sn = /* @__PURE__ */ e(function(...e) {
@@ -3537,21 +3585,21 @@ var mn = /* @__PURE__ */ e((e) => (Q(), P.sanitize(e)), "removeScript"), hn = /*
3537
3585
  if (!(On() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(kn, "MathML is unsupported in this environment.");
3538
3586
  {
3539
3587
  let { default: n } = await import("./pi-outpost-embed.js").then((e) => e.t), r = t.forceLegacyMathML || !On() && t.legacyMathML ? "htmlAndMathml" : "mathml";
3540
- 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, {
3541
3589
  throwOnError: !0,
3542
3590
  displayMode: !0,
3543
3591
  output: r
3544
3592
  }).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
3545
3593
  }
3546
3594
  return e.replace(kn, "Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.");
3547
- }, "renderKatexUnsanitized"), Nn = /* @__PURE__ */ e(async (e, t) => $(await Mn(e, t), t), "renderKatexSanitized"), Pn = {
3548
- getRows: fn,
3549
- sanitizeText: $,
3595
+ }, "renderKatexUnsanitized"), Nn = /* @__PURE__ */ e(async (e, t) => hn(await Mn(e, t), t), "renderKatexSanitized"), Pn = {
3596
+ getRows: dn,
3597
+ sanitizeText: hn,
3550
3598
  sanitizeTextOrArray: gn,
3551
3599
  hasBreaks: _n,
3552
3600
  splitBreaks: vn,
3553
- lineBreakRegex: Z,
3554
- removeScript: mn,
3601
+ lineBreakRegex: Q,
3602
+ removeScript: $,
3555
3603
  getUrl: xn,
3556
3604
  evaluate: Bt,
3557
3605
  getMax: Sn,
@@ -3580,7 +3628,7 @@ var Vn = /* @__PURE__ */ e((e, t, n, i) => {
3580
3628
  return e in zn && zn[e] ? a = zn[e]({
3581
3629
  ...n,
3582
3630
  svgId: i
3583
- }) : r.warn(`No theme found for ${e}`), ` & {
3631
+ }) : r.warn(`No theme found for ${e}`), `& {
3584
3632
  font-family: ${n.fontFamily};
3585
3633
  font-size: ${n.fontSize};
3586
3634
  fill: ${n.textColor}
@@ -3714,7 +3762,7 @@ t(Wn, {
3714
3762
  setAccTitle: () => Xn,
3715
3763
  setDiagramTitle: () => er
3716
3764
  });
3717
- 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(() => {
3718
3766
  Gn = "", qn = "", Kn = "";
3719
3767
  }, "clear"), Xn = /* @__PURE__ */ e((e) => {
3720
3768
  Gn = Jn(e).replace(/^\s+/g, "");
@@ -3722,8 +3770,8 @@ var Gn = "", Kn = "", qn = "", Jn = /* @__PURE__ */ e((e) => $(e, Jt()), "saniti
3722
3770
  qn = Jn(e).replace(/\n\s+/g, "\n");
3723
3771
  }, "setAccDescription"), $n = /* @__PURE__ */ e(() => qn, "getAccDescription"), er = /* @__PURE__ */ e((e) => {
3724
3772
  Kn = Jn(e);
3725
- }, "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) => {
3726
- 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(), () => {});
3727
3775
  }, "registerDiagram"), fr = /* @__PURE__ */ e((e) => {
3728
3776
  if (e in ur) return ur[e];
3729
3777
  throw new pr(e);
@@ -3736,4 +3784,4 @@ var Gn = "", Kn = "", qn = "", Jn = /* @__PURE__ */ e((e) => $(e, Jt()), "saniti
3736
3784
  }
3737
3785
  };
3738
3786
  //#endregion
3739
- export { P as $, An as A, sr as B, dn as C, V as D, J as E, Nn as F, ar as G, Qn as H, Zt as I, Rn as J, er as K, Rt as L, wn as M, dr as N, xn as O, ln as P, Kt as Q, G as R, fr as S, Y as T, Xn as U, Gt as V, qt as W, Un as X, cr as Y, U as Z, rn as _, Yn as a, m as at, Jt as b, Ln as c, or as d, b as et, Ft as f, Bt as g, X as h, jn as i, g as it, Z as j, nn as k, Bn as l, sn as m, Xt as n, v as nt, Wn as o, a as ot, cn as p, Wt as q, I as r, _ as rt, Pn as s, on as t, y as tt, zt as u, $n as v, tr as w, ir as x, Zn as y, $ as z };
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 };