@loopstack/loopstack-studio 0.25.1 → 0.26.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/_virtual/rolldown_runtime.js +20 -0
- package/dist/api/auth.js +2 -4
- package/dist/api/client.js +7 -9
- package/dist/api/config.js +2 -4
- package/dist/api/dashboard.js +2 -4
- package/dist/api/documents.js +2 -4
- package/dist/api/environments.js +4 -0
- package/dist/api/index.js +23 -21
- package/dist/api/processor.js +2 -4
- package/dist/api/secrets.js +2 -4
- package/dist/api/workflows.js +2 -4
- package/dist/api/workspaces.js +2 -4
- package/dist/app/EnvironmentEmbedRoot.js +41 -24
- package/dist/components/ai-elements/code-block.js +71 -53
- package/dist/components/ai-elements/message.js +82 -41
- package/dist/components/ai-elements/prompt-input.js +253 -162
- package/dist/components/ai-elements/reasoning.js +116 -78
- package/dist/components/ai-elements/shimmer.js +35 -23
- package/dist/components/ai-elements/sources.js +58 -29
- package/dist/components/data-table/ConfirmDialog.js +30 -14
- package/dist/components/data-table/DataList.js +200 -138
- package/dist/components/data-table/DataTable.js +236 -168
- package/dist/components/data-table/DataTableBatchAction.js +27 -18
- package/dist/components/data-table/DataTableFilters.js +78 -53
- package/dist/components/data-table/DataTablePagination.js +104 -72
- package/dist/components/data-table/DataTableToolbar.js +65 -53
- package/dist/components/dynamic-form/ArrayController.js +103 -85
- package/dist/components/dynamic-form/CodeContent.js +36 -28
- package/dist/components/dynamic-form/Form.js +56 -43
- package/dist/components/dynamic-form/FormBody.js +10 -12
- package/dist/components/dynamic-form/FormElement.js +41 -31
- package/dist/components/dynamic-form/FormElementHeader.js +20 -12
- package/dist/components/dynamic-form/InputController.js +38 -36
- package/dist/components/dynamic-form/MarkdownContent.js +74 -53
- package/dist/components/dynamic-form/MermaidDiagram.js +24 -22
- package/dist/components/dynamic-form/ObjectController.js +32 -24
- package/dist/components/dynamic-form/fields/BaseFieldWrapper.js +47 -35
- package/dist/components/dynamic-form/fields/CheckboxField.js +48 -39
- package/dist/components/dynamic-form/fields/CodeViewField.js +50 -42
- package/dist/components/dynamic-form/fields/InputField.js +90 -62
- package/dist/components/dynamic-form/fields/MarkdownViewField.js +19 -16
- package/dist/components/dynamic-form/fields/RadioField.js +62 -46
- package/dist/components/dynamic-form/fields/SelectField.js +58 -40
- package/dist/components/dynamic-form/fields/SliderField.js +100 -94
- package/dist/components/dynamic-form/fields/SwitchField.js +61 -42
- package/dist/components/dynamic-form/fields/TextareaField.js +72 -53
- package/dist/components/dynamic-form/fields/utils/text-validation-utils.js +2 -4
- package/dist/components/dynamic-form/hooks/useArrayDefaultValue.js +5 -6
- package/dist/components/dynamic-form/hooks/useFieldConfig.js +20 -19
- package/dist/components/dynamic-form/hooks/useMergeParentKey.js +2 -4
- package/dist/components/dynamic-form/hooks/useSortPropertyNames.js +2 -4
- package/dist/components/feedback/ErrorAlert.js +17 -11
- package/dist/components/feedback/ErrorBoundary.js +14 -16
- package/dist/components/feedback/ErrorSnackbar.js +30 -13
- package/dist/components/feedback/LoadingCentered.js +28 -15
- package/dist/components/feedback/Snackbar.js +44 -43
- package/dist/components/feedback/index.js +5 -5
- package/dist/components/index.js +47 -47
- package/dist/components/layout/MainLayout.js +25 -17
- package/dist/components/layout/StudioSidebar.js +203 -140
- package/dist/components/lists/CustomListView.js +74 -49
- package/dist/components/lists/ListView.js +102 -66
- package/dist/components/loopstack-elements/link.js +104 -65
- package/dist/components/loopstack-elements/tool.js +142 -70
- package/dist/components/messages/CompletionMessagePaper.js +85 -53
- package/dist/components/page/PageBreadcrumbs.js +83 -64
- package/dist/components/ui/DiscordLogo.js +22 -16
- package/dist/components/ui/GoogleLogo.js +44 -40
- package/dist/components/ui/accordion.js +52 -31
- package/dist/components/ui/alert-dialog.js +109 -59
- package/dist/components/ui/alert.js +36 -22
- package/dist/components/ui/avatar.js +35 -21
- package/dist/components/ui/badge.js +17 -13
- package/dist/components/ui/breadcrumb.js +82 -46
- package/dist/components/ui/button-group.js +5 -5
- package/dist/components/ui/button.js +21 -17
- package/dist/components/ui/card.js +74 -40
- package/dist/components/ui/checkbox.js +23 -17
- package/dist/components/ui/collapsible.js +25 -17
- package/dist/components/ui/command.js +2 -1
- package/dist/components/ui/context-menu.js +52 -32
- package/dist/components/ui/dialog.js +107 -62
- package/dist/components/ui/drawer.js +99 -54
- package/dist/components/ui/dropdown-menu.js +159 -91
- package/dist/components/ui/hover-card.js +2 -1
- package/dist/components/ui/input-group.js +56 -36
- package/dist/components/ui/input.js +15 -11
- package/dist/components/ui/label.js +15 -11
- package/dist/components/ui/popover.js +38 -25
- package/dist/components/ui/radio-group.js +33 -22
- package/dist/components/ui/scroll-area.js +43 -28
- package/dist/components/ui/select.js +134 -73
- package/dist/components/ui/separator.js +17 -13
- package/dist/components/ui/sheet.js +105 -60
- package/dist/components/ui/sidebar.js +451 -269
- package/dist/components/ui/skeleton.js +14 -10
- package/dist/components/ui/slider.js +41 -32
- package/dist/components/ui/switch.js +21 -15
- package/dist/components/ui/table.js +85 -46
- package/dist/components/ui/tabs.js +45 -26
- package/dist/components/ui/textarea.js +14 -10
- package/dist/components/ui/tooltip.js +41 -26
- package/dist/components/ui-widgets/UiActions.js +37 -30
- package/dist/components/ui-widgets/UiWidget.js +46 -34
- package/dist/components/ui-widgets/widgets/AiPromptInput.js +42 -28
- package/dist/components/ui-widgets/widgets/ButtonFullWidth.js +21 -16
- package/dist/components/ui-widgets/widgets/SandboxRun.js +28 -19
- package/dist/components/ui-widgets/widgets/SubmitButton.js +20 -15
- package/dist/events/api-client-events.js +2 -4
- package/dist/events/sse-client-events.js +2 -4
- package/dist/features/code-explorer/CodeExplorer.js +2 -1
- package/dist/features/code-explorer/components/CodeExplorerTree.js +3 -2
- package/dist/features/code-explorer/components/CodeExplorerTreeNode.js +29 -31
- package/dist/features/code-explorer/components/FileContentViewer.js +148 -108
- package/dist/features/code-explorer/components/FileTabsBar.js +2 -1
- package/dist/features/code-explorer/components/FileTabsBarBase.js +169 -134
- package/dist/features/code-explorer/index.js +1 -1
- package/dist/features/code-explorer/providers/CodeExplorerProvider.js +4 -4
- package/dist/features/code-explorer/utils/fileIcons.js +39 -41
- package/dist/features/dashboard/Dashboard.js +121 -79
- package/dist/features/dashboard/RunItem.js +70 -50
- package/dist/features/dashboard/RunList.js +28 -17
- package/dist/features/debug/components/ConfigFlowViewer.js +67 -49
- package/dist/features/debug/components/WorkflowDebugHeader.js +46 -30
- package/dist/features/debug/components/WorkflowDebugLegend.js +68 -56
- package/dist/features/debug/components/WorkflowFlowViewer.js +96 -76
- package/dist/features/debug/components/workflow-flow/StateNode.js +102 -73
- package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +40 -35
- package/dist/features/debug/components/workflow-flow/WorkflowTransitionEdge.js +94 -61
- package/dist/features/debug/index.js +3 -3
- package/dist/features/debug/lib/edge-paths.js +31 -33
- package/dist/features/debug/lib/flow-utils.js +145 -147
- package/dist/features/documents/DocumentRenderer.js +73 -68
- package/dist/features/documents/components/DocumentItem.js +24 -21
- package/dist/features/documents/components/DocumentList.js +45 -39
- package/dist/features/documents/components/DocumentMetadataPills.js +59 -44
- package/dist/features/documents/document-details/DocumentDetails.js +413 -298
- package/dist/features/documents/document-details/PromptDetails.js +142 -105
- package/dist/features/documents/index.js +4 -4
- package/dist/features/documents/renderers/AiMessage.js +48 -39
- package/dist/features/documents/renderers/AiMessageContent.js +164 -108
- package/dist/features/documents/renderers/ChoicesRenderer.js +89 -77
- package/dist/features/documents/renderers/ClaudeMessage.js +91 -74
- package/dist/features/documents/renderers/ConfirmPromptRenderer.js +53 -44
- package/dist/features/documents/renderers/DocumentDebugRenderer.js +30 -26
- package/dist/features/documents/renderers/DocumentFormRenderer.js +85 -69
- package/dist/features/documents/renderers/DocumentMessageRenderer.js +9 -10
- package/dist/features/documents/renderers/ErrorMessageRenderer.js +13 -11
- package/dist/features/documents/renderers/LinkMessageRenderer.js +14 -15
- package/dist/features/documents/renderers/MarkdownMessageRenderer.js +10 -8
- package/dist/features/documents/renderers/PlainMessageRenderer.js +9 -7
- package/dist/features/documents/renderers/TextPromptRenderer.js +54 -45
- package/dist/features/documents/renderers/useDocumentTransition.js +33 -30
- package/dist/features/feature-registry/FeatureRegistryProvider.js +17 -0
- package/dist/features/feature-registry/index.js +1 -0
- package/dist/features/file-explorer/api/files.js +7 -0
- package/dist/features/file-explorer/components/FileExplorerPanel.js +95 -0
- package/dist/features/file-explorer/components/FileTabsBar.js +18 -0
- package/dist/features/file-explorer/components/FileTree.js +90 -0
- package/dist/features/file-explorer/file-explorer-feature.js +12 -0
- package/dist/features/file-explorer/hooks/useFileExplorer.js +44 -0
- package/dist/features/file-explorer/index.js +2 -0
- package/dist/features/file-explorer/providers/FileExplorerProvider.js +112 -0
- package/dist/features/health/LocalHealthCheck.js +53 -54
- package/dist/features/health/index.js +1 -1
- package/dist/features/oauth/OAuthCallbackPage.js +2 -2
- package/dist/features/oauth/OAuthPromptRenderer.js +235 -156
- package/dist/features/oauth/index.js +2 -2
- package/dist/features/oauth/useOAuthPopup.js +71 -52
- package/dist/features/runs/Runs.js +187 -145
- package/dist/features/secrets/components/WorkbenchSecretsPanel.js +178 -0
- package/dist/features/secrets/index.js +1 -0
- package/dist/features/secrets/renderers/SecretInputRenderer.js +87 -0
- package/dist/features/secrets/secrets-feature.js +14 -0
- package/dist/features/workbench/Workbench.js +50 -74
- package/dist/features/workbench/WorkflowItem.js +68 -49
- package/dist/features/workbench/WorkflowList.js +127 -49
- package/dist/features/workbench/components/NewRunDialog.js +309 -212
- package/dist/features/workbench/components/SidebarPanel.js +155 -0
- package/dist/features/workbench/components/WorkbenchEnvironmentPanel.js +82 -0
- package/dist/features/workbench/components/WorkbenchIconSidebar.js +137 -51
- package/dist/features/workbench/components/WorkbenchPreviewPanel.js +134 -123
- package/dist/features/workbench/components/WorkbenchRunsPanel.js +32 -0
- package/dist/features/workbench/components/WorkbenchSettingsModal.js +60 -49
- package/dist/features/workbench/components/WorkbenchSidebarShell.js +80 -0
- package/dist/features/workbench/components/WorkflowForms.js +23 -17
- package/dist/features/workbench/components/WorkflowHistoryItem.js +122 -96
- package/dist/features/workbench/components/WorkflowHistoryList.js +54 -31
- package/dist/features/workbench/components/buttons/WorkflowButtons.js +99 -70
- package/dist/features/workbench/hooks/useAutoScrollBottom.js +25 -21
- package/dist/features/workbench/hooks/useScrollToListItem.js +21 -20
- package/dist/features/workbench/hooks/useWorkflowData.js +44 -31
- package/dist/features/workbench/hooks/useWorkflowListState.js +12 -13
- package/dist/features/workbench/index.js +8 -7
- package/dist/features/workbench/providers/ScrollProvider.js +19 -15
- package/dist/features/workbench/providers/WorkbenchLayoutProvider.js +75 -78
- package/dist/features/workspaces/Workspaces.js +226 -161
- package/dist/features/workspaces/components/CreateWorkspace.js +194 -137
- package/dist/features/workspaces/components/EnvironmentSlotSelector.js +75 -60
- package/dist/features/workspaces/components/ExecutionTimeline.js +185 -143
- package/dist/features/workspaces/components/NewWorkflowRunDialog.js +26 -18
- package/dist/features/workspaces/components/WorkflowRunForm.js +133 -85
- package/dist/features/workspaces/components/WorkspaceHomePage.js +81 -60
- package/dist/features/workspaces/components/workflow-form/ArgumentsView.js +69 -52
- package/dist/features/workspaces/components/workflow-form/HeaderSection.js +41 -27
- package/dist/features/workspaces/components/workflow-form/SelectionView.js +103 -64
- package/dist/features/workspaces/index.js +3 -3
- package/dist/frontend/studio/node_modules/@dagrejs/dagre/dist/dagre.esm.js +1968 -0
- package/dist/hooks/index.js +6 -6
- package/dist/hooks/query-keys.js +31 -33
- package/dist/hooks/use-mobile.js +11 -12
- package/dist/hooks/useApi.js +14 -16
- package/dist/hooks/useAuth.js +53 -38
- package/dist/hooks/useConfig.js +37 -26
- package/dist/hooks/useDashboard.js +15 -12
- package/dist/hooks/useDebounce.js +11 -12
- package/dist/hooks/useDocuments.js +35 -23
- package/dist/hooks/useEnvironmentPreviewUrl.js +13 -0
- package/dist/hooks/useEnvironments.js +8 -0
- package/dist/hooks/useFiles.js +2 -1
- package/dist/hooks/useProcessor.js +17 -14
- package/dist/hooks/useSecrets.js +64 -45
- package/dist/hooks/useWorkflows.js +163 -109
- package/dist/hooks/useWorkspaces.js +125 -83
- package/dist/index.d.ts +1395 -0
- package/dist/index.js +87 -80
- package/dist/lib/requireParam.js +2 -4
- package/dist/lib/utils.js +5 -7
- package/dist/loopstack-studio.css +1 -1
- package/dist/node_modules/@braintree/sanitize-url/dist/constants.js +4 -6
- package/dist/node_modules/@braintree/sanitize-url/dist/index.js +6 -8
- package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +17 -19
- package/dist/node_modules/@chevrotain/gast/lib/src/model.js +71 -73
- package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +13 -16
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +2 -2
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +2 -4
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +34 -36
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +110 -138
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +11 -13
- package/dist/node_modules/@chevrotain/utils/lib/src/print.js +3 -5
- package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +2 -4
- package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +2 -4
- package/dist/node_modules/@iconify/utils/lib/customisations/defaults.js +6 -8
- package/dist/node_modules/@iconify/utils/lib/icon/defaults.js +8 -10
- package/dist/node_modules/@iconify/utils/lib/icon/merge.js +6 -8
- package/dist/node_modules/@iconify/utils/lib/icon/name.js +6 -8
- package/dist/node_modules/@iconify/utils/lib/icon/transformations.js +2 -4
- package/dist/node_modules/@iconify/utils/lib/icon-set/get-icon.js +10 -12
- package/dist/node_modules/@iconify/utils/lib/icon-set/tree.js +2 -4
- package/dist/node_modules/@iconify/utils/lib/svg/build.js +18 -20
- package/dist/node_modules/@iconify/utils/lib/svg/defs.js +6 -8
- package/dist/node_modules/@iconify/utils/lib/svg/html.js +2 -4
- package/dist/node_modules/@iconify/utils/lib/svg/id.js +8 -10
- package/dist/node_modules/@iconify/utils/lib/svg/size.js +5 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-YZFGNWBL.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2KRD3SAO.js +17 -20
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-67CJDMHE.js +17 -20
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7N4EOEYR.js +23 -28
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +21 -26
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +17 -20
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOC6F5B3.js +17 -20
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +425 -436
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.js +17 -20
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js +38 -45
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +22 -27
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-7Q5UKJZL.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-SZITEDCU.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +52 -56
- package/dist/node_modules/@shikijs/core/dist/index.js +575 -577
- package/dist/node_modules/@shikijs/engine-oniguruma/dist/index.js +157 -159
- package/dist/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.js +2 -4
- package/dist/node_modules/@shikijs/langs/dist/abap.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/actionscript-3.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/ada.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/angular-expression.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/angular-html.js +13 -15
- package/dist/node_modules/@shikijs/langs/dist/angular-inline-style.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/angular-inline-template.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/angular-let-declaration.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/angular-template-blocks.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/angular-template.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/angular-ts.js +15 -17
- package/dist/node_modules/@shikijs/langs/dist/apache.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/apex.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/apl.js +13 -15
- package/dist/node_modules/@shikijs/langs/dist/applescript.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/ara.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/asciidoc.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/asm.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/astro.js +15 -17
- package/dist/node_modules/@shikijs/langs/dist/awk.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/ballerina.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/bat.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/beancount.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/berry.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/bibtex.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/bicep.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/bird2.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/blade.js +17 -19
- package/dist/node_modules/@shikijs/langs/dist/bsl.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/c.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/c3.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/cadence.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/cairo.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/clarity.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/clojure.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/cmake.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/cobol.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/codeowners.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/codeql.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/coffee.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/common-lisp.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/coq.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/cpp-macro.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/cpp.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/crystal.js +15 -17
- package/dist/node_modules/@shikijs/langs/dist/csharp.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/css.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/csv.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/cue.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/cypher.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/d.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/dart.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/dax.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/desktop.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/diff.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/docker.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/dotenv.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/dream-maker.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/edge.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/elixir.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/elm.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/emacs-lisp.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/erb.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/erlang.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/es-tag-css.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/es-tag-glsl.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/es-tag-html.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/es-tag-sql.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/es-tag-xml.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/fennel.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/fish.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/fluent.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/fortran-fixed-form.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/fortran-free-form.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/fsharp.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/gdresource.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/gdscript.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/gdshader.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/genie.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/gherkin.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/git-commit.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/git-rebase.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/gleam.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/glimmer-js.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/glimmer-ts.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/glsl.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/gn.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/gnuplot.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/go.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/graphql.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/groovy.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/hack.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/haml.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/handlebars.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/haskell.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/haxe.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/hcl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/hjson.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/hlsl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/html-derivative.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/html.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/http.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/hurl.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/hxml.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/hy.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/imba.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/ini.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/java.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/javascript.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/jinja-html.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/jinja.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/jison.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/json.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/json5.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/jsonc.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/jsonl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/jsonnet.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/jssm.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/jsx.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/julia.js +13 -15
- package/dist/node_modules/@shikijs/langs/dist/just.js +15 -17
- package/dist/node_modules/@shikijs/langs/dist/kdl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/kotlin.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/kusto.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/latex.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/lean.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/less.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/liquid.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/llvm.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/log.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/logo.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/lua.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/luau.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/make.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/markdown-nix.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/markdown-vue.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/markdown.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/marko.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/matlab.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/mdc.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/mdx.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/mermaid.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/mipsasm.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/mojo.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/moonbit.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/move.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/narrat.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/nextflow-groovy.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/nextflow.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/nginx.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/nim.js +17 -19
- package/dist/node_modules/@shikijs/langs/dist/nix.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/nushell.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/objective-c.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/objective-cpp.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/ocaml.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/odin.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/openscad.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/pascal.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/perl.js +13 -15
- package/dist/node_modules/@shikijs/langs/dist/php.js +15 -17
- package/dist/node_modules/@shikijs/langs/dist/pkl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/plsql.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/po.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/polar.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/postcss.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/powerquery.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/powershell.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/prisma.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/prolog.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/proto.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/pug.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/puppet.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/purescript.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/python.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/qml.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/qmldir.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/qss.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/r.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/racket.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/raku.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/razor.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/reg.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/regexp.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/rel.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/riscv.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/ron.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/rosmsg.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/rst.js +19 -21
- package/dist/node_modules/@shikijs/langs/dist/ruby.js +27 -29
- package/dist/node_modules/@shikijs/langs/dist/rust.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/sas.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/sass.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/scala.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/scheme.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/scss.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/sdbl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/shaderlab.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/shellscript.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/shellsession.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/smalltalk.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/solidity.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/soy.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/sparql.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/splunk.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/sql.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/ssh-config.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/stata.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/stylus.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/surrealql.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/svelte.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/swift.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/system-verilog.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/systemd.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/talonscript.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/tasl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/tcl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/templ.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/terraform.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/tex.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/toml.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/ts-tags.js +15 -17
- package/dist/node_modules/@shikijs/langs/dist/tsv.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/tsx.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/turtle.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/twig.js +15 -17
- package/dist/node_modules/@shikijs/langs/dist/typescript.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/typespec.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/typst.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/v.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/vala.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/vb.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/verilog.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/vhdl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/viml.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/vue-directives.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/vue-html.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/vue-interpolations.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/vue-vine.js +15 -17
- package/dist/node_modules/@shikijs/langs/dist/vue.js +23 -25
- package/dist/node_modules/@shikijs/langs/dist/vyper.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/wasm.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/wenyan.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/wgsl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/wikitext.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/wit.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/wolfram.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/xml.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/xsl.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/yaml.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/zenscript.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/zig.js +2 -3
- package/dist/node_modules/@shikijs/primitive/dist/index.js +319 -321
- package/dist/node_modules/@shikijs/themes/dist/andromeeda.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/aurora-x.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/ayu-dark.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/ayu-light.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/ayu-mirage.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-latte.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/dark-plus.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/dracula-soft.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/dracula.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/everforest-dark.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/everforest-light.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/github-dark-default.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/github-dark-dimmed.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/github-dark-high-contrast.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/github-dark.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/github-light-default.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/github-light-high-contrast.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/github-light.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/horizon-bright.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/horizon.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/houston.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-dragon.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-lotus.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-wave.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/laserwave.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/light-plus.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/material-theme-darker.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/material-theme-lighter.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/material-theme-ocean.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/material-theme-palenight.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/material-theme.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/min-dark.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/min-light.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/monokai.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/night-owl-light.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/night-owl.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/nord.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/one-dark-pro.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/one-light.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/plastic.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/poimandres.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/red.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/rose-pine-dawn.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/rose-pine-moon.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/rose-pine.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/slack-dark.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/slack-ochin.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/snazzy-light.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/solarized-dark.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/solarized-light.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/synthwave-84.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/tokyo-night.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/vesper.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/vitesse-black.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/vitesse-dark.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/vitesse-light.js +2 -4
- package/dist/node_modules/@shikijs/types/dist/index.js +2 -4
- package/dist/node_modules/@shikijs/vscode-textmate/dist/index.js +947 -949
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +30 -30
- package/dist/node_modules/@ungap/structured-clone/esm/index.js +4 -6
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +64 -64
- package/dist/node_modules/@ungap/structured-clone/esm/types.js +2 -0
- package/dist/node_modules/@upsetjs/venn.js/build/venn.esm.js +693 -695
- package/dist/node_modules/@xyflow/react/dist/esm/index.js +881 -883
- package/dist/node_modules/@xyflow/system/dist/esm/index.js +1221 -1223
- package/dist/node_modules/bail/index.js +2 -4
- package/dist/node_modules/ccount/index.js +2 -4
- package/dist/node_modules/character-entities-html4/index.js +2 -4
- package/dist/node_modules/character-entities-legacy/index.js +2 -4
- package/dist/node_modules/chevrotain/lib/src/api.js +10 -10
- package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +4 -6
- package/dist/node_modules/chevrotain/lib/src/parse/constants.js +2 -4
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +9 -11
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +15 -17
- package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +17 -19
- package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +24 -26
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +201 -203
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +16 -18
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +17 -19
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +12 -14
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +140 -142
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +4 -5
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +25 -27
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +149 -151
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +14 -16
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +38 -40
- package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +64 -65
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +11 -13
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +101 -103
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +5 -7
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +45 -47
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +6 -8
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +73 -75
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +180 -182
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +23 -24
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +26 -28
- package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +2 -4
- package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +246 -246
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +2 -4
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +31 -33
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +64 -67
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +10 -12
- package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +35 -36
- package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +26 -28
- package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +240 -242
- package/dist/node_modules/chevrotain-allstar/lib/atn.js +133 -134
- package/dist/node_modules/chevrotain-allstar/lib/dfa.js +10 -11
- package/dist/node_modules/chevrotain-allstar/lib/index.js +1 -1
- package/dist/node_modules/classcat/index.js +3 -5
- package/dist/node_modules/comma-separated-tokens/index.js +3 -5
- package/dist/node_modules/cose-base/cose-base.js +21 -21
- package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +7940 -7937
- package/dist/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.js +6 -8
- package/dist/node_modules/cytoscape-fcose/cytoscape-fcose.js +6 -8
- package/dist/node_modules/cytoscape-fcose/node_modules/cose-base/cose-base.js +20 -20
- package/dist/node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.js +4 -6
- package/dist/node_modules/d3/src/index.js +95 -95
- package/dist/node_modules/d3-array/src/ascending.js +2 -4
- package/dist/node_modules/d3-array/src/bisect.js +8 -8
- package/dist/node_modules/d3-array/src/bisector.js +6 -8
- package/dist/node_modules/d3-array/src/descending.js +2 -4
- package/dist/node_modules/d3-array/src/max.js +2 -4
- package/dist/node_modules/d3-array/src/min.js +2 -4
- package/dist/node_modules/d3-array/src/number.js +2 -4
- package/dist/node_modules/d3-array/src/range.js +2 -4
- package/dist/node_modules/d3-array/src/ticks.js +11 -13
- package/dist/node_modules/d3-axis/src/axis.js +46 -48
- package/dist/node_modules/d3-axis/src/identity.js +2 -4
- package/dist/node_modules/d3-brush/src/brush.js +4 -6
- package/dist/node_modules/d3-color/src/color.js +84 -86
- package/dist/node_modules/d3-color/src/define.js +3 -5
- package/dist/node_modules/d3-color/src/lab.js +43 -45
- package/dist/node_modules/d3-color/src/math.js +2 -4
- package/dist/node_modules/d3-dispatch/src/dispatch.js +17 -18
- package/dist/node_modules/d3-drag/src/constant.js +2 -4
- package/dist/node_modules/d3-drag/src/drag.js +75 -77
- package/dist/node_modules/d3-drag/src/event.js +3 -5
- package/dist/node_modules/d3-drag/src/nodrag.js +9 -11
- package/dist/node_modules/d3-drag/src/noevent.js +4 -6
- package/dist/node_modules/d3-ease/src/cubic.js +2 -4
- package/dist/node_modules/d3-format/src/defaultLocale.js +6 -8
- package/dist/node_modules/d3-format/src/exponent.js +4 -6
- package/dist/node_modules/d3-format/src/formatDecimal.js +3 -5
- package/dist/node_modules/d3-format/src/formatGroup.js +2 -4
- package/dist/node_modules/d3-format/src/formatNumerals.js +2 -4
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +8 -10
- package/dist/node_modules/d3-format/src/formatRounded.js +4 -6
- package/dist/node_modules/d3-format/src/formatSpecifier.js +8 -10
- package/dist/node_modules/d3-format/src/formatTrim.js +2 -4
- package/dist/node_modules/d3-format/src/formatTypes.js +13 -15
- package/dist/node_modules/d3-format/src/identity.js +2 -4
- package/dist/node_modules/d3-format/src/locale.js +31 -33
- package/dist/node_modules/d3-format/src/precisionFixed.js +4 -6
- package/dist/node_modules/d3-format/src/precisionPrefix.js +4 -6
- package/dist/node_modules/d3-format/src/precisionRound.js +4 -6
- package/dist/node_modules/d3-hierarchy/src/accessors.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/constant.js +3 -5
- package/dist/node_modules/d3-hierarchy/src/hierarchy/ancestors.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/count.js +4 -6
- package/dist/node_modules/d3-hierarchy/src/hierarchy/descendants.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/each.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/eachAfter.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/eachBefore.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/find.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/index.js +44 -46
- package/dist/node_modules/d3-hierarchy/src/hierarchy/iterator.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/leaves.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/links.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/path.js +4 -6
- package/dist/node_modules/d3-hierarchy/src/hierarchy/sort.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/sum.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/treemap/dice.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/treemap/index.js +14 -16
- package/dist/node_modules/d3-hierarchy/src/treemap/round.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/treemap/slice.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/treemap/squarify.js +9 -11
- package/dist/node_modules/d3-interpolate/src/array.js +4 -6
- package/dist/node_modules/d3-interpolate/src/basis.js +4 -6
- package/dist/node_modules/d3-interpolate/src/basisClosed.js +4 -6
- package/dist/node_modules/d3-interpolate/src/color.js +17 -19
- package/dist/node_modules/d3-interpolate/src/constant.js +2 -4
- package/dist/node_modules/d3-interpolate/src/date.js +2 -4
- package/dist/node_modules/d3-interpolate/src/hcl.js +6 -8
- package/dist/node_modules/d3-interpolate/src/number.js +2 -4
- package/dist/node_modules/d3-interpolate/src/numberArray.js +3 -5
- package/dist/node_modules/d3-interpolate/src/object.js +4 -6
- package/dist/node_modules/d3-interpolate/src/rgb.js +9 -11
- package/dist/node_modules/d3-interpolate/src/round.js +2 -4
- package/dist/node_modules/d3-interpolate/src/string.js +14 -16
- package/dist/node_modules/d3-interpolate/src/transform/decompose.js +5 -7
- package/dist/node_modules/d3-interpolate/src/transform/index.js +11 -13
- package/dist/node_modules/d3-interpolate/src/transform/parse.js +8 -10
- package/dist/node_modules/d3-interpolate/src/value.js +12 -14
- package/dist/node_modules/d3-interpolate/src/zoom.js +11 -13
- package/dist/node_modules/d3-path/src/path.js +14 -16
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/max.js +2 -4
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/min.js +2 -4
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/sum.js +2 -4
- package/dist/node_modules/d3-sankey/node_modules/d3-path/src/path.js +12 -13
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/array.js +2 -4
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/constant.js +2 -4
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/link/index.js +17 -19
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/point.js +3 -5
- package/dist/node_modules/d3-sankey/src/align.js +10 -12
- package/dist/node_modules/d3-sankey/src/constant.js +2 -4
- package/dist/node_modules/d3-sankey/src/sankey.js +168 -170
- package/dist/node_modules/d3-sankey/src/sankeyLinkHorizontal.js +6 -8
- package/dist/node_modules/d3-scale/src/band.js +9 -11
- package/dist/node_modules/d3-scale/src/constant.js +2 -4
- package/dist/node_modules/d3-scale/src/continuous.js +47 -49
- package/dist/node_modules/d3-scale/src/init.js +2 -4
- package/dist/node_modules/d3-scale/src/linear.js +13 -15
- package/dist/node_modules/d3-scale/src/nice.js +2 -4
- package/dist/node_modules/d3-scale/src/number.js +2 -4
- package/dist/node_modules/d3-scale/src/ordinal.js +16 -18
- package/dist/node_modules/d3-scale/src/tickFormat.js +14 -16
- package/dist/node_modules/d3-scale/src/time.js +34 -36
- package/dist/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js +3 -5
- package/dist/node_modules/d3-scale-chromatic/src/colors.js +2 -4
- package/dist/node_modules/d3-selection/src/array.js +2 -4
- package/dist/node_modules/d3-selection/src/constant.js +2 -4
- package/dist/node_modules/d3-selection/src/creator.js +10 -12
- package/dist/node_modules/d3-selection/src/matcher.js +3 -5
- package/dist/node_modules/d3-selection/src/namespace.js +5 -7
- package/dist/node_modules/d3-selection/src/namespaces.js +3 -5
- package/dist/node_modules/d3-selection/src/pointer.js +4 -6
- package/dist/node_modules/d3-selection/src/select.js +4 -6
- package/dist/node_modules/d3-selection/src/selection/append.js +4 -6
- package/dist/node_modules/d3-selection/src/selection/attr.js +17 -19
- package/dist/node_modules/d3-selection/src/selection/call.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/classed.js +23 -25
- package/dist/node_modules/d3-selection/src/selection/clone.js +5 -7
- package/dist/node_modules/d3-selection/src/selection/data.js +16 -18
- package/dist/node_modules/d3-selection/src/selection/datum.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/dispatch.js +10 -12
- package/dist/node_modules/d3-selection/src/selection/each.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/empty.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/enter.js +11 -13
- package/dist/node_modules/d3-selection/src/selection/exit.js +5 -7
- package/dist/node_modules/d3-selection/src/selection/filter.js +6 -8
- package/dist/node_modules/d3-selection/src/selection/html.js +6 -8
- package/dist/node_modules/d3-selection/src/selection/index.js +79 -80
- package/dist/node_modules/d3-selection/src/selection/insert.js +6 -8
- package/dist/node_modules/d3-selection/src/selection/iterator.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/join.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/lower.js +4 -6
- package/dist/node_modules/d3-selection/src/selection/merge.js +4 -6
- package/dist/node_modules/d3-selection/src/selection/node.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/nodes.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/on.js +9 -11
- package/dist/node_modules/d3-selection/src/selection/order.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/property.js +6 -8
- package/dist/node_modules/d3-selection/src/selection/raise.js +4 -6
- package/dist/node_modules/d3-selection/src/selection/remove.js +4 -6
- package/dist/node_modules/d3-selection/src/selection/select.js +6 -8
- package/dist/node_modules/d3-selection/src/selection/selectAll.js +9 -11
- package/dist/node_modules/d3-selection/src/selection/selectChild.js +8 -10
- package/dist/node_modules/d3-selection/src/selection/selectChildren.js +8 -10
- package/dist/node_modules/d3-selection/src/selection/size.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/sort.js +6 -8
- package/dist/node_modules/d3-selection/src/selection/sparse.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/style.js +12 -14
- package/dist/node_modules/d3-selection/src/selection/text.js +6 -8
- package/dist/node_modules/d3-selection/src/selector.js +4 -6
- package/dist/node_modules/d3-selection/src/selectorAll.js +4 -6
- package/dist/node_modules/d3-selection/src/sourceEvent.js +2 -4
- package/dist/node_modules/d3-selection/src/window.js +2 -4
- package/dist/node_modules/d3-shape/src/arc.js +36 -38
- package/dist/node_modules/d3-shape/src/array.js +2 -3
- package/dist/node_modules/d3-shape/src/constant.js +2 -4
- package/dist/node_modules/d3-shape/src/curve/basis.js +8 -10
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js +16 -18
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js +7 -9
- package/dist/node_modules/d3-shape/src/curve/bump.js +13 -15
- package/dist/node_modules/d3-shape/src/curve/bundle.js +7 -9
- package/dist/node_modules/d3-shape/src/curve/cardinal.js +8 -10
- package/dist/node_modules/d3-shape/src/curve/cardinalClosed.js +10 -12
- package/dist/node_modules/d3-shape/src/curve/cardinalOpen.js +7 -9
- package/dist/node_modules/d3-shape/src/curve/catmullRom.js +17 -19
- package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.js +11 -13
- package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.js +8 -10
- package/dist/node_modules/d3-shape/src/curve/linear.js +5 -7
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js +10 -12
- package/dist/node_modules/d3-shape/src/curve/monotone.js +21 -23
- package/dist/node_modules/d3-shape/src/curve/natural.js +7 -9
- package/dist/node_modules/d3-shape/src/curve/step.js +17 -19
- package/dist/node_modules/d3-shape/src/descending.js +2 -4
- package/dist/node_modules/d3-shape/src/identity.js +2 -4
- package/dist/node_modules/d3-shape/src/line.js +17 -19
- package/dist/node_modules/d3-shape/src/math.js +6 -8
- package/dist/node_modules/d3-shape/src/noop.js +2 -4
- package/dist/node_modules/d3-shape/src/path.js +4 -6
- package/dist/node_modules/d3-shape/src/pie.js +13 -15
- package/dist/node_modules/d3-shape/src/point.js +3 -5
- package/dist/node_modules/d3-time/src/day.js +15 -17
- package/dist/node_modules/d3-time/src/duration.js +2 -4
- package/dist/node_modules/d3-time/src/hour.js +14 -16
- package/dist/node_modules/d3-time/src/interval.js +5 -7
- package/dist/node_modules/d3-time/src/millisecond.js +5 -7
- package/dist/node_modules/d3-time/src/minute.js +14 -16
- package/dist/node_modules/d3-time/src/month.js +12 -14
- package/dist/node_modules/d3-time/src/second.js +7 -9
- package/dist/node_modules/d3-time/src/ticks.js +64 -66
- package/dist/node_modules/d3-time/src/week.js +19 -21
- package/dist/node_modules/d3-time/src/year.js +8 -10
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +6 -8
- package/dist/node_modules/d3-time-format/src/locale.js +344 -346
- package/dist/node_modules/d3-timer/src/timeout.js +4 -6
- package/dist/node_modules/d3-timer/src/timer.js +31 -33
- package/dist/node_modules/d3-transition/src/index.js +2 -2
- package/dist/node_modules/d3-transition/src/interrupt.js +3 -4
- package/dist/node_modules/d3-transition/src/selection/index.js +4 -5
- package/dist/node_modules/d3-transition/src/selection/interrupt.js +4 -6
- package/dist/node_modules/d3-transition/src/selection/transition.js +14 -16
- package/dist/node_modules/d3-transition/src/transition/attr.js +26 -28
- package/dist/node_modules/d3-transition/src/transition/attrTween.js +11 -13
- package/dist/node_modules/d3-transition/src/transition/delay.js +9 -11
- package/dist/node_modules/d3-transition/src/transition/duration.js +9 -11
- package/dist/node_modules/d3-transition/src/transition/ease.js +6 -8
- package/dist/node_modules/d3-transition/src/transition/easeVarying.js +6 -8
- package/dist/node_modules/d3-transition/src/transition/end.js +4 -6
- package/dist/node_modules/d3-transition/src/transition/filter.js +6 -8
- package/dist/node_modules/d3-transition/src/transition/index.js +61 -63
- package/dist/node_modules/d3-transition/src/transition/interpolate.js +7 -9
- package/dist/node_modules/d3-transition/src/transition/merge.js +4 -6
- package/dist/node_modules/d3-transition/src/transition/on.js +7 -9
- package/dist/node_modules/d3-transition/src/transition/remove.js +4 -6
- package/dist/node_modules/d3-transition/src/transition/schedule.js +18 -20
- package/dist/node_modules/d3-transition/src/transition/select.js +8 -10
- package/dist/node_modules/d3-transition/src/transition/selectAll.js +8 -10
- package/dist/node_modules/d3-transition/src/transition/selection.js +5 -7
- package/dist/node_modules/d3-transition/src/transition/style.js +19 -21
- package/dist/node_modules/d3-transition/src/transition/styleTween.js +6 -8
- package/dist/node_modules/d3-transition/src/transition/text.js +6 -8
- package/dist/node_modules/d3-transition/src/transition/textTween.js +6 -8
- package/dist/node_modules/d3-transition/src/transition/transition.js +8 -10
- package/dist/node_modules/d3-transition/src/transition/tween.js +12 -14
- package/dist/node_modules/d3-zoom/src/constant.js +2 -4
- package/dist/node_modules/d3-zoom/src/event.js +2 -4
- package/dist/node_modules/d3-zoom/src/index.js +2 -2
- package/dist/node_modules/d3-zoom/src/noevent.js +3 -5
- package/dist/node_modules/d3-zoom/src/transform.js +10 -12
- package/dist/node_modules/d3-zoom/src/zoom.js +114 -116
- package/dist/node_modules/dagre-d3-es/src/dagre/acyclic.js +12 -14
- package/dist/node_modules/dagre-d3-es/src/dagre/add-border-segments.js +9 -11
- package/dist/node_modules/dagre-d3-es/src/dagre/coordinate-system.js +34 -36
- package/dist/node_modules/dagre-d3-es/src/dagre/data/list.js +7 -9
- package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +49 -51
- package/dist/node_modules/dagre-d3-es/src/dagre/index.js +2 -2
- package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +163 -165
- package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +43 -45
- package/dist/node_modules/dagre-d3-es/src/dagre/normalize.js +10 -12
- package/dist/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.js +4 -6
- package/dist/node_modules/dagre-d3-es/src/dagre/order/barycenter.js +6 -8
- package/dist/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.js +12 -14
- package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +20 -22
- package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +34 -36
- package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +13 -15
- package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +30 -32
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +28 -30
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +18 -20
- package/dist/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.js +10 -12
- package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +148 -150
- package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +18 -20
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.js +17 -19
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/index.js +14 -16
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +63 -64
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +8 -10
- package/dist/node_modules/dagre-d3-es/src/dagre/util.js +82 -84
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dfs.js +13 -15
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dijkstra.js +2 -3
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/floyd-warshall.js +2 -3
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/index.js +3 -3
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/postorder.js +4 -6
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/preorder.js +4 -6
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/topsort.js +11 -13
- package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +129 -131
- package/dist/node_modules/dagre-d3-es/src/graphlib/index.js +1 -1
- package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +16 -18
- package/dist/node_modules/dayjs/dayjs.min.js +4 -6
- package/dist/node_modules/dayjs/plugin/advancedFormat.js +4 -6
- package/dist/node_modules/dayjs/plugin/customParseFormat.js +4 -6
- package/dist/node_modules/dayjs/plugin/duration.js +4 -6
- package/dist/node_modules/dayjs/plugin/isoWeek.js +4 -6
- package/dist/node_modules/decode-named-character-reference/index.dom.js +5 -7
- package/dist/node_modules/devlop/lib/default.js +2 -4
- package/dist/node_modules/dompurify/dist/purify.es.js +180 -182
- package/dist/node_modules/entities/dist/esm/decode-codepoint.js +4 -6
- package/dist/node_modules/entities/dist/esm/decode.js +85 -87
- package/dist/node_modules/entities/dist/esm/generated/decode-data-html.js +2 -4
- package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +4 -6
- package/dist/node_modules/extend/index.js +6 -9
- package/dist/node_modules/hast-util-from-dom/lib/index.js +30 -32
- package/dist/node_modules/hast-util-from-html-isomorphic/lib/browser.js +8 -10
- package/dist/node_modules/hast-util-from-parse5/lib/index.js +80 -82
- package/dist/node_modules/hast-util-is-element/lib/index.js +15 -17
- package/dist/node_modules/hast-util-parse-selector/lib/index.js +5 -7
- package/dist/node_modules/hast-util-raw/lib/index.js +134 -136
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.js +21 -23
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.js +3 -5
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.js +89 -89
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.js +249 -250
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.js +4 -6
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.js +14 -14
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/index.js +4 -4
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.js +15 -17
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.js +1495 -1497
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.js +146 -148
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.js +19 -20
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js +798 -800
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.js +31 -33
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.js +8 -10
- package/dist/node_modules/hast-util-sanitize/lib/index.js +104 -106
- package/dist/node_modules/hast-util-sanitize/lib/schema.js +11 -12
- package/dist/node_modules/hast-util-to-html/lib/handle/comment.js +7 -9
- package/dist/node_modules/hast-util-to-html/lib/handle/doctype.js +2 -4
- package/dist/node_modules/hast-util-to-html/lib/handle/element.js +23 -25
- package/dist/node_modules/hast-util-to-html/lib/handle/index.js +21 -22
- package/dist/node_modules/hast-util-to-html/lib/handle/raw.js +4 -6
- package/dist/node_modules/hast-util-to-html/lib/handle/root.js +2 -4
- package/dist/node_modules/hast-util-to-html/lib/handle/text.js +5 -7
- package/dist/node_modules/hast-util-to-html/lib/index.js +36 -38
- package/dist/node_modules/hast-util-to-html/lib/omission/closing.js +68 -70
- package/dist/node_modules/hast-util-to-html/lib/omission/omission.js +4 -6
- package/dist/node_modules/hast-util-to-html/lib/omission/opening.js +30 -32
- package/dist/node_modules/hast-util-to-html/lib/omission/util/siblings.js +9 -10
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +190 -192
- package/dist/node_modules/hast-util-to-parse5/lib/index.js +69 -71
- package/dist/node_modules/hast-util-to-text/lib/index.js +59 -61
- package/dist/node_modules/hast-util-whitespace/lib/index.js +6 -8
- package/dist/node_modules/hastscript/lib/create-h.js +24 -26
- package/dist/node_modules/hastscript/lib/index.js +5 -7
- package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +2 -4
- package/dist/node_modules/html-url-attributes/lib/index.js +2 -4
- package/dist/node_modules/html-void-elements/index.js +2 -4
- package/dist/node_modules/inline-style-parser/cjs/index.js +4 -6
- package/dist/node_modules/internmap/src/index.js +20 -22
- package/dist/node_modules/katex/dist/katex.js +2307 -2301
- package/dist/node_modules/khroma/dist/channels/index.js +21 -23
- package/dist/node_modules/khroma/dist/channels/reusable.js +3 -5
- package/dist/node_modules/khroma/dist/channels/type.js +5 -7
- package/dist/node_modules/khroma/dist/color/hex.js +8 -10
- package/dist/node_modules/khroma/dist/color/hsl.js +17 -19
- package/dist/node_modules/khroma/dist/color/index.js +15 -17
- package/dist/node_modules/khroma/dist/color/keyword.js +8 -10
- package/dist/node_modules/khroma/dist/color/rgb.js +12 -14
- package/dist/node_modules/khroma/dist/constants.js +5 -7
- package/dist/node_modules/khroma/dist/methods/adjust.js +6 -8
- package/dist/node_modules/khroma/dist/methods/adjust_channel.js +6 -8
- package/dist/node_modules/khroma/dist/methods/change.js +7 -9
- package/dist/node_modules/khroma/dist/methods/channel.js +4 -6
- package/dist/node_modules/khroma/dist/methods/darken.js +3 -5
- package/dist/node_modules/khroma/dist/methods/invert.js +6 -8
- package/dist/node_modules/khroma/dist/methods/is_dark.js +3 -5
- package/dist/node_modules/khroma/dist/methods/is_light.js +3 -5
- package/dist/node_modules/khroma/dist/methods/lighten.js +3 -5
- package/dist/node_modules/khroma/dist/methods/luminance.js +6 -8
- package/dist/node_modules/khroma/dist/methods/mix.js +6 -8
- package/dist/node_modules/khroma/dist/methods/rgba.js +13 -15
- package/dist/node_modules/khroma/dist/methods/transparentize.js +3 -5
- package/dist/node_modules/khroma/dist/utils/channel.js +6 -8
- package/dist/node_modules/khroma/dist/utils/index.js +8 -10
- package/dist/node_modules/khroma/dist/utils/lang.js +2 -4
- package/dist/node_modules/khroma/dist/utils/unit.js +2 -4
- package/dist/node_modules/langium/lib/default-module.js +64 -66
- package/dist/node_modules/langium/lib/dependency-injection.js +39 -37
- package/dist/node_modules/langium/lib/documentation/comment-provider.js +5 -7
- package/dist/node_modules/langium/lib/documentation/documentation-provider.js +6 -8
- package/dist/node_modules/langium/lib/documentation/jsdoc.js +202 -204
- package/dist/node_modules/langium/lib/index.js +182 -0
- package/dist/node_modules/langium/lib/languages/generated/ast.js +534 -343
- package/dist/node_modules/langium/lib/languages/grammar-config.js +8 -10
- package/dist/node_modules/langium/lib/parser/async-parser.js +76 -4
- package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +6 -8
- package/dist/node_modules/langium/lib/parser/cst-node-builder.js +54 -56
- package/dist/node_modules/langium/lib/parser/indentation-aware.js +141 -0
- package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +7 -9
- package/dist/node_modules/langium/lib/parser/langium-parser.js +188 -190
- package/dist/node_modules/langium/lib/parser/lexer.js +25 -25
- package/dist/node_modules/langium/lib/parser/parser-builder-base.js +203 -204
- package/dist/node_modules/langium/lib/parser/token-builder.js +30 -32
- package/dist/node_modules/langium/lib/parser/value-converter.js +15 -17
- package/dist/node_modules/langium/lib/references/linker.js +103 -104
- package/dist/node_modules/langium/lib/references/name-provider.js +7 -9
- package/dist/node_modules/langium/lib/references/references.js +51 -53
- package/dist/node_modules/langium/lib/references/scope-computation.js +12 -14
- package/dist/node_modules/langium/lib/references/scope-provider.js +11 -13
- package/dist/node_modules/langium/lib/references/scope.js +56 -27
- package/dist/node_modules/langium/lib/serializer/hydrator.js +69 -71
- package/dist/node_modules/langium/lib/serializer/json-serializer.js +21 -23
- package/dist/node_modules/langium/lib/service-registry.js +5 -7
- package/dist/node_modules/langium/lib/syntax-tree.js +31 -33
- package/dist/node_modules/langium/lib/utils/ast-utils.js +112 -77
- package/dist/node_modules/langium/lib/utils/caching.js +42 -33
- package/dist/node_modules/langium/lib/utils/cancellation.js +5 -7
- package/dist/node_modules/langium/lib/utils/collections.js +33 -35
- package/dist/node_modules/langium/lib/utils/cst-utils.js +161 -46
- package/dist/node_modules/langium/lib/utils/disposable.js +3 -5
- package/dist/node_modules/langium/lib/utils/errors.js +9 -8
- package/dist/node_modules/langium/lib/utils/event.js +5 -7
- package/dist/node_modules/langium/lib/utils/grammar-loader.js +14 -16
- package/dist/node_modules/langium/lib/utils/grammar-utils.js +249 -172
- package/dist/node_modules/langium/lib/utils/index.js +53 -0
- package/dist/node_modules/langium/lib/utils/promise-utils.js +19 -18
- package/dist/node_modules/langium/lib/utils/regexp-utils.js +76 -53
- package/dist/node_modules/langium/lib/utils/stream.js +153 -155
- package/dist/node_modules/langium/lib/utils/uri-utils.js +12 -14
- package/dist/node_modules/langium/lib/validation/document-validator.js +103 -104
- package/dist/node_modules/langium/lib/validation/validation-registry.js +14 -15
- package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +17 -19
- package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +2 -4
- package/dist/node_modules/langium/lib/workspace/configuration.js +5 -7
- package/dist/node_modules/langium/lib/workspace/document-builder.js +134 -131
- package/dist/node_modules/langium/lib/workspace/documents.js +83 -85
- package/dist/node_modules/langium/lib/workspace/file-system-provider.js +4 -5
- package/dist/node_modules/langium/lib/workspace/index-manager.js +14 -16
- package/dist/node_modules/langium/lib/workspace/profiler.js +89 -0
- package/dist/node_modules/langium/lib/workspace/workspace-lock.js +9 -11
- package/dist/node_modules/langium/lib/workspace/workspace-manager.js +33 -35
- package/dist/node_modules/layout-base/layout-base.js +4 -6
- package/dist/node_modules/lodash/_Symbol.js +7 -0
- package/dist/node_modules/lodash/_baseGetTag.js +13 -0
- package/dist/node_modules/lodash/_baseTrim.js +11 -0
- package/dist/node_modules/lodash/_freeGlobal.js +6 -0
- package/dist/node_modules/lodash/_getRawTag.js +17 -0
- package/dist/node_modules/lodash/_objectToString.js +10 -0
- package/dist/node_modules/lodash/_root.js +8 -0
- package/dist/node_modules/lodash/_trimmedEndIndex.js +11 -0
- package/dist/{frontend/studio/node_modules → node_modules}/lodash/debounce.js +8 -10
- package/dist/node_modules/lodash/isObject.js +10 -0
- package/dist/node_modules/lodash/isObjectLike.js +9 -0
- package/dist/node_modules/lodash/isSymbol.js +12 -0
- package/dist/node_modules/lodash/now.js +10 -0
- package/dist/node_modules/lodash/toNumber.js +22 -0
- package/dist/node_modules/lodash-es/_DataView.js +4 -6
- package/dist/node_modules/lodash-es/_Hash.js +13 -14
- package/dist/node_modules/lodash-es/_ListCache.js +13 -14
- package/dist/node_modules/lodash-es/_Map.js +4 -6
- package/dist/node_modules/lodash-es/_MapCache.js +13 -14
- package/dist/node_modules/lodash-es/_Promise.js +4 -6
- package/dist/node_modules/lodash-es/_Set.js +4 -6
- package/dist/node_modules/lodash-es/_SetCache.js +9 -10
- package/dist/node_modules/lodash-es/_Stack.js +11 -12
- package/dist/node_modules/lodash-es/_Symbol.js +3 -5
- package/dist/node_modules/lodash-es/_Uint8Array.js +3 -5
- package/dist/node_modules/lodash-es/_WeakMap.js +4 -6
- package/dist/node_modules/lodash-es/_apply.js +3 -4
- package/dist/node_modules/lodash-es/_arrayEach.js +3 -4
- package/dist/node_modules/lodash-es/_arrayFilter.js +3 -4
- package/dist/node_modules/lodash-es/_arrayIncludes.js +5 -6
- package/dist/node_modules/lodash-es/_arrayIncludesWith.js +3 -4
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +12 -13
- package/dist/node_modules/lodash-es/_arrayMap.js +3 -4
- package/dist/node_modules/lodash-es/_arrayPush.js +3 -4
- package/dist/node_modules/lodash-es/_arrayReduce.js +3 -4
- package/dist/node_modules/lodash-es/_arraySome.js +3 -4
- package/dist/node_modules/lodash-es/_asciiSize.js +3 -5
- package/dist/node_modules/lodash-es/_assignMergeValue.js +6 -7
- package/dist/node_modules/lodash-es/_assignValue.js +7 -8
- package/dist/node_modules/lodash-es/_assocIndexOf.js +5 -6
- package/dist/node_modules/lodash-es/_baseAssign.js +6 -7
- package/dist/node_modules/lodash-es/_baseAssignIn.js +6 -7
- package/dist/node_modules/lodash-es/_baseAssignValue.js +5 -6
- package/dist/node_modules/lodash-es/_baseClone.js +50 -51
- package/dist/node_modules/lodash-es/_baseCreate.js +5 -7
- package/dist/node_modules/lodash-es/_baseEach.js +4 -6
- package/dist/node_modules/lodash-es/_baseExtremum.js +5 -6
- package/dist/node_modules/lodash-es/_baseFilter.js +5 -6
- package/dist/node_modules/lodash-es/_baseFindIndex.js +3 -4
- package/dist/node_modules/lodash-es/_baseFlatten.js +7 -8
- package/dist/node_modules/lodash-es/_baseFor.js +3 -5
- package/dist/node_modules/lodash-es/_baseForOwn.js +6 -7
- package/dist/node_modules/lodash-es/_baseGet.js +7 -8
- package/dist/node_modules/lodash-es/_baseGetAllKeys.js +6 -7
- package/dist/node_modules/lodash-es/_baseGetTag.js +8 -9
- package/dist/node_modules/lodash-es/_baseGt.js +3 -4
- package/dist/node_modules/lodash-es/_baseHas.js +5 -6
- package/dist/node_modules/lodash-es/_baseHasIn.js +3 -4
- package/dist/node_modules/lodash-es/_baseIndexOf.js +7 -8
- package/dist/node_modules/lodash-es/_baseIsArguments.js +7 -8
- package/dist/node_modules/lodash-es/_baseIsEqual.js +6 -7
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +22 -23
- package/dist/node_modules/lodash-es/_baseIsMap.js +7 -8
- package/dist/node_modules/lodash-es/_baseIsMatch.js +8 -9
- package/dist/node_modules/lodash-es/_baseIsNaN.js +3 -4
- package/dist/node_modules/lodash-es/_baseIsNative.js +9 -10
- package/dist/node_modules/lodash-es/_baseIsSet.js +7 -8
- package/dist/node_modules/lodash-es/_baseIsTypedArray.js +9 -10
- package/dist/node_modules/lodash-es/_baseIteratee.js +9 -10
- package/dist/node_modules/lodash-es/_baseKeys.js +8 -9
- package/dist/node_modules/lodash-es/_baseKeysIn.js +10 -11
- package/dist/node_modules/lodash-es/_baseLt.js +3 -4
- package/dist/node_modules/lodash-es/_baseMap.js +7 -8
- package/dist/node_modules/lodash-es/_baseMatches.js +9 -10
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +14 -15
- package/dist/node_modules/lodash-es/_baseMerge.js +15 -16
- package/dist/node_modules/lodash-es/_baseMergeDeep.js +23 -24
- package/dist/node_modules/lodash-es/_baseOrderBy.js +22 -23
- package/dist/node_modules/lodash-es/_basePick.js +7 -8
- package/dist/node_modules/lodash-es/_basePickBy.js +8 -9
- package/dist/node_modules/lodash-es/_baseProperty.js +3 -4
- package/dist/node_modules/lodash-es/_basePropertyDeep.js +5 -6
- package/dist/node_modules/lodash-es/_baseRange.js +5 -6
- package/dist/node_modules/lodash-es/_baseReduce.js +3 -4
- package/dist/node_modules/lodash-es/_baseRest.js +7 -8
- package/dist/node_modules/lodash-es/_baseSet.js +13 -14
- package/dist/node_modules/lodash-es/_baseSetToString.js +8 -10
- package/dist/node_modules/lodash-es/_baseSortBy.js +3 -4
- package/dist/node_modules/lodash-es/_baseTimes.js +3 -4
- package/dist/node_modules/lodash-es/_baseToString.js +12 -13
- package/dist/node_modules/lodash-es/_baseTrim.js +6 -7
- package/dist/node_modules/lodash-es/_baseUnary.js +3 -4
- package/dist/node_modules/lodash-es/_baseUniq.js +16 -17
- package/dist/node_modules/lodash-es/_baseValues.js +5 -6
- package/dist/node_modules/lodash-es/_baseZipObject.js +3 -4
- package/dist/node_modules/lodash-es/_cacheHas.js +3 -4
- package/dist/node_modules/lodash-es/_castFunction.js +5 -6
- package/dist/node_modules/lodash-es/_castPath.js +8 -9
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +5 -6
- package/dist/node_modules/lodash-es/_cloneBuffer.js +8 -9
- package/dist/node_modules/lodash-es/_cloneDataView.js +5 -6
- package/dist/node_modules/lodash-es/_cloneRegExp.js +5 -6
- package/dist/node_modules/lodash-es/_cloneSymbol.js +6 -7
- package/dist/node_modules/lodash-es/_cloneTypedArray.js +5 -6
- package/dist/node_modules/lodash-es/_compareAscending.js +5 -6
- package/dist/node_modules/lodash-es/_compareMultiple.js +5 -6
- package/dist/node_modules/lodash-es/_copyArray.js +3 -4
- package/dist/node_modules/lodash-es/_copyObject.js +6 -7
- package/dist/node_modules/lodash-es/_copySymbols.js +6 -7
- package/dist/node_modules/lodash-es/_copySymbolsIn.js +6 -7
- package/dist/node_modules/lodash-es/_coreJsData.js +3 -5
- package/dist/node_modules/lodash-es/_createAssigner.js +7 -8
- package/dist/node_modules/lodash-es/_createBaseEach.js +5 -6
- package/dist/node_modules/lodash-es/_createBaseFor.js +3 -4
- package/dist/node_modules/lodash-es/_createFind.js +9 -10
- package/dist/node_modules/lodash-es/_createRange.js +7 -8
- package/dist/node_modules/lodash-es/_createSet.js +7 -9
- package/dist/node_modules/lodash-es/_defineProperty.js +4 -6
- package/dist/node_modules/lodash-es/_equalArrays.js +11 -12
- package/dist/node_modules/lodash-es/_equalByTag.js +28 -29
- package/dist/node_modules/lodash-es/_equalObjects.js +8 -9
- package/dist/node_modules/lodash-es/_flatRest.js +7 -8
- package/dist/node_modules/lodash-es/_freeGlobal.js +2 -4
- package/dist/node_modules/lodash-es/_getAllKeys.js +7 -8
- package/dist/node_modules/lodash-es/_getAllKeysIn.js +7 -8
- package/dist/node_modules/lodash-es/_getMapData.js +5 -6
- package/dist/node_modules/lodash-es/_getMatchData.js +7 -8
- package/dist/node_modules/lodash-es/_getNative.js +7 -8
- package/dist/node_modules/lodash-es/_getPrototype.js +3 -5
- package/dist/node_modules/lodash-es/_getRawTag.js +9 -10
- package/dist/node_modules/lodash-es/_getSymbols.js +7 -9
- package/dist/node_modules/lodash-es/_getSymbolsIn.js +8 -10
- package/dist/node_modules/lodash-es/_getTag.js +19 -21
- package/dist/node_modules/lodash-es/_getValue.js +3 -4
- package/dist/node_modules/lodash-es/_hasPath.js +12 -13
- package/dist/node_modules/lodash-es/_hasUnicode.js +5 -6
- package/dist/node_modules/lodash-es/_hashClear.js +5 -6
- package/dist/node_modules/lodash-es/_hashDelete.js +4 -5
- package/dist/node_modules/lodash-es/_hashGet.js +8 -9
- package/dist/node_modules/lodash-es/_hashHas.js +6 -7
- package/dist/node_modules/lodash-es/_hashSet.js +6 -7
- package/dist/node_modules/lodash-es/_initCloneArray.js +5 -6
- package/dist/node_modules/lodash-es/_initCloneByTag.js +28 -29
- package/dist/node_modules/lodash-es/_initCloneObject.js +7 -8
- package/dist/node_modules/lodash-es/_isFlattenable.js +8 -9
- package/dist/node_modules/lodash-es/_isIndex.js +5 -6
- package/dist/node_modules/lodash-es/_isIterateeCall.js +9 -10
- package/dist/node_modules/lodash-es/_isKey.js +8 -9
- package/dist/node_modules/lodash-es/_isKeyable.js +3 -4
- package/dist/node_modules/lodash-es/_isMasked.js +8 -9
- package/dist/node_modules/lodash-es/_isPrototype.js +5 -6
- package/dist/node_modules/lodash-es/_isStrictComparable.js +5 -6
- package/dist/node_modules/lodash-es/_listCacheClear.js +3 -4
- package/dist/node_modules/lodash-es/_listCacheDelete.js +7 -8
- package/dist/node_modules/lodash-es/_listCacheGet.js +5 -6
- package/dist/node_modules/lodash-es/_listCacheHas.js +5 -6
- package/dist/node_modules/lodash-es/_listCacheSet.js +5 -6
- package/dist/node_modules/lodash-es/_mapCacheClear.js +9 -10
- package/dist/node_modules/lodash-es/_mapCacheDelete.js +6 -7
- package/dist/node_modules/lodash-es/_mapCacheGet.js +5 -6
- package/dist/node_modules/lodash-es/_mapCacheHas.js +5 -6
- package/dist/node_modules/lodash-es/_mapCacheSet.js +5 -6
- package/dist/node_modules/lodash-es/_mapToArray.js +3 -4
- package/dist/node_modules/lodash-es/_matchesStrictComparable.js +3 -4
- package/dist/node_modules/lodash-es/_memoizeCapped.js +7 -8
- package/dist/node_modules/lodash-es/_nativeCreate.js +3 -5
- package/dist/node_modules/lodash-es/_nativeKeys.js +3 -5
- package/dist/node_modules/lodash-es/_nativeKeysIn.js +3 -4
- package/dist/node_modules/lodash-es/_nodeUtil.js +4 -6
- package/dist/node_modules/lodash-es/_objectToString.js +5 -6
- package/dist/node_modules/lodash-es/_overArg.js +3 -4
- package/dist/node_modules/lodash-es/_overRest.js +8 -9
- package/dist/node_modules/lodash-es/_root.js +3 -5
- package/dist/node_modules/lodash-es/_safeGet.js +3 -4
- package/dist/node_modules/lodash-es/_setCacheAdd.js +5 -6
- package/dist/node_modules/lodash-es/_setCacheHas.js +3 -4
- package/dist/node_modules/lodash-es/_setToArray.js +3 -4
- package/dist/node_modules/lodash-es/_setToString.js +4 -6
- package/dist/node_modules/lodash-es/_shortOut.js +6 -7
- package/dist/node_modules/lodash-es/_stackClear.js +5 -6
- package/dist/node_modules/lodash-es/_stackDelete.js +3 -4
- package/dist/node_modules/lodash-es/_stackGet.js +3 -4
- package/dist/node_modules/lodash-es/_stackHas.js +3 -4
- package/dist/node_modules/lodash-es/_stackSet.js +10 -11
- package/dist/node_modules/lodash-es/_strictIndexOf.js +3 -4
- package/dist/node_modules/lodash-es/_stringSize.js +7 -8
- package/dist/node_modules/lodash-es/_stringToPath.js +5 -7
- package/dist/node_modules/lodash-es/_toKey.js +7 -8
- package/dist/node_modules/lodash-es/_toSource.js +7 -8
- package/dist/node_modules/lodash-es/_trimmedEndIndex.js +5 -6
- package/dist/node_modules/lodash-es/_unicodeSize.js +16 -17
- package/dist/node_modules/lodash-es/clone.js +6 -7
- package/dist/node_modules/lodash-es/cloneDeep.js +6 -7
- package/dist/node_modules/lodash-es/constant.js +3 -4
- package/dist/node_modules/lodash-es/defaults.js +11 -13
- package/dist/node_modules/lodash-es/eq.js +3 -4
- package/dist/node_modules/lodash-es/filter.js +8 -9
- package/dist/node_modules/lodash-es/find.js +4 -6
- package/dist/node_modules/lodash-es/findIndex.js +9 -10
- package/dist/node_modules/lodash-es/flatMap.js +6 -7
- package/dist/node_modules/lodash-es/flatten.js +5 -6
- package/dist/node_modules/lodash-es/forEach.js +8 -9
- package/dist/node_modules/lodash-es/forIn.js +7 -8
- package/dist/node_modules/lodash-es/forOwn.js +6 -7
- package/dist/node_modules/lodash-es/get.js +5 -6
- package/dist/node_modules/lodash-es/has.js +6 -7
- package/dist/node_modules/lodash-es/hasIn.js +6 -7
- package/dist/node_modules/lodash-es/identity.js +3 -4
- package/dist/node_modules/lodash-es/isArguments.js +6 -8
- package/dist/node_modules/lodash-es/isArray.js +2 -4
- package/dist/node_modules/lodash-es/isArrayLike.js +6 -7
- package/dist/node_modules/lodash-es/isArrayLikeObject.js +6 -7
- package/dist/node_modules/lodash-es/isBuffer.js +4 -6
- package/dist/node_modules/lodash-es/isEmpty.js +17 -18
- package/dist/node_modules/lodash-es/isFunction.js +9 -10
- package/dist/node_modules/lodash-es/isLength.js +5 -6
- package/dist/node_modules/lodash-es/isMap.js +5 -7
- package/dist/node_modules/lodash-es/isObject.js +3 -4
- package/dist/node_modules/lodash-es/isObjectLike.js +3 -4
- package/dist/node_modules/lodash-es/isPlainObject.js +12 -13
- package/dist/node_modules/lodash-es/isSet.js +5 -7
- package/dist/node_modules/lodash-es/isString.js +8 -9
- package/dist/node_modules/lodash-es/isSymbol.js +7 -8
- package/dist/node_modules/lodash-es/isTypedArray.js +5 -7
- package/dist/node_modules/lodash-es/isUndefined.js +3 -4
- package/dist/node_modules/lodash-es/keys.js +7 -8
- package/dist/node_modules/lodash-es/keysIn.js +7 -8
- package/dist/node_modules/lodash-es/last.js +3 -4
- package/dist/node_modules/lodash-es/map.js +8 -9
- package/dist/node_modules/lodash-es/mapValues.js +8 -9
- package/dist/node_modules/lodash-es/max.js +7 -8
- package/dist/node_modules/lodash-es/memoize.js +8 -9
- package/dist/node_modules/lodash-es/merge.js +5 -7
- package/dist/node_modules/lodash-es/min.js +7 -8
- package/dist/node_modules/lodash-es/minBy.js +7 -8
- package/dist/node_modules/lodash-es/noop.js +3 -4
- package/dist/node_modules/lodash-es/now.js +4 -6
- package/dist/node_modules/lodash-es/pick.js +5 -7
- package/dist/node_modules/lodash-es/property.js +8 -9
- package/dist/node_modules/lodash-es/range.js +3 -5
- package/dist/node_modules/lodash-es/reduce.js +10 -11
- package/dist/node_modules/lodash-es/size.js +12 -13
- package/dist/node_modules/lodash-es/sortBy.js +7 -9
- package/dist/node_modules/lodash-es/stubArray.js +3 -4
- package/dist/node_modules/lodash-es/stubFalse.js +3 -4
- package/dist/node_modules/lodash-es/toFinite.js +6 -7
- package/dist/node_modules/lodash-es/toInteger.js +5 -6
- package/dist/node_modules/lodash-es/toNumber.js +13 -14
- package/dist/node_modules/lodash-es/toPlainObject.js +6 -7
- package/dist/node_modules/lodash-es/toString.js +5 -6
- package/dist/node_modules/lodash-es/union.js +7 -9
- package/dist/node_modules/lodash-es/uniqBy.js +6 -7
- package/dist/node_modules/lodash-es/uniqueId.js +7 -8
- package/dist/node_modules/lodash-es/values.js +6 -7
- package/dist/node_modules/lodash-es/zipObject.js +6 -7
- package/dist/node_modules/longest-streak/index.js +2 -4
- package/dist/node_modules/markdown-table/index.js +9 -11
- package/dist/node_modules/marked/lib/marked.esm.js +685 -687
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +12 -14
- package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +2 -4
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js +180 -182
- package/dist/node_modules/mdast-util-gfm/lib/index.js +18 -20
- package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +67 -69
- package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +45 -47
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +13 -15
- package/dist/node_modules/mdast-util-gfm-table/lib/index.js +28 -30
- package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +14 -16
- package/dist/node_modules/mdast-util-math/lib/index.js +13 -15
- package/dist/node_modules/mdast-util-phrasing/lib/index.js +3 -5
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js +9 -11
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +4 -6
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +6 -8
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +4 -6
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +53 -55
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +6 -8
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +4 -6
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +13 -15
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +4 -6
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +4 -6
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/index.js +6 -8
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/state.js +59 -61
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +16 -18
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +12 -14
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +6 -8
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +6 -8
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +41 -43
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +5 -7
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +9 -11
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +5 -7
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +10 -12
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +12 -14
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +5 -7
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +7 -8
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +4 -6
- package/dist/node_modules/mdast-util-to-string/lib/index.js +12 -14
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-Q4EWVU46.js +374 -378
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-DXYQGD6D.js +1347 -1349
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-AHTNJAMY.js +549 -555
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-336JU56O.js +38 -40
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-426QAEUC.js +7 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BX2VUAB.js +4 -6
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4TB4RGXK.js +198 -204
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.js +5 -7
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5FUZZQ4R.js +2345 -2347
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5PVQY5BW.js +253 -257
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AGHRB4JF.js +20 -22
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-BSJP7CBP.js +35 -37
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EDXVE4YY.js +15 -17
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ENJZ2VHE.js +344 -346
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-FMBD7UC4.js +3 -5
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ICPOFSXX.js +718 -746
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OYMX7WX6.js +588 -594
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QZHKN3VN.js +4 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-U2HBQHQK.js +204 -206
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-X2U36JSP.js +37 -39
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-XPW4576I.js +891 -893
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-YZCP3GAM.js +37 -39
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZZ45TVLE.js +13 -15
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-6PBFFD2Q.js +9 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-HSJHXN6E.js +9 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.js +114 -116
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-KV5264BT.js +188 -190
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-5BDNPKRD.js +70 -72
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-G4DWMVQ6.js +185 -189
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-MMDJMWI5.js +154 -156
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-TYMM5635.js +72 -76
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-SMLLAGMA.js +75 -79
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-DWJPFMVM.js +896 -900
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-T4ZO3ILL.js +685 -687
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-UUTBAWPF.js +569 -571
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-42DDH7IO.js +15 -17
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ishikawaDiagram-UXIWVN3A.js +304 -308
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-VCZTEJTY.js +377 -379
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-6JOO6SKY.js +114 -116
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-QFDTVHPH.js +87 -91
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-DEJITSTG.js +94 -96
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-34T5L4WZ.js +273 -279
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-MS252O5E.js +59 -63
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-XADWPNL6.js +202 -212
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-FGHM5R23.js +564 -568
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FHFEXIEX.js +155 -157
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-QKLJ7IA2.js +9 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-GMOUNBTQ.js +559 -561
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-DHZGUBPP.js +370 -372
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +450 -454
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-5P7HB3ND.js +658 -680
- package/dist/node_modules/mermaid/dist/mermaid.core.js +430 -434
- package/dist/node_modules/micromark/lib/constructs.js +79 -80
- package/dist/node_modules/micromark/lib/create-tokenizer.js +12 -14
- package/dist/node_modules/micromark/lib/initialize/content.js +7 -9
- package/dist/node_modules/micromark/lib/initialize/document.js +14 -15
- package/dist/node_modules/micromark/lib/initialize/flow.js +7 -9
- package/dist/node_modules/micromark/lib/initialize/text.js +6 -8
- package/dist/node_modules/micromark/lib/parse.js +18 -20
- package/dist/node_modules/micromark/lib/postprocess.js +4 -6
- package/dist/node_modules/micromark/lib/preprocess.js +4 -6
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js +18 -20
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +15 -17
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +9 -11
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +13 -15
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +6 -8
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +14 -16
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +21 -22
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +15 -16
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +11 -13
- package/dist/node_modules/micromark-core-commonmark/lib/content.js +17 -18
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js +29 -30
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +6 -8
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +13 -15
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +67 -68
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +64 -66
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +111 -112
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +6 -8
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +6 -8
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +6 -8
- package/dist/node_modules/micromark-core-commonmark/lib/list.js +31 -32
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +10 -12
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +9 -11
- package/dist/node_modules/micromark-extension-gfm/index.js +14 -16
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +120 -122
- package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +31 -33
- package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +9 -11
- package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +4 -6
- package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +2 -4
- package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +34 -36
- package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +18 -20
- package/dist/node_modules/micromark-extension-math/lib/math-flow.js +20 -21
- package/dist/node_modules/micromark-extension-math/lib/math-text.js +9 -11
- package/dist/node_modules/micromark-extension-math/lib/syntax.js +6 -8
- package/dist/node_modules/micromark-factory-destination/index.js +8 -10
- package/dist/node_modules/micromark-factory-label/index.js +5 -7
- package/dist/node_modules/micromark-factory-space/index.js +5 -7
- package/dist/node_modules/micromark-factory-title/index.js +6 -8
- package/dist/node_modules/micromark-factory-whitespace/index.js +5 -7
- package/dist/node_modules/micromark-util-character/index.js +12 -14
- package/dist/node_modules/micromark-util-chunked/index.js +4 -6
- package/dist/node_modules/micromark-util-classify-character/index.js +5 -7
- package/dist/node_modules/micromark-util-combine-extensions/index.js +11 -13
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +2 -4
- package/dist/node_modules/micromark-util-decode-string/index.js +9 -11
- package/dist/node_modules/micromark-util-html-tag-name/index.js +2 -4
- package/dist/node_modules/micromark-util-normalize-identifier/index.js +2 -4
- package/dist/node_modules/micromark-util-resolve-all/index.js +2 -4
- package/dist/node_modules/micromark-util-sanitize-uri/index.js +4 -6
- package/dist/node_modules/micromark-util-subtokenize/index.js +8 -10
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +8 -10
- package/dist/node_modules/motion/dist/es/react.js +2 -2
- package/dist/node_modules/nanoid/index.browser.js +4 -6
- package/dist/node_modules/nanoid/url-alphabet/index.js +2 -4
- package/dist/node_modules/property-information/index.js +23 -25
- package/dist/node_modules/property-information/lib/aria.js +39 -41
- package/dist/node_modules/property-information/lib/find.js +16 -18
- package/dist/node_modules/property-information/lib/hast-to-react.js +2 -4
- package/dist/node_modules/property-information/lib/html.js +94 -96
- package/dist/node_modules/property-information/lib/normalize.js +2 -4
- package/dist/node_modules/property-information/lib/svg.js +77 -79
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +4 -6
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +2 -4
- package/dist/node_modules/property-information/lib/util/create.js +8 -10
- package/dist/node_modules/property-information/lib/util/defined-info.js +11 -13
- package/dist/node_modules/property-information/lib/util/info.js +3 -5
- package/dist/node_modules/property-information/lib/util/merge.js +4 -6
- package/dist/node_modules/property-information/lib/util/schema.js +3 -5
- package/dist/node_modules/property-information/lib/util/types.js +14 -15
- package/dist/node_modules/property-information/lib/xlink.js +3 -5
- package/dist/node_modules/property-information/lib/xml.js +3 -5
- package/dist/node_modules/property-information/lib/xmlns.js +5 -7
- package/dist/node_modules/rehype-harden/dist/index.js +45 -47
- package/dist/node_modules/rehype-katex/lib/index.js +23 -25
- package/dist/node_modules/rehype-raw/lib/index.js +4 -6
- package/dist/node_modules/rehype-sanitize/lib/index.js +4 -6
- package/dist/node_modules/remark-gfm/lib/index.js +7 -9
- package/dist/node_modules/remark-math/lib/index.js +7 -9
- package/dist/node_modules/remark-parse/lib/index.js +4 -6
- package/dist/node_modules/remark-rehype/lib/index.js +5 -7
- package/dist/node_modules/remend/dist/index.js +324 -326
- package/dist/node_modules/roughjs/bundled/rough.esm.js +875 -877
- package/dist/node_modules/shiki/dist/bundle-full.js +12 -13
- package/dist/node_modules/shiki/dist/chunk-CtajNgzt.js +8 -10
- package/dist/node_modules/shiki/dist/engine-oniguruma.js +5 -7
- package/dist/node_modules/shiki/dist/langs-bundle-full-DfKZStlK.js +5 -7
- package/dist/node_modules/shiki/dist/themes.js +3 -5
- package/dist/node_modules/shiki/dist/wasm.js +2 -2
- package/dist/node_modules/space-separated-tokens/index.js +3 -5
- package/dist/node_modules/streamdown/dist/chunk-BO2N2NFS.js +699 -701
- package/dist/node_modules/streamdown/dist/highlighted-body-OFNGDK62.js +8 -10
- package/dist/node_modules/streamdown/dist/index.js +1 -1
- package/dist/node_modules/streamdown/dist/mermaid-GHXKKRXX.js +2 -2
- package/dist/node_modules/streamdown/node_modules/marked/lib/marked.esm.js +712 -709
- package/dist/node_modules/stringify-entities/lib/constant/dangerous.js +2 -4
- package/dist/node_modules/stringify-entities/lib/core.js +16 -18
- package/dist/node_modules/stringify-entities/lib/index.js +5 -7
- package/dist/node_modules/stringify-entities/lib/util/format-smart.js +8 -10
- package/dist/node_modules/stringify-entities/lib/util/to-decimal.js +4 -6
- package/dist/node_modules/stringify-entities/lib/util/to-hexadecimal.js +4 -6
- package/dist/node_modules/stringify-entities/lib/util/to-named.js +12 -14
- package/dist/node_modules/style-to-js/cjs/index.js +7 -9
- package/dist/node_modules/style-to-js/cjs/utilities.js +4 -6
- package/dist/node_modules/style-to-object/cjs/index.js +6 -8
- package/dist/node_modules/stylis/src/Enum.js +2 -4
- package/dist/node_modules/stylis/src/Parser.js +36 -38
- package/dist/node_modules/stylis/src/Serializer.js +15 -17
- package/dist/node_modules/stylis/src/Tokenizer.js +51 -53
- package/dist/node_modules/stylis/src/Utility.js +15 -17
- package/dist/node_modules/trim-lines/index.js +8 -10
- package/dist/node_modules/trough/lib/index.js +4 -6
- package/dist/node_modules/ts-dedent/esm/index.js +2 -4
- package/dist/node_modules/unified/lib/callable-instance.js +2 -4
- package/dist/node_modules/unified/lib/index.js +101 -102
- package/dist/node_modules/unified/node_modules/is-plain-obj/index.js +2 -4
- package/dist/node_modules/unist-util-find-after/lib/index.js +4 -6
- package/dist/node_modules/unist-util-is/lib/index.js +29 -31
- package/dist/node_modules/unist-util-position/lib/index.js +5 -7
- package/dist/node_modules/unist-util-stringify-position/lib/index.js +8 -10
- package/dist/node_modules/unist-util-visit/lib/index.js +4 -6
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +2 -4
- package/dist/node_modules/unist-util-visit-parents/lib/index.js +20 -21
- package/dist/node_modules/uuid/dist/esm-browser/native.js +2 -3
- package/dist/node_modules/uuid/dist/esm-browser/rng.js +6 -8
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js +5 -7
- package/dist/node_modules/uuid/dist/esm-browser/v4.js +9 -10
- package/dist/node_modules/vaul/dist/index.js +274 -276
- package/dist/node_modules/vfile/lib/index.js +42 -44
- package/dist/node_modules/vfile/lib/minpath.browser.js +20 -22
- package/dist/node_modules/vfile/lib/minproc.browser.js +3 -5
- package/dist/node_modules/vfile/lib/minurl.browser.js +6 -8
- package/dist/node_modules/vfile/lib/minurl.shared.js +2 -4
- package/dist/node_modules/vfile-location/lib/index.js +5 -7
- package/dist/node_modules/vfile-message/lib/index.js +5 -7
- package/dist/node_modules/vscode-jsonrpc/browser.js +6 -8
- package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +9 -11
- package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +6 -8
- package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +26 -28
- package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +15 -17
- package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +11 -13
- package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +4 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +6 -8
- package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +4 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +4 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +4 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +9 -11
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +29 -31
- package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +6 -8
- package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +4 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +6 -8
- package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +8 -10
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +21 -23
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +12 -14
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +53 -55
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +8 -10
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +10 -12
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +4 -6
- package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +19 -21
- package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +847 -849
- package/dist/node_modules/vscode-uri/lib/esm/index.js +4 -6
- package/dist/node_modules/web-namespaces/index.js +2 -4
- package/dist/node_modules/zwitch/index.js +5 -7
- package/dist/packages/contracts/dist/enums/index.js +12 -14
- package/dist/packages/contracts/dist/enums/registry.enum.js +4 -6
- package/dist/packages/contracts/dist/enums/sort-order.enum.js +4 -6
- package/dist/packages/contracts/dist/enums/user-type.enum.js +4 -6
- package/dist/packages/contracts/dist/enums/workflow-state.enum.js +4 -6
- package/dist/pages/DashboardPage.js +78 -59
- package/dist/pages/DebugPage.js +17 -12
- package/dist/pages/DebugWorkflowDetailsPage.js +105 -91
- package/dist/pages/DebugWorkflowsPage.js +162 -125
- package/dist/pages/EmbedWorkbenchPage.js +63 -48
- package/dist/pages/PreviewWorkbenchPage.js +370 -271
- package/dist/pages/RunsListPage.js +46 -43
- package/dist/pages/RunsPage.js +33 -31
- package/dist/pages/StudioLandingPage.js +132 -97
- package/dist/pages/WorkbenchPage.js +65 -57
- package/dist/pages/WorkflowDebugPage.js +96 -74
- package/dist/pages/WorkspacePage.js +88 -72
- package/dist/pages/WorkspaceRunsPage.js +75 -43
- package/dist/pages/WorkspacesPage.js +17 -22
- package/dist/providers/ComponentOverridesProvider.js +12 -9
- package/dist/providers/InvalidationEventsProvider.js +35 -33
- package/dist/providers/QueryProvider.js +18 -14
- package/dist/providers/SseProvider.js +29 -28
- package/dist/providers/StudioPreferencesProvider.js +54 -0
- package/dist/providers/StudioProvider.js +19 -14
- package/dist/routing/LocalRouter.js +9 -6
- package/dist/services/createApiClient.js +5 -7
- package/dist/services/eventEmitter.js +2 -3
- package/dist/services/index.js +2 -2
- package/dist/types/ai.types.js +5 -7
- package/package.json +8 -8
- package/dist/_virtual/_rolldown/runtime.js +0 -20
- package/dist/features/documents/renderers/SecretInputRenderer.js +0 -89
- package/dist/features/workbench/components/RemoteFileTabsBar.js +0 -19
- package/dist/features/workbench/components/RemoteFileTree.js +0 -59
- package/dist/features/workbench/components/WorkbenchFilesPanel.js +0 -56
- package/dist/features/workbench/components/WorkbenchFloatingPanel.js +0 -40
- package/dist/features/workbench/components/WorkbenchFlowPanel.js +0 -38
- package/dist/features/workbench/components/WorkbenchSecretsPanel.js +0 -153
- package/dist/features/workbench/providers/RemoteFileExplorerProvider.js +0 -145
- package/dist/frontend/studio/node_modules/lodash/_Symbol.js +0 -9
- package/dist/frontend/studio/node_modules/lodash/_baseGetTag.js +0 -15
- package/dist/frontend/studio/node_modules/lodash/_baseTrim.js +0 -13
- package/dist/frontend/studio/node_modules/lodash/_freeGlobal.js +0 -8
- package/dist/frontend/studio/node_modules/lodash/_getRawTag.js +0 -19
- package/dist/frontend/studio/node_modules/lodash/_objectToString.js +0 -12
- package/dist/frontend/studio/node_modules/lodash/_root.js +0 -10
- package/dist/frontend/studio/node_modules/lodash/_trimmedEndIndex.js +0 -13
- package/dist/frontend/studio/node_modules/lodash/isObject.js +0 -12
- package/dist/frontend/studio/node_modules/lodash/isObjectLike.js +0 -11
- package/dist/frontend/studio/node_modules/lodash/isSymbol.js +0 -14
- package/dist/frontend/studio/node_modules/lodash/now.js +0 -12
- package/dist/frontend/studio/node_modules/lodash/toNumber.js +0 -24
- package/dist/node_modules/@dagrejs/dagre/dist/dagre.esm.js +0 -1867
|
@@ -1,110 +1,105 @@
|
|
|
1
|
-
import { __export
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { purify
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { __export, __name, log, setLogLevel } from "./chunk-AGHRB4JF.js";
|
|
2
|
+
import rgba_default from "../../../../khroma/dist/methods/rgba.js";
|
|
3
|
+
import is_dark_default from "../../../../khroma/dist/methods/is_dark.js";
|
|
4
|
+
import lighten_default from "../../../../khroma/dist/methods/lighten.js";
|
|
5
|
+
import darken_default from "../../../../khroma/dist/methods/darken.js";
|
|
6
|
+
import adjust_default from "../../../../khroma/dist/methods/adjust.js";
|
|
7
|
+
import invert_default from "../../../../khroma/dist/methods/invert.js";
|
|
8
|
+
import { purify } from "../../../../dompurify/dist/purify.es.js";
|
|
9
|
+
var frontMatterRegex = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, directiveRegex = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, anyCommentRegex = /\s*%%.*\n/gm, UnknownDiagramError = class extends Error {
|
|
10
|
+
static #e = __name(this, "UnknownDiagramError");
|
|
11
|
+
constructor(h) {
|
|
12
|
+
super(h), this.name = "UnknownDiagramError";
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
for (let
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
let i = {
|
|
30
|
-
depth: n,
|
|
31
|
-
clobber: r
|
|
14
|
+
}, detectors = {}, detectType = /* @__PURE__ */ __name(function(h, W) {
|
|
15
|
+
h = h.replace(frontMatterRegex, "").replace(directiveRegex, "").replace(anyCommentRegex, "\n");
|
|
16
|
+
for (let [G, { detector: K }] of Object.entries(detectors)) if (K(h, W)) return G;
|
|
17
|
+
throw new UnknownDiagramError(`No diagram type detected matching given configuration for text: ${h}`);
|
|
18
|
+
}, "detectType"), registerLazyLoadedDiagrams = /* @__PURE__ */ __name((...h) => {
|
|
19
|
+
for (let { id: W, detector: G, loader: K } of h) addDetector(W, G, K);
|
|
20
|
+
}, "registerLazyLoadedDiagrams"), addDetector = /* @__PURE__ */ __name((h, W, K) => {
|
|
21
|
+
detectors[h] && log.warn(`Detector with key ${h} already exists. Overwriting.`), detectors[h] = {
|
|
22
|
+
detector: W,
|
|
23
|
+
loader: K
|
|
24
|
+
}, log.debug(`Detector with key ${h} added${K ? " with loader" : ""}`);
|
|
25
|
+
}, "addDetector"), getDiagramLoader = /* @__PURE__ */ __name((h) => detectors[h].loader, "getDiagramLoader"), assignWithDepth = /* @__PURE__ */ __name((h, W, { depth: G = 2, clobber: K = !1 } = {}) => {
|
|
26
|
+
let q = {
|
|
27
|
+
depth: G,
|
|
28
|
+
clobber: K
|
|
32
29
|
};
|
|
33
|
-
return Array.isArray(
|
|
34
|
-
|
|
35
|
-
}),
|
|
36
|
-
typeof
|
|
37
|
-
depth:
|
|
38
|
-
clobber:
|
|
39
|
-
})) : (
|
|
40
|
-
}),
|
|
41
|
-
}, "assignWithDepth"),
|
|
30
|
+
return Array.isArray(W) && !Array.isArray(h) ? (W.forEach((W) => assignWithDepth(h, W, q)), h) : Array.isArray(W) && Array.isArray(h) ? (W.forEach((W) => {
|
|
31
|
+
h.includes(W) || h.push(W);
|
|
32
|
+
}), h) : h === void 0 || G <= 0 ? typeof h == "object" && h && typeof W == "object" ? Object.assign(h, W) : W : (W !== void 0 && typeof h == "object" && typeof W == "object" && Object.keys(W).forEach((q) => {
|
|
33
|
+
typeof W[q] == "object" && W[q] !== null && (h[q] === void 0 || typeof h[q] == "object") ? (h[q] === void 0 && (h[q] = Array.isArray(W[q]) ? [] : {}), h[q] = assignWithDepth(h[q], W[q], {
|
|
34
|
+
depth: G - 1,
|
|
35
|
+
clobber: K
|
|
36
|
+
})) : (K || typeof h[q] != "object" && typeof W[q] != "object") && (h[q] = W[q]);
|
|
37
|
+
}), h);
|
|
38
|
+
}, "assignWithDepth"), assignWithDepth_default = assignWithDepth, oldAttributeBackgroundColorOdd = "#ffffff", oldAttributeBackgroundColorEven = "#f2f2f2", mkBorder = /* @__PURE__ */ __name((h, W) => W ? adjust_default(h, {
|
|
42
39
|
s: -40,
|
|
43
40
|
l: 10
|
|
44
|
-
}) :
|
|
41
|
+
}) : adjust_default(h, {
|
|
45
42
|
s: -40,
|
|
46
43
|
l: -10
|
|
47
|
-
}), "mkBorder"),
|
|
48
|
-
static
|
|
49
|
-
t(this, "Theme");
|
|
50
|
-
}
|
|
44
|
+
}), "mkBorder"), Theme = class {
|
|
45
|
+
static #e = __name(this, "Theme");
|
|
51
46
|
constructor() {
|
|
52
47
|
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))";
|
|
53
48
|
}
|
|
54
49
|
updateColors() {
|
|
55
|
-
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor ||
|
|
50
|
+
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || adjust_default(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || adjust_default(this.primaryColor, {
|
|
56
51
|
h: 180,
|
|
57
52
|
l: 5
|
|
58
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
53
|
+
}), this.primaryBorderColor = this.primaryBorderColor || mkBorder(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || mkBorder(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || mkBorder(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || invert_default(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || invert_default(this.tertiaryColor), this.lineColor = this.lineColor || invert_default(this.background), this.arrowheadColor = this.arrowheadColor || invert_default(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 ? darken_default(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 || darken_default(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || invert_default(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 || lighten_default(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 || darken_default(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || darken_default(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || lighten_default(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || lighten_default(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 || adjust_default(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || adjust_default(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || adjust_default(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || adjust_default(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || adjust_default(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || adjust_default(this.primaryColor, {
|
|
59
54
|
h: 210,
|
|
60
55
|
l: 150
|
|
61
|
-
}), this.cScale9 = this.cScale9 ||
|
|
62
|
-
else for (let
|
|
63
|
-
for (let
|
|
64
|
-
for (let
|
|
56
|
+
}), this.cScale9 = this.cScale9 || adjust_default(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || adjust_default(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, { h: 330 }), this.darkMode) for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScale" + h] = darken_default(this["cScale" + h], 75);
|
|
57
|
+
else for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScale" + h] = darken_default(this["cScale" + h], 25);
|
|
58
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScaleInv" + h] = this["cScaleInv" + h] || invert_default(this["cScale" + h]);
|
|
59
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this.darkMode ? this["cScalePeer" + h] = this["cScalePeer" + h] || lighten_default(this["cScale" + h], 10) : this["cScalePeer" + h] = this["cScalePeer" + h] || darken_default(this["cScale" + h], 10);
|
|
65
60
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
66
|
-
for (let
|
|
67
|
-
let
|
|
68
|
-
for (let
|
|
61
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScaleLabel" + h] = this["cScaleLabel" + h] || this.scaleLabelColor;
|
|
62
|
+
let h = this.darkMode ? -4 : -1;
|
|
63
|
+
for (let W = 0; W < 5; W++) this["surface" + W] = this["surface" + W] || adjust_default(this.mainBkg, {
|
|
69
64
|
h: 180,
|
|
70
65
|
s: -15,
|
|
71
|
-
l:
|
|
72
|
-
}), this["surfacePeer" +
|
|
66
|
+
l: h * (5 + W * 3)
|
|
67
|
+
}), this["surfacePeer" + W] = this["surfacePeer" + W] || adjust_default(this.mainBkg, {
|
|
73
68
|
h: 180,
|
|
74
69
|
s: -15,
|
|
75
|
-
l:
|
|
70
|
+
l: h * (8 + W * 3)
|
|
76
71
|
});
|
|
77
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 ||
|
|
72
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || adjust_default(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || adjust_default(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 || adjust_default(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || adjust_default(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || adjust_default(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || adjust_default(this.primaryColor, {
|
|
78
73
|
h: 60,
|
|
79
74
|
l: -10
|
|
80
|
-
}), this.pie8 = this.pie8 ||
|
|
75
|
+
}), this.pie8 = this.pie8 || adjust_default(this.primaryColor, {
|
|
81
76
|
h: -60,
|
|
82
77
|
l: -10
|
|
83
|
-
}), this.pie9 = this.pie9 ||
|
|
78
|
+
}), this.pie9 = this.pie9 || adjust_default(this.primaryColor, {
|
|
84
79
|
h: 120,
|
|
85
80
|
l: 0
|
|
86
|
-
}), this.pie10 = this.pie10 ||
|
|
81
|
+
}), this.pie10 = this.pie10 || adjust_default(this.primaryColor, {
|
|
87
82
|
h: 60,
|
|
88
83
|
l: -20
|
|
89
|
-
}), this.pie11 = this.pie11 ||
|
|
84
|
+
}), this.pie11 = this.pie11 || adjust_default(this.primaryColor, {
|
|
90
85
|
h: -60,
|
|
91
86
|
l: -20
|
|
92
|
-
}), this.pie12 = this.pie12 ||
|
|
87
|
+
}), this.pie12 = this.pie12 || adjust_default(this.primaryColor, {
|
|
93
88
|
h: 120,
|
|
94
89
|
l: -10
|
|
95
|
-
}), 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 ??
|
|
90
|
+
}), 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 ?? adjust_default(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? adjust_default(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? adjust_default(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? adjust_default(this.primaryColor, {
|
|
96
91
|
h: 60,
|
|
97
92
|
l: -30
|
|
98
|
-
}), this.venn5 = this.venn5 ??
|
|
93
|
+
}), this.venn5 = this.venn5 ?? adjust_default(this.primaryColor, {
|
|
99
94
|
h: -60,
|
|
100
95
|
l: -30
|
|
101
|
-
}), this.venn6 = this.venn6 ??
|
|
96
|
+
}), this.venn6 = this.venn6 ?? adjust_default(this.secondaryColor, {
|
|
102
97
|
h: 60,
|
|
103
98
|
l: -30
|
|
104
|
-
}), this.venn7 = this.venn7 ??
|
|
99
|
+
}), this.venn7 = this.venn7 ?? adjust_default(this.primaryColor, {
|
|
105
100
|
h: 120,
|
|
106
101
|
l: -30
|
|
107
|
-
}), this.venn8 = this.venn8 ??
|
|
102
|
+
}), this.venn8 = this.venn8 ?? adjust_default(this.secondaryColor, {
|
|
108
103
|
h: 120,
|
|
109
104
|
l: -30
|
|
110
105
|
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.radar = {
|
|
@@ -118,31 +113,31 @@ var d = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, f = /%{2}{\s*(?:(\w+)\s*:|(\
|
|
|
118
113
|
graticuleOpacity: this.radar?.graticuleOpacity || .3,
|
|
119
114
|
legendBoxSize: this.radar?.legendBoxSize || 12,
|
|
120
115
|
legendFontSize: this.radar?.legendFontSize || 12
|
|
121
|
-
}, 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 ||
|
|
116
|
+
}, 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 || adjust_default(this.primaryColor, {
|
|
122
117
|
r: 5,
|
|
123
118
|
g: 5,
|
|
124
119
|
b: 5
|
|
125
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
120
|
+
}), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
|
|
126
121
|
r: 10,
|
|
127
122
|
g: 10,
|
|
128
123
|
b: 10
|
|
129
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
124
|
+
}), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
|
|
130
125
|
r: 15,
|
|
131
126
|
g: 15,
|
|
132
127
|
b: 15
|
|
133
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
128
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
|
|
134
129
|
r: -5,
|
|
135
130
|
g: -5,
|
|
136
131
|
b: -5
|
|
137
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
132
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
|
|
138
133
|
r: -10,
|
|
139
134
|
g: -10,
|
|
140
135
|
b: -10
|
|
141
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
136
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
|
|
142
137
|
r: -15,
|
|
143
138
|
g: -15,
|
|
144
139
|
b: -15
|
|
145
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
140
|
+
}), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(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 = {
|
|
146
141
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
147
142
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
148
143
|
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
@@ -155,73 +150,71 @@ var d = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, f = /%{2}{\s*(?:(\w+)\s*:|(\
|
|
|
155
150
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
156
151
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
157
152
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
158
|
-
}, 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 ?
|
|
153
|
+
}, 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 ? darken_default(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 || adjust_default(this.primaryColor, { h: -30 }), this.git4 = this.git4 || adjust_default(this.primaryColor, { h: -60 }), this.git5 = this.git5 || adjust_default(this.primaryColor, { h: -90 }), this.git6 = this.git6 || adjust_default(this.primaryColor, { h: 60 }), this.git7 = this.git7 || adjust_default(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = lighten_default(this.git0, 25), this.git1 = lighten_default(this.git1, 25), this.git2 = lighten_default(this.git2, 25), this.git3 = lighten_default(this.git3, 25), this.git4 = lighten_default(this.git4, 25), this.git5 = lighten_default(this.git5, 25), this.git6 = lighten_default(this.git6, 25), this.git7 = lighten_default(this.git7, 25)) : (this.git0 = darken_default(this.git0, 25), this.git1 = darken_default(this.git1, 25), this.git2 = darken_default(this.git2, 25), this.git3 = darken_default(this.git3, 25), this.git4 = darken_default(this.git4, 25), this.git5 = darken_default(this.git5, 25), this.git6 = darken_default(this.git6, 25), this.git7 = darken_default(this.git7, 25)), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(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 || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
|
|
159
154
|
}
|
|
160
|
-
calculate(
|
|
161
|
-
if (typeof
|
|
155
|
+
calculate(h) {
|
|
156
|
+
if (typeof h != "object") {
|
|
162
157
|
this.updateColors();
|
|
163
158
|
return;
|
|
164
159
|
}
|
|
165
|
-
let
|
|
166
|
-
|
|
167
|
-
this[
|
|
168
|
-
}), this.updateColors(),
|
|
169
|
-
this[
|
|
160
|
+
let W = Object.keys(h);
|
|
161
|
+
W.forEach((W) => {
|
|
162
|
+
this[W] = h[W];
|
|
163
|
+
}), this.updateColors(), W.forEach((W) => {
|
|
164
|
+
this[W] = h[W];
|
|
170
165
|
});
|
|
171
166
|
}
|
|
172
|
-
},
|
|
173
|
-
let
|
|
174
|
-
return
|
|
175
|
-
}, "getThemeVariables"),
|
|
176
|
-
static
|
|
177
|
-
t(this, "Theme");
|
|
178
|
-
}
|
|
167
|
+
}, getThemeVariables = /* @__PURE__ */ __name((h) => {
|
|
168
|
+
let W = new Theme();
|
|
169
|
+
return W.calculate(h), W;
|
|
170
|
+
}, "getThemeVariables"), Theme2 = class {
|
|
171
|
+
static #e = __name(this, "Theme");
|
|
179
172
|
constructor() {
|
|
180
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor =
|
|
173
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = lighten_default(this.primaryColor, 16), this.tertiaryColor = adjust_default(this.primaryColor, { h: -160 }), this.primaryBorderColor = invert_default(this.background), this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode), this.primaryTextColor = invert_default(this.primaryColor), this.secondaryTextColor = invert_default(this.secondaryColor), this.tertiaryTextColor = invert_default(this.tertiaryColor), this.lineColor = invert_default(this.background), this.textColor = invert_default(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = lighten_default(invert_default("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = rgba_default(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 = darken_default("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = darken_default(this.sectionBkgColor, 10), this.taskBorderColor = rgba_default(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = rgba_default(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 || lighten_default(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || darken_default(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";
|
|
181
174
|
}
|
|
182
175
|
updateColors() {
|
|
183
|
-
this.secondBkg =
|
|
184
|
-
for (let
|
|
185
|
-
for (let
|
|
186
|
-
for (let
|
|
176
|
+
this.secondBkg = lighten_default(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 = lighten_default(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 = lighten_default(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 = invert_default(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 = adjust_default(this.primaryColor, { h: 64 }), this.fillType3 = adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = adjust_default(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 || adjust_default(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || adjust_default(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || adjust_default(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || adjust_default(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || adjust_default(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || adjust_default(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || adjust_default(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || adjust_default(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, { h: 330 });
|
|
177
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScaleInv" + h] = this["cScaleInv" + h] || invert_default(this["cScale" + h]);
|
|
178
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScalePeer" + h] = this["cScalePeer" + h] || lighten_default(this["cScale" + h], 10);
|
|
179
|
+
for (let h = 0; h < 5; h++) this["surface" + h] = this["surface" + h] || adjust_default(this.mainBkg, {
|
|
187
180
|
h: 30,
|
|
188
181
|
s: -30,
|
|
189
|
-
l: -(-10 +
|
|
190
|
-
}), this["surfacePeer" +
|
|
182
|
+
l: -(-10 + h * 4)
|
|
183
|
+
}), this["surfacePeer" + h] = this["surfacePeer" + h] || adjust_default(this.mainBkg, {
|
|
191
184
|
h: 30,
|
|
192
185
|
s: -30,
|
|
193
|
-
l: -(-7 +
|
|
186
|
+
l: -(-7 + h * 4)
|
|
194
187
|
});
|
|
195
188
|
this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor);
|
|
196
|
-
for (let
|
|
197
|
-
for (let
|
|
189
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScaleLabel" + h] = this["cScaleLabel" + h] || this.scaleLabelColor;
|
|
190
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["pie" + h] = this["cScale" + h];
|
|
198
191
|
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";
|
|
199
|
-
for (let
|
|
200
|
-
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
192
|
+
for (let h = 0; h < 8; h++) this["venn" + (h + 1)] = this["venn" + (h + 1)] ?? lighten_default(this["cScale" + h], 30);
|
|
193
|
+
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
|
|
201
194
|
r: 5,
|
|
202
195
|
g: 5,
|
|
203
196
|
b: 5
|
|
204
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
197
|
+
}), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
|
|
205
198
|
r: 10,
|
|
206
199
|
g: 10,
|
|
207
200
|
b: 10
|
|
208
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
201
|
+
}), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
|
|
209
202
|
r: 15,
|
|
210
203
|
g: 15,
|
|
211
204
|
b: 15
|
|
212
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
205
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
|
|
213
206
|
r: -5,
|
|
214
207
|
g: -5,
|
|
215
208
|
b: -5
|
|
216
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
209
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
|
|
217
210
|
r: -10,
|
|
218
211
|
g: -10,
|
|
219
212
|
b: -10
|
|
220
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
213
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
|
|
221
214
|
r: -15,
|
|
222
215
|
g: -15,
|
|
223
216
|
b: -15
|
|
224
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
217
|
+
}), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(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 = {
|
|
225
218
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
226
219
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
227
220
|
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
@@ -252,103 +245,101 @@ var d = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, f = /%{2}{\s*(?:(\w+)\s*:|(\
|
|
|
252
245
|
graticuleOpacity: this.radar?.graticuleOpacity || .3,
|
|
253
246
|
legendBoxSize: this.radar?.legendBoxSize || 12,
|
|
254
247
|
legendFontSize: this.radar?.legendFontSize || 12
|
|
255
|
-
}, 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 ?
|
|
248
|
+
}, 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 ? darken_default(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = lighten_default(this.secondaryColor, 20), this.git1 = lighten_default(this.pie2 || this.secondaryColor, 20), this.git2 = lighten_default(this.pie3 || this.tertiaryColor, 20), this.git3 = lighten_default(this.pie4 || adjust_default(this.primaryColor, { h: -30 }), 20), this.git4 = lighten_default(this.pie5 || adjust_default(this.primaryColor, { h: -60 }), 20), this.git5 = lighten_default(this.pie6 || adjust_default(this.primaryColor, { h: -90 }), 10), this.git6 = lighten_default(this.pie7 || adjust_default(this.primaryColor, { h: 60 }), 10), this.git7 = lighten_default(this.pie8 || adjust_default(this.primaryColor, { h: 120 }), 20), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || invert_default(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || invert_default(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.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || lighten_default(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || lighten_default(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
|
|
256
249
|
}
|
|
257
|
-
calculate(
|
|
258
|
-
if (typeof
|
|
250
|
+
calculate(h) {
|
|
251
|
+
if (typeof h != "object") {
|
|
259
252
|
this.updateColors();
|
|
260
253
|
return;
|
|
261
254
|
}
|
|
262
|
-
let
|
|
263
|
-
|
|
264
|
-
this[
|
|
265
|
-
}), this.updateColors(),
|
|
266
|
-
this[
|
|
255
|
+
let W = Object.keys(h);
|
|
256
|
+
W.forEach((W) => {
|
|
257
|
+
this[W] = h[W];
|
|
258
|
+
}), this.updateColors(), W.forEach((W) => {
|
|
259
|
+
this[W] = h[W];
|
|
267
260
|
});
|
|
268
261
|
}
|
|
269
|
-
},
|
|
270
|
-
let
|
|
271
|
-
return
|
|
272
|
-
}, "getThemeVariables"),
|
|
273
|
-
static
|
|
274
|
-
t(this, "Theme");
|
|
275
|
-
}
|
|
262
|
+
}, getThemeVariables2 = /* @__PURE__ */ __name((h) => {
|
|
263
|
+
let W = new Theme2();
|
|
264
|
+
return W.calculate(h), W;
|
|
265
|
+
}, "getThemeVariables"), Theme3 = class {
|
|
266
|
+
static #e = __name(this, "Theme");
|
|
276
267
|
constructor() {
|
|
277
|
-
this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor =
|
|
268
|
+
this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = adjust_default(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = adjust_default(this.primaryColor, { h: -160 }), this.primaryBorderColor = mkBorder(this.primaryColor, this.darkMode), this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode), this.primaryTextColor = invert_default(this.primaryColor), this.secondaryTextColor = invert_default(this.secondaryColor), this.tertiaryTextColor = invert_default(this.tertiaryColor), this.lineColor = invert_default(this.background), this.textColor = invert_default(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.primaryBorderColor = mkBorder(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 = rgba_default(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();
|
|
278
269
|
}
|
|
279
270
|
updateColors() {
|
|
280
|
-
this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 ||
|
|
281
|
-
for (let
|
|
282
|
-
for (let
|
|
283
|
-
for (let
|
|
271
|
+
this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || adjust_default(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || adjust_default(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || adjust_default(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || adjust_default(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || adjust_default(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || adjust_default(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || adjust_default(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || adjust_default(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || darken_default(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || darken_default(this.tertiaryColor, 40);
|
|
272
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScale" + h] = darken_default(this["cScale" + h], 10), this["cScalePeer" + h] = this["cScalePeer" + h] || darken_default(this["cScale" + h], 25);
|
|
273
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScaleInv" + h] = this["cScaleInv" + h] || adjust_default(this["cScale" + h], { h: 180 });
|
|
274
|
+
for (let h = 0; h < 5; h++) this["surface" + h] = this["surface" + h] || adjust_default(this.mainBkg, {
|
|
284
275
|
h: 30,
|
|
285
|
-
l: -(5 +
|
|
286
|
-
}), this["surfacePeer" +
|
|
276
|
+
l: -(5 + h * 5)
|
|
277
|
+
}), this["surfacePeer" + h] = this["surfacePeer" + h] || adjust_default(this.mainBkg, {
|
|
287
278
|
h: 30,
|
|
288
|
-
l: -(7 +
|
|
279
|
+
l: -(7 + h * 5)
|
|
289
280
|
});
|
|
290
281
|
if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
|
|
291
|
-
this.cScaleLabel0 = this.cScaleLabel0 ||
|
|
292
|
-
for (let
|
|
282
|
+
this.cScaleLabel0 = this.cScaleLabel0 || invert_default(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || invert_default(this.labelTextColor);
|
|
283
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScaleLabel" + h] = this["cScaleLabel" + h] || this.labelTextColor;
|
|
293
284
|
}
|
|
294
|
-
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 ||
|
|
285
|
+
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 || lighten_default(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || lighten_default(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 = adjust_default(this.primaryColor, { h: 64 }), this.fillType3 = adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = adjust_default(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || adjust_default(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || adjust_default(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || adjust_default(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || adjust_default(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || adjust_default(this.primaryColor, {
|
|
295
286
|
h: 60,
|
|
296
287
|
l: -20
|
|
297
|
-
}), this.pie8 = this.pie8 ||
|
|
288
|
+
}), this.pie8 = this.pie8 || adjust_default(this.primaryColor, {
|
|
298
289
|
h: -60,
|
|
299
290
|
l: -40
|
|
300
|
-
}), this.pie9 = this.pie9 ||
|
|
291
|
+
}), this.pie9 = this.pie9 || adjust_default(this.primaryColor, {
|
|
301
292
|
h: 120,
|
|
302
293
|
l: -40
|
|
303
|
-
}), this.pie10 = this.pie10 ||
|
|
294
|
+
}), this.pie10 = this.pie10 || adjust_default(this.primaryColor, {
|
|
304
295
|
h: 60,
|
|
305
296
|
l: -40
|
|
306
|
-
}), this.pie11 = this.pie11 ||
|
|
297
|
+
}), this.pie11 = this.pie11 || adjust_default(this.primaryColor, {
|
|
307
298
|
h: -90,
|
|
308
299
|
l: -40
|
|
309
|
-
}), this.pie12 = this.pie12 ||
|
|
300
|
+
}), this.pie12 = this.pie12 || adjust_default(this.primaryColor, {
|
|
310
301
|
h: 120,
|
|
311
302
|
l: -30
|
|
312
|
-
}), 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 ??
|
|
303
|
+
}), 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 ?? adjust_default(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? adjust_default(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? adjust_default(this.tertiaryColor, { l: -40 }), this.venn4 = this.venn4 ?? adjust_default(this.primaryColor, {
|
|
313
304
|
h: 60,
|
|
314
305
|
l: -30
|
|
315
|
-
}), this.venn5 = this.venn5 ??
|
|
306
|
+
}), this.venn5 = this.venn5 ?? adjust_default(this.primaryColor, {
|
|
316
307
|
h: -60,
|
|
317
308
|
l: -30
|
|
318
|
-
}), this.venn6 = this.venn6 ??
|
|
309
|
+
}), this.venn6 = this.venn6 ?? adjust_default(this.secondaryColor, {
|
|
319
310
|
h: 60,
|
|
320
311
|
l: -30
|
|
321
|
-
}), this.venn7 = this.venn7 ??
|
|
312
|
+
}), this.venn7 = this.venn7 ?? adjust_default(this.primaryColor, {
|
|
322
313
|
h: 120,
|
|
323
314
|
l: -30
|
|
324
|
-
}), this.venn8 = this.venn8 ??
|
|
315
|
+
}), this.venn8 = this.venn8 ?? adjust_default(this.secondaryColor, {
|
|
325
316
|
h: 120,
|
|
326
317
|
l: -30
|
|
327
|
-
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
318
|
+
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
|
|
328
319
|
r: 5,
|
|
329
320
|
g: 5,
|
|
330
321
|
b: 5
|
|
331
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
322
|
+
}), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
|
|
332
323
|
r: 10,
|
|
333
324
|
g: 10,
|
|
334
325
|
b: 10
|
|
335
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
326
|
+
}), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
|
|
336
327
|
r: 15,
|
|
337
328
|
g: 15,
|
|
338
329
|
b: 15
|
|
339
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
330
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
|
|
340
331
|
r: -5,
|
|
341
332
|
g: -5,
|
|
342
333
|
b: -5
|
|
343
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
334
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
|
|
344
335
|
r: -10,
|
|
345
336
|
g: -10,
|
|
346
337
|
b: -10
|
|
347
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
338
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
|
|
348
339
|
r: -15,
|
|
349
340
|
g: -15,
|
|
350
341
|
b: -15
|
|
351
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
342
|
+
}), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(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 = {
|
|
352
343
|
axisColor: this.radar?.axisColor || this.lineColor,
|
|
353
344
|
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
|
|
354
345
|
axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
|
|
@@ -372,108 +363,106 @@ var d = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, f = /%{2}{\s*(?:(\w+)\s*:|(\
|
|
|
372
363
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
373
364
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
374
365
|
plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
|
|
375
|
-
}, 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 ||
|
|
366
|
+
}, 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 || adjust_default(this.primaryColor, { h: -30 }), this.git4 = this.git4 || adjust_default(this.primaryColor, { h: -60 }), this.git5 = this.git5 || adjust_default(this.primaryColor, { h: -90 }), this.git6 = this.git6 || adjust_default(this.primaryColor, { h: 60 }), this.git7 = this.git7 || adjust_default(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = lighten_default(this.git0, 25), this.git1 = lighten_default(this.git1, 25), this.git2 = lighten_default(this.git2, 25), this.git3 = lighten_default(this.git3, 25), this.git4 = lighten_default(this.git4, 25), this.git5 = lighten_default(this.git5, 25), this.git6 = lighten_default(this.git6, 25), this.git7 = lighten_default(this.git7, 25)) : (this.git0 = darken_default(this.git0, 25), this.git1 = darken_default(this.git1, 25), this.git2 = darken_default(this.git2, 25), this.git3 = darken_default(this.git3, 25), this.git4 = darken_default(this.git4, 25), this.git5 = darken_default(this.git5, 25), this.git6 = darken_default(this.git6, 25), this.git7 = darken_default(this.git7, 25)), this.gitInv0 = this.gitInv0 || darken_default(invert_default(this.git0), 25), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || invert_default(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || invert_default(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.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
|
|
376
367
|
}
|
|
377
|
-
calculate(
|
|
378
|
-
if (Object.keys(this).forEach((
|
|
379
|
-
this[
|
|
380
|
-
}), typeof
|
|
368
|
+
calculate(h) {
|
|
369
|
+
if (Object.keys(this).forEach((h) => {
|
|
370
|
+
this[h] === "calculated" && (this[h] = void 0);
|
|
371
|
+
}), typeof h != "object") {
|
|
381
372
|
this.updateColors();
|
|
382
373
|
return;
|
|
383
374
|
}
|
|
384
|
-
let
|
|
385
|
-
|
|
386
|
-
this[
|
|
387
|
-
}), this.updateColors(),
|
|
388
|
-
this[
|
|
375
|
+
let W = Object.keys(h);
|
|
376
|
+
W.forEach((W) => {
|
|
377
|
+
this[W] = h[W];
|
|
378
|
+
}), this.updateColors(), W.forEach((W) => {
|
|
379
|
+
this[W] = h[W];
|
|
389
380
|
});
|
|
390
381
|
}
|
|
391
|
-
},
|
|
392
|
-
let
|
|
393
|
-
return
|
|
394
|
-
}, "getThemeVariables"),
|
|
395
|
-
static
|
|
396
|
-
t(this, "Theme");
|
|
397
|
-
}
|
|
382
|
+
}, getThemeVariables3 = /* @__PURE__ */ __name((h) => {
|
|
383
|
+
let W = new Theme3();
|
|
384
|
+
return W.calculate(h), W;
|
|
385
|
+
}, "getThemeVariables"), Theme4 = class {
|
|
386
|
+
static #e = __name(this, "Theme");
|
|
398
387
|
constructor() {
|
|
399
|
-
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 =
|
|
388
|
+
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 = lighten_default("#cde498", 10), this.primaryBorderColor = mkBorder(this.primaryColor, this.darkMode), this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode), this.primaryTextColor = invert_default(this.primaryColor), this.secondaryTextColor = invert_default(this.secondaryColor), this.tertiaryTextColor = invert_default(this.primaryColor), this.lineColor = invert_default(this.background), this.textColor = invert_default(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))";
|
|
400
389
|
}
|
|
401
390
|
updateColors() {
|
|
402
|
-
this.actorBorder =
|
|
403
|
-
for (let
|
|
404
|
-
for (let
|
|
391
|
+
this.actorBorder = darken_default(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 || adjust_default(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || adjust_default(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || adjust_default(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || adjust_default(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || adjust_default(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || adjust_default(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || adjust_default(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || adjust_default(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || darken_default(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || darken_default(this.tertiaryColor, 40);
|
|
392
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScale" + h] = darken_default(this["cScale" + h], 10), this["cScalePeer" + h] = this["cScalePeer" + h] || darken_default(this["cScale" + h], 25);
|
|
393
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScaleInv" + h] = this["cScaleInv" + h] || adjust_default(this["cScale" + h], { h: 180 });
|
|
405
394
|
this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
|
|
406
|
-
for (let
|
|
407
|
-
for (let
|
|
395
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScaleLabel" + h] = this["cScaleLabel" + h] || this.scaleLabelColor;
|
|
396
|
+
for (let h = 0; h < 5; h++) this["surface" + h] = this["surface" + h] || adjust_default(this.mainBkg, {
|
|
408
397
|
h: 30,
|
|
409
398
|
s: -30,
|
|
410
|
-
l: -(5 +
|
|
411
|
-
}), this["surfacePeer" +
|
|
399
|
+
l: -(5 + h * 5)
|
|
400
|
+
}), this["surfacePeer" + h] = this["surfacePeer" + h] || adjust_default(this.mainBkg, {
|
|
412
401
|
h: 30,
|
|
413
402
|
s: -30,
|
|
414
|
-
l: -(8 +
|
|
403
|
+
l: -(8 + h * 5)
|
|
415
404
|
});
|
|
416
|
-
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 ||
|
|
405
|
+
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 || lighten_default(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || lighten_default(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 = adjust_default(this.primaryColor, { h: 64 }), this.fillType3 = adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = adjust_default(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 || adjust_default(this.primaryColor, { l: -30 }), this.pie5 = this.pie5 || adjust_default(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || adjust_default(this.tertiaryColor, {
|
|
417
406
|
h: 40,
|
|
418
407
|
l: -40
|
|
419
|
-
}), this.pie7 = this.pie7 ||
|
|
408
|
+
}), this.pie7 = this.pie7 || adjust_default(this.primaryColor, {
|
|
420
409
|
h: 60,
|
|
421
410
|
l: -10
|
|
422
|
-
}), this.pie8 = this.pie8 ||
|
|
411
|
+
}), this.pie8 = this.pie8 || adjust_default(this.primaryColor, {
|
|
423
412
|
h: -60,
|
|
424
413
|
l: -10
|
|
425
|
-
}), this.pie9 = this.pie9 ||
|
|
414
|
+
}), this.pie9 = this.pie9 || adjust_default(this.primaryColor, {
|
|
426
415
|
h: 120,
|
|
427
416
|
l: 0
|
|
428
|
-
}), this.pie10 = this.pie10 ||
|
|
417
|
+
}), this.pie10 = this.pie10 || adjust_default(this.primaryColor, {
|
|
429
418
|
h: 60,
|
|
430
419
|
l: -50
|
|
431
|
-
}), this.pie11 = this.pie11 ||
|
|
420
|
+
}), this.pie11 = this.pie11 || adjust_default(this.primaryColor, {
|
|
432
421
|
h: -60,
|
|
433
422
|
l: -50
|
|
434
|
-
}), this.pie12 = this.pie12 ||
|
|
423
|
+
}), this.pie12 = this.pie12 || adjust_default(this.primaryColor, {
|
|
435
424
|
h: 120,
|
|
436
425
|
l: -50
|
|
437
|
-
}), 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 ??
|
|
426
|
+
}), 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 ?? adjust_default(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? adjust_default(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? adjust_default(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? adjust_default(this.primaryColor, {
|
|
438
427
|
h: 60,
|
|
439
428
|
l: -30
|
|
440
|
-
}), this.venn5 = this.venn5 ??
|
|
429
|
+
}), this.venn5 = this.venn5 ?? adjust_default(this.primaryColor, {
|
|
441
430
|
h: -60,
|
|
442
431
|
l: -30
|
|
443
|
-
}), this.venn6 = this.venn6 ??
|
|
432
|
+
}), this.venn6 = this.venn6 ?? adjust_default(this.secondaryColor, {
|
|
444
433
|
h: 60,
|
|
445
434
|
l: -30
|
|
446
|
-
}), this.venn7 = this.venn7 ??
|
|
435
|
+
}), this.venn7 = this.venn7 ?? adjust_default(this.primaryColor, {
|
|
447
436
|
h: 120,
|
|
448
437
|
l: -30
|
|
449
|
-
}), this.venn8 = this.venn8 ??
|
|
438
|
+
}), this.venn8 = this.venn8 ?? adjust_default(this.secondaryColor, {
|
|
450
439
|
h: 120,
|
|
451
440
|
l: -30
|
|
452
|
-
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
441
|
+
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
|
|
453
442
|
r: 5,
|
|
454
443
|
g: 5,
|
|
455
444
|
b: 5
|
|
456
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
445
|
+
}), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
|
|
457
446
|
r: 10,
|
|
458
447
|
g: 10,
|
|
459
448
|
b: 10
|
|
460
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
449
|
+
}), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
|
|
461
450
|
r: 15,
|
|
462
451
|
g: 15,
|
|
463
452
|
b: 15
|
|
464
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
453
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
|
|
465
454
|
r: -5,
|
|
466
455
|
g: -5,
|
|
467
456
|
b: -5
|
|
468
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
457
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
|
|
469
458
|
r: -10,
|
|
470
459
|
g: -10,
|
|
471
460
|
b: -10
|
|
472
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
461
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
|
|
473
462
|
r: -15,
|
|
474
463
|
g: -15,
|
|
475
464
|
b: -15
|
|
476
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
465
|
+
}), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(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 = {
|
|
477
466
|
startByteColor: this.primaryTextColor,
|
|
478
467
|
endByteColor: this.primaryTextColor,
|
|
479
468
|
labelColor: this.primaryTextColor,
|
|
@@ -504,66 +493,64 @@ var d = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, f = /%{2}{\s*(?:(\w+)\s*:|(\
|
|
|
504
493
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
505
494
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
506
495
|
plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
|
|
507
|
-
}, 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 ||
|
|
496
|
+
}, 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 || adjust_default(this.primaryColor, { h: -30 }), this.git4 = this.git4 || adjust_default(this.primaryColor, { h: -60 }), this.git5 = this.git5 || adjust_default(this.primaryColor, { h: -90 }), this.git6 = this.git6 || adjust_default(this.primaryColor, { h: 60 }), this.git7 = this.git7 || adjust_default(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = lighten_default(this.git0, 25), this.git1 = lighten_default(this.git1, 25), this.git2 = lighten_default(this.git2, 25), this.git3 = lighten_default(this.git3, 25), this.git4 = lighten_default(this.git4, 25), this.git5 = lighten_default(this.git5, 25), this.git6 = lighten_default(this.git6, 25), this.git7 = lighten_default(this.git7, 25)) : (this.git0 = darken_default(this.git0, 25), this.git1 = darken_default(this.git1, 25), this.git2 = darken_default(this.git2, 25), this.git3 = darken_default(this.git3, 25), this.git4 = darken_default(this.git4, 25), this.git5 = darken_default(this.git5, 25), this.git6 = darken_default(this.git6, 25), this.git7 = darken_default(this.git7, 25)), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || invert_default(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || invert_default(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.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
|
|
508
497
|
}
|
|
509
|
-
calculate(
|
|
510
|
-
if (typeof
|
|
498
|
+
calculate(h) {
|
|
499
|
+
if (typeof h != "object") {
|
|
511
500
|
this.updateColors();
|
|
512
501
|
return;
|
|
513
502
|
}
|
|
514
|
-
let
|
|
515
|
-
|
|
516
|
-
this[
|
|
517
|
-
}), this.updateColors(),
|
|
518
|
-
this[
|
|
503
|
+
let W = Object.keys(h);
|
|
504
|
+
W.forEach((W) => {
|
|
505
|
+
this[W] = h[W];
|
|
506
|
+
}), this.updateColors(), W.forEach((W) => {
|
|
507
|
+
this[W] = h[W];
|
|
519
508
|
});
|
|
520
509
|
}
|
|
521
|
-
},
|
|
522
|
-
let
|
|
523
|
-
return
|
|
524
|
-
}, "getThemeVariables"),
|
|
525
|
-
static
|
|
526
|
-
t(this, "Theme");
|
|
527
|
-
}
|
|
510
|
+
}, getThemeVariables4 = /* @__PURE__ */ __name((h) => {
|
|
511
|
+
let W = new Theme4();
|
|
512
|
+
return W.calculate(h), W;
|
|
513
|
+
}, "getThemeVariables"), Theme5 = class {
|
|
514
|
+
static #e = __name(this, "Theme");
|
|
528
515
|
constructor() {
|
|
529
|
-
this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor =
|
|
516
|
+
this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = lighten_default(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = adjust_default(this.primaryColor, { h: -160 }), this.primaryBorderColor = mkBorder(this.primaryColor, this.darkMode), this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode), this.primaryTextColor = invert_default(this.primaryColor), this.secondaryTextColor = invert_default(this.secondaryColor), this.tertiaryTextColor = invert_default(this.tertiaryColor), this.lineColor = invert_default(this.background), this.textColor = invert_default(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 || lighten_default(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))";
|
|
530
517
|
}
|
|
531
518
|
updateColors() {
|
|
532
|
-
this.secondBkg =
|
|
533
|
-
for (let
|
|
534
|
-
for (let
|
|
519
|
+
this.secondBkg = lighten_default(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = lighten_default(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";
|
|
520
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScaleInv" + h] = this["cScaleInv" + h] || invert_default(this["cScale" + h]);
|
|
521
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this.darkMode ? this["cScalePeer" + h] = this["cScalePeer" + h] || lighten_default(this["cScale" + h], 10) : this["cScalePeer" + h] = this["cScalePeer" + h] || darken_default(this["cScale" + h], 10);
|
|
535
522
|
this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
|
|
536
|
-
for (let
|
|
537
|
-
for (let
|
|
538
|
-
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 =
|
|
539
|
-
for (let
|
|
523
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScaleLabel" + h] = this["cScaleLabel" + h] || this.scaleLabelColor;
|
|
524
|
+
for (let h = 0; h < 5; h++) this["surface" + h] = this["surface" + h] || adjust_default(this.mainBkg, { l: -(5 + h * 5) }), this["surfacePeer" + h] = this["surfacePeer" + h] || adjust_default(this.mainBkg, { l: -(8 + h * 5) });
|
|
525
|
+
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 = lighten_default(this.contrast, 30), this.sectionBkgColor2 = lighten_default(this.contrast, 30), this.taskBorderColor = darken_default(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 = lighten_default(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = darken_default(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 = adjust_default(this.primaryColor, { h: 64 }), this.fillType3 = adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = adjust_default(this.secondaryColor, { h: 128 });
|
|
526
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["pie" + h] = this["cScale" + h];
|
|
540
527
|
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";
|
|
541
|
-
for (let
|
|
542
|
-
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
528
|
+
for (let h = 0; h < 8; h++) this["venn" + (h + 1)] = this["venn" + (h + 1)] ?? this["cScale" + h];
|
|
529
|
+
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
|
|
543
530
|
r: 5,
|
|
544
531
|
g: 5,
|
|
545
532
|
b: 5
|
|
546
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
533
|
+
}), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
|
|
547
534
|
r: 10,
|
|
548
535
|
g: 10,
|
|
549
536
|
b: 10
|
|
550
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
537
|
+
}), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
|
|
551
538
|
r: 15,
|
|
552
539
|
g: 15,
|
|
553
540
|
b: 15
|
|
554
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
541
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
|
|
555
542
|
r: -5,
|
|
556
543
|
g: -5,
|
|
557
544
|
b: -5
|
|
558
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
545
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
|
|
559
546
|
r: -10,
|
|
560
547
|
g: -10,
|
|
561
548
|
b: -10
|
|
562
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
549
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
|
|
563
550
|
r: -15,
|
|
564
551
|
g: -15,
|
|
565
552
|
b: -15
|
|
566
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
553
|
+
}), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(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 = {
|
|
567
554
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
568
555
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
569
556
|
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
@@ -587,101 +574,99 @@ var d = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, f = /%{2}{\s*(?:(\w+)\s*:|(\
|
|
|
587
574
|
graticuleOpacity: this.radar?.graticuleOpacity || .3,
|
|
588
575
|
legendBoxSize: this.radar?.legendBoxSize || 12,
|
|
589
576
|
legendFontSize: this.radar?.legendFontSize || 12
|
|
590
|
-
}, 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 =
|
|
577
|
+
}, 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 = darken_default(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || adjust_default(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || adjust_default(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || adjust_default(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || adjust_default(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || adjust_default(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(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.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
|
|
591
578
|
}
|
|
592
|
-
calculate(
|
|
593
|
-
if (typeof
|
|
579
|
+
calculate(h) {
|
|
580
|
+
if (typeof h != "object") {
|
|
594
581
|
this.updateColors();
|
|
595
582
|
return;
|
|
596
583
|
}
|
|
597
|
-
let
|
|
598
|
-
|
|
599
|
-
this[
|
|
600
|
-
}), this.updateColors(),
|
|
601
|
-
this[
|
|
584
|
+
let W = Object.keys(h);
|
|
585
|
+
W.forEach((W) => {
|
|
586
|
+
this[W] = h[W];
|
|
587
|
+
}), this.updateColors(), W.forEach((W) => {
|
|
588
|
+
this[W] = h[W];
|
|
602
589
|
});
|
|
603
590
|
}
|
|
604
|
-
},
|
|
605
|
-
let
|
|
606
|
-
return
|
|
607
|
-
}, "getThemeVariables"),
|
|
608
|
-
static
|
|
609
|
-
t(this, "Theme");
|
|
610
|
-
}
|
|
591
|
+
}, getThemeVariables5 = /* @__PURE__ */ __name((h) => {
|
|
592
|
+
let W = new Theme5();
|
|
593
|
+
return W.calculate(h), W;
|
|
594
|
+
}, "getThemeVariables"), Theme6 = class {
|
|
595
|
+
static #e = __name(this, "Theme");
|
|
611
596
|
constructor() {
|
|
612
|
-
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 =
|
|
597
|
+
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 = mkBorder(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";
|
|
613
598
|
}
|
|
614
599
|
updateColors() {
|
|
615
|
-
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor ||
|
|
600
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || adjust_default(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || adjust_default(this.primaryColor, {
|
|
616
601
|
h: 180,
|
|
617
602
|
l: 5
|
|
618
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
619
|
-
let
|
|
603
|
+
}), this.primaryBorderColor = this.primaryBorderColor || mkBorder(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || mkBorder(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || mkBorder(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || invert_default(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || invert_default(this.tertiaryColor), this.lineColor = this.lineColor || invert_default(this.background), this.arrowheadColor = this.arrowheadColor || invert_default(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 ? darken_default(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 || darken_default(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || invert_default(this.lineColor);
|
|
604
|
+
let h = "#ECECFE", W = "#E9E9F1", G = adjust_default(h, {
|
|
620
605
|
h: 180,
|
|
621
606
|
l: 5
|
|
622
607
|
});
|
|
623
|
-
if (this.sectionBkgColor = this.sectionBkgColor ||
|
|
608
|
+
if (this.sectionBkgColor = this.sectionBkgColor || G, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || W, this.sectionBkgColor2 = this.sectionBkgColor2 || h, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || h, this.activeTaskBorderColor = this.activeTaskBorderColor || h, this.activeTaskBkgColor = this.activeTaskBkgColor || lighten_default(h, 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 || h, this.cScale1 = this.cScale1 || W, this.cScale2 = this.cScale2 || G, this.cScale3 = this.cScale3 || adjust_default(h, { h: 30 }), this.cScale4 = this.cScale4 || adjust_default(h, { h: 60 }), this.cScale5 = this.cScale5 || adjust_default(h, { h: 90 }), this.cScale6 = this.cScale6 || adjust_default(h, { h: 120 }), this.cScale7 = this.cScale7 || adjust_default(h, { h: 150 }), this.cScale8 = this.cScale8 || adjust_default(h, {
|
|
624
609
|
h: 210,
|
|
625
610
|
l: 150
|
|
626
|
-
}), this.cScale9 = this.cScale9 ||
|
|
627
|
-
else for (let
|
|
628
|
-
for (let
|
|
629
|
-
for (let
|
|
611
|
+
}), this.cScale9 = this.cScale9 || adjust_default(h, { h: 270 }), this.cScale10 = this.cScale10 || adjust_default(h, { h: 300 }), this.cScale11 = this.cScale11 || adjust_default(h, { h: 330 }), this.darkMode) for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScale" + h] = darken_default(this["cScale" + h], 75);
|
|
612
|
+
else for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScale" + h] = darken_default(this["cScale" + h], 25);
|
|
613
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScaleInv" + h] = this["cScaleInv" + h] || invert_default(this["cScale" + h]);
|
|
614
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this.darkMode ? this["cScalePeer" + h] = this["cScalePeer" + h] || lighten_default(this["cScale" + h], 10) : this["cScalePeer" + h] = this["cScalePeer" + h] || darken_default(this["cScale" + h], 10);
|
|
630
615
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
631
|
-
for (let
|
|
632
|
-
let
|
|
633
|
-
for (let
|
|
616
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScaleLabel" + h] = this["cScaleLabel" + h] || this.scaleLabelColor;
|
|
617
|
+
let K = this.darkMode ? -4 : -1;
|
|
618
|
+
for (let h = 0; h < 5; h++) this["surface" + h] = this["surface" + h] || adjust_default(this.mainBkg, {
|
|
634
619
|
h: 180,
|
|
635
620
|
s: -15,
|
|
636
|
-
l:
|
|
637
|
-
}), this["surfacePeer" +
|
|
621
|
+
l: K * (5 + h * 3)
|
|
622
|
+
}), this["surfacePeer" + h] = this["surfacePeer" + h] || adjust_default(this.mainBkg, {
|
|
638
623
|
h: 180,
|
|
639
624
|
s: -15,
|
|
640
|
-
l:
|
|
625
|
+
l: K * (8 + h * 3)
|
|
641
626
|
});
|
|
642
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 ||
|
|
627
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || h, this.fillType1 = this.fillType1 || W, this.fillType2 = this.fillType2 || adjust_default(h, { h: 64 }), this.fillType3 = this.fillType3 || adjust_default(W, { h: 64 }), this.fillType4 = this.fillType4 || adjust_default(h, { h: -64 }), this.fillType5 = this.fillType5 || adjust_default(W, { h: -64 }), this.fillType6 = this.fillType6 || adjust_default(h, { h: 128 }), this.fillType7 = this.fillType7 || adjust_default(W, { h: 128 }), this.pie1 = this.pie1 || h, this.pie2 = this.pie2 || W, this.pie3 = this.pie3 || G, this.pie4 = this.pie4 || adjust_default(h, { l: -10 }), this.pie5 = this.pie5 || adjust_default(W, { l: -10 }), this.pie6 = this.pie6 || adjust_default(G, { l: -10 }), this.pie7 = this.pie7 || adjust_default(h, {
|
|
643
628
|
h: 60,
|
|
644
629
|
l: -10
|
|
645
|
-
}), this.pie8 = this.pie8 ||
|
|
630
|
+
}), this.pie8 = this.pie8 || adjust_default(h, {
|
|
646
631
|
h: -60,
|
|
647
632
|
l: -10
|
|
648
|
-
}), this.pie9 = this.pie9 ||
|
|
633
|
+
}), this.pie9 = this.pie9 || adjust_default(h, {
|
|
649
634
|
h: 120,
|
|
650
635
|
l: 0
|
|
651
|
-
}), this.pie10 = this.pie10 ||
|
|
636
|
+
}), this.pie10 = this.pie10 || adjust_default(h, {
|
|
652
637
|
h: 60,
|
|
653
638
|
l: -20
|
|
654
|
-
}), this.pie11 = this.pie11 ||
|
|
639
|
+
}), this.pie11 = this.pie11 || adjust_default(h, {
|
|
655
640
|
h: -60,
|
|
656
641
|
l: -20
|
|
657
|
-
}), this.pie12 = this.pie12 ||
|
|
642
|
+
}), this.pie12 = this.pie12 || adjust_default(h, {
|
|
658
643
|
h: 120,
|
|
659
644
|
l: -10
|
|
660
|
-
}), 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 ||
|
|
645
|
+
}), 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 || h, this.quadrant2Fill = this.quadrant2Fill || adjust_default(h, {
|
|
661
646
|
r: 5,
|
|
662
647
|
g: 5,
|
|
663
648
|
b: 5
|
|
664
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
649
|
+
}), this.quadrant3Fill = this.quadrant3Fill || adjust_default(h, {
|
|
665
650
|
r: 10,
|
|
666
651
|
g: 10,
|
|
667
652
|
b: 10
|
|
668
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
653
|
+
}), this.quadrant4Fill = this.quadrant4Fill || adjust_default(h, {
|
|
669
654
|
r: 15,
|
|
670
655
|
g: 15,
|
|
671
656
|
b: 15
|
|
672
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
657
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
|
|
673
658
|
r: -5,
|
|
674
659
|
g: -5,
|
|
675
660
|
b: -5
|
|
676
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
661
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
|
|
677
662
|
r: -10,
|
|
678
663
|
g: -10,
|
|
679
664
|
b: -10
|
|
680
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
665
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
|
|
681
666
|
r: -15,
|
|
682
667
|
g: -15,
|
|
683
668
|
b: -15
|
|
684
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
669
|
+
}), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(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 = {
|
|
685
670
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
686
671
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
687
672
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
@@ -693,96 +678,94 @@ var d = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, f = /%{2}{\s*(?:(\w+)\s*:|(\
|
|
|
693
678
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
694
679
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
695
680
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
696
|
-
}, this.requirementBackground = this.requirementBackground ||
|
|
681
|
+
}, this.requirementBackground = this.requirementBackground || h, 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 ? darken_default(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || h, this.git1 = this.git1 || W, this.git2 = this.git2 || G, this.git3 = this.git3 || adjust_default(h, { h: -30 }), this.git4 = this.git4 || adjust_default(h, { h: -60 }), this.git5 = this.git5 || adjust_default(h, { h: -90 }), this.git6 = this.git6 || adjust_default(h, { h: 60 }), this.git7 = this.git7 || adjust_default(h, { h: 120 }), this.darkMode ? (this.git0 = lighten_default(this.git0, 25), this.git1 = lighten_default(this.git1, 25), this.git2 = lighten_default(this.git2, 25), this.git3 = lighten_default(this.git3, 25), this.git4 = lighten_default(this.git4, 25), this.git5 = lighten_default(this.git5, 25), this.git6 = lighten_default(this.git6, 25), this.git7 = lighten_default(this.git7, 25)) : (this.git0 = darken_default(this.git0, 25), this.git1 = darken_default(this.git1, 25), this.git2 = darken_default(this.git2, 25), this.git3 = darken_default(this.git3, 25), this.git4 = darken_default(this.git4, 25), this.git5 = darken_default(this.git5, 25), this.git6 = darken_default(this.git6, 25), this.git7 = darken_default(this.git7, 25)), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(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 || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
|
|
697
682
|
}
|
|
698
|
-
calculate(
|
|
699
|
-
if (typeof
|
|
683
|
+
calculate(h) {
|
|
684
|
+
if (typeof h != "object") {
|
|
700
685
|
this.updateColors();
|
|
701
686
|
return;
|
|
702
687
|
}
|
|
703
|
-
let
|
|
704
|
-
|
|
705
|
-
this[
|
|
706
|
-
}), this.updateColors(),
|
|
707
|
-
this[
|
|
688
|
+
let W = Object.keys(h);
|
|
689
|
+
W.forEach((W) => {
|
|
690
|
+
this[W] = h[W];
|
|
691
|
+
}), this.updateColors(), W.forEach((W) => {
|
|
692
|
+
this[W] = h[W];
|
|
708
693
|
});
|
|
709
694
|
}
|
|
710
|
-
},
|
|
711
|
-
let
|
|
712
|
-
return
|
|
713
|
-
}, "getThemeVariables"),
|
|
714
|
-
static
|
|
715
|
-
t(this, "Theme");
|
|
716
|
-
}
|
|
695
|
+
}, getThemeVariables6 = /* @__PURE__ */ __name((h) => {
|
|
696
|
+
let W = new Theme6();
|
|
697
|
+
return W.calculate(h), W;
|
|
698
|
+
}, "getThemeVariables"), Theme7 = class {
|
|
699
|
+
static #e = __name(this, "Theme");
|
|
717
700
|
constructor() {
|
|
718
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor =
|
|
701
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = lighten_default(this.primaryColor, 16), this.tertiaryColor = adjust_default(this.primaryColor, { h: -160 }), this.primaryBorderColor = invert_default(this.background), this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode), this.primaryTextColor = invert_default(this.primaryColor), this.secondaryTextColor = invert_default(this.secondaryColor), this.tertiaryTextColor = invert_default(this.tertiaryColor), this.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = lighten_default(invert_default("#323D47"), 10), this.border1 = "#ccc", this.border2 = rgba_default(255, 255, 255, .25), this.arrowheadColor = invert_default(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";
|
|
719
702
|
}
|
|
720
703
|
updateColors() {
|
|
721
|
-
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor ||
|
|
704
|
+
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || adjust_default(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || adjust_default(this.primaryColor, {
|
|
722
705
|
h: 180,
|
|
723
706
|
l: 5
|
|
724
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
707
|
+
}), this.primaryBorderColor = this.primaryBorderColor || mkBorder(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || mkBorder(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || mkBorder(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || invert_default(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || invert_default(this.tertiaryColor), this.lineColor = this.lineColor || invert_default(this.background), this.arrowheadColor = this.arrowheadColor || invert_default(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 ? darken_default(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 || darken_default(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || invert_default(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 || lighten_default(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 || adjust_default(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || adjust_default(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || adjust_default(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || adjust_default(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || adjust_default(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || adjust_default(this.primaryColor, {
|
|
725
708
|
h: 210,
|
|
726
709
|
l: 150
|
|
727
|
-
}), this.cScale9 = this.cScale9 ||
|
|
728
|
-
else for (let
|
|
729
|
-
for (let
|
|
730
|
-
for (let
|
|
710
|
+
}), this.cScale9 = this.cScale9 || adjust_default(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || adjust_default(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, { h: 330 }), this.darkMode) for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScale" + h] = darken_default(this["cScale" + h], 75);
|
|
711
|
+
else for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScale" + h] = darken_default(this["cScale" + h], 25);
|
|
712
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScaleInv" + h] = this["cScaleInv" + h] || invert_default(this["cScale" + h]);
|
|
713
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this.darkMode ? this["cScalePeer" + h] = this["cScalePeer" + h] || lighten_default(this["cScale" + h], 10) : this["cScalePeer" + h] = this["cScalePeer" + h] || darken_default(this["cScale" + h], 10);
|
|
731
714
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
732
|
-
for (let
|
|
733
|
-
let
|
|
734
|
-
for (let
|
|
715
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScaleLabel" + h] = this["cScaleLabel" + h] || this.scaleLabelColor;
|
|
716
|
+
let h = this.darkMode ? -4 : -1;
|
|
717
|
+
for (let W = 0; W < 5; W++) this["surface" + W] = this["surface" + W] || adjust_default(this.mainBkg, {
|
|
735
718
|
h: 180,
|
|
736
719
|
s: -15,
|
|
737
|
-
l:
|
|
738
|
-
}), this["surfacePeer" +
|
|
720
|
+
l: h * (5 + W * 3)
|
|
721
|
+
}), this["surfacePeer" + W] = this["surfacePeer" + W] || adjust_default(this.mainBkg, {
|
|
739
722
|
h: 180,
|
|
740
723
|
s: -15,
|
|
741
|
-
l:
|
|
724
|
+
l: h * (8 + W * 3)
|
|
742
725
|
});
|
|
743
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 ||
|
|
726
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || adjust_default(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || adjust_default(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 || adjust_default(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || adjust_default(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || adjust_default(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || adjust_default(this.primaryColor, {
|
|
744
727
|
h: 60,
|
|
745
728
|
l: -10
|
|
746
|
-
}), this.pie8 = this.pie8 ||
|
|
729
|
+
}), this.pie8 = this.pie8 || adjust_default(this.primaryColor, {
|
|
747
730
|
h: -60,
|
|
748
731
|
l: -10
|
|
749
|
-
}), this.pie9 = this.pie9 ||
|
|
732
|
+
}), this.pie9 = this.pie9 || adjust_default(this.primaryColor, {
|
|
750
733
|
h: 120,
|
|
751
734
|
l: 0
|
|
752
|
-
}), this.pie10 = this.pie10 ||
|
|
735
|
+
}), this.pie10 = this.pie10 || adjust_default(this.primaryColor, {
|
|
753
736
|
h: 60,
|
|
754
737
|
l: -20
|
|
755
|
-
}), this.pie11 = this.pie11 ||
|
|
738
|
+
}), this.pie11 = this.pie11 || adjust_default(this.primaryColor, {
|
|
756
739
|
h: -60,
|
|
757
740
|
l: -20
|
|
758
|
-
}), this.pie12 = this.pie12 ||
|
|
741
|
+
}), this.pie12 = this.pie12 || adjust_default(this.primaryColor, {
|
|
759
742
|
h: 120,
|
|
760
743
|
l: -10
|
|
761
|
-
}), 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 ||
|
|
744
|
+
}), 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 || adjust_default(this.primaryColor, {
|
|
762
745
|
r: 5,
|
|
763
746
|
g: 5,
|
|
764
747
|
b: 5
|
|
765
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
748
|
+
}), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
|
|
766
749
|
r: 10,
|
|
767
750
|
g: 10,
|
|
768
751
|
b: 10
|
|
769
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
752
|
+
}), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
|
|
770
753
|
r: 15,
|
|
771
754
|
g: 15,
|
|
772
755
|
b: 15
|
|
773
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
756
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
|
|
774
757
|
r: -5,
|
|
775
758
|
g: -5,
|
|
776
759
|
b: -5
|
|
777
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
760
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
|
|
778
761
|
r: -10,
|
|
779
762
|
g: -10,
|
|
780
763
|
b: -10
|
|
781
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
764
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
|
|
782
765
|
r: -15,
|
|
783
766
|
g: -15,
|
|
784
767
|
b: -15
|
|
785
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
768
|
+
}), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(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 = {
|
|
786
769
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
787
770
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
788
771
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
@@ -794,100 +777,98 @@ var d = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, f = /%{2}{\s*(?:(\w+)\s*:|(\
|
|
|
794
777
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
795
778
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
796
779
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
797
|
-
}, 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 ?
|
|
780
|
+
}, 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 ? darken_default(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 = lighten_default(this.git0, 25), this.git1 = lighten_default(this.git1, 25), this.git2 = lighten_default(this.git2, 25), this.git3 = lighten_default(this.git3, 25), this.git4 = lighten_default(this.git4, 25), this.git5 = lighten_default(this.git5, 25), this.git6 = lighten_default(this.git6, 25), this.git7 = lighten_default(this.git7, 25)) : (this.git0 = darken_default(this.git0, 25), this.git1 = darken_default(this.git1, 25), this.git2 = darken_default(this.git2, 25), this.git3 = darken_default(this.git3, 25), this.git4 = darken_default(this.git4, 25), this.git5 = darken_default(this.git5, 25), this.git6 = darken_default(this.git6, 25), this.git7 = darken_default(this.git7, 25)), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(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 || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
|
|
798
781
|
}
|
|
799
|
-
calculate(
|
|
800
|
-
if (typeof
|
|
782
|
+
calculate(h) {
|
|
783
|
+
if (typeof h != "object") {
|
|
801
784
|
this.updateColors();
|
|
802
785
|
return;
|
|
803
786
|
}
|
|
804
|
-
let
|
|
805
|
-
|
|
806
|
-
this[
|
|
807
|
-
}), this.updateColors(),
|
|
808
|
-
this[
|
|
787
|
+
let W = Object.keys(h);
|
|
788
|
+
W.forEach((W) => {
|
|
789
|
+
this[W] = h[W];
|
|
790
|
+
}), this.updateColors(), W.forEach((W) => {
|
|
791
|
+
this[W] = h[W];
|
|
809
792
|
});
|
|
810
793
|
}
|
|
811
|
-
},
|
|
812
|
-
let
|
|
813
|
-
return
|
|
814
|
-
}, "getThemeVariables"),
|
|
815
|
-
static
|
|
816
|
-
t(this, "Theme");
|
|
817
|
-
}
|
|
794
|
+
}, getThemeVariables7 = /* @__PURE__ */ __name((h) => {
|
|
795
|
+
let W = new Theme7();
|
|
796
|
+
return W.calculate(h), W;
|
|
797
|
+
}, "getThemeVariables"), Theme8 = class {
|
|
798
|
+
static #e = __name(this, "Theme");
|
|
818
799
|
constructor() {
|
|
819
|
-
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 =
|
|
800
|
+
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 = mkBorder("#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";
|
|
820
801
|
}
|
|
821
802
|
updateColors() {
|
|
822
|
-
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor ||
|
|
803
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || adjust_default(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || adjust_default(this.primaryColor, {
|
|
823
804
|
h: 180,
|
|
824
805
|
l: 5
|
|
825
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
826
|
-
let
|
|
806
|
+
}), this.primaryBorderColor = this.primaryBorderColor || mkBorder(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || mkBorder(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || mkBorder(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || invert_default(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || invert_default(this.tertiaryColor), this.lineColor = this.lineColor || invert_default(this.background), this.arrowheadColor = this.arrowheadColor || invert_default(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 ? darken_default(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 || darken_default(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || invert_default(this.lineColor);
|
|
807
|
+
let h = "#ECECFE", W = "#E9E9F1", G = adjust_default(h, {
|
|
827
808
|
h: 180,
|
|
828
809
|
l: 5
|
|
829
810
|
});
|
|
830
|
-
this.sectionBkgColor = this.sectionBkgColor ||
|
|
831
|
-
for (let
|
|
832
|
-
if (this.darkMode) for (let
|
|
833
|
-
else for (let
|
|
834
|
-
for (let
|
|
835
|
-
for (let
|
|
811
|
+
this.sectionBkgColor = this.sectionBkgColor || G, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || W, this.sectionBkgColor2 = this.sectionBkgColor2 || h, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || h, this.activeTaskBorderColor = this.activeTaskBorderColor || h, this.activeTaskBkgColor = this.activeTaskBkgColor || lighten_default(h, 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;
|
|
812
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScale" + h] = this.mainBkg;
|
|
813
|
+
if (this.darkMode) for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScale" + h] = darken_default(this["cScale" + h], 75);
|
|
814
|
+
else for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScale" + h] = darken_default(this["cScale" + h], 25);
|
|
815
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScaleInv" + h] = this["cScaleInv" + h] || invert_default(this["cScale" + h]);
|
|
816
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this.darkMode ? this["cScalePeer" + h] = this["cScalePeer" + h] || lighten_default(this["cScale" + h], 10) : this["cScalePeer" + h] = this["cScalePeer" + h] || darken_default(this["cScale" + h], 10);
|
|
836
817
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
837
|
-
for (let
|
|
838
|
-
let
|
|
839
|
-
for (let
|
|
818
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScaleLabel" + h] = this["cScaleLabel" + h] || this.scaleLabelColor;
|
|
819
|
+
let K = this.darkMode ? -4 : -1;
|
|
820
|
+
for (let h = 0; h < 5; h++) this["surface" + h] = this["surface" + h] || adjust_default(this.mainBkg, {
|
|
840
821
|
h: 180,
|
|
841
822
|
s: -15,
|
|
842
|
-
l:
|
|
843
|
-
}), this["surfacePeer" +
|
|
823
|
+
l: K * (5 + h * 3)
|
|
824
|
+
}), this["surfacePeer" + h] = this["surfacePeer" + h] || adjust_default(this.mainBkg, {
|
|
844
825
|
h: 180,
|
|
845
826
|
s: -15,
|
|
846
|
-
l:
|
|
827
|
+
l: K * (8 + h * 3)
|
|
847
828
|
});
|
|
848
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 ||
|
|
829
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || h, this.fillType1 = this.fillType1 || W, this.fillType2 = this.fillType2 || adjust_default(h, { h: 64 }), this.fillType3 = this.fillType3 || adjust_default(W, { h: 64 }), this.fillType4 = this.fillType4 || adjust_default(h, { h: -64 }), this.fillType5 = this.fillType5 || adjust_default(W, { h: -64 }), this.fillType6 = this.fillType6 || adjust_default(h, { h: 128 }), this.fillType7 = this.fillType7 || adjust_default(W, { h: 128 }), this.pie1 = this.pie1 || h, this.pie2 = this.pie2 || W, this.pie3 = this.pie3 || G, this.pie4 = this.pie4 || adjust_default(h, { l: -10 }), this.pie5 = this.pie5 || adjust_default(W, { l: -10 }), this.pie6 = this.pie6 || adjust_default(G, { l: -10 }), this.pie7 = this.pie7 || adjust_default(h, {
|
|
849
830
|
h: 60,
|
|
850
831
|
l: -10
|
|
851
|
-
}), this.pie8 = this.pie8 ||
|
|
832
|
+
}), this.pie8 = this.pie8 || adjust_default(h, {
|
|
852
833
|
h: -60,
|
|
853
834
|
l: -10
|
|
854
|
-
}), this.pie9 = this.pie9 ||
|
|
835
|
+
}), this.pie9 = this.pie9 || adjust_default(h, {
|
|
855
836
|
h: 120,
|
|
856
837
|
l: 0
|
|
857
|
-
}), this.pie10 = this.pie10 ||
|
|
838
|
+
}), this.pie10 = this.pie10 || adjust_default(h, {
|
|
858
839
|
h: 60,
|
|
859
840
|
l: -20
|
|
860
|
-
}), this.pie11 = this.pie11 ||
|
|
841
|
+
}), this.pie11 = this.pie11 || adjust_default(h, {
|
|
861
842
|
h: -60,
|
|
862
843
|
l: -20
|
|
863
|
-
}), this.pie12 = this.pie12 ||
|
|
844
|
+
}), this.pie12 = this.pie12 || adjust_default(h, {
|
|
864
845
|
h: 120,
|
|
865
846
|
l: -10
|
|
866
|
-
}), 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 ||
|
|
847
|
+
}), 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 || h, this.quadrant2Fill = this.quadrant2Fill || adjust_default(h, {
|
|
867
848
|
r: 5,
|
|
868
849
|
g: 5,
|
|
869
850
|
b: 5
|
|
870
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
851
|
+
}), this.quadrant3Fill = this.quadrant3Fill || adjust_default(h, {
|
|
871
852
|
r: 10,
|
|
872
853
|
g: 10,
|
|
873
854
|
b: 10
|
|
874
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
855
|
+
}), this.quadrant4Fill = this.quadrant4Fill || adjust_default(h, {
|
|
875
856
|
r: 15,
|
|
876
857
|
g: 15,
|
|
877
858
|
b: 15
|
|
878
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
859
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
|
|
879
860
|
r: -5,
|
|
880
861
|
g: -5,
|
|
881
862
|
b: -5
|
|
882
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
863
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
|
|
883
864
|
r: -10,
|
|
884
865
|
g: -10,
|
|
885
866
|
b: -10
|
|
886
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
867
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
|
|
887
868
|
r: -15,
|
|
888
869
|
g: -15,
|
|
889
870
|
b: -15
|
|
890
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
871
|
+
}), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(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 = {
|
|
891
872
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
892
873
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
893
874
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
@@ -899,96 +880,94 @@ var d = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, f = /%{2}{\s*(?:(\w+)\s*:|(\
|
|
|
899
880
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
900
881
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
901
882
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
902
|
-
}, this.requirementBackground = this.requirementBackground ||
|
|
883
|
+
}, this.requirementBackground = this.requirementBackground || h, 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 ? darken_default(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#FFFFFF", this.git0 = this.git0 || h, this.git1 = this.git1 || W, this.git2 = this.git2 || G, this.git3 = this.git3 || adjust_default(h, { h: -30 }), this.git4 = this.git4 || adjust_default(h, { h: -60 }), this.git5 = this.git5 || adjust_default(h, { h: -90 }), this.git6 = this.git6 || adjust_default(h, { h: 60 }), this.git7 = this.git7 || adjust_default(h, { h: 120 }), this.darkMode ? (this.git0 = lighten_default(this.git0, 25), this.git1 = lighten_default(this.git1, 25), this.git2 = lighten_default(this.git2, 25), this.git3 = lighten_default(this.git3, 25), this.git4 = lighten_default(this.git4, 25), this.git5 = lighten_default(this.git5, 25), this.git6 = lighten_default(this.git6, 25), this.git7 = lighten_default(this.git7, 25)) : (this.git0 = darken_default(this.git0, 25), this.git1 = darken_default(this.git1, 25), this.git2 = darken_default(this.git2, 25), this.git3 = darken_default(this.git3, 25), this.git4 = darken_default(this.git4, 25), this.git5 = darken_default(this.git5, 25), this.git6 = darken_default(this.git6, 25), this.git7 = darken_default(this.git7, 25)), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(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 || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
|
|
903
884
|
}
|
|
904
|
-
calculate(
|
|
905
|
-
if (typeof
|
|
885
|
+
calculate(h) {
|
|
886
|
+
if (typeof h != "object") {
|
|
906
887
|
this.updateColors();
|
|
907
888
|
return;
|
|
908
889
|
}
|
|
909
|
-
let
|
|
910
|
-
|
|
911
|
-
this[
|
|
912
|
-
}), this.updateColors(),
|
|
913
|
-
this[
|
|
890
|
+
let W = Object.keys(h);
|
|
891
|
+
W.forEach((W) => {
|
|
892
|
+
this[W] = h[W];
|
|
893
|
+
}), this.updateColors(), W.forEach((W) => {
|
|
894
|
+
this[W] = h[W];
|
|
914
895
|
});
|
|
915
896
|
}
|
|
916
|
-
},
|
|
917
|
-
let
|
|
918
|
-
return
|
|
919
|
-
}, "getThemeVariables"),
|
|
920
|
-
static
|
|
921
|
-
t(this, "Theme");
|
|
922
|
-
}
|
|
897
|
+
}, getThemeVariables8 = /* @__PURE__ */ __name((h) => {
|
|
898
|
+
let W = new Theme8();
|
|
899
|
+
return W.calculate(h), W;
|
|
900
|
+
}, "getThemeVariables"), Theme9 = class {
|
|
901
|
+
static #e = __name(this, "Theme");
|
|
923
902
|
constructor() {
|
|
924
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor =
|
|
903
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = lighten_default(this.primaryColor, 16), this.tertiaryColor = adjust_default(this.primaryColor, { h: -160 }), this.primaryBorderColor = invert_default(this.background), this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode), this.primaryTextColor = invert_default(this.primaryColor), this.secondaryTextColor = invert_default(this.secondaryColor), this.tertiaryTextColor = invert_default(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = lighten_default(invert_default("#323D47"), 10), this.border1 = "#ccc", this.border2 = rgba_default(255, 255, 255, .25), this.arrowheadColor = invert_default(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";
|
|
925
904
|
}
|
|
926
905
|
updateColors() {
|
|
927
|
-
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor ||
|
|
906
|
+
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || adjust_default(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || adjust_default(this.primaryColor, {
|
|
928
907
|
h: 180,
|
|
929
908
|
l: 5
|
|
930
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
909
|
+
}), this.primaryBorderColor = this.primaryBorderColor || mkBorder(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || mkBorder(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || mkBorder(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || invert_default(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || invert_default(this.tertiaryColor), this.lineColor = this.lineColor || invert_default(this.background), this.arrowheadColor = this.arrowheadColor || invert_default(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 ? darken_default(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 || darken_default(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || invert_default(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 || lighten_default(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 || adjust_default(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || adjust_default(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || adjust_default(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || adjust_default(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || adjust_default(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || adjust_default(this.primaryColor, {
|
|
931
910
|
h: 210,
|
|
932
911
|
l: 150
|
|
933
|
-
}), this.cScale9 = this.cScale9 ||
|
|
934
|
-
else for (let
|
|
935
|
-
for (let
|
|
936
|
-
for (let
|
|
912
|
+
}), this.cScale9 = this.cScale9 || adjust_default(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || adjust_default(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, { h: 330 }), this.darkMode) for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScale" + h] = darken_default(this["cScale" + h], 75);
|
|
913
|
+
else for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScale" + h] = darken_default(this["cScale" + h], 25);
|
|
914
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScaleInv" + h] = this["cScaleInv" + h] || invert_default(this["cScale" + h]);
|
|
915
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this.darkMode ? this["cScalePeer" + h] = this["cScalePeer" + h] || lighten_default(this["cScale" + h], 10) : this["cScalePeer" + h] = this["cScalePeer" + h] || darken_default(this["cScale" + h], 10);
|
|
937
916
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
938
|
-
for (let
|
|
939
|
-
let
|
|
940
|
-
for (let
|
|
917
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScaleLabel" + h] = this["cScaleLabel" + h] || this.scaleLabelColor;
|
|
918
|
+
let h = this.darkMode ? -4 : -1;
|
|
919
|
+
for (let W = 0; W < 5; W++) this["surface" + W] = this["surface" + W] || adjust_default(this.mainBkg, {
|
|
941
920
|
h: 180,
|
|
942
921
|
s: -15,
|
|
943
|
-
l:
|
|
944
|
-
}), this["surfacePeer" +
|
|
922
|
+
l: h * (5 + W * 3)
|
|
923
|
+
}), this["surfacePeer" + W] = this["surfacePeer" + W] || adjust_default(this.mainBkg, {
|
|
945
924
|
h: 180,
|
|
946
925
|
s: -15,
|
|
947
|
-
l:
|
|
926
|
+
l: h * (8 + W * 3)
|
|
948
927
|
});
|
|
949
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 ||
|
|
928
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || adjust_default(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || adjust_default(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 || adjust_default(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || adjust_default(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || adjust_default(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || adjust_default(this.primaryColor, {
|
|
950
929
|
h: 60,
|
|
951
930
|
l: -10
|
|
952
|
-
}), this.pie8 = this.pie8 ||
|
|
931
|
+
}), this.pie8 = this.pie8 || adjust_default(this.primaryColor, {
|
|
953
932
|
h: -60,
|
|
954
933
|
l: -10
|
|
955
|
-
}), this.pie9 = this.pie9 ||
|
|
934
|
+
}), this.pie9 = this.pie9 || adjust_default(this.primaryColor, {
|
|
956
935
|
h: 120,
|
|
957
936
|
l: 0
|
|
958
|
-
}), this.pie10 = this.pie10 ||
|
|
937
|
+
}), this.pie10 = this.pie10 || adjust_default(this.primaryColor, {
|
|
959
938
|
h: 60,
|
|
960
939
|
l: -20
|
|
961
|
-
}), this.pie11 = this.pie11 ||
|
|
940
|
+
}), this.pie11 = this.pie11 || adjust_default(this.primaryColor, {
|
|
962
941
|
h: -60,
|
|
963
942
|
l: -20
|
|
964
|
-
}), this.pie12 = this.pie12 ||
|
|
943
|
+
}), this.pie12 = this.pie12 || adjust_default(this.primaryColor, {
|
|
965
944
|
h: 120,
|
|
966
945
|
l: -10
|
|
967
|
-
}), 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 ||
|
|
946
|
+
}), 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 || adjust_default(this.primaryColor, {
|
|
968
947
|
r: 5,
|
|
969
948
|
g: 5,
|
|
970
949
|
b: 5
|
|
971
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
950
|
+
}), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
|
|
972
951
|
r: 10,
|
|
973
952
|
g: 10,
|
|
974
953
|
b: 10
|
|
975
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
954
|
+
}), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
|
|
976
955
|
r: 15,
|
|
977
956
|
g: 15,
|
|
978
957
|
b: 15
|
|
979
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
958
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
|
|
980
959
|
r: -5,
|
|
981
960
|
g: -5,
|
|
982
961
|
b: -5
|
|
983
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
962
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
|
|
984
963
|
r: -10,
|
|
985
964
|
g: -10,
|
|
986
965
|
b: -10
|
|
987
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
966
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
|
|
988
967
|
r: -15,
|
|
989
968
|
g: -15,
|
|
990
969
|
b: -15
|
|
991
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
970
|
+
}), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(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 = {
|
|
992
971
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
993
972
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
994
973
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
@@ -1000,29 +979,27 @@ var d = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, f = /%{2}{\s*(?:(\w+)\s*:|(\
|
|
|
1000
979
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1001
980
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1002
981
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
1003
|
-
}, 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 ?
|
|
982
|
+
}, 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 ? darken_default(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 || adjust_default(this.primaryColor, { h: -30 }), this.git4 = this.git4 || adjust_default(this.primaryColor, { h: -60 }), this.git5 = this.git5 || adjust_default(this.primaryColor, { h: -90 }), this.git6 = this.git6 || adjust_default(this.primaryColor, { h: 60 }), this.git7 = this.git7 || adjust_default(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = lighten_default(this.git0, 25), this.git1 = lighten_default(this.git1, 25), this.git2 = lighten_default(this.git2, 25), this.git3 = lighten_default(this.git3, 25), this.git4 = lighten_default(this.git4, 25), this.git5 = lighten_default(this.git5, 25), this.git6 = lighten_default(this.git6, 25), this.git7 = lighten_default(this.git7, 25)) : (this.git0 = darken_default(this.git0, 25), this.git1 = darken_default(this.git1, 25), this.git2 = darken_default(this.git2, 25), this.git3 = darken_default(this.git3, 25), this.git4 = darken_default(this.git4, 25), this.git5 = darken_default(this.git5, 25), this.git6 = darken_default(this.git6, 25), this.git7 = darken_default(this.git7, 25)), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(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 || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
|
|
1004
983
|
}
|
|
1005
|
-
calculate(
|
|
1006
|
-
if (typeof
|
|
984
|
+
calculate(h) {
|
|
985
|
+
if (typeof h != "object") {
|
|
1007
986
|
this.updateColors();
|
|
1008
987
|
return;
|
|
1009
988
|
}
|
|
1010
|
-
let
|
|
1011
|
-
|
|
1012
|
-
this[
|
|
1013
|
-
}), this.updateColors(),
|
|
1014
|
-
this[
|
|
989
|
+
let W = Object.keys(h);
|
|
990
|
+
W.forEach((W) => {
|
|
991
|
+
this[W] = h[W];
|
|
992
|
+
}), this.updateColors(), W.forEach((W) => {
|
|
993
|
+
this[W] = h[W];
|
|
1015
994
|
});
|
|
1016
995
|
}
|
|
1017
|
-
},
|
|
1018
|
-
let
|
|
1019
|
-
return
|
|
1020
|
-
}, "getThemeVariables"),
|
|
1021
|
-
static
|
|
1022
|
-
t(this, "Theme");
|
|
1023
|
-
}
|
|
996
|
+
}, getThemeVariables9 = /* @__PURE__ */ __name((h) => {
|
|
997
|
+
let W = new Theme9();
|
|
998
|
+
return W.calculate(h), W;
|
|
999
|
+
}, "getThemeVariables"), Theme10 = class {
|
|
1000
|
+
static #e = __name(this, "Theme");
|
|
1024
1001
|
constructor() {
|
|
1025
|
-
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 =
|
|
1002
|
+
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 = mkBorder(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 = [
|
|
1026
1003
|
"#E879F9",
|
|
1027
1004
|
"#2DD4BF",
|
|
1028
1005
|
"#FB923C",
|
|
@@ -1051,72 +1028,72 @@ var d = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, f = /%{2}{\s*(?:(\w+)\s*:|(\
|
|
|
1051
1028
|
], this.filterColor = "#000000";
|
|
1052
1029
|
}
|
|
1053
1030
|
updateColors() {
|
|
1054
|
-
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor ||
|
|
1031
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || adjust_default(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || adjust_default(this.primaryColor, {
|
|
1055
1032
|
h: 180,
|
|
1056
1033
|
l: 5
|
|
1057
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
1058
|
-
let
|
|
1034
|
+
}), this.primaryBorderColor = this.primaryBorderColor || mkBorder(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || mkBorder(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || mkBorder(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || invert_default(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || invert_default(this.tertiaryColor), this.lineColor = this.lineColor || invert_default(this.background), this.arrowheadColor = this.arrowheadColor || invert_default(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 ? darken_default(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 || darken_default(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || invert_default(this.lineColor);
|
|
1035
|
+
let h = "#ECECFE", W = "#E9E9F1", G = adjust_default(h, {
|
|
1059
1036
|
h: 180,
|
|
1060
1037
|
l: 5
|
|
1061
1038
|
});
|
|
1062
|
-
this.sectionBkgColor = this.sectionBkgColor ||
|
|
1063
|
-
for (let
|
|
1064
|
-
for (let
|
|
1039
|
+
this.sectionBkgColor = this.sectionBkgColor || G, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || W, this.sectionBkgColor2 = this.sectionBkgColor2 || h, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || h, this.activeTaskBorderColor = this.activeTaskBorderColor || h, this.activeTaskBkgColor = this.activeTaskBkgColor || lighten_default(h, 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";
|
|
1040
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScaleInv" + h] = this["cScaleInv" + h] || invert_default(this["cScale" + h]);
|
|
1041
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this.darkMode ? this["cScalePeer" + h] = this["cScalePeer" + h] || lighten_default(this["cScale" + h], 10) : this["cScalePeer" + h] = this["cScalePeer" + h] || darken_default(this["cScale" + h], 10);
|
|
1065
1042
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
1066
|
-
for (let
|
|
1067
|
-
let
|
|
1068
|
-
for (let
|
|
1043
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScaleLabel" + h] = this["cScaleLabel" + h] || this.scaleLabelColor;
|
|
1044
|
+
let K = this.darkMode ? -4 : -1;
|
|
1045
|
+
for (let h = 0; h < 5; h++) this["surface" + h] = this["surface" + h] || adjust_default(this.mainBkg, {
|
|
1069
1046
|
h: 180,
|
|
1070
1047
|
s: -15,
|
|
1071
|
-
l:
|
|
1072
|
-
}), this["surfacePeer" +
|
|
1048
|
+
l: K * (5 + h * 3)
|
|
1049
|
+
}), this["surfacePeer" + h] = this["surfacePeer" + h] || adjust_default(this.mainBkg, {
|
|
1073
1050
|
h: 180,
|
|
1074
1051
|
s: -15,
|
|
1075
|
-
l:
|
|
1052
|
+
l: K * (8 + h * 3)
|
|
1076
1053
|
});
|
|
1077
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 ||
|
|
1054
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || h, this.fillType1 = this.fillType1 || W, this.fillType2 = this.fillType2 || adjust_default(h, { h: 64 }), this.fillType3 = this.fillType3 || adjust_default(W, { h: 64 }), this.fillType4 = this.fillType4 || adjust_default(h, { h: -64 }), this.fillType5 = this.fillType5 || adjust_default(W, { h: -64 }), this.fillType6 = this.fillType6 || adjust_default(h, { h: 128 }), this.fillType7 = this.fillType7 || adjust_default(W, { h: 128 }), this.pie1 = this.pie1 || h, this.pie2 = this.pie2 || W, this.pie3 = this.pie3 || G, this.pie4 = this.pie4 || adjust_default(h, { l: -10 }), this.pie5 = this.pie5 || adjust_default(W, { l: -10 }), this.pie6 = this.pie6 || adjust_default(G, { l: -10 }), this.pie7 = this.pie7 || adjust_default(h, {
|
|
1078
1055
|
h: 60,
|
|
1079
1056
|
l: -10
|
|
1080
|
-
}), this.pie8 = this.pie8 ||
|
|
1057
|
+
}), this.pie8 = this.pie8 || adjust_default(h, {
|
|
1081
1058
|
h: -60,
|
|
1082
1059
|
l: -10
|
|
1083
|
-
}), this.pie9 = this.pie9 ||
|
|
1060
|
+
}), this.pie9 = this.pie9 || adjust_default(h, {
|
|
1084
1061
|
h: 120,
|
|
1085
1062
|
l: 0
|
|
1086
|
-
}), this.pie10 = this.pie10 ||
|
|
1063
|
+
}), this.pie10 = this.pie10 || adjust_default(h, {
|
|
1087
1064
|
h: 60,
|
|
1088
1065
|
l: -20
|
|
1089
|
-
}), this.pie11 = this.pie11 ||
|
|
1066
|
+
}), this.pie11 = this.pie11 || adjust_default(h, {
|
|
1090
1067
|
h: -60,
|
|
1091
1068
|
l: -20
|
|
1092
|
-
}), this.pie12 = this.pie12 ||
|
|
1069
|
+
}), this.pie12 = this.pie12 || adjust_default(h, {
|
|
1093
1070
|
h: 120,
|
|
1094
1071
|
l: -10
|
|
1095
|
-
}), 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 ||
|
|
1072
|
+
}), 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 || h, this.quadrant2Fill = this.quadrant2Fill || adjust_default(h, {
|
|
1096
1073
|
r: 5,
|
|
1097
1074
|
g: 5,
|
|
1098
1075
|
b: 5
|
|
1099
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1076
|
+
}), this.quadrant3Fill = this.quadrant3Fill || adjust_default(h, {
|
|
1100
1077
|
r: 10,
|
|
1101
1078
|
g: 10,
|
|
1102
1079
|
b: 10
|
|
1103
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1080
|
+
}), this.quadrant4Fill = this.quadrant4Fill || adjust_default(h, {
|
|
1104
1081
|
r: 15,
|
|
1105
1082
|
g: 15,
|
|
1106
1083
|
b: 15
|
|
1107
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1084
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
|
|
1108
1085
|
r: -5,
|
|
1109
1086
|
g: -5,
|
|
1110
1087
|
b: -5
|
|
1111
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1088
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
|
|
1112
1089
|
r: -10,
|
|
1113
1090
|
g: -10,
|
|
1114
1091
|
b: -10
|
|
1115
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1092
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
|
|
1116
1093
|
r: -15,
|
|
1117
1094
|
g: -15,
|
|
1118
1095
|
b: -15
|
|
1119
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1096
|
+
}), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(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 = {
|
|
1120
1097
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1121
1098
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1122
1099
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
@@ -1128,29 +1105,27 @@ var d = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, f = /%{2}{\s*(?:(\w+)\s*:|(\
|
|
|
1128
1105
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1129
1106
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1130
1107
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
1131
|
-
}, this.requirementBackground = this.requirementBackground ||
|
|
1108
|
+
}, this.requirementBackground = this.requirementBackground || h, 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 ? darken_default(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || h, this.git1 = this.git1 || W, this.git2 = this.git2 || G, this.git3 = this.git3 || adjust_default(h, { h: -30 }), this.git4 = this.git4 || adjust_default(h, { h: -60 }), this.git5 = this.git5 || adjust_default(h, { h: -90 }), this.git6 = this.git6 || adjust_default(h, { h: 60 }), this.git7 = this.git7 || adjust_default(h, { h: 120 }), this.darkMode ? (this.git0 = lighten_default(this.git0, 25), this.git1 = lighten_default(this.git1, 25), this.git2 = lighten_default(this.git2, 25), this.git3 = lighten_default(this.git3, 25), this.git4 = lighten_default(this.git4, 25), this.git5 = lighten_default(this.git5, 25), this.git6 = lighten_default(this.git6, 25), this.git7 = lighten_default(this.git7, 25)) : (this.git0 = darken_default(this.git0, 25), this.git1 = darken_default(this.git1, 25), this.git2 = darken_default(this.git2, 25), this.git3 = darken_default(this.git3, 25), this.git4 = darken_default(this.git4, 25), this.git5 = darken_default(this.git5, 25), this.git6 = darken_default(this.git6, 25), this.git7 = darken_default(this.git7, 25)), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(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 || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
|
|
1132
1109
|
}
|
|
1133
|
-
calculate(
|
|
1134
|
-
if (typeof
|
|
1110
|
+
calculate(h) {
|
|
1111
|
+
if (typeof h != "object") {
|
|
1135
1112
|
this.updateColors();
|
|
1136
1113
|
return;
|
|
1137
1114
|
}
|
|
1138
|
-
let
|
|
1139
|
-
|
|
1140
|
-
this[
|
|
1141
|
-
}), this.updateColors(),
|
|
1142
|
-
this[
|
|
1115
|
+
let W = Object.keys(h);
|
|
1116
|
+
W.forEach((W) => {
|
|
1117
|
+
this[W] = h[W];
|
|
1118
|
+
}), this.updateColors(), W.forEach((W) => {
|
|
1119
|
+
this[W] = h[W];
|
|
1143
1120
|
});
|
|
1144
1121
|
}
|
|
1145
|
-
},
|
|
1146
|
-
let
|
|
1147
|
-
return
|
|
1148
|
-
}, "getThemeVariables"),
|
|
1149
|
-
static
|
|
1150
|
-
t(this, "Theme");
|
|
1151
|
-
}
|
|
1122
|
+
}, getThemeVariables10 = /* @__PURE__ */ __name((h) => {
|
|
1123
|
+
let W = new Theme10();
|
|
1124
|
+
return W.calculate(h), W;
|
|
1125
|
+
}, "getThemeVariables"), Theme11 = class {
|
|
1126
|
+
static #e = __name(this, "Theme");
|
|
1152
1127
|
constructor() {
|
|
1153
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor =
|
|
1128
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = lighten_default(this.primaryColor, 16), this.tertiaryColor = adjust_default(this.primaryColor, { h: -160 }), this.primaryBorderColor = invert_default(this.background), this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode), this.primaryTextColor = invert_default(this.primaryColor), this.secondaryTextColor = invert_default(this.secondaryColor), this.tertiaryTextColor = invert_default(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = lighten_default(invert_default("#323D47"), 10), this.border1 = "#ccc", this.border2 = rgba_default(255, 255, 255, .25), this.arrowheadColor = invert_default(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 = [
|
|
1154
1129
|
"#E879F9",
|
|
1155
1130
|
"#2DD4BF",
|
|
1156
1131
|
"#FB923C",
|
|
@@ -1166,67 +1141,67 @@ var d = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, f = /%{2}{\s*(?:(\w+)\s*:|(\
|
|
|
1166
1141
|
], this.bkgColorArray = [], this.filterColor = "#FFFFFF";
|
|
1167
1142
|
}
|
|
1168
1143
|
updateColors() {
|
|
1169
|
-
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor ||
|
|
1144
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || adjust_default(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || adjust_default(this.primaryColor, {
|
|
1170
1145
|
h: 180,
|
|
1171
1146
|
l: 5
|
|
1172
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
1173
|
-
for (let
|
|
1174
|
-
for (let
|
|
1147
|
+
}), this.primaryBorderColor = this.primaryBorderColor || mkBorder(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || mkBorder(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || mkBorder(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || invert_default(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || invert_default(this.tertiaryColor), this.lineColor = this.lineColor || invert_default(this.background), this.arrowheadColor = this.arrowheadColor || invert_default(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 ? darken_default(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 || darken_default(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || invert_default(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 || lighten_default(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";
|
|
1148
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScaleInv" + h] = this["cScaleInv" + h] || invert_default(this["cScale" + h]);
|
|
1149
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this.darkMode ? this["cScalePeer" + h] = this["cScalePeer" + h] || lighten_default(this["cScale" + h], 10) : this["cScalePeer" + h] = this["cScalePeer" + h] || darken_default(this["cScale" + h], 10);
|
|
1175
1150
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
1176
|
-
for (let
|
|
1177
|
-
let
|
|
1178
|
-
for (let
|
|
1151
|
+
for (let h = 0; h < this.THEME_COLOR_LIMIT; h++) this["cScaleLabel" + h] = darken_default(this["cScale" + h], 75);
|
|
1152
|
+
let h = this.darkMode ? -4 : -1;
|
|
1153
|
+
for (let W = 0; W < 5; W++) this["surface" + W] = this["surface" + W] || adjust_default(this.mainBkg, {
|
|
1179
1154
|
h: 180,
|
|
1180
1155
|
s: -15,
|
|
1181
|
-
l:
|
|
1182
|
-
}), this["surfacePeer" +
|
|
1156
|
+
l: h * (5 + W * 3)
|
|
1157
|
+
}), this["surfacePeer" + W] = this["surfacePeer" + W] || adjust_default(this.mainBkg, {
|
|
1183
1158
|
h: 180,
|
|
1184
1159
|
s: -15,
|
|
1185
|
-
l:
|
|
1160
|
+
l: h * (8 + W * 3)
|
|
1186
1161
|
});
|
|
1187
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 ||
|
|
1162
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || adjust_default(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || adjust_default(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 || adjust_default(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || adjust_default(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || adjust_default(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || adjust_default(this.primaryColor, {
|
|
1188
1163
|
h: 60,
|
|
1189
1164
|
l: -10
|
|
1190
|
-
}), this.pie8 = this.pie8 ||
|
|
1165
|
+
}), this.pie8 = this.pie8 || adjust_default(this.primaryColor, {
|
|
1191
1166
|
h: -60,
|
|
1192
1167
|
l: -10
|
|
1193
|
-
}), this.pie9 = this.pie9 ||
|
|
1168
|
+
}), this.pie9 = this.pie9 || adjust_default(this.primaryColor, {
|
|
1194
1169
|
h: 120,
|
|
1195
1170
|
l: 0
|
|
1196
|
-
}), this.pie10 = this.pie10 ||
|
|
1171
|
+
}), this.pie10 = this.pie10 || adjust_default(this.primaryColor, {
|
|
1197
1172
|
h: 60,
|
|
1198
1173
|
l: -20
|
|
1199
|
-
}), this.pie11 = this.pie11 ||
|
|
1174
|
+
}), this.pie11 = this.pie11 || adjust_default(this.primaryColor, {
|
|
1200
1175
|
h: -60,
|
|
1201
1176
|
l: -20
|
|
1202
|
-
}), this.pie12 = this.pie12 ||
|
|
1177
|
+
}), this.pie12 = this.pie12 || adjust_default(this.primaryColor, {
|
|
1203
1178
|
h: 120,
|
|
1204
1179
|
l: -10
|
|
1205
|
-
}), 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 ||
|
|
1180
|
+
}), 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 || adjust_default(this.primaryColor, {
|
|
1206
1181
|
r: 5,
|
|
1207
1182
|
g: 5,
|
|
1208
1183
|
b: 5
|
|
1209
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1184
|
+
}), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
|
|
1210
1185
|
r: 10,
|
|
1211
1186
|
g: 10,
|
|
1212
1187
|
b: 10
|
|
1213
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1188
|
+
}), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
|
|
1214
1189
|
r: 15,
|
|
1215
1190
|
g: 15,
|
|
1216
1191
|
b: 15
|
|
1217
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1192
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
|
|
1218
1193
|
r: -5,
|
|
1219
1194
|
g: -5,
|
|
1220
1195
|
b: -5
|
|
1221
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1196
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
|
|
1222
1197
|
r: -10,
|
|
1223
1198
|
g: -10,
|
|
1224
1199
|
b: -10
|
|
1225
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1200
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
|
|
1226
1201
|
r: -15,
|
|
1227
1202
|
g: -15,
|
|
1228
1203
|
b: -15
|
|
1229
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1204
|
+
}), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(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 = {
|
|
1230
1205
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1231
1206
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1232
1207
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
@@ -1238,36 +1213,36 @@ var d = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, f = /%{2}{\s*(?:(\w+)\s*:|(\
|
|
|
1238
1213
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1239
1214
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1240
1215
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
1241
|
-
}, 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 ?
|
|
1216
|
+
}, 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 ? darken_default(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 || adjust_default(this.primaryColor, { h: -30 }), this.git4 = this.git4 || adjust_default(this.primaryColor, { h: -60 }), this.git5 = this.git5 || adjust_default(this.primaryColor, { h: -90 }), this.git6 = this.git6 || adjust_default(this.primaryColor, { h: 60 }), this.git7 = this.git7 || adjust_default(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = lighten_default(this.git0, 25), this.git1 = lighten_default(this.git1, 25), this.git2 = lighten_default(this.git2, 25), this.git3 = lighten_default(this.git3, 25), this.git4 = lighten_default(this.git4, 25), this.git5 = lighten_default(this.git5, 25), this.git6 = lighten_default(this.git6, 25), this.git7 = lighten_default(this.git7, 25)) : (this.git0 = darken_default(this.git0, 25), this.git1 = darken_default(this.git1, 25), this.git2 = darken_default(this.git2, 25), this.git3 = darken_default(this.git3, 25), this.git4 = darken_default(this.git4, 25), this.git5 = darken_default(this.git5, 25), this.git6 = darken_default(this.git6, 25), this.git7 = darken_default(this.git7, 25)), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(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 || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
|
|
1242
1217
|
}
|
|
1243
|
-
calculate(
|
|
1244
|
-
if (typeof
|
|
1218
|
+
calculate(h) {
|
|
1219
|
+
if (typeof h != "object") {
|
|
1245
1220
|
this.updateColors();
|
|
1246
1221
|
return;
|
|
1247
1222
|
}
|
|
1248
|
-
let
|
|
1249
|
-
|
|
1250
|
-
this[
|
|
1251
|
-
}), this.updateColors(),
|
|
1252
|
-
this[
|
|
1223
|
+
let W = Object.keys(h);
|
|
1224
|
+
W.forEach((W) => {
|
|
1225
|
+
this[W] = h[W];
|
|
1226
|
+
}), this.updateColors(), W.forEach((W) => {
|
|
1227
|
+
this[W] = h[W];
|
|
1253
1228
|
});
|
|
1254
1229
|
}
|
|
1255
|
-
},
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
"
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
},
|
|
1230
|
+
}, getThemeVariables11 = /* @__PURE__ */ __name((h) => {
|
|
1231
|
+
let W = new Theme11();
|
|
1232
|
+
return W.calculate(h), W;
|
|
1233
|
+
}, "getThemeVariables"), themes_default = {
|
|
1234
|
+
base: { getThemeVariables },
|
|
1235
|
+
dark: { getThemeVariables: getThemeVariables2 },
|
|
1236
|
+
default: { getThemeVariables: getThemeVariables3 },
|
|
1237
|
+
forest: { getThemeVariables: getThemeVariables4 },
|
|
1238
|
+
neutral: { getThemeVariables: getThemeVariables5 },
|
|
1239
|
+
neo: { getThemeVariables: getThemeVariables6 },
|
|
1240
|
+
"neo-dark": { getThemeVariables: getThemeVariables7 },
|
|
1241
|
+
redux: { getThemeVariables: getThemeVariables8 },
|
|
1242
|
+
"redux-dark": { getThemeVariables: getThemeVariables9 },
|
|
1243
|
+
"redux-color": { getThemeVariables: getThemeVariables10 },
|
|
1244
|
+
"redux-dark-color": { getThemeVariables: getThemeVariables11 }
|
|
1245
|
+
}, config_schema_default = {
|
|
1271
1246
|
flowchart: {
|
|
1272
1247
|
useMaxWidth: !0,
|
|
1273
1248
|
titleTopMargin: 25,
|
|
@@ -1776,8 +1751,8 @@ var d = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, f = /%{2}{\s*(?:(\w+)\s*:|(\
|
|
|
1776
1751
|
fontSize: 16,
|
|
1777
1752
|
markdownAutoWrap: !0,
|
|
1778
1753
|
suppressErrorRendering: !1
|
|
1779
|
-
},
|
|
1780
|
-
...
|
|
1754
|
+
}, config = {
|
|
1755
|
+
...config_schema_default,
|
|
1781
1756
|
deterministicIDSeed: void 0,
|
|
1782
1757
|
elk: {
|
|
1783
1758
|
mergeEdges: !1,
|
|
@@ -1786,24 +1761,24 @@ var d = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, f = /%{2}{\s*(?:(\w+)\s*:|(\
|
|
|
1786
1761
|
considerModelOrder: "NODES_AND_EDGES"
|
|
1787
1762
|
},
|
|
1788
1763
|
themeCSS: void 0,
|
|
1789
|
-
themeVariables:
|
|
1764
|
+
themeVariables: themes_default.default.getThemeVariables(),
|
|
1790
1765
|
sequence: {
|
|
1791
|
-
...
|
|
1792
|
-
messageFont: /* @__PURE__ */
|
|
1766
|
+
...config_schema_default.sequence,
|
|
1767
|
+
messageFont: /* @__PURE__ */ __name(function() {
|
|
1793
1768
|
return {
|
|
1794
1769
|
fontFamily: this.messageFontFamily,
|
|
1795
1770
|
fontSize: this.messageFontSize,
|
|
1796
1771
|
fontWeight: this.messageFontWeight
|
|
1797
1772
|
};
|
|
1798
1773
|
}, "messageFont"),
|
|
1799
|
-
noteFont: /* @__PURE__ */
|
|
1774
|
+
noteFont: /* @__PURE__ */ __name(function() {
|
|
1800
1775
|
return {
|
|
1801
1776
|
fontFamily: this.noteFontFamily,
|
|
1802
1777
|
fontSize: this.noteFontSize,
|
|
1803
1778
|
fontWeight: this.noteFontWeight
|
|
1804
1779
|
};
|
|
1805
1780
|
}, "noteFont"),
|
|
1806
|
-
actorFont: /* @__PURE__ */
|
|
1781
|
+
actorFont: /* @__PURE__ */ __name(function() {
|
|
1807
1782
|
return {
|
|
1808
1783
|
fontFamily: this.actorFontFamily,
|
|
1809
1784
|
fontSize: this.actorFontSize,
|
|
@@ -1813,14 +1788,14 @@ var d = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, f = /%{2}{\s*(?:(\w+)\s*:|(\
|
|
|
1813
1788
|
},
|
|
1814
1789
|
class: { hideEmptyMembersBox: !1 },
|
|
1815
1790
|
gantt: {
|
|
1816
|
-
...
|
|
1791
|
+
...config_schema_default.gantt,
|
|
1817
1792
|
tickInterval: void 0,
|
|
1818
1793
|
useWidth: void 0
|
|
1819
1794
|
},
|
|
1820
1795
|
c4: {
|
|
1821
|
-
...
|
|
1796
|
+
...config_schema_default.c4,
|
|
1822
1797
|
useWidth: void 0,
|
|
1823
|
-
personFont: /* @__PURE__ */
|
|
1798
|
+
personFont: /* @__PURE__ */ __name(function() {
|
|
1824
1799
|
return {
|
|
1825
1800
|
fontFamily: this.personFontFamily,
|
|
1826
1801
|
fontSize: this.personFontSize,
|
|
@@ -1828,150 +1803,150 @@ var d = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, f = /%{2}{\s*(?:(\w+)\s*:|(\
|
|
|
1828
1803
|
};
|
|
1829
1804
|
}, "personFont"),
|
|
1830
1805
|
flowchart: {
|
|
1831
|
-
...
|
|
1806
|
+
...config_schema_default.flowchart,
|
|
1832
1807
|
inheritDir: !1
|
|
1833
1808
|
},
|
|
1834
|
-
external_personFont: /* @__PURE__ */
|
|
1809
|
+
external_personFont: /* @__PURE__ */ __name(function() {
|
|
1835
1810
|
return {
|
|
1836
1811
|
fontFamily: this.external_personFontFamily,
|
|
1837
1812
|
fontSize: this.external_personFontSize,
|
|
1838
1813
|
fontWeight: this.external_personFontWeight
|
|
1839
1814
|
};
|
|
1840
1815
|
}, "external_personFont"),
|
|
1841
|
-
systemFont: /* @__PURE__ */
|
|
1816
|
+
systemFont: /* @__PURE__ */ __name(function() {
|
|
1842
1817
|
return {
|
|
1843
1818
|
fontFamily: this.systemFontFamily,
|
|
1844
1819
|
fontSize: this.systemFontSize,
|
|
1845
1820
|
fontWeight: this.systemFontWeight
|
|
1846
1821
|
};
|
|
1847
1822
|
}, "systemFont"),
|
|
1848
|
-
external_systemFont: /* @__PURE__ */
|
|
1823
|
+
external_systemFont: /* @__PURE__ */ __name(function() {
|
|
1849
1824
|
return {
|
|
1850
1825
|
fontFamily: this.external_systemFontFamily,
|
|
1851
1826
|
fontSize: this.external_systemFontSize,
|
|
1852
1827
|
fontWeight: this.external_systemFontWeight
|
|
1853
1828
|
};
|
|
1854
1829
|
}, "external_systemFont"),
|
|
1855
|
-
system_dbFont: /* @__PURE__ */
|
|
1830
|
+
system_dbFont: /* @__PURE__ */ __name(function() {
|
|
1856
1831
|
return {
|
|
1857
1832
|
fontFamily: this.system_dbFontFamily,
|
|
1858
1833
|
fontSize: this.system_dbFontSize,
|
|
1859
1834
|
fontWeight: this.system_dbFontWeight
|
|
1860
1835
|
};
|
|
1861
1836
|
}, "system_dbFont"),
|
|
1862
|
-
external_system_dbFont: /* @__PURE__ */
|
|
1837
|
+
external_system_dbFont: /* @__PURE__ */ __name(function() {
|
|
1863
1838
|
return {
|
|
1864
1839
|
fontFamily: this.external_system_dbFontFamily,
|
|
1865
1840
|
fontSize: this.external_system_dbFontSize,
|
|
1866
1841
|
fontWeight: this.external_system_dbFontWeight
|
|
1867
1842
|
};
|
|
1868
1843
|
}, "external_system_dbFont"),
|
|
1869
|
-
system_queueFont: /* @__PURE__ */
|
|
1844
|
+
system_queueFont: /* @__PURE__ */ __name(function() {
|
|
1870
1845
|
return {
|
|
1871
1846
|
fontFamily: this.system_queueFontFamily,
|
|
1872
1847
|
fontSize: this.system_queueFontSize,
|
|
1873
1848
|
fontWeight: this.system_queueFontWeight
|
|
1874
1849
|
};
|
|
1875
1850
|
}, "system_queueFont"),
|
|
1876
|
-
external_system_queueFont: /* @__PURE__ */
|
|
1851
|
+
external_system_queueFont: /* @__PURE__ */ __name(function() {
|
|
1877
1852
|
return {
|
|
1878
1853
|
fontFamily: this.external_system_queueFontFamily,
|
|
1879
1854
|
fontSize: this.external_system_queueFontSize,
|
|
1880
1855
|
fontWeight: this.external_system_queueFontWeight
|
|
1881
1856
|
};
|
|
1882
1857
|
}, "external_system_queueFont"),
|
|
1883
|
-
containerFont: /* @__PURE__ */
|
|
1858
|
+
containerFont: /* @__PURE__ */ __name(function() {
|
|
1884
1859
|
return {
|
|
1885
1860
|
fontFamily: this.containerFontFamily,
|
|
1886
1861
|
fontSize: this.containerFontSize,
|
|
1887
1862
|
fontWeight: this.containerFontWeight
|
|
1888
1863
|
};
|
|
1889
1864
|
}, "containerFont"),
|
|
1890
|
-
external_containerFont: /* @__PURE__ */
|
|
1865
|
+
external_containerFont: /* @__PURE__ */ __name(function() {
|
|
1891
1866
|
return {
|
|
1892
1867
|
fontFamily: this.external_containerFontFamily,
|
|
1893
1868
|
fontSize: this.external_containerFontSize,
|
|
1894
1869
|
fontWeight: this.external_containerFontWeight
|
|
1895
1870
|
};
|
|
1896
1871
|
}, "external_containerFont"),
|
|
1897
|
-
container_dbFont: /* @__PURE__ */
|
|
1872
|
+
container_dbFont: /* @__PURE__ */ __name(function() {
|
|
1898
1873
|
return {
|
|
1899
1874
|
fontFamily: this.container_dbFontFamily,
|
|
1900
1875
|
fontSize: this.container_dbFontSize,
|
|
1901
1876
|
fontWeight: this.container_dbFontWeight
|
|
1902
1877
|
};
|
|
1903
1878
|
}, "container_dbFont"),
|
|
1904
|
-
external_container_dbFont: /* @__PURE__ */
|
|
1879
|
+
external_container_dbFont: /* @__PURE__ */ __name(function() {
|
|
1905
1880
|
return {
|
|
1906
1881
|
fontFamily: this.external_container_dbFontFamily,
|
|
1907
1882
|
fontSize: this.external_container_dbFontSize,
|
|
1908
1883
|
fontWeight: this.external_container_dbFontWeight
|
|
1909
1884
|
};
|
|
1910
1885
|
}, "external_container_dbFont"),
|
|
1911
|
-
container_queueFont: /* @__PURE__ */
|
|
1886
|
+
container_queueFont: /* @__PURE__ */ __name(function() {
|
|
1912
1887
|
return {
|
|
1913
1888
|
fontFamily: this.container_queueFontFamily,
|
|
1914
1889
|
fontSize: this.container_queueFontSize,
|
|
1915
1890
|
fontWeight: this.container_queueFontWeight
|
|
1916
1891
|
};
|
|
1917
1892
|
}, "container_queueFont"),
|
|
1918
|
-
external_container_queueFont: /* @__PURE__ */
|
|
1893
|
+
external_container_queueFont: /* @__PURE__ */ __name(function() {
|
|
1919
1894
|
return {
|
|
1920
1895
|
fontFamily: this.external_container_queueFontFamily,
|
|
1921
1896
|
fontSize: this.external_container_queueFontSize,
|
|
1922
1897
|
fontWeight: this.external_container_queueFontWeight
|
|
1923
1898
|
};
|
|
1924
1899
|
}, "external_container_queueFont"),
|
|
1925
|
-
componentFont: /* @__PURE__ */
|
|
1900
|
+
componentFont: /* @__PURE__ */ __name(function() {
|
|
1926
1901
|
return {
|
|
1927
1902
|
fontFamily: this.componentFontFamily,
|
|
1928
1903
|
fontSize: this.componentFontSize,
|
|
1929
1904
|
fontWeight: this.componentFontWeight
|
|
1930
1905
|
};
|
|
1931
1906
|
}, "componentFont"),
|
|
1932
|
-
external_componentFont: /* @__PURE__ */
|
|
1907
|
+
external_componentFont: /* @__PURE__ */ __name(function() {
|
|
1933
1908
|
return {
|
|
1934
1909
|
fontFamily: this.external_componentFontFamily,
|
|
1935
1910
|
fontSize: this.external_componentFontSize,
|
|
1936
1911
|
fontWeight: this.external_componentFontWeight
|
|
1937
1912
|
};
|
|
1938
1913
|
}, "external_componentFont"),
|
|
1939
|
-
component_dbFont: /* @__PURE__ */
|
|
1914
|
+
component_dbFont: /* @__PURE__ */ __name(function() {
|
|
1940
1915
|
return {
|
|
1941
1916
|
fontFamily: this.component_dbFontFamily,
|
|
1942
1917
|
fontSize: this.component_dbFontSize,
|
|
1943
1918
|
fontWeight: this.component_dbFontWeight
|
|
1944
1919
|
};
|
|
1945
1920
|
}, "component_dbFont"),
|
|
1946
|
-
external_component_dbFont: /* @__PURE__ */
|
|
1921
|
+
external_component_dbFont: /* @__PURE__ */ __name(function() {
|
|
1947
1922
|
return {
|
|
1948
1923
|
fontFamily: this.external_component_dbFontFamily,
|
|
1949
1924
|
fontSize: this.external_component_dbFontSize,
|
|
1950
1925
|
fontWeight: this.external_component_dbFontWeight
|
|
1951
1926
|
};
|
|
1952
1927
|
}, "external_component_dbFont"),
|
|
1953
|
-
component_queueFont: /* @__PURE__ */
|
|
1928
|
+
component_queueFont: /* @__PURE__ */ __name(function() {
|
|
1954
1929
|
return {
|
|
1955
1930
|
fontFamily: this.component_queueFontFamily,
|
|
1956
1931
|
fontSize: this.component_queueFontSize,
|
|
1957
1932
|
fontWeight: this.component_queueFontWeight
|
|
1958
1933
|
};
|
|
1959
1934
|
}, "component_queueFont"),
|
|
1960
|
-
external_component_queueFont: /* @__PURE__ */
|
|
1935
|
+
external_component_queueFont: /* @__PURE__ */ __name(function() {
|
|
1961
1936
|
return {
|
|
1962
1937
|
fontFamily: this.external_component_queueFontFamily,
|
|
1963
1938
|
fontSize: this.external_component_queueFontSize,
|
|
1964
1939
|
fontWeight: this.external_component_queueFontWeight
|
|
1965
1940
|
};
|
|
1966
1941
|
}, "external_component_queueFont"),
|
|
1967
|
-
boundaryFont: /* @__PURE__ */
|
|
1942
|
+
boundaryFont: /* @__PURE__ */ __name(function() {
|
|
1968
1943
|
return {
|
|
1969
1944
|
fontFamily: this.boundaryFontFamily,
|
|
1970
1945
|
fontSize: this.boundaryFontSize,
|
|
1971
1946
|
fontWeight: this.boundaryFontWeight
|
|
1972
1947
|
};
|
|
1973
1948
|
}, "boundaryFont"),
|
|
1974
|
-
messageFont: /* @__PURE__ */
|
|
1949
|
+
messageFont: /* @__PURE__ */ __name(function() {
|
|
1975
1950
|
return {
|
|
1976
1951
|
fontFamily: this.messageFontFamily,
|
|
1977
1952
|
fontSize: this.messageFontSize,
|
|
@@ -1980,24 +1955,24 @@ var d = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, f = /%{2}{\s*(?:(\w+)\s*:|(\
|
|
|
1980
1955
|
}, "messageFont")
|
|
1981
1956
|
},
|
|
1982
1957
|
pie: {
|
|
1983
|
-
...
|
|
1958
|
+
...config_schema_default.pie,
|
|
1984
1959
|
useWidth: 984
|
|
1985
1960
|
},
|
|
1986
1961
|
xyChart: {
|
|
1987
|
-
...
|
|
1962
|
+
...config_schema_default.xyChart,
|
|
1988
1963
|
useWidth: void 0
|
|
1989
1964
|
},
|
|
1990
1965
|
requirement: {
|
|
1991
|
-
...
|
|
1966
|
+
...config_schema_default.requirement,
|
|
1992
1967
|
useWidth: void 0
|
|
1993
1968
|
},
|
|
1994
|
-
packet: { ...
|
|
1969
|
+
packet: { ...config_schema_default.packet },
|
|
1995
1970
|
treeView: {
|
|
1996
|
-
...
|
|
1971
|
+
...config_schema_default.treeView,
|
|
1997
1972
|
useWidth: void 0
|
|
1998
1973
|
},
|
|
1999
|
-
radar: { ...
|
|
2000
|
-
ishikawa: { ...
|
|
1974
|
+
radar: { ...config_schema_default.radar },
|
|
1975
|
+
ishikawa: { ...config_schema_default.ishikawa },
|
|
2001
1976
|
treemap: {
|
|
2002
1977
|
useMaxWidth: !0,
|
|
2003
1978
|
padding: 10,
|
|
@@ -2010,192 +1985,192 @@ var d = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, f = /%{2}{\s*(?:(\w+)\s*:|(\
|
|
|
2010
1985
|
labelFontSize: 14,
|
|
2011
1986
|
valueFormat: ","
|
|
2012
1987
|
},
|
|
2013
|
-
venn: { ...
|
|
2014
|
-
},
|
|
2015
|
-
...
|
|
2016
|
-
|
|
2017
|
-
...
|
|
2018
|
-
] : [...
|
|
2019
|
-
if (
|
|
2020
|
-
if (Array.isArray(
|
|
2021
|
-
|
|
1988
|
+
venn: { ...config_schema_default.venn }
|
|
1989
|
+
}, keyify = /* @__PURE__ */ __name((h, W = "") => Object.keys(h).reduce((G, K) => Array.isArray(h[K]) ? G : typeof h[K] == "object" && h[K] !== null ? [
|
|
1990
|
+
...G,
|
|
1991
|
+
W + K,
|
|
1992
|
+
...keyify(h[K], "")
|
|
1993
|
+
] : [...G, W + K], []), "keyify"), configKeys = new Set(keyify(config, "")), defaultConfig_default = config, sanitizeDirective = /* @__PURE__ */ __name((h) => {
|
|
1994
|
+
if (log.debug("sanitizeDirective called with", h), !(typeof h != "object" || !h)) {
|
|
1995
|
+
if (Array.isArray(h)) {
|
|
1996
|
+
h.forEach((h) => sanitizeDirective(h));
|
|
2022
1997
|
return;
|
|
2023
1998
|
}
|
|
2024
|
-
for (let
|
|
2025
|
-
if (
|
|
2026
|
-
|
|
1999
|
+
for (let W of Object.keys(h)) {
|
|
2000
|
+
if (log.debug("Checking key", W), W.startsWith("__") || W.includes("proto") || W.includes("constr") || !configKeys.has(W) || h[W] == null) {
|
|
2001
|
+
log.debug("sanitize deleting key: ", W), delete h[W];
|
|
2027
2002
|
continue;
|
|
2028
2003
|
}
|
|
2029
|
-
if (typeof
|
|
2030
|
-
|
|
2004
|
+
if (typeof h[W] == "object") {
|
|
2005
|
+
log.debug("sanitizing object", W), sanitizeDirective(h[W]);
|
|
2031
2006
|
continue;
|
|
2032
2007
|
}
|
|
2033
|
-
for (let
|
|
2008
|
+
for (let K of [
|
|
2034
2009
|
"themeCSS",
|
|
2035
2010
|
"fontFamily",
|
|
2036
2011
|
"altFontFamily"
|
|
2037
|
-
])
|
|
2012
|
+
]) W.includes(K) && (log.debug("sanitizing css option", W), h[W] = sanitizeCss(h[W]));
|
|
2038
2013
|
}
|
|
2039
|
-
if (
|
|
2040
|
-
let
|
|
2041
|
-
|
|
2014
|
+
if (h.themeVariables) for (let W of Object.keys(h.themeVariables)) {
|
|
2015
|
+
let G = h.themeVariables[W];
|
|
2016
|
+
G?.match && !G.match(/^[\d "#%(),.;A-Za-z]+$/) && (h.themeVariables[W] = "");
|
|
2042
2017
|
}
|
|
2043
|
-
|
|
2018
|
+
log.debug("After sanitization", h);
|
|
2044
2019
|
}
|
|
2045
|
-
}, "sanitizeDirective"),
|
|
2046
|
-
let
|
|
2047
|
-
for (let
|
|
2048
|
-
if (
|
|
2049
|
-
|
|
2020
|
+
}, "sanitizeDirective"), sanitizeCss = /* @__PURE__ */ __name((h) => {
|
|
2021
|
+
let W = 0, G = 0;
|
|
2022
|
+
for (let K of h) {
|
|
2023
|
+
if (W < G) return "{ /* ERROR: Unbalanced CSS */ }";
|
|
2024
|
+
K === "{" ? W++ : K === "}" && G++;
|
|
2050
2025
|
}
|
|
2051
|
-
return
|
|
2052
|
-
}, "sanitizeCss"),
|
|
2026
|
+
return W === G ? h : "{ /* ERROR: Unbalanced CSS */ }";
|
|
2027
|
+
}, "sanitizeCss"), defaultConfig = Object.freeze(defaultConfig_default), evaluate = /* @__PURE__ */ __name((h) => !(h === !1 || [
|
|
2053
2028
|
"false",
|
|
2054
2029
|
"null",
|
|
2055
2030
|
"0"
|
|
2056
|
-
].includes(String(
|
|
2057
|
-
let
|
|
2058
|
-
for (let
|
|
2059
|
-
if (
|
|
2060
|
-
let
|
|
2061
|
-
|
|
2031
|
+
].includes(String(h).trim().toLowerCase())), "evaluate"), siteConfig = assignWithDepth_default({}, defaultConfig), configFromInitialize, directives = [], currentConfig = assignWithDepth_default({}, defaultConfig), updateCurrentConfig = /* @__PURE__ */ __name((h, W) => {
|
|
2032
|
+
let G = assignWithDepth_default({}, h), K = {};
|
|
2033
|
+
for (let h of W) sanitize(h), K = assignWithDepth_default(K, h);
|
|
2034
|
+
if (G = assignWithDepth_default(G, K), K.theme && K.theme in themes_default) {
|
|
2035
|
+
let h = assignWithDepth_default(assignWithDepth_default({}, configFromInitialize).themeVariables || {}, K.themeVariables);
|
|
2036
|
+
G.theme && G.theme in themes_default && (G.themeVariables = themes_default[G.theme].getThemeVariables(h));
|
|
2062
2037
|
}
|
|
2063
|
-
return
|
|
2064
|
-
}, "updateCurrentConfig"),
|
|
2065
|
-
|
|
2066
|
-
}, "saveConfigFromInitialize"),
|
|
2067
|
-
|
|
2068
|
-
Object.hasOwn(
|
|
2069
|
-
}), Object.keys(
|
|
2070
|
-
|
|
2071
|
-
}), Object.keys(
|
|
2072
|
-
typeof
|
|
2038
|
+
return currentConfig = G, checkConfig(currentConfig), currentConfig;
|
|
2039
|
+
}, "updateCurrentConfig"), setSiteConfig = /* @__PURE__ */ __name((h) => (siteConfig = assignWithDepth_default({}, defaultConfig), siteConfig = assignWithDepth_default(siteConfig, h), h.theme && themes_default[h.theme] && (siteConfig.themeVariables = themes_default[h.theme].getThemeVariables(h.themeVariables)), updateCurrentConfig(siteConfig, directives), siteConfig), "setSiteConfig"), saveConfigFromInitialize = /* @__PURE__ */ __name((h) => {
|
|
2040
|
+
configFromInitialize = assignWithDepth_default({}, h);
|
|
2041
|
+
}, "saveConfigFromInitialize"), updateSiteConfig = /* @__PURE__ */ __name((h) => (siteConfig = assignWithDepth_default(siteConfig, h), updateCurrentConfig(siteConfig, directives), siteConfig), "updateSiteConfig"), getSiteConfig = /* @__PURE__ */ __name(() => assignWithDepth_default({}, siteConfig), "getSiteConfig"), setConfig = /* @__PURE__ */ __name((h) => (checkConfig(h), assignWithDepth_default(currentConfig, h), getConfig()), "setConfig"), getConfig = /* @__PURE__ */ __name(() => assignWithDepth_default({}, currentConfig), "getConfig"), sanitize = /* @__PURE__ */ __name((h) => {
|
|
2042
|
+
h && (["secure", ...siteConfig.secure ?? []].forEach((W) => {
|
|
2043
|
+
Object.hasOwn(h, W) && (log.debug(`Denied attempt to modify a secure key ${W}`, h[W]), delete h[W]);
|
|
2044
|
+
}), Object.keys(h).forEach((W) => {
|
|
2045
|
+
W.startsWith("__") && delete h[W];
|
|
2046
|
+
}), Object.keys(h).forEach((W) => {
|
|
2047
|
+
typeof h[W] == "string" && (h[W].includes("<") || h[W].includes(">") || h[W].includes("url(data:")) && delete h[W], typeof h[W] == "object" && sanitize(h[W]);
|
|
2073
2048
|
}));
|
|
2074
|
-
}, "sanitize"),
|
|
2075
|
-
|
|
2076
|
-
...
|
|
2077
|
-
fontFamily:
|
|
2078
|
-
}),
|
|
2079
|
-
}, "addDirective"),
|
|
2080
|
-
|
|
2081
|
-
}, "reset"),
|
|
2049
|
+
}, "sanitize"), addDirective = /* @__PURE__ */ __name((h) => {
|
|
2050
|
+
sanitizeDirective(h), h.fontFamily && !h.themeVariables?.fontFamily && (h.themeVariables = {
|
|
2051
|
+
...h.themeVariables,
|
|
2052
|
+
fontFamily: h.fontFamily
|
|
2053
|
+
}), directives.push(h), updateCurrentConfig(siteConfig, directives);
|
|
2054
|
+
}, "addDirective"), reset = /* @__PURE__ */ __name((h = siteConfig) => {
|
|
2055
|
+
directives = [], updateCurrentConfig(h, directives);
|
|
2056
|
+
}, "reset"), ConfigWarning = {
|
|
2082
2057
|
LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",
|
|
2083
2058
|
FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
|
|
2084
|
-
},
|
|
2085
|
-
|
|
2086
|
-
}, "issueWarning"),
|
|
2087
|
-
|
|
2088
|
-
}, "checkConfig"),
|
|
2089
|
-
let
|
|
2090
|
-
|
|
2091
|
-
for (let
|
|
2092
|
-
return
|
|
2093
|
-
}, "getUserDefinedConfig"),
|
|
2094
|
-
let
|
|
2059
|
+
}, issuedWarnings = {}, issueWarning = /* @__PURE__ */ __name((h) => {
|
|
2060
|
+
issuedWarnings[h] || (log.warn(ConfigWarning[h]), issuedWarnings[h] = !0);
|
|
2061
|
+
}, "issueWarning"), checkConfig = /* @__PURE__ */ __name((h) => {
|
|
2062
|
+
h && (h.lazyLoadedDiagrams || h.loadExternalDiagramsAtStartup) && issueWarning("LAZY_LOAD_DEPRECATED");
|
|
2063
|
+
}, "checkConfig"), getUserDefinedConfig = /* @__PURE__ */ __name(() => {
|
|
2064
|
+
let h = {};
|
|
2065
|
+
configFromInitialize && (h = assignWithDepth_default(h, configFromInitialize));
|
|
2066
|
+
for (let W of directives) h = assignWithDepth_default(h, W);
|
|
2067
|
+
return h;
|
|
2068
|
+
}, "getUserDefinedConfig"), getEffectiveHtmlLabels = /* @__PURE__ */ __name((h) => (h.flowchart?.htmlLabels != null && issueWarning("FLOWCHART_HTML_LABELS_DEPRECATED"), evaluate(h.htmlLabels ?? h.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), lineBreakRegex = /<br\s*\/?>/gi, getRows = /* @__PURE__ */ __name((h) => h ? breakToPlaceholder(h).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), setupDompurifyHooksIfNotSetup = /* @__PURE__ */ (() => {
|
|
2069
|
+
let h = !1;
|
|
2095
2070
|
return () => {
|
|
2096
|
-
|
|
2071
|
+
h ||= (setupDompurifyHooks(), !0);
|
|
2097
2072
|
};
|
|
2098
2073
|
})();
|
|
2099
|
-
function
|
|
2100
|
-
let
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
}),
|
|
2104
|
-
|
|
2074
|
+
function setupDompurifyHooks() {
|
|
2075
|
+
let h = "data-temp-href-target";
|
|
2076
|
+
purify.addHook("beforeSanitizeAttributes", (W) => {
|
|
2077
|
+
W.tagName === "A" && W.hasAttribute("target") && W.setAttribute(h, W.getAttribute("target") ?? "");
|
|
2078
|
+
}), purify.addHook("afterSanitizeAttributes", (W) => {
|
|
2079
|
+
W.tagName === "A" && W.hasAttribute(h) && (W.setAttribute("target", W.getAttribute(h) ?? ""), W.removeAttribute(h), W.getAttribute("target") === "_blank" && W.setAttribute("rel", "noopener"));
|
|
2105
2080
|
});
|
|
2106
2081
|
}
|
|
2107
|
-
|
|
2108
|
-
var
|
|
2109
|
-
if (
|
|
2110
|
-
let
|
|
2111
|
-
|
|
2082
|
+
__name(setupDompurifyHooks, "setupDompurifyHooks");
|
|
2083
|
+
var removeScript = /* @__PURE__ */ __name((h) => (setupDompurifyHooksIfNotSetup(), purify.sanitize(h)), "removeScript"), sanitizeMore = /* @__PURE__ */ __name((h, W) => {
|
|
2084
|
+
if (getEffectiveHtmlLabels(W)) {
|
|
2085
|
+
let G = W.securityLevel;
|
|
2086
|
+
G === "antiscript" || G === "strict" || G === "sandbox" ? h = removeScript(h) : G !== "loose" && (h = breakToPlaceholder(h), h = h.replace(/</g, "<").replace(/>/g, ">"), h = h.replace(/=/g, "="), h = placeholderToBreak(h));
|
|
2112
2087
|
}
|
|
2113
|
-
return
|
|
2114
|
-
}, "sanitizeMore"),
|
|
2115
|
-
let
|
|
2116
|
-
return
|
|
2117
|
-
}, "getUrl"),
|
|
2118
|
-
let
|
|
2119
|
-
return Math.max(...
|
|
2120
|
-
}, "getMax"),
|
|
2121
|
-
let
|
|
2122
|
-
return Math.min(...
|
|
2123
|
-
}, "getMin"),
|
|
2124
|
-
let
|
|
2125
|
-
for (let
|
|
2126
|
-
let
|
|
2127
|
-
if (
|
|
2128
|
-
let
|
|
2129
|
-
|
|
2088
|
+
return h;
|
|
2089
|
+
}, "sanitizeMore"), sanitizeText = /* @__PURE__ */ __name((h, W) => h && (h = W.dompurifyConfig ? purify.sanitize(sanitizeMore(h, W), W.dompurifyConfig).toString() : purify.sanitize(sanitizeMore(h, W), { FORBID_TAGS: ["style"] }).toString(), h), "sanitizeText"), sanitizeTextOrArray = /* @__PURE__ */ __name((h, W) => typeof h == "string" ? sanitizeText(h, W) : h.flat().map((h) => sanitizeText(h, W)), "sanitizeTextOrArray"), hasBreaks = /* @__PURE__ */ __name((h) => lineBreakRegex.test(h), "hasBreaks"), splitBreaks = /* @__PURE__ */ __name((h) => h.split(lineBreakRegex), "splitBreaks"), placeholderToBreak = /* @__PURE__ */ __name((h) => h.replace(/#br#/g, "<br/>"), "placeholderToBreak"), breakToPlaceholder = /* @__PURE__ */ __name((h) => h.replace(lineBreakRegex, "#br#"), "breakToPlaceholder"), getUrl = /* @__PURE__ */ __name((h) => {
|
|
2090
|
+
let W = "";
|
|
2091
|
+
return h && (W = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, W = CSS.escape(W)), W;
|
|
2092
|
+
}, "getUrl"), getMax = /* @__PURE__ */ __name(function(...h) {
|
|
2093
|
+
let W = h.filter((h) => !isNaN(h));
|
|
2094
|
+
return Math.max(...W);
|
|
2095
|
+
}, "getMax"), getMin = /* @__PURE__ */ __name(function(...h) {
|
|
2096
|
+
let W = h.filter((h) => !isNaN(h));
|
|
2097
|
+
return Math.min(...W);
|
|
2098
|
+
}, "getMin"), parseGenericTypes = /* @__PURE__ */ __name(function(h) {
|
|
2099
|
+
let W = h.split(/(,)/), G = [];
|
|
2100
|
+
for (let h = 0; h < W.length; h++) {
|
|
2101
|
+
let K = W[h];
|
|
2102
|
+
if (K === "," && h > 0 && h + 1 < W.length) {
|
|
2103
|
+
let q = W[h - 1], J = W[h + 1];
|
|
2104
|
+
shouldCombineSets(q, J) && (K = q + "," + J, h++, G.pop());
|
|
2130
2105
|
}
|
|
2131
|
-
|
|
2106
|
+
G.push(processSet(K));
|
|
2132
2107
|
}
|
|
2133
|
-
return
|
|
2134
|
-
}, "parseGenericTypes"),
|
|
2135
|
-
let
|
|
2136
|
-
return
|
|
2137
|
-
}, "shouldCombineSets"),
|
|
2138
|
-
let
|
|
2139
|
-
if (
|
|
2140
|
-
|
|
2141
|
-
let
|
|
2142
|
-
for (;
|
|
2143
|
-
return
|
|
2144
|
-
}, "processSet"),
|
|
2145
|
-
let
|
|
2146
|
-
|
|
2147
|
-
let
|
|
2148
|
-
width:
|
|
2149
|
-
height:
|
|
2108
|
+
return G.join("");
|
|
2109
|
+
}, "parseGenericTypes"), countOccurrence = /* @__PURE__ */ __name((h, W) => Math.max(0, h.split(W).length - 1), "countOccurrence"), shouldCombineSets = /* @__PURE__ */ __name((h, W) => {
|
|
2110
|
+
let G = countOccurrence(h, "~"), K = countOccurrence(W, "~");
|
|
2111
|
+
return G === 1 && K === 1;
|
|
2112
|
+
}, "shouldCombineSets"), processSet = /* @__PURE__ */ __name((h) => {
|
|
2113
|
+
let W = countOccurrence(h, "~"), G = !1;
|
|
2114
|
+
if (W <= 1) return h;
|
|
2115
|
+
W % 2 != 0 && h.startsWith("~") && (h = h.substring(1), G = !0);
|
|
2116
|
+
let K = [...h], q = K.indexOf("~"), J = K.lastIndexOf("~");
|
|
2117
|
+
for (; q !== -1 && J !== -1 && q !== J;) K[q] = "<", K[J] = ">", q = K.indexOf("~"), J = K.lastIndexOf("~");
|
|
2118
|
+
return G && K.unshift("~"), K.join("");
|
|
2119
|
+
}, "processSet"), isMathMLSupported = /* @__PURE__ */ __name(() => window.MathMLElement !== void 0, "isMathMLSupported"), katexRegex = /\$\$(.*)\$\$/g, hasKatex = /* @__PURE__ */ __name((h) => (h.match(katexRegex)?.length ?? 0) > 0, "hasKatex"), calculateMathMLDimensions = /* @__PURE__ */ __name(async (h, W) => {
|
|
2120
|
+
let G = document.createElement("div");
|
|
2121
|
+
G.innerHTML = await renderKatexSanitized(h, W), G.id = "katex-temp", G.style.visibility = "hidden", G.style.position = "absolute", G.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", G);
|
|
2122
|
+
let K = {
|
|
2123
|
+
width: G.clientWidth,
|
|
2124
|
+
height: G.clientHeight
|
|
2150
2125
|
};
|
|
2151
|
-
return
|
|
2152
|
-
}, "calculateMathMLDimensions"),
|
|
2153
|
-
if (!
|
|
2154
|
-
if (!(
|
|
2126
|
+
return G.remove(), K;
|
|
2127
|
+
}, "calculateMathMLDimensions"), renderKatexUnsanitized = /* @__PURE__ */ __name(async (h, W) => {
|
|
2128
|
+
if (!hasKatex(h)) return h;
|
|
2129
|
+
if (!(isMathMLSupported() || W.legacyMathML || W.forceLegacyMathML)) return h.replace(katexRegex, "MathML is unsupported in this environment.");
|
|
2155
2130
|
{
|
|
2156
|
-
let { default:
|
|
2157
|
-
return
|
|
2131
|
+
let { default: G } = await import("../../../../katex/dist/katex.js"), K = W.forceLegacyMathML || !isMathMLSupported() && W.legacyMathML ? "htmlAndMathml" : "mathml";
|
|
2132
|
+
return h.split(lineBreakRegex).map((h) => hasKatex(h) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${h}</div>` : `<div>${h}</div>`).join("").replace(katexRegex, (h, W) => G.renderToString(W, {
|
|
2158
2133
|
throwOnError: !0,
|
|
2159
2134
|
displayMode: !0,
|
|
2160
|
-
output:
|
|
2135
|
+
output: K
|
|
2161
2136
|
}).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
|
|
2162
2137
|
}
|
|
2163
|
-
return
|
|
2164
|
-
}, "renderKatexUnsanitized"),
|
|
2165
|
-
getRows
|
|
2166
|
-
sanitizeText
|
|
2167
|
-
sanitizeTextOrArray
|
|
2168
|
-
hasBreaks
|
|
2169
|
-
splitBreaks
|
|
2170
|
-
lineBreakRegex
|
|
2171
|
-
removeScript
|
|
2172
|
-
getUrl
|
|
2173
|
-
evaluate
|
|
2174
|
-
getMax
|
|
2175
|
-
getMin
|
|
2176
|
-
},
|
|
2177
|
-
for (let
|
|
2178
|
-
}, "d3Attrs"),
|
|
2179
|
-
let
|
|
2180
|
-
return
|
|
2181
|
-
}, "calculateSvgSizeAttrs"),
|
|
2182
|
-
|
|
2183
|
-
}, "configureSvgSize"),
|
|
2184
|
-
let
|
|
2185
|
-
|
|
2186
|
-
let
|
|
2187
|
-
|
|
2188
|
-
let
|
|
2189
|
-
|
|
2190
|
-
}, "setupGraphViewbox"),
|
|
2191
|
-
let
|
|
2192
|
-
return
|
|
2193
|
-
...
|
|
2194
|
-
svgId:
|
|
2195
|
-
}) :
|
|
2196
|
-
font-family: ${
|
|
2197
|
-
font-size: ${
|
|
2198
|
-
fill: ${
|
|
2138
|
+
return h.replace(katexRegex, "Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.");
|
|
2139
|
+
}, "renderKatexUnsanitized"), renderKatexSanitized = /* @__PURE__ */ __name(async (h, W) => sanitizeText(await renderKatexUnsanitized(h, W), W), "renderKatexSanitized"), common_default = {
|
|
2140
|
+
getRows,
|
|
2141
|
+
sanitizeText,
|
|
2142
|
+
sanitizeTextOrArray,
|
|
2143
|
+
hasBreaks,
|
|
2144
|
+
splitBreaks,
|
|
2145
|
+
lineBreakRegex,
|
|
2146
|
+
removeScript,
|
|
2147
|
+
getUrl,
|
|
2148
|
+
evaluate,
|
|
2149
|
+
getMax,
|
|
2150
|
+
getMin
|
|
2151
|
+
}, d3Attrs = /* @__PURE__ */ __name(function(h, W) {
|
|
2152
|
+
for (let G of W) h.attr(G[0], G[1]);
|
|
2153
|
+
}, "d3Attrs"), calculateSvgSizeAttrs = /* @__PURE__ */ __name(function(h, W, G) {
|
|
2154
|
+
let K = /* @__PURE__ */ new Map();
|
|
2155
|
+
return G ? (K.set("width", "100%"), K.set("style", `max-width: ${W}px;`)) : (K.set("height", h), K.set("width", W)), K;
|
|
2156
|
+
}, "calculateSvgSizeAttrs"), configureSvgSize = /* @__PURE__ */ __name(function(h, W, G, K) {
|
|
2157
|
+
d3Attrs(h, calculateSvgSizeAttrs(W, G, K));
|
|
2158
|
+
}, "configureSvgSize"), setupGraphViewbox = /* @__PURE__ */ __name(function(h, W, K, q) {
|
|
2159
|
+
let J = W.node().getBBox(), Y = J.width, X = J.height;
|
|
2160
|
+
log.info(`SVG bounds: ${Y}x${X}`, J);
|
|
2161
|
+
let Z = 0, Q = 0;
|
|
2162
|
+
log.info(`Graph bounds: ${Z}x${Q}`, h), Z = Y + K * 2, Q = X + K * 2, log.info(`Calculated bounds: ${Z}x${Q}`), configureSvgSize(W, Q, Z, q);
|
|
2163
|
+
let $ = `${J.x - K} ${J.y - K} ${J.width + 2 * K} ${J.height + 2 * K}`;
|
|
2164
|
+
W.attr("viewBox", $);
|
|
2165
|
+
}, "setupGraphViewbox"), themes = {}, getStyles = /* @__PURE__ */ __name((h, W, K, q) => {
|
|
2166
|
+
let J = "";
|
|
2167
|
+
return h in themes && themes[h] ? J = themes[h]({
|
|
2168
|
+
...K,
|
|
2169
|
+
svgId: q
|
|
2170
|
+
}) : log.warn(`No theme found for ${h}`), ` & {
|
|
2171
|
+
font-family: ${K.fontFamily};
|
|
2172
|
+
font-size: ${K.fontSize};
|
|
2173
|
+
fill: ${K.textColor}
|
|
2199
2174
|
}
|
|
2200
2175
|
@keyframes edge-animation-frame {
|
|
2201
2176
|
from {
|
|
@@ -2222,15 +2197,15 @@ var Be = /* @__PURE__ */ t((e) => (Re(), u.sanitize(e)), "removeScript"), Ve = /
|
|
|
2222
2197
|
/* Classes common for multiple diagrams */
|
|
2223
2198
|
|
|
2224
2199
|
& .error-icon {
|
|
2225
|
-
fill: ${
|
|
2200
|
+
fill: ${K.errorBkgColor};
|
|
2226
2201
|
}
|
|
2227
2202
|
& .error-text {
|
|
2228
|
-
fill: ${
|
|
2229
|
-
stroke: ${
|
|
2203
|
+
fill: ${K.errorTextColor};
|
|
2204
|
+
stroke: ${K.errorTextColor};
|
|
2230
2205
|
}
|
|
2231
2206
|
|
|
2232
2207
|
& .edge-thickness-normal {
|
|
2233
|
-
stroke-width: ${
|
|
2208
|
+
stroke-width: ${K.strokeWidth ?? 1}px;
|
|
2234
2209
|
}
|
|
2235
2210
|
& .edge-thickness-thick {
|
|
2236
2211
|
stroke-width: 3.5px
|
|
@@ -2250,49 +2225,49 @@ var Be = /* @__PURE__ */ t((e) => (Re(), u.sanitize(e)), "removeScript"), Ve = /
|
|
|
2250
2225
|
}
|
|
2251
2226
|
|
|
2252
2227
|
& .marker {
|
|
2253
|
-
fill: ${
|
|
2254
|
-
stroke: ${
|
|
2228
|
+
fill: ${K.lineColor};
|
|
2229
|
+
stroke: ${K.lineColor};
|
|
2255
2230
|
}
|
|
2256
2231
|
& .marker.cross {
|
|
2257
|
-
stroke: ${
|
|
2232
|
+
stroke: ${K.lineColor};
|
|
2258
2233
|
}
|
|
2259
2234
|
|
|
2260
2235
|
& svg {
|
|
2261
|
-
font-family: ${
|
|
2262
|
-
font-size: ${
|
|
2236
|
+
font-family: ${K.fontFamily};
|
|
2237
|
+
font-size: ${K.fontSize};
|
|
2263
2238
|
}
|
|
2264
2239
|
& p {
|
|
2265
2240
|
margin: 0
|
|
2266
2241
|
}
|
|
2267
2242
|
|
|
2268
|
-
${
|
|
2243
|
+
${J}
|
|
2269
2244
|
.node .neo-node {
|
|
2270
|
-
stroke: ${
|
|
2245
|
+
stroke: ${K.nodeBorder};
|
|
2271
2246
|
}
|
|
2272
2247
|
|
|
2273
2248
|
[data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
|
|
2274
|
-
stroke: ${
|
|
2275
|
-
filter: ${
|
|
2249
|
+
stroke: ${K.useGradient ? "url(" + q + "-gradient)" : K.nodeBorder};
|
|
2250
|
+
filter: ${K.dropShadow ? K.dropShadow.replace("url(#drop-shadow)", `url(${q}-drop-shadow)`) : "none"};
|
|
2276
2251
|
}
|
|
2277
2252
|
|
|
2278
2253
|
|
|
2279
2254
|
[data-look="neo"].node path {
|
|
2280
|
-
stroke: ${
|
|
2281
|
-
stroke-width: ${
|
|
2255
|
+
stroke: ${K.useGradient ? "url(" + q + "-gradient)" : K.nodeBorder};
|
|
2256
|
+
stroke-width: ${K.strokeWidth ?? 1}px;
|
|
2282
2257
|
}
|
|
2283
2258
|
|
|
2284
2259
|
[data-look="neo"].node .outer-path {
|
|
2285
|
-
filter: ${
|
|
2260
|
+
filter: ${K.dropShadow ? K.dropShadow.replace("url(#drop-shadow)", `url(${q}-drop-shadow)`) : "none"};
|
|
2286
2261
|
}
|
|
2287
2262
|
|
|
2288
2263
|
[data-look="neo"].node .neo-line path {
|
|
2289
|
-
stroke: ${
|
|
2264
|
+
stroke: ${K.nodeBorder};
|
|
2290
2265
|
filter: none;
|
|
2291
2266
|
}
|
|
2292
2267
|
|
|
2293
2268
|
[data-look="neo"].node circle{
|
|
2294
|
-
stroke: ${
|
|
2295
|
-
filter: ${
|
|
2269
|
+
stroke: ${K.useGradient ? "url(" + q + "-gradient)" : K.nodeBorder};
|
|
2270
|
+
filter: ${K.dropShadow ? K.dropShadow.replace("url(#drop-shadow)", `url(${q}-drop-shadow)`) : "none"};
|
|
2296
2271
|
}
|
|
2297
2272
|
|
|
2298
2273
|
[data-look="neo"].node circle .state-start{
|
|
@@ -2300,49 +2275,46 @@ var Be = /* @__PURE__ */ t((e) => (Re(), u.sanitize(e)), "removeScript"), Ve = /
|
|
|
2300
2275
|
}
|
|
2301
2276
|
|
|
2302
2277
|
[data-look="neo"].icon-shape .icon {
|
|
2303
|
-
fill: ${
|
|
2304
|
-
filter: ${
|
|
2278
|
+
fill: ${K.useGradient ? "url(" + q + "-gradient)" : K.nodeBorder};
|
|
2279
|
+
filter: ${K.dropShadow ? K.dropShadow.replace("url(#drop-shadow)", `url(${q}-drop-shadow)`) : "none"};
|
|
2305
2280
|
}
|
|
2306
2281
|
|
|
2307
2282
|
[data-look="neo"].icon-shape .icon-neo path {
|
|
2308
|
-
stroke: ${
|
|
2309
|
-
filter: ${
|
|
2283
|
+
stroke: ${K.useGradient ? "url(" + q + "-gradient)" : K.nodeBorder};
|
|
2284
|
+
filter: ${K.dropShadow ? K.dropShadow.replace("url(#drop-shadow)", `url(${q}-drop-shadow)`) : "none"};
|
|
2310
2285
|
}
|
|
2311
2286
|
|
|
2312
|
-
${
|
|
2287
|
+
${W}
|
|
2313
2288
|
`;
|
|
2314
|
-
}, "getStyles"),
|
|
2315
|
-
|
|
2316
|
-
}, "addStylesForDiagram"),
|
|
2317
|
-
|
|
2318
|
-
clear: () =>
|
|
2319
|
-
getAccDescription: () =>
|
|
2320
|
-
getAccTitle: () =>
|
|
2321
|
-
getDiagramTitle: () =>
|
|
2322
|
-
setAccDescription: () =>
|
|
2323
|
-
setAccTitle: () =>
|
|
2324
|
-
setDiagramTitle: () =>
|
|
2289
|
+
}, "getStyles"), addStylesForDiagram = /* @__PURE__ */ __name((h, W) => {
|
|
2290
|
+
W !== void 0 && (themes[h] = W);
|
|
2291
|
+
}, "addStylesForDiagram"), styles_default = getStyles, commonDb_exports = {};
|
|
2292
|
+
__export(commonDb_exports, {
|
|
2293
|
+
clear: () => clear,
|
|
2294
|
+
getAccDescription: () => getAccDescription,
|
|
2295
|
+
getAccTitle: () => getAccTitle,
|
|
2296
|
+
getDiagramTitle: () => getDiagramTitle,
|
|
2297
|
+
setAccDescription: () => setAccDescription,
|
|
2298
|
+
setAccTitle: () => setAccTitle,
|
|
2299
|
+
setDiagramTitle: () => setDiagramTitle
|
|
2325
2300
|
});
|
|
2326
|
-
var
|
|
2327
|
-
|
|
2328
|
-
}, "clear"),
|
|
2329
|
-
|
|
2330
|
-
}, "setAccTitle"),
|
|
2331
|
-
|
|
2332
|
-
}, "setAccDescription"),
|
|
2333
|
-
|
|
2334
|
-
}, "setDiagramTitle"),
|
|
2335
|
-
|
|
2336
|
-
}, "registerDiagram"),
|
|
2337
|
-
if (
|
|
2338
|
-
throw new
|
|
2339
|
-
}, "getDiagram"),
|
|
2340
|
-
static
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
constructor(e) {
|
|
2344
|
-
super(`Diagram ${e} not found.`);
|
|
2301
|
+
var accTitle = "", diagramTitle = "", accDescription = "", sanitizeText2 = /* @__PURE__ */ __name((h) => sanitizeText(h, getConfig()), "sanitizeText"), clear = /* @__PURE__ */ __name(() => {
|
|
2302
|
+
accTitle = "", accDescription = "", diagramTitle = "";
|
|
2303
|
+
}, "clear"), setAccTitle = /* @__PURE__ */ __name((h) => {
|
|
2304
|
+
accTitle = sanitizeText2(h).replace(/^\s+/g, "");
|
|
2305
|
+
}, "setAccTitle"), getAccTitle = /* @__PURE__ */ __name(() => accTitle, "getAccTitle"), setAccDescription = /* @__PURE__ */ __name((h) => {
|
|
2306
|
+
accDescription = sanitizeText2(h).replace(/\n\s+/g, "\n");
|
|
2307
|
+
}, "setAccDescription"), getAccDescription = /* @__PURE__ */ __name(() => accDescription, "getAccDescription"), setDiagramTitle = /* @__PURE__ */ __name((h) => {
|
|
2308
|
+
diagramTitle = sanitizeText2(h);
|
|
2309
|
+
}, "setDiagramTitle"), getDiagramTitle = /* @__PURE__ */ __name(() => diagramTitle, "getDiagramTitle"), log2 = log, setLogLevel2 = setLogLevel, getConfig2 = getConfig, setConfig2 = setConfig, defaultConfig2 = defaultConfig, sanitizeText3 = /* @__PURE__ */ __name((h) => sanitizeText(h, getConfig2()), "sanitizeText"), setupGraphViewbox2 = setupGraphViewbox, getCommonDb = /* @__PURE__ */ __name(() => commonDb_exports, "getCommonDb"), diagrams = {}, registerDiagram = /* @__PURE__ */ __name((h, W, G) => {
|
|
2310
|
+
diagrams[h] && log2.warn(`Diagram with id ${h} already registered. Overwriting.`), diagrams[h] = W, G && addDetector(h, G), addStylesForDiagram(h, W.styles), W.injectUtils?.(log2, setLogLevel2, getConfig2, sanitizeText3, setupGraphViewbox2, getCommonDb(), () => {});
|
|
2311
|
+
}, "registerDiagram"), getDiagram = /* @__PURE__ */ __name((h) => {
|
|
2312
|
+
if (h in diagrams) return diagrams[h];
|
|
2313
|
+
throw new DiagramNotFoundError(h);
|
|
2314
|
+
}, "getDiagram"), DiagramNotFoundError = class extends Error {
|
|
2315
|
+
static #e = __name(this, "DiagramNotFoundError");
|
|
2316
|
+
constructor(h) {
|
|
2317
|
+
super(`Diagram ${h} not found.`);
|
|
2345
2318
|
}
|
|
2346
2319
|
};
|
|
2347
|
-
|
|
2348
|
-
export { p as UnknownDiagramError, je as addDirective, _ as assignWithDepth_default, et as calculateMathMLDimensions, dt as clear, G as commonDb_exports, rt as common_default, ot as configureSvgSize, D as defaultConfig, bt as defaultConfig2, T as defaultConfig_default, te as detectType, m as detectors, f as directiveRegex, O as evaluate, d as frontMatterRegex, ht as getAccDescription, pt as getAccTitle, F as getConfig, Z as getConfig2, wt as getDiagram, re as getDiagramLoader, gt as getDiagramTitle, Ie as getEffectiveHtmlLabels, Ae as getSiteConfig, le as getThemeVariables3, qe as getUrl, Fe as getUserDefinedConfig, U as hasKatex, z as lineBreakRegex, Xe as parseGenericTypes, Ct as registerDiagram, ne as registerLazyLoadedDiagrams, nt as renderKatexSanitized, Me as reset, E as sanitizeDirective, B as sanitizeText, xt as sanitizeText3, Oe as saveConfigFromInitialize, mt as setAccDescription, ft as setAccTitle, P as setConfig, yt as setConfig2, X as setDiagramTitle, De as setSiteConfig, st as setupGraphViewbox, Q as setupGraphViewbox2, ut as styles_default, x as themes_default, ke as updateSiteConfig };
|
|
2320
|
+
export { UnknownDiagramError, addDirective, assignWithDepth_default, calculateMathMLDimensions, clear, commonDb_exports, common_default, configureSvgSize, defaultConfig, defaultConfig2, defaultConfig_default, detectType, detectors, directiveRegex, evaluate, frontMatterRegex, getAccDescription, getAccTitle, getConfig, getConfig2, getDiagram, getDiagramLoader, getDiagramTitle, getEffectiveHtmlLabels, getSiteConfig, getThemeVariables3, getUrl, getUserDefinedConfig, hasKatex, lineBreakRegex, parseGenericTypes, registerDiagram, registerLazyLoadedDiagrams, renderKatexSanitized, reset, sanitizeDirective, sanitizeText, sanitizeText3, saveConfigFromInitialize, setAccDescription, setAccTitle, setConfig, setConfig2, setDiagramTitle, setSiteConfig, setupGraphViewbox, setupGraphViewbox2, styles_default, themes_default, updateSiteConfig };
|