@sme.up/ketchup2 2.10.0 → 2.11.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-jIDWUpNo.js → abnfDiagram-WEYOIA3C-BGzUWx_N.js} +18 -18
- package/dist/{arc-DXfwi1YX.js → arc-Cde31fHX.js} +1 -1
- package/dist/architecture-WOLXFQ4H-CjGAyYHf.js +2 -0
- package/dist/{architectureDiagram-5GKGNRK7-C1xA1c3c.js → architectureDiagram-ZHVYKT53-DH-D4G0y.js} +138 -153
- package/dist/assets/svg/magnify-minus.svg +1 -0
- package/dist/assets/svg/magnify-plus.svg +1 -0
- package/dist/basic-components/button-group/button-group.d.ts.map +1 -1
- package/dist/basic-components/cell/cell-types.d.ts +8 -0
- package/dist/basic-components/cell/cell-types.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-types.d.ts +13 -0
- package/dist/basic-components/chips/chips-types.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 +4 -0
- package/dist/basic-components/date-picker/date-picker-types.d.ts.map +1 -1
- package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
- package/dist/basic-components/input-number/input-number.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.d.ts.map +1 -1
- package/dist/basic-components/textarea/textarea-types.d.ts +2 -2
- package/dist/basic-components/textarea/textarea.d.ts.map +1 -1
- package/dist/basic-components/textfield/textfield-types.d.ts +7 -2
- 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/typography/typography.d.ts.map +1 -1
- package/dist/{blockDiagram-I7D4REHJ-C0hlmHW8.js → blockDiagram-RJAE7QA3-hRpbCaPL.js} +329 -316
- package/dist/{c4Diagram-7LVT6UL2-DwTMAxzR.js → c4Diagram-XDPPPE54-Bkqvkv8O.js} +350 -340
- package/dist/channel-CcHUzwZl.js +5 -0
- package/dist/{chunk-SVP7TREG-f53BROgh.js → chunk-2E7WHVMD-DSYBrngB.js} +77 -77
- package/dist/chunk-4EMNKR2T-CndbTVTA.js +236 -0
- package/dist/{chunk-F27PBJKO-DPhiW07t.js → chunk-55XCU76K-B1HtPImz.js} +16 -16
- package/dist/{chunk-75Z2AOVW-CLjRECiG.js → chunk-7S6XSTFO-CN6S2H1-.js} +304 -305
- package/dist/{chunk-GMAD6QVW-Cnp61Cie.js → chunk-AQDTSKZB-DuUha9al.js} +386 -433
- package/dist/{chunk-DU6HZSFF-D9v_2L4Z.js → chunk-DSNLSHJZ-B1A8wsiA.js} +1078 -984
- package/dist/chunk-DUW6YSOI-BdOla2G8.js +10 -0
- package/dist/chunk-EJLWFMJV-Cu6XnLfk.js +75 -0
- package/dist/chunk-HAGFOTED-IzyIoLzD.js +4487 -0
- package/dist/chunk-HNE4Q36P-7zVKLE_b.js +363 -0
- package/dist/chunk-J5ZVWO5B-CYzz6Pq8.js +12 -0
- package/dist/{chunk-LNGE3PJU-CtYcu9x8.js → chunk-LNGE3PJU-ByFTjlja.js} +15 -19
- package/dist/chunk-NGNAAXSQ-Tr--SG_c.js +19832 -0
- package/dist/{chunk-SHT3W25Y-aBBFlrSX.js → chunk-NQOKRVIF-CEJ-prlJ.js} +483 -414
- package/dist/chunk-OYAV6JZA-Cypx4hYu.js +14 -0
- package/dist/{chunk-P2QGCYS3-667SFjNY.js → chunk-UHW7PFBP-CoHGQVjo.js} +6 -6
- package/dist/chunk-VQ5W62QI-BSDHmyws.js +26 -0
- package/dist/{chunk-OSK3NFVY-qg1q5TTI.js → chunk-WQQL4CDK-BJE6isq-.js} +312 -288
- package/dist/chunk-XXDRQBXY-CU-dbs05.js +9 -0
- package/dist/{chunk-PWAF6VOD-z0rQy52m.js → chunk-YZO67HFG-Bcmpw0dX.js} +28 -28
- package/dist/{chunk-GVQU2GXP-BJ9OHC7T.js → chunk-ZAUX2LTX-Bu7BRVL6.js} +14 -14
- package/dist/chunk-ZCHMQSOR-BA1QQ4D6.js +354 -0
- package/dist/{chunk-TICWLB2K-DzrOz9kL.js → classDiagram-v2-4MYWR3UA-Bnh650R8.js} +333 -293
- package/dist/components/app-bar/app-bar-utils.d.ts.map +1 -1
- package/dist/components/calendar/calendar-available-height.d.ts +14 -0
- package/dist/components/calendar/calendar-available-height.d.ts.map +1 -0
- package/dist/components/calendar/calendar-types.d.ts +20 -8
- package/dist/components/calendar/calendar-types.d.ts.map +1 -1
- package/dist/components/calendar/calendar-utils.d.ts +94 -37
- 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 +14 -3
- package/dist/components/calendar/views/calendar-event-text.d.ts.map +1 -1
- package/dist/components/calendar/views/calendar-month-grid.d.ts +4 -4
- package/dist/components/calendar/views/calendar-month-grid.d.ts.map +1 -1
- package/dist/components/calendar/views/calendar-more-events.d.ts +1 -1
- package/dist/components/calendar/views/calendar-more-events.d.ts.map +1 -1
- package/dist/components/calendar/views/calendar-time-grid.d.ts +4 -0
- package/dist/components/calendar/views/calendar-time-grid.d.ts.map +1 -1
- package/dist/components/data-table/assets/data-table-row-actions.d.ts +1 -1
- package/dist/components/data-table/cell-actions/cell-actions-types.d.ts +12 -0
- package/dist/components/data-table/cell-actions/cell-actions-types.d.ts.map +1 -0
- package/dist/components/data-table/cell-actions/cell-actions-utils.d.ts +29 -0
- package/dist/components/data-table/cell-actions/cell-actions-utils.d.ts.map +1 -0
- package/dist/components/data-table/cell-actions/cell-actions-utils.test.d.ts +2 -0
- package/dist/components/data-table/cell-actions/cell-actions-utils.test.d.ts.map +1 -0
- package/dist/components/data-table/cell-actions/cell-actions.d.ts +6 -0
- package/dist/components/data-table/cell-actions/cell-actions.d.ts.map +1 -0
- package/dist/components/data-table/column-menu/column-menu-types.d.ts +32 -0
- package/dist/components/data-table/column-menu/column-menu-types.d.ts.map +1 -0
- package/dist/components/data-table/column-menu/column-menu.d.ts +11 -0
- package/dist/components/data-table/column-menu/column-menu.d.ts.map +1 -0
- package/dist/components/data-table/columns/columns-utils.d.ts +11 -2
- package/dist/components/data-table/columns/columns-utils.d.ts.map +1 -1
- package/dist/components/data-table/columns/useColumnWidths.d.ts +24 -1
- package/dist/components/data-table/columns/useColumnWidths.d.ts.map +1 -1
- package/dist/components/data-table/data-table-types.d.ts +191 -38
- 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/filtering/data-table-filter-utils.d.ts +19 -2
- package/dist/components/data-table/filtering/data-table-filter-utils.d.ts.map +1 -1
- package/dist/components/data-table/fixed/fixed-utils.d.ts +6 -0
- package/dist/components/data-table/fixed/fixed-utils.d.ts.map +1 -1
- package/dist/components/data-table/footer/footer-types.d.ts +22 -8
- 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 +29 -1
- 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 +11 -5
- package/dist/components/data-table/grouping/buildFlatGroupedRows.d.ts.map +1 -1
- package/dist/components/data-table/grouping/datatable-groups-utils.d.ts +11 -1
- package/dist/components/data-table/grouping/datatable-groups-utils.d.ts.map +1 -1
- package/dist/components/data-table/grouping/group-expansion.d.ts +16 -0
- package/dist/components/data-table/grouping/group-expansion.d.ts.map +1 -0
- package/dist/components/data-table/grouping/grouping-types.d.ts +9 -0
- package/dist/components/data-table/grouping/grouping-types.d.ts.map +1 -1
- package/dist/components/data-table/header/Header.d.ts.map +1 -1
- package/dist/components/data-table/header/header-toolbar/header-toolbar-types.d.ts +44 -0
- package/dist/components/data-table/header/header-toolbar/header-toolbar-types.d.ts.map +1 -0
- package/dist/components/data-table/header/header-toolbar/header-toolbar.d.ts +8 -0
- package/dist/components/data-table/header/header-toolbar/header-toolbar.d.ts.map +1 -0
- package/dist/components/data-table/header/header-types.d.ts +32 -21
- package/dist/components/data-table/header/header-types.d.ts.map +1 -1
- package/dist/components/data-table/load-more-row/load-more-row.d.ts +8 -0
- package/dist/components/data-table/load-more-row/load-more-row.d.ts.map +1 -0
- package/dist/components/data-table/load-more-row/load-more-types.d.ts +11 -0
- package/dist/components/data-table/load-more-row/load-more-types.d.ts.map +1 -0
- package/dist/components/data-table/sorting/buildDftSort.d.ts +16 -0
- package/dist/components/data-table/sorting/buildDftSort.d.ts.map +1 -0
- package/dist/components/data-table/sorting/buildDftSort.test.d.ts +2 -0
- package/dist/components/data-table/sorting/buildDftSort.test.d.ts.map +1 -0
- package/dist/components/data-table/sorting/parseDftSort.d.ts +4 -4
- package/dist/components/data-table/sorting/parseDftSort.d.ts.map +1 -1
- package/dist/components/data-table/sorting/sortTable-utils.d.ts +10 -0
- package/dist/components/data-table/sorting/sortTable-utils.d.ts.map +1 -1
- package/dist/components/data-table/sorting/useSortableTable.d.ts +10 -4
- package/dist/components/data-table/sorting/useSortableTable.d.ts.map +1 -1
- package/dist/components/data-table/state/datatable-state.d.ts +14 -7
- package/dist/components/data-table/state/datatable-state.d.ts.map +1 -1
- package/dist/components/data-table/stories/data-table-story-meta.d.ts +7 -0
- package/dist/components/data-table/stories/data-table-story-meta.d.ts.map +1 -0
- package/dist/components/data-table/useDataTableImperativeHandle.d.ts +23 -0
- package/dist/components/data-table/useDataTableImperativeHandle.d.ts.map +1 -0
- package/dist/components/data-table/useDataTableShortcuts.d.ts +19 -0
- package/dist/components/data-table/useDataTableShortcuts.d.ts.map +1 -0
- package/dist/components/echarts-graph/builders/echarts-graph-builders.d.ts.map +1 -1
- package/dist/components/echarts-graph/data/echarts-graph-data.d.ts +1 -1
- package/dist/components/echarts-graph/data/echarts-graph-data.d.ts.map +1 -1
- package/dist/components/echarts-graph/data/echarts-graph-tree.d.ts +12 -0
- package/dist/components/echarts-graph/data/echarts-graph-tree.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-tree.test.d.ts +2 -0
- package/dist/components/echarts-graph/data/echarts-graph-tree.test.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph-canvas.d.ts +34 -0
- package/dist/components/echarts-graph/echarts-graph-canvas.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph-from-table.d.ts +13 -0
- package/dist/components/echarts-graph/echarts-graph-from-table.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph-from-tree.d.ts +12 -0
- package/dist/components/echarts-graph/echarts-graph-from-tree.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph-hooks.d.ts +16 -0
- package/dist/components/echarts-graph/echarts-graph-hooks.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph-types.d.ts +24 -5
- package/dist/components/echarts-graph/echarts-graph-types.d.ts.map +1 -1
- package/dist/components/echarts-graph/echarts-graph.d.ts +10 -7
- package/dist/components/echarts-graph/echarts-graph.d.ts.map +1 -1
- package/dist/components/input-panel/input-panel-types.d.ts +7 -1
- package/dist/components/input-panel/input-panel-types.d.ts.map +1 -1
- package/dist/components/input-panel/input-panel.d.ts.map +1 -1
- package/dist/components/json-form/document-adapter.test.d.ts +2 -0
- package/dist/components/json-form/document-adapter.test.d.ts.map +1 -0
- package/dist/components/json-form/expression-evaluator.test.d.ts +2 -0
- package/dist/components/json-form/expression-evaluator.test.d.ts.map +1 -0
- package/dist/components/json-form/model/document-adapter.d.ts +54 -0
- package/dist/components/json-form/model/document-adapter.d.ts.map +1 -0
- package/dist/components/json-form/model/json-form-ajv.d.ts +12 -0
- package/dist/components/json-form/model/json-form-ajv.d.ts.map +1 -0
- package/dist/components/json-form/model/json-pointer.d.ts +20 -0
- package/dist/components/json-form/model/json-pointer.d.ts.map +1 -0
- package/dist/components/json-form/model/native-json-types.d.ts +5 -0
- package/dist/components/json-form/model/native-json-types.d.ts.map +1 -0
- package/dist/components/json-form/model/shape-event-support.d.ts +10 -0
- package/dist/components/json-form/model/shape-event-support.d.ts.map +1 -0
- package/dist/components/json-form/rule-controller.test.d.ts +2 -0
- package/dist/components/json-form/rule-controller.test.d.ts.map +1 -0
- package/dist/components/json-form/rules/expression-evaluator.d.ts +58 -0
- package/dist/components/json-form/rules/expression-evaluator.d.ts.map +1 -0
- package/dist/components/json-form/rules/rule-controller.d.ts +50 -0
- package/dist/components/json-form/rules/rule-controller.d.ts.map +1 -0
- package/dist/components/pdf/assets/pdf-fixtures.d.ts +6 -0
- package/dist/components/pdf/assets/pdf-fixtures.d.ts.map +1 -0
- package/dist/components/pdf/pdf-types.d.ts +17 -2
- package/dist/components/pdf/pdf-types.d.ts.map +1 -1
- package/dist/components/pdf/pdf-utils.d.ts +30 -1
- package/dist/components/pdf/pdf-utils.d.ts.map +1 -1
- package/dist/components/pdf/pdf.d.ts.map +1 -1
- package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/toolbar/toolbar-nodes/toolbar-plain-node.d.ts.map +1 -1
- package/dist/context/test-utils.d.ts.map +1 -1
- package/dist/{cose-bilkent-JH36ORCC-Qs_Z6zBZ.js → cose-bilkent-JH36ORCC-DYLyHByQ.js} +77 -89
- package/dist/cynefin-EF2NZ3EQ-DZ1CSrfW.js +2 -0
- package/dist/{cynefinDiagram-5FMLGOSQ-3SByb22K.js → cynefinDiagram-WF24UDRP-bU_4r-FZ.js} +64 -64
- package/dist/{cytoscape.esm-C5TvPYYm.js → cytoscape.esm-BvXLQ91B.js} +412 -513
- package/dist/dagre-NK4GIZVX-B72HOuil.js +2352 -0
- package/dist/{diagram-VX7I27RA-DX39g4aO.js → diagram-CBK3MWTC-B-q-tUxd.js} +80 -80
- package/dist/diagram-I5XIIV2D-CMzniFEf.js +134 -0
- package/dist/{diagram-S7CK7UJ4-IhyDbKSO.js → diagram-ODIL2UCW-CrlDp0MP.js} +46 -54
- package/dist/{diagram-VSXAHHWV-CdX3XaQX.js → diagram-PFBEJUXE-hnrdzEe4.js} +136 -121
- package/dist/{diagram-UQ7AKVKN-CPDZJAkA.js → diagram-RJA3I4VV-DZW7CxE5.js} +43 -43
- package/dist/diagram-TYUNFSNR-cRJNHRy2.js +5069 -0
- package/dist/{dist-CsrMlyO_.js → dist-Bj7IMbKd.js} +1 -1
- package/dist/{ebnfDiagram-PWID7BFC-D0cmYo-k.js → ebnfDiagram-V4P3TTPT-Bm7KtfLA.js} +17 -17
- package/dist/echarts-C7ehbnCk.js +15485 -0
- package/dist/elk-QONTBCTQ-gWOTRRj4.js +47505 -0
- package/dist/{erDiagram-RLTQ6QDP-C-nlwQZa.js → erDiagram-KYQIGQAA-WZEbQwWz.js} +150 -146
- package/dist/eventmodeling-K75KTNOO-CEn7YBG4.js +2 -0
- package/dist/flowDiagram-IUGLLWBU-CRV2Bl2C.js +16 -0
- package/dist/functional-components/filter-group/filter-builder-operators.d.ts +15 -0
- package/dist/functional-components/filter-group/filter-builder-operators.d.ts.map +1 -0
- package/dist/functional-components/filter-group/filter-builder.d.ts +15 -1
- package/dist/functional-components/filter-group/filter-builder.d.ts.map +1 -1
- package/dist/functional-components/group-bar/group-bar-types.d.ts +16 -0
- package/dist/functional-components/group-bar/group-bar-types.d.ts.map +1 -1
- package/dist/functional-components/group-bar/group-bar.d.ts.map +1 -1
- package/dist/functional-components/helper-text/helper-text-types.d.ts +1 -1
- package/dist/functional-components/row/row-types.d.ts +27 -1
- 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/functional-components/tree-picker/tree-picker-types.d.ts +5 -0
- package/dist/functional-components/tree-picker/tree-picker-types.d.ts.map +1 -1
- package/dist/{ganttDiagram-EL5Y4UJY-qQkBgEV6.js → ganttDiagram-R7GPNTJY-DFRGfQMr.js} +314 -310
- package/dist/gitGraph-VSP46ZUC-BSTikFaE.js +2 -0
- package/dist/{gitGraphDiagram-WWUBYQGX-D8cZBZXB.js → gitGraphDiagram-PDYL7XHY-nvoob8Ca.js} +250 -250
- package/dist/hooks/useVirtualListScroll.d.ts +7 -2
- package/dist/hooks/useVirtualListScroll.d.ts.map +1 -1
- package/dist/index.d.ts +2 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/info-OHQRW6UA-BGb3N889.js +2 -0
- package/dist/infoDiagram-MVDRKAX5-BqO_morw.js +20 -0
- package/dist/installCanvasRenderer-CgRxxRBg.js +29799 -0
- package/dist/{ishikawaDiagram-5VMMS53U-B0RvuZyG.js → ishikawaDiagram-HPEHV2GE-BE3amLYE.js} +27 -29
- package/dist/{journeyDiagram-3NMN7TZE-Dh8_Vc4e.js → journeyDiagram-BOSHW7O7-DE8ndsCi.js} +111 -111
- package/dist/{kanban-definition-UXKFOSKX-C99A4PsR.js → kanban-definition-FNSA4HC5-D72kc4EN.js} +135 -135
- package/dist/{katex-CT2p8LXT.js → katex-CDhNh-ZQ.js} +919 -1040
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +25049 -70453
- package/dist/{line-CkNoVxEr.js → line-ltPB6XbC.js} +1 -1
- package/dist/{linear-CXc5xaa6.js → linear-i6_MPSGL.js} +2 -3
- package/dist/locale/en/translation.json.d.ts +36 -5
- package/dist/locale/it/translation.json.d.ts +36 -5
- package/dist/{mermaid-parser.core-BwVmI_Rq.js → mermaid-parser.core-zUi7tSl-.js} +166 -172
- package/dist/{mindmap-definition-YA3MSWOX-D0ULN6M8.js → mindmap-definition-6OY57UG3-hH6Avsg4.js} +148 -145
- package/dist/packet-JDAUHWVQ-CKZoNg5j.js +2 -0
- package/dist/{pegDiagram-XKGWAZYB-BThnA3Uk.js → pegDiagram-ECIUJNBX-D3xLhrRh.js} +19 -19
- package/dist/pie-XZMESJXO-BnbWY8rE.js +2 -0
- package/dist/{pieDiagram-E7YTZNPT-CJ4LPitY.js → pieDiagram-GNMPY74T-Bd_UXypi.js} +39 -39
- package/dist/{quadrantDiagram-AXDQQJYC-nEwzg95_.js → quadrantDiagram-D57K4MC3-BAwweqT8.js} +149 -149
- package/dist/radar-ABXABTNO-D5CEmFBx.js +2 -0
- package/dist/railroad-I3PHUGI6-CxMiYaMH.js +2 -0
- package/dist/railroad-abnf-LNEFI6M7-C69KxGa-.js +2 -0
- package/dist/railroad-ebnf-DWYD2UWJ-D5Xd566k.js +2 -0
- package/dist/railroad-peg-JR7BVNR7-CD0OiqcS.js +2 -0
- package/dist/{railroadDiagram-O6MQD6OU-D_9gvx5m.js → railroadDiagram-Y72NRBL7-CPUbPgYX.js} +14 -14
- package/dist/{requirementDiagram-BXWQKSXE-BU3gTMjQ.js → requirementDiagram-EQYSW5RA-BXstYS3w.js} +97 -93
- package/dist/rolldown-runtime-5HNE8Q1r.js +23 -0
- package/dist/{sankeyDiagram-P5KCCOFB-BmNN-6y3.js → sankeyDiagram-SY24JHO5-Du-toJmg.js} +64 -64
- package/dist/{sequenceDiagram-WJ2MYXX4-QYJxbuz_.js → sequenceDiagram-BLEHNHQU-BNNnerZ-.js} +953 -868
- package/dist/{sizeCapture-INFHLROL-CHXIsPO_.js → sizeCapture-INFHLROL-DujrpAYz.js} +1 -1
- package/dist/{src-DQoflmwT.js → src-CY9Rz0Sf.js} +545 -566
- package/dist/{chunk-IMKFNOWR-yyUcHorm.js → stateDiagram-v2-A6IESKWZ-CfjPf8h7.js} +364 -267
- package/dist/{swimlanes-42K2YHIH-DkMzBkx7.js → swimlanes-B3ENRKFQ-Dumwq89C.js} +1356 -1590
- package/dist/swimlanesDiagram-AYQRV4AK-Boz_Azx7.js +28 -0
- package/dist/{timeline-definition-24CTP7MA-AvgVPsM_.js → timeline-definition-JXYKGLGB-ClzmRQCu.js} +354 -350
- package/dist/treeView-D4JQ5SDB-C3ue8DID.js +2 -0
- package/dist/treemap-SAJKECNS-BWis-Wpv.js +2 -0
- package/dist/types/data-structures.d.ts +11 -0
- package/dist/types/data-structures.d.ts.map +1 -1
- package/dist/types/global.d.ts +7 -2
- package/dist/types/global.d.ts.map +1 -1
- package/dist/types/translation.d.ts +35 -5
- package/dist/types/translation.d.ts.map +1 -1
- package/dist/usecaseDiagram-WPOLBNNX-ruZhXlYQ.js +7175 -0
- package/dist/utils/object-styles.d.ts +12 -0
- package/dist/utils/object-styles.d.ts.map +1 -0
- package/dist/utils/object-styles.test.d.ts +2 -0
- package/dist/utils/object-styles.test.d.ts.map +1 -0
- package/dist/utils/totals/totals-registry.d.ts +17 -0
- package/dist/utils/totals/totals-registry.d.ts.map +1 -0
- package/dist/utils/totals/totals-utils.d.ts +70 -7
- package/dist/utils/totals/totals-utils.d.ts.map +1 -1
- package/dist/utils/wrapper-types/list.d.ts.map +1 -1
- package/dist/{vennDiagram-4TSXK5OY-DBz_EnfL.js → vennDiagram-Q3Y3IDCW-L9GmqfCz.js} +118 -118
- package/dist/wardley-7MLQ67FV-DC0ayJCO.js +2 -0
- package/dist/{wardleyDiagram-VM6X3IG4-D4U_E7xl.js → wardleyDiagram-IVAIDKWA-Dz5K-UqN.js} +126 -126
- package/dist/{xychartDiagram-S5SC5T6Z-aHqeFP13.js → xychartDiagram-4URNHDU4-C2xwRx5F.js} +141 -137
- package/package.json +5 -3
- package/dist/architecture-7GRP2DOG-BsytjMto.js +0 -3
- package/dist/channel-BD0NTdCR.js +0 -5
- package/dist/chunk-2E4U76K2-CMCSmJ5_.js +0 -348
- package/dist/chunk-4HAMMTFA-DBtV-sHy.js +0 -4188
- package/dist/chunk-CLGD4ZFX-DdntjE3C.js +0 -14
- package/dist/chunk-FOHPRMQF-LRqOLsSw.js +0 -21456
- package/dist/chunk-L3NEJ4N5-Dd1FmxFn.js +0 -245
- package/dist/chunk-POPQ4Y6H-YFNrkrJW.js +0 -26
- package/dist/chunk-TLUHSLCS-Drk6ApJR.js +0 -59
- package/dist/chunk-XXDRQBXY-C1ZEFXGu.js +0 -9
- package/dist/classDiagram-ZZMXUADV-CaI6YU6r.js +0 -30
- package/dist/classDiagram-v2-VYDZK3BY-ClCVTcLo.js +0 -30
- package/dist/components/echart-graph-from-tree/echart-graph-from-tree-types.d.ts +0 -14
- package/dist/components/echart-graph-from-tree/echart-graph-from-tree-types.d.ts.map +0 -1
- package/dist/components/echart-graph-from-tree/echart-graph-from-tree.d.ts +0 -11
- package/dist/components/echart-graph-from-tree/echart-graph-from-tree.d.ts.map +0 -1
- package/dist/cynefin-OW5HDTMX-BJXlKro0.js +0 -3
- package/dist/dagre-D5csT9sx.js +0 -1934
- package/dist/dagre-GXQ25YYZ--Qf92cTs.js +0 -425
- package/dist/diagram-Z3DM3KII-DECfAI1l.js +0 -134
- package/dist/eventmodeling-NTZA5JFV-Cj-VH7yh.js +0 -3
- package/dist/flowDiagram-HODETNUW-LRjksS-j.js +0 -17
- package/dist/gitGraph-4MIJSDKK-C9JGDovl.js +0 -3
- package/dist/info-A6RAGUB7-CmZJKEaW.js +0 -3
- package/dist/infoDiagram-27XIBGKW-DXO97_PJ.js +0 -20
- package/dist/packet-AYTQ26CC-B3tgRshR.js +0 -3
- package/dist/pie-WAS4IAKB-BRiI8kbI.js +0 -3
- package/dist/radar-RG4KPBEZ-ASOMQXFw.js +0 -3
- package/dist/railroad-74A4TZTK-oS840SLr.js +0 -3
- package/dist/railroad-abnf-HS5TGJTU-nnQAkZY2.js +0 -3
- package/dist/railroad-ebnf-LZEXJU2U-DBQIOba3.js +0 -3
- package/dist/railroad-peg-WCYAUIDC-fBPN2TVb.js +0 -3
- package/dist/stateDiagram-D77RDMKH-0Jasv70t.js +0 -220
- package/dist/stateDiagram-v2-MP3YSRHH-JMSv8IGL.js +0 -30
- package/dist/swimlanesDiagram-VR7AAH4N-DtnUyaK5.js +0 -31
- package/dist/treeView-Q6P3EWNA-BmvB2b-_.js +0 -3
- package/dist/treemap-WGGIJYW6-Cjjk75wA.js +0 -3
- package/dist/wardley-WFR3VGLG-BamDiE0x.js +0 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n,
|
|
1
|
+
import { n as e, t } from "./chunk-Y2CYZVJY-i11wjrBe.js";
|
|
2
|
+
import { h as n, m as r } from "./src-CY9Rz0Sf.js";
|
|
3
3
|
//#region node_modules/dompurify/dist/purify.es.mjs
|
|
4
4
|
function i(e, t) {
|
|
5
5
|
this.v = e, this.k = t;
|
|
@@ -104,24 +104,24 @@ p ||= function(e) {
|
|
|
104
104
|
}, se ||= function(e) {
|
|
105
105
|
return new e(...[...arguments].slice(1));
|
|
106
106
|
};
|
|
107
|
-
var
|
|
107
|
+
var ce = v(Array.prototype.forEach);
|
|
108
108
|
Array.prototype.indexOf;
|
|
109
|
-
var
|
|
110
|
-
function
|
|
109
|
+
var le = v(Array.prototype.lastIndexOf), ue = v(Array.prototype.pop), de = v(Array.prototype.push), fe = v(Array.prototype.slice), pe = v(Array.prototype.splice), me = Array.isArray, he = ke(Set), ge = v(Set.prototype.add), _e = v(Set.prototype.has), ve = v(String.prototype.toLowerCase), ye = v(String.prototype.toString), be = v(String.prototype.match), xe = v(String.prototype.replace), Se = v(String.prototype.indexOf), Ce = v(String.prototype.trim), we = v(Number.prototype.toString), Te = v(Boolean.prototype.toString), Ee = typeof BigInt > "u" ? null : v(BigInt.prototype.toString), De = typeof Symbol > "u" ? null : v(Symbol.prototype.toString), h = v(Object.prototype.hasOwnProperty), g = v(Object.prototype.toString), _ = v(RegExp.prototype.test), Oe = ke(TypeError);
|
|
110
|
+
function v(e) {
|
|
111
111
|
return function(t) {
|
|
112
112
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
113
113
|
var n = [...arguments].slice(1);
|
|
114
114
|
return oe(e, t, n);
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function ke(e) {
|
|
118
118
|
return function() {
|
|
119
119
|
return se(e, [...arguments]);
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
124
|
-
if (ee && ee(e, null), !
|
|
122
|
+
function y(e, t) {
|
|
123
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ve;
|
|
124
|
+
if (ee && ee(e, null), !me(t)) return e;
|
|
125
125
|
let r = t.length;
|
|
126
126
|
for (; r--;) {
|
|
127
127
|
let i = t[r];
|
|
@@ -133,46 +133,46 @@ function x(e, t) {
|
|
|
133
133
|
}
|
|
134
134
|
return e;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
for (let t = 0; t < e.length; t++)
|
|
136
|
+
function Ae(e) {
|
|
137
|
+
for (let t = 0; t < e.length; t++) h(e, t) || (e[t] = null);
|
|
138
138
|
return e;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function b(e) {
|
|
141
141
|
let t = ie(null);
|
|
142
142
|
for (let r of f(e)) {
|
|
143
143
|
var n = l(r, 2);
|
|
144
144
|
let i = n[0], a = n[1];
|
|
145
|
-
|
|
145
|
+
h(e, i) && (t[i] = me(a) ? Ae(a) : a && typeof a == "object" && a.constructor === Object ? b(a) : a);
|
|
146
146
|
}
|
|
147
147
|
return t;
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function je(e) {
|
|
150
150
|
switch (typeof e) {
|
|
151
151
|
case "string": return e;
|
|
152
|
-
case "number": return
|
|
153
|
-
case "boolean": return
|
|
154
|
-
case "bigint": return
|
|
155
|
-
case "symbol": return
|
|
156
|
-
case "undefined": return
|
|
152
|
+
case "number": return we(e);
|
|
153
|
+
case "boolean": return Te(e);
|
|
154
|
+
case "bigint": return Ee ? Ee(e) : "0";
|
|
155
|
+
case "symbol": return De ? De(e) : "Symbol()";
|
|
156
|
+
case "undefined": return g(e);
|
|
157
157
|
case "function":
|
|
158
158
|
case "object": {
|
|
159
|
-
if (e === null) return
|
|
160
|
-
let t = e, n =
|
|
159
|
+
if (e === null) return g(e);
|
|
160
|
+
let t = e, n = x(t, "toString");
|
|
161
161
|
if (typeof n == "function") {
|
|
162
162
|
let e = n(t);
|
|
163
|
-
return typeof e == "string" ? e :
|
|
163
|
+
return typeof e == "string" ? e : g(e);
|
|
164
164
|
}
|
|
165
|
-
return
|
|
165
|
+
return g(e);
|
|
166
166
|
}
|
|
167
|
-
default: return
|
|
167
|
+
default: return g(e);
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function x(e, t) {
|
|
171
171
|
for (; e !== null;) {
|
|
172
172
|
let n = re(e, t);
|
|
173
173
|
if (n) {
|
|
174
|
-
if (n.get) return
|
|
175
|
-
if (typeof n.value == "function") return
|
|
174
|
+
if (n.get) return v(n.get);
|
|
175
|
+
if (typeof n.value == "function") return v(n.value);
|
|
176
176
|
}
|
|
177
177
|
e = ne(e);
|
|
178
178
|
}
|
|
@@ -181,22 +181,22 @@ function C(e, t) {
|
|
|
181
181
|
}
|
|
182
182
|
return n;
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function Me(e, t) {
|
|
185
185
|
for (; e !== null;) {
|
|
186
186
|
let n = re(e, t);
|
|
187
|
-
if (n) return n.get ?
|
|
187
|
+
if (n) return n.get ? v(n.get) : null;
|
|
188
188
|
e = ne(e);
|
|
189
189
|
}
|
|
190
190
|
return null;
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function Ne(e) {
|
|
193
193
|
try {
|
|
194
|
-
return
|
|
194
|
+
return _(e, ""), !0;
|
|
195
195
|
} catch {
|
|
196
196
|
return !1;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
var
|
|
199
|
+
var Pe = 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(".")), Fe = 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(".")), Ie = p([
|
|
200
200
|
"feBlend",
|
|
201
201
|
"feColorMatrix",
|
|
202
202
|
"feComponentTransfer",
|
|
@@ -222,7 +222,7 @@ var Me = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
222
222
|
"feSpotLight",
|
|
223
223
|
"feTile",
|
|
224
224
|
"feTurbulence"
|
|
225
|
-
]),
|
|
225
|
+
]), Le = p([
|
|
226
226
|
"animate",
|
|
227
227
|
"color-profile",
|
|
228
228
|
"cursor",
|
|
@@ -245,7 +245,7 @@ var Me = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
245
245
|
"solidcolor",
|
|
246
246
|
"unknown",
|
|
247
247
|
"use"
|
|
248
|
-
]),
|
|
248
|
+
]), Re = 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(".")), ze = p([
|
|
249
249
|
"maction",
|
|
250
250
|
"maligngroup",
|
|
251
251
|
"malignmark",
|
|
@@ -261,13 +261,13 @@ var Me = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
261
261
|
"annotation-xml",
|
|
262
262
|
"mprescripts",
|
|
263
263
|
"none"
|
|
264
|
-
]),
|
|
264
|
+
]), Be = p(["#text"]), Ve = 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(".")), He = 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(".")), Ue = 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(".")), We = p([
|
|
265
265
|
"xlink:href",
|
|
266
266
|
"xml:id",
|
|
267
267
|
"xlink:title",
|
|
268
268
|
"xml:space",
|
|
269
269
|
"xmlns:xlink"
|
|
270
|
-
]),
|
|
270
|
+
]), Ge = m(/{{[\w\W]*|^[\w\W]*}}/g), Ke = m(/<%[\w\W]*|^[\w\W]*%>/g), qe = m(/\${[\w\W]*/g), Je = m(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ye = m(/^aria-[\-\w]+$/), Xe = m(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Ze = m(/^(?:\w+script|data):/i), Qe = m(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), $e = m(/^html$/i), et = m(/^[a-z][.\w]*(-[.\w]+)+$/i), tt = m(/<[/\w!]/g), nt = m(/<[/\w]/g), rt = m(/<\/no(script|embed|frames)/i), it = m(/\/>/i), S = {
|
|
271
271
|
element: 1,
|
|
272
272
|
attribute: 2,
|
|
273
273
|
text: 3,
|
|
@@ -280,7 +280,7 @@ var Me = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
280
280
|
documentType: 10,
|
|
281
281
|
documentFragment: 11,
|
|
282
282
|
notation: 12
|
|
283
|
-
},
|
|
283
|
+
}, at = p(y({}, [
|
|
284
284
|
"style",
|
|
285
285
|
"script",
|
|
286
286
|
"xmp",
|
|
@@ -289,9 +289,9 @@ var Me = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
289
289
|
"noframes",
|
|
290
290
|
"plaintext",
|
|
291
291
|
"noscript"
|
|
292
|
-
])),
|
|
292
|
+
])), ot = function() {
|
|
293
293
|
return typeof window > "u" ? null : window;
|
|
294
|
-
},
|
|
294
|
+
}, st = function(e, t) {
|
|
295
295
|
if (typeof e != "object" || typeof e.createPolicy != "function") return null;
|
|
296
296
|
let n = null, r = "data-tt-policy-suffix";
|
|
297
297
|
t && t.hasAttribute(r) && (n = t.getAttribute(r));
|
|
@@ -308,7 +308,7 @@ var Me = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
308
308
|
} catch {
|
|
309
309
|
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
310
310
|
}
|
|
311
|
-
},
|
|
311
|
+
}, ct = function() {
|
|
312
312
|
return {
|
|
313
313
|
afterSanitizeAttributes: [],
|
|
314
314
|
afterSanitizeElements: [],
|
|
@@ -320,62 +320,62 @@ var Me = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
320
320
|
uponSanitizeElement: [],
|
|
321
321
|
uponSanitizeShadowNode: []
|
|
322
322
|
};
|
|
323
|
-
},
|
|
324
|
-
return
|
|
325
|
-
},
|
|
326
|
-
let r =
|
|
327
|
-
return r && typeof r == "object" ?
|
|
323
|
+
}, lt = function(e, t, n, r) {
|
|
324
|
+
return h(e, t) && me(e[t]) ? y(r.base ? b(r.base) : {}, e[t], r.transform) : n;
|
|
325
|
+
}, ut = function(e, t, n) {
|
|
326
|
+
let r = h(e, t) ? e[t] : void 0;
|
|
327
|
+
return r && typeof r == "object" ? b(r) : n();
|
|
328
328
|
};
|
|
329
|
-
function
|
|
330
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
331
|
-
if (t.version = "3.4.17", t.removed = [], !e || !e.document || e.document.nodeType !==
|
|
329
|
+
function dt() {
|
|
330
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ot(), t = (e) => dt(e);
|
|
331
|
+
if (t.version = "3.4.17", t.removed = [], !e || !e.document || e.document.nodeType !== S.document || !e.Element) return t.isSupported = !1, t;
|
|
332
332
|
let n = e.document, r = n, i = r.currentScript;
|
|
333
333
|
e.DocumentFragment;
|
|
334
334
|
let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
|
|
335
335
|
e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
|
|
336
|
-
let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, ee =
|
|
337
|
-
return
|
|
338
|
-
},
|
|
339
|
-
return
|
|
340
|
-
},
|
|
341
|
-
return
|
|
336
|
+
let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, ee = x(d, "cloneNode"), te = x(d, "remove"), ne = x(d, "removeAttributeNode"), re = x(d, "nextSibling"), ae = x(d, "childNodes"), oe = x(d, "parentNode"), se = x(d, "shadowRoot"), we = x(d, "attributes"), Te = o && o.prototype ? x(o.prototype, "nodeType") : null, Ee = o && o.prototype ? x(o.prototype, "nodeName") : null, De = o && o.prototype ? x(o.prototype, "ownerDocument") : null, g = function(e) {
|
|
337
|
+
return Te ? Te(e) : e.nodeType;
|
|
338
|
+
}, v = function(e) {
|
|
339
|
+
return Ee ? Ee(e) : e.nodeName;
|
|
340
|
+
}, ke = Me(d, "namespaceURI"), Ae = function(e) {
|
|
341
|
+
return ke ? ke(e) : e.namespaceURI;
|
|
342
342
|
};
|
|
343
343
|
if (typeof a == "function") {
|
|
344
344
|
let e = n.createElement("template");
|
|
345
345
|
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
|
|
346
346
|
}
|
|
347
|
-
let
|
|
348
|
-
if (
|
|
349
|
-
},
|
|
350
|
-
|
|
347
|
+
let C, w = "", T, ft = !1, E = 0, pt = function() {
|
|
348
|
+
if (E > 0) throw Oe("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
|
+
}, D = function(e) {
|
|
350
|
+
pt(), E++;
|
|
351
351
|
try {
|
|
352
|
-
return
|
|
352
|
+
return C.createHTML(e);
|
|
353
353
|
} finally {
|
|
354
|
-
|
|
354
|
+
E--;
|
|
355
355
|
}
|
|
356
|
-
},
|
|
357
|
-
|
|
356
|
+
}, mt = function(e) {
|
|
357
|
+
pt(), E++;
|
|
358
358
|
try {
|
|
359
|
-
return
|
|
359
|
+
return C.createScriptURL(e);
|
|
360
360
|
} finally {
|
|
361
|
-
|
|
361
|
+
E--;
|
|
362
362
|
}
|
|
363
|
-
},
|
|
364
|
-
return
|
|
365
|
-
},
|
|
366
|
-
t.isSupported = typeof f == "function" && typeof oe == "function" &&
|
|
367
|
-
let
|
|
368
|
-
...Me,
|
|
369
|
-
...Ne,
|
|
363
|
+
}, ht = function() {
|
|
364
|
+
return ft ||= (T = st(u, i), !0), T;
|
|
365
|
+
}, gt = n, _t = gt.implementation, O = gt.createNodeIterator, vt = gt.createDocumentFragment, k = gt.getElementsByTagName, yt = r.importNode, A = ct();
|
|
366
|
+
t.isSupported = typeof f == "function" && typeof oe == "function" && _t && _t.createHTMLDocument !== void 0;
|
|
367
|
+
let j = Ge, bt = Ke, M = qe, N = Je, P = Ye, xt = Ze, F = Qe, St = et, Ct = Xe, I = null, wt = y({}, [
|
|
370
368
|
...Pe,
|
|
369
|
+
...Fe,
|
|
371
370
|
...Ie,
|
|
372
|
-
...Re
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
...Be,
|
|
371
|
+
...Re,
|
|
372
|
+
...Be
|
|
373
|
+
]), L = null, Tt = y({}, [
|
|
376
374
|
...Ve,
|
|
377
|
-
...He
|
|
378
|
-
|
|
375
|
+
...He,
|
|
376
|
+
...Ue,
|
|
377
|
+
...We
|
|
378
|
+
]), R = Object.seal(ie(null, {
|
|
379
379
|
tagNameCheck: {
|
|
380
380
|
writable: !0,
|
|
381
381
|
configurable: !1,
|
|
@@ -394,7 +394,7 @@ function lt() {
|
|
|
394
394
|
enumerable: !0,
|
|
395
395
|
value: !1
|
|
396
396
|
}
|
|
397
|
-
})),
|
|
397
|
+
})), z = null, Et = null, Dt = Object.seal(ie(null, {
|
|
398
398
|
tagCheck: {
|
|
399
399
|
writable: !0,
|
|
400
400
|
configurable: !1,
|
|
@@ -407,14 +407,14 @@ function lt() {
|
|
|
407
407
|
enumerable: !0,
|
|
408
408
|
value: null
|
|
409
409
|
}
|
|
410
|
-
})),
|
|
410
|
+
})), Ot = !0, kt = !0, At = !1, B = !0, V = !1, H = !0, U = !1, jt = !1, W = null, Mt = null, Nt = !1, Pt = !1, Ft = !1, It = !1, Lt = !0, Rt = !1, zt = "user-content-", Bt = !0, Vt = !1, Ht = null, Ut = {}, Wt = null, Gt = y({}, /* @__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(".")), Kt = null, qt = y({}, [
|
|
411
411
|
"audio",
|
|
412
412
|
"video",
|
|
413
413
|
"img",
|
|
414
414
|
"source",
|
|
415
415
|
"image",
|
|
416
416
|
"track"
|
|
417
|
-
]),
|
|
417
|
+
]), Jt = null, Yt = y({}, [
|
|
418
418
|
"alt",
|
|
419
419
|
"class",
|
|
420
420
|
"for",
|
|
@@ -429,70 +429,70 @@ function lt() {
|
|
|
429
429
|
"value",
|
|
430
430
|
"style",
|
|
431
431
|
"xmlns"
|
|
432
|
-
]),
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
],
|
|
432
|
+
]), Xt = "http://www.w3.org/1998/Math/MathML", Zt = "http://www.w3.org/2000/svg", G = "http://www.w3.org/1999/xhtml", K = G, q = !1, Qt = null, $t = y({}, [
|
|
433
|
+
Xt,
|
|
434
|
+
Zt,
|
|
435
|
+
G
|
|
436
|
+
], ye), en = p([
|
|
437
437
|
"mi",
|
|
438
438
|
"mo",
|
|
439
439
|
"mn",
|
|
440
440
|
"ms",
|
|
441
441
|
"mtext"
|
|
442
|
-
]),
|
|
442
|
+
]), tn = y({}, en), nn = p(["annotation-xml"]), rn = y({}, nn), an = y({}, [
|
|
443
443
|
"title",
|
|
444
444
|
"style",
|
|
445
445
|
"font",
|
|
446
446
|
"a",
|
|
447
447
|
"script"
|
|
448
|
-
]),
|
|
448
|
+
]), on = null, sn = ["application/xhtml+xml", "text/html"], J = null, Y = null, cn = n.createElement("form"), ln = function(e) {
|
|
449
449
|
return e instanceof RegExp || e instanceof Function;
|
|
450
|
-
},
|
|
450
|
+
}, un = function() {
|
|
451
451
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
452
|
-
if (
|
|
453
|
-
(!e || typeof e != "object") && (e = {}), e =
|
|
454
|
-
transform:
|
|
452
|
+
if (Y && Y === e) return;
|
|
453
|
+
(!e || typeof e != "object") && (e = {}), e = b(e), on = sn.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = on === "application/xhtml+xml" ? ye : ve, I = lt(e, "ALLOWED_TAGS", wt, { transform: J }), L = lt(e, "ALLOWED_ATTR", Tt, { transform: J }), Qt = lt(e, "ALLOWED_NAMESPACES", $t, { transform: ye }), Jt = lt(e, "ADD_URI_SAFE_ATTR", Yt, {
|
|
454
|
+
transform: J,
|
|
455
|
+
base: Yt
|
|
456
|
+
}), Kt = lt(e, "ADD_DATA_URI_TAGS", qt, {
|
|
457
|
+
transform: J,
|
|
455
458
|
base: qt
|
|
456
|
-
}), Wt =
|
|
457
|
-
|
|
458
|
-
|
|
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, [
|
|
459
|
+
}), Wt = lt(e, "FORBID_CONTENTS", Gt, { transform: J }), z = lt(e, "FORBID_TAGS", b({}), { transform: J }), Et = lt(e, "FORBID_ATTR", b({}), { transform: J }), Ut = h(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? b(e.USE_PROFILES) : e.USE_PROFILES : !1, Ot = e.ALLOW_ARIA_ATTR !== !1, kt = e.ALLOW_DATA_ATTR !== !1, At = e.ALLOW_UNKNOWN_PROTOCOLS || !1, B = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, V = e.SAFE_FOR_TEMPLATES || !1, H = e.SAFE_FOR_XML !== !1, U = e.WHOLE_DOCUMENT || !1, Pt = e.RETURN_DOM || !1, Ft = e.RETURN_DOM_FRAGMENT || !1, It = e.RETURN_TRUSTED_TYPE || !1, Nt = e.FORCE_BODY || !1, Lt = e.SANITIZE_DOM !== !1, Rt = e.SANITIZE_NAMED_PROPS || !1, Bt = e.KEEP_CONTENT !== !1, Vt = e.IN_PLACE || !1, Ct = Ne(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Xe, K = typeof e.NAMESPACE == "string" ? e.NAMESPACE : G, tn = ut(e, "MATHML_TEXT_INTEGRATION_POINTS", () => y({}, en)), rn = ut(e, "HTML_INTEGRATION_POINTS", () => y({}, nn));
|
|
460
|
+
let t = ut(e, "CUSTOM_ELEMENT_HANDLING", () => ie(null));
|
|
461
|
+
if (R = ie(null), h(t, "tagNameCheck") && ln(t.tagNameCheck) && (R.tagNameCheck = t.tagNameCheck), h(t, "attributeNameCheck") && ln(t.attributeNameCheck) && (R.attributeNameCheck = t.attributeNameCheck), h(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (R.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), m(R), V && (kt = !1), Ft && (Pt = !0), Ut && (I = y({}, Be), L = ie(null), Ut.html === !0 && (y(I, Pe), y(L, Ve)), Ut.svg === !0 && (y(I, Fe), y(L, He), y(L, We)), Ut.svgFilters === !0 && (y(I, Ie), y(L, He), y(L, We)), Ut.mathMl === !0 && (y(I, Re), y(L, Ue), y(L, We))), Dt.tagCheck = null, Dt.attributeCheck = null, h(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? Dt.tagCheck = e.ADD_TAGS : me(e.ADD_TAGS) && (I === wt && (I = b(I)), y(I, e.ADD_TAGS, J))), h(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? Dt.attributeCheck = e.ADD_ATTR : me(e.ADD_ATTR) && (L === Tt && (L = b(L)), y(L, e.ADD_ATTR, J))), h(e, "ADD_FORBID_CONTENTS") && me(e.ADD_FORBID_CONTENTS) && (Wt === Gt && (Wt = b(Wt)), y(Wt, e.ADD_FORBID_CONTENTS, J)), Bt && (I["#text"] = !0), U && y(I, [
|
|
462
462
|
"html",
|
|
463
463
|
"head",
|
|
464
464
|
"body"
|
|
465
|
-
]),
|
|
466
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw
|
|
467
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw
|
|
468
|
-
let t =
|
|
469
|
-
|
|
465
|
+
]), I.table && (y(I, ["tbody"]), delete z.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
466
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw Oe("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
467
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Oe("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
468
|
+
let t = C;
|
|
469
|
+
C = e.TRUSTED_TYPES_POLICY;
|
|
470
470
|
try {
|
|
471
|
-
|
|
471
|
+
w = D("");
|
|
472
472
|
} catch (e) {
|
|
473
|
-
throw
|
|
473
|
+
throw C = t, e;
|
|
474
474
|
}
|
|
475
|
-
} else e.TRUSTED_TYPES_POLICY === null ? (
|
|
476
|
-
p && p(e),
|
|
477
|
-
},
|
|
478
|
-
...
|
|
479
|
-
...
|
|
480
|
-
...
|
|
481
|
-
]),
|
|
482
|
-
return t.namespaceURI ===
|
|
475
|
+
} else e.TRUSTED_TYPES_POLICY === null ? (C = void 0, w = "") : (C === void 0 && (C = ht()), C && typeof w == "string" && (w = D("")));
|
|
476
|
+
p && p(e), Y = e;
|
|
477
|
+
}, dn = y({}, [
|
|
478
|
+
...Fe,
|
|
479
|
+
...Ie,
|
|
480
|
+
...Le
|
|
481
|
+
]), fn = y({}, [...Re, ...ze]), X = function(e, t, n) {
|
|
482
|
+
return t.namespaceURI === G ? e === "svg" : t.namespaceURI === Xt ? e === "svg" && (n === "annotation-xml" || tn[n]) : !!dn[e];
|
|
483
483
|
}, pn = function(e, t, n) {
|
|
484
|
-
return t.namespaceURI ===
|
|
484
|
+
return t.namespaceURI === G ? e === "math" : t.namespaceURI === Zt ? e === "math" && rn[n] : !!fn[e];
|
|
485
485
|
}, mn = function(e, t, n) {
|
|
486
|
-
return t.namespaceURI ===
|
|
486
|
+
return t.namespaceURI === Zt && !rn[n] || t.namespaceURI === Xt && !tn[n] ? !1 : !fn[e] && (an[e] || !dn[e]);
|
|
487
487
|
}, hn = function(e) {
|
|
488
|
-
let t =
|
|
489
|
-
return r &&
|
|
488
|
+
let t = Ae(e), n = ve(v(e)), r = oe(e), i, a;
|
|
489
|
+
return r && g(r) === S.element ? (i = { namespaceURI: Ae(r) }, a = ve(v(r))) : (i = { namespaceURI: K }, a = "template"), Qt[t] ? t === Zt ? X(n, i, a) : t === Xt ? pn(n, i, a) : t === G ? mn(n, i, a) : !!(on === "application/xhtml+xml" && Qt[t]) : !1;
|
|
490
490
|
}, Z = function(e) {
|
|
491
|
-
|
|
491
|
+
de(t.removed, { element: e });
|
|
492
492
|
try {
|
|
493
493
|
oe(e).removeChild(e);
|
|
494
494
|
} catch {
|
|
495
|
-
if (te(e), !oe(e)) throw
|
|
495
|
+
if (te(e), !oe(e)) throw Oe("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
496
496
|
}
|
|
497
497
|
}, gn = function(e, t, n) {
|
|
498
498
|
try {
|
|
@@ -503,25 +503,25 @@ function lt() {
|
|
|
503
503
|
} catch {}
|
|
504
504
|
}
|
|
505
505
|
}, _n = function(e) {
|
|
506
|
-
|
|
506
|
+
bn(e);
|
|
507
507
|
let t = ae(e);
|
|
508
|
-
t &&
|
|
508
|
+
t && ce(fe(t), (e) => {
|
|
509
509
|
try {
|
|
510
510
|
te(e);
|
|
511
511
|
} catch {}
|
|
512
512
|
});
|
|
513
|
-
let n =
|
|
513
|
+
let n = g(e) === S.element ? we(e) : null;
|
|
514
514
|
if (n) for (let t = n.length - 1; t >= 0; --t) {
|
|
515
515
|
let r = n[t], i = r && r.name;
|
|
516
516
|
typeof i == "string" && gn(e, r, i);
|
|
517
517
|
}
|
|
518
|
-
},
|
|
518
|
+
}, Q = function(e, n, r) {
|
|
519
519
|
if (!r) try {
|
|
520
520
|
r = n.getAttributeNode(e);
|
|
521
521
|
} catch {
|
|
522
522
|
r = null;
|
|
523
523
|
}
|
|
524
|
-
|
|
524
|
+
de(t.removed, {
|
|
525
525
|
attribute: r || null,
|
|
526
526
|
from: n
|
|
527
527
|
});
|
|
@@ -533,155 +533,155 @@ function lt() {
|
|
|
533
533
|
} catch {}
|
|
534
534
|
}
|
|
535
535
|
if (e === "is") {
|
|
536
|
-
if (
|
|
536
|
+
if (Pt || Ft) try {
|
|
537
537
|
Z(n);
|
|
538
538
|
} catch {}
|
|
539
539
|
else try {
|
|
540
540
|
n.setAttribute(e, "");
|
|
541
541
|
} catch {}
|
|
542
542
|
}
|
|
543
|
-
},
|
|
544
|
-
let t =
|
|
543
|
+
}, vn = function(e) {
|
|
544
|
+
let t = we(e);
|
|
545
545
|
if (t) for (let n = t.length - 1; n >= 0; --n) {
|
|
546
546
|
let r = t[n], i = r && r.name;
|
|
547
|
-
typeof i != "string" ||
|
|
547
|
+
typeof i != "string" || L[J(i)] || gn(e, r, i);
|
|
548
548
|
}
|
|
549
|
-
},
|
|
549
|
+
}, yn = function(e, t) {
|
|
550
550
|
let n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], r = [e];
|
|
551
551
|
for (; r.length > 0;) {
|
|
552
552
|
let e = r.pop();
|
|
553
553
|
if (t(e) === !1) continue;
|
|
554
|
-
if (n &&
|
|
554
|
+
if (n && g(e) === S.element) {
|
|
555
555
|
let t = se(e);
|
|
556
|
-
|
|
556
|
+
Fn(t) && r.push(t);
|
|
557
557
|
}
|
|
558
558
|
let i = ae(e);
|
|
559
559
|
if (i) for (let e = i.length - 1; e >= 0; --e) r.push(i[e]);
|
|
560
560
|
}
|
|
561
|
-
},
|
|
562
|
-
|
|
563
|
-
|
|
561
|
+
}, bn = function(e) {
|
|
562
|
+
yn(e, (e) => {
|
|
563
|
+
g(e) === S.element && vn(e);
|
|
564
564
|
});
|
|
565
|
-
},
|
|
565
|
+
}, xn = function(e) {
|
|
566
566
|
let t = [];
|
|
567
|
-
return
|
|
567
|
+
return yn(e, (e) => {
|
|
568
568
|
t.push(e);
|
|
569
569
|
}, !0), t;
|
|
570
|
-
},
|
|
571
|
-
let n =
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
}),
|
|
575
|
-
|
|
570
|
+
}, Sn = function(e, t) {
|
|
571
|
+
let n = he();
|
|
572
|
+
ce(xn(e), (e) => {
|
|
573
|
+
g(e) === S.element && ge(n, e);
|
|
574
|
+
}), ce(t, (e) => {
|
|
575
|
+
g(e) === S.element && !_e(n, e) && vn(e);
|
|
576
576
|
});
|
|
577
|
-
},
|
|
577
|
+
}, Cn = function(e, n) {
|
|
578
578
|
let r = !1;
|
|
579
|
-
return
|
|
580
|
-
t.element && (r ||= t.element === e,
|
|
581
|
-
}),
|
|
582
|
-
},
|
|
583
|
-
let n =
|
|
584
|
-
|
|
579
|
+
return ce(t.removed, (t) => {
|
|
580
|
+
t.element && (r ||= t.element === e, bn(t.element));
|
|
581
|
+
}), Sn(e, n), r;
|
|
582
|
+
}, wn = function(e, t) {
|
|
583
|
+
let n = Ht, r = null, i = () => (r || (r = he(), ce(t, (e) => {
|
|
584
|
+
ge(r, e);
|
|
585
585
|
})), r);
|
|
586
586
|
for (let t = 0;; t++) {
|
|
587
|
-
let r =
|
|
588
|
-
if (
|
|
589
|
-
|
|
587
|
+
let r = xn(e), a = [e], o = !1;
|
|
588
|
+
if (ce(r, (e) => {
|
|
589
|
+
g(e) === S.documentFragment ? de(a, e) : !o && !_e(n, e) && (o = _e(i(), e));
|
|
590
590
|
}), !o) return;
|
|
591
|
-
if (t >= 8) throw
|
|
592
|
-
|
|
593
|
-
|
|
591
|
+
if (t >= 8) throw Oe("the tree kept changing during in-place sanitization; refusing to return it");
|
|
592
|
+
ce(a, (t, n) => {
|
|
593
|
+
Tn(t, n > 0, e, i());
|
|
594
594
|
});
|
|
595
595
|
}
|
|
596
|
-
},
|
|
597
|
-
let i =
|
|
598
|
-
for (; a = i.nextNode();)
|
|
599
|
-
},
|
|
600
|
-
|
|
601
|
-
},
|
|
602
|
-
return
|
|
603
|
-
},
|
|
604
|
-
|
|
605
|
-
let t =
|
|
606
|
-
if (t ===
|
|
596
|
+
}, Tn = function(e, t, n, r) {
|
|
597
|
+
let i = An(e), a;
|
|
598
|
+
for (; a = i.nextNode();) _e(r, a) && !_e(Ht, a) && (t && $(A.uponSanitizeShadowNode, a, null), Hn(a, n), Yn(a, n), Fn(a.content) && Xn(a.content));
|
|
599
|
+
}, En = function(e) {
|
|
600
|
+
Ht && ge(Ht, e);
|
|
601
|
+
}, Dn = function(e, t) {
|
|
602
|
+
return H ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
|
|
603
|
+
}, On = function(e) {
|
|
604
|
+
H && yn(e, (e) => {
|
|
605
|
+
let t = g(e);
|
|
606
|
+
if (t === S.processingInstruction || t === S.comment && _(nt, e.data)) {
|
|
607
607
|
try {
|
|
608
608
|
te(e);
|
|
609
609
|
} catch {}
|
|
610
610
|
return !1;
|
|
611
611
|
}
|
|
612
|
-
if (t ===
|
|
613
|
-
let t = e, n =
|
|
612
|
+
if (t === S.element) {
|
|
613
|
+
let t = e, n = J(v(e));
|
|
614
614
|
try {
|
|
615
|
-
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") && Dn("for", n) && t.removeAttribute("for");
|
|
616
616
|
} catch {}
|
|
617
617
|
}
|
|
618
618
|
return !0;
|
|
619
619
|
});
|
|
620
|
-
},
|
|
620
|
+
}, kn = function(e) {
|
|
621
621
|
let t = null, r = null;
|
|
622
|
-
if (
|
|
622
|
+
if (Nt) e = "<remove></remove>" + e;
|
|
623
623
|
else {
|
|
624
|
-
let t =
|
|
624
|
+
let t = be(e, /^[\r\n\t ]+/);
|
|
625
625
|
r = t && t[0];
|
|
626
626
|
}
|
|
627
|
-
|
|
628
|
-
let i =
|
|
629
|
-
if (
|
|
630
|
-
t = new l().parseFromString(i,
|
|
627
|
+
on === "application/xhtml+xml" && K === G && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
628
|
+
let i = C ? D(e) : e;
|
|
629
|
+
if (K === G) try {
|
|
630
|
+
t = new l().parseFromString(i, on);
|
|
631
631
|
} catch {}
|
|
632
632
|
if (!t || !t.documentElement) {
|
|
633
|
-
t =
|
|
633
|
+
t = _t.createDocument(K, "template", null);
|
|
634
634
|
try {
|
|
635
|
-
t.documentElement.innerHTML =
|
|
635
|
+
t.documentElement.innerHTML = q ? w : i;
|
|
636
636
|
} catch {}
|
|
637
637
|
}
|
|
638
638
|
let a = t.body || t.documentElement;
|
|
639
|
-
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null),
|
|
639
|
+
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), K === G ? k.call(t, U ? "html" : "body")[0] : U ? t.documentElement : a;
|
|
640
|
+
}, An = function(e) {
|
|
641
|
+
let t = De ? De(e) : e.ownerDocument;
|
|
642
|
+
return O.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
|
|
640
643
|
}, jn = function(e) {
|
|
641
|
-
|
|
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);
|
|
644
|
+
return e = xe(e, j, " "), e = xe(e, bt, " "), e = xe(e, M, " "), e;
|
|
643
645
|
}, Mn = function(e) {
|
|
644
|
-
|
|
645
|
-
}, Nn = function(e) {
|
|
646
|
-
Pn(e);
|
|
646
|
+
Nn(e);
|
|
647
647
|
let t = e.querySelectorAll?.call(e, "template");
|
|
648
|
-
t &&
|
|
649
|
-
|
|
648
|
+
t && ce(t, (e) => {
|
|
649
|
+
Fn(e.content) && Mn(e.content);
|
|
650
650
|
});
|
|
651
|
-
},
|
|
651
|
+
}, Nn = function(e) {
|
|
652
652
|
e.normalize();
|
|
653
|
-
let t =
|
|
654
|
-
for (; r;) r.data =
|
|
653
|
+
let t = De ? De(e) : e.ownerDocument, n = O.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 = jn(r.data), r = n.nextNode();
|
|
655
|
+
}, Pn = function(e) {
|
|
656
|
+
let t = Ee ? Ee(e) : null;
|
|
657
|
+
return typeof t != "string" || J(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== we(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 !== Te(e) || e.childNodes !== ae(e);
|
|
655
658
|
}, Fn = function(e) {
|
|
656
|
-
|
|
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;
|
|
659
|
+
if (!Te || typeof e != "object" || !e) return !1;
|
|
660
660
|
try {
|
|
661
|
-
return
|
|
661
|
+
return Te(e) === S.documentFragment;
|
|
662
662
|
} catch {
|
|
663
663
|
return !1;
|
|
664
664
|
}
|
|
665
665
|
}, In = function(e) {
|
|
666
|
-
if (!
|
|
666
|
+
if (!Te || typeof e != "object" || !e) return !1;
|
|
667
667
|
try {
|
|
668
|
-
return typeof
|
|
668
|
+
return typeof Te(e) == "number";
|
|
669
669
|
} catch {
|
|
670
670
|
return !1;
|
|
671
671
|
}
|
|
672
672
|
};
|
|
673
673
|
function $(e, n, r) {
|
|
674
|
-
e.length !== 0 &&
|
|
675
|
-
e.call(t, n, r,
|
|
674
|
+
e.length !== 0 && ce(e, (e) => {
|
|
675
|
+
e.call(t, n, r, Y);
|
|
676
676
|
});
|
|
677
677
|
}
|
|
678
678
|
let Ln = function(e, t) {
|
|
679
|
-
return !!(
|
|
679
|
+
return !!(H && e.hasChildNodes() && !In(e.firstElementChild) && _(tt, e.textContent) && _(tt, e.innerHTML) || H && at[t] && g(e) === S.element && Ae(e) === G && (In(e.firstElementChild) || typeof e.textContent == "string" && _(tt, e.textContent)) || e.nodeType === S.processingInstruction || H && e.nodeType === S.comment && _(nt, e.data));
|
|
680
680
|
}, Rn = function(e, t) {
|
|
681
|
-
return e instanceof RegExp ?
|
|
681
|
+
return e instanceof RegExp ? _(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
|
|
682
682
|
}, zn = function(e, t, n) {
|
|
683
|
-
if (!
|
|
684
|
-
if (
|
|
683
|
+
if (!z[t] && Gn(t) && Rn(R.tagNameCheck, t)) return !1;
|
|
684
|
+
if (Bt && !Wt[t] && !Wt[ve(t)]) {
|
|
685
685
|
let t = oe(e), r = ae(e);
|
|
686
686
|
if (r && t) {
|
|
687
687
|
let i = r.length;
|
|
@@ -693,33 +693,33 @@ function lt() {
|
|
|
693
693
|
}
|
|
694
694
|
return Z(e), !0;
|
|
695
695
|
}, Bn = function(e, t, n, r) {
|
|
696
|
-
return e.length === 0 ? t : t === n || t === r ?
|
|
696
|
+
return e.length === 0 ? t : t === n || t === r ? b(t) : t;
|
|
697
697
|
}, Vn = function(e, t) {
|
|
698
|
-
return e === t || oe(e) !== null ? !1 : (
|
|
698
|
+
return e === t || oe(e) !== null ? !1 : (Vt && bn(e), !0);
|
|
699
699
|
}, Hn = function(e, n) {
|
|
700
|
-
if (
|
|
701
|
-
if (
|
|
702
|
-
let r =
|
|
703
|
-
if (
|
|
700
|
+
if (En(e), $(A.beforeSanitizeElements, e, null), Vn(e, n)) return !0;
|
|
701
|
+
if (Pn(e)) return Z(e), !0;
|
|
702
|
+
let r = J(v(e));
|
|
703
|
+
if (I = Bn(A.uponSanitizeElement, I, wt, W), $(A.uponSanitizeElement, e, {
|
|
704
704
|
tagName: r,
|
|
705
|
-
allowedTags:
|
|
705
|
+
allowedTags: I
|
|
706
706
|
}), Vn(e, n)) return !0;
|
|
707
707
|
if (Ln(e, r)) return Z(e), !0;
|
|
708
|
-
if (
|
|
708
|
+
if (z[r] || !(Dt.tagCheck instanceof Function && Dt.tagCheck(r)) && !I[r]) {
|
|
709
709
|
let t = zn(e, r, n);
|
|
710
|
-
return t === !1 && ($(
|
|
710
|
+
return t === !1 && ($(A.afterSanitizeElements, e, null), Vn(e, n)) ? !0 : t;
|
|
711
711
|
}
|
|
712
|
-
if (
|
|
713
|
-
if (
|
|
714
|
-
let n =
|
|
715
|
-
e.textContent !== n && (
|
|
712
|
+
if (g(e) === S.element && !hn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && _(rt, e.innerHTML)) return Z(e), !0;
|
|
713
|
+
if (V && e.nodeType === S.text) {
|
|
714
|
+
let n = jn(e.textContent);
|
|
715
|
+
e.textContent !== n && (de(t.removed, { element: e.cloneNode() }), e.textContent = n);
|
|
716
716
|
}
|
|
717
|
-
return $(
|
|
717
|
+
return $(A.afterSanitizeElements, e, null), Vn(e, n);
|
|
718
718
|
}, Un = function(e, t, r) {
|
|
719
|
-
if (
|
|
720
|
-
let i =
|
|
721
|
-
return
|
|
722
|
-
}, Wn =
|
|
719
|
+
if (Et[t] || Dn(t, e) || Lt && (t === "id" || t === "name") && (r in n || r in cn)) return !1;
|
|
720
|
+
let i = L[t] || Dt.attributeCheck instanceof Function && Dt.attributeCheck(t, e);
|
|
721
|
+
return kt && _(N, t) || Ot && _(P, t) ? !0 : i ? Jt[t] || _(Ct, xe(r, F, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && Se(r, "data:") === 0 && Kt[e] || At && !_(xt, xe(r, F, "")) ? !0 : !r : Gn(e) && Rn(R.tagNameCheck, e) && Rn(R.attributeNameCheck, t, e) || t === "is" && R.allowCustomizedBuiltInElements && Rn(R.tagNameCheck, r);
|
|
722
|
+
}, Wn = y({}, [
|
|
723
723
|
"annotation-xml",
|
|
724
724
|
"color-profile",
|
|
725
725
|
"font-face",
|
|
@@ -729,63 +729,45 @@ function lt() {
|
|
|
729
729
|
"font-face-uri",
|
|
730
730
|
"missing-glyph"
|
|
731
731
|
]), Gn = function(e) {
|
|
732
|
-
return !Wn[
|
|
732
|
+
return !Wn[ve(e)] && _(St, e);
|
|
733
733
|
}, Kn = function(e, t, n, r) {
|
|
734
|
-
if (
|
|
735
|
-
case "TrustedHTML": return
|
|
736
|
-
case "TrustedScriptURL": return
|
|
734
|
+
if (C && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
|
|
735
|
+
case "TrustedHTML": return D(r);
|
|
736
|
+
case "TrustedScriptURL": return mt(r);
|
|
737
737
|
}
|
|
738
738
|
return r;
|
|
739
739
|
}, qn = function(e, t, n, r) {
|
|
740
740
|
try {
|
|
741
|
-
return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !
|
|
741
|
+
return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !Pn(e) || (Z(e), !1);
|
|
742
742
|
} catch {
|
|
743
|
-
return
|
|
743
|
+
return Q(t, e), !1;
|
|
744
744
|
}
|
|
745
745
|
}, Jn = function(e, t) {
|
|
746
|
-
return
|
|
746
|
+
return H && _(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, t) ? !0 : ve(e) === "attributename" && be(t, "href") !== null;
|
|
747
747
|
}, Yn = function(e, n) {
|
|
748
|
-
if ($(
|
|
748
|
+
if ($(A.beforeSanitizeAttributes, e, null), Vn(e, n)) return;
|
|
749
749
|
let r = e.attributes;
|
|
750
|
-
if (!r ||
|
|
751
|
-
|
|
750
|
+
if (!r || Pn(e)) return;
|
|
751
|
+
L = Bn(A.uponSanitizeAttribute, L, Tt, Mt);
|
|
752
752
|
let i = {
|
|
753
753
|
attrName: "",
|
|
754
754
|
attrValue: "",
|
|
755
755
|
keepAttr: !0,
|
|
756
|
-
allowedAttributes:
|
|
756
|
+
allowedAttributes: L,
|
|
757
757
|
forceKeepAttr: void 0
|
|
758
|
-
}, a = r.length, o =
|
|
758
|
+
}, a = r.length, o = J(e.nodeName);
|
|
759
759
|
for (; a--;) {
|
|
760
|
-
let n = r[a], s = n.name, c = n.namespaceURI, l = n.value, u =
|
|
761
|
-
|
|
762
|
-
vn(s, e, n);
|
|
763
|
-
continue;
|
|
764
|
-
}
|
|
765
|
-
if (!i.forceKeepAttr) {
|
|
766
|
-
if (!i.keepAttr) {
|
|
767
|
-
vn(s, e, n);
|
|
768
|
-
continue;
|
|
769
|
-
}
|
|
770
|
-
if (!Et && v(nt, f)) {
|
|
771
|
-
vn(s, e, n);
|
|
772
|
-
continue;
|
|
773
|
-
}
|
|
774
|
-
if (G && (f = Mn(f)), !Un(o, u, f)) {
|
|
775
|
-
vn(s, e, n);
|
|
776
|
-
continue;
|
|
777
|
-
}
|
|
778
|
-
f = Kn(o, u, c, f), f !== d && qn(e, s, c, f) && ee && le(t.removed);
|
|
779
|
-
}
|
|
760
|
+
let n = r[a], s = n.name, c = n.namespaceURI, l = n.value, u = J(s), d = l, f = s === "value" ? d : Ce(d), ee = !1;
|
|
761
|
+
i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, $(A.uponSanitizeAttribute, e, i), f = i.attrValue, Rt && (u === "id" || u === "name") && Se(f, zt) !== 0 && (Q(s, e, n), f = zt + f, ee = !0), Jn(s, f) ? Q(s, e, n) : i.forceKeepAttr || (i.keepAttr ? !B && _(it, f) ? Q(s, e, n) : (V && (f = jn(f)), Un(o, u, f) ? (f = Kn(o, u, c, f), f !== d && qn(e, s, c, f) && ee && ue(t.removed)) : Q(s, e, n)) : Q(s, e, n));
|
|
780
762
|
}
|
|
781
|
-
$(
|
|
763
|
+
$(A.afterSanitizeAttributes, e, null), Vn(e, n);
|
|
782
764
|
}, Xn = function(e) {
|
|
783
|
-
let t = null, n =
|
|
784
|
-
for ($(
|
|
765
|
+
let t = null, n = An(e);
|
|
766
|
+
for ($(A.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(A.uponSanitizeShadowNode, t, null), Hn(t, e), Yn(t, e), Fn(t.content) && Xn(t.content), g(t) === S.element) {
|
|
785
767
|
let e = se(t);
|
|
786
|
-
|
|
768
|
+
Fn(e) && (Zn(e), Xn(e));
|
|
787
769
|
}
|
|
788
|
-
|
|
770
|
+
V && Nn(e), $(A.afterSanitizeShadowDOM, e, null);
|
|
789
771
|
}, Zn = function(e) {
|
|
790
772
|
let t = [{
|
|
791
773
|
node: e,
|
|
@@ -797,16 +779,16 @@ function lt() {
|
|
|
797
779
|
Xn(e.shadow);
|
|
798
780
|
continue;
|
|
799
781
|
}
|
|
800
|
-
let n = e.node, r =
|
|
782
|
+
let n = e.node, r = g(n) === S.element, i = ae(n);
|
|
801
783
|
if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
|
|
802
784
|
node: i[e],
|
|
803
785
|
shadow: null
|
|
804
786
|
});
|
|
805
787
|
if (r) {
|
|
806
|
-
let e =
|
|
807
|
-
if (typeof e == "string" &&
|
|
788
|
+
let e = Ee ? Ee(n) : null;
|
|
789
|
+
if (typeof e == "string" && J(e) === "template") {
|
|
808
790
|
let e = n.content;
|
|
809
|
-
|
|
791
|
+
Fn(e) && t.push({
|
|
810
792
|
node: e,
|
|
811
793
|
shadow: null
|
|
812
794
|
});
|
|
@@ -814,7 +796,7 @@ function lt() {
|
|
|
814
796
|
}
|
|
815
797
|
if (r) {
|
|
816
798
|
let e = se(n);
|
|
817
|
-
|
|
799
|
+
Fn(e) && t.push({
|
|
818
800
|
node: null,
|
|
819
801
|
shadow: e
|
|
820
802
|
}, {
|
|
@@ -826,73 +808,73 @@ function lt() {
|
|
|
826
808
|
};
|
|
827
809
|
return t.sanitize = function(e) {
|
|
828
810
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
|
|
829
|
-
if (
|
|
811
|
+
if (q = !e, q && (e = "<!-->"), typeof e != "string" && !In(e) && (e = je(e), typeof e != "string")) throw Oe("dirty is not a string, aborting");
|
|
830
812
|
if (!t.isSupported) return e;
|
|
831
|
-
|
|
832
|
-
let c =
|
|
813
|
+
jt ? (I = W, L = Mt) : un(n), (A.uponSanitizeElement.length > 0 || A.uponSanitizeAttribute.length > 0) && (I = b(I)), A.uponSanitizeAttribute.length > 0 && (L = b(L)), t.removed = [];
|
|
814
|
+
let c = Vt && typeof e != "string" && In(e), l = [], u = Ht;
|
|
833
815
|
if (c) {
|
|
834
|
-
|
|
835
|
-
let t =
|
|
816
|
+
On(e);
|
|
817
|
+
let t = v(e);
|
|
836
818
|
if (typeof t == "string") {
|
|
837
|
-
let n =
|
|
838
|
-
if (!
|
|
819
|
+
let n = J(t);
|
|
820
|
+
if (!I[n] || z[n]) throw _n(e), Oe("root node is forbidden and cannot be sanitized in-place");
|
|
839
821
|
}
|
|
840
|
-
if (
|
|
841
|
-
l =
|
|
842
|
-
} else if (In(e)) i =
|
|
822
|
+
if (Pn(e)) throw _n(e), Oe("root node is clobbered and cannot be sanitized in-place");
|
|
823
|
+
l = xn(e), Ht = he();
|
|
824
|
+
} else if (In(e)) i = kn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === S.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Zn(i);
|
|
843
825
|
else {
|
|
844
|
-
if (!
|
|
845
|
-
if (i =
|
|
826
|
+
if (!Pt && !V && !U && e.indexOf("<") === -1) return C && It ? D(e) : e;
|
|
827
|
+
if (i = kn(e), !i) return Pt ? null : It ? w : "";
|
|
846
828
|
}
|
|
847
|
-
i &&
|
|
829
|
+
i && Nt && Z(i.firstChild);
|
|
848
830
|
let d = c ? e : i;
|
|
849
831
|
try {
|
|
850
832
|
c && Zn(e);
|
|
851
|
-
let t =
|
|
852
|
-
for (; o = t.nextNode();) Hn(o, d), Yn(o, d),
|
|
853
|
-
c &&
|
|
833
|
+
let t = An(d);
|
|
834
|
+
for (; o = t.nextNode();) Hn(o, d), Yn(o, d), Fn(o.content) && Xn(o.content);
|
|
835
|
+
c && wn(e, l);
|
|
854
836
|
} catch (t) {
|
|
855
|
-
throw c && (_n(e),
|
|
837
|
+
throw c && (_n(e), Cn(e, l)), t;
|
|
856
838
|
} finally {
|
|
857
|
-
|
|
839
|
+
Ht = u;
|
|
858
840
|
}
|
|
859
841
|
if (c) {
|
|
860
|
-
if (
|
|
861
|
-
return
|
|
842
|
+
if (Cn(e, l)) throw Oe("a node selected for removal could not be safely returned; refusing to sanitize in place");
|
|
843
|
+
return V && Mn(e), e;
|
|
862
844
|
}
|
|
863
|
-
if (
|
|
864
|
-
if (
|
|
845
|
+
if (Pt) {
|
|
846
|
+
if (V && Mn(i), Ft) for (s = vt.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
|
|
865
847
|
else s = i;
|
|
866
|
-
return (
|
|
848
|
+
return (L.shadowroot || L.shadowrootmode) && (s = yt.call(r, s, !0)), s;
|
|
867
849
|
}
|
|
868
|
-
let f =
|
|
869
|
-
return
|
|
850
|
+
let f = U ? i.outerHTML : i.innerHTML;
|
|
851
|
+
return U && I["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && _($e, i.ownerDocument.doctype.name) && (f = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + f), V && (f = jn(f)), C && It ? D(f) : f;
|
|
870
852
|
}, t.setConfig = function() {
|
|
871
853
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
872
|
-
|
|
854
|
+
un(e), jt = !0, W = I, Mt = L;
|
|
873
855
|
}, t.clearConfig = function() {
|
|
874
|
-
|
|
856
|
+
Y = null, jt = !1, W = null, Mt = null, C = T, w = "";
|
|
875
857
|
}, t.isValidAttribute = function(e, t, n) {
|
|
876
|
-
|
|
877
|
-
let r =
|
|
878
|
-
return typeof n == "string" && (Jn(t, n) || !
|
|
858
|
+
Y || un({});
|
|
859
|
+
let r = J(e), i = J(t);
|
|
860
|
+
return typeof n == "string" && (Jn(t, n) || !B && _(it, n)) ? !1 : Un(r, i, n);
|
|
879
861
|
}, t.addHook = function(e, t) {
|
|
880
|
-
typeof t == "function" &&
|
|
862
|
+
typeof t == "function" && h(A, e) && de(A[e], t);
|
|
881
863
|
}, t.removeHook = function(e, t) {
|
|
882
|
-
if (
|
|
864
|
+
if (h(A, e)) {
|
|
883
865
|
if (t !== void 0) {
|
|
884
|
-
let n =
|
|
885
|
-
return n === -1 ? void 0 :
|
|
866
|
+
let n = le(A[e], t);
|
|
867
|
+
return n === -1 ? void 0 : pe(A[e], n, 1)[0];
|
|
886
868
|
}
|
|
887
|
-
return
|
|
869
|
+
return ue(A[e]);
|
|
888
870
|
}
|
|
889
871
|
}, t.removeHooks = function(e) {
|
|
890
|
-
|
|
872
|
+
h(A, e) && (A[e] = []);
|
|
891
873
|
}, t.removeAllHooks = function() {
|
|
892
|
-
|
|
874
|
+
A = ct();
|
|
893
875
|
}, t;
|
|
894
876
|
}
|
|
895
|
-
var
|
|
877
|
+
var C = dt(), w = {
|
|
896
878
|
min: {
|
|
897
879
|
r: 0,
|
|
898
880
|
g: 0,
|
|
@@ -929,9 +911,9 @@ var T = lt(), E = {
|
|
|
929
911
|
e /= 360, t /= 100, n /= 100;
|
|
930
912
|
let i = n < .5 ? n * (1 + t) : n + t - n * t, a = 2 * n - i;
|
|
931
913
|
switch (r) {
|
|
932
|
-
case "r": return
|
|
933
|
-
case "g": return
|
|
934
|
-
case "b": return
|
|
914
|
+
case "r": return w.hue2rgb(a, i, e + 1 / 3) * 255;
|
|
915
|
+
case "g": return w.hue2rgb(a, i, e) * 255;
|
|
916
|
+
case "b": return w.hue2rgb(a, i, e - 1 / 3) * 255;
|
|
935
917
|
}
|
|
936
918
|
},
|
|
937
919
|
rgb2hsl: ({ r: e, g: t, b: n }, r) => {
|
|
@@ -948,8 +930,8 @@ var T = lt(), E = {
|
|
|
948
930
|
default: return -1;
|
|
949
931
|
}
|
|
950
932
|
}
|
|
951
|
-
},
|
|
952
|
-
channel:
|
|
933
|
+
}, T = {
|
|
934
|
+
channel: w,
|
|
953
935
|
lang: {
|
|
954
936
|
clamp: (e, t, n) => t > n ? Math.min(t, Math.max(n, e)) : Math.min(n, Math.max(t, e)),
|
|
955
937
|
round: (e) => Math.round(e * 1e10) / 1e10
|
|
@@ -958,15 +940,15 @@ var T = lt(), E = {
|
|
|
958
940
|
let t = Math.round(e).toString(16);
|
|
959
941
|
return t.length > 1 ? t : `0${t}`;
|
|
960
942
|
} }
|
|
961
|
-
},
|
|
962
|
-
for (let e = 0; e <= 255; e++)
|
|
963
|
-
var
|
|
943
|
+
}, ft = {};
|
|
944
|
+
for (let e = 0; e <= 255; e++) ft[e] = T.unit.dec2hex(e);
|
|
945
|
+
var E = {
|
|
964
946
|
ALL: 0,
|
|
965
947
|
RGB: 1,
|
|
966
948
|
HSL: 2
|
|
967
|
-
},
|
|
949
|
+
}, pt = class {
|
|
968
950
|
constructor() {
|
|
969
|
-
this.type =
|
|
951
|
+
this.type = E.ALL;
|
|
970
952
|
}
|
|
971
953
|
get() {
|
|
972
954
|
return this.type;
|
|
@@ -976,70 +958,70 @@ var O = {
|
|
|
976
958
|
this.type = e;
|
|
977
959
|
}
|
|
978
960
|
reset() {
|
|
979
|
-
this.type =
|
|
961
|
+
this.type = E.ALL;
|
|
980
962
|
}
|
|
981
963
|
is(e) {
|
|
982
964
|
return this.type === e;
|
|
983
965
|
}
|
|
984
|
-
},
|
|
966
|
+
}, D = new class {
|
|
985
967
|
constructor(e, t) {
|
|
986
|
-
this.color = t, this.changed = !1, this.data = e, this.type = new
|
|
968
|
+
this.color = t, this.changed = !1, this.data = e, this.type = new pt();
|
|
987
969
|
}
|
|
988
970
|
set(e, t) {
|
|
989
|
-
return this.color = t, this.changed = !1, this.data = e, this.type.type =
|
|
971
|
+
return this.color = t, this.changed = !1, this.data = e, this.type.type = E.ALL, this;
|
|
990
972
|
}
|
|
991
973
|
_ensureHSL() {
|
|
992
974
|
let e = this.data, { h: t, s: n, l: r } = e;
|
|
993
|
-
t === void 0 && (e.h =
|
|
975
|
+
t === void 0 && (e.h = T.channel.rgb2hsl(e, "h")), n === void 0 && (e.s = T.channel.rgb2hsl(e, "s")), r === void 0 && (e.l = T.channel.rgb2hsl(e, "l"));
|
|
994
976
|
}
|
|
995
977
|
_ensureRGB() {
|
|
996
978
|
let e = this.data, { r: t, g: n, b: r } = e;
|
|
997
|
-
t === void 0 && (e.r =
|
|
979
|
+
t === void 0 && (e.r = T.channel.hsl2rgb(e, "r")), n === void 0 && (e.g = T.channel.hsl2rgb(e, "g")), r === void 0 && (e.b = T.channel.hsl2rgb(e, "b"));
|
|
998
980
|
}
|
|
999
981
|
get r() {
|
|
1000
982
|
let e = this.data, t = e.r;
|
|
1001
|
-
return !this.type.is(
|
|
983
|
+
return !this.type.is(E.HSL) && t !== void 0 ? t : (this._ensureHSL(), T.channel.hsl2rgb(e, "r"));
|
|
1002
984
|
}
|
|
1003
985
|
get g() {
|
|
1004
986
|
let e = this.data, t = e.g;
|
|
1005
|
-
return !this.type.is(
|
|
987
|
+
return !this.type.is(E.HSL) && t !== void 0 ? t : (this._ensureHSL(), T.channel.hsl2rgb(e, "g"));
|
|
1006
988
|
}
|
|
1007
989
|
get b() {
|
|
1008
990
|
let e = this.data, t = e.b;
|
|
1009
|
-
return !this.type.is(
|
|
991
|
+
return !this.type.is(E.HSL) && t !== void 0 ? t : (this._ensureHSL(), T.channel.hsl2rgb(e, "b"));
|
|
1010
992
|
}
|
|
1011
993
|
get h() {
|
|
1012
994
|
let e = this.data, t = e.h;
|
|
1013
|
-
return !this.type.is(
|
|
995
|
+
return !this.type.is(E.RGB) && t !== void 0 ? t : (this._ensureRGB(), T.channel.rgb2hsl(e, "h"));
|
|
1014
996
|
}
|
|
1015
997
|
get s() {
|
|
1016
998
|
let e = this.data, t = e.s;
|
|
1017
|
-
return !this.type.is(
|
|
999
|
+
return !this.type.is(E.RGB) && t !== void 0 ? t : (this._ensureRGB(), T.channel.rgb2hsl(e, "s"));
|
|
1018
1000
|
}
|
|
1019
1001
|
get l() {
|
|
1020
1002
|
let e = this.data, t = e.l;
|
|
1021
|
-
return !this.type.is(
|
|
1003
|
+
return !this.type.is(E.RGB) && t !== void 0 ? t : (this._ensureRGB(), T.channel.rgb2hsl(e, "l"));
|
|
1022
1004
|
}
|
|
1023
1005
|
get a() {
|
|
1024
1006
|
return this.data.a;
|
|
1025
1007
|
}
|
|
1026
1008
|
set r(e) {
|
|
1027
|
-
this.type.set(
|
|
1009
|
+
this.type.set(E.RGB), this.changed = !0, this.data.r = e;
|
|
1028
1010
|
}
|
|
1029
1011
|
set g(e) {
|
|
1030
|
-
this.type.set(
|
|
1012
|
+
this.type.set(E.RGB), this.changed = !0, this.data.g = e;
|
|
1031
1013
|
}
|
|
1032
1014
|
set b(e) {
|
|
1033
|
-
this.type.set(
|
|
1015
|
+
this.type.set(E.RGB), this.changed = !0, this.data.b = e;
|
|
1034
1016
|
}
|
|
1035
1017
|
set h(e) {
|
|
1036
|
-
this.type.set(
|
|
1018
|
+
this.type.set(E.HSL), this.changed = !0, this.data.h = e;
|
|
1037
1019
|
}
|
|
1038
1020
|
set s(e) {
|
|
1039
|
-
this.type.set(
|
|
1021
|
+
this.type.set(E.HSL), this.changed = !0, this.data.s = e;
|
|
1040
1022
|
}
|
|
1041
1023
|
set l(e) {
|
|
1042
|
-
this.type.set(
|
|
1024
|
+
this.type.set(E.HSL), this.changed = !0, this.data.l = e;
|
|
1043
1025
|
}
|
|
1044
1026
|
set a(e) {
|
|
1045
1027
|
this.changed = !0, this.data.a = e;
|
|
@@ -1049,14 +1031,14 @@ var O = {
|
|
|
1049
1031
|
g: 0,
|
|
1050
1032
|
b: 0,
|
|
1051
1033
|
a: 0
|
|
1052
|
-
}, "transparent"),
|
|
1034
|
+
}, "transparent"), mt = {
|
|
1053
1035
|
re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,
|
|
1054
1036
|
parse: (e) => {
|
|
1055
1037
|
if (e.charCodeAt(0) !== 35) return;
|
|
1056
|
-
let t = e.match(
|
|
1038
|
+
let t = e.match(mt.re);
|
|
1057
1039
|
if (!t) return;
|
|
1058
1040
|
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;
|
|
1059
|
-
return
|
|
1041
|
+
return D.set({
|
|
1060
1042
|
r: (r >> c * (l + 3) & u) * s,
|
|
1061
1043
|
g: (r >> c * (l + 2) & u) * s,
|
|
1062
1044
|
b: (r >> c * (l + 1) & u) * s,
|
|
@@ -1065,41 +1047,41 @@ var O = {
|
|
|
1065
1047
|
},
|
|
1066
1048
|
stringify: (e) => {
|
|
1067
1049
|
let { r: t, g: n, b: r, a: i } = e;
|
|
1068
|
-
return i < 1 ? `#${
|
|
1050
|
+
return i < 1 ? `#${ft[Math.round(t)]}${ft[Math.round(n)]}${ft[Math.round(r)]}${ft[Math.round(i * 255)]}` : `#${ft[Math.round(t)]}${ft[Math.round(n)]}${ft[Math.round(r)]}`;
|
|
1069
1051
|
}
|
|
1070
|
-
},
|
|
1052
|
+
}, ht = {
|
|
1071
1053
|
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,
|
|
1072
1054
|
hueRe: /^(.+?)(deg|grad|rad|turn)$/i,
|
|
1073
1055
|
_hue2deg: (e) => {
|
|
1074
|
-
let t = e.match(
|
|
1056
|
+
let t = e.match(ht.hueRe);
|
|
1075
1057
|
if (t) {
|
|
1076
1058
|
let [, e, n] = t;
|
|
1077
1059
|
switch (n) {
|
|
1078
|
-
case "grad": return
|
|
1079
|
-
case "rad": return
|
|
1080
|
-
case "turn": return
|
|
1060
|
+
case "grad": return T.channel.clamp.h(parseFloat(e) * .9);
|
|
1061
|
+
case "rad": return T.channel.clamp.h(parseFloat(e) * 180 / Math.PI);
|
|
1062
|
+
case "turn": return T.channel.clamp.h(parseFloat(e) * 360);
|
|
1081
1063
|
}
|
|
1082
1064
|
}
|
|
1083
|
-
return
|
|
1065
|
+
return T.channel.clamp.h(parseFloat(e));
|
|
1084
1066
|
},
|
|
1085
1067
|
parse: (e) => {
|
|
1086
1068
|
let t = e.charCodeAt(0);
|
|
1087
1069
|
if (t !== 104 && t !== 72) return;
|
|
1088
|
-
let n = e.match(
|
|
1070
|
+
let n = e.match(ht.re);
|
|
1089
1071
|
if (!n) return;
|
|
1090
1072
|
let [, r, i, a, o, s] = n;
|
|
1091
|
-
return
|
|
1092
|
-
h:
|
|
1093
|
-
s:
|
|
1094
|
-
l:
|
|
1095
|
-
a: o ?
|
|
1073
|
+
return D.set({
|
|
1074
|
+
h: ht._hue2deg(r),
|
|
1075
|
+
s: T.channel.clamp.s(parseFloat(i)),
|
|
1076
|
+
l: T.channel.clamp.l(parseFloat(a)),
|
|
1077
|
+
a: o ? T.channel.clamp.a(s ? parseFloat(o) / 100 : parseFloat(o)) : 1
|
|
1096
1078
|
}, e);
|
|
1097
1079
|
},
|
|
1098
1080
|
stringify: (e) => {
|
|
1099
1081
|
let { h: t, s: n, l: r, a: i } = e;
|
|
1100
|
-
return i < 1 ? `hsla(${
|
|
1082
|
+
return i < 1 ? `hsla(${T.lang.round(t)}, ${T.lang.round(n)}%, ${T.lang.round(r)}%, ${i})` : `hsl(${T.lang.round(t)}, ${T.lang.round(n)}%, ${T.lang.round(r)}%)`;
|
|
1101
1083
|
}
|
|
1102
|
-
},
|
|
1084
|
+
}, gt = {
|
|
1103
1085
|
colors: {
|
|
1104
1086
|
aliceblue: "#f0f8ff",
|
|
1105
1087
|
antiquewhite: "#faebd7",
|
|
@@ -1251,80 +1233,137 @@ var O = {
|
|
|
1251
1233
|
},
|
|
1252
1234
|
parse: (e) => {
|
|
1253
1235
|
e = e.toLowerCase();
|
|
1254
|
-
let t =
|
|
1255
|
-
if (t) return
|
|
1236
|
+
let t = gt.colors[e];
|
|
1237
|
+
if (t) return mt.parse(t);
|
|
1256
1238
|
},
|
|
1257
1239
|
stringify: (e) => {
|
|
1258
|
-
let t =
|
|
1259
|
-
for (let e in
|
|
1240
|
+
let t = mt.stringify(e);
|
|
1241
|
+
for (let e in gt.colors) if (gt.colors[e] === t) return e;
|
|
1260
1242
|
}
|
|
1261
|
-
},
|
|
1243
|
+
}, _t = {
|
|
1262
1244
|
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,
|
|
1263
1245
|
parse: (e) => {
|
|
1264
1246
|
let t = e.charCodeAt(0);
|
|
1265
1247
|
if (t !== 114 && t !== 82) return;
|
|
1266
|
-
let n = e.match(
|
|
1248
|
+
let n = e.match(_t.re);
|
|
1267
1249
|
if (!n) return;
|
|
1268
1250
|
let [, r, i, a, o, s, c, l, u] = n;
|
|
1269
|
-
return
|
|
1270
|
-
r:
|
|
1271
|
-
g:
|
|
1272
|
-
b:
|
|
1273
|
-
a: l ?
|
|
1251
|
+
return D.set({
|
|
1252
|
+
r: T.channel.clamp.r(i ? parseFloat(r) * 2.55 : parseFloat(r)),
|
|
1253
|
+
g: T.channel.clamp.g(o ? parseFloat(a) * 2.55 : parseFloat(a)),
|
|
1254
|
+
b: T.channel.clamp.b(c ? parseFloat(s) * 2.55 : parseFloat(s)),
|
|
1255
|
+
a: l ? T.channel.clamp.a(u ? parseFloat(l) / 100 : parseFloat(l)) : 1
|
|
1274
1256
|
}, e);
|
|
1275
1257
|
},
|
|
1276
1258
|
stringify: (e) => {
|
|
1277
1259
|
let { r: t, g: n, b: r, a: i } = e;
|
|
1278
|
-
return i < 1 ? `rgba(${
|
|
1260
|
+
return i < 1 ? `rgba(${T.lang.round(t)}, ${T.lang.round(n)}, ${T.lang.round(r)}, ${T.lang.round(i)})` : `rgb(${T.lang.round(t)}, ${T.lang.round(n)}, ${T.lang.round(r)})`;
|
|
1279
1261
|
}
|
|
1280
|
-
},
|
|
1262
|
+
}, O = {
|
|
1281
1263
|
format: {
|
|
1282
|
-
keyword:
|
|
1283
|
-
hex:
|
|
1284
|
-
rgb:
|
|
1285
|
-
rgba:
|
|
1286
|
-
hsl:
|
|
1287
|
-
hsla:
|
|
1264
|
+
keyword: gt,
|
|
1265
|
+
hex: mt,
|
|
1266
|
+
rgb: _t,
|
|
1267
|
+
rgba: _t,
|
|
1268
|
+
hsl: ht,
|
|
1269
|
+
hsla: ht
|
|
1288
1270
|
},
|
|
1289
1271
|
parse: (e) => {
|
|
1290
1272
|
if (typeof e != "string") return e;
|
|
1291
|
-
let t =
|
|
1273
|
+
let t = mt.parse(e) || _t.parse(e) || ht.parse(e) || gt.parse(e);
|
|
1292
1274
|
if (t) return t;
|
|
1293
1275
|
throw Error(`Unsupported color format: "${e}"`);
|
|
1294
1276
|
},
|
|
1295
|
-
stringify: (e) => !e.changed && e.color ? e.color : e.type.is(
|
|
1296
|
-
},
|
|
1297
|
-
let n =
|
|
1298
|
-
for (let e in t) n[e] =
|
|
1299
|
-
return
|
|
1300
|
-
},
|
|
1301
|
-
if (typeof e != "number") return
|
|
1302
|
-
let i =
|
|
1303
|
-
r:
|
|
1304
|
-
g:
|
|
1305
|
-
b:
|
|
1306
|
-
a:
|
|
1277
|
+
stringify: (e) => !e.changed && e.color ? e.color : e.type.is(E.HSL) || e.data.r === void 0 ? ht.stringify(e) : e.a < 1 || !Number.isInteger(e.r) || !Number.isInteger(e.g) || !Number.isInteger(e.b) ? _t.stringify(e) : mt.stringify(e)
|
|
1278
|
+
}, vt = (e, t) => {
|
|
1279
|
+
let n = O.parse(e);
|
|
1280
|
+
for (let e in t) n[e] = T.channel.clamp[e](t[e]);
|
|
1281
|
+
return O.stringify(n);
|
|
1282
|
+
}, k = (e, t, n = 0, r = 1) => {
|
|
1283
|
+
if (typeof e != "number") return vt(e, { a: t });
|
|
1284
|
+
let i = D.set({
|
|
1285
|
+
r: T.channel.clamp.r(e),
|
|
1286
|
+
g: T.channel.clamp.g(t),
|
|
1287
|
+
b: T.channel.clamp.b(n),
|
|
1288
|
+
a: T.channel.clamp.a(r)
|
|
1307
1289
|
});
|
|
1308
|
-
return
|
|
1309
|
-
},
|
|
1310
|
-
let { r: t, g: n, b: r } =
|
|
1311
|
-
return
|
|
1312
|
-
},
|
|
1313
|
-
let r =
|
|
1314
|
-
return i !== a && (r[t] = a),
|
|
1315
|
-
},
|
|
1316
|
-
let n =
|
|
1290
|
+
return O.stringify(i);
|
|
1291
|
+
}, yt = (e) => {
|
|
1292
|
+
let { r: t, g: n, b: r } = O.parse(e), i = .2126 * T.channel.toLinear(t) + .7152 * T.channel.toLinear(n) + .0722 * T.channel.toLinear(r);
|
|
1293
|
+
return T.lang.round(i);
|
|
1294
|
+
}, A = (e) => yt(e) >= .5, j = (e) => !A(e), bt = (e, t, n) => {
|
|
1295
|
+
let r = O.parse(e), i = r[t], a = T.channel.clamp[t](i + n);
|
|
1296
|
+
return i !== a && (r[t] = a), O.stringify(r);
|
|
1297
|
+
}, M = (e, t) => bt(e, "l", t), N = (e, t) => bt(e, "l", -t), P = (e, t) => {
|
|
1298
|
+
let n = O.parse(e), r = {};
|
|
1317
1299
|
for (let e in t) t[e] && (r[e] = n[e] + t[e]);
|
|
1318
|
-
return
|
|
1319
|
-
},
|
|
1320
|
-
let { r, g: i, b: a, a: o } =
|
|
1321
|
-
return
|
|
1322
|
-
},
|
|
1323
|
-
let n =
|
|
1324
|
-
return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b,
|
|
1325
|
-
},
|
|
1300
|
+
return vt(e, r);
|
|
1301
|
+
}, xt = (e, t, n = 50) => {
|
|
1302
|
+
let { r, g: i, b: a, a: o } = O.parse(e), { r: s, g: c, b: l, a: u } = O.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;
|
|
1303
|
+
return k(r * te + s * ne, i * te + c * ne, a * te + l * ne, o * d + u * (1 - d));
|
|
1304
|
+
}, F = (e, t = 100) => {
|
|
1305
|
+
let n = O.parse(e);
|
|
1306
|
+
return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b, xt(n, e, t);
|
|
1307
|
+
}, St = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, Ct = /\s/, I = /* @__PURE__ */ e((e) => {
|
|
1308
|
+
let t = "", n = 0, r = 0;
|
|
1309
|
+
for (; r < e.length;) {
|
|
1310
|
+
let i = e.indexOf("%%", r);
|
|
1311
|
+
if (i === -1) break;
|
|
1312
|
+
let a = e.indexOf("\n", i);
|
|
1313
|
+
if (a === -1) break;
|
|
1314
|
+
let o = i;
|
|
1315
|
+
for (; o > n && Ct.test(e[o - 1]);) o--;
|
|
1316
|
+
t += e.slice(n, o) + "\n", n = a + 1, r = n;
|
|
1317
|
+
}
|
|
1318
|
+
return t + e.slice(n);
|
|
1319
|
+
}, "stripAnyComments"), wt = /* @__PURE__ */ e((e) => e === "\n" || e === "\r", "isLineBreak"), L = /* @__PURE__ */ e((e, t) => {
|
|
1320
|
+
let n = -1;
|
|
1321
|
+
for (let r = t; r < e.length && Ct.test(e[r]); r++) wt(e[r]) && (n = r);
|
|
1322
|
+
return n;
|
|
1323
|
+
}, "lastLineBreakInWhitespaceRun"), Tt = /* @__PURE__ */ e((t) => {
|
|
1324
|
+
let n = 0;
|
|
1325
|
+
for (; n < t.length && Ct.test(t[n]) && !wt(t[n]);) n++;
|
|
1326
|
+
let r = t.slice(0, n);
|
|
1327
|
+
if (!t.startsWith("---", n)) return;
|
|
1328
|
+
let i = [];
|
|
1329
|
+
for (let e = n + 3; e < t.length && Ct.test(t[e]); e++) wt(t[e]) && i.push(e);
|
|
1330
|
+
if (i.length === 0) return;
|
|
1331
|
+
let a = `${r}---`, o = /* @__PURE__ */ e((e) => wt(t[e]) && t.startsWith(a, e + 1) ? L(t, e + 1 + a.length) : -1, "closingEnd"), s = i[0] + 1, c = -1;
|
|
1332
|
+
for (let e = s; e < t.length; e++) o(e) !== -1 && (c = e);
|
|
1333
|
+
if (c === -1) return;
|
|
1334
|
+
let l = i[0];
|
|
1335
|
+
for (let e of i) e < c && (l = e);
|
|
1336
|
+
let u = l + 1;
|
|
1337
|
+
for (let e = u; e <= c; e++) {
|
|
1338
|
+
let n = o(e);
|
|
1339
|
+
if (n !== -1) return {
|
|
1340
|
+
indent: r,
|
|
1341
|
+
body: t.slice(u, e),
|
|
1342
|
+
length: n + 1
|
|
1343
|
+
};
|
|
1344
|
+
}
|
|
1345
|
+
}, "matchFrontMatter"), R = class extends Error {
|
|
1346
|
+
static {
|
|
1347
|
+
e(this, "UnknownDiagramError");
|
|
1348
|
+
}
|
|
1349
|
+
constructor(e) {
|
|
1350
|
+
super(e), this.name = "UnknownDiagramError";
|
|
1351
|
+
}
|
|
1352
|
+
}, z = {}, Et = /* @__PURE__ */ e(function(e, t) {
|
|
1353
|
+
let n = Tt(e);
|
|
1354
|
+
e = I((n ? e.slice(n.length) : e).replace(St, ""));
|
|
1355
|
+
for (let [n, { detector: r }] of Object.entries(z)) if (r(e, t)) return n;
|
|
1356
|
+
throw new R(`No diagram type detected matching given configuration for text: ${e}`);
|
|
1357
|
+
}, "detectType"), Dt = /* @__PURE__ */ e((...e) => {
|
|
1358
|
+
for (let { id: t, detector: n, loader: r } of e) Ot(t, n, r);
|
|
1359
|
+
}, "registerLazyLoadedDiagrams"), Ot = /* @__PURE__ */ e((e, t, n) => {
|
|
1360
|
+
z[e] && r.warn(`Detector with key ${e} already exists. Overwriting.`), z[e] = {
|
|
1361
|
+
detector: t,
|
|
1362
|
+
loader: n
|
|
1363
|
+
}, r.debug(`Detector with key ${e} added${n ? " with loader" : ""}`);
|
|
1364
|
+
}, "addDetector"), kt = /* @__PURE__ */ e((e) => z[e].loader, "getDiagramLoader"), At = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
1326
1365
|
let r = { depth: n };
|
|
1327
|
-
if (Array.isArray(t) && !Array.isArray(e)) return t.forEach((t) =>
|
|
1366
|
+
if (Array.isArray(t) && !Array.isArray(e)) return t.forEach((t) => At(e, t, r)), e;
|
|
1328
1367
|
if (Array.isArray(t) && Array.isArray(e)) return t.forEach((t) => {
|
|
1329
1368
|
e.includes(t) || e.push(t);
|
|
1330
1369
|
}), e;
|
|
@@ -1339,7 +1378,7 @@ var O = {
|
|
|
1339
1378
|
writable: !0,
|
|
1340
1379
|
enumerable: !0,
|
|
1341
1380
|
configurable: !0
|
|
1342
|
-
}), r[t] === void 0 && (r[t] = Array.isArray(i) ? [] : {}), typeof r[t] == "object" && (r[t] =
|
|
1381
|
+
}), r[t] === void 0 && (r[t] = Array.isArray(i) ? [] : {}), typeof r[t] == "object" && (r[t] = At(r[t], i, { depth: n - 1 }));
|
|
1343
1382
|
} else typeof r[t] != "object" && (Object.hasOwn(e, t) ? r[t] = i : Object.defineProperty(e, t, {
|
|
1344
1383
|
value: i,
|
|
1345
1384
|
writable: !0,
|
|
@@ -1349,73 +1388,76 @@ var O = {
|
|
|
1349
1388
|
});
|
|
1350
1389
|
}
|
|
1351
1390
|
return e;
|
|
1352
|
-
}, "assignWithDepth"),
|
|
1391
|
+
}, "assignWithDepth"), B = At, V = "#ffffff", H = "#f2f2f2", U = /* @__PURE__ */ e((e, t) => t ? P(e, {
|
|
1353
1392
|
s: -40,
|
|
1354
1393
|
l: 10
|
|
1355
|
-
}) :
|
|
1394
|
+
}) : P(e, {
|
|
1356
1395
|
s: -40,
|
|
1357
1396
|
l: -10
|
|
1358
|
-
}), "mkBorder"),
|
|
1397
|
+
}), "mkBorder"), jt = /* @__PURE__ */ e((e) => typeof e == "object" && !!e && !Array.isArray(e), "isPlainObject"), W = /* @__PURE__ */ e((e, t) => jt(e) && jt(t) ? {
|
|
1398
|
+
...e,
|
|
1399
|
+
...t
|
|
1400
|
+
} : t, "applyOverride"), Mt = class {
|
|
1359
1401
|
static {
|
|
1360
|
-
|
|
1402
|
+
e(this, "Theme");
|
|
1361
1403
|
}
|
|
1362
1404
|
constructor() {
|
|
1363
1405
|
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))";
|
|
1364
1406
|
}
|
|
1365
1407
|
updateColors() {
|
|
1366
|
-
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor ||
|
|
1408
|
+
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || P(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || P(this.primaryColor, {
|
|
1367
1409
|
h: 180,
|
|
1368
1410
|
l: 5
|
|
1369
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
1411
|
+
}), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || F(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || F(this.tertiaryColor), this.lineColor = this.lineColor || F(this.background), this.arrowheadColor = this.arrowheadColor || F(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 ? N(this.secondaryColor, 30) : this.secondaryColor), this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || N(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || F(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 || M(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 || N(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || N(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || M(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || M(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 || P(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || P(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || P(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || P(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || P(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || P(this.primaryColor, {
|
|
1370
1412
|
h: 210,
|
|
1371
1413
|
l: 150
|
|
1372
|
-
}), this.cScale9 = this.cScale9 ||
|
|
1373
|
-
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
1374
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1375
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
1414
|
+
}), this.cScale9 = this.cScale9 || P(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || P(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || P(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 75);
|
|
1415
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 25);
|
|
1416
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e]);
|
|
1417
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || M(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10);
|
|
1376
1418
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
1377
1419
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1378
1420
|
let e = this.darkMode ? -4 : -1;
|
|
1379
|
-
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] ||
|
|
1421
|
+
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || P(this.mainBkg, {
|
|
1380
1422
|
h: 180,
|
|
1381
1423
|
s: -15,
|
|
1382
1424
|
l: e * (5 + t * 3)
|
|
1383
|
-
}), this["surfacePeer" + t] = this["surfacePeer" + t] ||
|
|
1425
|
+
}), this["surfacePeer" + t] = this["surfacePeer" + t] || P(this.mainBkg, {
|
|
1384
1426
|
h: 180,
|
|
1385
1427
|
s: -15,
|
|
1386
1428
|
l: e * (8 + t * 3)
|
|
1387
1429
|
});
|
|
1388
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 ||
|
|
1430
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || P(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || P(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || P(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || P(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || P(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || P(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 || P(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || P(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || P(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || P(this.primaryColor, {
|
|
1389
1431
|
h: 60,
|
|
1390
1432
|
l: -10
|
|
1391
|
-
}), this.pie8 = this.pie8 ||
|
|
1433
|
+
}), this.pie8 = this.pie8 || P(this.primaryColor, {
|
|
1392
1434
|
h: -60,
|
|
1393
1435
|
l: -10
|
|
1394
|
-
}), this.pie9 = this.pie9 ||
|
|
1436
|
+
}), this.pie9 = this.pie9 || P(this.primaryColor, {
|
|
1395
1437
|
h: 120,
|
|
1396
1438
|
l: 0
|
|
1397
|
-
}), this.pie10 = this.pie10 ||
|
|
1439
|
+
}), this.pie10 = this.pie10 || P(this.primaryColor, {
|
|
1398
1440
|
h: 60,
|
|
1399
1441
|
l: -20
|
|
1400
|
-
}), this.pie11 = this.pie11 ||
|
|
1442
|
+
}), this.pie11 = this.pie11 || P(this.primaryColor, {
|
|
1401
1443
|
h: -60,
|
|
1402
1444
|
l: -20
|
|
1403
|
-
}), this.pie12 = this.pie12 ||
|
|
1445
|
+
}), this.pie12 = this.pie12 || P(this.primaryColor, {
|
|
1404
1446
|
h: 120,
|
|
1405
1447
|
l: -10
|
|
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 ??
|
|
1448
|
+
}), 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 ?? P(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? P(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? P(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? P(this.primaryColor, {
|
|
1407
1449
|
h: 60,
|
|
1408
1450
|
l: -30
|
|
1409
|
-
}), this.venn5 = this.venn5 ??
|
|
1451
|
+
}), this.venn5 = this.venn5 ?? P(this.primaryColor, {
|
|
1410
1452
|
h: -60,
|
|
1411
1453
|
l: -30
|
|
1412
|
-
}), this.venn6 = this.venn6 ??
|
|
1454
|
+
}), this.venn6 = this.venn6 ?? P(this.secondaryColor, {
|
|
1413
1455
|
h: 60,
|
|
1414
1456
|
l: -30
|
|
1415
|
-
}), this.venn7 = this.venn7 ??
|
|
1457
|
+
}), this.venn7 = this.venn7 ?? P(this.primaryColor, {
|
|
1416
1458
|
h: 120,
|
|
1417
1459
|
l: -30
|
|
1418
|
-
}), this.venn8 = this.venn8 ??
|
|
1460
|
+
}), this.venn8 = this.venn8 ?? P(this.secondaryColor, {
|
|
1419
1461
|
h: 120,
|
|
1420
1462
|
l: -30
|
|
1421
1463
|
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
|
|
@@ -1458,31 +1500,31 @@ var O = {
|
|
|
1458
1500
|
annotationStroke: this.wardley?.annotationStroke || this.lineColor,
|
|
1459
1501
|
annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
|
|
1460
1502
|
annotationFill: this.wardley?.annotationFill || this.background
|
|
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 ||
|
|
1503
|
+
}, 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 || P(this.primaryColor, {
|
|
1462
1504
|
r: 5,
|
|
1463
1505
|
g: 5,
|
|
1464
1506
|
b: 5
|
|
1465
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1507
|
+
}), this.quadrant3Fill = this.quadrant3Fill || P(this.primaryColor, {
|
|
1466
1508
|
r: 10,
|
|
1467
1509
|
g: 10,
|
|
1468
1510
|
b: 10
|
|
1469
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1511
|
+
}), this.quadrant4Fill = this.quadrant4Fill || P(this.primaryColor, {
|
|
1470
1512
|
r: 15,
|
|
1471
1513
|
g: 15,
|
|
1472
1514
|
b: 15
|
|
1473
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1515
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
|
|
1474
1516
|
r: -5,
|
|
1475
1517
|
g: -5,
|
|
1476
1518
|
b: -5
|
|
1477
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1519
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
|
|
1478
1520
|
r: -10,
|
|
1479
1521
|
g: -10,
|
|
1480
1522
|
b: -10
|
|
1481
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1523
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
|
|
1482
1524
|
r: -15,
|
|
1483
1525
|
g: -15,
|
|
1484
1526
|
b: -15
|
|
1485
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1527
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(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 = {
|
|
1486
1528
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1487
1529
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1488
1530
|
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
@@ -1496,7 +1538,7 @@ var O = {
|
|
|
1496
1538
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1497
1539
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1498
1540
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
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 ?
|
|
1541
|
+
}, 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 ? N(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 || P(this.primaryColor, { h: -30 }), this.git4 = this.git4 || P(this.primaryColor, { h: -60 }), this.git5 = this.git5 || P(this.primaryColor, { h: -90 }), this.git6 = this.git6 || P(this.primaryColor, { h: 60 }), this.git7 = this.git7 || P(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = M(this.git0, 25), this.git1 = M(this.git1, 25), this.git2 = M(this.git2, 25), this.git3 = M(this.git3, 25), this.git4 = M(this.git4, 25), this.git5 = M(this.git5, 25), this.git6 = M(this.git6, 25), this.git7 = M(this.git7, 25)) : (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)), this.gitInv0 = this.gitInv0 || F(this.git0), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
|
|
1500
1542
|
}
|
|
1501
1543
|
calculate(e) {
|
|
1502
1544
|
if (typeof e != "object") {
|
|
@@ -1507,28 +1549,28 @@ var O = {
|
|
|
1507
1549
|
t.forEach((t) => {
|
|
1508
1550
|
this[t] = e[t];
|
|
1509
1551
|
}), this.updateColors(), t.forEach((t) => {
|
|
1510
|
-
this[t] = e[t];
|
|
1511
|
-
});
|
|
1552
|
+
this[t] = W(this[t], e[t]);
|
|
1553
|
+
}), Object.hasOwn(e, "nodeBorder") && !Object.hasOwn(e, "useGradient") && (this.useGradient = !1);
|
|
1512
1554
|
}
|
|
1513
|
-
},
|
|
1514
|
-
let t = new
|
|
1555
|
+
}, Nt = /* @__PURE__ */ e((e) => {
|
|
1556
|
+
let t = new Mt();
|
|
1515
1557
|
return t.calculate(e), t;
|
|
1516
|
-
}, "getThemeVariables"),
|
|
1558
|
+
}, "getThemeVariables"), Pt = class {
|
|
1517
1559
|
static {
|
|
1518
|
-
|
|
1560
|
+
e(this, "Theme");
|
|
1519
1561
|
}
|
|
1520
1562
|
constructor() {
|
|
1521
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor =
|
|
1563
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = M(this.primaryColor, 16), this.tertiaryColor = P(this.primaryColor, { h: -160 }), this.primaryBorderColor = F(this.background), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = F(this.primaryColor), this.secondaryTextColor = F(this.secondaryColor), this.tertiaryTextColor = F(this.tertiaryColor), this.lineColor = F(this.background), this.textColor = F(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = M(F("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = k(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 = N("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = N(this.sectionBkgColor, 10), this.taskBorderColor = k(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = k(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 || M(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || N(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";
|
|
1522
1564
|
}
|
|
1523
1565
|
updateColors() {
|
|
1524
|
-
this.secondBkg =
|
|
1525
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1526
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
1527
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
1566
|
+
this.secondBkg = M(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 = M(this.labelBackground, 25), this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 = M(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 = F(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 = P(this.primaryColor, { h: 64 }), this.fillType3 = P(this.secondaryColor, { h: 64 }), this.fillType4 = P(this.primaryColor, { h: -64 }), this.fillType5 = P(this.secondaryColor, { h: -64 }), this.fillType6 = P(this.primaryColor, { h: 128 }), this.fillType7 = P(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 || P(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || P(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || P(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || P(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || P(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || P(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || P(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || P(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || P(this.primaryColor, { h: 330 });
|
|
1567
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e]);
|
|
1568
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || M(this["cScale" + e], 10);
|
|
1569
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || P(this.mainBkg, {
|
|
1528
1570
|
h: 30,
|
|
1529
1571
|
s: -30,
|
|
1530
1572
|
l: -(-10 + e * 4)
|
|
1531
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
1573
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || P(this.mainBkg, {
|
|
1532
1574
|
h: 30,
|
|
1533
1575
|
s: -30,
|
|
1534
1576
|
l: -(-7 + e * 4)
|
|
@@ -1537,7 +1579,7 @@ var O = {
|
|
|
1537
1579
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1538
1580
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
|
|
1539
1581
|
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";
|
|
1540
|
-
for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ??
|
|
1582
|
+
for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? M(this["cScale" + e], 30);
|
|
1541
1583
|
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
|
|
1542
1584
|
domainFontSize: this.cynefin?.domainFontSize || 16,
|
|
1543
1585
|
itemFontSize: this.cynefin?.itemFontSize || 12,
|
|
@@ -1554,31 +1596,31 @@ var O = {
|
|
|
1554
1596
|
confusionBg: this.cynefin?.confusionBg || "#4A148C",
|
|
1555
1597
|
textColor: this.cynefin?.textColor || this.textColor,
|
|
1556
1598
|
labelColor: this.cynefin?.labelColor || this.primaryTextColor
|
|
1557
|
-
}, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
1599
|
+
}, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || P(this.primaryColor, {
|
|
1558
1600
|
r: 5,
|
|
1559
1601
|
g: 5,
|
|
1560
1602
|
b: 5
|
|
1561
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1603
|
+
}), this.quadrant3Fill = this.quadrant3Fill || P(this.primaryColor, {
|
|
1562
1604
|
r: 10,
|
|
1563
1605
|
g: 10,
|
|
1564
1606
|
b: 10
|
|
1565
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1607
|
+
}), this.quadrant4Fill = this.quadrant4Fill || P(this.primaryColor, {
|
|
1566
1608
|
r: 15,
|
|
1567
1609
|
g: 15,
|
|
1568
1610
|
b: 15
|
|
1569
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1611
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
|
|
1570
1612
|
r: -5,
|
|
1571
1613
|
g: -5,
|
|
1572
1614
|
b: -5
|
|
1573
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1615
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
|
|
1574
1616
|
r: -10,
|
|
1575
1617
|
g: -10,
|
|
1576
1618
|
b: -10
|
|
1577
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1619
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
|
|
1578
1620
|
r: -15,
|
|
1579
1621
|
g: -15,
|
|
1580
1622
|
b: -15
|
|
1581
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1623
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(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 = {
|
|
1582
1624
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1583
1625
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1584
1626
|
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
@@ -1623,7 +1665,7 @@ var O = {
|
|
|
1623
1665
|
annotationStroke: this.wardley?.annotationStroke || this.lineColor,
|
|
1624
1666
|
annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
|
|
1625
1667
|
annotationFill: this.wardley?.annotationFill || this.mainBkg
|
|
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 ?
|
|
1668
|
+
}, 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 ? N(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = M(this.secondaryColor, 20), this.git1 = M(this.pie2 || this.secondaryColor, 20), this.git2 = M(this.pie3 || this.tertiaryColor, 20), this.git3 = M(this.pie4 || P(this.primaryColor, { h: -30 }), 20), this.git4 = M(this.pie5 || P(this.primaryColor, { h: -60 }), 20), this.git5 = M(this.pie6 || P(this.primaryColor, { h: -90 }), 10), this.git6 = M(this.pie7 || P(this.primaryColor, { h: 60 }), 10), this.git7 = M(this.pie8 || P(this.primaryColor, { h: 120 }), 20), this.gitInv0 = this.gitInv0 || F(this.git0), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || F(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || F(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 || M("#5a3d5c", 10), this.emProcessorStroke = this.emProcessorStroke || "#8a6d8c", this.emReadModelFill = this.emReadModelFill || M("#3d5a2d", 10), this.emReadModelStroke = this.emReadModelStroke || "#6d8c5c", this.emCommandFill = this.emCommandFill || M("#2d3d5a", 10), this.emCommandStroke = this.emCommandStroke || "#5c6d8c", this.emEventFill = this.emEventFill || M("#5a452d", 10), this.emEventStroke = this.emEventStroke || "#8c755c", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || M(this.background, 5), this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || M(this.background, 12), this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || M(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || M(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
|
|
1627
1669
|
}
|
|
1628
1670
|
calculate(e) {
|
|
1629
1671
|
if (typeof e != "object") {
|
|
@@ -1634,65 +1676,65 @@ var O = {
|
|
|
1634
1676
|
t.forEach((t) => {
|
|
1635
1677
|
this[t] = e[t];
|
|
1636
1678
|
}), this.updateColors(), t.forEach((t) => {
|
|
1637
|
-
this[t] = e[t];
|
|
1679
|
+
this[t] = W(this[t], e[t]);
|
|
1638
1680
|
});
|
|
1639
1681
|
}
|
|
1640
|
-
},
|
|
1641
|
-
let t = new
|
|
1682
|
+
}, Ft = /* @__PURE__ */ e((e) => {
|
|
1683
|
+
let t = new Pt();
|
|
1642
1684
|
return t.calculate(e), t;
|
|
1643
|
-
}, "getThemeVariables"),
|
|
1685
|
+
}, "getThemeVariables"), It = class {
|
|
1644
1686
|
static {
|
|
1645
|
-
|
|
1687
|
+
e(this, "Theme");
|
|
1646
1688
|
}
|
|
1647
1689
|
constructor() {
|
|
1648
|
-
this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor =
|
|
1690
|
+
this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = P(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = P(this.primaryColor, { h: -160 }), this.primaryBorderColor = U(this.primaryColor, this.darkMode), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = F(this.primaryColor), this.secondaryTextColor = F(this.secondaryColor), this.tertiaryTextColor = F(this.tertiaryColor), this.lineColor = F(this.background), this.textColor = F(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.primaryBorderColor = U(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 = k(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();
|
|
1649
1691
|
}
|
|
1650
1692
|
updateColors() {
|
|
1651
|
-
this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 ||
|
|
1652
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
1653
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1654
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
1693
|
+
this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || P(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || P(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || P(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || P(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || P(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || P(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || P(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || P(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || P(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || N(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || N(this.tertiaryColor, 40);
|
|
1694
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 25);
|
|
1695
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || P(this["cScale" + e], { h: 180 });
|
|
1696
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || P(this.mainBkg, {
|
|
1655
1697
|
h: 30,
|
|
1656
1698
|
l: -(5 + e * 5)
|
|
1657
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
1699
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || P(this.mainBkg, {
|
|
1658
1700
|
h: 30,
|
|
1659
1701
|
l: -(7 + e * 5)
|
|
1660
1702
|
});
|
|
1661
1703
|
if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
|
|
1662
|
-
this.cScaleLabel0 = this.cScaleLabel0 ||
|
|
1704
|
+
this.cScaleLabel0 = this.cScaleLabel0 || F(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || F(this.labelTextColor);
|
|
1663
1705
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.labelTextColor;
|
|
1664
1706
|
}
|
|
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 ||
|
|
1707
|
+
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.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || M(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || M(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 = P(this.primaryColor, { h: 64 }), this.fillType3 = P(this.secondaryColor, { h: 64 }), this.fillType4 = P(this.primaryColor, { h: -64 }), this.fillType5 = P(this.secondaryColor, { h: -64 }), this.fillType6 = P(this.primaryColor, { h: 128 }), this.fillType7 = P(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || P(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || P(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || P(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || P(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || P(this.primaryColor, {
|
|
1666
1708
|
h: 60,
|
|
1667
1709
|
l: -20
|
|
1668
|
-
}), this.pie8 = this.pie8 ||
|
|
1710
|
+
}), this.pie8 = this.pie8 || P(this.primaryColor, {
|
|
1669
1711
|
h: -60,
|
|
1670
1712
|
l: -40
|
|
1671
|
-
}), this.pie9 = this.pie9 ||
|
|
1713
|
+
}), this.pie9 = this.pie9 || P(this.primaryColor, {
|
|
1672
1714
|
h: 120,
|
|
1673
1715
|
l: -40
|
|
1674
|
-
}), this.pie10 = this.pie10 ||
|
|
1716
|
+
}), this.pie10 = this.pie10 || P(this.primaryColor, {
|
|
1675
1717
|
h: 60,
|
|
1676
1718
|
l: -40
|
|
1677
|
-
}), this.pie11 = this.pie11 ||
|
|
1719
|
+
}), this.pie11 = this.pie11 || P(this.primaryColor, {
|
|
1678
1720
|
h: -90,
|
|
1679
1721
|
l: -40
|
|
1680
|
-
}), this.pie12 = this.pie12 ||
|
|
1722
|
+
}), this.pie12 = this.pie12 || P(this.primaryColor, {
|
|
1681
1723
|
h: 120,
|
|
1682
1724
|
l: -30
|
|
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 ??
|
|
1725
|
+
}), 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 ?? P(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? P(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? P(this.tertiaryColor, { l: -40 }), this.venn4 = this.venn4 ?? P(this.primaryColor, {
|
|
1684
1726
|
h: 60,
|
|
1685
1727
|
l: -30
|
|
1686
|
-
}), this.venn5 = this.venn5 ??
|
|
1728
|
+
}), this.venn5 = this.venn5 ?? P(this.primaryColor, {
|
|
1687
1729
|
h: -60,
|
|
1688
1730
|
l: -30
|
|
1689
|
-
}), this.venn6 = this.venn6 ??
|
|
1731
|
+
}), this.venn6 = this.venn6 ?? P(this.secondaryColor, {
|
|
1690
1732
|
h: 60,
|
|
1691
1733
|
l: -30
|
|
1692
|
-
}), this.venn7 = this.venn7 ??
|
|
1734
|
+
}), this.venn7 = this.venn7 ?? P(this.primaryColor, {
|
|
1693
1735
|
h: 120,
|
|
1694
1736
|
l: -30
|
|
1695
|
-
}), this.venn8 = this.venn8 ??
|
|
1737
|
+
}), this.venn8 = this.venn8 ?? P(this.secondaryColor, {
|
|
1696
1738
|
h: 120,
|
|
1697
1739
|
l: -30
|
|
1698
1740
|
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
|
|
@@ -1711,31 +1753,31 @@ var O = {
|
|
|
1711
1753
|
confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
|
|
1712
1754
|
textColor: this.cynefin?.textColor || this.textColor,
|
|
1713
1755
|
labelColor: this.cynefin?.labelColor || this.primaryTextColor
|
|
1714
|
-
}, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
1756
|
+
}, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || P(this.primaryColor, {
|
|
1715
1757
|
r: 5,
|
|
1716
1758
|
g: 5,
|
|
1717
1759
|
b: 5
|
|
1718
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1760
|
+
}), this.quadrant3Fill = this.quadrant3Fill || P(this.primaryColor, {
|
|
1719
1761
|
r: 10,
|
|
1720
1762
|
g: 10,
|
|
1721
1763
|
b: 10
|
|
1722
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1764
|
+
}), this.quadrant4Fill = this.quadrant4Fill || P(this.primaryColor, {
|
|
1723
1765
|
r: 15,
|
|
1724
1766
|
g: 15,
|
|
1725
1767
|
b: 15
|
|
1726
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1768
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
|
|
1727
1769
|
r: -5,
|
|
1728
1770
|
g: -5,
|
|
1729
1771
|
b: -5
|
|
1730
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1772
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
|
|
1731
1773
|
r: -10,
|
|
1732
1774
|
g: -10,
|
|
1733
1775
|
b: -10
|
|
1734
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1776
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
|
|
1735
1777
|
r: -15,
|
|
1736
1778
|
g: -15,
|
|
1737
1779
|
b: -15
|
|
1738
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1780
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(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 = {
|
|
1739
1781
|
axisColor: this.radar?.axisColor || this.lineColor,
|
|
1740
1782
|
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
|
|
1741
1783
|
axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
|
|
@@ -1773,7 +1815,7 @@ var O = {
|
|
|
1773
1815
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1774
1816
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1775
1817
|
plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
|
|
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 ||
|
|
1818
|
+
}, 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 || P(this.primaryColor, { h: -30 }), this.git4 = this.git4 || P(this.primaryColor, { h: -60 }), this.git5 = this.git5 || P(this.primaryColor, { h: -90 }), this.git6 = this.git6 || P(this.primaryColor, { h: 60 }), this.git7 = this.git7 || P(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = M(this.git0, 25), this.git1 = M(this.git1, 25), this.git2 = M(this.git2, 25), this.git3 = M(this.git3, 25), this.git4 = M(this.git4, 25), this.git5 = M(this.git5, 25), this.git6 = M(this.git6, 25), this.git7 = M(this.git7, 25)) : (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)), this.gitInv0 = this.gitInv0 || N(F(this.git0), 25), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || F(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || F(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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
|
|
1777
1819
|
}
|
|
1778
1820
|
calculate(e) {
|
|
1779
1821
|
if (Object.keys(this).forEach((e) => {
|
|
@@ -1786,68 +1828,68 @@ var O = {
|
|
|
1786
1828
|
t.forEach((t) => {
|
|
1787
1829
|
this[t] = e[t];
|
|
1788
1830
|
}), this.updateColors(), t.forEach((t) => {
|
|
1789
|
-
this[t] = e[t];
|
|
1831
|
+
this[t] = W(this[t], e[t]);
|
|
1790
1832
|
});
|
|
1791
1833
|
}
|
|
1792
|
-
},
|
|
1793
|
-
let t = new
|
|
1834
|
+
}, Lt = /* @__PURE__ */ e((e) => {
|
|
1835
|
+
let t = new It();
|
|
1794
1836
|
return t.calculate(e), t;
|
|
1795
|
-
}, "getThemeVariables"),
|
|
1837
|
+
}, "getThemeVariables"), Rt = class {
|
|
1796
1838
|
static {
|
|
1797
|
-
|
|
1839
|
+
e(this, "Theme");
|
|
1798
1840
|
}
|
|
1799
1841
|
constructor() {
|
|
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 =
|
|
1842
|
+
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 = M("#cde498", 10), this.primaryBorderColor = U(this.primaryColor, this.darkMode), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = F(this.primaryColor), this.secondaryTextColor = F(this.secondaryColor), this.tertiaryTextColor = F(this.primaryColor), this.lineColor = F(this.background), this.textColor = F(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))";
|
|
1801
1843
|
}
|
|
1802
1844
|
updateColors() {
|
|
1803
|
-
this.actorBorder =
|
|
1804
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
1805
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1845
|
+
this.actorBorder = N(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 || P(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || P(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || P(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || P(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || P(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || P(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || P(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || P(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || P(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || N(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || N(this.tertiaryColor, 40);
|
|
1846
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 25);
|
|
1847
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || P(this["cScale" + e], { h: 180 });
|
|
1806
1848
|
this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
|
|
1807
1849
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1808
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
1850
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || P(this.mainBkg, {
|
|
1809
1851
|
h: 30,
|
|
1810
1852
|
s: -30,
|
|
1811
1853
|
l: -(5 + e * 5)
|
|
1812
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
1854
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || P(this.mainBkg, {
|
|
1813
1855
|
h: 30,
|
|
1814
1856
|
s: -30,
|
|
1815
1857
|
l: -(8 + e * 5)
|
|
1816
1858
|
});
|
|
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 ||
|
|
1859
|
+
this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || M(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || M(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 = P(this.primaryColor, { h: 64 }), this.fillType3 = P(this.secondaryColor, { h: 64 }), this.fillType4 = P(this.primaryColor, { h: -64 }), this.fillType5 = P(this.secondaryColor, { h: -64 }), this.fillType6 = P(this.primaryColor, { h: 128 }), this.fillType7 = P(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 || P(this.primaryColor, { l: -30 }), this.pie5 = this.pie5 || P(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || P(this.tertiaryColor, {
|
|
1818
1860
|
h: 40,
|
|
1819
1861
|
l: -40
|
|
1820
|
-
}), this.pie7 = this.pie7 ||
|
|
1862
|
+
}), this.pie7 = this.pie7 || P(this.primaryColor, {
|
|
1821
1863
|
h: 60,
|
|
1822
1864
|
l: -10
|
|
1823
|
-
}), this.pie8 = this.pie8 ||
|
|
1865
|
+
}), this.pie8 = this.pie8 || P(this.primaryColor, {
|
|
1824
1866
|
h: -60,
|
|
1825
1867
|
l: -10
|
|
1826
|
-
}), this.pie9 = this.pie9 ||
|
|
1868
|
+
}), this.pie9 = this.pie9 || P(this.primaryColor, {
|
|
1827
1869
|
h: 120,
|
|
1828
1870
|
l: 0
|
|
1829
|
-
}), this.pie10 = this.pie10 ||
|
|
1871
|
+
}), this.pie10 = this.pie10 || P(this.primaryColor, {
|
|
1830
1872
|
h: 60,
|
|
1831
1873
|
l: -50
|
|
1832
|
-
}), this.pie11 = this.pie11 ||
|
|
1874
|
+
}), this.pie11 = this.pie11 || P(this.primaryColor, {
|
|
1833
1875
|
h: -60,
|
|
1834
1876
|
l: -50
|
|
1835
|
-
}), this.pie12 = this.pie12 ||
|
|
1877
|
+
}), this.pie12 = this.pie12 || P(this.primaryColor, {
|
|
1836
1878
|
h: 120,
|
|
1837
1879
|
l: -50
|
|
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 ??
|
|
1880
|
+
}), 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 ?? P(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? P(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? P(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? P(this.primaryColor, {
|
|
1839
1881
|
h: 60,
|
|
1840
1882
|
l: -30
|
|
1841
|
-
}), this.venn5 = this.venn5 ??
|
|
1883
|
+
}), this.venn5 = this.venn5 ?? P(this.primaryColor, {
|
|
1842
1884
|
h: -60,
|
|
1843
1885
|
l: -30
|
|
1844
|
-
}), this.venn6 = this.venn6 ??
|
|
1886
|
+
}), this.venn6 = this.venn6 ?? P(this.secondaryColor, {
|
|
1845
1887
|
h: 60,
|
|
1846
1888
|
l: -30
|
|
1847
|
-
}), this.venn7 = this.venn7 ??
|
|
1889
|
+
}), this.venn7 = this.venn7 ?? P(this.primaryColor, {
|
|
1848
1890
|
h: 120,
|
|
1849
1891
|
l: -30
|
|
1850
|
-
}), this.venn8 = this.venn8 ??
|
|
1892
|
+
}), this.venn8 = this.venn8 ?? P(this.secondaryColor, {
|
|
1851
1893
|
h: 120,
|
|
1852
1894
|
l: -30
|
|
1853
1895
|
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
|
|
@@ -1866,31 +1908,31 @@ var O = {
|
|
|
1866
1908
|
confusionBg: this.cynefin?.confusionBg || "#D7CCC8",
|
|
1867
1909
|
textColor: this.cynefin?.textColor || this.textColor,
|
|
1868
1910
|
labelColor: this.cynefin?.labelColor || this.primaryTextColor
|
|
1869
|
-
}, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
1911
|
+
}, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || P(this.primaryColor, {
|
|
1870
1912
|
r: 5,
|
|
1871
1913
|
g: 5,
|
|
1872
1914
|
b: 5
|
|
1873
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1915
|
+
}), this.quadrant3Fill = this.quadrant3Fill || P(this.primaryColor, {
|
|
1874
1916
|
r: 10,
|
|
1875
1917
|
g: 10,
|
|
1876
1918
|
b: 10
|
|
1877
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1919
|
+
}), this.quadrant4Fill = this.quadrant4Fill || P(this.primaryColor, {
|
|
1878
1920
|
r: 15,
|
|
1879
1921
|
g: 15,
|
|
1880
1922
|
b: 15
|
|
1881
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1923
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
|
|
1882
1924
|
r: -5,
|
|
1883
1925
|
g: -5,
|
|
1884
1926
|
b: -5
|
|
1885
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1927
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
|
|
1886
1928
|
r: -10,
|
|
1887
1929
|
g: -10,
|
|
1888
1930
|
b: -10
|
|
1889
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1931
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
|
|
1890
1932
|
r: -15,
|
|
1891
1933
|
g: -15,
|
|
1892
1934
|
b: -15
|
|
1893
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1935
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(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 = {
|
|
1894
1936
|
startByteColor: this.primaryTextColor,
|
|
1895
1937
|
endByteColor: this.primaryTextColor,
|
|
1896
1938
|
labelColor: this.primaryTextColor,
|
|
@@ -1935,7 +1977,7 @@ var O = {
|
|
|
1935
1977
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1936
1978
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1937
1979
|
plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
|
|
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 ||
|
|
1980
|
+
}, 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 || P(this.primaryColor, { h: -30 }), this.git4 = this.git4 || P(this.primaryColor, { h: -60 }), this.git5 = this.git5 || P(this.primaryColor, { h: -90 }), this.git6 = this.git6 || P(this.primaryColor, { h: 60 }), this.git7 = this.git7 || P(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = M(this.git0, 25), this.git1 = M(this.git1, 25), this.git2 = M(this.git2, 25), this.git3 = M(this.git3, 25), this.git4 = M(this.git4, 25), this.git5 = M(this.git5, 25), this.git6 = M(this.git6, 25), this.git7 = M(this.git7, 25)) : (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)), this.gitInv0 = this.gitInv0 || F(this.git0), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || F(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || F(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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
|
|
1939
1981
|
}
|
|
1940
1982
|
calculate(e) {
|
|
1941
1983
|
if (typeof e != "object") {
|
|
@@ -1946,27 +1988,27 @@ var O = {
|
|
|
1946
1988
|
t.forEach((t) => {
|
|
1947
1989
|
this[t] = e[t];
|
|
1948
1990
|
}), this.updateColors(), t.forEach((t) => {
|
|
1949
|
-
this[t] = e[t];
|
|
1991
|
+
this[t] = W(this[t], e[t]);
|
|
1950
1992
|
});
|
|
1951
1993
|
}
|
|
1952
|
-
},
|
|
1953
|
-
let t = new
|
|
1994
|
+
}, zt = /* @__PURE__ */ e((e) => {
|
|
1995
|
+
let t = new Rt();
|
|
1954
1996
|
return t.calculate(e), t;
|
|
1955
|
-
}, "getThemeVariables"),
|
|
1997
|
+
}, "getThemeVariables"), Bt = class {
|
|
1956
1998
|
static {
|
|
1957
|
-
|
|
1999
|
+
e(this, "Theme");
|
|
1958
2000
|
}
|
|
1959
2001
|
constructor() {
|
|
1960
|
-
this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor =
|
|
2002
|
+
this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = M(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = P(this.primaryColor, { h: -160 }), this.primaryBorderColor = U(this.primaryColor, this.darkMode), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = F(this.primaryColor), this.secondaryTextColor = F(this.secondaryColor), this.tertiaryTextColor = F(this.tertiaryColor), this.lineColor = F(this.background), this.textColor = F(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 || M(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))";
|
|
1961
2003
|
}
|
|
1962
2004
|
updateColors() {
|
|
1963
|
-
this.secondBkg =
|
|
1964
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1965
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
2005
|
+
this.secondBkg = M(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = M(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";
|
|
2006
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e]);
|
|
2007
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || M(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10);
|
|
1966
2008
|
this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
|
|
1967
2009
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1968
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
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 =
|
|
2010
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || P(this.mainBkg, { l: -(5 + e * 5) }), this["surfacePeer" + e] = this["surfacePeer" + e] || P(this.mainBkg, { l: -(8 + e * 5) });
|
|
2011
|
+
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.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, this.sectionBkgColor = M(this.contrast, 30), this.sectionBkgColor2 = M(this.contrast, 30), this.taskBorderColor = N(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 = M(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = N(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 = P(this.primaryColor, { h: 64 }), this.fillType3 = P(this.secondaryColor, { h: 64 }), this.fillType4 = P(this.primaryColor, { h: -64 }), this.fillType5 = P(this.secondaryColor, { h: -64 }), this.fillType6 = P(this.primaryColor, { h: 128 }), this.fillType7 = P(this.secondaryColor, { h: 128 });
|
|
1970
2012
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
|
|
1971
2013
|
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";
|
|
1972
2014
|
for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this["cScale" + e];
|
|
@@ -1986,31 +2028,31 @@ var O = {
|
|
|
1986
2028
|
confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
|
|
1987
2029
|
textColor: this.cynefin?.textColor || this.textColor,
|
|
1988
2030
|
labelColor: this.cynefin?.labelColor || this.primaryTextColor
|
|
1989
|
-
}, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
2031
|
+
}, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || P(this.primaryColor, {
|
|
1990
2032
|
r: 5,
|
|
1991
2033
|
g: 5,
|
|
1992
2034
|
b: 5
|
|
1993
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
2035
|
+
}), this.quadrant3Fill = this.quadrant3Fill || P(this.primaryColor, {
|
|
1994
2036
|
r: 10,
|
|
1995
2037
|
g: 10,
|
|
1996
2038
|
b: 10
|
|
1997
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
2039
|
+
}), this.quadrant4Fill = this.quadrant4Fill || P(this.primaryColor, {
|
|
1998
2040
|
r: 15,
|
|
1999
2041
|
g: 15,
|
|
2000
2042
|
b: 15
|
|
2001
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
2043
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
|
|
2002
2044
|
r: -5,
|
|
2003
2045
|
g: -5,
|
|
2004
2046
|
b: -5
|
|
2005
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
2047
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
|
|
2006
2048
|
r: -10,
|
|
2007
2049
|
g: -10,
|
|
2008
2050
|
b: -10
|
|
2009
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
2051
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
|
|
2010
2052
|
r: -15,
|
|
2011
2053
|
g: -15,
|
|
2012
2054
|
b: -15
|
|
2013
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
2055
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(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 = {
|
|
2014
2056
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2015
2057
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2016
2058
|
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
@@ -2048,7 +2090,7 @@ var O = {
|
|
|
2048
2090
|
annotationStroke: this.wardley?.annotationStroke || this.lineColor,
|
|
2049
2091
|
annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
|
|
2050
2092
|
annotationFill: this.wardley?.annotationFill || this.background
|
|
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 =
|
|
2093
|
+
}, 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 = N(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || P(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || P(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || P(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || P(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || P(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || F(this.git0), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
|
|
2052
2094
|
}
|
|
2053
2095
|
calculate(e) {
|
|
2054
2096
|
if (typeof e != "object") {
|
|
@@ -2059,90 +2101,90 @@ var O = {
|
|
|
2059
2101
|
t.forEach((t) => {
|
|
2060
2102
|
this[t] = e[t];
|
|
2061
2103
|
}), this.updateColors(), t.forEach((t) => {
|
|
2062
|
-
this[t] = e[t];
|
|
2104
|
+
this[t] = W(this[t], e[t]);
|
|
2063
2105
|
});
|
|
2064
2106
|
}
|
|
2065
|
-
},
|
|
2066
|
-
let t = new
|
|
2107
|
+
}, Vt = /* @__PURE__ */ e((e) => {
|
|
2108
|
+
let t = new Bt();
|
|
2067
2109
|
return t.calculate(e), t;
|
|
2068
|
-
}, "getThemeVariables"),
|
|
2110
|
+
}, "getThemeVariables"), Ht = class {
|
|
2069
2111
|
static {
|
|
2070
|
-
|
|
2112
|
+
e(this, "Theme");
|
|
2071
2113
|
}
|
|
2072
2114
|
constructor() {
|
|
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 =
|
|
2115
|
+
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 = U(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";
|
|
2074
2116
|
}
|
|
2075
2117
|
updateColors() {
|
|
2076
|
-
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor ||
|
|
2118
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || P(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || P(this.primaryColor, {
|
|
2077
2119
|
h: 180,
|
|
2078
2120
|
l: 5
|
|
2079
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
2080
|
-
let e = "#ECECFE", t = "#E9E9F1", n =
|
|
2121
|
+
}), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || F(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || F(this.tertiaryColor), this.lineColor = this.lineColor || F(this.background), this.arrowheadColor = this.arrowheadColor || F(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 ? N(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || N(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || F(this.lineColor), this.rectBkgColor = this.rectBkgColor || (j(this.background) ? M(this.background, 4) : N(this.background, 4));
|
|
2122
|
+
let e = "#ECECFE", t = "#E9E9F1", n = P(e, {
|
|
2081
2123
|
h: 180,
|
|
2082
2124
|
l: 5
|
|
2083
2125
|
});
|
|
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 ||
|
|
2126
|
+
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 || M(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 || P(e, { h: 30 }), this.cScale4 = this.cScale4 || P(e, { h: 60 }), this.cScale5 = this.cScale5 || P(e, { h: 90 }), this.cScale6 = this.cScale6 || P(e, { h: 120 }), this.cScale7 = this.cScale7 || P(e, { h: 150 }), this.cScale8 = this.cScale8 || P(e, {
|
|
2085
2127
|
h: 210,
|
|
2086
2128
|
l: 150
|
|
2087
|
-
}), this.cScale9 = this.cScale9 ||
|
|
2088
|
-
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
2089
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
2090
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
2129
|
+
}), this.cScale9 = this.cScale9 || P(e, { h: 270 }), this.cScale10 = this.cScale10 || P(e, { h: 300 }), this.cScale11 = this.cScale11 || P(e, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 75);
|
|
2130
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 25);
|
|
2131
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e]);
|
|
2132
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || M(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10);
|
|
2091
2133
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2092
2134
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
2093
2135
|
let r = this.darkMode ? -4 : -1;
|
|
2094
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
2136
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || P(this.mainBkg, {
|
|
2095
2137
|
h: 180,
|
|
2096
2138
|
s: -15,
|
|
2097
2139
|
l: r * (5 + e * 3)
|
|
2098
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
2140
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || P(this.mainBkg, {
|
|
2099
2141
|
h: 180,
|
|
2100
2142
|
s: -15,
|
|
2101
2143
|
l: r * (8 + e * 3)
|
|
2102
2144
|
});
|
|
2103
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 ||
|
|
2145
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || P(e, { h: 64 }), this.fillType3 = this.fillType3 || P(t, { h: 64 }), this.fillType4 = this.fillType4 || P(e, { h: -64 }), this.fillType5 = this.fillType5 || P(t, { h: -64 }), this.fillType6 = this.fillType6 || P(e, { h: 128 }), this.fillType7 = this.fillType7 || P(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || P(e, { l: -10 }), this.pie5 = this.pie5 || P(t, { l: -10 }), this.pie6 = this.pie6 || P(n, { l: -10 }), this.pie7 = this.pie7 || P(e, {
|
|
2104
2146
|
h: 60,
|
|
2105
2147
|
l: -10
|
|
2106
|
-
}), this.pie8 = this.pie8 ||
|
|
2148
|
+
}), this.pie8 = this.pie8 || P(e, {
|
|
2107
2149
|
h: -60,
|
|
2108
2150
|
l: -10
|
|
2109
|
-
}), this.pie9 = this.pie9 ||
|
|
2151
|
+
}), this.pie9 = this.pie9 || P(e, {
|
|
2110
2152
|
h: 120,
|
|
2111
2153
|
l: 0
|
|
2112
|
-
}), this.pie10 = this.pie10 ||
|
|
2154
|
+
}), this.pie10 = this.pie10 || P(e, {
|
|
2113
2155
|
h: 60,
|
|
2114
2156
|
l: -20
|
|
2115
|
-
}), this.pie11 = this.pie11 ||
|
|
2157
|
+
}), this.pie11 = this.pie11 || P(e, {
|
|
2116
2158
|
h: -60,
|
|
2117
2159
|
l: -20
|
|
2118
|
-
}), this.pie12 = this.pie12 ||
|
|
2160
|
+
}), this.pie12 = this.pie12 || P(e, {
|
|
2119
2161
|
h: 120,
|
|
2120
2162
|
l: -10
|
|
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 ||
|
|
2163
|
+
}), 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 || P(e, {
|
|
2122
2164
|
r: 5,
|
|
2123
2165
|
g: 5,
|
|
2124
2166
|
b: 5
|
|
2125
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
2167
|
+
}), this.quadrant3Fill = this.quadrant3Fill || P(e, {
|
|
2126
2168
|
r: 10,
|
|
2127
2169
|
g: 10,
|
|
2128
2170
|
b: 10
|
|
2129
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
2171
|
+
}), this.quadrant4Fill = this.quadrant4Fill || P(e, {
|
|
2130
2172
|
r: 15,
|
|
2131
2173
|
g: 15,
|
|
2132
2174
|
b: 15
|
|
2133
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
2175
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
|
|
2134
2176
|
r: -5,
|
|
2135
2177
|
g: -5,
|
|
2136
2178
|
b: -5
|
|
2137
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
2179
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
|
|
2138
2180
|
r: -10,
|
|
2139
2181
|
g: -10,
|
|
2140
2182
|
b: -10
|
|
2141
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
2183
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
|
|
2142
2184
|
r: -15,
|
|
2143
2185
|
g: -15,
|
|
2144
2186
|
b: -15
|
|
2145
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
2187
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(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 = {
|
|
2146
2188
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2147
2189
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2148
2190
|
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
@@ -2155,7 +2197,7 @@ var O = {
|
|
|
2155
2197
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2156
2198
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2157
2199
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
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 ?
|
|
2200
|
+
}, 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 ? N(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 || P(e, { h: -30 }), this.git4 = this.git4 || P(e, { h: -60 }), this.git5 = this.git5 || P(e, { h: -90 }), this.git6 = this.git6 || P(e, { h: 60 }), this.git7 = this.git7 || P(e, { h: 120 }), this.darkMode ? (this.git0 = M(this.git0, 25), this.git1 = M(this.git1, 25), this.git2 = M(this.git2, 25), this.git3 = M(this.git3, 25), this.git4 = M(this.git4, 25), this.git5 = M(this.git5, 25), this.git6 = M(this.git6, 25), this.git7 = M(this.git7, 25)) : (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)), this.gitInv0 = this.gitInv0 || F(this.git0), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
|
|
2159
2201
|
}
|
|
2160
2202
|
calculate(e) {
|
|
2161
2203
|
if (typeof e != "object") {
|
|
@@ -2166,85 +2208,85 @@ var O = {
|
|
|
2166
2208
|
t.forEach((t) => {
|
|
2167
2209
|
this[t] = e[t];
|
|
2168
2210
|
}), this.updateColors(), t.forEach((t) => {
|
|
2169
|
-
this[t] = e[t];
|
|
2211
|
+
this[t] = W(this[t], e[t]);
|
|
2170
2212
|
});
|
|
2171
2213
|
}
|
|
2172
|
-
},
|
|
2173
|
-
let t = new
|
|
2214
|
+
}, Ut = /* @__PURE__ */ e((e) => {
|
|
2215
|
+
let t = new Ht();
|
|
2174
2216
|
return t.calculate(e), t;
|
|
2175
|
-
}, "getThemeVariables"),
|
|
2217
|
+
}, "getThemeVariables"), Wt = class {
|
|
2176
2218
|
static {
|
|
2177
|
-
|
|
2219
|
+
e(this, "Theme");
|
|
2178
2220
|
}
|
|
2179
2221
|
constructor() {
|
|
2180
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor =
|
|
2222
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = M(this.primaryColor, 16), this.tertiaryColor = P(this.primaryColor, { h: -160 }), this.primaryBorderColor = F(this.background), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = F(this.primaryColor), this.secondaryTextColor = F(this.secondaryColor), this.tertiaryTextColor = F(this.tertiaryColor), this.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = M(F("#323D47"), 10), this.border1 = "#ccc", this.border2 = k(255, 255, 255, .25), this.arrowheadColor = F(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";
|
|
2181
2223
|
}
|
|
2182
2224
|
updateColors() {
|
|
2183
|
-
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor ||
|
|
2225
|
+
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || P(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || P(this.primaryColor, {
|
|
2184
2226
|
h: 180,
|
|
2185
2227
|
l: 5
|
|
2186
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
2228
|
+
}), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || F(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || F(this.tertiaryColor), this.lineColor = this.lineColor || F(this.background), this.arrowheadColor = this.arrowheadColor || F(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.secondBkg = this.secondBkg === "calculated" ? M(this.mainBkg, 16) : this.secondBkg, 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 ? N(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || N(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || F(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 || M(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || this.secondBkg, 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 || P(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || P(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || P(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || P(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || P(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || P(this.primaryColor, {
|
|
2187
2229
|
h: 210,
|
|
2188
2230
|
l: 150
|
|
2189
|
-
}), this.cScale9 = this.cScale9 ||
|
|
2190
|
-
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
2191
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
2192
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
2231
|
+
}), this.cScale9 = this.cScale9 || P(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || P(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || P(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 75);
|
|
2232
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 25);
|
|
2233
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e]);
|
|
2234
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || M(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10);
|
|
2193
2235
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2194
2236
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
2195
2237
|
let e = this.darkMode ? -4 : -1;
|
|
2196
|
-
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] ||
|
|
2238
|
+
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || P(this.mainBkg, {
|
|
2197
2239
|
h: 180,
|
|
2198
2240
|
s: -15,
|
|
2199
2241
|
l: e * (5 + t * 3)
|
|
2200
|
-
}), this["surfacePeer" + t] = this["surfacePeer" + t] ||
|
|
2242
|
+
}), this["surfacePeer" + t] = this["surfacePeer" + t] || P(this.mainBkg, {
|
|
2201
2243
|
h: 180,
|
|
2202
2244
|
s: -15,
|
|
2203
2245
|
l: e * (8 + t * 3)
|
|
2204
2246
|
});
|
|
2205
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 ||
|
|
2247
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || P(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || P(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || P(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || P(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || P(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || P(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 || P(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || P(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || P(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || P(this.primaryColor, {
|
|
2206
2248
|
h: 60,
|
|
2207
2249
|
l: -10
|
|
2208
|
-
}), this.pie8 = this.pie8 ||
|
|
2250
|
+
}), this.pie8 = this.pie8 || P(this.primaryColor, {
|
|
2209
2251
|
h: -60,
|
|
2210
2252
|
l: -10
|
|
2211
|
-
}), this.pie9 = this.pie9 ||
|
|
2253
|
+
}), this.pie9 = this.pie9 || P(this.primaryColor, {
|
|
2212
2254
|
h: 120,
|
|
2213
2255
|
l: 0
|
|
2214
|
-
}), this.pie10 = this.pie10 ||
|
|
2256
|
+
}), this.pie10 = this.pie10 || P(this.primaryColor, {
|
|
2215
2257
|
h: 60,
|
|
2216
2258
|
l: -20
|
|
2217
|
-
}), this.pie11 = this.pie11 ||
|
|
2259
|
+
}), this.pie11 = this.pie11 || P(this.primaryColor, {
|
|
2218
2260
|
h: -60,
|
|
2219
2261
|
l: -20
|
|
2220
|
-
}), this.pie12 = this.pie12 ||
|
|
2262
|
+
}), this.pie12 = this.pie12 || P(this.primaryColor, {
|
|
2221
2263
|
h: 120,
|
|
2222
2264
|
l: -10
|
|
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 ||
|
|
2265
|
+
}), 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 || P(this.primaryColor, {
|
|
2224
2266
|
r: 5,
|
|
2225
2267
|
g: 5,
|
|
2226
2268
|
b: 5
|
|
2227
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
2269
|
+
}), this.quadrant3Fill = this.quadrant3Fill || P(this.primaryColor, {
|
|
2228
2270
|
r: 10,
|
|
2229
2271
|
g: 10,
|
|
2230
2272
|
b: 10
|
|
2231
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
2273
|
+
}), this.quadrant4Fill = this.quadrant4Fill || P(this.primaryColor, {
|
|
2232
2274
|
r: 15,
|
|
2233
2275
|
g: 15,
|
|
2234
2276
|
b: 15
|
|
2235
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
2277
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
|
|
2236
2278
|
r: -5,
|
|
2237
2279
|
g: -5,
|
|
2238
2280
|
b: -5
|
|
2239
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
2281
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
|
|
2240
2282
|
r: -10,
|
|
2241
2283
|
g: -10,
|
|
2242
2284
|
b: -10
|
|
2243
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
2285
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
|
|
2244
2286
|
r: -15,
|
|
2245
2287
|
g: -15,
|
|
2246
2288
|
b: -15
|
|
2247
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
2289
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(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 = {
|
|
2248
2290
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2249
2291
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2250
2292
|
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
@@ -2257,7 +2299,7 @@ var O = {
|
|
|
2257
2299
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2258
2300
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2259
2301
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
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 ?
|
|
2302
|
+
}, 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 ? N(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 = M(this.git0, 25), this.git1 = M(this.git1, 25), this.git2 = M(this.git2, 25), this.git3 = M(this.git3, 25), this.git4 = M(this.git4, 25), this.git5 = M(this.git5, 25), this.git6 = M(this.git6, 25), this.git7 = M(this.git7, 25)) : (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)), this.gitInv0 = this.gitInv0 || F(this.git0), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
|
|
2261
2303
|
}
|
|
2262
2304
|
calculate(e) {
|
|
2263
2305
|
if (typeof e != "object") {
|
|
@@ -2268,89 +2310,89 @@ var O = {
|
|
|
2268
2310
|
t.forEach((t) => {
|
|
2269
2311
|
this[t] = e[t];
|
|
2270
2312
|
}), this.updateColors(), t.forEach((t) => {
|
|
2271
|
-
this[t] = e[t];
|
|
2313
|
+
this[t] = W(this[t], e[t]);
|
|
2272
2314
|
});
|
|
2273
2315
|
}
|
|
2274
|
-
},
|
|
2275
|
-
let t = new
|
|
2316
|
+
}, Gt = /* @__PURE__ */ e((e) => {
|
|
2317
|
+
let t = new Wt();
|
|
2276
2318
|
return t.calculate(e), t;
|
|
2277
|
-
}, "getThemeVariables"),
|
|
2319
|
+
}, "getThemeVariables"), Kt = class {
|
|
2278
2320
|
static {
|
|
2279
|
-
|
|
2321
|
+
e(this, "Theme");
|
|
2280
2322
|
}
|
|
2281
2323
|
constructor() {
|
|
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 =
|
|
2324
|
+
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 = U("#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";
|
|
2283
2325
|
}
|
|
2284
2326
|
updateColors() {
|
|
2285
|
-
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor ||
|
|
2327
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || P(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || P(this.primaryColor, {
|
|
2286
2328
|
h: 180,
|
|
2287
2329
|
l: 5
|
|
2288
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
2289
|
-
let e = "#ECECFE", t = "#E9E9F1", n =
|
|
2330
|
+
}), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || F(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || F(this.tertiaryColor), this.lineColor = this.lineColor || F(this.background), this.arrowheadColor = this.arrowheadColor || F(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 ? N(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || N(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || F(this.lineColor), this.rectBkgColor = this.rectBkgColor || (j(this.background) ? M(this.background, 4) : N(this.background, 4));
|
|
2331
|
+
let e = "#ECECFE", t = "#E9E9F1", n = P(e, {
|
|
2290
2332
|
h: 180,
|
|
2291
2333
|
l: 5
|
|
2292
2334
|
});
|
|
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 ||
|
|
2335
|
+
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 || M(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;
|
|
2294
2336
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = this.mainBkg;
|
|
2295
|
-
if (this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
2296
|
-
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
2297
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
2298
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
2337
|
+
if (this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 75);
|
|
2338
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 25);
|
|
2339
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e]);
|
|
2340
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || M(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10);
|
|
2299
2341
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2300
2342
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
2301
2343
|
let r = this.darkMode ? -4 : -1;
|
|
2302
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
2344
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || P(this.mainBkg, {
|
|
2303
2345
|
h: 180,
|
|
2304
2346
|
s: -15,
|
|
2305
2347
|
l: r * (5 + e * 3)
|
|
2306
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
2348
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || P(this.mainBkg, {
|
|
2307
2349
|
h: 180,
|
|
2308
2350
|
s: -15,
|
|
2309
2351
|
l: r * (8 + e * 3)
|
|
2310
2352
|
});
|
|
2311
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 ||
|
|
2353
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || P(e, { h: 64 }), this.fillType3 = this.fillType3 || P(t, { h: 64 }), this.fillType4 = this.fillType4 || P(e, { h: -64 }), this.fillType5 = this.fillType5 || P(t, { h: -64 }), this.fillType6 = this.fillType6 || P(e, { h: 128 }), this.fillType7 = this.fillType7 || P(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || P(e, { l: -10 }), this.pie5 = this.pie5 || P(t, { l: -10 }), this.pie6 = this.pie6 || P(n, { l: -10 }), this.pie7 = this.pie7 || P(e, {
|
|
2312
2354
|
h: 60,
|
|
2313
2355
|
l: -10
|
|
2314
|
-
}), this.pie8 = this.pie8 ||
|
|
2356
|
+
}), this.pie8 = this.pie8 || P(e, {
|
|
2315
2357
|
h: -60,
|
|
2316
2358
|
l: -10
|
|
2317
|
-
}), this.pie9 = this.pie9 ||
|
|
2359
|
+
}), this.pie9 = this.pie9 || P(e, {
|
|
2318
2360
|
h: 120,
|
|
2319
2361
|
l: 0
|
|
2320
|
-
}), this.pie10 = this.pie10 ||
|
|
2362
|
+
}), this.pie10 = this.pie10 || P(e, {
|
|
2321
2363
|
h: 60,
|
|
2322
2364
|
l: -20
|
|
2323
|
-
}), this.pie11 = this.pie11 ||
|
|
2365
|
+
}), this.pie11 = this.pie11 || P(e, {
|
|
2324
2366
|
h: -60,
|
|
2325
2367
|
l: -20
|
|
2326
|
-
}), this.pie12 = this.pie12 ||
|
|
2368
|
+
}), this.pie12 = this.pie12 || P(e, {
|
|
2327
2369
|
h: 120,
|
|
2328
2370
|
l: -10
|
|
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 ||
|
|
2371
|
+
}), 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 || P(e, {
|
|
2330
2372
|
r: 5,
|
|
2331
2373
|
g: 5,
|
|
2332
2374
|
b: 5
|
|
2333
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
2375
|
+
}), this.quadrant3Fill = this.quadrant3Fill || P(e, {
|
|
2334
2376
|
r: 10,
|
|
2335
2377
|
g: 10,
|
|
2336
2378
|
b: 10
|
|
2337
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
2379
|
+
}), this.quadrant4Fill = this.quadrant4Fill || P(e, {
|
|
2338
2380
|
r: 15,
|
|
2339
2381
|
g: 15,
|
|
2340
2382
|
b: 15
|
|
2341
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
2383
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
|
|
2342
2384
|
r: -5,
|
|
2343
2385
|
g: -5,
|
|
2344
2386
|
b: -5
|
|
2345
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
2387
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
|
|
2346
2388
|
r: -10,
|
|
2347
2389
|
g: -10,
|
|
2348
2390
|
b: -10
|
|
2349
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
2391
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
|
|
2350
2392
|
r: -15,
|
|
2351
2393
|
g: -15,
|
|
2352
2394
|
b: -15
|
|
2353
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
2395
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(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 = {
|
|
2354
2396
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2355
2397
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2356
2398
|
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
@@ -2363,7 +2405,7 @@ var O = {
|
|
|
2363
2405
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2364
2406
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2365
2407
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
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 ?
|
|
2408
|
+
}, 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 ? N(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 || P(e, { h: -30 }), this.git4 = this.git4 || P(e, { h: -60 }), this.git5 = this.git5 || P(e, { h: -90 }), this.git6 = this.git6 || P(e, { h: 60 }), this.git7 = this.git7 || P(e, { h: 120 }), this.darkMode ? (this.git0 = M(this.git0, 25), this.git1 = M(this.git1, 25), this.git2 = M(this.git2, 25), this.git3 = M(this.git3, 25), this.git4 = M(this.git4, 25), this.git5 = M(this.git5, 25), this.git6 = M(this.git6, 25), this.git7 = M(this.git7, 25)) : (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)), this.gitInv0 = this.gitInv0 || F(this.git0), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
|
|
2367
2409
|
}
|
|
2368
2410
|
calculate(e) {
|
|
2369
2411
|
if (typeof e != "object") {
|
|
@@ -2374,85 +2416,85 @@ var O = {
|
|
|
2374
2416
|
t.forEach((t) => {
|
|
2375
2417
|
this[t] = e[t];
|
|
2376
2418
|
}), this.updateColors(), t.forEach((t) => {
|
|
2377
|
-
this[t] = e[t];
|
|
2419
|
+
this[t] = W(this[t], e[t]);
|
|
2378
2420
|
});
|
|
2379
2421
|
}
|
|
2380
|
-
},
|
|
2381
|
-
let t = new
|
|
2422
|
+
}, qt = /* @__PURE__ */ e((e) => {
|
|
2423
|
+
let t = new Kt();
|
|
2382
2424
|
return t.calculate(e), t;
|
|
2383
|
-
}, "getThemeVariables"),
|
|
2425
|
+
}, "getThemeVariables"), Jt = class {
|
|
2384
2426
|
static {
|
|
2385
|
-
|
|
2427
|
+
e(this, "Theme");
|
|
2386
2428
|
}
|
|
2387
2429
|
constructor() {
|
|
2388
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor =
|
|
2430
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = M(this.primaryColor, 16), this.tertiaryColor = P(this.primaryColor, { h: -160 }), this.primaryBorderColor = F(this.background), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = F(this.primaryColor), this.secondaryTextColor = F(this.secondaryColor), this.tertiaryTextColor = F(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = M(F("#323D47"), 10), this.border1 = "#ccc", this.border2 = k(255, 255, 255, .25), this.arrowheadColor = F(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";
|
|
2389
2431
|
}
|
|
2390
2432
|
updateColors() {
|
|
2391
|
-
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor ||
|
|
2433
|
+
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || P(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || P(this.primaryColor, {
|
|
2392
2434
|
h: 180,
|
|
2393
2435
|
l: 5
|
|
2394
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
2436
|
+
}), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || F(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || F(this.tertiaryColor), this.lineColor = this.lineColor || F(this.background), this.arrowheadColor = this.arrowheadColor || F(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.secondBkg = this.secondBkg === "calculated" ? M(this.mainBkg, 16) : this.secondBkg, 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 ? N(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || N(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || F(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 || M(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || this.secondBkg, 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 || P(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || P(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || P(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || P(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || P(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || P(this.primaryColor, {
|
|
2395
2437
|
h: 210,
|
|
2396
2438
|
l: 150
|
|
2397
|
-
}), this.cScale9 = this.cScale9 ||
|
|
2398
|
-
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
2399
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
2400
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
2439
|
+
}), this.cScale9 = this.cScale9 || P(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || P(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || P(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 75);
|
|
2440
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 25);
|
|
2441
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e]);
|
|
2442
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || M(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10);
|
|
2401
2443
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2402
2444
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
2403
2445
|
let e = this.darkMode ? -4 : -1;
|
|
2404
|
-
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] ||
|
|
2446
|
+
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || P(this.mainBkg, {
|
|
2405
2447
|
h: 180,
|
|
2406
2448
|
s: -15,
|
|
2407
2449
|
l: e * (5 + t * 3)
|
|
2408
|
-
}), this["surfacePeer" + t] = this["surfacePeer" + t] ||
|
|
2450
|
+
}), this["surfacePeer" + t] = this["surfacePeer" + t] || P(this.mainBkg, {
|
|
2409
2451
|
h: 180,
|
|
2410
2452
|
s: -15,
|
|
2411
2453
|
l: e * (8 + t * 3)
|
|
2412
2454
|
});
|
|
2413
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 ||
|
|
2455
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || P(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || P(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || P(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || P(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || P(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || P(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 || P(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || P(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || P(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || P(this.primaryColor, {
|
|
2414
2456
|
h: 60,
|
|
2415
2457
|
l: -10
|
|
2416
|
-
}), this.pie8 = this.pie8 ||
|
|
2458
|
+
}), this.pie8 = this.pie8 || P(this.primaryColor, {
|
|
2417
2459
|
h: -60,
|
|
2418
2460
|
l: -10
|
|
2419
|
-
}), this.pie9 = this.pie9 ||
|
|
2461
|
+
}), this.pie9 = this.pie9 || P(this.primaryColor, {
|
|
2420
2462
|
h: 120,
|
|
2421
2463
|
l: 0
|
|
2422
|
-
}), this.pie10 = this.pie10 ||
|
|
2464
|
+
}), this.pie10 = this.pie10 || P(this.primaryColor, {
|
|
2423
2465
|
h: 60,
|
|
2424
2466
|
l: -20
|
|
2425
|
-
}), this.pie11 = this.pie11 ||
|
|
2467
|
+
}), this.pie11 = this.pie11 || P(this.primaryColor, {
|
|
2426
2468
|
h: -60,
|
|
2427
2469
|
l: -20
|
|
2428
|
-
}), this.pie12 = this.pie12 ||
|
|
2470
|
+
}), this.pie12 = this.pie12 || P(this.primaryColor, {
|
|
2429
2471
|
h: 120,
|
|
2430
2472
|
l: -10
|
|
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 ||
|
|
2473
|
+
}), 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 || P(this.primaryColor, {
|
|
2432
2474
|
r: 5,
|
|
2433
2475
|
g: 5,
|
|
2434
2476
|
b: 5
|
|
2435
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
2477
|
+
}), this.quadrant3Fill = this.quadrant3Fill || P(this.primaryColor, {
|
|
2436
2478
|
r: 10,
|
|
2437
2479
|
g: 10,
|
|
2438
2480
|
b: 10
|
|
2439
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
2481
|
+
}), this.quadrant4Fill = this.quadrant4Fill || P(this.primaryColor, {
|
|
2440
2482
|
r: 15,
|
|
2441
2483
|
g: 15,
|
|
2442
2484
|
b: 15
|
|
2443
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
2485
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
|
|
2444
2486
|
r: -5,
|
|
2445
2487
|
g: -5,
|
|
2446
2488
|
b: -5
|
|
2447
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
2489
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
|
|
2448
2490
|
r: -10,
|
|
2449
2491
|
g: -10,
|
|
2450
2492
|
b: -10
|
|
2451
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
2493
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
|
|
2452
2494
|
r: -15,
|
|
2453
2495
|
g: -15,
|
|
2454
2496
|
b: -15
|
|
2455
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
2497
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(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 = {
|
|
2456
2498
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2457
2499
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2458
2500
|
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
@@ -2465,7 +2507,7 @@ var O = {
|
|
|
2465
2507
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2466
2508
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2467
2509
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
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 ?
|
|
2510
|
+
}, 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 ? N(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 || P(this.primaryColor, { h: -30 }), this.git4 = this.git4 || P(this.primaryColor, { h: -60 }), this.git5 = this.git5 || P(this.primaryColor, { h: -90 }), this.git6 = this.git6 || P(this.primaryColor, { h: 60 }), this.git7 = this.git7 || P(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = M(this.git0, 25), this.git1 = M(this.git1, 25), this.git2 = M(this.git2, 25), this.git3 = M(this.git3, 25), this.git4 = M(this.git4, 25), this.git5 = M(this.git5, 25), this.git6 = M(this.git6, 25), this.git7 = M(this.git7, 25)) : (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)), this.gitInv0 = this.gitInv0 || F(this.git0), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
|
|
2469
2511
|
}
|
|
2470
2512
|
calculate(e) {
|
|
2471
2513
|
if (typeof e != "object") {
|
|
@@ -2476,18 +2518,18 @@ var O = {
|
|
|
2476
2518
|
t.forEach((t) => {
|
|
2477
2519
|
this[t] = e[t];
|
|
2478
2520
|
}), this.updateColors(), t.forEach((t) => {
|
|
2479
|
-
this[t] = e[t];
|
|
2521
|
+
this[t] = W(this[t], e[t]);
|
|
2480
2522
|
});
|
|
2481
2523
|
}
|
|
2482
|
-
},
|
|
2483
|
-
let t = new
|
|
2524
|
+
}, Yt = /* @__PURE__ */ e((e) => {
|
|
2525
|
+
let t = new Jt();
|
|
2484
2526
|
return t.calculate(e), t;
|
|
2485
|
-
}, "getThemeVariables"),
|
|
2527
|
+
}, "getThemeVariables"), Xt = class {
|
|
2486
2528
|
static {
|
|
2487
|
-
|
|
2529
|
+
e(this, "Theme");
|
|
2488
2530
|
}
|
|
2489
2531
|
constructor() {
|
|
2490
|
-
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 =
|
|
2532
|
+
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 = U("#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.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.actorBorder = "#28253D", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.borderColorArray = [
|
|
2491
2533
|
"#E879F9",
|
|
2492
2534
|
"#2DD4BF",
|
|
2493
2535
|
"#FB923C",
|
|
@@ -2513,75 +2555,62 @@ var O = {
|
|
|
2513
2555
|
"#F7FEE7",
|
|
2514
2556
|
"#F0F9FF",
|
|
2515
2557
|
"#FFF1F2"
|
|
2516
|
-
], this.filterColor = "#000000";
|
|
2558
|
+
], this.usecaseActorBorder = "#A78BFA", this.usecaseActorBkg = "#F5F3FF", this.usecaseBorder = "#2DD4BF", this.usecaseBkg = "#F0FDFA", this.usecaseBoundaryBorder = "#BDBCCC", this.usecaseBoundaryBkg = "#FAFAFC", this.usecaseIncludeLine = "#38BDF8", this.usecaseExtendLine = "#FB923C", this.filterColor = "#000000";
|
|
2517
2559
|
}
|
|
2518
2560
|
updateColors() {
|
|
2519
|
-
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor ||
|
|
2561
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || P(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || P(this.primaryColor, {
|
|
2520
2562
|
h: 180,
|
|
2521
2563
|
l: 5
|
|
2522
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
2523
|
-
let e = "#ECECFE", t =
|
|
2564
|
+
}), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || F(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || F(this.tertiaryColor), this.lineColor = this.lineColor || F(this.background), this.arrowheadColor = this.arrowheadColor || F(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 ? N(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || N(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || F(this.lineColor), this.rectBkgColor = this.rectBkgColor || (j(this.background) ? M(this.background, 4) : N(this.background, 4));
|
|
2565
|
+
let e = "#ECECFE", t = P(e, {
|
|
2524
2566
|
h: 180,
|
|
2525
2567
|
l: 5
|
|
2526
2568
|
});
|
|
2527
|
-
this.
|
|
2528
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
2529
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
2569
|
+
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 || M(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.stateEdgeLabelBackground = this.stateEdgeLabelBackground || "#FFFFFF", this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#F9F9FB", this.compositeTitleBackground = this.compositeTitleBackground || "#F9F9FB", 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", this.sectionBkgColor = this.sectionBkgColor || this.cScale0, this.sectionBkgColor2 = this.sectionBkgColor2 || this.cScale1, this.altSectionBkgColor = this.altSectionBkgColor || "white";
|
|
2570
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e]);
|
|
2571
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || M(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10);
|
|
2530
2572
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2531
2573
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
2532
|
-
let
|
|
2533
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
2574
|
+
let n = this.darkMode ? -4 : -1;
|
|
2575
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || P(this.mainBkg, {
|
|
2534
2576
|
h: 180,
|
|
2535
2577
|
s: -15,
|
|
2536
|
-
l:
|
|
2537
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
2578
|
+
l: n * (5 + e * 3)
|
|
2579
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || P(this.mainBkg, {
|
|
2538
2580
|
h: 180,
|
|
2539
2581
|
s: -15,
|
|
2540
|
-
l:
|
|
2582
|
+
l: n * (8 + e * 3)
|
|
2541
2583
|
});
|
|
2542
|
-
this.classText = this.classText || this.textColor
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
}), this.pie9 = this.pie9 || L(e, {
|
|
2549
|
-
h: 120,
|
|
2550
|
-
l: 0
|
|
2551
|
-
}), this.pie10 = this.pie10 || L(e, {
|
|
2552
|
-
h: 60,
|
|
2553
|
-
l: -20
|
|
2554
|
-
}), this.pie11 = this.pie11 || L(e, {
|
|
2555
|
-
h: -60,
|
|
2556
|
-
l: -20
|
|
2557
|
-
}), this.pie12 = this.pie12 || L(e, {
|
|
2558
|
-
h: 120,
|
|
2559
|
-
l: -10
|
|
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, {
|
|
2584
|
+
this.classText = this.classText || this.textColor;
|
|
2585
|
+
for (let e = 0; e < 8; e++) this["fillType" + e] = this["fillType" + e] || this.bkgColorArray[e];
|
|
2586
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + (e + 1)] = this["pie" + (e + 1)] || this["cScale" + e];
|
|
2587
|
+
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";
|
|
2588
|
+
for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this.borderColorArray[e % this.borderColorArray.length];
|
|
2589
|
+
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || P(e, {
|
|
2561
2590
|
r: 5,
|
|
2562
2591
|
g: 5,
|
|
2563
2592
|
b: 5
|
|
2564
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
2593
|
+
}), this.quadrant3Fill = this.quadrant3Fill || P(e, {
|
|
2565
2594
|
r: 10,
|
|
2566
2595
|
g: 10,
|
|
2567
2596
|
b: 10
|
|
2568
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
2597
|
+
}), this.quadrant4Fill = this.quadrant4Fill || P(e, {
|
|
2569
2598
|
r: 15,
|
|
2570
2599
|
g: 15,
|
|
2571
2600
|
b: 15
|
|
2572
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
2601
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
|
|
2573
2602
|
r: -5,
|
|
2574
2603
|
g: -5,
|
|
2575
2604
|
b: -5
|
|
2576
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
2605
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
|
|
2577
2606
|
r: -10,
|
|
2578
2607
|
g: -10,
|
|
2579
2608
|
b: -10
|
|
2580
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
2609
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
|
|
2581
2610
|
r: -15,
|
|
2582
2611
|
g: -15,
|
|
2583
2612
|
b: -15
|
|
2584
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
2613
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(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 = {
|
|
2585
2614
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2586
2615
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2587
2616
|
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
@@ -2594,7 +2623,7 @@ var O = {
|
|
|
2594
2623
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2595
2624
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2596
2625
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
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 ?
|
|
2626
|
+
}, 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 ? N(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#FFFFFF", this.git0 = this.git0 || e, this.git1 = this.git1 || "#E9E9F1", this.git2 = this.git2 || t, this.git3 = this.git3 || P(e, { h: -30 }), this.git4 = this.git4 || P(e, { h: -60 }), this.git5 = this.git5 || P(e, { h: -90 }), this.git6 = this.git6 || P(e, { h: 60 }), this.git7 = this.git7 || P(e, { h: 120 }), this.darkMode ? (this.git0 = M(this.git0, 25), this.git1 = M(this.git1, 25), this.git2 = M(this.git2, 25), this.git3 = M(this.git3, 25), this.git4 = M(this.git4, 25), this.git5 = M(this.git5, 25), this.git6 = M(this.git6, 25), this.git7 = M(this.git7, 25)) : (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)), this.gitInv0 = this.gitInv0 || F(this.git0), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
|
|
2598
2627
|
}
|
|
2599
2628
|
calculate(e) {
|
|
2600
2629
|
if (typeof e != "object") {
|
|
@@ -2605,18 +2634,18 @@ var O = {
|
|
|
2605
2634
|
t.forEach((t) => {
|
|
2606
2635
|
this[t] = e[t];
|
|
2607
2636
|
}), this.updateColors(), t.forEach((t) => {
|
|
2608
|
-
this[t] = e[t];
|
|
2637
|
+
this[t] = W(this[t], e[t]);
|
|
2609
2638
|
});
|
|
2610
2639
|
}
|
|
2611
|
-
},
|
|
2612
|
-
let t = new
|
|
2640
|
+
}, Zt = /* @__PURE__ */ e((e) => {
|
|
2641
|
+
let t = new Xt();
|
|
2613
2642
|
return t.calculate(e), t;
|
|
2614
|
-
}, "getThemeVariables"),
|
|
2643
|
+
}, "getThemeVariables"), G = class {
|
|
2615
2644
|
static {
|
|
2616
|
-
|
|
2645
|
+
e(this, "Theme");
|
|
2617
2646
|
}
|
|
2618
2647
|
constructor() {
|
|
2619
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor =
|
|
2648
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = M(this.primaryColor, 16), this.tertiaryColor = P(this.primaryColor, { h: -160 }), this.primaryBorderColor = F(this.background), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = F(this.primaryColor), this.secondaryTextColor = F(this.secondaryColor), this.tertiaryTextColor = F(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = M(F("#323D47"), 10), this.border1 = "#ccc", this.border2 = k(255, 255, 255, .25), this.arrowheadColor = F(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 = [
|
|
2620
2649
|
"#E879F9",
|
|
2621
2650
|
"#2DD4BF",
|
|
2622
2651
|
"#FB923C",
|
|
@@ -2629,70 +2658,67 @@ var O = {
|
|
|
2629
2658
|
"#A3E635 ",
|
|
2630
2659
|
"#38BDF8",
|
|
2631
2660
|
"#FB7185"
|
|
2632
|
-
], this.bkgColorArray = [], this.filterColor = "#FFFFFF";
|
|
2661
|
+
], this.bkgColorArray = [], this.usecaseActorBorder = "#A78BFA", this.usecaseBorder = "#2DD4BF", this.usecaseBoundaryBorder = "#BDBCCC", this.usecaseIncludeLine = "#38BDF8", this.usecaseExtendLine = "#FB923C", this.filterColor = "#FFFFFF";
|
|
2633
2662
|
}
|
|
2634
2663
|
updateColors() {
|
|
2635
|
-
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor ||
|
|
2664
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || P(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || P(this.primaryColor, {
|
|
2636
2665
|
h: 180,
|
|
2637
2666
|
l: 5
|
|
2638
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
2639
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
2640
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
2667
|
+
}), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || F(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || F(this.tertiaryColor), this.lineColor = this.lineColor || F(this.background), this.arrowheadColor = this.arrowheadColor || F(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.secondBkg = this.secondBkg === "calculated" ? M(this.mainBkg, 16) : this.secondBkg, 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 ? N(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || N(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || F(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.rootLabelColor = "#FFFFFF", 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 || M(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || this.secondBkg, 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.stateEdgeLabelBackground = this.stateEdgeLabelBackground || "#16141F", this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || "#16141F", this.altBackground = this.altBackground || "#16141F", this.compositeTitleBackground = this.compositeTitleBackground || "#16141F", 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", this.sectionBkgColor = this.sectionBkgColor || this.cScale0, this.sectionBkgColor2 = this.sectionBkgColor2 || this.cScale1, this.altSectionBkgColor = this.altSectionBkgColor || this.background;
|
|
2668
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e]);
|
|
2669
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || M(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10);
|
|
2641
2670
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2642
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] =
|
|
2671
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = N(this["cScale" + e], 75);
|
|
2643
2672
|
let e = this.darkMode ? -4 : -1;
|
|
2644
|
-
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] ||
|
|
2673
|
+
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || P(this.mainBkg, {
|
|
2645
2674
|
h: 180,
|
|
2646
2675
|
s: -15,
|
|
2647
2676
|
l: e * (5 + t * 3)
|
|
2648
|
-
}), this["surfacePeer" + t] = this["surfacePeer" + t] ||
|
|
2677
|
+
}), this["surfacePeer" + t] = this["surfacePeer" + t] || P(this.mainBkg, {
|
|
2649
2678
|
h: 180,
|
|
2650
2679
|
s: -15,
|
|
2651
2680
|
l: e * (8 + t * 3)
|
|
2652
2681
|
});
|
|
2653
|
-
this.classText = this.classText || this.textColor,
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
h: 120,
|
|
2670
|
-
l: -10
|
|
2671
|
-
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || L(this.primaryColor, {
|
|
2682
|
+
this.classText = this.classText || this.textColor, [
|
|
2683
|
+
"#701a75",
|
|
2684
|
+
"#134e4a",
|
|
2685
|
+
"#7c2d12",
|
|
2686
|
+
"#581c87",
|
|
2687
|
+
"#14532d",
|
|
2688
|
+
"#4c1d95",
|
|
2689
|
+
"#7f1d1d",
|
|
2690
|
+
"#713f12"
|
|
2691
|
+
].forEach((e, t) => {
|
|
2692
|
+
this["fillType" + t] = this["fillType" + t] || e;
|
|
2693
|
+
});
|
|
2694
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + (e + 1)] = this["pie" + (e + 1)] || this["cScale" + e];
|
|
2695
|
+
this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || "#28253D", 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";
|
|
2696
|
+
for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this.borderColorArray[e % this.borderColorArray.length];
|
|
2697
|
+
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || P(this.primaryColor, {
|
|
2672
2698
|
r: 5,
|
|
2673
2699
|
g: 5,
|
|
2674
2700
|
b: 5
|
|
2675
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
2701
|
+
}), this.quadrant3Fill = this.quadrant3Fill || P(this.primaryColor, {
|
|
2676
2702
|
r: 10,
|
|
2677
2703
|
g: 10,
|
|
2678
2704
|
b: 10
|
|
2679
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
2705
|
+
}), this.quadrant4Fill = this.quadrant4Fill || P(this.primaryColor, {
|
|
2680
2706
|
r: 15,
|
|
2681
2707
|
g: 15,
|
|
2682
2708
|
b: 15
|
|
2683
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
2709
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
|
|
2684
2710
|
r: -5,
|
|
2685
2711
|
g: -5,
|
|
2686
2712
|
b: -5
|
|
2687
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
2713
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
|
|
2688
2714
|
r: -10,
|
|
2689
2715
|
g: -10,
|
|
2690
2716
|
b: -10
|
|
2691
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
2717
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
|
|
2692
2718
|
r: -15,
|
|
2693
2719
|
g: -15,
|
|
2694
2720
|
b: -15
|
|
2695
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
2721
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
2696
2722
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2697
2723
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2698
2724
|
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
@@ -2705,7 +2731,7 @@ var O = {
|
|
|
2705
2731
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2706
2732
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2707
2733
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
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 ?
|
|
2734
|
+
}, 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 ? N(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 || P(this.primaryColor, { h: -30 }), this.git4 = this.git4 || P(this.primaryColor, { h: -60 }), this.git5 = this.git5 || P(this.primaryColor, { h: -90 }), this.git6 = this.git6 || P(this.primaryColor, { h: 60 }), this.git7 = this.git7 || P(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = M(this.git0, 25), this.git1 = M(this.git1, 25), this.git2 = M(this.git2, 25), this.git3 = M(this.git3, 25), this.git4 = M(this.git4, 25), this.git5 = M(this.git5, 25), this.git6 = M(this.git6, 25), this.git7 = M(this.git7, 25)) : (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)), this.gitInv0 = this.gitInv0 || F(this.git0), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
|
|
2709
2735
|
}
|
|
2710
2736
|
calculate(e) {
|
|
2711
2737
|
if (typeof e != "object") {
|
|
@@ -2716,27 +2742,29 @@ var O = {
|
|
|
2716
2742
|
t.forEach((t) => {
|
|
2717
2743
|
this[t] = e[t];
|
|
2718
2744
|
}), this.updateColors(), t.forEach((t) => {
|
|
2719
|
-
this[t] = e[t];
|
|
2745
|
+
this[t] = W(this[t], e[t]);
|
|
2720
2746
|
});
|
|
2721
2747
|
}
|
|
2722
|
-
},
|
|
2723
|
-
base: { getThemeVariables:
|
|
2724
|
-
dark: { getThemeVariables:
|
|
2725
|
-
default: { getThemeVariables:
|
|
2726
|
-
forest: { getThemeVariables:
|
|
2727
|
-
neutral: { getThemeVariables:
|
|
2728
|
-
neo: { getThemeVariables:
|
|
2729
|
-
"neo-dark": { getThemeVariables:
|
|
2730
|
-
redux: { getThemeVariables:
|
|
2731
|
-
"redux-dark": { getThemeVariables:
|
|
2732
|
-
"redux-color": { getThemeVariables:
|
|
2733
|
-
"redux-dark-color": { getThemeVariables: /* @__PURE__ */
|
|
2734
|
-
let t = new
|
|
2748
|
+
}, K = {
|
|
2749
|
+
base: { getThemeVariables: Nt },
|
|
2750
|
+
dark: { getThemeVariables: Ft },
|
|
2751
|
+
default: { getThemeVariables: Lt },
|
|
2752
|
+
forest: { getThemeVariables: zt },
|
|
2753
|
+
neutral: { getThemeVariables: Vt },
|
|
2754
|
+
neo: { getThemeVariables: Ut },
|
|
2755
|
+
"neo-dark": { getThemeVariables: Gt },
|
|
2756
|
+
redux: { getThemeVariables: qt },
|
|
2757
|
+
"redux-dark": { getThemeVariables: Yt },
|
|
2758
|
+
"redux-color": { getThemeVariables: Zt },
|
|
2759
|
+
"redux-dark-color": { getThemeVariables: /* @__PURE__ */ e((e) => {
|
|
2760
|
+
let t = new G();
|
|
2735
2761
|
return t.calculate(e), t;
|
|
2736
2762
|
}, "getThemeVariables") }
|
|
2737
|
-
},
|
|
2763
|
+
}, q = {
|
|
2738
2764
|
flowchart: {
|
|
2739
2765
|
useMaxWidth: !0,
|
|
2766
|
+
theme: "redux-color",
|
|
2767
|
+
look: "neo",
|
|
2740
2768
|
titleTopMargin: 25,
|
|
2741
2769
|
subGraphTitleMargin: {
|
|
2742
2770
|
top: 0,
|
|
@@ -2748,19 +2776,35 @@ var O = {
|
|
|
2748
2776
|
rankSpacing: 50,
|
|
2749
2777
|
curve: "basis",
|
|
2750
2778
|
padding: 15,
|
|
2751
|
-
|
|
2752
|
-
|
|
2779
|
+
wrappingWidth: 120,
|
|
2780
|
+
minNodeWidth: 120,
|
|
2753
2781
|
inheritDir: !1
|
|
2754
2782
|
},
|
|
2755
2783
|
swimlane: {
|
|
2756
2784
|
useMaxWidth: !0,
|
|
2785
|
+
theme: "redux-color",
|
|
2786
|
+
look: "neo",
|
|
2787
|
+
layout: "swimlane",
|
|
2757
2788
|
lineHops: "arc",
|
|
2758
2789
|
ignoreCrossLaneEdges: !0,
|
|
2759
2790
|
optimizeRanksByCrossings: !0,
|
|
2760
2791
|
automaticLaneOrdering: !1
|
|
2761
2792
|
},
|
|
2793
|
+
agentflow: {
|
|
2794
|
+
useMaxWidth: !0,
|
|
2795
|
+
theme: "redux-color",
|
|
2796
|
+
look: "neo",
|
|
2797
|
+
titleTopMargin: 25,
|
|
2798
|
+
diagramPadding: 8,
|
|
2799
|
+
nodeSpacing: 50,
|
|
2800
|
+
rankSpacing: 50,
|
|
2801
|
+
wrappingWidth: 120,
|
|
2802
|
+
minNodeWidth: 120
|
|
2803
|
+
},
|
|
2762
2804
|
sequence: {
|
|
2763
2805
|
useMaxWidth: !0,
|
|
2806
|
+
theme: "redux-color",
|
|
2807
|
+
look: "neo",
|
|
2764
2808
|
hideUnusedParticipants: !1,
|
|
2765
2809
|
activationWidth: 10,
|
|
2766
2810
|
diagramMarginX: 50,
|
|
@@ -2854,18 +2898,24 @@ var O = {
|
|
|
2854
2898
|
},
|
|
2855
2899
|
class: {
|
|
2856
2900
|
useMaxWidth: !0,
|
|
2901
|
+
theme: "redux-color",
|
|
2902
|
+
look: "neo",
|
|
2857
2903
|
titleTopMargin: 25,
|
|
2858
2904
|
arrowMarkerAbsolute: !1,
|
|
2859
2905
|
dividerMargin: 10,
|
|
2860
2906
|
padding: 5,
|
|
2861
2907
|
textHeight: 10,
|
|
2862
|
-
defaultRenderer: "dagre-wrapper",
|
|
2863
2908
|
htmlLabels: !1,
|
|
2864
2909
|
hideEmptyMembersBox: !1,
|
|
2865
2910
|
hierarchicalNamespaces: !0
|
|
2866
2911
|
},
|
|
2867
2912
|
state: {
|
|
2868
2913
|
useMaxWidth: !0,
|
|
2914
|
+
theme: "redux-color",
|
|
2915
|
+
look: "neo",
|
|
2916
|
+
layout: "elk",
|
|
2917
|
+
wrappingWidth: 120,
|
|
2918
|
+
minNodeWidth: 120,
|
|
2869
2919
|
titleTopMargin: 25,
|
|
2870
2920
|
dividerMargin: 10,
|
|
2871
2921
|
sizeUnit: 5,
|
|
@@ -2881,11 +2931,12 @@ var O = {
|
|
|
2881
2931
|
labelHeight: 16,
|
|
2882
2932
|
edgeLengthFactor: "20",
|
|
2883
2933
|
compositTitleSize: 35,
|
|
2884
|
-
radius: 5
|
|
2885
|
-
defaultRenderer: "dagre-wrapper"
|
|
2934
|
+
radius: 5
|
|
2886
2935
|
},
|
|
2887
2936
|
er: {
|
|
2888
2937
|
useMaxWidth: !0,
|
|
2938
|
+
theme: "redux-color",
|
|
2939
|
+
look: "neo",
|
|
2889
2940
|
titleTopMargin: 25,
|
|
2890
2941
|
diagramPadding: 20,
|
|
2891
2942
|
layoutDirection: "TB",
|
|
@@ -2973,6 +3024,8 @@ var O = {
|
|
|
2973
3024
|
},
|
|
2974
3025
|
requirement: {
|
|
2975
3026
|
useMaxWidth: !0,
|
|
3027
|
+
theme: "redux-color",
|
|
3028
|
+
look: "neo",
|
|
2976
3029
|
rect_fill: "#f9f9f9",
|
|
2977
3030
|
text_color: "#333",
|
|
2978
3031
|
rect_border_size: "0.5px",
|
|
@@ -2985,6 +3038,7 @@ var O = {
|
|
|
2985
3038
|
},
|
|
2986
3039
|
mindmap: {
|
|
2987
3040
|
useMaxWidth: !0,
|
|
3041
|
+
colorBy: "branch",
|
|
2988
3042
|
padding: 10,
|
|
2989
3043
|
maxNodeWidth: 200,
|
|
2990
3044
|
layoutAlgorithm: "cose-bilkent"
|
|
@@ -3200,6 +3254,7 @@ var O = {
|
|
|
3200
3254
|
bitWidth: 32,
|
|
3201
3255
|
bitsPerRow: 32,
|
|
3202
3256
|
showBits: !0,
|
|
3257
|
+
bitOrder: "ascending",
|
|
3203
3258
|
paddingX: 5,
|
|
3204
3259
|
paddingY: 5
|
|
3205
3260
|
},
|
|
@@ -3243,8 +3298,27 @@ var O = {
|
|
|
3243
3298
|
axisLabelFactor: 1.05,
|
|
3244
3299
|
curveTension: .17
|
|
3245
3300
|
},
|
|
3301
|
+
usecase: {
|
|
3302
|
+
useMaxWidth: !0,
|
|
3303
|
+
theme: "redux-color",
|
|
3304
|
+
look: "neo",
|
|
3305
|
+
wrappingWidth: 120,
|
|
3306
|
+
minNodeWidth: 120,
|
|
3307
|
+
actorFontSize: 14,
|
|
3308
|
+
actorFontFamily: "\"Open Sans\", sans-serif",
|
|
3309
|
+
actorFontWeight: "normal",
|
|
3310
|
+
usecaseFontSize: 12,
|
|
3311
|
+
usecaseFontFamily: "\"Open Sans\", sans-serif",
|
|
3312
|
+
usecaseFontWeight: "normal",
|
|
3313
|
+
nodeSpacing: 50,
|
|
3314
|
+
rankSpacing: 50,
|
|
3315
|
+
diagramPadding: 20,
|
|
3316
|
+
colorScheme: "role"
|
|
3317
|
+
},
|
|
3246
3318
|
venn: {
|
|
3247
3319
|
useMaxWidth: !0,
|
|
3320
|
+
theme: "redux-color",
|
|
3321
|
+
look: "neo",
|
|
3248
3322
|
width: 800,
|
|
3249
3323
|
height: 450,
|
|
3250
3324
|
padding: 8,
|
|
@@ -3262,7 +3336,7 @@ var O = {
|
|
|
3262
3336
|
theme: "default",
|
|
3263
3337
|
look: "classic",
|
|
3264
3338
|
handDrawnSeed: 0,
|
|
3265
|
-
layout: "
|
|
3339
|
+
layout: "elk",
|
|
3266
3340
|
maxTextSize: 5e4,
|
|
3267
3341
|
maxEdges: 500,
|
|
3268
3342
|
darkMode: !1,
|
|
@@ -3285,36 +3359,43 @@ var O = {
|
|
|
3285
3359
|
fontSize: 16,
|
|
3286
3360
|
markdownAutoWrap: !0,
|
|
3287
3361
|
suppressErrorRendering: !1
|
|
3288
|
-
},
|
|
3289
|
-
...
|
|
3362
|
+
}, Qt = {
|
|
3363
|
+
...q,
|
|
3290
3364
|
deterministicIDSeed: void 0,
|
|
3291
3365
|
elk: {
|
|
3292
3366
|
mergeEdges: !1,
|
|
3293
|
-
|
|
3294
|
-
|
|
3367
|
+
straightenEdges: !0,
|
|
3368
|
+
lineHops: !0,
|
|
3369
|
+
preset: "default",
|
|
3370
|
+
nodePlacementStrategy: void 0,
|
|
3371
|
+
layeringStrategy: void 0,
|
|
3372
|
+
cycleBreakingStrategy: void 0,
|
|
3373
|
+
layeringLayerBound: 4,
|
|
3374
|
+
nodePlacementAlignment: void 0,
|
|
3295
3375
|
forceNodeModelOrder: !1,
|
|
3296
3376
|
considerModelOrder: "NODES_AND_EDGES",
|
|
3297
|
-
keepEntryNodeOnTop: !1
|
|
3377
|
+
keepEntryNodeOnTop: !1,
|
|
3378
|
+
orientFeedbackEdges: !0
|
|
3298
3379
|
},
|
|
3299
3380
|
themeCSS: void 0,
|
|
3300
|
-
themeVariables:
|
|
3381
|
+
themeVariables: K.default.getThemeVariables(),
|
|
3301
3382
|
sequence: {
|
|
3302
|
-
...
|
|
3303
|
-
messageFont: /* @__PURE__ */
|
|
3383
|
+
...q.sequence,
|
|
3384
|
+
messageFont: /* @__PURE__ */ e(function() {
|
|
3304
3385
|
return {
|
|
3305
3386
|
fontFamily: this.messageFontFamily,
|
|
3306
3387
|
fontSize: this.messageFontSize,
|
|
3307
3388
|
fontWeight: this.messageFontWeight
|
|
3308
3389
|
};
|
|
3309
3390
|
}, "messageFont"),
|
|
3310
|
-
noteFont: /* @__PURE__ */
|
|
3391
|
+
noteFont: /* @__PURE__ */ e(function() {
|
|
3311
3392
|
return {
|
|
3312
3393
|
fontFamily: this.noteFontFamily,
|
|
3313
3394
|
fontSize: this.noteFontSize,
|
|
3314
3395
|
fontWeight: this.noteFontWeight
|
|
3315
3396
|
};
|
|
3316
3397
|
}, "noteFont"),
|
|
3317
|
-
actorFont: /* @__PURE__ */
|
|
3398
|
+
actorFont: /* @__PURE__ */ e(function() {
|
|
3318
3399
|
return {
|
|
3319
3400
|
fontFamily: this.actorFontFamily,
|
|
3320
3401
|
fontSize: this.actorFontSize,
|
|
@@ -3323,19 +3404,21 @@ var O = {
|
|
|
3323
3404
|
}, "actorFont")
|
|
3324
3405
|
},
|
|
3325
3406
|
class: {
|
|
3326
|
-
|
|
3407
|
+
theme: q.class?.theme,
|
|
3408
|
+
look: q.class?.look,
|
|
3409
|
+
layout: q.class?.layout,
|
|
3327
3410
|
hideEmptyMembersBox: !1,
|
|
3328
3411
|
hierarchicalNamespaces: !0
|
|
3329
3412
|
},
|
|
3330
3413
|
gantt: {
|
|
3331
|
-
...
|
|
3414
|
+
...q.gantt,
|
|
3332
3415
|
tickInterval: void 0,
|
|
3333
3416
|
useWidth: void 0
|
|
3334
3417
|
},
|
|
3335
3418
|
c4: {
|
|
3336
|
-
...
|
|
3419
|
+
...q.c4,
|
|
3337
3420
|
useWidth: void 0,
|
|
3338
|
-
personFont: /* @__PURE__ */
|
|
3421
|
+
personFont: /* @__PURE__ */ e(function() {
|
|
3339
3422
|
return {
|
|
3340
3423
|
fontFamily: this.personFontFamily,
|
|
3341
3424
|
fontSize: this.personFontSize,
|
|
@@ -3343,150 +3426,150 @@ var O = {
|
|
|
3343
3426
|
};
|
|
3344
3427
|
}, "personFont"),
|
|
3345
3428
|
flowchart: {
|
|
3346
|
-
...
|
|
3429
|
+
...q.flowchart,
|
|
3347
3430
|
inheritDir: !1
|
|
3348
3431
|
},
|
|
3349
|
-
external_personFont: /* @__PURE__ */
|
|
3432
|
+
external_personFont: /* @__PURE__ */ e(function() {
|
|
3350
3433
|
return {
|
|
3351
3434
|
fontFamily: this.external_personFontFamily,
|
|
3352
3435
|
fontSize: this.external_personFontSize,
|
|
3353
3436
|
fontWeight: this.external_personFontWeight
|
|
3354
3437
|
};
|
|
3355
3438
|
}, "external_personFont"),
|
|
3356
|
-
systemFont: /* @__PURE__ */
|
|
3439
|
+
systemFont: /* @__PURE__ */ e(function() {
|
|
3357
3440
|
return {
|
|
3358
3441
|
fontFamily: this.systemFontFamily,
|
|
3359
3442
|
fontSize: this.systemFontSize,
|
|
3360
3443
|
fontWeight: this.systemFontWeight
|
|
3361
3444
|
};
|
|
3362
3445
|
}, "systemFont"),
|
|
3363
|
-
external_systemFont: /* @__PURE__ */
|
|
3446
|
+
external_systemFont: /* @__PURE__ */ e(function() {
|
|
3364
3447
|
return {
|
|
3365
3448
|
fontFamily: this.external_systemFontFamily,
|
|
3366
3449
|
fontSize: this.external_systemFontSize,
|
|
3367
3450
|
fontWeight: this.external_systemFontWeight
|
|
3368
3451
|
};
|
|
3369
3452
|
}, "external_systemFont"),
|
|
3370
|
-
system_dbFont: /* @__PURE__ */
|
|
3453
|
+
system_dbFont: /* @__PURE__ */ e(function() {
|
|
3371
3454
|
return {
|
|
3372
3455
|
fontFamily: this.system_dbFontFamily,
|
|
3373
3456
|
fontSize: this.system_dbFontSize,
|
|
3374
3457
|
fontWeight: this.system_dbFontWeight
|
|
3375
3458
|
};
|
|
3376
3459
|
}, "system_dbFont"),
|
|
3377
|
-
external_system_dbFont: /* @__PURE__ */
|
|
3460
|
+
external_system_dbFont: /* @__PURE__ */ e(function() {
|
|
3378
3461
|
return {
|
|
3379
3462
|
fontFamily: this.external_system_dbFontFamily,
|
|
3380
3463
|
fontSize: this.external_system_dbFontSize,
|
|
3381
3464
|
fontWeight: this.external_system_dbFontWeight
|
|
3382
3465
|
};
|
|
3383
3466
|
}, "external_system_dbFont"),
|
|
3384
|
-
system_queueFont: /* @__PURE__ */
|
|
3467
|
+
system_queueFont: /* @__PURE__ */ e(function() {
|
|
3385
3468
|
return {
|
|
3386
3469
|
fontFamily: this.system_queueFontFamily,
|
|
3387
3470
|
fontSize: this.system_queueFontSize,
|
|
3388
3471
|
fontWeight: this.system_queueFontWeight
|
|
3389
3472
|
};
|
|
3390
3473
|
}, "system_queueFont"),
|
|
3391
|
-
external_system_queueFont: /* @__PURE__ */
|
|
3474
|
+
external_system_queueFont: /* @__PURE__ */ e(function() {
|
|
3392
3475
|
return {
|
|
3393
3476
|
fontFamily: this.external_system_queueFontFamily,
|
|
3394
3477
|
fontSize: this.external_system_queueFontSize,
|
|
3395
3478
|
fontWeight: this.external_system_queueFontWeight
|
|
3396
3479
|
};
|
|
3397
3480
|
}, "external_system_queueFont"),
|
|
3398
|
-
containerFont: /* @__PURE__ */
|
|
3481
|
+
containerFont: /* @__PURE__ */ e(function() {
|
|
3399
3482
|
return {
|
|
3400
3483
|
fontFamily: this.containerFontFamily,
|
|
3401
3484
|
fontSize: this.containerFontSize,
|
|
3402
3485
|
fontWeight: this.containerFontWeight
|
|
3403
3486
|
};
|
|
3404
3487
|
}, "containerFont"),
|
|
3405
|
-
external_containerFont: /* @__PURE__ */
|
|
3488
|
+
external_containerFont: /* @__PURE__ */ e(function() {
|
|
3406
3489
|
return {
|
|
3407
3490
|
fontFamily: this.external_containerFontFamily,
|
|
3408
3491
|
fontSize: this.external_containerFontSize,
|
|
3409
3492
|
fontWeight: this.external_containerFontWeight
|
|
3410
3493
|
};
|
|
3411
3494
|
}, "external_containerFont"),
|
|
3412
|
-
container_dbFont: /* @__PURE__ */
|
|
3495
|
+
container_dbFont: /* @__PURE__ */ e(function() {
|
|
3413
3496
|
return {
|
|
3414
3497
|
fontFamily: this.container_dbFontFamily,
|
|
3415
3498
|
fontSize: this.container_dbFontSize,
|
|
3416
3499
|
fontWeight: this.container_dbFontWeight
|
|
3417
3500
|
};
|
|
3418
3501
|
}, "container_dbFont"),
|
|
3419
|
-
external_container_dbFont: /* @__PURE__ */
|
|
3502
|
+
external_container_dbFont: /* @__PURE__ */ e(function() {
|
|
3420
3503
|
return {
|
|
3421
3504
|
fontFamily: this.external_container_dbFontFamily,
|
|
3422
3505
|
fontSize: this.external_container_dbFontSize,
|
|
3423
3506
|
fontWeight: this.external_container_dbFontWeight
|
|
3424
3507
|
};
|
|
3425
3508
|
}, "external_container_dbFont"),
|
|
3426
|
-
container_queueFont: /* @__PURE__ */
|
|
3509
|
+
container_queueFont: /* @__PURE__ */ e(function() {
|
|
3427
3510
|
return {
|
|
3428
3511
|
fontFamily: this.container_queueFontFamily,
|
|
3429
3512
|
fontSize: this.container_queueFontSize,
|
|
3430
3513
|
fontWeight: this.container_queueFontWeight
|
|
3431
3514
|
};
|
|
3432
3515
|
}, "container_queueFont"),
|
|
3433
|
-
external_container_queueFont: /* @__PURE__ */
|
|
3516
|
+
external_container_queueFont: /* @__PURE__ */ e(function() {
|
|
3434
3517
|
return {
|
|
3435
3518
|
fontFamily: this.external_container_queueFontFamily,
|
|
3436
3519
|
fontSize: this.external_container_queueFontSize,
|
|
3437
3520
|
fontWeight: this.external_container_queueFontWeight
|
|
3438
3521
|
};
|
|
3439
3522
|
}, "external_container_queueFont"),
|
|
3440
|
-
componentFont: /* @__PURE__ */
|
|
3523
|
+
componentFont: /* @__PURE__ */ e(function() {
|
|
3441
3524
|
return {
|
|
3442
3525
|
fontFamily: this.componentFontFamily,
|
|
3443
3526
|
fontSize: this.componentFontSize,
|
|
3444
3527
|
fontWeight: this.componentFontWeight
|
|
3445
3528
|
};
|
|
3446
3529
|
}, "componentFont"),
|
|
3447
|
-
external_componentFont: /* @__PURE__ */
|
|
3530
|
+
external_componentFont: /* @__PURE__ */ e(function() {
|
|
3448
3531
|
return {
|
|
3449
3532
|
fontFamily: this.external_componentFontFamily,
|
|
3450
3533
|
fontSize: this.external_componentFontSize,
|
|
3451
3534
|
fontWeight: this.external_componentFontWeight
|
|
3452
3535
|
};
|
|
3453
3536
|
}, "external_componentFont"),
|
|
3454
|
-
component_dbFont: /* @__PURE__ */
|
|
3537
|
+
component_dbFont: /* @__PURE__ */ e(function() {
|
|
3455
3538
|
return {
|
|
3456
3539
|
fontFamily: this.component_dbFontFamily,
|
|
3457
3540
|
fontSize: this.component_dbFontSize,
|
|
3458
3541
|
fontWeight: this.component_dbFontWeight
|
|
3459
3542
|
};
|
|
3460
3543
|
}, "component_dbFont"),
|
|
3461
|
-
external_component_dbFont: /* @__PURE__ */
|
|
3544
|
+
external_component_dbFont: /* @__PURE__ */ e(function() {
|
|
3462
3545
|
return {
|
|
3463
3546
|
fontFamily: this.external_component_dbFontFamily,
|
|
3464
3547
|
fontSize: this.external_component_dbFontSize,
|
|
3465
3548
|
fontWeight: this.external_component_dbFontWeight
|
|
3466
3549
|
};
|
|
3467
3550
|
}, "external_component_dbFont"),
|
|
3468
|
-
component_queueFont: /* @__PURE__ */
|
|
3551
|
+
component_queueFont: /* @__PURE__ */ e(function() {
|
|
3469
3552
|
return {
|
|
3470
3553
|
fontFamily: this.component_queueFontFamily,
|
|
3471
3554
|
fontSize: this.component_queueFontSize,
|
|
3472
3555
|
fontWeight: this.component_queueFontWeight
|
|
3473
3556
|
};
|
|
3474
3557
|
}, "component_queueFont"),
|
|
3475
|
-
external_component_queueFont: /* @__PURE__ */
|
|
3558
|
+
external_component_queueFont: /* @__PURE__ */ e(function() {
|
|
3476
3559
|
return {
|
|
3477
3560
|
fontFamily: this.external_component_queueFontFamily,
|
|
3478
3561
|
fontSize: this.external_component_queueFontSize,
|
|
3479
3562
|
fontWeight: this.external_component_queueFontWeight
|
|
3480
3563
|
};
|
|
3481
3564
|
}, "external_component_queueFont"),
|
|
3482
|
-
boundaryFont: /* @__PURE__ */
|
|
3565
|
+
boundaryFont: /* @__PURE__ */ e(function() {
|
|
3483
3566
|
return {
|
|
3484
3567
|
fontFamily: this.boundaryFontFamily,
|
|
3485
3568
|
fontSize: this.boundaryFontSize,
|
|
3486
3569
|
fontWeight: this.boundaryFontWeight
|
|
3487
3570
|
};
|
|
3488
3571
|
}, "boundaryFont"),
|
|
3489
|
-
messageFont: /* @__PURE__ */
|
|
3572
|
+
messageFont: /* @__PURE__ */ e(function() {
|
|
3490
3573
|
return {
|
|
3491
3574
|
fontFamily: this.messageFontFamily,
|
|
3492
3575
|
fontSize: this.messageFontSize,
|
|
@@ -3495,26 +3578,27 @@ var O = {
|
|
|
3495
3578
|
}, "messageFont")
|
|
3496
3579
|
},
|
|
3497
3580
|
pie: {
|
|
3498
|
-
...
|
|
3581
|
+
...q.pie,
|
|
3499
3582
|
useWidth: 984
|
|
3500
3583
|
},
|
|
3501
3584
|
xyChart: {
|
|
3502
|
-
...
|
|
3585
|
+
...q.xyChart,
|
|
3503
3586
|
useWidth: void 0
|
|
3504
3587
|
},
|
|
3505
3588
|
requirement: {
|
|
3506
|
-
...
|
|
3589
|
+
...q.requirement,
|
|
3507
3590
|
useWidth: void 0
|
|
3508
3591
|
},
|
|
3509
|
-
packet: { ...
|
|
3510
|
-
eventmodeling: { ...
|
|
3592
|
+
packet: { ...q.packet },
|
|
3593
|
+
eventmodeling: { ...q.eventmodeling },
|
|
3511
3594
|
treeView: {
|
|
3512
|
-
...
|
|
3595
|
+
...q.treeView,
|
|
3513
3596
|
useWidth: void 0
|
|
3514
3597
|
},
|
|
3515
|
-
radar: { ...
|
|
3598
|
+
radar: { ...q.radar },
|
|
3599
|
+
usecase: { ...q.usecase },
|
|
3516
3600
|
railroad: {
|
|
3517
|
-
...
|
|
3601
|
+
...q.railroad,
|
|
3518
3602
|
fontSize: void 0,
|
|
3519
3603
|
fontFamily: void 0,
|
|
3520
3604
|
terminalFill: void 0,
|
|
@@ -3532,9 +3616,9 @@ var O = {
|
|
|
3532
3616
|
specialStroke: void 0,
|
|
3533
3617
|
ruleNameColor: void 0
|
|
3534
3618
|
},
|
|
3535
|
-
ishikawa: { ...
|
|
3619
|
+
ishikawa: { ...q.ishikawa },
|
|
3536
3620
|
sankey: {
|
|
3537
|
-
...
|
|
3621
|
+
...q.sankey,
|
|
3538
3622
|
nodeColors: void 0
|
|
3539
3623
|
},
|
|
3540
3624
|
treemap: {
|
|
@@ -3549,225 +3633,235 @@ var O = {
|
|
|
3549
3633
|
labelFontSize: 14,
|
|
3550
3634
|
valueFormat: ","
|
|
3551
3635
|
},
|
|
3552
|
-
venn: { ...
|
|
3553
|
-
cynefin: { ...
|
|
3554
|
-
},
|
|
3636
|
+
venn: { ...q.venn },
|
|
3637
|
+
cynefin: { ...q.cynefin }
|
|
3638
|
+
}, $t = /* @__PURE__ */ e((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
|
|
3555
3639
|
...n,
|
|
3556
3640
|
t + r,
|
|
3557
|
-
|
|
3558
|
-
] : [...n, t + r], []), "keyify"),
|
|
3641
|
+
...$t(e[r], "")
|
|
3642
|
+
] : [...n, t + r], []), "keyify"), en = new Set($t(Qt, "")), tn = Qt, nn = {
|
|
3643
|
+
"flowchart-v2": "flowchart",
|
|
3644
|
+
"flowchart-elk": "flowchart",
|
|
3645
|
+
classDiagram: "class",
|
|
3646
|
+
stateDiagram: "state",
|
|
3647
|
+
xychart: "xyChart",
|
|
3648
|
+
railroadAbnf: "railroad",
|
|
3649
|
+
railroadEbnf: "railroad",
|
|
3650
|
+
railroadPeg: "railroad"
|
|
3651
|
+
}, rn = /* @__PURE__ */ e((e) => nn[e] ?? e, "getDiagramConfigKey"), an = {
|
|
3559
3652
|
nodeColors: /^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,
|
|
3560
3653
|
filenameIcons: /^[\w-]+(?::[\w-]+)?$/,
|
|
3561
3654
|
extensionIcons: /^[\w-]+(?::[\w-]+)?$/
|
|
3562
|
-
},
|
|
3563
|
-
for (let
|
|
3564
|
-
let i = e[
|
|
3565
|
-
(
|
|
3566
|
-
}
|
|
3567
|
-
}, "sanitizeDictionaryConfig"),
|
|
3568
|
-
if (
|
|
3569
|
-
if (Array.isArray(e))
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
continue;
|
|
3577
|
-
}
|
|
3578
|
-
if (typeof e[n] == "object") {
|
|
3579
|
-
let r = Ut[n];
|
|
3580
|
-
r ? Wt(e[n], r) : (t.debug("sanitizing object", n), Gt(e[n]));
|
|
3581
|
-
continue;
|
|
3582
|
-
}
|
|
3583
|
-
for (let r of [
|
|
3655
|
+
}, on = /* @__PURE__ */ e((e, t) => {
|
|
3656
|
+
for (let n of Object.keys(e)) {
|
|
3657
|
+
let i = e[n];
|
|
3658
|
+
(n.startsWith("__") || n.includes("proto") || n.includes("constr") || typeof i != "string" || !t.test(i)) && (r.debug("sanitize deleting dictionary entry:", n, i), delete e[n]);
|
|
3659
|
+
}
|
|
3660
|
+
}, "sanitizeDictionaryConfig"), sn = /* @__PURE__ */ e((e) => {
|
|
3661
|
+
if (r.debug("sanitizeDirective called with", e), typeof e == "object" && e) {
|
|
3662
|
+
if (Array.isArray(e)) e.forEach((e) => sn(e));
|
|
3663
|
+
else {
|
|
3664
|
+
for (let t of Object.keys(e)) if (r.debug("Checking key", t), t.startsWith("__") || t.includes("proto") || t.includes("constr") || !en.has(t) || e[t] == null) r.debug("sanitize deleting key: ", t), delete e[t];
|
|
3665
|
+
else if (typeof e[t] == "object") {
|
|
3666
|
+
let n = an[t];
|
|
3667
|
+
n ? on(e[t], n) : (r.debug("sanitizing object", t), sn(e[t]));
|
|
3668
|
+
} else for (let n of [
|
|
3584
3669
|
"themeCSS",
|
|
3585
3670
|
"fontFamily",
|
|
3586
3671
|
"altFontFamily"
|
|
3587
|
-
])
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3672
|
+
]) t.includes(n) && (r.debug("sanitizing css option", t), e[t] = J(e[t]));
|
|
3673
|
+
if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
|
|
3674
|
+
let n = e.themeVariables[t];
|
|
3675
|
+
n?.match && !n.match(/^[\d "#%(),.;A-Za-z]+$/) && (e.themeVariables[t] = "");
|
|
3676
|
+
}
|
|
3677
|
+
r.debug("After sanitization", e);
|
|
3592
3678
|
}
|
|
3593
|
-
t.debug("After sanitization", e);
|
|
3594
3679
|
}
|
|
3595
|
-
}, "sanitizeDirective"),
|
|
3680
|
+
}, "sanitizeDirective"), J = /* @__PURE__ */ e((e) => {
|
|
3596
3681
|
let t = 0, n = 0;
|
|
3597
3682
|
for (let r of e) {
|
|
3598
3683
|
if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
|
|
3599
3684
|
r === "{" ? t++ : r === "}" && n++;
|
|
3600
3685
|
}
|
|
3601
3686
|
return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
|
|
3602
|
-
}, "sanitizeCss"),
|
|
3687
|
+
}, "sanitizeCss"), Y = Object.freeze(tn), cn = [
|
|
3688
|
+
"theme",
|
|
3689
|
+
"look",
|
|
3690
|
+
"layout"
|
|
3691
|
+
], ln = /* @__PURE__ */ new Set([
|
|
3692
|
+
"classic",
|
|
3693
|
+
"handDrawn",
|
|
3694
|
+
"neo"
|
|
3695
|
+
]), un = /* @__PURE__ */ e((e, t) => e === "theme" ? t === "null" || Object.hasOwn(K, t) : e !== "look" || ln.has(t), "isUsableAppearance"), dn = /* @__PURE__ */ e((e, t, n) => {
|
|
3696
|
+
if (e) return [e[t]?.[n], e[n]].find((e) => e !== void 0 && un(n, e));
|
|
3697
|
+
}, "readAppearance"), fn = /* @__PURE__ */ e((e) => !(e === !1 || [
|
|
3603
3698
|
"false",
|
|
3604
3699
|
"null",
|
|
3605
3700
|
"0"
|
|
3606
|
-
].includes(String(e).trim().toLowerCase())), "evaluate"),
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3701
|
+
].includes(String(e).trim().toLowerCase())), "evaluate"), X = B({}, Y), pn, mn = {}, hn = [], Z = B({}, Y), gn, _n = /* @__PURE__ */ e((e, t) => {
|
|
3702
|
+
if (!gn) return;
|
|
3703
|
+
let n = [
|
|
3704
|
+
t,
|
|
3705
|
+
...[...hn].reverse(),
|
|
3706
|
+
mn,
|
|
3707
|
+
Y
|
|
3708
|
+
], r = e[gn];
|
|
3709
|
+
for (let t of cn) for (let i of n) {
|
|
3710
|
+
let n = dn(i, gn, t);
|
|
3711
|
+
if (n !== void 0) {
|
|
3712
|
+
e[t] = n, r?.[t] !== void 0 && (r[t] = n);
|
|
3713
|
+
break;
|
|
3714
|
+
}
|
|
3715
|
+
}
|
|
3716
|
+
}, "resolveAppearance"), Q = /* @__PURE__ */ e((e, t) => {
|
|
3717
|
+
let n = B({}, e), r = {};
|
|
3718
|
+
for (let e of t) Tn(e), r = B(r, e);
|
|
3719
|
+
if (n = B(n, r), _n(n, r), (r.theme || n.theme !== e.theme) && n.theme && Object.hasOwn(K, n.theme)) {
|
|
3720
|
+
let e = B(B({}, pn).themeVariables || {}, r.themeVariables);
|
|
3721
|
+
n.themeVariables = K[n.theme].getThemeVariables(e);
|
|
3722
|
+
}
|
|
3723
|
+
return Z = n, jn(Z), Z;
|
|
3724
|
+
}, "updateCurrentConfig"), vn = /* @__PURE__ */ e((e) => {
|
|
3725
|
+
gn = e === void 0 ? void 0 : rn(e), Q(X, hn);
|
|
3726
|
+
}, "setDiagramConfigScope"), yn = /* @__PURE__ */ e((e) => (X = B({}, Y), X = B(X, e), mn = B({}, e), e.theme && Object.hasOwn(K, e.theme) && (X.themeVariables = K[e.theme].getThemeVariables(e.themeVariables)), Q(X, hn), X), "setSiteConfig"), bn = /* @__PURE__ */ e((e) => {
|
|
3727
|
+
pn = B({}, e);
|
|
3728
|
+
}, "saveConfigFromInitialize"), xn = /* @__PURE__ */ e((e) => (X = B(X, e), mn = B(mn, e), Q(X, hn), X), "updateSiteConfig"), Sn = /* @__PURE__ */ e(() => B({}, X), "getSiteConfig"), Cn = /* @__PURE__ */ e((e) => (Q(Z, [e]), wn()), "setConfig"), wn = /* @__PURE__ */ e(() => B({}, Z), "getConfig"), Tn = /* @__PURE__ */ e((e) => {
|
|
3729
|
+
e && (["secure", ...X.secure ?? []].forEach((t) => {
|
|
3730
|
+
Object.hasOwn(e, t) && (r.debug(`Denied attempt to modify a secure key ${t}`, e[t]), delete e[t]);
|
|
3619
3731
|
}), Object.keys(e).forEach((t) => {
|
|
3620
3732
|
t.startsWith("__") && delete e[t];
|
|
3621
3733
|
}), Object.keys(e).forEach((t) => {
|
|
3622
|
-
typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" &&
|
|
3734
|
+
typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && Tn(e[t]);
|
|
3623
3735
|
}));
|
|
3624
|
-
}, "sanitize"),
|
|
3625
|
-
|
|
3736
|
+
}, "sanitize"), En = /* @__PURE__ */ e((e) => {
|
|
3737
|
+
sn(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
|
|
3626
3738
|
...e.themeVariables,
|
|
3627
3739
|
fontFamily: e.fontFamily
|
|
3628
|
-
}),
|
|
3629
|
-
}, "addDirective"),
|
|
3630
|
-
|
|
3631
|
-
}, "reset"),
|
|
3740
|
+
}), hn.push(e), Q(X, hn);
|
|
3741
|
+
}, "addDirective"), Dn = /* @__PURE__ */ e((e = X) => {
|
|
3742
|
+
hn = [], gn = void 0, Q(e, hn);
|
|
3743
|
+
}, "reset"), On = {
|
|
3632
3744
|
LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",
|
|
3633
3745
|
FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
|
|
3634
|
-
},
|
|
3635
|
-
|
|
3636
|
-
}, "issueWarning"),
|
|
3637
|
-
e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) &&
|
|
3638
|
-
}, "checkConfig"),
|
|
3746
|
+
}, kn = {}, An = /* @__PURE__ */ e((e) => {
|
|
3747
|
+
kn[e] || (r.warn(On[e]), kn[e] = !0);
|
|
3748
|
+
}, "issueWarning"), jn = /* @__PURE__ */ e((e) => {
|
|
3749
|
+
e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && An("LAZY_LOAD_DEPRECATED");
|
|
3750
|
+
}, "checkConfig"), Mn = /* @__PURE__ */ e(() => {
|
|
3639
3751
|
let e = {};
|
|
3640
|
-
|
|
3641
|
-
for (let t of
|
|
3752
|
+
pn && (e = B(e, pn));
|
|
3753
|
+
for (let t of hn) e = B(e, t);
|
|
3642
3754
|
return e;
|
|
3643
|
-
}, "getUserDefinedConfig"),
|
|
3644
|
-
static {
|
|
3645
|
-
n(this, "UnknownDiagramError");
|
|
3646
|
-
}
|
|
3647
|
-
constructor(e) {
|
|
3648
|
-
super(e), this.name = "UnknownDiagramError";
|
|
3649
|
-
}
|
|
3650
|
-
}, Z = {}, gn = /* @__PURE__ */ n(function(e, t) {
|
|
3651
|
-
e = e.replace(fn, "").replace(pn, "").replace(mn, "\n");
|
|
3652
|
-
for (let [n, { detector: r }] of Object.entries(Z)) if (r(e, t)) return n;
|
|
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) => {
|
|
3657
|
-
Z[e] && t.warn(`Detector with key ${e} already exists. Overwriting.`), Z[e] = {
|
|
3658
|
-
detector: n,
|
|
3659
|
-
loader: r
|
|
3660
|
-
}, t.debug(`Detector with key ${e} added${r ? " with loader" : ""}`);
|
|
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__ */ (() => {
|
|
3755
|
+
}, "getUserDefinedConfig"), Nn = /* @__PURE__ */ e((e) => (e.flowchart?.htmlLabels != null && An("FLOWCHART_HTML_LABELS_DEPRECATED"), fn(e.htmlLabels ?? e.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), Pn = /<\/?br\s*\/?>/gi, Fn = new RegExp(Pn.source, "i"), In = /* @__PURE__ */ e((e) => e ? Gn(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), $ = /* @__PURE__ */ (() => {
|
|
3662
3756
|
let e = !1;
|
|
3663
3757
|
return () => {
|
|
3664
|
-
e ||= (
|
|
3758
|
+
e ||= (Ln(), !0);
|
|
3665
3759
|
};
|
|
3666
3760
|
})();
|
|
3667
|
-
function
|
|
3761
|
+
function Ln() {
|
|
3668
3762
|
let e = "data-temp-href-target";
|
|
3669
|
-
|
|
3763
|
+
C.addHook("beforeSanitizeAttributes", (t) => {
|
|
3670
3764
|
t.tagName === "A" && t.hasAttribute("target") && t.setAttribute(e, t.getAttribute("target") ?? "");
|
|
3671
|
-
}),
|
|
3765
|
+
}), C.addHook("afterSanitizeAttributes", (t) => {
|
|
3672
3766
|
t.tagName === "A" && t.hasAttribute(e) && (t.setAttribute("target", t.getAttribute(e) ?? ""), t.removeAttribute(e), t.getAttribute("target") === "_blank" && t.setAttribute("rel", "noopener"));
|
|
3673
3767
|
});
|
|
3674
3768
|
}
|
|
3675
|
-
|
|
3676
|
-
var
|
|
3677
|
-
if (
|
|
3769
|
+
e(Ln, "setupDompurifyHooks");
|
|
3770
|
+
var Rn = /* @__PURE__ */ e((e) => ($(), C.sanitize(e)), "removeScript"), zn = /* @__PURE__ */ e((e, t) => {
|
|
3771
|
+
if (Nn(t)) {
|
|
3678
3772
|
let n = t.securityLevel;
|
|
3679
|
-
n === "antiscript" || n === "strict" || n === "sandbox" ? e =
|
|
3773
|
+
n === "antiscript" || n === "strict" || n === "sandbox" ? e = Rn(e) : n !== "loose" && (e = Gn(e), e = e.replace(/</g, "<").replace(/>/g, ">"), e = e.replace(/=/g, "="), e = Wn(e));
|
|
3680
3774
|
}
|
|
3681
3775
|
return e;
|
|
3682
|
-
}, "sanitizeMore"),
|
|
3776
|
+
}, "sanitizeMore"), Bn = /* @__PURE__ */ e((e, t) => e && (e = t.dompurifyConfig ? C.sanitize(zn(e, t), t.dompurifyConfig).toString() : C.sanitize(zn(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), Vn = /* @__PURE__ */ e((e, t) => typeof e == "string" ? Bn(e, t) : e.flat().map((e) => Bn(e, t)), "sanitizeTextOrArray"), Hn = /* @__PURE__ */ e((e) => Fn.test(e), "hasBreaks"), Un = /* @__PURE__ */ e((e) => e.split(Pn), "splitBreaks"), Wn = /* @__PURE__ */ e((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), Gn = /* @__PURE__ */ e((e) => e.replace(Pn, "#br#"), "breakToPlaceholder"), Kn = /* @__PURE__ */ e((e) => {
|
|
3683
3777
|
let t = "";
|
|
3684
3778
|
return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
|
|
3685
|
-
}, "getUrl"),
|
|
3779
|
+
}, "getUrl"), qn = /* @__PURE__ */ e(function(...e) {
|
|
3686
3780
|
let t = e.filter((e) => !isNaN(e));
|
|
3687
3781
|
return Math.max(...t);
|
|
3688
|
-
}, "getMax"),
|
|
3782
|
+
}, "getMax"), Jn = /* @__PURE__ */ e(function(...e) {
|
|
3689
3783
|
let t = e.filter((e) => !isNaN(e));
|
|
3690
3784
|
return Math.min(...t);
|
|
3691
|
-
}, "getMin"),
|
|
3785
|
+
}, "getMin"), Yn = /* @__PURE__ */ e(function(e) {
|
|
3692
3786
|
let t = e.split(/(,)/), n = [];
|
|
3693
3787
|
for (let e = 0; e < t.length; e++) {
|
|
3694
3788
|
let r = t[e];
|
|
3695
3789
|
if (r === "," && e > 0 && e + 1 < t.length) {
|
|
3696
3790
|
let i = t[e - 1], a = t[e + 1];
|
|
3697
|
-
|
|
3791
|
+
Zn(i, a) && (r = i + "," + a, e++, n.pop());
|
|
3698
3792
|
}
|
|
3699
|
-
n.push(
|
|
3793
|
+
n.push(Qn(r));
|
|
3700
3794
|
}
|
|
3701
3795
|
return n.join("");
|
|
3702
|
-
}, "parseGenericTypes"),
|
|
3703
|
-
let n =
|
|
3796
|
+
}, "parseGenericTypes"), Xn = /* @__PURE__ */ e((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), Zn = /* @__PURE__ */ e((e, t) => {
|
|
3797
|
+
let n = Xn(e, "~"), r = Xn(t, "~");
|
|
3704
3798
|
return n === 1 && r === 1;
|
|
3705
|
-
}, "shouldCombineSets"),
|
|
3706
|
-
let t =
|
|
3799
|
+
}, "shouldCombineSets"), Qn = /* @__PURE__ */ e((e) => {
|
|
3800
|
+
let t = Xn(e, "~"), n = !1;
|
|
3707
3801
|
if (t <= 1) return e;
|
|
3708
3802
|
t % 2 != 0 && e.startsWith("~") && (e = e.substring(1), n = !0);
|
|
3709
3803
|
let r = [...e], i = r.indexOf("~"), a = r.lastIndexOf("~");
|
|
3710
3804
|
for (; i !== -1 && a !== -1 && i !== a;) r[i] = "<", r[a] = ">", i = r.indexOf("~"), a = r.lastIndexOf("~");
|
|
3711
3805
|
return n && r.unshift("~"), r.join("");
|
|
3712
|
-
}, "processSet"),
|
|
3806
|
+
}, "processSet"), $n = /* @__PURE__ */ e(() => window.MathMLElement !== void 0, "isMathMLSupported"), er = /\$\$(.*?)\$\$/g, tr = /* @__PURE__ */ e((e) => (e.match(er)?.length ?? 0) > 0, "hasKatex"), nr = /* @__PURE__ */ e(async (e, t) => {
|
|
3713
3807
|
let n = document.createElement("div");
|
|
3714
|
-
n.innerHTML = await
|
|
3808
|
+
n.innerHTML = await ir(e, t), n.id = "katex-temp", n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", n);
|
|
3715
3809
|
let r = {
|
|
3716
3810
|
width: n.clientWidth,
|
|
3717
3811
|
height: n.clientHeight
|
|
3718
3812
|
};
|
|
3719
3813
|
return n.remove(), r;
|
|
3720
|
-
}, "calculateMathMLDimensions"),
|
|
3721
|
-
if (!
|
|
3722
|
-
if (!(
|
|
3814
|
+
}, "calculateMathMLDimensions"), rr = /* @__PURE__ */ e(async (e, t) => {
|
|
3815
|
+
if (!tr(e)) return e;
|
|
3816
|
+
if (!($n() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(er, "MathML is unsupported in this environment.");
|
|
3723
3817
|
{
|
|
3724
|
-
let { default: n } = await import("./katex-
|
|
3725
|
-
return e.split(
|
|
3818
|
+
let { default: n } = await import("./katex-CDhNh-ZQ.js"), r = t.forceLegacyMathML || !$n() && t.legacyMathML ? "htmlAndMathml" : "mathml";
|
|
3819
|
+
return e.split(Pn).map((e) => tr(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(er, (e, t) => n.renderToString(t, {
|
|
3726
3820
|
throwOnError: !0,
|
|
3727
3821
|
displayMode: !0,
|
|
3728
3822
|
output: r
|
|
3729
3823
|
}).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
|
|
3730
3824
|
}
|
|
3731
|
-
}, "renderKatexUnsanitized"),
|
|
3732
|
-
getRows:
|
|
3733
|
-
sanitizeText:
|
|
3734
|
-
sanitizeTextOrArray:
|
|
3735
|
-
hasBreaks:
|
|
3736
|
-
splitBreaks:
|
|
3737
|
-
lineBreakRegex:
|
|
3738
|
-
removeScript:
|
|
3739
|
-
getUrl:
|
|
3740
|
-
evaluate:
|
|
3741
|
-
getMax:
|
|
3742
|
-
getMin:
|
|
3743
|
-
},
|
|
3825
|
+
}, "renderKatexUnsanitized"), ir = /* @__PURE__ */ e(async (e, t) => Bn(await rr(e, t), t), "renderKatexSanitized"), ar = {
|
|
3826
|
+
getRows: In,
|
|
3827
|
+
sanitizeText: Bn,
|
|
3828
|
+
sanitizeTextOrArray: Vn,
|
|
3829
|
+
hasBreaks: Hn,
|
|
3830
|
+
splitBreaks: Un,
|
|
3831
|
+
lineBreakRegex: Pn,
|
|
3832
|
+
removeScript: Rn,
|
|
3833
|
+
getUrl: Kn,
|
|
3834
|
+
evaluate: fn,
|
|
3835
|
+
getMax: qn,
|
|
3836
|
+
getMin: Jn
|
|
3837
|
+
}, or = /* @__PURE__ */ e(function(e, t) {
|
|
3744
3838
|
for (let n of t) e.attr(n[0], n[1]);
|
|
3745
|
-
}, "d3Attrs"),
|
|
3839
|
+
}, "d3Attrs"), sr = /* @__PURE__ */ e(function(e, t, n) {
|
|
3746
3840
|
let r = /* @__PURE__ */ new Map();
|
|
3747
3841
|
return n ? (r.set("width", "100%"), r.set("style", `max-width: ${t}px;`)) : (r.set("height", e), r.set("width", t)), r;
|
|
3748
|
-
}, "calculateSvgSizeAttrs"),
|
|
3749
|
-
|
|
3750
|
-
}, "configureSvgSize"),
|
|
3751
|
-
let a =
|
|
3752
|
-
|
|
3842
|
+
}, "calculateSvgSizeAttrs"), cr = /* @__PURE__ */ e(function(e, t, n, r) {
|
|
3843
|
+
or(e, sr(t, n, r));
|
|
3844
|
+
}, "configureSvgSize"), lr = /* @__PURE__ */ e(function(e, t, n, i) {
|
|
3845
|
+
let a = t.node().getBBox(), o = a.width, s = a.height;
|
|
3846
|
+
r.info(`SVG bounds: ${o}x${s}`, a);
|
|
3753
3847
|
let c = 0, l = 0;
|
|
3754
|
-
|
|
3755
|
-
let u = `${a.x -
|
|
3756
|
-
|
|
3757
|
-
}, "setupGraphViewbox"),
|
|
3758
|
-
function
|
|
3848
|
+
r.info(`Graph bounds: ${c}x${l}`, e), c = o + n * 2, l = s + n * 2, r.info(`Calculated bounds: ${c}x${l}`), cr(t, l, c, i);
|
|
3849
|
+
let u = `${a.x - n} ${a.y - n} ${a.width + 2 * n} ${a.height + 2 * n}`;
|
|
3850
|
+
t.attr("viewBox", u);
|
|
3851
|
+
}, "setupGraphViewbox"), ur = {};
|
|
3852
|
+
function dr(e) {
|
|
3759
3853
|
return [...e.cssRules].map((e) => e.cssText).join("\n");
|
|
3760
3854
|
}
|
|
3761
|
-
|
|
3762
|
-
var
|
|
3855
|
+
e(dr, "cssStyleSheetToString");
|
|
3856
|
+
var fr = /* @__PURE__ */ e((e, t, n, i) => {
|
|
3763
3857
|
let a = "";
|
|
3764
|
-
return e in
|
|
3765
|
-
...
|
|
3858
|
+
return e in ur && ur[e] ? a = ur[e]({
|
|
3859
|
+
...n,
|
|
3766
3860
|
svgId: i
|
|
3767
|
-
}) :
|
|
3768
|
-
font-family: ${
|
|
3769
|
-
font-size: ${
|
|
3770
|
-
fill: ${
|
|
3861
|
+
}) : r.warn(`No theme found for ${e}`), `& {
|
|
3862
|
+
font-family: ${n.fontFamily};
|
|
3863
|
+
font-size: ${n.fontSize};
|
|
3864
|
+
fill: ${n.textColor}
|
|
3771
3865
|
}
|
|
3772
3866
|
@keyframes edge-animation-frame {
|
|
3773
3867
|
from {
|
|
@@ -3794,15 +3888,15 @@ var Xn = /* @__PURE__ */ n((e, n, r, i) => {
|
|
|
3794
3888
|
/* Classes common for multiple diagrams */
|
|
3795
3889
|
|
|
3796
3890
|
& .error-icon {
|
|
3797
|
-
fill: ${
|
|
3891
|
+
fill: ${n.errorBkgColor};
|
|
3798
3892
|
}
|
|
3799
3893
|
& .error-text {
|
|
3800
|
-
fill: ${
|
|
3801
|
-
stroke: ${
|
|
3894
|
+
fill: ${n.errorTextColor};
|
|
3895
|
+
stroke: ${n.errorTextColor};
|
|
3802
3896
|
}
|
|
3803
3897
|
|
|
3804
3898
|
& .edge-thickness-normal {
|
|
3805
|
-
stroke-width: ${
|
|
3899
|
+
stroke-width: ${n.strokeWidth ?? 1}px;
|
|
3806
3900
|
}
|
|
3807
3901
|
& .edge-thickness-thick {
|
|
3808
3902
|
stroke-width: 3.5px
|
|
@@ -3822,16 +3916,16 @@ var Xn = /* @__PURE__ */ n((e, n, r, i) => {
|
|
|
3822
3916
|
}
|
|
3823
3917
|
|
|
3824
3918
|
& .marker {
|
|
3825
|
-
fill: ${
|
|
3826
|
-
stroke: ${
|
|
3919
|
+
fill: ${n.lineColor};
|
|
3920
|
+
stroke: ${n.lineColor};
|
|
3827
3921
|
}
|
|
3828
3922
|
& .marker.cross {
|
|
3829
|
-
stroke: ${
|
|
3923
|
+
stroke: ${n.lineColor};
|
|
3830
3924
|
}
|
|
3831
3925
|
|
|
3832
3926
|
& svg {
|
|
3833
|
-
font-family: ${
|
|
3834
|
-
font-size: ${
|
|
3927
|
+
font-family: ${n.fontFamily};
|
|
3928
|
+
font-size: ${n.fontSize};
|
|
3835
3929
|
}
|
|
3836
3930
|
& p {
|
|
3837
3931
|
margin: 0
|
|
@@ -3839,12 +3933,12 @@ var Xn = /* @__PURE__ */ n((e, n, r, i) => {
|
|
|
3839
3933
|
|
|
3840
3934
|
${a}
|
|
3841
3935
|
.node .neo-node {
|
|
3842
|
-
stroke: ${
|
|
3936
|
+
stroke: ${n.nodeBorder};
|
|
3843
3937
|
}
|
|
3844
3938
|
|
|
3845
3939
|
[data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
|
|
3846
|
-
stroke: ${
|
|
3847
|
-
filter: ${
|
|
3940
|
+
stroke: ${n.useGradient ? "url(" + i + "-gradient)" : n.nodeBorder};
|
|
3941
|
+
filter: ${n.dropShadow ? n.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
|
|
3848
3942
|
}
|
|
3849
3943
|
[data-look="neo"].swimlane.cluster rect {
|
|
3850
3944
|
filter: none;
|
|
@@ -3852,22 +3946,22 @@ var Xn = /* @__PURE__ */ n((e, n, r, i) => {
|
|
|
3852
3946
|
|
|
3853
3947
|
|
|
3854
3948
|
[data-look="neo"].node path {
|
|
3855
|
-
stroke: ${
|
|
3856
|
-
stroke-width: ${
|
|
3949
|
+
stroke: ${n.useGradient ? "url(" + i + "-gradient)" : n.nodeBorder};
|
|
3950
|
+
stroke-width: ${n.strokeWidth ?? 1}px;
|
|
3857
3951
|
}
|
|
3858
3952
|
|
|
3859
3953
|
[data-look="neo"].node .outer-path {
|
|
3860
|
-
filter: ${
|
|
3954
|
+
filter: ${n.dropShadow ? n.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
|
|
3861
3955
|
}
|
|
3862
3956
|
|
|
3863
3957
|
[data-look="neo"].node .neo-line path {
|
|
3864
|
-
stroke: ${
|
|
3958
|
+
stroke: ${n.nodeBorder};
|
|
3865
3959
|
filter: none;
|
|
3866
3960
|
}
|
|
3867
3961
|
|
|
3868
3962
|
[data-look="neo"].node circle{
|
|
3869
|
-
stroke: ${
|
|
3870
|
-
filter: ${
|
|
3963
|
+
stroke: ${n.useGradient ? "url(" + i + "-gradient)" : n.nodeBorder};
|
|
3964
|
+
filter: ${n.dropShadow ? n.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
|
|
3871
3965
|
}
|
|
3872
3966
|
|
|
3873
3967
|
[data-look="neo"].node circle .state-start{
|
|
@@ -3875,49 +3969,49 @@ var Xn = /* @__PURE__ */ n((e, n, r, i) => {
|
|
|
3875
3969
|
}
|
|
3876
3970
|
|
|
3877
3971
|
[data-look="neo"].icon-shape .icon {
|
|
3878
|
-
fill: ${
|
|
3879
|
-
filter: ${
|
|
3972
|
+
fill: ${n.useGradient ? "url(" + i + "-gradient)" : n.nodeBorder};
|
|
3973
|
+
filter: ${n.dropShadow ? n.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
|
|
3880
3974
|
}
|
|
3881
3975
|
|
|
3882
3976
|
[data-look="neo"].icon-shape .icon-neo path {
|
|
3883
|
-
stroke: ${
|
|
3884
|
-
filter: ${
|
|
3977
|
+
stroke: ${n.useGradient ? "url(" + i + "-gradient)" : n.nodeBorder};
|
|
3978
|
+
filter: ${n.dropShadow ? n.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
|
|
3885
3979
|
}
|
|
3886
3980
|
|
|
3887
|
-
${
|
|
3981
|
+
${t}
|
|
3888
3982
|
`;
|
|
3889
|
-
}, "getStyles"),
|
|
3890
|
-
t !== void 0 && (
|
|
3891
|
-
}, "addStylesForDiagram"),
|
|
3892
|
-
|
|
3893
|
-
clear: () =>
|
|
3894
|
-
getAccDescription: () =>
|
|
3895
|
-
getAccTitle: () =>
|
|
3896
|
-
getDiagramTitle: () =>
|
|
3897
|
-
setAccDescription: () =>
|
|
3898
|
-
setAccTitle: () =>
|
|
3899
|
-
setDiagramTitle: () =>
|
|
3983
|
+
}, "getStyles"), pr = /* @__PURE__ */ e((e, t) => {
|
|
3984
|
+
t !== void 0 && (ur[e] = t);
|
|
3985
|
+
}, "addStylesForDiagram"), mr = fr, hr = {};
|
|
3986
|
+
t(hr, {
|
|
3987
|
+
clear: () => br,
|
|
3988
|
+
getAccDescription: () => wr,
|
|
3989
|
+
getAccTitle: () => Sr,
|
|
3990
|
+
getDiagramTitle: () => Er,
|
|
3991
|
+
setAccDescription: () => Cr,
|
|
3992
|
+
setAccTitle: () => xr,
|
|
3993
|
+
setDiagramTitle: () => Tr
|
|
3900
3994
|
});
|
|
3901
|
-
var
|
|
3902
|
-
|
|
3903
|
-
}, "clear"),
|
|
3904
|
-
|
|
3905
|
-
}, "setAccTitle"),
|
|
3906
|
-
|
|
3907
|
-
}, "setAccDescription"),
|
|
3908
|
-
|
|
3909
|
-
}, "setDiagramTitle"),
|
|
3910
|
-
|
|
3911
|
-
}, "registerDiagram"),
|
|
3912
|
-
if (e in
|
|
3913
|
-
throw new
|
|
3914
|
-
}, "getDiagram"),
|
|
3995
|
+
var gr = "", _r = "", vr = "", yr = /* @__PURE__ */ e((e) => Bn(e, wn()), "sanitizeText"), br = /* @__PURE__ */ e(() => {
|
|
3996
|
+
gr = "", vr = "", _r = "";
|
|
3997
|
+
}, "clear"), xr = /* @__PURE__ */ e((e) => {
|
|
3998
|
+
gr = yr(e).replace(/^\s+/g, "");
|
|
3999
|
+
}, "setAccTitle"), Sr = /* @__PURE__ */ e(() => gr, "getAccTitle"), Cr = /* @__PURE__ */ e((e) => {
|
|
4000
|
+
vr = yr(e).replace(/\n\s+/g, "\n");
|
|
4001
|
+
}, "setAccDescription"), wr = /* @__PURE__ */ e(() => vr, "getAccDescription"), Tr = /* @__PURE__ */ e((e) => {
|
|
4002
|
+
_r = yr(e);
|
|
4003
|
+
}, "setDiagramTitle"), Er = /* @__PURE__ */ e(() => _r, "getDiagramTitle"), Dr = r, Or = n, kr = wn, Ar = Cn, jr = Y, Mr = /* @__PURE__ */ e((e) => Bn(e, kr()), "sanitizeText"), Nr = lr, Pr = /* @__PURE__ */ e(() => hr, "getCommonDb"), Fr = {}, Ir = /* @__PURE__ */ e((e, t, n) => {
|
|
4004
|
+
Fr[e] && Dr.warn(`Diagram with id ${e} already registered. Overwriting.`), Fr[e] = t, n && Ot(e, n), pr(e, t.styles), t.injectUtils?.(Dr, Or, kr, Mr, Nr, Pr(), () => {});
|
|
4005
|
+
}, "registerDiagram"), Lr = /* @__PURE__ */ e((e) => {
|
|
4006
|
+
if (e in Fr) return Fr[e];
|
|
4007
|
+
throw new Rr(e);
|
|
4008
|
+
}, "getDiagram"), Rr = class extends Error {
|
|
3915
4009
|
static {
|
|
3916
|
-
|
|
4010
|
+
e(this, "DiagramNotFoundError");
|
|
3917
4011
|
}
|
|
3918
4012
|
constructor(e) {
|
|
3919
4013
|
super(`Diagram ${e} not found.`);
|
|
3920
4014
|
}
|
|
3921
4015
|
};
|
|
3922
4016
|
//#endregion
|
|
3923
|
-
export {
|
|
4017
|
+
export { xn as $, Pn as A, Mr as B, Er as C, Kn as D, Lt as E, ir as F, Ar as G, Cr as H, Dn as I, yn as J, vn as K, J as L, Yn as M, Ir as N, Mn as O, Dt as P, K as Q, sn as R, kt as S, Sn as T, xr as U, bn as V, Cn as W, Nr as X, lr as Y, mr as Z, wr as _, br as a, O as at, kr as b, cr as c, jr as d, N as et, tn as f, fn as g, St as h, nr as i, k as it, Tt as j, tr as k, dr as l, z as m, En as n, bt as nt, hr as o, T as ot, Et as p, Tr as q, B as r, j as rt, ar as s, C as st, R as t, M as tt, Y as u, Sr as v, Nn as w, Lr as x, wn as y, Bn as z };
|