@loopstack/loopstack-studio 0.28.0 → 0.29.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 +13 -15
- package/dist/components/dynamic-form/Form.js +49 -52
- package/dist/config.js +6 -0
- package/dist/features/debug/components/WorkflowFlowViewer.js +94 -81
- package/dist/features/debug/components/workflow-flow/StateNode.js +154 -79
- package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +43 -31
- package/dist/features/debug/components/workflow-flow/WorkflowTransitionEdge.js +52 -51
- package/dist/features/debug/lib/edge-paths.js +45 -30
- package/dist/features/debug/lib/flow-types.js +2 -0
- package/dist/features/debug/lib/flow-utils.js +66 -64
- package/dist/features/documents/components/DocumentList.js +19 -18
- package/dist/features/workbench/WorkflowItem.js +4 -3
- package/dist/features/workbench/components/EmbedLogsContent.js +5 -0
- package/dist/features/workbench/components/PreviewEmptyState.js +10 -0
- package/dist/features/workbench/components/PreviewWorkbench.js +14 -0
- package/dist/features/workbench/components/RecentRunItem.js +48 -0
- package/dist/features/workbench/components/WorkflowForms.js +4 -3
- package/dist/features/workbench/hooks/useEmbedBridge.js +3 -0
- package/dist/features/workbench/hooks/useWorkflowData.js +9 -9
- package/dist/features/workbench/index.js +4 -0
- package/dist/features/workspaces/components/ExecutionTimeline.js +9 -8
- package/dist/loopstack-studio.css +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{architecture-YZFGNWBL.js → architecture-7EHR7CIX.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-7N4EOEYR.js → chunk-4EGX6M5U.js} +9 -13
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-KGLVRYIC.js → chunk-5DO6E6H7.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-BR22UD5L.js +56 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-2KRD3SAO.js → chunk-FHYWG6QK.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-FOC6F5B3.js → chunk-MPE355IW.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MZUSXYTE.js +24 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-N66VUXT2.js +48 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-NNHCCRGN.js +20219 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PUPMXCY4.js +19 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-67CJDMHE.js → chunk-UIBZB4QT.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-WCWK7LTN.js +25 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-FCH6USID.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{gitGraph-7Q5UKJZL.js → gitGraph-WXDBUCRP.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-J43DQDTF.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-YPE3B663.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-LRSECV5Y.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-GUYGQ44K.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{treeView-SZITEDCU.js → treeView-BLDUP644.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-LRROVOQU.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-L42UT6IY.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +24 -19
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +36 -26
- package/dist/node_modules/@xyflow/react/dist/esm/index.js +1 -1
- package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +257 -254
- package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +19 -19
- package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +48 -48
- package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +9 -9
- package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +3 -3
- package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +11 -11
- package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +4 -4
- package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +4 -4
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +8 -8
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +5 -5
- package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +72 -72
- package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +1 -1
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +25 -25
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +8 -8
- package/dist/node_modules/dagre-d3-es/src/dagre/util.js +48 -48
- package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +109 -109
- package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +17 -17
- package/dist/node_modules/dompurify/dist/purify.es.js +293 -205
- package/dist/node_modules/es-toolkit/dist/_internal/globalThis.js +4 -0
- package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getTag.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isPrototype.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/tags.js +2 -0
- package/dist/node_modules/es-toolkit/dist/compat/function/memoize.js +12 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/clone.js +97 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +29 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/merge.js +6 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/mergeWith.js +49 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArguments.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArray.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js +6 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js +16 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js +12 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.js +5 -0
- package/dist/node_modules/es-toolkit/dist/function/noop.js +2 -0
- package/dist/node_modules/es-toolkit/dist/object/clone.js +29 -0
- package/dist/node_modules/es-toolkit/dist/object/cloneDeepWith.js +114 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isBuffer.js +5 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +4 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isPrimitive.js +4 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isTypedArray.js +4 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js +2 -2
- package/dist/node_modules/internmap/src/index.js +1 -1
- package/dist/node_modules/katex/dist/katex.js +379 -417
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +3 -3
- package/dist/node_modules/lodash-es/_assignMergeValue.js +1 -1
- package/dist/node_modules/lodash-es/_assignValue.js +1 -1
- package/dist/node_modules/lodash-es/_baseClone.js +9 -9
- package/dist/node_modules/lodash-es/_baseForOwn.js +1 -1
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +1 -1
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +6 -6
- package/dist/node_modules/lodash-es/_baseMerge.js +2 -2
- package/dist/node_modules/lodash-es/_baseMergeDeep.js +7 -7
- package/dist/node_modules/lodash-es/_baseOrderBy.js +12 -12
- package/dist/node_modules/lodash-es/_baseRest.js +1 -1
- package/dist/node_modules/lodash-es/_baseSet.js +1 -1
- package/dist/node_modules/lodash-es/_baseSetToString.js +3 -3
- package/dist/node_modules/lodash-es/_baseToString.js +2 -2
- package/dist/node_modules/lodash-es/_baseUniq.js +1 -1
- package/dist/node_modules/lodash-es/_createRange.js +1 -1
- package/dist/node_modules/lodash-es/_createSet.js +3 -3
- package/dist/node_modules/lodash-es/_flatRest.js +1 -1
- package/dist/node_modules/lodash-es/_getAllKeys.js +2 -2
- package/dist/node_modules/lodash-es/_getAllKeysIn.js +1 -1
- package/dist/node_modules/lodash-es/_getSymbolsIn.js +1 -1
- package/dist/node_modules/lodash-es/_getTag.js +1 -1
- package/dist/node_modules/lodash-es/_hasPath.js +2 -2
- package/dist/node_modules/lodash-es/_initCloneByTag.js +1 -1
- package/dist/node_modules/lodash-es/_initCloneObject.js +1 -1
- package/dist/node_modules/lodash-es/_isFlattenable.js +1 -1
- package/dist/node_modules/lodash-es/_isIterateeCall.js +1 -1
- package/dist/node_modules/lodash-es/_isKey.js +1 -1
- package/dist/node_modules/lodash-es/_setToString.js +1 -1
- package/dist/node_modules/lodash-es/defaults.js +1 -1
- package/dist/node_modules/lodash-es/findIndex.js +2 -2
- package/dist/node_modules/lodash-es/forEach.js +1 -1
- package/dist/node_modules/lodash-es/forIn.js +1 -1
- package/dist/node_modules/lodash-es/isEmpty.js +2 -2
- package/dist/node_modules/lodash-es/isPlainObject.js +1 -1
- package/dist/node_modules/lodash-es/map.js +1 -1
- package/dist/node_modules/lodash-es/max.js +1 -1
- package/dist/node_modules/lodash-es/merge.js +3 -3
- package/dist/node_modules/lodash-es/min.js +1 -1
- package/dist/node_modules/lodash-es/minBy.js +1 -1
- package/dist/node_modules/lodash-es/reduce.js +1 -1
- package/dist/node_modules/lodash-es/toNumber.js +1 -1
- package/dist/node_modules/lodash-es/union.js +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{architectureDiagram-Q4EWVU46.js → architectureDiagram-3BPJPVTR.js} +310 -308
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{blockDiagram-DXYQGD6D.js → blockDiagram-GPEHLZMM.js} +215 -190
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{c4Diagram-AHTNJAMY.js → c4Diagram-AAUBKEIU.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-EDXVE4YY.js → chunk-2J33WTMH.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-5FUZZQ4R.js → chunk-3OPIFGDE.js} +48 -20
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-5PVQY5BW.js → chunk-5ZQYHXKU.js} +8 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-4TB4RGXK.js → chunk-727SXJPM.js} +555 -459
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-OYMX7WX6.js → chunk-AQP2D5EJ.js} +155 -145
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ICPOFSXX.js → chunk-CSCIHK7Q.js} +106 -12
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ENJZ2VHE.js → chunk-KSCS5N6A.js} +12 -12
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ZZ45TVLE.js → chunk-L5ZTLDWV.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-336JU56O.js → chunk-LZXEDZCA.js} +5 -5
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-YZCP3GAM.js → chunk-ND2GUHAM.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-X2U36JSP.js → chunk-NZK2D7GU.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-U2HBQHQK.js → chunk-O5CBEL6O.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-426QAEUC.js → chunk-WU5MYG2G.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-6PBFFD2Q.js → classDiagram-4FO5ZUOK.js} +11 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-v2-HSJHXN6E.js → classDiagram-v2-Q7XG4LA2.js} +11 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{dagre-KV5264BT.js → dagre-BM42HDAG.js} +8 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-MMDJMWI5.js → diagram-2AECGRRQ.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-5BDNPKRD.js → diagram-5GNKFQAL.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-KO2AKTUF.js +433 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-TYMM5635.js → diagram-LMA3HP47.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-G4DWMVQ6.js → diagram-OG6HWLK6.js} +5 -5
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{erDiagram-SMLLAGMA.js → erDiagram-TEJ5UH35.js} +9 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{flowDiagram-DWJPFMVM.js → flowDiagram-I6XJVG4X.js} +10 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{ganttDiagram-T4ZO3ILL.js → ganttDiagram-6RSMTGT7.js} +7 -4
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{gitGraphDiagram-UUTBAWPF.js → gitGraphDiagram-PVQCEYII.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{infoDiagram-42DDH7IO.js → infoDiagram-5YYISTIA.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{ishikawaDiagram-UXIWVN3A.js → ishikawaDiagram-YF4QCWOH.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{journeyDiagram-VCZTEJTY.js → journeyDiagram-JHISSGLW.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{kanban-definition-6JOO6SKY.js → kanban-definition-UN3LZRKU.js} +7 -7
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{mindmap-definition-QFDTVHPH.js → mindmap-definition-RKZ34NQL.js} +9 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{pieDiagram-DEJITSTG.js → pieDiagram-4H26LBE5.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{quadrantDiagram-34T5L4WZ.js → quadrantDiagram-W4KKPZXB.js} +364 -337
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{requirementDiagram-MS252O5E.js → requirementDiagram-4Y6WPE33.js} +9 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{sankeyDiagram-XADWPNL6.js → sankeyDiagram-5OEKKPKP.js} +187 -138
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{sequenceDiagram-FGHM5R23.js → sequenceDiagram-3UESZ5HK.js} +15 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-FHFEXIEX.js → stateDiagram-AJRCARHV.js} +10 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-v2-QKLJ7IA2.js → stateDiagram-v2-BHNVJYJU.js} +10 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{timeline-definition-GMOUNBTQ.js → timeline-definition-PNZ67QCA.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{vennDiagram-DHZGUBPP.js → vennDiagram-CIIHVFJN.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-YWT4CUSO.js +640 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{xychartDiagram-5P7HB3ND.js → xychartDiagram-2RQKCTM6.js} +4 -4
- package/dist/node_modules/mermaid/dist/mermaid.core.js +96 -70
- package/dist/node_modules/stylis/src/Enum.js +2 -2
- package/dist/node_modules/stylis/src/Middleware.js +9 -0
- package/dist/node_modules/stylis/src/Parser.js +55 -44
- package/dist/node_modules/stylis/src/Utility.js +9 -12
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/packages/contracts/dist/enums/index.js +4 -24
- package/dist/packages/contracts/dist/enums/registry.enum.js +9 -20
- package/dist/packages/contracts/dist/enums/sort-order.enum.js +5 -10
- package/dist/packages/contracts/dist/enums/user-type.enum.js +5 -10
- package/dist/packages/contracts/dist/enums/workflow-state.enum.js +5 -10
- package/dist/pages/EmbedWorkbenchPage.js +4 -3
- package/dist/pages/PreviewWorkbenchPage.js +126 -124
- package/dist/pages/StudioLandingPage.js +28 -72
- package/package.json +2 -2
- package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +0 -23
- package/dist/node_modules/@chevrotain/gast/lib/src/model.js +0 -151
- package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +0 -40
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +0 -2
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +0 -85
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +0 -35
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +0 -570
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +0 -25
- package/dist/node_modules/@chevrotain/utils/lib/src/print.js +0 -9
- package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +0 -8
- package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +0 -10
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +0 -28
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +0 -1197
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js +0 -60
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +0 -29
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +0 -3
- package/dist/node_modules/chevrotain/lib/src/api.js +0 -10
- package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +0 -10
- package/dist/node_modules/chevrotain/lib/src/parse/constants.js +0 -2
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +0 -13
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +0 -49
- package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +0 -77
- package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +0 -33
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +0 -275
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +0 -23
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +0 -28
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +0 -14
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +0 -262
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +0 -5
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +0 -41
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +0 -241
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +0 -30
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +0 -56
- package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +0 -114
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +0 -46
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +0 -166
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +0 -43
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +0 -107
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +0 -21
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +0 -312
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +0 -285
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +0 -144
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +0 -92
- package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +0 -11
- package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +0 -437
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +0 -9
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +0 -253
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +0 -152
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +0 -15
- package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +0 -65
- package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +0 -39
- package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +0 -346
- package/dist/node_modules/chevrotain-allstar/lib/atn.js +0 -194
- package/dist/node_modules/chevrotain-allstar/lib/dfa.js +0 -32
- package/dist/node_modules/chevrotain-allstar/lib/index.js +0 -1
- package/dist/node_modules/langium/lib/default-module.js +0 -85
- package/dist/node_modules/langium/lib/dependency-injection.js +0 -62
- package/dist/node_modules/langium/lib/documentation/comment-provider.js +0 -11
- package/dist/node_modules/langium/lib/documentation/documentation-provider.js +0 -36
- package/dist/node_modules/langium/lib/documentation/jsdoc.js +0 -303
- package/dist/node_modules/langium/lib/index.js +0 -182
- package/dist/node_modules/langium/lib/languages/generated/ast.js +0 -1089
- package/dist/node_modules/langium/lib/languages/grammar-config.js +0 -13
- package/dist/node_modules/langium/lib/parser/async-parser.js +0 -83
- package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +0 -7
- package/dist/node_modules/langium/lib/parser/cst-node-builder.js +0 -160
- package/dist/node_modules/langium/lib/parser/indentation-aware.js +0 -141
- package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +0 -11
- package/dist/node_modules/langium/lib/parser/langium-parser.js +0 -388
- package/dist/node_modules/langium/lib/parser/lexer.js +0 -50
- package/dist/node_modules/langium/lib/parser/parser-builder-base.js +0 -275
- package/dist/node_modules/langium/lib/parser/token-builder.js +0 -61
- package/dist/node_modules/langium/lib/parser/value-converter.js +0 -78
- package/dist/node_modules/langium/lib/references/linker.js +0 -190
- package/dist/node_modules/langium/lib/references/name-provider.js +0 -13
- package/dist/node_modules/langium/lib/references/references.js +0 -76
- package/dist/node_modules/langium/lib/references/scope-computation.js +0 -35
- package/dist/node_modules/langium/lib/references/scope-provider.js +0 -34
- package/dist/node_modules/langium/lib/references/scope.js +0 -73
- package/dist/node_modules/langium/lib/serializer/hydrator.js +0 -125
- package/dist/node_modules/langium/lib/serializer/json-serializer.js +0 -145
- package/dist/node_modules/langium/lib/service-registry.js +0 -37
- package/dist/node_modules/langium/lib/syntax-tree.js +0 -70
- package/dist/node_modules/langium/lib/utils/ast-utils.js +0 -157
- package/dist/node_modules/langium/lib/utils/caching.js +0 -91
- package/dist/node_modules/langium/lib/utils/cancellation.js +0 -5
- package/dist/node_modules/langium/lib/utils/collections.js +0 -85
- package/dist/node_modules/langium/lib/utils/cst-utils.js +0 -190
- package/dist/node_modules/langium/lib/utils/disposable.js +0 -8
- package/dist/node_modules/langium/lib/utils/errors.js +0 -12
- package/dist/node_modules/langium/lib/utils/event.js +0 -5
- package/dist/node_modules/langium/lib/utils/grammar-loader.js +0 -22
- package/dist/node_modules/langium/lib/utils/grammar-utils.js +0 -296
- package/dist/node_modules/langium/lib/utils/index.js +0 -53
- package/dist/node_modules/langium/lib/utils/promise-utils.js +0 -30
- package/dist/node_modules/langium/lib/utils/regexp-utils.js +0 -167
- package/dist/node_modules/langium/lib/utils/stream.js +0 -327
- package/dist/node_modules/langium/lib/utils/uri-utils.js +0 -107
- package/dist/node_modules/langium/lib/validation/document-validator.js +0 -210
- package/dist/node_modules/langium/lib/validation/validation-registry.js +0 -87
- package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +0 -57
- package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +0 -28
- package/dist/node_modules/langium/lib/workspace/configuration.js +0 -51
- package/dist/node_modules/langium/lib/workspace/document-builder.js +0 -201
- package/dist/node_modules/langium/lib/workspace/documents.js +0 -142
- package/dist/node_modules/langium/lib/workspace/file-system-provider.js +0 -34
- package/dist/node_modules/langium/lib/workspace/index-manager.js +0 -49
- package/dist/node_modules/langium/lib/workspace/profiler.js +0 -89
- package/dist/node_modules/langium/lib/workspace/workspace-lock.js +0 -42
- package/dist/node_modules/langium/lib/workspace/workspace-manager.js +0 -66
- package/dist/node_modules/lodash-es/flatMap.js +0 -7
- package/dist/node_modules/lodash-es/uniqBy.js +0 -7
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +0 -574
- package/dist/node_modules/vscode-jsonrpc/browser.js +0 -7
- package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +0 -52
- package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +0 -120
- package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +0 -337
- package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -57
- package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +0 -647
- package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +0 -13
- package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +0 -64
- package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +0 -34
- package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +0 -235
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +0 -93
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +0 -129
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +0 -85
- package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +0 -161
- package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -18
- package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +0 -44
- package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +0 -58
- package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +0 -28
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +0 -36
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +0 -12
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +0 -31
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +0 -33
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +0 -35
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +0 -674
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +0 -126
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +0 -24
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +0 -31
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +0 -42
- package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +0 -138
- package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +0 -1084
- package/dist/node_modules/vscode-uri/lib/esm/index.js +0 -373
- /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/decode-codepoint.js +0 -0
- /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/decode.js +0 -0
- /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/generated/decode-data-html.js +0 -0
- /package/dist/node_modules/{unified/node_modules/is-plain-obj → is-plain-obj}/index.js +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { __export, __name, log } from "./chunk-AGHRB4JF.js";
|
|
2
|
-
import { clear, getAccDescription, getAccTitle, getConfig, getConfig2, getDiagramTitle, setAccDescription, setAccTitle, setDiagramTitle } from "./chunk-
|
|
2
|
+
import { clear, getAccDescription, getAccTitle, getConfig, getConfig2, getDiagramTitle, setAccDescription, setAccTitle, setDiagramTitle } from "./chunk-CSCIHK7Q.js";
|
|
3
3
|
import "./chunk-BSJP7CBP.js";
|
|
4
|
-
import { utils_default } from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import { getRegisteredLayoutAlgorithm, render } from "./chunk-
|
|
4
|
+
import { utils_default } from "./chunk-5ZQYHXKU.js";
|
|
5
|
+
import "./chunk-L5ZTLDWV.js";
|
|
6
|
+
import "./chunk-NZK2D7GU.js";
|
|
7
|
+
import "./chunk-O5CBEL6O.js";
|
|
8
|
+
import "./chunk-3OPIFGDE.js";
|
|
9
|
+
import "./chunk-KSCS5N6A.js";
|
|
10
|
+
import { getRegisteredLayoutAlgorithm, render } from "./chunk-LZXEDZCA.js";
|
|
11
11
|
import { getDiagramElement } from "./chunk-55IACEB6.js";
|
|
12
|
-
import { setupViewPortForSVG } from "./chunk-
|
|
12
|
+
import { setupViewPortForSVG } from "./chunk-2J33WTMH.js";
|
|
13
13
|
var parser = (function() {
|
|
14
14
|
var e = /* @__PURE__ */ __name(function(e, t, n, r) {
|
|
15
15
|
for (n ||= {}, r = e.length; r--; n[e[r]] = t);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __name } from "./chunk-AGHRB4JF.js";
|
|
2
|
-
import { clear, common_default, defaultConfig2, getAccDescription, getAccTitle, getConfig2, getDiagramTitle, setAccDescription, setAccTitle, setDiagramTitle, setupGraphViewbox } from "./chunk-
|
|
2
|
+
import { clear, common_default, defaultConfig2, getAccDescription, getAccTitle, getConfig2, getDiagramTitle, setAccDescription, setAccTitle, setDiagramTitle, setupGraphViewbox } from "./chunk-CSCIHK7Q.js";
|
|
3
3
|
import select_default from "../../../../d3-selection/src/select.js";
|
|
4
4
|
import ordinal from "../../../../d3-scale/src/ordinal.js";
|
|
5
5
|
import Tableau10_default from "../../../../d3-scale-chromatic/src/categorical/Tableau10.js";
|
|
@@ -8,15 +8,15 @@ import { center, justify, left, right } from "../../../../d3-sankey/src/align.js
|
|
|
8
8
|
import Sankey from "../../../../d3-sankey/src/sankey.js";
|
|
9
9
|
import sankeyLinkHorizontal_default from "../../../../d3-sankey/src/sankeyLinkHorizontal.js";
|
|
10
10
|
var parser = (function() {
|
|
11
|
-
var
|
|
12
|
-
for (
|
|
13
|
-
return
|
|
14
|
-
}, "o"),
|
|
11
|
+
var n = /* @__PURE__ */ __name(function(e, n, r, i) {
|
|
12
|
+
for (r ||= {}, i = e.length; i--; r[e[i]] = n);
|
|
13
|
+
return r;
|
|
14
|
+
}, "o"), r = [1, 9], i = [1, 10], a = [
|
|
15
15
|
1,
|
|
16
16
|
5,
|
|
17
17
|
10,
|
|
18
18
|
12
|
|
19
|
-
],
|
|
19
|
+
], o = {
|
|
20
20
|
trace: /* @__PURE__ */ __name(function() {}, "trace"),
|
|
21
21
|
yy: {},
|
|
22
22
|
symbols_: {
|
|
@@ -69,20 +69,20 @@ var parser = (function() {
|
|
|
69
69
|
[16, 3],
|
|
70
70
|
[17, 1]
|
|
71
71
|
],
|
|
72
|
-
performAction: /* @__PURE__ */ __name(function(e, i, a, o, s
|
|
73
|
-
var
|
|
74
|
-
switch (
|
|
72
|
+
performAction: /* @__PURE__ */ __name(function(e, n, r, i, a, o, s) {
|
|
73
|
+
var c = o.length - 1;
|
|
74
|
+
switch (a) {
|
|
75
75
|
case 7:
|
|
76
|
-
let e =
|
|
77
|
-
|
|
76
|
+
let e = i.findOrCreateNode(o[c - 4].trim().replaceAll("\"\"", "\"")), n = i.findOrCreateNode(o[c - 2].trim().replaceAll("\"\"", "\"")), r = parseFloat(o[c].trim());
|
|
77
|
+
i.addLink(e, n, r);
|
|
78
78
|
break;
|
|
79
79
|
case 8:
|
|
80
80
|
case 9:
|
|
81
81
|
case 11:
|
|
82
|
-
this.$ = c
|
|
82
|
+
this.$ = o[c];
|
|
83
83
|
break;
|
|
84
84
|
case 10:
|
|
85
|
-
this.$ = c
|
|
85
|
+
this.$ = o[c - 1];
|
|
86
86
|
break;
|
|
87
87
|
}
|
|
88
88
|
}, "anonymous"),
|
|
@@ -99,54 +99,54 @@ var parser = (function() {
|
|
|
99
99
|
15: 6,
|
|
100
100
|
16: 7,
|
|
101
101
|
17: 8,
|
|
102
|
-
18:
|
|
103
|
-
20:
|
|
102
|
+
18: r,
|
|
103
|
+
20: i
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
1: [2, 6],
|
|
107
107
|
7: 11,
|
|
108
108
|
10: [1, 12]
|
|
109
109
|
},
|
|
110
|
-
i
|
|
110
|
+
n(i, [2, 4], {
|
|
111
111
|
9: 13,
|
|
112
112
|
5: [1, 14]
|
|
113
113
|
}),
|
|
114
114
|
{ 12: [1, 15] },
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
n(a, [2, 8]),
|
|
116
|
+
n(a, [2, 9]),
|
|
117
117
|
{ 19: [1, 16] },
|
|
118
|
-
|
|
118
|
+
n(a, [2, 11]),
|
|
119
119
|
{ 1: [2, 1] },
|
|
120
120
|
{ 1: [2, 5] },
|
|
121
|
-
i
|
|
121
|
+
n(i, [2, 2]),
|
|
122
122
|
{
|
|
123
123
|
6: 17,
|
|
124
124
|
8: 5,
|
|
125
125
|
15: 6,
|
|
126
126
|
16: 7,
|
|
127
127
|
17: 8,
|
|
128
|
-
18:
|
|
129
|
-
20:
|
|
128
|
+
18: r,
|
|
129
|
+
20: i
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
132
|
15: 18,
|
|
133
133
|
16: 7,
|
|
134
134
|
17: 8,
|
|
135
|
-
18:
|
|
136
|
-
20:
|
|
135
|
+
18: r,
|
|
136
|
+
20: i
|
|
137
137
|
},
|
|
138
138
|
{ 18: [1, 19] },
|
|
139
|
-
i
|
|
139
|
+
n(i, [2, 3]),
|
|
140
140
|
{ 12: [1, 20] },
|
|
141
|
-
|
|
141
|
+
n(a, [2, 10]),
|
|
142
142
|
{
|
|
143
143
|
15: 21,
|
|
144
144
|
16: 7,
|
|
145
145
|
17: 8,
|
|
146
|
-
18:
|
|
147
|
-
20:
|
|
146
|
+
18: r,
|
|
147
|
+
20: i
|
|
148
148
|
},
|
|
149
|
-
|
|
149
|
+
n([
|
|
150
150
|
1,
|
|
151
151
|
5,
|
|
152
152
|
10
|
|
@@ -156,63 +156,63 @@ var parser = (function() {
|
|
|
156
156
|
11: [2, 1],
|
|
157
157
|
12: [2, 5]
|
|
158
158
|
},
|
|
159
|
-
parseError: /* @__PURE__ */ __name(function(e,
|
|
160
|
-
if (
|
|
159
|
+
parseError: /* @__PURE__ */ __name(function(e, n) {
|
|
160
|
+
if (n.recoverable) this.trace(e);
|
|
161
161
|
else {
|
|
162
|
-
var
|
|
163
|
-
throw
|
|
162
|
+
var r = Error(e);
|
|
163
|
+
throw r.hash = n, r;
|
|
164
164
|
}
|
|
165
165
|
}, "parseError"),
|
|
166
|
-
parse: /* @__PURE__ */ __name(function(
|
|
167
|
-
var
|
|
168
|
-
for (var
|
|
169
|
-
|
|
170
|
-
var
|
|
171
|
-
|
|
172
|
-
var
|
|
173
|
-
typeof
|
|
174
|
-
function
|
|
175
|
-
|
|
166
|
+
parse: /* @__PURE__ */ __name(function(n) {
|
|
167
|
+
var r = this, i = [0], a = [], o = [null], s = [], c = this.table, l = "", u = 0, d = 0, f = 0, p = 2, m = 1, h = s.slice.call(arguments, 1), g = Object.create(this.lexer), _ = { yy: {} };
|
|
168
|
+
for (var v in this.yy) Object.prototype.hasOwnProperty.call(this.yy, v) && (_.yy[v] = this.yy[v]);
|
|
169
|
+
g.setInput(n, _.yy), _.yy.lexer = g, _.yy.parser = this, g.yylloc === void 0 && (g.yylloc = {});
|
|
170
|
+
var y = g.yylloc;
|
|
171
|
+
s.push(y);
|
|
172
|
+
var b = g.options && g.options.ranges;
|
|
173
|
+
typeof _.yy.parseError == "function" ? this.parseError = _.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
174
|
+
function x(e) {
|
|
175
|
+
i.length -= 2 * e, o.length -= e, s.length -= e;
|
|
176
176
|
}
|
|
177
|
-
__name(
|
|
178
|
-
function
|
|
179
|
-
var e =
|
|
180
|
-
return typeof e != "number" && (e instanceof Array && (
|
|
177
|
+
__name(x, "popStack");
|
|
178
|
+
function S() {
|
|
179
|
+
var e = a.pop() || g.lex() || m;
|
|
180
|
+
return typeof e != "number" && (e instanceof Array && (a = e, e = a.pop()), e = r.symbols_[e] || e), e;
|
|
181
181
|
}
|
|
182
|
-
__name(
|
|
183
|
-
for (var T, E, D, O
|
|
184
|
-
if (
|
|
185
|
-
var
|
|
186
|
-
for (
|
|
187
|
-
|
|
188
|
-
text:
|
|
189
|
-
token: this.terminals_[
|
|
190
|
-
line:
|
|
191
|
-
loc:
|
|
192
|
-
expected:
|
|
182
|
+
__name(S, "lex");
|
|
183
|
+
for (var C, w, T, E, D, O = {}, k, A, j, M;;) {
|
|
184
|
+
if (T = i[i.length - 1], this.defaultActions[T] ? E = this.defaultActions[T] : (C ??= S(), E = c[T] && c[T][C]), E === void 0 || !E.length || !E[0]) {
|
|
185
|
+
var N = "";
|
|
186
|
+
for (k in M = [], c[T]) this.terminals_[k] && k > p && M.push("'" + this.terminals_[k] + "'");
|
|
187
|
+
N = g.showPosition ? "Parse error on line " + (u + 1) + ":\n" + g.showPosition() + "\nExpecting " + M.join(", ") + ", got '" + (this.terminals_[C] || C) + "'" : "Parse error on line " + (u + 1) + ": Unexpected " + (C == m ? "end of input" : "'" + (this.terminals_[C] || C) + "'"), this.parseError(N, {
|
|
188
|
+
text: g.match,
|
|
189
|
+
token: this.terminals_[C] || C,
|
|
190
|
+
line: g.yylineno,
|
|
191
|
+
loc: y,
|
|
192
|
+
expected: M
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
|
-
if (
|
|
196
|
-
switch (
|
|
195
|
+
if (E[0] instanceof Array && E.length > 1) throw Error("Parse Error: multiple actions possible at state: " + T + ", token: " + C);
|
|
196
|
+
switch (E[0]) {
|
|
197
197
|
case 1:
|
|
198
|
-
|
|
198
|
+
i.push(C), o.push(g.yytext), s.push(g.yylloc), i.push(E[1]), C = null, w ? (C = w, w = null) : (d = g.yyleng, l = g.yytext, u = g.yylineno, y = g.yylloc, f > 0 && f--);
|
|
199
199
|
break;
|
|
200
200
|
case 2:
|
|
201
|
-
if (
|
|
202
|
-
first_line:
|
|
203
|
-
last_line:
|
|
204
|
-
first_column:
|
|
205
|
-
last_column:
|
|
206
|
-
},
|
|
201
|
+
if (A = this.productions_[E[1]][1], O.$ = o[o.length - A], O._$ = {
|
|
202
|
+
first_line: s[s.length - (A || 1)].first_line,
|
|
203
|
+
last_line: s[s.length - 1].last_line,
|
|
204
|
+
first_column: s[s.length - (A || 1)].first_column,
|
|
205
|
+
last_column: s[s.length - 1].last_column
|
|
206
|
+
}, b && (O._$.range = [s[s.length - (A || 1)].range[0], s[s.length - 1].range[1]]), D = this.performAction.apply(O, [
|
|
207
|
+
l,
|
|
207
208
|
d,
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
M && (o = o.slice(0, -1 * M * 2), c = c.slice(0, -1 * M), l = l.slice(0, -1 * M)), o.push(this.productions_[O[1]][0]), c.push(A.$), l.push(A._$), N = u[o[o.length - 2]][o[o.length - 1]], o.push(N);
|
|
209
|
+
u,
|
|
210
|
+
_.yy,
|
|
211
|
+
E[1],
|
|
212
|
+
o,
|
|
213
|
+
s
|
|
214
|
+
].concat(h)), D !== void 0) return D;
|
|
215
|
+
A && (i = i.slice(0, -1 * A * 2), o = o.slice(0, -1 * A), s = s.slice(0, -1 * A)), i.push(this.productions_[E[1]][0]), o.push(O.$), s.push(O._$), j = c[i[i.length - 2]][i[i.length - 1]], i.push(j);
|
|
216
216
|
break;
|
|
217
217
|
case 3: return !0;
|
|
218
218
|
}
|
|
@@ -220,15 +220,15 @@ var parser = (function() {
|
|
|
220
220
|
return !0;
|
|
221
221
|
}, "parse")
|
|
222
222
|
};
|
|
223
|
-
|
|
223
|
+
o.lexer = /* @__PURE__ */ (function() {
|
|
224
224
|
return {
|
|
225
225
|
EOF: 1,
|
|
226
|
-
parseError: /* @__PURE__ */ __name(function(e,
|
|
227
|
-
if (this.yy.parser) this.yy.parser.parseError(e,
|
|
226
|
+
parseError: /* @__PURE__ */ __name(function(e, n) {
|
|
227
|
+
if (this.yy.parser) this.yy.parser.parseError(e, n);
|
|
228
228
|
else throw Error(e);
|
|
229
229
|
}, "parseError"),
|
|
230
|
-
setInput: /* @__PURE__ */ __name(function(e,
|
|
231
|
-
return this.yy =
|
|
230
|
+
setInput: /* @__PURE__ */ __name(function(e, n) {
|
|
231
|
+
return this.yy = n || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
232
232
|
first_line: 1,
|
|
233
233
|
first_column: 0,
|
|
234
234
|
last_line: 1,
|
|
@@ -240,17 +240,17 @@ var parser = (function() {
|
|
|
240
240
|
return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
|
|
241
241
|
}, "input"),
|
|
242
242
|
unput: /* @__PURE__ */ __name(function(e) {
|
|
243
|
-
var
|
|
244
|
-
this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length -
|
|
245
|
-
var
|
|
246
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1),
|
|
247
|
-
var
|
|
243
|
+
var n = e.length, r = e.split(/(?:\r\n?|\n)/g);
|
|
244
|
+
this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n;
|
|
245
|
+
var i = this.match.split(/(?:\r\n?|\n)/g);
|
|
246
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), r.length - 1 && (this.yylineno -= r.length - 1);
|
|
247
|
+
var a = this.yylloc.range;
|
|
248
248
|
return this.yylloc = {
|
|
249
249
|
first_line: this.yylloc.first_line,
|
|
250
250
|
last_line: this.yylineno + 1,
|
|
251
251
|
first_column: this.yylloc.first_column,
|
|
252
|
-
last_column:
|
|
253
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
252
|
+
last_column: r ? (r.length === i.length ? this.yylloc.first_column : 0) + i[i.length - r.length].length - r[0].length : this.yylloc.first_column - n
|
|
253
|
+
}, this.options.ranges && (this.yylloc.range = [a[0], a[0] + this.yyleng - n]), this.yyleng = this.yytext.length, this;
|
|
254
254
|
}, "unput"),
|
|
255
255
|
more: /* @__PURE__ */ __name(function() {
|
|
256
256
|
return this._more = !0, this;
|
|
@@ -276,12 +276,12 @@ var parser = (function() {
|
|
|
276
276
|
return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
277
277
|
}, "upcomingInput"),
|
|
278
278
|
showPosition: /* @__PURE__ */ __name(function() {
|
|
279
|
-
var e = this.pastInput(),
|
|
280
|
-
return e + this.upcomingInput() + "\n" +
|
|
279
|
+
var e = this.pastInput(), n = Array(e.length + 1).join("-");
|
|
280
|
+
return e + this.upcomingInput() + "\n" + n + "^";
|
|
281
281
|
}, "showPosition"),
|
|
282
|
-
test_match: /* @__PURE__ */ __name(function(e,
|
|
283
|
-
var
|
|
284
|
-
if (this.options.backtrack_lexer && (
|
|
282
|
+
test_match: /* @__PURE__ */ __name(function(e, n) {
|
|
283
|
+
var r, i, a;
|
|
284
|
+
if (this.options.backtrack_lexer && (a = {
|
|
285
285
|
yylineno: this.yylineno,
|
|
286
286
|
yylloc: {
|
|
287
287
|
first_line: this.yylloc.first_line,
|
|
@@ -300,14 +300,14 @@ var parser = (function() {
|
|
|
300
300
|
yy: this.yy,
|
|
301
301
|
conditionStack: this.conditionStack.slice(0),
|
|
302
302
|
done: this.done
|
|
303
|
-
}, this.options.ranges && (
|
|
303
|
+
}, this.options.ranges && (a.yylloc.range = this.yylloc.range.slice(0))), i = e[0].match(/(?:\r\n?|\n).*/g), i && (this.yylineno += i.length), this.yylloc = {
|
|
304
304
|
first_line: this.yylloc.last_line,
|
|
305
305
|
last_line: this.yylineno + 1,
|
|
306
306
|
first_column: this.yylloc.last_column,
|
|
307
|
-
last_column:
|
|
308
|
-
}, this.yytext += e[0], this.match += e[0], this.matches = e, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(e[0].length), this.matched += e[0],
|
|
307
|
+
last_column: i ? i[i.length - 1].length - i[i.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
|
|
308
|
+
}, this.yytext += e[0], this.match += e[0], this.matches = e, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(e[0].length), this.matched += e[0], r = this.performAction.call(this, this.yy, this, n, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), r) return r;
|
|
309
309
|
if (this._backtrack) {
|
|
310
|
-
for (var
|
|
310
|
+
for (var o in a) this[o] = a[o];
|
|
311
311
|
return !1;
|
|
312
312
|
}
|
|
313
313
|
return !1;
|
|
@@ -315,18 +315,18 @@ var parser = (function() {
|
|
|
315
315
|
next: /* @__PURE__ */ __name(function() {
|
|
316
316
|
if (this.done) return this.EOF;
|
|
317
317
|
this._input || (this.done = !0);
|
|
318
|
-
var e,
|
|
318
|
+
var e, n, r, i;
|
|
319
319
|
this._more || (this.yytext = "", this.match = "");
|
|
320
|
-
for (var
|
|
321
|
-
if (
|
|
322
|
-
if (e = this.test_match(
|
|
320
|
+
for (var a = this._currentRules(), o = 0; o < a.length; o++) if (r = this._input.match(this.rules[a[o]]), r && (!n || r[0].length > n[0].length)) {
|
|
321
|
+
if (n = r, i = o, this.options.backtrack_lexer) {
|
|
322
|
+
if (e = this.test_match(r, a[o]), e !== !1) return e;
|
|
323
323
|
if (this._backtrack) {
|
|
324
|
-
|
|
324
|
+
n = !1;
|
|
325
325
|
continue;
|
|
326
326
|
} else return !1;
|
|
327
327
|
} else if (!this.options.flex) break;
|
|
328
328
|
}
|
|
329
|
-
return
|
|
329
|
+
return n ? (e = this.test_match(n, a[i]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
330
330
|
text: "",
|
|
331
331
|
token: null,
|
|
332
332
|
line: this.yylineno
|
|
@@ -354,8 +354,8 @@ var parser = (function() {
|
|
|
354
354
|
return this.conditionStack.length;
|
|
355
355
|
}, "stateStackSize"),
|
|
356
356
|
options: { "case-insensitive": !0 },
|
|
357
|
-
performAction: /* @__PURE__ */ __name(function(e,
|
|
358
|
-
switch (
|
|
357
|
+
performAction: /* @__PURE__ */ __name(function(e, n, r, i) {
|
|
358
|
+
switch (r) {
|
|
359
359
|
case 0: return this.pushState("csv"), 4;
|
|
360
360
|
case 1: return this.pushState("csv"), 4;
|
|
361
361
|
case 2: return 10;
|
|
@@ -412,21 +412,21 @@ var parser = (function() {
|
|
|
412
412
|
}
|
|
413
413
|
};
|
|
414
414
|
})();
|
|
415
|
-
function
|
|
415
|
+
function s() {
|
|
416
416
|
this.yy = {};
|
|
417
417
|
}
|
|
418
|
-
return __name(
|
|
418
|
+
return __name(s, "Parser"), s.prototype = o, o.Parser = s, new s();
|
|
419
419
|
})();
|
|
420
420
|
parser.parser = parser;
|
|
421
421
|
var sankey_default = parser, links = [], nodes = [], nodesMap = /* @__PURE__ */ new Map(), clear2 = /* @__PURE__ */ __name(() => {
|
|
422
422
|
links = [], nodes = [], nodesMap = /* @__PURE__ */ new Map(), clear();
|
|
423
423
|
}, "clear"), SankeyLink = class {
|
|
424
|
-
constructor(e,
|
|
425
|
-
this.source = e, this.target =
|
|
424
|
+
constructor(e, n, r = 0) {
|
|
425
|
+
this.source = e, this.target = n, this.value = r;
|
|
426
426
|
}
|
|
427
427
|
static #e = __name(this, "SankeyLink");
|
|
428
|
-
}, addLink = /* @__PURE__ */ __name((e,
|
|
429
|
-
links.push(new SankeyLink(e,
|
|
428
|
+
}, addLink = /* @__PURE__ */ __name((e, n, r) => {
|
|
429
|
+
links.push(new SankeyLink(e, n, r));
|
|
430
430
|
}, "addLink"), SankeyNode = class {
|
|
431
431
|
constructor(e) {
|
|
432
432
|
this.ID = e;
|
|
@@ -448,8 +448,8 @@ var sankey_default = parser, links = [], nodes = [], nodesMap = /* @__PURE__ */
|
|
|
448
448
|
addLink,
|
|
449
449
|
findOrCreateNode: /* @__PURE__ */ __name((e) => {
|
|
450
450
|
e = common_default.sanitizeText(e, getConfig2());
|
|
451
|
-
let
|
|
452
|
-
return
|
|
451
|
+
let n = nodesMap.get(e);
|
|
452
|
+
return n === void 0 && (n = new SankeyNode(e), nodesMap.set(e, n), nodes.push(n)), n;
|
|
453
453
|
}, "findOrCreateNode"),
|
|
454
454
|
getAccTitle,
|
|
455
455
|
setAccTitle,
|
|
@@ -458,11 +458,11 @@ var sankey_default = parser, links = [], nodes = [], nodesMap = /* @__PURE__ */
|
|
|
458
458
|
getDiagramTitle,
|
|
459
459
|
setDiagramTitle,
|
|
460
460
|
clear: clear2
|
|
461
|
-
}, Uid = class
|
|
461
|
+
}, Uid = class n {
|
|
462
462
|
static #e = __name(this, "Uid");
|
|
463
463
|
static #t = this.count = 0;
|
|
464
464
|
static next(e) {
|
|
465
|
-
return new
|
|
465
|
+
return new n(e + ++n.count);
|
|
466
466
|
}
|
|
467
467
|
constructor(e) {
|
|
468
468
|
this.id = e, this.href = `#${e}`;
|
|
@@ -475,40 +475,89 @@ var sankey_default = parser, links = [], nodes = [], nodesMap = /* @__PURE__ */
|
|
|
475
475
|
right,
|
|
476
476
|
center,
|
|
477
477
|
justify
|
|
478
|
-
},
|
|
479
|
-
let
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
478
|
+
}, findCentralNodeLayer = /* @__PURE__ */ __name((e) => {
|
|
479
|
+
let n = 0, r = 0;
|
|
480
|
+
for (let i of e) {
|
|
481
|
+
let e = i.value ?? 0;
|
|
482
|
+
e > n && (n = e, r = i.layer ?? 0);
|
|
483
|
+
}
|
|
484
|
+
return r;
|
|
485
|
+
}, "findCentralNodeLayer"), sankeyRenderer_default = { draw: /* @__PURE__ */ __name(function(n, r, a, o) {
|
|
486
|
+
let { securityLevel: c, sankey: l } = getConfig2(), u = defaultConfig2.sankey, d;
|
|
487
|
+
c === "sandbox" && (d = select_default("#i" + r));
|
|
488
|
+
let g = select_default(c === "sandbox" ? d.nodes()[0].contentDocument.body : "body"), _ = c === "sandbox" ? g.select(`[id="${r}"]`) : select_default(`[id="${r}"]`), v = l?.width ?? u.width, y = l?.height ?? u.width, S = l?.useMaxWidth ?? u.useMaxWidth, C = l?.nodeAlignment ?? u.nodeAlignment, w = l?.prefix ?? u.prefix, T = l?.suffix ?? u.suffix, E = l?.showValues ?? u.showValues, D = l?.nodeWidth ?? u.nodeWidth ?? 10, O = l?.nodePadding ?? u.nodePadding ?? 12, k = l?.labelStyle ?? u.labelStyle ?? "legacy", A = l?.nodeColors ?? {}, j = o.db.getGraph(), P = alignmentsMap[C];
|
|
489
|
+
Sankey().nodeId((e) => e.id).nodeWidth(D).nodePadding(O + (E ? 15 : 0)).nodeAlign(P).extent([[0, 0], [v, y]])(j);
|
|
490
|
+
let F = findCentralNodeLayer(j.nodes), I = ordinal(Tableau10_default), L = /* @__PURE__ */ __name((e) => A[e] ?? I(e), "getNodeColor");
|
|
491
|
+
_.append("g").attr("class", "nodes").selectAll(".node").data(j.nodes).join("g").attr("class", "node").attr("id", (e) => (e.uid = Uid.next("node-")).id).attr("transform", function(e) {
|
|
485
492
|
return "translate(" + e.x0 + "," + e.y0 + ")";
|
|
486
|
-
}).attr("x", (e) => e.x0).attr("y", (e) => e.y0).append("rect").attr("height", (e) => e.y1 - e.y0).attr("width", (e) => e.x1 - e.x0).attr("fill", (e) =>
|
|
487
|
-
let
|
|
488
|
-
${
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
493
|
+
}).attr("x", (e) => e.x0).attr("y", (e) => e.y0).append("rect").attr("height", (e) => e.y1 - e.y0).attr("width", (e) => e.x1 - e.x0).attr("fill", (e) => L(e.id));
|
|
494
|
+
let R = /* @__PURE__ */ __name(({ id: e, value: n }) => E ? `${e}
|
|
495
|
+
${w}${Math.round(n * 100) / 100}${T}` : e, "getText"), z = /* @__PURE__ */ __name((e) => k === "outlined" ? (e.layer ?? 0) < F ? {
|
|
496
|
+
x: e.x0 - 6,
|
|
497
|
+
anchor: "end"
|
|
498
|
+
} : {
|
|
499
|
+
x: e.x1 + 6,
|
|
500
|
+
anchor: "start"
|
|
501
|
+
} : e.x0 < v / 2 ? {
|
|
502
|
+
x: e.x1 + 6,
|
|
503
|
+
anchor: "start"
|
|
504
|
+
} : {
|
|
505
|
+
x: e.x0 - 6,
|
|
506
|
+
anchor: "end"
|
|
507
|
+
}, "getLabelPosition"), B = _.append("g").attr("class", "node-labels").attr("font-size", 14), V = /* @__PURE__ */ __name((e) => B.selectAll(e ? `.${e}` : "text").data(j.nodes).join("text").attr("class", e ?? null).attr("x", (e) => z(e).x).attr("y", (e) => (e.y1 + e.y0) / 2).attr("dy", `${E ? "0" : "0.35"}em`).attr("text-anchor", (e) => z(e).anchor).text(R), "appendLabel");
|
|
508
|
+
k === "outlined" ? (V("sankey-label-bg"), V("sankey-label-fg")) : V();
|
|
509
|
+
let H = _.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", .5).selectAll(".link").data(j.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply"), U = l?.linkColor ?? "gradient";
|
|
510
|
+
if (U === "gradient") {
|
|
511
|
+
let e = H.append("linearGradient").attr("id", (e) => (e.uid = Uid.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (e) => e.source.x1).attr("x2", (e) => e.target.x0);
|
|
512
|
+
e.append("stop").attr("offset", "0%").attr("stop-color", (e) => L(e.source.id)), e.append("stop").attr("offset", "100%").attr("stop-color", (e) => L(e.target.id));
|
|
494
513
|
}
|
|
495
|
-
let
|
|
496
|
-
switch (
|
|
514
|
+
let W;
|
|
515
|
+
switch (U) {
|
|
497
516
|
case "gradient":
|
|
498
|
-
|
|
517
|
+
W = /* @__PURE__ */ __name((e) => e.uid, "coloring");
|
|
499
518
|
break;
|
|
500
519
|
case "source":
|
|
501
|
-
|
|
520
|
+
W = /* @__PURE__ */ __name((e) => L(e.source.id), "coloring");
|
|
502
521
|
break;
|
|
503
522
|
case "target":
|
|
504
|
-
|
|
523
|
+
W = /* @__PURE__ */ __name((e) => L(e.target.id), "coloring");
|
|
505
524
|
break;
|
|
506
|
-
default:
|
|
525
|
+
default: W = U;
|
|
507
526
|
}
|
|
508
|
-
|
|
527
|
+
H.append("path").attr("d", sankeyLinkHorizontal_default()).attr("stroke", W).attr("stroke-width", (e) => Math.max(1, e.width)), setupGraphViewbox(void 0, _, 0, S);
|
|
509
528
|
}, "draw") }, prepareTextForParsing = /* @__PURE__ */ __name((e) => e.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, "\n").trim(), "prepareTextForParsing"), styles_default = /* @__PURE__ */ __name((e) => `.label {
|
|
510
|
-
|
|
511
|
-
|
|
529
|
+
font-family: ${e.fontFamily};
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
.node-labels {
|
|
533
|
+
font-family: ${e.fontFamily};
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
/* Outlined label style - background stroke for better readability */
|
|
537
|
+
.sankey-label-bg {
|
|
538
|
+
stroke: ${e.mainBkg || e.background || "#fff"};
|
|
539
|
+
stroke-width: 4px;
|
|
540
|
+
stroke-linejoin: round;
|
|
541
|
+
paint-order: stroke;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
/* Foreground label text */
|
|
545
|
+
.sankey-label-fg {
|
|
546
|
+
fill: ${e.textColor};
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
/* Node styling */
|
|
550
|
+
.node rect {
|
|
551
|
+
shape-rendering: crispEdges;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
/* Link styling */
|
|
555
|
+
.link {
|
|
556
|
+
fill: none;
|
|
557
|
+
stroke-opacity: 0.5;
|
|
558
|
+
mix-blend-mode: multiply;
|
|
559
|
+
}
|
|
560
|
+
`, "getStyles"), originalParse = sankey_default.parse.bind(sankey_default);
|
|
512
561
|
sankey_default.parse = (e) => originalParse(prepareTextForParsing(e));
|
|
513
562
|
var diagram = {
|
|
514
563
|
styles: styles_default,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __name, log } from "./chunk-AGHRB4JF.js";
|
|
2
|
-
import { assignWithDepth_default, calculateMathMLDimensions, clear, common_default, configureSvgSize, getAccDescription, getAccTitle, getConfig, getConfig2, getDiagramTitle, getUrl, hasKatex, renderKatexSanitized, sanitizeText, setAccDescription, setAccTitle, setConfig2, setDiagramTitle } from "./chunk-
|
|
2
|
+
import { assignWithDepth_default, calculateMathMLDimensions, clear, common_default, configureSvgSize, getAccDescription, getAccTitle, getConfig, getConfig2, getDiagramTitle, getUrl, hasKatex, renderKatexSanitized, sanitizeText, setAccDescription, setAccTitle, setConfig2, setDiagramTitle } from "./chunk-CSCIHK7Q.js";
|
|
3
3
|
import select_default from "../../../../d3-selection/src/select.js";
|
|
4
4
|
import "../../../../d3/src/index.js";
|
|
5
5
|
import { JSON_SCHEMA, load } from "./chunk-XPW4576I.js";
|
|
6
6
|
import { require_dist } from "../../../../@braintree/sanitize-url/dist/index.js";
|
|
7
|
-
import { ZERO_WIDTH_SPACE, parseFontSize, utils_default } from "./chunk-
|
|
8
|
-
import { drawBackgroundRect, drawEmbeddedImage, drawImage, drawRect, getNoteRect, getTextObj } from "./chunk-
|
|
7
|
+
import { ZERO_WIDTH_SPACE, parseFontSize, utils_default } from "./chunk-5ZQYHXKU.js";
|
|
8
|
+
import { drawBackgroundRect, drawEmbeddedImage, drawImage, drawRect, getNoteRect, getTextObj } from "./chunk-ND2GUHAM.js";
|
|
9
9
|
import { ImperativeState } from "./chunk-QZHKN3VN.js";
|
|
10
10
|
var import_dist = require_dist(), parser = (function() {
|
|
11
11
|
var t = /* @__PURE__ */ __name(function(e, t, n, r) {
|
|
@@ -2198,7 +2198,7 @@ var import_dist = require_dist(), parser = (function() {
|
|
|
2198
2198
|
/^(?:#[^\n]*)/i,
|
|
2199
2199
|
/^(?:%(?!\{)[^\n]*)/i,
|
|
2200
2200
|
/^(?:[^\}]%%[^\n]*)/i,
|
|
2201
|
-
/^(?:[0-9]+(?=[ \n]+))/i,
|
|
2201
|
+
/^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,
|
|
2202
2202
|
/^(?:@\{)/i,
|
|
2203
2203
|
/^(?:[^\}]+)/i,
|
|
2204
2204
|
/^(?:\}(?=\s+as\s))/i,
|
|
@@ -2969,6 +2969,11 @@ var sequenceDiagram_default = parser, LINETYPE = {
|
|
|
2969
2969
|
stroke: none;
|
|
2970
2970
|
}
|
|
2971
2971
|
|
|
2972
|
+
.sectionTitle, .sectionTitle > tspan {
|
|
2973
|
+
fill: ${e.loopTextColor};
|
|
2974
|
+
stroke: none;
|
|
2975
|
+
}
|
|
2976
|
+
|
|
2972
2977
|
.loopLine {
|
|
2973
2978
|
stroke-width: 2px;
|
|
2974
2979
|
stroke-dasharray: 2, 2;
|
|
@@ -3288,7 +3293,7 @@ var sequenceDiagram_default = parser, LINETYPE = {
|
|
|
3288
3293
|
let _ = hasKatex(g.text) ? await drawKatex(m, g, n) : drawText(m, g);
|
|
3289
3294
|
if (n.sectionTitles !== void 0) {
|
|
3290
3295
|
for (let [e, t] of Object.entries(n.sectionTitles)) if (t.message) {
|
|
3291
|
-
g.text = t.message, g.x = n.startx + (n.stopx - n.startx) / 2, g.y = n.sections[e].y + o + s, g.class = "
|
|
3296
|
+
g.text = t.message, g.x = n.startx + (n.stopx - n.startx) / 2, g.y = n.sections[e].y + o + s, g.class = "sectionTitle", g.anchor = "middle", g.valign = "middle", g.tspan = !1, g.fontFamily = u, g.fontSize = d, g.fontWeight = f, g.wrap = n.wrap, hasKatex(g.text) ? (n.starty = n.sections[e].y, await drawKatex(m, g, n)) : drawText(m, g);
|
|
3292
3297
|
let r = Math.round(_.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
|
|
3293
3298
|
n.sections[e].height += r - (o + s);
|
|
3294
3299
|
}
|
|
@@ -3646,7 +3651,7 @@ async function boundMessage(e, t) {
|
|
|
3646
3651
|
__name(boundMessage, "boundMessage");
|
|
3647
3652
|
var drawMessage = /* @__PURE__ */ __name(async function(e, t, n, r, i, o) {
|
|
3648
3653
|
let { startx: s, stopx: c, starty: l, message: u, type: d, sequenceIndex: m, sequenceVisible: h } = t, g = utils_default.calculateTextDimensions(u, messageFont(conf)), _ = getTextObj();
|
|
3649
|
-
_.x = s, _.y = l + 10, _.width = c - s, _.class = "messageText", _.dy = "1em", _.text = u, _.fontFamily = conf.messageFontFamily, _.fontSize = conf.messageFontSize, _.fontWeight = conf.messageFontWeight, _.anchor = conf.messageAlign, _.valign = "center", _.textMargin = conf.wrapPadding, _.tspan = !1, hasKatex(_.text) ? await drawKatex(e, _, {
|
|
3654
|
+
_.x = Math.min(s, c), _.y = l + 10, _.width = Math.abs(c - s), _.class = "messageText", _.dy = "1em", _.text = u, _.fontFamily = conf.messageFontFamily, _.fontSize = conf.messageFontSize, _.fontWeight = conf.messageFontWeight, _.anchor = conf.messageAlign, _.valign = "center", _.textMargin = conf.wrapPadding, _.tspan = !1, hasKatex(_.text) ? await drawKatex(e, _, {
|
|
3650
3655
|
startx: s,
|
|
3651
3656
|
stopx: c,
|
|
3652
3657
|
starty: n
|
|
@@ -3662,7 +3667,9 @@ var drawMessage = /* @__PURE__ */ __name(async function(e, t, n, r, i, o) {
|
|
|
3662
3667
|
let a = d === r.db.LINETYPE.BIDIRECTIONAL_SOLID || d === r.db.LINETYPE.BIDIRECTIONAL_DOTTED, l = d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED, u = hasCentralConnection(i, r), f = s, p = c;
|
|
3663
3668
|
a ? (s < c ? f = s + 12 : (f = s - 6 + (u ? -5 : 0), f += i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_DUAL || i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), y.attr("x1", f)) : l ? (c > s ? p = c - 12 : (p = c - 6, f += i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_DUAL || i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), p += u ? 15 : 0, y.attr("x2", p), y.attr("x1", f)) : y.attr("x1", s + 6);
|
|
3664
3669
|
let h = 0, g = s === c, _ = s <= c;
|
|
3665
|
-
h = g ? t.fromBounds + 1 : l ? _ ? t.toBounds - 1 : t.fromBounds + 1 : _ ? t.fromBounds + 1 : t.toBounds - 1
|
|
3670
|
+
h = g ? t.fromBounds + 1 : l ? _ ? t.toBounds - 1 : t.fromBounds + 1 : _ ? t.fromBounds + 1 : t.toBounds - 1;
|
|
3671
|
+
let v = "12px", x = m.toString().length;
|
|
3672
|
+
x > 5 ? v = "7px" : x > 3 && (v = "9px"), e.append("line").attr("x1", h).attr("y1", n).attr("x2", h).attr("y2", n).attr("stroke-width", 0).attr("marker-start", "url(" + b + "#" + o + "-sequencenumber)"), e.append("text").attr("x", h).attr("y", n + 4).attr("font-family", "sans-serif").attr("font-size", v).attr("text-anchor", "middle").attr("class", "sequenceNumber").text(m);
|
|
3666
3673
|
}
|
|
3667
3674
|
}, "drawMessage"), addActorRenderingData = /* @__PURE__ */ __name(function(e, t, n, r, i, o, s) {
|
|
3668
3675
|
let c = 0, l = 0, u, d = 0;
|
|
@@ -3885,7 +3892,7 @@ var draw = /* @__PURE__ */ __name(async function(n, r, i, a) {
|
|
|
3885
3892
|
a.db.LINETYPE.DOTTED_POINT,
|
|
3886
3893
|
a.db.LINETYPE.BIDIRECTIONAL_SOLID,
|
|
3887
3894
|
a.db.LINETYPE.BIDIRECTIONAL_DOTTED
|
|
3888
|
-
].includes(e.type) && (k
|
|
3895
|
+
].includes(e.type) && (k = Math.round((k + A) * 100) / 100), N++;
|
|
3889
3896
|
}
|
|
3890
3897
|
log.debug("createdActors", g), log.debug("destroyedActors", _), await drawActors(m, h, y, !1, r, a, E);
|
|
3891
3898
|
for (let e of j) await drawMessage(m, e.messageModel, e.lineStartY, a, e.msg, r);
|