@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,626 +1,625 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
return t(e);
|
|
1
|
+
function clone(l) {
|
|
2
|
+
return doClone(l);
|
|
4
3
|
}
|
|
5
|
-
function
|
|
6
|
-
return Array.isArray(
|
|
4
|
+
function doClone(l) {
|
|
5
|
+
return Array.isArray(l) ? cloneArray(l) : l instanceof RegExp ? l : typeof l == "object" ? cloneObj(l) : l;
|
|
7
6
|
}
|
|
8
|
-
function
|
|
9
|
-
let
|
|
10
|
-
for (let
|
|
11
|
-
return
|
|
7
|
+
function cloneArray(l) {
|
|
8
|
+
let z = [];
|
|
9
|
+
for (let B = 0, V = l.length; B < V; B++) z[B] = doClone(l[B]);
|
|
10
|
+
return z;
|
|
12
11
|
}
|
|
13
|
-
function
|
|
14
|
-
let
|
|
15
|
-
for (let
|
|
16
|
-
return
|
|
12
|
+
function cloneObj(l) {
|
|
13
|
+
let z = {};
|
|
14
|
+
for (let B in l) z[B] = doClone(l[B]);
|
|
15
|
+
return z;
|
|
17
16
|
}
|
|
18
|
-
function
|
|
19
|
-
return
|
|
20
|
-
for (let
|
|
21
|
-
}),
|
|
17
|
+
function mergeObjects(l, ...R) {
|
|
18
|
+
return R.forEach((R) => {
|
|
19
|
+
for (let z in R) l[z] = R[z];
|
|
20
|
+
}), l;
|
|
22
21
|
}
|
|
23
|
-
function
|
|
24
|
-
let
|
|
25
|
-
return
|
|
22
|
+
function basename(l) {
|
|
23
|
+
let R = ~l.lastIndexOf("/") || ~l.lastIndexOf("\\");
|
|
24
|
+
return R === 0 ? l : ~R === l.length - 1 ? basename(l.substring(0, l.length - 1)) : l.substr(~R + 1);
|
|
26
25
|
}
|
|
27
|
-
var
|
|
28
|
-
static hasCaptures(
|
|
29
|
-
return
|
|
30
|
-
}
|
|
31
|
-
static replaceCaptures(
|
|
32
|
-
return
|
|
33
|
-
let
|
|
34
|
-
if (
|
|
35
|
-
let
|
|
36
|
-
for (;
|
|
37
|
-
switch (
|
|
38
|
-
case "downcase": return
|
|
39
|
-
case "upcase": return
|
|
40
|
-
default: return
|
|
26
|
+
var CAPTURING_REGEX_SOURCE = /\$(\d+)|\${(\d+):\/(downcase|upcase)}/g, RegexSource = class {
|
|
27
|
+
static hasCaptures(l) {
|
|
28
|
+
return l === null ? !1 : (CAPTURING_REGEX_SOURCE.lastIndex = 0, CAPTURING_REGEX_SOURCE.test(l));
|
|
29
|
+
}
|
|
30
|
+
static replaceCaptures(l, R, z) {
|
|
31
|
+
return l.replace(CAPTURING_REGEX_SOURCE, (l, B, V, H) => {
|
|
32
|
+
let U = z[parseInt(B || V, 10)];
|
|
33
|
+
if (U) {
|
|
34
|
+
let l = R.substring(U.start, U.end);
|
|
35
|
+
for (; l[0] === ".";) l = l.substring(1);
|
|
36
|
+
switch (H) {
|
|
37
|
+
case "downcase": return l.toLowerCase();
|
|
38
|
+
case "upcase": return l.toUpperCase();
|
|
39
|
+
default: return l;
|
|
41
40
|
}
|
|
42
|
-
} else return
|
|
41
|
+
} else return l;
|
|
43
42
|
});
|
|
44
43
|
}
|
|
45
44
|
};
|
|
46
|
-
function
|
|
47
|
-
return
|
|
45
|
+
function strcmp(l, R) {
|
|
46
|
+
return l < R ? -1 : l > R ? 1 : 0;
|
|
48
47
|
}
|
|
49
|
-
function l
|
|
50
|
-
if (
|
|
51
|
-
if (!
|
|
52
|
-
if (!
|
|
53
|
-
let
|
|
54
|
-
if (
|
|
55
|
-
for (let
|
|
56
|
-
let
|
|
57
|
-
if (
|
|
48
|
+
function strArrCmp(l, R) {
|
|
49
|
+
if (l === null && R === null) return 0;
|
|
50
|
+
if (!l) return -1;
|
|
51
|
+
if (!R) return 1;
|
|
52
|
+
let z = l.length, B = R.length;
|
|
53
|
+
if (z === B) {
|
|
54
|
+
for (let B = 0; B < z; B++) {
|
|
55
|
+
let z = strcmp(l[B], R[B]);
|
|
56
|
+
if (z !== 0) return z;
|
|
58
57
|
}
|
|
59
58
|
return 0;
|
|
60
59
|
}
|
|
61
|
-
return
|
|
60
|
+
return z - B;
|
|
62
61
|
}
|
|
63
|
-
function
|
|
64
|
-
return !!(/^#[0-9a-f]{6}$/i.test(
|
|
62
|
+
function isValidHexColor(l) {
|
|
63
|
+
return !!(/^#[0-9a-f]{6}$/i.test(l) || /^#[0-9a-f]{8}$/i.test(l) || /^#[0-9a-f]{3}$/i.test(l) || /^#[0-9a-f]{4}$/i.test(l));
|
|
65
64
|
}
|
|
66
|
-
function
|
|
67
|
-
return
|
|
65
|
+
function escapeRegExpCharacters(l) {
|
|
66
|
+
return l.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g, "\\$&");
|
|
68
67
|
}
|
|
69
|
-
var
|
|
70
|
-
constructor(
|
|
71
|
-
this.fn =
|
|
68
|
+
var CachedFn = class {
|
|
69
|
+
constructor(l) {
|
|
70
|
+
this.fn = l;
|
|
72
71
|
}
|
|
73
72
|
cache = /* @__PURE__ */ new Map();
|
|
74
|
-
get(
|
|
75
|
-
if (this.cache.has(
|
|
76
|
-
let
|
|
77
|
-
return this.cache.set(
|
|
73
|
+
get(l) {
|
|
74
|
+
if (this.cache.has(l)) return this.cache.get(l);
|
|
75
|
+
let R = this.fn(l);
|
|
76
|
+
return this.cache.set(l, R), R;
|
|
78
77
|
}
|
|
79
|
-
},
|
|
80
|
-
constructor(
|
|
81
|
-
this._colorMap =
|
|
78
|
+
}, Theme = class {
|
|
79
|
+
constructor(l, R, z) {
|
|
80
|
+
this._colorMap = l, this._defaults = R, this._root = z;
|
|
82
81
|
}
|
|
83
|
-
static createFromRawTheme(
|
|
84
|
-
return this.createFromParsedTheme(
|
|
82
|
+
static createFromRawTheme(l, R) {
|
|
83
|
+
return this.createFromParsedTheme(parseTheme(l), R);
|
|
85
84
|
}
|
|
86
|
-
static createFromParsedTheme(
|
|
87
|
-
return
|
|
85
|
+
static createFromParsedTheme(l, R) {
|
|
86
|
+
return resolveParsedThemeRules(l, R);
|
|
88
87
|
}
|
|
89
|
-
_cachedMatchRoot = new
|
|
88
|
+
_cachedMatchRoot = new CachedFn((l) => this._root.match(l));
|
|
90
89
|
getColorMap() {
|
|
91
90
|
return this._colorMap.getColorMap();
|
|
92
91
|
}
|
|
93
92
|
getDefaults() {
|
|
94
93
|
return this._defaults;
|
|
95
94
|
}
|
|
96
|
-
match(
|
|
97
|
-
if (
|
|
98
|
-
let
|
|
99
|
-
return
|
|
95
|
+
match(l) {
|
|
96
|
+
if (l === null) return this._defaults;
|
|
97
|
+
let R = l.scopeName, z = this._cachedMatchRoot.get(R).find((R) => _scopePathMatchesParentScopes(l.parent, R.parentScopes));
|
|
98
|
+
return z ? new StyleAttributes(z.fontStyle, z.foreground, z.background) : null;
|
|
100
99
|
}
|
|
101
|
-
},
|
|
102
|
-
constructor(
|
|
103
|
-
this.parent =
|
|
100
|
+
}, ScopeStack = class l {
|
|
101
|
+
constructor(l, R) {
|
|
102
|
+
this.parent = l, this.scopeName = R;
|
|
104
103
|
}
|
|
105
|
-
static push(
|
|
106
|
-
for (let
|
|
107
|
-
return
|
|
104
|
+
static push(R, z) {
|
|
105
|
+
for (let B of z) R = new l(R, B);
|
|
106
|
+
return R;
|
|
108
107
|
}
|
|
109
|
-
static from(...
|
|
110
|
-
let
|
|
111
|
-
for (let
|
|
112
|
-
return
|
|
108
|
+
static from(...R) {
|
|
109
|
+
let z = null;
|
|
110
|
+
for (let B = 0; B < R.length; B++) z = new l(z, R[B]);
|
|
111
|
+
return z;
|
|
113
112
|
}
|
|
114
|
-
push(
|
|
115
|
-
return new
|
|
113
|
+
push(R) {
|
|
114
|
+
return new l(this, R);
|
|
116
115
|
}
|
|
117
116
|
getSegments() {
|
|
118
|
-
let
|
|
119
|
-
for (;
|
|
120
|
-
return
|
|
117
|
+
let l = this, R = [];
|
|
118
|
+
for (; l;) R.push(l.scopeName), l = l.parent;
|
|
119
|
+
return R.reverse(), R;
|
|
121
120
|
}
|
|
122
121
|
toString() {
|
|
123
122
|
return this.getSegments().join(" ");
|
|
124
123
|
}
|
|
125
|
-
extends(
|
|
126
|
-
return this ===
|
|
124
|
+
extends(l) {
|
|
125
|
+
return this === l ? !0 : this.parent === null ? !1 : this.parent.extends(l);
|
|
127
126
|
}
|
|
128
|
-
getExtensionIfDefined(
|
|
129
|
-
let
|
|
130
|
-
for (;
|
|
131
|
-
return
|
|
127
|
+
getExtensionIfDefined(l) {
|
|
128
|
+
let R = [], z = this;
|
|
129
|
+
for (; z && z !== l;) R.push(z.scopeName), z = z.parent;
|
|
130
|
+
return z === l ? R.reverse() : void 0;
|
|
132
131
|
}
|
|
133
132
|
};
|
|
134
|
-
function
|
|
135
|
-
if (
|
|
136
|
-
for (let
|
|
137
|
-
let
|
|
138
|
-
if (
|
|
139
|
-
if (
|
|
140
|
-
|
|
133
|
+
function _scopePathMatchesParentScopes(l, R) {
|
|
134
|
+
if (R.length === 0) return !0;
|
|
135
|
+
for (let z = 0; z < R.length; z++) {
|
|
136
|
+
let B = R[z], V = !1;
|
|
137
|
+
if (B === ">") {
|
|
138
|
+
if (z === R.length - 1) return !1;
|
|
139
|
+
B = R[++z], V = !0;
|
|
141
140
|
}
|
|
142
|
-
for (;
|
|
143
|
-
if (
|
|
144
|
-
|
|
141
|
+
for (; l && !_matchesScope(l.scopeName, B);) {
|
|
142
|
+
if (V) return !1;
|
|
143
|
+
l = l.parent;
|
|
145
144
|
}
|
|
146
|
-
if (!
|
|
147
|
-
|
|
145
|
+
if (!l) return !1;
|
|
146
|
+
l = l.parent;
|
|
148
147
|
}
|
|
149
148
|
return !0;
|
|
150
149
|
}
|
|
151
|
-
function
|
|
152
|
-
return
|
|
150
|
+
function _matchesScope(l, R) {
|
|
151
|
+
return R === l || l.startsWith(R) && l[R.length] === ".";
|
|
153
152
|
}
|
|
154
|
-
var
|
|
155
|
-
constructor(
|
|
156
|
-
this.fontStyle =
|
|
153
|
+
var StyleAttributes = class {
|
|
154
|
+
constructor(l, R, z) {
|
|
155
|
+
this.fontStyle = l, this.foregroundId = R, this.backgroundId = z;
|
|
157
156
|
}
|
|
158
157
|
};
|
|
159
|
-
function
|
|
160
|
-
if (!
|
|
161
|
-
let
|
|
162
|
-
for (let
|
|
163
|
-
let
|
|
164
|
-
if (!
|
|
165
|
-
let
|
|
166
|
-
if (typeof
|
|
167
|
-
let
|
|
168
|
-
|
|
169
|
-
} else
|
|
170
|
-
let
|
|
171
|
-
if (typeof
|
|
172
|
-
|
|
173
|
-
let
|
|
174
|
-
for (let
|
|
158
|
+
function parseTheme(l) {
|
|
159
|
+
if (!l || !l.settings || !Array.isArray(l.settings)) return [];
|
|
160
|
+
let R = l.settings, z = [], B = 0;
|
|
161
|
+
for (let l = 0, V = R.length; l < V; l++) {
|
|
162
|
+
let V = R[l];
|
|
163
|
+
if (!V.settings) continue;
|
|
164
|
+
let H;
|
|
165
|
+
if (typeof V.scope == "string") {
|
|
166
|
+
let l = V.scope;
|
|
167
|
+
l = l.replace(/^[,]+/, ""), l = l.replace(/[,]+$/, ""), H = l.split(",");
|
|
168
|
+
} else H = Array.isArray(V.scope) ? V.scope : [""];
|
|
169
|
+
let U = -1;
|
|
170
|
+
if (typeof V.settings.fontStyle == "string") {
|
|
171
|
+
U = 0;
|
|
172
|
+
let l = V.settings.fontStyle.split(" ");
|
|
173
|
+
for (let R = 0, z = l.length; R < z; R++) switch (l[R]) {
|
|
175
174
|
case "italic":
|
|
176
|
-
|
|
175
|
+
U |= 1;
|
|
177
176
|
break;
|
|
178
177
|
case "bold":
|
|
179
|
-
|
|
178
|
+
U |= 2;
|
|
180
179
|
break;
|
|
181
180
|
case "underline":
|
|
182
|
-
|
|
181
|
+
U |= 4;
|
|
183
182
|
break;
|
|
184
183
|
case "strikethrough":
|
|
185
|
-
|
|
184
|
+
U |= 8;
|
|
186
185
|
break;
|
|
187
186
|
}
|
|
188
187
|
}
|
|
189
|
-
let
|
|
190
|
-
typeof
|
|
191
|
-
let
|
|
192
|
-
typeof
|
|
193
|
-
for (let
|
|
194
|
-
let
|
|
195
|
-
|
|
188
|
+
let W = null;
|
|
189
|
+
typeof V.settings.foreground == "string" && isValidHexColor(V.settings.foreground) && (W = V.settings.foreground);
|
|
190
|
+
let G = null;
|
|
191
|
+
typeof V.settings.background == "string" && isValidHexColor(V.settings.background) && (G = V.settings.background);
|
|
192
|
+
for (let R = 0, V = H.length; R < V; R++) {
|
|
193
|
+
let V = H[R].trim().split(" "), K = V[V.length - 1], q = null;
|
|
194
|
+
V.length > 1 && (q = V.slice(0, V.length - 1), q.reverse()), z[B++] = new ParsedThemeRule(K, q, l, U, W, G);
|
|
196
195
|
}
|
|
197
196
|
}
|
|
198
|
-
return
|
|
197
|
+
return z;
|
|
199
198
|
}
|
|
200
|
-
var
|
|
201
|
-
constructor(
|
|
202
|
-
this.scope =
|
|
203
|
-
}
|
|
204
|
-
},
|
|
205
|
-
function
|
|
206
|
-
|
|
207
|
-
let
|
|
208
|
-
return
|
|
199
|
+
var ParsedThemeRule = class {
|
|
200
|
+
constructor(l, R, z, B, V, H) {
|
|
201
|
+
this.scope = l, this.parentScopes = R, this.index = z, this.fontStyle = B, this.foreground = V, this.background = H;
|
|
202
|
+
}
|
|
203
|
+
}, FontStyle = /* @__PURE__ */ ((l) => (l[l.NotSet = -1] = "NotSet", l[l.None = 0] = "None", l[l.Italic = 1] = "Italic", l[l.Bold = 2] = "Bold", l[l.Underline = 4] = "Underline", l[l.Strikethrough = 8] = "Strikethrough", l))(FontStyle || {});
|
|
204
|
+
function resolveParsedThemeRules(l, R) {
|
|
205
|
+
l.sort((l, R) => {
|
|
206
|
+
let z = strcmp(l.scope, R.scope);
|
|
207
|
+
return z !== 0 || (z = strArrCmp(l.parentScopes, R.parentScopes), z !== 0) ? z : l.index - R.index;
|
|
209
208
|
});
|
|
210
|
-
let
|
|
211
|
-
for (;
|
|
212
|
-
let
|
|
213
|
-
|
|
209
|
+
let z = 0, B = "#000000", V = "#ffffff";
|
|
210
|
+
for (; l.length >= 1 && l[0].scope === "";) {
|
|
211
|
+
let R = l.shift();
|
|
212
|
+
R.fontStyle !== -1 && (z = R.fontStyle), R.foreground !== null && (B = R.foreground), R.background !== null && (V = R.background);
|
|
214
213
|
}
|
|
215
|
-
let
|
|
216
|
-
for (let
|
|
217
|
-
let
|
|
218
|
-
|
|
214
|
+
let H = new ColorMap(R), U = new StyleAttributes(z, H.getId(B), H.getId(V)), W = new ThemeTrieElement(new ThemeTrieElementRule(0, null, -1, 0, 0), []);
|
|
215
|
+
for (let R = 0, z = l.length; R < z; R++) {
|
|
216
|
+
let z = l[R];
|
|
217
|
+
W.insert(0, z.scope, z.parentScopes, z.fontStyle, H.getId(z.foreground), H.getId(z.background));
|
|
219
218
|
}
|
|
220
|
-
return new
|
|
219
|
+
return new Theme(H, U, W);
|
|
221
220
|
}
|
|
222
|
-
var
|
|
221
|
+
var ColorMap = class {
|
|
223
222
|
_isFrozen;
|
|
224
223
|
_lastColorId;
|
|
225
224
|
_id2color;
|
|
226
225
|
_color2id;
|
|
227
|
-
constructor(
|
|
228
|
-
if (this._lastColorId = 0, this._id2color = [], this._color2id = /* @__PURE__ */ Object.create(null), Array.isArray(
|
|
226
|
+
constructor(l) {
|
|
227
|
+
if (this._lastColorId = 0, this._id2color = [], this._color2id = /* @__PURE__ */ Object.create(null), Array.isArray(l)) {
|
|
229
228
|
this._isFrozen = !0;
|
|
230
|
-
for (let
|
|
229
|
+
for (let R = 0, z = l.length; R < z; R++) this._color2id[l[R]] = R, this._id2color[R] = l[R];
|
|
231
230
|
} else this._isFrozen = !1;
|
|
232
231
|
}
|
|
233
|
-
getId(
|
|
234
|
-
if (
|
|
235
|
-
|
|
236
|
-
let
|
|
237
|
-
if (
|
|
238
|
-
if (this._isFrozen) throw Error(`Missing color in color map - ${
|
|
239
|
-
return
|
|
232
|
+
getId(l) {
|
|
233
|
+
if (l === null) return 0;
|
|
234
|
+
l = l.toUpperCase();
|
|
235
|
+
let R = this._color2id[l];
|
|
236
|
+
if (R) return R;
|
|
237
|
+
if (this._isFrozen) throw Error(`Missing color in color map - ${l}`);
|
|
238
|
+
return R = ++this._lastColorId, this._color2id[l] = R, this._id2color[R] = l, R;
|
|
240
239
|
}
|
|
241
240
|
getColorMap() {
|
|
242
241
|
return this._id2color.slice(0);
|
|
243
242
|
}
|
|
244
|
-
},
|
|
243
|
+
}, emptyParentScopes = Object.freeze([]), ThemeTrieElementRule = class l {
|
|
245
244
|
scopeDepth;
|
|
246
245
|
parentScopes;
|
|
247
246
|
fontStyle;
|
|
248
247
|
foreground;
|
|
249
248
|
background;
|
|
250
|
-
constructor(
|
|
251
|
-
this.scopeDepth =
|
|
249
|
+
constructor(l, R, z, B, V) {
|
|
250
|
+
this.scopeDepth = l, this.parentScopes = R || emptyParentScopes, this.fontStyle = z, this.foreground = B, this.background = V;
|
|
252
251
|
}
|
|
253
252
|
clone() {
|
|
254
|
-
return new
|
|
253
|
+
return new l(this.scopeDepth, this.parentScopes, this.fontStyle, this.foreground, this.background);
|
|
255
254
|
}
|
|
256
|
-
static cloneArr(
|
|
257
|
-
let
|
|
258
|
-
for (let
|
|
259
|
-
return
|
|
255
|
+
static cloneArr(l) {
|
|
256
|
+
let R = [];
|
|
257
|
+
for (let z = 0, B = l.length; z < B; z++) R[z] = l[z].clone();
|
|
258
|
+
return R;
|
|
260
259
|
}
|
|
261
|
-
acceptOverwrite(
|
|
262
|
-
this.scopeDepth >
|
|
260
|
+
acceptOverwrite(l, R, z, B) {
|
|
261
|
+
this.scopeDepth > l ? console.log("how did this happen?") : this.scopeDepth = l, R !== -1 && (this.fontStyle = R), z !== 0 && (this.foreground = z), B !== 0 && (this.background = B);
|
|
263
262
|
}
|
|
264
|
-
},
|
|
265
|
-
constructor(
|
|
266
|
-
this._mainRule =
|
|
263
|
+
}, ThemeTrieElement = class l {
|
|
264
|
+
constructor(l, R = [], z = {}) {
|
|
265
|
+
this._mainRule = l, this._children = z, this._rulesWithParentScopes = R;
|
|
267
266
|
}
|
|
268
267
|
_rulesWithParentScopes;
|
|
269
|
-
static _cmpBySpecificity(
|
|
270
|
-
if (
|
|
271
|
-
let
|
|
272
|
-
for (;
|
|
273
|
-
let
|
|
274
|
-
if (
|
|
275
|
-
|
|
268
|
+
static _cmpBySpecificity(l, R) {
|
|
269
|
+
if (l.scopeDepth !== R.scopeDepth) return R.scopeDepth - l.scopeDepth;
|
|
270
|
+
let z = 0, B = 0;
|
|
271
|
+
for (; l.parentScopes[z] === ">" && z++, R.parentScopes[B] === ">" && B++, !(z >= l.parentScopes.length || B >= R.parentScopes.length);) {
|
|
272
|
+
let V = R.parentScopes[B].length - l.parentScopes[z].length;
|
|
273
|
+
if (V !== 0) return V;
|
|
274
|
+
z++, B++;
|
|
276
275
|
}
|
|
277
|
-
return
|
|
276
|
+
return R.parentScopes.length - l.parentScopes.length;
|
|
278
277
|
}
|
|
279
|
-
match(
|
|
280
|
-
if (
|
|
281
|
-
let
|
|
282
|
-
if (
|
|
278
|
+
match(R) {
|
|
279
|
+
if (R !== "") {
|
|
280
|
+
let l = R.indexOf("."), z, B;
|
|
281
|
+
if (l === -1 ? (z = R, B = "") : (z = R.substring(0, l), B = R.substring(l + 1)), this._children.hasOwnProperty(z)) return this._children[z].match(B);
|
|
283
282
|
}
|
|
284
|
-
let
|
|
285
|
-
return
|
|
283
|
+
let z = this._rulesWithParentScopes.concat(this._mainRule);
|
|
284
|
+
return z.sort(l._cmpBySpecificity), z;
|
|
286
285
|
}
|
|
287
|
-
insert(
|
|
288
|
-
if (
|
|
289
|
-
this._doInsertHere(
|
|
286
|
+
insert(R, z, B, V, H, U) {
|
|
287
|
+
if (z === "") {
|
|
288
|
+
this._doInsertHere(R, B, V, H, U);
|
|
290
289
|
return;
|
|
291
290
|
}
|
|
292
|
-
let
|
|
293
|
-
|
|
294
|
-
let
|
|
295
|
-
this._children.hasOwnProperty(
|
|
296
|
-
}
|
|
297
|
-
_doInsertHere(
|
|
298
|
-
if (
|
|
299
|
-
this._mainRule.acceptOverwrite(
|
|
291
|
+
let W = z.indexOf("."), G, K;
|
|
292
|
+
W === -1 ? (G = z, K = "") : (G = z.substring(0, W), K = z.substring(W + 1));
|
|
293
|
+
let q;
|
|
294
|
+
this._children.hasOwnProperty(G) ? q = this._children[G] : (q = new l(this._mainRule.clone(), ThemeTrieElementRule.cloneArr(this._rulesWithParentScopes)), this._children[G] = q), q.insert(R + 1, K, B, V, H, U);
|
|
295
|
+
}
|
|
296
|
+
_doInsertHere(l, R, z, B, V) {
|
|
297
|
+
if (R === null) {
|
|
298
|
+
this._mainRule.acceptOverwrite(l, z, B, V);
|
|
300
299
|
return;
|
|
301
300
|
}
|
|
302
|
-
for (let
|
|
303
|
-
let
|
|
304
|
-
if (
|
|
305
|
-
|
|
301
|
+
for (let H = 0, U = this._rulesWithParentScopes.length; H < U; H++) {
|
|
302
|
+
let U = this._rulesWithParentScopes[H];
|
|
303
|
+
if (strArrCmp(U.parentScopes, R) === 0) {
|
|
304
|
+
U.acceptOverwrite(l, z, B, V);
|
|
306
305
|
return;
|
|
307
306
|
}
|
|
308
307
|
}
|
|
309
|
-
|
|
308
|
+
z === -1 && (z = this._mainRule.fontStyle), B === 0 && (B = this._mainRule.foreground), V === 0 && (V = this._mainRule.background), this._rulesWithParentScopes.push(new ThemeTrieElementRule(l, R, z, B, V));
|
|
310
309
|
}
|
|
311
|
-
},
|
|
312
|
-
static toBinaryStr(
|
|
313
|
-
return
|
|
310
|
+
}, EncodedTokenMetadata = class l {
|
|
311
|
+
static toBinaryStr(l) {
|
|
312
|
+
return l.toString(2).padStart(32, "0");
|
|
314
313
|
}
|
|
315
|
-
static print(
|
|
316
|
-
let
|
|
314
|
+
static print(R) {
|
|
315
|
+
let z = l.getLanguageId(R), B = l.getTokenType(R), V = l.getFontStyle(R), H = l.getForeground(R), U = l.getBackground(R);
|
|
317
316
|
console.log({
|
|
318
|
-
languageId:
|
|
319
|
-
tokenType:
|
|
320
|
-
fontStyle:
|
|
321
|
-
foreground:
|
|
322
|
-
background:
|
|
317
|
+
languageId: z,
|
|
318
|
+
tokenType: B,
|
|
319
|
+
fontStyle: V,
|
|
320
|
+
foreground: H,
|
|
321
|
+
background: U
|
|
323
322
|
});
|
|
324
323
|
}
|
|
325
|
-
static getLanguageId(
|
|
326
|
-
return (
|
|
324
|
+
static getLanguageId(l) {
|
|
325
|
+
return (l & 255) >>> 0;
|
|
327
326
|
}
|
|
328
|
-
static getTokenType(
|
|
329
|
-
return (
|
|
327
|
+
static getTokenType(l) {
|
|
328
|
+
return (l & 768) >>> 8;
|
|
330
329
|
}
|
|
331
|
-
static containsBalancedBrackets(
|
|
332
|
-
return (
|
|
330
|
+
static containsBalancedBrackets(l) {
|
|
331
|
+
return (l & 1024) != 0;
|
|
333
332
|
}
|
|
334
|
-
static getFontStyle(
|
|
335
|
-
return (
|
|
333
|
+
static getFontStyle(l) {
|
|
334
|
+
return (l & 30720) >>> 11;
|
|
336
335
|
}
|
|
337
|
-
static getForeground(
|
|
338
|
-
return (
|
|
336
|
+
static getForeground(l) {
|
|
337
|
+
return (l & 16744448) >>> 15;
|
|
339
338
|
}
|
|
340
|
-
static getBackground(
|
|
341
|
-
return (
|
|
339
|
+
static getBackground(l) {
|
|
340
|
+
return (l & 4278190080) >>> 24;
|
|
342
341
|
}
|
|
343
|
-
static set(
|
|
344
|
-
let
|
|
345
|
-
return
|
|
342
|
+
static set(R, z, B, V, H, U, W) {
|
|
343
|
+
let G = l.getLanguageId(R), K = l.getTokenType(R), q = l.containsBalancedBrackets(R) ? 1 : 0, J = l.getFontStyle(R), Y = l.getForeground(R), X = l.getBackground(R);
|
|
344
|
+
return z !== 0 && (G = z), B !== 8 && (K = fromOptionalTokenType(B)), V !== null && (q = V ? 1 : 0), H !== -1 && (J = H), U !== 0 && (Y = U), W !== 0 && (X = W), (G << 0 | K << 8 | q << 10 | J << 11 | Y << 15 | X << 24) >>> 0;
|
|
346
345
|
}
|
|
347
346
|
};
|
|
348
|
-
function
|
|
349
|
-
return
|
|
347
|
+
function toOptionalTokenType(l) {
|
|
348
|
+
return l;
|
|
350
349
|
}
|
|
351
|
-
function
|
|
352
|
-
return
|
|
350
|
+
function fromOptionalTokenType(l) {
|
|
351
|
+
return l;
|
|
353
352
|
}
|
|
354
|
-
function
|
|
355
|
-
let
|
|
356
|
-
for (;
|
|
357
|
-
let
|
|
358
|
-
if (
|
|
359
|
-
switch (
|
|
353
|
+
function createMatchers(l, R) {
|
|
354
|
+
let z = [], B = newTokenizer(l), V = B.next();
|
|
355
|
+
for (; V !== null;) {
|
|
356
|
+
let l = 0;
|
|
357
|
+
if (V.length === 2 && V.charAt(1) === ":") {
|
|
358
|
+
switch (V.charAt(0)) {
|
|
360
359
|
case "R":
|
|
361
|
-
|
|
360
|
+
l = 1;
|
|
362
361
|
break;
|
|
363
362
|
case "L":
|
|
364
|
-
|
|
363
|
+
l = -1;
|
|
365
364
|
break;
|
|
366
|
-
default: console.log(`Unknown priority ${
|
|
365
|
+
default: console.log(`Unknown priority ${V} in scope selector`);
|
|
367
366
|
}
|
|
368
|
-
|
|
367
|
+
V = B.next();
|
|
369
368
|
}
|
|
370
|
-
let
|
|
371
|
-
if (
|
|
372
|
-
matcher:
|
|
373
|
-
priority:
|
|
374
|
-
}),
|
|
375
|
-
|
|
376
|
-
}
|
|
377
|
-
return
|
|
378
|
-
function
|
|
379
|
-
if (
|
|
380
|
-
|
|
381
|
-
let
|
|
382
|
-
return (
|
|
369
|
+
let R = U();
|
|
370
|
+
if (z.push({
|
|
371
|
+
matcher: R,
|
|
372
|
+
priority: l
|
|
373
|
+
}), V !== ",") break;
|
|
374
|
+
V = B.next();
|
|
375
|
+
}
|
|
376
|
+
return z;
|
|
377
|
+
function H() {
|
|
378
|
+
if (V === "-") {
|
|
379
|
+
V = B.next();
|
|
380
|
+
let l = H();
|
|
381
|
+
return (R) => !!l && !l(R);
|
|
383
382
|
}
|
|
384
|
-
if (
|
|
385
|
-
|
|
386
|
-
let
|
|
387
|
-
return
|
|
383
|
+
if (V === "(") {
|
|
384
|
+
V = B.next();
|
|
385
|
+
let l = W();
|
|
386
|
+
return V === ")" && (V = B.next()), l;
|
|
388
387
|
}
|
|
389
|
-
if (
|
|
390
|
-
let
|
|
388
|
+
if (isIdentifier(V)) {
|
|
389
|
+
let l = [];
|
|
391
390
|
do
|
|
392
|
-
|
|
393
|
-
while (
|
|
394
|
-
return (
|
|
391
|
+
l.push(V), V = B.next();
|
|
392
|
+
while (isIdentifier(V));
|
|
393
|
+
return (z) => R(l, z);
|
|
395
394
|
}
|
|
396
395
|
return null;
|
|
397
396
|
}
|
|
398
|
-
function
|
|
399
|
-
let
|
|
400
|
-
for (;
|
|
401
|
-
return (
|
|
397
|
+
function U() {
|
|
398
|
+
let l = [], R = H();
|
|
399
|
+
for (; R;) l.push(R), R = H();
|
|
400
|
+
return (R) => l.every((l) => l(R));
|
|
402
401
|
}
|
|
403
|
-
function
|
|
404
|
-
let
|
|
405
|
-
for (;
|
|
402
|
+
function W() {
|
|
403
|
+
let l = [], R = U();
|
|
404
|
+
for (; R && (l.push(R), V === "|" || V === ",");) {
|
|
406
405
|
do
|
|
407
|
-
|
|
408
|
-
while (
|
|
409
|
-
|
|
406
|
+
V = B.next();
|
|
407
|
+
while (V === "|" || V === ",");
|
|
408
|
+
R = U();
|
|
410
409
|
}
|
|
411
|
-
return (
|
|
410
|
+
return (R) => l.some((l) => l(R));
|
|
412
411
|
}
|
|
413
412
|
}
|
|
414
|
-
function
|
|
415
|
-
return !!
|
|
413
|
+
function isIdentifier(l) {
|
|
414
|
+
return !!l && !!l.match(/[\w\.:]+/);
|
|
416
415
|
}
|
|
417
|
-
function
|
|
418
|
-
let
|
|
416
|
+
function newTokenizer(l) {
|
|
417
|
+
let R = /([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g, z = R.exec(l);
|
|
419
418
|
return { next: () => {
|
|
420
|
-
if (!
|
|
421
|
-
let
|
|
422
|
-
return
|
|
419
|
+
if (!z) return null;
|
|
420
|
+
let B = z[0];
|
|
421
|
+
return z = R.exec(l), B;
|
|
423
422
|
} };
|
|
424
423
|
}
|
|
425
|
-
function
|
|
426
|
-
typeof
|
|
424
|
+
function disposeOnigString(l) {
|
|
425
|
+
typeof l.dispose == "function" && l.dispose();
|
|
427
426
|
}
|
|
428
|
-
var
|
|
429
|
-
constructor(
|
|
430
|
-
this.scopeName =
|
|
427
|
+
var TopLevelRuleReference = class {
|
|
428
|
+
constructor(l) {
|
|
429
|
+
this.scopeName = l;
|
|
431
430
|
}
|
|
432
431
|
toKey() {
|
|
433
432
|
return this.scopeName;
|
|
434
433
|
}
|
|
435
|
-
},
|
|
436
|
-
constructor(
|
|
437
|
-
this.scopeName =
|
|
434
|
+
}, TopLevelRepositoryRuleReference = class {
|
|
435
|
+
constructor(l, R) {
|
|
436
|
+
this.scopeName = l, this.ruleName = R;
|
|
438
437
|
}
|
|
439
438
|
toKey() {
|
|
440
439
|
return `${this.scopeName}#${this.ruleName}`;
|
|
441
440
|
}
|
|
442
|
-
},
|
|
441
|
+
}, ExternalReferenceCollector = class {
|
|
443
442
|
_references = [];
|
|
444
443
|
_seenReferenceKeys = /* @__PURE__ */ new Set();
|
|
445
444
|
get references() {
|
|
446
445
|
return this._references;
|
|
447
446
|
}
|
|
448
447
|
visitedRule = /* @__PURE__ */ new Set();
|
|
449
|
-
add(
|
|
450
|
-
let
|
|
451
|
-
this._seenReferenceKeys.has(
|
|
448
|
+
add(l) {
|
|
449
|
+
let R = l.toKey();
|
|
450
|
+
this._seenReferenceKeys.has(R) || (this._seenReferenceKeys.add(R), this._references.push(l));
|
|
452
451
|
}
|
|
453
|
-
},
|
|
454
|
-
constructor(
|
|
455
|
-
this.repo =
|
|
452
|
+
}, ScopeDependencyProcessor = class {
|
|
453
|
+
constructor(l, R) {
|
|
454
|
+
this.repo = l, this.initialScopeName = R, this.seenFullScopeRequests.add(this.initialScopeName), this.Q = [new TopLevelRuleReference(this.initialScopeName)];
|
|
456
455
|
}
|
|
457
456
|
seenFullScopeRequests = /* @__PURE__ */ new Set();
|
|
458
457
|
seenPartialScopeRequests = /* @__PURE__ */ new Set();
|
|
459
458
|
Q;
|
|
460
459
|
processQueue() {
|
|
461
|
-
let
|
|
460
|
+
let l = this.Q;
|
|
462
461
|
this.Q = [];
|
|
463
|
-
let
|
|
464
|
-
for (let
|
|
465
|
-
for (let
|
|
466
|
-
if (this.seenFullScopeRequests.has(
|
|
467
|
-
this.seenFullScopeRequests.add(
|
|
462
|
+
let R = new ExternalReferenceCollector();
|
|
463
|
+
for (let z of l) collectReferencesOfReference(z, this.initialScopeName, this.repo, R);
|
|
464
|
+
for (let l of R.references) if (l instanceof TopLevelRuleReference) {
|
|
465
|
+
if (this.seenFullScopeRequests.has(l.scopeName)) continue;
|
|
466
|
+
this.seenFullScopeRequests.add(l.scopeName), this.Q.push(l);
|
|
468
467
|
} else {
|
|
469
|
-
if (this.seenFullScopeRequests.has(
|
|
470
|
-
this.seenPartialScopeRequests.add(
|
|
468
|
+
if (this.seenFullScopeRequests.has(l.scopeName) || this.seenPartialScopeRequests.has(l.toKey())) continue;
|
|
469
|
+
this.seenPartialScopeRequests.add(l.toKey()), this.Q.push(l);
|
|
471
470
|
}
|
|
472
471
|
}
|
|
473
472
|
};
|
|
474
|
-
function
|
|
475
|
-
let
|
|
476
|
-
if (!
|
|
477
|
-
if (
|
|
473
|
+
function collectReferencesOfReference(l, R, z, B) {
|
|
474
|
+
let V = z.lookup(l.scopeName);
|
|
475
|
+
if (!V) {
|
|
476
|
+
if (l.scopeName === R) throw Error(`No grammar provided for <${R}>`);
|
|
478
477
|
return;
|
|
479
478
|
}
|
|
480
|
-
let
|
|
481
|
-
|
|
482
|
-
baseGrammar:
|
|
483
|
-
selfGrammar:
|
|
484
|
-
},
|
|
485
|
-
baseGrammar:
|
|
486
|
-
selfGrammar:
|
|
487
|
-
repository:
|
|
488
|
-
},
|
|
489
|
-
let
|
|
490
|
-
if (
|
|
479
|
+
let H = z.lookup(R);
|
|
480
|
+
l instanceof TopLevelRuleReference ? collectExternalReferencesInTopLevelRule({
|
|
481
|
+
baseGrammar: H,
|
|
482
|
+
selfGrammar: V
|
|
483
|
+
}, B) : collectExternalReferencesInTopLevelRepositoryRule(l.ruleName, {
|
|
484
|
+
baseGrammar: H,
|
|
485
|
+
selfGrammar: V,
|
|
486
|
+
repository: V.repository
|
|
487
|
+
}, B);
|
|
488
|
+
let U = z.injections(l.scopeName);
|
|
489
|
+
if (U) for (let l of U) B.add(new TopLevelRuleReference(l));
|
|
491
490
|
}
|
|
492
|
-
function
|
|
493
|
-
if (
|
|
494
|
-
let
|
|
495
|
-
|
|
491
|
+
function collectExternalReferencesInTopLevelRepositoryRule(l, R, z) {
|
|
492
|
+
if (R.repository && R.repository[l]) {
|
|
493
|
+
let B = R.repository[l];
|
|
494
|
+
collectExternalReferencesInRules([B], R, z);
|
|
496
495
|
}
|
|
497
496
|
}
|
|
498
|
-
function
|
|
499
|
-
|
|
500
|
-
...
|
|
501
|
-
repository:
|
|
502
|
-
},
|
|
503
|
-
...
|
|
504
|
-
repository:
|
|
505
|
-
},
|
|
497
|
+
function collectExternalReferencesInTopLevelRule(l, R) {
|
|
498
|
+
l.selfGrammar.patterns && Array.isArray(l.selfGrammar.patterns) && collectExternalReferencesInRules(l.selfGrammar.patterns, {
|
|
499
|
+
...l,
|
|
500
|
+
repository: l.selfGrammar.repository
|
|
501
|
+
}, R), l.selfGrammar.injections && collectExternalReferencesInRules(Object.values(l.selfGrammar.injections), {
|
|
502
|
+
...l,
|
|
503
|
+
repository: l.selfGrammar.repository
|
|
504
|
+
}, R);
|
|
506
505
|
}
|
|
507
|
-
function
|
|
508
|
-
for (let
|
|
509
|
-
if (
|
|
510
|
-
|
|
511
|
-
let
|
|
512
|
-
Array.isArray(
|
|
513
|
-
...
|
|
514
|
-
repository:
|
|
515
|
-
},
|
|
516
|
-
let
|
|
517
|
-
if (!
|
|
518
|
-
let
|
|
519
|
-
switch (
|
|
506
|
+
function collectExternalReferencesInRules(l, R, z) {
|
|
507
|
+
for (let B of l) {
|
|
508
|
+
if (z.visitedRule.has(B)) continue;
|
|
509
|
+
z.visitedRule.add(B);
|
|
510
|
+
let l = B.repository ? mergeObjects({}, R.repository, B.repository) : R.repository;
|
|
511
|
+
Array.isArray(B.patterns) && collectExternalReferencesInRules(B.patterns, {
|
|
512
|
+
...R,
|
|
513
|
+
repository: l
|
|
514
|
+
}, z);
|
|
515
|
+
let H = B.include;
|
|
516
|
+
if (!H) continue;
|
|
517
|
+
let U = parseInclude(H);
|
|
518
|
+
switch (U.kind) {
|
|
520
519
|
case 0:
|
|
521
|
-
|
|
522
|
-
...
|
|
523
|
-
selfGrammar:
|
|
524
|
-
},
|
|
520
|
+
collectExternalReferencesInTopLevelRule({
|
|
521
|
+
...R,
|
|
522
|
+
selfGrammar: R.baseGrammar
|
|
523
|
+
}, z);
|
|
525
524
|
break;
|
|
526
525
|
case 1:
|
|
527
|
-
|
|
526
|
+
collectExternalReferencesInTopLevelRule(R, z);
|
|
528
527
|
break;
|
|
529
528
|
case 2:
|
|
530
|
-
|
|
531
|
-
...
|
|
532
|
-
repository:
|
|
533
|
-
},
|
|
529
|
+
collectExternalReferencesInTopLevelRepositoryRule(U.ruleName, {
|
|
530
|
+
...R,
|
|
531
|
+
repository: l
|
|
532
|
+
}, z);
|
|
534
533
|
break;
|
|
535
534
|
case 3:
|
|
536
535
|
case 4:
|
|
537
|
-
let
|
|
538
|
-
if (
|
|
539
|
-
let
|
|
540
|
-
baseGrammar:
|
|
541
|
-
selfGrammar:
|
|
542
|
-
repository:
|
|
536
|
+
let B = U.scopeName === R.selfGrammar.scopeName ? R.selfGrammar : U.scopeName === R.baseGrammar.scopeName ? R.baseGrammar : void 0;
|
|
537
|
+
if (B) {
|
|
538
|
+
let V = {
|
|
539
|
+
baseGrammar: R.baseGrammar,
|
|
540
|
+
selfGrammar: B,
|
|
541
|
+
repository: l
|
|
543
542
|
};
|
|
544
|
-
|
|
545
|
-
} else
|
|
543
|
+
U.kind === 4 ? collectExternalReferencesInTopLevelRepositoryRule(U.ruleName, V, z) : collectExternalReferencesInTopLevelRule(V, z);
|
|
544
|
+
} else U.kind === 4 ? z.add(new TopLevelRepositoryRuleReference(U.scopeName, U.ruleName)) : z.add(new TopLevelRuleReference(U.scopeName));
|
|
546
545
|
break;
|
|
547
546
|
}
|
|
548
547
|
}
|
|
549
548
|
}
|
|
550
|
-
var
|
|
549
|
+
var BaseReference = class {
|
|
551
550
|
kind = 0;
|
|
552
|
-
},
|
|
551
|
+
}, SelfReference = class {
|
|
553
552
|
kind = 1;
|
|
554
|
-
},
|
|
555
|
-
constructor(
|
|
556
|
-
this.ruleName =
|
|
553
|
+
}, RelativeReference = class {
|
|
554
|
+
constructor(l) {
|
|
555
|
+
this.ruleName = l;
|
|
557
556
|
}
|
|
558
557
|
kind = 2;
|
|
559
|
-
},
|
|
560
|
-
constructor(
|
|
561
|
-
this.scopeName =
|
|
558
|
+
}, TopLevelReference = class {
|
|
559
|
+
constructor(l) {
|
|
560
|
+
this.scopeName = l;
|
|
562
561
|
}
|
|
563
562
|
kind = 3;
|
|
564
|
-
},
|
|
565
|
-
constructor(
|
|
566
|
-
this.scopeName =
|
|
563
|
+
}, TopLevelRepositoryReference = class {
|
|
564
|
+
constructor(l, R) {
|
|
565
|
+
this.scopeName = l, this.ruleName = R;
|
|
567
566
|
}
|
|
568
567
|
kind = 4;
|
|
569
568
|
};
|
|
570
|
-
function
|
|
571
|
-
if (
|
|
572
|
-
if (
|
|
573
|
-
let
|
|
574
|
-
return
|
|
569
|
+
function parseInclude(l) {
|
|
570
|
+
if (l === "$base") return new BaseReference();
|
|
571
|
+
if (l === "$self") return new SelfReference();
|
|
572
|
+
let R = l.indexOf("#");
|
|
573
|
+
return R === -1 ? new TopLevelReference(l) : R === 0 ? new RelativeReference(l.substring(1)) : new TopLevelRepositoryReference(l.substring(0, R), l.substring(R + 1));
|
|
575
574
|
}
|
|
576
|
-
var
|
|
577
|
-
function
|
|
578
|
-
return
|
|
575
|
+
var HAS_BACK_REFERENCES = /\\(\d+)/, BACK_REFERENCING_END = /\\(\d+)/g, endRuleId = -1, whileRuleId = -2;
|
|
576
|
+
function ruleIdFromNumber(l) {
|
|
577
|
+
return l;
|
|
579
578
|
}
|
|
580
|
-
function
|
|
581
|
-
return
|
|
579
|
+
function ruleIdToNumber(l) {
|
|
580
|
+
return l;
|
|
582
581
|
}
|
|
583
|
-
var
|
|
582
|
+
var Rule = class {
|
|
584
583
|
$location;
|
|
585
584
|
id;
|
|
586
585
|
_nameIsCapturing;
|
|
587
586
|
_name;
|
|
588
587
|
_contentNameIsCapturing;
|
|
589
588
|
_contentName;
|
|
590
|
-
constructor(
|
|
591
|
-
this.$location =
|
|
589
|
+
constructor(l, R, z, B) {
|
|
590
|
+
this.$location = l, this.id = R, this._name = z || null, this._nameIsCapturing = RegexSource.hasCaptures(this._name), this._contentName = B || null, this._contentNameIsCapturing = RegexSource.hasCaptures(this._contentName);
|
|
592
591
|
}
|
|
593
592
|
get debugName() {
|
|
594
|
-
let
|
|
595
|
-
return `${this.constructor.name}#${this.id} @ ${
|
|
593
|
+
let l = this.$location ? `${basename(this.$location.filename)}:${this.$location.line}` : "unknown";
|
|
594
|
+
return `${this.constructor.name}#${this.id} @ ${l}`;
|
|
596
595
|
}
|
|
597
|
-
getName(
|
|
598
|
-
return !this._nameIsCapturing || this._name === null ||
|
|
596
|
+
getName(l, R) {
|
|
597
|
+
return !this._nameIsCapturing || this._name === null || l === null || R === null ? this._name : RegexSource.replaceCaptures(this._name, l, R);
|
|
599
598
|
}
|
|
600
|
-
getContentName(
|
|
601
|
-
return !this._contentNameIsCapturing || this._contentName === null ? this._contentName :
|
|
599
|
+
getContentName(l, R) {
|
|
600
|
+
return !this._contentNameIsCapturing || this._contentName === null ? this._contentName : RegexSource.replaceCaptures(this._contentName, l, R);
|
|
602
601
|
}
|
|
603
|
-
},
|
|
602
|
+
}, CaptureRule = class extends Rule {
|
|
604
603
|
retokenizeCapturedWithRuleId;
|
|
605
|
-
constructor(
|
|
606
|
-
super(
|
|
604
|
+
constructor(l, R, z, B, V) {
|
|
605
|
+
super(l, R, z, B), this.retokenizeCapturedWithRuleId = V;
|
|
607
606
|
}
|
|
608
607
|
dispose() {}
|
|
609
|
-
collectPatterns(
|
|
608
|
+
collectPatterns(l, R) {
|
|
610
609
|
throw Error("Not supported!");
|
|
611
610
|
}
|
|
612
|
-
compile(
|
|
611
|
+
compile(l, R) {
|
|
613
612
|
throw Error("Not supported!");
|
|
614
613
|
}
|
|
615
|
-
compileAG(
|
|
614
|
+
compileAG(l, R, z, B) {
|
|
616
615
|
throw Error("Not supported!");
|
|
617
616
|
}
|
|
618
|
-
},
|
|
617
|
+
}, MatchRule = class extends Rule {
|
|
619
618
|
_match;
|
|
620
619
|
captures;
|
|
621
620
|
_cachedCompiledPatterns;
|
|
622
|
-
constructor(
|
|
623
|
-
super(
|
|
621
|
+
constructor(l, R, z, B, V) {
|
|
622
|
+
super(l, R, z, null), this._match = new RegExpSource(B, this.id), this.captures = V, this._cachedCompiledPatterns = null;
|
|
624
623
|
}
|
|
625
624
|
dispose() {
|
|
626
625
|
this._cachedCompiledPatterns &&= (this._cachedCompiledPatterns.dispose(), null);
|
|
@@ -628,41 +627,41 @@ var N = class {
|
|
|
628
627
|
get debugMatchRegExp() {
|
|
629
628
|
return `${this._match.source}`;
|
|
630
629
|
}
|
|
631
|
-
collectPatterns(
|
|
632
|
-
|
|
630
|
+
collectPatterns(l, R) {
|
|
631
|
+
R.push(this._match);
|
|
633
632
|
}
|
|
634
|
-
compile(
|
|
635
|
-
return this._getCachedCompiledPatterns(
|
|
633
|
+
compile(l, R) {
|
|
634
|
+
return this._getCachedCompiledPatterns(l).compile(l);
|
|
636
635
|
}
|
|
637
|
-
compileAG(
|
|
638
|
-
return this._getCachedCompiledPatterns(
|
|
636
|
+
compileAG(l, R, z, B) {
|
|
637
|
+
return this._getCachedCompiledPatterns(l).compileAG(l, z, B);
|
|
639
638
|
}
|
|
640
|
-
_getCachedCompiledPatterns(
|
|
641
|
-
return this._cachedCompiledPatterns || (this._cachedCompiledPatterns = new
|
|
639
|
+
_getCachedCompiledPatterns(l) {
|
|
640
|
+
return this._cachedCompiledPatterns || (this._cachedCompiledPatterns = new RegExpSourceList(), this.collectPatterns(l, this._cachedCompiledPatterns)), this._cachedCompiledPatterns;
|
|
642
641
|
}
|
|
643
|
-
},
|
|
642
|
+
}, IncludeOnlyRule = class extends Rule {
|
|
644
643
|
hasMissingPatterns;
|
|
645
644
|
patterns;
|
|
646
645
|
_cachedCompiledPatterns;
|
|
647
|
-
constructor(
|
|
648
|
-
super(
|
|
646
|
+
constructor(l, R, z, B, V) {
|
|
647
|
+
super(l, R, z, B), this.patterns = V.patterns, this.hasMissingPatterns = V.hasMissingPatterns, this._cachedCompiledPatterns = null;
|
|
649
648
|
}
|
|
650
649
|
dispose() {
|
|
651
650
|
this._cachedCompiledPatterns &&= (this._cachedCompiledPatterns.dispose(), null);
|
|
652
651
|
}
|
|
653
|
-
collectPatterns(
|
|
654
|
-
for (let
|
|
652
|
+
collectPatterns(l, R) {
|
|
653
|
+
for (let z of this.patterns) l.getRule(z).collectPatterns(l, R);
|
|
655
654
|
}
|
|
656
|
-
compile(
|
|
657
|
-
return this._getCachedCompiledPatterns(
|
|
655
|
+
compile(l, R) {
|
|
656
|
+
return this._getCachedCompiledPatterns(l).compile(l);
|
|
658
657
|
}
|
|
659
|
-
compileAG(
|
|
660
|
-
return this._getCachedCompiledPatterns(
|
|
658
|
+
compileAG(l, R, z, B) {
|
|
659
|
+
return this._getCachedCompiledPatterns(l).compileAG(l, z, B);
|
|
661
660
|
}
|
|
662
|
-
_getCachedCompiledPatterns(
|
|
663
|
-
return this._cachedCompiledPatterns || (this._cachedCompiledPatterns = new
|
|
661
|
+
_getCachedCompiledPatterns(l) {
|
|
662
|
+
return this._cachedCompiledPatterns || (this._cachedCompiledPatterns = new RegExpSourceList(), this.collectPatterns(l, this._cachedCompiledPatterns)), this._cachedCompiledPatterns;
|
|
664
663
|
}
|
|
665
|
-
},
|
|
664
|
+
}, BeginEndRule = class extends Rule {
|
|
666
665
|
_begin;
|
|
667
666
|
beginCaptures;
|
|
668
667
|
_end;
|
|
@@ -672,8 +671,8 @@ var N = class {
|
|
|
672
671
|
hasMissingPatterns;
|
|
673
672
|
patterns;
|
|
674
673
|
_cachedCompiledPatterns;
|
|
675
|
-
constructor(
|
|
676
|
-
super(
|
|
674
|
+
constructor(l, R, z, B, V, H, U, W, G, K) {
|
|
675
|
+
super(l, R, z, B), this._begin = new RegExpSource(V, this.id), this.beginCaptures = H, this._end = new RegExpSource(U || "", -1), this.endHasBackReferences = this._end.hasBackReferences, this.endCaptures = W, this.applyEndPatternLast = G || !1, this.patterns = K.patterns, this.hasMissingPatterns = K.hasMissingPatterns, this._cachedCompiledPatterns = null;
|
|
677
676
|
}
|
|
678
677
|
dispose() {
|
|
679
678
|
this._cachedCompiledPatterns &&= (this._cachedCompiledPatterns.dispose(), null);
|
|
@@ -684,27 +683,27 @@ var N = class {
|
|
|
684
683
|
get debugEndRegExp() {
|
|
685
684
|
return `${this._end.source}`;
|
|
686
685
|
}
|
|
687
|
-
getEndWithResolvedBackReferences(
|
|
688
|
-
return this._end.resolveBackReferences(
|
|
686
|
+
getEndWithResolvedBackReferences(l, R) {
|
|
687
|
+
return this._end.resolveBackReferences(l, R);
|
|
689
688
|
}
|
|
690
|
-
collectPatterns(
|
|
691
|
-
|
|
689
|
+
collectPatterns(l, R) {
|
|
690
|
+
R.push(this._begin);
|
|
692
691
|
}
|
|
693
|
-
compile(
|
|
694
|
-
return this._getCachedCompiledPatterns(
|
|
692
|
+
compile(l, R) {
|
|
693
|
+
return this._getCachedCompiledPatterns(l, R).compile(l);
|
|
695
694
|
}
|
|
696
|
-
compileAG(
|
|
697
|
-
return this._getCachedCompiledPatterns(
|
|
695
|
+
compileAG(l, R, z, B) {
|
|
696
|
+
return this._getCachedCompiledPatterns(l, R).compileAG(l, z, B);
|
|
698
697
|
}
|
|
699
|
-
_getCachedCompiledPatterns(
|
|
698
|
+
_getCachedCompiledPatterns(l, R) {
|
|
700
699
|
if (!this._cachedCompiledPatterns) {
|
|
701
|
-
this._cachedCompiledPatterns = new
|
|
702
|
-
for (let
|
|
700
|
+
this._cachedCompiledPatterns = new RegExpSourceList();
|
|
701
|
+
for (let R of this.patterns) l.getRule(R).collectPatterns(l, this._cachedCompiledPatterns);
|
|
703
702
|
this.applyEndPatternLast ? this._cachedCompiledPatterns.push(this._end.hasBackReferences ? this._end.clone() : this._end) : this._cachedCompiledPatterns.unshift(this._end.hasBackReferences ? this._end.clone() : this._end);
|
|
704
703
|
}
|
|
705
|
-
return this._end.hasBackReferences && (this.applyEndPatternLast ? this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length() - 1,
|
|
704
|
+
return this._end.hasBackReferences && (this.applyEndPatternLast ? this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length() - 1, R) : this._cachedCompiledPatterns.setSource(0, R)), this._cachedCompiledPatterns;
|
|
706
705
|
}
|
|
707
|
-
},
|
|
706
|
+
}, BeginWhileRule = class extends Rule {
|
|
708
707
|
_begin;
|
|
709
708
|
beginCaptures;
|
|
710
709
|
whileCaptures;
|
|
@@ -714,8 +713,8 @@ var N = class {
|
|
|
714
713
|
patterns;
|
|
715
714
|
_cachedCompiledPatterns;
|
|
716
715
|
_cachedCompiledWhilePatterns;
|
|
717
|
-
constructor(
|
|
718
|
-
super(
|
|
716
|
+
constructor(l, R, z, B, V, H, U, W, G) {
|
|
717
|
+
super(l, R, z, B), this._begin = new RegExpSource(V, this.id), this.beginCaptures = H, this.whileCaptures = W, this._while = new RegExpSource(U, whileRuleId), this.whileHasBackReferences = this._while.hasBackReferences, this.patterns = G.patterns, this.hasMissingPatterns = G.hasMissingPatterns, this._cachedCompiledPatterns = null, this._cachedCompiledWhilePatterns = null;
|
|
719
718
|
}
|
|
720
719
|
dispose() {
|
|
721
720
|
this._cachedCompiledPatterns &&= (this._cachedCompiledPatterns.dispose(), null), this._cachedCompiledWhilePatterns &&= (this._cachedCompiledWhilePatterns.dispose(), null);
|
|
@@ -726,146 +725,146 @@ var N = class {
|
|
|
726
725
|
get debugWhileRegExp() {
|
|
727
726
|
return `${this._while.source}`;
|
|
728
727
|
}
|
|
729
|
-
getWhileWithResolvedBackReferences(
|
|
730
|
-
return this._while.resolveBackReferences(
|
|
728
|
+
getWhileWithResolvedBackReferences(l, R) {
|
|
729
|
+
return this._while.resolveBackReferences(l, R);
|
|
731
730
|
}
|
|
732
|
-
collectPatterns(
|
|
733
|
-
|
|
731
|
+
collectPatterns(l, R) {
|
|
732
|
+
R.push(this._begin);
|
|
734
733
|
}
|
|
735
|
-
compile(
|
|
736
|
-
return this._getCachedCompiledPatterns(
|
|
734
|
+
compile(l, R) {
|
|
735
|
+
return this._getCachedCompiledPatterns(l).compile(l);
|
|
737
736
|
}
|
|
738
|
-
compileAG(
|
|
739
|
-
return this._getCachedCompiledPatterns(
|
|
737
|
+
compileAG(l, R, z, B) {
|
|
738
|
+
return this._getCachedCompiledPatterns(l).compileAG(l, z, B);
|
|
740
739
|
}
|
|
741
|
-
_getCachedCompiledPatterns(
|
|
740
|
+
_getCachedCompiledPatterns(l) {
|
|
742
741
|
if (!this._cachedCompiledPatterns) {
|
|
743
|
-
this._cachedCompiledPatterns = new
|
|
744
|
-
for (let
|
|
742
|
+
this._cachedCompiledPatterns = new RegExpSourceList();
|
|
743
|
+
for (let R of this.patterns) l.getRule(R).collectPatterns(l, this._cachedCompiledPatterns);
|
|
745
744
|
}
|
|
746
745
|
return this._cachedCompiledPatterns;
|
|
747
746
|
}
|
|
748
|
-
compileWhile(
|
|
749
|
-
return this._getCachedCompiledWhilePatterns(
|
|
747
|
+
compileWhile(l, R) {
|
|
748
|
+
return this._getCachedCompiledWhilePatterns(l, R).compile(l);
|
|
750
749
|
}
|
|
751
|
-
compileWhileAG(
|
|
752
|
-
return this._getCachedCompiledWhilePatterns(
|
|
750
|
+
compileWhileAG(l, R, z, B) {
|
|
751
|
+
return this._getCachedCompiledWhilePatterns(l, R).compileAG(l, z, B);
|
|
753
752
|
}
|
|
754
|
-
_getCachedCompiledWhilePatterns(
|
|
755
|
-
return this._cachedCompiledWhilePatterns || (this._cachedCompiledWhilePatterns = new
|
|
753
|
+
_getCachedCompiledWhilePatterns(l, R) {
|
|
754
|
+
return this._cachedCompiledWhilePatterns || (this._cachedCompiledWhilePatterns = new RegExpSourceList(), this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences ? this._while.clone() : this._while)), this._while.hasBackReferences && this._cachedCompiledWhilePatterns.setSource(0, R || ""), this._cachedCompiledWhilePatterns;
|
|
756
755
|
}
|
|
757
|
-
},
|
|
758
|
-
static createCaptureRule(
|
|
759
|
-
return
|
|
756
|
+
}, RuleFactory = class l {
|
|
757
|
+
static createCaptureRule(l, R, z, B, V) {
|
|
758
|
+
return l.registerRule((l) => new CaptureRule(R, l, z, B, V));
|
|
760
759
|
}
|
|
761
|
-
static getCompiledRuleId(
|
|
762
|
-
return
|
|
763
|
-
if (
|
|
764
|
-
if (
|
|
765
|
-
|
|
766
|
-
let
|
|
767
|
-
return
|
|
760
|
+
static getCompiledRuleId(R, z, B) {
|
|
761
|
+
return R.id || z.registerRule((H) => {
|
|
762
|
+
if (R.id = H, R.match) return new MatchRule(R.$vscodeTextmateLocation, R.id, R.name, R.match, l._compileCaptures(R.captures, z, B));
|
|
763
|
+
if (R.begin === void 0) {
|
|
764
|
+
R.repository && (B = mergeObjects({}, B, R.repository));
|
|
765
|
+
let H = R.patterns;
|
|
766
|
+
return H === void 0 && R.include && (H = [{ include: R.include }]), new IncludeOnlyRule(R.$vscodeTextmateLocation, R.id, R.name, R.contentName, l._compilePatterns(H, z, B));
|
|
768
767
|
}
|
|
769
|
-
return
|
|
770
|
-
}),
|
|
771
|
-
}
|
|
772
|
-
static _compileCaptures(
|
|
773
|
-
let
|
|
774
|
-
if (
|
|
775
|
-
let
|
|
776
|
-
for (let
|
|
777
|
-
if (
|
|
778
|
-
let
|
|
779
|
-
|
|
768
|
+
return R.while ? new BeginWhileRule(R.$vscodeTextmateLocation, R.id, R.name, R.contentName, R.begin, l._compileCaptures(R.beginCaptures || R.captures, z, B), R.while, l._compileCaptures(R.whileCaptures || R.captures, z, B), l._compilePatterns(R.patterns, z, B)) : new BeginEndRule(R.$vscodeTextmateLocation, R.id, R.name, R.contentName, R.begin, l._compileCaptures(R.beginCaptures || R.captures, z, B), R.end, l._compileCaptures(R.endCaptures || R.captures, z, B), R.applyEndPatternLast, l._compilePatterns(R.patterns, z, B));
|
|
769
|
+
}), R.id;
|
|
770
|
+
}
|
|
771
|
+
static _compileCaptures(R, z, B) {
|
|
772
|
+
let V = [];
|
|
773
|
+
if (R) {
|
|
774
|
+
let H = 0;
|
|
775
|
+
for (let l in R) {
|
|
776
|
+
if (l === "$vscodeTextmateLocation") continue;
|
|
777
|
+
let R = parseInt(l, 10);
|
|
778
|
+
R > H && (H = R);
|
|
780
779
|
}
|
|
781
|
-
for (let
|
|
782
|
-
for (let
|
|
783
|
-
if (
|
|
784
|
-
let
|
|
785
|
-
|
|
780
|
+
for (let l = 0; l <= H; l++) V[l] = null;
|
|
781
|
+
for (let H in R) {
|
|
782
|
+
if (H === "$vscodeTextmateLocation") continue;
|
|
783
|
+
let U = parseInt(H, 10), W = 0;
|
|
784
|
+
R[H].patterns && (W = l.getCompiledRuleId(R[H], z, B)), V[U] = l.createCaptureRule(z, R[H].$vscodeTextmateLocation, R[H].name, R[H].contentName, W);
|
|
786
785
|
}
|
|
787
786
|
}
|
|
788
|
-
return
|
|
789
|
-
}
|
|
790
|
-
static _compilePatterns(
|
|
791
|
-
let
|
|
792
|
-
if (
|
|
793
|
-
let
|
|
794
|
-
if (
|
|
795
|
-
let
|
|
796
|
-
switch (
|
|
787
|
+
return V;
|
|
788
|
+
}
|
|
789
|
+
static _compilePatterns(R, z, B) {
|
|
790
|
+
let V = [];
|
|
791
|
+
if (R) for (let H = 0, U = R.length; H < U; H++) {
|
|
792
|
+
let U = R[H], W = -1;
|
|
793
|
+
if (U.include) {
|
|
794
|
+
let R = parseInclude(U.include);
|
|
795
|
+
switch (R.kind) {
|
|
797
796
|
case 0:
|
|
798
797
|
case 1:
|
|
799
|
-
|
|
798
|
+
W = l.getCompiledRuleId(B[U.include], z, B);
|
|
800
799
|
break;
|
|
801
800
|
case 2:
|
|
802
|
-
let
|
|
803
|
-
|
|
801
|
+
let V = B[R.ruleName];
|
|
802
|
+
V && (W = l.getCompiledRuleId(V, z, B));
|
|
804
803
|
break;
|
|
805
804
|
case 3:
|
|
806
805
|
case 4:
|
|
807
|
-
let
|
|
808
|
-
if (
|
|
809
|
-
let
|
|
810
|
-
|
|
811
|
-
} else
|
|
806
|
+
let H = R.scopeName, G = R.kind === 4 ? R.ruleName : null, K = z.getExternalGrammar(H, B);
|
|
807
|
+
if (K) if (G) {
|
|
808
|
+
let R = K.repository[G];
|
|
809
|
+
R && (W = l.getCompiledRuleId(R, z, K.repository));
|
|
810
|
+
} else W = l.getCompiledRuleId(K.repository.$self, z, K.repository);
|
|
812
811
|
break;
|
|
813
812
|
}
|
|
814
|
-
} else
|
|
815
|
-
if (
|
|
816
|
-
let
|
|
817
|
-
if ((
|
|
818
|
-
|
|
813
|
+
} else W = l.getCompiledRuleId(U, z, B);
|
|
814
|
+
if (W !== -1) {
|
|
815
|
+
let l = z.getRule(W), R = !1;
|
|
816
|
+
if ((l instanceof IncludeOnlyRule || l instanceof BeginEndRule || l instanceof BeginWhileRule) && l.hasMissingPatterns && l.patterns.length === 0 && (R = !0), R) continue;
|
|
817
|
+
V.push(W);
|
|
819
818
|
}
|
|
820
819
|
}
|
|
821
820
|
return {
|
|
822
|
-
patterns:
|
|
823
|
-
hasMissingPatterns: (
|
|
821
|
+
patterns: V,
|
|
822
|
+
hasMissingPatterns: (R ? R.length : 0) !== V.length
|
|
824
823
|
};
|
|
825
824
|
}
|
|
826
|
-
},
|
|
825
|
+
}, RegExpSource = class l {
|
|
827
826
|
source;
|
|
828
827
|
ruleId;
|
|
829
828
|
hasAnchor;
|
|
830
829
|
hasBackReferences;
|
|
831
830
|
_anchorCache;
|
|
832
|
-
constructor(
|
|
833
|
-
if (
|
|
834
|
-
let
|
|
835
|
-
for (let
|
|
836
|
-
let
|
|
837
|
-
|
|
831
|
+
constructor(l, R) {
|
|
832
|
+
if (l && typeof l == "string") {
|
|
833
|
+
let R = l.length, z = 0, B = [], V = !1;
|
|
834
|
+
for (let H = 0; H < R; H++) if (l.charAt(H) === "\\" && H + 1 < R) {
|
|
835
|
+
let R = l.charAt(H + 1);
|
|
836
|
+
R === "z" ? (B.push(l.substring(z, H)), B.push("$(?!\\n)(?<!\\n)"), z = H + 2) : (R === "A" || R === "G") && (V = !0), H++;
|
|
838
837
|
}
|
|
839
|
-
this.hasAnchor =
|
|
840
|
-
} else this.hasAnchor = !1, this.source =
|
|
841
|
-
this.hasAnchor ? this._anchorCache = this._buildAnchorCache() : this._anchorCache = null, this.ruleId =
|
|
838
|
+
this.hasAnchor = V, z === 0 ? this.source = l : (B.push(l.substring(z, R)), this.source = B.join(""));
|
|
839
|
+
} else this.hasAnchor = !1, this.source = l;
|
|
840
|
+
this.hasAnchor ? this._anchorCache = this._buildAnchorCache() : this._anchorCache = null, this.ruleId = R, typeof this.source == "string" ? this.hasBackReferences = HAS_BACK_REFERENCES.test(this.source) : this.hasBackReferences = !1;
|
|
842
841
|
}
|
|
843
842
|
clone() {
|
|
844
|
-
return new
|
|
843
|
+
return new l(this.source, this.ruleId);
|
|
845
844
|
}
|
|
846
|
-
setSource(
|
|
847
|
-
this.source !==
|
|
845
|
+
setSource(l) {
|
|
846
|
+
this.source !== l && (this.source = l, this.hasAnchor && (this._anchorCache = this._buildAnchorCache()));
|
|
848
847
|
}
|
|
849
|
-
resolveBackReferences(
|
|
848
|
+
resolveBackReferences(l, R) {
|
|
850
849
|
if (typeof this.source != "string") throw Error("This method should only be called if the source is a string");
|
|
851
|
-
let
|
|
852
|
-
return
|
|
850
|
+
let z = R.map((R) => l.substring(R.start, R.end));
|
|
851
|
+
return BACK_REFERENCING_END.lastIndex = 0, this.source.replace(BACK_REFERENCING_END, (l, R) => escapeRegExpCharacters(z[parseInt(R, 10)] || ""));
|
|
853
852
|
}
|
|
854
853
|
_buildAnchorCache() {
|
|
855
854
|
if (typeof this.source != "string") throw Error("This method should only be called if the source is a string");
|
|
856
|
-
let
|
|
857
|
-
for (
|
|
855
|
+
let l = [], R = [], z = [], B = [], V, H, U, W;
|
|
856
|
+
for (V = 0, H = this.source.length; V < H; V++) U = this.source.charAt(V), l[V] = U, R[V] = U, z[V] = U, B[V] = U, U === "\\" && V + 1 < H && (W = this.source.charAt(V + 1), W === "A" ? (l[V + 1] = "", R[V + 1] = "", z[V + 1] = "A", B[V + 1] = "A") : W === "G" ? (l[V + 1] = "", R[V + 1] = "G", z[V + 1] = "", B[V + 1] = "G") : (l[V + 1] = W, R[V + 1] = W, z[V + 1] = W, B[V + 1] = W), V++);
|
|
858
857
|
return {
|
|
859
|
-
A0_G0:
|
|
860
|
-
A0_G1:
|
|
861
|
-
A1_G0:
|
|
862
|
-
A1_G1:
|
|
858
|
+
A0_G0: l.join(""),
|
|
859
|
+
A0_G1: R.join(""),
|
|
860
|
+
A1_G0: z.join(""),
|
|
861
|
+
A1_G1: B.join("")
|
|
863
862
|
};
|
|
864
863
|
}
|
|
865
|
-
resolveAnchors(
|
|
866
|
-
return !this.hasAnchor || !this._anchorCache || typeof this.source != "string" ? this.source :
|
|
864
|
+
resolveAnchors(l, R) {
|
|
865
|
+
return !this.hasAnchor || !this._anchorCache || typeof this.source != "string" ? this.source : l ? R ? this._anchorCache.A1_G1 : this._anchorCache.A1_G0 : R ? this._anchorCache.A0_G1 : this._anchorCache.A0_G0;
|
|
867
866
|
}
|
|
868
|
-
},
|
|
867
|
+
}, RegExpSourceList = class {
|
|
869
868
|
_items;
|
|
870
869
|
_hasAnchors;
|
|
871
870
|
_cached;
|
|
@@ -884,72 +883,72 @@ var N = class {
|
|
|
884
883
|
_disposeCaches() {
|
|
885
884
|
this._cached &&= (this._cached.dispose(), null), this._anchorCache.A0_G0 && (this._anchorCache.A0_G0.dispose(), this._anchorCache.A0_G0 = null), this._anchorCache.A0_G1 && (this._anchorCache.A0_G1.dispose(), this._anchorCache.A0_G1 = null), this._anchorCache.A1_G0 && (this._anchorCache.A1_G0.dispose(), this._anchorCache.A1_G0 = null), this._anchorCache.A1_G1 && (this._anchorCache.A1_G1.dispose(), this._anchorCache.A1_G1 = null);
|
|
886
885
|
}
|
|
887
|
-
push(
|
|
888
|
-
this._items.push(
|
|
886
|
+
push(l) {
|
|
887
|
+
this._items.push(l), this._hasAnchors = this._hasAnchors || l.hasAnchor;
|
|
889
888
|
}
|
|
890
|
-
unshift(
|
|
891
|
-
this._items.unshift(
|
|
889
|
+
unshift(l) {
|
|
890
|
+
this._items.unshift(l), this._hasAnchors = this._hasAnchors || l.hasAnchor;
|
|
892
891
|
}
|
|
893
892
|
length() {
|
|
894
893
|
return this._items.length;
|
|
895
894
|
}
|
|
896
|
-
setSource(
|
|
897
|
-
this._items[
|
|
895
|
+
setSource(l, R) {
|
|
896
|
+
this._items[l].source !== R && (this._disposeCaches(), this._items[l].setSource(R));
|
|
898
897
|
}
|
|
899
|
-
compile(
|
|
900
|
-
return this._cached ||= new
|
|
898
|
+
compile(l) {
|
|
899
|
+
return this._cached ||= new CompiledRule(l, this._items.map((l) => l.source), this._items.map((l) => l.ruleId)), this._cached;
|
|
901
900
|
}
|
|
902
|
-
compileAG(
|
|
903
|
-
return this._hasAnchors ?
|
|
901
|
+
compileAG(l, R, z) {
|
|
902
|
+
return this._hasAnchors ? R ? z ? (this._anchorCache.A1_G1 || (this._anchorCache.A1_G1 = this._resolveAnchors(l, R, z)), this._anchorCache.A1_G1) : (this._anchorCache.A1_G0 || (this._anchorCache.A1_G0 = this._resolveAnchors(l, R, z)), this._anchorCache.A1_G0) : z ? (this._anchorCache.A0_G1 || (this._anchorCache.A0_G1 = this._resolveAnchors(l, R, z)), this._anchorCache.A0_G1) : (this._anchorCache.A0_G0 || (this._anchorCache.A0_G0 = this._resolveAnchors(l, R, z)), this._anchorCache.A0_G0) : this.compile(l);
|
|
904
903
|
}
|
|
905
|
-
_resolveAnchors(
|
|
906
|
-
return new
|
|
904
|
+
_resolveAnchors(l, R, z) {
|
|
905
|
+
return new CompiledRule(l, this._items.map((l) => l.resolveAnchors(R, z)), this._items.map((l) => l.ruleId));
|
|
907
906
|
}
|
|
908
|
-
},
|
|
909
|
-
constructor(
|
|
910
|
-
this.regExps =
|
|
907
|
+
}, CompiledRule = class {
|
|
908
|
+
constructor(l, R, z) {
|
|
909
|
+
this.regExps = R, this.rules = z, this.scanner = l.createOnigScanner(R);
|
|
911
910
|
}
|
|
912
911
|
scanner;
|
|
913
912
|
dispose() {
|
|
914
913
|
typeof this.scanner.dispose == "function" && this.scanner.dispose();
|
|
915
914
|
}
|
|
916
915
|
toString() {
|
|
917
|
-
let
|
|
918
|
-
for (let
|
|
919
|
-
return
|
|
920
|
-
}
|
|
921
|
-
findNextMatchSync(
|
|
922
|
-
let
|
|
923
|
-
return
|
|
924
|
-
ruleId: this.rules[
|
|
925
|
-
captureIndices:
|
|
916
|
+
let l = [];
|
|
917
|
+
for (let R = 0, z = this.rules.length; R < z; R++) l.push(" - " + this.rules[R] + ": " + this.regExps[R]);
|
|
918
|
+
return l.join("\n");
|
|
919
|
+
}
|
|
920
|
+
findNextMatchSync(l, R, z) {
|
|
921
|
+
let B = this.scanner.findNextMatchSync(l, R, z);
|
|
922
|
+
return B ? {
|
|
923
|
+
ruleId: this.rules[B.index],
|
|
924
|
+
captureIndices: B.captureIndices
|
|
926
925
|
} : null;
|
|
927
926
|
}
|
|
928
|
-
},
|
|
929
|
-
constructor(
|
|
930
|
-
this.languageId =
|
|
927
|
+
}, BasicScopeAttributes = class {
|
|
928
|
+
constructor(l, R) {
|
|
929
|
+
this.languageId = l, this.tokenType = R;
|
|
931
930
|
}
|
|
932
|
-
},
|
|
931
|
+
}, BasicScopeAttributesProvider = class l {
|
|
933
932
|
_defaultAttributes;
|
|
934
933
|
_embeddedLanguagesMatcher;
|
|
935
|
-
constructor(
|
|
936
|
-
this._defaultAttributes = new
|
|
934
|
+
constructor(l, R) {
|
|
935
|
+
this._defaultAttributes = new BasicScopeAttributes(l, 8), this._embeddedLanguagesMatcher = new ScopeMatcher(Object.entries(R || {}));
|
|
937
936
|
}
|
|
938
937
|
getDefaultAttributes() {
|
|
939
938
|
return this._defaultAttributes;
|
|
940
939
|
}
|
|
941
|
-
getBasicScopeAttributes(
|
|
942
|
-
return
|
|
940
|
+
getBasicScopeAttributes(R) {
|
|
941
|
+
return R === null ? l._NULL_SCOPE_METADATA : this._getBasicScopeAttributes.get(R);
|
|
943
942
|
}
|
|
944
|
-
static _NULL_SCOPE_METADATA = new
|
|
945
|
-
_getBasicScopeAttributes = new
|
|
946
|
-
_scopeToLanguage(
|
|
947
|
-
return this._embeddedLanguagesMatcher.match(
|
|
943
|
+
static _NULL_SCOPE_METADATA = new BasicScopeAttributes(0, 0);
|
|
944
|
+
_getBasicScopeAttributes = new CachedFn((l) => new BasicScopeAttributes(this._scopeToLanguage(l), this._toStandardTokenType(l)));
|
|
945
|
+
_scopeToLanguage(l) {
|
|
946
|
+
return this._embeddedLanguagesMatcher.match(l) || 0;
|
|
948
947
|
}
|
|
949
|
-
_toStandardTokenType(
|
|
950
|
-
let
|
|
951
|
-
if (!
|
|
952
|
-
switch (
|
|
948
|
+
_toStandardTokenType(R) {
|
|
949
|
+
let z = R.match(l.STANDARD_TOKEN_TYPE_REGEXP);
|
|
950
|
+
if (!z) return 8;
|
|
951
|
+
switch (z[1]) {
|
|
953
952
|
case "comment": return 1;
|
|
954
953
|
case "string": return 2;
|
|
955
954
|
case "regex": return 3;
|
|
@@ -958,231 +957,231 @@ var N = class {
|
|
|
958
957
|
throw Error("Unexpected match for standard token type!");
|
|
959
958
|
}
|
|
960
959
|
static STANDARD_TOKEN_TYPE_REGEXP = /\b(comment|string|regex|meta\.embedded)\b/;
|
|
961
|
-
},
|
|
960
|
+
}, ScopeMatcher = class {
|
|
962
961
|
values;
|
|
963
962
|
scopesRegExp;
|
|
964
|
-
constructor(
|
|
965
|
-
if (
|
|
963
|
+
constructor(l) {
|
|
964
|
+
if (l.length === 0) this.values = null, this.scopesRegExp = null;
|
|
966
965
|
else {
|
|
967
|
-
this.values = new Map(
|
|
968
|
-
let
|
|
969
|
-
|
|
966
|
+
this.values = new Map(l);
|
|
967
|
+
let R = l.map(([l, R]) => escapeRegExpCharacters(l));
|
|
968
|
+
R.sort(), R.reverse(), this.scopesRegExp = RegExp(`^((${R.join(")|(")}))($|\\.)`, "");
|
|
970
969
|
}
|
|
971
970
|
}
|
|
972
|
-
match(
|
|
971
|
+
match(l) {
|
|
973
972
|
if (!this.scopesRegExp) return;
|
|
974
|
-
let
|
|
975
|
-
if (
|
|
973
|
+
let R = l.match(this.scopesRegExp);
|
|
974
|
+
if (R) return this.values.get(R[1]);
|
|
976
975
|
}
|
|
977
976
|
};
|
|
978
977
|
typeof process < "u" && process.env.VSCODE_TEXTMATE_DEBUG;
|
|
979
|
-
var
|
|
980
|
-
constructor(
|
|
981
|
-
this.stack =
|
|
978
|
+
var UseOnigurumaFindOptions = !1, TokenizeStringResult = class {
|
|
979
|
+
constructor(l, R) {
|
|
980
|
+
this.stack = l, this.stoppedEarly = R;
|
|
982
981
|
}
|
|
983
982
|
};
|
|
984
|
-
function
|
|
985
|
-
let
|
|
986
|
-
if (
|
|
987
|
-
let
|
|
988
|
-
|
|
989
|
-
}
|
|
990
|
-
let
|
|
991
|
-
for (; !
|
|
992
|
-
if (
|
|
993
|
-
|
|
994
|
-
}
|
|
995
|
-
return new
|
|
996
|
-
function
|
|
997
|
-
let
|
|
998
|
-
if (!
|
|
999
|
-
|
|
983
|
+
function _tokenizeString(l, R, z, B, V, H, U, W) {
|
|
984
|
+
let G = R.content.length, K = !1, q = -1;
|
|
985
|
+
if (U) {
|
|
986
|
+
let U = _checkWhileConditions(l, R, z, B, V, H);
|
|
987
|
+
V = U.stack, B = U.linePos, z = U.isFirstLine, q = U.anchorPosition;
|
|
988
|
+
}
|
|
989
|
+
let J = Date.now();
|
|
990
|
+
for (; !K;) {
|
|
991
|
+
if (W !== 0 && Date.now() - J > W) return new TokenizeStringResult(V, !0);
|
|
992
|
+
Y();
|
|
993
|
+
}
|
|
994
|
+
return new TokenizeStringResult(V, !1);
|
|
995
|
+
function Y() {
|
|
996
|
+
let U = matchRuleOrInjections(l, R, z, B, V, q);
|
|
997
|
+
if (!U) {
|
|
998
|
+
H.produce(V, G), K = !0;
|
|
1000
999
|
return;
|
|
1001
1000
|
}
|
|
1002
|
-
let
|
|
1003
|
-
if (
|
|
1004
|
-
let
|
|
1005
|
-
|
|
1006
|
-
let
|
|
1007
|
-
if (
|
|
1008
|
-
|
|
1001
|
+
let W = U.captureIndices, J = U.matchedRuleId, Y = W && W.length > 0 ? W[0].end > B : !1;
|
|
1002
|
+
if (J === endRuleId) {
|
|
1003
|
+
let U = V.getRule(l);
|
|
1004
|
+
H.produce(V, W[0].start), V = V.withContentNameScopesList(V.nameScopesList), handleCaptures(l, R, z, V, H, U.endCaptures, W), H.produce(V, W[0].end);
|
|
1005
|
+
let J = V;
|
|
1006
|
+
if (V = V.parent, q = J.getAnchorPos(), !Y && J.getEnterPos() === B) {
|
|
1007
|
+
V = J, H.produce(V, G), K = !0;
|
|
1009
1008
|
return;
|
|
1010
1009
|
}
|
|
1011
1010
|
} else {
|
|
1012
|
-
let
|
|
1013
|
-
|
|
1014
|
-
let
|
|
1015
|
-
if (
|
|
1016
|
-
let
|
|
1017
|
-
|
|
1018
|
-
let
|
|
1019
|
-
if (
|
|
1020
|
-
|
|
1011
|
+
let U = l.getRule(J);
|
|
1012
|
+
H.produce(V, W[0].start);
|
|
1013
|
+
let X = V, Z = U.getName(R.content, W), Q = V.contentNameScopesList.pushAttributed(Z, l);
|
|
1014
|
+
if (V = V.push(J, B, q, W[0].end === G, null, Q, Q), U instanceof BeginEndRule) {
|
|
1015
|
+
let B = U;
|
|
1016
|
+
handleCaptures(l, R, z, V, H, B.beginCaptures, W), H.produce(V, W[0].end), q = W[0].end;
|
|
1017
|
+
let J = B.getContentName(R.content, W), Z = Q.pushAttributed(J, l);
|
|
1018
|
+
if (V = V.withContentNameScopesList(Z), B.endHasBackReferences && (V = V.withEndRule(B.getEndWithResolvedBackReferences(R.content, W))), !Y && X.hasSameRuleAs(V)) {
|
|
1019
|
+
V = V.pop(), H.produce(V, G), K = !0;
|
|
1021
1020
|
return;
|
|
1022
1021
|
}
|
|
1023
|
-
} else if (
|
|
1024
|
-
let
|
|
1025
|
-
|
|
1026
|
-
let
|
|
1027
|
-
if (
|
|
1028
|
-
|
|
1022
|
+
} else if (U instanceof BeginWhileRule) {
|
|
1023
|
+
let B = U;
|
|
1024
|
+
handleCaptures(l, R, z, V, H, B.beginCaptures, W), H.produce(V, W[0].end), q = W[0].end;
|
|
1025
|
+
let J = B.getContentName(R.content, W), Z = Q.pushAttributed(J, l);
|
|
1026
|
+
if (V = V.withContentNameScopesList(Z), B.whileHasBackReferences && (V = V.withEndRule(B.getWhileWithResolvedBackReferences(R.content, W))), !Y && X.hasSameRuleAs(V)) {
|
|
1027
|
+
V = V.pop(), H.produce(V, G), K = !0;
|
|
1029
1028
|
return;
|
|
1030
1029
|
}
|
|
1031
|
-
} else if (
|
|
1032
|
-
|
|
1030
|
+
} else if (handleCaptures(l, R, z, V, H, U.captures, W), H.produce(V, W[0].end), V = V.pop(), !Y) {
|
|
1031
|
+
V = V.safePop(), H.produce(V, G), K = !0;
|
|
1033
1032
|
return;
|
|
1034
1033
|
}
|
|
1035
1034
|
}
|
|
1036
|
-
|
|
1035
|
+
W[0].end > B && (B = W[0].end, z = !1);
|
|
1037
1036
|
}
|
|
1038
1037
|
}
|
|
1039
|
-
function
|
|
1040
|
-
let
|
|
1041
|
-
for (let
|
|
1042
|
-
let
|
|
1043
|
-
|
|
1044
|
-
rule:
|
|
1045
|
-
stack:
|
|
1038
|
+
function _checkWhileConditions(l, R, z, B, V, H) {
|
|
1039
|
+
let U = V.beginRuleCapturedEOL ? 0 : -1, W = [];
|
|
1040
|
+
for (let R = V; R; R = R.pop()) {
|
|
1041
|
+
let z = R.getRule(l);
|
|
1042
|
+
z instanceof BeginWhileRule && W.push({
|
|
1043
|
+
rule: z,
|
|
1044
|
+
stack: R
|
|
1046
1045
|
});
|
|
1047
1046
|
}
|
|
1048
|
-
for (let
|
|
1049
|
-
let { ruleScanner:
|
|
1050
|
-
if (
|
|
1051
|
-
if (
|
|
1052
|
-
|
|
1047
|
+
for (let G = W.pop(); G; G = W.pop()) {
|
|
1048
|
+
let { ruleScanner: W, findOptions: K } = prepareRuleWhileSearch(G.rule, l, G.stack.endRule, z, B === U), q = W.findNextMatchSync(R, B, K);
|
|
1049
|
+
if (q) {
|
|
1050
|
+
if (q.ruleId !== whileRuleId) {
|
|
1051
|
+
V = G.stack.pop();
|
|
1053
1052
|
break;
|
|
1054
1053
|
}
|
|
1055
|
-
|
|
1054
|
+
q.captureIndices && q.captureIndices.length && (H.produce(G.stack, q.captureIndices[0].start), handleCaptures(l, R, z, G.stack, H, G.rule.whileCaptures, q.captureIndices), H.produce(G.stack, q.captureIndices[0].end), U = q.captureIndices[0].end, q.captureIndices[0].end > B && (B = q.captureIndices[0].end, z = !1));
|
|
1056
1055
|
} else {
|
|
1057
|
-
|
|
1056
|
+
V = G.stack.pop();
|
|
1058
1057
|
break;
|
|
1059
1058
|
}
|
|
1060
1059
|
}
|
|
1061
1060
|
return {
|
|
1062
|
-
stack:
|
|
1063
|
-
linePos:
|
|
1064
|
-
anchorPosition:
|
|
1065
|
-
isFirstLine:
|
|
1061
|
+
stack: V,
|
|
1062
|
+
linePos: B,
|
|
1063
|
+
anchorPosition: U,
|
|
1064
|
+
isFirstLine: z
|
|
1066
1065
|
};
|
|
1067
1066
|
}
|
|
1068
|
-
function
|
|
1069
|
-
let
|
|
1070
|
-
if (
|
|
1071
|
-
let
|
|
1072
|
-
if (!
|
|
1073
|
-
if (!
|
|
1074
|
-
let
|
|
1075
|
-
return
|
|
1067
|
+
function matchRuleOrInjections(l, R, z, B, V, H) {
|
|
1068
|
+
let U = matchRule(l, R, z, B, V, H), W = l.getInjections();
|
|
1069
|
+
if (W.length === 0) return U;
|
|
1070
|
+
let G = matchInjections(W, l, R, z, B, V, H);
|
|
1071
|
+
if (!G) return U;
|
|
1072
|
+
if (!U) return G;
|
|
1073
|
+
let K = U.captureIndices[0].start, q = G.captureIndices[0].start;
|
|
1074
|
+
return q < K || G.priorityMatch && q === K ? G : U;
|
|
1076
1075
|
}
|
|
1077
|
-
function
|
|
1078
|
-
let { ruleScanner:
|
|
1079
|
-
return
|
|
1080
|
-
captureIndices:
|
|
1081
|
-
matchedRuleId:
|
|
1076
|
+
function matchRule(l, R, z, B, V, H) {
|
|
1077
|
+
let { ruleScanner: U, findOptions: W } = prepareRuleSearch(V.getRule(l), l, V.endRule, z, B === H), G = U.findNextMatchSync(R, B, W);
|
|
1078
|
+
return G ? {
|
|
1079
|
+
captureIndices: G.captureIndices,
|
|
1080
|
+
matchedRuleId: G.ruleId
|
|
1082
1081
|
} : null;
|
|
1083
1082
|
}
|
|
1084
|
-
function
|
|
1085
|
-
let
|
|
1086
|
-
for (let
|
|
1087
|
-
let
|
|
1088
|
-
if (!
|
|
1089
|
-
let { ruleScanner:
|
|
1090
|
-
if (!
|
|
1091
|
-
let
|
|
1092
|
-
if (!(
|
|
1093
|
-
}
|
|
1094
|
-
return
|
|
1095
|
-
priorityMatch:
|
|
1096
|
-
captureIndices:
|
|
1097
|
-
matchedRuleId:
|
|
1083
|
+
function matchInjections(l, R, z, B, V, H, U) {
|
|
1084
|
+
let W = Number.MAX_VALUE, G = null, K, q = 0, J = H.contentNameScopesList.getScopeNames();
|
|
1085
|
+
for (let H = 0, Y = l.length; H < Y; H++) {
|
|
1086
|
+
let Y = l[H];
|
|
1087
|
+
if (!Y.matcher(J)) continue;
|
|
1088
|
+
let { ruleScanner: X, findOptions: Z } = prepareRuleSearch(R.getRule(Y.ruleId), R, null, B, V === U), Q = X.findNextMatchSync(z, V, Z);
|
|
1089
|
+
if (!Q) continue;
|
|
1090
|
+
let $ = Q.captureIndices[0].start;
|
|
1091
|
+
if (!($ >= W) && (W = $, G = Q.captureIndices, K = Q.ruleId, q = Y.priority, W === V)) break;
|
|
1092
|
+
}
|
|
1093
|
+
return G ? {
|
|
1094
|
+
priorityMatch: q === -1,
|
|
1095
|
+
captureIndices: G,
|
|
1096
|
+
matchedRuleId: K
|
|
1098
1097
|
} : null;
|
|
1099
1098
|
}
|
|
1100
|
-
function
|
|
1101
|
-
return
|
|
1102
|
-
ruleScanner:
|
|
1103
|
-
findOptions:
|
|
1099
|
+
function prepareRuleSearch(l, R, z, B, V) {
|
|
1100
|
+
return UseOnigurumaFindOptions ? {
|
|
1101
|
+
ruleScanner: l.compile(R, z),
|
|
1102
|
+
findOptions: getFindOptions(B, V)
|
|
1104
1103
|
} : {
|
|
1105
|
-
ruleScanner:
|
|
1104
|
+
ruleScanner: l.compileAG(R, z, B, V),
|
|
1106
1105
|
findOptions: 0
|
|
1107
1106
|
};
|
|
1108
1107
|
}
|
|
1109
|
-
function
|
|
1110
|
-
return
|
|
1111
|
-
ruleScanner:
|
|
1112
|
-
findOptions:
|
|
1108
|
+
function prepareRuleWhileSearch(l, R, z, B, V) {
|
|
1109
|
+
return UseOnigurumaFindOptions ? {
|
|
1110
|
+
ruleScanner: l.compileWhile(R, z),
|
|
1111
|
+
findOptions: getFindOptions(B, V)
|
|
1113
1112
|
} : {
|
|
1114
|
-
ruleScanner:
|
|
1113
|
+
ruleScanner: l.compileWhileAG(R, z, B, V),
|
|
1115
1114
|
findOptions: 0
|
|
1116
1115
|
};
|
|
1117
1116
|
}
|
|
1118
|
-
function
|
|
1119
|
-
let
|
|
1120
|
-
return
|
|
1117
|
+
function getFindOptions(l, R) {
|
|
1118
|
+
let z = 0;
|
|
1119
|
+
return l || (z |= 1), R || (z |= 4), z;
|
|
1121
1120
|
}
|
|
1122
|
-
function
|
|
1123
|
-
if (
|
|
1124
|
-
let
|
|
1125
|
-
for (let
|
|
1126
|
-
let
|
|
1127
|
-
if (
|
|
1128
|
-
let
|
|
1129
|
-
if (
|
|
1130
|
-
if (
|
|
1131
|
-
for (;
|
|
1132
|
-
if (
|
|
1133
|
-
let
|
|
1134
|
-
|
|
1121
|
+
function handleCaptures(l, R, z, B, V, H, U) {
|
|
1122
|
+
if (H.length === 0) return;
|
|
1123
|
+
let W = R.content, G = Math.min(H.length, U.length), K = [], q = U[0].end;
|
|
1124
|
+
for (let R = 0; R < G; R++) {
|
|
1125
|
+
let G = H[R];
|
|
1126
|
+
if (G === null) continue;
|
|
1127
|
+
let J = U[R];
|
|
1128
|
+
if (J.length === 0) continue;
|
|
1129
|
+
if (J.start > q) break;
|
|
1130
|
+
for (; K.length > 0 && K[K.length - 1].endPos <= J.start;) V.produceFromScopes(K[K.length - 1].scopes, K[K.length - 1].endPos), K.pop();
|
|
1131
|
+
if (K.length > 0 ? V.produceFromScopes(K[K.length - 1].scopes, J.start) : V.produce(B, J.start), G.retokenizeCapturedWithRuleId) {
|
|
1132
|
+
let R = G.getName(W, U), H = B.contentNameScopesList.pushAttributed(R, l), K = G.getContentName(W, U), q = H.pushAttributed(K, l), Y = B.push(G.retokenizeCapturedWithRuleId, J.start, -1, !1, null, H, q), X = l.createOnigString(W.substring(0, J.end));
|
|
1133
|
+
_tokenizeString(l, X, z && J.start === 0, J.start, Y, V, !1, 0), disposeOnigString(X);
|
|
1135
1134
|
continue;
|
|
1136
1135
|
}
|
|
1137
|
-
let
|
|
1138
|
-
if (
|
|
1139
|
-
let
|
|
1140
|
-
|
|
1136
|
+
let Y = G.getName(W, U);
|
|
1137
|
+
if (Y !== null) {
|
|
1138
|
+
let R = (K.length > 0 ? K[K.length - 1].scopes : B.contentNameScopesList).pushAttributed(Y, l);
|
|
1139
|
+
K.push(new LocalStackElement(R, J.end));
|
|
1141
1140
|
}
|
|
1142
1141
|
}
|
|
1143
|
-
for (;
|
|
1142
|
+
for (; K.length > 0;) V.produceFromScopes(K[K.length - 1].scopes, K[K.length - 1].endPos), K.pop();
|
|
1144
1143
|
}
|
|
1145
|
-
var
|
|
1144
|
+
var LocalStackElement = class {
|
|
1146
1145
|
scopes;
|
|
1147
1146
|
endPos;
|
|
1148
|
-
constructor(
|
|
1149
|
-
this.scopes =
|
|
1147
|
+
constructor(l, R) {
|
|
1148
|
+
this.scopes = l, this.endPos = R;
|
|
1150
1149
|
}
|
|
1151
1150
|
};
|
|
1152
|
-
function
|
|
1153
|
-
return new
|
|
1151
|
+
function createGrammar(l, R, z, B, V, H, U, W) {
|
|
1152
|
+
return new Grammar(l, R, z, B, V, H, U, W);
|
|
1154
1153
|
}
|
|
1155
|
-
function
|
|
1156
|
-
let
|
|
1157
|
-
for (let
|
|
1158
|
-
debugSelector:
|
|
1159
|
-
matcher:
|
|
1160
|
-
ruleId:
|
|
1161
|
-
grammar:
|
|
1162
|
-
priority:
|
|
1154
|
+
function collectInjections(l, R, z, B, V) {
|
|
1155
|
+
let H = createMatchers(R, nameMatcher), U = RuleFactory.getCompiledRuleId(z, B, V.repository);
|
|
1156
|
+
for (let z of H) l.push({
|
|
1157
|
+
debugSelector: R,
|
|
1158
|
+
matcher: z.matcher,
|
|
1159
|
+
ruleId: U,
|
|
1160
|
+
grammar: V,
|
|
1161
|
+
priority: z.priority
|
|
1163
1162
|
});
|
|
1164
1163
|
}
|
|
1165
|
-
function
|
|
1166
|
-
if (
|
|
1167
|
-
let
|
|
1168
|
-
return
|
|
1169
|
-
for (let
|
|
1164
|
+
function nameMatcher(l, R) {
|
|
1165
|
+
if (R.length < l.length) return !1;
|
|
1166
|
+
let z = 0;
|
|
1167
|
+
return l.every((l) => {
|
|
1168
|
+
for (let B = z; B < R.length; B++) if (scopesAreMatching(R[B], l)) return z = B + 1, !0;
|
|
1170
1169
|
return !1;
|
|
1171
1170
|
});
|
|
1172
1171
|
}
|
|
1173
|
-
function
|
|
1174
|
-
if (!
|
|
1175
|
-
if (
|
|
1176
|
-
let
|
|
1177
|
-
return
|
|
1172
|
+
function scopesAreMatching(l, R) {
|
|
1173
|
+
if (!l) return !1;
|
|
1174
|
+
if (l === R) return !0;
|
|
1175
|
+
let z = R.length;
|
|
1176
|
+
return l.length > z && l.substr(0, z) === R && l[z] === ".";
|
|
1178
1177
|
}
|
|
1179
|
-
var
|
|
1180
|
-
constructor(
|
|
1181
|
-
if (this._rootScopeName =
|
|
1182
|
-
let
|
|
1183
|
-
for (let
|
|
1184
|
-
matcher:
|
|
1185
|
-
type:
|
|
1178
|
+
var Grammar = class {
|
|
1179
|
+
constructor(l, R, z, B, V, H, U, W) {
|
|
1180
|
+
if (this._rootScopeName = l, this.balancedBracketSelectors = H, this._onigLib = W, this._basicScopeAttributesProvider = new BasicScopeAttributesProvider(z, B), this._rootId = -1, this._lastRuleId = 0, this._ruleId2desc = [null], this._includedGrammars = {}, this._grammarRepository = U, this._grammar = initGrammar(R, null), this._injections = null, this._tokenTypeMatchers = [], V) for (let l of Object.keys(V)) {
|
|
1181
|
+
let R = createMatchers(l, nameMatcher);
|
|
1182
|
+
for (let z of R) this._tokenTypeMatchers.push({
|
|
1183
|
+
matcher: z.matcher,
|
|
1184
|
+
type: V[l]
|
|
1186
1185
|
});
|
|
1187
1186
|
}
|
|
1188
1187
|
}
|
|
@@ -1199,109 +1198,109 @@ var je = class {
|
|
|
1199
1198
|
return this._grammarRepository;
|
|
1200
1199
|
}
|
|
1201
1200
|
dispose() {
|
|
1202
|
-
for (let
|
|
1201
|
+
for (let l of this._ruleId2desc) l && l.dispose();
|
|
1203
1202
|
}
|
|
1204
|
-
createOnigScanner(
|
|
1205
|
-
return this._onigLib.createOnigScanner(
|
|
1203
|
+
createOnigScanner(l) {
|
|
1204
|
+
return this._onigLib.createOnigScanner(l);
|
|
1206
1205
|
}
|
|
1207
|
-
createOnigString(
|
|
1208
|
-
return this._onigLib.createOnigString(
|
|
1206
|
+
createOnigString(l) {
|
|
1207
|
+
return this._onigLib.createOnigString(l);
|
|
1209
1208
|
}
|
|
1210
|
-
getMetadataForScope(
|
|
1211
|
-
return this._basicScopeAttributesProvider.getBasicScopeAttributes(
|
|
1209
|
+
getMetadataForScope(l) {
|
|
1210
|
+
return this._basicScopeAttributesProvider.getBasicScopeAttributes(l);
|
|
1212
1211
|
}
|
|
1213
1212
|
_collectInjections() {
|
|
1214
|
-
let
|
|
1215
|
-
lookup: (
|
|
1216
|
-
injections: (
|
|
1217
|
-
},
|
|
1218
|
-
if (
|
|
1219
|
-
let
|
|
1220
|
-
if (
|
|
1221
|
-
let
|
|
1222
|
-
|
|
1223
|
-
let
|
|
1224
|
-
if (
|
|
1225
|
-
let
|
|
1226
|
-
|
|
1213
|
+
let l = {
|
|
1214
|
+
lookup: (l) => l === this._rootScopeName ? this._grammar : this.getExternalGrammar(l),
|
|
1215
|
+
injections: (l) => this._grammarRepository.injections(l)
|
|
1216
|
+
}, R = [], z = this._rootScopeName, B = l.lookup(z);
|
|
1217
|
+
if (B) {
|
|
1218
|
+
let l = B.injections;
|
|
1219
|
+
if (l) for (let z in l) collectInjections(R, z, l[z], this, B);
|
|
1220
|
+
let V = this._grammarRepository.injections(z);
|
|
1221
|
+
V && V.forEach((l) => {
|
|
1222
|
+
let z = this.getExternalGrammar(l);
|
|
1223
|
+
if (z) {
|
|
1224
|
+
let l = z.injectionSelector;
|
|
1225
|
+
l && collectInjections(R, l, z, this, z);
|
|
1227
1226
|
}
|
|
1228
1227
|
});
|
|
1229
1228
|
}
|
|
1230
|
-
return
|
|
1229
|
+
return R.sort((l, R) => l.priority - R.priority), R;
|
|
1231
1230
|
}
|
|
1232
1231
|
getInjections() {
|
|
1233
1232
|
return this._injections === null && (this._injections = this._collectInjections()), this._injections;
|
|
1234
1233
|
}
|
|
1235
|
-
registerRule(
|
|
1236
|
-
let
|
|
1237
|
-
return this._ruleId2desc[
|
|
1234
|
+
registerRule(l) {
|
|
1235
|
+
let R = ++this._lastRuleId, z = l(ruleIdFromNumber(R));
|
|
1236
|
+
return this._ruleId2desc[R] = z, z;
|
|
1238
1237
|
}
|
|
1239
|
-
getRule(
|
|
1240
|
-
return this._ruleId2desc[
|
|
1238
|
+
getRule(l) {
|
|
1239
|
+
return this._ruleId2desc[ruleIdToNumber(l)];
|
|
1241
1240
|
}
|
|
1242
|
-
getExternalGrammar(
|
|
1243
|
-
if (this._includedGrammars[
|
|
1241
|
+
getExternalGrammar(l, R) {
|
|
1242
|
+
if (this._includedGrammars[l]) return this._includedGrammars[l];
|
|
1244
1243
|
if (this._grammarRepository) {
|
|
1245
|
-
let
|
|
1246
|
-
if (
|
|
1244
|
+
let z = this._grammarRepository.lookup(l);
|
|
1245
|
+
if (z) return this._includedGrammars[l] = initGrammar(z, R && R.$base), this._includedGrammars[l];
|
|
1247
1246
|
}
|
|
1248
1247
|
}
|
|
1249
|
-
tokenizeLine(
|
|
1250
|
-
let
|
|
1248
|
+
tokenizeLine(l, R, z = 0) {
|
|
1249
|
+
let B = this._tokenize(l, R, !1, z);
|
|
1251
1250
|
return {
|
|
1252
|
-
tokens:
|
|
1253
|
-
ruleStack:
|
|
1254
|
-
stoppedEarly:
|
|
1251
|
+
tokens: B.lineTokens.getResult(B.ruleStack, B.lineLength),
|
|
1252
|
+
ruleStack: B.ruleStack,
|
|
1253
|
+
stoppedEarly: B.stoppedEarly
|
|
1255
1254
|
};
|
|
1256
1255
|
}
|
|
1257
|
-
tokenizeLine2(
|
|
1258
|
-
let
|
|
1256
|
+
tokenizeLine2(l, R, z = 0) {
|
|
1257
|
+
let B = this._tokenize(l, R, !0, z);
|
|
1259
1258
|
return {
|
|
1260
|
-
tokens:
|
|
1261
|
-
ruleStack:
|
|
1262
|
-
stoppedEarly:
|
|
1259
|
+
tokens: B.lineTokens.getBinaryResult(B.ruleStack, B.lineLength),
|
|
1260
|
+
ruleStack: B.ruleStack,
|
|
1261
|
+
stoppedEarly: B.stoppedEarly
|
|
1263
1262
|
};
|
|
1264
1263
|
}
|
|
1265
|
-
_tokenize(
|
|
1266
|
-
this._rootId === -1 && (this._rootId =
|
|
1267
|
-
let
|
|
1268
|
-
if (!
|
|
1269
|
-
|
|
1270
|
-
let
|
|
1271
|
-
|
|
1272
|
-
} else
|
|
1273
|
-
|
|
1274
|
-
let
|
|
1275
|
-
return
|
|
1276
|
-
lineLength:
|
|
1277
|
-
lineTokens:
|
|
1278
|
-
ruleStack:
|
|
1279
|
-
stoppedEarly:
|
|
1264
|
+
_tokenize(l, R, z, B) {
|
|
1265
|
+
this._rootId === -1 && (this._rootId = RuleFactory.getCompiledRuleId(this._grammar.repository.$self, this, this._grammar.repository), this.getInjections());
|
|
1266
|
+
let V;
|
|
1267
|
+
if (!R || R === StateStackImpl.NULL) {
|
|
1268
|
+
V = !0;
|
|
1269
|
+
let l = this._basicScopeAttributesProvider.getDefaultAttributes(), z = this.themeProvider.getDefaults(), B = EncodedTokenMetadata.set(0, l.languageId, l.tokenType, null, z.fontStyle, z.foregroundId, z.backgroundId), H = this.getRule(this._rootId).getName(null, null), U;
|
|
1270
|
+
U = H ? AttributedScopeStack.createRootAndLookUpScopeName(H, B, this) : AttributedScopeStack.createRoot("unknown", B), R = new StateStackImpl(null, this._rootId, -1, -1, !1, null, U, U);
|
|
1271
|
+
} else V = !1, R.reset();
|
|
1272
|
+
l += "\n";
|
|
1273
|
+
let H = this.createOnigString(l), U = H.content.length, W = new LineTokens(z, l, this._tokenTypeMatchers, this.balancedBracketSelectors), G = _tokenizeString(this, H, V, 0, R, W, !0, B);
|
|
1274
|
+
return disposeOnigString(H), {
|
|
1275
|
+
lineLength: U,
|
|
1276
|
+
lineTokens: W,
|
|
1277
|
+
ruleStack: G.stack,
|
|
1278
|
+
stoppedEarly: G.stoppedEarly
|
|
1280
1279
|
};
|
|
1281
1280
|
}
|
|
1282
1281
|
};
|
|
1283
|
-
function
|
|
1284
|
-
return
|
|
1285
|
-
$vscodeTextmateLocation:
|
|
1286
|
-
patterns:
|
|
1287
|
-
name:
|
|
1288
|
-
},
|
|
1282
|
+
function initGrammar(R, z) {
|
|
1283
|
+
return R = clone(R), R.repository = R.repository || {}, R.repository.$self = {
|
|
1284
|
+
$vscodeTextmateLocation: R.$vscodeTextmateLocation,
|
|
1285
|
+
patterns: R.patterns,
|
|
1286
|
+
name: R.scopeName
|
|
1287
|
+
}, R.repository.$base = z || R.repository.$self, R;
|
|
1289
1288
|
}
|
|
1290
|
-
var
|
|
1291
|
-
constructor(
|
|
1292
|
-
this.parent =
|
|
1289
|
+
var AttributedScopeStack = class l {
|
|
1290
|
+
constructor(l, R, z) {
|
|
1291
|
+
this.parent = l, this.scopePath = R, this.tokenAttributes = z;
|
|
1293
1292
|
}
|
|
1294
|
-
static fromExtension(
|
|
1295
|
-
let
|
|
1296
|
-
for (let
|
|
1297
|
-
return
|
|
1293
|
+
static fromExtension(R, z) {
|
|
1294
|
+
let B = R, V = R?.scopePath ?? null;
|
|
1295
|
+
for (let R of z) V = ScopeStack.push(V, R.scopeNames), B = new l(B, V, R.encodedTokenAttributes);
|
|
1296
|
+
return B;
|
|
1298
1297
|
}
|
|
1299
|
-
static createRoot(
|
|
1300
|
-
return new
|
|
1298
|
+
static createRoot(R, z) {
|
|
1299
|
+
return new l(null, new ScopeStack(null, R), z);
|
|
1301
1300
|
}
|
|
1302
|
-
static createRootAndLookUpScopeName(
|
|
1303
|
-
let
|
|
1304
|
-
return new
|
|
1301
|
+
static createRootAndLookUpScopeName(R, z, B) {
|
|
1302
|
+
let V = B.getMetadataForScope(R), H = new ScopeStack(null, R), U = B.themeProvider.themeMatch(H);
|
|
1303
|
+
return new l(null, H, l.mergeAttributes(z, V, U));
|
|
1305
1304
|
}
|
|
1306
1305
|
get scopeName() {
|
|
1307
1306
|
return this.scopePath.scopeName;
|
|
@@ -1309,72 +1308,72 @@ var Q = class e {
|
|
|
1309
1308
|
toString() {
|
|
1310
1309
|
return this.getScopeNames().join(" ");
|
|
1311
1310
|
}
|
|
1312
|
-
equals(
|
|
1313
|
-
return
|
|
1311
|
+
equals(R) {
|
|
1312
|
+
return l.equals(this, R);
|
|
1314
1313
|
}
|
|
1315
|
-
static equals(
|
|
1314
|
+
static equals(l, R) {
|
|
1316
1315
|
do {
|
|
1317
|
-
if (
|
|
1318
|
-
if (!
|
|
1319
|
-
|
|
1316
|
+
if (l === R || !l && !R) return !0;
|
|
1317
|
+
if (!l || !R || l.scopeName !== R.scopeName || l.tokenAttributes !== R.tokenAttributes) return !1;
|
|
1318
|
+
l = l.parent, R = R.parent;
|
|
1320
1319
|
} while (!0);
|
|
1321
1320
|
}
|
|
1322
|
-
static mergeAttributes(
|
|
1323
|
-
let
|
|
1324
|
-
return
|
|
1321
|
+
static mergeAttributes(l, R, z) {
|
|
1322
|
+
let B = -1, V = 0, H = 0;
|
|
1323
|
+
return z !== null && (B = z.fontStyle, V = z.foregroundId, H = z.backgroundId), EncodedTokenMetadata.set(l, R.languageId, R.tokenType, null, B, V, H);
|
|
1325
1324
|
}
|
|
1326
|
-
pushAttributed(
|
|
1327
|
-
if (
|
|
1328
|
-
if (
|
|
1329
|
-
let
|
|
1330
|
-
for (let
|
|
1331
|
-
return
|
|
1325
|
+
pushAttributed(R, z) {
|
|
1326
|
+
if (R === null) return this;
|
|
1327
|
+
if (R.indexOf(" ") === -1) return l._pushAttributed(this, R, z);
|
|
1328
|
+
let B = R.split(/ /g), V = this;
|
|
1329
|
+
for (let R of B) V = l._pushAttributed(V, R, z);
|
|
1330
|
+
return V;
|
|
1332
1331
|
}
|
|
1333
|
-
static _pushAttributed(
|
|
1334
|
-
let
|
|
1335
|
-
return new
|
|
1332
|
+
static _pushAttributed(R, z, B) {
|
|
1333
|
+
let V = B.getMetadataForScope(z), H = R.scopePath.push(z), U = B.themeProvider.themeMatch(H);
|
|
1334
|
+
return new l(R, H, l.mergeAttributes(R.tokenAttributes, V, U));
|
|
1336
1335
|
}
|
|
1337
1336
|
getScopeNames() {
|
|
1338
1337
|
return this.scopePath.getSegments();
|
|
1339
1338
|
}
|
|
1340
|
-
getExtensionIfDefined(
|
|
1341
|
-
let
|
|
1342
|
-
for (;
|
|
1343
|
-
encodedTokenAttributes:
|
|
1344
|
-
scopeNames:
|
|
1345
|
-
}),
|
|
1346
|
-
return
|
|
1339
|
+
getExtensionIfDefined(l) {
|
|
1340
|
+
let R = [], z = this;
|
|
1341
|
+
for (; z && z !== l;) R.push({
|
|
1342
|
+
encodedTokenAttributes: z.tokenAttributes,
|
|
1343
|
+
scopeNames: z.scopePath.getExtensionIfDefined(z.parent?.scopePath ?? null)
|
|
1344
|
+
}), z = z.parent;
|
|
1345
|
+
return z === l ? R.reverse() : void 0;
|
|
1347
1346
|
}
|
|
1348
|
-
},
|
|
1349
|
-
constructor(
|
|
1350
|
-
this.parent =
|
|
1347
|
+
}, StateStackImpl = class l {
|
|
1348
|
+
constructor(l, R, z, B, V, H, U, W) {
|
|
1349
|
+
this.parent = l, this.ruleId = R, this.beginRuleCapturedEOL = V, this.endRule = H, this.nameScopesList = U, this.contentNameScopesList = W, this.depth = this.parent ? this.parent.depth + 1 : 1, this._enterPos = z, this._anchorPos = B;
|
|
1351
1350
|
}
|
|
1352
1351
|
_stackElementBrand = void 0;
|
|
1353
|
-
static NULL = new
|
|
1352
|
+
static NULL = new l(null, 0, 0, 0, !1, null, null, null);
|
|
1354
1353
|
_enterPos;
|
|
1355
1354
|
_anchorPos;
|
|
1356
1355
|
depth;
|
|
1357
|
-
equals(
|
|
1358
|
-
return
|
|
1356
|
+
equals(R) {
|
|
1357
|
+
return R === null ? !1 : l._equals(this, R);
|
|
1359
1358
|
}
|
|
1360
|
-
static _equals(
|
|
1361
|
-
return
|
|
1359
|
+
static _equals(l, R) {
|
|
1360
|
+
return l === R ? !0 : this._structuralEquals(l, R) ? AttributedScopeStack.equals(l.contentNameScopesList, R.contentNameScopesList) : !1;
|
|
1362
1361
|
}
|
|
1363
|
-
static _structuralEquals(
|
|
1362
|
+
static _structuralEquals(l, R) {
|
|
1364
1363
|
do {
|
|
1365
|
-
if (
|
|
1366
|
-
if (!
|
|
1367
|
-
|
|
1364
|
+
if (l === R || !l && !R) return !0;
|
|
1365
|
+
if (!l || !R || l.depth !== R.depth || l.ruleId !== R.ruleId || l.endRule !== R.endRule) return !1;
|
|
1366
|
+
l = l.parent, R = R.parent;
|
|
1368
1367
|
} while (!0);
|
|
1369
1368
|
}
|
|
1370
1369
|
clone() {
|
|
1371
1370
|
return this;
|
|
1372
1371
|
}
|
|
1373
|
-
static _reset(
|
|
1374
|
-
for (;
|
|
1372
|
+
static _reset(l) {
|
|
1373
|
+
for (; l;) l._enterPos = -1, l._anchorPos = -1, l = l.parent;
|
|
1375
1374
|
}
|
|
1376
1375
|
reset() {
|
|
1377
|
-
|
|
1376
|
+
l._reset(this);
|
|
1378
1377
|
}
|
|
1379
1378
|
pop() {
|
|
1380
1379
|
return this.parent;
|
|
@@ -1382,8 +1381,8 @@ var Q = class e {
|
|
|
1382
1381
|
safePop() {
|
|
1383
1382
|
return this.parent ? this.parent : this;
|
|
1384
1383
|
}
|
|
1385
|
-
push(
|
|
1386
|
-
return new
|
|
1384
|
+
push(R, z, B, V, H, U, W) {
|
|
1385
|
+
return new l(this, R, z, B, V, H, U, W);
|
|
1387
1386
|
}
|
|
1388
1387
|
getEnterPos() {
|
|
1389
1388
|
return this._enterPos;
|
|
@@ -1391,49 +1390,49 @@ var Q = class e {
|
|
|
1391
1390
|
getAnchorPos() {
|
|
1392
1391
|
return this._anchorPos;
|
|
1393
1392
|
}
|
|
1394
|
-
getRule(
|
|
1395
|
-
return
|
|
1393
|
+
getRule(l) {
|
|
1394
|
+
return l.getRule(this.ruleId);
|
|
1396
1395
|
}
|
|
1397
1396
|
toString() {
|
|
1398
|
-
let
|
|
1399
|
-
return this._writeString(
|
|
1397
|
+
let l = [];
|
|
1398
|
+
return this._writeString(l, 0), "[" + l.join(",") + "]";
|
|
1400
1399
|
}
|
|
1401
|
-
_writeString(
|
|
1402
|
-
return this.parent && (
|
|
1400
|
+
_writeString(l, R) {
|
|
1401
|
+
return this.parent && (R = this.parent._writeString(l, R)), l[R++] = `(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`, R;
|
|
1403
1402
|
}
|
|
1404
|
-
withContentNameScopesList(
|
|
1405
|
-
return this.contentNameScopesList ===
|
|
1403
|
+
withContentNameScopesList(l) {
|
|
1404
|
+
return this.contentNameScopesList === l ? this : this.parent.push(this.ruleId, this._enterPos, this._anchorPos, this.beginRuleCapturedEOL, this.endRule, this.nameScopesList, l);
|
|
1406
1405
|
}
|
|
1407
|
-
withEndRule(
|
|
1408
|
-
return this.endRule ===
|
|
1406
|
+
withEndRule(R) {
|
|
1407
|
+
return this.endRule === R ? this : new l(this.parent, this.ruleId, this._enterPos, this._anchorPos, this.beginRuleCapturedEOL, R, this.nameScopesList, this.contentNameScopesList);
|
|
1409
1408
|
}
|
|
1410
|
-
hasSameRuleAs(
|
|
1411
|
-
let
|
|
1412
|
-
for (;
|
|
1413
|
-
if (
|
|
1414
|
-
|
|
1409
|
+
hasSameRuleAs(l) {
|
|
1410
|
+
let R = this;
|
|
1411
|
+
for (; R && R._enterPos === l._enterPos;) {
|
|
1412
|
+
if (R.ruleId === l.ruleId) return !0;
|
|
1413
|
+
R = R.parent;
|
|
1415
1414
|
}
|
|
1416
1415
|
return !1;
|
|
1417
1416
|
}
|
|
1418
1417
|
toStateStackFrame() {
|
|
1419
1418
|
return {
|
|
1420
|
-
ruleId:
|
|
1419
|
+
ruleId: ruleIdToNumber(this.ruleId),
|
|
1421
1420
|
beginRuleCapturedEOL: this.beginRuleCapturedEOL,
|
|
1422
1421
|
endRule: this.endRule,
|
|
1423
1422
|
nameScopesList: this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList ?? null) ?? [],
|
|
1424
1423
|
contentNameScopesList: this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList) ?? []
|
|
1425
1424
|
};
|
|
1426
1425
|
}
|
|
1427
|
-
static pushFrame(
|
|
1428
|
-
let
|
|
1429
|
-
return new
|
|
1426
|
+
static pushFrame(R, z) {
|
|
1427
|
+
let B = AttributedScopeStack.fromExtension(R?.nameScopesList ?? null, z.nameScopesList);
|
|
1428
|
+
return new l(R, ruleIdFromNumber(z.ruleId), z.enterPos ?? -1, z.anchorPos ?? -1, z.beginRuleCapturedEOL, z.endRule, B, AttributedScopeStack.fromExtension(B, z.contentNameScopesList));
|
|
1430
1429
|
}
|
|
1431
|
-
},
|
|
1430
|
+
}, BalancedBracketSelectors = class {
|
|
1432
1431
|
balancedBracketScopes;
|
|
1433
1432
|
unbalancedBracketScopes;
|
|
1434
1433
|
allowAny = !1;
|
|
1435
|
-
constructor(
|
|
1436
|
-
this.balancedBracketScopes =
|
|
1434
|
+
constructor(l, R) {
|
|
1435
|
+
this.balancedBracketScopes = l.flatMap((l) => l === "*" ? (this.allowAny = !0, []) : createMatchers(l, nameMatcher).map((l) => l.matcher)), this.unbalancedBracketScopes = R.flatMap((l) => createMatchers(l, nameMatcher).map((l) => l.matcher));
|
|
1437
1436
|
}
|
|
1438
1437
|
get matchesAlways() {
|
|
1439
1438
|
return this.allowAny && this.unbalancedBracketScopes.length === 0;
|
|
@@ -1441,14 +1440,14 @@ var Q = class e {
|
|
|
1441
1440
|
get matchesNever() {
|
|
1442
1441
|
return this.balancedBracketScopes.length === 0 && !this.allowAny;
|
|
1443
1442
|
}
|
|
1444
|
-
match(
|
|
1445
|
-
for (let
|
|
1446
|
-
for (let
|
|
1443
|
+
match(l) {
|
|
1444
|
+
for (let R of this.unbalancedBracketScopes) if (R(l)) return !1;
|
|
1445
|
+
for (let R of this.balancedBracketScopes) if (R(l)) return !0;
|
|
1447
1446
|
return this.allowAny;
|
|
1448
1447
|
}
|
|
1449
|
-
},
|
|
1450
|
-
constructor(
|
|
1451
|
-
this.balancedBracketSelectors =
|
|
1448
|
+
}, LineTokens = class {
|
|
1449
|
+
constructor(l, R, z, B) {
|
|
1450
|
+
this.balancedBracketSelectors = B, this._emitBinaryTokens = l, this._tokenTypeOverrides = z, this._lineText = null, this._tokens = [], this._binaryTokens = [], this._lastTokenEndIndex = 0;
|
|
1452
1451
|
}
|
|
1453
1452
|
_emitBinaryTokens;
|
|
1454
1453
|
_lineText;
|
|
@@ -1456,127 +1455,126 @@ var Q = class e {
|
|
|
1456
1455
|
_binaryTokens;
|
|
1457
1456
|
_lastTokenEndIndex;
|
|
1458
1457
|
_tokenTypeOverrides;
|
|
1459
|
-
produce(
|
|
1460
|
-
this.produceFromScopes(
|
|
1458
|
+
produce(l, R) {
|
|
1459
|
+
this.produceFromScopes(l.contentNameScopesList, R);
|
|
1461
1460
|
}
|
|
1462
|
-
produceFromScopes(
|
|
1463
|
-
if (this._lastTokenEndIndex >=
|
|
1461
|
+
produceFromScopes(l, R) {
|
|
1462
|
+
if (this._lastTokenEndIndex >= R) return;
|
|
1464
1463
|
if (this._emitBinaryTokens) {
|
|
1465
|
-
let
|
|
1466
|
-
if (this.balancedBracketSelectors?.matchesAlways && (
|
|
1467
|
-
let
|
|
1468
|
-
for (let
|
|
1469
|
-
this.balancedBracketSelectors && (
|
|
1464
|
+
let z = l?.tokenAttributes ?? 0, B = !1;
|
|
1465
|
+
if (this.balancedBracketSelectors?.matchesAlways && (B = !0), this._tokenTypeOverrides.length > 0 || this.balancedBracketSelectors && !this.balancedBracketSelectors.matchesAlways && !this.balancedBracketSelectors.matchesNever) {
|
|
1466
|
+
let R = l?.getScopeNames() ?? [];
|
|
1467
|
+
for (let l of this._tokenTypeOverrides) l.matcher(R) && (z = EncodedTokenMetadata.set(z, 0, toOptionalTokenType(l.type), null, -1, 0, 0));
|
|
1468
|
+
this.balancedBracketSelectors && (B = this.balancedBracketSelectors.match(R));
|
|
1470
1469
|
}
|
|
1471
|
-
if (
|
|
1472
|
-
this._lastTokenEndIndex =
|
|
1470
|
+
if (B && (z = EncodedTokenMetadata.set(z, 0, 8, B, -1, 0, 0)), this._binaryTokens.length > 0 && this._binaryTokens[this._binaryTokens.length - 1] === z) {
|
|
1471
|
+
this._lastTokenEndIndex = R;
|
|
1473
1472
|
return;
|
|
1474
1473
|
}
|
|
1475
|
-
this._binaryTokens.push(this._lastTokenEndIndex), this._binaryTokens.push(
|
|
1474
|
+
this._binaryTokens.push(this._lastTokenEndIndex), this._binaryTokens.push(z), this._lastTokenEndIndex = R;
|
|
1476
1475
|
return;
|
|
1477
1476
|
}
|
|
1478
|
-
let
|
|
1477
|
+
let z = l?.getScopeNames() ?? [];
|
|
1479
1478
|
this._tokens.push({
|
|
1480
1479
|
startIndex: this._lastTokenEndIndex,
|
|
1481
|
-
endIndex:
|
|
1482
|
-
scopes:
|
|
1483
|
-
}), this._lastTokenEndIndex =
|
|
1480
|
+
endIndex: R,
|
|
1481
|
+
scopes: z
|
|
1482
|
+
}), this._lastTokenEndIndex = R;
|
|
1484
1483
|
}
|
|
1485
|
-
getResult(
|
|
1486
|
-
return this._tokens.length > 0 && this._tokens[this._tokens.length - 1].startIndex ===
|
|
1484
|
+
getResult(l, R) {
|
|
1485
|
+
return this._tokens.length > 0 && this._tokens[this._tokens.length - 1].startIndex === R - 1 && this._tokens.pop(), this._tokens.length === 0 && (this._lastTokenEndIndex = -1, this.produce(l, R), this._tokens[this._tokens.length - 1].startIndex = 0), this._tokens;
|
|
1487
1486
|
}
|
|
1488
|
-
getBinaryResult(
|
|
1489
|
-
this._binaryTokens.length > 0 && this._binaryTokens[this._binaryTokens.length - 2] ===
|
|
1490
|
-
let
|
|
1491
|
-
for (let
|
|
1492
|
-
return
|
|
1487
|
+
getBinaryResult(l, R) {
|
|
1488
|
+
this._binaryTokens.length > 0 && this._binaryTokens[this._binaryTokens.length - 2] === R - 1 && (this._binaryTokens.pop(), this._binaryTokens.pop()), this._binaryTokens.length === 0 && (this._lastTokenEndIndex = -1, this.produce(l, R), this._binaryTokens[this._binaryTokens.length - 2] = 0);
|
|
1489
|
+
let z = new Uint32Array(this._binaryTokens.length);
|
|
1490
|
+
for (let l = 0, R = this._binaryTokens.length; l < R; l++) z[l] = this._binaryTokens[l];
|
|
1491
|
+
return z;
|
|
1493
1492
|
}
|
|
1494
|
-
},
|
|
1495
|
-
constructor(
|
|
1496
|
-
this._onigLib =
|
|
1493
|
+
}, SyncRegistry = class {
|
|
1494
|
+
constructor(l, R) {
|
|
1495
|
+
this._onigLib = R, this._theme = l;
|
|
1497
1496
|
}
|
|
1498
1497
|
_grammars = /* @__PURE__ */ new Map();
|
|
1499
1498
|
_rawGrammars = /* @__PURE__ */ new Map();
|
|
1500
1499
|
_injectionGrammars = /* @__PURE__ */ new Map();
|
|
1501
1500
|
_theme;
|
|
1502
1501
|
dispose() {
|
|
1503
|
-
for (let
|
|
1502
|
+
for (let l of this._grammars.values()) l.dispose();
|
|
1504
1503
|
}
|
|
1505
|
-
setTheme(
|
|
1506
|
-
this._theme =
|
|
1504
|
+
setTheme(l) {
|
|
1505
|
+
this._theme = l;
|
|
1507
1506
|
}
|
|
1508
1507
|
getColorMap() {
|
|
1509
1508
|
return this._theme.getColorMap();
|
|
1510
1509
|
}
|
|
1511
|
-
addGrammar(
|
|
1512
|
-
this._rawGrammars.set(
|
|
1510
|
+
addGrammar(l, R) {
|
|
1511
|
+
this._rawGrammars.set(l.scopeName, l), R && this._injectionGrammars.set(l.scopeName, R);
|
|
1513
1512
|
}
|
|
1514
|
-
lookup(
|
|
1515
|
-
return this._rawGrammars.get(
|
|
1513
|
+
lookup(l) {
|
|
1514
|
+
return this._rawGrammars.get(l);
|
|
1516
1515
|
}
|
|
1517
|
-
injections(
|
|
1518
|
-
return this._injectionGrammars.get(
|
|
1516
|
+
injections(l) {
|
|
1517
|
+
return this._injectionGrammars.get(l);
|
|
1519
1518
|
}
|
|
1520
1519
|
getDefaults() {
|
|
1521
1520
|
return this._theme.getDefaults();
|
|
1522
1521
|
}
|
|
1523
|
-
themeMatch(
|
|
1524
|
-
return this._theme.match(
|
|
1522
|
+
themeMatch(l) {
|
|
1523
|
+
return this._theme.match(l);
|
|
1525
1524
|
}
|
|
1526
|
-
grammarForScopeName(
|
|
1527
|
-
if (!this._grammars.has(
|
|
1528
|
-
let
|
|
1529
|
-
if (!
|
|
1530
|
-
this._grammars.set(
|
|
1525
|
+
grammarForScopeName(l, R, z, B, V) {
|
|
1526
|
+
if (!this._grammars.has(l)) {
|
|
1527
|
+
let H = this._rawGrammars.get(l);
|
|
1528
|
+
if (!H) return null;
|
|
1529
|
+
this._grammars.set(l, createGrammar(l, H, R, z, B, V, this, this._onigLib));
|
|
1531
1530
|
}
|
|
1532
|
-
return this._grammars.get(
|
|
1531
|
+
return this._grammars.get(l);
|
|
1533
1532
|
}
|
|
1534
|
-
},
|
|
1533
|
+
}, Registry = class {
|
|
1535
1534
|
_options;
|
|
1536
1535
|
_syncRegistry;
|
|
1537
1536
|
_ensureGrammarCache;
|
|
1538
|
-
constructor(
|
|
1539
|
-
this._options =
|
|
1537
|
+
constructor(l) {
|
|
1538
|
+
this._options = l, this._syncRegistry = new SyncRegistry(Theme.createFromRawTheme(l.theme, l.colorMap), l.onigLib), this._ensureGrammarCache = /* @__PURE__ */ new Map();
|
|
1540
1539
|
}
|
|
1541
1540
|
dispose() {
|
|
1542
1541
|
this._syncRegistry.dispose();
|
|
1543
1542
|
}
|
|
1544
|
-
setTheme(
|
|
1545
|
-
this._syncRegistry.setTheme(
|
|
1543
|
+
setTheme(l, R) {
|
|
1544
|
+
this._syncRegistry.setTheme(Theme.createFromRawTheme(l, R));
|
|
1546
1545
|
}
|
|
1547
1546
|
getColorMap() {
|
|
1548
1547
|
return this._syncRegistry.getColorMap();
|
|
1549
1548
|
}
|
|
1550
|
-
loadGrammarWithEmbeddedLanguages(
|
|
1551
|
-
return this.loadGrammarWithConfiguration(
|
|
1549
|
+
loadGrammarWithEmbeddedLanguages(l, R, z) {
|
|
1550
|
+
return this.loadGrammarWithConfiguration(l, R, { embeddedLanguages: z });
|
|
1552
1551
|
}
|
|
1553
|
-
loadGrammarWithConfiguration(
|
|
1554
|
-
return this._loadGrammar(
|
|
1552
|
+
loadGrammarWithConfiguration(l, R, z) {
|
|
1553
|
+
return this._loadGrammar(l, R, z.embeddedLanguages, z.tokenTypes, new BalancedBracketSelectors(z.balancedBracketSelectors || [], z.unbalancedBracketSelectors || []));
|
|
1555
1554
|
}
|
|
1556
|
-
loadGrammar(
|
|
1557
|
-
return this._loadGrammar(
|
|
1555
|
+
loadGrammar(l) {
|
|
1556
|
+
return this._loadGrammar(l, 0, null, null, null);
|
|
1558
1557
|
}
|
|
1559
|
-
_loadGrammar(
|
|
1560
|
-
let
|
|
1561
|
-
for (;
|
|
1562
|
-
return this._grammarForScopeName(
|
|
1558
|
+
_loadGrammar(l, R, z, B, V) {
|
|
1559
|
+
let H = new ScopeDependencyProcessor(this._syncRegistry, l);
|
|
1560
|
+
for (; H.Q.length > 0;) H.Q.map((l) => this._loadSingleGrammar(l.scopeName)), H.processQueue();
|
|
1561
|
+
return this._grammarForScopeName(l, R, z, B, V);
|
|
1563
1562
|
}
|
|
1564
|
-
_loadSingleGrammar(
|
|
1565
|
-
this._ensureGrammarCache.has(
|
|
1563
|
+
_loadSingleGrammar(l) {
|
|
1564
|
+
this._ensureGrammarCache.has(l) || (this._doLoadSingleGrammar(l), this._ensureGrammarCache.set(l, !0));
|
|
1566
1565
|
}
|
|
1567
|
-
_doLoadSingleGrammar(
|
|
1568
|
-
let
|
|
1569
|
-
if (
|
|
1570
|
-
let
|
|
1571
|
-
this._syncRegistry.addGrammar(
|
|
1566
|
+
_doLoadSingleGrammar(l) {
|
|
1567
|
+
let R = this._options.loadGrammar(l);
|
|
1568
|
+
if (R) {
|
|
1569
|
+
let z = typeof this._options.getInjections == "function" ? this._options.getInjections(l) : void 0;
|
|
1570
|
+
this._syncRegistry.addGrammar(R, z);
|
|
1572
1571
|
}
|
|
1573
1572
|
}
|
|
1574
|
-
addGrammar(
|
|
1575
|
-
return this._syncRegistry.addGrammar(
|
|
1573
|
+
addGrammar(l, R = [], z = 0, B = null) {
|
|
1574
|
+
return this._syncRegistry.addGrammar(l, R), this._grammarForScopeName(l.scopeName, z, B);
|
|
1576
1575
|
}
|
|
1577
|
-
_grammarForScopeName(
|
|
1578
|
-
return this._syncRegistry.grammarForScopeName(
|
|
1576
|
+
_grammarForScopeName(l, R = 0, z = null, B = null, V = null) {
|
|
1577
|
+
return this._syncRegistry.grammarForScopeName(l, R, z, B, V);
|
|
1579
1578
|
}
|
|
1580
|
-
},
|
|
1581
|
-
|
|
1582
|
-
export { b as EncodedTokenMetadata, v as FontStyle, Ie as INITIAL, Fe as Registry, p as Theme };
|
|
1579
|
+
}, INITIAL = StateStackImpl.NULL;
|
|
1580
|
+
export { EncodedTokenMetadata, FontStyle, INITIAL, Registry, Theme };
|