@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.
Files changed (366) hide show
  1. package/dist/_virtual/rolldown_runtime.js +13 -15
  2. package/dist/components/dynamic-form/Form.js +49 -52
  3. package/dist/config.js +6 -0
  4. package/dist/features/debug/components/WorkflowFlowViewer.js +94 -81
  5. package/dist/features/debug/components/workflow-flow/StateNode.js +154 -79
  6. package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +43 -31
  7. package/dist/features/debug/components/workflow-flow/WorkflowTransitionEdge.js +52 -51
  8. package/dist/features/debug/lib/edge-paths.js +45 -30
  9. package/dist/features/debug/lib/flow-types.js +2 -0
  10. package/dist/features/debug/lib/flow-utils.js +66 -64
  11. package/dist/features/documents/components/DocumentList.js +19 -18
  12. package/dist/features/workbench/WorkflowItem.js +4 -3
  13. package/dist/features/workbench/components/EmbedLogsContent.js +5 -0
  14. package/dist/features/workbench/components/PreviewEmptyState.js +10 -0
  15. package/dist/features/workbench/components/PreviewWorkbench.js +14 -0
  16. package/dist/features/workbench/components/RecentRunItem.js +48 -0
  17. package/dist/features/workbench/components/WorkflowForms.js +4 -3
  18. package/dist/features/workbench/hooks/useEmbedBridge.js +3 -0
  19. package/dist/features/workbench/hooks/useWorkflowData.js +9 -9
  20. package/dist/features/workbench/index.js +4 -0
  21. package/dist/features/workspaces/components/ExecutionTimeline.js +9 -8
  22. package/dist/loopstack-studio.css +1 -1
  23. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{architecture-YZFGNWBL.js → architecture-7EHR7CIX.js} +2 -2
  24. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-7N4EOEYR.js → chunk-4EGX6M5U.js} +9 -13
  25. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-KGLVRYIC.js → chunk-5DO6E6H7.js} +3 -7
  26. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-BR22UD5L.js +56 -0
  27. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-2KRD3SAO.js → chunk-FHYWG6QK.js} +3 -7
  28. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-FOC6F5B3.js → chunk-MPE355IW.js} +3 -7
  29. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MZUSXYTE.js +24 -0
  30. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-N66VUXT2.js +48 -0
  31. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-NNHCCRGN.js +20219 -0
  32. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PUPMXCY4.js +19 -0
  33. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-67CJDMHE.js → chunk-UIBZB4QT.js} +3 -7
  34. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-WCWK7LTN.js +25 -0
  35. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-FCH6USID.js +3 -0
  36. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{gitGraph-7Q5UKJZL.js → gitGraph-WXDBUCRP.js} +2 -2
  37. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-J43DQDTF.js +3 -0
  38. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-YPE3B663.js +3 -0
  39. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-LRSECV5Y.js +3 -0
  40. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-GUYGQ44K.js +3 -0
  41. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{treeView-SZITEDCU.js → treeView-BLDUP644.js} +2 -2
  42. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-LRROVOQU.js +3 -0
  43. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-L42UT6IY.js +3 -0
  44. package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +24 -19
  45. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +36 -26
  46. package/dist/node_modules/@xyflow/react/dist/esm/index.js +1 -1
  47. package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +257 -254
  48. package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +19 -19
  49. package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +48 -48
  50. package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +9 -9
  51. package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +3 -3
  52. package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +11 -11
  53. package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +4 -4
  54. package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +4 -4
  55. package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +8 -8
  56. package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +5 -5
  57. package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +72 -72
  58. package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +1 -1
  59. package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +25 -25
  60. package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +8 -8
  61. package/dist/node_modules/dagre-d3-es/src/dagre/util.js +48 -48
  62. package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +109 -109
  63. package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +17 -17
  64. package/dist/node_modules/dompurify/dist/purify.es.js +293 -205
  65. package/dist/node_modules/es-toolkit/dist/_internal/globalThis.js +4 -0
  66. package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +4 -0
  67. package/dist/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +4 -0
  68. package/dist/node_modules/es-toolkit/dist/compat/_internal/getTag.js +4 -0
  69. package/dist/node_modules/es-toolkit/dist/compat/_internal/isPrototype.js +5 -0
  70. package/dist/node_modules/es-toolkit/dist/compat/_internal/tags.js +2 -0
  71. package/dist/node_modules/es-toolkit/dist/compat/function/memoize.js +12 -0
  72. package/dist/node_modules/es-toolkit/dist/compat/object/clone.js +97 -0
  73. package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +5 -0
  74. package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +29 -0
  75. package/dist/node_modules/es-toolkit/dist/compat/object/merge.js +6 -0
  76. package/dist/node_modules/es-toolkit/dist/compat/object/mergeWith.js +49 -0
  77. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArguments.js +5 -0
  78. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArray.js +4 -0
  79. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +5 -0
  80. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js +6 -0
  81. package/dist/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js +16 -0
  82. package/dist/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js +4 -0
  83. package/dist/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js +12 -0
  84. package/dist/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.js +5 -0
  85. package/dist/node_modules/es-toolkit/dist/function/noop.js +2 -0
  86. package/dist/node_modules/es-toolkit/dist/object/clone.js +29 -0
  87. package/dist/node_modules/es-toolkit/dist/object/cloneDeepWith.js +114 -0
  88. package/dist/node_modules/es-toolkit/dist/predicate/isBuffer.js +5 -0
  89. package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +4 -0
  90. package/dist/node_modules/es-toolkit/dist/predicate/isPrimitive.js +4 -0
  91. package/dist/node_modules/es-toolkit/dist/predicate/isTypedArray.js +4 -0
  92. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js +2 -2
  93. package/dist/node_modules/internmap/src/index.js +1 -1
  94. package/dist/node_modules/katex/dist/katex.js +379 -417
  95. package/dist/node_modules/lodash-es/_arrayLikeKeys.js +3 -3
  96. package/dist/node_modules/lodash-es/_assignMergeValue.js +1 -1
  97. package/dist/node_modules/lodash-es/_assignValue.js +1 -1
  98. package/dist/node_modules/lodash-es/_baseClone.js +9 -9
  99. package/dist/node_modules/lodash-es/_baseForOwn.js +1 -1
  100. package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +1 -1
  101. package/dist/node_modules/lodash-es/_baseMatchesProperty.js +6 -6
  102. package/dist/node_modules/lodash-es/_baseMerge.js +2 -2
  103. package/dist/node_modules/lodash-es/_baseMergeDeep.js +7 -7
  104. package/dist/node_modules/lodash-es/_baseOrderBy.js +12 -12
  105. package/dist/node_modules/lodash-es/_baseRest.js +1 -1
  106. package/dist/node_modules/lodash-es/_baseSet.js +1 -1
  107. package/dist/node_modules/lodash-es/_baseSetToString.js +3 -3
  108. package/dist/node_modules/lodash-es/_baseToString.js +2 -2
  109. package/dist/node_modules/lodash-es/_baseUniq.js +1 -1
  110. package/dist/node_modules/lodash-es/_createRange.js +1 -1
  111. package/dist/node_modules/lodash-es/_createSet.js +3 -3
  112. package/dist/node_modules/lodash-es/_flatRest.js +1 -1
  113. package/dist/node_modules/lodash-es/_getAllKeys.js +2 -2
  114. package/dist/node_modules/lodash-es/_getAllKeysIn.js +1 -1
  115. package/dist/node_modules/lodash-es/_getSymbolsIn.js +1 -1
  116. package/dist/node_modules/lodash-es/_getTag.js +1 -1
  117. package/dist/node_modules/lodash-es/_hasPath.js +2 -2
  118. package/dist/node_modules/lodash-es/_initCloneByTag.js +1 -1
  119. package/dist/node_modules/lodash-es/_initCloneObject.js +1 -1
  120. package/dist/node_modules/lodash-es/_isFlattenable.js +1 -1
  121. package/dist/node_modules/lodash-es/_isIterateeCall.js +1 -1
  122. package/dist/node_modules/lodash-es/_isKey.js +1 -1
  123. package/dist/node_modules/lodash-es/_setToString.js +1 -1
  124. package/dist/node_modules/lodash-es/defaults.js +1 -1
  125. package/dist/node_modules/lodash-es/findIndex.js +2 -2
  126. package/dist/node_modules/lodash-es/forEach.js +1 -1
  127. package/dist/node_modules/lodash-es/forIn.js +1 -1
  128. package/dist/node_modules/lodash-es/isEmpty.js +2 -2
  129. package/dist/node_modules/lodash-es/isPlainObject.js +1 -1
  130. package/dist/node_modules/lodash-es/map.js +1 -1
  131. package/dist/node_modules/lodash-es/max.js +1 -1
  132. package/dist/node_modules/lodash-es/merge.js +3 -3
  133. package/dist/node_modules/lodash-es/min.js +1 -1
  134. package/dist/node_modules/lodash-es/minBy.js +1 -1
  135. package/dist/node_modules/lodash-es/reduce.js +1 -1
  136. package/dist/node_modules/lodash-es/toNumber.js +1 -1
  137. package/dist/node_modules/lodash-es/union.js +3 -3
  138. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{architectureDiagram-Q4EWVU46.js → architectureDiagram-3BPJPVTR.js} +310 -308
  139. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{blockDiagram-DXYQGD6D.js → blockDiagram-GPEHLZMM.js} +215 -190
  140. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{c4Diagram-AHTNJAMY.js → c4Diagram-AAUBKEIU.js} +3 -3
  141. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-EDXVE4YY.js → chunk-2J33WTMH.js} +1 -1
  142. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-5FUZZQ4R.js → chunk-3OPIFGDE.js} +48 -20
  143. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-5PVQY5BW.js → chunk-5ZQYHXKU.js} +8 -8
  144. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-4TB4RGXK.js → chunk-727SXJPM.js} +555 -459
  145. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-OYMX7WX6.js → chunk-AQP2D5EJ.js} +155 -145
  146. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ICPOFSXX.js → chunk-CSCIHK7Q.js} +106 -12
  147. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ENJZ2VHE.js → chunk-KSCS5N6A.js} +12 -12
  148. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ZZ45TVLE.js → chunk-L5ZTLDWV.js} +2 -2
  149. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-336JU56O.js → chunk-LZXEDZCA.js} +5 -5
  150. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-YZCP3GAM.js → chunk-ND2GUHAM.js} +1 -1
  151. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-X2U36JSP.js → chunk-NZK2D7GU.js} +1 -1
  152. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-U2HBQHQK.js → chunk-O5CBEL6O.js} +2 -2
  153. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-426QAEUC.js → chunk-WU5MYG2G.js} +1 -1
  154. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-6PBFFD2Q.js → classDiagram-4FO5ZUOK.js} +11 -11
  155. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-v2-HSJHXN6E.js → classDiagram-v2-Q7XG4LA2.js} +11 -11
  156. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{dagre-KV5264BT.js → dagre-BM42HDAG.js} +8 -8
  157. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-MMDJMWI5.js → diagram-2AECGRRQ.js} +3 -3
  158. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-5BDNPKRD.js → diagram-5GNKFQAL.js} +3 -3
  159. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-KO2AKTUF.js +433 -0
  160. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-TYMM5635.js → diagram-LMA3HP47.js} +3 -3
  161. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-G4DWMVQ6.js → diagram-OG6HWLK6.js} +5 -5
  162. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{erDiagram-SMLLAGMA.js → erDiagram-TEJ5UH35.js} +9 -9
  163. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{flowDiagram-DWJPFMVM.js → flowDiagram-I6XJVG4X.js} +10 -10
  164. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{ganttDiagram-T4ZO3ILL.js → ganttDiagram-6RSMTGT7.js} +7 -4
  165. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{gitGraphDiagram-UUTBAWPF.js → gitGraphDiagram-PVQCEYII.js} +2 -2
  166. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{infoDiagram-42DDH7IO.js → infoDiagram-5YYISTIA.js} +3 -3
  167. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{ishikawaDiagram-UXIWVN3A.js → ishikawaDiagram-YF4QCWOH.js} +3 -3
  168. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{journeyDiagram-VCZTEJTY.js → journeyDiagram-JHISSGLW.js} +2 -2
  169. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{kanban-definition-6JOO6SKY.js → kanban-definition-UN3LZRKU.js} +7 -7
  170. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{mindmap-definition-QFDTVHPH.js → mindmap-definition-RKZ34NQL.js} +9 -9
  171. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{pieDiagram-DEJITSTG.js → pieDiagram-4H26LBE5.js} +3 -3
  172. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{quadrantDiagram-34T5L4WZ.js → quadrantDiagram-W4KKPZXB.js} +364 -337
  173. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{requirementDiagram-MS252O5E.js → requirementDiagram-4Y6WPE33.js} +9 -9
  174. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{sankeyDiagram-XADWPNL6.js → sankeyDiagram-5OEKKPKP.js} +187 -138
  175. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{sequenceDiagram-FGHM5R23.js → sequenceDiagram-3UESZ5HK.js} +15 -8
  176. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-FHFEXIEX.js → stateDiagram-AJRCARHV.js} +10 -10
  177. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-v2-QKLJ7IA2.js → stateDiagram-v2-BHNVJYJU.js} +10 -10
  178. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{timeline-definition-GMOUNBTQ.js → timeline-definition-PNZ67QCA.js} +3 -3
  179. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{vennDiagram-DHZGUBPP.js → vennDiagram-CIIHVFJN.js} +3 -3
  180. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-YWT4CUSO.js +640 -0
  181. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{xychartDiagram-5P7HB3ND.js → xychartDiagram-2RQKCTM6.js} +4 -4
  182. package/dist/node_modules/mermaid/dist/mermaid.core.js +96 -70
  183. package/dist/node_modules/stylis/src/Enum.js +2 -2
  184. package/dist/node_modules/stylis/src/Middleware.js +9 -0
  185. package/dist/node_modules/stylis/src/Parser.js +55 -44
  186. package/dist/node_modules/stylis/src/Utility.js +9 -12
  187. package/dist/node_modules/unified/lib/index.js +1 -1
  188. package/dist/packages/contracts/dist/enums/index.js +4 -24
  189. package/dist/packages/contracts/dist/enums/registry.enum.js +9 -20
  190. package/dist/packages/contracts/dist/enums/sort-order.enum.js +5 -10
  191. package/dist/packages/contracts/dist/enums/user-type.enum.js +5 -10
  192. package/dist/packages/contracts/dist/enums/workflow-state.enum.js +5 -10
  193. package/dist/pages/EmbedWorkbenchPage.js +4 -3
  194. package/dist/pages/PreviewWorkbenchPage.js +126 -124
  195. package/dist/pages/StudioLandingPage.js +28 -72
  196. package/package.json +2 -2
  197. package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +0 -23
  198. package/dist/node_modules/@chevrotain/gast/lib/src/model.js +0 -151
  199. package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +0 -40
  200. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +0 -2
  201. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +0 -85
  202. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +0 -35
  203. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +0 -570
  204. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +0 -25
  205. package/dist/node_modules/@chevrotain/utils/lib/src/print.js +0 -9
  206. package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +0 -8
  207. package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +0 -10
  208. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +0 -28
  209. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +0 -23
  210. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +0 -1197
  211. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js +0 -60
  212. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +0 -29
  213. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +0 -3
  214. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +0 -3
  215. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +0 -3
  216. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +0 -3
  217. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +0 -3
  218. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +0 -3
  219. package/dist/node_modules/chevrotain/lib/src/api.js +0 -10
  220. package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +0 -10
  221. package/dist/node_modules/chevrotain/lib/src/parse/constants.js +0 -2
  222. package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +0 -13
  223. package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +0 -49
  224. package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +0 -77
  225. package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +0 -33
  226. package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +0 -275
  227. package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +0 -23
  228. package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +0 -28
  229. package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +0 -14
  230. package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +0 -262
  231. package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +0 -5
  232. package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +0 -41
  233. package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +0 -241
  234. package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +0 -30
  235. package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +0 -56
  236. package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +0 -114
  237. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +0 -46
  238. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +0 -166
  239. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +0 -43
  240. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +0 -107
  241. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +0 -21
  242. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +0 -312
  243. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +0 -285
  244. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +0 -144
  245. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +0 -92
  246. package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +0 -11
  247. package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +0 -437
  248. package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +0 -9
  249. package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +0 -253
  250. package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +0 -152
  251. package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +0 -15
  252. package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +0 -65
  253. package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +0 -39
  254. package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +0 -346
  255. package/dist/node_modules/chevrotain-allstar/lib/atn.js +0 -194
  256. package/dist/node_modules/chevrotain-allstar/lib/dfa.js +0 -32
  257. package/dist/node_modules/chevrotain-allstar/lib/index.js +0 -1
  258. package/dist/node_modules/langium/lib/default-module.js +0 -85
  259. package/dist/node_modules/langium/lib/dependency-injection.js +0 -62
  260. package/dist/node_modules/langium/lib/documentation/comment-provider.js +0 -11
  261. package/dist/node_modules/langium/lib/documentation/documentation-provider.js +0 -36
  262. package/dist/node_modules/langium/lib/documentation/jsdoc.js +0 -303
  263. package/dist/node_modules/langium/lib/index.js +0 -182
  264. package/dist/node_modules/langium/lib/languages/generated/ast.js +0 -1089
  265. package/dist/node_modules/langium/lib/languages/grammar-config.js +0 -13
  266. package/dist/node_modules/langium/lib/parser/async-parser.js +0 -83
  267. package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +0 -7
  268. package/dist/node_modules/langium/lib/parser/cst-node-builder.js +0 -160
  269. package/dist/node_modules/langium/lib/parser/indentation-aware.js +0 -141
  270. package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +0 -11
  271. package/dist/node_modules/langium/lib/parser/langium-parser.js +0 -388
  272. package/dist/node_modules/langium/lib/parser/lexer.js +0 -50
  273. package/dist/node_modules/langium/lib/parser/parser-builder-base.js +0 -275
  274. package/dist/node_modules/langium/lib/parser/token-builder.js +0 -61
  275. package/dist/node_modules/langium/lib/parser/value-converter.js +0 -78
  276. package/dist/node_modules/langium/lib/references/linker.js +0 -190
  277. package/dist/node_modules/langium/lib/references/name-provider.js +0 -13
  278. package/dist/node_modules/langium/lib/references/references.js +0 -76
  279. package/dist/node_modules/langium/lib/references/scope-computation.js +0 -35
  280. package/dist/node_modules/langium/lib/references/scope-provider.js +0 -34
  281. package/dist/node_modules/langium/lib/references/scope.js +0 -73
  282. package/dist/node_modules/langium/lib/serializer/hydrator.js +0 -125
  283. package/dist/node_modules/langium/lib/serializer/json-serializer.js +0 -145
  284. package/dist/node_modules/langium/lib/service-registry.js +0 -37
  285. package/dist/node_modules/langium/lib/syntax-tree.js +0 -70
  286. package/dist/node_modules/langium/lib/utils/ast-utils.js +0 -157
  287. package/dist/node_modules/langium/lib/utils/caching.js +0 -91
  288. package/dist/node_modules/langium/lib/utils/cancellation.js +0 -5
  289. package/dist/node_modules/langium/lib/utils/collections.js +0 -85
  290. package/dist/node_modules/langium/lib/utils/cst-utils.js +0 -190
  291. package/dist/node_modules/langium/lib/utils/disposable.js +0 -8
  292. package/dist/node_modules/langium/lib/utils/errors.js +0 -12
  293. package/dist/node_modules/langium/lib/utils/event.js +0 -5
  294. package/dist/node_modules/langium/lib/utils/grammar-loader.js +0 -22
  295. package/dist/node_modules/langium/lib/utils/grammar-utils.js +0 -296
  296. package/dist/node_modules/langium/lib/utils/index.js +0 -53
  297. package/dist/node_modules/langium/lib/utils/promise-utils.js +0 -30
  298. package/dist/node_modules/langium/lib/utils/regexp-utils.js +0 -167
  299. package/dist/node_modules/langium/lib/utils/stream.js +0 -327
  300. package/dist/node_modules/langium/lib/utils/uri-utils.js +0 -107
  301. package/dist/node_modules/langium/lib/validation/document-validator.js +0 -210
  302. package/dist/node_modules/langium/lib/validation/validation-registry.js +0 -87
  303. package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +0 -57
  304. package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +0 -28
  305. package/dist/node_modules/langium/lib/workspace/configuration.js +0 -51
  306. package/dist/node_modules/langium/lib/workspace/document-builder.js +0 -201
  307. package/dist/node_modules/langium/lib/workspace/documents.js +0 -142
  308. package/dist/node_modules/langium/lib/workspace/file-system-provider.js +0 -34
  309. package/dist/node_modules/langium/lib/workspace/index-manager.js +0 -49
  310. package/dist/node_modules/langium/lib/workspace/profiler.js +0 -89
  311. package/dist/node_modules/langium/lib/workspace/workspace-lock.js +0 -42
  312. package/dist/node_modules/langium/lib/workspace/workspace-manager.js +0 -66
  313. package/dist/node_modules/lodash-es/flatMap.js +0 -7
  314. package/dist/node_modules/lodash-es/uniqBy.js +0 -7
  315. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +0 -574
  316. package/dist/node_modules/vscode-jsonrpc/browser.js +0 -7
  317. package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +0 -52
  318. package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +0 -120
  319. package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +0 -337
  320. package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -57
  321. package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +0 -647
  322. package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +0 -13
  323. package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +0 -64
  324. package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +0 -34
  325. package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +0 -235
  326. package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +0 -93
  327. package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +0 -129
  328. package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +0 -85
  329. package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +0 -161
  330. package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -18
  331. package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +0 -44
  332. package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +0 -58
  333. package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +0 -28
  334. package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +0 -36
  335. package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +0 -12
  336. package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +0 -31
  337. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +0 -19
  338. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +0 -15
  339. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +0 -11
  340. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +0 -11
  341. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +0 -33
  342. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +0 -35
  343. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +0 -15
  344. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +0 -11
  345. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +0 -19
  346. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +0 -11
  347. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +0 -15
  348. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +0 -674
  349. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +0 -11
  350. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +0 -19
  351. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +0 -126
  352. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +0 -24
  353. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +0 -11
  354. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +0 -31
  355. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +0 -11
  356. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +0 -11
  357. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +0 -19
  358. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +0 -15
  359. package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +0 -42
  360. package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +0 -138
  361. package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +0 -1084
  362. package/dist/node_modules/vscode-uri/lib/esm/index.js +0 -373
  363. /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/decode-codepoint.js +0 -0
  364. /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/decode.js +0 -0
  365. /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/generated/decode-data-html.js +0 -0
  366. /package/dist/node_modules/{unified/node_modules/is-plain-obj → is-plain-obj}/index.js +0 -0
@@ -1,17 +1,17 @@
1
1
  import { __name, log } from "./chunk-AGHRB4JF.js";
2
2
  import rgba_default from "../../../../khroma/dist/methods/rgba.js";
3
3
  import channel_default from "../../../../khroma/dist/methods/channel.js";
4
- import { clear, common_default, configureSvgSize, getConfig, getConfig2, getEffectiveHtmlLabels, getUrl, sanitizeText } from "./chunk-ICPOFSXX.js";
4
+ import { clear, common_default, configureSvgSize, getConfig, getConfig2, getEffectiveHtmlLabels, getUrl, sanitizeText } from "./chunk-CSCIHK7Q.js";
5
5
  import select_default from "../../../../d3-selection/src/select.js";
6
6
  import line_default from "../../../../d3-shape/src/line.js";
7
7
  import basis_default from "../../../../d3-shape/src/curve/basis.js";
8
8
  import "../../../../d3/src/index.js";
9
9
  import { computeLabelTransform, getLineFunctionsWithOffset } from "./chunk-BSJP7CBP.js";
10
- import { decodeEntities, getStylesFromArray, utils_default } from "./chunk-5PVQY5BW.js";
11
- import { configureLabelImages, getSubGraphTitleMargins } from "./chunk-ZZ45TVLE.js";
12
- import { createText } from "./chunk-U2HBQHQK.js";
10
+ import { clone } from "../../../../es-toolkit/dist/compat/object/clone.js";
11
+ import { decodeEntities, getStylesFromArray, utils_default } from "./chunk-5ZQYHXKU.js";
12
+ import { configureLabelImages, getSubGraphTitleMargins } from "./chunk-L5ZTLDWV.js";
13
+ import { createText } from "./chunk-O5CBEL6O.js";
13
14
  import { getIconStyles } from "./chunk-FMBD7UC4.js";
14
- import clone_default from "../../../../lodash-es/clone.js";
15
15
  import { Graph } from "../../../../dagre-d3-es/src/graphlib/graph.js";
16
16
  import "../../../../dagre-d3-es/src/graphlib/index.js";
17
17
  var parser = (function() {
@@ -241,7 +241,7 @@ var parser = (function() {
241
241
  break;
242
242
  case 23:
243
243
  w.getLogger().debug("Rule: (nodeStatement link node) ", E[O - 2], E[O - 1], E[O], " typestr: ", E[O - 1].edgeTypeStr);
244
- let C = w.edgeStrToEdgeData(E[O - 1].edgeTypeStr);
244
+ let C = w.edgeStrToEdgeData(E[O - 1].edgeTypeStr), T = w.edgeStrToEdgeStartData(E[O - 1].edgeTypeStr), D = w.edgeStrToThickness(E[O - 1].edgeTypeStr), k = w.edgeStrToPattern(E[O - 1].edgeTypeStr);
245
245
  this.$ = [
246
246
  {
247
247
  id: E[O - 2].id,
@@ -255,9 +255,11 @@ var parser = (function() {
255
255
  end: E[O].id,
256
256
  label: E[O - 1].label,
257
257
  type: "edge",
258
+ thickness: D,
259
+ pattern: k,
258
260
  directions: E[O].directions,
259
261
  arrowTypeEnd: C,
260
- arrowTypeStart: "arrow_open"
262
+ arrowTypeStart: T
261
263
  },
262
264
  {
263
265
  id: E[O].id,
@@ -938,7 +940,7 @@ var parser = (function() {
938
940
  /^(?:\[\\)/,
939
941
  /^(?:\[)/,
940
942
  /^(?:<\[)/,
941
- /^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,
943
+ /^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,
942
944
  /^(?:$)/,
943
945
  /^(?:["][`])/,
944
946
  /^(?:["][`])/,
@@ -1204,7 +1206,7 @@ var block_default = parser, blockDatabase = /* @__PURE__ */ new Map(), edgeList
1204
1206
  if (S === void 0 ? blockDatabase.set(e.id, e) : (e.type !== "na" && (S.type = e.type), e.label !== e.id && (S.label = e.label)), e.children && populateBlockDatabase(e.children, e), e.type === "space") {
1205
1207
  let S = e.width ?? 1;
1206
1208
  for (let C = 0; C < S; C++) {
1207
- let S = clone_default(e);
1209
+ let S = clone(e);
1208
1210
  S.id = S.id + "-" + C, blockDatabase.set(S.id, S), T.push(S);
1209
1211
  }
1210
1212
  } else S === void 0 && T.push(e);
@@ -1253,7 +1255,7 @@ function edgeTypeStr2Type(e) {
1253
1255
  }
1254
1256
  __name(edgeTypeStr2Type, "edgeTypeStr2Type");
1255
1257
  function edgeStrToEdgeData(e) {
1256
- switch (e.replace(/^[\s-]+|[\s-]+$/g, "")) {
1258
+ switch (e.trim().slice(-1)) {
1257
1259
  case "x": return "arrow_cross";
1258
1260
  case "o": return "arrow_circle";
1259
1261
  case ">": return "arrow_point";
@@ -1261,11 +1263,31 @@ function edgeStrToEdgeData(e) {
1261
1263
  }
1262
1264
  }
1263
1265
  __name(edgeStrToEdgeData, "edgeStrToEdgeData");
1266
+ function edgeStrToEdgeStartData(e) {
1267
+ switch (e.trim().charAt(0)) {
1268
+ case "x": return "arrow_cross";
1269
+ case "o": return "arrow_circle";
1270
+ case "<": return "arrow_point";
1271
+ default: return "arrow_open";
1272
+ }
1273
+ }
1274
+ __name(edgeStrToEdgeStartData, "edgeStrToEdgeStartData");
1275
+ function edgeStrToThickness(e) {
1276
+ return e.includes("==") ? "thick" : "normal";
1277
+ }
1278
+ __name(edgeStrToThickness, "edgeStrToThickness");
1279
+ function edgeStrToPattern(e) {
1280
+ return e.includes(".-") ? "dotted" : "solid";
1281
+ }
1282
+ __name(edgeStrToPattern, "edgeStrToPattern");
1264
1283
  var cnt = 0, blockDB_default = {
1265
1284
  getConfig: /* @__PURE__ */ __name(() => getConfig().block, "getConfig"),
1266
1285
  typeStr2Type,
1267
1286
  edgeTypeStr2Type,
1268
1287
  edgeStrToEdgeData,
1288
+ edgeStrToEdgeStartData,
1289
+ edgeStrToThickness,
1290
+ edgeStrToPattern,
1269
1291
  getLogger: /* @__PURE__ */ __name(() => log, "getLogger"),
1270
1292
  getBlocksFlat: /* @__PURE__ */ __name(() => [...blockDatabase.values()], "getBlocksFlat"),
1271
1293
  getBlocks: /* @__PURE__ */ __name(() => blocks || [], "getBlocks"),
@@ -1473,7 +1495,9 @@ var getMaxChildSize = /* @__PURE__ */ __name((e) => {
1473
1495
  x: 0,
1474
1496
  y: 0
1475
1497
  };
1476
- log.debug("getMaxChildSize abc95 child:", T.id, "width:", e, "height:", E, "x:", D, "y:", O, T.type), T.type !== "space" && (e > C && (C = e / (T.widthInColumns ?? 1)), E > w && (w = E));
1498
+ if (log.debug("getMaxChildSize abc95 child:", T.id, "width:", e, "height:", E, "x:", D, "y:", O, T.type), T.type === "space") continue;
1499
+ let k = e / (T.widthInColumns ?? 1);
1500
+ k > C && (C = k), E > w && (w = E);
1477
1501
  }
1478
1502
  return {
1479
1503
  width: C,
@@ -1667,8 +1691,8 @@ var createLabel_default = /* @__PURE__ */ __name(async (e, S, C, w = !1, T = !1)
1667
1691
  T.attr("transform", computeLabelTransform(D, w)), terminalLabels[S.id] || (terminalLabels[S.id] = {}), terminalLabels[S.id].startLeft = C, setTerminalWidth(P, S.startLabelLeft);
1668
1692
  }
1669
1693
  if (S.startLabelRight) {
1670
- let C = e.insert("g").attr("class", "edgeTerminals"), T = C.insert("g").attr("class", "inner"), E = await createLabel_default(C, S.startLabelRight, S.labelStyle);
1671
- P = E, T.node().appendChild(E);
1694
+ let C = e.insert("g").attr("class", "edgeTerminals"), T = C.insert("g").attr("class", "inner"), E = await createLabel_default(T, S.startLabelRight, S.labelStyle);
1695
+ P = E;
1672
1696
  let D = E.getBBox();
1673
1697
  if (w) {
1674
1698
  let e = E.children[0], S = select_default(E);
@@ -1677,24 +1701,24 @@ var createLabel_default = /* @__PURE__ */ __name(async (e, S, C, w = !1, T = !1)
1677
1701
  T.attr("transform", computeLabelTransform(D, w)), terminalLabels[S.id] || (terminalLabels[S.id] = {}), terminalLabels[S.id].startRight = C, setTerminalWidth(P, S.startLabelRight);
1678
1702
  }
1679
1703
  if (S.endLabelLeft) {
1680
- let C = e.insert("g").attr("class", "edgeTerminals"), T = C.insert("g").attr("class", "inner"), E = await createLabel_default(T, S.endLabelLeft, S.labelStyle);
1704
+ let C = e.insert("g").attr("class", "edgeTerminals"), T = C.insert("g").attr("class", "inner"), E = await createLabel_default(C, S.endLabelLeft, S.labelStyle);
1681
1705
  P = E;
1682
1706
  let D = E.getBBox();
1683
1707
  if (w) {
1684
1708
  let e = E.children[0], S = select_default(E);
1685
1709
  D = e.getBoundingClientRect(), S.attr("width", D.width), S.attr("height", D.height);
1686
1710
  }
1687
- T.attr("transform", computeLabelTransform(D, w)), C.node().appendChild(E), terminalLabels[S.id] || (terminalLabels[S.id] = {}), terminalLabels[S.id].endLeft = C, setTerminalWidth(P, S.endLabelLeft);
1711
+ T.attr("transform", computeLabelTransform(D, w)), terminalLabels[S.id] || (terminalLabels[S.id] = {}), terminalLabels[S.id].endLeft = C, setTerminalWidth(P, S.endLabelLeft);
1688
1712
  }
1689
1713
  if (S.endLabelRight) {
1690
- let C = e.insert("g").attr("class", "edgeTerminals"), T = C.insert("g").attr("class", "inner"), E = await createLabel_default(T, S.endLabelRight, S.labelStyle);
1714
+ let C = e.insert("g").attr("class", "edgeTerminals"), T = C.insert("g").attr("class", "inner"), E = await createLabel_default(C, S.endLabelRight, S.labelStyle);
1691
1715
  P = E;
1692
1716
  let D = E.getBBox();
1693
1717
  if (w) {
1694
1718
  let e = E.children[0], S = select_default(E);
1695
1719
  D = e.getBoundingClientRect(), S.attr("width", D.width), S.attr("height", D.height);
1696
1720
  }
1697
- T.attr("transform", computeLabelTransform(D, w)), C.node().appendChild(E), terminalLabels[S.id] || (terminalLabels[S.id] = {}), terminalLabels[S.id].endRight = C, setTerminalWidth(P, S.endLabelRight);
1721
+ T.attr("transform", computeLabelTransform(D, w)), terminalLabels[S.id] || (terminalLabels[S.id] = {}), terminalLabels[S.id].endRight = C, setTerminalWidth(P, S.endLabelRight);
1698
1722
  }
1699
1723
  return O;
1700
1724
  }, "insertEdgeLabel");
@@ -1834,273 +1858,273 @@ var positionEdgeLabel = /* @__PURE__ */ __name((e, C) => {
1834
1858
  break;
1835
1859
  }
1836
1860
  return S;
1837
- }, "expandAndDeduplicateDirections"), getArrowPoints = /* @__PURE__ */ __name((e, S, C) => {
1838
- let w = expandAndDeduplicateDirections(e), T = S.height + 2 * C.padding, E = T / 2, D = S.width + 2 * E + C.padding, O = C.padding / 2;
1839
- return w.has("right") && w.has("left") && w.has("up") && w.has("down") ? [
1861
+ }, "expandAndDeduplicateDirections"), getArrowPoints = /* @__PURE__ */ __name((e, S, C, w) => {
1862
+ let T = expandAndDeduplicateDirections(e), E = S.height + 2 * C.padding, D = E / 2, O = w ?? S.width + 2 * D + C.padding, k = C.padding / 2;
1863
+ return T.has("right") && T.has("left") && T.has("up") && T.has("down") ? [
1840
1864
  {
1841
1865
  x: 0,
1842
1866
  y: 0
1843
1867
  },
1844
1868
  {
1845
- x: E,
1869
+ x: D,
1846
1870
  y: 0
1847
1871
  },
1848
1872
  {
1849
- x: D / 2,
1850
- y: 2 * O
1873
+ x: O / 2,
1874
+ y: 2 * k
1851
1875
  },
1852
1876
  {
1853
- x: D - E,
1877
+ x: O - D,
1854
1878
  y: 0
1855
1879
  },
1856
1880
  {
1857
- x: D,
1881
+ x: O,
1858
1882
  y: 0
1859
1883
  },
1860
1884
  {
1861
- x: D,
1862
- y: -T / 3
1885
+ x: O,
1886
+ y: -E / 3
1863
1887
  },
1864
1888
  {
1865
- x: D + 2 * O,
1866
- y: -T / 2
1889
+ x: O + 2 * k,
1890
+ y: -E / 2
1867
1891
  },
1868
1892
  {
1869
- x: D,
1870
- y: -2 * T / 3
1893
+ x: O,
1894
+ y: -2 * E / 3
1871
1895
  },
1872
1896
  {
1873
- x: D,
1874
- y: -T
1897
+ x: O,
1898
+ y: -E
1875
1899
  },
1876
1900
  {
1877
- x: D - E,
1878
- y: -T
1901
+ x: O - D,
1902
+ y: -E
1879
1903
  },
1880
1904
  {
1881
- x: D / 2,
1882
- y: -T - 2 * O
1905
+ x: O / 2,
1906
+ y: -E - 2 * k
1883
1907
  },
1884
1908
  {
1885
- x: E,
1886
- y: -T
1909
+ x: D,
1910
+ y: -E
1887
1911
  },
1888
1912
  {
1889
1913
  x: 0,
1890
- y: -T
1914
+ y: -E
1891
1915
  },
1892
1916
  {
1893
1917
  x: 0,
1894
- y: -2 * T / 3
1918
+ y: -2 * E / 3
1895
1919
  },
1896
1920
  {
1897
- x: -2 * O,
1898
- y: -T / 2
1921
+ x: -2 * k,
1922
+ y: -E / 2
1899
1923
  },
1900
1924
  {
1901
1925
  x: 0,
1902
- y: -T / 3
1926
+ y: -E / 3
1903
1927
  }
1904
- ] : w.has("right") && w.has("left") && w.has("up") ? [
1928
+ ] : T.has("right") && T.has("left") && T.has("up") ? [
1905
1929
  {
1906
- x: E,
1930
+ x: D,
1907
1931
  y: 0
1908
1932
  },
1909
1933
  {
1910
- x: D - E,
1934
+ x: O - D,
1911
1935
  y: 0
1912
1936
  },
1913
1937
  {
1914
- x: D,
1915
- y: -T / 2
1938
+ x: O,
1939
+ y: -E / 2
1916
1940
  },
1917
1941
  {
1918
- x: D - E,
1919
- y: -T
1942
+ x: O - D,
1943
+ y: -E
1920
1944
  },
1921
1945
  {
1922
- x: E,
1923
- y: -T
1946
+ x: D,
1947
+ y: -E
1924
1948
  },
1925
1949
  {
1926
1950
  x: 0,
1927
- y: -T / 2
1951
+ y: -E / 2
1928
1952
  }
1929
- ] : w.has("right") && w.has("left") && w.has("down") ? [
1953
+ ] : T.has("right") && T.has("left") && T.has("down") ? [
1930
1954
  {
1931
1955
  x: 0,
1932
1956
  y: 0
1933
1957
  },
1934
1958
  {
1935
- x: E,
1936
- y: -T
1959
+ x: D,
1960
+ y: -E
1937
1961
  },
1938
1962
  {
1939
- x: D - E,
1940
- y: -T
1963
+ x: O - D,
1964
+ y: -E
1941
1965
  },
1942
1966
  {
1943
- x: D,
1967
+ x: O,
1944
1968
  y: 0
1945
1969
  }
1946
- ] : w.has("right") && w.has("up") && w.has("down") ? [
1970
+ ] : T.has("right") && T.has("up") && T.has("down") ? [
1947
1971
  {
1948
1972
  x: 0,
1949
1973
  y: 0
1950
1974
  },
1951
1975
  {
1952
- x: D,
1953
- y: -E
1976
+ x: O,
1977
+ y: -D
1954
1978
  },
1955
1979
  {
1956
- x: D,
1957
- y: -T + E
1980
+ x: O,
1981
+ y: -E + D
1958
1982
  },
1959
1983
  {
1960
1984
  x: 0,
1961
- y: -T
1985
+ y: -E
1962
1986
  }
1963
- ] : w.has("left") && w.has("up") && w.has("down") ? [
1987
+ ] : T.has("left") && T.has("up") && T.has("down") ? [
1964
1988
  {
1965
- x: D,
1989
+ x: O,
1966
1990
  y: 0
1967
1991
  },
1968
1992
  {
1969
1993
  x: 0,
1970
- y: -E
1994
+ y: -D
1971
1995
  },
1972
1996
  {
1973
1997
  x: 0,
1974
- y: -T + E
1998
+ y: -E + D
1975
1999
  },
1976
2000
  {
1977
- x: D,
1978
- y: -T
2001
+ x: O,
2002
+ y: -E
1979
2003
  }
1980
- ] : w.has("right") && w.has("left") ? [
2004
+ ] : T.has("right") && T.has("left") ? [
1981
2005
  {
1982
- x: E,
2006
+ x: D,
1983
2007
  y: 0
1984
2008
  },
1985
2009
  {
1986
- x: E,
1987
- y: -O
2010
+ x: D,
2011
+ y: -k
1988
2012
  },
1989
2013
  {
1990
- x: D - E,
1991
- y: -O
2014
+ x: O - D,
2015
+ y: -k
1992
2016
  },
1993
2017
  {
1994
- x: D - E,
2018
+ x: O - D,
1995
2019
  y: 0
1996
2020
  },
1997
2021
  {
1998
- x: D,
1999
- y: -T / 2
2022
+ x: O,
2023
+ y: -E / 2
2000
2024
  },
2001
2025
  {
2002
- x: D - E,
2003
- y: -T
2026
+ x: O - D,
2027
+ y: -E
2004
2028
  },
2005
2029
  {
2006
- x: D - E,
2007
- y: -T + O
2030
+ x: O - D,
2031
+ y: -E + k
2008
2032
  },
2009
2033
  {
2010
- x: E,
2011
- y: -T + O
2034
+ x: D,
2035
+ y: -E + k
2012
2036
  },
2013
2037
  {
2014
- x: E,
2015
- y: -T
2038
+ x: D,
2039
+ y: -E
2016
2040
  },
2017
2041
  {
2018
2042
  x: 0,
2019
- y: -T / 2
2043
+ y: -E / 2
2020
2044
  }
2021
- ] : w.has("up") && w.has("down") ? [
2045
+ ] : T.has("up") && T.has("down") ? [
2022
2046
  {
2023
- x: D / 2,
2047
+ x: O / 2,
2024
2048
  y: 0
2025
2049
  },
2026
2050
  {
2027
2051
  x: 0,
2028
- y: -O
2052
+ y: -k
2029
2053
  },
2030
2054
  {
2031
- x: E,
2032
- y: -O
2055
+ x: D,
2056
+ y: -k
2033
2057
  },
2034
2058
  {
2035
- x: E,
2036
- y: -T + O
2059
+ x: D,
2060
+ y: -E + k
2037
2061
  },
2038
2062
  {
2039
2063
  x: 0,
2040
- y: -T + O
2064
+ y: -E + k
2041
2065
  },
2042
2066
  {
2043
- x: D / 2,
2044
- y: -T
2067
+ x: O / 2,
2068
+ y: -E
2045
2069
  },
2046
2070
  {
2047
- x: D,
2048
- y: -T + O
2071
+ x: O,
2072
+ y: -E + k
2049
2073
  },
2050
2074
  {
2051
- x: D - E,
2052
- y: -T + O
2075
+ x: O - D,
2076
+ y: -E + k
2053
2077
  },
2054
2078
  {
2055
- x: D - E,
2056
- y: -O
2079
+ x: O - D,
2080
+ y: -k
2057
2081
  },
2058
2082
  {
2059
- x: D,
2060
- y: -O
2083
+ x: O,
2084
+ y: -k
2061
2085
  }
2062
- ] : w.has("right") && w.has("up") ? [
2086
+ ] : T.has("right") && T.has("up") ? [
2063
2087
  {
2064
2088
  x: 0,
2065
2089
  y: 0
2066
2090
  },
2067
2091
  {
2068
- x: D,
2069
- y: -E
2092
+ x: O,
2093
+ y: -D
2070
2094
  },
2071
2095
  {
2072
2096
  x: 0,
2073
- y: -T
2097
+ y: -E
2074
2098
  }
2075
- ] : w.has("right") && w.has("down") ? [
2099
+ ] : T.has("right") && T.has("down") ? [
2076
2100
  {
2077
2101
  x: 0,
2078
2102
  y: 0
2079
2103
  },
2080
2104
  {
2081
- x: D,
2105
+ x: O,
2082
2106
  y: 0
2083
2107
  },
2084
2108
  {
2085
2109
  x: 0,
2086
- y: -T
2110
+ y: -E
2087
2111
  }
2088
- ] : w.has("left") && w.has("up") ? [
2112
+ ] : T.has("left") && T.has("up") ? [
2089
2113
  {
2090
- x: D,
2114
+ x: O,
2091
2115
  y: 0
2092
2116
  },
2093
2117
  {
2094
2118
  x: 0,
2095
- y: -E
2119
+ y: -D
2096
2120
  },
2097
2121
  {
2098
- x: D,
2099
- y: -T
2122
+ x: O,
2123
+ y: -E
2100
2124
  }
2101
- ] : w.has("left") && w.has("down") ? [
2125
+ ] : T.has("left") && T.has("down") ? [
2102
2126
  {
2103
- x: D,
2127
+ x: O,
2104
2128
  y: 0
2105
2129
  },
2106
2130
  {
@@ -2108,132 +2132,132 @@ var positionEdgeLabel = /* @__PURE__ */ __name((e, C) => {
2108
2132
  y: 0
2109
2133
  },
2110
2134
  {
2111
- x: D,
2112
- y: -T
2135
+ x: O,
2136
+ y: -E
2113
2137
  }
2114
- ] : w.has("right") ? [
2138
+ ] : T.has("right") ? [
2115
2139
  {
2116
- x: E,
2117
- y: -O
2140
+ x: D,
2141
+ y: -k
2118
2142
  },
2119
2143
  {
2120
- x: E,
2121
- y: -O
2144
+ x: D,
2145
+ y: -k
2122
2146
  },
2123
2147
  {
2124
- x: D - E,
2125
- y: -O
2148
+ x: O - D,
2149
+ y: -k
2126
2150
  },
2127
2151
  {
2128
- x: D - E,
2152
+ x: O - D,
2129
2153
  y: 0
2130
2154
  },
2131
2155
  {
2132
- x: D,
2133
- y: -T / 2
2156
+ x: O,
2157
+ y: -E / 2
2134
2158
  },
2135
2159
  {
2136
- x: D - E,
2137
- y: -T
2160
+ x: O - D,
2161
+ y: -E
2138
2162
  },
2139
2163
  {
2140
- x: D - E,
2141
- y: -T + O
2164
+ x: O - D,
2165
+ y: -E + k
2142
2166
  },
2143
2167
  {
2144
- x: E,
2145
- y: -T + O
2168
+ x: D,
2169
+ y: -E + k
2146
2170
  },
2147
2171
  {
2148
- x: E,
2149
- y: -T + O
2172
+ x: D,
2173
+ y: -E + k
2150
2174
  }
2151
- ] : w.has("left") ? [
2175
+ ] : T.has("left") ? [
2152
2176
  {
2153
- x: E,
2177
+ x: D,
2154
2178
  y: 0
2155
2179
  },
2156
2180
  {
2157
- x: E,
2158
- y: -O
2181
+ x: D,
2182
+ y: -k
2159
2183
  },
2160
2184
  {
2161
- x: D - E,
2162
- y: -O
2185
+ x: O - D,
2186
+ y: -k
2163
2187
  },
2164
2188
  {
2165
- x: D - E,
2166
- y: -T + O
2189
+ x: O - D,
2190
+ y: -E + k
2167
2191
  },
2168
2192
  {
2169
- x: E,
2170
- y: -T + O
2193
+ x: D,
2194
+ y: -E + k
2171
2195
  },
2172
2196
  {
2173
- x: E,
2174
- y: -T
2197
+ x: D,
2198
+ y: -E
2175
2199
  },
2176
2200
  {
2177
2201
  x: 0,
2178
- y: -T / 2
2202
+ y: -E / 2
2179
2203
  }
2180
- ] : w.has("up") ? [
2204
+ ] : T.has("up") ? [
2181
2205
  {
2182
- x: E,
2183
- y: -O
2206
+ x: D,
2207
+ y: -k
2184
2208
  },
2185
2209
  {
2186
- x: E,
2187
- y: -T + O
2210
+ x: D,
2211
+ y: -E + k
2188
2212
  },
2189
2213
  {
2190
2214
  x: 0,
2191
- y: -T + O
2215
+ y: -E + k
2192
2216
  },
2193
2217
  {
2194
- x: D / 2,
2195
- y: -T
2218
+ x: O / 2,
2219
+ y: -E
2196
2220
  },
2197
2221
  {
2198
- x: D,
2199
- y: -T + O
2222
+ x: O,
2223
+ y: -E + k
2200
2224
  },
2201
2225
  {
2202
- x: D - E,
2203
- y: -T + O
2226
+ x: O - D,
2227
+ y: -E + k
2204
2228
  },
2205
2229
  {
2206
- x: D - E,
2207
- y: -O
2230
+ x: O - D,
2231
+ y: -k
2208
2232
  }
2209
- ] : w.has("down") ? [
2233
+ ] : T.has("down") ? [
2210
2234
  {
2211
- x: D / 2,
2235
+ x: O / 2,
2212
2236
  y: 0
2213
2237
  },
2214
2238
  {
2215
2239
  x: 0,
2216
- y: -O
2240
+ y: -k
2217
2241
  },
2218
2242
  {
2219
- x: E,
2220
- y: -O
2243
+ x: D,
2244
+ y: -k
2221
2245
  },
2222
2246
  {
2223
- x: E,
2224
- y: -T + O
2247
+ x: D,
2248
+ y: -E + k
2225
2249
  },
2226
2250
  {
2227
- x: D - E,
2228
- y: -T + O
2251
+ x: O - D,
2252
+ y: -E + k
2229
2253
  },
2230
2254
  {
2231
- x: D - E,
2232
- y: -O
2255
+ x: O - D,
2256
+ y: -k
2233
2257
  },
2234
2258
  {
2235
- x: D,
2236
- y: -O
2259
+ x: O,
2260
+ y: -k
2237
2261
  }
2238
2262
  ] : [{
2239
2263
  x: 0,
@@ -2396,7 +2420,7 @@ var note_default = /* @__PURE__ */ __name(async (e, C) => {
2396
2420
  return intersect_default.circle(S, 14, e);
2397
2421
  }, C;
2398
2422
  }, "choice"), hexagon = /* @__PURE__ */ __name(async (e, S) => {
2399
- let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), !0), T = w.height + S.padding, E = T / 4, D = w.width + 2 * E + S.padding, O = [
2423
+ let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), !0), T = S.positioned ? S.height : w.height + S.padding, E = T / 4, D = S.positioned ? S.width : w.width + 2 * E + S.padding, O = [
2400
2424
  {
2401
2425
  x: E,
2402
2426
  y: 0
@@ -2426,9 +2450,9 @@ var note_default = /* @__PURE__ */ __name(async (e, C) => {
2426
2450
  return intersect_default.polygon(S, O, e);
2427
2451
  }, C;
2428
2452
  }, "hexagon"), block_arrow = /* @__PURE__ */ __name(async (e, S) => {
2429
- let { shapeSvg: C, bbox: w } = await labelHelper(e, S, void 0, !0), T = w.height + 2 * S.padding, E = T / 2, D = w.width + 2 * E + S.padding, O = getArrowPoints(S.directions, w, S), k = insertPolygonShape(C, D, T, O);
2430
- return k.attr("style", S.style), updateNodeBounds(S, k), S.intersect = function(e) {
2431
- return intersect_default.polygon(S, O, e);
2453
+ let { shapeSvg: C, bbox: w } = await labelHelper(e, S, void 0, !0), T = w.height + 2 * S.padding, E = T / 2, D = w.width + 2 * E + S.padding, O = S.positioned && (S.widthInColumns ?? 1) > 1 && S.width > D ? S.width : D, k = getArrowPoints(S.directions, w, S, O), A = insertPolygonShape(C, O, T, k);
2454
+ return A.attr("style", S.style), updateNodeBounds(S, A), S.intersect = function(e) {
2455
+ return intersect_default.polygon(S, k, e);
2432
2456
  }, C;
2433
2457
  }, "block_arrow"), rect_left_inv_arrow = /* @__PURE__ */ __name(async (e, S) => {
2434
2458
  let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), !0), T = w.width + S.padding, E = w.height + S.padding, D = [
@@ -2908,7 +2932,8 @@ function getNodeFromBlock(e, S, C = !1) {
2908
2932
  positioned: C,
2909
2933
  intersect: void 0,
2910
2934
  type: w.type,
2911
- padding: k ?? getConfig()?.block?.padding ?? 0
2935
+ padding: k ?? getConfig()?.block?.padding ?? 0,
2936
+ widthInColumns: w.widthInColumns ?? 1
2912
2937
  };
2913
2938
  }
2914
2939
  __name(getNodeFromBlock, "getNodeFromBlock");
@@ -2975,7 +3000,7 @@ async function insertEdges(e, S, C, w, T) {
2975
3000
  x: O.x,
2976
3001
  y: O.y
2977
3002
  }
2978
- ], A = T ? `${T}-${C.id}` : C.id;
3003
+ ], A = T ? `${T}-${C.id}` : C.id, j = `${C.thickness === "thick" ? "edge-thickness-thick" : "edge-thickness-normal"} ${C.pattern === "dotted" ? "edge-pattern-dotted" : "edge-pattern-solid"} flowchart-link LS-a1 LE-b1`;
2979
3004
  insertEdge(e, {
2980
3005
  v: C.start,
2981
3006
  w: C.end,
@@ -2986,7 +3011,7 @@ async function insertEdges(e, S, C, w, T) {
2986
3011
  arrowTypeEnd: C.arrowTypeEnd,
2987
3012
  arrowTypeStart: C.arrowTypeStart,
2988
3013
  points: k,
2989
- classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
3014
+ classes: j
2990
3015
  }, void 0, "block", E, T), C.label && (await insertEdgeLabel(e, {
2991
3016
  ...C,
2992
3017
  label: C.label,
@@ -2994,7 +3019,7 @@ async function insertEdges(e, S, C, w, T) {
2994
3019
  arrowTypeEnd: C.arrowTypeEnd,
2995
3020
  arrowTypeStart: C.arrowTypeStart,
2996
3021
  points: k,
2997
- classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
3022
+ classes: j
2998
3023
  }), positionEdgeLabel({
2999
3024
  ...C,
3000
3025
  x: k[1].x,