@sme.up/ketchup2 2.9.0 → 2.10.0
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.
- package/dist/{abnfDiagram-VCTEODGH-DwAVRNNu.js → abnfDiagram-VCTEODGH-jIDWUpNo.js} +3 -3
- package/dist/{architectureDiagram-5GKGNRK7-N1aPr2hw.js → architectureDiagram-5GKGNRK7-C1xA1c3c.js} +5 -5
- package/dist/basic-components/button/button-types.d.ts +2 -2
- package/dist/basic-components/cell/cell-types.d.ts +7 -6
- package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
- package/dist/basic-components/cell/cell-utils.d.ts +10 -4
- package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
- package/dist/basic-components/cell/cell.d.ts.map +1 -1
- package/dist/basic-components/checkbox/checkbox.d.ts.map +1 -1
- package/dist/basic-components/chips/chips.d.ts.map +1 -1
- package/dist/basic-components/date-picker/date-picker-types.d.ts +2 -2
- package/dist/basic-components/date-picker/date-picker-types.d.ts.map +1 -1
- package/dist/basic-components/file-upload/file-upload-types.d.ts +2 -2
- package/dist/basic-components/file-upload/file-upload-types.d.ts.map +1 -1
- package/dist/basic-components/file-upload/file-upload.d.ts.map +1 -1
- package/dist/basic-components/multiple-autocomplete/multiple-autocomplete.d.ts.map +1 -1
- package/dist/basic-components/multiple-select/multiple-select.d.ts.map +1 -1
- package/dist/basic-components/radio/radio.d.ts.map +1 -1
- package/dist/basic-components/slider/slider.d.ts.map +1 -1
- package/dist/basic-components/text/text-types.d.ts +3 -1
- package/dist/basic-components/text/text-types.d.ts.map +1 -1
- package/dist/basic-components/text/text.d.ts.map +1 -1
- package/dist/basic-components/textarea/textarea.d.ts.map +1 -1
- package/dist/basic-components/textfield/textfield-types.d.ts +3 -3
- package/dist/basic-components/textfield/textfield-types.d.ts.map +1 -1
- package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
- package/dist/basic-components/time-picker/time-picker.d.ts.map +1 -1
- package/dist/{blockDiagram-I7D4REHJ-Cu18ws5-.js → blockDiagram-I7D4REHJ-C0hlmHW8.js} +9 -9
- package/dist/{c4Diagram-7LVT6UL2-B-uBy_NE.js → c4Diagram-7LVT6UL2-DwTMAxzR.js} +7 -7
- package/dist/{channel-CuEby436.js → channel-BD0NTdCR.js} +1 -1
- package/dist/{chunk-2E4U76K2-ComA5SPA.js → chunk-2E4U76K2-CMCSmJ5_.js} +6 -6
- package/dist/{chunk-4HAMMTFA-CZgIgrp_.js → chunk-4HAMMTFA-DBtV-sHy.js} +5 -5
- package/dist/{chunk-75Z2AOVW-Drsj7a97.js → chunk-75Z2AOVW-CLjRECiG.js} +1 -1
- package/dist/{chunk-CLGD4ZFX-CLGio9rD.js → chunk-CLGD4ZFX-DdntjE3C.js} +1 -1
- package/dist/{chunk-DU6HZSFF-waeanndy.js → chunk-DU6HZSFF-D9v_2L4Z.js} +950 -860
- package/dist/{chunk-F27PBJKO-jIrOJO87.js → chunk-F27PBJKO-DPhiW07t.js} +1 -1
- package/dist/{chunk-GMAD6QVW-D80II4AD.js → chunk-GMAD6QVW-Cnp61Cie.js} +3 -3
- package/dist/{chunk-GVQU2GXP-DP3t_9Rl.js → chunk-GVQU2GXP-BJ9OHC7T.js} +2 -2
- package/dist/{chunk-IMKFNOWR-8ItzAAcf.js → chunk-IMKFNOWR-yyUcHorm.js} +5 -5
- package/dist/{chunk-L3NEJ4N5-qPot4t6M.js → chunk-L3NEJ4N5-Dd1FmxFn.js} +5 -5
- package/dist/{chunk-OSK3NFVY-CQhPF3Mc.js → chunk-OSK3NFVY-qg1q5TTI.js} +7 -7
- package/dist/{chunk-P2QGCYS3-BUeNZ170.js → chunk-P2QGCYS3-667SFjNY.js} +1 -1
- package/dist/{chunk-POPQ4Y6H-CU9oz17Z.js → chunk-POPQ4Y6H-YFNrkrJW.js} +1 -1
- package/dist/{chunk-PWAF6VOD-D37VoZ8H.js → chunk-PWAF6VOD-z0rQy52m.js} +1 -1
- package/dist/{chunk-SHT3W25Y-Cri27Jke.js → chunk-SHT3W25Y-aBBFlrSX.js} +7 -7
- package/dist/{chunk-SVP7TREG-CyJlOPau.js → chunk-SVP7TREG-f53BROgh.js} +2 -2
- package/dist/{chunk-TICWLB2K-Cw2iT_VD.js → chunk-TICWLB2K-DzrOz9kL.js} +5 -5
- package/dist/{chunk-TLUHSLCS-BdsLNXjt.js → chunk-TLUHSLCS-Drk6ApJR.js} +8 -8
- package/dist/classDiagram-ZZMXUADV-CaI6YU6r.js +30 -0
- package/dist/classDiagram-v2-VYDZK3BY-ClCVTcLo.js +30 -0
- package/dist/components/app-bar/app-bar.data.d.ts.map +1 -1
- package/dist/components/box-list/box-list.d.ts.map +1 -1
- package/dist/components/calendar/calendar-types.d.ts +36 -3
- package/dist/components/calendar/calendar-types.d.ts.map +1 -1
- package/dist/components/calendar/calendar-utils.d.ts +95 -8
- package/dist/components/calendar/calendar-utils.d.ts.map +1 -1
- package/dist/components/calendar/calendar.d.ts.map +1 -1
- package/dist/components/calendar/views/calendar-event-text.d.ts +12 -0
- package/dist/components/calendar/views/calendar-event-text.d.ts.map +1 -0
- package/dist/components/calendar/views/calendar-month-grid.d.ts +10 -2
- package/dist/components/calendar/views/calendar-month-grid.d.ts.map +1 -1
- package/dist/components/calendar/views/calendar-more-events.d.ts +19 -0
- package/dist/components/calendar/views/calendar-more-events.d.ts.map +1 -0
- package/dist/components/calendar/views/calendar-time-grid.d.ts +12 -2
- package/dist/components/calendar/views/calendar-time-grid.d.ts.map +1 -1
- package/dist/components/data-table/data-table-types.d.ts +16 -1
- package/dist/components/data-table/data-table-types.d.ts.map +1 -1
- package/dist/components/data-table/data-table.d.ts.map +1 -1
- package/dist/components/data-table/fixed/fixed-utils.d.ts +63 -0
- package/dist/components/data-table/fixed/fixed-utils.d.ts.map +1 -0
- package/dist/components/data-table/footer/footer-types.d.ts +3 -0
- package/dist/components/data-table/footer/footer-types.d.ts.map +1 -1
- package/dist/components/data-table/footer/footer.d.ts.map +1 -1
- package/dist/components/data-table/group-row/group-row-types.d.ts +9 -0
- package/dist/components/data-table/group-row/group-row-types.d.ts.map +1 -1
- package/dist/components/data-table/group-row/group-row.d.ts.map +1 -1
- package/dist/components/data-table/grouping/buildFlatGroupedRows.d.ts +9 -0
- package/dist/components/data-table/grouping/buildFlatGroupedRows.d.ts.map +1 -1
- package/dist/components/data-table/header/Header.d.ts.map +1 -1
- package/dist/components/data-table/header/header-types.d.ts +5 -0
- package/dist/components/data-table/header/header-types.d.ts.map +1 -1
- package/dist/components/data-table/state/datatable-state.d.ts +1 -1
- package/dist/components/data-table/state/datatable-state.d.ts.map +1 -1
- package/dist/components/drawer/drawer.d.ts.map +1 -1
- package/dist/components/echart-graph-from-tree/echart-graph-from-tree-types.d.ts +14 -0
- package/dist/components/echart-graph-from-tree/echart-graph-from-tree-types.d.ts.map +1 -0
- package/dist/components/echart-graph-from-tree/echart-graph-from-tree.d.ts +11 -0
- package/dist/components/echart-graph-from-tree/echart-graph-from-tree.d.ts.map +1 -0
- package/dist/components/echarts-graph/builders/echarts-graph-builders-advanced.d.ts +26 -0
- package/dist/components/echarts-graph/builders/echarts-graph-builders-advanced.d.ts.map +1 -0
- package/dist/components/echarts-graph/builders/echarts-graph-builders.d.ts +17 -0
- package/dist/components/echarts-graph/builders/echarts-graph-builders.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-data.d.ts +151 -0
- package/dist/components/echarts-graph/data/echarts-graph-data.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-data.test.d.ts +2 -0
- package/dist/components/echarts-graph/data/echarts-graph-data.test.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-frame.d.ts +164 -0
- package/dist/components/echarts-graph/data/echarts-graph-frame.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-math.d.ts +26 -0
- package/dist/components/echarts-graph/data/echarts-graph-math.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-time.d.ts +42 -0
- package/dist/components/echarts-graph/data/echarts-graph-time.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-utils.d.ts +197 -0
- package/dist/components/echarts-graph/data/echarts-graph-utils.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-utils.test.d.ts +2 -0
- package/dist/components/echarts-graph/data/echarts-graph-utils.test.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph-types.d.ts +210 -0
- package/dist/components/echarts-graph/echarts-graph-types.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph.d.ts +15 -0
- package/dist/components/echarts-graph/echarts-graph.d.ts.map +1 -0
- package/dist/components/echarts-graph/theme/echarts-graph-color.d.ts +20 -0
- package/dist/components/echarts-graph/theme/echarts-graph-color.d.ts.map +1 -0
- package/dist/components/echarts-graph/theme/echarts-graph-color.test.d.ts +2 -0
- package/dist/components/echarts-graph/theme/echarts-graph-color.test.d.ts.map +1 -0
- package/dist/components/echarts-graph/theme/echarts-graph-theme.d.ts +58 -0
- package/dist/components/echarts-graph/theme/echarts-graph-theme.d.ts.map +1 -0
- package/dist/components/input-panel/assets/data.d.ts +1 -0
- package/dist/components/input-panel/assets/data.d.ts.map +1 -1
- package/dist/components/input-panel/input-panel-utils.d.ts.map +1 -1
- package/dist/components/input-panel/input-panel.d.ts.map +1 -1
- package/dist/components/pdf/pdf-utils.d.ts.map +1 -1
- package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts.map +1 -1
- package/dist/context/interaction-context.d.ts +16 -0
- package/dist/context/interaction-context.d.ts.map +1 -0
- package/dist/{cynefinDiagram-5FMLGOSQ-3Ha1hdlV.js → cynefinDiagram-5FMLGOSQ-3SByb22K.js} +3 -3
- package/dist/{dagre-GXQ25YYZ-Bg7xf6xn.js → dagre-GXQ25YYZ--Qf92cTs.js} +10 -10
- package/dist/{diagram-S7CK7UJ4-BuDHTdHA.js → diagram-S7CK7UJ4-IhyDbKSO.js} +4 -4
- package/dist/{diagram-UQ7AKVKN-uvzJGj43.js → diagram-UQ7AKVKN-CPDZJAkA.js} +3 -3
- package/dist/{diagram-VSXAHHWV-CrQQCs-B.js → diagram-VSXAHHWV-CdX3XaQX.js} +2 -2
- package/dist/{diagram-VX7I27RA-BNmG1sig.js → diagram-VX7I27RA-DX39g4aO.js} +5 -5
- package/dist/{diagram-Z3DM3KII-B6BrLhP0.js → diagram-Z3DM3KII-DECfAI1l.js} +3 -3
- package/dist/{ebnfDiagram-PWID7BFC-DMx8xAFO.js → ebnfDiagram-PWID7BFC-D0cmYo-k.js} +3 -3
- package/dist/{erDiagram-RLTQ6QDP-bkJ9nzVK.js → erDiagram-RLTQ6QDP-C-nlwQZa.js} +12 -12
- package/dist/flowDiagram-HODETNUW-LRjksS-j.js +17 -0
- package/dist/functional-components/badge/badge-assets.d.ts +1 -0
- package/dist/functional-components/badge/badge-assets.d.ts.map +1 -1
- package/dist/functional-components/badge/badge-utils.d.ts +5 -0
- package/dist/functional-components/badge/badge-utils.d.ts.map +1 -1
- package/dist/functional-components/badge/badge.d.ts.map +1 -1
- package/dist/functional-components/multiple-field/multiple-field-types.d.ts +1 -0
- package/dist/functional-components/multiple-field/multiple-field-types.d.ts.map +1 -1
- package/dist/functional-components/multiple-field/multiple-field.d.ts.map +1 -1
- package/dist/functional-components/row/row-types.d.ts +23 -0
- package/dist/functional-components/row/row-types.d.ts.map +1 -1
- package/dist/functional-components/row/row.d.ts.map +1 -1
- package/dist/{ganttDiagram-EL5Y4UJY-CL-ywzz_.js → ganttDiagram-EL5Y4UJY-qQkBgEV6.js} +2 -2
- package/dist/{gitGraphDiagram-WWUBYQGX-aXhNDG6P.js → gitGraphDiagram-WWUBYQGX-D8cZBZXB.js} +2 -2
- package/dist/hooks/useClickOutside/useClickOutside-assets.d.ts +14 -0
- package/dist/hooks/useClickOutside/useClickOutside-assets.d.ts.map +1 -0
- package/dist/hooks/useClickOutside/useClickOutside.d.ts.map +1 -0
- package/dist/hooks/useFloating.d.ts.map +1 -1
- package/dist/hooks/useVirtualListScroll.d.ts +8 -1
- package/dist/hooks/useVirtualListScroll.d.ts.map +1 -1
- package/dist/index.d.ts +7 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/{infoDiagram-27XIBGKW-Je4heBlk.js → infoDiagram-27XIBGKW-DXO97_PJ.js} +2 -2
- package/dist/{ishikawaDiagram-5VMMS53U-DK7HlH95.js → ishikawaDiagram-5VMMS53U-B0RvuZyG.js} +3 -3
- package/dist/{journeyDiagram-3NMN7TZE-CpuYEKcB.js → journeyDiagram-3NMN7TZE-Dh8_Vc4e.js} +2 -2
- package/dist/{kanban-definition-UXKFOSKX-aK8uKmyY.js → kanban-definition-UXKFOSKX-C99A4PsR.js} +9 -9
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +31668 -29256
- package/dist/{line-DTqYMLoX.js → line-CkNoVxEr.js} +1 -1
- package/dist/locale/en/translation.json.d.ts +5 -0
- package/dist/locale/it/translation.json.d.ts +5 -0
- package/dist/{mindmap-definition-YA3MSWOX-ZMYcmi9J.js → mindmap-definition-YA3MSWOX-D0ULN6M8.js} +11 -11
- package/dist/{pegDiagram-XKGWAZYB-DsfILwZN.js → pegDiagram-XKGWAZYB-BThnA3Uk.js} +3 -3
- package/dist/{pieDiagram-E7YTZNPT-DcSLcLdd.js → pieDiagram-E7YTZNPT-CJ4LPitY.js} +3 -3
- package/dist/{quadrantDiagram-AXDQQJYC-DSx3teop.js → quadrantDiagram-AXDQQJYC-nEwzg95_.js} +1 -1
- package/dist/{railroadDiagram-O6MQD6OU-jOZRtNDi.js → railroadDiagram-O6MQD6OU-D_9gvx5m.js} +3 -3
- package/dist/{requirementDiagram-BXWQKSXE-D14hkkez.js → requirementDiagram-BXWQKSXE-BU3gTMjQ.js} +11 -11
- package/dist/{sankeyDiagram-P5KCCOFB-C0jmknYo.js → sankeyDiagram-P5KCCOFB-BmNN-6y3.js} +1 -1
- package/dist/{sequenceDiagram-WJ2MYXX4-C00egnMz.js → sequenceDiagram-WJ2MYXX4-QYJxbuz_.js} +3 -3
- package/dist/{stateDiagram-D77RDMKH-YfzmviNY.js → stateDiagram-D77RDMKH-0Jasv70t.js} +14 -14
- package/dist/stateDiagram-v2-MP3YSRHH-JMSv8IGL.js +30 -0
- package/dist/{swimlanes-42K2YHIH-CJcMmxXf.js → swimlanes-42K2YHIH-DkMzBkx7.js} +10 -10
- package/dist/swimlanesDiagram-VR7AAH4N-DtnUyaK5.js +31 -0
- package/dist/{timeline-definition-24CTP7MA-D2xfYuSV.js → timeline-definition-24CTP7MA-AvgVPsM_.js} +3 -3
- package/dist/types/data-structures.d.ts +5 -1
- package/dist/types/data-structures.d.ts.map +1 -1
- package/dist/types/translation.d.ts +6 -1
- package/dist/types/translation.d.ts.map +1 -1
- package/dist/utils/floating-layer.d.ts +11 -0
- package/dist/utils/floating-layer.d.ts.map +1 -0
- package/dist/utils/legacy.d.ts +7 -0
- package/dist/utils/legacy.d.ts.map +1 -1
- package/dist/utils/objects.d.ts +20 -1
- package/dist/utils/objects.d.ts.map +1 -1
- package/dist/{vennDiagram-4TSXK5OY-C4XLgus_.js → vennDiagram-4TSXK5OY-DBz_EnfL.js} +3 -3
- package/dist/{wardleyDiagram-VM6X3IG4-DFoKuS9s.js → wardleyDiagram-VM6X3IG4-D4U_E7xl.js} +3 -3
- package/dist/{xychartDiagram-S5SC5T6Z-BzKKgVBe.js → xychartDiagram-S5SC5T6Z-aHqeFP13.js} +6 -6
- package/package.json +4 -4
- package/dist/classDiagram-ZZMXUADV-L32jCfMj.js +0 -30
- package/dist/classDiagram-v2-VYDZK3BY-BsnrDCgX.js +0 -30
- package/dist/components/echarts/echarts-graph-types.d.ts +0 -8
- package/dist/components/echarts/echarts-graph-types.d.ts.map +0 -1
- package/dist/components/echarts/echarts-graph.d.ts +0 -4
- package/dist/components/echarts/echarts-graph.d.ts.map +0 -1
- package/dist/flowDiagram-HODETNUW-BIvD7-ts.js +0 -17
- package/dist/hooks/useClickOutside.d.ts.map +0 -1
- package/dist/stateDiagram-v2-MP3YSRHH-B6Hzx8T0.js +0 -30
- package/dist/swimlanesDiagram-VR7AAH4N-DirvhGBA.js +0 -31
- /package/dist/hooks/{useClickOutside.d.ts → useClickOutside/useClickOutside.d.ts} +0 -0
|
@@ -2,19 +2,25 @@ import { h as e, m as t } from "./src-DQoflmwT.js";
|
|
|
2
2
|
import { n, t as r } from "./chunk-Y2CYZVJY-i11wjrBe.js";
|
|
3
3
|
//#region node_modules/dompurify/dist/purify.es.mjs
|
|
4
4
|
function i(e, t) {
|
|
5
|
+
this.v = e, this.k = t;
|
|
6
|
+
}
|
|
7
|
+
function a(e, t) {
|
|
5
8
|
(t == null || t > e.length) && (t = e.length);
|
|
6
9
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
7
10
|
return r;
|
|
8
11
|
}
|
|
9
|
-
function
|
|
12
|
+
function o(e) {
|
|
10
13
|
if (Array.isArray(e)) return e;
|
|
11
14
|
}
|
|
12
|
-
function
|
|
15
|
+
function s(e, t) {
|
|
13
16
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
14
17
|
if (n != null) {
|
|
15
18
|
var r, i, a, o, s = [], c = !0, l = !1;
|
|
16
19
|
try {
|
|
17
|
-
if (a = (n = n.call(e)).next, t
|
|
20
|
+
if (a = (n = n.call(e)).next, t === 0) {
|
|
21
|
+
if (Object(n) !== n) return;
|
|
22
|
+
c = !1;
|
|
23
|
+
} else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
|
|
18
24
|
} catch (e) {
|
|
19
25
|
l = !0, i = e;
|
|
20
26
|
} finally {
|
|
@@ -27,113 +33,170 @@ function o(e, t) {
|
|
|
27
33
|
return s;
|
|
28
34
|
}
|
|
29
35
|
}
|
|
30
|
-
function
|
|
36
|
+
function c() {
|
|
31
37
|
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
32
38
|
}
|
|
33
|
-
function c(e, t) {
|
|
34
|
-
return a(e) || o(e, t) || l(e, t) || s();
|
|
35
|
-
}
|
|
36
39
|
function l(e, t) {
|
|
40
|
+
return o(e) || s(e, t) || u(e, t) || c();
|
|
41
|
+
}
|
|
42
|
+
function u(e, t) {
|
|
37
43
|
if (e) {
|
|
38
|
-
if (typeof e == "string") return
|
|
44
|
+
if (typeof e == "string") return a(e, t);
|
|
39
45
|
var n = {}.toString.call(e).slice(8, -1);
|
|
40
|
-
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) ?
|
|
46
|
+
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) ? a(e, t) : void 0;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function d(e) {
|
|
50
|
+
var t, n;
|
|
51
|
+
function r(t, n) {
|
|
52
|
+
try {
|
|
53
|
+
var o = e[t](n), s = o.value, c = s instanceof i;
|
|
54
|
+
Promise.resolve(c ? s.v : s).then(function(n) {
|
|
55
|
+
if (c) {
|
|
56
|
+
var i = t === "return" && s.k ? t : "next";
|
|
57
|
+
if (!s.k || n.done) return r(i, n);
|
|
58
|
+
n = e[i](n).value;
|
|
59
|
+
}
|
|
60
|
+
a(!!o.done, n);
|
|
61
|
+
}, function(e) {
|
|
62
|
+
r("throw", e);
|
|
63
|
+
});
|
|
64
|
+
} catch (e) {
|
|
65
|
+
a(2, e);
|
|
66
|
+
}
|
|
41
67
|
}
|
|
68
|
+
function a(e, i) {
|
|
69
|
+
e === 2 ? t.reject(i) : t.resolve({
|
|
70
|
+
value: i,
|
|
71
|
+
done: e
|
|
72
|
+
}), (t = t.next) ? r(t.key, t.arg) : n = null;
|
|
73
|
+
}
|
|
74
|
+
this._invoke = function(e, i) {
|
|
75
|
+
return new Promise(function(a, o) {
|
|
76
|
+
var s = {
|
|
77
|
+
key: e,
|
|
78
|
+
arg: i,
|
|
79
|
+
resolve: a,
|
|
80
|
+
reject: o,
|
|
81
|
+
next: null
|
|
82
|
+
};
|
|
83
|
+
n ? n = n.next = s : (t = n = s, r(e, i));
|
|
84
|
+
});
|
|
85
|
+
}, typeof e.return != "function" && (this.return = void 0);
|
|
42
86
|
}
|
|
43
|
-
|
|
87
|
+
d.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
|
|
88
|
+
return this;
|
|
89
|
+
}, d.prototype.next = function(e) {
|
|
90
|
+
return this._invoke("next", e);
|
|
91
|
+
}, d.prototype.throw = function(e) {
|
|
92
|
+
return this._invoke("throw", e);
|
|
93
|
+
}, d.prototype.return = function(e) {
|
|
94
|
+
return this._invoke("return", e);
|
|
95
|
+
};
|
|
96
|
+
var f = Object.entries, ee = Object.setPrototypeOf, te = Object.isFrozen, ne = Object.getPrototypeOf, re = Object.getOwnPropertyDescriptor, p = Object.freeze, m = Object.seal, ie = Object.create, ae = typeof Reflect < "u" && Reflect, oe = ae.apply, se = ae.construct;
|
|
44
97
|
p ||= function(e) {
|
|
45
98
|
return e;
|
|
46
99
|
}, m ||= function(e) {
|
|
47
100
|
return e;
|
|
48
|
-
},
|
|
101
|
+
}, oe ||= function(e, t) {
|
|
49
102
|
var n = [...arguments].slice(2);
|
|
50
103
|
return e.apply(t, n);
|
|
51
|
-
},
|
|
104
|
+
}, se ||= function(e) {
|
|
52
105
|
return new e(...[...arguments].slice(1));
|
|
53
106
|
};
|
|
54
|
-
var
|
|
55
|
-
|
|
107
|
+
var h = b(Array.prototype.forEach);
|
|
108
|
+
Array.prototype.indexOf;
|
|
109
|
+
var ce = b(Array.prototype.lastIndexOf), le = b(Array.prototype.pop), ue = b(Array.prototype.push), de = b(Array.prototype.slice), fe = b(Array.prototype.splice), pe = Array.isArray, me = De(Set), he = b(Set.prototype.add), ge = b(Set.prototype.has), _e = b(String.prototype.toLowerCase), ve = b(String.prototype.toString), ye = b(String.prototype.match), be = b(String.prototype.replace), xe = b(String.prototype.indexOf), Se = b(String.prototype.trim), Ce = b(Number.prototype.toString), we = b(Boolean.prototype.toString), Te = typeof BigInt > "u" ? null : b(BigInt.prototype.toString), Ee = typeof Symbol > "u" ? null : b(Symbol.prototype.toString), g = b(Object.prototype.hasOwnProperty), _ = b(Object.prototype.toString), v = b(RegExp.prototype.test), y = De(TypeError);
|
|
110
|
+
function b(e) {
|
|
56
111
|
return function(t) {
|
|
57
112
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
58
113
|
var n = [...arguments].slice(1);
|
|
59
|
-
return
|
|
114
|
+
return oe(e, t, n);
|
|
60
115
|
};
|
|
61
116
|
}
|
|
62
|
-
function
|
|
117
|
+
function De(e) {
|
|
63
118
|
return function() {
|
|
64
|
-
return
|
|
119
|
+
return se(e, [...arguments]);
|
|
65
120
|
};
|
|
66
121
|
}
|
|
67
|
-
function
|
|
68
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
69
|
-
if (
|
|
122
|
+
function x(e, t) {
|
|
123
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : _e;
|
|
124
|
+
if (ee && ee(e, null), !pe(t)) return e;
|
|
70
125
|
let r = t.length;
|
|
71
126
|
for (; r--;) {
|
|
72
127
|
let i = t[r];
|
|
73
128
|
if (typeof i == "string") {
|
|
74
129
|
let e = n(i);
|
|
75
|
-
e !== i && (
|
|
130
|
+
e !== i && (te(t) || (t[r] = e), i = e);
|
|
76
131
|
}
|
|
77
132
|
e[i] = !0;
|
|
78
133
|
}
|
|
79
134
|
return e;
|
|
80
135
|
}
|
|
81
|
-
function
|
|
136
|
+
function Oe(e) {
|
|
82
137
|
for (let t = 0; t < e.length; t++) g(e, t) || (e[t] = null);
|
|
83
138
|
return e;
|
|
84
139
|
}
|
|
85
|
-
function
|
|
86
|
-
let t =
|
|
87
|
-
for (let r of
|
|
88
|
-
var n =
|
|
140
|
+
function S(e) {
|
|
141
|
+
let t = ie(null);
|
|
142
|
+
for (let r of f(e)) {
|
|
143
|
+
var n = l(r, 2);
|
|
89
144
|
let i = n[0], a = n[1];
|
|
90
|
-
g(e, i) && (t[i] =
|
|
145
|
+
g(e, i) && (t[i] = pe(a) ? Oe(a) : a && typeof a == "object" && a.constructor === Object ? S(a) : a);
|
|
91
146
|
}
|
|
92
147
|
return t;
|
|
93
148
|
}
|
|
94
|
-
function
|
|
149
|
+
function ke(e) {
|
|
95
150
|
switch (typeof e) {
|
|
96
151
|
case "string": return e;
|
|
97
|
-
case "number": return
|
|
98
|
-
case "boolean": return
|
|
99
|
-
case "bigint": return
|
|
100
|
-
case "symbol": return
|
|
101
|
-
case "undefined": return
|
|
152
|
+
case "number": return Ce(e);
|
|
153
|
+
case "boolean": return we(e);
|
|
154
|
+
case "bigint": return Te ? Te(e) : "0";
|
|
155
|
+
case "symbol": return Ee ? Ee(e) : "Symbol()";
|
|
156
|
+
case "undefined": return _(e);
|
|
102
157
|
case "function":
|
|
103
158
|
case "object": {
|
|
104
|
-
if (e === null) return
|
|
105
|
-
let t = e, n =
|
|
159
|
+
if (e === null) return _(e);
|
|
160
|
+
let t = e, n = C(t, "toString");
|
|
106
161
|
if (typeof n == "function") {
|
|
107
162
|
let e = n(t);
|
|
108
|
-
return typeof e == "string" ? e :
|
|
163
|
+
return typeof e == "string" ? e : _(e);
|
|
109
164
|
}
|
|
110
|
-
return
|
|
165
|
+
return _(e);
|
|
111
166
|
}
|
|
112
|
-
default: return
|
|
167
|
+
default: return _(e);
|
|
113
168
|
}
|
|
114
169
|
}
|
|
115
|
-
function
|
|
170
|
+
function C(e, t) {
|
|
116
171
|
for (; e !== null;) {
|
|
117
|
-
let n =
|
|
172
|
+
let n = re(e, t);
|
|
118
173
|
if (n) {
|
|
119
|
-
if (n.get) return
|
|
120
|
-
if (typeof n.value == "function") return
|
|
174
|
+
if (n.get) return b(n.get);
|
|
175
|
+
if (typeof n.value == "function") return b(n.value);
|
|
121
176
|
}
|
|
122
|
-
e =
|
|
177
|
+
e = ne(e);
|
|
123
178
|
}
|
|
124
179
|
function n() {
|
|
125
180
|
return null;
|
|
126
181
|
}
|
|
127
182
|
return n;
|
|
128
183
|
}
|
|
129
|
-
function
|
|
184
|
+
function Ae(e, t) {
|
|
185
|
+
for (; e !== null;) {
|
|
186
|
+
let n = re(e, t);
|
|
187
|
+
if (n) return n.get ? b(n.get) : null;
|
|
188
|
+
e = ne(e);
|
|
189
|
+
}
|
|
190
|
+
return null;
|
|
191
|
+
}
|
|
192
|
+
function je(e) {
|
|
130
193
|
try {
|
|
131
|
-
return
|
|
194
|
+
return v(e, ""), !0;
|
|
132
195
|
} catch {
|
|
133
196
|
return !1;
|
|
134
197
|
}
|
|
135
198
|
}
|
|
136
|
-
var
|
|
199
|
+
var Me = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), Ne = p(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), Pe = p([
|
|
137
200
|
"feBlend",
|
|
138
201
|
"feColorMatrix",
|
|
139
202
|
"feComponentTransfer",
|
|
@@ -159,7 +222,7 @@ var Ee = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
159
222
|
"feSpotLight",
|
|
160
223
|
"feTile",
|
|
161
224
|
"feTurbulence"
|
|
162
|
-
]),
|
|
225
|
+
]), Fe = p([
|
|
163
226
|
"animate",
|
|
164
227
|
"color-profile",
|
|
165
228
|
"cursor",
|
|
@@ -182,7 +245,7 @@ var Ee = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
182
245
|
"solidcolor",
|
|
183
246
|
"unknown",
|
|
184
247
|
"use"
|
|
185
|
-
]),
|
|
248
|
+
]), Ie = p(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), Le = p([
|
|
186
249
|
"maction",
|
|
187
250
|
"maligngroup",
|
|
188
251
|
"malignmark",
|
|
@@ -198,13 +261,13 @@ var Ee = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
198
261
|
"annotation-xml",
|
|
199
262
|
"mprescripts",
|
|
200
263
|
"none"
|
|
201
|
-
]),
|
|
264
|
+
]), Re = p(["#text"]), ze = p(/* @__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(".")), Be = p(/* @__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.pointer-events.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.vector-effect.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(".")), Ve = p(/* @__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(".")), He = p([
|
|
202
265
|
"xlink:href",
|
|
203
266
|
"xml:id",
|
|
204
267
|
"xlink:title",
|
|
205
268
|
"xml:space",
|
|
206
269
|
"xmlns:xlink"
|
|
207
|
-
]),
|
|
270
|
+
]), Ue = m(/{{[\w\W]*|^[\w\W]*}}/g), We = m(/<%[\w\W]*|^[\w\W]*%>/g), Ge = m(/\${[\w\W]*/g), Ke = m(/^data-[\-\w.\u00B7-\uFFFF]+$/), qe = m(/^aria-[\-\w]+$/), Je = m(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Ye = m(/^(?:\w+script|data):/i), Xe = m(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Ze = m(/^html$/i), Qe = m(/^[a-z][.\w]*(-[.\w]+)+$/i), $e = m(/<[/\w!]/g), et = m(/<[/\w]/g), tt = m(/<\/no(script|embed|frames)/i), nt = m(/\/>/i), w = {
|
|
208
271
|
element: 1,
|
|
209
272
|
attribute: 2,
|
|
210
273
|
text: 3,
|
|
@@ -217,7 +280,7 @@ var Ee = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
217
280
|
documentType: 10,
|
|
218
281
|
documentFragment: 11,
|
|
219
282
|
notation: 12
|
|
220
|
-
},
|
|
283
|
+
}, rt = p(x({}, [
|
|
221
284
|
"style",
|
|
222
285
|
"script",
|
|
223
286
|
"xmp",
|
|
@@ -226,14 +289,9 @@ var Ee = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
226
289
|
"noframes",
|
|
227
290
|
"plaintext",
|
|
228
291
|
"noscript"
|
|
229
|
-
]
|
|
230
|
-
let e = {};
|
|
231
|
-
return oe(w, (t) => {
|
|
232
|
-
e[t] = m(RegExp("</" + t + "(?=[\\t\\n\\f\\r />])", "i"));
|
|
233
|
-
}), p(e);
|
|
234
|
-
}(), $e = function() {
|
|
292
|
+
])), it = function() {
|
|
235
293
|
return typeof window > "u" ? null : window;
|
|
236
|
-
},
|
|
294
|
+
}, at = function(e, t) {
|
|
237
295
|
if (typeof e != "object" || typeof e.createPolicy != "function") return null;
|
|
238
296
|
let n = null, r = "data-tt-policy-suffix";
|
|
239
297
|
t && t.hasAttribute(r) && (n = t.getAttribute(r));
|
|
@@ -250,7 +308,7 @@ var Ee = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
250
308
|
} catch {
|
|
251
309
|
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
252
310
|
}
|
|
253
|
-
},
|
|
311
|
+
}, ot = function() {
|
|
254
312
|
return {
|
|
255
313
|
afterSanitizeAttributes: [],
|
|
256
314
|
afterSanitizeElements: [],
|
|
@@ -262,60 +320,62 @@ var Ee = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
262
320
|
uponSanitizeElement: [],
|
|
263
321
|
uponSanitizeShadowNode: []
|
|
264
322
|
};
|
|
265
|
-
},
|
|
266
|
-
return g(e, t) &&
|
|
267
|
-
},
|
|
323
|
+
}, st = function(e, t, n, r) {
|
|
324
|
+
return g(e, t) && pe(e[t]) ? x(r.base ? S(r.base) : {}, e[t], r.transform) : n;
|
|
325
|
+
}, ct = function(e, t, n) {
|
|
268
326
|
let r = g(e, t) ? e[t] : void 0;
|
|
269
|
-
return r && typeof r == "object" ?
|
|
327
|
+
return r && typeof r == "object" ? S(r) : n();
|
|
270
328
|
};
|
|
271
|
-
function
|
|
272
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
273
|
-
if (t.version = "3.4.
|
|
329
|
+
function lt() {
|
|
330
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : it(), t = (e) => lt(e);
|
|
331
|
+
if (t.version = "3.4.17", t.removed = [], !e || !e.document || e.document.nodeType !== w.document || !e.Element) return t.isSupported = !1, t;
|
|
274
332
|
let n = e.document, r = n, i = r.currentScript;
|
|
275
333
|
e.DocumentFragment;
|
|
276
334
|
let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
|
|
277
335
|
e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
|
|
278
|
-
let l = e.DOMParser,
|
|
279
|
-
return
|
|
280
|
-
},
|
|
281
|
-
return
|
|
336
|
+
let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, ee = C(d, "cloneNode"), te = C(d, "remove"), ne = C(d, "removeAttributeNode"), re = C(d, "nextSibling"), ae = C(d, "childNodes"), oe = C(d, "parentNode"), se = C(d, "shadowRoot"), Ce = C(d, "attributes"), we = o && o.prototype ? C(o.prototype, "nodeType") : null, Te = o && o.prototype ? C(o.prototype, "nodeName") : null, Ee = o && o.prototype ? C(o.prototype, "ownerDocument") : null, _ = function(e) {
|
|
337
|
+
return we ? we(e) : e.nodeType;
|
|
338
|
+
}, b = function(e) {
|
|
339
|
+
return Te ? Te(e) : e.nodeName;
|
|
340
|
+
}, De = Ae(d, "namespaceURI"), Oe = function(e) {
|
|
341
|
+
return De ? De(e) : e.namespaceURI;
|
|
282
342
|
};
|
|
283
343
|
if (typeof a == "function") {
|
|
284
344
|
let e = n.createElement("template");
|
|
285
345
|
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
|
|
286
346
|
}
|
|
287
|
-
let
|
|
288
|
-
if (
|
|
289
|
-
},
|
|
290
|
-
|
|
347
|
+
let T, E = "", D, ut = !1, O = 0, dt = function() {
|
|
348
|
+
if (O > 0) throw y("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.");
|
|
349
|
+
}, k = function(e) {
|
|
350
|
+
dt(), O++;
|
|
291
351
|
try {
|
|
292
|
-
return
|
|
352
|
+
return T.createHTML(e);
|
|
293
353
|
} finally {
|
|
294
|
-
|
|
354
|
+
O--;
|
|
295
355
|
}
|
|
296
|
-
},
|
|
297
|
-
|
|
356
|
+
}, ft = function(e) {
|
|
357
|
+
dt(), O++;
|
|
298
358
|
try {
|
|
299
|
-
return
|
|
359
|
+
return T.createScriptURL(e);
|
|
300
360
|
} finally {
|
|
301
|
-
|
|
361
|
+
O--;
|
|
302
362
|
}
|
|
303
|
-
},
|
|
304
|
-
return
|
|
305
|
-
},
|
|
306
|
-
t.isSupported = typeof
|
|
307
|
-
let
|
|
308
|
-
...
|
|
309
|
-
...De,
|
|
310
|
-
...Oe,
|
|
311
|
-
...Ae,
|
|
312
|
-
...Me
|
|
313
|
-
]), B = null, V = y({}, [
|
|
363
|
+
}, pt = function() {
|
|
364
|
+
return ut ||= (D = at(u, i), !0), D;
|
|
365
|
+
}, A = n, mt = A.implementation, j = A.createNodeIterator, ht = A.createDocumentFragment, M = A.getElementsByTagName, gt = r.importNode, N = ot();
|
|
366
|
+
t.isSupported = typeof f == "function" && typeof oe == "function" && mt && mt.createHTMLDocument !== void 0;
|
|
367
|
+
let P = Ue, _t = We, F = Ge, I = Ke, L = qe, vt = Ye, R = Xe, yt = Qe, z = Je, B = null, V = x({}, [
|
|
368
|
+
...Me,
|
|
314
369
|
...Ne,
|
|
315
370
|
...Pe,
|
|
316
|
-
...
|
|
317
|
-
...
|
|
318
|
-
]), H =
|
|
371
|
+
...Ie,
|
|
372
|
+
...Re
|
|
373
|
+
]), H = null, bt = x({}, [
|
|
374
|
+
...ze,
|
|
375
|
+
...Be,
|
|
376
|
+
...Ve,
|
|
377
|
+
...He
|
|
378
|
+
]), U = Object.seal(ie(null, {
|
|
319
379
|
tagNameCheck: {
|
|
320
380
|
writable: !0,
|
|
321
381
|
configurable: !1,
|
|
@@ -334,7 +394,7 @@ function it() {
|
|
|
334
394
|
enumerable: !0,
|
|
335
395
|
value: !1
|
|
336
396
|
}
|
|
337
|
-
})),
|
|
397
|
+
})), xt = null, St = null, W = Object.seal(ie(null, {
|
|
338
398
|
tagCheck: {
|
|
339
399
|
writable: !0,
|
|
340
400
|
configurable: !1,
|
|
@@ -347,14 +407,14 @@ function it() {
|
|
|
347
407
|
enumerable: !0,
|
|
348
408
|
value: null
|
|
349
409
|
}
|
|
350
|
-
})),
|
|
410
|
+
})), Ct = !0, wt = !0, Tt = !1, Et = !0, G = !1, Dt = !0, Ot = !1, kt = !1, At = null, jt = null, Mt = !1, Nt = !1, Pt = !1, Ft = !1, It = !0, Lt = !1, Rt = "user-content-", K = !0, zt = !1, Bt = null, Vt = {}, Ht = null, Ut = x({}, /* @__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(".")), Wt = null, Gt = x({}, [
|
|
351
411
|
"audio",
|
|
352
412
|
"video",
|
|
353
413
|
"img",
|
|
354
414
|
"source",
|
|
355
415
|
"image",
|
|
356
416
|
"track"
|
|
357
|
-
]),
|
|
417
|
+
]), Kt = null, qt = x({}, [
|
|
358
418
|
"alt",
|
|
359
419
|
"class",
|
|
360
420
|
"for",
|
|
@@ -369,227 +429,260 @@ function it() {
|
|
|
369
429
|
"value",
|
|
370
430
|
"style",
|
|
371
431
|
"xmlns"
|
|
372
|
-
]),
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
],
|
|
432
|
+
]), Jt = "http://www.w3.org/1998/Math/MathML", q = "http://www.w3.org/2000/svg", J = "http://www.w3.org/1999/xhtml", Y = J, Yt = !1, Xt = null, Zt = x({}, [
|
|
433
|
+
Jt,
|
|
434
|
+
q,
|
|
435
|
+
J
|
|
436
|
+
], ve), Qt = p([
|
|
377
437
|
"mi",
|
|
378
438
|
"mo",
|
|
379
439
|
"mn",
|
|
380
440
|
"ms",
|
|
381
441
|
"mtext"
|
|
382
|
-
]),
|
|
442
|
+
]), $t = x({}, Qt), en = p(["annotation-xml"]), tn = x({}, en), nn = x({}, [
|
|
383
443
|
"title",
|
|
384
444
|
"style",
|
|
385
445
|
"font",
|
|
386
446
|
"a",
|
|
387
447
|
"script"
|
|
388
|
-
]),
|
|
448
|
+
]), rn = null, an = ["application/xhtml+xml", "text/html"], X = null, on = null, sn = n.createElement("form"), cn = function(e) {
|
|
389
449
|
return e instanceof RegExp || e instanceof Function;
|
|
390
|
-
},
|
|
450
|
+
}, ln = function() {
|
|
391
451
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
392
|
-
if (
|
|
393
|
-
(!e || typeof e != "object") && (e = {}), e =
|
|
394
|
-
transform:
|
|
395
|
-
base:
|
|
396
|
-
}),
|
|
397
|
-
transform:
|
|
398
|
-
base:
|
|
399
|
-
}),
|
|
400
|
-
let t =
|
|
401
|
-
if (
|
|
452
|
+
if (on && on === e) return;
|
|
453
|
+
(!e || typeof e != "object") && (e = {}), e = S(e), rn = an.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, X = rn === "application/xhtml+xml" ? ve : _e, B = st(e, "ALLOWED_TAGS", V, { transform: X }), H = st(e, "ALLOWED_ATTR", bt, { transform: X }), Xt = st(e, "ALLOWED_NAMESPACES", Zt, { transform: ve }), Kt = st(e, "ADD_URI_SAFE_ATTR", qt, {
|
|
454
|
+
transform: X,
|
|
455
|
+
base: qt
|
|
456
|
+
}), Wt = st(e, "ADD_DATA_URI_TAGS", Gt, {
|
|
457
|
+
transform: X,
|
|
458
|
+
base: Gt
|
|
459
|
+
}), Ht = st(e, "FORBID_CONTENTS", Ut, { transform: X }), xt = st(e, "FORBID_TAGS", S({}), { transform: X }), St = st(e, "FORBID_ATTR", S({}), { transform: X }), Vt = g(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? S(e.USE_PROFILES) : e.USE_PROFILES : !1, Ct = e.ALLOW_ARIA_ATTR !== !1, wt = e.ALLOW_DATA_ATTR !== !1, Tt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Et = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, G = e.SAFE_FOR_TEMPLATES || !1, Dt = e.SAFE_FOR_XML !== !1, Ot = e.WHOLE_DOCUMENT || !1, Nt = e.RETURN_DOM || !1, Pt = e.RETURN_DOM_FRAGMENT || !1, Ft = e.RETURN_TRUSTED_TYPE || !1, Mt = e.FORCE_BODY || !1, It = e.SANITIZE_DOM !== !1, Lt = e.SANITIZE_NAMED_PROPS || !1, K = e.KEEP_CONTENT !== !1, zt = e.IN_PLACE || !1, z = je(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Je, Y = typeof e.NAMESPACE == "string" ? e.NAMESPACE : J, $t = ct(e, "MATHML_TEXT_INTEGRATION_POINTS", () => x({}, Qt)), tn = ct(e, "HTML_INTEGRATION_POINTS", () => x({}, en));
|
|
460
|
+
let t = ct(e, "CUSTOM_ELEMENT_HANDLING", () => ie(null));
|
|
461
|
+
if (U = ie(null), g(t, "tagNameCheck") && cn(t.tagNameCheck) && (U.tagNameCheck = t.tagNameCheck), g(t, "attributeNameCheck") && cn(t.attributeNameCheck) && (U.attributeNameCheck = t.attributeNameCheck), g(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (U.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), m(U), G && (wt = !1), Pt && (Nt = !0), Vt && (B = x({}, Re), H = ie(null), Vt.html === !0 && (x(B, Me), x(H, ze)), Vt.svg === !0 && (x(B, Ne), x(H, Be), x(H, He)), Vt.svgFilters === !0 && (x(B, Pe), x(H, Be), x(H, He)), Vt.mathMl === !0 && (x(B, Ie), x(H, Ve), x(H, He))), W.tagCheck = null, W.attributeCheck = null, g(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? W.tagCheck = e.ADD_TAGS : pe(e.ADD_TAGS) && (B === V && (B = S(B)), x(B, e.ADD_TAGS, X))), g(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? W.attributeCheck = e.ADD_ATTR : pe(e.ADD_ATTR) && (H === bt && (H = S(H)), x(H, e.ADD_ATTR, X))), g(e, "ADD_FORBID_CONTENTS") && pe(e.ADD_FORBID_CONTENTS) && (Ht === Ut && (Ht = S(Ht)), x(Ht, e.ADD_FORBID_CONTENTS, X)), K && (B["#text"] = !0), Ot && x(B, [
|
|
402
462
|
"html",
|
|
403
463
|
"head",
|
|
404
464
|
"body"
|
|
405
|
-
]),
|
|
406
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw
|
|
407
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw
|
|
408
|
-
let t =
|
|
409
|
-
|
|
465
|
+
]), B.table && (x(B, ["tbody"]), delete xt.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
466
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw y("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
467
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw y("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
468
|
+
let t = T;
|
|
469
|
+
T = e.TRUSTED_TYPES_POLICY;
|
|
410
470
|
try {
|
|
411
|
-
|
|
471
|
+
E = k("");
|
|
412
472
|
} catch (e) {
|
|
413
|
-
throw
|
|
473
|
+
throw T = t, e;
|
|
414
474
|
}
|
|
415
|
-
} else e.TRUSTED_TYPES_POLICY === null ? (
|
|
416
|
-
p && p(e),
|
|
417
|
-
},
|
|
418
|
-
...
|
|
419
|
-
...
|
|
420
|
-
...
|
|
421
|
-
]),
|
|
422
|
-
return t.namespaceURI ===
|
|
423
|
-
},
|
|
424
|
-
return t.namespaceURI ===
|
|
425
|
-
},
|
|
426
|
-
return t.namespaceURI ===
|
|
427
|
-
},
|
|
428
|
-
let t =
|
|
429
|
-
(
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
});
|
|
433
|
-
let n = fe(e.tagName), r = fe(t.tagName);
|
|
434
|
-
return Ut[e.namespaceURI] ? e.namespaceURI === Ht ? an(n, t, r) : e.namespaceURI === Vt ? on(n, t, r) : e.namespaceURI === K ? sn(n, t, r) : !!(Xt === "application/xhtml+xml" && Ut[e.namespaceURI]) : !1;
|
|
435
|
-
}, X = function(e) {
|
|
436
|
-
le(t.removed, { element: e });
|
|
475
|
+
} else e.TRUSTED_TYPES_POLICY === null ? (T = void 0, E = "") : (T === void 0 && (T = pt()), T && typeof E == "string" && (E = k("")));
|
|
476
|
+
p && p(e), on = e;
|
|
477
|
+
}, un = x({}, [
|
|
478
|
+
...Ne,
|
|
479
|
+
...Pe,
|
|
480
|
+
...Fe
|
|
481
|
+
]), dn = x({}, [...Ie, ...Le]), fn = function(e, t, n) {
|
|
482
|
+
return t.namespaceURI === J ? e === "svg" : t.namespaceURI === Jt ? e === "svg" && (n === "annotation-xml" || $t[n]) : !!un[e];
|
|
483
|
+
}, pn = function(e, t, n) {
|
|
484
|
+
return t.namespaceURI === J ? e === "math" : t.namespaceURI === q ? e === "math" && tn[n] : !!dn[e];
|
|
485
|
+
}, mn = function(e, t, n) {
|
|
486
|
+
return t.namespaceURI === q && !tn[n] || t.namespaceURI === Jt && !$t[n] ? !1 : !dn[e] && (nn[e] || !un[e]);
|
|
487
|
+
}, hn = function(e) {
|
|
488
|
+
let t = Oe(e), n = _e(b(e)), r = oe(e), i, a;
|
|
489
|
+
return r && _(r) === w.element ? (i = { namespaceURI: Oe(r) }, a = _e(b(r))) : (i = { namespaceURI: Y }, a = "template"), Xt[t] ? t === q ? fn(n, i, a) : t === Jt ? pn(n, i, a) : t === J ? mn(n, i, a) : !!(rn === "application/xhtml+xml" && Xt[t]) : !1;
|
|
490
|
+
}, Z = function(e) {
|
|
491
|
+
ue(t.removed, { element: e });
|
|
437
492
|
try {
|
|
438
|
-
|
|
493
|
+
oe(e).removeChild(e);
|
|
439
494
|
} catch {
|
|
440
|
-
if (te(e), !
|
|
495
|
+
if (te(e), !oe(e)) throw y("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
441
496
|
}
|
|
442
|
-
},
|
|
497
|
+
}, gn = function(e, t, n) {
|
|
443
498
|
try {
|
|
444
|
-
e
|
|
499
|
+
ne(e, t);
|
|
445
500
|
} catch {
|
|
446
501
|
try {
|
|
447
502
|
e.removeAttribute(n);
|
|
448
503
|
} catch {}
|
|
449
504
|
}
|
|
450
|
-
},
|
|
451
|
-
|
|
452
|
-
let t =
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
te(e);
|
|
460
|
-
} catch {}
|
|
461
|
-
});
|
|
462
|
-
}
|
|
463
|
-
let n = ye(e);
|
|
505
|
+
}, _n = function(e) {
|
|
506
|
+
xn(e);
|
|
507
|
+
let t = ae(e);
|
|
508
|
+
t && h(de(t), (e) => {
|
|
509
|
+
try {
|
|
510
|
+
te(e);
|
|
511
|
+
} catch {}
|
|
512
|
+
});
|
|
513
|
+
let n = _(e) === w.element ? Ce(e) : null;
|
|
464
514
|
if (n) for (let t = n.length - 1; t >= 0; --t) {
|
|
465
515
|
let r = n[t], i = r && r.name;
|
|
466
|
-
typeof i == "string" &&
|
|
516
|
+
typeof i == "string" && gn(e, r, i);
|
|
467
517
|
}
|
|
468
|
-
},
|
|
518
|
+
}, vn = function(e, n, r) {
|
|
469
519
|
if (!r) try {
|
|
470
520
|
r = n.getAttributeNode(e);
|
|
471
521
|
} catch {
|
|
472
522
|
r = null;
|
|
473
523
|
}
|
|
474
|
-
|
|
524
|
+
ue(t.removed, {
|
|
475
525
|
attribute: r || null,
|
|
476
526
|
from: n
|
|
477
527
|
});
|
|
478
528
|
try {
|
|
479
|
-
r ? n
|
|
529
|
+
r ? ne(n, r) : n.removeAttribute(e);
|
|
480
530
|
} catch {
|
|
481
531
|
try {
|
|
482
532
|
n.removeAttribute(e);
|
|
483
533
|
} catch {}
|
|
484
534
|
}
|
|
485
535
|
if (e === "is") {
|
|
486
|
-
if (
|
|
487
|
-
|
|
536
|
+
if (Nt || Pt) try {
|
|
537
|
+
Z(n);
|
|
488
538
|
} catch {}
|
|
489
539
|
else try {
|
|
490
540
|
n.setAttribute(e, "");
|
|
491
541
|
} catch {}
|
|
492
542
|
}
|
|
493
|
-
},
|
|
494
|
-
let t =
|
|
543
|
+
}, yn = function(e) {
|
|
544
|
+
let t = Ce(e);
|
|
495
545
|
if (t) for (let n = t.length - 1; n >= 0; --n) {
|
|
496
546
|
let r = t[n], i = r && r.name;
|
|
497
|
-
typeof i != "string" ||
|
|
547
|
+
typeof i != "string" || H[X(i)] || gn(e, r, i);
|
|
498
548
|
}
|
|
499
|
-
},
|
|
500
|
-
let
|
|
501
|
-
for (;
|
|
502
|
-
let e =
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
549
|
+
}, bn = function(e, t) {
|
|
550
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], r = [e];
|
|
551
|
+
for (; r.length > 0;) {
|
|
552
|
+
let e = r.pop();
|
|
553
|
+
if (t(e) === !1) continue;
|
|
554
|
+
if (n && _(e) === w.element) {
|
|
555
|
+
let t = se(e);
|
|
556
|
+
Q(t) && r.push(t);
|
|
557
|
+
}
|
|
558
|
+
let i = ae(e);
|
|
559
|
+
if (i) for (let e = i.length - 1; e >= 0; --e) r.push(i[e]);
|
|
506
560
|
}
|
|
507
|
-
},
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
561
|
+
}, xn = function(e) {
|
|
562
|
+
bn(e, (e) => {
|
|
563
|
+
_(e) === w.element && yn(e);
|
|
564
|
+
});
|
|
565
|
+
}, Sn = function(e) {
|
|
566
|
+
let t = [];
|
|
567
|
+
return bn(e, (e) => {
|
|
568
|
+
t.push(e);
|
|
569
|
+
}, !0), t;
|
|
570
|
+
}, Cn = function(e, t) {
|
|
571
|
+
let n = me();
|
|
572
|
+
h(Sn(e), (e) => {
|
|
573
|
+
_(e) === w.element && he(n, e);
|
|
574
|
+
}), h(t, (e) => {
|
|
575
|
+
_(e) === w.element && !ge(n, e) && yn(e);
|
|
576
|
+
});
|
|
577
|
+
}, wn = function(e, n) {
|
|
578
|
+
let r = !1;
|
|
579
|
+
return h(t.removed, (t) => {
|
|
580
|
+
t.element && (r ||= t.element === e, xn(t.element));
|
|
581
|
+
}), Cn(e, n), r;
|
|
582
|
+
}, Tn = function(e, t) {
|
|
583
|
+
let n = Bt, r = null, i = () => (r || (r = me(), h(t, (e) => {
|
|
584
|
+
he(r, e);
|
|
585
|
+
})), r);
|
|
586
|
+
for (let t = 0;; t++) {
|
|
587
|
+
let r = Sn(e), a = [e], o = !1;
|
|
588
|
+
if (h(r, (e) => {
|
|
589
|
+
_(e) === w.documentFragment ? ue(a, e) : !o && !ge(n, e) && (o = ge(i(), e));
|
|
590
|
+
}), !o) return;
|
|
591
|
+
if (t >= 8) throw y("the tree kept changing during in-place sanitization; refusing to return it");
|
|
592
|
+
h(a, (t, n) => {
|
|
593
|
+
En(t, n > 0, e, i());
|
|
594
|
+
});
|
|
595
|
+
}
|
|
596
|
+
}, En = function(e, t, n, r) {
|
|
597
|
+
let i = jn(e), a;
|
|
598
|
+
for (; a = i.nextNode();) !ge(r, a) || ge(Bt, a) || (t && $(N.uponSanitizeShadowNode, a, null), Hn(a, n), Yn(a, n), Q(a.content) && Xn(a.content));
|
|
599
|
+
}, Dn = function(e) {
|
|
600
|
+
Bt && he(Bt, e);
|
|
601
|
+
}, On = function(e, t) {
|
|
602
|
+
return Dt ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
|
|
603
|
+
}, kn = function(e) {
|
|
604
|
+
Dt && bn(e, (e) => {
|
|
605
|
+
let t = _(e);
|
|
606
|
+
if (t === w.processingInstruction || t === w.comment && v(et, e.data)) {
|
|
515
607
|
try {
|
|
516
608
|
te(e);
|
|
517
609
|
} catch {}
|
|
518
|
-
|
|
610
|
+
return !1;
|
|
519
611
|
}
|
|
520
|
-
if (
|
|
521
|
-
let t = e, n =
|
|
612
|
+
if (t === w.element) {
|
|
613
|
+
let t = e, n = X(b(e));
|
|
522
614
|
try {
|
|
523
|
-
t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") &&
|
|
615
|
+
t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && On("for", n) && t.removeAttribute("for");
|
|
524
616
|
} catch {}
|
|
525
617
|
}
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
}, hn = function(e) {
|
|
618
|
+
return !0;
|
|
619
|
+
});
|
|
620
|
+
}, An = function(e) {
|
|
530
621
|
let t = null, r = null;
|
|
531
|
-
if (
|
|
622
|
+
if (Mt) e = "<remove></remove>" + e;
|
|
532
623
|
else {
|
|
533
|
-
let t =
|
|
624
|
+
let t = ye(e, /^[\r\n\t ]+/);
|
|
534
625
|
r = t && t[0];
|
|
535
626
|
}
|
|
536
|
-
|
|
537
|
-
let i =
|
|
538
|
-
if (
|
|
539
|
-
t = new l().parseFromString(i,
|
|
627
|
+
rn === "application/xhtml+xml" && Y === J && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
628
|
+
let i = T ? k(e) : e;
|
|
629
|
+
if (Y === J) try {
|
|
630
|
+
t = new l().parseFromString(i, rn);
|
|
540
631
|
} catch {}
|
|
541
632
|
if (!t || !t.documentElement) {
|
|
542
|
-
t =
|
|
633
|
+
t = mt.createDocument(Y, "template", null);
|
|
543
634
|
try {
|
|
544
|
-
t.documentElement.innerHTML =
|
|
635
|
+
t.documentElement.innerHTML = Yt ? E : i;
|
|
545
636
|
} catch {}
|
|
546
637
|
}
|
|
547
638
|
let a = t.body || t.documentElement;
|
|
548
|
-
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null),
|
|
549
|
-
},
|
|
550
|
-
let t =
|
|
551
|
-
return
|
|
552
|
-
},
|
|
553
|
-
return e =
|
|
554
|
-
},
|
|
555
|
-
e
|
|
556
|
-
let t =
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
i && oe(i, (e) => {
|
|
560
|
-
bn(e.content) && vn(e.content);
|
|
639
|
+
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Y === J ? M.call(t, Ot ? "html" : "body")[0] : Ot ? t.documentElement : a;
|
|
640
|
+
}, jn = function(e) {
|
|
641
|
+
let t = Ee ? Ee(e) : e.ownerDocument;
|
|
642
|
+
return j.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
|
|
643
|
+
}, Mn = function(e) {
|
|
644
|
+
return e = be(e, P, " "), e = be(e, _t, " "), e = be(e, F, " "), e;
|
|
645
|
+
}, Nn = function(e) {
|
|
646
|
+
Pn(e);
|
|
647
|
+
let t = e.querySelectorAll?.call(e, "template");
|
|
648
|
+
t && h(t, (e) => {
|
|
649
|
+
Q(e.content) && Nn(e.content);
|
|
561
650
|
});
|
|
562
|
-
},
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
651
|
+
}, Pn = function(e) {
|
|
652
|
+
e.normalize();
|
|
653
|
+
let t = Ee ? Ee(e) : e.ownerDocument, n = j.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
|
|
654
|
+
for (; r;) r.data = Mn(r.data), r = n.nextNode();
|
|
655
|
+
}, Fn = function(e) {
|
|
656
|
+
let t = Te ? Te(e) : null;
|
|
657
|
+
return typeof t != "string" || X(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== Ce(e) || typeof e.removeAttribute != "function" || typeof e.removeAttributeNode != "function" || typeof e.getAttributeNode != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== we(e) || e.childNodes !== ae(e);
|
|
658
|
+
}, Q = function(e) {
|
|
659
|
+
if (!we || typeof e != "object" || !e) return !1;
|
|
567
660
|
try {
|
|
568
|
-
return
|
|
661
|
+
return we(e) === w.documentFragment;
|
|
569
662
|
} catch {
|
|
570
663
|
return !1;
|
|
571
664
|
}
|
|
572
|
-
},
|
|
573
|
-
if (!
|
|
665
|
+
}, In = function(e) {
|
|
666
|
+
if (!we || typeof e != "object" || !e) return !1;
|
|
574
667
|
try {
|
|
575
|
-
return typeof
|
|
668
|
+
return typeof we(e) == "number";
|
|
576
669
|
} catch {
|
|
577
670
|
return !1;
|
|
578
671
|
}
|
|
579
672
|
};
|
|
580
673
|
function $(e, n, r) {
|
|
581
|
-
e.length !== 0 &&
|
|
582
|
-
e.call(t, n, r,
|
|
674
|
+
e.length !== 0 && h(e, (e) => {
|
|
675
|
+
e.call(t, n, r, on);
|
|
583
676
|
});
|
|
584
677
|
}
|
|
585
|
-
let
|
|
586
|
-
return !!(
|
|
587
|
-
},
|
|
588
|
-
return e instanceof RegExp ?
|
|
589
|
-
},
|
|
590
|
-
if (!
|
|
591
|
-
if (
|
|
592
|
-
let t =
|
|
678
|
+
let Ln = function(e, t) {
|
|
679
|
+
return !!(Dt && e.hasChildNodes() && !In(e.firstElementChild) && v($e, e.textContent) && v($e, e.innerHTML) || Dt && rt[t] && _(e) === w.element && Oe(e) === J && (In(e.firstElementChild) || typeof e.textContent == "string" && v($e, e.textContent)) || e.nodeType === w.processingInstruction || Dt && e.nodeType === w.comment && v(et, e.data));
|
|
680
|
+
}, Rn = function(e, t) {
|
|
681
|
+
return e instanceof RegExp ? v(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
|
|
682
|
+
}, zn = function(e, t, n) {
|
|
683
|
+
if (!xt[t] && Gn(t) && Rn(U.tagNameCheck, t)) return !1;
|
|
684
|
+
if (K && !Ht[t] && !Ht[_e(t)]) {
|
|
685
|
+
let t = oe(e), r = ae(e);
|
|
593
686
|
if (r && t) {
|
|
594
687
|
let i = r.length;
|
|
595
688
|
for (let a = i - 1; a >= 0; --a) {
|
|
@@ -598,35 +691,35 @@ function it() {
|
|
|
598
691
|
}
|
|
599
692
|
}
|
|
600
693
|
}
|
|
601
|
-
return
|
|
602
|
-
},
|
|
603
|
-
return e.length === 0 ? t : t === n || t === r ?
|
|
604
|
-
},
|
|
605
|
-
return e === t ||
|
|
606
|
-
},
|
|
607
|
-
if ($(
|
|
608
|
-
if (
|
|
609
|
-
let r =
|
|
610
|
-
if (
|
|
694
|
+
return Z(e), !0;
|
|
695
|
+
}, Bn = function(e, t, n, r) {
|
|
696
|
+
return e.length === 0 ? t : t === n || t === r ? S(t) : t;
|
|
697
|
+
}, Vn = function(e, t) {
|
|
698
|
+
return e === t || oe(e) !== null ? !1 : (zt && xn(e), !0);
|
|
699
|
+
}, Hn = function(e, n) {
|
|
700
|
+
if (Dn(e), $(N.beforeSanitizeElements, e, null), Vn(e, n)) return !0;
|
|
701
|
+
if (Fn(e)) return Z(e), !0;
|
|
702
|
+
let r = X(b(e));
|
|
703
|
+
if (B = Bn(N.uponSanitizeElement, B, V, At), $(N.uponSanitizeElement, e, {
|
|
611
704
|
tagName: r,
|
|
612
|
-
allowedTags:
|
|
613
|
-
}),
|
|
614
|
-
if (
|
|
615
|
-
if (
|
|
616
|
-
let t =
|
|
617
|
-
return t === !1 && $(
|
|
705
|
+
allowedTags: B
|
|
706
|
+
}), Vn(e, n)) return !0;
|
|
707
|
+
if (Ln(e, r)) return Z(e), !0;
|
|
708
|
+
if (xt[r] || !(W.tagCheck instanceof Function && W.tagCheck(r)) && !B[r]) {
|
|
709
|
+
let t = zn(e, r, n);
|
|
710
|
+
return t === !1 && ($(N.afterSanitizeElements, e, null), Vn(e, n)) ? !0 : t;
|
|
618
711
|
}
|
|
619
|
-
if (
|
|
620
|
-
if (
|
|
621
|
-
let n =
|
|
622
|
-
e.textContent !== n && (
|
|
712
|
+
if (_(e) === w.element && !hn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && v(tt, e.innerHTML)) return Z(e), !0;
|
|
713
|
+
if (G && e.nodeType === w.text) {
|
|
714
|
+
let n = Mn(e.textContent);
|
|
715
|
+
e.textContent !== n && (ue(t.removed, { element: e.cloneNode() }), e.textContent = n);
|
|
623
716
|
}
|
|
624
|
-
return $(
|
|
625
|
-
},
|
|
626
|
-
if (
|
|
627
|
-
let i =
|
|
628
|
-
return
|
|
629
|
-
},
|
|
717
|
+
return $(N.afterSanitizeElements, e, null), Vn(e, n);
|
|
718
|
+
}, Un = function(e, t, r) {
|
|
719
|
+
if (St[t] || On(t, e) || It && (t === "id" || t === "name") && (r in n || r in sn)) return !1;
|
|
720
|
+
let i = H[t] || W.attributeCheck instanceof Function && W.attributeCheck(t, e);
|
|
721
|
+
return wt && v(I, t) || Ct && v(L, t) ? !0 : i ? Kt[t] || v(z, be(r, R, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && xe(r, "data:") === 0 && Wt[e] || Tt && !v(vt, be(r, R, "")) ? !0 : !r : Gn(e) && Rn(U.tagNameCheck, e) && Rn(U.attributeNameCheck, t, e) || t === "is" && U.allowCustomizedBuiltInElements && Rn(U.tagNameCheck, r);
|
|
722
|
+
}, Wn = x({}, [
|
|
630
723
|
"annotation-xml",
|
|
631
724
|
"color-profile",
|
|
632
725
|
"font-face",
|
|
@@ -635,67 +728,65 @@ function it() {
|
|
|
635
728
|
"font-face-src",
|
|
636
729
|
"font-face-uri",
|
|
637
730
|
"missing-glyph"
|
|
638
|
-
]),
|
|
639
|
-
return !
|
|
640
|
-
},
|
|
641
|
-
if (
|
|
642
|
-
case "TrustedHTML": return
|
|
643
|
-
case "TrustedScriptURL": return
|
|
731
|
+
]), Gn = function(e) {
|
|
732
|
+
return !Wn[_e(e)] && v(yt, e);
|
|
733
|
+
}, Kn = function(e, t, n, r) {
|
|
734
|
+
if (T && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
|
|
735
|
+
case "TrustedHTML": return k(r);
|
|
736
|
+
case "TrustedScriptURL": return ft(r);
|
|
644
737
|
}
|
|
645
738
|
return r;
|
|
646
|
-
},
|
|
739
|
+
}, qn = function(e, t, n, r) {
|
|
647
740
|
try {
|
|
648
|
-
|
|
741
|
+
return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !Fn(e) || (Z(e), !1);
|
|
649
742
|
} catch {
|
|
650
|
-
|
|
743
|
+
return vn(t, e), !1;
|
|
651
744
|
}
|
|
652
|
-
},
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
if (
|
|
656
|
-
|
|
657
|
-
|
|
745
|
+
}, Jn = function(e, t) {
|
|
746
|
+
return Dt && v(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, t) ? !0 : _e(e) === "attributename" && ye(t, "href") !== null;
|
|
747
|
+
}, Yn = function(e, n) {
|
|
748
|
+
if ($(N.beforeSanitizeAttributes, e, null), Vn(e, n)) return;
|
|
749
|
+
let r = e.attributes;
|
|
750
|
+
if (!r || Fn(e)) return;
|
|
751
|
+
H = Bn(N.uponSanitizeAttribute, H, bt, jt);
|
|
752
|
+
let i = {
|
|
658
753
|
attrName: "",
|
|
659
754
|
attrValue: "",
|
|
660
755
|
keepAttr: !0,
|
|
661
|
-
allowedAttributes:
|
|
756
|
+
allowedAttributes: H,
|
|
662
757
|
forceKeepAttr: void 0
|
|
663
|
-
},
|
|
664
|
-
for (;
|
|
665
|
-
let
|
|
666
|
-
if (
|
|
667
|
-
|
|
668
|
-
continue;
|
|
669
|
-
}
|
|
670
|
-
if (l === "attributename" && me(d, "href")) {
|
|
671
|
-
Z(o, e, a);
|
|
758
|
+
}, a = r.length, o = X(e.nodeName);
|
|
759
|
+
for (; a--;) {
|
|
760
|
+
let n = r[a], s = n.name, c = n.namespaceURI, l = n.value, u = X(s), d = l, f = s === "value" ? d : Se(d), ee = !1;
|
|
761
|
+
if (i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, $(N.uponSanitizeAttribute, e, i), f = i.attrValue, Lt && (u === "id" || u === "name") && xe(f, Rt) !== 0 && (vn(s, e, n), f = Rt + f, ee = !0), Jn(s, f)) {
|
|
762
|
+
vn(s, e, n);
|
|
672
763
|
continue;
|
|
673
764
|
}
|
|
674
|
-
if (!
|
|
675
|
-
if (!
|
|
676
|
-
|
|
765
|
+
if (!i.forceKeepAttr) {
|
|
766
|
+
if (!i.keepAttr) {
|
|
767
|
+
vn(s, e, n);
|
|
677
768
|
continue;
|
|
678
769
|
}
|
|
679
|
-
if (!
|
|
680
|
-
|
|
770
|
+
if (!Et && v(nt, f)) {
|
|
771
|
+
vn(s, e, n);
|
|
681
772
|
continue;
|
|
682
773
|
}
|
|
683
|
-
if (
|
|
684
|
-
|
|
774
|
+
if (G && (f = Mn(f)), !Un(o, u, f)) {
|
|
775
|
+
vn(s, e, n);
|
|
685
776
|
continue;
|
|
686
777
|
}
|
|
687
|
-
|
|
778
|
+
f = Kn(o, u, c, f), f !== d && qn(e, s, c, f) && ee && le(t.removed);
|
|
688
779
|
}
|
|
689
780
|
}
|
|
690
|
-
$(
|
|
691
|
-
},
|
|
692
|
-
let t = null, n =
|
|
693
|
-
for ($(
|
|
694
|
-
let e =
|
|
695
|
-
|
|
781
|
+
$(N.afterSanitizeAttributes, e, null), Vn(e, n);
|
|
782
|
+
}, Xn = function(e) {
|
|
783
|
+
let t = null, n = jn(e);
|
|
784
|
+
for ($(N.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(N.uponSanitizeShadowNode, t, null), Hn(t, e), Yn(t, e), Q(t.content) && Xn(t.content), _(t) === w.element) {
|
|
785
|
+
let e = se(t);
|
|
786
|
+
Q(e) && (Zn(e), Xn(e));
|
|
696
787
|
}
|
|
697
|
-
$(
|
|
698
|
-
},
|
|
788
|
+
G && Pn(e), $(N.afterSanitizeShadowDOM, e, null);
|
|
789
|
+
}, Zn = function(e) {
|
|
699
790
|
let t = [{
|
|
700
791
|
node: e,
|
|
701
792
|
shadow: null
|
|
@@ -703,27 +794,27 @@ function it() {
|
|
|
703
794
|
for (; t.length > 0;) {
|
|
704
795
|
let e = t.pop();
|
|
705
796
|
if (e.shadow) {
|
|
706
|
-
|
|
797
|
+
Xn(e.shadow);
|
|
707
798
|
continue;
|
|
708
799
|
}
|
|
709
|
-
let n = e.node, r =
|
|
800
|
+
let n = e.node, r = _(n) === w.element, i = ae(n);
|
|
710
801
|
if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
|
|
711
802
|
node: i[e],
|
|
712
803
|
shadow: null
|
|
713
804
|
});
|
|
714
805
|
if (r) {
|
|
715
|
-
let e =
|
|
716
|
-
if (typeof e == "string" &&
|
|
806
|
+
let e = Te ? Te(n) : null;
|
|
807
|
+
if (typeof e == "string" && X(e) === "template") {
|
|
717
808
|
let e = n.content;
|
|
718
|
-
|
|
809
|
+
Q(e) && t.push({
|
|
719
810
|
node: e,
|
|
720
811
|
shadow: null
|
|
721
812
|
});
|
|
722
813
|
}
|
|
723
814
|
}
|
|
724
815
|
if (r) {
|
|
725
|
-
let e =
|
|
726
|
-
|
|
816
|
+
let e = se(n);
|
|
817
|
+
Q(e) && t.push({
|
|
727
818
|
node: null,
|
|
728
819
|
shadow: e
|
|
729
820
|
}, {
|
|
@@ -735,74 +826,73 @@ function it() {
|
|
|
735
826
|
};
|
|
736
827
|
return t.sanitize = function(e) {
|
|
737
828
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
|
|
738
|
-
if (
|
|
829
|
+
if (Yt = !e, Yt && (e = "<!-->"), typeof e != "string" && !In(e) && (e = ke(e), typeof e != "string")) throw y("dirty is not a string, aborting");
|
|
739
830
|
if (!t.isSupported) return e;
|
|
740
|
-
|
|
741
|
-
let c =
|
|
831
|
+
kt ? (B = At, H = jt) : ln(n), (N.uponSanitizeElement.length > 0 || N.uponSanitizeAttribute.length > 0) && (B = S(B)), N.uponSanitizeAttribute.length > 0 && (H = S(H)), t.removed = [];
|
|
832
|
+
let c = zt && typeof e != "string" && In(e), l = [], u = Bt;
|
|
742
833
|
if (c) {
|
|
743
|
-
|
|
744
|
-
let t =
|
|
834
|
+
kn(e);
|
|
835
|
+
let t = b(e);
|
|
745
836
|
if (typeof t == "string") {
|
|
746
|
-
let n =
|
|
747
|
-
if (!
|
|
837
|
+
let n = X(t);
|
|
838
|
+
if (!B[n] || xt[n]) throw _n(e), y("root node is forbidden and cannot be sanitized in-place");
|
|
748
839
|
}
|
|
749
|
-
if (
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
} catch (t) {
|
|
753
|
-
throw un(e), t;
|
|
754
|
-
}
|
|
755
|
-
} else if (Q(e)) i = hn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === C.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Pn(a);
|
|
840
|
+
if (Fn(e)) throw _n(e), y("root node is clobbered and cannot be sanitized in-place");
|
|
841
|
+
l = Sn(e), Bt = me();
|
|
842
|
+
} else if (In(e)) i = An("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === w.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Zn(i);
|
|
756
843
|
else {
|
|
757
|
-
if (!
|
|
758
|
-
if (i =
|
|
844
|
+
if (!Nt && !G && !Ot && e.indexOf("<") === -1) return T && Ft ? k(e) : e;
|
|
845
|
+
if (i = An(e), !i) return Nt ? null : Ft ? E : "";
|
|
759
846
|
}
|
|
760
|
-
i &&
|
|
761
|
-
let
|
|
847
|
+
i && Mt && Z(i.firstChild);
|
|
848
|
+
let d = c ? e : i;
|
|
762
849
|
try {
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
850
|
+
c && Zn(e);
|
|
851
|
+
let t = jn(d);
|
|
852
|
+
for (; o = t.nextNode();) Hn(o, d), Yn(o, d), Q(o.content) && Xn(o.content);
|
|
853
|
+
c && Tn(e, l);
|
|
854
|
+
} catch (t) {
|
|
855
|
+
throw c && (_n(e), wn(e, l)), t;
|
|
856
|
+
} finally {
|
|
857
|
+
Bt = u;
|
|
769
858
|
}
|
|
770
|
-
if (c)
|
|
771
|
-
e
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
859
|
+
if (c) {
|
|
860
|
+
if (wn(e, l)) throw y("a node selected for removal could not be safely returned; refusing to sanitize in place");
|
|
861
|
+
return G && Nn(e), e;
|
|
862
|
+
}
|
|
863
|
+
if (Nt) {
|
|
864
|
+
if (G && Nn(i), Pt) for (s = ht.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
|
|
775
865
|
else s = i;
|
|
776
|
-
return (
|
|
866
|
+
return (H.shadowroot || H.shadowrootmode) && (s = gt.call(r, s, !0)), s;
|
|
777
867
|
}
|
|
778
|
-
let
|
|
779
|
-
return
|
|
868
|
+
let f = Ot ? i.outerHTML : i.innerHTML;
|
|
869
|
+
return Ot && B["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && v(Ze, i.ownerDocument.doctype.name) && (f = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + f), G && (f = Mn(f)), T && Ft ? k(f) : f;
|
|
780
870
|
}, t.setConfig = function() {
|
|
781
871
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
782
|
-
|
|
872
|
+
ln(e), kt = !0, At = B, jt = H;
|
|
783
873
|
}, t.clearConfig = function() {
|
|
784
|
-
|
|
874
|
+
on = null, kt = !1, At = null, jt = null, T = D, E = "";
|
|
785
875
|
}, t.isValidAttribute = function(e, t, n) {
|
|
786
|
-
|
|
787
|
-
let r =
|
|
788
|
-
return
|
|
876
|
+
on || ln({});
|
|
877
|
+
let r = X(e), i = X(t);
|
|
878
|
+
return typeof n == "string" && (Jn(t, n) || !Et && v(nt, n)) ? !1 : Un(r, i, n);
|
|
789
879
|
}, t.addHook = function(e, t) {
|
|
790
|
-
typeof t == "function" && g(
|
|
880
|
+
typeof t == "function" && g(N, e) && ue(N[e], t);
|
|
791
881
|
}, t.removeHook = function(e, t) {
|
|
792
|
-
if (g(
|
|
882
|
+
if (g(N, e)) {
|
|
793
883
|
if (t !== void 0) {
|
|
794
|
-
let n =
|
|
795
|
-
return n === -1 ? void 0 :
|
|
884
|
+
let n = ce(N[e], t);
|
|
885
|
+
return n === -1 ? void 0 : fe(N[e], n, 1)[0];
|
|
796
886
|
}
|
|
797
|
-
return
|
|
887
|
+
return le(N[e]);
|
|
798
888
|
}
|
|
799
889
|
}, t.removeHooks = function(e) {
|
|
800
|
-
g(
|
|
890
|
+
g(N, e) && (N[e] = []);
|
|
801
891
|
}, t.removeAllHooks = function() {
|
|
802
|
-
|
|
892
|
+
N = ot();
|
|
803
893
|
}, t;
|
|
804
894
|
}
|
|
805
|
-
var T =
|
|
895
|
+
var T = lt(), E = {
|
|
806
896
|
min: {
|
|
807
897
|
r: 0,
|
|
808
898
|
g: 0,
|
|
@@ -839,9 +929,9 @@ var T = it(), at = {
|
|
|
839
929
|
e /= 360, t /= 100, n /= 100;
|
|
840
930
|
let i = n < .5 ? n * (1 + t) : n + t - n * t, a = 2 * n - i;
|
|
841
931
|
switch (r) {
|
|
842
|
-
case "r": return
|
|
843
|
-
case "g": return
|
|
844
|
-
case "b": return
|
|
932
|
+
case "r": return E.hue2rgb(a, i, e + 1 / 3) * 255;
|
|
933
|
+
case "g": return E.hue2rgb(a, i, e) * 255;
|
|
934
|
+
case "b": return E.hue2rgb(a, i, e - 1 / 3) * 255;
|
|
845
935
|
}
|
|
846
936
|
},
|
|
847
937
|
rgb2hsl: ({ r: e, g: t, b: n }, r) => {
|
|
@@ -858,8 +948,8 @@ var T = it(), at = {
|
|
|
858
948
|
default: return -1;
|
|
859
949
|
}
|
|
860
950
|
}
|
|
861
|
-
},
|
|
862
|
-
channel:
|
|
951
|
+
}, D = {
|
|
952
|
+
channel: E,
|
|
863
953
|
lang: {
|
|
864
954
|
clamp: (e, t, n) => t > n ? Math.min(t, Math.max(n, e)) : Math.min(n, Math.max(t, e)),
|
|
865
955
|
round: (e) => Math.round(e * 1e10) / 1e10
|
|
@@ -868,13 +958,13 @@ var T = it(), at = {
|
|
|
868
958
|
let t = Math.round(e).toString(16);
|
|
869
959
|
return t.length > 1 ? t : `0${t}`;
|
|
870
960
|
} }
|
|
871
|
-
},
|
|
872
|
-
for (let e = 0; e <= 255; e++)
|
|
961
|
+
}, ut = {};
|
|
962
|
+
for (let e = 0; e <= 255; e++) ut[e] = D.unit.dec2hex(e);
|
|
873
963
|
var O = {
|
|
874
964
|
ALL: 0,
|
|
875
965
|
RGB: 1,
|
|
876
966
|
HSL: 2
|
|
877
|
-
},
|
|
967
|
+
}, dt = class {
|
|
878
968
|
constructor() {
|
|
879
969
|
this.type = O.ALL;
|
|
880
970
|
}
|
|
@@ -891,44 +981,44 @@ var O = {
|
|
|
891
981
|
is(e) {
|
|
892
982
|
return this.type === e;
|
|
893
983
|
}
|
|
894
|
-
},
|
|
984
|
+
}, k = new class {
|
|
895
985
|
constructor(e, t) {
|
|
896
|
-
this.color = t, this.changed = !1, this.data = e, this.type = new
|
|
986
|
+
this.color = t, this.changed = !1, this.data = e, this.type = new dt();
|
|
897
987
|
}
|
|
898
988
|
set(e, t) {
|
|
899
989
|
return this.color = t, this.changed = !1, this.data = e, this.type.type = O.ALL, this;
|
|
900
990
|
}
|
|
901
991
|
_ensureHSL() {
|
|
902
992
|
let e = this.data, { h: t, s: n, l: r } = e;
|
|
903
|
-
t === void 0 && (e.h =
|
|
993
|
+
t === void 0 && (e.h = D.channel.rgb2hsl(e, "h")), n === void 0 && (e.s = D.channel.rgb2hsl(e, "s")), r === void 0 && (e.l = D.channel.rgb2hsl(e, "l"));
|
|
904
994
|
}
|
|
905
995
|
_ensureRGB() {
|
|
906
996
|
let e = this.data, { r: t, g: n, b: r } = e;
|
|
907
|
-
t === void 0 && (e.r =
|
|
997
|
+
t === void 0 && (e.r = D.channel.hsl2rgb(e, "r")), n === void 0 && (e.g = D.channel.hsl2rgb(e, "g")), r === void 0 && (e.b = D.channel.hsl2rgb(e, "b"));
|
|
908
998
|
}
|
|
909
999
|
get r() {
|
|
910
1000
|
let e = this.data, t = e.r;
|
|
911
|
-
return !this.type.is(O.HSL) && t !== void 0 ? t : (this._ensureHSL(),
|
|
1001
|
+
return !this.type.is(O.HSL) && t !== void 0 ? t : (this._ensureHSL(), D.channel.hsl2rgb(e, "r"));
|
|
912
1002
|
}
|
|
913
1003
|
get g() {
|
|
914
1004
|
let e = this.data, t = e.g;
|
|
915
|
-
return !this.type.is(O.HSL) && t !== void 0 ? t : (this._ensureHSL(),
|
|
1005
|
+
return !this.type.is(O.HSL) && t !== void 0 ? t : (this._ensureHSL(), D.channel.hsl2rgb(e, "g"));
|
|
916
1006
|
}
|
|
917
1007
|
get b() {
|
|
918
1008
|
let e = this.data, t = e.b;
|
|
919
|
-
return !this.type.is(O.HSL) && t !== void 0 ? t : (this._ensureHSL(),
|
|
1009
|
+
return !this.type.is(O.HSL) && t !== void 0 ? t : (this._ensureHSL(), D.channel.hsl2rgb(e, "b"));
|
|
920
1010
|
}
|
|
921
1011
|
get h() {
|
|
922
1012
|
let e = this.data, t = e.h;
|
|
923
|
-
return !this.type.is(O.RGB) && t !== void 0 ? t : (this._ensureRGB(),
|
|
1013
|
+
return !this.type.is(O.RGB) && t !== void 0 ? t : (this._ensureRGB(), D.channel.rgb2hsl(e, "h"));
|
|
924
1014
|
}
|
|
925
1015
|
get s() {
|
|
926
1016
|
let e = this.data, t = e.s;
|
|
927
|
-
return !this.type.is(O.RGB) && t !== void 0 ? t : (this._ensureRGB(),
|
|
1017
|
+
return !this.type.is(O.RGB) && t !== void 0 ? t : (this._ensureRGB(), D.channel.rgb2hsl(e, "s"));
|
|
928
1018
|
}
|
|
929
1019
|
get l() {
|
|
930
1020
|
let e = this.data, t = e.l;
|
|
931
|
-
return !this.type.is(O.RGB) && t !== void 0 ? t : (this._ensureRGB(),
|
|
1021
|
+
return !this.type.is(O.RGB) && t !== void 0 ? t : (this._ensureRGB(), D.channel.rgb2hsl(e, "l"));
|
|
932
1022
|
}
|
|
933
1023
|
get a() {
|
|
934
1024
|
return this.data.a;
|
|
@@ -959,14 +1049,14 @@ var O = {
|
|
|
959
1049
|
g: 0,
|
|
960
1050
|
b: 0,
|
|
961
1051
|
a: 0
|
|
962
|
-
}, "transparent"),
|
|
1052
|
+
}, "transparent"), ft = {
|
|
963
1053
|
re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,
|
|
964
1054
|
parse: (e) => {
|
|
965
1055
|
if (e.charCodeAt(0) !== 35) return;
|
|
966
|
-
let t = e.match(
|
|
1056
|
+
let t = e.match(ft.re);
|
|
967
1057
|
if (!t) return;
|
|
968
1058
|
let n = t[1], r = parseInt(n, 16), i = n.length, a = i % 4 == 0, o = i > 4, s = o ? 1 : 17, c = o ? 8 : 4, l = a ? 0 : -1, u = o ? 255 : 15;
|
|
969
|
-
return
|
|
1059
|
+
return k.set({
|
|
970
1060
|
r: (r >> c * (l + 3) & u) * s,
|
|
971
1061
|
g: (r >> c * (l + 2) & u) * s,
|
|
972
1062
|
b: (r >> c * (l + 1) & u) * s,
|
|
@@ -975,41 +1065,41 @@ var O = {
|
|
|
975
1065
|
},
|
|
976
1066
|
stringify: (e) => {
|
|
977
1067
|
let { r: t, g: n, b: r, a: i } = e;
|
|
978
|
-
return i < 1 ? `#${
|
|
1068
|
+
return i < 1 ? `#${ut[Math.round(t)]}${ut[Math.round(n)]}${ut[Math.round(r)]}${ut[Math.round(i * 255)]}` : `#${ut[Math.round(t)]}${ut[Math.round(n)]}${ut[Math.round(r)]}`;
|
|
979
1069
|
}
|
|
980
|
-
},
|
|
1070
|
+
}, pt = {
|
|
981
1071
|
re: /^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,
|
|
982
1072
|
hueRe: /^(.+?)(deg|grad|rad|turn)$/i,
|
|
983
1073
|
_hue2deg: (e) => {
|
|
984
|
-
let t = e.match(
|
|
1074
|
+
let t = e.match(pt.hueRe);
|
|
985
1075
|
if (t) {
|
|
986
1076
|
let [, e, n] = t;
|
|
987
1077
|
switch (n) {
|
|
988
|
-
case "grad": return
|
|
989
|
-
case "rad": return
|
|
990
|
-
case "turn": return
|
|
1078
|
+
case "grad": return D.channel.clamp.h(parseFloat(e) * .9);
|
|
1079
|
+
case "rad": return D.channel.clamp.h(parseFloat(e) * 180 / Math.PI);
|
|
1080
|
+
case "turn": return D.channel.clamp.h(parseFloat(e) * 360);
|
|
991
1081
|
}
|
|
992
1082
|
}
|
|
993
|
-
return
|
|
1083
|
+
return D.channel.clamp.h(parseFloat(e));
|
|
994
1084
|
},
|
|
995
1085
|
parse: (e) => {
|
|
996
1086
|
let t = e.charCodeAt(0);
|
|
997
1087
|
if (t !== 104 && t !== 72) return;
|
|
998
|
-
let n = e.match(
|
|
1088
|
+
let n = e.match(pt.re);
|
|
999
1089
|
if (!n) return;
|
|
1000
1090
|
let [, r, i, a, o, s] = n;
|
|
1001
|
-
return
|
|
1002
|
-
h:
|
|
1003
|
-
s:
|
|
1004
|
-
l:
|
|
1005
|
-
a: o ?
|
|
1091
|
+
return k.set({
|
|
1092
|
+
h: pt._hue2deg(r),
|
|
1093
|
+
s: D.channel.clamp.s(parseFloat(i)),
|
|
1094
|
+
l: D.channel.clamp.l(parseFloat(a)),
|
|
1095
|
+
a: o ? D.channel.clamp.a(s ? parseFloat(o) / 100 : parseFloat(o)) : 1
|
|
1006
1096
|
}, e);
|
|
1007
1097
|
},
|
|
1008
1098
|
stringify: (e) => {
|
|
1009
1099
|
let { h: t, s: n, l: r, a: i } = e;
|
|
1010
|
-
return i < 1 ? `hsla(${
|
|
1100
|
+
return i < 1 ? `hsla(${D.lang.round(t)}, ${D.lang.round(n)}%, ${D.lang.round(r)}%, ${i})` : `hsl(${D.lang.round(t)}, ${D.lang.round(n)}%, ${D.lang.round(r)}%)`;
|
|
1011
1101
|
}
|
|
1012
|
-
},
|
|
1102
|
+
}, A = {
|
|
1013
1103
|
colors: {
|
|
1014
1104
|
aliceblue: "#f0f8ff",
|
|
1015
1105
|
antiquewhite: "#faebd7",
|
|
@@ -1161,80 +1251,80 @@ var O = {
|
|
|
1161
1251
|
},
|
|
1162
1252
|
parse: (e) => {
|
|
1163
1253
|
e = e.toLowerCase();
|
|
1164
|
-
let t =
|
|
1165
|
-
if (t) return
|
|
1254
|
+
let t = A.colors[e];
|
|
1255
|
+
if (t) return ft.parse(t);
|
|
1166
1256
|
},
|
|
1167
1257
|
stringify: (e) => {
|
|
1168
|
-
let t =
|
|
1169
|
-
for (let e in
|
|
1258
|
+
let t = ft.stringify(e);
|
|
1259
|
+
for (let e in A.colors) if (A.colors[e] === t) return e;
|
|
1170
1260
|
}
|
|
1171
|
-
},
|
|
1261
|
+
}, mt = {
|
|
1172
1262
|
re: /^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,
|
|
1173
1263
|
parse: (e) => {
|
|
1174
1264
|
let t = e.charCodeAt(0);
|
|
1175
1265
|
if (t !== 114 && t !== 82) return;
|
|
1176
|
-
let n = e.match(
|
|
1266
|
+
let n = e.match(mt.re);
|
|
1177
1267
|
if (!n) return;
|
|
1178
1268
|
let [, r, i, a, o, s, c, l, u] = n;
|
|
1179
|
-
return
|
|
1180
|
-
r:
|
|
1181
|
-
g:
|
|
1182
|
-
b:
|
|
1183
|
-
a: l ?
|
|
1269
|
+
return k.set({
|
|
1270
|
+
r: D.channel.clamp.r(i ? parseFloat(r) * 2.55 : parseFloat(r)),
|
|
1271
|
+
g: D.channel.clamp.g(o ? parseFloat(a) * 2.55 : parseFloat(a)),
|
|
1272
|
+
b: D.channel.clamp.b(c ? parseFloat(s) * 2.55 : parseFloat(s)),
|
|
1273
|
+
a: l ? D.channel.clamp.a(u ? parseFloat(l) / 100 : parseFloat(l)) : 1
|
|
1184
1274
|
}, e);
|
|
1185
1275
|
},
|
|
1186
1276
|
stringify: (e) => {
|
|
1187
1277
|
let { r: t, g: n, b: r, a: i } = e;
|
|
1188
|
-
return i < 1 ? `rgba(${
|
|
1278
|
+
return i < 1 ? `rgba(${D.lang.round(t)}, ${D.lang.round(n)}, ${D.lang.round(r)}, ${D.lang.round(i)})` : `rgb(${D.lang.round(t)}, ${D.lang.round(n)}, ${D.lang.round(r)})`;
|
|
1189
1279
|
}
|
|
1190
1280
|
}, j = {
|
|
1191
1281
|
format: {
|
|
1192
|
-
keyword:
|
|
1193
|
-
hex:
|
|
1194
|
-
rgb:
|
|
1195
|
-
rgba:
|
|
1196
|
-
hsl:
|
|
1197
|
-
hsla:
|
|
1282
|
+
keyword: A,
|
|
1283
|
+
hex: ft,
|
|
1284
|
+
rgb: mt,
|
|
1285
|
+
rgba: mt,
|
|
1286
|
+
hsl: pt,
|
|
1287
|
+
hsla: pt
|
|
1198
1288
|
},
|
|
1199
1289
|
parse: (e) => {
|
|
1200
1290
|
if (typeof e != "string") return e;
|
|
1201
|
-
let t =
|
|
1291
|
+
let t = ft.parse(e) || mt.parse(e) || pt.parse(e) || A.parse(e);
|
|
1202
1292
|
if (t) return t;
|
|
1203
1293
|
throw Error(`Unsupported color format: "${e}"`);
|
|
1204
1294
|
},
|
|
1205
|
-
stringify: (e) => !e.changed && e.color ? e.color : e.type.is(O.HSL) || e.data.r === void 0 ?
|
|
1206
|
-
},
|
|
1295
|
+
stringify: (e) => !e.changed && e.color ? e.color : e.type.is(O.HSL) || e.data.r === void 0 ? pt.stringify(e) : e.a < 1 || !Number.isInteger(e.r) || !Number.isInteger(e.g) || !Number.isInteger(e.b) ? mt.stringify(e) : ft.stringify(e)
|
|
1296
|
+
}, ht = (e, t) => {
|
|
1207
1297
|
let n = j.parse(e);
|
|
1208
|
-
for (let e in t) n[e] =
|
|
1298
|
+
for (let e in t) n[e] = D.channel.clamp[e](t[e]);
|
|
1209
1299
|
return j.stringify(n);
|
|
1210
1300
|
}, M = (e, t, n = 0, r = 1) => {
|
|
1211
|
-
if (typeof e != "number") return
|
|
1212
|
-
let i =
|
|
1213
|
-
r:
|
|
1214
|
-
g:
|
|
1215
|
-
b:
|
|
1216
|
-
a:
|
|
1301
|
+
if (typeof e != "number") return ht(e, { a: t });
|
|
1302
|
+
let i = k.set({
|
|
1303
|
+
r: D.channel.clamp.r(e),
|
|
1304
|
+
g: D.channel.clamp.g(t),
|
|
1305
|
+
b: D.channel.clamp.b(n),
|
|
1306
|
+
a: D.channel.clamp.a(r)
|
|
1217
1307
|
});
|
|
1218
1308
|
return j.stringify(i);
|
|
1219
|
-
},
|
|
1220
|
-
let { r: t, g: n, b: r } = j.parse(e), i = .2126 *
|
|
1221
|
-
return
|
|
1222
|
-
},
|
|
1223
|
-
let r = j.parse(e), i = r[t], a =
|
|
1309
|
+
}, gt = (e) => {
|
|
1310
|
+
let { r: t, g: n, b: r } = j.parse(e), i = .2126 * D.channel.toLinear(t) + .7152 * D.channel.toLinear(n) + .0722 * D.channel.toLinear(r);
|
|
1311
|
+
return D.lang.round(i);
|
|
1312
|
+
}, N = (e) => gt(e) >= .5, P = (e) => !N(e), _t = (e, t, n) => {
|
|
1313
|
+
let r = j.parse(e), i = r[t], a = D.channel.clamp[t](i + n);
|
|
1224
1314
|
return i !== a && (r[t] = a), j.stringify(r);
|
|
1225
|
-
},
|
|
1315
|
+
}, F = (e, t) => _t(e, "l", t), I = (e, t) => _t(e, "l", -t), L = (e, t) => {
|
|
1226
1316
|
let n = j.parse(e), r = {};
|
|
1227
1317
|
for (let e in t) t[e] && (r[e] = n[e] + t[e]);
|
|
1228
|
-
return
|
|
1229
|
-
},
|
|
1230
|
-
let { r, g: i, b: a, a: o } = j.parse(e), { r: s, g: c, b: l, a: u } = j.parse(t), d = n / 100, f = d * 2 - 1, ee = o - u, te = ((f * ee === -1 ? f : (f + ee) / (1 + f * ee)) + 1) / 2,
|
|
1231
|
-
return M(r * te + s *
|
|
1232
|
-
},
|
|
1318
|
+
return ht(e, r);
|
|
1319
|
+
}, vt = (e, t, n = 50) => {
|
|
1320
|
+
let { r, g: i, b: a, a: o } = j.parse(e), { r: s, g: c, b: l, a: u } = j.parse(t), d = n / 100, f = d * 2 - 1, ee = o - u, te = ((f * ee === -1 ? f : (f + ee) / (1 + f * ee)) + 1) / 2, ne = 1 - te;
|
|
1321
|
+
return M(r * te + s * ne, i * te + c * ne, a * te + l * ne, o * d + u * (1 - d));
|
|
1322
|
+
}, R = (e, t = 100) => {
|
|
1233
1323
|
let n = j.parse(e);
|
|
1234
|
-
return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b,
|
|
1235
|
-
},
|
|
1324
|
+
return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b, vt(n, e, t);
|
|
1325
|
+
}, yt = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
|
|
1236
1326
|
let r = { depth: n };
|
|
1237
|
-
if (Array.isArray(t) && !Array.isArray(e)) return t.forEach((t) =>
|
|
1327
|
+
if (Array.isArray(t) && !Array.isArray(e)) return t.forEach((t) => yt(e, t, r)), e;
|
|
1238
1328
|
if (Array.isArray(t) && Array.isArray(e)) return t.forEach((t) => {
|
|
1239
1329
|
e.includes(t) || e.push(t);
|
|
1240
1330
|
}), e;
|
|
@@ -1249,7 +1339,7 @@ var O = {
|
|
|
1249
1339
|
writable: !0,
|
|
1250
1340
|
enumerable: !0,
|
|
1251
1341
|
configurable: !0
|
|
1252
|
-
}), r[t] === void 0 && (r[t] = Array.isArray(i) ? [] : {}), typeof r[t] == "object" && (r[t] =
|
|
1342
|
+
}), r[t] === void 0 && (r[t] = Array.isArray(i) ? [] : {}), typeof r[t] == "object" && (r[t] = yt(r[t], i, { depth: n - 1 }));
|
|
1253
1343
|
} else typeof r[t] != "object" && (Object.hasOwn(e, t) ? r[t] = i : Object.defineProperty(e, t, {
|
|
1254
1344
|
value: i,
|
|
1255
1345
|
writable: !0,
|
|
@@ -1259,13 +1349,13 @@ var O = {
|
|
|
1259
1349
|
});
|
|
1260
1350
|
}
|
|
1261
1351
|
return e;
|
|
1262
|
-
}, "assignWithDepth"), z =
|
|
1352
|
+
}, "assignWithDepth"), z = yt, B = "#ffffff", V = "#f2f2f2", H = /* @__PURE__ */ n((e, t) => t ? L(e, {
|
|
1263
1353
|
s: -40,
|
|
1264
1354
|
l: 10
|
|
1265
|
-
}) :
|
|
1355
|
+
}) : L(e, {
|
|
1266
1356
|
s: -40,
|
|
1267
1357
|
l: -10
|
|
1268
|
-
}), "mkBorder"),
|
|
1358
|
+
}), "mkBorder"), bt = class {
|
|
1269
1359
|
static {
|
|
1270
1360
|
n(this, "Theme");
|
|
1271
1361
|
}
|
|
@@ -1273,59 +1363,59 @@ var O = {
|
|
|
1273
1363
|
this.background = "#f4f4f4", this.primaryColor = "#fff4dd", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.useGradient = !0, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))";
|
|
1274
1364
|
}
|
|
1275
1365
|
updateColors() {
|
|
1276
|
-
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor ||
|
|
1366
|
+
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || L(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || L(this.primaryColor, {
|
|
1277
1367
|
h: 180,
|
|
1278
1368
|
l: 5
|
|
1279
|
-
}), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor ||
|
|
1369
|
+
}), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || R(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || R(this.tertiaryColor), this.lineColor = this.lineColor || R(this.background), this.arrowheadColor = this.arrowheadColor || R(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 ? I(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 || I(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || R(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 || F(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 || I(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || I(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || F(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || F(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 || L(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || L(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || L(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || L(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || L(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || L(this.primaryColor, {
|
|
1280
1370
|
h: 210,
|
|
1281
1371
|
l: 150
|
|
1282
|
-
}), this.cScale9 = this.cScale9 ||
|
|
1283
|
-
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
1284
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1285
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
1372
|
+
}), this.cScale9 = this.cScale9 || L(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || L(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || L(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = I(this["cScale" + e], 75);
|
|
1373
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = I(this["cScale" + e], 25);
|
|
1374
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || R(this["cScale" + e]);
|
|
1375
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || I(this["cScale" + e], 10);
|
|
1286
1376
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
1287
1377
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1288
1378
|
let e = this.darkMode ? -4 : -1;
|
|
1289
|
-
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] ||
|
|
1379
|
+
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || L(this.mainBkg, {
|
|
1290
1380
|
h: 180,
|
|
1291
1381
|
s: -15,
|
|
1292
1382
|
l: e * (5 + t * 3)
|
|
1293
|
-
}), this["surfacePeer" + t] = this["surfacePeer" + t] ||
|
|
1383
|
+
}), this["surfacePeer" + t] = this["surfacePeer" + t] || L(this.mainBkg, {
|
|
1294
1384
|
h: 180,
|
|
1295
1385
|
s: -15,
|
|
1296
1386
|
l: e * (8 + t * 3)
|
|
1297
1387
|
});
|
|
1298
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 ||
|
|
1388
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || L(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || L(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || L(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || L(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || L(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || L(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || L(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || L(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || L(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || L(this.primaryColor, {
|
|
1299
1389
|
h: 60,
|
|
1300
1390
|
l: -10
|
|
1301
|
-
}), this.pie8 = this.pie8 ||
|
|
1391
|
+
}), this.pie8 = this.pie8 || L(this.primaryColor, {
|
|
1302
1392
|
h: -60,
|
|
1303
1393
|
l: -10
|
|
1304
|
-
}), this.pie9 = this.pie9 ||
|
|
1394
|
+
}), this.pie9 = this.pie9 || L(this.primaryColor, {
|
|
1305
1395
|
h: 120,
|
|
1306
1396
|
l: 0
|
|
1307
|
-
}), this.pie10 = this.pie10 ||
|
|
1397
|
+
}), this.pie10 = this.pie10 || L(this.primaryColor, {
|
|
1308
1398
|
h: 60,
|
|
1309
1399
|
l: -20
|
|
1310
|
-
}), this.pie11 = this.pie11 ||
|
|
1400
|
+
}), this.pie11 = this.pie11 || L(this.primaryColor, {
|
|
1311
1401
|
h: -60,
|
|
1312
1402
|
l: -20
|
|
1313
|
-
}), this.pie12 = this.pie12 ||
|
|
1403
|
+
}), this.pie12 = this.pie12 || L(this.primaryColor, {
|
|
1314
1404
|
h: 120,
|
|
1315
1405
|
l: -10
|
|
1316
|
-
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.venn1 = this.venn1 ??
|
|
1406
|
+
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.venn1 = this.venn1 ?? L(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? L(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? L(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? L(this.primaryColor, {
|
|
1317
1407
|
h: 60,
|
|
1318
1408
|
l: -30
|
|
1319
|
-
}), this.venn5 = this.venn5 ??
|
|
1409
|
+
}), this.venn5 = this.venn5 ?? L(this.primaryColor, {
|
|
1320
1410
|
h: -60,
|
|
1321
1411
|
l: -30
|
|
1322
|
-
}), this.venn6 = this.venn6 ??
|
|
1412
|
+
}), this.venn6 = this.venn6 ?? L(this.secondaryColor, {
|
|
1323
1413
|
h: 60,
|
|
1324
1414
|
l: -30
|
|
1325
|
-
}), this.venn7 = this.venn7 ??
|
|
1415
|
+
}), this.venn7 = this.venn7 ?? L(this.primaryColor, {
|
|
1326
1416
|
h: 120,
|
|
1327
1417
|
l: -30
|
|
1328
|
-
}), this.venn8 = this.venn8 ??
|
|
1418
|
+
}), this.venn8 = this.venn8 ?? L(this.secondaryColor, {
|
|
1329
1419
|
h: 120,
|
|
1330
1420
|
l: -30
|
|
1331
1421
|
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
|
|
@@ -1368,31 +1458,31 @@ var O = {
|
|
|
1368
1458
|
annotationStroke: this.wardley?.annotationStroke || this.lineColor,
|
|
1369
1459
|
annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
|
|
1370
1460
|
annotationFill: this.wardley?.annotationFill || this.background
|
|
1371
|
-
}, this.archEdgeColor = this.archEdgeColor || "#777", this.archEdgeArrowColor = this.archEdgeArrowColor || "#777", this.archEdgeWidth = this.archEdgeWidth || "3", this.archGroupBorderColor = this.archGroupBorderColor || "#000", this.archGroupBorderWidth = this.archGroupBorderWidth || "2px", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
1461
|
+
}, this.archEdgeColor = this.archEdgeColor || "#777", this.archEdgeArrowColor = this.archEdgeArrowColor || "#777", this.archEdgeWidth = this.archEdgeWidth || "3", this.archGroupBorderColor = this.archGroupBorderColor || "#000", this.archGroupBorderWidth = this.archGroupBorderWidth || "2px", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || L(this.primaryColor, {
|
|
1372
1462
|
r: 5,
|
|
1373
1463
|
g: 5,
|
|
1374
1464
|
b: 5
|
|
1375
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1465
|
+
}), this.quadrant3Fill = this.quadrant3Fill || L(this.primaryColor, {
|
|
1376
1466
|
r: 10,
|
|
1377
1467
|
g: 10,
|
|
1378
1468
|
b: 10
|
|
1379
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1469
|
+
}), this.quadrant4Fill = this.quadrant4Fill || L(this.primaryColor, {
|
|
1380
1470
|
r: 15,
|
|
1381
1471
|
g: 15,
|
|
1382
1472
|
b: 15
|
|
1383
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1473
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || L(this.primaryTextColor, {
|
|
1384
1474
|
r: -5,
|
|
1385
1475
|
g: -5,
|
|
1386
1476
|
b: -5
|
|
1387
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1477
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || L(this.primaryTextColor, {
|
|
1388
1478
|
r: -10,
|
|
1389
1479
|
g: -10,
|
|
1390
1480
|
b: -10
|
|
1391
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1481
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || L(this.primaryTextColor, {
|
|
1392
1482
|
r: -15,
|
|
1393
1483
|
g: -15,
|
|
1394
1484
|
b: -15
|
|
1395
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1485
|
+
}), this.quadrantPointFill = this.quadrantPointFill || P(this.quadrant1Fill) ? F(this.quadrant1Fill) : I(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
1396
1486
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1397
1487
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1398
1488
|
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
@@ -1406,7 +1496,7 @@ var O = {
|
|
|
1406
1496
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1407
1497
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1408
1498
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
1409
|
-
}, 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 ?
|
|
1499
|
+
}, 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 ? I(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 || L(this.primaryColor, { h: -30 }), this.git4 = this.git4 || L(this.primaryColor, { h: -60 }), this.git5 = this.git5 || L(this.primaryColor, { h: -90 }), this.git6 = this.git6 || L(this.primaryColor, { h: 60 }), this.git7 = this.git7 || L(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)) : (this.git0 = I(this.git0, 25), this.git1 = I(this.git1, 25), this.git2 = I(this.git2, 25), this.git3 = I(this.git3, 25), this.git4 = I(this.git4, 25), this.git5 = I(this.git5, 25), this.git6 = I(this.git6, 25), this.git7 = I(this.git7, 25)), this.gitInv0 = this.gitInv0 || R(this.git0), this.gitInv1 = this.gitInv1 || R(this.git1), this.gitInv2 = this.gitInv2 || R(this.git2), this.gitInv3 = this.gitInv3 || R(this.git3), this.gitInv4 = this.gitInv4 || R(this.git4), this.gitInv5 = this.gitInv5 || R(this.git5), this.gitInv6 = this.gitInv6 || R(this.git6), this.gitInv7 = this.gitInv7 || R(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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
|
|
1410
1500
|
}
|
|
1411
1501
|
calculate(e) {
|
|
1412
1502
|
if (typeof e != "object") {
|
|
@@ -1420,25 +1510,25 @@ var O = {
|
|
|
1420
1510
|
this[t] = e[t];
|
|
1421
1511
|
});
|
|
1422
1512
|
}
|
|
1423
|
-
},
|
|
1424
|
-
let t = new
|
|
1513
|
+
}, U = /* @__PURE__ */ n((e) => {
|
|
1514
|
+
let t = new bt();
|
|
1425
1515
|
return t.calculate(e), t;
|
|
1426
|
-
}, "getThemeVariables"),
|
|
1516
|
+
}, "getThemeVariables"), xt = class {
|
|
1427
1517
|
static {
|
|
1428
1518
|
n(this, "Theme");
|
|
1429
1519
|
}
|
|
1430
1520
|
constructor() {
|
|
1431
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor =
|
|
1521
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = F(this.primaryColor, 16), this.tertiaryColor = L(this.primaryColor, { h: -160 }), this.primaryBorderColor = R(this.background), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = R(this.primaryColor), this.secondaryTextColor = R(this.secondaryColor), this.tertiaryTextColor = R(this.tertiaryColor), this.lineColor = R(this.background), this.textColor = R(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = F(R("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = M(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 = I("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = I(this.sectionBkgColor, 10), this.taskBorderColor = M(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = M(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 || F(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || I(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";
|
|
1432
1522
|
}
|
|
1433
1523
|
updateColors() {
|
|
1434
|
-
this.secondBkg =
|
|
1435
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1436
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
1437
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
1524
|
+
this.secondBkg = F(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 = F(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 = F(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 = R(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 = L(this.primaryColor, { h: 64 }), this.fillType3 = L(this.secondaryColor, { h: 64 }), this.fillType4 = L(this.primaryColor, { h: -64 }), this.fillType5 = L(this.secondaryColor, { h: -64 }), this.fillType6 = L(this.primaryColor, { h: 128 }), this.fillType7 = L(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 || L(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || L(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || L(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || L(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || L(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || L(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || L(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || L(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || L(this.primaryColor, { h: 330 });
|
|
1525
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || R(this["cScale" + e]);
|
|
1526
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10);
|
|
1527
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || L(this.mainBkg, {
|
|
1438
1528
|
h: 30,
|
|
1439
1529
|
s: -30,
|
|
1440
1530
|
l: -(-10 + e * 4)
|
|
1441
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
1531
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || L(this.mainBkg, {
|
|
1442
1532
|
h: 30,
|
|
1443
1533
|
s: -30,
|
|
1444
1534
|
l: -(-7 + e * 4)
|
|
@@ -1447,7 +1537,7 @@ var O = {
|
|
|
1447
1537
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1448
1538
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
|
|
1449
1539
|
this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.mainContrastColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.mainContrastColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7";
|
|
1450
|
-
for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ??
|
|
1540
|
+
for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? F(this["cScale" + e], 30);
|
|
1451
1541
|
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
|
|
1452
1542
|
domainFontSize: this.cynefin?.domainFontSize || 16,
|
|
1453
1543
|
itemFontSize: this.cynefin?.itemFontSize || 12,
|
|
@@ -1464,31 +1554,31 @@ var O = {
|
|
|
1464
1554
|
confusionBg: this.cynefin?.confusionBg || "#4A148C",
|
|
1465
1555
|
textColor: this.cynefin?.textColor || this.textColor,
|
|
1466
1556
|
labelColor: this.cynefin?.labelColor || this.primaryTextColor
|
|
1467
|
-
}, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
1557
|
+
}, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || L(this.primaryColor, {
|
|
1468
1558
|
r: 5,
|
|
1469
1559
|
g: 5,
|
|
1470
1560
|
b: 5
|
|
1471
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1561
|
+
}), this.quadrant3Fill = this.quadrant3Fill || L(this.primaryColor, {
|
|
1472
1562
|
r: 10,
|
|
1473
1563
|
g: 10,
|
|
1474
1564
|
b: 10
|
|
1475
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1565
|
+
}), this.quadrant4Fill = this.quadrant4Fill || L(this.primaryColor, {
|
|
1476
1566
|
r: 15,
|
|
1477
1567
|
g: 15,
|
|
1478
1568
|
b: 15
|
|
1479
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1569
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || L(this.primaryTextColor, {
|
|
1480
1570
|
r: -5,
|
|
1481
1571
|
g: -5,
|
|
1482
1572
|
b: -5
|
|
1483
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1573
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || L(this.primaryTextColor, {
|
|
1484
1574
|
r: -10,
|
|
1485
1575
|
g: -10,
|
|
1486
1576
|
b: -10
|
|
1487
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1577
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || L(this.primaryTextColor, {
|
|
1488
1578
|
r: -15,
|
|
1489
1579
|
g: -15,
|
|
1490
1580
|
b: -15
|
|
1491
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1581
|
+
}), this.quadrantPointFill = this.quadrantPointFill || P(this.quadrant1Fill) ? F(this.quadrant1Fill) : I(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
1492
1582
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1493
1583
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1494
1584
|
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
@@ -1533,7 +1623,7 @@ var O = {
|
|
|
1533
1623
|
annotationStroke: this.wardley?.annotationStroke || this.lineColor,
|
|
1534
1624
|
annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
|
|
1535
1625
|
annotationFill: this.wardley?.annotationFill || this.mainBkg
|
|
1536
|
-
}, this.classText = this.primaryTextColor, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ?
|
|
1626
|
+
}, this.classText = this.primaryTextColor, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? I(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = F(this.secondaryColor, 20), this.git1 = F(this.pie2 || this.secondaryColor, 20), this.git2 = F(this.pie3 || this.tertiaryColor, 20), this.git3 = F(this.pie4 || L(this.primaryColor, { h: -30 }), 20), this.git4 = F(this.pie5 || L(this.primaryColor, { h: -60 }), 20), this.git5 = F(this.pie6 || L(this.primaryColor, { h: -90 }), 10), this.git6 = F(this.pie7 || L(this.primaryColor, { h: 60 }), 10), this.git7 = F(this.pie8 || L(this.primaryColor, { h: 120 }), 20), this.gitInv0 = this.gitInv0 || R(this.git0), this.gitInv1 = this.gitInv1 || R(this.git1), this.gitInv2 = this.gitInv2 || R(this.git2), this.gitInv3 = this.gitInv3 || R(this.git3), this.gitInv4 = this.gitInv4 || R(this.git4), this.gitInv5 = this.gitInv5 || R(this.git5), this.gitInv6 = this.gitInv6 || R(this.git6), this.gitInv7 = this.gitInv7 || R(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || R(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || R(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "#2d2d2d", this.emUiStroke = this.emUiStroke || "#555", this.emProcessorFill = this.emProcessorFill || F("#5a3d5c", 10), this.emProcessorStroke = this.emProcessorStroke || "#8a6d8c", this.emReadModelFill = this.emReadModelFill || F("#3d5a2d", 10), this.emReadModelStroke = this.emReadModelStroke || "#6d8c5c", this.emCommandFill = this.emCommandFill || F("#2d3d5a", 10), this.emCommandStroke = this.emCommandStroke || "#5c6d8c", this.emEventFill = this.emEventFill || F("#5a452d", 10), this.emEventStroke = this.emEventStroke || "#8c755c", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || F(this.background, 5), this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || F(this.background, 12), this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || F(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || F(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
|
|
1537
1627
|
}
|
|
1538
1628
|
calculate(e) {
|
|
1539
1629
|
if (typeof e != "object") {
|
|
@@ -1547,62 +1637,62 @@ var O = {
|
|
|
1547
1637
|
this[t] = e[t];
|
|
1548
1638
|
});
|
|
1549
1639
|
}
|
|
1550
|
-
},
|
|
1551
|
-
let t = new
|
|
1640
|
+
}, St = /* @__PURE__ */ n((e) => {
|
|
1641
|
+
let t = new xt();
|
|
1552
1642
|
return t.calculate(e), t;
|
|
1553
|
-
}, "getThemeVariables"),
|
|
1643
|
+
}, "getThemeVariables"), W = class {
|
|
1554
1644
|
static {
|
|
1555
1645
|
n(this, "Theme");
|
|
1556
1646
|
}
|
|
1557
1647
|
constructor() {
|
|
1558
|
-
this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor =
|
|
1648
|
+
this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = L(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = L(this.primaryColor, { h: -160 }), this.primaryBorderColor = H(this.primaryColor, this.darkMode), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = R(this.primaryColor), this.secondaryTextColor = R(this.secondaryColor), this.tertiaryTextColor = R(this.tertiaryColor), this.lineColor = R(this.background), this.textColor = R(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.primaryBorderColor = H(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 = M(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();
|
|
1559
1649
|
}
|
|
1560
1650
|
updateColors() {
|
|
1561
|
-
this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 ||
|
|
1562
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
1563
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1564
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
1651
|
+
this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || L(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || L(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || L(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || L(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || L(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || L(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || L(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || L(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || L(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || I(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || I(this.tertiaryColor, 40);
|
|
1652
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = I(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || I(this["cScale" + e], 25);
|
|
1653
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || L(this["cScale" + e], { h: 180 });
|
|
1654
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || L(this.mainBkg, {
|
|
1565
1655
|
h: 30,
|
|
1566
1656
|
l: -(5 + e * 5)
|
|
1567
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
1657
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || L(this.mainBkg, {
|
|
1568
1658
|
h: 30,
|
|
1569
1659
|
l: -(7 + e * 5)
|
|
1570
1660
|
});
|
|
1571
1661
|
if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
|
|
1572
|
-
this.cScaleLabel0 = this.cScaleLabel0 ||
|
|
1662
|
+
this.cScaleLabel0 = this.cScaleLabel0 || R(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || R(this.labelTextColor);
|
|
1573
1663
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.labelTextColor;
|
|
1574
1664
|
}
|
|
1575
|
-
this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.textColor, this.edgeLabelBackground = this.labelBackground, this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.signalColor = this.textColor, this.signalTextColor = this.textColor, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd ||
|
|
1665
|
+
this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.textColor, this.edgeLabelBackground = this.labelBackground, this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.signalColor = this.textColor, this.signalTextColor = this.textColor, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || F(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || F(this.primaryColor, 1), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.specialStateColor = this.lineColor, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = L(this.primaryColor, { h: 64 }), this.fillType3 = L(this.secondaryColor, { h: 64 }), this.fillType4 = L(this.primaryColor, { h: -64 }), this.fillType5 = L(this.secondaryColor, { h: -64 }), this.fillType6 = L(this.primaryColor, { h: 128 }), this.fillType7 = L(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || L(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || L(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || L(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || L(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || L(this.primaryColor, {
|
|
1576
1666
|
h: 60,
|
|
1577
1667
|
l: -20
|
|
1578
|
-
}), this.pie8 = this.pie8 ||
|
|
1668
|
+
}), this.pie8 = this.pie8 || L(this.primaryColor, {
|
|
1579
1669
|
h: -60,
|
|
1580
1670
|
l: -40
|
|
1581
|
-
}), this.pie9 = this.pie9 ||
|
|
1671
|
+
}), this.pie9 = this.pie9 || L(this.primaryColor, {
|
|
1582
1672
|
h: 120,
|
|
1583
1673
|
l: -40
|
|
1584
|
-
}), this.pie10 = this.pie10 ||
|
|
1674
|
+
}), this.pie10 = this.pie10 || L(this.primaryColor, {
|
|
1585
1675
|
h: 60,
|
|
1586
1676
|
l: -40
|
|
1587
|
-
}), this.pie11 = this.pie11 ||
|
|
1677
|
+
}), this.pie11 = this.pie11 || L(this.primaryColor, {
|
|
1588
1678
|
h: -90,
|
|
1589
1679
|
l: -40
|
|
1590
|
-
}), this.pie12 = this.pie12 ||
|
|
1680
|
+
}), this.pie12 = this.pie12 || L(this.primaryColor, {
|
|
1591
1681
|
h: 120,
|
|
1592
1682
|
l: -30
|
|
1593
|
-
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.venn1 = this.venn1 ??
|
|
1683
|
+
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.venn1 = this.venn1 ?? L(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? L(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? L(this.tertiaryColor, { l: -40 }), this.venn4 = this.venn4 ?? L(this.primaryColor, {
|
|
1594
1684
|
h: 60,
|
|
1595
1685
|
l: -30
|
|
1596
|
-
}), this.venn5 = this.venn5 ??
|
|
1686
|
+
}), this.venn5 = this.venn5 ?? L(this.primaryColor, {
|
|
1597
1687
|
h: -60,
|
|
1598
1688
|
l: -30
|
|
1599
|
-
}), this.venn6 = this.venn6 ??
|
|
1689
|
+
}), this.venn6 = this.venn6 ?? L(this.secondaryColor, {
|
|
1600
1690
|
h: 60,
|
|
1601
1691
|
l: -30
|
|
1602
|
-
}), this.venn7 = this.venn7 ??
|
|
1692
|
+
}), this.venn7 = this.venn7 ?? L(this.primaryColor, {
|
|
1603
1693
|
h: 120,
|
|
1604
1694
|
l: -30
|
|
1605
|
-
}), this.venn8 = this.venn8 ??
|
|
1695
|
+
}), this.venn8 = this.venn8 ?? L(this.secondaryColor, {
|
|
1606
1696
|
h: 120,
|
|
1607
1697
|
l: -30
|
|
1608
1698
|
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
|
|
@@ -1621,31 +1711,31 @@ var O = {
|
|
|
1621
1711
|
confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
|
|
1622
1712
|
textColor: this.cynefin?.textColor || this.textColor,
|
|
1623
1713
|
labelColor: this.cynefin?.labelColor || this.primaryTextColor
|
|
1624
|
-
}, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
1714
|
+
}, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || L(this.primaryColor, {
|
|
1625
1715
|
r: 5,
|
|
1626
1716
|
g: 5,
|
|
1627
1717
|
b: 5
|
|
1628
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1718
|
+
}), this.quadrant3Fill = this.quadrant3Fill || L(this.primaryColor, {
|
|
1629
1719
|
r: 10,
|
|
1630
1720
|
g: 10,
|
|
1631
1721
|
b: 10
|
|
1632
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1722
|
+
}), this.quadrant4Fill = this.quadrant4Fill || L(this.primaryColor, {
|
|
1633
1723
|
r: 15,
|
|
1634
1724
|
g: 15,
|
|
1635
1725
|
b: 15
|
|
1636
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1726
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || L(this.primaryTextColor, {
|
|
1637
1727
|
r: -5,
|
|
1638
1728
|
g: -5,
|
|
1639
1729
|
b: -5
|
|
1640
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1730
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || L(this.primaryTextColor, {
|
|
1641
1731
|
r: -10,
|
|
1642
1732
|
g: -10,
|
|
1643
1733
|
b: -10
|
|
1644
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1734
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || L(this.primaryTextColor, {
|
|
1645
1735
|
r: -15,
|
|
1646
1736
|
g: -15,
|
|
1647
1737
|
b: -15
|
|
1648
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1738
|
+
}), this.quadrantPointFill = this.quadrantPointFill || P(this.quadrant1Fill) ? F(this.quadrant1Fill) : I(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.radar = {
|
|
1649
1739
|
axisColor: this.radar?.axisColor || this.lineColor,
|
|
1650
1740
|
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
|
|
1651
1741
|
axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
|
|
@@ -1683,7 +1773,7 @@ var O = {
|
|
|
1683
1773
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1684
1774
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1685
1775
|
plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
|
|
1686
|
-
}, 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 ||
|
|
1776
|
+
}, 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 || L(this.primaryColor, { h: -30 }), this.git4 = this.git4 || L(this.primaryColor, { h: -60 }), this.git5 = this.git5 || L(this.primaryColor, { h: -90 }), this.git6 = this.git6 || L(this.primaryColor, { h: 60 }), this.git7 = this.git7 || L(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)) : (this.git0 = I(this.git0, 25), this.git1 = I(this.git1, 25), this.git2 = I(this.git2, 25), this.git3 = I(this.git3, 25), this.git4 = I(this.git4, 25), this.git5 = I(this.git5, 25), this.git6 = I(this.git6, 25), this.git7 = I(this.git7, 25)), this.gitInv0 = this.gitInv0 || I(R(this.git0), 25), this.gitInv1 = this.gitInv1 || R(this.git1), this.gitInv2 = this.gitInv2 || R(this.git2), this.gitInv3 = this.gitInv3 || R(this.git3), this.gitInv4 = this.gitInv4 || R(this.git4), this.gitInv5 = this.gitInv5 || R(this.git5), this.gitInv6 = this.gitInv6 || R(this.git6), this.gitInv7 = this.gitInv7 || R(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || R(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || R(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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
|
|
1687
1777
|
}
|
|
1688
1778
|
calculate(e) {
|
|
1689
1779
|
if (Object.keys(this).forEach((e) => {
|
|
@@ -1699,65 +1789,65 @@ var O = {
|
|
|
1699
1789
|
this[t] = e[t];
|
|
1700
1790
|
});
|
|
1701
1791
|
}
|
|
1702
|
-
},
|
|
1703
|
-
let t = new
|
|
1792
|
+
}, Ct = /* @__PURE__ */ n((e) => {
|
|
1793
|
+
let t = new W();
|
|
1704
1794
|
return t.calculate(e), t;
|
|
1705
|
-
}, "getThemeVariables"),
|
|
1795
|
+
}, "getThemeVariables"), wt = class {
|
|
1706
1796
|
static {
|
|
1707
1797
|
n(this, "Theme");
|
|
1708
1798
|
}
|
|
1709
1799
|
constructor() {
|
|
1710
|
-
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 =
|
|
1800
|
+
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 = F("#cde498", 10), this.primaryBorderColor = H(this.primaryColor, this.darkMode), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = R(this.primaryColor), this.secondaryTextColor = R(this.secondaryColor), this.tertiaryTextColor = R(this.primaryColor), this.lineColor = R(this.background), this.textColor = R(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))";
|
|
1711
1801
|
}
|
|
1712
1802
|
updateColors() {
|
|
1713
|
-
this.actorBorder =
|
|
1714
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
1715
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1803
|
+
this.actorBorder = I(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 || L(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || L(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || L(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || L(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || L(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || L(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || L(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || L(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || L(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || I(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || I(this.tertiaryColor, 40);
|
|
1804
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = I(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || I(this["cScale" + e], 25);
|
|
1805
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || L(this["cScale" + e], { h: 180 });
|
|
1716
1806
|
this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
|
|
1717
1807
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1718
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
1808
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || L(this.mainBkg, {
|
|
1719
1809
|
h: 30,
|
|
1720
1810
|
s: -30,
|
|
1721
1811
|
l: -(5 + e * 5)
|
|
1722
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
1812
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || L(this.mainBkg, {
|
|
1723
1813
|
h: 30,
|
|
1724
1814
|
s: -30,
|
|
1725
1815
|
l: -(8 + e * 5)
|
|
1726
1816
|
});
|
|
1727
|
-
this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.taskBorderColor = this.border1, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.activeTaskBorderColor = this.taskBorderColor, this.activeTaskBkgColor = this.mainBkg, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd ||
|
|
1817
|
+
this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.taskBorderColor = this.border1, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.activeTaskBorderColor = this.taskBorderColor, this.activeTaskBkgColor = this.mainBkg, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || F(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || F(this.mainBkg, 20), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = this.lineColor, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = L(this.primaryColor, { h: 64 }), this.fillType3 = L(this.secondaryColor, { h: 64 }), this.fillType4 = L(this.primaryColor, { h: -64 }), this.fillType5 = L(this.secondaryColor, { h: -64 }), this.fillType6 = L(this.primaryColor, { h: 128 }), this.fillType7 = L(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || L(this.primaryColor, { l: -30 }), this.pie5 = this.pie5 || L(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || L(this.tertiaryColor, {
|
|
1728
1818
|
h: 40,
|
|
1729
1819
|
l: -40
|
|
1730
|
-
}), this.pie7 = this.pie7 ||
|
|
1820
|
+
}), this.pie7 = this.pie7 || L(this.primaryColor, {
|
|
1731
1821
|
h: 60,
|
|
1732
1822
|
l: -10
|
|
1733
|
-
}), this.pie8 = this.pie8 ||
|
|
1823
|
+
}), this.pie8 = this.pie8 || L(this.primaryColor, {
|
|
1734
1824
|
h: -60,
|
|
1735
1825
|
l: -10
|
|
1736
|
-
}), this.pie9 = this.pie9 ||
|
|
1826
|
+
}), this.pie9 = this.pie9 || L(this.primaryColor, {
|
|
1737
1827
|
h: 120,
|
|
1738
1828
|
l: 0
|
|
1739
|
-
}), this.pie10 = this.pie10 ||
|
|
1829
|
+
}), this.pie10 = this.pie10 || L(this.primaryColor, {
|
|
1740
1830
|
h: 60,
|
|
1741
1831
|
l: -50
|
|
1742
|
-
}), this.pie11 = this.pie11 ||
|
|
1832
|
+
}), this.pie11 = this.pie11 || L(this.primaryColor, {
|
|
1743
1833
|
h: -60,
|
|
1744
1834
|
l: -50
|
|
1745
|
-
}), this.pie12 = this.pie12 ||
|
|
1835
|
+
}), this.pie12 = this.pie12 || L(this.primaryColor, {
|
|
1746
1836
|
h: 120,
|
|
1747
1837
|
l: -50
|
|
1748
|
-
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.venn1 = this.venn1 ??
|
|
1838
|
+
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.venn1 = this.venn1 ?? L(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? L(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? L(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? L(this.primaryColor, {
|
|
1749
1839
|
h: 60,
|
|
1750
1840
|
l: -30
|
|
1751
|
-
}), this.venn5 = this.venn5 ??
|
|
1841
|
+
}), this.venn5 = this.venn5 ?? L(this.primaryColor, {
|
|
1752
1842
|
h: -60,
|
|
1753
1843
|
l: -30
|
|
1754
|
-
}), this.venn6 = this.venn6 ??
|
|
1844
|
+
}), this.venn6 = this.venn6 ?? L(this.secondaryColor, {
|
|
1755
1845
|
h: 60,
|
|
1756
1846
|
l: -30
|
|
1757
|
-
}), this.venn7 = this.venn7 ??
|
|
1847
|
+
}), this.venn7 = this.venn7 ?? L(this.primaryColor, {
|
|
1758
1848
|
h: 120,
|
|
1759
1849
|
l: -30
|
|
1760
|
-
}), this.venn8 = this.venn8 ??
|
|
1850
|
+
}), this.venn8 = this.venn8 ?? L(this.secondaryColor, {
|
|
1761
1851
|
h: 120,
|
|
1762
1852
|
l: -30
|
|
1763
1853
|
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
|
|
@@ -1776,31 +1866,31 @@ var O = {
|
|
|
1776
1866
|
confusionBg: this.cynefin?.confusionBg || "#D7CCC8",
|
|
1777
1867
|
textColor: this.cynefin?.textColor || this.textColor,
|
|
1778
1868
|
labelColor: this.cynefin?.labelColor || this.primaryTextColor
|
|
1779
|
-
}, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
1869
|
+
}, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || L(this.primaryColor, {
|
|
1780
1870
|
r: 5,
|
|
1781
1871
|
g: 5,
|
|
1782
1872
|
b: 5
|
|
1783
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1873
|
+
}), this.quadrant3Fill = this.quadrant3Fill || L(this.primaryColor, {
|
|
1784
1874
|
r: 10,
|
|
1785
1875
|
g: 10,
|
|
1786
1876
|
b: 10
|
|
1787
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1877
|
+
}), this.quadrant4Fill = this.quadrant4Fill || L(this.primaryColor, {
|
|
1788
1878
|
r: 15,
|
|
1789
1879
|
g: 15,
|
|
1790
1880
|
b: 15
|
|
1791
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1881
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || L(this.primaryTextColor, {
|
|
1792
1882
|
r: -5,
|
|
1793
1883
|
g: -5,
|
|
1794
1884
|
b: -5
|
|
1795
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1885
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || L(this.primaryTextColor, {
|
|
1796
1886
|
r: -10,
|
|
1797
1887
|
g: -10,
|
|
1798
1888
|
b: -10
|
|
1799
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1889
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || L(this.primaryTextColor, {
|
|
1800
1890
|
r: -15,
|
|
1801
1891
|
g: -15,
|
|
1802
1892
|
b: -15
|
|
1803
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1893
|
+
}), this.quadrantPointFill = this.quadrantPointFill || P(this.quadrant1Fill) ? F(this.quadrant1Fill) : I(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.packet = {
|
|
1804
1894
|
startByteColor: this.primaryTextColor,
|
|
1805
1895
|
endByteColor: this.primaryTextColor,
|
|
1806
1896
|
labelColor: this.primaryTextColor,
|
|
@@ -1845,7 +1935,7 @@ var O = {
|
|
|
1845
1935
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1846
1936
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1847
1937
|
plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
|
|
1848
|
-
}, 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 ||
|
|
1938
|
+
}, 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 || L(this.primaryColor, { h: -30 }), this.git4 = this.git4 || L(this.primaryColor, { h: -60 }), this.git5 = this.git5 || L(this.primaryColor, { h: -90 }), this.git6 = this.git6 || L(this.primaryColor, { h: 60 }), this.git7 = this.git7 || L(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)) : (this.git0 = I(this.git0, 25), this.git1 = I(this.git1, 25), this.git2 = I(this.git2, 25), this.git3 = I(this.git3, 25), this.git4 = I(this.git4, 25), this.git5 = I(this.git5, 25), this.git6 = I(this.git6, 25), this.git7 = I(this.git7, 25)), this.gitInv0 = this.gitInv0 || R(this.git0), this.gitInv1 = this.gitInv1 || R(this.git1), this.gitInv2 = this.gitInv2 || R(this.git2), this.gitInv3 = this.gitInv3 || R(this.git3), this.gitInv4 = this.gitInv4 || R(this.git4), this.gitInv5 = this.gitInv5 || R(this.git5), this.gitInv6 = this.gitInv6 || R(this.git6), this.gitInv7 = this.gitInv7 || R(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || R(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || R(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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
|
|
1849
1939
|
}
|
|
1850
1940
|
calculate(e) {
|
|
1851
1941
|
if (typeof e != "object") {
|
|
@@ -1859,24 +1949,24 @@ var O = {
|
|
|
1859
1949
|
this[t] = e[t];
|
|
1860
1950
|
});
|
|
1861
1951
|
}
|
|
1862
|
-
},
|
|
1863
|
-
let t = new
|
|
1952
|
+
}, Tt = /* @__PURE__ */ n((e) => {
|
|
1953
|
+
let t = new wt();
|
|
1864
1954
|
return t.calculate(e), t;
|
|
1865
|
-
}, "getThemeVariables"),
|
|
1955
|
+
}, "getThemeVariables"), Et = class {
|
|
1866
1956
|
static {
|
|
1867
1957
|
n(this, "Theme");
|
|
1868
1958
|
}
|
|
1869
1959
|
constructor() {
|
|
1870
|
-
this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor =
|
|
1960
|
+
this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = F(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = L(this.primaryColor, { h: -160 }), this.primaryBorderColor = H(this.primaryColor, this.darkMode), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = R(this.primaryColor), this.secondaryTextColor = R(this.secondaryColor), this.tertiaryTextColor = R(this.tertiaryColor), this.lineColor = R(this.background), this.textColor = R(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 || F(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))";
|
|
1871
1961
|
}
|
|
1872
1962
|
updateColors() {
|
|
1873
|
-
this.secondBkg =
|
|
1874
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1875
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
1963
|
+
this.secondBkg = F(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = F(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";
|
|
1964
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || R(this["cScale" + e]);
|
|
1965
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || I(this["cScale" + e], 10);
|
|
1876
1966
|
this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
|
|
1877
1967
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1878
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
1879
|
-
this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.text, this.sectionBkgColor =
|
|
1968
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || L(this.mainBkg, { l: -(5 + e * 5) }), this["surfacePeer" + e] = this["surfacePeer" + e] || L(this.mainBkg, { l: -(8 + e * 5) });
|
|
1969
|
+
this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.text, this.sectionBkgColor = F(this.contrast, 30), this.sectionBkgColor2 = F(this.contrast, 30), this.taskBorderColor = I(this.contrast, 10), this.taskBkgColor = this.contrast, this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = this.text, this.taskTextOutsideColor = this.taskTextDarkColor, this.activeTaskBorderColor = this.taskBorderColor, this.activeTaskBkgColor = this.mainBkg, this.gridColor = F(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = I(this.critBkgColor, 10), this.todayLineColor = this.critBkgColor, this.vertLineColor = this.critBkgColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.transitionColor = this.transitionColor || "#000", this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f4f4f4", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.stateBorder = this.stateBorder || "#000", this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = "#222", this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = L(this.primaryColor, { h: 64 }), this.fillType3 = L(this.secondaryColor, { h: 64 }), this.fillType4 = L(this.primaryColor, { h: -64 }), this.fillType5 = L(this.secondaryColor, { h: -64 }), this.fillType6 = L(this.primaryColor, { h: 128 }), this.fillType7 = L(this.secondaryColor, { h: 128 });
|
|
1880
1970
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
|
|
1881
1971
|
this.pie12 = this.pie0, this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7";
|
|
1882
1972
|
for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this["cScale" + e];
|
|
@@ -1896,31 +1986,31 @@ var O = {
|
|
|
1896
1986
|
confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
|
|
1897
1987
|
textColor: this.cynefin?.textColor || this.textColor,
|
|
1898
1988
|
labelColor: this.cynefin?.labelColor || this.primaryTextColor
|
|
1899
|
-
}, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
1989
|
+
}, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || L(this.primaryColor, {
|
|
1900
1990
|
r: 5,
|
|
1901
1991
|
g: 5,
|
|
1902
1992
|
b: 5
|
|
1903
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1993
|
+
}), this.quadrant3Fill = this.quadrant3Fill || L(this.primaryColor, {
|
|
1904
1994
|
r: 10,
|
|
1905
1995
|
g: 10,
|
|
1906
1996
|
b: 10
|
|
1907
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1997
|
+
}), this.quadrant4Fill = this.quadrant4Fill || L(this.primaryColor, {
|
|
1908
1998
|
r: 15,
|
|
1909
1999
|
g: 15,
|
|
1910
2000
|
b: 15
|
|
1911
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
2001
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || L(this.primaryTextColor, {
|
|
1912
2002
|
r: -5,
|
|
1913
2003
|
g: -5,
|
|
1914
2004
|
b: -5
|
|
1915
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
2005
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || L(this.primaryTextColor, {
|
|
1916
2006
|
r: -10,
|
|
1917
2007
|
g: -10,
|
|
1918
2008
|
b: -10
|
|
1919
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
2009
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || L(this.primaryTextColor, {
|
|
1920
2010
|
r: -15,
|
|
1921
2011
|
g: -15,
|
|
1922
2012
|
b: -15
|
|
1923
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
2013
|
+
}), this.quadrantPointFill = this.quadrantPointFill || P(this.quadrant1Fill) ? F(this.quadrant1Fill) : I(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
1924
2014
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1925
2015
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1926
2016
|
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
@@ -1958,7 +2048,7 @@ var O = {
|
|
|
1958
2048
|
annotationStroke: this.wardley?.annotationStroke || this.lineColor,
|
|
1959
2049
|
annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
|
|
1960
2050
|
annotationFill: this.wardley?.annotationFill || this.background
|
|
1961
|
-
}, 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 =
|
|
2051
|
+
}, 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 = I(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || L(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || L(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || L(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || L(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || L(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || R(this.git0), this.gitInv1 = this.gitInv1 || R(this.git1), this.gitInv2 = this.gitInv2 || R(this.git2), this.gitInv3 = this.gitInv3 || R(this.git3), this.gitInv4 = this.gitInv4 || R(this.git4), this.gitInv5 = this.gitInv5 || R(this.git5), this.gitInv6 = this.gitInv6 || R(this.git6), this.gitInv7 = this.gitInv7 || R(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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
|
|
1962
2052
|
}
|
|
1963
2053
|
calculate(e) {
|
|
1964
2054
|
if (typeof e != "object") {
|
|
@@ -1972,10 +2062,10 @@ var O = {
|
|
|
1972
2062
|
this[t] = e[t];
|
|
1973
2063
|
});
|
|
1974
2064
|
}
|
|
1975
|
-
},
|
|
1976
|
-
let t = new
|
|
2065
|
+
}, G = /* @__PURE__ */ n((e) => {
|
|
2066
|
+
let t = new Et();
|
|
1977
2067
|
return t.calculate(e), t;
|
|
1978
|
-
}, "getThemeVariables"),
|
|
2068
|
+
}, "getThemeVariables"), Dt = class {
|
|
1979
2069
|
static {
|
|
1980
2070
|
n(this, "Theme");
|
|
1981
2071
|
}
|
|
@@ -1983,76 +2073,76 @@ var O = {
|
|
|
1983
2073
|
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 = H(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";
|
|
1984
2074
|
}
|
|
1985
2075
|
updateColors() {
|
|
1986
|
-
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor ||
|
|
2076
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || L(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || L(this.primaryColor, {
|
|
1987
2077
|
h: 180,
|
|
1988
2078
|
l: 5
|
|
1989
|
-
}), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor ||
|
|
1990
|
-
let e = "#ECECFE", t = "#E9E9F1", n =
|
|
2079
|
+
}), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || R(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || R(this.tertiaryColor), this.lineColor = this.lineColor || R(this.background), this.arrowheadColor = this.arrowheadColor || R(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 ? I(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 || I(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || R(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
|
|
2080
|
+
let e = "#ECECFE", t = "#E9E9F1", n = L(e, {
|
|
1991
2081
|
h: 180,
|
|
1992
2082
|
l: 5
|
|
1993
2083
|
});
|
|
1994
|
-
if (this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor ||
|
|
2084
|
+
if (this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || F(e, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || e, this.cScale1 = this.cScale1 || t, this.cScale2 = this.cScale2 || n, this.cScale3 = this.cScale3 || L(e, { h: 30 }), this.cScale4 = this.cScale4 || L(e, { h: 60 }), this.cScale5 = this.cScale5 || L(e, { h: 90 }), this.cScale6 = this.cScale6 || L(e, { h: 120 }), this.cScale7 = this.cScale7 || L(e, { h: 150 }), this.cScale8 = this.cScale8 || L(e, {
|
|
1995
2085
|
h: 210,
|
|
1996
2086
|
l: 150
|
|
1997
|
-
}), this.cScale9 = this.cScale9 ||
|
|
1998
|
-
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
1999
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
2000
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
2087
|
+
}), this.cScale9 = this.cScale9 || L(e, { h: 270 }), this.cScale10 = this.cScale10 || L(e, { h: 300 }), this.cScale11 = this.cScale11 || L(e, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = I(this["cScale" + e], 75);
|
|
2088
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = I(this["cScale" + e], 25);
|
|
2089
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || R(this["cScale" + e]);
|
|
2090
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || I(this["cScale" + e], 10);
|
|
2001
2091
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2002
2092
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
2003
2093
|
let r = this.darkMode ? -4 : -1;
|
|
2004
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
2094
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || L(this.mainBkg, {
|
|
2005
2095
|
h: 180,
|
|
2006
2096
|
s: -15,
|
|
2007
2097
|
l: r * (5 + e * 3)
|
|
2008
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
2098
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || L(this.mainBkg, {
|
|
2009
2099
|
h: 180,
|
|
2010
2100
|
s: -15,
|
|
2011
2101
|
l: r * (8 + e * 3)
|
|
2012
2102
|
});
|
|
2013
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 ||
|
|
2103
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || L(e, { h: 64 }), this.fillType3 = this.fillType3 || L(t, { h: 64 }), this.fillType4 = this.fillType4 || L(e, { h: -64 }), this.fillType5 = this.fillType5 || L(t, { h: -64 }), this.fillType6 = this.fillType6 || L(e, { h: 128 }), this.fillType7 = this.fillType7 || L(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || L(e, { l: -10 }), this.pie5 = this.pie5 || L(t, { l: -10 }), this.pie6 = this.pie6 || L(n, { l: -10 }), this.pie7 = this.pie7 || L(e, {
|
|
2014
2104
|
h: 60,
|
|
2015
2105
|
l: -10
|
|
2016
|
-
}), this.pie8 = this.pie8 ||
|
|
2106
|
+
}), this.pie8 = this.pie8 || L(e, {
|
|
2017
2107
|
h: -60,
|
|
2018
2108
|
l: -10
|
|
2019
|
-
}), this.pie9 = this.pie9 ||
|
|
2109
|
+
}), this.pie9 = this.pie9 || L(e, {
|
|
2020
2110
|
h: 120,
|
|
2021
2111
|
l: 0
|
|
2022
|
-
}), this.pie10 = this.pie10 ||
|
|
2112
|
+
}), this.pie10 = this.pie10 || L(e, {
|
|
2023
2113
|
h: 60,
|
|
2024
2114
|
l: -20
|
|
2025
|
-
}), this.pie11 = this.pie11 ||
|
|
2115
|
+
}), this.pie11 = this.pie11 || L(e, {
|
|
2026
2116
|
h: -60,
|
|
2027
2117
|
l: -20
|
|
2028
|
-
}), this.pie12 = this.pie12 ||
|
|
2118
|
+
}), this.pie12 = this.pie12 || L(e, {
|
|
2029
2119
|
h: 120,
|
|
2030
2120
|
l: -10
|
|
2031
|
-
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill ||
|
|
2121
|
+
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || L(e, {
|
|
2032
2122
|
r: 5,
|
|
2033
2123
|
g: 5,
|
|
2034
2124
|
b: 5
|
|
2035
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
2125
|
+
}), this.quadrant3Fill = this.quadrant3Fill || L(e, {
|
|
2036
2126
|
r: 10,
|
|
2037
2127
|
g: 10,
|
|
2038
2128
|
b: 10
|
|
2039
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
2129
|
+
}), this.quadrant4Fill = this.quadrant4Fill || L(e, {
|
|
2040
2130
|
r: 15,
|
|
2041
2131
|
g: 15,
|
|
2042
2132
|
b: 15
|
|
2043
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
2133
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || L(this.primaryTextColor, {
|
|
2044
2134
|
r: -5,
|
|
2045
2135
|
g: -5,
|
|
2046
2136
|
b: -5
|
|
2047
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
2137
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || L(this.primaryTextColor, {
|
|
2048
2138
|
r: -10,
|
|
2049
2139
|
g: -10,
|
|
2050
2140
|
b: -10
|
|
2051
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
2141
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || L(this.primaryTextColor, {
|
|
2052
2142
|
r: -15,
|
|
2053
2143
|
g: -15,
|
|
2054
2144
|
b: -15
|
|
2055
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
2145
|
+
}), this.quadrantPointFill = this.quadrantPointFill || P(this.quadrant1Fill) ? F(this.quadrant1Fill) : I(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
2056
2146
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2057
2147
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2058
2148
|
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
@@ -2065,7 +2155,7 @@ var O = {
|
|
|
2065
2155
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2066
2156
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2067
2157
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2068
|
-
}, 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 ?
|
|
2158
|
+
}, 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 ? I(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 || L(e, { h: -30 }), this.git4 = this.git4 || L(e, { h: -60 }), this.git5 = this.git5 || L(e, { h: -90 }), this.git6 = this.git6 || L(e, { h: 60 }), this.git7 = this.git7 || L(e, { h: 120 }), this.darkMode ? (this.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)) : (this.git0 = I(this.git0, 25), this.git1 = I(this.git1, 25), this.git2 = I(this.git2, 25), this.git3 = I(this.git3, 25), this.git4 = I(this.git4, 25), this.git5 = I(this.git5, 25), this.git6 = I(this.git6, 25), this.git7 = I(this.git7, 25)), this.gitInv0 = this.gitInv0 || R(this.git0), this.gitInv1 = this.gitInv1 || R(this.git1), this.gitInv2 = this.gitInv2 || R(this.git2), this.gitInv3 = this.gitInv3 || R(this.git3), this.gitInv4 = this.gitInv4 || R(this.git4), this.gitInv5 = this.gitInv5 || R(this.git5), this.gitInv6 = this.gitInv6 || R(this.git6), this.gitInv7 = this.gitInv7 || R(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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
|
|
2069
2159
|
}
|
|
2070
2160
|
calculate(e) {
|
|
2071
2161
|
if (typeof e != "object") {
|
|
@@ -2079,82 +2169,82 @@ var O = {
|
|
|
2079
2169
|
this[t] = e[t];
|
|
2080
2170
|
});
|
|
2081
2171
|
}
|
|
2082
|
-
},
|
|
2083
|
-
let t = new
|
|
2172
|
+
}, Ot = /* @__PURE__ */ n((e) => {
|
|
2173
|
+
let t = new Dt();
|
|
2084
2174
|
return t.calculate(e), t;
|
|
2085
|
-
}, "getThemeVariables"),
|
|
2175
|
+
}, "getThemeVariables"), kt = class {
|
|
2086
2176
|
static {
|
|
2087
2177
|
n(this, "Theme");
|
|
2088
2178
|
}
|
|
2089
2179
|
constructor() {
|
|
2090
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor =
|
|
2180
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = F(this.primaryColor, 16), this.tertiaryColor = L(this.primaryColor, { h: -160 }), this.primaryBorderColor = R(this.background), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = R(this.primaryColor), this.secondaryTextColor = R(this.secondaryColor), this.tertiaryTextColor = R(this.tertiaryColor), this.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = F(R("#323D47"), 10), this.border1 = "#ccc", this.border2 = M(255, 255, 255, .25), this.arrowheadColor = R(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";
|
|
2091
2181
|
}
|
|
2092
2182
|
updateColors() {
|
|
2093
|
-
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor ||
|
|
2183
|
+
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || L(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || L(this.primaryColor, {
|
|
2094
2184
|
h: 180,
|
|
2095
2185
|
l: 5
|
|
2096
|
-
}), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor ||
|
|
2186
|
+
}), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || R(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || R(this.tertiaryColor), this.lineColor = this.lineColor || R(this.background), this.arrowheadColor = this.arrowheadColor || R(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 ? I(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 || I(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || R(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 || F(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 || L(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || L(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || L(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || L(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || L(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || L(this.primaryColor, {
|
|
2097
2187
|
h: 210,
|
|
2098
2188
|
l: 150
|
|
2099
|
-
}), this.cScale9 = this.cScale9 ||
|
|
2100
|
-
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
2101
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
2102
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
2189
|
+
}), this.cScale9 = this.cScale9 || L(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || L(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || L(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = I(this["cScale" + e], 75);
|
|
2190
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = I(this["cScale" + e], 25);
|
|
2191
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || R(this["cScale" + e]);
|
|
2192
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || I(this["cScale" + e], 10);
|
|
2103
2193
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2104
2194
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
2105
2195
|
let e = this.darkMode ? -4 : -1;
|
|
2106
|
-
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] ||
|
|
2196
|
+
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || L(this.mainBkg, {
|
|
2107
2197
|
h: 180,
|
|
2108
2198
|
s: -15,
|
|
2109
2199
|
l: e * (5 + t * 3)
|
|
2110
|
-
}), this["surfacePeer" + t] = this["surfacePeer" + t] ||
|
|
2200
|
+
}), this["surfacePeer" + t] = this["surfacePeer" + t] || L(this.mainBkg, {
|
|
2111
2201
|
h: 180,
|
|
2112
2202
|
s: -15,
|
|
2113
2203
|
l: e * (8 + t * 3)
|
|
2114
2204
|
});
|
|
2115
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 ||
|
|
2205
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || L(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || L(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || L(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || L(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || L(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || L(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || L(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || L(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || L(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || L(this.primaryColor, {
|
|
2116
2206
|
h: 60,
|
|
2117
2207
|
l: -10
|
|
2118
|
-
}), this.pie8 = this.pie8 ||
|
|
2208
|
+
}), this.pie8 = this.pie8 || L(this.primaryColor, {
|
|
2119
2209
|
h: -60,
|
|
2120
2210
|
l: -10
|
|
2121
|
-
}), this.pie9 = this.pie9 ||
|
|
2211
|
+
}), this.pie9 = this.pie9 || L(this.primaryColor, {
|
|
2122
2212
|
h: 120,
|
|
2123
2213
|
l: 0
|
|
2124
|
-
}), this.pie10 = this.pie10 ||
|
|
2214
|
+
}), this.pie10 = this.pie10 || L(this.primaryColor, {
|
|
2125
2215
|
h: 60,
|
|
2126
2216
|
l: -20
|
|
2127
|
-
}), this.pie11 = this.pie11 ||
|
|
2217
|
+
}), this.pie11 = this.pie11 || L(this.primaryColor, {
|
|
2128
2218
|
h: -60,
|
|
2129
2219
|
l: -20
|
|
2130
|
-
}), this.pie12 = this.pie12 ||
|
|
2220
|
+
}), this.pie12 = this.pie12 || L(this.primaryColor, {
|
|
2131
2221
|
h: 120,
|
|
2132
2222
|
l: -10
|
|
2133
|
-
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
2223
|
+
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || L(this.primaryColor, {
|
|
2134
2224
|
r: 5,
|
|
2135
2225
|
g: 5,
|
|
2136
2226
|
b: 5
|
|
2137
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
2227
|
+
}), this.quadrant3Fill = this.quadrant3Fill || L(this.primaryColor, {
|
|
2138
2228
|
r: 10,
|
|
2139
2229
|
g: 10,
|
|
2140
2230
|
b: 10
|
|
2141
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
2231
|
+
}), this.quadrant4Fill = this.quadrant4Fill || L(this.primaryColor, {
|
|
2142
2232
|
r: 15,
|
|
2143
2233
|
g: 15,
|
|
2144
2234
|
b: 15
|
|
2145
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
2235
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || L(this.primaryTextColor, {
|
|
2146
2236
|
r: -5,
|
|
2147
2237
|
g: -5,
|
|
2148
2238
|
b: -5
|
|
2149
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
2239
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || L(this.primaryTextColor, {
|
|
2150
2240
|
r: -10,
|
|
2151
2241
|
g: -10,
|
|
2152
2242
|
b: -10
|
|
2153
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
2243
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || L(this.primaryTextColor, {
|
|
2154
2244
|
r: -15,
|
|
2155
2245
|
g: -15,
|
|
2156
2246
|
b: -15
|
|
2157
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
2247
|
+
}), this.quadrantPointFill = this.quadrantPointFill || P(this.quadrant1Fill) ? F(this.quadrant1Fill) : I(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
2158
2248
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2159
2249
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2160
2250
|
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
@@ -2167,7 +2257,7 @@ var O = {
|
|
|
2167
2257
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2168
2258
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2169
2259
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2170
|
-
}, 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 ?
|
|
2260
|
+
}, 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 ? I(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 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)) : (this.git0 = I(this.git0, 25), this.git1 = I(this.git1, 25), this.git2 = I(this.git2, 25), this.git3 = I(this.git3, 25), this.git4 = I(this.git4, 25), this.git5 = I(this.git5, 25), this.git6 = I(this.git6, 25), this.git7 = I(this.git7, 25)), this.gitInv0 = this.gitInv0 || R(this.git0), this.gitInv1 = this.gitInv1 || R(this.git1), this.gitInv2 = this.gitInv2 || R(this.git2), this.gitInv3 = this.gitInv3 || R(this.git3), this.gitInv4 = this.gitInv4 || R(this.git4), this.gitInv5 = this.gitInv5 || R(this.git5), this.gitInv6 = this.gitInv6 || R(this.git6), this.gitInv7 = this.gitInv7 || R(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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
|
|
2171
2261
|
}
|
|
2172
2262
|
calculate(e) {
|
|
2173
2263
|
if (typeof e != "object") {
|
|
@@ -2181,10 +2271,10 @@ var O = {
|
|
|
2181
2271
|
this[t] = e[t];
|
|
2182
2272
|
});
|
|
2183
2273
|
}
|
|
2184
|
-
},
|
|
2185
|
-
let t = new
|
|
2274
|
+
}, At = /* @__PURE__ */ n((e) => {
|
|
2275
|
+
let t = new kt();
|
|
2186
2276
|
return t.calculate(e), t;
|
|
2187
|
-
}, "getThemeVariables"),
|
|
2277
|
+
}, "getThemeVariables"), jt = class {
|
|
2188
2278
|
static {
|
|
2189
2279
|
n(this, "Theme");
|
|
2190
2280
|
}
|
|
@@ -2192,75 +2282,75 @@ var O = {
|
|
|
2192
2282
|
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 = H("#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";
|
|
2193
2283
|
}
|
|
2194
2284
|
updateColors() {
|
|
2195
|
-
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor ||
|
|
2285
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || L(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || L(this.primaryColor, {
|
|
2196
2286
|
h: 180,
|
|
2197
2287
|
l: 5
|
|
2198
|
-
}), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor ||
|
|
2199
|
-
let e = "#ECECFE", t = "#E9E9F1", n =
|
|
2288
|
+
}), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || R(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || R(this.tertiaryColor), this.lineColor = this.lineColor || R(this.background), this.arrowheadColor = this.arrowheadColor || R(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 ? I(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 || I(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || R(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
|
|
2289
|
+
let e = "#ECECFE", t = "#E9E9F1", n = L(e, {
|
|
2200
2290
|
h: 180,
|
|
2201
2291
|
l: 5
|
|
2202
2292
|
});
|
|
2203
|
-
this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor ||
|
|
2293
|
+
this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || F(e, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.compositeTitleBackground = "#F9F9FB", this.altBackground = "#F9F9FB", this.stateEdgeLabelBackground = "#FFFFFF", this.fontWeight = 600, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor;
|
|
2204
2294
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = this.mainBkg;
|
|
2205
|
-
if (this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
2206
|
-
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
2207
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
2208
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
2295
|
+
if (this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = I(this["cScale" + e], 75);
|
|
2296
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = I(this["cScale" + e], 25);
|
|
2297
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || R(this["cScale" + e]);
|
|
2298
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || I(this["cScale" + e], 10);
|
|
2209
2299
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2210
2300
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
2211
2301
|
let r = this.darkMode ? -4 : -1;
|
|
2212
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
2302
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || L(this.mainBkg, {
|
|
2213
2303
|
h: 180,
|
|
2214
2304
|
s: -15,
|
|
2215
2305
|
l: r * (5 + e * 3)
|
|
2216
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
2306
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || L(this.mainBkg, {
|
|
2217
2307
|
h: 180,
|
|
2218
2308
|
s: -15,
|
|
2219
2309
|
l: r * (8 + e * 3)
|
|
2220
2310
|
});
|
|
2221
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 ||
|
|
2311
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || L(e, { h: 64 }), this.fillType3 = this.fillType3 || L(t, { h: 64 }), this.fillType4 = this.fillType4 || L(e, { h: -64 }), this.fillType5 = this.fillType5 || L(t, { h: -64 }), this.fillType6 = this.fillType6 || L(e, { h: 128 }), this.fillType7 = this.fillType7 || L(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || L(e, { l: -10 }), this.pie5 = this.pie5 || L(t, { l: -10 }), this.pie6 = this.pie6 || L(n, { l: -10 }), this.pie7 = this.pie7 || L(e, {
|
|
2222
2312
|
h: 60,
|
|
2223
2313
|
l: -10
|
|
2224
|
-
}), this.pie8 = this.pie8 ||
|
|
2314
|
+
}), this.pie8 = this.pie8 || L(e, {
|
|
2225
2315
|
h: -60,
|
|
2226
2316
|
l: -10
|
|
2227
|
-
}), this.pie9 = this.pie9 ||
|
|
2317
|
+
}), this.pie9 = this.pie9 || L(e, {
|
|
2228
2318
|
h: 120,
|
|
2229
2319
|
l: 0
|
|
2230
|
-
}), this.pie10 = this.pie10 ||
|
|
2320
|
+
}), this.pie10 = this.pie10 || L(e, {
|
|
2231
2321
|
h: 60,
|
|
2232
2322
|
l: -20
|
|
2233
|
-
}), this.pie11 = this.pie11 ||
|
|
2323
|
+
}), this.pie11 = this.pie11 || L(e, {
|
|
2234
2324
|
h: -60,
|
|
2235
2325
|
l: -20
|
|
2236
|
-
}), this.pie12 = this.pie12 ||
|
|
2326
|
+
}), this.pie12 = this.pie12 || L(e, {
|
|
2237
2327
|
h: 120,
|
|
2238
2328
|
l: -10
|
|
2239
|
-
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill ||
|
|
2329
|
+
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || L(e, {
|
|
2240
2330
|
r: 5,
|
|
2241
2331
|
g: 5,
|
|
2242
2332
|
b: 5
|
|
2243
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
2333
|
+
}), this.quadrant3Fill = this.quadrant3Fill || L(e, {
|
|
2244
2334
|
r: 10,
|
|
2245
2335
|
g: 10,
|
|
2246
2336
|
b: 10
|
|
2247
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
2337
|
+
}), this.quadrant4Fill = this.quadrant4Fill || L(e, {
|
|
2248
2338
|
r: 15,
|
|
2249
2339
|
g: 15,
|
|
2250
2340
|
b: 15
|
|
2251
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
2341
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || L(this.primaryTextColor, {
|
|
2252
2342
|
r: -5,
|
|
2253
2343
|
g: -5,
|
|
2254
2344
|
b: -5
|
|
2255
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
2345
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || L(this.primaryTextColor, {
|
|
2256
2346
|
r: -10,
|
|
2257
2347
|
g: -10,
|
|
2258
2348
|
b: -10
|
|
2259
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
2349
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || L(this.primaryTextColor, {
|
|
2260
2350
|
r: -15,
|
|
2261
2351
|
g: -15,
|
|
2262
2352
|
b: -15
|
|
2263
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
2353
|
+
}), this.quadrantPointFill = this.quadrantPointFill || P(this.quadrant1Fill) ? F(this.quadrant1Fill) : I(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
2264
2354
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2265
2355
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2266
2356
|
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
@@ -2273,7 +2363,7 @@ var O = {
|
|
|
2273
2363
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2274
2364
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2275
2365
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2276
|
-
}, 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 ?
|
|
2366
|
+
}, 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 ? I(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 || L(e, { h: -30 }), this.git4 = this.git4 || L(e, { h: -60 }), this.git5 = this.git5 || L(e, { h: -90 }), this.git6 = this.git6 || L(e, { h: 60 }), this.git7 = this.git7 || L(e, { h: 120 }), this.darkMode ? (this.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)) : (this.git0 = I(this.git0, 25), this.git1 = I(this.git1, 25), this.git2 = I(this.git2, 25), this.git3 = I(this.git3, 25), this.git4 = I(this.git4, 25), this.git5 = I(this.git5, 25), this.git6 = I(this.git6, 25), this.git7 = I(this.git7, 25)), this.gitInv0 = this.gitInv0 || R(this.git0), this.gitInv1 = this.gitInv1 || R(this.git1), this.gitInv2 = this.gitInv2 || R(this.git2), this.gitInv3 = this.gitInv3 || R(this.git3), this.gitInv4 = this.gitInv4 || R(this.git4), this.gitInv5 = this.gitInv5 || R(this.git5), this.gitInv6 = this.gitInv6 || R(this.git6), this.gitInv7 = this.gitInv7 || R(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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
|
|
2277
2367
|
}
|
|
2278
2368
|
calculate(e) {
|
|
2279
2369
|
if (typeof e != "object") {
|
|
@@ -2287,82 +2377,82 @@ var O = {
|
|
|
2287
2377
|
this[t] = e[t];
|
|
2288
2378
|
});
|
|
2289
2379
|
}
|
|
2290
|
-
},
|
|
2291
|
-
let t = new
|
|
2380
|
+
}, Mt = /* @__PURE__ */ n((e) => {
|
|
2381
|
+
let t = new jt();
|
|
2292
2382
|
return t.calculate(e), t;
|
|
2293
|
-
}, "getThemeVariables"),
|
|
2383
|
+
}, "getThemeVariables"), Nt = class {
|
|
2294
2384
|
static {
|
|
2295
2385
|
n(this, "Theme");
|
|
2296
2386
|
}
|
|
2297
2387
|
constructor() {
|
|
2298
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor =
|
|
2388
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = F(this.primaryColor, 16), this.tertiaryColor = L(this.primaryColor, { h: -160 }), this.primaryBorderColor = R(this.background), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = R(this.primaryColor), this.secondaryTextColor = R(this.secondaryColor), this.tertiaryTextColor = R(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = F(R("#323D47"), 10), this.border1 = "#ccc", this.border2 = M(255, 255, 255, .25), this.arrowheadColor = R(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";
|
|
2299
2389
|
}
|
|
2300
2390
|
updateColors() {
|
|
2301
|
-
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor ||
|
|
2391
|
+
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || L(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || L(this.primaryColor, {
|
|
2302
2392
|
h: 180,
|
|
2303
2393
|
l: 5
|
|
2304
|
-
}), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor ||
|
|
2394
|
+
}), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || R(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || R(this.tertiaryColor), this.lineColor = this.lineColor || R(this.background), this.arrowheadColor = this.arrowheadColor || R(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 ? I(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 || I(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || R(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 || F(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 || L(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || L(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || L(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || L(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || L(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || L(this.primaryColor, {
|
|
2305
2395
|
h: 210,
|
|
2306
2396
|
l: 150
|
|
2307
|
-
}), this.cScale9 = this.cScale9 ||
|
|
2308
|
-
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
2309
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
2310
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
2397
|
+
}), this.cScale9 = this.cScale9 || L(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || L(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || L(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = I(this["cScale" + e], 75);
|
|
2398
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = I(this["cScale" + e], 25);
|
|
2399
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || R(this["cScale" + e]);
|
|
2400
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || I(this["cScale" + e], 10);
|
|
2311
2401
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2312
2402
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
2313
2403
|
let e = this.darkMode ? -4 : -1;
|
|
2314
|
-
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] ||
|
|
2404
|
+
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || L(this.mainBkg, {
|
|
2315
2405
|
h: 180,
|
|
2316
2406
|
s: -15,
|
|
2317
2407
|
l: e * (5 + t * 3)
|
|
2318
|
-
}), this["surfacePeer" + t] = this["surfacePeer" + t] ||
|
|
2408
|
+
}), this["surfacePeer" + t] = this["surfacePeer" + t] || L(this.mainBkg, {
|
|
2319
2409
|
h: 180,
|
|
2320
2410
|
s: -15,
|
|
2321
2411
|
l: e * (8 + t * 3)
|
|
2322
2412
|
});
|
|
2323
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 ||
|
|
2413
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || L(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || L(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || L(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || L(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || L(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || L(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || L(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || L(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || L(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || L(this.primaryColor, {
|
|
2324
2414
|
h: 60,
|
|
2325
2415
|
l: -10
|
|
2326
|
-
}), this.pie8 = this.pie8 ||
|
|
2416
|
+
}), this.pie8 = this.pie8 || L(this.primaryColor, {
|
|
2327
2417
|
h: -60,
|
|
2328
2418
|
l: -10
|
|
2329
|
-
}), this.pie9 = this.pie9 ||
|
|
2419
|
+
}), this.pie9 = this.pie9 || L(this.primaryColor, {
|
|
2330
2420
|
h: 120,
|
|
2331
2421
|
l: 0
|
|
2332
|
-
}), this.pie10 = this.pie10 ||
|
|
2422
|
+
}), this.pie10 = this.pie10 || L(this.primaryColor, {
|
|
2333
2423
|
h: 60,
|
|
2334
2424
|
l: -20
|
|
2335
|
-
}), this.pie11 = this.pie11 ||
|
|
2425
|
+
}), this.pie11 = this.pie11 || L(this.primaryColor, {
|
|
2336
2426
|
h: -60,
|
|
2337
2427
|
l: -20
|
|
2338
|
-
}), this.pie12 = this.pie12 ||
|
|
2428
|
+
}), this.pie12 = this.pie12 || L(this.primaryColor, {
|
|
2339
2429
|
h: 120,
|
|
2340
2430
|
l: -10
|
|
2341
|
-
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
2431
|
+
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || L(this.primaryColor, {
|
|
2342
2432
|
r: 5,
|
|
2343
2433
|
g: 5,
|
|
2344
2434
|
b: 5
|
|
2345
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
2435
|
+
}), this.quadrant3Fill = this.quadrant3Fill || L(this.primaryColor, {
|
|
2346
2436
|
r: 10,
|
|
2347
2437
|
g: 10,
|
|
2348
2438
|
b: 10
|
|
2349
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
2439
|
+
}), this.quadrant4Fill = this.quadrant4Fill || L(this.primaryColor, {
|
|
2350
2440
|
r: 15,
|
|
2351
2441
|
g: 15,
|
|
2352
2442
|
b: 15
|
|
2353
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
2443
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || L(this.primaryTextColor, {
|
|
2354
2444
|
r: -5,
|
|
2355
2445
|
g: -5,
|
|
2356
2446
|
b: -5
|
|
2357
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
2447
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || L(this.primaryTextColor, {
|
|
2358
2448
|
r: -10,
|
|
2359
2449
|
g: -10,
|
|
2360
2450
|
b: -10
|
|
2361
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
2451
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || L(this.primaryTextColor, {
|
|
2362
2452
|
r: -15,
|
|
2363
2453
|
g: -15,
|
|
2364
2454
|
b: -15
|
|
2365
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
2455
|
+
}), this.quadrantPointFill = this.quadrantPointFill || P(this.quadrant1Fill) ? F(this.quadrant1Fill) : I(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
2366
2456
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2367
2457
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2368
2458
|
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
@@ -2375,7 +2465,7 @@ var O = {
|
|
|
2375
2465
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2376
2466
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2377
2467
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2378
|
-
}, 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 ?
|
|
2468
|
+
}, 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 ? I(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 || L(this.primaryColor, { h: -30 }), this.git4 = this.git4 || L(this.primaryColor, { h: -60 }), this.git5 = this.git5 || L(this.primaryColor, { h: -90 }), this.git6 = this.git6 || L(this.primaryColor, { h: 60 }), this.git7 = this.git7 || L(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)) : (this.git0 = I(this.git0, 25), this.git1 = I(this.git1, 25), this.git2 = I(this.git2, 25), this.git3 = I(this.git3, 25), this.git4 = I(this.git4, 25), this.git5 = I(this.git5, 25), this.git6 = I(this.git6, 25), this.git7 = I(this.git7, 25)), this.gitInv0 = this.gitInv0 || R(this.git0), this.gitInv1 = this.gitInv1 || R(this.git1), this.gitInv2 = this.gitInv2 || R(this.git2), this.gitInv3 = this.gitInv3 || R(this.git3), this.gitInv4 = this.gitInv4 || R(this.git4), this.gitInv5 = this.gitInv5 || R(this.git5), this.gitInv6 = this.gitInv6 || R(this.git6), this.gitInv7 = this.gitInv7 || R(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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
|
|
2379
2469
|
}
|
|
2380
2470
|
calculate(e) {
|
|
2381
2471
|
if (typeof e != "object") {
|
|
@@ -2389,10 +2479,10 @@ var O = {
|
|
|
2389
2479
|
this[t] = e[t];
|
|
2390
2480
|
});
|
|
2391
2481
|
}
|
|
2392
|
-
},
|
|
2393
|
-
let t = new
|
|
2482
|
+
}, Pt = /* @__PURE__ */ n((e) => {
|
|
2483
|
+
let t = new Nt();
|
|
2394
2484
|
return t.calculate(e), t;
|
|
2395
|
-
}, "getThemeVariables"),
|
|
2485
|
+
}, "getThemeVariables"), Ft = class {
|
|
2396
2486
|
static {
|
|
2397
2487
|
n(this, "Theme");
|
|
2398
2488
|
}
|
|
@@ -2426,72 +2516,72 @@ var O = {
|
|
|
2426
2516
|
], this.filterColor = "#000000";
|
|
2427
2517
|
}
|
|
2428
2518
|
updateColors() {
|
|
2429
|
-
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor ||
|
|
2519
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || L(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || L(this.primaryColor, {
|
|
2430
2520
|
h: 180,
|
|
2431
2521
|
l: 5
|
|
2432
|
-
}), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor ||
|
|
2433
|
-
let e = "#ECECFE", t = "#E9E9F1", n =
|
|
2522
|
+
}), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || R(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || R(this.tertiaryColor), this.lineColor = this.lineColor || R(this.background), this.arrowheadColor = this.arrowheadColor || R(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 ? I(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 || I(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || R(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
|
|
2523
|
+
let e = "#ECECFE", t = "#E9E9F1", n = L(e, {
|
|
2434
2524
|
h: 180,
|
|
2435
2525
|
l: 5
|
|
2436
2526
|
});
|
|
2437
|
-
this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor ||
|
|
2438
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
2439
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
2527
|
+
this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || F(e, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || "#f4a8ff", this.cScale1 = this.cScale1 || "#46ecd5", this.cScale2 = this.cScale2 || "#ffb86a", this.cScale3 = this.cScale3 || "#dab2ff", this.cScale4 = this.cScale4 || "#7bf1a8", this.cScale5 = this.cScale5 || "#c4b4ff", this.cScale6 = this.cScale6 || "#ffa2a2", this.cScale7 = this.cScale7 || "#ffdf20", this.cScale8 = this.cScale8 || "#a3b3ff", this.cScale9 = this.cScale9 || "#bbf451", this.cScale10 = this.cScale10 || "#74d4ff", this.cScale11 = this.cScale11 || "#ffa1ad";
|
|
2528
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || R(this["cScale" + e]);
|
|
2529
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || I(this["cScale" + e], 10);
|
|
2440
2530
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2441
2531
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
2442
2532
|
let r = this.darkMode ? -4 : -1;
|
|
2443
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
2533
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || L(this.mainBkg, {
|
|
2444
2534
|
h: 180,
|
|
2445
2535
|
s: -15,
|
|
2446
2536
|
l: r * (5 + e * 3)
|
|
2447
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
2537
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || L(this.mainBkg, {
|
|
2448
2538
|
h: 180,
|
|
2449
2539
|
s: -15,
|
|
2450
2540
|
l: r * (8 + e * 3)
|
|
2451
2541
|
});
|
|
2452
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 ||
|
|
2542
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || L(e, { h: 64 }), this.fillType3 = this.fillType3 || L(t, { h: 64 }), this.fillType4 = this.fillType4 || L(e, { h: -64 }), this.fillType5 = this.fillType5 || L(t, { h: -64 }), this.fillType6 = this.fillType6 || L(e, { h: 128 }), this.fillType7 = this.fillType7 || L(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || L(e, { l: -10 }), this.pie5 = this.pie5 || L(t, { l: -10 }), this.pie6 = this.pie6 || L(n, { l: -10 }), this.pie7 = this.pie7 || L(e, {
|
|
2453
2543
|
h: 60,
|
|
2454
2544
|
l: -10
|
|
2455
|
-
}), this.pie8 = this.pie8 ||
|
|
2545
|
+
}), this.pie8 = this.pie8 || L(e, {
|
|
2456
2546
|
h: -60,
|
|
2457
2547
|
l: -10
|
|
2458
|
-
}), this.pie9 = this.pie9 ||
|
|
2548
|
+
}), this.pie9 = this.pie9 || L(e, {
|
|
2459
2549
|
h: 120,
|
|
2460
2550
|
l: 0
|
|
2461
|
-
}), this.pie10 = this.pie10 ||
|
|
2551
|
+
}), this.pie10 = this.pie10 || L(e, {
|
|
2462
2552
|
h: 60,
|
|
2463
2553
|
l: -20
|
|
2464
|
-
}), this.pie11 = this.pie11 ||
|
|
2554
|
+
}), this.pie11 = this.pie11 || L(e, {
|
|
2465
2555
|
h: -60,
|
|
2466
2556
|
l: -20
|
|
2467
|
-
}), this.pie12 = this.pie12 ||
|
|
2557
|
+
}), this.pie12 = this.pie12 || L(e, {
|
|
2468
2558
|
h: 120,
|
|
2469
2559
|
l: -10
|
|
2470
|
-
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill ||
|
|
2560
|
+
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || L(e, {
|
|
2471
2561
|
r: 5,
|
|
2472
2562
|
g: 5,
|
|
2473
2563
|
b: 5
|
|
2474
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
2564
|
+
}), this.quadrant3Fill = this.quadrant3Fill || L(e, {
|
|
2475
2565
|
r: 10,
|
|
2476
2566
|
g: 10,
|
|
2477
2567
|
b: 10
|
|
2478
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
2568
|
+
}), this.quadrant4Fill = this.quadrant4Fill || L(e, {
|
|
2479
2569
|
r: 15,
|
|
2480
2570
|
g: 15,
|
|
2481
2571
|
b: 15
|
|
2482
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
2572
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || L(this.primaryTextColor, {
|
|
2483
2573
|
r: -5,
|
|
2484
2574
|
g: -5,
|
|
2485
2575
|
b: -5
|
|
2486
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
2576
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || L(this.primaryTextColor, {
|
|
2487
2577
|
r: -10,
|
|
2488
2578
|
g: -10,
|
|
2489
2579
|
b: -10
|
|
2490
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
2580
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || L(this.primaryTextColor, {
|
|
2491
2581
|
r: -15,
|
|
2492
2582
|
g: -15,
|
|
2493
2583
|
b: -15
|
|
2494
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
2584
|
+
}), this.quadrantPointFill = this.quadrantPointFill || P(this.quadrant1Fill) ? F(this.quadrant1Fill) : I(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
2495
2585
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2496
2586
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2497
2587
|
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
@@ -2504,7 +2594,7 @@ var O = {
|
|
|
2504
2594
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2505
2595
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2506
2596
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2507
|
-
}, 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 ?
|
|
2597
|
+
}, 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 ? I(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 || L(e, { h: -30 }), this.git4 = this.git4 || L(e, { h: -60 }), this.git5 = this.git5 || L(e, { h: -90 }), this.git6 = this.git6 || L(e, { h: 60 }), this.git7 = this.git7 || L(e, { h: 120 }), this.darkMode ? (this.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)) : (this.git0 = I(this.git0, 25), this.git1 = I(this.git1, 25), this.git2 = I(this.git2, 25), this.git3 = I(this.git3, 25), this.git4 = I(this.git4, 25), this.git5 = I(this.git5, 25), this.git6 = I(this.git6, 25), this.git7 = I(this.git7, 25)), this.gitInv0 = this.gitInv0 || R(this.git0), this.gitInv1 = this.gitInv1 || R(this.git1), this.gitInv2 = this.gitInv2 || R(this.git2), this.gitInv3 = this.gitInv3 || R(this.git3), this.gitInv4 = this.gitInv4 || R(this.git4), this.gitInv5 = this.gitInv5 || R(this.git5), this.gitInv6 = this.gitInv6 || R(this.git6), this.gitInv7 = this.gitInv7 || R(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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
|
|
2508
2598
|
}
|
|
2509
2599
|
calculate(e) {
|
|
2510
2600
|
if (typeof e != "object") {
|
|
@@ -2518,15 +2608,15 @@ var O = {
|
|
|
2518
2608
|
this[t] = e[t];
|
|
2519
2609
|
});
|
|
2520
2610
|
}
|
|
2521
|
-
},
|
|
2522
|
-
let t = new
|
|
2611
|
+
}, It = /* @__PURE__ */ n((e) => {
|
|
2612
|
+
let t = new Ft();
|
|
2523
2613
|
return t.calculate(e), t;
|
|
2524
|
-
}, "getThemeVariables"),
|
|
2614
|
+
}, "getThemeVariables"), Lt = class {
|
|
2525
2615
|
static {
|
|
2526
2616
|
n(this, "Theme");
|
|
2527
2617
|
}
|
|
2528
2618
|
constructor() {
|
|
2529
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor =
|
|
2619
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = F(this.primaryColor, 16), this.tertiaryColor = L(this.primaryColor, { h: -160 }), this.primaryBorderColor = R(this.background), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = R(this.primaryColor), this.secondaryTextColor = R(this.secondaryColor), this.tertiaryTextColor = R(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = F(R("#323D47"), 10), this.border1 = "#ccc", this.border2 = M(255, 255, 255, .25), this.arrowheadColor = R(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 = [
|
|
2530
2620
|
"#E879F9",
|
|
2531
2621
|
"#2DD4BF",
|
|
2532
2622
|
"#FB923C",
|
|
@@ -2542,67 +2632,67 @@ var O = {
|
|
|
2542
2632
|
], this.bkgColorArray = [], this.filterColor = "#FFFFFF";
|
|
2543
2633
|
}
|
|
2544
2634
|
updateColors() {
|
|
2545
|
-
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor ||
|
|
2635
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || L(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || L(this.primaryColor, {
|
|
2546
2636
|
h: 180,
|
|
2547
2637
|
l: 5
|
|
2548
|
-
}), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor ||
|
|
2549
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
2550
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
2638
|
+
}), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || R(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || R(this.tertiaryColor), this.lineColor = this.lineColor || R(this.background), this.arrowheadColor = this.arrowheadColor || R(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 ? I(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 || I(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || R(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 || F(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";
|
|
2639
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || R(this["cScale" + e]);
|
|
2640
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || I(this["cScale" + e], 10);
|
|
2551
2641
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2552
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] =
|
|
2642
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = I(this["cScale" + e], 75);
|
|
2553
2643
|
let e = this.darkMode ? -4 : -1;
|
|
2554
|
-
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] ||
|
|
2644
|
+
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || L(this.mainBkg, {
|
|
2555
2645
|
h: 180,
|
|
2556
2646
|
s: -15,
|
|
2557
2647
|
l: e * (5 + t * 3)
|
|
2558
|
-
}), this["surfacePeer" + t] = this["surfacePeer" + t] ||
|
|
2648
|
+
}), this["surfacePeer" + t] = this["surfacePeer" + t] || L(this.mainBkg, {
|
|
2559
2649
|
h: 180,
|
|
2560
2650
|
s: -15,
|
|
2561
2651
|
l: e * (8 + t * 3)
|
|
2562
2652
|
});
|
|
2563
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 ||
|
|
2653
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || L(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || L(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || L(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || L(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || L(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || L(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || L(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || L(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || L(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || L(this.primaryColor, {
|
|
2564
2654
|
h: 60,
|
|
2565
2655
|
l: -10
|
|
2566
|
-
}), this.pie8 = this.pie8 ||
|
|
2656
|
+
}), this.pie8 = this.pie8 || L(this.primaryColor, {
|
|
2567
2657
|
h: -60,
|
|
2568
2658
|
l: -10
|
|
2569
|
-
}), this.pie9 = this.pie9 ||
|
|
2659
|
+
}), this.pie9 = this.pie9 || L(this.primaryColor, {
|
|
2570
2660
|
h: 120,
|
|
2571
2661
|
l: 0
|
|
2572
|
-
}), this.pie10 = this.pie10 ||
|
|
2662
|
+
}), this.pie10 = this.pie10 || L(this.primaryColor, {
|
|
2573
2663
|
h: 60,
|
|
2574
2664
|
l: -20
|
|
2575
|
-
}), this.pie11 = this.pie11 ||
|
|
2665
|
+
}), this.pie11 = this.pie11 || L(this.primaryColor, {
|
|
2576
2666
|
h: -60,
|
|
2577
2667
|
l: -20
|
|
2578
|
-
}), this.pie12 = this.pie12 ||
|
|
2668
|
+
}), this.pie12 = this.pie12 || L(this.primaryColor, {
|
|
2579
2669
|
h: 120,
|
|
2580
2670
|
l: -10
|
|
2581
|
-
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
2671
|
+
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || L(this.primaryColor, {
|
|
2582
2672
|
r: 5,
|
|
2583
2673
|
g: 5,
|
|
2584
2674
|
b: 5
|
|
2585
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
2675
|
+
}), this.quadrant3Fill = this.quadrant3Fill || L(this.primaryColor, {
|
|
2586
2676
|
r: 10,
|
|
2587
2677
|
g: 10,
|
|
2588
2678
|
b: 10
|
|
2589
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
2679
|
+
}), this.quadrant4Fill = this.quadrant4Fill || L(this.primaryColor, {
|
|
2590
2680
|
r: 15,
|
|
2591
2681
|
g: 15,
|
|
2592
2682
|
b: 15
|
|
2593
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
2683
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || L(this.primaryTextColor, {
|
|
2594
2684
|
r: -5,
|
|
2595
2685
|
g: -5,
|
|
2596
2686
|
b: -5
|
|
2597
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
2687
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || L(this.primaryTextColor, {
|
|
2598
2688
|
r: -10,
|
|
2599
2689
|
g: -10,
|
|
2600
2690
|
b: -10
|
|
2601
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
2691
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || L(this.primaryTextColor, {
|
|
2602
2692
|
r: -15,
|
|
2603
2693
|
g: -15,
|
|
2604
2694
|
b: -15
|
|
2605
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
2695
|
+
}), this.quadrantPointFill = this.quadrantPointFill || P(this.quadrant1Fill) ? F(this.quadrant1Fill) : I(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
2606
2696
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2607
2697
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2608
2698
|
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
@@ -2615,7 +2705,7 @@ var O = {
|
|
|
2615
2705
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2616
2706
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2617
2707
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2618
|
-
}, 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 ?
|
|
2708
|
+
}, 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 ? I(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 || L(this.primaryColor, { h: -30 }), this.git4 = this.git4 || L(this.primaryColor, { h: -60 }), this.git5 = this.git5 || L(this.primaryColor, { h: -90 }), this.git6 = this.git6 || L(this.primaryColor, { h: 60 }), this.git7 = this.git7 || L(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)) : (this.git0 = I(this.git0, 25), this.git1 = I(this.git1, 25), this.git2 = I(this.git2, 25), this.git3 = I(this.git3, 25), this.git4 = I(this.git4, 25), this.git5 = I(this.git5, 25), this.git6 = I(this.git6, 25), this.git7 = I(this.git7, 25)), this.gitInv0 = this.gitInv0 || R(this.git0), this.gitInv1 = this.gitInv1 || R(this.git1), this.gitInv2 = this.gitInv2 || R(this.git2), this.gitInv3 = this.gitInv3 || R(this.git3), this.gitInv4 = this.gitInv4 || R(this.git4), this.gitInv5 = this.gitInv5 || R(this.git5), this.gitInv6 = this.gitInv6 || R(this.git6), this.gitInv7 = this.gitInv7 || R(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 || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
|
|
2619
2709
|
}
|
|
2620
2710
|
calculate(e) {
|
|
2621
2711
|
if (typeof e != "object") {
|
|
@@ -2629,22 +2719,22 @@ var O = {
|
|
|
2629
2719
|
this[t] = e[t];
|
|
2630
2720
|
});
|
|
2631
2721
|
}
|
|
2632
|
-
},
|
|
2633
|
-
base: { getThemeVariables:
|
|
2634
|
-
dark: { getThemeVariables:
|
|
2635
|
-
default: { getThemeVariables:
|
|
2636
|
-
forest: { getThemeVariables:
|
|
2637
|
-
neutral: { getThemeVariables:
|
|
2638
|
-
neo: { getThemeVariables:
|
|
2639
|
-
"neo-dark": { getThemeVariables:
|
|
2640
|
-
redux: { getThemeVariables:
|
|
2641
|
-
"redux-dark": { getThemeVariables:
|
|
2642
|
-
"redux-color": { getThemeVariables:
|
|
2722
|
+
}, Rt = {
|
|
2723
|
+
base: { getThemeVariables: U },
|
|
2724
|
+
dark: { getThemeVariables: St },
|
|
2725
|
+
default: { getThemeVariables: Ct },
|
|
2726
|
+
forest: { getThemeVariables: Tt },
|
|
2727
|
+
neutral: { getThemeVariables: G },
|
|
2728
|
+
neo: { getThemeVariables: Ot },
|
|
2729
|
+
"neo-dark": { getThemeVariables: At },
|
|
2730
|
+
redux: { getThemeVariables: Mt },
|
|
2731
|
+
"redux-dark": { getThemeVariables: Pt },
|
|
2732
|
+
"redux-color": { getThemeVariables: It },
|
|
2643
2733
|
"redux-dark-color": { getThemeVariables: /* @__PURE__ */ n((e) => {
|
|
2644
|
-
let t = new
|
|
2734
|
+
let t = new Lt();
|
|
2645
2735
|
return t.calculate(e), t;
|
|
2646
2736
|
}, "getThemeVariables") }
|
|
2647
|
-
},
|
|
2737
|
+
}, K = {
|
|
2648
2738
|
flowchart: {
|
|
2649
2739
|
useMaxWidth: !0,
|
|
2650
2740
|
titleTopMargin: 25,
|
|
@@ -3195,8 +3285,8 @@ var O = {
|
|
|
3195
3285
|
fontSize: 16,
|
|
3196
3286
|
markdownAutoWrap: !0,
|
|
3197
3287
|
suppressErrorRendering: !1
|
|
3198
|
-
},
|
|
3199
|
-
...
|
|
3288
|
+
}, zt = {
|
|
3289
|
+
...K,
|
|
3200
3290
|
deterministicIDSeed: void 0,
|
|
3201
3291
|
elk: {
|
|
3202
3292
|
mergeEdges: !1,
|
|
@@ -3207,9 +3297,9 @@ var O = {
|
|
|
3207
3297
|
keepEntryNodeOnTop: !1
|
|
3208
3298
|
},
|
|
3209
3299
|
themeCSS: void 0,
|
|
3210
|
-
themeVariables:
|
|
3300
|
+
themeVariables: Rt.default.getThemeVariables(),
|
|
3211
3301
|
sequence: {
|
|
3212
|
-
...
|
|
3302
|
+
...K.sequence,
|
|
3213
3303
|
messageFont: /* @__PURE__ */ n(function() {
|
|
3214
3304
|
return {
|
|
3215
3305
|
fontFamily: this.messageFontFamily,
|
|
@@ -3238,12 +3328,12 @@ var O = {
|
|
|
3238
3328
|
hierarchicalNamespaces: !0
|
|
3239
3329
|
},
|
|
3240
3330
|
gantt: {
|
|
3241
|
-
...
|
|
3331
|
+
...K.gantt,
|
|
3242
3332
|
tickInterval: void 0,
|
|
3243
3333
|
useWidth: void 0
|
|
3244
3334
|
},
|
|
3245
3335
|
c4: {
|
|
3246
|
-
...
|
|
3336
|
+
...K.c4,
|
|
3247
3337
|
useWidth: void 0,
|
|
3248
3338
|
personFont: /* @__PURE__ */ n(function() {
|
|
3249
3339
|
return {
|
|
@@ -3253,7 +3343,7 @@ var O = {
|
|
|
3253
3343
|
};
|
|
3254
3344
|
}, "personFont"),
|
|
3255
3345
|
flowchart: {
|
|
3256
|
-
...
|
|
3346
|
+
...K.flowchart,
|
|
3257
3347
|
inheritDir: !1
|
|
3258
3348
|
},
|
|
3259
3349
|
external_personFont: /* @__PURE__ */ n(function() {
|
|
@@ -3405,26 +3495,26 @@ var O = {
|
|
|
3405
3495
|
}, "messageFont")
|
|
3406
3496
|
},
|
|
3407
3497
|
pie: {
|
|
3408
|
-
...
|
|
3498
|
+
...K.pie,
|
|
3409
3499
|
useWidth: 984
|
|
3410
3500
|
},
|
|
3411
3501
|
xyChart: {
|
|
3412
|
-
...
|
|
3502
|
+
...K.xyChart,
|
|
3413
3503
|
useWidth: void 0
|
|
3414
3504
|
},
|
|
3415
3505
|
requirement: {
|
|
3416
|
-
...
|
|
3506
|
+
...K.requirement,
|
|
3417
3507
|
useWidth: void 0
|
|
3418
3508
|
},
|
|
3419
|
-
packet: { ...
|
|
3420
|
-
eventmodeling: { ...
|
|
3509
|
+
packet: { ...K.packet },
|
|
3510
|
+
eventmodeling: { ...K.eventmodeling },
|
|
3421
3511
|
treeView: {
|
|
3422
|
-
...
|
|
3512
|
+
...K.treeView,
|
|
3423
3513
|
useWidth: void 0
|
|
3424
3514
|
},
|
|
3425
|
-
radar: { ...
|
|
3515
|
+
radar: { ...K.radar },
|
|
3426
3516
|
railroad: {
|
|
3427
|
-
...
|
|
3517
|
+
...K.railroad,
|
|
3428
3518
|
fontSize: void 0,
|
|
3429
3519
|
fontFamily: void 0,
|
|
3430
3520
|
terminalFill: void 0,
|
|
@@ -3442,9 +3532,9 @@ var O = {
|
|
|
3442
3532
|
specialStroke: void 0,
|
|
3443
3533
|
ruleNameColor: void 0
|
|
3444
3534
|
},
|
|
3445
|
-
ishikawa: { ...
|
|
3535
|
+
ishikawa: { ...K.ishikawa },
|
|
3446
3536
|
sankey: {
|
|
3447
|
-
...
|
|
3537
|
+
...K.sankey,
|
|
3448
3538
|
nodeColors: void 0
|
|
3449
3539
|
},
|
|
3450
3540
|
treemap: {
|
|
@@ -3459,42 +3549,42 @@ var O = {
|
|
|
3459
3549
|
labelFontSize: 14,
|
|
3460
3550
|
valueFormat: ","
|
|
3461
3551
|
},
|
|
3462
|
-
venn: { ...
|
|
3463
|
-
cynefin: { ...
|
|
3464
|
-
},
|
|
3552
|
+
venn: { ...K.venn },
|
|
3553
|
+
cynefin: { ...K.cynefin }
|
|
3554
|
+
}, Bt = /* @__PURE__ */ n((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
|
|
3465
3555
|
...n,
|
|
3466
3556
|
t + r,
|
|
3467
|
-
...
|
|
3468
|
-
] : [...n, t + r], []), "keyify"),
|
|
3557
|
+
...Bt(e[r], "")
|
|
3558
|
+
] : [...n, t + r], []), "keyify"), Vt = new Set(Bt(zt, "")), Ht = zt, Ut = {
|
|
3469
3559
|
nodeColors: /^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,
|
|
3470
3560
|
filenameIcons: /^[\w-]+(?::[\w-]+)?$/,
|
|
3471
3561
|
extensionIcons: /^[\w-]+(?::[\w-]+)?$/
|
|
3472
|
-
},
|
|
3562
|
+
}, Wt = /* @__PURE__ */ n((e, n) => {
|
|
3473
3563
|
for (let r of Object.keys(e)) {
|
|
3474
3564
|
let i = e[r];
|
|
3475
3565
|
(r.startsWith("__") || r.includes("proto") || r.includes("constr") || typeof i != "string" || !n.test(i)) && (t.debug("sanitize deleting dictionary entry:", r, i), delete e[r]);
|
|
3476
3566
|
}
|
|
3477
|
-
}, "sanitizeDictionaryConfig"),
|
|
3567
|
+
}, "sanitizeDictionaryConfig"), Gt = /* @__PURE__ */ n((e) => {
|
|
3478
3568
|
if (t.debug("sanitizeDirective called with", e), !(typeof e != "object" || !e)) {
|
|
3479
3569
|
if (Array.isArray(e)) {
|
|
3480
|
-
e.forEach((e) =>
|
|
3570
|
+
e.forEach((e) => Gt(e));
|
|
3481
3571
|
return;
|
|
3482
3572
|
}
|
|
3483
3573
|
for (let n of Object.keys(e)) {
|
|
3484
|
-
if (t.debug("Checking key", n), n.startsWith("__") || n.includes("proto") || n.includes("constr") || !
|
|
3574
|
+
if (t.debug("Checking key", n), n.startsWith("__") || n.includes("proto") || n.includes("constr") || !Vt.has(n) || e[n] == null) {
|
|
3485
3575
|
t.debug("sanitize deleting key: ", n), delete e[n];
|
|
3486
3576
|
continue;
|
|
3487
3577
|
}
|
|
3488
3578
|
if (typeof e[n] == "object") {
|
|
3489
|
-
let r =
|
|
3490
|
-
r ?
|
|
3579
|
+
let r = Ut[n];
|
|
3580
|
+
r ? Wt(e[n], r) : (t.debug("sanitizing object", n), Gt(e[n]));
|
|
3491
3581
|
continue;
|
|
3492
3582
|
}
|
|
3493
3583
|
for (let r of [
|
|
3494
3584
|
"themeCSS",
|
|
3495
3585
|
"fontFamily",
|
|
3496
3586
|
"altFontFamily"
|
|
3497
|
-
]) n.includes(r) && (t.debug("sanitizing css option", n), e[n] =
|
|
3587
|
+
]) n.includes(r) && (t.debug("sanitizing css option", n), e[n] = Kt(e[n]));
|
|
3498
3588
|
}
|
|
3499
3589
|
if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
|
|
3500
3590
|
let n = e.themeVariables[t];
|
|
@@ -3502,79 +3592,79 @@ var O = {
|
|
|
3502
3592
|
}
|
|
3503
3593
|
t.debug("After sanitization", e);
|
|
3504
3594
|
}
|
|
3505
|
-
}, "sanitizeDirective"),
|
|
3595
|
+
}, "sanitizeDirective"), Kt = /* @__PURE__ */ n((e) => {
|
|
3506
3596
|
let t = 0, n = 0;
|
|
3507
3597
|
for (let r of e) {
|
|
3508
3598
|
if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
|
|
3509
3599
|
r === "{" ? t++ : r === "}" && n++;
|
|
3510
3600
|
}
|
|
3511
3601
|
return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
|
|
3512
|
-
}, "sanitizeCss"),
|
|
3602
|
+
}, "sanitizeCss"), qt = Object.freeze(Ht), Jt = /* @__PURE__ */ n((e) => !(e === !1 || [
|
|
3513
3603
|
"false",
|
|
3514
3604
|
"null",
|
|
3515
3605
|
"0"
|
|
3516
|
-
].includes(String(e).trim().toLowerCase())), "evaluate"),
|
|
3606
|
+
].includes(String(e).trim().toLowerCase())), "evaluate"), q = z({}, qt), J, Y = [], Yt = z({}, qt), Xt = /* @__PURE__ */ n((e, t) => {
|
|
3517
3607
|
let n = z({}, e), r = {};
|
|
3518
|
-
for (let e of t)
|
|
3519
|
-
if (n = z(n, r), r.theme && r.theme in
|
|
3520
|
-
let e = z(z({},
|
|
3521
|
-
n.theme && n.theme in
|
|
3522
|
-
}
|
|
3523
|
-
return
|
|
3524
|
-
}, "updateCurrentConfig"),
|
|
3525
|
-
|
|
3526
|
-
}, "saveConfigFromInitialize"),
|
|
3527
|
-
e && (["secure", ...
|
|
3608
|
+
for (let e of t) rn(e), r = z(r, e);
|
|
3609
|
+
if (n = z(n, r), r.theme && r.theme in Rt) {
|
|
3610
|
+
let e = z(z({}, J).themeVariables || {}, r.themeVariables);
|
|
3611
|
+
n.theme && n.theme in Rt && (n.themeVariables = Rt[n.theme].getThemeVariables(e));
|
|
3612
|
+
}
|
|
3613
|
+
return Yt = n, ln(Yt), Yt;
|
|
3614
|
+
}, "updateCurrentConfig"), Zt = /* @__PURE__ */ n((e) => (q = z({}, qt), q = z(q, e), e.theme && Rt[e.theme] && (q.themeVariables = Rt[e.theme].getThemeVariables(e.themeVariables)), Xt(q, Y), q), "setSiteConfig"), Qt = /* @__PURE__ */ n((e) => {
|
|
3615
|
+
J = z({}, e);
|
|
3616
|
+
}, "saveConfigFromInitialize"), $t = /* @__PURE__ */ n((e) => (q = z(q, e), Xt(q, Y), q), "updateSiteConfig"), en = /* @__PURE__ */ n(() => z({}, q), "getSiteConfig"), tn = /* @__PURE__ */ n((e) => (Xt(Yt, [e]), nn()), "setConfig"), nn = /* @__PURE__ */ n(() => z({}, Yt), "getConfig"), rn = /* @__PURE__ */ n((e) => {
|
|
3617
|
+
e && (["secure", ...q.secure ?? []].forEach((n) => {
|
|
3528
3618
|
Object.hasOwn(e, n) && (t.debug(`Denied attempt to modify a secure key ${n}`, e[n]), delete e[n]);
|
|
3529
3619
|
}), Object.keys(e).forEach((t) => {
|
|
3530
3620
|
t.startsWith("__") && delete e[t];
|
|
3531
3621
|
}), Object.keys(e).forEach((t) => {
|
|
3532
|
-
typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" &&
|
|
3622
|
+
typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && rn(e[t]);
|
|
3533
3623
|
}));
|
|
3534
|
-
}, "sanitize"),
|
|
3535
|
-
|
|
3624
|
+
}, "sanitize"), an = /* @__PURE__ */ n((e) => {
|
|
3625
|
+
Gt(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
|
|
3536
3626
|
...e.themeVariables,
|
|
3537
3627
|
fontFamily: e.fontFamily
|
|
3538
|
-
}),
|
|
3539
|
-
}, "addDirective"),
|
|
3540
|
-
|
|
3541
|
-
}, "reset"),
|
|
3628
|
+
}), Y.push(e), Xt(q, Y);
|
|
3629
|
+
}, "addDirective"), X = /* @__PURE__ */ n((e = q) => {
|
|
3630
|
+
Y = [], Xt(e, Y);
|
|
3631
|
+
}, "reset"), on = {
|
|
3542
3632
|
LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",
|
|
3543
3633
|
FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
|
|
3544
|
-
},
|
|
3545
|
-
|
|
3546
|
-
}, "issueWarning"),
|
|
3547
|
-
e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) &&
|
|
3548
|
-
}, "checkConfig"),
|
|
3634
|
+
}, sn = {}, cn = /* @__PURE__ */ n((e) => {
|
|
3635
|
+
sn[e] || (t.warn(on[e]), sn[e] = !0);
|
|
3636
|
+
}, "issueWarning"), ln = /* @__PURE__ */ n((e) => {
|
|
3637
|
+
e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && cn("LAZY_LOAD_DEPRECATED");
|
|
3638
|
+
}, "checkConfig"), un = /* @__PURE__ */ n(() => {
|
|
3549
3639
|
let e = {};
|
|
3550
|
-
|
|
3551
|
-
for (let t of
|
|
3640
|
+
J && (e = z(e, J));
|
|
3641
|
+
for (let t of Y) e = z(e, t);
|
|
3552
3642
|
return e;
|
|
3553
|
-
}, "getUserDefinedConfig"),
|
|
3643
|
+
}, "getUserDefinedConfig"), dn = /* @__PURE__ */ n((e) => (e.flowchart?.htmlLabels != null && cn("FLOWCHART_HTML_LABELS_DEPRECATED"), Jt(e.htmlLabels ?? e.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), fn = /^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s, pn = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, mn = /\s*%%.*\n/gm, hn = class extends Error {
|
|
3554
3644
|
static {
|
|
3555
3645
|
n(this, "UnknownDiagramError");
|
|
3556
3646
|
}
|
|
3557
3647
|
constructor(e) {
|
|
3558
3648
|
super(e), this.name = "UnknownDiagramError";
|
|
3559
3649
|
}
|
|
3560
|
-
}, Z = {},
|
|
3561
|
-
e = e.replace(
|
|
3650
|
+
}, Z = {}, gn = /* @__PURE__ */ n(function(e, t) {
|
|
3651
|
+
e = e.replace(fn, "").replace(pn, "").replace(mn, "\n");
|
|
3562
3652
|
for (let [n, { detector: r }] of Object.entries(Z)) if (r(e, t)) return n;
|
|
3563
|
-
throw new
|
|
3564
|
-
}, "detectType"),
|
|
3565
|
-
for (let { id: t, detector: n, loader: r } of e)
|
|
3566
|
-
}, "registerLazyLoadedDiagrams"),
|
|
3653
|
+
throw new hn(`No diagram type detected matching given configuration for text: ${e}`);
|
|
3654
|
+
}, "detectType"), _n = /* @__PURE__ */ n((...e) => {
|
|
3655
|
+
for (let { id: t, detector: n, loader: r } of e) vn(t, n, r);
|
|
3656
|
+
}, "registerLazyLoadedDiagrams"), vn = /* @__PURE__ */ n((e, n, r) => {
|
|
3567
3657
|
Z[e] && t.warn(`Detector with key ${e} already exists. Overwriting.`), Z[e] = {
|
|
3568
3658
|
detector: n,
|
|
3569
3659
|
loader: r
|
|
3570
3660
|
}, t.debug(`Detector with key ${e} added${r ? " with loader" : ""}`);
|
|
3571
|
-
}, "addDetector"),
|
|
3661
|
+
}, "addDetector"), yn = /* @__PURE__ */ n((e) => Z[e].loader, "getDiagramLoader"), bn = /<br\s*\/?>/gi, xn = /* @__PURE__ */ n((e) => e ? jn(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), Sn = /* @__PURE__ */ (() => {
|
|
3572
3662
|
let e = !1;
|
|
3573
3663
|
return () => {
|
|
3574
|
-
e ||= (
|
|
3664
|
+
e ||= (Cn(), !0);
|
|
3575
3665
|
};
|
|
3576
3666
|
})();
|
|
3577
|
-
function
|
|
3667
|
+
function Cn() {
|
|
3578
3668
|
let e = "data-temp-href-target";
|
|
3579
3669
|
T.addHook("beforeSanitizeAttributes", (t) => {
|
|
3580
3670
|
t.tagName === "A" && t.hasAttribute("target") && t.setAttribute(e, t.getAttribute("target") ?? "");
|
|
@@ -3582,96 +3672,96 @@ function vn() {
|
|
|
3582
3672
|
t.tagName === "A" && t.hasAttribute(e) && (t.setAttribute("target", t.getAttribute(e) ?? ""), t.removeAttribute(e), t.getAttribute("target") === "_blank" && t.setAttribute("rel", "noopener"));
|
|
3583
3673
|
});
|
|
3584
3674
|
}
|
|
3585
|
-
n(
|
|
3586
|
-
var
|
|
3587
|
-
if (
|
|
3675
|
+
n(Cn, "setupDompurifyHooks");
|
|
3676
|
+
var wn = /* @__PURE__ */ n((e) => (Sn(), T.sanitize(e)), "removeScript"), Tn = /* @__PURE__ */ n((e, t) => {
|
|
3677
|
+
if (dn(t)) {
|
|
3588
3678
|
let n = t.securityLevel;
|
|
3589
|
-
n === "antiscript" || n === "strict" || n === "sandbox" ? e =
|
|
3679
|
+
n === "antiscript" || n === "strict" || n === "sandbox" ? e = wn(e) : n !== "loose" && (e = jn(e), e = e.replace(/</g, "<").replace(/>/g, ">"), e = e.replace(/=/g, "="), e = An(e));
|
|
3590
3680
|
}
|
|
3591
3681
|
return e;
|
|
3592
|
-
}, "sanitizeMore"),
|
|
3682
|
+
}, "sanitizeMore"), En = /* @__PURE__ */ n((e, t) => e && (e = t.dompurifyConfig ? T.sanitize(Tn(e, t), t.dompurifyConfig).toString() : T.sanitize(Tn(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), Dn = /* @__PURE__ */ n((e, t) => typeof e == "string" ? En(e, t) : e.flat().map((e) => En(e, t)), "sanitizeTextOrArray"), On = /* @__PURE__ */ n((e) => bn.test(e), "hasBreaks"), kn = /* @__PURE__ */ n((e) => e.split(bn), "splitBreaks"), An = /* @__PURE__ */ n((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), jn = /* @__PURE__ */ n((e) => e.replace(bn, "#br#"), "breakToPlaceholder"), Mn = /* @__PURE__ */ n((e) => {
|
|
3593
3683
|
let t = "";
|
|
3594
3684
|
return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
|
|
3595
|
-
}, "getUrl"),
|
|
3685
|
+
}, "getUrl"), Nn = /* @__PURE__ */ n(function(...e) {
|
|
3596
3686
|
let t = e.filter((e) => !isNaN(e));
|
|
3597
3687
|
return Math.max(...t);
|
|
3598
|
-
}, "getMax"),
|
|
3688
|
+
}, "getMax"), Pn = /* @__PURE__ */ n(function(...e) {
|
|
3599
3689
|
let t = e.filter((e) => !isNaN(e));
|
|
3600
3690
|
return Math.min(...t);
|
|
3601
|
-
}, "getMin"),
|
|
3691
|
+
}, "getMin"), Fn = /* @__PURE__ */ n(function(e) {
|
|
3602
3692
|
let t = e.split(/(,)/), n = [];
|
|
3603
3693
|
for (let e = 0; e < t.length; e++) {
|
|
3604
3694
|
let r = t[e];
|
|
3605
3695
|
if (r === "," && e > 0 && e + 1 < t.length) {
|
|
3606
3696
|
let i = t[e - 1], a = t[e + 1];
|
|
3607
|
-
|
|
3697
|
+
In(i, a) && (r = i + "," + a, e++, n.pop());
|
|
3608
3698
|
}
|
|
3609
|
-
n.push(
|
|
3699
|
+
n.push($(r));
|
|
3610
3700
|
}
|
|
3611
3701
|
return n.join("");
|
|
3612
|
-
}, "parseGenericTypes"),
|
|
3613
|
-
let n =
|
|
3702
|
+
}, "parseGenericTypes"), Q = /* @__PURE__ */ n((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), In = /* @__PURE__ */ n((e, t) => {
|
|
3703
|
+
let n = Q(e, "~"), r = Q(t, "~");
|
|
3614
3704
|
return n === 1 && r === 1;
|
|
3615
|
-
}, "shouldCombineSets"),
|
|
3616
|
-
let t =
|
|
3705
|
+
}, "shouldCombineSets"), $ = /* @__PURE__ */ n((e) => {
|
|
3706
|
+
let t = Q(e, "~"), n = !1;
|
|
3617
3707
|
if (t <= 1) return e;
|
|
3618
3708
|
t % 2 != 0 && e.startsWith("~") && (e = e.substring(1), n = !0);
|
|
3619
3709
|
let r = [...e], i = r.indexOf("~"), a = r.lastIndexOf("~");
|
|
3620
3710
|
for (; i !== -1 && a !== -1 && i !== a;) r[i] = "<", r[a] = ">", i = r.indexOf("~"), a = r.lastIndexOf("~");
|
|
3621
3711
|
return n && r.unshift("~"), r.join("");
|
|
3622
|
-
}, "processSet"),
|
|
3712
|
+
}, "processSet"), Ln = /* @__PURE__ */ n(() => window.MathMLElement !== void 0, "isMathMLSupported"), Rn = /\$\$(.*?)\$\$/g, zn = /* @__PURE__ */ n((e) => (e.match(Rn)?.length ?? 0) > 0, "hasKatex"), Bn = /* @__PURE__ */ n(async (e, t) => {
|
|
3623
3713
|
let n = document.createElement("div");
|
|
3624
|
-
n.innerHTML = await
|
|
3714
|
+
n.innerHTML = await Hn(e, t), n.id = "katex-temp", n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", n);
|
|
3625
3715
|
let r = {
|
|
3626
3716
|
width: n.clientWidth,
|
|
3627
3717
|
height: n.clientHeight
|
|
3628
3718
|
};
|
|
3629
3719
|
return n.remove(), r;
|
|
3630
|
-
}, "calculateMathMLDimensions"),
|
|
3631
|
-
if (!
|
|
3632
|
-
if (!(
|
|
3720
|
+
}, "calculateMathMLDimensions"), Vn = /* @__PURE__ */ n(async (e, t) => {
|
|
3721
|
+
if (!zn(e)) return e;
|
|
3722
|
+
if (!(Ln() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(Rn, "MathML is unsupported in this environment.");
|
|
3633
3723
|
{
|
|
3634
|
-
let { default: n } = await import("./katex-CT2p8LXT.js"), r = t.forceLegacyMathML || !
|
|
3635
|
-
return e.split(
|
|
3724
|
+
let { default: n } = await import("./katex-CT2p8LXT.js"), r = t.forceLegacyMathML || !Ln() && t.legacyMathML ? "htmlAndMathml" : "mathml";
|
|
3725
|
+
return e.split(bn).map((e) => zn(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(Rn, (e, t) => n.renderToString(t, {
|
|
3636
3726
|
throwOnError: !0,
|
|
3637
3727
|
displayMode: !0,
|
|
3638
3728
|
output: r
|
|
3639
3729
|
}).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
|
|
3640
3730
|
}
|
|
3641
|
-
}, "renderKatexUnsanitized"),
|
|
3642
|
-
getRows:
|
|
3643
|
-
sanitizeText:
|
|
3644
|
-
sanitizeTextOrArray:
|
|
3645
|
-
hasBreaks:
|
|
3646
|
-
splitBreaks:
|
|
3647
|
-
lineBreakRegex:
|
|
3648
|
-
removeScript:
|
|
3649
|
-
getUrl:
|
|
3650
|
-
evaluate:
|
|
3651
|
-
getMax:
|
|
3652
|
-
getMin:
|
|
3653
|
-
},
|
|
3731
|
+
}, "renderKatexUnsanitized"), Hn = /* @__PURE__ */ n(async (e, t) => En(await Vn(e, t), t), "renderKatexSanitized"), Un = {
|
|
3732
|
+
getRows: xn,
|
|
3733
|
+
sanitizeText: En,
|
|
3734
|
+
sanitizeTextOrArray: Dn,
|
|
3735
|
+
hasBreaks: On,
|
|
3736
|
+
splitBreaks: kn,
|
|
3737
|
+
lineBreakRegex: bn,
|
|
3738
|
+
removeScript: wn,
|
|
3739
|
+
getUrl: Mn,
|
|
3740
|
+
evaluate: Jt,
|
|
3741
|
+
getMax: Nn,
|
|
3742
|
+
getMin: Pn
|
|
3743
|
+
}, Wn = /* @__PURE__ */ n(function(e, t) {
|
|
3654
3744
|
for (let n of t) e.attr(n[0], n[1]);
|
|
3655
|
-
}, "d3Attrs"),
|
|
3745
|
+
}, "d3Attrs"), Gn = /* @__PURE__ */ n(function(e, t, n) {
|
|
3656
3746
|
let r = /* @__PURE__ */ new Map();
|
|
3657
3747
|
return n ? (r.set("width", "100%"), r.set("style", `max-width: ${t}px;`)) : (r.set("height", e), r.set("width", t)), r;
|
|
3658
|
-
}, "calculateSvgSizeAttrs"),
|
|
3659
|
-
|
|
3660
|
-
}, "configureSvgSize"),
|
|
3748
|
+
}, "calculateSvgSizeAttrs"), Kn = /* @__PURE__ */ n(function(e, t, n, r) {
|
|
3749
|
+
Wn(e, Gn(t, n, r));
|
|
3750
|
+
}, "configureSvgSize"), qn = /* @__PURE__ */ n(function(e, n, r, i) {
|
|
3661
3751
|
let a = n.node().getBBox(), o = a.width, s = a.height;
|
|
3662
3752
|
t.info(`SVG bounds: ${o}x${s}`, a);
|
|
3663
3753
|
let c = 0, l = 0;
|
|
3664
|
-
t.info(`Graph bounds: ${c}x${l}`, e), c = o + r * 2, l = s + r * 2, t.info(`Calculated bounds: ${c}x${l}`),
|
|
3754
|
+
t.info(`Graph bounds: ${c}x${l}`, e), c = o + r * 2, l = s + r * 2, t.info(`Calculated bounds: ${c}x${l}`), Kn(n, l, c, i);
|
|
3665
3755
|
let u = `${a.x - r} ${a.y - r} ${a.width + 2 * r} ${a.height + 2 * r}`;
|
|
3666
3756
|
n.attr("viewBox", u);
|
|
3667
|
-
}, "setupGraphViewbox"),
|
|
3668
|
-
function
|
|
3757
|
+
}, "setupGraphViewbox"), Jn = {};
|
|
3758
|
+
function Yn(e) {
|
|
3669
3759
|
return [...e.cssRules].map((e) => e.cssText).join("\n");
|
|
3670
3760
|
}
|
|
3671
|
-
n(
|
|
3672
|
-
var
|
|
3761
|
+
n(Yn, "cssStyleSheetToString");
|
|
3762
|
+
var Xn = /* @__PURE__ */ n((e, n, r, i) => {
|
|
3673
3763
|
let a = "";
|
|
3674
|
-
return e in
|
|
3764
|
+
return e in Jn && Jn[e] ? a = Jn[e]({
|
|
3675
3765
|
...r,
|
|
3676
3766
|
svgId: i
|
|
3677
3767
|
}) : t.warn(`No theme found for ${e}`), `& {
|
|
@@ -3796,32 +3886,32 @@ var Gn = /* @__PURE__ */ n((e, n, r, i) => {
|
|
|
3796
3886
|
|
|
3797
3887
|
${n}
|
|
3798
3888
|
`;
|
|
3799
|
-
}, "getStyles"),
|
|
3800
|
-
t !== void 0 && (
|
|
3801
|
-
}, "addStylesForDiagram"),
|
|
3802
|
-
r(
|
|
3803
|
-
clear: () =>
|
|
3804
|
-
getAccDescription: () =>
|
|
3805
|
-
getAccTitle: () =>
|
|
3806
|
-
getDiagramTitle: () =>
|
|
3807
|
-
setAccDescription: () =>
|
|
3808
|
-
setAccTitle: () =>
|
|
3809
|
-
setDiagramTitle: () =>
|
|
3889
|
+
}, "getStyles"), Zn = /* @__PURE__ */ n((e, t) => {
|
|
3890
|
+
t !== void 0 && (Jn[e] = t);
|
|
3891
|
+
}, "addStylesForDiagram"), Qn = Xn, $n = {};
|
|
3892
|
+
r($n, {
|
|
3893
|
+
clear: () => ir,
|
|
3894
|
+
getAccDescription: () => cr,
|
|
3895
|
+
getAccTitle: () => or,
|
|
3896
|
+
getDiagramTitle: () => ur,
|
|
3897
|
+
setAccDescription: () => sr,
|
|
3898
|
+
setAccTitle: () => ar,
|
|
3899
|
+
setDiagramTitle: () => lr
|
|
3810
3900
|
});
|
|
3811
|
-
var
|
|
3812
|
-
|
|
3813
|
-
}, "clear"),
|
|
3814
|
-
|
|
3815
|
-
}, "setAccTitle"),
|
|
3816
|
-
|
|
3817
|
-
}, "setAccDescription"),
|
|
3818
|
-
|
|
3819
|
-
}, "setDiagramTitle"),
|
|
3820
|
-
|
|
3821
|
-
}, "registerDiagram"),
|
|
3822
|
-
if (e in
|
|
3823
|
-
throw new
|
|
3824
|
-
}, "getDiagram"),
|
|
3901
|
+
var er = "", tr = "", nr = "", rr = /* @__PURE__ */ n((e) => En(e, nn()), "sanitizeText"), ir = /* @__PURE__ */ n(() => {
|
|
3902
|
+
er = "", nr = "", tr = "";
|
|
3903
|
+
}, "clear"), ar = /* @__PURE__ */ n((e) => {
|
|
3904
|
+
er = rr(e).replace(/^\s+/g, "");
|
|
3905
|
+
}, "setAccTitle"), or = /* @__PURE__ */ n(() => er, "getAccTitle"), sr = /* @__PURE__ */ n((e) => {
|
|
3906
|
+
nr = rr(e).replace(/\n\s+/g, "\n");
|
|
3907
|
+
}, "setAccDescription"), cr = /* @__PURE__ */ n(() => nr, "getAccDescription"), lr = /* @__PURE__ */ n((e) => {
|
|
3908
|
+
tr = rr(e);
|
|
3909
|
+
}, "setDiagramTitle"), ur = /* @__PURE__ */ n(() => tr, "getDiagramTitle"), dr = t, fr = e, pr = nn, mr = tn, hr = qt, gr = /* @__PURE__ */ n((e) => En(e, pr()), "sanitizeText"), _r = qn, vr = /* @__PURE__ */ n(() => $n, "getCommonDb"), yr = {}, br = /* @__PURE__ */ n((e, t, n) => {
|
|
3910
|
+
yr[e] && dr.warn(`Diagram with id ${e} already registered. Overwriting.`), yr[e] = t, n && vn(e, n), Zn(e, t.styles), t.injectUtils?.(dr, fr, pr, gr, _r, vr(), () => {});
|
|
3911
|
+
}, "registerDiagram"), xr = /* @__PURE__ */ n((e) => {
|
|
3912
|
+
if (e in yr) return yr[e];
|
|
3913
|
+
throw new Sr(e);
|
|
3914
|
+
}, "getDiagram"), Sr = class extends Error {
|
|
3825
3915
|
static {
|
|
3826
3916
|
n(this, "DiagramNotFoundError");
|
|
3827
3917
|
}
|
|
@@ -3830,4 +3920,4 @@ var Yn = "", Xn = "", Zn = "", Qn = /* @__PURE__ */ n((e) => Q(e, Y()), "sanitiz
|
|
|
3830
3920
|
}
|
|
3831
3921
|
};
|
|
3832
3922
|
//#endregion
|
|
3833
|
-
export {
|
|
3923
|
+
export { I as $, zn as A, gr as B, yn as C, Ct as D, en as E, Hn as F, mr as G, sr as H, X as I, qn as J, lr as K, Kt as L, Fn as M, br as N, Mn as O, _n as P, $t as Q, Gt as R, xr as S, dn as T, ar as U, Qt as V, tn as W, Qn as X, _r as Y, Rt as Z, fn as _, ir as a, D as at, nn as b, Kn as c, hr as d, F as et, Ht as f, Jt as g, pn as h, Bn as i, j as it, bn as j, un as k, Yn as l, Z as m, an as n, P as nt, $n as o, T as ot, gn as p, Zt as q, z as r, M as rt, Un as s, hn as t, _t as tt, qt as u, cr as v, ur as w, pr as x, or as y, En as z };
|