@loopstack/loopstack-studio 0.20.2 → 0.21.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/rolldown_runtime.js +20 -0
- package/dist/components/data-table/ConfirmDialog.js +30 -0
- package/dist/components/data-table/DataList.js +216 -0
- package/dist/components/data-table/DataTable.js +264 -0
- package/dist/components/data-table/DataTableBatchAction.js +32 -0
- package/dist/components/data-table/DataTableFilters.js +83 -0
- package/dist/components/data-table/DataTablePagination.js +108 -0
- package/dist/components/data-table/DataTableToolbar.js +70 -0
- package/dist/components/dynamic-form/ArrayController.js +100 -0
- package/dist/components/dynamic-form/CodeContent.js +174 -0
- package/dist/components/dynamic-form/Form.js +35 -0
- package/dist/components/dynamic-form/FormBody.js +26 -0
- package/dist/components/dynamic-form/FormElement.js +42 -0
- package/dist/components/dynamic-form/FormElementHeader.js +20 -0
- package/dist/components/dynamic-form/InputController.js +38 -0
- package/dist/components/dynamic-form/MarkdownContent.js +76 -0
- package/dist/components/dynamic-form/MermaidDiagram.js +41 -0
- package/dist/components/dynamic-form/ObjectController.js +32 -0
- package/dist/components/dynamic-form/fields/BaseFieldWrapper.js +47 -0
- package/dist/components/dynamic-form/fields/CheckboxField.js +53 -0
- package/dist/components/dynamic-form/fields/CodeViewField.js +63 -0
- package/dist/components/dynamic-form/fields/InputField.js +105 -0
- package/dist/components/dynamic-form/fields/RadioField.js +67 -0
- package/dist/components/dynamic-form/fields/SelectField.js +60 -0
- package/dist/components/dynamic-form/fields/SliderField.js +112 -0
- package/dist/components/dynamic-form/fields/SwitchField.js +66 -0
- package/dist/components/dynamic-form/fields/TextareaField.js +77 -0
- package/dist/components/dynamic-form/fields/utils/text-validation-utils.js +33 -0
- package/dist/components/dynamic-form/hooks/useArrayDefaultValue.js +42 -0
- package/dist/components/dynamic-form/hooks/useFieldConfig.js +21 -0
- package/dist/components/dynamic-form/hooks/useMergeParentKey.js +5 -0
- package/dist/components/dynamic-form/hooks/useSortPropertyNames.js +5 -0
- package/dist/components/layout/MainLayout.js +24 -0
- package/dist/components/lists/CustomListView.js +87 -0
- package/dist/components/lists/ListView.js +118 -0
- package/dist/components/page/PageBreadcrumbs.js +41 -0
- package/dist/components/snackbars/ErrorSnackbar.js +30 -0
- package/dist/components/snackbars/Snackbar.js +44 -0
- package/dist/components/ui/alert-dialog.js +121 -0
- package/dist/components/ui/badge.js +28 -0
- package/dist/components/ui/breadcrumb.js +85 -0
- package/dist/components/ui/button.js +47 -0
- package/dist/components/ui/card.js +29 -0
- package/dist/components/ui/checkbox.js +26 -0
- package/dist/components/ui/collapsible.js +32 -0
- package/dist/components/ui/dialog.js +88 -0
- package/dist/components/ui/input.js +18 -0
- package/dist/components/ui/label.js +19 -0
- package/dist/components/ui/radio-group.js +38 -0
- package/dist/components/ui/select.js +125 -0
- package/dist/components/ui/sheet.js +97 -0
- package/dist/components/ui/slider.js +35 -0
- package/dist/components/ui/switch.js +24 -0
- package/dist/components/ui/table.js +81 -0
- package/dist/components/ui/textarea.js +17 -0
- package/dist/components/ui/tooltip.js +50 -0
- package/dist/features/health/LocalHealthCheck.js +95 -0
- package/dist/features/workspaces/Workspaces.js +162 -0
- package/dist/features/workspaces/components/CreateWorkspace.js +128 -0
- package/dist/features/workspaces/components/ExecutionTimeline.js +204 -0
- package/dist/features/workspaces/components/NewPipelineRunDialog.js +31 -0
- package/dist/features/workspaces/components/PipelineForm.js +152 -0
- package/dist/features/workspaces/components/pipeline-form/ArgumentsView.js +75 -0
- package/dist/features/workspaces/components/pipeline-form/HeaderSection.js +43 -0
- package/dist/features/workspaces/components/pipeline-form/SelectionView.js +105 -0
- package/dist/hooks/use-mobile.js +3 -3
- package/dist/hooks/useAuth.js +56 -0
- package/dist/hooks/useConfig.js +46 -0
- package/dist/hooks/useDebounce.js +27 -0
- package/dist/hooks/usePipelines.js +117 -0
- package/dist/hooks/useProcessor.js +24 -0
- package/dist/hooks/useWorkspaces.js +142 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +4 -1
- package/dist/lib/utils.js +6 -0
- package/dist/loopstack-studio.css +2 -0
- package/dist/node_modules/@braintree/sanitize-url/dist/constants.js +6 -0
- package/dist/node_modules/@braintree/sanitize-url/dist/index.js +48 -0
- package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +26 -0
- package/dist/node_modules/@chevrotain/gast/lib/src/model.js +154 -0
- package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +40 -0
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +2 -0
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +85 -0
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +35 -0
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +570 -0
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +25 -0
- package/dist/node_modules/@chevrotain/utils/lib/src/print.js +9 -0
- package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +8 -0
- package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +10 -0
- package/dist/node_modules/@iconify/utils/lib/customisations/defaults.js +9 -0
- package/dist/node_modules/@iconify/utils/lib/icon/defaults.js +18 -0
- package/dist/node_modules/@iconify/utils/lib/icon/merge.js +8 -0
- package/dist/node_modules/@iconify/utils/lib/icon/name.js +35 -0
- package/dist/node_modules/@iconify/utils/lib/icon/transformations.js +7 -0
- package/dist/node_modules/@iconify/utils/lib/icon-set/get-icon.js +15 -0
- package/dist/node_modules/@iconify/utils/lib/icon-set/tree.js +14 -0
- package/dist/node_modules/@iconify/utils/lib/svg/build.js +54 -0
- package/dist/node_modules/@iconify/utils/lib/svg/defs.js +22 -0
- package/dist/node_modules/@iconify/utils/lib/svg/html.js +6 -0
- package/dist/node_modules/@iconify/utils/lib/svg/id.js +17 -0
- package/dist/node_modules/@iconify/utils/lib/svg/size.js +18 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7HQA4BMR.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4F5CHEZ2.js +23 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-B2363JML.js +60 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FRFDVMJY.js +23 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PL6DKKU2.js +28 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-SJTYNZTY.js +23 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TCCFYFTB.js +787 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TQ3KTPDO.js +23 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UMXZTB3W.js +30 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-G5XIXVHT.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-VBDWY6EO.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-DYOGHKS2.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-VRWISCQL.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-ZZBFDIW7.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-GDKQZRPO.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +55 -0
- package/dist/node_modules/ccount/index.js +8 -0
- package/dist/node_modules/chevrotain/lib/src/api.js +10 -0
- package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +10 -0
- package/dist/node_modules/chevrotain/lib/src/parse/constants.js +2 -0
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +13 -0
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +58 -0
- package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +75 -0
- package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +34 -0
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +299 -0
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +25 -0
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +29 -0
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +15 -0
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +269 -0
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +5 -0
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +43 -0
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +248 -0
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +32 -0
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +58 -0
- package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +122 -0
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js +16 -0
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +48 -0
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +172 -0
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +39 -0
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +109 -0
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +22 -0
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +313 -0
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +275 -0
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +144 -0
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +102 -0
- package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +11 -0
- package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +465 -0
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +9 -0
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +275 -0
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +152 -0
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +15 -0
- package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +75 -0
- package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +42 -0
- package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +346 -0
- package/dist/node_modules/chevrotain-allstar/lib/atn.js +194 -0
- package/dist/node_modules/chevrotain-allstar/lib/dfa.js +32 -0
- package/dist/node_modules/chevrotain-allstar/lib/index.js +1 -0
- package/dist/node_modules/comma-separated-tokens/index.js +10 -0
- package/dist/node_modules/cose-base/cose-base.js +469 -0
- package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +18100 -0
- package/dist/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.js +172 -0
- package/dist/node_modules/cytoscape-fcose/cytoscape-fcose.js +604 -0
- package/dist/node_modules/cytoscape-fcose/node_modules/cose-base/cose-base.js +1142 -0
- package/dist/node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.js +1635 -0
- package/dist/node_modules/d3/src/index.js +93 -0
- package/dist/node_modules/d3-array/src/ascending.js +4 -0
- package/dist/node_modules/d3-array/src/bisect.js +8 -0
- package/dist/node_modules/d3-array/src/bisector.js +39 -0
- package/dist/node_modules/d3-array/src/descending.js +4 -0
- package/dist/node_modules/d3-array/src/max.js +10 -0
- package/dist/node_modules/d3-array/src/min.js +10 -0
- package/dist/node_modules/d3-array/src/number.js +4 -0
- package/dist/node_modules/d3-array/src/range.js +6 -0
- package/dist/node_modules/d3-array/src/ticks.js +30 -0
- package/dist/node_modules/d3-axis/src/axis.js +61 -0
- package/dist/node_modules/d3-axis/src/identity.js +4 -0
- package/dist/node_modules/d3-brush/src/brush.js +15 -0
- package/dist/node_modules/d3-brush/src/index.js +1 -0
- package/dist/node_modules/d3-color/src/color.js +287 -0
- package/dist/node_modules/d3-color/src/define.js +9 -0
- package/dist/node_modules/d3-color/src/lab.js +70 -0
- package/dist/node_modules/d3-color/src/math.js +2 -0
- package/dist/node_modules/d3-dispatch/src/dispatch.js +64 -0
- package/dist/node_modules/d3-ease/src/cubic.js +4 -0
- package/dist/node_modules/d3-format/src/defaultLocale.js +11 -0
- package/dist/node_modules/d3-format/src/exponent.js +5 -0
- package/dist/node_modules/d3-format/src/formatDecimal.js +9 -0
- package/dist/node_modules/d3-format/src/formatGroup.js +7 -0
- package/dist/node_modules/d3-format/src/formatNumerals.js +8 -0
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +9 -0
- package/dist/node_modules/d3-format/src/formatRounded.js +8 -0
- package/dist/node_modules/d3-format/src/formatSpecifier.js +25 -0
- package/dist/node_modules/d3-format/src/formatTrim.js +16 -0
- package/dist/node_modules/d3-format/src/formatTypes.js +19 -0
- package/dist/node_modules/d3-format/src/identity.js +4 -0
- package/dist/node_modules/d3-format/src/locale.js +82 -0
- package/dist/node_modules/d3-format/src/precisionFixed.js +5 -0
- package/dist/node_modules/d3-format/src/precisionPrefix.js +5 -0
- package/dist/node_modules/d3-format/src/precisionRound.js +5 -0
- package/dist/node_modules/d3-hierarchy/src/accessors.js +5 -0
- package/dist/node_modules/d3-hierarchy/src/constant.js +9 -0
- package/dist/node_modules/d3-hierarchy/src/hierarchy/ancestors.js +5 -0
- package/dist/node_modules/d3-hierarchy/src/hierarchy/count.js +10 -0
- package/dist/node_modules/d3-hierarchy/src/hierarchy/descendants.js +4 -0
- package/dist/node_modules/d3-hierarchy/src/hierarchy/each.js +6 -0
- package/dist/node_modules/d3-hierarchy/src/hierarchy/eachAfter.js +6 -0
- package/dist/node_modules/d3-hierarchy/src/hierarchy/eachBefore.js +5 -0
- package/dist/node_modules/d3-hierarchy/src/hierarchy/find.js +5 -0
- package/dist/node_modules/d3-hierarchy/src/hierarchy/index.js +57 -0
- package/dist/node_modules/d3-hierarchy/src/hierarchy/iterator.js +7 -0
- package/dist/node_modules/d3-hierarchy/src/hierarchy/leaves.js +7 -0
- package/dist/node_modules/d3-hierarchy/src/hierarchy/links.js +10 -0
- package/dist/node_modules/d3-hierarchy/src/hierarchy/path.js +12 -0
- package/dist/node_modules/d3-hierarchy/src/hierarchy/sort.js +6 -0
- package/dist/node_modules/d3-hierarchy/src/hierarchy/sum.js +7 -0
- package/dist/node_modules/d3-hierarchy/src/treemap/dice.js +4 -0
- package/dist/node_modules/d3-hierarchy/src/treemap/index.js +36 -0
- package/dist/node_modules/d3-hierarchy/src/treemap/round.js +4 -0
- package/dist/node_modules/d3-hierarchy/src/treemap/slice.js +4 -0
- package/dist/node_modules/d3-hierarchy/src/treemap/squarify.js +33 -0
- package/dist/node_modules/d3-interpolate/src/array.js +11 -0
- package/dist/node_modules/d3-interpolate/src/basis.js +12 -0
- package/dist/node_modules/d3-interpolate/src/basisClosed.js +9 -0
- package/dist/node_modules/d3-interpolate/src/color.js +25 -0
- package/dist/node_modules/d3-interpolate/src/constant.js +2 -0
- package/dist/node_modules/d3-interpolate/src/date.js +7 -0
- package/dist/node_modules/d3-interpolate/src/hcl.js +12 -0
- package/dist/node_modules/d3-interpolate/src/number.js +6 -0
- package/dist/node_modules/d3-interpolate/src/numberArray.js +12 -0
- package/dist/node_modules/d3-interpolate/src/object.js +10 -0
- package/dist/node_modules/d3-interpolate/src/rgb.js +15 -0
- package/dist/node_modules/d3-interpolate/src/round.js +6 -0
- package/dist/node_modules/d3-interpolate/src/string.js +24 -0
- package/dist/node_modules/d3-interpolate/src/transform/decompose.js +20 -0
- package/dist/node_modules/d3-interpolate/src/transform/index.js +52 -0
- package/dist/node_modules/d3-interpolate/src/transform/parse.js +10 -0
- package/dist/node_modules/d3-interpolate/src/value.js +14 -0
- package/dist/node_modules/d3-path/src/path.js +61 -0
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/max.js +10 -0
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/min.js +10 -0
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/sum.js +10 -0
- package/dist/node_modules/d3-sankey/node_modules/d3-path/src/path.js +50 -0
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/array.js +2 -0
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/constant.js +6 -0
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/link/index.js +35 -0
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/point.js +7 -0
- package/dist/node_modules/d3-sankey/src/align.js +17 -0
- package/dist/node_modules/d3-sankey/src/constant.js +6 -0
- package/dist/node_modules/d3-sankey/src/sankey.js +224 -0
- package/dist/node_modules/d3-sankey/src/sankeyLinkHorizontal.js +11 -0
- package/dist/node_modules/d3-scale/src/band.js +39 -0
- package/dist/node_modules/d3-scale/src/constant.js +6 -0
- package/dist/node_modules/d3-scale/src/continuous.js +69 -0
- package/dist/node_modules/d3-scale/src/init.js +13 -0
- package/dist/node_modules/d3-scale/src/linear.js +32 -0
- package/dist/node_modules/d3-scale/src/nice.js +6 -0
- package/dist/node_modules/d3-scale/src/number.js +4 -0
- package/dist/node_modules/d3-scale/src/ordinal.js +27 -0
- package/dist/node_modules/d3-scale/src/tickFormat.js +27 -0
- package/dist/node_modules/d3-scale/src/time.js +43 -0
- package/dist/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js +3 -0
- package/dist/node_modules/d3-scale-chromatic/src/colors.js +5 -0
- package/dist/node_modules/d3-selection/src/array.js +4 -0
- package/dist/node_modules/d3-selection/src/constant.js +6 -0
- package/dist/node_modules/d3-selection/src/creator.js +18 -0
- package/dist/node_modules/d3-selection/src/matcher.js +11 -0
- package/dist/node_modules/d3-selection/src/namespace.js +9 -0
- package/dist/node_modules/d3-selection/src/namespaces.js +8 -0
- package/dist/node_modules/d3-selection/src/select.js +5 -0
- package/dist/node_modules/d3-selection/src/selection/append.js +8 -0
- package/dist/node_modules/d3-selection/src/selection/attr.js +42 -0
- package/dist/node_modules/d3-selection/src/selection/call.js +5 -0
- package/dist/node_modules/d3-selection/src/selection/classed.js +51 -0
- package/dist/node_modules/d3-selection/src/selection/clone.js +12 -0
- package/dist/node_modules/d3-selection/src/selection/data.js +34 -0
- package/dist/node_modules/d3-selection/src/selection/datum.js +4 -0
- package/dist/node_modules/d3-selection/src/selection/dispatch.js +19 -0
- package/dist/node_modules/d3-selection/src/selection/each.js +5 -0
- package/dist/node_modules/d3-selection/src/selection/empty.js +4 -0
- package/dist/node_modules/d3-selection/src/selection/enter.js +24 -0
- package/dist/node_modules/d3-selection/src/selection/exit.js +6 -0
- package/dist/node_modules/d3-selection/src/selection/filter.js +8 -0
- package/dist/node_modules/d3-selection/src/selection/html.js +17 -0
- package/dist/node_modules/d3-selection/src/selection/index.js +84 -0
- package/dist/node_modules/d3-selection/src/selection/insert.js +12 -0
- package/dist/node_modules/d3-selection/src/selection/iterator.js +4 -0
- package/dist/node_modules/d3-selection/src/selection/join.js +5 -0
- package/dist/node_modules/d3-selection/src/selection/lower.js +7 -0
- package/dist/node_modules/d3-selection/src/selection/merge.js +7 -0
- package/dist/node_modules/d3-selection/src/selection/node.js +8 -0
- package/dist/node_modules/d3-selection/src/selection/nodes.js +4 -0
- package/dist/node_modules/d3-selection/src/selection/on.js +54 -0
- package/dist/node_modules/d3-selection/src/selection/order.js +5 -0
- package/dist/node_modules/d3-selection/src/selection/property.js +20 -0
- package/dist/node_modules/d3-selection/src/selection/raise.js +7 -0
- package/dist/node_modules/d3-selection/src/selection/remove.js +8 -0
- package/dist/node_modules/d3-selection/src/selection/select.js +8 -0
- package/dist/node_modules/d3-selection/src/selection/selectAll.js +14 -0
- package/dist/node_modules/d3-selection/src/selection/selectChild.js +14 -0
- package/dist/node_modules/d3-selection/src/selection/selectChildren.js +14 -0
- package/dist/node_modules/d3-selection/src/selection/size.js +6 -0
- package/dist/node_modules/d3-selection/src/selection/sort.js +16 -0
- package/dist/node_modules/d3-selection/src/selection/sparse.js +4 -0
- package/dist/node_modules/d3-selection/src/selection/style.js +24 -0
- package/dist/node_modules/d3-selection/src/selection/text.js +17 -0
- package/dist/node_modules/d3-selection/src/selector.js +7 -0
- package/dist/node_modules/d3-selection/src/selectorAll.js +9 -0
- package/dist/node_modules/d3-selection/src/window.js +4 -0
- package/dist/node_modules/d3-shape/src/arc.js +79 -0
- package/dist/node_modules/d3-shape/src/array.js +5 -0
- package/dist/node_modules/d3-shape/src/constant.js +6 -0
- package/dist/node_modules/d3-shape/src/curve/basis.js +45 -0
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js +46 -0
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js +42 -0
- package/dist/node_modules/d3-shape/src/curve/bump.js +36 -0
- package/dist/node_modules/d3-shape/src/curve/bundle.js +26 -0
- package/dist/node_modules/d3-shape/src/curve/cardinal.js +52 -0
- package/dist/node_modules/d3-shape/src/curve/cardinalClosed.js +51 -0
- package/dist/node_modules/d3-shape/src/curve/cardinalOpen.js +45 -0
- package/dist/node_modules/d3-shape/src/curve/catmullRom.js +67 -0
- package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.js +56 -0
- package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.js +50 -0
- package/dist/node_modules/d3-shape/src/curve/linear.js +32 -0
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js +21 -0
- package/dist/node_modules/d3-shape/src/curve/monotone.js +90 -0
- package/dist/node_modules/d3-shape/src/curve/natural.js +35 -0
- package/dist/node_modules/d3-shape/src/curve/step.js +43 -0
- package/dist/node_modules/d3-shape/src/descending.js +4 -0
- package/dist/node_modules/d3-shape/src/identity.js +4 -0
- package/dist/node_modules/d3-shape/src/line.js +26 -0
- package/dist/node_modules/d3-shape/src/math.js +8 -0
- package/dist/node_modules/d3-shape/src/noop.js +2 -0
- package/dist/node_modules/d3-shape/src/path.js +15 -0
- package/dist/node_modules/d3-shape/src/pie.js +39 -0
- package/dist/node_modules/d3-shape/src/point.js +7 -0
- package/dist/node_modules/d3-time/src/day.js +17 -0
- package/dist/node_modules/d3-time/src/duration.js +2 -0
- package/dist/node_modules/d3-time/src/hour.js +15 -0
- package/dist/node_modules/d3-time/src/interval.js +24 -0
- package/dist/node_modules/d3-time/src/millisecond.js +10 -0
- package/dist/node_modules/d3-time/src/minute.js +15 -0
- package/dist/node_modules/d3-time/src/month.js +14 -0
- package/dist/node_modules/d3-time/src/second.js +9 -0
- package/dist/node_modules/d3-time/src/ticks.js +121 -0
- package/dist/node_modules/d3-time/src/week.js +21 -0
- package/dist/node_modules/d3-time/src/year.js +22 -0
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +58 -0
- package/dist/node_modules/d3-time-format/src/locale.js +486 -0
- package/dist/node_modules/d3-timer/src/timeout.js +8 -0
- package/dist/node_modules/d3-timer/src/timer.js +51 -0
- package/dist/node_modules/d3-transition/src/index.js +3 -0
- package/dist/node_modules/d3-transition/src/interrupt.js +15 -0
- package/dist/node_modules/d3-transition/src/selection/index.js +4 -0
- package/dist/node_modules/d3-transition/src/selection/interrupt.js +7 -0
- package/dist/node_modules/d3-transition/src/selection/transition.js +21 -0
- package/dist/node_modules/d3-transition/src/transition/attr.js +47 -0
- package/dist/node_modules/d3-transition/src/transition/attrTween.js +36 -0
- package/dist/node_modules/d3-transition/src/transition/delay.js +16 -0
- package/dist/node_modules/d3-transition/src/transition/duration.js +16 -0
- package/dist/node_modules/d3-transition/src/transition/ease.js +12 -0
- package/dist/node_modules/d3-transition/src/transition/easeVarying.js +13 -0
- package/dist/node_modules/d3-transition/src/transition/end.js +14 -0
- package/dist/node_modules/d3-transition/src/transition/filter.js +8 -0
- package/dist/node_modules/d3-transition/src/transition/index.js +65 -0
- package/dist/node_modules/d3-transition/src/transition/interpolate.js +9 -0
- package/dist/node_modules/d3-transition/src/transition/merge.js +8 -0
- package/dist/node_modules/d3-transition/src/transition/on.js +19 -0
- package/dist/node_modules/d3-transition/src/transition/remove.js +11 -0
- package/dist/node_modules/d3-transition/src/transition/schedule.js +67 -0
- package/dist/node_modules/d3-transition/src/transition/select.js +10 -0
- package/dist/node_modules/d3-transition/src/transition/selectAll.js +13 -0
- package/dist/node_modules/d3-transition/src/transition/selection.js +6 -0
- package/dist/node_modules/d3-transition/src/transition/style.js +43 -0
- package/dist/node_modules/d3-transition/src/transition/styleTween.js +21 -0
- package/dist/node_modules/d3-transition/src/transition/text.js +15 -0
- package/dist/node_modules/d3-transition/src/transition/textTween.js +21 -0
- package/dist/node_modules/d3-transition/src/transition/transition.js +15 -0
- package/dist/node_modules/d3-transition/src/transition/tween.js +52 -0
- package/dist/node_modules/d3-zoom/src/index.js +2 -0
- package/dist/node_modules/d3-zoom/src/transform.js +46 -0
- package/dist/node_modules/d3-zoom/src/zoom.js +2 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/acyclic.js +34 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/add-border-segments.js +22 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/coordinate-system.js +44 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/data/list.js +25 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +69 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/index.js +4 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +241 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +66 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/normalize.js +32 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.js +14 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/order/barycenter.js +25 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.js +25 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +33 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +44 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +23 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +55 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +43 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +27 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.js +40 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +216 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +23 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.js +31 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/index.js +25 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +84 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +20 -0
- package/dist/node_modules/dagre-d3-es/src/dagre/util.js +117 -0
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dfs.js +16 -0
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dijkstra-all.js +1 -0
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dijkstra.js +2 -0
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/floyd-warshall.js +2 -0
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/index.js +8 -0
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/is-acyclic.js +1 -0
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/postorder.js +5 -0
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/preorder.js +5 -0
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/prim.js +1 -0
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/topsort.js +15 -0
- package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +228 -0
- package/dist/node_modules/dagre-d3-es/src/graphlib/index.js +1 -0
- package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +32 -0
- package/dist/node_modules/dayjs/dayjs.min.js +298 -0
- package/dist/node_modules/dayjs/plugin/advancedFormat.js +37 -0
- package/dist/node_modules/dayjs/plugin/customParseFormat.js +160 -0
- package/dist/node_modules/dayjs/plugin/duration.js +164 -0
- package/dist/node_modules/dayjs/plugin/isoWeek.js +29 -0
- package/dist/node_modules/devlop/lib/default.js +2 -0
- package/dist/node_modules/dompurify/dist/purify.es.js +547 -0
- package/dist/node_modules/hast-util-from-dom/lib/index.js +58 -0
- package/dist/node_modules/hast-util-from-html-isomorphic/lib/browser.js +10 -0
- package/dist/node_modules/hast-util-is-element/lib/index.js +36 -0
- package/dist/node_modules/hast-util-parse-selector/lib/index.js +16 -0
- package/dist/node_modules/hast-util-to-text/lib/index.js +104 -0
- package/dist/node_modules/hastscript/lib/create-h.js +86 -0
- package/dist/node_modules/hastscript/lib/index.js +5 -0
- package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +2 -0
- package/dist/node_modules/internmap/src/index.js +36 -0
- package/dist/node_modules/katex/dist/katex.js +22103 -0
- package/dist/node_modules/khroma/dist/channels/index.js +68 -0
- package/dist/node_modules/khroma/dist/channels/reusable.js +8 -0
- package/dist/node_modules/khroma/dist/channels/type.js +20 -0
- package/dist/node_modules/khroma/dist/color/hex.js +22 -0
- package/dist/node_modules/khroma/dist/color/hsl.js +36 -0
- package/dist/node_modules/khroma/dist/color/index.js +23 -0
- package/dist/node_modules/khroma/dist/color/keyword.js +162 -0
- package/dist/node_modules/khroma/dist/color/rgb.js +23 -0
- package/dist/node_modules/khroma/dist/constants.js +9 -0
- package/dist/node_modules/khroma/dist/methods/adjust.js +8 -0
- package/dist/node_modules/khroma/dist/methods/adjust_channel.js +7 -0
- package/dist/node_modules/khroma/dist/methods/change.js +8 -0
- package/dist/node_modules/khroma/dist/methods/channel.js +4 -0
- package/dist/node_modules/khroma/dist/methods/darken.js +3 -0
- package/dist/node_modules/khroma/dist/methods/invert.js +7 -0
- package/dist/node_modules/khroma/dist/methods/is_dark.js +3 -0
- package/dist/node_modules/khroma/dist/methods/is_light.js +3 -0
- package/dist/node_modules/khroma/dist/methods/lighten.js +3 -0
- package/dist/node_modules/khroma/dist/methods/luminance.js +7 -0
- package/dist/node_modules/khroma/dist/methods/mix.js +7 -0
- package/dist/node_modules/khroma/dist/methods/rgba.js +15 -0
- package/dist/node_modules/khroma/dist/utils/channel.js +58 -0
- package/dist/node_modules/khroma/dist/utils/index.js +9 -0
- package/dist/node_modules/khroma/dist/utils/lang.js +5 -0
- package/dist/node_modules/khroma/dist/utils/unit.js +5 -0
- package/dist/node_modules/langium/lib/default-module.js +85 -0
- package/dist/node_modules/langium/lib/dependency-injection.js +62 -0
- package/dist/node_modules/langium/lib/documentation/comment-provider.js +11 -0
- package/dist/node_modules/langium/lib/documentation/documentation-provider.js +36 -0
- package/dist/node_modules/langium/lib/documentation/jsdoc.js +303 -0
- package/dist/node_modules/langium/lib/index.js +182 -0
- package/dist/node_modules/langium/lib/languages/generated/ast.js +1089 -0
- package/dist/node_modules/langium/lib/languages/grammar-config.js +13 -0
- package/dist/node_modules/langium/lib/parser/async-parser.js +83 -0
- package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +7 -0
- package/dist/node_modules/langium/lib/parser/cst-node-builder.js +160 -0
- package/dist/node_modules/langium/lib/parser/indentation-aware.js +141 -0
- package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +11 -0
- package/dist/node_modules/langium/lib/parser/langium-parser.js +388 -0
- package/dist/node_modules/langium/lib/parser/lexer.js +50 -0
- package/dist/node_modules/langium/lib/parser/parser-builder-base.js +275 -0
- package/dist/node_modules/langium/lib/parser/token-builder.js +61 -0
- package/dist/node_modules/langium/lib/parser/value-converter.js +78 -0
- package/dist/node_modules/langium/lib/references/linker.js +190 -0
- package/dist/node_modules/langium/lib/references/name-provider.js +13 -0
- package/dist/node_modules/langium/lib/references/references.js +76 -0
- package/dist/node_modules/langium/lib/references/scope-computation.js +35 -0
- package/dist/node_modules/langium/lib/references/scope-provider.js +34 -0
- package/dist/node_modules/langium/lib/references/scope.js +73 -0
- package/dist/node_modules/langium/lib/serializer/hydrator.js +125 -0
- package/dist/node_modules/langium/lib/serializer/json-serializer.js +145 -0
- package/dist/node_modules/langium/lib/service-registry.js +37 -0
- package/dist/node_modules/langium/lib/syntax-tree.js +70 -0
- package/dist/node_modules/langium/lib/utils/ast-utils.js +157 -0
- package/dist/node_modules/langium/lib/utils/caching.js +91 -0
- package/dist/node_modules/langium/lib/utils/cancellation.js +5 -0
- package/dist/node_modules/langium/lib/utils/collections.js +85 -0
- package/dist/node_modules/langium/lib/utils/cst-utils.js +190 -0
- package/dist/node_modules/langium/lib/utils/disposable.js +8 -0
- package/dist/node_modules/langium/lib/utils/errors.js +12 -0
- package/dist/node_modules/langium/lib/utils/event.js +5 -0
- package/dist/node_modules/langium/lib/utils/grammar-loader.js +22 -0
- package/dist/node_modules/langium/lib/utils/grammar-utils.js +296 -0
- package/dist/node_modules/langium/lib/utils/index.js +53 -0
- package/dist/node_modules/langium/lib/utils/promise-utils.js +30 -0
- package/dist/node_modules/langium/lib/utils/regexp-utils.js +167 -0
- package/dist/node_modules/langium/lib/utils/stream.js +327 -0
- package/dist/node_modules/langium/lib/utils/uri-utils.js +107 -0
- package/dist/node_modules/langium/lib/validation/document-validator.js +210 -0
- package/dist/node_modules/langium/lib/validation/validation-registry.js +87 -0
- package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +57 -0
- package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +28 -0
- package/dist/node_modules/langium/lib/workspace/configuration.js +51 -0
- package/dist/node_modules/langium/lib/workspace/document-builder.js +201 -0
- package/dist/node_modules/langium/lib/workspace/documents.js +142 -0
- package/dist/node_modules/langium/lib/workspace/file-system-provider.js +34 -0
- package/dist/node_modules/langium/lib/workspace/index-manager.js +49 -0
- package/dist/node_modules/langium/lib/workspace/profiler.js +89 -0
- package/dist/node_modules/langium/lib/workspace/workspace-lock.js +42 -0
- package/dist/node_modules/langium/lib/workspace/workspace-manager.js +66 -0
- package/dist/node_modules/layout-base/layout-base.js +1407 -0
- package/dist/node_modules/lodash-es/_DataView.js +4 -0
- package/dist/node_modules/lodash-es/_Hash.js +15 -0
- package/dist/node_modules/lodash-es/_ListCache.js +15 -0
- package/dist/node_modules/lodash-es/_Map.js +4 -0
- package/dist/node_modules/lodash-es/_MapCache.js +15 -0
- package/dist/node_modules/lodash-es/_Promise.js +4 -0
- package/dist/node_modules/lodash-es/_Set.js +4 -0
- package/dist/node_modules/lodash-es/_SetCache.js +10 -0
- package/dist/node_modules/lodash-es/_Stack.js +12 -0
- package/dist/node_modules/lodash-es/_Symbol.js +3 -0
- package/dist/node_modules/lodash-es/_Uint8Array.js +3 -0
- package/dist/node_modules/lodash-es/_WeakMap.js +4 -0
- package/dist/node_modules/lodash-es/_apply.js +11 -0
- package/dist/node_modules/lodash-es/_arrayAggregator.js +9 -0
- package/dist/node_modules/lodash-es/_arrayEach.js +6 -0
- package/dist/node_modules/lodash-es/_arrayEvery.js +6 -0
- package/dist/node_modules/lodash-es/_arrayFilter.js +9 -0
- package/dist/node_modules/lodash-es/_arrayIncludes.js +6 -0
- package/dist/node_modules/lodash-es/_arrayIncludesWith.js +6 -0
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +14 -0
- package/dist/node_modules/lodash-es/_arrayMap.js +6 -0
- package/dist/node_modules/lodash-es/_arrayPush.js +6 -0
- package/dist/node_modules/lodash-es/_arrayReduce.js +7 -0
- package/dist/node_modules/lodash-es/_arraySome.js +6 -0
- package/dist/node_modules/lodash-es/_asciiSize.js +3 -0
- package/dist/node_modules/lodash-es/_assignMergeValue.js +7 -0
- package/dist/node_modules/lodash-es/_assignValue.js +9 -0
- package/dist/node_modules/lodash-es/_assocIndexOf.js +7 -0
- package/dist/node_modules/lodash-es/_baseAggregator.js +8 -0
- package/dist/node_modules/lodash-es/_baseAssign.js +7 -0
- package/dist/node_modules/lodash-es/_baseAssignIn.js +7 -0
- package/dist/node_modules/lodash-es/_baseAssignValue.js +11 -0
- package/dist/node_modules/lodash-es/_baseClone.js +56 -0
- package/dist/node_modules/lodash-es/_baseCreate.js +12 -0
- package/dist/node_modules/lodash-es/_baseDifference.js +22 -0
- package/dist/node_modules/lodash-es/_baseEach.js +4 -0
- package/dist/node_modules/lodash-es/_baseEvery.js +9 -0
- package/dist/node_modules/lodash-es/_baseExtremum.js +10 -0
- package/dist/node_modules/lodash-es/_baseFilter.js +9 -0
- package/dist/node_modules/lodash-es/_baseFindIndex.js +6 -0
- package/dist/node_modules/lodash-es/_baseFlatten.js +12 -0
- package/dist/node_modules/lodash-es/_baseFor.js +3 -0
- package/dist/node_modules/lodash-es/_baseForOwn.js +7 -0
- package/dist/node_modules/lodash-es/_baseGet.js +9 -0
- package/dist/node_modules/lodash-es/_baseGetAllKeys.js +8 -0
- package/dist/node_modules/lodash-es/_baseGetTag.js +9 -0
- package/dist/node_modules/lodash-es/_baseGt.js +5 -0
- package/dist/node_modules/lodash-es/_baseHas.js +6 -0
- package/dist/node_modules/lodash-es/_baseHasIn.js +5 -0
- package/dist/node_modules/lodash-es/_baseIndexOf.js +8 -0
- package/dist/node_modules/lodash-es/_baseIsArguments.js +8 -0
- package/dist/node_modules/lodash-es/_baseIsEqual.js +7 -0
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +29 -0
- package/dist/node_modules/lodash-es/_baseIsMap.js +8 -0
- package/dist/node_modules/lodash-es/_baseIsMatch.js +25 -0
- package/dist/node_modules/lodash-es/_baseIsNaN.js +5 -0
- package/dist/node_modules/lodash-es/_baseIsNative.js +10 -0
- package/dist/node_modules/lodash-es/_baseIsRegExp.js +8 -0
- package/dist/node_modules/lodash-es/_baseIsSet.js +8 -0
- package/dist/node_modules/lodash-es/_baseIsTypedArray.js +10 -0
- package/dist/node_modules/lodash-es/_baseIteratee.js +10 -0
- package/dist/node_modules/lodash-es/_baseKeys.js +11 -0
- package/dist/node_modules/lodash-es/_baseKeysIn.js +12 -0
- package/dist/node_modules/lodash-es/_baseLt.js +5 -0
- package/dist/node_modules/lodash-es/_baseMap.js +10 -0
- package/dist/node_modules/lodash-es/_baseMatches.js +11 -0
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +16 -0
- package/dist/node_modules/lodash-es/_baseMerge.js +18 -0
- package/dist/node_modules/lodash-es/_baseMergeDeep.js +30 -0
- package/dist/node_modules/lodash-es/_baseOrderBy.js +30 -0
- package/dist/node_modules/lodash-es/_basePick.js +9 -0
- package/dist/node_modules/lodash-es/_basePickBy.js +12 -0
- package/dist/node_modules/lodash-es/_baseProperty.js +7 -0
- package/dist/node_modules/lodash-es/_basePropertyDeep.js +8 -0
- package/dist/node_modules/lodash-es/_baseRange.js +7 -0
- package/dist/node_modules/lodash-es/_baseReduce.js +7 -0
- package/dist/node_modules/lodash-es/_baseRest.js +8 -0
- package/dist/node_modules/lodash-es/_baseSet.js +21 -0
- package/dist/node_modules/lodash-es/_baseSetToString.js +12 -0
- package/dist/node_modules/lodash-es/_baseSlice.js +8 -0
- package/dist/node_modules/lodash-es/_baseSome.js +9 -0
- package/dist/node_modules/lodash-es/_baseSortBy.js +7 -0
- package/dist/node_modules/lodash-es/_baseTimes.js +6 -0
- package/dist/node_modules/lodash-es/_baseToString.js +14 -0
- package/dist/node_modules/lodash-es/_baseTrim.js +7 -0
- package/dist/node_modules/lodash-es/_baseUnary.js +7 -0
- package/dist/node_modules/lodash-es/_baseUniq.js +26 -0
- package/dist/node_modules/lodash-es/_baseValues.js +8 -0
- package/dist/node_modules/lodash-es/_baseZipObject.js +9 -0
- package/dist/node_modules/lodash-es/_cacheHas.js +5 -0
- package/dist/node_modules/lodash-es/_castFunction.js +6 -0
- package/dist/node_modules/lodash-es/_castPath.js +9 -0
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +7 -0
- package/dist/node_modules/lodash-es/_cloneBuffer.js +9 -0
- package/dist/node_modules/lodash-es/_cloneDataView.js +7 -0
- package/dist/node_modules/lodash-es/_cloneRegExp.js +7 -0
- package/dist/node_modules/lodash-es/_cloneSymbol.js +7 -0
- package/dist/node_modules/lodash-es/_cloneTypedArray.js +7 -0
- package/dist/node_modules/lodash-es/_compareAscending.js +11 -0
- package/dist/node_modules/lodash-es/_compareMultiple.js +10 -0
- package/dist/node_modules/lodash-es/_copyArray.js +7 -0
- package/dist/node_modules/lodash-es/_copyObject.js +13 -0
- package/dist/node_modules/lodash-es/_copySymbols.js +7 -0
- package/dist/node_modules/lodash-es/_copySymbolsIn.js +7 -0
- package/dist/node_modules/lodash-es/_coreJsData.js +3 -0
- package/dist/node_modules/lodash-es/_createAggregator.js +12 -0
- package/dist/node_modules/lodash-es/_createAssigner.js +14 -0
- package/dist/node_modules/lodash-es/_createBaseEach.js +11 -0
- package/dist/node_modules/lodash-es/_createBaseFor.js +11 -0
- package/dist/node_modules/lodash-es/_createFind.js +18 -0
- package/dist/node_modules/lodash-es/_createRange.js +10 -0
- package/dist/node_modules/lodash-es/_createSet.js +7 -0
- package/dist/node_modules/lodash-es/_defineProperty.js +8 -0
- package/dist/node_modules/lodash-es/_equalArrays.js +34 -0
- package/dist/node_modules/lodash-es/_equalByTag.js +34 -0
- package/dist/node_modules/lodash-es/_equalObjects.js +31 -0
- package/dist/node_modules/lodash-es/_flatRest.js +8 -0
- package/dist/node_modules/lodash-es/_freeGlobal.js +2 -0
- package/dist/node_modules/lodash-es/_getAllKeys.js +8 -0
- package/dist/node_modules/lodash-es/_getAllKeysIn.js +8 -0
- package/dist/node_modules/lodash-es/_getMapData.js +7 -0
- package/dist/node_modules/lodash-es/_getMatchData.js +15 -0
- package/dist/node_modules/lodash-es/_getNative.js +8 -0
- package/dist/node_modules/lodash-es/_getPrototype.js +3 -0
- package/dist/node_modules/lodash-es/_getRawTag.js +13 -0
- package/dist/node_modules/lodash-es/_getSymbols.js +8 -0
- package/dist/node_modules/lodash-es/_getSymbolsIn.js +9 -0
- package/dist/node_modules/lodash-es/_getTag.js +21 -0
- package/dist/node_modules/lodash-es/_getValue.js +5 -0
- package/dist/node_modules/lodash-es/_hasPath.js +17 -0
- package/dist/node_modules/lodash-es/_hasUnicode.js +6 -0
- package/dist/node_modules/lodash-es/_hashClear.js +6 -0
- package/dist/node_modules/lodash-es/_hashDelete.js +6 -0
- package/dist/node_modules/lodash-es/_hashGet.js +12 -0
- package/dist/node_modules/lodash-es/_hashHas.js +8 -0
- package/dist/node_modules/lodash-es/_hashSet.js +8 -0
- package/dist/node_modules/lodash-es/_initCloneArray.js +7 -0
- package/dist/node_modules/lodash-es/_initCloneByTag.js +32 -0
- package/dist/node_modules/lodash-es/_initCloneObject.js +8 -0
- package/dist/node_modules/lodash-es/_isFlattenable.js +9 -0
- package/dist/node_modules/lodash-es/_isIndex.js +7 -0
- package/dist/node_modules/lodash-es/_isIterateeCall.js +11 -0
- package/dist/node_modules/lodash-es/_isKey.js +10 -0
- package/dist/node_modules/lodash-es/_isKeyable.js +6 -0
- package/dist/node_modules/lodash-es/_isMasked.js +10 -0
- package/dist/node_modules/lodash-es/_isPrototype.js +7 -0
- package/dist/node_modules/lodash-es/_isStrictComparable.js +6 -0
- package/dist/node_modules/lodash-es/_listCacheClear.js +5 -0
- package/dist/node_modules/lodash-es/_listCacheDelete.js +8 -0
- package/dist/node_modules/lodash-es/_listCacheGet.js +7 -0
- package/dist/node_modules/lodash-es/_listCacheHas.js +6 -0
- package/dist/node_modules/lodash-es/_listCacheSet.js +7 -0
- package/dist/node_modules/lodash-es/_mapCacheClear.js +12 -0
- package/dist/node_modules/lodash-es/_mapCacheDelete.js +7 -0
- package/dist/node_modules/lodash-es/_mapCacheGet.js +6 -0
- package/dist/node_modules/lodash-es/_mapCacheHas.js +6 -0
- package/dist/node_modules/lodash-es/_mapCacheSet.js +7 -0
- package/dist/node_modules/lodash-es/_mapToArray.js +8 -0
- package/dist/node_modules/lodash-es/_matchesStrictComparable.js +7 -0
- package/dist/node_modules/lodash-es/_memoizeCapped.js +10 -0
- package/dist/node_modules/lodash-es/_nativeCreate.js +3 -0
- package/dist/node_modules/lodash-es/_nativeKeys.js +3 -0
- package/dist/node_modules/lodash-es/_nativeKeysIn.js +7 -0
- package/dist/node_modules/lodash-es/_nodeUtil.js +7 -0
- package/dist/node_modules/lodash-es/_objectToString.js +6 -0
- package/dist/node_modules/lodash-es/_overArg.js +7 -0
- package/dist/node_modules/lodash-es/_overRest.js +12 -0
- package/dist/node_modules/lodash-es/_root.js +3 -0
- package/dist/node_modules/lodash-es/_safeGet.js +5 -0
- package/dist/node_modules/lodash-es/_setCacheAdd.js +6 -0
- package/dist/node_modules/lodash-es/_setCacheHas.js +5 -0
- package/dist/node_modules/lodash-es/_setToArray.js +8 -0
- package/dist/node_modules/lodash-es/_setToString.js +4 -0
- package/dist/node_modules/lodash-es/_shortOut.js +13 -0
- package/dist/node_modules/lodash-es/_stackClear.js +6 -0
- package/dist/node_modules/lodash-es/_stackDelete.js +6 -0
- package/dist/node_modules/lodash-es/_stackGet.js +5 -0
- package/dist/node_modules/lodash-es/_stackHas.js +5 -0
- package/dist/node_modules/lodash-es/_stackSet.js +15 -0
- package/dist/node_modules/lodash-es/_strictIndexOf.js +6 -0
- package/dist/node_modules/lodash-es/_stringSize.js +8 -0
- package/dist/node_modules/lodash-es/_stringToPath.js +8 -0
- package/dist/node_modules/lodash-es/_toKey.js +9 -0
- package/dist/node_modules/lodash-es/_toSource.js +14 -0
- package/dist/node_modules/lodash-es/_trimmedEndIndex.js +7 -0
- package/dist/node_modules/lodash-es/_unicodeSize.js +17 -0
- package/dist/node_modules/lodash-es/assign.js +14 -0
- package/dist/node_modules/lodash-es/clone.js +7 -0
- package/dist/node_modules/lodash-es/cloneDeep.js +7 -0
- package/dist/node_modules/lodash-es/compact.js +9 -0
- package/dist/node_modules/lodash-es/constant.js +7 -0
- package/dist/node_modules/lodash-es/defaults.js +14 -0
- package/dist/node_modules/lodash-es/difference.js +8 -0
- package/dist/node_modules/lodash-es/drop.js +8 -0
- package/dist/node_modules/lodash-es/dropRight.js +8 -0
- package/dist/node_modules/lodash-es/eq.js +5 -0
- package/dist/node_modules/lodash-es/every.js +11 -0
- package/dist/node_modules/lodash-es/filter.js +9 -0
- package/dist/node_modules/lodash-es/find.js +4 -0
- package/dist/node_modules/lodash-es/findIndex.js +12 -0
- package/dist/node_modules/lodash-es/flatMap.js +7 -0
- package/dist/node_modules/lodash-es/flatten.js +6 -0
- package/dist/node_modules/lodash-es/forEach.js +9 -0
- package/dist/node_modules/lodash-es/forIn.js +8 -0
- package/dist/node_modules/lodash-es/forOwn.js +7 -0
- package/dist/node_modules/lodash-es/get.js +7 -0
- package/dist/node_modules/lodash-es/groupBy.js +6 -0
- package/dist/node_modules/lodash-es/has.js +7 -0
- package/dist/node_modules/lodash-es/hasIn.js +7 -0
- package/dist/node_modules/lodash-es/head.js +5 -0
- package/dist/node_modules/lodash-es/identity.js +5 -0
- package/dist/node_modules/lodash-es/includes.js +13 -0
- package/dist/node_modules/lodash-es/indexOf.js +11 -0
- package/dist/node_modules/lodash-es/isArguments.js +8 -0
- package/dist/node_modules/lodash-es/isArray.js +2 -0
- package/dist/node_modules/lodash-es/isArrayLike.js +7 -0
- package/dist/node_modules/lodash-es/isArrayLikeObject.js +7 -0
- package/dist/node_modules/lodash-es/isBuffer.js +4 -0
- package/dist/node_modules/lodash-es/isEmpty.js +20 -0
- package/dist/node_modules/lodash-es/isFunction.js +10 -0
- package/dist/node_modules/lodash-es/isLength.js +6 -0
- package/dist/node_modules/lodash-es/isMap.js +5 -0
- package/dist/node_modules/lodash-es/isObject.js +6 -0
- package/dist/node_modules/lodash-es/isObjectLike.js +5 -0
- package/dist/node_modules/lodash-es/isPlainObject.js +13 -0
- package/dist/node_modules/lodash-es/isRegExp.js +5 -0
- package/dist/node_modules/lodash-es/isSet.js +5 -0
- package/dist/node_modules/lodash-es/isString.js +9 -0
- package/dist/node_modules/lodash-es/isSymbol.js +8 -0
- package/dist/node_modules/lodash-es/isTypedArray.js +5 -0
- package/dist/node_modules/lodash-es/isUndefined.js +5 -0
- package/dist/node_modules/lodash-es/keys.js +8 -0
- package/dist/node_modules/lodash-es/keysIn.js +8 -0
- package/dist/node_modules/lodash-es/last.js +6 -0
- package/dist/node_modules/lodash-es/map.js +9 -0
- package/dist/node_modules/lodash-es/mapValues.js +11 -0
- package/dist/node_modules/lodash-es/max.js +8 -0
- package/dist/node_modules/lodash-es/memoize.js +15 -0
- package/dist/node_modules/lodash-es/merge.js +6 -0
- package/dist/node_modules/lodash-es/min.js +8 -0
- package/dist/node_modules/lodash-es/minBy.js +8 -0
- package/dist/node_modules/lodash-es/negate.js +16 -0
- package/dist/node_modules/lodash-es/noop.js +3 -0
- package/dist/node_modules/lodash-es/now.js +5 -0
- package/dist/node_modules/lodash-es/pick.js +6 -0
- package/dist/node_modules/lodash-es/pickBy.js +15 -0
- package/dist/node_modules/lodash-es/property.js +9 -0
- package/dist/node_modules/lodash-es/range.js +3 -0
- package/dist/node_modules/lodash-es/reduce.js +11 -0
- package/dist/node_modules/lodash-es/reject.js +10 -0
- package/dist/node_modules/lodash-es/size.js +14 -0
- package/dist/node_modules/lodash-es/some.js +11 -0
- package/dist/node_modules/lodash-es/sortBy.js +10 -0
- package/dist/node_modules/lodash-es/stubArray.js +5 -0
- package/dist/node_modules/lodash-es/stubFalse.js +5 -0
- package/dist/node_modules/lodash-es/toFinite.js +7 -0
- package/dist/node_modules/lodash-es/toInteger.js +7 -0
- package/dist/node_modules/lodash-es/toNumber.js +18 -0
- package/dist/node_modules/lodash-es/toPlainObject.js +7 -0
- package/dist/node_modules/lodash-es/toString.js +6 -0
- package/dist/node_modules/lodash-es/union.js +8 -0
- package/dist/node_modules/lodash-es/uniq.js +6 -0
- package/dist/node_modules/lodash-es/uniqBy.js +7 -0
- package/dist/node_modules/lodash-es/uniqueId.js +8 -0
- package/dist/node_modules/lodash-es/values.js +7 -0
- package/dist/node_modules/lodash-es/zipObject.js +7 -0
- package/dist/node_modules/longest-streak/index.js +7 -0
- package/dist/node_modules/markdown-table/index.js +57 -0
- package/dist/node_modules/marked/lib/marked.esm.js +1384 -0
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +59 -0
- package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +5 -0
- package/dist/node_modules/mdast-util-gfm/lib/index.js +24 -0
- package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +127 -0
- package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +95 -0
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +47 -0
- package/dist/node_modules/mdast-util-gfm-table/lib/index.js +135 -0
- package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +56 -0
- package/dist/node_modules/mdast-util-math/lib/index.js +142 -0
- package/dist/node_modules/mdast-util-phrasing/lib/index.js +20 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +10 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +7 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +34 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +22 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +23 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +22 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +8 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +21 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +26 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +42 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +17 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +21 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +39 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +16 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +24 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +5 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +7 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +23 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +4 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +7 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +9 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +4 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +36 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +4 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +10 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +10 -0
- package/dist/node_modules/mdast-util-to-string/lib/index.js +22 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-VXUJARFQ.js +673 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VD42YOAC.js +3010 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-YG6GDRKO.js +2955 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BX2VUAB.js +6 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.js +8 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ABZYJK2D.js +1547 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AGHRB4JF.js +29 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ATLVNIR6.js +65 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-B4BG7PRW.js +3110 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-CVBHYZKI.js +10 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DI55MBZ5.js +1994 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DR5Q36YT.js +135 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EXTU4WIE.js +9 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-FMBD7UC4.js +3 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HN2XXSSU.js +74 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JA3XYJ7Z.js +247 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JZLCHNYA.js +3516 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-MI3HLSF2.js +1140 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-N4CR4FBY.js +39 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QN33PNHL.js +23 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QXUST7PY.js +497 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QZHKN3VN.js +11 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-S3R3BYOJ.js +338 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TZMSLE5B.js +55 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-2ON5EDUG.js +26 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-WZHVMYZB.js +26 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.js +219 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-6UL2VRFP.js +263 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-PSM6KHXK.js +283 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-QEK2KX5R.js +211 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-S2PKOQOG.js +129 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-Q2GNP2WA.js +1599 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-NV44I4VS.js +4128 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-JELNMOA3.js +1688 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-V2S2FVAM.js +621 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-HS3SLOUP.js +18 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-XKPGCS4Q.js +883 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-3W4ZIXB7.js +970 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-VGOIOE7T.js +931 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-ADFJNKIX.js +117 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-AYHSOK5B.js +1970 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-UZGBJVZJ.js +2187 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-TZEHDZUN.js +519 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WL72ISMW.js +3560 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FKZM4ZOC.js +220 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-4FDKWEC3.js +25 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-IT6M3QCI.js +833 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-PRI3JC2R.js +1975 -0
- package/dist/node_modules/mermaid/dist/mermaid.core.js +662 -0
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +16 -0
- package/dist/node_modules/micromark-extension-gfm/index.js +16 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +172 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +191 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +94 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +41 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +18 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +199 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +32 -0
- package/dist/node_modules/micromark-extension-math/lib/math-flow.js +72 -0
- package/dist/node_modules/micromark-extension-math/lib/math-text.js +44 -0
- package/dist/node_modules/micromark-extension-math/lib/syntax.js +9 -0
- package/dist/node_modules/micromark-factory-space/index.js +12 -0
- package/dist/node_modules/micromark-util-character/index.js +21 -0
- package/dist/node_modules/micromark-util-chunked/index.js +6 -0
- package/dist/node_modules/micromark-util-classify-character/index.js +6 -0
- package/dist/node_modules/micromark-util-combine-extensions/index.js +24 -0
- package/dist/node_modules/micromark-util-normalize-identifier/index.js +4 -0
- package/dist/node_modules/micromark-util-resolve-all/index.js +9 -0
- package/dist/node_modules/property-information/index.js +23 -0
- package/dist/node_modules/property-information/lib/aria.js +59 -0
- package/dist/node_modules/property-information/lib/find.js +29 -0
- package/dist/node_modules/property-information/lib/html.js +314 -0
- package/dist/node_modules/property-information/lib/normalize.js +4 -0
- package/dist/node_modules/property-information/lib/svg.js +560 -0
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +5 -0
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +4 -0
- package/dist/node_modules/property-information/lib/util/create.js +12 -0
- package/dist/node_modules/property-information/lib/util/defined-info.js +16 -0
- package/dist/node_modules/property-information/lib/util/info.js +7 -0
- package/dist/node_modules/property-information/lib/util/merge.js +7 -0
- package/dist/node_modules/property-information/lib/util/schema.js +7 -0
- package/dist/node_modules/property-information/lib/util/types.js +15 -0
- package/dist/node_modules/property-information/lib/xlink.js +17 -0
- package/dist/node_modules/property-information/lib/xml.js +13 -0
- package/dist/node_modules/property-information/lib/xmlns.js +12 -0
- package/dist/node_modules/rehype-katex/lib/index.js +60 -0
- package/dist/node_modules/remark-gfm/lib/index.js +8 -0
- package/dist/node_modules/remark-math/lib/index.js +8 -0
- package/dist/node_modules/roughjs/bundled/rough.esm.js +1350 -0
- package/dist/node_modules/space-separated-tokens/index.js +5 -0
- package/dist/node_modules/stylis/src/Enum.js +2 -0
- package/dist/node_modules/stylis/src/Parser.js +93 -0
- package/dist/node_modules/stylis/src/Serializer.js +19 -0
- package/dist/node_modules/stylis/src/Tokenizer.js +104 -0
- package/dist/node_modules/stylis/src/Utility.js +26 -0
- package/dist/node_modules/ts-dedent/esm/index.js +25 -0
- package/dist/node_modules/unist-util-find-after/lib/index.js +10 -0
- package/dist/node_modules/unist-util-is/lib/index.js +45 -0
- package/dist/node_modules/unist-util-visit/lib/index.js +10 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +4 -0
- package/dist/node_modules/unist-util-visit-parents/lib/index.js +35 -0
- package/dist/node_modules/uuid/dist/esm-browser/native.js +2 -0
- package/dist/node_modules/uuid/dist/esm-browser/rng.js +9 -0
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js +6 -0
- package/dist/node_modules/uuid/dist/esm-browser/v4.js +17 -0
- package/dist/node_modules/vscode-jsonrpc/browser.js +7 -0
- package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +52 -0
- package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +120 -0
- package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +337 -0
- package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +57 -0
- package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +647 -0
- package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +13 -0
- package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +64 -0
- package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +34 -0
- package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +235 -0
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +93 -0
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +129 -0
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +85 -0
- package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +161 -0
- package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +18 -0
- package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +44 -0
- package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +58 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +28 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +36 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +12 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +31 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +19 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +15 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +11 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +11 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +33 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +35 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +15 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +11 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +19 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +11 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +15 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +674 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +11 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +19 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +126 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +24 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +11 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +31 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +11 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +11 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +19 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +15 -0
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +42 -0
- package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +138 -0
- package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +1084 -0
- package/dist/node_modules/vscode-uri/lib/esm/index.js +373 -0
- package/dist/node_modules/web-namespaces/index.js +9 -0
- package/dist/pages/WorkspacePage.js +63 -0
- package/dist/pages/WorkspacesPage.js +36 -0
- package/package.json +32 -32
|
@@ -0,0 +1,621 @@
|
|
|
1
|
+
import { __name, log } from "./chunk-AGHRB4JF.js";
|
|
2
|
+
import { clear, common_default, defaultConfig_default, getAccDescription, getAccTitle, getConfig, getConfig2, getDiagramTitle, setAccDescription, setAccTitle, setDiagramTitle, setupGraphViewbox2 } from "./chunk-ABZYJK2D.js";
|
|
3
|
+
import select_default from "../../../../d3-selection/src/select.js";
|
|
4
|
+
import "../../../../d3/src/index.js";
|
|
5
|
+
import { cleanAndMerge, random, utils_default } from "./chunk-S3R3BYOJ.js";
|
|
6
|
+
import { populateCommonDb } from "./chunk-4BX2VUAB.js";
|
|
7
|
+
import { parse } from "../../../../@mermaid-js/parser/dist/mermaid-parser.core.js";
|
|
8
|
+
import { ImperativeState } from "./chunk-QZHKN3VN.js";
|
|
9
|
+
var commitType = {
|
|
10
|
+
NORMAL: 0,
|
|
11
|
+
REVERSE: 1,
|
|
12
|
+
HIGHLIGHT: 2,
|
|
13
|
+
MERGE: 3,
|
|
14
|
+
CHERRY_PICK: 4
|
|
15
|
+
}, DEFAULT_GITGRAPH_CONFIG = defaultConfig_default.gitGraph, getConfig3 = /* @__PURE__ */ __name(() => cleanAndMerge({
|
|
16
|
+
...DEFAULT_GITGRAPH_CONFIG,
|
|
17
|
+
...getConfig().gitGraph
|
|
18
|
+
}), "getConfig"), state = new ImperativeState(() => {
|
|
19
|
+
let f = getConfig3(), V = f.mainBranchName, H = f.mainBranchOrder;
|
|
20
|
+
return {
|
|
21
|
+
mainBranchName: V,
|
|
22
|
+
commits: /* @__PURE__ */ new Map(),
|
|
23
|
+
head: null,
|
|
24
|
+
branchConfig: /* @__PURE__ */ new Map([[V, {
|
|
25
|
+
name: V,
|
|
26
|
+
order: H
|
|
27
|
+
}]]),
|
|
28
|
+
branches: /* @__PURE__ */ new Map([[V, null]]),
|
|
29
|
+
currBranch: V,
|
|
30
|
+
direction: "LR",
|
|
31
|
+
seq: 0,
|
|
32
|
+
options: {}
|
|
33
|
+
};
|
|
34
|
+
});
|
|
35
|
+
function getID() {
|
|
36
|
+
return random({ length: 7 });
|
|
37
|
+
}
|
|
38
|
+
__name(getID, "getID");
|
|
39
|
+
function uniqBy(f, V) {
|
|
40
|
+
let H = /* @__PURE__ */ Object.create(null);
|
|
41
|
+
return f.reduce((f, U) => {
|
|
42
|
+
let W = V(U);
|
|
43
|
+
return H[W] || (H[W] = !0, f.push(U)), f;
|
|
44
|
+
}, []);
|
|
45
|
+
}
|
|
46
|
+
__name(uniqBy, "uniqBy");
|
|
47
|
+
var setDirection = /* @__PURE__ */ __name(function(f) {
|
|
48
|
+
state.records.direction = f;
|
|
49
|
+
}, "setDirection"), setOptions = /* @__PURE__ */ __name(function(f) {
|
|
50
|
+
log.debug("options str", f), f = f?.trim(), f ||= "{}";
|
|
51
|
+
try {
|
|
52
|
+
state.records.options = JSON.parse(f);
|
|
53
|
+
} catch (f) {
|
|
54
|
+
log.error("error while parsing gitGraph options", f.message);
|
|
55
|
+
}
|
|
56
|
+
}, "setOptions"), getOptions = /* @__PURE__ */ __name(function() {
|
|
57
|
+
return state.records.options;
|
|
58
|
+
}, "getOptions"), commit = /* @__PURE__ */ __name(function(f) {
|
|
59
|
+
let H = f.msg, W = f.id, G = f.type, K = f.tags;
|
|
60
|
+
log.info("commit", H, W, G, K), log.debug("Entering commit:", H, W, G, K);
|
|
61
|
+
let q = getConfig3();
|
|
62
|
+
W = common_default.sanitizeText(W, q), H = common_default.sanitizeText(H, q), K = K?.map((f) => common_default.sanitizeText(f, q));
|
|
63
|
+
let J = {
|
|
64
|
+
id: W || state.records.seq + "-" + getID(),
|
|
65
|
+
message: H,
|
|
66
|
+
seq: state.records.seq++,
|
|
67
|
+
type: G ?? commitType.NORMAL,
|
|
68
|
+
tags: K ?? [],
|
|
69
|
+
parents: state.records.head == null ? [] : [state.records.head.id],
|
|
70
|
+
branch: state.records.currBranch
|
|
71
|
+
};
|
|
72
|
+
state.records.head = J, log.info("main branch", q.mainBranchName), state.records.commits.has(J.id) && log.warn(`Commit ID ${J.id} already exists`), state.records.commits.set(J.id, J), state.records.branches.set(state.records.currBranch, J.id), log.debug("in pushCommit " + J.id);
|
|
73
|
+
}, "commit"), branch = /* @__PURE__ */ __name(function(f) {
|
|
74
|
+
let H = f.name, W = f.order;
|
|
75
|
+
if (H = common_default.sanitizeText(H, getConfig3()), state.records.branches.has(H)) throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${H}")`);
|
|
76
|
+
state.records.branches.set(H, state.records.head == null ? null : state.records.head.id), state.records.branchConfig.set(H, {
|
|
77
|
+
name: H,
|
|
78
|
+
order: W
|
|
79
|
+
}), checkout(H), log.debug("in createBranch");
|
|
80
|
+
}, "branch"), merge = /* @__PURE__ */ __name((f) => {
|
|
81
|
+
let H = f.branch, W = f.id, G = f.type, K = f.tags, q = getConfig3();
|
|
82
|
+
H = common_default.sanitizeText(H, q), W &&= common_default.sanitizeText(W, q);
|
|
83
|
+
let J = state.records.branches.get(state.records.currBranch), Y = state.records.branches.get(H), X = J ? state.records.commits.get(J) : void 0, Z = Y ? state.records.commits.get(Y) : void 0;
|
|
84
|
+
if (X && Z && X.branch === H) throw Error(`Cannot merge branch '${H}' into itself.`);
|
|
85
|
+
if (state.records.currBranch === H) {
|
|
86
|
+
let f = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Cannot merge a branch to itself");
|
|
87
|
+
throw f.hash = {
|
|
88
|
+
text: `merge ${H}`,
|
|
89
|
+
token: `merge ${H}`,
|
|
90
|
+
expected: ["branch abc"]
|
|
91
|
+
}, f;
|
|
92
|
+
}
|
|
93
|
+
if (X === void 0 || !X) {
|
|
94
|
+
let f = /* @__PURE__ */ Error(`Incorrect usage of "merge". Current branch (${state.records.currBranch})has no commits`);
|
|
95
|
+
throw f.hash = {
|
|
96
|
+
text: `merge ${H}`,
|
|
97
|
+
token: `merge ${H}`,
|
|
98
|
+
expected: ["commit"]
|
|
99
|
+
}, f;
|
|
100
|
+
}
|
|
101
|
+
if (!state.records.branches.has(H)) {
|
|
102
|
+
let f = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + H + ") does not exist");
|
|
103
|
+
throw f.hash = {
|
|
104
|
+
text: `merge ${H}`,
|
|
105
|
+
token: `merge ${H}`,
|
|
106
|
+
expected: [`branch ${H}`]
|
|
107
|
+
}, f;
|
|
108
|
+
}
|
|
109
|
+
if (Z === void 0 || !Z) {
|
|
110
|
+
let f = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + H + ") has no commits");
|
|
111
|
+
throw f.hash = {
|
|
112
|
+
text: `merge ${H}`,
|
|
113
|
+
token: `merge ${H}`,
|
|
114
|
+
expected: ["\"commit\""]
|
|
115
|
+
}, f;
|
|
116
|
+
}
|
|
117
|
+
if (X === Z) {
|
|
118
|
+
let f = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Both branches have same head");
|
|
119
|
+
throw f.hash = {
|
|
120
|
+
text: `merge ${H}`,
|
|
121
|
+
token: `merge ${H}`,
|
|
122
|
+
expected: ["branch abc"]
|
|
123
|
+
}, f;
|
|
124
|
+
}
|
|
125
|
+
if (W && state.records.commits.has(W)) {
|
|
126
|
+
let f = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Commit with id:" + W + " already exists, use different custom id");
|
|
127
|
+
throw f.hash = {
|
|
128
|
+
text: `merge ${H} ${W} ${G} ${K?.join(" ")}`,
|
|
129
|
+
token: `merge ${H} ${W} ${G} ${K?.join(" ")}`,
|
|
130
|
+
expected: [`merge ${H} ${W}_UNIQUE ${G} ${K?.join(" ")}`]
|
|
131
|
+
}, f;
|
|
132
|
+
}
|
|
133
|
+
let Q = Y || "", $ = {
|
|
134
|
+
id: W || `${state.records.seq}-${getID()}`,
|
|
135
|
+
message: `merged branch ${H} into ${state.records.currBranch}`,
|
|
136
|
+
seq: state.records.seq++,
|
|
137
|
+
parents: state.records.head == null ? [] : [state.records.head.id, Q],
|
|
138
|
+
branch: state.records.currBranch,
|
|
139
|
+
type: commitType.MERGE,
|
|
140
|
+
customType: G,
|
|
141
|
+
customId: !!W,
|
|
142
|
+
tags: K ?? []
|
|
143
|
+
};
|
|
144
|
+
state.records.head = $, state.records.commits.set($.id, $), state.records.branches.set(state.records.currBranch, $.id), log.debug(state.records.branches), log.debug("in mergeBranch");
|
|
145
|
+
}, "merge"), cherryPick = /* @__PURE__ */ __name(function(f) {
|
|
146
|
+
let H = f.id, W = f.targetId, G = f.tags, K = f.parent;
|
|
147
|
+
log.debug("Entering cherryPick:", H, W, G);
|
|
148
|
+
let q = getConfig3();
|
|
149
|
+
if (H = common_default.sanitizeText(H, q), W = common_default.sanitizeText(W, q), G = G?.map((f) => common_default.sanitizeText(f, q)), K = common_default.sanitizeText(K, q), !H || !state.records.commits.has(H)) {
|
|
150
|
+
let f = /* @__PURE__ */ Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
|
|
151
|
+
throw f.hash = {
|
|
152
|
+
text: `cherryPick ${H} ${W}`,
|
|
153
|
+
token: `cherryPick ${H} ${W}`,
|
|
154
|
+
expected: ["cherry-pick abc"]
|
|
155
|
+
}, f;
|
|
156
|
+
}
|
|
157
|
+
let J = state.records.commits.get(H);
|
|
158
|
+
if (J === void 0 || !J) throw Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
|
|
159
|
+
if (K && !(Array.isArray(J.parents) && J.parents.includes(K))) throw /* @__PURE__ */ Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");
|
|
160
|
+
let Y = J.branch;
|
|
161
|
+
if (J.type === commitType.MERGE && !K) throw /* @__PURE__ */ Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");
|
|
162
|
+
if (!W || !state.records.commits.has(W)) {
|
|
163
|
+
if (Y === state.records.currBranch) {
|
|
164
|
+
let f = /* @__PURE__ */ Error("Incorrect usage of \"cherryPick\". Source commit is already on current branch");
|
|
165
|
+
throw f.hash = {
|
|
166
|
+
text: `cherryPick ${H} ${W}`,
|
|
167
|
+
token: `cherryPick ${H} ${W}`,
|
|
168
|
+
expected: ["cherry-pick abc"]
|
|
169
|
+
}, f;
|
|
170
|
+
}
|
|
171
|
+
let f = state.records.branches.get(state.records.currBranch);
|
|
172
|
+
if (f === void 0 || !f) {
|
|
173
|
+
let f = /* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${state.records.currBranch})has no commits`);
|
|
174
|
+
throw f.hash = {
|
|
175
|
+
text: `cherryPick ${H} ${W}`,
|
|
176
|
+
token: `cherryPick ${H} ${W}`,
|
|
177
|
+
expected: ["cherry-pick abc"]
|
|
178
|
+
}, f;
|
|
179
|
+
}
|
|
180
|
+
let U = state.records.commits.get(f);
|
|
181
|
+
if (U === void 0 || !U) {
|
|
182
|
+
let f = /* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${state.records.currBranch})has no commits`);
|
|
183
|
+
throw f.hash = {
|
|
184
|
+
text: `cherryPick ${H} ${W}`,
|
|
185
|
+
token: `cherryPick ${H} ${W}`,
|
|
186
|
+
expected: ["cherry-pick abc"]
|
|
187
|
+
}, f;
|
|
188
|
+
}
|
|
189
|
+
let q = {
|
|
190
|
+
id: state.records.seq + "-" + getID(),
|
|
191
|
+
message: `cherry-picked ${J?.message} into ${state.records.currBranch}`,
|
|
192
|
+
seq: state.records.seq++,
|
|
193
|
+
parents: state.records.head == null ? [] : [state.records.head.id, J.id],
|
|
194
|
+
branch: state.records.currBranch,
|
|
195
|
+
type: commitType.CHERRY_PICK,
|
|
196
|
+
tags: G ? G.filter(Boolean) : [`cherry-pick:${J.id}${J.type === commitType.MERGE ? `|parent:${K}` : ""}`]
|
|
197
|
+
};
|
|
198
|
+
state.records.head = q, state.records.commits.set(q.id, q), state.records.branches.set(state.records.currBranch, q.id), log.debug(state.records.branches), log.debug("in cherryPick");
|
|
199
|
+
}
|
|
200
|
+
}, "cherryPick"), checkout = /* @__PURE__ */ __name(function(f) {
|
|
201
|
+
if (f = common_default.sanitizeText(f, getConfig3()), state.records.branches.has(f)) {
|
|
202
|
+
state.records.currBranch = f;
|
|
203
|
+
let V = state.records.branches.get(state.records.currBranch);
|
|
204
|
+
V === void 0 || !V ? state.records.head = null : state.records.head = state.records.commits.get(V) ?? null;
|
|
205
|
+
} else {
|
|
206
|
+
let V = /* @__PURE__ */ Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${f}")`);
|
|
207
|
+
throw V.hash = {
|
|
208
|
+
text: `checkout ${f}`,
|
|
209
|
+
token: `checkout ${f}`,
|
|
210
|
+
expected: [`branch ${f}`]
|
|
211
|
+
}, V;
|
|
212
|
+
}
|
|
213
|
+
}, "checkout");
|
|
214
|
+
function upsert(f, V, H) {
|
|
215
|
+
let U = f.indexOf(V);
|
|
216
|
+
U === -1 ? f.push(H) : f.splice(U, 1, H);
|
|
217
|
+
}
|
|
218
|
+
__name(upsert, "upsert");
|
|
219
|
+
function prettyPrintCommitHistory(f) {
|
|
220
|
+
let H = f.reduce((f, V) => f.seq > V.seq ? f : V, f[0]), U = "";
|
|
221
|
+
f.forEach(function(f) {
|
|
222
|
+
f === H ? U += " *" : U += " |";
|
|
223
|
+
});
|
|
224
|
+
let W = [
|
|
225
|
+
U,
|
|
226
|
+
H.id,
|
|
227
|
+
H.seq
|
|
228
|
+
];
|
|
229
|
+
for (let f in state.records.branches) state.records.branches.get(f) === H.id && W.push(f);
|
|
230
|
+
if (log.debug(W.join(" ")), H.parents && H.parents.length == 2 && H.parents[0] && H.parents[1]) {
|
|
231
|
+
let V = state.records.commits.get(H.parents[0]);
|
|
232
|
+
upsert(f, H, V), H.parents[1] && f.push(state.records.commits.get(H.parents[1]));
|
|
233
|
+
} else if (H.parents.length == 0) return;
|
|
234
|
+
else if (H.parents[0]) {
|
|
235
|
+
let V = state.records.commits.get(H.parents[0]);
|
|
236
|
+
upsert(f, H, V);
|
|
237
|
+
}
|
|
238
|
+
f = uniqBy(f, (f) => f.id), prettyPrintCommitHistory(f);
|
|
239
|
+
}
|
|
240
|
+
__name(prettyPrintCommitHistory, "prettyPrintCommitHistory");
|
|
241
|
+
var prettyPrint = /* @__PURE__ */ __name(function() {
|
|
242
|
+
log.debug(state.records.commits);
|
|
243
|
+
let f = getCommitsArray()[0];
|
|
244
|
+
prettyPrintCommitHistory([f]);
|
|
245
|
+
}, "prettyPrint"), clear2 = /* @__PURE__ */ __name(function() {
|
|
246
|
+
state.reset(), clear();
|
|
247
|
+
}, "clear"), getBranchesAsObjArray = /* @__PURE__ */ __name(function() {
|
|
248
|
+
return [...state.records.branchConfig.values()].map((f, V) => f.order !== null && f.order !== void 0 ? f : {
|
|
249
|
+
...f,
|
|
250
|
+
order: parseFloat(`0.${V}`)
|
|
251
|
+
}).sort((f, V) => (f.order ?? 0) - (V.order ?? 0)).map(({ name: f }) => ({ name: f }));
|
|
252
|
+
}, "getBranchesAsObjArray"), getBranches = /* @__PURE__ */ __name(function() {
|
|
253
|
+
return state.records.branches;
|
|
254
|
+
}, "getBranches"), getCommits = /* @__PURE__ */ __name(function() {
|
|
255
|
+
return state.records.commits;
|
|
256
|
+
}, "getCommits"), getCommitsArray = /* @__PURE__ */ __name(function() {
|
|
257
|
+
let f = [...state.records.commits.values()];
|
|
258
|
+
return f.forEach(function(f) {
|
|
259
|
+
log.debug(f.id);
|
|
260
|
+
}), f.sort((f, V) => f.seq - V.seq), f;
|
|
261
|
+
}, "getCommitsArray"), db = {
|
|
262
|
+
commitType,
|
|
263
|
+
getConfig: getConfig3,
|
|
264
|
+
setDirection,
|
|
265
|
+
setOptions,
|
|
266
|
+
getOptions,
|
|
267
|
+
commit,
|
|
268
|
+
branch,
|
|
269
|
+
merge,
|
|
270
|
+
cherryPick,
|
|
271
|
+
checkout,
|
|
272
|
+
prettyPrint,
|
|
273
|
+
clear: clear2,
|
|
274
|
+
getBranchesAsObjArray,
|
|
275
|
+
getBranches,
|
|
276
|
+
getCommits,
|
|
277
|
+
getCommitsArray,
|
|
278
|
+
getCurrentBranch: /* @__PURE__ */ __name(function() {
|
|
279
|
+
return state.records.currBranch;
|
|
280
|
+
}, "getCurrentBranch"),
|
|
281
|
+
getDirection: /* @__PURE__ */ __name(function() {
|
|
282
|
+
return state.records.direction;
|
|
283
|
+
}, "getDirection"),
|
|
284
|
+
getHead: /* @__PURE__ */ __name(function() {
|
|
285
|
+
return state.records.head;
|
|
286
|
+
}, "getHead"),
|
|
287
|
+
setAccTitle,
|
|
288
|
+
getAccTitle,
|
|
289
|
+
getAccDescription,
|
|
290
|
+
setAccDescription,
|
|
291
|
+
setDiagramTitle,
|
|
292
|
+
getDiagramTitle
|
|
293
|
+
}, populate = /* @__PURE__ */ __name((f, V) => {
|
|
294
|
+
populateCommonDb(f, V), f.dir && V.setDirection(f.dir);
|
|
295
|
+
for (let H of f.statements) parseStatement(H, V);
|
|
296
|
+
}, "populate"), parseStatement = /* @__PURE__ */ __name((H, U) => {
|
|
297
|
+
let W = {
|
|
298
|
+
Commit: /* @__PURE__ */ __name((f) => U.commit(parseCommit(f)), "Commit"),
|
|
299
|
+
Branch: /* @__PURE__ */ __name((f) => U.branch(parseBranch(f)), "Branch"),
|
|
300
|
+
Merge: /* @__PURE__ */ __name((f) => U.merge(parseMerge(f)), "Merge"),
|
|
301
|
+
Checkout: /* @__PURE__ */ __name((f) => U.checkout(parseCheckout(f)), "Checkout"),
|
|
302
|
+
CherryPicking: /* @__PURE__ */ __name((f) => U.cherryPick(parseCherryPicking(f)), "CherryPicking")
|
|
303
|
+
}[H.$type];
|
|
304
|
+
W ? W(H) : log.error(`Unknown statement type: ${H.$type}`);
|
|
305
|
+
}, "parseStatement"), parseCommit = /* @__PURE__ */ __name((f) => ({
|
|
306
|
+
id: f.id,
|
|
307
|
+
msg: f.message ?? "",
|
|
308
|
+
type: f.type === void 0 ? commitType.NORMAL : commitType[f.type],
|
|
309
|
+
tags: f.tags ?? void 0
|
|
310
|
+
}), "parseCommit"), parseBranch = /* @__PURE__ */ __name((f) => ({
|
|
311
|
+
name: f.name,
|
|
312
|
+
order: f.order ?? 0
|
|
313
|
+
}), "parseBranch"), parseMerge = /* @__PURE__ */ __name((f) => ({
|
|
314
|
+
branch: f.branch,
|
|
315
|
+
id: f.id ?? "",
|
|
316
|
+
type: f.type === void 0 ? void 0 : commitType[f.type],
|
|
317
|
+
tags: f.tags ?? void 0
|
|
318
|
+
}), "parseMerge"), parseCheckout = /* @__PURE__ */ __name((f) => f.branch, "parseCheckout"), parseCherryPicking = /* @__PURE__ */ __name((f) => ({
|
|
319
|
+
id: f.id,
|
|
320
|
+
targetId: "",
|
|
321
|
+
tags: f.tags?.length === 0 ? void 0 : f.tags,
|
|
322
|
+
parent: f.parent
|
|
323
|
+
}), "parseCherryPicking"), parser = { parse: /* @__PURE__ */ __name(async (f) => {
|
|
324
|
+
let H = await parse("gitGraph", f);
|
|
325
|
+
log.debug(H), populate(H, db);
|
|
326
|
+
}, "parse") }, DEFAULT_GITGRAPH_CONFIG2 = getConfig2()?.gitGraph, LAYOUT_OFFSET = 10, COMMIT_STEP = 40, PX = 4, PY = 2, THEME_COLOR_LIMIT = 8, branchPos = /* @__PURE__ */ new Map(), commitPos = /* @__PURE__ */ new Map(), defaultPos = 30, allCommitsDict = /* @__PURE__ */ new Map(), lanes = [], maxPos = 0, dir = "LR", clear3 = /* @__PURE__ */ __name(() => {
|
|
327
|
+
branchPos.clear(), commitPos.clear(), allCommitsDict.clear(), maxPos = 0, lanes = [], dir = "LR";
|
|
328
|
+
}, "clear"), drawText = /* @__PURE__ */ __name((f) => {
|
|
329
|
+
let V = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
330
|
+
return (typeof f == "string" ? f.split(/\\n|\n|<br\s*\/?>/gi) : f).forEach((f) => {
|
|
331
|
+
let H = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
332
|
+
H.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), H.setAttribute("dy", "1em"), H.setAttribute("x", "0"), H.setAttribute("class", "row"), H.textContent = f.trim(), V.appendChild(H);
|
|
333
|
+
}), V;
|
|
334
|
+
}, "drawText"), findClosestParent = /* @__PURE__ */ __name((V) => {
|
|
335
|
+
let H, U, W;
|
|
336
|
+
return dir === "BT" ? (U = /* @__PURE__ */ __name((f, V) => f <= V, "comparisonFunc"), W = Infinity) : (U = /* @__PURE__ */ __name((f, V) => f >= V, "comparisonFunc"), W = 0), V.forEach((f) => {
|
|
337
|
+
let V = dir === "TB" || dir == "BT" ? commitPos.get(f)?.y : commitPos.get(f)?.x;
|
|
338
|
+
V !== void 0 && U(V, W) && (H = f, W = V);
|
|
339
|
+
}), H;
|
|
340
|
+
}, "findClosestParent"), findClosestParentBT = /* @__PURE__ */ __name((f) => {
|
|
341
|
+
let V = "", H = Infinity;
|
|
342
|
+
return f.forEach((f) => {
|
|
343
|
+
let U = commitPos.get(f).y;
|
|
344
|
+
U <= H && (V = f, H = U);
|
|
345
|
+
}), V || void 0;
|
|
346
|
+
}, "findClosestParentBT"), setParallelBTPos = /* @__PURE__ */ __name((f, V, H) => {
|
|
347
|
+
let U = H, W = H, G = [];
|
|
348
|
+
f.forEach((f) => {
|
|
349
|
+
let H = V.get(f);
|
|
350
|
+
if (!H) throw Error(`Commit not found for key ${f}`);
|
|
351
|
+
H.parents.length ? (U = calculateCommitPosition(H), W = Math.max(U, W)) : G.push(H), setCommitPosition(H, U);
|
|
352
|
+
}), U = W, G.forEach((f) => {
|
|
353
|
+
setRootPosition(f, U, H);
|
|
354
|
+
}), f.forEach((f) => {
|
|
355
|
+
let H = V.get(f);
|
|
356
|
+
if (H?.parents.length) {
|
|
357
|
+
let f = findClosestParentBT(H.parents);
|
|
358
|
+
U = commitPos.get(f).y - COMMIT_STEP, U <= W && (W = U);
|
|
359
|
+
let V = branchPos.get(H.branch).pos, G = U - LAYOUT_OFFSET;
|
|
360
|
+
commitPos.set(H.id, {
|
|
361
|
+
x: V,
|
|
362
|
+
y: G
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
});
|
|
366
|
+
}, "setParallelBTPos"), findClosestParentPos = /* @__PURE__ */ __name((f) => {
|
|
367
|
+
let V = findClosestParent(f.parents.filter((f) => f !== null));
|
|
368
|
+
if (!V) throw Error(`Closest parent not found for commit ${f.id}`);
|
|
369
|
+
let H = commitPos.get(V)?.y;
|
|
370
|
+
if (H === void 0) throw Error(`Closest parent position not found for commit ${f.id}`);
|
|
371
|
+
return H;
|
|
372
|
+
}, "findClosestParentPos"), calculateCommitPosition = /* @__PURE__ */ __name((f) => findClosestParentPos(f) + COMMIT_STEP, "calculateCommitPosition"), setCommitPosition = /* @__PURE__ */ __name((f, V) => {
|
|
373
|
+
let H = branchPos.get(f.branch);
|
|
374
|
+
if (!H) throw Error(`Branch not found for commit ${f.id}`);
|
|
375
|
+
let U = H.pos, W = V + LAYOUT_OFFSET;
|
|
376
|
+
return commitPos.set(f.id, {
|
|
377
|
+
x: U,
|
|
378
|
+
y: W
|
|
379
|
+
}), {
|
|
380
|
+
x: U,
|
|
381
|
+
y: W
|
|
382
|
+
};
|
|
383
|
+
}, "setCommitPosition"), setRootPosition = /* @__PURE__ */ __name((f, V, H) => {
|
|
384
|
+
let U = branchPos.get(f.branch);
|
|
385
|
+
if (!U) throw Error(`Branch not found for commit ${f.id}`);
|
|
386
|
+
let W = V + H, G = U.pos;
|
|
387
|
+
commitPos.set(f.id, {
|
|
388
|
+
x: G,
|
|
389
|
+
y: W
|
|
390
|
+
});
|
|
391
|
+
}, "setRootPosition"), drawCommitBullet = /* @__PURE__ */ __name((f, V, H, U, W, G) => {
|
|
392
|
+
if (G === commitType.HIGHLIGHT) f.append("rect").attr("x", H.x - 10).attr("y", H.y - 10).attr("width", 20).attr("height", 20).attr("class", `commit ${V.id} commit-highlight${W % THEME_COLOR_LIMIT} ${U}-outer`), f.append("rect").attr("x", H.x - 6).attr("y", H.y - 6).attr("width", 12).attr("height", 12).attr("class", `commit ${V.id} commit${W % THEME_COLOR_LIMIT} ${U}-inner`);
|
|
393
|
+
else if (G === commitType.CHERRY_PICK) f.append("circle").attr("cx", H.x).attr("cy", H.y).attr("r", 10).attr("class", `commit ${V.id} ${U}`), f.append("circle").attr("cx", H.x - 3).attr("cy", H.y + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${V.id} ${U}`), f.append("circle").attr("cx", H.x + 3).attr("cy", H.y + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${V.id} ${U}`), f.append("line").attr("x1", H.x + 3).attr("y1", H.y + 1).attr("x2", H.x).attr("y2", H.y - 5).attr("stroke", "#fff").attr("class", `commit ${V.id} ${U}`), f.append("line").attr("x1", H.x - 3).attr("y1", H.y + 1).attr("x2", H.x).attr("y2", H.y - 5).attr("stroke", "#fff").attr("class", `commit ${V.id} ${U}`);
|
|
394
|
+
else {
|
|
395
|
+
let K = f.append("circle");
|
|
396
|
+
if (K.attr("cx", H.x), K.attr("cy", H.y), K.attr("r", V.type === commitType.MERGE ? 9 : 10), K.attr("class", `commit ${V.id} commit${W % THEME_COLOR_LIMIT}`), G === commitType.MERGE) {
|
|
397
|
+
let G = f.append("circle");
|
|
398
|
+
G.attr("cx", H.x), G.attr("cy", H.y), G.attr("r", 6), G.attr("class", `commit ${U} ${V.id} commit${W % THEME_COLOR_LIMIT}`);
|
|
399
|
+
}
|
|
400
|
+
G === commitType.REVERSE && f.append("path").attr("d", `M ${H.x - 5},${H.y - 5}L${H.x + 5},${H.y + 5}M${H.x - 5},${H.y + 5}L${H.x + 5},${H.y - 5}`).attr("class", `commit ${U} ${V.id} commit${W % THEME_COLOR_LIMIT}`);
|
|
401
|
+
}
|
|
402
|
+
}, "drawCommitBullet"), drawCommitLabel = /* @__PURE__ */ __name((f, V, H, U) => {
|
|
403
|
+
if (V.type !== commitType.CHERRY_PICK && (V.customId && V.type === commitType.MERGE || V.type !== commitType.MERGE) && DEFAULT_GITGRAPH_CONFIG2?.showCommitLabel) {
|
|
404
|
+
let W = f.append("g"), G = W.insert("rect").attr("class", "commit-label-bkg"), K = W.append("text").attr("x", U).attr("y", H.y + 25).attr("class", "commit-label").text(V.id), q = K.node()?.getBBox();
|
|
405
|
+
if (q && (G.attr("x", H.posWithOffset - q.width / 2 - PY).attr("y", H.y + 13.5).attr("width", q.width + 2 * PY).attr("height", q.height + 2 * PY), dir === "TB" || dir === "BT" ? (G.attr("x", H.x - (q.width + 4 * PX + 5)).attr("y", H.y - 12), K.attr("x", H.x - (q.width + 4 * PX)).attr("y", H.y + q.height - 12)) : K.attr("x", H.posWithOffset - q.width / 2), DEFAULT_GITGRAPH_CONFIG2.rotateCommitLabel)) if (dir === "TB" || dir === "BT") K.attr("transform", "rotate(-45, " + H.x + ", " + H.y + ")"), G.attr("transform", "rotate(-45, " + H.x + ", " + H.y + ")");
|
|
406
|
+
else {
|
|
407
|
+
let f = -7.5 - (q.width + 10) / 25 * 9.5, V = 10 + q.width / 25 * 8.5;
|
|
408
|
+
W.attr("transform", "translate(" + f + ", " + V + ") rotate(-45, " + U + ", " + H.y + ")");
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}, "drawCommitLabel"), drawCommitTags = /* @__PURE__ */ __name((f, V, H, U) => {
|
|
412
|
+
if (V.tags.length > 0) {
|
|
413
|
+
let W = 0, G = 0, K = 0, q = [];
|
|
414
|
+
for (let U of V.tags.reverse()) {
|
|
415
|
+
let V = f.insert("polygon"), J = f.append("circle"), Y = f.append("text").attr("y", H.y - 16 - W).attr("class", "tag-label").text(U), X = Y.node()?.getBBox();
|
|
416
|
+
if (!X) throw Error("Tag bbox not found");
|
|
417
|
+
G = Math.max(G, X.width), K = Math.max(K, X.height), Y.attr("x", H.posWithOffset - X.width / 2), q.push({
|
|
418
|
+
tag: Y,
|
|
419
|
+
hole: J,
|
|
420
|
+
rect: V,
|
|
421
|
+
yOffset: W
|
|
422
|
+
}), W += 20;
|
|
423
|
+
}
|
|
424
|
+
for (let { tag: f, hole: V, rect: W, yOffset: J } of q) {
|
|
425
|
+
let q = K / 2, Y = H.y - 19.2 - J;
|
|
426
|
+
if (W.attr("class", "tag-label-bkg").attr("points", `
|
|
427
|
+
${U - G / 2 - PX / 2},${Y + PY}
|
|
428
|
+
${U - G / 2 - PX / 2},${Y - PY}
|
|
429
|
+
${H.posWithOffset - G / 2 - PX},${Y - q - PY}
|
|
430
|
+
${H.posWithOffset + G / 2 + PX},${Y - q - PY}
|
|
431
|
+
${H.posWithOffset + G / 2 + PX},${Y + q + PY}
|
|
432
|
+
${H.posWithOffset - G / 2 - PX},${Y + q + PY}`), V.attr("cy", Y).attr("cx", U - G / 2 + PX / 2).attr("r", 1.5).attr("class", "tag-hole"), dir === "TB" || dir === "BT") {
|
|
433
|
+
let K = U + J;
|
|
434
|
+
W.attr("class", "tag-label-bkg").attr("points", `
|
|
435
|
+
${H.x},${K + 2}
|
|
436
|
+
${H.x},${K - 2}
|
|
437
|
+
${H.x + LAYOUT_OFFSET},${K - q - 2}
|
|
438
|
+
${H.x + LAYOUT_OFFSET + G + 4},${K - q - 2}
|
|
439
|
+
${H.x + LAYOUT_OFFSET + G + 4},${K + q + 2}
|
|
440
|
+
${H.x + LAYOUT_OFFSET},${K + q + 2}`).attr("transform", "translate(12,12) rotate(45, " + H.x + "," + U + ")"), V.attr("cx", H.x + PX / 2).attr("cy", K).attr("transform", "translate(12,12) rotate(45, " + H.x + "," + U + ")"), f.attr("x", H.x + 5).attr("y", K + 3).attr("transform", "translate(14,14) rotate(45, " + H.x + "," + U + ")");
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}, "drawCommitTags"), getCommitClassType = /* @__PURE__ */ __name((f) => {
|
|
445
|
+
switch (f.customType ?? f.type) {
|
|
446
|
+
case commitType.NORMAL: return "commit-normal";
|
|
447
|
+
case commitType.REVERSE: return "commit-reverse";
|
|
448
|
+
case commitType.HIGHLIGHT: return "commit-highlight";
|
|
449
|
+
case commitType.MERGE: return "commit-merge";
|
|
450
|
+
case commitType.CHERRY_PICK: return "commit-cherry-pick";
|
|
451
|
+
default: return "commit-normal";
|
|
452
|
+
}
|
|
453
|
+
}, "getCommitClassType"), calculatePosition = /* @__PURE__ */ __name((f, V, H, U) => {
|
|
454
|
+
let W = {
|
|
455
|
+
x: 0,
|
|
456
|
+
y: 0
|
|
457
|
+
};
|
|
458
|
+
if (f.parents.length > 0) {
|
|
459
|
+
let H = findClosestParent(f.parents);
|
|
460
|
+
if (H) {
|
|
461
|
+
let G = U.get(H) ?? W;
|
|
462
|
+
return V === "TB" ? G.y + COMMIT_STEP : V === "BT" ? (U.get(f.id) ?? W).y - COMMIT_STEP : G.x + COMMIT_STEP;
|
|
463
|
+
}
|
|
464
|
+
} else if (V === "TB") return defaultPos;
|
|
465
|
+
else if (V === "BT") return (U.get(f.id) ?? W).y - COMMIT_STEP;
|
|
466
|
+
else return 0;
|
|
467
|
+
return 0;
|
|
468
|
+
}, "calculatePosition"), getCommitPosition = /* @__PURE__ */ __name((f, V, H) => {
|
|
469
|
+
let U = dir === "BT" && H ? V : V + LAYOUT_OFFSET, W = dir === "TB" || dir === "BT" ? U : branchPos.get(f.branch)?.pos, G = dir === "TB" || dir === "BT" ? branchPos.get(f.branch)?.pos : U;
|
|
470
|
+
if (G === void 0 || W === void 0) throw Error(`Position were undefined for commit ${f.id}`);
|
|
471
|
+
return {
|
|
472
|
+
x: G,
|
|
473
|
+
y: W,
|
|
474
|
+
posWithOffset: U
|
|
475
|
+
};
|
|
476
|
+
}, "getCommitPosition"), drawCommits = /* @__PURE__ */ __name((V, H, U) => {
|
|
477
|
+
if (!DEFAULT_GITGRAPH_CONFIG2) throw Error("GitGraph config not found");
|
|
478
|
+
let W = V.append("g").attr("class", "commit-bullets"), G = V.append("g").attr("class", "commit-labels"), K = dir === "TB" || dir === "BT" ? defaultPos : 0, q = [...H.keys()], J = DEFAULT_GITGRAPH_CONFIG2?.parallelCommits ?? !1, Y = /* @__PURE__ */ __name((f, V) => {
|
|
479
|
+
let U = H.get(f)?.seq, W = H.get(V)?.seq;
|
|
480
|
+
return U !== void 0 && W !== void 0 ? U - W : 0;
|
|
481
|
+
}, "sortKeys"), X = q.sort(Y);
|
|
482
|
+
dir === "BT" && (J && setParallelBTPos(X, H, K), X = X.reverse()), X.forEach((f) => {
|
|
483
|
+
let V = H.get(f);
|
|
484
|
+
if (!V) throw Error(`Commit not found for key ${f}`);
|
|
485
|
+
J && (K = calculatePosition(V, dir, K, commitPos));
|
|
486
|
+
let q = getCommitPosition(V, K, J);
|
|
487
|
+
if (U) {
|
|
488
|
+
let f = getCommitClassType(V), H = V.customType ?? V.type;
|
|
489
|
+
drawCommitBullet(W, V, q, f, branchPos.get(V.branch)?.index ?? 0, H), drawCommitLabel(G, V, q, K), drawCommitTags(G, V, q, K);
|
|
490
|
+
}
|
|
491
|
+
dir === "TB" || dir === "BT" ? commitPos.set(V.id, {
|
|
492
|
+
x: q.x,
|
|
493
|
+
y: q.posWithOffset
|
|
494
|
+
}) : commitPos.set(V.id, {
|
|
495
|
+
x: q.posWithOffset,
|
|
496
|
+
y: q.y
|
|
497
|
+
}), K = dir === "BT" && J ? K + COMMIT_STEP : K + COMMIT_STEP + LAYOUT_OFFSET, K > maxPos && (maxPos = K);
|
|
498
|
+
});
|
|
499
|
+
}, "drawCommits"), shouldRerouteArrow = /* @__PURE__ */ __name((V, H, U, W, G) => {
|
|
500
|
+
let K = (dir === "TB" || dir === "BT" ? U.x < W.x : U.y < W.y) ? H.branch : V.branch, q = /* @__PURE__ */ __name((f) => f.branch === K, "isOnBranchToGetCurve"), J = /* @__PURE__ */ __name((f) => f.seq > V.seq && f.seq < H.seq, "isBetweenCommits");
|
|
501
|
+
return [...G.values()].some((f) => J(f) && q(f));
|
|
502
|
+
}, "shouldRerouteArrow"), findLane = /* @__PURE__ */ __name((f, V, H = 0) => {
|
|
503
|
+
let U = f + Math.abs(f - V) / 2;
|
|
504
|
+
return H > 5 ? U : lanes.every((f) => Math.abs(f - U) >= 10) ? (lanes.push(U), U) : findLane(f, V - Math.abs(f - V) / 5, H + 1);
|
|
505
|
+
}, "findLane"), drawArrow = /* @__PURE__ */ __name((f, V, H, U) => {
|
|
506
|
+
let W = commitPos.get(V.id), G = commitPos.get(H.id);
|
|
507
|
+
if (W === void 0 || G === void 0) throw Error(`Commit positions not found for commits ${V.id} and ${H.id}`);
|
|
508
|
+
let K = shouldRerouteArrow(V, H, W, G, U), q = "", J = "", Y = 0, X = 0, Z = branchPos.get(H.branch)?.index;
|
|
509
|
+
H.type === commitType.MERGE && V.id !== H.parents[0] && (Z = branchPos.get(V.branch)?.index);
|
|
510
|
+
let Q;
|
|
511
|
+
if (K) {
|
|
512
|
+
q = "A 10 10, 0, 0, 0,", J = "A 10 10, 0, 0, 1,", Y = 10, X = 10;
|
|
513
|
+
let f = W.y < G.y ? findLane(W.y, G.y) : findLane(G.y, W.y), H = W.x < G.x ? findLane(W.x, G.x) : findLane(G.x, W.x);
|
|
514
|
+
dir === "TB" ? W.x < G.x ? Q = `M ${W.x} ${W.y} L ${H - Y} ${W.y} ${J} ${H} ${W.y + X} L ${H} ${G.y - Y} ${q} ${H + X} ${G.y} L ${G.x} ${G.y}` : (Z = branchPos.get(V.branch)?.index, Q = `M ${W.x} ${W.y} L ${H + Y} ${W.y} ${q} ${H} ${W.y + X} L ${H} ${G.y - Y} ${J} ${H - X} ${G.y} L ${G.x} ${G.y}`) : dir === "BT" ? W.x < G.x ? Q = `M ${W.x} ${W.y} L ${H - Y} ${W.y} ${q} ${H} ${W.y - X} L ${H} ${G.y + Y} ${J} ${H + X} ${G.y} L ${G.x} ${G.y}` : (Z = branchPos.get(V.branch)?.index, Q = `M ${W.x} ${W.y} L ${H + Y} ${W.y} ${J} ${H} ${W.y - X} L ${H} ${G.y + Y} ${q} ${H - X} ${G.y} L ${G.x} ${G.y}`) : W.y < G.y ? Q = `M ${W.x} ${W.y} L ${W.x} ${f - Y} ${q} ${W.x + X} ${f} L ${G.x - Y} ${f} ${J} ${G.x} ${f + X} L ${G.x} ${G.y}` : (Z = branchPos.get(V.branch)?.index, Q = `M ${W.x} ${W.y} L ${W.x} ${f + Y} ${J} ${W.x + X} ${f} L ${G.x - Y} ${f} ${q} ${G.x} ${f - X} L ${G.x} ${G.y}`);
|
|
515
|
+
} else q = "A 20 20, 0, 0, 0,", J = "A 20 20, 0, 0, 1,", Y = 20, X = 20, dir === "TB" ? (W.x < G.x && (Q = H.type === commitType.MERGE && V.id !== H.parents[0] ? `M ${W.x} ${W.y} L ${W.x} ${G.y - Y} ${q} ${W.x + X} ${G.y} L ${G.x} ${G.y}` : `M ${W.x} ${W.y} L ${G.x - Y} ${W.y} ${J} ${G.x} ${W.y + X} L ${G.x} ${G.y}`), W.x > G.x && (q = "A 20 20, 0, 0, 0,", J = "A 20 20, 0, 0, 1,", Y = 20, X = 20, Q = H.type === commitType.MERGE && V.id !== H.parents[0] ? `M ${W.x} ${W.y} L ${W.x} ${G.y - Y} ${J} ${W.x - X} ${G.y} L ${G.x} ${G.y}` : `M ${W.x} ${W.y} L ${G.x + Y} ${W.y} ${q} ${G.x} ${W.y + X} L ${G.x} ${G.y}`), W.x === G.x && (Q = `M ${W.x} ${W.y} L ${G.x} ${G.y}`)) : dir === "BT" ? (W.x < G.x && (Q = H.type === commitType.MERGE && V.id !== H.parents[0] ? `M ${W.x} ${W.y} L ${W.x} ${G.y + Y} ${J} ${W.x + X} ${G.y} L ${G.x} ${G.y}` : `M ${W.x} ${W.y} L ${G.x - Y} ${W.y} ${q} ${G.x} ${W.y - X} L ${G.x} ${G.y}`), W.x > G.x && (q = "A 20 20, 0, 0, 0,", J = "A 20 20, 0, 0, 1,", Y = 20, X = 20, Q = H.type === commitType.MERGE && V.id !== H.parents[0] ? `M ${W.x} ${W.y} L ${W.x} ${G.y + Y} ${q} ${W.x - X} ${G.y} L ${G.x} ${G.y}` : `M ${W.x} ${W.y} L ${G.x - Y} ${W.y} ${q} ${G.x} ${W.y - X} L ${G.x} ${G.y}`), W.x === G.x && (Q = `M ${W.x} ${W.y} L ${G.x} ${G.y}`)) : (W.y < G.y && (Q = H.type === commitType.MERGE && V.id !== H.parents[0] ? `M ${W.x} ${W.y} L ${G.x - Y} ${W.y} ${J} ${G.x} ${W.y + X} L ${G.x} ${G.y}` : `M ${W.x} ${W.y} L ${W.x} ${G.y - Y} ${q} ${W.x + X} ${G.y} L ${G.x} ${G.y}`), W.y > G.y && (Q = H.type === commitType.MERGE && V.id !== H.parents[0] ? `M ${W.x} ${W.y} L ${G.x - Y} ${W.y} ${q} ${G.x} ${W.y - X} L ${G.x} ${G.y}` : `M ${W.x} ${W.y} L ${W.x} ${G.y + Y} ${J} ${W.x + X} ${G.y} L ${G.x} ${G.y}`), W.y === G.y && (Q = `M ${W.x} ${W.y} L ${G.x} ${G.y}`));
|
|
516
|
+
if (Q === void 0) throw Error("Line definition not found");
|
|
517
|
+
f.append("path").attr("d", Q).attr("class", "arrow arrow" + Z % THEME_COLOR_LIMIT);
|
|
518
|
+
}, "drawArrow"), drawArrows = /* @__PURE__ */ __name((f, V) => {
|
|
519
|
+
let H = f.append("g").attr("class", "commit-arrows");
|
|
520
|
+
[...V.keys()].forEach((f) => {
|
|
521
|
+
let U = V.get(f);
|
|
522
|
+
U.parents && U.parents.length > 0 && U.parents.forEach((f) => {
|
|
523
|
+
drawArrow(H, V.get(f), U, V);
|
|
524
|
+
});
|
|
525
|
+
});
|
|
526
|
+
}, "drawArrows"), drawBranches = /* @__PURE__ */ __name((f, V) => {
|
|
527
|
+
let H = f.append("g");
|
|
528
|
+
V.forEach((f, V) => {
|
|
529
|
+
let U = V % THEME_COLOR_LIMIT, W = branchPos.get(f.name)?.pos;
|
|
530
|
+
if (W === void 0) throw Error(`Position not found for branch ${f.name}`);
|
|
531
|
+
let G = H.append("line");
|
|
532
|
+
G.attr("x1", 0), G.attr("y1", W), G.attr("x2", maxPos), G.attr("y2", W), G.attr("class", "branch branch" + U), dir === "TB" ? (G.attr("y1", defaultPos), G.attr("x1", W), G.attr("y2", maxPos), G.attr("x2", W)) : dir === "BT" && (G.attr("y1", maxPos), G.attr("x1", W), G.attr("y2", defaultPos), G.attr("x2", W)), lanes.push(W);
|
|
533
|
+
let K = f.name, q = drawText(K), J = H.insert("rect"), Y = H.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + U);
|
|
534
|
+
Y.node().appendChild(q);
|
|
535
|
+
let X = q.getBBox();
|
|
536
|
+
J.attr("class", "branchLabelBkg label" + U).attr("rx", 4).attr("ry", 4).attr("x", -X.width - 4 - (DEFAULT_GITGRAPH_CONFIG2?.rotateCommitLabel === !0 ? 30 : 0)).attr("y", -X.height / 2 + 8).attr("width", X.width + 18).attr("height", X.height + 4), Y.attr("transform", "translate(" + (-X.width - 14 - (DEFAULT_GITGRAPH_CONFIG2?.rotateCommitLabel === !0 ? 30 : 0)) + ", " + (W - X.height / 2 - 1) + ")"), dir === "TB" ? (J.attr("x", W - X.width / 2 - 10).attr("y", 0), Y.attr("transform", "translate(" + (W - X.width / 2 - 5) + ", 0)")) : dir === "BT" ? (J.attr("x", W - X.width / 2 - 10).attr("y", maxPos), Y.attr("transform", "translate(" + (W - X.width / 2 - 5) + ", " + maxPos + ")")) : J.attr("transform", "translate(-19, " + (W - X.height / 2) + ")");
|
|
537
|
+
});
|
|
538
|
+
}, "drawBranches"), setBranchPosition = /* @__PURE__ */ __name(function(f, V, H, U, W) {
|
|
539
|
+
return branchPos.set(f, {
|
|
540
|
+
pos: V,
|
|
541
|
+
index: H
|
|
542
|
+
}), V += 50 + (W ? 40 : 0) + (dir === "TB" || dir === "BT" ? U.width / 2 : 0), V;
|
|
543
|
+
}, "setBranchPosition"), diagram = {
|
|
544
|
+
parser,
|
|
545
|
+
db,
|
|
546
|
+
renderer: { draw: /* @__PURE__ */ __name(function(f, H, U, W) {
|
|
547
|
+
if (clear3(), log.debug("in gitgraph renderer", f + "\n", "id:", H, U), !DEFAULT_GITGRAPH_CONFIG2) throw Error("GitGraph config not found");
|
|
548
|
+
let G = DEFAULT_GITGRAPH_CONFIG2.rotateCommitLabel ?? !1, K = W.db;
|
|
549
|
+
allCommitsDict = K.getCommits();
|
|
550
|
+
let q = K.getBranchesAsObjArray();
|
|
551
|
+
dir = K.getDirection();
|
|
552
|
+
let J = select_default(`[id="${H}"]`), Y = 0;
|
|
553
|
+
q.forEach((f, V) => {
|
|
554
|
+
let H = drawText(f.name), U = J.append("g"), W = U.insert("g").attr("class", "branchLabel"), K = W.insert("g").attr("class", "label branch-label");
|
|
555
|
+
K.node()?.appendChild(H);
|
|
556
|
+
let q = H.getBBox();
|
|
557
|
+
Y = setBranchPosition(f.name, Y, V, q, G), K.remove(), W.remove(), U.remove();
|
|
558
|
+
}), drawCommits(J, allCommitsDict, !1), DEFAULT_GITGRAPH_CONFIG2.showBranches && drawBranches(J, q), drawArrows(J, allCommitsDict), drawCommits(J, allCommitsDict, !0), utils_default.insertTitle(J, "gitTitleText", DEFAULT_GITGRAPH_CONFIG2.titleTopMargin ?? 0, K.getDiagramTitle()), setupGraphViewbox2(void 0, J, DEFAULT_GITGRAPH_CONFIG2.diagramPadding, DEFAULT_GITGRAPH_CONFIG2.useMaxWidth);
|
|
559
|
+
}, "draw") },
|
|
560
|
+
styles: /* @__PURE__ */ __name((f) => `
|
|
561
|
+
.commit-id,
|
|
562
|
+
.commit-msg,
|
|
563
|
+
.branch-label {
|
|
564
|
+
fill: lightgrey;
|
|
565
|
+
color: lightgrey;
|
|
566
|
+
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
567
|
+
font-family: var(--mermaid-font-family);
|
|
568
|
+
}
|
|
569
|
+
${[
|
|
570
|
+
0,
|
|
571
|
+
1,
|
|
572
|
+
2,
|
|
573
|
+
3,
|
|
574
|
+
4,
|
|
575
|
+
5,
|
|
576
|
+
6,
|
|
577
|
+
7
|
|
578
|
+
].map((V) => `
|
|
579
|
+
.branch-label${V} { fill: ${f["gitBranchLabel" + V]}; }
|
|
580
|
+
.commit${V} { stroke: ${f["git" + V]}; fill: ${f["git" + V]}; }
|
|
581
|
+
.commit-highlight${V} { stroke: ${f["gitInv" + V]}; fill: ${f["gitInv" + V]}; }
|
|
582
|
+
.label${V} { fill: ${f["git" + V]}; }
|
|
583
|
+
.arrow${V} { stroke: ${f["git" + V]}; }
|
|
584
|
+
`).join("\n")}
|
|
585
|
+
|
|
586
|
+
.branch {
|
|
587
|
+
stroke-width: 1;
|
|
588
|
+
stroke: ${f.lineColor};
|
|
589
|
+
stroke-dasharray: 2;
|
|
590
|
+
}
|
|
591
|
+
.commit-label { font-size: ${f.commitLabelFontSize}; fill: ${f.commitLabelColor};}
|
|
592
|
+
.commit-label-bkg { font-size: ${f.commitLabelFontSize}; fill: ${f.commitLabelBackground}; opacity: 0.5; }
|
|
593
|
+
.tag-label { font-size: ${f.tagLabelFontSize}; fill: ${f.tagLabelColor};}
|
|
594
|
+
.tag-label-bkg { fill: ${f.tagLabelBackground}; stroke: ${f.tagLabelBorder}; }
|
|
595
|
+
.tag-hole { fill: ${f.textColor}; }
|
|
596
|
+
|
|
597
|
+
.commit-merge {
|
|
598
|
+
stroke: ${f.primaryColor};
|
|
599
|
+
fill: ${f.primaryColor};
|
|
600
|
+
}
|
|
601
|
+
.commit-reverse {
|
|
602
|
+
stroke: ${f.primaryColor};
|
|
603
|
+
fill: ${f.primaryColor};
|
|
604
|
+
stroke-width: 3;
|
|
605
|
+
}
|
|
606
|
+
.commit-highlight-outer {
|
|
607
|
+
}
|
|
608
|
+
.commit-highlight-inner {
|
|
609
|
+
stroke: ${f.primaryColor};
|
|
610
|
+
fill: ${f.primaryColor};
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
|
|
614
|
+
.gitTitleText {
|
|
615
|
+
text-anchor: middle;
|
|
616
|
+
font-size: 18px;
|
|
617
|
+
fill: ${f.textColor};
|
|
618
|
+
}
|
|
619
|
+
`, "getStyles")
|
|
620
|
+
};
|
|
621
|
+
export { diagram };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { package_default } from "./chunk-DR5Q36YT.js";
|
|
2
|
+
import { __name, log } from "./chunk-AGHRB4JF.js";
|
|
3
|
+
import { configureSvgSize } from "./chunk-ABZYJK2D.js";
|
|
4
|
+
import { selectSvgElement } from "./chunk-EXTU4WIE.js";
|
|
5
|
+
import { parse } from "../../../../@mermaid-js/parser/dist/mermaid-parser.core.js";
|
|
6
|
+
var parser = { parse: /* @__PURE__ */ __name(async (e) => {
|
|
7
|
+
let o = await parse("info", e);
|
|
8
|
+
log.debug(o);
|
|
9
|
+
}, "parse") }, DEFAULT_INFO_DB = { version: package_default.version + "" }, diagram = {
|
|
10
|
+
parser,
|
|
11
|
+
db: { getVersion: /* @__PURE__ */ __name(() => DEFAULT_INFO_DB.version, "getVersion") },
|
|
12
|
+
renderer: { draw: /* @__PURE__ */ __name((e, o, s) => {
|
|
13
|
+
log.debug("rendering info diagram\n" + e);
|
|
14
|
+
let c = selectSvgElement(o);
|
|
15
|
+
configureSvgSize(c, 100, 400, !0), c.append("g").append("text").attr("x", 100).attr("y", 40).attr("class", "version").attr("font-size", 32).style("text-anchor", "middle").text(`v${s}`);
|
|
16
|
+
}, "draw") }
|
|
17
|
+
};
|
|
18
|
+
export { diagram };
|