@sme.up/ketchup2 2.5.0 → 2.6.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/{arc-MUYNnJxV.cjs → arc-CYi2lpSd.cjs} +1 -1
- package/dist/{arc-D80gVCcI.js → arc-yUAZoqJP.js} +2 -2
- package/dist/architecture-7EHR7CIX-Bzeobe9Y.cjs +1 -0
- package/dist/architecture-7EHR7CIX-C8NPmR2w.js +3 -0
- package/dist/architectureDiagram-3BPJPVTR-C8DI7_Rn.cjs +36 -0
- package/dist/{architectureDiagram-3BPJPVTR-EFK4DMha.js → architectureDiagram-3BPJPVTR-CMX2LiQK.js} +91 -90
- package/dist/array-DZSRzHA_.cjs +1 -0
- package/dist/assets/{imageListAssets.d.ts → shapeListAssets.d.ts} +9 -3
- package/dist/assets/shapeListAssets.d.ts.map +1 -0
- package/dist/basic-components/barcode/barcode.d.ts.map +1 -1
- package/dist/basic-components/card/card-slot-resolver.d.ts +6 -0
- package/dist/basic-components/card/card-slot-resolver.d.ts.map +1 -0
- package/dist/basic-components/card/card-types.d.ts +43 -0
- package/dist/basic-components/card/card-types.d.ts.map +1 -0
- package/dist/basic-components/card/card.d.ts +5 -0
- package/dist/basic-components/card/card.d.ts.map +1 -0
- package/dist/basic-components/card/flow/aside/index.d.ts +2 -0
- package/dist/basic-components/card/flow/aside/index.d.ts.map +1 -0
- package/dist/basic-components/card/flow/compact/index.d.ts +2 -0
- package/dist/basic-components/card/flow/compact/index.d.ts.map +1 -0
- package/dist/basic-components/card/flow/editorial/index.d.ts +2 -0
- package/dist/basic-components/card/flow/editorial/index.d.ts.map +1 -0
- package/dist/basic-components/card/flow/minimal/index.d.ts +2 -0
- package/dist/basic-components/card/flow/minimal/index.d.ts.map +1 -0
- package/dist/basic-components/card/flow/overlay/index.d.ts +2 -0
- package/dist/basic-components/card/flow/overlay/index.d.ts.map +1 -0
- package/dist/basic-components/card/flow/shared/flow-layout.d.ts +4 -0
- package/dist/basic-components/card/flow/shared/flow-layout.d.ts.map +1 -0
- package/dist/basic-components/card/flow/split/index.d.ts +2 -0
- package/dist/basic-components/card/flow/split/index.d.ts.map +1 -0
- package/dist/basic-components/card/flow/spotlight/index.d.ts +2 -0
- package/dist/basic-components/card/flow/spotlight/index.d.ts.map +1 -0
- package/dist/basic-components/card/flow/tiles/index.d.ts +2 -0
- package/dist/basic-components/card/flow/tiles/index.d.ts.map +1 -0
- package/dist/basic-components/card/layout-registry.d.ts +4 -0
- package/dist/basic-components/card/layout-registry.d.ts.map +1 -0
- package/dist/basic-components/card/positional/collaborator/index.d.ts +4 -0
- package/dist/basic-components/card/positional/collaborator/index.d.ts.map +1 -0
- package/dist/basic-components/card/positional/detailed-object/index.d.ts +5 -0
- package/dist/basic-components/card/positional/detailed-object/index.d.ts.map +1 -0
- package/dist/basic-components/card/positional/financial/index.d.ts +4 -0
- package/dist/basic-components/card/positional/financial/index.d.ts.map +1 -0
- package/dist/basic-components/card/positional/folder-grid/index.d.ts +4 -0
- package/dist/basic-components/card/positional/folder-grid/index.d.ts.map +1 -0
- package/dist/basic-components/card/positional/hero/index.d.ts +4 -0
- package/dist/basic-components/card/positional/hero/index.d.ts.map +1 -0
- package/dist/basic-components/card/positional/product/index.d.ts +4 -0
- package/dist/basic-components/card/positional/product/index.d.ts.map +1 -0
- package/dist/basic-components/card/positional/shared/object-card.d.ts +24 -0
- package/dist/basic-components/card/positional/shared/object-card.d.ts.map +1 -0
- package/dist/basic-components/card/positional/shared/utils.d.ts +26 -0
- package/dist/basic-components/card/positional/shared/utils.d.ts.map +1 -0
- package/dist/basic-components/card/positional/simple-object/index.d.ts +5 -0
- package/dist/basic-components/card/positional/simple-object/index.d.ts.map +1 -0
- package/dist/basic-components/card/positional/tooltip/index.d.ts +4 -0
- package/dist/basic-components/card/positional/tooltip/index.d.ts.map +1 -0
- package/dist/basic-components/card/positional/trend/index.d.ts +4 -0
- package/dist/basic-components/card/positional/trend/index.d.ts.map +1 -0
- package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
- package/dist/basic-components/icon/icon.d.ts.map +1 -1
- package/dist/basic-components/image/image.d.ts.map +1 -1
- package/dist/basic-components/image-cell/image-cell-types.d.ts +4 -0
- package/dist/basic-components/image-cell/image-cell-types.d.ts.map +1 -1
- package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
- package/dist/basic-components/password/password.d.ts.map +1 -1
- package/dist/basic-components/qr-code/qr-code-types.d.ts +9 -2
- package/dist/basic-components/qr-code/qr-code-types.d.ts.map +1 -1
- package/dist/basic-components/qr-code/qr-code.d.ts.map +1 -1
- package/dist/basic-components/textfield/textfield-types.d.ts +1 -0
- 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/{blockDiagram-GPEHLZMM-CuzoKhJT.cjs → blockDiagram-GPEHLZMM-C7mogpj_.cjs} +1 -1
- package/dist/{blockDiagram-GPEHLZMM-C3UgY0Z5.js → blockDiagram-GPEHLZMM-fcAaH_Ka.js} +21 -19
- package/dist/{c4Diagram-AAUBKEIU-klnmEOUo.js → c4Diagram-AAUBKEIU-BUOgTWLR.js} +5 -5
- package/dist/{c4Diagram-AAUBKEIU-DU8uXbgK.cjs → c4Diagram-AAUBKEIU-BjsHAdap.cjs} +1 -1
- package/dist/cell-NyD4Bcyq.js +6457 -0
- package/dist/cell-dpOG-xr_.cjs +6 -0
- package/dist/channel-BzP1tmYc.cjs +1 -0
- package/dist/{channel-BbRDdbmM.js → channel-CAhFwf6U.js} +1 -1
- package/dist/{chunk-2J33WTMH-EmvF7iYC.js → chunk-2J33WTMH-BulZYTKs.js} +2 -2
- package/dist/{chunk-2J33WTMH-PlcpVW8G.cjs → chunk-2J33WTMH-DIfvCbWZ.cjs} +1 -1
- package/dist/{chunk-3OPIFGDE-C7wE5oN7.js → chunk-3OPIFGDE-BYuWDDGY.js} +7 -7
- package/dist/{chunk-3OPIFGDE-CT5oNC5X.cjs → chunk-3OPIFGDE-Ohf7vgmX.cjs} +2 -2
- package/dist/{chunk-4BX2VUAB-BO1KRGb1.js → chunk-4BX2VUAB-B74FMcxr.js} +1 -1
- package/dist/chunk-4BX2VUAB-DdliHvKq.cjs +1 -0
- package/dist/{chunk-55IACEB6-b_Ivgrk-.js → chunk-55IACEB6-D5PlvtBC.js} +1 -1
- package/dist/chunk-55IACEB6-DzCdT-ru.cjs +1 -0
- package/dist/{chunk-5ZQYHXKU-BMnKD7Zq.cjs → chunk-5ZQYHXKU-35HHGVyc.cjs} +2 -2
- package/dist/{chunk-5ZQYHXKU-C4uam08j.js → chunk-5ZQYHXKU-BvO58_5C.js} +3 -3
- package/dist/chunk-727SXJPM-BCv3AEZb.cjs +206 -0
- package/dist/{chunk-727SXJPM-Dof0vDVV.js → chunk-727SXJPM-BDsxon3G.js} +73 -70
- package/dist/{chunk-AQP2D5EJ-DdWeFQ4O.cjs → chunk-AQP2D5EJ-CPbTYzEZ.cjs} +2 -2
- package/dist/{chunk-AQP2D5EJ-N9ii4fwJ.js → chunk-AQP2D5EJ-Cp3ieoZF.js} +6 -6
- package/dist/{chunk-BSJP7CBP-Bx5APwBA.js → chunk-BSJP7CBP-BjkTjHJ6.js} +1 -1
- package/dist/{chunk-BSJP7CBP-CaeBFqNU.cjs → chunk-BSJP7CBP-DtjFXF0S.cjs} +1 -1
- package/dist/{chunk-CSCIHK7Q-9WKhcDqw.js → chunk-CSCIHK7Q-Drr_NBLR.js} +598 -1146
- package/dist/chunk-CSCIHK7Q-WWTYrQLt.cjs +122 -0
- package/dist/chunk-Dqa2HsxW.js +20 -0
- package/dist/{chunk-FMBD7UC4-CiO_59ls.cjs → chunk-FMBD7UC4-BLLpskYF.cjs} +2 -2
- package/dist/{chunk-FMBD7UC4-BbggSGOg.js → chunk-FMBD7UC4-Cia16Ryi.js} +1 -1
- package/dist/{chunk-KSCS5N6A-DO8jEi0y.cjs → chunk-KSCS5N6A-DSWnBtbV.cjs} +2 -2
- package/dist/{chunk-KSCS5N6A-BY1s4eGg.js → chunk-KSCS5N6A-pd39ksIM.js} +10 -10
- package/dist/{chunk-L5ZTLDWV-D3UwMopa.js → chunk-L5ZTLDWV-DXk-PQPS.js} +3 -3
- package/dist/{chunk-L5ZTLDWV-BE9udiOh.cjs → chunk-L5ZTLDWV-sRcGREMv.cjs} +1 -1
- package/dist/chunk-LZXEDZCA-4kbGESh2.cjs +1 -0
- package/dist/{chunk-LZXEDZCA-KzBFuWPU.js → chunk-LZXEDZCA-oQMllZja.js} +9 -9
- package/dist/{chunk-ND2GUHAM-CHTke4K8.js → chunk-ND2GUHAM-CKQ1Jk8O.js} +3 -3
- package/dist/{chunk-ND2GUHAM-DdBSZTft.cjs → chunk-ND2GUHAM-See9KDdJ.cjs} +1 -1
- package/dist/{chunk-NNHCCRGN-D_orSz6n.js → chunk-NNHCCRGN-BB1q5NkR.js} +32 -16
- package/dist/{chunk-NNHCCRGN-aKMHXBzL.cjs → chunk-NNHCCRGN-qV8bfiMQ.cjs} +13 -13
- package/dist/{chunk-NZK2D7GU-BVOINLmx.js → chunk-NZK2D7GU-CqugOMaJ.js} +2 -2
- package/dist/{chunk-NZK2D7GU-_twqedIe.cjs → chunk-NZK2D7GU-FNVK0iHI.cjs} +1 -1
- package/dist/{chunk-O5CBEL6O-VsMF4aZB.js → chunk-O5CBEL6O-BIU6TcWp.js} +3 -3
- package/dist/{chunk-O5CBEL6O-CDvi2oZo.cjs → chunk-O5CBEL6O-BU_i0jbb.cjs} +2 -2
- package/dist/{chunk-QZHKN3VN-CHjRGMI2.cjs → chunk-QZHKN3VN-DPdobKra.cjs} +1 -1
- package/dist/{chunk-QZHKN3VN-DCddt14Q.js → chunk-QZHKN3VN-cS9OamWo.js} +1 -1
- package/dist/{chunk-WU5MYG2G-mQn7Wt-i.js → chunk-WU5MYG2G-BL6T82Hi.js} +2 -2
- package/dist/chunk-WU5MYG2G-qi7ZaL3o.cjs +1 -0
- package/dist/{chunk-XPW4576I-BCowsgDU.js → chunk-XPW4576I-B9aC8EBY.js} +1 -1
- package/dist/{chunk-XPW4576I-D_mwgMVU.cjs → chunk-XPW4576I-Dsm0jctf.cjs} +2 -2
- package/dist/chunk-mLOUI7ql.cjs +1 -0
- package/dist/classDiagram-4FO5ZUOK-Dc-Jypl3.js +29 -0
- package/dist/classDiagram-4FO5ZUOK-Dqxk6PU-.cjs +1 -0
- package/dist/classDiagram-v2-Q7XG4LA2-DZ44tKmY.js +29 -0
- package/dist/classDiagram-v2-Q7XG4LA2-Dqxk6PU-.cjs +1 -0
- package/dist/components/echarts/echarts-graph.d.ts.map +1 -1
- package/dist/components/input-panel/assets/data.d.ts +1 -0
- package/dist/components/input-panel/assets/data.d.ts.map +1 -1
- package/dist/components/input-panel/input-panel-types.d.ts +5 -0
- package/dist/components/input-panel/input-panel-types.d.ts.map +1 -1
- package/dist/components/input-panel/input-panel-utils.d.ts +1 -0
- package/dist/components/input-panel/input-panel-utils.d.ts.map +1 -1
- package/dist/components/input-panel/input-panel.d.ts.map +1 -1
- package/dist/components/pdf/pdf-utils.d.ts +1 -1
- package/dist/components/pdf/pdf-utils.d.ts.map +1 -1
- package/dist/components/{image-list → shape-list}/components/error-boundary.d.ts +1 -1
- package/dist/components/{image-list → shape-list}/components/error-boundary.d.ts.map +1 -1
- package/dist/components/shape-list/components/shape-list-drill-down.d.ts +4 -0
- package/dist/components/shape-list/components/shape-list-drill-down.d.ts.map +1 -0
- package/dist/components/{image-list/components/image-list-command-panel.d.ts → shape-list/components/toolbar/command-panel.d.ts} +4 -4
- package/dist/components/shape-list/components/toolbar/command-panel.d.ts.map +1 -0
- package/dist/components/{image-list/components/image-list-command-trigger.d.ts → shape-list/components/toolbar/command-trigger.d.ts} +4 -4
- package/dist/components/shape-list/components/toolbar/command-trigger.d.ts.map +1 -0
- package/dist/components/shape-list/components/toolbar/filter-picker.d.ts +14 -0
- package/dist/components/shape-list/components/toolbar/filter-picker.d.ts.map +1 -0
- package/dist/components/shape-list/components/toolbar/json-viewer.d.ts +11 -0
- package/dist/components/shape-list/components/toolbar/json-viewer.d.ts.map +1 -0
- package/dist/components/shape-list/components/toolbar/navigation-picker.d.ts +15 -0
- package/dist/components/shape-list/components/toolbar/navigation-picker.d.ts.map +1 -0
- package/dist/components/shape-list/components/toolbar/sort-picker.d.ts +14 -0
- package/dist/components/shape-list/components/toolbar/sort-picker.d.ts.map +1 -0
- package/dist/components/shape-list/context/shape-list-context.d.ts +31 -0
- package/dist/components/shape-list/context/shape-list-context.d.ts.map +1 -0
- package/dist/components/shape-list/context/shape-list-filter-context.d.ts +9 -0
- package/dist/components/shape-list/context/shape-list-filter-context.d.ts.map +1 -0
- package/dist/components/shape-list/context/shape-list-sort-context.d.ts +9 -0
- package/dist/components/shape-list/context/shape-list-sort-context.d.ts.map +1 -0
- package/dist/components/{image-list/image-list-state-context.d.ts → shape-list/context/shape-list-state-context.d.ts} +2 -2
- package/dist/components/shape-list/context/shape-list-state-context.d.ts.map +1 -0
- package/dist/components/{image-list → shape-list}/hooks/useCommandPickers.d.ts.map +1 -1
- package/dist/components/shape-list/hooks/useLazyShapeData.d.ts +35 -0
- package/dist/components/shape-list/hooks/useLazyShapeData.d.ts.map +1 -0
- package/dist/components/shape-list/hooks/useLazyShapeData.test.d.ts +2 -0
- package/dist/components/shape-list/hooks/useLazyShapeData.test.d.ts.map +1 -0
- package/dist/components/{image-list → shape-list}/hooks/useNavigation.d.ts +1 -1
- package/dist/components/{image-list → shape-list}/hooks/useNavigation.d.ts.map +1 -1
- package/dist/components/{image-list → shape-list}/hooks/useSelection.d.ts +4 -4
- package/dist/components/{image-list → shape-list}/hooks/useSelection.d.ts.map +1 -1
- package/dist/components/{image-list → shape-list}/hooks/useStripOverflow.d.ts.map +1 -1
- package/dist/components/shape-list/items/node-content.d.ts +47 -0
- package/dist/components/shape-list/items/node-content.d.ts.map +1 -0
- package/dist/components/shape-list/items/shape.d.ts +20 -0
- package/dist/components/shape-list/items/shape.d.ts.map +1 -0
- package/dist/components/shape-list/navigation-modes/_shared/navigation-orchestrator.d.ts +13 -0
- package/dist/components/shape-list/navigation-modes/_shared/navigation-orchestrator.d.ts.map +1 -0
- package/dist/components/shape-list/navigation-modes/_shared/panel/context-menu.d.ts +4 -0
- package/dist/components/shape-list/navigation-modes/_shared/panel/context-menu.d.ts.map +1 -0
- package/dist/components/shape-list/navigation-modes/_shared/panel/index.d.ts +7 -0
- package/dist/components/shape-list/navigation-modes/_shared/panel/index.d.ts.map +1 -0
- package/dist/components/shape-list/navigation-modes/_shared/panel/item-content.d.ts +11 -0
- package/dist/components/shape-list/navigation-modes/_shared/panel/item-content.d.ts.map +1 -0
- package/dist/components/shape-list/navigation-modes/_shared/panel/panel.d.ts +18 -0
- package/dist/components/shape-list/navigation-modes/_shared/panel/panel.d.ts.map +1 -0
- package/dist/components/shape-list/navigation-modes/_shared/panel/rail-item.d.ts +8 -0
- package/dist/components/shape-list/navigation-modes/_shared/panel/rail-item.d.ts.map +1 -0
- package/dist/components/shape-list/navigation-modes/_shared/panel/section-view.d.ts +6 -0
- package/dist/components/shape-list/navigation-modes/_shared/panel/section-view.d.ts.map +1 -0
- package/dist/components/shape-list/navigation-modes/_shared/panel/shell.d.ts +13 -0
- package/dist/components/shape-list/navigation-modes/_shared/panel/shell.d.ts.map +1 -0
- package/dist/components/shape-list/navigation-modes/_shared/panel/tree-item.d.ts +9 -0
- package/dist/components/shape-list/navigation-modes/_shared/panel/tree-item.d.ts.map +1 -0
- package/dist/components/shape-list/navigation-modes/_shared/strip/index.d.ts +4 -0
- package/dist/components/shape-list/navigation-modes/_shared/strip/index.d.ts.map +1 -0
- package/dist/components/{image-list/components → shape-list/navigation-modes/_shared/strip}/strip-child-popup.d.ts +1 -1
- package/dist/components/shape-list/navigation-modes/_shared/strip/strip-child-popup.d.ts.map +1 -0
- package/dist/components/{image-list/components → shape-list/navigation-modes/_shared/strip}/strip-item.d.ts +1 -1
- package/dist/components/shape-list/navigation-modes/_shared/strip/strip-item.d.ts.map +1 -0
- package/dist/components/{image-list/components → shape-list/navigation-modes/_shared/strip}/strip-overflow-button.d.ts +1 -1
- package/dist/components/shape-list/navigation-modes/_shared/strip/strip-overflow-button.d.ts.map +1 -0
- package/dist/components/shape-list/navigation-modes/catalog/index.d.ts +3 -0
- package/dist/components/shape-list/navigation-modes/catalog/index.d.ts.map +1 -0
- package/dist/components/shape-list/navigation-modes/catalog/shape-list-catalog.d.ts +5 -0
- package/dist/components/shape-list/navigation-modes/catalog/shape-list-catalog.d.ts.map +1 -0
- package/dist/components/shape-list/navigation-modes/compact/index.d.ts +3 -0
- package/dist/components/shape-list/navigation-modes/compact/index.d.ts.map +1 -0
- package/dist/components/shape-list/navigation-modes/compact/shape-list-compact.d.ts +5 -0
- package/dist/components/shape-list/navigation-modes/compact/shape-list-compact.d.ts.map +1 -0
- package/dist/components/shape-list/navigation-modes/explorer/index.d.ts +4 -0
- package/dist/components/shape-list/navigation-modes/explorer/index.d.ts.map +1 -0
- package/dist/components/shape-list/navigation-modes/explorer/shape-list-explorer.d.ts +5 -0
- package/dist/components/shape-list/navigation-modes/explorer/shape-list-explorer.d.ts.map +1 -0
- package/dist/components/shape-list/navigation-modes/explorer/shape-list-tree.d.ts +5 -0
- package/dist/components/shape-list/navigation-modes/explorer/shape-list-tree.d.ts.map +1 -0
- package/dist/components/shape-list/navigation-modes/h-strip/index.d.ts +3 -0
- package/dist/components/shape-list/navigation-modes/h-strip/index.d.ts.map +1 -0
- package/dist/components/shape-list/navigation-modes/h-strip/shape-list-h-strip.d.ts +5 -0
- package/dist/components/shape-list/navigation-modes/h-strip/shape-list-h-strip.d.ts.map +1 -0
- package/dist/components/shape-list/navigation-modes/modal/index.d.ts +3 -0
- package/dist/components/shape-list/navigation-modes/modal/index.d.ts.map +1 -0
- package/dist/components/shape-list/navigation-modes/modal/shape-list-modal.d.ts +5 -0
- package/dist/components/shape-list/navigation-modes/modal/shape-list-modal.d.ts.map +1 -0
- package/dist/components/shape-list/navigation-modes/rail/index.d.ts +3 -0
- package/dist/components/shape-list/navigation-modes/rail/index.d.ts.map +1 -0
- package/dist/components/shape-list/navigation-modes/rail/shape-list-rail.d.ts +11 -0
- package/dist/components/shape-list/navigation-modes/rail/shape-list-rail.d.ts.map +1 -0
- package/dist/components/shape-list/navigation-modes/sidebar/index.d.ts +3 -0
- package/dist/components/shape-list/navigation-modes/sidebar/index.d.ts.map +1 -0
- package/dist/components/shape-list/navigation-modes/sidebar/shape-list-sidebar.d.ts +11 -0
- package/dist/components/shape-list/navigation-modes/sidebar/shape-list-sidebar.d.ts.map +1 -0
- package/dist/components/shape-list/navigation-modes/slideshow/index.d.ts +3 -0
- package/dist/components/shape-list/navigation-modes/slideshow/index.d.ts.map +1 -0
- package/dist/components/shape-list/navigation-modes/slideshow/shape-list-slideshow.d.ts +5 -0
- package/dist/components/shape-list/navigation-modes/slideshow/shape-list-slideshow.d.ts.map +1 -0
- package/dist/components/shape-list/navigation-modes/v-strip/index.d.ts +3 -0
- package/dist/components/shape-list/navigation-modes/v-strip/index.d.ts.map +1 -0
- package/dist/components/shape-list/navigation-modes/v-strip/shape-list-v-strip.d.ts +5 -0
- package/dist/components/shape-list/navigation-modes/v-strip/shape-list-v-strip.d.ts.map +1 -0
- package/dist/components/shape-list/navigation-modes/workspace/index.d.ts +3 -0
- package/dist/components/shape-list/navigation-modes/workspace/index.d.ts.map +1 -0
- package/dist/components/shape-list/navigation-modes/workspace/shape-list-workspace.d.ts +11 -0
- package/dist/components/shape-list/navigation-modes/workspace/shape-list-workspace.d.ts.map +1 -0
- package/dist/components/shape-list/shape-list.d.ts +5 -0
- package/dist/components/shape-list/shape-list.d.ts.map +1 -0
- package/dist/components/shape-list/slots/renderers/brand.d.ts +6 -0
- package/dist/components/shape-list/slots/renderers/brand.d.ts.map +1 -0
- package/dist/components/shape-list/slots/renderers/cta.d.ts +9 -0
- package/dist/components/shape-list/slots/renderers/cta.d.ts.map +1 -0
- package/dist/components/shape-list/slots/renderers/icon.d.ts +11 -0
- package/dist/components/shape-list/slots/renderers/icon.d.ts.map +1 -0
- package/dist/components/shape-list/slots/renderers/section-header.d.ts +7 -0
- package/dist/components/shape-list/slots/renderers/section-header.d.ts.map +1 -0
- package/dist/components/shape-list/slots/renderers/shape-cell.d.ts +9 -0
- package/dist/components/shape-list/slots/renderers/shape-cell.d.ts.map +1 -0
- package/dist/components/shape-list/slots/slot-config.d.ts +7 -0
- package/dist/components/shape-list/slots/slot-config.d.ts.map +1 -0
- package/dist/components/shape-list/slots/slot-model.d.ts +6 -0
- package/dist/components/shape-list/slots/slot-model.d.ts.map +1 -0
- package/dist/components/shape-list/slots/slot-node.d.ts +9 -0
- package/dist/components/shape-list/slots/slot-node.d.ts.map +1 -0
- package/dist/components/shape-list/slots/slot-render-utils.d.ts +11 -0
- package/dist/components/shape-list/slots/slot-render-utils.d.ts.map +1 -0
- package/dist/components/shape-list/slots/slot-types.d.ts +151 -0
- package/dist/components/shape-list/slots/slot-types.d.ts.map +1 -0
- package/dist/components/shape-list/slots/test/slot-model.test.d.ts +2 -0
- package/dist/components/shape-list/slots/test/slot-model.test.d.ts.map +1 -0
- package/dist/components/shape-list/types/shape-list-types.d.ts +181 -0
- package/dist/components/shape-list/types/shape-list-types.d.ts.map +1 -0
- package/dist/components/shape-list/utils/column-utils.d.ts +9 -0
- package/dist/components/shape-list/utils/column-utils.d.ts.map +1 -0
- package/dist/components/{image-list/image-list-debug-utils.d.ts → shape-list/utils/debug-utils.d.ts} +6 -6
- package/dist/components/shape-list/utils/debug-utils.d.ts.map +1 -0
- package/dist/components/shape-list/utils/filter-utils.d.ts +12 -0
- package/dist/components/shape-list/utils/filter-utils.d.ts.map +1 -0
- package/dist/components/shape-list/utils/keyboard-utils.d.ts +12 -0
- package/dist/components/shape-list/utils/keyboard-utils.d.ts.map +1 -0
- package/dist/components/shape-list/utils/navigation-options.d.ts +30 -0
- package/dist/components/shape-list/utils/navigation-options.d.ts.map +1 -0
- package/dist/components/shape-list/utils/node-utils.d.ts +12 -0
- package/dist/components/shape-list/utils/node-utils.d.ts.map +1 -0
- package/dist/components/shape-list/utils/sort-utils.d.ts +13 -0
- package/dist/components/shape-list/utils/sort-utils.d.ts.map +1 -0
- package/dist/components/shape-list/utils/typeahead-utils.d.ts +28 -0
- package/dist/components/shape-list/utils/typeahead-utils.d.ts.map +1 -0
- package/dist/components/toolbar/toolbar-nodes/toolbar-plain-node.d.ts.map +1 -1
- package/dist/cose-bilkent-S5V4N54A-BxQyjZqX.cjs +1 -0
- package/dist/{cose-bilkent-S5V4N54A-Bfb7U01p.js → cose-bilkent-S5V4N54A-DZmA7Nat.js} +27 -26
- package/dist/{cytoscape.esm-VShrX2U1.js → cytoscape.esm-BU21wl3m.js} +17 -17
- package/dist/{cytoscape.esm-BzblyxzZ.cjs → cytoscape.esm-CElDUMAx.cjs} +4 -4
- package/dist/{dagre-Cg4CV48I.js → dagre-3-RnF0EK.js} +1 -1
- package/dist/{dagre-CC68z3y6.cjs → dagre-B2BBwKNb.cjs} +1 -1
- package/dist/{dagre-BM42HDAG-D87Rv2R4.js → dagre-BM42HDAG-DwRqEen8.js} +11 -11
- package/dist/{dagre-BM42HDAG-BhbA1R8l.cjs → dagre-BM42HDAG-E2Jw6uLH.cjs} +1 -1
- package/dist/{defaultLocale-Bj_Ndo9V.cjs → defaultLocale-u9yUoUmE.cjs} +1 -1
- package/dist/{diagram-2AECGRRQ-OSYCK0tv.js → diagram-2AECGRRQ-BITzWXbn.js} +8 -8
- package/dist/{diagram-2AECGRRQ-C6vI3yau.cjs → diagram-2AECGRRQ-BkwGTiAT.cjs} +1 -1
- package/dist/{diagram-5GNKFQAL-BS9rRMAe.cjs → diagram-5GNKFQAL-CvMOQgoH.cjs} +1 -1
- package/dist/{diagram-5GNKFQAL-DnquluB9.js → diagram-5GNKFQAL-bsRwDc-2.js} +9 -9
- package/dist/{diagram-KO2AKTUF-CjA_KTJj.cjs → diagram-KO2AKTUF-DKGDs9Ax.cjs} +2 -2
- package/dist/{diagram-KO2AKTUF-CFi6eQYd.js → diagram-KO2AKTUF-DwTH3Hoo.js} +8 -8
- package/dist/{diagram-LMA3HP47-DBwSTp2j.cjs → diagram-LMA3HP47-BojSLu6w.cjs} +1 -1
- package/dist/{diagram-LMA3HP47-Cwm5bzeM.js → diagram-LMA3HP47-nYPIM4Uq.js} +8 -8
- package/dist/{diagram-OG6HWLK6-DvGk1j55.js → diagram-OG6HWLK6-CPzvG6Xi.js} +12 -12
- package/dist/{diagram-OG6HWLK6-BdLnbUYy.cjs → diagram-OG6HWLK6-bHqMXqif.cjs} +1 -1
- package/dist/{dist-9MKIBfY4.js → dist-BEmBi80K.js} +1 -1
- package/dist/dist-Dwq87x4R.cjs +1 -0
- package/dist/{erDiagram-TEJ5UH35-B17mqgD_.js → erDiagram-TEJ5UH35-BxeM1F9k.js} +13 -13
- package/dist/{erDiagram-TEJ5UH35-NlRiP_bX.cjs → erDiagram-TEJ5UH35-CqUBZsAh.cjs} +1 -1
- package/dist/eventmodeling-FCH6USID-Cued7Lz2.cjs +1 -0
- package/dist/eventmodeling-FCH6USID-mCB8hc7X.js +3 -0
- package/dist/flowDiagram-I6XJVG4X-DsjMn89E.cjs +162 -0
- package/dist/{flowDiagram-I6XJVG4X-C2G6Tgw_.js → flowDiagram-I6XJVG4X-Dx5d6cgt.js} +97 -96
- package/dist/functional-components/action/action-types.d.ts +5 -1
- package/dist/functional-components/action/action-types.d.ts.map +1 -1
- package/dist/functional-components/action/action-utils.d.ts +1 -2
- package/dist/functional-components/action/action-utils.d.ts.map +1 -1
- package/dist/functional-components/action/action.d.ts.map +1 -1
- package/dist/functional-components/action-list/action-list-types.d.ts +2 -2
- package/dist/functional-components/badge/badge-assets.d.ts +3 -3
- package/dist/functional-components/badge/badge-assets.d.ts.map +1 -1
- package/dist/functional-components/shape/index.d.ts +9 -0
- package/dist/functional-components/shape/index.d.ts.map +1 -0
- package/dist/functional-components/shape/shape-map.d.ts +3 -0
- package/dist/functional-components/shape/shape-map.d.ts.map +1 -0
- package/dist/functional-components/shape/shape-registry.d.ts +25 -0
- package/dist/functional-components/shape/shape-registry.d.ts.map +1 -0
- package/dist/functional-components/shape/shape-resolver.d.ts +61 -0
- package/dist/functional-components/shape/shape-resolver.d.ts.map +1 -0
- package/dist/functional-components/shape/shape-types.d.ts +55 -0
- package/dist/functional-components/shape/shape-types.d.ts.map +1 -0
- package/dist/functional-components/shape/shape.d.ts +5 -0
- package/dist/functional-components/shape/shape.d.ts.map +1 -0
- package/dist/functional-components/shape/slot-resolver.d.ts +24 -0
- package/dist/functional-components/shape/slot-resolver.d.ts.map +1 -0
- package/dist/functional-components/shape/slot-types.d.ts +27 -0
- package/dist/functional-components/shape/slot-types.d.ts.map +1 -0
- package/dist/functional-components/shape/useSlotResolver.d.ts +13 -0
- package/dist/functional-components/shape/useSlotResolver.d.ts.map +1 -0
- package/dist/{ganttDiagram-6RSMTGT7-Bb6bqcaS.js → ganttDiagram-6RSMTGT7-CFuwKLrB.js} +192 -191
- package/dist/ganttDiagram-6RSMTGT7-CG_knKFc.cjs +292 -0
- package/dist/gitGraph-WXDBUCRP-B23gOjfP.js +3 -0
- package/dist/gitGraph-WXDBUCRP-Bi-Y5dA7.cjs +1 -0
- package/dist/{gitGraphDiagram-PVQCEYII-BzbgPrwe.cjs → gitGraphDiagram-PVQCEYII-B-VOfNjd.cjs} +1 -1
- package/dist/{gitGraphDiagram-PVQCEYII-DiJUr7lO.js → gitGraphDiagram-PVQCEYII-B2CaQTP_.js} +8 -8
- package/dist/graphlib-CkkG5MuS.cjs +1 -0
- package/dist/{graphlib-B1zohIOM.js → graphlib-VMWSbyYi.js} +2 -1
- package/dist/index.d.ts +6 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/info-J43DQDTF-DC3N8SoX.js +3 -0
- package/dist/info-J43DQDTF-jRjlWVKj.cjs +1 -0
- package/dist/{infoDiagram-5YYISTIA-fhwEAAjF.cjs → infoDiagram-5YYISTIA-22jaR465.cjs} +1 -1
- package/dist/{infoDiagram-5YYISTIA-C8P9DHlE.js → infoDiagram-5YYISTIA-CM-al6Jc.js} +4 -4
- package/dist/{init-CEL65JUo.cjs → init-07zIhv_j.cjs} +1 -1
- package/dist/{ishikawaDiagram-YF4QCWOH-j6IZz59g.cjs → ishikawaDiagram-YF4QCWOH-CSRSkgHx.cjs} +1 -1
- package/dist/{ishikawaDiagram-YF4QCWOH-rqNbTKZp.js → ishikawaDiagram-YF4QCWOH-CfOvUIo-.js} +5 -5
- package/dist/{journeyDiagram-JHISSGLW-peUJlm3L.js → journeyDiagram-JHISSGLW-BMECXtd1.js} +5 -5
- package/dist/{journeyDiagram-JHISSGLW-BhHdd4y3.cjs → journeyDiagram-JHISSGLW-P42eSNEh.cjs} +1 -1
- package/dist/jsx-runtime-DCATrIRp.js +183 -0
- package/dist/jsx-runtime-DtVwqYNW.cjs +6 -0
- package/dist/{kanban-definition-UN3LZRKU-DLxDqiQn.js → kanban-definition-UN3LZRKU-DCzfGTs4.js} +10 -10
- package/dist/{kanban-definition-UN3LZRKU-TUg1x5yJ.cjs → kanban-definition-UN3LZRKU-DplPe2EX.cjs} +1 -1
- package/dist/ketchup2.cjs.js +102 -114
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +34064 -40692
- package/dist/{line-BhAnxCE8.js → line-0G6sJTVA.js} +3 -3
- package/dist/{line-CpcTW4h-.cjs → line-CLmmMPn2.cjs} +1 -1
- package/dist/{linear-lSeWuvgy.js → linear-BNWgac81.js} +3 -3
- package/dist/{linear-D0eFmsG1.cjs → linear-yBssgUAc.cjs} +1 -1
- package/dist/locale/en/translation.json.d.ts +2 -0
- package/dist/locale/it/translation.json.d.ts +2 -0
- package/dist/mermaid-parser.core-ADyJ_PY4.cjs +3 -0
- package/dist/mermaid-parser.core-D6xVjl2t.js +373 -0
- package/dist/{mindmap-definition-RKZ34NQL-D9BOsg5W.cjs → mindmap-definition-RKZ34NQL-DbK4qO1Z.cjs} +1 -1
- package/dist/{mindmap-definition-RKZ34NQL-DHkmUkxh.js → mindmap-definition-RKZ34NQL-DpX8ksst.js} +13 -13
- package/dist/{ordinal-BnUYNBtU.cjs → ordinal-CUPR-p0T.cjs} +1 -1
- package/dist/{ordinal-MD9_ORcM.js → ordinal-D_ZgubzR.js} +1 -1
- package/dist/packet-YPE3B663-CGZxZ1Z0.cjs +1 -0
- package/dist/packet-YPE3B663-D2JW2EUF.js +3 -0
- package/dist/{path-CRahBUHI.cjs → path-Kklx0M1v.cjs} +1 -1
- package/dist/pie-LRSECV5Y-BHyd33ZA.js +3 -0
- package/dist/pie-LRSECV5Y-Ca_qbHEv.cjs +1 -0
- package/dist/{pieDiagram-4H26LBE5-ByA7ytZx.js → pieDiagram-4H26LBE5-CCgLxjTB.js} +13 -13
- package/dist/{pieDiagram-4H26LBE5-CrLJh4L9.cjs → pieDiagram-4H26LBE5-DAhjc9WT.cjs} +1 -1
- package/dist/purify.es-9OKVhuci.js +735 -0
- package/dist/purify.es-hdXGOu6N.cjs +3 -0
- package/dist/{quadrantDiagram-W4KKPZXB-CalC_db_.cjs → quadrantDiagram-W4KKPZXB-BBEQhVJy.cjs} +1 -1
- package/dist/{quadrantDiagram-W4KKPZXB-CHHpmu1l.js → quadrantDiagram-W4KKPZXB-Bgw66PrU.js} +3 -3
- package/dist/radar-GUYGQ44K-BpJWFTCm.js +3 -0
- package/dist/radar-GUYGQ44K-CYqWSxO_.cjs +1 -0
- package/dist/{requirementDiagram-4Y6WPE33-BVcDFSx8.js → requirementDiagram-4Y6WPE33-BzNEhq-x.js} +12 -12
- package/dist/{requirementDiagram-4Y6WPE33-SsePLT8d.cjs → requirementDiagram-4Y6WPE33-L_lL0BcB.cjs} +1 -1
- package/dist/{rough.esm-BEA_SCZB.cjs → rough.esm-r0QOSzHM.cjs} +1 -1
- package/dist/{sankeyDiagram-5OEKKPKP-C-ODz9lV.js → sankeyDiagram-5OEKKPKP-06MsaQmt.js} +3 -3
- package/dist/{sankeyDiagram-5OEKKPKP-BgvTZ7jd.cjs → sankeyDiagram-5OEKKPKP-Dy9K3F81.cjs} +1 -1
- package/dist/{sequenceDiagram-3UESZ5HK-DEVLteqD.cjs → sequenceDiagram-3UESZ5HK-C69YSjBM.cjs} +2 -2
- package/dist/{sequenceDiagram-3UESZ5HK-Cnc0aDO4.js → sequenceDiagram-3UESZ5HK-QEaDF4MY.js} +21 -21
- package/dist/src-CFBvxm_0.cjs +1 -0
- package/dist/{src-v9RrE_4h.js → src-GDFuItmC.js} +569 -581
- package/dist/{stateDiagram-AJRCARHV-CuHe6Iji.js → stateDiagram-AJRCARHV-BTzCb_Q-.js} +16 -16
- package/dist/{stateDiagram-AJRCARHV-D_yPvIRw.cjs → stateDiagram-AJRCARHV-CBbDL4Ct.cjs} +1 -1
- package/dist/stateDiagram-v2-BHNVJYJU-BrQR0oUL.cjs +1 -0
- package/dist/stateDiagram-v2-BHNVJYJU-C7E3JbTB.js +27 -0
- package/dist/{timeline-definition-PNZ67QCA-Cynbc96w.cjs → timeline-definition-PNZ67QCA-DJ9VKw6h.cjs} +1 -1
- package/dist/{timeline-definition-PNZ67QCA-Bj1BItRB.js → timeline-definition-PNZ67QCA-DoD4D5kw.js} +5 -5
- package/dist/treeView-BLDUP644-C9tQMbiq.js +3 -0
- package/dist/treeView-BLDUP644-DKh9BcaT.cjs +1 -0
- package/dist/treemap-LRROVOQU-2aferAph.cjs +1 -0
- package/dist/treemap-LRROVOQU-CBv3oGC3.js +3 -0
- package/dist/types/data-structures.d.ts +4 -0
- package/dist/types/data-structures.d.ts.map +1 -1
- package/dist/types/translation.d.ts +2 -0
- package/dist/types/translation.d.ts.map +1 -1
- package/dist/useObjectProtocol-3BhpCUjG.cjs +3 -0
- package/dist/useObjectProtocol-DZdggHDN.js +4333 -0
- package/dist/utils/objects.d.ts +2 -0
- package/dist/utils/objects.d.ts.map +1 -1
- package/dist/{v4-CA8ev9YY.cjs → v4-Dyp-SQ1c.cjs} +1 -1
- package/dist/{vennDiagram-CIIHVFJN-Dm4D6omA.cjs → vennDiagram-CIIHVFJN-DeRVKdRG.cjs} +2 -2
- package/dist/{vennDiagram-CIIHVFJN-CdmcxixA.js → vennDiagram-CIIHVFJN-Du1h-z8K.js} +5 -5
- package/dist/wardley-L42UT6IY-CIM0_V5T.js +3 -0
- package/dist/wardley-L42UT6IY-DjjjOB8T.cjs +1 -0
- package/dist/{wardleyDiagram-YWT4CUSO-C-DdutxP.cjs → wardleyDiagram-YWT4CUSO-CaaSvy6n.cjs} +1 -1
- package/dist/{wardleyDiagram-YWT4CUSO-D1o116Wi.js → wardleyDiagram-YWT4CUSO-CjOm3Xnp.js} +8 -8
- package/dist/{xychartDiagram-2RQKCTM6-D0D4PIQS.cjs → xychartDiagram-2RQKCTM6-CWncieig.cjs} +1 -1
- package/dist/{xychartDiagram-2RQKCTM6-Byw7djcg.js → xychartDiagram-2RQKCTM6-D0hXWFFN.js} +9 -9
- package/package.json +25 -25
- package/dist/architecture-7EHR7CIX-Bnyu5zgG.js +0 -3
- package/dist/architecture-7EHR7CIX-CKF7-4kH.cjs +0 -1
- package/dist/architectureDiagram-3BPJPVTR-BrmPrClJ.cjs +0 -36
- package/dist/array-Cx1JwiGD.cjs +0 -1
- package/dist/assets/imageListAssets.d.ts.map +0 -1
- package/dist/channel-intTktDQ.cjs +0 -1
- package/dist/chunk-4BX2VUAB-CtDGlaPx.cjs +0 -1
- package/dist/chunk-4EGX6M5U-BMVrizoY.js +0 -35
- package/dist/chunk-4EGX6M5U-VENLmgBt.cjs +0 -1
- package/dist/chunk-55IACEB6-VJP3Osm7.cjs +0 -1
- package/dist/chunk-5DO6E6H7-Cx6Mfbjl.cjs +0 -1
- package/dist/chunk-5DO6E6H7-QuTLwcim.js +0 -23
- package/dist/chunk-727SXJPM-DTmqhRKX.cjs +0 -206
- package/dist/chunk-BR22UD5L-CS6hURQQ.js +0 -64
- package/dist/chunk-BR22UD5L-wI1vkyAT.cjs +0 -1
- package/dist/chunk-CSCIHK7Q-BPMuICCz.cjs +0 -123
- package/dist/chunk-FHYWG6QK-CfRqYwCI.js +0 -23
- package/dist/chunk-FHYWG6QK-DxmnARsZ.cjs +0 -1
- package/dist/chunk-LZXEDZCA-Dpz_wx3M.cjs +0 -1
- package/dist/chunk-MPE355IW-4bpROspE.js +0 -23
- package/dist/chunk-MPE355IW-CxPw_dPP.cjs +0 -1
- package/dist/chunk-MZUSXYTE-DA5mUG5B.js +0 -30
- package/dist/chunk-MZUSXYTE-DIg1BPts.cjs +0 -1
- package/dist/chunk-N66VUXT2-DSbygtq1.cjs +0 -1
- package/dist/chunk-N66VUXT2-pDZ1b-B3.js +0 -54
- package/dist/chunk-PUPMXCY4-CKjhJQnN.js +0 -23
- package/dist/chunk-PUPMXCY4-DsS_t57r.cjs +0 -1
- package/dist/chunk-UIBZB4QT-BZf7vqd9.cjs +0 -1
- package/dist/chunk-UIBZB4QT-BvFllM0Q.js +0 -23
- package/dist/chunk-WCWK7LTN-D_C1as0Y.js +0 -31
- package/dist/chunk-WCWK7LTN-Dl2uC9ZD.cjs +0 -1
- package/dist/chunk-WU5MYG2G-DgyP9QDj.cjs +0 -1
- package/dist/classDiagram-4FO5ZUOK-5DyhpZRK.cjs +0 -1
- package/dist/classDiagram-4FO5ZUOK-BHGLQIkz.js +0 -29
- package/dist/classDiagram-v2-Q7XG4LA2-CCAbBo05.js +0 -29
- package/dist/classDiagram-v2-Q7XG4LA2-D4TX4CLT.cjs +0 -1
- package/dist/components/image-list/components/image-list-command-panel.d.ts.map +0 -1
- package/dist/components/image-list/components/image-list-command-trigger.d.ts.map +0 -1
- package/dist/components/image-list/components/image-list-drill-down.d.ts +0 -4
- package/dist/components/image-list/components/image-list-drill-down.d.ts.map +0 -1
- package/dist/components/image-list/components/image-list-filter-picker.d.ts +0 -14
- package/dist/components/image-list/components/image-list-filter-picker.d.ts.map +0 -1
- package/dist/components/image-list/components/image-list-h-strip.d.ts +0 -5
- package/dist/components/image-list/components/image-list-h-strip.d.ts.map +0 -1
- package/dist/components/image-list/components/image-list-json-viewer.d.ts +0 -11
- package/dist/components/image-list/components/image-list-json-viewer.d.ts.map +0 -1
- package/dist/components/image-list/components/image-list-menu.d.ts +0 -5
- package/dist/components/image-list/components/image-list-menu.d.ts.map +0 -1
- package/dist/components/image-list/components/image-list-navigation-picker.d.ts +0 -15
- package/dist/components/image-list/components/image-list-navigation-picker.d.ts.map +0 -1
- package/dist/components/image-list/components/image-list-sort-picker.d.ts +0 -14
- package/dist/components/image-list/components/image-list-sort-picker.d.ts.map +0 -1
- package/dist/components/image-list/components/image-list-v-strip.d.ts +0 -5
- package/dist/components/image-list/components/image-list-v-strip.d.ts.map +0 -1
- package/dist/components/image-list/components/items/image-list-card-item.d.ts +0 -5
- package/dist/components/image-list/components/items/image-list-card-item.d.ts.map +0 -1
- package/dist/components/image-list/components/items/image-list-folder-item.d.ts +0 -5
- package/dist/components/image-list/components/items/image-list-folder-item.d.ts.map +0 -1
- package/dist/components/image-list/components/items/image-list-item.d.ts +0 -5
- package/dist/components/image-list/components/items/image-list-item.d.ts.map +0 -1
- package/dist/components/image-list/components/menu-nav-item.d.ts +0 -5
- package/dist/components/image-list/components/menu-nav-item.d.ts.map +0 -1
- package/dist/components/image-list/components/navigation-modes/image-list-catalog.d.ts +0 -5
- package/dist/components/image-list/components/navigation-modes/image-list-catalog.d.ts.map +0 -1
- package/dist/components/image-list/components/navigation-modes/image-list-compact.d.ts +0 -5
- package/dist/components/image-list/components/navigation-modes/image-list-compact.d.ts.map +0 -1
- package/dist/components/image-list/components/navigation-modes/image-list-explorer.d.ts +0 -5
- package/dist/components/image-list/components/navigation-modes/image-list-explorer.d.ts.map +0 -1
- package/dist/components/image-list/components/navigation-modes/image-list-modal.d.ts +0 -5
- package/dist/components/image-list/components/navigation-modes/image-list-modal.d.ts.map +0 -1
- package/dist/components/image-list/components/navigation-modes/image-list-slideshow.d.ts +0 -5
- package/dist/components/image-list/components/navigation-modes/image-list-slideshow.d.ts.map +0 -1
- package/dist/components/image-list/components/navigation-modes/image-list-tree.d.ts +0 -5
- package/dist/components/image-list/components/navigation-modes/image-list-tree.d.ts.map +0 -1
- package/dist/components/image-list/components/strip-child-popup.d.ts.map +0 -1
- package/dist/components/image-list/components/strip-item.d.ts.map +0 -1
- package/dist/components/image-list/components/strip-overflow-button.d.ts.map +0 -1
- package/dist/components/image-list/image-list-column-utils.d.ts +0 -9
- package/dist/components/image-list/image-list-column-utils.d.ts.map +0 -1
- package/dist/components/image-list/image-list-context.d.ts +0 -29
- package/dist/components/image-list/image-list-context.d.ts.map +0 -1
- package/dist/components/image-list/image-list-debug-utils.d.ts.map +0 -1
- package/dist/components/image-list/image-list-filter-context.d.ts +0 -9
- package/dist/components/image-list/image-list-filter-context.d.ts.map +0 -1
- package/dist/components/image-list/image-list-filter-utils.d.ts +0 -12
- package/dist/components/image-list/image-list-filter-utils.d.ts.map +0 -1
- package/dist/components/image-list/image-list-sort-context.d.ts +0 -9
- package/dist/components/image-list/image-list-sort-context.d.ts.map +0 -1
- package/dist/components/image-list/image-list-sort-utils.d.ts +0 -13
- package/dist/components/image-list/image-list-sort-utils.d.ts.map +0 -1
- package/dist/components/image-list/image-list-state-context.d.ts.map +0 -1
- package/dist/components/image-list/image-list-types.d.ts +0 -196
- package/dist/components/image-list/image-list-types.d.ts.map +0 -1
- package/dist/components/image-list/image-list-utils.d.ts +0 -83
- package/dist/components/image-list/image-list-utils.d.ts.map +0 -1
- package/dist/components/image-list/image-list.d.ts +0 -5
- package/dist/components/image-list/image-list.d.ts.map +0 -1
- package/dist/cose-bilkent-S5V4N54A-CE-7Sw0Y.cjs +0 -1
- package/dist/dist-DC1YYeHc.cjs +0 -1
- package/dist/eventmodeling-FCH6USID-BVaFiLQO.js +0 -3
- package/dist/eventmodeling-FCH6USID-leiC8dtX.cjs +0 -1
- package/dist/flowDiagram-I6XJVG4X-ChI_6giU.cjs +0 -162
- package/dist/ganttDiagram-6RSMTGT7-B0DHqd7u.cjs +0 -292
- package/dist/gitGraph-WXDBUCRP-BFFuTWG4.cjs +0 -1
- package/dist/gitGraph-WXDBUCRP-Fz2kRwJ-.js +0 -3
- package/dist/graphlib-B5AXIZA4.cjs +0 -1
- package/dist/info-J43DQDTF-CLRXRK49.js +0 -3
- package/dist/info-J43DQDTF-CmpcAuH-.cjs +0 -1
- package/dist/mermaid-parser.core-Dz33ts1l.js +0 -74
- package/dist/mermaid-parser.core-HQxPJrkY.cjs +0 -3
- package/dist/packet-YPE3B663-BwjweAZY.cjs +0 -1
- package/dist/packet-YPE3B663-D1Hr9AQm.js +0 -3
- package/dist/pie-LRSECV5Y-CpDfN1P0.js +0 -3
- package/dist/pie-LRSECV5Y-I1-OkIXi.cjs +0 -1
- package/dist/radar-GUYGQ44K-BXt3oO8c.cjs +0 -1
- package/dist/radar-GUYGQ44K-ByzrmbOz.js +0 -3
- package/dist/src-BgvDIw01.cjs +0 -1
- package/dist/stateDiagram-v2-BHNVJYJU-CTnE6fOT.cjs +0 -1
- package/dist/stateDiagram-v2-BHNVJYJU-DqstYMSl.js +0 -27
- package/dist/treeView-BLDUP644-CxLhpd93.js +0 -3
- package/dist/treeView-BLDUP644-DMwVx0AR.cjs +0 -1
- package/dist/treemap-LRROVOQU-BqmiLdFI.js +0 -3
- package/dist/treemap-LRROVOQU-XhaFZdvI.cjs +0 -1
- package/dist/wardley-L42UT6IY-C7UjBmVh.js +0 -3
- package/dist/wardley-L42UT6IY-DFAYOpjD.cjs +0 -1
- /package/dist/{array-CBdkHBGa.js → array-CApNbSU9.js} +0 -0
- /package/dist/components/{image-list → shape-list}/hooks/useCommandPickers.d.ts +0 -0
- /package/dist/components/{image-list → shape-list}/hooks/useStripOverflow.d.ts +0 -0
- /package/dist/{defaultLocale-dGy1YRID.js → defaultLocale-DnzPsei5.js} +0 -0
- /package/dist/{init-B7h4SEX5.js → init-MwSGRDIl.js} +0 -0
- /package/dist/{katex-HkVgAsLB.cjs → katex-CkiTumqg.cjs} +0 -0
- /package/dist/{katex-DWDh1q_h.js → katex-D-2KeLwt.js} +0 -0
- /package/dist/{path-CAXMhBzK.js → path-DGNPZRdx.js} +0 -0
- /package/dist/{rough.esm-TWNWL4Us.js → rough.esm-rcMoXTJj.js} +0 -0
- /package/dist/{v4-BpDBEhLK.js → v4-BK7K-jy_.js} +0 -0
|
@@ -1,555 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
return e;
|
|
6
|
-
}, u ||= function(e) {
|
|
7
|
-
return e;
|
|
8
|
-
}, f ||= function(e, t) {
|
|
9
|
-
var n = [...arguments].slice(2);
|
|
10
|
-
return e.apply(t, n);
|
|
11
|
-
}, ee ||= function(e) {
|
|
12
|
-
return new e(...[...arguments].slice(1));
|
|
13
|
-
};
|
|
14
|
-
var p = g(Array.prototype.forEach), te = g(Array.prototype.lastIndexOf), ne = g(Array.prototype.pop), re = g(Array.prototype.push), ie = g(Array.prototype.splice), ae = g(String.prototype.toLowerCase), oe = g(String.prototype.toString), se = g(String.prototype.match), ce = g(String.prototype.replace), le = g(String.prototype.indexOf), ue = g(String.prototype.trim), m = g(Object.prototype.hasOwnProperty), h = g(RegExp.prototype.test), de = fe(TypeError);
|
|
15
|
-
function g(e) {
|
|
16
|
-
return function(t) {
|
|
17
|
-
t instanceof RegExp && (t.lastIndex = 0);
|
|
18
|
-
var n = [...arguments].slice(1);
|
|
19
|
-
return f(e, t, n);
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
function fe(e) {
|
|
23
|
-
return function() {
|
|
24
|
-
return ee(e, [...arguments]);
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
function _(e, t) {
|
|
28
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ae;
|
|
29
|
-
a && a(e, null);
|
|
30
|
-
let r = t.length;
|
|
31
|
-
for (; r--;) {
|
|
32
|
-
let i = t[r];
|
|
33
|
-
if (typeof i == "string") {
|
|
34
|
-
let e = n(i);
|
|
35
|
-
e !== i && (o(t) || (t[r] = e), i = e);
|
|
36
|
-
}
|
|
37
|
-
e[i] = !0;
|
|
38
|
-
}
|
|
39
|
-
return e;
|
|
40
|
-
}
|
|
41
|
-
function pe(e) {
|
|
42
|
-
for (let t = 0; t < e.length; t++) m(e, t) || (e[t] = null);
|
|
43
|
-
return e;
|
|
44
|
-
}
|
|
45
|
-
function v(e) {
|
|
46
|
-
let t = d(null);
|
|
47
|
-
for (let [n, r] of i(e)) m(e, n) && (Array.isArray(r) ? t[n] = pe(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = v(r) : t[n] = r);
|
|
48
|
-
return t;
|
|
49
|
-
}
|
|
50
|
-
function me(e, t) {
|
|
51
|
-
for (; e !== null;) {
|
|
52
|
-
let n = c(e, t);
|
|
53
|
-
if (n) {
|
|
54
|
-
if (n.get) return g(n.get);
|
|
55
|
-
if (typeof n.value == "function") return g(n.value);
|
|
56
|
-
}
|
|
57
|
-
e = s(e);
|
|
58
|
-
}
|
|
59
|
-
function n() {
|
|
60
|
-
return null;
|
|
61
|
-
}
|
|
62
|
-
return n;
|
|
63
|
-
}
|
|
64
|
-
var he = l(/* @__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(".")), ge = l(/* @__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(".")), _e = l([
|
|
65
|
-
"feBlend",
|
|
66
|
-
"feColorMatrix",
|
|
67
|
-
"feComponentTransfer",
|
|
68
|
-
"feComposite",
|
|
69
|
-
"feConvolveMatrix",
|
|
70
|
-
"feDiffuseLighting",
|
|
71
|
-
"feDisplacementMap",
|
|
72
|
-
"feDistantLight",
|
|
73
|
-
"feDropShadow",
|
|
74
|
-
"feFlood",
|
|
75
|
-
"feFuncA",
|
|
76
|
-
"feFuncB",
|
|
77
|
-
"feFuncG",
|
|
78
|
-
"feFuncR",
|
|
79
|
-
"feGaussianBlur",
|
|
80
|
-
"feImage",
|
|
81
|
-
"feMerge",
|
|
82
|
-
"feMergeNode",
|
|
83
|
-
"feMorphology",
|
|
84
|
-
"feOffset",
|
|
85
|
-
"fePointLight",
|
|
86
|
-
"feSpecularLighting",
|
|
87
|
-
"feSpotLight",
|
|
88
|
-
"feTile",
|
|
89
|
-
"feTurbulence"
|
|
90
|
-
]), ve = l([
|
|
91
|
-
"animate",
|
|
92
|
-
"color-profile",
|
|
93
|
-
"cursor",
|
|
94
|
-
"discard",
|
|
95
|
-
"font-face",
|
|
96
|
-
"font-face-format",
|
|
97
|
-
"font-face-name",
|
|
98
|
-
"font-face-src",
|
|
99
|
-
"font-face-uri",
|
|
100
|
-
"foreignobject",
|
|
101
|
-
"hatch",
|
|
102
|
-
"hatchpath",
|
|
103
|
-
"mesh",
|
|
104
|
-
"meshgradient",
|
|
105
|
-
"meshpatch",
|
|
106
|
-
"meshrow",
|
|
107
|
-
"missing-glyph",
|
|
108
|
-
"script",
|
|
109
|
-
"set",
|
|
110
|
-
"solidcolor",
|
|
111
|
-
"unknown",
|
|
112
|
-
"use"
|
|
113
|
-
]), ye = l(/* @__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(".")), be = l([
|
|
114
|
-
"maction",
|
|
115
|
-
"maligngroup",
|
|
116
|
-
"malignmark",
|
|
117
|
-
"mlongdiv",
|
|
118
|
-
"mscarries",
|
|
119
|
-
"mscarry",
|
|
120
|
-
"msgroup",
|
|
121
|
-
"mstack",
|
|
122
|
-
"msline",
|
|
123
|
-
"msrow",
|
|
124
|
-
"semantics",
|
|
125
|
-
"annotation",
|
|
126
|
-
"annotation-xml",
|
|
127
|
-
"mprescripts",
|
|
128
|
-
"none"
|
|
129
|
-
]), xe = l(["#text"]), Se = l(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot".split(".")), Ce = l(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), we = l(/* @__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(".")), Te = l([
|
|
130
|
-
"xlink:href",
|
|
131
|
-
"xml:id",
|
|
132
|
-
"xlink:title",
|
|
133
|
-
"xml:space",
|
|
134
|
-
"xmlns:xlink"
|
|
135
|
-
]), Ee = u(/\{\{[\w\W]*|[\w\W]*\}\}/gm), De = u(/<%[\w\W]*|[\w\W]*%>/gm), Oe = u(/\$\{[\w\W]*/gm), ke = u(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ae = u(/^aria-[\-\w]+$/), je = u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Me = u(/^(?:\w+script|data):/i), y = u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Ne = u(/^html$/i), Pe = u(/^[a-z][.\w]*(-[.\w]+)+$/i), Fe = /* @__PURE__ */ Object.freeze({
|
|
136
|
-
__proto__: null,
|
|
137
|
-
ARIA_ATTR: Ae,
|
|
138
|
-
ATTR_WHITESPACE: y,
|
|
139
|
-
CUSTOM_ELEMENT: Pe,
|
|
140
|
-
DATA_ATTR: ke,
|
|
141
|
-
DOCTYPE_NAME: Ne,
|
|
142
|
-
ERB_EXPR: De,
|
|
143
|
-
IS_ALLOWED_URI: je,
|
|
144
|
-
IS_SCRIPT_OR_DATA: Me,
|
|
145
|
-
MUSTACHE_EXPR: Ee,
|
|
146
|
-
TMPLIT_EXPR: Oe
|
|
147
|
-
}), Ie = {
|
|
148
|
-
element: 1,
|
|
149
|
-
text: 3,
|
|
150
|
-
progressingInstruction: 7,
|
|
151
|
-
comment: 8,
|
|
152
|
-
document: 9
|
|
153
|
-
}, Le = function() {
|
|
154
|
-
return typeof window > "u" ? null : window;
|
|
155
|
-
}, Re = function(e, t) {
|
|
156
|
-
if (typeof e != "object" || typeof e.createPolicy != "function") return null;
|
|
157
|
-
let n = null, r = "data-tt-policy-suffix";
|
|
158
|
-
t && t.hasAttribute(r) && (n = t.getAttribute(r));
|
|
159
|
-
let i = "dompurify" + (n ? "#" + n : "");
|
|
160
|
-
try {
|
|
161
|
-
return e.createPolicy(i, {
|
|
162
|
-
createHTML(e) {
|
|
163
|
-
return e;
|
|
164
|
-
},
|
|
165
|
-
createScriptURL(e) {
|
|
166
|
-
return e;
|
|
167
|
-
}
|
|
168
|
-
});
|
|
169
|
-
} catch {
|
|
170
|
-
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
171
|
-
}
|
|
172
|
-
}, ze = function() {
|
|
173
|
-
return {
|
|
174
|
-
afterSanitizeAttributes: [],
|
|
175
|
-
afterSanitizeElements: [],
|
|
176
|
-
afterSanitizeShadowDOM: [],
|
|
177
|
-
beforeSanitizeAttributes: [],
|
|
178
|
-
beforeSanitizeElements: [],
|
|
179
|
-
beforeSanitizeShadowDOM: [],
|
|
180
|
-
uponSanitizeAttribute: [],
|
|
181
|
-
uponSanitizeElement: [],
|
|
182
|
-
uponSanitizeShadowNode: []
|
|
183
|
-
};
|
|
184
|
-
};
|
|
185
|
-
function Be() {
|
|
186
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Le(), t = (e) => Be(e);
|
|
187
|
-
if (t.version = "3.4.0", t.removed = [], !e || !e.document || e.document.nodeType !== Ie.document || !e.Element) return t.isSupported = !1, t;
|
|
188
|
-
let { document: n } = e, r = n, a = r.currentScript, { DocumentFragment: o, HTMLTemplateElement: s, Node: c, Element: u, NodeFilter: f, NamedNodeMap: ee = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: g, DOMParser: fe, trustedTypes: pe } = e, Ee = u.prototype, De = me(Ee, "cloneNode"), Oe = me(Ee, "remove"), ke = me(Ee, "nextSibling"), Ae = me(Ee, "childNodes"), Me = me(Ee, "parentNode");
|
|
189
|
-
if (typeof s == "function") {
|
|
190
|
-
let e = n.createElement("template");
|
|
191
|
-
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
|
|
192
|
-
}
|
|
193
|
-
let y, Pe = "", { implementation: b, createNodeIterator: Ve, createDocumentFragment: x, getElementsByTagName: S } = n, { importNode: C } = r, w = ze();
|
|
194
|
-
t.isSupported = typeof i == "function" && typeof Me == "function" && b && b.createHTMLDocument !== void 0;
|
|
195
|
-
let { MUSTACHE_EXPR: T, ERB_EXPR: E, TMPLIT_EXPR: D, DATA_ATTR: He, ARIA_ATTR: Ue, IS_SCRIPT_OR_DATA: O, ATTR_WHITESPACE: We, CUSTOM_ELEMENT: k } = Fe, { IS_ALLOWED_URI: Ge } = Fe, A = null, j = _({}, [
|
|
196
|
-
...he,
|
|
197
|
-
...ge,
|
|
198
|
-
..._e,
|
|
199
|
-
...ye,
|
|
200
|
-
...xe
|
|
201
|
-
]), M = null, N = _({}, [
|
|
202
|
-
...Se,
|
|
203
|
-
...Ce,
|
|
204
|
-
...we,
|
|
205
|
-
...Te
|
|
206
|
-
]), P = Object.seal(d(null, {
|
|
207
|
-
tagNameCheck: {
|
|
208
|
-
writable: !0,
|
|
209
|
-
configurable: !1,
|
|
210
|
-
enumerable: !0,
|
|
211
|
-
value: null
|
|
212
|
-
},
|
|
213
|
-
attributeNameCheck: {
|
|
214
|
-
writable: !0,
|
|
215
|
-
configurable: !1,
|
|
216
|
-
enumerable: !0,
|
|
217
|
-
value: null
|
|
218
|
-
},
|
|
219
|
-
allowCustomizedBuiltInElements: {
|
|
220
|
-
writable: !0,
|
|
221
|
-
configurable: !1,
|
|
222
|
-
enumerable: !0,
|
|
223
|
-
value: !1
|
|
224
|
-
}
|
|
225
|
-
})), F = null, Ke = null, I = Object.seal(d(null, {
|
|
226
|
-
tagCheck: {
|
|
227
|
-
writable: !0,
|
|
228
|
-
configurable: !1,
|
|
229
|
-
enumerable: !0,
|
|
230
|
-
value: null
|
|
231
|
-
},
|
|
232
|
-
attributeCheck: {
|
|
233
|
-
writable: !0,
|
|
234
|
-
configurable: !1,
|
|
235
|
-
enumerable: !0,
|
|
236
|
-
value: null
|
|
237
|
-
}
|
|
238
|
-
})), qe = !0, Je = !0, Ye = !1, Xe = !0, L = !1, Ze = !0, R = !1, Qe = !1, $e = !1, z = !1, B = !1, V = !1, H = !0, U = !1, et = !0, tt = !1, nt = {}, W = null, rt = _({}, [
|
|
239
|
-
"annotation-xml",
|
|
240
|
-
"audio",
|
|
241
|
-
"colgroup",
|
|
242
|
-
"desc",
|
|
243
|
-
"foreignobject",
|
|
244
|
-
"head",
|
|
245
|
-
"iframe",
|
|
246
|
-
"math",
|
|
247
|
-
"mi",
|
|
248
|
-
"mn",
|
|
249
|
-
"mo",
|
|
250
|
-
"ms",
|
|
251
|
-
"mtext",
|
|
252
|
-
"noembed",
|
|
253
|
-
"noframes",
|
|
254
|
-
"noscript",
|
|
255
|
-
"plaintext",
|
|
256
|
-
"script",
|
|
257
|
-
"style",
|
|
258
|
-
"svg",
|
|
259
|
-
"template",
|
|
260
|
-
"thead",
|
|
261
|
-
"title",
|
|
262
|
-
"video",
|
|
263
|
-
"xmp"
|
|
264
|
-
]), it = null, at = _({}, [
|
|
265
|
-
"audio",
|
|
266
|
-
"video",
|
|
267
|
-
"img",
|
|
268
|
-
"source",
|
|
269
|
-
"image",
|
|
270
|
-
"track"
|
|
271
|
-
]), ot = null, st = _({}, [
|
|
272
|
-
"alt",
|
|
273
|
-
"class",
|
|
274
|
-
"for",
|
|
275
|
-
"id",
|
|
276
|
-
"label",
|
|
277
|
-
"name",
|
|
278
|
-
"pattern",
|
|
279
|
-
"placeholder",
|
|
280
|
-
"role",
|
|
281
|
-
"summary",
|
|
282
|
-
"title",
|
|
283
|
-
"value",
|
|
284
|
-
"style",
|
|
285
|
-
"xmlns"
|
|
286
|
-
]), ct = "http://www.w3.org/1998/Math/MathML", lt = "http://www.w3.org/2000/svg", G = "http://www.w3.org/1999/xhtml", ut = G, dt = !1, ft = null, pt = _({}, [
|
|
287
|
-
ct,
|
|
288
|
-
lt,
|
|
289
|
-
G
|
|
290
|
-
], oe), mt = _({}, [
|
|
291
|
-
"mi",
|
|
292
|
-
"mo",
|
|
293
|
-
"mn",
|
|
294
|
-
"ms",
|
|
295
|
-
"mtext"
|
|
296
|
-
]), ht = _({}, ["annotation-xml"]), gt = _({}, [
|
|
297
|
-
"title",
|
|
298
|
-
"style",
|
|
299
|
-
"font",
|
|
300
|
-
"a",
|
|
301
|
-
"script"
|
|
302
|
-
]), _t = null, vt = ["application/xhtml+xml", "text/html"], K = null, q = null, yt = n.createElement("form"), bt = function(e) {
|
|
303
|
-
return e instanceof RegExp || e instanceof Function;
|
|
304
|
-
}, xt = function() {
|
|
305
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
306
|
-
if (!(q && q === e)) {
|
|
307
|
-
if ((!e || typeof e != "object") && (e = {}), e = v(e), _t = vt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, K = _t === "application/xhtml+xml" ? oe : ae, A = m(e, "ALLOWED_TAGS") ? _({}, e.ALLOWED_TAGS, K) : j, M = m(e, "ALLOWED_ATTR") ? _({}, e.ALLOWED_ATTR, K) : N, ft = m(e, "ALLOWED_NAMESPACES") ? _({}, e.ALLOWED_NAMESPACES, oe) : pt, ot = m(e, "ADD_URI_SAFE_ATTR") ? _(v(st), e.ADD_URI_SAFE_ATTR, K) : st, it = m(e, "ADD_DATA_URI_TAGS") ? _(v(at), e.ADD_DATA_URI_TAGS, K) : at, W = m(e, "FORBID_CONTENTS") ? _({}, e.FORBID_CONTENTS, K) : rt, F = m(e, "FORBID_TAGS") ? _({}, e.FORBID_TAGS, K) : v({}), Ke = m(e, "FORBID_ATTR") ? _({}, e.FORBID_ATTR, K) : v({}), nt = m(e, "USE_PROFILES") ? e.USE_PROFILES : !1, qe = e.ALLOW_ARIA_ATTR !== !1, Je = e.ALLOW_DATA_ATTR !== !1, Ye = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Xe = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, L = e.SAFE_FOR_TEMPLATES || !1, Ze = e.SAFE_FOR_XML !== !1, R = e.WHOLE_DOCUMENT || !1, z = e.RETURN_DOM || !1, B = e.RETURN_DOM_FRAGMENT || !1, V = e.RETURN_TRUSTED_TYPE || !1, $e = e.FORCE_BODY || !1, H = e.SANITIZE_DOM !== !1, U = e.SANITIZE_NAMED_PROPS || !1, et = e.KEEP_CONTENT !== !1, tt = e.IN_PLACE || !1, Ge = e.ALLOWED_URI_REGEXP || je, ut = e.NAMESPACE || G, mt = e.MATHML_TEXT_INTEGRATION_POINTS || mt, ht = e.HTML_INTEGRATION_POINTS || ht, P = e.CUSTOM_ELEMENT_HANDLING || d(null), e.CUSTOM_ELEMENT_HANDLING && bt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (P.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && bt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (P.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (P.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), L && (Je = !1), B && (z = !0), nt && (A = _({}, xe), M = d(null), nt.html === !0 && (_(A, he), _(M, Se)), nt.svg === !0 && (_(A, ge), _(M, Ce), _(M, Te)), nt.svgFilters === !0 && (_(A, _e), _(M, Ce), _(M, Te)), nt.mathMl === !0 && (_(A, ye), _(M, we), _(M, Te))), I.tagCheck = null, I.attributeCheck = null, e.ADD_TAGS && (typeof e.ADD_TAGS == "function" ? I.tagCheck = e.ADD_TAGS : (A === j && (A = v(A)), _(A, e.ADD_TAGS, K))), e.ADD_ATTR && (typeof e.ADD_ATTR == "function" ? I.attributeCheck = e.ADD_ATTR : (M === N && (M = v(M)), _(M, e.ADD_ATTR, K))), e.ADD_URI_SAFE_ATTR && _(ot, e.ADD_URI_SAFE_ATTR, K), e.FORBID_CONTENTS && (W === rt && (W = v(W)), _(W, e.FORBID_CONTENTS, K)), e.ADD_FORBID_CONTENTS && (W === rt && (W = v(W)), _(W, e.ADD_FORBID_CONTENTS, K)), et && (A["#text"] = !0), R && _(A, [
|
|
308
|
-
"html",
|
|
309
|
-
"head",
|
|
310
|
-
"body"
|
|
311
|
-
]), A.table && (_(A, ["tbody"]), delete F.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
312
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw de("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
313
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw de("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
314
|
-
y = e.TRUSTED_TYPES_POLICY, Pe = y.createHTML("");
|
|
315
|
-
} else y === void 0 && (y = Re(pe, a)), y !== null && typeof Pe == "string" && (Pe = y.createHTML(""));
|
|
316
|
-
l && l(e), q = e;
|
|
317
|
-
}
|
|
318
|
-
}, St = _({}, [
|
|
319
|
-
...ge,
|
|
320
|
-
..._e,
|
|
321
|
-
...ve
|
|
322
|
-
]), Ct = _({}, [...ye, ...be]), wt = function(e) {
|
|
323
|
-
let t = Me(e);
|
|
324
|
-
(!t || !t.tagName) && (t = {
|
|
325
|
-
namespaceURI: ut,
|
|
326
|
-
tagName: "template"
|
|
327
|
-
});
|
|
328
|
-
let n = ae(e.tagName), r = ae(t.tagName);
|
|
329
|
-
return ft[e.namespaceURI] ? e.namespaceURI === lt ? t.namespaceURI === G ? n === "svg" : t.namespaceURI === ct ? n === "svg" && (r === "annotation-xml" || mt[r]) : !!St[n] : e.namespaceURI === ct ? t.namespaceURI === G ? n === "math" : t.namespaceURI === lt ? n === "math" && ht[r] : !!Ct[n] : e.namespaceURI === G ? t.namespaceURI === lt && !ht[r] || t.namespaceURI === ct && !mt[r] ? !1 : !Ct[n] && (gt[n] || !St[n]) : !!(_t === "application/xhtml+xml" && ft[e.namespaceURI]) : !1;
|
|
330
|
-
}, J = function(e) {
|
|
331
|
-
re(t.removed, { element: e });
|
|
332
|
-
try {
|
|
333
|
-
Me(e).removeChild(e);
|
|
334
|
-
} catch {
|
|
335
|
-
Oe(e);
|
|
336
|
-
}
|
|
337
|
-
}, Y = function(e, n) {
|
|
338
|
-
try {
|
|
339
|
-
re(t.removed, {
|
|
340
|
-
attribute: n.getAttributeNode(e),
|
|
341
|
-
from: n
|
|
342
|
-
});
|
|
343
|
-
} catch {
|
|
344
|
-
re(t.removed, {
|
|
345
|
-
attribute: null,
|
|
346
|
-
from: n
|
|
347
|
-
});
|
|
348
|
-
}
|
|
349
|
-
if (n.removeAttribute(e), e === "is") if (z || B) try {
|
|
350
|
-
J(n);
|
|
351
|
-
} catch {}
|
|
352
|
-
else try {
|
|
353
|
-
n.setAttribute(e, "");
|
|
354
|
-
} catch {}
|
|
355
|
-
}, X = function(e) {
|
|
356
|
-
let t = null, r = null;
|
|
357
|
-
if ($e) e = "<remove></remove>" + e;
|
|
358
|
-
else {
|
|
359
|
-
let t = se(e, /^[\r\n\t ]+/);
|
|
360
|
-
r = t && t[0];
|
|
361
|
-
}
|
|
362
|
-
_t === "application/xhtml+xml" && ut === G && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
363
|
-
let i = y ? y.createHTML(e) : e;
|
|
364
|
-
if (ut === G) try {
|
|
365
|
-
t = new fe().parseFromString(i, _t);
|
|
366
|
-
} catch {}
|
|
367
|
-
if (!t || !t.documentElement) {
|
|
368
|
-
t = b.createDocument(ut, "template", null);
|
|
369
|
-
try {
|
|
370
|
-
t.documentElement.innerHTML = dt ? Pe : i;
|
|
371
|
-
} catch {}
|
|
372
|
-
}
|
|
373
|
-
let a = t.body || t.documentElement;
|
|
374
|
-
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), ut === G ? S.call(t, R ? "html" : "body")[0] : R ? t.documentElement : a;
|
|
375
|
-
}, Tt = function(e) {
|
|
376
|
-
return Ve.call(e.ownerDocument || e, e, f.SHOW_ELEMENT | f.SHOW_COMMENT | f.SHOW_TEXT | f.SHOW_PROCESSING_INSTRUCTION | f.SHOW_CDATA_SECTION, null);
|
|
377
|
-
}, Z = function(e) {
|
|
378
|
-
return e instanceof g && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof ee) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
|
|
379
|
-
}, Q = function(e) {
|
|
380
|
-
return typeof c == "function" && e instanceof c;
|
|
381
|
-
};
|
|
382
|
-
function $(e, n, r) {
|
|
383
|
-
p(e, (e) => {
|
|
384
|
-
e.call(t, n, r, q);
|
|
385
|
-
});
|
|
386
|
-
}
|
|
387
|
-
let Et = function(e) {
|
|
388
|
-
let n = null;
|
|
389
|
-
if ($(w.beforeSanitizeElements, e, null), Z(e)) return J(e), !0;
|
|
390
|
-
let r = K(e.nodeName);
|
|
391
|
-
if ($(w.uponSanitizeElement, e, {
|
|
392
|
-
tagName: r,
|
|
393
|
-
allowedTags: A
|
|
394
|
-
}), Ze && e.hasChildNodes() && !Q(e.firstElementChild) && h(/<[/\w!]/g, e.innerHTML) && h(/<[/\w!]/g, e.textContent) || Ze && e.namespaceURI === G && r === "style" && Q(e.firstElementChild) || e.nodeType === Ie.progressingInstruction || Ze && e.nodeType === Ie.comment && h(/<[/\w]/g, e.data)) return J(e), !0;
|
|
395
|
-
if (F[r] || !(I.tagCheck instanceof Function && I.tagCheck(r)) && !A[r]) {
|
|
396
|
-
if (!F[r] && Ot(r) && (P.tagNameCheck instanceof RegExp && h(P.tagNameCheck, r) || P.tagNameCheck instanceof Function && P.tagNameCheck(r))) return !1;
|
|
397
|
-
if (et && !W[r]) {
|
|
398
|
-
let t = Me(e) || e.parentNode, n = Ae(e) || e.childNodes;
|
|
399
|
-
if (n && t) {
|
|
400
|
-
let r = n.length;
|
|
401
|
-
for (let i = r - 1; i >= 0; --i) {
|
|
402
|
-
let r = De(n[i], !0);
|
|
403
|
-
r.__removalCount = (e.__removalCount || 0) + 1, t.insertBefore(r, ke(e));
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
return J(e), !0;
|
|
408
|
-
}
|
|
409
|
-
return e instanceof u && !wt(e) || (r === "noscript" || r === "noembed" || r === "noframes") && h(/<\/no(script|embed|frames)/i, e.innerHTML) ? (J(e), !0) : (L && e.nodeType === Ie.text && (n = e.textContent, p([
|
|
410
|
-
T,
|
|
411
|
-
E,
|
|
412
|
-
D
|
|
413
|
-
], (e) => {
|
|
414
|
-
n = ce(n, e, " ");
|
|
415
|
-
}), e.textContent !== n && (re(t.removed, { element: e.cloneNode() }), e.textContent = n)), $(w.afterSanitizeElements, e, null), !1);
|
|
416
|
-
}, Dt = function(e, t, r) {
|
|
417
|
-
if (Ke[t] || H && (t === "id" || t === "name") && (r in n || r in yt)) return !1;
|
|
418
|
-
if (!(Je && !Ke[t] && h(He, t)) && !(qe && h(Ue, t)) && !(I.attributeCheck instanceof Function && I.attributeCheck(t, e))) {
|
|
419
|
-
if (!M[t] || Ke[t]) {
|
|
420
|
-
if (!(Ot(e) && (P.tagNameCheck instanceof RegExp && h(P.tagNameCheck, e) || P.tagNameCheck instanceof Function && P.tagNameCheck(e)) && (P.attributeNameCheck instanceof RegExp && h(P.attributeNameCheck, t) || P.attributeNameCheck instanceof Function && P.attributeNameCheck(t, e)) || t === "is" && P.allowCustomizedBuiltInElements && (P.tagNameCheck instanceof RegExp && h(P.tagNameCheck, r) || P.tagNameCheck instanceof Function && P.tagNameCheck(r)))) return !1;
|
|
421
|
-
} else if (!ot[t] && !h(Ge, ce(r, We, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && le(r, "data:") === 0 && it[e]) && !(Ye && !h(O, ce(r, We, ""))) && r) return !1;
|
|
422
|
-
}
|
|
423
|
-
return !0;
|
|
424
|
-
}, Ot = function(e) {
|
|
425
|
-
return e !== "annotation-xml" && se(e, k);
|
|
426
|
-
}, kt = function(e) {
|
|
427
|
-
$(w.beforeSanitizeAttributes, e, null);
|
|
428
|
-
let { attributes: n } = e;
|
|
429
|
-
if (!n || Z(e)) return;
|
|
430
|
-
let r = {
|
|
431
|
-
attrName: "",
|
|
432
|
-
attrValue: "",
|
|
433
|
-
keepAttr: !0,
|
|
434
|
-
allowedAttributes: M,
|
|
435
|
-
forceKeepAttr: void 0
|
|
436
|
-
}, i = n.length;
|
|
437
|
-
for (; i--;) {
|
|
438
|
-
let { name: a, namespaceURI: o, value: s } = n[i], c = K(a), l = s, u = a === "value" ? l : ue(l);
|
|
439
|
-
if (r.attrName = c, r.attrValue = u, r.keepAttr = !0, r.forceKeepAttr = void 0, $(w.uponSanitizeAttribute, e, r), u = r.attrValue, U && (c === "id" || c === "name") && (Y(a, e), u = "user-content-" + u), Ze && h(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, u)) {
|
|
440
|
-
Y(a, e);
|
|
441
|
-
continue;
|
|
442
|
-
}
|
|
443
|
-
if (c === "attributename" && se(u, "href")) {
|
|
444
|
-
Y(a, e);
|
|
445
|
-
continue;
|
|
446
|
-
}
|
|
447
|
-
if (r.forceKeepAttr) continue;
|
|
448
|
-
if (!r.keepAttr) {
|
|
449
|
-
Y(a, e);
|
|
450
|
-
continue;
|
|
451
|
-
}
|
|
452
|
-
if (!Xe && h(/\/>/i, u)) {
|
|
453
|
-
Y(a, e);
|
|
454
|
-
continue;
|
|
455
|
-
}
|
|
456
|
-
L && p([
|
|
457
|
-
T,
|
|
458
|
-
E,
|
|
459
|
-
D
|
|
460
|
-
], (e) => {
|
|
461
|
-
u = ce(u, e, " ");
|
|
462
|
-
});
|
|
463
|
-
let d = K(e.nodeName);
|
|
464
|
-
if (!Dt(d, c, u)) {
|
|
465
|
-
Y(a, e);
|
|
466
|
-
continue;
|
|
467
|
-
}
|
|
468
|
-
if (y && typeof pe == "object" && typeof pe.getAttributeType == "function" && !o) switch (pe.getAttributeType(d, c)) {
|
|
469
|
-
case "TrustedHTML":
|
|
470
|
-
u = y.createHTML(u);
|
|
471
|
-
break;
|
|
472
|
-
case "TrustedScriptURL":
|
|
473
|
-
u = y.createScriptURL(u);
|
|
474
|
-
break;
|
|
475
|
-
}
|
|
476
|
-
if (u !== l) try {
|
|
477
|
-
o ? e.setAttributeNS(o, a, u) : e.setAttribute(a, u), Z(e) ? J(e) : ne(t.removed);
|
|
478
|
-
} catch {
|
|
479
|
-
Y(a, e);
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
$(w.afterSanitizeAttributes, e, null);
|
|
483
|
-
}, At = function(e) {
|
|
484
|
-
let t = null, n = Tt(e);
|
|
485
|
-
for ($(w.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) $(w.uponSanitizeShadowNode, t, null), Et(t), kt(t), t.content instanceof o && At(t.content);
|
|
486
|
-
$(w.afterSanitizeShadowDOM, e, null);
|
|
487
|
-
};
|
|
488
|
-
return t.sanitize = function(e) {
|
|
489
|
-
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, s = null, l = null;
|
|
490
|
-
if (dt = !e, dt && (e = "<!-->"), typeof e != "string" && !Q(e)) if (typeof e.toString == "function") {
|
|
491
|
-
if (e = e.toString(), typeof e != "string") throw de("dirty is not a string, aborting");
|
|
492
|
-
} else throw de("toString is not a function");
|
|
493
|
-
if (!t.isSupported) return e;
|
|
494
|
-
if (Qe || xt(n), t.removed = [], typeof e == "string" && (tt = !1), tt) {
|
|
495
|
-
if (e.nodeName) {
|
|
496
|
-
let t = K(e.nodeName);
|
|
497
|
-
if (!A[t] || F[t]) throw de("root node is forbidden and cannot be sanitized in-place");
|
|
498
|
-
}
|
|
499
|
-
} else if (e instanceof c) i = X("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === Ie.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a);
|
|
500
|
-
else {
|
|
501
|
-
if (!z && !L && !R && e.indexOf("<") === -1) return y && V ? y.createHTML(e) : e;
|
|
502
|
-
if (i = X(e), !i) return z ? null : V ? Pe : "";
|
|
503
|
-
}
|
|
504
|
-
i && $e && J(i.firstChild);
|
|
505
|
-
let u = Tt(tt ? e : i);
|
|
506
|
-
for (; s = u.nextNode();) Et(s), kt(s), s.content instanceof o && At(s.content);
|
|
507
|
-
if (tt) return e;
|
|
508
|
-
if (z) {
|
|
509
|
-
if (L) {
|
|
510
|
-
i.normalize();
|
|
511
|
-
let e = i.innerHTML;
|
|
512
|
-
p([
|
|
513
|
-
T,
|
|
514
|
-
E,
|
|
515
|
-
D
|
|
516
|
-
], (t) => {
|
|
517
|
-
e = ce(e, t, " ");
|
|
518
|
-
}), i.innerHTML = e;
|
|
519
|
-
}
|
|
520
|
-
if (B) for (l = x.call(i.ownerDocument); i.firstChild;) l.appendChild(i.firstChild);
|
|
521
|
-
else l = i;
|
|
522
|
-
return (M.shadowroot || M.shadowrootmode) && (l = C.call(r, l, !0)), l;
|
|
523
|
-
}
|
|
524
|
-
let d = R ? i.outerHTML : i.innerHTML;
|
|
525
|
-
return R && A["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && h(Ne, i.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + d), L && p([
|
|
526
|
-
T,
|
|
527
|
-
E,
|
|
528
|
-
D
|
|
529
|
-
], (e) => {
|
|
530
|
-
d = ce(d, e, " ");
|
|
531
|
-
}), y && V ? y.createHTML(d) : d;
|
|
532
|
-
}, t.setConfig = function() {
|
|
533
|
-
xt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), Qe = !0;
|
|
534
|
-
}, t.clearConfig = function() {
|
|
535
|
-
q = null, Qe = !1;
|
|
536
|
-
}, t.isValidAttribute = function(e, t, n) {
|
|
537
|
-
return q || xt({}), Dt(K(e), K(t), n);
|
|
538
|
-
}, t.addHook = function(e, t) {
|
|
539
|
-
typeof t == "function" && re(w[e], t);
|
|
540
|
-
}, t.removeHook = function(e, t) {
|
|
541
|
-
if (t !== void 0) {
|
|
542
|
-
let n = te(w[e], t);
|
|
543
|
-
return n === -1 ? void 0 : ie(w[e], n, 1)[0];
|
|
544
|
-
}
|
|
545
|
-
return ne(w[e]);
|
|
546
|
-
}, t.removeHooks = function(e) {
|
|
547
|
-
w[e] = [];
|
|
548
|
-
}, t.removeAllHooks = function() {
|
|
549
|
-
w = ze();
|
|
550
|
-
}, t;
|
|
551
|
-
}
|
|
552
|
-
var b = Be(), Ve = {
|
|
1
|
+
import { t as e } from "./purify.es-9OKVhuci.js";
|
|
2
|
+
import { _ as t, g as n, h as r, m as i } from "./src-GDFuItmC.js";
|
|
3
|
+
//#region node_modules/khroma/dist/utils/channel.js
|
|
4
|
+
var a = {
|
|
553
5
|
min: {
|
|
554
6
|
r: 0,
|
|
555
7
|
g: 0,
|
|
@@ -584,11 +36,11 @@ var b = Be(), Ve = {
|
|
|
584
36
|
hsl2rgb: ({ h: e, s: t, l: n }, r) => {
|
|
585
37
|
if (!t) return n * 2.55;
|
|
586
38
|
e /= 360, t /= 100, n /= 100;
|
|
587
|
-
let i = n < .5 ? n * (1 + t) : n + t - n * t,
|
|
39
|
+
let i = n < .5 ? n * (1 + t) : n + t - n * t, o = 2 * n - i;
|
|
588
40
|
switch (r) {
|
|
589
|
-
case "r": return
|
|
590
|
-
case "g": return
|
|
591
|
-
case "b": return
|
|
41
|
+
case "r": return a.hue2rgb(o, i, e + 1 / 3) * 255;
|
|
42
|
+
case "g": return a.hue2rgb(o, i, e) * 255;
|
|
43
|
+
case "b": return a.hue2rgb(o, i, e - 1 / 3) * 255;
|
|
592
44
|
}
|
|
593
45
|
},
|
|
594
46
|
rgb2hsl: ({ r: e, g: t, b: n }, r) => {
|
|
@@ -605,8 +57,8 @@ var b = Be(), Ve = {
|
|
|
605
57
|
default: return -1;
|
|
606
58
|
}
|
|
607
59
|
}
|
|
608
|
-
},
|
|
609
|
-
channel:
|
|
60
|
+
}, o = {
|
|
61
|
+
channel: a,
|
|
610
62
|
lang: {
|
|
611
63
|
clamp: (e, t, n) => t > n ? Math.min(t, Math.max(n, e)) : Math.min(n, Math.max(t, e)),
|
|
612
64
|
round: (e) => Math.round(e * 1e10) / 1e10
|
|
@@ -615,15 +67,15 @@ var b = Be(), Ve = {
|
|
|
615
67
|
let t = Math.round(e).toString(16);
|
|
616
68
|
return t.length > 1 ? t : `0${t}`;
|
|
617
69
|
} }
|
|
618
|
-
},
|
|
619
|
-
for (let e = 0; e <= 255; e++)
|
|
620
|
-
var
|
|
70
|
+
}, s = {};
|
|
71
|
+
for (let e = 0; e <= 255; e++) s[e] = o.unit.dec2hex(e);
|
|
72
|
+
var c = {
|
|
621
73
|
ALL: 0,
|
|
622
74
|
RGB: 1,
|
|
623
75
|
HSL: 2
|
|
624
|
-
},
|
|
76
|
+
}, l = class {
|
|
625
77
|
constructor() {
|
|
626
|
-
this.type =
|
|
78
|
+
this.type = c.ALL;
|
|
627
79
|
}
|
|
628
80
|
get() {
|
|
629
81
|
return this.type;
|
|
@@ -633,70 +85,70 @@ var C = {
|
|
|
633
85
|
this.type = e;
|
|
634
86
|
}
|
|
635
87
|
reset() {
|
|
636
|
-
this.type =
|
|
88
|
+
this.type = c.ALL;
|
|
637
89
|
}
|
|
638
90
|
is(e) {
|
|
639
91
|
return this.type === e;
|
|
640
92
|
}
|
|
641
|
-
},
|
|
93
|
+
}, u = new class {
|
|
642
94
|
constructor(e, t) {
|
|
643
|
-
this.color = t, this.changed = !1, this.data = e, this.type = new
|
|
95
|
+
this.color = t, this.changed = !1, this.data = e, this.type = new l();
|
|
644
96
|
}
|
|
645
97
|
set(e, t) {
|
|
646
|
-
return this.color = t, this.changed = !1, this.data = e, this.type.type =
|
|
98
|
+
return this.color = t, this.changed = !1, this.data = e, this.type.type = c.ALL, this;
|
|
647
99
|
}
|
|
648
100
|
_ensureHSL() {
|
|
649
101
|
let e = this.data, { h: t, s: n, l: r } = e;
|
|
650
|
-
t === void 0 && (e.h =
|
|
102
|
+
t === void 0 && (e.h = o.channel.rgb2hsl(e, "h")), n === void 0 && (e.s = o.channel.rgb2hsl(e, "s")), r === void 0 && (e.l = o.channel.rgb2hsl(e, "l"));
|
|
651
103
|
}
|
|
652
104
|
_ensureRGB() {
|
|
653
105
|
let e = this.data, { r: t, g: n, b: r } = e;
|
|
654
|
-
t === void 0 && (e.r =
|
|
106
|
+
t === void 0 && (e.r = o.channel.hsl2rgb(e, "r")), n === void 0 && (e.g = o.channel.hsl2rgb(e, "g")), r === void 0 && (e.b = o.channel.hsl2rgb(e, "b"));
|
|
655
107
|
}
|
|
656
108
|
get r() {
|
|
657
109
|
let e = this.data, t = e.r;
|
|
658
|
-
return !this.type.is(
|
|
110
|
+
return !this.type.is(c.HSL) && t !== void 0 ? t : (this._ensureHSL(), o.channel.hsl2rgb(e, "r"));
|
|
659
111
|
}
|
|
660
112
|
get g() {
|
|
661
113
|
let e = this.data, t = e.g;
|
|
662
|
-
return !this.type.is(
|
|
114
|
+
return !this.type.is(c.HSL) && t !== void 0 ? t : (this._ensureHSL(), o.channel.hsl2rgb(e, "g"));
|
|
663
115
|
}
|
|
664
116
|
get b() {
|
|
665
117
|
let e = this.data, t = e.b;
|
|
666
|
-
return !this.type.is(
|
|
118
|
+
return !this.type.is(c.HSL) && t !== void 0 ? t : (this._ensureHSL(), o.channel.hsl2rgb(e, "b"));
|
|
667
119
|
}
|
|
668
120
|
get h() {
|
|
669
121
|
let e = this.data, t = e.h;
|
|
670
|
-
return !this.type.is(
|
|
122
|
+
return !this.type.is(c.RGB) && t !== void 0 ? t : (this._ensureRGB(), o.channel.rgb2hsl(e, "h"));
|
|
671
123
|
}
|
|
672
124
|
get s() {
|
|
673
125
|
let e = this.data, t = e.s;
|
|
674
|
-
return !this.type.is(
|
|
126
|
+
return !this.type.is(c.RGB) && t !== void 0 ? t : (this._ensureRGB(), o.channel.rgb2hsl(e, "s"));
|
|
675
127
|
}
|
|
676
128
|
get l() {
|
|
677
129
|
let e = this.data, t = e.l;
|
|
678
|
-
return !this.type.is(
|
|
130
|
+
return !this.type.is(c.RGB) && t !== void 0 ? t : (this._ensureRGB(), o.channel.rgb2hsl(e, "l"));
|
|
679
131
|
}
|
|
680
132
|
get a() {
|
|
681
133
|
return this.data.a;
|
|
682
134
|
}
|
|
683
135
|
set r(e) {
|
|
684
|
-
this.type.set(
|
|
136
|
+
this.type.set(c.RGB), this.changed = !0, this.data.r = e;
|
|
685
137
|
}
|
|
686
138
|
set g(e) {
|
|
687
|
-
this.type.set(
|
|
139
|
+
this.type.set(c.RGB), this.changed = !0, this.data.g = e;
|
|
688
140
|
}
|
|
689
141
|
set b(e) {
|
|
690
|
-
this.type.set(
|
|
142
|
+
this.type.set(c.RGB), this.changed = !0, this.data.b = e;
|
|
691
143
|
}
|
|
692
144
|
set h(e) {
|
|
693
|
-
this.type.set(
|
|
145
|
+
this.type.set(c.HSL), this.changed = !0, this.data.h = e;
|
|
694
146
|
}
|
|
695
147
|
set s(e) {
|
|
696
|
-
this.type.set(
|
|
148
|
+
this.type.set(c.HSL), this.changed = !0, this.data.s = e;
|
|
697
149
|
}
|
|
698
150
|
set l(e) {
|
|
699
|
-
this.type.set(
|
|
151
|
+
this.type.set(c.HSL), this.changed = !0, this.data.l = e;
|
|
700
152
|
}
|
|
701
153
|
set a(e) {
|
|
702
154
|
this.changed = !0, this.data.a = e;
|
|
@@ -706,57 +158,57 @@ var C = {
|
|
|
706
158
|
g: 0,
|
|
707
159
|
b: 0,
|
|
708
160
|
a: 0
|
|
709
|
-
}, "transparent"),
|
|
161
|
+
}, "transparent"), d = {
|
|
710
162
|
re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,
|
|
711
163
|
parse: (e) => {
|
|
712
164
|
if (e.charCodeAt(0) !== 35) return;
|
|
713
|
-
let t = e.match(
|
|
165
|
+
let t = e.match(d.re);
|
|
714
166
|
if (!t) return;
|
|
715
|
-
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,
|
|
716
|
-
return
|
|
717
|
-
r: (r >> c * (l + 3) &
|
|
718
|
-
g: (r >> c * (l + 2) &
|
|
719
|
-
b: (r >> c * (l + 1) &
|
|
720
|
-
a: a ? (r &
|
|
167
|
+
let n = t[1], r = parseInt(n, 16), i = n.length, a = i % 4 == 0, o = i > 4, s = o ? 1 : 17, c = o ? 8 : 4, l = a ? 0 : -1, f = o ? 255 : 15;
|
|
168
|
+
return u.set({
|
|
169
|
+
r: (r >> c * (l + 3) & f) * s,
|
|
170
|
+
g: (r >> c * (l + 2) & f) * s,
|
|
171
|
+
b: (r >> c * (l + 1) & f) * s,
|
|
172
|
+
a: a ? (r & f) * s / 255 : 1
|
|
721
173
|
}, e);
|
|
722
174
|
},
|
|
723
175
|
stringify: (e) => {
|
|
724
176
|
let { r: t, g: n, b: r, a: i } = e;
|
|
725
|
-
return i < 1 ? `#${
|
|
177
|
+
return i < 1 ? `#${s[Math.round(t)]}${s[Math.round(n)]}${s[Math.round(r)]}${s[Math.round(i * 255)]}` : `#${s[Math.round(t)]}${s[Math.round(n)]}${s[Math.round(r)]}`;
|
|
726
178
|
}
|
|
727
|
-
},
|
|
179
|
+
}, f = {
|
|
728
180
|
re: /^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,
|
|
729
181
|
hueRe: /^(.+?)(deg|grad|rad|turn)$/i,
|
|
730
182
|
_hue2deg: (e) => {
|
|
731
|
-
let t = e.match(
|
|
183
|
+
let t = e.match(f.hueRe);
|
|
732
184
|
if (t) {
|
|
733
185
|
let [, e, n] = t;
|
|
734
186
|
switch (n) {
|
|
735
|
-
case "grad": return
|
|
736
|
-
case "rad": return
|
|
737
|
-
case "turn": return
|
|
187
|
+
case "grad": return o.channel.clamp.h(parseFloat(e) * .9);
|
|
188
|
+
case "rad": return o.channel.clamp.h(parseFloat(e) * 180 / Math.PI);
|
|
189
|
+
case "turn": return o.channel.clamp.h(parseFloat(e) * 360);
|
|
738
190
|
}
|
|
739
191
|
}
|
|
740
|
-
return
|
|
192
|
+
return o.channel.clamp.h(parseFloat(e));
|
|
741
193
|
},
|
|
742
194
|
parse: (e) => {
|
|
743
195
|
let t = e.charCodeAt(0);
|
|
744
196
|
if (t !== 104 && t !== 72) return;
|
|
745
|
-
let n = e.match(
|
|
197
|
+
let n = e.match(f.re);
|
|
746
198
|
if (!n) return;
|
|
747
|
-
let [, r, i, a,
|
|
748
|
-
return
|
|
749
|
-
h:
|
|
750
|
-
s:
|
|
751
|
-
l:
|
|
752
|
-
a:
|
|
199
|
+
let [, r, i, a, s, c] = n;
|
|
200
|
+
return u.set({
|
|
201
|
+
h: f._hue2deg(r),
|
|
202
|
+
s: o.channel.clamp.s(parseFloat(i)),
|
|
203
|
+
l: o.channel.clamp.l(parseFloat(a)),
|
|
204
|
+
a: s ? o.channel.clamp.a(c ? parseFloat(s) / 100 : parseFloat(s)) : 1
|
|
753
205
|
}, e);
|
|
754
206
|
},
|
|
755
207
|
stringify: (e) => {
|
|
756
208
|
let { h: t, s: n, l: r, a: i } = e;
|
|
757
|
-
return i < 1 ? `hsla(${
|
|
209
|
+
return i < 1 ? `hsla(${o.lang.round(t)}, ${o.lang.round(n)}%, ${o.lang.round(r)}%, ${i})` : `hsl(${o.lang.round(t)}, ${o.lang.round(n)}%, ${o.lang.round(r)}%)`;
|
|
758
210
|
}
|
|
759
|
-
},
|
|
211
|
+
}, p = {
|
|
760
212
|
colors: {
|
|
761
213
|
aliceblue: "#f0f8ff",
|
|
762
214
|
antiquewhite: "#faebd7",
|
|
@@ -908,175 +360,175 @@ var C = {
|
|
|
908
360
|
},
|
|
909
361
|
parse: (e) => {
|
|
910
362
|
e = e.toLowerCase();
|
|
911
|
-
let t =
|
|
912
|
-
if (t) return
|
|
363
|
+
let t = p.colors[e];
|
|
364
|
+
if (t) return d.parse(t);
|
|
913
365
|
},
|
|
914
366
|
stringify: (e) => {
|
|
915
|
-
let t =
|
|
916
|
-
for (let e in
|
|
367
|
+
let t = d.stringify(e);
|
|
368
|
+
for (let e in p.colors) if (p.colors[e] === t) return e;
|
|
917
369
|
}
|
|
918
|
-
},
|
|
370
|
+
}, m = {
|
|
919
371
|
re: /^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,
|
|
920
372
|
parse: (e) => {
|
|
921
373
|
let t = e.charCodeAt(0);
|
|
922
374
|
if (t !== 114 && t !== 82) return;
|
|
923
|
-
let n = e.match(
|
|
375
|
+
let n = e.match(m.re);
|
|
924
376
|
if (!n) return;
|
|
925
|
-
let [, r, i, a,
|
|
926
|
-
return
|
|
927
|
-
r:
|
|
928
|
-
g:
|
|
929
|
-
b:
|
|
930
|
-
a:
|
|
377
|
+
let [, r, i, a, s, c, l, d, f] = n;
|
|
378
|
+
return u.set({
|
|
379
|
+
r: o.channel.clamp.r(i ? parseFloat(r) * 2.55 : parseFloat(r)),
|
|
380
|
+
g: o.channel.clamp.g(s ? parseFloat(a) * 2.55 : parseFloat(a)),
|
|
381
|
+
b: o.channel.clamp.b(l ? parseFloat(c) * 2.55 : parseFloat(c)),
|
|
382
|
+
a: d ? o.channel.clamp.a(f ? parseFloat(d) / 100 : parseFloat(d)) : 1
|
|
931
383
|
}, e);
|
|
932
384
|
},
|
|
933
385
|
stringify: (e) => {
|
|
934
386
|
let { r: t, g: n, b: r, a: i } = e;
|
|
935
|
-
return i < 1 ? `rgba(${
|
|
387
|
+
return i < 1 ? `rgba(${o.lang.round(t)}, ${o.lang.round(n)}, ${o.lang.round(r)}, ${o.lang.round(i)})` : `rgb(${o.lang.round(t)}, ${o.lang.round(n)}, ${o.lang.round(r)})`;
|
|
936
388
|
}
|
|
937
|
-
},
|
|
389
|
+
}, h = {
|
|
938
390
|
format: {
|
|
939
|
-
keyword:
|
|
940
|
-
hex:
|
|
941
|
-
rgb:
|
|
942
|
-
rgba:
|
|
943
|
-
hsl:
|
|
944
|
-
hsla:
|
|
391
|
+
keyword: p,
|
|
392
|
+
hex: d,
|
|
393
|
+
rgb: m,
|
|
394
|
+
rgba: m,
|
|
395
|
+
hsl: f,
|
|
396
|
+
hsla: f
|
|
945
397
|
},
|
|
946
398
|
parse: (e) => {
|
|
947
399
|
if (typeof e != "string") return e;
|
|
948
|
-
let t =
|
|
400
|
+
let t = d.parse(e) || m.parse(e) || f.parse(e) || p.parse(e);
|
|
949
401
|
if (t) return t;
|
|
950
402
|
throw Error(`Unsupported color format: "${e}"`);
|
|
951
403
|
},
|
|
952
|
-
stringify: (e) => !e.changed && e.color ? e.color : e.type.is(
|
|
953
|
-
},
|
|
954
|
-
let n =
|
|
955
|
-
for (let e in t) n[e] =
|
|
956
|
-
return
|
|
957
|
-
},
|
|
958
|
-
if (typeof e != "number") return
|
|
959
|
-
let i =
|
|
960
|
-
r:
|
|
961
|
-
g:
|
|
962
|
-
b:
|
|
963
|
-
a:
|
|
404
|
+
stringify: (e) => !e.changed && e.color ? e.color : e.type.is(c.HSL) || e.data.r === void 0 ? f.stringify(e) : e.a < 1 || !Number.isInteger(e.r) || !Number.isInteger(e.g) || !Number.isInteger(e.b) ? m.stringify(e) : d.stringify(e)
|
|
405
|
+
}, g = (e, t) => {
|
|
406
|
+
let n = h.parse(e);
|
|
407
|
+
for (let e in t) n[e] = o.channel.clamp[e](t[e]);
|
|
408
|
+
return h.stringify(n);
|
|
409
|
+
}, _ = (e, t, n = 0, r = 1) => {
|
|
410
|
+
if (typeof e != "number") return g(e, { a: t });
|
|
411
|
+
let i = u.set({
|
|
412
|
+
r: o.channel.clamp.r(e),
|
|
413
|
+
g: o.channel.clamp.g(t),
|
|
414
|
+
b: o.channel.clamp.b(n),
|
|
415
|
+
a: o.channel.clamp.a(r)
|
|
964
416
|
});
|
|
965
|
-
return
|
|
966
|
-
},
|
|
967
|
-
let { r: t, g: n, b: r } =
|
|
968
|
-
return
|
|
969
|
-
},
|
|
970
|
-
let r =
|
|
971
|
-
return i !== a && (r[t] = a),
|
|
972
|
-
},
|
|
973
|
-
let n =
|
|
417
|
+
return h.stringify(i);
|
|
418
|
+
}, ee = (e) => {
|
|
419
|
+
let { r: t, g: n, b: r } = h.parse(e), i = .2126 * o.channel.toLinear(t) + .7152 * o.channel.toLinear(n) + .0722 * o.channel.toLinear(r);
|
|
420
|
+
return o.lang.round(i);
|
|
421
|
+
}, te = (e) => ee(e) >= .5, v = (e) => !te(e), y = (e, t, n) => {
|
|
422
|
+
let r = h.parse(e), i = r[t], a = o.channel.clamp[t](i + n);
|
|
423
|
+
return i !== a && (r[t] = a), h.stringify(r);
|
|
424
|
+
}, b = (e, t) => y(e, "l", t), x = (e, t) => y(e, "l", -t), S = (e, t) => {
|
|
425
|
+
let n = h.parse(e), r = {};
|
|
974
426
|
for (let e in t) t[e] && (r[e] = n[e] + t[e]);
|
|
975
|
-
return
|
|
976
|
-
},
|
|
977
|
-
let { r, g: i, b: a, a: o } =
|
|
978
|
-
return
|
|
979
|
-
},
|
|
980
|
-
let n =
|
|
981
|
-
return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b,
|
|
982
|
-
},
|
|
427
|
+
return g(e, r);
|
|
428
|
+
}, ne = (e, t, n = 50) => {
|
|
429
|
+
let { r, g: i, b: a, a: o } = h.parse(e), { r: s, g: c, b: l, a: u } = h.parse(t), d = n / 100, f = d * 2 - 1, p = o - u, m = ((f * p === -1 ? f : (f + p) / (1 + f * p)) + 1) / 2, g = 1 - m;
|
|
430
|
+
return _(r * m + s * g, i * m + c * g, a * m + l * g, o * d + u * (1 - d));
|
|
431
|
+
}, C = (e, t = 100) => {
|
|
432
|
+
let n = h.parse(e);
|
|
433
|
+
return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b, ne(n, e, t);
|
|
434
|
+
}, re = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, ie = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, ae = /\s*%%.*\n/gm, oe = class extends Error {
|
|
983
435
|
static {
|
|
984
|
-
|
|
436
|
+
r(this, "UnknownDiagramError");
|
|
985
437
|
}
|
|
986
438
|
constructor(e) {
|
|
987
439
|
super(e), this.name = "UnknownDiagramError";
|
|
988
440
|
}
|
|
989
|
-
},
|
|
990
|
-
e = e.replace(
|
|
991
|
-
for (let [n, { detector: r }] of Object.entries(
|
|
992
|
-
throw new
|
|
993
|
-
}, "detectType"),
|
|
994
|
-
for (let { id: t, detector: n, loader: r } of e)
|
|
995
|
-
}, "registerLazyLoadedDiagrams"),
|
|
996
|
-
|
|
997
|
-
detector:
|
|
441
|
+
}, w = {}, se = /* @__PURE__ */ r(function(e, t) {
|
|
442
|
+
e = e.replace(re, "").replace(ie, "").replace(ae, "\n");
|
|
443
|
+
for (let [n, { detector: r }] of Object.entries(w)) if (r(e, t)) return n;
|
|
444
|
+
throw new oe(`No diagram type detected matching given configuration for text: ${e}`);
|
|
445
|
+
}, "detectType"), ce = /* @__PURE__ */ r((...e) => {
|
|
446
|
+
for (let { id: t, detector: n, loader: r } of e) le(t, n, r);
|
|
447
|
+
}, "registerLazyLoadedDiagrams"), le = /* @__PURE__ */ r((e, t, r) => {
|
|
448
|
+
w[e] && n.warn(`Detector with key ${e} already exists. Overwriting.`), w[e] = {
|
|
449
|
+
detector: t,
|
|
998
450
|
loader: r
|
|
999
|
-
},
|
|
1000
|
-
}, "addDetector"),
|
|
451
|
+
}, n.debug(`Detector with key ${e} added${r ? " with loader" : ""}`);
|
|
452
|
+
}, "addDetector"), ue = /* @__PURE__ */ r((e) => w[e].loader, "getDiagramLoader"), T = /* @__PURE__ */ r((e, t, { depth: n = 2, clobber: r = !1 } = {}) => {
|
|
1001
453
|
let i = {
|
|
1002
454
|
depth: n,
|
|
1003
455
|
clobber: r
|
|
1004
456
|
};
|
|
1005
|
-
return Array.isArray(t) && !Array.isArray(e) ? (t.forEach((t) =>
|
|
457
|
+
return Array.isArray(t) && !Array.isArray(e) ? (t.forEach((t) => T(e, t, i)), e) : Array.isArray(t) && Array.isArray(e) ? (t.forEach((t) => {
|
|
1006
458
|
e.includes(t) || e.push(t);
|
|
1007
459
|
}), e) : e === void 0 || n <= 0 ? typeof e == "object" && e && typeof t == "object" ? Object.assign(e, t) : t : (t !== void 0 && typeof e == "object" && typeof t == "object" && Object.keys(t).forEach((i) => {
|
|
1008
|
-
typeof t[i] == "object" && t[i] !== null && (e[i] === void 0 || typeof e[i] == "object") ? (e[i] === void 0 && (e[i] = Array.isArray(t[i]) ? [] : {}), e[i] =
|
|
460
|
+
typeof t[i] == "object" && t[i] !== null && (e[i] === void 0 || typeof e[i] == "object") ? (e[i] === void 0 && (e[i] = Array.isArray(t[i]) ? [] : {}), e[i] = T(e[i], t[i], {
|
|
1009
461
|
depth: n - 1,
|
|
1010
462
|
clobber: r
|
|
1011
463
|
})) : (r || typeof e[i] != "object" && typeof t[i] != "object") && (e[i] = t[i]);
|
|
1012
464
|
}), e);
|
|
1013
|
-
}, "assignWithDepth"),
|
|
465
|
+
}, "assignWithDepth"), E = T, D = "#ffffff", O = "#f2f2f2", k = /* @__PURE__ */ r((e, t) => t ? S(e, {
|
|
1014
466
|
s: -40,
|
|
1015
467
|
l: 10
|
|
1016
|
-
}) :
|
|
468
|
+
}) : S(e, {
|
|
1017
469
|
s: -40,
|
|
1018
470
|
l: -10
|
|
1019
|
-
}), "mkBorder"),
|
|
471
|
+
}), "mkBorder"), de = class {
|
|
1020
472
|
static {
|
|
1021
|
-
|
|
473
|
+
r(this, "Theme");
|
|
1022
474
|
}
|
|
1023
475
|
constructor() {
|
|
1024
476
|
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))";
|
|
1025
477
|
}
|
|
1026
478
|
updateColors() {
|
|
1027
|
-
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor ||
|
|
479
|
+
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || S(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || S(this.primaryColor, {
|
|
1028
480
|
h: 180,
|
|
1029
481
|
l: 5
|
|
1030
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
482
|
+
}), this.primaryBorderColor = this.primaryBorderColor || k(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || k(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || k(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || C(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || C(this.tertiaryColor), this.lineColor = this.lineColor || C(this.background), this.arrowheadColor = this.arrowheadColor || C(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 ? x(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || x(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || C(this.lineColor), this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || b(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 || x(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || x(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || b(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || b(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 || S(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || S(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || S(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || S(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || S(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || S(this.primaryColor, {
|
|
1031
483
|
h: 210,
|
|
1032
484
|
l: 150
|
|
1033
|
-
}), this.cScale9 = this.cScale9 ||
|
|
1034
|
-
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
1035
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1036
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
485
|
+
}), this.cScale9 = this.cScale9 || S(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || S(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || S(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 75);
|
|
486
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 25);
|
|
487
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
|
|
488
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || x(this["cScale" + e], 10);
|
|
1037
489
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
1038
490
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1039
491
|
let e = this.darkMode ? -4 : -1;
|
|
1040
|
-
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] ||
|
|
492
|
+
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || S(this.mainBkg, {
|
|
1041
493
|
h: 180,
|
|
1042
494
|
s: -15,
|
|
1043
495
|
l: e * (5 + t * 3)
|
|
1044
|
-
}), this["surfacePeer" + t] = this["surfacePeer" + t] ||
|
|
496
|
+
}), this["surfacePeer" + t] = this["surfacePeer" + t] || S(this.mainBkg, {
|
|
1045
497
|
h: 180,
|
|
1046
498
|
s: -15,
|
|
1047
499
|
l: e * (8 + t * 3)
|
|
1048
500
|
});
|
|
1049
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 ||
|
|
501
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || S(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || S(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || S(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || S(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || S(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || S(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 || S(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || S(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || S(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || S(this.primaryColor, {
|
|
1050
502
|
h: 60,
|
|
1051
503
|
l: -10
|
|
1052
|
-
}), this.pie8 = this.pie8 ||
|
|
504
|
+
}), this.pie8 = this.pie8 || S(this.primaryColor, {
|
|
1053
505
|
h: -60,
|
|
1054
506
|
l: -10
|
|
1055
|
-
}), this.pie9 = this.pie9 ||
|
|
507
|
+
}), this.pie9 = this.pie9 || S(this.primaryColor, {
|
|
1056
508
|
h: 120,
|
|
1057
509
|
l: 0
|
|
1058
|
-
}), this.pie10 = this.pie10 ||
|
|
510
|
+
}), this.pie10 = this.pie10 || S(this.primaryColor, {
|
|
1059
511
|
h: 60,
|
|
1060
512
|
l: -20
|
|
1061
|
-
}), this.pie11 = this.pie11 ||
|
|
513
|
+
}), this.pie11 = this.pie11 || S(this.primaryColor, {
|
|
1062
514
|
h: -60,
|
|
1063
515
|
l: -20
|
|
1064
|
-
}), this.pie12 = this.pie12 ||
|
|
516
|
+
}), this.pie12 = this.pie12 || S(this.primaryColor, {
|
|
1065
517
|
h: 120,
|
|
1066
518
|
l: -10
|
|
1067
|
-
}), 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 ??
|
|
519
|
+
}), 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 ?? S(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? S(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? S(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? S(this.primaryColor, {
|
|
1068
520
|
h: 60,
|
|
1069
521
|
l: -30
|
|
1070
|
-
}), this.venn5 = this.venn5 ??
|
|
522
|
+
}), this.venn5 = this.venn5 ?? S(this.primaryColor, {
|
|
1071
523
|
h: -60,
|
|
1072
524
|
l: -30
|
|
1073
|
-
}), this.venn6 = this.venn6 ??
|
|
525
|
+
}), this.venn6 = this.venn6 ?? S(this.secondaryColor, {
|
|
1074
526
|
h: 60,
|
|
1075
527
|
l: -30
|
|
1076
|
-
}), this.venn7 = this.venn7 ??
|
|
528
|
+
}), this.venn7 = this.venn7 ?? S(this.primaryColor, {
|
|
1077
529
|
h: 120,
|
|
1078
530
|
l: -30
|
|
1079
|
-
}), this.venn8 = this.venn8 ??
|
|
531
|
+
}), this.venn8 = this.venn8 ?? S(this.secondaryColor, {
|
|
1080
532
|
h: 120,
|
|
1081
533
|
l: -30
|
|
1082
534
|
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.radar = {
|
|
@@ -1103,31 +555,31 @@ var C = {
|
|
|
1103
555
|
annotationStroke: this.wardley?.annotationStroke || this.lineColor,
|
|
1104
556
|
annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
|
|
1105
557
|
annotationFill: this.wardley?.annotationFill || this.background
|
|
1106
|
-
}, 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 ||
|
|
558
|
+
}, 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 || S(this.primaryColor, {
|
|
1107
559
|
r: 5,
|
|
1108
560
|
g: 5,
|
|
1109
561
|
b: 5
|
|
1110
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
562
|
+
}), this.quadrant3Fill = this.quadrant3Fill || S(this.primaryColor, {
|
|
1111
563
|
r: 10,
|
|
1112
564
|
g: 10,
|
|
1113
565
|
b: 10
|
|
1114
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
566
|
+
}), this.quadrant4Fill = this.quadrant4Fill || S(this.primaryColor, {
|
|
1115
567
|
r: 15,
|
|
1116
568
|
g: 15,
|
|
1117
569
|
b: 15
|
|
1118
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
570
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
|
|
1119
571
|
r: -5,
|
|
1120
572
|
g: -5,
|
|
1121
573
|
b: -5
|
|
1122
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
574
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
|
|
1123
575
|
r: -10,
|
|
1124
576
|
g: -10,
|
|
1125
577
|
b: -10
|
|
1126
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
578
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
|
|
1127
579
|
r: -15,
|
|
1128
580
|
g: -15,
|
|
1129
581
|
b: -15
|
|
1130
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
582
|
+
}), this.quadrantPointFill = this.quadrantPointFill || v(this.quadrant1Fill) ? b(this.quadrant1Fill) : x(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 = {
|
|
1131
583
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1132
584
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1133
585
|
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
@@ -1140,7 +592,7 @@ var C = {
|
|
|
1140
592
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1141
593
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1142
594
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
1143
|
-
}, 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 ?
|
|
595
|
+
}, 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 ? x(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 || S(this.primaryColor, { h: -30 }), this.git4 = this.git4 || S(this.primaryColor, { h: -60 }), this.git5 = this.git5 || S(this.primaryColor, { h: -90 }), this.git6 = this.git6 || S(this.primaryColor, { h: 60 }), this.git7 = this.git7 || S(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)) : (this.git0 = x(this.git0, 25), this.git1 = x(this.git1, 25), this.git2 = x(this.git2, 25), this.git3 = x(this.git3, 25), this.git4 = x(this.git4, 25), this.git5 = x(this.git5, 25), this.git6 = x(this.git6, 25), this.git7 = x(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(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 || D, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || O, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
|
|
1144
596
|
}
|
|
1145
597
|
calculate(e) {
|
|
1146
598
|
if (typeof e != "object") {
|
|
@@ -1154,25 +606,25 @@ var C = {
|
|
|
1154
606
|
this[t] = e[t];
|
|
1155
607
|
});
|
|
1156
608
|
}
|
|
1157
|
-
},
|
|
1158
|
-
let t = new
|
|
609
|
+
}, fe = /* @__PURE__ */ r((e) => {
|
|
610
|
+
let t = new de();
|
|
1159
611
|
return t.calculate(e), t;
|
|
1160
|
-
}, "getThemeVariables"),
|
|
612
|
+
}, "getThemeVariables"), pe = class {
|
|
1161
613
|
static {
|
|
1162
|
-
|
|
614
|
+
r(this, "Theme");
|
|
1163
615
|
}
|
|
1164
616
|
constructor() {
|
|
1165
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor =
|
|
617
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = b(this.primaryColor, 16), this.tertiaryColor = S(this.primaryColor, { h: -160 }), this.primaryBorderColor = C(this.background), this.secondaryBorderColor = k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = k(this.tertiaryColor, this.darkMode), this.primaryTextColor = C(this.primaryColor), this.secondaryTextColor = C(this.secondaryColor), this.tertiaryTextColor = C(this.tertiaryColor), this.lineColor = C(this.background), this.textColor = C(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = b(C("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = _(255, 255, 255, .25), this.arrowheadColor = "calculated", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.labelBackground = "#181818", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#F9FFFE", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "calculated", this.activationBkgColor = "calculated", this.sequenceNumberColor = "black", this.clusterBkg = "#302F3D", this.sectionBkgColor = x("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = x(this.sectionBkgColor, 10), this.taskBorderColor = _(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = _(255, 255, 255, 50), this.activeTaskBkgColor = "#81B1DB", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "grey", this.critBorderColor = "#E83737", this.critBkgColor = "#E83737", this.taskTextDarkColor = "calculated", this.todayLineColor = "#DB5757", this.vertLineColor = "#00BFFF", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.rowOdd = this.rowOdd || b(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || x(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";
|
|
1166
618
|
}
|
|
1167
619
|
updateColors() {
|
|
1168
|
-
this.secondBkg =
|
|
1169
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1170
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
1171
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
620
|
+
this.secondBkg = b(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 = b(this.labelBackground, 25), this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.actorTextColor = this.mainContrastColor, this.actorLineColor = this.actorBorder, this.signalColor = this.mainContrastColor, this.signalTextColor = this.mainContrastColor, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.mainContrastColor, this.loopTextColor = this.mainContrastColor, this.noteBorderColor = this.secondaryBorderColor, this.noteBkgColor = this.secondBkg, this.noteTextColor = this.secondaryTextColor, this.activationBorderColor = this.border1, this.activationBkgColor = this.secondBkg, this.altSectionBkgColor = this.background, this.taskBkgColor = b(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 = C(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 = S(this.primaryColor, { h: 64 }), this.fillType3 = S(this.secondaryColor, { h: 64 }), this.fillType4 = S(this.primaryColor, { h: -64 }), this.fillType5 = S(this.secondaryColor, { h: -64 }), this.fillType6 = S(this.primaryColor, { h: 128 }), this.fillType7 = S(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 || S(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || S(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || S(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || S(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || S(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || S(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || S(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || S(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || S(this.primaryColor, { h: 330 });
|
|
621
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
|
|
622
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
|
|
623
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || S(this.mainBkg, {
|
|
1172
624
|
h: 30,
|
|
1173
625
|
s: -30,
|
|
1174
626
|
l: -(-10 + e * 4)
|
|
1175
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
627
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || S(this.mainBkg, {
|
|
1176
628
|
h: 30,
|
|
1177
629
|
s: -30,
|
|
1178
630
|
l: -(-7 + e * 4)
|
|
@@ -1181,32 +633,32 @@ var C = {
|
|
|
1181
633
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1182
634
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
|
|
1183
635
|
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";
|
|
1184
|
-
for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ??
|
|
1185
|
-
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
636
|
+
for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? b(this["cScale" + e], 30);
|
|
637
|
+
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || S(this.primaryColor, {
|
|
1186
638
|
r: 5,
|
|
1187
639
|
g: 5,
|
|
1188
640
|
b: 5
|
|
1189
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
641
|
+
}), this.quadrant3Fill = this.quadrant3Fill || S(this.primaryColor, {
|
|
1190
642
|
r: 10,
|
|
1191
643
|
g: 10,
|
|
1192
644
|
b: 10
|
|
1193
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
645
|
+
}), this.quadrant4Fill = this.quadrant4Fill || S(this.primaryColor, {
|
|
1194
646
|
r: 15,
|
|
1195
647
|
g: 15,
|
|
1196
648
|
b: 15
|
|
1197
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
649
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
|
|
1198
650
|
r: -5,
|
|
1199
651
|
g: -5,
|
|
1200
652
|
b: -5
|
|
1201
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
653
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
|
|
1202
654
|
r: -10,
|
|
1203
655
|
g: -10,
|
|
1204
656
|
b: -10
|
|
1205
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
657
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
|
|
1206
658
|
r: -15,
|
|
1207
659
|
g: -15,
|
|
1208
660
|
b: -15
|
|
1209
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
661
|
+
}), this.quadrantPointFill = this.quadrantPointFill || v(this.quadrant1Fill) ? b(this.quadrant1Fill) : x(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 = {
|
|
1210
662
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1211
663
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1212
664
|
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
@@ -1250,7 +702,7 @@ var C = {
|
|
|
1250
702
|
annotationStroke: this.wardley?.annotationStroke || this.lineColor,
|
|
1251
703
|
annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
|
|
1252
704
|
annotationFill: this.wardley?.annotationFill || this.mainBkg
|
|
1253
|
-
}, 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 ?
|
|
705
|
+
}, 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 ? x(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = b(this.secondaryColor, 20), this.git1 = b(this.pie2 || this.secondaryColor, 20), this.git2 = b(this.pie3 || this.tertiaryColor, 20), this.git3 = b(this.pie4 || S(this.primaryColor, { h: -30 }), 20), this.git4 = b(this.pie5 || S(this.primaryColor, { h: -60 }), 20), this.git5 = b(this.pie6 || S(this.primaryColor, { h: -90 }), 10), this.git6 = b(this.pie7 || S(this.primaryColor, { h: 60 }), 10), this.git7 = b(this.pie8 || S(this.primaryColor, { h: 120 }), 20), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || C(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || C(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 || b("#5a3d5c", 10), this.emProcessorStroke = this.emProcessorStroke || "#8a6d8c", this.emReadModelFill = this.emReadModelFill || b("#3d5a2d", 10), this.emReadModelStroke = this.emReadModelStroke || "#6d8c5c", this.emCommandFill = this.emCommandFill || b("#2d3d5a", 10), this.emCommandStroke = this.emCommandStroke || "#5c6d8c", this.emEventFill = this.emEventFill || b("#5a452d", 10), this.emEventStroke = this.emEventStroke || "#8c755c", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || b(this.background, 5), this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || b(this.background, 12), this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || b(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || b(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
|
|
1254
706
|
}
|
|
1255
707
|
calculate(e) {
|
|
1256
708
|
if (typeof e != "object") {
|
|
@@ -1264,89 +716,89 @@ var C = {
|
|
|
1264
716
|
this[t] = e[t];
|
|
1265
717
|
});
|
|
1266
718
|
}
|
|
1267
|
-
},
|
|
1268
|
-
let t = new
|
|
719
|
+
}, me = /* @__PURE__ */ r((e) => {
|
|
720
|
+
let t = new pe();
|
|
1269
721
|
return t.calculate(e), t;
|
|
1270
|
-
}, "getThemeVariables"),
|
|
722
|
+
}, "getThemeVariables"), he = class {
|
|
1271
723
|
static {
|
|
1272
|
-
|
|
724
|
+
r(this, "Theme");
|
|
1273
725
|
}
|
|
1274
726
|
constructor() {
|
|
1275
|
-
this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor =
|
|
727
|
+
this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = S(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = S(this.primaryColor, { h: -160 }), this.primaryBorderColor = k(this.primaryColor, this.darkMode), this.secondaryBorderColor = k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = k(this.tertiaryColor, this.darkMode), this.primaryTextColor = C(this.primaryColor), this.secondaryTextColor = C(this.secondaryColor), this.tertiaryTextColor = C(this.tertiaryColor), this.lineColor = C(this.background), this.textColor = C(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.primaryBorderColor = k(this.primaryColor, this.darkMode), this.border2 = "#aaaa33", this.arrowheadColor = "#333333", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.labelBackground = "rgba(232,232,232, 0.8)", this.textColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.clusterBkg = "#FBFBFF", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = this.taskTextDarkColor, this.taskTextClickableColor = "calculated", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBorderColor = "calculated", this.critBkgColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.sectionBkgColor = _(102, 102, 255, .49), this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#fff400", this.taskBorderColor = "#534fbc", this.taskBkgColor = "#8a90dd", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "#534fbc", this.activeTaskBkgColor = "#bfc7ff", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.vertLineColor = "navy", this.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.rowOdd = "calculated", this.rowEven = "calculated", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !1, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))", this.updateColors();
|
|
1276
728
|
}
|
|
1277
729
|
updateColors() {
|
|
1278
|
-
this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 ||
|
|
1279
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
1280
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1281
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
730
|
+
this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || S(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || S(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || S(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || S(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || S(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || S(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || S(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || S(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || S(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || x(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || x(this.tertiaryColor, 40);
|
|
731
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || x(this["cScale" + e], 25);
|
|
732
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e], { h: 180 });
|
|
733
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || S(this.mainBkg, {
|
|
1282
734
|
h: 30,
|
|
1283
735
|
l: -(5 + e * 5)
|
|
1284
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
736
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || S(this.mainBkg, {
|
|
1285
737
|
h: 30,
|
|
1286
738
|
l: -(7 + e * 5)
|
|
1287
739
|
});
|
|
1288
740
|
if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
|
|
1289
|
-
this.cScaleLabel0 = this.cScaleLabel0 ||
|
|
741
|
+
this.cScaleLabel0 = this.cScaleLabel0 || C(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || C(this.labelTextColor);
|
|
1290
742
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.labelTextColor;
|
|
1291
743
|
}
|
|
1292
|
-
this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.textColor, this.edgeLabelBackground = this.labelBackground, this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.signalColor = this.textColor, this.signalTextColor = this.textColor, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd ||
|
|
744
|
+
this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.textColor, this.edgeLabelBackground = this.labelBackground, this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.signalColor = this.textColor, this.signalTextColor = this.textColor, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || b(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || b(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 = S(this.primaryColor, { h: 64 }), this.fillType3 = S(this.secondaryColor, { h: 64 }), this.fillType4 = S(this.primaryColor, { h: -64 }), this.fillType5 = S(this.secondaryColor, { h: -64 }), this.fillType6 = S(this.primaryColor, { h: 128 }), this.fillType7 = S(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || S(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || S(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || S(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || S(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || S(this.primaryColor, {
|
|
1293
745
|
h: 60,
|
|
1294
746
|
l: -20
|
|
1295
|
-
}), this.pie8 = this.pie8 ||
|
|
747
|
+
}), this.pie8 = this.pie8 || S(this.primaryColor, {
|
|
1296
748
|
h: -60,
|
|
1297
749
|
l: -40
|
|
1298
|
-
}), this.pie9 = this.pie9 ||
|
|
750
|
+
}), this.pie9 = this.pie9 || S(this.primaryColor, {
|
|
1299
751
|
h: 120,
|
|
1300
752
|
l: -40
|
|
1301
|
-
}), this.pie10 = this.pie10 ||
|
|
753
|
+
}), this.pie10 = this.pie10 || S(this.primaryColor, {
|
|
1302
754
|
h: 60,
|
|
1303
755
|
l: -40
|
|
1304
|
-
}), this.pie11 = this.pie11 ||
|
|
756
|
+
}), this.pie11 = this.pie11 || S(this.primaryColor, {
|
|
1305
757
|
h: -90,
|
|
1306
758
|
l: -40
|
|
1307
|
-
}), this.pie12 = this.pie12 ||
|
|
759
|
+
}), this.pie12 = this.pie12 || S(this.primaryColor, {
|
|
1308
760
|
h: 120,
|
|
1309
761
|
l: -30
|
|
1310
|
-
}), 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 ??
|
|
762
|
+
}), 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 ?? S(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? S(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? S(this.tertiaryColor, { l: -40 }), this.venn4 = this.venn4 ?? S(this.primaryColor, {
|
|
1311
763
|
h: 60,
|
|
1312
764
|
l: -30
|
|
1313
|
-
}), this.venn5 = this.venn5 ??
|
|
765
|
+
}), this.venn5 = this.venn5 ?? S(this.primaryColor, {
|
|
1314
766
|
h: -60,
|
|
1315
767
|
l: -30
|
|
1316
|
-
}), this.venn6 = this.venn6 ??
|
|
768
|
+
}), this.venn6 = this.venn6 ?? S(this.secondaryColor, {
|
|
1317
769
|
h: 60,
|
|
1318
770
|
l: -30
|
|
1319
|
-
}), this.venn7 = this.venn7 ??
|
|
771
|
+
}), this.venn7 = this.venn7 ?? S(this.primaryColor, {
|
|
1320
772
|
h: 120,
|
|
1321
773
|
l: -30
|
|
1322
|
-
}), this.venn8 = this.venn8 ??
|
|
774
|
+
}), this.venn8 = this.venn8 ?? S(this.secondaryColor, {
|
|
1323
775
|
h: 120,
|
|
1324
776
|
l: -30
|
|
1325
|
-
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
777
|
+
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || S(this.primaryColor, {
|
|
1326
778
|
r: 5,
|
|
1327
779
|
g: 5,
|
|
1328
780
|
b: 5
|
|
1329
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
781
|
+
}), this.quadrant3Fill = this.quadrant3Fill || S(this.primaryColor, {
|
|
1330
782
|
r: 10,
|
|
1331
783
|
g: 10,
|
|
1332
784
|
b: 10
|
|
1333
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
785
|
+
}), this.quadrant4Fill = this.quadrant4Fill || S(this.primaryColor, {
|
|
1334
786
|
r: 15,
|
|
1335
787
|
g: 15,
|
|
1336
788
|
b: 15
|
|
1337
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
789
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
|
|
1338
790
|
r: -5,
|
|
1339
791
|
g: -5,
|
|
1340
792
|
b: -5
|
|
1341
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
793
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
|
|
1342
794
|
r: -10,
|
|
1343
795
|
g: -10,
|
|
1344
796
|
b: -10
|
|
1345
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
797
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
|
|
1346
798
|
r: -15,
|
|
1347
799
|
g: -15,
|
|
1348
800
|
b: -15
|
|
1349
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
801
|
+
}), this.quadrantPointFill = this.quadrantPointFill || v(this.quadrant1Fill) ? b(this.quadrant1Fill) : x(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 = {
|
|
1350
802
|
axisColor: this.radar?.axisColor || this.lineColor,
|
|
1351
803
|
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
|
|
1352
804
|
axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
|
|
@@ -1383,7 +835,7 @@ var C = {
|
|
|
1383
835
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1384
836
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1385
837
|
plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
|
|
1386
|
-
}, 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 ||
|
|
838
|
+
}, 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 || S(this.primaryColor, { h: -30 }), this.git4 = this.git4 || S(this.primaryColor, { h: -60 }), this.git5 = this.git5 || S(this.primaryColor, { h: -90 }), this.git6 = this.git6 || S(this.primaryColor, { h: 60 }), this.git7 = this.git7 || S(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)) : (this.git0 = x(this.git0, 25), this.git1 = x(this.git1, 25), this.git2 = x(this.git2, 25), this.git3 = x(this.git3, 25), this.git4 = x(this.git4, 25), this.git5 = x(this.git5, 25), this.git6 = x(this.git6, 25), this.git7 = x(this.git7, 25)), this.gitInv0 = this.gitInv0 || x(C(this.git0), 25), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || C(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || C(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 || D, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || O;
|
|
1387
839
|
}
|
|
1388
840
|
calculate(e) {
|
|
1389
841
|
if (Object.keys(this).forEach((e) => {
|
|
@@ -1399,92 +851,92 @@ var C = {
|
|
|
1399
851
|
this[t] = e[t];
|
|
1400
852
|
});
|
|
1401
853
|
}
|
|
1402
|
-
},
|
|
1403
|
-
let t = new
|
|
854
|
+
}, ge = /* @__PURE__ */ r((e) => {
|
|
855
|
+
let t = new he();
|
|
1404
856
|
return t.calculate(e), t;
|
|
1405
|
-
}, "getThemeVariables"),
|
|
857
|
+
}, "getThemeVariables"), _e = class {
|
|
1406
858
|
static {
|
|
1407
|
-
|
|
859
|
+
r(this, "Theme");
|
|
1408
860
|
}
|
|
1409
861
|
constructor() {
|
|
1410
|
-
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 =
|
|
862
|
+
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 = b("#cde498", 10), this.primaryBorderColor = k(this.primaryColor, this.darkMode), this.secondaryBorderColor = k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = k(this.tertiaryColor, this.darkMode), this.primaryTextColor = C(this.primaryColor), this.secondaryTextColor = C(this.secondaryColor), this.tertiaryTextColor = C(this.primaryColor), this.lineColor = C(this.background), this.textColor = C(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))";
|
|
1411
863
|
}
|
|
1412
864
|
updateColors() {
|
|
1413
|
-
this.actorBorder =
|
|
1414
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
1415
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
865
|
+
this.actorBorder = x(this.mainBkg, 20), this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || S(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || S(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || S(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || S(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || S(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || S(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || S(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || S(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || S(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || x(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || x(this.tertiaryColor, 40);
|
|
866
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || x(this["cScale" + e], 25);
|
|
867
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e], { h: 180 });
|
|
1416
868
|
this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
|
|
1417
869
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1418
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
870
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || S(this.mainBkg, {
|
|
1419
871
|
h: 30,
|
|
1420
872
|
s: -30,
|
|
1421
873
|
l: -(5 + e * 5)
|
|
1422
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
874
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || S(this.mainBkg, {
|
|
1423
875
|
h: 30,
|
|
1424
876
|
s: -30,
|
|
1425
877
|
l: -(8 + e * 5)
|
|
1426
878
|
});
|
|
1427
|
-
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 ||
|
|
879
|
+
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 || b(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || b(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 = S(this.primaryColor, { h: 64 }), this.fillType3 = S(this.secondaryColor, { h: 64 }), this.fillType4 = S(this.primaryColor, { h: -64 }), this.fillType5 = S(this.secondaryColor, { h: -64 }), this.fillType6 = S(this.primaryColor, { h: 128 }), this.fillType7 = S(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 || S(this.primaryColor, { l: -30 }), this.pie5 = this.pie5 || S(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || S(this.tertiaryColor, {
|
|
1428
880
|
h: 40,
|
|
1429
881
|
l: -40
|
|
1430
|
-
}), this.pie7 = this.pie7 ||
|
|
882
|
+
}), this.pie7 = this.pie7 || S(this.primaryColor, {
|
|
1431
883
|
h: 60,
|
|
1432
884
|
l: -10
|
|
1433
|
-
}), this.pie8 = this.pie8 ||
|
|
885
|
+
}), this.pie8 = this.pie8 || S(this.primaryColor, {
|
|
1434
886
|
h: -60,
|
|
1435
887
|
l: -10
|
|
1436
|
-
}), this.pie9 = this.pie9 ||
|
|
888
|
+
}), this.pie9 = this.pie9 || S(this.primaryColor, {
|
|
1437
889
|
h: 120,
|
|
1438
890
|
l: 0
|
|
1439
|
-
}), this.pie10 = this.pie10 ||
|
|
891
|
+
}), this.pie10 = this.pie10 || S(this.primaryColor, {
|
|
1440
892
|
h: 60,
|
|
1441
893
|
l: -50
|
|
1442
|
-
}), this.pie11 = this.pie11 ||
|
|
894
|
+
}), this.pie11 = this.pie11 || S(this.primaryColor, {
|
|
1443
895
|
h: -60,
|
|
1444
896
|
l: -50
|
|
1445
|
-
}), this.pie12 = this.pie12 ||
|
|
897
|
+
}), this.pie12 = this.pie12 || S(this.primaryColor, {
|
|
1446
898
|
h: 120,
|
|
1447
899
|
l: -50
|
|
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 ??
|
|
900
|
+
}), 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 ?? S(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? S(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? S(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? S(this.primaryColor, {
|
|
1449
901
|
h: 60,
|
|
1450
902
|
l: -30
|
|
1451
|
-
}), this.venn5 = this.venn5 ??
|
|
903
|
+
}), this.venn5 = this.venn5 ?? S(this.primaryColor, {
|
|
1452
904
|
h: -60,
|
|
1453
905
|
l: -30
|
|
1454
|
-
}), this.venn6 = this.venn6 ??
|
|
906
|
+
}), this.venn6 = this.venn6 ?? S(this.secondaryColor, {
|
|
1455
907
|
h: 60,
|
|
1456
908
|
l: -30
|
|
1457
|
-
}), this.venn7 = this.venn7 ??
|
|
909
|
+
}), this.venn7 = this.venn7 ?? S(this.primaryColor, {
|
|
1458
910
|
h: 120,
|
|
1459
911
|
l: -30
|
|
1460
|
-
}), this.venn8 = this.venn8 ??
|
|
912
|
+
}), this.venn8 = this.venn8 ?? S(this.secondaryColor, {
|
|
1461
913
|
h: 120,
|
|
1462
914
|
l: -30
|
|
1463
|
-
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
915
|
+
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || S(this.primaryColor, {
|
|
1464
916
|
r: 5,
|
|
1465
917
|
g: 5,
|
|
1466
918
|
b: 5
|
|
1467
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
919
|
+
}), this.quadrant3Fill = this.quadrant3Fill || S(this.primaryColor, {
|
|
1468
920
|
r: 10,
|
|
1469
921
|
g: 10,
|
|
1470
922
|
b: 10
|
|
1471
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
923
|
+
}), this.quadrant4Fill = this.quadrant4Fill || S(this.primaryColor, {
|
|
1472
924
|
r: 15,
|
|
1473
925
|
g: 15,
|
|
1474
926
|
b: 15
|
|
1475
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
927
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
|
|
1476
928
|
r: -5,
|
|
1477
929
|
g: -5,
|
|
1478
930
|
b: -5
|
|
1479
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
931
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
|
|
1480
932
|
r: -10,
|
|
1481
933
|
g: -10,
|
|
1482
934
|
b: -10
|
|
1483
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
935
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
|
|
1484
936
|
r: -15,
|
|
1485
937
|
g: -15,
|
|
1486
938
|
b: -15
|
|
1487
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
939
|
+
}), this.quadrantPointFill = this.quadrantPointFill || v(this.quadrant1Fill) ? b(this.quadrant1Fill) : x(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 = {
|
|
1488
940
|
startByteColor: this.primaryTextColor,
|
|
1489
941
|
endByteColor: this.primaryTextColor,
|
|
1490
942
|
labelColor: this.primaryTextColor,
|
|
@@ -1528,7 +980,7 @@ var C = {
|
|
|
1528
980
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1529
981
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1530
982
|
plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
|
|
1531
|
-
}, 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 ||
|
|
983
|
+
}, 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 || S(this.primaryColor, { h: -30 }), this.git4 = this.git4 || S(this.primaryColor, { h: -60 }), this.git5 = this.git5 || S(this.primaryColor, { h: -90 }), this.git6 = this.git6 || S(this.primaryColor, { h: 60 }), this.git7 = this.git7 || S(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)) : (this.git0 = x(this.git0, 25), this.git1 = x(this.git1, 25), this.git2 = x(this.git2, 25), this.git3 = x(this.git3, 25), this.git4 = x(this.git4, 25), this.git5 = x(this.git5, 25), this.git6 = x(this.git6, 25), this.git7 = x(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || C(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || C(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 || D, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || O;
|
|
1532
984
|
}
|
|
1533
985
|
calculate(e) {
|
|
1534
986
|
if (typeof e != "object") {
|
|
@@ -1542,52 +994,52 @@ var C = {
|
|
|
1542
994
|
this[t] = e[t];
|
|
1543
995
|
});
|
|
1544
996
|
}
|
|
1545
|
-
},
|
|
1546
|
-
let t = new
|
|
997
|
+
}, ve = /* @__PURE__ */ r((e) => {
|
|
998
|
+
let t = new _e();
|
|
1547
999
|
return t.calculate(e), t;
|
|
1548
|
-
}, "getThemeVariables"),
|
|
1000
|
+
}, "getThemeVariables"), ye = class {
|
|
1549
1001
|
static {
|
|
1550
|
-
|
|
1002
|
+
r(this, "Theme");
|
|
1551
1003
|
}
|
|
1552
1004
|
constructor() {
|
|
1553
|
-
this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor =
|
|
1005
|
+
this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = b(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = S(this.primaryColor, { h: -160 }), this.primaryBorderColor = k(this.primaryColor, this.darkMode), this.secondaryBorderColor = k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = k(this.tertiaryColor, this.darkMode), this.primaryTextColor = C(this.primaryColor), this.secondaryTextColor = C(this.secondaryColor), this.tertiaryTextColor = C(this.tertiaryColor), this.lineColor = C(this.background), this.textColor = C(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 || b(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))";
|
|
1554
1006
|
}
|
|
1555
1007
|
updateColors() {
|
|
1556
|
-
this.secondBkg =
|
|
1557
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1558
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
1008
|
+
this.secondBkg = b(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = b(this.border1, 23), this.actorBkg = this.mainBkg, this.actorTextColor = this.text, this.actorLineColor = this.actorBorder, this.signalColor = this.text, this.signalTextColor = this.text, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.text, this.loopTextColor = this.text, this.noteBorderColor = "#999", this.noteBkgColor = "#666", this.noteTextColor = "#fff", this.cScale0 = this.cScale0 || "#555", this.cScale1 = this.cScale1 || "#F4F4F4", this.cScale2 = this.cScale2 || "#555", this.cScale3 = this.cScale3 || "#BBB", this.cScale4 = this.cScale4 || "#777", this.cScale5 = this.cScale5 || "#999", this.cScale6 = this.cScale6 || "#DDD", this.cScale7 = this.cScale7 || "#FFF", this.cScale8 = this.cScale8 || "#DDD", this.cScale9 = this.cScale9 || "#BBB", this.cScale10 = this.cScale10 || "#999", this.cScale11 = this.cScale11 || "#777";
|
|
1009
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
|
|
1010
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || x(this["cScale" + e], 10);
|
|
1559
1011
|
this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
|
|
1560
1012
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1561
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
1562
|
-
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 =
|
|
1013
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || S(this.mainBkg, { l: -(5 + e * 5) }), this["surfacePeer" + e] = this["surfacePeer" + e] || S(this.mainBkg, { l: -(8 + e * 5) });
|
|
1014
|
+
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 = b(this.contrast, 30), this.sectionBkgColor2 = b(this.contrast, 30), this.taskBorderColor = x(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 = b(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = x(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 = S(this.primaryColor, { h: 64 }), this.fillType3 = S(this.secondaryColor, { h: 64 }), this.fillType4 = S(this.primaryColor, { h: -64 }), this.fillType5 = S(this.secondaryColor, { h: -64 }), this.fillType6 = S(this.primaryColor, { h: 128 }), this.fillType7 = S(this.secondaryColor, { h: 128 });
|
|
1563
1015
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
|
|
1564
1016
|
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";
|
|
1565
1017
|
for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this["cScale" + e];
|
|
1566
|
-
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
1018
|
+
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || S(this.primaryColor, {
|
|
1567
1019
|
r: 5,
|
|
1568
1020
|
g: 5,
|
|
1569
1021
|
b: 5
|
|
1570
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1022
|
+
}), this.quadrant3Fill = this.quadrant3Fill || S(this.primaryColor, {
|
|
1571
1023
|
r: 10,
|
|
1572
1024
|
g: 10,
|
|
1573
1025
|
b: 10
|
|
1574
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1026
|
+
}), this.quadrant4Fill = this.quadrant4Fill || S(this.primaryColor, {
|
|
1575
1027
|
r: 15,
|
|
1576
1028
|
g: 15,
|
|
1577
1029
|
b: 15
|
|
1578
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1030
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
|
|
1579
1031
|
r: -5,
|
|
1580
1032
|
g: -5,
|
|
1581
1033
|
b: -5
|
|
1582
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1034
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
|
|
1583
1035
|
r: -10,
|
|
1584
1036
|
g: -10,
|
|
1585
1037
|
b: -10
|
|
1586
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1038
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
|
|
1587
1039
|
r: -15,
|
|
1588
1040
|
g: -15,
|
|
1589
1041
|
b: -15
|
|
1590
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1042
|
+
}), this.quadrantPointFill = this.quadrantPointFill || v(this.quadrant1Fill) ? b(this.quadrant1Fill) : x(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 = {
|
|
1591
1043
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1592
1044
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1593
1045
|
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
@@ -1624,7 +1076,7 @@ var C = {
|
|
|
1624
1076
|
annotationStroke: this.wardley?.annotationStroke || this.lineColor,
|
|
1625
1077
|
annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
|
|
1626
1078
|
annotationFill: this.wardley?.annotationFill || this.background
|
|
1627
|
-
}, 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 =
|
|
1079
|
+
}, 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 = x(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || S(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || S(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || S(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || S(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || S(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(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 || D, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || O;
|
|
1628
1080
|
}
|
|
1629
1081
|
calculate(e) {
|
|
1630
1082
|
if (typeof e != "object") {
|
|
@@ -1638,87 +1090,87 @@ var C = {
|
|
|
1638
1090
|
this[t] = e[t];
|
|
1639
1091
|
});
|
|
1640
1092
|
}
|
|
1641
|
-
},
|
|
1642
|
-
let t = new
|
|
1093
|
+
}, be = /* @__PURE__ */ r((e) => {
|
|
1094
|
+
let t = new ye();
|
|
1643
1095
|
return t.calculate(e), t;
|
|
1644
|
-
}, "getThemeVariables"),
|
|
1096
|
+
}, "getThemeVariables"), xe = class {
|
|
1645
1097
|
static {
|
|
1646
|
-
|
|
1098
|
+
r(this, "Theme");
|
|
1647
1099
|
}
|
|
1648
1100
|
constructor() {
|
|
1649
|
-
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 =
|
|
1101
|
+
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 = k(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";
|
|
1650
1102
|
}
|
|
1651
1103
|
updateColors() {
|
|
1652
|
-
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor ||
|
|
1104
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || S(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || S(this.primaryColor, {
|
|
1653
1105
|
h: 180,
|
|
1654
1106
|
l: 5
|
|
1655
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
1656
|
-
let e = "#ECECFE", t = "#E9E9F1", n =
|
|
1107
|
+
}), this.primaryBorderColor = this.primaryBorderColor || k(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || k(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || k(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || C(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || C(this.tertiaryColor), this.lineColor = this.lineColor || C(this.background), this.arrowheadColor = this.arrowheadColor || C(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 ? x(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || x(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || C(this.lineColor);
|
|
1108
|
+
let e = "#ECECFE", t = "#E9E9F1", n = S(e, {
|
|
1657
1109
|
h: 180,
|
|
1658
1110
|
l: 5
|
|
1659
1111
|
});
|
|
1660
|
-
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 ||
|
|
1112
|
+
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 || b(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 || S(e, { h: 30 }), this.cScale4 = this.cScale4 || S(e, { h: 60 }), this.cScale5 = this.cScale5 || S(e, { h: 90 }), this.cScale6 = this.cScale6 || S(e, { h: 120 }), this.cScale7 = this.cScale7 || S(e, { h: 150 }), this.cScale8 = this.cScale8 || S(e, {
|
|
1661
1113
|
h: 210,
|
|
1662
1114
|
l: 150
|
|
1663
|
-
}), this.cScale9 = this.cScale9 ||
|
|
1664
|
-
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
1665
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1666
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
1115
|
+
}), this.cScale9 = this.cScale9 || S(e, { h: 270 }), this.cScale10 = this.cScale10 || S(e, { h: 300 }), this.cScale11 = this.cScale11 || S(e, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 75);
|
|
1116
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 25);
|
|
1117
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
|
|
1118
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || x(this["cScale" + e], 10);
|
|
1667
1119
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
1668
1120
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1669
1121
|
let r = this.darkMode ? -4 : -1;
|
|
1670
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
1122
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || S(this.mainBkg, {
|
|
1671
1123
|
h: 180,
|
|
1672
1124
|
s: -15,
|
|
1673
1125
|
l: r * (5 + e * 3)
|
|
1674
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
1126
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || S(this.mainBkg, {
|
|
1675
1127
|
h: 180,
|
|
1676
1128
|
s: -15,
|
|
1677
1129
|
l: r * (8 + e * 3)
|
|
1678
1130
|
});
|
|
1679
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 ||
|
|
1131
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || S(e, { h: 64 }), this.fillType3 = this.fillType3 || S(t, { h: 64 }), this.fillType4 = this.fillType4 || S(e, { h: -64 }), this.fillType5 = this.fillType5 || S(t, { h: -64 }), this.fillType6 = this.fillType6 || S(e, { h: 128 }), this.fillType7 = this.fillType7 || S(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || S(e, { l: -10 }), this.pie5 = this.pie5 || S(t, { l: -10 }), this.pie6 = this.pie6 || S(n, { l: -10 }), this.pie7 = this.pie7 || S(e, {
|
|
1680
1132
|
h: 60,
|
|
1681
1133
|
l: -10
|
|
1682
|
-
}), this.pie8 = this.pie8 ||
|
|
1134
|
+
}), this.pie8 = this.pie8 || S(e, {
|
|
1683
1135
|
h: -60,
|
|
1684
1136
|
l: -10
|
|
1685
|
-
}), this.pie9 = this.pie9 ||
|
|
1137
|
+
}), this.pie9 = this.pie9 || S(e, {
|
|
1686
1138
|
h: 120,
|
|
1687
1139
|
l: 0
|
|
1688
|
-
}), this.pie10 = this.pie10 ||
|
|
1140
|
+
}), this.pie10 = this.pie10 || S(e, {
|
|
1689
1141
|
h: 60,
|
|
1690
1142
|
l: -20
|
|
1691
|
-
}), this.pie11 = this.pie11 ||
|
|
1143
|
+
}), this.pie11 = this.pie11 || S(e, {
|
|
1692
1144
|
h: -60,
|
|
1693
1145
|
l: -20
|
|
1694
|
-
}), this.pie12 = this.pie12 ||
|
|
1146
|
+
}), this.pie12 = this.pie12 || S(e, {
|
|
1695
1147
|
h: 120,
|
|
1696
1148
|
l: -10
|
|
1697
|
-
}), 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 ||
|
|
1149
|
+
}), 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 || S(e, {
|
|
1698
1150
|
r: 5,
|
|
1699
1151
|
g: 5,
|
|
1700
1152
|
b: 5
|
|
1701
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1153
|
+
}), this.quadrant3Fill = this.quadrant3Fill || S(e, {
|
|
1702
1154
|
r: 10,
|
|
1703
1155
|
g: 10,
|
|
1704
1156
|
b: 10
|
|
1705
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1157
|
+
}), this.quadrant4Fill = this.quadrant4Fill || S(e, {
|
|
1706
1158
|
r: 15,
|
|
1707
1159
|
g: 15,
|
|
1708
1160
|
b: 15
|
|
1709
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1161
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
|
|
1710
1162
|
r: -5,
|
|
1711
1163
|
g: -5,
|
|
1712
1164
|
b: -5
|
|
1713
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1165
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
|
|
1714
1166
|
r: -10,
|
|
1715
1167
|
g: -10,
|
|
1716
1168
|
b: -10
|
|
1717
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1169
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
|
|
1718
1170
|
r: -15,
|
|
1719
1171
|
g: -15,
|
|
1720
1172
|
b: -15
|
|
1721
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1173
|
+
}), this.quadrantPointFill = this.quadrantPointFill || v(this.quadrant1Fill) ? b(this.quadrant1Fill) : x(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 = {
|
|
1722
1174
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1723
1175
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1724
1176
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
@@ -1730,7 +1182,7 @@ var C = {
|
|
|
1730
1182
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1731
1183
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1732
1184
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
1733
|
-
}, 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 ?
|
|
1185
|
+
}, 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 ? x(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 || S(e, { h: -30 }), this.git4 = this.git4 || S(e, { h: -60 }), this.git5 = this.git5 || S(e, { h: -90 }), this.git6 = this.git6 || S(e, { h: 60 }), this.git7 = this.git7 || S(e, { h: 120 }), this.darkMode ? (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)) : (this.git0 = x(this.git0, 25), this.git1 = x(this.git1, 25), this.git2 = x(this.git2, 25), this.git3 = x(this.git3, 25), this.git4 = x(this.git4, 25), this.git5 = x(this.git5, 25), this.git6 = x(this.git6, 25), this.git7 = x(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(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 || D, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || O;
|
|
1734
1186
|
}
|
|
1735
1187
|
calculate(e) {
|
|
1736
1188
|
if (typeof e != "object") {
|
|
@@ -1744,82 +1196,82 @@ var C = {
|
|
|
1744
1196
|
this[t] = e[t];
|
|
1745
1197
|
});
|
|
1746
1198
|
}
|
|
1747
|
-
},
|
|
1748
|
-
let t = new
|
|
1199
|
+
}, Se = /* @__PURE__ */ r((e) => {
|
|
1200
|
+
let t = new xe();
|
|
1749
1201
|
return t.calculate(e), t;
|
|
1750
|
-
}, "getThemeVariables"),
|
|
1202
|
+
}, "getThemeVariables"), Ce = class {
|
|
1751
1203
|
static {
|
|
1752
|
-
|
|
1204
|
+
r(this, "Theme");
|
|
1753
1205
|
}
|
|
1754
1206
|
constructor() {
|
|
1755
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor =
|
|
1207
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = b(this.primaryColor, 16), this.tertiaryColor = S(this.primaryColor, { h: -160 }), this.primaryBorderColor = C(this.background), this.secondaryBorderColor = k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = k(this.tertiaryColor, this.darkMode), this.primaryTextColor = C(this.primaryColor), this.secondaryTextColor = C(this.secondaryColor), this.tertiaryTextColor = C(this.tertiaryColor), this.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = b(C("#323D47"), 10), this.border1 = "#ccc", this.border2 = _(255, 255, 255, .25), this.arrowheadColor = C(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";
|
|
1756
1208
|
}
|
|
1757
1209
|
updateColors() {
|
|
1758
|
-
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor ||
|
|
1210
|
+
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || S(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || S(this.primaryColor, {
|
|
1759
1211
|
h: 180,
|
|
1760
1212
|
l: 5
|
|
1761
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
1213
|
+
}), this.primaryBorderColor = this.primaryBorderColor || k(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || k(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || k(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || C(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || C(this.tertiaryColor), this.lineColor = this.lineColor || C(this.background), this.arrowheadColor = this.arrowheadColor || C(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? x(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || x(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || C(this.lineColor), this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || b(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || S(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || S(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || S(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || S(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || S(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || S(this.primaryColor, {
|
|
1762
1214
|
h: 210,
|
|
1763
1215
|
l: 150
|
|
1764
|
-
}), this.cScale9 = this.cScale9 ||
|
|
1765
|
-
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
1766
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1767
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
1216
|
+
}), this.cScale9 = this.cScale9 || S(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || S(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || S(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 75);
|
|
1217
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 25);
|
|
1218
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
|
|
1219
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || x(this["cScale" + e], 10);
|
|
1768
1220
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
1769
1221
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1770
1222
|
let e = this.darkMode ? -4 : -1;
|
|
1771
|
-
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] ||
|
|
1223
|
+
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || S(this.mainBkg, {
|
|
1772
1224
|
h: 180,
|
|
1773
1225
|
s: -15,
|
|
1774
1226
|
l: e * (5 + t * 3)
|
|
1775
|
-
}), this["surfacePeer" + t] = this["surfacePeer" + t] ||
|
|
1227
|
+
}), this["surfacePeer" + t] = this["surfacePeer" + t] || S(this.mainBkg, {
|
|
1776
1228
|
h: 180,
|
|
1777
1229
|
s: -15,
|
|
1778
1230
|
l: e * (8 + t * 3)
|
|
1779
1231
|
});
|
|
1780
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 ||
|
|
1232
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || S(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || S(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || S(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || S(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || S(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || S(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 || S(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || S(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || S(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || S(this.primaryColor, {
|
|
1781
1233
|
h: 60,
|
|
1782
1234
|
l: -10
|
|
1783
|
-
}), this.pie8 = this.pie8 ||
|
|
1235
|
+
}), this.pie8 = this.pie8 || S(this.primaryColor, {
|
|
1784
1236
|
h: -60,
|
|
1785
1237
|
l: -10
|
|
1786
|
-
}), this.pie9 = this.pie9 ||
|
|
1238
|
+
}), this.pie9 = this.pie9 || S(this.primaryColor, {
|
|
1787
1239
|
h: 120,
|
|
1788
1240
|
l: 0
|
|
1789
|
-
}), this.pie10 = this.pie10 ||
|
|
1241
|
+
}), this.pie10 = this.pie10 || S(this.primaryColor, {
|
|
1790
1242
|
h: 60,
|
|
1791
1243
|
l: -20
|
|
1792
|
-
}), this.pie11 = this.pie11 ||
|
|
1244
|
+
}), this.pie11 = this.pie11 || S(this.primaryColor, {
|
|
1793
1245
|
h: -60,
|
|
1794
1246
|
l: -20
|
|
1795
|
-
}), this.pie12 = this.pie12 ||
|
|
1247
|
+
}), this.pie12 = this.pie12 || S(this.primaryColor, {
|
|
1796
1248
|
h: 120,
|
|
1797
1249
|
l: -10
|
|
1798
|
-
}), 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 ||
|
|
1250
|
+
}), 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 || S(this.primaryColor, {
|
|
1799
1251
|
r: 5,
|
|
1800
1252
|
g: 5,
|
|
1801
1253
|
b: 5
|
|
1802
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1254
|
+
}), this.quadrant3Fill = this.quadrant3Fill || S(this.primaryColor, {
|
|
1803
1255
|
r: 10,
|
|
1804
1256
|
g: 10,
|
|
1805
1257
|
b: 10
|
|
1806
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1258
|
+
}), this.quadrant4Fill = this.quadrant4Fill || S(this.primaryColor, {
|
|
1807
1259
|
r: 15,
|
|
1808
1260
|
g: 15,
|
|
1809
1261
|
b: 15
|
|
1810
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1262
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
|
|
1811
1263
|
r: -5,
|
|
1812
1264
|
g: -5,
|
|
1813
1265
|
b: -5
|
|
1814
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1266
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
|
|
1815
1267
|
r: -10,
|
|
1816
1268
|
g: -10,
|
|
1817
1269
|
b: -10
|
|
1818
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1270
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
|
|
1819
1271
|
r: -15,
|
|
1820
1272
|
g: -15,
|
|
1821
1273
|
b: -15
|
|
1822
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1274
|
+
}), this.quadrantPointFill = this.quadrantPointFill || v(this.quadrant1Fill) ? b(this.quadrant1Fill) : x(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 = {
|
|
1823
1275
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1824
1276
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1825
1277
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
@@ -1831,7 +1283,7 @@ var C = {
|
|
|
1831
1283
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1832
1284
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1833
1285
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
1834
|
-
}, 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 ?
|
|
1286
|
+
}, 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 ? x(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 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)) : (this.git0 = x(this.git0, 25), this.git1 = x(this.git1, 25), this.git2 = x(this.git2, 25), this.git3 = x(this.git3, 25), this.git4 = x(this.git4, 25), this.git5 = x(this.git5, 25), this.git6 = x(this.git6, 25), this.git7 = x(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(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 || D, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || O;
|
|
1835
1287
|
}
|
|
1836
1288
|
calculate(e) {
|
|
1837
1289
|
if (typeof e != "object") {
|
|
@@ -1845,86 +1297,86 @@ var C = {
|
|
|
1845
1297
|
this[t] = e[t];
|
|
1846
1298
|
});
|
|
1847
1299
|
}
|
|
1848
|
-
},
|
|
1849
|
-
let t = new
|
|
1300
|
+
}, we = /* @__PURE__ */ r((e) => {
|
|
1301
|
+
let t = new Ce();
|
|
1850
1302
|
return t.calculate(e), t;
|
|
1851
|
-
}, "getThemeVariables"),
|
|
1303
|
+
}, "getThemeVariables"), Te = class {
|
|
1852
1304
|
static {
|
|
1853
|
-
|
|
1305
|
+
r(this, "Theme");
|
|
1854
1306
|
}
|
|
1855
1307
|
constructor() {
|
|
1856
|
-
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 =
|
|
1308
|
+
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 = k("#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";
|
|
1857
1309
|
}
|
|
1858
1310
|
updateColors() {
|
|
1859
|
-
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor ||
|
|
1311
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || S(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || S(this.primaryColor, {
|
|
1860
1312
|
h: 180,
|
|
1861
1313
|
l: 5
|
|
1862
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
1863
|
-
let e = "#ECECFE", t = "#E9E9F1", n =
|
|
1314
|
+
}), this.primaryBorderColor = this.primaryBorderColor || k(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || k(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || k(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || C(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || C(this.tertiaryColor), this.lineColor = this.lineColor || C(this.background), this.arrowheadColor = this.arrowheadColor || C(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 ? x(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.noteFontWeight = 600, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || x(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || C(this.lineColor);
|
|
1315
|
+
let e = "#ECECFE", t = "#E9E9F1", n = S(e, {
|
|
1864
1316
|
h: 180,
|
|
1865
1317
|
l: 5
|
|
1866
1318
|
});
|
|
1867
|
-
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 ||
|
|
1319
|
+
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 || b(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;
|
|
1868
1320
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = this.mainBkg;
|
|
1869
|
-
if (this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
1870
|
-
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
1871
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1872
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
1321
|
+
if (this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 75);
|
|
1322
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 25);
|
|
1323
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
|
|
1324
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || x(this["cScale" + e], 10);
|
|
1873
1325
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
1874
1326
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1875
1327
|
let r = this.darkMode ? -4 : -1;
|
|
1876
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
1328
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || S(this.mainBkg, {
|
|
1877
1329
|
h: 180,
|
|
1878
1330
|
s: -15,
|
|
1879
1331
|
l: r * (5 + e * 3)
|
|
1880
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
1332
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || S(this.mainBkg, {
|
|
1881
1333
|
h: 180,
|
|
1882
1334
|
s: -15,
|
|
1883
1335
|
l: r * (8 + e * 3)
|
|
1884
1336
|
});
|
|
1885
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 ||
|
|
1337
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || S(e, { h: 64 }), this.fillType3 = this.fillType3 || S(t, { h: 64 }), this.fillType4 = this.fillType4 || S(e, { h: -64 }), this.fillType5 = this.fillType5 || S(t, { h: -64 }), this.fillType6 = this.fillType6 || S(e, { h: 128 }), this.fillType7 = this.fillType7 || S(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || S(e, { l: -10 }), this.pie5 = this.pie5 || S(t, { l: -10 }), this.pie6 = this.pie6 || S(n, { l: -10 }), this.pie7 = this.pie7 || S(e, {
|
|
1886
1338
|
h: 60,
|
|
1887
1339
|
l: -10
|
|
1888
|
-
}), this.pie8 = this.pie8 ||
|
|
1340
|
+
}), this.pie8 = this.pie8 || S(e, {
|
|
1889
1341
|
h: -60,
|
|
1890
1342
|
l: -10
|
|
1891
|
-
}), this.pie9 = this.pie9 ||
|
|
1343
|
+
}), this.pie9 = this.pie9 || S(e, {
|
|
1892
1344
|
h: 120,
|
|
1893
1345
|
l: 0
|
|
1894
|
-
}), this.pie10 = this.pie10 ||
|
|
1346
|
+
}), this.pie10 = this.pie10 || S(e, {
|
|
1895
1347
|
h: 60,
|
|
1896
1348
|
l: -20
|
|
1897
|
-
}), this.pie11 = this.pie11 ||
|
|
1349
|
+
}), this.pie11 = this.pie11 || S(e, {
|
|
1898
1350
|
h: -60,
|
|
1899
1351
|
l: -20
|
|
1900
|
-
}), this.pie12 = this.pie12 ||
|
|
1352
|
+
}), this.pie12 = this.pie12 || S(e, {
|
|
1901
1353
|
h: 120,
|
|
1902
1354
|
l: -10
|
|
1903
|
-
}), 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 ||
|
|
1355
|
+
}), 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 || S(e, {
|
|
1904
1356
|
r: 5,
|
|
1905
1357
|
g: 5,
|
|
1906
1358
|
b: 5
|
|
1907
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1359
|
+
}), this.quadrant3Fill = this.quadrant3Fill || S(e, {
|
|
1908
1360
|
r: 10,
|
|
1909
1361
|
g: 10,
|
|
1910
1362
|
b: 10
|
|
1911
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1363
|
+
}), this.quadrant4Fill = this.quadrant4Fill || S(e, {
|
|
1912
1364
|
r: 15,
|
|
1913
1365
|
g: 15,
|
|
1914
1366
|
b: 15
|
|
1915
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1367
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
|
|
1916
1368
|
r: -5,
|
|
1917
1369
|
g: -5,
|
|
1918
1370
|
b: -5
|
|
1919
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1371
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
|
|
1920
1372
|
r: -10,
|
|
1921
1373
|
g: -10,
|
|
1922
1374
|
b: -10
|
|
1923
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1375
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
|
|
1924
1376
|
r: -15,
|
|
1925
1377
|
g: -15,
|
|
1926
1378
|
b: -15
|
|
1927
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1379
|
+
}), this.quadrantPointFill = this.quadrantPointFill || v(this.quadrant1Fill) ? b(this.quadrant1Fill) : x(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 = {
|
|
1928
1380
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1929
1381
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1930
1382
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
@@ -1936,7 +1388,7 @@ var C = {
|
|
|
1936
1388
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1937
1389
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1938
1390
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
1939
|
-
}, 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 ?
|
|
1391
|
+
}, 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 ? x(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 || S(e, { h: -30 }), this.git4 = this.git4 || S(e, { h: -60 }), this.git5 = this.git5 || S(e, { h: -90 }), this.git6 = this.git6 || S(e, { h: 60 }), this.git7 = this.git7 || S(e, { h: 120 }), this.darkMode ? (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)) : (this.git0 = x(this.git0, 25), this.git1 = x(this.git1, 25), this.git2 = x(this.git2, 25), this.git3 = x(this.git3, 25), this.git4 = x(this.git4, 25), this.git5 = x(this.git5, 25), this.git6 = x(this.git6, 25), this.git7 = x(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(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 || D, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || O;
|
|
1940
1392
|
}
|
|
1941
1393
|
calculate(e) {
|
|
1942
1394
|
if (typeof e != "object") {
|
|
@@ -1950,82 +1402,82 @@ var C = {
|
|
|
1950
1402
|
this[t] = e[t];
|
|
1951
1403
|
});
|
|
1952
1404
|
}
|
|
1953
|
-
},
|
|
1954
|
-
let t = new
|
|
1405
|
+
}, Ee = /* @__PURE__ */ r((e) => {
|
|
1406
|
+
let t = new Te();
|
|
1955
1407
|
return t.calculate(e), t;
|
|
1956
|
-
}, "getThemeVariables"),
|
|
1408
|
+
}, "getThemeVariables"), De = class {
|
|
1957
1409
|
static {
|
|
1958
|
-
|
|
1410
|
+
r(this, "Theme");
|
|
1959
1411
|
}
|
|
1960
1412
|
constructor() {
|
|
1961
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor =
|
|
1413
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = b(this.primaryColor, 16), this.tertiaryColor = S(this.primaryColor, { h: -160 }), this.primaryBorderColor = C(this.background), this.secondaryBorderColor = k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = k(this.tertiaryColor, this.darkMode), this.primaryTextColor = C(this.primaryColor), this.secondaryTextColor = C(this.secondaryColor), this.tertiaryTextColor = C(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = b(C("#323D47"), 10), this.border1 = "#ccc", this.border2 = _(255, 255, 255, .25), this.arrowheadColor = C(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";
|
|
1962
1414
|
}
|
|
1963
1415
|
updateColors() {
|
|
1964
|
-
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor ||
|
|
1416
|
+
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || S(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || S(this.primaryColor, {
|
|
1965
1417
|
h: 180,
|
|
1966
1418
|
l: 5
|
|
1967
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
1419
|
+
}), this.primaryBorderColor = this.primaryBorderColor || k(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || k(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || k(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || C(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || C(this.tertiaryColor), this.lineColor = this.lineColor || C(this.background), this.arrowheadColor = this.arrowheadColor || C(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? x(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = "#FFFFFF", this.signalColor = "#FFFFFF", this.labelBoxBorderColor = "#BDBCCC", this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || x(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || C(this.lineColor), this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || b(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.compositeBackground = "#16141F", this.altBackground = "#16141F", this.compositeTitleBackground = "#16141F", this.stateEdgeLabelBackground = "#16141F", this.fontWeight = 600, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || S(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || S(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || S(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || S(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || S(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || S(this.primaryColor, {
|
|
1968
1420
|
h: 210,
|
|
1969
1421
|
l: 150
|
|
1970
|
-
}), this.cScale9 = this.cScale9 ||
|
|
1971
|
-
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
1972
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1973
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
1422
|
+
}), this.cScale9 = this.cScale9 || S(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || S(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || S(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 75);
|
|
1423
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 25);
|
|
1424
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
|
|
1425
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || x(this["cScale" + e], 10);
|
|
1974
1426
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
1975
1427
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1976
1428
|
let e = this.darkMode ? -4 : -1;
|
|
1977
|
-
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] ||
|
|
1429
|
+
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || S(this.mainBkg, {
|
|
1978
1430
|
h: 180,
|
|
1979
1431
|
s: -15,
|
|
1980
1432
|
l: e * (5 + t * 3)
|
|
1981
|
-
}), this["surfacePeer" + t] = this["surfacePeer" + t] ||
|
|
1433
|
+
}), this["surfacePeer" + t] = this["surfacePeer" + t] || S(this.mainBkg, {
|
|
1982
1434
|
h: 180,
|
|
1983
1435
|
s: -15,
|
|
1984
1436
|
l: e * (8 + t * 3)
|
|
1985
1437
|
});
|
|
1986
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 ||
|
|
1438
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || S(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || S(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || S(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || S(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || S(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || S(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 || S(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || S(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || S(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || S(this.primaryColor, {
|
|
1987
1439
|
h: 60,
|
|
1988
1440
|
l: -10
|
|
1989
|
-
}), this.pie8 = this.pie8 ||
|
|
1441
|
+
}), this.pie8 = this.pie8 || S(this.primaryColor, {
|
|
1990
1442
|
h: -60,
|
|
1991
1443
|
l: -10
|
|
1992
|
-
}), this.pie9 = this.pie9 ||
|
|
1444
|
+
}), this.pie9 = this.pie9 || S(this.primaryColor, {
|
|
1993
1445
|
h: 120,
|
|
1994
1446
|
l: 0
|
|
1995
|
-
}), this.pie10 = this.pie10 ||
|
|
1447
|
+
}), this.pie10 = this.pie10 || S(this.primaryColor, {
|
|
1996
1448
|
h: 60,
|
|
1997
1449
|
l: -20
|
|
1998
|
-
}), this.pie11 = this.pie11 ||
|
|
1450
|
+
}), this.pie11 = this.pie11 || S(this.primaryColor, {
|
|
1999
1451
|
h: -60,
|
|
2000
1452
|
l: -20
|
|
2001
|
-
}), this.pie12 = this.pie12 ||
|
|
1453
|
+
}), this.pie12 = this.pie12 || S(this.primaryColor, {
|
|
2002
1454
|
h: 120,
|
|
2003
1455
|
l: -10
|
|
2004
|
-
}), 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 ||
|
|
1456
|
+
}), 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 || S(this.primaryColor, {
|
|
2005
1457
|
r: 5,
|
|
2006
1458
|
g: 5,
|
|
2007
1459
|
b: 5
|
|
2008
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1460
|
+
}), this.quadrant3Fill = this.quadrant3Fill || S(this.primaryColor, {
|
|
2009
1461
|
r: 10,
|
|
2010
1462
|
g: 10,
|
|
2011
1463
|
b: 10
|
|
2012
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1464
|
+
}), this.quadrant4Fill = this.quadrant4Fill || S(this.primaryColor, {
|
|
2013
1465
|
r: 15,
|
|
2014
1466
|
g: 15,
|
|
2015
1467
|
b: 15
|
|
2016
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1468
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
|
|
2017
1469
|
r: -5,
|
|
2018
1470
|
g: -5,
|
|
2019
1471
|
b: -5
|
|
2020
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1472
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
|
|
2021
1473
|
r: -10,
|
|
2022
1474
|
g: -10,
|
|
2023
1475
|
b: -10
|
|
2024
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1476
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
|
|
2025
1477
|
r: -15,
|
|
2026
1478
|
g: -15,
|
|
2027
1479
|
b: -15
|
|
2028
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1480
|
+
}), this.quadrantPointFill = this.quadrantPointFill || v(this.quadrant1Fill) ? b(this.quadrant1Fill) : x(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 = {
|
|
2029
1481
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2030
1482
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2031
1483
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
@@ -2037,7 +1489,7 @@ var C = {
|
|
|
2037
1489
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2038
1490
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2039
1491
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2040
|
-
}, 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 ?
|
|
1492
|
+
}, 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 ? x(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 || S(this.primaryColor, { h: -30 }), this.git4 = this.git4 || S(this.primaryColor, { h: -60 }), this.git5 = this.git5 || S(this.primaryColor, { h: -90 }), this.git6 = this.git6 || S(this.primaryColor, { h: 60 }), this.git7 = this.git7 || S(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)) : (this.git0 = x(this.git0, 25), this.git1 = x(this.git1, 25), this.git2 = x(this.git2, 25), this.git3 = x(this.git3, 25), this.git4 = x(this.git4, 25), this.git5 = x(this.git5, 25), this.git6 = x(this.git6, 25), this.git7 = x(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(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 || D, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || O;
|
|
2041
1493
|
}
|
|
2042
1494
|
calculate(e) {
|
|
2043
1495
|
if (typeof e != "object") {
|
|
@@ -2051,15 +1503,15 @@ var C = {
|
|
|
2051
1503
|
this[t] = e[t];
|
|
2052
1504
|
});
|
|
2053
1505
|
}
|
|
2054
|
-
},
|
|
2055
|
-
let t = new
|
|
1506
|
+
}, Oe = /* @__PURE__ */ r((e) => {
|
|
1507
|
+
let t = new De();
|
|
2056
1508
|
return t.calculate(e), t;
|
|
2057
|
-
}, "getThemeVariables"),
|
|
1509
|
+
}, "getThemeVariables"), ke = class {
|
|
2058
1510
|
static {
|
|
2059
|
-
|
|
1511
|
+
r(this, "Theme");
|
|
2060
1512
|
}
|
|
2061
1513
|
constructor() {
|
|
2062
|
-
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 =
|
|
1514
|
+
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 = k(this.primaryColor, this.darkMode), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#28253D", this.stateBorder = "#28253D", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.tertiaryColor = "#ffffff", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.actorBorder = "#28253D", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.borderColorArray = [
|
|
2063
1515
|
"#E879F9",
|
|
2064
1516
|
"#2DD4BF",
|
|
2065
1517
|
"#FB923C",
|
|
@@ -2088,72 +1540,72 @@ var C = {
|
|
|
2088
1540
|
], this.filterColor = "#000000";
|
|
2089
1541
|
}
|
|
2090
1542
|
updateColors() {
|
|
2091
|
-
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor ||
|
|
1543
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || S(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || S(this.primaryColor, {
|
|
2092
1544
|
h: 180,
|
|
2093
1545
|
l: 5
|
|
2094
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
2095
|
-
let e = "#ECECFE", t = "#E9E9F1", n =
|
|
1546
|
+
}), this.primaryBorderColor = this.primaryBorderColor || k(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || k(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || k(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || C(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || C(this.tertiaryColor), this.lineColor = this.lineColor || C(this.background), this.arrowheadColor = this.arrowheadColor || C(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 ? x(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || x(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || C(this.lineColor);
|
|
1547
|
+
let e = "#ECECFE", t = "#E9E9F1", n = S(e, {
|
|
2096
1548
|
h: 180,
|
|
2097
1549
|
l: 5
|
|
2098
1550
|
});
|
|
2099
|
-
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 ||
|
|
2100
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
2101
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
1551
|
+
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 || b(e, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || "#f4a8ff", this.cScale1 = this.cScale1 || "#46ecd5", this.cScale2 = this.cScale2 || "#ffb86a", this.cScale3 = this.cScale3 || "#dab2ff", this.cScale4 = this.cScale4 || "#7bf1a8", this.cScale5 = this.cScale5 || "#c4b4ff", this.cScale6 = this.cScale6 || "#ffa2a2", this.cScale7 = this.cScale7 || "#ffdf20", this.cScale8 = this.cScale8 || "#a3b3ff", this.cScale9 = this.cScale9 || "#bbf451", this.cScale10 = this.cScale10 || "#74d4ff", this.cScale11 = this.cScale11 || "#ffa1ad";
|
|
1552
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
|
|
1553
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || x(this["cScale" + e], 10);
|
|
2102
1554
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2103
1555
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
2104
1556
|
let r = this.darkMode ? -4 : -1;
|
|
2105
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
1557
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || S(this.mainBkg, {
|
|
2106
1558
|
h: 180,
|
|
2107
1559
|
s: -15,
|
|
2108
1560
|
l: r * (5 + e * 3)
|
|
2109
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
1561
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || S(this.mainBkg, {
|
|
2110
1562
|
h: 180,
|
|
2111
1563
|
s: -15,
|
|
2112
1564
|
l: r * (8 + e * 3)
|
|
2113
1565
|
});
|
|
2114
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 ||
|
|
1566
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || S(e, { h: 64 }), this.fillType3 = this.fillType3 || S(t, { h: 64 }), this.fillType4 = this.fillType4 || S(e, { h: -64 }), this.fillType5 = this.fillType5 || S(t, { h: -64 }), this.fillType6 = this.fillType6 || S(e, { h: 128 }), this.fillType7 = this.fillType7 || S(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || S(e, { l: -10 }), this.pie5 = this.pie5 || S(t, { l: -10 }), this.pie6 = this.pie6 || S(n, { l: -10 }), this.pie7 = this.pie7 || S(e, {
|
|
2115
1567
|
h: 60,
|
|
2116
1568
|
l: -10
|
|
2117
|
-
}), this.pie8 = this.pie8 ||
|
|
1569
|
+
}), this.pie8 = this.pie8 || S(e, {
|
|
2118
1570
|
h: -60,
|
|
2119
1571
|
l: -10
|
|
2120
|
-
}), this.pie9 = this.pie9 ||
|
|
1572
|
+
}), this.pie9 = this.pie9 || S(e, {
|
|
2121
1573
|
h: 120,
|
|
2122
1574
|
l: 0
|
|
2123
|
-
}), this.pie10 = this.pie10 ||
|
|
1575
|
+
}), this.pie10 = this.pie10 || S(e, {
|
|
2124
1576
|
h: 60,
|
|
2125
1577
|
l: -20
|
|
2126
|
-
}), this.pie11 = this.pie11 ||
|
|
1578
|
+
}), this.pie11 = this.pie11 || S(e, {
|
|
2127
1579
|
h: -60,
|
|
2128
1580
|
l: -20
|
|
2129
|
-
}), this.pie12 = this.pie12 ||
|
|
1581
|
+
}), this.pie12 = this.pie12 || S(e, {
|
|
2130
1582
|
h: 120,
|
|
2131
1583
|
l: -10
|
|
2132
|
-
}), 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 ||
|
|
1584
|
+
}), 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 || S(e, {
|
|
2133
1585
|
r: 5,
|
|
2134
1586
|
g: 5,
|
|
2135
1587
|
b: 5
|
|
2136
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1588
|
+
}), this.quadrant3Fill = this.quadrant3Fill || S(e, {
|
|
2137
1589
|
r: 10,
|
|
2138
1590
|
g: 10,
|
|
2139
1591
|
b: 10
|
|
2140
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1592
|
+
}), this.quadrant4Fill = this.quadrant4Fill || S(e, {
|
|
2141
1593
|
r: 15,
|
|
2142
1594
|
g: 15,
|
|
2143
1595
|
b: 15
|
|
2144
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1596
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
|
|
2145
1597
|
r: -5,
|
|
2146
1598
|
g: -5,
|
|
2147
1599
|
b: -5
|
|
2148
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1600
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
|
|
2149
1601
|
r: -10,
|
|
2150
1602
|
g: -10,
|
|
2151
1603
|
b: -10
|
|
2152
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1604
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
|
|
2153
1605
|
r: -15,
|
|
2154
1606
|
g: -15,
|
|
2155
1607
|
b: -15
|
|
2156
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1608
|
+
}), this.quadrantPointFill = this.quadrantPointFill || v(this.quadrant1Fill) ? b(this.quadrant1Fill) : x(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 = {
|
|
2157
1609
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2158
1610
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2159
1611
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
@@ -2165,7 +1617,7 @@ var C = {
|
|
|
2165
1617
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2166
1618
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2167
1619
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2168
|
-
}, 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 ?
|
|
1620
|
+
}, 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 ? x(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 || S(e, { h: -30 }), this.git4 = this.git4 || S(e, { h: -60 }), this.git5 = this.git5 || S(e, { h: -90 }), this.git6 = this.git6 || S(e, { h: 60 }), this.git7 = this.git7 || S(e, { h: 120 }), this.darkMode ? (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)) : (this.git0 = x(this.git0, 25), this.git1 = x(this.git1, 25), this.git2 = x(this.git2, 25), this.git3 = x(this.git3, 25), this.git4 = x(this.git4, 25), this.git5 = x(this.git5, 25), this.git6 = x(this.git6, 25), this.git7 = x(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(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 || D, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || O;
|
|
2169
1621
|
}
|
|
2170
1622
|
calculate(e) {
|
|
2171
1623
|
if (typeof e != "object") {
|
|
@@ -2179,15 +1631,15 @@ var C = {
|
|
|
2179
1631
|
this[t] = e[t];
|
|
2180
1632
|
});
|
|
2181
1633
|
}
|
|
2182
|
-
},
|
|
2183
|
-
let t = new
|
|
1634
|
+
}, Ae = /* @__PURE__ */ r((e) => {
|
|
1635
|
+
let t = new ke();
|
|
2184
1636
|
return t.calculate(e), t;
|
|
2185
|
-
}, "getThemeVariables"),
|
|
1637
|
+
}, "getThemeVariables"), je = class {
|
|
2186
1638
|
static {
|
|
2187
|
-
|
|
1639
|
+
r(this, "Theme");
|
|
2188
1640
|
}
|
|
2189
1641
|
constructor() {
|
|
2190
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor =
|
|
1642
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = b(this.primaryColor, 16), this.tertiaryColor = S(this.primaryColor, { h: -160 }), this.primaryBorderColor = C(this.background), this.secondaryBorderColor = k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = k(this.tertiaryColor, this.darkMode), this.primaryTextColor = C(this.primaryColor), this.secondaryTextColor = C(this.secondaryColor), this.tertiaryTextColor = C(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = b(C("#323D47"), 10), this.border1 = "#ccc", this.border2 = _(255, 255, 255, .25), this.arrowheadColor = C(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 = [
|
|
2191
1643
|
"#E879F9",
|
|
2192
1644
|
"#2DD4BF",
|
|
2193
1645
|
"#FB923C",
|
|
@@ -2203,67 +1655,67 @@ var C = {
|
|
|
2203
1655
|
], this.bkgColorArray = [], this.filterColor = "#FFFFFF";
|
|
2204
1656
|
}
|
|
2205
1657
|
updateColors() {
|
|
2206
|
-
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor ||
|
|
1658
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || S(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || S(this.primaryColor, {
|
|
2207
1659
|
h: 180,
|
|
2208
1660
|
l: 5
|
|
2209
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
2210
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
2211
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
1661
|
+
}), this.primaryBorderColor = this.primaryBorderColor || k(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || k(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || k(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || C(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || C(this.tertiaryColor), this.lineColor = this.lineColor || C(this.background), this.arrowheadColor = this.arrowheadColor || C(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? x(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = "#FFFFFF", this.signalColor = "#FFFFFF", this.labelBoxBorderColor = "#BDBCCC", this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || x(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || C(this.lineColor), this.rootLabelColor = "#FFFFFF", this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || b(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || "#f4a8ff", this.cScale1 = this.cScale1 || "#46ecd5", this.cScale2 = this.cScale2 || "#ffb86a", this.cScale3 = this.cScale3 || "#dab2ff", this.cScale4 = this.cScale4 || "#7bf1a8", this.cScale5 = this.cScale5 || "#c4b4ff", this.cScale6 = this.cScale6 || "#ffa2a2", this.cScale7 = this.cScale7 || "#ffdf20", this.cScale8 = this.cScale8 || "#a3b3ff", this.cScale9 = this.cScale9 || "#bbf451", this.cScale10 = this.cScale10 || "#74d4ff", this.cScale11 = this.cScale11 || "#ffa1ad";
|
|
1662
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
|
|
1663
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || x(this["cScale" + e], 10);
|
|
2212
1664
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2213
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] =
|
|
1665
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = x(this["cScale" + e], 75);
|
|
2214
1666
|
let e = this.darkMode ? -4 : -1;
|
|
2215
|
-
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] ||
|
|
1667
|
+
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || S(this.mainBkg, {
|
|
2216
1668
|
h: 180,
|
|
2217
1669
|
s: -15,
|
|
2218
1670
|
l: e * (5 + t * 3)
|
|
2219
|
-
}), this["surfacePeer" + t] = this["surfacePeer" + t] ||
|
|
1671
|
+
}), this["surfacePeer" + t] = this["surfacePeer" + t] || S(this.mainBkg, {
|
|
2220
1672
|
h: 180,
|
|
2221
1673
|
s: -15,
|
|
2222
1674
|
l: e * (8 + t * 3)
|
|
2223
1675
|
});
|
|
2224
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 ||
|
|
1676
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || S(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || S(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || S(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || S(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || S(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || S(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 || S(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || S(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || S(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || S(this.primaryColor, {
|
|
2225
1677
|
h: 60,
|
|
2226
1678
|
l: -10
|
|
2227
|
-
}), this.pie8 = this.pie8 ||
|
|
1679
|
+
}), this.pie8 = this.pie8 || S(this.primaryColor, {
|
|
2228
1680
|
h: -60,
|
|
2229
1681
|
l: -10
|
|
2230
|
-
}), this.pie9 = this.pie9 ||
|
|
1682
|
+
}), this.pie9 = this.pie9 || S(this.primaryColor, {
|
|
2231
1683
|
h: 120,
|
|
2232
1684
|
l: 0
|
|
2233
|
-
}), this.pie10 = this.pie10 ||
|
|
1685
|
+
}), this.pie10 = this.pie10 || S(this.primaryColor, {
|
|
2234
1686
|
h: 60,
|
|
2235
1687
|
l: -20
|
|
2236
|
-
}), this.pie11 = this.pie11 ||
|
|
1688
|
+
}), this.pie11 = this.pie11 || S(this.primaryColor, {
|
|
2237
1689
|
h: -60,
|
|
2238
1690
|
l: -20
|
|
2239
|
-
}), this.pie12 = this.pie12 ||
|
|
1691
|
+
}), this.pie12 = this.pie12 || S(this.primaryColor, {
|
|
2240
1692
|
h: 120,
|
|
2241
1693
|
l: -10
|
|
2242
|
-
}), 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 ||
|
|
1694
|
+
}), 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 || S(this.primaryColor, {
|
|
2243
1695
|
r: 5,
|
|
2244
1696
|
g: 5,
|
|
2245
1697
|
b: 5
|
|
2246
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1698
|
+
}), this.quadrant3Fill = this.quadrant3Fill || S(this.primaryColor, {
|
|
2247
1699
|
r: 10,
|
|
2248
1700
|
g: 10,
|
|
2249
1701
|
b: 10
|
|
2250
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1702
|
+
}), this.quadrant4Fill = this.quadrant4Fill || S(this.primaryColor, {
|
|
2251
1703
|
r: 15,
|
|
2252
1704
|
g: 15,
|
|
2253
1705
|
b: 15
|
|
2254
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1706
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
|
|
2255
1707
|
r: -5,
|
|
2256
1708
|
g: -5,
|
|
2257
1709
|
b: -5
|
|
2258
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1710
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
|
|
2259
1711
|
r: -10,
|
|
2260
1712
|
g: -10,
|
|
2261
1713
|
b: -10
|
|
2262
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1714
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
|
|
2263
1715
|
r: -15,
|
|
2264
1716
|
g: -15,
|
|
2265
1717
|
b: -15
|
|
2266
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1718
|
+
}), this.quadrantPointFill = this.quadrantPointFill || v(this.quadrant1Fill) ? b(this.quadrant1Fill) : x(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 = {
|
|
2267
1719
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2268
1720
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2269
1721
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
@@ -2275,7 +1727,7 @@ var C = {
|
|
|
2275
1727
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2276
1728
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2277
1729
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2278
|
-
}, 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 ?
|
|
1730
|
+
}, 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 ? x(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 || S(this.primaryColor, { h: -30 }), this.git4 = this.git4 || S(this.primaryColor, { h: -60 }), this.git5 = this.git5 || S(this.primaryColor, { h: -90 }), this.git6 = this.git6 || S(this.primaryColor, { h: 60 }), this.git7 = this.git7 || S(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)) : (this.git0 = x(this.git0, 25), this.git1 = x(this.git1, 25), this.git2 = x(this.git2, 25), this.git3 = x(this.git3, 25), this.git4 = x(this.git4, 25), this.git5 = x(this.git5, 25), this.git6 = x(this.git6, 25), this.git7 = x(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(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 || D, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || O;
|
|
2279
1731
|
}
|
|
2280
1732
|
calculate(e) {
|
|
2281
1733
|
if (typeof e != "object") {
|
|
@@ -2289,22 +1741,22 @@ var C = {
|
|
|
2289
1741
|
this[t] = e[t];
|
|
2290
1742
|
});
|
|
2291
1743
|
}
|
|
2292
|
-
},
|
|
2293
|
-
base: { getThemeVariables:
|
|
2294
|
-
dark: { getThemeVariables:
|
|
2295
|
-
default: { getThemeVariables:
|
|
2296
|
-
forest: { getThemeVariables:
|
|
2297
|
-
neutral: { getThemeVariables:
|
|
2298
|
-
neo: { getThemeVariables:
|
|
2299
|
-
"neo-dark": { getThemeVariables:
|
|
2300
|
-
redux: { getThemeVariables:
|
|
2301
|
-
"redux-dark": { getThemeVariables:
|
|
2302
|
-
"redux-color": { getThemeVariables:
|
|
2303
|
-
"redux-dark-color": { getThemeVariables: /* @__PURE__ */
|
|
2304
|
-
let t = new
|
|
1744
|
+
}, A = {
|
|
1745
|
+
base: { getThemeVariables: fe },
|
|
1746
|
+
dark: { getThemeVariables: me },
|
|
1747
|
+
default: { getThemeVariables: ge },
|
|
1748
|
+
forest: { getThemeVariables: ve },
|
|
1749
|
+
neutral: { getThemeVariables: be },
|
|
1750
|
+
neo: { getThemeVariables: Se },
|
|
1751
|
+
"neo-dark": { getThemeVariables: we },
|
|
1752
|
+
redux: { getThemeVariables: Ee },
|
|
1753
|
+
"redux-dark": { getThemeVariables: Oe },
|
|
1754
|
+
"redux-color": { getThemeVariables: Ae },
|
|
1755
|
+
"redux-dark-color": { getThemeVariables: /* @__PURE__ */ r((e) => {
|
|
1756
|
+
let t = new je();
|
|
2305
1757
|
return t.calculate(e), t;
|
|
2306
1758
|
}, "getThemeVariables") }
|
|
2307
|
-
},
|
|
1759
|
+
}, j = {
|
|
2308
1760
|
flowchart: {
|
|
2309
1761
|
useMaxWidth: !0,
|
|
2310
1762
|
titleTopMargin: 25,
|
|
@@ -2826,8 +2278,8 @@ var C = {
|
|
|
2826
2278
|
fontSize: 16,
|
|
2827
2279
|
markdownAutoWrap: !0,
|
|
2828
2280
|
suppressErrorRendering: !1
|
|
2829
|
-
},
|
|
2830
|
-
...
|
|
2281
|
+
}, Me = {
|
|
2282
|
+
...j,
|
|
2831
2283
|
deterministicIDSeed: void 0,
|
|
2832
2284
|
elk: {
|
|
2833
2285
|
mergeEdges: !1,
|
|
@@ -2836,24 +2288,24 @@ var C = {
|
|
|
2836
2288
|
considerModelOrder: "NODES_AND_EDGES"
|
|
2837
2289
|
},
|
|
2838
2290
|
themeCSS: void 0,
|
|
2839
|
-
themeVariables:
|
|
2291
|
+
themeVariables: A.default.getThemeVariables(),
|
|
2840
2292
|
sequence: {
|
|
2841
|
-
...
|
|
2842
|
-
messageFont: /* @__PURE__ */
|
|
2293
|
+
...j.sequence,
|
|
2294
|
+
messageFont: /* @__PURE__ */ r(function() {
|
|
2843
2295
|
return {
|
|
2844
2296
|
fontFamily: this.messageFontFamily,
|
|
2845
2297
|
fontSize: this.messageFontSize,
|
|
2846
2298
|
fontWeight: this.messageFontWeight
|
|
2847
2299
|
};
|
|
2848
2300
|
}, "messageFont"),
|
|
2849
|
-
noteFont: /* @__PURE__ */
|
|
2301
|
+
noteFont: /* @__PURE__ */ r(function() {
|
|
2850
2302
|
return {
|
|
2851
2303
|
fontFamily: this.noteFontFamily,
|
|
2852
2304
|
fontSize: this.noteFontSize,
|
|
2853
2305
|
fontWeight: this.noteFontWeight
|
|
2854
2306
|
};
|
|
2855
2307
|
}, "noteFont"),
|
|
2856
|
-
actorFont: /* @__PURE__ */
|
|
2308
|
+
actorFont: /* @__PURE__ */ r(function() {
|
|
2857
2309
|
return {
|
|
2858
2310
|
fontFamily: this.actorFontFamily,
|
|
2859
2311
|
fontSize: this.actorFontSize,
|
|
@@ -2866,14 +2318,14 @@ var C = {
|
|
|
2866
2318
|
hierarchicalNamespaces: !0
|
|
2867
2319
|
},
|
|
2868
2320
|
gantt: {
|
|
2869
|
-
...
|
|
2321
|
+
...j.gantt,
|
|
2870
2322
|
tickInterval: void 0,
|
|
2871
2323
|
useWidth: void 0
|
|
2872
2324
|
},
|
|
2873
2325
|
c4: {
|
|
2874
|
-
...
|
|
2326
|
+
...j.c4,
|
|
2875
2327
|
useWidth: void 0,
|
|
2876
|
-
personFont: /* @__PURE__ */
|
|
2328
|
+
personFont: /* @__PURE__ */ r(function() {
|
|
2877
2329
|
return {
|
|
2878
2330
|
fontFamily: this.personFontFamily,
|
|
2879
2331
|
fontSize: this.personFontSize,
|
|
@@ -2881,150 +2333,150 @@ var C = {
|
|
|
2881
2333
|
};
|
|
2882
2334
|
}, "personFont"),
|
|
2883
2335
|
flowchart: {
|
|
2884
|
-
...
|
|
2336
|
+
...j.flowchart,
|
|
2885
2337
|
inheritDir: !1
|
|
2886
2338
|
},
|
|
2887
|
-
external_personFont: /* @__PURE__ */
|
|
2339
|
+
external_personFont: /* @__PURE__ */ r(function() {
|
|
2888
2340
|
return {
|
|
2889
2341
|
fontFamily: this.external_personFontFamily,
|
|
2890
2342
|
fontSize: this.external_personFontSize,
|
|
2891
2343
|
fontWeight: this.external_personFontWeight
|
|
2892
2344
|
};
|
|
2893
2345
|
}, "external_personFont"),
|
|
2894
|
-
systemFont: /* @__PURE__ */
|
|
2346
|
+
systemFont: /* @__PURE__ */ r(function() {
|
|
2895
2347
|
return {
|
|
2896
2348
|
fontFamily: this.systemFontFamily,
|
|
2897
2349
|
fontSize: this.systemFontSize,
|
|
2898
2350
|
fontWeight: this.systemFontWeight
|
|
2899
2351
|
};
|
|
2900
2352
|
}, "systemFont"),
|
|
2901
|
-
external_systemFont: /* @__PURE__ */
|
|
2353
|
+
external_systemFont: /* @__PURE__ */ r(function() {
|
|
2902
2354
|
return {
|
|
2903
2355
|
fontFamily: this.external_systemFontFamily,
|
|
2904
2356
|
fontSize: this.external_systemFontSize,
|
|
2905
2357
|
fontWeight: this.external_systemFontWeight
|
|
2906
2358
|
};
|
|
2907
2359
|
}, "external_systemFont"),
|
|
2908
|
-
system_dbFont: /* @__PURE__ */
|
|
2360
|
+
system_dbFont: /* @__PURE__ */ r(function() {
|
|
2909
2361
|
return {
|
|
2910
2362
|
fontFamily: this.system_dbFontFamily,
|
|
2911
2363
|
fontSize: this.system_dbFontSize,
|
|
2912
2364
|
fontWeight: this.system_dbFontWeight
|
|
2913
2365
|
};
|
|
2914
2366
|
}, "system_dbFont"),
|
|
2915
|
-
external_system_dbFont: /* @__PURE__ */
|
|
2367
|
+
external_system_dbFont: /* @__PURE__ */ r(function() {
|
|
2916
2368
|
return {
|
|
2917
2369
|
fontFamily: this.external_system_dbFontFamily,
|
|
2918
2370
|
fontSize: this.external_system_dbFontSize,
|
|
2919
2371
|
fontWeight: this.external_system_dbFontWeight
|
|
2920
2372
|
};
|
|
2921
2373
|
}, "external_system_dbFont"),
|
|
2922
|
-
system_queueFont: /* @__PURE__ */
|
|
2374
|
+
system_queueFont: /* @__PURE__ */ r(function() {
|
|
2923
2375
|
return {
|
|
2924
2376
|
fontFamily: this.system_queueFontFamily,
|
|
2925
2377
|
fontSize: this.system_queueFontSize,
|
|
2926
2378
|
fontWeight: this.system_queueFontWeight
|
|
2927
2379
|
};
|
|
2928
2380
|
}, "system_queueFont"),
|
|
2929
|
-
external_system_queueFont: /* @__PURE__ */
|
|
2381
|
+
external_system_queueFont: /* @__PURE__ */ r(function() {
|
|
2930
2382
|
return {
|
|
2931
2383
|
fontFamily: this.external_system_queueFontFamily,
|
|
2932
2384
|
fontSize: this.external_system_queueFontSize,
|
|
2933
2385
|
fontWeight: this.external_system_queueFontWeight
|
|
2934
2386
|
};
|
|
2935
2387
|
}, "external_system_queueFont"),
|
|
2936
|
-
containerFont: /* @__PURE__ */
|
|
2388
|
+
containerFont: /* @__PURE__ */ r(function() {
|
|
2937
2389
|
return {
|
|
2938
2390
|
fontFamily: this.containerFontFamily,
|
|
2939
2391
|
fontSize: this.containerFontSize,
|
|
2940
2392
|
fontWeight: this.containerFontWeight
|
|
2941
2393
|
};
|
|
2942
2394
|
}, "containerFont"),
|
|
2943
|
-
external_containerFont: /* @__PURE__ */
|
|
2395
|
+
external_containerFont: /* @__PURE__ */ r(function() {
|
|
2944
2396
|
return {
|
|
2945
2397
|
fontFamily: this.external_containerFontFamily,
|
|
2946
2398
|
fontSize: this.external_containerFontSize,
|
|
2947
2399
|
fontWeight: this.external_containerFontWeight
|
|
2948
2400
|
};
|
|
2949
2401
|
}, "external_containerFont"),
|
|
2950
|
-
container_dbFont: /* @__PURE__ */
|
|
2402
|
+
container_dbFont: /* @__PURE__ */ r(function() {
|
|
2951
2403
|
return {
|
|
2952
2404
|
fontFamily: this.container_dbFontFamily,
|
|
2953
2405
|
fontSize: this.container_dbFontSize,
|
|
2954
2406
|
fontWeight: this.container_dbFontWeight
|
|
2955
2407
|
};
|
|
2956
2408
|
}, "container_dbFont"),
|
|
2957
|
-
external_container_dbFont: /* @__PURE__ */
|
|
2409
|
+
external_container_dbFont: /* @__PURE__ */ r(function() {
|
|
2958
2410
|
return {
|
|
2959
2411
|
fontFamily: this.external_container_dbFontFamily,
|
|
2960
2412
|
fontSize: this.external_container_dbFontSize,
|
|
2961
2413
|
fontWeight: this.external_container_dbFontWeight
|
|
2962
2414
|
};
|
|
2963
2415
|
}, "external_container_dbFont"),
|
|
2964
|
-
container_queueFont: /* @__PURE__ */
|
|
2416
|
+
container_queueFont: /* @__PURE__ */ r(function() {
|
|
2965
2417
|
return {
|
|
2966
2418
|
fontFamily: this.container_queueFontFamily,
|
|
2967
2419
|
fontSize: this.container_queueFontSize,
|
|
2968
2420
|
fontWeight: this.container_queueFontWeight
|
|
2969
2421
|
};
|
|
2970
2422
|
}, "container_queueFont"),
|
|
2971
|
-
external_container_queueFont: /* @__PURE__ */
|
|
2423
|
+
external_container_queueFont: /* @__PURE__ */ r(function() {
|
|
2972
2424
|
return {
|
|
2973
2425
|
fontFamily: this.external_container_queueFontFamily,
|
|
2974
2426
|
fontSize: this.external_container_queueFontSize,
|
|
2975
2427
|
fontWeight: this.external_container_queueFontWeight
|
|
2976
2428
|
};
|
|
2977
2429
|
}, "external_container_queueFont"),
|
|
2978
|
-
componentFont: /* @__PURE__ */
|
|
2430
|
+
componentFont: /* @__PURE__ */ r(function() {
|
|
2979
2431
|
return {
|
|
2980
2432
|
fontFamily: this.componentFontFamily,
|
|
2981
2433
|
fontSize: this.componentFontSize,
|
|
2982
2434
|
fontWeight: this.componentFontWeight
|
|
2983
2435
|
};
|
|
2984
2436
|
}, "componentFont"),
|
|
2985
|
-
external_componentFont: /* @__PURE__ */
|
|
2437
|
+
external_componentFont: /* @__PURE__ */ r(function() {
|
|
2986
2438
|
return {
|
|
2987
2439
|
fontFamily: this.external_componentFontFamily,
|
|
2988
2440
|
fontSize: this.external_componentFontSize,
|
|
2989
2441
|
fontWeight: this.external_componentFontWeight
|
|
2990
2442
|
};
|
|
2991
2443
|
}, "external_componentFont"),
|
|
2992
|
-
component_dbFont: /* @__PURE__ */
|
|
2444
|
+
component_dbFont: /* @__PURE__ */ r(function() {
|
|
2993
2445
|
return {
|
|
2994
2446
|
fontFamily: this.component_dbFontFamily,
|
|
2995
2447
|
fontSize: this.component_dbFontSize,
|
|
2996
2448
|
fontWeight: this.component_dbFontWeight
|
|
2997
2449
|
};
|
|
2998
2450
|
}, "component_dbFont"),
|
|
2999
|
-
external_component_dbFont: /* @__PURE__ */
|
|
2451
|
+
external_component_dbFont: /* @__PURE__ */ r(function() {
|
|
3000
2452
|
return {
|
|
3001
2453
|
fontFamily: this.external_component_dbFontFamily,
|
|
3002
2454
|
fontSize: this.external_component_dbFontSize,
|
|
3003
2455
|
fontWeight: this.external_component_dbFontWeight
|
|
3004
2456
|
};
|
|
3005
2457
|
}, "external_component_dbFont"),
|
|
3006
|
-
component_queueFont: /* @__PURE__ */
|
|
2458
|
+
component_queueFont: /* @__PURE__ */ r(function() {
|
|
3007
2459
|
return {
|
|
3008
2460
|
fontFamily: this.component_queueFontFamily,
|
|
3009
2461
|
fontSize: this.component_queueFontSize,
|
|
3010
2462
|
fontWeight: this.component_queueFontWeight
|
|
3011
2463
|
};
|
|
3012
2464
|
}, "component_queueFont"),
|
|
3013
|
-
external_component_queueFont: /* @__PURE__ */
|
|
2465
|
+
external_component_queueFont: /* @__PURE__ */ r(function() {
|
|
3014
2466
|
return {
|
|
3015
2467
|
fontFamily: this.external_component_queueFontFamily,
|
|
3016
2468
|
fontSize: this.external_component_queueFontSize,
|
|
3017
2469
|
fontWeight: this.external_component_queueFontWeight
|
|
3018
2470
|
};
|
|
3019
2471
|
}, "external_component_queueFont"),
|
|
3020
|
-
boundaryFont: /* @__PURE__ */
|
|
2472
|
+
boundaryFont: /* @__PURE__ */ r(function() {
|
|
3021
2473
|
return {
|
|
3022
2474
|
fontFamily: this.boundaryFontFamily,
|
|
3023
2475
|
fontSize: this.boundaryFontSize,
|
|
3024
2476
|
fontWeight: this.boundaryFontWeight
|
|
3025
2477
|
};
|
|
3026
2478
|
}, "boundaryFont"),
|
|
3027
|
-
messageFont: /* @__PURE__ */
|
|
2479
|
+
messageFont: /* @__PURE__ */ r(function() {
|
|
3028
2480
|
return {
|
|
3029
2481
|
fontFamily: this.messageFontFamily,
|
|
3030
2482
|
fontSize: this.messageFontSize,
|
|
@@ -3033,27 +2485,27 @@ var C = {
|
|
|
3033
2485
|
}, "messageFont")
|
|
3034
2486
|
},
|
|
3035
2487
|
pie: {
|
|
3036
|
-
...
|
|
2488
|
+
...j.pie,
|
|
3037
2489
|
useWidth: 984
|
|
3038
2490
|
},
|
|
3039
2491
|
xyChart: {
|
|
3040
|
-
...
|
|
2492
|
+
...j.xyChart,
|
|
3041
2493
|
useWidth: void 0
|
|
3042
2494
|
},
|
|
3043
2495
|
requirement: {
|
|
3044
|
-
...
|
|
2496
|
+
...j.requirement,
|
|
3045
2497
|
useWidth: void 0
|
|
3046
2498
|
},
|
|
3047
|
-
packet: { ...
|
|
3048
|
-
eventmodeling: { ...
|
|
2499
|
+
packet: { ...j.packet },
|
|
2500
|
+
eventmodeling: { ...j.eventmodeling },
|
|
3049
2501
|
treeView: {
|
|
3050
|
-
...
|
|
2502
|
+
...j.treeView,
|
|
3051
2503
|
useWidth: void 0
|
|
3052
2504
|
},
|
|
3053
|
-
radar: { ...
|
|
3054
|
-
ishikawa: { ...
|
|
2505
|
+
radar: { ...j.radar },
|
|
2506
|
+
ishikawa: { ...j.ishikawa },
|
|
3055
2507
|
sankey: {
|
|
3056
|
-
...
|
|
2508
|
+
...j.sankey,
|
|
3057
2509
|
nodeColors: void 0
|
|
3058
2510
|
},
|
|
3059
2511
|
treemap: {
|
|
@@ -3068,197 +2520,197 @@ var C = {
|
|
|
3068
2520
|
labelFontSize: 14,
|
|
3069
2521
|
valueFormat: ","
|
|
3070
2522
|
},
|
|
3071
|
-
venn: { ...
|
|
3072
|
-
},
|
|
2523
|
+
venn: { ...j.venn }
|
|
2524
|
+
}, Ne = /* @__PURE__ */ r((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
|
|
3073
2525
|
...n,
|
|
3074
2526
|
t + r,
|
|
3075
|
-
...
|
|
3076
|
-
] : [...n, t + r], []), "keyify"),
|
|
3077
|
-
if (
|
|
2527
|
+
...Ne(e[r], "")
|
|
2528
|
+
] : [...n, t + r], []), "keyify"), Pe = new Set(Ne(Me, "")), Fe = Me, M = /* @__PURE__ */ r((e) => {
|
|
2529
|
+
if (n.debug("sanitizeDirective called with", e), !(typeof e != "object" || !e)) {
|
|
3078
2530
|
if (Array.isArray(e)) {
|
|
3079
|
-
e.forEach((e) =>
|
|
2531
|
+
e.forEach((e) => M(e));
|
|
3080
2532
|
return;
|
|
3081
2533
|
}
|
|
3082
|
-
for (let
|
|
3083
|
-
if (
|
|
3084
|
-
|
|
2534
|
+
for (let t of Object.keys(e)) {
|
|
2535
|
+
if (n.debug("Checking key", t), t.startsWith("__") || t.includes("proto") || t.includes("constr") || !Pe.has(t) || e[t] == null) {
|
|
2536
|
+
n.debug("sanitize deleting key: ", t), delete e[t];
|
|
3085
2537
|
continue;
|
|
3086
2538
|
}
|
|
3087
|
-
if (typeof e[
|
|
3088
|
-
if (
|
|
2539
|
+
if (typeof e[t] == "object") {
|
|
2540
|
+
if (t === "nodeColors") {
|
|
3089
2541
|
let r = /^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i;
|
|
3090
|
-
for (let i of Object.keys(e[
|
|
3091
|
-
} else
|
|
2542
|
+
for (let i of Object.keys(e[t])) (typeof e[t][i] != "string" || !r.test(e[t][i])) && (n.debug("sanitize deleting invalid color:", i, e[t][i]), delete e[t][i]);
|
|
2543
|
+
} else n.debug("sanitizing object", t), M(e[t]);
|
|
3092
2544
|
continue;
|
|
3093
2545
|
}
|
|
3094
2546
|
for (let r of [
|
|
3095
2547
|
"themeCSS",
|
|
3096
2548
|
"fontFamily",
|
|
3097
2549
|
"altFontFamily"
|
|
3098
|
-
])
|
|
2550
|
+
]) t.includes(r) && (n.debug("sanitizing css option", t), e[t] = Ie(e[t]));
|
|
3099
2551
|
}
|
|
3100
2552
|
if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
|
|
3101
2553
|
let n = e.themeVariables[t];
|
|
3102
2554
|
n?.match && !n.match(/^[\d "#%(),.;A-Za-z]+$/) && (e.themeVariables[t] = "");
|
|
3103
2555
|
}
|
|
3104
|
-
|
|
2556
|
+
n.debug("After sanitization", e);
|
|
3105
2557
|
}
|
|
3106
|
-
}, "sanitizeDirective"),
|
|
2558
|
+
}, "sanitizeDirective"), Ie = /* @__PURE__ */ r((e) => {
|
|
3107
2559
|
let t = 0, n = 0;
|
|
3108
2560
|
for (let r of e) {
|
|
3109
2561
|
if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
|
|
3110
2562
|
r === "{" ? t++ : r === "}" && n++;
|
|
3111
2563
|
}
|
|
3112
2564
|
return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
|
|
3113
|
-
}, "sanitizeCss"),
|
|
2565
|
+
}, "sanitizeCss"), N = Object.freeze(Fe), P = /* @__PURE__ */ r((e) => !(e === !1 || [
|
|
3114
2566
|
"false",
|
|
3115
2567
|
"null",
|
|
3116
2568
|
"0"
|
|
3117
|
-
].includes(String(e).trim().toLowerCase())), "evaluate"),
|
|
3118
|
-
let n =
|
|
3119
|
-
for (let e of t)
|
|
3120
|
-
if (n =
|
|
3121
|
-
let e =
|
|
3122
|
-
n.theme && n.theme in
|
|
3123
|
-
}
|
|
3124
|
-
return
|
|
3125
|
-
}, "updateCurrentConfig"),
|
|
3126
|
-
|
|
3127
|
-
}, "saveConfigFromInitialize"),
|
|
3128
|
-
e && (["secure", ...
|
|
3129
|
-
Object.hasOwn(e,
|
|
2569
|
+
].includes(String(e).trim().toLowerCase())), "evaluate"), F = E({}, N), I, L = [], R = E({}, N), z = /* @__PURE__ */ r((e, t) => {
|
|
2570
|
+
let n = E({}, e), r = {};
|
|
2571
|
+
for (let e of t) He(e), r = E(r, e);
|
|
2572
|
+
if (n = E(n, r), r.theme && r.theme in A) {
|
|
2573
|
+
let e = E(E({}, I).themeVariables || {}, r.themeVariables);
|
|
2574
|
+
n.theme && n.theme in A && (n.themeVariables = A[n.theme].getThemeVariables(e));
|
|
2575
|
+
}
|
|
2576
|
+
return R = n, Je(R), R;
|
|
2577
|
+
}, "updateCurrentConfig"), Le = /* @__PURE__ */ r((e) => (F = E({}, N), F = E(F, e), e.theme && A[e.theme] && (F.themeVariables = A[e.theme].getThemeVariables(e.themeVariables)), z(F, L), F), "setSiteConfig"), Re = /* @__PURE__ */ r((e) => {
|
|
2578
|
+
I = E({}, e);
|
|
2579
|
+
}, "saveConfigFromInitialize"), ze = /* @__PURE__ */ r((e) => (F = E(F, e), z(F, L), F), "updateSiteConfig"), Be = /* @__PURE__ */ r(() => E({}, F), "getSiteConfig"), Ve = /* @__PURE__ */ r((e) => (Je(e), E(R, e), B()), "setConfig"), B = /* @__PURE__ */ r(() => E({}, R), "getConfig"), He = /* @__PURE__ */ r((e) => {
|
|
2580
|
+
e && (["secure", ...F.secure ?? []].forEach((t) => {
|
|
2581
|
+
Object.hasOwn(e, t) && (n.debug(`Denied attempt to modify a secure key ${t}`, e[t]), delete e[t]);
|
|
3130
2582
|
}), Object.keys(e).forEach((t) => {
|
|
3131
2583
|
t.startsWith("__") && delete e[t];
|
|
3132
2584
|
}), Object.keys(e).forEach((t) => {
|
|
3133
|
-
typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" &&
|
|
2585
|
+
typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && He(e[t]);
|
|
3134
2586
|
}));
|
|
3135
|
-
}, "sanitize"),
|
|
3136
|
-
|
|
2587
|
+
}, "sanitize"), Ue = /* @__PURE__ */ r((e) => {
|
|
2588
|
+
M(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
|
|
3137
2589
|
...e.themeVariables,
|
|
3138
2590
|
fontFamily: e.fontFamily
|
|
3139
|
-
}),
|
|
3140
|
-
}, "addDirective"),
|
|
3141
|
-
|
|
3142
|
-
}, "reset"),
|
|
2591
|
+
}), L.push(e), z(F, L);
|
|
2592
|
+
}, "addDirective"), We = /* @__PURE__ */ r((e = F) => {
|
|
2593
|
+
L = [], z(e, L);
|
|
2594
|
+
}, "reset"), Ge = {
|
|
3143
2595
|
LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",
|
|
3144
2596
|
FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
|
|
3145
|
-
},
|
|
3146
|
-
|
|
3147
|
-
}, "issueWarning"),
|
|
3148
|
-
e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) &&
|
|
3149
|
-
}, "checkConfig"),
|
|
2597
|
+
}, Ke = {}, qe = /* @__PURE__ */ r((e) => {
|
|
2598
|
+
Ke[e] || (n.warn(Ge[e]), Ke[e] = !0);
|
|
2599
|
+
}, "issueWarning"), Je = /* @__PURE__ */ r((e) => {
|
|
2600
|
+
e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && qe("LAZY_LOAD_DEPRECATED");
|
|
2601
|
+
}, "checkConfig"), Ye = /* @__PURE__ */ r(() => {
|
|
3150
2602
|
let e = {};
|
|
3151
|
-
|
|
3152
|
-
for (let t of
|
|
2603
|
+
I && (e = E(e, I));
|
|
2604
|
+
for (let t of L) e = E(e, t);
|
|
3153
2605
|
return e;
|
|
3154
|
-
}, "getUserDefinedConfig"),
|
|
2606
|
+
}, "getUserDefinedConfig"), Xe = /* @__PURE__ */ r((e) => (e.flowchart?.htmlLabels != null && qe("FLOWCHART_HTML_LABELS_DEPRECATED"), P(e.htmlLabels ?? e.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), V = /<br\s*\/?>/gi, Ze = /* @__PURE__ */ r((e) => e ? ot(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), Qe = /* @__PURE__ */ (() => {
|
|
3155
2607
|
let e = !1;
|
|
3156
2608
|
return () => {
|
|
3157
|
-
e ||= (
|
|
2609
|
+
e ||= ($e(), !0);
|
|
3158
2610
|
};
|
|
3159
2611
|
})();
|
|
3160
|
-
function
|
|
3161
|
-
let
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
}),
|
|
3165
|
-
|
|
2612
|
+
function $e() {
|
|
2613
|
+
let t = "data-temp-href-target";
|
|
2614
|
+
e.addHook("beforeSanitizeAttributes", (e) => {
|
|
2615
|
+
e.tagName === "A" && e.hasAttribute("target") && e.setAttribute(t, e.getAttribute("target") ?? "");
|
|
2616
|
+
}), e.addHook("afterSanitizeAttributes", (e) => {
|
|
2617
|
+
e.tagName === "A" && e.hasAttribute(t) && (e.setAttribute("target", e.getAttribute(t) ?? ""), e.removeAttribute(t), e.getAttribute("target") === "_blank" && e.setAttribute("rel", "noopener"));
|
|
3166
2618
|
});
|
|
3167
2619
|
}
|
|
3168
|
-
|
|
3169
|
-
var
|
|
3170
|
-
if (
|
|
2620
|
+
r($e, "setupDompurifyHooks");
|
|
2621
|
+
var et = /* @__PURE__ */ r((t) => (Qe(), e.sanitize(t)), "removeScript"), tt = /* @__PURE__ */ r((e, t) => {
|
|
2622
|
+
if (Xe(t)) {
|
|
3171
2623
|
let n = t.securityLevel;
|
|
3172
|
-
n === "antiscript" || n === "strict" || n === "sandbox" ? e =
|
|
2624
|
+
n === "antiscript" || n === "strict" || n === "sandbox" ? e = et(e) : n !== "loose" && (e = ot(e), e = e.replace(/</g, "<").replace(/>/g, ">"), e = e.replace(/=/g, "="), e = at(e));
|
|
3173
2625
|
}
|
|
3174
2626
|
return e;
|
|
3175
|
-
}, "sanitizeMore"),
|
|
2627
|
+
}, "sanitizeMore"), H = /* @__PURE__ */ r((t, n) => t && (t = n.dompurifyConfig ? e.sanitize(tt(t, n), n.dompurifyConfig).toString() : e.sanitize(tt(t, n), { FORBID_TAGS: ["style"] }).toString(), t), "sanitizeText"), nt = /* @__PURE__ */ r((e, t) => typeof e == "string" ? H(e, t) : e.flat().map((e) => H(e, t)), "sanitizeTextOrArray"), rt = /* @__PURE__ */ r((e) => V.test(e), "hasBreaks"), it = /* @__PURE__ */ r((e) => e.split(V), "splitBreaks"), at = /* @__PURE__ */ r((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), ot = /* @__PURE__ */ r((e) => e.replace(V, "#br#"), "breakToPlaceholder"), st = /* @__PURE__ */ r((e) => {
|
|
3176
2628
|
let t = "";
|
|
3177
2629
|
return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
|
|
3178
|
-
}, "getUrl"),
|
|
2630
|
+
}, "getUrl"), ct = /* @__PURE__ */ r(function(...e) {
|
|
3179
2631
|
let t = e.filter((e) => !isNaN(e));
|
|
3180
2632
|
return Math.max(...t);
|
|
3181
|
-
}, "getMax"),
|
|
2633
|
+
}, "getMax"), lt = /* @__PURE__ */ r(function(...e) {
|
|
3182
2634
|
let t = e.filter((e) => !isNaN(e));
|
|
3183
2635
|
return Math.min(...t);
|
|
3184
|
-
}, "getMin"),
|
|
2636
|
+
}, "getMin"), ut = /* @__PURE__ */ r(function(e) {
|
|
3185
2637
|
let t = e.split(/(,)/), n = [];
|
|
3186
2638
|
for (let e = 0; e < t.length; e++) {
|
|
3187
2639
|
let r = t[e];
|
|
3188
2640
|
if (r === "," && e > 0 && e + 1 < t.length) {
|
|
3189
2641
|
let i = t[e - 1], a = t[e + 1];
|
|
3190
|
-
|
|
2642
|
+
dt(i, a) && (r = i + "," + a, e++, n.pop());
|
|
3191
2643
|
}
|
|
3192
|
-
n.push(
|
|
2644
|
+
n.push(ft(r));
|
|
3193
2645
|
}
|
|
3194
2646
|
return n.join("");
|
|
3195
|
-
}, "parseGenericTypes"),
|
|
3196
|
-
let n =
|
|
2647
|
+
}, "parseGenericTypes"), U = /* @__PURE__ */ r((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), dt = /* @__PURE__ */ r((e, t) => {
|
|
2648
|
+
let n = U(e, "~"), r = U(t, "~");
|
|
3197
2649
|
return n === 1 && r === 1;
|
|
3198
|
-
}, "shouldCombineSets"),
|
|
3199
|
-
let t =
|
|
2650
|
+
}, "shouldCombineSets"), ft = /* @__PURE__ */ r((e) => {
|
|
2651
|
+
let t = U(e, "~"), n = !1;
|
|
3200
2652
|
if (t <= 1) return e;
|
|
3201
2653
|
t % 2 != 0 && e.startsWith("~") && (e = e.substring(1), n = !0);
|
|
3202
2654
|
let r = [...e], i = r.indexOf("~"), a = r.lastIndexOf("~");
|
|
3203
2655
|
for (; i !== -1 && a !== -1 && i !== a;) r[i] = "<", r[a] = ">", i = r.indexOf("~"), a = r.lastIndexOf("~");
|
|
3204
2656
|
return n && r.unshift("~"), r.join("");
|
|
3205
|
-
}, "processSet"),
|
|
2657
|
+
}, "processSet"), pt = /* @__PURE__ */ r(() => window.MathMLElement !== void 0, "isMathMLSupported"), W = /\$\$(.*)\$\$/g, G = /* @__PURE__ */ r((e) => (e.match(W)?.length ?? 0) > 0, "hasKatex"), mt = /* @__PURE__ */ r(async (e, t) => {
|
|
3206
2658
|
let n = document.createElement("div");
|
|
3207
|
-
n.innerHTML = await
|
|
2659
|
+
n.innerHTML = await gt(e, t), n.id = "katex-temp", n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", n);
|
|
3208
2660
|
let r = {
|
|
3209
2661
|
width: n.clientWidth,
|
|
3210
2662
|
height: n.clientHeight
|
|
3211
2663
|
};
|
|
3212
2664
|
return n.remove(), r;
|
|
3213
|
-
}, "calculateMathMLDimensions"),
|
|
3214
|
-
if (!
|
|
3215
|
-
if (!(
|
|
2665
|
+
}, "calculateMathMLDimensions"), ht = /* @__PURE__ */ r(async (e, t) => {
|
|
2666
|
+
if (!G(e)) return e;
|
|
2667
|
+
if (!(pt() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(W, "MathML is unsupported in this environment.");
|
|
3216
2668
|
{
|
|
3217
|
-
let { default: n } = await import("./katex-
|
|
3218
|
-
return e.split(
|
|
2669
|
+
let { default: n } = await import("./katex-D-2KeLwt.js"), r = t.forceLegacyMathML || !pt() && t.legacyMathML ? "htmlAndMathml" : "mathml";
|
|
2670
|
+
return e.split(V).map((e) => G(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(W, (e, t) => n.renderToString(t, {
|
|
3219
2671
|
throwOnError: !0,
|
|
3220
2672
|
displayMode: !0,
|
|
3221
2673
|
output: r
|
|
3222
2674
|
}).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
|
|
3223
2675
|
}
|
|
3224
|
-
return e.replace(
|
|
3225
|
-
}, "renderKatexUnsanitized"),
|
|
3226
|
-
getRows:
|
|
3227
|
-
sanitizeText:
|
|
3228
|
-
sanitizeTextOrArray:
|
|
3229
|
-
hasBreaks:
|
|
3230
|
-
splitBreaks:
|
|
3231
|
-
lineBreakRegex:
|
|
3232
|
-
removeScript:
|
|
3233
|
-
getUrl:
|
|
3234
|
-
evaluate:
|
|
3235
|
-
getMax:
|
|
3236
|
-
getMin:
|
|
3237
|
-
},
|
|
2676
|
+
return e.replace(W, "Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.");
|
|
2677
|
+
}, "renderKatexUnsanitized"), gt = /* @__PURE__ */ r(async (e, t) => H(await ht(e, t), t), "renderKatexSanitized"), _t = {
|
|
2678
|
+
getRows: Ze,
|
|
2679
|
+
sanitizeText: H,
|
|
2680
|
+
sanitizeTextOrArray: nt,
|
|
2681
|
+
hasBreaks: rt,
|
|
2682
|
+
splitBreaks: it,
|
|
2683
|
+
lineBreakRegex: V,
|
|
2684
|
+
removeScript: et,
|
|
2685
|
+
getUrl: st,
|
|
2686
|
+
evaluate: P,
|
|
2687
|
+
getMax: ct,
|
|
2688
|
+
getMin: lt
|
|
2689
|
+
}, vt = /* @__PURE__ */ r(function(e, t) {
|
|
3238
2690
|
for (let n of t) e.attr(n[0], n[1]);
|
|
3239
|
-
}, "d3Attrs"),
|
|
2691
|
+
}, "d3Attrs"), yt = /* @__PURE__ */ r(function(e, t, n) {
|
|
3240
2692
|
let r = /* @__PURE__ */ new Map();
|
|
3241
2693
|
return n ? (r.set("width", "100%"), r.set("style", `max-width: ${t}px;`)) : (r.set("height", e), r.set("width", t)), r;
|
|
3242
|
-
}, "calculateSvgSizeAttrs"),
|
|
3243
|
-
|
|
3244
|
-
}, "configureSvgSize"),
|
|
3245
|
-
let a =
|
|
3246
|
-
|
|
2694
|
+
}, "calculateSvgSizeAttrs"), bt = /* @__PURE__ */ r(function(e, t, n, r) {
|
|
2695
|
+
vt(e, yt(t, n, r));
|
|
2696
|
+
}, "configureSvgSize"), xt = /* @__PURE__ */ r(function(e, t, r, i) {
|
|
2697
|
+
let a = t.node().getBBox(), o = a.width, s = a.height;
|
|
2698
|
+
n.info(`SVG bounds: ${o}x${s}`, a);
|
|
3247
2699
|
let c = 0, l = 0;
|
|
3248
|
-
|
|
2700
|
+
n.info(`Graph bounds: ${c}x${l}`, e), c = o + r * 2, l = s + r * 2, n.info(`Calculated bounds: ${c}x${l}`), bt(t, l, c, i);
|
|
3249
2701
|
let u = `${a.x - r} ${a.y - r} ${a.width + 2 * r} ${a.height + 2 * r}`;
|
|
3250
|
-
|
|
3251
|
-
}, "setupGraphViewbox"),
|
|
3252
|
-
function
|
|
2702
|
+
t.attr("viewBox", u);
|
|
2703
|
+
}, "setupGraphViewbox"), K = {};
|
|
2704
|
+
function St(e) {
|
|
3253
2705
|
return [...e.cssRules].map((e) => e.cssText).join("\n");
|
|
3254
2706
|
}
|
|
3255
|
-
|
|
3256
|
-
var
|
|
2707
|
+
r(St, "cssStyleSheetToString");
|
|
2708
|
+
var Ct = /* @__PURE__ */ r((e, t, r, i) => {
|
|
3257
2709
|
let a = "";
|
|
3258
|
-
return e in
|
|
2710
|
+
return e in K && K[e] ? a = K[e]({
|
|
3259
2711
|
...r,
|
|
3260
2712
|
svgId: i
|
|
3261
|
-
}) :
|
|
2713
|
+
}) : n.warn(`No theme found for ${e}`), ` & {
|
|
3262
2714
|
font-family: ${r.fontFamily};
|
|
3263
2715
|
font-size: ${r.fontSize};
|
|
3264
2716
|
fill: ${r.textColor}
|
|
@@ -3375,40 +2827,40 @@ var bn = /* @__PURE__ */ n((e, n, r, i) => {
|
|
|
3375
2827
|
filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
|
|
3376
2828
|
}
|
|
3377
2829
|
|
|
3378
|
-
${
|
|
2830
|
+
${t}
|
|
3379
2831
|
`;
|
|
3380
|
-
}, "getStyles"),
|
|
3381
|
-
t !== void 0 && (
|
|
3382
|
-
}, "addStylesForDiagram"),
|
|
3383
|
-
|
|
3384
|
-
clear: () =>
|
|
3385
|
-
getAccDescription: () =>
|
|
3386
|
-
getAccTitle: () =>
|
|
3387
|
-
getDiagramTitle: () =>
|
|
3388
|
-
setAccDescription: () =>
|
|
3389
|
-
setAccTitle: () =>
|
|
3390
|
-
setDiagramTitle: () =>
|
|
2832
|
+
}, "getStyles"), wt = /* @__PURE__ */ r((e, t) => {
|
|
2833
|
+
t !== void 0 && (K[e] = t);
|
|
2834
|
+
}, "addStylesForDiagram"), Tt = Ct, q = {};
|
|
2835
|
+
i(q, {
|
|
2836
|
+
clear: () => Et,
|
|
2837
|
+
getAccDescription: () => At,
|
|
2838
|
+
getAccTitle: () => Ot,
|
|
2839
|
+
getDiagramTitle: () => Mt,
|
|
2840
|
+
setAccDescription: () => kt,
|
|
2841
|
+
setAccTitle: () => Dt,
|
|
2842
|
+
setDiagramTitle: () => jt
|
|
3391
2843
|
});
|
|
3392
|
-
var
|
|
3393
|
-
|
|
3394
|
-
}, "clear"),
|
|
3395
|
-
|
|
3396
|
-
}, "setAccTitle"),
|
|
3397
|
-
|
|
3398
|
-
}, "setAccDescription"),
|
|
3399
|
-
|
|
3400
|
-
}, "setDiagramTitle"),
|
|
3401
|
-
|
|
3402
|
-
}, "registerDiagram"),
|
|
3403
|
-
if (e in
|
|
3404
|
-
throw new
|
|
3405
|
-
}, "getDiagram"),
|
|
2844
|
+
var J = "", Y = "", X = "", Z = /* @__PURE__ */ r((e) => H(e, B()), "sanitizeText"), Et = /* @__PURE__ */ r(() => {
|
|
2845
|
+
J = "", X = "", Y = "";
|
|
2846
|
+
}, "clear"), Dt = /* @__PURE__ */ r((e) => {
|
|
2847
|
+
J = Z(e).replace(/^\s+/g, "");
|
|
2848
|
+
}, "setAccTitle"), Ot = /* @__PURE__ */ r(() => J, "getAccTitle"), kt = /* @__PURE__ */ r((e) => {
|
|
2849
|
+
X = Z(e).replace(/\n\s+/g, "\n");
|
|
2850
|
+
}, "setAccDescription"), At = /* @__PURE__ */ r(() => X, "getAccDescription"), jt = /* @__PURE__ */ r((e) => {
|
|
2851
|
+
Y = Z(e);
|
|
2852
|
+
}, "setDiagramTitle"), Mt = /* @__PURE__ */ r(() => Y, "getDiagramTitle"), Nt = n, Pt = t, Q = B, Ft = Ve, It = N, Lt = /* @__PURE__ */ r((e) => H(e, Q()), "sanitizeText"), Rt = xt, zt = /* @__PURE__ */ r(() => q, "getCommonDb"), $ = {}, Bt = /* @__PURE__ */ r((e, t, n) => {
|
|
2853
|
+
$[e] && Nt.warn(`Diagram with id ${e} already registered. Overwriting.`), $[e] = t, n && le(e, n), wt(e, t.styles), t.injectUtils?.(Nt, Pt, Q, Lt, Rt, zt(), () => {});
|
|
2854
|
+
}, "registerDiagram"), Vt = /* @__PURE__ */ r((e) => {
|
|
2855
|
+
if (e in $) return $[e];
|
|
2856
|
+
throw new Ht(e);
|
|
2857
|
+
}, "getDiagram"), Ht = class extends Error {
|
|
3406
2858
|
static {
|
|
3407
|
-
|
|
2859
|
+
r(this, "DiagramNotFoundError");
|
|
3408
2860
|
}
|
|
3409
2861
|
constructor(e) {
|
|
3410
2862
|
super(`Diagram ${e} not found.`);
|
|
3411
2863
|
}
|
|
3412
2864
|
};
|
|
3413
2865
|
//#endregion
|
|
3414
|
-
export {
|
|
2866
|
+
export { x as $, G as A, Lt as B, ue as C, ge as D, Be as E, gt as F, Ft as G, kt as H, We as I, xt as J, jt as K, Ie as L, ut as M, Bt as N, st as O, ce as P, ze as Q, M as R, Vt as S, Xe as T, Dt as U, Re as V, Ve as W, Tt as X, Rt as Y, A as Z, re as _, Et as a, o as at, B as b, bt as c, It as d, b as et, Fe as f, P as g, ie as h, mt as i, h as it, V as j, Ye as k, St as l, w as m, Ue as n, v as nt, q as o, se as p, Le as q, E as r, _ as rt, _t as s, oe as t, y as tt, N as u, At as v, Mt as w, Q as x, Ot as y, H as z };
|