@loopstack/loopstack-studio 0.25.1 → 0.25.2
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/index.js +19 -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 +31 -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 +198 -138
- package/dist/components/data-table/DataTable.js +234 -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 +202 -132
- 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 +15 -17
- 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 +26 -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 +2 -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 +68 -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 +77 -73
- 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/SecretInputRenderer.js +35 -37
- package/dist/features/documents/renderers/TextPromptRenderer.js +54 -45
- package/dist/features/documents/renderers/useDocumentTransition.js +7 -9
- 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 +197 -148
- 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/workbench/Workbench.js +98 -72
- package/dist/features/workbench/WorkflowItem.js +68 -49
- package/dist/features/workbench/WorkflowList.js +66 -51
- package/dist/features/workbench/components/NewRunDialog.js +309 -212
- package/dist/features/workbench/components/RemoteFileTabsBar.js +17 -18
- package/dist/features/workbench/components/RemoteFileTree.js +85 -54
- package/dist/features/workbench/components/WorkbenchFilesPanel.js +63 -52
- package/dist/features/workbench/components/WorkbenchFloatingPanel.js +51 -34
- package/dist/features/workbench/components/WorkbenchFlowPanel.js +44 -35
- package/dist/features/workbench/components/WorkbenchIconSidebar.js +68 -50
- package/dist/features/workbench/components/WorkbenchPreviewPanel.js +49 -51
- package/dist/features/workbench/components/WorkbenchSecretsPanel.js +172 -143
- package/dist/features/workbench/components/WorkbenchSettingsModal.js +60 -49
- 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 +7 -7
- package/dist/features/workbench/providers/RemoteFileExplorerProvider.js +138 -123
- package/dist/features/workbench/providers/ScrollProvider.js +19 -15
- package/dist/features/workbench/providers/WorkbenchLayoutProvider.js +75 -76
- package/dist/features/workspaces/Workspaces.js +226 -161
- package/dist/features/workspaces/components/CreateWorkspace.js +194 -137
- package/dist/features/workspaces/components/EnvironmentSlotSelector.js +25 -27
- 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 +80 -59
- 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/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/useFiles.js +2 -1
- package/dist/hooks/useProcessor.js +17 -14
- package/dist/hooks/useSecrets.js +64 -45
- package/dist/hooks/useWorkflows.js +161 -109
- package/dist/hooks/useWorkspaces.js +123 -83
- package/dist/index.d.ts +1304 -0
- package/dist/index.js +80 -80
- package/dist/lib/requireParam.js +2 -4
- package/dist/lib/utils.js +5 -7
- 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/@dagrejs/dagre/dist/dagre.esm.js +1913 -1812
- 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 +1119 -583
- package/dist/node_modules/@shikijs/engine-oniguruma/dist/index.js +148 -163
- 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/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 +11 -13
- package/dist/node_modules/shiki/dist/{langs-bundle-full-DfKZStlK.js → langs.js} +6 -8
- package/dist/node_modules/shiki/dist/themes.js +4 -6
- 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 +99 -55
- package/dist/pages/DebugPage.js +17 -12
- package/dist/pages/DebugWorkflowDetailsPage.js +119 -91
- package/dist/pages/DebugWorkflowsPage.js +37 -39
- package/dist/pages/EmbedWorkbenchPage.js +62 -48
- package/dist/pages/PreviewWorkbenchPage.js +324 -243
- package/dist/pages/RunsListPage.js +61 -44
- package/dist/pages/RunsPage.js +48 -31
- package/dist/pages/StudioLandingPage.js +132 -97
- package/dist/pages/WorkbenchPage.js +86 -56
- package/dist/pages/WorkflowDebugPage.js +110 -74
- package/dist/pages/WorkspacePage.js +115 -72
- package/dist/pages/WorkspaceRunsPage.js +70 -43
- package/dist/pages/WorkspacesPage.js +35 -24
- 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/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 +33 -33
- package/dist/_virtual/_rolldown/runtime.js +0 -20
- 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/@shikijs/primitive/dist/index.js +0 -540
- package/dist/node_modules/shiki/dist/chunk-CtajNgzt.js +0 -17
- package/dist/node_modules/shiki/dist/engine-oniguruma.js +0 -7
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
function e() {
|
|
1
|
+
function L() {
|
|
3
2
|
return {
|
|
4
3
|
async: !1,
|
|
5
4
|
breaks: !1,
|
|
@@ -13,28 +12,28 @@ function e() {
|
|
|
13
12
|
walkTokens: null
|
|
14
13
|
};
|
|
15
14
|
}
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
|
|
15
|
+
var T = L();
|
|
16
|
+
function G(e) {
|
|
17
|
+
T = e;
|
|
19
18
|
}
|
|
20
|
-
var
|
|
21
|
-
function
|
|
22
|
-
let
|
|
23
|
-
replace: (e,
|
|
24
|
-
let
|
|
25
|
-
return
|
|
19
|
+
var E = { exec: () => null };
|
|
20
|
+
function d(e, l = "") {
|
|
21
|
+
let u = typeof e == "string" ? e : e.source, f = {
|
|
22
|
+
replace: (e, l) => {
|
|
23
|
+
let p = typeof l == "string" ? l : l.source;
|
|
24
|
+
return p = p.replace(m.caret, "$1"), u = u.replace(e, p), f;
|
|
26
25
|
},
|
|
27
|
-
getRegex: () => new RegExp(
|
|
26
|
+
getRegex: () => new RegExp(u, l)
|
|
28
27
|
};
|
|
29
|
-
return
|
|
28
|
+
return f;
|
|
30
29
|
}
|
|
31
|
-
var
|
|
30
|
+
var be = (() => {
|
|
32
31
|
try {
|
|
33
32
|
return !0;
|
|
34
33
|
} catch {
|
|
35
34
|
return !1;
|
|
36
35
|
}
|
|
37
|
-
})(),
|
|
36
|
+
})(), m = {
|
|
38
37
|
codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
|
|
39
38
|
outputLinkReplace: /\\([\[\]])/g,
|
|
40
39
|
indentCodeCompensation: /^(\s+)(?:```)/,
|
|
@@ -85,526 +84,526 @@ var a = (() => {
|
|
|
85
84
|
spaceLine: /^ +$/gm,
|
|
86
85
|
notSpaceStart: /^\S*/,
|
|
87
86
|
endingNewline: /\n$/,
|
|
88
|
-
listItemRegex: (e) => RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),
|
|
89
|
-
nextBulletRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),
|
|
90
|
-
hrRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),
|
|
91
|
-
fencesBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}(?:\`\`\`|~~~)`),
|
|
92
|
-
headingBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
|
|
87
|
+
listItemRegex: (e) => /* @__PURE__ */ RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),
|
|
88
|
+
nextBulletRegex: (e) => /* @__PURE__ */ RegExp(`^ {0,${Math.min(3, e - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),
|
|
89
|
+
hrRegex: (e) => /* @__PURE__ */ RegExp(`^ {0,${Math.min(3, e - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),
|
|
90
|
+
fencesBeginRegex: (e) => /* @__PURE__ */ RegExp(`^ {0,${Math.min(3, e - 1)}}(?:\`\`\`|~~~)`),
|
|
91
|
+
headingBeginRegex: (e) => /* @__PURE__ */ RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
|
|
93
92
|
htmlBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i")
|
|
94
|
-
},
|
|
95
|
-
blockquote:
|
|
96
|
-
code:
|
|
97
|
-
def:
|
|
98
|
-
fences:
|
|
99
|
-
heading:
|
|
100
|
-
hr:
|
|
101
|
-
html:
|
|
102
|
-
lheading:
|
|
103
|
-
list:
|
|
104
|
-
newline:
|
|
105
|
-
paragraph:
|
|
106
|
-
table:
|
|
107
|
-
text:
|
|
108
|
-
},
|
|
109
|
-
...
|
|
110
|
-
lheading:
|
|
111
|
-
table:
|
|
112
|
-
paragraph:
|
|
113
|
-
},
|
|
114
|
-
...
|
|
115
|
-
html:
|
|
93
|
+
}, Re = /^(?:[ \t]*(?:\n|$))+/, Te = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Oe = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, I = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, we = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, F = /(?:[*+-]|\d{1,9}[.)])/, ie = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, oe = d(ie).replace(/bull/g, F).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), ye = d(ie).replace(/bull/g, F).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), j = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Pe = /^[^\n]+/, Q = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Se = d(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Q).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), $e = d(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, F).getRegex(), v = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", U = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, _e = d("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", U).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ae = d(j).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), K = {
|
|
94
|
+
blockquote: d(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ae).getRegex(),
|
|
95
|
+
code: Te,
|
|
96
|
+
def: Se,
|
|
97
|
+
fences: Oe,
|
|
98
|
+
heading: we,
|
|
99
|
+
hr: I,
|
|
100
|
+
html: _e,
|
|
101
|
+
lheading: oe,
|
|
102
|
+
list: $e,
|
|
103
|
+
newline: Re,
|
|
104
|
+
paragraph: ae,
|
|
105
|
+
table: E,
|
|
106
|
+
text: Pe
|
|
107
|
+
}, re = d("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), Me = {
|
|
108
|
+
...K,
|
|
109
|
+
lheading: ye,
|
|
110
|
+
table: re,
|
|
111
|
+
paragraph: d(j).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", re).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex()
|
|
112
|
+
}, ze = {
|
|
113
|
+
...K,
|
|
114
|
+
html: d("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", U).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
116
115
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
117
116
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
118
|
-
fences:
|
|
117
|
+
fences: E,
|
|
119
118
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
120
|
-
paragraph:
|
|
121
|
-
},
|
|
122
|
-
_backpedal:
|
|
123
|
-
anyPunctuation:
|
|
124
|
-
autolink:
|
|
125
|
-
blockSkip:
|
|
126
|
-
br:
|
|
127
|
-
code:
|
|
128
|
-
del:
|
|
129
|
-
emStrongLDelim:
|
|
130
|
-
emStrongRDelimAst:
|
|
131
|
-
emStrongRDelimUnd:
|
|
132
|
-
escape:
|
|
133
|
-
link:
|
|
134
|
-
nolink:
|
|
135
|
-
punctuation:
|
|
136
|
-
reflink:
|
|
137
|
-
reflinkSearch:
|
|
138
|
-
tag:
|
|
139
|
-
text:
|
|
140
|
-
url:
|
|
141
|
-
},
|
|
142
|
-
...
|
|
143
|
-
link:
|
|
144
|
-
reflink:
|
|
145
|
-
},
|
|
146
|
-
...
|
|
147
|
-
emStrongRDelimAst:
|
|
148
|
-
emStrongLDelim:
|
|
149
|
-
url:
|
|
119
|
+
paragraph: d(j).replace("hr", I).replace("heading", " *#{1,6} *[^\n]").replace("lheading", oe).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
120
|
+
}, Ae = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ee = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, le = /^( {2,}|\\)\n(?!\s*$)/, Ie = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, D = /[\p{P}\p{S}]/u, W = /[\s\p{P}\p{S}]/u, ue = /[^\s\p{P}\p{S}]/u, Ce = d(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex(), pe = /(?!~)[\p{P}\p{S}]/u, Be = /(?!~)[\s\p{P}\p{S}]/u, qe = /(?:[^\s\p{P}\p{S}]|~)/u, ve = d(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", be ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ce = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, De = d(ce, "u").replace(/punct/g, D).getRegex(), He = d(ce, "u").replace(/punct/g, pe).getRegex(), he = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Ze = d(he, "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ge = d(he, "gu").replace(/notPunctSpace/g, qe).replace(/punctSpace/g, Be).replace(/punct/g, pe).getRegex(), Ne = d("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Fe = d(/\\(punct)/, "gu").replace(/punct/g, D).getRegex(), je = d(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Qe = d(U).replace("(?:-->|$)", "-->").getRegex(), Ue = d("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Qe).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, Ke = d(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), de = d(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", Q).getRegex(), ke = d(/^!?\[(ref)\](?:\[\])?/).replace("ref", Q).getRegex(), We = d("reflink|nolink(?!\\()", "g").replace("reflink", de).replace("nolink", ke).getRegex(), se = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, X = {
|
|
121
|
+
_backpedal: E,
|
|
122
|
+
anyPunctuation: Fe,
|
|
123
|
+
autolink: je,
|
|
124
|
+
blockSkip: ve,
|
|
125
|
+
br: le,
|
|
126
|
+
code: Ee,
|
|
127
|
+
del: E,
|
|
128
|
+
emStrongLDelim: De,
|
|
129
|
+
emStrongRDelimAst: Ze,
|
|
130
|
+
emStrongRDelimUnd: Ne,
|
|
131
|
+
escape: Ae,
|
|
132
|
+
link: Ke,
|
|
133
|
+
nolink: ke,
|
|
134
|
+
punctuation: Ce,
|
|
135
|
+
reflink: de,
|
|
136
|
+
reflinkSearch: We,
|
|
137
|
+
tag: Ue,
|
|
138
|
+
text: Ie,
|
|
139
|
+
url: E
|
|
140
|
+
}, Xe = {
|
|
141
|
+
...X,
|
|
142
|
+
link: d(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(),
|
|
143
|
+
reflink: d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex()
|
|
144
|
+
}, N = {
|
|
145
|
+
...X,
|
|
146
|
+
emStrongRDelimAst: Ge,
|
|
147
|
+
emStrongLDelim: He,
|
|
148
|
+
url: d(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", se).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
150
149
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
151
150
|
del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
|
|
152
|
-
text:
|
|
153
|
-
},
|
|
154
|
-
...
|
|
155
|
-
br:
|
|
156
|
-
text:
|
|
157
|
-
},
|
|
158
|
-
normal:
|
|
159
|
-
gfm:
|
|
160
|
-
pedantic:
|
|
161
|
-
},
|
|
162
|
-
normal:
|
|
163
|
-
gfm:
|
|
164
|
-
breaks:
|
|
165
|
-
pedantic:
|
|
166
|
-
},
|
|
151
|
+
text: d(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", se).getRegex()
|
|
152
|
+
}, Je = {
|
|
153
|
+
...N,
|
|
154
|
+
br: d(le).replace("{2,}", "*").getRegex(),
|
|
155
|
+
text: d(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
156
|
+
}, C = {
|
|
157
|
+
normal: K,
|
|
158
|
+
gfm: Me,
|
|
159
|
+
pedantic: ze
|
|
160
|
+
}, M = {
|
|
161
|
+
normal: X,
|
|
162
|
+
gfm: N,
|
|
163
|
+
breaks: Je,
|
|
164
|
+
pedantic: Xe
|
|
165
|
+
}, Ve = {
|
|
167
166
|
"&": "&",
|
|
168
167
|
"<": "<",
|
|
169
168
|
">": ">",
|
|
170
169
|
"\"": """,
|
|
171
170
|
"'": "'"
|
|
172
|
-
},
|
|
173
|
-
function
|
|
174
|
-
if (
|
|
175
|
-
if (
|
|
176
|
-
} else if (
|
|
171
|
+
}, ge = (e) => Ve[e];
|
|
172
|
+
function w(e, l) {
|
|
173
|
+
if (l) {
|
|
174
|
+
if (m.escapeTest.test(e)) return e.replace(m.escapeReplace, ge);
|
|
175
|
+
} else if (m.escapeTestNoEncode.test(e)) return e.replace(m.escapeReplaceNoEncode, ge);
|
|
177
176
|
return e;
|
|
178
177
|
}
|
|
179
|
-
function
|
|
178
|
+
function J(e) {
|
|
180
179
|
try {
|
|
181
|
-
e = encodeURI(e).replace(
|
|
180
|
+
e = encodeURI(e).replace(m.percentDecode, "%");
|
|
182
181
|
} catch {
|
|
183
182
|
return null;
|
|
184
183
|
}
|
|
185
184
|
return e;
|
|
186
185
|
}
|
|
187
|
-
function
|
|
188
|
-
let
|
|
189
|
-
let
|
|
190
|
-
for (; --
|
|
191
|
-
return
|
|
192
|
-
}).split(
|
|
193
|
-
if (
|
|
194
|
-
else for (;
|
|
195
|
-
for (;
|
|
196
|
-
return
|
|
186
|
+
function V(e, l) {
|
|
187
|
+
let u = e.replace(m.findPipe, (e, l, u) => {
|
|
188
|
+
let f = !1, p = l;
|
|
189
|
+
for (; --p >= 0 && u[p] === "\\";) f = !f;
|
|
190
|
+
return f ? "|" : " |";
|
|
191
|
+
}).split(m.splitPipe), f = 0;
|
|
192
|
+
if (u[0].trim() || u.shift(), u.length > 0 && !u.at(-1)?.trim() && u.pop(), l) if (u.length > l) u.splice(l);
|
|
193
|
+
else for (; u.length < l;) u.push("");
|
|
194
|
+
for (; f < u.length; f++) u[f] = u[f].trim().replace(m.slashPipe, "|");
|
|
195
|
+
return u;
|
|
197
196
|
}
|
|
198
|
-
function
|
|
199
|
-
let
|
|
200
|
-
if (
|
|
201
|
-
let
|
|
202
|
-
for (;
|
|
203
|
-
let
|
|
204
|
-
if (
|
|
205
|
-
else if (
|
|
197
|
+
function z(e, l, u) {
|
|
198
|
+
let f = e.length;
|
|
199
|
+
if (f === 0) return "";
|
|
200
|
+
let p = 0;
|
|
201
|
+
for (; p < f;) {
|
|
202
|
+
let h = e.charAt(f - p - 1);
|
|
203
|
+
if (h === l && !u) p++;
|
|
204
|
+
else if (h !== l && u) p++;
|
|
206
205
|
else break;
|
|
207
206
|
}
|
|
208
|
-
return e.slice(0,
|
|
207
|
+
return e.slice(0, f - p);
|
|
209
208
|
}
|
|
210
|
-
function
|
|
211
|
-
if (e.indexOf(
|
|
212
|
-
let
|
|
213
|
-
for (let
|
|
214
|
-
else if (e[
|
|
215
|
-
else if (e[
|
|
216
|
-
return
|
|
209
|
+
function fe(e, l) {
|
|
210
|
+
if (e.indexOf(l[1]) === -1) return -1;
|
|
211
|
+
let u = 0;
|
|
212
|
+
for (let f = 0; f < e.length; f++) if (e[f] === "\\") f++;
|
|
213
|
+
else if (e[f] === l[0]) u++;
|
|
214
|
+
else if (e[f] === l[1] && (u--, u < 0)) return f;
|
|
215
|
+
return u > 0 ? -2 : -1;
|
|
217
216
|
}
|
|
218
|
-
function
|
|
219
|
-
let
|
|
220
|
-
|
|
221
|
-
let
|
|
217
|
+
function me(e, l, u, f, p) {
|
|
218
|
+
let h = l.href, g = l.title || null, O = e[1].replace(p.other.outputLinkReplace, "$1");
|
|
219
|
+
f.state.inLink = !0;
|
|
220
|
+
let A = {
|
|
222
221
|
type: e[0].charAt(0) === "!" ? "image" : "link",
|
|
223
|
-
raw:
|
|
224
|
-
href:
|
|
225
|
-
title:
|
|
226
|
-
text:
|
|
227
|
-
tokens:
|
|
222
|
+
raw: u,
|
|
223
|
+
href: h,
|
|
224
|
+
title: g,
|
|
225
|
+
text: O,
|
|
226
|
+
tokens: f.inlineTokens(O)
|
|
228
227
|
};
|
|
229
|
-
return
|
|
228
|
+
return f.state.inLink = !1, A;
|
|
230
229
|
}
|
|
231
|
-
function
|
|
232
|
-
let
|
|
233
|
-
if (
|
|
234
|
-
let
|
|
235
|
-
return
|
|
236
|
-
let
|
|
237
|
-
if (
|
|
238
|
-
let [
|
|
239
|
-
return
|
|
230
|
+
function Ye(e, l, u) {
|
|
231
|
+
let f = e.match(u.other.indentCodeCompensation);
|
|
232
|
+
if (f === null) return l;
|
|
233
|
+
let p = f[1];
|
|
234
|
+
return l.split("\n").map((e) => {
|
|
235
|
+
let l = e.match(u.other.beginningSpace);
|
|
236
|
+
if (l === null) return e;
|
|
237
|
+
let [f] = l;
|
|
238
|
+
return f.length >= p.length ? e.slice(p.length) : e;
|
|
240
239
|
}).join("\n");
|
|
241
240
|
}
|
|
242
|
-
var
|
|
241
|
+
var y = class {
|
|
243
242
|
options;
|
|
244
243
|
rules;
|
|
245
244
|
lexer;
|
|
246
245
|
constructor(e) {
|
|
247
|
-
this.options = e ||
|
|
246
|
+
this.options = e || T;
|
|
248
247
|
}
|
|
249
248
|
space(e) {
|
|
250
|
-
let
|
|
251
|
-
if (
|
|
249
|
+
let l = this.rules.block.newline.exec(e);
|
|
250
|
+
if (l && l[0].length > 0) return {
|
|
252
251
|
type: "space",
|
|
253
|
-
raw:
|
|
252
|
+
raw: l[0]
|
|
254
253
|
};
|
|
255
254
|
}
|
|
256
255
|
code(e) {
|
|
257
|
-
let
|
|
258
|
-
if (
|
|
259
|
-
let e =
|
|
256
|
+
let l = this.rules.block.code.exec(e);
|
|
257
|
+
if (l) {
|
|
258
|
+
let e = l[0].replace(this.rules.other.codeRemoveIndent, "");
|
|
260
259
|
return {
|
|
261
260
|
type: "code",
|
|
262
|
-
raw:
|
|
261
|
+
raw: l[0],
|
|
263
262
|
codeBlockStyle: "indented",
|
|
264
|
-
text: this.options.pedantic ? e :
|
|
263
|
+
text: this.options.pedantic ? e : z(e, "\n")
|
|
265
264
|
};
|
|
266
265
|
}
|
|
267
266
|
}
|
|
268
267
|
fences(e) {
|
|
269
|
-
let
|
|
270
|
-
if (
|
|
271
|
-
let e =
|
|
268
|
+
let l = this.rules.block.fences.exec(e);
|
|
269
|
+
if (l) {
|
|
270
|
+
let e = l[0], u = Ye(e, l[3] || "", this.rules);
|
|
272
271
|
return {
|
|
273
272
|
type: "code",
|
|
274
273
|
raw: e,
|
|
275
|
-
lang:
|
|
276
|
-
text:
|
|
274
|
+
lang: l[2] ? l[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : l[2],
|
|
275
|
+
text: u
|
|
277
276
|
};
|
|
278
277
|
}
|
|
279
278
|
}
|
|
280
279
|
heading(e) {
|
|
281
|
-
let
|
|
282
|
-
if (
|
|
283
|
-
let e =
|
|
280
|
+
let l = this.rules.block.heading.exec(e);
|
|
281
|
+
if (l) {
|
|
282
|
+
let e = l[2].trim();
|
|
284
283
|
if (this.rules.other.endingHash.test(e)) {
|
|
285
|
-
let
|
|
286
|
-
(this.options.pedantic || !
|
|
284
|
+
let l = z(e, "#");
|
|
285
|
+
(this.options.pedantic || !l || this.rules.other.endingSpaceChar.test(l)) && (e = l.trim());
|
|
287
286
|
}
|
|
288
287
|
return {
|
|
289
288
|
type: "heading",
|
|
290
|
-
raw:
|
|
291
|
-
depth:
|
|
289
|
+
raw: l[0],
|
|
290
|
+
depth: l[1].length,
|
|
292
291
|
text: e,
|
|
293
292
|
tokens: this.lexer.inline(e)
|
|
294
293
|
};
|
|
295
294
|
}
|
|
296
295
|
}
|
|
297
296
|
hr(e) {
|
|
298
|
-
let
|
|
299
|
-
if (
|
|
297
|
+
let l = this.rules.block.hr.exec(e);
|
|
298
|
+
if (l) return {
|
|
300
299
|
type: "hr",
|
|
301
|
-
raw:
|
|
300
|
+
raw: z(l[0], "\n")
|
|
302
301
|
};
|
|
303
302
|
}
|
|
304
303
|
blockquote(e) {
|
|
305
|
-
let
|
|
306
|
-
if (
|
|
307
|
-
let e =
|
|
304
|
+
let l = this.rules.block.blockquote.exec(e);
|
|
305
|
+
if (l) {
|
|
306
|
+
let e = z(l[0], "\n").split("\n"), u = "", f = "", p = [];
|
|
308
307
|
for (; e.length > 0;) {
|
|
309
|
-
let
|
|
310
|
-
for (
|
|
311
|
-
else if (!
|
|
308
|
+
let l = !1, h = [], g;
|
|
309
|
+
for (g = 0; g < e.length; g++) if (this.rules.other.blockquoteStart.test(e[g])) h.push(e[g]), l = !0;
|
|
310
|
+
else if (!l) h.push(e[g]);
|
|
312
311
|
else break;
|
|
313
|
-
e = e.slice(
|
|
314
|
-
let
|
|
315
|
-
|
|
316
|
-
${
|
|
317
|
-
${
|
|
318
|
-
let
|
|
319
|
-
if (this.lexer.state.top = !0, this.lexer.blockTokens(
|
|
320
|
-
let
|
|
321
|
-
if (
|
|
322
|
-
if (
|
|
323
|
-
let
|
|
324
|
-
|
|
312
|
+
e = e.slice(g);
|
|
313
|
+
let O = h.join("\n"), A = O.replace(this.rules.other.blockquoteSetextReplace, "\n $1").replace(this.rules.other.blockquoteSetextReplace2, "");
|
|
314
|
+
u = u ? `${u}
|
|
315
|
+
${O}` : O, f = f ? `${f}
|
|
316
|
+
${A}` : A;
|
|
317
|
+
let R = this.lexer.state.top;
|
|
318
|
+
if (this.lexer.state.top = !0, this.lexer.blockTokens(A, p, !0), this.lexer.state.top = R, e.length === 0) break;
|
|
319
|
+
let B = p.at(-1);
|
|
320
|
+
if (B?.type === "code") break;
|
|
321
|
+
if (B?.type === "blockquote") {
|
|
322
|
+
let l = B, h = l.raw + "\n" + e.join("\n"), g = this.blockquote(h);
|
|
323
|
+
p[p.length - 1] = g, u = u.substring(0, u.length - l.raw.length) + g.raw, f = f.substring(0, f.length - l.text.length) + g.text;
|
|
325
324
|
break;
|
|
326
|
-
} else if (
|
|
327
|
-
let
|
|
328
|
-
|
|
325
|
+
} else if (B?.type === "list") {
|
|
326
|
+
let l = B, h = l.raw + "\n" + e.join("\n"), g = this.list(h);
|
|
327
|
+
p[p.length - 1] = g, u = u.substring(0, u.length - B.raw.length) + g.raw, f = f.substring(0, f.length - l.raw.length) + g.raw, e = h.substring(p.at(-1).raw.length).split("\n");
|
|
329
328
|
continue;
|
|
330
329
|
}
|
|
331
330
|
}
|
|
332
331
|
return {
|
|
333
332
|
type: "blockquote",
|
|
334
|
-
raw:
|
|
335
|
-
tokens:
|
|
336
|
-
text:
|
|
333
|
+
raw: u,
|
|
334
|
+
tokens: p,
|
|
335
|
+
text: f
|
|
337
336
|
};
|
|
338
337
|
}
|
|
339
338
|
}
|
|
340
339
|
list(e) {
|
|
341
|
-
let
|
|
342
|
-
if (
|
|
343
|
-
let
|
|
340
|
+
let l = this.rules.block.list.exec(e);
|
|
341
|
+
if (l) {
|
|
342
|
+
let u = l[1].trim(), f = u.length > 1, p = {
|
|
344
343
|
type: "list",
|
|
345
344
|
raw: "",
|
|
346
|
-
ordered:
|
|
347
|
-
start:
|
|
345
|
+
ordered: f,
|
|
346
|
+
start: f ? +u.slice(0, -1) : "",
|
|
348
347
|
loose: !1,
|
|
349
348
|
items: []
|
|
350
349
|
};
|
|
351
|
-
|
|
352
|
-
let
|
|
350
|
+
u = f ? `\\d{1,9}\\${u.slice(-1)}` : `\\${u}`, this.options.pedantic && (u = f ? u : "[*+-]");
|
|
351
|
+
let h = this.rules.other.listItemRegex(u), g = !1;
|
|
353
352
|
for (; e;) {
|
|
354
|
-
let
|
|
355
|
-
if (!(
|
|
356
|
-
|
|
357
|
-
let
|
|
358
|
-
if (this.options.pedantic ? (
|
|
359
|
-
let
|
|
353
|
+
let u = !1, f = "", O = "";
|
|
354
|
+
if (!(l = h.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
355
|
+
f = l[0], e = e.substring(f.length);
|
|
356
|
+
let A = l[2].split("\n", 1)[0].replace(this.rules.other.listReplaceTabs, (e) => " ".repeat(3 * e.length)), R = e.split("\n", 1)[0], B = !A.trim(), H = 0;
|
|
357
|
+
if (this.options.pedantic ? (H = 2, O = A.trimStart()) : B ? H = l[1].length + 1 : (H = l[2].search(this.rules.other.nonSpaceChar), H = H > 4 ? 1 : H, O = A.slice(H), H += l[1].length), B && this.rules.other.blankLine.test(R) && (f += R + "\n", e = e.substring(R.length + 1), u = !0), !u) {
|
|
358
|
+
let l = this.rules.other.nextBulletRegex(H), u = this.rules.other.hrRegex(H), p = this.rules.other.fencesBeginRegex(H), h = this.rules.other.headingBeginRegex(H), g = this.rules.other.htmlBeginRegex(H);
|
|
360
359
|
for (; e;) {
|
|
361
|
-
let
|
|
362
|
-
if (
|
|
363
|
-
if (
|
|
360
|
+
let Y = e.split("\n", 1)[0], Z;
|
|
361
|
+
if (R = Y, this.options.pedantic ? (R = R.replace(this.rules.other.listReplaceNesting, " "), Z = R) : Z = R.replace(this.rules.other.tabCharGlobal, " "), p.test(R) || h.test(R) || g.test(R) || l.test(R) || u.test(R)) break;
|
|
362
|
+
if (Z.search(this.rules.other.nonSpaceChar) >= H || !R.trim()) O += "\n" + Z.slice(H);
|
|
364
363
|
else {
|
|
365
|
-
if (
|
|
366
|
-
|
|
364
|
+
if (B || A.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || p.test(A) || h.test(A) || u.test(A)) break;
|
|
365
|
+
O += "\n" + R;
|
|
367
366
|
}
|
|
368
|
-
!
|
|
367
|
+
!B && !R.trim() && (B = !0), f += Y + "\n", e = e.substring(Y.length + 1), A = Z.slice(H);
|
|
369
368
|
}
|
|
370
369
|
}
|
|
371
|
-
|
|
372
|
-
let
|
|
373
|
-
this.options.gfm && (
|
|
370
|
+
p.loose || (g ? p.loose = !0 : this.rules.other.doubleBlankLine.test(f) && (g = !0));
|
|
371
|
+
let Y = null, Z;
|
|
372
|
+
this.options.gfm && (Y = this.rules.other.listIsTask.exec(O), Y && (Z = Y[0] !== "[ ] ", O = O.replace(this.rules.other.listReplaceTask, ""))), p.items.push({
|
|
374
373
|
type: "list_item",
|
|
375
|
-
raw:
|
|
376
|
-
task: !!
|
|
377
|
-
checked:
|
|
374
|
+
raw: f,
|
|
375
|
+
task: !!Y,
|
|
376
|
+
checked: Z,
|
|
378
377
|
loose: !1,
|
|
379
|
-
text:
|
|
378
|
+
text: O,
|
|
380
379
|
tokens: []
|
|
381
|
-
}),
|
|
380
|
+
}), p.raw += f;
|
|
382
381
|
}
|
|
383
|
-
let
|
|
384
|
-
if (
|
|
382
|
+
let O = p.items.at(-1);
|
|
383
|
+
if (O) O.raw = O.raw.trimEnd(), O.text = O.text.trimEnd();
|
|
385
384
|
else return;
|
|
386
|
-
|
|
387
|
-
for (let e = 0; e <
|
|
388
|
-
let
|
|
389
|
-
|
|
385
|
+
p.raw = p.raw.trimEnd();
|
|
386
|
+
for (let e = 0; e < p.items.length; e++) if (this.lexer.state.top = !1, p.items[e].tokens = this.lexer.blockTokens(p.items[e].text, []), !p.loose) {
|
|
387
|
+
let l = p.items[e].tokens.filter((e) => e.type === "space");
|
|
388
|
+
p.loose = l.length > 0 && l.some((e) => this.rules.other.anyLine.test(e.raw));
|
|
390
389
|
}
|
|
391
|
-
if (
|
|
392
|
-
return
|
|
390
|
+
if (p.loose) for (let e = 0; e < p.items.length; e++) p.items[e].loose = !0;
|
|
391
|
+
return p;
|
|
393
392
|
}
|
|
394
393
|
}
|
|
395
394
|
html(e) {
|
|
396
|
-
let
|
|
397
|
-
if (
|
|
395
|
+
let l = this.rules.block.html.exec(e);
|
|
396
|
+
if (l) return {
|
|
398
397
|
type: "html",
|
|
399
398
|
block: !0,
|
|
400
|
-
raw:
|
|
401
|
-
pre:
|
|
402
|
-
text:
|
|
399
|
+
raw: l[0],
|
|
400
|
+
pre: l[1] === "pre" || l[1] === "script" || l[1] === "style",
|
|
401
|
+
text: l[0]
|
|
403
402
|
};
|
|
404
403
|
}
|
|
405
404
|
def(e) {
|
|
406
|
-
let
|
|
407
|
-
if (
|
|
408
|
-
let e =
|
|
405
|
+
let l = this.rules.block.def.exec(e);
|
|
406
|
+
if (l) {
|
|
407
|
+
let e = l[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal, " "), u = l[2] ? l[2].replace(this.rules.other.hrefBrackets, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "", f = l[3] ? l[3].substring(1, l[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : l[3];
|
|
409
408
|
return {
|
|
410
409
|
type: "def",
|
|
411
410
|
tag: e,
|
|
412
|
-
raw:
|
|
413
|
-
href:
|
|
414
|
-
title:
|
|
411
|
+
raw: l[0],
|
|
412
|
+
href: u,
|
|
413
|
+
title: f
|
|
415
414
|
};
|
|
416
415
|
}
|
|
417
416
|
}
|
|
418
417
|
table(e) {
|
|
419
|
-
let
|
|
420
|
-
if (!
|
|
421
|
-
let
|
|
418
|
+
let l = this.rules.block.table.exec(e);
|
|
419
|
+
if (!l || !this.rules.other.tableDelimiter.test(l[2])) return;
|
|
420
|
+
let u = V(l[1]), f = l[2].replace(this.rules.other.tableAlignChars, "").split("|"), p = l[3]?.trim() ? l[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], h = {
|
|
422
421
|
type: "table",
|
|
423
|
-
raw:
|
|
422
|
+
raw: l[0],
|
|
424
423
|
header: [],
|
|
425
424
|
align: [],
|
|
426
425
|
rows: []
|
|
427
426
|
};
|
|
428
|
-
if (
|
|
429
|
-
for (let e of
|
|
430
|
-
for (let e = 0; e <
|
|
431
|
-
text:
|
|
432
|
-
tokens: this.lexer.inline(
|
|
427
|
+
if (u.length === f.length) {
|
|
428
|
+
for (let e of f) this.rules.other.tableAlignRight.test(e) ? h.align.push("right") : this.rules.other.tableAlignCenter.test(e) ? h.align.push("center") : this.rules.other.tableAlignLeft.test(e) ? h.align.push("left") : h.align.push(null);
|
|
429
|
+
for (let e = 0; e < u.length; e++) h.header.push({
|
|
430
|
+
text: u[e],
|
|
431
|
+
tokens: this.lexer.inline(u[e]),
|
|
433
432
|
header: !0,
|
|
434
|
-
align:
|
|
433
|
+
align: h.align[e]
|
|
435
434
|
});
|
|
436
|
-
for (let e of
|
|
435
|
+
for (let e of p) h.rows.push(V(e, h.header.length).map((e, l) => ({
|
|
437
436
|
text: e,
|
|
438
437
|
tokens: this.lexer.inline(e),
|
|
439
438
|
header: !1,
|
|
440
|
-
align:
|
|
439
|
+
align: h.align[l]
|
|
441
440
|
})));
|
|
442
|
-
return
|
|
441
|
+
return h;
|
|
443
442
|
}
|
|
444
443
|
}
|
|
445
444
|
lheading(e) {
|
|
446
|
-
let
|
|
447
|
-
if (
|
|
445
|
+
let l = this.rules.block.lheading.exec(e);
|
|
446
|
+
if (l) return {
|
|
448
447
|
type: "heading",
|
|
449
|
-
raw:
|
|
450
|
-
depth:
|
|
451
|
-
text:
|
|
452
|
-
tokens: this.lexer.inline(
|
|
448
|
+
raw: l[0],
|
|
449
|
+
depth: l[2].charAt(0) === "=" ? 1 : 2,
|
|
450
|
+
text: l[1],
|
|
451
|
+
tokens: this.lexer.inline(l[1])
|
|
453
452
|
};
|
|
454
453
|
}
|
|
455
454
|
paragraph(e) {
|
|
456
|
-
let
|
|
457
|
-
if (
|
|
458
|
-
let e =
|
|
455
|
+
let l = this.rules.block.paragraph.exec(e);
|
|
456
|
+
if (l) {
|
|
457
|
+
let e = l[1].charAt(l[1].length - 1) === "\n" ? l[1].slice(0, -1) : l[1];
|
|
459
458
|
return {
|
|
460
459
|
type: "paragraph",
|
|
461
|
-
raw:
|
|
460
|
+
raw: l[0],
|
|
462
461
|
text: e,
|
|
463
462
|
tokens: this.lexer.inline(e)
|
|
464
463
|
};
|
|
465
464
|
}
|
|
466
465
|
}
|
|
467
466
|
text(e) {
|
|
468
|
-
let
|
|
469
|
-
if (
|
|
467
|
+
let l = this.rules.block.text.exec(e);
|
|
468
|
+
if (l) return {
|
|
470
469
|
type: "text",
|
|
471
|
-
raw:
|
|
472
|
-
text:
|
|
473
|
-
tokens: this.lexer.inline(
|
|
470
|
+
raw: l[0],
|
|
471
|
+
text: l[0],
|
|
472
|
+
tokens: this.lexer.inline(l[0])
|
|
474
473
|
};
|
|
475
474
|
}
|
|
476
475
|
escape(e) {
|
|
477
|
-
let
|
|
478
|
-
if (
|
|
476
|
+
let l = this.rules.inline.escape.exec(e);
|
|
477
|
+
if (l) return {
|
|
479
478
|
type: "escape",
|
|
480
|
-
raw:
|
|
481
|
-
text:
|
|
479
|
+
raw: l[0],
|
|
480
|
+
text: l[1]
|
|
482
481
|
};
|
|
483
482
|
}
|
|
484
483
|
tag(e) {
|
|
485
|
-
let
|
|
486
|
-
if (
|
|
484
|
+
let l = this.rules.inline.tag.exec(e);
|
|
485
|
+
if (l) return !this.lexer.state.inLink && this.rules.other.startATag.test(l[0]) ? this.lexer.state.inLink = !0 : this.lexer.state.inLink && this.rules.other.endATag.test(l[0]) && (this.lexer.state.inLink = !1), !this.lexer.state.inRawBlock && this.rules.other.startPreScriptTag.test(l[0]) ? this.lexer.state.inRawBlock = !0 : this.lexer.state.inRawBlock && this.rules.other.endPreScriptTag.test(l[0]) && (this.lexer.state.inRawBlock = !1), {
|
|
487
486
|
type: "html",
|
|
488
|
-
raw:
|
|
487
|
+
raw: l[0],
|
|
489
488
|
inLink: this.lexer.state.inLink,
|
|
490
489
|
inRawBlock: this.lexer.state.inRawBlock,
|
|
491
490
|
block: !1,
|
|
492
|
-
text:
|
|
491
|
+
text: l[0]
|
|
493
492
|
};
|
|
494
493
|
}
|
|
495
494
|
link(e) {
|
|
496
|
-
let
|
|
497
|
-
if (
|
|
498
|
-
let e =
|
|
495
|
+
let l = this.rules.inline.link.exec(e);
|
|
496
|
+
if (l) {
|
|
497
|
+
let e = l[2].trim();
|
|
499
498
|
if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
|
|
500
499
|
if (!this.rules.other.endAngleBracket.test(e)) return;
|
|
501
|
-
let
|
|
502
|
-
if ((e.length -
|
|
500
|
+
let l = z(e.slice(0, -1), "\\");
|
|
501
|
+
if ((e.length - l.length) % 2 == 0) return;
|
|
503
502
|
} else {
|
|
504
|
-
let e =
|
|
503
|
+
let e = fe(l[2], "()");
|
|
505
504
|
if (e === -2) return;
|
|
506
505
|
if (e > -1) {
|
|
507
|
-
let
|
|
508
|
-
|
|
506
|
+
let u = (l[0].indexOf("!") === 0 ? 5 : 4) + l[1].length + e;
|
|
507
|
+
l[2] = l[2].substring(0, e), l[0] = l[0].substring(0, u).trim(), l[3] = "";
|
|
509
508
|
}
|
|
510
509
|
}
|
|
511
|
-
let
|
|
510
|
+
let u = l[2], f = "";
|
|
512
511
|
if (this.options.pedantic) {
|
|
513
|
-
let e = this.rules.other.pedanticHrefTitle.exec(
|
|
514
|
-
e && (
|
|
515
|
-
} else
|
|
516
|
-
return
|
|
517
|
-
href:
|
|
518
|
-
title:
|
|
519
|
-
},
|
|
512
|
+
let e = this.rules.other.pedanticHrefTitle.exec(u);
|
|
513
|
+
e && (u = e[1], f = e[3]);
|
|
514
|
+
} else f = l[3] ? l[3].slice(1, -1) : "";
|
|
515
|
+
return u = u.trim(), this.rules.other.startAngleBracket.test(u) && (u = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? u.slice(1) : u.slice(1, -1)), me(l, {
|
|
516
|
+
href: u && u.replace(this.rules.inline.anyPunctuation, "$1"),
|
|
517
|
+
title: f && f.replace(this.rules.inline.anyPunctuation, "$1")
|
|
518
|
+
}, l[0], this.lexer, this.rules);
|
|
520
519
|
}
|
|
521
520
|
}
|
|
522
|
-
reflink(e,
|
|
523
|
-
let
|
|
524
|
-
if ((
|
|
525
|
-
let e =
|
|
521
|
+
reflink(e, l) {
|
|
522
|
+
let u;
|
|
523
|
+
if ((u = this.rules.inline.reflink.exec(e)) || (u = this.rules.inline.nolink.exec(e))) {
|
|
524
|
+
let e = l[(u[2] || u[1]).replace(this.rules.other.multipleSpaceGlobal, " ").toLowerCase()];
|
|
526
525
|
if (!e) {
|
|
527
|
-
let e =
|
|
526
|
+
let e = u[0].charAt(0);
|
|
528
527
|
return {
|
|
529
528
|
type: "text",
|
|
530
529
|
raw: e,
|
|
531
530
|
text: e
|
|
532
531
|
};
|
|
533
532
|
}
|
|
534
|
-
return
|
|
533
|
+
return me(u, e, u[0], this.lexer, this.rules);
|
|
535
534
|
}
|
|
536
535
|
}
|
|
537
|
-
emStrong(e,
|
|
538
|
-
let
|
|
539
|
-
if (!(!
|
|
540
|
-
let
|
|
541
|
-
for (
|
|
542
|
-
if (
|
|
543
|
-
if (
|
|
544
|
-
|
|
536
|
+
emStrong(e, l, u = "") {
|
|
537
|
+
let f = this.rules.inline.emStrongLDelim.exec(e);
|
|
538
|
+
if (!(!f || f[3] && u.match(this.rules.other.unicodeAlphaNumeric)) && (!(f[1] || f[2]) || !u || this.rules.inline.punctuation.exec(u))) {
|
|
539
|
+
let u = [...f[0]].length - 1, p, h, g = u, O = 0, A = f[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
|
|
540
|
+
for (A.lastIndex = 0, l = l.slice(-1 * e.length + u); (f = A.exec(l)) != null;) {
|
|
541
|
+
if (p = f[1] || f[2] || f[3] || f[4] || f[5] || f[6], !p) continue;
|
|
542
|
+
if (h = [...p].length, f[3] || f[4]) {
|
|
543
|
+
g += h;
|
|
545
544
|
continue;
|
|
546
|
-
} else if ((
|
|
547
|
-
|
|
545
|
+
} else if ((f[5] || f[6]) && u % 3 && !((u + h) % 3)) {
|
|
546
|
+
O += h;
|
|
548
547
|
continue;
|
|
549
548
|
}
|
|
550
|
-
if (
|
|
551
|
-
|
|
552
|
-
let
|
|
553
|
-
if (Math.min(
|
|
554
|
-
let e =
|
|
549
|
+
if (g -= h, g > 0) continue;
|
|
550
|
+
h = Math.min(h, h + g + O);
|
|
551
|
+
let l = [...f[0]][0].length, A = e.slice(0, u + f.index + l + h);
|
|
552
|
+
if (Math.min(u, h) % 2) {
|
|
553
|
+
let e = A.slice(1, -1);
|
|
555
554
|
return {
|
|
556
555
|
type: "em",
|
|
557
|
-
raw:
|
|
556
|
+
raw: A,
|
|
558
557
|
text: e,
|
|
559
558
|
tokens: this.lexer.inlineTokens(e)
|
|
560
559
|
};
|
|
561
560
|
}
|
|
562
|
-
let
|
|
561
|
+
let R = A.slice(2, -2);
|
|
563
562
|
return {
|
|
564
563
|
type: "strong",
|
|
565
|
-
raw:
|
|
566
|
-
text:
|
|
567
|
-
tokens: this.lexer.inlineTokens(
|
|
564
|
+
raw: A,
|
|
565
|
+
text: R,
|
|
566
|
+
tokens: this.lexer.inlineTokens(R)
|
|
568
567
|
};
|
|
569
568
|
}
|
|
570
569
|
}
|
|
571
570
|
}
|
|
572
571
|
codespan(e) {
|
|
573
|
-
let
|
|
574
|
-
if (
|
|
575
|
-
let e =
|
|
576
|
-
return
|
|
572
|
+
let l = this.rules.inline.code.exec(e);
|
|
573
|
+
if (l) {
|
|
574
|
+
let e = l[2].replace(this.rules.other.newLineCharGlobal, " "), u = this.rules.other.nonSpaceChar.test(e), f = this.rules.other.startingSpaceChar.test(e) && this.rules.other.endingSpaceChar.test(e);
|
|
575
|
+
return u && f && (e = e.substring(1, e.length - 1)), {
|
|
577
576
|
type: "codespan",
|
|
578
|
-
raw:
|
|
577
|
+
raw: l[0],
|
|
579
578
|
text: e
|
|
580
579
|
};
|
|
581
580
|
}
|
|
582
581
|
}
|
|
583
582
|
br(e) {
|
|
584
|
-
let
|
|
585
|
-
if (
|
|
583
|
+
let l = this.rules.inline.br.exec(e);
|
|
584
|
+
if (l) return {
|
|
586
585
|
type: "br",
|
|
587
|
-
raw:
|
|
586
|
+
raw: l[0]
|
|
588
587
|
};
|
|
589
588
|
}
|
|
590
589
|
del(e) {
|
|
591
|
-
let
|
|
592
|
-
if (
|
|
590
|
+
let l = this.rules.inline.del.exec(e);
|
|
591
|
+
if (l) return {
|
|
593
592
|
type: "del",
|
|
594
|
-
raw:
|
|
595
|
-
text:
|
|
596
|
-
tokens: this.lexer.inlineTokens(
|
|
593
|
+
raw: l[0],
|
|
594
|
+
text: l[2],
|
|
595
|
+
tokens: this.lexer.inlineTokens(l[2])
|
|
597
596
|
};
|
|
598
597
|
}
|
|
599
598
|
autolink(e) {
|
|
600
|
-
let
|
|
601
|
-
if (
|
|
602
|
-
let e,
|
|
603
|
-
return
|
|
599
|
+
let l = this.rules.inline.autolink.exec(e);
|
|
600
|
+
if (l) {
|
|
601
|
+
let e, u;
|
|
602
|
+
return l[2] === "@" ? (e = l[1], u = "mailto:" + e) : (e = l[1], u = e), {
|
|
604
603
|
type: "link",
|
|
605
|
-
raw:
|
|
604
|
+
raw: l[0],
|
|
606
605
|
text: e,
|
|
607
|
-
href:
|
|
606
|
+
href: u,
|
|
608
607
|
tokens: [{
|
|
609
608
|
type: "text",
|
|
610
609
|
raw: e,
|
|
@@ -614,22 +613,22 @@ ${c}` : c;
|
|
|
614
613
|
}
|
|
615
614
|
}
|
|
616
615
|
url(e) {
|
|
617
|
-
let
|
|
618
|
-
if (
|
|
619
|
-
let e,
|
|
620
|
-
if (
|
|
616
|
+
let l;
|
|
617
|
+
if (l = this.rules.inline.url.exec(e)) {
|
|
618
|
+
let e, u;
|
|
619
|
+
if (l[2] === "@") e = l[0], u = "mailto:" + e;
|
|
621
620
|
else {
|
|
622
|
-
let
|
|
621
|
+
let f;
|
|
623
622
|
do
|
|
624
|
-
|
|
625
|
-
while (
|
|
626
|
-
e =
|
|
623
|
+
f = l[0], l[0] = this.rules.inline._backpedal.exec(l[0])?.[0] ?? "";
|
|
624
|
+
while (f !== l[0]);
|
|
625
|
+
e = l[0], u = l[1] === "www." ? "http://" + l[0] : l[0];
|
|
627
626
|
}
|
|
628
627
|
return {
|
|
629
628
|
type: "link",
|
|
630
|
-
raw:
|
|
629
|
+
raw: l[0],
|
|
631
630
|
text: e,
|
|
632
|
-
href:
|
|
631
|
+
href: u,
|
|
633
632
|
tokens: [{
|
|
634
633
|
type: "text",
|
|
635
634
|
raw: e,
|
|
@@ -639,239 +638,239 @@ ${c}` : c;
|
|
|
639
638
|
}
|
|
640
639
|
}
|
|
641
640
|
inlineText(e) {
|
|
642
|
-
let
|
|
643
|
-
if (
|
|
641
|
+
let l = this.rules.inline.text.exec(e);
|
|
642
|
+
if (l) {
|
|
644
643
|
let e = this.lexer.state.inRawBlock;
|
|
645
644
|
return {
|
|
646
645
|
type: "text",
|
|
647
|
-
raw:
|
|
648
|
-
text:
|
|
646
|
+
raw: l[0],
|
|
647
|
+
text: l[0],
|
|
649
648
|
escaped: e
|
|
650
649
|
};
|
|
651
650
|
}
|
|
652
651
|
}
|
|
653
|
-
},
|
|
652
|
+
}, x = class e {
|
|
654
653
|
tokens;
|
|
655
654
|
options;
|
|
656
655
|
state;
|
|
657
656
|
tokenizer;
|
|
658
657
|
inlineQueue;
|
|
659
658
|
constructor(e) {
|
|
660
|
-
this.tokens = [], this.tokens.links = Object.create(null), this.options = e ||
|
|
659
|
+
this.tokens = [], this.tokens.links = Object.create(null), this.options = e || T, this.options.tokenizer = this.options.tokenizer || new y(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
|
661
660
|
inLink: !1,
|
|
662
661
|
inRawBlock: !1,
|
|
663
662
|
top: !0
|
|
664
663
|
};
|
|
665
|
-
let
|
|
666
|
-
other:
|
|
667
|
-
block:
|
|
668
|
-
inline:
|
|
664
|
+
let u = {
|
|
665
|
+
other: m,
|
|
666
|
+
block: C.normal,
|
|
667
|
+
inline: M.normal
|
|
669
668
|
};
|
|
670
|
-
this.options.pedantic ? (
|
|
669
|
+
this.options.pedantic ? (u.block = C.pedantic, u.inline = M.pedantic) : this.options.gfm && (u.block = C.gfm, this.options.breaks ? u.inline = M.breaks : u.inline = M.gfm), this.tokenizer.rules = u;
|
|
671
670
|
}
|
|
672
671
|
static get rules() {
|
|
673
672
|
return {
|
|
674
|
-
block:
|
|
675
|
-
inline:
|
|
673
|
+
block: C,
|
|
674
|
+
inline: M
|
|
676
675
|
};
|
|
677
676
|
}
|
|
678
|
-
static lex(
|
|
679
|
-
return new e(
|
|
677
|
+
static lex(l, u) {
|
|
678
|
+
return new e(u).lex(l);
|
|
680
679
|
}
|
|
681
|
-
static lexInline(
|
|
682
|
-
return new e(
|
|
680
|
+
static lexInline(l, u) {
|
|
681
|
+
return new e(u).inlineTokens(l);
|
|
683
682
|
}
|
|
684
683
|
lex(e) {
|
|
685
|
-
e = e.replace(
|
|
684
|
+
e = e.replace(m.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
|
|
686
685
|
for (let e = 0; e < this.inlineQueue.length; e++) {
|
|
687
|
-
let
|
|
688
|
-
this.inlineTokens(
|
|
686
|
+
let l = this.inlineQueue[e];
|
|
687
|
+
this.inlineTokens(l.src, l.tokens);
|
|
689
688
|
}
|
|
690
689
|
return this.inlineQueue = [], this.tokens;
|
|
691
690
|
}
|
|
692
|
-
blockTokens(e,
|
|
693
|
-
for (this.options.pedantic && (e = e.replace(
|
|
694
|
-
let
|
|
695
|
-
if (this.options.extensions?.block?.some((
|
|
696
|
-
if (
|
|
697
|
-
e = e.substring(
|
|
698
|
-
let
|
|
699
|
-
|
|
691
|
+
blockTokens(e, l = [], u = !1) {
|
|
692
|
+
for (this.options.pedantic && (e = e.replace(m.tabCharGlobal, " ").replace(m.spaceLine, "")); e;) {
|
|
693
|
+
let f;
|
|
694
|
+
if (this.options.extensions?.block?.some((u) => (f = u.call({ lexer: this }, e, l)) ? (e = e.substring(f.raw.length), l.push(f), !0) : !1)) continue;
|
|
695
|
+
if (f = this.tokenizer.space(e)) {
|
|
696
|
+
e = e.substring(f.raw.length);
|
|
697
|
+
let u = l.at(-1);
|
|
698
|
+
f.raw.length === 1 && u !== void 0 ? u.raw += "\n" : l.push(f);
|
|
700
699
|
continue;
|
|
701
700
|
}
|
|
702
|
-
if (
|
|
703
|
-
e = e.substring(
|
|
704
|
-
let
|
|
705
|
-
|
|
701
|
+
if (f = this.tokenizer.code(e)) {
|
|
702
|
+
e = e.substring(f.raw.length);
|
|
703
|
+
let u = l.at(-1);
|
|
704
|
+
u?.type === "paragraph" || u?.type === "text" ? (u.raw += (u.raw.endsWith("\n") ? "" : "\n") + f.raw, u.text += "\n" + f.text, this.inlineQueue.at(-1).src = u.text) : l.push(f);
|
|
706
705
|
continue;
|
|
707
706
|
}
|
|
708
|
-
if (
|
|
709
|
-
e = e.substring(
|
|
707
|
+
if (f = this.tokenizer.fences(e)) {
|
|
708
|
+
e = e.substring(f.raw.length), l.push(f);
|
|
710
709
|
continue;
|
|
711
710
|
}
|
|
712
|
-
if (
|
|
713
|
-
e = e.substring(
|
|
711
|
+
if (f = this.tokenizer.heading(e)) {
|
|
712
|
+
e = e.substring(f.raw.length), l.push(f);
|
|
714
713
|
continue;
|
|
715
714
|
}
|
|
716
|
-
if (
|
|
717
|
-
e = e.substring(
|
|
715
|
+
if (f = this.tokenizer.hr(e)) {
|
|
716
|
+
e = e.substring(f.raw.length), l.push(f);
|
|
718
717
|
continue;
|
|
719
718
|
}
|
|
720
|
-
if (
|
|
721
|
-
e = e.substring(
|
|
719
|
+
if (f = this.tokenizer.blockquote(e)) {
|
|
720
|
+
e = e.substring(f.raw.length), l.push(f);
|
|
722
721
|
continue;
|
|
723
722
|
}
|
|
724
|
-
if (
|
|
725
|
-
e = e.substring(
|
|
723
|
+
if (f = this.tokenizer.list(e)) {
|
|
724
|
+
e = e.substring(f.raw.length), l.push(f);
|
|
726
725
|
continue;
|
|
727
726
|
}
|
|
728
|
-
if (
|
|
729
|
-
e = e.substring(
|
|
727
|
+
if (f = this.tokenizer.html(e)) {
|
|
728
|
+
e = e.substring(f.raw.length), l.push(f);
|
|
730
729
|
continue;
|
|
731
730
|
}
|
|
732
|
-
if (
|
|
733
|
-
e = e.substring(
|
|
734
|
-
let
|
|
735
|
-
|
|
736
|
-
href:
|
|
737
|
-
title:
|
|
738
|
-
},
|
|
731
|
+
if (f = this.tokenizer.def(e)) {
|
|
732
|
+
e = e.substring(f.raw.length);
|
|
733
|
+
let u = l.at(-1);
|
|
734
|
+
u?.type === "paragraph" || u?.type === "text" ? (u.raw += (u.raw.endsWith("\n") ? "" : "\n") + f.raw, u.text += "\n" + f.raw, this.inlineQueue.at(-1).src = u.text) : this.tokens.links[f.tag] || (this.tokens.links[f.tag] = {
|
|
735
|
+
href: f.href,
|
|
736
|
+
title: f.title
|
|
737
|
+
}, l.push(f));
|
|
739
738
|
continue;
|
|
740
739
|
}
|
|
741
|
-
if (
|
|
742
|
-
e = e.substring(
|
|
740
|
+
if (f = this.tokenizer.table(e)) {
|
|
741
|
+
e = e.substring(f.raw.length), l.push(f);
|
|
743
742
|
continue;
|
|
744
743
|
}
|
|
745
|
-
if (
|
|
746
|
-
e = e.substring(
|
|
744
|
+
if (f = this.tokenizer.lheading(e)) {
|
|
745
|
+
e = e.substring(f.raw.length), l.push(f);
|
|
747
746
|
continue;
|
|
748
747
|
}
|
|
749
|
-
let
|
|
748
|
+
let p = e;
|
|
750
749
|
if (this.options.extensions?.startBlock) {
|
|
751
|
-
let
|
|
750
|
+
let l = Infinity, u = e.slice(1), f;
|
|
752
751
|
this.options.extensions.startBlock.forEach((e) => {
|
|
753
|
-
|
|
754
|
-
}),
|
|
752
|
+
f = e.call({ lexer: this }, u), typeof f == "number" && f >= 0 && (l = Math.min(l, f));
|
|
753
|
+
}), l < Infinity && l >= 0 && (p = e.substring(0, l + 1));
|
|
755
754
|
}
|
|
756
|
-
if (this.state.top && (
|
|
757
|
-
let
|
|
758
|
-
|
|
755
|
+
if (this.state.top && (f = this.tokenizer.paragraph(p))) {
|
|
756
|
+
let h = l.at(-1);
|
|
757
|
+
u && h?.type === "paragraph" ? (h.raw += (h.raw.endsWith("\n") ? "" : "\n") + f.raw, h.text += "\n" + f.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = h.text) : l.push(f), u = p.length !== e.length, e = e.substring(f.raw.length);
|
|
759
758
|
continue;
|
|
760
759
|
}
|
|
761
|
-
if (
|
|
762
|
-
e = e.substring(
|
|
763
|
-
let
|
|
764
|
-
|
|
760
|
+
if (f = this.tokenizer.text(e)) {
|
|
761
|
+
e = e.substring(f.raw.length);
|
|
762
|
+
let u = l.at(-1);
|
|
763
|
+
u?.type === "text" ? (u.raw += (u.raw.endsWith("\n") ? "" : "\n") + f.raw, u.text += "\n" + f.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = u.text) : l.push(f);
|
|
765
764
|
continue;
|
|
766
765
|
}
|
|
767
766
|
if (e) {
|
|
768
|
-
let
|
|
767
|
+
let l = "Infinite loop on byte: " + e.charCodeAt(0);
|
|
769
768
|
if (this.options.silent) {
|
|
770
|
-
console.error(
|
|
769
|
+
console.error(l);
|
|
771
770
|
break;
|
|
772
|
-
} else throw Error(
|
|
771
|
+
} else throw Error(l);
|
|
773
772
|
}
|
|
774
773
|
}
|
|
775
|
-
return this.state.top = !0,
|
|
774
|
+
return this.state.top = !0, l;
|
|
776
775
|
}
|
|
777
|
-
inline(e,
|
|
776
|
+
inline(e, l = []) {
|
|
778
777
|
return this.inlineQueue.push({
|
|
779
778
|
src: e,
|
|
780
|
-
tokens:
|
|
781
|
-
}),
|
|
779
|
+
tokens: l
|
|
780
|
+
}), l;
|
|
782
781
|
}
|
|
783
|
-
inlineTokens(e,
|
|
784
|
-
let
|
|
782
|
+
inlineTokens(e, l = []) {
|
|
783
|
+
let u = e, f = null;
|
|
785
784
|
if (this.tokens.links) {
|
|
786
785
|
let e = Object.keys(this.tokens.links);
|
|
787
|
-
if (e.length > 0) for (; (
|
|
786
|
+
if (e.length > 0) for (; (f = this.tokenizer.rules.inline.reflinkSearch.exec(u)) != null;) e.includes(f[0].slice(f[0].lastIndexOf("[") + 1, -1)) && (u = u.slice(0, f.index) + "[" + "a".repeat(f[0].length - 2) + "]" + u.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
|
|
788
787
|
}
|
|
789
|
-
for (; (
|
|
790
|
-
let
|
|
791
|
-
for (; (
|
|
792
|
-
|
|
793
|
-
let
|
|
788
|
+
for (; (f = this.tokenizer.rules.inline.anyPunctuation.exec(u)) != null;) u = u.slice(0, f.index) + "++" + u.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
|
|
789
|
+
let p;
|
|
790
|
+
for (; (f = this.tokenizer.rules.inline.blockSkip.exec(u)) != null;) p = f[2] ? f[2].length : 0, u = u.slice(0, f.index + p) + "[" + "a".repeat(f[0].length - p - 2) + "]" + u.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
|
|
791
|
+
u = this.options.hooks?.emStrongMask?.call({ lexer: this }, u) ?? u;
|
|
792
|
+
let h = !1, g = "";
|
|
794
793
|
for (; e;) {
|
|
795
|
-
|
|
796
|
-
let
|
|
797
|
-
if (this.options.extensions?.inline?.some((
|
|
798
|
-
if (
|
|
799
|
-
e = e.substring(
|
|
794
|
+
h || (g = ""), h = !1;
|
|
795
|
+
let f;
|
|
796
|
+
if (this.options.extensions?.inline?.some((u) => (f = u.call({ lexer: this }, e, l)) ? (e = e.substring(f.raw.length), l.push(f), !0) : !1)) continue;
|
|
797
|
+
if (f = this.tokenizer.escape(e)) {
|
|
798
|
+
e = e.substring(f.raw.length), l.push(f);
|
|
800
799
|
continue;
|
|
801
800
|
}
|
|
802
|
-
if (
|
|
803
|
-
e = e.substring(
|
|
801
|
+
if (f = this.tokenizer.tag(e)) {
|
|
802
|
+
e = e.substring(f.raw.length), l.push(f);
|
|
804
803
|
continue;
|
|
805
804
|
}
|
|
806
|
-
if (
|
|
807
|
-
e = e.substring(
|
|
805
|
+
if (f = this.tokenizer.link(e)) {
|
|
806
|
+
e = e.substring(f.raw.length), l.push(f);
|
|
808
807
|
continue;
|
|
809
808
|
}
|
|
810
|
-
if (
|
|
811
|
-
e = e.substring(
|
|
812
|
-
let
|
|
813
|
-
|
|
809
|
+
if (f = this.tokenizer.reflink(e, this.tokens.links)) {
|
|
810
|
+
e = e.substring(f.raw.length);
|
|
811
|
+
let u = l.at(-1);
|
|
812
|
+
f.type === "text" && u?.type === "text" ? (u.raw += f.raw, u.text += f.text) : l.push(f);
|
|
814
813
|
continue;
|
|
815
814
|
}
|
|
816
|
-
if (
|
|
817
|
-
e = e.substring(
|
|
815
|
+
if (f = this.tokenizer.emStrong(e, u, g)) {
|
|
816
|
+
e = e.substring(f.raw.length), l.push(f);
|
|
818
817
|
continue;
|
|
819
818
|
}
|
|
820
|
-
if (
|
|
821
|
-
e = e.substring(
|
|
819
|
+
if (f = this.tokenizer.codespan(e)) {
|
|
820
|
+
e = e.substring(f.raw.length), l.push(f);
|
|
822
821
|
continue;
|
|
823
822
|
}
|
|
824
|
-
if (
|
|
825
|
-
e = e.substring(
|
|
823
|
+
if (f = this.tokenizer.br(e)) {
|
|
824
|
+
e = e.substring(f.raw.length), l.push(f);
|
|
826
825
|
continue;
|
|
827
826
|
}
|
|
828
|
-
if (
|
|
829
|
-
e = e.substring(
|
|
827
|
+
if (f = this.tokenizer.del(e)) {
|
|
828
|
+
e = e.substring(f.raw.length), l.push(f);
|
|
830
829
|
continue;
|
|
831
830
|
}
|
|
832
|
-
if (
|
|
833
|
-
e = e.substring(
|
|
831
|
+
if (f = this.tokenizer.autolink(e)) {
|
|
832
|
+
e = e.substring(f.raw.length), l.push(f);
|
|
834
833
|
continue;
|
|
835
834
|
}
|
|
836
|
-
if (!this.state.inLink && (
|
|
837
|
-
e = e.substring(
|
|
835
|
+
if (!this.state.inLink && (f = this.tokenizer.url(e))) {
|
|
836
|
+
e = e.substring(f.raw.length), l.push(f);
|
|
838
837
|
continue;
|
|
839
838
|
}
|
|
840
|
-
let
|
|
839
|
+
let p = e;
|
|
841
840
|
if (this.options.extensions?.startInline) {
|
|
842
|
-
let
|
|
841
|
+
let l = Infinity, u = e.slice(1), f;
|
|
843
842
|
this.options.extensions.startInline.forEach((e) => {
|
|
844
|
-
|
|
845
|
-
}),
|
|
843
|
+
f = e.call({ lexer: this }, u), typeof f == "number" && f >= 0 && (l = Math.min(l, f));
|
|
844
|
+
}), l < Infinity && l >= 0 && (p = e.substring(0, l + 1));
|
|
846
845
|
}
|
|
847
|
-
if (
|
|
848
|
-
e = e.substring(
|
|
849
|
-
let
|
|
850
|
-
|
|
846
|
+
if (f = this.tokenizer.inlineText(p)) {
|
|
847
|
+
e = e.substring(f.raw.length), f.raw.slice(-1) !== "_" && (g = f.raw.slice(-1)), h = !0;
|
|
848
|
+
let u = l.at(-1);
|
|
849
|
+
u?.type === "text" ? (u.raw += f.raw, u.text += f.text) : l.push(f);
|
|
851
850
|
continue;
|
|
852
851
|
}
|
|
853
852
|
if (e) {
|
|
854
|
-
let
|
|
853
|
+
let l = "Infinite loop on byte: " + e.charCodeAt(0);
|
|
855
854
|
if (this.options.silent) {
|
|
856
|
-
console.error(
|
|
855
|
+
console.error(l);
|
|
857
856
|
break;
|
|
858
|
-
} else throw Error(
|
|
857
|
+
} else throw Error(l);
|
|
859
858
|
}
|
|
860
859
|
}
|
|
861
|
-
return
|
|
860
|
+
return l;
|
|
862
861
|
}
|
|
863
|
-
},
|
|
862
|
+
}, P = class {
|
|
864
863
|
options;
|
|
865
864
|
parser;
|
|
866
865
|
constructor(e) {
|
|
867
|
-
this.options = e ||
|
|
866
|
+
this.options = e || T;
|
|
868
867
|
}
|
|
869
868
|
space(e) {
|
|
870
869
|
return "";
|
|
871
870
|
}
|
|
872
|
-
code({ text: e, lang:
|
|
873
|
-
let
|
|
874
|
-
return
|
|
871
|
+
code({ text: e, lang: l, escaped: u }) {
|
|
872
|
+
let f = (l || "").match(m.notSpaceStart)?.[0], p = e.replace(m.endingNewline, "") + "\n";
|
|
873
|
+
return f ? "<pre><code class=\"language-" + w(f) + "\">" + (u ? p : w(p, !0)) + "</code></pre>\n" : "<pre><code>" + (u ? p : w(p, !0)) + "</code></pre>\n";
|
|
875
874
|
}
|
|
876
875
|
blockquote({ tokens: e }) {
|
|
877
876
|
return `<blockquote>
|
|
@@ -884,34 +883,34 @@ ${this.parser.parse(e)}</blockquote>
|
|
|
884
883
|
def(e) {
|
|
885
884
|
return "";
|
|
886
885
|
}
|
|
887
|
-
heading({ tokens: e, depth:
|
|
888
|
-
return `<h${
|
|
886
|
+
heading({ tokens: e, depth: l }) {
|
|
887
|
+
return `<h${l}>${this.parser.parseInline(e)}</h${l}>
|
|
889
888
|
`;
|
|
890
889
|
}
|
|
891
890
|
hr(e) {
|
|
892
891
|
return "<hr>\n";
|
|
893
892
|
}
|
|
894
893
|
list(e) {
|
|
895
|
-
let
|
|
896
|
-
for (let
|
|
897
|
-
let
|
|
898
|
-
|
|
894
|
+
let l = e.ordered, u = e.start, f = "";
|
|
895
|
+
for (let l = 0; l < e.items.length; l++) {
|
|
896
|
+
let u = e.items[l];
|
|
897
|
+
f += this.listitem(u);
|
|
899
898
|
}
|
|
900
|
-
let
|
|
901
|
-
return "<" +
|
|
899
|
+
let p = l ? "ol" : "ul", h = l && u !== 1 ? " start=\"" + u + "\"" : "";
|
|
900
|
+
return "<" + p + h + ">\n" + f + "</" + p + ">\n";
|
|
902
901
|
}
|
|
903
902
|
listitem(e) {
|
|
904
|
-
let
|
|
903
|
+
let l = "";
|
|
905
904
|
if (e.task) {
|
|
906
|
-
let
|
|
907
|
-
e.loose ? e.tokens[0]?.type === "paragraph" ? (e.tokens[0].text =
|
|
905
|
+
let u = this.checkbox({ checked: !!e.checked });
|
|
906
|
+
e.loose ? e.tokens[0]?.type === "paragraph" ? (e.tokens[0].text = u + " " + e.tokens[0].text, e.tokens[0].tokens && e.tokens[0].tokens.length > 0 && e.tokens[0].tokens[0].type === "text" && (e.tokens[0].tokens[0].text = u + " " + w(e.tokens[0].tokens[0].text), e.tokens[0].tokens[0].escaped = !0)) : e.tokens.unshift({
|
|
908
907
|
type: "text",
|
|
909
|
-
raw:
|
|
910
|
-
text:
|
|
908
|
+
raw: u + " ",
|
|
909
|
+
text: u + " ",
|
|
911
910
|
escaped: !0
|
|
912
|
-
}) :
|
|
911
|
+
}) : l += u + " ";
|
|
913
912
|
}
|
|
914
|
-
return
|
|
913
|
+
return l += this.parser.parse(e.tokens, !!e.loose), `<li>${l}</li>
|
|
915
914
|
`;
|
|
916
915
|
}
|
|
917
916
|
checkbox({ checked: e }) {
|
|
@@ -922,17 +921,17 @@ ${this.parser.parse(e)}</blockquote>
|
|
|
922
921
|
`;
|
|
923
922
|
}
|
|
924
923
|
table(e) {
|
|
925
|
-
let
|
|
926
|
-
for (let
|
|
927
|
-
|
|
928
|
-
let
|
|
929
|
-
for (let
|
|
930
|
-
let
|
|
931
|
-
|
|
932
|
-
for (let e = 0; e <
|
|
933
|
-
|
|
924
|
+
let l = "", u = "";
|
|
925
|
+
for (let l = 0; l < e.header.length; l++) u += this.tablecell(e.header[l]);
|
|
926
|
+
l += this.tablerow({ text: u });
|
|
927
|
+
let f = "";
|
|
928
|
+
for (let l = 0; l < e.rows.length; l++) {
|
|
929
|
+
let p = e.rows[l];
|
|
930
|
+
u = "";
|
|
931
|
+
for (let e = 0; e < p.length; e++) u += this.tablecell(p[e]);
|
|
932
|
+
f += this.tablerow({ text: u });
|
|
934
933
|
}
|
|
935
|
-
return
|
|
934
|
+
return f &&= `<tbody>${f}</tbody>`, "<table>\n<thead>\n" + l + "</thead>\n" + f + "</table>\n";
|
|
936
935
|
}
|
|
937
936
|
tablerow({ text: e }) {
|
|
938
937
|
return `<tr>
|
|
@@ -940,8 +939,8 @@ ${e}</tr>
|
|
|
940
939
|
`;
|
|
941
940
|
}
|
|
942
941
|
tablecell(e) {
|
|
943
|
-
let
|
|
944
|
-
return (e.align ? `<${
|
|
942
|
+
let l = this.parser.parseInline(e.tokens), u = e.header ? "th" : "td";
|
|
943
|
+
return (e.align ? `<${u} align="${e.align}">` : `<${u}>`) + l + `</${u}>
|
|
945
944
|
`;
|
|
946
945
|
}
|
|
947
946
|
strong({ tokens: e }) {
|
|
@@ -951,7 +950,7 @@ ${e}</tr>
|
|
|
951
950
|
return `<em>${this.parser.parseInline(e)}</em>`;
|
|
952
951
|
}
|
|
953
952
|
codespan({ text: e }) {
|
|
954
|
-
return `<code>${
|
|
953
|
+
return `<code>${w(e, !0)}</code>`;
|
|
955
954
|
}
|
|
956
955
|
br(e) {
|
|
957
956
|
return "<br>";
|
|
@@ -959,25 +958,25 @@ ${e}</tr>
|
|
|
959
958
|
del({ tokens: e }) {
|
|
960
959
|
return `<del>${this.parser.parseInline(e)}</del>`;
|
|
961
960
|
}
|
|
962
|
-
link({ href: e, title:
|
|
963
|
-
let
|
|
964
|
-
if (
|
|
965
|
-
e =
|
|
966
|
-
let
|
|
967
|
-
return
|
|
968
|
-
}
|
|
969
|
-
image({ href: e, title:
|
|
970
|
-
|
|
971
|
-
let
|
|
972
|
-
if (
|
|
973
|
-
e =
|
|
974
|
-
let
|
|
975
|
-
return
|
|
961
|
+
link({ href: e, title: l, tokens: u }) {
|
|
962
|
+
let f = this.parser.parseInline(u), p = J(e);
|
|
963
|
+
if (p === null) return f;
|
|
964
|
+
e = p;
|
|
965
|
+
let h = "<a href=\"" + e + "\"";
|
|
966
|
+
return l && (h += " title=\"" + w(l) + "\""), h += ">" + f + "</a>", h;
|
|
967
|
+
}
|
|
968
|
+
image({ href: e, title: l, text: u, tokens: f }) {
|
|
969
|
+
f && (u = this.parser.parseInline(f, this.parser.textRenderer));
|
|
970
|
+
let p = J(e);
|
|
971
|
+
if (p === null) return w(u);
|
|
972
|
+
e = p;
|
|
973
|
+
let h = `<img src="${e}" alt="${u}"`;
|
|
974
|
+
return l && (h += ` title="${w(l)}"`), h += ">", h;
|
|
976
975
|
}
|
|
977
976
|
text(e) {
|
|
978
|
-
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text :
|
|
977
|
+
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : w(e.text);
|
|
979
978
|
}
|
|
980
|
-
},
|
|
979
|
+
}, $ = class {
|
|
981
980
|
strong({ text: e }) {
|
|
982
981
|
return e;
|
|
983
982
|
}
|
|
@@ -1005,26 +1004,26 @@ ${e}</tr>
|
|
|
1005
1004
|
br() {
|
|
1006
1005
|
return "";
|
|
1007
1006
|
}
|
|
1008
|
-
},
|
|
1007
|
+
}, b = class e {
|
|
1009
1008
|
options;
|
|
1010
1009
|
renderer;
|
|
1011
1010
|
textRenderer;
|
|
1012
1011
|
constructor(e) {
|
|
1013
|
-
this.options = e ||
|
|
1012
|
+
this.options = e || T, this.options.renderer = this.options.renderer || new P(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new $();
|
|
1014
1013
|
}
|
|
1015
|
-
static parse(
|
|
1016
|
-
return new e(
|
|
1014
|
+
static parse(l, u) {
|
|
1015
|
+
return new e(u).parse(l);
|
|
1017
1016
|
}
|
|
1018
|
-
static parseInline(
|
|
1019
|
-
return new e(
|
|
1017
|
+
static parseInline(l, u) {
|
|
1018
|
+
return new e(u).parseInline(l);
|
|
1020
1019
|
}
|
|
1021
|
-
parse(e,
|
|
1022
|
-
let
|
|
1023
|
-
for (let
|
|
1024
|
-
let
|
|
1025
|
-
if (this.options.extensions?.renderers?.[
|
|
1026
|
-
let e =
|
|
1027
|
-
if (
|
|
1020
|
+
parse(e, l = !0) {
|
|
1021
|
+
let u = "";
|
|
1022
|
+
for (let f = 0; f < e.length; f++) {
|
|
1023
|
+
let p = e[f];
|
|
1024
|
+
if (this.options.extensions?.renderers?.[p.type]) {
|
|
1025
|
+
let e = p, l = this.options.extensions.renderers[e.type].call({ parser: this }, e);
|
|
1026
|
+
if (l !== !1 || ![
|
|
1028
1027
|
"space",
|
|
1029
1028
|
"hr",
|
|
1030
1029
|
"heading",
|
|
@@ -1037,73 +1036,73 @@ ${e}</tr>
|
|
|
1037
1036
|
"paragraph",
|
|
1038
1037
|
"text"
|
|
1039
1038
|
].includes(e.type)) {
|
|
1040
|
-
|
|
1039
|
+
u += l || "";
|
|
1041
1040
|
continue;
|
|
1042
1041
|
}
|
|
1043
1042
|
}
|
|
1044
|
-
let
|
|
1045
|
-
switch (
|
|
1043
|
+
let h = p;
|
|
1044
|
+
switch (h.type) {
|
|
1046
1045
|
case "space":
|
|
1047
|
-
|
|
1046
|
+
u += this.renderer.space(h);
|
|
1048
1047
|
continue;
|
|
1049
1048
|
case "hr":
|
|
1050
|
-
|
|
1049
|
+
u += this.renderer.hr(h);
|
|
1051
1050
|
continue;
|
|
1052
1051
|
case "heading":
|
|
1053
|
-
|
|
1052
|
+
u += this.renderer.heading(h);
|
|
1054
1053
|
continue;
|
|
1055
1054
|
case "code":
|
|
1056
|
-
|
|
1055
|
+
u += this.renderer.code(h);
|
|
1057
1056
|
continue;
|
|
1058
1057
|
case "table":
|
|
1059
|
-
|
|
1058
|
+
u += this.renderer.table(h);
|
|
1060
1059
|
continue;
|
|
1061
1060
|
case "blockquote":
|
|
1062
|
-
|
|
1061
|
+
u += this.renderer.blockquote(h);
|
|
1063
1062
|
continue;
|
|
1064
1063
|
case "list":
|
|
1065
|
-
|
|
1064
|
+
u += this.renderer.list(h);
|
|
1066
1065
|
continue;
|
|
1067
1066
|
case "html":
|
|
1068
|
-
|
|
1067
|
+
u += this.renderer.html(h);
|
|
1069
1068
|
continue;
|
|
1070
1069
|
case "def":
|
|
1071
|
-
|
|
1070
|
+
u += this.renderer.def(h);
|
|
1072
1071
|
continue;
|
|
1073
1072
|
case "paragraph":
|
|
1074
|
-
|
|
1073
|
+
u += this.renderer.paragraph(h);
|
|
1075
1074
|
continue;
|
|
1076
1075
|
case "text": {
|
|
1077
|
-
let
|
|
1078
|
-
for (;
|
|
1079
|
-
|
|
1076
|
+
let p = h, g = this.renderer.text(p);
|
|
1077
|
+
for (; f + 1 < e.length && e[f + 1].type === "text";) p = e[++f], g += "\n" + this.renderer.text(p);
|
|
1078
|
+
l ? u += this.renderer.paragraph({
|
|
1080
1079
|
type: "paragraph",
|
|
1081
|
-
raw:
|
|
1082
|
-
text:
|
|
1080
|
+
raw: g,
|
|
1081
|
+
text: g,
|
|
1083
1082
|
tokens: [{
|
|
1084
1083
|
type: "text",
|
|
1085
|
-
raw:
|
|
1086
|
-
text:
|
|
1084
|
+
raw: g,
|
|
1085
|
+
text: g,
|
|
1087
1086
|
escaped: !0
|
|
1088
1087
|
}]
|
|
1089
|
-
}) :
|
|
1088
|
+
}) : u += g;
|
|
1090
1089
|
continue;
|
|
1091
1090
|
}
|
|
1092
1091
|
default: {
|
|
1093
|
-
let e = "Token with \"" +
|
|
1092
|
+
let e = "Token with \"" + h.type + "\" type was not found.";
|
|
1094
1093
|
if (this.options.silent) return console.error(e), "";
|
|
1095
1094
|
throw Error(e);
|
|
1096
1095
|
}
|
|
1097
1096
|
}
|
|
1098
1097
|
}
|
|
1099
|
-
return
|
|
1100
|
-
}
|
|
1101
|
-
parseInline(e,
|
|
1102
|
-
let
|
|
1103
|
-
for (let
|
|
1104
|
-
let
|
|
1105
|
-
if (this.options.extensions?.renderers?.[
|
|
1106
|
-
let e = this.options.extensions.renderers[
|
|
1098
|
+
return u;
|
|
1099
|
+
}
|
|
1100
|
+
parseInline(e, l = this.renderer) {
|
|
1101
|
+
let u = "";
|
|
1102
|
+
for (let f = 0; f < e.length; f++) {
|
|
1103
|
+
let p = e[f];
|
|
1104
|
+
if (this.options.extensions?.renderers?.[p.type]) {
|
|
1105
|
+
let e = this.options.extensions.renderers[p.type].call({ parser: this }, p);
|
|
1107
1106
|
if (e !== !1 || ![
|
|
1108
1107
|
"escape",
|
|
1109
1108
|
"html",
|
|
@@ -1115,57 +1114,57 @@ ${e}</tr>
|
|
|
1115
1114
|
"br",
|
|
1116
1115
|
"del",
|
|
1117
1116
|
"text"
|
|
1118
|
-
].includes(
|
|
1119
|
-
|
|
1117
|
+
].includes(p.type)) {
|
|
1118
|
+
u += e || "";
|
|
1120
1119
|
continue;
|
|
1121
1120
|
}
|
|
1122
1121
|
}
|
|
1123
|
-
let
|
|
1124
|
-
switch (
|
|
1122
|
+
let h = p;
|
|
1123
|
+
switch (h.type) {
|
|
1125
1124
|
case "escape":
|
|
1126
|
-
|
|
1125
|
+
u += l.text(h);
|
|
1127
1126
|
break;
|
|
1128
1127
|
case "html":
|
|
1129
|
-
|
|
1128
|
+
u += l.html(h);
|
|
1130
1129
|
break;
|
|
1131
1130
|
case "link":
|
|
1132
|
-
|
|
1131
|
+
u += l.link(h);
|
|
1133
1132
|
break;
|
|
1134
1133
|
case "image":
|
|
1135
|
-
|
|
1134
|
+
u += l.image(h);
|
|
1136
1135
|
break;
|
|
1137
1136
|
case "strong":
|
|
1138
|
-
|
|
1137
|
+
u += l.strong(h);
|
|
1139
1138
|
break;
|
|
1140
1139
|
case "em":
|
|
1141
|
-
|
|
1140
|
+
u += l.em(h);
|
|
1142
1141
|
break;
|
|
1143
1142
|
case "codespan":
|
|
1144
|
-
|
|
1143
|
+
u += l.codespan(h);
|
|
1145
1144
|
break;
|
|
1146
1145
|
case "br":
|
|
1147
|
-
|
|
1146
|
+
u += l.br(h);
|
|
1148
1147
|
break;
|
|
1149
1148
|
case "del":
|
|
1150
|
-
|
|
1149
|
+
u += l.del(h);
|
|
1151
1150
|
break;
|
|
1152
1151
|
case "text":
|
|
1153
|
-
|
|
1152
|
+
u += l.text(h);
|
|
1154
1153
|
break;
|
|
1155
1154
|
default: {
|
|
1156
|
-
let e = "Token with \"" +
|
|
1155
|
+
let e = "Token with \"" + h.type + "\" type was not found.";
|
|
1157
1156
|
if (this.options.silent) return console.error(e), "";
|
|
1158
1157
|
throw Error(e);
|
|
1159
1158
|
}
|
|
1160
1159
|
}
|
|
1161
1160
|
}
|
|
1162
|
-
return
|
|
1161
|
+
return u;
|
|
1163
1162
|
}
|
|
1164
|
-
},
|
|
1163
|
+
}, S = class {
|
|
1165
1164
|
options;
|
|
1166
1165
|
block;
|
|
1167
1166
|
constructor(e) {
|
|
1168
|
-
this.options = e ||
|
|
1167
|
+
this.options = e || T;
|
|
1169
1168
|
}
|
|
1170
1169
|
static passThroughHooks = new Set([
|
|
1171
1170
|
"preprocess",
|
|
@@ -1191,135 +1190,135 @@ ${e}</tr>
|
|
|
1191
1190
|
return e;
|
|
1192
1191
|
}
|
|
1193
1192
|
provideLexer() {
|
|
1194
|
-
return this.block ?
|
|
1193
|
+
return this.block ? x.lex : x.lexInline;
|
|
1195
1194
|
}
|
|
1196
1195
|
provideParser() {
|
|
1197
|
-
return this.block ?
|
|
1196
|
+
return this.block ? b.parse : b.parseInline;
|
|
1198
1197
|
}
|
|
1199
|
-
},
|
|
1200
|
-
defaults =
|
|
1198
|
+
}, _ = new class {
|
|
1199
|
+
defaults = L();
|
|
1201
1200
|
options = this.setOptions;
|
|
1202
1201
|
parse = this.parseMarkdown(!0);
|
|
1203
1202
|
parseInline = this.parseMarkdown(!1);
|
|
1204
|
-
Parser =
|
|
1205
|
-
Renderer =
|
|
1206
|
-
TextRenderer =
|
|
1207
|
-
Lexer =
|
|
1208
|
-
Tokenizer =
|
|
1209
|
-
Hooks =
|
|
1203
|
+
Parser = b;
|
|
1204
|
+
Renderer = P;
|
|
1205
|
+
TextRenderer = $;
|
|
1206
|
+
Lexer = x;
|
|
1207
|
+
Tokenizer = y;
|
|
1208
|
+
Hooks = S;
|
|
1210
1209
|
constructor(...e) {
|
|
1211
1210
|
this.use(...e);
|
|
1212
1211
|
}
|
|
1213
|
-
walkTokens(e,
|
|
1214
|
-
let
|
|
1215
|
-
for (let
|
|
1212
|
+
walkTokens(e, l) {
|
|
1213
|
+
let u = [];
|
|
1214
|
+
for (let f of e) switch (u = u.concat(l.call(this, f)), f.type) {
|
|
1216
1215
|
case "table": {
|
|
1217
|
-
let e =
|
|
1218
|
-
for (let
|
|
1219
|
-
for (let
|
|
1216
|
+
let e = f;
|
|
1217
|
+
for (let f of e.header) u = u.concat(this.walkTokens(f.tokens, l));
|
|
1218
|
+
for (let f of e.rows) for (let e of f) u = u.concat(this.walkTokens(e.tokens, l));
|
|
1220
1219
|
break;
|
|
1221
1220
|
}
|
|
1222
1221
|
case "list": {
|
|
1223
|
-
let e =
|
|
1224
|
-
|
|
1222
|
+
let e = f;
|
|
1223
|
+
u = u.concat(this.walkTokens(e.items, l));
|
|
1225
1224
|
break;
|
|
1226
1225
|
}
|
|
1227
1226
|
default: {
|
|
1228
|
-
let e =
|
|
1229
|
-
this.defaults.extensions?.childTokens?.[e.type] ? this.defaults.extensions.childTokens[e.type].forEach((
|
|
1230
|
-
let
|
|
1231
|
-
|
|
1232
|
-
}) : e.tokens && (
|
|
1227
|
+
let e = f;
|
|
1228
|
+
this.defaults.extensions?.childTokens?.[e.type] ? this.defaults.extensions.childTokens[e.type].forEach((f) => {
|
|
1229
|
+
let p = e[f].flat(Infinity);
|
|
1230
|
+
u = u.concat(this.walkTokens(p, l));
|
|
1231
|
+
}) : e.tokens && (u = u.concat(this.walkTokens(e.tokens, l)));
|
|
1233
1232
|
}
|
|
1234
1233
|
}
|
|
1235
|
-
return
|
|
1234
|
+
return u;
|
|
1236
1235
|
}
|
|
1237
1236
|
use(...e) {
|
|
1238
|
-
let
|
|
1237
|
+
let l = this.defaults.extensions || {
|
|
1239
1238
|
renderers: {},
|
|
1240
1239
|
childTokens: {}
|
|
1241
1240
|
};
|
|
1242
1241
|
return e.forEach((e) => {
|
|
1243
|
-
let
|
|
1244
|
-
if (
|
|
1242
|
+
let u = { ...e };
|
|
1243
|
+
if (u.async = this.defaults.async || u.async || !1, e.extensions && (e.extensions.forEach((e) => {
|
|
1245
1244
|
if (!e.name) throw Error("extension name required");
|
|
1246
1245
|
if ("renderer" in e) {
|
|
1247
|
-
let
|
|
1248
|
-
|
|
1249
|
-
let
|
|
1250
|
-
return
|
|
1251
|
-
} :
|
|
1246
|
+
let u = l.renderers[e.name];
|
|
1247
|
+
u ? l.renderers[e.name] = function(...l) {
|
|
1248
|
+
let f = e.renderer.apply(this, l);
|
|
1249
|
+
return f === !1 && (f = u.apply(this, l)), f;
|
|
1250
|
+
} : l.renderers[e.name] = e.renderer;
|
|
1252
1251
|
}
|
|
1253
1252
|
if ("tokenizer" in e) {
|
|
1254
1253
|
if (!e.level || e.level !== "block" && e.level !== "inline") throw Error("extension level must be 'block' or 'inline'");
|
|
1255
|
-
let
|
|
1256
|
-
|
|
1254
|
+
let u = l[e.level];
|
|
1255
|
+
u ? u.unshift(e.tokenizer) : l[e.level] = [e.tokenizer], e.start && (e.level === "block" ? l.startBlock ? l.startBlock.push(e.start) : l.startBlock = [e.start] : e.level === "inline" && (l.startInline ? l.startInline.push(e.start) : l.startInline = [e.start]));
|
|
1257
1256
|
}
|
|
1258
|
-
"childTokens" in e && e.childTokens && (
|
|
1259
|
-
}),
|
|
1260
|
-
let
|
|
1261
|
-
for (let
|
|
1262
|
-
if (!(
|
|
1263
|
-
if (["options", "parser"].includes(
|
|
1264
|
-
let
|
|
1265
|
-
|
|
1266
|
-
let
|
|
1267
|
-
return
|
|
1257
|
+
"childTokens" in e && e.childTokens && (l.childTokens[e.name] = e.childTokens);
|
|
1258
|
+
}), u.extensions = l), e.renderer) {
|
|
1259
|
+
let l = this.defaults.renderer || new P(this.defaults);
|
|
1260
|
+
for (let u in e.renderer) {
|
|
1261
|
+
if (!(u in l)) throw Error(`renderer '${u}' does not exist`);
|
|
1262
|
+
if (["options", "parser"].includes(u)) continue;
|
|
1263
|
+
let f = u, p = e.renderer[f], h = l[f];
|
|
1264
|
+
l[f] = (...e) => {
|
|
1265
|
+
let u = p.apply(l, e);
|
|
1266
|
+
return u === !1 && (u = h.apply(l, e)), u || "";
|
|
1268
1267
|
};
|
|
1269
1268
|
}
|
|
1270
|
-
|
|
1269
|
+
u.renderer = l;
|
|
1271
1270
|
}
|
|
1272
1271
|
if (e.tokenizer) {
|
|
1273
|
-
let
|
|
1274
|
-
for (let
|
|
1275
|
-
if (!(
|
|
1272
|
+
let l = this.defaults.tokenizer || new y(this.defaults);
|
|
1273
|
+
for (let u in e.tokenizer) {
|
|
1274
|
+
if (!(u in l)) throw Error(`tokenizer '${u}' does not exist`);
|
|
1276
1275
|
if ([
|
|
1277
1276
|
"options",
|
|
1278
1277
|
"rules",
|
|
1279
1278
|
"lexer"
|
|
1280
|
-
].includes(
|
|
1281
|
-
let
|
|
1282
|
-
|
|
1283
|
-
let
|
|
1284
|
-
return
|
|
1279
|
+
].includes(u)) continue;
|
|
1280
|
+
let f = u, p = e.tokenizer[f], h = l[f];
|
|
1281
|
+
l[f] = (...e) => {
|
|
1282
|
+
let u = p.apply(l, e);
|
|
1283
|
+
return u === !1 && (u = h.apply(l, e)), u;
|
|
1285
1284
|
};
|
|
1286
1285
|
}
|
|
1287
|
-
|
|
1286
|
+
u.tokenizer = l;
|
|
1288
1287
|
}
|
|
1289
1288
|
if (e.hooks) {
|
|
1290
|
-
let
|
|
1291
|
-
for (let
|
|
1292
|
-
if (!(
|
|
1293
|
-
if (["options", "block"].includes(
|
|
1294
|
-
let
|
|
1295
|
-
|
|
1296
|
-
if (this.defaults.async &&
|
|
1297
|
-
let
|
|
1298
|
-
return
|
|
1289
|
+
let l = this.defaults.hooks || new S();
|
|
1290
|
+
for (let u in e.hooks) {
|
|
1291
|
+
if (!(u in l)) throw Error(`hook '${u}' does not exist`);
|
|
1292
|
+
if (["options", "block"].includes(u)) continue;
|
|
1293
|
+
let f = u, p = e.hooks[f], h = l[f];
|
|
1294
|
+
S.passThroughHooks.has(u) ? l[f] = (e) => {
|
|
1295
|
+
if (this.defaults.async && S.passThroughHooksRespectAsync.has(u)) return (async () => {
|
|
1296
|
+
let u = await p.call(l, e);
|
|
1297
|
+
return h.call(l, u);
|
|
1299
1298
|
})();
|
|
1300
|
-
let
|
|
1301
|
-
return
|
|
1302
|
-
} :
|
|
1299
|
+
let f = p.call(l, e);
|
|
1300
|
+
return h.call(l, f);
|
|
1301
|
+
} : l[f] = (...e) => {
|
|
1303
1302
|
if (this.defaults.async) return (async () => {
|
|
1304
|
-
let
|
|
1305
|
-
return
|
|
1303
|
+
let u = await p.apply(l, e);
|
|
1304
|
+
return u === !1 && (u = await h.apply(l, e)), u;
|
|
1306
1305
|
})();
|
|
1307
|
-
let
|
|
1308
|
-
return
|
|
1306
|
+
let u = p.apply(l, e);
|
|
1307
|
+
return u === !1 && (u = h.apply(l, e)), u;
|
|
1309
1308
|
};
|
|
1310
1309
|
}
|
|
1311
|
-
|
|
1310
|
+
u.hooks = l;
|
|
1312
1311
|
}
|
|
1313
1312
|
if (e.walkTokens) {
|
|
1314
|
-
let
|
|
1315
|
-
|
|
1316
|
-
let
|
|
1317
|
-
return
|
|
1313
|
+
let l = this.defaults.walkTokens, f = e.walkTokens;
|
|
1314
|
+
u.walkTokens = function(e) {
|
|
1315
|
+
let u = [];
|
|
1316
|
+
return u.push(f.call(this, e)), l && (u = u.concat(l.call(this, e))), u;
|
|
1318
1317
|
};
|
|
1319
1318
|
}
|
|
1320
1319
|
this.defaults = {
|
|
1321
1320
|
...this.defaults,
|
|
1322
|
-
...
|
|
1321
|
+
...u
|
|
1323
1322
|
};
|
|
1324
1323
|
}), this;
|
|
1325
1324
|
}
|
|
@@ -1329,58 +1328,57 @@ ${e}</tr>
|
|
|
1329
1328
|
...e
|
|
1330
1329
|
}, this;
|
|
1331
1330
|
}
|
|
1332
|
-
lexer(e,
|
|
1333
|
-
return
|
|
1331
|
+
lexer(e, l) {
|
|
1332
|
+
return x.lex(e, l ?? this.defaults);
|
|
1334
1333
|
}
|
|
1335
|
-
parser(e,
|
|
1336
|
-
return
|
|
1334
|
+
parser(e, l) {
|
|
1335
|
+
return b.parse(e, l ?? this.defaults);
|
|
1337
1336
|
}
|
|
1338
1337
|
parseMarkdown(e) {
|
|
1339
|
-
return (
|
|
1340
|
-
let
|
|
1338
|
+
return (l, u) => {
|
|
1339
|
+
let f = { ...u }, p = {
|
|
1341
1340
|
...this.defaults,
|
|
1342
|
-
...
|
|
1343
|
-
},
|
|
1344
|
-
if (this.defaults.async === !0 &&
|
|
1345
|
-
if (typeof
|
|
1346
|
-
if (typeof
|
|
1347
|
-
if (
|
|
1348
|
-
let
|
|
1349
|
-
|
|
1350
|
-
let
|
|
1351
|
-
return
|
|
1352
|
-
})().catch(
|
|
1341
|
+
...f
|
|
1342
|
+
}, h = this.onError(!!p.silent, !!p.async);
|
|
1343
|
+
if (this.defaults.async === !0 && f.async === !1) return h(/* @__PURE__ */ Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
|
|
1344
|
+
if (typeof l > "u" || l === null) return h(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
|
|
1345
|
+
if (typeof l != "string") return h(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(l) + ", string expected"));
|
|
1346
|
+
if (p.hooks && (p.hooks.options = p, p.hooks.block = e), p.async) return (async () => {
|
|
1347
|
+
let u = p.hooks ? await p.hooks.preprocess(l) : l, f = await (p.hooks ? await p.hooks.provideLexer() : e ? x.lex : x.lexInline)(u, p), h = p.hooks ? await p.hooks.processAllTokens(f) : f;
|
|
1348
|
+
p.walkTokens && await Promise.all(this.walkTokens(h, p.walkTokens));
|
|
1349
|
+
let g = await (p.hooks ? await p.hooks.provideParser() : e ? b.parse : b.parseInline)(h, p);
|
|
1350
|
+
return p.hooks ? await p.hooks.postprocess(g) : g;
|
|
1351
|
+
})().catch(h);
|
|
1353
1352
|
try {
|
|
1354
|
-
|
|
1355
|
-
let
|
|
1356
|
-
|
|
1357
|
-
let
|
|
1358
|
-
return
|
|
1353
|
+
p.hooks && (l = p.hooks.preprocess(l));
|
|
1354
|
+
let u = (p.hooks ? p.hooks.provideLexer() : e ? x.lex : x.lexInline)(l, p);
|
|
1355
|
+
p.hooks && (u = p.hooks.processAllTokens(u)), p.walkTokens && this.walkTokens(u, p.walkTokens);
|
|
1356
|
+
let f = (p.hooks ? p.hooks.provideParser() : e ? b.parse : b.parseInline)(u, p);
|
|
1357
|
+
return p.hooks && (f = p.hooks.postprocess(f)), f;
|
|
1359
1358
|
} catch (e) {
|
|
1360
|
-
return
|
|
1359
|
+
return h(e);
|
|
1361
1360
|
}
|
|
1362
1361
|
};
|
|
1363
1362
|
}
|
|
1364
|
-
onError(e,
|
|
1365
|
-
return (
|
|
1366
|
-
if (
|
|
1367
|
-
let e = "<p>An error occurred:</p><pre>" +
|
|
1368
|
-
return
|
|
1363
|
+
onError(e, l) {
|
|
1364
|
+
return (u) => {
|
|
1365
|
+
if (u.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
|
|
1366
|
+
let e = "<p>An error occurred:</p><pre>" + w(u.message + "", !0) + "</pre>";
|
|
1367
|
+
return l ? Promise.resolve(e) : e;
|
|
1369
1368
|
}
|
|
1370
|
-
if (
|
|
1371
|
-
throw
|
|
1369
|
+
if (l) return Promise.reject(u);
|
|
1370
|
+
throw u;
|
|
1372
1371
|
};
|
|
1373
1372
|
}
|
|
1374
1373
|
}();
|
|
1375
|
-
function
|
|
1376
|
-
return
|
|
1374
|
+
function k(e, l) {
|
|
1375
|
+
return _.parse(e, l);
|
|
1377
1376
|
}
|
|
1378
|
-
|
|
1379
|
-
return
|
|
1380
|
-
},
|
|
1381
|
-
return
|
|
1382
|
-
},
|
|
1383
|
-
return
|
|
1384
|
-
},
|
|
1385
|
-
|
|
1386
|
-
export { $ as k };
|
|
1377
|
+
k.options = k.setOptions = function(e) {
|
|
1378
|
+
return _.setOptions(e), k.defaults = _.defaults, G(k.defaults), k;
|
|
1379
|
+
}, k.getDefaults = L, k.defaults = T, k.use = function(...e) {
|
|
1380
|
+
return _.use(...e), k.defaults = _.defaults, G(k.defaults), k;
|
|
1381
|
+
}, k.walkTokens = function(e, l) {
|
|
1382
|
+
return _.walkTokens(e, l);
|
|
1383
|
+
}, k.parseInline = _.parseInline, k.Parser = b, k.parser = b.parse, k.Renderer = P, k.TextRenderer = $, k.Lexer = x, k.lexer = x.lex, k.Tokenizer = y, k.Hooks = S, k.parse = k, k.options, k.setOptions, k.use, k.walkTokens, k.parseInline, b.parse, x.lex;
|
|
1384
|
+
export { k };
|